1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2deab03d-7ce2-461c-8dcc-4f07e0313d99",e._sentryDebugIdIdentifier="sentry-dbid-2deab03d-7ce2-461c-8dcc-4f07e0313d99")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2771],{97717:(e,t,i)=>{i.r(t),i.d(t,{default:()=>v});var s=i(7620);let n=/open\.spotify\.com\/(\w+)\/(\w+)/i;function r(e,t={}){let i={src:o(e,t),scrolling:"no",frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return` 2 <style> 3 :host { 4 display: inline-block; 5 min-width: 160px; 6 min-height: 80px; 7 position: relative; 8 } 9 iframe { 10 position: absolute; 11 top: 0; 12 left: 0; 13 width: 100%; 14 height: 100%; 15 overflow: hidden; 16 } 17 :host(:not([controls])) { 18 display: none !important; 19 } 20 </style> 21 <iframe${function(e){let t="";for(let i in e){let s=e[i];""===s?t+=` ${i}`:t+=` ${i}="${s}"`}return t}(i)}></iframe> 22 `}function o(e,t){var i,s,r;if(!e.src)return;let o=e.src.match(n),a=o&&o[1],l=o&&o[2],d={t:null==(i=t.config)?void 0:i.startAt,theme:(null==(s=t.config)?void 0:s.theme)==="dark"?"0":null},u=(null==(r=t.config)?void 0:r.preferVideo)?"/video":"";return`https://open.spotify.com/embed/${a}/${l}${u}?${String(new URLSearchParams(function(e){let t={};for(let i in e){let s=e[i];!0===s||""===s?t[i]=1:!1===s?t[i]=0:null!=s&&(t[i]=s)}return t}(d)))}`}class a extends(globalThis.HTMLElement??class{}){static getTemplateHTML=r;static shadowRootOptions={mode:"open"};static observedAttributes=["controls","loop","src"];loadComplete=new h;#e;#t;#i;#s=!1;#n=!1;#r=!0;#o=0;#a=NaN;#l=!1;#d=null;constructor(){super(),this.#u("config")}async load(){var e,t,i;if(this.#e)return;this.#t&&(this.loadComplete=new h),this.#t=!0,await (this.#e=Promise.resolve()),this.#e=null,this.#s=!1,this.#n=!1,this.#o=0,this.#a=NaN,this.#l=!1,this.dispatchEvent(new Event("emptied"));let s=this.api;if(this.api=null,!this.src)return;this.dispatchEvent(new Event("loadstart"));let n={t:null==(e=this.config)?void 0:e.startAt,theme:(null==(t=this.config)?void 0:t.theme)==="dark"?"0":null,preferVideo:null==(i=this.config)?void 0:i.preferVideo};if(this.#i)this.api=s,this.api.iframeElement.src=o(l(this.attributes),this);else{this.#i=!0,this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=r(l(this.attributes),this));let e=this.shadowRoot.querySelector("iframe"),t=await u("https://open.spotify.com/embed-podcast/iframe-api/v1","SpotifyIframeApi","onSpotifyIframeApiReady");this.api=await new Promise(i=>t.createController(e,n,i)),this.api.iframeElement=e,this.api.addListener("ready",()=>{this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),this.dispatchEvent(new Event("volumechange"))}),this.api.addListener("playback_update",e=>{if(this.#n&&this.#r&&(e.data.isBuffering||!e.data.isPaused)){this.#n=!1,this.currentTime=1;return}if(e.data.duration/1e3!==this.#a&&(this.#n=!1,this.#a=e.data.duration/1e3,this.dispatchEvent(new Event("durationchange"))),e.data.position/1e3!==this.#o&&(this.#l=!1,this.#n=!1,this.#o=e.data.position/1e3,this.dispatchEvent(new Event("timeupdate"))),!this.#s&&!this.#r&&e.data.isPaused){this.#r=!0,this.dispatchEvent(new Event("pause"));return}if(this.#r&&(e.data.isBuffering||!e.data.isPaused)){this.#r=!1,this.dispatchEvent(new Event("play")),this.#s=e.data.isBuffering,this.#s?this.dispatchEvent(new Event("waiting")):this.dispatchEvent(new Event("playing"));return}if(this.#s&&!e.data.isPaused){this.#s=!1,this.dispatchEvent(new Event("playing"));return}if(!this.paused&&!this.seeking&&!this.#n&&Math.ceil(this.currentTime)>=this.duration){if(this.#n=!0,this.loop){this.currentTime=1;return}this.continuous||(this.pause(),this.dispatchEvent(new Event("ended")));return}})}this.loadComplete.resolve(),await this.loadComplete}async attributeChangedCallback(e,t,i){if(t!==i&&"src"===e)return void this.load()}async play(){var e;return this.#r=!1,this.#s=!0,this.dispatchEvent(new Event("play")),await this.loadComplete,null==(e=this.api)?void 0:e.resume()}async pause(){var e;return await this.loadComplete,null==(e=this.api)?void 0:e.pause()}get config(){return this.#d}set config(e){this.#d=e}get paused(){return this.#r??!0}get muted(){return!1}set muted(e){}get volume(){return 1}set volume(e){}get ended(){return Math.ceil(this.currentTime)>=this.duration}get seeking(){return this.#l}get loop(){return this.hasAttribute("loop")}set loop(e){this.loop!=e&&this.toggleAttribute("loop",!!e)}get currentTime(){return this.#o}set currentTime(e){if(this.currentTime==e)return;this.#l=!0;let t=this.#o;this.#o=e,this.dispatchEvent(new Event("timeupdate")),this.#o=t,this.loadComplete.then(()=>{var t;null==(t=this.api)||t.seek(e)})}get duration(){return this.#a}get src(){return this.getAttribute("src")}set src(e){this.setAttribute("src",`${e}`)}#u(e){if(Object.prototype.hasOwnProperty.call(this,e)){let t=this[e];delete this[e],this[e]=t}}}function l(e){let t={};for(let i of e)t[i.name]=i.value;return t}let d={};async function u(e,t,i){return d[e]?d[e]:t&&self[t]?Promise.resolve(self[t]):d[e]=new Promise(function(t,s){let n=document.createElement("script");n.src=e;let r=e=>t(e);
22i&&(self[i]=r),n.onload=()=>!i&&r(),n.onerror=s,document.head.append(n)})}class h extends Promise{constructor(e=()=>{}){let t,i;super((s,n)=>{e(s,n),t=s,i=n}),this.resolve=t,this.reject=i}}globalThis.customElements&&!globalThis.customElements.get("spotify-audio")&&globalThis.customElements.define("spotify-audio",a);var c=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),p={className:"class",htmlFor:"for"};function f(e){return e.toLowerCase()}function m(e){return"boolean"==typeof e?e?"":void 0:"function"==typeof e?void 0:"object"!=typeof e||null===e?e:void 0}function g(e,t,i){var s;e[t]=i,null==i&&t in((null==(s=globalThis.HTMLElement)?void 0:s.prototype)??{})&&e.removeAttribute(t)}var v=function(e){let{react:t,tagName:i,elementClass:s,events:n,displayName:r,defaultProps:o,toAttributeName:a=f,toAttributeValue:l=m}=e,d=Number.parseInt(t.version)>=19,u=t.forwardRef((e,r)=>{var u,h;let f=t.useRef(null),v=t.useRef(new Map),y={},w={},E={},b={};for(let[t,i]of Object.entries(e)){if(c.has(t)){E[t]=i;continue}let e=a(p[t]??t);if(s.prototype&&t in s.prototype&&!(t in((null==(u=globalThis.HTMLElement)?void 0:u.prototype)??{}))&&!(null==(h=s.observedAttributes)?void 0:h.some(t=>t===e))){b[t]=i;continue}if(t.startsWith("on")){y[t]=i;continue}let n=l(i);e&&null!=n&&(w[e]=String(n),d||(E[e]=n)),e&&d&&(n!==m(i)?E[e]=n:E[e]=i)}if("u">typeof window){for(let e in y){let i=y[e],s=e.endsWith("Capture"),r=((null==n?void 0:n[e])??e.slice(2).toLowerCase()).slice(0,s?-7:void 0);t.useLayoutEffect(()=>{let e=null==f?void 0:f.current;if(e&&"function"==typeof i)return e.addEventListener(r,i,s),()=>{e.removeEventListener(r,i,s)}},[null==f?void 0:f.current,i])}t.useLayoutEffect(()=>{if(null===f.current)return;let e=new Map;for(let t in b)g(f.current,t,b[t]),v.current.delete(t),e.set(t,b[t]);for(let[e,t]of v.current)g(f.current,e,void 0);v.current=e})}if("u"<typeof window&&(null==s?void 0:s.getTemplateHTML)&&(null==s?void 0:s.shadowRootOptions)){let{mode:i,delegatesFocus:n}=s.shadowRootOptions;E.children=[t.createElement("template",{shadowrootmode:i,shadowrootdelegatesfocus:n,dangerouslySetInnerHTML:{__html:s.getTemplateHTML(w,e)},key:"ce-la-react-ssr-template-shadow-root"}),E.children]}return t.createElement(i,{...o,...E,ref:t.useCallback(e=>{f.current=e,"function"==typeof r?r(e):null!==r&&(r.current=e)},[r])},E.children)});return u.displayName=r??s.name,u}({react:s,tagName:"spotify-audio",elementClass:a,toAttributeName:e=>"muted"===e?"":"defaultMuted"===e?"muted":f(e)})}}]);
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.