1"use strict";(self.webpackChunkreact_typescript_webpack=self.webpackChunkreact_typescript_webpack||[]).push([["30"],{1769(e,t,i){i.d(t,{A:()=>j});var n=i(8780);function a(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function s(e,t,i){if(!t.has(e))throw TypeError("attempted to "+i+" private field on non-instance");return t.get(e)}function r(e,t){var i=s(e,t,"get");return i.get?i.get.call(e):i.value}function l(e,t,i){a(e,t),t.set(e,i)}function o(e,t,i){var n=s(e,t,"set");if(n.set)n.set.call(e,i);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=i}return i}function u(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let h=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})/,c=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/.*?[?&]list=)([\w_-]+)/;function d(e){var t;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={src:p(e,i),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return(null==(t=i.config)?void 0:t.referrerpolicy)&&(n.referrerpolicy=i.config.referrerpolicy),i.config&&(n["data-config"]=JSON.stringify(i.config)),` 2 <style> 3 :host { 4 display: inline-block; 5 line-height: 0; 6 position: relative; 7 min-width: 300px; 8 min-height: 150px; 9 } 10 iframe { 11 position: absolute; 12 top: 0; 13 left: 0; 14 } 15 </style> 16 <iframe${function(e){let t="";for(let i in e){let n=e[i];""===n?t+=` ${C(i)}`:t+=` ${C(i)}="${C(`${n}`)}"`}return t}(n)}></iframe> 17 `}function p(e,t){if(!e.src)return;let i=e.src.includes("-nocookie")?"https://www.youtube-nocookie.com/embed":"https://www.youtube.com/embed",n={controls:""===e.controls?null:0,autoplay:e.autoplay,loop:e.loop,mute:e.muted,playsinline:e.playsinline,preload:e.preload??"metadata",enablejsapi:1,cc_load_policy:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1,...t.config};if(h.test(e.src)){let t=e.src.match(h),a=t&&t[1];return`${i}/${a}?${P(n)}`}let a=e.src.match(c),s={listType:"playlist",list:a&&a[1],...n};return`${i}?${P(s)}`}var v,f=new WeakMap,g=new WeakMap,m=new WeakMap,y=new WeakMap,w=new WeakMap,b=new WeakMap,E=new WeakMap,k=new WeakMap,T=new WeakMap,L=new WeakSet;class A extends(v=globalThis.HTMLElement??class{}){get config(){return r(this,E)}set config(e){o(this,E,e)}async load(){let e;if(r(this,f))return;this.shadowRoot||this.attachShadow({mode:"open"});let t=!r(this,g);r(this,g)&&(this.loadComplete=new N,this.isLoaded=!1),o(this,g,!0),await o(this,f,Promise.resolve()),o(this,f,null),o(this,m,0),this.dispatchEvent(new Event("emptied"));let i=this.api;if(this.api=null,!this.src){null==i||i.destroy();return}o(this,k,document.createElement("video")),this.textTracks=r(this,k).textTracks,this.textTracks.addEventListener("change",()=>{var e;let t=Array.from(this.textTracks).find(e=>"showing"===e.mode);null==(e=this.api)||e.setOption("captions","track",t?{languageCode:t.language}:{})}),this.dispatchEvent(new Event("loadstart"));let n=this.shadowRoot.querySelector("iframe"),a=function(e){let t={};for(let i of e)t[i.name]=i.value;return t}(this.attributes);t&&n&&o(this,E,JSON.parse(n.getAttribute("data-config")||"{}")),(null==n?void 0:n.src)&&n.src===p(a,this)||(this.shadowRoot.innerHTML=d(a,this),n=this.shadowRoot.querySelector("iframe"));let s=await R("https://www.youtube.com/iframe_api","YT","onYouTubeIframeAPIReady");this.api=new s.Player(n,{events:{onReady:()=>{var e;o(this,m,1),this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),1!==r(this,T)&&(null==(e=this.api)||e.setVolume(100*r(this,T))),this.dispatchEvent(new Event("volumechange")),this.dispatchEvent(new Event("loadcomplete")),this.isLoaded=!0,this.loadComplete.resolve()},onError:e=>{console.error(e),o(this,b,{code:e.data,message:`YouTube iframe player error #${e.data}; visit https://developers.google.com/youtube/iframe_api_reference#onError for the full error message.`}),this.dispatchEvent(new Event("error"))}}});let l=!1;this.api.addEventListener("onStateChange",e=>{var t;let i=e.data;if((i===s.PlayerState.PLAYING||i===s.PlayerState.BUFFERING)&&(l||(l=!0,this.dispatchEvent(new Event("play"))),(this.api.getOption("captions","tracklist")||[]).forEac
17h(e=>{[...this.textTracks].some(t=>t.language===e.languageCode)||r(this,k).addTextTrack("subtitles",e.displayName,e.languageCode),this.textTracks=r(this,k).textTracks}),this.dispatchEvent(new Event("loadstart"))),i===s.PlayerState.PLAYING)this.seeking&&(o(this,y,!1),null==(t=r(this,w))||t.resolve(),this.dispatchEvent(new Event("seeked"))),o(this,m,3),this.dispatchEvent(new Event("playing"));else if(i===s.PlayerState.PAUSED){let e=Math.abs(this.currentTime-u);!this.seeking&&e>.1&&(o(this,y,!0),this.dispatchEvent(new Event("seeking"))),l=!1,this.dispatchEvent(new Event("pause"))}i===s.PlayerState.ENDED&&(l=!1,this.dispatchEvent(new Event("pause")),this.dispatchEvent(new Event("ended")),this.loop&&this.play())}),this.api.addEventListener("onPlaybackRateChange",()=>{this.dispatchEvent(new Event("ratechange"))}),this.api.addEventListener("onVolumeChange",()=>{var e;o(this,T,(null==(e=this.api)?void 0:e.getVolume())/100),this.dispatchEvent(new Event("volumechange"))}),this.api.addEventListener("onVideoProgress",()=>{this.dispatchEvent(new Event("timeupdate"))}),await this.loadComplete;let u=0;setInterval(()=>{var e;let t=Math.abs(this.currentTime-u),i=this.buffered.end(this.buffered.length-1);this.seeking&&i>.1?(o(this,y,!1),null==(e=r(this,w))||e.resolve(),this.dispatchEvent(new Event("seeked"))):!this.seeking&&t>.1&&(o(this,y,!0),this.dispatchEvent(new Event("seeking"))),u=this.currentTime},50);let h=setInterval(()=>{let t=this.buffered.end(this.buffered.length-1);t>=this.duration&&(clearInterval(h),o(this,m,4)),e!=t&&(e=t,this.dispatchEvent(new Event("progress")))},100)}async attributeChangedCallback(e,t,i){if(t!==i)switch(e){case"src":case"autoplay":case"controls":case"loop":case"playsinline":this.load()}}async play(){var e,t,i;return o(this,w,null),await this.loadComplete,null==(e=this.api)||e.playVideo(),t=this,(i=(e,i)=>{let n;t.addEventListener(e,n=()=>{t.removeEventListener(e,n),i()})},function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Promise(e=>{i(...t,function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];i.length>1?e(i):e(i[0])})})})("playing")}async pause(){var e;return await this.loadComplete,null==(e=this.api)?void 0:e.pauseVideo()}get seeking(){return r(this,y)}get readyState(){return r(this,m)}get src(){return this.getAttribute("src")}set src(e){this.src!=e&&this.setAttribute("src",e)}get error(){return r(this,b)}get paused(){var e,t;return this.isLoaded?[-1,0,2,5].includes(null==(t=null==(e=this.api)?void 0:e.getPlayerState)?void 0:t.call(e)):!this.autoplay}get duration(){var e,t;return(null==(t=null==(e=this.api)?void 0:e.getDuration)?void 0:t.call(e))??NaN}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(e){this.autoplay!=e&&this.toggleAttribute("autoplay",!!e)}get buffered(){var e,t;if(!this.isLoaded)return W();let i=(null==(e=this.api)?void 0:e.getVideoLoadedFraction())*(null==(t=this.api)?void 0:t.getDuration());return i>0?W(0,i):W()}get controls(){return this.hasAttribute("controls")}set controls(e){this.controls!=e&&this.toggleAttribute("controls",!!e)}get currentTime(){var e,t;return(null==(t=null==(e=this.api)?void 0:e.getCurrentTime)?void 0:t.call(e))??0}set currentTime(e){this.currentTime!=e&&(o(this,w,new N),this.loadComplete.then(()=>{var t,i;null==(t=this.api)||t.seekTo(e,!0),this.paused&&(null==(i=r(this,w))||i.then(()=>{var e;r(this,w)&&(null==(e=this.api)||e.pauseVideo())}))}))}set defaultMuted(e){this.defaultMuted!=e&&this.toggleAttribute("muted",!!e)}get defaultMuted(){return this.hasAttribute("muted")}get loop(){return this.hasAttribute("loop")}set loop(e){this.loop!=e&&this.toggleAttribute("loop",!!e)}set muted(e){this.muted!=e&&this.loadComplete.then(()=>{var t,i;e?null==(t=this.api)||t.mute():null==(i=this.api)||i.unMute()})}get muted(){var e,t;return this.isLoaded?null==(t=null==(e=this.api)?void 0:e.isMuted)?void 0:t.call(e):this.defaultMuted}get playbackRate(){var e,t;return(null==(t=null==(e=this.api)?void 0:e.getPlaybackRate)?void 0:t.call(e))??1}set playbackRate(e){this.playbackRate!=e&&this.loadComplete.then(()=>{var t;null==(t=this.api)||t.setPlaybackRate(e)})}
17get playsInline(){return this.hasAttribute("playsinline")}set playsInline(e){this.playsInline!=e&&this.toggleAttribute("playsinline",!!e)}get poster(){return this.getAttribute("poster")}set poster(e){this.poster!=e&&this.setAttribute("poster",`${e}`)}set volume(e){this.volume!=e&&(o(this,T,e),this.loadComplete.then(()=>{var t;null==(t=this.api)||t.setVolume(100*e)}))}get volume(){var e;return this.isLoaded?(null==(e=this.api)?void 0:e.getVolume())/100:r(this,T)}constructor(){super(),function(e,t){a(e,t),t.add(e)}(this,L),u(this,"loadComplete",new N),l(this,f,{writable:!0,value:void 0}),l(this,g,{writable:!0,value:void 0}),l(this,m,{writable:!0,value:0}),l(this,y,{writable:!0,value:!1}),l(this,w,{writable:!0,value:void 0}),u(this,"isLoaded",!1),l(this,b,{writable:!0,value:null}),l(this,E,{writable:!0,value:null}),l(this,k,{writable:!0,value:null}),l(this,T,{writable:!0,value:1}),(function(e,t,i){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return i})(this,L,M).call(this,"config")}}function M(e){if(Object.prototype.hasOwnProperty.call(this,e)){let t=this[e];delete this[e],this[e]=t}}function C(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")}function P(e){return String(new URLSearchParams(function(e){let t={};for(let i in e){let n=e[i];!0===n||""===n?t[i]=1:!1===n?t[i]=0:null!=n&&(t[i]=n)}return t}(e)))}u(A,"getTemplateHTML",d),u(A,"shadowRootOptions",{mode:"open"}),u(A,"observedAttributes",["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src"]);let S={};async function R(e,t,i){return S[e]?S[e]:t&&self[t]?(await I(0),self[t]):S[e]=new Promise(function(n,a){let s=document.createElement("script");s.src=e;let r=()=>n(self[t]);i&&(self[i]=r),s.onload=()=>!i&&r(),s.onerror=a,document.head.append(s)})}let I=e=>new Promise(t=>setTimeout(t,e));class N extends Promise{constructor(e=()=>{}){let t,i;super((n,a)=>{e(n,a),t=n,i=a}),this.resolve=t,this.reject=i}}function W(e,t){return Array.isArray(e)?_(e):null==e||null==t||0===e&&0===t?_([[0,0]]):_([[e,t]])}function _(e){return Object.defineProperties(e,{start:{value:t=>e[t][0]},end:{value:t=>e[t][1]}}),e}globalThis.customElements&&!globalThis.customElements.get("youtube-video")&&globalThis.customElements.define("youtube-video",A);var x=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),O={className:"class",htmlFor:"for"};function $(e){return e.toLowerCase()}function H(e){return"boolean"==typeof e?e?"":void 0:"function"==typeof e?void 0:"object"!=typeof e||null===e?e:void 0}function V(e,t,i){var n;e[t]=i,null==i&&t in((null==(n=globalThis.HTMLElement)?void 0:n.prototype)??{})&&e.removeAttribute(t)}var j=function(e){let{react:t,tagName:i,elementClass:n,events:a,displayName:s,defaultProps:r,toAttributeName:l=$,toAttributeValue:o=H}=e,u=Number.parseInt(t.version)>=19,h=t.forwardRef((e,s)=>{var h,c;let d=t.useRef(null),p=t.useRef(new Map),v={},f={},g={},m={};for(let[t,i]of Object.entries(e)){if(x.has(t)){g[t]=i;continue}let e=l(O[t]??t);if(n.prototype&&t in n.prototype&&!(t in((null==(h=globalThis.HTMLElement)?void 0:h.prototype)??{}))&&!(null==(c=n.observedAttributes)?void 0:c.some(t=>t===e))){m[t]=i;continue}if(t.startsWith("on")){v[t]=i;continue}let a=o(i);e&&null!=a&&(f[e]=String(a),u||(g[e]=a)),e&&u&&(a!==H(i)?g[e]=a:g[e]=i)}if("u">typeof window){for(let e in v){let i=v[e],n=e.endsWith("Capture"),s=((null==a?void 0:a[e])??e.slice(2).toLowerCase()).slice(0,n?-7:void 0);t.useLayoutEffect(()=>{let e=null==d?void 0:d.current;if(e&&"function"==typeof i)return e.addEventListener(s,i,n),()=>{e.removeEventListener(s,i,n)}},[null==d?void 0:d.current,i])}t.useLayoutEffect(()=>{if(null===d.current)return;let e=new Map;for(let t in m)V(d.current,t,m[t]),p.current.delete(t),e.set(t,m[t]);for(let[e,t]of p.current)V(d.current,e,void 0);p.current=e})}if("u"<typeof window&&(null==n?void 0:n.getTemplateHTML)&&(null==n?void 0:n.shadowRootOptions)){let{mode:i,delegatesFocus:a}=n.shadowRootOptions;g.children=[t.createElement("template",{shadowrootmode:i,shadowrootdelegatesfocus:a,dangerouslySetInnerHTML:{__html:n.getTemplateHTML(f,e)},key:"ce-la-react-ssr-template-shadow-root"}),g.children]}return t.createElement(i,{...r,...g,ref:t.useCallback(e=>{d.current=e,"function"==typeof s?s(e):null!==s&&(s.current=e)},[s])},g.children)});return h.displayName=s??n.name,h}({react:n,tagName:"youtube-video",elementClass:A,toAttributeName:e=>"muted"===e?"":"defaultMuted"===e?"muted":$(e)})}}]); 18//# sourceMappingURL=spa.vendor.youtube-video-element.bundle.1073212b4b1af3a2.min.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.