1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3184],{11443:function(e,t,i){let a;i.r(t),i.d(t,{default:function(){return f}});var n=i(7653),s=i(51167),l=i(72886),o=i(43489);let r=(a=(0,l.lK)(s.zM),class extends a{static shadowRootOptions={...a.shadowRootOptions};static getTemplateHTML=(e,t={})=>{let{src:i,...n}=e;return` 2 <script type="application/json" id="config"> 3 ${JSON.stringify(t.config||{})} 4 </script> 5 ${a.getTemplateHTML(n)} 6 `};#e=null;#t=null;constructor(){super(),this.#i("config")}get config(){return this.#t}set config(e){this.#t=e}attributeChangedCallback(e,t,i){"src"!==e&&super.attributeChangedCallback(e,t,i),"src"===e&&t!=i&&this.load()}#a(){var e,t;null==(e=this.#e)||e.remove(),null==(t=this.nativeEl)||t.removeEventListener("webkitcurrentplaybacktargetiswirelesschanged",this.#n),this.api&&(this.api.detachMedia(),this.api.destroy(),this.api=null)}async load(){var e,t;let i=!this.api;if(this.#a(),this.src){if(i&&!this.#t&&(this.#t=JSON.parse((null==(e=this.shadowRoot.getElementById("config"))?void 0:e.textContent)||"{}")),o.ZP.isSupported()){switch(this.api=new o.ZP({liveDurationInfinity:!0,autoStartLoad:!1,...this.config}),await Promise.resolve(),this.api.loadSource(this.src),this.api.attachMedia(this.nativeEl),this.nativeEl.preload){case"none":{let e=()=>this.api.startLoad();this.nativeEl.addEventListener("play",e,{once:!0}),this.api.on(o.ZP.Events.DESTROYING,()=>{this.nativeEl.removeEventListener("play",e)});break}case"metadata":{let e=this.api.config.maxBufferLength,t=this.api.config.maxBufferSize;this.api.config.maxBufferLength=1,this.api.config.maxBufferSize=1;let i=()=>{this.api.config.maxBufferLength=e,this.api.config.maxBufferSize=t};this.nativeEl.addEventListener("play",i,{once:!0}),this.api.on(o.ZP.Events.DESTROYING,()=>{this.nativeEl.removeEventListener("play",i)}),this.api.startLoad();break}default:this.api.startLoad()}this.nativeEl.webkitCurrentPlaybackTargetIsWireless&&this.api.stopLoad(),this.nativeEl.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",this.#n),this.#e=document.createElement("source"),this.#e.setAttribute("type","application/x-mpegURL"),this.#e.setAttribute("src",this.src),this.nativeEl.disableRemotePlayback=!1,this.nativeEl.append(this.#e);let e=new WeakMap;this.api.on(o.ZP.Events.MANIFEST_PARSED,(t,a)=>{this.nativeEl.autoplay&&this.nativeEl.paused&&this.nativeEl.play().catch(e=>{console.warn("Autoplay failed:",e)}),i();let n=this.videoTracks.getTrackById("main");for(let[t,i]of(n||((n=this.addVideoTrack("main")).id="main",n.selected=!0),a.levels.entries())){let a=n.addRendition(i.url[0],i.width,i.height,i.videoCodec,i.bitrate);e.set(i,`${t}`),a.id=`${t}`}for(let[e,t]of a.audioTracks.entries()){let i=t.default?"main":"alternative",a=this.addAudioTrack(i,t.name,t.lang);a.id=`${e}`,t.default&&(a.enabled=!0)}}),this.audioTracks.addEventListener("change",()=>{var e;let t=+(null==(e=[...this.audioTracks].find(e=>e.enabled))?void 0:e.id),i=this.api.audioTracks.map(e=>e.id);t!=this.api.audioTrack&&i.includes(t)&&(this.api.audioTrack=t)}),this.api.on(o.ZP.Events.LEVELS_UPDATED,(t,i)=>{let a=this.videoTracks[this.videoTracks.selectedIndex??0];if(!a)return;let n=i.levels.map(t=>e.get(t));for(let e of this.videoRenditions)e.id&&!n.includes(e.id)&&a.removeRendition(e)}),null==(t=this.videoRenditions)||t.addEventListener("change",e=>{let t=e.target.selectedIndex;t!=this.api.nextLevel&&(this.api.nextLevel=t)});let i=()=>{for(let e of this.videoTracks)this.removeVideoTrack(e);for(let e of this.audioTracks)this.removeAudioTrack(e)};this.api.once(o.ZP.Events.DESTROYING,i);return}await Promise.resolve(),this.nativeEl.canPlayType("application/vnd.apple.mpegurl")&&(this.nativeEl.src=this.src)}}#n=()=>{var e,t,i;(null==(e=this.nativeEl)?void 0:e.webkitCurrentPlaybackTargetIsWireless)?null==(t=this.api)||t.stopLoad():null==(i=this.api)||i.startLoad()};#i(e){if(Object.prototype.hasOwnProperty.call(this,e)){let t=this[e];delete this[e],this[e]=t}}});globalThis.customElements&&!globalThis.customElements.get("hls-video")&&globalThis.customElements.define("hls-video",r);var d=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),u={className:"class",htmlFor:"for"};function c(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 p(e,t,i){var a,n;e[t]=i,null==i&&t in(null!==(n=null==(a=globalThis.HTMLElement)?void 0:a.prototype)&&void 0!==n?n:{})&&e.removeAttribute(t)}var f=function(e){let{react:t,tagName:i,elementClass:a,events:n,displayName:s,defaultProps:l,toAttributeName:o=c,toAttributeValue:r=h}=e,f=Number.parseInt(t.version)>=19,v=t.forwardRef((e,s)=>{var c,v,g,m,E;let y=t.useRef(null),T=t.useRef(new Map),b={},L={},k={},w={};for(let[t,i]of Object.entries(e)){if(d.has(t)){k[t]=i;continue}let e=o(null!==(g=u[t])&&void 0!==g?g:t);if(a.prototype&&t in a.prototype&&!(t in(null!==(m=null==(c=globalThis.HTMLElement)?void 0:c.prototype)&&void 0!==m?m:{}))&&!(null==(v=a.observedAttributes)?void 0:v.some(t=>t===e))){w[t]=i;continue}if(t.startsWith("on")){b[t]=i;continue}let n=r(i);e&&null!=n&&(L[e]=String(n),f||(k[e]=n)),e&&f&&(n!==h(i)?k[e]=n:k[e]=i)}if("undefined"!=typeof window){for(let e in b){let i=b[e],a=e.endsWith("Capture"),s=(null!==(E=null==n?void 0:n[e])&&void 0!==E?E:e.slice(2).toLowerCase()).slice(0,a?-7:void 0);t.useLayoutEffect(()=>{let e=null==y?void 0:y.current;if(e&&"function"==typeof i)return e.addEventListener(s,i,a),()=>{e.removeEventListener(s,i,a)}},[null==y?void 0:y.current,i])}t.useLayoutEffect(()=>{if(null===y.current)return;let e=new Map;for(let t in w)p(y.current,t,w[t]),T.current.delete(t),e.set(t,w[t]);for(let[e,t]of T.current)p(y.current,e,void 0);T.current=e})}if("undefined"==typeof window&&(null==a?void 0:a.getTemplateHTML)&&(null==a?void 0:a.shadowRootOptions)){let{mode:i,delegatesFocus:n}=a.shadowRootOptions,s=t.createElement("template",{shadowrootmode:i,shadowrootdelegatesfocus:n,dangerouslySetInnerHTML:{__html:a.getTemplateHTML(L,e)}});k.children=[s,k.children]}return t.createElement(i,{...l,...k,ref:t.useCallback(e=>{y.current=e,"function"==typeof s?s(e):null!==s&&(s.current=e)},[s])})});return v.displayName=null!=s?s:a.name,v}({react:n,tagName:"hls-video",elementClass:r,toAttributeName:e=>"muted"===e?"":"defaultMuted"===e?"muted":c(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.