@volcengine/veplayer-plugin 2.0.0-rc.0 → 2.2.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/esm/index.development.js +45768 -41842
- package/esm/index.production.js +5 -4
- package/esm/veplayer.plugin.flv.development.js +1988 -8535
- package/esm/veplayer.plugin.flv.production.js +1 -1
- package/esm/veplayer.plugin.hls.development.js +3548 -10507
- package/esm/veplayer.plugin.hls.production.js +1 -1
- package/esm/veplayer.plugin.mp4.development.js +87 -4
- package/esm/veplayer.plugin.mp4.production.js +1 -1
- package/esm/veplayer.plugin.rtm.development.js +159 -43
- package/esm/veplayer.plugin.rtm.production.js +1 -1
- package/esm/veplayer.plugin.shaka.development.js +86 -3
- package/esm/veplayer.plugin.shaka.production.js +1 -1
- package/esm/veplayer.plugin.xgvideo.development.js +226 -225
- package/esm/veplayer.plugin.xgvideo.production.js +1 -1
- package/package.json +2 -1
- package/umd/index.development.js +35422 -31496
- package/umd/index.production.js +1 -1
- package/umd/veplayer.plugin.flv.development.js +2034 -8580
- package/umd/veplayer.plugin.flv.production.js +1 -1
- package/umd/veplayer.plugin.hls.development.js +3654 -10614
- package/umd/veplayer.plugin.hls.production.js +1 -1
- package/umd/veplayer.plugin.mp4.development.js +87 -4
- package/umd/veplayer.plugin.mp4.production.js +1 -1
- package/umd/veplayer.plugin.rtm.development.js +180 -65
- package/umd/veplayer.plugin.rtm.production.js +1 -1
- package/umd/veplayer.plugin.shaka.development.js +86 -3
- package/umd/veplayer.plugin.shaka.production.js +1 -1
- package/umd/veplayer.plugin.xgvideo.development.js +26 -26
- package/umd/veplayer.plugin.xgvideo.production.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r=function(e){try{return!!e()}catch(t){return!0}},n=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),i=n,o=Function.prototype,a=o.call,s=i&&o.bind.bind(a,a),u=i?s:function(e){return function(){return a.apply(e,arguments)}},c=u({}.isPrototypeOf),l=function(e){return e&&e.Math==Math&&e},f=l("object"==typeof globalThis&&globalThis)||l("object"==typeof window&&window)||l("object"==typeof self&&self)||l("object"==typeof e&&e)||function(){return this}()||e||Function("return this")(),h=n,p=Function.prototype,d=p.apply,v=p.call,y="object"==typeof Reflect&&Reflect.apply||(h?v.bind(d):function(){return v.apply(d,arguments)}),g=u,m=g({}.toString),b=g("".slice),_=function(e){return b(m(e),8,-1)},w=_,x=u,k=function(e){if("Function"===w(e))return x(e)},S="object"==typeof document&&document.all,T={all:S,IS_HTMLDDA:void 0===S&&void 0!==S},A=T.all,E=T.IS_HTMLDDA?function(e){return"function"==typeof e||e===A}:function(e){return"function"==typeof e},O={},L=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),P=n,C=Function.prototype.call,R=P?C.bind(C):function(){return C.apply(C,arguments)},D={},U={}.propertyIsEnumerable,I=Object.getOwnPropertyDescriptor,j=I&&!U.call({1:2},1);D.f=j?function(e){var t=I(this,e);return!!t&&t.enumerable}:U;var M,B,F=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},N=r,V=_,z=Object,G=u("".split),q=N((function(){return!z("z").propertyIsEnumerable(0)}))?function(e){return"String"==V(e)?G(e,""):z(e)}:z,H=function(e){return null==e},W=H,Y=TypeError,$=function(e){if(W(e))throw Y("Can't call method on "+e);return e},K=q,Q=$,X=function(e){return K(Q(e))},J=E,Z=T.all,ee=T.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:J(e)||e===Z}:function(e){return"object"==typeof e?null!==e:J(e)},te={},re=te,ne=f,ie=E,oe=function(e){return ie(e)?e:void 0},ae=function(e,t){return arguments.length<2?oe(re[e])||oe(ne[e]):re[e]&&re[e][t]||ne[e]&&ne[e][t]},se="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ue=f,ce=se,le=ue.process,fe=ue.Deno,he=le&&le.versions||fe&&fe.version,pe=he&&he.v8;pe&&(B=(M=pe.split("."))[0]>0&&M[0]<4?1:+(M[0]+M[1])),!B&&ce&&(!(M=ce.match(/Edge\/(\d+)/))||M[1]>=74)&&(M=ce.match(/Chrome\/(\d+)/))&&(B=+M[1]);var de=B,ve=de,ye=r,ge=f.String,me=!!Object.getOwnPropertySymbols&&!ye((function(){var e=Symbol();return!ge(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ve&&ve<41})),be=me&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_e=ae,we=E,xe=c,ke=Object,Se=be?function(e){return"symbol"==typeof e}:function(e){var t=_e("Symbol");return we(t)&&xe(t.prototype,ke(e))},Te=String,Ae=function(e){try{return Te(e)}catch(t){return"Object"}},Ee=E,Oe=Ae,Le=TypeError,Pe=function(e){if(Ee(e))return e;throw Le(Oe(e)+" is not a function")},Ce=Pe,Re=H,De=function(e,t){var r=e[t];return Re(r)?void 0:Ce(r)},Ue=R,Ie=E,je=ee,Me=TypeError,Be={exports:{}},Fe=f,Ne=Object.defineProperty,Ve=function(e,t){try{Ne(Fe,e,{value:t,configurable:!0,writable:!0})}catch(r){Fe[e]=t}return t},ze="__core-js_shared__",Ge=f[ze]||Ve(ze,{}),qe=Ge;(Be.exports=function(e,t){return qe[e]||(qe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var He=Be.exports,We=$,Ye=Object,$e=function(e){return Ye(We(e))},Ke=$e,Qe=u({}.hasOwnProperty),Xe=Object.hasOwn||function(e,t){return Qe(Ke(e),t)},Je=u,Ze=0,et=Math.random(),tt=Je(1..toString),rt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+tt(++Ze+et,36)},nt=He,it=Xe,ot=rt,at=me,st=be,ut=f.Symbol,ct=nt("wks"),lt=st?ut.for||ut:ut&&ut.withoutSetter||ot,ft=function(e){return it(ct,e)||(ct[e]=at&&it(ut,e)?ut[e]:lt("Symbol."+e)),ct[e]},ht=R,pt=ee,dt=Se,vt=De,yt=function(e,t){var r,n;if("string"===t&&Ie(r=e.toString)&&!je(n=Ue(r,e)))return n;if(Ie(r=e.valueOf)&&!je(n=Ue(r,e)))return n;if("string"!==t&&Ie(r=e.toString)&&!je(n=Ue(r,e)))return n;throw Me("Can't convert object to primitive value")},gt=TypeError,mt=ft("toPrimitive"),bt=function(e,t){if(!pt(e)||dt(e))return e;var r,n=vt(e,mt);if(n){if(void 0===t&&(t="default"),r=ht(n,e,t),!pt(r)||dt(r))return r;throw gt("Can't convert object to primitive value")}return void 0===t&&(t="number"),yt(e,t)},_t=Se,wt=function(e){var t=bt(e,"string");return _t(t)?t:t+""},xt=ee,kt=f.document,St=xt(kt)&&xt(kt.createElement),Tt=function(e){return St?kt.createElement(e):{}},At=Tt,Et=!L&&!r((function(){return 7!=Object.defineProperty(At("div"),"a",{get:function(){return 7}}).a})),Ot=L,Lt=R,Pt=D,Ct=F,Rt=X,Dt=wt,Ut=Xe,It=Et,jt=Object.getOwnPropertyDescriptor;O.f=Ot?jt:function(e,t){if(e=Rt(e),t=Dt(t),It)try{return jt(e,t)}catch(r){}if(Ut(e,t))return Ct(!Lt(Pt.f,e,t),e[t])};var Mt=r,Bt=E,Ft=/#|\.prototype\./,Nt=function(e,t){var r=zt[Vt(e)];return r==qt||r!=Gt&&(Bt(t)?Mt(t):!!t)},Vt=Nt.normalize=function(e){return String(e).replace(Ft,".").toLowerCase()},zt=Nt.data={},Gt=Nt.NATIVE="N",qt=Nt.POLYFILL="P",Ht=Nt,Wt=Pe,Yt=n,$t=k(k.bind),Kt=function(e,t){return Wt(e),void 0===t?e:Yt?$t(e,t):function(){return e.apply(t,arguments)}},Qt={},Xt=L&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Jt=ee,Zt=String,er=TypeError,tr=function(e){if(Jt(e))return e;throw er(Zt(e)+" is not an object")},rr=L,nr=Et,ir=Xt,or=tr,ar=wt,sr=TypeError,ur=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,lr="enumerable",fr="configurable",hr="writable";Qt.f=rr?ir?function(e,t,r){if(or(e),t=ar(t),or(r),"function"==typeof e&&"prototype"===t&&"value"in r&&hr in r&&!r[hr]){var n=cr(e,t);n&&n[hr]&&(e[t]=r.value,r={configurable:fr in r?r[fr]:n[fr],enumerable:lr in r?r[lr]:n[lr],writable:!1})}return ur(e,t,r)}:ur:function(e,t,r){if(or(e),t=ar(t),or(r),nr)try{return ur(e,t,r)}catch(n){}if("get"in r||"set"in r)throw sr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var pr=Qt,dr=F,vr=L?function(e,t,r){return pr.f(e,t,dr(1,r))}:function(e,t,r){return e[t]=r,e},yr=f,gr=y,mr=k,br=E,_r=O.f,wr=Ht,xr=te,kr=Kt,Sr=vr,Tr=Xe,Ar=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return gr(e,this,arguments)};return t.prototype=e.prototype,t},Er=function(e,t){var r,n,i,o,a,s,u,c,l,f=e.target,h=e.global,p=e.stat,d=e.proto,v=h?yr:p?yr[f]:(yr[f]||{}).prototype,y=h?xr:xr[f]||Sr(xr,f,{})[f],g=y.prototype;for(o in t)n=!(r=wr(h?o:f+(p?".":"#")+o,e.forced))&&v&&Tr(v,o),s=y[o],n&&(u=e.dontCallGetSet?(l=_r(v,o))&&l.value:v[o]),a=n&&u?u:t[o],n&&typeof s==typeof a||(c=e.bind&&n?kr(a,yr):e.wrap&&n?Ar(a):d&&br(a)?mr(a):a,(e.sham||a&&a.sham||s&&s.sham)&&Sr(c,"sham",!0),Sr(y,o,c),d&&(Tr(xr,i=f+"Prototype")||Sr(xr,i,{}),Sr(xr[i],o,a),e.real&&g&&(r||!g[o])&&Sr(g,o,a)))},Or=_,Lr=Array.isArray||function(e){return"Array"==Or(e)},Pr=Math.ceil,Cr=Math.floor,Rr=Math.trunc||function(e){var t=+e;return(t>0?Cr:Pr)(t)},Dr=function(e){var t=+e;return t!=t||0===t?0:Rr(t)},Ur=Dr,Ir=Math.min,jr=function(e){return e>0?Ir(Ur(e),9007199254740991):0},Mr=jr,Br=function(e){return Mr(e.length)},Fr=TypeError,Nr=function(e){if(e>9007199254740991)throw Fr("Maximum allowed index exceeded");return e},Vr=wt,zr=Qt,Gr=F,qr=function(e,t,r){var n=Vr(t);n in e?zr.f(e,n,Gr(0,r)):e[n]=r},Hr={};Hr[ft("toStringTag")]="z";var Wr="[object z]"===String(Hr),Yr=Wr,$r=E,Kr=_,Qr=ft("toStringTag"),Xr=Object,Jr="Arguments"==Kr(function(){return arguments}()),Zr=Yr?Kr:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=Xr(e),Qr))?r:Jr?Kr(t):"Object"==(n=Kr(t))&&$r(t.callee)?"Arguments":n},en=E,tn=Ge,rn=u(Function.toString);en(tn.inspectSource)||(tn.inspectSource=function(e){return rn(e)});var nn=tn.inspectSource,on=u,an=r,sn=E,un=Zr,cn=nn,ln=function(){},fn=[],hn=ae("Reflect","construct"),pn=/^\s*(?:class|function)\b/,dn=on(pn.exec),vn=!pn.exec(ln),yn=function(e){if(!sn(e))return!1;try{return hn(ln,fn,e),!0}catch(t){return!1}},gn=function(e){if(!sn(e))return!1;switch(un(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return vn||!!dn(pn,cn(e))}catch(t){return!0}};gn.sham=!0;var mn=!hn||an((function(){var e;return yn(yn.call)||!yn(Object)||!yn((function(){e=!0}))||e}))?gn:yn,bn=Lr,_n=mn,wn=ee,xn=ft("species"),kn=Array,Sn=function(e){var t;return bn(e)&&(t=e.constructor,(_n(t)&&(t===kn||bn(t.prototype))||wn(t)&&null===(t=t[xn]))&&(t=void 0)),void 0===t?kn:t},Tn=function(e,t){return new(Sn(e))(0===t?0:t)},An=r,En=de,On=ft("species"),Ln=function(e){return En>=51||!An((function(){var t=[];return(t.constructor={})[On]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Pn=Er,Cn=r,Rn=Lr,Dn=ee,Un=$e,In=Br,jn=Nr,Mn=qr,Bn=Tn,Fn=Ln,Nn=de,Vn=ft("isConcatSpreadable"),zn=Nn>=51||!Cn((function(){var e=[];return e[Vn]=!1,e.concat()[0]!==e})),Gn=function(e){if(!Dn(e))return!1;var t=e[Vn];return void 0!==t?!!t:Rn(e)};Pn({target:"Array",proto:!0,arity:1,forced:!zn||!Fn("concat")},{concat:function(e){var t,r,n,i,o,a=Un(this),s=Bn(a,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(Gn(o=-1===t?a:arguments[t]))for(i=In(o),jn(u+i),r=0;r<i;r++,u++)r in o&&Mn(s,u,o[r]);else jn(u+1),Mn(s,u++,o);return s.length=u,s}});var qn=te,Hn=function(e){return qn[e+"Prototype"]},Wn=Hn("Array").concat,Yn=c,$n=Wn,Kn=Array.prototype,Qn=t((function(e){var t=e.concat;return e===Kn||Yn(Kn,e)&&t===Kn.concat?$n:t})),Xn=Zr,Jn=String,Zn=function(e){if("Symbol"===Xn(e))throw TypeError("Cannot convert a Symbol value to a string");return Jn(e)},ei={},ti=Dr,ri=Math.max,ni=Math.min,ii=function(e,t){var r=ti(e);return r<0?ri(r+t,0):ni(r,t)},oi=X,ai=ii,si=Br,ui=function(e){return function(t,r,n){var i,o=oi(t),a=si(o),s=ai(n,a);if(e&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},ci={includes:ui(!0),indexOf:ui(!1)},li={},fi=Xe,hi=X,pi=ci.indexOf,di=li,vi=u([].push),yi=function(e,t){var r,n=hi(e),i=0,o=[];for(r in n)!fi(di,r)&&fi(n,r)&&vi(o,r);for(;t.length>i;)fi(n,r=t[i++])&&(~pi(o,r)||vi(o,r));return o},gi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mi=yi,bi=gi,_i=Object.keys||function(e){return mi(e,bi)},wi=L,xi=Xt,ki=Qt,Si=tr,Ti=X,Ai=_i;ei.f=wi&&!xi?Object.defineProperties:function(e,t){Si(e);for(var r,n=Ti(t),i=Ai(t),o=i.length,a=0;o>a;)ki.f(e,r=i[a++],n[r]);return e};var Ei,Oi=ae("document","documentElement"),Li=rt,Pi=He("keys"),Ci=function(e){return Pi[e]||(Pi[e]=Li(e))},Ri=tr,Di=ei,Ui=gi,Ii=li,ji=Oi,Mi=Tt,Bi="prototype",Fi="script",Ni=Ci("IE_PROTO"),Vi=function(){},zi=function(e){return"<"+Fi+">"+e+"</"+Fi+">"},Gi=function(e){e.write(zi("")),e.close();var t=e.parentWindow.Object;return e=null,t},qi=function(){try{Ei=new ActiveXObject("htmlfile")}catch(i){}var e,t,r;qi="undefined"!=typeof document?document.domain&&Ei?Gi(Ei):(t=Mi("iframe"),r="java"+Fi+":",t.style.display="none",ji.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(zi("document.F=Object")),e.close(),e.F):Gi(Ei);for(var n=Ui.length;n--;)delete qi[Bi][Ui[n]];return qi()};Ii[Ni]=!0;var Hi=Object.create||function(e,t){var r;return null!==e?(Vi[Bi]=Ri(e),r=new Vi,Vi[Bi]=null,r[Ni]=e):r=qi(),void 0===t?r:Di.f(r,t)},Wi={},Yi=yi,$i=gi.concat("length","prototype");Wi.f=Object.getOwnPropertyNames||function(e){return Yi(e,$i)};var Ki={},Qi=ii,Xi=Br,Ji=qr,Zi=Array,eo=Math.max,to=function(e,t,r){for(var n=Xi(e),i=Qi(t,n),o=Qi(void 0===r?n:r,n),a=Zi(eo(o-i,0)),s=0;i<o;i++,s++)Ji(a,s,e[i]);return a.length=s,a},ro=_,no=X,io=Wi.f,oo=to,ao="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Ki.f=function(e){return ao&&"Window"==ro(e)?function(e){try{return io(e)}catch(t){return oo(ao)}}(e):io(no(e))};var so={};so.f=Object.getOwnPropertySymbols;var uo=vr,co=function(e,t,r,n){return n&&n.enumerable?e[t]=r:uo(e,t,r),e},lo=Qt,fo=function(e,t,r){return lo.f(e,t,r)},ho={},po=ft;ho.f=po;var vo,yo,go,mo=te,bo=Xe,_o=ho,wo=Qt.f,xo=function(e){var t=mo.Symbol||(mo.Symbol={});bo(t,e)||wo(t,e,{value:_o.f(e)})},ko=R,So=ae,To=ft,Ao=co,Eo=function(){var e=So("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=To("toPrimitive");t&&!t[n]&&Ao(t,n,(function(e){return ko(r,this)}),{arity:1})},Oo=Zr,Lo=Wr?{}.toString:function(){return"[object "+Oo(this)+"]"},Po=Wr,Co=Qt.f,Ro=vr,Do=Xe,Uo=Lo,Io=ft("toStringTag"),jo=function(e,t,r,n){if(e){var i=r?e:e.prototype;Do(i,Io)||Co(i,Io,{configurable:!0,value:t}),n&&!Po&&Ro(i,"toString",Uo)}},Mo=E,Bo=f.WeakMap,Fo=Mo(Bo)&&/native code/.test(String(Bo)),No=f,Vo=ee,zo=vr,Go=Xe,qo=Ge,Ho=Ci,Wo=li,Yo="Object already initialized",$o=No.TypeError,Ko=No.WeakMap;if(Fo||qo.state){var Qo=qo.state||(qo.state=new Ko);Qo.get=Qo.get,Qo.has=Qo.has,Qo.set=Qo.set,vo=function(e,t){if(Qo.has(e))throw $o(Yo);return t.facade=e,Qo.set(e,t),t},yo=function(e){return Qo.get(e)||{}},go=function(e){return Qo.has(e)}}else{var Xo=Ho("state");Wo[Xo]=!0,vo=function(e,t){if(Go(e,Xo))throw $o(Yo);return t.facade=e,zo(e,Xo,t),t},yo=function(e){return Go(e,Xo)?e[Xo]:{}},go=function(e){return Go(e,Xo)}}var Jo={set:vo,get:yo,has:go,enforce:function(e){return go(e)?yo(e):vo(e,{})},getterFor:function(e){return function(t){var r;if(!Vo(t)||(r=yo(t)).type!==e)throw $o("Incompatible receiver, "+e+" required");return r}}},Zo=Kt,ea=q,ta=$e,ra=Br,na=Tn,ia=u([].push),oa=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(u,c,l,f){for(var h,p,d=ta(u),v=ea(d),y=Zo(c,l),g=ra(v),m=0,b=f||na,_=t?b(u,g):r||a?b(u,0):void 0;g>m;m++)if((s||m in v)&&(p=y(h=v[m],m,d),e))if(t)_[m]=p;else if(p)switch(e){case 3:return!0;case 5:return h;case 6:return m;case 2:ia(_,h)}else switch(e){case 4:return!1;case 7:ia(_,h)}return o?-1:n||i?i:_}},aa={forEach:oa(0),map:oa(1),filter:oa(2),some:oa(3),every:oa(4),find:oa(5),findIndex:oa(6),filterReject:oa(7)},sa=Er,ua=f,ca=R,la=u,fa=L,ha=me,pa=r,da=Xe,va=c,ya=tr,ga=X,ma=wt,ba=Zn,_a=F,wa=Hi,xa=_i,ka=Wi,Sa=Ki,Ta=so,Aa=O,Ea=Qt,Oa=ei,La=D,Pa=co,Ca=fo,Ra=He,Da=li,Ua=rt,Ia=ft,ja=ho,Ma=xo,Ba=Eo,Fa=jo,Na=Jo,Va=aa.forEach,za=Ci("hidden"),Ga="Symbol",qa="prototype",Ha=Na.set,Wa=Na.getterFor(Ga),Ya=Object[qa],$a=ua.Symbol,Ka=$a&&$a[qa],Qa=ua.TypeError,Xa=ua.QObject,Ja=Aa.f,Za=Ea.f,es=Sa.f,ts=La.f,rs=la([].push),ns=Ra("symbols"),is=Ra("op-symbols"),os=Ra("wks"),as=!Xa||!Xa[qa]||!Xa[qa].findChild,ss=fa&&pa((function(){return 7!=wa(Za({},"a",{get:function(){return Za(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Ja(Ya,t);n&&delete Ya[t],Za(e,t,r),n&&e!==Ya&&Za(Ya,t,n)}:Za,us=function(e,t){var r=ns[e]=wa(Ka);return Ha(r,{type:Ga,tag:e,description:t}),fa||(r.description=t),r},cs=function(e,t,r){e===Ya&&cs(is,t,r),ya(e);var n=ma(t);return ya(r),da(ns,n)?(r.enumerable?(da(e,za)&&e[za][n]&&(e[za][n]=!1),r=wa(r,{enumerable:_a(0,!1)})):(da(e,za)||Za(e,za,_a(1,{})),e[za][n]=!0),ss(e,n,r)):Za(e,n,r)},ls=function(e,t){ya(e);var r=ga(t),n=xa(r).concat(ds(r));return Va(n,(function(t){fa&&!ca(fs,r,t)||cs(e,t,r[t])})),e},fs=function(e){var t=ma(e),r=ca(ts,this,t);return!(this===Ya&&da(ns,t)&&!da(is,t))&&(!(r||!da(this,t)||!da(ns,t)||da(this,za)&&this[za][t])||r)},hs=function(e,t){var r=ga(e),n=ma(t);if(r!==Ya||!da(ns,n)||da(is,n)){var i=Ja(r,n);return!i||!da(ns,n)||da(r,za)&&r[za][n]||(i.enumerable=!0),i}},ps=function(e){var t=es(ga(e)),r=[];return Va(t,(function(e){da(ns,e)||da(Da,e)||rs(r,e)})),r},ds=function(e){var t=e===Ya,r=es(t?is:ga(e)),n=[];return Va(r,(function(e){!da(ns,e)||t&&!da(Ya,e)||rs(n,ns[e])})),n};ha||($a=function(){if(va(Ka,this))throw Qa("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?ba(arguments[0]):void 0,t=Ua(e),r=function(e){this===Ya&&ca(r,is,e),da(this,za)&&da(this[za],t)&&(this[za][t]=!1),ss(this,t,_a(1,e))};return fa&&as&&ss(Ya,t,{configurable:!0,set:r}),us(t,e)},Pa(Ka=$a[qa],"toString",(function(){return Wa(this).tag})),Pa($a,"withoutSetter",(function(e){return us(Ua(e),e)})),La.f=fs,Ea.f=cs,Oa.f=ls,Aa.f=hs,ka.f=Sa.f=ps,Ta.f=ds,ja.f=function(e){return us(Ia(e),e)},fa&&Ca(Ka,"description",{configurable:!0,get:function(){return Wa(this).description}})),sa({global:!0,constructor:!0,wrap:!0,forced:!ha,sham:!ha},{Symbol:$a}),Va(xa(os),(function(e){Ma(e)})),sa({target:Ga,stat:!0,forced:!ha},{useSetter:function(){as=!0},useSimple:function(){as=!1}}),sa({target:"Object",stat:!0,forced:!ha,sham:!fa},{create:function(e,t){return void 0===t?wa(e):ls(wa(e),t)},defineProperty:cs,defineProperties:ls,getOwnPropertyDescriptor:hs}),sa({target:"Object",stat:!0,forced:!ha},{getOwnPropertyNames:ps}),Ba(),Fa($a,Ga),Da[za]=!0;var vs=me&&!!Symbol.for&&!!Symbol.keyFor,ys=Er,gs=ae,ms=Xe,bs=Zn,_s=He,ws=vs,xs=_s("string-to-symbol-registry"),ks=_s("symbol-to-string-registry");ys({target:"Symbol",stat:!0,forced:!ws},{for:function(e){var t=bs(e);if(ms(xs,t))return xs[t];var r=gs("Symbol")(t);return xs[t]=r,ks[r]=t,r}});var Ss=Er,Ts=Xe,As=Se,Es=Ae,Os=vs,Ls=He("symbol-to-string-registry");Ss({target:"Symbol",stat:!0,forced:!Os},{keyFor:function(e){if(!As(e))throw TypeError(Es(e)+" is not a symbol");if(Ts(Ls,e))return Ls[e]}});var Ps=u([].slice),Cs=Lr,Rs=E,Ds=_,Us=Zn,Is=u([].push),js=Er,Ms=ae,Bs=y,Fs=R,Ns=u,Vs=r,zs=E,Gs=Se,qs=Ps,Hs=function(e){if(Rs(e))return e;if(Cs(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];"string"==typeof i?Is(r,i):"number"!=typeof i&&"Number"!=Ds(i)&&"String"!=Ds(i)||Is(r,Us(i))}var o=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(Cs(this))return t;for(var n=0;n<o;n++)if(r[n]===e)return t}}},Ws=me,Ys=String,$s=Ms("JSON","stringify"),Ks=Ns(/./.exec),Qs=Ns("".charAt),Xs=Ns("".charCodeAt),Js=Ns("".replace),Zs=Ns(1..toString),eu=/[\uD800-\uDFFF]/g,tu=/^[\uD800-\uDBFF]$/,ru=/^[\uDC00-\uDFFF]$/,nu=!Ws||Vs((function(){var e=Ms("Symbol")();return"[null]"!=$s([e])||"{}"!=$s({a:e})||"{}"!=$s(Object(e))})),iu=Vs((function(){return'"\\udf06\\ud834"'!==$s("\udf06\ud834")||'"\\udead"'!==$s("\udead")})),ou=function(e,t){var r=qs(arguments),n=Hs(t);if(zs(n)||void 0!==e&&!Gs(e))return r[1]=function(e,t){if(zs(n)&&(t=Fs(n,this,Ys(e),t)),!Gs(t))return t},Bs($s,null,r)},au=function(e,t,r){var n=Qs(r,t-1),i=Qs(r,t+1);return Ks(tu,e)&&!Ks(ru,i)||Ks(ru,e)&&!Ks(tu,n)?"\\u"+Zs(Xs(e,0),16):e};$s&&js({target:"JSON",stat:!0,arity:3,forced:nu||iu},{stringify:function(e,t,r){var n=qs(arguments),i=Bs(nu?ou:$s,null,n);return iu&&"string"==typeof i?Js(i,eu,au):i}});var su=so,uu=$e;Er({target:"Object",stat:!0,forced:!me||r((function(){su.f(1)}))},{getOwnPropertySymbols:function(e){var t=su.f;return t?t(uu(e)):[]}}),xo("asyncIterator"),xo("hasInstance"),xo("isConcatSpreadable"),xo("iterator"),xo("match"),xo("matchAll"),xo("replace"),xo("search"),xo("species"),xo("split");var cu=Eo;xo("toPrimitive"),cu();var lu=ae,fu=jo;xo("toStringTag"),fu(lu("Symbol"),"Symbol"),xo("unscopables"),jo(f.JSON,"JSON",!0);var hu,pu,du,vu=te.Symbol,yu={},gu=L,mu=Xe,bu=Function.prototype,_u=gu&&Object.getOwnPropertyDescriptor,wu=mu(bu,"name"),xu={EXISTS:wu,PROPER:wu&&"something"===function(){}.name,CONFIGURABLE:wu&&(!gu||gu&&_u(bu,"name").configurable)},ku=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Su=Xe,Tu=E,Au=$e,Eu=ku,Ou=Ci("IE_PROTO"),Lu=Object,Pu=Lu.prototype,Cu=Eu?Lu.getPrototypeOf:function(e){var t=Au(e);if(Su(t,Ou))return t[Ou];var r=t.constructor;return Tu(r)&&t instanceof r?r.prototype:t instanceof Lu?Pu:null},Ru=r,Du=E,Uu=ee,Iu=Hi,ju=Cu,Mu=co,Bu=ft("iterator"),Fu=!1;[].keys&&("next"in(du=[].keys())?(pu=ju(ju(du)))!==Object.prototype&&(hu=pu):Fu=!0);var Nu=!Uu(hu)||Ru((function(){var e={};return hu[Bu].call(e)!==e}));Du((hu=Nu?{}:Iu(hu))[Bu])||Mu(hu,Bu,(function(){return this}));var Vu={IteratorPrototype:hu,BUGGY_SAFARI_ITERATORS:Fu},zu=Vu.IteratorPrototype,Gu=Hi,qu=F,Hu=jo,Wu=yu,Yu=function(){return this},$u=function(e,t,r,n){var i=t+" Iterator";return e.prototype=Gu(zu,{next:qu(+!n,r)}),Hu(e,i,!1,!0),Wu[i]=Yu,e},Ku=u,Qu=Pe,Xu=E,Ju=String,Zu=TypeError,ec=function(e,t,r){try{return Ku(Qu(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},tc=tr,rc=function(e){if("object"==typeof e||Xu(e))return e;throw Zu("Can't set "+Ju(e)+" as a prototype")},nc=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=ec(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return tc(r),rc(n),t?e(r,n):r.__proto__=n,r}}():void 0),ic=Er,oc=R,ac=xu,sc=$u,uc=Cu,cc=jo,lc=co,fc=yu,hc=Vu,pc=ac.PROPER,dc=hc.BUGGY_SAFARI_ITERATORS,vc=ft("iterator"),yc="keys",gc="values",mc="entries",bc=function(){return this},_c=function(e,t,r,n,i,o,a){sc(r,t,n);var s,u,c,l=function(e){if(e===i&&v)return v;if(!dc&&e in p)return p[e];switch(e){case yc:case gc:case mc:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",h=!1,p=e.prototype,d=p[vc]||p["@@iterator"]||i&&p[i],v=!dc&&d||l(i),y="Array"==t&&p.entries||d;if(y&&(s=uc(y.call(new e)))!==Object.prototype&&s.next&&(cc(s,f,!0,!0),fc[f]=bc),pc&&i==gc&&d&&d.name!==gc&&(h=!0,v=function(){return oc(d,this)}),i)if(u={values:l(gc),keys:o?v:l(yc),entries:l(mc)},a)for(c in u)(dc||h||!(c in p))&&lc(p,c,u[c]);else ic({target:t,proto:!0,forced:dc||h},u);return a&&p[vc]!==v&&lc(p,vc,v,{name:i}),fc[t]=v,u},wc=function(e,t){return{value:e,done:t}},xc=X,kc=yu,Sc=Jo;Qt.f;var Tc=_c,Ac=wc,Ec="Array Iterator",Oc=Sc.set,Lc=Sc.getterFor(Ec);Tc(Array,"Array",(function(e,t){Oc(this,{type:Ec,target:xc(e),index:0,kind:t})}),(function(){var e=Lc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,Ac(void 0,!0)):Ac("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),kc.Arguments=kc.Array;var Pc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Cc=f,Rc=Zr,Dc=vr,Uc=yu,Ic=ft("toStringTag");for(var jc in Pc){var Mc=Cc[jc],Bc=Mc&&Mc.prototype;Bc&&Rc(Bc)!==Ic&&Dc(Bc,Ic,jc),Uc[jc]=Uc.Array}var Fc=vu;xo("dispose");var Nc=Fc;xo("asyncDispose");var Vc=Er,zc=u,Gc=ae("Symbol"),qc=Gc.keyFor,Hc=zc(Gc.prototype.valueOf);Vc({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==qc(Hc(e))}catch(t){return!1}}});for(var Wc=Er,Yc=He,$c=ae,Kc=u,Qc=Se,Xc=ft,Jc=$c("Symbol"),Zc=Jc.isWellKnown,el=$c("Object","getOwnPropertyNames"),tl=Kc(Jc.prototype.valueOf),rl=Yc("wks"),nl=0,il=el(Jc),ol=il.length;nl<ol;nl++)try{var al=il[nl];Qc(Jc[al])&&Xc(al)}catch(Cre){}Wc({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(Zc&&Zc(e))return!0;try{for(var t=tl(e),r=0,n=el(rl),i=n.length;r<i;r++)if(rl[n[r]]==t)return!0}catch(Cre){}return!1}}),xo("matcher"),xo("metadataKey"),xo("observable"),xo("metadata"),xo("patternMatch"),xo("replaceAll");var sl=Nc,ul=t(sl),cl=u,ll=Dr,fl=Zn,hl=$,pl=cl("".charAt),dl=cl("".charCodeAt),vl=cl("".slice),yl=function(e){return function(t,r){var n,i,o=fl(hl(t)),a=ll(r),s=o.length;return a<0||a>=s?e?"":void 0:(n=dl(o,a))<55296||n>56319||a+1===s||(i=dl(o,a+1))<56320||i>57343?e?pl(o,a):n:e?vl(o,a,a+2):i-56320+(n-55296<<10)+65536}},gl={codeAt:yl(!1),charAt:yl(!0)},ml=gl.charAt,bl=Zn,_l=Jo,wl=_c,xl=wc,kl="String Iterator",Sl=_l.set,Tl=_l.getterFor(kl);wl(String,"String",(function(e){Sl(this,{type:kl,string:bl(e),index:0})}),(function(){var e,t=Tl(this),r=t.string,n=t.index;return n>=r.length?xl(void 0,!0):(e=ml(r,n),t.index+=e.length,xl(e,!1))}));var Al=ho.f("iterator"),El=t(Al);function Ol(e){return(Ol="function"==typeof ul&&"symbol"==typeof El?function(e){return typeof e}:function(e){return e&&"function"==typeof ul&&e.constructor===ul&&e!==ul.prototype?"symbol":typeof e})(e)}var Ll=$e,Pl=_i;Er({target:"Object",stat:!0,forced:r((function(){Pl(1)}))},{keys:function(e){return Pl(Ll(e))}});var Cl=t(te.Object.keys),Rl=t(te.Object.getOwnPropertySymbols),Dl=aa.filter;Er({target:"Array",proto:!0,forced:!Ln("filter")},{filter:function(e){return Dl(this,e,arguments.length>1?arguments[1]:void 0)}});var Ul=Hn("Array").filter,Il=c,jl=Ul,Ml=Array.prototype,Bl=t((function(e){var t=e.filter;return e===Ml||Il(Ml,e)&&t===Ml.filter?jl:t})),Fl={exports:{}},Nl=Er,Vl=r,zl=X,Gl=O.f,ql=L;Nl({target:"Object",stat:!0,forced:!ql||Vl((function(){Gl(1)})),sham:!ql},{getOwnPropertyDescriptor:function(e,t){return Gl(zl(e),t)}});var Hl=te.Object,Wl=Fl.exports=function(e,t){return Hl.getOwnPropertyDescriptor(e,t)};Hl.getOwnPropertyDescriptor.sham&&(Wl.sham=!0);var Yl=t(Fl.exports),$l=r,Kl=function(e,t){var r=[][e];return!!r&&$l((function(){r.call(null,t||function(){return 1},1)}))},Ql=aa.forEach,Xl=Kl("forEach")?[].forEach:function(e){return Ql(this,e,arguments.length>1?arguments[1]:void 0)};Er({target:"Array",proto:!0,forced:[].forEach!=Xl},{forEach:Xl});var Jl=Hn("Array").forEach,Zl=Zr,ef=Xe,tf=c,rf=Jl,nf=Array.prototype,of={DOMTokenList:!0,NodeList:!0},af=t((function(e){var t=e.forEach;return e===nf||tf(nf,e)&&t===nf.forEach||ef(of,Zl(e))?rf:t})),sf=ae,uf=Wi,cf=so,lf=tr,ff=u([].concat),hf=sf("Reflect","ownKeys")||function(e){var t=uf.f(lf(e)),r=cf.f;return r?ff(t,r(e)):t},pf=hf,df=X,vf=O,yf=qr;Er({target:"Object",stat:!0,sham:!L},{getOwnPropertyDescriptors:function(e){for(var t,r,n=df(e),i=vf.f,o=pf(n),a={},s=0;o.length>s;)void 0!==(r=i(n,t=o[s++]))&&yf(a,t,r);return a}});var gf=t(te.Object.getOwnPropertyDescriptors),mf={exports:{}},bf=Er,_f=L,wf=ei.f;bf({target:"Object",stat:!0,forced:Object.defineProperties!==wf,sham:!_f},{defineProperties:wf});var xf=te.Object,kf=mf.exports=function(e,t){return xf.defineProperties(e,t)};xf.defineProperties.sham&&(kf.sham=!0);var Sf=t(mf.exports),Tf={exports:{}},Af=Er,Ef=L,Of=Qt.f;Af({target:"Object",stat:!0,forced:Object.defineProperty!==Of,sham:!Ef},{defineProperty:Of});var Lf=te.Object,Pf=Tf.exports=function(e,t,r){return Lf.defineProperty(e,t,r)};Lf.defineProperty.sham&&(Pf.sham=!0);var Cf=t(Tf.exports),Rf=t(sl);Er({target:"Object",stat:!0,sham:!L},{create:Hi});var Df=te.Object,Uf=t((function(e,t){return Df.create(e,t)})),If=$e,jf=Cu,Mf=ku;Er({target:"Object",stat:!0,forced:r((function(){jf(1)})),sham:!Mf},{getPrototypeOf:function(e){return jf(If(e))}});var Bf=t(te.Object.getPrototypeOf);Er({target:"Object",stat:!0},{setPrototypeOf:nc});var Ff=t(te.Object.setPrototypeOf),Nf=Xe,Vf=hf,zf=O,Gf=Qt,qf=ee,Hf=vr,Wf=Error,Yf=u("".replace),$f=String(Wf("zxcasd").stack),Kf=/\n\s*at [^:]*:[^\n]*/,Qf=Kf.test($f),Xf=F,Jf=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Xf(1,7)),7!==e.stack)})),Zf=vr,eh=function(e,t){if(Qf&&"string"==typeof e&&!Wf.prepareStackTrace)for(;t--;)e=Yf(e,Kf,"");return e},th=Jf,rh=Error.captureStackTrace,nh=yu,ih=ft("iterator"),oh=Array.prototype,ah=function(e){return void 0!==e&&(nh.Array===e||oh[ih]===e)},sh=Zr,uh=De,ch=H,lh=yu,fh=ft("iterator"),hh=function(e){if(!ch(e))return uh(e,fh)||uh(e,"@@iterator")||lh[sh(e)]},ph=R,dh=Pe,vh=tr,yh=Ae,gh=hh,mh=TypeError,bh=function(e,t){var r=arguments.length<2?gh(e):t;if(dh(r))return vh(ph(r,e));throw mh(yh(e)+" is not iterable")},_h=R,wh=tr,xh=De,kh=function(e,t,r){var n,i;wh(e);try{if(!(n=xh(e,"return"))){if("throw"===t)throw r;return r}n=_h(n,e)}catch(Cre){i=!0,n=Cre}if("throw"===t)throw r;if(i)throw n;return wh(n),r},Sh=Kt,Th=R,Ah=tr,Eh=Ae,Oh=ah,Lh=Br,Ph=c,Ch=bh,Rh=hh,Dh=kh,Uh=TypeError,Ih=function(e,t){this.stopped=e,this.result=t},jh=Ih.prototype,Mh=function(e,t,r){var n,i,o,a,s,u,c,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=Sh(t,l),y=function(e){return n&&Dh(n,"normal",e),new Ih(!0,e)},g=function(e){return f?(Ah(e),d?v(e[0],e[1],y):v(e[0],e[1])):d?v(e,y):v(e)};if(h)n=e.iterator;else if(p)n=e;else{if(!(i=Rh(e)))throw Uh(Eh(e)+" is not iterable");if(Oh(i)){for(o=0,a=Lh(e);a>o;o++)if((s=g(e[o]))&&Ph(jh,s))return s;return new Ih(!1)}n=Ch(e,i)}for(u=h?e.next:n.next;!(c=Th(u,n)).done;){try{s=g(c.value)}catch(Cre){Dh(n,"throw",Cre)}if("object"==typeof s&&s&&Ph(jh,s))return s}return new Ih(!1)},Bh=Zn,Fh=Er,Nh=c,Vh=Cu,zh=nc,Gh=function(e,t,r){for(var n=Vf(t),i=Gf.f,o=zf.f,a=0;a<n.length;a++){var s=n[a];Nf(e,s)||r&&Nf(r,s)||i(e,s,o(t,s))}},qh=Hi,Hh=vr,Wh=F,Yh=function(e,t){qf(t)&&"cause"in t&&Hf(e,"cause",t.cause)},$h=function(e,t,r,n){th&&(rh?rh(e,t):Zf(e,"stack",eh(r,n)))},Kh=Mh,Qh=function(e,t){return void 0===e?arguments.length<2?"":t:Bh(e)},Xh=ft("toStringTag"),Jh=Error,Zh=[].push,ep=function(e,t){var r,n=Nh(tp,this);zh?r=zh(Jh(),n?Vh(this):tp):(r=n?this:qh(tp),Hh(r,Xh,"Error")),void 0!==t&&Hh(r,"message",Qh(t)),$h(r,ep,r.stack,1),arguments.length>2&&Yh(r,arguments[2]);var i=[];return Kh(e,Zh,{that:i}),Hh(r,"errors",i),r};zh?zh(ep,Jh):Gh(ep,Jh,{name:!0});var tp=ep.prototype=qh(Jh.prototype,{constructor:Wh(1,ep),message:Wh(1,""),name:Wh(1,"AggregateError")});Fh({global:!0,constructor:!0,arity:2},{AggregateError:ep});var rp,np,ip,op,ap="undefined"!=typeof process&&"process"==_(process),sp=ae,up=fo,cp=L,lp=ft("species"),fp=function(e){var t=sp(e);cp&&t&&!t[lp]&&up(t,lp,{configurable:!0,get:function(){return this}})},hp=c,pp=TypeError,dp=function(e,t){if(hp(t,e))return e;throw pp("Incorrect invocation")},vp=mn,yp=Ae,gp=TypeError,mp=function(e){if(vp(e))return e;throw gp(yp(e)+" is not a constructor")},bp=tr,_p=mp,wp=H,xp=ft("species"),kp=function(e,t){var r,n=bp(e).constructor;return void 0===n||wp(r=bp(n)[xp])?t:_p(r)},Sp=TypeError,Tp=function(e,t){if(e<t)throw Sp("Not enough arguments");return e},Ap=/(?:ipad|iphone|ipod).*applewebkit/i.test(se),Ep=f,Op=y,Lp=Kt,Pp=E,Cp=Xe,Rp=r,Dp=Oi,Up=Ps,Ip=Tt,jp=Tp,Mp=Ap,Bp=ap,Fp=Ep.setImmediate,Np=Ep.clearImmediate,Vp=Ep.process,zp=Ep.Dispatch,Gp=Ep.Function,qp=Ep.MessageChannel,Hp=Ep.String,Wp=0,Yp={},$p="onreadystatechange";Rp((function(){rp=Ep.location}));var Kp=function(e){if(Cp(Yp,e)){var t=Yp[e];delete Yp[e],t()}},Qp=function(e){return function(){Kp(e)}},Xp=function(e){Kp(e.data)},Jp=function(e){Ep.postMessage(Hp(e),rp.protocol+"//"+rp.host)};Fp&&Np||(Fp=function(e){jp(arguments.length,1);var t=Pp(e)?e:Gp(e),r=Up(arguments,1);return Yp[++Wp]=function(){Op(t,void 0,r)},np(Wp),Wp},Np=function(e){delete Yp[e]},Bp?np=function(e){Vp.nextTick(Qp(e))}:zp&&zp.now?np=function(e){zp.now(Qp(e))}:qp&&!Mp?(op=(ip=new qp).port2,ip.port1.onmessage=Xp,np=Lp(op.postMessage,op)):Ep.addEventListener&&Pp(Ep.postMessage)&&!Ep.importScripts&&rp&&"file:"!==rp.protocol&&!Rp(Jp)?(np=Jp,Ep.addEventListener("message",Xp,!1)):np=$p in Ip("script")?function(e){Dp.appendChild(Ip("script"))[$p]=function(){Dp.removeChild(this),Kp(e)}}:function(e){setTimeout(Qp(e),0)});var Zp={set:Fp,clear:Np},ed=function(){this.head=null,this.tail=null};ed.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var td,rd,nd,id,od,ad=ed,sd=/ipad|iphone|ipod/i.test(se)&&"undefined"!=typeof Pebble,ud=/web0s(?!.*chrome)/i.test(se),cd=f,ld=Kt,fd=O.f,hd=Zp.set,pd=ad,dd=Ap,vd=sd,yd=ud,gd=ap,md=cd.MutationObserver||cd.WebKitMutationObserver,bd=cd.document,_d=cd.process,wd=cd.Promise,xd=fd(cd,"queueMicrotask"),kd=xd&&xd.value;if(!kd){var Sd=new pd,Td=function(){var e,t;for(gd&&(e=_d.domain)&&e.exit();t=Sd.get();)try{t()}catch(Cre){throw Sd.head&&td(),Cre}e&&e.enter()};dd||gd||yd||!md||!bd?!vd&&wd&&wd.resolve?((id=wd.resolve(void 0)).constructor=wd,od=ld(id.then,id),td=function(){od(Td)}):gd?td=function(){_d.nextTick(Td)}:(hd=ld(hd,cd),td=function(){hd(Td)}):(rd=!0,nd=bd.createTextNode(""),new md(Td).observe(nd,{characterData:!0}),td=function(){nd.data=rd=!rd}),kd=function(e){Sd.head||td(),Sd.add(e)}}var Ad=kd,Ed=function(e){try{return{error:!1,value:e()}}catch(Cre){return{error:!0,value:Cre}}},Od=f.Promise,Ld="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Pd=!Ld&&!ap&&"object"==typeof window&&"object"==typeof document,Cd=f,Rd=Od,Dd=E,Ud=Ht,Id=nn,jd=ft,Md=Pd,Bd=Ld,Fd=de,Nd=Rd&&Rd.prototype,Vd=jd("species"),zd=!1,Gd=Dd(Cd.PromiseRejectionEvent),qd={CONSTRUCTOR:Ud("Promise",(function(){var e=Id(Rd),t=e!==String(Rd);if(!t&&66===Fd)return!0;if(!Nd.catch||!Nd.finally)return!0;if(!Fd||Fd<51||!/native code/.test(e)){var r=new Rd((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[Vd]=n,!(zd=r.then((function(){}))instanceof n))return!0}return!t&&(Md||Bd)&&!Gd})),REJECTION_EVENT:Gd,SUBCLASSING:zd},Hd={},Wd=Pe,Yd=TypeError,$d=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw Yd("Bad Promise constructor");t=e,r=n})),this.resolve=Wd(t),this.reject=Wd(r)};Hd.f=function(e){return new $d(e)};var Kd,Qd,Xd=Er,Jd=ap,Zd=f,ev=R,tv=co,rv=jo,nv=fp,iv=Pe,ov=E,av=ee,sv=dp,uv=kp,cv=Zp.set,lv=Ad,fv=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(Cre){}},hv=Ed,pv=ad,dv=Jo,vv=Od,yv=qd,gv=Hd,mv="Promise",bv=yv.CONSTRUCTOR,_v=yv.REJECTION_EVENT,wv=dv.getterFor(mv),xv=dv.set,kv=vv&&vv.prototype,Sv=vv,Tv=kv,Av=Zd.TypeError,Ev=Zd.document,Ov=Zd.process,Lv=gv.f,Pv=Lv,Cv=!!(Ev&&Ev.createEvent&&Zd.dispatchEvent),Rv="unhandledrejection",Dv=function(e){var t;return!(!av(e)||!ov(t=e.then))&&t},Uv=function(e,t){var r,n,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(a||(2===t.rejection&&Fv(t),t.rejection=1),!0===s?r=o:(l&&l.enter(),r=s(o),l&&(l.exit(),i=!0)),r===e.promise?c(Av("Promise-chain cycle")):(n=Dv(r))?ev(n,r,u,c):u(r)):c(o)}catch(Cre){l&&!i&&l.exit(),c(Cre)}},Iv=function(e,t){e.notified||(e.notified=!0,lv((function(){for(var r,n=e.reactions;r=n.get();)Uv(r,e);e.notified=!1,t&&!e.rejection&&Mv(e)})))},jv=function(e,t,r){var n,i;Cv?((n=Ev.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Zd.dispatchEvent(n)):n={promise:t,reason:r},!_v&&(i=Zd["on"+e])?i(n):e===Rv&&fv("Unhandled promise rejection",r)},Mv=function(e){ev(cv,Zd,(function(){var t,r=e.facade,n=e.value;if(Bv(e)&&(t=hv((function(){Jd?Ov.emit("unhandledRejection",n,r):jv(Rv,r,n)})),e.rejection=Jd||Bv(e)?2:1,t.error))throw t.value}))},Bv=function(e){return 1!==e.rejection&&!e.parent},Fv=function(e){ev(cv,Zd,(function(){var t=e.facade;Jd?Ov.emit("rejectionHandled",t):jv("rejectionhandled",t,e.value)}))},Nv=function(e,t,r){return function(n){e(t,n,r)}},Vv=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Iv(e,!0))},zv=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw Av("Promise can't be resolved itself");var n=Dv(t);n?lv((function(){var r={done:!1};try{ev(n,t,Nv(zv,r,e),Nv(Vv,r,e))}catch(Cre){Vv(r,Cre,e)}})):(e.value=t,e.state=1,Iv(e,!1))}catch(Cre){Vv({done:!1},Cre,e)}}};bv&&(Tv=(Sv=function(e){sv(this,Tv),iv(e),ev(Kd,this);var t=wv(this);try{e(Nv(zv,t),Nv(Vv,t))}catch(Cre){Vv(t,Cre)}}).prototype,(Kd=function(e){xv(this,{type:mv,done:!1,notified:!1,parent:!1,reactions:new pv,rejection:!1,state:0,value:void 0})}).prototype=tv(Tv,"then",(function(e,t){var r=wv(this),n=Lv(uv(this,Sv));return r.parent=!0,n.ok=!ov(e)||e,n.fail=ov(t)&&t,n.domain=Jd?Ov.domain:void 0,0==r.state?r.reactions.add(n):lv((function(){Uv(n,r)})),n.promise})),Qd=function(){var e=new Kd,t=wv(e);this.promise=e,this.resolve=Nv(zv,t),this.reject=Nv(Vv,t)},gv.f=Lv=function(e){return e===Sv||undefined===e?new Qd(e):Pv(e)}),Xd({global:!0,constructor:!0,wrap:!0,forced:bv},{Promise:Sv}),rv(Sv,mv,!1,!0),nv(mv);var Gv=ft("iterator"),qv=!1;try{var Hv=0,Wv={next:function(){return{done:!!Hv++}},return:function(){qv=!0}};Wv[Gv]=function(){return this},Array.from(Wv,(function(){throw 2}))}catch(Cre){}var Yv=function(e,t){if(!t&&!qv)return!1;var r=!1;try{var n={};n[Gv]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(Cre){}return r},$v=Od,Kv=qd.CONSTRUCTOR||!Yv((function(e){$v.all(e).then(void 0,(function(){}))})),Qv=R,Xv=Pe,Jv=Hd,Zv=Ed,ey=Mh;Er({target:"Promise",stat:!0,forced:Kv},{all:function(e){var t=this,r=Jv.f(t),n=r.resolve,i=r.reject,o=Zv((function(){var r=Xv(t.resolve),o=[],a=0,s=1;ey(e,(function(e){var u=a++,c=!1;s++,Qv(r,t,e).then((function(e){c||(c=!0,o[u]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise}});var ty=Er,ry=qd.CONSTRUCTOR;Od&&Od.prototype,ty({target:"Promise",proto:!0,forced:ry,real:!0},{catch:function(e){return this.then(void 0,e)}});var ny=R,iy=Pe,oy=Hd,ay=Ed,sy=Mh;Er({target:"Promise",stat:!0,forced:Kv},{race:function(e){var t=this,r=oy.f(t),n=r.reject,i=ay((function(){var i=iy(t.resolve);sy(e,(function(e){ny(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var uy=R,cy=Hd;Er({target:"Promise",stat:!0,forced:qd.CONSTRUCTOR},{reject:function(e){var t=cy.f(this);return uy(t.reject,void 0,e),t.promise}});var ly=tr,fy=ee,hy=Hd,py=function(e,t){if(ly(e),fy(t)&&t.constructor===e)return t;var r=hy.f(e);return(0,r.resolve)(t),r.promise},dy=Er,vy=Od,yy=qd.CONSTRUCTOR,gy=py,my=ae("Promise"),by=!yy;dy({target:"Promise",stat:!0,forced:true},{resolve:function(e){return gy(by&&this===my?vy:this,e)}});var _y=R,wy=Pe,xy=Hd,ky=Ed,Sy=Mh;Er({target:"Promise",stat:!0,forced:Kv},{allSettled:function(e){var t=this,r=xy.f(t),n=r.resolve,i=r.reject,o=ky((function(){var r=wy(t.resolve),i=[],o=0,a=1;Sy(e,(function(e){var s=o++,u=!1;a++,_y(r,t,e).then((function(e){u||(u=!0,i[s]={status:"fulfilled",value:e},--a||n(i))}),(function(e){u||(u=!0,i[s]={status:"rejected",reason:e},--a||n(i))}))})),--a||n(i)}));return o.error&&i(o.value),r.promise}});var Ty=R,Ay=Pe,Ey=ae,Oy=Hd,Ly=Ed,Py=Mh,Cy="No one promise resolved";Er({target:"Promise",stat:!0,forced:Kv},{any:function(e){var t=this,r=Ey("AggregateError"),n=Oy.f(t),i=n.resolve,o=n.reject,a=Ly((function(){var n=Ay(t.resolve),a=[],s=0,u=1,c=!1;Py(e,(function(e){var l=s++,f=!1;u++,Ty(n,t,e).then((function(e){f||c||(c=!0,i(e))}),(function(e){f||c||(f=!0,a[l]=e,--u||o(new r(a,Cy)))}))})),--u||o(new r(a,Cy))}));return a.error&&o(a.value),n.promise}});var Ry=Er,Dy=Od,Uy=r,Iy=ae,jy=E,My=kp,By=py,Fy=Dy&&Dy.prototype;Ry({target:"Promise",proto:!0,real:!0,forced:!!Dy&&Uy((function(){Fy.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=My(this,Iy("Promise")),r=jy(e);return this.then(r?function(r){return By(t,e()).then((function(){return r}))}:e,r?function(r){return By(t,e()).then((function(){throw r}))}:e)}});var Ny=te.Promise,Vy=Hd,zy=Ed;Er({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Vy.f(this),r=zy(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var Gy=t(Ny),qy=Er,Hy=Lr,Wy=u([].reverse),Yy=[1,2];qy({target:"Array",proto:!0,forced:String(Yy)===String(Yy.reverse())},{reverse:function(){return Hy(this)&&(this.length=this.length),Wy(this)}});var $y=Hn("Array").reverse,Ky=c,Qy=$y,Xy=Array.prototype,Jy=t((function(e){var t=e.reverse;return e===Xy||Ky(Xy,e)&&t===Xy.reverse?Qy:t})),Zy=Er,eg=Lr,tg=mn,rg=ee,ng=ii,ig=Br,og=X,ag=qr,sg=ft,ug=Ps,cg=Ln("slice"),lg=sg("species"),fg=Array,hg=Math.max;Zy({target:"Array",proto:!0,forced:!cg},{slice:function(e,t){var r,n,i,o=og(this),a=ig(o),s=ng(e,a),u=ng(void 0===t?a:t,a);if(eg(o)&&(r=o.constructor,(tg(r)&&(r===fg||eg(r.prototype))||rg(r)&&null===(r=r[lg]))&&(r=void 0),r===fg||void 0===r))return ug(o,s,u);for(n=new(void 0===r?fg:r)(hg(u-s,0)),i=0;s<u;s++,i++)s in o&&ag(n,i,o[s]);return n.length=i,n}});var pg=Hn("Array").slice,dg=c,vg=pg,yg=Array.prototype,gg=t((function(e){var t=e.slice;return e===yg||dg(yg,e)&&t===yg.slice?vg:t})),mg=u,bg=Pe,_g=ee,wg=Xe,xg=Ps,kg=n,Sg=Function,Tg=mg([].concat),Ag=mg([].join),Eg={},Og=kg?Sg.bind:function(e){var t=bg(this),r=t.prototype,n=xg(arguments,1),i=function(){var r=Tg(n,xg(arguments));return this instanceof i?function(e,t,r){if(!wg(Eg,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Eg[t]=Sg("C,a","return new C("+Ag(n,",")+")")}return Eg[t](e,r)}(t,r.length,r):t.apply(e,r)};return _g(r)&&(i.prototype=r),i},Lg=Og;Er({target:"Function",proto:!0,forced:Function.bind!==Lg},{bind:Lg});var Pg=Hn("Function").bind,Cg=c,Rg=Pg,Dg=Function.prototype,Ug=t((function(e){var t=e.bind;return e===Dg||Cg(Dg,e)&&t===Dg.bind?Rg:t})),Ig=Er,jg=y,Mg=Og,Bg=mp,Fg=tr,Ng=ee,Vg=Hi,zg=r,Gg=ae("Reflect","construct"),qg=Object.prototype,Hg=[].push,Wg=zg((function(){function e(){}return!(Gg((function(){}),[],e)instanceof e)})),Yg=!zg((function(){Gg((function(){}))})),$g=Wg||Yg;Ig({target:"Reflect",stat:!0,forced:$g,sham:$g},{construct:function(e,t){Bg(e),Fg(t);var r=arguments.length<3?e:Bg(arguments[2]);if(Yg&&!Wg)return Gg(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return jg(Hg,n,t),new(jg(Mg,e,n))}var i=r.prototype,o=Vg(Ng(i)?i:qg),a=jg(e,o,t);return Ng(a)?a:o}});var Kg=t(te.Reflect.construct),Qg=t(ho.f("toPrimitive"));function Xg(e,t){var r=Cl(e);if(Rl){var n=Rl(e);t&&(n=Bl(n).call(n,(function(t){return Yl(e,t).enumerable}))),r.push.apply(r,n)}return r}function Jg(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?af(r=Xg(Object(i),!0)).call(r,(function(t){om(e,t,i[t])})):gf?Sf(e,gf(i)):af(n=Xg(Object(i))).call(n,(function(t){Cf(e,t,Yl(i,t))}))}return e}function Zg(){Zg=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Cf||function(e,t,r){e[t]=r.value},i="function"==typeof Rf?Rf:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,r){return Cf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(E){u=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var o=t&&t.prototype instanceof h?t:h,a=Uf(o.prototype),s=new S(i||[]);return n(a,"_invoke",{value:_(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(E){return{type:"throw",arg:E}}}e.wrap=c;var f={};function h(){}function p(){}function d(){}var v={};u(v,o,(function(){return this}));var y=Bf&&Bf(Bf(T([])));y&&y!==t&&r.call(y,o)&&(v=y);var g=d.prototype=h.prototype=Uf(v);function m(e){var t;af(t=["next","throw","return"]).call(t,(function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function i(n,o,a,s){var u=l(e[n],e,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Ol(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,s)}),(function(e){i("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,s)}))}s(u.arg)}var o;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return o=o?o.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],af(e).call(e,x,this),this.reset(!0)}function T(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:A}}function A(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Ff?Ff(e,d):(e.__proto__=d,u(e,s,"GeneratorFunction")),e.prototype=Uf(g),e},e.awrap=function(e){return{__await:e}},m(b.prototype),u(b.prototype,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Gy);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(g),u(g,s,"Generator"),u(g,o,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return Jy(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,S.prototype={constructor:S,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,af(t=this.tryEntries).call(t,k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+gg(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;k(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function em(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(Cre){return void r(Cre)}s.done?t(u):Gy.resolve(u).then(n,i)}function tm(e){return function(){var t=this,r=arguments;return new Gy((function(n,i){var o=e.apply(t,r);function a(e){em(o,n,i,a,s,"next",e)}function s(e){em(o,n,i,a,s,"throw",e)}a(void 0)}))}}function rm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nm(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Cf(e,fm(n.key),n)}}function im(e,t,r){return t&&nm(e.prototype,t),r&&nm(e,r),Cf(e,"prototype",{writable:!1}),e}function om(e,t,r){return(t=fm(t))in e?Cf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function am(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Uf(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Cf(e,"prototype",{writable:!1}),t&&um(e,t)}function sm(e){var t;return(sm=Ff?Ug(t=Bf).call(t):function(e){return e.__proto__||Bf(e)})(e)}function um(e,t){var r;return(um=Ff?Ug(r=Ff).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function cm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lm(e){var t=function(){if("undefined"==typeof Reflect||!Kg)return!1;if(Kg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Kg(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=sm(e);if(t){var i=sm(this).constructor;r=Kg(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Ol(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cm(e)}(this,r)}}function fm(e){var t=function(e,t){if("object"!==Ol(e)||null===e)return e;var r=e[Qg];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Ol(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ol(t)?t:String(t)}var hm=function(e){return e&&e.Math==Math&&e},pm=hm("object"==typeof globalThis&&globalThis)||hm("object"==typeof window&&window)||hm("object"==typeof self&&self)||hm("object"==typeof e&&e)||function(){return this}()||Function("return this")(),dm={},vm=function(e){try{return!!e()}catch(Cre){return!0}},ym=!vm((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),gm=!vm((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),mm=gm,bm=Function.prototype.call,_m=mm?bm.bind(bm):function(){return bm.apply(bm,arguments)},wm={},xm={}.propertyIsEnumerable,km=Object.getOwnPropertyDescriptor,Sm=km&&!xm.call({1:2},1);wm.f=Sm?function(e){var t=km(this,e);return!!t&&t.enumerable}:xm;var Tm,Am,Em=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Om=gm,Lm=Function.prototype,Pm=Lm.call,Cm=Om&&Lm.bind.bind(Pm,Pm),Rm=Om?Cm:function(e){return function(){return Pm.apply(e,arguments)}},Dm=Rm,Um=Dm({}.toString),Im=Dm("".slice),jm=function(e){return Im(Um(e),8,-1)},Mm=vm,Bm=jm,Fm=Object,Nm=Rm("".split),Vm=Mm((function(){return!Fm("z").propertyIsEnumerable(0)}))?function(e){return"String"==Bm(e)?Nm(e,""):Fm(e)}:Fm,zm=function(e){return null==e},Gm=zm,qm=TypeError,Hm=function(e){if(Gm(e))throw qm("Can't call method on "+e);return e},Wm=Vm,Ym=Hm,$m=function(e){return Wm(Ym(e))},Km="object"==typeof document&&document.all,Qm={all:Km,IS_HTMLDDA:void 0===Km&&void 0!==Km},Xm=Qm.all,Jm=Qm.IS_HTMLDDA?function(e){return"function"==typeof e||e===Xm}:function(e){return"function"==typeof e},Zm=Jm,eb=Qm.all,tb=Qm.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Zm(e)||e===eb}:function(e){return"object"==typeof e?null!==e:Zm(e)},rb=pm,nb=Jm,ib=function(e,t){return arguments.length<2?(r=rb[e],nb(r)?r:void 0):rb[e]&&rb[e][t];var r},ob=Rm({}.isPrototypeOf),ab=ib("navigator","userAgent")||"",sb=pm,ub=ab,cb=sb.process,lb=sb.Deno,fb=cb&&cb.versions||lb&&lb.version,hb=fb&&fb.v8;hb&&(Am=(Tm=hb.split("."))[0]>0&&Tm[0]<4?1:+(Tm[0]+Tm[1])),!Am&&ub&&(!(Tm=ub.match(/Edge\/(\d+)/))||Tm[1]>=74)&&(Tm=ub.match(/Chrome\/(\d+)/))&&(Am=+Tm[1]);var pb=Am,db=pb,vb=vm,yb=!!Object.getOwnPropertySymbols&&!vb((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&db&&db<41})),gb=yb&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,mb=ib,bb=Jm,_b=ob,wb=Object,xb=gb?function(e){return"symbol"==typeof e}:function(e){var t=mb("Symbol");return bb(t)&&_b(t.prototype,wb(e))},kb=String,Sb=function(e){try{return kb(e)}catch(Cre){return"Object"}},Tb=Jm,Ab=Sb,Eb=TypeError,Ob=function(e){if(Tb(e))return e;throw Eb(Ab(e)+" is not a function")},Lb=Ob,Pb=zm,Cb=function(e,t){var r=e[t];return Pb(r)?void 0:Lb(r)},Rb=_m,Db=Jm,Ub=tb,Ib=TypeError,jb={exports:{}},Mb=pm,Bb=Object.defineProperty,Fb=function(e,t){try{Bb(Mb,e,{value:t,configurable:!0,writable:!0})}catch(Cre){Mb[e]=t}return t},Nb=Fb,Vb="__core-js_shared__",zb=pm[Vb]||Nb(Vb,{}),Gb=zb;(jb.exports=function(e,t){return Gb[e]||(Gb[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"});var qb=jb.exports,Hb=Hm,Wb=Object,Yb=function(e){return Wb(Hb(e))},$b=Yb,Kb=Rm({}.hasOwnProperty),Qb=Object.hasOwn||function(e,t){return Kb($b(e),t)},Xb=Rm,Jb=0,Zb=Math.random(),e_=Xb(1..toString),t_=function(e){return"Symbol("+(void 0===e?"":e)+")_"+e_(++Jb+Zb,36)},r_=pm,n_=Qb,i_=t_,o_=yb,a_=gb,s_=qb("wks"),u_=r_.Symbol,c_=u_&&u_.for,l_=a_?u_:u_&&u_.withoutSetter||i_,f_=function(e){if(!n_(s_,e)||!o_&&"string"!=typeof s_[e]){var t="Symbol."+e;o_&&n_(u_,e)?s_[e]=u_[e]:s_[e]=a_&&c_?c_(t):l_(t)}return s_[e]},h_=_m,p_=tb,d_=xb,v_=Cb,y_=function(e,t){var r,n;if("string"===t&&Db(r=e.toString)&&!Ub(n=Rb(r,e)))return n;if(Db(r=e.valueOf)&&!Ub(n=Rb(r,e)))return n;if("string"!==t&&Db(r=e.toString)&&!Ub(n=Rb(r,e)))return n;throw Ib("Can't convert object to primitive value")},g_=TypeError,m_=f_("toPrimitive"),b_=function(e,t){if(!p_(e)||d_(e))return e;var r,n=v_(e,m_);if(n){if(void 0===t&&(t="default"),r=h_(n,e,t),!p_(r)||d_(r))return r;throw g_("Can't convert object to primitive value")}return void 0===t&&(t="number"),y_(e,t)},__=b_,w_=xb,x_=function(e){var t=__(e,"string");return w_(t)?t:t+""},k_=tb,S_=pm.document,T_=k_(S_)&&k_(S_.createElement),A_=function(e){return T_?S_.createElement(e):{}},E_=A_,O_=!ym&&!vm((function(){return 7!=Object.defineProperty(E_("div"),"a",{get:function(){return 7}}).a})),L_=ym,P_=_m,C_=wm,R_=Em,D_=$m,U_=x_,I_=Qb,j_=O_,M_=Object.getOwnPropertyDescriptor;dm.f=L_?M_:function(e,t){if(e=D_(e),t=U_(t),j_)try{return M_(e,t)}catch(Cre){}if(I_(e,t))return R_(!P_(C_.f,e,t),e[t])};var B_={},F_=ym&&vm((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),N_=tb,V_=String,z_=TypeError,G_=function(e){if(N_(e))return e;throw z_(V_(e)+" is not an object")},q_=ym,H_=O_,W_=F_,Y_=G_,$_=x_,K_=TypeError,Q_=Object.defineProperty,X_=Object.getOwnPropertyDescriptor,J_="enumerable",Z_="configurable",ew="writable";B_.f=q_?W_?function(e,t,r){if(Y_(e),t=$_(t),Y_(r),"function"==typeof e&&"prototype"===t&&"value"in r&&ew in r&&!r[ew]){var n=X_(e,t);n&&n[ew]&&(e[t]=r.value,r={configurable:Z_ in r?r[Z_]:n[Z_],enumerable:J_ in r?r[J_]:n[J_],writable:!1})}return Q_(e,t,r)}:Q_:function(e,t,r){if(Y_(e),t=$_(t),Y_(r),H_)try{return Q_(e,t,r)}catch(Cre){}if("get"in r||"set"in r)throw K_("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var tw=B_,rw=Em,nw=ym?function(e,t,r){return tw.f(e,t,rw(1,r))}:function(e,t,r){return e[t]=r,e},iw={exports:{}},ow=ym,aw=Qb,sw=Function.prototype,uw=ow&&Object.getOwnPropertyDescriptor,cw=aw(sw,"name"),lw={EXISTS:cw,PROPER:cw&&"something"===function(){}.name,CONFIGURABLE:cw&&(!ow||ow&&uw(sw,"name").configurable)},fw=Jm,hw=zb,pw=Rm(Function.toString);fw(hw.inspectSource)||(hw.inspectSource=function(e){return pw(e)});var dw,vw,yw,gw=hw.inspectSource,mw=Jm,bw=pm.WeakMap,_w=mw(bw)&&/native code/.test(String(bw)),ww=t_,xw=qb("keys"),kw=function(e){return xw[e]||(xw[e]=ww(e))},Sw={},Tw=_w,Aw=pm,Ew=tb,Ow=nw,Lw=Qb,Pw=zb,Cw=kw,Rw=Sw,Dw="Object already initialized",Uw=Aw.TypeError,Iw=Aw.WeakMap;if(Tw||Pw.state){var jw=Pw.state||(Pw.state=new Iw);jw.get=jw.get,jw.has=jw.has,jw.set=jw.set,dw=function(e,t){if(jw.has(e))throw Uw(Dw);return t.facade=e,jw.set(e,t),t},vw=function(e){return jw.get(e)||{}},yw=function(e){return jw.has(e)}}else{var Mw=Cw("state");Rw[Mw]=!0,dw=function(e,t){if(Lw(e,Mw))throw Uw(Dw);return t.facade=e,Ow(e,Mw,t),t},vw=function(e){return Lw(e,Mw)?e[Mw]:{}},yw=function(e){return Lw(e,Mw)}}var Bw={set:dw,get:vw,has:yw,enforce:function(e){return yw(e)?vw(e):dw(e,{})},getterFor:function(e){return function(t){var r;if(!Ew(t)||(r=vw(t)).type!==e)throw Uw("Incompatible receiver, "+e+" required");return r}}},Fw=vm,Nw=Jm,Vw=Qb,zw=ym,Gw=lw.CONFIGURABLE,qw=gw,Hw=Bw.enforce,Ww=Bw.get,Yw=Object.defineProperty,$w=zw&&!Fw((function(){return 8!==Yw((function(){}),"length",{value:8}).length})),Kw=String(String).split("String"),Qw=iw.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Vw(e,"name")||Gw&&e.name!==t)&&(zw?Yw(e,"name",{value:t,configurable:!0}):e.name=t),$w&&r&&Vw(r,"arity")&&e.length!==r.arity&&Yw(e,"length",{value:r.arity});try{r&&Vw(r,"constructor")&&r.constructor?zw&&Yw(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(Cre){}var n=Hw(e);return Vw(n,"source")||(n.source=Kw.join("string"==typeof t?t:"")),e};Function.prototype.toString=Qw((function(){return Nw(this)&&Ww(this).source||qw(this)}),"toString");var Xw=iw.exports,Jw=Jm,Zw=B_,ex=Xw,tx=Fb,rx=function(e,t,r,n){n||(n={});var i=n.enumerable,o=void 0!==n.name?n.name:t;if(Jw(r)&&ex(r,o,n),n.global)i?e[t]=r:tx(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(Cre){}i?e[t]=r:Zw.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},nx={},ix=Math.ceil,ox=Math.floor,ax=Math.trunc||function(e){var t=+e;return(t>0?ox:ix)(t)},sx=function(e){var t=+e;return t!=t||0===t?0:ax(t)},ux=sx,cx=Math.max,lx=Math.min,fx=function(e,t){var r=ux(e);return r<0?cx(r+t,0):lx(r,t)},hx=sx,px=Math.min,dx=function(e){return e>0?px(hx(e),9007199254740991):0},vx=dx,yx=function(e){return vx(e.length)},gx=$m,mx=fx,bx=yx,_x=function(e){return function(t,r,n){var i,o=gx(t),a=bx(o),s=mx(n,a);if(e&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},wx={includes:_x(!0),indexOf:_x(!1)},xx=Qb,kx=$m,Sx=wx.indexOf,Tx=Sw,Ax=Rm([].push),Ex=function(e,t){var r,n=kx(e),i=0,o=[];for(r in n)!xx(Tx,r)&&xx(n,r)&&Ax(o,r);for(;t.length>i;)xx(n,r=t[i++])&&(~Sx(o,r)||Ax(o,r));return o},Ox=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Lx=Ex,Px=Ox.concat("length","prototype");nx.f=Object.getOwnPropertyNames||function(e){return Lx(e,Px)};var Cx={};Cx.f=Object.getOwnPropertySymbols;var Rx=ib,Dx=nx,Ux=Cx,Ix=G_,jx=Rm([].concat),Mx=Rx("Reflect","ownKeys")||function(e){var t=Dx.f(Ix(e)),r=Ux.f;return r?jx(t,r(e)):t},Bx=Qb,Fx=Mx,Nx=dm,Vx=B_,zx=vm,Gx=Jm,qx=/#|\.prototype\./,Hx=function(e,t){var r=Yx[Wx(e)];return r==Kx||r!=$x&&(Gx(t)?zx(t):!!t)},Wx=Hx.normalize=function(e){return String(e).replace(qx,".").toLowerCase()},Yx=Hx.data={},$x=Hx.NATIVE="N",Kx=Hx.POLYFILL="P",Qx=Hx,Xx=pm,Jx=dm.f,Zx=nw,ek=rx,tk=Fb,rk=function(e,t,r){for(var n=Fx(t),i=Vx.f,o=Nx.f,a=0;a<n.length;a++){var s=n[a];Bx(e,s)||r&&Bx(r,s)||i(e,s,o(t,s))}},nk=Qx,ik=function(e,t){var r,n,i,o,a,s=e.target,u=e.global,c=e.stat;if(r=u?Xx:c?Xx[s]||tk(s,{}):(Xx[s]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(a=Jx(r,n))&&a.value:r[n],!nk(u?n:s+(c?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;rk(o,i)}(e.sham||i&&i.sham)&&Zx(o,"sham",!0),ek(r,n,o,e)}},ok=jm,ak=Array.isArray||function(e){return"Array"==ok(e)},sk=TypeError,uk=function(e){if(e>9007199254740991)throw sk("Maximum allowed index exceeded");return e},ck=x_,lk=B_,fk=Em,hk=function(e,t,r){var n=ck(t);n in e?lk.f(e,n,fk(0,r)):e[n]=r},pk={};pk[f_("toStringTag")]="z";var dk="[object z]"===String(pk),vk=dk,yk=Jm,gk=jm,mk=f_("toStringTag"),bk=Object,_k="Arguments"==gk(function(){return arguments}()),wk=vk?gk:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(Cre){}}(t=bk(e),mk))?r:_k?gk(t):"Object"==(n=gk(t))&&yk(t.callee)?"Arguments":n},xk=Rm,kk=vm,Sk=Jm,Tk=wk,Ak=gw,Ek=function(){},Ok=[],Lk=ib("Reflect","construct"),Pk=/^\s*(?:class|function)\b/,Ck=xk(Pk.exec),Rk=!Pk.exec(Ek),Dk=function(e){if(!Sk(e))return!1;try{return Lk(Ek,Ok,e),!0}catch(Cre){return!1}},Uk=function(e){if(!Sk(e))return!1;switch(Tk(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Rk||!!Ck(Pk,Ak(e))}catch(Cre){return!0}};Uk.sham=!0;var Ik=!Lk||kk((function(){var e;return Dk(Dk.call)||!Dk(Object)||!Dk((function(){e=!0}))||e}))?Uk:Dk,jk=ak,Mk=Ik,Bk=tb,Fk=f_("species"),Nk=Array,Vk=function(e){var t;return jk(e)&&(t=e.constructor,(Mk(t)&&(t===Nk||jk(t.prototype))||Bk(t)&&null===(t=t[Fk]))&&(t=void 0)),void 0===t?Nk:t},zk=function(e,t){return new(Vk(e))(0===t?0:t)},Gk=vm,qk=pb,Hk=f_("species"),Wk=function(e){return qk>=51||!Gk((function(){var t=[];return(t.constructor={})[Hk]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Yk=ik,$k=vm,Kk=ak,Qk=tb,Xk=Yb,Jk=yx,Zk=uk,eS=hk,tS=zk,rS=Wk,nS=pb,iS=f_("isConcatSpreadable"),oS=nS>=51||!$k((function(){var e=[];return e[iS]=!1,e.concat()[0]!==e})),aS=rS("concat"),sS=function(e){if(!Qk(e))return!1;var t=e[iS];return void 0!==t?!!t:Kk(e)};Yk({target:"Array",proto:!0,arity:1,forced:!oS||!aS},{concat:function(e){var t,r,n,i,o,a=Xk(this),s=tS(a,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(sS(o=-1===t?a:arguments[t]))for(i=Jk(o),Zk(u+i),r=0;r<i;r++,u++)r in o&&eS(s,u,o[r]);else Zk(u+1),eS(s,u++,o);return s.length=u,s}});var uS=Er,cS=ci.indexOf,lS=Kl,fS=k([].indexOf),hS=!!fS&&1/fS([1],1,-0)<0;uS({target:"Array",proto:!0,forced:hS||!lS("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return hS?fS(this,e,t)||0:cS(this,e,t)}});var pS=Hn("Array").indexOf,dS=c,vS=pS,yS=Array.prototype,gS=t((function(e){var t=e.indexOf;return e===yS||dS(yS,e)&&t===yS.indexOf?vS:t})),mS=Er,bS=aa.find,_S="find",wS=!0;_S in[]&&Array(1)[_S]((function(){wS=!1})),mS({target:"Array",proto:!0,forced:wS},{find:function(e){return bS(this,e,arguments.length>1?arguments[1]:void 0)}});var xS=Hn("Array").find,kS=c,SS=xS,TS=Array.prototype,AS=t((function(e){var t=e.find;return e===TS||kS(TS,e)&&t===TS.find?SS:t})),ES=L,OS=Lr,LS=TypeError,PS=Object.getOwnPropertyDescriptor,CS=ES&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(Cre){return Cre instanceof TypeError}}(),RS=Ae,DS=TypeError,US=function(e,t){if(!delete e[t])throw DS("Cannot delete property "+RS(t)+" of "+RS(e))},IS=Er,jS=$e,MS=ii,BS=Dr,FS=Br,NS=CS?function(e,t){if(OS(e)&&!PS(e,"length").writable)throw LS("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},VS=Nr,zS=Tn,GS=qr,qS=US,HS=Ln("splice"),WS=Math.max,YS=Math.min;IS({target:"Array",proto:!0,forced:!HS},{splice:function(e,t){var r,n,i,o,a,s,u=jS(this),c=FS(u),l=MS(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=YS(WS(BS(t),0),c-l)),VS(c+r-n),i=zS(u,n),o=0;o<n;o++)(a=l+o)in u&&GS(i,o,u[a]);if(i.length=n,r<n){for(o=l;o<c-n;o++)s=o+r,(a=o+n)in u?u[s]=u[a]:qS(u,s);for(o=c;o>c-n+r;o--)qS(u,o-1)}else if(r>n)for(o=c-n;o>l;o--)s=o+r-1,(a=o+n-1)in u?u[s]=u[a]:qS(u,s);for(o=0;o<r;o++)u[o+l]=arguments[o+2];return NS(u,c-n+r),i}});var $S=Hn("Array").splice,KS=c,QS=$S,XS=Array.prototype,JS=t((function(e){var t=e.splice;return e===XS||KS(XS,e)&&t===XS.splice?QS:t}));Er({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var ZS=t(te.Number.isNaN),eT="\t\n\v\f\r \u2028\u2029\ufeff",tT=$,rT=Zn,nT=eT,iT=u("".replace),oT=RegExp("^["+nT+"]+"),aT=RegExp("(^|[^"+nT+"])["+nT+"]+$"),sT=function(e){return function(t){var r=rT(tT(t));return 1&e&&(r=iT(r,oT,"")),2&e&&(r=iT(r,aT,"$1")),r}},uT={start:sT(1),end:sT(2),trim:sT(3)},cT=f,lT=r,fT=u,hT=Zn,pT=uT.trim,dT=eT,vT=cT.parseInt,yT=cT.Symbol,gT=yT&&yT.iterator,mT=/^[+-]?0x/i,bT=fT(mT.exec),_T=8!==vT(dT+"08")||22!==vT(dT+"0x16")||gT&&!lT((function(){vT(Object(gT))}))?function(e,t){var r=pT(hT(e));return vT(r,t>>>0||(bT(mT,r)?16:10))}:vT;Er({global:!0,forced:parseInt!=_T},{parseInt:_T});var wT=t(te.parseInt),xT=aa.map;Er({target:"Array",proto:!0,forced:!Ln("map")},{map:function(e){return xT(this,e,arguments.length>1?arguments[1]:void 0)}});var kT=Hn("Array").map,ST=c,TT=kT,AT=Array.prototype,ET=t((function(e){var t=e.map;return e===AT||ST(AT,e)&&t===AT.map?TT:t}));Er({target:"Array",stat:!0},{isArray:Lr});var OT=t(te.Array.isArray),LT=t(Al),PT=Xe,CT=R,RT=ee,DT=tr,UT=function(e){return void 0!==e&&(PT(e,"value")||PT(e,"writable"))},IT=O,jT=Cu;Er({target:"Reflect",stat:!0},{get:function e(t,r){var n,i,o=arguments.length<3?t:arguments[2];return DT(t)===o?t[r]:(n=IT.f(t,r))?UT(n)?n.value:void 0===n.get?void 0:CT(n.get,o):RT(i=jT(t))?e(i,r,o):void 0}});var MT=t(te.Reflect.get),BT=t(hh),FT=tr,NT=kh,VT=Kt,zT=R,GT=$e,qT=function(e,t,r,n){try{return n?t(FT(r)[0],r[1]):t(r)}catch(Cre){NT(e,"throw",Cre)}},HT=ah,WT=mn,YT=Br,$T=qr,KT=bh,QT=hh,XT=Array,JT=function(e){var t=GT(e),r=WT(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=VT(i,n>2?arguments[2]:void 0));var a,s,u,c,l,f,h=QT(t),p=0;if(!h||this===XT&&HT(h))for(a=YT(t),s=r?new this(a):XT(a);a>p;p++)f=o?i(t[p],p):t[p],$T(s,p,f);else for(l=(c=KT(t,h)).next,s=r?new this:[];!(u=zT(l,c)).done;p++)f=o?qT(c,i,[u.value,p],!0):u.value,$T(s,p,f);return s.length=p,s},ZT=JT;Er({target:"Array",stat:!0,forced:!Yv((function(e){Array.from(e)}))},{from:ZT});var eA=t(te.Array.from);function tA(e,t){var r=Cl(e);if(Rl){var n=Rl(e);t&&(n=Bl(n).call(n,(function(t){return Yl(e,t).enumerable}))),r.push.apply(r,n)}return r}function rA(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?af(r=tA(Object(i),!0)).call(r,(function(t){sA(e,t,i[t])})):gf?Sf(e,gf(i)):af(n=tA(Object(i))).call(n,(function(t){Cf(e,t,Yl(i,t))}))}return e}function nA(e){return(nA="function"==typeof Rf&&"symbol"==typeof LT?function(e){return typeof e}:function(e){return e&&"function"==typeof Rf&&e.constructor===Rf&&e!==Rf.prototype?"symbol":typeof e})(e)}function iA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Cf(e,lA(n.key),n)}}function aA(e,t,r){return t&&oA(e.prototype,t),r&&oA(e,r),Cf(e,"prototype",{writable:!1}),e}function sA(e,t,r){return(t=lA(t))in e?Cf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uA(e){return function(e){if(OT(e))return cA(e)}(e)||function(e){if(void 0!==Rf&&null!=BT(e)||null!=e["@@iterator"])return eA(e)}(e)||function(e,t){var r;if(!e)return;if("string"==typeof e)return cA(e,t);var n=gg(r=Object.prototype.toString.call(e)).call(r,8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return eA(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cA(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cA(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function lA(e){var t=function(e,t){if("object"!==Ol(e)||null===e)return e;var r=e[Qg];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Ol(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ol(t)?t:String(t)}var fA=L,hA=u,pA=R,dA=r,vA=_i,yA=so,gA=D,mA=$e,bA=q,_A=Object.assign,wA=Object.defineProperty,xA=hA([].concat),kA=!_A||dA((function(){if(fA&&1!==_A({b:1},_A(wA({},"a",{enumerable:!0,get:function(){wA(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=_A({},e)[r]||vA(_A({},t)).join("")!=n}))?function(e,t){for(var r=mA(e),n=arguments.length,i=1,o=yA.f,a=gA.f;n>i;)for(var s,u=bA(arguments[i++]),c=o?xA(vA(u),o(u)):vA(u),l=c.length,f=0;l>f;)s=c[f++],fA&&!pA(a,u,s)||(r[s]=u[s]);return r}:_A,SA=kA;Er({target:"Object",stat:!0,arity:2,forced:Object.assign!==SA},{assign:SA});var TA=t(te.Object.assign),AA={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new i(n,o||e,a),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Uf&&(n.prototype=Uf(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?gg(n).call(n,1):n);return Rl?Qn(i).call(i,Rl(e)):i},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,i,o,a){var s=r?r+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,i),!0;case 5:return l.fn.call(l.context,t,n,i,o),!0;case 6:return l.fn.call(l.context,t,n,i,o,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var h,p=l.length;for(c=0;c<p;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,n);break;case 4:l[c].fn.call(l[c].context,t,n,i);break;default:if(!u)for(h=1,u=new Array(f-1);h<f;h++)u[h-1]=arguments[h];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,i){var o=r?r+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||n&&s.context!==n||a(this,o);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||i&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(AA);var EA=t(AA.exports),OA=aa.some;Er({target:"Array",proto:!0,forced:!Kl("some")},{some:function(e){return OA(this,e,arguments.length>1?arguments[1]:void 0)}});var LA=Hn("Array").some,PA=c,CA=LA,RA=Array.prototype,DA=t((function(e){var t=e.some;return e===RA||PA(RA,e)&&t===RA.some?CA:t})),UA=Dr,IA=Zn,jA=$,MA=RangeError,BA=u,FA=jr,NA=Zn,VA=$,zA=BA((function(e){var t=IA(jA(this)),r="",n=UA(e);if(n<0||n==1/0)throw MA("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),GA=BA("".slice),qA=Math.ceil,HA=function(e){return function(t,r,n){var i,o,a=NA(VA(t)),s=FA(r),u=a.length,c=void 0===n?" ":NA(n);return s<=u||""==c?a:((o=zA(c,qA((i=s-u)/c.length))).length>i&&(o=GA(o,0,i)),e?a+o:o+a)}},WA={start:HA(!1),end:HA(!0)},YA=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(se),$A=WA.start;Er({target:"String",proto:!0,forced:YA},{padStart:function(e){return $A(this,e,arguments.length>1?arguments[1]:void 0)}});var KA,QA=Hn("String").padStart,XA=c,JA=QA,ZA=String.prototype,eE=t((function(e){var t=e.padStart;return"string"==typeof e||e===ZA||XA(ZA,e)&&t===ZA.padStart?JA:t})),tE="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,rE=f,nE=y,iE=E,oE=tE,aE=se,sE=Ps,uE=Tp,cE=rE.Function,lE=/MSIE .\./.test(aE)||oE&&((KA=rE.Bun.version.split(".")).length<3||0==KA[0]&&(KA[1]<3||3==KA[1]&&0==KA[2])),fE=function(e,t){var r=t?2:1;return lE?function(n,i){var o=uE(arguments.length,1)>r,a=iE(n)?n:cE(n),s=o?sE(arguments,r):[],u=o?function(){nE(a,this,s)}:a;return t?e(u,i):e(u)}:e},hE=Er,pE=f,dE=fE(pE.setInterval,!0);hE({global:!0,bind:!0,forced:pE.setInterval!==dE},{setInterval:dE});var vE=Er,yE=f,gE=fE(yE.setTimeout,!0);vE({global:!0,bind:!0,forced:yE.setTimeout!==gE},{setTimeout:gE});var mE=t(te.setInterval),bE=t(te.setTimeout),_E=aa.every;Er({target:"Array",proto:!0,forced:!Kl("every")},{every:function(e){return _E(this,e,arguments.length>1?arguments[1]:void 0)}});var wE=Hn("Array").every,xE=c,kE=wE,SE=Array.prototype,TE=t((function(e){var t=e.every;return e===SE||xE(SE,e)&&t===SE.every?kE:t})),AE=f,EE=r,OE=Zn,LE=uT.trim,PE=eT,CE=u("".charAt),RE=AE.parseFloat,DE=AE.Symbol,UE=DE&&DE.iterator,IE=1/RE(PE+"-0")!=-1/0||UE&&!EE((function(){RE(Object(UE))}))?function(e){var t=LE(OE(e)),r=RE(t);return 0===r&&"-"==CE(t,0)?-0:r}:RE;Er({global:!0,forced:parseFloat!=IE},{parseFloat:IE});var jE=t(te.parseFloat),ME=xu.PROPER,BE=r,FE=eT,NE=uT.trim;Er({target:"String",proto:!0,forced:function(e){return BE((function(){return!!FE[e]()||"
"!=="
"[e]()||ME&&FE[e].name!==e}))}("trim")},{trim:function(){return NE(this)}});var VE=Hn("String").trim,zE=c,GE=VE,qE=String.prototype,HE=t((function(e){var t=e.trim;return"string"==typeof e||e===qE||zE(qE,e)&&t===qE.trim?GE:t})),WE=to,YE=Math.floor,$E=function(e,t){var r=e.length,n=YE(r/2);return r<8?KE(e,t):QE(e,$E(WE(e,0,n),t),$E(WE(e,n),t),t)},KE=function(e,t){for(var r,n,i=e.length,o=1;o<i;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},QE=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?n(t[a],r[s])<=0?t[a++]:r[s++]:a<i?t[a++]:r[s++];return e},XE=$E,JE=se.match(/firefox\/(\d+)/i),ZE=!!JE&&+JE[1],eO=/MSIE|Trident/.test(se),tO=se.match(/AppleWebKit\/(\d+)\./),rO=!!tO&&+tO[1],nO=Er,iO=u,oO=Pe,aO=$e,sO=Br,uO=US,cO=Zn,lO=r,fO=XE,hO=Kl,pO=ZE,dO=eO,vO=de,yO=rO,gO=[],mO=iO(gO.sort),bO=iO(gO.push),_O=lO((function(){gO.sort(void 0)})),wO=lO((function(){gO.sort(null)})),xO=hO("sort"),kO=!lO((function(){if(vO)return vO<70;if(!(pO&&pO>3)){if(dO)return!0;if(yO)return yO<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)gO.push({k:t+n,v:r})}for(gO.sort((function(e,t){return t.v-e.v})),n=0;n<gO.length;n++)t=gO[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));nO({target:"Array",proto:!0,forced:_O||!wO||!xO||!kO},{sort:function(e){void 0!==e&&oO(e);var t=aO(this);if(kO)return void 0===e?mO(t):mO(t,e);var r,n,i=[],o=sO(t);for(n=0;n<o;n++)n in t&&bO(i,t[n]);for(fO(i,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:cO(t)>cO(r)?1:-1}}(e)),r=sO(i),n=0;n<r;)t[n]=i[n++];for(;n<o;)uO(t,n++);return t}});var SO=Hn("Array").sort,TO=c,AO=SO,EO=Array.prototype,OO=t((function(e){var t=e.sort;return e===EO||TO(EO,e)&&t===EO.sort?AO:t})),LO=Er,PO=Date,CO=u(PO.prototype.getTime);LO({target:"Date",stat:!0},{now:function(){return CO(new PO)}});var RO,DO=t(te.Date.now),UO="undefined"!=typeof window&&window.location&&gS(RO=window.location.href).call(RO,"xgplayerdebugger=1")>-1,IO="color: #525252; background-color: #90ee90;",jO="color: #525252; background-color: red;",MO="color: #525252; background-color: yellow; ",BO="%c[xgplayer]",FO={config:{debug:UO?3:0},logInfo:function(e){for(var t,r,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];this.config.debug>=3&&(r=console).log.apply(r,Qn(t=[BO,IO,e]).call(t,i))},logWarn:function(e){for(var t,r,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];this.config.debug>=1&&(r=console).warn.apply(r,Qn(t=[BO,MO,e]).call(t,i))},logError:function(e){var t,r;if(!(this.config.debug<1)){for(var n=this.config.debug>=2?"trace":"error",i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];(r=console)[n].apply(r,Qn(t=[BO,jO,e]).call(t,o))}}},NO=function(){function e(t){iA(this,e),this.bufferedList=t}return aA(e,[{key:"start",value:function(e){return this.bufferedList[e].start}},{key:"end",value:function(e){return this.bufferedList[e].end}},{key:"length",get:function(){return this.bufferedList.length}}]),e}(),VO={};VO.createDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=document.createElement(t);return o.className=i,o.innerHTML=r,af(e=Cl(n)).call(e,(function(e){var r=e,i=n[e];"video"===t||"audio"===t||"live-video"===t?i&&o.setAttribute(r,i):o.setAttribute(r,i)})),o},VO.createDomFromHtml=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";try{var n=document.createElement("div");n.innerHTML=e;var i=n.children;if(n=null,i.length>0){var o;if(i=i[0],r&&VO.addClass(i,r),t)af(o=Cl(t)).call(o,(function(e){i.setAttribute(e,t[e])}));return i}return null}catch(a){return FO.logError("util.createDomFromHtml",a),null}},VO.hasClass=function(e,t){if(!e||!t)return!1;try{return DA(Array.prototype).call(e.classList,(function(e){return e===t}))}catch(n){var r=e.className&&"object"===nA(e.className)?e.getAttribute("class"):e.className;return r&&!!r.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},VO.addClass=function(e,t){if(e&&t)try{var r;af(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.add(t)}))}catch(n){VO.hasClass(e,t)||(e.className&&"object"===nA(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},VO.removeClass=function(e,t){if(e&&t)try{var r;af(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.remove(t)}))}catch(i){var n;if(VO.hasClass(e,t))af(n=t.split(/\s+/g)).call(n,(function(t){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===nA(e.className)?e.setAttribute("class",e.getAttribute("class").replace(r," ")):e.className=e.className.replace(r," ")}))}},VO.toggleClass=function(e,t){var r;e&&af(r=t.split(/\s+/g)).call(r,(function(t){VO.hasClass(e,t)?VO.removeClass(e,t):VO.addClass(e,t)}))},VO.classNames=function(){for(var e=arguments,t=[],r=function(r){if("String"===VO.typeOf(e[r]))t.push(e[r]);else if("Object"===VO.typeOf(e[r])){var n;ET(n=Cl(e[r])).call(n,(function(n){e[r][n]&&t.push(n)}))}},n=0;n<arguments.length;n++)r(n);return t.join(" ")},VO.findDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,r=arguments.length>1?arguments[1]:void 0;try{e=t.querySelector(r)}catch(n){FO.logError("util.findDom",n),0===gS(r).call(r,"#")&&(e=t.getElementById(gg(r).call(r,1)))}return e},VO.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},VO.padStart=function(e,t,r){for(var n=String(r),i=t>>0,o=Math.ceil(i/n.length),a=[],s=String(e);o--;)a.push(n);return a.join("").substring(0,i-s.length)+s},VO.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=eE(VO).call(VO,Math.floor(e/3600),2,0),r=eE(VO).call(VO,Math.floor((e-3600*t)/60),2,0),n=eE(VO).call(VO,Math.floor(e-3600*t-60*r),2,0);return("00"===t?[r,n]:[t,r,n]).join(":")},VO.event=function(e){if(e.touches){var t=e.touches[0]||e.changedTouches[0];e.clientX=t.clientX||0,e.clientY=t.clientY||0,e.offsetX=t.pageX-t.target.offsetLeft,e.offsetY=t.pageY-t.target.offsetTop}e._target=e.target||e.srcElement},VO.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},VO.deepCopy=function(e,t){var r;if("Object"===VO.typeOf(t)&&"Object"===VO.typeOf(e))return af(r=Cl(t)).call(r,(function(r){if("Object"!==VO.typeOf(t[r])||t[r]instanceof Node)if("Array"===VO.typeOf(t[r])){var n;e[r]="Array"===VO.typeOf(e[r])?Qn(n=e[r]).call(n,t[r]):t[r]}else e[r]=t[r];else void 0===e[r]||void 0===e[r]?e[r]=t[r]:VO.deepCopy(e[r],t[r])})),e},VO.deepMerge=function(e,t){var r;return ET(r=Cl(t)).call(r,(function(r){var n;"Array"===VO.typeOf(t[r])&&"Array"===VO.typeOf(e[r])?"Array"===VO.typeOf(e[r])&&(n=e[r]).push.apply(n,uA(t[r])):VO.typeOf(e[r])!==VO.typeOf(t[r])||null===e[r]||"Object"!==VO.typeOf(e[r])||t[r]instanceof window.Node?null!==t[r]&&(e[r]=t[r]):VO.deepMerge(e[r],t[r])})),e},VO.getBgImage=function(e){var t=(e.currentStyle||window.getComputedStyle(e,null)).backgroundImage;if(!t||"none"===t)return"";var r=document.createElement("a");return r.href=t.replace(/url\("|"\)/g,""),r.href},VO.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return af(Array.prototype).call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},VO.setInterval=function(e,t,r,n){e._interval[t]||(e._interval[t]=mE(Ug(r).call(r,e),n))},VO.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},VO.setTimeout=function(e,t,r){e._timers||(e._timers=[]);var n=bE((function(){t(),VO.clearTimeout(e,n)}),r);return e._timers.push(n),n},VO.clearTimeout=function(e,t){var r=e._timers;if("Array"===VO.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===t){JS(r).call(r,n,1),clearTimeout(t);break}}else clearTimeout(t)},VO.clearAllTimers=function(e){var t=e._timers;"Array"===VO.typeOf(t)&&(ET(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},VO.createImgBtn=function(e,t,r,n){var i,o,a,s,u,c,l,f,h,p,d,v,y=VO.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(y.style.backgroundImage='url("'.concat(t,'")'),r&&n)&&(TE(i=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(i,(function(e){var t,i;return!(gS(r).call(r,e)>-1&&gS(n).call(n,e)>-1)||(l=jE(HE(t=gg(r).call(r,0,gS(r).call(r,e))).call(t)),f=jE(HE(i=gg(n).call(n,0,gS(n).call(n,e))).call(i)),h=e,!1)})),y.style.width=Qn(o="".concat(l)).call(o,h),y.style.height=Qn(a="".concat(f)).call(a,h),y.style.backgroundSize=Qn(s=Qn(u=Qn(c="".concat(l)).call(c,h," ")).call(u,f)).call(s,h),y.style.margin="start"===e?Qn(p=Qn(d=Qn(v="-".concat(f/2)).call(v,h," auto auto -")).call(d,l/2)).call(p,h):"auto 5px auto 5px");return y},VO.Hex2RGBA=function(e,t){var r,n=[];if(/^\#[0-9A-F]{3}$/i.test(e)){var i="#";e.replace(/[0-9A-F]/gi,(function(e){i+=e+e})),e=i}return/^#[0-9A-F]{6}$/i.test(e)?(e.replace(/[0-9A-F]{2}/gi,(function(e){n.push(wT(e,16))})),Qn(r="rgba(".concat(n.join(","),", ")).call(r,t,")")):"rgba(255, 255, 255, 0.1)"},VO.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},VO.checkIsFunction=function(e){return e&&"function"==typeof e},VO.checkIsObject=function(e){return null!==e&&"object"===nA(e)},VO.hide=function(e){e.style.display="none"},VO.show=function(e,t){e.style.display=t||"block"},VO.isUndefined=function(e){if(null==e)return!0},VO.isNotNull=function(e){return!(null==e)},VO.setStyleFromCsstext=function(e,t){if(t)if("String"===VO.typeOf(t)){var r=t.replace(/\s+/g,"").split(";");ET(r).call(r,(function(t){if(t){var r=t.split(":");r.length>1&&(e.style[r[0]]=r[1])}}))}else{var n;ET(n=Cl(t)).call(n,(function(r){e.style[r]=t[r]}))}},VO.filterStyleFromText=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],n=e.style.cssText;if(!n)return{};var i=n.replace(/\s+/g,"").split(";"),o={},a={};return ET(i).call(i,(function(e){if(e){var t=e.split(":");t.length>1&&(!function(e,t){for(var r=0,n=t.length;r<n;r++)if(gS(e).call(e,t[r])>-1)return!0;return!1}(t[0],r)?a[t[0]]=t[1]:o[t[0]]=t[1])}})),e.setAttribute("style",""),ET(t=Cl(a)).call(t,(function(t){e.style[t]=a[t]})),o},VO.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var r=t.replace(/\s+/g,"").split(";"),n={};return ET(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(n[t[0]]=t[1])}})),n},VO.preloadImg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(e){var n=new window.Image;n.onload=function(e){n=null,t&&t(e)},n.onerror=function(e){n=null,r&&r(e)},n.src=e}},VO.stopPropagation=function(e){e&&e.stopPropagation()},VO.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},VO.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},VO.checkTouchSupport=function(){return"ontouchstart"in window},VO.getBuffered2=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,r=[],n=0;n<e.length;n++)r.push({start:e.start(n)<.5?0:e.start(n),end:e.end(n)});OO(r).call(r,(function(e,t){var r=e.start-t.start;return r||t.end-e.end}));var i=[];if(t)for(var o=0;o<r.length;o++){var a=i.length;if(a){var s=i[a-1].end;r[o].start-s<t?r[o].end>s&&(i[a-1].end=r[o].end):i.push(r[o])}else i.push(r[o])}else i=r;return new NO(i)},VO.getEventPos=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.touches&&e.touches.length>0&&(e=e.touches[0]),{x:e.x/t,y:e.y/t,clientX:e.clientX/t,clientY:e.clientY/t,offsetX:e.offsetX/t,offsetY:e.offsetY/t,pageX:e.pageX/t,pageY:e.pageY/t}},VO.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},VO.getHostFromUrl=function(e){if("String"!==VO.typeOf(e))return"";var t=e.split("/"),r="";return t.length>3&&t[2]&&(r=t[2]),r},VO.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},VO.isMSE=function(e){return!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},VO.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=wT(e)}catch(r){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=wT(window.performance.now())),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var r=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?r:3&r|8).toString(16)}))},VO.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},VO.adjustTimeByDuration=function(e,t,r){return t&&e&&(e>t||r&&e<t)?t:e},VO.createPositionBar=function(e,t){var r=VO.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(r),r},VO.getTransformStyle=function(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{x:0,y:0,scale:1,rotate:0};return Qn(e=Qn(t=Qn(r="scale(".concat(n.scale||1,") translate(")).call(r,n.x||0,"%, ")).call(t,n.y||0,"%) rotate(")).call(e,n.rotate||0,"deg)")},VO.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360};var zO="3.0.7",GO={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},qO=aA((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};iA(this,e);var n=t&&t.i18n?t.i18n.ERROR_TYPES:null;if(t.media){var i,o=r.mediaError?r.mediaError:t.media.error||{},a=t.duration,s=t.currentTime,u=t.ended,c=t.src,l=t.currentSrc,f=t.media,h=f.readyState,p=f.networkState,d=r.errorCode||o.code;GO[d]&&(d=GO[d]);var v={playerVersion:zO,currentTime:s,duration:a,ended:u,readyState:h,networkState:p,src:c||l,errorType:r.errorType,errorCode:d,message:r.errorMessage||o.message,mediaError:o,originError:r.originError?r.originError.stack:"",host:VO.getHostFromUrl(c||l)};return r.ext&&ET(i=Cl(r.ext)).call(i,(function(e){v[e]=r.ext[e]})),v}if(arguments.length>1){for(var y={playerVersion:zO,domain:document.domain},g=["errorType","currentTime","duration","networkState","readyState","src","currentSrc","ended","errd","errorCode","mediaError"],m=0;m<arguments.length;m++)y[g[m]]=arguments[m];return y.ex=n?(n[arguments[0]]||{}).msg:"",y}}));function HO(e,t,r){for(var n,i=arguments.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];var s,u=t.call.apply(t,Qn(n=[e]).call(n,o));r&&"function"==typeof r&&(u&&u.then?u.then((function(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];r.call.apply(r,Qn(t=[e]).call(t,i))})):r.call.apply(r,Qn(s=[e]).call(s,o)))}function WO(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{pre:null,next:null};return this.__hooks||(this.__hooks={}),!this.__hooks[e]&&(this.__hooks[e]=null),Ug(r=function(){var r,i=arguments,o=this;if(n.pre)try{var a,s;(s=n.pre).call.apply(s,Qn(a=[this]).call(a,gg(Array.prototype).call(arguments)))}catch(g){var u,c;throw g.message=Qn(u=Qn(c="[pluginName: ".concat(this.pluginName,":")).call(c,e,":pre error] >> ")).call(u,g.message),g}if(this.__hooks&&this.__hooks[e])try{var l,f,h,p=(f=this.__hooks[e]).call.apply(f,Qn(l=[this,this]).call(l,gg(Array.prototype).call(arguments)));if(p)if(p.then)p.then((function(e){var r;!1!==e&&HO.apply(void 0,Qn(r=[o,t,n.next]).call(r,uA(i)))})).catch((function(e){throw e}));else HO.apply(void 0,Qn(h=[this,t,n.next]).call(h,gg(Array.prototype).call(arguments)));else if(void 0===p){var d;HO.apply(void 0,Qn(d=[this,t,n.next]).call(d,gg(Array.prototype).call(arguments)))}}catch(g){var v,y;throw g.message=Qn(v=Qn(y="[pluginName: ".concat(this.pluginName,":")).call(y,e,"] >> ")).call(v,g.message),g}else HO.apply(void 0,Qn(r=[this,t,n.next]).call(r,gg(Array.prototype).call(arguments)))}).call(r,this)}function YO(e,t){var r=this.__hooks;if(r)return r.hasOwnProperty(e)?(r&&(r[e]=t),!0):(console.warn("has no supported hook which name [".concat(e,"]")),!1)}function $O(e,t){var r=this.__hooks;r&&delete r[e]}function KO(e,t){var r;FO.logError(Qn(r="[".concat(e,"] event or callback cant be undefined or null when call ")).call(r,t))}var QO=function(){function e(t){iA(this,e),VO.checkIsFunction(this.beforeCreate)&&this.beforeCreate(t),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.__hooks={},t&&ET(t).call(t,(function(t){e.__hooks[t]=null})),Cf(e,"hooks",{get:function(){var t;return e.__hooks&&ET(t=Cl(e.__hooks)).call(t,(function(t){if(e.__hooks[t])return t}))}})}(this),this.__args=t,this.__events={},this.__onceEvents={},this.config=t.config||{},this.player=null,this.playerConfig={},this.pluginName="",this.__init(t)}return aA(e,[{key:"beforeCreate",value:function(e){}},{key:"afterCreate",value:function(){}},{key:"beforePlayerInit",value:function(){}},{key:"onPluginsReady",value:function(){}},{key:"afterPlayerInit",value:function(){}},{key:"destroy",value:function(){}},{key:"__init",value:function(e){this.player=e.player,this.playerConfig=e.player&&e.player.config,this.pluginName=e.pluginName?e.pluginName.toLowerCase():this.constructor.pluginName.toLowerCase(),this.logger=e.player&&e.player.logger}},{key:"updateLang",value:function(e){e||(e=this.lang)}},{key:"lang",get:function(){return this.player.lang}},{key:"i18n",get:function(){return this.player.i18n}},{key:"i18nKeys",get:function(){return this.player.i18nKeys}},{key:"domEventType",get:function(){var e=VO.checkTouchSupport()?"touch":"mouse";return!this.playerConfig||"touch"!==this.playerConfig.domEventType&&"mouse"!==this.playerConfig.domEventType||(e=this.playerConfig.domEventType),e}},{key:"on",value:function(e,t){var r=this;e&&t&&this.player?"string"==typeof e?(this.__events[e]=t,this.player.on(e,t)):OT(e)&&af(e).call(e,(function(e){r.__events[e]=t,r.player.on(e,t)})):KO(this.pluginName,"plugin.on(event, callback)")}},{key:"once",value:function(e,t){var r=this;e&&t&&this.player?"string"==typeof e?(this.__onceEvents[e]=t,this.player.once(e,t)):OT(e)&&af(e).call(e,(function(n){r.__onceEvents[n]=t,r.player.once(e,t)})):KO(this.pluginName,"plugin.once(event, callback)")}},{key:"off",value:function(e,t){var r=this;e&&t&&this.player?"string"==typeof e?(delete this.__events[e],this.player.off(e,t)):OT(e)&&af(e).call(e,(function(n){delete r.__events[e],r.player.off(n,t)})):KO(this.pluginName,"plugin.off(event, callback)")}},{key:"offAll",value:function(){var e,t=this;af(e=["__events","__onceEvents"]).call(e,(function(e){var r;af(r=Cl(t[e])).call(r,(function(r){t[e][r]&&t.off(r,t[e][r]),r&&delete t[e][r]}))})),this.__events={},this.__onceEvents={}}},{key:"emit",value:function(e){var t,r;if(this.player){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];(r=this.player).emit.apply(r,Qn(t=[e]).call(t,i))}}},{key:"emitUserAction",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.player){var n=rA(rA({},r),{},{pluginName:this.pluginName});this.player.emitUserAction(e,t,n)}}},{key:"hook",value:function(e,t){var r;return WO.call.apply(WO,Qn(r=[this]).call(r,gg(Array.prototype).call(arguments)))}},{key:"useHooks",value:function(e,t){for(var r,n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return YO.call.apply(YO,Qn(r=[this]).call(r,gg(Array.prototype).call(arguments)))}},{key:"removeHooks",value:function(e,t){for(var r,n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return $O.call.apply($O,Qn(r=[this]).call(r,gg(Array.prototype).call(arguments)))}},{key:"registerPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(this.player)return r&&(t.pluginName=r),this.player.registerPlugin({plugin:e,options:t})}},{key:"getPlugin",value:function(e){return this.player?this.player.getPlugin(e):null}},{key:"__destroy",value:function(){var e,t=this,r=this.player,n=this.pluginName;this.offAll(),VO.clearAllTimers(this),VO.checkIsFunction(this.destroy)&&this.destroy(),ET(e=["player","playerConfig","pluginName","logger","__args","__hooks"]).call(e,(function(e){t[e]=null})),r.unRegisterPlugin(n),this.__hooks=null}}],[{key:"defineGetterOrSetter",value:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&Cf(e,r,t[r])}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),e}(),XO=r,JO=ft("iterator"),ZO=!XO((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!e.toJSON||!t.size&&true||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[JO]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),eL=u,tL=2147483647,rL=/[^\0-\u007E]/,nL=/[.\u3002\uFF0E\uFF61]/g,iL="Overflow: input needs wider integers to process",oL=RangeError,aL=eL(nL.exec),sL=Math.floor,uL=String.fromCharCode,cL=eL("".charCodeAt),lL=eL([].join),fL=eL([].push),hL=eL("".replace),pL=eL("".split),dL=eL("".toLowerCase),vL=function(e){return e+22+75*(e<26)},yL=function(e,t,r){var n=0;for(e=r?sL(e/700):e>>1,e+=sL(e/t);e>455;)e=sL(e/35),n+=36;return sL(n+36*e/(e+38))},gL=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=cL(e,r++);if(i>=55296&&i<=56319&&r<n){var o=cL(e,r++);56320==(64512&o)?fL(t,((1023&i)<<10)+(1023&o)+65536):(fL(t,i),r--)}else fL(t,i)}return t}(e);var r,n,i=e.length,o=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&fL(t,uL(n));var u=t.length,c=u;for(u&&fL(t,"-");c<i;){var l=tL;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<l&&(l=n);var f=c+1;if(l-o>sL((tL-a)/f))throw oL(iL);for(a+=(l-o)*f,o=l,r=0;r<e.length;r++){if((n=e[r])<o&&++a>tL)throw oL(iL);if(n==o){for(var h=a,p=36;;){var d=p<=s?1:p>=s+26?26:p-s;if(h<d)break;var v=h-d,y=36-d;fL(t,uL(vL(d+v%y))),h=sL(v/y),p+=36}fL(t,uL(vL(h))),s=yL(a,f,c==u),a=0,c++}}a++,o++}return lL(t,"")},mL=co,bL=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:mL(e,n,t[n],r);return e},_L=Er,wL=f,xL=R,kL=u,SL=L,TL=ZO,AL=co,EL=fo,OL=bL,LL=jo,PL=$u,CL=Jo,RL=dp,DL=E,UL=Xe,IL=Kt,jL=Zr,ML=tr,BL=ee,FL=Zn,NL=Hi,VL=F,zL=bh,GL=hh,qL=Tp,HL=XE,WL=ft("iterator"),YL="URLSearchParams",$L=YL+"Iterator",KL=CL.set,QL=CL.getterFor(YL),XL=CL.getterFor($L),JL=Object.getOwnPropertyDescriptor,ZL=function(e){if(!SL)return wL[e];var t=JL(wL,e);return t&&t.value},eP=ZL("fetch"),tP=ZL("Request"),rP=ZL("Headers"),nP=tP&&tP.prototype,iP=rP&&rP.prototype,oP=wL.RegExp,aP=wL.TypeError,sP=wL.decodeURIComponent,uP=wL.encodeURIComponent,cP=kL("".charAt),lP=kL([].join),fP=kL([].push),hP=kL("".replace),pP=kL([].shift),dP=kL([].splice),vP=kL("".split),yP=kL("".slice),gP=/\+/g,mP=Array(4),bP=function(e){return mP[e-1]||(mP[e-1]=oP("((?:%[\\da-f]{2}){"+e+"})","gi"))},_P=function(e){try{return sP(e)}catch(Cre){return e}},wP=function(e){var t=hP(e,gP," "),r=4;try{return sP(t)}catch(Cre){for(;r;)t=hP(t,bP(r--),_P);return t}},xP=/[!'()~]|%20/g,kP={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},SP=function(e){return kP[e]},TP=function(e){return hP(uP(e),xP,SP)},AP=PL((function(e,t){KL(this,{type:$L,iterator:zL(QL(e).entries),kind:t})}),"Iterator",(function(){var e=XL(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),EP=function(e){this.entries=[],this.url=null,void 0!==e&&(BL(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===cP(e,0)?yP(e,1):e:FL(e)))};EP.prototype={type:YL,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,u=GL(e);if(u)for(r=(t=zL(e,u)).next;!(n=xL(r,t)).done;){if(o=(i=zL(ML(n.value))).next,(a=xL(o,i)).done||(s=xL(o,i)).done||!xL(o,i).done)throw aP("Expected sequence with length 2");fP(this.entries,{key:FL(a.value),value:FL(s.value)})}else for(var c in e)UL(e,c)&&fP(this.entries,{key:c,value:FL(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=vP(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=vP(t,"="),fP(this.entries,{key:wP(pP(r)),value:wP(lP(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],fP(r,TP(e.key)+"="+TP(e.value));return lP(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var OP=function(){RL(this,LP);var e=KL(this,new EP(arguments.length>0?arguments[0]:void 0));SL||(this.length=e.entries.length)},LP=OP.prototype;if(OL(LP,{append:function(e,t){qL(arguments.length,2);var r=QL(this);fP(r.entries,{key:FL(e),value:FL(t)}),SL||this.length++,r.updateURL()},delete:function(e){qL(arguments.length,1);for(var t=QL(this),r=t.entries,n=FL(e),i=0;i<r.length;)r[i].key===n?dP(r,i,1):i++;SL||(this.length=r.length),t.updateURL()},get:function(e){qL(arguments.length,1);for(var t=QL(this).entries,r=FL(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){qL(arguments.length,1);for(var t=QL(this).entries,r=FL(e),n=[],i=0;i<t.length;i++)t[i].key===r&&fP(n,t[i].value);return n},has:function(e){qL(arguments.length,1);for(var t=QL(this).entries,r=FL(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){qL(arguments.length,1);for(var r,n=QL(this),i=n.entries,o=!1,a=FL(e),s=FL(t),u=0;u<i.length;u++)(r=i[u]).key===a&&(o?dP(i,u--,1):(o=!0,r.value=s));o||fP(i,{key:a,value:s}),SL||(this.length=i.length),n.updateURL()},sort:function(){var e=QL(this);HL(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=QL(this).entries,n=IL(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new AP(this,"keys")},values:function(){return new AP(this,"values")},entries:function(){return new AP(this,"entries")}},{enumerable:!0}),AL(LP,WL,LP.entries,{name:"entries"}),AL(LP,"toString",(function(){return QL(this).serialize()}),{enumerable:!0}),SL&&EL(LP,"size",{get:function(){return QL(this).entries.length},configurable:!0,enumerable:!0}),LL(OP,YL),_L({global:!0,constructor:!0,forced:!TL},{URLSearchParams:OP}),!TL&&DL(rP)){var PP=kL(iP.has),CP=kL(iP.set),RP=function(e){if(BL(e)){var t,r=e.body;if(jL(r)===YL)return t=e.headers?new rP(e.headers):new rP,PP(t,"content-type")||CP(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),NL(e,{body:VL(0,FL(r)),headers:VL(0,t)})}return e};if(DL(eP)&&_L({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return eP(e,arguments.length>1?RP(arguments[1]):{})}}),DL(tP)){var DP=function(e){return RL(this,nP),new tP(e,arguments.length>1?RP(arguments[1]):{})};nP.constructor=DP,DP.prototype=nP,_L({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:DP})}}var UP,IP=Er,jP=L,MP=ZO,BP=f,FP=Kt,NP=u,VP=co,zP=fo,GP=dp,qP=Xe,HP=kA,WP=JT,YP=to,$P=gl.codeAt,KP=function(e){var t,r,n=[],i=pL(hL(dL(e),nL,"."),".");for(t=0;t<i.length;t++)r=i[t],fL(n,aL(rL,r)?"xn--"+gL(r):r);return lL(n,".")},QP=Zn,XP=jo,JP=Tp,ZP={URLSearchParams:OP,getState:QL},eC=Jo,tC=eC.set,rC=eC.getterFor("URL"),nC=ZP.URLSearchParams,iC=ZP.getState,oC=BP.URL,aC=BP.TypeError,sC=BP.parseInt,uC=Math.floor,cC=Math.pow,lC=NP("".charAt),fC=NP(/./.exec),hC=NP([].join),pC=NP(1..toString),dC=NP([].pop),vC=NP([].push),yC=NP("".replace),gC=NP([].shift),mC=NP("".split),bC=NP("".slice),_C=NP("".toLowerCase),wC=NP([].unshift),xC="Invalid scheme",kC="Invalid host",SC="Invalid port",TC=/[a-z]/i,AC=/[\d+-.a-z]/i,EC=/\d/,OC=/^0x/i,LC=/^[0-7]+$/,PC=/^\d+$/,CC=/^[\da-f]+$/i,RC=/[\0\t\n\r #%/:<>?@[\\\]^|]/,DC=/[\0\t\n\r #/:<>?@[\\\]^|]/,UC=/^[\u0000-\u0020]+/,IC=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,jC=/[\t\n\r]/g,MC=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)wC(t,e%256),e=uC(e/256);return hC(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=pC(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},BC={},FC=HP({},BC,{" ":1,'"':1,"<":1,">":1,"`":1}),NC=HP({},FC,{"#":1,"?":1,"{":1,"}":1}),VC=HP({},NC,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),zC=function(e,t){var r=$P(e,0);return r>32&&r<127&&!qP(t,e)?e:encodeURIComponent(e)},GC={ftp:21,file:null,http:80,https:443,ws:80,wss:443},qC=function(e,t){var r;return 2==e.length&&fC(TC,lC(e,0))&&(":"==(r=lC(e,1))||!t&&"|"==r)},HC=function(e){var t;return e.length>1&&qC(bC(e,0,2))&&(2==e.length||"/"===(t=lC(e,2))||"\\"===t||"?"===t||"#"===t)},WC=function(e){return"."===e||"%2e"===_C(e)},YC={},$C={},KC={},QC={},XC={},JC={},ZC={},eR={},tR={},rR={},nR={},iR={},oR={},aR={},sR={},uR={},cR={},lR={},fR={},hR={},pR={},dR=function(e,t,r){var n,i,o,a=QP(e);if(t){if(i=this.parse(a))throw aC(i);this.searchParams=null}else{if(void 0!==r&&(n=new dR(r,!0)),i=this.parse(a,null,n))throw aC(i);(o=iC(new nC)).bindURL(this),this.searchParams=o}};dR.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,s,u=this,c=t||YC,l=0,f="",h=!1,p=!1,d=!1;for(e=QP(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=yC(e,UC,""),e=yC(e,IC,"$1")),e=yC(e,jC,""),n=WP(e);l<=n.length;){switch(i=n[l],c){case YC:if(!i||!fC(TC,i)){if(t)return xC;c=KC;continue}f+=_C(i),c=$C;break;case $C:if(i&&(fC(AC,i)||"+"==i||"-"==i||"."==i))f+=_C(i);else{if(":"!=i){if(t)return xC;f="",c=KC,l=0;continue}if(t&&(u.isSpecial()!=qP(GC,f)||"file"==f&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=f,t)return void(u.isSpecial()&&GC[u.scheme]==u.port&&(u.port=null));f="","file"==u.scheme?c=aR:u.isSpecial()&&r&&r.scheme==u.scheme?c=QC:u.isSpecial()?c=eR:"/"==n[l+1]?(c=XC,l++):(u.cannotBeABaseURL=!0,vC(u.path,""),c=fR)}break;case KC:if(!r||r.cannotBeABaseURL&&"#"!=i)return xC;if(r.cannotBeABaseURL&&"#"==i){u.scheme=r.scheme,u.path=YP(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=pR;break}c="file"==r.scheme?aR:JC;continue;case QC:if("/"!=i||"/"!=n[l+1]){c=JC;continue}c=tR,l++;break;case XC:if("/"==i){c=rR;break}c=lR;continue;case JC:if(u.scheme=r.scheme,i==UP)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=YP(r.path),u.query=r.query;else if("/"==i||"\\"==i&&u.isSpecial())c=ZC;else if("?"==i)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=YP(r.path),u.query="",c=hR;else{if("#"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=YP(r.path),u.path.length--,c=lR;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=YP(r.path),u.query=r.query,u.fragment="",c=pR}break;case ZC:if(!u.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=lR;continue}c=rR}else c=tR;break;case eR:if(c=tR,"/"!=i||"/"!=lC(f,l+1))continue;l++;break;case tR:if("/"!=i&&"\\"!=i){c=rR;continue}break;case rR:if("@"==i){h&&(f="%40"+f),h=!0,o=WP(f);for(var v=0;v<o.length;v++){var y=o[v];if(":"!=y||d){var g=zC(y,VC);d?u.password+=g:u.username+=g}else d=!0}f=""}else if(i==UP||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(h&&""==f)return"Invalid authority";l-=WP(f).length+1,f="",c=nR}else f+=i;break;case nR:case iR:if(t&&"file"==u.scheme){c=uR;continue}if(":"!=i||p){if(i==UP||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(u.isSpecial()&&""==f)return kC;if(t&&""==f&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(f))return a;if(f="",c=cR,t)return;continue}"["==i?p=!0:"]"==i&&(p=!1),f+=i}else{if(""==f)return kC;if(a=u.parseHost(f))return a;if(f="",c=oR,t==iR)return}break;case oR:if(!fC(EC,i)){if(i==UP||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()||t){if(""!=f){var m=sC(f,10);if(m>65535)return SC;u.port=u.isSpecial()&&m===GC[u.scheme]?null:m,f=""}if(t)return;c=cR;continue}return SC}f+=i;break;case aR:if(u.scheme="file","/"==i||"\\"==i)c=sR;else{if(!r||"file"!=r.scheme){c=lR;continue}if(i==UP)u.host=r.host,u.path=YP(r.path),u.query=r.query;else if("?"==i)u.host=r.host,u.path=YP(r.path),u.query="",c=hR;else{if("#"!=i){HC(hC(YP(n,l),""))||(u.host=r.host,u.path=YP(r.path),u.shortenPath()),c=lR;continue}u.host=r.host,u.path=YP(r.path),u.query=r.query,u.fragment="",c=pR}}break;case sR:if("/"==i||"\\"==i){c=uR;break}r&&"file"==r.scheme&&!HC(hC(YP(n,l),""))&&(qC(r.path[0],!0)?vC(u.path,r.path[0]):u.host=r.host),c=lR;continue;case uR:if(i==UP||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&qC(f))c=lR;else if(""==f){if(u.host="",t)return;c=cR}else{if(a=u.parseHost(f))return a;if("localhost"==u.host&&(u.host=""),t)return;f="",c=cR}continue}f+=i;break;case cR:if(u.isSpecial()){if(c=lR,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=UP&&(c=lR,"/"!=i))continue}else u.fragment="",c=pR;else u.query="",c=hR;break;case lR:if(i==UP||"/"==i||"\\"==i&&u.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(s=_C(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"==i||"\\"==i&&u.isSpecial()||vC(u.path,"")):WC(f)?"/"==i||"\\"==i&&u.isSpecial()||vC(u.path,""):("file"==u.scheme&&!u.path.length&&qC(f)&&(u.host&&(u.host=""),f=lC(f,0)+":"),vC(u.path,f)),f="","file"==u.scheme&&(i==UP||"?"==i||"#"==i))for(;u.path.length>1&&""===u.path[0];)gC(u.path);"?"==i?(u.query="",c=hR):"#"==i&&(u.fragment="",c=pR)}else f+=zC(i,NC);break;case fR:"?"==i?(u.query="",c=hR):"#"==i?(u.fragment="",c=pR):i!=UP&&(u.path[0]+=zC(i,BC));break;case hR:t||"#"!=i?i!=UP&&("'"==i&&u.isSpecial()?u.query+="%27":u.query+="#"==i?"%23":zC(i,BC)):(u.fragment="",c=pR);break;case pR:i!=UP&&(u.fragment+=zC(i,FC))}l++}},parseHost:function(e){var t,r,n;if("["==lC(e,0)){if("]"!=lC(e,e.length-1))return kC;if(t=function(e){var t,r,n,i,o,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,h=function(){return lC(e,f)};if(":"==h()){if(":"!=lC(e,1))return;f+=2,l=++c}for(;h();){if(8==c)return;if(":"!=h()){for(t=r=0;r<4&&fC(CC,h());)t=16*t+sC(h(),16),f++,r++;if("."==h()){if(0==r)return;if(f-=r,c>6)return;for(n=0;h();){if(i=null,n>0){if(!("."==h()&&n<4))return;f++}if(!fC(EC,h()))return;for(;fC(EC,h());){if(o=sC(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}u[c]=256*u[c]+i,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;u[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!=c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!=c)return;return u}(bC(e,1,-1)),!t)return kC;this.host=t}else if(this.isSpecial()){if(e=KP(e),fC(RC,e))return kC;if(t=function(e){var t,r,n,i,o,a,s,u=mC(e,".");if(u.length&&""==u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=u[n]))return e;if(o=10,i.length>1&&"0"==lC(i,0)&&(o=fC(OC,i)?16:8,i=bC(i,8==o?1:2)),""===i)a=0;else{if(!fC(10==o?PC:8==o?LC:CC,i))return e;a=sC(i,o)}vC(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=cC(256,5-t))return null}else if(a>255)return null;for(s=dC(r),n=0;n<r.length;n++)s+=r[n]*cC(256,3-n);return s}(e),null===t)return kC;this.host=t}else{if(fC(DC,e))return kC;for(t="",r=WP(e),n=0;n<r.length;n++)t+=zC(r[n],BC);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return qP(GC,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&qC(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,s=e.query,u=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=MC(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+hC(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw aC(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new vR(e.path[0]).origin}catch(Cre){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+MC(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(QP(e)+":",YC)},getUsername:function(){return this.username},setUsername:function(e){var t=WP(QP(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=zC(t[r],VC)}},getPassword:function(){return this.password},setPassword:function(e){var t=WP(QP(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=zC(t[r],VC)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?MC(e):MC(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,nR)},getHostname:function(){var e=this.host;return null===e?"":MC(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,iR)},getPort:function(){var e=this.port;return null===e?"":QP(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=QP(e))?this.port=null:this.parse(e,oR))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+hC(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,cR))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=QP(e))?this.query=null:("?"==lC(e,0)&&(e=bC(e,1)),this.query="",this.parse(e,hR)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=QP(e))?("#"==lC(e,0)&&(e=bC(e,1)),this.fragment="",this.parse(e,pR)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var vR=function(e){var t=GP(this,yR),r=JP(arguments.length,1)>1?arguments[1]:void 0,n=tC(t,new dR(e,!1,r));jP||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},yR=vR.prototype,gR=function(e,t){return{get:function(){return rC(this)[e]()},set:t&&function(e){return rC(this)[t](e)},configurable:!0,enumerable:!0}};if(jP&&(zP(yR,"href",gR("serialize","setHref")),zP(yR,"origin",gR("getOrigin")),zP(yR,"protocol",gR("getProtocol","setProtocol")),zP(yR,"username",gR("getUsername","setUsername")),zP(yR,"password",gR("getPassword","setPassword")),zP(yR,"host",gR("getHost","setHost")),zP(yR,"hostname",gR("getHostname","setHostname")),zP(yR,"port",gR("getPort","setPort")),zP(yR,"pathname",gR("getPathname","setPathname")),zP(yR,"search",gR("getSearch","setSearch")),zP(yR,"searchParams",gR("getSearchParams")),zP(yR,"hash",gR("getHash","setHash"))),VP(yR,"toJSON",(function(){return rC(this).serialize()}),{enumerable:!0}),VP(yR,"toString",(function(){return rC(this).serialize()}),{enumerable:!0}),oC){var mR=oC.createObjectURL,bR=oC.revokeObjectURL;mR&&VP(vR,"createObjectURL",FP(mR,oC)),bR&&VP(vR,"revokeObjectURL",FP(bR,oC))}XP(vR,"URL"),IP({global:!0,constructor:!0,forced:!MP,sham:!jP},{URL:vR});var _R=Er,wR=r,xR=Tp,kR=Zn,SR=ZO,TR=ae("URL");_R({target:"URL",stat:!0,forced:!(SR&&wR((function(){TR.canParse()})))},{canParse:function(e){var t=xR(arguments.length,1),r=kR(e),n=t<2||void 0===arguments[1]?void 0:kR(arguments[1]);try{return!!new TR(r,n)}catch(Cre){return!1}}});var AR=t(te.URL),ER=te,OR=y;ER.JSON||(ER.JSON={stringify:JSON.stringify});var LR=function(e,t,r){return OR(ER.JSON.stringify,null,arguments)},PR=t(LR),CR=ee,RR=_,DR=ft("match"),UR=function(e){var t;return CR(e)&&(void 0!==(t=e[DR])?!!t:"RegExp"==RR(e))},IR=TypeError,jR=ft("match"),MR=ci.includes;Er({target:"Array",proto:!0,forced:r((function(){return!Array(1).includes()}))},{includes:function(e){return MR(this,e,arguments.length>1?arguments[1]:void 0)}});var BR=Hn("Array").includes,FR=Er,NR=function(e){if(UR(e))throw IR("The method doesn't accept regular expressions");return e},VR=$,zR=Zn,GR=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[jR]=!1,"/./"[e](t)}catch(n){}}return!1},qR=u("".indexOf);FR({target:"String",proto:!0,forced:!GR("includes")},{includes:function(e){return!!~qR(zR(VR(this)),zR(NR(e)),arguments.length>1?arguments[1]:void 0)}});var HR=Hn("String").includes,WR=c,YR=BR,$R=HR,KR=Array.prototype,QR=String.prototype,XR=t((function(e){var t=e.includes;return e===KR||WR(KR,e)&&t===KR.includes?YR:"string"==typeof e||e===QR||WR(QR,e)&&t===QR.includes?$R:t})),JR={exports:{}},ZR=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),eD=r,tD=ee,rD=_,nD=ZR,iD=Object.isExtensible,oD=eD((function(){iD(1)}))||nD?function(e){return!!tD(e)&&((!nD||"ArrayBuffer"!=rD(e))&&(!iD||iD(e)))}:iD,aD=!r((function(){return Object.isExtensible(Object.preventExtensions({}))})),sD=Er,uD=u,cD=li,lD=ee,fD=Xe,hD=Qt.f,pD=Wi,dD=Ki,vD=oD,yD=aD,gD=!1,mD=rt("meta"),bD=0,_D=function(e){hD(e,mD,{value:{objectID:"O"+bD++,weakData:{}}})},wD=JR.exports={enable:function(){wD.enable=function(){},gD=!0;var e=pD.f,t=uD([].splice),r={};r[mD]=1,e(r).length&&(pD.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===mD){t(n,i,1);break}return n},sD({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:dD.f}))},fastKey:function(e,t){if(!lD(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!fD(e,mD)){if(!vD(e))return"F";if(!t)return"E";_D(e)}return e[mD].objectID},getWeakData:function(e,t){if(!fD(e,mD)){if(!vD(e))return!0;if(!t)return!1;_D(e)}return e[mD].weakData},onFreeze:function(e){return yD&&gD&&vD(e)&&!fD(e,mD)&&_D(e),e}};cD[mD]=!0;var xD=JR.exports,kD=Er,SD=f,TD=xD,AD=r,ED=vr,OD=Mh,LD=dp,PD=E,CD=ee,RD=jo,DD=Qt.f,UD=aa.forEach,ID=L,jD=Jo.set,MD=Jo.getterFor,BD=function(e,t,r){var n,i=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=i?"set":"add",s=SD[e],u=s&&s.prototype,c={};if(ID&&PD(s)&&(o||u.forEach&&!AD((function(){(new s).entries().next()})))){var l=(n=t((function(t,r){jD(LD(t,l),{type:e,collection:new s}),null!=r&&OD(r,t[a],{that:t,AS_ENTRIES:i})}))).prototype,f=MD(e);UD(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in u)||o&&"clear"==e||ED(l,e,(function(r,n){var i=f(this).collection;if(!t&&o&&!CD(r))return"get"==e&&void 0;var a=i[e](0===r?0:r,n);return t?this:a}))})),o||DD(l,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(t,e,i,a),TD.enable();return RD(n,e,!1,!0),c[e]=n,kD({global:!0,forced:!0},c),o||r.setStrong(n,e,i),n},FD=Hi,ND=fo,VD=bL,zD=Kt,GD=dp,qD=H,HD=Mh,WD=_c,YD=wc,$D=fp,KD=L,QD=xD.fastKey,XD=Jo.set,JD=Jo.getterFor,ZD={getConstructor:function(e,t,r,n){var i=e((function(e,i){GD(e,o),XD(e,{type:t,index:FD(null),first:void 0,last:void 0,size:0}),KD||(e.size=0),qD(i)||HD(i,e[n],{that:e,AS_ENTRIES:r})})),o=i.prototype,a=JD(t),s=function(e,t,r){var n,i,o=a(e),s=u(e,t);return s?s.value=r:(o.last=s={index:i=QD(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=s),n&&(n.next=s),KD?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},u=function(e,t){var r,n=a(e),i=QD(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return VD(o,{clear:function(){for(var e=a(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,KD?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=u(t,e);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),KD?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=zD(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!u(this,e)}}),VD(o,r?{get:function(e){var t=u(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),KD&&ND(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=JD(t),o=JD(n);WD(e,t,(function(e,t){XD(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?YD("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,YD(void 0,!0))}),r?"entries":"values",!r,!0),$D(t)}};BD("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),ZD);var eU=te.Map,tU=Kt,rU=R,nU=Pe,iU=mp,oU=H,aU=Mh,sU=[].push,uU=function(e){var t,r,n,i,o=arguments.length,a=o>1?arguments[1]:void 0;return iU(this),(t=void 0!==a)&&nU(a),oU(e)?new this:(r=[],t?(n=0,i=tU(a,o>2?arguments[2]:void 0),aU(e,(function(e){rU(sU,r,i(e,n++))}))):aU(e,sU,{that:r}),new this(r))};Er({target:"Map",stat:!0,forced:!0},{from:uU});var cU=Ps,lU=function(){return new this(cU(arguments))};Er({target:"Map",stat:!0,forced:!0},{of:lU});var fU=Ae,hU=function(e){if("object"==typeof e&&"size"in e&&"has"in e&&"get"in e&&"set"in e&&"delete"in e&&"entries"in e)return e;throw TypeError(fU(e)+" is not a map")},pU=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},dU=pU,vU=ae("Map"),yU={Map:vU,set:dU("set",2),get:dU("get",1),has:dU("has",1),remove:dU("delete",1),proto:vU.prototype},gU=hU,mU=yU.remove;Er({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=gU(this),r=!0,n=0,i=arguments.length;n<i;n++)e=mU(t,arguments[n]),r=r&&e;return!!r}});var bU=hU,_U=yU.get,wU=yU.has,xU=yU.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,i=bU(this);return wU(i,e)?(r=_U(i,e),"update"in t&&(r=t.update(r,e,i),xU(i,e,r)),r):(n=t.insert(e,i),xU(i,e,n),n)}});var kU=R,SU=function(e,t,r){for(var n,i,o=r||e.next;!(n=kU(o,e)).done;)if(void 0!==(i=t(n.value)))return i},TU=SU,AU=function(e,t,r){return r?TU(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},EU=Kt,OU=hU,LU=AU;Er({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=OU(this),r=EU(e,arguments.length>1?arguments[1]:void 0);return!1!==LU(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var PU=Kt,CU=hU,RU=AU,DU=yU.Map,UU=yU.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=CU(this),r=PU(e,arguments.length>1?arguments[1]:void 0),n=new DU;return RU(t,(function(e,i){r(e,i,t)&&UU(n,i,e)})),n}});var IU=Kt,jU=hU,MU=AU;Er({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=jU(this),r=IU(e,arguments.length>1?arguments[1]:void 0),n=MU(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}});var BU=Kt,FU=hU,NU=AU;Er({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=FU(this),r=BU(e,arguments.length>1?arguments[1]:void 0),n=NU(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var VU=Er,zU=R,GU=E,qU=Pe,HU=Mh,WU=yU.Map,YU=u([].push);VU({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new(GU(this)?this:WU);qU(t);var n=qU(r.has),i=qU(r.get),o=qU(r.set);return HU(e,(function(e){var a=t(e);zU(n,r,a)?YU(zU(i,r,a),e):zU(o,r,a,[e])})),r}});var $U=function(e,t){return e===t||e!=e&&t!=t},KU=hU,QU=AU;Er({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===QU(KU(this),(function(t){if($U(t,e))return!0}),!0)}});var XU=R,JU=Mh,ZU=E,eI=Pe,tI=yU.Map;Er({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(ZU(this)?this:tI);eI(t);var n=eI(r.set);return JU(e,(function(e){XU(n,r,t(e),e)})),r}});var rI=hU,nI=AU;Er({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=nI(rI(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var iI=Kt,oI=hU,aI=AU,sI=yU.Map,uI=yU.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=oI(this),r=iI(e,arguments.length>1?arguments[1]:void 0),n=new sI;return aI(t,(function(e,i){uI(n,r(e,i,t),e)})),n}});var cI=Kt,lI=hU,fI=AU,hI=yU.Map,pI=yU.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=lI(this),r=cI(e,arguments.length>1?arguments[1]:void 0),n=new hI;return fI(t,(function(e,i){pI(n,i,r(e,i,t))})),n}});var dI=hU,vI=Mh,yI=yU.set;Er({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=dI(this),r=arguments.length,n=0;n<r;)vI(arguments[n++],(function(e,r){yI(t,e,r)}),{AS_ENTRIES:!0});return t}});var gI=Pe,mI=hU,bI=AU,_I=TypeError;Er({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=mI(this),r=arguments.length<2,n=r?void 0:arguments[1];if(gI(e),bI(t,(function(i,o){r?(r=!1,n=i):n=e(n,i,o,t)})),r)throw _I("Reduce of empty map with no initial value");return n}});var wI=Kt,xI=hU,kI=AU;Er({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=xI(this),r=wI(e,arguments.length>1?arguments[1]:void 0);return!0===kI(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var SI=Pe,TI=hU,AI=TypeError,EI=yU.get,OI=yU.has,LI=yU.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=TI(this),n=arguments.length;SI(t);var i=OI(r,e);if(!i&&n<3)throw AI("Updating absent value");var o=i?EI(r,e):SI(n>2?arguments[2]:void 0)(e,r);return LI(r,e,t(o,e,r)),r}});var PI=R,CI=Pe,RI=E,DI=tr,UI=TypeError,II=function(e,t){var r,n=DI(this),i=CI(n.get),o=CI(n.has),a=CI(n.set),s=arguments.length>2?arguments[2]:void 0;if(!RI(t)&&!RI(s))throw UI("At least one callback required");return PI(o,n,e)?(r=PI(i,n,e),RI(t)&&(r=t(r),PI(a,n,e,r))):RI(s)&&(r=s(),PI(a,n,e,r)),r};Er({target:"Map",proto:!0,real:!0,forced:!0},{upsert:II}),Er({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:II});var jI=t(eU);function MI(e,t){var r=Cl(e);if(Rl){var n=Rl(e);t&&(n=Bl(n).call(n,(function(t){return Yl(e,t).enumerable}))),r.push.apply(r,n)}return r}function BI(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?af(r=MI(Object(i),!0)).call(r,(function(t){WI(e,t,i[t])})):gf?Sf(e,gf(i)):af(n=MI(Object(i))).call(n,(function(t){Cf(e,t,Yl(i,t))}))}return e}function FI(){FI=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Cf||function(e,t,r){e[t]=r.value},i="function"==typeof Rf?Rf:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,r){return Cf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(E){u=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var o=t&&t.prototype instanceof h?t:h,a=Uf(o.prototype),s=new S(i||[]);return n(a,"_invoke",{value:_(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(E){return{type:"throw",arg:E}}}e.wrap=c;var f={};function h(){}function p(){}function d(){}var v={};u(v,o,(function(){return this}));var y=Bf&&Bf(Bf(T([])));y&&y!==t&&r.call(y,o)&&(v=y);var g=d.prototype=h.prototype=Uf(v);function m(e){var t;af(t=["next","throw","return"]).call(t,(function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function i(n,o,a,s){var u=l(e[n],e,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Ol(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,s)}),(function(e){i("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,s)}))}s(u.arg)}var o;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return o=o?o.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],af(e).call(e,x,this),this.reset(!0)}function T(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:A}}function A(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=u(d,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Ff?Ff(e,d):(e.__proto__=d,u(e,s,"GeneratorFunction")),e.prototype=Uf(g),e},e.awrap=function(e){return{__await:e}},m(b.prototype),u(b.prototype,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Gy);var a=new b(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(g),u(g,s,"Generator"),u(g,o,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return Jy(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,S.prototype={constructor:S,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,af(t=this.tryEntries).call(t,k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+gg(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;k(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function NI(e){return(NI="function"==typeof Rf&&"symbol"==typeof LT?function(e){return typeof e}:function(e){return e&&"function"==typeof Rf&&e.constructor===Rf&&e!==Rf.prototype?"symbol":typeof e})(e)}function VI(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(Cre){return void r(Cre)}s.done?t(u):Gy.resolve(u).then(n,i)}function zI(e){return function(){var t=this,r=arguments;return new Gy((function(n,i){var o=e.apply(t,r);function a(e){VI(o,n,i,a,s,"next",e)}function s(e){VI(o,n,i,a,s,"throw",e)}a(void 0)}))}}function GI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qI(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Cf(e,oj(n.key),n)}}function HI(e,t,r){return t&&qI(e.prototype,t),r&&qI(e,r),Cf(e,"prototype",{writable:!1}),e}function WI(e,t,r){return(t=oj(t))in e?Cf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YI(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Uf(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Cf(e,"prototype",{writable:!1}),t&&KI(e,t)}function $I(e){var t;return($I=Ff?Ug(t=Bf).call(t):function(e){return e.__proto__||Bf(e)})(e)}function KI(e,t){var r;return(KI=Ff?Ug(r=Ff).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function QI(){if("undefined"==typeof Reflect||!Kg)return!1;if(Kg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Kg(Boolean,[],(function(){}))),!0}catch(e){return!1}}function XI(e,t,r){var n;QI()?XI=Ug(n=Kg).call(n):XI=function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Ug(Function).apply(e,n));return r&&KI(i,r.prototype),i};return XI.apply(null,arguments)}function JI(e){var t="function"==typeof jI?new jI:void 0;return JI=function(e){if(null===e||(r=e,-1===gS(n=Function.toString.call(r)).call(n,"[native code]")))return e;var r,n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return XI(e,arguments,$I(this).constructor)}return i.prototype=Uf(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),KI(i,e)},JI(e)}function ZI(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Cl(e);for(n=0;n<o.length;n++)r=o[n],gS(t).call(t,r)>=0||(i[r]=e[r]);return i}(e,t);if(Rl){var o=Rl(e);for(n=0;n<o.length;n++)r=o[n],gS(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ej(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tj(e){var t=QI();return function(){var r,n=$I(e);if(t){var i=$I(this).constructor;r=Kg(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Ol(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ej(e)}(this,r)}}function rj(){var e;"undefined"!=typeof Reflect&&MT?rj=Ug(e=MT).call(e):rj=function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=$I(e)););return e}(e,t);if(n){var i=Yl(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}};return rj.apply(this,arguments)}function nj(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ij(e,t){var r=void 0!==Rf&&BT(e)||e["@@iterator"];if(!r){if(OT(e)||(r=function(e,t){var r;if(e){if("string"==typeof e)return nj(e,t);var n=gg(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?eA(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nj(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function oj(e){var t=function(e,t){if("object"!==Ol(e)||null===e)return e;var r=e[Qg];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Ol(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ol(t)?t:String(t)}var aj=Ex,sj=Ox,uj=Object.keys||function(e){return aj(e,sj)},cj=ym,lj=Rm,fj=_m,hj=vm,pj=uj,dj=Cx,vj=wm,yj=Yb,gj=Vm,mj=Object.assign,bj=Object.defineProperty,_j=lj([].concat),wj=!mj||hj((function(){if(cj&&1!==mj({b:1},mj(bj({},"a",{enumerable:!0,get:function(){bj(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=mj({},e)[r]||pj(mj({},t)).join("")!=n}))?function(e,t){for(var r=yj(e),n=arguments.length,i=1,o=dj.f,a=vj.f;n>i;)for(var s,u=gj(arguments[i++]),c=o?_j(pj(u),o(u)):pj(u),l=c.length,f=0;l>f;)s=c[f++],cj&&!fj(a,u,s)||(r[s]=u[s]);return r}:mj,xj=wj;ik({target:"Object",stat:!0,arity:2,forced:Object.assign!==xj},{assign:xj});var kj=wk,Sj=dk?{}.toString:function(){return"[object "+kj(this)+"]"};dk||rx(Object.prototype,"toString",Sj,{unsafe:!0});var Tj,Aj,Ej,Oj,Lj="process"==jm(pm.process),Pj=Jm,Cj=String,Rj=TypeError,Dj=Rm,Uj=G_,Ij=function(e){if("object"==typeof e||Pj(e))return e;throw Rj("Can't set "+Cj(e)+" as a prototype")},jj=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Dj(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(Cre){}return function(r,n){return Uj(r),Ij(n),t?e(r,n):r.__proto__=n,r}}():void 0),Mj=B_.f,Bj=Qb,Fj=f_("toStringTag"),Nj=function(e,t,r){e&&!r&&(e=e.prototype),e&&!Bj(e,Fj)&&Mj(e,Fj,{configurable:!0,value:t})},Vj=ib,zj=B_,Gj=ym,qj=f_("species"),Hj=function(e){var t=Vj(e),r=zj.f;Gj&&t&&!t[qj]&&r(t,qj,{configurable:!0,get:function(){return this}})},Wj=ob,Yj=TypeError,$j=function(e,t){if(Wj(t,e))return e;throw Yj("Incorrect invocation")},Kj=Ik,Qj=Sb,Xj=TypeError,Jj=function(e){if(Kj(e))return e;throw Xj(Qj(e)+" is not a constructor")},Zj=G_,eM=Jj,tM=zm,rM=f_("species"),nM=function(e,t){var r,n=Zj(e).constructor;return void 0===n||tM(r=Zj(n)[rM])?t:eM(r)},iM=gm,oM=Function.prototype,aM=oM.apply,sM=oM.call,uM="object"==typeof Reflect&&Reflect.apply||(iM?sM.bind(aM):function(){return sM.apply(aM,arguments)}),cM=jm,lM=Rm,fM=function(e){if("Function"===cM(e))return lM(e)},hM=Ob,pM=gm,dM=fM(fM.bind),vM=function(e,t){return hM(e),void 0===t?e:pM?dM(e,t):function(){return e.apply(t,arguments)}},yM=ib("document","documentElement"),gM=Rm([].slice),mM=TypeError,bM=function(e,t){if(e<t)throw mM("Not enough arguments");return e},_M=/(?:ipad|iphone|ipod).*applewebkit/i.test(ab),wM=pm,xM=uM,kM=vM,SM=Jm,TM=Qb,AM=vm,EM=yM,OM=gM,LM=A_,PM=bM,CM=_M,RM=Lj,DM=wM.setImmediate,UM=wM.clearImmediate,IM=wM.process,jM=wM.Dispatch,MM=wM.Function,BM=wM.MessageChannel,FM=wM.String,NM=0,VM={},zM="onreadystatechange";try{Tj=wM.location}catch(Cre){}var GM=function(e){if(TM(VM,e)){var t=VM[e];delete VM[e],t()}},qM=function(e){return function(){GM(e)}},HM=function(e){GM(e.data)},WM=function(e){wM.postMessage(FM(e),Tj.protocol+"//"+Tj.host)};DM&&UM||(DM=function(e){PM(arguments.length,1);var t=SM(e)?e:MM(e),r=OM(arguments,1);return VM[++NM]=function(){xM(t,void 0,r)},Aj(NM),NM},UM=function(e){delete VM[e]},RM?Aj=function(e){IM.nextTick(qM(e))}:jM&&jM.now?Aj=function(e){jM.now(qM(e))}:BM&&!CM?(Oj=(Ej=new BM).port2,Ej.port1.onmessage=HM,Aj=kM(Oj.postMessage,Oj)):wM.addEventListener&&SM(wM.postMessage)&&!wM.importScripts&&Tj&&"file:"!==Tj.protocol&&!AM(WM)?(Aj=WM,wM.addEventListener("message",HM,!1)):Aj=zM in LM("script")?function(e){EM.appendChild(LM("script"))[zM]=function(){EM.removeChild(this),GM(e)}}:function(e){setTimeout(qM(e),0)});var YM,$M,KM,QM,XM,JM,ZM,eB,tB={set:DM,clear:UM},rB=pm,nB=/ipad|iphone|ipod/i.test(ab)&&void 0!==rB.Pebble,iB=/web0s(?!.*chrome)/i.test(ab),oB=pm,aB=vM,sB=dm.f,uB=tB.set,cB=_M,lB=nB,fB=iB,hB=Lj,pB=oB.MutationObserver||oB.WebKitMutationObserver,dB=oB.document,vB=oB.process,yB=oB.Promise,gB=sB(oB,"queueMicrotask"),mB=gB&&gB.value;mB||(YM=function(){var e,t;for(hB&&(e=vB.domain)&&e.exit();$M;){t=$M.fn,$M=$M.next;try{t()}catch(Cre){throw $M?QM():KM=void 0,Cre}}KM=void 0,e&&e.enter()},cB||hB||fB||!pB||!dB?!lB&&yB&&yB.resolve?((ZM=yB.resolve(void 0)).constructor=yB,eB=aB(ZM.then,ZM),QM=function(){eB(YM)}):hB?QM=function(){vB.nextTick(YM)}:(uB=aB(uB,oB),QM=function(){uB(YM)}):(XM=!0,JM=dB.createTextNode(""),new pB(YM).observe(JM,{characterData:!0}),QM=function(){JM.data=XM=!XM}));var bB=mB||function(e){var t={fn:e,next:void 0};KM&&(KM.next=t),$M||($M=t,QM()),KM=t},_B=pm,wB=function(e){try{return{error:!1,value:e()}}catch(Cre){return{error:!0,value:Cre}}},xB=function(){this.head=null,this.tail=null};xB.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var kB=xB,SB=pm.Promise,TB="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,AB=!TB&&!Lj&&"object"==typeof window&&"object"==typeof document,EB=pm,OB=SB,LB=Jm,PB=Qx,CB=gw,RB=f_,DB=AB,UB=TB,IB=pb;OB&&OB.prototype;var jB=RB("species"),MB=!1,BB=LB(EB.PromiseRejectionEvent),FB={CONSTRUCTOR:PB("Promise",(function(){var e=CB(OB),t=e!==String(OB);if(!t&&66===IB)return!0;if(!IB||IB<51||!/native code/.test(e)){var r=new OB((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[jB]=n,!(MB=r.then((function(){}))instanceof n))return!0}return!t&&(DB||UB)&&!BB})),REJECTION_EVENT:BB,SUBCLASSING:MB},NB={},VB=Ob,zB=TypeError,GB=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw zB("Bad Promise constructor");t=e,r=n})),this.resolve=VB(t),this.reject=VB(r)};NB.f=function(e){return new GB(e)};var qB,HB,WB,YB=ik,$B=Lj,KB=pm,QB=_m,XB=rx,JB=jj,ZB=Nj,eF=Hj,tF=Ob,rF=Jm,nF=tb,iF=$j,oF=nM,aF=tB.set,sF=bB,uF=function(e,t){var r=_B.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))},cF=wB,lF=kB,fF=Bw,hF=SB,pF=NB,dF="Promise",vF=FB.CONSTRUCTOR,yF=FB.REJECTION_EVENT,gF=FB.SUBCLASSING,mF=fF.getterFor(dF),bF=fF.set,_F=hF&&hF.prototype,wF=hF,xF=_F,kF=KB.TypeError,SF=KB.document,TF=KB.process,AF=pF.f,EF=AF,OF=!!(SF&&SF.createEvent&&KB.dispatchEvent),LF="unhandledrejection",PF=function(e){var t;return!(!nF(e)||!rF(t=e.then))&&t},CF=function(e,t){var r,n,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(a||(2===t.rejection&&jF(t),t.rejection=1),!0===s?r=o:(l&&l.enter(),r=s(o),l&&(l.exit(),i=!0)),r===e.promise?c(kF("Promise-chain cycle")):(n=PF(r))?QB(n,r,u,c):u(r)):c(o)}catch(Cre){l&&!i&&l.exit(),c(Cre)}},RF=function(e,t){e.notified||(e.notified=!0,sF((function(){for(var r,n=e.reactions;r=n.get();)CF(r,e);e.notified=!1,t&&!e.rejection&&UF(e)})))},DF=function(e,t,r){var n,i;OF?((n=SF.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),KB.dispatchEvent(n)):n={promise:t,reason:r},!yF&&(i=KB["on"+e])?i(n):e===LF&&uF("Unhandled promise rejection",r)},UF=function(e){QB(aF,KB,(function(){var t,r=e.facade,n=e.value;if(IF(e)&&(t=cF((function(){$B?TF.emit("unhandledRejection",n,r):DF(LF,r,n)})),e.rejection=$B||IF(e)?2:1,t.error))throw t.value}))},IF=function(e){return 1!==e.rejection&&!e.parent},jF=function(e){QB(aF,KB,(function(){var t=e.facade;$B?TF.emit("rejectionHandled",t):DF("rejectionhandled",t,e.value)}))},MF=function(e,t,r){return function(n){e(t,n,r)}},BF=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,RF(e,!0))},FF=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw kF("Promise can't be resolved itself");var n=PF(t);n?sF((function(){var r={done:!1};try{QB(n,t,MF(FF,r,e),MF(BF,r,e))}catch(Cre){BF(r,Cre,e)}})):(e.value=t,e.state=1,RF(e,!1))}catch(Cre){BF({done:!1},Cre,e)}}};if(vF&&(xF=(wF=function(e){iF(this,xF),tF(e),QB(qB,this);var t=mF(this);try{e(MF(FF,t),MF(BF,t))}catch(Cre){BF(t,Cre)}}).prototype,(qB=function(e){bF(this,{type:dF,done:!1,notified:!1,parent:!1,reactions:new lF,rejection:!1,state:0,value:void 0})}).prototype=XB(xF,"then",(function(e,t){var r=mF(this),n=AF(oF(this,wF));return r.parent=!0,n.ok=!rF(e)||e,n.fail=rF(t)&&t,n.domain=$B?TF.domain:void 0,0==r.state?r.reactions.add(n):sF((function(){CF(n,r)})),n.promise})),HB=function(){var e=new qB,t=mF(e);this.promise=e,this.resolve=MF(FF,t),this.reject=MF(BF,t)},pF.f=AF=function(e){return e===wF||undefined===e?new HB(e):EF(e)},rF(hF)&&_F!==Object.prototype)){WB=_F.then,gF||XB(_F,"then",(function(e,t){var r=this;return new wF((function(e,t){QB(WB,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete _F.constructor}catch(Cre){}JB&&JB(_F,xF)}YB({global:!0,constructor:!0,wrap:!0,forced:vF},{Promise:wF}),ZB(wF,dF,!1),eF(dF);var NF={},VF=NF,zF=f_("iterator"),GF=Array.prototype,qF=function(e){return void 0!==e&&(VF.Array===e||GF[zF]===e)},HF=wk,WF=Cb,YF=zm,$F=NF,KF=f_("iterator"),QF=function(e){if(!YF(e))return WF(e,KF)||WF(e,"@@iterator")||$F[HF(e)]},XF=_m,JF=Ob,ZF=G_,eN=Sb,tN=QF,rN=TypeError,nN=function(e,t){var r=arguments.length<2?tN(e):t;if(JF(r))return ZF(XF(r,e));throw rN(eN(e)+" is not iterable")},iN=_m,oN=G_,aN=Cb,sN=function(e,t,r){var n,i;oN(e);try{if(!(n=aN(e,"return"))){if("throw"===t)throw r;return r}n=iN(n,e)}catch(Cre){i=!0,n=Cre}if("throw"===t)throw r;if(i)throw n;return oN(n),r},uN=vM,cN=_m,lN=G_,fN=Sb,hN=qF,pN=yx,dN=ob,vN=nN,yN=QF,gN=sN,mN=TypeError,bN=function(e,t){this.stopped=e,this.result=t},_N=bN.prototype,wN=function(e,t,r){var n,i,o,a,s,u,c,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=uN(t,l),y=function(e){return n&&gN(n,"normal",e),new bN(!0,e)},g=function(e){return f?(lN(e),d?v(e[0],e[1],y):v(e[0],e[1])):d?v(e,y):v(e)};if(h)n=e.iterator;else if(p)n=e;else{if(!(i=yN(e)))throw mN(fN(e)+" is not iterable");if(hN(i)){for(o=0,a=pN(e);a>o;o++)if((s=g(e[o]))&&dN(_N,s))return s;return new bN(!1)}n=vN(e,i)}for(u=h?e.next:n.next;!(c=cN(u,n)).done;){try{s=g(c.value)}catch(Cre){gN(n,"throw",Cre)}if("object"==typeof s&&s&&dN(_N,s))return s}return new bN(!1)},xN=f_("iterator"),kN=!1;try{var SN=0,TN={next:function(){return{done:!!SN++}},return:function(){kN=!0}};TN[xN]=function(){return this},Array.from(TN,(function(){throw 2}))}catch(Cre){}var AN=function(e,t){if(!t&&!kN)return!1;var r=!1;try{var n={};n[xN]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(Cre){}return r},EN=SB,ON=FB.CONSTRUCTOR||!AN((function(e){EN.all(e).then(void 0,(function(){}))})),LN=_m,PN=Ob,CN=NB,RN=wB,DN=wN;ik({target:"Promise",stat:!0,forced:ON},{all:function(e){var t=this,r=CN.f(t),n=r.resolve,i=r.reject,o=RN((function(){var r=PN(t.resolve),o=[],a=0,s=1;DN(e,(function(e){var u=a++,c=!1;s++,LN(r,t,e).then((function(e){c||(c=!0,o[u]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise}});var UN=ik,IN=FB.CONSTRUCTOR,jN=SB,MN=ib,BN=Jm,FN=rx,NN=jN&&jN.prototype;if(UN({target:"Promise",proto:!0,forced:IN,real:!0},{catch:function(e){return this.then(void 0,e)}}),BN(jN)){var VN=MN("Promise").prototype.catch;NN.catch!==VN&&FN(NN,"catch",VN,{unsafe:!0})}var zN=_m,GN=Ob,qN=NB,HN=wB,WN=wN;ik({target:"Promise",stat:!0,forced:ON},{race:function(e){var t=this,r=qN.f(t),n=r.reject,i=HN((function(){var i=GN(t.resolve);WN(e,(function(e){zN(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var YN=_m,$N=NB;ik({target:"Promise",stat:!0,forced:FB.CONSTRUCTOR},{reject:function(e){var t=$N.f(this);return YN(t.reject,void 0,e),t.promise}});var KN=G_,QN=tb,XN=NB,JN=function(e,t){if(KN(e),QN(t)&&t.constructor===e)return t;var r=XN.f(e);return(0,r.resolve)(t),r.promise},ZN=ik,eV=FB.CONSTRUCTOR,tV=JN;ib("Promise"),ZN({target:"Promise",stat:!0,forced:eV},{resolve:function(e){return tV(this,e)}});var rV={},nV=ym,iV=F_,oV=B_,aV=G_,sV=$m,uV=uj;rV.f=nV&&!iV?Object.defineProperties:function(e,t){aV(e);for(var r,n=sV(t),i=uV(t),o=i.length,a=0;o>a;)oV.f(e,r=i[a++],n[r]);return e};var cV,lV=G_,fV=rV,hV=Ox,pV=Sw,dV=yM,vV=A_,yV="prototype",gV="script",mV=kw("IE_PROTO"),bV=function(){},_V=function(e){return"<"+gV+">"+e+"</"+gV+">"},wV=function(e){e.write(_V("")),e.close();var t=e.parentWindow.Object;return e=null,t},xV=function(){try{cV=new ActiveXObject("htmlfile")}catch(Cre){}var e,t,r;xV="undefined"!=typeof document?document.domain&&cV?wV(cV):(t=vV("iframe"),r="java"+gV+":",t.style.display="none",dV.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(_V("document.F=Object")),e.close(),e.F):wV(cV);for(var n=hV.length;n--;)delete xV[yV][hV[n]];return xV()};pV[mV]=!0;var kV=Object.create||function(e,t){var r;return null!==e?(bV[yV]=lV(e),r=new bV,bV[yV]=null,r[mV]=e):r=xV(),void 0===t?r:fV.f(r,t)},SV=f_,TV=kV,AV=B_.f,EV=SV("unscopables"),OV=Array.prototype;null==OV[EV]&&AV(OV,EV,{configurable:!0,value:TV(null)});var LV,PV,CV,RV=function(e){OV[EV][e]=!0},DV=!vm((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),UV=Qb,IV=Jm,jV=Yb,MV=DV,BV=kw("IE_PROTO"),FV=Object,NV=FV.prototype,VV=MV?FV.getPrototypeOf:function(e){var t=jV(e);if(UV(t,BV))return t[BV];var r=t.constructor;return IV(r)&&t instanceof r?r.prototype:t instanceof FV?NV:null},zV=vm,GV=Jm,qV=tb,HV=VV,WV=rx,YV=f_("iterator"),$V=!1;[].keys&&("next"in(CV=[].keys())?(PV=HV(HV(CV)))!==Object.prototype&&(LV=PV):$V=!0),(!qV(LV)||zV((function(){var e={};return LV[YV].call(e)!==e})))&&(LV={}),GV(LV[YV])||WV(LV,YV,(function(){return this}));var KV={IteratorPrototype:LV,BUGGY_SAFARI_ITERATORS:$V},QV=KV.IteratorPrototype,XV=kV,JV=Em,ZV=Nj,ez=NF,tz=function(){return this},rz=function(e,t,r,n){var i=t+" Iterator";return e.prototype=XV(QV,{next:JV(+!n,r)}),ZV(e,i,!1),ez[i]=tz,e},nz=ik,iz=_m,oz=Jm,az=rz,sz=VV,uz=jj,cz=Nj,lz=nw,fz=rx,hz=NF,pz=lw.PROPER,dz=lw.CONFIGURABLE,vz=KV.IteratorPrototype,yz=KV.BUGGY_SAFARI_ITERATORS,gz=f_("iterator"),mz="keys",bz="values",_z="entries",wz=function(){return this},xz=function(e,t,r,n,i,o,a){az(r,t,n);var s,u,c,l=function(e){if(e===i&&v)return v;if(!yz&&e in p)return p[e];switch(e){case mz:case bz:case _z:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",h=!1,p=e.prototype,d=p[gz]||p["@@iterator"]||i&&p[i],v=!yz&&d||l(i),y="Array"==t&&p.entries||d;if(y&&(s=sz(y.call(new e)))!==Object.prototype&&s.next&&(sz(s)!==vz&&(uz?uz(s,vz):oz(s[gz])||fz(s,gz,wz)),cz(s,f,!0)),pz&&i==bz&&d&&d.name!==bz&&(dz?lz(p,"name",bz):(h=!0,v=function(){return iz(d,this)})),i)if(u={values:l(bz),keys:o?v:l(mz),entries:l(_z)},a)for(c in u)(yz||h||!(c in p))&&fz(p,c,u[c]);else nz({target:t,proto:!0,forced:yz||h},u);return p[gz]!==v&&fz(p,gz,v,{name:i}),hz[t]=v,u},kz=function(e,t){return{value:e,done:t}},Sz=$m,Tz=RV,Az=NF,Ez=Bw,Oz=B_.f,Lz=xz,Pz=kz,Cz=ym,Rz="Array Iterator",Dz=Ez.set,Uz=Ez.getterFor(Rz),Iz=Lz(Array,"Array",(function(e,t){Dz(this,{type:Rz,target:Sz(e),index:0,kind:t})}),(function(){var e=Uz(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,Pz(void 0,!0)):Pz("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),jz=Az.Arguments=Az.Array;if(Tz("keys"),Tz("values"),Tz("entries"),Cz&&"values"!==jz.name)try{Oz(jz,"name",{value:"values"})}catch(Cre){}var Mz=wk,Bz=String,Fz=function(e){if("Symbol"===Mz(e))throw TypeError("Cannot convert a Symbol value to a string");return Bz(e)},Nz=Rm,Vz=sx,zz=Fz,Gz=Hm,qz=Nz("".charAt),Hz=Nz("".charCodeAt),Wz=Nz("".slice),Yz=function(e){return function(t,r){var n,i,o=zz(Gz(t)),a=Vz(r),s=o.length;return a<0||a>=s?e?"":void 0:(n=Hz(o,a))<55296||n>56319||a+1===s||(i=Hz(o,a+1))<56320||i>57343?e?qz(o,a):n:e?Wz(o,a,a+2):i-56320+(n-55296<<10)+65536}},$z={codeAt:Yz(!1),charAt:Yz(!0)},Kz=$z.charAt,Qz=Fz,Xz=Bw,Jz=xz,Zz=kz,eG="String Iterator",tG=Xz.set,rG=Xz.getterFor(eG);Jz(String,"String",(function(e){tG(this,{type:eG,string:Qz(e),index:0})}),(function(){var e,t=rG(this),r=t.string,n=t.index;return n>=r.length?Zz(void 0,!0):(e=Kz(r,n),t.index+=e.length,Zz(e,!1))}));var nG={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},iG=A_("span").classList,oG=iG&&iG.constructor&&iG.constructor.prototype,aG=oG===Object.prototype?void 0:oG,sG=pm,uG=nG,cG=aG,lG=Iz,fG=nw,hG=f_,pG=hG("iterator"),dG=hG("toStringTag"),vG=lG.values,yG=function(e,t){if(e){if(e[pG]!==vG)try{fG(e,pG,vG)}catch(Cre){e[pG]=vG}if(e[dG]||fG(e,dG,t),uG[t])for(var r in lG)if(e[r]!==lG[r])try{fG(e,r,lG[r])}catch(Cre){e[r]=lG[r]}}};for(var gG in uG)yG(sG[gG]&&sG[gG].prototype,gG);yG(cG,"DOMTokenList");var mG=vm,bG=f_("iterator"),_G=!mG((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[bG]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),wG=Xw,xG=B_,kG=function(e,t,r){return r.get&&wG(r.get,t,{getter:!0}),r.set&&wG(r.set,t,{setter:!0}),xG.f(e,t,r)},SG=G_,TG=sN,AG=vM,EG=_m,OG=Yb,LG=function(e,t,r,n){try{return n?t(SG(r)[0],r[1]):t(r)}catch(Cre){TG(e,"throw",Cre)}},PG=qF,CG=Ik,RG=yx,DG=hk,UG=nN,IG=QF,jG=Array,MG=fx,BG=yx,FG=hk,NG=Array,VG=Math.max,zG=function(e,t,r){for(var n=BG(e),i=MG(t,n),o=MG(void 0===r?n:r,n),a=NG(VG(o-i,0)),s=0;i<o;i++,s++)FG(a,s,e[i]);return a.length=s,a},GG=Rm,qG=2147483647,HG=/[^\0-\u007E]/,WG=/[.\u3002\uFF0E\uFF61]/g,YG="Overflow: input needs wider integers to process",$G=RangeError,KG=GG(WG.exec),QG=Math.floor,XG=String.fromCharCode,JG=GG("".charCodeAt),ZG=GG([].join),eq=GG([].push),tq=GG("".replace),rq=GG("".split),nq=GG("".toLowerCase),iq=function(e){return e+22+75*(e<26)},oq=function(e,t,r){var n=0;for(e=r?QG(e/700):e>>1,e+=QG(e/t);e>455;)e=QG(e/35),n+=36;return QG(n+36*e/(e+38))},aq=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=JG(e,r++);if(i>=55296&&i<=56319&&r<n){var o=JG(e,r++);56320==(64512&o)?eq(t,((1023&i)<<10)+(1023&o)+65536):(eq(t,i),r--)}else eq(t,i)}return t}(e);var r,n,i=e.length,o=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&eq(t,XG(n));var u=t.length,c=u;for(u&&eq(t,"-");c<i;){var l=qG;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<l&&(l=n);var f=c+1;if(l-o>QG((qG-a)/f))throw $G(YG);for(a+=(l-o)*f,o=l,r=0;r<e.length;r++){if((n=e[r])<o&&++a>qG)throw $G(YG);if(n==o){for(var h=a,p=36;;){var d=p<=s?1:p>=s+26?26:p-s;if(h<d)break;var v=h-d,y=36-d;eq(t,XG(iq(d+v%y))),h=QG(v/y),p+=36}eq(t,XG(iq(h))),s=oq(a,f,c==u),a=0,c++}}a++,o++}return ZG(t,"")},sq=rx,uq=function(e,t,r){for(var n in t)sq(e,n,t[n],r);return e},cq=zG,lq=Math.floor,fq=function(e,t){var r=e.length,n=lq(r/2);return r<8?hq(e,t):pq(e,fq(cq(e,0,n),t),fq(cq(e,n),t),t)},hq=function(e,t){for(var r,n,i=e.length,o=1;o<i;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},pq=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?n(t[a],r[s])<=0?t[a++]:r[s++]:a<i?t[a++]:r[s++];return e},dq=fq,vq=ik,yq=pm,gq=_m,mq=Rm,bq=ym,_q=_G,wq=rx,xq=uq,kq=Nj,Sq=rz,Tq=Bw,Aq=$j,Eq=Jm,Oq=Qb,Lq=vM,Pq=wk,Cq=G_,Rq=tb,Dq=Fz,Uq=kV,Iq=Em,jq=nN,Mq=QF,Bq=bM,Fq=dq,Nq=f_("iterator"),Vq="URLSearchParams",zq=Vq+"Iterator",Gq=Tq.set,qq=Tq.getterFor(Vq),Hq=Tq.getterFor(zq),Wq=Object.getOwnPropertyDescriptor,Yq=function(e){if(!bq)return yq[e];var t=Wq(yq,e);return t&&t.value},$q=Yq("fetch"),Kq=Yq("Request"),Qq=Yq("Headers"),Xq=Kq&&Kq.prototype,Jq=Qq&&Qq.prototype,Zq=yq.RegExp,eH=yq.TypeError,tH=yq.decodeURIComponent,rH=yq.encodeURIComponent,nH=mq("".charAt),iH=mq([].join),oH=mq([].push),aH=mq("".replace),sH=mq([].shift),uH=mq([].splice),cH=mq("".split),lH=mq("".slice),fH=/\+/g,hH=Array(4),pH=function(e){return hH[e-1]||(hH[e-1]=Zq("((?:%[\\da-f]{2}){"+e+"})","gi"))},dH=function(e){try{return tH(e)}catch(Cre){return e}},vH=function(e){var t=aH(e,fH," "),r=4;try{return tH(t)}catch(Cre){for(;r;)t=aH(t,pH(r--),dH);return t}},yH=/[!'()~]|%20/g,gH={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},mH=function(e){return gH[e]},bH=function(e){return aH(rH(e),yH,mH)},_H=Sq((function(e,t){Gq(this,{type:zq,iterator:jq(qq(e).entries),kind:t})}),"Iterator",(function(){var e=Hq(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),wH=function(e){this.entries=[],this.url=null,void 0!==e&&(Rq(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===nH(e,0)?lH(e,1):e:Dq(e)))};wH.prototype={type:Vq,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,u=Mq(e);if(u)for(r=(t=jq(e,u)).next;!(n=gq(r,t)).done;){if(o=(i=jq(Cq(n.value))).next,(a=gq(o,i)).done||(s=gq(o,i)).done||!gq(o,i).done)throw eH("Expected sequence with length 2");oH(this.entries,{key:Dq(a.value),value:Dq(s.value)})}else for(var c in e)Oq(e,c)&&oH(this.entries,{key:c,value:Dq(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=cH(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=cH(t,"="),oH(this.entries,{key:vH(sH(r)),value:vH(iH(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],oH(r,bH(e.key)+"="+bH(e.value));return iH(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var xH=function(){Aq(this,kH),Gq(this,new wH(arguments.length>0?arguments[0]:void 0))},kH=xH.prototype;if(xq(kH,{append:function(e,t){Bq(arguments.length,2);var r=qq(this);oH(r.entries,{key:Dq(e),value:Dq(t)}),r.updateURL()},delete:function(e){Bq(arguments.length,1);for(var t=qq(this),r=t.entries,n=Dq(e),i=0;i<r.length;)r[i].key===n?uH(r,i,1):i++;t.updateURL()},get:function(e){Bq(arguments.length,1);for(var t=qq(this).entries,r=Dq(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){Bq(arguments.length,1);for(var t=qq(this).entries,r=Dq(e),n=[],i=0;i<t.length;i++)t[i].key===r&&oH(n,t[i].value);return n},has:function(e){Bq(arguments.length,1);for(var t=qq(this).entries,r=Dq(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){Bq(arguments.length,1);for(var r,n=qq(this),i=n.entries,o=!1,a=Dq(e),s=Dq(t),u=0;u<i.length;u++)(r=i[u]).key===a&&(o?uH(i,u--,1):(o=!0,r.value=s));o||oH(i,{key:a,value:s}),n.updateURL()},sort:function(){var e=qq(this);Fq(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=qq(this).entries,n=Lq(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new _H(this,"keys")},values:function(){return new _H(this,"values")},entries:function(){return new _H(this,"entries")}},{enumerable:!0}),wq(kH,Nq,kH.entries,{name:"entries"}),wq(kH,"toString",(function(){return qq(this).serialize()}),{enumerable:!0}),kq(xH,Vq),vq({global:!0,constructor:!0,forced:!_q},{URLSearchParams:xH}),!_q&&Eq(Qq)){var SH=mq(Jq.has),TH=mq(Jq.set),AH=function(e){if(Rq(e)){var t,r=e.body;if(Pq(r)===Vq)return t=e.headers?new Qq(e.headers):new Qq,SH(t,"content-type")||TH(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Uq(e,{body:Iq(0,Dq(r)),headers:Iq(0,t)})}return e};if(Eq($q)&&vq({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return $q(e,arguments.length>1?AH(arguments[1]):{})}}),Eq(Kq)){var EH=function(e){return Aq(this,Xq),new Kq(e,arguments.length>1?AH(arguments[1]):{})};Xq.constructor=EH,EH.prototype=Xq,vq({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:EH})}}var OH,LH=ik,PH=ym,CH=_G,RH=pm,DH=vM,UH=Rm,IH=rx,jH=kG,MH=$j,BH=Qb,FH=wj,NH=function(e){var t=OG(e),r=CG(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=AG(i,n>2?arguments[2]:void 0));var a,s,u,c,l,f,h=IG(t),p=0;if(!h||this===jG&&PG(h))for(a=RG(t),s=r?new this(a):jG(a);a>p;p++)f=o?i(t[p],p):t[p],DG(s,p,f);else for(l=(c=UG(t,h)).next,s=r?new this:[];!(u=EG(l,c)).done;p++)f=o?LG(c,i,[u.value,p],!0):u.value,DG(s,p,f);return s.length=p,s},VH=zG,zH=$z.codeAt,GH=function(e){var t,r,n=[],i=rq(tq(nq(e),WG,"."),".");for(t=0;t<i.length;t++)r=i[t],eq(n,KG(HG,r)?"xn--"+aq(r):r);return ZG(n,".")},qH=Fz,HH=Nj,WH=bM,YH={URLSearchParams:xH,getState:qq},$H=Bw,KH=$H.set,QH=$H.getterFor("URL"),XH=YH.URLSearchParams,JH=YH.getState,ZH=RH.URL,eW=RH.TypeError,tW=RH.parseInt,rW=Math.floor,nW=Math.pow,iW=UH("".charAt),oW=UH(/./.exec),aW=UH([].join),sW=UH(1..toString),uW=UH([].pop),cW=UH([].push),lW=UH("".replace),fW=UH([].shift),hW=UH("".split),pW=UH("".slice),dW=UH("".toLowerCase),vW=UH([].unshift),yW="Invalid scheme",gW="Invalid host",mW="Invalid port",bW=/[a-z]/i,_W=/[\d+-.a-z]/i,wW=/\d/,xW=/^0x/i,kW=/^[0-7]+$/,SW=/^\d+$/,TW=/^[\da-f]+$/i,AW=/[\0\t\n\r #%/:<>?@[\\\]^|]/,EW=/[\0\t\n\r #/:<>?@[\\\]^|]/,OW=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,LW=/[\t\n\r]/g,PW=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)vW(t,e%256),e=rW(e/256);return aW(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=sW(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},CW={},RW=FH({},CW,{" ":1,'"':1,"<":1,">":1,"`":1}),DW=FH({},RW,{"#":1,"?":1,"{":1,"}":1}),UW=FH({},DW,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),IW=function(e,t){var r=zH(e,0);return r>32&&r<127&&!BH(t,e)?e:encodeURIComponent(e)},jW={ftp:21,file:null,http:80,https:443,ws:80,wss:443},MW=function(e,t){var r;return 2==e.length&&oW(bW,iW(e,0))&&(":"==(r=iW(e,1))||!t&&"|"==r)},BW=function(e){var t;return e.length>1&&MW(pW(e,0,2))&&(2==e.length||"/"===(t=iW(e,2))||"\\"===t||"?"===t||"#"===t)},FW=function(e){return"."===e||"%2e"===dW(e)},NW={},VW={},zW={},GW={},qW={},HW={},WW={},YW={},$W={},KW={},QW={},XW={},JW={},ZW={},eY={},tY={},rY={},nY={},iY={},oY={},aY={},sY=function(e,t,r){var n,i,o,a=qH(e);if(t){if(i=this.parse(a))throw eW(i);this.searchParams=null}else{if(void 0!==r&&(n=new sY(r,!0)),i=this.parse(a,null,n))throw eW(i);(o=JH(new XH)).bindURL(this),this.searchParams=o}};sY.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,s,u=this,c=t||NW,l=0,f="",h=!1,p=!1,d=!1;for(e=qH(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=lW(e,OW,"")),e=lW(e,LW,""),n=NH(e);l<=n.length;){switch(i=n[l],c){case NW:if(!i||!oW(bW,i)){if(t)return yW;c=zW;continue}f+=dW(i),c=VW;break;case VW:if(i&&(oW(_W,i)||"+"==i||"-"==i||"."==i))f+=dW(i);else{if(":"!=i){if(t)return yW;f="",c=zW,l=0;continue}if(t&&(u.isSpecial()!=BH(jW,f)||"file"==f&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=f,t)return void(u.isSpecial()&&jW[u.scheme]==u.port&&(u.port=null));f="","file"==u.scheme?c=ZW:u.isSpecial()&&r&&r.scheme==u.scheme?c=GW:u.isSpecial()?c=YW:"/"==n[l+1]?(c=qW,l++):(u.cannotBeABaseURL=!0,cW(u.path,""),c=iY)}break;case zW:if(!r||r.cannotBeABaseURL&&"#"!=i)return yW;if(r.cannotBeABaseURL&&"#"==i){u.scheme=r.scheme,u.path=VH(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=aY;break}c="file"==r.scheme?ZW:HW;continue;case GW:if("/"!=i||"/"!=n[l+1]){c=HW;continue}c=$W,l++;break;case qW:if("/"==i){c=KW;break}c=nY;continue;case HW:if(u.scheme=r.scheme,i==OH)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=VH(r.path),u.query=r.query;else if("/"==i||"\\"==i&&u.isSpecial())c=WW;else if("?"==i)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=VH(r.path),u.query="",c=oY;else{if("#"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=VH(r.path),u.path.length--,c=nY;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=VH(r.path),u.query=r.query,u.fragment="",c=aY}break;case WW:if(!u.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=nY;continue}c=KW}else c=$W;break;case YW:if(c=$W,"/"!=i||"/"!=iW(f,l+1))continue;l++;break;case $W:if("/"!=i&&"\\"!=i){c=KW;continue}break;case KW:if("@"==i){h&&(f="%40"+f),h=!0,o=NH(f);for(var v=0;v<o.length;v++){var y=o[v];if(":"!=y||d){var g=IW(y,UW);d?u.password+=g:u.username+=g}else d=!0}f=""}else if(i==OH||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(h&&""==f)return"Invalid authority";l-=NH(f).length+1,f="",c=QW}else f+=i;break;case QW:case XW:if(t&&"file"==u.scheme){c=tY;continue}if(":"!=i||p){if(i==OH||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(u.isSpecial()&&""==f)return gW;if(t&&""==f&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(f))return a;if(f="",c=rY,t)return;continue}"["==i?p=!0:"]"==i&&(p=!1),f+=i}else{if(""==f)return gW;if(a=u.parseHost(f))return a;if(f="",c=JW,t==XW)return}break;case JW:if(!oW(wW,i)){if(i==OH||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()||t){if(""!=f){var m=tW(f,10);if(m>65535)return mW;u.port=u.isSpecial()&&m===jW[u.scheme]?null:m,f=""}if(t)return;c=rY;continue}return mW}f+=i;break;case ZW:if(u.scheme="file","/"==i||"\\"==i)c=eY;else{if(!r||"file"!=r.scheme){c=nY;continue}if(i==OH)u.host=r.host,u.path=VH(r.path),u.query=r.query;else if("?"==i)u.host=r.host,u.path=VH(r.path),u.query="",c=oY;else{if("#"!=i){BW(aW(VH(n,l),""))||(u.host=r.host,u.path=VH(r.path),u.shortenPath()),c=nY;continue}u.host=r.host,u.path=VH(r.path),u.query=r.query,u.fragment="",c=aY}}break;case eY:if("/"==i||"\\"==i){c=tY;break}r&&"file"==r.scheme&&!BW(aW(VH(n,l),""))&&(MW(r.path[0],!0)?cW(u.path,r.path[0]):u.host=r.host),c=nY;continue;case tY:if(i==OH||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&MW(f))c=nY;else if(""==f){if(u.host="",t)return;c=rY}else{if(a=u.parseHost(f))return a;if("localhost"==u.host&&(u.host=""),t)return;f="",c=rY}continue}f+=i;break;case rY:if(u.isSpecial()){if(c=nY,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=OH&&(c=nY,"/"!=i))continue}else u.fragment="",c=aY;else u.query="",c=oY;break;case nY:if(i==OH||"/"==i||"\\"==i&&u.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(s=dW(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"==i||"\\"==i&&u.isSpecial()||cW(u.path,"")):FW(f)?"/"==i||"\\"==i&&u.isSpecial()||cW(u.path,""):("file"==u.scheme&&!u.path.length&&MW(f)&&(u.host&&(u.host=""),f=iW(f,0)+":"),cW(u.path,f)),f="","file"==u.scheme&&(i==OH||"?"==i||"#"==i))for(;u.path.length>1&&""===u.path[0];)fW(u.path);"?"==i?(u.query="",c=oY):"#"==i&&(u.fragment="",c=aY)}else f+=IW(i,DW);break;case iY:"?"==i?(u.query="",c=oY):"#"==i?(u.fragment="",c=aY):i!=OH&&(u.path[0]+=IW(i,CW));break;case oY:t||"#"!=i?i!=OH&&("'"==i&&u.isSpecial()?u.query+="%27":u.query+="#"==i?"%23":IW(i,CW)):(u.fragment="",c=aY);break;case aY:i!=OH&&(u.fragment+=IW(i,RW))}l++}},parseHost:function(e){var t,r,n;if("["==iW(e,0)){if("]"!=iW(e,e.length-1))return gW;if(t=function(e){var t,r,n,i,o,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,h=function(){return iW(e,f)};if(":"==h()){if(":"!=iW(e,1))return;f+=2,l=++c}for(;h();){if(8==c)return;if(":"!=h()){for(t=r=0;r<4&&oW(TW,h());)t=16*t+tW(h(),16),f++,r++;if("."==h()){if(0==r)return;if(f-=r,c>6)return;for(n=0;h();){if(i=null,n>0){if(!("."==h()&&n<4))return;f++}if(!oW(wW,h()))return;for(;oW(wW,h());){if(o=tW(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}u[c]=256*u[c]+i,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;u[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!=c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!=c)return;return u}(pW(e,1,-1)),!t)return gW;this.host=t}else if(this.isSpecial()){if(e=GH(e),oW(AW,e))return gW;if(t=function(e){var t,r,n,i,o,a,s,u=hW(e,".");if(u.length&&""==u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=u[n]))return e;if(o=10,i.length>1&&"0"==iW(i,0)&&(o=oW(xW,i)?16:8,i=pW(i,8==o?1:2)),""===i)a=0;else{if(!oW(10==o?SW:8==o?kW:TW,i))return e;a=tW(i,o)}cW(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=nW(256,5-t))return null}else if(a>255)return null;for(s=uW(r),n=0;n<r.length;n++)s+=r[n]*nW(256,3-n);return s}(e),null===t)return gW;this.host=t}else{if(oW(EW,e))return gW;for(t="",r=NH(e),n=0;n<r.length;n++)t+=IW(r[n],CW);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return BH(jW,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&MW(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,s=e.query,u=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=PW(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+aW(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw eW(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new uY(e.path[0]).origin}catch(Cre){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+PW(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(qH(e)+":",NW)},getUsername:function(){return this.username},setUsername:function(e){var t=NH(qH(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=IW(t[r],UW)}},getPassword:function(){return this.password},setPassword:function(e){var t=NH(qH(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=IW(t[r],UW)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?PW(e):PW(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,QW)},getHostname:function(){var e=this.host;return null===e?"":PW(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,XW)},getPort:function(){var e=this.port;return null===e?"":qH(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=qH(e))?this.port=null:this.parse(e,JW))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+aW(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,rY))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=qH(e))?this.query=null:("?"==iW(e,0)&&(e=pW(e,1)),this.query="",this.parse(e,oY)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=qH(e))?("#"==iW(e,0)&&(e=pW(e,1)),this.fragment="",this.parse(e,aY)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var uY=function(e){var t=MH(this,cY),r=WH(arguments.length,1)>1?arguments[1]:void 0,n=KH(t,new sY(e,!1,r));PH||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},cY=uY.prototype,lY=function(e,t){return{get:function(){return QH(this)[e]()},set:t&&function(e){return QH(this)[t](e)},configurable:!0,enumerable:!0}};if(PH&&(jH(cY,"href",lY("serialize","setHref")),jH(cY,"origin",lY("getOrigin")),jH(cY,"protocol",lY("getProtocol","setProtocol")),jH(cY,"username",lY("getUsername","setUsername")),jH(cY,"password",lY("getPassword","setPassword")),jH(cY,"host",lY("getHost","setHost")),jH(cY,"hostname",lY("getHostname","setHostname")),jH(cY,"port",lY("getPort","setPort")),jH(cY,"pathname",lY("getPathname","setPathname")),jH(cY,"search",lY("getSearch","setSearch")),jH(cY,"searchParams",lY("getSearchParams")),jH(cY,"hash",lY("getHash","setHash"))),IH(cY,"toJSON",(function(){return QH(this).serialize()}),{enumerable:!0}),IH(cY,"toString",(function(){return QH(this).serialize()}),{enumerable:!0}),ZH){var fY=ZH.createObjectURL,hY=ZH.revokeObjectURL;fY&&IH(uY,"createObjectURL",DH(fY,ZH)),hY&&IH(uY,"revokeObjectURL",DH(hY,ZH))}HH(uY,"URL"),LH({global:!0,constructor:!0,forced:!CH,sham:!PH},{URL:uY});var pY=vM,dY=Vm,vY=Yb,yY=yx,gY=zk,mY=Rm([].push),bY=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(u,c,l,f){for(var h,p,d=vY(u),v=dY(d),y=pY(c,l),g=yY(v),m=0,b=f||gY,_=t?b(u,g):r||a?b(u,0):void 0;g>m;m++)if((s||m in v)&&(p=y(h=v[m],m,d),e))if(t)_[m]=p;else if(p)switch(e){case 3:return!0;case 5:return h;case 6:return m;case 2:mY(_,h)}else switch(e){case 4:return!1;case 7:mY(_,h)}return o?-1:n||i?i:_}},_Y={forEach:bY(0),map:bY(1),filter:bY(2),some:bY(3),every:bY(4),find:bY(5),findIndex:bY(6),filterReject:bY(7)},wY=vm,xY=function(e,t){var r=[][e];return!!r&&wY((function(){r.call(null,t||function(){return 1},1)}))},kY=_Y.forEach,SY=xY("forEach")?[].forEach:function(e){return kY(this,e,arguments.length>1?arguments[1]:void 0)},TY=pm,AY=nG,EY=aG,OY=SY,LY=nw,PY=function(e){if(e&&e.forEach!==OY)try{LY(e,"forEach",OY)}catch(Cre){e.forEach=OY}};for(var CY in AY)AY[CY]&&PY(TY[CY]&&TY[CY].prototype);PY(EY);var RY=Yb,DY=uj;ik({target:"Object",stat:!0,forced:vm((function(){DY(1)}))},{keys:function(e){return DY(RY(e))}});var UY=ik,IY=ak,jY=Ik,MY=tb,BY=fx,FY=yx,NY=$m,VY=hk,zY=f_,GY=gM,qY=Wk("slice"),HY=zY("species"),WY=Array,YY=Math.max;UY({target:"Array",proto:!0,forced:!qY},{slice:function(e,t){var r,n,i,o=NY(this),a=FY(o),s=BY(e,a),u=BY(void 0===t?a:t,a);if(IY(o)&&(r=o.constructor,(jY(r)&&(r===WY||IY(r.prototype))||MY(r)&&null===(r=r[HY]))&&(r=void 0),r===WY||void 0===r))return GY(o,s,u);for(n=new(void 0===r?WY:r)(YY(u-s,0)),i=0;s<u;s++,i++)s in o&&VY(n,i,o[s]);return n.length=i,n}});var $Y=ym,KY=ak,QY=TypeError,XY=Object.getOwnPropertyDescriptor,JY=$Y&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(Cre){return Cre instanceof TypeError}}(),ZY=Sb,e$=TypeError,t$=function(e,t){if(!delete e[t])throw e$("Cannot delete property "+ZY(t)+" of "+ZY(e))},r$=ik,n$=Yb,i$=fx,o$=sx,a$=yx,s$=JY?function(e,t){if(KY(e)&&!XY(e,"length").writable)throw QY("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},u$=uk,c$=zk,l$=hk,f$=t$,h$=Wk("splice"),p$=Math.max,d$=Math.min;r$({target:"Array",proto:!0,forced:!h$},{splice:function(e,t){var r,n,i,o,a,s,u=n$(this),c=a$(u),l=i$(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=d$(p$(o$(t),0),c-l)),u$(c+r-n),i=c$(u,n),o=0;o<n;o++)(a=l+o)in u&&l$(i,o,u[a]);if(i.length=n,r<n){for(o=l;o<c-n;o++)s=o+r,(a=o+n)in u?u[s]=u[a]:f$(u,s);for(o=c;o>c-n+r;o--)f$(u,o-1)}else if(r>n)for(o=c-n;o>l;o--)s=o+r-1,(a=o+n-1)in u?u[s]=u[a]:f$(u,s);for(o=0;o<r;o++)u[o+l]=arguments[o+2];return s$(u,c-n+r),i}});var v$,y$,g$=G_,m$=function(){var e=g$(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},b$=vm,_$=pm.RegExp,w$=b$((function(){var e=_$("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),x$=w$||b$((function(){return!_$("a","y").sticky})),k$=w$||b$((function(){var e=_$("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),S$={BROKEN_CARET:k$,MISSED_STICKY:x$,UNSUPPORTED_Y:w$},T$=vm,A$=pm.RegExp,E$=T$((function(){var e=A$(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),O$=vm,L$=pm.RegExp,P$=O$((function(){var e=L$("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),C$=_m,R$=Rm,D$=Fz,U$=m$,I$=S$,j$=kV,M$=Bw.get,B$=E$,F$=P$,N$=qb("native-string-replace",String.prototype.replace),V$=RegExp.prototype.exec,z$=V$,G$=R$("".charAt),q$=R$("".indexOf),H$=R$("".replace),W$=R$("".slice),Y$=(y$=/b*/g,C$(V$,v$=/a/,"a"),C$(V$,y$,"a"),0!==v$.lastIndex||0!==y$.lastIndex),$$=I$.BROKEN_CARET,K$=void 0!==/()??/.exec("")[1];(Y$||K$||$$||B$||F$)&&(z$=function(e){var t,r,n,i,o,a,s,u=this,c=M$(u),l=D$(e),f=c.raw;if(f)return f.lastIndex=u.lastIndex,t=C$(z$,f,l),u.lastIndex=f.lastIndex,t;var h=c.groups,p=$$&&u.sticky,d=C$(U$,u),v=u.source,y=0,g=l;if(p&&(d=H$(d,"y",""),-1===q$(d,"g")&&(d+="g"),g=W$(l,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==G$(l,u.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,y++),r=new RegExp("^(?:"+v+")",d)),K$&&(r=new RegExp("^"+v+"$(?!\\s)",d)),Y$&&(n=u.lastIndex),i=C$(V$,p?r:u,g),p?i?(i.input=W$(i.input,y),i[0]=W$(i[0],y),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:Y$&&i&&(u.lastIndex=u.global?i.index+i[0].length:n),K$&&i&&i.length>1&&C$(N$,i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&h)for(i.groups=a=j$(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var Q$=z$;function X$(){var e,t,r=new Gy((function(r,n){e=r,t=n}));return r.used=!1,r.resolve=function(){return r.used=!0,e.apply(void 0,arguments)},r.reject=function(){return r.used=!0,t.apply(void 0,arguments)},r}function J$(){try{return wT(performance.now(),10)}catch(e){return(new Date).getTime()}}ik({target:"RegExp",proto:!0,forced:/./.exec!==Q$},{exec:Q$});var Z$=Pe,eK=$e,tK=q,rK=Br,nK=TypeError,iK=function(e){return function(t,r,n,i){Z$(r);var o=eK(t),a=tK(o),s=rK(o),u=e?s-1:0,c=e?-1:1;if(n<2)for(;;){if(u in a){i=a[u],u+=c;break}if(u+=c,e?u<0:s<=u)throw nK("Reduce of empty array with no initial value")}for(;e?u>=0:s>u;u+=c)u in a&&(i=r(i,a[u],u,o));return i}},oK={left:iK(!1),right:iK(!0)}.left;Er({target:"Array",proto:!0,forced:!ap&&de>79&&de<83||!Kl("reduce")},{reduce:function(e){var t=arguments.length;return oK(this,e,t,t>1?arguments[1]:void 0)}});var aK,sK=Hn("Array").reduce,uK=c,cK=sK,lK=Array.prototype,fK=t((function(e){var t=e.reduce;return e===lK||uK(lK,e)&&t===lK.reduce?cK:t})),hK=function(){function e(){GI(this,e)}return HI(e,null,[{key:"start",value:function(e){return e&&e.length?1===e.length&&e.end(0)-e.start(0)<1e-6||1===e.length&&e.start(0)<0?0:e.start(0):0}},{key:"end",value:function(e){return e&&e.length?1===e.length&&e.end(0)-e.start(0)<1e-6?0:e.end(e.length-1):0}},{key:"get",value:function(e){if(e)try{return e.buffered}catch(Cre){}}},{key:"buffers",value:function(e,t){if(!e||!e.length)return[];for(var r=[],n=0,i=e.length;n<i;n++){var o=r.length;if(o&&t){var a=r[o-1],s=a[1];if(e.start(n)-s<=t){var u=e.end(n);u>s&&(a[1]=u)}else r.push([e.start(n),e.end(n)])}else r.push([e.start(n),e.end(n)])}return r}},{key:"totalLength",value:function(e){return e&&e.length?fK(e).call(e,(function(e,t){return e+(t[1]-t[0])}),0):0}},{key:"info",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!t||!t.length)return{start:0,end:0,buffers:[]};for(var i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=e.buffers(t,n),h=0,p=f.length;h<p;h++){var d=f[h];if(r+n>=d[0]&&r<d[1])i=d[0],o=d[1],a=h;else{if(r+n<d[0]){s=d[0],u=d[1];break}r+n>d[1]&&(c=d[0],l=d[1])}}return{start:i,end:o,index:a,buffers:f,nextStart:s,nextEnd:u,prevStart:c,prevEnd:l,currentTime:r,behind:r-i,remaining:o?o-r:0,length:e.totalLength&&e.totalLength(f)}}}]),e}(),pK="network",dK="network_timeout",vK="demux",yK="remux",gK="media",mK="other",bK={FLV:"FLV",HLS:"HLS",MP4:"MP4",FMP4:"FMP4",MSE_ADD_SB:"MSE_ADD_SB",MSE_APPEND_BUFFER:"MSE_APPEND_BUFFER",MSE_OTHER:"MSE_OTHER",MSE_FULL:"MSE_FULL",OPTION:"OPTION"},_K=(WI(aK={},"manifest",{HLS:1100}),WI(aK,pK,2100),WI(aK,dK,2101),WI(aK,vK,{FLV:3100,HLS:3200,MP4:3300,FMP4:3400}),WI(aK,yK,{FMP4:4100,MP4:4200}),WI(aK,gK,{MSE_ADD_SB:5200,MSE_APPEND_BUFFER:5201,MSE_OTHER:5202,MSE_FULL:5203}),WI(aK,mK,8e3),aK),wK=function(e){YI(r,e);var t=tj(r);function r(e,n,i,o,a){var s;return GI(this,r),(s=t.call(this,a||(null==i?void 0:i.message))).errorType=e===dK?pK:e,s.originError=i,s.ext=o,s.errorCode=_K[e][n]||_K[e],s.errorMessage=s.message,s.errorCode||(s.errorType=mK,s.errorCode=_K[s.errorType]),s}return HI(r,null,[{key:"create",value:function(e,t,n,i,o){return e instanceof r?e:(e instanceof Error&&(n=e,e=""),e||(e=mK),new r(e,t,n,i,o))}},{key:"network",value:function(e){var t;return new r(null!=e&&e.isTimeout?dK:pK,null,e instanceof Error?e:null,{url:null==e?void 0:e.url,response:null==e?void 0:e.response,httpCode:null==e||null===(t=e.response)||void 0===t?void 0:t.status})}}]),r}(JI(Error)),xK="undefined"!=typeof window,kK=ym,SK=lw.EXISTS,TK=Rm,AK=B_.f,EK=Function.prototype,OK=TK(EK.toString),LK=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,PK=TK(LK.exec);kK&&!SK&&AK(EK,"name",{configurable:!0,get:function(){try{return PK(LK,OK(this))[1]}catch(Cre){return""}}});var CK=_Y.map;ik({target:"Array",proto:!0,forced:!Wk("map")},{map:function(e){return CK(this,e,arguments.length>1?arguments[1]:void 0)}});var RK=ik,DK=ib,UK=uM,IK=_m,jK=Rm,MK=vm,BK=ak,FK=Jm,NK=tb,VK=xb,zK=gM,GK=yb,qK=DK("JSON","stringify"),HK=jK(/./.exec),WK=jK("".charAt),YK=jK("".charCodeAt),$K=jK("".replace),KK=jK(1..toString),QK=/[\uD800-\uDFFF]/g,XK=/^[\uD800-\uDBFF]$/,JK=/^[\uDC00-\uDFFF]$/,ZK=!GK||MK((function(){var e=DK("Symbol")();return"[null]"!=qK([e])||"{}"!=qK({a:e})||"{}"!=qK(Object(e))})),eQ=MK((function(){return'"\\udf06\\ud834"'!==qK("\udf06\ud834")||'"\\udead"'!==qK("\udead")})),tQ=function(e,t){var r=zK(arguments),n=t;if((NK(t)||void 0!==e)&&!VK(e))return BK(t)||(t=function(e,t){if(FK(n)&&(t=IK(n,this,e,t)),!VK(t))return t}),r[1]=t,UK(qK,null,r)},rQ=function(e,t,r){var n=WK(r,t-1),i=WK(r,t+1);return HK(XK,e)&&!HK(JK,i)||HK(JK,e)&&!HK(XK,n)?"\\u"+KK(YK(e,0),16):e};qK&&RK({target:"JSON",stat:!0,arity:3,forced:ZK||eQ},{stringify:function(e,t,r){var n=zK(arguments),i=UK(ZK?tQ:qK,null,n);return eQ&&"string"==typeof i?$K(i,QK,rQ):i}});var nQ=ik,iQ=Vm,oQ=$m,aQ=xY,sQ=Rm([].join),uQ=iQ!=Object,cQ=aQ("join",",");nQ({target:"Array",proto:!0,forced:uQ||!cQ},{join:function(e){return sQ(oQ(this),void 0===e?",":e)}});var lQ=wx.includes,fQ=RV;ik({target:"Array",proto:!0,forced:vm((function(){return!Array(1).includes()}))},{includes:function(e){return lQ(this,e,arguments.length>1?arguments[1]:void 0)}}),fQ("includes");var hQ=1,pQ=2,dQ=3,vQ=4,yQ=["Boolean","Number","String","Undefined","Null","Date","Object"],gQ=function(){function e(t,r){GI(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]"),e.disabled=(null==r?void 0:r.disabled)||!0,this.logCacheLevel=(null==r?void 0:r.logCacheLevel)||3,this.logMaxSize=(null==r?void 0:r.logMaxSize)||204800,this.logSize=0,this.logTextArray=[]}return HI(e,[{key:"debug",value:function(){for(var t,r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];this.logCache.apply(this,Qn(t=[hQ]).call(t,o)),e.disabled||(n=console).debug.apply(n,Qn(r=[this._prefix,mQ()]).call(r,o))}},{key:"log",value:function(){for(var t,r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];this.logCache.apply(this,Qn(t=[pQ]).call(t,o)),e.disabled||(n=console).log.apply(n,Qn(r=[this._prefix,mQ()]).call(r,o))}},{key:"warn",value:function(){for(var t,r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];this.logCache.apply(this,Qn(t=[dQ]).call(t,o)),e.disabled||(n=console).warn.apply(n,Qn(r=[this._prefix,mQ()]).call(r,o))}},{key:"error",value:function(){for(var t,r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];this.logCache.apply(this,Qn(t=[vQ]).call(t,o)),e.disabled||(n=console).error.apply(n,Qn(r=[this._prefix,mQ()]).call(r,o))}},{key:"logCache",value:function(e){if(!(e<this.logCacheLevel)){var t="";try{for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=ET(n).call(n,(function(e){return _Q(e)}));t=this._prefix+mQ()+PR(o)}catch(s){return}if(e>=this.logCacheLevel&&(this.logSize+=t.length,this.logTextArray.push(t)),this.logSize>this.logMaxSize){var a=this.logTextArray.shift();this.logSize-=a.length}}}},{key:"getLogCache",value:function(){var e=this.logTextArray.join("\n");return this.reset(),e}},{key:"reset",value:function(){this.logTextArray=[],this.logSize=0}},{key:"table",value:function(){var t;e.disabled||(console.group(this._prefix),(t=console).table.apply(t,arguments),console.groupEnd())}},{key:"setLogLevel",value:function(e){this.logCacheLevel=e}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();function mQ(){return(new Date).toLocaleString()}function bQ(e){var t;if("object"!==NI(e))return e;var r=gg(t=Object.prototype.toString.call(e)).call(t,8,-1);switch(r){case"Array":case"Uint8Array":case"ArrayBuffer":return r+"["+e.length+"]";case"Object":return"{}";default:return r}}function _Q(e,t,r){var n;r||(r=1),t||(t=2);var i={};if(!e||"object"!==NI(e))return e;var o=gg(n=Object.prototype.toString.call(e)).call(n,8,-1);if(!XR(yQ).call(yQ,o))return o;if(!(r>t)){for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r===t?i[a]=bQ(e[a]):"object"===NI(e[a])?i[a]=_Q(e[a],t,r+1):i[a]=e[a]);return i}}WI(gQ,"disabled",!0);var wQ=function(){try{return xK?window.MediaSource:null}catch(e){}}(),xQ="appendBuffer",kQ="removeBuffer",SQ=function(){function e(t,r){var n=this;GI(this,e),WI(this,"media",null),WI(this,"mediaSource",null),WI(this,"_openPromise",X$()),WI(this,"_queue",Uf(null)),WI(this,"_sourceBuffer",Uf(null)),WI(this,"_mseFullFlag",{}),WI(this,"_st",0),WI(this,"_opst",0),WI(this,"_logger",null),WI(this,"_config",null),WI(this,"_url",null),WI(this,"_onSBUpdateEnd",(function(e){var t=n._queue[e];if(t){var r=t.shift();if(r){var i=J$()-n._opst;n._logger.debug("UpdateEnd",r.opName,i,r.context),r.promise.resolve({name:r.opName,context:r.context,costtime:i}),n._startQueue(e)}}})),WI(this,"_onSBUpdateError",(function(e,t){var r=n._queue[e];if(r){var i=r[0];i&&(n._logger.error("UpdateError",e,i.opName,i.context),i.promise.reject(new wK(gK,bK.MSE_APPEND_BUFFER,t)))}})),this._config=TA(e.getDefaultConfig(),r),t&&this.bindMedia(t),this._logger=new gQ("MSE"),this._config.openLog&&gQ.enable()}var t,r,n;return HI(e,[{key:"isOpened",get:function(){var e;return"open"===(null===(e=this.mediaSource)||void 0===e?void 0:e.readyState)}},{key:"url",get:function(){return this._url}},{key:"duration",get:function(){var e;return(null===(e=this.mediaSource)||void 0===e?void 0:e.duration)||-1}},{key:"isEnded",get:function(){return!!this.mediaSource&&"ended"===this.mediaSource.readyState}},{key:"isFull",value:function(t){return t?this._mseFullFlag[t]:this._mseFullFlag[e.VIDEO]}},{key:"updateDuration",value:function(e){var t=this;return this.mediaSource&&this.mediaSource.duration>e?Gy.resolve():this._enqueueBlockingOp((function(){t.isEnded?t._logger.debug("[debug mse] setDuration ended"):t.mediaSource&&(t.mediaSource.duration=e,t._logger.debug("[debug mse] setDuration"))}),"updateDuration")}},{key:"open",value:function(){var e=this;if(this._openPromise.used&&!this.isOpened&&this.mediaSource){var t=this.mediaSource;t.addEventListener("sourceopen",(function r(){var n=J$()-e._st;e._logger.debug("MSE OPEN",n),t.removeEventListener("sourceopen",r),e._openPromise.resolve({costtime:n})})),this._openPromise=X$()}return this._openPromise}},{key:"bindMedia",value:(n=zI(FI().mark((function e(t){var r,n,i=this;return FI().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.mediaSource&&!this.media){e.next=3;break}return e.next=3,this.unbindMedia();case 3:if(t&&wQ){e.next=5;break}throw new Error("Param media or MediaSource does not exist");case 5:return this.media=t,r=this.mediaSource=new wQ,this._st=J$(),n=function e(){var n=J$()-i._st;i._logger.debug("MSE OPEN"),r.removeEventListener("sourceopen",e),AR.revokeObjectURL(t.src),i._openPromise.resolve({costtime:n})},r.addEventListener("sourceopen",n),this._url=AR.createObjectURL(r),t.src=this._url,e.abrupt("return",this._openPromise);case 13:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"unbindMedia",value:(r=zI(FI().mark((function e(){var t,r,n,i=this;return FI().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._openPromise.used||this._openPromise.resolve(),t=this.mediaSource){var o,a;if(af(o=Cl(this._queue)).call(o,(function(e){var t=i._queue[e];t&&af(t).call(t,(function(e){return e.promise.resolve}))})),r=!!this.media&&this.media.readyState>=1,n="open"===t.readyState,r&&n)try{t.endOfStream()}catch(Cre){}af(a=Cl(this._sourceBuffer)).call(a,(function(e){try{t.removeSourceBuffer(i._sourceBuffer[e])}catch(Cre){}}))}if(this.media){this.media.removeAttribute("src");try{this.media.load()}catch(Cre){}this.media=null}this.mediaSource=null,this._openPromise=X$(),this._queue=Uf(null),this._sourceBuffer=Uf(null);case 8:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"createSource",value:function(e,t){var r,n;if(!this._sourceBuffer[e]&&this.mediaSource){var i;try{i=this._sourceBuffer[e]=this.mediaSource.addSourceBuffer(t)}catch(Cre){throw new wK(gK,bK.MSE_ADD_SB,Cre)}i.mimeType=t,i.addEventListener("updateend",Ug(r=this._onSBUpdateEnd).call(r,this,e)),i.addEventListener("error",Ug(n=this._onSBUpdateError).call(n,this,e))}}},{key:"changeType",value:function(e,t){var r=this,n=this._sourceBuffer[e];return this.mediaSource&&n&&n.mimeType!==t&&"function"==typeof n.changeType?this._enqueueOp(e,(function(){n.changeType(t),n.mimeType=t,r._onSBUpdateEnd(e)})):Gy.resolve()}},{key:"createOrChangeSource",value:function(e,t){return this.createSource(e,t),this.changeType(e,t)}},{key:"append",value:function(e,t,r){var n=this;return t&&t.byteLength&&this._sourceBuffer[e]?this._enqueueOp(e,(function(){var i;n.mediaSource&&(n._logger.debug("MSE APPEND START",r),n._opst=J$(),null===(i=n._sourceBuffer[e])||void 0===i||i.appendBuffer(t))}),xQ,r):Gy.resolve()}},{key:"remove",value:function(e,t,r,n){var i=this,o=!1;return this._mseFullFlag[e]&&(o=!0),this._enqueueOp(e,(function(){if(i.mediaSource){var o=i._sourceBuffer[e];t>=r||!o?i._onSBUpdateEnd(e):(i._opst=J$(),i._logger.debug("MSE REMOVE START",e,t,r,n),o.remove(t,r))}}),kQ,n,o)}},{key:"clearBuffer",value:function(e,t){var r,n,i=this;return af(r=Cl(this._sourceBuffer)).call(r,(function(r){n=i._enqueueOp(r,(function(){if(i.mediaSource){var n=i._sourceBuffer[r];i._logger.debug("MSE clearBuffer START",r,e,t),n.remove(e,t)}}))})),n}},{key:"clearAllBuffer",value:function(){var e,t,r=this;return af(e=Cl(this._sourceBuffer)).call(e,(function(e){t=r._enqueueOp(e,(function(){if(r.mediaSource){var t=r._sourceBuffer[e];r._logger.debug("MSE clearAllBuffer START",e),t.remove(0,hK.end(hK.get(t)))}}))})),t}},{key:"clearOpQueues",value:function(e){var t;this._logger.debug("MSE clearOpQueue START");var r=this._queue[e];if(r&&r[e]&&!(r.length<5)){var n=[];af(r).call(r,(function(e){e.context&&e.context.isinit&&n.push(e)})),this._queue[e]=gg(r).call(r,0,2),n.length>0&&(t=this._queue[e]).push.apply(t,n)}}},{key:"endOfStream",value:function(e){var t=this;return this.mediaSource&&"open"===this.mediaSource.readyState?this._enqueueBlockingOp((function(){var r=t.mediaSource;r&&"open"===r.readyState&&(t._logger.debug("MSE endOfStream START"),e?r.endOfStream(e):r.endOfStream())}),"endOfStream"):Gy.resolve()}},{key:"setLiveSeekableRange",value:function(e,t){var r=this.mediaSource;e<0||t<e||null==r||!r.setLiveSeekableRange||"open"!==r.readyState||r.setLiveSeekableRange(e,t)}},{key:"getSourceBuffer",value:function(e){return this._sourceBuffer[e]}},{key:"buffered",value:function(e){return hK.get(this._sourceBuffer[e])}},{key:"bufferStart",value:function(e){return hK.start(this.buffered(e))}},{key:"bufferEnd",value:function(e){return hK.end(this.buffered(e))}},{key:"_enqueueOp",value:function(e,t,r,n,i){var o=this;if(!this.mediaSource)return Gy.resolve();var a=this._queue[e]=this._queue[e]||[],s={exec:t,promise:X$(),opName:r,context:n};return i?(JS(a).call(a,0,0,s),this._mseFullFlag[e]=!1,this._startQueue(e)):a.push(s),this.isOpened?1===a.length&&this._startQueue(e):this._openPromise.then((function(){1===a.length&&o._startQueue(e)})),s.promise}},{key:"_enqueueBlockingOp",value:(t=zI(FI().mark((function e(t,r){var n,i,o=this;return FI().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.mediaSource){e.next=2;break}return e.abrupt("return",Gy.resolve());case 2:if((n=Cl(this._sourceBuffer)).length){e.next=5;break}return e.abrupt("return",t());case 5:return i=[],af(n).call(n,(function(e){var t=o._queue[e],n=X$();i.push(n),t.push({exec:function(){return n.resolve()},promise:n,opName:r}),1===t.length&&o._startQueue(e)})),e.abrupt("return",Gy.all(i).then((function(){try{return t()}finally{af(n).call(n,(function(e){var t=o._queue[e],r=o._sourceBuffer[e];null==t||t.shift(),r&&r.updating||o._startQueue(e)}))}})));case 8:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})},{key:"_startQueue",value:function(e){var t=this._queue[e];if(t){var r=t[0];if(r&&!this._mseFullFlag[e])try{r.exec()}catch(Cre){var n;Cre&&Cre.message&&gS(n=Cre.message).call(n,"SourceBuffer is full")>=0?(this._mseFullFlag[e]=!0,this._logger.error("[MSE error], context,",r.context," ,name,",r.opName,",err,SourceBuffer is full"),r.promise.reject(new wK(gK,bK.MSE_FULL,Cre))):(this._logger.error(Cre),r.promise.reject(new wK(gK,bK.MSE_OTHER,Cre)),t.shift(),this._startQueue(e))}}}},{key:"setTimeoffset",value:function(e,t,r){var n=this;return this._enqueueOp(e,(function(){t<0&&(t+=.001),n._sourceBuffer[e].timestampOffset=t,n._onSBUpdateEnd(e)}),"setTimeoffset",r)}},{key:"abort",value:function(e,t){var r=this;return this.isOpened?this._enqueueOp(e,(function(){r._sourceBuffer[e].abort(),r._onSBUpdateEnd(e)}),"abort",t):Gy.resolve()}}],[{key:"getDefaultConfig",value:function(){return{openLog:!1}}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'video/mp4; codecs="avc1.42E01E,mp4a.40.2"';if(!wQ)return!1;try{return wQ.isTypeSupported(e)}catch(Cre){return this._logger.error(e,Cre),!1}}}]),e}();WI(SQ,"VIDEO","video"),WI(SQ,"AUDIO","audio");var TQ=ik,AQ=SB,EQ=vm,OQ=ib,LQ=Jm,PQ=nM,CQ=JN,RQ=rx,DQ=AQ&&AQ.prototype;if(TQ({target:"Promise",proto:!0,real:!0,forced:!!AQ&&EQ((function(){DQ.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=PQ(this,OQ("Promise")),r=LQ(e);return this.then(r?function(r){return CQ(t,e()).then((function(){return r}))}:e,r?function(r){return CQ(t,e()).then((function(){throw r}))}:e)}}),LQ(AQ)){var UQ=OQ("Promise").prototype.finally;DQ.finally!==UQ&&RQ(DQ,"finally",UQ,{unsafe:!0})}var IQ=_Y.filter;ik({target:"Array",proto:!0,forced:!Wk("filter")},{filter:function(e){return IQ(this,e,arguments.length>1?arguments[1]:void 0)}});var jQ,MQ,BQ,FQ={exports:{}},NQ="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,VQ=NQ,zQ=ym,GQ=pm,qQ=Jm,HQ=tb,WQ=Qb,YQ=wk,$Q=Sb,KQ=nw,QQ=rx,XQ=B_.f,JQ=ob,ZQ=VV,eX=jj,tX=f_,rX=t_,nX=Bw.enforce,iX=Bw.get,oX=GQ.Int8Array,aX=oX&&oX.prototype,sX=GQ.Uint8ClampedArray,uX=sX&&sX.prototype,cX=oX&&ZQ(oX),lX=aX&&ZQ(aX),fX=Object.prototype,hX=GQ.TypeError,pX=tX("toStringTag"),dX=rX("TYPED_ARRAY_TAG"),vX="TypedArrayConstructor",yX=VQ&&!!eX&&"Opera"!==YQ(GQ.opera),gX=!1,mX={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},bX={BigInt64Array:8,BigUint64Array:8},_X=function(e){var t=ZQ(e);if(HQ(t)){var r=iX(t);return r&&WQ(r,vX)?r[vX]:_X(t)}},wX=function(e){if(!HQ(e))return!1;var t=YQ(e);return WQ(mX,t)||WQ(bX,t)};for(jQ in mX)(BQ=(MQ=GQ[jQ])&&MQ.prototype)?nX(BQ)[vX]=MQ:yX=!1;for(jQ in bX)(BQ=(MQ=GQ[jQ])&&MQ.prototype)&&(nX(BQ)[vX]=MQ);if((!yX||!qQ(cX)||cX===Function.prototype)&&(cX=function(){throw hX("Incorrect invocation")},yX))for(jQ in mX)GQ[jQ]&&eX(GQ[jQ],cX);if((!yX||!lX||lX===fX)&&(lX=cX.prototype,yX))for(jQ in mX)GQ[jQ]&&eX(GQ[jQ].prototype,lX);if(yX&&ZQ(uX)!==lX&&eX(uX,lX),zQ&&!WQ(lX,pX))for(jQ in gX=!0,XQ(lX,pX,{get:function(){return HQ(this)?this[dX]:void 0}}),mX)GQ[jQ]&&KQ(GQ[jQ],dX,jQ);var xX={NATIVE_ARRAY_BUFFER_VIEWS:yX,TYPED_ARRAY_TAG:gX&&dX,aTypedArray:function(e){if(wX(e))return e;throw hX("Target is not a typed array")},aTypedArrayConstructor:function(e){if(qQ(e)&&(!eX||JQ(cX,e)))return e;throw hX($Q(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(zQ){if(r)for(var i in mX){var o=GQ[i];if(o&&WQ(o.prototype,e))try{delete o.prototype[e]}catch(Cre){try{o.prototype[e]=t}catch(a){}}}lX[e]&&!r||QQ(lX,e,r?t:yX&&aX[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,i;if(zQ){if(eX){if(r)for(n in mX)if((i=GQ[n])&&WQ(i,e))try{delete i[e]}catch(Cre){}if(cX[e]&&!r)return;try{return QQ(cX,e,r?t:yX&&cX[e]||t)}catch(Cre){}}for(n in mX)!(i=GQ[n])||i[e]&&!r||QQ(i,e,t)}},getTypedArrayConstructor:_X,isView:function(e){if(!HQ(e))return!1;var t=YQ(e);return"DataView"===t||WQ(mX,t)||WQ(bX,t)},isTypedArray:wX,TypedArray:cX,TypedArrayPrototype:lX},kX=pm,SX=vm,TX=AN,AX=xX.NATIVE_ARRAY_BUFFER_VIEWS,EX=kX.ArrayBuffer,OX=kX.Int8Array,LX=!AX||!SX((function(){OX(1)}))||!SX((function(){new OX(-1)}))||!TX((function(e){new OX,new OX(null),new OX(1.5),new OX(e)}),!0)||SX((function(){return 1!==new OX(new EX(2),1,void 0).length})),PX=sx,CX=dx,RX=RangeError,DX=function(e){if(void 0===e)return 0;var t=PX(e),r=CX(t);if(t!==r)throw RX("Wrong length or index");return r},UX=Array,IX=Math.abs,jX=Math.pow,MX=Math.floor,BX=Math.log,FX=Math.LN2,NX=Yb,VX=fx,zX=yx,GX=function(e){for(var t=NX(this),r=zX(t),n=arguments.length,i=VX(n>1?arguments[1]:void 0,r),o=n>2?arguments[2]:void 0,a=void 0===o?r:VX(o,r);a>i;)t[i++]=e;return t},qX=pm,HX=Rm,WX=ym,YX=NQ,$X=lw,KX=nw,QX=uq,XX=vm,JX=$j,ZX=sx,eJ=dx,tJ=DX,rJ={pack:function(e,t,r){var n,i,o,a=UX(r),s=8*r-t-1,u=(1<<s)-1,c=u>>1,l=23===t?jX(2,-24)-jX(2,-77):0,f=e<0||0===e&&1/e<0?1:0,h=0;for((e=IX(e))!=e||e===1/0?(i=e!=e?1:0,n=u):(n=MX(BX(e)/FX),e*(o=jX(2,-n))<1&&(n--,o*=2),(e+=n+c>=1?l/o:l*jX(2,1-c))*o>=2&&(n++,o/=2),n+c>=u?(i=0,n=u):n+c>=1?(i=(e*o-1)*jX(2,t),n+=c):(i=e*jX(2,c-1)*jX(2,t),n=0));t>=8;)a[h++]=255&i,i/=256,t-=8;for(n=n<<t|i,s+=t;s>0;)a[h++]=255&n,n/=256,s-=8;return a[--h]|=128*f,a},unpack:function(e,t){var r,n=e.length,i=8*n-t-1,o=(1<<i)-1,a=o>>1,s=i-7,u=n-1,c=e[u--],l=127&c;for(c>>=7;s>0;)l=256*l+e[u--],s-=8;for(r=l&(1<<-s)-1,l>>=-s,s+=t;s>0;)r=256*r+e[u--],s-=8;if(0===l)l=1-a;else{if(l===o)return r?NaN:c?-1/0:1/0;r+=jX(2,t),l-=a}return(c?-1:1)*r*jX(2,l-t)}},nJ=VV,iJ=jj,oJ=nx.f,aJ=B_.f,sJ=GX,uJ=zG,cJ=Nj,lJ=$X.PROPER,fJ=$X.CONFIGURABLE,hJ=Bw.get,pJ=Bw.set,dJ="ArrayBuffer",vJ="DataView",yJ="prototype",gJ="Wrong index",mJ=qX[dJ],bJ=mJ,_J=bJ&&bJ[yJ],wJ=qX[vJ],xJ=wJ&&wJ[yJ],kJ=Object.prototype,SJ=qX.Array,TJ=qX.RangeError,AJ=HX(sJ),EJ=HX([].reverse),OJ=rJ.pack,LJ=rJ.unpack,PJ=function(e){return[255&e]},CJ=function(e){return[255&e,e>>8&255]},RJ=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},DJ=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},UJ=function(e){return OJ(e,23,4)},IJ=function(e){return OJ(e,52,8)},jJ=function(e,t){aJ(e[yJ],t,{get:function(){return hJ(this)[t]}})},MJ=function(e,t,r,n){var i=tJ(r),o=hJ(e);if(i+t>o.byteLength)throw TJ(gJ);var a=hJ(o.buffer).bytes,s=i+o.byteOffset,u=uJ(a,s,s+t);return n?u:EJ(u)},BJ=function(e,t,r,n,i,o){var a=tJ(r),s=hJ(e);if(a+t>s.byteLength)throw TJ(gJ);for(var u=hJ(s.buffer).bytes,c=a+s.byteOffset,l=n(+i),f=0;f<t;f++)u[c+f]=l[o?f:t-f-1]};if(YX){var FJ=lJ&&mJ.name!==dJ;if(XX((function(){mJ(1)}))&&XX((function(){new mJ(-1)}))&&!XX((function(){return new mJ,new mJ(1.5),new mJ(NaN),1!=mJ.length||FJ&&!fJ})))FJ&&fJ&&KX(mJ,"name",dJ);else{(bJ=function(e){return JX(this,_J),new mJ(tJ(e))})[yJ]=_J;for(var NJ,VJ=oJ(mJ),zJ=0;VJ.length>zJ;)(NJ=VJ[zJ++])in bJ||KX(bJ,NJ,mJ[NJ]);_J.constructor=bJ}iJ&&nJ(xJ)!==kJ&&iJ(xJ,kJ);var GJ=new wJ(new bJ(2)),qJ=HX(xJ.setInt8);GJ.setInt8(0,2147483648),GJ.setInt8(1,2147483649),!GJ.getInt8(0)&&GJ.getInt8(1)||QX(xJ,{setInt8:function(e,t){qJ(this,e,t<<24>>24)},setUint8:function(e,t){qJ(this,e,t<<24>>24)}},{unsafe:!0})}else _J=(bJ=function(e){JX(this,_J);var t=tJ(e);pJ(this,{bytes:AJ(SJ(t),0),byteLength:t}),WX||(this.byteLength=t)})[yJ],xJ=(wJ=function(e,t,r){JX(this,xJ),JX(e,_J);var n=hJ(e).byteLength,i=ZX(t);if(i<0||i>n)throw TJ("Wrong offset");if(i+(r=void 0===r?n-i:eJ(r))>n)throw TJ("Wrong length");pJ(this,{buffer:e,byteLength:r,byteOffset:i}),WX||(this.buffer=e,this.byteLength=r,this.byteOffset=i)})[yJ],WX&&(jJ(bJ,"byteLength"),jJ(wJ,"buffer"),jJ(wJ,"byteLength"),jJ(wJ,"byteOffset")),QX(xJ,{getInt8:function(e){return MJ(this,1,e)[0]<<24>>24},getUint8:function(e){return MJ(this,1,e)[0]},getInt16:function(e){var t=MJ(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=MJ(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return DJ(MJ(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return DJ(MJ(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return LJ(MJ(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return LJ(MJ(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){BJ(this,1,e,PJ,t)},setUint8:function(e,t){BJ(this,1,e,PJ,t)},setInt16:function(e,t){BJ(this,2,e,CJ,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){BJ(this,2,e,CJ,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){BJ(this,4,e,RJ,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){BJ(this,4,e,RJ,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){BJ(this,4,e,UJ,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){BJ(this,8,e,IJ,t,arguments.length>2?arguments[2]:void 0)}});cJ(bJ,dJ),cJ(wJ,vJ);var HJ={ArrayBuffer:bJ,DataView:wJ},WJ=tb,YJ=Math.floor,$J=Number.isInteger||function(e){return!WJ(e)&&isFinite(e)&&YJ(e)===e},KJ=sx,QJ=RangeError,XJ=function(e){var t=KJ(e);if(t<0)throw QJ("The argument can't be less than 0");return t},JJ=RangeError,ZJ=function(e,t){var r=XJ(e);if(r%t)throw JJ("Wrong offset");return r},eZ=wk,tZ=Rm("".slice),rZ=b_,nZ=TypeError,iZ=function(e){var t=rZ(e,"number");if("number"==typeof t)throw nZ("Can't convert number to bigint");return BigInt(t)},oZ=vM,aZ=_m,sZ=Jj,uZ=Yb,cZ=yx,lZ=nN,fZ=QF,hZ=qF,pZ=function(e){return"Big"===tZ(eZ(e),0,3)},dZ=xX.aTypedArrayConstructor,vZ=iZ,yZ=Jm,gZ=tb,mZ=jj,bZ=function(e,t,r){var n,i;return mZ&&yZ(n=t.constructor)&&n!==r&&gZ(i=n.prototype)&&i!==r.prototype&&mZ(e,i),e},_Z=ik,wZ=pm,xZ=_m,kZ=ym,SZ=LX,TZ=xX,AZ=HJ,EZ=$j,OZ=Em,LZ=nw,PZ=$J,CZ=dx,RZ=DX,DZ=ZJ,UZ=x_,IZ=Qb,jZ=wk,MZ=tb,BZ=xb,FZ=kV,NZ=ob,VZ=jj,zZ=nx.f,GZ=function(e){var t,r,n,i,o,a,s,u,c=sZ(this),l=uZ(e),f=arguments.length,h=f>1?arguments[1]:void 0,p=void 0!==h,d=fZ(l);if(d&&!hZ(d))for(u=(s=lZ(l,d)).next,l=[];!(a=aZ(u,s)).done;)l.push(a.value);for(p&&f>2&&(h=oZ(h,arguments[2])),r=cZ(l),n=new(dZ(c))(r),i=pZ(n),t=0;r>t;t++)o=p?h(l[t],t):l[t],n[t]=i?vZ(o):+o;return n},qZ=_Y.forEach,HZ=Hj,WZ=B_,YZ=dm,$Z=bZ,KZ=Bw.get,QZ=Bw.set,XZ=Bw.enforce,JZ=WZ.f,ZZ=YZ.f,e0=Math.round,t0=wZ.RangeError,r0=AZ.ArrayBuffer,n0=r0.prototype,i0=AZ.DataView,o0=TZ.NATIVE_ARRAY_BUFFER_VIEWS,a0=TZ.TYPED_ARRAY_TAG,s0=TZ.TypedArray,u0=TZ.TypedArrayPrototype,c0=TZ.aTypedArrayConstructor,l0=TZ.isTypedArray,f0="BYTES_PER_ELEMENT",h0="Wrong length",p0=function(e,t){c0(e);for(var r=0,n=t.length,i=new e(n);n>r;)i[r]=t[r++];return i},d0=function(e,t){JZ(e,t,{get:function(){return KZ(this)[t]}})},v0=function(e){var t;return NZ(n0,e)||"ArrayBuffer"==(t=jZ(e))||"SharedArrayBuffer"==t},y0=function(e,t){return l0(e)&&!BZ(t)&&t in e&&PZ(+t)&&t>=0},g0=function(e,t){return t=UZ(t),y0(e,t)?OZ(2,e[t]):ZZ(e,t)},m0=function(e,t,r){return t=UZ(t),!(y0(e,t)&&MZ(r)&&IZ(r,"value"))||IZ(r,"get")||IZ(r,"set")||r.configurable||IZ(r,"writable")&&!r.writable||IZ(r,"enumerable")&&!r.enumerable?JZ(e,t,r):(e[t]=r.value,e)};kZ?(o0||(YZ.f=g0,WZ.f=m0,d0(u0,"buffer"),d0(u0,"byteOffset"),d0(u0,"byteLength"),d0(u0,"length")),_Z({target:"Object",stat:!0,forced:!o0},{getOwnPropertyDescriptor:g0,defineProperty:m0}),FQ.exports=function(e,t,r){var n=e.match(/\d+$/)[0]/8,i=e+(r?"Clamped":"")+"Array",o="get"+e,a="set"+e,s=wZ[i],u=s,c=u&&u.prototype,l={},f=function(e,t){JZ(e,t,{get:function(){return function(e,t){var r=KZ(e);return r.view[o](t*n+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,i){var o=KZ(e);r&&(i=(i=e0(i))<0?0:i>255?255:255&i),o.view[a](t*n+o.byteOffset,i,!0)}(this,t,e)},enumerable:!0})};o0?SZ&&(u=t((function(e,t,r,i){return EZ(e,c),$Z(MZ(t)?v0(t)?void 0!==i?new s(t,DZ(r,n),i):void 0!==r?new s(t,DZ(r,n)):new s(t):l0(t)?p0(u,t):xZ(GZ,u,t):new s(RZ(t)),e,u)})),VZ&&VZ(u,s0),qZ(zZ(s),(function(e){e in u||LZ(u,e,s[e])})),u.prototype=c):(u=t((function(e,t,r,i){EZ(e,c);var o,a,s,l=0,h=0;if(MZ(t)){if(!v0(t))return l0(t)?p0(u,t):xZ(GZ,u,t);o=t,h=DZ(r,n);var p=t.byteLength;if(void 0===i){if(p%n)throw t0(h0);if((a=p-h)<0)throw t0(h0)}else if((a=CZ(i)*n)+h>p)throw t0(h0);s=a/n}else s=RZ(t),o=new r0(a=s*n);for(QZ(e,{buffer:o,byteOffset:h,byteLength:a,length:s,view:new i0(o)});l<s;)f(e,l++)})),VZ&&VZ(u,s0),c=u.prototype=FZ(u0)),c.constructor!==u&&LZ(c,"constructor",u),XZ(c).TypedArrayConstructor=u,a0&&LZ(c,a0,i);var h=u!=s;l[i]=u,_Z({global:!0,constructor:!0,forced:h,sham:!o0},l),f0 in u||LZ(u,f0,n),f0 in c||LZ(c,f0,n),HZ(i)}):FQ.exports=function(){},(0,FQ.exports)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}));var b0=yx,_0=sx,w0=xX.aTypedArray;(0,xX.exportTypedArrayMethod)("at",(function(e){var t=w0(this),r=b0(t),n=_0(e),i=n>=0?n:r+n;return i<0||i>=r?void 0:t[i]}));var x0=Yb,k0=fx,S0=yx,T0=t$,A0=Math.min,E0=[].copyWithin||function(e,t){var r=x0(this),n=S0(r),i=k0(e,n),o=k0(t,n),a=arguments.length>2?arguments[2]:void 0,s=A0((void 0===a?n:k0(a,n))-o,n-i),u=1;for(o<i&&i<o+s&&(u=-1,o+=s-1,i+=s-1);s-- >0;)o in r?r[i]=r[o]:T0(r,i),i+=u,o+=u;return r},O0=xX,L0=Rm(E0),P0=O0.aTypedArray;(0,O0.exportTypedArrayMethod)("copyWithin",(function(e,t){return L0(P0(this),e,t,arguments.length>2?arguments[2]:void 0)}));var C0=_Y.every,R0=xX.aTypedArray;(0,xX.exportTypedArrayMethod)("every",(function(e){return C0(R0(this),e,arguments.length>1?arguments[1]:void 0)}));var D0=GX,U0=iZ,I0=wk,j0=_m,M0=vm,B0=xX.aTypedArray,F0=xX.exportTypedArrayMethod,N0=Rm("".slice);F0("fill",(function(e){var t=arguments.length;B0(this);var r="Big"===N0(I0(this),0,3)?U0(e):+e;return j0(D0,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),M0((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})));var V0=yx,z0=nM,G0=xX.aTypedArrayConstructor,q0=xX.getTypedArrayConstructor,H0=function(e){return G0(z0(e,q0(e)))},W0=function(e,t){for(var r=0,n=V0(t),i=new e(n);n>r;)i[r]=t[r++];return i},Y0=H0,$0=_Y.filter,K0=function(e,t){return W0(Y0(e),t)},Q0=xX.aTypedArray;(0,xX.exportTypedArrayMethod)("filter",(function(e){var t=$0(Q0(this),e,arguments.length>1?arguments[1]:void 0);return K0(this,t)}));var X0=_Y.find,J0=xX.aTypedArray;(0,xX.exportTypedArrayMethod)("find",(function(e){return X0(J0(this),e,arguments.length>1?arguments[1]:void 0)}));var Z0=_Y.findIndex,e1=xX.aTypedArray;(0,xX.exportTypedArrayMethod)("findIndex",(function(e){return Z0(e1(this),e,arguments.length>1?arguments[1]:void 0)}));var t1=vM,r1=Vm,n1=Yb,i1=yx,o1=function(e){var t=1==e;return function(r,n,i){for(var o,a=n1(r),s=r1(a),u=t1(n,i),c=i1(s);c-- >0;)if(u(o=s[c],c,a))switch(e){case 0:return o;case 1:return c}return t?-1:void 0}},a1={findLast:o1(0),findLastIndex:o1(1)},s1=a1.findLast,u1=xX.aTypedArray;(0,xX.exportTypedArrayMethod)("findLast",(function(e){return s1(u1(this),e,arguments.length>1?arguments[1]:void 0)}));var c1=a1.findLastIndex,l1=xX.aTypedArray;(0,xX.exportTypedArrayMethod)("findLastIndex",(function(e){return c1(l1(this),e,arguments.length>1?arguments[1]:void 0)}));var f1=_Y.forEach,h1=xX.aTypedArray;(0,xX.exportTypedArrayMethod)("forEach",(function(e){f1(h1(this),e,arguments.length>1?arguments[1]:void 0)}));var p1=wx.includes,d1=xX.aTypedArray;(0,xX.exportTypedArrayMethod)("includes",(function(e){return p1(d1(this),e,arguments.length>1?arguments[1]:void 0)}));var v1=wx.indexOf,y1=xX.aTypedArray;(0,xX.exportTypedArrayMethod)("indexOf",(function(e){return v1(y1(this),e,arguments.length>1?arguments[1]:void 0)}));var g1=pm,m1=vm,b1=Rm,_1=xX,w1=Iz,x1=f_("iterator"),k1=g1.Uint8Array,S1=b1(w1.values),T1=b1(w1.keys),A1=b1(w1.entries),E1=_1.aTypedArray,O1=_1.exportTypedArrayMethod,L1=k1&&k1.prototype,P1=!m1((function(){L1[x1].call([1])})),C1=!!L1&&L1.values&&L1[x1]===L1.values&&"values"===L1.values.name,R1=function(){return S1(E1(this))};O1("entries",(function(){return A1(E1(this))}),P1),O1("keys",(function(){return T1(E1(this))}),P1),O1("values",R1,P1||!C1,{name:"values"}),O1(x1,R1,P1||!C1,{name:"values"});var D1=xX.aTypedArray,U1=xX.exportTypedArrayMethod,I1=Rm([].join);U1("join",(function(e){return I1(D1(this),e)}));var j1=uM,M1=$m,B1=sx,F1=yx,N1=xY,V1=Math.min,z1=[].lastIndexOf,G1=!!z1&&1/[1].lastIndexOf(1,-0)<0,q1=N1("lastIndexOf"),H1=G1||!q1?function(e){if(G1)return j1(z1,this,arguments)||0;var t=M1(this),r=F1(t),n=r-1;for(arguments.length>1&&(n=V1(n,B1(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:z1,W1=uM,Y1=H1,$1=xX.aTypedArray;(0,xX.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return W1(Y1,$1(this),t>1?[e,arguments[1]]:[e])}));var K1=_Y.map,Q1=H0,X1=xX.aTypedArray;(0,xX.exportTypedArrayMethod)("map",(function(e){return K1(X1(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(Q1(e))(t)}))}));var J1=Ob,Z1=Yb,e2=Vm,t2=yx,r2=TypeError,n2=function(e){return function(t,r,n,i){J1(r);var o=Z1(t),a=e2(o),s=t2(o),u=e?s-1:0,c=e?-1:1;if(n<2)for(;;){if(u in a){i=a[u],u+=c;break}if(u+=c,e?u<0:s<=u)throw r2("Reduce of empty array with no initial value")}for(;e?u>=0:s>u;u+=c)u in a&&(i=r(i,a[u],u,o));return i}},i2={left:n2(!1),right:n2(!0)},o2=i2.left,a2=xX.aTypedArray;(0,xX.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return o2(a2(this),e,t,t>1?arguments[1]:void 0)}));var s2=i2.right,u2=xX.aTypedArray;(0,xX.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return s2(u2(this),e,t,t>1?arguments[1]:void 0)}));var c2=xX.aTypedArray,l2=xX.exportTypedArrayMethod,f2=Math.floor;l2("reverse",(function(){for(var e,t=this,r=c2(t).length,n=f2(r/2),i=0;i<n;)e=t[i],t[i++]=t[--r],t[r]=e;return t}));var h2=pm,p2=_m,d2=xX,v2=yx,y2=ZJ,g2=Yb,m2=vm,b2=h2.RangeError,_2=h2.Int8Array,w2=_2&&_2.prototype,x2=w2&&w2.set,k2=d2.aTypedArray,S2=d2.exportTypedArrayMethod,T2=!m2((function(){var e=new Uint8ClampedArray(2);return p2(x2,e,{length:1,0:3},1),3!==e[1]})),A2=T2&&d2.NATIVE_ARRAY_BUFFER_VIEWS&&m2((function(){var e=new _2(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));S2("set",(function(e){k2(this);var t=y2(arguments.length>1?arguments[1]:void 0,1),r=g2(e);if(T2)return p2(x2,this,r,t);var n=this.length,i=v2(r),o=0;if(i+t>n)throw b2("Wrong length");for(;o<i;)this[t+o]=r[o++]}),!T2||A2);var E2=H0,O2=gM,L2=xX.aTypedArray;(0,xX.exportTypedArrayMethod)("slice",(function(e,t){for(var r=O2(L2(this),e,t),n=E2(this),i=0,o=r.length,a=new n(o);o>i;)a[i]=r[i++];return a}),vm((function(){new Int8Array(1).slice()})));var P2=_Y.some,C2=xX.aTypedArray;(0,xX.exportTypedArrayMethod)("some",(function(e){return P2(C2(this),e,arguments.length>1?arguments[1]:void 0)}));var R2=ab.match(/firefox\/(\d+)/i),D2=!!R2&&+R2[1],U2=/MSIE|Trident/.test(ab),I2=ab.match(/AppleWebKit\/(\d+)\./),j2=!!I2&&+I2[1],M2=fM,B2=vm,F2=Ob,N2=dq,V2=D2,z2=U2,G2=pb,q2=j2,H2=xX.aTypedArray,W2=xX.exportTypedArrayMethod,Y2=pm.Uint16Array,$2=Y2&&M2(Y2.prototype.sort),K2=!(!$2||B2((function(){$2(new Y2(2),null)}))&&B2((function(){$2(new Y2(2),{})}))),Q2=!!$2&&!B2((function(){if(G2)return G2<74;if(V2)return V2<67;if(z2)return!0;if(q2)return q2<602;var e,t,r=new Y2(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for($2(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));W2("sort",(function(e){return void 0!==e&&F2(e),Q2?$2(this,e):N2(H2(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!Q2||K2);var X2=dx,J2=fx,Z2=H0,e5=xX.aTypedArray;(0,xX.exportTypedArrayMethod)("subarray",(function(e,t){var r=e5(this),n=r.length,i=J2(e,n);return new(Z2(r))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,X2((void 0===t?n:J2(t,n))-i))}));var t5=uM,r5=xX,n5=vm,i5=gM,o5=pm.Int8Array,a5=r5.aTypedArray,s5=r5.exportTypedArrayMethod,u5=[].toLocaleString,c5=!!o5&&n5((function(){u5.call(new o5(1))}));s5("toLocaleString",(function(){return t5(u5,c5?i5(a5(this)):a5(this),i5(arguments))}),n5((function(){return[1,2].toLocaleString()!=new o5([1,2]).toLocaleString()}))||!n5((function(){o5.prototype.toLocaleString.call([1,2])})));var l5=xX.exportTypedArrayMethod,f5=vm,h5=Rm,p5=pm.Uint8Array,d5=p5&&p5.prototype||{},v5=[].toString,y5=h5([].join);f5((function(){v5.call({})}))&&(v5=function(){return y5(this)});var g5=d5.toString!=v5;l5("toString",v5,g5);var m5="fetch",b5="xhr",_5="arraybuffer",w5="text",x5="json",k5=function(e){YI(r,e);var t=tj(r);function r(e,n,i,o){var a;return GI(this,r),WI(ej(a=t.call(this,o)),"retryCount",0),WI(ej(a),"isTimeout",!1),WI(ej(a),"loaderType",m5),WI(ej(a),"startTime",0),WI(ej(a),"endTime",0),WI(ej(a),"options",{}),a.url=e,a.request=n,a.response=i,a}return HI(r)}(JI(Error)),S5=fM,T5=rx,A5=Q$,E5=vm,O5=f_,L5=nw,P5=O5("species"),C5=RegExp.prototype,R5=$z.charAt,D5=Rm,U5=Yb,I5=Math.floor,j5=D5("".charAt),M5=D5("".replace),B5=D5("".slice),F5=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,N5=/\$([$&'`]|\d{1,2})/g,V5=_m,z5=G_,G5=Jm,q5=jm,H5=Q$,W5=TypeError,Y5=uM,$5=_m,K5=Rm,Q5=function(e,t,r,n){var i=O5(e),o=!E5((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!E5((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[P5]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return t=!0,null},r[i](""),!t}));if(!o||!a||r){var s=S5(/./[i]),u=t(i,""[e],(function(e,t,r,n,i){var a=S5(e),u=t.exec;return u===A5||u===C5.exec?o&&!i?{done:!0,value:s(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));T5(String.prototype,e,u[0]),T5(C5,i,u[1])}n&&L5(C5[i],"sham",!0)},X5=vm,J5=G_,Z5=Jm,e8=zm,t8=sx,r8=dx,n8=Fz,i8=Hm,o8=function(e,t,r){return t+(r?R5(e,t).length:1)},a8=Cb,s8=function(e,t,r,n,i,o){var a=r+e.length,s=n.length,u=N5;return void 0!==i&&(i=U5(i),u=F5),M5(o,u,(function(o,u){var c;switch(j5(u,0)){case"$":return"$";case"&":return e;case"`":return B5(t,0,r);case"'":return B5(t,a);case"<":c=i[B5(u,1,-1)];break;default:var l=+u;if(0===l)return o;if(l>s){var f=I5(l/10);return 0===f?o:f<=s?void 0===n[f-1]?j5(u,1):n[f-1]+j5(u,1):o}c=n[l-1]}return void 0===c?"":c}))},u8=function(e,t){var r=e.exec;if(G5(r)){var n=V5(r,e,t);return null!==n&&z5(n),n}if("RegExp"===q5(e))return V5(H5,e,t);throw W5("RegExp#exec called on incompatible receiver")},c8=f_("replace"),l8=Math.max,f8=Math.min,h8=K5([].concat),p8=K5([].push),d8=K5("".indexOf),v8=K5("".slice),y8="$0"==="a".replace(/./,"$0"),g8=!!/./[c8]&&""===/./[c8]("a","$0"),m8=!X5((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));Q5("replace",(function(e,t,r){var n=g8?"$":"$0";return[function(e,r){var n=i8(this),i=e8(e)?void 0:a8(e,c8);return i?$5(i,e,n,r):$5(t,n8(n),e,r)},function(e,i){var o=J5(this),a=n8(e);if("string"==typeof i&&-1===d8(i,n)&&-1===d8(i,"$<")){var s=r(t,o,a,i);if(s.done)return s.value}var u=Z5(i);u||(i=n8(i));var c=o.global;if(c){var l=o.unicode;o.lastIndex=0}for(var f=[];;){var h=u8(o,a);if(null===h)break;if(p8(f,h),!c)break;""===n8(h[0])&&(o.lastIndex=o8(a,r8(o.lastIndex),l))}for(var p,d="",v=0,y=0;y<f.length;y++){for(var g=n8((h=f[y])[0]),m=l8(f8(t8(h.index),a.length),0),b=[],_=1;_<h.length;_++)p8(b,void 0===(p=h[_])?p:String(p));var w=h.groups;if(u){var x=h8([g],b,m,a);void 0!==w&&p8(x,w);var k=n8(Y5(i,void 0,x))}else k=s8(g,a,m,b,w,i);m>=v&&(d+=v8(a,v,m)+k,v=m+g.length)}return d+v8(a,v)}]}),!m8||!y8||g8),ik({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var b8=Rm(1..valueOf),_8="\t\n\v\f\r \u2028\u2029\ufeff",w8=Hm,x8=Fz,k8=_8,S8=Rm("".replace),T8="["+k8+"]",A8=RegExp("^"+T8+T8+"*"),E8=RegExp(T8+T8+"*$"),O8=function(e){return function(t){var r=x8(w8(t));return 1&e&&(r=S8(r,A8,"")),2&e&&(r=S8(r,E8,"")),r}},L8={start:O8(1),end:O8(2),trim:O8(3)},P8=ym,C8=pm,R8=Rm,D8=Qx,U8=rx,I8=Qb,j8=bZ,M8=ob,B8=xb,F8=b_,N8=vm,V8=nx.f,z8=dm.f,G8=B_.f,q8=b8,H8=L8.trim,W8="Number",Y8=C8[W8],$8=Y8.prototype,K8=C8.TypeError,Q8=R8("".slice),X8=R8("".charCodeAt),J8=function(e){var t,r,n,i,o,a,s,u,c=F8(e,"number");if(B8(c))throw K8("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=H8(c),43===(t=X8(c,0))||45===t){if(88===(r=X8(c,2))||120===r)return NaN}else if(48===t){switch(X8(c,1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+c}for(a=(o=Q8(c,2)).length,s=0;s<a;s++)if((u=X8(o,s))<48||u>i)return NaN;return parseInt(o,n)}return+c};if(D8(W8,!Y8(" 0o1")||!Y8("0b1")||Y8("+0x1"))){for(var Z8,e4=function(e){var t=arguments.length<1?0:Y8(function(e){var t=F8(e,"number");return"bigint"==typeof t?t:J8(t)}(e)),r=this;return M8($8,r)&&N8((function(){q8(r)}))?j8(Object(t),r,e4):t},t4=P8?V8(Y8):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),r4=0;t4.length>r4;r4++)I8(Y8,Z8=t4[r4])&&!I8(e4,Z8)&&G8(e4,Z8,z8(Y8,Z8));e4.prototype=$8,$8.constructor=e4,U8(C8,W8,e4,{constructor:!0})}var n4=Yb,i4=VV,o4=DV;ik({target:"Object",stat:!0,forced:vm((function(){i4(1)})),sham:!o4},{getPrototypeOf:function(e){return i4(n4(e))}});var a4=Object.prototype.toString;function s4(e){if("[object Object]"!==a4.call(e))return!1;var t=Bf(e);return null===t||t===Object.prototype}function u4(e){if(e&&null!==e[0]&&void 0!==e[0]&&(0!==e[0]||null!==e[1]&&void 0!==e[1])){var t="bytes="+e[0]+"-";return e[1]&&(t+=e[1]),t}}function c4(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function l4(e,t){var r,n;if(e){if(!t)return e;var i,o=Bl(r=ET(n=Cl(t)).call(n,(function(e){if(null!=(i=t[e]))return OT(i)?e+="[]":i=[i],ET(i).call(i,(function(t){var r,n;return n=t,"[object Date]"===a4.call(n)?t=t.toISOString():function(e){return null!==e&&"object"===NI(e)}(t)&&(t=PR(t)),Qn(r="".concat(c4(e),"=")).call(r,c4(t))})).join("&")}))).call(r,Boolean).join("&");if(o){var a=gS(e).call(e,"#");-1!==a&&(e=gg(e).call(e,0,a)),e+=(-1===gS(e).call(e,"?")?"?":"&")+o}return e}}function f4(e,t,r,n,i,o,a,s,u,c,l){return i=null!=i?jE(i):null,n=wT(n||"0",10),ZS(n)&&(n=0),{data:e,done:t,option:{range:u,vid:c,index:s,contentLength:n,age:i,startTime:o,firstByteTime:a,endTime:DO(),priOptions:l},response:r}}function h4(e,t){return Math.round(8*e*1e3/t/1024)}var p4="error",d4="core.ttfb",v4="core.loadstart",y4="core.loadresponseheaders",g4="core.loadcomplete",m4="core.loadretry",b4="core.sourcebuffercreated",_4="core.analyzedurationexceeded",w4="core.removebuffer",x4="core.buffereos",k4="core.keyframe",S4="core.metadataparsed",T4="core.sei",A4="core.seiintime",E4="core.flvscriptdata",O4="core.lowdecode",L4="core.switchurlsuccess",P4="core.switchurlfailed",C4="demuxedtrack",R4="core.streamexception",D4="LARGE_AV_FIRST_FRAME_GAP_DETECT",U4="LARGE_VIDEO_DTS_GAP_DETECT",I4="LARGE_AUDIO_DTS_GAP_DETECT",j4="AUDIO_GAP_DETECT",M4="AUDIO_OVERLAP_DETECT",B4="MAX_DTS_DELTA_WITH_NEXT_SEGMENT_DETECT",F4="real_time_speed",N4=2097152,V4=function(e){YI(n,e);var t,r=tj(n);function n(){var e;return GI(this,n),WI(ej(e=r.call(this)),"_abortController",null),WI(ej(e),"_timeoutTimer",null),WI(ej(e),"_reader",null),WI(ej(e),"_response",null),WI(ej(e),"_aborted",!1),WI(ej(e),"_index",-1),WI(ej(e),"_range",null),WI(ej(e),"_receivedLength",0),WI(ej(e),"_running",!1),WI(ej(e),"_logger",null),WI(ej(e),"_vid",""),WI(ej(e),"_onProcessMinLen",0),WI(ej(e),"_onCancel",null),WI(ej(e),"_priOptions",null),e}return HI(n,[{key:"load",value:function(e){var t,r=this,n=e.url,i=e.vid,o=e.timeout,a=e.responseType,s=e.onProgress,u=e.index,c=e.onTimeout,l=e.onCancel,f=e.range,h=e.transformResponse,p=e.request,d=e.params,v=e.logger,y=e.method,g=e.headers,m=e.body,b=e.mode,_=e.credentials,w=e.cache,x=e.redirect,k=e.referrer,S=e.referrerPolicy,T=e.onProcessMinLen,A=e.priOptions;this._logger=v,this._aborted=!1,this._onProcessMinLen=T,this._onCancel=l,this._abortController="undefined"!=typeof AbortController&&new AbortController,this._running=!0,this._index=u,this._range=f||[0,0],this._vid=i||n,this._priOptions=A||{};var E={method:y,headers:g,body:m,mode:b,credentials:_,cache:w,redirect:x,referrer:k,referrerPolicy:S,signal:null===(t=this._abortController)||void 0===t?void 0:t.signal},O=!1;clearTimeout(this._timeoutTimer),n=l4(n,d);var L=u4(f);L&&(g=p?p.headers:E.headers=E.headers||(Headers?new Headers:{}),Headers&&g instanceof Headers?g.append("Range",L):g.Range=L),o&&(this._timeoutTimer=bE((function(){if(O=!0,r.cancel(),c){var e=new k5(n,E,null,"timeout");e.isTimeout=!0,c(e,{index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions})}}),o));var P=DO();return this._logger.debug("[fetch load start], index,",u,",range,",f),new Gy((function(e,t){fetch(p||n,p?void 0:E).then(function(){var i=zI(FI().mark((function i(o){var c,l,p,d;return FI().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(clearTimeout(r._timeoutTimer),r._response=o,!r._aborted&&r._running){i.next=4;break}return i.abrupt("return");case 4:if(h&&(o=h(o,n)||o),o.ok){i.next=7;break}throw new k5(n,E,o,"bad network response");case 7:if(c=DO(),a!==w5){i.next=15;break}return i.next=11,o.text();case 11:l=i.sent,r._running=!1,i.next=37;break;case 15:if(a!==x5){i.next=22;break}return i.next=18,o.json();case 18:l=i.sent,r._running=!1,i.next=37;break;case 22:if(!s){i.next=29;break}return r.resolve=e,r.reject=t,r._loadChunk(o,s,P,c),i.abrupt("return");case 29:return i.next=31,o.arrayBuffer();case 31:l=i.sent,l=new Uint8Array(l),r._running=!1,p=DO()-P,d=h4(l.byteLength,p),r.emit(F4,{speed:d,len:l.byteLength,time:p,vid:r._vid,index:r._index,range:r._range,priOptions:r._priOptions});case 37:r._logger.debug("[fetch load end], index,",u,",range,",f),e(f4(l,!0,o,o.headers.get("Content-Length"),o.headers.get("age"),P,c,u,f,r._vid,r._priOptions));case 39:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}()).catch((function(e){var i;clearTimeout(r._timeoutTimer),r._running=!1,r._aborted&&!O||((e=e instanceof k5?e:new k5(n,E,null,null===(i=e)||void 0===i?void 0:i.message)).startTime=P,e.endTime=DO(),e.isTimeout=O,e.options={index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions},t(e))}))}))}},{key:"cancel",value:(t=zI(FI().mark((function e(){return FI().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._aborted){e.next=2;break}return e.abrupt("return");case 2:if(this._aborted=!0,this._running=!1,!this._response){e.next=14;break}if(e.prev=5,!this._reader){e.next=9;break}return e.next=9,this._reader.cancel();case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(5);case 13:this._response=this._reader=null;case 14:if(this._abortController){try{this._abortController.abort()}catch(Cre){}this._abortController=null}this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions});case 16:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(){return t.apply(this,arguments)})},{key:"_loadChunk",value:function(e,t,r,n){var i=this;if(!e.body||!e.body.getReader){this._running=!1;var o=new k5(e.url,"",e,"onProgress of bad response.body.getReader");return o.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},void this.reject(o)}this._onProcessMinLen>0&&(this._cache=new Uint8Array(N4),this._writeIdx=0);var a,s,u,c=this._reader=e.body.getReader(),l=function(){var o=zI(FI().mark((function o(){var f,h,p,d,v,y,g,m;return FI().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return s=DO(),o.prev=1,o.next=4,c.read();case 4:a=o.sent,u=DO(),o.next=13;break;case 8:return o.prev=8,o.t0=o.catch(1),u=DO(),i._aborted||(i._running=!1,o.t0.options={index:i._index,range:i._range,vid:i._vid,priOptions:i._priOptions},i.reject(o.t0)),o.abrupt("return");case 13:if(h=(null===(f=i._range)||void 0===f?void 0:f.length)>0?i._range[0]:0,p=h+i._receivedLength,!i._aborted){o.next=19;break}return i._running=!1,t(void 0,!1,{range:[p,p],vid:i._vid,index:i._index,startTime:s,endTime:u,st:r,firstByteTime:n,priOptions:i._priOptions},e),o.abrupt("return");case 19:var b;if(d=a.value?a.value.byteLength:0,i._receivedLength+=d,i._logger.debug("【fetchLoader,onProgress call】,task,",i._range,", start,",p,", end,",h+i._receivedLength,", done,",a.done),i._onProcessMinLen>0){if(i._writeIdx+d>=i._onProcessMinLen||a.done)(v=new Uint8Array(i._writeIdx+d)).set(gg(b=i._cache).call(b,0,i._writeIdx),0),d>0&&v.set(a.value,i._writeIdx),i._writeIdx=0,i._logger.debug("【fetchLoader,onProgress enough】,done,",a.done,",len,",v.byteLength,", writeIdx,",i._writeIdx);else if(d>0&&i._writeIdx+d<N4)i._cache.set(a.value,i._writeIdx),i._writeIdx+=d,i._logger.debug("【fetchLoader,onProgress cache】,len,",d,", writeIdx,",i._writeIdx);else if(d>0){var _;y=new Uint8Array(i._writeIdx+d+2048),i._logger.debug("【fetchLoader,onProgress extra start】,size,",i._writeIdx+d+2048,", datalen,",d,", writeIdx,",i._writeIdx),y.set(gg(_=i._cache).call(_,0,i._writeIdx),0),d>0&&y.set(a.value,i._writeIdx),i._writeIdx+=d,delete i._cache,i._cache=y,i._logger.debug("【fetchLoader,onProgress extra end】,len,",d,", writeIdx,",i._writeIdx)}}else v=a.value;(v&&v.byteLength>0||a.done)&&t(v,a.done,{range:[i._range[0]+i._receivedLength-(v?v.byteLength:0),i._range[0]+i._receivedLength],vid:i._vid,index:i._index,startTime:s,endTime:u,st:r,firstByteTime:n,priOptions:i._priOptions},e),a.done?(g=DO()-r,m=h4(i._receivedLength,g),i.emit(F4,{speed:m,len:i._receivedLength,time:g,vid:i._vid,index:i._index,range:i._range,priOptions:i._priOptions}),i._running=!1,i._logger.debug("[fetchLoader onProgress end],task,",i._range,",done,",a.done),i.resolve(f4(a,!0,e,e.headers.get("Content-Length"),e.headers.get("age"),r,n,i._index,i._range,i._vid,i._priOptions))):l();case 25:case"end":return o.stop()}}),o,null,[[1,8]])})));return function(){return o.apply(this,arguments)}}();l()}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}}],[{key:"isSupported",value:function(){return!("undefined"==typeof fetch)}}]),n}(EA);var z4=lw.PROPER,G4=vm,q4=_8,H4=L8.trim;ik({target:"String",proto:!0,forced:function(e){return G4((function(){return!!q4[e]()||"
"!=="
"[e]()||z4&&q4[e].name!==e}))}("trim")},{trim:function(){return H4(this)}});var W4=function(e){YI(r,e);var t=tj(r);function r(){var e;return GI(this,r),WI(ej(e=t.call(this)),"_xhr",null),WI(ej(e),"_aborted",!1),WI(ej(e),"_timeoutTimer",null),WI(ej(e),"_range",null),WI(ej(e),"_receivedLength",0),WI(ej(e),"_url",null),WI(ej(e),"_onProgress",null),WI(ej(e),"_index",-1),WI(ej(e),"_headers",null),WI(ej(e),"_currentChunkSizeKB",384),WI(ej(e),"_timeout",null),WI(ej(e),"_xhr",null),WI(ej(e),"_withCredentials",null),WI(ej(e),"_startTime",-1),WI(ej(e),"_loadCompleteResolve",null),WI(ej(e),"_loadCompleteReject",null),WI(ej(e),"_runing",!1),WI(ej(e),"_logger",!1),WI(ej(e),"_vid",""),WI(ej(e),"_responseType",void 0),WI(ej(e),"_credentials",void 0),WI(ej(e),"_method",void 0),WI(ej(e),"_transformResponse",void 0),WI(ej(e),"_firstRtt",void 0),WI(ej(e),"_onCancel",null),WI(ej(e),"_priOptions",null),e}return HI(r,[{key:"load",value:function(e){var t=this;clearTimeout(this._timeoutTimer),this._logger=e.logger,this._range=e.range,this._onProgress=e.onProgress,this._index=e.index,this._headers=e.headers,this._withCredentials="include"===e.credentials||"same-origin"===e.credentials,this._body=e.body||null,e.method&&(this._method=e.method),this._timeout=e.timeout||null,this._runing=!0,this._vid=e.vid||e.url,this._responseType=e.responseType,this._firstRtt=-1,this._onTimeout=e.onTimeout,this._onCancel=e.onCancel,this._request=e.request,this._priOptions=e.priOptions||{},this._logger.debug("【xhrLoader task】, range",this._range),this._url=l4(e.url,e.params);var r=DO();return new Gy((function(e,r){t._loadCompleteResolve=e,t._loadCompleteReject=r,t._startLoad()})).catch((function(e){if(clearTimeout(t._timeoutTimer),t._runing=!1,!t._aborted)throw(e=e instanceof k5?e:new k5(t._url,t._request)).startTime=r,e.endTime=DO(),e.options={index:t._index,vid:t._vid,priOptions:t._priOptions},e}))}},{key:"_startLoad",value:function(){var e=null;if(this._responseType===_5&&this._range&&this._range.length>1)if(this._onProgress){this._firstRtt=-1;var t=1024*this._currentChunkSizeKB,r=this._range[0]+this._receivedLength,n=this._range[1];t<this._range[1]-r&&(n=r+t),e=[r,n],this._logger.debug("[xhr_loader->],tast :",this._range,", SubRange, ",e)}else e=this._range,this._logger.debug("[xhr_loader->],tast :",this._range,", allRange, ",e);this._internalOpen(e)}},{key:"_internalOpen",value:function(e){var t=this;try{var r,n;this._startTime=DO();var i=this._xhr=new XMLHttpRequest;i.open(this._method||"GET",this._url,!0),i.responseType=this._responseType,this._timeout&&(i.timeout=this._timeout),i.withCredentials=this._withCredentials,i.onload=Ug(r=this._onLoad).call(r,this),i.onreadystatechange=Ug(n=this._onReadyStatechange).call(n,this),i.onerror=function(e){var r,n,i;t._running=!1;var o=new k5(t._url,t._request,null==e||null===(r=e.currentTarget)||void 0===r?void 0:r.response,"xhr.onerror.status:"+(null==e||null===(n=e.currentTarget)||void 0===n?void 0:n.status)+",statusText,"+(null==e||null===(i=e.currentTarget)||void 0===i?void 0:i.statusText));o.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(o)},i.ontimeout=function(e){t.cancel();var r=new k5(t._url,t._request,{status:408},"timeout");t._onTimeout&&(r.isTimeout=!0,t._onTimeout(r,{index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions})),r.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(r)};var o,a=this._headers||{},s=u4(e);if(s&&(a.Range=s),a)af(o=Cl(a)).call(o,(function(e){i.setRequestHeader(e,a[e])}));this._logger.debug("[xhr.send->] tast,",this._range,",load sub range, ",e),i.send(this._body)}catch(u){u.options={index:this._index,range:e,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(u)}}},{key:"_onReadyStatechange",value:function(e){2===e.target.readyState&&this._firstRtt<0&&(this._firstRtt=DO())}},{key:"_onLoad",value:function(e){var t,r=e.target.status;if(r<200||r>299){var n=new k5(this._url,null,BI(BI({},e.target.response),{},{status:r}),"bad response,status:"+r);return n.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(n)}var i,o=null,a=!1,s=(null===(t=this._range)||void 0===t?void 0:t.length)>0?this._range[0]:0;if(this._responseType===_5){var u,c=new Uint8Array(e.target.response);if(i=s+this._receivedLength,c&&c.byteLength>0){this._receivedLength+=c.byteLength;var l=DO()-this._startTime,f=h4(this._receivedLength,l);this.emit(F4,{speed:f,len:this._receivedLength,time:l,vid:this._vid,index:this._index,range:[i,s+this._receivedLength],priOptions:this._priOptions})}o=c,a=!((null===(u=this._range)||void 0===u?void 0:u.length)>1&&this._range[1]&&this._receivedLength<this._range[1]-this._range[0]),this._logger.debug("[xhr load done->], tast :",this._range,", start",i,"end ",s+this._receivedLength,",dataLen,",c?c.byteLength:0,",receivedLength",this._receivedLength,",index,",this._index,", done,",a)}else a=!0,o=e.target.response;var h={ok:r>=200&&r<300,status:r,statusText:this._xhr.statusText,url:this._xhr.responseURL,headers:this._getHeaders(this._xhr),body:this._xhr.response};this._transformResponse&&(h=this._transformResponse(h,this._url)||h),this._onProgress&&this._onProgress(o,a,{index:this._index,vid:this._vid,range:[i,s+this._receivedLength],startTime:this._startTime,endTime:DO(),priOptions:this._priOptions},h),a?(this._runing=!1,this._loadCompleteResolve&&this._loadCompleteResolve(f4(this._onProgress?null:o,a,h,h.headers["content-length"],h.headers.age,this._startTime,this._firstRtt,this._index,this._range,this._vid,this._priOptions))):this._startLoad()}},{key:"cancel",value:function(){if(!this._aborted)return this._aborted=!0,this._runing=!1,rj($I(r.prototype),"removeAllListeners",this).call(this),this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions}),this._xhr?this._xhr.abort():void 0}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}},{key:"_getHeaders",value:function(e){var t,r,n={},i=ij(HE(t=e.getAllResponseHeaders()).call(t).split("\r\n"));try{for(i.s();!(r=i.n()).done;){var o=r.value.split(": ");n[o[0].toLowerCase()]=gg(o).call(o,1).join(": ")}}catch(a){i.e(a)}finally{i.f()}return n}}],[{key:"isSupported",value:function(){return"undefined"!=typeof XMLHttpRequest}}]),r}(EA),Y4=["retry","retryDelay","onRetryError","transformError"],$4=function(){function e(t,r){GI(this,e),this.promise=X$(),this.alive=!!r.onProgress,!r.logger&&(r.logger=new gQ("Loader")),this._loaderType=t,this._loader=t===m5&&window.fetch?new V4:new W4,this._config=r,this._retryCount=0,this._retryTimer=null,this._canceled=!1,this._retryCheckFunc=r.retryCheckFunc,this._logger=r.logger}var t;return HI(e,[{key:"exec",value:function(){var e=this,t=this._config,r=t.retry,n=t.retryDelay,i=t.onRetryError,o=t.transformError,a=ZI(t,Y4),s=function(){var t=zI(FI().mark((function t(){var u,c,l;return FI().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._loader.load(a);case 3:u=t.sent,e.promise.resolve(u),t.next=27;break;case 7:if(t.prev=7,t.t0=t.catch(0),e._loader.running=!1,e._logger.debug("[task request catch err]",t.t0),!e._canceled){t.next=13;break}return t.abrupt("return");case 13:if(t.t0.loaderType=e._loaderType,t.t0.retryCount=e._retryCount,c=t.t0,o&&(c=o(c)||c),i&&e._retryCount>0&&i(c,e._retryCount,{index:a.index,vid:a.vid,range:a.range,priOptions:a.priOptions}),e._retryCount++,l=!0,e._retryCheckFunc&&(l=e._retryCheckFunc(t.t0)),!(l&&e._retryCount<=r)){t.next=26;break}return clearTimeout(e._retryTimer),e._logger.debug("[task request setTimeout],retry",e._retryCount,",retry range,",a.range),e._retryTimer=bE(s,n),t.abrupt("return");case 26:e.promise.reject(c);case 27:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(){return t.apply(this,arguments)}}();return s(),this.promise}},{key:"cancel",value:(t=zI(FI().mark((function e(){return FI().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return clearTimeout(this._retryTimer),this._canceled=!0,this._loader.running=!1,e.abrupt("return",this._loader.cancel());case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"running",get:function(){return this._loader&&this._loader.running}},{key:"loader",get:function(){return this._loader}}]),e}();function K4(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if((t=Bl(t).call(t,Boolean)).length<2)return t[0];var n=new Uint8Array(fK(t).call(t,(function(e,t){return e+t.byteLength}),0)),i=0;return af(t).call(t,(function(e){n.set(e,i),i+=e.byteLength})),n}function Q4(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Gy((function(t){return bE(t,e)}))}var X4=function(e){YI(n,e);var t,r=tj(n);function n(e){var t;return GI(this,n),WI(ej(t=r.call(this,e)),"type",m5),WI(ej(t),"_queue",[]),WI(ej(t),"_alive",[]),WI(ej(t),"_currentTask",null),WI(ej(t),"_config",void 0),t._config=function(e){return BI({loaderType:m5,retry:0,retryDelay:0,timeout:0,request:null,onTimeout:void 0,onProgress:void 0,onRetryError:void 0,transformRequest:void 0,transformResponse:void 0,transformError:void 0,responseType:w5,range:void 0,url:"",params:void 0,method:"GET",headers:{},body:void 0,mode:void 0,credentials:void 0,cache:void 0,redirect:void 0,referrer:void 0,referrerPolicy:void 0,integrity:void 0,onProcessMinLen:0},e)}(e),t._config.loaderType!==b5&&V4.isSupported()||(t.type=b5),t.log=e.logger,t}return HI(n,[{key:"isFetch",value:function(){return this.type===m5}},{key:"load",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"!=typeof e&&e?r=e:r.url=e||r.url||this._config.url,(r=TA({},this._config,r)).params&&(r.params=TA({},r.params)),r.headers&&s4(r.headers)&&(r.headers=TA({},r.headers)),r.body&&s4(r.body)&&(r.body=TA({},r.body)),r.transformRequest&&(r=r.transformRequest(r)||r),r.logger=this.log;var n=new $4(this.type,r);return n.loader.on(F4,(function(e){t.emit(F4,e)})),this._queue.push(n),1!==this._queue.length||this._currentTask&&this._currentTask.running||this._processTask(),n.promise}},{key:"cancel",value:(t=zI(FI().mark((function e(){var t;return FI().wrap((function(e){for(var r,n,i;;)switch(e.prev=e.next){case 0:return t=Qn(r=ET(n=this._queue).call(n,(function(e){return e.cancel()}))).call(r,ET(i=this._alive).call(i,(function(e){return e.cancel()}))),this._currentTask&&t.push(this._currentTask.cancel()),this._queue=[],this._alive=[],e.next=6,Gy.all(t);case 6:return e.next=8,Q4();case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"_processTask",value:function(){var e=this;if(this._currentTask=this._queue.shift(),this._currentTask){this._currentTask.alive&&this._alive.push(this._currentTask);var t=this._currentTask.exec().catch((function(e){}));t&&"function"==typeof t.finally&&t.finally((function(){var t,r,n;null!==(t=e._currentTask)&&void 0!==t&&t.alive&&(null===(r=e._alive)||void 0===r?void 0:r.length)>0&&(e._alive=Bl(n=e._alive).call(n,(function(t){return t&&t!==e._currentTask})));e._processTask()}))}}}],[{key:"isFetchSupport",value:function(){return V4.isSupported()}}]),n}(EA),J4=function(){function e(){GI(this,e),WI(this,"_prevCurrentTime",0)}return HI(e,[{key:"do",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(e){var i=e.currentTime,o=0;if(this._prevCurrentTime===i){var a=hK.info(hK.get(e),i);if(!a.buffers.length)return;r&&a.nextStart||a.nextStart&&a.nextStart-i<t?o=a.nextStart+.1:a.end&&a.end-i>n&&!e.seeking&&(o=i+.1)}this._prevCurrentTime=i,o&&i!==o&&(e.currentTime=o)}}}]),e}();BD("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),ZD);var Z4=te.Set,e3=Ae,t3=function(e){if("object"==typeof e&&"size"in e&&"has"in e&&"add"in e&&"delete"in e&&"keys"in e)return e;throw TypeError(e3(e)+" is not a set")},r3=pU,n3=ae("Set"),i3=n3.prototype,o3={Set:n3,add:r3("add",1),has:r3("has",1),remove:r3("delete",1),proto:i3},a3=SU,s3=function(e,t,r){return r?a3(e.keys(),t):e.forEach(t)},u3=s3,c3=o3.Set,l3=o3.add,f3=function(e){var t=new c3;return u3(e,(function(e){l3(t,e)})),t},h3=function(e){return e.size},p3=Pe,d3=tr,v3=R,y3=Dr,g3=TypeError,m3=Math.max,b3=function(e,t,r,n){this.set=e,this.size=t,this.has=r,this.keys=n};b3.prototype={getIterator:function(){return d3(v3(this.keys,this.set))},includes:function(e){return v3(this.has,this.set,e)}};var _3=function(e){d3(e);var t=+e.size;if(t!=t)throw g3("Invalid size");return new b3(e,m3(y3(t),0),p3(e.has),p3(e.keys))},w3=t3,x3=f3,k3=h3,S3=_3,T3=s3,A3=SU,E3=o3.has,O3=o3.remove,L3=function(e){var t=w3(this),r=S3(e),n=x3(t);return k3(t)<=r.size?T3(t,(function(e){r.includes(e)&&O3(n,e)})):A3(r.getIterator(),(function(e){E3(t,e)&&O3(n,e)})),n},P3=function(){return!1},C3=L3;Er({target:"Set",proto:!0,real:!0,forced:!P3()},{difference:C3});var R3=t3,D3=h3,U3=_3,I3=s3,j3=SU,M3=o3.Set,B3=o3.add,F3=o3.has,N3=function(e){var t=R3(this),r=U3(e),n=new M3;return D3(t)>r.size?j3(r.getIterator(),(function(e){F3(t,e)&&B3(n,e)})):I3(t,(function(e){r.includes(e)&&B3(n,e)})),n},V3=N3;Er({target:"Set",proto:!0,real:!0,forced:!P3()},{intersection:V3});var z3=t3,G3=o3.has,q3=h3,H3=_3,W3=s3,Y3=SU,$3=kh,K3=function(e){var t=z3(this),r=H3(e);if(q3(t)<=r.size)return!1!==W3(t,(function(e){if(r.includes(e))return!1}),!0);var n=r.getIterator();return!1!==Y3(n,(function(e){if(G3(t,e))return $3(n,"normal",!1)}))},Q3=K3;Er({target:"Set",proto:!0,real:!0,forced:!P3()},{isDisjointFrom:Q3});var X3=t3,J3=h3,Z3=s3,e6=_3,t6=function(e){var t=X3(this),r=e6(e);return!(J3(t)>r.size)&&!1!==Z3(t,(function(e){if(!r.includes(e))return!1}),!0)},r6=t6;Er({target:"Set",proto:!0,real:!0,forced:!P3()},{isSubsetOf:r6});var n6=t3,i6=o3.has,o6=h3,a6=_3,s6=SU,u6=kh,c6=function(e){var t=n6(this),r=a6(e);if(o6(t)<r.size)return!1;var n=r.getIterator();return!1!==s6(n,(function(e){if(!i6(t,e))return u6(n,"normal",!1)}))},l6=c6;Er({target:"Set",proto:!0,real:!0,forced:!P3()},{isSupersetOf:l6});var f6=t3,h6=f3,p6=_3,d6=SU,v6=o3.add,y6=o3.has,g6=o3.remove,m6=function(e){var t=f6(this),r=p6(e).getIterator(),n=h6(t);return d6(r,(function(e){y6(t,e)?g6(n,e):v6(n,e)})),n},b6=m6;Er({target:"Set",proto:!0,real:!0,forced:!P3()},{symmetricDifference:b6});var _6=t3,w6=o3.add,x6=f3,k6=_3,S6=SU,T6=function(e){var t=_6(this),r=k6(e).getIterator(),n=x6(t);return S6(r,(function(e){w6(n,e)})),n},A6=T6;Er({target:"Set",proto:!0,real:!0,forced:!P3()},{union:A6});var E6=Z4;Er({target:"Set",stat:!0,forced:!0},{from:uU}),Er({target:"Set",stat:!0,forced:!0},{of:lU});var O6=t3,L6=o3.add;Er({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=O6(this),t=0,r=arguments.length;t<r;t++)L6(e,arguments[t]);return e}});var P6=t3,C6=o3.remove;Er({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=P6(this),r=!0,n=0,i=arguments.length;n<i;n++)e=C6(t,arguments[n]),r=r&&e;return!!r}});var R6=Kt,D6=t3,U6=s3;Er({target:"Set",proto:!0,real:!0,forced:!0},{every:function(e){var t=D6(this),r=R6(e,arguments.length>1?arguments[1]:void 0);return!1!==U6(t,(function(e){if(!r(e,e,t))return!1}),!0)}});var I6=Zr,j6=Xe,M6=H,B6=yu,F6=ft("iterator"),N6=Object,V6=E,z6=function(e){if(M6(e))return!1;var t=N6(e);return void 0!==t[F6]||"@@iterator"in t||j6(B6,I6(t))},G6=ee,q6=ae("Set"),H6=function(e){return function(e){return G6(e)&&"number"==typeof e.size&&V6(e.has)&&V6(e.keys)}(e)?e:z6(e)?new q6(e):e},W6=R,Y6=H6,$6=L3;Er({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return W6($6,this,Y6(e))}});var K6=Kt,Q6=t3,X6=s3,J6=o3.Set,Z6=o3.add;Er({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=Q6(this),r=K6(e,arguments.length>1?arguments[1]:void 0),n=new J6;return X6(t,(function(e){r(e,e,t)&&Z6(n,e)})),n}});var e9=Kt,t9=t3,r9=s3;Er({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=t9(this),r=e9(e,arguments.length>1?arguments[1]:void 0),n=r9(t,(function(e){if(r(e,e,t))return{value:e}}),!0);return n&&n.value}});var n9=R,i9=H6,o9=N3;Er({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return n9(o9,this,i9(e))}});var a9=R,s9=H6,u9=K3;Er({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return a9(u9,this,s9(e))}});var c9=R,l9=H6,f9=t6;Er({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return c9(f9,this,l9(e))}});var h9=R,p9=H6,d9=c6;Er({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return h9(d9,this,p9(e))}});var v9=Er,y9=u,g9=t3,m9=s3,b9=Zn,_9=y9([].join),w9=y9([].push);v9({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=g9(this),r=void 0===e?",":b9(e),n=[];return m9(t,(function(e){w9(n,e)})),_9(n,r)}});var x9=Kt,k9=t3,S9=s3,T9=o3.Set,A9=o3.add;Er({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=k9(this),r=x9(e,arguments.length>1?arguments[1]:void 0),n=new T9;return S9(t,(function(e){A9(n,r(e,e,t))})),n}});var E9=Pe,O9=t3,L9=s3,P9=TypeError;Er({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=O9(this),r=arguments.length<2,n=r?void 0:arguments[1];if(E9(e),L9(t,(function(i){r?(r=!1,n=i):n=e(n,i,i,t)})),r)throw P9("Reduce of empty set with no initial value");return n}});var C9=Kt,R9=t3,D9=s3;Er({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=R9(this),r=C9(e,arguments.length>1?arguments[1]:void 0);return!0===D9(t,(function(e){if(r(e,e,t))return!0}),!0)}});var U9=R,I9=H6,j9=m6;Er({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return U9(j9,this,I9(e))}});var M9=R,B9=H6,F9=T6;Er({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return M9(F9,this,B9(e))}});var N9=t(E6),V9={exports:{}},z9={},G9=jm,q9=$m,H9=nx.f,W9=zG,Y9="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];z9.f=function(e){return Y9&&"Window"==G9(e)?function(e){try{return H9(e)}catch(Cre){return W9(Y9)}}(e):H9(q9(e))};var $9=vm((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),K9=vm,Q9=tb,X9=jm,J9=$9,Z9=Object.isExtensible,e7=K9((function(){Z9(1)}))||J9?function(e){return!!Q9(e)&&((!J9||"ArrayBuffer"!=X9(e))&&(!Z9||Z9(e)))}:Z9,t7=!vm((function(){return Object.isExtensible(Object.preventExtensions({}))})),r7=ik,n7=Rm,i7=Sw,o7=tb,a7=Qb,s7=B_.f,u7=nx,c7=z9,l7=e7,f7=t7,h7=!1,p7=t_("meta"),d7=0,v7=function(e){s7(e,p7,{value:{objectID:"O"+d7++,weakData:{}}})},y7=V9.exports={enable:function(){y7.enable=function(){},h7=!0;var e=u7.f,t=n7([].splice),r={};r[p7]=1,e(r).length&&(u7.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===p7){t(n,i,1);break}return n},r7({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c7.f}))},fastKey:function(e,t){if(!o7(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a7(e,p7)){if(!l7(e))return"F";if(!t)return"E";v7(e)}return e[p7].objectID},getWeakData:function(e,t){if(!a7(e,p7)){if(!l7(e))return!0;if(!t)return!1;v7(e)}return e[p7].weakData},onFreeze:function(e){return f7&&h7&&l7(e)&&!a7(e,p7)&&v7(e),e}};i7[p7]=!0;var g7=V9.exports,m7=ik,b7=pm,_7=Rm,w7=Qx,x7=rx,k7=g7,S7=wN,T7=$j,A7=Jm,E7=zm,O7=tb,L7=vm,P7=AN,C7=Nj,R7=bZ,D7=B_.f,U7=kV,I7=uq,j7=vM,M7=$j,B7=zm,F7=wN,N7=xz,V7=kz,z7=Hj,G7=ym,q7=g7.fastKey,H7=Bw.set,W7=Bw.getterFor,Y7={getConstructor:function(e,t,r,n){var i=e((function(e,i){M7(e,o),H7(e,{type:t,index:U7(null),first:void 0,last:void 0,size:0}),G7||(e.size=0),B7(i)||F7(i,e[n],{that:e,AS_ENTRIES:r})})),o=i.prototype,a=W7(t),s=function(e,t,r){var n,i,o=a(e),s=u(e,t);return s?s.value=r:(o.last=s={index:i=q7(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=s),n&&(n.next=s),G7?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},u=function(e,t){var r,n=a(e),i=q7(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return I7(o,{clear:function(){for(var e=a(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,G7?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=u(t,e);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),G7?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=j7(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!u(this,e)}}),I7(o,r?{get:function(e){var t=u(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),G7&&D7(o,"size",{get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=W7(t),o=W7(n);N7(e,t,(function(e,t){H7(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?V7("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,V7(void 0,!0))}),r?"entries":"values",!r,!0),z7(t)}};(function(e,t,r){var n=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),o=n?"set":"add",a=b7[e],s=a&&a.prototype,u=a,c={},l=function(e){var t=_7(s[e]);x7(s,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(i&&!O7(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return i&&!O7(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(i&&!O7(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(w7(e,!A7(a)||!(i||s.forEach&&!L7((function(){(new a).entries().next()})))))u=r.getConstructor(t,e,n,o),k7.enable();else if(w7(e,!0)){var f=new u,h=f[o](i?{}:-0,1)!=f,p=L7((function(){f.has(1)})),d=P7((function(e){new a(e)})),v=!i&&L7((function(){for(var e=new a,t=5;t--;)e[o](t,t);return!e.has(-0)}));d||((u=t((function(e,t){T7(e,s);var r=R7(new a,e,u);return E7(t)||S7(t,r[o],{that:r,AS_ENTRIES:n}),r}))).prototype=s,s.constructor=u),(p||v)&&(l("delete"),l("has"),n&&l("get")),(v||h)&&l(o),i&&s.clear&&delete s.clear}c[e]=u,m7({global:!0,constructor:!0,forced:u!=a},c),C7(u,e),i||r.setStrong(u,e,n)})("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Y7);var $7=function(){function e(t){var r=this;GI(this,e),WI(this,"_seiSet",new N9),this.emitter=t,t.on(T4,(function(e){e&&r._seiSet.add(e)}))}return HI(e,[{key:"throw",value:function(e){var t,r=this;if(null!=e&&this._seiSet.size){var n=e-.2,i=e+.2,o=[];af(t=this._seiSet).call(t,(function(e){e.time>=n&&e.time<=i&&o.push(e)})),af(o).call(o,(function(e){r._seiSet.delete(e),r.emitter.emit(A4,e)}))}}},{key:"reset",value:function(){this._seiSet.clear()}}]),e}(),K7=function(){function e(){GI(this,e),WI(this,"_chunkSpeeds",[]),WI(this,"_speeds",[])}return HI(e,[{key:"addRecord",value:function(e,t){var r;e&&t&&(this._speeds.push(8e3*e/t),this._speeds=gg(r=this._speeds).call(r,-3))}},{key:"addChunkRecord",value:function(e,t){var r;e&&t&&(this._chunkSpeeds.push(8e3*e/t),this._chunkSpeeds=gg(r=this._chunkSpeeds).call(r,-100))}},{key:"getAvgSpeed",value:function(){var e,t;return this._chunkSpeeds.length||this._speeds.length?this._speeds.length?fK(t=this._speeds).call(t,(function(e,t){return e+t}))/this._speeds.length:fK(e=this._chunkSpeeds).call(e,(function(e,t){return e+t}))/this._chunkSpeeds.length:0}},{key:"getLatestSpeed",value:function(){return this._chunkSpeeds.length||this._speeds.length?this._speeds.length?this._speeds[this._speeds.length-1]:this._chunkSpeeds[this._chunkSpeeds.length-1]:0}},{key:"reset",value:function(){this._chunkSpeeds=[],this._speeds=[]}}]),e}(),Q7=function(){function e(t){GI(this,e),WI(this,"encodeType",""),WI(this,"audioCodec",""),WI(this,"videoCodec",""),WI(this,"domain",""),WI(this,"fps",0),WI(this,"bitrate",0),WI(this,"width",0),WI(this,"height",0),WI(this,"samplerate",0),WI(this,"channelCount",0),WI(this,"gop",0),WI(this,"_bitsAccumulateSize",0),WI(this,"_bitsAccumulateDuration",0),this._timescale=t}return HI(e,[{key:"getStats",value:function(){return{encodeType:this.encodeType,audioCodec:this.audioCodec,videoCodec:this.videoCodec,domain:this.domain,fps:this.fps,bitrate:this.bitrate,width:this.width,height:this.height,samplerate:this.samplerate,channelCount:this.channelCount,gop:this.gop}}},{key:"setEncodeType",value:function(e){this.encodeType=e}},{key:"setVideoMeta",value:function(e){this.width=e.width,this.height=e.height,this.videoCodec=e.codec,this.encodeType=e.codecType,e.fpsNum&&e.fpsDen&&(this.fps=e.fpsNum/e.fpsDen)}},{key:"setAudioMeta",value:function(e){this.audioCodec=e.codec,this.samplerate=e.sampleRate,this.channelCount=e.channelCount}},{key:"setDomain",value:function(e){var t;this.domain=gg(t=e.split("/")).call(t,2,3)[0]}},{key:"updateBitrate",value:function(e){var t=this;if(!this.fps||this.fps>=100){var r=e[0];null!=r&&r.duration&&(this.fps=Math.round(this._timescale/r.duration))}af(e).call(e,(function(e){var r;1===e.gopId&&t.gop++,t._bitsAccumulateDuration+=e.duration/(t._timescale/1e3),t._bitsAccumulateSize+=fK(r=e.units).call(r,(function(e,t){return e+t.length}),0),t._bitsAccumulateDuration>=1e3&&(t.bitrate=8*t._bitsAccumulateSize,t._bitsAccumulateDuration=0,t._bitsAccumulateSize=0)}))}}]),e}(),X7=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;GI(this,e),WI(this,"_core",null),WI(this,"_samples",[]),this._core=t,this._timescale=r,this._stats=new Q7(r),this._bindEvents()}return HI(e,[{key:"getStats",value:function(){var e,t,r,n,i,o,a,s=(null===(e=this._core)||void 0===e?void 0:e.media)||{},u=s.currentTime,c=void 0===u?0:u,l=s.decodeFps,f=void 0===l?0:l;return BI(BI({},this._stats.getStats()),{},{downloadSpeed:(null===(t=this._core)||void 0===t||null===(r=t.speedInfo)||void 0===r?void 0:r.call(t).speed)||0,avgSpeed:(null===(n=this._core)||void 0===n||null===(i=n.speedInfo)||void 0===i?void 0:i.call(n).avgSpeed)||0,currentTime:c,bufferEnd:(null===(o=this._core)||void 0===o||null===(a=o.bufferInfo())||void 0===a?void 0:a.remaining)||0,decodeFps:f})}},{key:"_bindEvents",value:function(){var e=this;this._core.on(C4,(function(t){return e._stats.updateBitrate(t.samples)})),this._core.on(S4,(function(t){"video"===t.type?e._stats.setVideoMeta(t.track):e._stats.setAudioMeta(t.track)})),this._core.on(d4,(function(t){e._stats.setDomain(t.responseUrl)}))}},{key:"reset",value:function(){this._samples=[],this._stats=new Q7(this._timescale)}}]),e}();function J7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z7(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Cf(e,n.key,n)}}function eee(e,t,r){return t&&Z7(e.prototype,t),r&&Z7(e,r),Cf(e,"prototype",{writable:!1}),e}function tee(e,t,r){return t in e?Cf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ree(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Uf(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Cf(e,"prototype",{writable:!1}),t&&iee(e,t)}function nee(e){var t;return(nee=Ff?Ug(t=Bf).call(t):function(e){return e.__proto__||Bf(e)})(e)}function iee(e,t){var r;return(iee=Ff?Ug(r=Ff).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function oee(e,t){if(t&&("object"===Ol(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function aee(e){var t=function(){if("undefined"==typeof Reflect||!Kg)return!1;if(Kg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Kg(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=nee(e);if(t){var i=nee(this).constructor;r=Kg(n,arguments,i)}else r=n.apply(this,arguments);return oee(this,r)}}function see(e,t){return function(e){if(OT(e))return e}(e)||function(e,t){var r=null==e?null:void 0!==Rf&&BT(e)||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||cee(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uee(e){return function(e){if(OT(e))return lee(e)}(e)||function(e){if(void 0!==Rf&&null!=BT(e)||null!=e["@@iterator"])return eA(e)}(e)||cee(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cee(e,t){var r;if(e){if("string"==typeof e)return lee(e,t);var n=gg(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?eA(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lee(e,t):void 0}}function lee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var fee=tb,hee=jm,pee=f_("match"),dee=function(e){var t;return fee(e)&&(void 0!==(t=e[pee])?!!t:"RegExp"==hee(e))},vee=TypeError,yee=f_("match"),gee=ik,mee=function(e){if(dee(e))throw vee("The method doesn't accept regular expressions");return e},bee=Hm,_ee=Fz,wee=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[yee]=!1,"/./"[e](t)}catch(n){}}return!1},xee=Rm("".indexOf);gee({target:"String",proto:!0,forced:!wee("includes")},{includes:function(e){return!!~xee(_ee(bee(this)),_ee(mee(e)),arguments.length>1?arguments[1]:void 0)}});var kee="video",See="audio",Tee="metadata",Aee="avc",Eee="hevc",Oee="aac",Lee="g7110a",Pee="g7110m",Cee="LARGE_AV_SHIFT",Ree="LARGE_VIDEO_GAP",Dee="LARGE_VIDEO_GAP_BETWEEN_CHUNK",Uee="LARGE_AUDIO_GAP",Iee="AUDIO_FILLED",jee="AUDIO_DROPPED",Mee=function(){function e(){J7(this,e),tee(this,"id",1),tee(this,"type",kee),tee(this,"codecType",Aee),tee(this,"pid",-1),tee(this,"hvcC",void 0),tee(this,"codec",""),tee(this,"timescale",0),tee(this,"formatTimescale",0),tee(this,"sequenceNumber",0),tee(this,"baseMediaDecodeTime",0),tee(this,"baseDts",0),tee(this,"duration",0),tee(this,"warnings",[]),tee(this,"samples",[]),tee(this,"pps",[]),tee(this,"sps",[]),tee(this,"vps",[]),tee(this,"fpsNum",0),tee(this,"fpsDen",0),tee(this,"sarRatio",[]),tee(this,"width",0),tee(this,"height",0),tee(this,"nalUnitSize",4),tee(this,"present",!1),tee(this,"isVideoEncryption",!1),tee(this,"isAudioEncryption",!1),tee(this,"isVideo",!0),tee(this,"kid",null),tee(this,"pssh",null),tee(this,"ext",void 0)}return eee(e,[{key:"reset",value:function(){this.sequenceNumber=this.width=this.height=this.fpsDen=this.fpsNum=this.duration=this.baseMediaDecodeTime=this.timescale=0,this.codec="",this.present=!1,this.pid=-1,this.pps=[],this.sps=[],this.vps=[],this.sarRatio=[],this.samples=[],this.warnings=[],this.hvcC=null}},{key:"exist",value:function(){return!!(this.pps.length&&this.sps.length&&this.codec)}},{key:"hasSample",value:function(){return!!this.samples.length}},{key:"isEncryption",get:function(){return this.isVideoEncryption}}]),e}(),Bee=function(){function e(){J7(this,e),tee(this,"id",2),tee(this,"type",See),tee(this,"codecType",Oee),tee(this,"pid",-1),tee(this,"codec",""),tee(this,"sequenceNumber",0),tee(this,"sampleDuration",0),tee(this,"timescale",0),tee(this,"formatTimescale",0),tee(this,"baseMediaDecodeTime",0),tee(this,"duration",0),tee(this,"warnings",[]),tee(this,"samples",[]),tee(this,"baseDts",0),tee(this,"sampleSize",16),tee(this,"sampleRate",0),tee(this,"channelCount",0),tee(this,"objectType",0),tee(this,"sampleRateIndex",0),tee(this,"config",[]),tee(this,"present",!1),tee(this,"isVideoEncryption",!1),tee(this,"isAudioEncryption",!1),tee(this,"kid",null),tee(this,"ext",void 0)}return eee(e,[{key:"reset",value:function(){this.sequenceNumber=0,this.timescale=0,this.sampleDuration=0,this.sampleRate=0,this.channelCount=0,this.baseMediaDecodeTime=0,this.present=!1,this.pid=-1,this.codec="",this.samples=[],this.config=[],this.warnings=[]}},{key:"exist",value:function(){return!!(this.sampleRate&&this.channelCount&&this.codec&&this.codecType===Oee)}},{key:"hasSample",value:function(){return!!this.samples.length}},{key:"isEncryption",get:function(){return this.isAudioEncryption}}]),e}(),Fee=function(){function e(t,r,n){J7(this,e),tee(this,"flag",{}),tee(this,"keyframe",!1),tee(this,"gopId",0),tee(this,"duration",0),tee(this,"size",0),tee(this,"units",[]),tee(this,"chromaFormat",420),this.originPts=this.pts=t,this.originDts=this.dts=r,n&&(this.units=n)}return eee(e,[{key:"cts",get:function(){return this.pts-this.dts}},{key:"setToKeyframe",value:function(){this.keyframe=!0,this.flag.dependsOn=2,this.flag.isNonSyncSample=0}}]),e}(),Nee=eee((function e(t,r,n,i){J7(this,e),tee(this,"duration",1024),tee(this,"flag",{dependsOn:2,isNonSyncSample:0}),tee(this,"keyframe",!0),this.originPts=this.pts=this.dts=t,this.data=r,this.size=r.byteLength,this.sampleOffset=i,n&&(this.duration=n)})),Vee=eee((function e(t,r){J7(this,e),tee(this,"time",0),this.data=t,this.originPts=this.pts=r})),zee=function(e){ree(r,e);var t=aee(r);function r(){return J7(this,r),t.apply(this,arguments)}return eee(r)}(Vee),Gee=function(e){ree(r,e);var t=aee(r);function r(){return J7(this,r),t.apply(this,arguments)}return eee(r)}(Vee),qee=function(){function e(){J7(this,e),tee(this,"id",3),tee(this,"type",Tee),tee(this,"timescale",0),tee(this,"flvScriptSamples",[]),tee(this,"seiSamples",[])}return eee(e,[{key:"exist",value:function(){return!(!this.flvScriptSamples.length&&!this.seiSamples.length||!this.timescale)}},{key:"reset",value:function(){this.timescale=0,this.flvScriptSamples=[],this.seiSamples=[]}},{key:"hasSample",value:function(){return!(!this.flvScriptSamples.length&&!this.seiSamples.length)}}]),e}(),Hee=f.isFinite;Er({target:"Number",stat:!0},{isFinite:Number.isFinite||function(e){return"number"==typeof e&&Hee(e)}});var Wee=t(te.Number.isFinite),Yee=pm.isFinite;ik({target:"Number",stat:!0},{isFinite:Number.isFinite||function(e){return"number"==typeof e&&Yee(e)}});var $ee=_m,Kee=Qb,Qee=ob,Xee=m$,Jee=RegExp.prototype,Zee=lw.PROPER,ete=rx,tte=G_,rte=Fz,nte=vm,ite=function(e){var t=e.flags;return void 0!==t||"flags"in Jee||Kee(e,"flags")||!Qee(Jee,e)?t:$ee(Xee,e)},ote="toString",ate=RegExp.prototype[ote],ste=nte((function(){return"/a/b"!=ate.call({source:"a",flags:"b"})})),ute=Zee&&ate.name!=ote;(ste||ute)&&ete(RegExp.prototype,ote,(function(){var e=tte(this);return"/"+rte(e.source)+"/"+rte(ite(e))}),{unsafe:!0});var cte=function(){function e(t){J7(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]")}return eee(e,[{key:"warn",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];(r=console).warn.apply(r,Qn(t=[this._prefix]).call(t,i))}}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();tee(cte,"disabled",!0);var lte,fte,hte=ik,pte=_m,dte=Jm,vte=G_,yte=Fz,gte=(lte=!1,(fte=/[ac]/).exec=function(){return lte=!0,/./.exec.apply(this,arguments)},!0===fte.test("abc")&<e),mte=/./.test;hte({target:"RegExp",proto:!0,forced:!gte},{test:function(e){var t=vte(this),r=yte(e),n=t.exec;if(!dte(n))return pte(mte,t,r);var i=pte(n,t,r);return null!==i&&(vte(i),!0)}});var bte="undefined"!=typeof window,_te=bte&&navigator.userAgent.toLocaleLowerCase(),wte=bte&&/^((?!chrome|android).)*safari/.test(_te),xte=bte&&XR(_te).call(_te,"firefox"),kte=bte&&XR(_te).call(_te,"android"),Ste=function(){function e(){J7(this,e)}return eee(e,null,[{key:"getRateIndexByRate",value:function(t){var r;return gS(r=e.FREQ).call(r,t)}},{key:"parseADTS",value:function(t,r){for(var n=t.length,i=0;i+2<n&&(255!==t[i]||240!=(246&t[i+1]));)i++;if(!(i>=n)){var o=i,a=[],s=(60&t[i+2])>>>2,u=e.FREQ[s];if(!u)throw new Error("Invalid sampling index: ".concat(s));for(var c,l,f=1+((192&t[i+2])>>>6),h=(1&t[i+2])<<2|(192&t[i+3])>>>6,p=e._getConfig(s,h,f),d=p.config,v=p.codec,y=0,g=e.getFrameDuration(u);i+7<n;)if(255===t[i]&&240==(246&t[i+1])){if(n-i<(l=(3&t[i+3])<<11|t[i+4]<<3|(224&t[i+5])>>5))break;c=2*(1&~t[i+1]),a.push({pts:r+y*g,data:t.subarray(i+7+c,i+l)}),y++,i+=l}else i++;return{skip:o,remaining:i>=n?void 0:t.subarray(i),frames:a,samplingFrequencyIndex:s,sampleRate:u,objectType:f,channelCount:h,codec:v,config:d,originCodec:"mp4a.40.".concat(f)}}}},{key:"parseAudioSpecificConfig",value:function(t){if(t.length){var r=t[0]>>>3,n=(7&t[0])<<1|t[1]>>>7,i=(120&t[1])>>>3,o=e.FREQ[n];if(o){var a=e._getConfig(n,i,r);return{samplingFrequencyIndex:n,sampleRate:o,objectType:r,channelCount:i,config:a.config,codec:a.codec,originCodec:"mp4a.40.".concat(r)}}}}},{key:"getFrameDuration",value:function(e){return 1024*(arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4)/e}},{key:"_getConfig",value:function(e,t,r){var n,i,o=[];return xte?e>=6?(n=5,i=e-3):(n=2,i=e):kte?(n=2,i=e):(n=2===r||5===r?r:5,i=e,e>=6?i=e-3:1===t&&(n=2,i=e)),o[0]=n<<3,o[0]|=(14&e)>>1,o[1]=(1&e)<<7,o[1]|=t<<3,5===n&&(o[1]|=(14&i)>>1,o[2]=(1&i)<<7,o[2]|=8,o[3]=0),{config:o,codec:"mp4a.40.".concat(n)}}},{key:"getSilentFrame",value:function(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)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(6===t)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])}else{if(1===t)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(2===t)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]);if(3===t)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])}}}]),e}();tee(Ste,"FREQ",[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350]);var Tte=1e3,Ate=5e3,Ete=function(){function e(t,r,n){J7(this,e),this.videoTrack=t,this.audioTrack=r,this.metadataTrack=n,this._baseDts=-1,this._baseDtsInited=!1,this._audioNextPts=void 0,this._videoNextDts=void 0,this._audioTimestampBreak=0,this._videoTimestampBreak=0,this._lastVideoDuration=0,this._lastAudioExceptionGapDot=-1/0,this._lastAudioExceptionOverlapDot=-1/0,this._lastAudioExceptionLargeGapDot=-1/0,this._lastVideoExceptionLargeGapDot=-1/0,this._lastVideoExceptionChunkFirstDtsDot=-1/0}return eee(e,[{key:"fix",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];t=Math.round(1e3*t);var i=this.videoTrack,o=this.audioTrack;if(!r&&n||(this._videoLastSample=null,this._audioNextPts=void 0,this._videoNextDts=void 0,this._audioTimestampBreak=0,this._videoTimestampBreak=0,this._lastAudioExceptionGapDot=-1/0,this._lastAudioExceptionOverlapDot=-1/0,this._lastAudioExceptionLargeGapDot=-1/0,this._lastVideoExceptionLargeGapDot=-1/0,this._lastVideoExceptionChunkFirstDtsDot=-1/0),r&&!n&&(this._baseDtsInited=!1),this._baseDtsInited||this._calculateBaseDts(o,i),!n&&t&&(this._audioNextPts=this._videoNextDts=t),this._baseDtsInited&&(this._videoTimestampBreak||!this.videoTrack.exist())&&(this._audioTimestampBreak||!this.audioTrack.exist())&&this._resetBaseDtsWhenStreamBreaked(),this._fixAudio(o),this._fixVideo(i),this.metadataTrack.exist()){var a,s,u=this.metadataTrack.timescale;af(a=this.metadataTrack.seiSamples).call(a,(function(t){t.pts=t.originPts-e._baseDts,t.time=Math.max(0,t.pts)/u})),af(s=this.metadataTrack.flvScriptSamples).call(s,(function(t){t.pts=t.originPts-e._baseDts,t.time=Math.max(0,t.pts)/u}))}i.samples.length&&(i.baseMediaDecodeTime=i.samples[0].dts),o.samples.length&&(o.baseMediaDecodeTime=o.samples[0].pts*o.timescale/1e3)}},{key:"_fixVideo",value:function(e){var t=this,r=e.samples;if(r.length){var n;if(af(r).call(r,(function(e){e.dts-=t._baseDts,e.pts-=t._baseDts})),e.fpsNum&&e.fpsDen)n=e.timescale*(e.fpsDen/e.fpsNum);else if(e.length>1){var i=e.samples[0],o=e.samples[r.length-1];n=Math.floor((o.dts-i.dts)/(r.length-1))}else n=this._lastVideoDuration||40;var a=r.pop();if(this._videoLastSample&&r.unshift(this._videoLastSample),this._videoLastSample=a,r.length){if(void 0===this._videoNextDts){var s=r[0];this._videoNextDts=s.dts}var u=r.length,c=0,l=r[0],f=this._videoNextDts-l.dts;if(Math.abs(f)>200){var h;if(Math.abs(l.dts-this._lastVideoExceptionChunkFirstDtsDot)>5e3)this._lastVideoExceptionChunkFirstDtsDot=l.dts,e.warnings.push({type:Dee,nextDts:this._videoNextDts,firstSampleDts:l.dts,nextSampleDts:null===(h=r[1])||void 0===h?void 0:h.dts,sampleDuration:f});this._videoTimestampBreak>=5?(this._videoNextDts=l.dts,this._videoTimestampBreak=0):(l.dts+=f,l.pts+=f,this.audioTrack.exist()||(this._videoTimestampBreak=1))}for(var p=0;p<u;p++){var d=r[p].dts,v=r[p+1];((c=p<u-1?v.dts-d:a?a.dts-d:n)>1e3||c<0)&&(this._videoTimestampBreak++,Math.abs(d-this._lastVideoExceptionLargeGapDot)>5e3&&(this._lastVideoExceptionLargeGapDot=d,e.warnings.push({type:Ree,time:d/e.timescale,dts:d,originDts:r[p].originDts,nextDts:this._videoNextDts,sampleDuration:c,refSampleDuration:n})),c=n),r[p].duration=c,this._videoNextDts+=c,this._lastVideoDuration=c}}}}},{key:"_fixAudio",value:function(e){var t=this,r=e.samples;r.length&&(af(r).call(r,(function(e){e.dts=e.pts-=t._baseDts})),this._doFixAudioInternal(e,r,1e3))}},{key:"_calculateBaseDts",value:function(e,t){var r=e.samples,n=t.samples;if(!r.length&&!n.length)return!1;var i=1/0,o=1/0;r.length&&(e.baseDts=i=r[0].pts),n.length&&(t.baseDts=o=n[0].dts),this._baseDts=Math.min(i,o);var a=o-i;return Wee(a)&&Math.abs(a)>500&&t.warnings.push({type:Cee,videoBaseDts:o,audioBasePts:i,baseDts:this._baseDts,delta:a}),this._baseDtsInited=!0,!0}},{key:"_resetBaseDtsWhenStreamBreaked",value:function(){this._calculateBaseDts(this.audioTrack,this.videoTrack)&&(this.audioTrack.exist()?this.videoTrack.exist()?this._baseDts-=Math.min(this._audioNextPts,this._videoNextDts):this._baseDts-=this._audioNextPts:this._baseDts-=this._videoNextDts,this._videoTimestampBreak=0,this._audioTimestampBreak=0)}},{key:"_doFixAudioInternal",value:function(e,t,r){e.sampleDuration||(e.sampleDuration=e.codecType===Oee?Ste.getFrameDuration(e.timescale,r):this._getG711Duration(e));var n=e.sampleDuration,i=e.codecType===Oee?1024:n*e.timescale/1e3;if(void 0===this._audioNextPts){var o=t[0];this._audioNextPts=o.pts}for(var a=0;a<t.length;a++){var s=this._audioNextPts,u=t[a],c=u.pts-s;if(0===a&&this._audioTimestampBreak>=5&&(s=this._audioNextPts=u.dts,c=0,this._audioTimestampBreak=0),!this._audioTimestampBreak&&c>=3*n&&c<=Tte&&!wte){var l=this._getSilentFrame(e)||t[0].data.subarray(),f=Math.floor(c/n);Math.abs(u.pts-this._lastAudioExceptionGapDot)>Ate&&(this._lastAudioExceptionGapDot=u.pts,e.warnings.push({type:Iee,pts:u.pts,originPts:u.originPts,count:f,nextPts:s,refSampleDuration:n}));for(var h=0;h<f;h++){var p=new Nee(Math.floor(this._audioNextPts+n)-Math.floor(this._audioNextPts),l,i);p.originPts=Math.floor(this._baseDts+s),JS(t).call(t,a,0,p),this._audioNextPts+=n,a++}a--}else c<=-3*n&&c>=-1e3?(Math.abs(u.pts-this._lastAudioExceptionOverlapDot)>Ate&&(this._lastAudioExceptionOverlapDot=u.pts,e.warnings.push({type:jee,pts:u.pts,originPts:u.originPts,nextPts:s,refSampleDuration:n})),JS(t).call(t,a,1),a--):(Math.abs(c)>Tte&&(this._audioTimestampBreak++,Math.abs(u.pts-this._lastAudioExceptionLargeGapDot)>Ate&&(this._lastAudioExceptionLargeGapDot=u.pts,e.warnings.push({type:Uee,time:u.pts/1e3,pts:u.pts,originPts:u.originPts,nextPts:s,sampleDuration:c,refSampleDuration:n}))),u.dts=u.pts=s,u.duration=i,this._audioNextPts+=n)}}},{key:"_getG711Duration",value:function(e){var t=e.sampleSize,r=e.channelCount,n=e.sampleRate,i=e.samples[0];if(i)return 2*i.data.byteLength/r/(t/8)/n*1e3}},{key:"_getSilentFrame",value:function(e){return e.codecType===Oee?Ste.getSilentFrame(e.codec,e.channelCount):new Uint8Array(8*e.sampleDuration*e.channelCount)}}]),e}();function Ote(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=Bl(t).call(t,Boolean);var n=new Uint8Array(fK(t).call(t,(function(e,t){return e+t.byteLength}),0)),i=0;return af(t).call(t,(function(e){n.set(e,i),i+=e.byteLength})),n}function Lte(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(e[t]<<24>>>0)+(e[t+1]<<16)+(e[t+2]<<8)+(e[t+3]||0)}function Pte(e){for(var t,r="avc1.",n=0;n<3;n++)(t=e[n].toString(16)).length<2&&(t="0".concat(t)),r+=t;return r}function Cte(e){if(!OT(e)){for(var t=[],r="",n=0;n<e.length;n++)n%2&&(r=e[n-1]+e[n],t.push(wT(r,16)),r="");return t}return ET(e).call(e,(function(e){return wT(e,16)}))}var Rte=function(){function e(){J7(this,e)}return eee(e,null,[{key:"parseAnnexB",value:function(e){for(var t=e.length,r=2,n=0;null!==e[r]&&void 0!==e[r]&&1!==e[r];)r++;if((n=++r+2)>=t)return[];for(var i=[];n<t;)switch(e[n]){case 0:if(0!==e[n-1]){n+=2;break}if(0!==e[n-2]){n++;break}r!==n-2&&i.push(e.subarray(r,n-2));do{n++}while(1!==e[n]&&n<t);n=(r=n+1)+2;break;case 1:if(0!==e[n-1]||0!==e[n-2]){n+=3;break}r!==n-2&&i.push(e.subarray(r,n-2)),n=(r=n+1)+2;break;default:n+=3}return r<t&&i.push(e.subarray(r)),i}},{key:"parseAvcC",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;if(!(e.length<4)){for(var r,n=e.length,i=[],o=0;o+t<n;)if(r=Lte(e,o),3===t&&(r>>>=8),o+=t,r){if(o+r>n)break;i.push(e.subarray(o,o+r)),o+=r}return i}}},{key:"parseSEI",value:function(e,t){for(var r=e.length,n=t?2:1,i=0,o=0,a="";255===e[n];)i+=255,n++;for(i+=e[n++];255===e[n];)o+=255,n++;if(o+=e[n++],5===i&&r>n+16)for(var s=0;s<16;s++)a+=e[n].toString(16),n++;return{payload:e.subarray(n),type:i,size:o,uuid:a}}},{key:"removeEPB",value:function(e){for(var t=e.byteLength,r=[],n=1;n<t-2;)0===e[n]&&0===e[n+1]&&3===e[n+2]?(r.push(n+2),n+=2):n++;if(!r.length)return e;var i=t-r.length,o=new Uint8Array(i),a=0;for(n=0;n<i;a++,n++)a===r[0]&&(a++,r.shift()),o[n]=e[a];return o}}]),e}(),Dte=function(){function e(t){if(J7(this,e),tee(this,"_bytesAvailable",void 0),tee(this,"_bitsAvailable",0),tee(this,"_word",0),!t)throw new Error("ExpGolomb data params is required");this._data=t,this._bytesAvailable=t.byteLength,this._bytesAvailable&&this._loadWord()}return eee(e,[{key:"_loadWord",value:function(){var e=this._data.byteLength-this._bytesAvailable,t=Math.min(4,this._bytesAvailable);if(0===t)throw new Error("No bytes available");var r=new Uint8Array(4);r.set(this._data.subarray(e,e+t)),this._word=new DataView(r.buffer).getUint32(0),this._bitsAvailable=8*t,this._bytesAvailable-=t}},{key:"skipBits",value:function(e){if(this._bitsAvailable>e)this._word<<=e,this._bitsAvailable-=e;else{e-=this._bitsAvailable;var t=Math.floor(e/8);e-=8*t,this._bytesAvailable-=t,this._loadWord(),this._word<<=e,this._bitsAvailable-=e}}},{key:"readBits",value:function(e){if(e>32)throw new Error("Cannot read more than 32 bits");var t=Math.min(this._bitsAvailable,e),r=this._word>>>32-t;return this._bitsAvailable-=t,this._bitsAvailable>0?this._word<<=t:this._bytesAvailable>0&&this._loadWord(),(t=e-t)>0&&this._bitsAvailable?r<<t|this.readBits(t):r}},{key:"skipLZ",value:function(){var e;for(e=0;e<this._bitsAvailable;++e)if(0!=(this._word&2147483648>>>e))return this._word<<=e,this._bitsAvailable-=e,e;return this._loadWord(),e+this.skipLZ()}},{key:"skipUEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"readUEG",value:function(){var e=this.skipLZ();return this.readBits(e+1)-1}},{key:"readEG",value:function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}},{key:"readBool",value:function(){return 1===this.readBits(1)}},{key:"readUByte",value:function(){return this.readBits(8)}},{key:"skipScalingList",value:function(e){for(var t=8,r=8,n=0;n<e;n++)0!==r&&(r=(t+this.readEG()+256)%256),t=0===r?t:r}}]),e}(),Ute=function(){function e(){J7(this,e)}return eee(e,null,[{key:"parseAVCDecoderConfigurationRecord",value:function(t){if(!(t.length<7)){for(var r,n,i=1+(3&t[4]),o=[],a=[],s=6,u=31&t[5],c=0;c<u;c++)if(n=t[s]<<8|t[s+1],s+=2,n){var l=t.subarray(s,s+n);s+=n,o.push(l),r||(r=e.parseSPS(Rte.removeEPB(l)))}var f,h=t[s];s++;for(var p=0;p<h;p++)f=t[s]<<8|t[s+1],s+=2,f&&(a.push(t.subarray(s,s+f)),s+=f);return{sps:r,spsArr:o,ppsArr:a,nalUnitSize:i}}}},{key:"parseSPS",value:function(e){var t=new Dte(e);t.readUByte();var r=t.readUByte(),n=t.readUByte(),i=t.readUByte();t.skipUEG();var o=420;if(100===r||110===r||122===r||244===r||44===r||83===r||86===r||118===r||128===r||138===r||144===r){var a=t.readUEG();if(a<=3&&(o=[0,420,422,444][a]),3===a&&t.skipBits(1),t.skipUEG(),t.skipUEG(),t.skipBits(1),t.readBool())for(var s=3!==a?8:12,u=0;u<s;u++)t.readBool()&&(u<6?t.skipScalingList(16):t.skipScalingList(64))}t.skipUEG();var c=t.readUEG();if(0===c)t.readUEG();else if(1===c){t.skipBits(1),t.skipUEG(),t.skipUEG();for(var l=t.readUEG(),f=0;f<l;f++)t.skipUEG()}t.skipUEG(),t.skipBits(1);var h=t.readUEG(),p=t.readUEG(),d=t.readBits(1);0===d&&t.skipBits(1),t.skipBits(1);var v,y,g,m,b,_=0,w=0,x=0,k=0;if(t.readBool()&&(_=t.readUEG(),w=t.readUEG(),x=t.readUEG(),k=t.readUEG()),t.readBool()){if(t.readBool())switch(t.readUByte()){case 1:v=[1,1];break;case 2:v=[12,11];break;case 3:v=[10,11];break;case 4:v=[16,11];break;case 5:v=[40,33];break;case 6:v=[24,11];break;case 7:v=[20,11];break;case 8:v=[32,11];break;case 9:v=[80,33];break;case 10:v=[18,11];break;case 11:v=[15,11];break;case 12:v=[64,33];break;case 13:v=[160,99];break;case 14:v=[4,3];break;case 15:v=[3,2];break;case 16:v=[2,1];break;case 255:v=[t.readUByte()<<8|t.readUByte(),t.readUByte()<<8|t.readUByte()]}if(t.readBool()&&t.readBool(),t.readBool()&&(t.readBits(4),t.readBool()&&t.readBits(24)),t.readBool()&&(t.readUEG(),t.readUEG()),t.readBool()){var S=t.readBits(32),T=t.readBits(32);y=t.readBool(),b=(g=T)/(m=2*S)}}return{codec:Pte(e.subarray(1,4)),profileIdc:r,profileCompatibility:n,levelIdc:i,chromaFormat:o,width:Math.ceil(16*(h+1)-2*(_+w)),height:(2-d)*(p+1)*16-(d?2:4)*(x+k),sarRatio:v,fpsNum:g,fpsDen:m,fps:b,fixedFrame:y}}}]),e}(),Ite=function(){function e(){J7(this,e)}return eee(e,null,[{key:"parseHEVCDecoderConfigurationRecord",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(t.length<23)){r=r||{};for(var n,i,o,a,s,u=1+(3&t[21]),c=[],l=[],f=[],h=23,p=t[22],d=0;d<p;d++){o=63&t[h],a=t[h+1]<<8|t[h+2],h+=3;for(var v=0;v<a;v++)if(s=t[h]<<8|t[h+1],h+=2,s){switch(o){case 32:var y=t.subarray(h,h+s);n||(n=e.parseVPS(Rte.removeEPB(y),r)),f.push(y);break;case 33:var g=t.subarray(h,h+s);i||(i=e.parseSPS(Rte.removeEPB(g),r)),c.push(g);break;case 34:l.push(t.subarray(h,h+s))}h+=s}}return{hvcC:r,sps:i,spsArr:c,ppsArr:l,vpsArr:f,nalUnitSize:u}}}},{key:"parseVPS",value:function(t,r){r=r||{};var n=new Dte(t);n.readUByte(),n.readUByte(),n.readBits(12);var i=n.readBits(3);return r.numTemporalLayers=Math.max(r.numTemporalLayers||0,i+1),n.readBits(17),e._parseProfileTierLevel(n,i,r),r}},{key:"parseSPS",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r=r||{};var n=new Dte(t);n.readUByte(),n.readUByte(),n.readBits(4);var i=n.readBits(3);r.numTemporalLayers=Math.max(i+1,r.numTemporalLayers||0),r.temporalIdNested=n.readBits(1),e._parseProfileTierLevel(n,i,r),n.readUEG();var o=r.chromaFormatIdc=n.readUEG(),a=420;o<=3&&(a=[0,420,422,444][o]);var s=0;3===o&&(s=n.readBits(1));var u,c,l,f,h=n.readUEG(),p=n.readUEG(),d=n.readBits(1);(1===d&&(u=n.readUEG(),c=n.readUEG(),l=n.readUEG(),f=n.readUEG()),r.bitDepthLumaMinus8=n.readUEG(),r.bitDepthChromaMinus8=n.readUEG(),1===d)&&(h-=(1!==o&&2!==o||0!==s?1:2)*(c+u),p-=(1===o&&0===s?2:1)*(f+l));return{codec:"hev1.1.6.L93.B0",width:h,height:p,chromaFormat:a,hvcC:r}}},{key:"_parseProfileTierLevel",value:function(e,t,r){var n=r.generalTierFlag||0;r.generalProfileSpace=e.readBits(2),r.generalTierFlag=Math.max(e.readBits(1),n),r.generalProfileIdc=Math.max(e.readBits(5),r.generalProfileIdc||0),r.generalProfileCompatibilityFlags=e.readBits(32),r.generalConstraintIndicatorFlags=[e.readBits(8),e.readBits(8),e.readBits(8),e.readBits(8),e.readBits(8),e.readBits(8)];var i=e.readBits(8);n<r.generalTierFlag?r.generalLevelIdc=i:r.generalLevelIdc=Math.max(i,r.generalLevelIdc||0);for(var o=[],a=[],s=0;s<t;s++)o[s]=e.readBits(1),a[s]=e.readBits(1);t>0&&e.readBits(2*(8-t));for(var u=0;u<t;u++)0!==o[u]&&(e.readBits(2),e.readBits(1),e.readBits(5),e.readBits(16),e.readBits(16),e.readBits(4),e.readBits(16),e.readBits(16),e.readBits(12)),0!==a[u]&&e.readBits(8)}}]),e}(),jte=function(){function e(){J7(this,e)}return eee(e,null,[{key:"decode",value:function(t){for(var r=[],n=t,i=0,o=t.length;i<o;)if(n[i]<128)r.push(String.fromCharCode(n[i])),++i;else{if(n[i]<192);else if(n[i]<224){if(e._checkContinuation(n,i,1)){var a=(31&n[i])<<6|63&n[i+1];if(a>=128){r.push(String.fromCharCode(65535&a)),i+=2;continue}}}else if(n[i]<240){if(e._checkContinuation(n,i,2)){var s=(15&n[i])<<12|(63&n[i+1])<<6|63&n[i+2];if(s>=2048&&55296!=(63488&s)){r.push(String.fromCharCode(65535&s)),i+=3;continue}}}else if(n[i]<248&&e._checkContinuation(n,i,3)){var u=(7&n[i])<<18|(63&n[i+1])<<12|(63&n[i+2])<<6|63&n[i+3];if(u>65536&&u<1114112){u-=65536,r.push(String.fromCharCode(u>>>10|55296)),r.push(String.fromCharCode(1023&u|56320)),i+=4;continue}}r.push(String.fromCharCode(65533)),++i}return r.join("")}},{key:"_checkContinuation",value:function(e,t,r){var n=e;if(t+r<n.length){for(;r--;)if(128!=(192&n[++t]))return!1;return!0}return!1}}]),e}(),Mte=function(){function e(){J7(this,e)}return eee(e,null,[{key:"parse",value:function(t){if(!(t.length<3)){var r={},n=e._parseValue(new DataView(t.buffer,t.byteOffset,t.byteLength)),i=e._parseValue(new DataView(t.buffer,t.byteOffset+n.size,t.byteLength-n.size));return r[n.data]=i.data,r}}},{key:"_parseValue",value:function(t){var r,n=t.byteLength,i=1,o=!1;switch(t.getUint8(0)){case 0:r=t.getFloat64(1),i+=8;break;case 1:r=!!t.getUint8(1),i+=1;break;case 2:var a=e._parseString(new DataView(t.buffer,t.byteOffset+i,t.byteLength-i));r=a.data,i+=a.size;break;case 3:r={};var s=0;for(9==(16777215&t.getUint32(n-4))&&(s=3);i<n-4;){var u=e._parseObject(new DataView(t.buffer,t.byteOffset+i,t.byteLength-i-s)),c=u.size,l=u.data;if(u.isEnd)break;r[l.name]=l.value,i+=c}if(i<=n-3)9===(16777215&t.getUint32(i-1))&&(i+=3);break;case 8:r={},i+=4;var f=0;for(9==(16777215&t.getUint32(n-4))&&(f=3);i<n-8;){var h=e._parseObject(new DataView(t.buffer,t.byteOffset+i,t.byteLength-i-f)),p=h.size,d=h.data;if(h.isEnd)break;r[d.name]=d.value,i+=p}if(i<=n-3)9===(16777215&t.getUint32(i-1))&&(i+=3);break;case 9:r=void 0,i=1,o=!0;break;case 10:r=[];var v=t.getUint32(1);i+=4;for(var y=0;y<v;y++){var g=e._parseValue(new DataView(t.buffer,t.byteOffset+i,t.byteLength-i)),m=g.data,b=g.size;r.push(m),i+=b}break;case 11:var _=t.getFloat64(i)+6e4*t.getInt16(i+8);r=new Date(_),i+=10;break;case 12:var w=t.getUint32(1);i+=4,r="",w>0&&(r=jte.decode(new Uint8Array(t.buffer,t.byteOffset+i,w))),i+=w;break;default:i=n}return{data:r,size:i,isEnd:o}}},{key:"_parseString",value:function(e){var t=e.getUint16(0),r="";return t>0&&(r=jte.decode(new Uint8Array(e.buffer,e.byteOffset+2,t))),{data:r,size:2+t}}},{key:"_parseObject",value:function(t){if(!(t.byteLength<3)){var r=e._parseString(t),n=e._parseValue(new DataView(t.buffer,t.byteOffset+r.size,t.byteLength-r.size));return{data:{name:r.data,value:n.data},size:r.size+n.size,isEnd:n.isEnd}}}}]),e}(),Bte=new cte("FlvDemuxer"),Fte=function(){function e(t,r,n){J7(this,e),tee(this,"_headerParsed",!1),tee(this,"_remainingData",null),tee(this,"_gopId",0),tee(this,"_needAddMetaBeforeKeyFrameNal",!0),this.videoTrack=t||new Mee,this.audioTrack=r||new Bee,this.metadataTrack=n||new qee,this._fixer=new Ete(this.videoTrack,this.audioTrack,this.metadataTrack)}return eee(e,[{key:"demux",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.audioTrack,o=this.videoTrack,a=this.metadataTrack;if(!r&&n||(this._remainingData=null,this._headerParsed=!1),r?(o.reset(),i.reset(),a.reset()):(o.samples=[],i.samples=[],a.seiSamples=[],a.flvScriptSamples=[],o.warnings=[],i.warnings=[],this._remainingData&&(t=Ote(this._remainingData,t),this._remainingData=null)),!t.length)return{videoTrack:o,audioTrack:i,metadataTrack:a};var s=0;if(!this._headerParsed){if(!e.probe(t))throw new Error("Invalid flv file");i.present=(4&t[4])>>>2!=0,o.present=0!=(1&t[4]),this._headerParsed=!0,s=Lte(t,5)+4}for(var u,c,l,f,h,p=t.length;s+15<p&&(u=t[s],!(s+15+(c=t[s+1]<<16|t[s+2]<<8|t[s+3])>p));){var d;l=(t[s+7]<<24>>>0)+(t[s+4]<<16)+(t[s+5]<<8)+t[s+6],s+=11,f=t.subarray(s,s+c),8===u?this._parseAudio(f,l):9===u?this._parseVideo(f,l):18===u?this._parseScript(f,l):Bte.warn("Invalid tag type: ".concat(u)),(h=Lte(t,s+=c))!==11+c&&Bte.warn(Qn(d="Invalid PrevTagSize ".concat(h," (")).call(d,11+c,")")),s+=4}return s<p&&(this._remainingData=t.subarray(s)),i.formatTimescale=o.formatTimescale=o.timescale=a.timescale=1e3,i.timescale=i.sampleRate||0,!i.exist()&&i.hasSample()&&i.reset(),!o.exist()&&o.hasSample()&&o.reset(),{videoTrack:o,audioTrack:i,metadataTrack:a}}},{key:"fix",value:function(e,t,r){return this._fixer.fix(e,t,r),{videoTrack:this.videoTrack,audioTrack:this.audioTrack,metadataTrack:this.metadataTrack}}},{key:"demuxAndFix",value:function(e,t,r,n){return this.demux(e,t,r),this.fix(n,t,r)}},{key:"_parseAudio",value:function(t,r){if(t.length){var n=(240&t[0])>>>4,i=this.audioTrack;if(10!==n&&7!==n&&8!==n)return Bte.warn("Unsupported sound format: ".concat(n)),void i.reset();if(10!==n){var o=(12&t[0])>>2,a=(2&t[0])>>1,s=1&t[0];i.sampleRate=e.AUDIO_RATE[o],i.sampleSize=a?16:8,i.channelCount=s+1}10===n?this._parseAac(t,r):this._parseG711(t,r,n)}}},{key:"_parseG711",value:function(e,t,r){var n=this.audioTrack;n.codecType=7===r?Lee:Pee,n.sampleRate=8e3,n.codec=n.codecType,n.samples.push(new Nee(t,e.subarray(1)))}},{key:"_parseAac",value:function(e,t){var r=this.audioTrack;if(r.codecType=Oee,0===e[1]){var n=Ste.parseAudioSpecificConfig(e.subarray(2));n?(r.codec=n.codec,r.channelCount=n.channelCount,r.sampleRate=n.sampleRate,r.config=n.config,r.objectType=n.objectType,r.sampleRateIndex=n.samplingFrequencyIndex):(r.reset(),Bte.warn("Cannot parse AudioSpecificConfig",e))}else if(1===e[1]){if(null==t)return;r.samples.push(new Nee(t,e.subarray(2)))}else Bte.warn("Unknown AACPacketType: ".concat(e[1]))}},{key:"_parseVideo",value:function(e,t){var r=this;if(!(e.length<6)){var n=(240&e[0])>>>4,i=15&e[0],o=this.videoTrack;if(7!==i&&12!==i)return o.reset(),void Bte.warn("Unsupported codecId: ".concat(i));var a=12===i;o.codecType=a?Eee:Aee;var s=e[1],u=(e[2]<<16|e[3]<<8|e[4])<<8>>8;if(0===s){var c=e.subarray(5),l=a?Ite.parseHEVCDecoderConfigurationRecord(c):Ute.parseAVCDecoderConfigurationRecord(c);if(l){var f=l.hvcC,h=l.sps,p=l.ppsArr,d=l.spsArr,v=l.vpsArr,y=l.nalUnitSize;f&&(o.hvcC=o.hvcC||f),h&&(o.codec=h.codec,o.width=h.width,o.height=h.height,o.sarRatio=h.sarRatio,o.fpsNum=h.fpsNum,o.fpsDen=h.fpsDen),d.length&&(o.sps=d),p.length&&(o.pps=p),v&&v.length&&(o.vps=v),y&&(o.nalUnitSize=y)}else Bte.warn("Cannot parse ".concat(a?"HEVC":"AVC","DecoderConfigurationRecord"),e)}else if(1===s){var g=Rte.parseAvcC(e.subarray(5),o.nalUnitSize);if((g=this._checkAddMetaNalToUnits(a,g,o))&&g.length){var m=new Fee(t+u,t,g);1===n&&m.setToKeyframe(),o.samples.push(m),af(g).call(g,(function(e){var n=a?e[0]>>>1&63:31&e[0];switch(n){case 5:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:if(!a&&5!==n||a&&5===n)break;m.setToKeyframe();break;case 6:case 39:case 40:if(!a&&6!==n||a&&6===n)break;r.metadataTrack.seiSamples.push(new Gee(Rte.parseSEI(Rte.removeEPB(e),a),t+u))}})),m.keyframe&&this._gopId++,m.gopId=this._gopId}else Bte.warn("Cannot parse NALUs",e)}else 2===s||Bte.warn("Unknown AVCPacketType: ".concat(s))}}},{key:"_checkAddMetaNalToUnits",value:function(e,t,r){if(!e||!this._needAddMetaBeforeKeyFrameNal)return this._needAddMetaBeforeKeyFrameNal=!1,t;var n=ET(t).call(t,(function(e){return e[0]>>>1&63}));return XR(n).call(n,32)?(this._needAddMetaBeforeKeyFrameNal=!1,t):(t.unshift(r.pps[0]),t.unshift(r.sps[0]),t.unshift(r.vps[0]),Bl(t).call(t,Boolean))}},{key:"_parseScript",value:function(e,t){this.metadataTrack.flvScriptSamples.push(new zee(Mte.parse(e),t))}}],[{key:"probe",value:function(e){return 70===e[0]&&76===e[1]&&86===e[2]&&1===e[3]&&Lte(e,5)>=9}}]),e}();tee(Fte,"AUDIO_RATE",[5500,11e3,22e3,44e3]);var Nte=tr,Vte=R,zte=Xe,Gte=c,qte=function(){var e=Nte(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Hte=RegExp.prototype,Wte=c,Yte=function(e){var t=e.flags;return void 0!==t||"flags"in Hte||zte(e,"flags")||!Gte(Hte,e)?t:Vte(qte,e)},$te=RegExp.prototype,Kte=t((function(e){return e===$te||Wte($te,e)?Yte(e):e.flags})),Qte=Hn("Array").entries,Xte=Zr,Jte=Xe,Zte=c,ere=Qte,tre=Array.prototype,rre={DOMTokenList:!0,NodeList:!0},nre=t((function(e){var t=e.entries;return e===tre||Zte(tre,e)&&t===tre.entries||Jte(rre,Xte(e))?ere:t})),ire=ym,ore=kG,are=m$,sre=vm,ure=pm.RegExp,cre=ure.prototype;ire&&sre((function(){var e=!0;try{ure(".","d")}catch(Cre){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",i=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)i(a,o[a]);return Object.getOwnPropertyDescriptor(cre,"flags").get.call(t)!==n||r!==n}))&&ore(cre,"flags",{configurable:!0,get:are});var lre=ik,fre=_Y.find,hre=RV,pre="find",dre=!0;pre in[]&&Array(1)[pre]((function(){dre=!1})),lre({target:"Array",proto:!0,forced:dre},{find:function(e){return fre(this,e,arguments.length>1?arguments[1]:void 0)}}),hre(pre);var vre=Hj,yre="ArrayBuffer",gre=HJ[yre];ik({global:!0,constructor:!0,forced:pm[yre]!==gre},{ArrayBuffer:gre}),vre(yre);var mre,bre=function(){function e(){J7(this,e),this.buffer=new Uint8Array(0)}return eee(e,[{key:"write",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];af(r).call(r,(function(t){t?e.buffer=function(e){for(var t=0,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];af(n).call(n,(function(e){t+=e.length}));var o=new e(t),a=0;return af(n).call(n,(function(e){o.set(e,a),a+=e.length})),o}(Uint8Array,e.buffer,t):window.console.warn(t)}))}}],[{key:"writeUint16",value:function(e){return new Uint8Array([e>>8&255,255&e])}},{key:"writeUint32",value:function(e){return new Uint8Array([e>>24,e>>16&255,e>>8&255,255&e])}}]),e}(),_re=Math.pow(2,32)-1,wre=function(){function e(){J7(this,e)}return eee(e,null,[{key:"box",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];r=Bl(r).call(r,Boolean);var i=8+fK(r).call(r,(function(e,t){return e+t.byteLength}),0),o=new Uint8Array(i);o[0]=i>>24&255,o[1]=i>>16&255,o[2]=i>>8&255,o[3]=255&i,o.set(e,4);var a=8;return af(r).call(r,(function(e){o.set(e,a),a+=e.byteLength})),o}},{key:"ftyp",value:function(t){return AS(t).call(t,(function(e){return e.type===kee&&e.codecType===Eee}))?e.FTYPHEV1:e.FTYPAVC1}},{key:"initSegment",value:function(t){return Ote(e.ftyp(t),e.moov(t))}},{key:"pssh",value:function(t){var r,n=new Uint8Array(Qn(r=[1,0,0,0]).call(r,[16,119,239,236,192,178,77,2,172,227,60,30,82,226,251,75],[0,0,0,1],Cte(t.kid),[0,0,0,0]));return e.box(e.types.pssh,n)}},{key:"moov",value:function(t){if(t[0].useEME&&(t[0].encv||t[0].enca)){var r;t[0].pssh||(t[0].pssh={kid:t[0].kid});var n=this.pssh(t[0].pssh);return e.box.apply(e,Qn(r=[e.types.moov,e.mvhd(t[0].mvhdDurtion||t[0].duration,t[0].mvhdTimecale||t[0].timescale),e.mvex(t)]).call(r,uee(ET(t).call(t,(function(t){return e.trak(t)}))),[n]))}var i;return e.box.apply(e,Qn(i=[e.types.moov,e.mvhd(t[0].mvhdDurtion||t[0].duration,t[0].mvhdTimecale||t[0].timescale)]).call(i,uee(ET(t).call(t,(function(t){return e.trak(t)}))),[e.mvex(t)]))}},{key:"mvhd",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4;return e.box(e.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,r>>24&255,r>>16&255,r>>8&255,255&r,t>>24&255,t>>16&255,t>>8&255,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(t){return e.box(e.types.trak,e.tkhd(t.id,t.tkhdDuration||0,t.width,t.height),e.mdia(t))}},{key:"tkhd",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return e.box(e.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,t>>24&255,t>>16&255,t>>8&255,255&t,0,0,0,0,r>>24&255,r>>16&255,r>>8&255,255&r,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,n>>8&255,255&n,0,0,i>>8&255,255&i,0,0]))}},{key:"mdia",value:function(t){return e.box(e.types.mdia,e.mdhd(t.duration,t.timescale),e.hdlr(t.type),e.minf(t))}},{key:"mdhd",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4;return e.box(e.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,r>>24&255,r>>16&255,r>>8&255,255&r,t>>24&255,t>>16&255,t>>8&255,255&t,85,196,0,0]))}},{key:"hdlr",value:function(t){return e.box(e.types.hdlr,e.HDLR_TYPES[t])}},{key:"minf",value:function(t){return e.box(e.types.minf,t.type===kee?e.VMHD:e.SMHD,e.DINF,e.stbl(t))}},{key:"stbl",value:function(t){var r=[];return t&&t.ext&&t.ext.stss&&r.push(e.stss(nre(t.ext.stss))),e.box(e.types.stbl,e.stsd(t),e.STTS,r[0],e.STSC,e.STSZ,e.STCO)}},{key:"stsd",value:function(t){var r;return r="audio"===t.type?t.useEME&&t.enca?e.enca(t):e.mp4a(t):t.useEME&&t.encv?e.encv(t):e.avc1hev1(t),e.box(e.types.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),r)}},{key:"enca",value:function(t){var r=t.enca.channelCount,n=t.enca.sampleRate,i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,r,0,16,0,0,0,0,n>>8&255,255&n,0,0]),o=e.esds(t.config),a=e.sinf(t.enca);return e.box(e.types.enca,i,o,a)}},{key:"encv",value:function(t){var r,n,i,o=t.sps.length>0?t.sps[0]:[],a=t.pps.length>0?t.pps[0]:[],s=t.width,u=t.height,c=t.sarRatio[0],l=t.sarRatio[1],f=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,s>>8&255,255&s,u>>8&255,255&u,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),h=new Uint8Array(Qn(n=Qn(r=Qn(i=[1,o[1],o[2],o[3],255,225,o.length>>>8&255,255&o.length]).apply(i,uee(o))).call(r,[1,a.length>>>8&255,255&a.length])).apply(n,uee(a))),p=new Uint8Array([0,0,88,57,0,15,200,192,0,4,86,72]),d=e.sinf(t.encv),v=new Uint8Array([c>>24,c>>16&255,c>>8&255,255&c,l>>24,l>>16&255,l>>8&255,255&l]);return e.box(e.types.encv,f,e.box(e.types.avcC,h),e.box(e.types.btrt,p),d,e.box(e.types.pasp,v))}},{key:"schi",value:function(t){var r=new Uint8Array([]),n=e.tenc(t);return e.box(e.types.schi,r,n)}},{key:"tenc",value:function(t){var r,n=new Uint8Array(Qn(r=[0,0,0,0,0,0,255&t.default_IsEncrypted,255&t.default_IV_size]).call(r,Cte(t.default_KID)));return e.box(e.types.tenc,n)}},{key:"sinf",value:function(t){var r=new Uint8Array([]),n=new Uint8Array([t.data_format.charCodeAt(0),t.data_format.charCodeAt(1),t.data_format.charCodeAt(2),t.data_format.charCodeAt(3)]),i=new Uint8Array([0,0,0,0,99,101,110,99,0,1,0,0]),o=e.schi(t);return e.box(e.types.sinf,r,e.box(e.types.frma,n),e.box(e.types.schm,i),o)}},{key:"avc1hev1",value:function(t){var r,n=t.codecType===Eee,i=n?e.types.hvc1:e.types.avc1,o=n?e.hvcC(t):e.avcC(t),a=[new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,t.width>>8&255,255&t.width,t.height>>8&255,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o];return n?a.push(e.box(e.types.fiel,new Uint8Array([1,0]))):t.sarRatio&&t.sarRatio.length>1&&a.push(e.pasp(t.sarRatio)),e.box.apply(e,Qn(r=[i]).call(r,a))}},{key:"avcC",value:function(t){var r,n,i,o,a,s,u=[],c=[];return af(r=t.sps).call(r,(function(e){s=e.byteLength,u.push(s>>>8&255),u.push(255&s),u.push.apply(u,uee(e))})),af(n=t.pps).call(n,(function(e){s=e.byteLength,c.push(s>>>8&255),c.push(255&s),c.push.apply(c,uee(e))})),e.box(e.types.avcC,new Uint8Array(Qn(o=Qn(i=Qn(a=[1,u[3],u[4],u[5],255,224|t.sps.length]).apply(a,u)).call(i,[t.pps.length])).apply(o,c)))}},{key:"hvcC",value:function(t){var r=t.hvcC;if(r instanceof ArrayBuffer||r instanceof Uint8Array)return r;var n,i=t.vps,o=t.sps,a=t.pps;if(r){var s=r.generalProfileCompatibilityFlags,u=r.generalConstraintIndicatorFlags,c=(i.length&&1)+(o.length&&1)+(a.length&&1);n=[1,r.generalProfileSpace<<6|r.generalTierFlag<<5|r.generalProfileIdc,s>>>24,s>>>16,s>>>8,s,u[0],u[1],u[2],u[3],u[4],u[5],r.generalLevelIdc,240,0,252,252|r.chromaFormatIdc,248|r.bitDepthLumaMinus8,248|r.bitDepthChromaMinus8,0,0,r.numTemporalLayers<<3|r.temporalIdNested<<2|3,c];var l=function(e){var t;n.push(e.length>>8,e.length),(t=n).push.apply(t,uee(e))};i.length&&(n.push(160,0,i.length),af(i).call(i,l)),o.length&&(n.push(161,0,o.length),af(o).call(o,l)),a.length&&(n.push(162,0,a.length),af(a).call(a,l))}else n=[1,1,96,0,0,0,144,0,0,0,0,0,93,240,0,252,253,248,248,0,0,15,3,160,0,1,0,24,64,1,12,1,255,255,1,96,0,0,3,0,144,0,0,3,0,0,3,0,93,153,152,9,161,0,1,0,45,66,1,1,1,96,0,0,3,0,144,0,0,3,0,0,3,0,93,160,2,128,128,45,22,89,153,164,147,43,154,128,128,128,130,0,0,3,0,2,0,0,3,0,50,16,162,0,1,0,7,68,1,193,114,180,98,64];return e.box(e.types.hvcC,new Uint8Array(n))}},{key:"pasp",value:function(t){var r=see(t,2),n=r[0],i=r[1];return e.box(e.types.pasp,new Uint8Array([n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i]))}},{key:"mp4a",value:function(t){return e.box(e.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,t.sampleRate>>8&255,255&t.sampleRate,0,0]),t.config.length?e.esds(t.config):void 0)}},{key:"esds",value:function(t){var r,n,i,o=t.length;return e.box(e.types.esds,new Uint8Array(Qn(r=Qn(n=Qn(i=[0,0,0,0,3,23+o,0,0,0,4,15+o,64,21,0,6,0,0,0,218,192,0,0,218,192,5]).call(i,[o])).call(n,t)).call(r,[6,1,2])))}},{key:"mvex",value:function(t){var r;return e.box.apply(e,Qn(r=[e.types.mvex]).call(r,uee(ET(t).call(t,(function(t){return e.trex(t.id)})))))}},{key:"trex",value:function(t){return e.box(e.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}},{key:"trex1",value:function(t){return e.box(e.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,2,0,0,0,0,0,0,1,0,0]))}},{key:"trex2",value:function(t){return e.box(e.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,4,0,0,0,0,0,2,0,0,0]))}},{key:"moof",value:function(t){var r;return e.box.apply(e,Qn(r=[e.types.moof,e.mfhd(t[0].samples?t[0].samples[0].gopId:0)]).call(r,uee(ET(t).call(t,(function(t){return e.traf(t)})))))}},{key:"mfhd",value:function(t){return e.box(e.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))}},{key:"traf",value:function(t){var r,n=e.tfhd(t.id),i=e.tfdt(t,t.baseMediaDecodeTime),o=0;if(t.isVideo&&t.videoSenc&&(r=t.videoSenc,af(r).call(r,(function(e){o+=8,e.subsamples&&e.subsamples.length&&(o+=2,o+=6*e.subsamples.length)}))),t.videoSencLength=o,t.useEME&&(t.isVideoEncryption||t.isAudioEncryption)){if(t.isVideoEncryption){if(t.isVideo){var a=e.saiz(t),s=e.saio(t),u=e.trun1(t),c=e.senc(t);return e.box(e.types.traf,n,i,a,s,u,c)}if(t.isAudioEncryption){var l=e.sbgp(),f=e.saiz(t),h=e.saio(t),p=e.senc(t),d=e.trun1(t);return e.box(e.types.traf,n,i,l,f,h,p,d)}var v=e.sbgp(),y=e.trun1(t);return e.box(e.types.traf,n,i,v,y)}if(t.isVideo){var g=e.trun1(t);return e.box(e.types.traf,n,i,g)}var m=e.sbgp(),b=e.saiz(t),_=e.saio(t),w=e.senc(t),x=e.trun1(t);return e.box(e.types.traf,n,i,m,b,_,w,x)}var k=e.sdtp(t);return e.box(e.types.traf,n,i,k,e.trun(t.samples,k.byteLength+76))}},{key:"sdtp",value:function(t){var r,n=new bre;return af(r=t.samples).call(r,(function(e){n.write(new Uint8Array(t.isVideo?[e.keyframe?32:16]:[16]))})),e.box(e.types.sdtp,this.extension(0,0),n.buffer)}},{key:"trun1",value:function(t){var r,n=new bre,i=bre.writeUint32(t.samples.length),o=null;if(t.isVideo){var a=t.videoSencLength;o=bre.writeUint32(16*t.samples.length+a+149),!t.isVideoEncryption&&t.isAudioEncryption&&(o=bre.writeUint32(16*t.samples.length+92))}else{var s=12*t.samples.length+124;t.isAudioEncryption&&(s=12*t.samples.length+8*t.audioSenc.length+177),o=bre.writeUint32(s)}return af(r=t.samples).call(r,(function(e){n.write(bre.writeUint32(e.duration)),n.write(bre.writeUint32(e.size)),n.write(bre.writeUint32(e.keyframe?33554432:65536)),t.isVideo&&n.write(bre.writeUint32(e.cts?e.cts:0))})),e.box(e.types.trun,this.extension(0,Kte(t)),i,o,n.buffer)}},{key:"senc",value:function(t){var r=new bre,n=t.samples.length,i=t.isVideo?16:8,o=t.isVideo?2:0,a=[],s=0;return t.isVideo?(a=t.videoSenc,s=t.videoSencLength):a=t.audioSenc,s=s||i*n,r.write(bre.writeUint32(16+s),e.types.senc,this.extension(0,o)),r.write(bre.writeUint32(n)),af(a).call(a,(function(e){for(var t=0;t<e.InitializationVector.length;t++)r.write(new Uint8Array([e.InitializationVector[t]]));var n;e.subsamples&&e.subsamples.length&&(r.write(bre.writeUint16(e.subsamples.length)),af(n=e.subsamples).call(n,(function(e){r.write(bre.writeUint16(e.BytesOfClearData)),r.write(bre.writeUint32(e.BytesOfProtectedData))})))})),r.buffer}},{key:"saio",value:function(t){var r=12*t.samples.length+141;!t.isVideo&&t.isAudioEncryption&&(r=149);var n=new Uint8Array([1,0,0,0,0,0,0,1,0,0,0,0,r>>24&255,r>>16&255,r>>8&255,255&r]);return e.box(e.types.saio,n)}},{key:"saiz",value:function(t){var r=t.samples.length,n=new Uint8Array([0,0,0,0,16,r>>24&255,r>>16&255,r>>8&255,255&r]);return e.box(e.types.saiz,n)}},{key:"sbgp",value:function(){var t=new Uint8Array([114,111,108,108,0,0,0,1,0,0,1,25,0,0,0,1]);return e.box(e.types.sbgp,this.extension(0,0),t)}},{key:"extension",value:function(e,t){return new Uint8Array([e,t>>16&255,t>>8&255,255&t])}},{key:"tfhd",value:function(t){return e.box(e.types.tfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))}},{key:"tfdt",value:function(t,r){var n=Math.floor(r/(_re+1)),i=Math.floor(r%(_re+1));return t.useEME&&(t.isVideoEncryption||t.isAudioEncryption)?e.box(e.types.tfdt,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])):e.box(e.types.tfdt,new Uint8Array([1,0,0,0,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i]))}},{key:"trun",value:function(t,r){var n=t.length,i=12+16*n;r+=8+i;var o=new Uint8Array(i);o.set([0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r],0);for(var a=0;a<n;a++){var s=t[a],u=s.duration,c=s.size,l=s.flag,f=void 0===l?{}:l,h=s.cts,p=void 0===h?0:h;o.set([u>>>24&255,u>>>16&255,u>>>8&255,255&u,c>>>24&255,c>>>16&255,c>>>8&255,255&c,f.isLeading<<2|(null===f.dependsOn||void 0===f.dependsOn?1:f.dependsOn),f.isDependedOn<<6|f.hasRedundancy<<4|f.paddingValue<<1|(null===f.isNonSyncSample||void 0===f.isNonSyncSample?1:f.isNonSyncSample),61440&f.degradationPriority,15&f.degradationPriority,p>>>24&255,p>>>16&255,p>>>8&255,255&p],12+16*a)}return e.box(e.types.trun,o)}},{key:"moovMP4",value:function(t){var r;return e.box.apply(e,Qn(r=[e.types.moov,e.mvhd(t[0].duration,t[0].timescale)]).call(r,uee(ET(t).call(t,(function(t){return e.trackMP4(t)})))))}},{key:"trackMP4",value:function(t){return e.box(e.types.trak,e.tkhd(t.id,t.duration,t.width,t.height),e.mdiaMP4(t))}},{key:"mdiaMP4",value:function(t){return e.box(e.types.mdia,e.mdhd(t.duration,t.timescale),e.hdlr(t.type),e.minfMP4(t))}},{key:"minfMP4",value:function(t){return e.box(e.types.minf,t.type===kee?e.VMHD:e.SMHD,e.DINF,e.stblMP4(t))}},{key:"stblMP4",value:function(t){var r,n=t.ext,i=[e.stsd(t),e.stts(n.stts),e.stsc(n.stsc),e.stsz(n.stsz),e.stco(n.stco)];return n.stss.length&&i.push(e.stss(n.stss)),n.ctts.length&&i.push(e.ctts(n.ctts)),e.box.apply(e,Qn(r=[e.types.stbl]).call(r,i))}},{key:"stts",value:function(t){var r=t.length,n=new Uint8Array(8*r),i=0;return af(t).call(t,(function(e){var t=e.value,r=e.count;n.set([r>>24,r>>16&255,r>>8&255,255&r,t>>24,t>>16&255,t>>8&255,255&t],i),i+=8})),e.box(e.types.stts,Ote(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"stsc",value:function(t){var r=t.length,n=new Uint8Array(12*r),i=0;return af(t).call(t,(function(e){var t=e.firstChunk,r=e.samplesPerChunk,o=e.sampleDescIndex;n.set([t>>24,t>>16&255,t>>8&255,255&t,r>>24,r>>16&255,r>>8&255,255&r,o>>24,o>>16&255,o>>8&255,255&o],i),i+=12})),e.box(e.types.stsc,Ote(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"stsz",value:function(t){var r=t.length,n=new Uint8Array(4*r),i=0;return af(t).call(t,(function(e){n.set([e>>24,e>>16&255,e>>8&255,255&e],i),i+=4})),e.box(e.types.stsz,Ote(new Uint8Array([0,0,0,0,0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"stco",value:function(t){var r=t.length,n=new Uint8Array(4*r),i=0;return af(t).call(t,(function(e){n.set([e>>24,e>>16&255,e>>8&255,255&e],i),i+=4})),e.box(e.types.stco,Ote(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"stss",value:function(t){var r=t.length,n=new Uint8Array(4*r),i=0;return af(t).call(t,(function(e){n.set([e>>24,e>>16&255,e>>8&255,255&e],i),i+=4})),e.box(e.types.stss,Ote(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"ctts",value:function(t){var r=t.length,n=new Uint8Array(8*r),i=0;return af(t).call(t,(function(e){var t=e.value,r=e.count;n.set([r>>24,r>>16&255,r>>8&255,255&r,t>>24,t>>16&255,t>>8&255,255&t],i),i+=8})),e.box(e.types.ctts,Ote(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"styp",value:function(){return e.box(e.types.styp,new Uint8Array([109,115,100,104,0,0,0,0,109,115,100,104,109,115,105,120]))}},{key:"sidx",value:function(t){var r,n=t.timescale,i=t.samples[0].duration,o=i*t.samples.length,a=t.samples[0].sampleOffset*i,s=8;af(r=t.samples).call(r,(function(e){s+=e.size}));var u=0;if(t.isVideo){var c,l=0;t.videoSenc&&(c=t.videoSenc),t.isVideo&&af(c).call(c,(function(e){l+=8,e.subsamples&&e.subsamples.length&&(l+=2,l+=6*e.subsamples.length)})),t.videoSencLength=l,u=s+141+16*t.samples.length+l,t.useEME&&t.isAudioEncryption&&!t.isVideoEncryption&&(u=s+16*t.samples.length+84)}else u=s+116+12*t.samples.length,t.useEME&&t.isAudioEncryption&&(u=s+169+12*t.samples.length+8*t.audioSenc.length);var f=new Uint8Array([0,0,0,0,0,0,0,255&t.id,n>>24&255,n>>16&255,n>>8&255,255&n,a>>24&255,a>>16&255,a>>8&255,255&a,0,0,0,0,0,0,0,1,0,u>>16&255,u>>8&255,255&u,o>>24&255,o>>16&255,o>>8&255,255&o,144,0,0,0]);return e.box(e.types.sidx,f)}},{key:"mdat",value:function(t){return e.box(e.types.mdat,t)}}]),e}();tee(wre,"types",fK(mre=["avc1","avcC","hvc1","hvcC","dinf","dref","esds","ftyp","hdlr","mdat","mdhd","mdia","mfhd","minf","moof","moov","mp4a","mvex","mvhd","pasp","stbl","stco","stsc","stsd","stsz","stts","tfdt","tfhd","traf","trak","trex","tkhd","vmhd","smhd","ctts","stss","styp","pssh","sidx","sbgp","saiz","saio","senc","trun","encv","enca","sinf","btrt","frma","tenc","schm","schi","mehd","fiel","sdtp"]).call(mre,(function(e,t){return e[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)],e}),Uf(null))),tee(wre,"HDLR_TYPES",{video:new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),audio:new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0])}),tee(wre,"FTYPAVC1",wre.box(wre.types.ftyp,new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]))),tee(wre,"FTYPHEV1",wre.box(wre.types.ftyp,new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,104,101,118,49]))),tee(wre,"DINF",wre.box(wre.types.dinf,wre.box(wre.types.dref,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1])))),tee(wre,"VMHD",wre.box(wre.types.vmhd,new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]))),tee(wre,"SMHD",wre.box(wre.types.smhd,new Uint8Array([0,0,0,0,0,0,0,0]))),tee(wre,"StblTable",new Uint8Array([0,0,0,0,0,0,0,0])),tee(wre,"STTS",wre.box(wre.types.stts,wre.StblTable)),tee(wre,"STSC",wre.box(wre.types.stsc,wre.StblTable)),tee(wre,"STSZ",wre.box(wre.types.stsz,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]))),tee(wre,"STCO",wre.box(wre.types.stco,wre.StblTable));var xre=function(){function e(t,r){J7(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]"),e.disabled=r}return eee(e,[{key:"debug",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];(r=console).debug.apply(r,Qn(t=[this._prefix]).call(t,i))}}},{key:"log",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];(r=console).log.apply(r,Qn(t=[this._prefix]).call(t,i))}}},{key:"warn",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];(r=console).warn.apply(r,Qn(t=[this._prefix]).call(t,i))}}},{key:"error",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];(r=console).error.apply(r,Qn(t=[this._prefix]).call(t,i))}}},{key:"table",value:function(){var t;e.disabled||(console.group(this._prefix),(t=console).table.apply(t,arguments),console.groupEnd())}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();tee(xre,"disabled",!0);var kre=function(){function e(t,r,n){J7(this,e),this.videoTrack=t,this.audioTrack=r;var i=/Chrome\/([^.]+)/.exec(navigator.userAgent);this.forceFirstIDR=i&&Number(i[1])<50,this.log=new xre("FMP4Remuxer",!n||!n.openLog||!n.openLog)}return eee(e,[{key:"remux",value:function(){var e,t,r,n,i,o=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=this.videoTrack,u=this.audioTrack,c=s.exist(),l=u.exist(),f=[];return o&&(a&&a.initMerge?(c&&f.push(this.videoTrack),l&&f.push(this.audioTrack),r=wre.initSegment(f)):(c&&(e=wre.initSegment([this.videoTrack])),l&&(t=wre.initSegment([this.audioTrack])))),c&&s.hasSample()&&(n=this._remuxVideo()),l&&u.hasSample()&&(i=this._remuxAudio()),s.samples=[],u.samples=[],{initSegment:r,videoInitSegment:e,audioInitSegment:t,videoSegment:n,audioSegment:i}}},{key:"_remuxVideo",value:function(){var e=this.videoTrack;this.forceFirstIDR&&(e.samples[0].flag={dependsOn:2,isNonSyncSample:0});var t=e.samples,r=0;af(t).call(t,(function(e){var t;r+=fK(t=e.units).call(t,(function(e,t){return e+t.byteLength}),0),r+=4*e.units.length}));for(var n,i=new Uint8Array(r),o=new DataView(i.buffer),a=function(e,r,a,s){var u;s=t[e];var l=0;af(u=s.units).call(u,(function(e){o.setUint32(a,e.byteLength),a+=4,i.set(e,a),a+=e.byteLength,l+=4+e.byteLength})),s.size=l,c=a,n=s},s=0,u=t.length,c=0;s<u;s++)a(s,0,c,n);var l=wre.mdat(i);return Ote(wre.moof([e]),l)}},{key:"_remuxAudio",value:function(){var e,t,r=this.audioTrack,n=new Uint8Array(fK(e=r.samples).call(e,(function(e,t){return e+t.size}),0));fK(t=r.samples).call(t,(function(e,t){return n.set(t.data,e),e+t.size}),0);var i=wre.mdat(n);return Ote(wre.moof([r]),i)}},{key:"reset",value:function(){this.videoTrack.reset(),this.audioTrack.reset()}}]),e}(),Sre=new gQ("BufferService"),Tre=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e4;rm(this,e),om(this,"flv",null),om(this,"_demuxer",new Fte),om(this,"_remuxer",null),om(this,"_mse",null),om(this,"_softVideo",null),om(this,"_sourceCreated",!1),om(this,"_needInitSegment",!0),om(this,"_discontinuity",!0),om(this,"_contiguous",!1),om(this,"_initSegmentId",""),om(this,"_cachedBuffer",null),om(this,"_demuxStartTime",0),om(this,"_analyzeDuration",0),this.flv=t,this._analyzeDuration=n,r?this._softVideo=r:(this._remuxer=new kre(this._demuxer.videoTrack,this._demuxer.audioTrack),this._mse=new SQ,this._mse.bindMedia(t.media))}var t,r,n,i,o,a;return im(e,[{key:"baseDts",get:function(){var e,t;return null===(e=this._demuxer)||void 0===e||null===(t=e._fixer)||void 0===t?void 0:t._baseDts}},{key:"seamlessSwitch",value:function(){this._needInitSegment=!0,this._discontinuity=!0,this._contiguous=!0,this._initSegmentId=""}},{key:"unContiguous",value:function(e){this._contiguous=!1,this._demuxStartTime=e}},{key:"reset",value:(a=tm(Zg().mark((function e(){var t,r=arguments;return Zg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.length>0&&void 0!==r[0]&&r[0],!this._mse||t){e.next=6;break}return e.next=4,this._mse.unbindMedia();case 4:return e.next=6,this._mse.bindMedia(this.flv.media);case 6:this._needInitSegment=!0,this._discontinuity=!0,this._contiguous=!1,this._sourceCreated=!1,this._initSegmentId="";case 11:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"endOfStream",value:(o=tm(Zg().mark((function e(){return Zg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mse){e.next=7;break}if(!this._sourceCreated){e.next=5;break}return e.next=4,this._mse.endOfStream();case 4:this.flv.emit(x4);case 5:e.next=8;break;case 7:this._softVideo&&this._softVideo.endOfStream();case 8:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"updateDuration",value:(i=tm(Zg().mark((function e(t){return Zg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mse){e.next=7;break}if(this._mse.isOpened){e.next=4;break}return e.next=4,this._mse.open();case 4:return Sre.debug("update duration",t),e.next=7,this._mse.updateDuration(t);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"destroy",value:(n=tm(Zg().mark((function e(){return Zg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mse){e.next=3;break}return e.next=3,this._mse.unbindMedia();case 3:this._mse=null,this._softVideo=null,this._demuxer=null,this._remuxer=null;case 7:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"appendBuffer",value:(r=tm(Zg().mark((function e(t){var r,n,i,o,a,s,u,c,l,f,h,p,d,v;return Zg().wrap((function(e){for(var y,g,m,b;;)switch(e.prev=e.next){case 0:if(this._cachedBuffer&&(t=K4(this._cachedBuffer,t),this._cachedBuffer=null),r=this._demuxer,t&&t.length&&r){e.next=4;break}return e.abrupt("return");case 4:e.prev=4,r.demuxAndFix(t,this._discontinuity,this._contiguous,this._demuxStartTime),e.next=11;break;case 8:throw e.prev=8,e.t0=e.catch(4),new wK(vK,bK.FLV,e.t0);case 11:if(n=r.videoTrack,i=r.audioTrack,o=r.metadataTrack,a=n.exist(),s=i.exist(),!(!a&&n.present||!s&&i.present)){e.next=27;break}if(u=0,(c=a?n:s?i:void 0)&&c.samples.length&&(u=(c.samples[c.samples.length-1].originPts-c.samples[0].originPts)/c.timescale*1e3),!(u>this._analyzeDuration)){e.next=25;break}Sre.warn("analyze duration exceeded, ".concat(u,"ms"),c),n.present=a,i.present=s,this.flv.emit(_4,{duration:u}),e.next=27;break;case 25:return this._cachedBuffer=t,e.abrupt("return");case 27:if(l=n.type,f=i.type,this._fireEvents(n,i,o),this._discontinuity=!1,this._contiguous=!0,this._demuxStartTime=0,h=this._mse,this.flv.emit(C4,n),(p=Qn(y=Qn(g=Qn(m=Qn(b="".concat(n.codec,"/")).call(b,n.width,"/")).call(m,n.height,"/")).call(g,i.codec,"/")).call(y,i.config))!==this._initSegmentId&&(this._needInitSegment=!0,this._initSegmentId=p,this._emitMetaParsedEvent(n,i)),!h){e.next=63;break}if(this._sourceCreated){e.next=45;break}return e.next=41,h.open();case 41:a&&(Sre.log("codec: video/mp4;codecs=".concat(n.codec)),h.createSource(l,"video/mp4;codecs=".concat(n.codec))),s&&(Sre.log("codec: audio/mp4;codecs=".concat(i.codec)),h.createSource(f,"audio/mp4;codecs=".concat(i.codec))),this._sourceCreated=!0,this.flv.emit(b4);case 45:e.prev=45,d=this._remuxer.remux(this._needInitSegment),e.next=52;break;case 49:throw e.prev=49,e.t1=e.catch(45),new wK(yK,bK.FMP4,e.t1);case 52:if(!this._needInitSegment||d.videoInitSegment||d.audioInitSegment){e.next=54;break}return e.abrupt("return");case 54:return this._needInitSegment=!1,v=[],d.videoInitSegment&&v.push(h.append(l,d.videoInitSegment)),d.audioInitSegment&&v.push(h.append(f,d.audioInitSegment)),d.videoSegment&&v.push(h.append(l,d.videoSegment)),d.audioSegment&&v.push(h.append(f,d.audioSegment)),e.abrupt("return",Gy.all(v));case 63:this._softVideo&&this._softVideo.appendBuffer(n,i);case 64:case"end":return e.stop()}}),e,this,[[4,8],[45,49]])}))),function(e){return r.apply(this,arguments)})},{key:"evictBuffer",value:(t=tm(Zg().mark((function e(t){var r,n,i,o=this;return Zg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.flv.media,this._mse&&this._demuxer&&r&&t&&!(t<0)){e.next=3;break}return e.abrupt("return");case 3:if(n=r.currentTime,!((i=n-t)<=0)){e.next=7;break}return e.abrupt("return");case 7:if(!(hK.start(hK.get(r))+1>=i)){e.next=10;break}return e.abrupt("return");case 10:return e.abrupt("return",this._mse.clearBuffer(0,i).then((function(){return o.flv.emit(w4,{removeEnd:i})})));case 11:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"_emitMetaParsedEvent",value:function(e,t){e.exist()&&this.flv.emit(S4,{type:"video",track:e,meta:{codec:e.codec,timescale:e.timescale,width:e.width,height:e.height,sarRatio:e.sarRatio,baseDts:e.baseDts}}),t.exist()&&this.flv.emit(S4,{type:"audio",track:t,meta:{codec:t.codec,channelCount:t.channelCount,sampleRate:t.sampleRate,timescale:t.timescale,baseDts:t.baseDts}}),Sre.debug("track parsed",e,t)}},{key:"_fireEvents",value:function(e,t,r){var n,i,o,a,s,u=this;Sre.debug(e.samples,t.samples),af(n=r.flvScriptSamples).call(n,(function(e){u.flv.emit(E4,e),Sre.debug("flvScriptData",e)})),af(i=e.samples).call(i,(function(e){e.keyframe&&u.flv.emit(k4,{pts:e.pts})})),af(o=e.warnings).call(o,(function(e){var t;switch(e.type){case Cee:t=D4;break;case Ree:t=U4;break;case Dee:t=B4}t&&u.flv.emit(R4,Jg(Jg({},e),{},{type:t})),Sre.warn("video exception",e)})),af(a=t.warnings).call(a,(function(e){var t;switch(e.type){case Uee:t=I4;break;case Iee:t=j4;break;case jee:t=M4}t&&u.flv.emit(R4,Jg(Jg({},e),{},{type:t})),Sre.warn("audio exception",e)})),af(s=r.seiSamples).call(s,(function(e){u.flv.emit(T4,Jg(Jg({},e),{},{sei:{code:e.data.type,content:e.data.payload,dts:e.pts}}))}))}}]),e}();function Are(e,t){var r=0,n=e.length-1,i=0,o=0,a=n;for(t<e[0]&&(r=0,o=a+1);o<=a;){if((i=o+Math.floor((a-o)/2))===n||t>=e[i]&&t<e[i+1]){r=i;break}e[i]<t?o=i+1:a=i-1}return r}var Ere=new gQ("flv"),Ore=function(e){am(c,e);var t,r,n,i,o,a,s,u=lm(c);function c(e){var t,r;return rm(this,c),om(cm(t=u.call(this)),"media",null),om(cm(t),"_loading",!1),om(cm(t),"_opts",null),om(cm(t),"_bufferService",null),om(cm(t),"_gapService",null),om(cm(t),"_stats",null),om(cm(t),"_mediaLoader",null),om(cm(t),"_maxChunkWaitTimer",null),om(cm(t),"_tickTimer",null),om(cm(t),"_tickInterval",500),om(cm(t),"_urlSwitching",!1),om(cm(t),"_seamlessSwitching",!1),om(cm(t),"_keyframes",null),om(cm(t),"_acceptRanges",!0),om(cm(t),"_onProgress",function(){var e=tm(Zg().mark((function e(r,n,i,o){var a,s,u,c,l,f,h,p;return Zg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=i.startTime,s=i.endTime,u=i.st,c=i.firstByteTime,t._loading=!n,t._firstProgressEmit){e.next=11;break}if(t.media){e.next=6;break}return null===(l=t._mediaLoader)||void 0===l||l.cancel(),e.abrupt("return");case 6:f=o.headers,t.emit(d4,{url:t._opts.url,responseUrl:o.url,elapsed:u?c-u:s-a}),t.emit(y4,{headers:f}),t._acceptRanges=!(null==f||!f.get("Accept-Ranges"))||!(null==f||!f.get("Content-Range")),t._firstProgressEmit=!0;case 11:if(t._bufferService){e.next=13;break}return e.abrupt("return");case 13:return clearTimeout(t._maxChunkWaitTimer),t._bandwidthService.addChunkRecord(null==r?void 0:r.byteLength,s-a),e.prev=15,e.next=18,t._bufferService.appendBuffer(r);case 18:t.isLive&&(null===(h=t._bufferService)||void 0===h||h.evictBuffer(t._opts.bufferBehind)),e.next=24;break;case 21:return e.prev=21,e.t0=e.catch(15),e.abrupt("return",t._emitError(wK.create(e.t0)));case 24:if(t._urlSwitching&&(t._urlSwitching=!1,t.emit(L4,{url:t._opts.url})),t._seamlessSwitching&&(t._seamlessSwitching=!1,t.media.play().catch((function(){})),t._tick()),!n||t.media.seeking){e.next=32;break}return t.emit(g4),Ere.debug("load done"),e.abrupt("return",t._end());case 32:(p=t._opts.maxReaderInterval)&&(clearTimeout(t._maxChunkWaitTimer),t._maxChunkWaitTimer=bE((function(){Ere.debug("onMaxChunkWait",p),t._end()}),p));case 34:case"end":return e.stop()}}),e,null,[[15,21]])})));return function(t,r,n,i){return e.apply(this,arguments)}}()),om(cm(t),"_onRetryError",(function(e,r){Ere.debug("load retry",e,r),t.emit(m4,{error:wK.network(e),retryTime:r})})),om(cm(t),"_end",(function(){t._clear(),t._bufferService&&t._bufferService.endOfStream(),Ere.debug("end stream")})),om(cm(t),"_tick",(function(){clearTimeout(t._tickTimer);var e=cm(t).media;if(e){t._tickTimer=bE(t._tick,t._tickInterval);var r=hK.end(hK.get(e));if(!(r<.1)&&e.readyState){var n=t._opts;if(function(e){return e&&!e.paused&&!e.ended&&0!==e.playbackRate&&0!==e.readyState}(e))t._gapService&&t._gapService.do(e,n.maxJumpDistance,t.isLive,3);else{if(!e.currentTime&&t._gapService)return void t._gapService.do(e,n.maxJumpDistance,t.isLive,3);n.isLive&&r>n.disconnectTime&&t.disconnect()}}}})),om(cm(t),"_onPlay",(function(){var e,r,n=t._opts.softDecode||(null===(e=t.media)||void 0===e||null===(r=e.buffered)||void 0===r?void 0:r.length);t.isLive&&!t._loading&&n&&t.replay(void 0,!0)})),om(cm(t),"_onSeeking",tm(Zg().mark((function e(){var r,n,i,o,a;return Zg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.isLive||!t.seekable){e.next=14;break}if(r=t._keyframes.times,n=t._keyframes.filepositions,null!=r&&r.length&&null!=n&&n.length){e.next=5;break}return e.abrupt("return");case 5:if(i=t.media.currentTime,o=Are(t._keyframes.times,i),null!=(a=n[o])){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,t._mediaLoader.cancel();case 12:t._loadData(null,[a]),t._bufferService.unContiguous(r[o]);case 14:case"end":return e.stop()}}),e)})))),om(cm(t),"_onTimeupdate",(function(){if(t.media){var e=t._opts,r=t.media.currentTime;if(e.isLive&&e.maxLatency&&e.targetLatency){var n=hK.end(hK.get(t.media));n-r>=e.maxLatency&&(t.media.currentTime=n-e.targetLatency)}t._seiService.throw(r)}})),om(cm(t),"_onFlvScriptData",(function(e){var r,n,i,o,a=null===(r=e.data)||void 0===r||null===(n=r.onMetaData)||void 0===n?void 0:n.keyframes,s=null===(i=e.data)||void 0===i||null===(o=i.onMetaData)||void 0===o?void 0:o.duration;a&&(t._keyframes=a),!t._opts.isLive&&s&&t._bufferService.updateDuration(s)})),t._opts=((r=Jg({retryCount:3,retryDelay:1e3,loadTimeout:1e4,maxReaderInterval:5e3,preloadTime:5,isLive:!1,softDecode:!1,bufferBehind:10,maxJumpDistance:3,analyzeDuration:2e4,seamlesslyReload:!1},e)).isLive&&r.preloadTime&&(r.maxLatency||(r.maxLatency=2*r.preloadTime),r.targetLatency||(r.targetLatency=r.preloadTime),null!==r.disconnectTime&&void 0!==r.disconnectTime||(r.disconnectTime=r.maxLatency)),r),t.media=t._opts.media||document.createElement("video"),t._opts.media=null,t._firstProgressEmit=!1,t._mediaLoader=new X4(Jg(Jg({},t._opts.fetchOptions),{},{retry:t._opts.retryCount,retryDelay:t._opts.retryDelay,timeout:t._opts.loadTimeout,onRetryError:t._onRetryError,onProgress:t._onProgress,responseType:"arraybuffer"})),t._bufferService=new Tre(cm(t),t._opts.softDecode?t.media:void 0,t._opts.analyzeDuration),t._seiService=new $7(cm(t)),t._bandwidthService=new K7,t._stats=new X7(cm(t)),t._opts.softDecode||(t._gapService=new J4),t.media.addEventListener("play",t._onPlay),t.media.addEventListener("seeking",t._onSeeking),t.media.addEventListener("timeupdate",t._onTimeupdate),t.on(E4,t._onFlvScriptData),t}return im(c,[{key:"version",get:function(){return"3.0.0-next.23"}},{key:"isLive",get:function(){return this._opts.isLive}},{key:"baseDts",get:function(){var e;return null===(e=this._bufferService)||void 0===e?void 0:e.baseDts}},{key:"seekable",get:function(){return!!this._keyframes&&this._acceptRanges}},{key:"speedInfo",value:function(){return{speed:this._bandwidthService.getLatestSpeed(),avgSpeed:this._bandwidthService.getAvgSpeed()}}},{key:"getStats",value:function(){return this._stats.getStats()}},{key:"bufferInfo",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.1;return hK.info(hK.get(this.media),null===(e=this.media)||void 0===e?void 0:e.currentTime,t)}},{key:"playbackQuality",value:function(){return function(e){if(!e)return{};if("function"==typeof e.getVideoPlaybackQuality){var t=e.getVideoPlaybackQuality();return{droppedVideoFrames:t.droppedVideoFrames||t.corruptedVideoFrames,totalVideoFrames:t.totalVideoFrames,creationTime:t.creationTime}}return{droppedVideoFrames:e.webkitDroppedFrameCount,totalVideoFrames:e.webkitDecodedFrameCount,creationTime:performance.now()}}(this.media)}},{key:"load",value:(s=tm(Zg().mark((function e(t){var r,n=arguments;return Zg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.length>1&&void 0!==n[1]&&n[1],this._bufferService){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this._reset(r);case 5:this._loadData(t),clearTimeout(this._tickTimer),this._tickTimer=bE(this._tick,this._tickInterval);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"replay",value:(a=tm(Zg().mark((function e(){var t,r,n=this,i=arguments;return Zg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:this._opts.seamlesslyReload,r=i.length>1?i[1]:void 0,this.media){e.next=4;break}return e.abrupt("return");case 4:if(!t){e.next=10;break}return e.next=7,this._clear();case 7:bE((function(){n._loadData(n._opts.url),n._bufferService.seamlessSwitch(),n._seamlessSwitching=!0})),e.next=12;break;case 10:return e.next=12,this.load();case 12:return e.abrupt("return",this.media.play(!r).catch((function(){})));case 13:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"disconnect",value:function(){return Ere.debug("disconnect!"),this._clear()}},{key:"switchURL",value:(o=tm(Zg().mark((function e(t,r){var n=this;return Zg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._bufferService){e.next=2;break}return e.abrupt("return");case 2:if(r&&this._opts.isLive){e.next=7;break}return e.next=5,this.load(t);case 5:return this._urlSwitching=!0,e.abrupt("return",this.media.play(!0).catch((function(){})));case 7:return e.next=9,this._clear();case 9:bE((function(){n._loadData(t),n._bufferService.seamlessSwitch(),n._urlSwitching=!0,n._seamlessSwitching=!0}));case 10:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"destroy",value:(i=tm(Zg().mark((function e(){return Zg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.media){e.next=2;break}return e.abrupt("return");case 2:return this.removeAllListeners(),this._seiService.reset(),this.media.removeEventListener("play",this._onPlay),this.media.removeEventListener("seeking",this._onSeeking),this.media.removeEventListener("timeupdate",this._onTimeupdate),e.next=9,Gy.all([this._clear(),this._bufferService.destroy()]);case 9:this.media=null,this._bufferService=null;case 11:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"_emitError",value:function(e){var t,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Ere.table(e),Ere.error(e),Ere.error(null===(t=this.media)||void 0===t?void 0:t.error),this._urlSwitching&&(this._urlSwitching=!1,this._seamlessSwitching=!1,this.emit(P4,e)),this.emit(p4,e),r&&(this._seiService.reset(),this._end())}},{key:"_reset",value:(n=tm(Zg().mark((function e(){var t,r=arguments;return Zg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]&&r[0],this._seiService.reset(),this._bandwidthService.reset(),this._stats.reset(),e.next=6,this._clear();case 6:return e.next=8,this._bufferService.reset(t);case 8:this._firstProgressEmit=!1;case 9:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"_loadData",value:(r=tm(Zg().mark((function e(t,r){return Zg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&(this._opts.url=t),t=this._opts.url){e.next=4;break}throw new Error("Source url is missing");case 4:if(this.emit(v4,{url:t}),Ere.debug("load data, loading:",this._loading,t),!this._loading){e.next=9;break}return e.next=9,this._mediaLoader.cancel();case 9:return this._loading=!0,e.prev=10,e.next=13,this._mediaLoader.load({url:t,range:r});case 13:e.next=18;break;case 15:return e.prev=15,e.t0=e.catch(10),e.abrupt("return",this._emitError(wK.network(e.t0)));case 18:case"end":return e.stop()}}),e,this,[[10,15]])}))),function(e,t){return r.apply(this,arguments)})},{key:"_clear",value:(t=tm(Zg().mark((function e(){return Zg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(clearTimeout(this._maxChunkWaitTimer),clearTimeout(this._tickTimer),!this._mediaLoader){e.next=5;break}return e.next=5,this._mediaLoader.cancel();case 5:this._loading=!1;case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}],[{key:"isSupported",value:function(e){return e&&"video"!==e&&"audio"!==e?"undefined"!=typeof WebAssembly:SQ.isSupported()}},{key:"enableLogger",value:function(){gQ.enable(),cte.enable()}},{key:"disableLogger",value:function(){gQ.disable(),cte.disable()}}]),c}(EA);try{localStorage.getItem("xgd")?Ore.enableLogger():Ore.disableLogger()}catch(Cre){}var Lre=function(){function e(t,r){var n=this;rm(this,e),om(this,"_onLowDecode",(function(){var e,t,r,i,o=n._opts,a=o.media,s=o.innerDegrade,u=o.backupURL;null===(e=n._plugin)||void 0===e||null===(t=e.player)||void 0===t||t.emit("lowdecode",a.degradeInfo),null===(r=n._plugin)||void 0===r||null===(i=r.player)||void 0===i||i.emit("core_event",Jg(Jg({},a.degradeInfo),{},{eventName:O4})),1!==s&&3!==s||!u||n._degrade(u)})),om(this,"_degrade",(function(e){var t=n._plugin.player,r=t.video;if("MVideo"===(null==r?void 0:r.TAG)){var i=t.video.degradeVideo;t.video=i,r.degrade(e),e&&(t.config.url=e);var o=t.root.firstChild;"MVideo"===o.TAG&&t.root.replaceChild(i,o);var a=n._plugin.constructor.pluginName.toLowerCase();t.unRegisterPlugin(a),t.once("canplay",(function(){t.play()}))}})),om(this,"forceDegradeToVideo",(function(e){var t=n._opts.innerDegrade;1!==t&&3!==t||n._degrade(e)})),this._opts=t,this._plugin=r,this._init()}return im(e,[{key:"_init",value:function(){var e=this._opts,t=e.media,r=e.preloadTime,n=e.innerDegrade,i=e.decodeMode;t&&(n&&t.setAttribute("innerdegrade",n),r&&t.setAttribute("preloadtime",r),t.setDecodeMode&&t.setDecodeMode(i),this._bindEvents())}},{key:"_bindEvents",value:function(){this._opts.media.addEventListener("lowdecode",this._onLowDecode)}},{key:"destroy",value:function(){var e,t;null===(e=this._opts)||void 0===e||null===(t=e.media)||void 0===t||t.removeEventListener("lowdecode",this._onLowDecode),this._plugin=null}}]),e}(),Pre=function(e){am(r,e);var t=lm(r);function r(){var e,n;rm(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return om(cm(n=t.call.apply(t,Qn(e=[this]).call(e,o))),"flv",null),om(cm(n),"pluginExtension",null),om(cm(n),"getStats",(function(){var e;return null===(e=n.flv)||void 0===e?void 0:e.getStats()})),om(cm(n),"destroy",(function(){var e;n.flv&&(n.flv.destroy(),n.flv=null),null===(e=n.pluginExtension)||void 0===e||e.destroy(),n.pluginExtension=null})),om(cm(n),"_onSwitchURL",(function(e,t){n.flv&&(n.player.config.url=e,n.flv.switchURL(e,t))})),om(cm(n),"_onDefinitionChange",(function(e){var t=e.to;n.flv&&n.flv.switchURL(t)})),n}return im(r,[{key:"core",get:function(){return this.flv}},{key:"version",get:function(){var e;return null===(e=this.flv)||void 0===e?void 0:e.version}},{key:"softDecode",get:function(){var e,t,r=null===(e=this.player)||void 0===e||null===(t=e.config)||void 0===t?void 0:t.mediaType;return!!r&&"video"!==r&&"audio"!==r}},{key:"beforePlayerInit",value:function(){var e=this,t=this.player.config;if(t.url){this.flv&&this.flv.destroy(),this.player.switchURL=this._onSwitchURL;var r,n=t.flv||{};if(null!==n.disconnectTime&&void 0!==n.disconnectTime||(n.disconnectTime=0),this.flv=new Ore(Jg({softDecode:this.softDecode,isLive:t.isLive,media:this.player.video},n)),this.softDecode||QO.defineGetterOrSetter(this.player,{url:{get:function(){var t,r;return null===(t=e.flv)||void 0===t||null===(r=t.media)||void 0===r?void 0:r.src},configurable:!0}}),this.softDecode&&(this.pluginExtension=new Lre(Jg({media:this.player.video},t.flv),this),this.player.forceDegradeToVideo=function(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return null===(t=e.pluginExtension)||void 0===t?void 0:t.forceDegradeToVideo.apply(t,n)}),t.isLive)null===(r=this.player)||void 0===r||r.useHooks("replay",(function(){var t;return null===(t=e.flv)||void 0===t?void 0:t.replay()}));this.on("urlchange",this._onSwitchURL),this.on("destroy",this.destroy),this._transError(),this._transCoreEvent(d4),this._transCoreEvent(v4),this._transCoreEvent(y4),this._transCoreEvent(g4),this._transCoreEvent(m4),this._transCoreEvent(b4),this._transCoreEvent(_4),this._transCoreEvent(w4),this._transCoreEvent(x4),this._transCoreEvent(k4),this._transCoreEvent(S4),this._transCoreEvent(T4),this._transCoreEvent(A4),this._transCoreEvent(E4),this._transCoreEvent(R4),this._transCoreEvent(L4),this._transCoreEvent(P4),this.flv.load(t.url,!0)}}},{key:"_transError",value:function(){var e=this;this.flv.on(p4,(function(t){e.player&&e.player.emit("error",new qO(e.player,t))}))}},{key:"_transCoreEvent",value:function(e){var t=this;this.flv.on(e,(function(r){t.player&&t.player.emit("core_event",Jg(Jg({},r),{},{eventName:e}))}))}}],[{key:"pluginName",get:function(){return"flv"}},{key:"isSupported",value:function(e,t){return Ore.isSupported(e,t)}}]),r}(QO);om(Pre,"Flv",Ore),VePlayer.register("plugin:flv",Pre)}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).__VEPLAYER_PLUGIN_FLV__={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n=function(e){try{return!!e()}catch(t){return!0}},i=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),a=i,o=Function.prototype,s=o.call,u=a&&o.bind.bind(s,s),c=a?u:function(e){return function(){return s.apply(e,arguments)}},l=c({}.isPrototypeOf),f=function(e){return e&&e.Math==Math&&e},h=f("object"==typeof globalThis&&globalThis)||f("object"==typeof window&&window)||f("object"==typeof self&&self)||f("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),d=i,p=Function.prototype,v=p.apply,y=p.call,g="object"==typeof Reflect&&Reflect.apply||(d?y.bind(v):function(){return y.apply(v,arguments)}),m=c,_=m({}.toString),b=m("".slice),w=function(e){return b(_(e),8,-1)},k=w,x=c,S=function(e){if("Function"===k(e))return x(e)},E="object"==typeof document&&document.all,T={all:E,IS_HTMLDDA:void 0===E&&void 0!==E},A=T.all,L=T.IS_HTMLDDA?function(e){return"function"==typeof e||e===A}:function(e){return"function"==typeof e},O={},C=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),D=i,P=Function.prototype.call,R=D?P.bind(P):function(){return P.apply(P,arguments)},U={},I={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,B=M&&!I.call({1:2},1);U.f=B?function(e){var t=M(this,e);return!!t&&t.enumerable}:I;var j,F,N=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},V=n,z=w,G=Object,q=c("".split),H=V((function(){return!G("z").propertyIsEnumerable(0)}))?function(e){return"String"==z(e)?q(e,""):G(e)}:G,W=function(e){return null==e},K=W,Y=TypeError,J=function(e){if(K(e))throw Y("Can't call method on "+e);return e},Q=H,X=J,$=function(e){return Q(X(e))},Z=L,ee=T.all,te=T.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Z(e)||e===ee}:function(e){return"object"==typeof e?null!==e:Z(e)},re={},ne=re,ie=h,ae=L,oe=function(e){return ae(e)?e:void 0},se=function(e,t){return arguments.length<2?oe(ne[e])||oe(ie[e]):ne[e]&&ne[e][t]||ie[e]&&ie[e][t]},ue="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ce=h,le=ue,fe=ce.process,he=ce.Deno,de=fe&&fe.versions||he&&he.version,pe=de&&de.v8;pe&&(F=(j=pe.split("."))[0]>0&&j[0]<4?1:+(j[0]+j[1])),!F&&le&&(!(j=le.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=le.match(/Chrome\/(\d+)/))&&(F=+j[1]);var ve=F,ye=ve,ge=n,me=h.String,_e=!!Object.getOwnPropertySymbols&&!ge((function(){var e=Symbol();return!me(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ye&&ye<41})),be=_e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,we=se,ke=L,xe=l,Se=Object,Ee=be?function(e){return"symbol"==typeof e}:function(e){var t=we("Symbol");return ke(t)&&xe(t.prototype,Se(e))},Te=String,Ae=function(e){try{return Te(e)}catch(t){return"Object"}},Le=L,Oe=Ae,Ce=TypeError,De=function(e){if(Le(e))return e;throw Ce(Oe(e)+" is not a function")},Pe=De,Re=W,Ue=function(e,t){var r=e[t];return Re(r)?void 0:Pe(r)},Ie=R,Me=L,Be=te,je=TypeError,Fe={exports:{}},Ne=h,Ve=Object.defineProperty,ze=function(e,t){try{Ve(Ne,e,{value:t,configurable:!0,writable:!0})}catch(r){Ne[e]=t}return t},Ge="__core-js_shared__",qe=h[Ge]||ze(Ge,{}),He=qe;(Fe.exports=function(e,t){return He[e]||(He[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var We=Fe.exports,Ke=J,Ye=Object,Je=function(e){return Ye(Ke(e))},Qe=Je,Xe=c({}.hasOwnProperty),$e=Object.hasOwn||function(e,t){return Xe(Qe(e),t)},Ze=c,et=0,tt=Math.random(),rt=Ze(1..toString),nt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rt(++et+tt,36)},it=We,at=$e,ot=nt,st=_e,ut=be,ct=h.Symbol,lt=it("wks"),ft=ut?ct.for||ct:ct&&ct.withoutSetter||ot,ht=function(e){return at(lt,e)||(lt[e]=st&&at(ct,e)?ct[e]:ft("Symbol."+e)),lt[e]},dt=R,pt=te,vt=Ee,yt=Ue,gt=function(e,t){var r,n;if("string"===t&&Me(r=e.toString)&&!Be(n=Ie(r,e)))return n;if(Me(r=e.valueOf)&&!Be(n=Ie(r,e)))return n;if("string"!==t&&Me(r=e.toString)&&!Be(n=Ie(r,e)))return n;throw je("Can't convert object to primitive value")},mt=TypeError,_t=ht("toPrimitive"),bt=function(e,t){if(!pt(e)||vt(e))return e;var r,n=yt(e,_t);if(n){if(void 0===t&&(t="default"),r=dt(n,e,t),!pt(r)||vt(r))return r;throw mt("Can't convert object to primitive value")}return void 0===t&&(t="number"),gt(e,t)},wt=Ee,kt=function(e){var t=bt(e,"string");return wt(t)?t:t+""},xt=te,St=h.document,Et=xt(St)&&xt(St.createElement),Tt=function(e){return Et?St.createElement(e):{}},At=Tt,Lt=!C&&!n((function(){return 7!=Object.defineProperty(At("div"),"a",{get:function(){return 7}}).a})),Ot=C,Ct=R,Dt=U,Pt=N,Rt=$,Ut=kt,It=$e,Mt=Lt,Bt=Object.getOwnPropertyDescriptor;O.f=Ot?Bt:function(e,t){if(e=Rt(e),t=Ut(t),Mt)try{return Bt(e,t)}catch(r){}if(It(e,t))return Pt(!Ct(Dt.f,e,t),e[t])};var jt=n,Ft=L,Nt=/#|\.prototype\./,Vt=function(e,t){var r=Gt[zt(e)];return r==Ht||r!=qt&&(Ft(t)?jt(t):!!t)},zt=Vt.normalize=function(e){return String(e).replace(Nt,".").toLowerCase()},Gt=Vt.data={},qt=Vt.NATIVE="N",Ht=Vt.POLYFILL="P",Wt=Vt,Kt=De,Yt=i,Jt=S(S.bind),Qt=function(e,t){return Kt(e),void 0===t?e:Yt?Jt(e,t):function(){return e.apply(t,arguments)}},Xt={},$t=C&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Zt=te,er=String,tr=TypeError,rr=function(e){if(Zt(e))return e;throw tr(er(e)+" is not an object")},nr=C,ir=Lt,ar=$t,or=rr,sr=kt,ur=TypeError,cr=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,fr="enumerable",hr="configurable",dr="writable";Xt.f=nr?ar?function(e,t,r){if(or(e),t=sr(t),or(r),"function"==typeof e&&"prototype"===t&&"value"in r&&dr in r&&!r[dr]){var n=lr(e,t);n&&n[dr]&&(e[t]=r.value,r={configurable:hr in r?r[hr]:n[hr],enumerable:fr in r?r[fr]:n[fr],writable:!1})}return cr(e,t,r)}:cr:function(e,t,r){if(or(e),t=sr(t),or(r),ir)try{return cr(e,t,r)}catch(n){}if("get"in r||"set"in r)throw ur("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var pr=Xt,vr=N,yr=C?function(e,t,r){return pr.f(e,t,vr(1,r))}:function(e,t,r){return e[t]=r,e},gr=h,mr=g,_r=S,br=L,wr=O.f,kr=Wt,xr=re,Sr=Qt,Er=yr,Tr=$e,Ar=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return mr(e,this,arguments)};return t.prototype=e.prototype,t},Lr=function(e,t){var r,n,i,a,o,s,u,c,l,f=e.target,h=e.global,d=e.stat,p=e.proto,v=h?gr:d?gr[f]:(gr[f]||{}).prototype,y=h?xr:xr[f]||Er(xr,f,{})[f],g=y.prototype;for(a in t)n=!(r=kr(h?a:f+(d?".":"#")+a,e.forced))&&v&&Tr(v,a),s=y[a],n&&(u=e.dontCallGetSet?(l=wr(v,a))&&l.value:v[a]),o=n&&u?u:t[a],n&&typeof s==typeof o||(c=e.bind&&n?Sr(o,gr):e.wrap&&n?Ar(o):p&&br(o)?_r(o):o,(e.sham||o&&o.sham||s&&s.sham)&&Er(c,"sham",!0),Er(y,a,c),p&&(Tr(xr,i=f+"Prototype")||Er(xr,i,{}),Er(xr[i],a,o),e.real&&g&&(r||!g[a])&&Er(g,a,o)))},Or=w,Cr=Array.isArray||function(e){return"Array"==Or(e)},Dr=Math.ceil,Pr=Math.floor,Rr=Math.trunc||function(e){var t=+e;return(t>0?Pr:Dr)(t)},Ur=function(e){var t=+e;return t!=t||0===t?0:Rr(t)},Ir=Ur,Mr=Math.min,Br=function(e){return e>0?Mr(Ir(e),9007199254740991):0},jr=Br,Fr=function(e){return jr(e.length)},Nr=TypeError,Vr=function(e){if(e>9007199254740991)throw Nr("Maximum allowed index exceeded");return e},zr=kt,Gr=Xt,qr=N,Hr=function(e,t,r){var n=zr(t);n in e?Gr.f(e,n,qr(0,r)):e[n]=r},Wr={};Wr[ht("toStringTag")]="z";var Kr="[object z]"===String(Wr),Yr=Kr,Jr=L,Qr=w,Xr=ht("toStringTag"),$r=Object,Zr="Arguments"==Qr(function(){return arguments}()),en=Yr?Qr:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=$r(e),Xr))?r:Zr?Qr(t):"Object"==(n=Qr(t))&&Jr(t.callee)?"Arguments":n},tn=L,rn=qe,nn=c(Function.toString);tn(rn.inspectSource)||(rn.inspectSource=function(e){return nn(e)});var an=rn.inspectSource,on=c,sn=n,un=L,cn=en,ln=an,fn=function(){},hn=[],dn=se("Reflect","construct"),pn=/^\s*(?:class|function)\b/,vn=on(pn.exec),yn=!pn.exec(fn),gn=function(e){if(!un(e))return!1;try{return dn(fn,hn,e),!0}catch(t){return!1}},mn=function(e){if(!un(e))return!1;switch(cn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return yn||!!vn(pn,ln(e))}catch(t){return!0}};mn.sham=!0;var _n=!dn||sn((function(){var e;return gn(gn.call)||!gn(Object)||!gn((function(){e=!0}))||e}))?mn:gn,bn=Cr,wn=_n,kn=te,xn=ht("species"),Sn=Array,En=function(e){var t;return bn(e)&&(t=e.constructor,(wn(t)&&(t===Sn||bn(t.prototype))||kn(t)&&null===(t=t[xn]))&&(t=void 0)),void 0===t?Sn:t},Tn=function(e,t){return new(En(e))(0===t?0:t)},An=n,Ln=ve,On=ht("species"),Cn=function(e){return Ln>=51||!An((function(){var t=[];return(t.constructor={})[On]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Dn=Lr,Pn=n,Rn=Cr,Un=te,In=Je,Mn=Fr,Bn=Vr,jn=Hr,Fn=Tn,Nn=Cn,Vn=ve,zn=ht("isConcatSpreadable"),Gn=Vn>=51||!Pn((function(){var e=[];return e[zn]=!1,e.concat()[0]!==e})),qn=function(e){if(!Un(e))return!1;var t=e[zn];return void 0!==t?!!t:Rn(e)};Dn({target:"Array",proto:!0,arity:1,forced:!Gn||!Nn("concat")},{concat:function(e){var t,r,n,i,a,o=In(this),s=Fn(o,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(qn(a=-1===t?o:arguments[t]))for(i=Mn(a),Bn(u+i),r=0;r<i;r++,u++)r in a&&jn(s,u,a[r]);else Bn(u+1),jn(s,u++,a);return s.length=u,s}});var Hn=re,Wn=function(e){return Hn[e+"Prototype"]},Kn=Wn("Array").concat,Yn=l,Jn=Kn,Qn=Array.prototype,Xn=r((function(e){var t=e.concat;return e===Qn||Yn(Qn,e)&&t===Qn.concat?Jn:t})),$n=en,Zn=String,ei=function(e){if("Symbol"===$n(e))throw TypeError("Cannot convert a Symbol value to a string");return Zn(e)},ti={},ri=Ur,ni=Math.max,ii=Math.min,ai=function(e,t){var r=ri(e);return r<0?ni(r+t,0):ii(r,t)},oi=$,si=ai,ui=Fr,ci=function(e){return function(t,r,n){var i,a=oi(t),o=ui(a),s=si(n,o);if(e&&r!=r){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===r)return e||s||0;return!e&&-1}},li={includes:ci(!0),indexOf:ci(!1)},fi={},hi=$e,di=$,pi=li.indexOf,vi=fi,yi=c([].push),gi=function(e,t){var r,n=di(e),i=0,a=[];for(r in n)!hi(vi,r)&&hi(n,r)&&yi(a,r);for(;t.length>i;)hi(n,r=t[i++])&&(~pi(a,r)||yi(a,r));return a},mi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_i=gi,bi=mi,wi=Object.keys||function(e){return _i(e,bi)},ki=C,xi=$t,Si=Xt,Ei=rr,Ti=$,Ai=wi;ti.f=ki&&!xi?Object.defineProperties:function(e,t){Ei(e);for(var r,n=Ti(t),i=Ai(t),a=i.length,o=0;a>o;)Si.f(e,r=i[o++],n[r]);return e};var Li,Oi=se("document","documentElement"),Ci=nt,Di=We("keys"),Pi=function(e){return Di[e]||(Di[e]=Ci(e))},Ri=rr,Ui=ti,Ii=mi,Mi=fi,Bi=Oi,ji=Tt,Fi="prototype",Ni="script",Vi=Pi("IE_PROTO"),zi=function(){},Gi=function(e){return"<"+Ni+">"+e+"</"+Ni+">"},qi=function(e){e.write(Gi("")),e.close();var t=e.parentWindow.Object;return e=null,t},Hi=function(){try{Li=new ActiveXObject("htmlfile")}catch(i){}var e,t,r;Hi="undefined"!=typeof document?document.domain&&Li?qi(Li):(t=ji("iframe"),r="java"+Ni+":",t.style.display="none",Bi.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Gi("document.F=Object")),e.close(),e.F):qi(Li);for(var n=Ii.length;n--;)delete Hi[Fi][Ii[n]];return Hi()};Mi[Vi]=!0;var Wi=Object.create||function(e,t){var r;return null!==e?(zi[Fi]=Ri(e),r=new zi,zi[Fi]=null,r[Vi]=e):r=Hi(),void 0===t?r:Ui.f(r,t)},Ki={},Yi=gi,Ji=mi.concat("length","prototype");Ki.f=Object.getOwnPropertyNames||function(e){return Yi(e,Ji)};var Qi={},Xi=ai,$i=Fr,Zi=Hr,ea=Array,ta=Math.max,ra=function(e,t,r){for(var n=$i(e),i=Xi(t,n),a=Xi(void 0===r?n:r,n),o=ea(ta(a-i,0)),s=0;i<a;i++,s++)Zi(o,s,e[i]);return o.length=s,o},na=w,ia=$,aa=Ki.f,oa=ra,sa="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Qi.f=function(e){return sa&&"Window"==na(e)?function(e){try{return aa(e)}catch(t){return oa(sa)}}(e):aa(ia(e))};var ua={};ua.f=Object.getOwnPropertySymbols;var ca=yr,la=function(e,t,r,n){return n&&n.enumerable?e[t]=r:ca(e,t,r),e},fa=Xt,ha=function(e,t,r){return fa.f(e,t,r)},da={},pa=ht;da.f=pa;var va,ya,ga,ma=re,_a=$e,ba=da,wa=Xt.f,ka=function(e){var t=ma.Symbol||(ma.Symbol={});_a(t,e)||wa(t,e,{value:ba.f(e)})},xa=R,Sa=se,Ea=ht,Ta=la,Aa=function(){var e=Sa("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=Ea("toPrimitive");t&&!t[n]&&Ta(t,n,(function(e){return xa(r,this)}),{arity:1})},La=en,Oa=Kr?{}.toString:function(){return"[object "+La(this)+"]"},Ca=Kr,Da=Xt.f,Pa=yr,Ra=$e,Ua=Oa,Ia=ht("toStringTag"),Ma=function(e,t,r,n){if(e){var i=r?e:e.prototype;Ra(i,Ia)||Da(i,Ia,{configurable:!0,value:t}),n&&!Ca&&Pa(i,"toString",Ua)}},Ba=L,ja=h.WeakMap,Fa=Ba(ja)&&/native code/.test(String(ja)),Na=h,Va=te,za=yr,Ga=$e,qa=qe,Ha=Pi,Wa=fi,Ka="Object already initialized",Ya=Na.TypeError,Ja=Na.WeakMap;if(Fa||qa.state){var Qa=qa.state||(qa.state=new Ja);Qa.get=Qa.get,Qa.has=Qa.has,Qa.set=Qa.set,va=function(e,t){if(Qa.has(e))throw Ya(Ka);return t.facade=e,Qa.set(e,t),t},ya=function(e){return Qa.get(e)||{}},ga=function(e){return Qa.has(e)}}else{var Xa=Ha("state");Wa[Xa]=!0,va=function(e,t){if(Ga(e,Xa))throw Ya(Ka);return t.facade=e,za(e,Xa,t),t},ya=function(e){return Ga(e,Xa)?e[Xa]:{}},ga=function(e){return Ga(e,Xa)}}var $a={set:va,get:ya,has:ga,enforce:function(e){return ga(e)?ya(e):va(e,{})},getterFor:function(e){return function(t){var r;if(!Va(t)||(r=ya(t)).type!==e)throw Ya("Incompatible receiver, "+e+" required");return r}}},Za=Qt,eo=H,to=Je,ro=Fr,no=Tn,io=c([].push),ao=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,a=6==e,o=7==e,s=5==e||a;return function(u,c,l,f){for(var h,d,p=to(u),v=eo(p),y=Za(c,l),g=ro(v),m=0,_=f||no,b=t?_(u,g):r||o?_(u,0):void 0;g>m;m++)if((s||m in v)&&(d=y(h=v[m],m,p),e))if(t)b[m]=d;else if(d)switch(e){case 3:return!0;case 5:return h;case 6:return m;case 2:io(b,h)}else switch(e){case 4:return!1;case 7:io(b,h)}return a?-1:n||i?i:b}},oo={forEach:ao(0),map:ao(1),filter:ao(2),some:ao(3),every:ao(4),find:ao(5),findIndex:ao(6),filterReject:ao(7)},so=Lr,uo=h,co=R,lo=c,fo=C,ho=_e,po=n,vo=$e,yo=l,go=rr,mo=$,_o=kt,bo=ei,wo=N,ko=Wi,xo=wi,So=Ki,Eo=Qi,To=ua,Ao=O,Lo=Xt,Oo=ti,Co=U,Do=la,Po=ha,Ro=We,Uo=fi,Io=nt,Mo=ht,Bo=da,jo=ka,Fo=Aa,No=Ma,Vo=$a,zo=oo.forEach,Go=Pi("hidden"),qo="Symbol",Ho="prototype",Wo=Vo.set,Ko=Vo.getterFor(qo),Yo=Object[Ho],Jo=uo.Symbol,Qo=Jo&&Jo[Ho],Xo=uo.TypeError,$o=uo.QObject,Zo=Ao.f,es=Lo.f,ts=Eo.f,rs=Co.f,ns=lo([].push),is=Ro("symbols"),as=Ro("op-symbols"),os=Ro("wks"),ss=!$o||!$o[Ho]||!$o[Ho].findChild,us=fo&&po((function(){return 7!=ko(es({},"a",{get:function(){return es(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Zo(Yo,t);n&&delete Yo[t],es(e,t,r),n&&e!==Yo&&es(Yo,t,n)}:es,cs=function(e,t){var r=is[e]=ko(Qo);return Wo(r,{type:qo,tag:e,description:t}),fo||(r.description=t),r},ls=function(e,t,r){e===Yo&&ls(as,t,r),go(e);var n=_o(t);return go(r),vo(is,n)?(r.enumerable?(vo(e,Go)&&e[Go][n]&&(e[Go][n]=!1),r=ko(r,{enumerable:wo(0,!1)})):(vo(e,Go)||es(e,Go,wo(1,{})),e[Go][n]=!0),us(e,n,r)):es(e,n,r)},fs=function(e,t){go(e);var r=mo(t),n=xo(r).concat(vs(r));return zo(n,(function(t){fo&&!co(hs,r,t)||ls(e,t,r[t])})),e},hs=function(e){var t=_o(e),r=co(rs,this,t);return!(this===Yo&&vo(is,t)&&!vo(as,t))&&(!(r||!vo(this,t)||!vo(is,t)||vo(this,Go)&&this[Go][t])||r)},ds=function(e,t){var r=mo(e),n=_o(t);if(r!==Yo||!vo(is,n)||vo(as,n)){var i=Zo(r,n);return!i||!vo(is,n)||vo(r,Go)&&r[Go][n]||(i.enumerable=!0),i}},ps=function(e){var t=ts(mo(e)),r=[];return zo(t,(function(e){vo(is,e)||vo(Uo,e)||ns(r,e)})),r},vs=function(e){var t=e===Yo,r=ts(t?as:mo(e)),n=[];return zo(r,(function(e){!vo(is,e)||t&&!vo(Yo,e)||ns(n,is[e])})),n};ho||(Jo=function(){if(yo(Qo,this))throw Xo("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?bo(arguments[0]):void 0,t=Io(e),r=function(e){this===Yo&&co(r,as,e),vo(this,Go)&&vo(this[Go],t)&&(this[Go][t]=!1),us(this,t,wo(1,e))};return fo&&ss&&us(Yo,t,{configurable:!0,set:r}),cs(t,e)},Do(Qo=Jo[Ho],"toString",(function(){return Ko(this).tag})),Do(Jo,"withoutSetter",(function(e){return cs(Io(e),e)})),Co.f=hs,Lo.f=ls,Oo.f=fs,Ao.f=ds,So.f=Eo.f=ps,To.f=vs,Bo.f=function(e){return cs(Mo(e),e)},fo&&Po(Qo,"description",{configurable:!0,get:function(){return Ko(this).description}})),so({global:!0,constructor:!0,wrap:!0,forced:!ho,sham:!ho},{Symbol:Jo}),zo(xo(os),(function(e){jo(e)})),so({target:qo,stat:!0,forced:!ho},{useSetter:function(){ss=!0},useSimple:function(){ss=!1}}),so({target:"Object",stat:!0,forced:!ho,sham:!fo},{create:function(e,t){return void 0===t?ko(e):fs(ko(e),t)},defineProperty:ls,defineProperties:fs,getOwnPropertyDescriptor:ds}),so({target:"Object",stat:!0,forced:!ho},{getOwnPropertyNames:ps}),Fo(),No(Jo,qo),Uo[Go]=!0;var ys=_e&&!!Symbol.for&&!!Symbol.keyFor,gs=Lr,ms=se,_s=$e,bs=ei,ws=We,ks=ys,xs=ws("string-to-symbol-registry"),Ss=ws("symbol-to-string-registry");gs({target:"Symbol",stat:!0,forced:!ks},{for:function(e){var t=bs(e);if(_s(xs,t))return xs[t];var r=ms("Symbol")(t);return xs[t]=r,Ss[r]=t,r}});var Es=Lr,Ts=$e,As=Ee,Ls=Ae,Os=ys,Cs=We("symbol-to-string-registry");Es({target:"Symbol",stat:!0,forced:!Os},{keyFor:function(e){if(!As(e))throw TypeError(Ls(e)+" is not a symbol");if(Ts(Cs,e))return Cs[e]}});var Ds=c([].slice),Ps=Cr,Rs=L,Us=w,Is=ei,Ms=c([].push),Bs=Lr,js=se,Fs=g,Ns=R,Vs=c,zs=n,Gs=L,qs=Ee,Hs=Ds,Ws=function(e){if(Rs(e))return e;if(Ps(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];"string"==typeof i?Ms(r,i):"number"!=typeof i&&"Number"!=Us(i)&&"String"!=Us(i)||Ms(r,Is(i))}var a=r.length,o=!0;return function(e,t){if(o)return o=!1,t;if(Ps(this))return t;for(var n=0;n<a;n++)if(r[n]===e)return t}}},Ks=_e,Ys=String,Js=js("JSON","stringify"),Qs=Vs(/./.exec),Xs=Vs("".charAt),$s=Vs("".charCodeAt),Zs=Vs("".replace),eu=Vs(1..toString),tu=/[\uD800-\uDFFF]/g,ru=/^[\uD800-\uDBFF]$/,nu=/^[\uDC00-\uDFFF]$/,iu=!Ks||zs((function(){var e=js("Symbol")();return"[null]"!=Js([e])||"{}"!=Js({a:e})||"{}"!=Js(Object(e))})),au=zs((function(){return'"\\udf06\\ud834"'!==Js("\udf06\ud834")||'"\\udead"'!==Js("\udead")})),ou=function(e,t){var r=Hs(arguments),n=Ws(t);if(Gs(n)||void 0!==e&&!qs(e))return r[1]=function(e,t){if(Gs(n)&&(t=Ns(n,this,Ys(e),t)),!qs(t))return t},Fs(Js,null,r)},su=function(e,t,r){var n=Xs(r,t-1),i=Xs(r,t+1);return Qs(ru,e)&&!Qs(nu,i)||Qs(nu,e)&&!Qs(ru,n)?"\\u"+eu($s(e,0),16):e};Js&&Bs({target:"JSON",stat:!0,arity:3,forced:iu||au},{stringify:function(e,t,r){var n=Hs(arguments),i=Fs(iu?ou:Js,null,n);return au&&"string"==typeof i?Zs(i,tu,su):i}});var uu=ua,cu=Je;Lr({target:"Object",stat:!0,forced:!_e||n((function(){uu.f(1)}))},{getOwnPropertySymbols:function(e){var t=uu.f;return t?t(cu(e)):[]}}),ka("asyncIterator"),ka("hasInstance"),ka("isConcatSpreadable"),ka("iterator"),ka("match"),ka("matchAll"),ka("replace"),ka("search"),ka("species"),ka("split");var lu=Aa;ka("toPrimitive"),lu();var fu=se,hu=Ma;ka("toStringTag"),hu(fu("Symbol"),"Symbol"),ka("unscopables"),Ma(h.JSON,"JSON",!0);var du,pu,vu,yu=re.Symbol,gu={},mu=C,_u=$e,bu=Function.prototype,wu=mu&&Object.getOwnPropertyDescriptor,ku=_u(bu,"name"),xu={EXISTS:ku,PROPER:ku&&"something"===function(){}.name,CONFIGURABLE:ku&&(!mu||mu&&wu(bu,"name").configurable)},Su=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Eu=$e,Tu=L,Au=Je,Lu=Su,Ou=Pi("IE_PROTO"),Cu=Object,Du=Cu.prototype,Pu=Lu?Cu.getPrototypeOf:function(e){var t=Au(e);if(Eu(t,Ou))return t[Ou];var r=t.constructor;return Tu(r)&&t instanceof r?r.prototype:t instanceof Cu?Du:null},Ru=n,Uu=L,Iu=te,Mu=Wi,Bu=Pu,ju=la,Fu=ht("iterator"),Nu=!1;[].keys&&("next"in(vu=[].keys())?(pu=Bu(Bu(vu)))!==Object.prototype&&(du=pu):Nu=!0);var Vu=!Iu(du)||Ru((function(){var e={};return du[Fu].call(e)!==e}));Uu((du=Vu?{}:Mu(du))[Fu])||ju(du,Fu,(function(){return this}));var zu={IteratorPrototype:du,BUGGY_SAFARI_ITERATORS:Nu},Gu=zu.IteratorPrototype,qu=Wi,Hu=N,Wu=Ma,Ku=gu,Yu=function(){return this},Ju=function(e,t,r,n){var i=t+" Iterator";return e.prototype=qu(Gu,{next:Hu(+!n,r)}),Wu(e,i,!1,!0),Ku[i]=Yu,e},Qu=c,Xu=De,$u=L,Zu=String,ec=TypeError,tc=function(e,t,r){try{return Qu(Xu(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},rc=rr,nc=function(e){if("object"==typeof e||$u(e))return e;throw ec("Can't set "+Zu(e)+" as a prototype")},ic=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=tc(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return rc(r),nc(n),t?e(r,n):r.__proto__=n,r}}():void 0),ac=Lr,oc=R,sc=xu,uc=Ju,cc=Pu,lc=Ma,fc=la,hc=gu,dc=zu,pc=sc.PROPER,vc=dc.BUGGY_SAFARI_ITERATORS,yc=ht("iterator"),gc="keys",mc="values",_c="entries",bc=function(){return this},wc=function(e,t,r,n,i,a,o){uc(r,t,n);var s,u,c,l=function(e){if(e===i&&v)return v;if(!vc&&e in d)return d[e];switch(e){case gc:case mc:case _c:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",h=!1,d=e.prototype,p=d[yc]||d["@@iterator"]||i&&d[i],v=!vc&&p||l(i),y="Array"==t&&d.entries||p;if(y&&(s=cc(y.call(new e)))!==Object.prototype&&s.next&&(lc(s,f,!0,!0),hc[f]=bc),pc&&i==mc&&p&&p.name!==mc&&(h=!0,v=function(){return oc(p,this)}),i)if(u={values:l(mc),keys:a?v:l(gc),entries:l(_c)},o)for(c in u)(vc||h||!(c in d))&&fc(d,c,u[c]);else ac({target:t,proto:!0,forced:vc||h},u);return o&&d[yc]!==v&&fc(d,yc,v,{name:i}),hc[t]=v,u},kc=function(e,t){return{value:e,done:t}},xc=$,Sc=gu,Ec=$a;Xt.f;var Tc=wc,Ac=kc,Lc="Array Iterator",Oc=Ec.set,Cc=Ec.getterFor(Lc);Tc(Array,"Array",(function(e,t){Oc(this,{type:Lc,target:xc(e),index:0,kind:t})}),(function(){var e=Cc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,Ac(void 0,!0)):Ac("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),Sc.Arguments=Sc.Array;var Dc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Pc=h,Rc=en,Uc=yr,Ic=gu,Mc=ht("toStringTag");for(var Bc in Dc){var jc=Pc[Bc],Fc=jc&&jc.prototype;Fc&&Rc(Fc)!==Mc&&Uc(Fc,Mc,Bc),Ic[Bc]=Ic.Array}var Nc=yu;ka("dispose");var Vc=Nc;ka("asyncDispose");var zc=Lr,Gc=c,qc=se("Symbol"),Hc=qc.keyFor,Wc=Gc(qc.prototype.valueOf);zc({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==Hc(Wc(e))}catch(t){return!1}}});for(var Kc=Lr,Yc=We,Jc=se,Qc=c,Xc=Ee,$c=ht,Zc=Jc("Symbol"),el=Zc.isWellKnown,tl=Jc("Object","getOwnPropertyNames"),rl=Qc(Zc.prototype.valueOf),nl=Yc("wks"),il=0,al=tl(Zc),ol=al.length;il<ol;il++)try{var sl=al[il];Xc(Zc[sl])&&$c(sl)}catch(RM){}Kc({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(el&&el(e))return!0;try{for(var t=rl(e),r=0,n=tl(nl),i=n.length;r<i;r++)if(nl[n[r]]==t)return!0}catch(RM){}return!1}}),ka("matcher"),ka("metadataKey"),ka("observable"),ka("metadata"),ka("patternMatch"),ka("replaceAll");var ul=Vc,cl=r(ul),ll=c,fl=Ur,hl=ei,dl=J,pl=ll("".charAt),vl=ll("".charCodeAt),yl=ll("".slice),gl=function(e){return function(t,r){var n,i,a=hl(dl(t)),o=fl(r),s=a.length;return o<0||o>=s?e?"":void 0:(n=vl(a,o))<55296||n>56319||o+1===s||(i=vl(a,o+1))<56320||i>57343?e?pl(a,o):n:e?yl(a,o,o+2):i-56320+(n-55296<<10)+65536}},ml={codeAt:gl(!1),charAt:gl(!0)},_l=ml.charAt,bl=ei,wl=$a,kl=wc,xl=kc,Sl="String Iterator",El=wl.set,Tl=wl.getterFor(Sl);kl(String,"String",(function(e){El(this,{type:Sl,string:bl(e),index:0})}),(function(){var e,t=Tl(this),r=t.string,n=t.index;return n>=r.length?xl(void 0,!0):(e=_l(r,n),t.index+=e.length,xl(e,!1))}));var Al=da.f("iterator"),Ll=r(Al);function Ol(e){return(Ol="function"==typeof cl&&"symbol"==typeof Ll?function(e){return typeof e}:function(e){return e&&"function"==typeof cl&&e.constructor===cl&&e!==cl.prototype?"symbol":typeof e})(e)}var Cl=Je,Dl=wi;Lr({target:"Object",stat:!0,forced:n((function(){Dl(1)}))},{keys:function(e){return Dl(Cl(e))}});var Pl=r(re.Object.keys),Rl=r(re.Object.getOwnPropertySymbols),Ul=oo.filter;Lr({target:"Array",proto:!0,forced:!Cn("filter")},{filter:function(e){return Ul(this,e,arguments.length>1?arguments[1]:void 0)}});var Il=Wn("Array").filter,Ml=l,Bl=Il,jl=Array.prototype,Fl=r((function(e){var t=e.filter;return e===jl||Ml(jl,e)&&t===jl.filter?Bl:t})),Nl={exports:{}},Vl=Lr,zl=n,Gl=$,ql=O.f,Hl=C;Vl({target:"Object",stat:!0,forced:!Hl||zl((function(){ql(1)})),sham:!Hl},{getOwnPropertyDescriptor:function(e,t){return ql(Gl(e),t)}});var Wl=re.Object,Kl=Nl.exports=function(e,t){return Wl.getOwnPropertyDescriptor(e,t)};Wl.getOwnPropertyDescriptor.sham&&(Kl.sham=!0);var Yl=r(Nl.exports),Jl=n,Ql=function(e,t){var r=[][e];return!!r&&Jl((function(){r.call(null,t||function(){return 1},1)}))},Xl=oo.forEach,$l=Ql("forEach")?[].forEach:function(e){return Xl(this,e,arguments.length>1?arguments[1]:void 0)};Lr({target:"Array",proto:!0,forced:[].forEach!=$l},{forEach:$l});var Zl=Wn("Array").forEach,ef=en,tf=$e,rf=l,nf=Zl,af=Array.prototype,of={DOMTokenList:!0,NodeList:!0},sf=r((function(e){var t=e.forEach;return e===af||rf(af,e)&&t===af.forEach||tf(of,ef(e))?nf:t})),uf=se,cf=Ki,lf=ua,ff=rr,hf=c([].concat),df=uf("Reflect","ownKeys")||function(e){var t=cf.f(ff(e)),r=lf.f;return r?hf(t,r(e)):t},pf=df,vf=$,yf=O,gf=Hr;Lr({target:"Object",stat:!0,sham:!C},{getOwnPropertyDescriptors:function(e){for(var t,r,n=vf(e),i=yf.f,a=pf(n),o={},s=0;a.length>s;)void 0!==(r=i(n,t=a[s++]))&&gf(o,t,r);return o}});var mf=r(re.Object.getOwnPropertyDescriptors),_f={exports:{}},bf=Lr,wf=C,kf=ti.f;bf({target:"Object",stat:!0,forced:Object.defineProperties!==kf,sham:!wf},{defineProperties:kf});var xf=re.Object,Sf=_f.exports=function(e,t){return xf.defineProperties(e,t)};xf.defineProperties.sham&&(Sf.sham=!0);var Ef=r(_f.exports),Tf={exports:{}},Af=Lr,Lf=C,Of=Xt.f;Af({target:"Object",stat:!0,forced:Object.defineProperty!==Of,sham:!Lf},{defineProperty:Of});var Cf=re.Object,Df=Tf.exports=function(e,t,r){return Cf.defineProperty(e,t,r)};Cf.defineProperty.sham&&(Df.sham=!0);var Pf=r(Tf.exports),Rf=r(ul);Lr({target:"Object",stat:!0,sham:!C},{create:Wi});var Uf=re.Object,If=r((function(e,t){return Uf.create(e,t)})),Mf=Je,Bf=Pu,jf=Su;Lr({target:"Object",stat:!0,forced:n((function(){Bf(1)})),sham:!jf},{getPrototypeOf:function(e){return Bf(Mf(e))}});var Ff=r(re.Object.getPrototypeOf);Lr({target:"Object",stat:!0},{setPrototypeOf:ic});var Nf=r(re.Object.setPrototypeOf),Vf=$e,zf=df,Gf=O,qf=Xt,Hf=te,Wf=yr,Kf=Error,Yf=c("".replace),Jf=String(Kf("zxcasd").stack),Qf=/\n\s*at [^:]*:[^\n]*/,Xf=Qf.test(Jf),$f=N,Zf=!n((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",$f(1,7)),7!==e.stack)})),eh=yr,th=function(e,t){if(Xf&&"string"==typeof e&&!Kf.prepareStackTrace)for(;t--;)e=Yf(e,Qf,"");return e},rh=Zf,nh=Error.captureStackTrace,ih=gu,ah=ht("iterator"),oh=Array.prototype,sh=function(e){return void 0!==e&&(ih.Array===e||oh[ah]===e)},uh=en,ch=Ue,lh=W,fh=gu,hh=ht("iterator"),dh=function(e){if(!lh(e))return ch(e,hh)||ch(e,"@@iterator")||fh[uh(e)]},ph=R,vh=De,yh=rr,gh=Ae,mh=dh,_h=TypeError,bh=function(e,t){var r=arguments.length<2?mh(e):t;if(vh(r))return yh(ph(r,e));throw _h(gh(e)+" is not iterable")},wh=R,kh=rr,xh=Ue,Sh=function(e,t,r){var n,i;kh(e);try{if(!(n=xh(e,"return"))){if("throw"===t)throw r;return r}n=wh(n,e)}catch(RM){i=!0,n=RM}if("throw"===t)throw r;if(i)throw n;return kh(n),r},Eh=Qt,Th=R,Ah=rr,Lh=Ae,Oh=sh,Ch=Fr,Dh=l,Ph=bh,Rh=dh,Uh=Sh,Ih=TypeError,Mh=function(e,t){this.stopped=e,this.result=t},Bh=Mh.prototype,jh=function(e,t,r){var n,i,a,o,s,u,c,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=Eh(t,l),y=function(e){return n&&Uh(n,"normal",e),new Mh(!0,e)},g=function(e){return f?(Ah(e),p?v(e[0],e[1],y):v(e[0],e[1])):p?v(e,y):v(e)};if(h)n=e.iterator;else if(d)n=e;else{if(!(i=Rh(e)))throw Ih(Lh(e)+" is not iterable");if(Oh(i)){for(a=0,o=Ch(e);o>a;a++)if((s=g(e[a]))&&Dh(Bh,s))return s;return new Mh(!1)}n=Ph(e,i)}for(u=h?e.next:n.next;!(c=Th(u,n)).done;){try{s=g(c.value)}catch(RM){Uh(n,"throw",RM)}if("object"==typeof s&&s&&Dh(Bh,s))return s}return new Mh(!1)},Fh=ei,Nh=Lr,Vh=l,zh=Pu,Gh=ic,qh=function(e,t,r){for(var n=zf(t),i=qf.f,a=Gf.f,o=0;o<n.length;o++){var s=n[o];Vf(e,s)||r&&Vf(r,s)||i(e,s,a(t,s))}},Hh=Wi,Wh=yr,Kh=N,Yh=function(e,t){Hf(t)&&"cause"in t&&Wf(e,"cause",t.cause)},Jh=function(e,t,r,n){rh&&(nh?nh(e,t):eh(e,"stack",th(r,n)))},Qh=jh,Xh=function(e,t){return void 0===e?arguments.length<2?"":t:Fh(e)},$h=ht("toStringTag"),Zh=Error,ed=[].push,td=function(e,t){var r,n=Vh(rd,this);Gh?r=Gh(Zh(),n?zh(this):rd):(r=n?this:Hh(rd),Wh(r,$h,"Error")),void 0!==t&&Wh(r,"message",Xh(t)),Jh(r,td,r.stack,1),arguments.length>2&&Yh(r,arguments[2]);var i=[];return Qh(e,ed,{that:i}),Wh(r,"errors",i),r};Gh?Gh(td,Zh):qh(td,Zh,{name:!0});var rd=td.prototype=Hh(Zh.prototype,{constructor:Kh(1,td),message:Kh(1,""),name:Kh(1,"AggregateError")});Nh({global:!0,constructor:!0,arity:2},{AggregateError:td});var nd,id,ad,od,sd="undefined"!=typeof process&&"process"==w(process),ud=se,cd=ha,ld=C,fd=ht("species"),hd=function(e){var t=ud(e);ld&&t&&!t[fd]&&cd(t,fd,{configurable:!0,get:function(){return this}})},dd=l,pd=TypeError,vd=function(e,t){if(dd(t,e))return e;throw pd("Incorrect invocation")},yd=_n,gd=Ae,md=TypeError,_d=function(e){if(yd(e))return e;throw md(gd(e)+" is not a constructor")},bd=rr,wd=_d,kd=W,xd=ht("species"),Sd=function(e,t){var r,n=bd(e).constructor;return void 0===n||kd(r=bd(n)[xd])?t:wd(r)},Ed=TypeError,Td=function(e,t){if(e<t)throw Ed("Not enough arguments");return e},Ad=/(?:ipad|iphone|ipod).*applewebkit/i.test(ue),Ld=h,Od=g,Cd=Qt,Dd=L,Pd=$e,Rd=n,Ud=Oi,Id=Ds,Md=Tt,Bd=Td,jd=Ad,Fd=sd,Nd=Ld.setImmediate,Vd=Ld.clearImmediate,zd=Ld.process,Gd=Ld.Dispatch,qd=Ld.Function,Hd=Ld.MessageChannel,Wd=Ld.String,Kd=0,Yd={},Jd="onreadystatechange";Rd((function(){nd=Ld.location}));var Qd=function(e){if(Pd(Yd,e)){var t=Yd[e];delete Yd[e],t()}},Xd=function(e){return function(){Qd(e)}},$d=function(e){Qd(e.data)},Zd=function(e){Ld.postMessage(Wd(e),nd.protocol+"//"+nd.host)};Nd&&Vd||(Nd=function(e){Bd(arguments.length,1);var t=Dd(e)?e:qd(e),r=Id(arguments,1);return Yd[++Kd]=function(){Od(t,void 0,r)},id(Kd),Kd},Vd=function(e){delete Yd[e]},Fd?id=function(e){zd.nextTick(Xd(e))}:Gd&&Gd.now?id=function(e){Gd.now(Xd(e))}:Hd&&!jd?(od=(ad=new Hd).port2,ad.port1.onmessage=$d,id=Cd(od.postMessage,od)):Ld.addEventListener&&Dd(Ld.postMessage)&&!Ld.importScripts&&nd&&"file:"!==nd.protocol&&!Rd(Zd)?(id=Zd,Ld.addEventListener("message",$d,!1)):id=Jd in Md("script")?function(e){Ud.appendChild(Md("script"))[Jd]=function(){Ud.removeChild(this),Qd(e)}}:function(e){setTimeout(Xd(e),0)});var ep={set:Nd,clear:Vd},tp=function(){this.head=null,this.tail=null};tp.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var rp,np,ip,ap,op,sp=tp,up=/ipad|iphone|ipod/i.test(ue)&&"undefined"!=typeof Pebble,cp=/web0s(?!.*chrome)/i.test(ue),lp=h,fp=Qt,hp=O.f,dp=ep.set,pp=sp,vp=Ad,yp=up,gp=cp,mp=sd,_p=lp.MutationObserver||lp.WebKitMutationObserver,bp=lp.document,wp=lp.process,kp=lp.Promise,xp=hp(lp,"queueMicrotask"),Sp=xp&&xp.value;if(!Sp){var Ep=new pp,Tp=function(){var e,t;for(mp&&(e=wp.domain)&&e.exit();t=Ep.get();)try{t()}catch(RM){throw Ep.head&&rp(),RM}e&&e.enter()};vp||mp||gp||!_p||!bp?!yp&&kp&&kp.resolve?((ap=kp.resolve(void 0)).constructor=kp,op=fp(ap.then,ap),rp=function(){op(Tp)}):mp?rp=function(){wp.nextTick(Tp)}:(dp=fp(dp,lp),rp=function(){dp(Tp)}):(np=!0,ip=bp.createTextNode(""),new _p(Tp).observe(ip,{characterData:!0}),rp=function(){ip.data=np=!np}),Sp=function(e){Ep.head||rp(),Ep.add(e)}}var Ap=Sp,Lp=function(e){try{return{error:!1,value:e()}}catch(RM){return{error:!0,value:RM}}},Op=h.Promise,Cp="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Dp=!Cp&&!sd&&"object"==typeof window&&"object"==typeof document,Pp=h,Rp=Op,Up=L,Ip=Wt,Mp=an,Bp=ht,jp=Dp,Fp=Cp,Np=ve,Vp=Rp&&Rp.prototype,zp=Bp("species"),Gp=!1,qp=Up(Pp.PromiseRejectionEvent),Hp={CONSTRUCTOR:Ip("Promise",(function(){var e=Mp(Rp),t=e!==String(Rp);if(!t&&66===Np)return!0;if(!Vp.catch||!Vp.finally)return!0;if(!Np||Np<51||!/native code/.test(e)){var r=new Rp((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[zp]=n,!(Gp=r.then((function(){}))instanceof n))return!0}return!t&&(jp||Fp)&&!qp})),REJECTION_EVENT:qp,SUBCLASSING:Gp},Wp={},Kp=De,Yp=TypeError,Jp=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw Yp("Bad Promise constructor");t=e,r=n})),this.resolve=Kp(t),this.reject=Kp(r)};Wp.f=function(e){return new Jp(e)};var Qp,Xp,$p=Lr,Zp=sd,ev=h,tv=R,rv=la,nv=Ma,iv=hd,av=De,ov=L,sv=te,uv=vd,cv=Sd,lv=ep.set,fv=Ap,hv=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(RM){}},dv=Lp,pv=sp,vv=$a,yv=Op,gv=Hp,mv=Wp,_v="Promise",bv=gv.CONSTRUCTOR,wv=gv.REJECTION_EVENT,kv=vv.getterFor(_v),xv=vv.set,Sv=yv&&yv.prototype,Ev=yv,Tv=Sv,Av=ev.TypeError,Lv=ev.document,Ov=ev.process,Cv=mv.f,Dv=Cv,Pv=!!(Lv&&Lv.createEvent&&ev.dispatchEvent),Rv="unhandledrejection",Uv=function(e){var t;return!(!sv(e)||!ov(t=e.then))&&t},Iv=function(e,t){var r,n,i,a=t.value,o=1==t.state,s=o?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(o||(2===t.rejection&&Nv(t),t.rejection=1),!0===s?r=a:(l&&l.enter(),r=s(a),l&&(l.exit(),i=!0)),r===e.promise?c(Av("Promise-chain cycle")):(n=Uv(r))?tv(n,r,u,c):u(r)):c(a)}catch(RM){l&&!i&&l.exit(),c(RM)}},Mv=function(e,t){e.notified||(e.notified=!0,fv((function(){for(var r,n=e.reactions;r=n.get();)Iv(r,e);e.notified=!1,t&&!e.rejection&&jv(e)})))},Bv=function(e,t,r){var n,i;Pv?((n=Lv.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),ev.dispatchEvent(n)):n={promise:t,reason:r},!wv&&(i=ev["on"+e])?i(n):e===Rv&&hv("Unhandled promise rejection",r)},jv=function(e){tv(lv,ev,(function(){var t,r=e.facade,n=e.value;if(Fv(e)&&(t=dv((function(){Zp?Ov.emit("unhandledRejection",n,r):Bv(Rv,r,n)})),e.rejection=Zp||Fv(e)?2:1,t.error))throw t.value}))},Fv=function(e){return 1!==e.rejection&&!e.parent},Nv=function(e){tv(lv,ev,(function(){var t=e.facade;Zp?Ov.emit("rejectionHandled",t):Bv("rejectionhandled",t,e.value)}))},Vv=function(e,t,r){return function(n){e(t,n,r)}},zv=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Mv(e,!0))},Gv=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw Av("Promise can't be resolved itself");var n=Uv(t);n?fv((function(){var r={done:!1};try{tv(n,t,Vv(Gv,r,e),Vv(zv,r,e))}catch(RM){zv(r,RM,e)}})):(e.value=t,e.state=1,Mv(e,!1))}catch(RM){zv({done:!1},RM,e)}}};bv&&(Tv=(Ev=function(e){uv(this,Tv),av(e),tv(Qp,this);var t=kv(this);try{e(Vv(Gv,t),Vv(zv,t))}catch(RM){zv(t,RM)}}).prototype,(Qp=function(e){xv(this,{type:_v,done:!1,notified:!1,parent:!1,reactions:new pv,rejection:!1,state:0,value:void 0})}).prototype=rv(Tv,"then",(function(e,t){var r=kv(this),n=Cv(cv(this,Ev));return r.parent=!0,n.ok=!ov(e)||e,n.fail=ov(t)&&t,n.domain=Zp?Ov.domain:void 0,0==r.state?r.reactions.add(n):fv((function(){Iv(n,r)})),n.promise})),Xp=function(){var e=new Qp,t=kv(e);this.promise=e,this.resolve=Vv(Gv,t),this.reject=Vv(zv,t)},mv.f=Cv=function(e){return e===Ev||undefined===e?new Xp(e):Dv(e)}),$p({global:!0,constructor:!0,wrap:!0,forced:bv},{Promise:Ev}),nv(Ev,_v,!1,!0),iv(_v);var qv=ht("iterator"),Hv=!1;try{var Wv=0,Kv={next:function(){return{done:!!Wv++}},return:function(){Hv=!0}};Kv[qv]=function(){return this},Array.from(Kv,(function(){throw 2}))}catch(RM){}var Yv=function(e,t){if(!t&&!Hv)return!1;var r=!1;try{var n={};n[qv]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(RM){}return r},Jv=Op,Qv=Hp.CONSTRUCTOR||!Yv((function(e){Jv.all(e).then(void 0,(function(){}))})),Xv=R,$v=De,Zv=Wp,ey=Lp,ty=jh;Lr({target:"Promise",stat:!0,forced:Qv},{all:function(e){var t=this,r=Zv.f(t),n=r.resolve,i=r.reject,a=ey((function(){var r=$v(t.resolve),a=[],o=0,s=1;ty(e,(function(e){var u=o++,c=!1;s++,Xv(r,t,e).then((function(e){c||(c=!0,a[u]=e,--s||n(a))}),i)})),--s||n(a)}));return a.error&&i(a.value),r.promise}});var ry=Lr,ny=Hp.CONSTRUCTOR;Op&&Op.prototype,ry({target:"Promise",proto:!0,forced:ny,real:!0},{catch:function(e){return this.then(void 0,e)}});var iy=R,ay=De,oy=Wp,sy=Lp,uy=jh;Lr({target:"Promise",stat:!0,forced:Qv},{race:function(e){var t=this,r=oy.f(t),n=r.reject,i=sy((function(){var i=ay(t.resolve);uy(e,(function(e){iy(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var cy=R,ly=Wp;Lr({target:"Promise",stat:!0,forced:Hp.CONSTRUCTOR},{reject:function(e){var t=ly.f(this);return cy(t.reject,void 0,e),t.promise}});var fy=rr,hy=te,dy=Wp,py=function(e,t){if(fy(e),hy(t)&&t.constructor===e)return t;var r=dy.f(e);return(0,r.resolve)(t),r.promise},vy=Lr,yy=Op,gy=Hp.CONSTRUCTOR,my=py,_y=se("Promise"),by=!gy;vy({target:"Promise",stat:!0,forced:true},{resolve:function(e){return my(by&&this===_y?yy:this,e)}});var wy=R,ky=De,xy=Wp,Sy=Lp,Ey=jh;Lr({target:"Promise",stat:!0,forced:Qv},{allSettled:function(e){var t=this,r=xy.f(t),n=r.resolve,i=r.reject,a=Sy((function(){var r=ky(t.resolve),i=[],a=0,o=1;Ey(e,(function(e){var s=a++,u=!1;o++,wy(r,t,e).then((function(e){u||(u=!0,i[s]={status:"fulfilled",value:e},--o||n(i))}),(function(e){u||(u=!0,i[s]={status:"rejected",reason:e},--o||n(i))}))})),--o||n(i)}));return a.error&&i(a.value),r.promise}});var Ty=R,Ay=De,Ly=se,Oy=Wp,Cy=Lp,Dy=jh,Py="No one promise resolved";Lr({target:"Promise",stat:!0,forced:Qv},{any:function(e){var t=this,r=Ly("AggregateError"),n=Oy.f(t),i=n.resolve,a=n.reject,o=Cy((function(){var n=Ay(t.resolve),o=[],s=0,u=1,c=!1;Dy(e,(function(e){var l=s++,f=!1;u++,Ty(n,t,e).then((function(e){f||c||(c=!0,i(e))}),(function(e){f||c||(f=!0,o[l]=e,--u||a(new r(o,Py)))}))})),--u||a(new r(o,Py))}));return o.error&&a(o.value),n.promise}});var Ry=Lr,Uy=Op,Iy=n,My=se,By=L,jy=Sd,Fy=py,Ny=Uy&&Uy.prototype;Ry({target:"Promise",proto:!0,real:!0,forced:!!Uy&&Iy((function(){Ny.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=jy(this,My("Promise")),r=By(e);return this.then(r?function(r){return Fy(t,e()).then((function(){return r}))}:e,r?function(r){return Fy(t,e()).then((function(){throw r}))}:e)}});var Vy=re.Promise,zy=Wp,Gy=Lp;Lr({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=zy.f(this),r=Gy(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var qy=r(Vy),Hy=Lr,Wy=Cr,Ky=c([].reverse),Yy=[1,2];Hy({target:"Array",proto:!0,forced:String(Yy)===String(Yy.reverse())},{reverse:function(){return Wy(this)&&(this.length=this.length),Ky(this)}});var Jy=Wn("Array").reverse,Qy=l,Xy=Jy,$y=Array.prototype,Zy=r((function(e){var t=e.reverse;return e===$y||Qy($y,e)&&t===$y.reverse?Xy:t})),eg=Lr,tg=Cr,rg=_n,ng=te,ig=ai,ag=Fr,og=$,sg=Hr,ug=ht,cg=Ds,lg=Cn("slice"),fg=ug("species"),hg=Array,dg=Math.max;eg({target:"Array",proto:!0,forced:!lg},{slice:function(e,t){var r,n,i,a=og(this),o=ag(a),s=ig(e,o),u=ig(void 0===t?o:t,o);if(tg(a)&&(r=a.constructor,(rg(r)&&(r===hg||tg(r.prototype))||ng(r)&&null===(r=r[fg]))&&(r=void 0),r===hg||void 0===r))return cg(a,s,u);for(n=new(void 0===r?hg:r)(dg(u-s,0)),i=0;s<u;s++,i++)s in a&&sg(n,i,a[s]);return n.length=i,n}});var pg=Wn("Array").slice,vg=l,yg=pg,gg=Array.prototype,mg=r((function(e){var t=e.slice;return e===gg||vg(gg,e)&&t===gg.slice?yg:t})),_g=c,bg=De,wg=te,kg=$e,xg=Ds,Sg=i,Eg=Function,Tg=_g([].concat),Ag=_g([].join),Lg={},Og=Sg?Eg.bind:function(e){var t=bg(this),r=t.prototype,n=xg(arguments,1),i=function(){var r=Tg(n,xg(arguments));return this instanceof i?function(e,t,r){if(!kg(Lg,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Lg[t]=Eg("C,a","return new C("+Ag(n,",")+")")}return Lg[t](e,r)}(t,r.length,r):t.apply(e,r)};return wg(r)&&(i.prototype=r),i},Cg=Og;Lr({target:"Function",proto:!0,forced:Function.bind!==Cg},{bind:Cg});var Dg=Wn("Function").bind,Pg=l,Rg=Dg,Ug=Function.prototype,Ig=r((function(e){var t=e.bind;return e===Ug||Pg(Ug,e)&&t===Ug.bind?Rg:t})),Mg=Lr,Bg=g,jg=Og,Fg=_d,Ng=rr,Vg=te,zg=Wi,Gg=n,qg=se("Reflect","construct"),Hg=Object.prototype,Wg=[].push,Kg=Gg((function(){function e(){}return!(qg((function(){}),[],e)instanceof e)})),Yg=!Gg((function(){qg((function(){}))})),Jg=Kg||Yg;Mg({target:"Reflect",stat:!0,forced:Jg,sham:Jg},{construct:function(e,t){Fg(e),Ng(t);var r=arguments.length<3?e:Fg(arguments[2]);if(Yg&&!Kg)return qg(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return Bg(Wg,n,t),new(Bg(jg,e,n))}var i=r.prototype,a=zg(Vg(i)?i:Hg),o=Bg(e,a,t);return Vg(o)?o:a}});var Qg=r(re.Reflect.construct),Xg=r(da.f("toPrimitive"));function $g(e,t){var r=Pl(e);if(Rl){var n=Rl(e);t&&(n=Fl(n).call(n,(function(t){return Yl(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zg(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?sf(r=$g(Object(i),!0)).call(r,(function(t){om(e,t,i[t])})):mf?Ef(e,mf(i)):sf(n=$g(Object(i))).call(n,(function(t){Pf(e,t,Yl(i,t))}))}return e}function em(){em=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Pf||function(e,t,r){e[t]=r.value},i="function"==typeof Rf?Rf:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,r){return Pf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(A){u=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var a=t&&t.prototype instanceof h?t:h,o=If(a.prototype),s=new S(i||[]);return n(o,"_invoke",{value:b(e,r,s)}),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(A){return{type:"throw",arg:A}}}e.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,a,(function(){return this}));var y=Ff&&Ff(Ff(E([])));y&&y!==t&&r.call(y,a)&&(v=y);var g=p.prototype=h.prototype=If(v);function m(e){var t;sf(t=["next","throw","return"]).call(t,(function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(n,a,o,s){var u=l(e[n],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Ol(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,o,s)}),(function(e){i("throw",e,o,s)})):t.resolve(f).then((function(e){c.value=e,o(c)}),(function(e){return i("throw",e,o,s)}))}s(u.arg)}var a;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return{value:void 0,done:!0}}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=w(o,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],sf(e).call(e,k,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Nf?Nf(e,p):(e.__proto__=p,u(e,s,"GeneratorFunction")),e.prototype=If(g),e},e.awrap=function(e){return{__await:e}},m(_.prototype),u(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,a){void 0===a&&(a=qy);var o=new _(c(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},m(g),u(g,s,"Generator"),u(g,a,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return Zy(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=E,S.prototype={constructor:S,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,sf(t=this.tryEntries).call(t,x),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+mg(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return o.type="throw",o.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function tm(e,t,r,n,i,a,o){try{var s=e[a](o),u=s.value}catch(RM){return void r(RM)}s.done?t(u):qy.resolve(u).then(n,i)}function rm(e){return function(){var t=this,r=arguments;return new qy((function(n,i){var a=e.apply(t,r);function o(e){tm(a,n,i,o,s,"next",e)}function s(e){tm(a,n,i,o,s,"throw",e)}o(void 0)}))}}function nm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function im(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Pf(e,hm(n.key),n)}}function am(e,t,r){return t&&im(e.prototype,t),r&&im(e,r),Pf(e,"prototype",{writable:!1}),e}function om(e,t,r){return(t=hm(t))in e?Pf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=If(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Pf(e,"prototype",{writable:!1}),t&&cm(e,t)}function um(e){var t;return(um=Nf?Ig(t=Ff).call(t):function(e){return e.__proto__||Ff(e)})(e)}function cm(e,t){var r;return(cm=Nf?Ig(r=Nf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function lm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fm(e){var t=function(){if("undefined"==typeof Reflect||!Qg)return!1;if(Qg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Qg(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=um(e);if(t){var i=um(this).constructor;r=Qg(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Ol(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return lm(e)}(this,r)}}function hm(e){var t=function(e,t){if("object"!==Ol(e)||null===e)return e;var r=e[Xg];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Ol(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ol(t)?t:String(t)}var dm=Lr,pm=li.indexOf,vm=Ql,ym=S([].indexOf),gm=!!ym&&1/ym([1],1,-0)<0;dm({target:"Array",proto:!0,forced:gm||!vm("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return gm?ym(this,e,t)||0:pm(this,e,t)}});var mm=Wn("Array").indexOf,_m=l,bm=mm,wm=Array.prototype,km=r((function(e){var t=e.indexOf;return e===wm||_m(wm,e)&&t===wm.indexOf?bm:t})),xm=Lr,Sm=oo.find,Em="find",Tm=!0;Em in[]&&Array(1)[Em]((function(){Tm=!1})),xm({target:"Array",proto:!0,forced:Tm},{find:function(e){return Sm(this,e,arguments.length>1?arguments[1]:void 0)}});var Am=Wn("Array").find,Lm=l,Om=Am,Cm=Array.prototype,Dm=r((function(e){var t=e.find;return e===Cm||Lm(Cm,e)&&t===Cm.find?Om:t})),Pm=C,Rm=Cr,Um=TypeError,Im=Object.getOwnPropertyDescriptor,Mm=Pm&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(RM){return RM instanceof TypeError}}(),Bm=Ae,jm=TypeError,Fm=function(e,t){if(!delete e[t])throw jm("Cannot delete property "+Bm(t)+" of "+Bm(e))},Nm=Lr,Vm=Je,zm=ai,Gm=Ur,qm=Fr,Hm=Mm?function(e,t){if(Rm(e)&&!Im(e,"length").writable)throw Um("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Wm=Vr,Km=Tn,Ym=Hr,Jm=Fm,Qm=Cn("splice"),Xm=Math.max,$m=Math.min;Nm({target:"Array",proto:!0,forced:!Qm},{splice:function(e,t){var r,n,i,a,o,s,u=Vm(this),c=qm(u),l=zm(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=$m(Xm(Gm(t),0),c-l)),Wm(c+r-n),i=Km(u,n),a=0;a<n;a++)(o=l+a)in u&&Ym(i,a,u[o]);if(i.length=n,r<n){for(a=l;a<c-n;a++)s=a+r,(o=a+n)in u?u[s]=u[o]:Jm(u,s);for(a=c;a>c-n+r;a--)Jm(u,a-1)}else if(r>n)for(a=c-n;a>l;a--)s=a+r-1,(o=a+n-1)in u?u[s]=u[o]:Jm(u,s);for(a=0;a<r;a++)u[a+l]=arguments[a+2];return Hm(u,c-n+r),i}});var Zm=Wn("Array").splice,e_=l,t_=Zm,r_=Array.prototype,n_=r((function(e){var t=e.splice;return e===r_||e_(r_,e)&&t===r_.splice?t_:t}));Lr({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var i_=r(re.Number.isNaN),a_="\t\n\v\f\r \u2028\u2029\ufeff",o_=J,s_=ei,u_=a_,c_=c("".replace),l_=RegExp("^["+u_+"]+"),f_=RegExp("(^|[^"+u_+"])["+u_+"]+$"),h_=function(e){return function(t){var r=s_(o_(t));return 1&e&&(r=c_(r,l_,"")),2&e&&(r=c_(r,f_,"$1")),r}},d_={start:h_(1),end:h_(2),trim:h_(3)},p_=h,v_=n,y_=c,g_=ei,m_=d_.trim,__=a_,b_=p_.parseInt,w_=p_.Symbol,k_=w_&&w_.iterator,x_=/^[+-]?0x/i,S_=y_(x_.exec),E_=8!==b_(__+"08")||22!==b_(__+"0x16")||k_&&!v_((function(){b_(Object(k_))}))?function(e,t){var r=m_(g_(e));return b_(r,t>>>0||(S_(x_,r)?16:10))}:b_;Lr({global:!0,forced:parseInt!=E_},{parseInt:E_});var T_=r(re.parseInt),A_=oo.map;Lr({target:"Array",proto:!0,forced:!Cn("map")},{map:function(e){return A_(this,e,arguments.length>1?arguments[1]:void 0)}});var L_=Wn("Array").map,O_=l,C_=L_,D_=Array.prototype,P_=r((function(e){var t=e.map;return e===D_||O_(D_,e)&&t===D_.map?C_:t}));Lr({target:"Array",stat:!0},{isArray:Cr});var R_=r(re.Array.isArray),U_=r(Al),I_=$e,M_=R,B_=te,j_=rr,F_=function(e){return void 0!==e&&(I_(e,"value")||I_(e,"writable"))},N_=O,V_=Pu;Lr({target:"Reflect",stat:!0},{get:function e(t,r){var n,i,a=arguments.length<3?t:arguments[2];return j_(t)===a?t[r]:(n=N_.f(t,r))?F_(n)?n.value:void 0===n.get?void 0:M_(n.get,a):B_(i=V_(t))?e(i,r,a):void 0}});var z_=r(re.Reflect.get),G_=r(dh),q_=rr,H_=Sh,W_=Qt,K_=R,Y_=Je,J_=function(e,t,r,n){try{return n?t(q_(r)[0],r[1]):t(r)}catch(RM){H_(e,"throw",RM)}},Q_=sh,X_=_n,$_=Fr,Z_=Hr,eb=bh,tb=dh,rb=Array,nb=function(e){var t=Y_(e),r=X_(this),n=arguments.length,i=n>1?arguments[1]:void 0,a=void 0!==i;a&&(i=W_(i,n>2?arguments[2]:void 0));var o,s,u,c,l,f,h=tb(t),d=0;if(!h||this===rb&&Q_(h))for(o=$_(t),s=r?new this(o):rb(o);o>d;d++)f=a?i(t[d],d):t[d],Z_(s,d,f);else for(l=(c=eb(t,h)).next,s=r?new this:[];!(u=K_(l,c)).done;d++)f=a?J_(c,i,[u.value,d],!0):u.value,Z_(s,d,f);return s.length=d,s},ib=nb;Lr({target:"Array",stat:!0,forced:!Yv((function(e){Array.from(e)}))},{from:ib});var ab=r(re.Array.from);function ob(e,t){var r=Pl(e);if(Rl){var n=Rl(e);t&&(n=Fl(n).call(n,(function(t){return Yl(e,t).enumerable}))),r.push.apply(r,n)}return r}function sb(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?sf(r=ob(Object(i),!0)).call(r,(function(t){hb(e,t,i[t])})):mf?Ef(e,mf(i)):sf(n=ob(Object(i))).call(n,(function(t){Pf(e,t,Yl(i,t))}))}return e}function ub(e){return(ub="function"==typeof Rf&&"symbol"==typeof U_?function(e){return typeof e}:function(e){return e&&"function"==typeof Rf&&e.constructor===Rf&&e!==Rf.prototype?"symbol":typeof e})(e)}function cb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Pf(e,vb(n.key),n)}}function fb(e,t,r){return t&&lb(e.prototype,t),r&&lb(e,r),Pf(e,"prototype",{writable:!1}),e}function hb(e,t,r){return(t=vb(t))in e?Pf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function db(e){return function(e){if(R_(e))return pb(e)}(e)||function(e){if(void 0!==Rf&&null!=G_(e)||null!=e["@@iterator"])return ab(e)}(e)||function(e,t){var r;if(!e)return;if("string"==typeof e)return pb(e,t);var n=mg(r=Object.prototype.toString.call(e)).call(r,8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return ab(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pb(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function vb(e){var t=function(e,t){if("object"!==Ol(e)||null===e)return e;var r=e[Xg];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Ol(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ol(t)?t:String(t)}var yb=C,gb=c,mb=R,_b=n,bb=wi,wb=ua,kb=U,xb=Je,Sb=H,Eb=Object.assign,Tb=Object.defineProperty,Ab=gb([].concat),Lb=!Eb||_b((function(){if(yb&&1!==Eb({b:1},Eb(Tb({},"a",{enumerable:!0,get:function(){Tb(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=Eb({},e)[r]||bb(Eb({},t)).join("")!=n}))?function(e,t){for(var r=xb(e),n=arguments.length,i=1,a=wb.f,o=kb.f;n>i;)for(var s,u=Sb(arguments[i++]),c=a?Ab(bb(u),a(u)):bb(u),l=c.length,f=0;l>f;)s=c[f++],yb&&!mb(o,u,s)||(r[s]=u[s]);return r}:Eb,Ob=Lb;Lr({target:"Object",stat:!0,arity:2,forced:Object.assign!==Ob},{assign:Ob});var Cb=r(re.Object.assign),Db={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function a(e,t,n,a,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new i(n,a||e,o),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}If&&(n.prototype=If(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?mg(n).call(n,1):n);return Rl?Xn(i).call(i,Rl(e)):i},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=new Array(a);i<a;i++)o[i]=n[i].fn;return o},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,i),!0;case 5:return l.fn.call(l.context,t,n,i,a),!0;case 6:return l.fn.call(l.context,t,n,i,a,o),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var h,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,n);break;case 4:l[c].fn.call(l[c].context,t,n,i);break;default:if(!u)for(h=1,u=new Array(f-1);h<f;h++)u[h-1]=arguments[h];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,r){return a(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return a(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return o(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||i&&!s.once||n&&s.context!==n||o(this,a);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||i&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[a]=1===c.length?c[0]:c:o(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&o(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(Db);var Pb=r(Db.exports),Rb=oo.some;Lr({target:"Array",proto:!0,forced:!Ql("some")},{some:function(e){return Rb(this,e,arguments.length>1?arguments[1]:void 0)}});var Ub=Wn("Array").some,Ib=l,Mb=Ub,Bb=Array.prototype,jb=r((function(e){var t=e.some;return e===Bb||Ib(Bb,e)&&t===Bb.some?Mb:t})),Fb=Ur,Nb=ei,Vb=J,zb=RangeError,Gb=c,qb=Br,Hb=ei,Wb=J,Kb=Gb((function(e){var t=Nb(Vb(this)),r="",n=Fb(e);if(n<0||n==1/0)throw zb("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),Yb=Gb("".slice),Jb=Math.ceil,Qb=function(e){return function(t,r,n){var i,a,o=Hb(Wb(t)),s=qb(r),u=o.length,c=void 0===n?" ":Hb(n);return s<=u||""==c?o:((a=Kb(c,Jb((i=s-u)/c.length))).length>i&&(a=Yb(a,0,i)),e?o+a:a+o)}},Xb={start:Qb(!1),end:Qb(!0)},$b=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(ue),Zb=Xb.start;Lr({target:"String",proto:!0,forced:$b},{padStart:function(e){return Zb(this,e,arguments.length>1?arguments[1]:void 0)}});var ew,tw=Wn("String").padStart,rw=l,nw=tw,iw=String.prototype,aw=r((function(e){var t=e.padStart;return"string"==typeof e||e===iw||rw(iw,e)&&t===iw.padStart?nw:t})),ow="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,sw=h,uw=g,cw=L,lw=ow,fw=ue,hw=Ds,dw=Td,pw=sw.Function,vw=/MSIE .\./.test(fw)||lw&&((ew=sw.Bun.version.split(".")).length<3||0==ew[0]&&(ew[1]<3||3==ew[1]&&0==ew[2])),yw=function(e,t){var r=t?2:1;return vw?function(n,i){var a=dw(arguments.length,1)>r,o=cw(n)?n:pw(n),s=a?hw(arguments,r):[],u=a?function(){uw(o,this,s)}:o;return t?e(u,i):e(u)}:e},gw=Lr,mw=h,_w=yw(mw.setInterval,!0);gw({global:!0,bind:!0,forced:mw.setInterval!==_w},{setInterval:_w});var bw=Lr,ww=h,kw=yw(ww.setTimeout,!0);bw({global:!0,bind:!0,forced:ww.setTimeout!==kw},{setTimeout:kw});var xw=r(re.setInterval),Sw=r(re.setTimeout),Ew=oo.every;Lr({target:"Array",proto:!0,forced:!Ql("every")},{every:function(e){return Ew(this,e,arguments.length>1?arguments[1]:void 0)}});var Tw=Wn("Array").every,Aw=l,Lw=Tw,Ow=Array.prototype,Cw=r((function(e){var t=e.every;return e===Ow||Aw(Ow,e)&&t===Ow.every?Lw:t})),Dw=h,Pw=n,Rw=ei,Uw=d_.trim,Iw=a_,Mw=c("".charAt),Bw=Dw.parseFloat,jw=Dw.Symbol,Fw=jw&&jw.iterator,Nw=1/Bw(Iw+"-0")!=-1/0||Fw&&!Pw((function(){Bw(Object(Fw))}))?function(e){var t=Uw(Rw(e)),r=Bw(t);return 0===r&&"-"==Mw(t,0)?-0:r}:Bw;Lr({global:!0,forced:parseFloat!=Nw},{parseFloat:Nw});var Vw=r(re.parseFloat),zw=xu.PROPER,Gw=n,qw=a_,Hw=d_.trim;Lr({target:"String",proto:!0,forced:function(e){return Gw((function(){return!!qw[e]()||"
"!=="
"[e]()||zw&&qw[e].name!==e}))}("trim")},{trim:function(){return Hw(this)}});var Ww=Wn("String").trim,Kw=l,Yw=Ww,Jw=String.prototype,Qw=r((function(e){var t=e.trim;return"string"==typeof e||e===Jw||Kw(Jw,e)&&t===Jw.trim?Yw:t})),Xw=ra,$w=Math.floor,Zw=function(e,t){var r=e.length,n=$w(r/2);return r<8?ek(e,t):tk(e,Zw(Xw(e,0,n),t),Zw(Xw(e,n),t),t)},ek=function(e,t){for(var r,n,i=e.length,a=1;a<i;){for(n=a,r=e[a];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==a++&&(e[n]=r)}return e},tk=function(e,t,r,n){for(var i=t.length,a=r.length,o=0,s=0;o<i||s<a;)e[o+s]=o<i&&s<a?n(t[o],r[s])<=0?t[o++]:r[s++]:o<i?t[o++]:r[s++];return e},rk=Zw,nk=ue.match(/firefox\/(\d+)/i),ik=!!nk&&+nk[1],ak=/MSIE|Trident/.test(ue),ok=ue.match(/AppleWebKit\/(\d+)\./),sk=!!ok&&+ok[1],uk=Lr,ck=c,lk=De,fk=Je,hk=Fr,dk=Fm,pk=ei,vk=n,yk=rk,gk=Ql,mk=ik,_k=ak,bk=ve,wk=sk,kk=[],xk=ck(kk.sort),Sk=ck(kk.push),Ek=vk((function(){kk.sort(void 0)})),Tk=vk((function(){kk.sort(null)})),Ak=gk("sort"),Lk=!vk((function(){if(bk)return bk<70;if(!(mk&&mk>3)){if(_k)return!0;if(wk)return wk<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)kk.push({k:t+n,v:r})}for(kk.sort((function(e,t){return t.v-e.v})),n=0;n<kk.length;n++)t=kk[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));uk({target:"Array",proto:!0,forced:Ek||!Tk||!Ak||!Lk},{sort:function(e){void 0!==e&&lk(e);var t=fk(this);if(Lk)return void 0===e?xk(t):xk(t,e);var r,n,i=[],a=hk(t);for(n=0;n<a;n++)n in t&&Sk(i,t[n]);for(yk(i,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:pk(t)>pk(r)?1:-1}}(e)),r=hk(i),n=0;n<r;)t[n]=i[n++];for(;n<a;)dk(t,n++);return t}});var Ok=Wn("Array").sort,Ck=l,Dk=Ok,Pk=Array.prototype,Rk=r((function(e){var t=e.sort;return e===Pk||Ck(Pk,e)&&t===Pk.sort?Dk:t})),Uk=Lr,Ik=Date,Mk=c(Ik.prototype.getTime);Uk({target:"Date",stat:!0},{now:function(){return Mk(new Ik)}});var Bk,jk=r(re.Date.now),Fk="undefined"!=typeof window&&window.location&&km(Bk=window.location.href).call(Bk,"xgplayerdebugger=1")>-1,Nk="color: #525252; background-color: #90ee90;",Vk="color: #525252; background-color: red;",zk="color: #525252; background-color: yellow; ",Gk="%c[xgplayer]",qk={config:{debug:Fk?3:0},logInfo:function(e){for(var t,r,n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];this.config.debug>=3&&(r=console).log.apply(r,Xn(t=[Gk,Nk,e]).call(t,i))},logWarn:function(e){for(var t,r,n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];this.config.debug>=1&&(r=console).warn.apply(r,Xn(t=[Gk,zk,e]).call(t,i))},logError:function(e){var t,r;if(!(this.config.debug<1)){for(var n=this.config.debug>=2?"trace":"error",i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];(r=console)[n].apply(r,Xn(t=[Gk,Vk,e]).call(t,a))}}},Hk=function(){function e(t){cb(this,e),this.bufferedList=t}return fb(e,[{key:"start",value:function(e){return this.bufferedList[e].start}},{key:"end",value:function(e){return this.bufferedList[e].end}},{key:"length",get:function(){return this.bufferedList.length}}]),e}(),Wk={};Wk.createDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=document.createElement(t);return a.className=i,a.innerHTML=r,sf(e=Pl(n)).call(e,(function(e){var r=e,i=n[e];"video"===t||"audio"===t||"live-video"===t?i&&a.setAttribute(r,i):a.setAttribute(r,i)})),a},Wk.createDomFromHtml=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";try{var n=document.createElement("div");n.innerHTML=e;var i=n.children;if(n=null,i.length>0){var a;if(i=i[0],r&&Wk.addClass(i,r),t)sf(a=Pl(t)).call(a,(function(e){i.setAttribute(e,t[e])}));return i}return null}catch(o){return qk.logError("util.createDomFromHtml",o),null}},Wk.hasClass=function(e,t){if(!e||!t)return!1;try{return jb(Array.prototype).call(e.classList,(function(e){return e===t}))}catch(n){var r=e.className&&"object"===ub(e.className)?e.getAttribute("class"):e.className;return r&&!!r.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},Wk.addClass=function(e,t){if(e&&t)try{var r;sf(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.add(t)}))}catch(n){Wk.hasClass(e,t)||(e.className&&"object"===ub(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},Wk.removeClass=function(e,t){if(e&&t)try{var r;sf(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.remove(t)}))}catch(i){var n;if(Wk.hasClass(e,t))sf(n=t.split(/\s+/g)).call(n,(function(t){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===ub(e.className)?e.setAttribute("class",e.getAttribute("class").replace(r," ")):e.className=e.className.replace(r," ")}))}},Wk.toggleClass=function(e,t){var r;e&&sf(r=t.split(/\s+/g)).call(r,(function(t){Wk.hasClass(e,t)?Wk.removeClass(e,t):Wk.addClass(e,t)}))},Wk.classNames=function(){for(var e=arguments,t=[],r=function(r){if("String"===Wk.typeOf(e[r]))t.push(e[r]);else if("Object"===Wk.typeOf(e[r])){var n;P_(n=Pl(e[r])).call(n,(function(n){e[r][n]&&t.push(n)}))}},n=0;n<arguments.length;n++)r(n);return t.join(" ")},Wk.findDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,r=arguments.length>1?arguments[1]:void 0;try{e=t.querySelector(r)}catch(n){qk.logError("util.findDom",n),0===km(r).call(r,"#")&&(e=t.getElementById(mg(r).call(r,1)))}return e},Wk.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},Wk.padStart=function(e,t,r){for(var n=String(r),i=t>>0,a=Math.ceil(i/n.length),o=[],s=String(e);a--;)o.push(n);return o.join("").substring(0,i-s.length)+s},Wk.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=aw(Wk).call(Wk,Math.floor(e/3600),2,0),r=aw(Wk).call(Wk,Math.floor((e-3600*t)/60),2,0),n=aw(Wk).call(Wk,Math.floor(e-3600*t-60*r),2,0);return("00"===t?[r,n]:[t,r,n]).join(":")},Wk.event=function(e){if(e.touches){var t=e.touches[0]||e.changedTouches[0];e.clientX=t.clientX||0,e.clientY=t.clientY||0,e.offsetX=t.pageX-t.target.offsetLeft,e.offsetY=t.pageY-t.target.offsetTop}e._target=e.target||e.srcElement},Wk.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},Wk.deepCopy=function(e,t){var r;if("Object"===Wk.typeOf(t)&&"Object"===Wk.typeOf(e))return sf(r=Pl(t)).call(r,(function(r){if("Object"!==Wk.typeOf(t[r])||t[r]instanceof Node)if("Array"===Wk.typeOf(t[r])){var n;e[r]="Array"===Wk.typeOf(e[r])?Xn(n=e[r]).call(n,t[r]):t[r]}else e[r]=t[r];else void 0===e[r]||void 0===e[r]?e[r]=t[r]:Wk.deepCopy(e[r],t[r])})),e},Wk.deepMerge=function(e,t){var r;return P_(r=Pl(t)).call(r,(function(r){var n;"Array"===Wk.typeOf(t[r])&&"Array"===Wk.typeOf(e[r])?"Array"===Wk.typeOf(e[r])&&(n=e[r]).push.apply(n,db(t[r])):Wk.typeOf(e[r])!==Wk.typeOf(t[r])||null===e[r]||"Object"!==Wk.typeOf(e[r])||t[r]instanceof window.Node?null!==t[r]&&(e[r]=t[r]):Wk.deepMerge(e[r],t[r])})),e},Wk.getBgImage=function(e){var t=(e.currentStyle||window.getComputedStyle(e,null)).backgroundImage;if(!t||"none"===t)return"";var r=document.createElement("a");return r.href=t.replace(/url\("|"\)/g,""),r.href},Wk.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return sf(Array.prototype).call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},Wk.setInterval=function(e,t,r,n){e._interval[t]||(e._interval[t]=xw(Ig(r).call(r,e),n))},Wk.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},Wk.setTimeout=function(e,t,r){e._timers||(e._timers=[]);var n=Sw((function(){t(),Wk.clearTimeout(e,n)}),r);return e._timers.push(n),n},Wk.clearTimeout=function(e,t){var r=e._timers;if("Array"===Wk.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===t){n_(r).call(r,n,1),clearTimeout(t);break}}else clearTimeout(t)},Wk.clearAllTimers=function(e){var t=e._timers;"Array"===Wk.typeOf(t)&&(P_(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},Wk.createImgBtn=function(e,t,r,n){var i,a,o,s,u,c,l,f,h,d,p,v,y=Wk.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(y.style.backgroundImage='url("'.concat(t,'")'),r&&n)&&(Cw(i=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(i,(function(e){var t,i;return!(km(r).call(r,e)>-1&&km(n).call(n,e)>-1)||(l=Vw(Qw(t=mg(r).call(r,0,km(r).call(r,e))).call(t)),f=Vw(Qw(i=mg(n).call(n,0,km(n).call(n,e))).call(i)),h=e,!1)})),y.style.width=Xn(a="".concat(l)).call(a,h),y.style.height=Xn(o="".concat(f)).call(o,h),y.style.backgroundSize=Xn(s=Xn(u=Xn(c="".concat(l)).call(c,h," ")).call(u,f)).call(s,h),y.style.margin="start"===e?Xn(d=Xn(p=Xn(v="-".concat(f/2)).call(v,h," auto auto -")).call(p,l/2)).call(d,h):"auto 5px auto 5px");return y},Wk.Hex2RGBA=function(e,t){var r,n=[];if(/^\#[0-9A-F]{3}$/i.test(e)){var i="#";e.replace(/[0-9A-F]/gi,(function(e){i+=e+e})),e=i}return/^#[0-9A-F]{6}$/i.test(e)?(e.replace(/[0-9A-F]{2}/gi,(function(e){n.push(T_(e,16))})),Xn(r="rgba(".concat(n.join(","),", ")).call(r,t,")")):"rgba(255, 255, 255, 0.1)"},Wk.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},Wk.checkIsFunction=function(e){return e&&"function"==typeof e},Wk.checkIsObject=function(e){return null!==e&&"object"===ub(e)},Wk.hide=function(e){e.style.display="none"},Wk.show=function(e,t){e.style.display=t||"block"},Wk.isUndefined=function(e){if(null==e)return!0},Wk.isNotNull=function(e){return!(null==e)},Wk.setStyleFromCsstext=function(e,t){if(t)if("String"===Wk.typeOf(t)){var r=t.replace(/\s+/g,"").split(";");P_(r).call(r,(function(t){if(t){var r=t.split(":");r.length>1&&(e.style[r[0]]=r[1])}}))}else{var n;P_(n=Pl(t)).call(n,(function(r){e.style[r]=t[r]}))}},Wk.filterStyleFromText=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],n=e.style.cssText;if(!n)return{};var i=n.replace(/\s+/g,"").split(";"),a={},o={};return P_(i).call(i,(function(e){if(e){var t=e.split(":");t.length>1&&(!function(e,t){for(var r=0,n=t.length;r<n;r++)if(km(e).call(e,t[r])>-1)return!0;return!1}(t[0],r)?o[t[0]]=t[1]:a[t[0]]=t[1])}})),e.setAttribute("style",""),P_(t=Pl(o)).call(t,(function(t){e.style[t]=o[t]})),a},Wk.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var r=t.replace(/\s+/g,"").split(";"),n={};return P_(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(n[t[0]]=t[1])}})),n},Wk.preloadImg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(e){var n=new window.Image;n.onload=function(e){n=null,t&&t(e)},n.onerror=function(e){n=null,r&&r(e)},n.src=e}},Wk.stopPropagation=function(e){e&&e.stopPropagation()},Wk.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},Wk.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},Wk.checkTouchSupport=function(){return"ontouchstart"in window},Wk.getBuffered2=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,r=[],n=0;n<e.length;n++)r.push({start:e.start(n)<.5?0:e.start(n),end:e.end(n)});Rk(r).call(r,(function(e,t){var r=e.start-t.start;return r||t.end-e.end}));var i=[];if(t)for(var a=0;a<r.length;a++){var o=i.length;if(o){var s=i[o-1].end;r[a].start-s<t?r[a].end>s&&(i[o-1].end=r[a].end):i.push(r[a])}else i.push(r[a])}else i=r;return new Hk(i)},Wk.getEventPos=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.touches&&e.touches.length>0&&(e=e.touches[0]),{x:e.x/t,y:e.y/t,clientX:e.clientX/t,clientY:e.clientY/t,offsetX:e.offsetX/t,offsetY:e.offsetY/t,pageX:e.pageX/t,pageY:e.pageY/t}},Wk.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},Wk.getHostFromUrl=function(e){if("String"!==Wk.typeOf(e))return"";var t=e.split("/"),r="";return t.length>3&&t[2]&&(r=t[2]),r},Wk.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},Wk.isMSE=function(e){return!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},Wk.isBlob=function(e){return"string"==typeof e&&/^blob/.test(e)},Wk.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=T_(e)}catch(r){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=T_(window.performance.now())),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var r=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?r:3&r|8).toString(16)}))},Wk.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},Wk.adjustTimeByDuration=function(e,t,r){return t&&e&&(e>t||r&&e<t)?t:e},Wk.createPositionBar=function(e,t){var r=Wk.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(r),r},Wk.getTransformStyle=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{x:0,y:0,scale:1,rotate:0},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n={scale:"".concat(t.scale||1),translate:Xn(e="".concat(t.x||0,"%, ")).call(e,t.y||0,"%"),rotate:"".concat(t.rotate||0,"deg")},i=Pl(n);return sf(i).call(i,(function(e){var t,i=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),a=Xn(t="".concat(e,"(")).call(t,n[e],")");i.test(r)?(i.lastIndex=-1,r=r.replace(i,a)):r+="".concat(a," ")})),r},Wk.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360},Wk.getIndexByTime=function(e,t){var r=t.length,n=-1;if(r<1)return n;if(e<=t[0].end||r<2)n=0;else if(e>t[r-1].end)n=r-1;else for(var i=1;i<r;i++)if(e>t[i-1].end&&e<=t[i].end){n=i;break}return n},Wk.getOffsetCurrentTime=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,n=-1;if((n=r>=0&&r<t.length?r:Wk.getIndexByTime(e,t))<0)return-1;var i=t.length,a=t[n],o=a.start,s=a.end,u=a.cTime,c=a.offset;return e<o?u:e>=o&&e<=s?e-c:e>s&&n>=i-1?s:-1},Wk.getCurrentTimeByOffset=function(e,t){var r=-1;if(!t||t.length<0)return e;for(var n=0;n<t.length;n++)if(e<=t[n].duration){r=n;break}if(-1!==r){var i=t[r].start;return r-1<0?i+e:i+(e-t[r-1].duration)}return e};var Kk="3.0.11-alpha.2",Yk={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},Jk=fb((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};cb(this,e);var n=t&&t.i18n?t.i18n.ERROR_TYPES:null;if(t.media){var i,a=r.mediaError?r.mediaError:t.media.error||{},o=t.duration,s=t.currentTime,u=t.ended,c=t.src,l=t.currentSrc,f=t.media,h=f.readyState,d=f.networkState,p=r.errorCode||a.code;Yk[p]&&(p=Yk[p]);var v={playerVersion:Kk,currentTime:s,duration:o,ended:u,readyState:h,networkState:d,src:c||l,errorType:r.errorType,errorCode:p,message:r.errorMessage||a.message,mediaError:a,originError:r.originError?r.originError.stack:"",host:Wk.getHostFromUrl(c||l)};return r.ext&&P_(i=Pl(r.ext)).call(i,(function(e){v[e]=r.ext[e]})),v}if(arguments.length>1){for(var y={playerVersion:Kk,domain:document.domain},g=["errorType","currentTime","duration","networkState","readyState","src","currentSrc","ended","errd","errorCode","mediaError"],m=0;m<arguments.length;m++)y[g[m]]=arguments[m];return y.ex=n?(n[arguments[0]]||{}).msg:"",y}}));function Qk(e,t,r){for(var n,i=arguments.length,a=new Array(i>3?i-3:0),o=3;o<i;o++)a[o-3]=arguments[o];var s,u=t.call.apply(t,Xn(n=[e]).call(n,a));r&&"function"==typeof r&&(u&&u.then?u.then((function(){for(var t,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];r.call.apply(r,Xn(t=[e]).call(t,i))})):r.call.apply(r,Xn(s=[e]).call(s,a)))}function Xk(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{pre:null,next:null};return this.__hooks||(this.__hooks={}),!this.__hooks[e]&&(this.__hooks[e]=null),Ig(r=function(){var r,i=arguments,a=this;if(n.pre)try{var o,s;(s=n.pre).call.apply(s,Xn(o=[this]).call(o,mg(Array.prototype).call(arguments)))}catch(g){var u,c;throw g.message=Xn(u=Xn(c="[pluginName: ".concat(this.pluginName,":")).call(c,e,":pre error] >> ")).call(u,g.message),g}if(this.__hooks&&this.__hooks[e])try{var l,f,h,d=(f=this.__hooks[e]).call.apply(f,Xn(l=[this,this]).call(l,mg(Array.prototype).call(arguments)));if(d)if(d.then)d.then((function(e){var r;!1!==e&&Qk.apply(void 0,Xn(r=[a,t,n.next]).call(r,db(i)))})).catch((function(e){throw e}));else Qk.apply(void 0,Xn(h=[this,t,n.next]).call(h,mg(Array.prototype).call(arguments)));else if(void 0===d){var p;Qk.apply(void 0,Xn(p=[this,t,n.next]).call(p,mg(Array.prototype).call(arguments)))}}catch(g){var v,y;throw g.message=Xn(v=Xn(y="[pluginName: ".concat(this.pluginName,":")).call(y,e,"] >> ")).call(v,g.message),g}else Qk.apply(void 0,Xn(r=[this,t,n.next]).call(r,mg(Array.prototype).call(arguments)))}).call(r,this)}function $k(e,t){var r=this.__hooks;if(r)return r.hasOwnProperty(e)?(r&&(r[e]=t),!0):(console.warn("has no supported hook which name [".concat(e,"]")),!1)}function Zk(e,t){var r=this.__hooks;r&&delete r[e]}function ex(e,t){var r;qk.logError(Xn(r="[".concat(e,"] event or callback cant be undefined or null when call ")).call(r,t))}var tx=function(){function e(t){cb(this,e),Wk.checkIsFunction(this.beforeCreate)&&this.beforeCreate(t),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.__hooks={},t&&P_(t).call(t,(function(t){e.__hooks[t]=null})),Pf(e,"hooks",{get:function(){var t;return e.__hooks&&P_(t=Pl(e.__hooks)).call(t,(function(t){if(e.__hooks[t])return t}))}})}(this),this.__args=t,this.__events={},this.__onceEvents={},this.config=t.config||{},this.player=null,this.playerConfig={},this.pluginName="",this.__init(t)}return fb(e,[{key:"beforeCreate",value:function(e){}},{key:"afterCreate",value:function(){}},{key:"beforePlayerInit",value:function(){}},{key:"onPluginsReady",value:function(){}},{key:"afterPlayerInit",value:function(){}},{key:"destroy",value:function(){}},{key:"__init",value:function(e){this.player=e.player,this.playerConfig=e.player&&e.player.config,this.pluginName=e.pluginName?e.pluginName.toLowerCase():this.constructor.pluginName.toLowerCase(),this.logger=e.player&&e.player.logger}},{key:"updateLang",value:function(e){e||(e=this.lang)}},{key:"lang",get:function(){return this.player.lang}},{key:"i18n",get:function(){return this.player.i18n}},{key:"i18nKeys",get:function(){return this.player.i18nKeys}},{key:"domEventType",get:function(){var e=Wk.checkTouchSupport()?"touch":"mouse";return!this.playerConfig||"touch"!==this.playerConfig.domEventType&&"mouse"!==this.playerConfig.domEventType||(e=this.playerConfig.domEventType),e}},{key:"on",value:function(e,t){var r=this;e&&t&&this.player?"string"==typeof e?(this.__events[e]=t,this.player.on(e,t)):R_(e)&&sf(e).call(e,(function(e){r.__events[e]=t,r.player.on(e,t)})):ex(this.pluginName,"plugin.on(event, callback)")}},{key:"once",value:function(e,t){var r=this;e&&t&&this.player?"string"==typeof e?(this.__onceEvents[e]=t,this.player.once(e,t)):R_(e)&&sf(e).call(e,(function(n){r.__onceEvents[n]=t,r.player.once(e,t)})):ex(this.pluginName,"plugin.once(event, callback)")}},{key:"off",value:function(e,t){var r=this;e&&t&&this.player?"string"==typeof e?(delete this.__events[e],this.player.off(e,t)):R_(e)&&sf(e).call(e,(function(n){delete r.__events[e],r.player.off(n,t)})):ex(this.pluginName,"plugin.off(event, callback)")}},{key:"offAll",value:function(){var e,t=this;sf(e=["__events","__onceEvents"]).call(e,(function(e){var r;sf(r=Pl(t[e])).call(r,(function(r){t[e][r]&&t.off(r,t[e][r]),r&&delete t[e][r]}))})),this.__events={},this.__onceEvents={}}},{key:"emit",value:function(e){var t,r;if(this.player){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];(r=this.player).emit.apply(r,Xn(t=[e]).call(t,i))}}},{key:"emitUserAction",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.player){var n=sb(sb({},r),{},{pluginName:this.pluginName});this.player.emitUserAction(e,t,n)}}},{key:"hook",value:function(e,t){var r;return Xk.call.apply(Xk,Xn(r=[this]).call(r,mg(Array.prototype).call(arguments)))}},{key:"useHooks",value:function(e,t){for(var r,n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return $k.call.apply($k,Xn(r=[this]).call(r,mg(Array.prototype).call(arguments)))}},{key:"removeHooks",value:function(e,t){for(var r,n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return Zk.call.apply(Zk,Xn(r=[this]).call(r,mg(Array.prototype).call(arguments)))}},{key:"registerPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(this.player)return r&&(t.pluginName=r),this.player.registerPlugin({plugin:e,options:t})}},{key:"getPlugin",value:function(e){return this.player?this.player.getPlugin(e):null}},{key:"__destroy",value:function(){var e,t=this,r=this.player,n=this.pluginName;this.offAll(),Wk.clearAllTimers(this),Wk.checkIsFunction(this.destroy)&&this.destroy(),P_(e=["player","playerConfig","pluginName","logger","__args","__hooks"]).call(e,(function(e){t[e]=null})),r.unRegisterPlugin(n),this.__hooks=null}}],[{key:"defineGetterOrSetter",value:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&Pf(e,r,t[r])}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),e}(),rx=n,nx=ht("iterator"),ix=!rx((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!e.toJSON||!t.size&&true||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[nx]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),ax=c,ox=2147483647,sx=/[^\0-\u007E]/,ux=/[.\u3002\uFF0E\uFF61]/g,cx="Overflow: input needs wider integers to process",lx=RangeError,fx=ax(ux.exec),hx=Math.floor,dx=String.fromCharCode,px=ax("".charCodeAt),vx=ax([].join),yx=ax([].push),gx=ax("".replace),mx=ax("".split),_x=ax("".toLowerCase),bx=function(e){return e+22+75*(e<26)},wx=function(e,t,r){var n=0;for(e=r?hx(e/700):e>>1,e+=hx(e/t);e>455;)e=hx(e/35),n+=36;return hx(n+36*e/(e+38))},kx=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=px(e,r++);if(i>=55296&&i<=56319&&r<n){var a=px(e,r++);56320==(64512&a)?yx(t,((1023&i)<<10)+(1023&a)+65536):(yx(t,i),r--)}else yx(t,i)}return t}(e);var r,n,i=e.length,a=128,o=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&yx(t,dx(n));var u=t.length,c=u;for(u&&yx(t,"-");c<i;){var l=ox;for(r=0;r<e.length;r++)(n=e[r])>=a&&n<l&&(l=n);var f=c+1;if(l-a>hx((ox-o)/f))throw lx(cx);for(o+=(l-a)*f,a=l,r=0;r<e.length;r++){if((n=e[r])<a&&++o>ox)throw lx(cx);if(n==a){for(var h=o,d=36;;){var p=d<=s?1:d>=s+26?26:d-s;if(h<p)break;var v=h-p,y=36-p;yx(t,dx(bx(p+v%y))),h=hx(v/y),d+=36}yx(t,dx(bx(h))),s=wx(o,f,c==u),o=0,c++}}o++,a++}return vx(t,"")},xx=la,Sx=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:xx(e,n,t[n],r);return e},Ex=Lr,Tx=h,Ax=R,Lx=c,Ox=C,Cx=ix,Dx=la,Px=ha,Rx=Sx,Ux=Ma,Ix=Ju,Mx=$a,Bx=vd,jx=L,Fx=$e,Nx=Qt,Vx=en,zx=rr,Gx=te,qx=ei,Hx=Wi,Wx=N,Kx=bh,Yx=dh,Jx=Td,Qx=rk,Xx=ht("iterator"),$x="URLSearchParams",Zx=$x+"Iterator",eS=Mx.set,tS=Mx.getterFor($x),rS=Mx.getterFor(Zx),nS=Object.getOwnPropertyDescriptor,iS=function(e){if(!Ox)return Tx[e];var t=nS(Tx,e);return t&&t.value},aS=iS("fetch"),oS=iS("Request"),sS=iS("Headers"),uS=oS&&oS.prototype,cS=sS&&sS.prototype,lS=Tx.RegExp,fS=Tx.TypeError,hS=Tx.decodeURIComponent,dS=Tx.encodeURIComponent,pS=Lx("".charAt),vS=Lx([].join),yS=Lx([].push),gS=Lx("".replace),mS=Lx([].shift),_S=Lx([].splice),bS=Lx("".split),wS=Lx("".slice),kS=/\+/g,xS=Array(4),SS=function(e){return xS[e-1]||(xS[e-1]=lS("((?:%[\\da-f]{2}){"+e+"})","gi"))},ES=function(e){try{return hS(e)}catch(RM){return e}},TS=function(e){var t=gS(e,kS," "),r=4;try{return hS(t)}catch(RM){for(;r;)t=gS(t,SS(r--),ES);return t}},AS=/[!'()~]|%20/g,LS={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},OS=function(e){return LS[e]},CS=function(e){return gS(dS(e),AS,OS)},DS=Ix((function(e,t){eS(this,{type:Zx,iterator:Kx(tS(e).entries),kind:t})}),"Iterator",(function(){var e=rS(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),PS=function(e){this.entries=[],this.url=null,void 0!==e&&(Gx(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===pS(e,0)?wS(e,1):e:qx(e)))};PS.prototype={type:$x,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,a,o,s,u=Yx(e);if(u)for(r=(t=Kx(e,u)).next;!(n=Ax(r,t)).done;){if(a=(i=Kx(zx(n.value))).next,(o=Ax(a,i)).done||(s=Ax(a,i)).done||!Ax(a,i).done)throw fS("Expected sequence with length 2");yS(this.entries,{key:qx(o.value),value:qx(s.value)})}else for(var c in e)Fx(e,c)&&yS(this.entries,{key:c,value:qx(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=bS(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=bS(t,"="),yS(this.entries,{key:TS(mS(r)),value:TS(vS(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],yS(r,CS(e.key)+"="+CS(e.value));return vS(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var RS=function(){Bx(this,US);var e=eS(this,new PS(arguments.length>0?arguments[0]:void 0));Ox||(this.length=e.entries.length)},US=RS.prototype;if(Rx(US,{append:function(e,t){Jx(arguments.length,2);var r=tS(this);yS(r.entries,{key:qx(e),value:qx(t)}),Ox||this.length++,r.updateURL()},delete:function(e){Jx(arguments.length,1);for(var t=tS(this),r=t.entries,n=qx(e),i=0;i<r.length;)r[i].key===n?_S(r,i,1):i++;Ox||(this.length=r.length),t.updateURL()},get:function(e){Jx(arguments.length,1);for(var t=tS(this).entries,r=qx(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){Jx(arguments.length,1);for(var t=tS(this).entries,r=qx(e),n=[],i=0;i<t.length;i++)t[i].key===r&&yS(n,t[i].value);return n},has:function(e){Jx(arguments.length,1);for(var t=tS(this).entries,r=qx(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){Jx(arguments.length,1);for(var r,n=tS(this),i=n.entries,a=!1,o=qx(e),s=qx(t),u=0;u<i.length;u++)(r=i[u]).key===o&&(a?_S(i,u--,1):(a=!0,r.value=s));a||yS(i,{key:o,value:s}),Ox||(this.length=i.length),n.updateURL()},sort:function(){var e=tS(this);Qx(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=tS(this).entries,n=Nx(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new DS(this,"keys")},values:function(){return new DS(this,"values")},entries:function(){return new DS(this,"entries")}},{enumerable:!0}),Dx(US,Xx,US.entries,{name:"entries"}),Dx(US,"toString",(function(){return tS(this).serialize()}),{enumerable:!0}),Ox&&Px(US,"size",{get:function(){return tS(this).entries.length},configurable:!0,enumerable:!0}),Ux(RS,$x),Ex({global:!0,constructor:!0,forced:!Cx},{URLSearchParams:RS}),!Cx&&jx(sS)){var IS=Lx(cS.has),MS=Lx(cS.set),BS=function(e){if(Gx(e)){var t,r=e.body;if(Vx(r)===$x)return t=e.headers?new sS(e.headers):new sS,IS(t,"content-type")||MS(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Hx(e,{body:Wx(0,qx(r)),headers:Wx(0,t)})}return e};if(jx(aS)&&Ex({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return aS(e,arguments.length>1?BS(arguments[1]):{})}}),jx(oS)){var jS=function(e){return Bx(this,uS),new oS(e,arguments.length>1?BS(arguments[1]):{})};uS.constructor=jS,jS.prototype=uS,Ex({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:jS})}}var FS,NS=Lr,VS=C,zS=ix,GS=h,qS=Qt,HS=c,WS=la,KS=ha,YS=vd,JS=$e,QS=Lb,XS=nb,$S=ra,ZS=ml.codeAt,eE=function(e){var t,r,n=[],i=mx(gx(_x(e),ux,"."),".");for(t=0;t<i.length;t++)r=i[t],yx(n,fx(sx,r)?"xn--"+kx(r):r);return vx(n,".")},tE=ei,rE=Ma,nE=Td,iE={URLSearchParams:RS,getState:tS},aE=$a,oE=aE.set,sE=aE.getterFor("URL"),uE=iE.URLSearchParams,cE=iE.getState,lE=GS.URL,fE=GS.TypeError,hE=GS.parseInt,dE=Math.floor,pE=Math.pow,vE=HS("".charAt),yE=HS(/./.exec),gE=HS([].join),mE=HS(1..toString),_E=HS([].pop),bE=HS([].push),wE=HS("".replace),kE=HS([].shift),xE=HS("".split),SE=HS("".slice),EE=HS("".toLowerCase),TE=HS([].unshift),AE="Invalid scheme",LE="Invalid host",OE="Invalid port",CE=/[a-z]/i,DE=/[\d+-.a-z]/i,PE=/\d/,RE=/^0x/i,UE=/^[0-7]+$/,IE=/^\d+$/,ME=/^[\da-f]+$/i,BE=/[\0\t\n\r #%/:<>?@[\\\]^|]/,jE=/[\0\t\n\r #/:<>?@[\\\]^|]/,FE=/^[\u0000-\u0020]+/,NE=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,VE=/[\t\n\r]/g,zE=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)TE(t,e%256),e=dE(e/256);return gE(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,a=0;a<8;a++)0!==e[a]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=a),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=mE(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},GE={},qE=QS({},GE,{" ":1,'"':1,"<":1,">":1,"`":1}),HE=QS({},qE,{"#":1,"?":1,"{":1,"}":1}),WE=QS({},HE,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),KE=function(e,t){var r=ZS(e,0);return r>32&&r<127&&!JS(t,e)?e:encodeURIComponent(e)},YE={ftp:21,file:null,http:80,https:443,ws:80,wss:443},JE=function(e,t){var r;return 2==e.length&&yE(CE,vE(e,0))&&(":"==(r=vE(e,1))||!t&&"|"==r)},QE=function(e){var t;return e.length>1&&JE(SE(e,0,2))&&(2==e.length||"/"===(t=vE(e,2))||"\\"===t||"?"===t||"#"===t)},XE=function(e){return"."===e||"%2e"===EE(e)},$E={},ZE={},eT={},tT={},rT={},nT={},iT={},aT={},oT={},sT={},uT={},cT={},lT={},fT={},hT={},dT={},pT={},vT={},yT={},gT={},mT={},_T=function(e,t,r){var n,i,a,o=tE(e);if(t){if(i=this.parse(o))throw fE(i);this.searchParams=null}else{if(void 0!==r&&(n=new _T(r,!0)),i=this.parse(o,null,n))throw fE(i);(a=cE(new uE)).bindURL(this),this.searchParams=a}};_T.prototype={type:"URL",parse:function(e,t,r){var n,i,a,o,s,u=this,c=t||$E,l=0,f="",h=!1,d=!1,p=!1;for(e=tE(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=wE(e,FE,""),e=wE(e,NE,"$1")),e=wE(e,VE,""),n=XS(e);l<=n.length;){switch(i=n[l],c){case $E:if(!i||!yE(CE,i)){if(t)return AE;c=eT;continue}f+=EE(i),c=ZE;break;case ZE:if(i&&(yE(DE,i)||"+"==i||"-"==i||"."==i))f+=EE(i);else{if(":"!=i){if(t)return AE;f="",c=eT,l=0;continue}if(t&&(u.isSpecial()!=JS(YE,f)||"file"==f&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=f,t)return void(u.isSpecial()&&YE[u.scheme]==u.port&&(u.port=null));f="","file"==u.scheme?c=fT:u.isSpecial()&&r&&r.scheme==u.scheme?c=tT:u.isSpecial()?c=aT:"/"==n[l+1]?(c=rT,l++):(u.cannotBeABaseURL=!0,bE(u.path,""),c=yT)}break;case eT:if(!r||r.cannotBeABaseURL&&"#"!=i)return AE;if(r.cannotBeABaseURL&&"#"==i){u.scheme=r.scheme,u.path=$S(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=mT;break}c="file"==r.scheme?fT:nT;continue;case tT:if("/"!=i||"/"!=n[l+1]){c=nT;continue}c=oT,l++;break;case rT:if("/"==i){c=sT;break}c=vT;continue;case nT:if(u.scheme=r.scheme,i==FS)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=$S(r.path),u.query=r.query;else if("/"==i||"\\"==i&&u.isSpecial())c=iT;else if("?"==i)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=$S(r.path),u.query="",c=gT;else{if("#"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=$S(r.path),u.path.length--,c=vT;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=$S(r.path),u.query=r.query,u.fragment="",c=mT}break;case iT:if(!u.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=vT;continue}c=sT}else c=oT;break;case aT:if(c=oT,"/"!=i||"/"!=vE(f,l+1))continue;l++;break;case oT:if("/"!=i&&"\\"!=i){c=sT;continue}break;case sT:if("@"==i){h&&(f="%40"+f),h=!0,a=XS(f);for(var v=0;v<a.length;v++){var y=a[v];if(":"!=y||p){var g=KE(y,WE);p?u.password+=g:u.username+=g}else p=!0}f=""}else if(i==FS||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(h&&""==f)return"Invalid authority";l-=XS(f).length+1,f="",c=uT}else f+=i;break;case uT:case cT:if(t&&"file"==u.scheme){c=dT;continue}if(":"!=i||d){if(i==FS||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(u.isSpecial()&&""==f)return LE;if(t&&""==f&&(u.includesCredentials()||null!==u.port))return;if(o=u.parseHost(f))return o;if(f="",c=pT,t)return;continue}"["==i?d=!0:"]"==i&&(d=!1),f+=i}else{if(""==f)return LE;if(o=u.parseHost(f))return o;if(f="",c=lT,t==cT)return}break;case lT:if(!yE(PE,i)){if(i==FS||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()||t){if(""!=f){var m=hE(f,10);if(m>65535)return OE;u.port=u.isSpecial()&&m===YE[u.scheme]?null:m,f=""}if(t)return;c=pT;continue}return OE}f+=i;break;case fT:if(u.scheme="file","/"==i||"\\"==i)c=hT;else{if(!r||"file"!=r.scheme){c=vT;continue}if(i==FS)u.host=r.host,u.path=$S(r.path),u.query=r.query;else if("?"==i)u.host=r.host,u.path=$S(r.path),u.query="",c=gT;else{if("#"!=i){QE(gE($S(n,l),""))||(u.host=r.host,u.path=$S(r.path),u.shortenPath()),c=vT;continue}u.host=r.host,u.path=$S(r.path),u.query=r.query,u.fragment="",c=mT}}break;case hT:if("/"==i||"\\"==i){c=dT;break}r&&"file"==r.scheme&&!QE(gE($S(n,l),""))&&(JE(r.path[0],!0)?bE(u.path,r.path[0]):u.host=r.host),c=vT;continue;case dT:if(i==FS||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&JE(f))c=vT;else if(""==f){if(u.host="",t)return;c=pT}else{if(o=u.parseHost(f))return o;if("localhost"==u.host&&(u.host=""),t)return;f="",c=pT}continue}f+=i;break;case pT:if(u.isSpecial()){if(c=vT,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=FS&&(c=vT,"/"!=i))continue}else u.fragment="",c=mT;else u.query="",c=gT;break;case vT:if(i==FS||"/"==i||"\\"==i&&u.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(s=EE(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"==i||"\\"==i&&u.isSpecial()||bE(u.path,"")):XE(f)?"/"==i||"\\"==i&&u.isSpecial()||bE(u.path,""):("file"==u.scheme&&!u.path.length&&JE(f)&&(u.host&&(u.host=""),f=vE(f,0)+":"),bE(u.path,f)),f="","file"==u.scheme&&(i==FS||"?"==i||"#"==i))for(;u.path.length>1&&""===u.path[0];)kE(u.path);"?"==i?(u.query="",c=gT):"#"==i&&(u.fragment="",c=mT)}else f+=KE(i,HE);break;case yT:"?"==i?(u.query="",c=gT):"#"==i?(u.fragment="",c=mT):i!=FS&&(u.path[0]+=KE(i,GE));break;case gT:t||"#"!=i?i!=FS&&("'"==i&&u.isSpecial()?u.query+="%27":u.query+="#"==i?"%23":KE(i,GE)):(u.fragment="",c=mT);break;case mT:i!=FS&&(u.fragment+=KE(i,qE))}l++}},parseHost:function(e){var t,r,n;if("["==vE(e,0)){if("]"!=vE(e,e.length-1))return LE;if(t=function(e){var t,r,n,i,a,o,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,h=function(){return vE(e,f)};if(":"==h()){if(":"!=vE(e,1))return;f+=2,l=++c}for(;h();){if(8==c)return;if(":"!=h()){for(t=r=0;r<4&&yE(ME,h());)t=16*t+hE(h(),16),f++,r++;if("."==h()){if(0==r)return;if(f-=r,c>6)return;for(n=0;h();){if(i=null,n>0){if(!("."==h()&&n<4))return;f++}if(!yE(PE,h()))return;for(;yE(PE,h());){if(a=hE(h(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;f++}u[c]=256*u[c]+i,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;u[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(o=c-l,c=7;0!=c&&o>0;)s=u[c],u[c--]=u[l+o-1],u[l+--o]=s;else if(8!=c)return;return u}(SE(e,1,-1)),!t)return LE;this.host=t}else if(this.isSpecial()){if(e=eE(e),yE(BE,e))return LE;if(t=function(e){var t,r,n,i,a,o,s,u=xE(e,".");if(u.length&&""==u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=u[n]))return e;if(a=10,i.length>1&&"0"==vE(i,0)&&(a=yE(RE,i)?16:8,i=SE(i,8==a?1:2)),""===i)o=0;else{if(!yE(10==a?IE:8==a?UE:ME,i))return e;o=hE(i,a)}bE(r,o)}for(n=0;n<t;n++)if(o=r[n],n==t-1){if(o>=pE(256,5-t))return null}else if(o>255)return null;for(s=_E(r),n=0;n<r.length;n++)s+=r[n]*pE(256,3-n);return s}(e),null===t)return LE;this.host=t}else{if(yE(jE,e))return LE;for(t="",r=XS(e),n=0;n<r.length;n++)t+=KE(r[n],GE);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return JS(YE,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&JE(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,a=e.port,o=e.path,s=e.query,u=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=zE(i),null!==a&&(c+=":"+a)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?o[0]:o.length?"/"+gE(o,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw fE(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new bT(e.path[0]).origin}catch(RM){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+zE(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(tE(e)+":",$E)},getUsername:function(){return this.username},setUsername:function(e){var t=XS(tE(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=KE(t[r],WE)}},getPassword:function(){return this.password},setPassword:function(e){var t=XS(tE(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=KE(t[r],WE)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?zE(e):zE(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,uT)},getHostname:function(){var e=this.host;return null===e?"":zE(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,cT)},getPort:function(){var e=this.port;return null===e?"":tE(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=tE(e))?this.port=null:this.parse(e,lT))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+gE(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,pT))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=tE(e))?this.query=null:("?"==vE(e,0)&&(e=SE(e,1)),this.query="",this.parse(e,gT)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=tE(e))?("#"==vE(e,0)&&(e=SE(e,1)),this.fragment="",this.parse(e,mT)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var bT=function(e){var t=YS(this,wT),r=nE(arguments.length,1)>1?arguments[1]:void 0,n=oE(t,new _T(e,!1,r));VS||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},wT=bT.prototype,kT=function(e,t){return{get:function(){return sE(this)[e]()},set:t&&function(e){return sE(this)[t](e)},configurable:!0,enumerable:!0}};if(VS&&(KS(wT,"href",kT("serialize","setHref")),KS(wT,"origin",kT("getOrigin")),KS(wT,"protocol",kT("getProtocol","setProtocol")),KS(wT,"username",kT("getUsername","setUsername")),KS(wT,"password",kT("getPassword","setPassword")),KS(wT,"host",kT("getHost","setHost")),KS(wT,"hostname",kT("getHostname","setHostname")),KS(wT,"port",kT("getPort","setPort")),KS(wT,"pathname",kT("getPathname","setPathname")),KS(wT,"search",kT("getSearch","setSearch")),KS(wT,"searchParams",kT("getSearchParams")),KS(wT,"hash",kT("getHash","setHash"))),WS(wT,"toJSON",(function(){return sE(this).serialize()}),{enumerable:!0}),WS(wT,"toString",(function(){return sE(this).serialize()}),{enumerable:!0}),lE){var xT=lE.createObjectURL,ST=lE.revokeObjectURL;xT&&WS(bT,"createObjectURL",qS(xT,lE)),ST&&WS(bT,"revokeObjectURL",qS(ST,lE))}rE(bT,"URL"),NS({global:!0,constructor:!0,forced:!zS,sham:!VS},{URL:bT});var ET=Lr,TT=n,AT=Td,LT=ei,OT=ix,CT=se("URL");ET({target:"URL",stat:!0,forced:!(OT&&TT((function(){CT.canParse()})))},{canParse:function(e){var t=AT(arguments.length,1),r=LT(e),n=t<2||void 0===arguments[1]?void 0:LT(arguments[1]);try{return!!new CT(r,n)}catch(RM){return!1}}});var DT=r(re.URL),PT=re,RT=g;PT.JSON||(PT.JSON={stringify:JSON.stringify});var UT=function(e,t,r){return RT(PT.JSON.stringify,null,arguments)},IT=r(UT),MT=te,BT=w,jT=ht("match"),FT=function(e){var t;return MT(e)&&(void 0!==(t=e[jT])?!!t:"RegExp"==BT(e))},NT=TypeError,VT=ht("match"),zT=li.includes;Lr({target:"Array",proto:!0,forced:n((function(){return!Array(1).includes()}))},{includes:function(e){return zT(this,e,arguments.length>1?arguments[1]:void 0)}});var GT=Wn("Array").includes,qT=Lr,HT=function(e){if(FT(e))throw NT("The method doesn't accept regular expressions");return e},WT=J,KT=ei,YT=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[VT]=!1,"/./"[e](t)}catch(n){}}return!1},JT=c("".indexOf);qT({target:"String",proto:!0,forced:!YT("includes")},{includes:function(e){return!!~JT(KT(WT(this)),KT(HT(e)),arguments.length>1?arguments[1]:void 0)}});var QT=Wn("String").includes,XT=l,$T=GT,ZT=QT,eA=Array.prototype,tA=String.prototype,rA=r((function(e){var t=e.includes;return e===eA||XT(eA,e)&&t===eA.includes?$T:"string"==typeof e||e===tA||XT(tA,e)&&t===tA.includes?ZT:t})),nA={exports:{}},iA=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),aA=n,oA=te,sA=w,uA=iA,cA=Object.isExtensible,lA=aA((function(){cA(1)}))||uA?function(e){return!!oA(e)&&((!uA||"ArrayBuffer"!=sA(e))&&(!cA||cA(e)))}:cA,fA=!n((function(){return Object.isExtensible(Object.preventExtensions({}))})),hA=Lr,dA=c,pA=fi,vA=te,yA=$e,gA=Xt.f,mA=Ki,_A=Qi,bA=lA,wA=fA,kA=!1,xA=nt("meta"),SA=0,EA=function(e){gA(e,xA,{value:{objectID:"O"+SA++,weakData:{}}})},TA=nA.exports={enable:function(){TA.enable=function(){},kA=!0;var e=mA.f,t=dA([].splice),r={};r[xA]=1,e(r).length&&(mA.f=function(r){for(var n=e(r),i=0,a=n.length;i<a;i++)if(n[i]===xA){t(n,i,1);break}return n},hA({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:_A.f}))},fastKey:function(e,t){if(!vA(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!yA(e,xA)){if(!bA(e))return"F";if(!t)return"E";EA(e)}return e[xA].objectID},getWeakData:function(e,t){if(!yA(e,xA)){if(!bA(e))return!0;if(!t)return!1;EA(e)}return e[xA].weakData},onFreeze:function(e){return wA&&kA&&bA(e)&&!yA(e,xA)&&EA(e),e}};pA[xA]=!0;var AA=nA.exports,LA=Lr,OA=h,CA=AA,DA=n,PA=yr,RA=jh,UA=vd,IA=L,MA=te,BA=Ma,jA=Xt.f,FA=oo.forEach,NA=C,VA=$a.set,zA=$a.getterFor,GA=function(e,t,r){var n,i=-1!==e.indexOf("Map"),a=-1!==e.indexOf("Weak"),o=i?"set":"add",s=OA[e],u=s&&s.prototype,c={};if(NA&&IA(s)&&(a||u.forEach&&!DA((function(){(new s).entries().next()})))){var l=(n=t((function(t,r){VA(UA(t,l),{type:e,collection:new s}),null!=r&&RA(r,t[o],{that:t,AS_ENTRIES:i})}))).prototype,f=zA(e);FA(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in u)||a&&"clear"==e||PA(l,e,(function(r,n){var i=f(this).collection;if(!t&&a&&!MA(r))return"get"==e&&void 0;var o=i[e](0===r?0:r,n);return t?this:o}))})),a||jA(l,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(t,e,i,o),CA.enable();return BA(n,e,!1,!0),c[e]=n,LA({global:!0,forced:!0},c),a||r.setStrong(n,e,i),n},qA=Wi,HA=ha,WA=Sx,KA=Qt,YA=vd,JA=W,QA=jh,XA=wc,$A=kc,ZA=hd,eL=C,tL=AA.fastKey,rL=$a.set,nL=$a.getterFor,iL={getConstructor:function(e,t,r,n){var i=e((function(e,i){YA(e,a),rL(e,{type:t,index:qA(null),first:void 0,last:void 0,size:0}),eL||(e.size=0),JA(i)||QA(i,e[n],{that:e,AS_ENTRIES:r})})),a=i.prototype,o=nL(t),s=function(e,t,r){var n,i,a=o(e),s=u(e,t);return s?s.value=r:(a.last=s={index:i=tL(t,!0),key:t,value:r,previous:n=a.last,next:void 0,removed:!1},a.first||(a.first=s),n&&(n.next=s),eL?a.size++:e.size++,"F"!==i&&(a.index[i]=s)),e},u=function(e,t){var r,n=o(e),i=tL(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return WA(a,{clear:function(){for(var e=o(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,eL?e.size=0:this.size=0},delete:function(e){var t=this,r=o(t),n=u(t,e);if(n){var i=n.next,a=n.previous;delete r.index[n.index],n.removed=!0,a&&(a.next=i),i&&(i.previous=a),r.first==n&&(r.first=i),r.last==n&&(r.last=a),eL?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=o(this),n=KA(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!u(this,e)}}),WA(a,r?{get:function(e){var t=u(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),eL&&HA(a,"size",{configurable:!0,get:function(){return o(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=nL(t),a=nL(n);XA(e,t,(function(e,t){rL(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=a(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?$A("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,$A(void 0,!0))}),r?"entries":"values",!r,!0),ZA(t)}};GA("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),iL);var aL=re.Map,oL=Qt,sL=R,uL=De,cL=_d,lL=W,fL=jh,hL=[].push,dL=function(e){var t,r,n,i,a=arguments.length,o=a>1?arguments[1]:void 0;return cL(this),(t=void 0!==o)&&uL(o),lL(e)?new this:(r=[],t?(n=0,i=oL(o,a>2?arguments[2]:void 0),fL(e,(function(e){sL(hL,r,i(e,n++))}))):fL(e,hL,{that:r}),new this(r))};Lr({target:"Map",stat:!0,forced:!0},{from:dL});var pL=Ds,vL=function(){return new this(pL(arguments))};Lr({target:"Map",stat:!0,forced:!0},{of:vL});var yL=Ae,gL=function(e){if("object"==typeof e&&"size"in e&&"has"in e&&"get"in e&&"set"in e&&"delete"in e&&"entries"in e)return e;throw TypeError(yL(e)+" is not a map")},mL=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},_L=mL,bL=se("Map"),wL={Map:bL,set:_L("set",2),get:_L("get",1),has:_L("has",1),remove:_L("delete",1),proto:bL.prototype},kL=gL,xL=wL.remove;Lr({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=kL(this),r=!0,n=0,i=arguments.length;n<i;n++)e=xL(t,arguments[n]),r=r&&e;return!!r}});var SL=gL,EL=wL.get,TL=wL.has,AL=wL.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,i=SL(this);return TL(i,e)?(r=EL(i,e),"update"in t&&(r=t.update(r,e,i),AL(i,e,r)),r):(n=t.insert(e,i),AL(i,e,n),n)}});var LL=R,OL=function(e,t,r){for(var n,i,a=r||e.next;!(n=LL(a,e)).done;)if(void 0!==(i=t(n.value)))return i},CL=OL,DL=function(e,t,r){return r?CL(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},PL=Qt,RL=gL,UL=DL;Lr({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=RL(this),r=PL(e,arguments.length>1?arguments[1]:void 0);return!1!==UL(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var IL=Qt,ML=gL,BL=DL,jL=wL.Map,FL=wL.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=ML(this),r=IL(e,arguments.length>1?arguments[1]:void 0),n=new jL;return BL(t,(function(e,i){r(e,i,t)&&FL(n,i,e)})),n}});var NL=Qt,VL=gL,zL=DL;Lr({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=VL(this),r=NL(e,arguments.length>1?arguments[1]:void 0),n=zL(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}});var GL=Qt,qL=gL,HL=DL;Lr({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=qL(this),r=GL(e,arguments.length>1?arguments[1]:void 0),n=HL(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var WL=Lr,KL=R,YL=L,JL=De,QL=jh,XL=wL.Map,$L=c([].push);WL({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new(YL(this)?this:XL);JL(t);var n=JL(r.has),i=JL(r.get),a=JL(r.set);return QL(e,(function(e){var o=t(e);KL(n,r,o)?$L(KL(i,r,o),e):KL(a,r,o,[e])})),r}});var ZL=function(e,t){return e===t||e!=e&&t!=t},eO=gL,tO=DL;Lr({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===tO(eO(this),(function(t){if(ZL(t,e))return!0}),!0)}});var rO=R,nO=jh,iO=L,aO=De,oO=wL.Map;Lr({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(iO(this)?this:oO);aO(t);var n=aO(r.set);return nO(e,(function(e){rO(n,r,t(e),e)})),r}});var sO=gL,uO=DL;Lr({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=uO(sO(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var cO=Qt,lO=gL,fO=DL,hO=wL.Map,dO=wL.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=lO(this),r=cO(e,arguments.length>1?arguments[1]:void 0),n=new hO;return fO(t,(function(e,i){dO(n,r(e,i,t),e)})),n}});var pO=Qt,vO=gL,yO=DL,gO=wL.Map,mO=wL.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=vO(this),r=pO(e,arguments.length>1?arguments[1]:void 0),n=new gO;return yO(t,(function(e,i){mO(n,i,r(e,i,t))})),n}});var _O=gL,bO=jh,wO=wL.set;Lr({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=_O(this),r=arguments.length,n=0;n<r;)bO(arguments[n++],(function(e,r){wO(t,e,r)}),{AS_ENTRIES:!0});return t}});var kO=De,xO=gL,SO=DL,EO=TypeError;Lr({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=xO(this),r=arguments.length<2,n=r?void 0:arguments[1];if(kO(e),SO(t,(function(i,a){r?(r=!1,n=i):n=e(n,i,a,t)})),r)throw EO("Reduce of empty map with no initial value");return n}});var TO=Qt,AO=gL,LO=DL;Lr({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=AO(this),r=TO(e,arguments.length>1?arguments[1]:void 0);return!0===LO(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var OO=De,CO=gL,DO=TypeError,PO=wL.get,RO=wL.has,UO=wL.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=CO(this),n=arguments.length;OO(t);var i=RO(r,e);if(!i&&n<3)throw DO("Updating absent value");var a=i?PO(r,e):OO(n>2?arguments[2]:void 0)(e,r);return UO(r,e,t(a,e,r)),r}});var IO=R,MO=De,BO=L,jO=rr,FO=TypeError,NO=function(e,t){var r,n=jO(this),i=MO(n.get),a=MO(n.has),o=MO(n.set),s=arguments.length>2?arguments[2]:void 0;if(!BO(t)&&!BO(s))throw FO("At least one callback required");return IO(a,n,e)?(r=IO(i,n,e),BO(t)&&(r=t(r),IO(o,n,e,r))):BO(s)&&(r=s(),IO(o,n,e,r)),r};Lr({target:"Map",proto:!0,real:!0,forced:!0},{upsert:NO}),Lr({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:NO});var VO=r(aL);function zO(e,t){var r=Pl(e);if(Rl){var n=Rl(e);t&&(n=Fl(n).call(n,(function(t){return Yl(e,t).enumerable}))),r.push.apply(r,n)}return r}function GO(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?sf(r=zO(Object(i),!0)).call(r,(function(t){XO(e,t,i[t])})):mf?Ef(e,mf(i)):sf(n=zO(Object(i))).call(n,(function(t){Pf(e,t,Yl(i,t))}))}return e}function qO(){qO=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Pf||function(e,t,r){e[t]=r.value},i="function"==typeof Rf?Rf:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,r){return Pf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(A){u=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var a=t&&t.prototype instanceof h?t:h,o=If(a.prototype),s=new S(i||[]);return n(o,"_invoke",{value:b(e,r,s)}),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(A){return{type:"throw",arg:A}}}e.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,a,(function(){return this}));var y=Ff&&Ff(Ff(E([])));y&&y!==t&&r.call(y,a)&&(v=y);var g=p.prototype=h.prototype=If(v);function m(e){var t;sf(t=["next","throw","return"]).call(t,(function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(n,a,o,s){var u=l(e[n],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Ol(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,o,s)}),(function(e){i("throw",e,o,s)})):t.resolve(f).then((function(e){c.value=e,o(c)}),(function(e){return i("throw",e,o,s)}))}s(u.arg)}var a;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return{value:void 0,done:!0}}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=w(o,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],sf(e).call(e,k,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Nf?Nf(e,p):(e.__proto__=p,u(e,s,"GeneratorFunction")),e.prototype=If(g),e},e.awrap=function(e){return{__await:e}},m(_.prototype),u(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,a){void 0===a&&(a=qy);var o=new _(c(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},m(g),u(g,s,"Generator"),u(g,a,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return Zy(r).call(r),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=E,S.prototype={constructor:S,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,sf(t=this.tryEntries).call(t,x),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+mg(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return o.type="throw",o.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function HO(e){return(HO="function"==typeof Rf&&"symbol"==typeof U_?function(e){return typeof e}:function(e){return e&&"function"==typeof Rf&&e.constructor===Rf&&e!==Rf.prototype?"symbol":typeof e})(e)}function WO(e,t,r,n,i,a,o){try{var s=e[a](o),u=s.value}catch(RM){return void r(RM)}s.done?t(u):qy.resolve(u).then(n,i)}function KO(e){return function(){var t=this,r=arguments;return new qy((function(n,i){var a=e.apply(t,r);function o(e){WO(a,n,i,o,s,"next",e)}function s(e){WO(a,n,i,o,s,"throw",e)}o(void 0)}))}}function YO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Pf(e,lC(n.key),n)}}function QO(e,t,r){return t&&JO(e.prototype,t),r&&JO(e,r),Pf(e,"prototype",{writable:!1}),e}function XO(e,t,r){return(t=lC(t))in e?Pf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $O(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=If(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Pf(e,"prototype",{writable:!1}),t&&eC(e,t)}function ZO(e){var t;return(ZO=Nf?Ig(t=Ff).call(t):function(e){return e.__proto__||Ff(e)})(e)}function eC(e,t){var r;return(eC=Nf?Ig(r=Nf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function tC(){if("undefined"==typeof Reflect||!Qg)return!1;if(Qg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Qg(Boolean,[],(function(){}))),!0}catch(e){return!1}}function rC(e,t,r){var n;tC()?rC=Ig(n=Qg).call(n):rC=function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Ig(Function).apply(e,n));return r&&eC(i,r.prototype),i};return rC.apply(null,arguments)}function nC(e){var t="function"==typeof VO?new VO:void 0;return nC=function(e){if(null===e||(r=e,-1===km(n=Function.toString.call(r)).call(n,"[native code]")))return e;var r,n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return rC(e,arguments,ZO(this).constructor)}return i.prototype=If(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),eC(i,e)},nC(e)}function iC(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Pl(e);for(n=0;n<a.length;n++)r=a[n],km(t).call(t,r)>=0||(i[r]=e[r]);return i}(e,t);if(Rl){var a=Rl(e);for(n=0;n<a.length;n++)r=a[n],km(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function aC(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oC(e){var t=tC();return function(){var r,n=ZO(e);if(t){var i=ZO(this).constructor;r=Qg(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Ol(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return aC(e)}(this,r)}}function sC(){var e;"undefined"!=typeof Reflect&&z_?sC=Ig(e=z_).call(e):sC=function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ZO(e)););return e}(e,t);if(n){var i=Yl(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}};return sC.apply(this,arguments)}function uC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cC(e,t){var r=void 0!==Rf&&G_(e)||e["@@iterator"];if(!r){if(R_(e)||(r=function(e,t){var r;if(e){if("string"==typeof e)return uC(e,t);var n=mg(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?ab(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uC(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function lC(e){var t=function(e,t){if("object"!==Ol(e)||null===e)return e;var r=e[Xg];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Ol(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ol(t)?t:String(t)}function fC(){var e,t,r=new qy((function(r,n){e=r,t=n}));return r.used=!1,r.resolve=function(){return r.used=!0,e.apply(void 0,arguments)},r.reject=function(){return r.used=!0,t.apply(void 0,arguments)},r}function hC(){try{return T_(performance.now(),10)}catch(e){return(new Date).getTime()}}var dC=De,pC=Je,vC=H,yC=Fr,gC=TypeError,mC=function(e){return function(t,r,n,i){dC(r);var a=pC(t),o=vC(a),s=yC(a),u=e?s-1:0,c=e?-1:1;if(n<2)for(;;){if(u in o){i=o[u],u+=c;break}if(u+=c,e?u<0:s<=u)throw gC("Reduce of empty array with no initial value")}for(;e?u>=0:s>u;u+=c)u in o&&(i=r(i,o[u],u,a));return i}},_C={left:mC(!1),right:mC(!0)}.left;Lr({target:"Array",proto:!0,forced:!sd&&ve>79&&ve<83||!Ql("reduce")},{reduce:function(e){var t=arguments.length;return _C(this,e,t,t>1?arguments[1]:void 0)}});var bC,wC=Wn("Array").reduce,kC=l,xC=wC,SC=Array.prototype,EC=r((function(e){var t=e.reduce;return e===SC||kC(SC,e)&&t===SC.reduce?xC:t})),TC=function(){function e(){YO(this,e)}return QO(e,null,[{key:"start",value:function(e){return e&&e.length?1===e.length&&e.end(0)-e.start(0)<1e-6||1===e.length&&e.start(0)<0?0:e.start(0):0}},{key:"end",value:function(e){return e&&e.length?1===e.length&&e.end(0)-e.start(0)<1e-6?0:e.end(e.length-1):0}},{key:"get",value:function(e){if(e)try{return e.buffered}catch(RM){}}},{key:"buffers",value:function(e,t){if(!e||!e.length)return[];for(var r=[],n=0,i=e.length;n<i;n++){var a=r.length;if(a&&t){var o=r[a-1],s=o[1];if(e.start(n)-s<=t){var u=e.end(n);u>s&&(o[1]=u)}else r.push([e.start(n),e.end(n)])}else r.push([e.start(n),e.end(n)])}return r}},{key:"totalLength",value:function(e){return e&&e.length?EC(e).call(e,(function(e,t){return e+(t[1]-t[0])}),0):0}},{key:"info",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!t||!t.length)return{start:0,end:0,buffers:[]};for(var i=0,a=0,o=0,s=0,u=0,c=0,l=0,f=e.buffers(t,n),h=0,d=f.length;h<d;h++){var p=f[h];if(r+n>=p[0]&&r<=p[1])i=p[0],a=p[1],o=h;else{if(r+n<p[0]){s=p[0],u=p[1];break}r+n>p[1]&&(c=p[0],l=p[1])}}return{start:i,end:a,index:o,buffers:f,nextStart:s,nextEnd:u,prevStart:c,prevEnd:l,currentTime:r,behind:r-i,remaining:a?a-r:0,length:e.totalLength&&e.totalLength(f)}}}]),e}(),AC="network",LC="network_timeout",OC="network_forbidden",CC="network_notfound",DC="network_range_not_satisfiable",PC="demux",RC="remux",UC="media",IC="drm",MC="other",BC="runtime",jC={FLV:"FLV",HLS:"HLS",MP4:"MP4",FMP4:"FMP4",MSE_ADD_SB:"MSE_ADD_SB",MSE_APPEND_BUFFER:"MSE_APPEND_BUFFER",MSE_OTHER:"MSE_OTHER",MSE_FULL:"MSE_FULL",OPTION:"OPTION",DASH:"DASH",LICENSE:"LICENSE",CUSTOM_LICENSE:"CUSTOM_LICENSE",MSE_HIJACK:"MSE_HIJACK",EME_HIJACK:"EME_HIJACK",SIDX:"SIDX",NO_CANPLAY_ERROR:"NO_CANPLAY_ERROR",BUFFERBREAK_ERROR:"BUFFERBREAK_ERROR",WAITING_TIMEOUT_ERROR:"WAITING_TIMEOUT_ERROR",MEDIA_ERR_ABORTED:"MEDIA_ERR_ABORTED",MEDIA_ERR_NETWORK:"MEDIA_ERR_NETWORK",MEDIA_ERR_DECODE:"MEDIA_ERR_DECODE",MEDIA_ERR_SRC_NOT_SUPPORTED:"MEDIA_ERR_SRC_NOT_SUPPORTED",MEDIA_ERR_CODEC_NOT_SUPPORTED:"MEDIA_ERR_CODEC_NOT_SUPPORTED",MEDIA_ERR_URL_EMPTY:"MEDIA_ERR_URL_EMPTY"},FC=(XO(bC={},"manifest",{HLS:1100,DASH:1200}),XO(bC,AC,2100),XO(bC,LC,2101),XO(bC,OC,2103),XO(bC,CC,2104),XO(bC,DC,2116),XO(bC,PC,{FLV:3100,HLS:3200,MP4:3300,FMP4:3400,SIDX:3410}),XO(bC,RC,{FMP4:4100,MP4:4200}),XO(bC,UC,{MEDIA_ERR_ABORTED:5101,MEDIA_ERR_NETWORK:5102,MEDIA_ERR_DECODE:5103,MEDIA_ERR_SRC_NOT_SUPPORTED:5104,MEDIA_ERR_CODEC_NOT_SUPPORTED:5105,MEDIA_ERR_URL_EMPTY:5106,MSE_ADD_SB:5200,MSE_APPEND_BUFFER:5201,MSE_OTHER:5202,MSE_FULL:5203,MSE_HIJACK:5204,EME_HIJACK:5301}),XO(bC,IC,{LICENSE:7100,CUSTOM_LICENSE:7200}),XO(bC,MC,8e3),XO(bC,BC,{NO_CANPLAY_ERROR:9001,BUFFERBREAK_ERROR:9002,WAITING_TIMEOUT_ERROR:9003}),bC),NC=function(e){$O(r,e);var t=oC(r);function r(e,n,i,a,o){var s;return YO(this,r),(s=t.call(this,o||(null==i?void 0:i.message))).errorType=e===LC?AC:e,s.originError=i,s.ext=a,s.errorCode=FC[e][n]||FC[e],s.errorMessage=s.message,s.errorCode||(s.errorType=MC,s.errorCode=FC[s.errorType]),s}return QO(r,null,[{key:"create",value:function(e,t,n,i,a){return e instanceof r?e:(e instanceof Error&&(n=e,e=""),e||(e=MC),new r(e,t,n,i,a))}},{key:"network",value:function(e){var t;return new r(null!=e&&e.isTimeout?LC:AC,null,e instanceof Error?e:null,{url:null==e?void 0:e.url,response:null==e?void 0:e.response,httpCode:null==e||null===(t=e.response)||void 0===t?void 0:t.status})}}]),r}(nC(Error)),VC="undefined"!=typeof window,zC=1,GC=2,qC=3,HC=4,WC=["Boolean","Number","String","Undefined","Null","Date","Object"],KC=function(){function e(t,r){YO(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]"),this.logCacheLevel=(null==r?void 0:r.logCacheLevel)||3,this.logMaxSize=(null==r?void 0:r.logMaxSize)||204800,this.logSize=0,this.logTextArray=[]}return QO(e,[{key:"debug",value:function(){for(var t,r,n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];this.logCache.apply(this,Xn(t=[zC]).call(t,a)),e.disabled||(n=console).debug.apply(n,Xn(r=[this._prefix,YC()]).call(r,a))}},{key:"log",value:function(){for(var t,r,n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];this.logCache.apply(this,Xn(t=[GC]).call(t,a)),e.disabled||(n=console).log.apply(n,Xn(r=[this._prefix,YC()]).call(r,a))}},{key:"warn",value:function(){for(var t,r,n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];this.logCache.apply(this,Xn(t=[qC]).call(t,a)),e.disabled||(n=console).warn.apply(n,Xn(r=[this._prefix,YC()]).call(r,a))}},{key:"error",value:function(){for(var t,r,n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];this.logCache.apply(this,Xn(t=[HC]).call(t,a)),e.disabled||(n=console).error.apply(n,Xn(r=[this._prefix,YC()]).call(r,a))}},{key:"logCache",value:function(e){if(!(e<this.logCacheLevel)){var t="";try{for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var a=P_(n).call(n,(function(e){return QC(e)}));t=this._prefix+YC()+IT(a)}catch(s){return}if(e>=this.logCacheLevel&&(this.logSize+=t.length,this.logTextArray.push(t)),this.logSize>this.logMaxSize){var o=this.logTextArray.shift();this.logSize-=o.length}}}},{key:"getLogCache",value:function(){var e=this.logTextArray.join("\n");return this.reset(),e}},{key:"reset",value:function(){this.logTextArray=[],this.logSize=0}},{key:"table",value:function(){var t;e.disabled||(console.group(this._prefix),(t=console).table.apply(t,arguments),console.groupEnd())}},{key:"setLogLevel",value:function(e){this.logCacheLevel=e}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();function YC(){return(new Date).toLocaleString()}function JC(e){var t;if("object"!==HO(e))return e;var r=mg(t=Object.prototype.toString.call(e)).call(t,8,-1);switch(r){case"Array":case"Uint8Array":case"ArrayBuffer":return r+"["+e.length+"]";case"Object":return"{}";default:return r}}function QC(e,t,r){var n;r||(r=1),t||(t=2);var i={};if(!e||"object"!==HO(e))return e;var a=mg(n=Object.prototype.toString.call(e)).call(n,8,-1);if(!rA(WC).call(WC,a))return a;if(!(r>t)){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r===t?i[o]=JC(e[o]):"object"===HO(e[o])?i[o]=QC(e[o],t,r+1):i[o]=e[o]);return i}}XO(KC,"disabled",!0);var XC=function(){try{return VC?window.MediaSource:null}catch(e){}}(),$C="appendBuffer",ZC="removeBuffer",eD="updateDuration",tD=function(){function e(t,r){var n=this;YO(this,e),XO(this,"media",null),XO(this,"mediaSource",null),XO(this,"_openPromise",fC()),XO(this,"_queue",If(null)),XO(this,"_sourceBuffer",If(null)),XO(this,"_mseFullFlag",{}),XO(this,"_st",0),XO(this,"_opst",0),XO(this,"_logger",null),XO(this,"_config",null),XO(this,"_url",null),XO(this,"_onSBUpdateEnd",(function(e){var t=n._queue[e];if(t){var r=t[0];if((null==r?void 0:r.opName)!==eD&&t.shift(),r){var i=hC()-n._opst;n._logger.debug("UpdateEnd",r.opName,i,r.context),r.promise.resolve({name:r.opName,context:r.context,costtime:i}),n._startQueue(e)}}})),XO(this,"_onSBUpdateError",(function(e,t){var r=n._queue[e];if(r){var i=r[0];i&&(n._logger.error("UpdateError",e,i.opName,i.context),i.promise.reject(new NC(UC,jC.MSE_APPEND_BUFFER,t)))}})),this._config=Cb(e.getDefaultConfig(),r),t&&this.bindMedia(t),this._logger=new KC("MSE"),this._config.openLog&&KC.enable()}var t,r,n;return QO(e,[{key:"isOpened",get:function(){var e;return"open"===(null===(e=this.mediaSource)||void 0===e?void 0:e.readyState)}},{key:"url",get:function(){return this._url}},{key:"duration",get:function(){var e;return(null===(e=this.mediaSource)||void 0===e?void 0:e.duration)||-1}},{key:"isEnded",get:function(){return!!this.mediaSource&&"ended"===this.mediaSource.readyState}},{key:"isFull",value:function(t){return t?this._mseFullFlag[t]:this._mseFullFlag[e.VIDEO]}},{key:"updateDuration",value:function(e){var t=this,r=this.mediaSource&&this.mediaSource.duration>e;if(this.mediaSource&&this.mediaSource.duration>e){var n,i=0;if(sf(n=Pl(this._sourceBuffer)).call(n,(function(e){try{i=Math.max(t.bufferEnd(e)||0,i)}catch(RM){}})),e<i)return qy.resolve()}return this._enqueueBlockingOp((function(){t.isEnded?t._logger.debug("[debug mse] setDuration ended"):t.mediaSource&&(t.mediaSource.duration=e,t._logger.debug("[debug mse] setDuration"))}),eD,{isReduceDuration:r})}},{key:"open",value:function(){var e=this;if(this._openPromise.used&&!this.isOpened&&this.mediaSource){var t=this.mediaSource;t.addEventListener("sourceopen",(function r(){var n=hC()-e._st;e._logger.debug("MSE OPEN",n),t.removeEventListener("sourceopen",r),e._openPromise.resolve({costtime:n})})),this._openPromise=fC()}return this._openPromise}},{key:"bindMedia",value:(n=KO(qO().mark((function e(t){var r,n,i=this;return qO().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.mediaSource&&!this.media){e.next=3;break}return e.next=3,this.unbindMedia();case 3:if(t&&XC){e.next=5;break}throw new Error("Param media or MediaSource does not exist");case 5:return this.media=t,r=this.mediaSource=new XC,this._st=hC(),n=function e(){var n=hC()-i._st;i._logger.debug("MSE OPEN"),r.removeEventListener("sourceopen",e),DT.revokeObjectURL(t.src),i._openPromise.resolve({costtime:n})},r.addEventListener("sourceopen",n),this._url=DT.createObjectURL(r),t.src=this._url,e.abrupt("return",this._openPromise);case 13:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"unbindMedia",value:(r=KO(qO().mark((function e(){var t,r,n,i=this;return qO().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._openPromise.used||this._openPromise.resolve(),t=this.mediaSource){var a,o;if(sf(a=Pl(this._queue)).call(a,(function(e){var t=i._queue[e];t&&sf(t).call(t,(function(e){var t,r;return null===(t=e.promise)||void 0===t||null===(r=t.resolve)||void 0===r?void 0:r.call(t)}))})),r=!!this.media&&this.media.readyState>=1,n="open"===t.readyState,r&&n)try{t.endOfStream()}catch(RM){}sf(o=Pl(this._sourceBuffer)).call(o,(function(e){try{t.removeSourceBuffer(i._sourceBuffer[e])}catch(RM){}}))}if(this.media){this.media.removeAttribute("src");try{this.media.load()}catch(RM){}this.media=null}this.mediaSource=null,this._openPromise=fC(),this._queue=If(null),this._sourceBuffer=If(null);case 8:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"createSource",value:function(e,t){var r,n;if(!this._sourceBuffer[e]&&this.mediaSource){var i;try{i=this._sourceBuffer[e]=this.mediaSource.addSourceBuffer(t)}catch(RM){throw new NC(UC,jC.MSE_ADD_SB,RM)}i.mimeType=t,i.addEventListener("updateend",Ig(r=this._onSBUpdateEnd).call(r,this,e)),i.addEventListener("error",Ig(n=this._onSBUpdateError).call(n,this,e))}}},{key:"changeType",value:function(e,t){var r=this,n=this._sourceBuffer[e];return this.mediaSource&&n&&n.mimeType!==t?"function"!=typeof n.changeType?qy.reject():this._enqueueOp(e,(function(){n.changeType(t),n.mimeType=t,r._onSBUpdateEnd(e)}),"changeType",{mimeType:t}):qy.resolve()}},{key:"createOrChangeSource",value:function(e,t){return this.createSource(e,t),this.changeType(e,t)}},{key:"append",value:function(e,t,r){var n=this;return t&&t.byteLength&&this._sourceBuffer[e]?this._enqueueOp(e,(function(){var i;n.mediaSource&&!n.media.error&&(n._logger.debug("MSE APPEND START",r),n._opst=hC(),null===(i=n._sourceBuffer[e])||void 0===i||i.appendBuffer(t))}),$C,r):qy.resolve()}},{key:"remove",value:function(e,t,r,n){var i=this,a=!1;return this._mseFullFlag[e]&&(a=!0),this._enqueueOp(e,(function(){if(i.mediaSource&&!i.media.error){var a=i._sourceBuffer[e];t>=r||!a?i._onSBUpdateEnd(e):(i._opst=hC(),i._logger.debug("MSE REMOVE START",e,t,r,n),a.remove(t,r))}}),ZC,n,a)}},{key:"clearBuffer",value:function(e,t){var r,n,i=this;return sf(r=Pl(this._sourceBuffer)).call(r,(function(r){n=i.remove(r,e,t)})),n||qy.resolve()}},{key:"clearAllBuffer",value:function(){var e,t,r=this;return sf(e=Pl(this._sourceBuffer)).call(e,(function(e){var n=r._sourceBuffer[e];t=r.remove(e,0,TC.end(TC.get(n)))})),t}},{key:"clearOpQueues",value:function(e,t){var r;this._logger.debug("MSE clearOpQueue START");var n=this._queue[e];if(t&&n)this._queue[e]=[];else if(n&&n[e]&&!(n.length<5)){var i=[];sf(n).call(n,(function(e){e.context&&e.context.isinit&&i.push(e)})),this._queue[e]=mg(n).call(n,0,2),i.length>0&&(r=this._queue[e]).push.apply(r,i)}}},{key:"endOfStream",value:function(e){var t=this;return this.mediaSource&&"open"===this.mediaSource.readyState?this._enqueueBlockingOp((function(){var r=t.mediaSource;r&&"open"===r.readyState&&(t._logger.debug("MSE endOfStream START"),e?r.endOfStream(e):r.endOfStream())}),"endOfStream"):qy.resolve()}},{key:"setLiveSeekableRange",value:function(e,t){var r=this.mediaSource;e<0||t<e||null==r||!r.setLiveSeekableRange||"open"!==r.readyState||r.setLiveSeekableRange(e,t)}},{key:"getSourceBuffer",value:function(e){return this._sourceBuffer[e]}},{key:"buffered",value:function(e){return TC.get(this._sourceBuffer[e])}},{key:"bufferStart",value:function(e){return TC.start(this.buffered(e))}},{key:"bufferEnd",value:function(e){return TC.end(this.buffered(e))}},{key:"_enqueueOp",value:function(e,t,r,n,i){var a=this;if(!this.mediaSource)return qy.resolve();var o=this._queue[e]=this._queue[e]||[],s={exec:t,promise:fC(),opName:r,context:n};return i?(n_(o).call(o,0,0,s),this._mseFullFlag[e]=!1,this._startQueue(e)):o.push(s),this.isOpened||this.isEnded?1===o.length&&this._startQueue(e):this._openPromise.then((function(){1===o.length&&a._startQueue(e)})),s.promise}},{key:"_enqueueBlockingOp",value:(t=KO(qO().mark((function e(t,r,n){var i,a,o=this;return qO().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.mediaSource){e.next=2;break}return e.abrupt("return",qy.resolve());case 2:if((i=Pl(this._sourceBuffer)).length){e.next=5;break}return e.abrupt("return",t());case 5:return a=[],sf(i).call(i,(function(e){var t=o._queue[e],i=fC();a.push(i),t.push({exec:function(){i.resolve()},promise:i,opName:r,context:n}),1===t.length&&o._startQueue(e)})),e.abrupt("return",qy.all(a).then((function(){try{return t()}finally{sf(i).call(i,(function(e){var t=o._queue[e],r=o._sourceBuffer[e];null==t||t.shift(),r&&r.updating||o._startQueue(e)}))}})));case 8:case"end":return e.stop()}}),e,this)}))),function(e,r,n){return t.apply(this,arguments)})},{key:"_startQueue",value:function(e){var t=this._queue[e];if(t){var r=t[0];if(r&&!this._mseFullFlag[e])try{r.exec()}catch(RM){var n;RM&&RM.message&&km(n=RM.message).call(n,"SourceBuffer is full")>=0?(this._mseFullFlag[e]=!0,this._logger.error("[MSE error], context,",r.context," ,name,",r.opName,",err,SourceBuffer is full"),r.promise.reject(new NC(UC,jC.MSE_FULL,RM))):(this._logger.error(RM),r.promise.reject(new NC(UC,jC.MSE_OTHER,RM)),t.shift(),this._startQueue(e))}}}},{key:"setTimeoffset",value:function(e,t,r){var n=this;return this._enqueueOp(e,(function(){t<0&&(t+=.001),n._sourceBuffer[e].timestampOffset=t,n._onSBUpdateEnd(e)}),"setTimeoffset",r)}},{key:"abort",value:function(e,t){var r=this;return this.isOpened?this._enqueueOp(e,(function(){r._sourceBuffer[e].abort(),r._onSBUpdateEnd(e)}),"abort",t):qy.resolve()}}],[{key:"getDefaultConfig",value:function(){return{openLog:!1}}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'video/mp4; codecs="avc1.42E01E,mp4a.40.2"';if(!XC)return!1;try{return XC.isTypeSupported(e)}catch(RM){return this._logger.error(e,RM),!1}}}]),e}();XO(tD,"VIDEO","video"),XO(tD,"AUDIO","audio");var rD="fetch",nD="xhr",iD="arraybuffer",aD="text",oD="json",sD=function(e){$O(r,e);var t=oC(r);function r(e,n,i,a){var o;return YO(this,r),XO(aC(o=t.call(this,a)),"retryCount",0),XO(aC(o),"isTimeout",!1),XO(aC(o),"loaderType",rD),XO(aC(o),"startTime",0),XO(aC(o),"endTime",0),XO(aC(o),"options",{}),o.url=e,o.request=n,o.response=i,o}return QO(r)}(nC(Error)),uD=Object.prototype.toString;function cD(e){if("[object Object]"!==uD.call(e))return!1;var t=Ff(e);return null===t||t===Object.prototype}function lD(e){if(e&&null!==e[0]&&void 0!==e[0]&&(0!==e[0]||null!==e[1]&&void 0!==e[1])){var t="bytes="+e[0]+"-";return e[1]&&(t+=e[1]),t}}function fD(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function hD(e,t){var r,n;if(e){if(!t)return e;var i,a=Fl(r=P_(n=Pl(t)).call(n,(function(e){if(null!=(i=t[e]))return R_(i)?e+="[]":i=[i],P_(i).call(i,(function(t){var r,n;return n=t,"[object Date]"===uD.call(n)?t=t.toISOString():function(e){return null!==e&&"object"===HO(e)}(t)&&(t=IT(t)),Xn(r="".concat(fD(e),"=")).call(r,fD(t))})).join("&")}))).call(r,Boolean).join("&");if(a){var o=km(e).call(e,"#");-1!==o&&(e=mg(e).call(e,0,o)),e+=(-1===km(e).call(e,"?")?"?":"&")+a}return e}}function dD(e,t,r,n,i,a,o,s,u,c,l){return i=null!=i?Vw(i):null,n=T_(n||"0",10),i_(n)&&(n=0),{data:e,done:t,options:{range:u,vid:c,index:s,contentLength:n,age:i,startTime:a,firstByteTime:o,endTime:jk(),priOptions:l},response:r}}function pD(e,t){return Math.round(8*e*1e3/t/1024)}var vD="error",yD="core.ttfb",gD="core.loadstart",mD="core.loadresponseheaders",_D="core.loadcomplete",bD="core.loadretry",wD="core.sourcebuffercreated",kD="core.analyzedurationexceeded",xD="core.removebuffer",SD="core.buffereos",ED="core.keyframe",TD="core.metadataparsed",AD="core.sei",LD="core.seiintime",OD="core.flvscriptdata",CD="core.lowdecode",DD="core.switchurlsuccess",PD="core.switchurlfailed",RD="core.demuxedtrack",UD="core.streamexception",ID="LARGE_AV_FIRST_FRAME_GAP_DETECT",MD="LARGE_VIDEO_DTS_GAP_DETECT",BD="LARGE_AUDIO_DTS_GAP_DETECT",jD="AUDIO_GAP_DETECT",FD="AUDIO_OVERLAP_DETECT",ND="MAX_DTS_DELTA_WITH_NEXT_SEGMENT_DETECT",VD="real_time_speed",zD=2097152,GD=function(e){$O(n,e);var t,r=oC(n);function n(){var e;return YO(this,n),XO(aC(e=r.call(this)),"_abortController",null),XO(aC(e),"_timeoutTimer",null),XO(aC(e),"_reader",null),XO(aC(e),"_response",null),XO(aC(e),"_aborted",!1),XO(aC(e),"_index",-1),XO(aC(e),"_range",null),XO(aC(e),"_receivedLength",0),XO(aC(e),"_running",!1),XO(aC(e),"_logger",null),XO(aC(e),"_vid",""),XO(aC(e),"_onProcessMinLen",0),XO(aC(e),"_onCancel",null),XO(aC(e),"_priOptions",null),e}return QO(n,[{key:"load",value:function(e){var t,r=this,n=e.url,i=e.vid,a=e.timeout,o=e.responseType,s=e.onProgress,u=e.index,c=e.onTimeout,l=e.onCancel,f=e.range,h=e.transformResponse,d=e.request,p=e.params,v=e.logger,y=e.method,g=e.headers,m=e.body,_=e.mode,b=e.credentials,w=e.cache,k=e.redirect,x=e.referrer,S=e.referrerPolicy,E=e.onProcessMinLen,T=e.priOptions;this._logger=v,this._aborted=!1,this._onProcessMinLen=E,this._onCancel=l,this._abortController="undefined"!=typeof AbortController&&new AbortController,this._running=!0,this._index=u,this._range=f||[0,0],this._vid=i||n,this._priOptions=T||{};var A={method:y,headers:g,body:m,mode:_,credentials:b,cache:w,redirect:k,referrer:x,referrerPolicy:S,signal:null===(t=this._abortController)||void 0===t?void 0:t.signal},L=!1;clearTimeout(this._timeoutTimer),n=hD(n,p);var O=lD(f);O&&(g=d?d.headers:A.headers=A.headers||(Headers?new Headers:{}),Headers&&g instanceof Headers?g.append("Range",O):g.Range=O),a&&(this._timeoutTimer=Sw((function(){if(L=!0,r.cancel(),c){var e=new sD(n,A,null,"timeout");e.isTimeout=!0,c(e,{index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions})}}),a));var C=jk();return this._logger.debug("[fetch load start], index,",u,",range,",f),new qy((function(e,t){fetch(d||n,d?void 0:A).then(function(){var i=KO(qO().mark((function i(a){var c,l,d,p;return qO().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(clearTimeout(r._timeoutTimer),r._response=a,!r._aborted&&r._running){i.next=4;break}return i.abrupt("return");case 4:if(h&&(a=h(a,n)||a),a.ok){i.next=7;break}throw new sD(n,A,a,"bad network response");case 7:if(c=jk(),o!==aD){i.next=15;break}return i.next=11,a.text();case 11:l=i.sent,r._running=!1,i.next=37;break;case 15:if(o!==oD){i.next=22;break}return i.next=18,a.json();case 18:l=i.sent,r._running=!1,i.next=37;break;case 22:if(!s){i.next=29;break}return r.resolve=e,r.reject=t,r._loadChunk(a,s,C,c),i.abrupt("return");case 29:return i.next=31,a.arrayBuffer();case 31:l=i.sent,l=new Uint8Array(l),r._running=!1,d=jk()-C,p=pD(l.byteLength,d),r.emit(VD,{speed:p,len:l.byteLength,time:d,vid:r._vid,index:r._index,range:r._range,priOptions:r._priOptions});case 37:r._logger.debug("[fetch load end], index,",u,",range,",f),e(dD(l,!0,a,a.headers.get("Content-Length"),a.headers.get("age"),C,c,u,f,r._vid,r._priOptions));case 39:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}()).catch((function(e){var i;clearTimeout(r._timeoutTimer),r._running=!1,r._aborted&&!L||((e=e instanceof sD?e:new sD(n,A,null,null===(i=e)||void 0===i?void 0:i.message)).startTime=C,e.endTime=jk(),e.isTimeout=L,e.options={index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions},t(e))}))}))}},{key:"cancel",value:(t=KO(qO().mark((function e(){return qO().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._aborted){e.next=2;break}return e.abrupt("return");case 2:if(this._aborted=!0,this._running=!1,!this._response){e.next=14;break}if(e.prev=5,!this._reader){e.next=9;break}return e.next=9,this._reader.cancel();case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(5);case 13:this._response=this._reader=null;case 14:if(this._abortController){try{this._abortController.abort()}catch(RM){}this._abortController=null}this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions});case 16:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(){return t.apply(this,arguments)})},{key:"_loadChunk",value:function(e,t,r,n){var i=this;if(!e.body||!e.body.getReader){this._running=!1;var a=new sD(e.url,"",e,"onProgress of bad response.body.getReader");return a.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},void this.reject(a)}this._onProcessMinLen>0&&(this._cache=new Uint8Array(zD),this._writeIdx=0);var o,s,u,c=this._reader=e.body.getReader(),l=function(){var a=KO(qO().mark((function a(){var f,h,d,p,v,y,g,m;return qO().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s=jk(),a.prev=1,a.next=4,c.read();case 4:o=a.sent,u=jk(),a.next=13;break;case 8:return a.prev=8,a.t0=a.catch(1),u=jk(),i._aborted||(i._running=!1,a.t0.options={index:i._index,range:i._range,vid:i._vid,priOptions:i._priOptions},i.reject(a.t0)),a.abrupt("return");case 13:if(h=(null===(f=i._range)||void 0===f?void 0:f.length)>0?i._range[0]:0,d=h+i._receivedLength,!i._aborted){a.next=19;break}return i._running=!1,t(void 0,!1,{range:[d,d],vid:i._vid,index:i._index,startTime:s,endTime:u,st:r,firstByteTime:n,priOptions:i._priOptions},e),a.abrupt("return");case 19:var _;if(p=o.value?o.value.byteLength:0,i._receivedLength+=p,i._logger.debug("【fetchLoader,onProgress call】,task,",i._range,", start,",d,", end,",h+i._receivedLength,", done,",o.done),i._onProcessMinLen>0){if(i._writeIdx+p>=i._onProcessMinLen||o.done)(v=new Uint8Array(i._writeIdx+p)).set(mg(_=i._cache).call(_,0,i._writeIdx),0),p>0&&v.set(o.value,i._writeIdx),i._writeIdx=0,i._logger.debug("【fetchLoader,onProgress enough】,done,",o.done,",len,",v.byteLength,", writeIdx,",i._writeIdx);else if(p>0&&i._writeIdx+p<zD)i._cache.set(o.value,i._writeIdx),i._writeIdx+=p,i._logger.debug("【fetchLoader,onProgress cache】,len,",p,", writeIdx,",i._writeIdx);else if(p>0){var b;y=new Uint8Array(i._writeIdx+p+2048),i._logger.debug("【fetchLoader,onProgress extra start】,size,",i._writeIdx+p+2048,", datalen,",p,", writeIdx,",i._writeIdx),y.set(mg(b=i._cache).call(b,0,i._writeIdx),0),p>0&&y.set(o.value,i._writeIdx),i._writeIdx+=p,delete i._cache,i._cache=y,i._logger.debug("【fetchLoader,onProgress extra end】,len,",p,", writeIdx,",i._writeIdx)}}else v=o.value;(v&&v.byteLength>0||o.done)&&t(v,o.done,{range:[i._range[0]+i._receivedLength-(v?v.byteLength:0),i._range[0]+i._receivedLength],vid:i._vid,index:i._index,startTime:s,endTime:u,st:r,firstByteTime:n,priOptions:i._priOptions},e),o.done?(g=jk()-r,m=pD(i._receivedLength,g),i.emit(VD,{speed:m,len:i._receivedLength,time:g,vid:i._vid,index:i._index,range:i._range,priOptions:i._priOptions}),i._running=!1,i._logger.debug("[fetchLoader onProgress end],task,",i._range,",done,",o.done),i.resolve(dD(o,!0,e,e.headers.get("Content-Length"),e.headers.get("age"),r,n,i._index,i._range,i._vid,i._priOptions))):l();case 25:case"end":return a.stop()}}),a,null,[[1,8]])})));return function(){return a.apply(this,arguments)}}();l()}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}}],[{key:"isSupported",value:function(){return!("undefined"==typeof fetch)}}]),n}(Pb);var qD=function(e){$O(r,e);var t=oC(r);function r(){var e;return YO(this,r),XO(aC(e=t.call(this)),"_xhr",null),XO(aC(e),"_aborted",!1),XO(aC(e),"_timeoutTimer",null),XO(aC(e),"_range",null),XO(aC(e),"_receivedLength",0),XO(aC(e),"_url",null),XO(aC(e),"_onProgress",null),XO(aC(e),"_index",-1),XO(aC(e),"_headers",null),XO(aC(e),"_currentChunkSizeKB",384),XO(aC(e),"_timeout",null),XO(aC(e),"_xhr",null),XO(aC(e),"_withCredentials",null),XO(aC(e),"_startTime",-1),XO(aC(e),"_loadCompleteResolve",null),XO(aC(e),"_loadCompleteReject",null),XO(aC(e),"_runing",!1),XO(aC(e),"_logger",!1),XO(aC(e),"_vid",""),XO(aC(e),"_responseType",void 0),XO(aC(e),"_credentials",void 0),XO(aC(e),"_method",void 0),XO(aC(e),"_transformResponse",void 0),XO(aC(e),"_firstRtt",void 0),XO(aC(e),"_onCancel",null),XO(aC(e),"_priOptions",null),e}return QO(r,[{key:"load",value:function(e){var t=this;clearTimeout(this._timeoutTimer),this._logger=e.logger,this._range=e.range,this._onProgress=e.onProgress,this._index=e.index,this._headers=e.headers,this._withCredentials="include"===e.credentials||"same-origin"===e.credentials,this._body=e.body||null,e.method&&(this._method=e.method),this._timeout=e.timeout||null,this._runing=!0,this._vid=e.vid||e.url,this._responseType=e.responseType,this._firstRtt=-1,this._onTimeout=e.onTimeout,this._onCancel=e.onCancel,this._request=e.request,this._priOptions=e.priOptions||{},this._logger.debug("【xhrLoader task】, range",this._range),this._url=hD(e.url,e.params);var r=jk();return new qy((function(e,r){t._loadCompleteResolve=e,t._loadCompleteReject=r,t._startLoad()})).catch((function(e){if(clearTimeout(t._timeoutTimer),t._runing=!1,!t._aborted)throw(e=e instanceof sD?e:new sD(t._url,t._request)).startTime=r,e.endTime=jk(),e.options={index:t._index,vid:t._vid,priOptions:t._priOptions},e}))}},{key:"_startLoad",value:function(){var e=null;if(this._responseType===iD&&this._range&&this._range.length>1)if(this._onProgress){this._firstRtt=-1;var t=1024*this._currentChunkSizeKB,r=this._range[0]+this._receivedLength,n=this._range[1];t<this._range[1]-r&&(n=r+t),e=[r,n],this._logger.debug("[xhr_loader->],tast :",this._range,", SubRange, ",e)}else e=this._range,this._logger.debug("[xhr_loader->],tast :",this._range,", allRange, ",e);this._internalOpen(e)}},{key:"_internalOpen",value:function(e){var t=this;try{var r,n;this._startTime=jk();var i=this._xhr=new XMLHttpRequest;i.open(this._method||"GET",this._url,!0),i.responseType=this._responseType,this._timeout&&(i.timeout=this._timeout),i.withCredentials=this._withCredentials,i.onload=Ig(r=this._onLoad).call(r,this),i.onreadystatechange=Ig(n=this._onReadyStatechange).call(n,this),i.onerror=function(e){var r,n,i;t._running=!1;var a=new sD(t._url,t._request,null==e||null===(r=e.currentTarget)||void 0===r?void 0:r.response,"xhr.onerror.status:"+(null==e||null===(n=e.currentTarget)||void 0===n?void 0:n.status)+",statusText,"+(null==e||null===(i=e.currentTarget)||void 0===i?void 0:i.statusText));a.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(a)},i.ontimeout=function(e){t.cancel();var r=new sD(t._url,t._request,{status:408},"timeout");t._onTimeout&&(r.isTimeout=!0,t._onTimeout(r,{index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions})),r.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(r)};var a,o=this._headers||{},s=lD(e);if(s&&(o.Range=s),o)sf(a=Pl(o)).call(a,(function(e){i.setRequestHeader(e,o[e])}));this._logger.debug("[xhr.send->] tast,",this._range,",load sub range, ",e),i.send(this._body)}catch(u){u.options={index:this._index,range:e,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(u)}}},{key:"_onReadyStatechange",value:function(e){2===e.target.readyState&&this._firstRtt<0&&(this._firstRtt=jk())}},{key:"_onLoad",value:function(e){var t,r=e.target.status;if(r<200||r>299){var n=new sD(this._url,null,GO(GO({},e.target.response),{},{status:r}),"bad response,status:"+r);return n.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(n)}var i,a=null,o=!1,s=(null===(t=this._range)||void 0===t?void 0:t.length)>0?this._range[0]:0;if(this._responseType===iD){var u,c=new Uint8Array(e.target.response);if(i=s+this._receivedLength,c&&c.byteLength>0){this._receivedLength+=c.byteLength;var l=jk()-this._startTime,f=pD(this._receivedLength,l);this.emit(VD,{speed:f,len:this._receivedLength,time:l,vid:this._vid,index:this._index,range:[i,s+this._receivedLength],priOptions:this._priOptions})}a=c,o=!((null===(u=this._range)||void 0===u?void 0:u.length)>1&&this._range[1]&&this._receivedLength<this._range[1]-this._range[0]),this._logger.debug("[xhr load done->], tast :",this._range,", start",i,"end ",s+this._receivedLength,",dataLen,",c?c.byteLength:0,",receivedLength",this._receivedLength,",index,",this._index,", done,",o)}else o=!0,a=e.target.response;var h={ok:r>=200&&r<300,status:r,statusText:this._xhr.statusText,url:this._xhr.responseURL,headers:this._getHeaders(this._xhr),body:this._xhr.response};this._transformResponse&&(h=this._transformResponse(h,this._url)||h),this._onProgress&&this._onProgress(a,o,{index:this._index,vid:this._vid,range:[i,s+this._receivedLength],startTime:this._startTime,endTime:jk(),priOptions:this._priOptions},h),o?(this._runing=!1,this._loadCompleteResolve&&this._loadCompleteResolve(dD(this._onProgress?null:a,o,h,h.headers["content-length"],h.headers.age,this._startTime,this._firstRtt,this._index,this._range,this._vid,this._priOptions))):this._startLoad()}},{key:"cancel",value:function(){if(!this._aborted)return this._aborted=!0,this._runing=!1,sC(ZO(r.prototype),"removeAllListeners",this).call(this),this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions}),this._xhr?this._xhr.abort():void 0}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}},{key:"_getHeaders",value:function(e){var t,r,n={},i=cC(Qw(t=e.getAllResponseHeaders()).call(t).split("\r\n"));try{for(i.s();!(r=i.n()).done;){var a=r.value.split(": ");n[a[0].toLowerCase()]=mg(a).call(a,1).join(": ")}}catch(o){i.e(o)}finally{i.f()}return n}}],[{key:"isSupported",value:function(){return"undefined"!=typeof XMLHttpRequest}}]),r}(Pb),HD=["retry","retryDelay","onRetryError","transformError"],WD=function(){function e(t,r){YO(this,e),this.promise=fC(),this.alive=!!r.onProgress,!r.logger&&(r.logger=new KC("Loader")),this._loaderType=t,this._loader=t===rD&&window.fetch?new GD:new qD,this._config=r,this._retryCount=0,this._retryTimer=null,this._canceled=!1,this._retryCheckFunc=r.retryCheckFunc,this._logger=r.logger}var t;return QO(e,[{key:"exec",value:function(){var e=this,t=this._config,r=t.retry,n=t.retryDelay,i=t.onRetryError,a=t.transformError,o=iC(t,HD),s=function(){var t=KO(qO().mark((function t(){var u,c,l;return qO().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._loader.load(o);case 3:u=t.sent,e.promise.resolve(u),t.next=27;break;case 7:if(t.prev=7,t.t0=t.catch(0),e._loader.running=!1,e._logger.debug("[task request catch err]",t.t0),!e._canceled){t.next=13;break}return t.abrupt("return");case 13:if(t.t0.loaderType=e._loaderType,t.t0.retryCount=e._retryCount,c=t.t0,a&&(c=a(c)||c),i&&e._retryCount>0&&i(c,e._retryCount,{index:o.index,vid:o.vid,range:o.range,priOptions:o.priOptions}),e._retryCount++,l=!0,e._retryCheckFunc&&(l=e._retryCheckFunc(t.t0)),!(l&&e._retryCount<=r)){t.next=26;break}return clearTimeout(e._retryTimer),e._logger.debug("[task request setTimeout],retry",e._retryCount,",retry range,",o.range),e._retryTimer=Sw(s,n),t.abrupt("return");case 26:e.promise.reject(c);case 27:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(){return t.apply(this,arguments)}}();return s(),this.promise}},{key:"cancel",value:(t=KO(qO().mark((function e(){return qO().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return clearTimeout(this._retryTimer),this._canceled=!0,this._loader.running=!1,e.abrupt("return",this._loader.cancel());case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"running",get:function(){return this._loader&&this._loader.running}},{key:"loader",get:function(){return this._loader}}]),e}();function KD(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if((t=Fl(t).call(t,Boolean)).length<2)return t[0];var n=new Uint8Array(EC(t).call(t,(function(e,t){return e+t.byteLength}),0)),i=0;return sf(t).call(t,(function(e){n.set(e,i),i+=e.byteLength})),n}function YD(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new qy((function(t){return Sw(t,e)}))}var JD=function(e){$O(n,e);var t,r=oC(n);function n(e){var t;return YO(this,n),XO(aC(t=r.call(this,e)),"type",rD),XO(aC(t),"_queue",[]),XO(aC(t),"_alive",[]),XO(aC(t),"_currentTask",null),XO(aC(t),"_finnalUrl",""),XO(aC(t),"_config",void 0),t._config=function(e){return GO({loaderType:rD,retry:0,retryDelay:0,timeout:0,request:null,onTimeout:void 0,onProgress:void 0,onRetryError:void 0,transformRequest:void 0,transformResponse:void 0,transformError:void 0,responseType:aD,range:void 0,url:"",params:void 0,method:"GET",headers:{},body:void 0,mode:void 0,credentials:void 0,cache:void 0,redirect:void 0,referrer:void 0,referrerPolicy:void 0,integrity:void 0,onProcessMinLen:0},e)}(e),t._config.loaderType!==nD&&GD.isSupported()||(t.type=nD),t.log=e.logger,t}return QO(n,[{key:"isFetch",value:function(){return this.type===rD}},{key:"load",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"!=typeof e&&e?r=e:r.url=e||r.url||this._config.url,(r=Cb({},this._config,r)).params&&(r.params=Cb({},r.params)),r.headers&&cD(r.headers)&&(r.headers=Cb({},r.headers)),r.body&&cD(r.body)&&(r.body=Cb({},r.body)),r.transformRequest&&(r=r.transformRequest(r)||r),r.logger=this.log;var n=new WD(this.type,r);return n.loader.on(VD,(function(e){t.emit(VD,e)})),this._queue.push(n),1!==this._queue.length||this._currentTask&&this._currentTask.running||this._processTask(),n.promise}},{key:"cancel",value:(t=KO(qO().mark((function e(){var t;return qO().wrap((function(e){for(var r,n,i;;)switch(e.prev=e.next){case 0:return t=Xn(r=P_(n=this._queue).call(n,(function(e){return e.cancel()}))).call(r,P_(i=this._alive).call(i,(function(e){return e.cancel()}))),this._currentTask&&t.push(this._currentTask.cancel()),this._queue=[],this._alive=[],e.next=6,qy.all(t);case 6:return e.next=8,YD();case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"_processTask",value:function(){var e=this;if(this._currentTask=this._queue.shift(),this._currentTask){this._currentTask.alive&&this._alive.push(this._currentTask);var t=this._currentTask.exec().catch((function(e){}));t&&"function"==typeof t.finally&&t.finally((function(){var t,r,n;null!==(t=e._currentTask)&&void 0!==t&&t.alive&&(null===(r=e._alive)||void 0===r?void 0:r.length)>0&&(e._alive=Fl(n=e._alive).call(n,(function(t){return t&&t!==e._currentTask})));e._processTask()}))}}}],[{key:"isFetchSupport",value:function(){return GD.isSupported()}}]),n}(Pb),QD=function(){function e(){YO(this,e),XO(this,"_prevCurrentTime",0)}return QO(e,[{key:"do",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(e){var i=e.currentTime,a=0;if(this._prevCurrentTime===i){var o=TC.info(TC.get(e),i);if(!o.buffers.length)return;r&&o.nextStart||o.nextStart&&o.nextStart-i<t?a=o.nextStart+.1:o.end&&o.end-i>n&&!e.seeking&&(a=i+.1)}this._prevCurrentTime=i,a&&i!==a&&(e.currentTime=a)}}}]),e}();GA("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),iL);var XD=re.Set,$D=Ae,ZD=function(e){if("object"==typeof e&&"size"in e&&"has"in e&&"add"in e&&"delete"in e&&"keys"in e)return e;throw TypeError($D(e)+" is not a set")},eP=mL,tP=se("Set"),rP=tP.prototype,nP={Set:tP,add:eP("add",1),has:eP("has",1),remove:eP("delete",1),proto:rP},iP=OL,aP=function(e,t,r){return r?iP(e.keys(),t):e.forEach(t)},oP=aP,sP=nP.Set,uP=nP.add,cP=function(e){var t=new sP;return oP(e,(function(e){uP(t,e)})),t},lP=function(e){return e.size},fP=De,hP=rr,dP=R,pP=Ur,vP=TypeError,yP=Math.max,gP=function(e,t,r,n){this.set=e,this.size=t,this.has=r,this.keys=n};gP.prototype={getIterator:function(){return hP(dP(this.keys,this.set))},includes:function(e){return dP(this.has,this.set,e)}};var mP=function(e){hP(e);var t=+e.size;if(t!=t)throw vP("Invalid size");return new gP(e,yP(pP(t),0),fP(e.has),fP(e.keys))},_P=ZD,bP=cP,wP=lP,kP=mP,xP=aP,SP=OL,EP=nP.has,TP=nP.remove,AP=function(e){var t=_P(this),r=kP(e),n=bP(t);return wP(t)<=r.size?xP(t,(function(e){r.includes(e)&&TP(n,e)})):SP(r.getIterator(),(function(e){EP(t,e)&&TP(n,e)})),n},LP=function(){return!1},OP=AP;Lr({target:"Set",proto:!0,real:!0,forced:!LP()},{difference:OP});var CP=ZD,DP=lP,PP=mP,RP=aP,UP=OL,IP=nP.Set,MP=nP.add,BP=nP.has,jP=function(e){var t=CP(this),r=PP(e),n=new IP;return DP(t)>r.size?UP(r.getIterator(),(function(e){BP(t,e)&&MP(n,e)})):RP(t,(function(e){r.includes(e)&&MP(n,e)})),n},FP=jP;Lr({target:"Set",proto:!0,real:!0,forced:!LP()},{intersection:FP});var NP=ZD,VP=nP.has,zP=lP,GP=mP,qP=aP,HP=OL,WP=Sh,KP=function(e){var t=NP(this),r=GP(e);if(zP(t)<=r.size)return!1!==qP(t,(function(e){if(r.includes(e))return!1}),!0);var n=r.getIterator();return!1!==HP(n,(function(e){if(VP(t,e))return WP(n,"normal",!1)}))},YP=KP;Lr({target:"Set",proto:!0,real:!0,forced:!LP()},{isDisjointFrom:YP});var JP=ZD,QP=lP,XP=aP,$P=mP,ZP=function(e){var t=JP(this),r=$P(e);return!(QP(t)>r.size)&&!1!==XP(t,(function(e){if(!r.includes(e))return!1}),!0)},eR=ZP;Lr({target:"Set",proto:!0,real:!0,forced:!LP()},{isSubsetOf:eR});var tR=ZD,rR=nP.has,nR=lP,iR=mP,aR=OL,oR=Sh,sR=function(e){var t=tR(this),r=iR(e);if(nR(t)<r.size)return!1;var n=r.getIterator();return!1!==aR(n,(function(e){if(!rR(t,e))return oR(n,"normal",!1)}))},uR=sR;Lr({target:"Set",proto:!0,real:!0,forced:!LP()},{isSupersetOf:uR});var cR=ZD,lR=cP,fR=mP,hR=OL,dR=nP.add,pR=nP.has,vR=nP.remove,yR=function(e){var t=cR(this),r=fR(e).getIterator(),n=lR(t);return hR(r,(function(e){pR(t,e)?vR(n,e):dR(n,e)})),n},gR=yR;Lr({target:"Set",proto:!0,real:!0,forced:!LP()},{symmetricDifference:gR});var mR=ZD,_R=nP.add,bR=cP,wR=mP,kR=OL,xR=function(e){var t=mR(this),r=wR(e).getIterator(),n=bR(t);return kR(r,(function(e){_R(n,e)})),n},SR=xR;Lr({target:"Set",proto:!0,real:!0,forced:!LP()},{union:SR});var ER=XD;Lr({target:"Set",stat:!0,forced:!0},{from:dL}),Lr({target:"Set",stat:!0,forced:!0},{of:vL});var TR=ZD,AR=nP.add;Lr({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=TR(this),t=0,r=arguments.length;t<r;t++)AR(e,arguments[t]);return e}});var LR=ZD,OR=nP.remove;Lr({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=LR(this),r=!0,n=0,i=arguments.length;n<i;n++)e=OR(t,arguments[n]),r=r&&e;return!!r}});var CR=Qt,DR=ZD,PR=aP;Lr({target:"Set",proto:!0,real:!0,forced:!0},{every:function(e){var t=DR(this),r=CR(e,arguments.length>1?arguments[1]:void 0);return!1!==PR(t,(function(e){if(!r(e,e,t))return!1}),!0)}});var RR=en,UR=$e,IR=W,MR=gu,BR=ht("iterator"),jR=Object,FR=L,NR=function(e){if(IR(e))return!1;var t=jR(e);return void 0!==t[BR]||"@@iterator"in t||UR(MR,RR(t))},VR=te,zR=se("Set"),GR=function(e){return function(e){return VR(e)&&"number"==typeof e.size&&FR(e.has)&&FR(e.keys)}(e)?e:NR(e)?new zR(e):e},qR=R,HR=GR,WR=AP;Lr({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return qR(WR,this,HR(e))}});var KR=Qt,YR=ZD,JR=aP,QR=nP.Set,XR=nP.add;Lr({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=YR(this),r=KR(e,arguments.length>1?arguments[1]:void 0),n=new QR;return JR(t,(function(e){r(e,e,t)&&XR(n,e)})),n}});var $R=Qt,ZR=ZD,eU=aP;Lr({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=ZR(this),r=$R(e,arguments.length>1?arguments[1]:void 0),n=eU(t,(function(e){if(r(e,e,t))return{value:e}}),!0);return n&&n.value}});var tU=R,rU=GR,nU=jP;Lr({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return tU(nU,this,rU(e))}});var iU=R,aU=GR,oU=KP;Lr({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return iU(oU,this,aU(e))}});var sU=R,uU=GR,cU=ZP;Lr({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return sU(cU,this,uU(e))}});var lU=R,fU=GR,hU=sR;Lr({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return lU(hU,this,fU(e))}});var dU=Lr,pU=c,vU=ZD,yU=aP,gU=ei,mU=pU([].join),_U=pU([].push);dU({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=vU(this),r=void 0===e?",":gU(e),n=[];return yU(t,(function(e){_U(n,e)})),mU(n,r)}});var bU=Qt,wU=ZD,kU=aP,xU=nP.Set,SU=nP.add;Lr({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=wU(this),r=bU(e,arguments.length>1?arguments[1]:void 0),n=new xU;return kU(t,(function(e){SU(n,r(e,e,t))})),n}});var EU=De,TU=ZD,AU=aP,LU=TypeError;Lr({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=TU(this),r=arguments.length<2,n=r?void 0:arguments[1];if(EU(e),AU(t,(function(i){r?(r=!1,n=i):n=e(n,i,i,t)})),r)throw LU("Reduce of empty set with no initial value");return n}});var OU=Qt,CU=ZD,DU=aP;Lr({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=CU(this),r=OU(e,arguments.length>1?arguments[1]:void 0);return!0===DU(t,(function(e){if(r(e,e,t))return!0}),!0)}});var PU=R,RU=GR,UU=yR;Lr({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return PU(UU,this,RU(e))}});var IU=R,MU=GR,BU=xR;Lr({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return IU(BU,this,MU(e))}});var jU=r(ER),FU=function(){function e(t){var r=this;YO(this,e),XO(this,"_seiSet",new jU),this.emitter=t,t.on(AD,(function(e){e&&r._seiSet.add(e)}))}return QO(e,[{key:"throw",value:function(e,t){var r,n,i=this;if(null!=e&&this._seiSet.size){var a=e-.2,o=e+.2,s=[];sf(r=this._seiSet).call(r,(function(e){e.time>=a&&e.time<=o&&s.push(e)})),sf(s).call(s,(function(e){i._seiSet.delete(e),i.emitter.emit(LD,e)})),t&&sf(n=this._seiSet).call(n,(function(t){t.time<e-5&&i._seiSet.delete(t)}))}}},{key:"reset",value:function(){this._seiSet.clear()}}]),e}(),NU=function(){function e(){YO(this,e),XO(this,"_chunkSpeeds",[]),XO(this,"_speeds",[])}return QO(e,[{key:"addRecord",value:function(e,t){var r;e&&t&&(this._speeds.push(8e3*e/t),this._speeds=mg(r=this._speeds).call(r,-3))}},{key:"addChunkRecord",value:function(e,t){var r;e&&t&&(this._chunkSpeeds.push(8e3*e/t),this._chunkSpeeds=mg(r=this._chunkSpeeds).call(r,-100))}},{key:"getAvgSpeed",value:function(){var e,t;return this._chunkSpeeds.length||this._speeds.length?this._speeds.length?EC(t=this._speeds).call(t,(function(e,t){return e+t}))/this._speeds.length:EC(e=this._chunkSpeeds).call(e,(function(e,t){return e+t}))/this._chunkSpeeds.length:0}},{key:"getLatestSpeed",value:function(){return this._chunkSpeeds.length||this._speeds.length?this._speeds.length?this._speeds[this._speeds.length-1]:this._chunkSpeeds[this._chunkSpeeds.length-1]:0}},{key:"reset",value:function(){this._chunkSpeeds=[],this._speeds=[]}}]),e}(),VU=function(){function e(t){YO(this,e),XO(this,"encodeType",""),XO(this,"audioCodec",""),XO(this,"videoCodec",""),XO(this,"domain",""),XO(this,"fps",0),XO(this,"bitrate",0),XO(this,"width",0),XO(this,"height",0),XO(this,"samplerate",0),XO(this,"channelCount",0),XO(this,"gop",0),XO(this,"_bitsAccumulateSize",0),XO(this,"_bitsAccumulateDuration",0),XO(this,"_startGopId",-1),this._timescale=t}return QO(e,[{key:"getStats",value:function(){return{encodeType:this.encodeType,audioCodec:this.audioCodec,videoCodec:this.videoCodec,domain:this.domain,fps:this.fps,bitrate:this.bitrate,width:this.width,height:this.height,samplerate:this.samplerate,channelCount:this.channelCount,gop:this.gop}}},{key:"setEncodeType",value:function(e){this.encodeType=e}},{key:"setFpsFromScriptData",value:function(e){var t,r=e.data,n=null==r||null===(t=r.onMetaData)||void 0===t?void 0:t.framerate;n&&n>0&&n<100&&(this.fps=n)}},{key:"setVideoMeta",value:function(e){if(this.width=e.width,this.height=e.height,this.videoCodec=e.codec,this.encodeType=e.codecType,e.fpsNum&&e.fpsDen){var t=e.fpsNum/e.fpsDen;t>0&&t<100&&(this.fps=t)}}},{key:"setAudioMeta",value:function(e){this.audioCodec=e.codec,this.samplerate=e.sampleRate,this.channelCount=e.channelCount}},{key:"setDomain",value:function(e){var t;this.domain=mg(t=e.split("/")).call(t,2,3)[0]}},{key:"updateBitrate",value:function(e){var t=this;if((!this.fps||this.fps>=100)&&e.length){var r=EC(e).call(e,(function(e,t){return e+t.duration}),0)/e.length;this.fps=Math.round(this._timescale/r)}sf(e).call(e,(function(e){var r;-1===t._startGopId&&(t._startGopId=e.gopId),e.gopId===t._startGopId&&t.gop++,t._bitsAccumulateDuration+=e.duration/(t._timescale/1e3),t._bitsAccumulateSize+=EC(r=e.units).call(r,(function(e,t){return e+t.length}),0),t._bitsAccumulateDuration>=1e3&&(t.bitrate=8*t._bitsAccumulateSize,t._bitsAccumulateDuration=0,t._bitsAccumulateSize=0)}))}}]),e}(),zU=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;YO(this,e),XO(this,"_core",null),XO(this,"_samples",[]),this._core=t,this._timescale=r,this._stats=new VU(r),this._bindEvents()}return QO(e,[{key:"getStats",value:function(){var e,t,r,n,i,a,o,s=(null===(e=this._core)||void 0===e?void 0:e.media)||{},u=s.currentTime,c=void 0===u?0:u,l=s.decodeFps,f=void 0===l?0:l;return GO(GO({},this._stats.getStats()),{},{downloadSpeed:(null===(t=this._core)||void 0===t||null===(r=t.speedInfo)||void 0===r?void 0:r.call(t).speed)||0,avgSpeed:(null===(n=this._core)||void 0===n||null===(i=n.speedInfo)||void 0===i?void 0:i.call(n).avgSpeed)||0,currentTime:c,bufferEnd:(null===(a=this._core)||void 0===a||null===(o=a.bufferInfo())||void 0===o?void 0:o.remaining)||0,decodeFps:f})}},{key:"_bindEvents",value:function(){var e=this;this._core.on(RD,(function(t){var r=t.videoTrack;return e._stats.updateBitrate(r.samples)})),this._core.on(OD,(function(t){e._stats.setFpsFromScriptData(t)})),this._core.on(TD,(function(t){"video"===t.type?e._stats.setVideoMeta(t.track):e._stats.setAudioMeta(t.track)})),this._core.on(yD,(function(t){e._stats.setDomain(t.responseUrl)}))}},{key:"reset",value:function(){this._samples=[],this._stats=new VU(this._timescale)}}]),e}();function GU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Pf(e,rI(n.key),n)}}function HU(e,t,r){return t&&qU(e.prototype,t),r&&qU(e,r),Pf(e,"prototype",{writable:!1}),e}function WU(e,t,r){return(t=rI(t))in e?Pf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KU(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=If(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Pf(e,"prototype",{writable:!1}),t&&JU(e,t)}function YU(e){var t;return(YU=Nf?Ig(t=Ff).call(t):function(e){return e.__proto__||Ff(e)})(e)}function JU(e,t){var r;return(JU=Nf?Ig(r=Nf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function QU(e,t){if(t&&("object"===Ol(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function XU(e){var t=function(){if("undefined"==typeof Reflect||!Qg)return!1;if(Qg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Qg(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=YU(e);if(t){var i=YU(this).constructor;r=Qg(n,arguments,i)}else r=n.apply(this,arguments);return QU(this,r)}}function $U(e,t){return function(e){if(R_(e))return e}(e)||function(e,t){var r=null==e?null:void 0!==Rf&&G_(e)||e["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(e,t)||eI(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZU(e){return function(e){if(R_(e))return tI(e)}(e)||function(e){if(void 0!==Rf&&null!=G_(e)||null!=e["@@iterator"])return ab(e)}(e)||eI(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eI(e,t){var r;if(e){if("string"==typeof e)return tI(e,t);var n=mg(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?ab(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tI(e,t):void 0}}function tI(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rI(e){var t=function(e,t){if("object"!==Ol(e)||null===e)return e;var r=e[Xg];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Ol(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ol(t)?t:String(t)}var nI="video",iI="audio",aI="metadata",oI="avc",sI="hevc",uI="aac",cI="g7110a",lI="g7110m",fI="LARGE_AV_SHIFT",hI="LARGE_VIDEO_GAP",dI="LARGE_VIDEO_GAP_BETWEEN_CHUNK",pI="LARGE_AUDIO_GAP",vI="AUDIO_FILLED",yI="AUDIO_DROPPED",gI=function(){function e(){GU(this,e),WU(this,"id",1),WU(this,"type",nI),WU(this,"codecType",oI),WU(this,"pid",-1),WU(this,"hvcC",void 0),WU(this,"codec",""),WU(this,"timescale",0),WU(this,"formatTimescale",0),WU(this,"sequenceNumber",0),WU(this,"baseMediaDecodeTime",0),WU(this,"baseDts",0),WU(this,"duration",0),WU(this,"warnings",[]),WU(this,"samples",[]),WU(this,"pps",[]),WU(this,"sps",[]),WU(this,"vps",[]),WU(this,"fpsNum",0),WU(this,"fpsDen",0),WU(this,"sarRatio",[]),WU(this,"width",0),WU(this,"height",0),WU(this,"nalUnitSize",4),WU(this,"present",!1),WU(this,"isVideoEncryption",!1),WU(this,"isAudioEncryption",!1),WU(this,"isVideo",!0),WU(this,"kid",null),WU(this,"pssh",null),WU(this,"ext",void 0)}return HU(e,[{key:"reset",value:function(){this.sequenceNumber=this.width=this.height=this.fpsDen=this.fpsNum=this.duration=this.baseMediaDecodeTime=this.timescale=0,this.codec="",this.present=!1,this.pid=-1,this.pps=[],this.sps=[],this.vps=[],this.sarRatio=[],this.samples=[],this.warnings=[],this.hvcC=null}},{key:"exist",value:function(){return!!(this.pps.length&&this.sps.length&&this.codec)}},{key:"hasSample",value:function(){return!!this.samples.length}},{key:"isEncryption",get:function(){return this.isVideoEncryption}}]),e}(),mI=function(){function e(){GU(this,e),WU(this,"id",2),WU(this,"type",iI),WU(this,"codecType",uI),WU(this,"pid",-1),WU(this,"codec",""),WU(this,"sequenceNumber",0),WU(this,"sampleDuration",0),WU(this,"timescale",0),WU(this,"formatTimescale",0),WU(this,"baseMediaDecodeTime",0),WU(this,"duration",0),WU(this,"warnings",[]),WU(this,"samples",[]),WU(this,"baseDts",0),WU(this,"sampleSize",16),WU(this,"sampleRate",0),WU(this,"channelCount",0),WU(this,"objectType",0),WU(this,"sampleRateIndex",0),WU(this,"config",[]),WU(this,"present",!1),WU(this,"isVideoEncryption",!1),WU(this,"isAudioEncryption",!1),WU(this,"kid",null),WU(this,"ext",void 0)}return HU(e,[{key:"reset",value:function(){this.sequenceNumber=0,this.timescale=0,this.sampleDuration=0,this.sampleRate=0,this.channelCount=0,this.baseMediaDecodeTime=0,this.present=!1,this.pid=-1,this.codec="",this.samples=[],this.config=[],this.warnings=[]}},{key:"exist",value:function(){return!!(this.sampleRate&&this.channelCount&&this.codec&&this.codecType===uI)}},{key:"hasSample",value:function(){return!!this.samples.length}},{key:"isEncryption",get:function(){return this.isAudioEncryption}}]),e}(),_I=function(){function e(t,r,n){GU(this,e),WU(this,"flag",{}),WU(this,"keyframe",!1),WU(this,"gopId",0),WU(this,"duration",0),WU(this,"size",0),WU(this,"units",[]),WU(this,"chromaFormat",420),this.originPts=this.pts=t,this.originDts=this.dts=r,n&&(this.units=n)}return HU(e,[{key:"cts",get:function(){return this.pts-this.dts}},{key:"setToKeyframe",value:function(){this.keyframe=!0,this.flag.dependsOn=2,this.flag.isNonSyncSample=0}}]),e}(),bI=HU((function e(t,r,n,i){GU(this,e),WU(this,"duration",1024),WU(this,"flag",{dependsOn:2,isNonSyncSample:0}),WU(this,"keyframe",!0),this.originPts=this.pts=this.dts=t,this.data=r,this.size=r.byteLength,this.sampleOffset=i,n&&(this.duration=n)})),wI=HU((function e(t,r){GU(this,e),WU(this,"time",0),this.data=t,this.originPts=this.pts=r})),kI=function(e){KU(r,e);var t=XU(r);function r(){return GU(this,r),t.apply(this,arguments)}return HU(r)}(wI),xI=function(e){KU(r,e);var t=XU(r);function r(){return GU(this,r),t.apply(this,arguments)}return HU(r)}(wI),SI=function(){function e(){GU(this,e),WU(this,"id",3),WU(this,"type",aI),WU(this,"timescale",0),WU(this,"flvScriptSamples",[]),WU(this,"seiSamples",[])}return HU(e,[{key:"exist",value:function(){return!(!this.flvScriptSamples.length&&!this.seiSamples.length||!this.timescale)}},{key:"reset",value:function(){this.timescale=0,this.flvScriptSamples=[],this.seiSamples=[]}},{key:"hasSample",value:function(){return!(!this.flvScriptSamples.length&&!this.seiSamples.length)}}]),e}(),EI=h.isFinite;Lr({target:"Number",stat:!0},{isFinite:Number.isFinite||function(e){return"number"==typeof e&&EI(e)}});var TI=r(re.Number.isFinite),AI=function(){function e(t){GU(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]")}return HU(e,[{key:"warn",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];(r=console).warn.apply(r,Xn(t=[this._prefix]).call(t,i))}}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();WU(AI,"disabled",!0);var LI="undefined"!=typeof window,OI=LI&&navigator.userAgent.toLocaleLowerCase(),CI=LI&&/^((?!chrome|android).)*safari/.test(OI),DI=LI&&rA(OI).call(OI,"firefox"),PI=LI&&rA(OI).call(OI,"android"),RI=function(){function e(){GU(this,e)}return HU(e,null,[{key:"getRateIndexByRate",value:function(t){var r;return km(r=e.FREQ).call(r,t)}},{key:"parseADTS",value:function(t,r){for(var n=t.length,i=0;i+2<n&&(255!==t[i]||240!=(246&t[i+1]));)i++;if(!(i>=n)){var a=i,o=[],s=(60&t[i+2])>>>2,u=e.FREQ[s];if(!u)throw new Error("Invalid sampling index: ".concat(s));for(var c,l,f=1+((192&t[i+2])>>>6),h=(1&t[i+2])<<2|(192&t[i+3])>>>6,d=e._getConfig(s,h,f),p=d.config,v=d.codec,y=0,g=e.getFrameDuration(u);i+7<n;)if(255===t[i]&&240==(246&t[i+1])){if(n-i<(l=(3&t[i+3])<<11|t[i+4]<<3|(224&t[i+5])>>5))break;c=2*(1&~t[i+1]),o.push({pts:r+y*g,data:t.subarray(i+7+c,i+l)}),y++,i+=l}else i++;return{skip:a,remaining:i>=n?void 0:t.subarray(i),frames:o,samplingFrequencyIndex:s,sampleRate:u,objectType:f,channelCount:h,codec:v,config:p,originCodec:"mp4a.40.".concat(f)}}}},{key:"parseAudioSpecificConfig",value:function(t){if(t.length){var r=t[0]>>>3,n=(7&t[0])<<1|t[1]>>>7,i=(120&t[1])>>>3,a=e.FREQ[n];if(a){var o=e._getConfig(n,i,r);return{samplingFrequencyIndex:n,sampleRate:a,objectType:r,channelCount:i,config:o.config,codec:o.codec,originCodec:"mp4a.40.".concat(r)}}}}},{key:"getFrameDuration",value:function(e){return 1024*(arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4)/e}},{key:"_getConfig",value:function(e,t,r){var n,i,a=[];return DI?e>=6?(n=5,i=e-3):(n=2,i=e):PI?(n=2,i=e):(n=2===r||5===r?r:5,i=e,e>=6?i=e-3:1===t&&(n=2,i=e)),a[0]=n<<3,a[0]|=(14&e)>>1,a[1]=(1&e)<<7,a[1]|=t<<3,5===n&&(a[1]|=(14&i)>>1,a[2]=(1&i)<<7,a[2]|=8,a[3]=0),{config:a,codec:"mp4a.40.".concat(n)}}},{key:"getSilentFrame",value:function(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)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(6===t)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])}else{if(1===t)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(2===t)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]);if(3===t)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])}}}]),e}();WU(RI,"FREQ",[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350]);var UI=1e3,II=5e3,MI=function(){function e(t,r,n){GU(this,e),this.videoTrack=t,this.audioTrack=r,this.metadataTrack=n,this._baseDts=-1,this._baseDtsInited=!1,this._audioNextPts=void 0,this._videoNextDts=void 0,this._audioTimestampBreak=0,this._videoTimestampBreak=0,this._lastVideoDuration=0,this._keyFrameInNextChunk=!1,this._lastAudioExceptionGapDot=-1/0,this._lastAudioExceptionOverlapDot=-1/0,this._lastAudioExceptionLargeGapDot=-1/0,this._lastVideoExceptionLargeGapDot=-1/0,this._lastVideoExceptionChunkFirstDtsDot=-1/0}return HU(e,[{key:"fix",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];t=Math.round(1e3*t);var i=this.videoTrack,a=this.audioTrack;if(!r&&n||(this._videoLastSample=null,this._audioNextPts=void 0,this._videoNextDts=void 0,this._audioTimestampBreak=0,this._videoTimestampBreak=0,this._lastAudioExceptionGapDot=-1/0,this._lastAudioExceptionOverlapDot=-1/0,this._lastAudioExceptionLargeGapDot=-1/0,this._lastVideoExceptionLargeGapDot=-1/0,this._lastVideoExceptionChunkFirstDtsDot=-1/0),r&&!n&&(this._baseDtsInited=!1),this._baseDtsInited||this._calculateBaseDts(a,i),!n&&t&&(this._audioNextPts=this._videoNextDts=t),this._baseDtsInited&&(this._videoTimestampBreak||!this.videoTrack.exist())&&(this._audioTimestampBreak||!this.audioTrack.exist())&&this._resetBaseDtsWhenStreamBreaked(),this._fixAudio(a),this._keyFrameInNextChunk=!1,this._fixVideo(i),this.metadataTrack.exist()){var o,s,u=this.metadataTrack.timescale;sf(o=this.metadataTrack.seiSamples).call(o,(function(t){t.pts=t.originPts-e._baseDts,t.time=Math.max(0,t.pts)/u})),sf(s=this.metadataTrack.flvScriptSamples).call(s,(function(t){t.pts=t.originPts-e._baseDts,t.time=Math.max(0,t.pts)/u}))}i.samples.length&&(i.baseMediaDecodeTime=i.samples[0].dts),a.samples.length&&(a.baseMediaDecodeTime=a.samples[0].pts*a.timescale/1e3)}},{key:"_fixVideo",value:function(e){var t=this,r=e.samples;if(r.length){var n;if(sf(r).call(r,(function(e){e.dts-=t._baseDts,e.pts-=t._baseDts,e.keyframe&&(t._keyFrameInNextChunk=!0)})),e.fpsNum&&e.fpsDen)n=e.timescale*(e.fpsDen/e.fpsNum);else if(e.length>1){var i=e.samples[0],a=e.samples[r.length-1];n=Math.floor((a.dts-i.dts)/(r.length-1))}else n=this._lastVideoDuration||40;var o=r.pop();if(this._videoLastSample&&r.unshift(this._videoLastSample),this._videoLastSample=o,r.length){if(void 0===this._videoNextDts){var s=r[0];this._videoNextDts=s.dts}var u=r.length,c=0,l=r[0],f=this._videoNextDts-l.dts;if(Math.abs(f)>200){var h;if(Math.abs(l.dts-this._lastVideoExceptionChunkFirstDtsDot)>5e3)this._lastVideoExceptionChunkFirstDtsDot=l.dts,e.warnings.push({type:dI,nextDts:this._videoNextDts,firstSampleDts:l.dts,nextSampleDts:null===(h=r[1])||void 0===h?void 0:h.dts,sampleDuration:f});this._videoTimestampBreak>=5?(this._videoNextDts=l.dts,this._videoTimestampBreak=0):(l.dts+=f,l.pts+=f,this.audioTrack.exist()||(this._videoTimestampBreak=1))}for(var d=0;d<u;d++){var p=r[d].dts,v=r[d+1];((c=d<u-1?v.dts-p:o?o.dts-p:n)>1e3||c<0)&&(this._videoTimestampBreak++,Math.abs(p-this._lastVideoExceptionLargeGapDot)>5e3&&(this._lastVideoExceptionLargeGapDot=p,e.warnings.push({type:hI,time:p/e.timescale,dts:p,originDts:r[d].originDts,nextDts:this._videoNextDts,sampleDuration:c,refSampleDuration:n})),c=n),r[d].duration=c,this._videoNextDts+=c,this._lastVideoDuration=c}}}}},{key:"_fixAudio",value:function(e){var t=this,r=e.samples;r.length&&(sf(r).call(r,(function(e){e.dts=e.pts-=t._baseDts})),this._doFixAudioInternal(e,r,1e3))}},{key:"_calculateBaseDts",value:function(e,t){var r=e.samples,n=t.samples;if(!r.length&&!n.length)return!1;var i=1/0,a=1/0;r.length&&(e.baseDts=i=r[0].pts),n.length&&(t.baseDts=a=n[0].dts),this._baseDts=Math.min(i,a);var o=a-i;return TI(o)&&Math.abs(o)>500&&t.warnings.push({type:fI,videoBaseDts:a,audioBasePts:i,baseDts:this._baseDts,delta:o}),this._baseDtsInited=!0,!0}},{key:"_resetBaseDtsWhenStreamBreaked",value:function(){this._calculateBaseDts(this.audioTrack,this.videoTrack)&&(this.audioTrack.exist()?this.videoTrack.exist()?this._baseDts-=Math.min(this._audioNextPts,this._videoNextDts):this._baseDts-=this._audioNextPts:this._baseDts-=this._videoNextDts,this._videoTimestampBreak=0,this._audioTimestampBreak=0)}},{key:"_doFixAudioInternal",value:function(e,t,r){e.sampleDuration||(e.sampleDuration=e.codecType===uI?RI.getFrameDuration(e.timescale,r):this._getG711Duration(e));var n=e.sampleDuration,i=e.codecType===uI?1024:n*e.timescale/1e3;if(void 0===this._audioNextPts){var a=t[0];this._audioNextPts=a.pts}for(var o=0;o<t.length;o++){var s=this._audioNextPts,u=t[o],c=u.pts-s;if(0===o&&this._audioTimestampBreak>=5&&this._keyFrameInNextChunk&&(s=this._audioNextPts=u.dts,c=0,this._audioTimestampBreak=0),!this._audioTimestampBreak&&c>=3*n&&c<=UI&&!CI){var l=this._getSilentFrame(e)||t[0].data.subarray(),f=Math.floor(c/n);Math.abs(u.pts-this._lastAudioExceptionGapDot)>II&&(this._lastAudioExceptionGapDot=u.pts,e.warnings.push({type:vI,pts:u.pts,originPts:u.originPts,count:f,nextPts:s,refSampleDuration:n}));for(var h=0;h<f;h++){var d=new bI(Math.floor(this._audioNextPts+n)-Math.floor(this._audioNextPts),l,i);d.originPts=Math.floor(this._baseDts+s),n_(t).call(t,o,0,d),this._audioNextPts+=n,o++}o--}else c<=-3*n&&c>=-1e3?(Math.abs(u.pts-this._lastAudioExceptionOverlapDot)>II&&(this._lastAudioExceptionOverlapDot=u.pts,e.warnings.push({type:yI,pts:u.pts,originPts:u.originPts,nextPts:s,refSampleDuration:n})),n_(t).call(t,o,1),o--):(Math.abs(c)>UI&&(this._audioTimestampBreak++,Math.abs(u.pts-this._lastAudioExceptionLargeGapDot)>II&&(this._lastAudioExceptionLargeGapDot=u.pts,e.warnings.push({type:pI,time:u.pts/1e3,pts:u.pts,originPts:u.originPts,nextPts:s,sampleDuration:c,refSampleDuration:n}))),u.dts=u.pts=s,u.duration=i,this._audioNextPts+=n)}}},{key:"_getG711Duration",value:function(e){var t=e.sampleSize,r=e.channelCount,n=e.sampleRate,i=e.samples[0];if(i)return 2*i.data.byteLength/r/(t/8)/n*1e3}},{key:"_getSilentFrame",value:function(e){return e.codecType===uI?RI.getSilentFrame(e.codec,e.channelCount):new Uint8Array(8*e.sampleDuration*e.channelCount)}}]),e}();function BI(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t=Fl(t).call(t,Boolean);var n=new Uint8Array(EC(t).call(t,(function(e,t){return e+t.byteLength}),0)),i=0;return sf(t).call(t,(function(e){n.set(e,i),i+=e.byteLength})),n}function jI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(e[t]<<24>>>0)+(e[t+1]<<16)+(e[t+2]<<8)+(e[t+3]||0)}function FI(e){for(var t,r="avc1.",n=0;n<3;n++)(t=e[n].toString(16)).length<2&&(t="0".concat(t)),r+=t;return r}function NI(e){if(!R_(e)){for(var t=[],r="",n=0;n<e.length;n++)n%2&&(r=e[n-1]+e[n],t.push(T_(r,16)),r="");return t}return P_(e).call(e,(function(e){return T_(e,16)}))}var VI=function(){function e(){GU(this,e)}return HU(e,null,[{key:"parseAnnexB",value:function(e){for(var t=e.length,r=2,n=0;null!==e[r]&&void 0!==e[r]&&1!==e[r];)r++;if((n=++r+2)>=t)return[];for(var i=[];n<t;)switch(e[n]){case 0:if(0!==e[n-1]){n+=2;break}if(0!==e[n-2]){n++;break}r!==n-2&&i.push(e.subarray(r,n-2));do{n++}while(1!==e[n]&&n<t);n=(r=n+1)+2;break;case 1:if(0!==e[n-1]||0!==e[n-2]){n+=3;break}r!==n-2&&i.push(e.subarray(r,n-2)),n=(r=n+1)+2;break;default:n+=3}return r<t&&i.push(e.subarray(r)),i}},{key:"parseAvcC",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;if(!(e.length<4)){for(var r,n=e.length,i=[],a=0;a+t<n;)if(r=jI(e,a),3===t&&(r>>>=8),a+=t,r){if(a+r>n)break;i.push(e.subarray(a,a+r)),a+=r}return i}}},{key:"parseSEI",value:function(e,t){for(var r=e.length,n=t?2:1,i=0,a=0,o="";255===e[n];)i+=255,n++;for(i+=e[n++];255===e[n];)a+=255,n++;if(a+=e[n++],5===i&&r>n+16)for(var s=0;s<16;s++)o+=e[n].toString(16),n++;return{payload:e.subarray(n),type:i,size:a,uuid:o}}},{key:"removeEPB",value:function(e){for(var t=e.byteLength,r=[],n=1;n<t-2;)0===e[n]&&0===e[n+1]&&3===e[n+2]?(r.push(n+2),n+=2):n++;if(!r.length)return e;var i=t-r.length,a=new Uint8Array(i),o=0;for(n=0;n<i;o++,n++)o===r[0]&&(o++,r.shift()),a[n]=e[o];return a}}]),e}(),zI=function(){function e(t){if(GU(this,e),WU(this,"_bytesAvailable",void 0),WU(this,"_bitsAvailable",0),WU(this,"_word",0),!t)throw new Error("ExpGolomb data params is required");this._data=t,this._bytesAvailable=t.byteLength,this._bytesAvailable&&this._loadWord()}return HU(e,[{key:"_loadWord",value:function(){var e=this._data.byteLength-this._bytesAvailable,t=Math.min(4,this._bytesAvailable);if(0===t)throw new Error("No bytes available");var r=new Uint8Array(4);r.set(this._data.subarray(e,e+t)),this._word=new DataView(r.buffer).getUint32(0),this._bitsAvailable=8*t,this._bytesAvailable-=t}},{key:"skipBits",value:function(e){if(this._bitsAvailable>e)this._word<<=e,this._bitsAvailable-=e;else{e-=this._bitsAvailable;var t=Math.floor(e/8);e-=8*t,this._bytesAvailable-=t,this._loadWord(),this._word<<=e,this._bitsAvailable-=e}}},{key:"readBits",value:function(e){if(e>32)throw new Error("Cannot read more than 32 bits");var t=Math.min(this._bitsAvailable,e),r=this._word>>>32-t;return this._bitsAvailable-=t,this._bitsAvailable>0?this._word<<=t:this._bytesAvailable>0&&this._loadWord(),(t=e-t)>0&&this._bitsAvailable?r<<t|this.readBits(t):r}},{key:"skipLZ",value:function(){var e;for(e=0;e<this._bitsAvailable;++e)if(0!=(this._word&2147483648>>>e))return this._word<<=e,this._bitsAvailable-=e,e;return this._loadWord(),e+this.skipLZ()}},{key:"skipUEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"readUEG",value:function(){var e=this.skipLZ();return this.readBits(e+1)-1}},{key:"readEG",value:function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}},{key:"readBool",value:function(){return 1===this.readBits(1)}},{key:"readUByte",value:function(){return this.readBits(8)}},{key:"skipScalingList",value:function(e){for(var t=8,r=8,n=0;n<e;n++)0!==r&&(r=(t+this.readEG()+256)%256),t=0===r?t:r}}]),e}(),GI=function(){function e(){GU(this,e)}return HU(e,null,[{key:"parseAVCDecoderConfigurationRecord",value:function(t){if(!(t.length<7)){for(var r,n,i=1+(3&t[4]),a=[],o=[],s=6,u=31&t[5],c=0;c<u;c++)if(n=t[s]<<8|t[s+1],s+=2,n){var l=t.subarray(s,s+n);s+=n,a.push(l),r||(r=e.parseSPS(VI.removeEPB(l)))}var f,h=t[s];s++;for(var d=0;d<h;d++)f=t[s]<<8|t[s+1],s+=2,f&&(o.push(t.subarray(s,s+f)),s+=f);return{sps:r,spsArr:a,ppsArr:o,nalUnitSize:i}}}},{key:"parseSPS",value:function(e){var t=new zI(e);t.readUByte();var r=t.readUByte(),n=t.readUByte(),i=t.readUByte();t.skipUEG();var a=420;if(100===r||110===r||122===r||244===r||44===r||83===r||86===r||118===r||128===r||138===r||144===r){var o=t.readUEG();if(o<=3&&(a=[0,420,422,444][o]),3===o&&t.skipBits(1),t.skipUEG(),t.skipUEG(),t.skipBits(1),t.readBool())for(var s=3!==o?8:12,u=0;u<s;u++)t.readBool()&&(u<6?t.skipScalingList(16):t.skipScalingList(64))}t.skipUEG();var c=t.readUEG();if(0===c)t.readUEG();else if(1===c){t.skipBits(1),t.skipUEG(),t.skipUEG();for(var l=t.readUEG(),f=0;f<l;f++)t.skipUEG()}t.skipUEG(),t.skipBits(1);var h=t.readUEG(),d=t.readUEG(),p=t.readBits(1);0===p&&t.skipBits(1),t.skipBits(1);var v,y,g,m,_,b=0,w=0,k=0,x=0;if(t.readBool()&&(b=t.readUEG(),w=t.readUEG(),k=t.readUEG(),x=t.readUEG()),t.readBool()){if(t.readBool())switch(t.readUByte()){case 1:v=[1,1];break;case 2:v=[12,11];break;case 3:v=[10,11];break;case 4:v=[16,11];break;case 5:v=[40,33];break;case 6:v=[24,11];break;case 7:v=[20,11];break;case 8:v=[32,11];break;case 9:v=[80,33];break;case 10:v=[18,11];break;case 11:v=[15,11];break;case 12:v=[64,33];break;case 13:v=[160,99];break;case 14:v=[4,3];break;case 15:v=[3,2];break;case 16:v=[2,1];break;case 255:v=[t.readUByte()<<8|t.readUByte(),t.readUByte()<<8|t.readUByte()]}if(t.readBool()&&t.readBool(),t.readBool()&&(t.readBits(4),t.readBool()&&t.readBits(24)),t.readBool()&&(t.readUEG(),t.readUEG()),t.readBool()){var S=t.readBits(32),E=t.readBits(32);y=t.readBool(),_=(g=E)/(m=2*S)}}return{codec:FI(e.subarray(1,4)),profileIdc:r,profileCompatibility:n,levelIdc:i,chromaFormat:a,width:Math.ceil(16*(h+1)-2*(b+w)),height:(2-p)*(d+1)*16-(p?2:4)*(k+x),sarRatio:v,fpsNum:g,fpsDen:m,fps:_,fixedFrame:y}}}]),e}(),qI=function(){function e(){GU(this,e)}return HU(e,null,[{key:"parseHEVCDecoderConfigurationRecord",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(t.length<23)){r=r||{};for(var n,i,a,o,s,u=1+(3&t[21]),c=[],l=[],f=[],h=23,d=t[22],p=0;p<d;p++){a=63&t[h],o=t[h+1]<<8|t[h+2],h+=3;for(var v=0;v<o;v++)if(s=t[h]<<8|t[h+1],h+=2,s){switch(a){case 32:var y=t.subarray(h,h+s);n||(n=e.parseVPS(VI.removeEPB(y),r)),f.push(y);break;case 33:var g=t.subarray(h,h+s);i||(i=e.parseSPS(VI.removeEPB(g),r)),c.push(g);break;case 34:l.push(t.subarray(h,h+s))}h+=s}}return{hvcC:r,sps:i,spsArr:c,ppsArr:l,vpsArr:f,nalUnitSize:u}}}},{key:"parseVPS",value:function(t,r){r=r||{};var n=new zI(t);n.readUByte(),n.readUByte(),n.readBits(12);var i=n.readBits(3);return r.numTemporalLayers=Math.max(r.numTemporalLayers||0,i+1),n.readBits(17),e._parseProfileTierLevel(n,i,r),r}},{key:"parseSPS",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r=r||{};var n=new zI(t);n.readUByte(),n.readUByte(),n.readBits(4);var i=n.readBits(3);r.numTemporalLayers=Math.max(i+1,r.numTemporalLayers||0),r.temporalIdNested=n.readBits(1),e._parseProfileTierLevel(n,i,r),n.readUEG();var a=r.chromaFormatIdc=n.readUEG(),o=420;a<=3&&(o=[0,420,422,444][a]);var s=0;3===a&&(s=n.readBits(1));var u,c,l,f,h=n.readUEG(),d=n.readUEG(),p=n.readBits(1);(1===p&&(u=n.readUEG(),c=n.readUEG(),l=n.readUEG(),f=n.readUEG()),r.bitDepthLumaMinus8=n.readUEG(),r.bitDepthChromaMinus8=n.readUEG(),1===p)&&(h-=(1!==a&&2!==a||0!==s?1:2)*(c+u),d-=(1===a&&0===s?2:1)*(f+l));return{codec:"hev1.1.6.L93.B0",width:h,height:d,chromaFormat:o,hvcC:r}}},{key:"_parseProfileTierLevel",value:function(e,t,r){var n=r.generalTierFlag||0;r.generalProfileSpace=e.readBits(2),r.generalTierFlag=Math.max(e.readBits(1),n),r.generalProfileIdc=Math.max(e.readBits(5),r.generalProfileIdc||0),r.generalProfileCompatibilityFlags=e.readBits(32),r.generalConstraintIndicatorFlags=[e.readBits(8),e.readBits(8),e.readBits(8),e.readBits(8),e.readBits(8),e.readBits(8)];var i=e.readBits(8);n<r.generalTierFlag?r.generalLevelIdc=i:r.generalLevelIdc=Math.max(i,r.generalLevelIdc||0);for(var a=[],o=[],s=0;s<t;s++)a[s]=e.readBits(1),o[s]=e.readBits(1);t>0&&e.readBits(2*(8-t));for(var u=0;u<t;u++)0!==a[u]&&(e.readBits(2),e.readBits(1),e.readBits(5),e.readBits(16),e.readBits(16),e.readBits(4),e.readBits(16),e.readBits(16),e.readBits(12)),0!==o[u]&&e.readBits(8)}}]),e}(),HI=function(){function e(){GU(this,e)}return HU(e,null,[{key:"decode",value:function(t){for(var r=[],n=t,i=0,a=t.length;i<a;)if(n[i]<128)r.push(String.fromCharCode(n[i])),++i;else{if(n[i]<192);else if(n[i]<224){if(e._checkContinuation(n,i,1)){var o=(31&n[i])<<6|63&n[i+1];if(o>=128){r.push(String.fromCharCode(65535&o)),i+=2;continue}}}else if(n[i]<240){if(e._checkContinuation(n,i,2)){var s=(15&n[i])<<12|(63&n[i+1])<<6|63&n[i+2];if(s>=2048&&55296!=(63488&s)){r.push(String.fromCharCode(65535&s)),i+=3;continue}}}else if(n[i]<248&&e._checkContinuation(n,i,3)){var u=(7&n[i])<<18|(63&n[i+1])<<12|(63&n[i+2])<<6|63&n[i+3];if(u>65536&&u<1114112){u-=65536,r.push(String.fromCharCode(u>>>10|55296)),r.push(String.fromCharCode(1023&u|56320)),i+=4;continue}}r.push(String.fromCharCode(65533)),++i}return r.join("")}},{key:"_checkContinuation",value:function(e,t,r){var n=e;if(t+r<n.length){for(;r--;)if(128!=(192&n[++t]))return!1;return!0}return!1}}]),e}(),WI=function(){function e(){GU(this,e)}return HU(e,null,[{key:"parse",value:function(t){if(!(t.length<3)){var r={},n=e._parseValue(new DataView(t.buffer,t.byteOffset,t.byteLength)),i=e._parseValue(new DataView(t.buffer,t.byteOffset+n.size,t.byteLength-n.size));return r[n.data]=i.data,r}}},{key:"_parseValue",value:function(t){var r,n=t.byteLength,i=1,a=!1;switch(t.getUint8(0)){case 0:r=t.getFloat64(1),i+=8;break;case 1:r=!!t.getUint8(1),i+=1;break;case 2:var o=e._parseString(new DataView(t.buffer,t.byteOffset+i,t.byteLength-i));r=o.data,i+=o.size;break;case 3:r={};var s=0;for(9==(16777215&t.getUint32(n-4))&&(s=3);i<n-4;){var u=e._parseObject(new DataView(t.buffer,t.byteOffset+i,t.byteLength-i-s)),c=u.size,l=u.data;if(u.isEnd)break;r[l.name]=l.value,i+=c}if(i<=n-3)9===(16777215&t.getUint32(i-1))&&(i+=3);break;case 8:r={},i+=4;var f=0;for(9==(16777215&t.getUint32(n-4))&&(f=3);i<n-8;){var h=e._parseObject(new DataView(t.buffer,t.byteOffset+i,t.byteLength-i-f)),d=h.size,p=h.data;if(h.isEnd)break;r[p.name]=p.value,i+=d}if(i<=n-3)9===(16777215&t.getUint32(i-1))&&(i+=3);break;case 9:r=void 0,i=1,a=!0;break;case 10:r=[];var v=t.getUint32(1);i+=4;for(var y=0;y<v;y++){var g=e._parseValue(new DataView(t.buffer,t.byteOffset+i,t.byteLength-i)),m=g.data,_=g.size;r.push(m),i+=_}break;case 11:var b=t.getFloat64(i)+6e4*t.getInt16(i+8);r=new Date(b),i+=10;break;case 12:var w=t.getUint32(1);i+=4,r="",w>0&&(r=HI.decode(new Uint8Array(t.buffer,t.byteOffset+i,w))),i+=w;break;default:i=n}return{data:r,size:i,isEnd:a}}},{key:"_parseString",value:function(e){var t=e.getUint16(0),r="";return t>0&&(r=HI.decode(new Uint8Array(e.buffer,e.byteOffset+2,t))),{data:r,size:2+t}}},{key:"_parseObject",value:function(t){if(!(t.byteLength<3)){var r=e._parseString(t),n=e._parseValue(new DataView(t.buffer,t.byteOffset+r.size,t.byteLength-r.size));return{data:{name:r.data,value:n.data},size:r.size+n.size,isEnd:n.isEnd}}}}]),e}(),KI=new AI("FlvDemuxer"),YI=function(){function e(t,r,n){GU(this,e),WU(this,"_headerParsed",!1),WU(this,"_remainingData",null),WU(this,"_gopId",0),WU(this,"_needAddMetaBeforeKeyFrameNal",!0),this.videoTrack=t||new gI,this.audioTrack=r||new mI,this.metadataTrack=n||new SI,this._fixer=new MI(this.videoTrack,this.audioTrack,this.metadataTrack)}return HU(e,[{key:"demux",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.audioTrack,a=this.videoTrack,o=this.metadataTrack;if(!r&&n||(this._remainingData=null),r&&(this._headerParsed=!1),r?(a.reset(),i.reset(),o.reset()):(a.samples=[],i.samples=[],o.seiSamples=[],o.flvScriptSamples=[],a.warnings=[],i.warnings=[],this._remainingData&&(t=BI(this._remainingData,t),this._remainingData=null)),!t.length)return{videoTrack:a,audioTrack:i,metadataTrack:o};var s=0;if(!this._headerParsed){if(!e.probe(t))throw new Error("Invalid flv file");i.present=(4&t[4])>>>2!=0,a.present=0!=(1&t[4]),this._headerParsed=!0,s=jI(t,5)+4}for(var u,c,l,f,h,d=t.length;s+15<d&&(u=t[s],!(s+15+(c=t[s+1]<<16|t[s+2]<<8|t[s+3])>d));){var p;l=(t[s+7]<<24>>>0)+(t[s+4]<<16)+(t[s+5]<<8)+t[s+6],s+=11,f=t.subarray(s,s+c),8===u?this._parseAudio(f,l):9===u?this._parseVideo(f,l):18===u?this._parseScript(f,l):KI.warn("Invalid tag type: ".concat(u)),(h=jI(t,s+=c))!==11+c&&KI.warn(Xn(p="Invalid PrevTagSize ".concat(h," (")).call(p,11+c,")")),s+=4}return s<d&&(this._remainingData=t.subarray(s)),i.formatTimescale=a.formatTimescale=a.timescale=o.timescale=1e3,i.timescale=i.sampleRate||0,!i.exist()&&i.hasSample()&&i.reset(),!a.exist()&&a.hasSample()&&a.reset(),{videoTrack:a,audioTrack:i,metadataTrack:o}}},{key:"fix",value:function(e,t,r){return this._fixer.fix(e,t,r),{videoTrack:this.videoTrack,audioTrack:this.audioTrack,metadataTrack:this.metadataTrack}}},{key:"demuxAndFix",value:function(e,t,r,n){return this.demux(e,t,r),this.fix(n,t,r)}},{key:"_parseAudio",value:function(t,r){if(t.length){var n=(240&t[0])>>>4,i=this.audioTrack;if(10!==n&&7!==n&&8!==n)return KI.warn("Unsupported sound format: ".concat(n)),void i.reset();if(10!==n){var a=(12&t[0])>>2,o=(2&t[0])>>1,s=1&t[0];i.sampleRate=e.AUDIO_RATE[a],i.sampleSize=o?16:8,i.channelCount=s+1}10===n?this._parseAac(t,r):this._parseG711(t,r,n)}}},{key:"_parseG711",value:function(e,t,r){var n=this.audioTrack;n.codecType=7===r?cI:lI,n.sampleRate=8e3,n.codec=n.codecType,n.samples.push(new bI(t,e.subarray(1)))}},{key:"_parseAac",value:function(e,t){var r=this.audioTrack;if(r.codecType=uI,0===e[1]){var n=RI.parseAudioSpecificConfig(e.subarray(2));n?(r.codec=n.codec,r.channelCount=n.channelCount,r.sampleRate=n.sampleRate,r.config=n.config,r.objectType=n.objectType,r.sampleRateIndex=n.samplingFrequencyIndex):(r.reset(),KI.warn("Cannot parse AudioSpecificConfig",e))}else if(1===e[1]){if(null==t)return;r.samples.push(new bI(t,e.subarray(2)))}else KI.warn("Unknown AACPacketType: ".concat(e[1]))}},{key:"_parseVideo",value:function(e,t){var r=this;if(!(e.length<6)){var n=(240&e[0])>>>4,i=15&e[0],a=this.videoTrack;if(7!==i&&12!==i)return a.reset(),void KI.warn("Unsupported codecId: ".concat(i));var o=12===i;a.codecType=o?sI:oI;var s=e[1],u=(e[2]<<16|e[3]<<8|e[4])<<8>>8;if(0===s){var c=e.subarray(5),l=o?qI.parseHEVCDecoderConfigurationRecord(c):GI.parseAVCDecoderConfigurationRecord(c);if(l){var f=l.hvcC,h=l.sps,d=l.ppsArr,p=l.spsArr,v=l.vpsArr,y=l.nalUnitSize;f&&(a.hvcC=a.hvcC||f),h&&(a.codec=h.codec,a.width=h.width,a.height=h.height,a.sarRatio=h.sarRatio,a.fpsNum=h.fpsNum,a.fpsDen=h.fpsDen),p.length&&(a.sps=p),d.length&&(a.pps=d),v&&v.length&&(a.vps=v),y&&(a.nalUnitSize=y)}else KI.warn("Cannot parse ".concat(o?"HEVC":"AVC","DecoderConfigurationRecord"),e)}else if(1===s){var g=VI.parseAvcC(e.subarray(5),a.nalUnitSize);if((g=this._checkAddMetaNalToUnits(o,g,a))&&g.length){var m=new _I(t+u,t,g);1===n&&m.setToKeyframe(),a.samples.push(m),sf(g).call(g,(function(e){var n=o?e[0]>>>1&63:31&e[0];switch(n){case 5:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:if(!o&&5!==n||o&&5===n)break;m.setToKeyframe();break;case 6:case 39:case 40:if(!o&&6!==n||o&&6===n)break;r.metadataTrack.seiSamples.push(new xI(VI.parseSEI(VI.removeEPB(e),o),t+u))}})),m.keyframe&&this._gopId++,m.gopId=this._gopId}else KI.warn("Cannot parse NALUs",e)}else 2===s||KI.warn("Unknown AVCPacketType: ".concat(s))}}},{key:"_checkAddMetaNalToUnits",value:function(e,t,r){if(!e||!this._needAddMetaBeforeKeyFrameNal)return this._needAddMetaBeforeKeyFrameNal=!1,t;var n=P_(t).call(t,(function(e){return e[0]>>>1&63}));return rA(n).call(n,32)?(this._needAddMetaBeforeKeyFrameNal=!1,t):(t.unshift(r.pps[0]),t.unshift(r.sps[0]),t.unshift(r.vps[0]),Fl(t).call(t,Boolean))}},{key:"_parseScript",value:function(e,t){this.metadataTrack.flvScriptSamples.push(new kI(WI.parse(e),t))}}],[{key:"probe",value:function(e){return 70===e[0]&&76===e[1]&&86===e[2]&&1===e[3]&&jI(e,5)>=9}}]),e}();WU(YI,"AUDIO_RATE",[5500,11e3,22e3,44e3]);var JI=rr,QI=R,XI=$e,$I=l,ZI=function(){var e=JI(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},eM=RegExp.prototype,tM=l,rM=function(e){var t=e.flags;return void 0!==t||"flags"in eM||XI(e,"flags")||!$I(eM,e)?t:QI(ZI,e)},nM=RegExp.prototype,iM=r((function(e){return e===nM||tM(nM,e)?rM(e):e.flags})),aM=Wn("Array").entries,oM=en,sM=$e,uM=l,cM=aM,lM=Array.prototype,fM={DOMTokenList:!0,NodeList:!0},hM=r((function(e){var t=e.entries;return e===lM||uM(lM,e)&&t===lM.entries||sM(fM,oM(e))?cM:t}));var dM,pM=function(){function e(){GU(this,e),this.buffer=new Uint8Array(0)}return HU(e,[{key:"write",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];sf(r).call(r,(function(t){t?e.buffer=function(e){for(var t=0,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];sf(n).call(n,(function(e){t+=e.length}));var a=new e(t),o=0;return sf(n).call(n,(function(e){a.set(e,o),o+=e.length})),a}(Uint8Array,e.buffer,t):window.console.warn(t)}))}}],[{key:"writeUint16",value:function(e){return new Uint8Array([e>>8&255,255&e])}},{key:"writeUint32",value:function(e){return new Uint8Array([e>>24,e>>16&255,e>>8&255,255&e])}}]),e}(),vM=Math.pow(2,32)-1,yM=function(){function e(){GU(this,e)}return HU(e,null,[{key:"box",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];r=Fl(r).call(r,Boolean);var i=8+EC(r).call(r,(function(e,t){return e+t.byteLength}),0),a=new Uint8Array(i);a[0]=i>>24&255,a[1]=i>>16&255,a[2]=i>>8&255,a[3]=255&i,a.set(e,4);var o=8;return sf(r).call(r,(function(e){a.set(e,o),o+=e.byteLength})),a}},{key:"ftyp",value:function(t){return Dm(t).call(t,(function(e){return e.type===nI&&e.codecType===sI}))?e.FTYPHEV1:e.FTYPAVC1}},{key:"initSegment",value:function(t){return BI(e.ftyp(t),e.moov(t))}},{key:"pssh",value:function(t){var r,n=new Uint8Array(Xn(r=[1,0,0,0]).call(r,[16,119,239,236,192,178,77,2,172,227,60,30,82,226,251,75],[0,0,0,1],NI(t.kid),[0,0,0,0]));return e.box(e.types.pssh,n)}},{key:"moov",value:function(t){if(t[0].useEME&&(t[0].encv||t[0].enca)){var r;t[0].pssh||(t[0].pssh={kid:t[0].kid});var n=this.pssh(t[0].pssh);return e.box.apply(e,Xn(r=[e.types.moov,e.mvhd(t[0].mvhdDurtion||t[0].duration,t[0].mvhdTimecale||t[0].timescale),e.mvex(t)]).call(r,ZU(P_(t).call(t,(function(t){return e.trak(t)}))),[n]))}var i;return e.box.apply(e,Xn(i=[e.types.moov,e.mvhd(t[0].mvhdDurtion||t[0].duration,t[0].mvhdTimecale||t[0].timescale)]).call(i,ZU(P_(t).call(t,(function(t){return e.trak(t)}))),[e.mvex(t)]))}},{key:"mvhd",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4;return e.box(e.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,r>>24&255,r>>16&255,r>>8&255,255&r,t>>24&255,t>>16&255,t>>8&255,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(t){return e.box(e.types.trak,e.tkhd(t.id,t.tkhdDuration||0,t.width,t.height),e.mdia(t))}},{key:"tkhd",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return e.box(e.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,t>>24&255,t>>16&255,t>>8&255,255&t,0,0,0,0,r>>24&255,r>>16&255,r>>8&255,255&r,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,n>>8&255,255&n,0,0,i>>8&255,255&i,0,0]))}},{key:"mdia",value:function(t){return e.box(e.types.mdia,e.mdhd(t.duration,t.timescale),e.hdlr(t.type),e.minf(t))}},{key:"mdhd",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4;return e.box(e.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,r>>24&255,r>>16&255,r>>8&255,255&r,t>>24&255,t>>16&255,t>>8&255,255&t,85,196,0,0]))}},{key:"hdlr",value:function(t){return e.box(e.types.hdlr,e.HDLR_TYPES[t])}},{key:"minf",value:function(t){return e.box(e.types.minf,t.type===nI?e.VMHD:e.SMHD,e.DINF,e.stbl(t))}},{key:"stbl",value:function(t){var r=[];return t&&t.ext&&t.ext.stss&&r.push(e.stss(hM(t.ext.stss))),e.box(e.types.stbl,e.stsd(t),e.STTS,r[0],e.STSC,e.STSZ,e.STCO)}},{key:"stsd",value:function(t){var r;return r="audio"===t.type?t.useEME&&t.enca?e.enca(t):e.mp4a(t):t.useEME&&t.encv?e.encv(t):e.avc1hev1(t),e.box(e.types.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),r)}},{key:"enca",value:function(t){var r=t.enca.channelCount,n=t.enca.sampleRate,i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,r,0,16,0,0,0,0,n>>8&255,255&n,0,0]),a=e.esds(t.config),o=e.sinf(t.enca);return e.box(e.types.enca,i,a,o)}},{key:"encv",value:function(t){var r,n,i,a=t.sps.length>0?t.sps[0]:[],o=t.pps.length>0?t.pps[0]:[],s=t.width,u=t.height,c=t.sarRatio[0],l=t.sarRatio[1],f=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,s>>8&255,255&s,u>>8&255,255&u,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),h=new Uint8Array(Xn(n=Xn(r=Xn(i=[1,a[1],a[2],a[3],255,225,a.length>>>8&255,255&a.length]).apply(i,ZU(a))).call(r,[1,o.length>>>8&255,255&o.length])).apply(n,ZU(o))),d=new Uint8Array([0,0,88,57,0,15,200,192,0,4,86,72]),p=e.sinf(t.encv),v=new Uint8Array([c>>24,c>>16&255,c>>8&255,255&c,l>>24,l>>16&255,l>>8&255,255&l]);return e.box(e.types.encv,f,e.box(e.types.avcC,h),e.box(e.types.btrt,d),p,e.box(e.types.pasp,v))}},{key:"schi",value:function(t){var r=new Uint8Array([]),n=e.tenc(t);return e.box(e.types.schi,r,n)}},{key:"tenc",value:function(t){var r,n=new Uint8Array(Xn(r=[0,0,0,0,0,0,255&t.default_IsEncrypted,255&t.default_IV_size]).call(r,NI(t.default_KID)));return e.box(e.types.tenc,n)}},{key:"sinf",value:function(t){var r=new Uint8Array([]),n=new Uint8Array([t.data_format.charCodeAt(0),t.data_format.charCodeAt(1),t.data_format.charCodeAt(2),t.data_format.charCodeAt(3)]),i=new Uint8Array([0,0,0,0,99,101,110,99,0,1,0,0]),a=e.schi(t);return e.box(e.types.sinf,r,e.box(e.types.frma,n),e.box(e.types.schm,i),a)}},{key:"avc1hev1",value:function(t){var r,n=t.codecType===sI,i=n?e.types.hvc1:e.types.avc1,a=n?e.hvcC(t):e.avcC(t),o=[new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,t.width>>8&255,255&t.width,t.height>>8&255,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),a];return n?o.push(e.box(e.types.fiel,new Uint8Array([1,0]))):t.sarRatio&&t.sarRatio.length>1&&o.push(e.pasp(t.sarRatio)),e.box.apply(e,Xn(r=[i]).call(r,o))}},{key:"avcC",value:function(t){var r,n,i,a,o,s,u=[],c=[];return sf(r=t.sps).call(r,(function(e){s=e.byteLength,u.push(s>>>8&255),u.push(255&s),u.push.apply(u,ZU(e))})),sf(n=t.pps).call(n,(function(e){s=e.byteLength,c.push(s>>>8&255),c.push(255&s),c.push.apply(c,ZU(e))})),e.box(e.types.avcC,new Uint8Array(Xn(a=Xn(i=Xn(o=[1,u[3],u[4],u[5],255,224|t.sps.length]).apply(o,u)).call(i,[t.pps.length])).apply(a,c)))}},{key:"hvcC",value:function(t){var r=t.hvcC;if(r instanceof ArrayBuffer||r instanceof Uint8Array)return r;var n,i=t.vps,a=t.sps,o=t.pps;if(r){var s=r.generalProfileCompatibilityFlags,u=r.generalConstraintIndicatorFlags,c=(i.length&&1)+(a.length&&1)+(o.length&&1);n=[1,r.generalProfileSpace<<6|r.generalTierFlag<<5|r.generalProfileIdc,s>>>24,s>>>16,s>>>8,s,u[0],u[1],u[2],u[3],u[4],u[5],r.generalLevelIdc,240,0,252,252|r.chromaFormatIdc,248|r.bitDepthLumaMinus8,248|r.bitDepthChromaMinus8,0,0,r.numTemporalLayers<<3|r.temporalIdNested<<2|3,c];var l=function(e){var t;n.push(e.length>>8,e.length),(t=n).push.apply(t,ZU(e))};i.length&&(n.push(160,0,i.length),sf(i).call(i,l)),a.length&&(n.push(161,0,a.length),sf(a).call(a,l)),o.length&&(n.push(162,0,o.length),sf(o).call(o,l))}else n=[1,1,96,0,0,0,144,0,0,0,0,0,93,240,0,252,253,248,248,0,0,15,3,160,0,1,0,24,64,1,12,1,255,255,1,96,0,0,3,0,144,0,0,3,0,0,3,0,93,153,152,9,161,0,1,0,45,66,1,1,1,96,0,0,3,0,144,0,0,3,0,0,3,0,93,160,2,128,128,45,22,89,153,164,147,43,154,128,128,128,130,0,0,3,0,2,0,0,3,0,50,16,162,0,1,0,7,68,1,193,114,180,98,64];return e.box(e.types.hvcC,new Uint8Array(n))}},{key:"pasp",value:function(t){var r=$U(t,2),n=r[0],i=r[1];return e.box(e.types.pasp,new Uint8Array([n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i]))}},{key:"mp4a",value:function(t){return e.box(e.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,t.sampleRate>>8&255,255&t.sampleRate,0,0]),t.config.length?e.esds(t.config):void 0)}},{key:"esds",value:function(t){var r,n,i,a=t.length;return e.box(e.types.esds,new Uint8Array(Xn(r=Xn(n=Xn(i=[0,0,0,0,3,23+a,0,0,0,4,15+a,64,21,0,6,0,0,0,218,192,0,0,218,192,5]).call(i,[a])).call(n,t)).call(r,[6,1,2])))}},{key:"mvex",value:function(t){var r;return e.box.apply(e,Xn(r=[e.types.mvex]).call(r,ZU(P_(t).call(t,(function(t){return e.trex(t.id)})))))}},{key:"trex",value:function(t){return e.box(e.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}},{key:"trex1",value:function(t){return e.box(e.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,2,0,0,0,0,0,0,1,0,0]))}},{key:"trex2",value:function(t){return e.box(e.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,4,0,0,0,0,0,2,0,0,0]))}},{key:"moof",value:function(t){var r;return e.box.apply(e,Xn(r=[e.types.moof,e.mfhd(t[0].samples?t[0].samples[0].gopId:0)]).call(r,ZU(P_(t).call(t,(function(t){return e.traf(t)})))))}},{key:"mfhd",value:function(t){return e.box(e.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))}},{key:"traf",value:function(t){var r,n=e.tfhd(t.id),i=e.tfdt(t,t.baseMediaDecodeTime),a=0;if(t.isVideo&&t.videoSenc&&(r=t.videoSenc,sf(r).call(r,(function(e){a+=8,e.subsamples&&e.subsamples.length&&(a+=2,a+=6*e.subsamples.length)}))),t.videoSencLength=a,t.useEME&&(t.isVideoEncryption||t.isAudioEncryption)){if(t.isVideoEncryption){if(t.isVideo){var o=e.saiz(t),s=e.saio(t),u=e.trun1(t),c=e.senc(t);return e.box(e.types.traf,n,i,o,s,u,c)}if(t.isAudioEncryption){var l=e.sbgp(),f=e.saiz(t),h=e.saio(t),d=e.senc(t),p=e.trun1(t);return e.box(e.types.traf,n,i,l,f,h,d,p)}var v=e.sbgp(),y=e.trun1(t);return e.box(e.types.traf,n,i,v,y)}if(t.isVideo){var g=e.trun1(t);return e.box(e.types.traf,n,i,g)}var m=e.sbgp(),_=e.saiz(t),b=e.saio(t),w=e.senc(t),k=e.trun1(t);return e.box(e.types.traf,n,i,m,_,b,w,k)}var x=e.sdtp(t);return e.box(e.types.traf,n,i,x,e.trun(t.samples,x.byteLength+76))}},{key:"sdtp",value:function(t){var r,n=new pM;return sf(r=t.samples).call(r,(function(e){n.write(new Uint8Array(t.isVideo?[e.keyframe?32:16]:[16]))})),e.box(e.types.sdtp,this.extension(0,0),n.buffer)}},{key:"trun1",value:function(t){var r,n=new pM,i=pM.writeUint32(t.samples.length),a=null;if(t.isVideo){var o=t.videoSencLength;a=pM.writeUint32(16*t.samples.length+o+149),!t.isVideoEncryption&&t.isAudioEncryption&&(a=pM.writeUint32(16*t.samples.length+92))}else{var s=12*t.samples.length+124;t.isAudioEncryption&&(s=12*t.samples.length+8*t.audioSenc.length+177),a=pM.writeUint32(s)}return sf(r=t.samples).call(r,(function(e){n.write(pM.writeUint32(e.duration)),n.write(pM.writeUint32(e.size)),n.write(pM.writeUint32(e.keyframe?33554432:65536)),t.isVideo&&n.write(pM.writeUint32(e.cts?e.cts:0))})),e.box(e.types.trun,this.extension(0,iM(t)),i,a,n.buffer)}},{key:"senc",value:function(t){var r=new pM,n=t.samples.length,i=t.isVideo?16:8,a=t.isVideo?2:0,o=[],s=0;return t.isVideo?(o=t.videoSenc,s=t.videoSencLength):o=t.audioSenc,s=s||i*n,r.write(pM.writeUint32(16+s),e.types.senc,this.extension(0,a)),r.write(pM.writeUint32(n)),sf(o).call(o,(function(e){for(var t=0;t<e.InitializationVector.length;t++)r.write(new Uint8Array([e.InitializationVector[t]]));var n;e.subsamples&&e.subsamples.length&&(r.write(pM.writeUint16(e.subsamples.length)),sf(n=e.subsamples).call(n,(function(e){r.write(pM.writeUint16(e.BytesOfClearData)),r.write(pM.writeUint32(e.BytesOfProtectedData))})))})),r.buffer}},{key:"saio",value:function(t){var r=12*t.samples.length+141;!t.isVideo&&t.isAudioEncryption&&(r=149);var n=new Uint8Array([1,0,0,0,0,0,0,1,0,0,0,0,r>>24&255,r>>16&255,r>>8&255,255&r]);return e.box(e.types.saio,n)}},{key:"saiz",value:function(t){var r=t.samples.length,n=new Uint8Array([0,0,0,0,16,r>>24&255,r>>16&255,r>>8&255,255&r]);return e.box(e.types.saiz,n)}},{key:"sbgp",value:function(){var t=new Uint8Array([114,111,108,108,0,0,0,1,0,0,1,25,0,0,0,1]);return e.box(e.types.sbgp,this.extension(0,0),t)}},{key:"extension",value:function(e,t){return new Uint8Array([e,t>>16&255,t>>8&255,255&t])}},{key:"tfhd",value:function(t){return e.box(e.types.tfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))}},{key:"tfdt",value:function(t,r){var n=Math.floor(r/(vM+1)),i=Math.floor(r%(vM+1));return t.useEME&&(t.isVideoEncryption||t.isAudioEncryption)?e.box(e.types.tfdt,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])):e.box(e.types.tfdt,new Uint8Array([1,0,0,0,n>>24,n>>16&255,n>>8&255,255&n,i>>24,i>>16&255,i>>8&255,255&i]))}},{key:"trun",value:function(t,r){var n=t.length,i=12+16*n;r+=8+i;var a=new Uint8Array(i);a.set([0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r],0);for(var o=0;o<n;o++){var s=t[o],u=s.duration,c=s.size,l=s.flag,f=void 0===l?{}:l,h=s.cts,d=void 0===h?0:h;a.set([u>>>24&255,u>>>16&255,u>>>8&255,255&u,c>>>24&255,c>>>16&255,c>>>8&255,255&c,f.isLeading<<2|(null===f.dependsOn||void 0===f.dependsOn?1:f.dependsOn),f.isDependedOn<<6|f.hasRedundancy<<4|f.paddingValue<<1|(null===f.isNonSyncSample||void 0===f.isNonSyncSample?1:f.isNonSyncSample),61440&f.degradationPriority,15&f.degradationPriority,d>>>24&255,d>>>16&255,d>>>8&255,255&d],12+16*o)}return e.box(e.types.trun,a)}},{key:"moovMP4",value:function(t){var r;return e.box.apply(e,Xn(r=[e.types.moov,e.mvhd(t[0].duration,t[0].timescale)]).call(r,ZU(P_(t).call(t,(function(t){return e.trackMP4(t)})))))}},{key:"trackMP4",value:function(t){return e.box(e.types.trak,e.tkhd(t.id,t.duration,t.width,t.height),e.mdiaMP4(t))}},{key:"mdiaMP4",value:function(t){return e.box(e.types.mdia,e.mdhd(t.duration,t.timescale),e.hdlr(t.type),e.minfMP4(t))}},{key:"minfMP4",value:function(t){return e.box(e.types.minf,t.type===nI?e.VMHD:e.SMHD,e.DINF,e.stblMP4(t))}},{key:"stblMP4",value:function(t){var r,n=t.ext,i=[e.stsd(t),e.stts(n.stts),e.stsc(n.stsc),e.stsz(n.stsz),e.stco(n.stco)];return n.stss.length&&i.push(e.stss(n.stss)),n.ctts.length&&i.push(e.ctts(n.ctts)),e.box.apply(e,Xn(r=[e.types.stbl]).call(r,i))}},{key:"stts",value:function(t){var r=t.length,n=new Uint8Array(8*r),i=0;return sf(t).call(t,(function(e){var t=e.value,r=e.count;n.set([r>>24,r>>16&255,r>>8&255,255&r,t>>24,t>>16&255,t>>8&255,255&t],i),i+=8})),e.box(e.types.stts,BI(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"stsc",value:function(t){var r=t.length,n=new Uint8Array(12*r),i=0;return sf(t).call(t,(function(e){var t=e.firstChunk,r=e.samplesPerChunk,a=e.sampleDescIndex;n.set([t>>24,t>>16&255,t>>8&255,255&t,r>>24,r>>16&255,r>>8&255,255&r,a>>24,a>>16&255,a>>8&255,255&a],i),i+=12})),e.box(e.types.stsc,BI(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"stsz",value:function(t){var r=t.length,n=new Uint8Array(4*r),i=0;return sf(t).call(t,(function(e){n.set([e>>24,e>>16&255,e>>8&255,255&e],i),i+=4})),e.box(e.types.stsz,BI(new Uint8Array([0,0,0,0,0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"stco",value:function(t){var r=t.length,n=new Uint8Array(4*r),i=0;return sf(t).call(t,(function(e){n.set([e>>24,e>>16&255,e>>8&255,255&e],i),i+=4})),e.box(e.types.stco,BI(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"stss",value:function(t){var r=t.length,n=new Uint8Array(4*r),i=0;return sf(t).call(t,(function(e){n.set([e>>24,e>>16&255,e>>8&255,255&e],i),i+=4})),e.box(e.types.stss,BI(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"ctts",value:function(t){var r=t.length,n=new Uint8Array(8*r),i=0;return sf(t).call(t,(function(e){var t=e.value,r=e.count;n.set([r>>24,r>>16&255,r>>8&255,255&r,t>>24,t>>16&255,t>>8&255,255&t],i),i+=8})),e.box(e.types.ctts,BI(new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r]),n))}},{key:"styp",value:function(){return e.box(e.types.styp,new Uint8Array([109,115,100,104,0,0,0,0,109,115,100,104,109,115,105,120]))}},{key:"sidx",value:function(t){var r,n=t.timescale,i=t.samples[0].duration,a=i*t.samples.length,o=t.samples[0].sampleOffset*i,s=8;sf(r=t.samples).call(r,(function(e){s+=e.size}));var u=0;if(t.isVideo){var c,l=0;t.videoSenc&&(c=t.videoSenc),t.isVideo&&sf(c).call(c,(function(e){l+=8,e.subsamples&&e.subsamples.length&&(l+=2,l+=6*e.subsamples.length)})),t.videoSencLength=l,u=s+141+16*t.samples.length+l,t.useEME&&t.isAudioEncryption&&!t.isVideoEncryption&&(u=s+16*t.samples.length+84)}else u=s+116+12*t.samples.length,t.useEME&&t.isAudioEncryption&&(u=s+169+12*t.samples.length+8*t.audioSenc.length);var f=new Uint8Array([0,0,0,0,0,0,0,255&t.id,n>>24&255,n>>16&255,n>>8&255,255&n,o>>24&255,o>>16&255,o>>8&255,255&o,0,0,0,0,0,0,0,1,0,u>>16&255,u>>8&255,255&u,a>>24&255,a>>16&255,a>>8&255,255&a,144,0,0,0]);return e.box(e.types.sidx,f)}},{key:"mdat",value:function(t){return e.box(e.types.mdat,t)}}]),e}();WU(yM,"types",EC(dM=["avc1","avcC","hvc1","hvcC","dinf","dref","esds","ftyp","hdlr","mdat","mdhd","mdia","mfhd","minf","moof","moov","mp4a","mvex","mvhd","pasp","stbl","stco","stsc","stsd","stsz","stts","tfdt","tfhd","traf","trak","trex","tkhd","vmhd","smhd","ctts","stss","styp","pssh","sidx","sbgp","saiz","saio","senc","trun","encv","enca","sinf","btrt","frma","tenc","schm","schi","mehd","fiel","sdtp"]).call(dM,(function(e,t){return e[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)],e}),If(null))),WU(yM,"HDLR_TYPES",{video:new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),audio:new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0])}),WU(yM,"FTYPAVC1",yM.box(yM.types.ftyp,new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]))),WU(yM,"FTYPHEV1",yM.box(yM.types.ftyp,new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,104,101,118,49]))),WU(yM,"DINF",yM.box(yM.types.dinf,yM.box(yM.types.dref,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1])))),WU(yM,"VMHD",yM.box(yM.types.vmhd,new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]))),WU(yM,"SMHD",yM.box(yM.types.smhd,new Uint8Array([0,0,0,0,0,0,0,0]))),WU(yM,"StblTable",new Uint8Array([0,0,0,0,0,0,0,0])),WU(yM,"STTS",yM.box(yM.types.stts,yM.StblTable)),WU(yM,"STSC",yM.box(yM.types.stsc,yM.StblTable)),WU(yM,"STSZ",yM.box(yM.types.stsz,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]))),WU(yM,"STCO",yM.box(yM.types.stco,yM.StblTable));var gM=function(){function e(t,r){GU(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]"),e.disabled=r}return HU(e,[{key:"debug",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];(r=console).debug.apply(r,Xn(t=[this._prefix]).call(t,i))}}},{key:"log",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];(r=console).log.apply(r,Xn(t=[this._prefix]).call(t,i))}}},{key:"warn",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];(r=console).warn.apply(r,Xn(t=[this._prefix]).call(t,i))}}},{key:"error",value:function(){var t,r;if(!e.disabled){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];(r=console).error.apply(r,Xn(t=[this._prefix]).call(t,i))}}},{key:"table",value:function(){var t;e.disabled||(console.group(this._prefix),(t=console).table.apply(t,arguments),console.groupEnd())}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();WU(gM,"disabled",!0);var mM=function(){function e(t,r,n){GU(this,e),this.videoTrack=t,this.audioTrack=r;var i=/Chrome\/([^.]+)/.exec(navigator.userAgent);this.forceFirstIDR=i&&Number(i[1])<50,this.log=new gM("FMP4Remuxer",!n||!n.openLog||!n.openLog)}return HU(e,[{key:"remux",value:function(){var e,t,r,n,i,a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=this.videoTrack,u=this.audioTrack,c=s.exist(),l=u.exist(),f=[];return a&&(o&&o.initMerge?(c&&f.push(this.videoTrack),l&&f.push(this.audioTrack),r=yM.initSegment(f)):(c&&(e=yM.initSegment([this.videoTrack])),l&&(t=yM.initSegment([this.audioTrack])))),c&&s.hasSample()&&(n=this._remuxVideo()),l&&u.hasSample()&&(i=this._remuxAudio()),s.samples=[],u.samples=[],{initSegment:r,videoInitSegment:e,audioInitSegment:t,videoSegment:n,audioSegment:i}}},{key:"_remuxVideo",value:function(){var e=this.videoTrack;this.forceFirstIDR&&(e.samples[0].flag={dependsOn:2,isNonSyncSample:0});var t=e.samples,r=0;sf(t).call(t,(function(e){var t;r+=EC(t=e.units).call(t,(function(e,t){return e+t.byteLength}),0),r+=4*e.units.length}));for(var n,i=new Uint8Array(r),a=new DataView(i.buffer),o=function(e,r){var o;r=t[s];var u=0;sf(o=r.units).call(o,(function(t){a.setUint32(e,t.byteLength),e+=4,i.set(t,e),e+=t.byteLength,u+=4+t.byteLength})),r.size=u,c=e,n=r},s=0,u=t.length,c=0;s<u;s++)o(c,n);var l=yM.mdat(i);return BI(yM.moof([e]),l)}},{key:"_remuxAudio",value:function(){var e,t,r=this.audioTrack,n=new Uint8Array(EC(e=r.samples).call(e,(function(e,t){return e+t.size}),0));EC(t=r.samples).call(t,(function(e,t){return n.set(t.data,e),e+t.size}),0);var i=yM.mdat(n);return BI(yM.moof([r]),i)}},{key:"reset",value:function(){this.videoTrack.reset(),this.audioTrack.reset()}}]),e}(),_M=new KC("BufferService"),bM=function(){function e(t,r,n){nm(this,e),om(this,"flv",null),om(this,"_demuxer",new YI),om(this,"_remuxer",null),om(this,"_mse",null),om(this,"_softVideo",null),om(this,"_sourceCreated",!1),om(this,"_needInitSegment",!0),om(this,"_discontinuity",!0),om(this,"_contiguous",!1),om(this,"_initSegmentId",""),om(this,"_cachedBuffer",null),om(this,"_demuxStartTime",0),om(this,"_opts",null),this.flv=t,this._opts=n,r?this._softVideo=r:(this._remuxer=new mM(this._demuxer.videoTrack,this._demuxer.audioTrack),this._mse=new tD,this._mse.bindMedia(t.media))}var t,r,n,i,a,o;return am(e,[{key:"baseDts",get:function(){var e,t;return null===(e=this._demuxer)||void 0===e||null===(t=e._fixer)||void 0===t?void 0:t._baseDts}},{key:"isFull",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tD.VIDEO;return this._mse.isFull(e)}},{key:"seamlessSwitch",value:function(){this._needInitSegment=!0,this._discontinuity=!0,this._contiguous=!0,this._initSegmentId=""}},{key:"unContiguous",value:function(e){this._contiguous=!1,this._demuxStartTime=e}},{key:"reset",value:(o=rm(em().mark((function e(){var t,r=arguments;return em().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.length>0&&void 0!==r[0]&&r[0],!this._mse||t){e.next=6;break}return e.next=4,this._mse.unbindMedia();case 4:return e.next=6,this._mse.bindMedia(this.flv.media);case 6:this._needInitSegment=!0,this._discontinuity=!0,this._contiguous=!1,this._sourceCreated=!1,this._initSegmentId="";case 11:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"endOfStream",value:(a=rm(em().mark((function e(){return em().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mse){e.next=7;break}if(!this._sourceCreated){e.next=5;break}return e.next=4,this._mse.endOfStream();case 4:this.flv.emit(SD);case 5:e.next=8;break;case 7:this._softVideo&&this._softVideo.endOfStream();case 8:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"updateDuration",value:(i=rm(em().mark((function e(t){return em().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mse){e.next=7;break}if(this._mse.isOpened){e.next=4;break}return e.next=4,this._mse.open();case 4:return _M.debug("update duration",t),e.next=7,this._mse.updateDuration(t);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"destroy",value:(n=rm(em().mark((function e(){return em().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mse){e.next=3;break}return e.next=3,this._mse.unbindMedia();case 3:this._mse=null,this._softVideo=null,this._demuxer=null,this._remuxer=null;case 7:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"appendBuffer",value:(r=rm(em().mark((function e(t){var r,n,i,a,o,s,u,c,l,f,h,d,p,v;return em().wrap((function(e){for(var y,g,m,_;;)switch(e.prev=e.next){case 0:if(this._cachedBuffer&&(t=KD(this._cachedBuffer,t),this._cachedBuffer=null),r=this._demuxer,t&&t.length&&r){e.next=4;break}return e.abrupt("return");case 4:e.prev=4,r.demuxAndFix(t,this._discontinuity,this._contiguous,this._demuxStartTime),e.next=11;break;case 8:throw e.prev=8,e.t0=e.catch(4),new NC(PC,jC.FLV,e.t0);case 11:if(n=r.videoTrack,i=r.audioTrack,a=r.metadataTrack,o=n.exist(),s=i.exist(),this._opts.onlyAudio&&(o=!1,n.present=!1),this._opts.onlyVideo&&(s=!1,i.present=!1),!(!o&&n.present||!s&&i.present)){e.next=29;break}if(u=0,(c=o?n:s?i:void 0)&&c.samples.length&&(u=(c.samples[c.samples.length-1].originPts-c.samples[0].originPts)/c.timescale*1e3),!(u>this._opts.analyzeDuration)){e.next=27;break}_M.warn("analyze duration exceeded, ".concat(u,"ms"),c),n.present=o,i.present=s,this.flv.emit(kD,{duration:u}),e.next=29;break;case 27:return this._cachedBuffer=t,e.abrupt("return");case 29:if(l=n.type,f=i.type,this._fireEvents(n,i,a),this._discontinuity=!1,this._contiguous=!0,this._demuxStartTime=0,h=this._mse,this.flv.emit(RD,{videoTrack:n}),(d=Xn(y=Xn(g=Xn(m=Xn(_="".concat(n.codec,"/")).call(_,n.width,"/")).call(m,n.height,"/")).call(g,i.codec,"/")).call(y,i.config))!==this._initSegmentId&&(this._needInitSegment=!0,this._initSegmentId=d,this._emitMetaParsedEvent(n,i)),!h){e.next=65;break}if(this._sourceCreated){e.next=47;break}return e.next=43,h.open();case 43:o&&(_M.log("codec: video/mp4;codecs=".concat(n.codec)),h.createSource(l,"video/mp4;codecs=".concat(n.codec))),s&&(_M.log("codec: audio/mp4;codecs=".concat(i.codec)),h.createSource(f,"audio/mp4;codecs=".concat(i.codec))),this._sourceCreated=!0,this.flv.emit(wD);case 47:e.prev=47,p=this._remuxer.remux(this._needInitSegment),e.next=54;break;case 51:throw e.prev=51,e.t1=e.catch(47),new NC(RC,jC.FMP4,e.t1);case 54:if(!this._needInitSegment||p.videoInitSegment||p.audioInitSegment){e.next=56;break}return e.abrupt("return");case 56:return this._needInitSegment=!1,v=[],p.videoInitSegment&&v.push(h.append(l,p.videoInitSegment)),p.audioInitSegment&&v.push(h.append(f,p.audioInitSegment)),p.videoSegment&&v.push(h.append(l,p.videoSegment)),p.audioSegment&&v.push(h.append(f,p.audioSegment)),e.abrupt("return",qy.all(v));case 65:this._softVideo&&this._softVideo.appendBuffer(n,i);case 66:case"end":return e.stop()}}),e,this,[[4,8],[47,51]])}))),function(e){return r.apply(this,arguments)})},{key:"evictBuffer",value:(t=rm(em().mark((function e(t){var r,n,i,a=this;return em().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.flv.media,this._mse&&this._demuxer&&r&&t&&!(t<0)){e.next=3;break}return e.abrupt("return");case 3:if(n=r.currentTime,!((i=n-t)<=0)){e.next=7;break}return e.abrupt("return");case 7:if(!(TC.start(TC.get(r))+1>=i)){e.next=10;break}return e.abrupt("return");case 10:return e.abrupt("return",this._mse.clearBuffer(0,i).then((function(){return a.flv.emit(xD,{removeEnd:i})})));case 11:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"_emitMetaParsedEvent",value:function(e,t){e.exist()&&this.flv.emit(TD,{type:"video",track:e,meta:{codec:e.codec,timescale:e.timescale,width:e.width,height:e.height,sarRatio:e.sarRatio,baseDts:e.baseDts}}),t.exist()&&this.flv.emit(TD,{type:"audio",track:t,meta:{codec:t.codec,channelCount:t.channelCount,sampleRate:t.sampleRate,timescale:t.timescale,baseDts:t.baseDts}}),_M.debug("track parsed",e,t)}},{key:"_fireEvents",value:function(e,t,r){var n,i,a,o,s,u=this;_M.debug(e.samples,t.samples),sf(n=r.flvScriptSamples).call(n,(function(e){u.flv.emit(OD,e),_M.debug("flvScriptData",e)})),sf(i=e.samples).call(i,(function(e){e.keyframe&&u.flv.emit(ED,{pts:e.pts})})),sf(a=e.warnings).call(a,(function(e){var t;switch(e.type){case fI:t=ID;break;case hI:t=MD;break;case dI:t=ND}t&&u.flv.emit(UD,Zg(Zg({},e),{},{type:t})),_M.warn("video exception",e)})),sf(o=t.warnings).call(o,(function(e){var t;switch(e.type){case pI:t=BD;break;case vI:t=jD;break;case yI:t=FD}t&&u.flv.emit(UD,Zg(Zg({},e),{},{type:t})),_M.warn("audio exception",e)})),sf(s=r.seiSamples).call(s,(function(e){u.flv.emit(AD,Zg(Zg({},e),{},{sei:{code:e.data.type,content:e.data.payload,dts:e.pts}}))}))}}]),e}();function wM(e,t){var r=0,n=e.length-1,i=0,a=0,o=n;for(t<e[0]&&(r=0,a=o+1);a<=o;){if((i=a+Math.floor((o-a)/2))===n||t>=e[i]&&t<e[i+1]){r=i;break}e[i]<t?a=i+1:o=i-1}return r}var kM=new KC("flv"),xM=.1,SM=function(e){sm(c,e);var t,r,n,i,a,o,s,u=fm(c);function c(e){var t,r;return nm(this,c),om(lm(t=u.call(this)),"media",null),om(lm(t),"_loading",!1),om(lm(t),"_opts",null),om(lm(t),"_bufferService",null),om(lm(t),"_gapService",null),om(lm(t),"_stats",null),om(lm(t),"_mediaLoader",null),om(lm(t),"_maxChunkWaitTimer",null),om(lm(t),"_tickTimer",null),om(lm(t),"_tickInterval",500),om(lm(t),"_urlSwitching",!1),om(lm(t),"_seamlessSwitching",!1),om(lm(t),"_disconnectRetryCount",0),om(lm(t),"_preLoadEndPoint",0),om(lm(t),"_keyframes",null),om(lm(t),"_acceptRanges",!0),om(lm(t),"_onProgress",function(){var e=rm(em().mark((function e(r,n,i,a){var o,s,u,c,l,f,h,d,p;return em().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=i.startTime,s=i.endTime,u=i.st,c=i.firstByteTime,t._loading=!n,t._firstProgressEmit){e.next=11;break}if(t.media){e.next=6;break}return null===(l=t._mediaLoader)||void 0===l||l.cancel(),e.abrupt("return");case 6:f=a.headers,t.emit(yD,{url:t._opts.url,responseUrl:a.url,elapsed:u?c-u:s-o}),t.emit(mD,{headers:f}),t._acceptRanges=!(null==f||!f.get("Accept-Ranges"))||!(null==f||!f.get("Content-Range")),t._firstProgressEmit=!0;case 11:if(t._bufferService){e.next=13;break}return e.abrupt("return");case 13:return clearTimeout(t._maxChunkWaitTimer),t._bandwidthService.addChunkRecord(null==r?void 0:r.byteLength,s-o),e.prev=15,e.next=18,t._bufferService.appendBuffer(r);case 18:null===(h=t._bufferService)||void 0===h||h.evictBuffer(t._opts.bufferBehind),e.next=31;break;case 21:if(e.prev=21,e.t0=e.catch(15),t.isLive||!t._bufferService.isFull()){e.next=30;break}return e.next=26,t._mediaLoader.cancel();case 26:return t._loading=!1,d=t.bufferInfo().remaining,t._opts.preloadTime=T_(d)/2,e.abrupt("return");case 30:return e.abrupt("return",t._emitError(NC.create(e.t0)));case 31:if(t._urlSwitching&&(t._urlSwitching=!1,t.emit(DD,{url:t._opts.url})),t._seamlessSwitching&&(t._seamlessSwitching=!1,t._tick()),!n||t.media.seeking){e.next=38;break}return t.emit(_D),kM.debug("load done"),t.isLive&&t._disconnectRetryCount<=0&&t._end(),e.abrupt("return");case 38:if(t.isLive){e.next=40;break}return e.abrupt("return");case 40:(p=t._opts.maxReaderInterval)&&(clearTimeout(t._maxChunkWaitTimer),t._maxChunkWaitTimer=Sw((function(){if(t._disconnectRetryCount)return t._disconnectRetryCount--,void t.load();kM.debug("onMaxChunkWait",p),t._end()}),p));case 42:case"end":return e.stop()}}),e,null,[[15,21]])})));return function(t,r,n,i){return e.apply(this,arguments)}}()),om(lm(t),"_onRetryError",(function(e,r){kM.debug("load retry",e,r),t.emit(bD,{error:NC.network(e),retryTime:r})})),om(lm(t),"_end",(function(){t._clear(),t._bufferService&&t._bufferService.endOfStream(),kM.debug("end stream")})),om(lm(t),"_resetDisconnectCount",(function(){t._disconnectRetryCount=t._opts.disconnectRetryCount})),om(lm(t),"_tick",(function(){clearTimeout(t._tickTimer);var e=lm(t).media;if(e){t._tickTimer=Sw(t._tick,t._tickInterval);var r=TC.end(TC.get(e));if(!(r<xM)&&e.readyState){var n=t._opts;if(function(e){return e&&!e.paused&&!e.ended&&0!==e.playbackRate&&0!==e.readyState}(e))t._gapService&&t._gapService.do(e,n.maxJumpDistance,t.isLive,3);else{if(!e.currentTime&&t._gapService)return void t._gapService.do(e,n.maxJumpDistance,t.isLive,3);n.isLive&&r>n.disconnectTime&&t.disconnect()}}}})),om(lm(t),"_onPlay",(function(){var e,r,n=t._opts.softDecode||(null===(e=t.media)||void 0===e||null===(r=e.buffered)||void 0===r?void 0:r.length);if(t.isLive)!t._loading&&n&&t.replay(void 0,!0);else{var i=t.bufferInfo();(i.start||i.nextStart)>xM&&t._tick()}})),om(lm(t),"_onSeeking",rm(em().mark((function e(){return em().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:!t.isLive&&t.seekable&&(t._preLoadEndPoint=-1,t._checkPreload());case 1:case"end":return e.stop()}}),e)})))),om(lm(t),"_onTimeupdate",(function(){if(t.media){var e=t._opts,r=t.media.currentTime;if(e.isLive&&e.maxLatency&&e.targetLatency){var n=TC.end(TC.get(t.media));n-r>=e.maxLatency&&(t.media.currentTime=n-e.targetLatency)}t._seiService.throw(r,!0),e.isLive||!t.seekable||t._loading||t._checkPreload()}})),om(lm(t),"_onWaiting",(function(){t.isLive&&!t._loading&&t._disconnectRetryCount&&(t._disconnectRetryCount--,t.load())})),om(lm(t),"_onBufferUpdate",(function(){if(!t._opts.isLive){var e=t.bufferInfo(),r=e.end,n=e.nextEnd;Math.abs((r||n)-t.media.duration)<1&&(t._end(),t.media.readyState<=2&&t._tick())}})),om(lm(t),"_checkPreload",rm(em().mark((function e(){var r,n,i,a,o,s,u,c,l,f;return em().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.bufferInfo(),n=r.remaining,i=void 0===n?0:n,a=t._opts,o=t._keyframes.filepositions,s=t._keyframes.times,u=t.media.currentTime,!(i<a.preloadTime)){e.next=19;break}if(c=wM(t._keyframes.times,u+i+xM),(l=wM(t._keyframes.times,u+i+t._opts.preloadTime))===c&&(l=c+1),t._preLoadEndPoint!==l){e.next=11;break}return e.abrupt("return");case 11:if(null!=(f=o[c])){e.next=14;break}return e.abrupt("return");case 14:return e.next=16,t._mediaLoader.cancel();case 16:t._loadData(null,[f,o[l]]),t._preLoadEndPoint=l,t._bufferService.unContiguous(s[c]);case 19:case"end":return e.stop()}}),e)})))),om(lm(t),"_onFlvScriptData",(function(e){var r,n,i,a,o=null===(r=e.data)||void 0===r||null===(n=r.onMetaData)||void 0===n?void 0:n.keyframes,s=null===(i=e.data)||void 0===i||null===(a=i.onMetaData)||void 0===a?void 0:a.duration;o&&(t._keyframes=o),!t._opts.isLive&&s&&t._bufferService.updateDuration(s)})),t._opts=((r=Zg({retryCount:3,retryDelay:1e3,disconnectRetryCount:0,loadTimeout:1e4,maxReaderInterval:5e3,preloadTime:5,defaultVodLoadSize:1e7,isLive:!1,softDecode:!1,bufferBehind:10,maxJumpDistance:3,analyzeDuration:2e4,seamlesslyReload:!1,keepStatusAfterSwitch:!0,onlyVideo:!1,onlyAudio:!1},e)).isLive&&r.preloadTime&&(r.maxLatency||(r.maxLatency=2*r.preloadTime),r.targetLatency||(r.targetLatency=r.preloadTime),null!==r.disconnectTime&&void 0!==r.disconnectTime||(r.disconnectTime=r.maxLatency)),r),t.media=t._opts.media||document.createElement("video"),t._opts.media=null,t._firstProgressEmit=!1,t._mediaLoader=new JD(Zg(Zg({},t._opts.fetchOptions),{},{retry:t._opts.retryCount,retryDelay:t._opts.retryDelay,timeout:t._opts.loadTimeout,onRetryError:t._onRetryError,onProgress:t._onProgress,responseType:"arraybuffer"})),t._disconnectRetryCount=t._opts.disconnectRetryCount,t._bufferService=new bM(lm(t),t._opts.softDecode?t.media:void 0,t._opts),t._seiService=new FU(lm(t)),t._bandwidthService=new NU,t._stats=new zU(lm(t)),t._opts.softDecode||(t._gapService=new QD),t.media.addEventListener("play",t._onPlay),t.media.addEventListener("seeking",t._onSeeking),t.media.addEventListener("timeupdate",t._onTimeupdate),t.media.addEventListener("progress",t._onBufferUpdate),t.media.addEventListener("waiting",t._onWaiting),t.on(OD,t._onFlvScriptData),t}return am(c,[{key:"version",get:function(){return"3.0.11-alpha.2"}},{key:"isLive",get:function(){return this._opts.isLive}},{key:"baseDts",get:function(){var e;return null===(e=this._bufferService)||void 0===e?void 0:e.baseDts}},{key:"seekable",get:function(){return!!this._keyframes&&this._acceptRanges}},{key:"loader",get:function(){return this._mediaLoader}},{key:"speedInfo",value:function(){return{speed:this._bandwidthService.getLatestSpeed(),avgSpeed:this._bandwidthService.getAvgSpeed()}}},{key:"getStats",value:function(){return this._stats.getStats()}},{key:"bufferInfo",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xM;return TC.info(TC.get(this.media),null===(e=this.media)||void 0===e?void 0:e.currentTime,t)}},{key:"playbackQuality",value:function(){return function(e){if(!e)return{};if("function"==typeof e.getVideoPlaybackQuality){var t=e.getVideoPlaybackQuality();return{droppedVideoFrames:t.droppedVideoFrames||t.corruptedVideoFrames,totalVideoFrames:t.totalVideoFrames,creationTime:t.creationTime}}return{droppedVideoFrames:e.webkitDroppedFrameCount,totalVideoFrames:e.webkitDecodedFrameCount,creationTime:performance.now()}}(this.media)}},{key:"load",value:(s=rm(em().mark((function e(t){var r,n=arguments;return em().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.length>1&&void 0!==n[1]&&n[1],this._bufferService){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this._reset(r);case 5:this._loadData(t,this._opts.isLive?[]:[0,this._opts.defaultVodLoadSize]),clearTimeout(this._tickTimer),this._tickTimer=Sw(this._tick,this._tickInterval);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"replay",value:(o=rm(em().mark((function e(){var t,r,n=this,i=arguments;return em().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:this._opts.seamlesslyReload,r=i.length>1?i[1]:void 0,this.media){e.next=4;break}return e.abrupt("return");case 4:if(this._resetDisconnectCount(),!t){e.next=11;break}return e.next=8,this._clear();case 8:Sw((function(){n._loadData(n._opts.url),n._bufferService.seamlessSwitch(),n._seamlessSwitching=!0})),e.next=13;break;case 11:return e.next=13,this.load();case 13:return e.abrupt("return",this.media.play(!r).catch((function(){})));case 14:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"disconnect",value:function(){return kM.debug("disconnect!"),this._clear()}},{key:"switchURL",value:(a=rm(em().mark((function e(t,r){var n=this;return em().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._bufferService){e.next=2;break}return e.abrupt("return");case 2:if(this._resetDisconnectCount(),r&&this._opts.isLive){e.next=8;break}return e.next=6,this.load(t);case 6:return this._urlSwitching=!0,e.abrupt("return",this.media.play(!0).catch((function(){})));case 8:return e.next=10,this._clear();case 10:Sw((function(){n._loadData(t),n._bufferService.seamlessSwitch(),n._urlSwitching=!0,n._seamlessSwitching=!0}));case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"destroy",value:(i=rm(em().mark((function e(){return em().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.media){e.next=2;break}return e.abrupt("return");case 2:return this.removeAllListeners(),this._seiService.reset(),this.media.removeEventListener("play",this._onPlay),this.media.removeEventListener("seeking",this._onSeeking),this.media.removeEventListener("timeupdate",this._onTimeupdate),this.media.removeEventListener("waiting",this._onWaiting),this.media.removeEventListener("progress",this._onBufferUpdate),e.next=11,qy.all([this._clear(),this._bufferService.destroy()]);case 11:this.media=null,this._bufferService=null;case 13:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"_emitError",value:function(e){var t,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];kM.table(e),kM.error(e),kM.error(null===(t=this.media)||void 0===t?void 0:t.error),this._urlSwitching&&(this._urlSwitching=!1,this._seamlessSwitching=!1,this.emit(PD,e)),this.emit(vD,e),r&&(this._seiService.reset(),this._end())}},{key:"_reset",value:(n=rm(em().mark((function e(){var t,r=arguments;return em().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]&&r[0],this._seiService.reset(),this._bandwidthService.reset(),this._stats.reset(),e.next=6,this._clear();case 6:return e.next=8,this._bufferService.reset(t);case 8:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"_loadData",value:(r=rm(em().mark((function e(t,r){var n;return em().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&(this._opts.url=t),n=t=this._opts.url,t){e.next=4;break}throw new Error("Source url is missing");case 4:if(this._opts.preProcessUrl&&(n=this._opts.preProcessUrl(t).url),this._mediaLoader.finnalUrl=n,this.emit(gD,{url:n}),kM.debug("load data, loading:",this._loading,n),!this._loading){e.next=11;break}return e.next=11,this._mediaLoader.cancel();case 11:return this._loading=!0,e.prev=12,e.next=15,this._mediaLoader.load({url:n,range:r});case 15:e.next=21;break;case 17:return e.prev=17,e.t0=e.catch(12),this._loading=!1,e.abrupt("return",this._emitError(NC.network(e.t0)));case 21:case"end":return e.stop()}}),e,this,[[12,17]])}))),function(e,t){return r.apply(this,arguments)})},{key:"_clear",value:(t=rm(em().mark((function e(){return em().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mediaLoader){e.next=3;break}return e.next=3,this._mediaLoader.cancel();case 3:clearTimeout(this._maxChunkWaitTimer),clearTimeout(this._tickTimer),this._loading=!1,this._firstProgressEmit=!1;case 7:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}],[{key:"isSupported",value:function(e){return e&&"video"!==e&&"audio"!==e?"undefined"!=typeof WebAssembly:tD.isSupported()}},{key:"enableLogger",value:function(){KC.enable(),AI.enable()}},{key:"disableLogger",value:function(){KC.disable(),AI.disable()}}]),c}(Pb);try{localStorage.getItem("xgd")?SM.enableLogger():SM.disableLogger()}catch(RM){}var EM=function(){function e(t,r){var n=this;nm(this,e),om(this,"_onLowDecode",(function(){var e,t,r,i,a=n._opts,o=a.media,s=a.innerDegrade,u=a.backupURL;null===(e=n._plugin)||void 0===e||null===(t=e.player)||void 0===t||t.emit("lowdecode",o.degradeInfo),null===(r=n._plugin)||void 0===r||null===(i=r.player)||void 0===i||i.emit("core_event",Zg(Zg({},o.degradeInfo),{},{eventName:CD})),1!==s&&3!==s||!u||n._degrade(u)})),om(this,"_degrade",(function(e){var t=n._plugin.player,r=t.video;if("MVideo"===(null==r?void 0:r.TAG)){var i=t.video.degradeVideo;t.video=i,r.degrade(e),e&&(t.config.url=e);var a=t.root.firstChild;"MVideo"===a.TAG&&t.root.replaceChild(i,a);var o=n._plugin.constructor.pluginName.toLowerCase();t.unRegisterPlugin(o),t.once("canplay",(function(){t.play()}))}})),om(this,"forceDegradeToVideo",(function(e){var t=n._opts.innerDegrade;1!==t&&3!==t||n._degrade(e)})),this._opts=t,this._plugin=r,this._init()}return am(e,[{key:"_init",value:function(){var e=this._opts,t=e.media,r=e.preloadTime,n=e.innerDegrade,i=e.decodeMode;t&&(n&&t.setAttribute("innerdegrade",n),r&&t.setAttribute("preloadtime",r),t.setDecodeMode&&t.setDecodeMode(i),this._bindEvents())}},{key:"_bindEvents",value:function(){this._opts.media.addEventListener("lowdecode",this._onLowDecode)}},{key:"destroy",value:function(){var e,t;null===(e=this._opts)||void 0===e||null===(t=e.media)||void 0===t||t.removeEventListener("lowdecode",this._onLowDecode),this._plugin=null}}]),e}(),TM=function(e){sm(r,e);var t=fm(r);function r(){var e,n;nm(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return om(lm(n=t.call.apply(t,Xn(e=[this]).call(e,a))),"flv",null),om(lm(n),"pluginExtension",null),om(lm(n),"getStats",(function(){var e;return null===(e=n.flv)||void 0===e?void 0:e.getStats()})),om(lm(n),"destroy",(function(){var e;n.flv&&(n.flv.destroy(),n.flv=null),null===(e=n.pluginExtension)||void 0===e||e.destroy(),n.pluginExtension=null})),om(lm(n),"_onSwitchURL",(function(e,t){var r,i;n.flv&&(n.player.config.url=e,n.flv.switchURL(e,t),!t&&null!==(r=n.player.config)&&void 0!==r&&null!==(i=r.flv)&&void 0!==i&&i.keepStatusAfterSwitch&&n._keepPauseStatus())})),om(lm(n),"_keepPauseStatus",(function(){n.player.paused&&n.player.once("canplay",(function(){n.player.pause()}))})),om(lm(n),"_onDefinitionChange",(function(e){var t=e.to;n.flv&&n.flv.switchURL(t)})),n}return am(r,[{key:"core",get:function(){return this.flv}},{key:"version",get:function(){var e;return null===(e=this.flv)||void 0===e?void 0:e.version}},{key:"softDecode",get:function(){var e,t,r=null===(e=this.player)||void 0===e||null===(t=e.config)||void 0===t?void 0:t.mediaType;return!!r&&"video"!==r&&"audio"!==r}},{key:"loader",get:function(){var e;return null===(e=this.flv)||void 0===e?void 0:e.loader}},{key:"beforePlayerInit",value:function(){var e=this,t=this.player.config;if(t.url){this.flv&&this.flv.destroy(),this.player.switchURL=this._onSwitchURL;var r,n=t.flv||{};if(null!==n.disconnectTime&&void 0!==n.disconnectTime||(n.disconnectTime=0),this.flv=new SM(Zg({softDecode:this.softDecode,isLive:t.isLive,media:this.player.video,preProcessUrl:function(t,r){var n,i;return(null===(n=(i=e.player).preProcessUrl)||void 0===n?void 0:n.call(i,t,r))||{url:t,ext:r}}},n)),this.softDecode||tx.defineGetterOrSetter(this.player,{url:{get:function(){var t,r;return null===(t=e.flv)||void 0===t||null===(r=t.media)||void 0===r?void 0:r.src},configurable:!0}}),this.softDecode&&(this.pluginExtension=new EM(Zg({media:this.player.video},t.flv),this),this.player.forceDegradeToVideo=function(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return null===(t=e.pluginExtension)||void 0===t?void 0:t.forceDegradeToVideo.apply(t,n)}),t.isLive)null===(r=this.player)||void 0===r||r.useHooks("replay",(function(){var t;return null===(t=e.flv)||void 0===t?void 0:t.replay()}));this.on("urlchange",this._onSwitchURL),this.on("destroy",this.destroy),this._transError(),this._transCoreEvent(yD),this._transCoreEvent(gD),this._transCoreEvent(mD),this._transCoreEvent(_D),this._transCoreEvent(bD),this._transCoreEvent(wD),this._transCoreEvent(kD),this._transCoreEvent(xD),this._transCoreEvent(SD),this._transCoreEvent(ED),this._transCoreEvent(TD),this._transCoreEvent(AD),this._transCoreEvent(LD),this._transCoreEvent(OD),this._transCoreEvent(UD),this._transCoreEvent(DD),this._transCoreEvent(PD),this.flv.load(t.url,!0)}}},{key:"_transError",value:function(){var e=this;this.flv.on(vD,(function(t){e.player&&e.player.emit("error",new Jk(e.player,t))}))}},{key:"_transCoreEvent",value:function(e){var t=this;this.flv.on(e,(function(r){t.player&&t.player.emit("core_event",Zg(Zg({},r),{},{eventName:e}))}))}}],[{key:"pluginName",get:function(){return"flv"}},{key:"isSupported",value:function(e,t){return SM.isSupported(e,t)}}]),r}(tx);function AM(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Pf(e,(i=n.key,a=void 0,a=function(e,t){if("object"!==Ol(e)||null===e)return e;var r=e[Xg];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Ol(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===Ol(a)?a:String(a)),n)}var i,a}function LM(e){var t;return(LM=Nf?Ig(t=Ff).call(t):function(e){return e.__proto__||Ff(e)})(e)}function OM(e,t){var r;return(OM=Nf?Ig(r=Nf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function CM(e,t){if(t&&("object"===Ol(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function DM(e){var t=function(){if("undefined"==typeof Reflect||!Qg)return!1;if(Qg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Qg(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=LM(e);if(t){var i=LM(this).constructor;r=Qg(n,arguments,i)}else r=n.apply(this,arguments);return CM(this,r)}}om(TM,"Flv",SM);var PM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=If(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Pf(e,"prototype",{writable:!1}),t&&OM(e,t)}(a,e);var t,r,n,i=DM(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,n=[{key:"pluginName",get:function(){return"adaptive"}},{key:"defaultConfig",get:function(){return{hurryEndMs:1800,hurryStartMs:2500,hurrySpeed:1.1}}}],(r=[{key:"afterCreate",value:function(){var e;this.on("timeupdate",Ig(e=this.onTimeUpdate).call(e,this))}},{key:"onTimeUpdate",value:function(){var e=this.bufferLength;this.speed===this.config.hurrySpeed?e<=this.config.hurryEndMs&&(this.speed=1):1===this.speed&&e>=this.config.hurryStartMs&&(this.speed=this.config.hurrySpeed)}},{key:"bufferLength",get:function(){var e=this.player.getBufferedRange(),t=this.player.video.currentTime,r=e[1]-Math.max(e[0],t);return r=Math.round(1e3*Math.max(0,r))}},{key:"speed",get:function(){return this.player.playbackRate},set:function(e){this.speed!==e&&(this.player.playbackRate=e)}}])&&AM(t.prototype,r),n&&AM(t,n),Pf(t,"prototype",{writable:!1}),a}(tx);VePlayer.register("plugin:flv",{FlvPlugin:TM,Adaptive:PM}),e.Adaptive=PM,e.FlvPlugin=TM}));
|