@byteplus/veplayer-plugin 2.7.1-rc.2 → 2.7.1-rc.3
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/esm/index.development.js +6 -2
- package/esm/index.production.js +1 -1
- package/esm/veplayer.plugin.rtm.development.js +6 -2
- package/esm/veplayer.plugin.rtm.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.plugin.rtm.development.js +6 -2
- package/umd/veplayer.plugin.rtm.production.js +1 -1
|
@@ -1 +1 @@
|
|
|
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_RTM__={})}(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){return e&&e.Math==Math&&e},i=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),o=function(e){try{return!!e()}catch(t){return!0}},a=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),u=a,s=Function.prototype,c=s.apply,l=s.call,f="object"==typeof Reflect&&Reflect.apply||(u?l.bind(c):function(){return l.apply(c,arguments)}),d=a,p=Function.prototype,h=p.call,v=d&&p.bind.bind(h,h),y=d?v:function(e){return function(){return h.apply(e,arguments)}},m=y,g=m({}.toString),b=m("".slice),_=function(e){return b(g(e),8,-1)},w=_,S=y,k=function(e){if("Function"===w(e))return S(e)},R="object"==typeof document&&document.all,T={all:R,IS_HTMLDDA:void 0===R&&void 0!==R},x=T.all,E=T.IS_HTMLDDA?function(e){return"function"==typeof e||e===x}:function(e){return"function"==typeof e},L={},O=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),I=a,P=Function.prototype.call,C=I?P.bind(P):function(){return P.apply(P,arguments)},Z={},A={}.propertyIsEnumerable,j=Object.getOwnPropertyDescriptor,W=j&&!A.call({1:2},1);Z.f=W?function(e){var t=j(this,e);return!!t&&t.enumerable}:A;var V,G,N=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},X=o,M=_,U=Object,F=y("".split),D=X((function(){return!U("z").propertyIsEnumerable(0)}))?function(e){return"String"==M(e)?F(e,""):U(e)}:U,H=function(e){return null==e},K=H,Y=TypeError,B=function(e){if(K(e))throw Y("Can't call method on "+e);return e},z=D,J=B,Q=function(e){return z(J(e))},q=E,$=T.all,ee=T.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:q(e)||e===$}:function(e){return"object"==typeof e?null!==e:q(e)},te={},re=te,ne=i,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]},ue=y({}.isPrototypeOf),se="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ce=i,le=se,fe=ce.process,de=ce.Deno,pe=fe&&fe.versions||de&&de.version,he=pe&&pe.v8;he&&(G=(V=he.split("."))[0]>0&&V[0]<4?1:+(V[0]+V[1])),!G&&le&&(!(V=le.match(/Edge\/(\d+)/))||V[1]>=74)&&(V=le.match(/Chrome\/(\d+)/))&&(G=+V[1]);var ve=G,ye=ve,me=o,ge=i.String,be=!!Object.getOwnPropertySymbols&&!me((function(){var e=Symbol();return!ge(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ye&&ye<41})),_e=be&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,we=ae,Se=E,ke=ue,Re=Object,Te=_e?function(e){return"symbol"==typeof e}:function(e){var t=we("Symbol");return Se(t)&&ke(t.prototype,Re(e))},xe=String,Ee=function(e){try{return xe(e)}catch(t){return"Object"}},Le=E,Oe=Ee,Ie=TypeError,Pe=function(e){if(Le(e))return e;throw Ie(Oe(e)+" is not a function")},Ce=Pe,Ze=H,Ae=function(e,t){var r=e[t];return Ze(r)?void 0:Ce(r)},je=C,We=E,Ve=ee,Ge=TypeError,Ne={exports:{}},Xe=i,Me=Object.defineProperty,Ue=function(e,t){try{Me(Xe,e,{value:t,configurable:!0,writable:!0})}catch(r){Xe[e]=t}return t},Fe="__core-js_shared__",De=i[Fe]||Ue(Fe,{}),He=De;(Ne.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 Ke=Ne.exports,Ye=B,Be=Object,ze=function(e){return Be(Ye(e))},Je=ze,Qe=y({}.hasOwnProperty),qe=Object.hasOwn||function(e,t){return Qe(Je(e),t)},$e=y,et=0,tt=Math.random(),rt=$e(1..toString),nt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rt(++et+tt,36)},it=Ke,ot=qe,at=nt,ut=be,st=_e,ct=i.Symbol,lt=it("wks"),ft=st?ct.for||ct:ct&&ct.withoutSetter||at,dt=function(e){return ot(lt,e)||(lt[e]=ut&&ot(ct,e)?ct[e]:ft("Symbol."+e)),lt[e]},pt=C,ht=ee,vt=Te,yt=Ae,mt=function(e,t){var r,n;if("string"===t&&We(r=e.toString)&&!Ve(n=je(r,e)))return n;if(We(r=e.valueOf)&&!Ve(n=je(r,e)))return n;if("string"!==t&&We(r=e.toString)&&!Ve(n=je(r,e)))return n;throw Ge("Can't convert object to primitive value")},gt=TypeError,bt=dt("toPrimitive"),_t=function(e,t){if(!ht(e)||vt(e))return e;var r,n=yt(e,bt);if(n){if(void 0===t&&(t="default"),r=pt(n,e,t),!ht(r)||vt(r))return r;throw gt("Can't convert object to primitive value")}return void 0===t&&(t="number"),mt(e,t)},wt=Te,St=function(e){var t=_t(e,"string");return wt(t)?t:t+""},kt=ee,Rt=i.document,Tt=kt(Rt)&&kt(Rt.createElement),xt=function(e){return Tt?Rt.createElement(e):{}},Et=xt,Lt=!O&&!o((function(){return 7!=Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a})),Ot=O,It=C,Pt=Z,Ct=N,Zt=Q,At=St,jt=qe,Wt=Lt,Vt=Object.getOwnPropertyDescriptor;L.f=Ot?Vt:function(e,t){if(e=Zt(e),t=At(t),Wt)try{return Vt(e,t)}catch(r){}if(jt(e,t))return Ct(!It(Pt.f,e,t),e[t])};var Gt=o,Nt=E,Xt=/#|\.prototype\./,Mt=function(e,t){var r=Ft[Ut(e)];return r==Ht||r!=Dt&&(Nt(t)?Gt(t):!!t)},Ut=Mt.normalize=function(e){return String(e).replace(Xt,".").toLowerCase()},Ft=Mt.data={},Dt=Mt.NATIVE="N",Ht=Mt.POLYFILL="P",Kt=Mt,Yt=Pe,Bt=a,zt=k(k.bind),Jt=function(e,t){return Yt(e),void 0===t?e:Bt?zt(e,t):function(){return e.apply(t,arguments)}},Qt={},qt=O&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),$t=ee,er=String,tr=TypeError,rr=function(e){if($t(e))return e;throw tr(er(e)+" is not an object")},nr=O,ir=Lt,or=qt,ar=rr,ur=St,sr=TypeError,cr=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,fr="enumerable",dr="configurable",pr="writable";Qt.f=nr?or?function(e,t,r){if(ar(e),t=ur(t),ar(r),"function"==typeof e&&"prototype"===t&&"value"in r&&pr in r&&!r[pr]){var n=lr(e,t);n&&n[pr]&&(e[t]=r.value,r={configurable:dr in r?r[dr]:n[dr],enumerable:fr in r?r[fr]:n[fr],writable:!1})}return cr(e,t,r)}:cr:function(e,t,r){if(ar(e),t=ur(t),ar(r),ir)try{return cr(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 hr=Qt,vr=N,yr=O?function(e,t,r){return hr.f(e,t,vr(1,r))}:function(e,t,r){return e[t]=r,e},mr=i,gr=f,br=k,_r=E,wr=L.f,Sr=Kt,kr=te,Rr=Jt,Tr=yr,xr=qe,Er=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},Lr=function(e,t){var r,n,i,o,a,u,s,c,l,f=e.target,d=e.global,p=e.stat,h=e.proto,v=d?mr:p?mr[f]:(mr[f]||{}).prototype,y=d?kr:kr[f]||Tr(kr,f,{})[f],m=y.prototype;for(o in t)n=!(r=Sr(d?o:f+(p?".":"#")+o,e.forced))&&v&&xr(v,o),u=y[o],n&&(s=e.dontCallGetSet?(l=wr(v,o))&&l.value:v[o]),a=n&&s?s:t[o],n&&typeof u==typeof a||(c=e.bind&&n?Rr(a,mr):e.wrap&&n?Er(a):h&&_r(a)?br(a):a,(e.sham||a&&a.sham||u&&u.sham)&&Tr(c,"sham",!0),Tr(y,o,c),h&&(xr(kr,i=f+"Prototype")||Tr(kr,i,{}),Tr(kr[i],o,a),e.real&&m&&(r||!m[o])&&Tr(m,o,a)))},Or=_,Ir=Array.isArray||function(e){return"Array"==Or(e)},Pr=Math.ceil,Cr=Math.floor,Zr=Math.trunc||function(e){var t=+e;return(t>0?Cr:Pr)(t)},Ar=function(e){var t=+e;return t!=t||0===t?0:Zr(t)},jr=Ar,Wr=Math.min,Vr=function(e){return e>0?Wr(jr(e),9007199254740991):0},Gr=Vr,Nr=function(e){return Gr(e.length)},Xr=TypeError,Mr=function(e){if(e>9007199254740991)throw Xr("Maximum allowed index exceeded");return e},Ur=St,Fr=Qt,Dr=N,Hr=function(e,t,r){var n=Ur(t);n in e?Fr.f(e,n,Dr(0,r)):e[n]=r},Kr={};Kr[dt("toStringTag")]="z";var Yr="[object z]"===String(Kr),Br=Yr,zr=E,Jr=_,Qr=dt("toStringTag"),qr=Object,$r="Arguments"==Jr(function(){return arguments}()),en=Br?Jr: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=qr(e),Qr))?r:$r?Jr(t):"Object"==(n=Jr(t))&&zr(t.callee)?"Arguments":n},tn=E,rn=De,nn=y(Function.toString);tn(rn.inspectSource)||(rn.inspectSource=function(e){return nn(e)});var on=rn.inspectSource,an=y,un=o,sn=E,cn=en,ln=on,fn=function(){},dn=[],pn=ae("Reflect","construct"),hn=/^\s*(?:class|function)\b/,vn=an(hn.exec),yn=!hn.exec(fn),mn=function(e){if(!sn(e))return!1;try{return pn(fn,dn,e),!0}catch(t){return!1}},gn=function(e){if(!sn(e))return!1;switch(cn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return yn||!!vn(hn,ln(e))}catch(t){return!0}};gn.sham=!0;var bn=!pn||un((function(){var e;return mn(mn.call)||!mn(Object)||!mn((function(){e=!0}))||e}))?gn:mn,_n=Ir,wn=bn,Sn=ee,kn=dt("species"),Rn=Array,Tn=function(e){var t;return _n(e)&&(t=e.constructor,(wn(t)&&(t===Rn||_n(t.prototype))||Sn(t)&&null===(t=t[kn]))&&(t=void 0)),void 0===t?Rn:t},xn=function(e,t){return new(Tn(e))(0===t?0:t)},En=o,Ln=ve,On=dt("species"),In=function(e){return Ln>=51||!En((function(){var t=[];return(t.constructor={})[On]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Pn=Lr,Cn=o,Zn=Ir,An=ee,jn=ze,Wn=Nr,Vn=Mr,Gn=Hr,Nn=xn,Xn=In,Mn=ve,Un=dt("isConcatSpreadable"),Fn=Mn>=51||!Cn((function(){var e=[];return e[Un]=!1,e.concat()[0]!==e})),Dn=function(e){if(!An(e))return!1;var t=e[Un];return void 0!==t?!!t:Zn(e)};Pn({target:"Array",proto:!0,arity:1,forced:!Fn||!Xn("concat")},{concat:function(e){var t,r,n,i,o,a=jn(this),u=Nn(a,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(Dn(o=-1===t?a:arguments[t]))for(i=Wn(o),Vn(s+i),r=0;r<i;r++,s++)r in o&&Gn(u,s,o[r]);else Vn(s+1),Gn(u,s++,o);return u.length=s,u}});var Hn=en,Kn=String,Yn=function(e){if("Symbol"===Hn(e))throw TypeError("Cannot convert a Symbol value to a string");return Kn(e)},Bn={},zn=Ar,Jn=Math.max,Qn=Math.min,qn=function(e,t){var r=zn(e);return r<0?Jn(r+t,0):Qn(r,t)},$n=Q,ei=qn,ti=Nr,ri=function(e){return function(t,r,n){var i,o=$n(t),a=ti(o),u=ei(n,a);if(e&&r!=r){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===r)return e||u||0;return!e&&-1}},ni={includes:ri(!0),indexOf:ri(!1)},ii={},oi=qe,ai=Q,ui=ni.indexOf,si=ii,ci=y([].push),li=function(e,t){var r,n=ai(e),i=0,o=[];for(r in n)!oi(si,r)&&oi(n,r)&&ci(o,r);for(;t.length>i;)oi(n,r=t[i++])&&(~ui(o,r)||ci(o,r));return o},fi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],di=li,pi=fi,hi=Object.keys||function(e){return di(e,pi)},vi=O,yi=qt,mi=Qt,gi=rr,bi=Q,_i=hi;Bn.f=vi&&!yi?Object.defineProperties:function(e,t){gi(e);for(var r,n=bi(t),i=_i(t),o=i.length,a=0;o>a;)mi.f(e,r=i[a++],n[r]);return e};var wi,Si=ae("document","documentElement"),ki=nt,Ri=Ke("keys"),Ti=function(e){return Ri[e]||(Ri[e]=ki(e))},xi=rr,Ei=Bn,Li=fi,Oi=ii,Ii=Si,Pi=xt,Ci="prototype",Zi="script",Ai=Ti("IE_PROTO"),ji=function(){},Wi=function(e){return"<"+Zi+">"+e+"</"+Zi+">"},Vi=function(e){e.write(Wi("")),e.close();var t=e.parentWindow.Object;return e=null,t},Gi=function(){try{wi=new ActiveXObject("htmlfile")}catch(i){}var e,t,r;Gi="undefined"!=typeof document?document.domain&&wi?Vi(wi):(t=Pi("iframe"),r="java"+Zi+":",t.style.display="none",Ii.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Wi("document.F=Object")),e.close(),e.F):Vi(wi);for(var n=Li.length;n--;)delete Gi[Ci][Li[n]];return Gi()};Oi[Ai]=!0;var Ni=Object.create||function(e,t){var r;return null!==e?(ji[Ci]=xi(e),r=new ji,ji[Ci]=null,r[Ai]=e):r=Gi(),void 0===t?r:Ei.f(r,t)},Xi={},Mi=li,Ui=fi.concat("length","prototype");Xi.f=Object.getOwnPropertyNames||function(e){return Mi(e,Ui)};var Fi={},Di=qn,Hi=Nr,Ki=Hr,Yi=Array,Bi=Math.max,zi=function(e,t,r){for(var n=Hi(e),i=Di(t,n),o=Di(void 0===r?n:r,n),a=Yi(Bi(o-i,0)),u=0;i<o;i++,u++)Ki(a,u,e[i]);return a.length=u,a},Ji=_,Qi=Q,qi=Xi.f,$i=zi,eo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Fi.f=function(e){return eo&&"Window"==Ji(e)?function(e){try{return qi(e)}catch(t){return $i(eo)}}(e):qi(Qi(e))};var to={};to.f=Object.getOwnPropertySymbols;var ro=yr,no=function(e,t,r,n){return n&&n.enumerable?e[t]=r:ro(e,t,r),e},io=Qt,oo=function(e,t,r){return io.f(e,t,r)},ao={},uo=dt;ao.f=uo;var so,co,lo,fo=te,po=qe,ho=ao,vo=Qt.f,yo=function(e){var t=fo.Symbol||(fo.Symbol={});po(t,e)||vo(t,e,{value:ho.f(e)})},mo=C,go=ae,bo=dt,_o=no,wo=function(){var e=go("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=bo("toPrimitive");t&&!t[n]&&_o(t,n,(function(e){return mo(r,this)}),{arity:1})},So=en,ko=Yr?{}.toString:function(){return"[object "+So(this)+"]"},Ro=Yr,To=Qt.f,xo=yr,Eo=qe,Lo=ko,Oo=dt("toStringTag"),Io=function(e,t,r,n){if(e){var i=r?e:e.prototype;Eo(i,Oo)||To(i,Oo,{configurable:!0,value:t}),n&&!Ro&&xo(i,"toString",Lo)}},Po=E,Co=i.WeakMap,Zo=Po(Co)&&/native code/.test(String(Co)),Ao=i,jo=ee,Wo=yr,Vo=qe,Go=De,No=Ti,Xo=ii,Mo="Object already initialized",Uo=Ao.TypeError,Fo=Ao.WeakMap;if(Zo||Go.state){var Do=Go.state||(Go.state=new Fo);Do.get=Do.get,Do.has=Do.has,Do.set=Do.set,so=function(e,t){if(Do.has(e))throw Uo(Mo);return t.facade=e,Do.set(e,t),t},co=function(e){return Do.get(e)||{}},lo=function(e){return Do.has(e)}}else{var Ho=No("state");Xo[Ho]=!0,so=function(e,t){if(Vo(e,Ho))throw Uo(Mo);return t.facade=e,Wo(e,Ho,t),t},co=function(e){return Vo(e,Ho)?e[Ho]:{}},lo=function(e){return Vo(e,Ho)}}var Ko={set:so,get:co,has:lo,enforce:function(e){return lo(e)?co(e):so(e,{})},getterFor:function(e){return function(t){var r;if(!jo(t)||(r=co(t)).type!==e)throw Uo("Incompatible receiver, "+e+" required");return r}}},Yo=Jt,Bo=D,zo=ze,Jo=Nr,Qo=xn,qo=y([].push),$o=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,o=6==e,a=7==e,u=5==e||o;return function(s,c,l,f){for(var d,p,h=zo(s),v=Bo(h),y=Yo(c,l),m=Jo(v),g=0,b=f||Qo,_=t?b(s,m):r||a?b(s,0):void 0;m>g;g++)if((u||g in v)&&(p=y(d=v[g],g,h),e))if(t)_[g]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return g;case 2:qo(_,d)}else switch(e){case 4:return!1;case 7:qo(_,d)}return o?-1:n||i?i:_}},ea={forEach:$o(0),map:$o(1),filter:$o(2),some:$o(3),every:$o(4),find:$o(5),findIndex:$o(6),filterReject:$o(7)},ta=Lr,ra=i,na=C,ia=y,oa=O,aa=be,ua=o,sa=qe,ca=ue,la=rr,fa=Q,da=St,pa=Yn,ha=N,va=Ni,ya=hi,ma=Xi,ga=Fi,ba=to,_a=L,wa=Qt,Sa=Bn,ka=Z,Ra=no,Ta=oo,xa=Ke,Ea=ii,La=nt,Oa=dt,Ia=ao,Pa=yo,Ca=wo,Za=Io,Aa=Ko,ja=ea.forEach,Wa=Ti("hidden"),Va="Symbol",Ga="prototype",Na=Aa.set,Xa=Aa.getterFor(Va),Ma=Object[Ga],Ua=ra.Symbol,Fa=Ua&&Ua[Ga],Da=ra.TypeError,Ha=ra.QObject,Ka=_a.f,Ya=wa.f,Ba=ga.f,za=ka.f,Ja=ia([].push),Qa=xa("symbols"),qa=xa("op-symbols"),$a=xa("wks"),eu=!Ha||!Ha[Ga]||!Ha[Ga].findChild,tu=oa&&ua((function(){return 7!=va(Ya({},"a",{get:function(){return Ya(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Ka(Ma,t);n&&delete Ma[t],Ya(e,t,r),n&&e!==Ma&&Ya(Ma,t,n)}:Ya,ru=function(e,t){var r=Qa[e]=va(Fa);return Na(r,{type:Va,tag:e,description:t}),oa||(r.description=t),r},nu=function(e,t,r){e===Ma&&nu(qa,t,r),la(e);var n=da(t);return la(r),sa(Qa,n)?(r.enumerable?(sa(e,Wa)&&e[Wa][n]&&(e[Wa][n]=!1),r=va(r,{enumerable:ha(0,!1)})):(sa(e,Wa)||Ya(e,Wa,ha(1,{})),e[Wa][n]=!0),tu(e,n,r)):Ya(e,n,r)},iu=function(e,t){la(e);var r=fa(t),n=ya(r).concat(su(r));return ja(n,(function(t){oa&&!na(ou,r,t)||nu(e,t,r[t])})),e},ou=function(e){var t=da(e),r=na(za,this,t);return!(this===Ma&&sa(Qa,t)&&!sa(qa,t))&&(!(r||!sa(this,t)||!sa(Qa,t)||sa(this,Wa)&&this[Wa][t])||r)},au=function(e,t){var r=fa(e),n=da(t);if(r!==Ma||!sa(Qa,n)||sa(qa,n)){var i=Ka(r,n);return!i||!sa(Qa,n)||sa(r,Wa)&&r[Wa][n]||(i.enumerable=!0),i}},uu=function(e){var t=Ba(fa(e)),r=[];return ja(t,(function(e){sa(Qa,e)||sa(Ea,e)||Ja(r,e)})),r},su=function(e){var t=e===Ma,r=Ba(t?qa:fa(e)),n=[];return ja(r,(function(e){!sa(Qa,e)||t&&!sa(Ma,e)||Ja(n,Qa[e])})),n};aa||(Ua=function(){if(ca(Fa,this))throw Da("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?pa(arguments[0]):void 0,t=La(e),r=function(e){this===Ma&&na(r,qa,e),sa(this,Wa)&&sa(this[Wa],t)&&(this[Wa][t]=!1),tu(this,t,ha(1,e))};return oa&&eu&&tu(Ma,t,{configurable:!0,set:r}),ru(t,e)},Ra(Fa=Ua[Ga],"toString",(function(){return Xa(this).tag})),Ra(Ua,"withoutSetter",(function(e){return ru(La(e),e)})),ka.f=ou,wa.f=nu,Sa.f=iu,_a.f=au,ma.f=ga.f=uu,ba.f=su,Ia.f=function(e){return ru(Oa(e),e)},oa&&Ta(Fa,"description",{configurable:!0,get:function(){return Xa(this).description}})),ta({global:!0,constructor:!0,wrap:!0,forced:!aa,sham:!aa},{Symbol:Ua}),ja(ya($a),(function(e){Pa(e)})),ta({target:Va,stat:!0,forced:!aa},{useSetter:function(){eu=!0},useSimple:function(){eu=!1}}),ta({target:"Object",stat:!0,forced:!aa,sham:!oa},{create:function(e,t){return void 0===t?va(e):iu(va(e),t)},defineProperty:nu,defineProperties:iu,getOwnPropertyDescriptor:au}),ta({target:"Object",stat:!0,forced:!aa},{getOwnPropertyNames:uu}),Ca(),Za(Ua,Va),Ea[Wa]=!0;var cu=be&&!!Symbol.for&&!!Symbol.keyFor,lu=Lr,fu=ae,du=qe,pu=Yn,hu=Ke,vu=cu,yu=hu("string-to-symbol-registry"),mu=hu("symbol-to-string-registry");lu({target:"Symbol",stat:!0,forced:!vu},{for:function(e){var t=pu(e);if(du(yu,t))return yu[t];var r=fu("Symbol")(t);return yu[t]=r,mu[r]=t,r}});var gu=Lr,bu=qe,_u=Te,wu=Ee,Su=cu,ku=Ke("symbol-to-string-registry");gu({target:"Symbol",stat:!0,forced:!Su},{keyFor:function(e){if(!_u(e))throw TypeError(wu(e)+" is not a symbol");if(bu(ku,e))return ku[e]}});var Ru=y([].slice),Tu=Ir,xu=E,Eu=_,Lu=Yn,Ou=y([].push),Iu=Lr,Pu=ae,Cu=f,Zu=C,Au=y,ju=o,Wu=E,Vu=Te,Gu=Ru,Nu=function(e){if(xu(e))return e;if(Tu(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];"string"==typeof i?Ou(r,i):"number"!=typeof i&&"Number"!=Eu(i)&&"String"!=Eu(i)||Ou(r,Lu(i))}var o=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(Tu(this))return t;for(var n=0;n<o;n++)if(r[n]===e)return t}}},Xu=be,Mu=String,Uu=Pu("JSON","stringify"),Fu=Au(/./.exec),Du=Au("".charAt),Hu=Au("".charCodeAt),Ku=Au("".replace),Yu=Au(1..toString),Bu=/[\uD800-\uDFFF]/g,zu=/^[\uD800-\uDBFF]$/,Ju=/^[\uDC00-\uDFFF]$/,Qu=!Xu||ju((function(){var e=Pu("Symbol")();return"[null]"!=Uu([e])||"{}"!=Uu({a:e})||"{}"!=Uu(Object(e))})),qu=ju((function(){return'"\\udf06\\ud834"'!==Uu("\udf06\ud834")||'"\\udead"'!==Uu("\udead")})),$u=function(e,t){var r=Gu(arguments),n=Nu(t);if(Wu(n)||void 0!==e&&!Vu(e))return r[1]=function(e,t){if(Wu(n)&&(t=Zu(n,this,Mu(e),t)),!Vu(t))return t},Cu(Uu,null,r)},es=function(e,t,r){var n=Du(r,t-1),i=Du(r,t+1);return Fu(zu,e)&&!Fu(Ju,i)||Fu(Ju,e)&&!Fu(zu,n)?"\\u"+Yu(Hu(e,0),16):e};Uu&&Iu({target:"JSON",stat:!0,arity:3,forced:Qu||qu},{stringify:function(e,t,r){var n=Gu(arguments),i=Cu(Qu?$u:Uu,null,n);return qu&&"string"==typeof i?Ku(i,Bu,es):i}});var ts=to,rs=ze;Lr({target:"Object",stat:!0,forced:!be||o((function(){ts.f(1)}))},{getOwnPropertySymbols:function(e){var t=ts.f;return t?t(rs(e)):[]}}),yo("asyncIterator"),yo("hasInstance"),yo("isConcatSpreadable"),yo("iterator"),yo("match"),yo("matchAll"),yo("replace"),yo("search"),yo("species"),yo("split");var ns=wo;yo("toPrimitive"),ns();var is=ae,os=Io;yo("toStringTag"),os(is("Symbol"),"Symbol"),yo("unscopables"),Io(i.JSON,"JSON",!0);var as,us,ss,cs=te.Symbol,ls={},fs=O,ds=qe,ps=Function.prototype,hs=fs&&Object.getOwnPropertyDescriptor,vs=ds(ps,"name"),ys={EXISTS:vs,PROPER:vs&&"something"===function(){}.name,CONFIGURABLE:vs&&(!fs||fs&&hs(ps,"name").configurable)},ms=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),gs=qe,bs=E,_s=ze,ws=ms,Ss=Ti("IE_PROTO"),ks=Object,Rs=ks.prototype,Ts=ws?ks.getPrototypeOf:function(e){var t=_s(e);if(gs(t,Ss))return t[Ss];var r=t.constructor;return bs(r)&&t instanceof r?r.prototype:t instanceof ks?Rs:null},xs=o,Es=E,Ls=ee,Os=Ni,Is=Ts,Ps=no,Cs=dt("iterator"),Zs=!1;[].keys&&("next"in(ss=[].keys())?(us=Is(Is(ss)))!==Object.prototype&&(as=us):Zs=!0);var As=!Ls(as)||xs((function(){var e={};return as[Cs].call(e)!==e}));Es((as=As?{}:Os(as))[Cs])||Ps(as,Cs,(function(){return this}));var js={IteratorPrototype:as,BUGGY_SAFARI_ITERATORS:Zs},Ws=js.IteratorPrototype,Vs=Ni,Gs=N,Ns=Io,Xs=ls,Ms=function(){return this},Us=function(e,t,r,n){var i=t+" Iterator";return e.prototype=Vs(Ws,{next:Gs(+!n,r)}),Ns(e,i,!1,!0),Xs[i]=Ms,e},Fs=y,Ds=Pe,Hs=E,Ks=String,Ys=TypeError,Bs=function(e,t,r){try{return Fs(Ds(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},zs=rr,Js=function(e){if("object"==typeof e||Hs(e))return e;throw Ys("Can't set "+Ks(e)+" as a prototype")},Qs=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Bs(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return zs(r),Js(n),t?e(r,n):r.__proto__=n,r}}():void 0),qs=Lr,$s=C,ec=ys,tc=Us,rc=Ts,nc=Io,ic=no,oc=ls,ac=js,uc=ec.PROPER,sc=ac.BUGGY_SAFARI_ITERATORS,cc=dt("iterator"),lc="keys",fc="values",dc="entries",pc=function(){return this},hc=function(e,t,r,n,i,o,a){tc(r,t,n);var u,s,c,l=function(e){if(e===i&&v)return v;if(!sc&&e in p)return p[e];switch(e){case lc:case fc:case dc:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[cc]||p["@@iterator"]||i&&p[i],v=!sc&&h||l(i),y="Array"==t&&p.entries||h;if(y&&(u=rc(y.call(new e)))!==Object.prototype&&u.next&&(nc(u,f,!0,!0),oc[f]=pc),uc&&i==fc&&h&&h.name!==fc&&(d=!0,v=function(){return $s(h,this)}),i)if(s={values:l(fc),keys:o?v:l(lc),entries:l(dc)},a)for(c in s)(sc||d||!(c in p))&&ic(p,c,s[c]);else qs({target:t,proto:!0,forced:sc||d},s);return a&&p[cc]!==v&&ic(p,cc,v,{name:i}),oc[t]=v,s},vc=function(e,t){return{value:e,done:t}},yc=Q,mc=ls,gc=Ko;Qt.f;var bc=hc,_c=vc,wc="Array Iterator",Sc=gc.set,kc=gc.getterFor(wc);bc(Array,"Array",(function(e,t){Sc(this,{type:wc,target:yc(e),index:0,kind:t})}),(function(){var e=kc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,_c(void 0,!0)):_c("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),mc.Arguments=mc.Array;var Rc={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},Tc=i,xc=en,Ec=yr,Lc=ls,Oc=dt("toStringTag");for(var Ic in Rc){var Pc=Tc[Ic],Cc=Pc&&Pc.prototype;Cc&&xc(Cc)!==Oc&&Ec(Cc,Oc,Ic),Lc[Ic]=Lc.Array}var Zc=cs;yo("dispose");var Ac=Zc;yo("asyncDispose");var jc=Lr,Wc=y,Vc=ae("Symbol"),Gc=Vc.keyFor,Nc=Wc(Vc.prototype.valueOf);jc({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==Gc(Nc(e))}catch(t){return!1}}});for(var Xc=Lr,Mc=Ke,Uc=ae,Fc=y,Dc=Te,Hc=dt,Kc=Uc("Symbol"),Yc=Kc.isWellKnown,Bc=Uc("Object","getOwnPropertyNames"),zc=Fc(Kc.prototype.valueOf),Jc=Mc("wks"),Qc=0,qc=Bc(Kc),$c=qc.length;Qc<$c;Qc++)try{var el=qc[Qc];Dc(Kc[el])&&Hc(el)}catch(tC){}Xc({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(Yc&&Yc(e))return!0;try{for(var t=zc(e),r=0,n=Bc(Jc),i=n.length;r<i;r++)if(Jc[n[r]]==t)return!0}catch(tC){}return!1}}),yo("matcher"),yo("metadataKey"),yo("observable"),yo("metadata"),yo("patternMatch"),yo("replaceAll");var tl=Ac,rl=r(tl),nl=y,il=Ar,ol=Yn,al=B,ul=nl("".charAt),sl=nl("".charCodeAt),cl=nl("".slice),ll=function(e){return function(t,r){var n,i,o=ol(al(t)),a=il(r),u=o.length;return a<0||a>=u?e?"":void 0:(n=sl(o,a))<55296||n>56319||a+1===u||(i=sl(o,a+1))<56320||i>57343?e?ul(o,a):n:e?cl(o,a,a+2):i-56320+(n-55296<<10)+65536}},fl={codeAt:ll(!1),charAt:ll(!0)},dl=fl.charAt,pl=Yn,hl=Ko,vl=hc,yl=vc,ml="String Iterator",gl=hl.set,bl=hl.getterFor(ml);vl(String,"String",(function(e){gl(this,{type:ml,string:pl(e),index:0})}),(function(){var e,t=bl(this),r=t.string,n=t.index;return n>=r.length?yl(void 0,!0):(e=dl(r,n),t.index+=e.length,yl(e,!1))}));var _l=ao.f("iterator"),wl=r(_l);function Sl(e){return(Sl="function"==typeof rl&&"symbol"==typeof wl?function(e){return typeof e}:function(e){return e&&"function"==typeof rl&&e.constructor===rl&&e!==rl.prototype?"symbol":typeof e})(e)}var kl=ze,Rl=hi;Lr({target:"Object",stat:!0,forced:o((function(){Rl(1)}))},{keys:function(e){return Rl(kl(e))}});var Tl=r(te.Object.keys),xl=r(te.Object.getOwnPropertySymbols),El=ea.filter;Lr({target:"Array",proto:!0,forced:!In("filter")},{filter:function(e){return El(this,e,arguments.length>1?arguments[1]:void 0)}});var Ll=te,Ol=function(e){return Ll[e+"Prototype"]},Il=Ol("Array").filter,Pl=ue,Cl=Il,Zl=Array.prototype,Al=r((function(e){var t=e.filter;return e===Zl||Pl(Zl,e)&&t===Zl.filter?Cl:t})),jl={exports:{}},Wl=Lr,Vl=o,Gl=Q,Nl=L.f,Xl=O;Wl({target:"Object",stat:!0,forced:!Xl||Vl((function(){Nl(1)})),sham:!Xl},{getOwnPropertyDescriptor:function(e,t){return Nl(Gl(e),t)}});var Ml=te.Object,Ul=jl.exports=function(e,t){return Ml.getOwnPropertyDescriptor(e,t)};Ml.getOwnPropertyDescriptor.sham&&(Ul.sham=!0);var Fl=r(jl.exports),Dl=o,Hl=function(e,t){var r=[][e];return!!r&&Dl((function(){r.call(null,t||function(){return 1},1)}))},Kl=ea.forEach,Yl=Hl("forEach")?[].forEach:function(e){return Kl(this,e,arguments.length>1?arguments[1]:void 0)};Lr({target:"Array",proto:!0,forced:[].forEach!=Yl},{forEach:Yl});var Bl=Ol("Array").forEach,zl=en,Jl=qe,Ql=ue,ql=Bl,$l=Array.prototype,ef={DOMTokenList:!0,NodeList:!0},tf=r((function(e){var t=e.forEach;return e===$l||Ql($l,e)&&t===$l.forEach||Jl(ef,zl(e))?ql:t})),rf=ae,nf=Xi,of=to,af=rr,uf=y([].concat),sf=rf("Reflect","ownKeys")||function(e){var t=nf.f(af(e)),r=of.f;return r?uf(t,r(e)):t},cf=sf,lf=Q,ff=L,df=Hr;Lr({target:"Object",stat:!0,sham:!O},{getOwnPropertyDescriptors:function(e){for(var t,r,n=lf(e),i=ff.f,o=cf(n),a={},u=0;o.length>u;)void 0!==(r=i(n,t=o[u++]))&&df(a,t,r);return a}});var pf=r(te.Object.getOwnPropertyDescriptors),hf={exports:{}},vf=Lr,yf=O,mf=Bn.f;vf({target:"Object",stat:!0,forced:Object.defineProperties!==mf,sham:!yf},{defineProperties:mf});var gf=te.Object,bf=hf.exports=function(e,t){return gf.defineProperties(e,t)};gf.defineProperties.sham&&(bf.sham=!0);var _f=r(hf.exports),wf={exports:{}},Sf=Lr,kf=O,Rf=Qt.f;Sf({target:"Object",stat:!0,forced:Object.defineProperty!==Rf,sham:!kf},{defineProperty:Rf});var Tf=te.Object,xf=wf.exports=function(e,t,r){return Tf.defineProperty(e,t,r)};Tf.defineProperty.sham&&(xf.sham=!0);var Ef=r(wf.exports),Lf=r(tl);Lr({target:"Object",stat:!0,sham:!O},{create:Ni});var Of=te.Object,If=r((function(e,t){return Of.create(e,t)})),Pf=ze,Cf=Ts,Zf=ms;Lr({target:"Object",stat:!0,forced:o((function(){Cf(1)})),sham:!Zf},{getPrototypeOf:function(e){return Cf(Pf(e))}});var Af=r(te.Object.getPrototypeOf);Lr({target:"Object",stat:!0},{setPrototypeOf:Qs});var jf=r(te.Object.setPrototypeOf),Wf=qe,Vf=sf,Gf=L,Nf=Qt,Xf=ee,Mf=yr,Uf=Error,Ff=y("".replace),Df=String(Uf("zxcasd").stack),Hf=/\n\s*at [^:]*:[^\n]*/,Kf=Hf.test(Df),Yf=N,Bf=!o((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Yf(1,7)),7!==e.stack)})),zf=yr,Jf=function(e,t){if(Kf&&"string"==typeof e&&!Uf.prepareStackTrace)for(;t--;)e=Ff(e,Hf,"");return e},Qf=Bf,qf=Error.captureStackTrace,$f=ls,ed=dt("iterator"),td=Array.prototype,rd=function(e){return void 0!==e&&($f.Array===e||td[ed]===e)},nd=en,id=Ae,od=H,ad=ls,ud=dt("iterator"),sd=function(e){if(!od(e))return id(e,ud)||id(e,"@@iterator")||ad[nd(e)]},cd=C,ld=Pe,fd=rr,dd=Ee,pd=sd,hd=TypeError,vd=function(e,t){var r=arguments.length<2?pd(e):t;if(ld(r))return fd(cd(r,e));throw hd(dd(e)+" is not iterable")},yd=C,md=rr,gd=Ae,bd=function(e,t,r){var n,i;md(e);try{if(!(n=gd(e,"return"))){if("throw"===t)throw r;return r}n=yd(n,e)}catch(tC){i=!0,n=tC}if("throw"===t)throw r;if(i)throw n;return md(n),r},_d=Jt,wd=C,Sd=rr,kd=Ee,Rd=rd,Td=Nr,xd=ue,Ed=vd,Ld=sd,Od=bd,Id=TypeError,Pd=function(e,t){this.stopped=e,this.result=t},Cd=Pd.prototype,Zd=function(e,t,r){var n,i,o,a,u,s,c,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),v=_d(t,l),y=function(e){return n&&Od(n,"normal",e),new Pd(!0,e)},m=function(e){return f?(Sd(e),h?v(e[0],e[1],y):v(e[0],e[1])):h?v(e,y):v(e)};if(d)n=e.iterator;else if(p)n=e;else{if(!(i=Ld(e)))throw Id(kd(e)+" is not iterable");if(Rd(i)){for(o=0,a=Td(e);a>o;o++)if((u=m(e[o]))&&xd(Cd,u))return u;return new Pd(!1)}n=Ed(e,i)}for(s=d?e.next:n.next;!(c=wd(s,n)).done;){try{u=m(c.value)}catch(tC){Od(n,"throw",tC)}if("object"==typeof u&&u&&xd(Cd,u))return u}return new Pd(!1)},Ad=Yn,jd=Lr,Wd=ue,Vd=Ts,Gd=Qs,Nd=function(e,t,r){for(var n=Vf(t),i=Nf.f,o=Gf.f,a=0;a<n.length;a++){var u=n[a];Wf(e,u)||r&&Wf(r,u)||i(e,u,o(t,u))}},Xd=Ni,Md=yr,Ud=N,Fd=function(e,t){Xf(t)&&"cause"in t&&Mf(e,"cause",t.cause)},Dd=function(e,t,r,n){Qf&&(qf?qf(e,t):zf(e,"stack",Jf(r,n)))},Hd=Zd,Kd=function(e,t){return void 0===e?arguments.length<2?"":t:Ad(e)},Yd=dt("toStringTag"),Bd=Error,zd=[].push,Jd=function(e,t){var r,n=Wd(Qd,this);Gd?r=Gd(Bd(),n?Vd(this):Qd):(r=n?this:Xd(Qd),Md(r,Yd,"Error")),void 0!==t&&Md(r,"message",Kd(t)),Dd(r,Jd,r.stack,1),arguments.length>2&&Fd(r,arguments[2]);var i=[];return Hd(e,zd,{that:i}),Md(r,"errors",i),r};Gd?Gd(Jd,Bd):Nd(Jd,Bd,{name:!0});var Qd=Jd.prototype=Xd(Bd.prototype,{constructor:Ud(1,Jd),message:Ud(1,""),name:Ud(1,"AggregateError")});jd({global:!0,constructor:!0,arity:2},{AggregateError:Jd});var qd,$d,ep,tp,rp="undefined"!=typeof process&&"process"==_(process),np=ae,ip=oo,op=O,ap=dt("species"),up=function(e){var t=np(e);op&&t&&!t[ap]&&ip(t,ap,{configurable:!0,get:function(){return this}})},sp=ue,cp=TypeError,lp=function(e,t){if(sp(t,e))return e;throw cp("Incorrect invocation")},fp=bn,dp=Ee,pp=TypeError,hp=function(e){if(fp(e))return e;throw pp(dp(e)+" is not a constructor")},vp=rr,yp=hp,mp=H,gp=dt("species"),bp=function(e,t){var r,n=vp(e).constructor;return void 0===n||mp(r=vp(n)[gp])?t:yp(r)},_p=TypeError,wp=function(e,t){if(e<t)throw _p("Not enough arguments");return e},Sp=/(?:ipad|iphone|ipod).*applewebkit/i.test(se),kp=i,Rp=f,Tp=Jt,xp=E,Ep=qe,Lp=o,Op=Si,Ip=Ru,Pp=xt,Cp=wp,Zp=Sp,Ap=rp,jp=kp.setImmediate,Wp=kp.clearImmediate,Vp=kp.process,Gp=kp.Dispatch,Np=kp.Function,Xp=kp.MessageChannel,Mp=kp.String,Up=0,Fp={},Dp="onreadystatechange";Lp((function(){qd=kp.location}));var Hp=function(e){if(Ep(Fp,e)){var t=Fp[e];delete Fp[e],t()}},Kp=function(e){return function(){Hp(e)}},Yp=function(e){Hp(e.data)},Bp=function(e){kp.postMessage(Mp(e),qd.protocol+"//"+qd.host)};jp&&Wp||(jp=function(e){Cp(arguments.length,1);var t=xp(e)?e:Np(e),r=Ip(arguments,1);return Fp[++Up]=function(){Rp(t,void 0,r)},$d(Up),Up},Wp=function(e){delete Fp[e]},Ap?$d=function(e){Vp.nextTick(Kp(e))}:Gp&&Gp.now?$d=function(e){Gp.now(Kp(e))}:Xp&&!Zp?(tp=(ep=new Xp).port2,ep.port1.onmessage=Yp,$d=Tp(tp.postMessage,tp)):kp.addEventListener&&xp(kp.postMessage)&&!kp.importScripts&&qd&&"file:"!==qd.protocol&&!Lp(Bp)?($d=Bp,kp.addEventListener("message",Yp,!1)):$d=Dp in Pp("script")?function(e){Op.appendChild(Pp("script"))[Dp]=function(){Op.removeChild(this),Hp(e)}}:function(e){setTimeout(Kp(e),0)});var zp={set:jp,clear:Wp},Jp=function(){this.head=null,this.tail=null};Jp.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 Qp,qp,$p,eh,th,rh=Jp,nh=/ipad|iphone|ipod/i.test(se)&&"undefined"!=typeof Pebble,ih=/web0s(?!.*chrome)/i.test(se),oh=i,ah=Jt,uh=L.f,sh=zp.set,ch=rh,lh=Sp,fh=nh,dh=ih,ph=rp,hh=oh.MutationObserver||oh.WebKitMutationObserver,vh=oh.document,yh=oh.process,mh=oh.Promise,gh=uh(oh,"queueMicrotask"),bh=gh&&gh.value;if(!bh){var _h=new ch,wh=function(){var e,t;for(ph&&(e=yh.domain)&&e.exit();t=_h.get();)try{t()}catch(tC){throw _h.head&&Qp(),tC}e&&e.enter()};lh||ph||dh||!hh||!vh?!fh&&mh&&mh.resolve?((eh=mh.resolve(void 0)).constructor=mh,th=ah(eh.then,eh),Qp=function(){th(wh)}):ph?Qp=function(){yh.nextTick(wh)}:(sh=ah(sh,oh),Qp=function(){sh(wh)}):(qp=!0,$p=vh.createTextNode(""),new hh(wh).observe($p,{characterData:!0}),Qp=function(){$p.data=qp=!qp}),bh=function(e){_h.head||Qp(),_h.add(e)}}var Sh=bh,kh=function(e){try{return{error:!1,value:e()}}catch(tC){return{error:!0,value:tC}}},Rh=i.Promise,Th="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,xh=!Th&&!rp&&"object"==typeof window&&"object"==typeof document,Eh=i,Lh=Rh,Oh=E,Ih=Kt,Ph=on,Ch=dt,Zh=xh,Ah=Th,jh=ve,Wh=Lh&&Lh.prototype,Vh=Ch("species"),Gh=!1,Nh=Oh(Eh.PromiseRejectionEvent),Xh={CONSTRUCTOR:Ih("Promise",(function(){var e=Ph(Lh),t=e!==String(Lh);if(!t&&66===jh)return!0;if(!Wh.catch||!Wh.finally)return!0;if(!jh||jh<51||!/native code/.test(e)){var r=new Lh((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[Vh]=n,!(Gh=r.then((function(){}))instanceof n))return!0}return!t&&(Zh||Ah)&&!Nh})),REJECTION_EVENT:Nh,SUBCLASSING:Gh},Mh={},Uh=Pe,Fh=TypeError,Dh=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw Fh("Bad Promise constructor");t=e,r=n})),this.resolve=Uh(t),this.reject=Uh(r)};Mh.f=function(e){return new Dh(e)};var Hh,Kh,Yh=Lr,Bh=rp,zh=i,Jh=C,Qh=no,qh=Io,$h=up,ev=Pe,tv=E,rv=ee,nv=lp,iv=bp,ov=zp.set,av=Sh,uv=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(tC){}},sv=kh,cv=rh,lv=Ko,fv=Rh,dv=Xh,pv=Mh,hv="Promise",vv=dv.CONSTRUCTOR,yv=dv.REJECTION_EVENT,mv=lv.getterFor(hv),gv=lv.set,bv=fv&&fv.prototype,_v=fv,wv=bv,Sv=zh.TypeError,kv=zh.document,Rv=zh.process,Tv=pv.f,xv=Tv,Ev=!!(kv&&kv.createEvent&&zh.dispatchEvent),Lv="unhandledrejection",Ov=function(e){var t;return!(!rv(e)||!tv(t=e.then))&&t},Iv=function(e,t){var r,n,i,o=t.value,a=1==t.state,u=a?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{u?(a||(2===t.rejection&&jv(t),t.rejection=1),!0===u?r=o:(l&&l.enter(),r=u(o),l&&(l.exit(),i=!0)),r===e.promise?c(Sv("Promise-chain cycle")):(n=Ov(r))?Jh(n,r,s,c):s(r)):c(o)}catch(tC){l&&!i&&l.exit(),c(tC)}},Pv=function(e,t){e.notified||(e.notified=!0,av((function(){for(var r,n=e.reactions;r=n.get();)Iv(r,e);e.notified=!1,t&&!e.rejection&&Zv(e)})))},Cv=function(e,t,r){var n,i;Ev?((n=kv.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),zh.dispatchEvent(n)):n={promise:t,reason:r},!yv&&(i=zh["on"+e])?i(n):e===Lv&&uv("Unhandled promise rejection",r)},Zv=function(e){Jh(ov,zh,(function(){var t,r=e.facade,n=e.value;if(Av(e)&&(t=sv((function(){Bh?Rv.emit("unhandledRejection",n,r):Cv(Lv,r,n)})),e.rejection=Bh||Av(e)?2:1,t.error))throw t.value}))},Av=function(e){return 1!==e.rejection&&!e.parent},jv=function(e){Jh(ov,zh,(function(){var t=e.facade;Bh?Rv.emit("rejectionHandled",t):Cv("rejectionhandled",t,e.value)}))},Wv=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,Pv(e,!0))},Gv=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw Sv("Promise can't be resolved itself");var n=Ov(t);n?av((function(){var r={done:!1};try{Jh(n,t,Wv(Gv,r,e),Wv(Vv,r,e))}catch(tC){Vv(r,tC,e)}})):(e.value=t,e.state=1,Pv(e,!1))}catch(tC){Vv({done:!1},tC,e)}}};vv&&(wv=(_v=function(e){nv(this,wv),ev(e),Jh(Hh,this);var t=mv(this);try{e(Wv(Gv,t),Wv(Vv,t))}catch(tC){Vv(t,tC)}}).prototype,(Hh=function(e){gv(this,{type:hv,done:!1,notified:!1,parent:!1,reactions:new cv,rejection:!1,state:0,value:void 0})}).prototype=Qh(wv,"then",(function(e,t){var r=mv(this),n=Tv(iv(this,_v));return r.parent=!0,n.ok=!tv(e)||e,n.fail=tv(t)&&t,n.domain=Bh?Rv.domain:void 0,0==r.state?r.reactions.add(n):av((function(){Iv(n,r)})),n.promise})),Kh=function(){var e=new Hh,t=mv(e);this.promise=e,this.resolve=Wv(Gv,t),this.reject=Wv(Vv,t)},pv.f=Tv=function(e){return e===_v||undefined===e?new Kh(e):xv(e)}),Yh({global:!0,constructor:!0,wrap:!0,forced:vv},{Promise:_v}),qh(_v,hv,!1,!0),$h(hv);var Nv=dt("iterator"),Xv=!1;try{var Mv=0,Uv={next:function(){return{done:!!Mv++}},return:function(){Xv=!0}};Uv[Nv]=function(){return this},Array.from(Uv,(function(){throw 2}))}catch(tC){}var Fv=function(e,t){if(!t&&!Xv)return!1;var r=!1;try{var n={};n[Nv]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(tC){}return r},Dv=Rh,Hv=Xh.CONSTRUCTOR||!Fv((function(e){Dv.all(e).then(void 0,(function(){}))})),Kv=C,Yv=Pe,Bv=Mh,zv=kh,Jv=Zd;Lr({target:"Promise",stat:!0,forced:Hv},{all:function(e){var t=this,r=Bv.f(t),n=r.resolve,i=r.reject,o=zv((function(){var r=Yv(t.resolve),o=[],a=0,u=1;Jv(e,(function(e){var s=a++,c=!1;u++,Kv(r,t,e).then((function(e){c||(c=!0,o[s]=e,--u||n(o))}),i)})),--u||n(o)}));return o.error&&i(o.value),r.promise}});var Qv=Lr,qv=Xh.CONSTRUCTOR;Rh&&Rh.prototype,Qv({target:"Promise",proto:!0,forced:qv,real:!0},{catch:function(e){return this.then(void 0,e)}});var $v=C,ey=Pe,ty=Mh,ry=kh,ny=Zd;Lr({target:"Promise",stat:!0,forced:Hv},{race:function(e){var t=this,r=ty.f(t),n=r.reject,i=ry((function(){var i=ey(t.resolve);ny(e,(function(e){$v(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var iy=C,oy=Mh;Lr({target:"Promise",stat:!0,forced:Xh.CONSTRUCTOR},{reject:function(e){var t=oy.f(this);return iy(t.reject,void 0,e),t.promise}});var ay=rr,uy=ee,sy=Mh,cy=function(e,t){if(ay(e),uy(t)&&t.constructor===e)return t;var r=sy.f(e);return(0,r.resolve)(t),r.promise},ly=Lr,fy=Rh,dy=Xh.CONSTRUCTOR,py=cy,hy=ae("Promise"),vy=!dy;ly({target:"Promise",stat:!0,forced:true},{resolve:function(e){return py(vy&&this===hy?fy:this,e)}});var yy=C,my=Pe,gy=Mh,by=kh,_y=Zd;Lr({target:"Promise",stat:!0,forced:Hv},{allSettled:function(e){var t=this,r=gy.f(t),n=r.resolve,i=r.reject,o=by((function(){var r=my(t.resolve),i=[],o=0,a=1;_y(e,(function(e){var u=o++,s=!1;a++,yy(r,t,e).then((function(e){s||(s=!0,i[u]={status:"fulfilled",value:e},--a||n(i))}),(function(e){s||(s=!0,i[u]={status:"rejected",reason:e},--a||n(i))}))})),--a||n(i)}));return o.error&&i(o.value),r.promise}});var wy=C,Sy=Pe,ky=ae,Ry=Mh,Ty=kh,xy=Zd,Ey="No one promise resolved";Lr({target:"Promise",stat:!0,forced:Hv},{any:function(e){var t=this,r=ky("AggregateError"),n=Ry.f(t),i=n.resolve,o=n.reject,a=Ty((function(){var n=Sy(t.resolve),a=[],u=0,s=1,c=!1;xy(e,(function(e){var l=u++,f=!1;s++,wy(n,t,e).then((function(e){f||c||(c=!0,i(e))}),(function(e){f||c||(f=!0,a[l]=e,--s||o(new r(a,Ey)))}))})),--s||o(new r(a,Ey))}));return a.error&&o(a.value),n.promise}});var Ly=Lr,Oy=Rh,Iy=o,Py=ae,Cy=E,Zy=bp,Ay=cy,jy=Oy&&Oy.prototype;Ly({target:"Promise",proto:!0,real:!0,forced:!!Oy&&Iy((function(){jy.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=Zy(this,Py("Promise")),r=Cy(e);return this.then(r?function(r){return Ay(t,e()).then((function(){return r}))}:e,r?function(r){return Ay(t,e()).then((function(){throw r}))}:e)}});var Wy=te.Promise,Vy=Mh,Gy=kh;Lr({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Vy.f(this),r=Gy(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var Ny=r(Wy),Xy=Lr,My=Ir,Uy=y([].reverse),Fy=[1,2];Xy({target:"Array",proto:!0,forced:String(Fy)===String(Fy.reverse())},{reverse:function(){return My(this)&&(this.length=this.length),Uy(this)}});var Dy=Ol("Array").reverse,Hy=ue,Ky=Dy,Yy=Array.prototype,By=r((function(e){var t=e.reverse;return e===Yy||Hy(Yy,e)&&t===Yy.reverse?Ky:t})),zy=Lr,Jy=Ir,Qy=bn,qy=ee,$y=qn,em=Nr,tm=Q,rm=Hr,nm=dt,im=Ru,om=In("slice"),am=nm("species"),um=Array,sm=Math.max;zy({target:"Array",proto:!0,forced:!om},{slice:function(e,t){var r,n,i,o=tm(this),a=em(o),u=$y(e,a),s=$y(void 0===t?a:t,a);if(Jy(o)&&(r=o.constructor,(Qy(r)&&(r===um||Jy(r.prototype))||qy(r)&&null===(r=r[am]))&&(r=void 0),r===um||void 0===r))return im(o,u,s);for(n=new(void 0===r?um:r)(sm(s-u,0)),i=0;u<s;u++,i++)u in o&&rm(n,i,o[u]);return n.length=i,n}});var cm=Ol("Array").slice,lm=ue,fm=cm,dm=Array.prototype,pm=r((function(e){var t=e.slice;return e===dm||lm(dm,e)&&t===dm.slice?fm:t})),hm=y,vm=Pe,ym=ee,mm=qe,gm=Ru,bm=a,_m=Function,wm=hm([].concat),Sm=hm([].join),km={},Rm=bm?_m.bind:function(e){var t=vm(this),r=t.prototype,n=gm(arguments,1),i=function(){var r=wm(n,gm(arguments));return this instanceof i?function(e,t,r){if(!mm(km,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";km[t]=_m("C,a","return new C("+Sm(n,",")+")")}return km[t](e,r)}(t,r.length,r):t.apply(e,r)};return ym(r)&&(i.prototype=r),i},Tm=Rm;Lr({target:"Function",proto:!0,forced:Function.bind!==Tm},{bind:Tm});var xm=Ol("Function").bind,Em=ue,Lm=xm,Om=Function.prototype,Im=r((function(e){var t=e.bind;return e===Om||Em(Om,e)&&t===Om.bind?Lm:t})),Pm=Lr,Cm=f,Zm=Rm,Am=hp,jm=rr,Wm=ee,Vm=Ni,Gm=o,Nm=ae("Reflect","construct"),Xm=Object.prototype,Mm=[].push,Um=Gm((function(){function e(){}return!(Nm((function(){}),[],e)instanceof e)})),Fm=!Gm((function(){Nm((function(){}))})),Dm=Um||Fm;Pm({target:"Reflect",stat:!0,forced:Dm,sham:Dm},{construct:function(e,t){Am(e),jm(t);var r=arguments.length<3?e:Am(arguments[2]);if(Fm&&!Um)return Nm(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 Cm(Mm,n,t),new(Cm(Zm,e,n))}var i=r.prototype,o=Vm(Wm(i)?i:Xm),a=Cm(e,o,t);return Wm(a)?a:o}});var Hm=r(te.Reflect.construct),Km=r(ao.f("toPrimitive"));function Ym(e,t){var r=Tl(e);if(xl){var n=xl(e);t&&(n=Al(n).call(n,(function(t){return Fl(e,t).enumerable}))),r.push.apply(r,n)}return r}function Bm(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?tf(r=Ym(Object(i),!0)).call(r,(function(t){tg(e,t,i[t])})):pf?_f(e,pf(i)):tf(n=Ym(Object(i))).call(n,(function(t){Ef(e,t,Fl(i,t))}))}return e}function zm(){zm=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Ef||function(e,t,r){e[t]=r.value},i="function"==typeof Lf?Lf:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Ef(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(E){s=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var o=t&&t.prototype instanceof d?t:d,a=If(o.prototype),u=new R(i||[]);return n(a,"_invoke",{value:_(e,r,u)}),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 d(){}function p(){}function h(){}var v={};s(v,o,(function(){return this}));var y=Af&&Af(Af(T([])));y&&y!==t&&r.call(y,o)&&(v=y);var m=h.prototype=d.prototype=If(v);function g(e){var t;tf(t=["next","throw","return"]).call(t,(function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function i(n,o,a,u){var s=l(e[n],e,o);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==Sl(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,u)}),(function(e){i("throw",e,a,u)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,u)}))}u(s.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 u=w(a,r);if(u){if(u===f)continue;return u}}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 s=l(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.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 S(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 R(e){this.tryEntries=[{tryLoc:"root"}],tf(e).call(e,S,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:x}}function x(){return{value:void 0,done:!0}}return p.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,u,"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 jf?jf(e,h):(e.__proto__=h,s(e,u,"GeneratorFunction")),e.prototype=If(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),s(b.prototype,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Ny);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()}))},g(m),s(m,u,"Generator"),s(m,o,(function(){return this})),s(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return By(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,R.prototype={constructor:R,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,tf(t=this.tryEntries).call(t,k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+pm(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 u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)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 Jm(e,t,r,n,i,o,a){try{var u=e[o](a),s=u.value}catch(tC){return void r(tC)}u.done?t(s):Ny.resolve(s).then(n,i)}function Qm(e){return function(){var t=this,r=arguments;return new Ny((function(n,i){var o=e.apply(t,r);function a(e){Jm(o,n,i,a,u,"next",e)}function u(e){Jm(o,n,i,a,u,"throw",e)}a(void 0)}))}}function qm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $m(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),Ef(e,ug(n.key),n)}}function eg(e,t,r){return t&&$m(e.prototype,t),r&&$m(e,r),Ef(e,"prototype",{writable:!1}),e}function tg(e,t,r){return(t=ug(t))in e?Ef(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rg(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}}),Ef(e,"prototype",{writable:!1}),t&&ig(e,t)}function ng(e){var t;return(ng=jf?Im(t=Af).call(t):function(e){return e.__proto__||Af(e)})(e)}function ig(e,t){var r;return(ig=jf?Im(r=jf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function og(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ag(e){var t=function(){if("undefined"==typeof Reflect||!Hm)return!1;if(Hm.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Hm(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ng(e);if(t){var i=ng(this).constructor;r=Hm(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Sl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return og(e)}(this,r)}}function ug(e){var t=function(e,t){if("object"!==Sl(e)||null===e)return e;var r=e[Km];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Sl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Sl(t)?t:String(t)}var sg,cg=Ol("Array").concat,lg=ue,fg=cg,dg=Array.prototype,pg=r((function(e){var t=e.concat;return e===dg||lg(dg,e)&&t===dg.concat?fg:t})),hg="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,vg=i,yg=f,mg=E,gg=hg,bg=se,_g=Ru,wg=wp,Sg=vg.Function,kg=/MSIE .\./.test(bg)||gg&&((sg=vg.Bun.version.split(".")).length<3||0==sg[0]&&(sg[1]<3||3==sg[1]&&0==sg[2])),Rg=function(e,t){var r=t?2:1;return kg?function(n,i){var o=wg(arguments.length,1)>r,a=mg(n)?n:Sg(n),u=o?_g(arguments,r):[],s=o?function(){yg(a,this,u)}:a;return t?e(s,i):e(s)}:e},Tg=Lr,xg=i,Eg=Rg(xg.setInterval,!0);Tg({global:!0,bind:!0,forced:xg.setInterval!==Eg},{setInterval:Eg});var Lg=Lr,Og=i,Ig=Rg(Og.setTimeout,!0);Lg({global:!0,bind:!0,forced:Og.setTimeout!==Ig},{setTimeout:Ig});var Pg=r(te.setTimeout),Cg=o,Zg=dt("iterator"),Ag=!Cg((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[Zg]||"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})),jg=O,Wg=y,Vg=C,Gg=o,Ng=hi,Xg=to,Mg=Z,Ug=ze,Fg=D,Dg=Object.assign,Hg=Object.defineProperty,Kg=Wg([].concat),Yg=!Dg||Gg((function(){if(jg&&1!==Dg({b:1},Dg(Hg({},"a",{enumerable:!0,get:function(){Hg(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!=Dg({},e)[r]||Ng(Dg({},t)).join("")!=n}))?function(e,t){for(var r=Ug(e),n=arguments.length,i=1,o=Xg.f,a=Mg.f;n>i;)for(var u,s=Fg(arguments[i++]),c=o?Kg(Ng(s),o(s)):Ng(s),l=c.length,f=0;l>f;)u=c[f++],jg&&!Vg(a,s,u)||(r[u]=s[u]);return r}:Dg,Bg=rr,zg=bd,Jg=Jt,Qg=C,qg=ze,$g=function(e,t,r,n){try{return n?t(Bg(r)[0],r[1]):t(r)}catch(tC){zg(e,"throw",tC)}},eb=rd,tb=bn,rb=Nr,nb=Hr,ib=vd,ob=sd,ab=Array,ub=function(e){var t=qg(e),r=tb(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Jg(i,n>2?arguments[2]:void 0));var a,u,s,c,l,f,d=ob(t),p=0;if(!d||this===ab&&eb(d))for(a=rb(t),u=r?new this(a):ab(a);a>p;p++)f=o?i(t[p],p):t[p],nb(u,p,f);else for(l=(c=ib(t,d)).next,u=r?new this:[];!(s=Qg(l,c)).done;p++)f=o?$g(c,i,[s.value,p],!0):s.value,nb(u,p,f);return u.length=p,u},sb=y,cb=2147483647,lb=/[^\0-\u007E]/,fb=/[.\u3002\uFF0E\uFF61]/g,db="Overflow: input needs wider integers to process",pb=RangeError,hb=sb(fb.exec),vb=Math.floor,yb=String.fromCharCode,mb=sb("".charCodeAt),gb=sb([].join),bb=sb([].push),_b=sb("".replace),wb=sb("".split),Sb=sb("".toLowerCase),kb=function(e){return e+22+75*(e<26)},Rb=function(e,t,r){var n=0;for(e=r?vb(e/700):e>>1,e+=vb(e/t);e>455;)e=vb(e/35),n+=36;return vb(n+36*e/(e+38))},Tb=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=mb(e,r++);if(i>=55296&&i<=56319&&r<n){var o=mb(e,r++);56320==(64512&o)?bb(t,((1023&i)<<10)+(1023&o)+65536):(bb(t,i),r--)}else bb(t,i)}return t}(e);var r,n,i=e.length,o=128,a=0,u=72;for(r=0;r<e.length;r++)(n=e[r])<128&&bb(t,yb(n));var s=t.length,c=s;for(s&&bb(t,"-");c<i;){var l=cb;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<l&&(l=n);var f=c+1;if(l-o>vb((cb-a)/f))throw pb(db);for(a+=(l-o)*f,o=l,r=0;r<e.length;r++){if((n=e[r])<o&&++a>cb)throw pb(db);if(n==o){for(var d=a,p=36;;){var h=p<=u?1:p>=u+26?26:p-u;if(d<h)break;var v=d-h,y=36-h;bb(t,yb(kb(h+v%y))),d=vb(v/y),p+=36}bb(t,yb(kb(d))),u=Rb(a,f,c==s),a=0,c++}}a++,o++}return gb(t,"")},xb=no,Eb=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:xb(e,n,t[n],r);return e},Lb=zi,Ob=Math.floor,Ib=function(e,t){var r=e.length,n=Ob(r/2);return r<8?Pb(e,t):Cb(e,Ib(Lb(e,0,n),t),Ib(Lb(e,n),t),t)},Pb=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},Cb=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,u=0;a<i||u<o;)e[a+u]=a<i&&u<o?n(t[a],r[u])<=0?t[a++]:r[u++]:a<i?t[a++]:r[u++];return e},Zb=Ib,Ab=Lr,jb=i,Wb=C,Vb=y,Gb=O,Nb=Ag,Xb=no,Mb=oo,Ub=Eb,Fb=Io,Db=Us,Hb=Ko,Kb=lp,Yb=E,Bb=qe,zb=Jt,Jb=en,Qb=rr,qb=ee,$b=Yn,e_=Ni,t_=N,r_=vd,n_=sd,i_=wp,o_=Zb,a_=dt("iterator"),u_="URLSearchParams",s_=u_+"Iterator",c_=Hb.set,l_=Hb.getterFor(u_),f_=Hb.getterFor(s_),d_=Object.getOwnPropertyDescriptor,p_=function(e){if(!Gb)return jb[e];var t=d_(jb,e);return t&&t.value},h_=p_("fetch"),v_=p_("Request"),y_=p_("Headers"),m_=v_&&v_.prototype,g_=y_&&y_.prototype,b_=jb.RegExp,__=jb.TypeError,w_=jb.decodeURIComponent,S_=jb.encodeURIComponent,k_=Vb("".charAt),R_=Vb([].join),T_=Vb([].push),x_=Vb("".replace),E_=Vb([].shift),L_=Vb([].splice),O_=Vb("".split),I_=Vb("".slice),P_=/\+/g,C_=Array(4),Z_=function(e){return C_[e-1]||(C_[e-1]=b_("((?:%[\\da-f]{2}){"+e+"})","gi"))},A_=function(e){try{return w_(e)}catch(tC){return e}},j_=function(e){var t=x_(e,P_," "),r=4;try{return w_(t)}catch(tC){for(;r;)t=x_(t,Z_(r--),A_);return t}},W_=/[!'()~]|%20/g,V_={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},G_=function(e){return V_[e]},N_=function(e){return x_(S_(e),W_,G_)},X_=Db((function(e,t){c_(this,{type:s_,iterator:r_(l_(e).entries),kind:t})}),"Iterator",(function(){var e=f_(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),M_=function(e){this.entries=[],this.url=null,void 0!==e&&(qb(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===k_(e,0)?I_(e,1):e:$b(e)))};M_.prototype={type:u_,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,u,s=n_(e);if(s)for(r=(t=r_(e,s)).next;!(n=Wb(r,t)).done;){if(o=(i=r_(Qb(n.value))).next,(a=Wb(o,i)).done||(u=Wb(o,i)).done||!Wb(o,i).done)throw __("Expected sequence with length 2");T_(this.entries,{key:$b(a.value),value:$b(u.value)})}else for(var c in e)Bb(e,c)&&T_(this.entries,{key:c,value:$b(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=O_(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=O_(t,"="),T_(this.entries,{key:j_(E_(r)),value:j_(R_(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],T_(r,N_(e.key)+"="+N_(e.value));return R_(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var U_=function(){Kb(this,F_);var e=c_(this,new M_(arguments.length>0?arguments[0]:void 0));Gb||(this.length=e.entries.length)},F_=U_.prototype;if(Ub(F_,{append:function(e,t){i_(arguments.length,2);var r=l_(this);T_(r.entries,{key:$b(e),value:$b(t)}),Gb||this.length++,r.updateURL()},delete:function(e){i_(arguments.length,1);for(var t=l_(this),r=t.entries,n=$b(e),i=0;i<r.length;)r[i].key===n?L_(r,i,1):i++;Gb||(this.length=r.length),t.updateURL()},get:function(e){i_(arguments.length,1);for(var t=l_(this).entries,r=$b(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){i_(arguments.length,1);for(var t=l_(this).entries,r=$b(e),n=[],i=0;i<t.length;i++)t[i].key===r&&T_(n,t[i].value);return n},has:function(e){i_(arguments.length,1);for(var t=l_(this).entries,r=$b(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){i_(arguments.length,1);for(var r,n=l_(this),i=n.entries,o=!1,a=$b(e),u=$b(t),s=0;s<i.length;s++)(r=i[s]).key===a&&(o?L_(i,s--,1):(o=!0,r.value=u));o||T_(i,{key:a,value:u}),Gb||(this.length=i.length),n.updateURL()},sort:function(){var e=l_(this);o_(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=l_(this).entries,n=zb(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 X_(this,"keys")},values:function(){return new X_(this,"values")},entries:function(){return new X_(this,"entries")}},{enumerable:!0}),Xb(F_,a_,F_.entries,{name:"entries"}),Xb(F_,"toString",(function(){return l_(this).serialize()}),{enumerable:!0}),Gb&&Mb(F_,"size",{get:function(){return l_(this).entries.length},configurable:!0,enumerable:!0}),Fb(U_,u_),Ab({global:!0,constructor:!0,forced:!Nb},{URLSearchParams:U_}),!Nb&&Yb(y_)){var D_=Vb(g_.has),H_=Vb(g_.set),K_=function(e){if(qb(e)){var t,r=e.body;if(Jb(r)===u_)return t=e.headers?new y_(e.headers):new y_,D_(t,"content-type")||H_(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),e_(e,{body:t_(0,$b(r)),headers:t_(0,t)})}return e};if(Yb(h_)&&Ab({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return h_(e,arguments.length>1?K_(arguments[1]):{})}}),Yb(v_)){var Y_=function(e){return Kb(this,m_),new v_(e,arguments.length>1?K_(arguments[1]):{})};m_.constructor=Y_,Y_.prototype=m_,Ab({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Y_})}}var B_,z_=Lr,J_=O,Q_=Ag,q_=i,$_=Jt,ew=y,tw=no,rw=oo,nw=lp,iw=qe,ow=Yg,aw=ub,uw=zi,sw=fl.codeAt,cw=function(e){var t,r,n=[],i=wb(_b(Sb(e),fb,"."),".");for(t=0;t<i.length;t++)r=i[t],bb(n,hb(lb,r)?"xn--"+Tb(r):r);return gb(n,".")},lw=Yn,fw=Io,dw=wp,pw={URLSearchParams:U_,getState:l_},hw=Ko,vw=hw.set,yw=hw.getterFor("URL"),mw=pw.URLSearchParams,gw=pw.getState,bw=q_.URL,_w=q_.TypeError,ww=q_.parseInt,Sw=Math.floor,kw=Math.pow,Rw=ew("".charAt),Tw=ew(/./.exec),xw=ew([].join),Ew=ew(1..toString),Lw=ew([].pop),Ow=ew([].push),Iw=ew("".replace),Pw=ew([].shift),Cw=ew("".split),Zw=ew("".slice),Aw=ew("".toLowerCase),jw=ew([].unshift),Ww="Invalid scheme",Vw="Invalid host",Gw="Invalid port",Nw=/[a-z]/i,Xw=/[\d+-.a-z]/i,Mw=/\d/,Uw=/^0x/i,Fw=/^[0-7]+$/,Dw=/^\d+$/,Hw=/^[\da-f]+$/i,Kw=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Yw=/[\0\t\n\r #/:<>?@[\\\]^|]/,Bw=/^[\u0000-\u0020]+/,zw=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Jw=/[\t\n\r]/g,Qw=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)jw(t,e%256),e=Sw(e/256);return xw(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+=Ew(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},qw={},$w=ow({},qw,{" ":1,'"':1,"<":1,">":1,"`":1}),eS=ow({},$w,{"#":1,"?":1,"{":1,"}":1}),tS=ow({},eS,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),rS=function(e,t){var r=sw(e,0);return r>32&&r<127&&!iw(t,e)?e:encodeURIComponent(e)},nS={ftp:21,file:null,http:80,https:443,ws:80,wss:443},iS=function(e,t){var r;return 2==e.length&&Tw(Nw,Rw(e,0))&&(":"==(r=Rw(e,1))||!t&&"|"==r)},oS=function(e){var t;return e.length>1&&iS(Zw(e,0,2))&&(2==e.length||"/"===(t=Rw(e,2))||"\\"===t||"?"===t||"#"===t)},aS=function(e){return"."===e||"%2e"===Aw(e)},uS={},sS={},cS={},lS={},fS={},dS={},pS={},hS={},vS={},yS={},mS={},gS={},bS={},_S={},wS={},SS={},kS={},RS={},TS={},xS={},ES={},LS=function(e,t,r){var n,i,o,a=lw(e);if(t){if(i=this.parse(a))throw _w(i);this.searchParams=null}else{if(void 0!==r&&(n=new LS(r,!0)),i=this.parse(a,null,n))throw _w(i);(o=gw(new mw)).bindURL(this),this.searchParams=o}};LS.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,u,s=this,c=t||uS,l=0,f="",d=!1,p=!1,h=!1;for(e=lw(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=Iw(e,Bw,""),e=Iw(e,zw,"$1")),e=Iw(e,Jw,""),n=aw(e);l<=n.length;){switch(i=n[l],c){case uS:if(!i||!Tw(Nw,i)){if(t)return Ww;c=cS;continue}f+=Aw(i),c=sS;break;case sS:if(i&&(Tw(Xw,i)||"+"==i||"-"==i||"."==i))f+=Aw(i);else{if(":"!=i){if(t)return Ww;f="",c=cS,l=0;continue}if(t&&(s.isSpecial()!=iw(nS,f)||"file"==f&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=f,t)return void(s.isSpecial()&&nS[s.scheme]==s.port&&(s.port=null));f="","file"==s.scheme?c=_S:s.isSpecial()&&r&&r.scheme==s.scheme?c=lS:s.isSpecial()?c=hS:"/"==n[l+1]?(c=fS,l++):(s.cannotBeABaseURL=!0,Ow(s.path,""),c=TS)}break;case cS:if(!r||r.cannotBeABaseURL&&"#"!=i)return Ww;if(r.cannotBeABaseURL&&"#"==i){s.scheme=r.scheme,s.path=uw(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,c=ES;break}c="file"==r.scheme?_S:dS;continue;case lS:if("/"!=i||"/"!=n[l+1]){c=dS;continue}c=vS,l++;break;case fS:if("/"==i){c=yS;break}c=RS;continue;case dS:if(s.scheme=r.scheme,i==B_)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=uw(r.path),s.query=r.query;else if("/"==i||"\\"==i&&s.isSpecial())c=pS;else if("?"==i)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=uw(r.path),s.query="",c=xS;else{if("#"!=i){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=uw(r.path),s.path.length--,c=RS;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=uw(r.path),s.query=r.query,s.fragment="",c=ES}break;case pS:if(!s.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,c=RS;continue}c=yS}else c=vS;break;case hS:if(c=vS,"/"!=i||"/"!=Rw(f,l+1))continue;l++;break;case vS:if("/"!=i&&"\\"!=i){c=yS;continue}break;case yS:if("@"==i){d&&(f="%40"+f),d=!0,o=aw(f);for(var v=0;v<o.length;v++){var y=o[v];if(":"!=y||h){var m=rS(y,tS);h?s.password+=m:s.username+=m}else h=!0}f=""}else if(i==B_||"/"==i||"?"==i||"#"==i||"\\"==i&&s.isSpecial()){if(d&&""==f)return"Invalid authority";l-=aw(f).length+1,f="",c=mS}else f+=i;break;case mS:case gS:if(t&&"file"==s.scheme){c=SS;continue}if(":"!=i||p){if(i==B_||"/"==i||"?"==i||"#"==i||"\\"==i&&s.isSpecial()){if(s.isSpecial()&&""==f)return Vw;if(t&&""==f&&(s.includesCredentials()||null!==s.port))return;if(a=s.parseHost(f))return a;if(f="",c=kS,t)return;continue}"["==i?p=!0:"]"==i&&(p=!1),f+=i}else{if(""==f)return Vw;if(a=s.parseHost(f))return a;if(f="",c=bS,t==gS)return}break;case bS:if(!Tw(Mw,i)){if(i==B_||"/"==i||"?"==i||"#"==i||"\\"==i&&s.isSpecial()||t){if(""!=f){var g=ww(f,10);if(g>65535)return Gw;s.port=s.isSpecial()&&g===nS[s.scheme]?null:g,f=""}if(t)return;c=kS;continue}return Gw}f+=i;break;case _S:if(s.scheme="file","/"==i||"\\"==i)c=wS;else{if(!r||"file"!=r.scheme){c=RS;continue}if(i==B_)s.host=r.host,s.path=uw(r.path),s.query=r.query;else if("?"==i)s.host=r.host,s.path=uw(r.path),s.query="",c=xS;else{if("#"!=i){oS(xw(uw(n,l),""))||(s.host=r.host,s.path=uw(r.path),s.shortenPath()),c=RS;continue}s.host=r.host,s.path=uw(r.path),s.query=r.query,s.fragment="",c=ES}}break;case wS:if("/"==i||"\\"==i){c=SS;break}r&&"file"==r.scheme&&!oS(xw(uw(n,l),""))&&(iS(r.path[0],!0)?Ow(s.path,r.path[0]):s.host=r.host),c=RS;continue;case SS:if(i==B_||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&iS(f))c=RS;else if(""==f){if(s.host="",t)return;c=kS}else{if(a=s.parseHost(f))return a;if("localhost"==s.host&&(s.host=""),t)return;f="",c=kS}continue}f+=i;break;case kS:if(s.isSpecial()){if(c=RS,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=B_&&(c=RS,"/"!=i))continue}else s.fragment="",c=ES;else s.query="",c=xS;break;case RS:if(i==B_||"/"==i||"\\"==i&&s.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(u=Aw(u=f))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(s.shortenPath(),"/"==i||"\\"==i&&s.isSpecial()||Ow(s.path,"")):aS(f)?"/"==i||"\\"==i&&s.isSpecial()||Ow(s.path,""):("file"==s.scheme&&!s.path.length&&iS(f)&&(s.host&&(s.host=""),f=Rw(f,0)+":"),Ow(s.path,f)),f="","file"==s.scheme&&(i==B_||"?"==i||"#"==i))for(;s.path.length>1&&""===s.path[0];)Pw(s.path);"?"==i?(s.query="",c=xS):"#"==i&&(s.fragment="",c=ES)}else f+=rS(i,eS);break;case TS:"?"==i?(s.query="",c=xS):"#"==i?(s.fragment="",c=ES):i!=B_&&(s.path[0]+=rS(i,qw));break;case xS:t||"#"!=i?i!=B_&&("'"==i&&s.isSpecial()?s.query+="%27":s.query+="#"==i?"%23":rS(i,qw)):(s.fragment="",c=ES);break;case ES:i!=B_&&(s.fragment+=rS(i,$w))}l++}},parseHost:function(e){var t,r,n;if("["==Rw(e,0)){if("]"!=Rw(e,e.length-1))return Vw;if(t=function(e){var t,r,n,i,o,a,u,s=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,d=function(){return Rw(e,f)};if(":"==d()){if(":"!=Rw(e,1))return;f+=2,l=++c}for(;d();){if(8==c)return;if(":"!=d()){for(t=r=0;r<4&&Tw(Hw,d());)t=16*t+ww(d(),16),f++,r++;if("."==d()){if(0==r)return;if(f-=r,c>6)return;for(n=0;d();){if(i=null,n>0){if(!("."==d()&&n<4))return;f++}if(!Tw(Mw,d()))return;for(;Tw(Mw,d());){if(o=ww(d(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}s[c]=256*s[c]+i,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;s[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!=c&&a>0;)u=s[c],s[c--]=s[l+a-1],s[l+--a]=u;else if(8!=c)return;return s}(Zw(e,1,-1)),!t)return Vw;this.host=t}else if(this.isSpecial()){if(e=cw(e),Tw(Kw,e))return Vw;if(t=function(e){var t,r,n,i,o,a,u,s=Cw(e,".");if(s.length&&""==s[s.length-1]&&s.length--,(t=s.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=s[n]))return e;if(o=10,i.length>1&&"0"==Rw(i,0)&&(o=Tw(Uw,i)?16:8,i=Zw(i,8==o?1:2)),""===i)a=0;else{if(!Tw(10==o?Dw:8==o?Fw:Hw,i))return e;a=ww(i,o)}Ow(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=kw(256,5-t))return null}else if(a>255)return null;for(u=Lw(r),n=0;n<r.length;n++)u+=r[n]*kw(256,3-n);return u}(e),null===t)return Vw;this.host=t}else{if(Tw(Yw,e))return Vw;for(t="",r=aw(e),n=0;n<r.length;n++)t+=rS(r[n],qw);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return iw(nS,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&iS(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,u=e.query,s=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=Qw(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+xw(a,"/"):"",null!==u&&(c+="?"+u),null!==s&&(c+="#"+s),c},setHref:function(e){var t=this.parse(e);if(t)throw _w(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new OS(e.path[0]).origin}catch(tC){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Qw(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(lw(e)+":",uS)},getUsername:function(){return this.username},setUsername:function(e){var t=aw(lw(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=rS(t[r],tS)}},getPassword:function(){return this.password},setPassword:function(e){var t=aw(lw(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=rS(t[r],tS)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Qw(e):Qw(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,mS)},getHostname:function(){var e=this.host;return null===e?"":Qw(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,gS)},getPort:function(){var e=this.port;return null===e?"":lw(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=lw(e))?this.port=null:this.parse(e,bS))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+xw(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,kS))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=lw(e))?this.query=null:("?"==Rw(e,0)&&(e=Zw(e,1)),this.query="",this.parse(e,xS)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=lw(e))?("#"==Rw(e,0)&&(e=Zw(e,1)),this.fragment="",this.parse(e,ES)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var OS=function(e){var t=nw(this,IS),r=dw(arguments.length,1)>1?arguments[1]:void 0,n=vw(t,new LS(e,!1,r));J_||(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())},IS=OS.prototype,PS=function(e,t){return{get:function(){return yw(this)[e]()},set:t&&function(e){return yw(this)[t](e)},configurable:!0,enumerable:!0}};if(J_&&(rw(IS,"href",PS("serialize","setHref")),rw(IS,"origin",PS("getOrigin")),rw(IS,"protocol",PS("getProtocol","setProtocol")),rw(IS,"username",PS("getUsername","setUsername")),rw(IS,"password",PS("getPassword","setPassword")),rw(IS,"host",PS("getHost","setHost")),rw(IS,"hostname",PS("getHostname","setHostname")),rw(IS,"port",PS("getPort","setPort")),rw(IS,"pathname",PS("getPathname","setPathname")),rw(IS,"search",PS("getSearch","setSearch")),rw(IS,"searchParams",PS("getSearchParams")),rw(IS,"hash",PS("getHash","setHash"))),tw(IS,"toJSON",(function(){return yw(this).serialize()}),{enumerable:!0}),tw(IS,"toString",(function(){return yw(this).serialize()}),{enumerable:!0}),bw){var CS=bw.createObjectURL,ZS=bw.revokeObjectURL;CS&&tw(OS,"createObjectURL",$_(CS,bw)),ZS&&tw(OS,"revokeObjectURL",$_(ZS,bw))}fw(OS,"URL"),z_({global:!0,constructor:!0,forced:!Q_,sham:!J_},{URL:OS});var AS=Lr,jS=o,WS=wp,VS=Yn,GS=Ag,NS=ae("URL");AS({target:"URL",stat:!0,forced:!(GS&&jS((function(){NS.canParse()})))},{canParse:function(e){var t=WS(arguments.length,1),r=VS(e),n=t<2||void 0===arguments[1]?void 0:VS(arguments[1]);try{return!!new NS(r,n)}catch(tC){return!1}}});var XS=r(te.URL),MS=Lr,US=ni.indexOf,FS=Hl,DS=k([].indexOf),HS=!!DS&&1/DS([1],1,-0)<0;MS({target:"Array",proto:!0,forced:HS||!FS("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return HS?DS(this,e,t)||0:US(this,e,t)}});var KS=Ol("Array").indexOf,YS=ue,BS=KS,zS=Array.prototype,JS=r((function(e){var t=e.indexOf;return e===zS||YS(zS,e)&&t===zS.indexOf?BS:t})),QS=Lr,qS=ea.find,$S="find",ek=!0;$S in[]&&Array(1)[$S]((function(){ek=!1})),QS({target:"Array",proto:!0,forced:ek},{find:function(e){return qS(this,e,arguments.length>1?arguments[1]:void 0)}});var tk=Ol("Array").find,rk=ue,nk=tk,ik=Array.prototype,ok=r((function(e){var t=e.find;return e===ik||rk(ik,e)&&t===ik.find?nk:t})),ak=O,uk=Ir,sk=TypeError,ck=Object.getOwnPropertyDescriptor,lk=ak&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(tC){return tC instanceof TypeError}}(),fk=Ee,dk=TypeError,pk=function(e,t){if(!delete e[t])throw dk("Cannot delete property "+fk(t)+" of "+fk(e))},hk=Lr,vk=ze,yk=qn,mk=Ar,gk=Nr,bk=lk?function(e,t){if(uk(e)&&!ck(e,"length").writable)throw sk("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},_k=Mr,wk=xn,Sk=Hr,kk=pk,Rk=In("splice"),Tk=Math.max,xk=Math.min;hk({target:"Array",proto:!0,forced:!Rk},{splice:function(e,t){var r,n,i,o,a,u,s=vk(this),c=gk(s),l=yk(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=xk(Tk(mk(t),0),c-l)),_k(c+r-n),i=wk(s,n),o=0;o<n;o++)(a=l+o)in s&&Sk(i,o,s[a]);if(i.length=n,r<n){for(o=l;o<c-n;o++)u=o+r,(a=o+n)in s?s[u]=s[a]:kk(s,u);for(o=c;o>c-n+r;o--)kk(s,o-1)}else if(r>n)for(o=c-n;o>l;o--)u=o+r-1,(a=o+n-1)in s?s[u]=s[a]:kk(s,u);for(o=0;o<r;o++)s[o+l]=arguments[o+2];return bk(s,c-n+r),i}});var Ek=Ol("Array").splice,Lk=ue,Ok=Ek,Ik=Array.prototype,Pk=r((function(e){var t=e.splice;return e===Ik||Lk(Ik,e)&&t===Ik.splice?Ok:t}));Lr({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var Ck=r(te.Number.isNaN),Zk="\t\n\v\f\r \u2028\u2029\ufeff",Ak=B,jk=Yn,Wk=Zk,Vk=y("".replace),Gk=RegExp("^["+Wk+"]+"),Nk=RegExp("(^|[^"+Wk+"])["+Wk+"]+$"),Xk=function(e){return function(t){var r=jk(Ak(t));return 1&e&&(r=Vk(r,Gk,"")),2&e&&(r=Vk(r,Nk,"$1")),r}},Mk={start:Xk(1),end:Xk(2),trim:Xk(3)},Uk=i,Fk=o,Dk=y,Hk=Yn,Kk=Mk.trim,Yk=Zk,Bk=Uk.parseInt,zk=Uk.Symbol,Jk=zk&&zk.iterator,Qk=/^[+-]?0x/i,qk=Dk(Qk.exec),$k=8!==Bk(Yk+"08")||22!==Bk(Yk+"0x16")||Jk&&!Fk((function(){Bk(Object(Jk))}))?function(e,t){var r=Kk(Hk(e));return Bk(r,t>>>0||(qk(Qk,r)?16:10))}:Bk;Lr({global:!0,forced:parseInt!=$k},{parseInt:$k});var eR=r(te.parseInt),tR=ea.map;Lr({target:"Array",proto:!0,forced:!In("map")},{map:function(e){return tR(this,e,arguments.length>1?arguments[1]:void 0)}});var rR=Ol("Array").map,nR=ue,iR=rR,oR=Array.prototype,aR=r((function(e){var t=e.map;return e===oR||nR(oR,e)&&t===oR.map?iR:t}));Lr({target:"Array",stat:!0},{isArray:Ir});var uR=r(te.Array.isArray),sR=Yg;Lr({target:"Object",stat:!0,arity:2,forced:Object.assign!==sR},{assign:sR});var cR=r(te.Object.assign),lR=r(_l),fR=qe,dR=C,pR=ee,hR=rr,vR=function(e){return void 0!==e&&(fR(e,"value")||fR(e,"writable"))},yR=L,mR=Ts;Lr({target:"Reflect",stat:!0},{get:function e(t,r){var n,i,o=arguments.length<3?t:arguments[2];return hR(t)===o?t[r]:(n=yR.f(t,r))?vR(n)?n.value:void 0===n.get?void 0:dR(n.get,o):pR(i=mR(t))?e(i,r,o):void 0}});var gR=r(te.Reflect.get),bR=r(sd),_R=ub;Lr({target:"Array",stat:!0,forced:!Fv((function(e){Array.from(e)}))},{from:_R});var wR=r(te.Array.from);function SR(e,t){var r=Tl(e);if(xl){var n=xl(e);t&&(n=Al(n).call(n,(function(t){return Fl(e,t).enumerable}))),r.push.apply(r,n)}return r}function kR(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?tf(r=SR(Object(i),!0)).call(r,(function(t){LR(e,t,i[t])})):pf?_f(e,pf(i)):tf(n=SR(Object(i))).call(n,(function(t){Ef(e,t,Fl(i,t))}))}return e}function RR(e){return(RR="function"==typeof Lf&&"symbol"==typeof lR?function(e){return typeof e}:function(e){return e&&"function"==typeof Lf&&e.constructor===Lf&&e!==Lf.prototype?"symbol":typeof e})(e)}function TR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xR(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),Ef(e,PR(n.key),n)}}function ER(e,t,r){return t&&xR(e.prototype,t),r&&xR(e,r),Ef(e,"prototype",{writable:!1}),e}function LR(e,t,r){return(t=PR(t))in e?Ef(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OR(e){return function(e){if(uR(e))return IR(e)}(e)||function(e){if(void 0!==Lf&&null!=bR(e)||null!=e["@@iterator"])return wR(e)}(e)||function(e,t){var r;if(!e)return;if("string"==typeof e)return IR(e,t);var n=pm(r=Object.prototype.toString.call(e)).call(r,8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return wR(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IR(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 IR(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 PR(e){var t=function(e,t){if("object"!==Sl(e)||null===e)return e;var r=e[Km];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Sl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Sl(t)?t:String(t)}var CR={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 u=new i(n,o||e,a),s=r?r+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],u]:e._events[s].push(u):(e._events[s]=u,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function u(){this._events=new n,this._eventsCount=0}If&&(n.prototype=If(null),(new n).__proto__||(r=!1)),u.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?pm(n).call(n,1):n);return xl?pg(i).call(i,xl(e)):i},u.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},u.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},u.prototype.emit=function(e,t,n,i,o,a){var u=r?r+e:e;if(!this._events[u])return!1;var s,c,l=this._events[u],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,s=new Array(f-1);c<f;c++)s[c-1]=arguments[c];l.fn.apply(l.context,s)}else{var d,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(!s)for(d=1,s=new Array(f-1);d<f;d++)s[d-1]=arguments[d];l[c].fn.apply(l[c].context,s)}}return!0},u.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},u.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},u.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 u=this._events[o];if(u.fn)u.fn!==t||i&&!u.once||n&&u.context!==n||a(this,o);else{for(var s=0,c=[],l=u.length;s<l;s++)(u[s].fn!==t||i&&!u[s].once||n&&u[s].context!==n)&&c.push(u[s]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},u.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},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u}(CR);var ZR=r(CR.exports),AR=ea.some;Lr({target:"Array",proto:!0,forced:!Hl("some")},{some:function(e){return AR(this,e,arguments.length>1?arguments[1]:void 0)}});var jR=Ol("Array").some,WR=ue,VR=jR,GR=Array.prototype,NR=r((function(e){var t=e.some;return e===GR||WR(GR,e)&&t===GR.some?VR:t})),XR=Ar,MR=Yn,UR=B,FR=RangeError,DR=y,HR=Vr,KR=Yn,YR=B,BR=DR((function(e){var t=MR(UR(this)),r="",n=XR(e);if(n<0||n==1/0)throw FR("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),zR=DR("".slice),JR=Math.ceil,QR=function(e){return function(t,r,n){var i,o,a=KR(YR(t)),u=HR(r),s=a.length,c=void 0===n?" ":KR(n);return u<=s||""==c?a:((o=BR(c,JR((i=u-s)/c.length))).length>i&&(o=zR(o,0,i)),e?a+o:o+a)}},qR={start:QR(!1),end:QR(!0)},$R=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(se),eT=qR.start;Lr({target:"String",proto:!0,forced:$R},{padStart:function(e){return eT(this,e,arguments.length>1?arguments[1]:void 0)}});var tT=Ol("String").padStart,rT=ue,nT=tT,iT=String.prototype,oT=r((function(e){var t=e.padStart;return"string"==typeof e||e===iT||rT(iT,e)&&t===iT.padStart?nT:t})),aT=r(te.setInterval),uT=ea.every;Lr({target:"Array",proto:!0,forced:!Hl("every")},{every:function(e){return uT(this,e,arguments.length>1?arguments[1]:void 0)}});var sT=Ol("Array").every,cT=ue,lT=sT,fT=Array.prototype,dT=r((function(e){var t=e.every;return e===fT||cT(fT,e)&&t===fT.every?lT:t})),pT=i,hT=o,vT=Yn,yT=Mk.trim,mT=Zk,gT=y("".charAt),bT=pT.parseFloat,_T=pT.Symbol,wT=_T&&_T.iterator,ST=1/bT(mT+"-0")!=-1/0||wT&&!hT((function(){bT(Object(wT))}))?function(e){var t=yT(vT(e)),r=bT(t);return 0===r&&"-"==gT(t,0)?-0:r}:bT;Lr({global:!0,forced:parseFloat!=ST},{parseFloat:ST});var kT=r(te.parseFloat),RT=ys.PROPER,TT=o,xT=Zk,ET=Mk.trim;Lr({target:"String",proto:!0,forced:function(e){return TT((function(){return!!xT[e]()||"
"!=="
"[e]()||RT&&xT[e].name!==e}))}("trim")},{trim:function(){return ET(this)}});var LT=Ol("String").trim,OT=ue,IT=LT,PT=String.prototype,CT=r((function(e){var t=e.trim;return"string"==typeof e||e===PT||OT(PT,e)&&t===PT.trim?IT:t})),ZT=se.match(/firefox\/(\d+)/i),AT=!!ZT&&+ZT[1],jT=/MSIE|Trident/.test(se),WT=se.match(/AppleWebKit\/(\d+)\./),VT=!!WT&&+WT[1],GT=Lr,NT=y,XT=Pe,MT=ze,UT=Nr,FT=pk,DT=Yn,HT=o,KT=Zb,YT=Hl,BT=AT,zT=jT,JT=ve,QT=VT,qT=[],$T=NT(qT.sort),ex=NT(qT.push),tx=HT((function(){qT.sort(void 0)})),rx=HT((function(){qT.sort(null)})),nx=YT("sort"),ix=!HT((function(){if(JT)return JT<70;if(!(BT&&BT>3)){if(zT)return!0;if(QT)return QT<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++)qT.push({k:t+n,v:r})}for(qT.sort((function(e,t){return t.v-e.v})),n=0;n<qT.length;n++)t=qT[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));GT({target:"Array",proto:!0,forced:tx||!rx||!nx||!ix},{sort:function(e){void 0!==e&&XT(e);var t=MT(this);if(ix)return void 0===e?$T(t):$T(t,e);var r,n,i=[],o=UT(t);for(n=0;n<o;n++)n in t&&ex(i,t[n]);for(KT(i,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:DT(t)>DT(r)?1:-1}}(e)),r=UT(i),n=0;n<r;)t[n]=i[n++];for(;n<o;)FT(t,n++);return t}});var ox=Ol("Array").sort,ax=ue,ux=ox,sx=Array.prototype,cx=r((function(e){var t=e.sort;return e===sx||ax(sx,e)&&t===sx.sort?ux:t})),lx=Lr,fx=Date,dx=y(fx.prototype.getTime);lx({target:"Date",stat:!0},{now:function(){return dx(new fx)}});var px,hx=r(te.Date.now),vx="undefined"!=typeof window&&window.location&&JS(px=window.location.href).call(px,"xgplayerdebugger=1")>-1,yx="color: #525252; background-color: #90ee90;",mx="color: #525252; background-color: red;",gx="color: #525252; background-color: yellow; ",bx="%c[xgplayer]",_x={config:{debug:vx?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,pg(t=[bx,yx,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,pg(t=[bx,gx,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,pg(t=[bx,mx,e]).call(t,o))}}},wx=function(){function e(t){TR(this,e),this.bufferedList=t}return ER(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}(),Sx={};Sx.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,tf(e=Tl(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},Sx.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&&Sx.addClass(i,r),t)tf(o=Tl(t)).call(o,(function(e){i.setAttribute(e,t[e])}));return i}return null}catch(a){return _x.logError("util.createDomFromHtml",a),null}},Sx.hasClass=function(e,t){if(!e||!t)return!1;try{return NR(Array.prototype).call(e.classList,(function(e){return e===t}))}catch(n){var r=e.className&&"object"===RR(e.className)?e.getAttribute("class"):e.className;return r&&!!r.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},Sx.addClass=function(e,t){if(e&&t)try{var r;tf(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.add(t)}))}catch(n){Sx.hasClass(e,t)||(e.className&&"object"===RR(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},Sx.removeClass=function(e,t){if(e&&t)try{var r;tf(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.remove(t)}))}catch(i){var n;if(Sx.hasClass(e,t))tf(n=t.split(/\s+/g)).call(n,(function(t){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===RR(e.className)?e.setAttribute("class",e.getAttribute("class").replace(r," ")):e.className=e.className.replace(r," ")}))}},Sx.toggleClass=function(e,t){var r;e&&tf(r=t.split(/\s+/g)).call(r,(function(t){Sx.hasClass(e,t)?Sx.removeClass(e,t):Sx.addClass(e,t)}))},Sx.classNames=function(){for(var e=arguments,t=[],r=function(r){if("String"===Sx.typeOf(e[r]))t.push(e[r]);else if("Object"===Sx.typeOf(e[r])){var n;aR(n=Tl(e[r])).call(n,(function(n){e[r][n]&&t.push(n)}))}},n=0;n<arguments.length;n++)r(n);return t.join(" ")},Sx.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){_x.logError("util.findDom",n),0===JS(r).call(r,"#")&&(e=t.getElementById(pm(r).call(r,1)))}return e},Sx.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},Sx.padStart=function(e,t,r){for(var n=String(r),i=t>>0,o=Math.ceil(i/n.length),a=[],u=String(e);o--;)a.push(n);return a.join("").substring(0,i-u.length)+u},Sx.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=oT(Sx).call(Sx,Math.floor(e/3600),2,0),r=oT(Sx).call(Sx,Math.floor((e-3600*t)/60),2,0),n=oT(Sx).call(Sx,Math.floor(e-3600*t-60*r),2,0);return("00"===t?[r,n]:[t,r,n]).join(":")},Sx.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},Sx.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},Sx.deepCopy=function(e,t){var r;if("Object"===Sx.typeOf(t)&&"Object"===Sx.typeOf(e))return tf(r=Tl(t)).call(r,(function(r){if("Object"!==Sx.typeOf(t[r])||t[r]instanceof Node)if("Array"===Sx.typeOf(t[r])){var n;e[r]="Array"===Sx.typeOf(e[r])?pg(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]:Sx.deepCopy(e[r],t[r])})),e},Sx.deepMerge=function(e,t){var r;return aR(r=Tl(t)).call(r,(function(r){var n;"Array"===Sx.typeOf(t[r])&&"Array"===Sx.typeOf(e[r])?"Array"===Sx.typeOf(e[r])&&(n=e[r]).push.apply(n,OR(t[r])):Sx.typeOf(e[r])!==Sx.typeOf(t[r])||null===e[r]||"Object"!==Sx.typeOf(e[r])||t[r]instanceof window.Node?null!==t[r]&&(e[r]=t[r]):Sx.deepMerge(e[r],t[r])})),e},Sx.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},Sx.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return tf(Array.prototype).call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},Sx.setInterval=function(e,t,r,n){e._interval[t]||(e._interval[t]=aT(Im(r).call(r,e),n))},Sx.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},Sx.setTimeout=function(e,t,r){e._timers||(e._timers=[]);var n=Pg((function(){t(),Sx.clearTimeout(e,n)}),r);return e._timers.push(n),n},Sx.clearTimeout=function(e,t){var r=e._timers;if("Array"===Sx.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===t){Pk(r).call(r,n,1),clearTimeout(t);break}}else clearTimeout(t)},Sx.clearAllTimers=function(e){var t=e._timers;"Array"===Sx.typeOf(t)&&(aR(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},Sx.createImgBtn=function(e,t,r,n){var i,o,a,u,s,c,l,f,d,p,h,v,y=Sx.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(y.style.backgroundImage='url("'.concat(t,'")'),r&&n)&&(dT(i=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(i,(function(e){var t,i;return!(JS(r).call(r,e)>-1&&JS(n).call(n,e)>-1)||(l=kT(CT(t=pm(r).call(r,0,JS(r).call(r,e))).call(t)),f=kT(CT(i=pm(n).call(n,0,JS(n).call(n,e))).call(i)),d=e,!1)})),y.style.width=pg(o="".concat(l)).call(o,d),y.style.height=pg(a="".concat(f)).call(a,d),y.style.backgroundSize=pg(u=pg(s=pg(c="".concat(l)).call(c,d," ")).call(s,f)).call(u,d),y.style.margin="start"===e?pg(p=pg(h=pg(v="-".concat(f/2)).call(v,d," auto auto -")).call(h,l/2)).call(p,d):"auto 5px auto 5px");return y},Sx.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(eR(e,16))})),pg(r="rgba(".concat(n.join(","),", ")).call(r,t,")")):"rgba(255, 255, 255, 0.1)"},Sx.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},Sx.checkIsFunction=function(e){return e&&"function"==typeof e},Sx.checkIsObject=function(e){return null!==e&&"object"===RR(e)},Sx.hide=function(e){e.style.display="none"},Sx.show=function(e,t){e.style.display=t||"block"},Sx.isUndefined=function(e){if(null==e)return!0},Sx.isNotNull=function(e){return!(null==e)},Sx.setStyleFromCsstext=function(e,t){if(t)if("String"===Sx.typeOf(t)){var r=t.replace(/\s+/g,"").split(";");aR(r).call(r,(function(t){if(t){var r=t.split(":");r.length>1&&(e.style[r[0]]=r[1])}}))}else{var n;aR(n=Tl(t)).call(n,(function(r){e.style[r]=t[r]}))}},Sx.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 aR(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(JS(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",""),aR(t=Tl(a)).call(t,(function(t){e.style[t]=a[t]})),o},Sx.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var r=t.replace(/\s+/g,"").split(";"),n={};return aR(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(n[t[0]]=t[1])}})),n},Sx.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}},Sx.stopPropagation=function(e){e&&e.stopPropagation()},Sx.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},Sx.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},Sx.checkTouchSupport=function(){return"ontouchstart"in window},Sx.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)});cx(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 u=i[a-1].end;r[o].start-u<t?r[o].end>u&&(i[a-1].end=r[o].end):i.push(r[o])}else i.push(r[o])}else i=r;return new wx(i)},Sx.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}},Sx.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},Sx.getHostFromUrl=function(e){if("String"!==Sx.typeOf(e))return"";var t=e.split("/"),r="";return t.length>3&&t[2]&&(r=t[2]),r},Sx.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},Sx.isMSE=function(e){return e.media&&(e=e.media),!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},Sx.isBlob=function(e){return"string"==typeof e&&/^blob/.test(e)},Sx.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=eR(e)}catch(r){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=eR(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)}))},Sx.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},Sx.adjustTimeByDuration=function(e,t,r){return t&&e&&(e>t||r&&e<t)?t:e},Sx.createPositionBar=function(e,t){var r=Sx.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(r),r},Sx.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:pg(e="".concat(t.x||0,"%, ")).call(e,t.y||0,"%"),rotate:"".concat(t.rotate||0,"deg")},i=Tl(n);return tf(i).call(i,(function(e){var t,i=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),o=pg(t="".concat(e,"(")).call(t,n[e],")");i.test(r)?(i.lastIndex=-1,r=r.replace(i,o)):r+="".concat(o," ")})),r},Sx.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360},Sx.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},Sx.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:Sx.getIndexByTime(e,t))<0)return-1;var i=t.length,o=t[n],a=o.start,u=o.end,s=o.cTime,c=o.offset;return e<a?s:e>=a&&e<=u?e-c:e>u&&n>=i-1?u:-1},Sx.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 kx="3.0.21-rc.21",Rx={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},Tx=ER((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};TR(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,u=t.currentTime,s=t.ended,c=t.src,l=t.currentSrc,f=t.media,d=f.readyState,p=f.networkState,h=r.errorCode||o.code;Rx[h]&&(h=Rx[h]);var v={playerVersion:kx,currentTime:u,duration:a,ended:s,readyState:d,networkState:p,src:c||l,errorType:r.errorType,errorCode:h,message:r.errorMessage||o.message,mediaError:o,originError:r.originError?r.originError.stack:"",host:Sx.getHostFromUrl(c||l)};return r.ext&&aR(i=Tl(r.ext)).call(i,(function(e){v[e]=r.ext[e]})),v}if(arguments.length>1){for(var y={playerVersion:kx,domain:document.domain},m=["errorType","currentTime","duration","networkState","readyState","src","currentSrc","ended","errd","errorCode","mediaError"],g=0;g<arguments.length;g++)y[m[g]]=arguments[g];return y.ex=n?(n[arguments[0]]||{}).msg:"",y}}));function xx(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 u,s=t.call.apply(t,pg(n=[e]).call(n,o));r&&"function"==typeof r&&(s&&s.then?s.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,pg(t=[e]).call(t,i))})):r.call.apply(r,pg(u=[e]).call(u,o)))}function Ex(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),Im(r=function(){var r,i=arguments,o=this;if(n.pre)try{var a,u;(u=n.pre).call.apply(u,pg(a=[this]).call(a,pm(Array.prototype).call(arguments)))}catch(v){var s,c;throw v.message=pg(s=pg(c="[pluginName: ".concat(this.pluginName,":")).call(c,e,":pre error] >> ")).call(s,v.message),v}if(this.__hooks&&this.__hooks[e])try{var l,f=function(e,t,r){for(var n=arguments.length,i=new Array(n>3?n-3:0),o=3;o<n;o++)i[o-3]=arguments[o];if(e.__hooks&&uR(e.__hooks[t])){var a,u=e.__hooks[t],s=-1,c=function e(t,r,n){for(var i,o,a=arguments.length,c=new Array(a>3?a-3:0),l=3;l<a;l++)c[l-3]=arguments[l];if(s++,0===u.length||s===u.length)return n.call.apply(n,pg(o=[t,t]).call(o,c));var f,d=u[s],p=d.call.apply(d,pg(i=[t,t]).call(i,c));return p&&p.then?p.then((function(i){var o;return!1===i?null:e.apply(void 0,pg(o=[t,r,n]).call(o,c))})).catch((function(e){console.warn("[runHooks]".concat(r," reject"),e.message)})):!1!==p?e.apply(void 0,pg(f=[t,r,n]).call(f,c)):void 0};return c.apply(void 0,pg(a=[e,t,r]).call(a,i))}var l;return r.call.apply(r,pg(l=[e,e]).call(l,i))}(this,e,t);if(f)if(f.then)f.then((function(e){var r;!1!==e&&xx.apply(void 0,pg(r=[o,t,n.next]).call(r,OR(i)))})).catch((function(e){throw e}));else xx.apply(void 0,pg(l=[this,t,n.next]).call(l,pm(Array.prototype).call(arguments)));else if(void 0===f){var d;xx.apply(void 0,pg(d=[this,t,n.next]).call(d,pm(Array.prototype).call(arguments)))}}catch(v){var p,h;throw v.message=pg(p=pg(h="[pluginName: ".concat(this.pluginName,":")).call(h,e,"] >> ")).call(p,v.message),v}else xx.apply(void 0,pg(r=[this,t,n.next]).call(r,pm(Array.prototype).call(arguments)))}).call(r,this)}function Lx(e,t){var r=this.__hooks;if(!r||!uR(r[e]))return-1;for(var n=r[e],i=0;i<n.length;i++)if(n[i]===t)return i;return-1}function Ox(e,t){var r=this.__hooks;if(r)return r.hasOwnProperty(e)?(uR(r[e])||(r[e]=[]),-1===Lx.call(this,e,t)&&r[e].push(t),!0):(console.warn("has no supported hook which name [".concat(e,"]")),!1)}function Ix(e,t){var r=this.__hooks;if(r)if(uR(r[e])){var n=r[e],i=Lx.call(this,e,t);-1!==i&&Pk(n).call(n,i,1)}else r[e]&&(r[e]=null)}function Px(e,t){var r;_x.logError(pg(r="[".concat(e,"] event or callback cant be undefined or null when call ")).call(r,t))}var Cx=function(){function e(t){TR(this,e),Sx.checkIsFunction(this.beforeCreate)&&this.beforeCreate(t),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.__hooks={},t&&aR(t).call(t,(function(t){e.__hooks[t]=null})),Ef(e,"hooks",{get:function(){var t;return e.__hooks&&aR(t=Tl(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 ER(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=Sx.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)):uR(e)&&tf(e).call(e,(function(e){r.__events[e]=t,r.player.on(e,t)})):Px(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)):uR(e)&&tf(e).call(e,(function(n){r.__onceEvents[n]=t,r.player.once(e,t)})):Px(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)):uR(e)&&tf(e).call(e,(function(n){delete r.__events[e],r.player.off(n,t)})):Px(this.pluginName,"plugin.off(event, callback)")}},{key:"offAll",value:function(){var e,t=this;tf(e=["__events","__onceEvents"]).call(e,(function(e){var r;tf(r=Tl(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,pg(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=kR(kR({},r),{},{pluginName:this.pluginName});this.player.emitUserAction(e,t,n)}}},{key:"hook",value:function(e,t){var r;return Ex.call.apply(Ex,pg(r=[this]).call(r,pm(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 Ox.call.apply(Ox,pg(r=[this]).call(r,pm(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 Ix.call.apply(Ix,pg(r=[this]).call(r,pm(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(),Sx.clearAllTimers(this),Sx.checkIsFunction(this.destroy)&&this.destroy(),aR(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)&&Ef(e,r,t[r])}},{key:"defineMethod",value:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&"function"==typeof t[r]&&Ef(e,r,{configurable:!0,value:t[r]})}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),e}(),Zx=te,Ax=f;Zx.JSON||(Zx.JSON={stringify:JSON.stringify});var jx=function(e,t,r){return Ax(Zx.JSON.stringify,null,arguments)},Wx=r(jx),Vx=ee,Gx=_,Nx=dt("match"),Xx=function(e){var t;return Vx(e)&&(void 0!==(t=e[Nx])?!!t:"RegExp"==Gx(e))},Mx=TypeError,Ux=dt("match"),Fx=ni.includes;Lr({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return Fx(this,e,arguments.length>1?arguments[1]:void 0)}});var Dx=Ol("Array").includes,Hx=Lr,Kx=function(e){if(Xx(e))throw Mx("The method doesn't accept regular expressions");return e},Yx=B,Bx=Yn,zx=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Ux]=!1,"/./"[e](t)}catch(n){}}return!1},Jx=y("".indexOf);Hx({target:"String",proto:!0,forced:!zx("includes")},{includes:function(e){return!!~Jx(Bx(Yx(this)),Bx(Kx(e)),arguments.length>1?arguments[1]:void 0)}});var Qx=Ol("String").includes,qx=ue,$x=Dx,eE=Qx,tE=Array.prototype,rE=String.prototype,nE=r((function(e){var t=e.includes;return e===tE||qx(tE,e)&&t===tE.includes?$x:"string"==typeof e||e===rE||qx(rE,e)&&t===rE.includes?eE:t})),iE={exports:{}},oE=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),aE=o,uE=ee,sE=_,cE=oE,lE=Object.isExtensible,fE=aE((function(){lE(1)}))||cE?function(e){return!!uE(e)&&((!cE||"ArrayBuffer"!=sE(e))&&(!lE||lE(e)))}:lE,dE=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),pE=Lr,hE=y,vE=ii,yE=ee,mE=qe,gE=Qt.f,bE=Xi,_E=Fi,wE=fE,SE=dE,kE=!1,RE=nt("meta"),TE=0,xE=function(e){gE(e,RE,{value:{objectID:"O"+TE++,weakData:{}}})},EE=iE.exports={enable:function(){EE.enable=function(){},kE=!0;var e=bE.f,t=hE([].splice),r={};r[RE]=1,e(r).length&&(bE.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===RE){t(n,i,1);break}return n},pE({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:_E.f}))},fastKey:function(e,t){if(!yE(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!mE(e,RE)){if(!wE(e))return"F";if(!t)return"E";xE(e)}return e[RE].objectID},getWeakData:function(e,t){if(!mE(e,RE)){if(!wE(e))return!0;if(!t)return!1;xE(e)}return e[RE].weakData},onFreeze:function(e){return SE&&kE&&wE(e)&&!mE(e,RE)&&xE(e),e}};vE[RE]=!0;var LE=iE.exports,OE=Lr,IE=i,PE=LE,CE=o,ZE=yr,AE=Zd,jE=lp,WE=E,VE=ee,GE=Io,NE=Qt.f,XE=ea.forEach,ME=O,UE=Ko.set,FE=Ko.getterFor,DE=Ni,HE=oo,KE=Eb,YE=Jt,BE=lp,zE=H,JE=Zd,QE=hc,qE=vc,$E=up,eL=O,tL=LE.fastKey,rL=Ko.set,nL=Ko.getterFor,iL={getConstructor:function(e,t,r,n){var i=e((function(e,i){BE(e,o),rL(e,{type:t,index:DE(null),first:void 0,last:void 0,size:0}),eL||(e.size=0),zE(i)||JE(i,e[n],{that:e,AS_ENTRIES:r})})),o=i.prototype,a=nL(t),u=function(e,t,r){var n,i,o=a(e),u=s(e,t);return u?u.value=r:(o.last=u={index:i=tL(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=u),n&&(n.next=u),eL?o.size++:e.size++,"F"!==i&&(o.index[i]=u)),e},s=function(e,t){var r,n=a(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 KE(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,eL?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=s(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),eL?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=YE(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!!s(this,e)}}),KE(o,r?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),eL&&HE(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=nL(t),o=nL(n);QE(e,t,(function(e,t){rL(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)?qE("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,qE(void 0,!0))}),r?"entries":"values",!r,!0),$E(t)}};(function(e,t,r){var n,i=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=i?"set":"add",u=IE[e],s=u&&u.prototype,c={};if(ME&&WE(u)&&(o||s.forEach&&!CE((function(){(new u).entries().next()})))){var l=(n=t((function(t,r){UE(jE(t,l),{type:e,collection:new u}),null!=r&&AE(r,t[a],{that:t,AS_ENTRIES:i})}))).prototype,f=FE(e);XE(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in s)||o&&"clear"==e||ZE(l,e,(function(r,n){var i=f(this).collection;if(!t&&o&&!VE(r))return"get"==e&&void 0;var a=i[e](0===r?0:r,n);return t?this:a}))})),o||NE(l,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(t,e,i,a),PE.enable();GE(n,e,!1,!0),c[e]=n,OE({global:!0,forced:!0},c),o||r.setStrong(n,e,i)})("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),iL);var oL=te.Map,aL=Jt,uL=C,sL=Pe,cL=hp,lL=H,fL=Zd,dL=[].push,pL=function(e){var t,r,n,i,o=arguments.length,a=o>1?arguments[1]:void 0;return cL(this),(t=void 0!==a)&&sL(a),lL(e)?new this:(r=[],t?(n=0,i=aL(a,o>2?arguments[2]:void 0),fL(e,(function(e){uL(dL,r,i(e,n++))}))):fL(e,dL,{that:r}),new this(r))};Lr({target:"Map",stat:!0,forced:!0},{from:pL});var hL=Ru,vL=function(){return new this(hL(arguments))};Lr({target:"Map",stat:!0,forced:!0},{of:vL});var yL=Ee,mL=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")},gL=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},bL=ae("Map"),_L={Map:bL,set:gL("set",2),get:gL("get",1),has:gL("has",1),remove:gL("delete",1),proto:bL.prototype},wL=mL,SL=_L.remove;Lr({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=wL(this),r=!0,n=0,i=arguments.length;n<i;n++)e=SL(t,arguments[n]),r=r&&e;return!!r}});var kL=mL,RL=_L.get,TL=_L.has,xL=_L.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,i=kL(this);return TL(i,e)?(r=RL(i,e),"update"in t&&(r=t.update(r,e,i),xL(i,e,r)),r):(n=t.insert(e,i),xL(i,e,n),n)}});var EL=C,LL=function(e,t,r){for(var n,i,o=r||e.next;!(n=EL(o,e)).done;)if(void 0!==(i=t(n.value)))return i},OL=function(e,t,r){return r?LL(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},IL=Jt,PL=mL,CL=OL;Lr({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=PL(this),r=IL(e,arguments.length>1?arguments[1]:void 0);return!1!==CL(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var ZL=Jt,AL=mL,jL=OL,WL=_L.Map,VL=_L.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=AL(this),r=ZL(e,arguments.length>1?arguments[1]:void 0),n=new WL;return jL(t,(function(e,i){r(e,i,t)&&VL(n,i,e)})),n}});var GL=Jt,NL=mL,XL=OL;Lr({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=NL(this),r=GL(e,arguments.length>1?arguments[1]:void 0),n=XL(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}});var ML=Jt,UL=mL,FL=OL;Lr({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=UL(this),r=ML(e,arguments.length>1?arguments[1]:void 0),n=FL(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var DL=Lr,HL=C,KL=E,YL=Pe,BL=Zd,zL=_L.Map,JL=y([].push);DL({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new(KL(this)?this:zL);YL(t);var n=YL(r.has),i=YL(r.get),o=YL(r.set);return BL(e,(function(e){var a=t(e);HL(n,r,a)?JL(HL(i,r,a),e):HL(o,r,a,[e])})),r}});var QL=function(e,t){return e===t||e!=e&&t!=t},qL=mL,$L=OL;Lr({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===$L(qL(this),(function(t){if(QL(t,e))return!0}),!0)}});var eO=C,tO=Zd,rO=E,nO=Pe,iO=_L.Map;Lr({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(rO(this)?this:iO);nO(t);var n=nO(r.set);return tO(e,(function(e){eO(n,r,t(e),e)})),r}});var oO=mL,aO=OL;Lr({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=aO(oO(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var uO=Jt,sO=mL,cO=OL,lO=_L.Map,fO=_L.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=sO(this),r=uO(e,arguments.length>1?arguments[1]:void 0),n=new lO;return cO(t,(function(e,i){fO(n,r(e,i,t),e)})),n}});var dO=Jt,pO=mL,hO=OL,vO=_L.Map,yO=_L.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=pO(this),r=dO(e,arguments.length>1?arguments[1]:void 0),n=new vO;return hO(t,(function(e,i){yO(n,i,r(e,i,t))})),n}});var mO=mL,gO=Zd,bO=_L.set;Lr({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=mO(this),r=arguments.length,n=0;n<r;)gO(arguments[n++],(function(e,r){bO(t,e,r)}),{AS_ENTRIES:!0});return t}});var _O=Pe,wO=mL,SO=OL,kO=TypeError;Lr({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=wO(this),r=arguments.length<2,n=r?void 0:arguments[1];if(_O(e),SO(t,(function(i,o){r?(r=!1,n=i):n=e(n,i,o,t)})),r)throw kO("Reduce of empty map with no initial value");return n}});var RO=Jt,TO=mL,xO=OL;Lr({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=TO(this),r=RO(e,arguments.length>1?arguments[1]:void 0);return!0===xO(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var EO=Pe,LO=mL,OO=TypeError,IO=_L.get,PO=_L.has,CO=_L.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=LO(this),n=arguments.length;EO(t);var i=PO(r,e);if(!i&&n<3)throw OO("Updating absent value");var o=i?IO(r,e):EO(n>2?arguments[2]:void 0)(e,r);return CO(r,e,t(o,e,r)),r}});var ZO=C,AO=Pe,jO=E,WO=rr,VO=TypeError,GO=function(e,t){var r,n=WO(this),i=AO(n.get),o=AO(n.has),a=AO(n.set),u=arguments.length>2?arguments[2]:void 0;if(!jO(t)&&!jO(u))throw VO("At least one callback required");return ZO(o,n,e)?(r=ZO(i,n,e),jO(t)&&(r=t(r),ZO(a,n,e,r))):jO(u)&&(r=u(),ZO(a,n,e,r)),r};Lr({target:"Map",proto:!0,real:!0,forced:!0},{upsert:GO}),Lr({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:GO});var NO=r(oL);function XO(e,t){var r=Tl(e);if(xl){var n=xl(e);t&&(n=Al(n).call(n,(function(t){return Fl(e,t).enumerable}))),r.push.apply(r,n)}return r}function MO(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?tf(r=XO(Object(i),!0)).call(r,(function(t){zO(e,t,i[t])})):pf?_f(e,pf(i)):tf(n=XO(Object(i))).call(n,(function(t){Ef(e,t,Fl(i,t))}))}return e}function UO(){UO=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Ef||function(e,t,r){e[t]=r.value},i="function"==typeof Lf?Lf:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Ef(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(E){s=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var o=t&&t.prototype instanceof d?t:d,a=If(o.prototype),u=new R(i||[]);return n(a,"_invoke",{value:_(e,r,u)}),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 d(){}function p(){}function h(){}var v={};s(v,o,(function(){return this}));var y=Af&&Af(Af(T([])));y&&y!==t&&r.call(y,o)&&(v=y);var m=h.prototype=d.prototype=If(v);function g(e){var t;tf(t=["next","throw","return"]).call(t,(function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function i(n,o,a,u){var s=l(e[n],e,o);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==Sl(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,u)}),(function(e){i("throw",e,a,u)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,u)}))}u(s.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 u=w(a,r);if(u){if(u===f)continue;return u}}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 s=l(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.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 S(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 R(e){this.tryEntries=[{tryLoc:"root"}],tf(e).call(e,S,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:x}}function x(){return{value:void 0,done:!0}}return p.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,u,"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 jf?jf(e,h):(e.__proto__=h,s(e,u,"GeneratorFunction")),e.prototype=If(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),s(b.prototype,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Ny);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()}))},g(m),s(m,u,"Generator"),s(m,o,(function(){return this})),s(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return By(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,R.prototype={constructor:R,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,tf(t=this.tryEntries).call(t,k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+pm(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 u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)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 FO(e){return(FO="function"==typeof Lf&&"symbol"==typeof lR?function(e){return typeof e}:function(e){return e&&"function"==typeof Lf&&e.constructor===Lf&&e!==Lf.prototype?"symbol":typeof e})(e)}function DO(e,t,r,n,i,o,a){try{var u=e[o](a),s=u.value}catch(tC){return void r(tC)}u.done?t(s):Ny.resolve(s).then(n,i)}function HO(e){return function(){var t=this,r=arguments;return new Ny((function(n,i){var o=e.apply(t,r);function a(e){DO(o,n,i,a,u,"next",e)}function u(e){DO(o,n,i,a,u,"throw",e)}a(void 0)}))}}function KO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YO(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),Ef(e,sI(n.key),n)}}function BO(e,t,r){return t&&YO(e.prototype,t),r&&YO(e,r),Ef(e,"prototype",{writable:!1}),e}function zO(e,t,r){return(t=sI(t))in e?Ef(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JO(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}}),Ef(e,"prototype",{writable:!1}),t&&qO(e,t)}function QO(e){var t;return(QO=jf?Im(t=Af).call(t):function(e){return e.__proto__||Af(e)})(e)}function qO(e,t){var r;return(qO=jf?Im(r=jf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function $O(){if("undefined"==typeof Reflect||!Hm)return!1;if(Hm.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Hm(Boolean,[],(function(){}))),!0}catch(e){return!1}}function eI(e,t,r){var n;$O()?eI=Im(n=Hm).call(n):eI=function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Im(Function).apply(e,n));return r&&qO(i,r.prototype),i};return eI.apply(null,arguments)}function tI(e){var t="function"==typeof NO?new NO:void 0;return tI=function(e){if(null===e||(r=e,-1===JS(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 eI(e,arguments,QO(this).constructor)}return i.prototype=If(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),qO(i,e)},tI(e)}function rI(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Tl(e);for(n=0;n<o.length;n++)r=o[n],JS(t).call(t,r)>=0||(i[r]=e[r]);return i}(e,t);if(xl){var o=xl(e);for(n=0;n<o.length;n++)r=o[n],JS(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function nI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iI(e){var t=$O();return function(){var r,n=QO(e);if(t){var i=QO(this).constructor;r=Hm(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Sl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nI(e)}(this,r)}}function oI(){var e;"undefined"!=typeof Reflect&&gR?oI=Im(e=gR).call(e):oI=function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=QO(e)););return e}(e,t);if(n){var i=Fl(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}};return oI.apply(this,arguments)}function aI(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 uI(e,t){var r=void 0!==Lf&&bR(e)||e["@@iterator"];if(!r){if(uR(e)||(r=function(e,t){var r;if(e){if("string"==typeof e)return aI(e,t);var n=pm(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?wR(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aI(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,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function sI(e){var t=function(e,t){if("object"!==Sl(e)||null===e)return e;var r=e[Km];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Sl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Sl(t)?t:String(t)}var cI=Pe,lI=ze,fI=D,dI=Nr,pI=TypeError,hI=function(e){return function(t,r,n,i){cI(r);var o=lI(t),a=fI(o),u=dI(o),s=e?u-1:0,c=e?-1:1;if(n<2)for(;;){if(s in a){i=a[s],s+=c;break}if(s+=c,e?s<0:u<=s)throw pI("Reduce of empty array with no initial value")}for(;e?s>=0:u>s;s+=c)s in a&&(i=r(i,a[s],s,o));return i}},vI={left:hI(!1),right:hI(!0)}.left;Lr({target:"Array",proto:!0,forced:!rp&&ve>79&&ve<83||!Hl("reduce")},{reduce:function(e){var t=arguments.length;return vI(this,e,t,t>1?arguments[1]:void 0)}});var yI,mI=Ol("Array").reduce,gI=ue,bI=mI,_I=Array.prototype,wI=r((function(e){var t=e.reduce;return e===_I||gI(_I,e)&&t===_I.reduce?bI:t})),SI="network",kI="network_timeout",RI="network_forbidden",TI="network_notfound",xI="network_range_not_satisfiable",EI="demux",LI="remux",OI="media",II="drm",PI="other",CI="runtime",ZI={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"},AI=(zO(yI={},"manifest",{HLS:1100,DASH:1200}),zO(yI,SI,2100),zO(yI,kI,2101),zO(yI,RI,2103),zO(yI,TI,2104),zO(yI,xI,2116),zO(yI,EI,{FLV:3100,HLS:3200,MP4:3300,FMP4:3400,SIDX:3410}),zO(yI,LI,{FMP4:4100,MP4:4200}),zO(yI,OI,{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}),zO(yI,II,{LICENSE:7100,CUSTOM_LICENSE:7200}),zO(yI,PI,8e3),zO(yI,CI,{NO_CANPLAY_ERROR:9001,BUFFERBREAK_ERROR:9002,WAITING_TIMEOUT_ERROR:9003}),yI),jI=function(e){JO(r,e);var t=iI(r);function r(e,n,i,o,a){var u;return KO(this,r),(u=t.call(this,a||(null==i?void 0:i.message))).errorType=e===kI?SI:e,u.originError=i,u.ext=o,u.errorCode=AI[e][n]||AI[e],u.errorMessage=u.message,u.errorCode||(u.errorType=PI,u.errorCode=AI[u.errorType]),u}return BO(r,null,[{key:"create",value:function(e,t,n,i,o){return e instanceof r?e:(e instanceof Error&&(n=e,e=""),e||(e=PI),new r(e,t,n,i,o))}},{key:"network",value:function(e){var t;return new r(null!=e&&e.isTimeout?kI:SI,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}(tI(Error)),WI=1,VI=2,GI=3,NI=4,XI=["Boolean","Number","String","Undefined","Null","Date","Object"],MI=function(){function e(t,r){KO(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 BO(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,pg(t=[WI]).call(t,o)),e.disabled||(n=console).debug.apply(n,pg(r=[this._prefix,UI()]).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,pg(t=[VI]).call(t,o)),e.disabled||(n=console).log.apply(n,pg(r=[this._prefix,UI()]).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,pg(t=[GI]).call(t,o)),e.disabled||(n=console).warn.apply(n,pg(r=[this._prefix,UI()]).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,pg(t=[NI]).call(t,o)),e.disabled||(n=console).error.apply(n,pg(r=[this._prefix,UI()]).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=aR(n).call(n,(function(e){return DI(e)}));t=this._prefix+UI()+Wx(o)}catch(u){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 UI(){return(new Date).toLocaleString()}function FI(e){var t;if("object"!==FO(e))return e;var r=pm(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 DI(e,t,r){var n;r||(r=1),t||(t=2);var i={};if(!e||"object"!==FO(e))return e;var o=pm(n=Object.prototype.toString.call(e)).call(n,8,-1);if(!nE(XI).call(XI,o))return o;if(!(r>t)){for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r===t?i[a]=FI(e[a]):"object"===FO(e[a])?i[a]=DI(e[a],t,r+1):i[a]=e[a]);return i}}zO(MI,"disabled",!0);var HI="fetch",KI="xhr",YI="arraybuffer",BI="text",zI="json",JI=function(e){JO(r,e);var t=iI(r);function r(e,n,i,o){var a;return KO(this,r),zO(nI(a=t.call(this,o)),"retryCount",0),zO(nI(a),"isTimeout",!1),zO(nI(a),"loaderType",HI),zO(nI(a),"startTime",0),zO(nI(a),"endTime",0),zO(nI(a),"options",{}),a.url=e,a.request=n,a.response=i,a}return BO(r)}(tI(Error)),QI=Object.prototype.toString;function qI(e){if("[object Object]"!==QI.call(e))return!1;var t=Af(e);return null===t||t===Object.prototype}function $I(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 eP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tP(e,t){var r,n;if(e){if(!t)return e;var i,o=Al(r=aR(n=Tl(t)).call(n,(function(e){if(null!=(i=t[e]))return uR(i)?e+="[]":i=[i],aR(i).call(i,(function(t){var r,n;return n=t,"[object Date]"===QI.call(n)?t=t.toISOString():function(e){return null!==e&&"object"===FO(e)}(t)&&(t=Wx(t)),pg(r="".concat(eP(e),"=")).call(r,eP(t))})).join("&")}))).call(r,Boolean).join("&");if(o){var a=JS(e).call(e,"#");-1!==a&&(e=pm(e).call(e,0,a)),e+=(-1===JS(e).call(e,"?")?"?":"&")+o}return e}}function rP(e,t,r,n,i,o,a,u,s,c,l){return i=null!=i?kT(i):null,n=eR(n||"0",10),Ck(n)&&(n=0),{data:e,done:t,options:{range:s,vid:c,index:u,contentLength:n,age:i,startTime:o,firstByteTime:a,endTime:hx(),priOptions:l},response:r}}function nP(e,t){return Math.round(8*e*1e3/t/1024)}var iP="error",oP="core.ttfb",aP="core.loadstart",uP="core.loadresponseheaders",sP="core.loadcomplete",cP="core.loadretry",lP="core.metadataparsed",fP="core.sei",dP="real_time_speed",pP=2097152,hP=function(e){JO(n,e);var t,r=iI(n);function n(){var e;return KO(this,n),zO(nI(e=r.call(this)),"_abortController",null),zO(nI(e),"_timeoutTimer",null),zO(nI(e),"_reader",null),zO(nI(e),"_response",null),zO(nI(e),"_aborted",!1),zO(nI(e),"_index",-1),zO(nI(e),"_range",null),zO(nI(e),"_receivedLength",0),zO(nI(e),"_running",!1),zO(nI(e),"_logger",null),zO(nI(e),"_vid",""),zO(nI(e),"_onProcessMinLen",0),zO(nI(e),"_onCancel",null),zO(nI(e),"_priOptions",null),e}return BO(n,[{key:"load",value:function(e){var t,r=this,n=e.url,i=e.vid,o=e.timeout,a=e.responseType,u=e.onProgress,s=e.index,c=e.onTimeout,l=e.onCancel,f=e.range,d=e.transformResponse,p=e.request,h=e.params,v=e.logger,y=e.method,m=e.headers,g=e.body,b=e.mode,_=e.credentials,w=e.cache,S=e.redirect,k=e.referrer,R=e.referrerPolicy,T=e.onProcessMinLen,x=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=s,this._range=f||[0,0],this._vid=i||n,this._priOptions=x||{};var E={method:y,headers:m,body:g,mode:b,credentials:_,cache:w,redirect:S,referrer:k,referrerPolicy:R,signal:null===(t=this._abortController)||void 0===t?void 0:t.signal},L=!1;clearTimeout(this._timeoutTimer),n=tP(n,h);var O=$I(f);O&&(m=p?p.headers:E.headers=E.headers||(Headers?new Headers:{}),Headers&&m instanceof Headers?m.append("Range",O):m.Range=O),o&&(this._timeoutTimer=Pg((function(){if(L=!0,r.cancel(),c){var e=new JI(n,E,null,"timeout");e.isTimeout=!0,c(e,{index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions})}}),o));var I=hx();return this._logger.debug("[fetch load start], index,",s,",range,",f),new Ny((function(e,t){fetch(p||n,p?void 0:E).then(function(){var i=HO(UO().mark((function i(o){var c,l,p,h;return UO().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(d&&(o=d(o,n)||o),o.ok){i.next=7;break}throw new JI(n,E,o,"bad network response");case 7:if(c=hx(),a!==BI){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!==zI){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(!u){i.next=29;break}return r.resolve=e,r.reject=t,r._loadChunk(o,u,I,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=hx()-I,h=nP(l.byteLength,p),r.emit(dP,{speed:h,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,",s,",range,",f),e(rP(l,!0,o,o.headers.get("Content-Length"),o.headers.get("age"),I,c,s,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 JI?e:new JI(n,E,null,null===(i=e)||void 0===i?void 0:i.message)).startTime=I,e.endTime=hx(),e.isTimeout=L,e.options={index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions},t(e))}))}))}},{key:"cancel",value:(t=HO(UO().mark((function e(){return UO().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(tC){}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 JI(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(pP),this._writeIdx=0);var a,u,s,c=this._reader=e.body.getReader(),l=function(){var o=HO(UO().mark((function o(){var f,d,p,h,v,y,m,g;return UO().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return u=hx(),o.prev=1,o.next=4,c.read();case 4:a=o.sent,s=hx(),o.next=13;break;case 8:return o.prev=8,o.t0=o.catch(1),s=hx(),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(d=(null===(f=i._range)||void 0===f?void 0:f.length)>0?i._range[0]:0,p=d+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:u,endTime:s,st:r,firstByteTime:n,priOptions:i._priOptions},e),o.abrupt("return");case 19:var b;if(h=a.value?a.value.byteLength:0,i._receivedLength+=h,i._logger.debug("【fetchLoader,onProgress call】,task,",i._range,", start,",p,", end,",d+i._receivedLength,", done,",a.done),i._onProcessMinLen>0){if(i._writeIdx+h>=i._onProcessMinLen||a.done)(v=new Uint8Array(i._writeIdx+h)).set(pm(b=i._cache).call(b,0,i._writeIdx),0),h>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(h>0&&i._writeIdx+h<pP)i._cache.set(a.value,i._writeIdx),i._writeIdx+=h,i._logger.debug("【fetchLoader,onProgress cache】,len,",h,", writeIdx,",i._writeIdx);else if(h>0){var _;y=new Uint8Array(i._writeIdx+h+2048),i._logger.debug("【fetchLoader,onProgress extra start】,size,",i._writeIdx+h+2048,", datalen,",h,", writeIdx,",i._writeIdx),y.set(pm(_=i._cache).call(_,0,i._writeIdx),0),h>0&&y.set(a.value,i._writeIdx),i._writeIdx+=h,delete i._cache,i._cache=y,i._logger.debug("【fetchLoader,onProgress extra end】,len,",h,", 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:u,endTime:s,st:r,firstByteTime:n,priOptions:i._priOptions},e),a.done?(m=hx()-r,g=nP(i._receivedLength,m),i.emit(dP,{speed:g,len:i._receivedLength,time:m,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(rP(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}(ZR);var vP=function(e){JO(r,e);var t=iI(r);function r(){var e;return KO(this,r),zO(nI(e=t.call(this)),"_xhr",null),zO(nI(e),"_aborted",!1),zO(nI(e),"_timeoutTimer",null),zO(nI(e),"_range",null),zO(nI(e),"_receivedLength",0),zO(nI(e),"_url",null),zO(nI(e),"_onProgress",null),zO(nI(e),"_index",-1),zO(nI(e),"_headers",null),zO(nI(e),"_currentChunkSizeKB",384),zO(nI(e),"_timeout",null),zO(nI(e),"_xhr",null),zO(nI(e),"_withCredentials",null),zO(nI(e),"_startTime",-1),zO(nI(e),"_loadCompleteResolve",null),zO(nI(e),"_loadCompleteReject",null),zO(nI(e),"_runing",!1),zO(nI(e),"_logger",!1),zO(nI(e),"_vid",""),zO(nI(e),"_responseType",void 0),zO(nI(e),"_credentials",void 0),zO(nI(e),"_method",void 0),zO(nI(e),"_transformResponse",void 0),zO(nI(e),"_firstRtt",void 0),zO(nI(e),"_onCancel",null),zO(nI(e),"_priOptions",null),e}return BO(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=tP(e.url,e.params);var r=hx();return new Ny((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 JI?e:new JI(t._url,t._request)).startTime=r,e.endTime=hx(),e.options={index:t._index,vid:t._vid,priOptions:t._priOptions},e}))}},{key:"_startLoad",value:function(){var e=null;if(this._responseType===YI&&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=hx();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=Im(r=this._onLoad).call(r,this),i.onreadystatechange=Im(n=this._onReadyStatechange).call(n,this),i.onerror=function(e){var r,n,i;t._running=!1;var o=new JI(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 JI(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||{},u=$I(e);if(u&&(a.Range=u),a)tf(o=Tl(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(s){s.options={index:this._index,range:e,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(s)}}},{key:"_onReadyStatechange",value:function(e){2===e.target.readyState&&this._firstRtt<0&&(this._firstRtt=hx())}},{key:"_onLoad",value:function(e){var t,r=e.target.status;if(r<200||r>299){var n=new JI(this._url,null,MO(MO({},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,u=(null===(t=this._range)||void 0===t?void 0:t.length)>0?this._range[0]:0;if(this._responseType===YI){var s,c=new Uint8Array(e.target.response);if(i=u+this._receivedLength,c&&c.byteLength>0){this._receivedLength+=c.byteLength;var l=hx()-this._startTime,f=nP(this._receivedLength,l);this.emit(dP,{speed:f,len:this._receivedLength,time:l,vid:this._vid,index:this._index,range:[i,u+this._receivedLength],priOptions:this._priOptions})}o=c,a=!((null===(s=this._range)||void 0===s?void 0:s.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 ",u+this._receivedLength,",dataLen,",c?c.byteLength:0,",receivedLength",this._receivedLength,",index,",this._index,", done,",a)}else a=!0,o=e.target.response;var d={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&&(d=this._transformResponse(d,this._url)||d),this._onProgress&&this._onProgress(o,a,{index:this._index,vid:this._vid,range:[i,u+this._receivedLength],startTime:this._startTime,endTime:hx(),priOptions:this._priOptions},d),a?(this._runing=!1,this._loadCompleteResolve&&this._loadCompleteResolve(rP(this._onProgress?null:o,a,d,d.headers["content-length"],d.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,oI(QO(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=uI(CT(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()]=pm(o).call(o,1).join(": ")}}catch(a){i.e(a)}finally{i.f()}return n}}],[{key:"isSupported",value:function(){return"undefined"!=typeof XMLHttpRequest}}]),r}(ZR),yP=["retry","retryDelay","onRetryError","transformError"],mP=function(){function e(t,r){var n,i,o;KO(this,e),this.promise=((o=new Ny((function(e,t){n=e,i=t}))).used=!1,o.resolve=function(){return o.used=!0,n.apply(void 0,arguments)},o.reject=function(){return o.used=!0,i.apply(void 0,arguments)},o),this.alive=!!r.onProgress,!r.logger&&(r.logger=new MI("Loader")),this._loaderType=t,this._loader=t===HI&&"undefined"!=typeof fetch?new hP:new vP,this._config=r,this._retryCount=0,this._retryTimer=null,this._canceled=!1,this._retryCheckFunc=r.retryCheckFunc,this._logger=r.logger}var t;return BO(e,[{key:"exec",value:function(){var e=this,t=this._config,r=t.retry,n=t.retryDelay,i=t.onRetryError,o=t.transformError,a=rI(t,yP),u=function(){var t=HO(UO().mark((function t(){var s,c,l;return UO().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._loader.load(a);case 3:s=t.sent,e.promise.resolve(s),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=Pg(u,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 u(),this.promise}},{key:"cancel",value:(t=HO(UO().mark((function e(){return UO().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 gP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Ny((function(t){return Pg(t,e)}))}var bP,_P=function(e){JO(n,e);var t,r=iI(n);function n(e){var t;return KO(this,n),zO(nI(t=r.call(this,e)),"type",HI),zO(nI(t),"_queue",[]),zO(nI(t),"_alive",[]),zO(nI(t),"_currentTask",null),zO(nI(t),"_finnalUrl",""),zO(nI(t),"_config",void 0),t._config=function(e){return MO({loaderType:HI,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:BI,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!==KI&&hP.isSupported()||(t.type=KI),t.log=e.logger,t}return BO(n,[{key:"isFetch",value:function(){return this.type===HI}},{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=cR({},this._config,r)).params&&(r.params=cR({},r.params)),r.headers&&qI(r.headers)&&(r.headers=cR({},r.headers)),r.body&&qI(r.body)&&(r.body=cR({},r.body)),r.transformRequest&&(r=r.transformRequest(r)||r),r.logger=this.log;var n=new mP(this.type,r);return n.loader.on(dP,(function(e){t.emit(dP,e)})),this._queue.push(n),1!==this._queue.length||this._currentTask&&this._currentTask.running||this._processTask(),n.promise}},{key:"cancel",value:(t=HO(UO().mark((function e(){var t;return UO().wrap((function(e){for(var r,n,i;;)switch(e.prev=e.next){case 0:return t=pg(r=aR(n=this._queue).call(n,(function(e){return e.cancel()}))).call(r,aR(i=this._alive).call(i,(function(e){return e.cancel()}))),this._currentTask&&t.push(this._currentTask.cancel()),this._queue=[],this._alive=[],e.next=6,Ny.all(t);case 6:return e.next=8,gP();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=Al(n=e._alive).call(n,(function(t){return t&&t!==e._currentTask})));e._processTask()}))}}}],[{key:"isFetchSupport",value:function(){return hP.isSupported()}}]),n}(ZR),wP="core.rtcstatechange",SP={},kP={},RP={exports:{}},TP=RP.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),t+=null!=e["network-id"]?" network-id %d":"%v",t+=null!=e["network-cost"]?" network-cost %d":"%v"}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){var t="mediaclk:";return t+=null!=e.id?"id=%s %s":"%v%s",t+=null!=e.mediaClockValue?"=%s":"",t+=null!=e.rateNumerator?" rate=%s":"",t+=null!=e.rateDenominator?"/%s":""}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};tf(bP=Tl(TP)).call(bP,(function(e){var t=TP[e];tf(t).call(t,(function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}));var xP=RP.exports;!function(e,t){var r=function(e){return String(Number(e))===e?Number(e):e},n=function(e,t,n){var i=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:i&&!t[e.name]&&(t[e.name]={});var o=e.push?{}:i?t[e.name]:t;!function(e,t,n,i){if(i&&!n)t[i]=r(e[1]);else for(var o=0;o<n.length;o+=1)null!=e[o+1]&&(t[n[o]]=r(e[o+1]))}(n.match(e.reg),o,e.names,e.name),e.push&&t[e.push].push(o)},i=xP,o=Im(t=RegExp.prototype.test).call(t,/^([a-z])=(.*)/);e.parse=function(e){var t,r,a={},u=[],s=a;return tf(t=Al(r=e.split(/(\r\n|\r|\n)/)).call(r,o)).call(t,(function(e){var t=e[0],r=pm(e).call(e,2);"m"===t&&(u.push({rtp:[],fmtp:[]}),s=u[u.length-1]);for(var o=0;o<(i[t]||[]).length;o+=1){var a=i[t][o];if(a.reg.test(r))return n(a,s,r)}})),a.media=u,a};var a=function(e,t){var n=t.split(/=(.+)/,2);return 2===n.length?e[n[0]]=r(n[1]):1===n.length&&t.length>1&&(e[n[0]]=void 0),e};e.parseParams=function(e){var t;return wI(t=e.split(/;\s?/)).call(t,a,{})},e.parseFmtpConfig=e.parseParams,e.parsePayloads=function(e){var t;return aR(t=e.toString().split(" ")).call(t,Number)},e.parseRemoteCandidates=function(e){for(var t,n=[],i=aR(t=e.split(" ")).call(t,r),o=0;o<i.length;o+=3)n.push({component:i[o],ip:i[o+1],port:i[o+2]});return n},e.parseImageAttributes=function(e){var t;return aR(t=e.split(" ")).call(t,(function(e){var t;return wI(t=e.substring(1,e.length-1).split(",")).call(t,a,{})}))},e.parseSimulcastStreamList=function(e){var t;return aR(t=e.split(";")).call(t,(function(e){var t;return aR(t=e.split(",")).call(t,(function(e){var t,n=!1;return"~"!==e[0]?t=r(e):(t=r(e.substring(1,e.length)),n=!0),{scid:t,paused:n}}))}))}}(kP);var EP=xP,LP=/%[sdv%]/g,OP=function(e){var t=1,r=arguments,n=r.length;return e.replace(LP,(function(e){if(t>=n)return e;var i=r[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(i);case"%d":return Number(i);case"%v":return""}}))},IP=function(e,t,r){var n=[e+"="+(t.format instanceof Function?t.format(t.push?r:r[t.name]):t.format)];if(t.names)for(var i=0;i<t.names.length;i+=1){var o=t.names[i];t.name?n.push(r[t.name][o]):n.push(r[t.names[i]])}else n.push(r[t.name]);return OP.apply(null,n)},PP=["v","o","s","i","u","e","p","c","b","t","r","z","a"],CP=["i","c","b","a"],ZP=kP,AP=function(e,t){var r,n;t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),tf(r=e.media).call(r,(function(e){null==e.payloads&&(e.payloads="")}));var i=t.outerOrder||PP,o=t.innerOrder||CP,a=[];return tf(i).call(i,(function(t){var r;tf(r=EP[t]).call(r,(function(r){if(r.name in e&&null!=e[r.name])a.push(IP(t,r,e));else if(r.push in e&&null!=e[r.push]){var n;tf(n=e[r.push]).call(n,(function(e){a.push(IP(t,r,e))}))}}))})),tf(n=e.media).call(n,(function(e){a.push(IP("m",EP.m[0],e)),tf(o).call(o,(function(t){var r;tf(r=EP[t]).call(r,(function(r){if(r.name in e&&null!=e[r.name])a.push(IP(t,r,e));else if(r.push in e&&null!=e[r.push]){var n;tf(n=e[r.push]).call(n,(function(e){a.push(IP(t,r,e))}))}}))}))})),a.join("\r\n")+"\r\n"};function jP(e){return new Ny((function(t){var r;null===(r=e.getStats(null))||void 0===r||r.then((function(e){var r,n,i;t((n=[],i=[],tf(r=e).call(r,(function(e){"inbound-rtp"===e.type&&n.push(e),"remote-outbound-rtp"===e.type&&i.push(e)})),aR(n).call(n,(function(e){var t,n=r.get(e.codecId),o=r.get(e.trackId);return{type:null!==(t=e.mediaType)&&void 0!==t?t:e.kind,inboundRtp:e,remoteOutBoundRtp:ok(i).call(i,(function(t){return t.mediaType===e.mediaType})),codec:n,track:o}}))))}))})).catch((function(){}))}function WP(e){var t,r,n,i,o,a,u,s,c,l,f,d,p,h,v,y,m,g,b,_,w,S,k,R,T,x,E,L,O,I,P,C,Z,A,j,W,V,G=null==e?void 0:Al(e).call(e,(function(e){return"video"===e.type}))[0],N=null==e?void 0:Al(e).call(e,(function(e){return"audio"===e.type}))[0];(G&&G.remoteOutBoundRtp&&(Z={bytesSent:G.remoteOutBoundRtp.bytesSent,packetsSent:G.remoteOutBoundRtp.packetsSent}),N&&N.remoteOutBoundRtp&&(A={bytesSent:N.remoteOutBoundRtp.bytesSent,packetsSent:N.remoteOutBoundRtp.packetsSent}),void 0!==(null==G||null===(t=G.inboundRtp)||void 0===t?void 0:t.jitterBufferDelay))&&(j=(null===(W=G.inboundRtp)||void 0===W?void 0:W.jitterBufferDelay)/(null===(V=G.inboundRtp)||void 0===V?void 0:V.jitterBufferEmittedCount)*1e3);return{video:G?{codec:null===(r=G.codec)||void 0===r?void 0:r.mimeType,payloadType:null===(n=G.codec)||void 0===n?void 0:n.payloadType,sdpFmtpLine:null===(i=G.codec)||void 0===i?void 0:i.sdpFmtpLine,bytesReceived:(null===(o=G.inboundRtp)||void 0===o?void 0:o.bytesReceived)||0,firCount:null===(a=G.inboundRtp)||void 0===a?void 0:a.firCount,pliCount:null===(u=G.inboundRtp)||void 0===u?void 0:u.pliCount,frameHeight:null===(s=G.inboundRtp)||void 0===s?void 0:s.frameHeight,frameWidth:null===(c=G.inboundRtp)||void 0===c?void 0:c.frameWidth,framesDecoded:null===(l=G.inboundRtp)||void 0===l?void 0:l.framesDecoded,framesDropped:null===(f=G.inboundRtp)||void 0===f?void 0:f.framesDropped,framesPerSecond:null===(d=G.inboundRtp)||void 0===d?void 0:d.framesPerSecond,framesReceived:null!==(p=null===(h=G.inboundRtp)||void 0===h?void 0:h.framesReceived)&&void 0!==p?p:null===(v=G.track)||void 0===v?void 0:v.framesReceived,jitter:null===(y=G.inboundRtp)||void 0===y?void 0:y.jitter,jitterBufferDelay:null===(m=G.inboundRtp)||void 0===m?void 0:m.jitterBufferDelay,keyFramesDecoded:null===(g=G.inboundRtp)||void 0===g?void 0:g.keyFramesDecoded,nackCount:null===(b=G.inboundRtp)||void 0===b?void 0:b.nackCount,packetsLost:(null===(_=G.inboundRtp)||void 0===_?void 0:_.packetsLost)||0,packetsReceived:(null===(w=G.inboundRtp)||void 0===w?void 0:w.packetsReceived)||0,averageJitterBufferDelay:j}:void 0,audio:N?{codec:null===(S=N.codec)||void 0===S?void 0:S.mimeType,payloadType:null===(k=N.codec)||void 0===k?void 0:k.payloadType,sdpFmtpLine:null===(R=N.codec)||void 0===R?void 0:R.sdpFmtpLine,bytesReceived:(null===(T=N.inboundRtp)||void 0===T?void 0:T.bytesReceived)||0,audioLevel:null===(x=N.inboundRtp)||void 0===x?void 0:x.audioLevel,jitter:null===(E=N.inboundRtp)||void 0===E?void 0:E.jitter,jitterBufferDelay:null===(L=N.inboundRtp)||void 0===L?void 0:L.jitterBufferDelay,packetsLost:(null===(O=N.inboundRtp)||void 0===O?void 0:O.packetsLost)||0,packetsReceived:(null===(I=N.inboundRtp)||void 0===I?void 0:I.packetsReceived)||0,totalSamplesDuration:null===(P=N.inboundRtp)||void 0===P?void 0:P.totalSamplesDuration,totalSamplesReceived:null===(C=N.inboundRtp)||void 0===C?void 0:C.totalSamplesReceived}:void 0,videoRemote:Z,audioRemote:A}}SP.write=AP,SP.parse=ZP.parse,SP.parseParams=ZP.parseParams,SP.parseFmtpConfig=ZP.parseFmtpConfig,SP.parsePayloads=ZP.parsePayloads,SP.parseRemoteCandidates=ZP.parseRemoteCandidates,SP.parseImageAttributes=ZP.parseImageAttributes,SP.parseSimulcastStreamList=ZP.parseSimulcastStreamList;var VP=function(){function e(t,r){var n=this;qm(this,e),tg(this,"_pc",null),tg(this,"_lastVideoStats",null),tg(this,"_lastRemoteVideoStats",null),tg(this,"_timer",0),tg(this,"_timerInterval",0),tg(this,"_speedQueue",[]),tg(this,"_lostRateQueue",[]),tg(this,"_receivedRateQueue",[]),tg(this,"_currentSpeed",-1),tg(this,"_currentLostRate",-1),tg(this,"_currentReceivedRate",-1),tg(this,"_evaluate",Qm(zm().mark((function e(){var t,r,i,o,a,u,s,c,l,f,d,p,h,v,y,m;return zm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,jP(n._pc).then((function(e){return WP(e)}));case 3:t=e.sent,n._lastVideoStats&&null!=t&&t.video&&(r=t.video,i=r.bytesReceived,o=r.packetsLost,a=r.packetsReceived,u=n._lastVideoStats,s=u.bytesReceived,c=u.packetsLost,l=u.packetsReceived,s&&n._cacheSpeed(8e3*(i-s)/n._timerInterval),f=o-c,(d=a-l)&&f>=0&&n._cacheLostRate(f/(f+d)*1e3/n._timerInterval)),n._lastRemoteVideoStats&&null!=t&&t.videoRemote&&(p=t.video.bytesReceived,h=n._lastVideoStats.bytesReceived,v=null==t?void 0:t.videoRemote,y=v.bytesSent,(m=n._lastRemoteVideoStats.bytesSent)&&y&&y-m>0&&n._cacheReceivedRate((p-h)/(y-m))),n._lastVideoStats=null==t?void 0:t.video,n._lastRemoteVideoStats=null==t?void 0:t.videoRemote,e.next=12;break;case 10:e.prev=10,e.t0=e.catch(0);case 12:case"end":return e.stop()}}),e,null,[[0,10]])})))),this._pc=t,this._timerInterval=r,this.start(r)}return eg(e,[{key:"start",value:function(e){clearInterval(this._timer),this._pc&&(this._timer=aT(this._evaluate,e))}},{key:"getStats",value:function(){return this._speedQueue.length?{speed:kT(this._currentSpeed.toFixed(2)),avgSpeed:kT(this._getAvgSpeed().toFixed(2)),lostRate:kT(this._currentLostRate.toFixed(2)),avgLostRate:kT(this._getAvgLostRate().toFixed(2)),receivedRate:kT(this._currentReceivedRate.toFixed(2)),avgReceivedRate:kT(this._getAvgReceivedRate().toFixed(2))}:{}}},{key:"destroy",value:function(){clearInterval(this._timer),this._pc=null,this._lastVideoStats=null}},{key:"_cacheSpeed",value:function(e){var t;(this._currentSpeed=e,this._speedQueue.length>5)&&(this._speedQueue=pm(t=this._speedQueue).call(t,5));this._speedQueue.push(e)}},{key:"_cacheLostRate",value:function(e){var t;(this._currentLostRate=e,this._lostRateQueue.length>5)&&(this._lostRateQueue=pm(t=this._lostRateQueue).call(t,5));this._lostRateQueue.push(e)}},{key:"_cacheReceivedRate",value:function(e){var t;(this._currentReceivedRate=e,this._receivedRateQueue.length>5)&&(this._receivedRateQueue=pm(t=this._receivedRateQueue).call(t,5));this._receivedRateQueue.push(e)}},{key:"_getAvgSpeed",value:function(){var e;return-1===this._currentSpeed?-1:wI(e=this._speedQueue).call(e,(function(e,t){return e+t}),0)/this._speedQueue.length}},{key:"_getAvgLostRate",value:function(){var e;return-1===this._currentLostRate?-1:wI(e=this._lostRateQueue).call(e,(function(e,t){return e+t}),0)/this._lostRateQueue.length}},{key:"_getAvgReceivedRate",value:function(){var e;return-1===this._currentReceivedRate?-1:wI(e=this._receivedRateQueue).call(e,(function(e,t){return e+t}),0)/this._receivedRateQueue.length}}]),e}();function GP(){return!(!window.RTCPeerConnection||!window.RTCPeerConnection.prototype.addTransceiver)}var NP=function(){return"undefined"!=typeof window&&window.Worker},XP=function(){return"undefined"!=typeof MessageChannel},MP=function(){return"undefined"!=typeof TransformStream&&"undefined"!=typeof RTCRtpSender&&"undefined"!=typeof RTCRtpReceiver&&void 0!==RTCRtpSender.prototype.createEncodedStreams&&void 0!==RTCRtpReceiver.prototype.createEncodedStreams},UP={getNALUnits:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.length-e.position<4)return[];var r=e.position;return 1===e.getInt32(r)||0===e.getInt16(r)&&1===e.getInt8(r+2)?UP.getAnnexbNals(e,t):UP.getAvccNals(e,t)},getAnnexbNals:function(e,t){for(var r=[],n=UP.getHeaderPositionAnnexB(e),i=n.pos,o=i;i<e.length-4;){var a,u,s=new Uint8Array(pm(a=e.buffer).call(a,i,i+n.headerLength));n.pos===e.position&&e.skip(n.headerLength),o=(n=UP.getHeaderPositionAnnexB(e)).pos;var c={header:s,body:new Uint8Array(pm(u=e.buffer).call(u,i+s.byteLength,o)),type:-1};t?UP.analyseH265Nal(c):UP.analyseNal(c),(c.type<=9||t&&c.type<=40)&&0!==c.type&&r.push(c),e.skip(o-e.position),i=o}return r},getAvccNals:function(e,t){for(var r=[];e.position<e.length-4;){var n=e.getInt32(e.position);if(!(e.length-e.position>=n))break;var i,o,a=new Uint8Array(pm(i=e.buffer).call(i,e.position,e.position+4));e.skip(4);var u=new Uint8Array(pm(o=e.buffer).call(o,e.position,e.position+n));e.skip(n);var s={header:a,body:u,type:-1};t?UP.analyseH265Nal(s):UP.analyseNal(s),s.type<=9&&0!==s.type&&r.push(s)}return r},analyseNal:function(e){var t=31&e.body[0];switch(e.type=t,t){case 1:e.ndr=!0;break;case 5:e.idr=!0;break;case 6:e.sei=!0;break;case 7:e.sps=!0;break;case 8:e.pps=!0}},analyseH265Nal:function(e){var t=(126&e.body[0])>>1;switch(e.type=t,t){case 39:case 40:e.sei=!0}},getHeaderPositionAnnexB:function(e){for(var t=e.position,r=0,n=e.length;3!==r&&4!==r&&t<n-4;)0===e.getInt16(t)?1===e.getInt16(t+2)?r=4:1===e.getInt8(t+2)?r=3:t++:t++;return t===n-4&&(0===e.getInt16(t)?1===e.getInt16(t+2)?r=4:t=n:(t++,0===e.getInt16(t)&&1===e.getInt8(t)?r=3:t=n)),{pos:t,headerLength:r}},isH265VideoFrame:function(e){var t,r,n;return nE(t=((null===(r=e.getMetadata)||void 0===r||null===(n=r.call(e))||void 0===n?void 0:n.mimeType)||"").toLowerCase()).call(t,"h265")}},FP=function(){function e(t){qm(this,e),tg(this,"_position",0),this._dataview=new DataView(t)}return eg(e,[{key:"length",get:function(){return this.buffer.byteLength}},{key:"buffer",get:function(){return this._dataview.buffer}},{key:"position",get:function(){return this._position},set:function(e){this._position=e}},{key:"back",value:function(e){this.position-=e}},{key:"getUint8",value:function(e){return this._dataview.getUint8(e)}},{key:"getInt8",value:function(e){return this._dataview.getInt8(e)}},{key:"getInt16",value:function(e){return this._dataview.getInt16(e)}},{key:"getUint16",value:function(e){return this._dataview.getUint16(e)}},{key:"getUint32",value:function(e){return this._dataview.getUint32(e)}},{key:"getInt32",value:function(e){return this._dataview.getInt32(e)}},{key:"skip",value:function(t){for(var r=Math.floor(t/4),n=t%4,i=0;i<r;i++)e.readByte(this,4);n>0&&e.readByte(this,n)}},{key:"readUint8",value:function(){return e.readByte(this,1)}},{key:"readUint16",value:function(){return e.readByte(this,2)}},{key:"readUint24",value:function(){return e.readByte(this,3)}},{key:"readUint32",value:function(){return e.readByte(this,4)}},{key:"readUint64",value:function(){return e.readByte(this,8)}},{key:"readInt8",value:function(){return e.readByte(this,1,!0)}},{key:"readInt16",value:function(){return e.readByte(this,2,!0)}},{key:"readInt32",value:function(){return e.readByte(this,4,!0)}},{key:"writeUint32",value:function(e){return new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e])}}],[{key:"readByte",value:function(e,t,r){var n;switch(t){case 1:n=r?e.getInt8(e.position):e.getUint8(e.position);break;case 2:n=r?e.getInt16(e.position):e.getUint16(e.position);break;case 3:if(r)throw new Error("not supported for readByte 3");n=e.getUint8(e.position)<<16,n|=e.getUint8(e.position+1)<<8,n|=e.getUint8(e.position+2);break;case 4:n=r?e.getInt32(e.position):e.getUint32(e.position);break;case 8:if(r)throw new Error("not supported for readBody 8");n=e.getUint32(e.position)<<32,n|=e.getUint32(e.position+4);break;default:n=""}return e.position+=t,n}}]),e}();function DP(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),Ef(e,(i=n.key,o=void 0,o=function(e,t){if("object"!==Sl(e)||null===e)return e;var r=e[Km];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Sl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===Sl(o)?o:String(o)),n)}var i,o}function HP(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)}var KP=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"parseAnnexB",value:function(e){var t=e.byteLength-1,r=0;do{if(0!==e[t])break;r++,t--}while(t>0);r>=3&&(e=e.subarray(0,t+1));for(var n=e.length,i=2,o=0;null!==e[i]&&void 0!==e[i]&&1!==e[i];)i++;if((o=2+ ++i)>=n)return[];for(var a=[];o<n;)switch(e[o]){case 0:if(0!==e[o-1]){o+=2;break}if(0!==e[o-2]){o++;break}if(o<n-1&&1!==e[o+1]){o++;break}i!==o-2&&a.push(e.subarray(i,o-2));do{o++}while(1!==e[o]&&o<n);o=(i=o+1)+2;break;case 1:if(0!==e[o-1]||0!==e[o-2]){o+=3;break}i!==o-2&&a.push(e.subarray(i,o-2)),o=(i=o+1)+2;break;default:o+=3}return i<n&&a.push(e.subarray(i)),a}},{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=HP(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 u=0;u<16;u++)a+=e[n].toString(16),n++;return{payload:e.subarray(n,n+o),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}}],(r=null)&&DP(t.prototype,r),n&&DP(t,n),Ef(t,"prototype",{writable:!1}),e}();function YP(e){return new TransformStream({transform:function(t,r){var n=UP.isH265VideoFrame(t),i=UP.getNALUnits(new FP(t.data),n);tf(i).call(i,(function(t){if(t.sei){var r=KP.parseSEI(KP.removeEPB(t.body),!1);r&&e({data:r,sei:{code:r.type,content:r.payload}})}})),r.enqueue(t)}})}"undefined"!=typeof self&&"DedicatedWorkerGlobalScope"===self.constructor.name&&self.addEventListener("rtctransform",(function(e){var t=e.transformer,r=t.options.port,n=YP((function(e){r.postMessage(e)}));t.readable.pipeThrough(n).pipeTo(e.transformer.writable)}));var BP="IWZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO3ZhciBlPXtnZXROQUxVbml0czpmdW5jdGlvbih0KXt2YXIgbj1hcmd1bWVudHMubGVuZ3RoPjEmJnZvaWQgMCE9PWFyZ3VtZW50c1sxXSYmYXJndW1lbnRzWzFdO2lmKHQubGVuZ3RoLXQucG9zaXRpb248NClyZXR1cm5bXTt2YXIgcj10LnBvc2l0aW9uO3JldHVybiAxPT09dC5nZXRJbnQzMihyKXx8MD09PXQuZ2V0SW50MTYocikmJjE9PT10LmdldEludDgocisyKT9lLmdldEFubmV4Yk5hbHModCxuKTplLmdldEF2Y2NOYWxzKHQsbil9LGdldEFubmV4Yk5hbHM6ZnVuY3Rpb24odCxuKXtmb3IodmFyIHI9W10saT1lLmdldEhlYWRlclBvc2l0aW9uQW5uZXhCKHQpLGE9aS5wb3Msbz1hO2E8dC5sZW5ndGgtNDspe3ZhciB1PW5ldyBVaW50OEFycmF5KHQuYnVmZmVyLnNsaWNlKGEsYStpLmhlYWRlckxlbmd0aCkpO2kucG9zPT09dC5wb3NpdGlvbiYmdC5za2lwKGkuaGVhZGVyTGVuZ3RoKSxvPShpPWUuZ2V0SGVhZGVyUG9zaXRpb25Bbm5leEIodCkpLnBvczt2YXIgcz17aGVhZGVyOnUsYm9keTpuZXcgVWludDhBcnJheSh0LmJ1ZmZlci5zbGljZShhK3UuYnl0ZUxlbmd0aCxvKSksdHlwZTotMX07bj9lLmFuYWx5c2VIMjY1TmFsKHMpOmUuYW5hbHlzZU5hbChzKSwocy50eXBlPD05fHxuJiZzLnR5cGU8PTQwKSYmMCE9PXMudHlwZSYmci5wdXNoKHMpLHQuc2tpcChvLXQucG9zaXRpb24pLGE9b31yZXR1cm4gcn0sZ2V0QXZjY05hbHM6ZnVuY3Rpb24odCxuKXtmb3IodmFyIHI9W107dC5wb3NpdGlvbjx0Lmxlbmd0aC00Oyl7dmFyIGk9dC5nZXRJbnQzMih0LnBvc2l0aW9uKTtpZighKHQubGVuZ3RoLXQucG9zaXRpb24+PWkpKWJyZWFrO3ZhciBhPW5ldyBVaW50OEFycmF5KHQuYnVmZmVyLnNsaWNlKHQucG9zaXRpb24sdC5wb3NpdGlvbis0KSk7dC5za2lwKDQpO3ZhciBvPW5ldyBVaW50OEFycmF5KHQuYnVmZmVyLnNsaWNlKHQucG9zaXRpb24sdC5wb3NpdGlvbitpKSk7dC5za2lwKGkpO3ZhciB1PXtoZWFkZXI6YSxib2R5Om8sdHlwZTotMX07bj9lLmFuYWx5c2VIMjY1TmFsKHUpOmUuYW5hbHlzZU5hbCh1KSx1LnR5cGU8PTkmJjAhPT11LnR5cGUmJnIucHVzaCh1KX1yZXR1cm4gcn0sYW5hbHlzZU5hbDpmdW5jdGlvbihlKXt2YXIgdD0zMSZlLmJvZHlbMF07c3dpdGNoKGUudHlwZT10LHQpe2Nhc2UgMTplLm5kcj0hMDticmVhaztjYXNlIDU6ZS5pZHI9ITA7YnJlYWs7Y2FzZSA2OmUuc2VpPSEwO2JyZWFrO2Nhc2UgNzplLnNwcz0hMDticmVhaztjYXNlIDg6ZS5wcHM9ITB9fSxhbmFseXNlSDI2NU5hbDpmdW5jdGlvbihlKXt2YXIgdD0oMTI2JmUuYm9keVswXSk+PjE7c3dpdGNoKGUudHlwZT10LHQpe2Nhc2UgMzk6Y2FzZSA0MDplLnNlaT0hMH19LGdldEhlYWRlclBvc2l0aW9uQW5uZXhCOmZ1bmN0aW9uKGUpe2Zvcih2YXIgdD1lLnBvc2l0aW9uLG49MCxyPWUubGVuZ3RoOzMhPT1uJiY0IT09biYmdDxyLTQ7KTA9PT1lLmdldEludDE2KHQpPzE9PT1lLmdldEludDE2KHQrMik/bj00OjE9PT1lLmdldEludDgodCsyKT9uPTM6dCsrOnQrKztyZXR1cm4gdD09PXItNCYmKDA9PT1lLmdldEludDE2KHQpPzE9PT1lLmdldEludDE2KHQrMik/bj00OnQ9cjoodCsrLDA9PT1lLmdldEludDE2KHQpJiYxPT09ZS5nZXRJbnQ4KHQpP249Mzp0PXIpKSx7cG9zOnQsaGVhZGVyTGVuZ3RoOm59fSxpc0gyNjVWaWRlb0ZyYW1lOmZ1bmN0aW9uKGUpe3ZhciB0LG47cmV0dXJuKChudWxsPT09KHQ9ZS5nZXRNZXRhZGF0YSl8fHZvaWQgMD09PXR8fG51bGw9PT0obj10LmNhbGwoZSkpfHx2b2lkIDA9PT1uP3ZvaWQgMDpuLm1pbWVUeXBlKXx8IiIpLnRvTG93ZXJDYXNlKCkuaW5jbHVkZXMoImgyNjUiKX19O2Z1bmN0aW9uIHQoZSl7cmV0dXJuKHQ9ImZ1bmN0aW9uIj09dHlwZW9mIFN5bWJvbCYmInN5bWJvbCI9PXR5cGVvZiBTeW1ib2wuaXRlcmF0b3I/ZnVuY3Rpb24oZSl7cmV0dXJuIHR5cGVvZiBlfTpmdW5jdGlvbihlKXtyZXR1cm4gZSYmImZ1bmN0aW9uIj09dHlwZW9mIFN5bWJvbCYmZS5jb25zdHJ1Y3Rvcj09PVN5bWJvbCYmZSE9PVN5bWJvbC5wcm90b3R5cGU/InN5bWJvbCI6dHlwZW9mIGV9KShlKX1mdW5jdGlvbiBuKGUsdCl7Zm9yKHZhciBuPTA7bjx0Lmxlbmd0aDtuKyspe3ZhciBpPXRbbl07aS5lbnVtZXJhYmxlPWkuZW51bWVyYWJsZXx8ITEsaS5jb25maWd1cmFibGU9ITAsInZhbHVlImluIGkmJihpLndyaXRhYmxlPSEwKSxPYmplY3QuZGVmaW5lUHJvcGVydHkoZSxyKGkua2V5KSxpKX19ZnVuY3Rpb24gcihlKXt2YXIgdD1mdW5jdGlvbihlLHQpe2lmKCJvYmplY3QiIT10eXBlb2YgZXx8bnVsbD09PWUpcmV0dXJuIGU7dmFyIG49ZVtTeW1ib2wudG9QcmltaXRpdmVdO2lmKHZvaWQgMCE9PW4pe3ZhciByPW4uY2FsbChlLHR8fCJkZWZhdWx0Iik7aWYoIm9iamVjdCIhPXR5cGVvZiByKXJldHVybiByO3Rocm93IG5ldyBUeXBlRXJyb3IoIkBAdG9QcmltaXRpdmUgbXVzdCByZXR1cm4gYSBwcmltaXRpdmUgdmFsdWUuIil9cmV0dXJuKCJzdHJpbmciPT09dD9TdHJpbmc6TnVtYmVyKShlKX0oZSwic3RyaW5nIik7cmV0dXJuInN5bWJvbCI9PXR5cGVvZiB0P3Q6U3RyaW5nKHQpfXZhciBpPWZ1bmN0aW9uKCl7ZnVuY3Rpb24gZSh0KXt2YXIgbixpLGE7IWZ1bmN0aW9uKGUsdCl7aWYoIShlIGluc3RhbmNlb2YgdCkpdGhyb3cgbmV3IFR5cGVFcnJvcigiQ2Fubm90IGNhbGwgYSBjbGFzcyBhcyBhIGZ1bmN0aW9uIil9KHRoaXMsZSksbj10aGlzLGE9MCwoaT1yKGk9Il9wb3NpdGlvbiIpKWluIG4/T2JqZWN0LmRlZmluZVByb3BlcnR5KG4saSx7dmFsdWU6YSxlbnVtZXJhYmxlOiEwLGNvbmZpZ3VyYWJsZTohMCx3cml0YWJsZTohMH0pOm5baV09YSx0aGlzLl9kYXRhdmlldz1uZXcgRGF0YVZpZXcodCl9dmFyIHQsaSxhO3JldHVybiB0PWUsYT1be2tleToicmVhZEJ5dGUiLHZhbHVlOmZ1bmN0aW9uKGUsdCxuKXt2YXIgcjtzd2l0Y2godCl7Y2FzZSAxOnI9bj9lLmdldEludDgoZS5wb3NpdGlvbik6ZS5nZXRVaW50OChlLnBvc2l0aW9uKTticmVhaztjYXNlIDI6cj1uP2UuZ2V0SW50MTYoZS5wb3NpdGlvbik6ZS5nZXRVaW50MTYoZS5wb3NpdGlvbik7YnJlYWs7Y2FzZSAzOmlmKG4pdGhyb3cgbmV3IEVycm9yKCJub3Qgc3VwcG9ydGVkIGZvciByZWFkQnl0ZSAzIik7cj1lLmdldFVpbnQ4KGUucG9zaXRpb24pPDwxNixyfD1lLmdldFVpbnQ4KGUucG9zaXRpb24rMSk8PDgscnw9ZS5nZXRVaW50OChlLnBvc2l0aW9uKzIpO2JyZWFrO2Nhc2UgNDpyPW4/ZS5nZXRJbnQzMihlLnBvc2l0aW9uKTplLmdldFVpbnQzMihlLnBvc2l0aW9uKTticmVhaztjYXNlIDg6aWYobil0aHJvdyBuZXcgRXJyb3IoIm5vdCBzdXBwb3J0ZWQgZm9yIHJlYWRCb2R5IDgiKTtyPWUuZ2V0VWludDMyKGUucG9zaXRpb24pPDwzMixyfD1lLmdldFVpbnQzMihlLnBvc2l0aW9uKzQpO2JyZWFrO2RlZmF1bHQ6cj0iIn1yZXR1cm4gZS5wb3NpdGlvbis9dCxyfX1dLChpPVt7a2V5OiJsZW5ndGgiLGdldDpmdW5jdGlvbigpe3JldHVybiB0aGlzLmJ1ZmZlci5ieXRlTGVuZ3RofX0se2tleToiYnVmZmVyIixnZXQ6ZnVuY3Rpb24oKXtyZXR1cm4gdGhpcy5fZGF0YXZpZXcuYnVmZmVyfX0se2tleToicG9zaXRpb24iLGdldDpmdW5jdGlvbigpe3JldHVybiB0aGlzLl9wb3NpdGlvbn0sc2V0OmZ1bmN0aW9uKGUpe3RoaXMuX3Bvc2l0aW9uPWV9fSx7a2V5OiJiYWNrIix2YWx1ZTpmdW5jdGlvbihlKXt0aGlzLnBvc2l0aW9uLT1lfX0se2tleToiZ2V0VWludDgiLHZhbHVlOmZ1bmN0aW9uKGUpe3JldHVybiB0aGlzLl9kYXRhdmlldy5nZXRVaW50OChlKX19LHtrZXk6ImdldEludDgiLHZhbHVlOmZ1bmN0aW9uKGUpe3JldHVybiB0aGlzLl9kYXRhdmlldy5nZXRJbnQ4KGUpfX0se2tleToiZ2V0SW50MTYiLHZhbHVlOmZ1bmN0aW9uKGUpe3JldHVybiB0aGlzLl9kYXRhdmlldy5nZXRJbnQxNihlKX19LHtrZXk6ImdldFVpbnQxNiIsdmFsdWU6ZnVuY3Rpb24oZSl7cmV0dXJuIHRoaXMuX2RhdGF2aWV3LmdldFVpbnQxNihlKX19LHtrZXk6ImdldFVpbnQzMiIsdmFsdWU6ZnVuY3Rpb24oZSl7cmV0dXJuIHRoaXMuX2RhdGF2aWV3LmdldFVpbnQzMihlKX19LHtrZXk6ImdldEludDMyIix2YWx1ZTpmdW5jdGlvbihlKXtyZXR1cm4gdGhpcy5fZGF0YXZpZXcuZ2V0SW50MzIoZSl9fSx7a2V5OiJza2lwIix2YWx1ZTpmdW5jdGlvbih0KXtmb3IodmFyIG49TWF0aC5mbG9vcih0LzQpLHI9dCU0LGk9MDtpPG47aSsrKWUucmVhZEJ5dGUodGhpcyw0KTtyPjAmJmUucmVhZEJ5dGUodGhpcyxyKX19LHtrZXk6InJlYWRVaW50OCIsdmFsdWU6ZnVuY3Rpb24oKXtyZXR1cm4gZS5yZWFkQnl0ZSh0aGlzLDEpfX0se2tleToicmVhZFVpbnQxNiIsdmFsdWU6ZnVuY3Rpb24oKXtyZXR1cm4gZS5yZWFkQnl0ZSh0aGlzLDIpfX0se2tleToicmVhZFVpbnQyNCIsdmFsdWU6ZnVuY3Rpb24oKXtyZXR1cm4gZS5yZWFkQnl0ZSh0aGlzLDMpfX0se2tleToicmVhZFVpbnQzMiIsdmFsdWU6ZnVuY3Rpb24oKXtyZXR1cm4gZS5yZWFkQnl0ZSh0aGlzLDQpfX0se2tleToicmVhZFVpbnQ2NCIsdmFsdWU6ZnVuY3Rpb24oKXtyZXR1cm4gZS5yZWFkQnl0ZSh0aGlzLDgpfX0se2tleToicmVhZEludDgiLHZhbHVlOmZ1bmN0aW9uKCl7cmV0dXJuIGUucmVhZEJ5dGUodGhpcywxLCEwKX19LHtrZXk6InJlYWRJbnQxNiIsdmFsdWU6ZnVuY3Rpb24oKXtyZXR1cm4gZS5yZWFkQnl0ZSh0aGlzLDIsITApfX0se2tleToicmVhZEludDMyIix2YWx1ZTpmdW5jdGlvbigpe3JldHVybiBlLnJlYWRCeXRlKHRoaXMsNCwhMCl9fSx7a2V5OiJ3cml0ZVVpbnQzMiIsdmFsdWU6ZnVuY3Rpb24oZSl7cmV0dXJuIG5ldyBVaW50OEFycmF5KFtlPj4+MjQmMjU1LGU+Pj4xNiYyNTUsZT4+PjgmMjU1LDI1NSZlXSl9fV0pJiZuKHQucHJvdG90eXBlLGkpLGEmJm4odCxhKSxPYmplY3QuZGVmaW5lUHJvcGVydHkodCwicHJvdG90eXBlIix7d3JpdGFibGU6ITF9KSxlfSgpO2Z1bmN0aW9uIGEoZSxuKXtmb3IodmFyIHI9MDtyPG4ubGVuZ3RoO3IrKyl7dmFyIGk9bltyXTtpLmVudW1lcmFibGU9aS5lbnVtZXJhYmxlfHwhMSxpLmNvbmZpZ3VyYWJsZT0hMCwidmFsdWUiaW4gaSYmKGkud3JpdGFibGU9ITApLE9iamVjdC5kZWZpbmVQcm9wZXJ0eShlLChhPWkua2V5LG89dm9pZCAwLG89ZnVuY3Rpb24oZSxuKXtpZigib2JqZWN0IiE9PXQoZSl8fG51bGw9PT1lKXJldHVybiBlO3ZhciByPWVbU3ltYm9sLnRvUHJpbWl0aXZlXTtpZih2b2lkIDAhPT1yKXt2YXIgaT1yLmNhbGwoZSxufHwiZGVmYXVsdCIpO2lmKCJvYmplY3QiIT09dChpKSlyZXR1cm4gaTt0aHJvdyBuZXcgVHlwZUVycm9yKCJAQHRvUHJpbWl0aXZlIG11c3QgcmV0dXJuIGEgcHJpbWl0aXZlIHZhbHVlLiIpfXJldHVybigic3RyaW5nIj09PW4/U3RyaW5nOk51bWJlcikoZSl9KGEsInN0cmluZyIpLCJzeW1ib2wiPT09dChvKT9vOlN0cmluZyhvKSksaSl9dmFyIGEsb31mdW5jdGlvbiBvKGUpe3ZhciB0PWFyZ3VtZW50cy5sZW5ndGg+MSYmdm9pZCAwIT09YXJndW1lbnRzWzFdP2FyZ3VtZW50c1sxXTowO3JldHVybihlW3RdPDwyND4+PjApKyhlW3QrMV08PDE2KSsoZVt0KzJdPDw4KSsoZVt0KzNdfHwwKX12YXIgdT1mdW5jdGlvbigpe2Z1bmN0aW9uIGUoKXshZnVuY3Rpb24oZSx0KXtpZighKGUgaW5zdGFuY2VvZiB0KSl0aHJvdyBuZXcgVHlwZUVycm9yKCJDYW5ub3QgY2FsbCBhIGNsYXNzIGFzIGEgZnVuY3Rpb24iKX0odGhpcyxlKX12YXIgdCxuLHI7cmV0dXJuIHQ9ZSxyPVt7a2V5OiJwYXJzZUFubmV4QiIsdmFsdWU6ZnVuY3Rpb24oZSl7dmFyIHQ9ZS5ieXRlTGVuZ3RoLTEsbj0wO2Rve2lmKDAhPT1lW3RdKWJyZWFrO24rKyx0LS19d2hpbGUodD4wKTtuPj0zJiYoZT1lLnN1YmFycmF5KDAsdCsxKSk7Zm9yKHZhciByPWUubGVuZ3RoLGk9MixhPTA7bnVsbCE9PWVbaV0mJnZvaWQgMCE9PWVbaV0mJjEhPT1lW2ldOylpKys7aWYoKGE9MisgKytpKT49cilyZXR1cm5bXTtmb3IodmFyIG89W107YTxyOylzd2l0Y2goZVthXSl7Y2FzZSAwOmlmKDAhPT1lW2EtMV0pe2ErPTI7YnJlYWt9aWYoMCE9PWVbYS0yXSl7YSsrO2JyZWFrfWlmKGE8ci0xJiYxIT09ZVthKzFdKXthKys7YnJlYWt9aSE9PWEtMiYmby5wdXNoKGUuc3ViYXJyYXkoaSxhLTIpKTtkb3thKyt9d2hpbGUoMSE9PWVbYV0mJmE8cik7YT0oaT1hKzEpKzI7YnJlYWs7Y2FzZSAxOmlmKDAhPT1lW2EtMV18fDAhPT1lW2EtMl0pe2ErPTM7YnJlYWt9aSE9PWEtMiYmby5wdXNoKGUuc3ViYXJyYXkoaSxhLTIpKSxhPShpPWErMSkrMjticmVhaztkZWZhdWx0OmErPTN9cmV0dXJuIGk8ciYmby5wdXNoKGUuc3ViYXJyYXkoaSkpLG99fSx7a2V5OiJwYXJzZUF2Y0MiLHZhbHVlOmZ1bmN0aW9uKGUpe3ZhciB0PWFyZ3VtZW50cy5sZW5ndGg+MSYmdm9pZCAwIT09YXJndW1lbnRzWzFdP2FyZ3VtZW50c1sxXTo0O2lmKCEoZS5sZW5ndGg8NCkpe2Zvcih2YXIgbixyPWUubGVuZ3RoLGk9W10sYT0wO2ErdDxyOylpZihuPW8oZSxhKSwzPT09dCYmKG4+Pj49OCksYSs9dCxuKXtpZihhK24+cilicmVhaztpLnB1c2goZS5zdWJhcnJheShhLGErbikpLGErPW59cmV0dXJuIGl9fX0se2tleToicGFyc2VTRUkiLHZhbHVlOmZ1bmN0aW9uKGUsdCl7Zm9yKHZhciBuPWUubGVuZ3RoLHI9dD8yOjEsaT0wLGE9MCxvPSIiOzI1NT09PWVbcl07KWkrPTI1NSxyKys7Zm9yKGkrPWVbcisrXTsyNTU9PT1lW3JdOylhKz0yNTUscisrO2lmKGErPWVbcisrXSw1PT09aSYmbj5yKzE2KWZvcih2YXIgdT0wO3U8MTY7dSsrKW8rPWVbcl0udG9TdHJpbmcoMTYpLHIrKztyZXR1cm57cGF5bG9hZDplLnN1YmFycmF5KHIscithKSx0eXBlOmksc2l6ZTphLHV1aWQ6b319fSx7a2V5OiJyZW1vdmVFUEIiLHZhbHVlOmZ1bmN0aW9uKGUpe2Zvcih2YXIgdD1lLmJ5dGVMZW5ndGgsbj1bXSxyPTE7cjx0LTI7KTA9PT1lW3JdJiYwPT09ZVtyKzFdJiYzPT09ZVtyKzJdPyhuLnB1c2gocisyKSxyKz0yKTpyKys7aWYoIW4ubGVuZ3RoKXJldHVybiBlO3ZhciBpPXQtbi5sZW5ndGgsYT1uZXcgVWludDhBcnJheShpKSxvPTA7Zm9yKHI9MDtyPGk7bysrLHIrKylvPT09blswXSYmKG8rKyxuLnNoaWZ0KCkpLGFbcl09ZVtvXTtyZXR1cm4gYX19XSwobj1udWxsKSYmYSh0LnByb3RvdHlwZSxuKSxyJiZhKHQsciksT2JqZWN0LmRlZmluZVByb3BlcnR5KHQsInByb3RvdHlwZSIse3dyaXRhYmxlOiExfSksZX0oKTsidW5kZWZpbmVkIiE9dHlwZW9mIHNlbGYmJiJEZWRpY2F0ZWRXb3JrZXJHbG9iYWxTY29wZSI9PT1zZWxmLmNvbnN0cnVjdG9yLm5hbWUmJnNlbGYuYWRkRXZlbnRMaXN0ZW5lcigicnRjdHJhbnNmb3JtIiwoZnVuY3Rpb24odCl7dmFyIG4scj10LnRyYW5zZm9ybWVyLGE9ci5vcHRpb25zLnBvcnQsbz0obj1mdW5jdGlvbihlKXthLnBvc3RNZXNzYWdlKGUpfSxuZXcgVHJhbnNmb3JtU3RyZWFtKHt0cmFuc2Zvcm06ZnVuY3Rpb24odCxyKXt2YXIgYT1lLmlzSDI2NVZpZGVvRnJhbWUodCk7ZS5nZXROQUxVbml0cyhuZXcgaSh0LmRhdGEpLGEpLmZvckVhY2goKGZ1bmN0aW9uKGUpe2lmKGUuc2VpKXt2YXIgdD11LnBhcnNlU0VJKHUucmVtb3ZlRVBCKGUuYm9keSksITEpO3QmJm4oe2RhdGE6dCxzZWk6e2NvZGU6dC50eXBlLGNvbnRlbnQ6dC5wYXlsb2FkfX0pfX0pKSxyLmVucXVldWUodCl9fSkpO3IucmVhZGFibGUucGlwZVRocm91Z2gobykucGlwZVRvKHQudHJhbnNmb3JtZXIud3JpdGFibGUpfSkpfSgpOwo=",zP="undefined"!=typeof window&&window.Blob&&new Blob([atob(BP)],{type:"text/javascript;charset=utf-8"});function JP(){var e=zP&&(XS||window.webkitURL).createObjectURL(zP);try{return e?new Worker(e,{}):new Worker("data:application/javascript;base64,"+BP,{type:"module"})}finally{e&&(XS||window.webkitURL).revokeObjectURL(e)}}var QP=new MI("rts"),qP=function(e){rg(i,e);var t,r,n=ag(i);function i(e){var t;return qm(this,i),tg(og(t=n.call(this)),"_url",""),tg(og(t),"_pc",null),tg(og(t),"_audioTransceicer",null),tg(og(t),"_videoTransceicer",null),tg(og(t),"_mediaStream",null),tg(og(t),"_lastMediaStream",null),tg(og(t),"_media",null),tg(og(t),"_opts",null),tg(og(t),"_loader",null),tg(og(t),"_networkEvaluate",null),tg(og(t),"_retry",0),tg(og(t),"_waitingTimer",0),tg(og(t),"_rctConnectStartTs",0),tg(og(t),"_isReplacing",!1),tg(og(t),"_checkStatsErrorTimer",null),tg(og(t),"_checkStatsError",Qm(zm().mark((function e(){return zm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t._checkStatsErrorTimer=Pg(Qm(zm().mark((function e(){var r,n,i;return zm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getStatsSnapshoot();case 2:(r=e.sent).video&&(n=r.video,i=n.framesDecoded,n.bytesReceived?i||t._emitError(jI.create(OI,ZI.MEDIA_ERR_DECODE,{message:"rts decode error"})):t._emitError(jI.create(OI,ZI.MEDIA_ERR_DECODE,{message:"rts receive empty"})));case 4:case"end":return e.stop()}}),e)}))),t._opts.checkStatsErrorDelay);case 1:case"end":return e.stop()}}),e)})))),tg(og(t),"_onTrack",(function(e){QP.log("addTrack: ",e.track,e.streams),t["_".concat(e.track.kind)]=e.track})),tg(og(t),"_mockWaitingByTimeupdate",(function(){var e,r;"connected"!==(null===(e=t._pc)||void 0===e?void 0:e.connectionState)&&"connected"!==(null===(r=t._pc)||void 0===r?void 0:r.iceConnectionState)||(clearTimeout(t._waitingTimer),t._waitingTimer=Pg((function(){var e;null!==(e=t._media)&&void 0!==e&&e.paused||t.emit("waiting")}),t._opts.stallInterval))})),tg(og(t),"_onLoadedData",(function(){QP.log("loadeddata emit"),t.getStatsSnapshoot().then((function(e){t.emit(lP,{type:"video",elapsed:hx()-t._rctConnectStartTs,meta:e.video}),t.emit(lP,{type:"audio",elapsed:hx()-t._rctConnectStartTs,meta:e.audio})}))})),tg(og(t),"_setDelay",(function(e){if(e)try{var r=t._videoTransceicer.receiver,n=t._audioTransceicer.receiver;if("playoutDelayHint"in r&&"playoutDelayHint"in n)return t._audioTransceicer.receiver.playoutDelayHint=e,void(t._videoTransceicer.receiver.playoutDelayHint=e);if("jitterBufferDelayHint"in r&&"jitterBufferDelayHint"in n)return t._audioTransceicer.receiver.jitterBufferDelayHint=e,void(t._videoTransceicer.receiver.jitterBufferDelayHint=e);"jitterBufferTarget"in r&&"jitterBufferTarget"in n&&(t._audioTransceicer.receiver.jitterBufferTarget=1e3*e,t._videoTransceicer.receiver.jitterBufferTarget=1e3*e)}catch(tC){QP.error("set delay error")}})),tg(og(t),"_onLoaderRetry",(function(e,r){t.emit(cP,{error:jI.network(e),retryTime:r})})),t._opts=function(e){return Bm({retryCount:0,retryDelay:1e3,loadTimeout:5e3,stallInterval:400,networkEvaluateInterval:1e3,delayHint:0,seamlesslyReload:!1,enableSei:!1,enableOriginSdpLogger:!1,checkStatsErrorDelay:5e3},e)}(e),t._media=t._opts.media,t._loader=new _P(Bm(Bm({},e.fetchOptions),{},{responseType:"json",method:"POST",retry:t._opts.retryCount,retryDelay:t._opts.retryDelay,timeout:t._opts.loadTimeout,onRetryError:t._onLoaderRetry,logger:QP})),t._retry=t._opts.retryCount,t._bindMediaEvent(),t._opts.mediaStream&&t._opts.seamlesslyReload&&(t._lastMediaStream=t._opts.mediaStream),t}return eg(i,[{key:"pc",get:function(){return this._pc}},{key:"audioTrack",get:function(){return this._audio}},{key:"videoTack",get:function(){return this._video}},{key:"loader",get:function(){return this._loader}},{key:"networkStats",get:function(){var e;return null===(e=this._networkEvaluate)||void 0===e?void 0:e.getStats()}},{key:"getStats",value:function(){return jP(this._pc)}},{key:"getStatsSnapshoot",value:function(){return this.getStats().then((function(e){return WP(e)}))}},{key:"load",value:(r=Qm(zm().mark((function e(t){var r,n,i=this;return zm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._disconnect(),this._url=t,this._retry=this._opts.retryCount,(r=this._pc)&&r.close(),n=MP(),e.prev=6,this._pc=new RTCPeerConnection({encodedInsertableStreams:!(!n||!this._opts.enableSei)||void 0}),this._bindRTCEvents(),e.next=11,this._connect(t);case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(6),Pg((function(){return i._emitError(jI.create(PI,null,e.t0))}));case 16:case"end":return e.stop()}}),e,this,[[6,13]])}))),function(e){return r.apply(this,arguments)})},{key:"switchURL",value:function(e){this.load(e||this._url)}},{key:"_bindRTCEvents",value:function(){var e=this,t=this._pc;t.addEventListener("track",this._onTrack),t.addEventListener("connectionstatechange",(function(){if(QP.warn("onconnectionstatechange:",t.connectionState),e.emit(wP,{state:t.connectionState,url:e._url}),"disconnected"!==t.connectionState&&"failed"!==t.connectionState||e.emit("waiting"),"failed"===t.connectionState){if(0===e._retry)return void e._emitError(jI.network(new Error("rtc connect failed")));e._retry--,e.load(e._url)}"connected"===t.connectionState&&(e._handleMediaStream(),e.emit(oP,{url:e._url,responseUrl:e._url,elapsed:hx()-e._rctConnectStartTs}),e._checkStatsError())}))}},{key:"_handleMediaStream",value:function(){var e=this;if(this._lastMediaStream){var t,r=this._lastMediaStream.getVideoTracks()[0],n=this._lastMediaStream.getAudioTracks()[0];r&&this._lastMediaStream.removeTrack(r),n&&this._lastMediaStream.removeTrack(n),this._mediaStream=this._lastMediaStream,this._audio&&this._mediaStream.addTrack(this._audio),this._video&&this._mediaStream.addTrack(this._video),this._isReplacing=!0,this._media.pause(),null===(t=this._media.play())||void 0===t||t.finally((function(){e._isReplacing=!1}))}else{this._mediaStream=new MediaStream,this._audio&&this._mediaStream.addTrack(this._audio),this._video&&this._mediaStream.addTrack(this._video),this._media.srcObject=this._mediaStream;var i=this._media.play();i&&i.catch&&i.catch((function(e){}))}}},{key:"initVideoEncodedTransform",value:function(){var e=this;if(this._videoTransceicer&&this._videoTransceicer.receiver){var t=this._videoTransceicer.receiver;if(MP()){var r=t.createEncodedStreams(),n=r.readable,i=r.writable;n.pipeThrough(YP((function(t){e.emit(fP,t)}))).pipeTo(i)}else if("undefined"!=typeof TransformStream&&"undefined"!=typeof RTCRtpSender&&"undefined"!=typeof RTCRtpReceiver&&"undefined"!=typeof RTCRtpScriptTransform&&"transform"in RTCRtpSender.prototype&&"transform"in RTCRtpReceiver.prototype&&NP()&&XP()){var o=new JP,a=new MessageChannel;this._videoTransceicer.receiver.transform=new RTCRtpScriptTransform(o,{port:a.port2},[a.port2]),a.port1.onmessage=function(t){e.emit(fP,t.data)}}}else console.log("no receiver found when trying to bind encodedTransform")}},{key:"initAudioEncodedTransform",value:function(){if(this._audioTransceicer&&this._audioTransceicer.receiver)if(MP()){var e=this._audioTransceicer.receiver.createEncodedStreams(),t=e.readable,r=e.writable;t.pipeThrough(new TransformStream({transform:function(e,t){e.data.byteLength<=1e3?t.enqueue(e):QP.log("too large audio frame",e.data.byteLength)}})).pipeTo(r)}else QP.warn("legacy EncodedTransform is not supported");else QP.warn("no receiver found when trying to bind encodedTransform")}},{key:"_bindMediaEvent",value:function(){this._media.addEventListener("timeupdate",this._mockWaitingByTimeupdate),this._media.addEventListener("loadeddata",this._onLoadedData)}},{key:"_connect",value:(t=Qm(zm().mark((function e(){var t,r,n,i,o,a,u,s,c,l,f,d,p,h,v,y;return zm().wrap((function(e){for(var m,g,b,_;;)switch(e.prev=e.next){case 0:if(!(t=this._pc).addTransceiver){e.next=11;break}return this._audioTransceicer=t.addTransceiver("audio",{direction:"recvonly"}),this._videoTransceicer=t.addTransceiver("video",{direction:"recvonly"}),this._setDelay(this._opts.delayHint),this._opts.enableSei&&(this.initVideoEncodedTransform(),this.initAudioEncodedTransform()),e.next=8,t.createOffer();case 8:r=e.sent,e.next=14;break;case 11:return e.next=13,t.createOffer({iceRestart:!0,offerToReceiveAudio:!0,offerToReceiveVideo:!0});case 13:r=e.sent;case 14:return QP.log("local offer"),QP.log(r.sdp),n=SP.parse(r.sdp),tf(m=Al(g=n.media).call(g,(function(e){return"audio"===e.type}))).call(m,(function(e){var t,r,n,i,o=null===(n=Al(t=e.rtp).call(t,(function(e){return"opus"===e.codec}))[0])||void 0===n?void 0:n.payload;o&&(tf(r=e.fmtp).call(r,(function(e){e.payload===o&&(e.config="minptime=10;stereo=1;useinbandfec=1")})),null===(i=e.rtcpFb)||void 0===i||i.push({payload:o,type:"nack"}))})),r.sdp=SP.write(n),QP.log("local offer modified:\n",r.sdp),e.next=22,t.setLocalDescription(r);case 22:return i=this._url,e.prev=23,this._opts.preProcessUrl&&(i=this._opts.preProcessUrl(i).url),this._loader.finnalUrl=i,l=/_?session_id=([^&$]+)/.exec(i),f=l?l[1]:hx()+"666",this.emit(aP,{url:i,offersdp:null!==(o=this._opts)&&void 0!==o&&o.enableOriginSdpLogger?r.sdp:void 0,sessionId:f}),d=hx(),e.next=32,this._loader.load(i,{body:Wx({sessionId:f,version:"1.0-html",localSdp:r})});case 32:if(p=e.sent,this.emit(uP,{headers:p.response.headers}),404!==(null==(h=null==p?void 0:p.data)?void 0:h.code)&&403!==(null==h?void 0:h.code)){e.next=40;break}return(v=jI.create(404===h.code?TI:RI,null,h)).errorType=SI,this._emitError(v),e.abrupt("return");case 40:if(200===(null==h?void 0:h.code)){e.next=42;break}throw new Error(pg(b="code: ".concat(null==h?void 0:h.code,", message:")).call(b,null==h?void 0:h.message));case 42:return QP.log("answer:"),QP.log(null===(a=h.remoteSdp)||void 0===a?void 0:a.sdp),y=SP.parse(h.remoteSdp.sdp),this.emit(sP,{url:i,elapsed:hx()-d,answersdp:null!==(u=this._opts)&&void 0!==u&&u.enableOriginSdpLogger?null==h||null===(s=h.remoteSdp)||void 0===s?void 0:s.sdp:void 0,parsedSdp:null==y||null===(c=y.media)||void 0===c?void 0:aR(c).call(c,(function(e){return{candidates:e.candidates,rtp:e.rtp,type:e.type}}))}),tf(_=y.media).call(_,(function(e){e.fingerprint.hash=e.fingerprint.hash.toUpperCase()})),h.remoteSdp.sdp=SP.write(y),QP.log("answer modified:\n",h.remoteSdp.sdp),this._rctConnectStartTs=hx(),e.next=52,this._pc.setRemoteDescription(h.remoteSdp);case 52:this._networkEvaluate=new VP(t,this._opts.networkEvaluateInterval),e.next=58;break;case 55:e.prev=55,e.t0=e.catch(23),this._emitError(jI.network(e.t0));case 58:case"end":return e.stop()}}),e,this,[[23,55]])}))),function(){return t.apply(this,arguments)})},{key:"_disconnect",value:function(){var e,t;null===(e=this._loader)||void 0===e||e.cancel(),null===(t=this._networkEvaluate)||void 0===t||t.destroy(),this._audioTransceicer=null,this._videoTransceicer=null,this._mediaStream=null,this._networkEvaluate=null}},{key:"_emitError",value:function(e){this.emit(iP,e),clearTimeout(this._checkStatsErrorTimer),this._pc&&this._pc.close()}},{key:"destroy",value:function(e){var t;this._disconnect(),null===(t=this._media)||void 0===t||t.removeEventListener("timeupdate",this._mockWaitingByTimeupdate),this._media&&!e&&(this._media.srcObject=null),this._pc&&this._pc.close(),this._loader=null,this._media=null,this._pc=null,this._opts=null}}],[{key:"enableLogger",value:function(){MI.enable()}},{key:"disableLogger",value:function(){MI.disable()}}]),i}(ZR);try{localStorage.getItem("xgd")?qP.enableLogger():qP.disableLogger()}catch(tC){}var $P=function(e){rg(n,e);var t,r=ag(n);function n(){var e,t;qm(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return tg(og(t=r.call.apply(r,pg(e=[this]).call(e,o))),"_rts",null),tg(og(t),"_mediaStream",null),tg(og(t),"_disconnectTimer",void 0),tg(og(t),"_rtsOpts",null),tg(og(t),"_onPause",(function(){t._disconnectTimer||(t._disconnectTimer=Pg((function(){t._closeAfterPause(),t._clearDisconnectTimer()}),1e3*t.config.disconnectTime))})),tg(og(t),"_reInit",(function(){var e;t._clearDisconnectTimer(),null!==(e=t._rts)&&void 0!==e&&e._pc||(t._init(),t._bindRtsEvents())})),tg(og(t),"_init",(function(){var e;null===(e=t._rts)||void 0===e||e.destroy();var r=t.player.config,n=r.rts||{};t._rtsOpts=n,t._rts=new qP(Bm({media:t.player.video,mediaStream:t._mediaStream,preProcessUrl:function(e,r){var n,i;return(null===(n=(i=t.player).preProcessUrl)||void 0===n?void 0:n.call(i,e,r))||{url:e,ext:r}}},n)),t._rts.load(r.url)})),tg(og(t),"_onSwitchURL",(function(e){e&&(t.player.config.url=e),t._rts?t._rts.switchURL(e):t._reInit()})),tg(og(t),"destroy",(function(){var e;t.player.switchURL=t._originSwitchFn,t._clearDisconnectTimer(),null===(e=t._rts)||void 0===e||e.destroy(),t._rts=null})),t}return eg(n,[{key:"pc",get:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.pc}},{key:"videoTrack",get:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.videoTack}},{key:"audioTrack",get:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.audioTrack}},{key:"core",get:function(){return this._rts}},{key:"loader",get:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.loader}},{key:"version",get:function(){return"0.2.1-alpha.24"}},{key:"beforePlayerInit",value:function(){var e,t,r,n,i=this;(this._init(),this._originSwitchFn)||(this._originSwitchFn=Im(n=this.player.switchURL).call(n,this.player));this.player.switchURL=this._onSwitchURL,null===(e=this.player)||void 0===e||e.useHooks("replay",this._onSwitchURL),this.on("urlchange",this._onSwitchURL),this.on("destroy",this.destroy),void 0!==(null===(t=this.player.config)||void 0===t||null===(r=t.rts)||void 0===r?void 0:r.disconnectTime)&&(this.on("pause",(function(){var e;null!==(e=i._rts)&&void 0!==e&&e._isReplacing||i._onPause()})),this.on("play",(function(){var e;null!==(e=i._rts)&&void 0!==e&&e._isReplacing||i._reInit()}))),this._bindRtsEvents();try{Cx.defineGetterOrSetter(this.player,{__url:{get:function(){try{return XS.createObjectURL(new MediaSource)}catch(r){var e,t;null!==(e=i.player)&&void 0!==e&&null!==(t=e.video)&&void 0!==t&&t.srcObject||(i.player.video.srcObject=new MediaStream)}}}})}catch(o){}}},{key:"getStats",value:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.getStats()}},{key:"getStatsSnapshoot",value:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.getStatsSnapshoot()}},{key:"getNetWorkInfo",value:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.networkStats}},{key:"_clearDisconnectTimer",value:function(){clearTimeout(this._disconnectTimer),this._disconnectTimer=void 0}},{key:"_closeAfterPause",value:function(){var e,t,r;if(null!==(e=this._rts)&&void 0!==e&&e._pc){var n;if(null!==(t=this.config)&&void 0!==t&&t.seamlesslyReload)this._mediaStream=null===(n=this._rts)||void 0===n?void 0:n._mediaStream;null===(r=this._rts)||void 0===r||r.destroy(!0),this._rts=null}}},{key:"_bindRtsEvents",value:function(){this._transErrorEvent(),this._transCoreEvent(aP),this._transCoreEvent(sP),this._transCoreEvent(oP),this._transCoreEvent(uP),this._transCoreEvent(cP),this._transCoreEvent(lP),this._transCoreEvent(fP),this._transCoreEvent(wP)}},{key:"_transErrorEvent",value:function(){var e=this;this._rts.on(iP,(function(t){if(e.player){var r=new Tx(e.player,t),n=e._rtsOpts,i=n.backupConstruct,o=n.backupURL;if(o){var a,u=e.player;u.emit("core_event",Bm(Bm({},{url:u.config.url,code:r.errorCode,message:r.message,httpCode:r.httpCode}),{},{eventName:"core.degrade"})),u.emit("degrade",{url:u.config.url,code:r.errorCode,message:r.message,httpCode:r.httpCode}),u.unRegisterPlugin("rts"),u.switchURL=e._originSwitchFn,e._rts=null,u.rts=null,null!==(a=u.video)&&void 0!==a&&a.srcObject&&(u.video.srcObject=null),u.config.url=o,i?u.registerPlugin(i).beforePlayerInit():u.video.src=o}else e.player.emit("error",r)}})),this._rts.on("waiting",(function(){var t;null===(t=e.player)||void 0===t||t.emit("waiting")}))}},{key:"_transCoreEvent",value:function(e){var t=this;this._rts.on(e,(function(r){t.player&&t.player.emit("core_event",Bm(Bm({},r),{},{eventName:e}))}))}}],[{key:"pluginName",get:function(){return"rts"}},{key:"isSupported",value:function(){return GP()}},{key:"getCapacity",value:function(){return function(){if(!GP())return Ny.reject("RTCPeerConnection no support");var e;try{(e=new RTCPeerConnection).addTransceiver("video",{direction:"recvonly"}),e.addTransceiver("audio",{direction:"recvonly"})}catch(t){return Ny.reject(null==t?void 0:t.message)}return e.createOffer().then((function(t){var r,n,i,o;QP.log(t.sdp);var a=SP.parse(t.sdp),u=null===(r=a.media)||void 0===r?void 0:Al(r).call(r,(function(e){return"video"===e.type}))[0],s=null===(n=a.media)||void 0===n?void 0:Al(n).call(n,(function(e){return"audio"===e.type}))[0],c=null==u||null===(i=u.rtp)||void 0===i?void 0:Al(i).call(i,(function(e){return"VP8"===e.codec||"VP9"===e.codec||"H264"===e.codec})),l=null==s||null===(o=s.rtp)||void 0===o?void 0:Al(o).call(o,(function(e){return"opus"===e.codec})),f=null==u?void 0:u.fmtp,d=null==s?void 0:s.fmtp;return f&&aR(c).call(c,(function(e){var t;e.config=null===(t=Al(f).call(f,(function(t){return t.payload===e.payload}))[0])||void 0===t?void 0:t.config})),d&&aR(l).call(l,(function(e){var t;e.config=null===(t=Al(d).call(d,(function(t){return t.payload===e.payload}))[0])||void 0===t?void 0:t.config})),e.close(),{video:c,audio:l}}))}()}},{key:"isSupportedH264",value:(t=Qm(zm().mark((function e(t){var r,i,o,a,u;return zm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.getCapacity();case 3:if(i=e.sent,o=null===(r=i.video)||void 0===r?void 0:Al(r).call(r,(function(e){var r;return"H264"===e.codec&&(!t||-1!==JS(r=e.config).call(r,t))})).length){e.next=10;break}return e.next=8,n.getCapacity();case 8:u=e.sent,o=null===(a=u.video)||void 0===a?void 0:Al(a).call(a,(function(e){var r;return"H264"===e.codec&&(!t||-1!==JS(r=e.config).call(r,t))})).length;case 10:return e.abrupt("return",!!o);case 13:return e.prev=13,e.t0=e.catch(0),e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e,null,[[0,13]])}))),function(e){return t.apply(this,arguments)})}]),n}(Cx),eC=window.VePlayer.DynamicModule;VePlayer.registerPlugin(eC.PluginRtm,{RtmPlugin:$P}),e.RtmPlugin=$P}));
|
|
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_RTM__={})}(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){return e&&e.Math==Math&&e},i=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),o=function(e){try{return!!e()}catch(t){return!0}},a=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),u=a,s=Function.prototype,c=s.apply,l=s.call,f="object"==typeof Reflect&&Reflect.apply||(u?l.bind(c):function(){return l.apply(c,arguments)}),d=a,p=Function.prototype,h=p.call,v=d&&p.bind.bind(h,h),y=d?v:function(e){return function(){return h.apply(e,arguments)}},m=y,g=m({}.toString),b=m("".slice),_=function(e){return b(g(e),8,-1)},w=_,S=y,k=function(e){if("Function"===w(e))return S(e)},R="object"==typeof document&&document.all,T={all:R,IS_HTMLDDA:void 0===R&&void 0!==R},x=T.all,E=T.IS_HTMLDDA?function(e){return"function"==typeof e||e===x}:function(e){return"function"==typeof e},L={},O=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),I=a,P=Function.prototype.call,C=I?P.bind(P):function(){return P.apply(P,arguments)},Z={},A={}.propertyIsEnumerable,j=Object.getOwnPropertyDescriptor,W=j&&!A.call({1:2},1);Z.f=W?function(e){var t=j(this,e);return!!t&&t.enumerable}:A;var V,G,N=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},X=o,M=_,U=Object,F=y("".split),D=X((function(){return!U("z").propertyIsEnumerable(0)}))?function(e){return"String"==M(e)?F(e,""):U(e)}:U,H=function(e){return null==e},K=H,Y=TypeError,B=function(e){if(K(e))throw Y("Can't call method on "+e);return e},z=D,J=B,Q=function(e){return z(J(e))},q=E,$=T.all,ee=T.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:q(e)||e===$}:function(e){return"object"==typeof e?null!==e:q(e)},te={},re=te,ne=i,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]},ue=y({}.isPrototypeOf),se="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ce=i,le=se,fe=ce.process,de=ce.Deno,pe=fe&&fe.versions||de&&de.version,he=pe&&pe.v8;he&&(G=(V=he.split("."))[0]>0&&V[0]<4?1:+(V[0]+V[1])),!G&&le&&(!(V=le.match(/Edge\/(\d+)/))||V[1]>=74)&&(V=le.match(/Chrome\/(\d+)/))&&(G=+V[1]);var ve=G,ye=ve,me=o,ge=i.String,be=!!Object.getOwnPropertySymbols&&!me((function(){var e=Symbol();return!ge(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ye&&ye<41})),_e=be&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,we=ae,Se=E,ke=ue,Re=Object,Te=_e?function(e){return"symbol"==typeof e}:function(e){var t=we("Symbol");return Se(t)&&ke(t.prototype,Re(e))},xe=String,Ee=function(e){try{return xe(e)}catch(t){return"Object"}},Le=E,Oe=Ee,Ie=TypeError,Pe=function(e){if(Le(e))return e;throw Ie(Oe(e)+" is not a function")},Ce=Pe,Ze=H,Ae=function(e,t){var r=e[t];return Ze(r)?void 0:Ce(r)},je=C,We=E,Ve=ee,Ge=TypeError,Ne={exports:{}},Xe=i,Me=Object.defineProperty,Ue=function(e,t){try{Me(Xe,e,{value:t,configurable:!0,writable:!0})}catch(r){Xe[e]=t}return t},Fe="__core-js_shared__",De=i[Fe]||Ue(Fe,{}),He=De;(Ne.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 Ke=Ne.exports,Ye=B,Be=Object,ze=function(e){return Be(Ye(e))},Je=ze,Qe=y({}.hasOwnProperty),qe=Object.hasOwn||function(e,t){return Qe(Je(e),t)},$e=y,et=0,tt=Math.random(),rt=$e(1..toString),nt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rt(++et+tt,36)},it=Ke,ot=qe,at=nt,ut=be,st=_e,ct=i.Symbol,lt=it("wks"),ft=st?ct.for||ct:ct&&ct.withoutSetter||at,dt=function(e){return ot(lt,e)||(lt[e]=ut&&ot(ct,e)?ct[e]:ft("Symbol."+e)),lt[e]},pt=C,ht=ee,vt=Te,yt=Ae,mt=function(e,t){var r,n;if("string"===t&&We(r=e.toString)&&!Ve(n=je(r,e)))return n;if(We(r=e.valueOf)&&!Ve(n=je(r,e)))return n;if("string"!==t&&We(r=e.toString)&&!Ve(n=je(r,e)))return n;throw Ge("Can't convert object to primitive value")},gt=TypeError,bt=dt("toPrimitive"),_t=function(e,t){if(!ht(e)||vt(e))return e;var r,n=yt(e,bt);if(n){if(void 0===t&&(t="default"),r=pt(n,e,t),!ht(r)||vt(r))return r;throw gt("Can't convert object to primitive value")}return void 0===t&&(t="number"),mt(e,t)},wt=Te,St=function(e){var t=_t(e,"string");return wt(t)?t:t+""},kt=ee,Rt=i.document,Tt=kt(Rt)&&kt(Rt.createElement),xt=function(e){return Tt?Rt.createElement(e):{}},Et=xt,Lt=!O&&!o((function(){return 7!=Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a})),Ot=O,It=C,Pt=Z,Ct=N,Zt=Q,At=St,jt=qe,Wt=Lt,Vt=Object.getOwnPropertyDescriptor;L.f=Ot?Vt:function(e,t){if(e=Zt(e),t=At(t),Wt)try{return Vt(e,t)}catch(r){}if(jt(e,t))return Ct(!It(Pt.f,e,t),e[t])};var Gt=o,Nt=E,Xt=/#|\.prototype\./,Mt=function(e,t){var r=Ft[Ut(e)];return r==Ht||r!=Dt&&(Nt(t)?Gt(t):!!t)},Ut=Mt.normalize=function(e){return String(e).replace(Xt,".").toLowerCase()},Ft=Mt.data={},Dt=Mt.NATIVE="N",Ht=Mt.POLYFILL="P",Kt=Mt,Yt=Pe,Bt=a,zt=k(k.bind),Jt=function(e,t){return Yt(e),void 0===t?e:Bt?zt(e,t):function(){return e.apply(t,arguments)}},Qt={},qt=O&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),$t=ee,er=String,tr=TypeError,rr=function(e){if($t(e))return e;throw tr(er(e)+" is not an object")},nr=O,ir=Lt,or=qt,ar=rr,ur=St,sr=TypeError,cr=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,fr="enumerable",dr="configurable",pr="writable";Qt.f=nr?or?function(e,t,r){if(ar(e),t=ur(t),ar(r),"function"==typeof e&&"prototype"===t&&"value"in r&&pr in r&&!r[pr]){var n=lr(e,t);n&&n[pr]&&(e[t]=r.value,r={configurable:dr in r?r[dr]:n[dr],enumerable:fr in r?r[fr]:n[fr],writable:!1})}return cr(e,t,r)}:cr:function(e,t,r){if(ar(e),t=ur(t),ar(r),ir)try{return cr(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 hr=Qt,vr=N,yr=O?function(e,t,r){return hr.f(e,t,vr(1,r))}:function(e,t,r){return e[t]=r,e},mr=i,gr=f,br=k,_r=E,wr=L.f,Sr=Kt,kr=te,Rr=Jt,Tr=yr,xr=qe,Er=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},Lr=function(e,t){var r,n,i,o,a,u,s,c,l,f=e.target,d=e.global,p=e.stat,h=e.proto,v=d?mr:p?mr[f]:(mr[f]||{}).prototype,y=d?kr:kr[f]||Tr(kr,f,{})[f],m=y.prototype;for(o in t)n=!(r=Sr(d?o:f+(p?".":"#")+o,e.forced))&&v&&xr(v,o),u=y[o],n&&(s=e.dontCallGetSet?(l=wr(v,o))&&l.value:v[o]),a=n&&s?s:t[o],n&&typeof u==typeof a||(c=e.bind&&n?Rr(a,mr):e.wrap&&n?Er(a):h&&_r(a)?br(a):a,(e.sham||a&&a.sham||u&&u.sham)&&Tr(c,"sham",!0),Tr(y,o,c),h&&(xr(kr,i=f+"Prototype")||Tr(kr,i,{}),Tr(kr[i],o,a),e.real&&m&&(r||!m[o])&&Tr(m,o,a)))},Or=_,Ir=Array.isArray||function(e){return"Array"==Or(e)},Pr=Math.ceil,Cr=Math.floor,Zr=Math.trunc||function(e){var t=+e;return(t>0?Cr:Pr)(t)},Ar=function(e){var t=+e;return t!=t||0===t?0:Zr(t)},jr=Ar,Wr=Math.min,Vr=function(e){return e>0?Wr(jr(e),9007199254740991):0},Gr=Vr,Nr=function(e){return Gr(e.length)},Xr=TypeError,Mr=function(e){if(e>9007199254740991)throw Xr("Maximum allowed index exceeded");return e},Ur=St,Fr=Qt,Dr=N,Hr=function(e,t,r){var n=Ur(t);n in e?Fr.f(e,n,Dr(0,r)):e[n]=r},Kr={};Kr[dt("toStringTag")]="z";var Yr="[object z]"===String(Kr),Br=Yr,zr=E,Jr=_,Qr=dt("toStringTag"),qr=Object,$r="Arguments"==Jr(function(){return arguments}()),en=Br?Jr: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=qr(e),Qr))?r:$r?Jr(t):"Object"==(n=Jr(t))&&zr(t.callee)?"Arguments":n},tn=E,rn=De,nn=y(Function.toString);tn(rn.inspectSource)||(rn.inspectSource=function(e){return nn(e)});var on=rn.inspectSource,an=y,un=o,sn=E,cn=en,ln=on,fn=function(){},dn=[],pn=ae("Reflect","construct"),hn=/^\s*(?:class|function)\b/,vn=an(hn.exec),yn=!hn.exec(fn),mn=function(e){if(!sn(e))return!1;try{return pn(fn,dn,e),!0}catch(t){return!1}},gn=function(e){if(!sn(e))return!1;switch(cn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return yn||!!vn(hn,ln(e))}catch(t){return!0}};gn.sham=!0;var bn=!pn||un((function(){var e;return mn(mn.call)||!mn(Object)||!mn((function(){e=!0}))||e}))?gn:mn,_n=Ir,wn=bn,Sn=ee,kn=dt("species"),Rn=Array,Tn=function(e){var t;return _n(e)&&(t=e.constructor,(wn(t)&&(t===Rn||_n(t.prototype))||Sn(t)&&null===(t=t[kn]))&&(t=void 0)),void 0===t?Rn:t},xn=function(e,t){return new(Tn(e))(0===t?0:t)},En=o,Ln=ve,On=dt("species"),In=function(e){return Ln>=51||!En((function(){var t=[];return(t.constructor={})[On]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Pn=Lr,Cn=o,Zn=Ir,An=ee,jn=ze,Wn=Nr,Vn=Mr,Gn=Hr,Nn=xn,Xn=In,Mn=ve,Un=dt("isConcatSpreadable"),Fn=Mn>=51||!Cn((function(){var e=[];return e[Un]=!1,e.concat()[0]!==e})),Dn=function(e){if(!An(e))return!1;var t=e[Un];return void 0!==t?!!t:Zn(e)};Pn({target:"Array",proto:!0,arity:1,forced:!Fn||!Xn("concat")},{concat:function(e){var t,r,n,i,o,a=jn(this),u=Nn(a,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(Dn(o=-1===t?a:arguments[t]))for(i=Wn(o),Vn(s+i),r=0;r<i;r++,s++)r in o&&Gn(u,s,o[r]);else Vn(s+1),Gn(u,s++,o);return u.length=s,u}});var Hn=en,Kn=String,Yn=function(e){if("Symbol"===Hn(e))throw TypeError("Cannot convert a Symbol value to a string");return Kn(e)},Bn={},zn=Ar,Jn=Math.max,Qn=Math.min,qn=function(e,t){var r=zn(e);return r<0?Jn(r+t,0):Qn(r,t)},$n=Q,ei=qn,ti=Nr,ri=function(e){return function(t,r,n){var i,o=$n(t),a=ti(o),u=ei(n,a);if(e&&r!=r){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===r)return e||u||0;return!e&&-1}},ni={includes:ri(!0),indexOf:ri(!1)},ii={},oi=qe,ai=Q,ui=ni.indexOf,si=ii,ci=y([].push),li=function(e,t){var r,n=ai(e),i=0,o=[];for(r in n)!oi(si,r)&&oi(n,r)&&ci(o,r);for(;t.length>i;)oi(n,r=t[i++])&&(~ui(o,r)||ci(o,r));return o},fi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],di=li,pi=fi,hi=Object.keys||function(e){return di(e,pi)},vi=O,yi=qt,mi=Qt,gi=rr,bi=Q,_i=hi;Bn.f=vi&&!yi?Object.defineProperties:function(e,t){gi(e);for(var r,n=bi(t),i=_i(t),o=i.length,a=0;o>a;)mi.f(e,r=i[a++],n[r]);return e};var wi,Si=ae("document","documentElement"),ki=nt,Ri=Ke("keys"),Ti=function(e){return Ri[e]||(Ri[e]=ki(e))},xi=rr,Ei=Bn,Li=fi,Oi=ii,Ii=Si,Pi=xt,Ci="prototype",Zi="script",Ai=Ti("IE_PROTO"),ji=function(){},Wi=function(e){return"<"+Zi+">"+e+"</"+Zi+">"},Vi=function(e){e.write(Wi("")),e.close();var t=e.parentWindow.Object;return e=null,t},Gi=function(){try{wi=new ActiveXObject("htmlfile")}catch(i){}var e,t,r;Gi="undefined"!=typeof document?document.domain&&wi?Vi(wi):(t=Pi("iframe"),r="java"+Zi+":",t.style.display="none",Ii.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Wi("document.F=Object")),e.close(),e.F):Vi(wi);for(var n=Li.length;n--;)delete Gi[Ci][Li[n]];return Gi()};Oi[Ai]=!0;var Ni=Object.create||function(e,t){var r;return null!==e?(ji[Ci]=xi(e),r=new ji,ji[Ci]=null,r[Ai]=e):r=Gi(),void 0===t?r:Ei.f(r,t)},Xi={},Mi=li,Ui=fi.concat("length","prototype");Xi.f=Object.getOwnPropertyNames||function(e){return Mi(e,Ui)};var Fi={},Di=qn,Hi=Nr,Ki=Hr,Yi=Array,Bi=Math.max,zi=function(e,t,r){for(var n=Hi(e),i=Di(t,n),o=Di(void 0===r?n:r,n),a=Yi(Bi(o-i,0)),u=0;i<o;i++,u++)Ki(a,u,e[i]);return a.length=u,a},Ji=_,Qi=Q,qi=Xi.f,$i=zi,eo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Fi.f=function(e){return eo&&"Window"==Ji(e)?function(e){try{return qi(e)}catch(t){return $i(eo)}}(e):qi(Qi(e))};var to={};to.f=Object.getOwnPropertySymbols;var ro=yr,no=function(e,t,r,n){return n&&n.enumerable?e[t]=r:ro(e,t,r),e},io=Qt,oo=function(e,t,r){return io.f(e,t,r)},ao={},uo=dt;ao.f=uo;var so,co,lo,fo=te,po=qe,ho=ao,vo=Qt.f,yo=function(e){var t=fo.Symbol||(fo.Symbol={});po(t,e)||vo(t,e,{value:ho.f(e)})},mo=C,go=ae,bo=dt,_o=no,wo=function(){var e=go("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=bo("toPrimitive");t&&!t[n]&&_o(t,n,(function(e){return mo(r,this)}),{arity:1})},So=en,ko=Yr?{}.toString:function(){return"[object "+So(this)+"]"},Ro=Yr,To=Qt.f,xo=yr,Eo=qe,Lo=ko,Oo=dt("toStringTag"),Io=function(e,t,r,n){if(e){var i=r?e:e.prototype;Eo(i,Oo)||To(i,Oo,{configurable:!0,value:t}),n&&!Ro&&xo(i,"toString",Lo)}},Po=E,Co=i.WeakMap,Zo=Po(Co)&&/native code/.test(String(Co)),Ao=i,jo=ee,Wo=yr,Vo=qe,Go=De,No=Ti,Xo=ii,Mo="Object already initialized",Uo=Ao.TypeError,Fo=Ao.WeakMap;if(Zo||Go.state){var Do=Go.state||(Go.state=new Fo);Do.get=Do.get,Do.has=Do.has,Do.set=Do.set,so=function(e,t){if(Do.has(e))throw Uo(Mo);return t.facade=e,Do.set(e,t),t},co=function(e){return Do.get(e)||{}},lo=function(e){return Do.has(e)}}else{var Ho=No("state");Xo[Ho]=!0,so=function(e,t){if(Vo(e,Ho))throw Uo(Mo);return t.facade=e,Wo(e,Ho,t),t},co=function(e){return Vo(e,Ho)?e[Ho]:{}},lo=function(e){return Vo(e,Ho)}}var Ko={set:so,get:co,has:lo,enforce:function(e){return lo(e)?co(e):so(e,{})},getterFor:function(e){return function(t){var r;if(!jo(t)||(r=co(t)).type!==e)throw Uo("Incompatible receiver, "+e+" required");return r}}},Yo=Jt,Bo=D,zo=ze,Jo=Nr,Qo=xn,qo=y([].push),$o=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,o=6==e,a=7==e,u=5==e||o;return function(s,c,l,f){for(var d,p,h=zo(s),v=Bo(h),y=Yo(c,l),m=Jo(v),g=0,b=f||Qo,_=t?b(s,m):r||a?b(s,0):void 0;m>g;g++)if((u||g in v)&&(p=y(d=v[g],g,h),e))if(t)_[g]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return g;case 2:qo(_,d)}else switch(e){case 4:return!1;case 7:qo(_,d)}return o?-1:n||i?i:_}},ea={forEach:$o(0),map:$o(1),filter:$o(2),some:$o(3),every:$o(4),find:$o(5),findIndex:$o(6),filterReject:$o(7)},ta=Lr,ra=i,na=C,ia=y,oa=O,aa=be,ua=o,sa=qe,ca=ue,la=rr,fa=Q,da=St,pa=Yn,ha=N,va=Ni,ya=hi,ma=Xi,ga=Fi,ba=to,_a=L,wa=Qt,Sa=Bn,ka=Z,Ra=no,Ta=oo,xa=Ke,Ea=ii,La=nt,Oa=dt,Ia=ao,Pa=yo,Ca=wo,Za=Io,Aa=Ko,ja=ea.forEach,Wa=Ti("hidden"),Va="Symbol",Ga="prototype",Na=Aa.set,Xa=Aa.getterFor(Va),Ma=Object[Ga],Ua=ra.Symbol,Fa=Ua&&Ua[Ga],Da=ra.TypeError,Ha=ra.QObject,Ka=_a.f,Ya=wa.f,Ba=ga.f,za=ka.f,Ja=ia([].push),Qa=xa("symbols"),qa=xa("op-symbols"),$a=xa("wks"),eu=!Ha||!Ha[Ga]||!Ha[Ga].findChild,tu=oa&&ua((function(){return 7!=va(Ya({},"a",{get:function(){return Ya(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Ka(Ma,t);n&&delete Ma[t],Ya(e,t,r),n&&e!==Ma&&Ya(Ma,t,n)}:Ya,ru=function(e,t){var r=Qa[e]=va(Fa);return Na(r,{type:Va,tag:e,description:t}),oa||(r.description=t),r},nu=function(e,t,r){e===Ma&&nu(qa,t,r),la(e);var n=da(t);return la(r),sa(Qa,n)?(r.enumerable?(sa(e,Wa)&&e[Wa][n]&&(e[Wa][n]=!1),r=va(r,{enumerable:ha(0,!1)})):(sa(e,Wa)||Ya(e,Wa,ha(1,{})),e[Wa][n]=!0),tu(e,n,r)):Ya(e,n,r)},iu=function(e,t){la(e);var r=fa(t),n=ya(r).concat(su(r));return ja(n,(function(t){oa&&!na(ou,r,t)||nu(e,t,r[t])})),e},ou=function(e){var t=da(e),r=na(za,this,t);return!(this===Ma&&sa(Qa,t)&&!sa(qa,t))&&(!(r||!sa(this,t)||!sa(Qa,t)||sa(this,Wa)&&this[Wa][t])||r)},au=function(e,t){var r=fa(e),n=da(t);if(r!==Ma||!sa(Qa,n)||sa(qa,n)){var i=Ka(r,n);return!i||!sa(Qa,n)||sa(r,Wa)&&r[Wa][n]||(i.enumerable=!0),i}},uu=function(e){var t=Ba(fa(e)),r=[];return ja(t,(function(e){sa(Qa,e)||sa(Ea,e)||Ja(r,e)})),r},su=function(e){var t=e===Ma,r=Ba(t?qa:fa(e)),n=[];return ja(r,(function(e){!sa(Qa,e)||t&&!sa(Ma,e)||Ja(n,Qa[e])})),n};aa||(Ua=function(){if(ca(Fa,this))throw Da("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?pa(arguments[0]):void 0,t=La(e),r=function(e){this===Ma&&na(r,qa,e),sa(this,Wa)&&sa(this[Wa],t)&&(this[Wa][t]=!1),tu(this,t,ha(1,e))};return oa&&eu&&tu(Ma,t,{configurable:!0,set:r}),ru(t,e)},Ra(Fa=Ua[Ga],"toString",(function(){return Xa(this).tag})),Ra(Ua,"withoutSetter",(function(e){return ru(La(e),e)})),ka.f=ou,wa.f=nu,Sa.f=iu,_a.f=au,ma.f=ga.f=uu,ba.f=su,Ia.f=function(e){return ru(Oa(e),e)},oa&&Ta(Fa,"description",{configurable:!0,get:function(){return Xa(this).description}})),ta({global:!0,constructor:!0,wrap:!0,forced:!aa,sham:!aa},{Symbol:Ua}),ja(ya($a),(function(e){Pa(e)})),ta({target:Va,stat:!0,forced:!aa},{useSetter:function(){eu=!0},useSimple:function(){eu=!1}}),ta({target:"Object",stat:!0,forced:!aa,sham:!oa},{create:function(e,t){return void 0===t?va(e):iu(va(e),t)},defineProperty:nu,defineProperties:iu,getOwnPropertyDescriptor:au}),ta({target:"Object",stat:!0,forced:!aa},{getOwnPropertyNames:uu}),Ca(),Za(Ua,Va),Ea[Wa]=!0;var cu=be&&!!Symbol.for&&!!Symbol.keyFor,lu=Lr,fu=ae,du=qe,pu=Yn,hu=Ke,vu=cu,yu=hu("string-to-symbol-registry"),mu=hu("symbol-to-string-registry");lu({target:"Symbol",stat:!0,forced:!vu},{for:function(e){var t=pu(e);if(du(yu,t))return yu[t];var r=fu("Symbol")(t);return yu[t]=r,mu[r]=t,r}});var gu=Lr,bu=qe,_u=Te,wu=Ee,Su=cu,ku=Ke("symbol-to-string-registry");gu({target:"Symbol",stat:!0,forced:!Su},{keyFor:function(e){if(!_u(e))throw TypeError(wu(e)+" is not a symbol");if(bu(ku,e))return ku[e]}});var Ru=y([].slice),Tu=Ir,xu=E,Eu=_,Lu=Yn,Ou=y([].push),Iu=Lr,Pu=ae,Cu=f,Zu=C,Au=y,ju=o,Wu=E,Vu=Te,Gu=Ru,Nu=function(e){if(xu(e))return e;if(Tu(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];"string"==typeof i?Ou(r,i):"number"!=typeof i&&"Number"!=Eu(i)&&"String"!=Eu(i)||Ou(r,Lu(i))}var o=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(Tu(this))return t;for(var n=0;n<o;n++)if(r[n]===e)return t}}},Xu=be,Mu=String,Uu=Pu("JSON","stringify"),Fu=Au(/./.exec),Du=Au("".charAt),Hu=Au("".charCodeAt),Ku=Au("".replace),Yu=Au(1..toString),Bu=/[\uD800-\uDFFF]/g,zu=/^[\uD800-\uDBFF]$/,Ju=/^[\uDC00-\uDFFF]$/,Qu=!Xu||ju((function(){var e=Pu("Symbol")();return"[null]"!=Uu([e])||"{}"!=Uu({a:e})||"{}"!=Uu(Object(e))})),qu=ju((function(){return'"\\udf06\\ud834"'!==Uu("\udf06\ud834")||'"\\udead"'!==Uu("\udead")})),$u=function(e,t){var r=Gu(arguments),n=Nu(t);if(Wu(n)||void 0!==e&&!Vu(e))return r[1]=function(e,t){if(Wu(n)&&(t=Zu(n,this,Mu(e),t)),!Vu(t))return t},Cu(Uu,null,r)},es=function(e,t,r){var n=Du(r,t-1),i=Du(r,t+1);return Fu(zu,e)&&!Fu(Ju,i)||Fu(Ju,e)&&!Fu(zu,n)?"\\u"+Yu(Hu(e,0),16):e};Uu&&Iu({target:"JSON",stat:!0,arity:3,forced:Qu||qu},{stringify:function(e,t,r){var n=Gu(arguments),i=Cu(Qu?$u:Uu,null,n);return qu&&"string"==typeof i?Ku(i,Bu,es):i}});var ts=to,rs=ze;Lr({target:"Object",stat:!0,forced:!be||o((function(){ts.f(1)}))},{getOwnPropertySymbols:function(e){var t=ts.f;return t?t(rs(e)):[]}}),yo("asyncIterator"),yo("hasInstance"),yo("isConcatSpreadable"),yo("iterator"),yo("match"),yo("matchAll"),yo("replace"),yo("search"),yo("species"),yo("split");var ns=wo;yo("toPrimitive"),ns();var is=ae,os=Io;yo("toStringTag"),os(is("Symbol"),"Symbol"),yo("unscopables"),Io(i.JSON,"JSON",!0);var as,us,ss,cs=te.Symbol,ls={},fs=O,ds=qe,ps=Function.prototype,hs=fs&&Object.getOwnPropertyDescriptor,vs=ds(ps,"name"),ys={EXISTS:vs,PROPER:vs&&"something"===function(){}.name,CONFIGURABLE:vs&&(!fs||fs&&hs(ps,"name").configurable)},ms=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),gs=qe,bs=E,_s=ze,ws=ms,Ss=Ti("IE_PROTO"),ks=Object,Rs=ks.prototype,Ts=ws?ks.getPrototypeOf:function(e){var t=_s(e);if(gs(t,Ss))return t[Ss];var r=t.constructor;return bs(r)&&t instanceof r?r.prototype:t instanceof ks?Rs:null},xs=o,Es=E,Ls=ee,Os=Ni,Is=Ts,Ps=no,Cs=dt("iterator"),Zs=!1;[].keys&&("next"in(ss=[].keys())?(us=Is(Is(ss)))!==Object.prototype&&(as=us):Zs=!0);var As=!Ls(as)||xs((function(){var e={};return as[Cs].call(e)!==e}));Es((as=As?{}:Os(as))[Cs])||Ps(as,Cs,(function(){return this}));var js={IteratorPrototype:as,BUGGY_SAFARI_ITERATORS:Zs},Ws=js.IteratorPrototype,Vs=Ni,Gs=N,Ns=Io,Xs=ls,Ms=function(){return this},Us=function(e,t,r,n){var i=t+" Iterator";return e.prototype=Vs(Ws,{next:Gs(+!n,r)}),Ns(e,i,!1,!0),Xs[i]=Ms,e},Fs=y,Ds=Pe,Hs=E,Ks=String,Ys=TypeError,Bs=function(e,t,r){try{return Fs(Ds(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},zs=rr,Js=function(e){if("object"==typeof e||Hs(e))return e;throw Ys("Can't set "+Ks(e)+" as a prototype")},Qs=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Bs(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return zs(r),Js(n),t?e(r,n):r.__proto__=n,r}}():void 0),qs=Lr,$s=C,ec=ys,tc=Us,rc=Ts,nc=Io,ic=no,oc=ls,ac=js,uc=ec.PROPER,sc=ac.BUGGY_SAFARI_ITERATORS,cc=dt("iterator"),lc="keys",fc="values",dc="entries",pc=function(){return this},hc=function(e,t,r,n,i,o,a){tc(r,t,n);var u,s,c,l=function(e){if(e===i&&v)return v;if(!sc&&e in p)return p[e];switch(e){case lc:case fc:case dc:return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[cc]||p["@@iterator"]||i&&p[i],v=!sc&&h||l(i),y="Array"==t&&p.entries||h;if(y&&(u=rc(y.call(new e)))!==Object.prototype&&u.next&&(nc(u,f,!0,!0),oc[f]=pc),uc&&i==fc&&h&&h.name!==fc&&(d=!0,v=function(){return $s(h,this)}),i)if(s={values:l(fc),keys:o?v:l(lc),entries:l(dc)},a)for(c in s)(sc||d||!(c in p))&&ic(p,c,s[c]);else qs({target:t,proto:!0,forced:sc||d},s);return a&&p[cc]!==v&&ic(p,cc,v,{name:i}),oc[t]=v,s},vc=function(e,t){return{value:e,done:t}},yc=Q,mc=ls,gc=Ko;Qt.f;var bc=hc,_c=vc,wc="Array Iterator",Sc=gc.set,kc=gc.getterFor(wc);bc(Array,"Array",(function(e,t){Sc(this,{type:wc,target:yc(e),index:0,kind:t})}),(function(){var e=kc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,_c(void 0,!0)):_c("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),mc.Arguments=mc.Array;var Rc={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},Tc=i,xc=en,Ec=yr,Lc=ls,Oc=dt("toStringTag");for(var Ic in Rc){var Pc=Tc[Ic],Cc=Pc&&Pc.prototype;Cc&&xc(Cc)!==Oc&&Ec(Cc,Oc,Ic),Lc[Ic]=Lc.Array}var Zc=cs;yo("dispose");var Ac=Zc;yo("asyncDispose");var jc=Lr,Wc=y,Vc=ae("Symbol"),Gc=Vc.keyFor,Nc=Wc(Vc.prototype.valueOf);jc({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==Gc(Nc(e))}catch(t){return!1}}});for(var Xc=Lr,Mc=Ke,Uc=ae,Fc=y,Dc=Te,Hc=dt,Kc=Uc("Symbol"),Yc=Kc.isWellKnown,Bc=Uc("Object","getOwnPropertyNames"),zc=Fc(Kc.prototype.valueOf),Jc=Mc("wks"),Qc=0,qc=Bc(Kc),$c=qc.length;Qc<$c;Qc++)try{var el=qc[Qc];Dc(Kc[el])&&Hc(el)}catch(tC){}Xc({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(Yc&&Yc(e))return!0;try{for(var t=zc(e),r=0,n=Bc(Jc),i=n.length;r<i;r++)if(Jc[n[r]]==t)return!0}catch(tC){}return!1}}),yo("matcher"),yo("metadataKey"),yo("observable"),yo("metadata"),yo("patternMatch"),yo("replaceAll");var tl=Ac,rl=r(tl),nl=y,il=Ar,ol=Yn,al=B,ul=nl("".charAt),sl=nl("".charCodeAt),cl=nl("".slice),ll=function(e){return function(t,r){var n,i,o=ol(al(t)),a=il(r),u=o.length;return a<0||a>=u?e?"":void 0:(n=sl(o,a))<55296||n>56319||a+1===u||(i=sl(o,a+1))<56320||i>57343?e?ul(o,a):n:e?cl(o,a,a+2):i-56320+(n-55296<<10)+65536}},fl={codeAt:ll(!1),charAt:ll(!0)},dl=fl.charAt,pl=Yn,hl=Ko,vl=hc,yl=vc,ml="String Iterator",gl=hl.set,bl=hl.getterFor(ml);vl(String,"String",(function(e){gl(this,{type:ml,string:pl(e),index:0})}),(function(){var e,t=bl(this),r=t.string,n=t.index;return n>=r.length?yl(void 0,!0):(e=dl(r,n),t.index+=e.length,yl(e,!1))}));var _l=ao.f("iterator"),wl=r(_l);function Sl(e){return(Sl="function"==typeof rl&&"symbol"==typeof wl?function(e){return typeof e}:function(e){return e&&"function"==typeof rl&&e.constructor===rl&&e!==rl.prototype?"symbol":typeof e})(e)}var kl=ze,Rl=hi;Lr({target:"Object",stat:!0,forced:o((function(){Rl(1)}))},{keys:function(e){return Rl(kl(e))}});var Tl=r(te.Object.keys),xl=r(te.Object.getOwnPropertySymbols),El=ea.filter;Lr({target:"Array",proto:!0,forced:!In("filter")},{filter:function(e){return El(this,e,arguments.length>1?arguments[1]:void 0)}});var Ll=te,Ol=function(e){return Ll[e+"Prototype"]},Il=Ol("Array").filter,Pl=ue,Cl=Il,Zl=Array.prototype,Al=r((function(e){var t=e.filter;return e===Zl||Pl(Zl,e)&&t===Zl.filter?Cl:t})),jl={exports:{}},Wl=Lr,Vl=o,Gl=Q,Nl=L.f,Xl=O;Wl({target:"Object",stat:!0,forced:!Xl||Vl((function(){Nl(1)})),sham:!Xl},{getOwnPropertyDescriptor:function(e,t){return Nl(Gl(e),t)}});var Ml=te.Object,Ul=jl.exports=function(e,t){return Ml.getOwnPropertyDescriptor(e,t)};Ml.getOwnPropertyDescriptor.sham&&(Ul.sham=!0);var Fl=r(jl.exports),Dl=o,Hl=function(e,t){var r=[][e];return!!r&&Dl((function(){r.call(null,t||function(){return 1},1)}))},Kl=ea.forEach,Yl=Hl("forEach")?[].forEach:function(e){return Kl(this,e,arguments.length>1?arguments[1]:void 0)};Lr({target:"Array",proto:!0,forced:[].forEach!=Yl},{forEach:Yl});var Bl=Ol("Array").forEach,zl=en,Jl=qe,Ql=ue,ql=Bl,$l=Array.prototype,ef={DOMTokenList:!0,NodeList:!0},tf=r((function(e){var t=e.forEach;return e===$l||Ql($l,e)&&t===$l.forEach||Jl(ef,zl(e))?ql:t})),rf=ae,nf=Xi,of=to,af=rr,uf=y([].concat),sf=rf("Reflect","ownKeys")||function(e){var t=nf.f(af(e)),r=of.f;return r?uf(t,r(e)):t},cf=sf,lf=Q,ff=L,df=Hr;Lr({target:"Object",stat:!0,sham:!O},{getOwnPropertyDescriptors:function(e){for(var t,r,n=lf(e),i=ff.f,o=cf(n),a={},u=0;o.length>u;)void 0!==(r=i(n,t=o[u++]))&&df(a,t,r);return a}});var pf=r(te.Object.getOwnPropertyDescriptors),hf={exports:{}},vf=Lr,yf=O,mf=Bn.f;vf({target:"Object",stat:!0,forced:Object.defineProperties!==mf,sham:!yf},{defineProperties:mf});var gf=te.Object,bf=hf.exports=function(e,t){return gf.defineProperties(e,t)};gf.defineProperties.sham&&(bf.sham=!0);var _f=r(hf.exports),wf={exports:{}},Sf=Lr,kf=O,Rf=Qt.f;Sf({target:"Object",stat:!0,forced:Object.defineProperty!==Rf,sham:!kf},{defineProperty:Rf});var Tf=te.Object,xf=wf.exports=function(e,t,r){return Tf.defineProperty(e,t,r)};Tf.defineProperty.sham&&(xf.sham=!0);var Ef=r(wf.exports),Lf=r(tl);Lr({target:"Object",stat:!0,sham:!O},{create:Ni});var Of=te.Object,If=r((function(e,t){return Of.create(e,t)})),Pf=ze,Cf=Ts,Zf=ms;Lr({target:"Object",stat:!0,forced:o((function(){Cf(1)})),sham:!Zf},{getPrototypeOf:function(e){return Cf(Pf(e))}});var Af=r(te.Object.getPrototypeOf);Lr({target:"Object",stat:!0},{setPrototypeOf:Qs});var jf=r(te.Object.setPrototypeOf),Wf=qe,Vf=sf,Gf=L,Nf=Qt,Xf=ee,Mf=yr,Uf=Error,Ff=y("".replace),Df=String(Uf("zxcasd").stack),Hf=/\n\s*at [^:]*:[^\n]*/,Kf=Hf.test(Df),Yf=N,Bf=!o((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Yf(1,7)),7!==e.stack)})),zf=yr,Jf=function(e,t){if(Kf&&"string"==typeof e&&!Uf.prepareStackTrace)for(;t--;)e=Ff(e,Hf,"");return e},Qf=Bf,qf=Error.captureStackTrace,$f=ls,ed=dt("iterator"),td=Array.prototype,rd=function(e){return void 0!==e&&($f.Array===e||td[ed]===e)},nd=en,id=Ae,od=H,ad=ls,ud=dt("iterator"),sd=function(e){if(!od(e))return id(e,ud)||id(e,"@@iterator")||ad[nd(e)]},cd=C,ld=Pe,fd=rr,dd=Ee,pd=sd,hd=TypeError,vd=function(e,t){var r=arguments.length<2?pd(e):t;if(ld(r))return fd(cd(r,e));throw hd(dd(e)+" is not iterable")},yd=C,md=rr,gd=Ae,bd=function(e,t,r){var n,i;md(e);try{if(!(n=gd(e,"return"))){if("throw"===t)throw r;return r}n=yd(n,e)}catch(tC){i=!0,n=tC}if("throw"===t)throw r;if(i)throw n;return md(n),r},_d=Jt,wd=C,Sd=rr,kd=Ee,Rd=rd,Td=Nr,xd=ue,Ed=vd,Ld=sd,Od=bd,Id=TypeError,Pd=function(e,t){this.stopped=e,this.result=t},Cd=Pd.prototype,Zd=function(e,t,r){var n,i,o,a,u,s,c,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),v=_d(t,l),y=function(e){return n&&Od(n,"normal",e),new Pd(!0,e)},m=function(e){return f?(Sd(e),h?v(e[0],e[1],y):v(e[0],e[1])):h?v(e,y):v(e)};if(d)n=e.iterator;else if(p)n=e;else{if(!(i=Ld(e)))throw Id(kd(e)+" is not iterable");if(Rd(i)){for(o=0,a=Td(e);a>o;o++)if((u=m(e[o]))&&xd(Cd,u))return u;return new Pd(!1)}n=Ed(e,i)}for(s=d?e.next:n.next;!(c=wd(s,n)).done;){try{u=m(c.value)}catch(tC){Od(n,"throw",tC)}if("object"==typeof u&&u&&xd(Cd,u))return u}return new Pd(!1)},Ad=Yn,jd=Lr,Wd=ue,Vd=Ts,Gd=Qs,Nd=function(e,t,r){for(var n=Vf(t),i=Nf.f,o=Gf.f,a=0;a<n.length;a++){var u=n[a];Wf(e,u)||r&&Wf(r,u)||i(e,u,o(t,u))}},Xd=Ni,Md=yr,Ud=N,Fd=function(e,t){Xf(t)&&"cause"in t&&Mf(e,"cause",t.cause)},Dd=function(e,t,r,n){Qf&&(qf?qf(e,t):zf(e,"stack",Jf(r,n)))},Hd=Zd,Kd=function(e,t){return void 0===e?arguments.length<2?"":t:Ad(e)},Yd=dt("toStringTag"),Bd=Error,zd=[].push,Jd=function(e,t){var r,n=Wd(Qd,this);Gd?r=Gd(Bd(),n?Vd(this):Qd):(r=n?this:Xd(Qd),Md(r,Yd,"Error")),void 0!==t&&Md(r,"message",Kd(t)),Dd(r,Jd,r.stack,1),arguments.length>2&&Fd(r,arguments[2]);var i=[];return Hd(e,zd,{that:i}),Md(r,"errors",i),r};Gd?Gd(Jd,Bd):Nd(Jd,Bd,{name:!0});var Qd=Jd.prototype=Xd(Bd.prototype,{constructor:Ud(1,Jd),message:Ud(1,""),name:Ud(1,"AggregateError")});jd({global:!0,constructor:!0,arity:2},{AggregateError:Jd});var qd,$d,ep,tp,rp="undefined"!=typeof process&&"process"==_(process),np=ae,ip=oo,op=O,ap=dt("species"),up=function(e){var t=np(e);op&&t&&!t[ap]&&ip(t,ap,{configurable:!0,get:function(){return this}})},sp=ue,cp=TypeError,lp=function(e,t){if(sp(t,e))return e;throw cp("Incorrect invocation")},fp=bn,dp=Ee,pp=TypeError,hp=function(e){if(fp(e))return e;throw pp(dp(e)+" is not a constructor")},vp=rr,yp=hp,mp=H,gp=dt("species"),bp=function(e,t){var r,n=vp(e).constructor;return void 0===n||mp(r=vp(n)[gp])?t:yp(r)},_p=TypeError,wp=function(e,t){if(e<t)throw _p("Not enough arguments");return e},Sp=/(?:ipad|iphone|ipod).*applewebkit/i.test(se),kp=i,Rp=f,Tp=Jt,xp=E,Ep=qe,Lp=o,Op=Si,Ip=Ru,Pp=xt,Cp=wp,Zp=Sp,Ap=rp,jp=kp.setImmediate,Wp=kp.clearImmediate,Vp=kp.process,Gp=kp.Dispatch,Np=kp.Function,Xp=kp.MessageChannel,Mp=kp.String,Up=0,Fp={},Dp="onreadystatechange";Lp((function(){qd=kp.location}));var Hp=function(e){if(Ep(Fp,e)){var t=Fp[e];delete Fp[e],t()}},Kp=function(e){return function(){Hp(e)}},Yp=function(e){Hp(e.data)},Bp=function(e){kp.postMessage(Mp(e),qd.protocol+"//"+qd.host)};jp&&Wp||(jp=function(e){Cp(arguments.length,1);var t=xp(e)?e:Np(e),r=Ip(arguments,1);return Fp[++Up]=function(){Rp(t,void 0,r)},$d(Up),Up},Wp=function(e){delete Fp[e]},Ap?$d=function(e){Vp.nextTick(Kp(e))}:Gp&&Gp.now?$d=function(e){Gp.now(Kp(e))}:Xp&&!Zp?(tp=(ep=new Xp).port2,ep.port1.onmessage=Yp,$d=Tp(tp.postMessage,tp)):kp.addEventListener&&xp(kp.postMessage)&&!kp.importScripts&&qd&&"file:"!==qd.protocol&&!Lp(Bp)?($d=Bp,kp.addEventListener("message",Yp,!1)):$d=Dp in Pp("script")?function(e){Op.appendChild(Pp("script"))[Dp]=function(){Op.removeChild(this),Hp(e)}}:function(e){setTimeout(Kp(e),0)});var zp={set:jp,clear:Wp},Jp=function(){this.head=null,this.tail=null};Jp.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 Qp,qp,$p,eh,th,rh=Jp,nh=/ipad|iphone|ipod/i.test(se)&&"undefined"!=typeof Pebble,ih=/web0s(?!.*chrome)/i.test(se),oh=i,ah=Jt,uh=L.f,sh=zp.set,ch=rh,lh=Sp,fh=nh,dh=ih,ph=rp,hh=oh.MutationObserver||oh.WebKitMutationObserver,vh=oh.document,yh=oh.process,mh=oh.Promise,gh=uh(oh,"queueMicrotask"),bh=gh&&gh.value;if(!bh){var _h=new ch,wh=function(){var e,t;for(ph&&(e=yh.domain)&&e.exit();t=_h.get();)try{t()}catch(tC){throw _h.head&&Qp(),tC}e&&e.enter()};lh||ph||dh||!hh||!vh?!fh&&mh&&mh.resolve?((eh=mh.resolve(void 0)).constructor=mh,th=ah(eh.then,eh),Qp=function(){th(wh)}):ph?Qp=function(){yh.nextTick(wh)}:(sh=ah(sh,oh),Qp=function(){sh(wh)}):(qp=!0,$p=vh.createTextNode(""),new hh(wh).observe($p,{characterData:!0}),Qp=function(){$p.data=qp=!qp}),bh=function(e){_h.head||Qp(),_h.add(e)}}var Sh=bh,kh=function(e){try{return{error:!1,value:e()}}catch(tC){return{error:!0,value:tC}}},Rh=i.Promise,Th="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,xh=!Th&&!rp&&"object"==typeof window&&"object"==typeof document,Eh=i,Lh=Rh,Oh=E,Ih=Kt,Ph=on,Ch=dt,Zh=xh,Ah=Th,jh=ve,Wh=Lh&&Lh.prototype,Vh=Ch("species"),Gh=!1,Nh=Oh(Eh.PromiseRejectionEvent),Xh={CONSTRUCTOR:Ih("Promise",(function(){var e=Ph(Lh),t=e!==String(Lh);if(!t&&66===jh)return!0;if(!Wh.catch||!Wh.finally)return!0;if(!jh||jh<51||!/native code/.test(e)){var r=new Lh((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[Vh]=n,!(Gh=r.then((function(){}))instanceof n))return!0}return!t&&(Zh||Ah)&&!Nh})),REJECTION_EVENT:Nh,SUBCLASSING:Gh},Mh={},Uh=Pe,Fh=TypeError,Dh=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw Fh("Bad Promise constructor");t=e,r=n})),this.resolve=Uh(t),this.reject=Uh(r)};Mh.f=function(e){return new Dh(e)};var Hh,Kh,Yh=Lr,Bh=rp,zh=i,Jh=C,Qh=no,qh=Io,$h=up,ev=Pe,tv=E,rv=ee,nv=lp,iv=bp,ov=zp.set,av=Sh,uv=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(tC){}},sv=kh,cv=rh,lv=Ko,fv=Rh,dv=Xh,pv=Mh,hv="Promise",vv=dv.CONSTRUCTOR,yv=dv.REJECTION_EVENT,mv=lv.getterFor(hv),gv=lv.set,bv=fv&&fv.prototype,_v=fv,wv=bv,Sv=zh.TypeError,kv=zh.document,Rv=zh.process,Tv=pv.f,xv=Tv,Ev=!!(kv&&kv.createEvent&&zh.dispatchEvent),Lv="unhandledrejection",Ov=function(e){var t;return!(!rv(e)||!tv(t=e.then))&&t},Iv=function(e,t){var r,n,i,o=t.value,a=1==t.state,u=a?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{u?(a||(2===t.rejection&&jv(t),t.rejection=1),!0===u?r=o:(l&&l.enter(),r=u(o),l&&(l.exit(),i=!0)),r===e.promise?c(Sv("Promise-chain cycle")):(n=Ov(r))?Jh(n,r,s,c):s(r)):c(o)}catch(tC){l&&!i&&l.exit(),c(tC)}},Pv=function(e,t){e.notified||(e.notified=!0,av((function(){for(var r,n=e.reactions;r=n.get();)Iv(r,e);e.notified=!1,t&&!e.rejection&&Zv(e)})))},Cv=function(e,t,r){var n,i;Ev?((n=kv.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),zh.dispatchEvent(n)):n={promise:t,reason:r},!yv&&(i=zh["on"+e])?i(n):e===Lv&&uv("Unhandled promise rejection",r)},Zv=function(e){Jh(ov,zh,(function(){var t,r=e.facade,n=e.value;if(Av(e)&&(t=sv((function(){Bh?Rv.emit("unhandledRejection",n,r):Cv(Lv,r,n)})),e.rejection=Bh||Av(e)?2:1,t.error))throw t.value}))},Av=function(e){return 1!==e.rejection&&!e.parent},jv=function(e){Jh(ov,zh,(function(){var t=e.facade;Bh?Rv.emit("rejectionHandled",t):Cv("rejectionhandled",t,e.value)}))},Wv=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,Pv(e,!0))},Gv=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw Sv("Promise can't be resolved itself");var n=Ov(t);n?av((function(){var r={done:!1};try{Jh(n,t,Wv(Gv,r,e),Wv(Vv,r,e))}catch(tC){Vv(r,tC,e)}})):(e.value=t,e.state=1,Pv(e,!1))}catch(tC){Vv({done:!1},tC,e)}}};vv&&(wv=(_v=function(e){nv(this,wv),ev(e),Jh(Hh,this);var t=mv(this);try{e(Wv(Gv,t),Wv(Vv,t))}catch(tC){Vv(t,tC)}}).prototype,(Hh=function(e){gv(this,{type:hv,done:!1,notified:!1,parent:!1,reactions:new cv,rejection:!1,state:0,value:void 0})}).prototype=Qh(wv,"then",(function(e,t){var r=mv(this),n=Tv(iv(this,_v));return r.parent=!0,n.ok=!tv(e)||e,n.fail=tv(t)&&t,n.domain=Bh?Rv.domain:void 0,0==r.state?r.reactions.add(n):av((function(){Iv(n,r)})),n.promise})),Kh=function(){var e=new Hh,t=mv(e);this.promise=e,this.resolve=Wv(Gv,t),this.reject=Wv(Vv,t)},pv.f=Tv=function(e){return e===_v||undefined===e?new Kh(e):xv(e)}),Yh({global:!0,constructor:!0,wrap:!0,forced:vv},{Promise:_v}),qh(_v,hv,!1,!0),$h(hv);var Nv=dt("iterator"),Xv=!1;try{var Mv=0,Uv={next:function(){return{done:!!Mv++}},return:function(){Xv=!0}};Uv[Nv]=function(){return this},Array.from(Uv,(function(){throw 2}))}catch(tC){}var Fv=function(e,t){if(!t&&!Xv)return!1;var r=!1;try{var n={};n[Nv]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(tC){}return r},Dv=Rh,Hv=Xh.CONSTRUCTOR||!Fv((function(e){Dv.all(e).then(void 0,(function(){}))})),Kv=C,Yv=Pe,Bv=Mh,zv=kh,Jv=Zd;Lr({target:"Promise",stat:!0,forced:Hv},{all:function(e){var t=this,r=Bv.f(t),n=r.resolve,i=r.reject,o=zv((function(){var r=Yv(t.resolve),o=[],a=0,u=1;Jv(e,(function(e){var s=a++,c=!1;u++,Kv(r,t,e).then((function(e){c||(c=!0,o[s]=e,--u||n(o))}),i)})),--u||n(o)}));return o.error&&i(o.value),r.promise}});var Qv=Lr,qv=Xh.CONSTRUCTOR;Rh&&Rh.prototype,Qv({target:"Promise",proto:!0,forced:qv,real:!0},{catch:function(e){return this.then(void 0,e)}});var $v=C,ey=Pe,ty=Mh,ry=kh,ny=Zd;Lr({target:"Promise",stat:!0,forced:Hv},{race:function(e){var t=this,r=ty.f(t),n=r.reject,i=ry((function(){var i=ey(t.resolve);ny(e,(function(e){$v(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var iy=C,oy=Mh;Lr({target:"Promise",stat:!0,forced:Xh.CONSTRUCTOR},{reject:function(e){var t=oy.f(this);return iy(t.reject,void 0,e),t.promise}});var ay=rr,uy=ee,sy=Mh,cy=function(e,t){if(ay(e),uy(t)&&t.constructor===e)return t;var r=sy.f(e);return(0,r.resolve)(t),r.promise},ly=Lr,fy=Rh,dy=Xh.CONSTRUCTOR,py=cy,hy=ae("Promise"),vy=!dy;ly({target:"Promise",stat:!0,forced:true},{resolve:function(e){return py(vy&&this===hy?fy:this,e)}});var yy=C,my=Pe,gy=Mh,by=kh,_y=Zd;Lr({target:"Promise",stat:!0,forced:Hv},{allSettled:function(e){var t=this,r=gy.f(t),n=r.resolve,i=r.reject,o=by((function(){var r=my(t.resolve),i=[],o=0,a=1;_y(e,(function(e){var u=o++,s=!1;a++,yy(r,t,e).then((function(e){s||(s=!0,i[u]={status:"fulfilled",value:e},--a||n(i))}),(function(e){s||(s=!0,i[u]={status:"rejected",reason:e},--a||n(i))}))})),--a||n(i)}));return o.error&&i(o.value),r.promise}});var wy=C,Sy=Pe,ky=ae,Ry=Mh,Ty=kh,xy=Zd,Ey="No one promise resolved";Lr({target:"Promise",stat:!0,forced:Hv},{any:function(e){var t=this,r=ky("AggregateError"),n=Ry.f(t),i=n.resolve,o=n.reject,a=Ty((function(){var n=Sy(t.resolve),a=[],u=0,s=1,c=!1;xy(e,(function(e){var l=u++,f=!1;s++,wy(n,t,e).then((function(e){f||c||(c=!0,i(e))}),(function(e){f||c||(f=!0,a[l]=e,--s||o(new r(a,Ey)))}))})),--s||o(new r(a,Ey))}));return a.error&&o(a.value),n.promise}});var Ly=Lr,Oy=Rh,Iy=o,Py=ae,Cy=E,Zy=bp,Ay=cy,jy=Oy&&Oy.prototype;Ly({target:"Promise",proto:!0,real:!0,forced:!!Oy&&Iy((function(){jy.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=Zy(this,Py("Promise")),r=Cy(e);return this.then(r?function(r){return Ay(t,e()).then((function(){return r}))}:e,r?function(r){return Ay(t,e()).then((function(){throw r}))}:e)}});var Wy=te.Promise,Vy=Mh,Gy=kh;Lr({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Vy.f(this),r=Gy(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var Ny=r(Wy),Xy=Lr,My=Ir,Uy=y([].reverse),Fy=[1,2];Xy({target:"Array",proto:!0,forced:String(Fy)===String(Fy.reverse())},{reverse:function(){return My(this)&&(this.length=this.length),Uy(this)}});var Dy=Ol("Array").reverse,Hy=ue,Ky=Dy,Yy=Array.prototype,By=r((function(e){var t=e.reverse;return e===Yy||Hy(Yy,e)&&t===Yy.reverse?Ky:t})),zy=Lr,Jy=Ir,Qy=bn,qy=ee,$y=qn,em=Nr,tm=Q,rm=Hr,nm=dt,im=Ru,om=In("slice"),am=nm("species"),um=Array,sm=Math.max;zy({target:"Array",proto:!0,forced:!om},{slice:function(e,t){var r,n,i,o=tm(this),a=em(o),u=$y(e,a),s=$y(void 0===t?a:t,a);if(Jy(o)&&(r=o.constructor,(Qy(r)&&(r===um||Jy(r.prototype))||qy(r)&&null===(r=r[am]))&&(r=void 0),r===um||void 0===r))return im(o,u,s);for(n=new(void 0===r?um:r)(sm(s-u,0)),i=0;u<s;u++,i++)u in o&&rm(n,i,o[u]);return n.length=i,n}});var cm=Ol("Array").slice,lm=ue,fm=cm,dm=Array.prototype,pm=r((function(e){var t=e.slice;return e===dm||lm(dm,e)&&t===dm.slice?fm:t})),hm=y,vm=Pe,ym=ee,mm=qe,gm=Ru,bm=a,_m=Function,wm=hm([].concat),Sm=hm([].join),km={},Rm=bm?_m.bind:function(e){var t=vm(this),r=t.prototype,n=gm(arguments,1),i=function(){var r=wm(n,gm(arguments));return this instanceof i?function(e,t,r){if(!mm(km,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";km[t]=_m("C,a","return new C("+Sm(n,",")+")")}return km[t](e,r)}(t,r.length,r):t.apply(e,r)};return ym(r)&&(i.prototype=r),i},Tm=Rm;Lr({target:"Function",proto:!0,forced:Function.bind!==Tm},{bind:Tm});var xm=Ol("Function").bind,Em=ue,Lm=xm,Om=Function.prototype,Im=r((function(e){var t=e.bind;return e===Om||Em(Om,e)&&t===Om.bind?Lm:t})),Pm=Lr,Cm=f,Zm=Rm,Am=hp,jm=rr,Wm=ee,Vm=Ni,Gm=o,Nm=ae("Reflect","construct"),Xm=Object.prototype,Mm=[].push,Um=Gm((function(){function e(){}return!(Nm((function(){}),[],e)instanceof e)})),Fm=!Gm((function(){Nm((function(){}))})),Dm=Um||Fm;Pm({target:"Reflect",stat:!0,forced:Dm,sham:Dm},{construct:function(e,t){Am(e),jm(t);var r=arguments.length<3?e:Am(arguments[2]);if(Fm&&!Um)return Nm(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 Cm(Mm,n,t),new(Cm(Zm,e,n))}var i=r.prototype,o=Vm(Wm(i)?i:Xm),a=Cm(e,o,t);return Wm(a)?a:o}});var Hm=r(te.Reflect.construct),Km=r(ao.f("toPrimitive"));function Ym(e,t){var r=Tl(e);if(xl){var n=xl(e);t&&(n=Al(n).call(n,(function(t){return Fl(e,t).enumerable}))),r.push.apply(r,n)}return r}function Bm(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?tf(r=Ym(Object(i),!0)).call(r,(function(t){tg(e,t,i[t])})):pf?_f(e,pf(i)):tf(n=Ym(Object(i))).call(n,(function(t){Ef(e,t,Fl(i,t))}))}return e}function zm(){zm=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Ef||function(e,t,r){e[t]=r.value},i="function"==typeof Lf?Lf:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Ef(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(E){s=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var o=t&&t.prototype instanceof d?t:d,a=If(o.prototype),u=new R(i||[]);return n(a,"_invoke",{value:_(e,r,u)}),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 d(){}function p(){}function h(){}var v={};s(v,o,(function(){return this}));var y=Af&&Af(Af(T([])));y&&y!==t&&r.call(y,o)&&(v=y);var m=h.prototype=d.prototype=If(v);function g(e){var t;tf(t=["next","throw","return"]).call(t,(function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function i(n,o,a,u){var s=l(e[n],e,o);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==Sl(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,u)}),(function(e){i("throw",e,a,u)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,u)}))}u(s.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 u=w(a,r);if(u){if(u===f)continue;return u}}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 s=l(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.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 S(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 R(e){this.tryEntries=[{tryLoc:"root"}],tf(e).call(e,S,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:x}}function x(){return{value:void 0,done:!0}}return p.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,u,"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 jf?jf(e,h):(e.__proto__=h,s(e,u,"GeneratorFunction")),e.prototype=If(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),s(b.prototype,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Ny);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()}))},g(m),s(m,u,"Generator"),s(m,o,(function(){return this})),s(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return By(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,R.prototype={constructor:R,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,tf(t=this.tryEntries).call(t,k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+pm(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 u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)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 Jm(e,t,r,n,i,o,a){try{var u=e[o](a),s=u.value}catch(tC){return void r(tC)}u.done?t(s):Ny.resolve(s).then(n,i)}function Qm(e){return function(){var t=this,r=arguments;return new Ny((function(n,i){var o=e.apply(t,r);function a(e){Jm(o,n,i,a,u,"next",e)}function u(e){Jm(o,n,i,a,u,"throw",e)}a(void 0)}))}}function qm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $m(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),Ef(e,ug(n.key),n)}}function eg(e,t,r){return t&&$m(e.prototype,t),r&&$m(e,r),Ef(e,"prototype",{writable:!1}),e}function tg(e,t,r){return(t=ug(t))in e?Ef(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rg(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}}),Ef(e,"prototype",{writable:!1}),t&&ig(e,t)}function ng(e){var t;return(ng=jf?Im(t=Af).call(t):function(e){return e.__proto__||Af(e)})(e)}function ig(e,t){var r;return(ig=jf?Im(r=jf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function og(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ag(e){var t=function(){if("undefined"==typeof Reflect||!Hm)return!1;if(Hm.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Hm(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ng(e);if(t){var i=ng(this).constructor;r=Hm(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Sl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return og(e)}(this,r)}}function ug(e){var t=function(e,t){if("object"!==Sl(e)||null===e)return e;var r=e[Km];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Sl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Sl(t)?t:String(t)}var sg,cg=Ol("Array").concat,lg=ue,fg=cg,dg=Array.prototype,pg=r((function(e){var t=e.concat;return e===dg||lg(dg,e)&&t===dg.concat?fg:t})),hg="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,vg=i,yg=f,mg=E,gg=hg,bg=se,_g=Ru,wg=wp,Sg=vg.Function,kg=/MSIE .\./.test(bg)||gg&&((sg=vg.Bun.version.split(".")).length<3||0==sg[0]&&(sg[1]<3||3==sg[1]&&0==sg[2])),Rg=function(e,t){var r=t?2:1;return kg?function(n,i){var o=wg(arguments.length,1)>r,a=mg(n)?n:Sg(n),u=o?_g(arguments,r):[],s=o?function(){yg(a,this,u)}:a;return t?e(s,i):e(s)}:e},Tg=Lr,xg=i,Eg=Rg(xg.setInterval,!0);Tg({global:!0,bind:!0,forced:xg.setInterval!==Eg},{setInterval:Eg});var Lg=Lr,Og=i,Ig=Rg(Og.setTimeout,!0);Lg({global:!0,bind:!0,forced:Og.setTimeout!==Ig},{setTimeout:Ig});var Pg=r(te.setTimeout),Cg=o,Zg=dt("iterator"),Ag=!Cg((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[Zg]||"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})),jg=O,Wg=y,Vg=C,Gg=o,Ng=hi,Xg=to,Mg=Z,Ug=ze,Fg=D,Dg=Object.assign,Hg=Object.defineProperty,Kg=Wg([].concat),Yg=!Dg||Gg((function(){if(jg&&1!==Dg({b:1},Dg(Hg({},"a",{enumerable:!0,get:function(){Hg(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!=Dg({},e)[r]||Ng(Dg({},t)).join("")!=n}))?function(e,t){for(var r=Ug(e),n=arguments.length,i=1,o=Xg.f,a=Mg.f;n>i;)for(var u,s=Fg(arguments[i++]),c=o?Kg(Ng(s),o(s)):Ng(s),l=c.length,f=0;l>f;)u=c[f++],jg&&!Vg(a,s,u)||(r[u]=s[u]);return r}:Dg,Bg=rr,zg=bd,Jg=Jt,Qg=C,qg=ze,$g=function(e,t,r,n){try{return n?t(Bg(r)[0],r[1]):t(r)}catch(tC){zg(e,"throw",tC)}},eb=rd,tb=bn,rb=Nr,nb=Hr,ib=vd,ob=sd,ab=Array,ub=function(e){var t=qg(e),r=tb(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Jg(i,n>2?arguments[2]:void 0));var a,u,s,c,l,f,d=ob(t),p=0;if(!d||this===ab&&eb(d))for(a=rb(t),u=r?new this(a):ab(a);a>p;p++)f=o?i(t[p],p):t[p],nb(u,p,f);else for(l=(c=ib(t,d)).next,u=r?new this:[];!(s=Qg(l,c)).done;p++)f=o?$g(c,i,[s.value,p],!0):s.value,nb(u,p,f);return u.length=p,u},sb=y,cb=2147483647,lb=/[^\0-\u007E]/,fb=/[.\u3002\uFF0E\uFF61]/g,db="Overflow: input needs wider integers to process",pb=RangeError,hb=sb(fb.exec),vb=Math.floor,yb=String.fromCharCode,mb=sb("".charCodeAt),gb=sb([].join),bb=sb([].push),_b=sb("".replace),wb=sb("".split),Sb=sb("".toLowerCase),kb=function(e){return e+22+75*(e<26)},Rb=function(e,t,r){var n=0;for(e=r?vb(e/700):e>>1,e+=vb(e/t);e>455;)e=vb(e/35),n+=36;return vb(n+36*e/(e+38))},Tb=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=mb(e,r++);if(i>=55296&&i<=56319&&r<n){var o=mb(e,r++);56320==(64512&o)?bb(t,((1023&i)<<10)+(1023&o)+65536):(bb(t,i),r--)}else bb(t,i)}return t}(e);var r,n,i=e.length,o=128,a=0,u=72;for(r=0;r<e.length;r++)(n=e[r])<128&&bb(t,yb(n));var s=t.length,c=s;for(s&&bb(t,"-");c<i;){var l=cb;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<l&&(l=n);var f=c+1;if(l-o>vb((cb-a)/f))throw pb(db);for(a+=(l-o)*f,o=l,r=0;r<e.length;r++){if((n=e[r])<o&&++a>cb)throw pb(db);if(n==o){for(var d=a,p=36;;){var h=p<=u?1:p>=u+26?26:p-u;if(d<h)break;var v=d-h,y=36-h;bb(t,yb(kb(h+v%y))),d=vb(v/y),p+=36}bb(t,yb(kb(d))),u=Rb(a,f,c==s),a=0,c++}}a++,o++}return gb(t,"")},xb=no,Eb=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:xb(e,n,t[n],r);return e},Lb=zi,Ob=Math.floor,Ib=function(e,t){var r=e.length,n=Ob(r/2);return r<8?Pb(e,t):Cb(e,Ib(Lb(e,0,n),t),Ib(Lb(e,n),t),t)},Pb=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},Cb=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,u=0;a<i||u<o;)e[a+u]=a<i&&u<o?n(t[a],r[u])<=0?t[a++]:r[u++]:a<i?t[a++]:r[u++];return e},Zb=Ib,Ab=Lr,jb=i,Wb=C,Vb=y,Gb=O,Nb=Ag,Xb=no,Mb=oo,Ub=Eb,Fb=Io,Db=Us,Hb=Ko,Kb=lp,Yb=E,Bb=qe,zb=Jt,Jb=en,Qb=rr,qb=ee,$b=Yn,e_=Ni,t_=N,r_=vd,n_=sd,i_=wp,o_=Zb,a_=dt("iterator"),u_="URLSearchParams",s_=u_+"Iterator",c_=Hb.set,l_=Hb.getterFor(u_),f_=Hb.getterFor(s_),d_=Object.getOwnPropertyDescriptor,p_=function(e){if(!Gb)return jb[e];var t=d_(jb,e);return t&&t.value},h_=p_("fetch"),v_=p_("Request"),y_=p_("Headers"),m_=v_&&v_.prototype,g_=y_&&y_.prototype,b_=jb.RegExp,__=jb.TypeError,w_=jb.decodeURIComponent,S_=jb.encodeURIComponent,k_=Vb("".charAt),R_=Vb([].join),T_=Vb([].push),x_=Vb("".replace),E_=Vb([].shift),L_=Vb([].splice),O_=Vb("".split),I_=Vb("".slice),P_=/\+/g,C_=Array(4),Z_=function(e){return C_[e-1]||(C_[e-1]=b_("((?:%[\\da-f]{2}){"+e+"})","gi"))},A_=function(e){try{return w_(e)}catch(tC){return e}},j_=function(e){var t=x_(e,P_," "),r=4;try{return w_(t)}catch(tC){for(;r;)t=x_(t,Z_(r--),A_);return t}},W_=/[!'()~]|%20/g,V_={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},G_=function(e){return V_[e]},N_=function(e){return x_(S_(e),W_,G_)},X_=Db((function(e,t){c_(this,{type:s_,iterator:r_(l_(e).entries),kind:t})}),"Iterator",(function(){var e=f_(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),M_=function(e){this.entries=[],this.url=null,void 0!==e&&(qb(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===k_(e,0)?I_(e,1):e:$b(e)))};M_.prototype={type:u_,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,u,s=n_(e);if(s)for(r=(t=r_(e,s)).next;!(n=Wb(r,t)).done;){if(o=(i=r_(Qb(n.value))).next,(a=Wb(o,i)).done||(u=Wb(o,i)).done||!Wb(o,i).done)throw __("Expected sequence with length 2");T_(this.entries,{key:$b(a.value),value:$b(u.value)})}else for(var c in e)Bb(e,c)&&T_(this.entries,{key:c,value:$b(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=O_(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=O_(t,"="),T_(this.entries,{key:j_(E_(r)),value:j_(R_(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],T_(r,N_(e.key)+"="+N_(e.value));return R_(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var U_=function(){Kb(this,F_);var e=c_(this,new M_(arguments.length>0?arguments[0]:void 0));Gb||(this.length=e.entries.length)},F_=U_.prototype;if(Ub(F_,{append:function(e,t){i_(arguments.length,2);var r=l_(this);T_(r.entries,{key:$b(e),value:$b(t)}),Gb||this.length++,r.updateURL()},delete:function(e){i_(arguments.length,1);for(var t=l_(this),r=t.entries,n=$b(e),i=0;i<r.length;)r[i].key===n?L_(r,i,1):i++;Gb||(this.length=r.length),t.updateURL()},get:function(e){i_(arguments.length,1);for(var t=l_(this).entries,r=$b(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){i_(arguments.length,1);for(var t=l_(this).entries,r=$b(e),n=[],i=0;i<t.length;i++)t[i].key===r&&T_(n,t[i].value);return n},has:function(e){i_(arguments.length,1);for(var t=l_(this).entries,r=$b(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){i_(arguments.length,1);for(var r,n=l_(this),i=n.entries,o=!1,a=$b(e),u=$b(t),s=0;s<i.length;s++)(r=i[s]).key===a&&(o?L_(i,s--,1):(o=!0,r.value=u));o||T_(i,{key:a,value:u}),Gb||(this.length=i.length),n.updateURL()},sort:function(){var e=l_(this);o_(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=l_(this).entries,n=zb(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 X_(this,"keys")},values:function(){return new X_(this,"values")},entries:function(){return new X_(this,"entries")}},{enumerable:!0}),Xb(F_,a_,F_.entries,{name:"entries"}),Xb(F_,"toString",(function(){return l_(this).serialize()}),{enumerable:!0}),Gb&&Mb(F_,"size",{get:function(){return l_(this).entries.length},configurable:!0,enumerable:!0}),Fb(U_,u_),Ab({global:!0,constructor:!0,forced:!Nb},{URLSearchParams:U_}),!Nb&&Yb(y_)){var D_=Vb(g_.has),H_=Vb(g_.set),K_=function(e){if(qb(e)){var t,r=e.body;if(Jb(r)===u_)return t=e.headers?new y_(e.headers):new y_,D_(t,"content-type")||H_(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),e_(e,{body:t_(0,$b(r)),headers:t_(0,t)})}return e};if(Yb(h_)&&Ab({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return h_(e,arguments.length>1?K_(arguments[1]):{})}}),Yb(v_)){var Y_=function(e){return Kb(this,m_),new v_(e,arguments.length>1?K_(arguments[1]):{})};m_.constructor=Y_,Y_.prototype=m_,Ab({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Y_})}}var B_,z_=Lr,J_=O,Q_=Ag,q_=i,$_=Jt,ew=y,tw=no,rw=oo,nw=lp,iw=qe,ow=Yg,aw=ub,uw=zi,sw=fl.codeAt,cw=function(e){var t,r,n=[],i=wb(_b(Sb(e),fb,"."),".");for(t=0;t<i.length;t++)r=i[t],bb(n,hb(lb,r)?"xn--"+Tb(r):r);return gb(n,".")},lw=Yn,fw=Io,dw=wp,pw={URLSearchParams:U_,getState:l_},hw=Ko,vw=hw.set,yw=hw.getterFor("URL"),mw=pw.URLSearchParams,gw=pw.getState,bw=q_.URL,_w=q_.TypeError,ww=q_.parseInt,Sw=Math.floor,kw=Math.pow,Rw=ew("".charAt),Tw=ew(/./.exec),xw=ew([].join),Ew=ew(1..toString),Lw=ew([].pop),Ow=ew([].push),Iw=ew("".replace),Pw=ew([].shift),Cw=ew("".split),Zw=ew("".slice),Aw=ew("".toLowerCase),jw=ew([].unshift),Ww="Invalid scheme",Vw="Invalid host",Gw="Invalid port",Nw=/[a-z]/i,Xw=/[\d+-.a-z]/i,Mw=/\d/,Uw=/^0x/i,Fw=/^[0-7]+$/,Dw=/^\d+$/,Hw=/^[\da-f]+$/i,Kw=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Yw=/[\0\t\n\r #/:<>?@[\\\]^|]/,Bw=/^[\u0000-\u0020]+/,zw=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Jw=/[\t\n\r]/g,Qw=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)jw(t,e%256),e=Sw(e/256);return xw(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+=Ew(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},qw={},$w=ow({},qw,{" ":1,'"':1,"<":1,">":1,"`":1}),eS=ow({},$w,{"#":1,"?":1,"{":1,"}":1}),tS=ow({},eS,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),rS=function(e,t){var r=sw(e,0);return r>32&&r<127&&!iw(t,e)?e:encodeURIComponent(e)},nS={ftp:21,file:null,http:80,https:443,ws:80,wss:443},iS=function(e,t){var r;return 2==e.length&&Tw(Nw,Rw(e,0))&&(":"==(r=Rw(e,1))||!t&&"|"==r)},oS=function(e){var t;return e.length>1&&iS(Zw(e,0,2))&&(2==e.length||"/"===(t=Rw(e,2))||"\\"===t||"?"===t||"#"===t)},aS=function(e){return"."===e||"%2e"===Aw(e)},uS={},sS={},cS={},lS={},fS={},dS={},pS={},hS={},vS={},yS={},mS={},gS={},bS={},_S={},wS={},SS={},kS={},RS={},TS={},xS={},ES={},LS=function(e,t,r){var n,i,o,a=lw(e);if(t){if(i=this.parse(a))throw _w(i);this.searchParams=null}else{if(void 0!==r&&(n=new LS(r,!0)),i=this.parse(a,null,n))throw _w(i);(o=gw(new mw)).bindURL(this),this.searchParams=o}};LS.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,u,s=this,c=t||uS,l=0,f="",d=!1,p=!1,h=!1;for(e=lw(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=Iw(e,Bw,""),e=Iw(e,zw,"$1")),e=Iw(e,Jw,""),n=aw(e);l<=n.length;){switch(i=n[l],c){case uS:if(!i||!Tw(Nw,i)){if(t)return Ww;c=cS;continue}f+=Aw(i),c=sS;break;case sS:if(i&&(Tw(Xw,i)||"+"==i||"-"==i||"."==i))f+=Aw(i);else{if(":"!=i){if(t)return Ww;f="",c=cS,l=0;continue}if(t&&(s.isSpecial()!=iw(nS,f)||"file"==f&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=f,t)return void(s.isSpecial()&&nS[s.scheme]==s.port&&(s.port=null));f="","file"==s.scheme?c=_S:s.isSpecial()&&r&&r.scheme==s.scheme?c=lS:s.isSpecial()?c=hS:"/"==n[l+1]?(c=fS,l++):(s.cannotBeABaseURL=!0,Ow(s.path,""),c=TS)}break;case cS:if(!r||r.cannotBeABaseURL&&"#"!=i)return Ww;if(r.cannotBeABaseURL&&"#"==i){s.scheme=r.scheme,s.path=uw(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,c=ES;break}c="file"==r.scheme?_S:dS;continue;case lS:if("/"!=i||"/"!=n[l+1]){c=dS;continue}c=vS,l++;break;case fS:if("/"==i){c=yS;break}c=RS;continue;case dS:if(s.scheme=r.scheme,i==B_)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=uw(r.path),s.query=r.query;else if("/"==i||"\\"==i&&s.isSpecial())c=pS;else if("?"==i)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=uw(r.path),s.query="",c=xS;else{if("#"!=i){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=uw(r.path),s.path.length--,c=RS;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=uw(r.path),s.query=r.query,s.fragment="",c=ES}break;case pS:if(!s.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,c=RS;continue}c=yS}else c=vS;break;case hS:if(c=vS,"/"!=i||"/"!=Rw(f,l+1))continue;l++;break;case vS:if("/"!=i&&"\\"!=i){c=yS;continue}break;case yS:if("@"==i){d&&(f="%40"+f),d=!0,o=aw(f);for(var v=0;v<o.length;v++){var y=o[v];if(":"!=y||h){var m=rS(y,tS);h?s.password+=m:s.username+=m}else h=!0}f=""}else if(i==B_||"/"==i||"?"==i||"#"==i||"\\"==i&&s.isSpecial()){if(d&&""==f)return"Invalid authority";l-=aw(f).length+1,f="",c=mS}else f+=i;break;case mS:case gS:if(t&&"file"==s.scheme){c=SS;continue}if(":"!=i||p){if(i==B_||"/"==i||"?"==i||"#"==i||"\\"==i&&s.isSpecial()){if(s.isSpecial()&&""==f)return Vw;if(t&&""==f&&(s.includesCredentials()||null!==s.port))return;if(a=s.parseHost(f))return a;if(f="",c=kS,t)return;continue}"["==i?p=!0:"]"==i&&(p=!1),f+=i}else{if(""==f)return Vw;if(a=s.parseHost(f))return a;if(f="",c=bS,t==gS)return}break;case bS:if(!Tw(Mw,i)){if(i==B_||"/"==i||"?"==i||"#"==i||"\\"==i&&s.isSpecial()||t){if(""!=f){var g=ww(f,10);if(g>65535)return Gw;s.port=s.isSpecial()&&g===nS[s.scheme]?null:g,f=""}if(t)return;c=kS;continue}return Gw}f+=i;break;case _S:if(s.scheme="file","/"==i||"\\"==i)c=wS;else{if(!r||"file"!=r.scheme){c=RS;continue}if(i==B_)s.host=r.host,s.path=uw(r.path),s.query=r.query;else if("?"==i)s.host=r.host,s.path=uw(r.path),s.query="",c=xS;else{if("#"!=i){oS(xw(uw(n,l),""))||(s.host=r.host,s.path=uw(r.path),s.shortenPath()),c=RS;continue}s.host=r.host,s.path=uw(r.path),s.query=r.query,s.fragment="",c=ES}}break;case wS:if("/"==i||"\\"==i){c=SS;break}r&&"file"==r.scheme&&!oS(xw(uw(n,l),""))&&(iS(r.path[0],!0)?Ow(s.path,r.path[0]):s.host=r.host),c=RS;continue;case SS:if(i==B_||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&iS(f))c=RS;else if(""==f){if(s.host="",t)return;c=kS}else{if(a=s.parseHost(f))return a;if("localhost"==s.host&&(s.host=""),t)return;f="",c=kS}continue}f+=i;break;case kS:if(s.isSpecial()){if(c=RS,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=B_&&(c=RS,"/"!=i))continue}else s.fragment="",c=ES;else s.query="",c=xS;break;case RS:if(i==B_||"/"==i||"\\"==i&&s.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(u=Aw(u=f))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(s.shortenPath(),"/"==i||"\\"==i&&s.isSpecial()||Ow(s.path,"")):aS(f)?"/"==i||"\\"==i&&s.isSpecial()||Ow(s.path,""):("file"==s.scheme&&!s.path.length&&iS(f)&&(s.host&&(s.host=""),f=Rw(f,0)+":"),Ow(s.path,f)),f="","file"==s.scheme&&(i==B_||"?"==i||"#"==i))for(;s.path.length>1&&""===s.path[0];)Pw(s.path);"?"==i?(s.query="",c=xS):"#"==i&&(s.fragment="",c=ES)}else f+=rS(i,eS);break;case TS:"?"==i?(s.query="",c=xS):"#"==i?(s.fragment="",c=ES):i!=B_&&(s.path[0]+=rS(i,qw));break;case xS:t||"#"!=i?i!=B_&&("'"==i&&s.isSpecial()?s.query+="%27":s.query+="#"==i?"%23":rS(i,qw)):(s.fragment="",c=ES);break;case ES:i!=B_&&(s.fragment+=rS(i,$w))}l++}},parseHost:function(e){var t,r,n;if("["==Rw(e,0)){if("]"!=Rw(e,e.length-1))return Vw;if(t=function(e){var t,r,n,i,o,a,u,s=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,d=function(){return Rw(e,f)};if(":"==d()){if(":"!=Rw(e,1))return;f+=2,l=++c}for(;d();){if(8==c)return;if(":"!=d()){for(t=r=0;r<4&&Tw(Hw,d());)t=16*t+ww(d(),16),f++,r++;if("."==d()){if(0==r)return;if(f-=r,c>6)return;for(n=0;d();){if(i=null,n>0){if(!("."==d()&&n<4))return;f++}if(!Tw(Mw,d()))return;for(;Tw(Mw,d());){if(o=ww(d(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}s[c]=256*s[c]+i,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;s[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!=c&&a>0;)u=s[c],s[c--]=s[l+a-1],s[l+--a]=u;else if(8!=c)return;return s}(Zw(e,1,-1)),!t)return Vw;this.host=t}else if(this.isSpecial()){if(e=cw(e),Tw(Kw,e))return Vw;if(t=function(e){var t,r,n,i,o,a,u,s=Cw(e,".");if(s.length&&""==s[s.length-1]&&s.length--,(t=s.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=s[n]))return e;if(o=10,i.length>1&&"0"==Rw(i,0)&&(o=Tw(Uw,i)?16:8,i=Zw(i,8==o?1:2)),""===i)a=0;else{if(!Tw(10==o?Dw:8==o?Fw:Hw,i))return e;a=ww(i,o)}Ow(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=kw(256,5-t))return null}else if(a>255)return null;for(u=Lw(r),n=0;n<r.length;n++)u+=r[n]*kw(256,3-n);return u}(e),null===t)return Vw;this.host=t}else{if(Tw(Yw,e))return Vw;for(t="",r=aw(e),n=0;n<r.length;n++)t+=rS(r[n],qw);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return iw(nS,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&iS(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,u=e.query,s=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=Qw(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+xw(a,"/"):"",null!==u&&(c+="?"+u),null!==s&&(c+="#"+s),c},setHref:function(e){var t=this.parse(e);if(t)throw _w(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new OS(e.path[0]).origin}catch(tC){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Qw(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(lw(e)+":",uS)},getUsername:function(){return this.username},setUsername:function(e){var t=aw(lw(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=rS(t[r],tS)}},getPassword:function(){return this.password},setPassword:function(e){var t=aw(lw(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=rS(t[r],tS)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Qw(e):Qw(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,mS)},getHostname:function(){var e=this.host;return null===e?"":Qw(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,gS)},getPort:function(){var e=this.port;return null===e?"":lw(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=lw(e))?this.port=null:this.parse(e,bS))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+xw(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,kS))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=lw(e))?this.query=null:("?"==Rw(e,0)&&(e=Zw(e,1)),this.query="",this.parse(e,xS)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=lw(e))?("#"==Rw(e,0)&&(e=Zw(e,1)),this.fragment="",this.parse(e,ES)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var OS=function(e){var t=nw(this,IS),r=dw(arguments.length,1)>1?arguments[1]:void 0,n=vw(t,new LS(e,!1,r));J_||(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())},IS=OS.prototype,PS=function(e,t){return{get:function(){return yw(this)[e]()},set:t&&function(e){return yw(this)[t](e)},configurable:!0,enumerable:!0}};if(J_&&(rw(IS,"href",PS("serialize","setHref")),rw(IS,"origin",PS("getOrigin")),rw(IS,"protocol",PS("getProtocol","setProtocol")),rw(IS,"username",PS("getUsername","setUsername")),rw(IS,"password",PS("getPassword","setPassword")),rw(IS,"host",PS("getHost","setHost")),rw(IS,"hostname",PS("getHostname","setHostname")),rw(IS,"port",PS("getPort","setPort")),rw(IS,"pathname",PS("getPathname","setPathname")),rw(IS,"search",PS("getSearch","setSearch")),rw(IS,"searchParams",PS("getSearchParams")),rw(IS,"hash",PS("getHash","setHash"))),tw(IS,"toJSON",(function(){return yw(this).serialize()}),{enumerable:!0}),tw(IS,"toString",(function(){return yw(this).serialize()}),{enumerable:!0}),bw){var CS=bw.createObjectURL,ZS=bw.revokeObjectURL;CS&&tw(OS,"createObjectURL",$_(CS,bw)),ZS&&tw(OS,"revokeObjectURL",$_(ZS,bw))}fw(OS,"URL"),z_({global:!0,constructor:!0,forced:!Q_,sham:!J_},{URL:OS});var AS=Lr,jS=o,WS=wp,VS=Yn,GS=Ag,NS=ae("URL");AS({target:"URL",stat:!0,forced:!(GS&&jS((function(){NS.canParse()})))},{canParse:function(e){var t=WS(arguments.length,1),r=VS(e),n=t<2||void 0===arguments[1]?void 0:VS(arguments[1]);try{return!!new NS(r,n)}catch(tC){return!1}}});var XS=r(te.URL),MS=Lr,US=ni.indexOf,FS=Hl,DS=k([].indexOf),HS=!!DS&&1/DS([1],1,-0)<0;MS({target:"Array",proto:!0,forced:HS||!FS("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return HS?DS(this,e,t)||0:US(this,e,t)}});var KS=Ol("Array").indexOf,YS=ue,BS=KS,zS=Array.prototype,JS=r((function(e){var t=e.indexOf;return e===zS||YS(zS,e)&&t===zS.indexOf?BS:t})),QS=Lr,qS=ea.find,$S="find",ek=!0;$S in[]&&Array(1)[$S]((function(){ek=!1})),QS({target:"Array",proto:!0,forced:ek},{find:function(e){return qS(this,e,arguments.length>1?arguments[1]:void 0)}});var tk=Ol("Array").find,rk=ue,nk=tk,ik=Array.prototype,ok=r((function(e){var t=e.find;return e===ik||rk(ik,e)&&t===ik.find?nk:t})),ak=O,uk=Ir,sk=TypeError,ck=Object.getOwnPropertyDescriptor,lk=ak&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(tC){return tC instanceof TypeError}}(),fk=Ee,dk=TypeError,pk=function(e,t){if(!delete e[t])throw dk("Cannot delete property "+fk(t)+" of "+fk(e))},hk=Lr,vk=ze,yk=qn,mk=Ar,gk=Nr,bk=lk?function(e,t){if(uk(e)&&!ck(e,"length").writable)throw sk("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},_k=Mr,wk=xn,Sk=Hr,kk=pk,Rk=In("splice"),Tk=Math.max,xk=Math.min;hk({target:"Array",proto:!0,forced:!Rk},{splice:function(e,t){var r,n,i,o,a,u,s=vk(this),c=gk(s),l=yk(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=xk(Tk(mk(t),0),c-l)),_k(c+r-n),i=wk(s,n),o=0;o<n;o++)(a=l+o)in s&&Sk(i,o,s[a]);if(i.length=n,r<n){for(o=l;o<c-n;o++)u=o+r,(a=o+n)in s?s[u]=s[a]:kk(s,u);for(o=c;o>c-n+r;o--)kk(s,o-1)}else if(r>n)for(o=c-n;o>l;o--)u=o+r-1,(a=o+n-1)in s?s[u]=s[a]:kk(s,u);for(o=0;o<r;o++)s[o+l]=arguments[o+2];return bk(s,c-n+r),i}});var Ek=Ol("Array").splice,Lk=ue,Ok=Ek,Ik=Array.prototype,Pk=r((function(e){var t=e.splice;return e===Ik||Lk(Ik,e)&&t===Ik.splice?Ok:t}));Lr({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var Ck=r(te.Number.isNaN),Zk="\t\n\v\f\r \u2028\u2029\ufeff",Ak=B,jk=Yn,Wk=Zk,Vk=y("".replace),Gk=RegExp("^["+Wk+"]+"),Nk=RegExp("(^|[^"+Wk+"])["+Wk+"]+$"),Xk=function(e){return function(t){var r=jk(Ak(t));return 1&e&&(r=Vk(r,Gk,"")),2&e&&(r=Vk(r,Nk,"$1")),r}},Mk={start:Xk(1),end:Xk(2),trim:Xk(3)},Uk=i,Fk=o,Dk=y,Hk=Yn,Kk=Mk.trim,Yk=Zk,Bk=Uk.parseInt,zk=Uk.Symbol,Jk=zk&&zk.iterator,Qk=/^[+-]?0x/i,qk=Dk(Qk.exec),$k=8!==Bk(Yk+"08")||22!==Bk(Yk+"0x16")||Jk&&!Fk((function(){Bk(Object(Jk))}))?function(e,t){var r=Kk(Hk(e));return Bk(r,t>>>0||(qk(Qk,r)?16:10))}:Bk;Lr({global:!0,forced:parseInt!=$k},{parseInt:$k});var eR=r(te.parseInt),tR=ea.map;Lr({target:"Array",proto:!0,forced:!In("map")},{map:function(e){return tR(this,e,arguments.length>1?arguments[1]:void 0)}});var rR=Ol("Array").map,nR=ue,iR=rR,oR=Array.prototype,aR=r((function(e){var t=e.map;return e===oR||nR(oR,e)&&t===oR.map?iR:t}));Lr({target:"Array",stat:!0},{isArray:Ir});var uR=r(te.Array.isArray),sR=Yg;Lr({target:"Object",stat:!0,arity:2,forced:Object.assign!==sR},{assign:sR});var cR=r(te.Object.assign),lR=r(_l),fR=qe,dR=C,pR=ee,hR=rr,vR=function(e){return void 0!==e&&(fR(e,"value")||fR(e,"writable"))},yR=L,mR=Ts;Lr({target:"Reflect",stat:!0},{get:function e(t,r){var n,i,o=arguments.length<3?t:arguments[2];return hR(t)===o?t[r]:(n=yR.f(t,r))?vR(n)?n.value:void 0===n.get?void 0:dR(n.get,o):pR(i=mR(t))?e(i,r,o):void 0}});var gR=r(te.Reflect.get),bR=r(sd),_R=ub;Lr({target:"Array",stat:!0,forced:!Fv((function(e){Array.from(e)}))},{from:_R});var wR=r(te.Array.from);function SR(e,t){var r=Tl(e);if(xl){var n=xl(e);t&&(n=Al(n).call(n,(function(t){return Fl(e,t).enumerable}))),r.push.apply(r,n)}return r}function kR(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?tf(r=SR(Object(i),!0)).call(r,(function(t){LR(e,t,i[t])})):pf?_f(e,pf(i)):tf(n=SR(Object(i))).call(n,(function(t){Ef(e,t,Fl(i,t))}))}return e}function RR(e){return(RR="function"==typeof Lf&&"symbol"==typeof lR?function(e){return typeof e}:function(e){return e&&"function"==typeof Lf&&e.constructor===Lf&&e!==Lf.prototype?"symbol":typeof e})(e)}function TR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xR(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),Ef(e,PR(n.key),n)}}function ER(e,t,r){return t&&xR(e.prototype,t),r&&xR(e,r),Ef(e,"prototype",{writable:!1}),e}function LR(e,t,r){return(t=PR(t))in e?Ef(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OR(e){return function(e){if(uR(e))return IR(e)}(e)||function(e){if(void 0!==Lf&&null!=bR(e)||null!=e["@@iterator"])return wR(e)}(e)||function(e,t){var r;if(!e)return;if("string"==typeof e)return IR(e,t);var n=pm(r=Object.prototype.toString.call(e)).call(r,8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return wR(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IR(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 IR(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 PR(e){var t=function(e,t){if("object"!==Sl(e)||null===e)return e;var r=e[Km];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Sl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Sl(t)?t:String(t)}var CR={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 u=new i(n,o||e,a),s=r?r+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],u]:e._events[s].push(u):(e._events[s]=u,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function u(){this._events=new n,this._eventsCount=0}If&&(n.prototype=If(null),(new n).__proto__||(r=!1)),u.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?pm(n).call(n,1):n);return xl?pg(i).call(i,xl(e)):i},u.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},u.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},u.prototype.emit=function(e,t,n,i,o,a){var u=r?r+e:e;if(!this._events[u])return!1;var s,c,l=this._events[u],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,s=new Array(f-1);c<f;c++)s[c-1]=arguments[c];l.fn.apply(l.context,s)}else{var d,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(!s)for(d=1,s=new Array(f-1);d<f;d++)s[d-1]=arguments[d];l[c].fn.apply(l[c].context,s)}}return!0},u.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},u.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},u.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 u=this._events[o];if(u.fn)u.fn!==t||i&&!u.once||n&&u.context!==n||a(this,o);else{for(var s=0,c=[],l=u.length;s<l;s++)(u[s].fn!==t||i&&!u[s].once||n&&u[s].context!==n)&&c.push(u[s]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},u.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},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u}(CR);var ZR=r(CR.exports),AR=ea.some;Lr({target:"Array",proto:!0,forced:!Hl("some")},{some:function(e){return AR(this,e,arguments.length>1?arguments[1]:void 0)}});var jR=Ol("Array").some,WR=ue,VR=jR,GR=Array.prototype,NR=r((function(e){var t=e.some;return e===GR||WR(GR,e)&&t===GR.some?VR:t})),XR=Ar,MR=Yn,UR=B,FR=RangeError,DR=y,HR=Vr,KR=Yn,YR=B,BR=DR((function(e){var t=MR(UR(this)),r="",n=XR(e);if(n<0||n==1/0)throw FR("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),zR=DR("".slice),JR=Math.ceil,QR=function(e){return function(t,r,n){var i,o,a=KR(YR(t)),u=HR(r),s=a.length,c=void 0===n?" ":KR(n);return u<=s||""==c?a:((o=BR(c,JR((i=u-s)/c.length))).length>i&&(o=zR(o,0,i)),e?a+o:o+a)}},qR={start:QR(!1),end:QR(!0)},$R=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(se),eT=qR.start;Lr({target:"String",proto:!0,forced:$R},{padStart:function(e){return eT(this,e,arguments.length>1?arguments[1]:void 0)}});var tT=Ol("String").padStart,rT=ue,nT=tT,iT=String.prototype,oT=r((function(e){var t=e.padStart;return"string"==typeof e||e===iT||rT(iT,e)&&t===iT.padStart?nT:t})),aT=r(te.setInterval),uT=ea.every;Lr({target:"Array",proto:!0,forced:!Hl("every")},{every:function(e){return uT(this,e,arguments.length>1?arguments[1]:void 0)}});var sT=Ol("Array").every,cT=ue,lT=sT,fT=Array.prototype,dT=r((function(e){var t=e.every;return e===fT||cT(fT,e)&&t===fT.every?lT:t})),pT=i,hT=o,vT=Yn,yT=Mk.trim,mT=Zk,gT=y("".charAt),bT=pT.parseFloat,_T=pT.Symbol,wT=_T&&_T.iterator,ST=1/bT(mT+"-0")!=-1/0||wT&&!hT((function(){bT(Object(wT))}))?function(e){var t=yT(vT(e)),r=bT(t);return 0===r&&"-"==gT(t,0)?-0:r}:bT;Lr({global:!0,forced:parseFloat!=ST},{parseFloat:ST});var kT=r(te.parseFloat),RT=ys.PROPER,TT=o,xT=Zk,ET=Mk.trim;Lr({target:"String",proto:!0,forced:function(e){return TT((function(){return!!xT[e]()||"
"!=="
"[e]()||RT&&xT[e].name!==e}))}("trim")},{trim:function(){return ET(this)}});var LT=Ol("String").trim,OT=ue,IT=LT,PT=String.prototype,CT=r((function(e){var t=e.trim;return"string"==typeof e||e===PT||OT(PT,e)&&t===PT.trim?IT:t})),ZT=se.match(/firefox\/(\d+)/i),AT=!!ZT&&+ZT[1],jT=/MSIE|Trident/.test(se),WT=se.match(/AppleWebKit\/(\d+)\./),VT=!!WT&&+WT[1],GT=Lr,NT=y,XT=Pe,MT=ze,UT=Nr,FT=pk,DT=Yn,HT=o,KT=Zb,YT=Hl,BT=AT,zT=jT,JT=ve,QT=VT,qT=[],$T=NT(qT.sort),ex=NT(qT.push),tx=HT((function(){qT.sort(void 0)})),rx=HT((function(){qT.sort(null)})),nx=YT("sort"),ix=!HT((function(){if(JT)return JT<70;if(!(BT&&BT>3)){if(zT)return!0;if(QT)return QT<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++)qT.push({k:t+n,v:r})}for(qT.sort((function(e,t){return t.v-e.v})),n=0;n<qT.length;n++)t=qT[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));GT({target:"Array",proto:!0,forced:tx||!rx||!nx||!ix},{sort:function(e){void 0!==e&&XT(e);var t=MT(this);if(ix)return void 0===e?$T(t):$T(t,e);var r,n,i=[],o=UT(t);for(n=0;n<o;n++)n in t&&ex(i,t[n]);for(KT(i,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:DT(t)>DT(r)?1:-1}}(e)),r=UT(i),n=0;n<r;)t[n]=i[n++];for(;n<o;)FT(t,n++);return t}});var ox=Ol("Array").sort,ax=ue,ux=ox,sx=Array.prototype,cx=r((function(e){var t=e.sort;return e===sx||ax(sx,e)&&t===sx.sort?ux:t})),lx=Lr,fx=Date,dx=y(fx.prototype.getTime);lx({target:"Date",stat:!0},{now:function(){return dx(new fx)}});var px,hx=r(te.Date.now),vx="undefined"!=typeof window&&window.location&&JS(px=window.location.href).call(px,"xgplayerdebugger=1")>-1,yx="color: #525252; background-color: #90ee90;",mx="color: #525252; background-color: red;",gx="color: #525252; background-color: yellow; ",bx="%c[xgplayer]",_x={config:{debug:vx?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,pg(t=[bx,yx,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,pg(t=[bx,gx,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,pg(t=[bx,mx,e]).call(t,o))}}},wx=function(){function e(t){TR(this,e),this.bufferedList=t}return ER(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}(),Sx={};Sx.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,tf(e=Tl(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},Sx.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&&Sx.addClass(i,r),t)tf(o=Tl(t)).call(o,(function(e){i.setAttribute(e,t[e])}));return i}return null}catch(a){return _x.logError("util.createDomFromHtml",a),null}},Sx.hasClass=function(e,t){if(!e||!t)return!1;try{return NR(Array.prototype).call(e.classList,(function(e){return e===t}))}catch(n){var r=e.className&&"object"===RR(e.className)?e.getAttribute("class"):e.className;return r&&!!r.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},Sx.addClass=function(e,t){if(e&&t)try{var r;tf(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.add(t)}))}catch(n){Sx.hasClass(e,t)||(e.className&&"object"===RR(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},Sx.removeClass=function(e,t){if(e&&t)try{var r;tf(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.remove(t)}))}catch(i){var n;if(Sx.hasClass(e,t))tf(n=t.split(/\s+/g)).call(n,(function(t){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===RR(e.className)?e.setAttribute("class",e.getAttribute("class").replace(r," ")):e.className=e.className.replace(r," ")}))}},Sx.toggleClass=function(e,t){var r;e&&tf(r=t.split(/\s+/g)).call(r,(function(t){Sx.hasClass(e,t)?Sx.removeClass(e,t):Sx.addClass(e,t)}))},Sx.classNames=function(){for(var e=arguments,t=[],r=function(r){if("String"===Sx.typeOf(e[r]))t.push(e[r]);else if("Object"===Sx.typeOf(e[r])){var n;aR(n=Tl(e[r])).call(n,(function(n){e[r][n]&&t.push(n)}))}},n=0;n<arguments.length;n++)r(n);return t.join(" ")},Sx.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){_x.logError("util.findDom",n),0===JS(r).call(r,"#")&&(e=t.getElementById(pm(r).call(r,1)))}return e},Sx.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},Sx.padStart=function(e,t,r){for(var n=String(r),i=t>>0,o=Math.ceil(i/n.length),a=[],u=String(e);o--;)a.push(n);return a.join("").substring(0,i-u.length)+u},Sx.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=oT(Sx).call(Sx,Math.floor(e/3600),2,0),r=oT(Sx).call(Sx,Math.floor((e-3600*t)/60),2,0),n=oT(Sx).call(Sx,Math.floor(e-3600*t-60*r),2,0);return("00"===t?[r,n]:[t,r,n]).join(":")},Sx.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},Sx.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},Sx.deepCopy=function(e,t){var r;if("Object"===Sx.typeOf(t)&&"Object"===Sx.typeOf(e))return tf(r=Tl(t)).call(r,(function(r){if("Object"!==Sx.typeOf(t[r])||t[r]instanceof Node)if("Array"===Sx.typeOf(t[r])){var n;e[r]="Array"===Sx.typeOf(e[r])?pg(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]:Sx.deepCopy(e[r],t[r])})),e},Sx.deepMerge=function(e,t){var r;return aR(r=Tl(t)).call(r,(function(r){var n;"Array"===Sx.typeOf(t[r])&&"Array"===Sx.typeOf(e[r])?"Array"===Sx.typeOf(e[r])&&(n=e[r]).push.apply(n,OR(t[r])):Sx.typeOf(e[r])!==Sx.typeOf(t[r])||null===e[r]||"Object"!==Sx.typeOf(e[r])||t[r]instanceof window.Node?null!==t[r]&&(e[r]=t[r]):Sx.deepMerge(e[r],t[r])})),e},Sx.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},Sx.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return tf(Array.prototype).call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},Sx.setInterval=function(e,t,r,n){e._interval[t]||(e._interval[t]=aT(Im(r).call(r,e),n))},Sx.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},Sx.setTimeout=function(e,t,r){e._timers||(e._timers=[]);var n=Pg((function(){t(),Sx.clearTimeout(e,n)}),r);return e._timers.push(n),n},Sx.clearTimeout=function(e,t){var r=e._timers;if("Array"===Sx.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===t){Pk(r).call(r,n,1),clearTimeout(t);break}}else clearTimeout(t)},Sx.clearAllTimers=function(e){var t=e._timers;"Array"===Sx.typeOf(t)&&(aR(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},Sx.createImgBtn=function(e,t,r,n){var i,o,a,u,s,c,l,f,d,p,h,v,y=Sx.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(y.style.backgroundImage='url("'.concat(t,'")'),r&&n)&&(dT(i=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(i,(function(e){var t,i;return!(JS(r).call(r,e)>-1&&JS(n).call(n,e)>-1)||(l=kT(CT(t=pm(r).call(r,0,JS(r).call(r,e))).call(t)),f=kT(CT(i=pm(n).call(n,0,JS(n).call(n,e))).call(i)),d=e,!1)})),y.style.width=pg(o="".concat(l)).call(o,d),y.style.height=pg(a="".concat(f)).call(a,d),y.style.backgroundSize=pg(u=pg(s=pg(c="".concat(l)).call(c,d," ")).call(s,f)).call(u,d),y.style.margin="start"===e?pg(p=pg(h=pg(v="-".concat(f/2)).call(v,d," auto auto -")).call(h,l/2)).call(p,d):"auto 5px auto 5px");return y},Sx.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(eR(e,16))})),pg(r="rgba(".concat(n.join(","),", ")).call(r,t,")")):"rgba(255, 255, 255, 0.1)"},Sx.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},Sx.checkIsFunction=function(e){return e&&"function"==typeof e},Sx.checkIsObject=function(e){return null!==e&&"object"===RR(e)},Sx.hide=function(e){e.style.display="none"},Sx.show=function(e,t){e.style.display=t||"block"},Sx.isUndefined=function(e){if(null==e)return!0},Sx.isNotNull=function(e){return!(null==e)},Sx.setStyleFromCsstext=function(e,t){if(t)if("String"===Sx.typeOf(t)){var r=t.replace(/\s+/g,"").split(";");aR(r).call(r,(function(t){if(t){var r=t.split(":");r.length>1&&(e.style[r[0]]=r[1])}}))}else{var n;aR(n=Tl(t)).call(n,(function(r){e.style[r]=t[r]}))}},Sx.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 aR(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(JS(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",""),aR(t=Tl(a)).call(t,(function(t){e.style[t]=a[t]})),o},Sx.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var r=t.replace(/\s+/g,"").split(";"),n={};return aR(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(n[t[0]]=t[1])}})),n},Sx.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}},Sx.stopPropagation=function(e){e&&e.stopPropagation()},Sx.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},Sx.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},Sx.checkTouchSupport=function(){return"ontouchstart"in window},Sx.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)});cx(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 u=i[a-1].end;r[o].start-u<t?r[o].end>u&&(i[a-1].end=r[o].end):i.push(r[o])}else i.push(r[o])}else i=r;return new wx(i)},Sx.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}},Sx.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},Sx.getHostFromUrl=function(e){if("String"!==Sx.typeOf(e))return"";var t=e.split("/"),r="";return t.length>3&&t[2]&&(r=t[2]),r},Sx.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},Sx.isMSE=function(e){return e.media&&(e=e.media),!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},Sx.isBlob=function(e){return"string"==typeof e&&/^blob/.test(e)},Sx.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=eR(e)}catch(r){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=eR(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)}))},Sx.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},Sx.adjustTimeByDuration=function(e,t,r){return t&&e&&(e>t||r&&e<t)?t:e},Sx.createPositionBar=function(e,t){var r=Sx.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(r),r},Sx.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:pg(e="".concat(t.x||0,"%, ")).call(e,t.y||0,"%"),rotate:"".concat(t.rotate||0,"deg")},i=Tl(n);return tf(i).call(i,(function(e){var t,i=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),o=pg(t="".concat(e,"(")).call(t,n[e],")");i.test(r)?(i.lastIndex=-1,r=r.replace(i,o)):r+="".concat(o," ")})),r},Sx.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360},Sx.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},Sx.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:Sx.getIndexByTime(e,t))<0)return-1;var i=t.length,o=t[n],a=o.start,u=o.end,s=o.cTime,c=o.offset;return e<a?s:e>=a&&e<=u?e-c:e>u&&n>=i-1?u:-1},Sx.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 kx="3.0.21-rc.21",Rx={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},Tx=ER((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};TR(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,u=t.currentTime,s=t.ended,c=t.src,l=t.currentSrc,f=t.media,d=f.readyState,p=f.networkState,h=r.errorCode||o.code;Rx[h]&&(h=Rx[h]);var v={playerVersion:kx,currentTime:u,duration:a,ended:s,readyState:d,networkState:p,src:c||l,errorType:r.errorType,errorCode:h,message:r.errorMessage||o.message,mediaError:o,originError:r.originError?r.originError.stack:"",host:Sx.getHostFromUrl(c||l)};return r.ext&&aR(i=Tl(r.ext)).call(i,(function(e){v[e]=r.ext[e]})),v}if(arguments.length>1){for(var y={playerVersion:kx,domain:document.domain},m=["errorType","currentTime","duration","networkState","readyState","src","currentSrc","ended","errd","errorCode","mediaError"],g=0;g<arguments.length;g++)y[m[g]]=arguments[g];return y.ex=n?(n[arguments[0]]||{}).msg:"",y}}));function xx(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 u,s=t.call.apply(t,pg(n=[e]).call(n,o));r&&"function"==typeof r&&(s&&s.then?s.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,pg(t=[e]).call(t,i))})):r.call.apply(r,pg(u=[e]).call(u,o)))}function Ex(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),Im(r=function(){var r,i=arguments,o=this;if(n.pre)try{var a,u;(u=n.pre).call.apply(u,pg(a=[this]).call(a,pm(Array.prototype).call(arguments)))}catch(v){var s,c;throw v.message=pg(s=pg(c="[pluginName: ".concat(this.pluginName,":")).call(c,e,":pre error] >> ")).call(s,v.message),v}if(this.__hooks&&this.__hooks[e])try{var l,f=function(e,t,r){for(var n=arguments.length,i=new Array(n>3?n-3:0),o=3;o<n;o++)i[o-3]=arguments[o];if(e.__hooks&&uR(e.__hooks[t])){var a,u=e.__hooks[t],s=-1,c=function e(t,r,n){for(var i,o,a=arguments.length,c=new Array(a>3?a-3:0),l=3;l<a;l++)c[l-3]=arguments[l];if(s++,0===u.length||s===u.length)return n.call.apply(n,pg(o=[t,t]).call(o,c));var f,d=u[s],p=d.call.apply(d,pg(i=[t,t]).call(i,c));return p&&p.then?p.then((function(i){var o;return!1===i?null:e.apply(void 0,pg(o=[t,r,n]).call(o,c))})).catch((function(e){console.warn("[runHooks]".concat(r," reject"),e.message)})):!1!==p?e.apply(void 0,pg(f=[t,r,n]).call(f,c)):void 0};return c.apply(void 0,pg(a=[e,t,r]).call(a,i))}var l;return r.call.apply(r,pg(l=[e,e]).call(l,i))}(this,e,t);if(f)if(f.then)f.then((function(e){var r;!1!==e&&xx.apply(void 0,pg(r=[o,t,n.next]).call(r,OR(i)))})).catch((function(e){throw e}));else xx.apply(void 0,pg(l=[this,t,n.next]).call(l,pm(Array.prototype).call(arguments)));else if(void 0===f){var d;xx.apply(void 0,pg(d=[this,t,n.next]).call(d,pm(Array.prototype).call(arguments)))}}catch(v){var p,h;throw v.message=pg(p=pg(h="[pluginName: ".concat(this.pluginName,":")).call(h,e,"] >> ")).call(p,v.message),v}else xx.apply(void 0,pg(r=[this,t,n.next]).call(r,pm(Array.prototype).call(arguments)))}).call(r,this)}function Lx(e,t){var r=this.__hooks;if(!r||!uR(r[e]))return-1;for(var n=r[e],i=0;i<n.length;i++)if(n[i]===t)return i;return-1}function Ox(e,t){var r=this.__hooks;if(r)return r.hasOwnProperty(e)?(uR(r[e])||(r[e]=[]),-1===Lx.call(this,e,t)&&r[e].push(t),!0):(console.warn("has no supported hook which name [".concat(e,"]")),!1)}function Ix(e,t){var r=this.__hooks;if(r)if(uR(r[e])){var n=r[e],i=Lx.call(this,e,t);-1!==i&&Pk(n).call(n,i,1)}else r[e]&&(r[e]=null)}function Px(e,t){var r;_x.logError(pg(r="[".concat(e,"] event or callback cant be undefined or null when call ")).call(r,t))}var Cx=function(){function e(t){TR(this,e),Sx.checkIsFunction(this.beforeCreate)&&this.beforeCreate(t),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.__hooks={},t&&aR(t).call(t,(function(t){e.__hooks[t]=null})),Ef(e,"hooks",{get:function(){var t;return e.__hooks&&aR(t=Tl(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 ER(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=Sx.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)):uR(e)&&tf(e).call(e,(function(e){r.__events[e]=t,r.player.on(e,t)})):Px(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)):uR(e)&&tf(e).call(e,(function(n){r.__onceEvents[n]=t,r.player.once(e,t)})):Px(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)):uR(e)&&tf(e).call(e,(function(n){delete r.__events[e],r.player.off(n,t)})):Px(this.pluginName,"plugin.off(event, callback)")}},{key:"offAll",value:function(){var e,t=this;tf(e=["__events","__onceEvents"]).call(e,(function(e){var r;tf(r=Tl(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,pg(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=kR(kR({},r),{},{pluginName:this.pluginName});this.player.emitUserAction(e,t,n)}}},{key:"hook",value:function(e,t){var r;return Ex.call.apply(Ex,pg(r=[this]).call(r,pm(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 Ox.call.apply(Ox,pg(r=[this]).call(r,pm(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 Ix.call.apply(Ix,pg(r=[this]).call(r,pm(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(),Sx.clearAllTimers(this),Sx.checkIsFunction(this.destroy)&&this.destroy(),aR(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)&&Ef(e,r,t[r])}},{key:"defineMethod",value:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&"function"==typeof t[r]&&Ef(e,r,{configurable:!0,value:t[r]})}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),e}(),Zx=te,Ax=f;Zx.JSON||(Zx.JSON={stringify:JSON.stringify});var jx=function(e,t,r){return Ax(Zx.JSON.stringify,null,arguments)},Wx=r(jx),Vx=ee,Gx=_,Nx=dt("match"),Xx=function(e){var t;return Vx(e)&&(void 0!==(t=e[Nx])?!!t:"RegExp"==Gx(e))},Mx=TypeError,Ux=dt("match"),Fx=ni.includes;Lr({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return Fx(this,e,arguments.length>1?arguments[1]:void 0)}});var Dx=Ol("Array").includes,Hx=Lr,Kx=function(e){if(Xx(e))throw Mx("The method doesn't accept regular expressions");return e},Yx=B,Bx=Yn,zx=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Ux]=!1,"/./"[e](t)}catch(n){}}return!1},Jx=y("".indexOf);Hx({target:"String",proto:!0,forced:!zx("includes")},{includes:function(e){return!!~Jx(Bx(Yx(this)),Bx(Kx(e)),arguments.length>1?arguments[1]:void 0)}});var Qx=Ol("String").includes,qx=ue,$x=Dx,eE=Qx,tE=Array.prototype,rE=String.prototype,nE=r((function(e){var t=e.includes;return e===tE||qx(tE,e)&&t===tE.includes?$x:"string"==typeof e||e===rE||qx(rE,e)&&t===rE.includes?eE:t})),iE={exports:{}},oE=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),aE=o,uE=ee,sE=_,cE=oE,lE=Object.isExtensible,fE=aE((function(){lE(1)}))||cE?function(e){return!!uE(e)&&((!cE||"ArrayBuffer"!=sE(e))&&(!lE||lE(e)))}:lE,dE=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),pE=Lr,hE=y,vE=ii,yE=ee,mE=qe,gE=Qt.f,bE=Xi,_E=Fi,wE=fE,SE=dE,kE=!1,RE=nt("meta"),TE=0,xE=function(e){gE(e,RE,{value:{objectID:"O"+TE++,weakData:{}}})},EE=iE.exports={enable:function(){EE.enable=function(){},kE=!0;var e=bE.f,t=hE([].splice),r={};r[RE]=1,e(r).length&&(bE.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===RE){t(n,i,1);break}return n},pE({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:_E.f}))},fastKey:function(e,t){if(!yE(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!mE(e,RE)){if(!wE(e))return"F";if(!t)return"E";xE(e)}return e[RE].objectID},getWeakData:function(e,t){if(!mE(e,RE)){if(!wE(e))return!0;if(!t)return!1;xE(e)}return e[RE].weakData},onFreeze:function(e){return SE&&kE&&wE(e)&&!mE(e,RE)&&xE(e),e}};vE[RE]=!0;var LE=iE.exports,OE=Lr,IE=i,PE=LE,CE=o,ZE=yr,AE=Zd,jE=lp,WE=E,VE=ee,GE=Io,NE=Qt.f,XE=ea.forEach,ME=O,UE=Ko.set,FE=Ko.getterFor,DE=Ni,HE=oo,KE=Eb,YE=Jt,BE=lp,zE=H,JE=Zd,QE=hc,qE=vc,$E=up,eL=O,tL=LE.fastKey,rL=Ko.set,nL=Ko.getterFor,iL={getConstructor:function(e,t,r,n){var i=e((function(e,i){BE(e,o),rL(e,{type:t,index:DE(null),first:void 0,last:void 0,size:0}),eL||(e.size=0),zE(i)||JE(i,e[n],{that:e,AS_ENTRIES:r})})),o=i.prototype,a=nL(t),u=function(e,t,r){var n,i,o=a(e),u=s(e,t);return u?u.value=r:(o.last=u={index:i=tL(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=u),n&&(n.next=u),eL?o.size++:e.size++,"F"!==i&&(o.index[i]=u)),e},s=function(e,t){var r,n=a(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 KE(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,eL?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=s(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),eL?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=YE(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!!s(this,e)}}),KE(o,r?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),eL&&HE(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=nL(t),o=nL(n);QE(e,t,(function(e,t){rL(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)?qE("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,qE(void 0,!0))}),r?"entries":"values",!r,!0),$E(t)}};(function(e,t,r){var n,i=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=i?"set":"add",u=IE[e],s=u&&u.prototype,c={};if(ME&&WE(u)&&(o||s.forEach&&!CE((function(){(new u).entries().next()})))){var l=(n=t((function(t,r){UE(jE(t,l),{type:e,collection:new u}),null!=r&&AE(r,t[a],{that:t,AS_ENTRIES:i})}))).prototype,f=FE(e);XE(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in s)||o&&"clear"==e||ZE(l,e,(function(r,n){var i=f(this).collection;if(!t&&o&&!VE(r))return"get"==e&&void 0;var a=i[e](0===r?0:r,n);return t?this:a}))})),o||NE(l,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(t,e,i,a),PE.enable();GE(n,e,!1,!0),c[e]=n,OE({global:!0,forced:!0},c),o||r.setStrong(n,e,i)})("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),iL);var oL=te.Map,aL=Jt,uL=C,sL=Pe,cL=hp,lL=H,fL=Zd,dL=[].push,pL=function(e){var t,r,n,i,o=arguments.length,a=o>1?arguments[1]:void 0;return cL(this),(t=void 0!==a)&&sL(a),lL(e)?new this:(r=[],t?(n=0,i=aL(a,o>2?arguments[2]:void 0),fL(e,(function(e){uL(dL,r,i(e,n++))}))):fL(e,dL,{that:r}),new this(r))};Lr({target:"Map",stat:!0,forced:!0},{from:pL});var hL=Ru,vL=function(){return new this(hL(arguments))};Lr({target:"Map",stat:!0,forced:!0},{of:vL});var yL=Ee,mL=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")},gL=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},bL=ae("Map"),_L={Map:bL,set:gL("set",2),get:gL("get",1),has:gL("has",1),remove:gL("delete",1),proto:bL.prototype},wL=mL,SL=_L.remove;Lr({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=wL(this),r=!0,n=0,i=arguments.length;n<i;n++)e=SL(t,arguments[n]),r=r&&e;return!!r}});var kL=mL,RL=_L.get,TL=_L.has,xL=_L.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,i=kL(this);return TL(i,e)?(r=RL(i,e),"update"in t&&(r=t.update(r,e,i),xL(i,e,r)),r):(n=t.insert(e,i),xL(i,e,n),n)}});var EL=C,LL=function(e,t,r){for(var n,i,o=r||e.next;!(n=EL(o,e)).done;)if(void 0!==(i=t(n.value)))return i},OL=function(e,t,r){return r?LL(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},IL=Jt,PL=mL,CL=OL;Lr({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=PL(this),r=IL(e,arguments.length>1?arguments[1]:void 0);return!1!==CL(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var ZL=Jt,AL=mL,jL=OL,WL=_L.Map,VL=_L.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=AL(this),r=ZL(e,arguments.length>1?arguments[1]:void 0),n=new WL;return jL(t,(function(e,i){r(e,i,t)&&VL(n,i,e)})),n}});var GL=Jt,NL=mL,XL=OL;Lr({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=NL(this),r=GL(e,arguments.length>1?arguments[1]:void 0),n=XL(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}});var ML=Jt,UL=mL,FL=OL;Lr({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=UL(this),r=ML(e,arguments.length>1?arguments[1]:void 0),n=FL(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var DL=Lr,HL=C,KL=E,YL=Pe,BL=Zd,zL=_L.Map,JL=y([].push);DL({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new(KL(this)?this:zL);YL(t);var n=YL(r.has),i=YL(r.get),o=YL(r.set);return BL(e,(function(e){var a=t(e);HL(n,r,a)?JL(HL(i,r,a),e):HL(o,r,a,[e])})),r}});var QL=function(e,t){return e===t||e!=e&&t!=t},qL=mL,$L=OL;Lr({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===$L(qL(this),(function(t){if(QL(t,e))return!0}),!0)}});var eO=C,tO=Zd,rO=E,nO=Pe,iO=_L.Map;Lr({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(rO(this)?this:iO);nO(t);var n=nO(r.set);return tO(e,(function(e){eO(n,r,t(e),e)})),r}});var oO=mL,aO=OL;Lr({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=aO(oO(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var uO=Jt,sO=mL,cO=OL,lO=_L.Map,fO=_L.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=sO(this),r=uO(e,arguments.length>1?arguments[1]:void 0),n=new lO;return cO(t,(function(e,i){fO(n,r(e,i,t),e)})),n}});var dO=Jt,pO=mL,hO=OL,vO=_L.Map,yO=_L.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=pO(this),r=dO(e,arguments.length>1?arguments[1]:void 0),n=new vO;return hO(t,(function(e,i){yO(n,i,r(e,i,t))})),n}});var mO=mL,gO=Zd,bO=_L.set;Lr({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=mO(this),r=arguments.length,n=0;n<r;)gO(arguments[n++],(function(e,r){bO(t,e,r)}),{AS_ENTRIES:!0});return t}});var _O=Pe,wO=mL,SO=OL,kO=TypeError;Lr({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=wO(this),r=arguments.length<2,n=r?void 0:arguments[1];if(_O(e),SO(t,(function(i,o){r?(r=!1,n=i):n=e(n,i,o,t)})),r)throw kO("Reduce of empty map with no initial value");return n}});var RO=Jt,TO=mL,xO=OL;Lr({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=TO(this),r=RO(e,arguments.length>1?arguments[1]:void 0);return!0===xO(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var EO=Pe,LO=mL,OO=TypeError,IO=_L.get,PO=_L.has,CO=_L.set;Lr({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=LO(this),n=arguments.length;EO(t);var i=PO(r,e);if(!i&&n<3)throw OO("Updating absent value");var o=i?IO(r,e):EO(n>2?arguments[2]:void 0)(e,r);return CO(r,e,t(o,e,r)),r}});var ZO=C,AO=Pe,jO=E,WO=rr,VO=TypeError,GO=function(e,t){var r,n=WO(this),i=AO(n.get),o=AO(n.has),a=AO(n.set),u=arguments.length>2?arguments[2]:void 0;if(!jO(t)&&!jO(u))throw VO("At least one callback required");return ZO(o,n,e)?(r=ZO(i,n,e),jO(t)&&(r=t(r),ZO(a,n,e,r))):jO(u)&&(r=u(),ZO(a,n,e,r)),r};Lr({target:"Map",proto:!0,real:!0,forced:!0},{upsert:GO}),Lr({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:GO});var NO=r(oL);function XO(e,t){var r=Tl(e);if(xl){var n=xl(e);t&&(n=Al(n).call(n,(function(t){return Fl(e,t).enumerable}))),r.push.apply(r,n)}return r}function MO(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?tf(r=XO(Object(i),!0)).call(r,(function(t){zO(e,t,i[t])})):pf?_f(e,pf(i)):tf(n=XO(Object(i))).call(n,(function(t){Ef(e,t,Fl(i,t))}))}return e}function UO(){UO=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Ef||function(e,t,r){e[t]=r.value},i="function"==typeof Lf?Lf:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Ef(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(E){s=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var o=t&&t.prototype instanceof d?t:d,a=If(o.prototype),u=new R(i||[]);return n(a,"_invoke",{value:_(e,r,u)}),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 d(){}function p(){}function h(){}var v={};s(v,o,(function(){return this}));var y=Af&&Af(Af(T([])));y&&y!==t&&r.call(y,o)&&(v=y);var m=h.prototype=d.prototype=If(v);function g(e){var t;tf(t=["next","throw","return"]).call(t,(function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function i(n,o,a,u){var s=l(e[n],e,o);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==Sl(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,u)}),(function(e){i("throw",e,a,u)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,u)}))}u(s.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 u=w(a,r);if(u){if(u===f)continue;return u}}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 s=l(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.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 S(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 R(e){this.tryEntries=[{tryLoc:"root"}],tf(e).call(e,S,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:x}}function x(){return{value:void 0,done:!0}}return p.prototype=h,n(m,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:p,configurable:!0}),p.displayName=s(h,u,"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 jf?jf(e,h):(e.__proto__=h,s(e,u,"GeneratorFunction")),e.prototype=If(m),e},e.awrap=function(e){return{__await:e}},g(b.prototype),s(b.prototype,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Ny);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()}))},g(m),s(m,u,"Generator"),s(m,o,(function(){return this})),s(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return By(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,R.prototype={constructor:R,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,tf(t=this.tryEntries).call(t,k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+pm(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 u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)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 FO(e){return(FO="function"==typeof Lf&&"symbol"==typeof lR?function(e){return typeof e}:function(e){return e&&"function"==typeof Lf&&e.constructor===Lf&&e!==Lf.prototype?"symbol":typeof e})(e)}function DO(e,t,r,n,i,o,a){try{var u=e[o](a),s=u.value}catch(tC){return void r(tC)}u.done?t(s):Ny.resolve(s).then(n,i)}function HO(e){return function(){var t=this,r=arguments;return new Ny((function(n,i){var o=e.apply(t,r);function a(e){DO(o,n,i,a,u,"next",e)}function u(e){DO(o,n,i,a,u,"throw",e)}a(void 0)}))}}function KO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YO(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),Ef(e,sI(n.key),n)}}function BO(e,t,r){return t&&YO(e.prototype,t),r&&YO(e,r),Ef(e,"prototype",{writable:!1}),e}function zO(e,t,r){return(t=sI(t))in e?Ef(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JO(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}}),Ef(e,"prototype",{writable:!1}),t&&qO(e,t)}function QO(e){var t;return(QO=jf?Im(t=Af).call(t):function(e){return e.__proto__||Af(e)})(e)}function qO(e,t){var r;return(qO=jf?Im(r=jf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function $O(){if("undefined"==typeof Reflect||!Hm)return!1;if(Hm.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Hm(Boolean,[],(function(){}))),!0}catch(e){return!1}}function eI(e,t,r){var n;$O()?eI=Im(n=Hm).call(n):eI=function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Im(Function).apply(e,n));return r&&qO(i,r.prototype),i};return eI.apply(null,arguments)}function tI(e){var t="function"==typeof NO?new NO:void 0;return tI=function(e){if(null===e||(r=e,-1===JS(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 eI(e,arguments,QO(this).constructor)}return i.prototype=If(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),qO(i,e)},tI(e)}function rI(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Tl(e);for(n=0;n<o.length;n++)r=o[n],JS(t).call(t,r)>=0||(i[r]=e[r]);return i}(e,t);if(xl){var o=xl(e);for(n=0;n<o.length;n++)r=o[n],JS(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function nI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iI(e){var t=$O();return function(){var r,n=QO(e);if(t){var i=QO(this).constructor;r=Hm(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Sl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nI(e)}(this,r)}}function oI(){var e;"undefined"!=typeof Reflect&&gR?oI=Im(e=gR).call(e):oI=function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=QO(e)););return e}(e,t);if(n){var i=Fl(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}};return oI.apply(this,arguments)}function aI(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 uI(e,t){var r=void 0!==Lf&&bR(e)||e["@@iterator"];if(!r){if(uR(e)||(r=function(e,t){var r;if(e){if("string"==typeof e)return aI(e,t);var n=pm(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?wR(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aI(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,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function sI(e){var t=function(e,t){if("object"!==Sl(e)||null===e)return e;var r=e[Km];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Sl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Sl(t)?t:String(t)}var cI=Pe,lI=ze,fI=D,dI=Nr,pI=TypeError,hI=function(e){return function(t,r,n,i){cI(r);var o=lI(t),a=fI(o),u=dI(o),s=e?u-1:0,c=e?-1:1;if(n<2)for(;;){if(s in a){i=a[s],s+=c;break}if(s+=c,e?s<0:u<=s)throw pI("Reduce of empty array with no initial value")}for(;e?s>=0:u>s;s+=c)s in a&&(i=r(i,a[s],s,o));return i}},vI={left:hI(!1),right:hI(!0)}.left;Lr({target:"Array",proto:!0,forced:!rp&&ve>79&&ve<83||!Hl("reduce")},{reduce:function(e){var t=arguments.length;return vI(this,e,t,t>1?arguments[1]:void 0)}});var yI,mI=Ol("Array").reduce,gI=ue,bI=mI,_I=Array.prototype,wI=r((function(e){var t=e.reduce;return e===_I||gI(_I,e)&&t===_I.reduce?bI:t})),SI="network",kI="network_timeout",RI="network_forbidden",TI="network_notfound",xI="network_range_not_satisfiable",EI="demux",LI="remux",OI="media",II="drm",PI="other",CI="runtime",ZI={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"},AI=(zO(yI={},"manifest",{HLS:1100,DASH:1200}),zO(yI,SI,2100),zO(yI,kI,2101),zO(yI,RI,2103),zO(yI,TI,2104),zO(yI,xI,2116),zO(yI,EI,{FLV:3100,HLS:3200,MP4:3300,FMP4:3400,SIDX:3410}),zO(yI,LI,{FMP4:4100,MP4:4200}),zO(yI,OI,{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}),zO(yI,II,{LICENSE:7100,CUSTOM_LICENSE:7200}),zO(yI,PI,8e3),zO(yI,CI,{NO_CANPLAY_ERROR:9001,BUFFERBREAK_ERROR:9002,WAITING_TIMEOUT_ERROR:9003}),yI),jI=function(e){JO(r,e);var t=iI(r);function r(e,n,i,o,a){var u;return KO(this,r),(u=t.call(this,a||(null==i?void 0:i.message))).errorType=e===kI?SI:e,u.originError=i,u.ext=o,u.errorCode=AI[e][n]||AI[e],u.errorMessage=u.message,u.errorCode||(u.errorType=PI,u.errorCode=AI[u.errorType]),u}return BO(r,null,[{key:"create",value:function(e,t,n,i,o){return e instanceof r?e:(e instanceof Error&&(n=e,e=""),e||(e=PI),new r(e,t,n,i,o))}},{key:"network",value:function(e){var t;return new r(null!=e&&e.isTimeout?kI:SI,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}(tI(Error)),WI=1,VI=2,GI=3,NI=4,XI=["Boolean","Number","String","Undefined","Null","Date","Object"],MI=function(){function e(t,r){KO(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 BO(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,pg(t=[WI]).call(t,o)),e.disabled||(n=console).debug.apply(n,pg(r=[this._prefix,UI()]).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,pg(t=[VI]).call(t,o)),e.disabled||(n=console).log.apply(n,pg(r=[this._prefix,UI()]).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,pg(t=[GI]).call(t,o)),e.disabled||(n=console).warn.apply(n,pg(r=[this._prefix,UI()]).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,pg(t=[NI]).call(t,o)),e.disabled||(n=console).error.apply(n,pg(r=[this._prefix,UI()]).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=aR(n).call(n,(function(e){return DI(e)}));t=this._prefix+UI()+Wx(o)}catch(u){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 UI(){return(new Date).toLocaleString()}function FI(e){var t;if("object"!==FO(e))return e;var r=pm(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 DI(e,t,r){var n;r||(r=1),t||(t=2);var i={};if(!e||"object"!==FO(e))return e;var o=pm(n=Object.prototype.toString.call(e)).call(n,8,-1);if(!nE(XI).call(XI,o))return o;if(!(r>t)){for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r===t?i[a]=FI(e[a]):"object"===FO(e[a])?i[a]=DI(e[a],t,r+1):i[a]=e[a]);return i}}zO(MI,"disabled",!0);var HI="fetch",KI="xhr",YI="arraybuffer",BI="text",zI="json",JI=function(e){JO(r,e);var t=iI(r);function r(e,n,i,o){var a;return KO(this,r),zO(nI(a=t.call(this,o)),"retryCount",0),zO(nI(a),"isTimeout",!1),zO(nI(a),"loaderType",HI),zO(nI(a),"startTime",0),zO(nI(a),"endTime",0),zO(nI(a),"options",{}),a.url=e,a.request=n,a.response=i,a}return BO(r)}(tI(Error)),QI=Object.prototype.toString;function qI(e){if("[object Object]"!==QI.call(e))return!1;var t=Af(e);return null===t||t===Object.prototype}function $I(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 eP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tP(e,t){var r,n;if(e){if(!t)return e;var i,o=Al(r=aR(n=Tl(t)).call(n,(function(e){if(null!=(i=t[e]))return uR(i)?e+="[]":i=[i],aR(i).call(i,(function(t){var r,n;return n=t,"[object Date]"===QI.call(n)?t=t.toISOString():function(e){return null!==e&&"object"===FO(e)}(t)&&(t=Wx(t)),pg(r="".concat(eP(e),"=")).call(r,eP(t))})).join("&")}))).call(r,Boolean).join("&");if(o){var a=JS(e).call(e,"#");-1!==a&&(e=pm(e).call(e,0,a)),e+=(-1===JS(e).call(e,"?")?"?":"&")+o}return e}}function rP(e,t,r,n,i,o,a,u,s,c,l){return i=null!=i?kT(i):null,n=eR(n||"0",10),Ck(n)&&(n=0),{data:e,done:t,options:{range:s,vid:c,index:u,contentLength:n,age:i,startTime:o,firstByteTime:a,endTime:hx(),priOptions:l},response:r}}function nP(e,t){return Math.round(8*e*1e3/t/1024)}var iP="error",oP="core.ttfb",aP="core.loadstart",uP="core.loadresponseheaders",sP="core.loadcomplete",cP="core.loadretry",lP="core.metadataparsed",fP="core.sei",dP="real_time_speed",pP=2097152,hP=function(e){JO(n,e);var t,r=iI(n);function n(){var e;return KO(this,n),zO(nI(e=r.call(this)),"_abortController",null),zO(nI(e),"_timeoutTimer",null),zO(nI(e),"_reader",null),zO(nI(e),"_response",null),zO(nI(e),"_aborted",!1),zO(nI(e),"_index",-1),zO(nI(e),"_range",null),zO(nI(e),"_receivedLength",0),zO(nI(e),"_running",!1),zO(nI(e),"_logger",null),zO(nI(e),"_vid",""),zO(nI(e),"_onProcessMinLen",0),zO(nI(e),"_onCancel",null),zO(nI(e),"_priOptions",null),e}return BO(n,[{key:"load",value:function(e){var t,r=this,n=e.url,i=e.vid,o=e.timeout,a=e.responseType,u=e.onProgress,s=e.index,c=e.onTimeout,l=e.onCancel,f=e.range,d=e.transformResponse,p=e.request,h=e.params,v=e.logger,y=e.method,m=e.headers,g=e.body,b=e.mode,_=e.credentials,w=e.cache,S=e.redirect,k=e.referrer,R=e.referrerPolicy,T=e.onProcessMinLen,x=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=s,this._range=f||[0,0],this._vid=i||n,this._priOptions=x||{};var E={method:y,headers:m,body:g,mode:b,credentials:_,cache:w,redirect:S,referrer:k,referrerPolicy:R,signal:null===(t=this._abortController)||void 0===t?void 0:t.signal},L=!1;clearTimeout(this._timeoutTimer),n=tP(n,h);var O=$I(f);O&&(m=p?p.headers:E.headers=E.headers||(Headers?new Headers:{}),Headers&&m instanceof Headers?m.append("Range",O):m.Range=O),o&&(this._timeoutTimer=Pg((function(){if(L=!0,r.cancel(),c){var e=new JI(n,E,null,"timeout");e.isTimeout=!0,c(e,{index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions})}}),o));var I=hx();return this._logger.debug("[fetch load start], index,",s,",range,",f),new Ny((function(e,t){fetch(p||n,p?void 0:E).then(function(){var i=HO(UO().mark((function i(o){var c,l,p,h;return UO().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(d&&(o=d(o,n)||o),o.ok){i.next=7;break}throw new JI(n,E,o,"bad network response");case 7:if(c=hx(),a!==BI){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!==zI){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(!u){i.next=29;break}return r.resolve=e,r.reject=t,r._loadChunk(o,u,I,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=hx()-I,h=nP(l.byteLength,p),r.emit(dP,{speed:h,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,",s,",range,",f),e(rP(l,!0,o,o.headers.get("Content-Length"),o.headers.get("age"),I,c,s,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 JI?e:new JI(n,E,null,null===(i=e)||void 0===i?void 0:i.message)).startTime=I,e.endTime=hx(),e.isTimeout=L,e.options={index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions},t(e))}))}))}},{key:"cancel",value:(t=HO(UO().mark((function e(){return UO().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(tC){}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 JI(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(pP),this._writeIdx=0);var a,u,s,c=this._reader=e.body.getReader(),l=function(){var o=HO(UO().mark((function o(){var f,d,p,h,v,y,m,g;return UO().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return u=hx(),o.prev=1,o.next=4,c.read();case 4:a=o.sent,s=hx(),o.next=13;break;case 8:return o.prev=8,o.t0=o.catch(1),s=hx(),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(d=(null===(f=i._range)||void 0===f?void 0:f.length)>0?i._range[0]:0,p=d+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:u,endTime:s,st:r,firstByteTime:n,priOptions:i._priOptions},e),o.abrupt("return");case 19:var b;if(h=a.value?a.value.byteLength:0,i._receivedLength+=h,i._logger.debug("【fetchLoader,onProgress call】,task,",i._range,", start,",p,", end,",d+i._receivedLength,", done,",a.done),i._onProcessMinLen>0){if(i._writeIdx+h>=i._onProcessMinLen||a.done)(v=new Uint8Array(i._writeIdx+h)).set(pm(b=i._cache).call(b,0,i._writeIdx),0),h>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(h>0&&i._writeIdx+h<pP)i._cache.set(a.value,i._writeIdx),i._writeIdx+=h,i._logger.debug("【fetchLoader,onProgress cache】,len,",h,", writeIdx,",i._writeIdx);else if(h>0){var _;y=new Uint8Array(i._writeIdx+h+2048),i._logger.debug("【fetchLoader,onProgress extra start】,size,",i._writeIdx+h+2048,", datalen,",h,", writeIdx,",i._writeIdx),y.set(pm(_=i._cache).call(_,0,i._writeIdx),0),h>0&&y.set(a.value,i._writeIdx),i._writeIdx+=h,delete i._cache,i._cache=y,i._logger.debug("【fetchLoader,onProgress extra end】,len,",h,", 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:u,endTime:s,st:r,firstByteTime:n,priOptions:i._priOptions},e),a.done?(m=hx()-r,g=nP(i._receivedLength,m),i.emit(dP,{speed:g,len:i._receivedLength,time:m,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(rP(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}(ZR);var vP=function(e){JO(r,e);var t=iI(r);function r(){var e;return KO(this,r),zO(nI(e=t.call(this)),"_xhr",null),zO(nI(e),"_aborted",!1),zO(nI(e),"_timeoutTimer",null),zO(nI(e),"_range",null),zO(nI(e),"_receivedLength",0),zO(nI(e),"_url",null),zO(nI(e),"_onProgress",null),zO(nI(e),"_index",-1),zO(nI(e),"_headers",null),zO(nI(e),"_currentChunkSizeKB",384),zO(nI(e),"_timeout",null),zO(nI(e),"_xhr",null),zO(nI(e),"_withCredentials",null),zO(nI(e),"_startTime",-1),zO(nI(e),"_loadCompleteResolve",null),zO(nI(e),"_loadCompleteReject",null),zO(nI(e),"_runing",!1),zO(nI(e),"_logger",!1),zO(nI(e),"_vid",""),zO(nI(e),"_responseType",void 0),zO(nI(e),"_credentials",void 0),zO(nI(e),"_method",void 0),zO(nI(e),"_transformResponse",void 0),zO(nI(e),"_firstRtt",void 0),zO(nI(e),"_onCancel",null),zO(nI(e),"_priOptions",null),e}return BO(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=tP(e.url,e.params);var r=hx();return new Ny((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 JI?e:new JI(t._url,t._request)).startTime=r,e.endTime=hx(),e.options={index:t._index,vid:t._vid,priOptions:t._priOptions},e}))}},{key:"_startLoad",value:function(){var e=null;if(this._responseType===YI&&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=hx();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=Im(r=this._onLoad).call(r,this),i.onreadystatechange=Im(n=this._onReadyStatechange).call(n,this),i.onerror=function(e){var r,n,i;t._running=!1;var o=new JI(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 JI(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||{},u=$I(e);if(u&&(a.Range=u),a)tf(o=Tl(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(s){s.options={index:this._index,range:e,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(s)}}},{key:"_onReadyStatechange",value:function(e){2===e.target.readyState&&this._firstRtt<0&&(this._firstRtt=hx())}},{key:"_onLoad",value:function(e){var t,r=e.target.status;if(r<200||r>299){var n=new JI(this._url,null,MO(MO({},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,u=(null===(t=this._range)||void 0===t?void 0:t.length)>0?this._range[0]:0;if(this._responseType===YI){var s,c=new Uint8Array(e.target.response);if(i=u+this._receivedLength,c&&c.byteLength>0){this._receivedLength+=c.byteLength;var l=hx()-this._startTime,f=nP(this._receivedLength,l);this.emit(dP,{speed:f,len:this._receivedLength,time:l,vid:this._vid,index:this._index,range:[i,u+this._receivedLength],priOptions:this._priOptions})}o=c,a=!((null===(s=this._range)||void 0===s?void 0:s.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 ",u+this._receivedLength,",dataLen,",c?c.byteLength:0,",receivedLength",this._receivedLength,",index,",this._index,", done,",a)}else a=!0,o=e.target.response;var d={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&&(d=this._transformResponse(d,this._url)||d),this._onProgress&&this._onProgress(o,a,{index:this._index,vid:this._vid,range:[i,u+this._receivedLength],startTime:this._startTime,endTime:hx(),priOptions:this._priOptions},d),a?(this._runing=!1,this._loadCompleteResolve&&this._loadCompleteResolve(rP(this._onProgress?null:o,a,d,d.headers["content-length"],d.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,oI(QO(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=uI(CT(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()]=pm(o).call(o,1).join(": ")}}catch(a){i.e(a)}finally{i.f()}return n}}],[{key:"isSupported",value:function(){return"undefined"!=typeof XMLHttpRequest}}]),r}(ZR),yP=["retry","retryDelay","onRetryError","transformError"],mP=function(){function e(t,r){var n,i,o;KO(this,e),this.promise=((o=new Ny((function(e,t){n=e,i=t}))).used=!1,o.resolve=function(){return o.used=!0,n.apply(void 0,arguments)},o.reject=function(){return o.used=!0,i.apply(void 0,arguments)},o),this.alive=!!r.onProgress,!r.logger&&(r.logger=new MI("Loader")),this._loaderType=t,this._loader=t===HI&&"undefined"!=typeof fetch?new hP:new vP,this._config=r,this._retryCount=0,this._retryTimer=null,this._canceled=!1,this._retryCheckFunc=r.retryCheckFunc,this._logger=r.logger}var t;return BO(e,[{key:"exec",value:function(){var e=this,t=this._config,r=t.retry,n=t.retryDelay,i=t.onRetryError,o=t.transformError,a=rI(t,yP),u=function(){var t=HO(UO().mark((function t(){var s,c,l;return UO().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._loader.load(a);case 3:s=t.sent,e.promise.resolve(s),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=Pg(u,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 u(),this.promise}},{key:"cancel",value:(t=HO(UO().mark((function e(){return UO().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 gP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Ny((function(t){return Pg(t,e)}))}var bP,_P=function(e){JO(n,e);var t,r=iI(n);function n(e){var t;return KO(this,n),zO(nI(t=r.call(this,e)),"type",HI),zO(nI(t),"_queue",[]),zO(nI(t),"_alive",[]),zO(nI(t),"_currentTask",null),zO(nI(t),"_finnalUrl",""),zO(nI(t),"_config",void 0),t._config=function(e){return MO({loaderType:HI,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:BI,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!==KI&&hP.isSupported()||(t.type=KI),t.log=e.logger,t}return BO(n,[{key:"isFetch",value:function(){return this.type===HI}},{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=cR({},this._config,r)).params&&(r.params=cR({},r.params)),r.headers&&qI(r.headers)&&(r.headers=cR({},r.headers)),r.body&&qI(r.body)&&(r.body=cR({},r.body)),r.transformRequest&&(r=r.transformRequest(r)||r),r.logger=this.log;var n=new mP(this.type,r);return n.loader.on(dP,(function(e){t.emit(dP,e)})),this._queue.push(n),1!==this._queue.length||this._currentTask&&this._currentTask.running||this._processTask(),n.promise}},{key:"cancel",value:(t=HO(UO().mark((function e(){var t;return UO().wrap((function(e){for(var r,n,i;;)switch(e.prev=e.next){case 0:return t=pg(r=aR(n=this._queue).call(n,(function(e){return e.cancel()}))).call(r,aR(i=this._alive).call(i,(function(e){return e.cancel()}))),this._currentTask&&t.push(this._currentTask.cancel()),this._queue=[],this._alive=[],e.next=6,Ny.all(t);case 6:return e.next=8,gP();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=Al(n=e._alive).call(n,(function(t){return t&&t!==e._currentTask})));e._processTask()}))}}}],[{key:"isFetchSupport",value:function(){return hP.isSupported()}}]),n}(ZR),wP="core.rtcstatechange",SP={},kP={},RP={exports:{}},TP=RP.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),t+=null!=e["network-id"]?" network-id %d":"%v",t+=null!=e["network-cost"]?" network-cost %d":"%v"}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){var t="mediaclk:";return t+=null!=e.id?"id=%s %s":"%v%s",t+=null!=e.mediaClockValue?"=%s":"",t+=null!=e.rateNumerator?" rate=%s":"",t+=null!=e.rateDenominator?"/%s":""}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};tf(bP=Tl(TP)).call(bP,(function(e){var t=TP[e];tf(t).call(t,(function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}));var xP=RP.exports;!function(e,t){var r=function(e){return String(Number(e))===e?Number(e):e},n=function(e,t,n){var i=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:i&&!t[e.name]&&(t[e.name]={});var o=e.push?{}:i?t[e.name]:t;!function(e,t,n,i){if(i&&!n)t[i]=r(e[1]);else for(var o=0;o<n.length;o+=1)null!=e[o+1]&&(t[n[o]]=r(e[o+1]))}(n.match(e.reg),o,e.names,e.name),e.push&&t[e.push].push(o)},i=xP,o=Im(t=RegExp.prototype.test).call(t,/^([a-z])=(.*)/);e.parse=function(e){var t,r,a={},u=[],s=a;return tf(t=Al(r=e.split(/(\r\n|\r|\n)/)).call(r,o)).call(t,(function(e){var t=e[0],r=pm(e).call(e,2);"m"===t&&(u.push({rtp:[],fmtp:[]}),s=u[u.length-1]);for(var o=0;o<(i[t]||[]).length;o+=1){var a=i[t][o];if(a.reg.test(r))return n(a,s,r)}})),a.media=u,a};var a=function(e,t){var n=t.split(/=(.+)/,2);return 2===n.length?e[n[0]]=r(n[1]):1===n.length&&t.length>1&&(e[n[0]]=void 0),e};e.parseParams=function(e){var t;return wI(t=e.split(/;\s?/)).call(t,a,{})},e.parseFmtpConfig=e.parseParams,e.parsePayloads=function(e){var t;return aR(t=e.toString().split(" ")).call(t,Number)},e.parseRemoteCandidates=function(e){for(var t,n=[],i=aR(t=e.split(" ")).call(t,r),o=0;o<i.length;o+=3)n.push({component:i[o],ip:i[o+1],port:i[o+2]});return n},e.parseImageAttributes=function(e){var t;return aR(t=e.split(" ")).call(t,(function(e){var t;return wI(t=e.substring(1,e.length-1).split(",")).call(t,a,{})}))},e.parseSimulcastStreamList=function(e){var t;return aR(t=e.split(";")).call(t,(function(e){var t;return aR(t=e.split(",")).call(t,(function(e){var t,n=!1;return"~"!==e[0]?t=r(e):(t=r(e.substring(1,e.length)),n=!0),{scid:t,paused:n}}))}))}}(kP);var EP=xP,LP=/%[sdv%]/g,OP=function(e){var t=1,r=arguments,n=r.length;return e.replace(LP,(function(e){if(t>=n)return e;var i=r[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(i);case"%d":return Number(i);case"%v":return""}}))},IP=function(e,t,r){var n=[e+"="+(t.format instanceof Function?t.format(t.push?r:r[t.name]):t.format)];if(t.names)for(var i=0;i<t.names.length;i+=1){var o=t.names[i];t.name?n.push(r[t.name][o]):n.push(r[t.names[i]])}else n.push(r[t.name]);return OP.apply(null,n)},PP=["v","o","s","i","u","e","p","c","b","t","r","z","a"],CP=["i","c","b","a"],ZP=kP,AP=function(e,t){var r,n;t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),tf(r=e.media).call(r,(function(e){null==e.payloads&&(e.payloads="")}));var i=t.outerOrder||PP,o=t.innerOrder||CP,a=[];return tf(i).call(i,(function(t){var r;tf(r=EP[t]).call(r,(function(r){if(r.name in e&&null!=e[r.name])a.push(IP(t,r,e));else if(r.push in e&&null!=e[r.push]){var n;tf(n=e[r.push]).call(n,(function(e){a.push(IP(t,r,e))}))}}))})),tf(n=e.media).call(n,(function(e){a.push(IP("m",EP.m[0],e)),tf(o).call(o,(function(t){var r;tf(r=EP[t]).call(r,(function(r){if(r.name in e&&null!=e[r.name])a.push(IP(t,r,e));else if(r.push in e&&null!=e[r.push]){var n;tf(n=e[r.push]).call(n,(function(e){a.push(IP(t,r,e))}))}}))}))})),a.join("\r\n")+"\r\n"};function jP(e){return new Ny((function(t){var r;null===(r=e.getStats(null))||void 0===r||r.then((function(e){var r,n,i;t((n=[],i=[],tf(r=e).call(r,(function(e){"inbound-rtp"===e.type&&n.push(e),"remote-outbound-rtp"===e.type&&i.push(e)})),aR(n).call(n,(function(e){var t,n=r.get(e.codecId),o=r.get(e.trackId);return{type:null!==(t=e.mediaType)&&void 0!==t?t:e.kind,inboundRtp:e,remoteOutBoundRtp:ok(i).call(i,(function(t){return t.mediaType===e.mediaType})),codec:n,track:o}}))))}))})).catch((function(){}))}function WP(e){var t,r,n,i,o,a,u,s,c,l,f,d,p,h,v,y,m,g,b,_,w,S,k,R,T,x,E,L,O,I,P,C,Z,A,j,W,V,G=null==e?void 0:Al(e).call(e,(function(e){return"video"===e.type}))[0],N=null==e?void 0:Al(e).call(e,(function(e){return"audio"===e.type}))[0];(G&&G.remoteOutBoundRtp&&(Z={bytesSent:G.remoteOutBoundRtp.bytesSent,packetsSent:G.remoteOutBoundRtp.packetsSent}),N&&N.remoteOutBoundRtp&&(A={bytesSent:N.remoteOutBoundRtp.bytesSent,packetsSent:N.remoteOutBoundRtp.packetsSent}),void 0!==(null==G||null===(t=G.inboundRtp)||void 0===t?void 0:t.jitterBufferDelay))&&(j=(null===(W=G.inboundRtp)||void 0===W?void 0:W.jitterBufferDelay)/(null===(V=G.inboundRtp)||void 0===V?void 0:V.jitterBufferEmittedCount)*1e3);return{video:G?{codec:null===(r=G.codec)||void 0===r?void 0:r.mimeType,payloadType:null===(n=G.codec)||void 0===n?void 0:n.payloadType,sdpFmtpLine:null===(i=G.codec)||void 0===i?void 0:i.sdpFmtpLine,bytesReceived:(null===(o=G.inboundRtp)||void 0===o?void 0:o.bytesReceived)||0,firCount:null===(a=G.inboundRtp)||void 0===a?void 0:a.firCount,pliCount:null===(u=G.inboundRtp)||void 0===u?void 0:u.pliCount,frameHeight:null===(s=G.inboundRtp)||void 0===s?void 0:s.frameHeight,frameWidth:null===(c=G.inboundRtp)||void 0===c?void 0:c.frameWidth,framesDecoded:null===(l=G.inboundRtp)||void 0===l?void 0:l.framesDecoded,framesDropped:null===(f=G.inboundRtp)||void 0===f?void 0:f.framesDropped,framesPerSecond:null===(d=G.inboundRtp)||void 0===d?void 0:d.framesPerSecond,framesReceived:null!==(p=null===(h=G.inboundRtp)||void 0===h?void 0:h.framesReceived)&&void 0!==p?p:null===(v=G.track)||void 0===v?void 0:v.framesReceived,jitter:null===(y=G.inboundRtp)||void 0===y?void 0:y.jitter,jitterBufferDelay:null===(m=G.inboundRtp)||void 0===m?void 0:m.jitterBufferDelay,keyFramesDecoded:null===(g=G.inboundRtp)||void 0===g?void 0:g.keyFramesDecoded,nackCount:null===(b=G.inboundRtp)||void 0===b?void 0:b.nackCount,packetsLost:(null===(_=G.inboundRtp)||void 0===_?void 0:_.packetsLost)||0,packetsReceived:(null===(w=G.inboundRtp)||void 0===w?void 0:w.packetsReceived)||0,averageJitterBufferDelay:j}:void 0,audio:N?{codec:null===(S=N.codec)||void 0===S?void 0:S.mimeType,payloadType:null===(k=N.codec)||void 0===k?void 0:k.payloadType,sdpFmtpLine:null===(R=N.codec)||void 0===R?void 0:R.sdpFmtpLine,bytesReceived:(null===(T=N.inboundRtp)||void 0===T?void 0:T.bytesReceived)||0,audioLevel:null===(x=N.inboundRtp)||void 0===x?void 0:x.audioLevel,jitter:null===(E=N.inboundRtp)||void 0===E?void 0:E.jitter,jitterBufferDelay:null===(L=N.inboundRtp)||void 0===L?void 0:L.jitterBufferDelay,packetsLost:(null===(O=N.inboundRtp)||void 0===O?void 0:O.packetsLost)||0,packetsReceived:(null===(I=N.inboundRtp)||void 0===I?void 0:I.packetsReceived)||0,totalSamplesDuration:null===(P=N.inboundRtp)||void 0===P?void 0:P.totalSamplesDuration,totalSamplesReceived:null===(C=N.inboundRtp)||void 0===C?void 0:C.totalSamplesReceived}:void 0,videoRemote:Z,audioRemote:A}}SP.write=AP,SP.parse=ZP.parse,SP.parseParams=ZP.parseParams,SP.parseFmtpConfig=ZP.parseFmtpConfig,SP.parsePayloads=ZP.parsePayloads,SP.parseRemoteCandidates=ZP.parseRemoteCandidates,SP.parseImageAttributes=ZP.parseImageAttributes,SP.parseSimulcastStreamList=ZP.parseSimulcastStreamList;var VP=function(){function e(t,r){var n=this;qm(this,e),tg(this,"_pc",null),tg(this,"_lastVideoStats",null),tg(this,"_lastRemoteVideoStats",null),tg(this,"_timer",0),tg(this,"_timerInterval",0),tg(this,"_speedQueue",[]),tg(this,"_lostRateQueue",[]),tg(this,"_receivedRateQueue",[]),tg(this,"_currentSpeed",-1),tg(this,"_currentLostRate",-1),tg(this,"_currentReceivedRate",-1),tg(this,"_evaluate",Qm(zm().mark((function e(){var t,r,i,o,a,u,s,c,l,f,d,p,h,v,y,m;return zm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,jP(n._pc).then((function(e){return WP(e)}));case 3:t=e.sent,n._lastVideoStats&&null!=t&&t.video&&(r=t.video,i=r.bytesReceived,o=r.packetsLost,a=r.packetsReceived,u=n._lastVideoStats,s=u.bytesReceived,c=u.packetsLost,l=u.packetsReceived,s&&n._cacheSpeed(8e3*(i-s)/n._timerInterval),f=o-c,(d=a-l)&&f>=0&&n._cacheLostRate(f/(f+d)*1e3/n._timerInterval)),n._lastRemoteVideoStats&&null!=t&&t.videoRemote&&(p=t.video.bytesReceived,h=n._lastVideoStats.bytesReceived,v=null==t?void 0:t.videoRemote,y=v.bytesSent,(m=n._lastRemoteVideoStats.bytesSent)&&y&&y-m>0&&n._cacheReceivedRate((p-h)/(y-m))),n._lastVideoStats=null==t?void 0:t.video,n._lastRemoteVideoStats=null==t?void 0:t.videoRemote,e.next=12;break;case 10:e.prev=10,e.t0=e.catch(0);case 12:case"end":return e.stop()}}),e,null,[[0,10]])})))),this._pc=t,this._timerInterval=r,this.start(r)}return eg(e,[{key:"start",value:function(e){clearInterval(this._timer),this._pc&&(this._timer=aT(this._evaluate,e))}},{key:"getStats",value:function(){return this._speedQueue.length?{speed:kT(this._currentSpeed.toFixed(2)),avgSpeed:kT(this._getAvgSpeed().toFixed(2)),lostRate:kT(this._currentLostRate.toFixed(2)),avgLostRate:kT(this._getAvgLostRate().toFixed(2)),receivedRate:kT(this._currentReceivedRate.toFixed(2)),avgReceivedRate:kT(this._getAvgReceivedRate().toFixed(2))}:{}}},{key:"destroy",value:function(){clearInterval(this._timer),this._pc=null,this._lastVideoStats=null}},{key:"_cacheSpeed",value:function(e){var t;(this._currentSpeed=e,this._speedQueue.length>5)&&(this._speedQueue=pm(t=this._speedQueue).call(t,5));this._speedQueue.push(e)}},{key:"_cacheLostRate",value:function(e){var t;(this._currentLostRate=e,this._lostRateQueue.length>5)&&(this._lostRateQueue=pm(t=this._lostRateQueue).call(t,5));this._lostRateQueue.push(e)}},{key:"_cacheReceivedRate",value:function(e){var t;(this._currentReceivedRate=e,this._receivedRateQueue.length>5)&&(this._receivedRateQueue=pm(t=this._receivedRateQueue).call(t,5));this._receivedRateQueue.push(e)}},{key:"_getAvgSpeed",value:function(){var e;return-1===this._currentSpeed?-1:wI(e=this._speedQueue).call(e,(function(e,t){return e+t}),0)/this._speedQueue.length}},{key:"_getAvgLostRate",value:function(){var e;return-1===this._currentLostRate?-1:wI(e=this._lostRateQueue).call(e,(function(e,t){return e+t}),0)/this._lostRateQueue.length}},{key:"_getAvgReceivedRate",value:function(){var e;return-1===this._currentReceivedRate?-1:wI(e=this._receivedRateQueue).call(e,(function(e,t){return e+t}),0)/this._receivedRateQueue.length}}]),e}();function GP(){return!(!window.RTCPeerConnection||!window.RTCPeerConnection.prototype.addTransceiver)}var NP=function(){return"undefined"!=typeof window&&window.Worker},XP=function(){return"undefined"!=typeof MessageChannel},MP=function(){return"undefined"!=typeof TransformStream&&"undefined"!=typeof RTCRtpSender&&"undefined"!=typeof RTCRtpReceiver&&void 0!==RTCRtpSender.prototype.createEncodedStreams&&void 0!==RTCRtpReceiver.prototype.createEncodedStreams},UP={getNALUnits:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.length-e.position<4)return[];var r=e.position;return 1===e.getInt32(r)||0===e.getInt16(r)&&1===e.getInt8(r+2)?UP.getAnnexbNals(e,t):UP.getAvccNals(e,t)},getAnnexbNals:function(e,t){for(var r=[],n=UP.getHeaderPositionAnnexB(e),i=n.pos,o=i;i<e.length-4;){var a,u,s=new Uint8Array(pm(a=e.buffer).call(a,i,i+n.headerLength));n.pos===e.position&&e.skip(n.headerLength),o=(n=UP.getHeaderPositionAnnexB(e)).pos;var c={header:s,body:new Uint8Array(pm(u=e.buffer).call(u,i+s.byteLength,o)),type:-1};t?UP.analyseH265Nal(c):UP.analyseNal(c),(c.type<=9||t&&c.type<=40)&&0!==c.type&&r.push(c),e.skip(o-e.position),i=o}return r},getAvccNals:function(e,t){for(var r=[];e.position<e.length-4;){var n=e.getInt32(e.position);if(!(e.length-e.position>=n))break;var i,o,a=new Uint8Array(pm(i=e.buffer).call(i,e.position,e.position+4));e.skip(4);var u=new Uint8Array(pm(o=e.buffer).call(o,e.position,e.position+n));e.skip(n);var s={header:a,body:u,type:-1};t?UP.analyseH265Nal(s):UP.analyseNal(s),s.type<=9&&0!==s.type&&r.push(s)}return r},analyseNal:function(e){var t=31&e.body[0];switch(e.type=t,t){case 1:e.ndr=!0;break;case 5:e.idr=!0;break;case 6:e.sei=!0;break;case 7:e.sps=!0;break;case 8:e.pps=!0}},analyseH265Nal:function(e){var t=(126&e.body[0])>>1;switch(e.type=t,t){case 39:case 40:e.sei=!0}},getHeaderPositionAnnexB:function(e){for(var t=e.position,r=0,n=e.length;3!==r&&4!==r&&t<n-4;)0===e.getInt16(t)?1===e.getInt16(t+2)?r=4:1===e.getInt8(t+2)?r=3:t++:t++;return t===n-4&&(0===e.getInt16(t)?1===e.getInt16(t+2)?r=4:t=n:(t++,0===e.getInt16(t)&&1===e.getInt8(t)?r=3:t=n)),{pos:t,headerLength:r}},isH265VideoFrame:function(e){var t,r,n;return nE(t=((null===(r=e.getMetadata)||void 0===r||null===(n=r.call(e))||void 0===n?void 0:n.mimeType)||"").toLowerCase()).call(t,"h265")}},FP=function(){function e(t){qm(this,e),tg(this,"_position",0),this._dataview=new DataView(t)}return eg(e,[{key:"length",get:function(){return this.buffer.byteLength}},{key:"buffer",get:function(){return this._dataview.buffer}},{key:"position",get:function(){return this._position},set:function(e){this._position=e}},{key:"back",value:function(e){this.position-=e}},{key:"getUint8",value:function(e){return this._dataview.getUint8(e)}},{key:"getInt8",value:function(e){return this._dataview.getInt8(e)}},{key:"getInt16",value:function(e){return this._dataview.getInt16(e)}},{key:"getUint16",value:function(e){return this._dataview.getUint16(e)}},{key:"getUint32",value:function(e){return this._dataview.getUint32(e)}},{key:"getInt32",value:function(e){return this._dataview.getInt32(e)}},{key:"skip",value:function(t){for(var r=Math.floor(t/4),n=t%4,i=0;i<r;i++)e.readByte(this,4);n>0&&e.readByte(this,n)}},{key:"readUint8",value:function(){return e.readByte(this,1)}},{key:"readUint16",value:function(){return e.readByte(this,2)}},{key:"readUint24",value:function(){return e.readByte(this,3)}},{key:"readUint32",value:function(){return e.readByte(this,4)}},{key:"readUint64",value:function(){return e.readByte(this,8)}},{key:"readInt8",value:function(){return e.readByte(this,1,!0)}},{key:"readInt16",value:function(){return e.readByte(this,2,!0)}},{key:"readInt32",value:function(){return e.readByte(this,4,!0)}},{key:"writeUint32",value:function(e){return new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e])}}],[{key:"readByte",value:function(e,t,r){var n;switch(t){case 1:n=r?e.getInt8(e.position):e.getUint8(e.position);break;case 2:n=r?e.getInt16(e.position):e.getUint16(e.position);break;case 3:if(r)throw new Error("not supported for readByte 3");n=e.getUint8(e.position)<<16,n|=e.getUint8(e.position+1)<<8,n|=e.getUint8(e.position+2);break;case 4:n=r?e.getInt32(e.position):e.getUint32(e.position);break;case 8:if(r)throw new Error("not supported for readBody 8");n=e.getUint32(e.position)<<32,n|=e.getUint32(e.position+4);break;default:n=""}return e.position+=t,n}}]),e}();function DP(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),Ef(e,(i=n.key,o=void 0,o=function(e,t){if("object"!==Sl(e)||null===e)return e;var r=e[Km];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Sl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===Sl(o)?o:String(o)),n)}var i,o}function HP(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)}var KP=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"parseAnnexB",value:function(e){var t=e.byteLength-1,r=0;do{if(0!==e[t])break;r++,t--}while(t>0);r>=3&&(e=e.subarray(0,t+1));for(var n=e.length,i=2,o=0;null!==e[i]&&void 0!==e[i]&&1!==e[i];)i++;if((o=2+ ++i)>=n)return[];for(var a=[];o<n;)switch(e[o]){case 0:if(0!==e[o-1]){o+=2;break}if(0!==e[o-2]){o++;break}if(o<n-1&&1!==e[o+1]){o++;break}i!==o-2&&a.push(e.subarray(i,o-2));do{o++}while(1!==e[o]&&o<n);o=(i=o+1)+2;break;case 1:if(0!==e[o-1]||0!==e[o-2]){o+=3;break}i!==o-2&&a.push(e.subarray(i,o-2)),o=(i=o+1)+2;break;default:o+=3}return i<n&&a.push(e.subarray(i)),a}},{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=HP(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 u=0;u<16;u++)a+=e[n].toString(16),n++;return{payload:e.subarray(n,n+o),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}}],(r=null)&&DP(t.prototype,r),n&&DP(t,n),Ef(t,"prototype",{writable:!1}),e}();function YP(e){return new TransformStream({transform:function(t,r){var n=UP.isH265VideoFrame(t),i=UP.getNALUnits(new FP(t.data),n);tf(i).call(i,(function(t){if(t.sei){var r=KP.parseSEI(KP.removeEPB(t.body),!1);r&&e({data:r,sei:{code:r.type,content:r.payload}})}})),r.enqueue(t)}})}"undefined"!=typeof self&&"DedicatedWorkerGlobalScope"===self.constructor.name&&self.addEventListener("rtctransform",(function(e){var t=e.transformer,r=t.options.port,n=YP((function(e){r.postMessage(e)}));t.readable.pipeThrough(n).pipeTo(e.transformer.writable)}));var BP="IWZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO3ZhciBlPXtnZXROQUxVbml0czpmdW5jdGlvbih0KXt2YXIgbj1hcmd1bWVudHMubGVuZ3RoPjEmJnZvaWQgMCE9PWFyZ3VtZW50c1sxXSYmYXJndW1lbnRzWzFdO2lmKHQubGVuZ3RoLXQucG9zaXRpb248NClyZXR1cm5bXTt2YXIgcj10LnBvc2l0aW9uO3JldHVybiAxPT09dC5nZXRJbnQzMihyKXx8MD09PXQuZ2V0SW50MTYocikmJjE9PT10LmdldEludDgocisyKT9lLmdldEFubmV4Yk5hbHModCxuKTplLmdldEF2Y2NOYWxzKHQsbil9LGdldEFubmV4Yk5hbHM6ZnVuY3Rpb24odCxuKXtmb3IodmFyIHI9W10saT1lLmdldEhlYWRlclBvc2l0aW9uQW5uZXhCKHQpLGE9aS5wb3Msbz1hO2E8dC5sZW5ndGgtNDspe3ZhciB1PW5ldyBVaW50OEFycmF5KHQuYnVmZmVyLnNsaWNlKGEsYStpLmhlYWRlckxlbmd0aCkpO2kucG9zPT09dC5wb3NpdGlvbiYmdC5za2lwKGkuaGVhZGVyTGVuZ3RoKSxvPShpPWUuZ2V0SGVhZGVyUG9zaXRpb25Bbm5leEIodCkpLnBvczt2YXIgcz17aGVhZGVyOnUsYm9keTpuZXcgVWludDhBcnJheSh0LmJ1ZmZlci5zbGljZShhK3UuYnl0ZUxlbmd0aCxvKSksdHlwZTotMX07bj9lLmFuYWx5c2VIMjY1TmFsKHMpOmUuYW5hbHlzZU5hbChzKSwocy50eXBlPD05fHxuJiZzLnR5cGU8PTQwKSYmMCE9PXMudHlwZSYmci5wdXNoKHMpLHQuc2tpcChvLXQucG9zaXRpb24pLGE9b31yZXR1cm4gcn0sZ2V0QXZjY05hbHM6ZnVuY3Rpb24odCxuKXtmb3IodmFyIHI9W107dC5wb3NpdGlvbjx0Lmxlbmd0aC00Oyl7dmFyIGk9dC5nZXRJbnQzMih0LnBvc2l0aW9uKTtpZighKHQubGVuZ3RoLXQucG9zaXRpb24+PWkpKWJyZWFrO3ZhciBhPW5ldyBVaW50OEFycmF5KHQuYnVmZmVyLnNsaWNlKHQucG9zaXRpb24sdC5wb3NpdGlvbis0KSk7dC5za2lwKDQpO3ZhciBvPW5ldyBVaW50OEFycmF5KHQuYnVmZmVyLnNsaWNlKHQucG9zaXRpb24sdC5wb3NpdGlvbitpKSk7dC5za2lwKGkpO3ZhciB1PXtoZWFkZXI6YSxib2R5Om8sdHlwZTotMX07bj9lLmFuYWx5c2VIMjY1TmFsKHUpOmUuYW5hbHlzZU5hbCh1KSx1LnR5cGU8PTkmJjAhPT11LnR5cGUmJnIucHVzaCh1KX1yZXR1cm4gcn0sYW5hbHlzZU5hbDpmdW5jdGlvbihlKXt2YXIgdD0zMSZlLmJvZHlbMF07c3dpdGNoKGUudHlwZT10LHQpe2Nhc2UgMTplLm5kcj0hMDticmVhaztjYXNlIDU6ZS5pZHI9ITA7YnJlYWs7Y2FzZSA2OmUuc2VpPSEwO2JyZWFrO2Nhc2UgNzplLnNwcz0hMDticmVhaztjYXNlIDg6ZS5wcHM9ITB9fSxhbmFseXNlSDI2NU5hbDpmdW5jdGlvbihlKXt2YXIgdD0oMTI2JmUuYm9keVswXSk+PjE7c3dpdGNoKGUudHlwZT10LHQpe2Nhc2UgMzk6Y2FzZSA0MDplLnNlaT0hMH19LGdldEhlYWRlclBvc2l0aW9uQW5uZXhCOmZ1bmN0aW9uKGUpe2Zvcih2YXIgdD1lLnBvc2l0aW9uLG49MCxyPWUubGVuZ3RoOzMhPT1uJiY0IT09biYmdDxyLTQ7KTA9PT1lLmdldEludDE2KHQpPzE9PT1lLmdldEludDE2KHQrMik/bj00OjE9PT1lLmdldEludDgodCsyKT9uPTM6dCsrOnQrKztyZXR1cm4gdD09PXItNCYmKDA9PT1lLmdldEludDE2KHQpPzE9PT1lLmdldEludDE2KHQrMik/bj00OnQ9cjoodCsrLDA9PT1lLmdldEludDE2KHQpJiYxPT09ZS5nZXRJbnQ4KHQpP249Mzp0PXIpKSx7cG9zOnQsaGVhZGVyTGVuZ3RoOm59fSxpc0gyNjVWaWRlb0ZyYW1lOmZ1bmN0aW9uKGUpe3ZhciB0LG47cmV0dXJuKChudWxsPT09KHQ9ZS5nZXRNZXRhZGF0YSl8fHZvaWQgMD09PXR8fG51bGw9PT0obj10LmNhbGwoZSkpfHx2b2lkIDA9PT1uP3ZvaWQgMDpuLm1pbWVUeXBlKXx8IiIpLnRvTG93ZXJDYXNlKCkuaW5jbHVkZXMoImgyNjUiKX19O2Z1bmN0aW9uIHQoZSl7cmV0dXJuKHQ9ImZ1bmN0aW9uIj09dHlwZW9mIFN5bWJvbCYmInN5bWJvbCI9PXR5cGVvZiBTeW1ib2wuaXRlcmF0b3I/ZnVuY3Rpb24oZSl7cmV0dXJuIHR5cGVvZiBlfTpmdW5jdGlvbihlKXtyZXR1cm4gZSYmImZ1bmN0aW9uIj09dHlwZW9mIFN5bWJvbCYmZS5jb25zdHJ1Y3Rvcj09PVN5bWJvbCYmZSE9PVN5bWJvbC5wcm90b3R5cGU/InN5bWJvbCI6dHlwZW9mIGV9KShlKX1mdW5jdGlvbiBuKGUsdCl7Zm9yKHZhciBuPTA7bjx0Lmxlbmd0aDtuKyspe3ZhciBpPXRbbl07aS5lbnVtZXJhYmxlPWkuZW51bWVyYWJsZXx8ITEsaS5jb25maWd1cmFibGU9ITAsInZhbHVlImluIGkmJihpLndyaXRhYmxlPSEwKSxPYmplY3QuZGVmaW5lUHJvcGVydHkoZSxyKGkua2V5KSxpKX19ZnVuY3Rpb24gcihlKXt2YXIgdD1mdW5jdGlvbihlLHQpe2lmKCJvYmplY3QiIT10eXBlb2YgZXx8bnVsbD09PWUpcmV0dXJuIGU7dmFyIG49ZVtTeW1ib2wudG9QcmltaXRpdmVdO2lmKHZvaWQgMCE9PW4pe3ZhciByPW4uY2FsbChlLHR8fCJkZWZhdWx0Iik7aWYoIm9iamVjdCIhPXR5cGVvZiByKXJldHVybiByO3Rocm93IG5ldyBUeXBlRXJyb3IoIkBAdG9QcmltaXRpdmUgbXVzdCByZXR1cm4gYSBwcmltaXRpdmUgdmFsdWUuIil9cmV0dXJuKCJzdHJpbmciPT09dD9TdHJpbmc6TnVtYmVyKShlKX0oZSwic3RyaW5nIik7cmV0dXJuInN5bWJvbCI9PXR5cGVvZiB0P3Q6U3RyaW5nKHQpfXZhciBpPWZ1bmN0aW9uKCl7ZnVuY3Rpb24gZSh0KXt2YXIgbixpLGE7IWZ1bmN0aW9uKGUsdCl7aWYoIShlIGluc3RhbmNlb2YgdCkpdGhyb3cgbmV3IFR5cGVFcnJvcigiQ2Fubm90IGNhbGwgYSBjbGFzcyBhcyBhIGZ1bmN0aW9uIil9KHRoaXMsZSksbj10aGlzLGE9MCwoaT1yKGk9Il9wb3NpdGlvbiIpKWluIG4/T2JqZWN0LmRlZmluZVByb3BlcnR5KG4saSx7dmFsdWU6YSxlbnVtZXJhYmxlOiEwLGNvbmZpZ3VyYWJsZTohMCx3cml0YWJsZTohMH0pOm5baV09YSx0aGlzLl9kYXRhdmlldz1uZXcgRGF0YVZpZXcodCl9dmFyIHQsaSxhO3JldHVybiB0PWUsYT1be2tleToicmVhZEJ5dGUiLHZhbHVlOmZ1bmN0aW9uKGUsdCxuKXt2YXIgcjtzd2l0Y2godCl7Y2FzZSAxOnI9bj9lLmdldEludDgoZS5wb3NpdGlvbik6ZS5nZXRVaW50OChlLnBvc2l0aW9uKTticmVhaztjYXNlIDI6cj1uP2UuZ2V0SW50MTYoZS5wb3NpdGlvbik6ZS5nZXRVaW50MTYoZS5wb3NpdGlvbik7YnJlYWs7Y2FzZSAzOmlmKG4pdGhyb3cgbmV3IEVycm9yKCJub3Qgc3VwcG9ydGVkIGZvciByZWFkQnl0ZSAzIik7cj1lLmdldFVpbnQ4KGUucG9zaXRpb24pPDwxNixyfD1lLmdldFVpbnQ4KGUucG9zaXRpb24rMSk8PDgscnw9ZS5nZXRVaW50OChlLnBvc2l0aW9uKzIpO2JyZWFrO2Nhc2UgNDpyPW4/ZS5nZXRJbnQzMihlLnBvc2l0aW9uKTplLmdldFVpbnQzMihlLnBvc2l0aW9uKTticmVhaztjYXNlIDg6aWYobil0aHJvdyBuZXcgRXJyb3IoIm5vdCBzdXBwb3J0ZWQgZm9yIHJlYWRCb2R5IDgiKTtyPWUuZ2V0VWludDMyKGUucG9zaXRpb24pPDwzMixyfD1lLmdldFVpbnQzMihlLnBvc2l0aW9uKzQpO2JyZWFrO2RlZmF1bHQ6cj0iIn1yZXR1cm4gZS5wb3NpdGlvbis9dCxyfX1dLChpPVt7a2V5OiJsZW5ndGgiLGdldDpmdW5jdGlvbigpe3JldHVybiB0aGlzLmJ1ZmZlci5ieXRlTGVuZ3RofX0se2tleToiYnVmZmVyIixnZXQ6ZnVuY3Rpb24oKXtyZXR1cm4gdGhpcy5fZGF0YXZpZXcuYnVmZmVyfX0se2tleToicG9zaXRpb24iLGdldDpmdW5jdGlvbigpe3JldHVybiB0aGlzLl9wb3NpdGlvbn0sc2V0OmZ1bmN0aW9uKGUpe3RoaXMuX3Bvc2l0aW9uPWV9fSx7a2V5OiJiYWNrIix2YWx1ZTpmdW5jdGlvbihlKXt0aGlzLnBvc2l0aW9uLT1lfX0se2tleToiZ2V0VWludDgiLHZhbHVlOmZ1bmN0aW9uKGUpe3JldHVybiB0aGlzLl9kYXRhdmlldy5nZXRVaW50OChlKX19LHtrZXk6ImdldEludDgiLHZhbHVlOmZ1bmN0aW9uKGUpe3JldHVybiB0aGlzLl9kYXRhdmlldy5nZXRJbnQ4KGUpfX0se2tleToiZ2V0SW50MTYiLHZhbHVlOmZ1bmN0aW9uKGUpe3JldHVybiB0aGlzLl9kYXRhdmlldy5nZXRJbnQxNihlKX19LHtrZXk6ImdldFVpbnQxNiIsdmFsdWU6ZnVuY3Rpb24oZSl7cmV0dXJuIHRoaXMuX2RhdGF2aWV3LmdldFVpbnQxNihlKX19LHtrZXk6ImdldFVpbnQzMiIsdmFsdWU6ZnVuY3Rpb24oZSl7cmV0dXJuIHRoaXMuX2RhdGF2aWV3LmdldFVpbnQzMihlKX19LHtrZXk6ImdldEludDMyIix2YWx1ZTpmdW5jdGlvbihlKXtyZXR1cm4gdGhpcy5fZGF0YXZpZXcuZ2V0SW50MzIoZSl9fSx7a2V5OiJza2lwIix2YWx1ZTpmdW5jdGlvbih0KXtmb3IodmFyIG49TWF0aC5mbG9vcih0LzQpLHI9dCU0LGk9MDtpPG47aSsrKWUucmVhZEJ5dGUodGhpcyw0KTtyPjAmJmUucmVhZEJ5dGUodGhpcyxyKX19LHtrZXk6InJlYWRVaW50OCIsdmFsdWU6ZnVuY3Rpb24oKXtyZXR1cm4gZS5yZWFkQnl0ZSh0aGlzLDEpfX0se2tleToicmVhZFVpbnQxNiIsdmFsdWU6ZnVuY3Rpb24oKXtyZXR1cm4gZS5yZWFkQnl0ZSh0aGlzLDIpfX0se2tleToicmVhZFVpbnQyNCIsdmFsdWU6ZnVuY3Rpb24oKXtyZXR1cm4gZS5yZWFkQnl0ZSh0aGlzLDMpfX0se2tleToicmVhZFVpbnQzMiIsdmFsdWU6ZnVuY3Rpb24oKXtyZXR1cm4gZS5yZWFkQnl0ZSh0aGlzLDQpfX0se2tleToicmVhZFVpbnQ2NCIsdmFsdWU6ZnVuY3Rpb24oKXtyZXR1cm4gZS5yZWFkQnl0ZSh0aGlzLDgpfX0se2tleToicmVhZEludDgiLHZhbHVlOmZ1bmN0aW9uKCl7cmV0dXJuIGUucmVhZEJ5dGUodGhpcywxLCEwKX19LHtrZXk6InJlYWRJbnQxNiIsdmFsdWU6ZnVuY3Rpb24oKXtyZXR1cm4gZS5yZWFkQnl0ZSh0aGlzLDIsITApfX0se2tleToicmVhZEludDMyIix2YWx1ZTpmdW5jdGlvbigpe3JldHVybiBlLnJlYWRCeXRlKHRoaXMsNCwhMCl9fSx7a2V5OiJ3cml0ZVVpbnQzMiIsdmFsdWU6ZnVuY3Rpb24oZSl7cmV0dXJuIG5ldyBVaW50OEFycmF5KFtlPj4+MjQmMjU1LGU+Pj4xNiYyNTUsZT4+PjgmMjU1LDI1NSZlXSl9fV0pJiZuKHQucHJvdG90eXBlLGkpLGEmJm4odCxhKSxPYmplY3QuZGVmaW5lUHJvcGVydHkodCwicHJvdG90eXBlIix7d3JpdGFibGU6ITF9KSxlfSgpO2Z1bmN0aW9uIGEoZSxuKXtmb3IodmFyIHI9MDtyPG4ubGVuZ3RoO3IrKyl7dmFyIGk9bltyXTtpLmVudW1lcmFibGU9aS5lbnVtZXJhYmxlfHwhMSxpLmNvbmZpZ3VyYWJsZT0hMCwidmFsdWUiaW4gaSYmKGkud3JpdGFibGU9ITApLE9iamVjdC5kZWZpbmVQcm9wZXJ0eShlLChhPWkua2V5LG89dm9pZCAwLG89ZnVuY3Rpb24oZSxuKXtpZigib2JqZWN0IiE9PXQoZSl8fG51bGw9PT1lKXJldHVybiBlO3ZhciByPWVbU3ltYm9sLnRvUHJpbWl0aXZlXTtpZih2b2lkIDAhPT1yKXt2YXIgaT1yLmNhbGwoZSxufHwiZGVmYXVsdCIpO2lmKCJvYmplY3QiIT09dChpKSlyZXR1cm4gaTt0aHJvdyBuZXcgVHlwZUVycm9yKCJAQHRvUHJpbWl0aXZlIG11c3QgcmV0dXJuIGEgcHJpbWl0aXZlIHZhbHVlLiIpfXJldHVybigic3RyaW5nIj09PW4/U3RyaW5nOk51bWJlcikoZSl9KGEsInN0cmluZyIpLCJzeW1ib2wiPT09dChvKT9vOlN0cmluZyhvKSksaSl9dmFyIGEsb31mdW5jdGlvbiBvKGUpe3ZhciB0PWFyZ3VtZW50cy5sZW5ndGg+MSYmdm9pZCAwIT09YXJndW1lbnRzWzFdP2FyZ3VtZW50c1sxXTowO3JldHVybihlW3RdPDwyND4+PjApKyhlW3QrMV08PDE2KSsoZVt0KzJdPDw4KSsoZVt0KzNdfHwwKX12YXIgdT1mdW5jdGlvbigpe2Z1bmN0aW9uIGUoKXshZnVuY3Rpb24oZSx0KXtpZighKGUgaW5zdGFuY2VvZiB0KSl0aHJvdyBuZXcgVHlwZUVycm9yKCJDYW5ub3QgY2FsbCBhIGNsYXNzIGFzIGEgZnVuY3Rpb24iKX0odGhpcyxlKX12YXIgdCxuLHI7cmV0dXJuIHQ9ZSxyPVt7a2V5OiJwYXJzZUFubmV4QiIsdmFsdWU6ZnVuY3Rpb24oZSl7dmFyIHQ9ZS5ieXRlTGVuZ3RoLTEsbj0wO2Rve2lmKDAhPT1lW3RdKWJyZWFrO24rKyx0LS19d2hpbGUodD4wKTtuPj0zJiYoZT1lLnN1YmFycmF5KDAsdCsxKSk7Zm9yKHZhciByPWUubGVuZ3RoLGk9MixhPTA7bnVsbCE9PWVbaV0mJnZvaWQgMCE9PWVbaV0mJjEhPT1lW2ldOylpKys7aWYoKGE9MisgKytpKT49cilyZXR1cm5bXTtmb3IodmFyIG89W107YTxyOylzd2l0Y2goZVthXSl7Y2FzZSAwOmlmKDAhPT1lW2EtMV0pe2ErPTI7YnJlYWt9aWYoMCE9PWVbYS0yXSl7YSsrO2JyZWFrfWlmKGE8ci0xJiYxIT09ZVthKzFdKXthKys7YnJlYWt9aSE9PWEtMiYmby5wdXNoKGUuc3ViYXJyYXkoaSxhLTIpKTtkb3thKyt9d2hpbGUoMSE9PWVbYV0mJmE8cik7YT0oaT1hKzEpKzI7YnJlYWs7Y2FzZSAxOmlmKDAhPT1lW2EtMV18fDAhPT1lW2EtMl0pe2ErPTM7YnJlYWt9aSE9PWEtMiYmby5wdXNoKGUuc3ViYXJyYXkoaSxhLTIpKSxhPShpPWErMSkrMjticmVhaztkZWZhdWx0OmErPTN9cmV0dXJuIGk8ciYmby5wdXNoKGUuc3ViYXJyYXkoaSkpLG99fSx7a2V5OiJwYXJzZUF2Y0MiLHZhbHVlOmZ1bmN0aW9uKGUpe3ZhciB0PWFyZ3VtZW50cy5sZW5ndGg+MSYmdm9pZCAwIT09YXJndW1lbnRzWzFdP2FyZ3VtZW50c1sxXTo0O2lmKCEoZS5sZW5ndGg8NCkpe2Zvcih2YXIgbixyPWUubGVuZ3RoLGk9W10sYT0wO2ErdDxyOylpZihuPW8oZSxhKSwzPT09dCYmKG4+Pj49OCksYSs9dCxuKXtpZihhK24+cilicmVhaztpLnB1c2goZS5zdWJhcnJheShhLGErbikpLGErPW59cmV0dXJuIGl9fX0se2tleToicGFyc2VTRUkiLHZhbHVlOmZ1bmN0aW9uKGUsdCl7Zm9yKHZhciBuPWUubGVuZ3RoLHI9dD8yOjEsaT0wLGE9MCxvPSIiOzI1NT09PWVbcl07KWkrPTI1NSxyKys7Zm9yKGkrPWVbcisrXTsyNTU9PT1lW3JdOylhKz0yNTUscisrO2lmKGErPWVbcisrXSw1PT09aSYmbj5yKzE2KWZvcih2YXIgdT0wO3U8MTY7dSsrKW8rPWVbcl0udG9TdHJpbmcoMTYpLHIrKztyZXR1cm57cGF5bG9hZDplLnN1YmFycmF5KHIscithKSx0eXBlOmksc2l6ZTphLHV1aWQ6b319fSx7a2V5OiJyZW1vdmVFUEIiLHZhbHVlOmZ1bmN0aW9uKGUpe2Zvcih2YXIgdD1lLmJ5dGVMZW5ndGgsbj1bXSxyPTE7cjx0LTI7KTA9PT1lW3JdJiYwPT09ZVtyKzFdJiYzPT09ZVtyKzJdPyhuLnB1c2gocisyKSxyKz0yKTpyKys7aWYoIW4ubGVuZ3RoKXJldHVybiBlO3ZhciBpPXQtbi5sZW5ndGgsYT1uZXcgVWludDhBcnJheShpKSxvPTA7Zm9yKHI9MDtyPGk7bysrLHIrKylvPT09blswXSYmKG8rKyxuLnNoaWZ0KCkpLGFbcl09ZVtvXTtyZXR1cm4gYX19XSwobj1udWxsKSYmYSh0LnByb3RvdHlwZSxuKSxyJiZhKHQsciksT2JqZWN0LmRlZmluZVByb3BlcnR5KHQsInByb3RvdHlwZSIse3dyaXRhYmxlOiExfSksZX0oKTsidW5kZWZpbmVkIiE9dHlwZW9mIHNlbGYmJiJEZWRpY2F0ZWRXb3JrZXJHbG9iYWxTY29wZSI9PT1zZWxmLmNvbnN0cnVjdG9yLm5hbWUmJnNlbGYuYWRkRXZlbnRMaXN0ZW5lcigicnRjdHJhbnNmb3JtIiwoZnVuY3Rpb24odCl7dmFyIG4scj10LnRyYW5zZm9ybWVyLGE9ci5vcHRpb25zLnBvcnQsbz0obj1mdW5jdGlvbihlKXthLnBvc3RNZXNzYWdlKGUpfSxuZXcgVHJhbnNmb3JtU3RyZWFtKHt0cmFuc2Zvcm06ZnVuY3Rpb24odCxyKXt2YXIgYT1lLmlzSDI2NVZpZGVvRnJhbWUodCk7ZS5nZXROQUxVbml0cyhuZXcgaSh0LmRhdGEpLGEpLmZvckVhY2goKGZ1bmN0aW9uKGUpe2lmKGUuc2VpKXt2YXIgdD11LnBhcnNlU0VJKHUucmVtb3ZlRVBCKGUuYm9keSksITEpO3QmJm4oe2RhdGE6dCxzZWk6e2NvZGU6dC50eXBlLGNvbnRlbnQ6dC5wYXlsb2FkfX0pfX0pKSxyLmVucXVldWUodCl9fSkpO3IucmVhZGFibGUucGlwZVRocm91Z2gobykucGlwZVRvKHQudHJhbnNmb3JtZXIud3JpdGFibGUpfSkpfSgpOwo=",zP="undefined"!=typeof window&&window.Blob&&new Blob([atob(BP)],{type:"text/javascript;charset=utf-8"});function JP(){var e=zP&&(XS||window.webkitURL).createObjectURL(zP);try{return e?new Worker(e,{}):new Worker("data:application/javascript;base64,"+BP,{type:"module"})}finally{e&&(XS||window.webkitURL).revokeObjectURL(e)}}var QP=new MI("rts"),qP=function(e){rg(i,e);var t,r,n=ag(i);function i(e){var t;return qm(this,i),tg(og(t=n.call(this)),"_url",""),tg(og(t),"_pc",null),tg(og(t),"_audioTransceicer",null),tg(og(t),"_videoTransceicer",null),tg(og(t),"_mediaStream",null),tg(og(t),"_lastMediaStream",null),tg(og(t),"_media",null),tg(og(t),"_opts",null),tg(og(t),"_loader",null),tg(og(t),"_networkEvaluate",null),tg(og(t),"_retry",0),tg(og(t),"_waitingTimer",0),tg(og(t),"_rctConnectStartTs",0),tg(og(t),"_isReplacing",!1),tg(og(t),"_checkStatsErrorTimer",null),tg(og(t),"_checkStatsError",Qm(zm().mark((function e(){return zm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t._checkStatsErrorTimer&&clearTimeout(t._checkStatsErrorTimer),t._checkStatsErrorTimer=Pg(Qm(zm().mark((function e(){var r,n,i;return zm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getStatsSnapshoot();case 2:(r=e.sent).video&&(n=r.video,i=n.framesDecoded,n.bytesReceived?i||t._emitError(jI.create(OI,ZI.MEDIA_ERR_DECODE,{message:"rts decode error"})):t._emitError(jI.create(OI,ZI.MEDIA_ERR_DECODE,{message:"rts receive empty"})));case 4:case"end":return e.stop()}}),e)}))),t._opts.checkStatsErrorDelay);case 2:case"end":return e.stop()}}),e)})))),tg(og(t),"_onTrack",(function(e){QP.log("addTrack: ",e.track,e.streams),t["_".concat(e.track.kind)]=e.track})),tg(og(t),"_mockWaitingByTimeupdate",(function(){var e,r;"connected"!==(null===(e=t._pc)||void 0===e?void 0:e.connectionState)&&"connected"!==(null===(r=t._pc)||void 0===r?void 0:r.iceConnectionState)||(clearTimeout(t._waitingTimer),t._waitingTimer=Pg((function(){var e;null!==(e=t._media)&&void 0!==e&&e.paused||t.emit("waiting")}),t._opts.stallInterval))})),tg(og(t),"_onLoadedData",(function(){QP.log("loadeddata emit"),t.getStatsSnapshoot().then((function(e){t.emit(lP,{type:"video",elapsed:hx()-t._rctConnectStartTs,meta:e.video}),t.emit(lP,{type:"audio",elapsed:hx()-t._rctConnectStartTs,meta:e.audio})}))})),tg(og(t),"_setDelay",(function(e){if(e)try{var r=t._videoTransceicer.receiver,n=t._audioTransceicer.receiver;if("playoutDelayHint"in r&&"playoutDelayHint"in n)return t._audioTransceicer.receiver.playoutDelayHint=e,void(t._videoTransceicer.receiver.playoutDelayHint=e);if("jitterBufferDelayHint"in r&&"jitterBufferDelayHint"in n)return t._audioTransceicer.receiver.jitterBufferDelayHint=e,void(t._videoTransceicer.receiver.jitterBufferDelayHint=e);"jitterBufferTarget"in r&&"jitterBufferTarget"in n&&(t._audioTransceicer.receiver.jitterBufferTarget=1e3*e,t._videoTransceicer.receiver.jitterBufferTarget=1e3*e)}catch(tC){QP.error("set delay error")}})),tg(og(t),"_onLoaderRetry",(function(e,r){t.emit(cP,{error:jI.network(e),retryTime:r})})),t._opts=function(e){return Bm({retryCount:0,retryDelay:1e3,loadTimeout:5e3,stallInterval:400,networkEvaluateInterval:1e3,delayHint:0,seamlesslyReload:!1,enableSei:!1,enableOriginSdpLogger:!1,checkStatsErrorDelay:5e3},e)}(e),t._media=t._opts.media,t._loader=new _P(Bm(Bm({},e.fetchOptions),{},{responseType:"json",method:"POST",retry:t._opts.retryCount,retryDelay:t._opts.retryDelay,timeout:t._opts.loadTimeout,onRetryError:t._onLoaderRetry,logger:QP})),t._retry=t._opts.retryCount,t._bindMediaEvent(),t._opts.mediaStream&&t._opts.seamlesslyReload&&(t._lastMediaStream=t._opts.mediaStream),t}return eg(i,[{key:"pc",get:function(){return this._pc}},{key:"audioTrack",get:function(){return this._audio}},{key:"videoTack",get:function(){return this._video}},{key:"loader",get:function(){return this._loader}},{key:"networkStats",get:function(){var e;return null===(e=this._networkEvaluate)||void 0===e?void 0:e.getStats()}},{key:"getStats",value:function(){return jP(this._pc)}},{key:"getStatsSnapshoot",value:function(){return this.getStats().then((function(e){return WP(e)}))}},{key:"load",value:(r=Qm(zm().mark((function e(t){var r,n,i=this;return zm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._disconnect(),this._url=t,this._retry=this._opts.retryCount,(r=this._pc)&&r.close(),n=MP(),e.prev=6,this._pc=new RTCPeerConnection({encodedInsertableStreams:!(!n||!this._opts.enableSei)||void 0}),this._bindRTCEvents(),e.next=11,this._connect(t);case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(6),Pg((function(){return i._emitError(jI.create(PI,null,e.t0))}));case 16:case"end":return e.stop()}}),e,this,[[6,13]])}))),function(e){return r.apply(this,arguments)})},{key:"switchURL",value:function(e){this.load(e||this._url)}},{key:"_bindRTCEvents",value:function(){var e=this,t=this._pc;t.addEventListener("track",this._onTrack),t.addEventListener("connectionstatechange",(function(){if(QP.warn("onconnectionstatechange:",t.connectionState),e.emit(wP,{state:t.connectionState,url:e._url}),"disconnected"!==t.connectionState&&"failed"!==t.connectionState||e.emit("waiting"),"failed"===t.connectionState){if(0===e._retry)return void e._emitError(jI.network(new Error("rtc connect failed")));e._retry--,e.load(e._url)}"connected"===t.connectionState&&(e._handleMediaStream(),e.emit(oP,{url:e._url,responseUrl:e._url,elapsed:hx()-e._rctConnectStartTs}),e._checkStatsError())}))}},{key:"_handleMediaStream",value:function(){var e=this;if(this._lastMediaStream){var t,r=this._lastMediaStream.getVideoTracks()[0],n=this._lastMediaStream.getAudioTracks()[0];r&&this._lastMediaStream.removeTrack(r),n&&this._lastMediaStream.removeTrack(n),this._mediaStream=this._lastMediaStream,this._audio&&this._mediaStream.addTrack(this._audio),this._video&&this._mediaStream.addTrack(this._video),this._isReplacing=!0,this._media.pause(),null===(t=this._media.play())||void 0===t||t.finally((function(){e._isReplacing=!1}))}else{this._mediaStream=new MediaStream,this._audio&&this._mediaStream.addTrack(this._audio),this._video&&this._mediaStream.addTrack(this._video),this._media.srcObject=this._mediaStream;var i=this._media.play();i&&i.catch&&i.catch((function(e){}))}}},{key:"initVideoEncodedTransform",value:function(){var e=this;if(this._videoTransceicer&&this._videoTransceicer.receiver){var t=this._videoTransceicer.receiver;if(MP()){var r=t.createEncodedStreams(),n=r.readable,i=r.writable;n.pipeThrough(YP((function(t){e.emit(fP,t)}))).pipeTo(i)}else if("undefined"!=typeof TransformStream&&"undefined"!=typeof RTCRtpSender&&"undefined"!=typeof RTCRtpReceiver&&"undefined"!=typeof RTCRtpScriptTransform&&"transform"in RTCRtpSender.prototype&&"transform"in RTCRtpReceiver.prototype&&NP()&&XP()){var o=new JP,a=new MessageChannel;this._videoTransceicer.receiver.transform=new RTCRtpScriptTransform(o,{port:a.port2},[a.port2]),a.port1.onmessage=function(t){e.emit(fP,t.data)}}}else console.log("no receiver found when trying to bind encodedTransform")}},{key:"initAudioEncodedTransform",value:function(){if(this._audioTransceicer&&this._audioTransceicer.receiver)if(MP()){var e=this._audioTransceicer.receiver.createEncodedStreams(),t=e.readable,r=e.writable;t.pipeThrough(new TransformStream({transform:function(e,t){e.data.byteLength<=1e3?t.enqueue(e):QP.log("too large audio frame",e.data.byteLength)}})).pipeTo(r)}else QP.warn("legacy EncodedTransform is not supported");else QP.warn("no receiver found when trying to bind encodedTransform")}},{key:"_bindMediaEvent",value:function(){this._media.addEventListener("timeupdate",this._mockWaitingByTimeupdate),this._media.addEventListener("loadeddata",this._onLoadedData)}},{key:"_connect",value:(t=Qm(zm().mark((function e(){var t,r,n,i,o,a,u,s,c,l,f,d,p,h,v,y;return zm().wrap((function(e){for(var m,g,b,_;;)switch(e.prev=e.next){case 0:if(!(t=this._pc).addTransceiver){e.next=11;break}return this._audioTransceicer=t.addTransceiver("audio",{direction:"recvonly"}),this._videoTransceicer=t.addTransceiver("video",{direction:"recvonly"}),this._setDelay(this._opts.delayHint),this._opts.enableSei&&(this.initVideoEncodedTransform(),this.initAudioEncodedTransform()),e.next=8,t.createOffer();case 8:r=e.sent,e.next=14;break;case 11:return e.next=13,t.createOffer({iceRestart:!0,offerToReceiveAudio:!0,offerToReceiveVideo:!0});case 13:r=e.sent;case 14:return QP.log("local offer"),QP.log(r.sdp),n=SP.parse(r.sdp),tf(m=Al(g=n.media).call(g,(function(e){return"audio"===e.type}))).call(m,(function(e){var t,r,n,i,o=null===(n=Al(t=e.rtp).call(t,(function(e){return"opus"===e.codec}))[0])||void 0===n?void 0:n.payload;o&&(tf(r=e.fmtp).call(r,(function(e){e.payload===o&&(e.config="minptime=10;stereo=1;useinbandfec=1")})),null===(i=e.rtcpFb)||void 0===i||i.push({payload:o,type:"nack"}))})),r.sdp=SP.write(n),QP.log("local offer modified:\n",r.sdp),e.next=22,t.setLocalDescription(r);case 22:return i=this._url,e.prev=23,this._opts.preProcessUrl&&(i=this._opts.preProcessUrl(i).url),this._loader.finnalUrl=i,l=/_?session_id=([^&$]+)/.exec(i),f=l?l[1]:hx()+"666",this.emit(aP,{url:i,offersdp:null!==(o=this._opts)&&void 0!==o&&o.enableOriginSdpLogger?r.sdp:void 0,sessionId:f}),d=hx(),e.next=32,this._loader.load(i,{body:Wx({sessionId:f,version:"1.0-html",localSdp:r})});case 32:if(p=e.sent,this.emit(uP,{headers:p.response.headers}),404!==(null==(h=null==p?void 0:p.data)?void 0:h.code)&&403!==(null==h?void 0:h.code)){e.next=40;break}return(v=jI.create(404===h.code?TI:RI,null,h)).errorType=SI,this._emitError(v),e.abrupt("return");case 40:if(200===(null==h?void 0:h.code)){e.next=42;break}throw new Error(pg(b="code: ".concat(null==h?void 0:h.code,", message:")).call(b,null==h?void 0:h.message));case 42:return QP.log("answer:"),QP.log(null===(a=h.remoteSdp)||void 0===a?void 0:a.sdp),y=SP.parse(h.remoteSdp.sdp),this.emit(sP,{url:i,elapsed:hx()-d,answersdp:null!==(u=this._opts)&&void 0!==u&&u.enableOriginSdpLogger?null==h||null===(s=h.remoteSdp)||void 0===s?void 0:s.sdp:void 0,parsedSdp:null==y||null===(c=y.media)||void 0===c?void 0:aR(c).call(c,(function(e){return{candidates:e.candidates,rtp:e.rtp,type:e.type}}))}),tf(_=y.media).call(_,(function(e){e.fingerprint.hash=e.fingerprint.hash.toUpperCase()})),h.remoteSdp.sdp=SP.write(y),QP.log("answer modified:\n",h.remoteSdp.sdp),this._rctConnectStartTs=hx(),e.next=52,this._pc.setRemoteDescription(h.remoteSdp);case 52:this._networkEvaluate=new VP(t,this._opts.networkEvaluateInterval),e.next=58;break;case 55:e.prev=55,e.t0=e.catch(23),this._emitError(jI.network(e.t0));case 58:case"end":return e.stop()}}),e,this,[[23,55]])}))),function(){return t.apply(this,arguments)})},{key:"_disconnect",value:function(){var e,t;null===(e=this._loader)||void 0===e||e.cancel(),null===(t=this._networkEvaluate)||void 0===t||t.destroy(),clearTimeout(this._checkStatsErrorTimer),this._audioTransceicer=null,this._videoTransceicer=null,this._mediaStream=null,this._networkEvaluate=null}},{key:"_emitError",value:function(e){this.emit(iP,e),clearTimeout(this._checkStatsErrorTimer),this._pc&&this._pc.close()}},{key:"destroy",value:function(e){var t;this._disconnect(),null===(t=this._media)||void 0===t||t.removeEventListener("timeupdate",this._mockWaitingByTimeupdate),this._media&&!e&&(this._media.srcObject=null),this._pc&&this._pc.close(),this._loader=null,this._media=null,this._pc=null,this._opts=null}}],[{key:"enableLogger",value:function(){MI.enable()}},{key:"disableLogger",value:function(){MI.disable()}}]),i}(ZR);try{localStorage.getItem("xgd")?qP.enableLogger():qP.disableLogger()}catch(tC){}var $P=function(e){rg(n,e);var t,r=ag(n);function n(){var e,t;qm(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return tg(og(t=r.call.apply(r,pg(e=[this]).call(e,o))),"_rts",null),tg(og(t),"_mediaStream",null),tg(og(t),"_disconnectTimer",void 0),tg(og(t),"_rtsOpts",null),tg(og(t),"_onPause",(function(){t._disconnectTimer||(t._disconnectTimer=Pg((function(){t._closeAfterPause(),t._clearDisconnectTimer()}),1e3*t.config.disconnectTime))})),tg(og(t),"_reInit",(function(){var e;t._clearDisconnectTimer(),null!==(e=t._rts)&&void 0!==e&&e._pc||(t._init(),t._bindRtsEvents())})),tg(og(t),"_init",(function(){var e;null===(e=t._rts)||void 0===e||e.destroy();var r=t.player.config,n=r.rts||{};t._rtsOpts=n,t._rts=new qP(Bm({media:t.player.video,mediaStream:t._mediaStream,preProcessUrl:function(e,r){var n,i;return(null===(n=(i=t.player).preProcessUrl)||void 0===n?void 0:n.call(i,e,r))||{url:e,ext:r}}},n)),t._rts.load(r.url)})),tg(og(t),"_onSwitchURL",(function(e){e&&(t.player.config.url=e),t._rts?t._rts.switchURL(e):t._reInit()})),tg(og(t),"destroy",(function(){var e;t.player.switchURL=t._originSwitchFn,t._clearDisconnectTimer(),null===(e=t._rts)||void 0===e||e.destroy(),t._rts=null})),t}return eg(n,[{key:"pc",get:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.pc}},{key:"videoTrack",get:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.videoTack}},{key:"audioTrack",get:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.audioTrack}},{key:"core",get:function(){return this._rts}},{key:"loader",get:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.loader}},{key:"version",get:function(){return"0.2.1-alpha.32"}},{key:"beforePlayerInit",value:function(){var e,t,r,n,i=this;(this._init(),this._originSwitchFn)||(this._originSwitchFn=Im(n=this.player.switchURL).call(n,this.player));this.player.switchURL=this._onSwitchURL,null===(e=this.player)||void 0===e||e.useHooks("replay",this._onSwitchURL),this.on("urlchange",this._onSwitchURL),this.on("destroy",this.destroy),void 0!==(null===(t=this.player.config)||void 0===t||null===(r=t.rts)||void 0===r?void 0:r.disconnectTime)&&(this.on("pause",(function(){var e;null!==(e=i._rts)&&void 0!==e&&e._isReplacing||i._onPause()})),this.on("play",(function(){var e;null!==(e=i._rts)&&void 0!==e&&e._isReplacing||i._reInit()}))),this._bindRtsEvents();try{Cx.defineGetterOrSetter(this.player,{__url:{get:function(){try{return XS.createObjectURL(new MediaSource)}catch(r){var e,t;null!==(e=i.player)&&void 0!==e&&null!==(t=e.video)&&void 0!==t&&t.srcObject||(i.player.video.srcObject=new MediaStream)}}}})}catch(o){}}},{key:"getStats",value:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.getStats()}},{key:"getStatsSnapshoot",value:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.getStatsSnapshoot()}},{key:"getNetWorkInfo",value:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.networkStats}},{key:"_clearDisconnectTimer",value:function(){clearTimeout(this._disconnectTimer),this._disconnectTimer=void 0}},{key:"_closeAfterPause",value:function(){var e,t,r;if(null!==(e=this._rts)&&void 0!==e&&e._pc){var n;if(null!==(t=this.config)&&void 0!==t&&t.seamlesslyReload)this._mediaStream=null===(n=this._rts)||void 0===n?void 0:n._mediaStream;null===(r=this._rts)||void 0===r||r.destroy(!0),this._rts=null}}},{key:"_bindRtsEvents",value:function(){this._transErrorEvent(),this._transCoreEvent(aP),this._transCoreEvent(sP),this._transCoreEvent(oP),this._transCoreEvent(uP),this._transCoreEvent(cP),this._transCoreEvent(lP),this._transCoreEvent(fP),this._transCoreEvent(wP)}},{key:"_transErrorEvent",value:function(){var e=this;this._rts.on(iP,(function(t){if(e.player){var r=new Tx(e.player,t),n=e._rtsOpts,i=n.backupConstruct,o=n.backupURL;if(o){var a,u=e.player;u.emit("core_event",Bm(Bm({},{url:u.config.url,code:r.errorCode,message:r.message,httpCode:r.httpCode}),{},{eventName:"core.degrade"})),u.emit("degrade",{url:u.config.url,code:r.errorCode,message:r.message,httpCode:r.httpCode}),u.unRegisterPlugin("rts"),u.switchURL=e._originSwitchFn,e._rts=null,u.rts=null,null!==(a=u.video)&&void 0!==a&&a.srcObject&&(u.video.srcObject=null),u.config.url=o,i?u.registerPlugin(i).beforePlayerInit():u.video.src=o}else e.player.emit("error",r)}})),this._rts.on("waiting",(function(){var t;null===(t=e.player)||void 0===t||t.emit("waiting")}))}},{key:"_transCoreEvent",value:function(e){var t=this;this._rts.on(e,(function(r){t.player&&t.player.emit("core_event",Bm(Bm({},r),{},{eventName:e}))}))}}],[{key:"pluginName",get:function(){return"rts"}},{key:"isSupported",value:function(){return GP()}},{key:"getCapacity",value:function(){return function(){if(!GP())return Ny.reject("RTCPeerConnection no support");var e;try{(e=new RTCPeerConnection).addTransceiver("video",{direction:"recvonly"}),e.addTransceiver("audio",{direction:"recvonly"})}catch(t){return Ny.reject(null==t?void 0:t.message)}return e.createOffer().then((function(t){var r,n,i,o;QP.log(t.sdp);var a=SP.parse(t.sdp),u=null===(r=a.media)||void 0===r?void 0:Al(r).call(r,(function(e){return"video"===e.type}))[0],s=null===(n=a.media)||void 0===n?void 0:Al(n).call(n,(function(e){return"audio"===e.type}))[0],c=null==u||null===(i=u.rtp)||void 0===i?void 0:Al(i).call(i,(function(e){return"VP8"===e.codec||"VP9"===e.codec||"H264"===e.codec})),l=null==s||null===(o=s.rtp)||void 0===o?void 0:Al(o).call(o,(function(e){return"opus"===e.codec})),f=null==u?void 0:u.fmtp,d=null==s?void 0:s.fmtp;return f&&aR(c).call(c,(function(e){var t;e.config=null===(t=Al(f).call(f,(function(t){return t.payload===e.payload}))[0])||void 0===t?void 0:t.config})),d&&aR(l).call(l,(function(e){var t;e.config=null===(t=Al(d).call(d,(function(t){return t.payload===e.payload}))[0])||void 0===t?void 0:t.config})),e.close(),{video:c,audio:l}}))}()}},{key:"isSupportedH264",value:(t=Qm(zm().mark((function e(t){var r,i,o,a,u;return zm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.getCapacity();case 3:if(i=e.sent,o=null===(r=i.video)||void 0===r?void 0:Al(r).call(r,(function(e){var r;return"H264"===e.codec&&(!t||-1!==JS(r=e.config).call(r,t))})).length){e.next=10;break}return e.next=8,n.getCapacity();case 8:u=e.sent,o=null===(a=u.video)||void 0===a?void 0:Al(a).call(a,(function(e){var r;return"H264"===e.codec&&(!t||-1!==JS(r=e.config).call(r,t))})).length;case 10:return e.abrupt("return",!!o);case 13:return e.prev=13,e.t0=e.catch(0),e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e,null,[[0,13]])}))),function(e){return t.apply(this,arguments)})}]),n}(Cx),eC=window.VePlayer.DynamicModule;VePlayer.registerPlugin(eC.PluginRtm,{RtmPlugin:$P}),e.RtmPlugin=$P}));
|