1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cbf8d9a9-b70e-4688-aa98-9342257a1e49",e._sentryDebugIdIdentifier="sentry-dbid-cbf8d9a9-b70e-4688-aa98-9342257a1e49")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6395],{36521:(e,t,i)=>{i.r(t),i.d(t,{default:()=>h});var n=i(12115),a=i(91504),r=i(91421);class l extends(0,r.u6)(a.lB){static shadowRootOptions={...a.lB.shadowRootOptions};static getTemplateHTML=e=>{let{src:t,...i}=e;return a.lB.getTemplateHTML(i)};#e;attributeChangedCallback(e,t,i){"src"!==e&&super.attributeChangedCallback(e,t,i),"src"===e&&t!=i&&this.load()}async _initThumbnails(e){let t=async(t,i)=>{let n=[],a=e.timescale||1,r=e.startNumber||1,l=e.presentationTimeOffset?e.presentationTimeOffset/a:0,o=e.segmentDuration;for(let e=0;e<t;e++){let a=function({thIndex:e,tduration:t,thduration:i,ttiles:n,startNumber:a,pto:r}){return(Math.floor(e/n)+a-1)*t-r+(e%n+1-1)*i}({thIndex:e,thduration:i,ttiles:t,tduration:o,startNumber:r,pto:l}),s=a+i,d=new Promise((e,t)=>{this.api.provideThumbnail(a,({url:i,width:n,height:r,x:l,y:o})=>{try{let t=new VTTCue(a,s,`${i}#xywh=${l},${o},${n},${r}`);e(t)}catch(e){t(e)}})});n.push(d)}return await Promise.all(n).catch(e=>console.error("Error processing thumbnails",e))},{totalThumbnails:i,thumbnailDuration:n}=function(e){var t,i;let[n,a]=e.essentialProperties[0].value.split("x").map(Number),r=(null==(i=null==(t=e.adaptation)?void 0:t.period)?void 0:i.duration)||null,l=e.segmentDuration,o=l/(e.timescale||1)/(n*a);return{totalThumbnails:null!=r?Math.ceil(r/o):Math.ceil(l/o),thumbnailDuration:o}}(e),a=await t(i,n),r=this.nativeEl.querySelector('track[label="thumbnails"]');if(!r){r=function(){let e=document.createElement("track");return e.kind="metadata",e.label="thumbnails",e.srclang="en",e.mode="hidden",e.default=!0,e}(),this.nativeEl.appendChild(r);let e=function(e){let t="WEBVTT\n\n";for(let i of e)t+=`${n(i.startTime)} --> ${n(i.endTime)} 2${i.text} 3 4`;let i=new Blob([t],{type:"text/vtt"});return URL.createObjectURL(i);function n(e){let t=String(Math.floor(e/3600)).padStart(2,"0"),i=String(Math.floor(e%3600/60)).padStart(2,"0"),n=(e%60).toFixed(3).padStart(6,"0");return`${t}:${i}:${n}`}}(a);r.src=e,r.dispatchEvent(new Event("change"))}}async load(){if(this.#e)return void this.api.attachSource(this.src);this.#e=!0;let e=await Promise.all([i.e(1465),i.e(5376)]).then(i.bind(i,94462));this.api=e.MediaPlayer().create(),this.api.initialize(this.nativeEl,this.src,this.autoplay),this.api.on(e.MediaPlayer.events.STREAM_INITIALIZED,()=>{let e=this.api.getRepresentationsByType("video"),t=this.videoTracks.getTrackById("main");t||((t=this.addVideoTrack("main")).id="main",t.selected=!0),e.forEach(e=>{let i=e.bandwidth??e.bitrate??(Number.isFinite(e.bitrateInKbit)?1e3*e.bitrateInKbit:void 0);t.addRendition(e.id,e.width,e.height,e.mimeType??e.codec,i).id=e.id}),this.videoRenditions.addEventListener("change",()=>{let e=this.videoRenditions[this.videoRenditions.selectedIndex];(null==e?void 0:e.id)?(this.api.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!1}}}}),this.api.setRepresentationForTypeById("video",e.id,!0)):this.api.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!0}}}})}),this.api.isDynamic()||this.api.getRepresentationsByType("image").forEach(async(e,t)=>{t>0||this._initThumbnails(e)})})}}globalThis.customElements&&!globalThis.customElements.get("dash-video")&&globalThis.customElements.define("dash-video",l);var o=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),s={className:"class",htmlFor:"for"};function d(e){return e.toLowerCase()}function u(e){return"boolean"==typeof e?e?"":void 0:"function"==typeof e?void 0:"object"!=typeof e||null===e?e:void 0}function c(e,t,i){var n,a;e[t]=i,null==i&&t in(null!=(a=null==(n=globalThis.HTMLElement)?void 0:n.prototype)?a:{})&&e.removeAttribute(t)}var h=function(e){let{react:t,tagName:i,elementClass:n,events:a,displayName:r,defaultProps:l,toAttributeName:h=d,toAttributeValue:p=u}=e,f=Number.parseInt(t.version)>=19,m=t.forwardRef((e,r)=>{var d,m,b,v,y;let g=t.useRef(null),T=t.useRef(new Map),w={},E={},I={},M={};for(let[t,i]of Object.entries(e)){if(o.has(t)){I[t]=i;continue}let e=h(null!=(b=s[t])?b:t);if(n.prototype&&t in n.prototype&&!(t in(null!=(v=null==(d=globalThis.HTMLElement)?void 0:d.prototype)?v:{}))&&!(null==(m=n.observedAttributes)?void 0:m.some(t=>t===e))){M[t]=i;continue}if(t.startsWith("on")){w[t]=i;continue}let a=p(i);e&&null!=a&&(E[e]=String(a),f||(I[e]=a)),e&&f&&(a!==u(i)?I[e]=a:I[e]=i)}if("undefined"!=typeof window){for(let e in w){let i=w[e],n=e.endsWith("Capture"),r=(null!=(y=null==a?void 0:a[e])?y:e.slice(2).toLowerCase()).slice(0,n?-7:void 0);t.useLayoutEffect(()=>{let e=null==g?void 0:g.current;if(e&&"function"==typeof i)return e.addEventListener(r,i,n),()=>{e.removeEventListener(r,i,n)}},[null==g?void 0:g.current,i])}t.useLayoutEffect(()=>{if(null===g.current)return;let e=new Map;for(let t in M)c(g.current,t,M[t]),T.current.delete(t),e.set(t,M[t]);for(let[e,t]of T.current)c(g.current,e,void 0);T.current=e})}if("undefined"==typeof window&&(null==n?void 0:n.getTemplateHTML)&&(null==n?void 0:n.shadowRootOptions)){let{mode:i,delegatesFocus:a}=n.shadowRootOptions;
4I.children=[t.createElement("template",{shadowrootmode:i,shadowrootdelegatesfocus:a,dangerouslySetInnerHTML:{__html:n.getTemplateHTML(E,e)}}),I.children]}return t.createElement(i,{...l,...I,ref:t.useCallback(e=>{g.current=e,"function"==typeof r?r(e):null!==r&&(r.current=e)},[r])})});return m.displayName=null!=r?r:n.name,m}({react:n,tagName:"dash-video",elementClass:l,toAttributeName:e=>"muted"===e?"":"defaultMuted"===e?"muted":d(e)})}}]); 5//# sourceMappingURL=reactPlayerDash.b698d93b6c817469.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.