194 lines
1.2 MiB
JavaScript
Raw Normal View History

var b4=(A,b)=>()=>(b||A((b={exports:{}}).exports,b),b.exports);var cN=b4((ON,ug)=>{(function(){const b=document.createElement("link").relList;if(b&&b.supports&&b.supports("modulepreload"))return;for(const x of document.querySelectorAll('link[rel="modulepreload"]'))S(x);new MutationObserver(x=>{for(const U of x)if(U.type==="childList")for(const O of U.addedNodes)O.tagName==="LINK"&&O.rel==="modulepreload"&&S(O)}).observe(document,{childList:!0,subtree:!0});function R(x){const U={};return x.integrity&&(U.integrity=x.integrity),x.referrerPolicy&&(U.referrerPolicy=x.referrerPolicy),x.crossOrigin==="use-credentials"?U.credentials="include":x.crossOrigin==="anonymous"?U.credentials="omit":U.credentials="same-origin",U}function S(x){if(x.ep)return;x.ep=!0;const U=R(x);fetch(x.href,U)}})();var I4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function k4(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var u2={exports:{}},ng={};/**
* @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 RA;function D4(){if(RA)return ng;RA=1;var A=Symbol.for("react.transitional.element"),b=Symbol.for("react.fragment");function R(S,x,U){var O=null;if(U!==void 0&&(O=""+U),x.key!==void 0&&(O=""+x.key),"key"in x){U={};for(var h in x)h!=="key"&&(U[h]=x[h])}else U=x;return x=U.ref,{$$typeof:A,type:S,key:O,ref:x!==void 0?x:null,props:U}}return ng.Fragment=b,ng.jsx=R,ng.jsxs=R,ng}var MA;function O4(){return MA||(MA=1,u2.exports=D4()),u2.exports}var re=O4(),a2={exports:{}},Gt={};/**
* @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 NA;function R4(){if(NA)return Gt;NA=1;var A=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),O=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.iterator;function N(ae){return ae===null||typeof ae!="object"?null:(ae=v&&ae[v]||ae["@@iterator"],typeof ae=="function"?ae:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,$={};function oe(ae,Oe,et){this.props=ae,this.context=Oe,this.refs=$,this.updater=et||Z}oe.prototype.isReactComponent={},oe.prototype.setState=function(ae,Oe){if(typeof ae!="object"&&typeof ae!="function"&&ae!=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,ae,Oe,"setState")},oe.prototype.forceUpdate=function(ae){this.updater.enqueueForceUpdate(this,ae,"forceUpdate")};function me(){}me.prototype=oe.prototype;function Ve(ae,Oe,et){this.props=ae,this.context=Oe,this.refs=$,this.updater=et||Z}var ue=Ve.prototype=new me;ue.constructor=Ve,C(ue,oe.prototype),ue.isPureReactComponent=!0;var Ne=Array.isArray,Re={H:null,A:null,T:null,S:null,V:null},$e=Object.prototype.hasOwnProperty;function it(ae,Oe,et,ze,G,vt){return et=vt.ref,{$$typeof:A,type:ae,key:Oe,ref:et!==void 0?et:null,props:vt}}function Dt(ae,Oe){return it(ae.type,Oe,void 0,void 0,void 0,ae.props)}function _t(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===A}function _(ae){var Oe={"=":"=0",":":"=2"};return"$"+ae.replace(/[=:]/g,function(et){return Oe[et]})}var ce=/\/+/g;function he(ae,Oe){return typeof ae=="object"&&ae!==null&&ae.key!=null?_(""+ae.key):Oe.toString(36)}function ot(){}function _e(ae){switch(ae.status){case"fulfilled":return ae.value;case"rejected":throw ae.reason;default:switch(typeof ae.status=="string"?ae.then(ot,ot):(ae.status="pending",ae.then(function(Oe){ae.status==="pending"&&(ae.status="fulfilled",ae.value=Oe)},function(Oe){ae.status==="pending"&&(ae.status="rejected",ae.reason=Oe)})),ae.status){case"fulfilled":return ae.value;case"rejected":throw ae.reason}}throw ae}function De(ae,Oe,et,ze,G){var vt=typeof ae;(vt==="undefined"||vt==="boolean")&&(ae=null);var mt=!1;if(ae===null)mt=!0;else switch(vt){case"bigint":case"string":case"number":mt=!0;break;case"object":switch(ae.$$typeof){case A:case b:mt=!0;break;case p:return mt=ae._init,De(mt(ae._payload),Oe,et,ze,G)}}if(mt)return G=G(ae),mt=ze===""?"."+he(ae,0):ze,Ne(G)?(et="",mt!=null&&(et=mt.replace(ce,"$&/")+"/"),De(G,Oe,et,"",function(pl){return pl})):G!=null&&(_t(G)&&(G=Dt(G,et+(G.key==null||ae&&ae.key===G.key?"":(""+G.key).replace(ce,"$&/")+"/")+mt)),Oe.push(G)),1;mt=0;var Gi=ze===""?".":ze+":";if(Ne(ae))for(var Tn=0;Tn<ae.length;Tn++)ze=ae[Tn],vt=Gi+he(ze,Tn),mt+=De(ze,Oe,et,vt,G);else if(Tn=N(ae),typeof Tn=="function")for(ae=Tn.call(ae),Tn=0;!(ze=ae.next()).done;)ze=ze.value,vt=Gi+he(ze,Tn++),mt+=De(ze,Oe,et,vt,G);else if(vt==="object"){if(typeof ae.then=="function")return De(_e(ae),Oe,et,ze,G);throw Oe=String(ae),Error("Objects are not valid as a React child (found: "+(Oe==="[object Object]"?"object with keys {"+Object.keys(ae).join(", ")+"}":Oe)+"). If you meant to render a collection of children, use an array instead.")}return mt}function xe(ae,Oe,et){if(ae==null)return ae;var ze=[],G=0;return De(ae,ze,"","",function(vt){return Oe.call(et,vt,G++)}),ze}function Ue(ae){if(ae._status===-1){var Oe=ae._result;Oe=Oe(),Oe.then(function(et){(ae._status===0||ae._status===-1)&&(ae._status=1,ae._result=et)},function(et){(ae._status===0||ae._status===-1)&&(ae._status=2,ae._result=et)}),ae._status===-1&&(ae._status=0,ae._result=Oe)}if(ae._status===1)return ae._result.default;throw ae._result}var gt=typeof reportError=="function"?reportError:function(ae){if(typeof window=="object"&&typeof window.ErrorEvent=="functio
* @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 LA;function M4(){return LA||(LA=1,function(A){function b(xe,Ue){var gt=xe.length;xe.push(Ue);e:for(;0<gt;){var wn=gt-1>>>1,ae=xe[wn];if(0<x(ae,Ue))xe[wn]=Ue,xe[gt]=ae,gt=wn;else break e}}function R(xe){return xe.length===0?null:xe[0]}function S(xe){if(xe.length===0)return null;var Ue=xe[0],gt=xe.pop();if(gt!==Ue){xe[0]=gt;e:for(var wn=0,ae=xe.length,Oe=ae>>>1;wn<Oe;){var et=2*(wn+1)-1,ze=xe[et],G=et+1,vt=xe[G];if(0>x(ze,gt))G<ae&&0>x(vt,ze)?(xe[wn]=vt,xe[G]=gt,wn=G):(xe[wn]=ze,xe[et]=gt,wn=et);else if(G<ae&&0>x(vt,gt))xe[wn]=vt,xe[G]=gt,wn=G;else break e}}return Ue}function x(xe,Ue){var gt=xe.sortIndex-Ue.sortIndex;return gt!==0?gt:xe.id-Ue.id}if(A.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var U=performance;A.unstable_now=function(){return U.now()}}else{var O=Date,h=O.now();A.unstable_now=function(){return O.now()-h}}var s=[],u=[],p=1,v=null,N=3,Z=!1,C=!1,$=!1,oe=!1,me=typeof setTimeout=="function"?setTimeout:null,Ve=typeof clearTimeout=="function"?clearTimeout:null,ue=typeof setImmediate<"u"?setImmediate:null;function Ne(xe){for(var Ue=R(u);Ue!==null;){if(Ue.callback===null)S(u);else if(Ue.startTime<=xe)S(u),Ue.sortIndex=Ue.expirationTime,b(s,Ue);else break;Ue=R(u)}}function Re(xe){if($=!1,Ne(xe),!C)if(R(s)!==null)C=!0,$e||($e=!0,he());else{var Ue=R(u);Ue!==null&&De(Re,Ue.startTime-xe)}}var $e=!1,it=-1,Dt=5,_t=-1;function _(){return oe?!0:!(A.unstable_now()-_t<Dt)}function ce(){if(oe=!1,$e){var xe=A.unstable_now();_t=xe;var Ue=!0;try{e:{C=!1,$&&($=!1,Ve(it),it=-1),Z=!0;var gt=N;try{t:{for(Ne(xe),v=R(s);v!==null&&!(v.expirationTime>xe&&_());){var wn=v.callback;if(typeof wn=="function"){v.callback=null,N=v.priorityLevel;var ae=wn(v.expirationTime<=xe);if(xe=A.unstable_now(),typeof ae=="function"){v.callback=ae,Ne(xe),Ue=!0;break t}v===R(s)&&S(s),Ne(xe)}else S(s);v=R(s)}if(v!==null)Ue=!0;else{var Oe=R(u);Oe!==null&&De(Re,Oe.startTime-xe),Ue=!1}}break e}finally{v=null,N=gt,Z=!1}Ue=void 0}}finally{Ue?he():$e=!1}}}var he;if(typeof ue=="function")he=function(){ue(ce)};else if(typeof MessageChannel<"u"){var ot=new MessageChannel,_e=ot.port2;ot.port1.onmessage=ce,he=function(){_e.postMessage(null)}}else he=function(){me(ce,0)};function De(xe,Ue){it=me(function(){xe(A.unstable_now())},Ue)}A.unstable_IdlePriority=5,A.unstable_ImmediatePriority=1,A.unstable_LowPriority=4,A.unstable_NormalPriority=3,A.unstable_Profiling=null,A.unstable_UserBlockingPriority=2,A.unstable_cancelCallback=function(xe){xe.callback=null},A.unstable_forceFrameRate=function(xe){0>xe||125<xe?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Dt=0<xe?Math.floor(1e3/xe):5},A.unstable_getCurrentPriorityLevel=function(){return N},A.unstable_next=function(xe){switch(N){case 1:case 2:case 3:var Ue=3;break;default:Ue=N}var gt=N;N=Ue;try{return xe()}finally{N=gt}},A.unstable_requestPaint=function(){oe=!0},A.unstable_runWithPriority=function(xe,Ue){switch(xe){case 1:case 2:case 3:case 4:case 5:break;default:xe=3}var gt=N;N=xe;try{return Ue()}finally{N=gt}},A.unstable_scheduleCallback=function(xe,Ue,gt){var wn=A.unstable_now();switch(typeof gt=="object"&&gt!==null?(gt=gt.delay,gt=typeof gt=="number"&&0<gt?wn+gt:wn):gt=wn,xe){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=gt+ae,xe={id:p++,callback:Ue,priorityLevel:xe,startTime:gt,expirationTime:ae,sortIndex:-1},gt>wn?(xe.sortIndex=gt,b(u,xe),R(s)===null&&xe===R(u)&&($?(Ve(it),it=-1):$=!0,De(Re,gt-wn))):(xe.sortIndex=ae,b(s,xe),C||Z||(C=!0,$e||($e=!0,he()))),xe},A.unstable_shouldYield=_,A.unstable_wrapCallback=function(xe){var Ue=N;return function(){var gt=N;N=Ue;try{return xe.apply(this,arguments)}finally{N=gt}}}}(f2)),f2}var _A;function N4(){return _A||(_A=1,c2.exports=M4()),c2.exports}var d2={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 UA;function P4(){if(UA)return pr;UA=1;var A=O2();function b(s){var u="https://react.dev/errors/"+s;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)u+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+s+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function R(){}var S={d:{f:R,r:function(){throw Error(b(522))},D:R,C:R,L:R,m:R,X:R,S:R,M:R},p:0,findDOMNode:null},x=Symbol.for("react.portal");function U(s,u,p){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:x,key:v==null?null:""+v,children:s,containerInfo:u,implementation:p}}var O=A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(s,u){if(s==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return pr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,pr.createPortal=function(s,u){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(b(299));return U(s,u,null,p)},pr.flushSync=function(s){var u=O.T,p=S.p;try{if(O.T=null,S.p=2,s)return s()}finally{O.T=u,S.p=p,S.d.f()}},pr.preconnect=function(s,u){typeof s=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,S.d.C(s,u))},pr.prefetchDNS=function(s){typeof s=="string"&&S.d.D(s)},pr.preinit=function(s,u){if(typeof s=="string"&&u&&typeof u.as=="string"){var p=u.as,v=h(p,u.crossOrigin),N=typeof u.integrity=="string"?u.integrity:void 0,Z=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;p==="style"?S.d.S(s,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:v,integrity:N,fetchPriority:Z}):p==="script"&&S.d.X(s,{crossOrigin:v,integrity:N,fetchPriority:Z,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},pr.preinitModule=function(s,u){if(typeof s=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var p=h(u.as,u.crossOrigin);S.d.M(s,{crossOrigin:p,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&S.d.M(s)},pr.preload=function(s,u){if(typeof s=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var p=u.as,v=h(p,u.crossOrigin);S.d.L(s,p,{crossOrigin:v,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},pr.preloadModule=function(s,u){if(typeof s=="string")if(u){var p=h(u.as,u.crossOrigin);S.d.m(s,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:p,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else S.d.m(s)},pr.requestFormReset=function(s){S.d.r(s)},pr.unstable_batchedUpdates=function(s,u){return s(u)},pr.useFormState=function(s,u,p){return O.H.useFormState(s,u,p)},pr.useFormStatus=function(){return O.H.useHostTransitionStatus()},pr.version="19.1.0",pr}var jA;function L4(){if(jA)return d2.exports;jA=1;function A(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(A)}catch(b){console.error(b)}}return A(),d2.exports=P4(),d2.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 BA;function _4(){if(BA)return ig;BA=1;var A=N4(),b=O2(),R=L4();function S(o){var a="https://react.dev/errors/"+o;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)a+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+o+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function x(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function U(o){var a=o,d=o;if(o.alternate)for(;a.return;)a=a.return;else{o=a;do a=o,(a.flags&4098)!==0&&(d=a.return),o=a.return;while(o)}return a.tag===3?d:null}function O(o){if(o.tag===13){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function h(o){if(U(o)!==o)throw Error(S(188))}function s(o){var a=o.alternate;if(!a){if(a=U(o),a===null)throw Error(S(188));return a!==o?null:o}for(var d=o,g=a;;){var E=d.return;if(E===null)break;var k=E.alternate;if(k===null){if(g=E.return,g!==null){d=g;continue}break}if(E.child===k.child){for(k=E.child;k;){if(k===d)return h(E),o;if(k===g)return h(E),a;k=k.sibling}throw Error(S(188))}if(d.return!==g.return)d=E,g=k;else{for(var B=!1,H=E.child;H;){if(H===d){B=!0,d=E,g=k;break}if(H===g){B=!0,g=E,d=k;break}H=H.sibling}if(!B){for(H=k.child;H;){if(H===d){B=!0,d=k,g=E;break}if(H===g){B=!0,g=k,d=E;break}H=H.sibling}if(!B)throw Error(S(189))}}if(d.alternate!==g)throw Error(S(190))}if(d.tag!==3)throw Error(S(188));return d.stateNode.current===d?o:a}function u(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o;for(o=o.child;o!==null;){if(a=u(o),a!==null)return a;o=o.sibling}return null}var p=Object.assign,v=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),oe=Symbol.for("react.profiler"),me=Symbol.for("react.provider"),Ve=Symbol.for("react.consumer"),ue=Symbol.for("react.context"),Ne=Symbol.for("react.forward_ref"),Re=Symbol.for("react.suspense"),$e=Symbol.for("react.suspense_list"),it=Symbol.for("react.memo"),Dt=Symbol.for("react.lazy"),_t=Symbol.for("react.activity"),_=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 ot=Symbol.for("react.client.reference");function _e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===ot?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case C:return"Fragment";case oe:return"Profiler";case $:return"StrictMode";case Re:return"Suspense";case $e:return"SuspenseList";case _t:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case Z:return"Portal";case ue:return(o.displayName||"Context")+".Provider";case Ve:return(o._context.displayName||"Context")+".Consumer";case Ne:var a=o.render;return o=o.displayName,o||(o=a.displayName||a.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case it:return a=o.displayName||null,a!==null?a:_e(o.type)||"Memo";case Dt:a=o._payload,o=o._init;try{return _e(o(a))}catch{}}return null}var De=Array.isArray,xe=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ue=R.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,gt={pending:!1,data:null,method:null,action:null},wn=[],ae=-1;function Oe(o){return{current:o}}function et(o){0>ae||(o.current=wn[ae],wn[ae]=null,ae--)}function ze(o,a){ae++,wn[ae]=o.current,o.current=a}var G=Oe(null),vt=Oe(null),mt=Oe(null),Gi=Oe(null);function Tn(o,a){switch(ze(mt,a),ze(vt,o),ze(G,null),a.nodeType){case 9:case 11:o=(o=a.documentElement)&&(o=o.namespaceURI)?Im(o):0;break;default:if(o=a.tagName,a=a.namespaceURI)a=Im(a),o=km(a,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}et(G),ze(G,o)}function pl(){et(G),et(vt),et(mt)}function Up(o){o.memoizedState!==null&&ze(Gi,o);var a=G.current,d=km(a,o.type);a!==d&&(ze(vt,o),ze(G,d))}function Uf(o){vt.current===o&&(et(G),et(vt)),Gi.current===o&&(et(Gi),pc._curr
at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ro+o+or}var oo=!1;function an(o,a){if(!o||oo)return"";oo=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(a){var Ie=function(){throw Error()};if(Object.defineProperty(Ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ie,[])}catch(de){var Te=de}Reflect.construct(o,[],Ie)}else{try{Ie.call()}catch(de){Te=de}o.call(Ie.prototype)}}else{try{throw Error()}catch(de){Te=de}(Ie=o())&&typeof Ie.catch=="function"&&Ie.catch(function(){})}}catch(de){if(de&&Te&&typeof de.stack=="string")return[de.stack,Te.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var E=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");E&&E.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var k=g.DetermineComponentFrameRoot(),B=k[0],H=k[1];if(B&&H){var ie=B.split(`
`),we=H.split(`
`);for(E=g=0;g<ie.length&&!ie[g].includes("DetermineComponentFrameRoot");)g++;for(;E<we.length&&!we[E].includes("DetermineComponentFrameRoot");)E++;if(g===ie.length||E===we.length)for(g=ie.length-1,E=we.length-1;1<=g&&0<=E&&ie[g]!==we[E];)E--;for(;1<=g&&0<=E;g--,E--)if(ie[g]!==we[E]){if(g!==1||E!==1)do if(g--,E--,0>E||ie[g]!==we[E]){var F=`
`+ie[g].replace(" at new "," at ");return o.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",o.displayName)),F}while(1<=g&&0<=E);break}}}finally{oo=!1,Error.prepareStackTrace=d}return(d=o?o.displayName||o.name:"")?Hr(d):""}function Vn(o){switch(o.tag){case 26:case 27:case 5:return Hr(o.type);case 16:return Hr("Lazy");case 13:return Hr("Suspense");case 19:return Hr("SuspenseList");case 0:case 15:return an(o.type,!1);case 11:return an(o.type.render,!1);case 1:return an(o.type,!0);case 31:return Hr("Activity");default:return""}}function Oo(o){try{var a="";do a+=Vn(o),o=o.return;while(o);return a}catch(d){return`
Error generating stack: `+d.message+`
`+d.stack}}function mr(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function $u(o){var a=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Ri(o){var a=$u(o)?"checked":"value",d=Object.getOwnPropertyDescriptor(o.constructor.prototype,a),g=""+o[a];if(!o.hasOwnProperty(a)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var E=d.get,k=d.set;return Object.defineProperty(o,a,{configurable:!0,get:function(){return E.call(this)},set:function(B){g=""+B,k.call(this,B)}}),Object.defineProperty(o,a,{enumerable:d.enumerable}),{getValue:function(){return g},setValue:function(B){g=""+B},stopTracking:function(){o._valueTracker=null,delete o[a]}}}}function ss(o){o._valueTracker||(o._valueTracker=Ri(o))}function ut(o){if(!o)return!1;var a=o._valueTracker;if(!a)return!0;var d=a.getValue(),g="";return o&&(g=$u(o)?o.checked?"true":"false":o.value),o=g,o!==d?(a.setValue(o),!0):!1}function Dn(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 wg=/[\n"\\]/g;function vr(o){return o.replace(wg,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function ea(o,a,d,g,E,k,B,H){o.name="",B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?o.type=B:o.removeAttribute("type"),a!=null?B==="number"?(a===0&&o.value===""||o.value!=a)&&(o.value=""+mr(a)):o.value!==""+mr(a)&&(o.value=""+mr(a)):B!=="submit"&&B!=="reset"||o.removeAttribute("value"),a!=null?zf(o,B,mr(a)):d!=null?zf(o,B,mr(d)):g!=null&&o.removeAttribute("value"),E==null&&k!=null&&(o.defaultChecked=!!k),E!=null&&(o.checked=E&&typeof E!="function"&&typeof E!="symbol"),H!=null&&typeof H!="function"&&typeof H!="symbol"&&typeof H!="boolean"?o.name=""+mr(H):o.removeAttribute("name")}function qf(o,a,d,g,E,k,B,H){if(k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(o.type=k),a!=null||d!=null){if(!(k!=="submit"&&k!=="reset"||a!=null))return;d=d!=null?""+mr(d):"",a=a!=null?""+mr(a):d,H||a===o.value||(o.value=a),o.defaultValue=a}g=g??E,g=typeof g!="function"&&typeof g!="symbol"&&!!g,o.checked=H?o.checked:!!g,o.defaultChecked=!!g,B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"&&(o.name=B)}function zf(o,a,d){a==="number"&&Dn(o.ownerDocument)===o||o.defaultValue===""+d||(o.defaultValue=""+d)}function ta(o,a,d,g){if(o=o.options,a){a={};for(var E=0;E<d.length;E++)a["$"+d[E]]=!0;for(d=0;d<o.length;d++)E=a.hasOwnProperty("$"+o[d].value),o[d].selected!==E&&(o[d].selected=E),E&&g&&(o[d].defaultSelected=!0)}else{for(d=""+mr(d),a=null,E=0;E<o.length;E++){if(o[E].value===d){o[E].selected=!0,g&&(o[E].defaultSelected=!0);return}a!==null||o[E].disabled||(a=o[E])}a!==null&&(a.selected=!0)}}function ai(o,a,d){if(a!=null&&(a=""+mr(a),a!==o.value&&(o.value=a),d==null)){o.defaultValue!==a&&(o.defaultValue=a);return}o.defaultValue=d!=null?""+mr(d):""}function na(o,a,d,g){if(a==null){if(g!=null){if(d!=null)throw Error(S(92));if(De(g)){if(1<g.length)throw Error(S(93));g=g[0]}d=g}d==null&&(d=""),a=d}d=mr(a),o.defaultValue=d,g=o.textContent,g===d&&g!==""&&g!==null&&(o.value=g)}function ia(o,a){if(a){var d=o.firstChild;if(d&&d===o.lastChild&&d.nodeType===3){d.nodeValue=a;return}}o.textContent=a}var Hp=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(ji,"")}function lc(o,a){return a=ty(a),ty(o)===a}function uc(){}function pn(o,a,d,g,E,k){switch(d){case"children":typeof g=="string"?a==="body"||a==="textarea"&&g===""||ia(o,g):(typeof g=="number"||typeof g=="bigint")&&a!=="body"&&ia(o,""+g);break;case"className":Bn(o,"class",g);break;case"tabIndex":Bn(o,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":Bn(o,d,g);break;case"style":Xf(o,g,k);break;case"data":if(a!=="object"){Bn(o,"data",g);break}case"src":case"href":if(g===""&&(a!=="a"||d!=="href")){o.removeAttribute(d);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){o.removeAttribute(d);break}g=Dc(""+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 k=="function"&&(d==="formAction"?(a!=="input"&&pn(o,a,"name",E.name,E,null),pn(o,a,"formEncType",E.formEncType,E,null),pn(o,a,"formMethod",E.formMethod,E,null),pn(o,a,"formTarget",E.formTarget,E,null)):(pn(o,a,"encType",E.encType,E,null),pn(o,a,"method",E.method,E,null),pn(o,a,"target",E.target,E,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){o.removeAttribute(d);break}g=Dc(""+g),o.setAttribute(d,g);break;case"onClick":g!=null&&(o.onclick=uc);break;case"onScroll":g!=null&&Ht("scroll",o);break;case"onScrollEnd":g!=null&&Ht("scrollend",o);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(S(61));if(d=g.__html,d!=null){if(E.children!=null)throw Error(S(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=Dc(""+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":Ht("beforetoggle",o),Ht("toggle",o),kc(o,"popover",g);break;case"xlinkActuate":Vr(o,"http://www.w3.org/1999/xlink","xlink:actuate",g);break;case"xlinkArcrole":Vr(o,"http://www.w3.org/1999/xlink","xlink:arcrole",g);break;case"xlinkRole":Vr(o,"http://www.w3.org/1999/xlink","xlink:role",g);break;case"xlinkShow":Vr(o,"http://www.w3.org/1999/xlink","xlink:show",g);break;case"xlinkTitle":Vr(o,"http://www.w3.org/1999/xlink","xlink:title",g);break;case"xlinkType":Vr(o,"http://www.w3.org/1999/xlink","xlink:type",g);break;case"xmlBase":Vr(o,"http://www.w3.org/XML/1998/nam
* react-router v7.7.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/var HA="popstate";function B4(A={}){function b(S,x){let{pathname:U,search:O,hash:h}=S.location;return w2("",{pathname:U,search:O,hash:h},x.state&&x.state.usr||null,x.state&&x.state.key||"default")}function R(S,x){return typeof x=="string"?x:ag(x)}return H4(b,R,null,A)}function Qn(A,b){if(A===!1||A===null||typeof A>"u")throw new Error(b)}function Yu(A,b){if(!A){typeof console<"u"&&console.warn(b);try{throw new Error(b)}catch{}}}function V4(){return Math.random().toString(36).substring(2,10)}function KA(A,b){return{usr:A.state,key:A.key,idx:b}}function w2(A,b,R=null,S){return{pathname:typeof A=="string"?A:A.pathname,search:"",hash:"",...typeof b=="string"?Np(b):b,state:R,key:b&&b.key||S||V4()}}function ag({pathname:A="/",search:b="",hash:R=""}){return b&&b!=="?"&&(A+=b.charAt(0)==="?"?b:"?"+b),R&&R!=="#"&&(A+=R.charAt(0)==="#"?R:"#"+R),A}function Np(A){let b={};if(A){let R=A.indexOf("#");R>=0&&(b.hash=A.substring(R),A=A.substring(0,R));let S=A.indexOf("?");S>=0&&(b.search=A.substring(S),A=A.substring(0,S)),A&&(b.pathname=A)}return b}function H4(A,b,R,S={}){let{window:x=document.defaultView,v5Compat:U=!1}=S,O=x.history,h="POP",s=null,u=p();u==null&&(u=0,O.replaceState({...O.state,idx:u},""));function p(){return(O.state||{idx:null}).idx}function v(){h="POP";let oe=p(),me=oe==null?null:oe-u;u=oe,s&&s({action:h,location:$.location,delta:me})}function N(oe,me){h="PUSH";let Ve=w2($.location,oe,me);u=p()+1;let ue=KA(Ve,u),Ne=$.createHref(Ve);try{O.pushState(ue,"",Ne)}catch(Re){if(Re instanceof DOMException&&Re.name==="DataCloneError")throw Re;x.location.assign(Ne)}U&&s&&s({action:h,location:$.location,delta:1})}function Z(oe,me){h="REPLACE";let Ve=w2($.location,oe,me);u=p();let ue=KA(Ve,u),Ne=$.createHref(Ve);O.replaceState(ue,"",Ne),U&&s&&s({action:h,location:$.location,delta:0})}function C(oe){return K4(oe)}let $={get action(){return h},get location(){return A(x,O)},listen(oe){if(s)throw new Error("A history only accepts one active listener");return x.addEventListener(HA,v),s=oe,()=>{x.removeEventListener(HA,v),s=null}},createHref(oe){return b(x,oe)},createURL:C,encodeLocation(oe){let me=C(oe);return{pathname:me.pathname,search:me.search,hash:me.hash}},push:N,replace:Z,go(oe){return O.go(oe)}};return $}function K4(A,b=!1){let R="http://localhost";typeof window<"u"&&(R=window.location.origin!=="null"?window.location.origin:window.location.href),Qn(R,"No window.location.(origin|href) available to create URL");let S=typeof A=="string"?A:ag(A);return S=S.replace(/ $/,"%20"),!b&&S.startsWith("//")&&(S=R+S),new URL(S,R)}function aC(A,b,R="/"){return G4(A,b,R,!1)}function G4(A,b,R,S){let x=typeof b=="string"?Np(b):b,U=is(x.pathname||"/",R);if(U==null)return null;let O=sC(A);F4(O);let h=null;for(let s=0;h==null&&s<O.length;++s){let u=tO(U);h=$4(O[s],u,S)}return h}function sC(A,b=[],R=[],S=""){let x=(U,O,h)=>{let s={relativePath:h===void 0?U.path||"":h,caseSensitive:U.caseSensitive===!0,childrenIndex:O,route:U};s.relativePath.startsWith("/")&&(Qn(s.relativePath.startsWith(S),`Absolute route path "${s.relativePath}" nested under path "${S}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(S.length));let u=ns([S,s.relativePath]),p=R.concat(s);U.children&&U.children.length>0&&(Qn(U.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),sC(U.children,b,p,u)),!(U.path==null&&!U.index)&&b.push({path:u,score:J4(u,U.index),routesMeta:p})};return A.forEach((U,O)=>{if(U.path===""||!U.path?.includes("?"))x(U,O);else for(let h of cC(U.path))x(U,O,h)}),b}function cC(A){let b=A.split("/");if(b.length===0)return[];let[R,...S]=b,x=R.endsWith("?"),U=R.replace(/\?$/,"");if(S.length===0)return x?[U,""]:[U];let O=cC(S.join("/")),h=[];return h.push(...O.map(s=>s===""?U:[U,s].join("/"))),x&&h.push(...O),h.map(s=>A.startsWith("/")&&s===""?"/":s)}function F4(A){A.sort((b,R)=>b.score!==R.score?R.score-b.score:Z4(b.routesMeta.map(S=>S.childrenIndex),R.routesMeta.map(S=>S.childrenIndex)))}var q4=/^:[\w-]+$/,z4=3,X4
Please change the parent <Route path="${me}"> to <Route path="${me==="/"?"*":`${me}/*`}">.`)}let v=_f(),N;if(b){let me=typeof b=="string"?Np(b):b;Qn(u==="/"||me.pathname?.startsWith(u),`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 "${u}" but pathname "${me.pathname}" was given in the \`location\` prop.`),N=me}else N=v;let Z=N.pathname||"/",C=Z;if(u!=="/"){let me=u.replace(/^\//,"").split("/");C="/"+Z.replace(/^\//,"").split("/").slice(me.length).join("/")}let $=aC(A,{pathname:C});Yu(p||$!=null,`No routes matched location "${N.pathname}${N.search}${N.hash}" `),Yu($==null||$[$.length-1].route.element!==void 0||$[$.length-1].route.Component!==void 0||$[$.length-1].route.lazy!==void 0,`Matched leaf route at location "${N.pathname}${N.search}${N.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 oe=wO($&&$.map(me=>Object.assign({},me,{params:Object.assign({},h,me.params),pathname:ns([u,x.encodeLocation?x.encodeLocation(me.pathname).pathname:me.pathname]),pathnameBase:me.pathnameBase==="/"?u:ns([u,x.encodeLocation?x.encodeLocation(me.pathnameBase).pathname:me.pathnameBase])})),U,R,S);return b&&oe?Se.createElement(cg.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...N},navigationType:"POP"}},oe):oe}function gO(){let A=CO(),b=aO(A)?`${A.status} ${A.statusText}`:A instanceof Error?A.message:JSON.stringify(A),R=A instanceof Error?A.stack:null,S="rgba(200,200,200, 0.5)",x={padding:"0.5rem",backgroundColor:S},U={padding:"2px 4px",backgroundColor:S},O=null;return console.error("Error handled by React Router default ErrorBoundary:",A),O=Se.createElement(Se.Fragment,null,Se.createElement("p",null,"💿 Hey developer 👋"),Se.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",Se.createElement("code",{style:U},"ErrorBoundary")," or"," ",Se.createElement("code",{style:U},"errorElement")," prop on your route.")),Se.createElement(Se.Fragment,null,Se.createElement("h2",null,"Unexpected Application Error!"),Se.createElement("h3",{style:{fontStyle:"italic"}},b),R?Se.createElement("pre",{style:x},R):null,O)}var mO=Se.createElement(gO,null),vO=class extends Se.Component{constructor(A){super(A),this.state={location:A.location,revalidation:A.revalidation,error:A.error}}static getDerivedStateFromError(A){return{error:A}}static getDerivedStateFromProps(A,b){return b.location!==A.location||b.revalidation!=="idle"&&A.revalidation==="idle"?{error:A.error,location:A.location,revalidation:A.revalidation}:{error:A.error!==void 0?A.error:b.error,location:b.location,revalidation:A.revalidation||b.revalidation}}componentDidCatch(A,b){console.error("React Router caught the following error during render",A,b)}render(){return this.state.error!==void 0?Se.createElement(rs.Provider,{value:this.props.routeContext},Se.createElement(R2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function SO({routeContext:A,match:b,children:R}){let S=Se.useContext(Pp);return S&&S.static&&S.staticContext&&(b.route.errorElement||b.route.ErrorBoundary)&&(S.staticContext._deepestRenderedBoundaryId=b.route.id),Se.createElement(rs.Provider,{value:A},R)}function wO(A,b=[],R=null,S=null){if(A==null){if(!R)return null;if(R.errors)A=R.matches;else if(b.length===0&&!R.initialized&&R.matches.length>0)A=R.matches;else return null}let x=A,U=R?.errors;if(U!=null){let s=x.findIndex(u=>u.route.id&&U?.[u.route.id]!==void 0);Qn(s>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(U).join(",")}`),x=x.slice(0,Math.min(x.length,s+1))}let O=!1,h=-1;if(R)for(let s=0;s<x.length;s++){let u=x[s];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(h=s),u.route.id){let{loaderData:p,errors:v}=R,N=u.route.loader&&!p.hasOwnProperty(u.route.id)&&(!v||v[u.
* 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(A){(function(b,R,S){var x=function U(O){var h=R[O];return h||b[O][0].call(h=R[O]={exports:{}},U,h,h.exports),h.exports}(S[0]);x.util.global.protobuf=x,typeof define=="function"&&define.amd&&define(["long"],function(U){return U&&U.isLong&&(x.util.Long=U,x.configure()),x}),typeof ug=="object"&&ug&&ug.exports&&(ug.exports=x)})({1:[function(b,R,S){R.exports=function(x,U){for(var O=Array(arguments.length-1),h=0,s=2,u=!0;s<arguments.length;)O[h++]=arguments[s++];return new Promise(function(p,v){O[h]=function(N){if(u)if(u=!1,N)v(N);else{for(var Z=Array(arguments.length-1),C=0;C<Z.length;)Z[C++]=arguments[C];p.apply(null,Z)}};try{x.apply(U||null,O)}catch(N){u&&(u=!1,v(N))}})}},{}],2:[function(b,R,S){S.length=function(s){var u=s.length;if(!u)return 0;for(var p=0;1<--u%4&&(s[0|u]||"")=="=";)++p;return Math.ceil(3*s.length)/4-p};for(var x=Array(64),U=Array(123),O=0;O<64;)U[x[O]=O<26?O+65:O<52?O+71:O<62?O-4:O-59|43]=O++;S.encode=function(s,u,p){for(var v,N=null,Z=[],C=0,$=0;u<p;){var oe=s[u++];switch($){case 0:Z[C++]=x[oe>>2],v=(3&oe)<<4,$=1;break;case 1:Z[C++]=x[v|oe>>4],v=(15&oe)<<2,$=2;break;case 2:Z[C++]=x[v|oe>>6],Z[C++]=x[63&oe],$=0}8191<C&&((N=N||[]).push(String.fromCharCode.apply(String,Z)),C=0)}return $&&(Z[C++]=x[v],Z[C++]=61,$===1&&(Z[C++]=61)),N?(C&&N.push(String.fromCharCode.apply(String,Z.slice(0,C))),N.join("")):String.fromCharCode.apply(String,Z.slice(0,C))};var h="invalid encoding";S.decode=function(s,u,p){for(var v,N=p,Z=0,C=0;C<s.length;){var $=s.charCodeAt(C++);if($==61&&1<Z)break;if(($=U[$])===A)throw Error(h);switch(Z){case 0:v=$,Z=1;break;case 1:u[p++]=v<<2|(48&$)>>4,v=$,Z=2;break;case 2:u[p++]=(15&v)<<4|(60&$)>>2,v=$,Z=3;break;case 3:u[p++]=(3&v)<<6|$,Z=0}}if(Z===1)throw Error(h);return p-N},S.test=function(s){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(s)}},{}],3:[function(b,R,S){function x(){this.t={}}(R.exports=x).prototype.on=function(U,O,h){return(this.t[U]||(this.t[U]=[])).push({fn:O,ctx:h||this}),this},x.prototype.off=function(U,O){if(U===A)this.t={};else if(O===A)this.t[U]=[];else for(var h=this.t[U],s=0;s<h.length;)h[s].fn===O?h.splice(s,1):++s;return this},x.prototype.emit=function(U){var O=this.t[U];if(O){for(var h=[],s=1;s<arguments.length;)h.push(arguments[s++]);for(s=0;s<O.length;)O[s].fn.apply(O[s++].ctx,h)}return this}},{}],4:[function(b,R,S){function x(u){function p(ce,he,ot,_e){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,ot,_e)}function v(ce,he,ot){return ce=ce(he,ot),he=2*(ce>>31)+1,ot=ce>>>23&255,ce&=8388607,ot==255?ce?NaN:1/0*he:ot==0?1401298464324817e-60*he*ce:he*Math.pow(2,ot-150)*(8388608+ce)}function N(ce,he,ot){oe[0]=ce,he[ot]=me[0],he[ot+1]=me[1],he[ot+2]=me[2],he[ot+3]=me[3]}function Z(ce,he,ot){oe[0]=ce,he[ot]=me[3],he[ot+1]=me[2],he[ot+2]=me[1],he[ot+3]=me[0]}function C(ce,he){return me[0]=ce[he],me[1]=ce[he+1],me[2]=ce[he+2],me[3]=ce[he+3],oe[0]}function $(ce,he){return me[3]=ce[he],me[2]=ce[he+1],me[1]=ce[he+2],me[0]=ce[he+3],oe[0]}var oe,me,Ve,ue,Ne;function Re(ce,he,ot,_e,De,xe){var Ue,gt=_e<0?1:0;(_e=gt?-_e:_e)===0?(ce(0,De,xe+he),ce(0<1/_e?0:2147483648,De,xe+ot)):isNaN(_e)?(ce(0,De,xe+he),ce(2146959360,De,xe+ot)):17976931348623157e292<_e?(ce(0,De,xe+he),ce((gt<<31|2146435072)>>>0,De,xe+ot)):_e<22250738585072014e-324?(ce((Ue=_e/5e-324)>>>0,De,xe+he),ce((gt<<31|Ue/4294967296)>>>0,De,xe+ot)):(ce(4503599627370496*(Ue=_e*Math.pow(2,-(_e=(_e=Math.floor(Math.log(_e)/Math.LN2))===1024?1023:_e)))>>>0,De,xe+he),ce((gt<<31|_e+1023<<20|1048576*Ue&1048575)>>>0,De,xe+ot))}function $e(ce,he,ot,_e,De){return he=ce(_e,De+he),ce=ce(_e,De+ot),_e=2*(ce>>31)+1,De=ce>>>20&2047,ot=4294967296*(1048575&ce)+he,De==2047?ot?NaN:1/0*_e:De==0?5e-324*_e*ot:_e*Math.pow(2,De-1075)*(ot+4503599627370496)}function it(ce,he,ot){Ve[0]=ce,he[ot]=ue[0],he[ot+1]=ue[1],he[ot+2]=ue[2],he[ot+3]=ue[3],he[ot+4]=u
`).map(O=>O.trim()).filter(Boolean);const R={method:"UNDEFINED",url:"",headers:{},body:null},S=A.match(b);if(!S)throw console.log(A),new Error("Invalid 'Copy as fetch' string.");R.url=S[1];const x=S[2],U=JSON.parse(x);return U.method&&(R.method=U.method),U.headers&&(R.headers=U.headers),U.body&&(R.body=U.body),R}const cR=new Uint8Array([237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237]),fR=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),dR=new Uint8Array([112,115,115,104]);function x2(A,b){const R=new ArrayBuffer(4);return new DataView(R).setUint32(0,A,b),new Uint8Array(R)}function y2(A,b){const R=new ArrayBuffer(2);return new DataView(R).setUint16(0,A,b),new Uint8Array(R)}function zA(A,b){const R=A.length,S=R+32,x=new Uint8Array([...x2(S,!1),...dR,...new Uint8Array(4),...b,...x2(R,!1),...A]);return CC(x)}function pR(A){const b=new Uint8Array([...y2(1,!0),...y2(A.length,!0),...A]);return new Uint8Array([...x2(b.length+2+4,!0),...y2(1,!0),...b])}function hR(A){const b=new Uint8Array(A.length*2);for(let R=0;R<A.length;R++){const S=A.charCodeAt(R);b[R*2]=S&255,b[R*2+1]=S>>8}return b}function yR(A){return Uint8Array.from(A.split("").map(b=>b.charCodeAt()))}async function gR(){try{const A=await navigator.clipboard.readText(),b=sR(A);let R,S;if(b.body.startsWith("<")){S=b.body;const x=S.match(/.*(<WRMHEADER.*<\/WRMHEADER>).*/),U=x?x[1]:null,O=hR(U),h=pR(O);R=zA(h,fR)}else{const x=yR(b.body);let U,O;try{U=uR.decode(x),O=aR.decode(U.msg)}catch(h){console.error("Decoding failed, returning empty pssh",h),R=""}if(O&&O.contentId&&O.contentId.widevinePsshData){const h=O.contentId.widevinePsshData.psshData[0];R=zA(h,cR)}mR(x)?S=CC(x):S=b.body}document.getElementById("licurl").value=b.url,document.getElementById("headers").value=JSON.stringify(b.headers),document.getElementById("pssh").value=R,document.getElementById("data").value=S}catch(A){console.error("Failed to read clipboard contents:",A)}}function mR(A){return A.some(b=>b>127)}function vR(){const[A,b]=Se.useState(""),[R,S]=Se.useState(""),[x,U]=Se.useState(""),[O,h]=Se.useState(""),[s,u]=Se.useState(""),[p,v]=Se.useState(""),[N,Z]=Se.useState(""),[C,$]=Se.useState(!1),[oe,me]=Se.useState([]),[Ve,ue]=Se.useState("default");Se.useEffect(()=>{document.title="Home | CDRM-Project"},[]);const Ne=Se.useRef(null),Re=Se.useRef(null),$e=()=>{C&&$(!1),b(""),S(""),U(""),h(""),u(""),v("")},it=_=>{_.preventDefault(),fetch("/api/decrypt",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pssh:A,licurl:R,proxy:x,headers:O,cookies:s,data:p,device:Ve})}).then(ce=>ce.json()).then(ce=>{const he=ce.message.replace(/\n/g,"<br />");Z(he),$(!0)}).catch(ce=>{console.error("Error during decryption request:",ce),Z("Error: Unable to process request."),$(!0)})},Dt=_=>{if(_.preventDefault(),Re.current){const ce=Re.current.innerText;navigator.clipboard.writeText(ce).catch(he=>{alert("Failed to copy!"),console.error(he)})}},_t=()=>{event.preventDefault(),gR().then(()=>{b(document.getElementById("pssh").value),S(document.getElementById("licurl").value),h(document.getElementById("headers").value),v(document.getElementById("data").value)}).catch(_=>{alert("Failed to paste from fetch!")})};return Se.useEffect(()=>{C&&Ne.current&&Ne.current.scrollIntoView({behavior:"smooth"})},[N,C]),Se.useEffect(()=>{fetch("/login/status",{method:"POST"}).then(_=>_.json()).then(_=>{if(_.message==="True")return fetch("/userinfo",{method:"POST"});throw new Error("Not logged in")}).then(_=>_.json()).then(_=>{const he=["CDRM-Project Public Widevine CDM","CDRM-Project Public PlayReady CDM",...[..._.Widevine_Devices,..._.Playready_Devices]];me(he.length>0?he:[]),ue(he.length>0?he[0]:"default")}).catch(()=>{me([]),ue("default")})},[]),re.jsxs(re.Fragment,{children:[re.jsx("div",{className:"flex flex-col w-full overflow-y-auto p-4 min-h-full",children:re.jsxs("form",{className:"flex flex-col w-full h-full bg-black/5 p-4 overflow-y-auto",children:[re.jsxs("label",{htmlFor:"pssh",className:"text-white w-8/10 self-center",children:["PSSH:"," "]}),re.jsx("input",{type:"text"
print(requests.post(
url='${lg}/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'])`})})]}),re.jsxs("details",{open:!0,className:"w-full list-none mt-5",children:[re.jsx("summary",{className:"text-2xl",children:"Sending a search request"}),re.jsx("div",{className:"mt-5 border-2 border-indigo-500/50 p-5 rounded-lg",children:re.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='${lg}/api/cache/search',
json={
'input': 'AAAAW3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADsIARIQ62dqu8s0Xpa7z2FmMPGj2hoNd2lkZXZpbmVfdGVzdCIQZmtqM2xqYVNkZmFsa3IzaioCSEQyAA=='
}
).json())`})})]}),re.jsxs("details",{open:!0,className:"w-full list-none mt-5",children:[re.jsx("summary",{className:"text-2xl",children:"PyWidevine RemoteCDM info"}),re.jsx("div",{className:"mt-5 border-2 border-indigo-500/50 p-5 rounded-lg overflow-x-auto",children:re.jsxs("p",{children:[re.jsx("strong",{children:"Device Type:"})," '",A.device_type,"'",re.jsx("br",{}),re.jsx("strong",{children:"System ID:"})," ",A.system_id,re.jsx("br",{}),re.jsx("strong",{children:"Security Level:"})," ",A.security_level,re.jsx("br",{}),re.jsx("strong",{children:"Host:"})," ",lg,"/remotecdm/widevine",re.jsx("br",{}),re.jsx("strong",{children:"Secret:"})," '",A.secret,"'",re.jsx("br",{}),re.jsx("strong",{children:"Device Name:"})," ",A.device_name]})})]}),re.jsxs("details",{open:!0,className:"w-full list-none mt-5",children:[re.jsx("summary",{className:"text-2xl",children:"PyPlayready RemoteCDM info"}),re.jsx("div",{className:"mt-5 border-2 border-indigo-500/50 p-5 rounded-lg overflow-x-auto",children:re.jsxs("p",{children:[re.jsx("strong",{children:"Security Level:"})," ",R.security_level,re.jsx("br",{}),re.jsx("strong",{children:"Host:"})," ",lg,"/remotecdm/playready",re.jsx("br",{}),re.jsx("strong",{children:"Secret:"})," '",R.secret,"'",re.jsx("br",{}),re.jsx("strong",{children:"Device Name:"})," ",R.device_name]})})]})]})}var g2={};/*
@license
Shaka Player
Copyright 2016 Google LLC
SPDX-License-Identifier: Apache-2.0
*/var XA;function xR(){return XA||(XA=1,function(A){(function(){var b=typeof window<"u"?window:I4,R={};(function(x,U,O){var h;function s(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var u=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 x=="object"&&x,typeof self=="object"&&self,typeof U=="object"&&U];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 v=p(this);function N(e,t){if(t)e:{var n=v;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&&u(n,e,{configurable:!0,writable:!0,value:t})}}N("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,u(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}),N("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=v[t[n]];typeof i=="function"&&typeof i.prototype[e]!="function"&&u(i.prototype,e,{configurable:!0,writable:!0,value:function(){return Z(s(this))}})}return e});function Z(e){return e={next:e},e[Symbol.iterator]=function(){return this},e}function C(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 $(e){if(!(e instanceof Array)){e=C(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}var oe=typeof Object.create=="function"?Object.create:function(e){function t(){}return t.prototype=e,new t},me;if(typeof Object.setPrototypeOf=="function")me=Object.setPrototypeOf;else{var Ve;e:{var ue={a:!0},Ne={};try{Ne.__proto__=ue,Ve=Ne.a;break e}catch{}Ve=!1}me=Ve?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var Re=me;function $e(e,t){if(e.prototype=oe(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.zm=t.prototype}function it(){this.o=!1,this.l=null,this.h=void 0,this.g=1,this.j=this.m=0,this.A=this.i=null}function Dt(e){if(e.o)throw new TypeError("Generator is already running");e.o=!0}it.prototype.s=function(e){this.h=e};function _t(e,t){e.i={Sh:t,di:!0},e.g=e.m||e.j}it.prototype.return=function(e){this.i={return:e},this.g=this.j};function _(e,t,n){return e.g=n,{value:t}}it.prototype.u=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 ot(e,t){e.m=0,e.j=t||0}function _e(e,t,n){e.g=t,e.m=n||0}function De(e,t){return e.m=t||0,t=e.i.Sh,e.i=null,t}function xe(e){e.A=[e.i],e.m=0,e.j=0}function Ue(e,t){var n=e.A.splice(0)[0];(n=e.i=e.i||n)?n.di?e.g=e.m||e.j:n.u!=null&&e.j<n.u?(e.g=n.u,e.i=null):e.g=e.j:e.g=t}function gt(e){this.g=new it,this.h=e}function wn(e,t){Dt(e.g);var n=e.g.l;return n?ae(e,"return"in n?n.return:function(i){return{value:i,done:!0}},t,e.g.return):(e.g.return(t),Oe(e))}function ae(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,_t(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,_t(e.g,n)}if(e.g.o=!1,e.g.i){if(t=e.g.i,e.g.i=null,t.di)throw t.Sh;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function et(e){this.next=function(t){return Dt
@license
Shaka Player
Copyright 2025 Google LLC
SPDX-License-Identifier: Apache-2.0
*/function yt(){return Bf.value()}var io=null,us=null,Bf=new Jn(function(){var e=void 0;return io&&(e=io()),!e&&us&&(e=us()),e});function hl(e,t){this.g=e,this.h=t}hl.prototype.toString=function(){return"v"+this.g+"."+this.h};function Et(e,t){var n=new hl(5,0),i=Vp,r=i.g,l=n.h-r.h;(0<(n.g-r.g||l)?i.i:i.h)(i.g,n,e,t)}function Ic(e,t,n,i){Ct([n,"has been deprecated and will be removed in",t,". We are currently at version",e,". Additional information:",i].join(" "))}function xv(e,t,n,i){ui([n,"has been deprecated and has been removed in",t,". We are now at version",e,". Additional information:",i].join(" "))}var Vp=null;/*
@license
Copyright 2008 The Closure Library Authors
SPDX-License-Identifier: Apache-2.0
*/var gg=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/*
@license
Copyright 2006 The Closure Library Authors
SPDX-License-Identifier: Apache-2.0
*/function dn(e){var t;e instanceof dn?($l(this,e.cc),this.ed=e.ed,Vf(this,e.Cb),Hf(this,e.vd),this.ob=e.ob,eu(this,e.g.clone()),this.Nc=e.Nc):e&&(t=String(e).match(gg))?($l(this,t[1]||"",!0),this.ed=tu(t[2]||""),Vf(this,t[3]||"",!0),Hf(this,t[4]),this.ob=tu(t[5]||"",!0),eu(this,t[6]||"",!0),this.Nc=tu(t[7]||"")):this.g=new iu(null)}h=dn.prototype,h.cc="",h.ed="",h.Cb="",h.vd=null,h.ob="",h.Nc="",h.toString=function(){var e=[],t=this.cc;if(t&&e.push(Qu(t,vg,!0),":"),t=this.Cb){e.push("//");var n=this.ed;n&&e.push(Qu(n,vg,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t=this.vd,t!=null&&e.push(":",String(t))}return(t=this.ob)&&(this.Cb&&t.charAt(0)!="/"&&e.push("/"),e.push(Qu(t,t.charAt(0)=="/"?Di:nu,!0))),(t=this.g.toString())&&e.push("?",t),(t=this.Nc)&&e.push("#",Qu(t,as)),e.join("")},h.resolve=function(e){var t=this.clone();t.cc==="data"&&(t=new dn);var n=!!e.cc;n?$l(t,e.cc):n=!!e.ed,n?t.ed=e.ed:n=!!e.Cb,n?Vf(t,e.Cb):n=e.vd!=null;var i=e.ob;if(n)Hf(t,e.vd);else if(n=!!e.ob){if(i.charAt(0)!="/")if(this.Cb&&!this.ob)i="/"+i;else{var r=t.ob.lastIndexOf("/");r!=-1&&(i=t.ob.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.ob=i:n=e.g.toString()!=="",n?eu(t,e.g.clone()):n=!!e.Nc,n&&(t.Nc=e.Nc),t},h.clone=function(){return new dn(this)};function $l(e,t,n){e.cc=n?tu(t,!0):t,e.cc&&(e.cc=e.cc.replace(/:$/,""))}function Vf(e,t,n){e.Cb=n?tu(t,!0):t}function Hf(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.vd=t}else e.vd=null}function eu(e,t,n){t instanceof iu?e.g=t:(n||(t=Qu(t,ir)),e.g=new iu(t))}function tu(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function Qu(e,t,n){return e!=null?(e=encodeURI(e).replace(t,mg),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function mg(e){return e=e.charCodeAt(0),"%"+(e>>4&15).toString(16)+(e&15).toString(16)}var vg=/[#\/\?@]/g,nu=/[#\?:]/g,Di=/[#\?]/g,ir=/[#\?@]/g,as=/#/g;function iu(e){this.g=e||null}function Kf(e){if(!e.fb&&(e.fb=new Map,e.Ld=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," ")))}}h=iu.prototype,h.fb=null,h.Ld=null;function Sg(e){return Kf(e),e.Ld}h.add=function(e,t){Kf(this),this.g=null;var n=this.fb.has(e)?this.fb.get(e):null;return n||this.fb.set(e,n=[]),n.push(t),this.Ld++,this},h.set=function(e,t){return Kf(this),this.g=null,this.fb.has(e)?this.fb.set(e,[t]):this.add(e,t),this},h.get=function(e){return Kf(this),this.fb.get(e)||[]},h.toString=function(){if(this.g)return this.g;if(!this.fb||!this.fb.size)return"";for(var e=[],t=C(this.fb.keys()),n=t.next();!n.done;n=t.next()){var i=n.value;n=encodeURIComponent(i),i=this.fb.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("&")},h.clone=function(){var e=new iu;if(e.g=this.g,this.fb){for(var t=new Map,n=C(this.fb),i=n.next();!i.done;i=n.next()){var r=C(i.value);i=r.next().value,r=r.next().value,t.set(i,r.concat())}e.fb=t,e.Ld=this.Ld}return e};function Ju(){}function gr(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=Ge(e);t=Ge(t);for(var i=0;i<e.byteLength;i++)if(n[i]!=t[i])return!1;return!0}function Fi(e){return ArrayBuffer.isView(e)?e.byteOffset==0&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer:e}function Ge(e,t,n){return n=n===void 0?1/0:n,ru(e,t===void 0?0:t,n,Uint8Array)}function Zu(e,t,n){return n=n===void 0?1/0:n,ru(e,t===void 0?0:t,n,Uint16Array)}function Zn(e,t,n){return n=n===void 0?1/0:n,ru(e,t===void 0?0:t,n,DataView)}func
@license
tXml
Copyright 2015 Tobias Nickel
SPDX-License-Identifier: MIT
*/function au(e,t){var n=n===void 0?!1:n;return e=qi(e),uo(e,t,n)}function uo(e,t,n){return e=qp(e,n===void 0?!1:n),!t&&e.length?e[0]:(e=e.find(function(i){return t.split(",").includes(i.tagName)}))?e:null}function Fp(e){return Yp.has(e)?Yp.get(e):""}function qp(e,t){function n(l,c){c=c===void 0?!1:c;for(var f=[];e[r];)if(e.charCodeAt(r)==60){if(e.charCodeAt(r+1)===47){c=r+2,r=e.indexOf(">",r),c=e.substring(c,r);var y=c.indexOf(l);if(y==-1){var m=l.indexOf(".");0<m&&(y=c.indexOf(l.substring(0,m)))}if(y==-1)throw l=e.substring(0,r).split(`
`),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"){y=e.indexOf("]]>",r),y==-1?(f.push(e.substr(r+9)),r=e.length):(f.push(e.substring(r+9,y)),r=y+3);continue}r++;continue}e:{m=c,r++;var w=i(),T={};for(y=[];e.charCodeAt(r)!==62&&e[r];){var I=e.charCodeAt(r);if(64<I&&91>I||96<I&&123>I){I=i();for(var D=e.charCodeAt(r);D&&D!==39&&D!==34&&!(64<D&&91>D||96<D&&123>D)&&D!==62;)r++,D=e.charCodeAt(r);var M=r+1;if(r=e.indexOf(e[r],M),M=e.slice(M,r),D===39||D===34){if(r===-1){if(m={tagName:w,attributes:T,children:y,parent:null},t)for(w=0;w<y.length;w++)typeof y[w]!="string"&&(y[w].parent=m);y=m;break e}}else M=null,r--;if(I.startsWith("xmlns:")){D=M;var L=I.split(":")[1];Yp.set(D,L),Wp.set(L,D)}w==="tt"&&I==="xml:space"&&M==="preserve"&&(m=!0),T[I]=M}r++}for(e.charCodeAt(r-1)!==47?(r++,y=n(w,m)):r++,m={tagName:w,attributes:T,children:y,parent:null},w=y.length,T=0;T<w;T++)I=y[T],typeof I!="string"?t&&(I.parent=m):T==w-1&&I==`
`&&y.pop();y=m}if(f.push(y),typeof y=="string")break;y.tagName[0]==="?"&&y.children&&(f.push.apply(f,$(y.children)),y.children=[])}else y=r,r=e.indexOf("<",r)-1,r===-2&&(r=e.length),y=e.slice(y,r+1),c?0<y.length&&f.push(y):(f.length&&y.length==1&&y[0]==`
`||0<y.trim().length)&&f.push(y),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 fs(e){return typeof e=="string"}function ds(e){var t=[];if(!e.children)return[];e=C(e.children);for(var n=e.next();!n.done;n=e.next())n=n.value,typeof n!="string"&&t.push(n);return t}function Rt(e,t){var n=[];if(!e.children)return[];e=C(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"?Oi(e):(e=e.children.reduce(function(t,n){return typeof n=="string"?t+n:t},""),e===""?null:Oi(e))}function zi(e){return Array.from(e.children).every(function(t){return typeof t=="string"})?((e=Cn(e))&&(e=e.trim()),e):null}function ao(e,t,n){if(n=n===void 0?[]:n,e.tagName===t&&n.push(e),e.children){e=C(e.children);for(var i=e.next();!i.done;i=e.next())ao(i.value,t,n)}return n}function sn(e,t){return e=Rt(e,t),e.length!=1?null:e[0]}function ur(e,t,n){return e=Tg(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 ml(e,t,n){return t=Fp(t),e.attributes[t+":"+n]||null}function Tg(e,t,n){var i=Fp(t);if(t=[],e.children)for(n=i?i+":"+n:n,e=C(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=C(t);for(var i=t.next();!i.done;i=t.next())if(i=ml(e,i.value,n))return i;return null}function vl(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 so(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 Jf(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 Fn(e){return e=Number(e),e%1===0?e:null}function Sl(e){return e=Number(e),e%1===0&&0<e?e:null}function ei(e){return e=Number(e),e%1===0&&0<=e?e:null}function ps(e){return e=Number(e),isNaN(e)?null:e}function Zf(e){return e?e.toLowerCase()==="true":!1}function Ev(e){var t,n=(t=e.match(/^(\d+)\/(\d+)$/))?Number(t[1])/Number(t[2]):Number(e);return isNaN(n)?null:n}function $f(e){var t=[];e=Oi(e).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/),e=C(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,wc:n.split("/@")[1]||null})}else n.startsWith("@")&&t.length&&(t[t.length-1].wc=n.slice(1))}return t}function zp(e,t){var n=$f(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=xg(e,"t",i.t)),i.n!==null&&(n=xg(e,"n",i.n))),n===null?n=r==="prepend"?0:e.length:r==="prepend"?--n:r==="after"&&++n,r=t.tagName,(i=i.wc)&&e[n]?Eg(e[n],r,i,zi(t)||""):(r!=="remove"&&r!=="replace"||e.splice(n,1),r!=="add"&&r!=="replace"||e.splice.apply(e,[n,0].concat($(t.children))))}}function xg(e,t,n){var i=0;e=C(e);for(var r=e.next();!r.done;r=e.next()){if(Number(r.value.attributes[t])===n)return i;i++}return null}function Eg(e,t,n,i){t==="remove"?delete e.attributes[n]:(t==="add"||t==="replace")&&(e.attributes[n]=i)}function Ag(e){var t="",n=e.tagName.split(":");0<n.length&&(t=n[0],t=Wp.has(t)?Wp.get(t):""),t=document.createElementNS(t,e.tagName);for(var i in e.attributes)t.setAttribute(i,e.attributes[i]);for(e=C(e.children),i=e.next();!i.done;i=e.next())i=i.value,n=void 0,typeof i=="string"?n=new Text(i):n=Ag(i),t.appendChild(n);return t}function Xp(e){if(!e)return null;var t={tagName:e.tagName,attributes:Gn(e.attributes),children:[],parent:null};e=C(e.children);for(var n=e.next();!n.done;n=e.nex
`),e=!0,n=C(n),r=n.next();!r.done;r=n.next())r=r.value,e||(e=Cg(i.startTime,i.endTime),t.nestedCues.push(e)),0<r.length&&(e=i.clone(),e.payload=Oi(r),t.nestedCues.push(e)),e=!1;else for(t.nestedCues.push(i),t=C(r),e=t.next();!e.done;e=t.next())Qp(e.value,i,n)}function gs(e,t){return e&&0<e.length?e:t}Pe("shaka.text.Cue",Zt),Zt.parseCuePayload=hs,Zt.equal=ed,Zt.prototype.clone=Zt.prototype.clone;var Rc="auto";Zt.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Rc};var co="center",td={LEFT:"left",RIGHT:"right",CENTER:co,START:"start",END:"end"};Zt.textAlign=td;var Po="after",bg={BEFORE:"before",CENTER:"center",AFTER:Po};Zt.displayAlign=bg;var Mc="ltr";Zt.direction={HORIZONTAL_LEFT_TO_RIGHT:Mc,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var ua="horizontal-tb";Zt.writingMode={HORIZONTAL_TOP_TO_BOTTOM:ua,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var ms=0;Zt.lineInterpretation={LINE_NUMBER:ms,PERCENTAGE:1};var su="start",aa={CENTER:"center",START:su,END:"end"};Zt.lineAlign=aa;var vs={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Zt.defaultTextColor=vs;var Ig={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Zt.defaultTextBackgroundColor=Ig;var Nc=400,sa=700;Zt.fontWeight={NORMAL:Nc,BOLD:sa};var nd="normal",cu="italic",id={NORMAL:nd,ITALIC:cu,OBLIQUE:"oblique"};Zt.fontStyle=id;var Lo="underline";Zt.textDecoration={UNDERLINE:Lo,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var kg=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function wl(){}wl.prototype.destroy=function(){};function Tl(e,t,n){Jp.set(e.toLowerCase().split(";")[0]+"-"+n,{priority:n,wf:t})}function Ss(e,t){for(var n=e.toLowerCase().split(";")[0],i=C([ws,Xi,Zp,fu]),r=i.next();!r.done;r=i.next())if(r=Jp.get(n+"-"+r.value)){var l=r.wf(),c=l.isSupported(e,t);if(l.destroy(),c)return r.wf}return null}Pe("shaka.transmuxer.TransmuxerEngine",wl),wl.findTransmuxer=Ss,wl.unregisterTransmuxer=function(e,t){Jp.delete(e.toLowerCase().split(";")[0]+"-"+t)},wl.registerTransmuxer=Tl,wl.prototype.destroy=wl.prototype.destroy;var Jp=new Map,fu=1,Zp=2,Xi=3,ws=4;wl.PluginPriority={FALLBACK:fu,PREFERRED_SECONDARY:Zp,PREFERRED:Xi,APPLICATION:ws};function rd(){}function xn(e,t){var n=e;return t&&!ar.includes(e)&&(n+='; codecs="'+t+'"'),n}function Pc(e,t){return t&&(e+='; codecs="'+t+'"'),e}function od(e,t,n){var i=xn(e,t);return t=Pc(e,t),Ss(t)?(e=Ss(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 Ts(e){return e.split(";")[0].split("/")[1]}function Ti(e){var t=$p(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 xr(e){var t=[];e=C(e.split(","));for(var n=e.next();!n.done;n=e.next())n=$p(n.value),t.push(n[0]);return t.sort().join(",")}function Mi(e){return e.split(";")[0]}function xi(e){return e=e.split(/ *; */),e.shift(),(e=e.find(function(t){return t.startsWith("codecs=")}))?e.split("=")[1].replace(/^"|"$/g,""):""}f
@license
Shaka Player
Copyright 2023 Google LLC
SPDX-License-Identifier: Apache-2.0
*/function Sd(e,t,n){this.g=e,this.i=t,this.h=n}function Wc(e,t){return G(function(n){if(n.g==1)return _(n,ud(e.h,t,e.g.drm.preferredKeySystems,e.g.drm.keySystemsMapping),2);if(e.g.streaming.dontChooseCodecs||cr(t,e.g.preferredVideoCodecs,e.g.preferredAudioCodecs,e.g.preferredDecodingAttributes,e.g.preferredTextFormats),!t.variants.some($t))throw new Y(2,4,4032);return n.return(Th(e,t))})}function Ls(e,t){var n=e.g.restrictions;e=e.i;var i=!1;t=C(t.variants);for(var r=t.next();!r.done;r=t.next()){r=r.value;var l=r.allowedByApplication;r.allowedByApplication=_c(r,n,e),l!=r.allowedByApplication&&(i=!0)}return i}function Th(e,t){var n=Ls(e,t);if(t){var i=e.h?e.h.g:null;if(i&&e.h.A){for(var r=new Set,l=C(t.variants),c=l.next();!c.done;c=l.next())c=c.value,c.audio&&r.add(c.audio),c.video&&r.add(c.video);for(r=C(r),l=r.next();!l.done;l=r.next())xh(e,i.keySystem,l.value)}Eh(e,t)}return n}function xh(e,t,n){n=C(n.drmInfos);for(var i=n.next();!i.done;i=n.next())if(i=i.value,i.keySystem==t){i=C(i.initData||[]);for(var r=i.next();!r.done;r=i.next())r=r.value,xa(e.h,r.initDataType,r.initData)}}function Eh(e,t){e=e.h?e.h.Te():{};var n=Object.keys(e);n=n.length&&n[0]=="00";var i=!1,r=!1,l=new Set,c=new Set,f=new Set;t=C(t.variants);for(var y=t.next();!y.done;y=t.next())y=y.value,y.audio&&f.add(y.audio),y.video&&f.add(y.video),y.allowedByApplication?y.allowedByKeySystem&&(i=!0):r=!0;for(f=C(f),t=f.next();!t.done;t=f.next())if(t=t.value,t.keyIds.size)for(t=C(t.keyIds),y=t.next();!y.done;y=t.next()){y=y.value;var m=e[n?"00":y];m?wd.includes(m)&&c.add(m):l.add(y)}if(!i)throw e={hasAppRestrictions:r,missingKeys:Array.from(l),restrictedKeyStatuses:Array.from(c)},new Y(2,4,4012,e)}var wd=["output-restricted","internal-error"];function _s(){}function Au(e,t){Ca.set(e,t)}function Ah(){var e={};if(yt(),Fu())for(var t=C(Ca.keys()),n=t.next();!n.done;n=t.next())e[n.value]=!0;for(t=C(["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]=Fu()?Ca.has(n):ku().canPlayType(n)!="";return e}function Ch(e,t){if(t){var n=Ca.get(t.toLowerCase());if(n)return n}throw new Y(2,4,4e3,e,t)}Pe("shaka.media.ManifestParser",_s),_s.unregisterParserByMime=function(e){Ca.delete(e)},_s.registerParserByMime=Au,_s.registerParserByExtension=function(){Et("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")},_s.AccessibilityPurpose={tm:"visually impaired",Gl:"hard of hearing",bm:"spoken subtitles"};var Ca=new Map;function Us(e,t){var n=null,i=null,r=null,l=null,c=e.T();return t&1&&(r=e.yd()),t&2&&(l=e.T()),t&8&&(n=e.T()),t&16&&(i=e.T()),{trackId:c,Md:n,Nd:i,gj:r,Fi:l}}function Qc(e,t){return t==1?(t=e.T(),e=e.T(),{baseMediaDecodeTime:t*Math.pow(2,32)+e}):{baseMediaDecodeTime:e.T()}}function Jc(e,t){return t==1?(e.skip(8),e.skip(8)):(e.skip(4),e.skip(4)),t=e.T(),e.skip(4),e=e.Ba(),{timescale:t,language:String.fromCharCode((e>>10)+96)+String.fromCharCode(((e&960)>>5)+96)+String.fromCharCode((e&31)+96)}}function Td(e,t,n){var i=e.T(),r=[],l=null;n&1&&(l=e.Yg()),n&4&&e.skip(4);for(var c=0;c<i;c++){var f={hh:null,sampleSize:null,Bf:null};n&256&&(f.hh=e.T()),n&512&&(f.sampleSize=e.T()),n&1024&&e.skip(4),n&2048&&(f.Bf=t==0?e.T():e.Yg()),r.push(f)}return{ym:i,gh:r,mg:l}}function xd(e){e.skip(6),e.skip(2),e.skip(8);var t=e.Ba();return e.skip(2),e.skip(2),e.skip(2),e=e.Ba()+e.Ba()/65536,{channelCount:t,sampleRate:e}}function Ed(e){return e=e.T(),{codec:Lt(e)}}function Wg(e){var t=null,n=null,i=e.Ub(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.Ba()){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.Ba(),e.Ba(),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,oe:n}}function ba(e,t){return t=t===void 0?!1:t,e=e.toString(16).toUpperCase(),t?e:("0"+e).slice(-2)}function _i(e){return(10>e?"0":"")+e}function Cu(e){if(!Zg){
@license
Shaka Player
Copyright 2022 Google LLC
SPDX-License-Identifier: Apache-2.0
*/function of(){}function Mh(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 Nh(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 Dd(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 Ph(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=ln(Ge(e.data,1,n)),r=e.data[2+n],l=e.data.subarray(3+n).indexOf(0);if(l===-1)return null;var c=ln(Ge(e.data,3+n,l)),f;return i==="-->"?f=ln(Ge(e.data,4+n+l)):f=Fi(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=ln(Ge(e.data,1,i)),e=ln(Ge(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=ln(Ge(e.data,1,i)),e=ln(Ge(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=ln(Ge(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=Fi(e.data.subarray(n.length+1)),t.data=e),t):e.type[0]==="T"?2>e.size||e.data[0]!==3?null:(e=ln(e.data.subarray(1)).replace(/\0*$/,""),t.data=e,t):e.type[0]==="W"?(e=ln(e.data).replace(/\0*$/,""),t.data=e,t):e.data?(t.data=Fi(e.data),t):null}function _l(e){for(var t=0,n=[];Mh(e,t);){var i=Dd(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=Dd(r,4);r={type:String.fromCharCode(r[0],r[1],r[2],r[3]),size:l,data:r.subarray(10,10+l)},(l=Ph(r))&&n.push(l),t+=r.size+10}Nh(e,t)&&(t+=10)}return n}function Du(e,t){for(var n=t=t===void 0?0:t,i=0;Mh(e,t);)e[t+5]>>6&1&&(i+=10),i+=10,i+=Dd(e,t+6),Nh(e,t+10)&&(i+=10),t+=i;return 0<i?e.subarray(n,n+i):new Uint8Array([])}Pe("shaka.util.Id3Utils",of),of.getID3Data=Du,of.getID3Frames=_l;function Lh(e){return new Date(Date.UTC(1900,0,1,0,0,0,0)+e).getTime()}function So(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=Ge(t,0,n)}this.i=this.j.byteLength,this.g=this.h=0}function Gs(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 Bt(n,0).T(),e.g=8*i,e.i-=i)}function Ei(e,t){if(e.g<=t){t-=e.g;var n=Math.floor(t/8);t-=8*n,e.g-=n,Gs(e)}e.h<<=t,e.g-=t}function St(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&&Gs(e),n=t-n,0<n?i<<n|St(e,n):i}function lf(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 Gs(e),t+lf(e)}function Ai(e){Ei(e,1+lf(e))}function Me(e){var t=lf(e);return St(e,t+1)-1}function Ou(e){return e=Me(e),1&e?1+e>>>1:-1*(e>>>1)}function Ke(e){return St(e,1)===1}function Nt(e){return St(e,8)}function qr(e,t){for(var n=8,i=8,r=0;r<t;r++)i!==0&&(i=Ou(e),i=(n+i+256)%256),n=i===0?n:i}function om(e){return Nt(e),Me(e),Me(e)}Pe("shaka.util.ExpGolomb",So);function Vt(){this.H=null,this.I=!1,this.m=this.K=null,this.j=[],this.g=[],this.B=this.C=null,this.i=[],this.h=[],this.F=null,this.l=[],this.A=this.G=this.o=this.s=null}h=Vt.prototype,h.clearData=function(){this.j=[],this.g=[],this.i=[],this.h=[],this.l=[]},h.Ff=function(e){this.A!=null&&this.A!=e&&(this.o=this.s=null),this.A=e},h.parse=function(e){if(564>e.length)return this;for(var t=Math.max(0,Yo(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.H=(e[f+10]&31)<<8|e[f+11];break;case 17:case 8191:break;case this.H:l&&(f+=e[f]+1),l=e,c={audio:-1,video:-1,Ye:-
@license
Copyright 2013 Ali Al Dallal
Licensed under the MIT license.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/for(var ll={ach:"Lwo",ady:"Адыгэбзэ",af:"Afrikaans","af-NA":"Afrikaans (Namibia)","af-ZA":"Afrikaans (South Africa)",ak:"Tɕɥi",ar:"العربية","ar-AR":"العربية","ar-MA":"العربية","ar-SA":"العربية (السعودية)","ay-BO":"Aymar aru",az:"Azərbaycan dili","az-AZ":"Azərbaycan dili","be-BY":"Беларуская",bg:"Български","bg-BG":"Български",bn:"","bn-IN":" ()","bn-BD":"()","bs-BA":"Bosanski",ca:"Català","ca-ES":"Català",cak:"Maya Kaqchikel","ck-US":" (tsalagi)",cs:"Čeština","cs-CZ":"Čeština",cy:"Cymraeg","cy-GB":"Cymraeg",da:"Dansk","da-DK":"Dansk",de:"Deutsch","de-AT":"Deutsch (Österreich)","de-DE":"Deutsch (Deutschland)","de-CH":"Deutsch (Schweiz)",dsb:"Dolnoserbšćina",el:"Ελληνικά","el-GR":"Ελληνικά",en:"English","en-GB":"English (UK)","en-AU":"English (Australia)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-IN":"English (India)","en-PI":"English (Pirate)","en-UD":"English (Upside Down)","en-US":"English (US)","en-ZA":"English (South Africa)","en@pirate":"English (Pirate)",eo:"Esperanto","eo-EO":"Esperanto",es:"Español","es-AR":"Español (Argentine)","es-419":"Español (Latinoamérica)","es-CL":"Español (Chile)","es-CO":"Español (Colombia)","es-EC":"Español (Ecuador)","es-ES":"Español (España)","es-LA":"Español (Latinoamérica)","es-NI":"Español (Nicaragua)","es-MX":"Español (México)","es-US":"Español (Estados Unidos)","es-VE":"Español (Venezuela)",et:"eesti keel","et-EE":"Eesti (Estonia)",eu:"Euskara","eu-ES":"Euskara",fa:"فارسی","fa-IR":"فارسی","fb-LT":"Leet Speak",ff:"Fulah",fi:"Suomi","fi-FI":"Suomi","fo-FO":"Føroyskt",fr:"Français","fr-CA":"Français (Canada)","fr-FR":"Français (France)","fr-BE":"Français (Belgique)","fr-CH":"Français (Suisse)","fy-NL":"Frysk",ga:"Gaeilge","ga-IE":"Gaeilge (Gaelic)",gl:"Galego","gl-ES":"Galego","gn-PY":"Avañe'","gu-IN":"","gx-GR":"λληνική ρχαία",he:"עברית","he-IL":"עברית",hi:"ि","hi-IN":"ि",hr:"Hrvatski","hr-HR":"Hrvatski",hsb:"Hornjoserbšćina",ht:"Kreyòl",hu:"Magyar","hu-HU":"Magyar","hy-AM":"Հայերեն",id:"Bahasa Indonesia","id-ID":"Bahasa Indonesia",is:"Íslenska","is-IS":"Íslenska (Iceland)",it:"Italiano","it-IT":"Italiano",ja:"","ja-JP":"","jv-ID":"Basa Jawa","ka-GE":"","kk-KZ":"Қазақша",km:"","km-KH":"",kab:"Taqbaylit",kn:"","kn-IN":" (India)",ko:"","ko-KR":" ()",ku:"Kurdî","ku-TR":"Kurdî",la:"Latin","la-VA":"Latin",lb:"Lëtzebuergesch","li-NL":"Lèmbörgs",lt:"Lietuvių","lt-LT":"Lietuvių",lv:"Latviešu","lv-LV":"Latviešu",mai:"ि, ি","mg-MG":"Malagasy",mk:"Македонски","mk-MK":"Македонски (Македонски)",ml:"","ml-IN":"","mn-MN":"Монгол",mr:"","mr-IN":"",ms:"Bahasa Melayu","ms-MY":"Bahasa Melayu",mt:"Malti","mt-MT":"Malti",my:"က",nb:"Norsk (bokmål)","nb-NO":"Norsk (bokmål)",ne:"","ne-NP":"",nl:"Nederlands","nl-BE":"Nederlands (België)","nl-NL":"Nederlands (Nederland)","nn-NO":"Norsk (nynorsk)",no:"Norsk",oc:"Occitan","or-IN":"ି",pa:"","pa-IN":" ( )",pl:"Polski","pl-PL":"Polski","ps-AF":"پښتو",pt:"Português","pt-BR":"Português (Brasil)","pt-PT":"Português (Portugal)","qu-PE":"Qhichwa","rm-CH":"Rumantsch",ro:"Română","ro-RO":"Română",ru:"Русский","ru-RU":"Русский","sa-IN":"","se-NO":"Davvisámegiella","si-LK":"",sk:"Slovenčina","sk-SK":"Slovenčina (Slovakia)",sl:"Slovenščina","sl-SI":"Slovenščina","so-SO":"Soomaaliga",sq:"Shqip","sq-AL":"Shqip",sr:"Српски","sr-RS":"Срп
`;if(e.nestedCues.length)return e.nestedCues.map(function(c){return Pm(c,e)}).join("");if(!e.payload)return e.payload;var n=[],i=e.fontWeight>=sa,r=e.fontStyle==cu,l=e.textDecoration.includes(Lo);return i&&n.push(["b"]),r&&n.push(["i"]),l&&n.push(["u"]),r=e.color,r==""&&t&&(r=t.color),i="",(r=fy(r))&&(i+="."+r),r=e.backgroundColor,r==""&&t&&(r=t.backgroundColor),(t=fy(r))&&(i+=".bg_"+t),i&&n.push(["c",i]),n.reduceRight(function(c,f){var y=C(f);return f=y.next().value,y=y.next().value,"<"+f+(y===void 0?"":y)+">"+c+"</"+f+">"},e.payload)}function fy(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 Fa(e,t){var n=[];e=C(Lm(e));for(var i=e.next();!i.done;i=e.next())if(i=i.value,i.isContainer)n.push.apply(n,$(Fa(i.nestedCues,i)));else{var r=i.clone();r.nestedCues=[],r.payload=Pm(i,t),n.push(r)}return n}function Lm(e){var t=[];e=C(e);for(var n=e.next(),i={};!n.done;i={ig:void 0},n=e.next())i.ig=n.value,t.some(function(r){return function(l){return ed(r.ig,l)}}(i))||t.push(i.ig);return t}function Xv(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 _m(e,t){var n=Fa(t),i=[];t=e.cues?Array.from(e.cues):[],n=C(n);for(var r=n.next(),l={};!r.done;l={pd:void 0},r=n.next())l.pd=r.value,!t.some(function(c){return function(f){return f.startTime==c.pd.startTime&&f.endTime==c.pd.endTime&&f.text==c.pd.payload}}(l))&&l.pd.payload&&(r=Xv(l.pd))&&i.push(r);for(t=i.slice().sort(function(c,f){return c.startTime!=f.startTime?c.startTime-f.startTime:c.endTime!=f.endTime?c.endTime-f.startTime:"line"in VTTCue.prototype?i.indexOf(f)-i.indexOf(c):i.indexOf(c)-i.indexOf(f)}),t=C(t),n=t.next();!n.done;n=t.next())e.addCue(n.value)}function dc(e,t){var n=!1;e.mode==="disabled"&&(n=!0,e.mode="hidden");for(var i=0;i<e.cues.length;){var r=e.cues[i];t(r)?e.removeCue(r):i++}n&&(e.mode="disabled")}function kn(e){var t=this;this.i=e,this.l=new Mt,this.j=null,this.h=new Map,this.g=-1,this.s=!1,this.o=null,this.B=function(){t.l.Ja(t.i,"textchanged",t.m),t.l.Ja(t.j.textTracks,"change",t.A);for(var n=C(t.h.values()),i=n.next();!i.done;i=n.next())i.value.remove();t.h.clear(),t.g=-1,t.j=null},this.m=function(){var n=new Map,i=t.i.Dc();i=C(i);for(var r=i.next();!r.done;r=i.next()){if(r=r.value,t.h.has(r.id)){var l=t.h.get(r.id);r.active||l.track.mode==="disabled"||(l.track.mode="disabled"),t.h.delete(r.id)}else{l=t.j.ownerDocument.createElement("track"),l.kind=dy(r);var c=l,f=void 0;if(r.label)f=r.label;else if(r.language)if(r.language in ll)f=ll[r.language];else{var y=Al(r.language);y in ll&&(f=ll[y]+" ("+r.language+")")}f||(f=r.originalTextId,r.language&&r.language!==r.originalTextId&&(f+=" ("+r.language+")")),c.label=f,r.language in ll&&(l.srclang=r.language),yt().Da()==="CHROMIUM"&&(l.src="data:,WEBVTT"),l.track.mode="disabled",t.j.appendChild(l)}n.set(r.id,l),r.active&&(t.g=r.id)}for(i=C(t.h.values()),r=i.next()
`,i=C(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 co: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}Pe("shaka.text.WebVttGenerator",function(){});function yc(e,t){this.h=e,this.g=t,this.i=void 0,this.s=!1,this.F=!0,this.l=this.B=!1,this.o=this.m=void 0,this.A=0,this.G=!1,this.C=new Mt,this.j=null}yc.prototype.setMediaElement=function(e){this.j=e,Vu(this)},yc.prototype.configure=function(e){this.g=e};function my(e){e.s=!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.Ra()}function Bm(e,t){e.l=t,e.l?e.i==sp?e.i=Ya:e.i==o&&(e.i=a):e.i==Ya?e.i=sp:e.i==a&&(e.i=o)}function vy(e,t){if(e.g&&e.g.enabled&&e.g.version==wy&&e.j&&e.j.autoplay){var n=e.j.play();n&&n.then(function(){e.A=t}).catch(function(){e.A=0})}}function Bu(e,t,n){try{if(!e.g.enabled)return t;var i=al(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=qa;break e;case"video/webm":case"video/mp4":case"video/mpeg":case"video/mp2t":r=Ef;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=Vm;break e}r=void 0}i.ot=r,i.su=!0;var l=xf(i);return ap(t,l)}catch(c){return Jl("CMCD_SRC_ERROR","Could not generate src CMCD data.",c),t}}function Vu(e){e.C.Aa(e.j,"play",function(){e.m||(e.m=Date.now())}),e.C.Aa(e.j,"playing",function(){e.o||(e.o=Date.now())})}function al(e){return e.g.sessionId||(e.g.sessionId=x.crypto.randomUUID()),{v:e.g.version,sf:e.i,sid:e.g.sessionId,cid:e.g.contentId,mtp:e.h.getBandwidthEstimate()/1e3}}function sl(e,t,n){n=n===void 0?{}:n;var i=i===void 0?e.g.useHeaders:i;if(e.g.enabled)if(e=Qv(e,n),i)i=up(e),Object.keys(i).length&&Object.assign(t.headers,i);else{var r=xf(e);r&&(t.uris=t.uris.map(function(l){return ap(l,r)}))}}function wf(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 Hu(e){if(e.type===0)return Af;if(e=e.stream){var t=e.type;if(t=="video")return e.codecs&&e.codecs.includes(",")?Ef:za;if(t=="audio")return qa;if(t=="text")return e.mimeType==="application/mp4"?Xa:Cf}}function Wv(e,t){if(t=e.h.Nb()[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 Sy(e,t){if(t=e.h.Nb()[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 Tf(e,t){var n=e.h.Qb();if(!n.length)return NaN;e=n[0],n=C(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 za:return e.videoBandwidth||NaN;case qa:return e.audioBandwidth||NaN;default:return e.bandwidth}}function Qv(e,t){t=t===void 0?{}:t,Object.assign(t,al(e)),t.pr=e.h.ub();var n=t.ot===za||t.ot===Ef;return e.B&&n&&(t.bs=!0,t.su=!0,e.B=!1),t.su==null&&(t.su=e.F),t.v===wy&&(e.h.V()&&(t.ltc=e.h.Ue()),n=!e.G&&e.o&&e.m?e.o-(e.A||e.m):void 0,n!=null&&(t.msd=n,e.G=!0)),wf(e,t)}function xf(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=C(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;var y=e[f];if(i(y)&&(f!=="v"||y!==1)&&(f!="pr"||y!==1)){var m=l[f];m&&(y=m(y)),m=typeof y;var w=void 0;w=m==="string"&&f!=="ot"&&f!=="sf"&&f!=="st"?f+"="+JSON.stringify(y):m==="boolean"?f:m==="symbol"?f+"="+y.description:f+"="+y,r.push(w)}}return r.join(",")}function up(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=C(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=xf(r[e]))&&(n["CMCD-"+i[e]]=l);return n}function ap(e,t){return!t||e.includes("offline:")?e:(e=new dn(e),e.g.set("CMCD",t),e.toString())}var Vm="m",qa="a",za="v",Ef="av",Af="i",Cf="c",Xa="tt",wy=2,sp="d",Ya="ld",o="h",a="lh";Pe(
`).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=C(n),l=r.next();!l.done;l=r.next())if(l=l.value,/^#(?!EXT)/m.test(l)||i)i=!1;else if(l=eS(e,l),--e.g,JT.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=eS(e,c),wI.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=C(c);for(var y=c.next();!y.done;y=c.next())y=y.value,/^(#EXT)/.test(y)?(y=eS(e,y),JT.includes(y.name)?r.push(y):y.name=="EXT-X-MAP"?f=y:y.name=="EXT-X-PART"?l.push(y):y.name=="EXT-X-PRELOAD-HINT"?He(y,"TYPE")=="PART"?l.push(y):He(y,"TYPE")=="MAP"&&(y.name="EXT-X-MAP",f=y):i.push(y)):/^#(?!EXT)/m.test(y)||(y=y.trim(),f&&i.push(f),n.push(new XT(y,i,l)),i=[],l=[]);return l.length&&(f&&i.push(f),n.push(new XT("",i,l))),new qT(t,r,n)}r.push(c),c.name=="EXT-X-STREAM-INF"&&(c.attributes.push(new m0("URI",f)),i=!0)}}return new qT(t,r)}function eS(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 lu(i);var l;(l=lr(i,/^([^,=]+)(?:,|$)/g))&&(r=l[1]);for(var c=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;l=lr(i,c);)n.push(new m0(l[1],l[2]||l[3])),Ro(i)}return new g0(e,t,n,r)}var JT="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(" "),wI="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 ZT(){}function $T(e,t){try{var n=v0(e);return mu({uri:e,originalUri:e,data:n.data,headers:{"content-type":n.contentType},originalRequest:t})}catch(i){return go(i)}}function v0(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=x.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=or(e):r=Br(e),{data:r,contentType:n}}Pe("shaka.net.DataUriPlugin",ZT),ZT.parse=$T,Cr("data",$T);function S0(){var e=this;this.g=this.h=null,this.G=1,this.A=new Map,this.K=new Map,this.B=new Map,this.B.set("video",new Map),this.B.set("audio",new Map),this.B.set(ut,new Map),this.B.set("image",new Map),this.$b=new Map().set("com.apple.streamingkeydelivery",function(t,n,i){return FI(e,t,n,i)}).set("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",function(t){var n=Qt(t,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(n)){var i="cenc";n=="SAMPLE-AES"&&(i="cbcs"),n=Qt(t,"URI"),n=v0(n.split("?")[0]),n=Ge(n.data),i=Oo("com.widevine.alpha",i,[{initDataType:"cenc",initData:n}]),(t=He(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=Qt(t,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(n)){var i="cenc";n=="SAMPLE-AES"&&(i="cbcs"),t=Qt(t,"URI"),t=v0(t.split("?")[0]),t=Ge(t.data),n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),n=Ko(t,n,new Set,0),i=Oo("com.microsoft.playready",i,[{initDataType:"cenc",initData:n}]),(t=uo(["<PLAYREADY>",ro(t),"</PLAYREADY>"].join(`
`)))&&(i.licenseServerUri=a0(t)),i=Promise.resolve(i)}else i=Promise.resolve(null);return i}).set("urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c",function(t){var n=Qt(t,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(n)){var i="cenc";n=="SAMPLE-AES"&&(i="cbcs"),n=Qt(t,"URI"),n=v0(n.split("?")[0]),n=Ge(n.data),i=Oo("com.huawei.wiseplay",i,[{initDataType:"cenc",initData:n}]),(t=He(t,"KEYID"))&&i.keyIds.add(t.toLowerCase().substr(2)),t=Promise.resolve(i)}else t=Promise.resolve(null);return t}),this.ab=new Set,this.i=new Map,this.l=null,this.F="",this.Ya=new SI,this.L=-1,this.ha=1/0,this.ba=this.qc=this.Za=!1,this.C=new dt(function(){if(e.U&&!e.g.continueLoadingWhenPaused&&(e.S.Ja(e.U,"timeupdate"),e.U.paused)){e.S.Aa(e.U,"timeupdate",function(){return wx(e)});return}wx(e)}),this.za=A0,this.m=null,this.Pa=0,this.o=1/0,this.Oa=this.Ka=this.P=0,this.W=new vu,this.H=new Map,this.I=new Map,this.ya=new Map,this.na=new Map,this.M=new Map,this.va=new Map,this.wa=new Map,this.bc=this.ka=!1,this.eb=new Ql(5),this.j=null,this.N=!0,this.S=new Mt,this.s=this.U=null,this.Zb=function(){return!1}}h=S0.prototype,h.configure=function(e,t){var n=this.h&&e.updatePeriod!=this.g.updatePeriod&&0<=e.updatePeriod;this.g=e,t&&(this.Zb=t),this.j&&this.j.configure(this.g),n&&this.m&&this.m.presentationTimeline.V()&&this.C.Jb()},h.start=function(e,t){var n=this,i;return G(function(r){return r.g==1?(n.h=t,n.ka=t.isLowLatencyMode(),_(r,aS(n,[e]).promise,2)):r.g!=3?(i=r.h,n.F=i.uri,_(r,EI(n,i.data),3)):r.return(n.m)})},h.stop=function(){this.C&&(this.C.stop(),this.C=null);var e=[];return this.W&&(e.push(this.W.destroy()),this.W=null),this.g=this.h=null,this.ab.clear(),this.m=null,this.i.clear(),this.K.clear(),this.I.clear(),this.A.clear(),this.ya.clear(),this.na.clear(),this.M.clear(),this.va.clear(),this.wa.clear(),this.j&&this.j.destroy(),this.S&&(this.S.release(),this.S=null),Promise.all(e)},h.update=function(){var e=this,t,n,i,r,l,c,f,y,m,w,T,I;return G(function(D){if(D.g==1){if(!Hi(e))return D.return();for(t=[],n=Array.from(e.i.values()),e.o=1/0,e.m.gapCount=0,i=n.filter(function(M){return M.stream.segmentIndex}),r=C(i),l=r.next();!l.done;l=r.next())c=l.value,t.push(TI(e,c));return _(D,Promise.all(t),2)}for(ux(e,i.map(function(M){return M.stream})),f=i.some(function(M){return M.Rd==0}),i.length&&!f&&(y=WI,x0(e,y.cj),m=i.map(function(M){return M.mc}),e.l.pb(Math.min.apply(Math,$(m))),e.h.updateDuration()),f&&nS(e),w=C(i),T=w.next();!T.done;T=w.next())I=T.value,I.stream.isAudioMuxedInVideo||!I.stream.segmentIndex||Si(I.stream.segmentIndex)||e.h.disableStream(I.stream);ce(D)})};function tS(e,t){return Hi(e)?e.B.get(t.type):t.jf}function TI(e,t){var n,i,r,l,c,f,y,m,w,T,I,D,M,L,P,j,V,K,q,Q,z,X,W,J,ne,te,ee,ge,fe,le,pe,Ee,Ce,Be,Le,kt;return G(function(xt){switch(xt.g){case 1:if(t.stream.isAudioMuxedInVideo)return xt.return();for(n=[],i=C(t.O()),r=i.next();!r.done;r=i.next())l=r.value,c=new dn(l),f=c.g,t.Me&&(0<=t.Sb&&f.add("_HLS_msn",String(t.Sb)),0<=t.Tb&&f.add("_HLS_part",String(t.Tb))),t.Ne&&f.add("_HLS_skip","YES"),Sg(f)&&eu(c,tu(f.toString())),n.push(c.toString());return he(xt,2),_(xt,aS(e,n,!0).promise,4);case 4:y=xt.h,_e(xt,3);break;case 2:throw m=De(xt),e.h&&e.h.disableStream(t.stream),m;case 3:if(!t.stream.segmentIndex)return xt.return();if(w=$1(e.Ya,y.data),w.type!=1)throw new Y(2,4,4017);return T=y.uri,T==y.originalUri||t.O().includes(T)||t.zf.push(T),I=Ao(w.aa,"EXT-X-DEFINE"),D=iS(e,I,T),M=t.stream,L=tS(e,t),_(xt,fx(e,w,M.mimeType,t.O,D),5);case 5:for(P=xt.h,j=P.keyIds,V=P.drmInfos,K=P.encrypted,q=P.Hh,M.encrypted||!K||q||(M.encrypted=!0),Q=function(Kt,st){return Kt.size===st.size&&[].concat($(Kt)).every(function(tt){return st.has(tt)})},Q(M.keyIds,j)||(M.keyIds=j,M.drmInfos=V,e.h.newDrmInfo(M)),z=mx(e,w,L,D,t.O,t.type),X=z.segments,(W=z.bandwidth)&&(M.bandwidth=W),J=Kd(M),ne=C(X),te=ne.next();!te.done;te=ne.next())ee=te.value,ee.Y&&(ee.Y.rd=J);M.segmentIndex.Yd(X,e.l.Gb()),X.length&&(ge=xp(w.aa,"EXT-X-MEDIA-SEQUENCE",0),le=(fe=hi(w.aa,"EXT-X-SKIP"))?Number(He(fe,"SKIPPED-SEGMENTS")):0,pe=sx(ge,X),Ee=pe.Sb,Ce=pe.Tb,t.Sb=Ee+le,t.Tb=Ce,Be=
`),L={};M=C(M);for(var P=M.next();!P.done;P=M.next())P=P.value.split(": "),L[P[0].toLowerCase()]=P.slice(1).join(": ");I=L,r(I)}},c.onload=function(M){var L=c.response;try{i(Date.now()-f,M.loaded-y,0);var P=Cx(I,L,c.status,e,c.responseURL,t,n);w(P)}catch(j){T(j)}},c.onerror=function(M){T(new Y(1,1,1002,e,M,n))},c.ontimeout=function(){T(new Y(1,1,1003,e,n))},c.onprogress=function(M){var L=Date.now(),P=l.minBytesForProgressEvents||0,j=M.loaded-y;(100<L-f&&j>=P||M.lengthComputable&&M.loaded==M.total)&&(i(L-f,j,c.readyState==4?0:M.total-M.loaded),y=M.loaded,f=L)};for(var D in t.headers)c.setRequestHeader(D.toLowerCase(),t.headers[D]);c.send(t.body)});return new vn(m,function(){return c.abort(),Promise.resolve()})}Pe("shaka.net.HttpXHRPlugin",Ix),Ix.parse=k0;var fk=x.XMLHttpRequest;Cr("http",k0,1,!0),Cr("https",k0,1,!0),Cr("blob",k0,1,!0);function kx(e,t,n,i,r){this.g=e,this.i=t,this.groupId=n,this.h=i,this.j=r}function hS(e){var t=e.Yb(!1);return t?ro(t):e.O().map(function(n){return"{"+encodeURI(n.split("#xywh=")[0])+"}"}).join("")+":"+e.startByte+":"+e.endByte}function dk(e,t){return ec(e.g.O(),e.g.startByte,e.g.endByte,t.streaming.retryParameters)}function Dx(){this.g=this.j=this.i=0,this.h=new Map,this.l=0}function Ox(e,t){e.i+=t;var n=e.l;return e.l++,e.h.set(n,t),n}Dx.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 Rx(e){return e.i==0?0:e.j/e.i}function yS(e){var t=this;this.s=e,this.i=new Map,this.h=new Su(function(){return gS(t).catch(function(){})}),this.j=[],this.o=function(){},this.m=function(){},this.g=new Dx,this.l=!1}yS.prototype.destroy=function(){return this.h.destroy()};function pk(e,t,n){e.o=t,e.m=n}function gS(e){e.l=!0;var t=e.j.map(function(n){return n()});return e.j=[],Promise.all(t)}yS.prototype.queue=function(e,t,n,i,r){var l=this;Pt(this.h);var c=(this.i.get(e)||Promise.resolve()).then(function(){var f,y,m,w,T,I,D;return G(function(M){if(M.g==1)return _(M,gk(l,t),2);if(f=M.h,l.h.g)throw new Y(2,9,7001);if(i)for(w in y=Ge(f),m=new xu(y),m.data)T=Number(w),I=m.data[T],D=m.g[T],l.m(I,D);return l.g.close(n,f.byteLength),l.o(Rx(l.g),l.g.g),M.return(r(f))})});return this.i.set(e,c),c};function hk(e,t,n,i,r,l){Pt(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=Ge(n);f=new xu(f);for(var y in f.data){var m=Number(y);e.m(f.data[m],f.g[m])}}return e.g.close(i,n.byteLength),e.o(Rx(e.g),e.g.g),l(n)});e.i.set(t,c)}function yk(e){return G(function(t){return t.g==1?_(t,Promise.all(e.i.values()),2):t.return(e.g.g)})}function gk(e,t){var n,i,r,l;return G(function(c){return c.g==1?(n=br,i=e.s.request(n,t),r=function(){return i.abort()},e.j.push(r),_(c,i.promise,2)):(l=c.h,Sr(e.j,r),c.return(l.data))})}function D0(e,t){var n=this;this.i=e,this.h=e.objectStore(t),this.g=new ct,e.onabort=function(i){i.preventDefault(),n.g.reject()},e.onerror=function(i){i.preventDefault(),n.g.reject()},e.oncomplete=function(){n.g.resolve()}}D0.prototype.abort=function(){var e=this;return G(function(t){if(t.g==1){try{e.i.abort()}catch{}return he(t,2),_(t,e.g,4)}if(t.g!=2)return _e(t,0);De(t),ce(t)})};function mS(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,_(c,t(l.key,l.value,l),2));l.continue(),ce(c)})}})}D0.prototype.store=function(){return this.h},D0.prototype.promise=function(){return this.g};function vS(e){this.h=e,this.g=[]}vS.prototype.destroy=function(){return Promise.all(this.g.map(function(e){return e.abort()}))};function Of(e,t){return O0(e,t,"readwrite")}function O0(e,t,n){n=e.h.transaction([t],n);var i=new D0(n,t);return e.g.push(i),i.promise().then(function(){Sr(e.g,i)},function(){Sr(e.g,i)}),i}function Rf(e,t,n){this.h=new vS(e),this.i=t,this.g=n}h=Rf.prototype,h.destroy=function(){return this.h.destroy()},h.hasFixedKeySpace=function(){return!0},h.addSegments=function(){return Mx(this.i)},h.removeSegments=function(e,t){return Nx(this,this.i,e,t)},h.getSegments=function
`}),y=ao(l,"style"),l=ao(l,"region"),m=[];for(var D=C(l),M=D.next();!M.done;M=D.next())(M=BD(M.value,y,I))&&m.push(M);if(Rt(r,"p").length)throw new Y(2,2,2001,"<p> can only be inside <div> in TTML");for(I=C(Rt(r,"div")),D=I.next();!D.done;D=I.next())if(Rt(D.value,"span").length)throw new Y(2,2,2001,"<span> can only be inside <p> in TTML");return(t=FE(r,t,c,f,y,l,m,T,w,null,!1,n,i))&&(t.backgroundColor||(t.backgroundColor="transparent"),e.push(t)),e};function FE(e,t,n,i,r,l,c,f,y,m,w,T,I){var D=m;if(fs(e)){if(!w)return null;var M={tagName:"span",children:[Cn(e)],attributes:{},parent:null}}else M=e;for(var L=null,P=C(eA),j=P.next();!j.done&&!(L=F0(M,"backgroundImage",i,"#",j.value)[0]);j=P.next());P=null,j=No(M,eA,"backgroundImage");var V=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/;if(j&&V.test(j)){if(P=parseInt(j.split(":").pop(),10)-1,P>=I.length)return null;P=I[P]}else T&&j&&!j.startsWith("#")&&(V=new dn(T),j=new dn(j),(j=V.resolve(j).toString())&&(P=j));if((e.tagName=="p"||L||P)&&(w=!0),e=w,j=(M.attributes["xml:space"]||(f?"default":"preserve"))=="default",V=M.children.every(fs),f=[],!V)for(var K=C(M.children),q=K.next();!q.done;q=K.next())(q=FE(q.value,t,n,i,r,l,c,j,y,M,w,T,I))&&f.push(q);if(i=m!=null,T=Cn(M),T=M.children.length&&T&&/\S/.test(T),K=M.attributes.begin||M.attributes.end||M.attributes.dur,!(K||T||M.tagName=="br"||f.length!=0||i&&!j))return null;for(I=XE(M,n),T=I.start,I=I.end;D&&D.tagName&&D.tagName!="tt";)I=HD(D,n,T,I),T=I.start,I=I.end,D=D.parent;if(T==null&&(T=0),T+=t.periodStart,I=I==null?1/0:I+t.periodStart,T=Math.max(T,t.segmentStart),I=Math.min(I,t.segmentEnd),!K&&0<f.length)for(T=1/0,I=0,t=C(f),n=t.next();!n.done;n=t.next())n=n.value,T=Math.min(T,n.startTime),I=Math.max(I,n.endTime);if(M.tagName=="br")return r=new Zt(T,I,""),r.lineBreak=!0,r;if(t="",V&&(t=Oi(Cn(M)||""),j&&(t=t.replace(/\s+/g," "))),t=new Zt(T,I,t),t.nestedCues=f,w||(t.isContainer=!0),y&&(t.cellResolution=y),y=F0(M,"region",l,"")[0],M.attributes.region&&y&&y.attributes["xml:id"]){var Q=y.attributes["xml:id"];t.region=c.filter(function(z){return z.id==Q})[0]}return c=y,m&&i&&!M.attributes.region&&!M.attributes.style&&(c=F0(m,"region",l,"")[0]),VD(t,M,c,L,P,r,e,f.length==0),t}function BD(e,t,n){var i=new Kr,r=e.attributes["xml:id"];if(!r)return null;i.id=r,r=null,n&&(r=qS.exec(n)||zS.exec(n)),n=r?Number(r[1]):null,r=r?Number(r[2]):null;var l,c=G0(e,t,"extent");if(c){var f=(l=qS.exec(c))||zS.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?$n:0,i.heightUnits=l||r!=null?$n:0)}return(e=G0(e,t,"origin"))&&(f=(l=qS.exec(e))||zS.exec(e),f!=null&&(i.viewportAnchorX=Number(f[1]),i.viewportAnchorY=Number(f[2]),l?c||(i.width=100-i.viewportAnchorX,i.widthUnits=$n,i.height=100-i.viewportAnchorY,i.heightUnits=$n):(r!=null&&(i.viewportAnchorY=100*i.viewportAnchorY/r),n!=null&&(i.viewportAnchorX=100*i.viewportAnchorX/n)),i.viewportAnchorUnits=l||n!=null?$n:0)),i}function HS(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 VD(e,t,n,i,r,l,c,f){if(c=c||f,ki(t,n,l,"direction",c)=="rtl"&&(e.direction="rtl"),f=ki(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=Mc),(f=ki(t,n,l,"textAlign",!0))?(e.positionAlign=zD.get(f),e.lineAlign=qD.get(f),e.textAlign=td[f.toUpperCase()]):e.textAlign=co,(f=ki(t,n,l,"displayAlign",!0))&&(e.displayAlign=bg[f.toUpperCase()]),(f=ki(t,n,l,"color",c))&&(e.color=HS(f)),(f=ki(t,n,l,"backgroundColor",c))&&(e.backgroundColor=HS(f)),(f=ki(t,n,l,"border",c))&&(e.border=f),f=ki(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=oa(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=C(n[0].split(`
`)),r=i.next();!r.done;r=i.next())if(r=r.value,/^Region:/.test(r)){r=new lu(r);var l=new Kr;gl(r),Ro(r);for(var c=gl(r);c;){var f=l,y=c;(c=/^id=(.*)$/.exec(y))?f.id=c[1]:(c=/^width=(\d{1,2}|100)%$/.exec(y))?f.width=Number(c[1]):(c=/^lines=(\d+)$/.exec(y))?(f.height=Number(c[1]),f.heightUnits=2):(c=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(y))?(f.regionAnchorX=Number(c[1]),f.regionAnchorY=Number(c[2])):(c=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(y))?(f.viewportAnchorX=Number(c[1]),f.viewportAnchorY=Number(c[2])):/^scroll=up$/.exec(y)&&(f.scroll="up"),Ro(r),c=gl(r)}t.push(l)}for(i=new Map,ys(i),r=[],n=C(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,y=1;y<l.length;y++)l[y].includes("::cue")&&(f.push([]),c=f.length-1),c!=-1&&(f[c].push(l[y]),l[y].includes("}")&&(c=-1));for(f=C(f),c=f.next();!c.done;c=f.next()){var m=c.value;c="global",(y=m[0].match(/\((.*)\)/))&&(c=y.pop()),y=m.slice(1,-1),m[0].includes("}")&&(m=/\{(.*?)\}/.exec(m[0]))&&(y=m[1].split(";")),(m=i.get(c))||(m=new Zt(0,0,""));for(var w=!1,T=0;T<y.length;T++){var I=/^\s*([^:]+):\s*(.*)/.exec(y[T]);if(I){var D=I[2].trim().replace(";","");switch(I[1].trim()){case"background-color":case"background":w=!0,m.backgroundColor=D;break;case"color":w=!0,m.color=D;break;case"font-family":w=!0,m.fontFamily=D;break;case"font-size":w=!0,m.fontSize=D;break;case"font-weight":(700<=parseInt(D,10)||D=="bold")&&(w=!0,m.fontWeight=sa);break;case"font-style":switch(D){case"normal":w=!0,m.fontStyle=nd;break;case"italic":w=!0,m.fontStyle=cu;break;case"oblique":w=!0,m.fontStyle="oblique"}break;case"opacity":w=!0,m.opacity=parseFloat(D);break;case"text-combine-upright":w=!0,m.textCombineUpright=D;break;case"text-shadow":w=!0,m.textShadow=D;break;case"white-space":w=!0,m.wrapLine=D!="noWrap"}}}w&&i.set(c,m)}}if(m=l,w=e,m.length==1&&!m[0]||/^NOTE($|[ \t])/.test(m[0])||m[0]=="STYLE"||m[0]=="REGION")l=null;else if(l=null,m[0].includes("-->")||(l=m[0],m.splice(0,1)),f=new lu(m[0]),c=uu(f),T=lr(f,/[ \t]+--\x3e[ \t]+/g),y=uu(f),c==null||T==null||y==null)Ct("Failed to parse VTT time code. Cue skipped:",l,m),l=null;else{for(c+=w,y+=w,w=m.slice(1).join(`
`).trim(),i.has("global")?(m=i.get("global").clone(),m.startTime=c,m.endTime=y,m.payload=w):m=new Zt(c,y,w),Ro(f),c=gl(f);c;)tA(m,c,t),Ro(f),c=gl(f);hs(m,i),l!=null&&(m.id=l),l=m}l&&r.push(l)}return r};function tA(e,t,n){var i;(i=/^align:(start|middle|center|end|left|right)$/.exec(t))?(t=i[1],t=="middle"?e.textAlign=co:e.textAlign=td[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":Rc)):(i=/^region:(.*)$/.exec(t))?(t=XD(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=aa[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.lineInterpretation=ms,e.line=Number(n[1]),n[2]&&(e.lineAlign=aa[n[2].toUpperCase()]))}function XD(e,t){return e=e.filter(function(n){return n.id==t}),e.length?e[0]:null}Pe("shaka.text.VttTextParser",er),er.prototype.parseMedia=er.prototype.parseMedia,er.prototype.setManifestType=er.prototype.setManifestType,er.prototype.setSequenceMode=er.prototype.setSequenceMode,er.prototype.parseInit=er.prototype.parseInit,Hn("text/vtt",function(){return new er}),Hn('text/vtt; codecs="vtt"',function(){return new er}),Hn('text/vtt; codecs="wvtt"',function(){return new er});function Qr(){this.g=null}Qr.prototype.parseInit=function(e){var t=this,n=!1;if(new Ut().box("moov",nt).box("trak",nt).box("mdia",nt).R("mdhd",function(i){i=Jc(i.reader,i.version),t.g=i.timescale}).box("minf",nt).box("stbl",nt).R("stsd",Gr).box("wvtt",function(){n=!0}).parse(e),!this.g)throw new Y(2,2,2008);if(!n)throw new Y(2,2,2008)},Qr.prototype.setSequenceMode=function(){},Qr.prototype.setManifestType=function(){},Qr.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,y=!1,m=null;if(new Ut().box("moof",nt).box("traf",nt).R("tfdt",function(K){c=!0,n=Qc(K.reader,K.version).baseMediaDecodeTime}).R("tfhd",function(K){m=Us(K.reader,K.flags).Md}).R("trun",function(K){f=!0,i=Td(K.reader,K.version,K.flags).gh}).box("mdat",Tu(function(K){y=!0,r=K})).parse(e,!1),!y&&!c&&!f)throw new Y(2,2,2008);e=n;for(var w=new Bt(r,0),T=C(i),I=T.next();!I.done;I=T.next()){I=I.value;var D=I.hh||m,M=I.Bf?n+I.Bf:e;e=M+(D||0);var L=0;do{var P=w.T();L+=P;var j=w.T(),V=null;Lt(j)=="vttc"?8<P&&(V=w.Ub(P-8)):w.skip(P-8),D&&V&&(P=YD(V,t.periodStart+M/this.g,t.periodStart+e/this.g),l.push(P))}while(I.sampleSize&&L<I.sampleSize)}return l.filter(xl)};function YD(e,t,n){var i,r,l;return new Ut().box("payl",Tu(function(c){i=ln(c)})).box("iden",Tu(function(c){r=ln(c)})).box("sttg",Tu(function(c){l=ln(c)})).parse(e),i?WD(i,r,l,t,n):null}function WD(e,t,n,i,r){if(e=new Zt(i,r,e),hs(e),t&&(e.id=t),n)for(t=new lu(n),n=gl(t);n;)tA(e,n,[]),Ro(t),n=gl(t);return e}Pe("shaka.text.Mp4VttParser",Qr),Qr.prototype.parseMedia=Qr.prototype.parseMedia,Qr.prototype.setManifestType=Qr.prototype.setManifestType,Qr.prototype.setSequenceMode=Qr.prototype.setSequenceMode,Qr.prototype.parseInit=Qr.prototype.parseInit,Hn('application/mp4; codecs="wvtt"',function(){return new Qr});function Jr(){}Jr.prototype.parseInit=function(){},Jr.prototype.setSequenceMode=function(){},Jr.prototype.setManifestType=function(){},Jr.prototype.parseMedia=function(e){var t=ln(e).replace(/\r+/g,"");if(t=t.trim(),e=[],t=="")return e;t=C(t.split(`
`));for(var n=t.next();!n.done;n=t.next()){n=n.value.split(`
`);var i=new lu(n[0]),r=uu(i),l=lr(i,/,/g);if(i=uu(i),r==null||l==null||i==null)throw new Y(2,2,2001,"Could not parse cue time range in SubViewer");e.push(new Zt(r,i,n.slice(1).join(`
`).trim()))}return e},Pe("shaka.text.SbvTextParser",Jr),Jr.prototype.parseMedia=Jr.prototype.parseMedia,Jr.prototype.setManifestType=Jr.prototype.setManifestType,Jr.prototype.setSequenceMode=Jr.prototype.setSequenceMode,Jr.prototype.parseInit=Jr.prototype.parseInit,Hn("text/x-subviewer",function(){return new Jr});function Ur(){this.g=new er}Ur.prototype.parseInit=function(){},Ur.prototype.setSequenceMode=function(){},Ur.prototype.setManifestType=function(){},Ur.prototype.parseMedia=function(e,t,n){return e=ln(e),e=nA(e),e=Ge(Br(e)),this.g.parseMedia(e,t,n,[])};function nA(e){var t=`WEBVTT
`;if(e=="")return t;e=e.replace(/\r+/g,""),e=e.trim(),e=C(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}Pe("shaka.text.SrtTextParser",Ur),Ur.srt2webvtt=nA,Ur.prototype.parseMedia=Ur.prototype.parseMedia,Ur.prototype.setManifestType=Ur.prototype.setManifestType,Ur.prototype.setSequenceMode=Ur.prototype.setSequenceMode,Ur.prototype.parseInit=Ur.prototype.parseInit,Hn("text/srt",function(){return new Ur});function Zr(){}Zr.prototype.parseInit=function(){},Zr.prototype.setSequenceMode=function(){},Zr.prototype.setManifestType=function(){},Zr.prototype.parseMedia=function(e){var t="",n="",i=null,r=null;for(r=ln(e).split(/\r?\n\s*\r?\n/),e=C(r),r=e.next();!r.done;r=e.next()){var l=r.value;r=l,(l=JD.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=C(t.split(/\r?\n/)),e=t.next();!e.done;e=t.next())if(e=e.value,!/^\s*;/.test(e)&&(l=oA.exec(e))){if(e=l[1].trim(),l=l[2].trim(),e=="Format")r=l.split(z0);else if(e=="Style"){e=l.split(z0),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=C(n.split(/\r?\n/)),l=n.next(),e={};!l.done;e={Qi:void 0},l=n.next())if(l=l.value,!/^\s*;/.test(l)&&(c=oA.exec(l))){if(l=c[1].trim(),c=c[2].trim(),l=="Format")t=c.split(z0);else if(l=="Dialogue"){c=c.split(z0),l={};for(var f=0;f<t.length&&f<c.length;f++)l[t[f]]=c[f];f=rA(l.Start);var y=rA(l.End);c=new Zt(f,y,c.slice(t.length-1).join(",").replace(/\\N/g,`
`).replace(/\{[^}]+\}/g,"")),e.Qi=l.Style,(e=i.find(function(m){return function(w){return w.Name==m.Qi}}(e)))&&QD(c,e),r.push(c)}}return r};function QD(e,t){var n=t.Fontname;if(n&&(e.fontFamily=n),(n=t.Fontsize)&&(e.fontSize=n+"px"),(n=t.PrimaryColour)&&(n=iA(n))&&(e.color=n),(n=t.BackColour)&&(n=iA(n))&&(e.backgroundColor=n),t.Bold&&(e.fontWeight=sa),t.Italic&&(e.fontStyle=cu),t.Underline&&e.textDecoration.push(Lo),(n=t.Spacing)&&(e.letterSpacing=n+"px"),n=t.Alignment)switch(parseInt(n,10)){case 1:e.displayAlign=Po,e.textAlign="start";break;case 2:e.displayAlign=Po,e.textAlign=co;break;case 3:e.displayAlign=Po,e.textAlign="end";break;case 5:e.displayAlign="before",e.textAlign="start";break;case 6:e.displayAlign="before",e.textAlign=co;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=co;break;case 11:e.displayAlign="center",e.textAlign="end"}(t=t.AlphaLevel)&&(e.opacity=parseFloat(t))}function iA(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 rA(e){return e=ZD.exec(e),3600*(e[1]?parseInt(e[1].replace(":",""),10):0)+60*parseInt(e[2],10)+parseFloat(e[3])}Pe("shaka.text.SsaTextParser",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;var JD=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,oA=/^\s*([^:]+):\s*(.*)/,z0=/\s*,\s*/,ZD=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;Hn("text/x-ssa",function(){return new Zr});function lA(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,qa:e}:null}function uA(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 aA(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 $D(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 $r(e){this.j=e,this.h=0,this.g=new Map,this.i=null}h=$r.prototype,h.destroy=function(){this.g.clear()},h.isSupported=function(e){return e.toLowerCase().split(";")[0]=="audio/aac"?ai(this.convertCodecs("audio",e)):!1},h.convertCodecs=function(e,t){return t.toLowerCase().split(";")[0]=="audio/aac"?'audio/mp4; codecs="'+(xi(t)||"mp4a.40.2")+'"':t},h.getOriginalMimeType=function(){return this.j},h.transmux=function(e,t,n,i){for(var r=Ge(e),l=Du(r),c=l.length;c<r.length&&!aA(r,c);c++);if(e=1e3*n.endTime,l=_l(l),l.length&&n&&(l=l.find(function(w){return w.description==="com.apple.streaming.transportStreamTimestamp"}))&&(e=l.data),l=uA(r,c),!l)return Promise.reject(new Y(2,3,3018,n?n.O()[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 eo(e){this.h=e,(this.g=K1.get("ISOBoxer")())&&p4(this)}function p4(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]!==h4[i]&&(n=!1);n&&(this._parsing&&(this.type="sepiff"),t.call(this))})}h=eo.prototype,h.destroy=function(){},h.isSupported=function(e,t){var n=e.startsWith("mss/");return!this.g||!n?!1:t?ai(this.convertCodecs(t,e)):(t=this.convertCodecs("audio",e),e=this.convertCodecs("video",e),ai(t)||ai(e))},h.convertCodecs=function(e,t){return t.replace("mss/","")},h.getOriginalMimeType=function(){return this.h},h.transmux=function(e,t,n){if(!n)return Promise.resolve(Ge(e));if(!t.mssPrivateData)return Promise.reject(new Y(2,3,3020,n?n.O()[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 y=r.fetch("trun"),m=r.fetch("tfxd");m&&m._parent.boxes.splice(m._parent.boxes.indexOf(m),1);var w=r.fetch("tfrf");w&&w._parent.boxes.splice(w._parent.boxes.indexOf(w),1);var T=r.fetch("sepiff");if(T!==null){T.type="senc",T.usertype=void 0;var I=r.fetch("saio");if(I===null){I=this.g.createFullBox("saio",f),I.version=0,I.flags=0,I.entry_count=1,I.offset=[0];var D=this.g.createFullBox("saiz",f);if(D.version=0,D.flags=0,D.sample_count=T.sample_count,D.default_sample_info_size=0,D.sample_info_size=[],T.flags&2)for(i=0;i<T.sample_count;i+=1)D.sample_info_size[i]=10+6*T.entry[i].NumberOfEntries;else D.default_sample_info_size=8}}l.flags&=16777214,l.flags|=131072,y.flags|=1;var M=r.fetch("moof");y.data_offset=M.getLength()+8;var L=r.fetch("saio");L!==null&&(L.offset[0]=pA(M,"traf")+pA(f,"senc")+16);var P=Ge(r.write());return Promise.resolve(P)}catch(j){return j instanceof Y?Promise.reject(j):Promise.reject(new Y(2,3,3022,n?n.O()[0]:null))}};function pA(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}Pe("shaka.transmuxer.MssTransmuxer",eo),eo.prototype.transmux=eo.prototype.transmux,eo.prototype.getOriginalMimeType=eo.prototype.getOriginalMimeType,eo.prototype.convertCodecs=eo.prototype.convertCodecs,eo.prototype.isSupported=eo.prototype.isSupported,eo.prototype.destroy=eo.prototype.destroy;var h4=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);Tl("mss/audio/mp4",function(){return new eo("mss/audio/mp4")},fu),Tl("mss/video/mp4",function(){return new eo("mss/video/mp4")},fu);function Do(e){this.m=e,this.g=0,this.j=new Map,this.l=this.i=this.h=null}h=Do.prototype,h.destroy=function(){this.j.clear(),this.i&&this.i.destroy()},h.isSupported=function(e,t){if(e.toLowerCase().split(";")[0]!="video/mp2t")return!1;var n=e;t&&(n=this.convertCodecs(t,e));var i=xi(n).split(",");return n=Ri
`).map(Ne=>Ne.trim()),me=x.split(`
`).map(Ne=>Ne.trim());if(oe.length!==me.length){console.error("The number of KIDs and Keys must be the same.");return}const Ve=new YA.Player(s.current),ue={drm:{clearKeys:{}}};oe.forEach((Ne,Re)=>{ue.drm.clearKeys[Ne]=me[Re]}),console.log("Configuring player with the following DRM config and headers:",ue),Ve.configure(ue),Ve.load(A).then(()=>{console.log("Video loaded")}).catch(Ne=>{console.error("Error loading the video",Ne)})}else console.error("MPD URL, KIDs, and Keys are required.")};return Se.useEffect(()=>{C()},[]),Se.useEffect(()=>{document.title="Test player | CDRM-Project"},[]),re.jsx("div",{className:"flex flex-col items-center w-full p-4",children:re.jsxs("div",{className:"w-full flex flex-col",children:[re.jsx("video",{ref:s,width:"100%",height:"auto",controls:!0,className:"h-96"}),re.jsx("input",{type:"text",value:A,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"}),re.jsx("textarea",{placeholder:"KIDs (one per line)",value:R,onChange:v,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"}),re.jsx("textarea",{placeholder:"Keys (one per line)",value:x,onChange:N,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"}),re.jsx("textarea",{placeholder:"Headers (one per line)",value:O,onChange:Z,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"}),re.jsx("button",{onClick:$,className:"mt-4 p-2 bg-blue-500 text-white rounded",children:"Submit"})]})})}const bC="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",IC="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",kC="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
`).forEach(function(O){x=O.indexOf(":"),R=O.substring(0,x).trim().toLowerCase(),S=O.substring(x+1).trim(),!(!R||b[R]&&MM[R])&&(R==="set-cookie"?b[R]?b[R].push(S):b[R]=[S]:b[R]=b[R]?b[R]+", "+S:S)}),b},$A=Symbol("internals");function og(A){return A&&String(A).trim().toLowerCase()}function uv(A){return A===!1||A==null?A:Ae.isArray(A)?A.map(uv):String(A)}function PM(A){const b=Object.create(null),R=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let S;for(;S=R.exec(A);)b[S[1]]=S[2];return b}const LM=A=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(A.trim());function m2(A,b,R,S,x){if(Ae.isFunction(S))return S.call(this,b,R);if(x&&(b=R),!!Ae.isString(b)){if(Ae.isString(S))return b.indexOf(S)!==-1;if(Ae.isRegExp(S))return S.test(b)}}function _M(A){return A.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(b,R,S)=>R.toUpperCase()+S)}function UM(A,b){const R=Ae.toCamelCase(" "+b);["get","set","has"].forEach(S=>{Object.defineProperty(A,S+R,{value:function(x,U,O){return this[S].call(this,b,x,U,O)},configurable:!0})})}let no=class{constructor(b){b&&this.set(b)}set(b,R,S){const x=this;function U(h,s,u){const p=og(s);if(!p)throw new Error("header name must be a non-empty string");const v=Ae.findKey(x,p);(!v||x[v]===void 0||u===!0||u===void 0&&x[v]!==!1)&&(x[v||s]=uv(h))}const O=(h,s)=>Ae.forEach(h,(u,p)=>U(u,p,s));if(Ae.isPlainObject(b)||b instanceof this.constructor)O(b,R);else if(Ae.isString(b)&&(b=b.trim())&&!LM(b))O(NM(b),R);else if(Ae.isObject(b)&&Ae.isIterable(b)){let h={},s,u;for(const p of b){if(!Ae.isArray(p))throw TypeError("Object iterator must return a key-value pair");h[u=p[0]]=(s=h[u])?Ae.isArray(s)?[...s,p[1]]:[s,p[1]]:p[1]}O(h,R)}else b!=null&&U(R,b,S);return this}get(b,R){if(b=og(b),b){const S=Ae.findKey(this,b);if(S){const x=this[S];if(!R)return x;if(R===!0)return PM(x);if(Ae.isFunction(R))return R.call(this,x,S);if(Ae.isRegExp(R))return R.exec(x);throw new TypeError("parser must be boolean|regexp|function")}}}has(b,R){if(b=og(b),b){const S=Ae.findKey(this,b);return!!(S&&this[S]!==void 0&&(!R||m2(this,this[S],S,R)))}return!1}delete(b,R){const S=this;let x=!1;function U(O){if(O=og(O),O){const h=Ae.findKey(S,O);h&&(!R||m2(S,S[h],h,R))&&(delete S[h],x=!0)}}return Ae.isArray(b)?b.forEach(U):U(b),x}clear(b){const R=Object.keys(this);let S=R.length,x=!1;for(;S--;){const U=R[S];(!b||m2(this,this[U],U,b,!0))&&(delete this[U],x=!0)}return x}normalize(b){const R=this,S={};return Ae.forEach(this,(x,U)=>{const O=Ae.findKey(S,U);if(O){R[O]=uv(x),delete R[U];return}const h=b?_M(U):String(U).trim();h!==U&&delete R[U],R[h]=uv(x),S[h]=!0}),this}concat(...b){return this.constructor.concat(this,...b)}toJSON(b){const R=Object.create(null);return Ae.forEach(this,(S,x)=>{S!=null&&S!==!1&&(R[x]=b&&Ae.isArray(S)?S.join(", "):S)}),R}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([b,R])=>b+": "+R).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(b){return b instanceof this?b:new this(b)}static concat(b,...R){const S=new this(b);return R.forEach(x=>S.set(x)),S}static accessor(b){const S=(this[$A]=this[$A]={accessors:{}}).accessors,x=this.prototype;function U(O){const h=og(O);S[h]||(UM(x,O),S[h]=!0)}return Ae.isArray(b)?b.forEach(U):U(b),this}};no.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ae.reduceDescriptors(no.prototype,({value:A},b)=>{let R=b[0].toUpperCase()+b.slice(1);return{get:()=>A,set(S){this[R]=S}}});Ae.freezeMethods(no);function v2(A,b){const R=this||hg,S=b||R,x=no.from(S.headers);let U=S.data;return Ae.forEach(A,function(h){U=h.call(R,U,x.normalize(),b?b.status:void 0)}),x.normalize(),U}function WC(A){return!!(A&&A.__CANCEL__)}function _p(A,b,R){jt.call(this,A??"canceled",jt.ERR_CANCELED,b,R),this.name="CanceledError"}Ae.inherits(_p,jt,{__CANCEL__:!0});function QC(A,b,R){const S=R.config.validateStatus;!R.status||!S||S(R.status)?A(R):b(new jt("Request failed with status code "+R.status,[jt.ERR_BAD_REQUEST,jt.ERR_BAD_RESPONSE][Math.floor(R.status/100)-4],R.config,R.request,R))}function jM(A){const b=/^([-+\w]{1,25})(:?\/\/|:)/.exec(A);return b&&b[1]||""}function BM(A,b){A=A||10;const R=new Array(A),S=new Array(A);let x=0,U=0,O;return b=b!==void 0?b:1e3,function(s){const u=Date.now(),p=S[U];O||(O=u),R[x]=s,S[x]=u;let v=U,N=0;for(;v!==x;)N+=R[v++],v=v%A;if(x=(x+1)%A,x===U&&(U=(U+1)%A),u-O<b)return;const Z=p&&u-p;return Z?Math.round(N*1e3/Z):void 0}}function VM(A,b){let R=0,S=1e3/b,x,U;const O=(u,p=Date.now())=>{R=p,x=null,U&&(clearTimeout(U),U=null),A.apply(null,u)};return[(...u)=>{const p=Date.now(),v=p-R;v>=S?O(u,p):(x=u,U||(U=setTimeout(()=>{U=null,O(x)},S-v)))},()=>x&&O(x)]}const cv=(A,b,R=3)=>{let S=0;const x=BM(50,250);return VM(U=>{const O=U.loaded,h=U.lengthComputable?U.total:void 0,s=O-S,u=x(s),p=O<=h;S=O;const v={loaded:O,total:h,progress:h?O/h:void 0,bytes:s,rate:u||void 0,estimated:u&&h&&p?(h-O)/u:void 0,event:U,lengthComputable:h!=null,[b?"download":"upload"]:!0};A(v)},R)},eC=(A,b)=>{const R=A!=null;return[S=>b[0]({lengthComputable:R,total:A,loaded:S}),b[1]]},tC=A=>(...b)=>Ae.asap(()=>A(...b)),HM=hr.hasStandardBrowserEnv?((A,b)=>R=>(R=new URL(R,hr.origin),A.protocol===R.protocol&&A.host===R.host&&(b||A.port===R.port)))(new URL(hr.origin),hr.navigator&&/(msie|trident)/i.test(hr.navigator.userAgent)):()=>!0,KM=hr.hasStandardBrowserEnv?{write(A,b,R,S,x,U){const O=[A+"="+encodeURIComponent(b)];Ae.isNumber(R)&&O.push("expires="+new Date(R).toGMTString()),Ae.isString(S)&&O.push("path="+S),Ae.isString(x)&&O.push("domain="+x),U===!0&&O.push("secure"),document.cookie=O.join("; ")},read(A){const b=document.cookie.match(new RegExp("(^|;\\s*)("+A+")=([^;]*)"));return b?decodeURIComponent(b[3]):null},remove(A){this.write(A,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function GM(A){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(A)}function FM(A,b){return b?A.replace(/\/?\/$/,"")+"/"+b.replace(/^\/+/,""):A}function JC(A,b,R){let S=!GM(b);return A&&(S||R==!1)?FM(A,b):b}const nC=A=>A instanceof no?{...A}:A;function Lf(A,b){b=b||{};const R={};function S(u,p,v,N){return Ae.isPlainObject(u)&&Ae.isPlainObject(p)?Ae.merge.call({caseless:N},u,p):Ae.isPlainObject(p)?Ae.merge({},p):Ae.isArray(p)?p.slice():p}function x(u,p,v,N){if(Ae.isUndefined(p)){if(!Ae.isUndefined(u))return S(void 0,u,v,N)}else return S(u,p,v,N)}function U(u,p){if(!Ae.isUndefined(p))return S(void 0,p)}function O(u,p){if(Ae.isUndefined(p)){if(!Ae.isUndefined(u))return S(void 0,u)}else return S(void 0,p)}function h(u,p,v){if(v in b)return S(u,p);if(v in A)return S(void 0,u)}const s={url:U,method:U,data:U,baseURL:O,transformRequest:O,transformResponse:O,paramsSerializer:O,timeout:O,timeoutMessage:O,withCredentials:O,withXSRFToken:O,adapter:O,responseType:O,xsrfCookieName:O,xsrfHeaderName:O,onUploadProgress:O,onDownloadProgress:O,decompress:O,maxContentLength:O,maxBodyLength:O,beforeRedirect:O,transport:O,httpAgent:O,h
`+U.map(oC).join(`
`):" "+oC(U[0]):"as no adapter specified";throw new jt("There is no suitable adapter to dispatch the request "+O,"ERR_NOT_SUPPORT")}return S},adapters:k2};function S2(A){if(A.cancelToken&&A.cancelToken.throwIfRequested(),A.signal&&A.signal.aborted)throw new _p(null,A)}function lC(A){return S2(A),A.headers=no.from(A.headers),A.data=v2.call(A,A.transformRequest),["post","put","patch"].indexOf(A.method)!==-1&&A.headers.setContentType("application/x-www-form-urlencoded",!1),tb.getAdapter(A.adapter||hg.adapter)(A).then(function(S){return S2(A),S.data=v2.call(A,A.transformResponse,S),S.headers=no.from(S.headers),S},function(S){return WC(S)||(S2(A),S&&S.response&&(S.response.data=v2.call(A,A.transformResponse,S.response),S.response.headers=no.from(S.response.headers))),Promise.reject(S)})}const nb="1.10.0",wv={};["object","boolean","number","function","string","symbol"].forEach((A,b)=>{wv[A]=function(S){return typeof S===A||"a"+(b<1?"n ":" ")+A}});const uC={};wv.transitional=function(b,R,S){function x(U,O){return"[Axios v"+nb+"] Transitional option '"+U+"'"+O+(S?". "+S:"")}return(U,O,h)=>{if(b===!1)throw new jt(x(O," has been removed"+(R?" in "+R:"")),jt.ERR_DEPRECATED);return R&&!uC[O]&&(uC[O]=!0,console.warn(x(O," has been deprecated since v"+R+" and will be removed in the near future"))),b?b(U,O,h):!0}};wv.spelling=function(b){return(R,S)=>(console.warn(`${S} is likely a misspelling of ${b}`),!0)};function iN(A,b,R){if(typeof A!="object")throw new jt("options must be an object",jt.ERR_BAD_OPTION_VALUE);const S=Object.keys(A);let x=S.length;for(;x-- >0;){const U=S[x],O=b[U];if(O){const h=A[U],s=h===void 0||O(h,U,A);if(s!==!0)throw new jt("option "+U+" must be "+s,jt.ERR_BAD_OPTION_VALUE);continue}if(R!==!0)throw new jt("Unknown option "+U,jt.ERR_BAD_OPTION)}}const av={assertOptions:iN,validators:wv},Xu=av.validators;let Pf=class{constructor(b){this.defaults=b||{},this.interceptors={request:new ZA,response:new ZA}}async request(b,R){try{return await this._request(b,R)}catch(S){if(S instanceof Error){let x={};Error.captureStackTrace?Error.captureStackTrace(x):x=new Error;const U=x.stack?x.stack.replace(/^.+\n/,""):"";try{S.stack?U&&!String(S.stack).endsWith(U.replace(/^.+\n.+\n/,""))&&(S.stack+=`
`+U):S.stack=U}catch{}}throw S}}_request(b,R){typeof b=="string"?(R=R||{},R.url=b):R=b||{},R=Lf(this.defaults,R);const{transitional:S,paramsSerializer:x,headers:U}=R;S!==void 0&&av.assertOptions(S,{silentJSONParsing:Xu.transitional(Xu.boolean),forcedJSONParsing:Xu.transitional(Xu.boolean),clarifyTimeoutError:Xu.transitional(Xu.boolean)},!1),x!=null&&(Ae.isFunction(x)?R.paramsSerializer={serialize:x}:av.assertOptions(x,{encode:Xu.function,serialize:Xu.function},!0)),R.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?R.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:R.allowAbsoluteUrls=!0),av.assertOptions(R,{baseUrl:Xu.spelling("baseURL"),withXsrfToken:Xu.spelling("withXSRFToken")},!0),R.method=(R.method||this.defaults.method||"get").toLowerCase();let O=U&&Ae.merge(U.common,U[R.method]);U&&Ae.forEach(["delete","get","head","post","put","patch","common"],C=>{delete U[C]}),R.headers=no.concat(O,U);const h=[];let s=!0;this.interceptors.request.forEach(function($){typeof $.runWhen=="function"&&$.runWhen(R)===!1||(s=s&&$.synchronous,h.unshift($.fulfilled,$.rejected))});const u=[];this.interceptors.response.forEach(function($){u.push($.fulfilled,$.rejected)});let p,v=0,N;if(!s){const C=[lC.bind(this),void 0];for(C.unshift.apply(C,h),C.push.apply(C,u),N=C.length,p=Promise.resolve(R);v<N;)p=p.then(C[v++],C[v++]);return p}N=h.length;let Z=R;for(v=0;v<N;){const C=h[v++],$=h[v++];try{Z=C(Z)}catch(oe){$.call(this,oe);break}}try{p=lC.call(this,Z)}catch(C){return Promise.reject(C)}for(v=0,N=u.length;v<N;)p=p.then(u[v++],u[v++]);return p}getUri(b){b=Lf(this.defaults,b);const R=JC(b.baseURL,b.url,b.allowAbsoluteUrls);return zC(R,b.params,b.paramsSerializer)}};Ae.forEach(["delete","get","head","options"],function(b){Pf.prototype[b]=function(R,S){return this.request(Lf(S||{},{method:b,url:R,data:(S||{}).data}))}});Ae.forEach(["post","put","patch"],function(b){function R(S){return function(U,O,h){return this.request(Lf(h||{},{method:b,headers:S?{"Content-Type":"multipart/form-data"}:{},url:U,data:O}))}}Pf.prototype[b]=R(),Pf.prototype[b+"Form"]=R(!0)});let rN=class ib{constructor(b){if(typeof b!="function")throw new TypeError("executor must be a function.");let R;this.promise=new Promise(function(U){R=U});const S=this;this.promise.then(x=>{if(!S._listeners)return;let U=S._listeners.length;for(;U-- >0;)S._listeners[U](x);S._listeners=null}),this.promise.then=x=>{let U;const O=new Promise(h=>{S.subscribe(h),U=h}).then(x);return O.cancel=function(){S.unsubscribe(U)},O},b(function(U,O,h){S.reason||(S.reason=new _p(U,O,h),R(S.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(b){if(this.reason){b(this.reason);return}this._listeners?this._listeners.push(b):this._listeners=[b]}unsubscribe(b){if(!this._listeners)return;const R=this._listeners.indexOf(b);R!==-1&&this._listeners.splice(R,1)}toAbortSignal(){const b=new AbortController,R=S=>{b.abort(S)};return this.subscribe(R),b.signal.unsubscribe=()=>this.unsubscribe(R),b.signal}static source(){let b;return{token:new ib(function(x){b=x}),cancel:b}}};function oN(A){return function(R){return A.apply(null,R)}}function lN(A){return Ae.isObject(A)&&A.isAxiosError===!0}const D2={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderF