PageSourceSearch

https://www.copilotkit.ai/_next/static/chunks/reactPlayerDash.7ad23247fe86896c.js

js copilotkit.ai collected 2026-10-02 03:06:08 UTC 5,527 bytes, 4 lines download raw bytes

1"use strict";(globalThis.webpackChunk_N_E=globalThis.webpackChunk_N_E||[]).push([[6395],{44136:(e,t,i)=>{i.r(t),i.d(t,{default:()=>h});var n=i(23796),a=i(84705),r=i(53159);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,u=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(u)}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 i.e(6917).then(i.bind(i,75821));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 u(e){return e.toLowerCase()}function d(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=u,toAttributeValue:p=d}=e,m=Number.parseInt(t.version)>=19,f=t.forwardRef((e,r)=>{var u,f,v,b,T;let y=t.useRef(null),g=t.useRef(new Map),w={},E={},M={},L={};for(let[t,i]of Object.entries(e)){if(o.has(t)){M[t]=i;continue}let e=h(null!=(v=s[t])?v:t);if(n.prototype&&t in n.prototype&&!(t in(null!=(b=null==(u=globalThis.HTMLElement)?void 0:u.prototype)?b
4:{}))&&!(null==(f=n.observedAttributes)?void 0:f.some(t=>t===e))){L[t]=i;continue}if(t.startsWith("on")){w[t]=i;continue}let a=p(i);e&&null!=a&&(E[e]=String(a),m||(M[e]=a)),e&&m&&(a!==d(i)?M[e]=a:M[e]=i)}if("undefined"!=typeof window){for(let e in w){let i=w[e],n=e.endsWith("Capture"),r=(null!=(T=null==a?void 0:a[e])?T:e.slice(2).toLowerCase()).slice(0,n?-7:void 0);t.useLayoutEffect(()=>{let e=null==y?void 0:y.current;if(e&&"function"==typeof i)return e.addEventListener(r,i,n),()=>{e.removeEventListener(r,i,n)}},[null==y?void 0:y.current,i])}t.useLayoutEffect(()=>{if(null===y.current)return;let e=new Map;for(let t in L)c(y.current,t,L[t]),g.current.delete(t),e.set(t,L[t]);for(let[e,t]of g.current)c(y.current,e,void 0);g.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;M.children=[t.createElement("template",{shadowrootmode:i,shadowrootdelegatesfocus:a,dangerouslySetInnerHTML:{__html:n.getTemplateHTML(E,e)}}),M.children]}return t.createElement(i,{...l,...M,ref:t.useCallback(e=>{y.current=e,"function"==typeof r?r(e):null!==r&&(r.current=e)},[r])})});return f.displayName=null!=r?r:n.name,f}({react:n,tagName:"dash-video",elementClass:l,toAttributeName:e=>"muted"===e?"":"defaultMuted"===e?"muted":u(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.