PageSourceSearch

https://lakotalaw.org/reactPlayerHls-03834a763bfd6a52695c.js

js lakotalaw.org collected 2026-10-02 03:03:25 UTC 7,060 bytes, 2 lines download raw bytes

1/*! For license information please see reactPlayerHls-03834a763bfd6a52695c.js.LICENSE.txt */
2"use strict";(self.webpackChunkgatsby_romeroac=self.webpackChunkgatsby_romeroac||[]).push([[262],{7693:function(e,t,i){i.r(t),i.d(t,{default:function(){return v}});var n=i(2086),s=i(4167),a=i(7650),o=i(5367);const r=(l=(0,a.u6)(s.lB),class extends l{static shadowRootOptions={...l.shadowRootOptions};static getTemplateHTML=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{src:i,...n}=e;return`\n        <script type="application/json" id="config">\n          ${JSON.stringify(t.config||{})}\n        <\/script>\n        ${l.getTemplateHTML(n)}\n      `};#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()}#n(){var e,t;null==(e=this.#e)||e.remove(),null==(t=this.nativeEl)||t.removeEventListener("webkitcurrentplaybacktargetiswirelesschanged",this.#s),this.api&&(this.api.detachMedia(),this.api.destroy(),this.api=null)}async load(){var e,t;const i=!this.api;if(this.#n(),this.src){if(i&&!this.#t&&(this.#t=JSON.parse((null==(e=this.shadowRoot.getElementById("config"))?void 0:e.textContent)||"{}")),o.Ay.isSupported()){switch(await Promise.resolve(),this.api=new o.Ay({liveDurationInfinity:!0,autoStartLoad:!1,...this.config}),this.api.loadSource(this.src),this.api.attachMedia(this.nativeEl),this.nativeEl.preload){case"none":{const e=()=>this.api.startLoad();this.nativeEl.addEventListener("play",e,{once:!0}),this.api.on(o.Ay.Events.DESTROYING,()=>{this.nativeEl.removeEventListener("play",e)});break}case"metadata":{const e=this.api.config.maxBufferLength,t=this.api.config.maxBufferSize;this.api.config.maxBufferLength=1,this.api.config.maxBufferSize=1;const i=()=>{this.api.config.maxBufferLength=e,this.api.config.maxBufferSize=t};this.nativeEl.addEventListener("play",i,{once:!0}),this.api.on(o.Ay.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.#s),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);const e=new WeakMap;this.api.on(o.Ay.Events.MANIFEST_PARSED,(t,i)=>{this.nativeEl.autoplay&&this.nativeEl.paused&&this.nativeEl.play().catch(e=>{console.warn("Autoplay failed:",e)}),s();let n=this.videoTracks.getTrackById("main");n||(n=this.addVideoTrack("main"),n.id="main",n.selected=!0);for(const[s,a]of i.levels.entries()){const t=n.addRendition(a.url[0],a.width,a.height,a.videoCodec,a.bitrate);e.set(a,`${s}`),t.id=`${s}`}for(let[e,s]of i.audioTracks.entries()){const t=s.default?"main":"alternative",i=this.addAudioTrack(t,s.name,s.lang);i.id=`${e}`,s.default&&(i.enabled=!0)}}),this.audioTracks.addEventListener("change",()=>{var e;const 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.Ay.Events.LEVELS_UPDATED,(t,i)=>{const n=this.videoTracks[this.videoTracks.selectedIndex??0];if(!n)return;const s=i.levels.map(t=>e.get(t));for(const e of this.videoRenditions)e.id&&!s.includes(e.id)&&n.removeRendition(e)});let i=null;this.api.on(o.Ay.Events.ERROR,(e,t)=>{t.type===o.Ay.ErrorTypes.NETWORK_ERROR&&t.details===o.Ay.ErrorDetails.FRAG_LOAD_ERROR&&(i=t.frag.level)}),this.api.on(o.Ay.Events.LEVEL_SWITCHED,(e,t)=>{const n=t.level;null!==i&&n<i&&(console.warn(`⚠️ hls.js downgraded quality from level ${i} to ${n} due to fragment load failure.`),this.videoRenditions.selectedIndex=n,i=null)});const n=e=>{const t=e.target.selectedIndex;t!=this.api.nextLevel&&(this.api.nextLevel=t)};null==(t=this.videoRenditions)||t.addEventListener("change",n);const s=()=>{for(const e of this.videoTracks)this.removeVideoTrack(e);for(const e of this.audioTracks)this.removeAudioTrack(e)};return void this.api.once(o.Ay.Events.DESTROYING,s)}await Promise.resolve(),this.nativeEl.canPlayType("application/vnd.apple.mpegurl")&&(this.nativeEl.src=this.src)}}#s=()=>{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)){const t=this[e];delete this[e],this[e]=t}}});var l;globalThis.customElements&&!globalThis.customElements.get("hls-video")&&globalThis.customElements.define("hls-video",r);var c=r,d=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),u={className:"class",htmlFor:"for"};function h(e){return e.toLowerCase()}function p(e){return"boolean"==typeof e?e?"":void 0:"function"==typeof e||"object"==typeof e&&null!==e?void 0:e}function f(e,t,i){var n;e[t]=i,null==i&&t in((null==(n=globalThis.HTMLElement)?void 0:n.prototype)??{})&&e.removeAttribute(t)}var v=function(e){let{react:t,tagName:i,elementClass:n,events:s,displayName:a,defaultProps:o,toAttributeName:r=h,toAttributeValue:l=p}=e;const c=Number.parseInt(t.version)>=19,v=t.forwardRef((e,a)=>{var h,v;const g=t.useRef(null),y=t.useRef(new Map),m={},E={},T={},b={};for(const[t,i]of Object.entries(e)){if(d.has(t)){T[t]=i;continue}const e=r(u[t]??t);if(n.prototype&&t in n.prototype&&!(t in((null==(h=globalThis.HTMLElement)?void 0:h.prototype)??{}))&&!(null==(v=n.observedAttributes)?void 0:v.some(t=>t===e))){b[t]=i;continue}if(t.startsWith("on")){m[t]=i;continue}const s=l(i);if(e&&null!=s&&(E[e]=String(s),c||(T[e]=s)),e&&c){const t=p(i);T[e]=s!==t?s:i}}if("undefined"!=typeof window){for(const e in m){const i=m[e],n=e.endsWith("Capture"),a=((null==s?void 0:s[e])??e.slice(2).toLowerCase()).slice(0,n?-7:void 0);t.useLayoutEffect(()=>{const e=null==g?void 0:g.current;if(e&&"function"==typeof i)return e.addEventListener(a,i,n),()=>{e.removeEventListener(a,i,n)}},[null==g?void 0:g.current,i])}t.useLayoutEffect(()=>{if(null===g.current)return;const e=new Map;for(const t in b)f(g.current,t,b[t]),y.current.delete(t),e.set(t,b[t]);for(const[t,i]of y.current)f(g.current,t,void 0);y.current=e})}if("undefined"==typeof window&&(null==n?void 0:n.getTemplateHTML)&&(null==n?void 0:n.shadowRootOptions)){const{mode:i,delegatesFocus:s}=n.shadowRootOptions,a=t.createElement("template",{shadowrootmode:i,shadowrootdelegatesfocus:s,dangerouslySetInnerHTML:{__html:n.getTemplateHTML(E,e)},key:"ce-la-react-ssr-template-shadow-root"});T.children=[a,T.children]}return t.createElement(i,{...o,...T,ref:t.useCallback(e=>{g.current=e,"function"==typeof a?a(e):null!==a&&(a.current=e)},[a])},T.children)});return v.displayName=a??n.name,v}({react:n,tagName:"hls-video",elementClass:c,toAttributeName(e){return"muted"===e?"":"defaultMuted"===e?"muted":h(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.