1/*! For license information please see reactPlayerSpotify-955aade64fe7496455b6.js.LICENSE.txt */ 2"use strict";(self.webpackChunkgatsby_romeroac=self.webpackChunkgatsby_romeroac||[]).push([[771],{6446:function(t,e,i){i.r(e),i.d(e,{default:function(){return g}});var n=i(2086);const s=/open\.spotify\.com\/(\w+)\/(\w+)/i;function o(t){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${function(t){let e="";for(const i in t){const n=t[i];e+=""===n?` ${i}`:` ${i}="${n}"`}return e}({src:r(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"})}></iframe>\n `}function r(t,e){var i,n,o;if(!t.src)return;const r=t.src.match(s),a=r&&r[1],l=r&&r[2],d={t:null==(i=e.config)?void 0:i.startAt,theme:"dark"===(null==(n=e.config)?void 0:n.theme)?"0":null};return`https://open.spotify.com/embed/${a}/${l}${(null==(o=e.config)?void 0:o.preferVideo)?"/video":""}?${function(t){return String(new URLSearchParams(function(t){let e={};for(let i in t){let n=t[i];!0===n||""===n?e[i]=1:!1===n?e[i]=0:null!=n&&(e[i]=n)}return e}(t)))}(d)}`}class a extends(globalThis.HTMLElement??class{}){static getTemplateHTML=(()=>o)();static shadowRootOptions={mode:"open"};static observedAttributes=["controls","loop","src"];loadComplete=(()=>new u)();#t;#e;#i;#n=!1;#s=!1;#o=!0;#r=0;#a=NaN;#l=!1;#d=null;constructor(){super(),this.#u("config")}async load(){var t,e,i;if(this.#t)return;this.#e&&(this.loadComplete=new u),this.#e=!0,await(this.#t=Promise.resolve()),this.#t=null,this.#n=!1,this.#s=!1,this.#r=0,this.#a=NaN,this.#l=!1,this.dispatchEvent(new Event("emptied"));let n=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==(i=this.config)?void 0:i.preferVideo};if(this.#i)this.api=n,this.api.iframeElement.src=r(l(this.attributes),this);else{this.#i=!0,this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=o(l(this.attributes),this));let t=this.shadowRoot.querySelector("iframe");const e=await async function(t,e,i){if(d[t])return d[t];if(e&&self[e])return Promise.resolve(self[e]);return d[t]=new Promise(function(e,n){const s=document.createElement("script");s.src=t;const o=t=>e(t);i&&(self[i]=o),s.onload=()=>!i&&o(),s.onerror=n,document.head.append(s)})}("https://open.spotify.com/embed-podcast/iframe-api/v1","SpotifyIframeApi","onSpotifyIframeApiReady");this.api=await new Promise(i=>e.createController(t,s,i)),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=>this.#s&&this.#o&&(t.data.isBuffering||!t.data.isPaused)?(this.#s=!1,void(this.currentTime=1)):(t.data.duration/1e3!==this.#a&&(this.#s=!1,this.#a=t.data.duration/1e3,this.dispatchEvent(new Event("durationchange"))),t.data.position/1e3!==this.#r&&(this.#l=!1,this.#s=!1,this.#r=t.data.position/1e3,this.dispatchEvent(new Event("timeupdate"))),this.#n||this.#o||!t.data.isPaused?!this.#o||!t.data.isBuffering&&t.data.isPaused?this.#n&&!t.data.isPaused?(this.#n=!1,void this.dispatchEvent(new Event("playing"))):!this.paused&&!this.seeking&&!this.#s&&Math.ceil(this.currentTime)>=this.duration?(this.#s=!0,this.loop?void(this.currentTime=1):void(this.continuous||(this.pause(),this.dispatchEvent(new Event("ended"))))):void 0:(this.#o=!1,this.dispatchEvent(new Event("play")),this.#n=t.data.isBuffering,void(this.#n?this.dispatchEvent(new Event("waiting")):this.dispatchEvent(new Event("playing")))):(this.#o=!0,void this.dispatchEvent(new Event("pause")))))}this.loadComplete.resolve(),await this.loadComplete}
2async attributeChangedCallback(t,e,i){e!==i&&("src"!==t||this.load())}async play(){var t;return this.#o=!1,this.#n=!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 this.#d}set config(t){this.#d=t}get paused(){return this.#o??!0}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 this.#l}get loop(){return this.hasAttribute("loop")}set loop(t){this.loop!=t&&this.toggleAttribute("loop",Boolean(t))}get currentTime(){return this.#r}set currentTime(t){if(this.currentTime==t)return;this.#l=!0;let e=this.#r;this.#r=t,this.dispatchEvent(new Event("timeupdate")),this.#r=e,this.loadComplete.then(()=>{var e;null==(e=this.api)||e.seek(t)})}get duration(){return this.#a}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",`${t}`)}#u(t){if(Object.prototype.hasOwnProperty.call(this,t)){const e=this[t];delete this[t],this[t]=e}}}function l(t){let e={};for(let i of t)e[i.name]=i.value;return e}const d={};class u extends Promise{constructor(){let t,e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{};super((n,s)=>{i(n,s),t=n,e=s}),this.resolve=t,this.reject=e}}globalThis.customElements&&!globalThis.customElements.get("spotify-audio")&&globalThis.customElements.define("spotify-audio",a);var c=a,h=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),p={className:"class",htmlFor:"for"};function f(t){return t.toLowerCase()}function m(t){return"boolean"==typeof t?t?"":void 0:"function"==typeof t||"object"==typeof t&&null!==t?void 0:t}function v(t,e,i){var n;t[e]=i,null==i&&e in((null==(n=globalThis.HTMLElement)?void 0:n.prototype)??{})&&t.removeAttribute(e)}var g=function(t){let{react:e,tagName:i,elementClass:n,events:s,displayName:o,defaultProps:r,toAttributeName:a=f,toAttributeValue:l=m}=t;const d=Number.parseInt(e.version)>=19,u=e.forwardRef((t,o)=>{var u,c;const f=e.useRef(null),g=e.useRef(new Map),w={},y={},E={},T={};for(const[e,i]of Object.entries(t)){if(h.has(e)){E[e]=i;continue}const t=a(p[e]??e);if(n.prototype&&e in n.prototype&&!(e in((null==(u=globalThis.HTMLElement)?void 0:u.prototype)??{}))&&!(null==(c=n.observedAttributes)?void 0:c.some(e=>e===t))){T[e]=i;continue}if(e.startsWith("on")){w[e]=i;continue}const s=l(i);if(t&&null!=s&&(y[t]=String(s),d||(E[t]=s)),t&&d){const e=m(i);E[t]=s!==e?s:i}}if("undefined"!=typeof window){for(const t in w){const i=w[t],n=t.endsWith("Capture"),o=((null==s?void 0:s[t])??t.slice(2).toLowerCase()).slice(0,n?-7:void 0);e.useLayoutEffect(()=>{const t=null==f?void 0:f.current;if(t&&"function"==typeof i)return t.addEventListener(o,i,n),()=>{t.removeEventListener(o,i,n)}},[null==f?void 0:f.current,i])}e.useLayoutEffect(()=>{if(null===f.current)return;const t=new Map;for(const e in T)v(f.current,e,T[e]),g.current.delete(e),t.set(e,T[e]);for(const[e,i]of g.current)v(f.current,e,void 0);g.current=t})}if("undefined"==typeof window&&(null==n?void 0:n.getTemplateHTML)&&(null==n?void 0:n.shadowRootOptions)){const{mode:i,delegatesFocus:s}=n.shadowRootOptions,o=e.createElement("template",{shadowrootmode:i,shadowrootdelegatesfocus:s,dangerouslySetInnerHTML:{__html:n.getTemplateHTML(y,t)},key:"ce-la-react-ssr-template-shadow-root"});E.children=[o,E.children]}return e.createElement(i,{...r,...E,ref:e.useCallback(t=>{f.current=t,"function"==typeof o?o(t):null!==o&&(o.current=t)},[o])},E.children)});return u.displayName=o??n.name,u}({react:n,tagName:"spotify-audio",elementClass:c,toAttributeName(t){return"muted"===t?"":"defaultMuted"===t?"muted":f(t)}})}}]);
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.