156 lines
1.1 MiB
JavaScript
Raw Normal View History

2025-04-28 18:26:06 -04:00
var pO=(R,k)=>()=>(k||R((k={exports:{}}).exports,k),k.exports);var tM=pO((iM,Wy)=>{(function(){const k=document.createElement("link").relList;if(k&&k.supports&&k.supports("modulepreload"))return;for(const E of document.querySelectorAll('link[rel="modulepreload"]'))x(E);new MutationObserver(E=>{for(const B of E)if(B.type==="childList")for(const M of B.addedNodes)M.tagName==="LINK"&&M.rel==="modulepreload"&&x(M)}).observe(document,{childList:!0,subtree:!0});function U(E){const B={};return E.integrity&&(B.integrity=E.integrity),E.referrerPolicy&&(B.referrerPolicy=E.referrerPolicy),E.crossOrigin==="use-credentials"?B.credentials="include":E.crossOrigin==="anonymous"?B.credentials="omit":B.credentials="same-origin",B}function x(E){if(E.ep)return;E.ep=!0;const B=U(E);fetch(E.href,B)}})();var hO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wp(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}var kS={exports:{}},Hy={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var $E;function yO(){if($E)return Hy;$E=1;var R=Symbol.for("react.transitional.element"),k=Symbol.for("react.fragment");function U(x,E,B){var M=null;if(B!==void 0&&(M=""+B),E.key!==void 0&&(M=""+E.key),"key"in E){B={};for(var y in E)y!=="key"&&(B[y]=E[y])}else B=E;return E=B.ref,{$$typeof:R,type:x,key:M,ref:E!==void 0?E:null,props:B}}return Hy.Fragment=k,Hy.jsx=U,Hy.jsxs=U,Hy}var eA;function gO(){return eA||(eA=1,kS.exports=yO()),kS.exports}var ye=gO(),MS={exports:{}},jt={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var tA;function vO(){if(tA)return jt;tA=1;var R=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),M=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),a=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.iterator;function D(oe){return oe===null||typeof oe!="object"?null:(oe=m&&oe[m]||oe["@@iterator"],typeof oe=="function"?oe:null)}var X={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,te={};function ae(oe,Oe,$e){this.props=oe,this.context=Oe,this.refs=te,this.updater=$e||X}ae.prototype.isReactComponent={},ae.prototype.setState=function(oe,Oe){if(typeof oe!="object"&&typeof oe!="function"&&oe!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,oe,Oe,"setState")},ae.prototype.forceUpdate=function(oe){this.updater.enqueueForceUpdate(this,oe,"forceUpdate")};function pe(){}pe.prototype=ae.prototype;function je(oe,Oe,$e){this.props=oe,this.context=Oe,this.refs=te,this.updater=$e||X}var ee=je.prototype=new pe;ee.constructor=je,A(ee,ae.prototype),ee.isPureReactComponent=!0;var ke=Array.isArray,Re={H:null,A:null,T:null,S:null,V:null},nt=Object.prototype.hasOwnProperty;function Gt(oe,Oe,$e,qe,G,Tt){return $e=Tt.ref,{$$typeof:R,type:oe,key:Oe,ref:$e!==void 0?$e:null,props:Tt}}function ln(oe,Oe){return Gt(oe.type,Oe,void 0,void 0,void 0,oe.props)}function cn(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===R}function L(oe){var Oe={"=":"=0",":":"=2"};return"$"+oe.replace(/[=:]/g,function($e){return Oe[$e]})}var ce=/\/+/g;function he(oe,Oe){return typeof oe=="object"&&oe!==null&&oe.key!=null?L(""+oe.key):Oe.toString(36)}function it(){}function Le(oe){switch(oe.status){case"fulfilled":return oe.value;case"rejected":throw oe.reason;default:switch(typeof oe.status=="string"?oe.then(it,it):(oe.status="pending",oe.then(function(Oe){oe.status==="pending"&&(oe.status="fulfilled",oe.value=Oe)},function(Oe){oe.status==="pending"&&(oe.status="rejected",oe.reason=Oe)})),oe.status){case"fulfilled":return oe.value;case"rejected":throw oe.reason}}throw oe}function De(oe,Oe,$e,qe,G){var Tt=typeof oe;(Tt==="undefined"||Tt==="boolean")&&(oe=null);var dt=!1;if(oe===null)dt=!0;else switch(Tt){case"bigint":case"string":case"number":dt=!0;break;case"object":switch(oe.$$typeof){case R:case k:dt=!0;break;case p:return dt=oe._init,De(dt(oe._payload),Oe,$e,qe,G)}}if(dt)return G=G(oe),dt=qe===""?"."+he(oe,0):qe,ke(G)?($e="",dt!=null&&($e=dt.replace(ce,"$&/")+"/"),De(G,Oe,$e,"",function(rl){return rl})):G!=null&&(cn(G)&&(G=ln(G,$e+(G.key==null||oe&&oe.key===G.key?"":(""+G.key).replace(ce,"$&/")+"/")+dt)),Oe.push(G)),1;dt=0;var Vi=qe===""?".":qe+":";if(ke(oe))for(var Tn=0;Tn<oe.length;Tn++)qe=oe[Tn],Tt=Vi+he(qe,Tn),dt+=De(qe,Oe,$e,Tt,G);else if(Tn=D(oe),typeof Tn=="function")for(oe=Tn.call(oe),Tn=0;!(qe=oe.next()).done;)qe=qe.value,Tt=Vi+he(qe,Tn++),dt+=De(qe,Oe,$e,Tt,G);else if(Tt==="object"){if(typeof oe.then=="function")return De(Le(oe),Oe,$e,qe,G);throw Oe=String(oe),Error("Objects are not valid as a React child (found: "+(Oe==="[object Object]"?"object with keys {"+Object.keys(oe).join(", ")+"}":Oe)+"). If you meant to render a collection of children, use an array instead.")}return dt}function Te(oe,Oe,$e){if(oe==null)return oe;var qe=[],G=0;return De(oe,qe,"","",function(Tt){return Oe.call($e,Tt,G++)}),qe}function _e(oe){if(oe._status===-1){var Oe=oe._result;Oe=Oe(),Oe.then(function($e){(oe._status===0||oe._status===-1)&&(oe._status=1,oe._result=$e)},function($e){(oe._status===0||oe._status===-1)&&(oe._status=2,oe._result=$e)}),oe._status===-1&&(oe._status=0,oe._result=Oe)}if(oe._status===1)return oe._result.default;throw oe._result}var ft=typeof reportError=="function"?reportError:function(oe){if(typeof window=="object"&&typeof window.ErrorEvent=="func
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var iA;function mO(){return iA||(iA=1,function(R){function k(Te,_e){var ft=Te.length;Te.push(_e);e:for(;0<ft;){var Sn=ft-1>>>1,oe=Te[Sn];if(0<E(oe,_e))Te[Sn]=_e,Te[ft]=oe,ft=Sn;else break e}}function U(Te){return Te.length===0?null:Te[0]}function x(Te){if(Te.length===0)return null;var _e=Te[0],ft=Te.pop();if(ft!==_e){Te[0]=ft;e:for(var Sn=0,oe=Te.length,Oe=oe>>>1;Sn<Oe;){var $e=2*(Sn+1)-1,qe=Te[$e],G=$e+1,Tt=Te[G];if(0>E(qe,ft))G<oe&&0>E(Tt,qe)?(Te[Sn]=Tt,Te[G]=ft,Sn=G):(Te[Sn]=qe,Te[$e]=ft,Sn=$e);else if(G<oe&&0>E(Tt,ft))Te[Sn]=Tt,Te[G]=ft,Sn=G;else break e}}return _e}function E(Te,_e){var ft=Te.sortIndex-_e.sortIndex;return ft!==0?ft:Te.id-_e.id}if(R.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var B=performance;R.unstable_now=function(){return B.now()}}else{var M=Date,y=M.now();R.unstable_now=function(){return M.now()-y}}var s=[],a=[],p=1,m=null,D=3,X=!1,A=!1,te=!1,ae=!1,pe=typeof setTimeout=="function"?setTimeout:null,je=typeof clearTimeout=="function"?clearTimeout:null,ee=typeof setImmediate<"u"?setImmediate:null;function ke(Te){for(var _e=U(a);_e!==null;){if(_e.callback===null)x(a);else if(_e.startTime<=Te)x(a),_e.sortIndex=_e.expirationTime,k(s,_e);else break;_e=U(a)}}function Re(Te){if(te=!1,ke(Te),!A)if(U(s)!==null)A=!0,nt||(nt=!0,he());else{var _e=U(a);_e!==null&&De(Re,_e.startTime-Te)}}var nt=!1,Gt=-1,ln=5,cn=-1;function L(){return ae?!0:!(R.unstable_now()-cn<ln)}function ce(){if(ae=!1,nt){var Te=R.unstable_now();cn=Te;var _e=!0;try{e:{A=!1,te&&(te=!1,je(Gt),Gt=-1),X=!0;var ft=D;try{t:{for(ke(Te),m=U(s);m!==null&&!(m.expirationTime>Te&&L());){var Sn=m.callback;if(typeof Sn=="function"){m.callback=null,D=m.priorityLevel;var oe=Sn(m.expirationTime<=Te);if(Te=R.unstable_now(),typeof oe=="function"){m.callback=oe,ke(Te),_e=!0;break t}m===U(s)&&x(s),ke(Te)}else x(s);m=U(s)}if(m!==null)_e=!0;else{var Oe=U(a);Oe!==null&&De(Re,Oe.startTime-Te),_e=!1}}break e}finally{m=null,D=ft,X=!1}_e=void 0}}finally{_e?he():nt=!1}}}var he;if(typeof ee=="function")he=function(){ee(ce)};else if(typeof MessageChannel<"u"){var it=new MessageChannel,Le=it.port2;it.port1.onmessage=ce,he=function(){Le.postMessage(null)}}else he=function(){pe(ce,0)};function De(Te,_e){Gt=pe(function(){Te(R.unstable_now())},_e)}R.unstable_IdlePriority=5,R.unstable_ImmediatePriority=1,R.unstable_LowPriority=4,R.unstable_NormalPriority=3,R.unstable_Profiling=null,R.unstable_UserBlockingPriority=2,R.unstable_cancelCallback=function(Te){Te.callback=null},R.unstable_forceFrameRate=function(Te){0>Te||125<Te?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ln=0<Te?Math.floor(1e3/Te):5},R.unstable_getCurrentPriorityLevel=function(){return D},R.unstable_next=function(Te){switch(D){case 1:case 2:case 3:var _e=3;break;default:_e=D}var ft=D;D=_e;try{return Te()}finally{D=ft}},R.unstable_requestPaint=function(){ae=!0},R.unstable_runWithPriority=function(Te,_e){switch(Te){case 1:case 2:case 3:case 4:case 5:break;default:Te=3}var ft=D;D=Te;try{return _e()}finally{D=ft}},R.unstable_scheduleCallback=function(Te,_e,ft){var Sn=R.unstable_now();switch(typeof ft=="object"&&ft!==null?(ft=ft.delay,ft=typeof ft=="number"&&0<ft?Sn+ft:Sn):ft=Sn,Te){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=ft+oe,Te={id:p++,callback:_e,priorityLevel:Te,startTime:ft,expirationTime:oe,sortIndex:-1},ft>Sn?(Te.sortIndex=ft,k(a,Te),U(s)===null&&Te===U(a)&&(te?(je(Gt),Gt=-1):te=!0,De(Re,ft-Sn))):(Te.sortIndex=oe,k(s,Te),A||X||(A=!0,nt||(nt=!0,he()))),Te},R.unstable_shouldYield=L,R.unstable_wrapCallback=function(Te){var _e=D;return function(){var ft=D;D=_e;try{return Te.apply(this,arguments)}finally{D=ft}}}}(NS)),NS}var rA;function SO(){return rA||(rA=1,PS.exports=mO()),PS.exports}var LS={exports:{}},pr={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var oA;function TO(){if(oA)return pr;oA=1;var R=Xm();function k(s){var a="https://react.dev/errors/"+s;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)a+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+s+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function U(){}var x={d:{f:U,r:function(){throw Error(k(522))},D:U,C:U,L:U,m:U,X:U,S:U,M:U},p:0,findDOMNode:null},E=Symbol.for("react.portal");function B(s,a,p){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:E,key:m==null?null:""+m,children:s,containerInfo:a,implementation:p}}var M=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(s,a){if(s==="font")return"";if(typeof a=="string")return a==="use-credentials"?a:""}return pr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,pr.createPortal=function(s,a){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)throw Error(k(299));return B(s,a,null,p)},pr.flushSync=function(s){var a=M.T,p=x.p;try{if(M.T=null,x.p=2,s)return s()}finally{M.T=a,x.p=p,x.d.f()}},pr.preconnect=function(s,a){typeof s=="string"&&(a?(a=a.crossOrigin,a=typeof a=="string"?a==="use-credentials"?a:"":void 0):a=null,x.d.C(s,a))},pr.prefetchDNS=function(s){typeof s=="string"&&x.d.D(s)},pr.preinit=function(s,a){if(typeof s=="string"&&a&&typeof a.as=="string"){var p=a.as,m=y(p,a.crossOrigin),D=typeof a.integrity=="string"?a.integrity:void 0,X=typeof a.fetchPriority=="string"?a.fetchPriority:void 0;p==="style"?x.d.S(s,typeof a.precedence=="string"?a.precedence:void 0,{crossOrigin:m,integrity:D,fetchPriority:X}):p==="script"&&x.d.X(s,{crossOrigin:m,integrity:D,fetchPriority:X,nonce:typeof a.nonce=="string"?a.nonce:void 0})}},pr.preinitModule=function(s,a){if(typeof s=="string")if(typeof a=="object"&&a!==null){if(a.as==null||a.as==="script"){var p=y(a.as,a.crossOrigin);x.d.M(s,{crossOrigin:p,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0})}}else a==null&&x.d.M(s)},pr.preload=function(s,a){if(typeof s=="string"&&typeof a=="object"&&a!==null&&typeof a.as=="string"){var p=a.as,m=y(p,a.crossOrigin);x.d.L(s,p,{crossOrigin:m,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,type:typeof a.type=="string"?a.type:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0,referrerPolicy:typeof a.referrerPolicy=="string"?a.referrerPolicy:void 0,imageSrcSet:typeof a.imageSrcSet=="string"?a.imageSrcSet:void 0,imageSizes:typeof a.imageSizes=="string"?a.imageSizes:void 0,media:typeof a.media=="string"?a.media:void 0})}},pr.preloadModule=function(s,a){if(typeof s=="string")if(a){var p=y(a.as,a.crossOrigin);x.d.m(s,{as:typeof a.as=="string"&&a.as!=="script"?a.as:void 0,crossOrigin:p,integrity:typeof a.integrity=="string"?a.integrity:void 0})}else x.d.m(s)},pr.requestFormReset=function(s){x.d.r(s)},pr.unstable_batchedUpdates=function(s,a){return s(a)},pr.useFormState=function(s,a,p){return M.H.useFormState(s,a,p)},pr.useFormStatus=function(){return M.H.useHostTransitionStatus()},pr.version="19.1.0",pr}var lA;function wO(){if(lA)return LS.exports;lA=1;function R(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(R)}catch(k){console.error(k)}}return R(),LS.exports=TO(),LS.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var uA;function xO(){if(uA)return Ky;uA=1;var R=SO(),k=Xm(),U=wO();function x(o){var u="https://react.dev/errors/"+o;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)u+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+o+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function E(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function B(o){var u=o,d=o;if(o.alternate)for(;u.return;)u=u.return;else{o=u;do u=o,(u.flags&4098)!==0&&(d=u.return),o=u.return;while(o)}return u.tag===3?d:null}function M(o){if(o.tag===13){var u=o.memoizedState;if(u===null&&(o=o.alternate,o!==null&&(u=o.memoizedState)),u!==null)return u.dehydrated}return null}function y(o){if(B(o)!==o)throw Error(x(188))}function s(o){var u=o.alternate;if(!u){if(u=B(o),u===null)throw Error(x(188));return u!==o?null:o}for(var d=o,g=u;;){var w=d.return;if(w===null)break;var C=w.alternate;if(C===null){if(g=w.return,g!==null){d=g;continue}break}if(w.child===C.child){for(C=w.child;C;){if(C===d)return y(w),o;if(C===g)return y(w),u;C=C.sibling}throw Error(x(188))}if(d.return!==g.return)d=w,g=C;else{for(var j=!1,H=w.child;H;){if(H===d){j=!0,d=w,g=C;break}if(H===g){j=!0,g=w,d=C;break}H=H.sibling}if(!j){for(H=C.child;H;){if(H===d){j=!0,d=C,g=w;break}if(H===g){j=!0,g=C,d=w;break}H=H.sibling}if(!j)throw Error(x(189))}}if(d.alternate!==g)throw Error(x(190))}if(d.tag!==3)throw Error(x(188));return d.stateNode.current===d?o:u}function a(o){var u=o.tag;if(u===5||u===26||u===27||u===6)return o;for(o=o.child;o!==null;){if(u=a(o),u!==null)return u;o=o.sibling}return null}var p=Object.assign,m=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),pe=Symbol.for("react.provider"),je=Symbol.for("react.consumer"),ee=Symbol.for("react.context"),ke=Symbol.for("react.forward_ref"),Re=Symbol.for("react.suspense"),nt=Symbol.for("react.suspense_list"),Gt=Symbol.for("react.memo"),ln=Symbol.for("react.lazy"),cn=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function he(o){return o===null||typeof o!="object"?null:(o=ce&&o[ce]||o["@@iterator"],typeof o=="function"?o:null)}var it=Symbol.for("react.client.reference");function Le(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===it?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case A:return"Fragment";case ae:return"Profiler";case te:return"StrictMode";case Re:return"Suspense";case nt:return"SuspenseList";case cn:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case X:return"Portal";case ee:return(o.displayName||"Context")+".Provider";case je:return(o._context.displayName||"Context")+".Consumer";case ke:var u=o.render;return o=o.displayName,o||(o=u.displayName||u.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case Gt:return u=o.displayName||null,u!==null?u:Le(o.type)||"Memo";case ln:u=o._payload,o=o._init;try{return Le(o(u))}catch{}}return null}var De=Array.isArray,Te=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_e=U.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ft={pending:!1,data:null,method:null,action:null},Sn=[],oe=-1;function Oe(o){return{current:o}}function $e(o){0>oe||(o.current=Sn[oe],Sn[oe]=null,oe--)}function qe(o,u){oe++,Sn[oe]=o.current,o.current=u}var G=Oe(null),Tt=Oe(null),dt=Oe(null),Vi=Oe(null);function Tn(o,u){switch(qe(dt,u),qe(Tt,o),qe(G,null),u.nodeType){case 9:case 11:o=(o=u.documentElement)&&(o=o.namespaceURI)?Hd(o):0;break;default:if(o=u.tagName,u=u.namespaceURI)u=Hd(u),o=fv(u,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}$e(G),qe(G,o)}function rl(){$e(G),$e(Tt),$e(dt)}function Ap(o){o.memoizedState!==null&&qe(Vi,o);var u=G.current,d=fv(u,o.type);u!==d&&(qe(Tt,o),qe(G,d))}function Lf(o){Tt.current===o&&($e(G),$e(Tt)),Vi.current===o&&($e(Vi),xf._cu
at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
`+eo+o+Ro}var er=!1;function Vf(o,u){if(!o||er)return"";er=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(u){var Ce=function(){throw Error()};if(Object.defineProperty(Ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ce,[])}catch(Se){var me=Se}Reflect.construct(o,[],Ce)}else{try{Ce.call()}catch(Se){me=Se}o.call(Ce.prototype)}}else{try{throw Error()}catch(Se){me=Se}(Ce=o())&&typeof Ce.catch=="function"&&Ce.catch(function(){})}}catch(Se){if(Se&&me&&typeof Se.stack=="string")return[Se.stack,me.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var w=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");w&&w.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var C=g.DetermineComponentFrameRoot(),j=C[0],H=C[1];if(j&&H){var $=j.split(`
`),ve=H.split(`
`);for(w=g=0;g<$.length&&!$[g].includes("DetermineComponentFrameRoot");)g++;for(;w<ve.length&&!ve[w].includes("DetermineComponentFrameRoot");)w++;if(g===$.length||w===ve.length)for(g=$.length-1,w=ve.length-1;1<=g&&0<=w&&$[g]!==ve[w];)w--;for(;1<=g&&0<=w;g--,w--)if($[g]!==ve[w]){if(g!==1||w!==1)do if(g--,w--,0>w||$[g]!==ve[w]){var Ee=`
`+$[g].replace(" at new "," at ");return o.displayName&&Ee.includes("<anonymous>")&&(Ee=Ee.replace("<anonymous>",o.displayName)),Ee}while(1<=g&&0<=w);break}}}finally{er=!1,Error.prepareStackTrace=d}return(d=o?o.displayName||o.name:"")?al(d):""}function ni(o){switch(o.tag){case 26:case 27:case 5:return al(o.type);case 16:return al("Lazy");case 13:return al("Suspense");case 19:return al("SuspenseList");case 0:case 15:return Vf(o.type,!1);case 11:return Vf(o.type.render,!1);case 1:return Vf(o.type,!0);case 31:return al("Activity");default:return""}}function Ru(o){try{var u="";do u+=ni(o),o=o.return;while(o);return u}catch(d){return`
Error generating stack: `+d.message+`
`+d.stack}}function qn(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Tc(o){var u=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function lg(o){var u=Tc(o)?"checked":"value",d=Object.getOwnPropertyDescriptor(o.constructor.prototype,u),g=""+o[u];if(!o.hasOwnProperty(u)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var w=d.get,C=d.set;return Object.defineProperty(o,u,{configurable:!0,get:function(){return w.call(this)},set:function(j){g=""+j,C.call(this,j)}}),Object.defineProperty(o,u,{enumerable:d.enumerable}),{getValue:function(){return g},setValue:function(j){g=""+j},stopTracking:function(){o._valueTracker=null,delete o[u]}}}}function Ga(o){o._valueTracker||(o._valueTracker=lg(o))}function sl(o){if(!o)return!1;var u=o._valueTracker;if(!u)return!0;var d=u.getValue(),g="";return o&&(g=Tc(o)?o.checked?"true":"false":o.value),o=g,o!==d?(u.setValue(o),!0):!1}function za(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var Op=/[\n"\\]/g;function Vt(o){return o.replace(Op,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function Jl(o,u,d,g,w,C,j,H){o.name="",j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?o.type=j:o.removeAttribute("type"),u!=null?j==="number"?(u===0&&o.value===""||o.value!=u)&&(o.value=""+qn(u)):o.value!==""+qn(u)&&(o.value=""+qn(u)):j!=="submit"&&j!=="reset"||o.removeAttribute("value"),u!=null?Mp(o,j,qn(u)):d!=null?Mp(o,j,qn(d)):g!=null&&o.removeAttribute("value"),w==null&&C!=null&&(o.defaultChecked=!!C),w!=null&&(o.checked=w&&typeof w!="function"&&typeof w!="symbol"),H!=null&&typeof H!="function"&&typeof H!="symbol"&&typeof H!="boolean"?o.name=""+qn(H):o.removeAttribute("name")}function kp(o,u,d,g,w,C,j,H){if(C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(o.type=C),u!=null||d!=null){if(!(C!=="submit"&&C!=="reset"||u!=null))return;d=d!=null?""+qn(d):"",u=u!=null?""+qn(u):d,H||u===o.value||(o.value=u),o.defaultValue=u}g=g??w,g=typeof g!="function"&&typeof g!="symbol"&&!!g,o.checked=H?o.checked:!!g,o.defaultChecked=!!g,j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(o.name=j)}function Mp(o,u,d){u==="number"&&za(o.ownerDocument)===o||o.defaultValue===""+d||(o.defaultValue=""+d)}function Pu(o,u,d,g){if(o=o.options,u){u={};for(var w=0;w<d.length;w++)u["$"+d[w]]=!0;for(d=0;d<o.length;d++)w=u.hasOwnProperty("$"+o[d].value),o[d].selected!==w&&(o[d].selected=w),w&&g&&(o[d].defaultSelected=!0)}else{for(d=""+qn(d),u=null,w=0;w<o.length;w++){if(o[w].value===d){o[w].selected=!0,g&&(o[w].defaultSelected=!0);return}u!==null||o[w].disabled||(u=o[w])}u!==null&&(u.selected=!0)}}function Rp(o,u,d){if(u!=null&&(u=""+qn(u),u!==o.value&&(o.value=u),d==null)){o.defaultValue!==u&&(o.defaultValue=u);return}o.defaultValue=d!=null?""+qn(d):""}function Hf(o,u,d,g){if(u==null){if(g!=null){if(d!=null)throw Error(x(92));if(De(g)){if(1<g.length)throw Error(x(93));g=g[0]}d=g}d==null&&(d=""),u=d}d=qn(u),o.defaultValue=d,g=o.textContent,g===d&&g!==""&&g!==null&&(o.value=g)}function to(o,u){if(u){var d=o.firstChild;if(d&&d===o.lastChild&&d.nodeType===3){d.nodeValue=u;return}}o.textContent=u}var Nu=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGr
`).replace(m0,"")}function Bd(o,u){return u=hf(u),hf(o)===u}function ma(){}function en(o,u,d,g,w,C){switch(d){case"children":typeof g=="string"?u==="body"||u==="textarea"&&g===""||to(o,g):(typeof g=="number"||typeof g=="bigint")&&u!=="body"&&to(o,""+g);break;case"className":$i(o,"class",g);break;case"tabIndex":$i(o,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":$i(o,d,g);break;case"style":cl(o,g,C);break;case"data":if(u!=="object"){$i(o,"data",g);break}case"src":case"href":if(g===""&&(u!=="a"||d!=="href")){o.removeAttribute(d);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){o.removeAttribute(d);break}g=Fa(""+g),o.setAttribute(d,g);break;case"action":case"formAction":if(typeof g=="function"){o.setAttribute(d,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof C=="function"&&(d==="formAction"?(u!=="input"&&en(o,u,"name",w.name,w,null),en(o,u,"formEncType",w.formEncType,w,null),en(o,u,"formMethod",w.formMethod,w,null),en(o,u,"formTarget",w.formTarget,w,null)):(en(o,u,"encType",w.encType,w,null),en(o,u,"method",w.method,w,null),en(o,u,"target",w.target,w,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){o.removeAttribute(d);break}g=Fa(""+g),o.setAttribute(d,g);break;case"onClick":g!=null&&(o.onclick=ma);break;case"onScroll":g!=null&&_t("scroll",o);break;case"onScrollEnd":g!=null&&_t("scrollend",o);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(x(61));if(d=g.__html,d!=null){if(w.children!=null)throw Error(x(60));o.innerHTML=d}}break;case"multiple":o.multiple=g&&typeof g!="function"&&typeof g!="symbol";break;case"muted":o.muted=g&&typeof g!="function"&&typeof g!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(g==null||typeof g=="function"||typeof g=="boolean"||typeof g=="symbol"){o.removeAttribute("xlink:href");break}d=Fa(""+g),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":g!=null&&typeof g!="function"&&typeof g!="symbol"?o.setAttribute(d,""+g):o.removeAttribute(d);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":g&&typeof g!="function"&&typeof g!="symbol"?o.setAttribute(d,""):o.removeAttribute(d);break;case"capture":case"download":g===!0?o.setAttribute(d,""):g!==!1&&g!=null&&typeof g!="function"&&typeof g!="symbol"?o.setAttribute(d,g):o.removeAttribute(d);break;case"cols":case"rows":case"size":case"span":g!=null&&typeof g!="function"&&typeof g!="symbol"&&!isNaN(g)&&1<=g?o.setAttribute(d,g):o.removeAttribute(d);break;case"rowSpan":case"start":g==null||typeof g=="function"||typeof g=="symbol"||isNaN(g)?o.removeAttribute(d):o.setAttribute(d,g);break;case"popover":_t("beforetoggle",o),_t("toggle",o),Ql(o,"popover",g);break;case"xlinkActuate":si(o,"http://www.w3.org/1999/xlink","xlink:actuate",g);break;case"xlinkArcrole":si(o,"http://www.w3.org/1999/xlink","xlink:arcrole",g);break;case"xlinkRole":si(o,"http://www.w3.org/1999/xlink","xlink:role",g);break;case"xlinkShow":si(o,"http://www.w3.org/1999/xlink","xlink:show",g);break;case"xlinkTitle":si(o,"http://www.w3.org/1999/xlink","xlink:title",g);break;case"xlinkType":si(o,"http://www.w3.org/1999/xlink","xlink:type",g);break;case"xmlBase":si(o,"http://www.w3.org/XML/1998/nam
Please change the parent <Route path="${ee}"> to <Route path="${ee==="/"?"*":`${ee}/*`}">.`)}let D=Nf(),X;if(k){let ee=typeof k=="string"?xp(k):k;ei(p==="/"||((je=ee.pathname)==null?void 0:je.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${ee.pathname}" was given in the \`location\` prop.`),X=ee}else X=D;let A=X.pathname||"/",te=A;if(p!=="/"){let ee=p.replace(/^\//,"").split("/");te="/"+A.replace(/^\//,"").split("/").slice(ee.length).join("/")}let ae=!B&&U&&U.matches&&U.matches.length>0?U.matches:IA(R,{pathname:te});Iu(m||ae!=null,`No routes matched location "${X.pathname}${X.search}${X.hash}" `),Iu(ae==null||ae[ae.length-1].route.element!==void 0||ae[ae.length-1].route.Component!==void 0||ae[ae.length-1].route.lazy!==void 0,`Matched leaf route at location "${X.pathname}${X.search}${X.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let pe=lk(ae&&ae.map(ee=>Object.assign({},ee,{params:Object.assign({},s,ee.params),pathname:Ua([p,E.encodeLocation?E.encodeLocation(ee.pathname).pathname:ee.pathname]),pathnameBase:ee.pathnameBase==="/"?p:Ua([p,E.encodeLocation?E.encodeLocation(ee.pathnameBase).pathname:ee.pathnameBase])})),M,U,x);return k&&pe?xe.createElement($y.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...X},navigationType:"POP"}},pe):pe}function nk(){let R=fk(),k=YO(R)?`${R.status} ${R.statusText}`:R instanceof Error?R.message:JSON.stringify(R),U=R instanceof Error?R.stack:null,x="rgba(200,200,200, 0.5)",E={padding:"0.5rem",backgroundColor:x},B={padding:"2px 4px",backgroundColor:x},M=null;return console.error("Error handled by React Router default ErrorBoundary:",R),M=xe.createElement(xe.Fragment,null,xe.createElement("p",null,"💿 Hey developer 👋"),xe.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",xe.createElement("code",{style:B},"ErrorBoundary")," or"," ",xe.createElement("code",{style:B},"errorElement")," prop on your route.")),xe.createElement(xe.Fragment,null,xe.createElement("h2",null,"Unexpected Application Error!"),xe.createElement("h3",{style:{fontStyle:"italic"}},k),U?xe.createElement("pre",{style:E},U):null,M)}var ik=xe.createElement(nk,null),rk=class extends xe.Component{constructor(R){super(R),this.state={location:R.location,revalidation:R.revalidation,error:R.error}}static getDerivedStateFromError(R){return{error:R}}static getDerivedStateFromProps(R,k){return k.location!==R.location||k.revalidation!=="idle"&&R.revalidation==="idle"?{error:R.error,location:R.location,revalidation:R.revalidation}:{error:R.error!==void 0?R.error:k.error,location:k.location,revalidation:R.revalidation||k.revalidation}}componentDidCatch(R,k){console.error("React Router caught the following error during render",R,k)}render(){return this.state.error!==void 0?xe.createElement(Ba.Provider,{value:this.props.routeContext},xe.createElement(e2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ok({routeContext:R,match:k,children:U}){let x=xe.useContext(Ep);return x&&x.static&&x.staticContext&&(k.route.errorElement||k.route.ErrorBoundary)&&(x.staticContext._deepestRenderedBoundaryId=k.route.id),xe.createElement(Ba.Provider,{value:R},U)}function lk(R,k=[],U=null,x=null){if(R==null){if(!U)return null;if(U.errors)R=U.matches;else if(k.length===0&&!U.initialized&&U.matches.length>0)R=U.matches;else return null}let E=R,B=U==null?void 0:U.errors;if(B!=null){let s=E.findIndex(a=>a.route.id&&(B==null?void 0:B[a.route.id])!==void 0);ei(s>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(B).join(",")}`),E=E.slice(0,Math.min(E.length,s+1))}let M=!1,y=-1;if(U)for(let s=0;s<E.length;s++){let a=E[s];if((a.route.HydrateFallback||a.route.hydrateFallbackEle
* protobuf.js v7.4.0 (c) 2016, daniel wirtz
* compiled thu, 22 aug 2024 20:30:39 utc
* licensed under the bsd-3-clause license
* see: https://github.com/dcodeio/protobuf.js for details
*/(function(R){(function(k,U,x){var E=function B(M){var y=U[M];return y||k[M][0].call(y=U[M]={exports:{}},B,y,y.exports),y.exports}(x[0]);E.util.global.protobuf=E,typeof define=="function"&&define.amd&&define(["long"],function(B){return B&&B.isLong&&(E.util.Long=B,E.configure()),E}),typeof Wy=="object"&&Wy&&Wy.exports&&(Wy.exports=E)})({1:[function(k,U,x){U.exports=function(E,B){for(var M=Array(arguments.length-1),y=0,s=2,a=!0;s<arguments.length;)M[y++]=arguments[s++];return new Promise(function(p,m){M[y]=function(D){if(a)if(a=!1,D)m(D);else{for(var X=Array(arguments.length-1),A=0;A<X.length;)X[A++]=arguments[A];p.apply(null,X)}};try{E.apply(B||null,M)}catch(D){a&&(a=!1,m(D))}})}},{}],2:[function(k,U,x){x.length=function(s){var a=s.length;if(!a)return 0;for(var p=0;1<--a%4&&(s[0|a]||"")=="=";)++p;return Math.ceil(3*s.length)/4-p};for(var E=Array(64),B=Array(123),M=0;M<64;)B[E[M]=M<26?M+65:M<52?M+71:M<62?M-4:M-59|43]=M++;x.encode=function(s,a,p){for(var m,D=null,X=[],A=0,te=0;a<p;){var ae=s[a++];switch(te){case 0:X[A++]=E[ae>>2],m=(3&ae)<<4,te=1;break;case 1:X[A++]=E[m|ae>>4],m=(15&ae)<<2,te=2;break;case 2:X[A++]=E[m|ae>>6],X[A++]=E[63&ae],te=0}8191<A&&((D=D||[]).push(String.fromCharCode.apply(String,X)),A=0)}return te&&(X[A++]=E[m],X[A++]=61,te===1&&(X[A++]=61)),D?(A&&D.push(String.fromCharCode.apply(String,X.slice(0,A))),D.join("")):String.fromCharCode.apply(String,X.slice(0,A))};var y="invalid encoding";x.decode=function(s,a,p){for(var m,D=p,X=0,A=0;A<s.length;){var te=s.charCodeAt(A++);if(te==61&&1<X)break;if((te=B[te])===R)throw Error(y);switch(X){case 0:m=te,X=1;break;case 1:a[p++]=m<<2|(48&te)>>4,m=te,X=2;break;case 2:a[p++]=(15&m)<<4|(60&te)>>2,m=te,X=3;break;case 3:a[p++]=(3&m)<<6|te,X=0}}if(X===1)throw Error(y);return p-D},x.test=function(s){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(s)}},{}],3:[function(k,U,x){function E(){this.t={}}(U.exports=E).prototype.on=function(B,M,y){return(this.t[B]||(this.t[B]=[])).push({fn:M,ctx:y||this}),this},E.prototype.off=function(B,M){if(B===R)this.t={};else if(M===R)this.t[B]=[];else for(var y=this.t[B],s=0;s<y.length;)y[s].fn===M?y.splice(s,1):++s;return this},E.prototype.emit=function(B){var M=this.t[B];if(M){for(var y=[],s=1;s<arguments.length;)y.push(arguments[s++]);for(s=0;s<M.length;)M[s].fn.apply(M[s++].ctx,y)}return this}},{}],4:[function(k,U,x){function E(a){function p(ce,he,it,Le){var De=he<0?1:0;ce((he=De?-he:he)===0?0<1/he?0:2147483648:isNaN(he)?2143289344:34028234663852886e22<he?(De<<31|2139095040)>>>0:he<11754943508222875e-54?(De<<31|Math.round(he/1401298464324817e-60))>>>0:(De<<31|127+(ce=Math.floor(Math.log(he)/Math.LN2))<<23|8388607&Math.round(he*Math.pow(2,-ce)*8388608))>>>0,it,Le)}function m(ce,he,it){return ce=ce(he,it),he=2*(ce>>31)+1,it=ce>>>23&255,ce&=8388607,it==255?ce?NaN:1/0*he:it==0?1401298464324817e-60*he*ce:he*Math.pow(2,it-150)*(8388608+ce)}function D(ce,he,it){ae[0]=ce,he[it]=pe[0],he[it+1]=pe[1],he[it+2]=pe[2],he[it+3]=pe[3]}function X(ce,he,it){ae[0]=ce,he[it]=pe[3],he[it+1]=pe[2],he[it+2]=pe[1],he[it+3]=pe[0]}function A(ce,he){return pe[0]=ce[he],pe[1]=ce[he+1],pe[2]=ce[he+2],pe[3]=ce[he+3],ae[0]}function te(ce,he){return pe[3]=ce[he],pe[2]=ce[he+1],pe[1]=ce[he+2],pe[0]=ce[he+3],ae[0]}var ae,pe,je,ee,ke;function Re(ce,he,it,Le,De,Te){var _e,ft=Le<0?1:0;(Le=ft?-Le:Le)===0?(ce(0,De,Te+he),ce(0<1/Le?0:2147483648,De,Te+it)):isNaN(Le)?(ce(0,De,Te+he),ce(2146959360,De,Te+it)):17976931348623157e292<Le?(ce(0,De,Te+he),ce((ft<<31|2146435072)>>>0,De,Te+it)):Le<22250738585072014e-324?(ce((_e=Le/5e-324)>>>0,De,Te+he),ce((ft<<31|_e/4294967296)>>>0,De,Te+it)):(ce(4503599627370496*(_e=Le*Math.pow(2,-(Le=(Le=Math.floor(Math.log(Le)/Math.LN2))===1024?1023:Le)))>>>0,De,Te+he),ce((ft<<31|Le+1023<<20|1048576*_e&1048575)>>>0,De,Te+it))}function nt(ce,he,it,Le,De){return he=ce(Le,De+he),ce=ce(Le,De+it),Le=2*(ce>>31)+1,De=ce>>>20&2047,it=4294967296*(1048575&ce)+he,De==2047?it?NaN:1/0*Le:De==0?5e-324*Le*it:Le*Math.pow(2,De-1075)*(it+4503599627370496)}function Gt(ce,he,it){je[0]=ce,he[it]=ee[0],he[it+1]=ee[1],he[it+2]=ee[2],he[it+3
`).map(M=>M.trim()).filter(Boolean);const U={method:"UNDEFINED",url:"",headers:{},body:null},x=R.match(k);if(!x)throw console.log(R),new Error("Invalid 'Copy as fetch' string.");U.url=x[1];const E=x[2],B=JSON.parse(E);return B.method&&(U.method=B.method),B.headers&&(U.headers=B.headers),B.body&&(U.body=B.body),U}const Jk=new Uint8Array([237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237]),Zk=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),$k=new Uint8Array([112,115,115,104]);function WS(R,k){const U=new ArrayBuffer(4);return new DataView(U).setUint32(0,R,k),new Uint8Array(U)}function jS(R,k){const U=new ArrayBuffer(2);return new DataView(U).setUint16(0,R,k),new Uint8Array(U)}function yA(R,k){const U=R.length,x=U+32,E=new Uint8Array([...WS(x,!1),...$k,...new Uint8Array(4),...k,...WS(U,!1),...R]);return GA(E)}function e4(R){const k=new Uint8Array([...jS(1,!0),...jS(R.length,!0),...R]);return new Uint8Array([...WS(k.length+2+4,!0),...jS(1,!0),...k])}function t4(R){const k=new Uint8Array(R.length*2);for(let U=0;U<R.length;U++){const x=R.charCodeAt(U);k[U*2]=x&255,k[U*2+1]=x>>8}return k}function n4(R){return Uint8Array.from(R.split("").map(k=>k.charCodeAt()))}async function i4(){try{const R=await navigator.clipboard.readText(),k=Qk(R);let U,x;if(k.body.startsWith("<")){x=k.body;const E=x.match(/.*(<WRMHEADER.*<\/WRMHEADER>).*/),B=E?E[1]:null,M=t4(B),y=e4(M);U=yA(y,Zk)}else{const E=n4(k.body);let B,M;try{B=Yk.decode(E),M=Wk.decode(B.msg)}catch(y){console.error("Decoding failed, returning empty pssh",y),U=""}if(M&&M.contentId&&M.contentId.widevinePsshData){const y=M.contentId.widevinePsshData.psshData[0];U=yA(y,Jk)}r4(E)?x=GA(E):x=k.body}document.getElementById("licurl").value=k.url,document.getElementById("headers").value=JSON.stringify(k.headers),document.getElementById("pssh").value=U,document.getElementById("data").value=x}catch(R){console.error("Failed to read clipboard contents:",R)}}function r4(R){return R.some(k=>k>127)}var BS={exports:{}},VS,gA;function o4(){if(gA)return VS;gA=1;var R="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return VS=R,VS}var HS,vA;function l4(){if(vA)return HS;vA=1;var R=o4();function k(){}function U(){}return U.resetWarningCache=k,HS=function(){function x(M,y,s,a,p,m){if(m!==R){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}}x.isRequired=x;function E(){return x}var B={array:x,bigint:x,bool:x,func:x,number:x,object:x,string:x,symbol:x,any:x,arrayOf:E,element:x,elementType:x,instanceOf:E,node:x,objectOf:E,oneOf:E,oneOfType:E,shape:E,exact:E,checkPropTypes:U,resetWarningCache:k};return B.PropTypes=B,B},HS}var mA;function u4(){return mA||(mA=1,BS.exports=l4()()),BS.exports}var a4=u4();const Fn=wp(a4);var KS,SA;function s4(){if(SA)return KS;SA=1;function R(y){return y&&typeof y=="object"&&"default"in y?y.default:y}var k=Xm(),U=R(k);function x(y,s,a){return s in y?Object.defineProperty(y,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):y[s]=a,y}function E(y,s){y.prototype=Object.create(s.prototype),y.prototype.constructor=y,y.__proto__=s}var B=!!(typeof window<"u"&&window.document&&window.document.createElement);function M(y,s,a){if(typeof y!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof s!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof a<"u"&&typeof a!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function p(m){return m.displayName||m.name||"Component"}return function(D){if(typeof D!="function")throw new Error("Expected WrappedComponent to be a React component.");var X=[],A;function te(){A=y(X.map(function(pe){return pe.props})),ae.canUseDOM?s(A):a&&(A=a(A))}var ae=function(pe){E(je,pe);function je(){return pe.apply(this,arguments)||this}je.peek=function(){return A},je.rewind=function(){if(je.canUseDOM)throw new Error("You may only call rewin
object-assign
(c) Sindre Sorhus
@license MIT
*/var GS,wA;function y4(){if(wA)return GS;wA=1;var R=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;function x(B){if(B==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(B)}function E(){try{if(!Object.assign)return!1;var B=new String("abc");if(B[5]="de",Object.getOwnPropertyNames(B)[0]==="5")return!1;for(var M={},y=0;y<10;y++)M["_"+String.fromCharCode(y)]=y;var s=Object.getOwnPropertyNames(M).map(function(p){return M[p]});if(s.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(p){a[p]=p}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return GS=E()?Object.assign:function(B,M){for(var y,s=x(B),a,p=1;p<arguments.length;p++){y=Object(arguments[p]);for(var m in y)k.call(y,m)&&(s[m]=y[m]);if(R){a=R(y);for(var D=0;D<a.length;D++)U.call(y,a[D])&&(s[a[D]]=y[a[D]])}}return s},GS}var g4=y4();const v4=wp(g4);var Pf={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},Rt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(Rt).map(function(R){return Rt[R]});var Xn={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},Fm={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Zy={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},m4=Object.keys(Fm).reduce(function(R,k){return R[Fm[k]]=k,R},{}),S4=[Rt.NOSCRIPT,Rt.SCRIPT,Rt.STYLE],zl="data-react-helmet",T4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},w4=function(R,k){if(!(R instanceof k))throw new TypeError("Cannot call a class as a function")},x4=function(){function R(k,U){for(var x=0;x<U.length;x++){var E=U[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(k,E.key,E)}}return function(k,U,x){return U&&R(k.prototype,U),x&&R(k,x),k}}(),Wr=Object.assign||function(R){for(var k=1;k<arguments.length;k++){var U=arguments[k];for(var x in U)Object.prototype.hasOwnProperty.call(U,x)&&(R[x]=U[x])}return R},E4=function(R,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);R.prototype=Object.create(k&&k.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(R,k):R.__proto__=k)},xA=function(R,k){var U={};for(var x in R)k.indexOf(x)>=0||Object.prototype.hasOwnProperty.call(R,x)&&(U[x]=R[x]);return U},A4=function(R,k){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:R},QS=function(k){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return U===!1?String(k):String(k).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},C4=function(k){var U=Sp(k,Rt.TITLE),x=Sp(k,Zy.TITLE_TEMPLATE);if(x&&U)return x.replace(/%s/g,function(){return Array.isArray(U)?U.join(""):U});var E=Sp(k,Zy.DEFAULT_TITLE);return U||E||void 0},b4=function(k){return Sp(k,Zy.ON_CHANGE_CLIENT_STATE)||function(){}},zS=function(k,U){return U.filter(function(x){return typeof x[k]<"u"}).map(function(x){return x[k]}).reduce(function(x,E){return Wr({},x,E)},{})},I4=function(k,U){return U.filter(function(x){return typeof x[Rt.BASE]<"u"}).map(function(x){return x[Rt.BASE]}).reverse().reduce(function(x,E){if(!x.length)for(var B=Object.keys(E),M=0;M<B.length;M++){var
print(requests.post(
url='${Yy}/api/decrypt',
headers={
'Content-Type': 'application/json',
},
json={
'pssh': 'AAAAW3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADsIARIQ62dqu8s0Xpa7z2FmMPGj2hoNd2lkZXZpbmVfdGVzdCIQZmtqM2xqYVNkZmFsa3IzaioCSEQyAA==',
'licurl': 'https://cwip-shaka-proxy.appspot.com/no_auth',
'headers': str({
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0',
'Accept': '*/*',
'Accept-Language': 'en-US,en;q=0.5',
})
}
).json()['message'])`})})]}),ye.jsxs("details",{open:!0,className:"w-full list-none mt-5",children:[ye.jsx("summary",{className:"text-2xl",children:"Sending a search request"}),ye.jsx("div",{className:"mt-5 border-2 border-indigo-500/50 p-5 rounded-lg",children:ye.jsx("pre",{className:"rounded-lg font-mono whitespace-pre text-white overflow-x-auto max-w-full p-5",children:`import requests
print(requests.post(
url='${Yy}/api/cache/search',
json={
'input': 'AAAAW3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADsIARIQ62dqu8s0Xpa7z2FmMPGj2hoNd2lkZXZpbmVfdGVzdCIQZmtqM2xqYVNkZmFsa3IzaioCSEQyAA=='
}
).json())`})})]}),ye.jsxs("details",{open:!0,className:"w-full list-none mt-5",children:[ye.jsx("summary",{className:"text-2xl",children:"PyWidevine RemoteCDM info"}),ye.jsx("div",{className:"mt-5 border-2 border-indigo-500/50 p-5 rounded-lg overflow-x-auto",children:ye.jsxs("p",{children:[ye.jsx("strong",{children:"Device Type:"})," '",R.device_type,"'",ye.jsx("br",{}),ye.jsx("strong",{children:"System ID:"})," ",R.system_id,ye.jsx("br",{}),ye.jsx("strong",{children:"Security Level:"})," ",R.security_level,ye.jsx("br",{}),ye.jsx("strong",{children:"Host:"})," ",Yy,"/remotecdm/widevine",ye.jsx("br",{}),ye.jsx("strong",{children:"Secret:"})," '",R.secret,"'",ye.jsx("br",{}),ye.jsx("strong",{children:"Device Name:"})," ",R.device_name]})})]}),ye.jsxs("details",{open:!0,className:"w-full list-none mt-5",children:[ye.jsx("summary",{className:"text-2xl",children:"PyPlayready RemoteCDM info"}),ye.jsx("div",{className:"mt-5 border-2 border-indigo-500/50 p-5 rounded-lg overflow-x-auto",children:ye.jsxs("p",{children:[ye.jsx("strong",{children:"Security Level:"})," ",U.security_level,ye.jsx("br",{}),ye.jsx("strong",{children:"Host:"})," ",Yy,"/remotecdm/playready",ye.jsx("br",{}),ye.jsx("strong",{children:"Secret:"})," '",U.secret,"'",ye.jsx("br",{}),ye.jsx("strong",{children:"Device Name:"})," ",U.device_name]})})]})]})}var FS={};/*
@license
Shaka Player
Copyright 2016 Google LLC
SPDX-License-Identifier: Apache-2.0
*/var CA;function F4(){return CA||(CA=1,function(R){(function(){var k=typeof window<"u"?window:hO,U={};(function(E,B,M){var y;function s(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var a=typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e};function p(e){e=[typeof globalThis=="object"&&globalThis,e,typeof E=="object"&&E,typeof self=="object"&&self,typeof B=="object"&&B];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}var m=p(this);function D(e,t){if(t)e:{var n=m;e=e.split(".");for(var i=0;i<e.length-1;i++){var r=e[i];if(!(r in n))break e;n=n[r]}e=e[e.length-1],i=n[e],t=t(i),t!=i&&t!=null&&a(n,e,{configurable:!0,writable:!0,value:t})}}D("Symbol",function(e){function t(l){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new n(i+(l||"")+"_"+r++,l)}function n(l,c){this.g=l,a(this,"description",{configurable:!0,writable:!0,value:c})}if(e)return e;n.prototype.toString=function(){return this.g};var i="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",r=0;return t}),D("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<t.length;n++){var i=m[t[n]];typeof i=="function"&&typeof i.prototype[e]!="function"&&a(i.prototype,e,{configurable:!0,writable:!0,value:function(){return X(s(this))}})}return e});function X(e){return e={next:e},e[Symbol.iterator]=function(){return this},e}function A(e){var t=typeof Symbol<"u"&&Symbol.iterator&&e[Symbol.iterator];if(t)return t.call(e);if(typeof e.length=="number")return{next:s(e)};throw Error(String(e)+" is not an iterable or ArrayLike")}function te(e){if(!(e instanceof Array)){e=A(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}var ae=typeof Object.create=="function"?Object.create:function(e){function t(){}return t.prototype=e,new t},pe;if(typeof Object.setPrototypeOf=="function")pe=Object.setPrototypeOf;else{var je;e:{var ee={a:!0},ke={};try{ke.__proto__=ee,je=ke.a;break e}catch{}je=!1}pe=je?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var Re=pe;function nt(e,t){if(e.prototype=ae(t.prototype),e.prototype.constructor=e,Re)Re(e,t);else for(var n in t)if(n!="prototype")if(Object.defineProperties){var i=Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(e,n,i)}else e[n]=t[n];e.Tk=t.prototype}function Gt(){this.o=!1,this.l=null,this.h=void 0,this.g=1,this.j=this.m=0,this.A=this.i=null}function ln(e){if(e.o)throw new TypeError("Generator is already running");e.o=!0}Gt.prototype.u=function(e){this.h=e};function cn(e,t){e.i={Ng:t,Zg:!0},e.g=e.m||e.j}Gt.prototype.return=function(e){this.i={return:e},this.g=this.j};function L(e,t,n){return e.g=n,{value:t}}Gt.prototype.s=function(e){this.g=e};function ce(e){e.g=0}function he(e,t,n){e.m=t,n!=null&&(e.j=n)}function it(e,t){e.m=0,e.j=t||0}function Le(e,t,n){e.g=t,e.m=n||0}function De(e,t){return e.m=t||0,t=e.i.Ng,e.i=null,t}function Te(e){e.A=[e.i],e.m=0,e.j=0}function _e(e,t){var n=e.A.splice(0)[0];(n=e.i=e.i||n)?n.Zg?e.g=e.m||e.j:n.s!=null&&e.j<n.s?(e.g=n.s,e.i=null):e.g=e.j:e.g=t}function ft(e){this.g=new Gt,this.h=e}function Sn(e,t){ln(e.g);var n=e.g.l;return n?oe(e,"return"in n?n.return:function(i){return{value:i,done:!0}},t,e.g.return):(e.g.return(t),Oe(e))}function oe(e,t,n,i){try{var r=t.call(e.g.l,n);if(!(r instanceof Object))throw new TypeError("Iterator result "+r+" is not an object");if(!r.done)return e.g.o=!1,r;var l=r.value}catch(c){return e.g.l=null,cn(e.g,c),Oe(e)}return e.g.l=null,i.call(e.g,l),Oe(e)}function Oe(e){for(;e.g.g;)try{var t=e.h(e.g);if(t)return e.g.o=!1,{value:t.value,done:!1}}catch(n){e.g.h=void 0,cn(e.g,n)}if(e.g.o=!1,e.g.i){if(t=e.g.i,e.g.i=null,t.Zg)throw t.Ng;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function $e(e){this.next=function(t){return l
@license
Copyright 2008 The Closure Library Authors
SPDX-License-Identifier: Apache-2.0
*/var pc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/*
@license
Copyright 2006 The Closure Library Authors
SPDX-License-Identifier: Apache-2.0
*/function fn(e){var t;e instanceof fn?(hc(this,e.Kb),this.Hc=e.Hc,yc(this,e.nb),gc(this,e.$c),this.ab=e.ab,Jr(this,e.g.clone()),this.qc=e.qc):e&&(t=String(e).match(pc))?(hc(this,t[1]||"",!0),this.Hc=Ha(t[2]||""),yc(this,t[3]||"",!0),gc(this,t[4]),this.ab=Ha(t[5]||"",!0),Jr(this,t[6]||"",!0),this.qc=Ha(t[7]||"")):this.g=new Yn(null)}y=fn.prototype,y.Kb="",y.Hc="",y.nb="",y.$c=null,y.ab="",y.qc="",y.toString=function(){var e=[],t=this.Kb;if(t&&e.push(Ka(t,jf,!0),":"),t=this.nb){e.push("//");var n=this.Hc;n&&e.push(Ka(n,jf,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t=this.$c,t!=null&&e.push(":",String(t))}return(t=this.ab)&&(this.nb&&t.charAt(0)!="/"&&e.push("/"),e.push(Ka(t,t.charAt(0)=="/"?og:Dp,!0))),(t=this.g.toString())&&e.push("?",t),(t=this.qc)&&e.push("#",Ka(t,Xl)),e.join("")},y.resolve=function(e){var t=this.clone();t.Kb==="data"&&(t=new fn);var n=!!e.Kb;n?hc(t,e.Kb):n=!!e.Hc,n?t.Hc=e.Hc:n=!!e.nb,n?yc(t,e.nb):n=e.$c!=null;var i=e.ab;if(n)gc(t,e.$c);else if(n=!!e.ab){if(i.charAt(0)!="/")if(this.nb&&!this.ab)i="/"+i;else{var r=t.ab.lastIndexOf("/");r!=-1&&(i=t.ab.substr(0,r+1)+i)}if(i==".."||i==".")i="";else if(i.indexOf("./")!=-1||i.indexOf("/.")!=-1){r=i.lastIndexOf("/",0)==0,i=i.split("/");for(var l=[],c=0;c<i.length;){var f=i[c++];f=="."?r&&c==i.length&&l.push(""):f==".."?((1<l.length||l.length==1&&l[0]!="")&&l.pop(),r&&c==i.length&&l.push("")):(l.push(f),r=!0)}i=l.join("/")}}return n?t.ab=i:n=e.g.toString()!=="",n?Jr(t,e.g.clone()):n=!!e.qc,n&&(t.qc=e.qc),t},y.clone=function(){return new fn(this)};function hc(e,t,n){e.Kb=n?Ha(t,!0):t,e.Kb&&(e.Kb=e.Kb.replace(/:$/,""))}function yc(e,t,n){e.nb=n?Ha(t,!0):t}function gc(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.$c=t}else e.$c=null}function Jr(e,t,n){t instanceof Yn?e.g=t:(n||(t=Ka(t,e0)),e.g=new Yn(t))}function Ha(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function Ka(e,t,n){return e!=null?(e=encodeURI(e).replace(t,rg),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function rg(e){return e=e.charCodeAt(0),"%"+(e>>4&15).toString(16)+(e&15).toString(16)}var jf=/[#\/\?@]/g,Dp=/[#\?:]/g,og=/[#\?]/g,e0=/[#\?@]/g,Xl=/#/g;function Yn(e){this.g=e||null}function Ii(e){if(!e.Va&&(e.Va=new Map,e.kd=0,e.g))for(var t=e.g.split("&"),n=0;n<t.length;n++){var i=t[n].indexOf("="),r=null;if(0<=i){var l=t[n].substring(0,i);r=t[n].substring(i+1)}else l=t[n];l=decodeURIComponent(l.replace(/\+/g," ")),r=r||"",e.add(l,decodeURIComponent(r.replace(/\+/g," ")))}}y=Yn.prototype,y.Va=null,y.kd=null;function ku(e){return Ii(e),e.kd}y.add=function(e,t){Ii(this),this.g=null;var n=this.Va.has(e)?this.Va.get(e):null;return n||this.Va.set(e,n=[]),n.push(t),this.kd++,this},y.set=function(e,t){return Ii(this),this.g=null,this.Va.has(e)?this.Va.set(e,[t]):this.add(e,t),this},y.get=function(e){return Ii(this),this.Va.get(e)||[]},y.toString=function(){if(this.g)return this.g;if(!this.Va||!this.Va.size)return"";for(var e=[],t=A(this.Va.keys()),n=t.next();!n.done;n=t.next()){var i=n.value;n=encodeURIComponent(i),i=this.Va.get(i);for(var r=0;r<i.length;r++){var l=n;i[r]!==""&&(l+="="+encodeURIComponent(i[r])),e.push(l)}}return this.g=e.join("&")},y.clone=function(){var e=new Yn;if(e.g=this.g,this.Va){for(var t=new Map,n=A(this.Va),i=n.next();!i.done;i=n.next()){var r=A(i.value);i=r.next().value,r=r.next().value,t.set(i,r.concat())}e.Va=t,e.kd=this.kd}return e};function Yl(){}function ll(e,t){if(!e&&!t)return!0;if(!e||!t||e.byteLength!=t.byteLength)return!1;if((ArrayBuffer.isView(e)?e.buffer:e)==(ArrayBuffer.isView(t)?t.buffer:t)&&(e.byteOffset||0)==(t.byteOffset||0))return!0;var n=Je(e);t=Je(t);for(var i=0;i<e.byteLength;i++)if(n[i]!=t[i])return!1;return!0}function yr(e){return ArrayBuffer.isView(e)?e.byteOffset==0&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer:e}function Je(e,t,n){return n=n===void 0?1/0:n,Wl(e,t===void 0?0:t,n,Uint8Array)}function qa(e,t,n){return n=n===void 0?1/0:n,Wl(e,t===void 0?0:t,n,Uint16Array)}function Ti(e,t,n){return n=n===void 0?1/0:n,Wl(e,t===void 0?0:t,n,DataView)}func
`),Error(`Unexpected close tag
Line: `+(l.length-1)+`
Column: `+(l[l.length-1].length+1)+`
Char: `+e[r]);r+1&&(r+=1);break}else if(e.charCodeAt(r+1)===33){if(e.charCodeAt(r+2)==45){for(;r!==-1&&(e.charCodeAt(r)!==62||e.charCodeAt(r-1)!=45||e.charCodeAt(r-2)!=45||r==-1);)r=e.indexOf(">",r+1);r===-1&&(r=e.length)}else if(e.charCodeAt(r+2)===91&&e.charCodeAt(r+8)===91&&e.substr(r+3,5).toLowerCase()==="cdata"){h=e.indexOf("]]>",r),h==-1?(f.push(e.substr(r+9)),r=e.length):(f.push(e.substring(r+9,h)),r=h+3);continue}r++;continue}e:{v=c,r++;var S=i(),T={};for(h=[];e.charCodeAt(r)!==62&&e[r];){var b=e.charCodeAt(r);if(64<b&&91>b||96<b&&123>b){b=i();for(var I=e.charCodeAt(r);I&&I!==39&&I!==34&&!(64<I&&91>I||96<I&&123>I)&&I!==62;)r++,I=e.charCodeAt(r);var O=r+1;if(r=e.indexOf(e[r],O),O=e.slice(O,r),I===39||I===34){if(r===-1){if(v={tagName:S,attributes:T,children:h,parent:null},t)for(S=0;S<h.length;S++)typeof h[S]!="string"&&(h[S].parent=v);h=v;break e}}else O=null,r--;if(b.startsWith("xmlns:")){I=O;var N=b.split(":")[1];zp.set(I,N),Fp.set(N,I)}S==="tt"&&b==="xml:space"&&O==="preserve"&&(v=!0),T[b]=O}r++}for(e.charCodeAt(r-1)!==47?(r++,h=n(S,v)):r++,v={tagName:S,attributes:T,children:h,parent:null},S=h.length,T=0;T<S;T++)b=h[T],typeof b!="string"?t&&(b.parent=v):T==S-1&&b==`
`&&h.pop();h=v}if(f.push(h),typeof h=="string")break;h.tagName[0]==="?"&&h.children&&(f.push.apply(f,te(h.children)),h.children=[])}else h=r,r=e.indexOf("<",r)-1,r===-2&&(r=e.length),h=e.slice(h,r+1),c?0<h.length&&f.push(h):(f.length&&h.length==1&&h[0]==`
`||0<h.trim().length)&&f.push(h),r++;return f}function i(){for(var l=r;`\r
>/= `.indexOf(e[r])===-1&&e[r];)r++;return e.slice(l,r)}var r=0;return n("")}function is(e){return typeof e=="string"}function rs(e){var t=[];if(!e.children)return[];e=A(e.children);for(var n=e.next();!n.done;n=e.next())n=n.value,typeof n!="string"&&t.push(n);return t}function Mt(e,t){var n=[];if(!e.children)return[];e=A(e.children);for(var i=e.next();!i.done;i=e.next())i=i.value,i.tagName===t&&n.push(i);return n}function Cn(e){return typeof e=="string"?wi(e):(e=e.children.reduce(function(t,n){return typeof n=="string"?t+n:t},""),e===""?null:wi(e))}function Gi(e){return Array.from(e.children).every(function(t){return typeof t=="string"})?((e=Cn(e))&&(e=e.trim()),e):null}function Pr(e,t,n){if(n=n===void 0?[]:n,e.tagName===t&&n.push(e),e.children){e=A(e.children);for(var i=e.next();!i.done;i=e.next())Pr(i.value,t,n)}return n}function xn(e,t){return e=Mt(e,t),e.length!=1?null:e[0]}function vr(e,t,n){return e=fg(e,t,n),e.length!=1?null:e[0]}function ze(e,t,n,i){i=i===void 0?null:i;var r=null;return e=e.attributes[t],e!=null&&(r=n(e)),r??i}function hl(e,t,n){return t=Bp(t),e.attributes[t+":"+n]||null}function fg(e,t,n){var i=Bp(t);if(t=[],e.children)for(n=i?i+":"+n:n,e=A(e.children),i=e.next();!i.done;i=e.next())(i=i.value)&&i.tagName===n&&t.push(i);return t}function No(e,t,n){t=A(t);for(var i=t.next();!i.done;i=t.next())if(i=hl(e,i.value,n))return i;return null}function yl(e){return e?(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),e=Date.parse(e),isNaN(e)?null:e/1e3):null}function ro(e){return!e||(e=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$","i").exec(e),!e)?null:(e=31536e3*Number(e[1]||null)+2592e3*Number(e[2]||null)+86400*Number(e[3]||null)+3600*Number(e[4]||null)+60*Number(e[5]||null)+Number(e[6]||null),isFinite(e)?e:null)}function tu(e){var t=/([0-9]+)-([0-9]+)/.exec(e);return!t||(e=Number(t[1]),!isFinite(e))?null:(t=Number(t[2]),isFinite(t)?{start:e,end:t}:null)}function Wn(e){return e=Number(e),e%1===0?e:null}function gl(e){return e=Number(e),e%1===0&&0<e?e:null}function Qn(e){return e=Number(e),e%1===0&&0<=e?e:null}function os(e){return e=Number(e),isNaN(e)?null:e}function Ac(e){return e?e.toLowerCase()==="true":!1}function Vp(e){var t,n=(t=e.match(/^(\d+)\/(\d+)$/))?Number(t[1])/Number(t[2]):Number(e);return isNaN(n)?null:n}function ls(e){var t=[];e=wi(e).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/),e=A(e);for(var n=e.next();!n.done;n=e.next()){n=n.value;var i=n.match(/^([\w]+)/);if(i){var r=n.match(/(@id='(.*?)')/),l=n.match(/(@t='(\d+)')/),c=n.match(/(@n='(\d+)')/),f=n.match(/\[(\d+)\]/);t.push({name:i[0],id:r?r[0].match(/'(.*?)'/)[0].replace(/'/gm,""):null,t:l?Number(l[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,n:c?Number(c[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,position:f?Number(f[1])-1:null,ac:n.split("/@")[1]||null})}else n.startsWith("@")&&t.length&&(t[t.length-1].ac=n.slice(1))}return t}function Hp(e,t){var n=ls(t.attributes.sel||"");if(n.length){var i=n[n.length-1],r=t.attributes.pos||null;n=i.position,n==null&&(i.t!==null&&(n=Kp(e,"t",i.t)),i.n!==null&&(n=Kp(e,"n",i.n))),n===null?n=r==="prepend"?0:e.length:r==="prepend"?--n:r==="after"&&++n,r=t.tagName,(i=i.ac)&&e[n]?qp(e[n],r,i,Gi(t)||""):(r!=="remove"&&r!=="replace"||e.splice(n,1),r!=="add"&&r!=="replace"||e.splice.apply(e,[n,0].concat(te(t.children))))}}function Kp(e,t,n){var i=0;e=A(e);for(var r=e.next();!r.done;r=e.next()){if(Number(r.value.attributes[t])===n)return i;i++}return null}function qp(e,t,n,i){t==="remove"?delete e.attributes[n]:(t==="add"||t==="replace")&&(e.attributes[n]=i)}function dg(e){var t="",n=e.tagName.split(":");0<n.length&&(t=n[0],t=Fp.has(t)?Fp.get(t):""),t=document.createElementNS(t,e.tagName);for(var i in e.attributes)t.setAttribute(i,e.attributes[i]);for(e=A(e.children),i=e.next();!i.done;i=e.next())i=i.value,n=void 0,typeof i=="string"?n=new Text(i):n=dg(i),t.appendChild(n);return t}function Gp(e){if(!e)return null;var t={tagName:e.tagName,attributes:ju(e.attributes),children:[],parent:null};e=A(e.children);for(var n=e.next();!n.done;n=e.ne
`),e=!0,n=A(n),r=n.next();!r.done;r=n.next())r=r.value,e||(e=nr(i.startTime,i.endTime),t.nestedCues.push(e)),0<r.length&&(e=i.clone(),e.payload=wi(r),t.nestedCues.push(e)),e=!1;else for(t.nestedCues.push(i),t=A(r),e=t.next();!e.done;e=t.next())Yp(e.value,i,n)}function Vu(e,t){return e&&0<e.length?e:t}Me("shaka.text.Cue",Ft),Ft.parseCuePayload=Cc,Ft.equal=nu,Ft.prototype.clone=Ft.prototype.clone;var Gf="auto";Ft.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Gf};var zi="center",bc={LEFT:"left",RIGHT:"right",CENTER:zi,START:"start",END:"end"};Ft.textAlign=bc;var vl="after",zf={BEFORE:"before",CENTER:"center",AFTER:vl};Ft.displayAlign=zf;var us="ltr";Ft.direction={HORIZONTAL_LEFT_TO_RIGHT:us,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var mr="horizontal-tb";Ft.writingMode={HORIZONTAL_TOP_TO_BOTTOM:mr,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var Lo=0;Ft.lineInterpretation={LINE_NUMBER:Lo,PERCENTAGE:1};var ml="start",Ff={CENTER:"center",START:ml,END:"end"};Ft.lineAlign=Ff;var iu={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Ft.defaultTextColor=iu;var Wp={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Ft.defaultTextBackgroundColor=Wp;var Qp=400,Hu=700;Ft.fontWeight={NORMAL:Qp,BOLD:Hu};var Jp="normal",as="italic",hg={NORMAL:Jp,ITALIC:as,OBLIQUE:"oblique"};Ft.fontStyle=hg;var _o="underline";Ft.textDecoration={UNDERLINE:_o,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var yg=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function Uo(){}Uo.prototype.destroy=function(){};function fi(e,t,n){ir.set(e.toLowerCase().split(";")[0]+"-"+n,{priority:n,se:t})}function Sl(e,t){for(var n=e.toLowerCase().split(";")[0],i=A([Dc,Ic,ru,di]),r=i.next();!r.done;r=i.next())if(r=ir.get(n+"-"+r.value)){var l=r.se(),c=l.isSupported(e,t);if(l.destroy(),c)return r.se}return null}Me("shaka.transmuxer.TransmuxerEngine",Uo),Uo.findTransmuxer=Sl,Uo.unregisterTransmuxer=function(e,t){ir.delete(e.toLowerCase().split(";")[0]+"-"+t)},Uo.registerTransmuxer=fi,Uo.prototype.destroy=Uo.prototype.destroy;var ir=new Map,di=1,ru=2,Ic=3,Dc=4;Uo.PluginPriority={FALLBACK:di,PREFERRED_SECONDARY:ru,PREFERRED:Ic,APPLICATION:Dc};function ss(){}function dn(e,t){var n=e;return t&&!lo.includes(e)&&(n+='; codecs="'+t+'"'),n}function oo(e,t){return t&&(e+='; codecs="'+t+'"'),e}function Xf(e,t,n){var i=dn(e,t);return t=oo(e,t),Sl(t)?(e=Sl(t))?(e=e(),n=e.convertCodecs(n,t),e.destroy()):n=t:n=e!="video/mp2t"&&n=="audio"?i.replace("video","audio"):i,n}function Yf(e,t,n){var i=[t];return Ku.forEach(function(r,l){var c=e[l];l=="codecs"?lo.includes(e.mimeType)||i.push('codecs="'+n+'"'):c&&i.push(r+'="'+c+'"')}),e.hdr=="PQ"&&i.push('eotf="smpte2084"'),i.join(";")}function Tl(e){return e.split(";")[0].split("/")[1]}function pi(e){var t=Oc(e);switch(e=t[0].toLowerCase(),t=t[1].toLowerCase(),!0){case(e==="mp4a"&&t==="69"):case(e==="mp4a"&&t==="6b"):case(e==="mp4a"&&t==="40.34"):return"mp3";case(e==="mp4a"&&t==="66"):case(e==="mp4a"&&t==="67"):case(e==="mp4a"&&t==="68"):case(e==="mp4a"&&t==="40.2"):case(e==="mp4a"&&t==="40.02"):case(e==="mp4a"&&t==="40.5"):case(e==="mp4a"&&t==="40.05"):case(e==="mp4a"&&t==="40.29"):case(e==="mp4a"&&t==="40.42"):return"aac";case(e==="mp4a"&&t==="a5"):case e==="ac3":case e==="ac-3":return"ac-3";case(e==="mp4a"&&t==="a6"):case e==="eac3":case e==="ec-3":return"ec-3";case e==="ac-4":return"ac-4";case(e==="mp4a"&&t==="b2"):return"dtsx";case(e==="mp4a"&&t==="a9"):return"dtsc";case e==="vp09":case e==="vp9":return"vp9";case e==="avc1":case e==="avc3":return"avc";case e==="hvc1":case e==="hev1":return"hevc";case e==="vvc1":case e==="vvi1":return"vvc";case e==="dvh1":case e==="dvhe":return t&&t.startsWith("05")?"dovi-p5":"dovi-hevc";case e==="dvav":case e==="dva1":return"dovi-avc";case e==="dav1":return"dovi-av1";case e==="dvc1":case e==="dvi1":return"dovi-vvc"}return e}function ii(e){var t=[];e=A(e.split(","));for(var n=e.next();!n.done;n=e.next())n=Oc(n.value),t.push(n[0]);
@license
Shaka Player
Copyright 2023 Google LLC
SPDX-License-Identifier: Apache-2.0
*/function ea(e,t,n){this.g=e,this.i=t,this.h=n}function gd(e,t){return G(function(n){if(n.g==1)return L(n,Il(e.h,t,e.g.drm.preferredKeySystems,e.g.drm.keySystemsMapping),2);if(e.g.streaming.dontChooseCodecs||Zp(t,e.g.preferredVideoCodecs,e.g.preferredAudioCodecs,e.g.preferredDecodingAttributes,e.g.preferredTextFormats),!t.variants.some(Vo))throw new Y(2,4,4032);return n.return(mh(e,t))})}function Kc(e,t){var n=e.g.restrictions;e=e.i;var i=!1;t=A(t.variants);for(var r=t.next();!r.done;r=t.next()){r=r.value;var l=r.allowedByApplication;r.allowedByApplication=Bo(r,n,e),l!=r.allowedByApplication&&(i=!0)}return i}function mh(e,t){var n=Kc(e,t);if(t){var i=e.h?e.h.h:null;if(i&&e.h.A)for(var r=A(t.variants),l=r.next();!l.done;l=r.next())l=l.value,vd(e,i.keySystem,l.video),vd(e,i.keySystem,l.audio);qc(e,t)}return n}function vd(e,t,n){if(n){n=A(n.drmInfos);for(var i=n.next();!i.done;i=n.next())if(i=i.value,i.keySystem==t){i=A(i.initData||[]);for(var r=i.next();!r.done;r=i.next())r=r.value,Ss(e.h,r.initDataType,r.initData)}}}function qc(e,t){e=e.h?e.h.Yd():{};var n=Object.keys(e);n=n.length&&n[0]=="00";var i=!1,r=!1,l=new Set,c=new Set;t=A(t.variants);for(var f=t.next();!f.done;f=t.next()){f=f.value;var h=[];f.audio&&h.push(f.audio),f.video&&h.push(f.video),h=A(h);for(var v=h.next();!v.done;v=h.next())if(v=v.value,v.keyIds.size){v=A(v.keyIds);for(var S=v.next();!S.done;S=v.next()){S=S.value;var T=e[n?"00":S];T?md.includes(T)&&c.add(T):l.add(S)}}f.allowedByApplication?f.allowedByKeySystem&&(i=!0):r=!0}if(!i)throw e={hasAppRestrictions:r,missingKeys:Array.from(l),restrictedKeyStatuses:Array.from(c)},new Y(2,4,4012,e)}var md=["output-restricted","internal-error"];function Cs(){}function ta(e,t){Pl.set(e,t)}function bs(){var e={};if($r())for(var t=A(Pl.keys()),n=t.next();!n.done;n=t.next())e[n.value]=!0;for(t=A(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]),n=t.next();!n.done;n=t.next())n=n.value,e[n]=$r()?Pl.has(n):Sc(n);return e}function Is(e,t){if(t){var n=Pl.get(t.toLowerCase());if(n)return n}throw new Y(2,4,4e3,e,t)}Me("shaka.media.ManifestParser",Cs),Cs.unregisterParserByMime=function(e){Pl.delete(e)},Cs.registerParserByMime=ta,Cs.registerParserByExtension=function(){bt("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")},Cs.AccessibilityPurpose={Nk:"visually impaired",dk:"hard of hearing"};var Pl=new Map;function cu(e,t){var n=null,i=null,r=null,l=null,c=e.S();return t&1&&(r=e.bd()),t&2&&(l=e.S()),t&8&&(n=e.S()),t&16&&(i=e.S()),{trackId:c,ld:n,md:i,Wh:r,rh:l}}function na(e,t){return t==1?(t=e.S(),e=e.S(),{baseMediaDecodeTime:t*Math.pow(2,32)+e}):{baseMediaDecodeTime:e.S()}}function Gc(e,t){return t==1?(e.skip(8),e.skip(8)):(e.skip(4),e.skip(4)),t=e.S(),e.skip(4),e=e.na(),{timescale:t,language:String.fromCharCode((e>>10)+96)+String.fromCharCode(((e&960)>>5)+96)+String.fromCharCode((e&31)+96)}}function zc(e,t,n){var i=e.S(),r=[],l=null;n&1&&(l=e.$f()),n&4&&e.skip(4);for(var c=0;c<i;c++){var f={gg:null,sampleSize:null,ye:null};n&256&&(f.gg=e.S()),n&512&&(f.sampleSize=e.S()),n&1024&&e.skip(4),n&2048&&(f.ye=t==0?e.S():e.$f()),r.push(f)}return{Sk:i,fg:r,nf:l}}function ia(e){e.skip(6),e.skip(2),e.skip(8);var t=e.na();return e.skip(2),e.skip(2),e.skip(2),e=e.na()+e.na()/65536,{channelCount:t,sampleRate:e}}function Sh(e){return e=e.S(),{codec:_r(e)}}function Ur(e){var t=null,n=null,i=e.Cb(4),r=String.fromCharCode(i[0]);if(r+=String.fromCharCode(i[1]),r+=String.fromCharCode(i[2]),r+=String.fromCharCode(i[3]),r==="nclx"){switch(e.na()){case 1:case 5:case 6:case 7:t="srgb";break;case 9:t="rec2020";break;case 11:case 12:t="p3"}switch(i=e.na(),e.na(),i){case 1:case 6:case 13:case 14:case 15:n="SDR";break;case 16:n="PQ";break;case 18:n="HLG"}}return{colorGamut:t,Nd:n}}function rr(e,t){return t=t===void 0?!1:t,e=e.toString(16).toUpperCase(),t?e:("0"+e).slice(-2)}function Gn(e){return(10>e?"0":"")+e}function fu(e){if(!Th){Th=!0;var t=new Uint8Array([105,115,111,109]),n=new Uint8Array([97,118,99,49]),i=new Uint8Array([0,0
@license
Shaka Player
Copyright 2022 Google LLC
SPDX-License-Identifier: Apache-2.0
*/function xd(){}function Zc(e,t){return t+10<=e.length&&e[t]===73&&e[t+1]===68&&e[t+2]===51&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]}function Os(e,t){return t+10<=e.length&&e[t]===51&&e[t+1]===68&&e[t+2]===73&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]}function On(e,t){var n=(e[t]&127)<<21;return n|=(e[t+1]&127)<<14,n|=(e[t+2]&127)<<7,n|=e[t+3]&127}function a0(e){var t={key:e.type,description:"",data:"",mimeType:null,pictureType:null};if(e.type==="APIC"){if(2>e.size||e.data[0]!==3)return null;var n=e.data.subarray(1).indexOf(0);if(n===-1)return null;var i=Zt(Je(e.data,1,n)),r=e.data[2+n],l=e.data.subarray(3+n).indexOf(0);if(l===-1)return null;var c=Zt(Je(e.data,3+n,l)),f;return i==="-->"?f=Zt(Je(e.data,4+n+l)):f=yr(e.data.subarray(4+n+l)),t.mimeType=i,t.pictureType=r,t.description=c,t.data=f,t}return e.type==="TXXX"?2>e.size||e.data[0]!==3||(i=e.data.subarray(1).indexOf(0),i===-1)?null:(n=Zt(Je(e.data,1,i)),e=Zt(Je(e.data,2+i)).replace(/\0*$/,""),t.description=n,t.data=e,t):e.type==="WXXX"?2>e.size||e.data[0]!==3||(i=e.data.subarray(1).indexOf(0),i===-1)?null:(n=Zt(Je(e.data,1,i)),e=Zt(Je(e.data,2+i)).replace(/\0*$/,""),t.description=n,t.data=e,t):e.type==="PRIV"?2>e.size||(n=e.data.indexOf(0),n===-1)?null:(n=Zt(Je(e.data,0,n)),t.description=n,n=="com.apple.streaming.transportStreamTimestamp"?(n=e.data.subarray(n.length+1),e=n[3]&1,n=(n[4]<<23)+(n[5]<<15)+(n[6]<<7)+n[7],n/=45,e&&(n+=4772185884e-2),t.data=n):(e=yr(e.data.subarray(n.length+1)),t.data=e),t):e.type[0]==="T"?2>e.size||e.data[0]!==3?null:(e=Zt(e.data.subarray(1)).replace(/\0*$/,""),t.data=e,t):e.type[0]==="W"?(e=Zt(e.data).replace(/\0*$/,""),t.data=e,t):e.data?(t.data=yr(e.data),t):null}function la(e){for(var t=0,n=[];Zc(e,t);){var i=On(e,t+6);for(e[t+5]>>6&1&&(t+=10),t+=10,i=t+i;t+10<i;){var r=e.subarray(t),l=On(r,4);r={type:String.fromCharCode(r[0],r[1],r[2],r[3]),size:l,data:r.subarray(10,10+l)},(l=a0(r))&&n.push(l),t+=r.size+10}Os(e,t)&&(t+=10)}return n}function ua(e,t){for(var n=t=t===void 0?0:t,i=0;Zc(e,t);)e[t+5]>>6&1&&(i+=10),i+=10,i+=On(e,t+6),Os(e,t+10)&&(i+=10),t+=i;return 0<i?e.subarray(n,n+i):new Uint8Array([])}Me("shaka.util.Id3Utils",xd),xd.getID3Data=ua,xd.getID3Frames=la;function Er(e,t){if(this.j=e,t!==void 0&&t){t=new Uint8Array(e.byteLength);for(var n=0,i=0;i<e.byteLength;i++)2<=i&&e[i]==3&&e[i-1]==0&&e[i-2]==0||(t[n]=e[i],n++);this.j=Je(t,0,n)}this.i=this.j.byteLength,this.g=this.h=0}function zo(e){var t=e.j.byteLength-e.i,n=new Uint8Array(4),i=Math.min(4,e.i);i!==0&&(n.set(e.j.subarray(t,t+i)),e.h=new Yt(n,0).S(),e.g=8*i,e.i-=i)}function Ni(e,t){if(e.g<=t){t-=e.g;var n=Math.floor(t/8);t-=8*n,e.g-=n,zo(e)}e.h<<=t,e.g-=t}function ht(e,t){var n=Math.min(e.g,t),i=e.h>>>32-n;return e.g-=n,0<e.g?e.h<<=n:0<e.i&&zo(e),n=t-n,0<n?i<<n|ht(e,n):i}function aa(e){var t;for(t=0;t<e.g;++t)if((e.h&2147483648>>>t)!==0)return e.h<<=t,e.g-=t,t;return zo(e),t+aa(e)}function kn(e){Ni(e,1+aa(e))}function Pe(e){var t=aa(e);return ht(e,t+1)-1}function hu(e){return e=Pe(e),1&e?1+e>>>1:-1*(e>>>1)}function He(e){return ht(e,1)===1}function Dt(e){return ht(e,8)}function ks(e,t){for(var n=8,i=8,r=0;r<t;r++)i!==0&&(i=hu(e),i=(n+i+256)%256),n=i===0?n:i}function Ed(e){return Dt(e),Pe(e),Pe(e)}Me("shaka.util.ExpGolomb",Er);function Wt(){this.G=null,this.H=!1,this.m=this.I=null,this.j=[],this.g=[],this.A=this.B=null,this.i=[],this.h=[],this.C=null,this.l=[],this.F=this.o=this.u=null}y=Wt.prototype,y.clearData=function(){this.j=[],this.g=[],this.i=[],this.h=[],this.l=[]},y.parse=function(e){if(564>e.length)return this;for(var t=Math.max(0,Ad(e)),n=e.length-(e.length+t)%188,i=!1,r=t;r<n;r+=188)if(e[r]==71){var l=!!(e[r+1]&64),c=((e[r+1]&31)<<8)+e[r+2];if(1<(e[r+3]&48)>>4){var f=r+5+e[r+4];if(f==r+188)continue}else f=r+4;switch(c){case 0:l&&(f+=e[f]+1),this.G=(e[f+10]&31)<<8|e[f+11];break;case 17:case 8191:break;case this.G:l&&(f+=e[f]+1),l=e,c={audio:-1,video:-1,ce:-1,audioCodec:"",videoCodec:""};var h=f+3+((l[f+1]&15)<<8|l[f+2])-4;for(f+=12+((l[f+10]&15)<<8|l[f+11]);f<h;){var v=(l[f+1]&31)<<8|l[f+2],S=(l[f+3]&15)<
`;if(e.nestedCues.length)return e.nestedCues.map(function(c){return vf(c,e)}).join("");if(!e.payload)return e.payload;var n=[],i=e.fontWeight>=Hu,r=e.fontStyle==as,l=e.textDecoration.includes(_o);return i&&n.push(["b"]),r&&n.push(["i"]),l&&n.push(["u"]),r=e.color,r==""&&t&&(r=t.color),i="",(r=Gd(r))&&(i+="."+r),r=e.backgroundColor,r==""&&t&&(r=t.backgroundColor),(t=Gd(r))&&(i+=".bg_"+t),i&&n.push(["c",i]),n.reduceRight(function(c,f){var h=A(f);return f=h.next().value,h=h.next().value,"<"+f+(h===void 0?"":h)+">"+c+"</"+f+">"},e.payload)}function Gd(e){e=e.toLowerCase();var t=e.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);switch(t?e="#"+(parseInt(t[1],10)|256).toString(16).slice(1)+(parseInt(t[2],10)|256).toString(16).slice(1)+(parseInt(t[3],10)|256).toString(16).slice(1):e.startsWith("#")&&7<e.length&&(e=e.slice(0,7)),e){case"white":case"#fff":case"#ffffff":return"white";case"lime":case"#0f0":case"#00ff00":return"lime";case"cyan":case"#0ff":case"#00ffff":return"cyan";case"red":case"#f00":case"#ff0000":return"red";case"yellow":case"#ff0":case"#ffff00":return"yellow";case"magenta":case"#f0f":case"#ff00ff":return"magenta";case"blue":case"#00f":case"#0000ff":return"blue";case"black":case"#000":case"#000000":return"black"}return null}function mf(e,t){var n=[];e=A(Sf(e));for(var i=e.next();!i.done;i=e.next())if(i=i.value,i.isContainer)n.push.apply(n,te(mf(i.nestedCues,i)));else{var r=i.clone();r.nestedCues=[],r.payload=vf(i,t),n.push(r)}return n}function Sf(e){var t=[];e=A(e);for(var n=e.next(),i={};!n.done;i={jf:void 0},n=e.next())i.jf=n.value,t.some(function(r){return function(l){return nu(r.jf,l)}}(i))||t.push(i.jf);return t}function wv(e){function t(i){for(var r=5381,l=i.length;l;)r=33*r^i.charCodeAt(--l);return(r>>>0).toString()}if(e.startTime>=e.endTime)return null;var n=new VTTCue(e.startTime,e.endTime,e.payload);n.id=t(e.startTime.toString())+t(e.endTime.toString())+t(e.payload),n.lineAlign=e.lineAlign,n.positionAlign=e.positionAlign,e.size&&(n.size=e.size);try{n.align=e.textAlign}catch{}return e.textAlign=="center"&&n.align!="center"&&(n.align="middle"),e.writingMode=="vertical-lr"?n.vertical="lr":e.writingMode=="vertical-rl"&&(n.vertical="rl"),e.lineInterpretation==1&&(n.snapToLines=!1),e.line!=null&&(n.line=e.line),e.position!=null&&(n.position=e.position),n}function ui(e,t){for(this.h=e,this.i=t,this.g=null,e=A(Array.from(this.h.textTracks)),t=e.next();!t.done;t=e.next())t=t.value,t.kind!=="metadata"&&t.kind!=="chapters"&&(t.mode="disabled",t.label==this.i&&(this.g=t));this.g&&(this.g.mode="hidden")}y=ui.prototype,y.configure=function(){},y.remove=function(e,t){return this.g?(Xh(this.g,function(n){return n.startTime<t&&n.endTime>e}),!0):!1},y.append=function(e){if(this.g){var t=mf(e),n=[];e=this.g.cues?Array.from(this.g.cues):[],t=A(t);for(var i=t.next(),r={};!i.done;r={Tc:void 0},i=t.next())r.Tc=i.value,!e.some(function(l){return function(c){return c.startTime==l.Tc.startTime&&c.endTime==l.Tc.endTime&&c.text==l.Tc.payload}}(r))&&r.Tc.payload&&(i=wv(r.Tc))&&n.push(i);for(e=n.slice().sort(function(l,c){return l.startTime!=c.startTime?l.startTime-c.startTime:l.endTime!=c.endTime?l.endTime-c.startTime:"line"in VTTCue.prototype?n.indexOf(c)-n.indexOf(l):n.indexOf(l)-n.indexOf(c)}),e=A(e),t=e.next();!t.done;t=e.next())this.g.addCue(t.value)}},y.destroy=function(){return this.g&&(Xh(this.g,function(){return!0}),this.g.mode="disabled"),this.g=this.h=null,Promise.resolve()},y.isTextVisible=function(){return this.g?this.g.mode=="showing":!1},y.setTextVisibility=function(e){e&&!this.g&&xv(this),this.g&&(this.g.mode=e?"showing":"hidden")},y.setTextLanguage=function(){},y.enableTextDisplayer=function(){xv(this)};function xv(e){e.h&&!e.g&&(e.g=e.h.addTextTrack("subtitles",e.i),e.g.mode="hidden")}function Xh(e,t){var n=e.mode;e.mode=n=="showing"?"showing":"hidden";for(var i=A(Array.from(e.cues)),r=i.next();!r.done;r=i.next())(r=r.value)&&t(r)&&e.removeCue(r);e.mode=n}Me("shaka.text.SimpleTextDisplayer",ui),ui.prototype.enableTextDisplayer=ui.prototype.enableTextDisplayer,ui.prototype.setTextLanguage=ui.prot
`,i=A(i);for(var r=i.next();!r.done;r=i.next())r=r.value,e+=n(r.startTime)+" --> "+n(r.endTime)+function(l){var c=[];switch(l.textAlign){case"left":c.push("align:left");break;case"right":c.push("align:right");break;case zi:c.push("align:middle");break;case"start":c.push("align:start");break;case"end":c.push("align:end")}switch(l.writingMode){case"vertical-lr":c.push("vertical:lr");break;case"vertical-rl":c.push("vertical:rl")}return c.length?" "+c.join(" "):""}(r)+`
`,e+=r.payload+`
`;return e}Me("shaka.text.WebVttGenerator",function(){});function zd(e,t){this.h=e,this.g=t,this.i=void 0,this.u=!1,this.F=!0,this.l=this.B=!1,this.o=this.m=void 0,this.A=0,this.G=!1,this.C=new yt,this.j=null}zd.prototype.setMediaElement=function(e){this.j=e,k0(this)},zd.prototype.configure=function(e){this.g=e};function Cv(e){e.u=!1,e.F=!0,e.B=!1,e.l=!1,e.m=0,e.o=0,e.A=0,e.G=!1,e.j=null,e.C.Qa()}function Qh(e,t){e.l=t,e.l?e.i==Ca?e.i=Ef:e.i==Qd&&(e.i=ba):e.i==Ef?e.i=Ca:e.i==ba&&(e.i=Qd)}function bv(e,t){if(e.g&&e.g.enabled&&e.g.version==ny&&e.j&&e.j.autoplay){var n=e.j.play();n&&n.then(function(){e.A=t}).catch(function(){e.A=0})}}function Fd(e,t,n){try{if(!e.g.enabled)return t;var i=Jh(e);e:{switch(n.toLowerCase()){case"audio/mp4":case"audio/webm":case"audio/ogg":case"audio/mpeg":case"audio/aac":case"audio/flac":case"audio/wav":var r=xu;break e;case"video/webm":case"video/mp4":case"video/mpeg":case"video/mp2t":r=Yd;break e;case"application/x-mpegurl":case"application/vnd.apple.mpegurl":case"application/dash+xml":case"video/vnd.mpeg.dash.mpd":case"application/vnd.ms-sstr+xml":r=ec;break e}r=void 0}i.ot=r,i.su=!0;var l=wo(i);return el(t,l)}catch(c){return ko("CMCD_SRC_ERROR","Could not generate src CMCD data.",c),t}}function k0(e){e.C.ma(e.j,"play",function(){e.m||(e.m=Date.now())}),e.C.ma(e.j,"playing",function(){e.o||(e.o=Date.now())})}function Jh(e){return e.g.sessionId||(e.g.sessionId=E.crypto.randomUUID()),{v:e.g.version,sf:e.i,sid:e.g.sessionId,cid:e.g.contentId,mtp:e.h.getBandwidthEstimate()/1e3}}function Tu(e,t,n){n=n===void 0?{}:n;var i=i===void 0?e.g.useHeaders:i;if(e.g.enabled){Object.assign(n,Jh(e)),n.pr=e.h.gb();var r=n.ot===xo||n.ot===Yd;if(e.B&&r&&(n.bs=!0,n.su=!0,e.B=!1),n.su==null&&(n.su=e.F),n.v===ny&&(e.h.U()&&(n.ltc=e.h.Zd()),r=!e.G&&e.o&&e.m?e.o-(e.A||e.m):void 0,r!=null&&(n.msd=r,e.G=!0)),e=Zh(e,n),i)i=wu(e),Object.keys(i).length&&Object.assign(t.headers,i);else{var l=wo(e);l&&(t.uris=t.uris.map(function(c){return el(c,l)}))}}}function Zh(e,t){var n=e.g.includeKeys;return n.length?Object.keys(t).reduce(function(i,r){return n.includes(r)&&(i[r]=t[r]),i},{}):t}function Xd(e){if(e.type===0)return Iv;if(e=e.stream){var t=e.type;if(t=="video")return e.codecs&&e.codecs.includes(",")?Yd:xo;if(t=="audio")return xu;if(t=="text")return e.mimeType==="application/mp4"?Wd:Aa}}function $h(e,t){if(t=e.h.Fb()[t],!t.length)return NaN;var n=e.h.getCurrentTime();return(e=t.find(function(i){return i.start<=n&&i.end>=n}))?1e3*(e.end-n):NaN}function ey(e,t){if(t=e.h.Fb()[t],!t.length)return 0;var n=e.h.getCurrentTime();return(e=t.find(function(i){return i.start<=n&&i.end>=n}))?1e3*(e.end-n):0}function ty(e,t){var n=e.h.Rb();if(!n.length)return NaN;e=n[0],n=A(n);for(var i=n.next();!i.done;i=n.next())i=i.value,i.type==="variant"&&i.bandwidth>e.bandwidth&&(e=i);switch(t){case xo:return e.videoBandwidth||NaN;case xu:return e.audioBandwidth||NaN;default:return e.bandwidth}}function wo(e){function t(T){return 100*n(T/100)}function n(T){return Math.round(T)}function i(T){return!Number.isNaN(T)&&T!=null&&T!==""&&T!==!1}var r=[],l={br:n,d:n,bl:t,dl:t,mtp:t,nor:function(T){return encodeURIComponent(T)},rtp:t,tb:n},c=Object.keys(e||{}).sort();c=A(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;var h=e[f];if(i(h)&&(f!=="v"||h!==1)&&(f!="pr"||h!==1)){var v=l[f];v&&(h=v(h)),v=typeof h;var S=void 0;S=v==="string"&&f!=="ot"&&f!=="sf"&&f!=="st"?f+"="+JSON.stringify(h):v==="boolean"?f:v==="symbol"?f+"="+h.description:f+"="+h,r.push(S)}}return r.join(",")}function wu(e){var t=Object.keys(e),n={},i=["Object","Request","Session","Status"],r=[{},{},{},{}],l={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,ltc:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,msd:2,bs:3,rtp:3};t=A(t);for(var c=t.next();!c.done;c=t.next())c=c.value,r[l[c]!=null?l[c]:1][c]=e[c];for(e=0;e<r.length;e++)(l=wo(r[e]))&&(n["CMCD-"+i[e]]=l);return n}function el(e,t){return!t||e.includes("offline:")?e:(e=new fn(e),e.g.set("CMCD",t),e.toString())}var ec="m",xu="a",xo="v",Yd="av",Iv="i",Aa="c",Wd="tt",ny=2,Ca="d",Ef="ld",Qd="h",ba="lh";Me("shaka.util.CmcdManager.StreamingFormat",{
`).trim();var n=t.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(n[0]))throw new Y(2,4,4015);t=0;for(var i=!0,r=A(n),l=r.next();!l.done;l=r.next())if(l=l.value,/^#(?!EXT)/m.test(l)||i)i=!1;else if(l=T1(e,l),--e.g,dw.includes(l.name)){t=1;break}else l.name=="EXT-X-STREAM-INF"&&(i=!0);for(r=[],i=!0,l=0;l<n.length;l++){var c=n[l],f=n[l+1];if(/^#(?!EXT)/m.test(c)||i)i=!1;else{if(c=T1(e,c),l3.includes(c.name)){if(t!=1)throw new Y(2,4,4017);c=n.splice(l,n.length-l),n=[],i=[],l=[],f=null,c=A(c);for(var h=c.next();!h.done;h=c.next())h=h.value,/^(#EXT)/.test(h)?(h=T1(e,h),dw.includes(h.name)?r.push(h):h.name=="EXT-X-MAP"?f=h:h.name=="EXT-X-PART"?l.push(h):h.name=="EXT-X-PRELOAD-HINT"?Ve(h,"TYPE")=="PART"?l.push(h):Ve(h,"TYPE")=="MAP"&&(h.name="EXT-X-MAP",f=h):i.push(h)):/^#(?!EXT)/m.test(h)||(h=h.trim(),f&&i.push(f),n.push(new aw(h,i,l)),i=[],l=[]);return l.length&&(f&&i.push(f),n.push(new aw("",i,l))),new lw(t,r,n)}r.push(c),c.name=="EXT-X-STREAM-INF"&&(c.attributes.push(new rm("URI",f)),i=!0)}}return new lw(t,r)}function T1(e,t){e=e.g++;var n=t.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!n)throw new Y(2,4,4016,t);t=n[1];var i=n[2];n=[];var r;if(i){i=new eu(i);var l;(l=_u(i,/^([^,=]+)(?:,|$)/g))&&(r=l[1]);for(var c=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;l=_u(i,c);)n.push(new rm(l[1],l[2]||l[3])),es(i)}return new im(e,t,n,r)}var dw="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP EXT-X-PART-INF EXT-X-DATERANGE".split(" "),l3="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP EXT-X-GAP EXT-X-TILES".split(" ");function pw(){}function hw(e,t){try{var n=om(e);return wr({uri:e,originalUri:e,data:n.data,headers:{"content-type":n.contentType},originalRequest:t})}catch(i){return kl(i)}}function om(e){var t=e.split(":");if(2>t.length||t[0]!="data")throw new Y(2,1,1004,e);if(t=t.slice(1).join(":").split(","),2>t.length)throw new Y(2,1,1004,e);var n=t[0];e=E.decodeURIComponent(t.slice(1).join(",")),t=n.split(";"),n=t[0];var i=!1;1<t.length&&t[t.length-1]=="base64"&&(i=!0,t.pop());var r;return i?r=Hi(e):r=kr(e),{data:r,contentType:n}}Me("shaka.net.DataUriPlugin",pw),pw.parse=hw,so("data",hw);function lm(){var e=this;this.g=this.h=null,this.F=1,this.A=new Map,this.I=new Map,this.M=new Map,this.M.set("video",new Map),this.M.set("audio",new Map),this.M.set(ot,new Map),this.M.set("image",new Map),this.Sb=new Map().set("com.apple.streamingkeydelivery",function(t,n,i){return k3(e,t,n,i)}).set("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",function(t){var n=Bt(t,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(n)){var i="cenc";n=="SAMPLE-AES"&&(i="cbcs"),n=Bt(t,"URI"),n=om(n.split("?")[0]),n=Je(n.data),i=Mr("com.widevine.alpha",i,[{initDataType:"cenc",initData:n}]),(t=Ve(t,"KEYID"))&&i.keyIds.add(t.toLowerCase().substr(2)),t=Promise.resolve(i)}else t=Promise.resolve(null);return t}).set("com.microsoft.playready",function(t){var n=Bt(t,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(n)){var i="cenc";n=="SAMPLE-AES"&&(i="cbcs"),t=Bt(t,"URI"),t=om(t.split("?")[0]),t=Je(t.data),n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),n=Bc(t,n,new Set,0),i=Mr("com.microsoft.playready",i,[{initDataType:"cenc",initData:n}]),(t=Bu(["<PLAYREADY>",Po(t),"</PLAYREADY>"].join(`
`)))&&(i.licenseServerUri=Xv(t)),i=Promise.resolve(i)}else i=Promise.resolve(null);return i}).set("urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c",function(t){var n=Bt(t,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(n)){var i="cenc";n=="SAMPLE-AES"&&(i="cbcs"),n=Bt(t,"URI"),n=om(n.split("?")[0]),n=Je(n.data),i=Mr("com.huawei.wiseplay",i,[{initDataType:"cenc",initData:n}]),(t=Ve(t,"KEYID"))&&i.keyIds.add(t.toLowerCase().substr(2)),t=Promise.resolve(i)}else t=Promise.resolve(null);return t}),this.Na=new Set,this.i=new Map,this.l=null,this.C="",this.Ga=new o3,this.K=-1,this.ea=1/0,this.$=this.Ub=this.Ma=!1,this.B=new ct(function(){if(e.W&&!e.g.continueLoadingWhenPaused&&(e.T.Ja(e.W,"timeupdate"),e.W.paused)){e.T.ma(e.W,"timeupdate",function(){return Lw(e)});return}Lw(e)}),this.Ea=fm,this.m=null,this.La=0,this.o=1/0,this.Fa=this.Aa=this.P=0,this.Z=new ao,this.G=new Map,this.H=new Map,this.sa=new Map,this.ka=new Map,this.L=new Map,this.oa=new Map,this.pa=new Map,this.Tb=this.fa=!1,this.Pb=new Va(5),this.j=null,this.O=!0,this.ya=new Set,this.T=new yt,this.u=this.W=null,this.Qb=function(){return!1}}y=lm.prototype,y.configure=function(e,t){var n=this.h&&e.updatePeriod!=this.g.updatePeriod&&0<=e.updatePeriod;this.g=e,t&&(this.Qb=t),this.j&&this.j.configure(this.g),n&&this.m&&this.m.presentationTimeline.U()&&this.B.sb()},y.start=function(e,t){var n=this,i;return G(function(r){return r.g==1?(n.h=t,n.fa=t.isLowLatencyMode(),L(r,D1(n,[e]).promise,2)):r.g!=3?(i=r.h,n.C=i.uri,L(r,s3(n,i.data),3)):r.return(n.m)})},y.stop=function(){this.B&&(this.B.stop(),this.B=null);var e=[];return this.Z&&(e.push(this.Z.destroy()),this.Z=null),this.g=this.h=null,this.Na.clear(),this.m=null,this.i.clear(),this.I.clear(),this.H.clear(),this.A.clear(),this.sa.clear(),this.ka.clear(),this.L.clear(),this.oa.clear(),this.pa.clear(),this.ya.clear(),this.j&&this.j.destroy(),this.T&&(this.T.release(),this.T=null),Promise.all(e)},y.update=function(){var e=this,t,n,i,r,l,c,f,h,v,S,T,b;return G(function(I){if(I.g==1){if(!Wi(e))return I.return();for(t=[],n=Array.from(e.i.values()),e.o=1/0,e.m.gapCount=0,i=n.filter(function(O){return O.stream.segmentIndex}),r=A(i),l=r.next();!l.done;l=r.next())c=l.value,t.push(u3(e,c));return L(I,Promise.all(t),2)}for(xw(e,i.map(function(O){return O.stream})),f=i.some(function(O){return O.rd==0}),i.length&&!f&&(h=L3,sm(e,h.Ph),v=i.map(function(O){return O.Vb}),e.l.bb(Math.min.apply(Math,te(v))),e.h.updateDuration()),f&&x1(e),S=A(i),T=S.next();!T.done;T=S.next())b=T.value,b.stream.isAudioMuxedInVideo||!b.stream.segmentIndex||Bn(b.stream.segmentIndex)||e.h.disableStream(b.stream);ce(I)})};function w1(e,t){return Wi(e)?e.M.get(t.type):t.je}function u3(e,t){var n,i,r,l,c,f,h,v,S,T,b,I,O,N,P,_,V,F,z,J,q,K,W,Q,ie,Z,ne,re,ue,de,se,we,be,Qe,Be,kt;return G(function(mt){switch(mt.g){case 1:if(t.stream.isAudioMuxedInVideo)return mt.return();for(n=[],i=A(t.N()),r=i.next();!r.done;r=i.next())l=r.value,c=new fn(l),f=c.g,t.Td&&(0<=t.Ab&&f.add("_HLS_msn",String(t.Ab)),0<=t.Bb&&f.add("_HLS_part",String(t.Bb))),t.Ud&&f.add("_HLS_skip","YES"),ku(f)&&Jr(c,Ha(f.toString())),n.push(c.toString());return he(mt,2),L(mt,D1(e,n,!0).promise,4);case 4:h=mt.h,Le(mt,3);break;case 2:throw v=De(mt),e.h&&e.h.disableStream(t.stream),v;case 3:if(!t.stream.segmentIndex)return mt.return();if(S=S1(e.Ga,h.data),S.type!=1)throw new Y(2,4,4017);return T=h.uri,T==h.originalUri||t.N().includes(T)||t.ve.push(T),b=Eo(S.ca,"EXT-X-DEFINE"),I=E1(e,b,T),O=t.stream,N=w1(e,t),L(mt,bw(e,S,O.mimeType,t.N,I),5);case 5:for(P=mt.h,_=P.keyIds,V=P.drmInfos,F=P.encrypted,z=P.Bg,O.encrypted||!F||z||(O.encrypted=!0),J=function(st,pt){return st.size===pt.size&&[].concat(te(st)).every(function(Ot){return pt.has(Ot)})},J(O.keyIds,_)||(O.keyIds=_,O.drmInfos=V,e.h.newDrmInfo(O)),q=Rw(e,S,N,I,t.N,t.type),K=q.segments,(W=q.bandwidth)&&(O.bandwidth=W),Q=qs(O),ie=A(K),Z=ie.next();!Z.done;Z=ie.next())ne=Z.value,ne.Y&&(ne.Y.Wc=Q);O.segmentIndex.Bd(K,e.l.pb()),K.length&&(re=cp(S.ca,"EXT-X-MEDIA-SEQUENCE",0),de=(ue=mi(S.ca,"EXT-X-SKIP"))?Number(Ve(ue,"SKIPPED-SEGMENTS")):0,se=Aw(re,K),we=se.Ab,be=
`);e={},t=A(t);for(var n=t.next();!n.done;n=t.next())n=n.value.split(": "),e[n[0].toLowerCase()]=n.slice(1).join(": ");return e}Me("shaka.net.HttpXHRPlugin",qw),qw.parse=ym;var Q3=E.XMLHttpRequest;so("http",ym,1,!0),so("https",ym,1,!0),so("blob",ym,1,!0);function zw(e,t,n,i,r){this.g=e,this.i=t,this.groupId=n,this.h=i,this.j=r}function N1(e){var t=e.Ib(!1);return t?Po(t):e.N().map(function(n){return"{"+encodeURI(n.split("#xywh=")[0])+"}"}).join("")+":"+e.Sa+":"+e.wa}function J3(e,t){return cf(e.g.N(),e.g.Sa,e.g.wa,t.streaming.retryParameters)}function Fw(){this.g=this.j=this.i=0,this.h=new Map,this.l=0}function Xw(e,t){e.i+=t;var n=e.l;return e.l++,e.h.set(n,t),n}Fw.prototype.close=function(e,t){if(this.h.has(e)){var n=this.h.get(e);this.h.delete(e),this.j+=n,this.g+=t}};function Yw(e){return e.i==0?0:e.j/e.i}function Ww(e){var t=this;this.u=e,this.i=new Map,this.h=new ms(function(){return L1(t).catch(function(){})}),this.j=[],this.o=function(){},this.m=function(){},this.g=new Fw,this.l=!1}Ww.prototype.destroy=function(){return this.h.destroy()};function Z3(e,t,n){e.o=t,e.m=n}function L1(e){e.l=!0;var t=e.j.map(function(n){return n()});return e.j=[],Promise.all(t)}function $3(e,t,n,i,r,l){at(e.h);var c=(e.i.get(t)||Promise.resolve()).then(function(){var f,h,v,S,T,b,I;return G(function(O){if(O.g==1)return L(O,nI(e,n),2);if(f=O.h,e.h.g)throw new Y(2,9,7001);if(r)for(S in h=Je(f),v=new cd(h),v.data)T=Number(S),b=v.data[T],I=v.g[T],e.m(b,I);return e.g.close(i,f.byteLength),e.o(Yw(e.g),e.g.g),O.return(l(f))})});e.i.set(t,c)}function eI(e,t,n,i,r,l){at(e.h);var c=(e.i.get(t)||Promise.resolve()).then(function(){if(e.h.g)throw new Y(2,9,7001);if(r){var f=Je(n);f=new cd(f);for(var h in f.data){var v=Number(h);e.m(f.data[v],f.g[v])}}return e.g.close(i,n.byteLength),e.o(Yw(e.g),e.g.g),l(n)});e.i.set(t,c)}function tI(e){return G(function(t){return t.g==1?L(t,Promise.all(e.i.values()),2):t.return(e.g.g)})}function nI(e,t){var n,i,r,l;return G(function(c){return c.g==1?(n=Fi,i=e.u.request(n,t),r=function(){return i.abort()},e.j.push(r),L(c,i.promise,2)):(l=c.h,Rr(e.j,r),c.return(l.data))})}function gm(e,t){var n=this;this.i=e,this.h=e.objectStore(t),this.g=new It,e.onabort=function(i){i.preventDefault(),n.g.reject()},e.onerror=function(i){i.preventDefault(),n.g.reject()},e.oncomplete=function(){n.g.resolve()}}gm.prototype.abort=function(){var e=this;return G(function(t){if(t.g==1){try{e.i.abort()}catch{}return he(t,2),L(t,e.g,4)}if(t.g!=2)return Le(t,0);De(t),ce(t)})};function _1(e,t){return new Promise(function(n,i){var r=e.h.openCursor();r.onerror=i,r.onsuccess=function(){var l;return G(function(c){if(c.g==1)return r.result==null?(n(),c.return()):(l=r.result,L(c,t(l.key,l.value,l),2));l.continue(),ce(c)})}})}gm.prototype.store=function(){return this.h},gm.prototype.promise=function(){return this.g};function U1(e){this.h=e,this.g=[]}U1.prototype.destroy=function(){return Promise.all(this.g.map(function(e){return e.abort()}))};function Of(e,t){return vm(e,t,"readwrite")}function vm(e,t,n){n=e.h.transaction([t],n);var i=new gm(n,t);return e.g.push(i),i.promise().then(function(){Rr(e.g,i)},function(){Rr(e.g,i)}),i}function kf(e,t,n){this.h=new U1(e),this.i=t,this.g=n}y=kf.prototype,y.destroy=function(){return this.h.destroy()},y.hasFixedKeySpace=function(){return!0},y.addSegments=function(){return Qw(this.i)},y.removeSegments=function(e,t){return Jw(this,this.i,e,t)},y.getSegments=function(e){var t=this,n;return G(function(i){return i.g==1?L(i,Zw(t,t.i,e),2):(n=i.h,i.return(n.map(function(r){return t.Ig(r)})))})},y.addManifests=function(){return Qw(this.g)},y.updateManifest=function(){return Promise.reject(new Y(2,9,9016,"Cannot modify values in "+this.g))};function iI(e,t,n){e=Of(e.h,e.g);var i=e.store();return i.get(t).onsuccess=function(){i.put(n,t)},e.promise()}y.updateManifestExpiration=function(e,t){var n=Of(this.h,this.g),i=n.store();return i.get(e).onsuccess=function(r){(r=r.target.result)&&(r.expiration=t,i.put(r,e))},n.promise()},y.removeManifests=function(e,t){return Jw(this,this.g,e,t)},y.getManifests=function(e){var t=this
`}),h=Pr(l,"style"),l=Pr(l,"region"),v=[];for(var I=A(l),O=I.next();!O.done;O=I.next())(O=TD(O.value,h,b))&&v.push(O);if(Mt(r,"p").length)throw new Y(2,2,2001,"<p> can only be inside <div> in TTML");for(b=A(Mt(r,"div")),I=b.next();!I.done;I=b.next())if(Mt(I.value,"span").length)throw new Y(2,2,2001,"<span> can only be inside <p> in TTML");return(t=$x(r,t,c,f,h,l,v,T,S,null,!1,n,i))&&(t.backgroundColor||(t.backgroundColor="transparent"),e.push(t)),e};function $x(e,t,n,i,r,l,c,f,h,v,S,T,b){var I=v;if(is(e)){if(!S)return null;var O={tagName:"span",children:[Cn(e)],attributes:{},parent:null}}else O=e;for(var N=null,P=A(sE),_=P.next();!_.done&&!(N=Dm(O,"backgroundImage",i,"#",_.value)[0]);_=P.next());P=null,_=No(O,sE,"backgroundImage");var V=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/;if(_&&V.test(_)){if(P=parseInt(_.split(":").pop(),10)-1,P>=b.length)return null;P=b[P]}else T&&_&&!_.startsWith("#")&&(V=new fn(T),_=new fn(_),(_=V.resolve(_).toString())&&(P=_));if((e.tagName=="p"||N||P)&&(S=!0),e=S,_=(O.attributes["xml:space"]||(f?"default":"preserve"))=="default",V=O.children.every(is),f=[],!V)for(var F=A(O.children),z=F.next();!z.done;z=F.next())(z=$x(z.value,t,n,i,r,l,c,_,h,O,S,T,b))&&f.push(z);if(i=v!=null,T=Cn(O),T=O.children.length&&T&&/\S/.test(T),F=O.attributes.begin||O.attributes.end||O.attributes.dur,!(F||T||O.tagName=="br"||f.length!=0||i&&!_))return null;for(b=nE(O,n),T=b.start,b=b.end;I&&I.tagName&&I.tagName!="tt";)b=xD(I,n,T,b),T=b.start,b=b.end,I=I.parent;if(T==null&&(T=0),T+=t.periodStart,b=b==null?1/0:b+t.periodStart,T=Math.max(T,t.segmentStart),b=Math.min(b,t.segmentEnd),!F&&0<f.length)for(T=1/0,b=0,t=A(f),n=t.next();!n.done;n=t.next())n=n.value,T=Math.min(T,n.startTime),b=Math.max(b,n.endTime);if(O.tagName=="br")return r=new Ft(T,b,""),r.lineBreak=!0,r;if(t="",V&&(t=wi(Cn(O)||""),_&&(t=t.replace(/\s+/g," "))),t=new Ft(T,b,t),t.nestedCues=f,S||(t.isContainer=!0),h&&(t.cellResolution=h),h=Dm(O,"region",l,"")[0],O.attributes.region&&h&&h.attributes["xml:id"]){var J=h.attributes["xml:id"];t.region=c.filter(function(q){return q.id==J})[0]}return c=h,v&&i&&!O.attributes.region&&!O.attributes.style&&(c=Dm(v,"region",l,"")[0]),wD(t,O,c,N,P,r,e,f.length==0),t}function TD(e,t,n){var i=new Lu,r=e.attributes["xml:id"];if(!r)return null;i.id=r,r=null,n&&(r=cS.exec(n)||fS.exec(n)),n=r?Number(r[1]):null,r=r?Number(r[2]):null;var l,c=Im(e,t,"extent");if(c){var f=(l=cS.exec(c))||fS.exec(c);f!=null&&(i.width=Number(f[1]),i.height=Number(f[2]),l||(n!=null&&(i.width=100*i.width/n),r!=null&&(i.height=100*i.height/r)),i.widthUnits=l||n!=null?qi:0,i.heightUnits=l||r!=null?qi:0)}return(e=Im(e,t,"origin"))&&(f=(l=cS.exec(e))||fS.exec(e),f!=null&&(i.viewportAnchorX=Number(f[1]),i.viewportAnchorY=Number(f[2]),l?c||(i.width=100-i.viewportAnchorX,i.widthUnits=qi,i.height=100-i.viewportAnchorY,i.heightUnits=qi):(r!=null&&(i.viewportAnchorY=100*i.viewportAnchorY/r),n!=null&&(i.viewportAnchorX=100*i.viewportAnchorX/n)),i.viewportAnchorUnits=l||n!=null?qi:0)),i}function lS(e){var t=e.match(/rgba\(([^)]+)\)/);return t&&(t=t[1].split(","),t.length==4)?(t[3]=String(Number(t[3])/255),"rgba("+t.join(",")+")"):e}function wD(e,t,n,i,r,l,c,f){if(c=c||f,Ri(t,n,l,"direction",c)=="rtl"&&(e.direction="rtl"),f=Ri(t,n,l,"writingMode",c),f=="tb"||f=="tblr"?e.writingMode="vertical-lr":f=="tbrl"?e.writingMode="vertical-rl":f=="rltb"||f=="rl"?e.direction="rtl":f&&(e.direction=us),(f=Ri(t,n,l,"textAlign",!0))?(e.positionAlign=ID.get(f),e.lineAlign=bD.get(f),e.textAlign=bc[f.toUpperCase()]):e.textAlign=zi,(f=Ri(t,n,l,"displayAlign",!0))&&(e.displayAlign=zf[f.toUpperCase()]),(f=Ri(t,n,l,"color",c))&&(e.color=lS(f)),(f=Ri(t,n,l,"backgroundColor",c))&&(e.backgroundColor=lS(f)),(f=Ri(t,n,l,"border",c))&&(e.border=f),f=Ri(t,n,l,"fontFamily",c))switch(f){case"monospaceSerif":e.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case"proportionalSansSerif":e.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case"sansSerif":e.fontFamily="sans-serif";break;case"monospaceSansSerif":e.fontFamily="Consolas,monospace";break;case"propo
`);var n=e.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(n[0]))throw new Y(2,2,2e3);if(e=t.vttOffset,this.g=="HLS")if(n[0].includes("X-TIMESTAMP-MAP")){var i=n[0];if(e=i.match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),i=i.match(/MPEGTS:(\d+)/m),!e||!i)throw new Y(2,2,2e3);if(e=ns(e[1]),e==null)throw new Y(2,2,2e3);i=Number(i[1]);for(var r=t.segmentStart-t.periodStart;95443.7176888889<=r;)r-=95443.7176888889,i+=8589934592;e=t.periodStart+i/9e4-e}else t.periodStart&&t.vttOffset==t.periodStart&&(e=0);for(t=[],i=A(n[0].split(`
`)),r=i.next();!r.done;r=i.next())if(r=r.value,/^Region:/.test(r)){r=new eu(r);var l=new Lu;Uu(r),es(r);for(var c=Uu(r);c;){var f=l,h=c;(c=/^id=(.*)$/.exec(h))?f.id=c[1]:(c=/^width=(\d{1,2}|100)%$/.exec(h))?f.width=Number(c[1]):(c=/^lines=(\d+)$/.exec(h))?(f.height=Number(c[1]),f.heightUnits=2):(c=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(h))?(f.regionAnchorX=Number(c[1]),f.regionAnchorY=Number(c[2])):(c=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(h))?(f.viewportAnchorX=Number(c[1]),f.viewportAnchorY=Number(c[2])):/^scroll=up$/.exec(h)&&(f.scroll="up"),es(r),c=Uu(r)}t.push(l)}for(i=new Map,Xp(i),r=[],n=A(n.slice(1)),l=n.next();!l.done;l=n.next()){if(l=l.value.split(`
`),(l.length!=1||l[0])&&!/^NOTE($|[ \t])/.test(l[0])&&l[0]=="STYLE"){for(f=[],c=-1,h=1;h<l.length;h++)l[h].includes("::cue")&&(f.push([]),c=f.length-1),c!=-1&&(f[c].push(l[h]),l[h].includes("}")&&(c=-1));for(f=A(f),c=f.next();!c.done;c=f.next()){var v=c.value;c="global",(h=v[0].match(/\((.*)\)/))&&(c=h.pop()),h=v.slice(1,-1),v[0].includes("}")&&(v=/\{(.*?)\}/.exec(v[0]))&&(h=v[1].split(";")),(v=i.get(c))||(v=new Ft(0,0,""));for(var S=!1,T=0;T<h.length;T++){var b=/^\s*([^:]+):\s*(.*)/.exec(h[T]);if(b){var I=b[2].trim().replace(";","");switch(b[1].trim()){case"background-color":case"background":S=!0,v.backgroundColor=I;break;case"color":S=!0,v.color=I;break;case"font-family":S=!0,v.fontFamily=I;break;case"font-size":S=!0,v.fontSize=I;break;case"font-weight":(700<=parseInt(I,10)||I=="bold")&&(S=!0,v.fontWeight=Hu);break;case"font-style":switch(I){case"normal":S=!0,v.fontStyle=Jp;break;case"italic":S=!0,v.fontStyle=as;break;case"oblique":S=!0,v.fontStyle="oblique"}break;case"opacity":S=!0,v.opacity=parseFloat(I);break;case"text-combine-upright":S=!0,v.textCombineUpright=I;break;case"text-shadow":S=!0,v.textShadow=I;break;case"white-space":S=!0,v.wrapLine=I!="noWrap"}}}S&&i.set(c,v)}}if(v=l,S=e,v.length==1&&!v[0]||/^NOTE($|[ \t])/.test(v[0])||v[0]=="STYLE"||v[0]=="REGION")l=null;else if(l=null,v[0].includes("-->")||(l=v[0],v.splice(0,1)),f=new eu(v[0]),c=ts(f),T=_u(f,/[ \t]+--\x3e[ \t]+/g),h=ts(f),c==null||T==null||h==null)Et("Failed to parse VTT time code. Cue skipped:",l,v),l=null;else{for(c+=S,h+=S,S=v.slice(1).join(`
`).trim(),i.has("global")?(v=i.get("global").clone(),v.startTime=c,v.endTime=h,v.payload=S):v=new Ft(c,h,S),es(f),c=Uu(f);c;)cE(v,c,t),es(f),c=Uu(f);Cc(v,i),l!=null&&(v.id=l),l=v}l&&r.push(l)}return r};function cE(e,t,n){var i;(i=/^align:(start|middle|center|end|left|right)$/.exec(t))?(t=i[1],t=="middle"?e.textAlign=zi:e.textAlign=bc[t.toUpperCase()]):(i=/^vertical:(lr|rl)$/.exec(t))?e.writingMode=i[1]=="lr"?"vertical-lr":"vertical-rl":(i=/^size:([\d.]+)%$/.exec(t))?e.size=Number(i[1]):(i=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(t))?(e.position=Number(i[1]),i[2]&&(t=i[2],e.positionAlign=t=="line-left"||t=="start"?"line-left":t=="line-right"||t=="end"?"line-right":t=="center"||t=="middle"?"center":Gf)):(i=/^region:(.*)$/.exec(t))?(t=DD(n,i[1]))&&(e.region=t):(n=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(t))?(e.lineInterpretation=1,e.line=Number(n[1]),n[2]&&(e.lineAlign=Ff[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.lineInterpretation=Lo,e.line=Number(n[1]),n[2]&&(e.lineAlign=Ff[n[2].toUpperCase()]))}function DD(e,t){return e=e.filter(function(n){return n.id==t}),e.length?e[0]:null}Me("shaka.text.VttTextParser",Qi),Qi.prototype.parseMedia=Qi.prototype.parseMedia,Qi.prototype.setManifestType=Qi.prototype.setManifestType,Qi.prototype.setSequenceMode=Qi.prototype.setSequenceMode,Qi.prototype.parseInit=Qi.prototype.parseInit,Dn("text/vtt",function(){return new Qi}),Dn('text/vtt; codecs="vtt"',function(){return new Qi}),Dn('text/vtt; codecs="wvtt"',function(){return new Qi});function Gr(){this.g=null}Gr.prototype.parseInit=function(e){var t=this,n=!1;if(new Nt().box("moov",Ze).box("trak",Ze).box("mdia",Ze).R("mdhd",function(i){i=Gc(i.reader,i.version),t.g=i.timescale}).box("minf",Ze).box("stbl",Ze).R("stsd",An).box("wvtt",function(){n=!0}).parse(e),!this.g)throw new Y(2,2,2008);if(!n)throw new Y(2,2,2008)},Gr.prototype.setSequenceMode=function(){},Gr.prototype.setManifestType=function(){},Gr.prototype.parseMedia=function(e,t){if(!e.length)return[];if(!this.g)throw new Y(2,2,2008);var n=0,i=[],r,l=[],c=!1,f=!1,h=!1,v=null;if(new Nt().box("moof",Ze).box("traf",Ze).R("tfdt",function(F){c=!0,n=na(F.reader,F.version).baseMediaDecodeTime}).R("tfhd",function(F){v=cu(F.reader,F.flags).ld}).R("trun",function(F){f=!0,i=zc(F.reader,F.version,F.flags).fg}).box("mdat",Rl(function(F){h=!0,r=F})).parse(e,!1),!h&&!c&&!f)throw new Y(2,2,2008);e=n;for(var S=new Yt(r,0),T=A(i),b=T.next();!b.done;b=T.next()){b=b.value;var I=b.gg||v,O=b.ye?n+b.ye:e;e=O+(I||0);var N=0;do{var P=S.S();N+=P;var _=S.S(),V=null;_r(_)=="vttc"?8<P&&(V=S.Cb(P-8)):S.skip(P-8),I&&V&&(P=OD(V,t.periodStart+O/this.g,t.periodStart+e/this.g),l.push(P))}while(b.sampleSize&&N<b.sampleSize)}return l.filter(jo)};function OD(e,t,n){var i,r,l;return new Nt().box("payl",Rl(function(c){i=Zt(c)})).box("iden",Rl(function(c){r=Zt(c)})).box("sttg",Rl(function(c){l=Zt(c)})).parse(e),i?kD(i,r,l,t,n):null}function kD(e,t,n,i,r){if(e=new Ft(i,r,e),Cc(e),t&&(e.id=t),n)for(t=new eu(n),n=Uu(t);n;)cE(e,n,[]),es(t),n=Uu(t);return e}Me("shaka.text.Mp4VttParser",Gr),Gr.prototype.parseMedia=Gr.prototype.parseMedia,Gr.prototype.setManifestType=Gr.prototype.setManifestType,Gr.prototype.setSequenceMode=Gr.prototype.setSequenceMode,Gr.prototype.parseInit=Gr.prototype.parseInit,Dn('application/mp4; codecs="wvtt"',function(){return new Gr});function zr(){}zr.prototype.parseInit=function(){},zr.prototype.setSequenceMode=function(){},zr.prototype.setManifestType=function(){},zr.prototype.parseMedia=function(e){var t=Zt(e).replace(/\r+/g,"");if(t=t.trim(),e=[],t=="")return e;t=A(t.split(`
`));for(var n=t.next();!n.done;n=t.next()){n=n.value.split(`
`);var i=new eu(n[0]),r=ts(i),l=_u(i,/,/g);if(i=ts(i),r==null||l==null||i==null)throw new Y(2,2,2001,"Could not parse cue time range in SubViewer");e.push(new Ft(r,i,n.slice(1).join(`
`).trim()))}return e},Me("shaka.text.SbvTextParser",zr),zr.prototype.parseMedia=zr.prototype.parseMedia,zr.prototype.setManifestType=zr.prototype.setManifestType,zr.prototype.setSequenceMode=zr.prototype.setSequenceMode,zr.prototype.parseInit=zr.prototype.parseInit,Dn("text/x-subviewer",function(){return new zr});function Dr(){this.g=new Qi}Dr.prototype.parseInit=function(){},Dr.prototype.setSequenceMode=function(){},Dr.prototype.setManifestType=function(){},Dr.prototype.parseMedia=function(e,t,n){return e=Zt(e),e=fE(e),e=Je(kr(e)),this.g.parseMedia(e,t,n,[])};function fE(e){var t=`WEBVTT
`;if(e=="")return t;e=e.replace(/\r+/g,""),e=e.trim(),e=A(e.split(`
`));for(var n=e.next();!n.done;n=e.next())n=n.value.split(/\n/),n[0].match(/\d+/)&&n.shift(),n[0]=n[0].replace(/,/g,"."),t+=n.join(`
`).replace(/{b}/g,"<b>").replace(/{\/b}/g,"</b>").replace(/{i}/g,"<i>").replace(/{\/i}/g,"</i>").replace(/{u}/g,"<u>").replace(/{\/u}/g,"</u>")+`
`;return t}Me("shaka.text.SrtTextParser",Dr),Dr.srt2webvtt=fE,Dr.prototype.parseMedia=Dr.prototype.parseMedia,Dr.prototype.setManifestType=Dr.prototype.setManifestType,Dr.prototype.setSequenceMode=Dr.prototype.setSequenceMode,Dr.prototype.parseInit=Dr.prototype.parseInit,Dn("text/srt",function(){return new Dr});function Fr(){}Fr.prototype.parseInit=function(){},Fr.prototype.setSequenceMode=function(){},Fr.prototype.setManifestType=function(){},Fr.prototype.parseMedia=function(e){var t="",n="",i=null,r=null;for(r=Zt(e).split(/\r?\n\s*\r?\n/),e=A(r),r=e.next();!r.done;r=e.next()){var l=r.value;r=l,(l=RD.exec(l))&&(i=l[1],r=l[2]),i=="V4 Styles"||i=="V4+ Styles"?(t=r,t=n?t+(`
`+r):r):i=="Events"&&(n=n?n+(`
`+r):r)}for(i=[],r=null,t=A(t.split(/\r?\n/)),e=t.next();!e.done;e=t.next())if(e=e.value,!/^\s*;/.test(e)&&(l=hE.exec(e))){if(e=l[1].trim(),l=l[2].trim(),e=="Format")r=l.split(km);else if(e=="Style"){e=l.split(km),l={};for(var c=0;c<r.length&&c<e.length;c++)l[r[c]]=e[c];i.push(l)}}for(r=[],t=null,n=A(n.split(/\r?\n/)),l=n.next(),e={};!l.done;e={Dh:void 0},l=n.next())if(l=l.value,!/^\s*;/.test(l)&&(c=hE.exec(l))){if(l=c[1].trim(),c=c[2].trim(),l=="Format")t=c.split(km);else if(l=="Dialogue"){c=c.split(km),l={};for(var f=0;f<t.length&&f<c.length;f++)l[t[f]]=c[f];f=pE(l.Start);var h=pE(l.End);c=new Ft(f,h,c.slice(t.length-1).join(",").replace(/\\N/g,`
`).replace(/\{[^}]+\}/g,"")),e.Dh=l.Style,(e=i.find(function(v){return function(S){return S.Name==v.Dh}}(e)))&&MD(c,e),r.push(c)}}return r};function MD(e,t){var n=t.Fontname;if(n&&(e.fontFamily=n),(n=t.Fontsize)&&(e.fontSize=n+"px"),(n=t.PrimaryColour)&&(n=dE(n))&&(e.color=n),(n=t.BackColour)&&(n=dE(n))&&(e.backgroundColor=n),t.Bold&&(e.fontWeight=Hu),t.Italic&&(e.fontStyle=as),t.Underline&&e.textDecoration.push(_o),(n=t.Spacing)&&(e.letterSpacing=n+"px"),n=t.Alignment)switch(parseInt(n,10)){case 1:e.displayAlign=vl,e.textAlign="start";break;case 2:e.displayAlign=vl,e.textAlign=zi;break;case 3:e.displayAlign=vl,e.textAlign="end";break;case 5:e.displayAlign="before",e.textAlign="start";break;case 6:e.displayAlign="before",e.textAlign=zi;break;case 7:e.displayAlign="before",e.textAlign="end";break;case 9:e.displayAlign="center",e.textAlign="start";break;case 10:e.displayAlign="center",e.textAlign=zi;break;case 11:e.displayAlign="center",e.textAlign="end"}(t=t.AlphaLevel)&&(e.opacity=parseFloat(t))}function dE(e){return e=parseInt(e.replace("&H",""),16),0<=e?"rgba("+(e&255)+","+(e>>8&255)+","+(e>>16&255)+","+(e>>24&255^255)/255+")":null}function pE(e){return e=PD.exec(e),3600*(e[1]?parseInt(e[1].replace(":",""),10):0)+60*parseInt(e[2],10)+parseFloat(e[3])}Me("shaka.text.SsaTextParser",Fr),Fr.prototype.parseMedia=Fr.prototype.parseMedia,Fr.prototype.setManifestType=Fr.prototype.setManifestType,Fr.prototype.setSequenceMode=Fr.prototype.setSequenceMode,Fr.prototype.parseInit=Fr.prototype.parseInit;var RD=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,hE=/^\s*([^:]+):\s*(.*)/,km=/\s*,\s*/,PD=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;Dn("text/x-ssa",function(){return new Fr});function yE(e,t){var n=e[t+1]&1?7:9;return t+n<=e.length&&(e=((e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5)-n,0<e)?{ud:n,ia:e}:null}function gE(e,t){var n=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=(e[t+2]&60)>>>2;if(i>n.length-1)return null;var r=((e[t+2]&192)>>>6)+1,l=(e[t+2]&1)<<2;return l|=(e[t+3]&192)>>>6,{sampleRate:n[i],channelCount:l,codec:"mp4a.40."+r}}function vE(e,t){if(t+1<e.length&&e[t]===255&&(e[t+1]&246)===240){var n=e[t+1]&1?7:9;if(t+n>=e.length)return!1;var i=(e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5;return i<=n?!1:(t+=i,t===e.length||t+1<e.length&&e[t]===255&&(e[t+1]&246)===240)}return!1}function ND(e,t){switch(e){case"mp4a.40.2":if(t===1)return new Uint8Array([0,200,0,128,35,128]);if(t===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(t===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(t===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(t===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(t===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(t===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===2||t===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}function Xr(e){this.j=e,this.h=0,this.g=new Map,this.i=null}y=Xr.prototype,y.destroy=function(){this.g.clear()},y.isSupported=function(e){return e.toLowerCase().split(";")[0]=="audio/aac"?Ln(this.convertCodecs("audio",e)):!1},y.convertCodecs=function(e,t){return t.toLowerCase().split(";")[0]=="audio/aac"?'audio/mp4; codecs="'+(_n(t)||"mp4a.40.2")+'"':t},y.getOriginalMimeType=function(){return this.j},y.transmux=function(e,t,n,i){for(var r=Je(e),l=ua(r),c=l.length;c<r.length&&!vE(r,c);c++);if(e=1e3*n.endTime,l=la(l),l.length&&n&&(l=l.find(function(S){return S.description==="com.apple.streaming.transportStreamTimestamp"}))&&(e=l.data),l=gE(r,c),!l)return Promise.reject(new Y(2,3,3018,n?n.N()[0]:null));t.audioSamplingRate=l.sampleRate,t.channelsCount=l.channelCount;for(var f=[];c<r.
@license
MSS Transmuxer
Copyright 2015 Dash Industry Forum
SPDX-License-Identifier: BSD-3-Clause
*/function Yr(e){this.h=e,(this.g=m1.get("ISOBoxer")())&&YD(this)}function YD(e){function t(){this._procFullBox(),this.flags&1&&(this._procField("AlgorithmID","uint",24),this._procField("IV_size","uint",8),this._procFieldArray("KID",16,"uint",8)),this._procField("sample_count","uint",32),this._procEntries("entry",this.sample_count,function(n){this._procEntryField(n,"InitializationVector","data",8),this.flags&2&&(this._procEntryField(n,"NumberOfEntries","uint",16),this._procSubEntries(n,"clearAndCryptedData",n.NumberOfEntries,function(i){this._procEntryField(i,"BytesOfClearData","uint",16),this._procEntryField(i,"BytesOfEncryptedData","uint",32)}))})}e.g.addBoxProcessor("saio",function(){this._procFullBox(),this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32)),this._procField("entry_count","uint",32),this._procFieldArray("offset",this.entry_count,"uint",this.version===1?64:32)}),e.g.addBoxProcessor("saiz",function(){this._procFullBox(),this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32)),this._procField("default_sample_info_size","uint",8),this._procField("sample_count","uint",32),this.default_sample_info_size===0&&this._procFieldArray("sample_info_size",this.sample_count,"uint",8)}),e.g.addBoxProcessor("senc",t),e.g.addBoxProcessor("uuid",function(){for(var n=!0,i=0;16>i;i++)this.usertype[i]!==WD[i]&&(n=!1);n&&(this._parsing&&(this.type="sepiff"),t.call(this))})}y=Yr.prototype,y.destroy=function(){},y.isSupported=function(e,t){var n=e.startsWith("mss/");return!this.g||!n?!1:t?Ln(this.convertCodecs(t,e)):(t=this.convertCodecs("audio",e),e=this.convertCodecs("video",e),Ln(t)||Ln(e))},y.convertCodecs=function(e,t){return t.replace("mss/","")},y.getOriginalMimeType=function(){return this.h},y.transmux=function(e,t,n){if(!n)return Promise.resolve(Je(e));if(!t.mssPrivateData)return Promise.reject(new Y(2,3,3020,n?n.N()[0]:null));try{var i,r=this.g.parseBuffer(e),l=r.fetch("tfhd");l.track_ID=t.id+1;var c=r.fetch("tfdt"),f=r.fetch("traf");c===null&&(c=this.g.createFullBox("tfdt",f,l),c.version=1,c.flags=0,c.baseMediaDecodeTime=Math.floor(n.startTime*t.mssPrivateData.timescale));var h=r.fetch("trun"),v=r.fetch("tfxd");v&&v._parent.boxes.splice(v._parent.boxes.indexOf(v),1);var S=r.fetch("tfrf");S&&S._parent.boxes.splice(S._parent.boxes.indexOf(S),1);var T=r.fetch("sepiff");if(T!==null){T.type="senc",T.usertype=void 0;var b=r.fetch("saio");if(b===null){b=this.g.createFullBox("saio",f),b.version=0,b.flags=0,b.entry_count=1,b.offset=[0];var I=this.g.createFullBox("saiz",f);if(I.version=0,I.flags=0,I.sample_count=T.sample_count,I.default_sample_info_size=0,I.sample_info_size=[],T.flags&2)for(i=0;i<T.sample_count;i+=1)I.sample_info_size[i]=10+6*T.entry[i].NumberOfEntries;else I.default_sample_info_size=8}}l.flags&=16777214,l.flags|=131072,h.flags|=1;var O=r.fetch("moof");h.data_offset=O.getLength()+8;var N=r.fetch("saio");N!==null&&(N.offset[0]=xE(O,"traf")+xE(f,"senc")+16);var P=Je(r.write());return Promise.resolve(P)}catch(_){return _ instanceof Y?Promise.reject(_):Promise.reject(new Y(2,3,3022,n?n.N()[0]:null))}};function xE(e,t){for(var n=8,i=0;i<e.boxes.length&&e.boxes[i].type!==t;i++)n+=e.boxes[i].size;return n}Me("shaka.transmuxer.MssTransmuxer",Yr),Yr.prototype.transmux=Yr.prototype.transmux,Yr.prototype.getOriginalMimeType=Yr.prototype.getOriginalMimeType,Yr.prototype.convertCodecs=Yr.prototype.convertCodecs,Yr.prototype.isSupported=Yr.prototype.isSupported,Yr.prototype.destroy=Yr.prototype.destroy;var WD=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);fi("mss/audio/mp4",function(){return new Yr("mss/audio/mp4")},di),fi("mss/video/mp4",function(){return new Yr("mss/video/mp4")},di);function Do(e){this.m=e,this.g=0,this.i=new Map,this.l=this.h=this.j=null}y=Do.prototype,y.destroy=function(){this.i.clear(),this.h&&this.h.destroy()},y.isSupported=function(e,t){if(e.toLowerCase().split(";")[0]!="video/mp2t")return!1;var n=e;t&&(n=this.convertCodecs(t,e));var i=_n(n).split(",");return n=ci
@license
EME Encryption Scheme Polyfill
Copyright 2019 Google LLC
SPDX-License-Identifier: Apache-2.0
*/function AE(){}var _y;function CE(){_y||navigator.emeEncryptionSchemePolyfilled?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(_y=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=ZD,navigator.emeEncryptionSchemePolyfilled=!0):console.debug("EmeEncryptionSchemePolyfill: EME not found")}function ZD(e,t){var n=this,i;return G(function(r){return r.g==1?(console.assert(n==navigator,'bad "this" for requestMediaKeySystemAccess'),L(r,_y.call(n,e,t),2)):(i=r.h,PE(i)?(console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=_y,r.return(i)):(console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.requestMediaKeySystemAccess=bE,r.return(bE.call(n,e,t))))})}function bE(e,t){var n=this,i,r,l,c,f,h,v,S,T,b,I,O;return G(function(N){if(N.g==1){for(console.assert(n==navigator,'bad "this" for requestMediaKeySystemAccess'),i=RE(e),r=[],l=A(t),c=l.next();!c.done;c=l.next())f=c.value,h=IE(f.videoCapabilities,i),v=IE(f.audioCapabilities,i),f.videoCapabilities&&f.videoCapabilities.length&&!h.length||f.audioCapabilities&&f.audioCapabilities.length&&!v.length||(S=Object.assign({},f),S.videoCapabilities=h,S.audioCapabilities=v,r.push(S));if(!r.length)throw T=Error("Unsupported keySystem or supportedConfigurations."),T.name="NotSupportedError",T.code=DOMException.NOT_SUPPORTED_ERR,T;return L(N,_y.call(n,e,r),2)}return b=N.h,O=I=null,r[0]&&(r[0].videoCapabilities&&(I=r[0].videoCapabilities[0].encryptionScheme),r[0].audioCapabilities&&(O=r[0].audioCapabilities[0].encryptionScheme)),N.return(new Rm(b,I,O))})}function IE(e,t){return e&&e.filter(function(n){return dS(n.encryptionScheme,t)})}Me("EmeEncryptionSchemePolyfill",AE),AE.install=CE;function DE(){}var Uy;function OE(){Uy||navigator.mediaCapabilitiesEncryptionSchemePolyfilled?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(Uy=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=$D,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}function $D(e){var t=this,n,i;return G(function(r){switch(r.g){case 1:return console.assert(t==navigator.mediaCapabilities,'bad "this" for decodingInfo'),L(r,Uy.call(t,e),2);case 2:if(n=r.h,!n.supported||!e.keySystemConfiguration)return r.return(n);if((i=n.keySystemAccess)&&PE(i))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=Uy,r.return(n);if(console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=kE,i){r.s(3);break}return L(r,ME(e),4);case 4:return n.keySystemAccess=r.h,r.return(n);case 3:return r.return(kE.call(t,e))}})}function kE(e){var t=this,n,i,r,l,c,f,h;return G(function(v){switch(v.g){case 1:return console.assert(t==navigator.mediaCapabilities,'bad "this" for decodingInfo'),i=n=null,!e.keySystemConfiguration||(r=e.keySystemConfiguration,l=r.keySystem,i=r.audio&&r.audio.encryptionScheme,n=r.video&&r.video.encryptionScheme,c=RE(l),f={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:e},dS(i,c)&&dS(n,c))?L(v,Uy.call(t,e),2):v.return(f);case 2:if(h=v.h,h.keySystemAccess){h.keySystemAccess=new Rm(h.keySystemAccess,n,i),v.s(3);break}if(!e.keySystemConfiguration){v.s(3);break}return L(v,ME(e),5);case 5:h.keySystemAccess=v.h;case 3:return v.return(h)}})}function ME(e){var t,n;return G(function(i){if(i.g==1){var r=e.keySystemConfiguration,l=[],c=[];return r.audio&&l.push({robustness:r.audio.robustness||"",contentType:e.audio.contentType,encryptionScheme:r
`).map(ke=>ke.trim()),pe=E.split(`
`).map(ke=>ke.trim());if(ae.length!==pe.length){console.error("The number of KIDs and Keys must be the same.");return}const je=new bA.Player(s.current),ee={drm:{clearKeys:{}}};ae.forEach((ke,Re)=>{ee.drm.clearKeys[ke]=pe[Re]}),console.log("Configuring player with the following DRM config and headers:",ee),je.configure(ee),je.load(R).then(()=>{console.log("Video loaded")}).catch(ke=>{console.error("Error loading the video",ke)})}else console.error("MPD URL, KIDs, and Keys are required.")};return xe.useEffect(()=>{A()},[]),ye.jsxs("div",{className:"flex flex-col items-center w-full p-4",children:[ye.jsx(Tp,{children:ye.jsx("title",{children:"Test Player"})}),ye.jsxs("div",{className:"w-full flex flex-col",children:[ye.jsx("video",{ref:s,width:"100%",height:"auto",controls:!0,className:"h-96"}),ye.jsx("input",{type:"text",value:R,onChange:p,placeholder:"MPD URL",className:"border-2 border-rose-700/50 mt-2 text-white p-1 rounded transition-all ease-in-out focus:outline-none focus:ring-2 focus:ring-rose-700/50 duration-200"}),ye.jsx("textarea",{placeholder:"KIDs (one per line)",value:U,onChange:m,className:"border-2 border-rose-700/50 mt-2 text-white p-1 overflow-y-auto rounded transition-all ease-in-out focus:outline-none focus:ring-2 focus:ring-rose-700/50 duration-200"}),ye.jsx("textarea",{placeholder:"Keys (one per line)",value:E,onChange:D,className:"border-2 border-rose-700/50 mt-2 text-white p-1 overflow-y-auto rounded transition-all ease-in-out focus:outline-none focus:ring-2 focus:ring-rose-700/50 duration-200"}),ye.jsx("textarea",{placeholder:"Headers (one per line)",value:M,onChange:X,className:"border-2 border-rose-700/50 mt-2 text-white p-1 overflow-y-auto rounded transition-all ease-in-out focus:outline-none focus:ring-2 focus:ring-rose-700/50 duration-200"}),ye.jsx("button",{onClick:te,className:"mt-4 p-2 bg-blue-500 text-white rounded",children:"Submit"})]})]})}const WA="data:image/svg+xml,%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Transformed%20by:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20stroke='%23ffffff'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'/%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%200L0%206V8H1V15H4V10H7V15H15V8H16V6L14%204.5V1H11V2.25L8%200ZM9%2010H12V13H9V10Z'%20fill='%23ffffff'/%3e%3c/g%3e%3c/svg%3e",QA="data:image/svg+xml,%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Transformed%20by:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='800px'%20width='800px'%20version='1.1'%20id='_x32_'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'/%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23ffffff;}%20%3c/style%3e%3cg%3e%3cpath%20class='st0'%20d='M0,17.067V153.6h512V17.067H0z%20M110.933,110.925h-51.2v-51.2h51.2V110.925z'/%3e%3cpath%20class='st0'%20d='M0,324.267h512V187.733H0V324.267z%20M59.733,230.391h51.2v51.2h-51.2V230.391z'/%3e%3cpath%20class='st0'%20d='M0,494.933h512V358.4H0V494.933z%20M59.733,401.058h51.2v51.2h-51.2V401.058z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",JA="data:image/svg+xml,%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Transformed%20by:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/20