1/*! For license information please see reactPlayerSpotify.a146c5b6.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkcruise_master=self.webpackChunkcruise_master||[]).push([[771],{6562:(t,e,n)=>{function i(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}n.d(e,{A:()=>i})},8195:(t,e,n)=>{function i(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(e,{A:()=>i})},8458:(t,e,n)=>{n.d(e,{A:()=>s});var i=n(6562);function s(t,e){return t.get((0,i.A)(t,e))}},5149:(t,e,n)=>{n.d(e,{A:()=>s});var i=n(8195);function s(t,e,n){(0,i.A)(t,e),e.set(t,n)}},4558:(t,e,n)=>{n.d(e,{A:()=>s});var i=n(6562);function s(t,e,n){return t.set((0,i.A)(t,e),n),n}},9790:(t,e,n)=>{n.d(e,{A:()=>s});var i=n(8195);function s(t,e){(0,i.A)(t,e),e.add(t)}},5869:(t,e,n)=>{n.r(e),n.d(e,{default:()=>_});var i,s=n(5043),o=n(9790),a=n(5149),r=n(4467),l=n(4558),h=n(8458),u=n(6562);const c="https://open.spotify.com",d=/open\.spotify\.com\/(\w+)\/(\w+)/i;function p(t){const e={src:f(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),scrolling:"no",frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return"\n <style>\n :host {\n display: inline-block;\n min-width: 160px;\n min-height: 80px;\n position: relative;\n }\n iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n }\n :host(:not([controls])) {\n display: none !important;\n }\n </style>\n <iframe".concat(function(t){let e="";for(const n in t){const i=t[n];e+=""===i?" ".concat(n):" ".concat(n,'="').concat(i,'"')}return e}(e),"></iframe>\n ")}function f(t,e){var n,i,s;if(!t.src)return;const o=t.src.match(d),a=o&&o[1],r=o&&o[2],l={t:null==(n=e.config)?void 0:n.startAt,theme:"dark"===(null==(i=e.config)?void 0:i.theme)?"0":null},h=(null==(s=e.config)?void 0:s.preferVideo)?"/video":"";return"".concat(c,"/embed/").concat(a,"/").concat(r).concat(h,"?").concat(function(t){return String(new URLSearchParams(function(t){let e={};for(let n in t){let i=t[n];!0===i||""===i?e[n]=1:!1===i?e[n]=0:null!=i&&(e[n]=i)}return e}(t)))}(l))}var v=new WeakMap,m=new WeakMap,A=new WeakMap,w=new WeakMap,g=new WeakMap,y=new WeakMap,E=new WeakMap,b=new WeakMap,T=new WeakMap,k=new WeakMap,M=new WeakSet;class C extends(null!==(i=globalThis.HTMLElement)&&void 0!==i?i:class{}){constructor(){super(),(0,o.A)(this,M),(0,r.A)(this,"loadComplete",new N),(0,a.A)(this,v,void 0),(0,a.A)(this,m,void 0),(0,a.A)(this,A,void 0),(0,a.A)(this,w,!1),(0,a.A)(this,g,!1),(0,a.A)(this,y,!0),(0,a.A)(this,E,0),(0,a.A)(this,b,NaN),(0,a.A)(this,T,!1),(0,a.A)(this,k,null),(0,u.A)(M,this,L).call(this,"config")}async load(){var t,e,n;if((0,h.A)(v,this))return;(0,h.A)(m,this)&&(this.loadComplete=new N),(0,l.A)(m,this,!0),await(0,l.A)(v,this,Promise.resolve()),(0,l.A)(v,this,null),(0,l.A)(w,this,!1),(0,l.A)(g,this,!1),(0,l.A)(E,this,0),(0,l.A)(b,this,NaN),(0,l.A)(T,this,!1),this.dispatchEvent(new Event("emptied"));let i=this.api;if(this.api=null,!this.src)return;this.dispatchEvent(new Event("loadstart"));const s={t:null==(t=this.config)?void 0:t.startAt,theme:"dark"===(null==(e=this.config)?void 0:e.theme)?"0":null,preferVideo:null==(n=this.config)?void 0:n.preferVideo};if((0,h.A)(A,this))this.api=i,this.api.iframeElement.src=f(W(this.attributes),this);else{(0,l.A)(A,this,!0),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=p(W(this.attributes),this));let t=this.shadowRoot.querySelector("iframe");const e=await async function(t,e,n){if(P[t])return P[t];if(e&&self[e])return Promise.resolve(self[e]);return P[t]=new Promise((function(e,i){const s=document.createElement("script");s.src=t;const o=t=>e(t);n&&(self[n]=o),s.onload=()=>!n&&o(),s.onerror=i,document.head.append(s)}))}("https://open.spotify.com/embed-podcast/iframe-api/v1","SpotifyIframeApi","onSpotifyIframeApiReady");this.api=await new Promise((n=>e.createController(t,s,n))),this.api.iframeElement=t,this.api.addListener("ready",(()=>{this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),this.dispatchEvent(new Event("volumechange"))})),this.api.addListener("playback_update",(t=>(0,h.A)(g,this)&&(0,h.A)(y,this)&&(t.data.isBuffering||!t.data.isPaused)?((0,l.A)(g,this,
2!1),void(this.currentTime=1)):(t.data.duration/1e3!==(0,h.A)(b,this)&&((0,l.A)(g,this,!1),(0,l.A)(b,this,t.data.duration/1e3),this.dispatchEvent(new Event("durationchange"))),t.data.position/1e3!==(0,h.A)(E,this)&&((0,l.A)(T,this,!1),(0,l.A)(g,this,!1),(0,l.A)(E,this,t.data.position/1e3),this.dispatchEvent(new Event("timeupdate"))),(0,h.A)(w,this)||(0,h.A)(y,this)||!t.data.isPaused?!(0,h.A)(y,this)||!t.data.isBuffering&&t.data.isPaused?(0,h.A)(w,this)&&!t.data.isPaused?((0,l.A)(w,this,!1),void this.dispatchEvent(new Event("playing"))):!this.paused&&!this.seeking&&!(0,h.A)(g,this)&&Math.ceil(this.currentTime)>=this.duration?((0,l.A)(g,this,!0),this.loop?void(this.currentTime=1):void(this.continuous||(this.pause(),this.dispatchEvent(new Event("ended"))))):void 0:((0,l.A)(y,this,!1),this.dispatchEvent(new Event("play")),(0,l.A)(w,this,t.data.isBuffering),void((0,h.A)(w,this)?this.dispatchEvent(new Event("waiting")):this.dispatchEvent(new Event("playing")))):((0,l.A)(y,this,!0),void this.dispatchEvent(new Event("pause"))))))}this.loadComplete.resolve(),await this.loadComplete}async attributeChangedCallback(t,e,n){e!==n&&("src"!==t||this.load())}async play(){var t;return(0,l.A)(y,this,!1),(0,l.A)(w,this,!0),this.dispatchEvent(new Event("play")),await this.loadComplete,null==(t=this.api)?void 0:t.resume()}async pause(){var t;return await this.loadComplete,null==(t=this.api)?void 0:t.pause()}get config(){return(0,h.A)(k,this)}set config(t){(0,l.A)(k,this,t)}get paused(){var t;return null===(t=(0,h.A)(y,this))||void 0===t||t}get muted(){return!1}set muted(t){}get volume(){return 1}set volume(t){}get ended(){return Math.ceil(this.currentTime)>=this.duration}get seeking(){return(0,h.A)(T,this)}get loop(){return this.hasAttribute("loop")}set loop(t){this.loop!=t&&this.toggleAttribute("loop",Boolean(t))}get currentTime(){return(0,h.A)(E,this)}set currentTime(t){if(this.currentTime==t)return;(0,l.A)(T,this,!0);let e=(0,h.A)(E,this);(0,l.A)(E,this,t),this.dispatchEvent(new Event("timeupdate")),(0,l.A)(E,this,e),this.loadComplete.then((()=>{var e;null==(e=this.api)||e.seek(t)}))}get duration(){return(0,h.A)(b,this)}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src","".concat(t))}}function L(t){if(Object.prototype.hasOwnProperty.call(this,t)){const e=this[t];delete this[t],this[t]=e}}function W(t){let e={};for(let n of t)e[n.name]=n.value;return e}(0,r.A)(C,"getTemplateHTML",p),(0,r.A)(C,"shadowRootOptions",{mode:"open"}),(0,r.A)(C,"observedAttributes",["controls","loop","src"]);const P={};class N extends Promise{constructor(){let t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{};super(((i,s)=>{n(i,s),t=i,e=s})),this.resolve=t,this.reject=e}}globalThis.customElements&&!globalThis.customElements.get("spotify-audio")&&globalThis.customElements.define("spotify-audio",C);var R=C,S=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),H={className:"class",htmlFor:"for"};function j(t){return t.toLowerCase()}function O(t){return"boolean"===typeof t?t?"":void 0:"function"===typeof t||"object"===typeof t&&null!==t?void 0:t}function I(t,e,n){var i,s;t[e]=n,null==n&&e in(null!==(i=null==(s=globalThis.HTMLElement)?void 0:s.prototype)&&void 0!==i?i:{})&&t.removeAttribute(e)}var _=function(t){let{react:e,tagName:n,elementClass:i,events:s,displayName:o,defaultProps:a,toAttributeName:r=j,toAttributeValue:l=O}=t;const h=Number.parseInt(e.version)>=19,u=e.forwardRef(((t,o)=>{var u,c;const d=e.useRef(null),p=e.useRef(new Map),f={},v={},m={},A={};for(const[e,n]of Object.entries(t)){var w,g;if(S.has(e)){m[e]=n;continue}const t=r(null!==(w=H[e])&&void 0!==w?w:e);if(i.prototype&&e in i.prototype&&!(e in(null!==(g=null==(u=globalThis.HTMLElement)?void 0:u.prototype)&&void 0!==g?g:{}))&&!(null==(c=i.observedAttributes)?void 0:c.some((e=>e===t)))){A[e]=n;continue}if(e.startsWith("on")){f[e]=n;continue}const s=l(n);if(t&&null!=s&&(v[t]=String(s),h||(m[t]=s)),t&&h){const e=O(n);m[t]=s!==e?s:n}}if("undefined"!==typeof window){for(const t in f){var y;const n=f[t],i=t.endsWith("Capture"),o=(null!==(y=null==s?void 0:s[t])&&void 0!==y?y:t.slice(2).toLowerCase()).slice(0,i?-7:void 0);e.useLayoutEffect((()=>{const t=null==d?void 0:d.current;if(t&&"function"===typeof n)return t.addEventListener(o,n,i),()=>{t.removeEventListener(o,n,i)}}),[null==d?void 0:d.current,n])}e.useLayoutEffect((()=>
2{if(null===d.current)return;const t=new Map;for(const e in A)I(d.current,e,A[e]),p.current.delete(e),t.set(e,A[e]);for(const[e,n]of p.current)I(d.current,e,void 0);p.current=t}))}if("undefined"===typeof window&&(null==i?void 0:i.getTemplateHTML)&&(null==i?void 0:i.shadowRootOptions)){const{mode:n,delegatesFocus:s}=i.shadowRootOptions,o=e.createElement("template",{shadowrootmode:n,shadowrootdelegatesfocus:s,dangerouslySetInnerHTML:{__html:i.getTemplateHTML(v,t)},key:"ce-la-react-ssr-template-shadow-root"});m.children=[o,m.children]}return e.createElement(n,{...a,...m,ref:e.useCallback((t=>{d.current=t,"function"===typeof o?o(t):null!==o&&(o.current=t)}),[o])},m.children)}));return u.displayName=null!==o&&void 0!==o?o:i.name,u}({react:s,tagName:"spotify-audio",elementClass:R,toAttributeName:t=>"muted"===t?"":"defaultMuted"===t?"muted":j(t)})}}]); 3//# sourceMappingURL=reactPlayerSpotify.a146c5b6.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.