161 lines
1.2 MiB
JavaScript
161 lines
1.2 MiB
JavaScript
|
var Bk=(E,A)=>()=>(A||E((A={exports:{}}).exports,A),A.exports);var lP=Bk((bP,sg)=>{(function(){const A=document.createElement("link").relList;if(A&&A.supports&&A.supports("modulepreload"))return;for(const w of document.querySelectorAll('link[rel="modulepreload"]'))S(w);new MutationObserver(w=>{for(const P of w)if(P.type==="childList")for(const O of P.addedNodes)O.tagName==="LINK"&&O.rel==="modulepreload"&&S(O)}).observe(document,{childList:!0,subtree:!0});function k(w){const P={};return w.integrity&&(P.integrity=w.integrity),w.referrerPolicy&&(P.referrerPolicy=w.referrerPolicy),w.crossOrigin==="use-credentials"?P.credentials="include":w.crossOrigin==="anonymous"?P.credentials="omit":P.credentials="same-origin",P}function S(w){if(w.ep)return;w.ep=!0;const P=k(w);fetch(w.href,P)}})();var Vk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Np(E){return E&&E.__esModule&&Object.prototype.hasOwnProperty.call(E,"default")?E.default:E}var o2={exports:{}},tg={};/**
|
||
|
* @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 VA;function Hk(){if(VA)return tg;VA=1;var E=Symbol.for("react.transitional.element"),A=Symbol.for("react.fragment");function k(S,w,P){var O=null;if(P!==void 0&&(O=""+P),w.key!==void 0&&(O=""+w.key),"key"in w){P={};for(var h in w)h!=="key"&&(P[h]=w[h])}else P=w;return w=P.ref,{$$typeof:E,type:S,key:O,ref:w!==void 0?w:null,props:P}}return tg.Fragment=A,tg.jsx=k,tg.jsxs=k,tg}var HA;function Kk(){return HA||(HA=1,o2.exports=Hk()),o2.exports}var te=Kk(),l2={exports:{}},qt={};/**
|
||
|
* @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 KA;function qk(){if(KA)return qt;KA=1;var E=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),O=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),a=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.iterator;function M(ae){return ae===null||typeof ae!="object"?null:(ae=v&&ae[v]||ae["@@iterator"],typeof ae=="function"?ae:null)}var F={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,J={};function $(ae,Ne,tt){this.props=ae,this.context=Ne,this.refs=J,this.updater=tt||F}$.prototype.isReactComponent={},$.prototype.setState=function(ae,Ne){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,Ne,"setState")},$.prototype.forceUpdate=function(ae){this.updater.enqueueForceUpdate(this,ae,"forceUpdate")};function ce(){}ce.prototype=$.prototype;function Re(ae,Ne,tt){this.props=ae,this.context=Ne,this.refs=J,this.updater=tt||F}var ee=Re.prototype=new ce;ee.constructor=Re,b(ee,$.prototype),ee.isPureReactComponent=!0;var be=Array.isArray,Oe={H:null,A:null,T:null,S:null,V:null},ot=Object.prototype.hasOwnProperty;function et(ae,Ne,tt,Fe,z,Et){return tt=Et.ref,{$$typeof:E,type:ae,key:Ne,ref:tt!==void 0?tt:null,props:Et}}function pt(ae,Ne){return et(ae.type,Ne,void 0,void 0,void 0,ae.props)}function Nt(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===E}function _(ae){var Ne={"=":"=0",":":"=2"};return"$"+ae.replace(/[=:]/g,function(tt){return Ne[tt]})}var se=/\/+/g;function pe(ae,Ne){return typeof ae=="object"&&ae!==null&&ae.key!=null?_(""+ae.key):Ne.toString(36)}function rt(){}function Ue(ae){switch(ae.status){case"fulfilled":return ae.value;case"rejected":throw ae.reason;default:switch(typeof ae.status=="string"?ae.then(rt,rt):(ae.status="pending",ae.then(function(Ne){ae.status==="pending"&&(ae.status="fulfilled",ae.value=Ne)},function(Ne){ae.status==="pending"&&(ae.status="rejected",ae.reason=Ne)})),ae.status){case"fulfilled":return ae.value;case"rejected":throw ae.reason}}throw ae}function Me(ae,Ne,tt,Fe,z){var Et=typeof ae;(Et==="undefined"||Et==="boolean")&&(ae=null);var yt=!1;if(ae===null)yt=!0;else switch(Et){case"bigint":case"string":case"number":yt=!0;break;case"object":switch(ae.$$typeof){case E:case A:yt=!0;break;case p:return yt=ae._init,Me(yt(ae._payload),Ne,tt,Fe,z)}}if(yt)return z=z(ae),yt=Fe===""?"."+pe(ae,0):Fe,be(z)?(tt="",yt!=null&&(tt=yt.replace(se,"$&/")+"/"),Me(z,Ne,tt,"",function(cl){return cl})):z!=null&&(Nt(z)&&(z=pt(z,tt+(z.key==null||ae&&ae.key===z.key?"":(""+z.key).replace(se,"$&/")+"/")+yt)),Ne.push(z)),1;yt=0;var qi=Fe===""?".":Fe+":";if(be(ae))for(var xn=0;xn<ae.length;xn++)Fe=ae[xn],Et=qi+pe(Fe,xn),yt+=Me(Fe,Ne,tt,Et,z);else if(xn=M(ae),typeof xn=="function")for(ae=xn.call(ae),xn=0;!(Fe=ae.next()).done;)Fe=Fe.value,Et=qi+pe(Fe,xn++),yt+=Me(Fe,Ne,tt,Et,z);else if(Et==="object"){if(typeof ae.then=="function")return Me(Ue(ae),Ne,tt,Fe,z);throw Ne=String(ae),Error("Objects are not valid as a React child (found: "+(Ne==="[object Object]"?"object with keys {"+Object.keys(ae).join(", ")+"}":Ne)+"). If you meant to render a collection of children, use an array instead.")}return yt}function Te(ae,Ne,tt){if(ae==null)return ae;var Fe=[],z=0;return Me(ae,Fe,"","",function(Et){return Ne.call(tt,Et,z++)}),Fe}function je(ae){if(ae._status===-1){var Ne=ae._result;Ne=Ne(),Ne.then(function(tt){(ae._status===0||ae._status===-1)&&(ae._status=1,ae._result=tt)},function(tt){(ae._status===0||ae._status===-1)&&(ae._status=2,ae._result=tt)}),ae._status===-1&&(ae._status=0,ae._result=Ne)}if(ae._status===1)return ae._result.default;throw ae._result}var ht=typeof reportError=="function"?reportError:function(ae){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){va
|
||
|
* @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 FA;function Fk(){return FA||(FA=1,function(E){function A(Te,je){var ht=Te.length;Te.push(je);e:for(;0<ht;){var Tn=ht-1>>>1,ae=Te[Tn];if(0<w(ae,je))Te[Tn]=je,Te[ht]=ae,ht=Tn;else break e}}function k(Te){return Te.length===0?null:Te[0]}function S(Te){if(Te.length===0)return null;var je=Te[0],ht=Te.pop();if(ht!==je){Te[0]=ht;e:for(var Tn=0,ae=Te.length,Ne=ae>>>1;Tn<Ne;){var tt=2*(Tn+1)-1,Fe=Te[tt],z=tt+1,Et=Te[z];if(0>w(Fe,ht))z<ae&&0>w(Et,Fe)?(Te[Tn]=Et,Te[z]=ht,Tn=z):(Te[Tn]=Fe,Te[tt]=ht,Tn=tt);else if(z<ae&&0>w(Et,ht))Te[Tn]=Et,Te[z]=ht,Tn=z;else break e}}return je}function w(Te,je){var ht=Te.sortIndex-je.sortIndex;return ht!==0?ht:Te.id-je.id}if(E.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var P=performance;E.unstable_now=function(){return P.now()}}else{var O=Date,h=O.now();E.unstable_now=function(){return O.now()-h}}var s=[],a=[],p=1,v=null,M=3,F=!1,b=!1,J=!1,$=!1,ce=typeof setTimeout=="function"?setTimeout:null,Re=typeof clearTimeout=="function"?clearTimeout:null,ee=typeof setImmediate<"u"?setImmediate:null;function be(Te){for(var je=k(a);je!==null;){if(je.callback===null)S(a);else if(je.startTime<=Te)S(a),je.sortIndex=je.expirationTime,A(s,je);else break;je=k(a)}}function Oe(Te){if(J=!1,be(Te),!b)if(k(s)!==null)b=!0,ot||(ot=!0,pe());else{var je=k(a);je!==null&&Me(Oe,je.startTime-Te)}}var ot=!1,et=-1,pt=5,Nt=-1;function _(){return $?!0:!(E.unstable_now()-Nt<pt)}function se(){if($=!1,ot){var Te=E.unstable_now();Nt=Te;var je=!0;try{e:{b=!1,J&&(J=!1,Re(et),et=-1),F=!0;var ht=M;try{t:{for(be(Te),v=k(s);v!==null&&!(v.expirationTime>Te&&_());){var Tn=v.callback;if(typeof Tn=="function"){v.callback=null,M=v.priorityLevel;var ae=Tn(v.expirationTime<=Te);if(Te=E.unstable_now(),typeof ae=="function"){v.callback=ae,be(Te),je=!0;break t}v===k(s)&&S(s),be(Te)}else S(s);v=k(s)}if(v!==null)je=!0;else{var Ne=k(a);Ne!==null&&Me(Oe,Ne.startTime-Te),je=!1}}break e}finally{v=null,M=ht,F=!1}je=void 0}}finally{je?pe():ot=!1}}}var pe;if(typeof ee=="function")pe=function(){ee(se)};else if(typeof MessageChannel<"u"){var rt=new MessageChannel,Ue=rt.port2;rt.port1.onmessage=se,pe=function(){Ue.postMessage(null)}}else pe=function(){ce(se,0)};function Me(Te,je){et=ce(function(){Te(E.unstable_now())},je)}E.unstable_IdlePriority=5,E.unstable_ImmediatePriority=1,E.unstable_LowPriority=4,E.unstable_NormalPriority=3,E.unstable_Profiling=null,E.unstable_UserBlockingPriority=2,E.unstable_cancelCallback=function(Te){Te.callback=null},E.unstable_forceFrameRate=function(Te){0>Te||125<Te?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):pt=0<Te?Math.floor(1e3/Te):5},E.unstable_getCurrentPriorityLevel=function(){return M},E.unstable_next=function(Te){switch(M){case 1:case 2:case 3:var je=3;break;default:je=M}var ht=M;M=je;try{return Te()}finally{M=ht}},E.unstable_requestPaint=function(){$=!0},E.unstable_runWithPriority=function(Te,je){switch(Te){case 1:case 2:case 3:case 4:case 5:break;default:Te=3}var ht=M;M=Te;try{return je()}finally{M=ht}},E.unstable_scheduleCallback=function(Te,je,ht){var Tn=E.unstable_now();switch(typeof ht=="object"&&ht!==null?(ht=ht.delay,ht=typeof ht=="number"&&0<ht?Tn+ht:Tn):ht=Tn,Te){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=ht+ae,Te={id:p++,callback:je,priorityLevel:Te,startTime:ht,expirationTime:ae,sortIndex:-1},ht>Tn?(Te.sortIndex=ht,A(a,Te),k(s)===null&&Te===k(a)&&(J?(Re(et),et=-1):J=!0,Me(Oe,ht-Tn))):(Te.sortIndex=ae,A(s,Te),b||F||(b=!0,ot||(ot=!0,pe()))),Te},E.unstable_shouldYield=_,E.unstable_wrapCallback=function(Te){var je=M;return function(){var ht=M;M=je;try{return Te.apply(this,arguments)}finally{M=ht}}}}(s2)),s2}var zA;function zk(){return zA||(zA=1,u2.exports=Fk()),u2.exports}var c2={exports:{}},gr={};/**
|
||
|
* @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 GA;function Gk(){if(GA)return gr;GA=1;var E=y0();function A(s){var a="https://react.dev/errors/"+s;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)a+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+s+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function k(){}var S={d:{f:k,r:function(){throw Error(A(522))},D:k,C:k,L:k,m:k,X:k,S:k,M:k},p:0,findDOMNode:null},w=Symbol.for("react.portal");function P(s,a,p){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:w,key:v==null?null:""+v,children:s,containerInfo:a,implementation:p}}var O=E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(s,a){if(s==="font")return"";if(typeof a=="string")return a==="use-credentials"?a:""}return gr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,gr.createPortal=function(s,a){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)throw Error(A(299));return P(s,a,null,p)},gr.flushSync=function(s){var a=O.T,p=S.p;try{if(O.T=null,S.p=2,s)return s()}finally{O.T=a,S.p=p,S.d.f()}},gr.preconnect=function(s,a){typeof s=="string"&&(a?(a=a.crossOrigin,a=typeof a=="string"?a==="use-credentials"?a:"":void 0):a=null,S.d.C(s,a))},gr.prefetchDNS=function(s){typeof s=="string"&&S.d.D(s)},gr.preinit=function(s,a){if(typeof s=="string"&&a&&typeof a.as=="string"){var p=a.as,v=h(p,a.crossOrigin),M=typeof a.integrity=="string"?a.integrity:void 0,F=typeof a.fetchPriority=="string"?a.fetchPriority:void 0;p==="style"?S.d.S(s,typeof a.precedence=="string"?a.precedence:void 0,{crossOrigin:v,integrity:M,fetchPriority:F}):p==="script"&&S.d.X(s,{crossOrigin:v,integrity:M,fetchPriority:F,nonce:typeof a.nonce=="string"?a.nonce:void 0})}},gr.preinitModule=function(s,a){if(typeof s=="string")if(typeof a=="object"&&a!==null){if(a.as==null||a.as==="script"){var p=h(a.as,a.crossOrigin);S.d.M(s,{crossOrigin:p,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0})}}else a==null&&S.d.M(s)},gr.preload=function(s,a){if(typeof s=="string"&&typeof a=="object"&&a!==null&&typeof a.as=="string"){var p=a.as,v=h(p,a.crossOrigin);S.d.L(s,p,{crossOrigin:v,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,type:typeof a.type=="string"?a.type:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0,referrerPolicy:typeof a.referrerPolicy=="string"?a.referrerPolicy:void 0,imageSrcSet:typeof a.imageSrcSet=="string"?a.imageSrcSet:void 0,imageSizes:typeof a.imageSizes=="string"?a.imageSizes:void 0,media:typeof a.media=="string"?a.media:void 0})}},gr.preloadModule=function(s,a){if(typeof s=="string")if(a){var p=h(a.as,a.crossOrigin);S.d.m(s,{as:typeof a.as=="string"&&a.as!=="script"?a.as:void 0,crossOrigin:p,integrity:typeof a.integrity=="string"?a.integrity:void 0})}else S.d.m(s)},gr.requestFormReset=function(s){S.d.r(s)},gr.unstable_batchedUpdates=function(s,a){return s(a)},gr.useFormState=function(s,a,p){return O.H.useFormState(s,a,p)},gr.useFormStatus=function(){return O.H.useHostTransitionStatus()},gr.version="19.1.0",gr}var XA;function Xk(){if(XA)return c2.exports;XA=1;function E(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(E)}catch(A){console.error(A)}}return E(),c2.exports=Gk(),c2.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 YA;function Yk(){if(YA)return ng;YA=1;var E=zk(),A=y0(),k=Xk();function S(o){var u="https://react.dev/errors/"+o;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)u+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+o+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function w(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function P(o){var u=o,d=o;if(o.alternate)for(;u.return;)u=u.return;else{o=u;do u=o,(u.flags&4098)!==0&&(d=u.return),o=u.return;while(o)}return u.tag===3?d:null}function O(o){if(o.tag===13){var u=o.memoizedState;if(u===null&&(o=o.alternate,o!==null&&(u=o.memoizedState)),u!==null)return u.dehydrated}return null}function h(o){if(P(o)!==o)throw Error(S(188))}function s(o){var u=o.alternate;if(!u){if(u=P(o),u===null)throw Error(S(188));return u!==o?null:o}for(var d=o,g=u;;){var C=d.return;if(C===null)break;var I=C.alternate;if(I===null){if(g=C.return,g!==null){d=g;continue}break}if(C.child===I.child){for(I=C.child;I;){if(I===d)return h(C),o;if(I===g)return h(C),u;I=I.sibling}throw Error(S(188))}if(d.return!==g.return)d=C,g=I;else{for(var B=!1,H=C.child;H;){if(H===d){B=!0,d=C,g=I;break}if(H===g){B=!0,g=C,d=I;break}H=H.sibling}if(!B){for(H=I.child;H;){if(H===d){B=!0,d=I,g=C;break}if(H===g){B=!0,g=I,d=C;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:u}function a(o){var u=o.tag;if(u===5||u===26||u===27||u===6)return o;for(o=o.child;o!==null;){if(u=a(o),u!==null)return u;o=o.sibling}return null}var p=Object.assign,v=Symbol.for("react.element"),M=Symbol.for("react.transitional.element"),F=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),ce=Symbol.for("react.provider"),Re=Symbol.for("react.consumer"),ee=Symbol.for("react.context"),be=Symbol.for("react.forward_ref"),Oe=Symbol.for("react.suspense"),ot=Symbol.for("react.suspense_list"),et=Symbol.for("react.memo"),pt=Symbol.for("react.lazy"),Nt=Symbol.for("react.activity"),_=Symbol.for("react.memo_cache_sentinel"),se=Symbol.iterator;function pe(o){return o===null||typeof o!="object"?null:(o=se&&o[se]||o["@@iterator"],typeof o=="function"?o:null)}var rt=Symbol.for("react.client.reference");function Ue(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===rt?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case b:return"Fragment";case $:return"Profiler";case J:return"StrictMode";case Oe:return"Suspense";case ot:return"SuspenseList";case Nt:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case F:return"Portal";case ee:return(o.displayName||"Context")+".Provider";case Re:return(o._context.displayName||"Context")+".Consumer";case be:var u=o.render;return o=o.displayName,o||(o=u.displayName||u.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case et:return u=o.displayName||null,u!==null?u:Ue(o.type)||"Memo";case pt:u=o._payload,o=o._init;try{return Ue(o(u))}catch{}}return null}var Me=Array.isArray,Te=A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,je=k.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ht={pending:!1,data:null,method:null,action:null},Tn=[],ae=-1;function Ne(o){return{current:o}}function tt(o){0>ae||(o.current=Tn[ae],Tn[ae]=null,ae--)}function Fe(o,u){ae++,Tn[ae]=o.current,o.current=u}var z=Ne(null),Et=Ne(null),yt=Ne(null),qi=Ne(null);function xn(o,u){switch(Fe(yt,u),Fe(Et,o),Fe(z,null),u.nodeType){case 9:case 11:o=(o=u.documentElement)&&(o=o.namespaceURI)?$d(o):0;break;default:if(o=u.tagName,u=u.namespaceURI)u=$d(u),o=Dm(u,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}tt(z),Fe(z,o)}function cl(){tt(z),tt(Et),tt(yt)}function jp(o){o.memoizedState!==null&&Fe(qi,o);var u=z.current,d=Dm(u,o.type);u!==d&&(Fe(Et,o),Fe(z,d))}function Xf(o){Et.current===o&&(tt(z),tt(Et)),qi.current===o&&(tt(qi),Rf._curren
|
||
|
at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
|
`+lo+o+jo}var ir=!1;function Zf(o,u){if(!o||ir)return"";ir=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(u){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(we){var Se=we}Reflect.construct(o,[],Ie)}else{try{Ie.call()}catch(we){Se=we}o.call(Ie.prototype)}}else{try{throw Error()}catch(we){Se=we}(Ie=o())&&typeof Ie.catch=="function"&&Ie.catch(function(){})}}catch(we){if(we&&Se&&typeof we.stack=="string")return[we.stack,Se.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var C=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");C&&C.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var I=g.DetermineComponentFrameRoot(),B=I[0],H=I[1];if(B&&H){var ie=B.split(`
|
||
|
`),me=H.split(`
|
||
|
`);for(C=g=0;g<ie.length&&!ie[g].includes("DetermineComponentFrameRoot");)g++;for(;C<me.length&&!me[C].includes("DetermineComponentFrameRoot");)C++;if(g===ie.length||C===me.length)for(g=ie.length-1,C=me.length-1;1<=g&&0<=C&&ie[g]!==me[C];)C--;for(;1<=g&&0<=C;g--,C--)if(ie[g]!==me[C]){if(g!==1||C!==1)do if(g--,C--,0>C||ie[g]!==me[C]){var Ae=`
|
||
|
`+ie[g].replace(" at new "," at ");return o.displayName&&Ae.includes("<anonymous>")&&(Ae=Ae.replace("<anonymous>",o.displayName)),Ae}while(1<=g&&0<=C);break}}}finally{ir=!1,Error.prepareStackTrace=d}return(d=o?o.displayName||o.name:"")?hl(d):""}function oi(o){switch(o.tag){case 26:case 27:case 5:return hl(o.type);case 16:return hl("Lazy");case 13:return hl("Suspense");case 19:return hl("SuspenseList");case 0:case 15:return Zf(o.type,!1);case 11:return Zf(o.type.render,!1);case 1:return Zf(o.type,!0);case 31:return hl("Activity");default:return""}}function Ha(o){try{var u="";do u+=oi(o),o=o.return;while(o);return u}catch(d){return`
|
||
|
Error generating stack: `+d.message+`
|
||
|
`+d.stack}}function Gn(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Oc(o){var u=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function Eg(o){var u=Oc(o)?"checked":"value",d=Object.getOwnPropertyDescriptor(o.constructor.prototype,u),g=""+o[u];if(!o.hasOwnProperty(u)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var C=d.get,I=d.set;return Object.defineProperty(o,u,{configurable:!0,get:function(){return C.call(this)},set:function(B){g=""+B,I.call(this,B)}}),Object.defineProperty(o,u,{enumerable:d.enumerable}),{getValue:function(){return g},setValue:function(B){g=""+B},stopTracking:function(){o._valueTracker=null,delete o[u]}}}}function $u(o){o._valueTracker||(o._valueTracker=Eg(o))}function yl(o){if(!o)return!1;var u=o._valueTracker;if(!u)return!0;var d=u.getValue(),g="";return o&&(g=Oc(o)?o.checked?"true":"false":o.value),o=g,o!==d?(u.setValue(o),!0):!1}function es(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 qp=/[\n"\\]/g;function zt(o){return o.replace(qp,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function oa(o,u,d,g,C,I,B,H){o.name="",B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?o.type=B:o.removeAttribute("type"),u!=null?B==="number"?(u===0&&o.value===""||o.value!=u)&&(o.value=""+Gn(u)):o.value!==""+Gn(u)&&(o.value=""+Gn(u)):B!=="submit"&&B!=="reset"||o.removeAttribute("value"),u!=null?zp(o,B,Gn(u)):d!=null?zp(o,B,Gn(d)):g!=null&&o.removeAttribute("value"),C==null&&I!=null&&(o.defaultChecked=!!I),C!=null&&(o.checked=C&&typeof C!="function"&&typeof C!="symbol"),H!=null&&typeof H!="function"&&typeof H!="symbol"&&typeof H!="boolean"?o.name=""+Gn(H):o.removeAttribute("name")}function Fp(o,u,d,g,C,I,B,H){if(I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(o.type=I),u!=null||d!=null){if(!(I!=="submit"&&I!=="reset"||u!=null))return;d=d!=null?""+Gn(d):"",u=u!=null?""+Gn(u):d,H||u===o.value||(o.value=u),o.defaultValue=u}g=g??C,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 zp(o,u,d){u==="number"&&es(o.ownerDocument)===o||o.defaultValue===""+d||(o.defaultValue=""+d)}function Ka(o,u,d,g){if(o=o.options,u){u={};for(var C=0;C<d.length;C++)u["$"+d[C]]=!0;for(d=0;d<o.length;d++)C=u.hasOwnProperty("$"+o[d].value),o[d].selected!==C&&(o[d].selected=C),C&&g&&(o[d].defaultSelected=!0)}else{for(d=""+Gn(d),u=null,C=0;C<o.length;C++){if(o[C].value===d){o[C].selected=!0,g&&(o[C].defaultSelected=!0);return}u!==null||o[C].disabled||(u=o[C])}u!==null&&(u.selected=!0)}}function Gp(o,u,d){if(u!=null&&(u=""+Gn(u),u!==o.value&&(o.value=u),d==null)){o.defaultValue!==u&&(o.defaultValue=u);return}o.defaultValue=d!=null?""+Gn(d):""}function $f(o,u,d,g){if(u==null){if(g!=null){if(d!=null)throw Error(S(92));if(Me(g)){if(1<g.length)throw Error(S(93));g=g[0]}d=g}d==null&&(d=""),u=d}d=Gn(u),o.defaultValue=d,g=o.textContent,g===d&&g!==""&&g!==null&&(o.value=g)}function ao(o,u){if(u){var d=o.firstChild;if(d&&d===o.lastChild&&d.nodeType===3){d.nodeValue=u;return}}o.textContent=u}var qa=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(X0,"")}function Jd(o,u){return u=Ef(u),Ef(o)===u}function Iu(){}function on(o,u,d,g,C,I){switch(d){case"children":typeof g=="string"?u==="body"||u==="textarea"&&g===""||ao(o,g):(typeof g=="number"||typeof g=="bigint")&&u!=="body"&&ao(o,""+g);break;case"className":nr(o,"class",g);break;case"tabIndex":nr(o,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":nr(o,d,g);break;case"style":gl(o,g,I);break;case"data":if(u!=="object"){nr(o,"data",g);break}case"src":case"href":if(g===""&&(u!=="a"||d!=="href")){o.removeAttribute(d);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){o.removeAttribute(d);break}g=ts(""+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 I=="function"&&(d==="formAction"?(u!=="input"&&on(o,u,"name",C.name,C,null),on(o,u,"formEncType",C.formEncType,C,null),on(o,u,"formMethod",C.formMethod,C,null),on(o,u,"formTarget",C.formTarget,C,null)):(on(o,u,"encType",C.encType,C,null),on(o,u,"method",C.method,C,null),on(o,u,"target",C.target,C,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){o.removeAttribute(d);break}g=ts(""+g),o.setAttribute(d,g);break;case"onClick":g!=null&&(o.onclick=Iu);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(C.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=ts(""+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),ra(o,"popover",g);break;case"xlinkActuate":di(o,"http://www.w3.org/1999/xlink","xlink:actuate",g);break;case"xlinkArcrole":di(o,"http://www.w3.org/1999/xlink","xlink:arcrole",g);break;case"xlinkRole":di(o,"http://www.w3.org/1999/xlink","xlink:role",g);break;case"xlinkShow":di(o,"http://www.w3.org/1999/xlink","xlink:show",g);break;case"xlinkTitle":di(o,"http://www.w3.org/1999/xlink","xlink:title",g);break;case"xlinkType":di(o,"http://www.w3.org/1999/xlink","xlink:type",g);break;case"xmlBase":di(o,"http://www.w3.org/XML/1998/nam
|
||
|
|
||
|
Please change the parent <Route path="${ee}"> to <Route path="${ee==="/"?"*":`${ee}/*`}">.`)}let M=Gf(),F;if(A){let ee=typeof A=="string"?Pp(A):A;ii(p==="/"||((Re=ee.pathname)==null?void 0:Re.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${ee.pathname}" was given in the \`location\` prop.`),F=ee}else F=M;let b=F.pathname||"/",J=b;if(p!=="/"){let ee=p.replace(/^\//,"").split("/");J="/"+b.replace(/^\//,"").split("/").slice(ee.length).join("/")}let $=!P&&k&&k.matches&&k.matches.length>0?k.matches:IC(E,{pathname:J});_a(v||$!=null,`No routes matched location "${F.pathname}${F.search}${F.hash}" `),_a($==null||$[$.length-1].route.element!==void 0||$[$.length-1].route.Component!==void 0||$[$.length-1].route.lazy!==void 0,`Matched leaf route at location "${F.pathname}${F.search}${F.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 ce=MR($&&$.map(ee=>Object.assign({},ee,{params:Object.assign({},s,ee.params),pathname:Gu([p,w.encodeLocation?w.encodeLocation(ee.pathname).pathname:ee.pathname]),pathnameBase:ee.pathnameBase==="/"?p:Gu([p,w.encodeLocation?w.encodeLocation(ee.pathnameBase).pathname:ee.pathnameBase])})),O,k,S);return A&&ce?ve.createElement(hg.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...F},navigationType:"POP"}},ce):ce}function DR(){let E=UR(),A=wR(E)?`${E.status} ${E.statusText}`:E instanceof Error?E.message:JSON.stringify(E),k=E instanceof Error?E.stack:null,S="rgba(200,200,200, 0.5)",w={padding:"0.5rem",backgroundColor:S},P={padding:"2px 4px",backgroundColor:S},O=null;return console.error("Error handled by React Router default ErrorBoundary:",E),O=ve.createElement(ve.Fragment,null,ve.createElement("p",null,"💿 Hey developer 👋"),ve.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",ve.createElement("code",{style:P},"ErrorBoundary")," or"," ",ve.createElement("code",{style:P},"errorElement")," prop on your route.")),ve.createElement(ve.Fragment,null,ve.createElement("h2",null,"Unexpected Application Error!"),ve.createElement("h3",{style:{fontStyle:"italic"}},A),k?ve.createElement("pre",{style:w},k):null,O)}var OR=ve.createElement(DR,null),kR=class extends ve.Component{constructor(E){super(E),this.state={location:E.location,revalidation:E.revalidation,error:E.error}}static getDerivedStateFromError(E){return{error:E}}static getDerivedStateFromProps(E,A){return A.location!==E.location||A.revalidation!=="idle"&&E.revalidation==="idle"?{error:E.error,location:E.location,revalidation:E.revalidation}:{error:E.error!==void 0?E.error:A.error,location:A.location,revalidation:E.revalidation||A.revalidation}}componentDidCatch(E,A){console.error("React Router caught the following error during render",E,A)}render(){return this.state.error!==void 0?ve.createElement(Yu.Provider,{value:this.props.routeContext},ve.createElement(j2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function RR({routeContext:E,match:A,children:k}){let S=ve.useContext(Lp);return S&&S.static&&S.staticContext&&(A.route.errorElement||A.route.ErrorBoundary)&&(S.staticContext._deepestRenderedBoundaryId=A.route.id),ve.createElement(Yu.Provider,{value:E},k)}function MR(E,A=[],k=null,S=null){if(E==null){if(!k)return null;if(k.errors)E=k.matches;else if(A.length===0&&!k.initialized&&k.matches.length>0)E=k.matches;else return null}let w=E,P=k==null?void 0:k.errors;if(P!=null){let s=w.findIndex(a=>a.route.id&&(P==null?void 0:P[a.route.id])!==void 0);ii(s>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(P).join(",")}`),w=w.slice(0,Math.min(w.length,s+1))}let O=!1,h=-1;if(k)for(let s=0;s<w.length;s++){let a=w[s];if((a.route.HydrateFallback||a.route.hydrateFallbackElement)&&(h=s),a
|
||
|
* 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(E){(function(A,k,S){var w=function P(O){var h=k[O];return h||A[O][0].call(h=k[O]={exports:{}},P,h,h.exports),h.exports}(S[0]);w.util.global.protobuf=w,typeof define=="function"&&define.amd&&define(["long"],function(P){return P&&P.isLong&&(w.util.Long=P,w.configure()),w}),typeof sg=="object"&&sg&&sg.exports&&(sg.exports=w)})({1:[function(A,k,S){k.exports=function(w,P){for(var O=Array(arguments.length-1),h=0,s=2,a=!0;s<arguments.length;)O[h++]=arguments[s++];return new Promise(function(p,v){O[h]=function(M){if(a)if(a=!1,M)v(M);else{for(var F=Array(arguments.length-1),b=0;b<F.length;)F[b++]=arguments[b];p.apply(null,F)}};try{w.apply(P||null,O)}catch(M){a&&(a=!1,v(M))}})}},{}],2:[function(A,k,S){S.length=function(s){var a=s.length;if(!a)return 0;for(var p=0;1<--a%4&&(s[0|a]||"")=="=";)++p;return Math.ceil(3*s.length)/4-p};for(var w=Array(64),P=Array(123),O=0;O<64;)P[w[O]=O<26?O+65:O<52?O+71:O<62?O-4:O-59|43]=O++;S.encode=function(s,a,p){for(var v,M=null,F=[],b=0,J=0;a<p;){var $=s[a++];switch(J){case 0:F[b++]=w[$>>2],v=(3&$)<<4,J=1;break;case 1:F[b++]=w[v|$>>4],v=(15&$)<<2,J=2;break;case 2:F[b++]=w[v|$>>6],F[b++]=w[63&$],J=0}8191<b&&((M=M||[]).push(String.fromCharCode.apply(String,F)),b=0)}return J&&(F[b++]=w[v],F[b++]=61,J===1&&(F[b++]=61)),M?(b&&M.push(String.fromCharCode.apply(String,F.slice(0,b))),M.join("")):String.fromCharCode.apply(String,F.slice(0,b))};var h="invalid encoding";S.decode=function(s,a,p){for(var v,M=p,F=0,b=0;b<s.length;){var J=s.charCodeAt(b++);if(J==61&&1<F)break;if((J=P[J])===E)throw Error(h);switch(F){case 0:v=J,F=1;break;case 1:a[p++]=v<<2|(48&J)>>4,v=J,F=2;break;case 2:a[p++]=(15&v)<<4|(60&J)>>2,v=J,F=3;break;case 3:a[p++]=(3&v)<<6|J,F=0}}if(F===1)throw Error(h);return p-M},S.test=function(s){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(s)}},{}],3:[function(A,k,S){function w(){this.t={}}(k.exports=w).prototype.on=function(P,O,h){return(this.t[P]||(this.t[P]=[])).push({fn:O,ctx:h||this}),this},w.prototype.off=function(P,O){if(P===E)this.t={};else if(O===E)this.t[P]=[];else for(var h=this.t[P],s=0;s<h.length;)h[s].fn===O?h.splice(s,1):++s;return this},w.prototype.emit=function(P){var O=this.t[P];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(A,k,S){function w(a){function p(se,pe,rt,Ue){var Me=pe<0?1:0;se((pe=Me?-pe:pe)===0?0<1/pe?0:2147483648:isNaN(pe)?2143289344:34028234663852886e22<pe?(Me<<31|2139095040)>>>0:pe<11754943508222875e-54?(Me<<31|Math.round(pe/1401298464324817e-60))>>>0:(Me<<31|127+(se=Math.floor(Math.log(pe)/Math.LN2))<<23|8388607&Math.round(pe*Math.pow(2,-se)*8388608))>>>0,rt,Ue)}function v(se,pe,rt){return se=se(pe,rt),pe=2*(se>>31)+1,rt=se>>>23&255,se&=8388607,rt==255?se?NaN:1/0*pe:rt==0?1401298464324817e-60*pe*se:pe*Math.pow(2,rt-150)*(8388608+se)}function M(se,pe,rt){$[0]=se,pe[rt]=ce[0],pe[rt+1]=ce[1],pe[rt+2]=ce[2],pe[rt+3]=ce[3]}function F(se,pe,rt){$[0]=se,pe[rt]=ce[3],pe[rt+1]=ce[2],pe[rt+2]=ce[1],pe[rt+3]=ce[0]}function b(se,pe){return ce[0]=se[pe],ce[1]=se[pe+1],ce[2]=se[pe+2],ce[3]=se[pe+3],$[0]}function J(se,pe){return ce[3]=se[pe],ce[2]=se[pe+1],ce[1]=se[pe+2],ce[0]=se[pe+3],$[0]}var $,ce,Re,ee,be;function Oe(se,pe,rt,Ue,Me,Te){var je,ht=Ue<0?1:0;(Ue=ht?-Ue:Ue)===0?(se(0,Me,Te+pe),se(0<1/Ue?0:2147483648,Me,Te+rt)):isNaN(Ue)?(se(0,Me,Te+pe),se(2146959360,Me,Te+rt)):17976931348623157e292<Ue?(se(0,Me,Te+pe),se((ht<<31|2146435072)>>>0,Me,Te+rt)):Ue<22250738585072014e-324?(se((je=Ue/5e-324)>>>0,Me,Te+pe),se((ht<<31|je/4294967296)>>>0,Me,Te+rt)):(se(4503599627370496*(je=Ue*Math.pow(2,-(Ue=(Ue=Math.floor(Math.log(Ue)/Math.LN2))===1024?1023:Ue)))>>>0,Me,Te+pe),se((ht<<31|Ue+1023<<20|1048576*je&1048575)>>>0,Me,Te+rt))}function ot(se,pe,rt,Ue,Me){return pe=se(Ue,Me+pe),se=se(Ue,Me+rt),Ue=2*(se>>31)+1,Me=se>>>20&2047,rt=4294967296*(1048575&se)+pe,Me==2047?rt?NaN:1/0*Ue:Me==0?5e-324*Ue*rt:Ue*Math.pow(2,Me-1075)*(rt+4503599627370496)}function et(se,pe,rt){Re[0]=se,pe[rt]=ee[0],pe[rt+1]=ee[1],pe[rt+2]=ee[2],pe[rt+3]=ee[3],pe[rt+4]=ee[4],pe[rt+5
|
||
|
`).map(O=>O.trim()).filter(Boolean);const k={method:"UNDEFINED",url:"",headers:{},body:null},S=E.match(A);if(!S)throw console.log(E),new Error("Invalid 'Copy as fetch' string.");k.url=S[1];const w=S[2],P=JSON.parse(w);return P.method&&(k.method=P.method),P.headers&&(k.headers=P.headers),P.body&&(k.body=P.body),k}const E4=new Uint8Array([237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237]),A4=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),C4=new Uint8Array([112,115,115,104]);function I2(E,A){const k=new ArrayBuffer(4);return new DataView(k).setUint32(0,E,A),new Uint8Array(k)}function p2(E,A){const k=new ArrayBuffer(2);return new DataView(k).setUint16(0,E,A),new Uint8Array(k)}function nC(E,A){const k=E.length,S=k+32,w=new Uint8Array([...I2(S,!1),...C4,...new Uint8Array(4),...A,...I2(k,!1),...E]);return FC(w)}function b4(E){const A=new Uint8Array([...p2(1,!0),...p2(E.length,!0),...E]);return new Uint8Array([...I2(A.length+2+4,!0),...p2(1,!0),...A])}function I4(E){const A=new Uint8Array(E.length*2);for(let k=0;k<E.length;k++){const S=E.charCodeAt(k);A[k*2]=S&255,A[k*2+1]=S>>8}return A}function D4(E){return Uint8Array.from(E.split("").map(A=>A.charCodeAt()))}async function O4(){try{const E=await navigator.clipboard.readText(),A=x4(E);let k,S;if(A.body.startsWith("<")){S=A.body;const w=S.match(/.*(<WRMHEADER.*<\/WRMHEADER>).*/),P=w?w[1]:null,O=I4(P),h=b4(O);k=nC(h,A4)}else{const w=D4(A.body);let P,O;try{P=w4.decode(w),O=T4.decode(P.msg)}catch(h){console.error("Decoding failed, returning empty pssh",h),k=""}if(O&&O.contentId&&O.contentId.widevinePsshData){const h=O.contentId.widevinePsshData.psshData[0];k=nC(h,E4)}k4(w)?S=FC(w):S=A.body}document.getElementById("licurl").value=A.url,document.getElementById("headers").value=JSON.stringify(A.headers),document.getElementById("pssh").value=k,document.getElementById("data").value=S}catch(E){console.error("Failed to read clipboard contents:",E)}}function k4(E){return E.some(A=>A>127)}var h2={exports:{}},y2,iC;function R4(){if(iC)return y2;iC=1;var E="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return y2=E,y2}var g2,rC;function M4(){if(rC)return g2;rC=1;var E=R4();function A(){}function k(){}return k.resetWarningCache=A,g2=function(){function S(O,h,s,a,p,v){if(v!==E){var M=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw M.name="Invariant Violation",M}}S.isRequired=S;function w(){return S}var P={array:S,bigint:S,bool:S,func:S,number:S,object:S,string:S,symbol:S,any:S,arrayOf:w,element:S,elementType:S,instanceOf:w,node:S,objectOf:w,oneOf:w,oneOfType:w,shape:w,exact:w,checkPropTypes:k,resetWarningCache:A};return P.PropTypes=P,P},g2}var oC;function N4(){return oC||(oC=1,h2.exports=M4()()),h2.exports}var P4=N4();const Wn=Np(P4);var m2,lC;function L4(){if(lC)return m2;lC=1;function E(h){return h&&typeof h=="object"&&"default"in h?h.default:h}var A=y0(),k=E(A);function S(h,s,a){return s in h?Object.defineProperty(h,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):h[s]=a,h}function w(h,s){h.prototype=Object.create(s.prototype),h.prototype.constructor=h,h.__proto__=s}var P=!!(typeof window<"u"&&window.document&&window.document.createElement);function O(h,s,a){if(typeof h!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof s!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof a<"u"&&typeof a!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function p(v){return v.displayName||v.name||"Component"}return function(M){if(typeof M!="function")throw new Error("Expected WrappedComponent to be a React component.");var F=[],b;function J(){b=h(F.map(function(ce){return ce.props})),$.canUseDOM?s(b):a&&(b=a(b))}var $=function(ce){w(Re,ce);function Re(){return ce.apply(this,arguments)||this}Re.peek=function(){return b},Re.rewind=function(){if(Re.canUseDOM)throw new Error("You may only call rewind()
|
||
|
object-assign
|
||
|
(c) Sindre Sorhus
|
||
|
@license MIT
|
||
|
*/var S2,uC;function H4(){if(uC)return S2;uC=1;var E=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;function S(P){if(P==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(P)}function w(){try{if(!Object.assign)return!1;var P=new String("abc");if(P[5]="de",Object.getOwnPropertyNames(P)[0]==="5")return!1;for(var O={},h=0;h<10;h++)O["_"+String.fromCharCode(h)]=h;var s=Object.getOwnPropertyNames(O).map(function(p){return O[p]});if(s.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(p){a[p]=p}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return S2=w()?Object.assign:function(P,O){for(var h,s=S(P),a,p=1;p<arguments.length;p++){h=Object(arguments[p]);for(var v in h)A.call(h,v)&&(s[v]=h[v]);if(E){a=E(h);for(var M=0;M<a.length;M++)k.call(h,a[M])&&(s[a[M]]=h[a[M]])}}return s},S2}var K4=H4();const q4=Np(K4);var qf={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},_t={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(_t).map(function(E){return _t[E]});var Qn={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},d0={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},dg={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},F4=Object.keys(d0).reduce(function(E,A){return E[d0[A]]=A,E},{}),z4=[_t.NOSCRIPT,_t.SCRIPT,_t.STYLE],Zl="data-react-helmet",G4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},X4=function(E,A){if(!(E instanceof A))throw new TypeError("Cannot call a class as a function")},Y4=function(){function E(A,k){for(var S=0;S<k.length;S++){var w=k[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(A,w.key,w)}}return function(A,k,S){return k&&E(A.prototype,k),S&&E(A,S),A}}(),$r=Object.assign||function(E){for(var A=1;A<arguments.length;A++){var k=arguments[A];for(var S in k)Object.prototype.hasOwnProperty.call(k,S)&&(E[S]=k[S])}return E},W4=function(E,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);E.prototype=Object.create(A&&A.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(E,A):E.__proto__=A)},sC=function(E,A){var k={};for(var S in E)A.indexOf(S)>=0||Object.prototype.hasOwnProperty.call(E,S)&&(k[S]=E[S]);return k},Q4=function(E,A){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:E},D2=function(A){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return k===!1?String(A):String(A).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},J4=function(A){var k=Rp(A,_t.TITLE),S=Rp(A,dg.TITLE_TEMPLATE);if(S&&k)return S.replace(/%s/g,function(){return Array.isArray(k)?k.join(""):k});var w=Rp(A,dg.DEFAULT_TITLE);return k||w||void 0},Z4=function(A){return Rp(A,dg.ON_CHANGE_CLIENT_STATE)||function(){}},w2=function(A,k){return k.filter(function(S){return typeof S[A]<"u"}).map(function(S){return S[A]}).reduce(function(S,w){return $r({},S,w)},{})},$4=function(A,k){return k.filter(function(S){return typeof S[_t.BASE]<"u"}).map(function(S){return S[_t.BASE]}).reverse().reduce(function(S,w){if(!S.length)for(var P=Object.keys(w),O=0;O<P.length;O++){var
|
||
|
|
||
|
print(requests.post(
|
||
|
url='${ug}/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'])`})})]}),te.jsxs("details",{open:!0,className:"w-full list-none mt-5",children:[te.jsx("summary",{className:"text-2xl",children:"Sending a search request"}),te.jsx("div",{className:"mt-5 border-2 border-indigo-500/50 p-5 rounded-lg",children:te.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='${ug}/api/cache/search',
|
||
|
json={
|
||
|
'input': 'AAAAW3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADsIARIQ62dqu8s0Xpa7z2FmMPGj2hoNd2lkZXZpbmVfdGVzdCIQZmtqM2xqYVNkZmFsa3IzaioCSEQyAA=='
|
||
|
}
|
||
|
).json())`})})]}),te.jsxs("details",{open:!0,className:"w-full list-none mt-5",children:[te.jsx("summary",{className:"text-2xl",children:"PyWidevine RemoteCDM info"}),te.jsx("div",{className:"mt-5 border-2 border-indigo-500/50 p-5 rounded-lg overflow-x-auto",children:te.jsxs("p",{children:[te.jsx("strong",{children:"Device Type:"})," '",E.device_type,"'",te.jsx("br",{}),te.jsx("strong",{children:"System ID:"})," ",E.system_id,te.jsx("br",{}),te.jsx("strong",{children:"Security Level:"})," ",E.security_level,te.jsx("br",{}),te.jsx("strong",{children:"Host:"})," ",ug,"/remotecdm/widevine",te.jsx("br",{}),te.jsx("strong",{children:"Secret:"})," '",E.secret,"'",te.jsx("br",{}),te.jsx("strong",{children:"Device Name:"})," ",E.device_name]})})]}),te.jsxs("details",{open:!0,className:"w-full list-none mt-5",children:[te.jsx("summary",{className:"text-2xl",children:"PyPlayready RemoteCDM info"}),te.jsx("div",{className:"mt-5 border-2 border-indigo-500/50 p-5 rounded-lg overflow-x-auto",children:te.jsxs("p",{children:[te.jsx("strong",{children:"Security Level:"})," ",k.security_level,te.jsx("br",{}),te.jsx("strong",{children:"Host:"})," ",ug,"/remotecdm/playready",te.jsx("br",{}),te.jsx("strong",{children:"Secret:"})," '",k.secret,"'",te.jsx("br",{}),te.jsx("strong",{children:"Device Name:"})," ",k.device_name]})})]})]})}var T2={};/*
|
||
|
@license
|
||
|
Shaka Player
|
||
|
Copyright 2016 Google LLC
|
||
|
SPDX-License-Identifier: Apache-2.0
|
||
|
*/var dC;function vM(){return dC||(dC=1,function(E){(function(){var A=typeof window<"u"?window:Vk,k={};(function(w,P,O){var h;function s(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var a=typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e};function p(e){e=[typeof globalThis=="object"&&globalThis,e,typeof w=="object"&&w,typeof self=="object"&&self,typeof P=="object"&&P];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 M(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&&a(n,e,{configurable:!0,writable:!0,value:t})}}M("Symbol",function(e){function t(l){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new n(i+(l||"")+"_"+r++,l)}function n(l,c){this.g=l,a(this,"description",{configurable:!0,writable:!0,value:c})}if(e)return e;n.prototype.toString=function(){return this.g};var i="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",r=0;return t}),M("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"&&a(i.prototype,e,{configurable:!0,writable:!0,value:function(){return F(s(this))}})}return e});function F(e){return e={next:e},e[Symbol.iterator]=function(){return this},e}function b(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 J(e){if(!(e instanceof Array)){e=b(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}var $=typeof Object.create=="function"?Object.create:function(e){function t(){}return t.prototype=e,new t},ce;if(typeof Object.setPrototypeOf=="function")ce=Object.setPrototypeOf;else{var Re;e:{var ee={a:!0},be={};try{be.__proto__=ee,Re=be.a;break e}catch{}Re=!1}ce=Re?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var Oe=ce;function ot(e,t){if(e.prototype=$(t.prototype),e.prototype.constructor=e,Oe)Oe(e,t);else for(var n in t)if(n!="prototype")if(Object.defineProperties){var i=Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(e,n,i)}else e[n]=t[n];e.Tk=t.prototype}function et(){this.o=!1,this.l=null,this.h=void 0,this.g=1,this.j=this.m=0,this.A=this.i=null}function pt(e){if(e.o)throw new TypeError("Generator is already running");e.o=!0}et.prototype.u=function(e){this.h=e};function Nt(e,t){e.i={Ng:t,Zg:!0},e.g=e.m||e.j}et.prototype.return=function(e){this.i={return:e},this.g=this.j};function _(e,t,n){return e.g=n,{value:t}}et.prototype.s=function(e){this.g=e};function se(e){e.g=0}function pe(e,t,n){e.m=t,n!=null&&(e.j=n)}function rt(e,t){e.m=0,e.j=t||0}function Ue(e,t,n){e.g=t,e.m=n||0}function Me(e,t){return e.m=t||0,t=e.i.Ng,e.i=null,t}function Te(e){e.A=[e.i],e.m=0,e.j=0}function je(e,t){var n=e.A.splice(0)[0];(n=e.i=e.i||n)?n.Zg?e.g=e.m||e.j:n.s!=null&&e.j<n.s?(e.g=n.s,e.i=null):e.g=e.j:e.g=t}function ht(e){this.g=new et,this.h=e}function Tn(e,t){pt(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),Ne(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,Nt(e.g,c),Ne(e)}return e.g.l=null,i.call(e.g,l),Ne(e)}function Ne(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,Nt(e.g,n)}if(e.g.o=!1,e.g.i){if(t=e.g.i,e.g.i=null,t.Zg)throw t.Ng;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function tt(e){this.next=function(t){return pt(e
|
||
|
@license
|
||
|
Copyright 2008 The Closure Library Authors
|
||
|
SPDX-License-Identifier: Apache-2.0
|
||
|
*/var xc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/*
|
||
|
@license
|
||
|
Copyright 2006 The Closure Library Authors
|
||
|
SPDX-License-Identifier: Apache-2.0
|
||
|
*/function pn(e){var t;e instanceof pn?(Ec(this,e.Kb),this.Hc=e.Hc,Ac(this,e.nb),Cc(this,e.$c),this.ab=e.ab,io(this,e.g.clone()),this.qc=e.qc):e&&(t=String(e).match(xc))?(Ec(this,t[1]||"",!0),this.Hc=Qu(t[2]||""),Ac(this,t[3]||"",!0),Cc(this,t[4]),this.ab=Qu(t[5]||"",!0),io(this,t[6]||"",!0),this.qc=Qu(t[7]||"")):this.g=new Jn(null)}h=pn.prototype,h.Kb="",h.Hc="",h.nb="",h.$c=null,h.ab="",h.qc="",h.toString=function(){var e=[],t=this.Kb;if(t&&e.push(Ju(t,Qf,!0),":"),t=this.nb){e.push("//");var n=this.Hc;n&&e.push(Ju(n,Qf,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t=this.$c,t!=null&&e.push(":",String(t))}return(t=this.ab)&&(this.nb&&t.charAt(0)!="/"&&e.push("/"),e.push(Ju(t,t.charAt(0)=="/"?xg:Kp,!0))),(t=this.g.toString())&&e.push("?",t),(t=this.qc)&&e.push("#",Ju(t,ta)),e.join("")},h.resolve=function(e){var t=this.clone();t.Kb==="data"&&(t=new pn);var n=!!e.Kb;n?Ec(t,e.Kb):n=!!e.Hc,n?t.Hc=e.Hc:n=!!e.nb,n?Ac(t,e.nb):n=e.$c!=null;var i=e.ab;if(n)Cc(t,e.$c);else if(n=!!e.ab){if(i.charAt(0)!="/")if(this.nb&&!this.ab)i="/"+i;else{var r=t.ab.lastIndexOf("/");r!=-1&&(i=t.ab.substr(0,r+1)+i)}if(i==".."||i==".")i="";else if(i.indexOf("./")!=-1||i.indexOf("/.")!=-1){r=i.lastIndexOf("/",0)==0,i=i.split("/");for(var l=[],c=0;c<i.length;){var f=i[c++];f=="."?r&&c==i.length&&l.push(""):f==".."?((1<l.length||l.length==1&&l[0]!="")&&l.pop(),r&&c==i.length&&l.push("")):(l.push(f),r=!0)}i=l.join("/")}}return n?t.ab=i:n=e.g.toString()!=="",n?io(t,e.g.clone()):n=!!e.qc,n&&(t.qc=e.qc),t},h.clone=function(){return new pn(this)};function Ec(e,t,n){e.Kb=n?Qu(t,!0):t,e.Kb&&(e.Kb=e.Kb.replace(/:$/,""))}function Ac(e,t,n){e.nb=n?Qu(t,!0):t}function Cc(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.$c=t}else e.$c=null}function io(e,t,n){t instanceof Jn?e.g=t:(n||(t=Ju(t,O0)),e.g=new Jn(t))}function Qu(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function Ju(e,t,n){return e!=null?(e=encodeURI(e).replace(t,Tg),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Tg(e){return e=e.charCodeAt(0),"%"+(e>>4&15).toString(16)+(e&15).toString(16)}var Qf=/[#\/\?@]/g,Kp=/[#\?:]/g,xg=/[#\?]/g,O0=/[#\?@]/g,ta=/#/g;function Jn(e){this.g=e||null}function ki(e){if(!e.Va&&(e.Va=new Map,e.kd=0,e.g))for(var t=e.g.split("&"),n=0;n<t.length;n++){var i=t[n].indexOf("="),r=null;if(0<=i){var l=t[n].substring(0,i);r=t[n].substring(i+1)}else l=t[n];l=decodeURIComponent(l.replace(/\+/g," ")),r=r||"",e.add(l,decodeURIComponent(r.replace(/\+/g," ")))}}h=Jn.prototype,h.Va=null,h.kd=null;function Ba(e){return ki(e),e.kd}h.add=function(e,t){ki(this),this.g=null;var n=this.Va.has(e)?this.Va.get(e):null;return n||this.Va.set(e,n=[]),n.push(t),this.kd++,this},h.set=function(e,t){return ki(this),this.g=null,this.Va.has(e)?this.Va.set(e,[t]):this.add(e,t),this},h.get=function(e){return ki(this),this.Va.get(e)||[]},h.toString=function(){if(this.g)return this.g;if(!this.Va||!this.Va.size)return"";for(var e=[],t=b(this.Va.keys()),n=t.next();!n.done;n=t.next()){var i=n.value;n=encodeURIComponent(i),i=this.Va.get(i);for(var r=0;r<i.length;r++){var l=n;i[r]!==""&&(l+="="+encodeURIComponent(i[r])),e.push(l)}}return this.g=e.join("&")},h.clone=function(){var e=new Jn;if(e.g=this.g,this.Va){for(var t=new Map,n=b(this.Va),i=n.next();!i.done;i=n.next()){var r=b(i.value);i=r.next().value,r=r.next().value,t.set(i,r.concat())}e.Va=t,e.kd=this.kd}return e};function na(){}function dl(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=Ze(e);t=Ze(t);for(var i=0;i<e.byteLength;i++)if(n[i]!=t[i])return!1;return!0}function Sr(e){return ArrayBuffer.isView(e)?e.byteOffset==0&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer:e}function Ze(e,t,n){return n=n===void 0?1/0:n,ia(e,t===void 0?0:t,n,Uint8Array)}function Zu(e,t,n){return n=n===void 0?1/0:n,ia(e,t===void 0?0:t,n,Uint16Array)}function Ei(e,t,n){return n=n===void 0?1/0:n,ia(e,t===void 0?0:t,n,DataView)}func
|
||
|
`),Error(`Unexpected close tag
|
||
|
Line: `+(l.length-1)+`
|
||
|
Column: `+(l[l.length-1].length+1)+`
|
||
|
Char: `+e[r]);r+1&&(r+=1);break}else if(e.charCodeAt(r+1)===33){if(e.charCodeAt(r+2)==45){for(;r!==-1&&(e.charCodeAt(r)!==62||e.charCodeAt(r-1)!=45||e.charCodeAt(r-2)!=45||r==-1);)r=e.indexOf(">",r+1);r===-1&&(r=e.length)}else if(e.charCodeAt(r+2)===91&&e.charCodeAt(r+8)===91&&e.substr(r+3,5).toLowerCase()==="cdata"){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 T=i(),x={};for(y=[];e.charCodeAt(r)!==62&&e[r];){var D=e.charCodeAt(r);if(64<D&&91>D||96<D&&123>D){D=i();for(var R=e.charCodeAt(r);R&&R!==39&&R!==34&&!(64<R&&91>R||96<R&&123>R)&&R!==62;)r++,R=e.charCodeAt(r);var N=r+1;if(r=e.indexOf(e[r],N),N=e.slice(N,r),R===39||R===34){if(r===-1){if(m={tagName:T,attributes:x,children:y,parent:null},t)for(T=0;T<y.length;T++)typeof y[T]!="string"&&(y[T].parent=m);y=m;break e}}else N=null,r--;if(D.startsWith("xmlns:")){R=N;var U=D.split(":")[1];oh.set(R,U),lh.set(U,R)}T==="tt"&&D==="xml:space"&&N==="preserve"&&(m=!0),x[D]=N}r++}for(e.charCodeAt(r-1)!==47?(r++,y=n(T,m)):r++,m={tagName:T,attributes:x,children:y,parent:null},T=y.length,x=0;x<T;x++)D=y[x],typeof D!="string"?t&&(D.parent=m):x==T-1&&D==`
|
||
|
`&&y.pop();y=m}if(f.push(y),typeof y=="string")break;y.tagName[0]==="?"&&y.children&&(f.push.apply(f,J(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 ds(e){return typeof e=="string"}function ps(e){var t=[];if(!e.children)return[];e=b(e.children);for(var n=e.next();!n.done;n=e.next())n=n.value,typeof n!="string"&&t.push(n);return t}function Lt(e,t){var n=[];if(!e.children)return[];e=b(e.children);for(var i=e.next();!i.done;i=e.next())i=i.value,i.tagName===t&&n.push(i);return n}function In(e){return typeof e=="string"?Ai(e):(e=e.children.reduce(function(t,n){return typeof n=="string"?t+n:t},""),e===""?null:Ai(e))}function Xi(e){return Array.from(e.children).every(function(t){return typeof t=="string"})?((e=In(e))&&(e=e.trim()),e):null}function Ur(e,t,n){if(n=n===void 0?[]:n,e.tagName===t&&n.push(e),e.children){e=b(e.children);for(var i=e.next();!i.done;i=e.next())Ur(i.value,t,n)}return n}function An(e,t){return e=Lt(e,t),e.length!=1?null:e[0]}function Tr(e,t,n){return e=Dg(e,t,n),e.length!=1?null:e[0]}function Ge(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 wl(e,t,n){return t=$p(t),e.attributes[t+":"+n]||null}function Dg(e,t,n){var i=$p(t);if(t=[],e.children)for(n=i?i+":"+n:n,e=b(e.children),i=e.next();!i.done;i=e.next())(i=i.value)&&i.tagName===n&&t.push(i);return t}function Vo(e,t,n){t=b(t);for(var i=t.next();!i.done;i=t.next())if(i=wl(e,i.value,n))return i;return null}function Tl(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 co(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 sa(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 Zn(e){return e=Number(e),e%1===0?e:null}function xl(e){return e=Number(e),e%1===0&&0<e?e:null}function $n(e){return e=Number(e),e%1===0&&0<=e?e:null}function hs(e){return e=Number(e),isNaN(e)?null:e}function Nc(e){return e?e.toLowerCase()==="true":!1}function eh(e){var t,n=(t=e.match(/^(\d+)\/(\d+)$/))?Number(t[1])/Number(t[2]):Number(e);return isNaN(n)?null:n}function ys(e){var t=[];e=Ai(e).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/),e=b(e);for(var n=e.next();!n.done;n=e.next()){n=n.value;var i=n.match(/^([\w]+)/);if(i){var r=n.match(/(@id='(.*?)')/),l=n.match(/(@t='(\d+)')/),c=n.match(/(@n='(\d+)')/),f=n.match(/\[(\d+)\]/);t.push({name:i[0],id:r?r[0].match(/'(.*?)'/)[0].replace(/'/gm,""):null,t:l?Number(l[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,n:c?Number(c[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,position:f?Number(f[1])-1:null,ac:n.split("/@")[1]||null})}else n.startsWith("@")&&t.length&&(t[t.length-1].ac=n.slice(1))}return t}function th(e,t){var n=ys(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=nh(e,"t",i.t)),i.n!==null&&(n=nh(e,"n",i.n))),n===null?n=r==="prepend"?0:e.length:r==="prepend"?--n:r==="after"&&++n,r=t.tagName,(i=i.ac)&&e[n]?ih(e[n],r,i,Xi(t)||""):(r!=="remove"&&r!=="replace"||e.splice(n,1),r!=="add"&&r!=="replace"||e.splice.apply(e,[n,0].concat(J(t.children))))}}function nh(e,t,n){var i=0;e=b(e);for(var r=e.next();!r.done;r=e.next()){if(Number(r.value.attributes[t])===n)return i;i++}return null}function ih(e,t,n,i){t==="remove"?delete e.attributes[n]:(t==="add"||t==="replace")&&(e.attributes[n]=i)}function Og(e){var t="",n=e.tagName.split(":");0<n.length&&(t=n[0],t=lh.has(t)?lh.get(t):""),t=document.createElementNS(t,e.tagName);for(var i in e.attributes)t.setAttribute(i,e.attributes[i]);for(e=b(e.children),i=e.next();!i.done;i=e.next())i=i.value,n=void 0,typeof i=="string"?n=new Text(i):n=Og(i),t.appendChild(n);return t}function rh(e){if(!e)return null;var t={tagName:e.tagName,attributes:Xa(e.attributes),children:[],parent:null};e=b(e.children);for(var n=e.next();!n.done;n=e.nex
|
||
|
`),e=!0,n=b(n),r=n.next();!r.done;r=n.next())r=r.value,e||(e=or(i.startTime,i.endTime),t.nestedCues.push(e)),0<r.length&&(e=i.clone(),e.payload=Ai(r),t.nestedCues.push(e)),e=!1;else for(t.nestedCues.push(i),t=b(r),e=t.next();!e.done;e=t.next())uh(e.value,i,n)}function Wa(e,t){return e&&0<e.length?e:t}Pe("shaka.text.Cue",Qt),Qt.parseCuePayload=Pc,Qt.equal=ca,Qt.prototype.clone=Qt.prototype.clone;var nd="auto";Qt.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:nd};var Yi="center",Lc={LEFT:"left",RIGHT:"right",CENTER:Yi,START:"start",END:"end"};Qt.textAlign=Lc;var El="after",id={BEFORE:"before",CENTER:"center",AFTER:El};Qt.displayAlign=id;var gs="ltr";Qt.direction={HORIZONTAL_LEFT_TO_RIGHT:gs,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var xr="horizontal-tb";Qt.writingMode={HORIZONTAL_TOP_TO_BOTTOM:xr,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var Ho=0;Qt.lineInterpretation={LINE_NUMBER:Ho,PERCENTAGE:1};var Al="start",rd={CENTER:"center",START:Al,END:"end"};Qt.lineAlign=rd;var fa={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Qt.defaultTextColor=fa;var sh={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Qt.defaultTextBackgroundColor=sh;var ch=400,Qa=700;Qt.fontWeight={NORMAL:ch,BOLD:Qa};var fh="normal",ms="italic",Rg={NORMAL:fh,ITALIC:ms,OBLIQUE:"oblique"};Qt.fontStyle=Rg;var Ko="underline";Qt.textDecoration={UNDERLINE:Ko,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var Mg=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function qo(){}qo.prototype.destroy=function(){};function hi(e,t,n){lr.set(e.toLowerCase().split(";")[0]+"-"+n,{priority:n,se:t})}function Cl(e,t){for(var n=e.toLowerCase().split(";")[0],i=b([Uc,_c,da,yi]),r=i.next();!r.done;r=i.next())if(r=lr.get(n+"-"+r.value)){var l=r.se(),c=l.isSupported(e,t);if(l.destroy(),c)return r.se}return null}Pe("shaka.transmuxer.TransmuxerEngine",qo),qo.findTransmuxer=Cl,qo.unregisterTransmuxer=function(e,t){lr.delete(e.toLowerCase().split(";")[0]+"-"+t)},qo.registerTransmuxer=hi,qo.prototype.destroy=qo.prototype.destroy;var lr=new Map,yi=1,da=2,_c=3,Uc=4;qo.PluginPriority={FALLBACK:yi,PREFERRED_SECONDARY:da,PREFERRED:_c,APPLICATION:Uc};function vs(){}function hn(e,t){var n=e;return t&&!po.includes(e)&&(n+='; codecs="'+t+'"'),n}function fo(e,t){return t&&(e+='; codecs="'+t+'"'),e}function od(e,t,n){var i=hn(e,t);return t=fo(e,t),Cl(t)?(e=Cl(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 ld(e,t,n){var i=[t];return Ja.forEach(function(r,l){var c=e[l];l=="codecs"?po.includes(e.mimeType)||i.push('codecs="'+n+'"'):c&&i.push(r+'="'+c+'"')}),e.hdr=="PQ"&&i.push('eotf="smpte2084"'),i.join(";")}function bl(e){return e.split(";")[0].split("/")[1]}function gi(e){var t=jc(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 li(e){var t=[];e=b(e.split(","));for(var n=e.next();!n.done;n=e.next())n=jc(n.value),t.push(n[0]);
|
||
|
@license
|
||
|
Shaka Player
|
||
|
Copyright 2023 Google LLC
|
||
|
SPDX-License-Identifier: Apache-2.0
|
||
|
*/function su(e,t,n){this.g=e,this.i=t,this.h=n}function Dd(e,t){return z(function(n){if(n.g==1)return _(n,Nl(e.h,t,e.g.drm.preferredKeySystems,e.g.drm.keySystemsMapping),2);if(e.g.streaming.dontChooseCodecs||dh(t,e.g.preferredVideoCodecs,e.g.preferredAudioCodecs,e.g.preferredDecodingAttributes,e.g.preferredTextFormats),!t.variants.some(Go))throw new Y(2,4,4032);return n.return(Mh(e,t))})}function Jc(e,t){var n=e.g.restrictions;e=e.i;var i=!1;t=b(t.variants);for(var r=t.next();!r.done;r=t.next()){r=r.value;var l=r.allowedByApplication;r.allowedByApplication=zo(r,n,e),l!=r.allowedByApplication&&(i=!0)}return i}function Mh(e,t){var n=Jc(e,t);if(t){var i=e.h?e.h.h:null;if(i&&e.h.A)for(var r=b(t.variants),l=r.next();!l.done;l=r.next())l=l.value,Od(e,i.keySystem,l.video),Od(e,i.keySystem,l.audio);Zc(e,t)}return n}function Od(e,t,n){if(n){n=b(n.drmInfos);for(var i=n.next();!i.done;i=n.next())if(i=i.value,i.keySystem==t){i=b(i.initData||[]);for(var r=i.next();!r.done;r=i.next())r=r.value,Ds(e.h,r.initDataType,r.initData)}}}function Zc(e,t){e=e.h?e.h.Yd():{};var n=Object.keys(e);n=n.length&&n[0]=="00";var i=!1,r=!1,l=new Set,c=new Set;t=b(t.variants);for(var f=t.next();!f.done;f=t.next()){f=f.value;var y=[];f.audio&&y.push(f.audio),f.video&&y.push(f.video),y=b(y);for(var m=y.next();!m.done;m=y.next())if(m=m.value,m.keyIds.size){m=b(m.keyIds);for(var T=m.next();!T.done;T=m.next()){T=T.value;var x=e[n?"00":T];x?kd.includes(x)&&c.add(x):l.add(T)}}f.allowedByApplication?f.allowedByKeySystem&&(i=!0):r=!0}if(!i)throw e={hasAppRestrictions:r,missingKeys:Array.from(l),restrictedKeyStatuses:Array.from(c)},new Y(2,4,4012,e)}var kd=["output-restricted","internal-error"];function Ps(){}function cu(e,t){Bl.set(e,t)}function Ls(){var e={};if(oo())for(var t=b(Bl.keys()),n=t.next();!n.done;n=t.next())e[n.value]=!0;for(t=b(["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]=oo()?Bl.has(n):Dc(n);return e}function _s(e,t){if(t){var n=Bl.get(t.toLowerCase());if(n)return n}throw new Y(2,4,4e3,e,t)}Pe("shaka.media.ManifestParser",Ps),Ps.unregisterParserByMime=function(e){Bl.delete(e)},Ps.registerParserByMime=cu,Ps.registerParserByExtension=function(){Ot("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")},Ps.AccessibilityPurpose={Nk:"visually impaired",dk:"hard of hearing"};var Bl=new Map;function va(e,t){var n=null,i=null,r=null,l=null,c=e.S();return t&1&&(r=e.bd()),t&2&&(l=e.S()),t&8&&(n=e.S()),t&16&&(i=e.S()),{trackId:c,ld:n,md:i,Wh:r,rh:l}}function fu(e,t){return t==1?(t=e.S(),e=e.S(),{baseMediaDecodeTime:t*Math.pow(2,32)+e}):{baseMediaDecodeTime:e.S()}}function $c(e,t){return t==1?(e.skip(8),e.skip(8)):(e.skip(4),e.skip(4)),t=e.S(),e.skip(4),e=e.na(),{timescale:t,language:String.fromCharCode((e>>10)+96)+String.fromCharCode(((e&960)>>5)+96)+String.fromCharCode((e&31)+96)}}function ef(e,t,n){var i=e.S(),r=[],l=null;n&1&&(l=e.$f()),n&4&&e.skip(4);for(var c=0;c<i;c++){var f={gg:null,sampleSize:null,ye:null};n&256&&(f.gg=e.S()),n&512&&(f.sampleSize=e.S()),n&1024&&e.skip(4),n&2048&&(f.ye=t==0?e.S():e.$f()),r.push(f)}return{Sk:i,fg:r,nf:l}}function du(e){e.skip(6),e.skip(2),e.skip(8);var t=e.na();return e.skip(2),e.skip(2),e.skip(2),e=e.na()+e.na()/65536,{channelCount:t,sampleRate:e}}function Nh(e){return e=e.S(),{codec:Vr(e)}}function Hr(e){var t=null,n=null,i=e.Cb(4),r=String.fromCharCode(i[0]);if(r+=String.fromCharCode(i[1]),r+=String.fromCharCode(i[2]),r+=String.fromCharCode(i[3]),r==="nclx"){switch(e.na()){case 1:case 5:case 6:case 7:t="srgb";break;case 9:t="rec2020";break;case 11:case 12:t="p3"}switch(i=e.na(),e.na(),i){case 1:case 6:case 13:case 14:case 15:n="SDR";break;case 16:n="PQ";break;case 18:n="HLG"}}return{colorGamut:t,Nd:n}}function ar(e,t){return t=t===void 0?!1:t,e=e.toString(16).toUpperCase(),t?e:("0"+e).slice(-2)}function Xn(e){return(10>e?"0":"")+e}function Sa(e){if(!Ph){Ph=!0;var t=new Uint8Array([105,115,111,109]),n=new Uint8Array([97,118,99,49]),i=new Uint8Array([0,0
|
||
|
@license
|
||
|
Shaka Player
|
||
|
Copyright 2022 Google LLC
|
||
|
SPDX-License-Identifier: Apache-2.0
|
||
|
*/function Pd(){}function uf(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 js(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 Rn(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 U0(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=nn(Ze(e.data,1,n)),r=e.data[2+n],l=e.data.subarray(3+n).indexOf(0);if(l===-1)return null;var c=nn(Ze(e.data,3+n,l)),f;return i==="-->"?f=nn(Ze(e.data,4+n+l)):f=Sr(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=nn(Ze(e.data,1,i)),e=nn(Ze(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=nn(Ze(e.data,1,i)),e=nn(Ze(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=nn(Ze(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=Sr(e.data.subarray(n.length+1)),t.data=e),t):e.type[0]==="T"?2>e.size||e.data[0]!==3?null:(e=nn(e.data.subarray(1)).replace(/\0*$/,""),t.data=e,t):e.type[0]==="W"?(e=nn(e.data).replace(/\0*$/,""),t.data=e,t):e.data?(t.data=Sr(e.data),t):null}function yu(e){for(var t=0,n=[];uf(e,t);){var i=Rn(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=Rn(r,4);r={type:String.fromCharCode(r[0],r[1],r[2],r[3]),size:l,data:r.subarray(10,10+l)},(l=U0(r))&&n.push(l),t+=r.size+10}js(e,t)&&(t+=10)}return n}function gu(e,t){for(var n=t=t===void 0?0:t,i=0;uf(e,t);)e[t+5]>>6&1&&(i+=10),i+=10,i+=Rn(e,t+6),js(e,t+10)&&(i+=10),t+=i;return 0<i?e.subarray(n,n+i):new Uint8Array([])}Pe("shaka.util.Id3Utils",Pd),Pd.getID3Data=gu,Pd.getID3Frames=yu;function Ir(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=Ze(t,0,n)}this.i=this.j.byteLength,this.g=this.h=0}function Jo(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 Zt(n,0).S(),e.g=8*i,e.i-=i)}function Ui(e,t){if(e.g<=t){t-=e.g;var n=Math.floor(t/8);t-=8*n,e.g-=n,Jo(e)}e.h<<=t,e.g-=t}function mt(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&&Jo(e),n=t-n,0<n?i<<n|mt(e,n):i}function mu(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 Jo(e),t+mu(e)}function Mn(e){Ui(e,1+mu(e))}function Le(e){var t=mu(e);return mt(e,t+1)-1}function xa(e){return e=Le(e),1&e?1+e>>>1:-1*(e>>>1)}function Ke(e){return mt(e,1)===1}function Rt(e){return mt(e,8)}function Bs(e,t){for(var n=8,i=8,r=0;r<t;r++)i!==0&&(i=xa(e),i=(n+i+256)%256),n=i===0?n:i}function Ld(e){return Rt(e),Le(e),Le(e)}Pe("shaka.util.ExpGolomb",Ir);function $t(){this.G=null,this.H=!1,this.m=this.I=null,this.j=[],this.g=[],this.A=this.B=null,this.i=[],this.h=[],this.C=null,this.l=[],this.F=this.o=this.u=null}h=$t.prototype,h.clearData=function(){this.j=[],this.g=[],this.i=[],this.h=[],this.l=[]},h.parse=function(e){if(564>e.length)return this;for(var t=Math.max(0,_d(e)),n=e.length-(e.length+t)%188,i=!1,r=t;r<n;r+=188)if(e[r]==71){var l=!!(e[r+1]&64),c=((e[r+1]&31)<<8)+e[r+2];if(1<(e[r+3]&48)>>4){var f=r+5+e[r+4];if(f==r+188)continue}else f=r+4;switch(c){case 0:l&&(f+=e[f]+1),this.G=(e[f+10]&31)<<8|e[f+11];break;case 17:case 8191:break;case this.G:l&&(f+=e[f]+1),l=e,c={audio:-1,video:-1,ce:-1,audioCodec:"",videoCodec:""};var y=f+3+((l[f+1]&15)<<8|l[f+2])-4;for(f+=12+((l[f+10]&15)<<8|l[f+11]);f<y;){var m=(l[f+1]&31)<<8|l[f+2],T=(l[f+3]&15)<
|
||
|
`;if(e.nestedCues.length)return e.nestedCues.map(function(c){return bf(c,e)}).join("");if(!e.payload)return e.payload;var n=[],i=e.fontWeight>=Qa,r=e.fontStyle==ms,l=e.textDecoration.includes(Ko);return i&&n.push(["b"]),r&&n.push(["i"]),l&&n.push(["u"]),r=e.color,r==""&&t&&(r=t.color),i="",(r=np(r))&&(i+="."+r),r=e.backgroundColor,r==""&&t&&(r=t.backgroundColor),(t=np(r))&&(i+=".bg_"+t),i&&n.push(["c",i]),n.reduceRight(function(c,f){var y=b(f);return f=y.next().value,y=y.next().value,"<"+f+(y===void 0?"":y)+">"+c+"</"+f+">"},e.payload)}function np(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 If(e,t){var n=[];e=b(Df(e));for(var i=e.next();!i.done;i=e.next())if(i=i.value,i.isContainer)n.push.apply(n,J(If(i.nestedCues,i)));else{var r=i.clone();r.nestedCues=[],r.payload=bf(i,t),n.push(r)}return n}function Df(e){var t=[];e=b(e);for(var n=e.next(),i={};!n.done;i={jf:void 0},n=e.next())i.jf=n.value,t.some(function(r){return function(l){return ca(r.jf,l)}}(i))||t.push(i.jf);return t}function jm(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 ci(e,t){for(this.h=e,this.i=t,this.g=null,e=b(Array.from(this.h.textTracks)),t=e.next();!t.done;t=e.next())t=t.value,t.kind!=="metadata"&&t.kind!=="chapters"&&(t.mode="disabled",t.label==this.i&&(this.g=t));this.g&&(this.g.mode="hidden")}h=ci.prototype,h.configure=function(){},h.remove=function(e,t){return this.g?(ay(this.g,function(n){return n.startTime<t&&n.endTime>e}),!0):!1},h.append=function(e){if(this.g){var t=If(e),n=[];e=this.g.cues?Array.from(this.g.cues):[],t=b(t);for(var i=t.next(),r={};!i.done;r={Tc:void 0},i=t.next())r.Tc=i.value,!e.some(function(l){return function(c){return c.startTime==l.Tc.startTime&&c.endTime==l.Tc.endTime&&c.text==l.Tc.payload}}(r))&&r.Tc.payload&&(i=jm(r.Tc))&&n.push(i);for(e=n.slice().sort(function(l,c){return l.startTime!=c.startTime?l.startTime-c.startTime:l.endTime!=c.endTime?l.endTime-c.startTime:"line"in VTTCue.prototype?n.indexOf(c)-n.indexOf(l):n.indexOf(l)-n.indexOf(c)}),e=b(e),t=e.next();!t.done;t=e.next())this.g.addCue(t.value)}},h.destroy=function(){return this.g&&(ay(this.g,function(){return!0}),this.g.mode="disabled"),this.g=this.h=null,Promise.resolve()},h.isTextVisible=function(){return this.g?this.g.mode=="showing":!1},h.setTextVisibility=function(e){e&&!this.g&&Bm(this),this.g&&(this.g.mode=e?"showing":"hidden")},h.setTextLanguage=function(){},h.enableTextDisplayer=function(){Bm(this)};function Bm(e){e.h&&!e.g&&(e.g=e.h.addTextTrack("subtitles",e.i),e.g.mode="hidden")}function ay(e,t){var n=e.mode;e.mode=n=="showing"?"showing":"hidden";for(var i=b(Array.from(e.cues)),r=i.next();!r.done;r=i.next())(r=r.value)&&t(r)&&e.removeCue(r);e.mode=n}Pe("shaka.text.SimpleTextDisplayer",ci),ci.prototype.enableTextDisplayer=ci.prototype.enableTextDisplayer,ci.prototype.setTextLanguage=ci.proto
|
||
|
|
||
|
`,i=b(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 Yi: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 ip(e,t){this.h=e,this.g=t,this.i=void 0,this.u=!1,this.F=!0,this.l=this.B=!1,this.o=this.m=void 0,this.A=0,this.G=!1,this.C=new vt,this.j=null}ip.prototype.setMediaElement=function(e){this.j=e,o1(this)},ip.prototype.configure=function(e){this.g=e};function Km(e){e.u=!1,e.F=!0,e.B=!1,e.l=!1,e.m=0,e.o=0,e.A=0,e.G=!1,e.j=null,e.C.Qa()}function cy(e,t){e.l=t,e.l?e.i==Pu?e.i=Mf:e.i==up&&(e.i=Lu):e.i==Mf?e.i=Pu:e.i==Lu&&(e.i=up)}function qm(e,t){if(e.g&&e.g.enabled&&e.g.version==gy&&e.j&&e.j.autoplay){var n=e.j.play();n&&n.then(function(){e.A=t}).catch(function(){e.A=0})}}function rp(e,t,n){try{if(!e.g.enabled)return t;var i=fy(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=ka;break e;case"video/webm":case"video/mp4":case"video/mpeg":case"video/mp2t":r=lp;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=sc;break e}r=void 0}i.ot=r,i.su=!0;var l=Io(i);return ll(t,l)}catch(c){return _o("CMCD_SRC_ERROR","Could not generate src CMCD data.",c),t}}function o1(e){e.C.ma(e.j,"play",function(){e.m||(e.m=Date.now())}),e.C.ma(e.j,"playing",function(){e.o||(e.o=Date.now())})}function fy(e){return e.g.sessionId||(e.g.sessionId=w.crypto.randomUUID()),{v:e.g.version,sf:e.i,sid:e.g.sessionId,cid:e.g.contentId,mtp:e.h.getBandwidthEstimate()/1e3}}function Da(e,t,n){n=n===void 0?{}:n;var i=i===void 0?e.g.useHeaders:i;if(e.g.enabled){Object.assign(n,fy(e)),n.pr=e.h.gb();var r=n.ot===Do||n.ot===lp;if(e.B&&r&&(n.bs=!0,n.su=!0,e.B=!1),n.su==null&&(n.su=e.F),n.v===gy&&(e.h.U()&&(n.ltc=e.h.Zd()),r=!e.G&&e.o&&e.m?e.o-(e.A||e.m):void 0,r!=null&&(n.msd=r,e.G=!0)),e=dy(e,n),i)i=Oa(e),Object.keys(i).length&&Object.assign(t.headers,i);else{var l=Io(e);l&&(t.uris=t.uris.map(function(c){return ll(c,l)}))}}}function dy(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 op(e){if(e.type===0)return Fm;if(e=e.stream){var t=e.type;if(t=="video")return e.codecs&&e.codecs.includes(",")?lp:Do;if(t=="audio")return ka;if(t=="text")return e.mimeType==="application/mp4"?ap:Nu}}function py(e,t){if(t=e.h.Fb()[t],!t.length)return NaN;var n=e.h.getCurrentTime();return(e=t.find(function(i){return i.start<=n&&i.end>=n}))?1e3*(e.end-n):NaN}function hy(e,t){if(t=e.h.Fb()[t],!t.length)return 0;var n=e.h.getCurrentTime();return(e=t.find(function(i){return i.start<=n&&i.end>=n}))?1e3*(e.end-n):0}function yy(e,t){var n=e.h.Rb();if(!n.length)return NaN;e=n[0],n=b(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 Do:return e.videoBandwidth||NaN;case ka:return e.audioBandwidth||NaN;default:return e.bandwidth}}function Io(e){function t(x){return 100*n(x/100)}function n(x){return Math.round(x)}function i(x){return!Number.isNaN(x)&&x!=null&&x!==""&&x!==!1}var r=[],l={br:n,d:n,bl:t,dl:t,mtp:t,nor:function(x){return encodeURIComponent(x)},rtp:t,tb:n},c=Object.keys(e||{}).sort();c=b(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 T=void 0;T=m==="string"&&f!=="ot"&&f!=="sf"&&f!=="st"?f+"="+JSON.stringify(y):m==="boolean"?f:m==="symbol"?f+"="+y.description:f+"="+y,r.push(T)}}return r.join(",")}function Oa(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=b(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=Io(r[e]))&&(n["CMCD-"+i[e]]=l);return n}function ll(e,t){return!t||e.includes("offline:")?e:(e=new pn(e),e.g.set("CMCD",t),e.toString())}var sc="m",ka="a",Do="v",lp="av",Fm="i",Nu="c",ap="tt",gy=2,Pu="d",Mf="ld",up="h",Lu="lh";Pe("shaka.util.CmcdManager.StreamingFormat",{
|
||
|
`).trim();var n=t.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(n[0]))throw new Y(2,4,4015);t=0;for(var i=!0,r=b(n),l=r.next();!l.done;l=r.next())if(l=l.value,/^#(?!EXT)/m.test(l)||i)i=!1;else if(l=W1(e,l),--e.g,$T.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=W1(e,c),MI.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=b(c);for(var y=c.next();!y.done;y=c.next())y=y.value,/^(#EXT)/.test(y)?(y=W1(e,y),$T.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 WT(y,i,l)),i=[],l=[]);return l.length&&(f&&i.push(f),n.push(new WT("",i,l))),new XT(t,r,n)}r.push(c),c.name=="EXT-X-STREAM-INF"&&(c.attributes.push(new Tv("URI",f)),i=!0)}}return new XT(t,r)}function W1(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 ua(i);var l;(l=za(i,/^([^,=]+)(?:,|$)/g))&&(r=l[1]);for(var c=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;l=za(i,c);)n.push(new Tv(l[1],l[2]||l[3])),ss(i)}return new wv(e,t,n,r)}var $T="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(" "),MI="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 ex(){}function tx(e,t){try{var n=xv(e);return Cr({uri:e,originalUri:e,data:n.data,headers:{"content-type":n.contentType},originalRequest:t})}catch(i){return _l(i)}}function xv(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=w.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=Fi(e):r=Pr(e),{data:r,contentType:n}}Pe("shaka.net.DataUriPlugin",ex),ex.parse=tx,go("data",tx);function Ev(){var e=this;this.g=this.h=null,this.F=1,this.A=new Map,this.I=new Map,this.M=new Map,this.M.set("video",new Map),this.M.set("audio",new Map),this.M.set(at,new Map),this.M.set("image",new Map),this.Sb=new Map().set("com.apple.streamingkeydelivery",function(t,n,i){return nD(e,t,n,i)}).set("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",function(t){var n=Ft(t,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(n)){var i="cenc";n=="SAMPLE-AES"&&(i="cbcs"),n=Ft(t,"URI"),n=xv(n.split("?")[0]),n=Ze(n.data),i=Lr("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=Ft(t,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(n)){var i="cenc";n=="SAMPLE-AES"&&(i="cbcs"),t=Ft(t,"URI"),t=xv(t.split("?")[0]),t=Ze(t.data),n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),n=Yc(t,n,new Set,0),i=Lr("com.microsoft.playready",i,[{initDataType:"cenc",initData:n}]),(t=Ya(["<PLAYREADY>",Bo(t),"</PLAYREADY>"].join(`
|
||
|
`)))&&(i.licenseServerUri=cv(t)),i=Promise.resolve(i)}else i=Promise.resolve(null);return i}).set("urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c",function(t){var n=Ft(t,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(n)){var i="cenc";n=="SAMPLE-AES"&&(i="cbcs"),n=Ft(t,"URI"),n=xv(n.split("?")[0]),n=Ze(n.data),i=Lr("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.Na=new Set,this.i=new Map,this.l=null,this.C="",this.Ga=new RI,this.K=-1,this.ea=1/0,this.$=this.Ub=this.Ma=!1,this.B=new dt(function(){if(e.W&&!e.g.continueLoadingWhenPaused&&(e.T.Ja(e.W,"timeupdate"),e.W.paused)){e.T.ma(e.W,"timeupdate",function(){return xx(e)});return}xx(e)}),this.Ea=Dv,this.m=null,this.La=0,this.o=1/0,this.Fa=this.Aa=this.P=0,this.Z=new yo,this.G=new Map,this.H=new Map,this.sa=new Map,this.ka=new Map,this.L=new Map,this.oa=new Map,this.pa=new Map,this.Tb=this.fa=!1,this.Pb=new Wu(5),this.j=null,this.O=!0,this.ya=new Set,this.T=new vt,this.u=this.W=null,this.Qb=function(){return!1}}h=Ev.prototype,h.configure=function(e,t){var n=this.h&&e.updatePeriod!=this.g.updatePeriod&&0<=e.updatePeriod;this.g=e,t&&(this.Qb=t),this.j&&this.j.configure(this.g),n&&this.m&&this.m.presentationTimeline.U()&&this.B.sb()},h.start=function(e,t){var n=this,i;return z(function(r){return r.g==1?(n.h=t,n.fa=t.isLowLatencyMode(),_(r,iS(n,[e]).promise,2)):r.g!=3?(i=r.h,n.C=i.uri,_(r,LI(n,i.data),3)):r.return(n.m)})},h.stop=function(){this.B&&(this.B.stop(),this.B=null);var e=[];return this.Z&&(e.push(this.Z.destroy()),this.Z=null),this.g=this.h=null,this.Na.clear(),this.m=null,this.i.clear(),this.I.clear(),this.H.clear(),this.A.clear(),this.sa.clear(),this.ka.clear(),this.L.clear(),this.oa.clear(),this.pa.clear(),this.ya.clear(),this.j&&this.j.destroy(),this.T&&(this.T.release(),this.T=null),Promise.all(e)},h.update=function(){var e=this,t,n,i,r,l,c,f,y,m,T,x,D;return z(function(R){if(R.g==1){if(!Zi(e))return R.return();for(t=[],n=Array.from(e.i.values()),e.o=1/0,e.m.gapCount=0,i=n.filter(function(N){return N.stream.segmentIndex}),r=b(i),l=r.next();!l.done;l=r.next())c=l.value,t.push(NI(e,c));return _(R,Promise.all(t),2)}for(sx(e,i.map(function(N){return N.stream})),f=i.some(function(N){return N.rd==0}),i.length&&!f&&(y=aD,bv(e,y.Ph),m=i.map(function(N){return N.Vb}),e.l.bb(Math.min.apply(Math,J(m))),e.h.updateDuration()),f&&J1(e),T=b(i),x=T.next();!x.done;x=T.next())D=x.value,D.stream.isAudioMuxedInVideo||!D.stream.segmentIndex||Hn(D.stream.segmentIndex)||e.h.disableStream(D.stream);se(R)})};function Q1(e,t){return Zi(e)?e.M.get(t.type):t.je}function NI(e,t){var n,i,r,l,c,f,y,m,T,x,D,R,N,U,L,j,V,X,G,Z,q,K,W,Q,oe,ne,re,le,fe,ye,de,xe,De,Je,Ve,Pt;return z(function(Tt){switch(Tt.g){case 1:if(t.stream.isAudioMuxedInVideo)return Tt.return();for(n=[],i=b(t.N()),r=i.next();!r.done;r=i.next())l=r.value,c=new pn(l),f=c.g,t.Td&&(0<=t.Ab&&f.add("_HLS_msn",String(t.Ab)),0<=t.Bb&&f.add("_HLS_part",String(t.Bb))),t.Ud&&f.add("_HLS_skip","YES"),Ba(f)&&io(c,Qu(f.toString())),n.push(c.toString());return pe(Tt,2),_(Tt,iS(e,n,!0).promise,4);case 4:y=Tt.h,Ue(Tt,3);break;case 2:throw m=Me(Tt),e.h&&e.h.disableStream(t.stream),m;case 3:if(!t.stream.segmentIndex)return Tt.return();if(T=Y1(e.Ga,y.data),T.type!=1)throw new Y(2,4,4017);return x=y.uri,x==y.originalUri||t.N().includes(x)||t.ve.push(x),D=Oo(T.ca,"EXT-X-DEFINE"),R=Z1(e,D,x),N=t.stream,U=Q1(e,t),_(Tt,px(e,T,N.mimeType,t.N,R),5);case 5:for(L=Tt.h,j=L.keyIds,V=L.drmInfos,X=L.encrypted,G=L.Bg,N.encrypted||!X||G||(N.encrypted=!0),Z=function(ft,gt){return ft.size===gt.size&&[].concat(J(ft)).every(function(Mt){return gt.has(Mt)})},Z(N.keyIds,j)||(N.keyIds=j,N.drmInfos=V,e.h.newDrmInfo(N)),q=Sx(e,T,U,R,t.N,t.type),K=q.segments,(W=q.bandwidth)&&(N.bandwidth=W),Q=Zs(N),oe=b(K),ne=oe.next();!ne.done;ne=oe.next())re=ne.value,re.Y&&(re.Y.Wc=Q);N.segmentIndex.Bd(K,e.l.pb()),K.length&&(le=xp(T.ca,"EXT-X-MEDIA-SEQUENCE",0),ye=(fe=Ti(T.ca,"EXT-X-SKIP"))?Number(He(fe,"SKIPPED-SEGMENTS")):0,de=fx(le,K),xe=de.Ab,
|
||
|
`);e={},t=b(t);for(var n=t.next();!n.done;n=t.next())n=n.value.split(": "),e[n[0].toLowerCase()]=n.slice(1).join(": ");return e}Pe("shaka.net.HttpXHRPlugin",kx),kx.parse=Mv;var xD=w.XMLHttpRequest;go("http",Mv,1,!0),go("https",Mv,1,!0),go("blob",Mv,1,!0);function Mx(e,t,n,i,r){this.g=e,this.i=t,this.groupId=n,this.h=i,this.j=r}function sS(e){var t=e.Ib(!1);return t?Bo(t):e.N().map(function(n){return"{"+encodeURI(n.split("#xywh=")[0])+"}"}).join("")+":"+e.Sa+":"+e.wa}function ED(e,t){return Sf(e.g.N(),e.g.Sa,e.g.wa,t.streaming.retryParameters)}function Nx(){this.g=this.j=this.i=0,this.h=new Map,this.l=0}function Px(e,t){e.i+=t;var n=e.l;return e.l++,e.h.set(n,t),n}Nx.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 Lx(e){return e.i==0?0:e.j/e.i}function _x(e){var t=this;this.u=e,this.i=new Map,this.h=new Is(function(){return cS(t).catch(function(){})}),this.j=[],this.o=function(){},this.m=function(){},this.g=new Nx,this.l=!1}_x.prototype.destroy=function(){return this.h.destroy()};function AD(e,t,n){e.o=t,e.m=n}function cS(e){e.l=!0;var t=e.j.map(function(n){return n()});return e.j=[],Promise.all(t)}function CD(e,t,n,i,r,l){ct(e.h);var c=(e.i.get(t)||Promise.resolve()).then(function(){var f,y,m,T,x,D,R;return z(function(N){if(N.g==1)return _(N,DD(e,n),2);if(f=N.h,e.h.g)throw new Y(2,9,7001);if(r)for(T in y=Ze(f),m=new xd(y),m.data)x=Number(T),D=m.data[x],R=m.g[x],e.m(D,R);return e.g.close(i,f.byteLength),e.o(Lx(e.g),e.g.g),N.return(l(f))})});e.i.set(t,c)}function bD(e,t,n,i,r,l){ct(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=Ze(n);f=new xd(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(Lx(e.g),e.g.g),l(n)});e.i.set(t,c)}function ID(e){return z(function(t){return t.g==1?_(t,Promise.all(e.i.values()),2):t.return(e.g.g)})}function DD(e,t){var n,i,r,l;return z(function(c){return c.g==1?(n=Wi,i=e.u.request(n,t),r=function(){return i.abort()},e.j.push(r),_(c,i.promise,2)):(l=c.h,_r(e.j,r),c.return(l.data))})}function Nv(e,t){var n=this;this.i=e,this.h=e.objectStore(t),this.g=new kt,e.onabort=function(i){i.preventDefault(),n.g.reject()},e.onerror=function(i){i.preventDefault(),n.g.reject()},e.oncomplete=function(){n.g.resolve()}}Nv.prototype.abort=function(){var e=this;return z(function(t){if(t.g==1){try{e.i.abort()}catch{}return pe(t,2),_(t,e.g,4)}if(t.g!=2)return Ue(t,0);Me(t),se(t)})};function fS(e,t){return new Promise(function(n,i){var r=e.h.openCursor();r.onerror=i,r.onsuccess=function(){var l;return z(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(),se(c)})}})}Nv.prototype.store=function(){return this.h},Nv.prototype.promise=function(){return this.g};function dS(e){this.h=e,this.g=[]}dS.prototype.destroy=function(){return Promise.all(this.g.map(function(e){return e.abort()}))};function jf(e,t){return Pv(e,t,"readwrite")}function Pv(e,t,n){n=e.h.transaction([t],n);var i=new Nv(n,t);return e.g.push(i),i.promise().then(function(){_r(e.g,i)},function(){_r(e.g,i)}),i}function Bf(e,t,n){this.h=new dS(e),this.i=t,this.g=n}h=Bf.prototype,h.destroy=function(){return this.h.destroy()},h.hasFixedKeySpace=function(){return!0},h.addSegments=function(){return Ux(this.i)},h.removeSegments=function(e,t){return jx(this,this.i,e,t)},h.getSegments=function(e){var t=this,n;return z(function(i){return i.g==1?_(i,Bx(t,t.i,e),2):(n=i.h,i.return(n.map(function(r){return t.Ig(r)})))})},h.addManifests=function(){return Ux(this.g)},h.updateManifest=function(){return Promise.reject(new Y(2,9,9016,"Cannot modify values in "+this.g))};function OD(e,t,n){e=jf(e.h,e.g);var i=e.store();return i.get(t).onsuccess=function(){i.put(n,t)},e.promise()}h.updateManifestExpiration=function(e,t){var n=jf(this.h,this.g),i=n.store();return i.get(e).onsuccess=function(r){(r=r.target.result)&&(r.expiration=t,i.put(r,e))},n.promise()},h.removeManifests=function(e,t){return jx(this,this.g,e,t)},h.getManifests=function(e){var t=this
|
||
|
`}),y=Ur(l,"style"),l=Ur(l,"region"),m=[];for(var R=b(l),N=R.next();!N.done;N=R.next())(N=GO(N.value,y,D))&&m.push(N);if(Lt(r,"p").length)throw new Y(2,2,2001,"<p> can only be inside <div> in TTML");for(D=b(Lt(r,"div")),R=D.next();!R.done;R=D.next())if(Lt(R.value,"span").length)throw new Y(2,2,2001,"<span> can only be inside <p> in TTML");return(t=VE(r,t,c,f,y,l,m,x,T,null,!1,n,i))&&(t.backgroundColor||(t.backgroundColor="transparent"),e.push(t)),e};function VE(e,t,n,i,r,l,c,f,y,m,T,x,D){var R=m;if(ds(e)){if(!T)return null;var N={tagName:"span",children:[In(e)],attributes:{},parent:null}}else N=e;for(var U=null,L=b(QE),j=L.next();!j.done&&!(U=zv(N,"backgroundImage",i,"#",j.value)[0]);j=L.next());L=null,j=Vo(N,QE,"backgroundImage");var V=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/;if(j&&V.test(j)){if(L=parseInt(j.split(":").pop(),10)-1,L>=D.length)return null;L=D[L]}else x&&j&&!j.startsWith("#")&&(V=new pn(x),j=new pn(j),(j=V.resolve(j).toString())&&(L=j));if((e.tagName=="p"||U||L)&&(T=!0),e=T,j=(N.attributes["xml:space"]||(f?"default":"preserve"))=="default",V=N.children.every(ds),f=[],!V)for(var X=b(N.children),G=X.next();!G.done;G=X.next())(G=VE(G.value,t,n,i,r,l,c,j,y,N,T,x,D))&&f.push(G);if(i=m!=null,x=In(N),x=N.children.length&&x&&/\S/.test(x),X=N.attributes.begin||N.attributes.end||N.attributes.dur,!(X||x||N.tagName=="br"||f.length!=0||i&&!j))return null;for(D=qE(N,n),x=D.start,D=D.end;R&&R.tagName&&R.tagName!="tt";)D=YO(R,n,x,D),x=D.start,D=D.end,R=R.parent;if(x==null&&(x=0),x+=t.periodStart,D=D==null?1/0:D+t.periodStart,x=Math.max(x,t.segmentStart),D=Math.min(D,t.segmentEnd),!X&&0<f.length)for(x=1/0,D=0,t=b(f),n=t.next();!n.done;n=t.next())n=n.value,x=Math.min(x,n.startTime),D=Math.max(D,n.endTime);if(N.tagName=="br")return r=new Qt(x,D,""),r.lineBreak=!0,r;if(t="",V&&(t=Ai(In(N)||""),j&&(t=t.replace(/\s+/g," "))),t=new Qt(x,D,t),t.nestedCues=f,T||(t.isContainer=!0),y&&(t.cellResolution=y),y=zv(N,"region",l,"")[0],N.attributes.region&&y&&y.attributes["xml:id"]){var Z=y.attributes["xml:id"];t.region=c.filter(function(q){return q.id==Z})[0]}return c=y,m&&i&&!N.attributes.region&&!N.attributes.style&&(c=zv(m,"region",l,"")[0]),XO(t,N,c,U,L,r,e,f.length==0),t}function GO(e,t,n){var i=new Fa,r=e.attributes["xml:id"];if(!r)return null;i.id=r,r=null,n&&(r=BS.exec(n)||VS.exec(n)),n=r?Number(r[1]):null,r=r?Number(r[2]):null;var l,c=Fv(e,t,"extent");if(c){var f=(l=BS.exec(c))||VS.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?Gi:0,i.heightUnits=l||r!=null?Gi:0)}return(e=Fv(e,t,"origin"))&&(f=(l=BS.exec(e))||VS.exec(e),f!=null&&(i.viewportAnchorX=Number(f[1]),i.viewportAnchorY=Number(f[2]),l?c||(i.width=100-i.viewportAnchorX,i.widthUnits=Gi,i.height=100-i.viewportAnchorY,i.heightUnits=Gi):(r!=null&&(i.viewportAnchorY=100*i.viewportAnchorY/r),n!=null&&(i.viewportAnchorX=100*i.viewportAnchorX/n)),i.viewportAnchorUnits=l||n!=null?Gi:0)),i}function LS(e){var t=e.match(/rgba\(([^)]+)\)/);return t&&(t=t[1].split(","),t.length==4)?(t[3]=String(Number(t[3])/255),"rgba("+t.join(",")+")"):e}function XO(e,t,n,i,r,l,c,f){if(c=c||f,Li(t,n,l,"direction",c)=="rtl"&&(e.direction="rtl"),f=Li(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=gs),(f=Li(t,n,l,"textAlign",!0))?(e.positionAlign=$O.get(f),e.lineAlign=ZO.get(f),e.textAlign=Lc[f.toUpperCase()]):e.textAlign=Yi,(f=Li(t,n,l,"displayAlign",!0))&&(e.displayAlign=id[f.toUpperCase()]),(f=Li(t,n,l,"color",c))&&(e.color=LS(f)),(f=Li(t,n,l,"backgroundColor",c))&&(e.backgroundColor=LS(f)),(f=Li(t,n,l,"border",c))&&(e.border=f),f=Li(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=fs(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=b(n[0].split(`
|
||
|
`)),r=i.next();!r.done;r=i.next())if(r=r.value,/^Region:/.test(r)){r=new ua(r);var l=new Fa;Ga(r),ss(r);for(var c=Ga(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"),ss(r),c=Ga(r)}t.push(l)}for(i=new Map,ah(i),r=[],n=b(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=b(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 Qt(0,0,""));for(var T=!1,x=0;x<y.length;x++){var D=/^\s*([^:]+):\s*(.*)/.exec(y[x]);if(D){var R=D[2].trim().replace(";","");switch(D[1].trim()){case"background-color":case"background":T=!0,m.backgroundColor=R;break;case"color":T=!0,m.color=R;break;case"font-family":T=!0,m.fontFamily=R;break;case"font-size":T=!0,m.fontSize=R;break;case"font-weight":(700<=parseInt(R,10)||R=="bold")&&(T=!0,m.fontWeight=Qa);break;case"font-style":switch(R){case"normal":T=!0,m.fontStyle=fh;break;case"italic":T=!0,m.fontStyle=ms;break;case"oblique":T=!0,m.fontStyle="oblique"}break;case"opacity":T=!0,m.opacity=parseFloat(R);break;case"text-combine-upright":T=!0,m.textCombineUpright=R;break;case"text-shadow":T=!0,m.textShadow=R;break;case"white-space":T=!0,m.wrapLine=R!="noWrap"}}}T&&i.set(c,m)}}if(m=l,T=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 ua(m[0]),c=cs(f),x=za(f,/[ \t]+--\x3e[ \t]+/g),y=cs(f),c==null||x==null||y==null)bt("Failed to parse VTT time code. Cue skipped:",l,m),l=null;else{for(c+=T,y+=T,T=m.slice(1).join(`
|
||
|
`).trim(),i.has("global")?(m=i.get("global").clone(),m.startTime=c,m.endTime=y,m.payload=T):m=new Qt(c,y,T),ss(f),c=Ga(f);c;)JE(m,c,t),ss(f),c=Ga(f);Pc(m,i),l!=null&&(m.id=l),l=m}l&&r.push(l)}return r};function JE(e,t,n){var i;(i=/^align:(start|middle|center|end|left|right)$/.exec(t))?(t=i[1],t=="middle"?e.textAlign=Yi:e.textAlign=Lc[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":nd)):(i=/^region:(.*)$/.exec(t))?(t=ek(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=rd[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.lineInterpretation=Ho,e.line=Number(n[1]),n[2]&&(e.lineAlign=rd[n[2].toUpperCase()]))}function ek(e,t){return e=e.filter(function(n){return n.id==t}),e.length?e[0]:null}Pe("shaka.text.VttTextParser",$i),$i.prototype.parseMedia=$i.prototype.parseMedia,$i.prototype.setManifestType=$i.prototype.setManifestType,$i.prototype.setSequenceMode=$i.prototype.setSequenceMode,$i.prototype.parseInit=$i.prototype.parseInit,kn("text/vtt",function(){return new $i}),kn('text/vtt; codecs="vtt"',function(){return new $i}),kn('text/vtt; codecs="wvtt"',function(){return new $i});function Yr(){this.g=null}Yr.prototype.parseInit=function(e){var t=this,n=!1;if(new jt().box("moov",$e).box("trak",$e).box("mdia",$e).R("mdhd",function(i){i=$c(i.reader,i.version),t.g=i.timescale}).box("minf",$e).box("stbl",$e).R("stsd",bn).box("wvtt",function(){n=!0}).parse(e),!this.g)throw new Y(2,2,2008);if(!n)throw new Y(2,2,2008)},Yr.prototype.setSequenceMode=function(){},Yr.prototype.setManifestType=function(){},Yr.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 jt().box("moof",$e).box("traf",$e).R("tfdt",function(X){c=!0,n=fu(X.reader,X.version).baseMediaDecodeTime}).R("tfhd",function(X){m=va(X.reader,X.flags).ld}).R("trun",function(X){f=!0,i=ef(X.reader,X.version,X.flags).fg}).box("mdat",jl(function(X){y=!0,r=X})).parse(e,!1),!y&&!c&&!f)throw new Y(2,2,2008);e=n;for(var T=new Zt(r,0),x=b(i),D=x.next();!D.done;D=x.next()){D=D.value;var R=D.gg||m,N=D.ye?n+D.ye:e;e=N+(R||0);var U=0;do{var L=T.S();U+=L;var j=T.S(),V=null;Vr(j)=="vttc"?8<L&&(V=T.Cb(L-8)):T.skip(L-8),R&&V&&(L=tk(V,t.periodStart+N/this.g,t.periodStart+e/this.g),l.push(L))}while(D.sampleSize&&U<D.sampleSize)}return l.filter(Fo)};function tk(e,t,n){var i,r,l;return new jt().box("payl",jl(function(c){i=nn(c)})).box("iden",jl(function(c){r=nn(c)})).box("sttg",jl(function(c){l=nn(c)})).parse(e),i?nk(i,r,l,t,n):null}function nk(e,t,n,i,r){if(e=new Qt(i,r,e),Pc(e),t&&(e.id=t),n)for(t=new ua(n),n=Ga(t);n;)JE(e,n,[]),ss(t),n=Ga(t);return e}Pe("shaka.text.Mp4VttParser",Yr),Yr.prototype.parseMedia=Yr.prototype.parseMedia,Yr.prototype.setManifestType=Yr.prototype.setManifestType,Yr.prototype.setSequenceMode=Yr.prototype.setSequenceMode,Yr.prototype.parseInit=Yr.prototype.parseInit,kn('application/mp4; codecs="wvtt"',function(){return new Yr});function Wr(){}Wr.prototype.parseInit=function(){},Wr.prototype.setSequenceMode=function(){},Wr.prototype.setManifestType=function(){},Wr.prototype.parseMedia=function(e){var t=nn(e).replace(/\r+/g,"");if(t=t.trim(),e=[],t=="")return e;t=b(t.split(`
|
||
|
|
||
|
`));for(var n=t.next();!n.done;n=t.next()){n=n.value.split(`
|
||
|
`);var i=new ua(n[0]),r=cs(i),l=za(i,/,/g);if(i=cs(i),r==null||l==null||i==null)throw new Y(2,2,2001,"Could not parse cue time range in SubViewer");e.push(new Qt(r,i,n.slice(1).join(`
|
||
|
`).trim()))}return e},Pe("shaka.text.SbvTextParser",Wr),Wr.prototype.parseMedia=Wr.prototype.parseMedia,Wr.prototype.setManifestType=Wr.prototype.setManifestType,Wr.prototype.setSequenceMode=Wr.prototype.setSequenceMode,Wr.prototype.parseInit=Wr.prototype.parseInit,kn("text/x-subviewer",function(){return new Wr});function Mr(){this.g=new $i}Mr.prototype.parseInit=function(){},Mr.prototype.setSequenceMode=function(){},Mr.prototype.setManifestType=function(){},Mr.prototype.parseMedia=function(e,t,n){return e=nn(e),e=ZE(e),e=Ze(Pr(e)),this.g.parseMedia(e,t,n,[])};function ZE(e){var t=`WEBVTT
|
||
|
|
||
|
`;if(e=="")return t;e=e.replace(/\r+/g,""),e=e.trim(),e=b(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",Mr),Mr.srt2webvtt=ZE,Mr.prototype.parseMedia=Mr.prototype.parseMedia,Mr.prototype.setManifestType=Mr.prototype.setManifestType,Mr.prototype.setSequenceMode=Mr.prototype.setSequenceMode,Mr.prototype.parseInit=Mr.prototype.parseInit,kn("text/srt",function(){return new Mr});function Qr(){}Qr.prototype.parseInit=function(){},Qr.prototype.setSequenceMode=function(){},Qr.prototype.setManifestType=function(){},Qr.prototype.parseMedia=function(e){var t="",n="",i=null,r=null;for(r=nn(e).split(/\r?\n\s*\r?\n/),e=b(r),r=e.next();!r.done;r=e.next()){var l=r.value;r=l,(l=rk.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=b(t.split(/\r?\n/)),e=t.next();!e.done;e=t.next())if(e=e.value,!/^\s*;/.test(e)&&(l=tA.exec(e))){if(e=l[1].trim(),l=l[2].trim(),e=="Format")r=l.split(Xv);else if(e=="Style"){e=l.split(Xv),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=b(n.split(/\r?\n/)),l=n.next(),e={};!l.done;e={Dh:void 0},l=n.next())if(l=l.value,!/^\s*;/.test(l)&&(c=tA.exec(l))){if(l=c[1].trim(),c=c[2].trim(),l=="Format")t=c.split(Xv);else if(l=="Dialogue"){c=c.split(Xv),l={};for(var f=0;f<t.length&&f<c.length;f++)l[t[f]]=c[f];f=eA(l.Start);var y=eA(l.End);c=new Qt(f,y,c.slice(t.length-1).join(",").replace(/\\N/g,`
|
||
|
`).replace(/\{[^}]+\}/g,"")),e.Dh=l.Style,(e=i.find(function(m){return function(T){return T.Name==m.Dh}}(e)))&&ik(c,e),r.push(c)}}return r};function ik(e,t){var n=t.Fontname;if(n&&(e.fontFamily=n),(n=t.Fontsize)&&(e.fontSize=n+"px"),(n=t.PrimaryColour)&&(n=$E(n))&&(e.color=n),(n=t.BackColour)&&(n=$E(n))&&(e.backgroundColor=n),t.Bold&&(e.fontWeight=Qa),t.Italic&&(e.fontStyle=ms),t.Underline&&e.textDecoration.push(Ko),(n=t.Spacing)&&(e.letterSpacing=n+"px"),n=t.Alignment)switch(parseInt(n,10)){case 1:e.displayAlign=El,e.textAlign="start";break;case 2:e.displayAlign=El,e.textAlign=Yi;break;case 3:e.displayAlign=El,e.textAlign="end";break;case 5:e.displayAlign="before",e.textAlign="start";break;case 6:e.displayAlign="before",e.textAlign=Yi;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=Yi;break;case 11:e.displayAlign="center",e.textAlign="end"}(t=t.AlphaLevel)&&(e.opacity=parseFloat(t))}function $E(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 eA(e){return e=ok.exec(e),3600*(e[1]?parseInt(e[1].replace(":",""),10):0)+60*parseInt(e[2],10)+parseFloat(e[3])}Pe("shaka.text.SsaTextParser",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;var rk=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,tA=/^\s*([^:]+):\s*(.*)/,Xv=/\s*,\s*/,ok=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;kn("text/x-ssa",function(){return new Qr});function nA(e,t){var n=e[t+1]&1?7:9;return t+n<=e.length&&(e=((e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5)-n,0<e)?{ud:n,ia:e}:null}function iA(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 rA(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 lk(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 Jr(e){this.j=e,this.h=0,this.g=new Map,this.i=null}h=Jr.prototype,h.destroy=function(){this.g.clear()},h.isSupported=function(e){return e.toLowerCase().split(";")[0]=="audio/aac"?Un(this.convertCodecs("audio",e)):!1},h.convertCodecs=function(e,t){return t.toLowerCase().split(";")[0]=="audio/aac"?'audio/mp4; codecs="'+(jn(t)||"mp4a.40.2")+'"':t},h.getOriginalMimeType=function(){return this.j},h.transmux=function(e,t,n,i){for(var r=Ze(e),l=gu(r),c=l.length;c<r.length&&!rA(r,c);c++);if(e=1e3*n.endTime,l=yu(l),l.length&&n&&(l=l.find(function(T){return T.description==="com.apple.streaming.transportStreamTimestamp"}))&&(e=l.data),l=iA(r,c),!l)return Promise.reject(new Y(2,3,3018,n?n.N()[0]:null));t.audioSamplingRate=l.sampleRate,t.channelsCount=l.channelCount;for(var f=[];c<r.
|
||
|
@license
|
||
|
MSS Transmuxer
|
||
|
Copyright 2015 Dash Industry Forum
|
||
|
SPDX-License-Identifier: BSD-3-Clause
|
||
|
*/function Zr(e){this.h=e,(this.g=X1.get("ISOBoxer")())&&wk(this)}function wk(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]!==Tk[i]&&(n=!1);n&&(this._parsing&&(this.type="sepiff"),t.call(this))})}h=Zr.prototype,h.destroy=function(){},h.isSupported=function(e,t){var n=e.startsWith("mss/");return!this.g||!n?!1:t?Un(this.convertCodecs(t,e)):(t=this.convertCodecs("audio",e),e=this.convertCodecs("video",e),Un(t)||Un(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(Ze(e));if(!t.mssPrivateData)return Promise.reject(new Y(2,3,3020,n?n.N()[0]:null));try{var i,r=this.g.parseBuffer(e),l=r.fetch("tfhd");l.track_ID=t.id+1;var c=r.fetch("tfdt"),f=r.fetch("traf");c===null&&(c=this.g.createFullBox("tfdt",f,l),c.version=1,c.flags=0,c.baseMediaDecodeTime=Math.floor(n.startTime*t.mssPrivateData.timescale));var y=r.fetch("trun"),m=r.fetch("tfxd");m&&m._parent.boxes.splice(m._parent.boxes.indexOf(m),1);var T=r.fetch("tfrf");T&&T._parent.boxes.splice(T._parent.boxes.indexOf(T),1);var x=r.fetch("sepiff");if(x!==null){x.type="senc",x.usertype=void 0;var D=r.fetch("saio");if(D===null){D=this.g.createFullBox("saio",f),D.version=0,D.flags=0,D.entry_count=1,D.offset=[0];var R=this.g.createFullBox("saiz",f);if(R.version=0,R.flags=0,R.sample_count=x.sample_count,R.default_sample_info_size=0,R.sample_info_size=[],x.flags&2)for(i=0;i<x.sample_count;i+=1)R.sample_info_size[i]=10+6*x.entry[i].NumberOfEntries;else R.default_sample_info_size=8}}l.flags&=16777214,l.flags|=131072,y.flags|=1;var N=r.fetch("moof");y.data_offset=N.getLength()+8;var U=r.fetch("saio");U!==null&&(U.offset[0]=sA(N,"traf")+sA(f,"senc")+16);var L=Ze(r.write());return Promise.resolve(L)}catch(j){return j instanceof Y?Promise.reject(j):Promise.reject(new Y(2,3,3022,n?n.N()[0]:null))}};function sA(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",Zr),Zr.prototype.transmux=Zr.prototype.transmux,Zr.prototype.getOriginalMimeType=Zr.prototype.getOriginalMimeType,Zr.prototype.convertCodecs=Zr.prototype.convertCodecs,Zr.prototype.isSupported=Zr.prototype.isSupported,Zr.prototype.destroy=Zr.prototype.destroy;var Tk=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);hi("mss/audio/mp4",function(){return new Zr("mss/audio/mp4")},yi),hi("mss/video/mp4",function(){return new Zr("mss/video/mp4")},yi);function Po(e){this.m=e,this.g=0,this.i=new Map,this.l=this.h=this.j=null}h=Po.prototype,h.destroy=function(){this.i.clear(),this.h&&this.h.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=jn(n).split(",");return n=pi
|
||
|
@license
|
||
|
EME Encryption Scheme Polyfill
|
||
|
Copyright 2019 Google LLC
|
||
|
SPDX-License-Identifier: Apache-2.0
|
||
|
*/function fA(){}var Qy;function dA(){Qy||navigator.emeEncryptionSchemePolyfilled?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(Qy=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=Ak,navigator.emeEncryptionSchemePolyfilled=!0):console.debug("EmeEncryptionSchemePolyfill: EME not found")}function Ak(e,t){var n=this,i;return z(function(r){return r.g==1?(console.assert(n==navigator,'bad "this" for requestMediaKeySystemAccess'),_(r,Qy.call(n,e,t),2)):(i=r.h,wA(i)?(console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=Qy,r.return(i)):(console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.requestMediaKeySystemAccess=pA,r.return(pA.call(n,e,t))))})}function pA(e,t){var n=this,i,r,l,c,f,y,m,T,x,D,R,N;return z(function(U){if(U.g==1){for(console.assert(n==navigator,'bad "this" for requestMediaKeySystemAccess'),i=SA(e),r=[],l=b(t),c=l.next();!c.done;c=l.next())f=c.value,y=hA(f.videoCapabilities,i),m=hA(f.audioCapabilities,i),f.videoCapabilities&&f.videoCapabilities.length&&!y.length||f.audioCapabilities&&f.audioCapabilities.length&&!m.length||(T=Object.assign({},f),T.videoCapabilities=y,T.audioCapabilities=m,r.push(T));if(!r.length)throw x=Error("Unsupported keySystem or supportedConfigurations."),x.name="NotSupportedError",x.code=DOMException.NOT_SUPPORTED_ERR,x;return _(U,Qy.call(n,e,r),2)}return D=U.h,N=R=null,r[0]&&(r[0].videoCapabilities&&(R=r[0].videoCapabilities[0].encryptionScheme),r[0].audioCapabilities&&(N=r[0].audioCapabilities[0].encryptionScheme)),U.return(new Wv(D,R,N))})}function hA(e,t){return e&&e.filter(function(n){return HS(n.encryptionScheme,t)})}Pe("EmeEncryptionSchemePolyfill",fA),fA.install=dA;function yA(){}var Jy;function gA(){Jy||navigator.mediaCapabilitiesEncryptionSchemePolyfilled?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(Jy=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=Ck,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}function Ck(e){var t=this,n,i;return z(function(r){switch(r.g){case 1:return console.assert(t==navigator.mediaCapabilities,'bad "this" for decodingInfo'),_(r,Jy.call(t,e),2);case 2:if(n=r.h,!n.supported||!e.keySystemConfiguration)return r.return(n);if((i=n.keySystemAccess)&&wA(i))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=Jy,r.return(n);if(console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=mA,i){r.s(3);break}return _(r,vA(e),4);case 4:return n.keySystemAccess=r.h,r.return(n);case 3:return r.return(mA.call(t,e))}})}function mA(e){var t=this,n,i,r,l,c,f,y;return z(function(m){switch(m.g){case 1:return console.assert(t==navigator.mediaCapabilities,'bad "this" for decodingInfo'),i=n=null,!e.keySystemConfiguration||(r=e.keySystemConfiguration,l=r.keySystem,i=r.audio&&r.audio.encryptionScheme,n=r.video&&r.video.encryptionScheme,c=SA(l),f={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:e},HS(i,c)&&HS(n,c))?_(m,Jy.call(t,e),2):m.return(f);case 2:if(y=m.h,y.keySystemAccess){y.keySystemAccess=new Wv(y.keySystemAccess,n,i),m.s(3);break}if(!e.keySystemConfiguration){m.s(3);break}return _(m,vA(e),5);case 5:y.keySystemAccess=m.h;case 3:return m.return(y)}})}function vA(e){var t,n;return z(function(i){if(i.g==1){var r=e.keySystemConfiguration,l=[],c=[];return r.audio&&l.push({robustness:r.audio.robustness||"",contentType:e.audio.contentType,encryptionScheme:r
|
||
|
`).map(be=>be.trim()),ce=w.split(`
|
||
|
`).map(be=>be.trim());if($.length!==ce.length){console.error("The number of KIDs and Keys must be the same.");return}const Re=new pC.Player(s.current),ee={drm:{clearKeys:{}}};$.forEach((be,Oe)=>{ee.drm.clearKeys[be]=ce[Oe]}),console.log("Configuring player with the following DRM config and headers:",ee),Re.configure(ee),Re.load(E).then(()=>{console.log("Video loaded")}).catch(be=>{console.error("Error loading the video",be)})}else console.error("MPD URL, KIDs, and Keys are required.")};return ve.useEffect(()=>{b()},[]),te.jsxs("div",{className:"flex flex-col items-center w-full p-4",children:[te.jsx(Mp,{children:te.jsx("title",{children:"Test Player"})}),te.jsxs("div",{className:"w-full flex flex-col",children:[te.jsx("video",{ref:s,width:"100%",height:"auto",controls:!0,className:"h-96"}),te.jsx("input",{type:"text",value:E,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"}),te.jsx("textarea",{placeholder:"KIDs (one per line)",value:k,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"}),te.jsx("textarea",{placeholder:"Keys (one per line)",value:w,onChange:M,className:"border-2 border-rose-700/50 mt-2 text-white p-1 overflow-y-auto rounded transition-all ease-in-out focus:outline-none focus:ring-2 focus:ring-rose-700/50 duration-200"}),te.jsx("textarea",{placeholder:"Headers (one per line)",value:O,onChange:F,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"}),te.jsx("button",{onClick:J,className:"mt-4 p-2 bg-blue-500 text-white rounded",children:"Submit"})]})]})}const WC="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",QC="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",JC="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/2000/
|
||
|
`).forEach(function(O){w=O.indexOf(":"),k=O.substring(0,w).trim().toLowerCase(),S=O.substring(w+1).trim(),!(!k||A[k]&&DN[k])&&(k==="set-cookie"?A[k]?A[k].push(S):A[k]=[S]:A[k]=A[k]?A[k]+", "+S:S)}),A},vC=Symbol("internals");function ag(E){return E&&String(E).trim().toLowerCase()}function s0(E){return E===!1||E==null?E:Ee.isArray(E)?E.map(s0):String(E)}function kN(E){const A=Object.create(null),k=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let S;for(;S=k.exec(E);)A[S[1]]=S[2];return A}const RN=E=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(E.trim());function x2(E,A,k,S,w){if(Ee.isFunction(S))return S.call(this,A,k);if(w&&(A=k),!!Ee.isString(A)){if(Ee.isString(S))return A.indexOf(S)!==-1;if(Ee.isRegExp(S))return S.test(A)}}function MN(E){return E.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(A,k,S)=>k.toUpperCase()+S)}function NN(E,A){const k=Ee.toCamelCase(" "+A);["get","set","has"].forEach(S=>{Object.defineProperty(E,S+k,{value:function(w,P,O){return this[S].call(this,A,w,P,O)},configurable:!0})})}let to=class{constructor(A){A&&this.set(A)}set(A,k,S){const w=this;function P(h,s,a){const p=ag(s);if(!p)throw new Error("header name must be a non-empty string");const v=Ee.findKey(w,p);(!v||w[v]===void 0||a===!0||a===void 0&&w[v]!==!1)&&(w[v||s]=s0(h))}const O=(h,s)=>Ee.forEach(h,(a,p)=>P(a,p,s));if(Ee.isPlainObject(A)||A instanceof this.constructor)O(A,k);else if(Ee.isString(A)&&(A=A.trim())&&!RN(A))O(ON(A),k);else if(Ee.isObject(A)&&Ee.isIterable(A)){let h={},s,a;for(const p of A){if(!Ee.isArray(p))throw TypeError("Object iterator must return a key-value pair");h[a=p[0]]=(s=h[a])?Ee.isArray(s)?[...s,p[1]]:[s,p[1]]:p[1]}O(h,k)}else A!=null&&P(k,A,S);return this}get(A,k){if(A=ag(A),A){const S=Ee.findKey(this,A);if(S){const w=this[S];if(!k)return w;if(k===!0)return kN(w);if(Ee.isFunction(k))return k.call(this,w,S);if(Ee.isRegExp(k))return k.exec(w);throw new TypeError("parser must be boolean|regexp|function")}}}has(A,k){if(A=ag(A),A){const S=Ee.findKey(this,A);return!!(S&&this[S]!==void 0&&(!k||x2(this,this[S],S,k)))}return!1}delete(A,k){const S=this;let w=!1;function P(O){if(O=ag(O),O){const h=Ee.findKey(S,O);h&&(!k||x2(S,S[h],h,k))&&(delete S[h],w=!0)}}return Ee.isArray(A)?A.forEach(P):P(A),w}clear(A){const k=Object.keys(this);let S=k.length,w=!1;for(;S--;){const P=k[S];(!A||x2(this,this[P],P,A,!0))&&(delete this[P],w=!0)}return w}normalize(A){const k=this,S={};return Ee.forEach(this,(w,P)=>{const O=Ee.findKey(S,P);if(O){k[O]=s0(w),delete k[P];return}const h=A?MN(P):String(P).trim();h!==P&&delete k[P],k[h]=s0(w),S[h]=!0}),this}concat(...A){return this.constructor.concat(this,...A)}toJSON(A){const k=Object.create(null);return Ee.forEach(this,(S,w)=>{S!=null&&S!==!1&&(k[w]=A&&Ee.isArray(S)?S.join(", "):S)}),k}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([A,k])=>A+": "+k).join(`
|
||
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(A){return A instanceof this?A:new this(A)}static concat(A,...k){const S=new this(A);return k.forEach(w=>S.set(w)),S}static accessor(A){const S=(this[vC]=this[vC]={accessors:{}}).accessors,w=this.prototype;function P(O){const h=ag(O);S[h]||(NN(w,O),S[h]=!0)}return Ee.isArray(A)?A.forEach(P):P(A),this}};to.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ee.reduceDescriptors(to.prototype,({value:E},A)=>{let k=A[0].toUpperCase()+A.slice(1);return{get:()=>E,set(S){this[k]=S}}});Ee.freezeMethods(to);function E2(E,A){const k=this||vg,S=A||k,w=to.from(S.headers);let P=S.data;return Ee.forEach(E,function(h){P=h.call(k,P,w.normalize(),A?A.status:void 0)}),w.normalize(),P}function vb(E){return!!(E&&E.__CANCEL__)}function Up(E,A,k){Bt.call(this,E??"canceled",Bt.ERR_CANCELED,A,k),this.name="CanceledError"}Ee.inherits(Up,Bt,{__CANCEL__:!0});function Sb(E,A,k){const S=k.config.validateStatus;!k.status||!S||S(k.status)?E(k):A(new Bt("Request failed with status code "+k.status,[Bt.ERR_BAD_REQUEST,Bt.ERR_BAD_RESPONSE][Math.floor(k.status/100)-4],k.config,k.request,k))}function PN(E){const A=/^([-+\w]{1,25})(:?\/\/|:)/.exec(E);return A&&A[1]||""}function LN(E,A){E=E||10;const k=new Array(E),S=new Array(E);let w=0,P=0,O;return A=A!==void 0?A:1e3,function(s){const a=Date.now(),p=S[P];O||(O=a),k[w]=s,S[w]=a;let v=P,M=0;for(;v!==w;)M+=k[v++],v=v%E;if(w=(w+1)%E,w===P&&(P=(P+1)%E),a-O<A)return;const F=p&&a-p;return F?Math.round(M*1e3/F):void 0}}function _N(E,A){let k=0,S=1e3/A,w,P;const O=(a,p=Date.now())=>{k=p,w=null,P&&(clearTimeout(P),P=null),E.apply(null,a)};return[(...a)=>{const p=Date.now(),v=p-k;v>=S?O(a,p):(w=a,P||(P=setTimeout(()=>{P=null,O(w)},S-v)))},()=>w&&O(w)]}const p0=(E,A,k=3)=>{let S=0;const w=LN(50,250);return _N(P=>{const O=P.loaded,h=P.lengthComputable?P.total:void 0,s=O-S,a=w(s),p=O<=h;S=O;const v={loaded:O,total:h,progress:h?O/h:void 0,bytes:s,rate:a||void 0,estimated:a&&h&&p?(h-O)/a:void 0,event:P,lengthComputable:h!=null,[A?"download":"upload"]:!0};E(v)},k)},SC=(E,A)=>{const k=E!=null;return[S=>A[0]({lengthComputable:k,total:E,loaded:S}),A[1]]},wC=E=>(...A)=>Ee.asap(()=>E(...A)),UN=mr.hasStandardBrowserEnv?((E,A)=>k=>(k=new URL(k,mr.origin),E.protocol===k.protocol&&E.host===k.host&&(A||E.port===k.port)))(new URL(mr.origin),mr.navigator&&/(msie|trident)/i.test(mr.navigator.userAgent)):()=>!0,jN=mr.hasStandardBrowserEnv?{write(E,A,k,S,w,P){const O=[E+"="+encodeURIComponent(A)];Ee.isNumber(k)&&O.push("expires="+new Date(k).toGMTString()),Ee.isString(S)&&O.push("path="+S),Ee.isString(w)&&O.push("domain="+w),P===!0&&O.push("secure"),document.cookie=O.join("; ")},read(E){const A=document.cookie.match(new RegExp("(^|;\\s*)("+E+")=([^;]*)"));return A?decodeURIComponent(A[3]):null},remove(E){this.write(E,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function BN(E){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(E)}function VN(E,A){return A?E.replace(/\/?\/$/,"")+"/"+A.replace(/^\/+/,""):E}function wb(E,A,k){let S=!BN(A);return E&&(S||k==!1)?VN(E,A):A}const TC=E=>E instanceof to?{...E}:E;function zf(E,A){A=A||{};const k={};function S(a,p,v,M){return Ee.isPlainObject(a)&&Ee.isPlainObject(p)?Ee.merge.call({caseless:M},a,p):Ee.isPlainObject(p)?Ee.merge({},p):Ee.isArray(p)?p.slice():p}function w(a,p,v,M){if(Ee.isUndefined(p)){if(!Ee.isUndefined(a))return S(void 0,a,v,M)}else return S(a,p,v,M)}function P(a,p){if(!Ee.isUndefined(p))return S(void 0,p)}function O(a,p){if(Ee.isUndefined(p)){if(!Ee.isUndefined(a))return S(void 0,a)}else return S(void 0,p)}function h(a,p,v){if(v in A)return S(a,p);if(v in E)return S(void 0,a)}const s={url:P,method:P,data:P,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
|
||
|
`+P.map(AC).join(`
|
||
|
`):" "+AC(P[0]):"as no adapter specified";throw new Bt("There is no suitable adapter to dispatch the request "+O,"ERR_NOT_SUPPORT")}return S},adapters:_2};function A2(E){if(E.cancelToken&&E.cancelToken.throwIfRequested(),E.signal&&E.signal.aborted)throw new Up(null,E)}function CC(E){return A2(E),E.headers=to.from(E.headers),E.data=E2.call(E,E.transformRequest),["post","put","patch"].indexOf(E.method)!==-1&&E.headers.setContentType("application/x-www-form-urlencoded",!1),Ab.getAdapter(E.adapter||vg.adapter)(E).then(function(S){return A2(E),S.data=E2.call(E,E.transformResponse,S),S.headers=to.from(S.headers),S},function(S){return vb(S)||(A2(E),S&&S.response&&(S.response.data=E2.call(E,E.transformResponse,S.response),S.response.headers=to.from(S.response.headers))),Promise.reject(S)})}const Cb="1.9.0",A0={};["object","boolean","number","function","string","symbol"].forEach((E,A)=>{A0[E]=function(S){return typeof S===E||"a"+(A<1?"n ":" ")+E}});const bC={};A0.transitional=function(A,k,S){function w(P,O){return"[Axios v"+Cb+"] Transitional option '"+P+"'"+O+(S?". "+S:"")}return(P,O,h)=>{if(A===!1)throw new Bt(w(O," has been removed"+(k?" in "+k:"")),Bt.ERR_DEPRECATED);return k&&!bC[O]&&(bC[O]=!0,console.warn(w(O," has been deprecated since v"+k+" and will be removed in the near future"))),A?A(P,O,h):!0}};A0.spelling=function(A){return(k,S)=>(console.warn(`${S} is likely a misspelling of ${A}`),!0)};function $N(E,A,k){if(typeof E!="object")throw new Bt("options must be an object",Bt.ERR_BAD_OPTION_VALUE);const S=Object.keys(E);let w=S.length;for(;w-- >0;){const P=S[w],O=A[P];if(O){const h=E[P],s=h===void 0||O(h,P,E);if(s!==!0)throw new Bt("option "+P+" must be "+s,Bt.ERR_BAD_OPTION_VALUE);continue}if(k!==!0)throw new Bt("Unknown option "+P,Bt.ERR_BAD_OPTION)}}const c0={assertOptions:$N,validators:A0},La=c0.validators;let Ff=class{constructor(A){this.defaults=A||{},this.interceptors={request:new mC,response:new mC}}async request(A,k){try{return await this._request(A,k)}catch(S){if(S instanceof Error){let w={};Error.captureStackTrace?Error.captureStackTrace(w):w=new Error;const P=w.stack?w.stack.replace(/^.+\n/,""):"";try{S.stack?P&&!String(S.stack).endsWith(P.replace(/^.+\n.+\n/,""))&&(S.stack+=`
|
||
|
`+P):S.stack=P}catch{}}throw S}}_request(A,k){typeof A=="string"?(k=k||{},k.url=A):k=A||{},k=zf(this.defaults,k);const{transitional:S,paramsSerializer:w,headers:P}=k;S!==void 0&&c0.assertOptions(S,{silentJSONParsing:La.transitional(La.boolean),forcedJSONParsing:La.transitional(La.boolean),clarifyTimeoutError:La.transitional(La.boolean)},!1),w!=null&&(Ee.isFunction(w)?k.paramsSerializer={serialize:w}:c0.assertOptions(w,{encode:La.function,serialize:La.function},!0)),k.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?k.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:k.allowAbsoluteUrls=!0),c0.assertOptions(k,{baseUrl:La.spelling("baseURL"),withXsrfToken:La.spelling("withXSRFToken")},!0),k.method=(k.method||this.defaults.method||"get").toLowerCase();let O=P&&Ee.merge(P.common,P[k.method]);P&&Ee.forEach(["delete","get","head","post","put","patch","common"],b=>{delete P[b]}),k.headers=to.concat(O,P);const h=[];let s=!0;this.interceptors.request.forEach(function(J){typeof J.runWhen=="function"&&J.runWhen(k)===!1||(s=s&&J.synchronous,h.unshift(J.fulfilled,J.rejected))});const a=[];this.interceptors.response.forEach(function(J){a.push(J.fulfilled,J.rejected)});let p,v=0,M;if(!s){const b=[CC.bind(this),void 0];for(b.unshift.apply(b,h),b.push.apply(b,a),M=b.length,p=Promise.resolve(k);v<M;)p=p.then(b[v++],b[v++]);return p}M=h.length;let F=k;for(v=0;v<M;){const b=h[v++],J=h[v++];try{F=b(F)}catch($){J.call(this,$);break}}try{p=CC.call(this,F)}catch(b){return Promise.reject(b)}for(v=0,M=a.length;v<M;)p=p.then(a[v++],a[v++]);return p}getUri(A){A=zf(this.defaults,A);const k=wb(A.baseURL,A.url,A.allowAbsoluteUrls);return yb(k,A.params,A.paramsSerializer)}};Ee.forEach(["delete","get","head","options"],function(A){Ff.prototype[A]=function(k,S){return this.request(zf(S||{},{method:A,url:k,data:(S||{}).data}))}});Ee.forEach(["post","put","patch"],function(A){function k(S){return function(P,O,h){return this.request(zf(h||{},{method:A,headers:S?{"Content-Type":"multipart/form-data"}:{},url:P,data:O}))}}Ff.prototype[A]=k(),Ff.prototype[A+"Form"]=k(!0)});let eP=class bb{constructor(A){if(typeof A!="function")throw new TypeError("executor must be a function.");let k;this.promise=new Promise(function(P){k=P});const S=this;this.promise.then(w=>{if(!S._listeners)return;let P=S._listeners.length;for(;P-- >0;)S._listeners[P](w);S._listeners=null}),this.promise.then=w=>{let P;const O=new Promise(h=>{S.subscribe(h),P=h}).then(w);return O.cancel=function(){S.unsubscribe(P)},O},A(function(P,O,h){S.reason||(S.reason=new Up(P,O,h),k(S.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(A){if(this.reason){A(this.reason);return}this._listeners?this._listeners.push(A):this._listeners=[A]}unsubscribe(A){if(!this._listeners)return;const k=this._listeners.indexOf(A);k!==-1&&this._listeners.splice(k,1)}toAbortSignal(){const A=new AbortController,k=S=>{A.abort(S)};return this.subscribe(k),A.signal.unsubscribe=()=>this.unsubscribe(k),A.signal}static source(){let A;return{token:new bb(function(w){A=w}),cancel:A}}};function tP(E){return function(k){return E.apply(null,k)}}function nP(E){return Ee.isObject(E)&&E.isAxiosError===!0}const U2={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,RequestHeaderFie
|