@volcengine/veplayer-plugin 2.4.2-rc.0 → 2.4.2-rc.1

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.
@@ -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},o=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")(),i=function(e){try{return!!e()}catch(t){return!0}},a=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),s=a,u=Function.prototype,c=u.apply,l=u.call,f="object"==typeof Reflect&&Reflect.apply||(s?l.bind(c):function(){return l.apply(c,arguments)}),d=a,h=Function.prototype,p=h.call,v=d&&h.bind.bind(p,p),g=d?v:function(e){return function(){return p.apply(e,arguments)}},y=g,m=y({}.toString),_=y("".slice),b=function(e){return _(m(e),8,-1)},w=b,S=g,x=function(e){if("Function"===w(e))return S(e)},k="object"==typeof document&&document.all,T={all:k,IS_HTMLDDA:void 0===k&&void 0!==k},R=T.all,O=T.IS_HTMLDDA?function(e){return"function"==typeof e||e===R}:function(e){return"function"==typeof e},E={},L=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),P=a,A=Function.prototype.call,C=P?A.bind(A):function(){return A.apply(A,arguments)},j={},I={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,F=M&&!I.call({1:2},1);j.f=F?function(e){var t=M(this,e);return!!t&&t.enumerable}:I;var N,U,D=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},B=i,H=b,z=Object,q=g("".split),G=B((function(){return!z("z").propertyIsEnumerable(0)}))?function(e){return"String"==H(e)?q(e,""):z(e)}:z,V=function(e){return null==e},$=V,Q=TypeError,Y=function(e){if($(e))throw Q("Can't call method on "+e);return e},W=G,K=Y,X=function(e){return W(K(e))},J=O,Z=T.all,ee=T.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:J(e)||e===Z}:function(e){return"object"==typeof e?null!==e:J(e)},te={},re=te,ne=o,oe=O,ie=function(e){return oe(e)?e:void 0},ae=function(e,t){return arguments.length<2?ie(re[e])||ie(ne[e]):re[e]&&re[e][t]||ne[e]&&ne[e][t]},se=g({}.isPrototypeOf),ue="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ce=o,le=ue,fe=ce.process,de=ce.Deno,he=fe&&fe.versions||de&&de.version,pe=he&&he.v8;pe&&(U=(N=pe.split("."))[0]>0&&N[0]<4?1:+(N[0]+N[1])),!U&&le&&(!(N=le.match(/Edge\/(\d+)/))||N[1]>=74)&&(N=le.match(/Chrome\/(\d+)/))&&(U=+N[1]);var ve=U,ge=ve,ye=i,me=o.String,_e=!!Object.getOwnPropertySymbols&&!ye((function(){var e=Symbol();return!me(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ge&&ge<41})),be=_e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,we=ae,Se=O,xe=se,ke=Object,Te=be?function(e){return"symbol"==typeof e}:function(e){var t=we("Symbol");return Se(t)&&xe(t.prototype,ke(e))},Re=String,Oe=function(e){try{return Re(e)}catch(t){return"Object"}},Ee=O,Le=Oe,Pe=TypeError,Ae=function(e){if(Ee(e))return e;throw Pe(Le(e)+" is not a function")},Ce=Ae,je=V,Ie=function(e,t){var r=e[t];return je(r)?void 0:Ce(r)},Me=C,Fe=O,Ne=ee,Ue=TypeError,De={exports:{}},Be=o,He=Object.defineProperty,ze=function(e,t){try{He(Be,e,{value:t,configurable:!0,writable:!0})}catch(r){Be[e]=t}return t},qe="__core-js_shared__",Ge=o[qe]||ze(qe,{}),Ve=Ge;(De.exports=function(e,t){return Ve[e]||(Ve[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 $e=De.exports,Qe=Y,Ye=Object,We=function(e){return Ye(Qe(e))},Ke=We,Xe=g({}.hasOwnProperty),Je=Object.hasOwn||function(e,t){return Xe(Ke(e),t)},Ze=g,et=0,tt=Math.random(),rt=Ze(1..toString),nt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rt(++et+tt,36)},ot=$e,it=Je,at=nt,st=_e,ut=be,ct=o.Symbol,lt=ot("wks"),ft=ut?ct.for||ct:ct&&ct.withoutSetter||at,dt=function(e){return it(lt,e)||(lt[e]=st&&it(ct,e)?ct[e]:ft("Symbol."+e)),lt[e]},ht=C,pt=ee,vt=Te,gt=Ie,yt=function(e,t){var r,n;if("string"===t&&Fe(r=e.toString)&&!Ne(n=Me(r,e)))return n;if(Fe(r=e.valueOf)&&!Ne(n=Me(r,e)))return n;if("string"!==t&&Fe(r=e.toString)&&!Ne(n=Me(r,e)))return n;throw Ue("Can't convert object to primitive value")},mt=TypeError,_t=dt("toPrimitive"),bt=function(e,t){if(!pt(e)||vt(e))return e;var r,n=gt(e,_t);if(n){if(void 0===t&&(t="default"),r=ht(n,e,t),!pt(r)||vt(r))return r;throw mt("Can't convert object to primitive value")}return void 0===t&&(t="number"),yt(e,t)},wt=Te,St=function(e){var t=bt(e,"string");return wt(t)?t:t+""},xt=ee,kt=o.document,Tt=xt(kt)&&xt(kt.createElement),Rt=function(e){return Tt?kt.createElement(e):{}},Ot=Rt,Et=!L&&!i((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),Lt=L,Pt=C,At=j,Ct=D,jt=X,It=St,Mt=Je,Ft=Et,Nt=Object.getOwnPropertyDescriptor;E.f=Lt?Nt:function(e,t){if(e=jt(e),t=It(t),Ft)try{return Nt(e,t)}catch(r){}if(Mt(e,t))return Ct(!Pt(At.f,e,t),e[t])};var Ut=i,Dt=O,Bt=/#|\.prototype\./,Ht=function(e,t){var r=qt[zt(e)];return r==Vt||r!=Gt&&(Dt(t)?Ut(t):!!t)},zt=Ht.normalize=function(e){return String(e).replace(Bt,".").toLowerCase()},qt=Ht.data={},Gt=Ht.NATIVE="N",Vt=Ht.POLYFILL="P",$t=Ht,Qt=Ae,Yt=a,Wt=x(x.bind),Kt=function(e,t){return Qt(e),void 0===t?e:Yt?Wt(e,t):function(){return e.apply(t,arguments)}},Xt={},Jt=L&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Zt=ee,er=String,tr=TypeError,rr=function(e){if(Zt(e))return e;throw tr(er(e)+" is not an object")},nr=L,or=Et,ir=Jt,ar=rr,sr=St,ur=TypeError,cr=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,fr="enumerable",dr="configurable",hr="writable";Xt.f=nr?ir?function(e,t,r){if(ar(e),t=sr(t),ar(r),"function"==typeof e&&"prototype"===t&&"value"in r&&hr in r&&!r[hr]){var n=lr(e,t);n&&n[hr]&&(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=sr(t),ar(r),or)try{return cr(e,t,r)}catch(n){}if("get"in r||"set"in r)throw ur("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var pr=Xt,vr=D,gr=L?function(e,t,r){return pr.f(e,t,vr(1,r))}:function(e,t,r){return e[t]=r,e},yr=o,mr=f,_r=x,br=O,wr=E.f,Sr=$t,xr=te,kr=Kt,Tr=gr,Rr=Je,Or=function(e){var t=function(r,n,o){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,o)}return mr(e,this,arguments)};return t.prototype=e.prototype,t},Er=function(e,t){var r,n,o,i,a,s,u,c,l,f=e.target,d=e.global,h=e.stat,p=e.proto,v=d?yr:h?yr[f]:(yr[f]||{}).prototype,g=d?xr:xr[f]||Tr(xr,f,{})[f],y=g.prototype;for(i in t)n=!(r=Sr(d?i:f+(h?".":"#")+i,e.forced))&&v&&Rr(v,i),s=g[i],n&&(u=e.dontCallGetSet?(l=wr(v,i))&&l.value:v[i]),a=n&&u?u:t[i],n&&typeof s==typeof a||(c=e.bind&&n?kr(a,yr):e.wrap&&n?Or(a):p&&br(a)?_r(a):a,(e.sham||a&&a.sham||s&&s.sham)&&Tr(c,"sham",!0),Tr(g,i,c),p&&(Rr(xr,o=f+"Prototype")||Tr(xr,o,{}),Tr(xr[o],i,a),e.real&&y&&(r||!y[i])&&Tr(y,i,a)))},Lr=b,Pr=Array.isArray||function(e){return"Array"==Lr(e)},Ar=Math.ceil,Cr=Math.floor,jr=Math.trunc||function(e){var t=+e;return(t>0?Cr:Ar)(t)},Ir=function(e){var t=+e;return t!=t||0===t?0:jr(t)},Mr=Ir,Fr=Math.min,Nr=function(e){return e>0?Fr(Mr(e),9007199254740991):0},Ur=Nr,Dr=function(e){return Ur(e.length)},Br=TypeError,Hr=function(e){if(e>9007199254740991)throw Br("Maximum allowed index exceeded");return e},zr=St,qr=Xt,Gr=D,Vr=function(e,t,r){var n=zr(t);n in e?qr.f(e,n,Gr(0,r)):e[n]=r},$r={};$r[dt("toStringTag")]="z";var Qr="[object z]"===String($r),Yr=Qr,Wr=O,Kr=b,Xr=dt("toStringTag"),Jr=Object,Zr="Arguments"==Kr(function(){return arguments}()),en=Yr?Kr:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=Jr(e),Xr))?r:Zr?Kr(t):"Object"==(n=Kr(t))&&Wr(t.callee)?"Arguments":n},tn=O,rn=Ge,nn=g(Function.toString);tn(rn.inspectSource)||(rn.inspectSource=function(e){return nn(e)});var on=rn.inspectSource,an=g,sn=i,un=O,cn=en,ln=on,fn=function(){},dn=[],hn=ae("Reflect","construct"),pn=/^\s*(?:class|function)\b/,vn=an(pn.exec),gn=!pn.exec(fn),yn=function(e){if(!un(e))return!1;try{return hn(fn,dn,e),!0}catch(t){return!1}},mn=function(e){if(!un(e))return!1;switch(cn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return gn||!!vn(pn,ln(e))}catch(t){return!0}};mn.sham=!0;var _n=!hn||sn((function(){var e;return yn(yn.call)||!yn(Object)||!yn((function(){e=!0}))||e}))?mn:yn,bn=Pr,wn=_n,Sn=ee,xn=dt("species"),kn=Array,Tn=function(e){var t;return bn(e)&&(t=e.constructor,(wn(t)&&(t===kn||bn(t.prototype))||Sn(t)&&null===(t=t[xn]))&&(t=void 0)),void 0===t?kn:t},Rn=function(e,t){return new(Tn(e))(0===t?0:t)},On=i,En=ve,Ln=dt("species"),Pn=function(e){return En>=51||!On((function(){var t=[];return(t.constructor={})[Ln]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},An=Er,Cn=i,jn=Pr,In=ee,Mn=We,Fn=Dr,Nn=Hr,Un=Vr,Dn=Rn,Bn=Pn,Hn=ve,zn=dt("isConcatSpreadable"),qn=Hn>=51||!Cn((function(){var e=[];return e[zn]=!1,e.concat()[0]!==e})),Gn=function(e){if(!In(e))return!1;var t=e[zn];return void 0!==t?!!t:jn(e)};An({target:"Array",proto:!0,arity:1,forced:!qn||!Bn("concat")},{concat:function(e){var t,r,n,o,i,a=Mn(this),s=Dn(a,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(Gn(i=-1===t?a:arguments[t]))for(o=Fn(i),Nn(u+o),r=0;r<o;r++,u++)r in i&&Un(s,u,i[r]);else Nn(u+1),Un(s,u++,i);return s.length=u,s}});var Vn=en,$n=String,Qn=function(e){if("Symbol"===Vn(e))throw TypeError("Cannot convert a Symbol value to a string");return $n(e)},Yn={},Wn=Ir,Kn=Math.max,Xn=Math.min,Jn=function(e,t){var r=Wn(e);return r<0?Kn(r+t,0):Xn(r,t)},Zn=X,eo=Jn,to=Dr,ro=function(e){return function(t,r,n){var o,i=Zn(t),a=to(i),s=eo(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},no={includes:ro(!0),indexOf:ro(!1)},oo={},io=Je,ao=X,so=no.indexOf,uo=oo,co=g([].push),lo=function(e,t){var r,n=ao(e),o=0,i=[];for(r in n)!io(uo,r)&&io(n,r)&&co(i,r);for(;t.length>o;)io(n,r=t[o++])&&(~so(i,r)||co(i,r));return i},fo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ho=lo,po=fo,vo=Object.keys||function(e){return ho(e,po)},go=L,yo=Jt,mo=Xt,_o=rr,bo=X,wo=vo;Yn.f=go&&!yo?Object.defineProperties:function(e,t){_o(e);for(var r,n=bo(t),o=wo(t),i=o.length,a=0;i>a;)mo.f(e,r=o[a++],n[r]);return e};var So,xo=ae("document","documentElement"),ko=nt,To=$e("keys"),Ro=function(e){return To[e]||(To[e]=ko(e))},Oo=rr,Eo=Yn,Lo=fo,Po=oo,Ao=xo,Co=Rt,jo="prototype",Io="script",Mo=Ro("IE_PROTO"),Fo=function(){},No=function(e){return"<"+Io+">"+e+"</"+Io+">"},Uo=function(e){e.write(No("")),e.close();var t=e.parentWindow.Object;return e=null,t},Do=function(){try{So=new ActiveXObject("htmlfile")}catch(o){}var e,t,r;Do="undefined"!=typeof document?document.domain&&So?Uo(So):(t=Co("iframe"),r="java"+Io+":",t.style.display="none",Ao.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(No("document.F=Object")),e.close(),e.F):Uo(So);for(var n=Lo.length;n--;)delete Do[jo][Lo[n]];return Do()};Po[Mo]=!0;var Bo=Object.create||function(e,t){var r;return null!==e?(Fo[jo]=Oo(e),r=new Fo,Fo[jo]=null,r[Mo]=e):r=Do(),void 0===t?r:Eo.f(r,t)},Ho={},zo=lo,qo=fo.concat("length","prototype");Ho.f=Object.getOwnPropertyNames||function(e){return zo(e,qo)};var Go={},Vo=Jn,$o=Dr,Qo=Vr,Yo=Array,Wo=Math.max,Ko=function(e,t,r){for(var n=$o(e),o=Vo(t,n),i=Vo(void 0===r?n:r,n),a=Yo(Wo(i-o,0)),s=0;o<i;o++,s++)Qo(a,s,e[o]);return a.length=s,a},Xo=b,Jo=X,Zo=Ho.f,ei=Ko,ti="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Go.f=function(e){return ti&&"Window"==Xo(e)?function(e){try{return Zo(e)}catch(t){return ei(ti)}}(e):Zo(Jo(e))};var ri={};ri.f=Object.getOwnPropertySymbols;var ni=gr,oi=function(e,t,r,n){return n&&n.enumerable?e[t]=r:ni(e,t,r),e},ii=Xt,ai=function(e,t,r){return ii.f(e,t,r)},si={},ui=dt;si.f=ui;var ci,li,fi,di=te,hi=Je,pi=si,vi=Xt.f,gi=function(e){var t=di.Symbol||(di.Symbol={});hi(t,e)||vi(t,e,{value:pi.f(e)})},yi=C,mi=ae,_i=dt,bi=oi,wi=function(){var e=mi("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=_i("toPrimitive");t&&!t[n]&&bi(t,n,(function(e){return yi(r,this)}),{arity:1})},Si=en,xi=Qr?{}.toString:function(){return"[object "+Si(this)+"]"},ki=Qr,Ti=Xt.f,Ri=gr,Oi=Je,Ei=xi,Li=dt("toStringTag"),Pi=function(e,t,r,n){if(e){var o=r?e:e.prototype;Oi(o,Li)||Ti(o,Li,{configurable:!0,value:t}),n&&!ki&&Ri(o,"toString",Ei)}},Ai=O,Ci=o.WeakMap,ji=Ai(Ci)&&/native code/.test(String(Ci)),Ii=o,Mi=ee,Fi=gr,Ni=Je,Ui=Ge,Di=Ro,Bi=oo,Hi="Object already initialized",zi=Ii.TypeError,qi=Ii.WeakMap;if(ji||Ui.state){var Gi=Ui.state||(Ui.state=new qi);Gi.get=Gi.get,Gi.has=Gi.has,Gi.set=Gi.set,ci=function(e,t){if(Gi.has(e))throw zi(Hi);return t.facade=e,Gi.set(e,t),t},li=function(e){return Gi.get(e)||{}},fi=function(e){return Gi.has(e)}}else{var Vi=Di("state");Bi[Vi]=!0,ci=function(e,t){if(Ni(e,Vi))throw zi(Hi);return t.facade=e,Fi(e,Vi,t),t},li=function(e){return Ni(e,Vi)?e[Vi]:{}},fi=function(e){return Ni(e,Vi)}}var $i={set:ci,get:li,has:fi,enforce:function(e){return fi(e)?li(e):ci(e,{})},getterFor:function(e){return function(t){var r;if(!Mi(t)||(r=li(t)).type!==e)throw zi("Incompatible receiver, "+e+" required");return r}}},Qi=Kt,Yi=G,Wi=We,Ki=Dr,Xi=Rn,Ji=g([].push),Zi=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(u,c,l,f){for(var d,h,p=Wi(u),v=Yi(p),g=Qi(c,l),y=Ki(v),m=0,_=f||Xi,b=t?_(u,y):r||a?_(u,0):void 0;y>m;m++)if((s||m in v)&&(h=g(d=v[m],m,p),e))if(t)b[m]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Ji(b,d)}else switch(e){case 4:return!1;case 7:Ji(b,d)}return i?-1:n||o?o:b}},ea={forEach:Zi(0),map:Zi(1),filter:Zi(2),some:Zi(3),every:Zi(4),find:Zi(5),findIndex:Zi(6),filterReject:Zi(7)},ta=Er,ra=o,na=C,oa=g,ia=L,aa=_e,sa=i,ua=Je,ca=se,la=rr,fa=X,da=St,ha=Qn,pa=D,va=Bo,ga=vo,ya=Ho,ma=Go,_a=ri,ba=E,wa=Xt,Sa=Yn,xa=j,ka=oi,Ta=ai,Ra=$e,Oa=oo,Ea=nt,La=dt,Pa=si,Aa=gi,Ca=wi,ja=Pi,Ia=$i,Ma=ea.forEach,Fa=Ro("hidden"),Na="Symbol",Ua="prototype",Da=Ia.set,Ba=Ia.getterFor(Na),Ha=Object[Ua],za=ra.Symbol,qa=za&&za[Ua],Ga=ra.TypeError,Va=ra.QObject,$a=ba.f,Qa=wa.f,Ya=ma.f,Wa=xa.f,Ka=oa([].push),Xa=Ra("symbols"),Ja=Ra("op-symbols"),Za=Ra("wks"),es=!Va||!Va[Ua]||!Va[Ua].findChild,ts=ia&&sa((function(){return 7!=va(Qa({},"a",{get:function(){return Qa(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=$a(Ha,t);n&&delete Ha[t],Qa(e,t,r),n&&e!==Ha&&Qa(Ha,t,n)}:Qa,rs=function(e,t){var r=Xa[e]=va(qa);return Da(r,{type:Na,tag:e,description:t}),ia||(r.description=t),r},ns=function(e,t,r){e===Ha&&ns(Ja,t,r),la(e);var n=da(t);return la(r),ua(Xa,n)?(r.enumerable?(ua(e,Fa)&&e[Fa][n]&&(e[Fa][n]=!1),r=va(r,{enumerable:pa(0,!1)})):(ua(e,Fa)||Qa(e,Fa,pa(1,{})),e[Fa][n]=!0),ts(e,n,r)):Qa(e,n,r)},os=function(e,t){la(e);var r=fa(t),n=ga(r).concat(us(r));return Ma(n,(function(t){ia&&!na(is,r,t)||ns(e,t,r[t])})),e},is=function(e){var t=da(e),r=na(Wa,this,t);return!(this===Ha&&ua(Xa,t)&&!ua(Ja,t))&&(!(r||!ua(this,t)||!ua(Xa,t)||ua(this,Fa)&&this[Fa][t])||r)},as=function(e,t){var r=fa(e),n=da(t);if(r!==Ha||!ua(Xa,n)||ua(Ja,n)){var o=$a(r,n);return!o||!ua(Xa,n)||ua(r,Fa)&&r[Fa][n]||(o.enumerable=!0),o}},ss=function(e){var t=Ya(fa(e)),r=[];return Ma(t,(function(e){ua(Xa,e)||ua(Oa,e)||Ka(r,e)})),r},us=function(e){var t=e===Ha,r=Ya(t?Ja:fa(e)),n=[];return Ma(r,(function(e){!ua(Xa,e)||t&&!ua(Ha,e)||Ka(n,Xa[e])})),n};aa||(za=function(){if(ca(qa,this))throw Ga("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?ha(arguments[0]):void 0,t=Ea(e),r=function(e){this===Ha&&na(r,Ja,e),ua(this,Fa)&&ua(this[Fa],t)&&(this[Fa][t]=!1),ts(this,t,pa(1,e))};return ia&&es&&ts(Ha,t,{configurable:!0,set:r}),rs(t,e)},ka(qa=za[Ua],"toString",(function(){return Ba(this).tag})),ka(za,"withoutSetter",(function(e){return rs(Ea(e),e)})),xa.f=is,wa.f=ns,Sa.f=os,ba.f=as,ya.f=ma.f=ss,_a.f=us,Pa.f=function(e){return rs(La(e),e)},ia&&Ta(qa,"description",{configurable:!0,get:function(){return Ba(this).description}})),ta({global:!0,constructor:!0,wrap:!0,forced:!aa,sham:!aa},{Symbol:za}),Ma(ga(Za),(function(e){Aa(e)})),ta({target:Na,stat:!0,forced:!aa},{useSetter:function(){es=!0},useSimple:function(){es=!1}}),ta({target:"Object",stat:!0,forced:!aa,sham:!ia},{create:function(e,t){return void 0===t?va(e):os(va(e),t)},defineProperty:ns,defineProperties:os,getOwnPropertyDescriptor:as}),ta({target:"Object",stat:!0,forced:!aa},{getOwnPropertyNames:ss}),Ca(),ja(za,Na),Oa[Fa]=!0;var cs=_e&&!!Symbol.for&&!!Symbol.keyFor,ls=Er,fs=ae,ds=Je,hs=Qn,ps=$e,vs=cs,gs=ps("string-to-symbol-registry"),ys=ps("symbol-to-string-registry");ls({target:"Symbol",stat:!0,forced:!vs},{for:function(e){var t=hs(e);if(ds(gs,t))return gs[t];var r=fs("Symbol")(t);return gs[t]=r,ys[r]=t,r}});var ms=Er,_s=Je,bs=Te,ws=Oe,Ss=cs,xs=$e("symbol-to-string-registry");ms({target:"Symbol",stat:!0,forced:!Ss},{keyFor:function(e){if(!bs(e))throw TypeError(ws(e)+" is not a symbol");if(_s(xs,e))return xs[e]}});var ks=g([].slice),Ts=Pr,Rs=O,Os=b,Es=Qn,Ls=g([].push),Ps=Er,As=ae,Cs=f,js=C,Is=g,Ms=i,Fs=O,Ns=Te,Us=ks,Ds=function(e){if(Rs(e))return e;if(Ts(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?Ls(r,o):"number"!=typeof o&&"Number"!=Os(o)&&"String"!=Os(o)||Ls(r,Es(o))}var i=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(Ts(this))return t;for(var n=0;n<i;n++)if(r[n]===e)return t}}},Bs=_e,Hs=String,zs=As("JSON","stringify"),qs=Is(/./.exec),Gs=Is("".charAt),Vs=Is("".charCodeAt),$s=Is("".replace),Qs=Is(1..toString),Ys=/[\uD800-\uDFFF]/g,Ws=/^[\uD800-\uDBFF]$/,Ks=/^[\uDC00-\uDFFF]$/,Xs=!Bs||Ms((function(){var e=As("Symbol")();return"[null]"!=zs([e])||"{}"!=zs({a:e})||"{}"!=zs(Object(e))})),Js=Ms((function(){return'"\\udf06\\ud834"'!==zs("\udf06\ud834")||'"\\udead"'!==zs("\udead")})),Zs=function(e,t){var r=Us(arguments),n=Ds(t);if(Fs(n)||void 0!==e&&!Ns(e))return r[1]=function(e,t){if(Fs(n)&&(t=js(n,this,Hs(e),t)),!Ns(t))return t},Cs(zs,null,r)},eu=function(e,t,r){var n=Gs(r,t-1),o=Gs(r,t+1);return qs(Ws,e)&&!qs(Ks,o)||qs(Ks,e)&&!qs(Ws,n)?"\\u"+Qs(Vs(e,0),16):e};zs&&Ps({target:"JSON",stat:!0,arity:3,forced:Xs||Js},{stringify:function(e,t,r){var n=Us(arguments),o=Cs(Xs?Zs:zs,null,n);return Js&&"string"==typeof o?$s(o,Ys,eu):o}});var tu=ri,ru=We;Er({target:"Object",stat:!0,forced:!_e||i((function(){tu.f(1)}))},{getOwnPropertySymbols:function(e){var t=tu.f;return t?t(ru(e)):[]}}),gi("asyncIterator"),gi("hasInstance"),gi("isConcatSpreadable"),gi("iterator"),gi("match"),gi("matchAll"),gi("replace"),gi("search"),gi("species"),gi("split");var nu=wi;gi("toPrimitive"),nu();var ou=ae,iu=Pi;gi("toStringTag"),iu(ou("Symbol"),"Symbol"),gi("unscopables"),Pi(o.JSON,"JSON",!0);var au,su,uu,cu=te.Symbol,lu={},fu=L,du=Je,hu=Function.prototype,pu=fu&&Object.getOwnPropertyDescriptor,vu=du(hu,"name"),gu={EXISTS:vu,PROPER:vu&&"something"===function(){}.name,CONFIGURABLE:vu&&(!fu||fu&&pu(hu,"name").configurable)},yu=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),mu=Je,_u=O,bu=We,wu=yu,Su=Ro("IE_PROTO"),xu=Object,ku=xu.prototype,Tu=wu?xu.getPrototypeOf:function(e){var t=bu(e);if(mu(t,Su))return t[Su];var r=t.constructor;return _u(r)&&t instanceof r?r.prototype:t instanceof xu?ku:null},Ru=i,Ou=O,Eu=ee,Lu=Bo,Pu=Tu,Au=oi,Cu=dt("iterator"),ju=!1;[].keys&&("next"in(uu=[].keys())?(su=Pu(Pu(uu)))!==Object.prototype&&(au=su):ju=!0);var Iu=!Eu(au)||Ru((function(){var e={};return au[Cu].call(e)!==e}));Ou((au=Iu?{}:Lu(au))[Cu])||Au(au,Cu,(function(){return this}));var Mu={IteratorPrototype:au,BUGGY_SAFARI_ITERATORS:ju},Fu=Mu.IteratorPrototype,Nu=Bo,Uu=D,Du=Pi,Bu=lu,Hu=function(){return this},zu=function(e,t,r,n){var o=t+" Iterator";return e.prototype=Nu(Fu,{next:Uu(+!n,r)}),Du(e,o,!1,!0),Bu[o]=Hu,e},qu=g,Gu=Ae,Vu=O,$u=String,Qu=TypeError,Yu=function(e,t,r){try{return qu(Gu(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},Wu=rr,Ku=function(e){if("object"==typeof e||Vu(e))return e;throw Qu("Can't set "+$u(e)+" as a prototype")},Xu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Yu(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return Wu(r),Ku(n),t?e(r,n):r.__proto__=n,r}}():void 0),Ju=Er,Zu=C,ec=gu,tc=zu,rc=Tu,nc=Pi,oc=oi,ic=lu,ac=Mu,sc=ec.PROPER,uc=ac.BUGGY_SAFARI_ITERATORS,cc=dt("iterator"),lc="keys",fc="values",dc="entries",hc=function(){return this},pc=function(e,t,r,n,o,i,a){tc(r,t,n);var s,u,c,l=function(e){if(e===o&&v)return v;if(!uc&&e in h)return h[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,h=e.prototype,p=h[cc]||h["@@iterator"]||o&&h[o],v=!uc&&p||l(o),g="Array"==t&&h.entries||p;if(g&&(s=rc(g.call(new e)))!==Object.prototype&&s.next&&(nc(s,f,!0,!0),ic[f]=hc),sc&&o==fc&&p&&p.name!==fc&&(d=!0,v=function(){return Zu(p,this)}),o)if(u={values:l(fc),keys:i?v:l(lc),entries:l(dc)},a)for(c in u)(uc||d||!(c in h))&&oc(h,c,u[c]);else Ju({target:t,proto:!0,forced:uc||d},u);return a&&h[cc]!==v&&oc(h,cc,v,{name:o}),ic[t]=v,u},vc=function(e,t){return{value:e,done:t}},gc=X,yc=lu,mc=$i;Xt.f;var _c=pc,bc=vc,wc="Array Iterator",Sc=mc.set,xc=mc.getterFor(wc);_c(Array,"Array",(function(e,t){Sc(this,{type:wc,target:gc(e),index:0,kind:t})}),(function(){var e=xc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,bc(void 0,!0)):bc("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),yc.Arguments=yc.Array;var kc={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=o,Rc=en,Oc=gr,Ec=lu,Lc=dt("toStringTag");for(var Pc in kc){var Ac=Tc[Pc],Cc=Ac&&Ac.prototype;Cc&&Rc(Cc)!==Lc&&Oc(Cc,Lc,Pc),Ec[Pc]=Ec.Array}var jc=cu;gi("dispose");var Ic=jc;gi("asyncDispose");var Mc=Er,Fc=g,Nc=ae("Symbol"),Uc=Nc.keyFor,Dc=Fc(Nc.prototype.valueOf);Mc({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==Uc(Dc(e))}catch(t){return!1}}});for(var Bc=Er,Hc=$e,zc=ae,qc=g,Gc=Te,Vc=dt,$c=zc("Symbol"),Qc=$c.isWellKnown,Yc=zc("Object","getOwnPropertyNames"),Wc=qc($c.prototype.valueOf),Kc=Hc("wks"),Xc=0,Jc=Yc($c),Zc=Jc.length;Xc<Zc;Xc++)try{var el=Jc[Xc];Gc($c[el])&&Vc(el)}catch(BA){}Bc({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(Qc&&Qc(e))return!0;try{for(var t=Wc(e),r=0,n=Yc(Kc),o=n.length;r<o;r++)if(Kc[n[r]]==t)return!0}catch(BA){}return!1}}),gi("matcher"),gi("metadataKey"),gi("observable"),gi("metadata"),gi("patternMatch"),gi("replaceAll");var tl=Ic,rl=r(tl),nl=g,ol=Ir,il=Qn,al=Y,sl=nl("".charAt),ul=nl("".charCodeAt),cl=nl("".slice),ll=function(e){return function(t,r){var n,o,i=il(al(t)),a=ol(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=ul(i,a))<55296||n>56319||a+1===s||(o=ul(i,a+1))<56320||o>57343?e?sl(i,a):n:e?cl(i,a,a+2):o-56320+(n-55296<<10)+65536}},fl={codeAt:ll(!1),charAt:ll(!0)},dl=fl.charAt,hl=Qn,pl=$i,vl=pc,gl=vc,yl="String Iterator",ml=pl.set,_l=pl.getterFor(yl);vl(String,"String",(function(e){ml(this,{type:yl,string:hl(e),index:0})}),(function(){var e,t=_l(this),r=t.string,n=t.index;return n>=r.length?gl(void 0,!0):(e=dl(r,n),t.index+=e.length,gl(e,!1))}));var bl=si.f("iterator"),wl=r(bl);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 xl=We,kl=vo;Er({target:"Object",stat:!0,forced:i((function(){kl(1)}))},{keys:function(e){return kl(xl(e))}});var Tl=r(te.Object.keys),Rl=r(te.Object.getOwnPropertySymbols),Ol=ea.filter;Er({target:"Array",proto:!0,forced:!Pn("filter")},{filter:function(e){return Ol(this,e,arguments.length>1?arguments[1]:void 0)}});var El=te,Ll=function(e){return El[e+"Prototype"]},Pl=Ll("Array").filter,Al=se,Cl=Pl,jl=Array.prototype,Il=r((function(e){var t=e.filter;return e===jl||Al(jl,e)&&t===jl.filter?Cl:t})),Ml={exports:{}},Fl=Er,Nl=i,Ul=X,Dl=E.f,Bl=L;Fl({target:"Object",stat:!0,forced:!Bl||Nl((function(){Dl(1)})),sham:!Bl},{getOwnPropertyDescriptor:function(e,t){return Dl(Ul(e),t)}});var Hl=te.Object,zl=Ml.exports=function(e,t){return Hl.getOwnPropertyDescriptor(e,t)};Hl.getOwnPropertyDescriptor.sham&&(zl.sham=!0);var ql=r(Ml.exports),Gl=i,Vl=function(e,t){var r=[][e];return!!r&&Gl((function(){r.call(null,t||function(){return 1},1)}))},$l=ea.forEach,Ql=Vl("forEach")?[].forEach:function(e){return $l(this,e,arguments.length>1?arguments[1]:void 0)};Er({target:"Array",proto:!0,forced:[].forEach!=Ql},{forEach:Ql});var Yl=Ll("Array").forEach,Wl=en,Kl=Je,Xl=se,Jl=Yl,Zl=Array.prototype,ef={DOMTokenList:!0,NodeList:!0},tf=r((function(e){var t=e.forEach;return e===Zl||Xl(Zl,e)&&t===Zl.forEach||Kl(ef,Wl(e))?Jl:t})),rf=ae,nf=Ho,of=ri,af=rr,sf=g([].concat),uf=rf("Reflect","ownKeys")||function(e){var t=nf.f(af(e)),r=of.f;return r?sf(t,r(e)):t},cf=uf,lf=X,ff=E,df=Vr;Er({target:"Object",stat:!0,sham:!L},{getOwnPropertyDescriptors:function(e){for(var t,r,n=lf(e),o=ff.f,i=cf(n),a={},s=0;i.length>s;)void 0!==(r=o(n,t=i[s++]))&&df(a,t,r);return a}});var hf=r(te.Object.getOwnPropertyDescriptors),pf={exports:{}},vf=Er,gf=L,yf=Yn.f;vf({target:"Object",stat:!0,forced:Object.defineProperties!==yf,sham:!gf},{defineProperties:yf});var mf=te.Object,_f=pf.exports=function(e,t){return mf.defineProperties(e,t)};mf.defineProperties.sham&&(_f.sham=!0);var bf=r(pf.exports),wf={exports:{}},Sf=Er,xf=L,kf=Xt.f;Sf({target:"Object",stat:!0,forced:Object.defineProperty!==kf,sham:!xf},{defineProperty:kf});var Tf=te.Object,Rf=wf.exports=function(e,t,r){return Tf.defineProperty(e,t,r)};Tf.defineProperty.sham&&(Rf.sham=!0);var Of=r(wf.exports),Ef=r(tl);Er({target:"Object",stat:!0,sham:!L},{create:Bo});var Lf=te.Object,Pf=r((function(e,t){return Lf.create(e,t)})),Af=We,Cf=Tu,jf=yu;Er({target:"Object",stat:!0,forced:i((function(){Cf(1)})),sham:!jf},{getPrototypeOf:function(e){return Cf(Af(e))}});var If=r(te.Object.getPrototypeOf);Er({target:"Object",stat:!0},{setPrototypeOf:Xu});var Mf=r(te.Object.setPrototypeOf),Ff=Je,Nf=uf,Uf=E,Df=Xt,Bf=ee,Hf=gr,zf=Error,qf=g("".replace),Gf=String(zf("zxcasd").stack),Vf=/\n\s*at [^:]*:[^\n]*/,$f=Vf.test(Gf),Qf=D,Yf=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Qf(1,7)),7!==e.stack)})),Wf=gr,Kf=function(e,t){if($f&&"string"==typeof e&&!zf.prepareStackTrace)for(;t--;)e=qf(e,Vf,"");return e},Xf=Yf,Jf=Error.captureStackTrace,Zf=lu,ed=dt("iterator"),td=Array.prototype,rd=function(e){return void 0!==e&&(Zf.Array===e||td[ed]===e)},nd=en,od=Ie,id=V,ad=lu,sd=dt("iterator"),ud=function(e){if(!id(e))return od(e,sd)||od(e,"@@iterator")||ad[nd(e)]},cd=C,ld=Ae,fd=rr,dd=Oe,hd=ud,pd=TypeError,vd=function(e,t){var r=arguments.length<2?hd(e):t;if(ld(r))return fd(cd(r,e));throw pd(dd(e)+" is not iterable")},gd=C,yd=rr,md=Ie,_d=function(e,t,r){var n,o;yd(e);try{if(!(n=md(e,"return"))){if("throw"===t)throw r;return r}n=gd(n,e)}catch(BA){o=!0,n=BA}if("throw"===t)throw r;if(o)throw n;return yd(n),r},bd=Kt,wd=C,Sd=rr,xd=Oe,kd=rd,Td=Dr,Rd=se,Od=vd,Ed=ud,Ld=_d,Pd=TypeError,Ad=function(e,t){this.stopped=e,this.result=t},Cd=Ad.prototype,jd=function(e,t,r){var n,o,i,a,s,u,c,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=bd(t,l),g=function(e){return n&&Ld(n,"normal",e),new Ad(!0,e)},y=function(e){return f?(Sd(e),p?v(e[0],e[1],g):v(e[0],e[1])):p?v(e,g):v(e)};if(d)n=e.iterator;else if(h)n=e;else{if(!(o=Ed(e)))throw Pd(xd(e)+" is not iterable");if(kd(o)){for(i=0,a=Td(e);a>i;i++)if((s=y(e[i]))&&Rd(Cd,s))return s;return new Ad(!1)}n=Od(e,o)}for(u=d?e.next:n.next;!(c=wd(u,n)).done;){try{s=y(c.value)}catch(BA){Ld(n,"throw",BA)}if("object"==typeof s&&s&&Rd(Cd,s))return s}return new Ad(!1)},Id=Qn,Md=Er,Fd=se,Nd=Tu,Ud=Xu,Dd=function(e,t,r){for(var n=Nf(t),o=Df.f,i=Uf.f,a=0;a<n.length;a++){var s=n[a];Ff(e,s)||r&&Ff(r,s)||o(e,s,i(t,s))}},Bd=Bo,Hd=gr,zd=D,qd=function(e,t){Bf(t)&&"cause"in t&&Hf(e,"cause",t.cause)},Gd=function(e,t,r,n){Xf&&(Jf?Jf(e,t):Wf(e,"stack",Kf(r,n)))},Vd=jd,$d=function(e,t){return void 0===e?arguments.length<2?"":t:Id(e)},Qd=dt("toStringTag"),Yd=Error,Wd=[].push,Kd=function(e,t){var r,n=Fd(Xd,this);Ud?r=Ud(Yd(),n?Nd(this):Xd):(r=n?this:Bd(Xd),Hd(r,Qd,"Error")),void 0!==t&&Hd(r,"message",$d(t)),Gd(r,Kd,r.stack,1),arguments.length>2&&qd(r,arguments[2]);var o=[];return Vd(e,Wd,{that:o}),Hd(r,"errors",o),r};Ud?Ud(Kd,Yd):Dd(Kd,Yd,{name:!0});var Xd=Kd.prototype=Bd(Yd.prototype,{constructor:zd(1,Kd),message:zd(1,""),name:zd(1,"AggregateError")});Md({global:!0,constructor:!0,arity:2},{AggregateError:Kd});var Jd,Zd,eh,th,rh="undefined"!=typeof process&&"process"==b(process),nh=ae,oh=ai,ih=L,ah=dt("species"),sh=function(e){var t=nh(e);ih&&t&&!t[ah]&&oh(t,ah,{configurable:!0,get:function(){return this}})},uh=se,ch=TypeError,lh=function(e,t){if(uh(t,e))return e;throw ch("Incorrect invocation")},fh=_n,dh=Oe,hh=TypeError,ph=function(e){if(fh(e))return e;throw hh(dh(e)+" is not a constructor")},vh=rr,gh=ph,yh=V,mh=dt("species"),_h=function(e,t){var r,n=vh(e).constructor;return void 0===n||yh(r=vh(n)[mh])?t:gh(r)},bh=TypeError,wh=function(e,t){if(e<t)throw bh("Not enough arguments");return e},Sh=/(?:ipad|iphone|ipod).*applewebkit/i.test(ue),xh=o,kh=f,Th=Kt,Rh=O,Oh=Je,Eh=i,Lh=xo,Ph=ks,Ah=Rt,Ch=wh,jh=Sh,Ih=rh,Mh=xh.setImmediate,Fh=xh.clearImmediate,Nh=xh.process,Uh=xh.Dispatch,Dh=xh.Function,Bh=xh.MessageChannel,Hh=xh.String,zh=0,qh={},Gh="onreadystatechange";Eh((function(){Jd=xh.location}));var Vh=function(e){if(Oh(qh,e)){var t=qh[e];delete qh[e],t()}},$h=function(e){return function(){Vh(e)}},Qh=function(e){Vh(e.data)},Yh=function(e){xh.postMessage(Hh(e),Jd.protocol+"//"+Jd.host)};Mh&&Fh||(Mh=function(e){Ch(arguments.length,1);var t=Rh(e)?e:Dh(e),r=Ph(arguments,1);return qh[++zh]=function(){kh(t,void 0,r)},Zd(zh),zh},Fh=function(e){delete qh[e]},Ih?Zd=function(e){Nh.nextTick($h(e))}:Uh&&Uh.now?Zd=function(e){Uh.now($h(e))}:Bh&&!jh?(th=(eh=new Bh).port2,eh.port1.onmessage=Qh,Zd=Th(th.postMessage,th)):xh.addEventListener&&Rh(xh.postMessage)&&!xh.importScripts&&Jd&&"file:"!==Jd.protocol&&!Eh(Yh)?(Zd=Yh,xh.addEventListener("message",Qh,!1)):Zd=Gh in Ah("script")?function(e){Lh.appendChild(Ah("script"))[Gh]=function(){Lh.removeChild(this),Vh(e)}}:function(e){setTimeout($h(e),0)});var Wh={set:Mh,clear:Fh},Kh=function(){this.head=null,this.tail=null};Kh.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 Xh,Jh,Zh,ep,tp,rp=Kh,np=/ipad|iphone|ipod/i.test(ue)&&"undefined"!=typeof Pebble,op=/web0s(?!.*chrome)/i.test(ue),ip=o,ap=Kt,sp=E.f,up=Wh.set,cp=rp,lp=Sh,fp=np,dp=op,hp=rh,pp=ip.MutationObserver||ip.WebKitMutationObserver,vp=ip.document,gp=ip.process,yp=ip.Promise,mp=sp(ip,"queueMicrotask"),_p=mp&&mp.value;if(!_p){var bp=new cp,wp=function(){var e,t;for(hp&&(e=gp.domain)&&e.exit();t=bp.get();)try{t()}catch(BA){throw bp.head&&Xh(),BA}e&&e.enter()};lp||hp||dp||!pp||!vp?!fp&&yp&&yp.resolve?((ep=yp.resolve(void 0)).constructor=yp,tp=ap(ep.then,ep),Xh=function(){tp(wp)}):hp?Xh=function(){gp.nextTick(wp)}:(up=ap(up,ip),Xh=function(){up(wp)}):(Jh=!0,Zh=vp.createTextNode(""),new pp(wp).observe(Zh,{characterData:!0}),Xh=function(){Zh.data=Jh=!Jh}),_p=function(e){bp.head||Xh(),bp.add(e)}}var Sp=_p,xp=function(e){try{return{error:!1,value:e()}}catch(BA){return{error:!0,value:BA}}},kp=o.Promise,Tp="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Rp=!Tp&&!rh&&"object"==typeof window&&"object"==typeof document,Op=o,Ep=kp,Lp=O,Pp=$t,Ap=on,Cp=dt,jp=Rp,Ip=Tp,Mp=ve,Fp=Ep&&Ep.prototype,Np=Cp("species"),Up=!1,Dp=Lp(Op.PromiseRejectionEvent),Bp={CONSTRUCTOR:Pp("Promise",(function(){var e=Ap(Ep),t=e!==String(Ep);if(!t&&66===Mp)return!0;if(!Fp.catch||!Fp.finally)return!0;if(!Mp||Mp<51||!/native code/.test(e)){var r=new Ep((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[Np]=n,!(Up=r.then((function(){}))instanceof n))return!0}return!t&&(jp||Ip)&&!Dp})),REJECTION_EVENT:Dp,SUBCLASSING:Up},Hp={},zp=Ae,qp=TypeError,Gp=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw qp("Bad Promise constructor");t=e,r=n})),this.resolve=zp(t),this.reject=zp(r)};Hp.f=function(e){return new Gp(e)};var Vp,$p,Qp=Er,Yp=rh,Wp=o,Kp=C,Xp=oi,Jp=Pi,Zp=sh,ev=Ae,tv=O,rv=ee,nv=lh,ov=_h,iv=Wh.set,av=Sp,sv=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(BA){}},uv=xp,cv=rp,lv=$i,fv=kp,dv=Bp,hv=Hp,pv="Promise",vv=dv.CONSTRUCTOR,gv=dv.REJECTION_EVENT,yv=lv.getterFor(pv),mv=lv.set,_v=fv&&fv.prototype,bv=fv,wv=_v,Sv=Wp.TypeError,xv=Wp.document,kv=Wp.process,Tv=hv.f,Rv=Tv,Ov=!!(xv&&xv.createEvent&&Wp.dispatchEvent),Ev="unhandledrejection",Lv=function(e){var t;return!(!rv(e)||!tv(t=e.then))&&t},Pv=function(e,t){var r,n,o,i=t.value,a=1==t.state,s=a?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(a||(2===t.rejection&&Mv(t),t.rejection=1),!0===s?r=i:(l&&l.enter(),r=s(i),l&&(l.exit(),o=!0)),r===e.promise?c(Sv("Promise-chain cycle")):(n=Lv(r))?Kp(n,r,u,c):u(r)):c(i)}catch(BA){l&&!o&&l.exit(),c(BA)}},Av=function(e,t){e.notified||(e.notified=!0,av((function(){for(var r,n=e.reactions;r=n.get();)Pv(r,e);e.notified=!1,t&&!e.rejection&&jv(e)})))},Cv=function(e,t,r){var n,o;Ov?((n=xv.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Wp.dispatchEvent(n)):n={promise:t,reason:r},!gv&&(o=Wp["on"+e])?o(n):e===Ev&&sv("Unhandled promise rejection",r)},jv=function(e){Kp(iv,Wp,(function(){var t,r=e.facade,n=e.value;if(Iv(e)&&(t=uv((function(){Yp?kv.emit("unhandledRejection",n,r):Cv(Ev,r,n)})),e.rejection=Yp||Iv(e)?2:1,t.error))throw t.value}))},Iv=function(e){return 1!==e.rejection&&!e.parent},Mv=function(e){Kp(iv,Wp,(function(){var t=e.facade;Yp?kv.emit("rejectionHandled",t):Cv("rejectionhandled",t,e.value)}))},Fv=function(e,t,r){return function(n){e(t,n,r)}},Nv=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Av(e,!0))},Uv=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=Lv(t);n?av((function(){var r={done:!1};try{Kp(n,t,Fv(Uv,r,e),Fv(Nv,r,e))}catch(BA){Nv(r,BA,e)}})):(e.value=t,e.state=1,Av(e,!1))}catch(BA){Nv({done:!1},BA,e)}}};vv&&(wv=(bv=function(e){nv(this,wv),ev(e),Kp(Vp,this);var t=yv(this);try{e(Fv(Uv,t),Fv(Nv,t))}catch(BA){Nv(t,BA)}}).prototype,(Vp=function(e){mv(this,{type:pv,done:!1,notified:!1,parent:!1,reactions:new cv,rejection:!1,state:0,value:void 0})}).prototype=Xp(wv,"then",(function(e,t){var r=yv(this),n=Tv(ov(this,bv));return r.parent=!0,n.ok=!tv(e)||e,n.fail=tv(t)&&t,n.domain=Yp?kv.domain:void 0,0==r.state?r.reactions.add(n):av((function(){Pv(n,r)})),n.promise})),$p=function(){var e=new Vp,t=yv(e);this.promise=e,this.resolve=Fv(Uv,t),this.reject=Fv(Nv,t)},hv.f=Tv=function(e){return e===bv||undefined===e?new $p(e):Rv(e)}),Qp({global:!0,constructor:!0,wrap:!0,forced:vv},{Promise:bv}),Jp(bv,pv,!1,!0),Zp(pv);var Dv=dt("iterator"),Bv=!1;try{var Hv=0,zv={next:function(){return{done:!!Hv++}},return:function(){Bv=!0}};zv[Dv]=function(){return this},Array.from(zv,(function(){throw 2}))}catch(BA){}var qv=function(e,t){if(!t&&!Bv)return!1;var r=!1;try{var n={};n[Dv]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(BA){}return r},Gv=kp,Vv=Bp.CONSTRUCTOR||!qv((function(e){Gv.all(e).then(void 0,(function(){}))})),$v=C,Qv=Ae,Yv=Hp,Wv=xp,Kv=jd;Er({target:"Promise",stat:!0,forced:Vv},{all:function(e){var t=this,r=Yv.f(t),n=r.resolve,o=r.reject,i=Wv((function(){var r=Qv(t.resolve),i=[],a=0,s=1;Kv(e,(function(e){var u=a++,c=!1;s++,$v(r,t,e).then((function(e){c||(c=!0,i[u]=e,--s||n(i))}),o)})),--s||n(i)}));return i.error&&o(i.value),r.promise}});var Xv=Er,Jv=Bp.CONSTRUCTOR;kp&&kp.prototype,Xv({target:"Promise",proto:!0,forced:Jv,real:!0},{catch:function(e){return this.then(void 0,e)}});var Zv=C,eg=Ae,tg=Hp,rg=xp,ng=jd;Er({target:"Promise",stat:!0,forced:Vv},{race:function(e){var t=this,r=tg.f(t),n=r.reject,o=rg((function(){var o=eg(t.resolve);ng(e,(function(e){Zv(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var og=C,ig=Hp;Er({target:"Promise",stat:!0,forced:Bp.CONSTRUCTOR},{reject:function(e){var t=ig.f(this);return og(t.reject,void 0,e),t.promise}});var ag=rr,sg=ee,ug=Hp,cg=function(e,t){if(ag(e),sg(t)&&t.constructor===e)return t;var r=ug.f(e);return(0,r.resolve)(t),r.promise},lg=Er,fg=kp,dg=Bp.CONSTRUCTOR,hg=cg,pg=ae("Promise"),vg=!dg;lg({target:"Promise",stat:!0,forced:true},{resolve:function(e){return hg(vg&&this===pg?fg:this,e)}});var gg=C,yg=Ae,mg=Hp,_g=xp,bg=jd;Er({target:"Promise",stat:!0,forced:Vv},{allSettled:function(e){var t=this,r=mg.f(t),n=r.resolve,o=r.reject,i=_g((function(){var r=yg(t.resolve),o=[],i=0,a=1;bg(e,(function(e){var s=i++,u=!1;a++,gg(r,t,e).then((function(e){u||(u=!0,o[s]={status:"fulfilled",value:e},--a||n(o))}),(function(e){u||(u=!0,o[s]={status:"rejected",reason:e},--a||n(o))}))})),--a||n(o)}));return i.error&&o(i.value),r.promise}});var wg=C,Sg=Ae,xg=ae,kg=Hp,Tg=xp,Rg=jd,Og="No one promise resolved";Er({target:"Promise",stat:!0,forced:Vv},{any:function(e){var t=this,r=xg("AggregateError"),n=kg.f(t),o=n.resolve,i=n.reject,a=Tg((function(){var n=Sg(t.resolve),a=[],s=0,u=1,c=!1;Rg(e,(function(e){var l=s++,f=!1;u++,wg(n,t,e).then((function(e){f||c||(c=!0,o(e))}),(function(e){f||c||(f=!0,a[l]=e,--u||i(new r(a,Og)))}))})),--u||i(new r(a,Og))}));return a.error&&i(a.value),n.promise}});var Eg=Er,Lg=kp,Pg=i,Ag=ae,Cg=O,jg=_h,Ig=cg,Mg=Lg&&Lg.prototype;Eg({target:"Promise",proto:!0,real:!0,forced:!!Lg&&Pg((function(){Mg.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=jg(this,Ag("Promise")),r=Cg(e);return this.then(r?function(r){return Ig(t,e()).then((function(){return r}))}:e,r?function(r){return Ig(t,e()).then((function(){throw r}))}:e)}});var Fg=te.Promise,Ng=Hp,Ug=xp;Er({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Ng.f(this),r=Ug(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var Dg=r(Fg),Bg=Er,Hg=Pr,zg=g([].reverse),qg=[1,2];Bg({target:"Array",proto:!0,forced:String(qg)===String(qg.reverse())},{reverse:function(){return Hg(this)&&(this.length=this.length),zg(this)}});var Gg=Ll("Array").reverse,Vg=se,$g=Gg,Qg=Array.prototype,Yg=r((function(e){var t=e.reverse;return e===Qg||Vg(Qg,e)&&t===Qg.reverse?$g:t})),Wg=Er,Kg=Pr,Xg=_n,Jg=ee,Zg=Jn,ey=Dr,ty=X,ry=Vr,ny=dt,oy=ks,iy=Pn("slice"),ay=ny("species"),sy=Array,uy=Math.max;Wg({target:"Array",proto:!0,forced:!iy},{slice:function(e,t){var r,n,o,i=ty(this),a=ey(i),s=Zg(e,a),u=Zg(void 0===t?a:t,a);if(Kg(i)&&(r=i.constructor,(Xg(r)&&(r===sy||Kg(r.prototype))||Jg(r)&&null===(r=r[ay]))&&(r=void 0),r===sy||void 0===r))return oy(i,s,u);for(n=new(void 0===r?sy:r)(uy(u-s,0)),o=0;s<u;s++,o++)s in i&&ry(n,o,i[s]);return n.length=o,n}});var cy=Ll("Array").slice,ly=se,fy=cy,dy=Array.prototype,hy=r((function(e){var t=e.slice;return e===dy||ly(dy,e)&&t===dy.slice?fy:t})),py=g,vy=Ae,gy=ee,yy=Je,my=ks,_y=a,by=Function,wy=py([].concat),Sy=py([].join),xy={},ky=_y?by.bind:function(e){var t=vy(this),r=t.prototype,n=my(arguments,1),o=function(){var r=wy(n,my(arguments));return this instanceof o?function(e,t,r){if(!yy(xy,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";xy[t]=by("C,a","return new C("+Sy(n,",")+")")}return xy[t](e,r)}(t,r.length,r):t.apply(e,r)};return gy(r)&&(o.prototype=r),o},Ty=ky;Er({target:"Function",proto:!0,forced:Function.bind!==Ty},{bind:Ty});var Ry=Ll("Function").bind,Oy=se,Ey=Ry,Ly=Function.prototype,Py=r((function(e){var t=e.bind;return e===Ly||Oy(Ly,e)&&t===Ly.bind?Ey:t})),Ay=Er,Cy=f,jy=ky,Iy=ph,My=rr,Fy=ee,Ny=Bo,Uy=i,Dy=ae("Reflect","construct"),By=Object.prototype,Hy=[].push,zy=Uy((function(){function e(){}return!(Dy((function(){}),[],e)instanceof e)})),qy=!Uy((function(){Dy((function(){}))})),Gy=zy||qy;Ay({target:"Reflect",stat:!0,forced:Gy,sham:Gy},{construct:function(e,t){Iy(e),My(t);var r=arguments.length<3?e:Iy(arguments[2]);if(qy&&!zy)return Dy(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 Cy(Hy,n,t),new(Cy(jy,e,n))}var o=r.prototype,i=Ny(Fy(o)?o:By),a=Cy(e,i,t);return Fy(a)?a:i}});var Vy=r(te.Reflect.construct),$y=r(si.f("toPrimitive"));function Qy(e,t){var r=Tl(e);if(Rl){var n=Rl(e);t&&(n=Il(n).call(n,(function(t){return ql(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yy(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?tf(r=Qy(Object(o),!0)).call(r,(function(t){tm(e,t,o[t])})):hf?bf(e,hf(o)):tf(n=Qy(Object(o))).call(n,(function(t){Of(e,t,ql(o,t))}))}return e}function Wy(){Wy=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Of||function(e,t,r){e[t]=r.value},o="function"==typeof Ef?Ef:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r){return Of(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(O){u=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var i=t&&t.prototype instanceof d?t:d,a=Pf(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:b(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=c;var f={};function d(){}function h(){}function p(){}var v={};u(v,i,(function(){return this}));var g=If&&If(If(T([])));g&&g!==t&&r.call(g,i)&&(v=g);var y=p.prototype=d.prototype=Pf(v);function m(e){var t;tf(t=["next","throw","return"]).call(t,(function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var u=l(e[n],e,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Sl(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,s)}))}s(u.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],tf(e).call(e,S,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=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 o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=p,n(y,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=u(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Mf?Mf(e,p):(e.__proto__=p,u(e,s,"GeneratorFunction")),e.prototype=Pf(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),u(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Dg);var a=new _(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),u(y,s,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return Yg(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,k.prototype={constructor:k,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,x),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+hy(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 o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.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),x(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}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 Ky(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(BA){return void r(BA)}s.done?t(u):Dg.resolve(u).then(n,o)}function Xy(e){return function(){var t=this,r=arguments;return new Dg((function(n,o){var i=e.apply(t,r);function a(e){Ky(i,n,o,a,s,"next",e)}function s(e){Ky(i,n,o,a,s,"throw",e)}a(void 0)}))}}function Jy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zy(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),Of(e,sm(n.key),n)}}function em(e,t,r){return t&&Zy(e.prototype,t),r&&Zy(e,r),Of(e,"prototype",{writable:!1}),e}function tm(e,t,r){return(t=sm(t))in e?Of(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Pf(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Of(e,"prototype",{writable:!1}),t&&om(e,t)}function nm(e){var t;return(nm=Mf?Py(t=If).call(t):function(e){return e.__proto__||If(e)})(e)}function om(e,t){var r;return(om=Mf?Py(r=Mf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function im(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function am(e){var t=function(){if("undefined"==typeof Reflect||!Vy)return!1;if(Vy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Vy(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=nm(e);if(t){var o=nm(this).constructor;r=Vy(n,arguments,o)}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 im(e)}(this,r)}}function sm(e){var t=function(e,t){if("object"!==Sl(e)||null===e)return e;var r=e[$y];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 um=Ll("Array").concat,cm=se,lm=um,fm=Array.prototype,dm=r((function(e){var t=e.concat;return e===fm||cm(fm,e)&&t===fm.concat?lm:t})),hm=i,pm=dt("iterator"),vm=!hm((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[pm]||"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})),gm=L,ym=g,mm=C,_m=i,bm=vo,wm=ri,Sm=j,xm=We,km=G,Tm=Object.assign,Rm=Object.defineProperty,Om=ym([].concat),Em=!Tm||_m((function(){if(gm&&1!==Tm({b:1},Tm(Rm({},"a",{enumerable:!0,get:function(){Rm(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!=Tm({},e)[r]||bm(Tm({},t)).join("")!=n}))?function(e,t){for(var r=xm(e),n=arguments.length,o=1,i=wm.f,a=Sm.f;n>o;)for(var s,u=km(arguments[o++]),c=i?Om(bm(u),i(u)):bm(u),l=c.length,f=0;l>f;)s=c[f++],gm&&!mm(a,u,s)||(r[s]=u[s]);return r}:Tm,Lm=rr,Pm=_d,Am=Kt,Cm=C,jm=We,Im=function(e,t,r,n){try{return n?t(Lm(r)[0],r[1]):t(r)}catch(BA){Pm(e,"throw",BA)}},Mm=rd,Fm=_n,Nm=Dr,Um=Vr,Dm=vd,Bm=ud,Hm=Array,zm=function(e){var t=jm(e),r=Fm(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Am(o,n>2?arguments[2]:void 0));var a,s,u,c,l,f,d=Bm(t),h=0;if(!d||this===Hm&&Mm(d))for(a=Nm(t),s=r?new this(a):Hm(a);a>h;h++)f=i?o(t[h],h):t[h],Um(s,h,f);else for(l=(c=Dm(t,d)).next,s=r?new this:[];!(u=Cm(l,c)).done;h++)f=i?Im(c,o,[u.value,h],!0):u.value,Um(s,h,f);return s.length=h,s},qm=g,Gm=2147483647,Vm=/[^\0-\u007E]/,$m=/[.\u3002\uFF0E\uFF61]/g,Qm="Overflow: input needs wider integers to process",Ym=RangeError,Wm=qm($m.exec),Km=Math.floor,Xm=String.fromCharCode,Jm=qm("".charCodeAt),Zm=qm([].join),e_=qm([].push),t_=qm("".replace),r_=qm("".split),n_=qm("".toLowerCase),o_=function(e){return e+22+75*(e<26)},i_=function(e,t,r){var n=0;for(e=r?Km(e/700):e>>1,e+=Km(e/t);e>455;)e=Km(e/35),n+=36;return Km(n+36*e/(e+38))},a_=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=Jm(e,r++);if(o>=55296&&o<=56319&&r<n){var i=Jm(e,r++);56320==(64512&i)?e_(t,((1023&o)<<10)+(1023&i)+65536):(e_(t,o),r--)}else e_(t,o)}return t}(e);var r,n,o=e.length,i=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&e_(t,Xm(n));var u=t.length,c=u;for(u&&e_(t,"-");c<o;){var l=Gm;for(r=0;r<e.length;r++)(n=e[r])>=i&&n<l&&(l=n);var f=c+1;if(l-i>Km((Gm-a)/f))throw Ym(Qm);for(a+=(l-i)*f,i=l,r=0;r<e.length;r++){if((n=e[r])<i&&++a>Gm)throw Ym(Qm);if(n==i){for(var d=a,h=36;;){var p=h<=s?1:h>=s+26?26:h-s;if(d<p)break;var v=d-p,g=36-p;e_(t,Xm(o_(p+v%g))),d=Km(v/g),h+=36}e_(t,Xm(o_(d))),s=i_(a,f,c==u),a=0,c++}}a++,i++}return Zm(t,"")},s_=oi,u_=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:s_(e,n,t[n],r);return e},c_=Ko,l_=Math.floor,f_=function(e,t){var r=e.length,n=l_(r/2);return r<8?d_(e,t):h_(e,f_(c_(e,0,n),t),f_(c_(e,n),t),t)},d_=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},h_=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?n(t[a],r[s])<=0?t[a++]:r[s++]:a<o?t[a++]:r[s++];return e},p_=f_,v_=Er,g_=o,y_=C,m_=g,__=L,b_=vm,w_=oi,S_=ai,x_=u_,k_=Pi,T_=zu,R_=$i,O_=lh,E_=O,L_=Je,P_=Kt,A_=en,C_=rr,j_=ee,I_=Qn,M_=Bo,F_=D,N_=vd,U_=ud,D_=wh,B_=p_,H_=dt("iterator"),z_="URLSearchParams",q_=z_+"Iterator",G_=R_.set,V_=R_.getterFor(z_),$_=R_.getterFor(q_),Q_=Object.getOwnPropertyDescriptor,Y_=function(e){if(!__)return g_[e];var t=Q_(g_,e);return t&&t.value},W_=Y_("fetch"),K_=Y_("Request"),X_=Y_("Headers"),J_=K_&&K_.prototype,Z_=X_&&X_.prototype,eb=g_.RegExp,tb=g_.TypeError,rb=g_.decodeURIComponent,nb=g_.encodeURIComponent,ob=m_("".charAt),ib=m_([].join),ab=m_([].push),sb=m_("".replace),ub=m_([].shift),cb=m_([].splice),lb=m_("".split),fb=m_("".slice),db=/\+/g,hb=Array(4),pb=function(e){return hb[e-1]||(hb[e-1]=eb("((?:%[\\da-f]{2}){"+e+"})","gi"))},vb=function(e){try{return rb(e)}catch(BA){return e}},gb=function(e){var t=sb(e,db," "),r=4;try{return rb(t)}catch(BA){for(;r;)t=sb(t,pb(r--),vb);return t}},yb=/[!'()~]|%20/g,mb={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},_b=function(e){return mb[e]},bb=function(e){return sb(nb(e),yb,_b)},wb=T_((function(e,t){G_(this,{type:q_,iterator:N_(V_(e).entries),kind:t})}),"Iterator",(function(){var e=$_(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),Sb=function(e){this.entries=[],this.url=null,void 0!==e&&(j_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===ob(e,0)?fb(e,1):e:I_(e)))};Sb.prototype={type:z_,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,s,u=U_(e);if(u)for(r=(t=N_(e,u)).next;!(n=y_(r,t)).done;){if(i=(o=N_(C_(n.value))).next,(a=y_(i,o)).done||(s=y_(i,o)).done||!y_(i,o).done)throw tb("Expected sequence with length 2");ab(this.entries,{key:I_(a.value),value:I_(s.value)})}else for(var c in e)L_(e,c)&&ab(this.entries,{key:c,value:I_(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=lb(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=lb(t,"="),ab(this.entries,{key:gb(ub(r)),value:gb(ib(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],ab(r,bb(e.key)+"="+bb(e.value));return ib(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var xb=function(){O_(this,kb);var e=G_(this,new Sb(arguments.length>0?arguments[0]:void 0));__||(this.length=e.entries.length)},kb=xb.prototype;if(x_(kb,{append:function(e,t){D_(arguments.length,2);var r=V_(this);ab(r.entries,{key:I_(e),value:I_(t)}),__||this.length++,r.updateURL()},delete:function(e){D_(arguments.length,1);for(var t=V_(this),r=t.entries,n=I_(e),o=0;o<r.length;)r[o].key===n?cb(r,o,1):o++;__||(this.length=r.length),t.updateURL()},get:function(e){D_(arguments.length,1);for(var t=V_(this).entries,r=I_(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){D_(arguments.length,1);for(var t=V_(this).entries,r=I_(e),n=[],o=0;o<t.length;o++)t[o].key===r&&ab(n,t[o].value);return n},has:function(e){D_(arguments.length,1);for(var t=V_(this).entries,r=I_(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){D_(arguments.length,1);for(var r,n=V_(this),o=n.entries,i=!1,a=I_(e),s=I_(t),u=0;u<o.length;u++)(r=o[u]).key===a&&(i?cb(o,u--,1):(i=!0,r.value=s));i||ab(o,{key:a,value:s}),__||(this.length=o.length),n.updateURL()},sort:function(){var e=V_(this);B_(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=V_(this).entries,n=P_(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new wb(this,"keys")},values:function(){return new wb(this,"values")},entries:function(){return new wb(this,"entries")}},{enumerable:!0}),w_(kb,H_,kb.entries,{name:"entries"}),w_(kb,"toString",(function(){return V_(this).serialize()}),{enumerable:!0}),__&&S_(kb,"size",{get:function(){return V_(this).entries.length},configurable:!0,enumerable:!0}),k_(xb,z_),v_({global:!0,constructor:!0,forced:!b_},{URLSearchParams:xb}),!b_&&E_(X_)){var Tb=m_(Z_.has),Rb=m_(Z_.set),Ob=function(e){if(j_(e)){var t,r=e.body;if(A_(r)===z_)return t=e.headers?new X_(e.headers):new X_,Tb(t,"content-type")||Rb(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),M_(e,{body:F_(0,I_(r)),headers:F_(0,t)})}return e};if(E_(W_)&&v_({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return W_(e,arguments.length>1?Ob(arguments[1]):{})}}),E_(K_)){var Eb=function(e){return O_(this,J_),new K_(e,arguments.length>1?Ob(arguments[1]):{})};J_.constructor=Eb,Eb.prototype=J_,v_({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Eb})}}var Lb,Pb=Er,Ab=L,Cb=vm,jb=o,Ib=Kt,Mb=g,Fb=oi,Nb=ai,Ub=lh,Db=Je,Bb=Em,Hb=zm,zb=Ko,qb=fl.codeAt,Gb=function(e){var t,r,n=[],o=r_(t_(n_(e),$m,"."),".");for(t=0;t<o.length;t++)r=o[t],e_(n,Wm(Vm,r)?"xn--"+a_(r):r);return Zm(n,".")},Vb=Qn,$b=Pi,Qb=wh,Yb={URLSearchParams:xb,getState:V_},Wb=$i,Kb=Wb.set,Xb=Wb.getterFor("URL"),Jb=Yb.URLSearchParams,Zb=Yb.getState,ew=jb.URL,tw=jb.TypeError,rw=jb.parseInt,nw=Math.floor,ow=Math.pow,iw=Mb("".charAt),aw=Mb(/./.exec),sw=Mb([].join),uw=Mb(1..toString),cw=Mb([].pop),lw=Mb([].push),fw=Mb("".replace),dw=Mb([].shift),hw=Mb("".split),pw=Mb("".slice),vw=Mb("".toLowerCase),gw=Mb([].unshift),yw="Invalid scheme",mw="Invalid host",_w="Invalid port",bw=/[a-z]/i,ww=/[\d+-.a-z]/i,Sw=/\d/,xw=/^0x/i,kw=/^[0-7]+$/,Tw=/^\d+$/,Rw=/^[\da-f]+$/i,Ow=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Ew=/[\0\t\n\r #/:<>?@[\\\]^|]/,Lw=/^[\u0000-\u0020]+/,Pw=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Aw=/[\t\n\r]/g,Cw=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)gw(t,e%256),e=nw(e/256);return sw(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=uw(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},jw={},Iw=Bb({},jw,{" ":1,'"':1,"<":1,">":1,"`":1}),Mw=Bb({},Iw,{"#":1,"?":1,"{":1,"}":1}),Fw=Bb({},Mw,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Nw=function(e,t){var r=qb(e,0);return r>32&&r<127&&!Db(t,e)?e:encodeURIComponent(e)},Uw={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Dw=function(e,t){var r;return 2==e.length&&aw(bw,iw(e,0))&&(":"==(r=iw(e,1))||!t&&"|"==r)},Bw=function(e){var t;return e.length>1&&Dw(pw(e,0,2))&&(2==e.length||"/"===(t=iw(e,2))||"\\"===t||"?"===t||"#"===t)},Hw=function(e){return"."===e||"%2e"===vw(e)},zw={},qw={},Gw={},Vw={},$w={},Qw={},Yw={},Ww={},Kw={},Xw={},Jw={},Zw={},eS={},tS={},rS={},nS={},oS={},iS={},aS={},sS={},uS={},cS=function(e,t,r){var n,o,i,a=Vb(e);if(t){if(o=this.parse(a))throw tw(o);this.searchParams=null}else{if(void 0!==r&&(n=new cS(r,!0)),o=this.parse(a,null,n))throw tw(o);(i=Zb(new Jb)).bindURL(this),this.searchParams=i}};cS.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,s,u=this,c=t||zw,l=0,f="",d=!1,h=!1,p=!1;for(e=Vb(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=fw(e,Lw,""),e=fw(e,Pw,"$1")),e=fw(e,Aw,""),n=Hb(e);l<=n.length;){switch(o=n[l],c){case zw:if(!o||!aw(bw,o)){if(t)return yw;c=Gw;continue}f+=vw(o),c=qw;break;case qw:if(o&&(aw(ww,o)||"+"==o||"-"==o||"."==o))f+=vw(o);else{if(":"!=o){if(t)return yw;f="",c=Gw,l=0;continue}if(t&&(u.isSpecial()!=Db(Uw,f)||"file"==f&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=f,t)return void(u.isSpecial()&&Uw[u.scheme]==u.port&&(u.port=null));f="","file"==u.scheme?c=tS:u.isSpecial()&&r&&r.scheme==u.scheme?c=Vw:u.isSpecial()?c=Ww:"/"==n[l+1]?(c=$w,l++):(u.cannotBeABaseURL=!0,lw(u.path,""),c=aS)}break;case Gw:if(!r||r.cannotBeABaseURL&&"#"!=o)return yw;if(r.cannotBeABaseURL&&"#"==o){u.scheme=r.scheme,u.path=zb(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=uS;break}c="file"==r.scheme?tS:Qw;continue;case Vw:if("/"!=o||"/"!=n[l+1]){c=Qw;continue}c=Kw,l++;break;case $w:if("/"==o){c=Xw;break}c=iS;continue;case Qw:if(u.scheme=r.scheme,o==Lb)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=zb(r.path),u.query=r.query;else if("/"==o||"\\"==o&&u.isSpecial())c=Yw;else if("?"==o)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=zb(r.path),u.query="",c=sS;else{if("#"!=o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=zb(r.path),u.path.length--,c=iS;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=zb(r.path),u.query=r.query,u.fragment="",c=uS}break;case Yw:if(!u.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=iS;continue}c=Xw}else c=Kw;break;case Ww:if(c=Kw,"/"!=o||"/"!=iw(f,l+1))continue;l++;break;case Kw:if("/"!=o&&"\\"!=o){c=Xw;continue}break;case Xw:if("@"==o){d&&(f="%40"+f),d=!0,i=Hb(f);for(var v=0;v<i.length;v++){var g=i[v];if(":"!=g||p){var y=Nw(g,Fw);p?u.password+=y:u.username+=y}else p=!0}f=""}else if(o==Lb||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()){if(d&&""==f)return"Invalid authority";l-=Hb(f).length+1,f="",c=Jw}else f+=o;break;case Jw:case Zw:if(t&&"file"==u.scheme){c=nS;continue}if(":"!=o||h){if(o==Lb||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()){if(u.isSpecial()&&""==f)return mw;if(t&&""==f&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(f))return a;if(f="",c=oS,t)return;continue}"["==o?h=!0:"]"==o&&(h=!1),f+=o}else{if(""==f)return mw;if(a=u.parseHost(f))return a;if(f="",c=eS,t==Zw)return}break;case eS:if(!aw(Sw,o)){if(o==Lb||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()||t){if(""!=f){var m=rw(f,10);if(m>65535)return _w;u.port=u.isSpecial()&&m===Uw[u.scheme]?null:m,f=""}if(t)return;c=oS;continue}return _w}f+=o;break;case tS:if(u.scheme="file","/"==o||"\\"==o)c=rS;else{if(!r||"file"!=r.scheme){c=iS;continue}if(o==Lb)u.host=r.host,u.path=zb(r.path),u.query=r.query;else if("?"==o)u.host=r.host,u.path=zb(r.path),u.query="",c=sS;else{if("#"!=o){Bw(sw(zb(n,l),""))||(u.host=r.host,u.path=zb(r.path),u.shortenPath()),c=iS;continue}u.host=r.host,u.path=zb(r.path),u.query=r.query,u.fragment="",c=uS}}break;case rS:if("/"==o||"\\"==o){c=nS;break}r&&"file"==r.scheme&&!Bw(sw(zb(n,l),""))&&(Dw(r.path[0],!0)?lw(u.path,r.path[0]):u.host=r.host),c=iS;continue;case nS:if(o==Lb||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&Dw(f))c=iS;else if(""==f){if(u.host="",t)return;c=oS}else{if(a=u.parseHost(f))return a;if("localhost"==u.host&&(u.host=""),t)return;f="",c=oS}continue}f+=o;break;case oS:if(u.isSpecial()){if(c=iS,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=Lb&&(c=iS,"/"!=o))continue}else u.fragment="",c=uS;else u.query="",c=sS;break;case iS:if(o==Lb||"/"==o||"\\"==o&&u.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(s=vw(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"==o||"\\"==o&&u.isSpecial()||lw(u.path,"")):Hw(f)?"/"==o||"\\"==o&&u.isSpecial()||lw(u.path,""):("file"==u.scheme&&!u.path.length&&Dw(f)&&(u.host&&(u.host=""),f=iw(f,0)+":"),lw(u.path,f)),f="","file"==u.scheme&&(o==Lb||"?"==o||"#"==o))for(;u.path.length>1&&""===u.path[0];)dw(u.path);"?"==o?(u.query="",c=sS):"#"==o&&(u.fragment="",c=uS)}else f+=Nw(o,Mw);break;case aS:"?"==o?(u.query="",c=sS):"#"==o?(u.fragment="",c=uS):o!=Lb&&(u.path[0]+=Nw(o,jw));break;case sS:t||"#"!=o?o!=Lb&&("'"==o&&u.isSpecial()?u.query+="%27":u.query+="#"==o?"%23":Nw(o,jw)):(u.fragment="",c=uS);break;case uS:o!=Lb&&(u.fragment+=Nw(o,Iw))}l++}},parseHost:function(e){var t,r,n;if("["==iw(e,0)){if("]"!=iw(e,e.length-1))return mw;if(t=function(e){var t,r,n,o,i,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,d=function(){return iw(e,f)};if(":"==d()){if(":"!=iw(e,1))return;f+=2,l=++c}for(;d();){if(8==c)return;if(":"!=d()){for(t=r=0;r<4&&aw(Rw,d());)t=16*t+rw(d(),16),f++,r++;if("."==d()){if(0==r)return;if(f-=r,c>6)return;for(n=0;d();){if(o=null,n>0){if(!("."==d()&&n<4))return;f++}if(!aw(Sw,d()))return;for(;aw(Sw,d());){if(i=rw(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}u[c]=256*u[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;u[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!=c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!=c)return;return u}(pw(e,1,-1)),!t)return mw;this.host=t}else if(this.isSpecial()){if(e=Gb(e),aw(Ow,e))return mw;if(t=function(e){var t,r,n,o,i,a,s,u=hw(e,".");if(u.length&&""==u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=u[n]))return e;if(i=10,o.length>1&&"0"==iw(o,0)&&(i=aw(xw,o)?16:8,o=pw(o,8==i?1:2)),""===o)a=0;else{if(!aw(10==i?Tw:8==i?kw:Rw,o))return e;a=rw(o,i)}lw(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=ow(256,5-t))return null}else if(a>255)return null;for(s=cw(r),n=0;n<r.length;n++)s+=r[n]*ow(256,3-n);return s}(e),null===t)return mw;this.host=t}else{if(aw(Ew,e))return mw;for(t="",r=Hb(e),n=0;n<r.length;n++)t+=Nw(r[n],jw);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return Db(Uw,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&Dw(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,u=e.fragment,c=t+":";return null!==o?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=Cw(o),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+sw(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw tw(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new lS(e.path[0]).origin}catch(BA){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Cw(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Vb(e)+":",zw)},getUsername:function(){return this.username},setUsername:function(e){var t=Hb(Vb(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=Nw(t[r],Fw)}},getPassword:function(){return this.password},setPassword:function(e){var t=Hb(Vb(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=Nw(t[r],Fw)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Cw(e):Cw(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Jw)},getHostname:function(){var e=this.host;return null===e?"":Cw(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Zw)},getPort:function(){var e=this.port;return null===e?"":Vb(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=Vb(e))?this.port=null:this.parse(e,eS))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+sw(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,oS))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=Vb(e))?this.query=null:("?"==iw(e,0)&&(e=pw(e,1)),this.query="",this.parse(e,sS)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=Vb(e))?("#"==iw(e,0)&&(e=pw(e,1)),this.fragment="",this.parse(e,uS)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var lS=function(e){var t=Ub(this,fS),r=Qb(arguments.length,1)>1?arguments[1]:void 0,n=Kb(t,new cS(e,!1,r));Ab||(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())},fS=lS.prototype,dS=function(e,t){return{get:function(){return Xb(this)[e]()},set:t&&function(e){return Xb(this)[t](e)},configurable:!0,enumerable:!0}};if(Ab&&(Nb(fS,"href",dS("serialize","setHref")),Nb(fS,"origin",dS("getOrigin")),Nb(fS,"protocol",dS("getProtocol","setProtocol")),Nb(fS,"username",dS("getUsername","setUsername")),Nb(fS,"password",dS("getPassword","setPassword")),Nb(fS,"host",dS("getHost","setHost")),Nb(fS,"hostname",dS("getHostname","setHostname")),Nb(fS,"port",dS("getPort","setPort")),Nb(fS,"pathname",dS("getPathname","setPathname")),Nb(fS,"search",dS("getSearch","setSearch")),Nb(fS,"searchParams",dS("getSearchParams")),Nb(fS,"hash",dS("getHash","setHash"))),Fb(fS,"toJSON",(function(){return Xb(this).serialize()}),{enumerable:!0}),Fb(fS,"toString",(function(){return Xb(this).serialize()}),{enumerable:!0}),ew){var hS=ew.createObjectURL,pS=ew.revokeObjectURL;hS&&Fb(lS,"createObjectURL",Ib(hS,ew)),pS&&Fb(lS,"revokeObjectURL",Ib(pS,ew))}$b(lS,"URL"),Pb({global:!0,constructor:!0,forced:!Cb,sham:!Ab},{URL:lS});var vS=Er,gS=i,yS=wh,mS=Qn,_S=vm,bS=ae("URL");vS({target:"URL",stat:!0,forced:!(_S&&gS((function(){bS.canParse()})))},{canParse:function(e){var t=yS(arguments.length,1),r=mS(e),n=t<2||void 0===arguments[1]?void 0:mS(arguments[1]);try{return!!new bS(r,n)}catch(BA){return!1}}});var wS=r(te.URL),SS=Er,xS=no.indexOf,kS=Vl,TS=x([].indexOf),RS=!!TS&&1/TS([1],1,-0)<0;SS({target:"Array",proto:!0,forced:RS||!kS("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return RS?TS(this,e,t)||0:xS(this,e,t)}});var OS=Ll("Array").indexOf,ES=se,LS=OS,PS=Array.prototype,AS=r((function(e){var t=e.indexOf;return e===PS||ES(PS,e)&&t===PS.indexOf?LS:t})),CS=Er,jS=ea.find,IS="find",MS=!0;IS in[]&&Array(1)[IS]((function(){MS=!1})),CS({target:"Array",proto:!0,forced:MS},{find:function(e){return jS(this,e,arguments.length>1?arguments[1]:void 0)}});var FS=Ll("Array").find,NS=se,US=FS,DS=Array.prototype,BS=r((function(e){var t=e.find;return e===DS||NS(DS,e)&&t===DS.find?US:t})),HS=L,zS=Pr,qS=TypeError,GS=Object.getOwnPropertyDescriptor,VS=HS&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(BA){return BA instanceof TypeError}}(),$S=Oe,QS=TypeError,YS=function(e,t){if(!delete e[t])throw QS("Cannot delete property "+$S(t)+" of "+$S(e))},WS=Er,KS=We,XS=Jn,JS=Ir,ZS=Dr,ex=VS?function(e,t){if(zS(e)&&!GS(e,"length").writable)throw qS("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},tx=Hr,rx=Rn,nx=Vr,ox=YS,ix=Pn("splice"),ax=Math.max,sx=Math.min;WS({target:"Array",proto:!0,forced:!ix},{splice:function(e,t){var r,n,o,i,a,s,u=KS(this),c=ZS(u),l=XS(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=sx(ax(JS(t),0),c-l)),tx(c+r-n),o=rx(u,n),i=0;i<n;i++)(a=l+i)in u&&nx(o,i,u[a]);if(o.length=n,r<n){for(i=l;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:ox(u,s);for(i=c;i>c-n+r;i--)ox(u,i-1)}else if(r>n)for(i=c-n;i>l;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:ox(u,s);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return ex(u,c-n+r),o}});var ux=Ll("Array").splice,cx=se,lx=ux,fx=Array.prototype,dx=r((function(e){var t=e.splice;return e===fx||cx(fx,e)&&t===fx.splice?lx:t}));Er({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var hx=r(te.Number.isNaN),px="\t\n\v\f\r                 \u2028\u2029\ufeff",vx=Y,gx=Qn,yx=px,mx=g("".replace),_x=RegExp("^["+yx+"]+"),bx=RegExp("(^|[^"+yx+"])["+yx+"]+$"),wx=function(e){return function(t){var r=gx(vx(t));return 1&e&&(r=mx(r,_x,"")),2&e&&(r=mx(r,bx,"$1")),r}},Sx={start:wx(1),end:wx(2),trim:wx(3)},xx=o,kx=i,Tx=g,Rx=Qn,Ox=Sx.trim,Ex=px,Lx=xx.parseInt,Px=xx.Symbol,Ax=Px&&Px.iterator,Cx=/^[+-]?0x/i,jx=Tx(Cx.exec),Ix=8!==Lx(Ex+"08")||22!==Lx(Ex+"0x16")||Ax&&!kx((function(){Lx(Object(Ax))}))?function(e,t){var r=Ox(Rx(e));return Lx(r,t>>>0||(jx(Cx,r)?16:10))}:Lx;Er({global:!0,forced:parseInt!=Ix},{parseInt:Ix});var Mx=r(te.parseInt),Fx=ea.map;Er({target:"Array",proto:!0,forced:!Pn("map")},{map:function(e){return Fx(this,e,arguments.length>1?arguments[1]:void 0)}});var Nx=Ll("Array").map,Ux=se,Dx=Nx,Bx=Array.prototype,Hx=r((function(e){var t=e.map;return e===Bx||Ux(Bx,e)&&t===Bx.map?Dx:t}));Er({target:"Array",stat:!0},{isArray:Pr});var zx=r(te.Array.isArray),qx=Em;Er({target:"Object",stat:!0,arity:2,forced:Object.assign!==qx},{assign:qx});var Gx=r(te.Object.assign),Vx=r(bl),$x=Je,Qx=C,Yx=ee,Wx=rr,Kx=function(e){return void 0!==e&&($x(e,"value")||$x(e,"writable"))},Xx=E,Jx=Tu;Er({target:"Reflect",stat:!0},{get:function e(t,r){var n,o,i=arguments.length<3?t:arguments[2];return Wx(t)===i?t[r]:(n=Xx.f(t,r))?Kx(n)?n.value:void 0===n.get?void 0:Qx(n.get,i):Yx(o=Jx(t))?e(o,r,i):void 0}});var Zx=r(te.Reflect.get),ek=r(ud),tk=zm;Er({target:"Array",stat:!0,forced:!qv((function(e){Array.from(e)}))},{from:tk});var rk=r(te.Array.from);function nk(e,t){var r=Tl(e);if(Rl){var n=Rl(e);t&&(n=Il(n).call(n,(function(t){return ql(e,t).enumerable}))),r.push.apply(r,n)}return r}function ok(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?tf(r=nk(Object(o),!0)).call(r,(function(t){ck(e,t,o[t])})):hf?bf(e,hf(o)):tf(n=nk(Object(o))).call(n,(function(t){Of(e,t,ql(o,t))}))}return e}function ik(e){return(ik="function"==typeof Ef&&"symbol"==typeof Vx?function(e){return typeof e}:function(e){return e&&"function"==typeof Ef&&e.constructor===Ef&&e!==Ef.prototype?"symbol":typeof e})(e)}function ak(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sk(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),Of(e,dk(n.key),n)}}function uk(e,t,r){return t&&sk(e.prototype,t),r&&sk(e,r),Of(e,"prototype",{writable:!1}),e}function ck(e,t,r){return(t=dk(t))in e?Of(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lk(e){return function(e){if(zx(e))return fk(e)}(e)||function(e){if(void 0!==Ef&&null!=ek(e)||null!=e["@@iterator"])return rk(e)}(e)||function(e,t){var r;if(!e)return;if("string"==typeof e)return fk(e,t);var n=hy(r=Object.prototype.toString.call(e)).call(r,8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return rk(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fk(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 fk(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 dk(e){var t=function(e,t){if("object"!==Sl(e)||null===e)return e;var r=e[$y];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 hk={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new o(n,i||e,a),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Pf&&(n.prototype=Pf(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?hy(n).call(n,1):n);return Rl?dm(o).call(o,Rl(e)):o},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,o,i,a){var s=r?r+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,o),!0;case 5:return l.fn.call(l.context,t,n,o,i),!0;case 6:return l.fn.call(l.context,t,n,o,i,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var d,h=l.length;for(c=0;c<h;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,o);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||a(this,i);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||o&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(hk);var pk=r(hk.exports),vk=ea.some;Er({target:"Array",proto:!0,forced:!Vl("some")},{some:function(e){return vk(this,e,arguments.length>1?arguments[1]:void 0)}});var gk=Ll("Array").some,yk=se,mk=gk,_k=Array.prototype,bk=r((function(e){var t=e.some;return e===_k||yk(_k,e)&&t===_k.some?mk:t})),wk=Ir,Sk=Qn,xk=Y,kk=RangeError,Tk=g,Rk=Nr,Ok=Qn,Ek=Y,Lk=Tk((function(e){var t=Sk(xk(this)),r="",n=wk(e);if(n<0||n==1/0)throw kk("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),Pk=Tk("".slice),Ak=Math.ceil,Ck=function(e){return function(t,r,n){var o,i,a=Ok(Ek(t)),s=Rk(r),u=a.length,c=void 0===n?" ":Ok(n);return s<=u||""==c?a:((i=Lk(c,Ak((o=s-u)/c.length))).length>o&&(i=Pk(i,0,o)),e?a+i:i+a)}},jk={start:Ck(!1),end:Ck(!0)},Ik=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(ue),Mk=jk.start;Er({target:"String",proto:!0,forced:Ik},{padStart:function(e){return Mk(this,e,arguments.length>1?arguments[1]:void 0)}});var Fk,Nk=Ll("String").padStart,Uk=se,Dk=Nk,Bk=String.prototype,Hk=r((function(e){var t=e.padStart;return"string"==typeof e||e===Bk||Uk(Bk,e)&&t===Bk.padStart?Dk:t})),zk="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,qk=o,Gk=f,Vk=O,$k=zk,Qk=ue,Yk=ks,Wk=wh,Kk=qk.Function,Xk=/MSIE .\./.test(Qk)||$k&&((Fk=qk.Bun.version.split(".")).length<3||0==Fk[0]&&(Fk[1]<3||3==Fk[1]&&0==Fk[2])),Jk=function(e,t){var r=t?2:1;return Xk?function(n,o){var i=Wk(arguments.length,1)>r,a=Vk(n)?n:Kk(n),s=i?Yk(arguments,r):[],u=i?function(){Gk(a,this,s)}:a;return t?e(u,o):e(u)}:e},Zk=Er,eT=o,tT=Jk(eT.setInterval,!0);Zk({global:!0,bind:!0,forced:eT.setInterval!==tT},{setInterval:tT});var rT=Er,nT=o,oT=Jk(nT.setTimeout,!0);rT({global:!0,bind:!0,forced:nT.setTimeout!==oT},{setTimeout:oT});var iT=r(te.setInterval),aT=r(te.setTimeout),sT=ea.every;Er({target:"Array",proto:!0,forced:!Vl("every")},{every:function(e){return sT(this,e,arguments.length>1?arguments[1]:void 0)}});var uT=Ll("Array").every,cT=se,lT=uT,fT=Array.prototype,dT=r((function(e){var t=e.every;return e===fT||cT(fT,e)&&t===fT.every?lT:t})),hT=o,pT=i,vT=Qn,gT=Sx.trim,yT=px,mT=g("".charAt),_T=hT.parseFloat,bT=hT.Symbol,wT=bT&&bT.iterator,ST=1/_T(yT+"-0")!=-1/0||wT&&!pT((function(){_T(Object(wT))}))?function(e){var t=gT(vT(e)),r=_T(t);return 0===r&&"-"==mT(t,0)?-0:r}:_T;Er({global:!0,forced:parseFloat!=ST},{parseFloat:ST});var xT=r(te.parseFloat),kT=gu.PROPER,TT=i,RT=px,OT=Sx.trim;Er({target:"String",proto:!0,forced:function(e){return TT((function(){return!!RT[e]()||"​…᠎"!=="​…᠎"[e]()||kT&&RT[e].name!==e}))}("trim")},{trim:function(){return OT(this)}});var ET=Ll("String").trim,LT=se,PT=ET,AT=String.prototype,CT=r((function(e){var t=e.trim;return"string"==typeof e||e===AT||LT(AT,e)&&t===AT.trim?PT:t})),jT=ue.match(/firefox\/(\d+)/i),IT=!!jT&&+jT[1],MT=/MSIE|Trident/.test(ue),FT=ue.match(/AppleWebKit\/(\d+)\./),NT=!!FT&&+FT[1],UT=Er,DT=g,BT=Ae,HT=We,zT=Dr,qT=YS,GT=Qn,VT=i,$T=p_,QT=Vl,YT=IT,WT=MT,KT=ve,XT=NT,JT=[],ZT=DT(JT.sort),eR=DT(JT.push),tR=VT((function(){JT.sort(void 0)})),rR=VT((function(){JT.sort(null)})),nR=QT("sort"),oR=!VT((function(){if(KT)return KT<70;if(!(YT&&YT>3)){if(WT)return!0;if(XT)return XT<603;var e,t,r,n,o="";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++)JT.push({k:t+n,v:r})}for(JT.sort((function(e,t){return t.v-e.v})),n=0;n<JT.length;n++)t=JT[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));UT({target:"Array",proto:!0,forced:tR||!rR||!nR||!oR},{sort:function(e){void 0!==e&&BT(e);var t=HT(this);if(oR)return void 0===e?ZT(t):ZT(t,e);var r,n,o=[],i=zT(t);for(n=0;n<i;n++)n in t&&eR(o,t[n]);for($T(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:GT(t)>GT(r)?1:-1}}(e)),r=zT(o),n=0;n<r;)t[n]=o[n++];for(;n<i;)qT(t,n++);return t}});var iR=Ll("Array").sort,aR=se,sR=iR,uR=Array.prototype,cR=r((function(e){var t=e.sort;return e===uR||aR(uR,e)&&t===uR.sort?sR:t})),lR=Er,fR=Date,dR=g(fR.prototype.getTime);lR({target:"Date",stat:!0},{now:function(){return dR(new fR)}});var hR,pR=r(te.Date.now),vR="undefined"!=typeof window&&window.location&&AS(hR=window.location.href).call(hR,"xgplayerdebugger=1")>-1,gR="color: #525252; background-color: #90ee90;",yR="color: #525252; background-color: red;",mR="color: #525252; background-color: yellow; ",_R="%c[xgplayer]",bR={config:{debug:vR?3:0},logInfo:function(e){for(var t,r,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];this.config.debug>=3&&(r=console).log.apply(r,dm(t=[_R,gR,e]).call(t,o))},logWarn:function(e){for(var t,r,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];this.config.debug>=1&&(r=console).warn.apply(r,dm(t=[_R,mR,e]).call(t,o))},logError:function(e){var t,r;if(!(this.config.debug<1)){for(var n=this.config.debug>=2?"trace":"error",o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];(r=console)[n].apply(r,dm(t=[_R,yR,e]).call(t,i))}}},wR=function(){function e(t){ak(this,e),this.bufferedList=t}return uk(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}(),SR={};SR.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]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=document.createElement(t);return i.className=o,i.innerHTML=r,tf(e=Tl(n)).call(e,(function(e){var r=e,o=n[e];"video"===t||"audio"===t||"live-video"===t?o&&i.setAttribute(r,o):i.setAttribute(r,o)})),i},SR.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 o=n.children;if(n=null,o.length>0){var i;if(o=o[0],r&&SR.addClass(o,r),t)tf(i=Tl(t)).call(i,(function(e){o.setAttribute(e,t[e])}));return o}return null}catch(a){return bR.logError("util.createDomFromHtml",a),null}},SR.hasClass=function(e,t){if(!e||!t)return!1;try{return bk(Array.prototype).call(e.classList,(function(e){return e===t}))}catch(n){var r=e.className&&"object"===ik(e.className)?e.getAttribute("class"):e.className;return r&&!!r.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},SR.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){SR.hasClass(e,t)||(e.className&&"object"===ik(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},SR.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(o){var n;if(SR.hasClass(e,t))tf(n=t.split(/\s+/g)).call(n,(function(t){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===ik(e.className)?e.setAttribute("class",e.getAttribute("class").replace(r," ")):e.className=e.className.replace(r," ")}))}},SR.toggleClass=function(e,t){var r;e&&tf(r=t.split(/\s+/g)).call(r,(function(t){SR.hasClass(e,t)?SR.removeClass(e,t):SR.addClass(e,t)}))},SR.classNames=function(){for(var e=arguments,t=[],r=function(r){if("String"===SR.typeOf(e[r]))t.push(e[r]);else if("Object"===SR.typeOf(e[r])){var n;Hx(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(" ")},SR.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){bR.logError("util.findDom",n),0===AS(r).call(r,"#")&&(e=t.getElementById(hy(r).call(r,1)))}return e},SR.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},SR.padStart=function(e,t,r){for(var n=String(r),o=t>>0,i=Math.ceil(o/n.length),a=[],s=String(e);i--;)a.push(n);return a.join("").substring(0,o-s.length)+s},SR.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=Hk(SR).call(SR,Math.floor(e/3600),2,0),r=Hk(SR).call(SR,Math.floor((e-3600*t)/60),2,0),n=Hk(SR).call(SR,Math.floor(e-3600*t-60*r),2,0);return("00"===t?[r,n]:[t,r,n]).join(":")},SR.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},SR.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},SR.deepCopy=function(e,t){var r;if("Object"===SR.typeOf(t)&&"Object"===SR.typeOf(e))return tf(r=Tl(t)).call(r,(function(r){if("Object"!==SR.typeOf(t[r])||t[r]instanceof Node)if("Array"===SR.typeOf(t[r])){var n;e[r]="Array"===SR.typeOf(e[r])?dm(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]:SR.deepCopy(e[r],t[r])})),e},SR.deepMerge=function(e,t){var r;return Hx(r=Tl(t)).call(r,(function(r){var n;"Array"===SR.typeOf(t[r])&&"Array"===SR.typeOf(e[r])?"Array"===SR.typeOf(e[r])&&(n=e[r]).push.apply(n,lk(t[r])):SR.typeOf(e[r])!==SR.typeOf(t[r])||null===e[r]||"Object"!==SR.typeOf(e[r])||t[r]instanceof window.Node?null!==t[r]&&(e[r]=t[r]):SR.deepMerge(e[r],t[r])})),e},SR.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},SR.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""},SR.setInterval=function(e,t,r,n){e._interval[t]||(e._interval[t]=iT(Py(r).call(r,e),n))},SR.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},SR.setTimeout=function(e,t,r){e._timers||(e._timers=[]);var n=aT((function(){t(),SR.clearTimeout(e,n)}),r);return e._timers.push(n),n},SR.clearTimeout=function(e,t){var r=e._timers;if("Array"===SR.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===t){dx(r).call(r,n,1),clearTimeout(t);break}}else clearTimeout(t)},SR.clearAllTimers=function(e){var t=e._timers;"Array"===SR.typeOf(t)&&(Hx(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},SR.createImgBtn=function(e,t,r,n){var o,i,a,s,u,c,l,f,d,h,p,v,g=SR.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(g.style.backgroundImage='url("'.concat(t,'")'),r&&n)&&(dT(o=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(o,(function(e){var t,o;return!(AS(r).call(r,e)>-1&&AS(n).call(n,e)>-1)||(l=xT(CT(t=hy(r).call(r,0,AS(r).call(r,e))).call(t)),f=xT(CT(o=hy(n).call(n,0,AS(n).call(n,e))).call(o)),d=e,!1)})),g.style.width=dm(i="".concat(l)).call(i,d),g.style.height=dm(a="".concat(f)).call(a,d),g.style.backgroundSize=dm(s=dm(u=dm(c="".concat(l)).call(c,d," ")).call(u,f)).call(s,d),g.style.margin="start"===e?dm(h=dm(p=dm(v="-".concat(f/2)).call(v,d," auto auto -")).call(p,l/2)).call(h,d):"auto 5px auto 5px");return g},SR.Hex2RGBA=function(e,t){var r,n=[];if(/^\#[0-9A-F]{3}$/i.test(e)){var o="#";e.replace(/[0-9A-F]/gi,(function(e){o+=e+e})),e=o}return/^#[0-9A-F]{6}$/i.test(e)?(e.replace(/[0-9A-F]{2}/gi,(function(e){n.push(Mx(e,16))})),dm(r="rgba(".concat(n.join(","),", ")).call(r,t,")")):"rgba(255, 255, 255, 0.1)"},SR.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},SR.checkIsFunction=function(e){return e&&"function"==typeof e},SR.checkIsObject=function(e){return null!==e&&"object"===ik(e)},SR.hide=function(e){e.style.display="none"},SR.show=function(e,t){e.style.display=t||"block"},SR.isUndefined=function(e){if(null==e)return!0},SR.isNotNull=function(e){return!(null==e)},SR.setStyleFromCsstext=function(e,t){if(t)if("String"===SR.typeOf(t)){var r=t.replace(/\s+/g,"").split(";");Hx(r).call(r,(function(t){if(t){var r=t.split(":");r.length>1&&(e.style[r[0]]=r[1])}}))}else{var n;Hx(n=Tl(t)).call(n,(function(r){e.style[r]=t[r]}))}},SR.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 o=n.replace(/\s+/g,"").split(";"),i={},a={};return Hx(o).call(o,(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(AS(e).call(e,t[r])>-1)return!0;return!1}(t[0],r)?a[t[0]]=t[1]:i[t[0]]=t[1])}})),e.setAttribute("style",""),Hx(t=Tl(a)).call(t,(function(t){e.style[t]=a[t]})),i},SR.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var r=t.replace(/\s+/g,"").split(";"),n={};return Hx(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(n[t[0]]=t[1])}})),n},SR.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}},SR.stopPropagation=function(e){e&&e.stopPropagation()},SR.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},SR.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},SR.checkTouchSupport=function(){return"ontouchstart"in window},SR.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)});cR(r).call(r,(function(e,t){var r=e.start-t.start;return r||t.end-e.end}));var o=[];if(t)for(var i=0;i<r.length;i++){var a=o.length;if(a){var s=o[a-1].end;r[i].start-s<t?r[i].end>s&&(o[a-1].end=r[i].end):o.push(r[i])}else o.push(r[i])}else o=r;return new wR(o)},SR.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}},SR.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},SR.getHostFromUrl=function(e){if("String"!==SR.typeOf(e))return"";var t=e.split("/"),r="";return t.length>3&&t[2]&&(r=t[2]),r},SR.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},SR.isMSE=function(e){return e.media&&(e=e.media),!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},SR.isBlob=function(e){return"string"==typeof e&&/^blob/.test(e)},SR.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=Mx(e)}catch(r){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=Mx(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)}))},SR.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},SR.adjustTimeByDuration=function(e,t,r){return t&&e&&(e>t||r&&e<t)?t:e},SR.createPositionBar=function(e,t){var r=SR.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(r),r},SR.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:dm(e="".concat(t.x||0,"%, ")).call(e,t.y||0,"%"),rotate:"".concat(t.rotate||0,"deg")},o=Tl(n);return tf(o).call(o,(function(e){var t,o=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),i=dm(t="".concat(e,"(")).call(t,n[e],")");o.test(r)?(o.lastIndex=-1,r=r.replace(o,i)):r+="".concat(i," ")})),r},SR.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360},SR.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 o=1;o<r;o++)if(e>t[o-1].end&&e<=t[o].end){n=o;break}return n},SR.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:SR.getIndexByTime(e,t))<0)return-1;var o=t.length,i=t[n],a=i.start,s=i.end,u=i.cTime,c=i.offset;return e<a?u:e>=a&&e<=s?e-c:e>s&&n>=o-1?s:-1},SR.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 o=t[r].start;return r-1<0?o+e:o+(e-t[r-1].duration)}return e};var xR="3.0.19-rc.0",kR={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},TR=uk((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};ak(this,e);var n=t&&t.i18n?t.i18n.ERROR_TYPES:null;if(t.media){var o,i=r.mediaError?r.mediaError:t.media.error||{},a=t.duration,s=t.currentTime,u=t.ended,c=t.src,l=t.currentSrc,f=t.media,d=f.readyState,h=f.networkState,p=r.errorCode||i.code;kR[p]&&(p=kR[p]);var v={playerVersion:xR,currentTime:s,duration:a,ended:u,readyState:d,networkState:h,src:c||l,errorType:r.errorType,errorCode:p,message:r.errorMessage||i.message,mediaError:i,originError:r.originError?r.originError.stack:"",host:SR.getHostFromUrl(c||l)};return r.ext&&Hx(o=Tl(r.ext)).call(o,(function(e){v[e]=r.ext[e]})),v}if(arguments.length>1){for(var g={playerVersion:xR,domain:document.domain},y=["errorType","currentTime","duration","networkState","readyState","src","currentSrc","ended","errd","errorCode","mediaError"],m=0;m<arguments.length;m++)g[y[m]]=arguments[m];return g.ex=n?(n[arguments[0]]||{}).msg:"",g}}));function RR(e,t,r){for(var n,o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];var s,u=t.call.apply(t,dm(n=[e]).call(n,i));r&&"function"==typeof r&&(u&&u.then?u.then((function(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];r.call.apply(r,dm(t=[e]).call(t,o))})):r.call.apply(r,dm(s=[e]).call(s,i)))}function OR(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),Py(r=function(){var r,o=arguments,i=this;if(n.pre)try{var a,s;(s=n.pre).call.apply(s,dm(a=[this]).call(a,hy(Array.prototype).call(arguments)))}catch(y){var u,c;throw y.message=dm(u=dm(c="[pluginName: ".concat(this.pluginName,":")).call(c,e,":pre error] >> ")).call(u,y.message),y}if(this.__hooks&&this.__hooks[e])try{var l,f,d,h=(f=this.__hooks[e]).call.apply(f,dm(l=[this,this]).call(l,hy(Array.prototype).call(arguments)));if(h)if(h.then)h.then((function(e){var r;!1!==e&&RR.apply(void 0,dm(r=[i,t,n.next]).call(r,lk(o)))})).catch((function(e){throw e}));else RR.apply(void 0,dm(d=[this,t,n.next]).call(d,hy(Array.prototype).call(arguments)));else if(void 0===h){var p;RR.apply(void 0,dm(p=[this,t,n.next]).call(p,hy(Array.prototype).call(arguments)))}}catch(y){var v,g;throw y.message=dm(v=dm(g="[pluginName: ".concat(this.pluginName,":")).call(g,e,"] >> ")).call(v,y.message),y}else RR.apply(void 0,dm(r=[this,t,n.next]).call(r,hy(Array.prototype).call(arguments)))}).call(r,this)}function ER(e,t){var r=this.__hooks;if(r)return r.hasOwnProperty(e)?(r&&(r[e]=t),!0):(console.warn("has no supported hook which name [".concat(e,"]")),!1)}function LR(e,t){var r=this.__hooks;r&&delete r[e]}function PR(e,t){var r;bR.logError(dm(r="[".concat(e,"] event or callback cant be undefined or null when call ")).call(r,t))}var AR=function(){function e(t){ak(this,e),SR.checkIsFunction(this.beforeCreate)&&this.beforeCreate(t),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.__hooks={},t&&Hx(t).call(t,(function(t){e.__hooks[t]=null})),Of(e,"hooks",{get:function(){var t;return e.__hooks&&Hx(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 uk(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=SR.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)):zx(e)&&tf(e).call(e,(function(e){r.__events[e]=t,r.player.on(e,t)})):PR(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)):zx(e)&&tf(e).call(e,(function(n){r.__onceEvents[n]=t,r.player.once(e,t)})):PR(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)):zx(e)&&tf(e).call(e,(function(n){delete r.__events[e],r.player.off(n,t)})):PR(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,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];(r=this.player).emit.apply(r,dm(t=[e]).call(t,o))}}},{key:"emitUserAction",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.player){var n=ok(ok({},r),{},{pluginName:this.pluginName});this.player.emitUserAction(e,t,n)}}},{key:"hook",value:function(e,t){var r;return OR.call.apply(OR,dm(r=[this]).call(r,hy(Array.prototype).call(arguments)))}},{key:"useHooks",value:function(e,t){for(var r,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return ER.call.apply(ER,dm(r=[this]).call(r,hy(Array.prototype).call(arguments)))}},{key:"removeHooks",value:function(e,t){for(var r,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return LR.call.apply(LR,dm(r=[this]).call(r,hy(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(),SR.clearAllTimers(this),SR.checkIsFunction(this.destroy)&&this.destroy(),Hx(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)&&Of(e,r,t[r])}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),e}(),CR=te,jR=f;CR.JSON||(CR.JSON={stringify:JSON.stringify});var IR=function(e,t,r){return jR(CR.JSON.stringify,null,arguments)},MR=r(IR),FR=ee,NR=b,UR=dt("match"),DR=function(e){var t;return FR(e)&&(void 0!==(t=e[UR])?!!t:"RegExp"==NR(e))},BR=TypeError,HR=dt("match"),zR=no.includes;Er({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return zR(this,e,arguments.length>1?arguments[1]:void 0)}});var qR=Ll("Array").includes,GR=Er,VR=function(e){if(DR(e))throw BR("The method doesn't accept regular expressions");return e},$R=Y,QR=Qn,YR=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[HR]=!1,"/./"[e](t)}catch(n){}}return!1},WR=g("".indexOf);GR({target:"String",proto:!0,forced:!YR("includes")},{includes:function(e){return!!~WR(QR($R(this)),QR(VR(e)),arguments.length>1?arguments[1]:void 0)}});var KR=Ll("String").includes,XR=se,JR=qR,ZR=KR,eO=Array.prototype,tO=String.prototype,rO=r((function(e){var t=e.includes;return e===eO||XR(eO,e)&&t===eO.includes?JR:"string"==typeof e||e===tO||XR(tO,e)&&t===tO.includes?ZR:t})),nO={exports:{}},oO=i((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),iO=i,aO=ee,sO=b,uO=oO,cO=Object.isExtensible,lO=iO((function(){cO(1)}))||uO?function(e){return!!aO(e)&&((!uO||"ArrayBuffer"!=sO(e))&&(!cO||cO(e)))}:cO,fO=!i((function(){return Object.isExtensible(Object.preventExtensions({}))})),dO=Er,hO=g,pO=oo,vO=ee,gO=Je,yO=Xt.f,mO=Ho,_O=Go,bO=lO,wO=fO,SO=!1,xO=nt("meta"),kO=0,TO=function(e){yO(e,xO,{value:{objectID:"O"+kO++,weakData:{}}})},RO=nO.exports={enable:function(){RO.enable=function(){},SO=!0;var e=mO.f,t=hO([].splice),r={};r[xO]=1,e(r).length&&(mO.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===xO){t(n,o,1);break}return n},dO({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:_O.f}))},fastKey:function(e,t){if(!vO(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!gO(e,xO)){if(!bO(e))return"F";if(!t)return"E";TO(e)}return e[xO].objectID},getWeakData:function(e,t){if(!gO(e,xO)){if(!bO(e))return!0;if(!t)return!1;TO(e)}return e[xO].weakData},onFreeze:function(e){return wO&&SO&&bO(e)&&!gO(e,xO)&&TO(e),e}};pO[xO]=!0;var OO=nO.exports,EO=Er,LO=o,PO=OO,AO=i,CO=gr,jO=jd,IO=lh,MO=O,FO=ee,NO=Pi,UO=Xt.f,DO=ea.forEach,BO=L,HO=$i.set,zO=$i.getterFor,qO=Bo,GO=ai,VO=u_,$O=Kt,QO=lh,YO=V,WO=jd,KO=pc,XO=vc,JO=sh,ZO=L,eE=OO.fastKey,tE=$i.set,rE=$i.getterFor,nE={getConstructor:function(e,t,r,n){var o=e((function(e,o){QO(e,i),tE(e,{type:t,index:qO(null),first:void 0,last:void 0,size:0}),ZO||(e.size=0),YO(o)||WO(o,e[n],{that:e,AS_ENTRIES:r})})),i=o.prototype,a=rE(t),s=function(e,t,r){var n,o,i=a(e),s=u(e,t);return s?s.value=r:(i.last=s={index:o=eE(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=s),n&&(n.next=s),ZO?i.size++:e.size++,"F"!==o&&(i.index[o]=s)),e},u=function(e,t){var r,n=a(e),o=eE(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return VO(i,{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,ZO?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=u(t,e);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),ZO?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=$O(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!u(this,e)}}),VO(i,r?{get:function(e){var t=u(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),ZO&&GO(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=rE(t),i=rE(n);KO(e,t,(function(e,t){tE(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(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)?XO("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,XO(void 0,!0))}),r?"entries":"values",!r,!0),JO(t)}};(function(e,t,r){var n,o=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),a=o?"set":"add",s=LO[e],u=s&&s.prototype,c={};if(BO&&MO(s)&&(i||u.forEach&&!AO((function(){(new s).entries().next()})))){var l=(n=t((function(t,r){HO(IO(t,l),{type:e,collection:new s}),null!=r&&jO(r,t[a],{that:t,AS_ENTRIES:o})}))).prototype,f=zO(e);DO(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in u)||i&&"clear"==e||CO(l,e,(function(r,n){var o=f(this).collection;if(!t&&i&&!FO(r))return"get"==e&&void 0;var a=o[e](0===r?0:r,n);return t?this:a}))})),i||UO(l,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(t,e,o,a),PO.enable();NO(n,e,!1,!0),c[e]=n,EO({global:!0,forced:!0},c),i||r.setStrong(n,e,o)})("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),nE);var oE=te.Map,iE=Kt,aE=C,sE=Ae,uE=ph,cE=V,lE=jd,fE=[].push,dE=function(e){var t,r,n,o,i=arguments.length,a=i>1?arguments[1]:void 0;return uE(this),(t=void 0!==a)&&sE(a),cE(e)?new this:(r=[],t?(n=0,o=iE(a,i>2?arguments[2]:void 0),lE(e,(function(e){aE(fE,r,o(e,n++))}))):lE(e,fE,{that:r}),new this(r))};Er({target:"Map",stat:!0,forced:!0},{from:dE});var hE=ks,pE=function(){return new this(hE(arguments))};Er({target:"Map",stat:!0,forced:!0},{of:pE});var vE=Oe,gE=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(vE(e)+" is not a map")},yE=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},mE=ae("Map"),_E={Map:mE,set:yE("set",2),get:yE("get",1),has:yE("has",1),remove:yE("delete",1),proto:mE.prototype},bE=gE,wE=_E.remove;Er({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=bE(this),r=!0,n=0,o=arguments.length;n<o;n++)e=wE(t,arguments[n]),r=r&&e;return!!r}});var SE=gE,xE=_E.get,kE=_E.has,TE=_E.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,o=SE(this);return kE(o,e)?(r=xE(o,e),"update"in t&&(r=t.update(r,e,o),TE(o,e,r)),r):(n=t.insert(e,o),TE(o,e,n),n)}});var RE=C,OE=function(e,t,r){for(var n,o,i=r||e.next;!(n=RE(i,e)).done;)if(void 0!==(o=t(n.value)))return o},EE=function(e,t,r){return r?OE(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},LE=Kt,PE=gE,AE=EE;Er({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=PE(this),r=LE(e,arguments.length>1?arguments[1]:void 0);return!1!==AE(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var CE=Kt,jE=gE,IE=EE,ME=_E.Map,FE=_E.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=jE(this),r=CE(e,arguments.length>1?arguments[1]:void 0),n=new ME;return IE(t,(function(e,o){r(e,o,t)&&FE(n,o,e)})),n}});var NE=Kt,UE=gE,DE=EE;Er({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=UE(this),r=NE(e,arguments.length>1?arguments[1]:void 0),n=DE(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}});var BE=Kt,HE=gE,zE=EE;Er({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=HE(this),r=BE(e,arguments.length>1?arguments[1]:void 0),n=zE(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var qE=Er,GE=C,VE=O,$E=Ae,QE=jd,YE=_E.Map,WE=g([].push);qE({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new(VE(this)?this:YE);$E(t);var n=$E(r.has),o=$E(r.get),i=$E(r.set);return QE(e,(function(e){var a=t(e);GE(n,r,a)?WE(GE(o,r,a),e):GE(i,r,a,[e])})),r}});var KE=function(e,t){return e===t||e!=e&&t!=t},XE=gE,JE=EE;Er({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===JE(XE(this),(function(t){if(KE(t,e))return!0}),!0)}});var ZE=C,eL=jd,tL=O,rL=Ae,nL=_E.Map;Er({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(tL(this)?this:nL);rL(t);var n=rL(r.set);return eL(e,(function(e){ZE(n,r,t(e),e)})),r}});var oL=gE,iL=EE;Er({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=iL(oL(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var aL=Kt,sL=gE,uL=EE,cL=_E.Map,lL=_E.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=sL(this),r=aL(e,arguments.length>1?arguments[1]:void 0),n=new cL;return uL(t,(function(e,o){lL(n,r(e,o,t),e)})),n}});var fL=Kt,dL=gE,hL=EE,pL=_E.Map,vL=_E.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=dL(this),r=fL(e,arguments.length>1?arguments[1]:void 0),n=new pL;return hL(t,(function(e,o){vL(n,o,r(e,o,t))})),n}});var gL=gE,yL=jd,mL=_E.set;Er({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=gL(this),r=arguments.length,n=0;n<r;)yL(arguments[n++],(function(e,r){mL(t,e,r)}),{AS_ENTRIES:!0});return t}});var _L=Ae,bL=gE,wL=EE,SL=TypeError;Er({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=bL(this),r=arguments.length<2,n=r?void 0:arguments[1];if(_L(e),wL(t,(function(o,i){r?(r=!1,n=o):n=e(n,o,i,t)})),r)throw SL("Reduce of empty map with no initial value");return n}});var xL=Kt,kL=gE,TL=EE;Er({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=kL(this),r=xL(e,arguments.length>1?arguments[1]:void 0);return!0===TL(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var RL=Ae,OL=gE,EL=TypeError,LL=_E.get,PL=_E.has,AL=_E.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=OL(this),n=arguments.length;RL(t);var o=PL(r,e);if(!o&&n<3)throw EL("Updating absent value");var i=o?LL(r,e):RL(n>2?arguments[2]:void 0)(e,r);return AL(r,e,t(i,e,r)),r}});var CL=C,jL=Ae,IL=O,ML=rr,FL=TypeError,NL=function(e,t){var r,n=ML(this),o=jL(n.get),i=jL(n.has),a=jL(n.set),s=arguments.length>2?arguments[2]:void 0;if(!IL(t)&&!IL(s))throw FL("At least one callback required");return CL(i,n,e)?(r=CL(o,n,e),IL(t)&&(r=t(r),CL(a,n,e,r))):IL(s)&&(r=s(),CL(a,n,e,r)),r};Er({target:"Map",proto:!0,real:!0,forced:!0},{upsert:NL}),Er({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:NL});var UL=r(oE);function DL(e,t){var r=Tl(e);if(Rl){var n=Rl(e);t&&(n=Il(n).call(n,(function(t){return ql(e,t).enumerable}))),r.push.apply(r,n)}return r}function BL(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?tf(r=DL(Object(o),!0)).call(r,(function(t){YL(e,t,o[t])})):hf?bf(e,hf(o)):tf(n=DL(Object(o))).call(n,(function(t){Of(e,t,ql(o,t))}))}return e}function HL(){HL=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Of||function(e,t,r){e[t]=r.value},o="function"==typeof Ef?Ef:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r){return Of(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(O){u=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var i=t&&t.prototype instanceof d?t:d,a=Pf(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:b(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=c;var f={};function d(){}function h(){}function p(){}var v={};u(v,i,(function(){return this}));var g=If&&If(If(T([])));g&&g!==t&&r.call(g,i)&&(v=g);var y=p.prototype=d.prototype=Pf(v);function m(e){var t;tf(t=["next","throw","return"]).call(t,(function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var u=l(e[n],e,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Sl(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,s)}))}s(u.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],tf(e).call(e,S,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=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 o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=p,n(y,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=u(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Mf?Mf(e,p):(e.__proto__=p,u(e,s,"GeneratorFunction")),e.prototype=Pf(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),u(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Dg);var a=new _(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),u(y,s,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return Yg(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,k.prototype={constructor:k,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,x),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+hy(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 o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.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),x(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}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 zL(e){return(zL="function"==typeof Ef&&"symbol"==typeof Vx?function(e){return typeof e}:function(e){return e&&"function"==typeof Ef&&e.constructor===Ef&&e!==Ef.prototype?"symbol":typeof e})(e)}function qL(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(BA){return void r(BA)}s.done?t(u):Dg.resolve(u).then(n,o)}function GL(e){return function(){var t=this,r=arguments;return new Dg((function(n,o){var i=e.apply(t,r);function a(e){qL(i,n,o,a,s,"next",e)}function s(e){qL(i,n,o,a,s,"throw",e)}a(void 0)}))}}function VL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $L(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),Of(e,sP(n.key),n)}}function QL(e,t,r){return t&&$L(e.prototype,t),r&&$L(e,r),Of(e,"prototype",{writable:!1}),e}function YL(e,t,r){return(t=sP(t))in e?Of(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WL(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Pf(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Of(e,"prototype",{writable:!1}),t&&XL(e,t)}function KL(e){var t;return(KL=Mf?Py(t=If).call(t):function(e){return e.__proto__||If(e)})(e)}function XL(e,t){var r;return(XL=Mf?Py(r=Mf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function JL(){if("undefined"==typeof Reflect||!Vy)return!1;if(Vy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Vy(Boolean,[],(function(){}))),!0}catch(e){return!1}}function ZL(e,t,r){var n;JL()?ZL=Py(n=Vy).call(n):ZL=function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Py(Function).apply(e,n));return r&&XL(o,r.prototype),o};return ZL.apply(null,arguments)}function eP(e){var t="function"==typeof UL?new UL:void 0;return eP=function(e){if(null===e||(r=e,-1===AS(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,o)}function o(){return ZL(e,arguments,KL(this).constructor)}return o.prototype=Pf(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),XL(o,e)},eP(e)}function tP(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Tl(e);for(n=0;n<i.length;n++)r=i[n],AS(t).call(t,r)>=0||(o[r]=e[r]);return o}(e,t);if(Rl){var i=Rl(e);for(n=0;n<i.length;n++)r=i[n],AS(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function rP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nP(e){var t=JL();return function(){var r,n=KL(e);if(t){var o=KL(this).constructor;r=Vy(n,arguments,o)}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 rP(e)}(this,r)}}function oP(){var e;"undefined"!=typeof Reflect&&Zx?oP=Py(e=Zx).call(e):oP=function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=KL(e)););return e}(e,t);if(n){var o=ql(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}};return oP.apply(this,arguments)}function iP(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 aP(e,t){var r=void 0!==Ef&&ek(e)||e["@@iterator"];if(!r){if(zx(e)||(r=function(e,t){var r;if(e){if("string"==typeof e)return iP(e,t);var n=hy(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?rk(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iP(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function sP(e){var t=function(e,t){if("object"!==Sl(e)||null===e)return e;var r=e[$y];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 uP=Ae,cP=We,lP=G,fP=Dr,dP=TypeError,hP=function(e){return function(t,r,n,o){uP(r);var i=cP(t),a=lP(i),s=fP(i),u=e?s-1:0,c=e?-1:1;if(n<2)for(;;){if(u in a){o=a[u],u+=c;break}if(u+=c,e?u<0:s<=u)throw dP("Reduce of empty array with no initial value")}for(;e?u>=0:s>u;u+=c)u in a&&(o=r(o,a[u],u,i));return o}},pP={left:hP(!1),right:hP(!0)}.left;Er({target:"Array",proto:!0,forced:!rh&&ve>79&&ve<83||!Vl("reduce")},{reduce:function(e){var t=arguments.length;return pP(this,e,t,t>1?arguments[1]:void 0)}});var vP,gP=Ll("Array").reduce,yP=se,mP=gP,_P=Array.prototype,bP=r((function(e){var t=e.reduce;return e===_P||yP(_P,e)&&t===_P.reduce?mP:t})),wP="network",SP="network_timeout",xP="network_forbidden",kP="network_notfound",TP="network_range_not_satisfiable",RP="demux",OP="remux",EP="media",LP="drm",PP="other",AP="runtime",CP=(YL(vP={},"manifest",{HLS:1100,DASH:1200}),YL(vP,wP,2100),YL(vP,SP,2101),YL(vP,xP,2103),YL(vP,kP,2104),YL(vP,TP,2116),YL(vP,RP,{FLV:3100,HLS:3200,MP4:3300,FMP4:3400,SIDX:3410}),YL(vP,OP,{FMP4:4100,MP4:4200}),YL(vP,EP,{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}),YL(vP,LP,{LICENSE:7100,CUSTOM_LICENSE:7200}),YL(vP,PP,8e3),YL(vP,AP,{NO_CANPLAY_ERROR:9001,BUFFERBREAK_ERROR:9002,WAITING_TIMEOUT_ERROR:9003}),vP),jP=function(e){WL(r,e);var t=nP(r);function r(e,n,o,i,a){var s;return VL(this,r),(s=t.call(this,a||(null==o?void 0:o.message))).errorType=e===SP?wP:e,s.originError=o,s.ext=i,s.errorCode=CP[e][n]||CP[e],s.errorMessage=s.message,s.errorCode||(s.errorType=PP,s.errorCode=CP[s.errorType]),s}return QL(r,null,[{key:"create",value:function(e,t,n,o,i){return e instanceof r?e:(e instanceof Error&&(n=e,e=""),e||(e=PP),new r(e,t,n,o,i))}},{key:"network",value:function(e){var t;return new r(null!=e&&e.isTimeout?SP:wP,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}(eP(Error)),IP=1,MP=2,FP=3,NP=4,UP=["Boolean","Number","String","Undefined","Null","Date","Object"],DP=function(){function e(t,r){VL(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 QL(e,[{key:"debug",value:function(){for(var t,r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];this.logCache.apply(this,dm(t=[IP]).call(t,i)),e.disabled||(n=console).debug.apply(n,dm(r=[this._prefix,BP()]).call(r,i))}},{key:"log",value:function(){for(var t,r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];this.logCache.apply(this,dm(t=[MP]).call(t,i)),e.disabled||(n=console).log.apply(n,dm(r=[this._prefix,BP()]).call(r,i))}},{key:"warn",value:function(){for(var t,r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];this.logCache.apply(this,dm(t=[FP]).call(t,i)),e.disabled||(n=console).warn.apply(n,dm(r=[this._prefix,BP()]).call(r,i))}},{key:"error",value:function(){for(var t,r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];this.logCache.apply(this,dm(t=[NP]).call(t,i)),e.disabled||(n=console).error.apply(n,dm(r=[this._prefix,BP()]).call(r,i))}},{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),o=1;o<r;o++)n[o-1]=arguments[o];var i=Hx(n).call(n,(function(e){return zP(e)}));t=this._prefix+BP()+MR(i)}catch(s){return}if(e>=this.logCacheLevel&&(this.logSize+=t.length,this.logTextArray.push(t)),this.logSize>this.logMaxSize){var a=this.logTextArray.shift();this.logSize-=a.length}}}},{key:"getLogCache",value:function(){var e=this.logTextArray.join("\n");return this.reset(),e}},{key:"reset",value:function(){this.logTextArray=[],this.logSize=0}},{key:"table",value:function(){var t;e.disabled||(console.group(this._prefix),(t=console).table.apply(t,arguments),console.groupEnd())}},{key:"setLogLevel",value:function(e){this.logCacheLevel=e}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();function BP(){return(new Date).toLocaleString()}function HP(e){var t;if("object"!==zL(e))return e;var r=hy(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 zP(e,t,r){var n;r||(r=1),t||(t=2);var o={};if(!e||"object"!==zL(e))return e;var i=hy(n=Object.prototype.toString.call(e)).call(n,8,-1);if(!rO(UP).call(UP,i))return i;if(!(r>t)){for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r===t?o[a]=HP(e[a]):"object"===zL(e[a])?o[a]=zP(e[a],t,r+1):o[a]=e[a]);return o}}YL(DP,"disabled",!0);var qP="fetch",GP="xhr",VP="arraybuffer",$P="text",QP="json",YP=function(e){WL(r,e);var t=nP(r);function r(e,n,o,i){var a;return VL(this,r),YL(rP(a=t.call(this,i)),"retryCount",0),YL(rP(a),"isTimeout",!1),YL(rP(a),"loaderType",qP),YL(rP(a),"startTime",0),YL(rP(a),"endTime",0),YL(rP(a),"options",{}),a.url=e,a.request=n,a.response=o,a}return QL(r)}(eP(Error)),WP=Object.prototype.toString;function KP(e){if("[object Object]"!==WP.call(e))return!1;var t=If(e);return null===t||t===Object.prototype}function XP(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 JP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ZP(e,t){var r,n;if(e){if(!t)return e;var o,i=Il(r=Hx(n=Tl(t)).call(n,(function(e){if(null!=(o=t[e]))return zx(o)?e+="[]":o=[o],Hx(o).call(o,(function(t){var r,n;return n=t,"[object Date]"===WP.call(n)?t=t.toISOString():function(e){return null!==e&&"object"===zL(e)}(t)&&(t=MR(t)),dm(r="".concat(JP(e),"=")).call(r,JP(t))})).join("&")}))).call(r,Boolean).join("&");if(i){var a=AS(e).call(e,"#");-1!==a&&(e=hy(e).call(e,0,a)),e+=(-1===AS(e).call(e,"?")?"?":"&")+i}return e}}function eA(e,t,r,n,o,i,a,s,u,c,l){return o=null!=o?xT(o):null,n=Mx(n||"0",10),hx(n)&&(n=0),{data:e,done:t,options:{range:u,vid:c,index:s,contentLength:n,age:o,startTime:i,firstByteTime:a,endTime:pR(),priOptions:l},response:r}}function tA(e,t){return Math.round(8*e*1e3/t/1024)}var rA="error",nA="core.ttfb",oA="core.loadstart",iA="core.loadresponseheaders",aA="core.loadcomplete",sA="core.loadretry",uA="core.metadataparsed",cA="real_time_speed",lA=2097152,fA=function(e){WL(n,e);var t,r=nP(n);function n(){var e;return VL(this,n),YL(rP(e=r.call(this)),"_abortController",null),YL(rP(e),"_timeoutTimer",null),YL(rP(e),"_reader",null),YL(rP(e),"_response",null),YL(rP(e),"_aborted",!1),YL(rP(e),"_index",-1),YL(rP(e),"_range",null),YL(rP(e),"_receivedLength",0),YL(rP(e),"_running",!1),YL(rP(e),"_logger",null),YL(rP(e),"_vid",""),YL(rP(e),"_onProcessMinLen",0),YL(rP(e),"_onCancel",null),YL(rP(e),"_priOptions",null),e}return QL(n,[{key:"load",value:function(e){var t,r=this,n=e.url,o=e.vid,i=e.timeout,a=e.responseType,s=e.onProgress,u=e.index,c=e.onTimeout,l=e.onCancel,f=e.range,d=e.transformResponse,h=e.request,p=e.params,v=e.logger,g=e.method,y=e.headers,m=e.body,_=e.mode,b=e.credentials,w=e.cache,S=e.redirect,x=e.referrer,k=e.referrerPolicy,T=e.onProcessMinLen,R=e.priOptions;this._logger=v,this._aborted=!1,this._onProcessMinLen=T,this._onCancel=l,this._abortController="undefined"!=typeof AbortController&&new AbortController,this._running=!0,this._index=u,this._range=f||[0,0],this._vid=o||n,this._priOptions=R||{};var O={method:g,headers:y,body:m,mode:_,credentials:b,cache:w,redirect:S,referrer:x,referrerPolicy:k,signal:null===(t=this._abortController)||void 0===t?void 0:t.signal},E=!1;clearTimeout(this._timeoutTimer),n=ZP(n,p);var L=XP(f);L&&(y=h?h.headers:O.headers=O.headers||(Headers?new Headers:{}),Headers&&y instanceof Headers?y.append("Range",L):y.Range=L),i&&(this._timeoutTimer=aT((function(){if(E=!0,r.cancel(),c){var e=new YP(n,O,null,"timeout");e.isTimeout=!0,c(e,{index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions})}}),i));var P=pR();return this._logger.debug("[fetch load start], index,",u,",range,",f),new Dg((function(e,t){fetch(h||n,h?void 0:O).then(function(){var o=GL(HL().mark((function o(i){var c,l,h,p;return HL().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(clearTimeout(r._timeoutTimer),r._response=i,!r._aborted&&r._running){o.next=4;break}return o.abrupt("return");case 4:if(d&&(i=d(i,n)||i),i.ok){o.next=7;break}throw new YP(n,O,i,"bad network response");case 7:if(c=pR(),a!==$P){o.next=15;break}return o.next=11,i.text();case 11:l=o.sent,r._running=!1,o.next=37;break;case 15:if(a!==QP){o.next=22;break}return o.next=18,i.json();case 18:l=o.sent,r._running=!1,o.next=37;break;case 22:if(!s){o.next=29;break}return r.resolve=e,r.reject=t,r._loadChunk(i,s,P,c),o.abrupt("return");case 29:return o.next=31,i.arrayBuffer();case 31:l=o.sent,l=new Uint8Array(l),r._running=!1,h=pR()-P,p=tA(l.byteLength,h),r.emit(cA,{speed:p,len:l.byteLength,time:h,vid:r._vid,index:r._index,range:r._range,priOptions:r._priOptions});case 37:r._logger.debug("[fetch load end], index,",u,",range,",f),e(eA(l,!0,i,i.headers.get("Content-Length"),i.headers.get("age"),P,c,u,f,r._vid,r._priOptions));case 39:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}()).catch((function(e){var o;clearTimeout(r._timeoutTimer),r._running=!1,r._aborted&&!E||((e=e instanceof YP?e:new YP(n,O,null,null===(o=e)||void 0===o?void 0:o.message)).startTime=P,e.endTime=pR(),e.isTimeout=E,e.options={index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions},t(e))}))}))}},{key:"cancel",value:(t=GL(HL().mark((function e(){return HL().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(BA){}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 o=this;if(!e.body||!e.body.getReader){this._running=!1;var i=new YP(e.url,"",e,"onProgress of bad response.body.getReader");return i.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},void this.reject(i)}this._onProcessMinLen>0&&(this._cache=new Uint8Array(lA),this._writeIdx=0);var a,s,u,c=this._reader=e.body.getReader(),l=function(){var i=GL(HL().mark((function i(){var f,d,h,p,v,g,y,m;return HL().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return s=pR(),i.prev=1,i.next=4,c.read();case 4:a=i.sent,u=pR(),i.next=13;break;case 8:return i.prev=8,i.t0=i.catch(1),u=pR(),o._aborted||(o._running=!1,i.t0.options={index:o._index,range:o._range,vid:o._vid,priOptions:o._priOptions},o.reject(i.t0)),i.abrupt("return");case 13:if(d=(null===(f=o._range)||void 0===f?void 0:f.length)>0?o._range[0]:0,h=d+o._receivedLength,!o._aborted){i.next=19;break}return o._running=!1,t(void 0,!1,{range:[h,h],vid:o._vid,index:o._index,startTime:s,endTime:u,st:r,firstByteTime:n,priOptions:o._priOptions},e),i.abrupt("return");case 19:var _;if(p=a.value?a.value.byteLength:0,o._receivedLength+=p,o._logger.debug("【fetchLoader,onProgress call】,task,",o._range,", start,",h,", end,",d+o._receivedLength,", done,",a.done),o._onProcessMinLen>0){if(o._writeIdx+p>=o._onProcessMinLen||a.done)(v=new Uint8Array(o._writeIdx+p)).set(hy(_=o._cache).call(_,0,o._writeIdx),0),p>0&&v.set(a.value,o._writeIdx),o._writeIdx=0,o._logger.debug("【fetchLoader,onProgress enough】,done,",a.done,",len,",v.byteLength,", writeIdx,",o._writeIdx);else if(p>0&&o._writeIdx+p<lA)o._cache.set(a.value,o._writeIdx),o._writeIdx+=p,o._logger.debug("【fetchLoader,onProgress cache】,len,",p,", writeIdx,",o._writeIdx);else if(p>0){var b;g=new Uint8Array(o._writeIdx+p+2048),o._logger.debug("【fetchLoader,onProgress extra start】,size,",o._writeIdx+p+2048,", datalen,",p,", writeIdx,",o._writeIdx),g.set(hy(b=o._cache).call(b,0,o._writeIdx),0),p>0&&g.set(a.value,o._writeIdx),o._writeIdx+=p,delete o._cache,o._cache=g,o._logger.debug("【fetchLoader,onProgress extra end】,len,",p,", writeIdx,",o._writeIdx)}}else v=a.value;(v&&v.byteLength>0||a.done)&&t(v,a.done,{range:[o._range[0]+o._receivedLength-(v?v.byteLength:0),o._range[0]+o._receivedLength],vid:o._vid,index:o._index,startTime:s,endTime:u,st:r,firstByteTime:n,priOptions:o._priOptions},e),a.done?(y=pR()-r,m=tA(o._receivedLength,y),o.emit(cA,{speed:m,len:o._receivedLength,time:y,vid:o._vid,index:o._index,range:o._range,priOptions:o._priOptions}),o._running=!1,o._logger.debug("[fetchLoader onProgress end],task,",o._range,",done,",a.done),o.resolve(eA(a,!0,e,e.headers.get("Content-Length"),e.headers.get("age"),r,n,o._index,o._range,o._vid,o._priOptions))):l();case 25:case"end":return i.stop()}}),i,null,[[1,8]])})));return function(){return i.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}(pk);var dA=function(e){WL(r,e);var t=nP(r);function r(){var e;return VL(this,r),YL(rP(e=t.call(this)),"_xhr",null),YL(rP(e),"_aborted",!1),YL(rP(e),"_timeoutTimer",null),YL(rP(e),"_range",null),YL(rP(e),"_receivedLength",0),YL(rP(e),"_url",null),YL(rP(e),"_onProgress",null),YL(rP(e),"_index",-1),YL(rP(e),"_headers",null),YL(rP(e),"_currentChunkSizeKB",384),YL(rP(e),"_timeout",null),YL(rP(e),"_xhr",null),YL(rP(e),"_withCredentials",null),YL(rP(e),"_startTime",-1),YL(rP(e),"_loadCompleteResolve",null),YL(rP(e),"_loadCompleteReject",null),YL(rP(e),"_runing",!1),YL(rP(e),"_logger",!1),YL(rP(e),"_vid",""),YL(rP(e),"_responseType",void 0),YL(rP(e),"_credentials",void 0),YL(rP(e),"_method",void 0),YL(rP(e),"_transformResponse",void 0),YL(rP(e),"_firstRtt",void 0),YL(rP(e),"_onCancel",null),YL(rP(e),"_priOptions",null),e}return QL(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=ZP(e.url,e.params);var r=pR();return new Dg((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 YP?e:new YP(t._url,t._request)).startTime=r,e.endTime=pR(),e.options={index:t._index,vid:t._vid,priOptions:t._priOptions},e}))}},{key:"_startLoad",value:function(){var e=null;if(this._responseType===VP&&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=pR();var o=this._xhr=new XMLHttpRequest;o.open(this._method||"GET",this._url,!0),o.responseType=this._responseType,this._timeout&&(o.timeout=this._timeout),o.withCredentials=this._withCredentials,o.onload=Py(r=this._onLoad).call(r,this),o.onreadystatechange=Py(n=this._onReadyStatechange).call(n,this),o.onerror=function(e){var r,n,o;t._running=!1;var i=new YP(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===(o=e.currentTarget)||void 0===o?void 0:o.statusText));i.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(i)},o.ontimeout=function(e){t.cancel();var r=new YP(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 i,a=this._headers||{},s=XP(e);if(s&&(a.Range=s),a)tf(i=Tl(a)).call(i,(function(e){o.setRequestHeader(e,a[e])}));this._logger.debug("[xhr.send->] tast,",this._range,",load sub range, ",e),o.send(this._body)}catch(u){u.options={index:this._index,range:e,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(u)}}},{key:"_onReadyStatechange",value:function(e){2===e.target.readyState&&this._firstRtt<0&&(this._firstRtt=pR())}},{key:"_onLoad",value:function(e){var t,r=e.target.status;if(r<200||r>299){var n=new YP(this._url,null,BL(BL({},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 o,i=null,a=!1,s=(null===(t=this._range)||void 0===t?void 0:t.length)>0?this._range[0]:0;if(this._responseType===VP){var u,c=new Uint8Array(e.target.response);if(o=s+this._receivedLength,c&&c.byteLength>0){this._receivedLength+=c.byteLength;var l=pR()-this._startTime,f=tA(this._receivedLength,l);this.emit(cA,{speed:f,len:this._receivedLength,time:l,vid:this._vid,index:this._index,range:[o,s+this._receivedLength],priOptions:this._priOptions})}i=c,a=!((null===(u=this._range)||void 0===u?void 0:u.length)>1&&this._range[1]&&this._receivedLength<this._range[1]-this._range[0]),this._logger.debug("[xhr load done->], tast :",this._range,", start",o,"end ",s+this._receivedLength,",dataLen,",c?c.byteLength:0,",receivedLength",this._receivedLength,",index,",this._index,", done,",a)}else a=!0,i=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(i,a,{index:this._index,vid:this._vid,range:[o,s+this._receivedLength],startTime:this._startTime,endTime:pR(),priOptions:this._priOptions},d),a?(this._runing=!1,this._loadCompleteResolve&&this._loadCompleteResolve(eA(this._onProgress?null:i,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,oP(KL(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={},o=aP(CT(t=e.getAllResponseHeaders()).call(t).split("\r\n"));try{for(o.s();!(r=o.n()).done;){var i=r.value.split(": ");n[i[0].toLowerCase()]=hy(i).call(i,1).join(": ")}}catch(a){o.e(a)}finally{o.f()}return n}}],[{key:"isSupported",value:function(){return"undefined"!=typeof XMLHttpRequest}}]),r}(pk),hA=["retry","retryDelay","onRetryError","transformError"],pA=function(){function e(t,r){var n,o,i;VL(this,e),this.promise=((i=new Dg((function(e,t){n=e,o=t}))).used=!1,i.resolve=function(){return i.used=!0,n.apply(void 0,arguments)},i.reject=function(){return i.used=!0,o.apply(void 0,arguments)},i),this.alive=!!r.onProgress,!r.logger&&(r.logger=new DP("Loader")),this._loaderType=t,this._loader=t===qP&&"undefined"!=typeof fetch?new fA:new dA,this._config=r,this._retryCount=0,this._retryTimer=null,this._canceled=!1,this._retryCheckFunc=r.retryCheckFunc,this._logger=r.logger}var t;return QL(e,[{key:"exec",value:function(){var e=this,t=this._config,r=t.retry,n=t.retryDelay,o=t.onRetryError,i=t.transformError,a=tP(t,hA),s=function(){var t=GL(HL().mark((function t(){var u,c,l;return HL().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._loader.load(a);case 3:u=t.sent,e.promise.resolve(u),t.next=27;break;case 7:if(t.prev=7,t.t0=t.catch(0),e._loader.running=!1,e._logger.debug("[task request catch err]",t.t0),!e._canceled){t.next=13;break}return t.abrupt("return");case 13:if(t.t0.loaderType=e._loaderType,t.t0.retryCount=e._retryCount,c=t.t0,i&&(c=i(c)||c),o&&e._retryCount>0&&o(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=aT(s,n),t.abrupt("return");case 26:e.promise.reject(c);case 27:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(){return t.apply(this,arguments)}}();return s(),this.promise}},{key:"cancel",value:(t=GL(HL().mark((function e(){return HL().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 vA(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Dg((function(t){return aT(t,e)}))}var gA,yA=function(e){WL(n,e);var t,r=nP(n);function n(e){var t;return VL(this,n),YL(rP(t=r.call(this,e)),"type",qP),YL(rP(t),"_queue",[]),YL(rP(t),"_alive",[]),YL(rP(t),"_currentTask",null),YL(rP(t),"_finnalUrl",""),YL(rP(t),"_config",void 0),t._config=function(e){return BL({loaderType:qP,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:$P,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!==GP&&fA.isSupported()||(t.type=GP),t.log=e.logger,t}return QL(n,[{key:"isFetch",value:function(){return this.type===qP}},{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=Gx({},this._config,r)).params&&(r.params=Gx({},r.params)),r.headers&&KP(r.headers)&&(r.headers=Gx({},r.headers)),r.body&&KP(r.body)&&(r.body=Gx({},r.body)),r.transformRequest&&(r=r.transformRequest(r)||r),r.logger=this.log;var n=new pA(this.type,r);return n.loader.on(cA,(function(e){t.emit(cA,e)})),this._queue.push(n),1!==this._queue.length||this._currentTask&&this._currentTask.running||this._processTask(),n.promise}},{key:"cancel",value:(t=GL(HL().mark((function e(){var t;return HL().wrap((function(e){for(var r,n,o;;)switch(e.prev=e.next){case 0:return t=dm(r=Hx(n=this._queue).call(n,(function(e){return e.cancel()}))).call(r,Hx(o=this._alive).call(o,(function(e){return e.cancel()}))),this._currentTask&&t.push(this._currentTask.cancel()),this._queue=[],this._alive=[],e.next=6,Dg.all(t);case 6:return e.next=8,vA();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=Il(n=e._alive).call(n,(function(t){return t&&t!==e._currentTask})));e._processTask()}))}}}],[{key:"isFetchSupport",value:function(){return fA.isSupported()}}]),n}(pk),mA="core.rtcstatechange",_A={},bA={},wA={exports:{}},SA=wA.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(gA=Tl(SA)).call(gA,(function(e){var t=SA[e];tf(t).call(t,(function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}));var xA=wA.exports;!function(e,t){var r=function(e){return String(Number(e))===e?Number(e):e},n=function(e,t,n){var o=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:o&&!t[e.name]&&(t[e.name]={});var i=e.push?{}:o?t[e.name]:t;!function(e,t,n,o){if(o&&!n)t[o]=r(e[1]);else for(var i=0;i<n.length;i+=1)null!=e[i+1]&&(t[n[i]]=r(e[i+1]))}(n.match(e.reg),i,e.names,e.name),e.push&&t[e.push].push(i)},o=xA,i=Py(t=RegExp.prototype.test).call(t,/^([a-z])=(.*)/);e.parse=function(e){var t,r,a={},s=[],u=a;return tf(t=Il(r=e.split(/(\r\n|\r|\n)/)).call(r,i)).call(t,(function(e){var t=e[0],r=hy(e).call(e,2);"m"===t&&(s.push({rtp:[],fmtp:[]}),u=s[s.length-1]);for(var i=0;i<(o[t]||[]).length;i+=1){var a=o[t][i];if(a.reg.test(r))return n(a,u,r)}})),a.media=s,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 bP(t=e.split(/;\s?/)).call(t,a,{})},e.parseFmtpConfig=e.parseParams,e.parsePayloads=function(e){var t;return Hx(t=e.toString().split(" ")).call(t,Number)},e.parseRemoteCandidates=function(e){for(var t,n=[],o=Hx(t=e.split(" ")).call(t,r),i=0;i<o.length;i+=3)n.push({component:o[i],ip:o[i+1],port:o[i+2]});return n},e.parseImageAttributes=function(e){var t;return Hx(t=e.split(" ")).call(t,(function(e){var t;return bP(t=e.substring(1,e.length-1).split(",")).call(t,a,{})}))},e.parseSimulcastStreamList=function(e){var t;return Hx(t=e.split(";")).call(t,(function(e){var t;return Hx(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}}))}))}}(bA);var kA=xA,TA=/%[sdv%]/g,RA=function(e){var t=1,r=arguments,n=r.length;return e.replace(TA,(function(e){if(t>=n)return e;var o=r[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(o);case"%d":return Number(o);case"%v":return""}}))},OA=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 o=0;o<t.names.length;o+=1){var i=t.names[o];t.name?n.push(r[t.name][i]):n.push(r[t.names[o]])}else n.push(r[t.name]);return RA.apply(null,n)},EA=["v","o","s","i","u","e","p","c","b","t","r","z","a"],LA=["i","c","b","a"],PA=bA,AA=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 o=t.outerOrder||EA,i=t.innerOrder||LA,a=[];return tf(o).call(o,(function(t){var r;tf(r=kA[t]).call(r,(function(r){if(r.name in e&&null!=e[r.name])a.push(OA(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(OA(t,r,e))}))}}))})),tf(n=e.media).call(n,(function(e){a.push(OA("m",kA.m[0],e)),tf(i).call(i,(function(t){var r;tf(r=kA[t]).call(r,(function(r){if(r.name in e&&null!=e[r.name])a.push(OA(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(OA(t,r,e))}))}}))}))})),a.join("\r\n")+"\r\n"};function CA(e){return new Dg((function(t){var r;null===(r=e.getStats(null))||void 0===r||r.then((function(e){var r,n,o;t((n=[],o=[],tf(r=e).call(r,(function(e){"inbound-rtp"===e.type&&n.push(e),"remote-outbound-rtp"===e.type&&o.push(e)})),Hx(n).call(n,(function(e){var t=r.get(e.codecId),n=r.get(e.trackId);return{type:e.mediaType,inboundRtp:e,remoteOutBoundRtp:BS(o).call(o,(function(t){return t.mediaType===e.mediaType})),codec:t,track:n}}))))}))})).catch((function(){}))}function jA(e){var t,r,n,o,i,a,s,u,c,l,f,d,h,p,v,g,y,m,_,b,w,S,x,k,T,R,O,E,L,P,A,C=null==e?void 0:Il(e).call(e,(function(e){return"video"===e.type}))[0],j=null==e?void 0:Il(e).call(e,(function(e){return"audio"===e.type}))[0];return C&&C.remoteOutBoundRtp&&(P={bytesSent:C.remoteOutBoundRtp.bytesSent,packetsSent:C.remoteOutBoundRtp.packetsSent}),j&&j.remoteOutBoundRtp&&(A={bytesSent:j.remoteOutBoundRtp.bytesSent,packetsSent:j.remoteOutBoundRtp.packetsSent}),{video:C?{codec:null===(t=C.codec)||void 0===t?void 0:t.mimeType,payloadType:null===(r=C.codec)||void 0===r?void 0:r.payloadType,sdpFmtpLine:null===(n=C.codec)||void 0===n?void 0:n.sdpFmtpLine,bytesReceived:(null===(o=C.inboundRtp)||void 0===o?void 0:o.bytesReceived)||0,firCount:null===(i=C.inboundRtp)||void 0===i?void 0:i.firCount,pliCount:null===(a=C.inboundRtp)||void 0===a?void 0:a.pliCount,frameHeight:null===(s=C.inboundRtp)||void 0===s?void 0:s.frameHeight,frameWidth:null===(u=C.inboundRtp)||void 0===u?void 0:u.frameWidth,framesDecoded:null===(c=C.inboundRtp)||void 0===c?void 0:c.framesDecoded,framesDropped:null===(l=C.inboundRtp)||void 0===l?void 0:l.framesDropped,framesPerSecond:null===(f=C.inboundRtp)||void 0===f?void 0:f.framesPerSecond,framesReceived:null===(d=C.inboundRtp)||void 0===d?void 0:d.framesReceived,jitter:null===(h=C.inboundRtp)||void 0===h?void 0:h.jitter,jitterBufferDelay:null===(p=C.inboundRtp)||void 0===p?void 0:p.jitterBufferDelay,keyFramesDecoded:null===(v=C.inboundRtp)||void 0===v?void 0:v.keyFramesDecoded,nackCount:null===(g=C.inboundRtp)||void 0===g?void 0:g.nackCount,packetsLost:(null===(y=C.inboundRtp)||void 0===y?void 0:y.packetsLost)||0,packetsReceived:(null===(m=C.inboundRtp)||void 0===m?void 0:m.packetsReceived)||0}:void 0,audio:j?{codec:null===(_=j.codec)||void 0===_?void 0:_.mimeType,payloadType:null===(b=j.codec)||void 0===b?void 0:b.payloadType,sdpFmtpLine:null===(w=j.codec)||void 0===w?void 0:w.sdpFmtpLine,bytesReceived:(null===(S=j.inboundRtp)||void 0===S?void 0:S.bytesReceived)||0,audioLevel:null===(x=j.inboundRtp)||void 0===x?void 0:x.audioLevel,jitter:null===(k=j.inboundRtp)||void 0===k?void 0:k.jitter,jitterBufferDelay:null===(T=j.inboundRtp)||void 0===T?void 0:T.jitterBufferDelay,packetsLost:(null===(R=j.inboundRtp)||void 0===R?void 0:R.packetsLost)||0,packetsReceived:(null===(O=j.inboundRtp)||void 0===O?void 0:O.packetsReceived)||0,totalSamplesDuration:null===(E=j.inboundRtp)||void 0===E?void 0:E.totalSamplesDuration,totalSamplesReceived:null===(L=j.inboundRtp)||void 0===L?void 0:L.totalSamplesReceived}:void 0,videoRemote:P,audioRemote:A}}_A.write=AA,_A.parse=PA.parse,_A.parseParams=PA.parseParams,_A.parseFmtpConfig=PA.parseFmtpConfig,_A.parsePayloads=PA.parsePayloads,_A.parseRemoteCandidates=PA.parseRemoteCandidates,_A.parseImageAttributes=PA.parseImageAttributes,_A.parseSimulcastStreamList=PA.parseSimulcastStreamList;var IA=function(){function e(t,r){var n=this;Jy(this,e),tm(this,"_pc",null),tm(this,"_lastVideoStats",null),tm(this,"_lastRemoteVideoStats",null),tm(this,"_timer",0),tm(this,"_timerInterval",0),tm(this,"_speedQueue",[]),tm(this,"_lostRateQueue",[]),tm(this,"_receivedRateQueue",[]),tm(this,"_currentSpeed",-1),tm(this,"_currentLostRate",-1),tm(this,"_currentReceivedRate",-1),tm(this,"_evaluate",Xy(Wy().mark((function e(){var t,r,o,i,a,s,u,c,l,f,d,h,p,v,g,y;return Wy().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,CA(n._pc).then((function(e){return jA(e)}));case 3:t=e.sent,n._lastVideoStats&&null!=t&&t.video&&(r=t.video,o=r.bytesReceived,i=r.packetsLost,a=r.packetsReceived,s=n._lastVideoStats,u=s.bytesReceived,c=s.packetsLost,l=s.packetsReceived,u&&n._cacheSpeed(8e3*(o-u)/n._timerInterval),f=i-c,(d=a-l)&&f>=0&&n._cacheLostRate(f/(f+d)*1e3/n._timerInterval)),n._lastRemoteVideoStats&&null!=t&&t.videoRemote&&(h=t.video.bytesReceived,p=n._lastVideoStats.bytesReceived,v=null==t?void 0:t.videoRemote,g=v.bytesSent,(y=n._lastRemoteVideoStats.bytesSent)&&g&&g-y>0&&n._cacheReceivedRate((h-p)/(g-y))),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 em(e,[{key:"start",value:function(e){clearInterval(this._timer),this._pc&&(this._timer=iT(this._evaluate,e))}},{key:"getStats",value:function(){return this._speedQueue.length?{speed:xT(this._currentSpeed.toFixed(2)),avgSpeed:xT(this._getAvgSpeed().toFixed(2)),lostRate:xT(this._currentLostRate.toFixed(2)),avgLostRate:xT(this._getAvgLostRate().toFixed(2)),receivedRate:xT(this._currentReceivedRate.toFixed(2)),avgReceivedRate:xT(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=hy(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=hy(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=hy(t=this._receivedRateQueue).call(t,5));this._receivedRateQueue.push(e)}},{key:"_getAvgSpeed",value:function(){var e;return-1===this._currentSpeed?-1:bP(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:bP(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:bP(e=this._receivedRateQueue).call(e,(function(e,t){return e+t}),0)/this._receivedRateQueue.length}}]),e}(),MA=new DP("rts"),FA=function(e){rm(o,e);var t,r,n=am(o);function o(e){var t;return Jy(this,o),tm(im(t=n.call(this)),"_url",""),tm(im(t),"_pc",null),tm(im(t),"_audioTransceicer",null),tm(im(t),"_videoTransceicer",null),tm(im(t),"_mediaStream",null),tm(im(t),"_media",null),tm(im(t),"_opts",null),tm(im(t),"_loader",null),tm(im(t),"_networkEvaluate",null),tm(im(t),"_retry",0),tm(im(t),"_waitingTimer",0),tm(im(t),"_rctConnectStartTs",0),tm(im(t),"_onTrack",(function(e){MA.log("addTrack: ",e.track,e.streams),t["_".concat(e.track.kind)]=e.track})),tm(im(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=aT((function(){var e;null!==(e=t._media)&&void 0!==e&&e.paused||t.emit("waiting")}),t._opts.stallInterval))})),tm(im(t),"_onLoadedData",(function(){MA.log("loadeddata emit"),t.getStatsSnapshoot().then((function(e){t.emit(uA,{type:"video",elapsed:pR()-t._rctConnectStartTs,meta:e.video}),t.emit(uA,{type:"audio",elapsed:pR()-t._rctConnectStartTs,meta:e.audio})}))})),tm(im(t),"_onLoaderRetry",(function(e,r){t.emit(sA,{error:jP.network(e),retryTime:r})})),t._opts=function(e){return Yy({retryCount:0,retryDelay:1e3,loadTimeout:5e3,stallInterval:400,networkEvaluateInterval:1e3,delayHint:0,seamlesslyReload:!1},e)}(e),t._media=t._opts.media,t._loader=new yA(Yy(Yy({},e.fetchOptions),{},{responseType:"json",method:"POST",retry:t._opts.retryCount,retryDelay:t._opts.retryDelay,timeout:t._opts.loadTimeout,onRetryError:t._onLoaderRetry,logger:MA})),t._retry=t._opts.retryCount,t._bindMediaEvent(),t}return em(o,[{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 CA(this._pc)}},{key:"getStatsSnapshoot",value:function(){return this.getStats().then((function(e){return jA(e)}))}},{key:"load",value:(r=Xy(Wy().mark((function e(t){var r,n=this;return Wy().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(),e.prev=5,this._pc=new RTCPeerConnection,this._bindRTCEvents(),e.next=10,this._connect(t);case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),aT((function(){return n._emitError(jP.create(PP,null,e.t0))}));case 15:case"end":return e.stop()}}),e,this,[[5,12]])}))),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(MA.warn("onconnectionstatechange:",t.connectionState),e.emit(mA,{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(jP.network(new Error("rtc connect failed")));e._retry--,e.load(e._url)}"connected"===t.connectionState&&(e._handleMediaStream(),e.emit(nA,{url:e._url,responseUrl:e._url,elapsed:pR()-e._rctConnectStartTs}))}))}},{key:"_handleMediaStream",value:function(){if(this._opts.mediaStream&&this._opts.seamlesslyReload){var e=this._opts.mediaStream.getVideoTracks()[0],t=this._opts.mediaStream.getAudioTracks()[0];e&&this._opts.mediaStream.removeTrack(e),t&&this._opts.mediaStream.removeTrack(t),this._mediaStream=this._opts.mediaStream}else{this._mediaStream=new MediaStream,this._media.srcObject=this._mediaStream;var r=this._media.play();r&&r.catch&&r.catch((function(e){}))}this._mediaStream.addTrack(this._audio),this._mediaStream.addTrack(this._video)}},{key:"_bindMediaEvent",value:function(){this._media.addEventListener("timeupdate",this._mockWaitingByTimeupdate),this._media.addEventListener("loadeddata",this._onLoadedData)}},{key:"_connect",value:(t=Xy(Wy().mark((function e(){var t,r,n,o,i,a,s,u,c,l,f,d,h,p;return Wy().wrap((function(e){for(var v,g,y,m;;)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"}),(n=this._opts.delayHint)&&(this._audioTransceicer.receiver.playoutDelayHint=n,this._audioTransceicer.receiver.jitterBufferDelayHint=n,this._videoTransceicer.receiver.playoutDelayHint=n,this._videoTransceicer.receiver.jitterBufferDelayHint=n),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 MA.log("local offer"),MA.log(r.sdp),o=_A.parse(r.sdp),tf(v=Il(g=o.media).call(g,(function(e){return"audio"===e.type}))).call(v,(function(e){var t,r,n,o,i=null===(n=Il(t=e.rtp).call(t,(function(e){return"opus"===e.codec}))[0])||void 0===n?void 0:n.payload;i&&(tf(r=e.fmtp).call(r,(function(e){e.payload===i&&(e.config="minptime=10;stereo=1;useinbandfec=1")})),null===(o=e.rtcpFb)||void 0===o||o.push({payload:i,type:"nack"}))})),r.sdp=_A.write(o),MA.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,u=/_?session_id=([^&$]+)/.exec(i),c=u?u[1]:pR()+"666",this.emit(oA,{url:i,offersdp:r.sdp,sessionId:c}),l=pR(),e.next=32,this._loader.load(i,{body:MR({sessionId:c,version:"1.0-html",localSdp:r})});case 32:if(f=e.sent,this.emit(iA,{headers:f.response.headers}),404!==(null==(d=null==f?void 0:f.data)?void 0:d.code)&&403!==(null==d?void 0:d.code)){e.next=40;break}return(h=jP.create(404===d.code?kP:xP,null,d)).errorType=wP,this._emitError(h),e.abrupt("return");case 40:if(200===(null==d?void 0:d.code)){e.next=42;break}throw new Error(dm(y="code: ".concat(null==d?void 0:d.code,", message:")).call(y,null==d?void 0:d.message));case 42:return MA.log("answer:"),MA.log(null===(a=d.remoteSdp)||void 0===a?void 0:a.sdp),this.emit(aA,{url:i,elapsed:pR()-l,answersdp:null===(s=d.remoteSdp)||void 0===s?void 0:s.sdp}),p=_A.parse(d.remoteSdp.sdp),tf(m=p.media).call(m,(function(e){e.fingerprint.hash=e.fingerprint.hash.toUpperCase()})),d.remoteSdp.sdp=_A.write(p),MA.log("answer modified:\n",d.remoteSdp.sdp),this._rctConnectStartTs=pR(),e.next=52,this._pc.setRemoteDescription(d.remoteSdp);case 52:this._networkEvaluate=new IA(t,this._opts.networkEvaluateInterval),e.next=58;break;case 55:e.prev=55,e.t0=e.catch(23),this._emitError(jP.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,r,n;null===(e=this._loader)||void 0===e||e.cancel(),null===(t=this._networkEvaluate)||void 0===t||t.destroy(),null===(r=this._videoTransceicer)||void 0===r||r.stop(),null===(n=this._audioTransceicer)||void 0===n||n.stop(),this._audioTransceicer=null,this._videoTransceicer=null,this._mediaStream=null,this._networkEvaluate=null}},{key:"_emitError",value:function(e){this.emit(rA,e)}},{key:"destroy",value:function(){var e,t;this._disconnect(),null===(e=this._media)||void 0===e||e.removeEventListener("timeupdate",this._mockWaitingByTimeupdate),!this._media||null!==(t=this._opts)&&void 0!==t&&t.seamlesslyReload||(this._media.srcObject=null),this._pc&&this._pc.close(),this._loader=null,this._media=null,this._pc=null}}],[{key:"enableLogger",value:function(){DP.enable()}},{key:"disableLogger",value:function(){DP.disable()}}]),o}(pk);try{localStorage.getItem("xgd")?FA.enableLogger():FA.disableLogger()}catch(BA){}function NA(){return!(!window.RTCPeerConnection||!window.RTCPeerConnection.prototype.addTransceiver)}var UA=function(e){rm(n,e);var t,r=am(n);function n(){var e,t;Jy(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return tm(im(t=r.call.apply(r,dm(e=[this]).call(e,i))),"_rts",null),tm(im(t),"_mediaStream",null),tm(im(t),"_rtsOpts",null),tm(im(t),"_onPause",(function(){var e,r,n;if(null!==(e=t._rts)&&void 0!==e&&e._pc){var o;if(null!==(r=t.config)&&void 0!==r&&r.seamlesslyReload)t._mediaStream=null===(o=t._rts)||void 0===o?void 0:o._mediaStream;null===(n=t._rts)||void 0===n||n.destroy()}})),tm(im(t),"_onPlay",(function(){var e;null!==(e=t._rts)&&void 0!==e&&e._pc||t._init()})),tm(im(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 FA(Yy({media:t.player.video,mediaStream:t._mediaStream,preProcessUrl:function(e,r){var n,o;return(null===(n=(o=t.player).preProcessUrl)||void 0===n?void 0:n.call(o,e,r))||{url:e,ext:r}}},n)),t._rts.load(r.url)})),tm(im(t),"_onSwitchURL",(function(e){t._rts&&(t.player.config.url=e,t._rts.switchURL(e))})),tm(im(t),"destroy",(function(){var e;t.player.switchURL=t._originSwitchFn,null===(e=t._rts)||void 0===e||e.destroy()})),t}return em(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.2"}},{key:"beforePlayerInit",value:function(){var e,t,r,n,o=this;(this._init(),this._originSwitchFn)||(this._originSwitchFn=Py(n=this.player.switchURL).call(n,this.player));this.player.switchURL=this._onSwitchURL,null===(e=this.player)||void 0===e||e.useHooks("replay",(function(){var e;return null===(e=o._rts)||void 0===e?void 0:e.switchURL()})),this.on("urlchange",this._onSwitchURL),this.on("destroy",this.destroy),null!==(t=this.player.config)&&void 0!==t&&null!==(r=t.rts)&&void 0!==r&&r.seamlesslyReload&&(this.on("pause",this._onPause),this.on("play",this._onPlay)),this._transErrorEvent(),this._transCoreEvent(oA),this._transCoreEvent(aA),this._transCoreEvent(nA),this._transCoreEvent(iA),this._transCoreEvent(sA),this._transCoreEvent(uA),this._transCoreEvent(mA);try{AR.defineGetterOrSetter(this.player,{__url:{get:function(){try{return wS.createObjectURL(new MediaSource)}catch(r){var e,t;null!==(e=o.player)&&void 0!==e&&null!==(t=e.video)&&void 0!==t&&t.srcObject||(o.player.video.srcObject=new MediaStream)}}}})}catch(i){}}},{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:"_transErrorEvent",value:function(){var e=this;this._rts.on(rA,(function(t){if(e.player){var r=new TR(e.player,t),n=e._rtsOpts,o=n.backupConstruct,i=n.backupURL;if(i){var a,s=e.player;s.emit("core_event",Yy(Yy({},{url:s.config.url,code:r.errorCode,message:r.message,httpCode:r.httpCode}),{},{eventName:"core.degrade"})),s.emit("degrade",{url:s.config.url,code:r.errorCode,message:r.message,httpCode:r.httpCode}),s.unRegisterPlugin("rts"),s.switchURL=e._originSwitchFn,e._rts=null,s.rts=null,null!==(a=s.video)&&void 0!==a&&a.srcObject&&(s.video.srcObject=null),s.config.url=i,o?s.registerPlugin(o).beforePlayerInit():s.video.src=i}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",Yy(Yy({},r),{},{eventName:e}))}))}}],[{key:"pluginName",get:function(){return"rts"}},{key:"isSupported",value:function(){return NA()}},{key:"getCapacity",value:function(){return function(){if(!NA())return Dg.reject("RTCPeerConnection no support");var e;try{(e=new RTCPeerConnection).addTransceiver("video",{direction:"recvonly"}),e.addTransceiver("audio",{direction:"recvonly"})}catch(t){return Dg.reject(null==t?void 0:t.message)}return e.createOffer().then((function(t){var r,n,o,i;MA.log(t.sdp);var a=_A.parse(t.sdp),s=null===(r=a.media)||void 0===r?void 0:Il(r).call(r,(function(e){return"video"===e.type}))[0],u=null===(n=a.media)||void 0===n?void 0:Il(n).call(n,(function(e){return"audio"===e.type}))[0],c=null==s||null===(o=s.rtp)||void 0===o?void 0:Il(o).call(o,(function(e){return"VP8"===e.codec||"VP9"===e.codec||"H264"===e.codec})),l=null==u||null===(i=u.rtp)||void 0===i?void 0:Il(i).call(i,(function(e){return"opus"===e.codec})),f=null==s?void 0:s.fmtp,d=null==u?void 0:u.fmtp;return f&&Hx(c).call(c,(function(e){var t;e.config=null===(t=Il(f).call(f,(function(t){return t.payload===e.payload}))[0])||void 0===t?void 0:t.config})),d&&Hx(l).call(l,(function(e){var t;e.config=null===(t=Il(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=Xy(Wy().mark((function e(t){var r,o,i,a,s;return Wy().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.getCapacity();case 3:if(o=e.sent,i=null===(r=o.video)||void 0===r?void 0:Il(r).call(r,(function(e){var r;return"H264"===e.codec&&(!t||-1!==AS(r=e.config).call(r,t))})).length){e.next=10;break}return e.next=8,n.getCapacity();case 8:s=e.sent,i=null===(a=s.video)||void 0===a?void 0:Il(a).call(a,(function(e){var r;return"H264"===e.codec&&(!t||-1!==AS(r=e.config).call(r,t))})).length;case 10:return e.abrupt("return",!!i);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}(AR),DA=window.VePlayer.DynamicModule;VePlayer.registerPlugin(DA.PluginRtm,{RtmPlugin:UA}),e.RtmPlugin=UA}));
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},o=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")(),i=function(e){try{return!!e()}catch(t){return!0}},a=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),s=a,u=Function.prototype,c=u.apply,l=u.call,f="object"==typeof Reflect&&Reflect.apply||(s?l.bind(c):function(){return l.apply(c,arguments)}),d=a,h=Function.prototype,p=h.call,v=d&&h.bind.bind(p,p),g=d?v:function(e){return function(){return p.apply(e,arguments)}},y=g,m=y({}.toString),_=y("".slice),b=function(e){return _(m(e),8,-1)},w=b,S=g,x=function(e){if("Function"===w(e))return S(e)},k="object"==typeof document&&document.all,T={all:k,IS_HTMLDDA:void 0===k&&void 0!==k},R=T.all,O=T.IS_HTMLDDA?function(e){return"function"==typeof e||e===R}:function(e){return"function"==typeof e},E={},L=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),P=a,A=Function.prototype.call,C=P?A.bind(A):function(){return A.apply(A,arguments)},j={},I={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,F=M&&!I.call({1:2},1);j.f=F?function(e){var t=M(this,e);return!!t&&t.enumerable}:I;var N,U,D=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},B=i,H=b,z=Object,q=g("".split),G=B((function(){return!z("z").propertyIsEnumerable(0)}))?function(e){return"String"==H(e)?q(e,""):z(e)}:z,V=function(e){return null==e},$=V,Q=TypeError,Y=function(e){if($(e))throw Q("Can't call method on "+e);return e},W=G,K=Y,X=function(e){return W(K(e))},J=O,Z=T.all,ee=T.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:J(e)||e===Z}:function(e){return"object"==typeof e?null!==e:J(e)},te={},re=te,ne=o,oe=O,ie=function(e){return oe(e)?e:void 0},ae=function(e,t){return arguments.length<2?ie(re[e])||ie(ne[e]):re[e]&&re[e][t]||ne[e]&&ne[e][t]},se=g({}.isPrototypeOf),ue="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ce=o,le=ue,fe=ce.process,de=ce.Deno,he=fe&&fe.versions||de&&de.version,pe=he&&he.v8;pe&&(U=(N=pe.split("."))[0]>0&&N[0]<4?1:+(N[0]+N[1])),!U&&le&&(!(N=le.match(/Edge\/(\d+)/))||N[1]>=74)&&(N=le.match(/Chrome\/(\d+)/))&&(U=+N[1]);var ve=U,ge=ve,ye=i,me=o.String,_e=!!Object.getOwnPropertySymbols&&!ye((function(){var e=Symbol();return!me(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ge&&ge<41})),be=_e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,we=ae,Se=O,xe=se,ke=Object,Te=be?function(e){return"symbol"==typeof e}:function(e){var t=we("Symbol");return Se(t)&&xe(t.prototype,ke(e))},Re=String,Oe=function(e){try{return Re(e)}catch(t){return"Object"}},Ee=O,Le=Oe,Pe=TypeError,Ae=function(e){if(Ee(e))return e;throw Pe(Le(e)+" is not a function")},Ce=Ae,je=V,Ie=function(e,t){var r=e[t];return je(r)?void 0:Ce(r)},Me=C,Fe=O,Ne=ee,Ue=TypeError,De={exports:{}},Be=o,He=Object.defineProperty,ze=function(e,t){try{He(Be,e,{value:t,configurable:!0,writable:!0})}catch(r){Be[e]=t}return t},qe="__core-js_shared__",Ge=o[qe]||ze(qe,{}),Ve=Ge;(De.exports=function(e,t){return Ve[e]||(Ve[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 $e=De.exports,Qe=Y,Ye=Object,We=function(e){return Ye(Qe(e))},Ke=We,Xe=g({}.hasOwnProperty),Je=Object.hasOwn||function(e,t){return Xe(Ke(e),t)},Ze=g,et=0,tt=Math.random(),rt=Ze(1..toString),nt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rt(++et+tt,36)},ot=$e,it=Je,at=nt,st=_e,ut=be,ct=o.Symbol,lt=ot("wks"),ft=ut?ct.for||ct:ct&&ct.withoutSetter||at,dt=function(e){return it(lt,e)||(lt[e]=st&&it(ct,e)?ct[e]:ft("Symbol."+e)),lt[e]},ht=C,pt=ee,vt=Te,gt=Ie,yt=function(e,t){var r,n;if("string"===t&&Fe(r=e.toString)&&!Ne(n=Me(r,e)))return n;if(Fe(r=e.valueOf)&&!Ne(n=Me(r,e)))return n;if("string"!==t&&Fe(r=e.toString)&&!Ne(n=Me(r,e)))return n;throw Ue("Can't convert object to primitive value")},mt=TypeError,_t=dt("toPrimitive"),bt=function(e,t){if(!pt(e)||vt(e))return e;var r,n=gt(e,_t);if(n){if(void 0===t&&(t="default"),r=ht(n,e,t),!pt(r)||vt(r))return r;throw mt("Can't convert object to primitive value")}return void 0===t&&(t="number"),yt(e,t)},wt=Te,St=function(e){var t=bt(e,"string");return wt(t)?t:t+""},xt=ee,kt=o.document,Tt=xt(kt)&&xt(kt.createElement),Rt=function(e){return Tt?kt.createElement(e):{}},Ot=Rt,Et=!L&&!i((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),Lt=L,Pt=C,At=j,Ct=D,jt=X,It=St,Mt=Je,Ft=Et,Nt=Object.getOwnPropertyDescriptor;E.f=Lt?Nt:function(e,t){if(e=jt(e),t=It(t),Ft)try{return Nt(e,t)}catch(r){}if(Mt(e,t))return Ct(!Pt(At.f,e,t),e[t])};var Ut=i,Dt=O,Bt=/#|\.prototype\./,Ht=function(e,t){var r=qt[zt(e)];return r==Vt||r!=Gt&&(Dt(t)?Ut(t):!!t)},zt=Ht.normalize=function(e){return String(e).replace(Bt,".").toLowerCase()},qt=Ht.data={},Gt=Ht.NATIVE="N",Vt=Ht.POLYFILL="P",$t=Ht,Qt=Ae,Yt=a,Wt=x(x.bind),Kt=function(e,t){return Qt(e),void 0===t?e:Yt?Wt(e,t):function(){return e.apply(t,arguments)}},Xt={},Jt=L&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Zt=ee,er=String,tr=TypeError,rr=function(e){if(Zt(e))return e;throw tr(er(e)+" is not an object")},nr=L,or=Et,ir=Jt,ar=rr,sr=St,ur=TypeError,cr=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,fr="enumerable",dr="configurable",hr="writable";Xt.f=nr?ir?function(e,t,r){if(ar(e),t=sr(t),ar(r),"function"==typeof e&&"prototype"===t&&"value"in r&&hr in r&&!r[hr]){var n=lr(e,t);n&&n[hr]&&(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=sr(t),ar(r),or)try{return cr(e,t,r)}catch(n){}if("get"in r||"set"in r)throw ur("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var pr=Xt,vr=D,gr=L?function(e,t,r){return pr.f(e,t,vr(1,r))}:function(e,t,r){return e[t]=r,e},yr=o,mr=f,_r=x,br=O,wr=E.f,Sr=$t,xr=te,kr=Kt,Tr=gr,Rr=Je,Or=function(e){var t=function(r,n,o){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,o)}return mr(e,this,arguments)};return t.prototype=e.prototype,t},Er=function(e,t){var r,n,o,i,a,s,u,c,l,f=e.target,d=e.global,h=e.stat,p=e.proto,v=d?yr:h?yr[f]:(yr[f]||{}).prototype,g=d?xr:xr[f]||Tr(xr,f,{})[f],y=g.prototype;for(i in t)n=!(r=Sr(d?i:f+(h?".":"#")+i,e.forced))&&v&&Rr(v,i),s=g[i],n&&(u=e.dontCallGetSet?(l=wr(v,i))&&l.value:v[i]),a=n&&u?u:t[i],n&&typeof s==typeof a||(c=e.bind&&n?kr(a,yr):e.wrap&&n?Or(a):p&&br(a)?_r(a):a,(e.sham||a&&a.sham||s&&s.sham)&&Tr(c,"sham",!0),Tr(g,i,c),p&&(Rr(xr,o=f+"Prototype")||Tr(xr,o,{}),Tr(xr[o],i,a),e.real&&y&&(r||!y[i])&&Tr(y,i,a)))},Lr=b,Pr=Array.isArray||function(e){return"Array"==Lr(e)},Ar=Math.ceil,Cr=Math.floor,jr=Math.trunc||function(e){var t=+e;return(t>0?Cr:Ar)(t)},Ir=function(e){var t=+e;return t!=t||0===t?0:jr(t)},Mr=Ir,Fr=Math.min,Nr=function(e){return e>0?Fr(Mr(e),9007199254740991):0},Ur=Nr,Dr=function(e){return Ur(e.length)},Br=TypeError,Hr=function(e){if(e>9007199254740991)throw Br("Maximum allowed index exceeded");return e},zr=St,qr=Xt,Gr=D,Vr=function(e,t,r){var n=zr(t);n in e?qr.f(e,n,Gr(0,r)):e[n]=r},$r={};$r[dt("toStringTag")]="z";var Qr="[object z]"===String($r),Yr=Qr,Wr=O,Kr=b,Xr=dt("toStringTag"),Jr=Object,Zr="Arguments"==Kr(function(){return arguments}()),en=Yr?Kr:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=Jr(e),Xr))?r:Zr?Kr(t):"Object"==(n=Kr(t))&&Wr(t.callee)?"Arguments":n},tn=O,rn=Ge,nn=g(Function.toString);tn(rn.inspectSource)||(rn.inspectSource=function(e){return nn(e)});var on=rn.inspectSource,an=g,sn=i,un=O,cn=en,ln=on,fn=function(){},dn=[],hn=ae("Reflect","construct"),pn=/^\s*(?:class|function)\b/,vn=an(pn.exec),gn=!pn.exec(fn),yn=function(e){if(!un(e))return!1;try{return hn(fn,dn,e),!0}catch(t){return!1}},mn=function(e){if(!un(e))return!1;switch(cn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return gn||!!vn(pn,ln(e))}catch(t){return!0}};mn.sham=!0;var _n=!hn||sn((function(){var e;return yn(yn.call)||!yn(Object)||!yn((function(){e=!0}))||e}))?mn:yn,bn=Pr,wn=_n,Sn=ee,xn=dt("species"),kn=Array,Tn=function(e){var t;return bn(e)&&(t=e.constructor,(wn(t)&&(t===kn||bn(t.prototype))||Sn(t)&&null===(t=t[xn]))&&(t=void 0)),void 0===t?kn:t},Rn=function(e,t){return new(Tn(e))(0===t?0:t)},On=i,En=ve,Ln=dt("species"),Pn=function(e){return En>=51||!On((function(){var t=[];return(t.constructor={})[Ln]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},An=Er,Cn=i,jn=Pr,In=ee,Mn=We,Fn=Dr,Nn=Hr,Un=Vr,Dn=Rn,Bn=Pn,Hn=ve,zn=dt("isConcatSpreadable"),qn=Hn>=51||!Cn((function(){var e=[];return e[zn]=!1,e.concat()[0]!==e})),Gn=function(e){if(!In(e))return!1;var t=e[zn];return void 0!==t?!!t:jn(e)};An({target:"Array",proto:!0,arity:1,forced:!qn||!Bn("concat")},{concat:function(e){var t,r,n,o,i,a=Mn(this),s=Dn(a,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(Gn(i=-1===t?a:arguments[t]))for(o=Fn(i),Nn(u+o),r=0;r<o;r++,u++)r in i&&Un(s,u,i[r]);else Nn(u+1),Un(s,u++,i);return s.length=u,s}});var Vn=en,$n=String,Qn=function(e){if("Symbol"===Vn(e))throw TypeError("Cannot convert a Symbol value to a string");return $n(e)},Yn={},Wn=Ir,Kn=Math.max,Xn=Math.min,Jn=function(e,t){var r=Wn(e);return r<0?Kn(r+t,0):Xn(r,t)},Zn=X,eo=Jn,to=Dr,ro=function(e){return function(t,r,n){var o,i=Zn(t),a=to(i),s=eo(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},no={includes:ro(!0),indexOf:ro(!1)},oo={},io=Je,ao=X,so=no.indexOf,uo=oo,co=g([].push),lo=function(e,t){var r,n=ao(e),o=0,i=[];for(r in n)!io(uo,r)&&io(n,r)&&co(i,r);for(;t.length>o;)io(n,r=t[o++])&&(~so(i,r)||co(i,r));return i},fo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ho=lo,po=fo,vo=Object.keys||function(e){return ho(e,po)},go=L,yo=Jt,mo=Xt,_o=rr,bo=X,wo=vo;Yn.f=go&&!yo?Object.defineProperties:function(e,t){_o(e);for(var r,n=bo(t),o=wo(t),i=o.length,a=0;i>a;)mo.f(e,r=o[a++],n[r]);return e};var So,xo=ae("document","documentElement"),ko=nt,To=$e("keys"),Ro=function(e){return To[e]||(To[e]=ko(e))},Oo=rr,Eo=Yn,Lo=fo,Po=oo,Ao=xo,Co=Rt,jo="prototype",Io="script",Mo=Ro("IE_PROTO"),Fo=function(){},No=function(e){return"<"+Io+">"+e+"</"+Io+">"},Uo=function(e){e.write(No("")),e.close();var t=e.parentWindow.Object;return e=null,t},Do=function(){try{So=new ActiveXObject("htmlfile")}catch(o){}var e,t,r;Do="undefined"!=typeof document?document.domain&&So?Uo(So):(t=Co("iframe"),r="java"+Io+":",t.style.display="none",Ao.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(No("document.F=Object")),e.close(),e.F):Uo(So);for(var n=Lo.length;n--;)delete Do[jo][Lo[n]];return Do()};Po[Mo]=!0;var Bo=Object.create||function(e,t){var r;return null!==e?(Fo[jo]=Oo(e),r=new Fo,Fo[jo]=null,r[Mo]=e):r=Do(),void 0===t?r:Eo.f(r,t)},Ho={},zo=lo,qo=fo.concat("length","prototype");Ho.f=Object.getOwnPropertyNames||function(e){return zo(e,qo)};var Go={},Vo=Jn,$o=Dr,Qo=Vr,Yo=Array,Wo=Math.max,Ko=function(e,t,r){for(var n=$o(e),o=Vo(t,n),i=Vo(void 0===r?n:r,n),a=Yo(Wo(i-o,0)),s=0;o<i;o++,s++)Qo(a,s,e[o]);return a.length=s,a},Xo=b,Jo=X,Zo=Ho.f,ei=Ko,ti="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Go.f=function(e){return ti&&"Window"==Xo(e)?function(e){try{return Zo(e)}catch(t){return ei(ti)}}(e):Zo(Jo(e))};var ri={};ri.f=Object.getOwnPropertySymbols;var ni=gr,oi=function(e,t,r,n){return n&&n.enumerable?e[t]=r:ni(e,t,r),e},ii=Xt,ai=function(e,t,r){return ii.f(e,t,r)},si={},ui=dt;si.f=ui;var ci,li,fi,di=te,hi=Je,pi=si,vi=Xt.f,gi=function(e){var t=di.Symbol||(di.Symbol={});hi(t,e)||vi(t,e,{value:pi.f(e)})},yi=C,mi=ae,_i=dt,bi=oi,wi=function(){var e=mi("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=_i("toPrimitive");t&&!t[n]&&bi(t,n,(function(e){return yi(r,this)}),{arity:1})},Si=en,xi=Qr?{}.toString:function(){return"[object "+Si(this)+"]"},ki=Qr,Ti=Xt.f,Ri=gr,Oi=Je,Ei=xi,Li=dt("toStringTag"),Pi=function(e,t,r,n){if(e){var o=r?e:e.prototype;Oi(o,Li)||Ti(o,Li,{configurable:!0,value:t}),n&&!ki&&Ri(o,"toString",Ei)}},Ai=O,Ci=o.WeakMap,ji=Ai(Ci)&&/native code/.test(String(Ci)),Ii=o,Mi=ee,Fi=gr,Ni=Je,Ui=Ge,Di=Ro,Bi=oo,Hi="Object already initialized",zi=Ii.TypeError,qi=Ii.WeakMap;if(ji||Ui.state){var Gi=Ui.state||(Ui.state=new qi);Gi.get=Gi.get,Gi.has=Gi.has,Gi.set=Gi.set,ci=function(e,t){if(Gi.has(e))throw zi(Hi);return t.facade=e,Gi.set(e,t),t},li=function(e){return Gi.get(e)||{}},fi=function(e){return Gi.has(e)}}else{var Vi=Di("state");Bi[Vi]=!0,ci=function(e,t){if(Ni(e,Vi))throw zi(Hi);return t.facade=e,Fi(e,Vi,t),t},li=function(e){return Ni(e,Vi)?e[Vi]:{}},fi=function(e){return Ni(e,Vi)}}var $i={set:ci,get:li,has:fi,enforce:function(e){return fi(e)?li(e):ci(e,{})},getterFor:function(e){return function(t){var r;if(!Mi(t)||(r=li(t)).type!==e)throw zi("Incompatible receiver, "+e+" required");return r}}},Qi=Kt,Yi=G,Wi=We,Ki=Dr,Xi=Rn,Ji=g([].push),Zi=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(u,c,l,f){for(var d,h,p=Wi(u),v=Yi(p),g=Qi(c,l),y=Ki(v),m=0,_=f||Xi,b=t?_(u,y):r||a?_(u,0):void 0;y>m;m++)if((s||m in v)&&(h=g(d=v[m],m,p),e))if(t)b[m]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Ji(b,d)}else switch(e){case 4:return!1;case 7:Ji(b,d)}return i?-1:n||o?o:b}},ea={forEach:Zi(0),map:Zi(1),filter:Zi(2),some:Zi(3),every:Zi(4),find:Zi(5),findIndex:Zi(6),filterReject:Zi(7)},ta=Er,ra=o,na=C,oa=g,ia=L,aa=_e,sa=i,ua=Je,ca=se,la=rr,fa=X,da=St,ha=Qn,pa=D,va=Bo,ga=vo,ya=Ho,ma=Go,_a=ri,ba=E,wa=Xt,Sa=Yn,xa=j,ka=oi,Ta=ai,Ra=$e,Oa=oo,Ea=nt,La=dt,Pa=si,Aa=gi,Ca=wi,ja=Pi,Ia=$i,Ma=ea.forEach,Fa=Ro("hidden"),Na="Symbol",Ua="prototype",Da=Ia.set,Ba=Ia.getterFor(Na),Ha=Object[Ua],za=ra.Symbol,qa=za&&za[Ua],Ga=ra.TypeError,Va=ra.QObject,$a=ba.f,Qa=wa.f,Ya=ma.f,Wa=xa.f,Ka=oa([].push),Xa=Ra("symbols"),Ja=Ra("op-symbols"),Za=Ra("wks"),es=!Va||!Va[Ua]||!Va[Ua].findChild,ts=ia&&sa((function(){return 7!=va(Qa({},"a",{get:function(){return Qa(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=$a(Ha,t);n&&delete Ha[t],Qa(e,t,r),n&&e!==Ha&&Qa(Ha,t,n)}:Qa,rs=function(e,t){var r=Xa[e]=va(qa);return Da(r,{type:Na,tag:e,description:t}),ia||(r.description=t),r},ns=function(e,t,r){e===Ha&&ns(Ja,t,r),la(e);var n=da(t);return la(r),ua(Xa,n)?(r.enumerable?(ua(e,Fa)&&e[Fa][n]&&(e[Fa][n]=!1),r=va(r,{enumerable:pa(0,!1)})):(ua(e,Fa)||Qa(e,Fa,pa(1,{})),e[Fa][n]=!0),ts(e,n,r)):Qa(e,n,r)},os=function(e,t){la(e);var r=fa(t),n=ga(r).concat(us(r));return Ma(n,(function(t){ia&&!na(is,r,t)||ns(e,t,r[t])})),e},is=function(e){var t=da(e),r=na(Wa,this,t);return!(this===Ha&&ua(Xa,t)&&!ua(Ja,t))&&(!(r||!ua(this,t)||!ua(Xa,t)||ua(this,Fa)&&this[Fa][t])||r)},as=function(e,t){var r=fa(e),n=da(t);if(r!==Ha||!ua(Xa,n)||ua(Ja,n)){var o=$a(r,n);return!o||!ua(Xa,n)||ua(r,Fa)&&r[Fa][n]||(o.enumerable=!0),o}},ss=function(e){var t=Ya(fa(e)),r=[];return Ma(t,(function(e){ua(Xa,e)||ua(Oa,e)||Ka(r,e)})),r},us=function(e){var t=e===Ha,r=Ya(t?Ja:fa(e)),n=[];return Ma(r,(function(e){!ua(Xa,e)||t&&!ua(Ha,e)||Ka(n,Xa[e])})),n};aa||(za=function(){if(ca(qa,this))throw Ga("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?ha(arguments[0]):void 0,t=Ea(e),r=function(e){this===Ha&&na(r,Ja,e),ua(this,Fa)&&ua(this[Fa],t)&&(this[Fa][t]=!1),ts(this,t,pa(1,e))};return ia&&es&&ts(Ha,t,{configurable:!0,set:r}),rs(t,e)},ka(qa=za[Ua],"toString",(function(){return Ba(this).tag})),ka(za,"withoutSetter",(function(e){return rs(Ea(e),e)})),xa.f=is,wa.f=ns,Sa.f=os,ba.f=as,ya.f=ma.f=ss,_a.f=us,Pa.f=function(e){return rs(La(e),e)},ia&&Ta(qa,"description",{configurable:!0,get:function(){return Ba(this).description}})),ta({global:!0,constructor:!0,wrap:!0,forced:!aa,sham:!aa},{Symbol:za}),Ma(ga(Za),(function(e){Aa(e)})),ta({target:Na,stat:!0,forced:!aa},{useSetter:function(){es=!0},useSimple:function(){es=!1}}),ta({target:"Object",stat:!0,forced:!aa,sham:!ia},{create:function(e,t){return void 0===t?va(e):os(va(e),t)},defineProperty:ns,defineProperties:os,getOwnPropertyDescriptor:as}),ta({target:"Object",stat:!0,forced:!aa},{getOwnPropertyNames:ss}),Ca(),ja(za,Na),Oa[Fa]=!0;var cs=_e&&!!Symbol.for&&!!Symbol.keyFor,ls=Er,fs=ae,ds=Je,hs=Qn,ps=$e,vs=cs,gs=ps("string-to-symbol-registry"),ys=ps("symbol-to-string-registry");ls({target:"Symbol",stat:!0,forced:!vs},{for:function(e){var t=hs(e);if(ds(gs,t))return gs[t];var r=fs("Symbol")(t);return gs[t]=r,ys[r]=t,r}});var ms=Er,_s=Je,bs=Te,ws=Oe,Ss=cs,xs=$e("symbol-to-string-registry");ms({target:"Symbol",stat:!0,forced:!Ss},{keyFor:function(e){if(!bs(e))throw TypeError(ws(e)+" is not a symbol");if(_s(xs,e))return xs[e]}});var ks=g([].slice),Ts=Pr,Rs=O,Os=b,Es=Qn,Ls=g([].push),Ps=Er,As=ae,Cs=f,js=C,Is=g,Ms=i,Fs=O,Ns=Te,Us=ks,Ds=function(e){if(Rs(e))return e;if(Ts(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?Ls(r,o):"number"!=typeof o&&"Number"!=Os(o)&&"String"!=Os(o)||Ls(r,Es(o))}var i=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(Ts(this))return t;for(var n=0;n<i;n++)if(r[n]===e)return t}}},Bs=_e,Hs=String,zs=As("JSON","stringify"),qs=Is(/./.exec),Gs=Is("".charAt),Vs=Is("".charCodeAt),$s=Is("".replace),Qs=Is(1..toString),Ys=/[\uD800-\uDFFF]/g,Ws=/^[\uD800-\uDBFF]$/,Ks=/^[\uDC00-\uDFFF]$/,Xs=!Bs||Ms((function(){var e=As("Symbol")();return"[null]"!=zs([e])||"{}"!=zs({a:e})||"{}"!=zs(Object(e))})),Js=Ms((function(){return'"\\udf06\\ud834"'!==zs("\udf06\ud834")||'"\\udead"'!==zs("\udead")})),Zs=function(e,t){var r=Us(arguments),n=Ds(t);if(Fs(n)||void 0!==e&&!Ns(e))return r[1]=function(e,t){if(Fs(n)&&(t=js(n,this,Hs(e),t)),!Ns(t))return t},Cs(zs,null,r)},eu=function(e,t,r){var n=Gs(r,t-1),o=Gs(r,t+1);return qs(Ws,e)&&!qs(Ks,o)||qs(Ks,e)&&!qs(Ws,n)?"\\u"+Qs(Vs(e,0),16):e};zs&&Ps({target:"JSON",stat:!0,arity:3,forced:Xs||Js},{stringify:function(e,t,r){var n=Us(arguments),o=Cs(Xs?Zs:zs,null,n);return Js&&"string"==typeof o?$s(o,Ys,eu):o}});var tu=ri,ru=We;Er({target:"Object",stat:!0,forced:!_e||i((function(){tu.f(1)}))},{getOwnPropertySymbols:function(e){var t=tu.f;return t?t(ru(e)):[]}}),gi("asyncIterator"),gi("hasInstance"),gi("isConcatSpreadable"),gi("iterator"),gi("match"),gi("matchAll"),gi("replace"),gi("search"),gi("species"),gi("split");var nu=wi;gi("toPrimitive"),nu();var ou=ae,iu=Pi;gi("toStringTag"),iu(ou("Symbol"),"Symbol"),gi("unscopables"),Pi(o.JSON,"JSON",!0);var au,su,uu,cu=te.Symbol,lu={},fu=L,du=Je,hu=Function.prototype,pu=fu&&Object.getOwnPropertyDescriptor,vu=du(hu,"name"),gu={EXISTS:vu,PROPER:vu&&"something"===function(){}.name,CONFIGURABLE:vu&&(!fu||fu&&pu(hu,"name").configurable)},yu=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),mu=Je,_u=O,bu=We,wu=yu,Su=Ro("IE_PROTO"),xu=Object,ku=xu.prototype,Tu=wu?xu.getPrototypeOf:function(e){var t=bu(e);if(mu(t,Su))return t[Su];var r=t.constructor;return _u(r)&&t instanceof r?r.prototype:t instanceof xu?ku:null},Ru=i,Ou=O,Eu=ee,Lu=Bo,Pu=Tu,Au=oi,Cu=dt("iterator"),ju=!1;[].keys&&("next"in(uu=[].keys())?(su=Pu(Pu(uu)))!==Object.prototype&&(au=su):ju=!0);var Iu=!Eu(au)||Ru((function(){var e={};return au[Cu].call(e)!==e}));Ou((au=Iu?{}:Lu(au))[Cu])||Au(au,Cu,(function(){return this}));var Mu={IteratorPrototype:au,BUGGY_SAFARI_ITERATORS:ju},Fu=Mu.IteratorPrototype,Nu=Bo,Uu=D,Du=Pi,Bu=lu,Hu=function(){return this},zu=function(e,t,r,n){var o=t+" Iterator";return e.prototype=Nu(Fu,{next:Uu(+!n,r)}),Du(e,o,!1,!0),Bu[o]=Hu,e},qu=g,Gu=Ae,Vu=O,$u=String,Qu=TypeError,Yu=function(e,t,r){try{return qu(Gu(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},Wu=rr,Ku=function(e){if("object"==typeof e||Vu(e))return e;throw Qu("Can't set "+$u(e)+" as a prototype")},Xu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Yu(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return Wu(r),Ku(n),t?e(r,n):r.__proto__=n,r}}():void 0),Ju=Er,Zu=C,ec=gu,tc=zu,rc=Tu,nc=Pi,oc=oi,ic=lu,ac=Mu,sc=ec.PROPER,uc=ac.BUGGY_SAFARI_ITERATORS,cc=dt("iterator"),lc="keys",fc="values",dc="entries",hc=function(){return this},pc=function(e,t,r,n,o,i,a){tc(r,t,n);var s,u,c,l=function(e){if(e===o&&v)return v;if(!uc&&e in h)return h[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,h=e.prototype,p=h[cc]||h["@@iterator"]||o&&h[o],v=!uc&&p||l(o),g="Array"==t&&h.entries||p;if(g&&(s=rc(g.call(new e)))!==Object.prototype&&s.next&&(nc(s,f,!0,!0),ic[f]=hc),sc&&o==fc&&p&&p.name!==fc&&(d=!0,v=function(){return Zu(p,this)}),o)if(u={values:l(fc),keys:i?v:l(lc),entries:l(dc)},a)for(c in u)(uc||d||!(c in h))&&oc(h,c,u[c]);else Ju({target:t,proto:!0,forced:uc||d},u);return a&&h[cc]!==v&&oc(h,cc,v,{name:o}),ic[t]=v,u},vc=function(e,t){return{value:e,done:t}},gc=X,yc=lu,mc=$i;Xt.f;var _c=pc,bc=vc,wc="Array Iterator",Sc=mc.set,xc=mc.getterFor(wc);_c(Array,"Array",(function(e,t){Sc(this,{type:wc,target:gc(e),index:0,kind:t})}),(function(){var e=xc(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,bc(void 0,!0)):bc("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),yc.Arguments=yc.Array;var kc={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=o,Rc=en,Oc=gr,Ec=lu,Lc=dt("toStringTag");for(var Pc in kc){var Ac=Tc[Pc],Cc=Ac&&Ac.prototype;Cc&&Rc(Cc)!==Lc&&Oc(Cc,Lc,Pc),Ec[Pc]=Ec.Array}var jc=cu;gi("dispose");var Ic=jc;gi("asyncDispose");var Mc=Er,Fc=g,Nc=ae("Symbol"),Uc=Nc.keyFor,Dc=Fc(Nc.prototype.valueOf);Mc({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==Uc(Dc(e))}catch(t){return!1}}});for(var Bc=Er,Hc=$e,zc=ae,qc=g,Gc=Te,Vc=dt,$c=zc("Symbol"),Qc=$c.isWellKnown,Yc=zc("Object","getOwnPropertyNames"),Wc=qc($c.prototype.valueOf),Kc=Hc("wks"),Xc=0,Jc=Yc($c),Zc=Jc.length;Xc<Zc;Xc++)try{var el=Jc[Xc];Gc($c[el])&&Vc(el)}catch(HA){}Bc({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(Qc&&Qc(e))return!0;try{for(var t=Wc(e),r=0,n=Yc(Kc),o=n.length;r<o;r++)if(Kc[n[r]]==t)return!0}catch(HA){}return!1}}),gi("matcher"),gi("metadataKey"),gi("observable"),gi("metadata"),gi("patternMatch"),gi("replaceAll");var tl=Ic,rl=r(tl),nl=g,ol=Ir,il=Qn,al=Y,sl=nl("".charAt),ul=nl("".charCodeAt),cl=nl("".slice),ll=function(e){return function(t,r){var n,o,i=il(al(t)),a=ol(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=ul(i,a))<55296||n>56319||a+1===s||(o=ul(i,a+1))<56320||o>57343?e?sl(i,a):n:e?cl(i,a,a+2):o-56320+(n-55296<<10)+65536}},fl={codeAt:ll(!1),charAt:ll(!0)},dl=fl.charAt,hl=Qn,pl=$i,vl=pc,gl=vc,yl="String Iterator",ml=pl.set,_l=pl.getterFor(yl);vl(String,"String",(function(e){ml(this,{type:yl,string:hl(e),index:0})}),(function(){var e,t=_l(this),r=t.string,n=t.index;return n>=r.length?gl(void 0,!0):(e=dl(r,n),t.index+=e.length,gl(e,!1))}));var bl=si.f("iterator"),wl=r(bl);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 xl=We,kl=vo;Er({target:"Object",stat:!0,forced:i((function(){kl(1)}))},{keys:function(e){return kl(xl(e))}});var Tl=r(te.Object.keys),Rl=r(te.Object.getOwnPropertySymbols),Ol=ea.filter;Er({target:"Array",proto:!0,forced:!Pn("filter")},{filter:function(e){return Ol(this,e,arguments.length>1?arguments[1]:void 0)}});var El=te,Ll=function(e){return El[e+"Prototype"]},Pl=Ll("Array").filter,Al=se,Cl=Pl,jl=Array.prototype,Il=r((function(e){var t=e.filter;return e===jl||Al(jl,e)&&t===jl.filter?Cl:t})),Ml={exports:{}},Fl=Er,Nl=i,Ul=X,Dl=E.f,Bl=L;Fl({target:"Object",stat:!0,forced:!Bl||Nl((function(){Dl(1)})),sham:!Bl},{getOwnPropertyDescriptor:function(e,t){return Dl(Ul(e),t)}});var Hl=te.Object,zl=Ml.exports=function(e,t){return Hl.getOwnPropertyDescriptor(e,t)};Hl.getOwnPropertyDescriptor.sham&&(zl.sham=!0);var ql=r(Ml.exports),Gl=i,Vl=function(e,t){var r=[][e];return!!r&&Gl((function(){r.call(null,t||function(){return 1},1)}))},$l=ea.forEach,Ql=Vl("forEach")?[].forEach:function(e){return $l(this,e,arguments.length>1?arguments[1]:void 0)};Er({target:"Array",proto:!0,forced:[].forEach!=Ql},{forEach:Ql});var Yl=Ll("Array").forEach,Wl=en,Kl=Je,Xl=se,Jl=Yl,Zl=Array.prototype,ef={DOMTokenList:!0,NodeList:!0},tf=r((function(e){var t=e.forEach;return e===Zl||Xl(Zl,e)&&t===Zl.forEach||Kl(ef,Wl(e))?Jl:t})),rf=ae,nf=Ho,of=ri,af=rr,sf=g([].concat),uf=rf("Reflect","ownKeys")||function(e){var t=nf.f(af(e)),r=of.f;return r?sf(t,r(e)):t},cf=uf,lf=X,ff=E,df=Vr;Er({target:"Object",stat:!0,sham:!L},{getOwnPropertyDescriptors:function(e){for(var t,r,n=lf(e),o=ff.f,i=cf(n),a={},s=0;i.length>s;)void 0!==(r=o(n,t=i[s++]))&&df(a,t,r);return a}});var hf=r(te.Object.getOwnPropertyDescriptors),pf={exports:{}},vf=Er,gf=L,yf=Yn.f;vf({target:"Object",stat:!0,forced:Object.defineProperties!==yf,sham:!gf},{defineProperties:yf});var mf=te.Object,_f=pf.exports=function(e,t){return mf.defineProperties(e,t)};mf.defineProperties.sham&&(_f.sham=!0);var bf=r(pf.exports),wf={exports:{}},Sf=Er,xf=L,kf=Xt.f;Sf({target:"Object",stat:!0,forced:Object.defineProperty!==kf,sham:!xf},{defineProperty:kf});var Tf=te.Object,Rf=wf.exports=function(e,t,r){return Tf.defineProperty(e,t,r)};Tf.defineProperty.sham&&(Rf.sham=!0);var Of=r(wf.exports),Ef=r(tl);Er({target:"Object",stat:!0,sham:!L},{create:Bo});var Lf=te.Object,Pf=r((function(e,t){return Lf.create(e,t)})),Af=We,Cf=Tu,jf=yu;Er({target:"Object",stat:!0,forced:i((function(){Cf(1)})),sham:!jf},{getPrototypeOf:function(e){return Cf(Af(e))}});var If=r(te.Object.getPrototypeOf);Er({target:"Object",stat:!0},{setPrototypeOf:Xu});var Mf=r(te.Object.setPrototypeOf),Ff=Je,Nf=uf,Uf=E,Df=Xt,Bf=ee,Hf=gr,zf=Error,qf=g("".replace),Gf=String(zf("zxcasd").stack),Vf=/\n\s*at [^:]*:[^\n]*/,$f=Vf.test(Gf),Qf=D,Yf=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Qf(1,7)),7!==e.stack)})),Wf=gr,Kf=function(e,t){if($f&&"string"==typeof e&&!zf.prepareStackTrace)for(;t--;)e=qf(e,Vf,"");return e},Xf=Yf,Jf=Error.captureStackTrace,Zf=lu,ed=dt("iterator"),td=Array.prototype,rd=function(e){return void 0!==e&&(Zf.Array===e||td[ed]===e)},nd=en,od=Ie,id=V,ad=lu,sd=dt("iterator"),ud=function(e){if(!id(e))return od(e,sd)||od(e,"@@iterator")||ad[nd(e)]},cd=C,ld=Ae,fd=rr,dd=Oe,hd=ud,pd=TypeError,vd=function(e,t){var r=arguments.length<2?hd(e):t;if(ld(r))return fd(cd(r,e));throw pd(dd(e)+" is not iterable")},gd=C,yd=rr,md=Ie,_d=function(e,t,r){var n,o;yd(e);try{if(!(n=md(e,"return"))){if("throw"===t)throw r;return r}n=gd(n,e)}catch(HA){o=!0,n=HA}if("throw"===t)throw r;if(o)throw n;return yd(n),r},bd=Kt,wd=C,Sd=rr,xd=Oe,kd=rd,Td=Dr,Rd=se,Od=vd,Ed=ud,Ld=_d,Pd=TypeError,Ad=function(e,t){this.stopped=e,this.result=t},Cd=Ad.prototype,jd=function(e,t,r){var n,o,i,a,s,u,c,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=bd(t,l),g=function(e){return n&&Ld(n,"normal",e),new Ad(!0,e)},y=function(e){return f?(Sd(e),p?v(e[0],e[1],g):v(e[0],e[1])):p?v(e,g):v(e)};if(d)n=e.iterator;else if(h)n=e;else{if(!(o=Ed(e)))throw Pd(xd(e)+" is not iterable");if(kd(o)){for(i=0,a=Td(e);a>i;i++)if((s=y(e[i]))&&Rd(Cd,s))return s;return new Ad(!1)}n=Od(e,o)}for(u=d?e.next:n.next;!(c=wd(u,n)).done;){try{s=y(c.value)}catch(HA){Ld(n,"throw",HA)}if("object"==typeof s&&s&&Rd(Cd,s))return s}return new Ad(!1)},Id=Qn,Md=Er,Fd=se,Nd=Tu,Ud=Xu,Dd=function(e,t,r){for(var n=Nf(t),o=Df.f,i=Uf.f,a=0;a<n.length;a++){var s=n[a];Ff(e,s)||r&&Ff(r,s)||o(e,s,i(t,s))}},Bd=Bo,Hd=gr,zd=D,qd=function(e,t){Bf(t)&&"cause"in t&&Hf(e,"cause",t.cause)},Gd=function(e,t,r,n){Xf&&(Jf?Jf(e,t):Wf(e,"stack",Kf(r,n)))},Vd=jd,$d=function(e,t){return void 0===e?arguments.length<2?"":t:Id(e)},Qd=dt("toStringTag"),Yd=Error,Wd=[].push,Kd=function(e,t){var r,n=Fd(Xd,this);Ud?r=Ud(Yd(),n?Nd(this):Xd):(r=n?this:Bd(Xd),Hd(r,Qd,"Error")),void 0!==t&&Hd(r,"message",$d(t)),Gd(r,Kd,r.stack,1),arguments.length>2&&qd(r,arguments[2]);var o=[];return Vd(e,Wd,{that:o}),Hd(r,"errors",o),r};Ud?Ud(Kd,Yd):Dd(Kd,Yd,{name:!0});var Xd=Kd.prototype=Bd(Yd.prototype,{constructor:zd(1,Kd),message:zd(1,""),name:zd(1,"AggregateError")});Md({global:!0,constructor:!0,arity:2},{AggregateError:Kd});var Jd,Zd,eh,th,rh="undefined"!=typeof process&&"process"==b(process),nh=ae,oh=ai,ih=L,ah=dt("species"),sh=function(e){var t=nh(e);ih&&t&&!t[ah]&&oh(t,ah,{configurable:!0,get:function(){return this}})},uh=se,ch=TypeError,lh=function(e,t){if(uh(t,e))return e;throw ch("Incorrect invocation")},fh=_n,dh=Oe,hh=TypeError,ph=function(e){if(fh(e))return e;throw hh(dh(e)+" is not a constructor")},vh=rr,gh=ph,yh=V,mh=dt("species"),_h=function(e,t){var r,n=vh(e).constructor;return void 0===n||yh(r=vh(n)[mh])?t:gh(r)},bh=TypeError,wh=function(e,t){if(e<t)throw bh("Not enough arguments");return e},Sh=/(?:ipad|iphone|ipod).*applewebkit/i.test(ue),xh=o,kh=f,Th=Kt,Rh=O,Oh=Je,Eh=i,Lh=xo,Ph=ks,Ah=Rt,Ch=wh,jh=Sh,Ih=rh,Mh=xh.setImmediate,Fh=xh.clearImmediate,Nh=xh.process,Uh=xh.Dispatch,Dh=xh.Function,Bh=xh.MessageChannel,Hh=xh.String,zh=0,qh={},Gh="onreadystatechange";Eh((function(){Jd=xh.location}));var Vh=function(e){if(Oh(qh,e)){var t=qh[e];delete qh[e],t()}},$h=function(e){return function(){Vh(e)}},Qh=function(e){Vh(e.data)},Yh=function(e){xh.postMessage(Hh(e),Jd.protocol+"//"+Jd.host)};Mh&&Fh||(Mh=function(e){Ch(arguments.length,1);var t=Rh(e)?e:Dh(e),r=Ph(arguments,1);return qh[++zh]=function(){kh(t,void 0,r)},Zd(zh),zh},Fh=function(e){delete qh[e]},Ih?Zd=function(e){Nh.nextTick($h(e))}:Uh&&Uh.now?Zd=function(e){Uh.now($h(e))}:Bh&&!jh?(th=(eh=new Bh).port2,eh.port1.onmessage=Qh,Zd=Th(th.postMessage,th)):xh.addEventListener&&Rh(xh.postMessage)&&!xh.importScripts&&Jd&&"file:"!==Jd.protocol&&!Eh(Yh)?(Zd=Yh,xh.addEventListener("message",Qh,!1)):Zd=Gh in Ah("script")?function(e){Lh.appendChild(Ah("script"))[Gh]=function(){Lh.removeChild(this),Vh(e)}}:function(e){setTimeout($h(e),0)});var Wh={set:Mh,clear:Fh},Kh=function(){this.head=null,this.tail=null};Kh.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 Xh,Jh,Zh,ep,tp,rp=Kh,np=/ipad|iphone|ipod/i.test(ue)&&"undefined"!=typeof Pebble,op=/web0s(?!.*chrome)/i.test(ue),ip=o,ap=Kt,sp=E.f,up=Wh.set,cp=rp,lp=Sh,fp=np,dp=op,hp=rh,pp=ip.MutationObserver||ip.WebKitMutationObserver,vp=ip.document,gp=ip.process,yp=ip.Promise,mp=sp(ip,"queueMicrotask"),_p=mp&&mp.value;if(!_p){var bp=new cp,wp=function(){var e,t;for(hp&&(e=gp.domain)&&e.exit();t=bp.get();)try{t()}catch(HA){throw bp.head&&Xh(),HA}e&&e.enter()};lp||hp||dp||!pp||!vp?!fp&&yp&&yp.resolve?((ep=yp.resolve(void 0)).constructor=yp,tp=ap(ep.then,ep),Xh=function(){tp(wp)}):hp?Xh=function(){gp.nextTick(wp)}:(up=ap(up,ip),Xh=function(){up(wp)}):(Jh=!0,Zh=vp.createTextNode(""),new pp(wp).observe(Zh,{characterData:!0}),Xh=function(){Zh.data=Jh=!Jh}),_p=function(e){bp.head||Xh(),bp.add(e)}}var Sp=_p,xp=function(e){try{return{error:!1,value:e()}}catch(HA){return{error:!0,value:HA}}},kp=o.Promise,Tp="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Rp=!Tp&&!rh&&"object"==typeof window&&"object"==typeof document,Op=o,Ep=kp,Lp=O,Pp=$t,Ap=on,Cp=dt,jp=Rp,Ip=Tp,Mp=ve,Fp=Ep&&Ep.prototype,Np=Cp("species"),Up=!1,Dp=Lp(Op.PromiseRejectionEvent),Bp={CONSTRUCTOR:Pp("Promise",(function(){var e=Ap(Ep),t=e!==String(Ep);if(!t&&66===Mp)return!0;if(!Fp.catch||!Fp.finally)return!0;if(!Mp||Mp<51||!/native code/.test(e)){var r=new Ep((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[Np]=n,!(Up=r.then((function(){}))instanceof n))return!0}return!t&&(jp||Ip)&&!Dp})),REJECTION_EVENT:Dp,SUBCLASSING:Up},Hp={},zp=Ae,qp=TypeError,Gp=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw qp("Bad Promise constructor");t=e,r=n})),this.resolve=zp(t),this.reject=zp(r)};Hp.f=function(e){return new Gp(e)};var Vp,$p,Qp=Er,Yp=rh,Wp=o,Kp=C,Xp=oi,Jp=Pi,Zp=sh,ev=Ae,tv=O,rv=ee,nv=lh,ov=_h,iv=Wh.set,av=Sp,sv=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(HA){}},uv=xp,cv=rp,lv=$i,fv=kp,dv=Bp,hv=Hp,pv="Promise",vv=dv.CONSTRUCTOR,gv=dv.REJECTION_EVENT,yv=lv.getterFor(pv),mv=lv.set,_v=fv&&fv.prototype,bv=fv,wv=_v,Sv=Wp.TypeError,xv=Wp.document,kv=Wp.process,Tv=hv.f,Rv=Tv,Ov=!!(xv&&xv.createEvent&&Wp.dispatchEvent),Ev="unhandledrejection",Lv=function(e){var t;return!(!rv(e)||!tv(t=e.then))&&t},Pv=function(e,t){var r,n,o,i=t.value,a=1==t.state,s=a?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(a||(2===t.rejection&&Mv(t),t.rejection=1),!0===s?r=i:(l&&l.enter(),r=s(i),l&&(l.exit(),o=!0)),r===e.promise?c(Sv("Promise-chain cycle")):(n=Lv(r))?Kp(n,r,u,c):u(r)):c(i)}catch(HA){l&&!o&&l.exit(),c(HA)}},Av=function(e,t){e.notified||(e.notified=!0,av((function(){for(var r,n=e.reactions;r=n.get();)Pv(r,e);e.notified=!1,t&&!e.rejection&&jv(e)})))},Cv=function(e,t,r){var n,o;Ov?((n=xv.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Wp.dispatchEvent(n)):n={promise:t,reason:r},!gv&&(o=Wp["on"+e])?o(n):e===Ev&&sv("Unhandled promise rejection",r)},jv=function(e){Kp(iv,Wp,(function(){var t,r=e.facade,n=e.value;if(Iv(e)&&(t=uv((function(){Yp?kv.emit("unhandledRejection",n,r):Cv(Ev,r,n)})),e.rejection=Yp||Iv(e)?2:1,t.error))throw t.value}))},Iv=function(e){return 1!==e.rejection&&!e.parent},Mv=function(e){Kp(iv,Wp,(function(){var t=e.facade;Yp?kv.emit("rejectionHandled",t):Cv("rejectionhandled",t,e.value)}))},Fv=function(e,t,r){return function(n){e(t,n,r)}},Nv=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Av(e,!0))},Uv=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=Lv(t);n?av((function(){var r={done:!1};try{Kp(n,t,Fv(Uv,r,e),Fv(Nv,r,e))}catch(HA){Nv(r,HA,e)}})):(e.value=t,e.state=1,Av(e,!1))}catch(HA){Nv({done:!1},HA,e)}}};vv&&(wv=(bv=function(e){nv(this,wv),ev(e),Kp(Vp,this);var t=yv(this);try{e(Fv(Uv,t),Fv(Nv,t))}catch(HA){Nv(t,HA)}}).prototype,(Vp=function(e){mv(this,{type:pv,done:!1,notified:!1,parent:!1,reactions:new cv,rejection:!1,state:0,value:void 0})}).prototype=Xp(wv,"then",(function(e,t){var r=yv(this),n=Tv(ov(this,bv));return r.parent=!0,n.ok=!tv(e)||e,n.fail=tv(t)&&t,n.domain=Yp?kv.domain:void 0,0==r.state?r.reactions.add(n):av((function(){Pv(n,r)})),n.promise})),$p=function(){var e=new Vp,t=yv(e);this.promise=e,this.resolve=Fv(Uv,t),this.reject=Fv(Nv,t)},hv.f=Tv=function(e){return e===bv||undefined===e?new $p(e):Rv(e)}),Qp({global:!0,constructor:!0,wrap:!0,forced:vv},{Promise:bv}),Jp(bv,pv,!1,!0),Zp(pv);var Dv=dt("iterator"),Bv=!1;try{var Hv=0,zv={next:function(){return{done:!!Hv++}},return:function(){Bv=!0}};zv[Dv]=function(){return this},Array.from(zv,(function(){throw 2}))}catch(HA){}var qv=function(e,t){if(!t&&!Bv)return!1;var r=!1;try{var n={};n[Dv]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(HA){}return r},Gv=kp,Vv=Bp.CONSTRUCTOR||!qv((function(e){Gv.all(e).then(void 0,(function(){}))})),$v=C,Qv=Ae,Yv=Hp,Wv=xp,Kv=jd;Er({target:"Promise",stat:!0,forced:Vv},{all:function(e){var t=this,r=Yv.f(t),n=r.resolve,o=r.reject,i=Wv((function(){var r=Qv(t.resolve),i=[],a=0,s=1;Kv(e,(function(e){var u=a++,c=!1;s++,$v(r,t,e).then((function(e){c||(c=!0,i[u]=e,--s||n(i))}),o)})),--s||n(i)}));return i.error&&o(i.value),r.promise}});var Xv=Er,Jv=Bp.CONSTRUCTOR;kp&&kp.prototype,Xv({target:"Promise",proto:!0,forced:Jv,real:!0},{catch:function(e){return this.then(void 0,e)}});var Zv=C,eg=Ae,tg=Hp,rg=xp,ng=jd;Er({target:"Promise",stat:!0,forced:Vv},{race:function(e){var t=this,r=tg.f(t),n=r.reject,o=rg((function(){var o=eg(t.resolve);ng(e,(function(e){Zv(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var og=C,ig=Hp;Er({target:"Promise",stat:!0,forced:Bp.CONSTRUCTOR},{reject:function(e){var t=ig.f(this);return og(t.reject,void 0,e),t.promise}});var ag=rr,sg=ee,ug=Hp,cg=function(e,t){if(ag(e),sg(t)&&t.constructor===e)return t;var r=ug.f(e);return(0,r.resolve)(t),r.promise},lg=Er,fg=kp,dg=Bp.CONSTRUCTOR,hg=cg,pg=ae("Promise"),vg=!dg;lg({target:"Promise",stat:!0,forced:true},{resolve:function(e){return hg(vg&&this===pg?fg:this,e)}});var gg=C,yg=Ae,mg=Hp,_g=xp,bg=jd;Er({target:"Promise",stat:!0,forced:Vv},{allSettled:function(e){var t=this,r=mg.f(t),n=r.resolve,o=r.reject,i=_g((function(){var r=yg(t.resolve),o=[],i=0,a=1;bg(e,(function(e){var s=i++,u=!1;a++,gg(r,t,e).then((function(e){u||(u=!0,o[s]={status:"fulfilled",value:e},--a||n(o))}),(function(e){u||(u=!0,o[s]={status:"rejected",reason:e},--a||n(o))}))})),--a||n(o)}));return i.error&&o(i.value),r.promise}});var wg=C,Sg=Ae,xg=ae,kg=Hp,Tg=xp,Rg=jd,Og="No one promise resolved";Er({target:"Promise",stat:!0,forced:Vv},{any:function(e){var t=this,r=xg("AggregateError"),n=kg.f(t),o=n.resolve,i=n.reject,a=Tg((function(){var n=Sg(t.resolve),a=[],s=0,u=1,c=!1;Rg(e,(function(e){var l=s++,f=!1;u++,wg(n,t,e).then((function(e){f||c||(c=!0,o(e))}),(function(e){f||c||(f=!0,a[l]=e,--u||i(new r(a,Og)))}))})),--u||i(new r(a,Og))}));return a.error&&i(a.value),n.promise}});var Eg=Er,Lg=kp,Pg=i,Ag=ae,Cg=O,jg=_h,Ig=cg,Mg=Lg&&Lg.prototype;Eg({target:"Promise",proto:!0,real:!0,forced:!!Lg&&Pg((function(){Mg.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=jg(this,Ag("Promise")),r=Cg(e);return this.then(r?function(r){return Ig(t,e()).then((function(){return r}))}:e,r?function(r){return Ig(t,e()).then((function(){throw r}))}:e)}});var Fg=te.Promise,Ng=Hp,Ug=xp;Er({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Ng.f(this),r=Ug(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var Dg=r(Fg),Bg=Er,Hg=Pr,zg=g([].reverse),qg=[1,2];Bg({target:"Array",proto:!0,forced:String(qg)===String(qg.reverse())},{reverse:function(){return Hg(this)&&(this.length=this.length),zg(this)}});var Gg=Ll("Array").reverse,Vg=se,$g=Gg,Qg=Array.prototype,Yg=r((function(e){var t=e.reverse;return e===Qg||Vg(Qg,e)&&t===Qg.reverse?$g:t})),Wg=Er,Kg=Pr,Xg=_n,Jg=ee,Zg=Jn,ey=Dr,ty=X,ry=Vr,ny=dt,oy=ks,iy=Pn("slice"),ay=ny("species"),sy=Array,uy=Math.max;Wg({target:"Array",proto:!0,forced:!iy},{slice:function(e,t){var r,n,o,i=ty(this),a=ey(i),s=Zg(e,a),u=Zg(void 0===t?a:t,a);if(Kg(i)&&(r=i.constructor,(Xg(r)&&(r===sy||Kg(r.prototype))||Jg(r)&&null===(r=r[ay]))&&(r=void 0),r===sy||void 0===r))return oy(i,s,u);for(n=new(void 0===r?sy:r)(uy(u-s,0)),o=0;s<u;s++,o++)s in i&&ry(n,o,i[s]);return n.length=o,n}});var cy=Ll("Array").slice,ly=se,fy=cy,dy=Array.prototype,hy=r((function(e){var t=e.slice;return e===dy||ly(dy,e)&&t===dy.slice?fy:t})),py=r(bl),vy=g,gy=Ae,yy=ee,my=Je,_y=ks,by=a,wy=Function,Sy=vy([].concat),xy=vy([].join),ky={},Ty=by?wy.bind:function(e){var t=gy(this),r=t.prototype,n=_y(arguments,1),o=function(){var r=Sy(n,_y(arguments));return this instanceof o?function(e,t,r){if(!my(ky,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";ky[t]=wy("C,a","return new C("+xy(n,",")+")")}return ky[t](e,r)}(t,r.length,r):t.apply(e,r)};return yy(r)&&(o.prototype=r),o},Ry=Ty;Er({target:"Function",proto:!0,forced:Function.bind!==Ry},{bind:Ry});var Oy=Ll("Function").bind,Ey=se,Ly=Oy,Py=Function.prototype,Ay=r((function(e){var t=e.bind;return e===Py||Ey(Py,e)&&t===Py.bind?Ly:t})),Cy=Er,jy=f,Iy=Ty,My=ph,Fy=rr,Ny=ee,Uy=Bo,Dy=i,By=ae("Reflect","construct"),Hy=Object.prototype,zy=[].push,qy=Dy((function(){function e(){}return!(By((function(){}),[],e)instanceof e)})),Gy=!Dy((function(){By((function(){}))})),Vy=qy||Gy;Cy({target:"Reflect",stat:!0,forced:Vy,sham:Vy},{construct:function(e,t){My(e),Fy(t);var r=arguments.length<3?e:My(arguments[2]);if(Gy&&!qy)return By(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 jy(zy,n,t),new(jy(Iy,e,n))}var o=r.prototype,i=Uy(Ny(o)?o:Hy),a=jy(e,i,t);return Ny(a)?a:i}});var $y=r(te.Reflect.construct),Qy=r(si.f("toPrimitive"));function Yy(e,t){var r=Tl(e);if(Rl){var n=Rl(e);t&&(n=Il(n).call(n,(function(t){return ql(e,t).enumerable}))),r.push.apply(r,n)}return r}function Wy(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?tf(r=Yy(Object(o),!0)).call(r,(function(t){nm(e,t,o[t])})):hf?bf(e,hf(o)):tf(n=Yy(Object(o))).call(n,(function(t){Of(e,t,ql(o,t))}))}return e}function Ky(){Ky=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Of||function(e,t,r){e[t]=r.value},o="function"==typeof Ef?Ef:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r){return Of(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(O){u=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var i=t&&t.prototype instanceof d?t:d,a=Pf(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:b(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=c;var f={};function d(){}function h(){}function p(){}var v={};u(v,i,(function(){return this}));var g=If&&If(If(T([])));g&&g!==t&&r.call(g,i)&&(v=g);var y=p.prototype=d.prototype=Pf(v);function m(e){var t;tf(t=["next","throw","return"]).call(t,(function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var u=l(e[n],e,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Sl(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,s)}))}s(u.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],tf(e).call(e,S,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=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 o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=p,n(y,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=u(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Mf?Mf(e,p):(e.__proto__=p,u(e,s,"GeneratorFunction")),e.prototype=Pf(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),u(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Dg);var a=new _(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),u(y,s,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return Yg(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,k.prototype={constructor:k,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,x),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+hy(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 o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.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),x(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}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 Xy(e){return(Xy="function"==typeof Ef&&"symbol"==typeof py?function(e){return typeof e}:function(e){return e&&"function"==typeof Ef&&e.constructor===Ef&&e!==Ef.prototype?"symbol":typeof e})(e)}function Jy(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(HA){return void r(HA)}s.done?t(u):Dg.resolve(u).then(n,o)}function Zy(e){return function(){var t=this,r=arguments;return new Dg((function(n,o){var i=e.apply(t,r);function a(e){Jy(i,n,o,a,s,"next",e)}function s(e){Jy(i,n,o,a,s,"throw",e)}a(void 0)}))}}function em(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tm(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),Of(e,cm(n.key),n)}}function rm(e,t,r){return t&&tm(e.prototype,t),r&&tm(e,r),Of(e,"prototype",{writable:!1}),e}function nm(e,t,r){return(t=cm(t))in e?Of(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function om(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Pf(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Of(e,"prototype",{writable:!1}),t&&am(e,t)}function im(e){var t;return(im=Mf?Ay(t=If).call(t):function(e){return e.__proto__||If(e)})(e)}function am(e,t){var r;return(am=Mf?Ay(r=Mf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function sm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function um(e){var t=function(){if("undefined"==typeof Reflect||!$y)return!1;if($y.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call($y(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=im(e);if(t){var o=im(this).constructor;r=$y(n,arguments,o)}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 sm(e)}(this,r)}}function cm(e){var t=function(e,t){if("object"!==Sl(e)||null===e)return e;var r=e[Qy];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 lm=Ll("Array").concat,fm=se,dm=lm,hm=Array.prototype,pm=r((function(e){var t=e.concat;return e===hm||fm(hm,e)&&t===hm.concat?dm:t})),vm=i,gm=dt("iterator"),ym=!vm((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[gm]||"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})),mm=L,_m=g,bm=C,wm=i,Sm=vo,xm=ri,km=j,Tm=We,Rm=G,Om=Object.assign,Em=Object.defineProperty,Lm=_m([].concat),Pm=!Om||wm((function(){if(mm&&1!==Om({b:1},Om(Em({},"a",{enumerable:!0,get:function(){Em(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!=Om({},e)[r]||Sm(Om({},t)).join("")!=n}))?function(e,t){for(var r=Tm(e),n=arguments.length,o=1,i=xm.f,a=km.f;n>o;)for(var s,u=Rm(arguments[o++]),c=i?Lm(Sm(u),i(u)):Sm(u),l=c.length,f=0;l>f;)s=c[f++],mm&&!bm(a,u,s)||(r[s]=u[s]);return r}:Om,Am=rr,Cm=_d,jm=Kt,Im=C,Mm=We,Fm=function(e,t,r,n){try{return n?t(Am(r)[0],r[1]):t(r)}catch(HA){Cm(e,"throw",HA)}},Nm=rd,Um=_n,Dm=Dr,Bm=Vr,Hm=vd,zm=ud,qm=Array,Gm=function(e){var t=Mm(e),r=Um(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=jm(o,n>2?arguments[2]:void 0));var a,s,u,c,l,f,d=zm(t),h=0;if(!d||this===qm&&Nm(d))for(a=Dm(t),s=r?new this(a):qm(a);a>h;h++)f=i?o(t[h],h):t[h],Bm(s,h,f);else for(l=(c=Hm(t,d)).next,s=r?new this:[];!(u=Im(l,c)).done;h++)f=i?Fm(c,o,[u.value,h],!0):u.value,Bm(s,h,f);return s.length=h,s},Vm=g,$m=2147483647,Qm=/[^\0-\u007E]/,Ym=/[.\u3002\uFF0E\uFF61]/g,Wm="Overflow: input needs wider integers to process",Km=RangeError,Xm=Vm(Ym.exec),Jm=Math.floor,Zm=String.fromCharCode,e_=Vm("".charCodeAt),t_=Vm([].join),r_=Vm([].push),n_=Vm("".replace),o_=Vm("".split),i_=Vm("".toLowerCase),a_=function(e){return e+22+75*(e<26)},s_=function(e,t,r){var n=0;for(e=r?Jm(e/700):e>>1,e+=Jm(e/t);e>455;)e=Jm(e/35),n+=36;return Jm(n+36*e/(e+38))},u_=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=e_(e,r++);if(o>=55296&&o<=56319&&r<n){var i=e_(e,r++);56320==(64512&i)?r_(t,((1023&o)<<10)+(1023&i)+65536):(r_(t,o),r--)}else r_(t,o)}return t}(e);var r,n,o=e.length,i=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&r_(t,Zm(n));var u=t.length,c=u;for(u&&r_(t,"-");c<o;){var l=$m;for(r=0;r<e.length;r++)(n=e[r])>=i&&n<l&&(l=n);var f=c+1;if(l-i>Jm(($m-a)/f))throw Km(Wm);for(a+=(l-i)*f,i=l,r=0;r<e.length;r++){if((n=e[r])<i&&++a>$m)throw Km(Wm);if(n==i){for(var d=a,h=36;;){var p=h<=s?1:h>=s+26?26:h-s;if(d<p)break;var v=d-p,g=36-p;r_(t,Zm(a_(p+v%g))),d=Jm(v/g),h+=36}r_(t,Zm(a_(d))),s=s_(a,f,c==u),a=0,c++}}a++,i++}return t_(t,"")},c_=oi,l_=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:c_(e,n,t[n],r);return e},f_=Ko,d_=Math.floor,h_=function(e,t){var r=e.length,n=d_(r/2);return r<8?p_(e,t):v_(e,h_(f_(e,0,n),t),h_(f_(e,n),t),t)},p_=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},v_=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?n(t[a],r[s])<=0?t[a++]:r[s++]:a<o?t[a++]:r[s++];return e},g_=h_,y_=Er,m_=o,__=C,b_=g,w_=L,S_=ym,x_=oi,k_=ai,T_=l_,R_=Pi,O_=zu,E_=$i,L_=lh,P_=O,A_=Je,C_=Kt,j_=en,I_=rr,M_=ee,F_=Qn,N_=Bo,U_=D,D_=vd,B_=ud,H_=wh,z_=g_,q_=dt("iterator"),G_="URLSearchParams",V_=G_+"Iterator",$_=E_.set,Q_=E_.getterFor(G_),Y_=E_.getterFor(V_),W_=Object.getOwnPropertyDescriptor,K_=function(e){if(!w_)return m_[e];var t=W_(m_,e);return t&&t.value},X_=K_("fetch"),J_=K_("Request"),Z_=K_("Headers"),eb=J_&&J_.prototype,tb=Z_&&Z_.prototype,rb=m_.RegExp,nb=m_.TypeError,ob=m_.decodeURIComponent,ib=m_.encodeURIComponent,ab=b_("".charAt),sb=b_([].join),ub=b_([].push),cb=b_("".replace),lb=b_([].shift),fb=b_([].splice),db=b_("".split),hb=b_("".slice),pb=/\+/g,vb=Array(4),gb=function(e){return vb[e-1]||(vb[e-1]=rb("((?:%[\\da-f]{2}){"+e+"})","gi"))},yb=function(e){try{return ob(e)}catch(HA){return e}},mb=function(e){var t=cb(e,pb," "),r=4;try{return ob(t)}catch(HA){for(;r;)t=cb(t,gb(r--),yb);return t}},_b=/[!'()~]|%20/g,bb={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},wb=function(e){return bb[e]},Sb=function(e){return cb(ib(e),_b,wb)},xb=O_((function(e,t){$_(this,{type:V_,iterator:D_(Q_(e).entries),kind:t})}),"Iterator",(function(){var e=Y_(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),kb=function(e){this.entries=[],this.url=null,void 0!==e&&(M_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===ab(e,0)?hb(e,1):e:F_(e)))};kb.prototype={type:G_,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,s,u=B_(e);if(u)for(r=(t=D_(e,u)).next;!(n=__(r,t)).done;){if(i=(o=D_(I_(n.value))).next,(a=__(i,o)).done||(s=__(i,o)).done||!__(i,o).done)throw nb("Expected sequence with length 2");ub(this.entries,{key:F_(a.value),value:F_(s.value)})}else for(var c in e)A_(e,c)&&ub(this.entries,{key:c,value:F_(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=db(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=db(t,"="),ub(this.entries,{key:mb(lb(r)),value:mb(sb(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],ub(r,Sb(e.key)+"="+Sb(e.value));return sb(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Tb=function(){L_(this,Rb);var e=$_(this,new kb(arguments.length>0?arguments[0]:void 0));w_||(this.length=e.entries.length)},Rb=Tb.prototype;if(T_(Rb,{append:function(e,t){H_(arguments.length,2);var r=Q_(this);ub(r.entries,{key:F_(e),value:F_(t)}),w_||this.length++,r.updateURL()},delete:function(e){H_(arguments.length,1);for(var t=Q_(this),r=t.entries,n=F_(e),o=0;o<r.length;)r[o].key===n?fb(r,o,1):o++;w_||(this.length=r.length),t.updateURL()},get:function(e){H_(arguments.length,1);for(var t=Q_(this).entries,r=F_(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){H_(arguments.length,1);for(var t=Q_(this).entries,r=F_(e),n=[],o=0;o<t.length;o++)t[o].key===r&&ub(n,t[o].value);return n},has:function(e){H_(arguments.length,1);for(var t=Q_(this).entries,r=F_(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){H_(arguments.length,1);for(var r,n=Q_(this),o=n.entries,i=!1,a=F_(e),s=F_(t),u=0;u<o.length;u++)(r=o[u]).key===a&&(i?fb(o,u--,1):(i=!0,r.value=s));i||ub(o,{key:a,value:s}),w_||(this.length=o.length),n.updateURL()},sort:function(){var e=Q_(this);z_(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=Q_(this).entries,n=C_(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new xb(this,"keys")},values:function(){return new xb(this,"values")},entries:function(){return new xb(this,"entries")}},{enumerable:!0}),x_(Rb,q_,Rb.entries,{name:"entries"}),x_(Rb,"toString",(function(){return Q_(this).serialize()}),{enumerable:!0}),w_&&k_(Rb,"size",{get:function(){return Q_(this).entries.length},configurable:!0,enumerable:!0}),R_(Tb,G_),y_({global:!0,constructor:!0,forced:!S_},{URLSearchParams:Tb}),!S_&&P_(Z_)){var Ob=b_(tb.has),Eb=b_(tb.set),Lb=function(e){if(M_(e)){var t,r=e.body;if(j_(r)===G_)return t=e.headers?new Z_(e.headers):new Z_,Ob(t,"content-type")||Eb(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),N_(e,{body:U_(0,F_(r)),headers:U_(0,t)})}return e};if(P_(X_)&&y_({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return X_(e,arguments.length>1?Lb(arguments[1]):{})}}),P_(J_)){var Pb=function(e){return L_(this,eb),new J_(e,arguments.length>1?Lb(arguments[1]):{})};eb.constructor=Pb,Pb.prototype=eb,y_({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Pb})}}var Ab,Cb=Er,jb=L,Ib=ym,Mb=o,Fb=Kt,Nb=g,Ub=oi,Db=ai,Bb=lh,Hb=Je,zb=Pm,qb=Gm,Gb=Ko,Vb=fl.codeAt,$b=function(e){var t,r,n=[],o=o_(n_(i_(e),Ym,"."),".");for(t=0;t<o.length;t++)r=o[t],r_(n,Xm(Qm,r)?"xn--"+u_(r):r);return t_(n,".")},Qb=Qn,Yb=Pi,Wb=wh,Kb={URLSearchParams:Tb,getState:Q_},Xb=$i,Jb=Xb.set,Zb=Xb.getterFor("URL"),ew=Kb.URLSearchParams,tw=Kb.getState,rw=Mb.URL,nw=Mb.TypeError,ow=Mb.parseInt,iw=Math.floor,aw=Math.pow,sw=Nb("".charAt),uw=Nb(/./.exec),cw=Nb([].join),lw=Nb(1..toString),fw=Nb([].pop),dw=Nb([].push),hw=Nb("".replace),pw=Nb([].shift),vw=Nb("".split),gw=Nb("".slice),yw=Nb("".toLowerCase),mw=Nb([].unshift),_w="Invalid scheme",bw="Invalid host",ww="Invalid port",Sw=/[a-z]/i,xw=/[\d+-.a-z]/i,kw=/\d/,Tw=/^0x/i,Rw=/^[0-7]+$/,Ow=/^\d+$/,Ew=/^[\da-f]+$/i,Lw=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Pw=/[\0\t\n\r #/:<>?@[\\\]^|]/,Aw=/^[\u0000-\u0020]+/,Cw=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,jw=/[\t\n\r]/g,Iw=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)mw(t,e%256),e=iw(e/256);return cw(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=lw(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},Mw={},Fw=zb({},Mw,{" ":1,'"':1,"<":1,">":1,"`":1}),Nw=zb({},Fw,{"#":1,"?":1,"{":1,"}":1}),Uw=zb({},Nw,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Dw=function(e,t){var r=Vb(e,0);return r>32&&r<127&&!Hb(t,e)?e:encodeURIComponent(e)},Bw={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Hw=function(e,t){var r;return 2==e.length&&uw(Sw,sw(e,0))&&(":"==(r=sw(e,1))||!t&&"|"==r)},zw=function(e){var t;return e.length>1&&Hw(gw(e,0,2))&&(2==e.length||"/"===(t=sw(e,2))||"\\"===t||"?"===t||"#"===t)},qw=function(e){return"."===e||"%2e"===yw(e)},Gw={},Vw={},$w={},Qw={},Yw={},Ww={},Kw={},Xw={},Jw={},Zw={},eS={},tS={},rS={},nS={},oS={},iS={},aS={},sS={},uS={},cS={},lS={},fS=function(e,t,r){var n,o,i,a=Qb(e);if(t){if(o=this.parse(a))throw nw(o);this.searchParams=null}else{if(void 0!==r&&(n=new fS(r,!0)),o=this.parse(a,null,n))throw nw(o);(i=tw(new ew)).bindURL(this),this.searchParams=i}};fS.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,s,u=this,c=t||Gw,l=0,f="",d=!1,h=!1,p=!1;for(e=Qb(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=hw(e,Aw,""),e=hw(e,Cw,"$1")),e=hw(e,jw,""),n=qb(e);l<=n.length;){switch(o=n[l],c){case Gw:if(!o||!uw(Sw,o)){if(t)return _w;c=$w;continue}f+=yw(o),c=Vw;break;case Vw:if(o&&(uw(xw,o)||"+"==o||"-"==o||"."==o))f+=yw(o);else{if(":"!=o){if(t)return _w;f="",c=$w,l=0;continue}if(t&&(u.isSpecial()!=Hb(Bw,f)||"file"==f&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=f,t)return void(u.isSpecial()&&Bw[u.scheme]==u.port&&(u.port=null));f="","file"==u.scheme?c=nS:u.isSpecial()&&r&&r.scheme==u.scheme?c=Qw:u.isSpecial()?c=Xw:"/"==n[l+1]?(c=Yw,l++):(u.cannotBeABaseURL=!0,dw(u.path,""),c=uS)}break;case $w:if(!r||r.cannotBeABaseURL&&"#"!=o)return _w;if(r.cannotBeABaseURL&&"#"==o){u.scheme=r.scheme,u.path=Gb(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=lS;break}c="file"==r.scheme?nS:Ww;continue;case Qw:if("/"!=o||"/"!=n[l+1]){c=Ww;continue}c=Jw,l++;break;case Yw:if("/"==o){c=Zw;break}c=sS;continue;case Ww:if(u.scheme=r.scheme,o==Ab)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=Gb(r.path),u.query=r.query;else if("/"==o||"\\"==o&&u.isSpecial())c=Kw;else if("?"==o)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=Gb(r.path),u.query="",c=cS;else{if("#"!=o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=Gb(r.path),u.path.length--,c=sS;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=Gb(r.path),u.query=r.query,u.fragment="",c=lS}break;case Kw:if(!u.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=sS;continue}c=Zw}else c=Jw;break;case Xw:if(c=Jw,"/"!=o||"/"!=sw(f,l+1))continue;l++;break;case Jw:if("/"!=o&&"\\"!=o){c=Zw;continue}break;case Zw:if("@"==o){d&&(f="%40"+f),d=!0,i=qb(f);for(var v=0;v<i.length;v++){var g=i[v];if(":"!=g||p){var y=Dw(g,Uw);p?u.password+=y:u.username+=y}else p=!0}f=""}else if(o==Ab||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()){if(d&&""==f)return"Invalid authority";l-=qb(f).length+1,f="",c=eS}else f+=o;break;case eS:case tS:if(t&&"file"==u.scheme){c=iS;continue}if(":"!=o||h){if(o==Ab||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()){if(u.isSpecial()&&""==f)return bw;if(t&&""==f&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(f))return a;if(f="",c=aS,t)return;continue}"["==o?h=!0:"]"==o&&(h=!1),f+=o}else{if(""==f)return bw;if(a=u.parseHost(f))return a;if(f="",c=rS,t==tS)return}break;case rS:if(!uw(kw,o)){if(o==Ab||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()||t){if(""!=f){var m=ow(f,10);if(m>65535)return ww;u.port=u.isSpecial()&&m===Bw[u.scheme]?null:m,f=""}if(t)return;c=aS;continue}return ww}f+=o;break;case nS:if(u.scheme="file","/"==o||"\\"==o)c=oS;else{if(!r||"file"!=r.scheme){c=sS;continue}if(o==Ab)u.host=r.host,u.path=Gb(r.path),u.query=r.query;else if("?"==o)u.host=r.host,u.path=Gb(r.path),u.query="",c=cS;else{if("#"!=o){zw(cw(Gb(n,l),""))||(u.host=r.host,u.path=Gb(r.path),u.shortenPath()),c=sS;continue}u.host=r.host,u.path=Gb(r.path),u.query=r.query,u.fragment="",c=lS}}break;case oS:if("/"==o||"\\"==o){c=iS;break}r&&"file"==r.scheme&&!zw(cw(Gb(n,l),""))&&(Hw(r.path[0],!0)?dw(u.path,r.path[0]):u.host=r.host),c=sS;continue;case iS:if(o==Ab||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&Hw(f))c=sS;else if(""==f){if(u.host="",t)return;c=aS}else{if(a=u.parseHost(f))return a;if("localhost"==u.host&&(u.host=""),t)return;f="",c=aS}continue}f+=o;break;case aS:if(u.isSpecial()){if(c=sS,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=Ab&&(c=sS,"/"!=o))continue}else u.fragment="",c=lS;else u.query="",c=cS;break;case sS:if(o==Ab||"/"==o||"\\"==o&&u.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(s=yw(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"==o||"\\"==o&&u.isSpecial()||dw(u.path,"")):qw(f)?"/"==o||"\\"==o&&u.isSpecial()||dw(u.path,""):("file"==u.scheme&&!u.path.length&&Hw(f)&&(u.host&&(u.host=""),f=sw(f,0)+":"),dw(u.path,f)),f="","file"==u.scheme&&(o==Ab||"?"==o||"#"==o))for(;u.path.length>1&&""===u.path[0];)pw(u.path);"?"==o?(u.query="",c=cS):"#"==o&&(u.fragment="",c=lS)}else f+=Dw(o,Nw);break;case uS:"?"==o?(u.query="",c=cS):"#"==o?(u.fragment="",c=lS):o!=Ab&&(u.path[0]+=Dw(o,Mw));break;case cS:t||"#"!=o?o!=Ab&&("'"==o&&u.isSpecial()?u.query+="%27":u.query+="#"==o?"%23":Dw(o,Mw)):(u.fragment="",c=lS);break;case lS:o!=Ab&&(u.fragment+=Dw(o,Fw))}l++}},parseHost:function(e){var t,r,n;if("["==sw(e,0)){if("]"!=sw(e,e.length-1))return bw;if(t=function(e){var t,r,n,o,i,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,d=function(){return sw(e,f)};if(":"==d()){if(":"!=sw(e,1))return;f+=2,l=++c}for(;d();){if(8==c)return;if(":"!=d()){for(t=r=0;r<4&&uw(Ew,d());)t=16*t+ow(d(),16),f++,r++;if("."==d()){if(0==r)return;if(f-=r,c>6)return;for(n=0;d();){if(o=null,n>0){if(!("."==d()&&n<4))return;f++}if(!uw(kw,d()))return;for(;uw(kw,d());){if(i=ow(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}u[c]=256*u[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;u[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!=c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!=c)return;return u}(gw(e,1,-1)),!t)return bw;this.host=t}else if(this.isSpecial()){if(e=$b(e),uw(Lw,e))return bw;if(t=function(e){var t,r,n,o,i,a,s,u=vw(e,".");if(u.length&&""==u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=u[n]))return e;if(i=10,o.length>1&&"0"==sw(o,0)&&(i=uw(Tw,o)?16:8,o=gw(o,8==i?1:2)),""===o)a=0;else{if(!uw(10==i?Ow:8==i?Rw:Ew,o))return e;a=ow(o,i)}dw(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=aw(256,5-t))return null}else if(a>255)return null;for(s=fw(r),n=0;n<r.length;n++)s+=r[n]*aw(256,3-n);return s}(e),null===t)return bw;this.host=t}else{if(uw(Pw,e))return bw;for(t="",r=qb(e),n=0;n<r.length;n++)t+=Dw(r[n],Mw);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return Hb(Bw,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&Hw(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,u=e.fragment,c=t+":";return null!==o?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=Iw(o),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+cw(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw nw(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new dS(e.path[0]).origin}catch(HA){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Iw(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Qb(e)+":",Gw)},getUsername:function(){return this.username},setUsername:function(e){var t=qb(Qb(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=Dw(t[r],Uw)}},getPassword:function(){return this.password},setPassword:function(e){var t=qb(Qb(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=Dw(t[r],Uw)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Iw(e):Iw(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,eS)},getHostname:function(){var e=this.host;return null===e?"":Iw(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,tS)},getPort:function(){var e=this.port;return null===e?"":Qb(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=Qb(e))?this.port=null:this.parse(e,rS))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+cw(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,aS))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=Qb(e))?this.query=null:("?"==sw(e,0)&&(e=gw(e,1)),this.query="",this.parse(e,cS)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=Qb(e))?("#"==sw(e,0)&&(e=gw(e,1)),this.fragment="",this.parse(e,lS)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var dS=function(e){var t=Bb(this,hS),r=Wb(arguments.length,1)>1?arguments[1]:void 0,n=Jb(t,new fS(e,!1,r));jb||(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())},hS=dS.prototype,pS=function(e,t){return{get:function(){return Zb(this)[e]()},set:t&&function(e){return Zb(this)[t](e)},configurable:!0,enumerable:!0}};if(jb&&(Db(hS,"href",pS("serialize","setHref")),Db(hS,"origin",pS("getOrigin")),Db(hS,"protocol",pS("getProtocol","setProtocol")),Db(hS,"username",pS("getUsername","setUsername")),Db(hS,"password",pS("getPassword","setPassword")),Db(hS,"host",pS("getHost","setHost")),Db(hS,"hostname",pS("getHostname","setHostname")),Db(hS,"port",pS("getPort","setPort")),Db(hS,"pathname",pS("getPathname","setPathname")),Db(hS,"search",pS("getSearch","setSearch")),Db(hS,"searchParams",pS("getSearchParams")),Db(hS,"hash",pS("getHash","setHash"))),Ub(hS,"toJSON",(function(){return Zb(this).serialize()}),{enumerable:!0}),Ub(hS,"toString",(function(){return Zb(this).serialize()}),{enumerable:!0}),rw){var vS=rw.createObjectURL,gS=rw.revokeObjectURL;vS&&Ub(dS,"createObjectURL",Fb(vS,rw)),gS&&Ub(dS,"revokeObjectURL",Fb(gS,rw))}Yb(dS,"URL"),Cb({global:!0,constructor:!0,forced:!Ib,sham:!jb},{URL:dS});var yS=Er,mS=i,_S=wh,bS=Qn,wS=ym,SS=ae("URL");yS({target:"URL",stat:!0,forced:!(wS&&mS((function(){SS.canParse()})))},{canParse:function(e){var t=_S(arguments.length,1),r=bS(e),n=t<2||void 0===arguments[1]?void 0:bS(arguments[1]);try{return!!new SS(r,n)}catch(HA){return!1}}});var xS=r(te.URL),kS=Er,TS=no.indexOf,RS=Vl,OS=x([].indexOf),ES=!!OS&&1/OS([1],1,-0)<0;kS({target:"Array",proto:!0,forced:ES||!RS("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return ES?OS(this,e,t)||0:TS(this,e,t)}});var LS=Ll("Array").indexOf,PS=se,AS=LS,CS=Array.prototype,jS=r((function(e){var t=e.indexOf;return e===CS||PS(CS,e)&&t===CS.indexOf?AS:t})),IS=Er,MS=ea.find,FS="find",NS=!0;FS in[]&&Array(1)[FS]((function(){NS=!1})),IS({target:"Array",proto:!0,forced:NS},{find:function(e){return MS(this,e,arguments.length>1?arguments[1]:void 0)}});var US=Ll("Array").find,DS=se,BS=US,HS=Array.prototype,zS=r((function(e){var t=e.find;return e===HS||DS(HS,e)&&t===HS.find?BS:t})),qS=L,GS=Pr,VS=TypeError,$S=Object.getOwnPropertyDescriptor,QS=qS&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(HA){return HA instanceof TypeError}}(),YS=Oe,WS=TypeError,KS=function(e,t){if(!delete e[t])throw WS("Cannot delete property "+YS(t)+" of "+YS(e))},XS=Er,JS=We,ZS=Jn,ex=Ir,tx=Dr,rx=QS?function(e,t){if(GS(e)&&!$S(e,"length").writable)throw VS("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},nx=Hr,ox=Rn,ix=Vr,ax=KS,sx=Pn("splice"),ux=Math.max,cx=Math.min;XS({target:"Array",proto:!0,forced:!sx},{splice:function(e,t){var r,n,o,i,a,s,u=JS(this),c=tx(u),l=ZS(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=cx(ux(ex(t),0),c-l)),nx(c+r-n),o=ox(u,n),i=0;i<n;i++)(a=l+i)in u&&ix(o,i,u[a]);if(o.length=n,r<n){for(i=l;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:ax(u,s);for(i=c;i>c-n+r;i--)ax(u,i-1)}else if(r>n)for(i=c-n;i>l;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:ax(u,s);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return rx(u,c-n+r),o}});var lx=Ll("Array").splice,fx=se,dx=lx,hx=Array.prototype,px=r((function(e){var t=e.splice;return e===hx||fx(hx,e)&&t===hx.splice?dx:t}));Er({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var vx=r(te.Number.isNaN),gx="\t\n\v\f\r                 \u2028\u2029\ufeff",yx=Y,mx=Qn,_x=gx,bx=g("".replace),wx=RegExp("^["+_x+"]+"),Sx=RegExp("(^|[^"+_x+"])["+_x+"]+$"),xx=function(e){return function(t){var r=mx(yx(t));return 1&e&&(r=bx(r,wx,"")),2&e&&(r=bx(r,Sx,"$1")),r}},kx={start:xx(1),end:xx(2),trim:xx(3)},Tx=o,Rx=i,Ox=g,Ex=Qn,Lx=kx.trim,Px=gx,Ax=Tx.parseInt,Cx=Tx.Symbol,jx=Cx&&Cx.iterator,Ix=/^[+-]?0x/i,Mx=Ox(Ix.exec),Fx=8!==Ax(Px+"08")||22!==Ax(Px+"0x16")||jx&&!Rx((function(){Ax(Object(jx))}))?function(e,t){var r=Lx(Ex(e));return Ax(r,t>>>0||(Mx(Ix,r)?16:10))}:Ax;Er({global:!0,forced:parseInt!=Fx},{parseInt:Fx});var Nx=r(te.parseInt),Ux=ea.map;Er({target:"Array",proto:!0,forced:!Pn("map")},{map:function(e){return Ux(this,e,arguments.length>1?arguments[1]:void 0)}});var Dx=Ll("Array").map,Bx=se,Hx=Dx,zx=Array.prototype,qx=r((function(e){var t=e.map;return e===zx||Bx(zx,e)&&t===zx.map?Hx:t}));Er({target:"Array",stat:!0},{isArray:Pr});var Gx=r(te.Array.isArray),Vx=Pm;Er({target:"Object",stat:!0,arity:2,forced:Object.assign!==Vx},{assign:Vx});var $x=r(te.Object.assign),Qx=Je,Yx=C,Wx=ee,Kx=rr,Xx=function(e){return void 0!==e&&(Qx(e,"value")||Qx(e,"writable"))},Jx=E,Zx=Tu;Er({target:"Reflect",stat:!0},{get:function e(t,r){var n,o,i=arguments.length<3?t:arguments[2];return Kx(t)===i?t[r]:(n=Jx.f(t,r))?Xx(n)?n.value:void 0===n.get?void 0:Yx(n.get,i):Wx(o=Zx(t))?e(o,r,i):void 0}});var ek=r(te.Reflect.get),tk=r(ud),rk=Gm;Er({target:"Array",stat:!0,forced:!qv((function(e){Array.from(e)}))},{from:rk});var nk=r(te.Array.from);function ok(e,t){var r=Tl(e);if(Rl){var n=Rl(e);t&&(n=Il(n).call(n,(function(t){return ql(e,t).enumerable}))),r.push.apply(r,n)}return r}function ik(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?tf(r=ok(Object(o),!0)).call(r,(function(t){lk(e,t,o[t])})):hf?bf(e,hf(o)):tf(n=ok(Object(o))).call(n,(function(t){Of(e,t,ql(o,t))}))}return e}function ak(e){return(ak="function"==typeof Ef&&"symbol"==typeof py?function(e){return typeof e}:function(e){return e&&"function"==typeof Ef&&e.constructor===Ef&&e!==Ef.prototype?"symbol":typeof e})(e)}function sk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uk(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),Of(e,hk(n.key),n)}}function ck(e,t,r){return t&&uk(e.prototype,t),r&&uk(e,r),Of(e,"prototype",{writable:!1}),e}function lk(e,t,r){return(t=hk(t))in e?Of(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fk(e){return function(e){if(Gx(e))return dk(e)}(e)||function(e){if(void 0!==Ef&&null!=tk(e)||null!=e["@@iterator"])return nk(e)}(e)||function(e,t){var r;if(!e)return;if("string"==typeof e)return dk(e,t);var n=hy(r=Object.prototype.toString.call(e)).call(r,8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return nk(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dk(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 dk(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 hk(e){var t=function(e,t){if("object"!==Sl(e)||null===e)return e;var r=e[Qy];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 pk={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new o(n,i||e,a),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Pf&&(n.prototype=Pf(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?hy(n).call(n,1):n);return Rl?pm(o).call(o,Rl(e)):o},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,o,i,a){var s=r?r+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,o),!0;case 5:return l.fn.call(l.context,t,n,o,i),!0;case 6:return l.fn.call(l.context,t,n,o,i,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var d,h=l.length;for(c=0;c<h;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,o);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||a(this,i);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||o&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(pk);var vk=r(pk.exports),gk=ea.some;Er({target:"Array",proto:!0,forced:!Vl("some")},{some:function(e){return gk(this,e,arguments.length>1?arguments[1]:void 0)}});var yk=Ll("Array").some,mk=se,_k=yk,bk=Array.prototype,wk=r((function(e){var t=e.some;return e===bk||mk(bk,e)&&t===bk.some?_k:t})),Sk=Ir,xk=Qn,kk=Y,Tk=RangeError,Rk=g,Ok=Nr,Ek=Qn,Lk=Y,Pk=Rk((function(e){var t=xk(kk(this)),r="",n=Sk(e);if(n<0||n==1/0)throw Tk("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),Ak=Rk("".slice),Ck=Math.ceil,jk=function(e){return function(t,r,n){var o,i,a=Ek(Lk(t)),s=Ok(r),u=a.length,c=void 0===n?" ":Ek(n);return s<=u||""==c?a:((i=Pk(c,Ck((o=s-u)/c.length))).length>o&&(i=Ak(i,0,o)),e?a+i:i+a)}},Ik={start:jk(!1),end:jk(!0)},Mk=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(ue),Fk=Ik.start;Er({target:"String",proto:!0,forced:Mk},{padStart:function(e){return Fk(this,e,arguments.length>1?arguments[1]:void 0)}});var Nk,Uk=Ll("String").padStart,Dk=se,Bk=Uk,Hk=String.prototype,zk=r((function(e){var t=e.padStart;return"string"==typeof e||e===Hk||Dk(Hk,e)&&t===Hk.padStart?Bk:t})),qk="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Gk=o,Vk=f,$k=O,Qk=qk,Yk=ue,Wk=ks,Kk=wh,Xk=Gk.Function,Jk=/MSIE .\./.test(Yk)||Qk&&((Nk=Gk.Bun.version.split(".")).length<3||0==Nk[0]&&(Nk[1]<3||3==Nk[1]&&0==Nk[2])),Zk=function(e,t){var r=t?2:1;return Jk?function(n,o){var i=Kk(arguments.length,1)>r,a=$k(n)?n:Xk(n),s=i?Wk(arguments,r):[],u=i?function(){Vk(a,this,s)}:a;return t?e(u,o):e(u)}:e},eT=Er,tT=o,rT=Zk(tT.setInterval,!0);eT({global:!0,bind:!0,forced:tT.setInterval!==rT},{setInterval:rT});var nT=Er,oT=o,iT=Zk(oT.setTimeout,!0);nT({global:!0,bind:!0,forced:oT.setTimeout!==iT},{setTimeout:iT});var aT=r(te.setInterval),sT=r(te.setTimeout),uT=ea.every;Er({target:"Array",proto:!0,forced:!Vl("every")},{every:function(e){return uT(this,e,arguments.length>1?arguments[1]:void 0)}});var cT=Ll("Array").every,lT=se,fT=cT,dT=Array.prototype,hT=r((function(e){var t=e.every;return e===dT||lT(dT,e)&&t===dT.every?fT:t})),pT=o,vT=i,gT=Qn,yT=kx.trim,mT=gx,_T=g("".charAt),bT=pT.parseFloat,wT=pT.Symbol,ST=wT&&wT.iterator,xT=1/bT(mT+"-0")!=-1/0||ST&&!vT((function(){bT(Object(ST))}))?function(e){var t=yT(gT(e)),r=bT(t);return 0===r&&"-"==_T(t,0)?-0:r}:bT;Er({global:!0,forced:parseFloat!=xT},{parseFloat:xT});var kT=r(te.parseFloat),TT=gu.PROPER,RT=i,OT=gx,ET=kx.trim;Er({target:"String",proto:!0,forced:function(e){return RT((function(){return!!OT[e]()||"​…᠎"!=="​…᠎"[e]()||TT&&OT[e].name!==e}))}("trim")},{trim:function(){return ET(this)}});var LT=Ll("String").trim,PT=se,AT=LT,CT=String.prototype,jT=r((function(e){var t=e.trim;return"string"==typeof e||e===CT||PT(CT,e)&&t===CT.trim?AT:t})),IT=ue.match(/firefox\/(\d+)/i),MT=!!IT&&+IT[1],FT=/MSIE|Trident/.test(ue),NT=ue.match(/AppleWebKit\/(\d+)\./),UT=!!NT&&+NT[1],DT=Er,BT=g,HT=Ae,zT=We,qT=Dr,GT=KS,VT=Qn,$T=i,QT=g_,YT=Vl,WT=MT,KT=FT,XT=ve,JT=UT,ZT=[],eR=BT(ZT.sort),tR=BT(ZT.push),rR=$T((function(){ZT.sort(void 0)})),nR=$T((function(){ZT.sort(null)})),oR=YT("sort"),iR=!$T((function(){if(XT)return XT<70;if(!(WT&&WT>3)){if(KT)return!0;if(JT)return JT<603;var e,t,r,n,o="";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++)ZT.push({k:t+n,v:r})}for(ZT.sort((function(e,t){return t.v-e.v})),n=0;n<ZT.length;n++)t=ZT[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));DT({target:"Array",proto:!0,forced:rR||!nR||!oR||!iR},{sort:function(e){void 0!==e&&HT(e);var t=zT(this);if(iR)return void 0===e?eR(t):eR(t,e);var r,n,o=[],i=qT(t);for(n=0;n<i;n++)n in t&&tR(o,t[n]);for(QT(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:VT(t)>VT(r)?1:-1}}(e)),r=qT(o),n=0;n<r;)t[n]=o[n++];for(;n<i;)GT(t,n++);return t}});var aR=Ll("Array").sort,sR=se,uR=aR,cR=Array.prototype,lR=r((function(e){var t=e.sort;return e===cR||sR(cR,e)&&t===cR.sort?uR:t})),fR=Er,dR=Date,hR=g(dR.prototype.getTime);fR({target:"Date",stat:!0},{now:function(){return hR(new dR)}});var pR,vR=r(te.Date.now),gR="undefined"!=typeof window&&window.location&&jS(pR=window.location.href).call(pR,"xgplayerdebugger=1")>-1,yR="color: #525252; background-color: #90ee90;",mR="color: #525252; background-color: red;",_R="color: #525252; background-color: yellow; ",bR="%c[xgplayer]",wR={config:{debug:gR?3:0},logInfo:function(e){for(var t,r,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];this.config.debug>=3&&(r=console).log.apply(r,pm(t=[bR,yR,e]).call(t,o))},logWarn:function(e){for(var t,r,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];this.config.debug>=1&&(r=console).warn.apply(r,pm(t=[bR,_R,e]).call(t,o))},logError:function(e){var t,r;if(!(this.config.debug<1)){for(var n=this.config.debug>=2?"trace":"error",o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];(r=console)[n].apply(r,pm(t=[bR,mR,e]).call(t,i))}}},SR=function(){function e(t){sk(this,e),this.bufferedList=t}return ck(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}(),xR={};xR.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]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=document.createElement(t);return i.className=o,i.innerHTML=r,tf(e=Tl(n)).call(e,(function(e){var r=e,o=n[e];"video"===t||"audio"===t||"live-video"===t?o&&i.setAttribute(r,o):i.setAttribute(r,o)})),i},xR.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 o=n.children;if(n=null,o.length>0){var i;if(o=o[0],r&&xR.addClass(o,r),t)tf(i=Tl(t)).call(i,(function(e){o.setAttribute(e,t[e])}));return o}return null}catch(a){return wR.logError("util.createDomFromHtml",a),null}},xR.hasClass=function(e,t){if(!e||!t)return!1;try{return wk(Array.prototype).call(e.classList,(function(e){return e===t}))}catch(n){var r=e.className&&"object"===ak(e.className)?e.getAttribute("class"):e.className;return r&&!!r.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},xR.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){xR.hasClass(e,t)||(e.className&&"object"===ak(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},xR.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(o){var n;if(xR.hasClass(e,t))tf(n=t.split(/\s+/g)).call(n,(function(t){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===ak(e.className)?e.setAttribute("class",e.getAttribute("class").replace(r," ")):e.className=e.className.replace(r," ")}))}},xR.toggleClass=function(e,t){var r;e&&tf(r=t.split(/\s+/g)).call(r,(function(t){xR.hasClass(e,t)?xR.removeClass(e,t):xR.addClass(e,t)}))},xR.classNames=function(){for(var e=arguments,t=[],r=function(r){if("String"===xR.typeOf(e[r]))t.push(e[r]);else if("Object"===xR.typeOf(e[r])){var n;qx(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(" ")},xR.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){wR.logError("util.findDom",n),0===jS(r).call(r,"#")&&(e=t.getElementById(hy(r).call(r,1)))}return e},xR.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},xR.padStart=function(e,t,r){for(var n=String(r),o=t>>0,i=Math.ceil(o/n.length),a=[],s=String(e);i--;)a.push(n);return a.join("").substring(0,o-s.length)+s},xR.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=zk(xR).call(xR,Math.floor(e/3600),2,0),r=zk(xR).call(xR,Math.floor((e-3600*t)/60),2,0),n=zk(xR).call(xR,Math.floor(e-3600*t-60*r),2,0);return("00"===t?[r,n]:[t,r,n]).join(":")},xR.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},xR.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},xR.deepCopy=function(e,t){var r;if("Object"===xR.typeOf(t)&&"Object"===xR.typeOf(e))return tf(r=Tl(t)).call(r,(function(r){if("Object"!==xR.typeOf(t[r])||t[r]instanceof Node)if("Array"===xR.typeOf(t[r])){var n;e[r]="Array"===xR.typeOf(e[r])?pm(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]:xR.deepCopy(e[r],t[r])})),e},xR.deepMerge=function(e,t){var r;return qx(r=Tl(t)).call(r,(function(r){var n;"Array"===xR.typeOf(t[r])&&"Array"===xR.typeOf(e[r])?"Array"===xR.typeOf(e[r])&&(n=e[r]).push.apply(n,fk(t[r])):xR.typeOf(e[r])!==xR.typeOf(t[r])||null===e[r]||"Object"!==xR.typeOf(e[r])||t[r]instanceof window.Node?null!==t[r]&&(e[r]=t[r]):xR.deepMerge(e[r],t[r])})),e},xR.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},xR.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""},xR.setInterval=function(e,t,r,n){e._interval[t]||(e._interval[t]=aT(Ay(r).call(r,e),n))},xR.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},xR.setTimeout=function(e,t,r){e._timers||(e._timers=[]);var n=sT((function(){t(),xR.clearTimeout(e,n)}),r);return e._timers.push(n),n},xR.clearTimeout=function(e,t){var r=e._timers;if("Array"===xR.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===t){px(r).call(r,n,1),clearTimeout(t);break}}else clearTimeout(t)},xR.clearAllTimers=function(e){var t=e._timers;"Array"===xR.typeOf(t)&&(qx(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},xR.createImgBtn=function(e,t,r,n){var o,i,a,s,u,c,l,f,d,h,p,v,g=xR.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(g.style.backgroundImage='url("'.concat(t,'")'),r&&n)&&(hT(o=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(o,(function(e){var t,o;return!(jS(r).call(r,e)>-1&&jS(n).call(n,e)>-1)||(l=kT(jT(t=hy(r).call(r,0,jS(r).call(r,e))).call(t)),f=kT(jT(o=hy(n).call(n,0,jS(n).call(n,e))).call(o)),d=e,!1)})),g.style.width=pm(i="".concat(l)).call(i,d),g.style.height=pm(a="".concat(f)).call(a,d),g.style.backgroundSize=pm(s=pm(u=pm(c="".concat(l)).call(c,d," ")).call(u,f)).call(s,d),g.style.margin="start"===e?pm(h=pm(p=pm(v="-".concat(f/2)).call(v,d," auto auto -")).call(p,l/2)).call(h,d):"auto 5px auto 5px");return g},xR.Hex2RGBA=function(e,t){var r,n=[];if(/^\#[0-9A-F]{3}$/i.test(e)){var o="#";e.replace(/[0-9A-F]/gi,(function(e){o+=e+e})),e=o}return/^#[0-9A-F]{6}$/i.test(e)?(e.replace(/[0-9A-F]{2}/gi,(function(e){n.push(Nx(e,16))})),pm(r="rgba(".concat(n.join(","),", ")).call(r,t,")")):"rgba(255, 255, 255, 0.1)"},xR.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},xR.checkIsFunction=function(e){return e&&"function"==typeof e},xR.checkIsObject=function(e){return null!==e&&"object"===ak(e)},xR.hide=function(e){e.style.display="none"},xR.show=function(e,t){e.style.display=t||"block"},xR.isUndefined=function(e){if(null==e)return!0},xR.isNotNull=function(e){return!(null==e)},xR.setStyleFromCsstext=function(e,t){if(t)if("String"===xR.typeOf(t)){var r=t.replace(/\s+/g,"").split(";");qx(r).call(r,(function(t){if(t){var r=t.split(":");r.length>1&&(e.style[r[0]]=r[1])}}))}else{var n;qx(n=Tl(t)).call(n,(function(r){e.style[r]=t[r]}))}},xR.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 o=n.replace(/\s+/g,"").split(";"),i={},a={};return qx(o).call(o,(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]:i[t[0]]=t[1])}})),e.setAttribute("style",""),qx(t=Tl(a)).call(t,(function(t){e.style[t]=a[t]})),i},xR.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var r=t.replace(/\s+/g,"").split(";"),n={};return qx(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(n[t[0]]=t[1])}})),n},xR.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}},xR.stopPropagation=function(e){e&&e.stopPropagation()},xR.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},xR.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},xR.checkTouchSupport=function(){return"ontouchstart"in window},xR.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)});lR(r).call(r,(function(e,t){var r=e.start-t.start;return r||t.end-e.end}));var o=[];if(t)for(var i=0;i<r.length;i++){var a=o.length;if(a){var s=o[a-1].end;r[i].start-s<t?r[i].end>s&&(o[a-1].end=r[i].end):o.push(r[i])}else o.push(r[i])}else o=r;return new SR(o)},xR.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}},xR.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},xR.getHostFromUrl=function(e){if("String"!==xR.typeOf(e))return"";var t=e.split("/"),r="";return t.length>3&&t[2]&&(r=t[2]),r},xR.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},xR.isMSE=function(e){return e.media&&(e=e.media),!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},xR.isBlob=function(e){return"string"==typeof e&&/^blob/.test(e)},xR.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=Nx(e)}catch(r){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=Nx(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)}))},xR.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},xR.adjustTimeByDuration=function(e,t,r){return t&&e&&(e>t||r&&e<t)?t:e},xR.createPositionBar=function(e,t){var r=xR.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(r),r},xR.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:pm(e="".concat(t.x||0,"%, ")).call(e,t.y||0,"%"),rotate:"".concat(t.rotate||0,"deg")},o=Tl(n);return tf(o).call(o,(function(e){var t,o=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),i=pm(t="".concat(e,"(")).call(t,n[e],")");o.test(r)?(o.lastIndex=-1,r=r.replace(o,i)):r+="".concat(i," ")})),r},xR.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360},xR.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 o=1;o<r;o++)if(e>t[o-1].end&&e<=t[o].end){n=o;break}return n},xR.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:xR.getIndexByTime(e,t))<0)return-1;var o=t.length,i=t[n],a=i.start,s=i.end,u=i.cTime,c=i.offset;return e<a?u:e>=a&&e<=s?e-c:e>s&&n>=o-1?s:-1},xR.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 o=t[r].start;return r-1<0?o+e:o+(e-t[r-1].duration)}return e};var kR="3.0.19-rc.0",TR={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},RR=ck((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};sk(this,e);var n=t&&t.i18n?t.i18n.ERROR_TYPES:null;if(t.media){var o,i=r.mediaError?r.mediaError:t.media.error||{},a=t.duration,s=t.currentTime,u=t.ended,c=t.src,l=t.currentSrc,f=t.media,d=f.readyState,h=f.networkState,p=r.errorCode||i.code;TR[p]&&(p=TR[p]);var v={playerVersion:kR,currentTime:s,duration:a,ended:u,readyState:d,networkState:h,src:c||l,errorType:r.errorType,errorCode:p,message:r.errorMessage||i.message,mediaError:i,originError:r.originError?r.originError.stack:"",host:xR.getHostFromUrl(c||l)};return r.ext&&qx(o=Tl(r.ext)).call(o,(function(e){v[e]=r.ext[e]})),v}if(arguments.length>1){for(var g={playerVersion:kR,domain:document.domain},y=["errorType","currentTime","duration","networkState","readyState","src","currentSrc","ended","errd","errorCode","mediaError"],m=0;m<arguments.length;m++)g[y[m]]=arguments[m];return g.ex=n?(n[arguments[0]]||{}).msg:"",g}}));function OR(e,t,r){for(var n,o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];var s,u=t.call.apply(t,pm(n=[e]).call(n,i));r&&"function"==typeof r&&(u&&u.then?u.then((function(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];r.call.apply(r,pm(t=[e]).call(t,o))})):r.call.apply(r,pm(s=[e]).call(s,i)))}function ER(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),Ay(r=function(){var r,o=arguments,i=this;if(n.pre)try{var a,s;(s=n.pre).call.apply(s,pm(a=[this]).call(a,hy(Array.prototype).call(arguments)))}catch(y){var u,c;throw y.message=pm(u=pm(c="[pluginName: ".concat(this.pluginName,":")).call(c,e,":pre error] >> ")).call(u,y.message),y}if(this.__hooks&&this.__hooks[e])try{var l,f,d,h=(f=this.__hooks[e]).call.apply(f,pm(l=[this,this]).call(l,hy(Array.prototype).call(arguments)));if(h)if(h.then)h.then((function(e){var r;!1!==e&&OR.apply(void 0,pm(r=[i,t,n.next]).call(r,fk(o)))})).catch((function(e){throw e}));else OR.apply(void 0,pm(d=[this,t,n.next]).call(d,hy(Array.prototype).call(arguments)));else if(void 0===h){var p;OR.apply(void 0,pm(p=[this,t,n.next]).call(p,hy(Array.prototype).call(arguments)))}}catch(y){var v,g;throw y.message=pm(v=pm(g="[pluginName: ".concat(this.pluginName,":")).call(g,e,"] >> ")).call(v,y.message),y}else OR.apply(void 0,pm(r=[this,t,n.next]).call(r,hy(Array.prototype).call(arguments)))}).call(r,this)}function LR(e,t){var r=this.__hooks;if(r)return r.hasOwnProperty(e)?(r&&(r[e]=t),!0):(console.warn("has no supported hook which name [".concat(e,"]")),!1)}function PR(e,t){var r=this.__hooks;r&&delete r[e]}function AR(e,t){var r;wR.logError(pm(r="[".concat(e,"] event or callback cant be undefined or null when call ")).call(r,t))}var CR=function(){function e(t){sk(this,e),xR.checkIsFunction(this.beforeCreate)&&this.beforeCreate(t),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.__hooks={},t&&qx(t).call(t,(function(t){e.__hooks[t]=null})),Of(e,"hooks",{get:function(){var t;return e.__hooks&&qx(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 ck(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=xR.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)):Gx(e)&&tf(e).call(e,(function(e){r.__events[e]=t,r.player.on(e,t)})):AR(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)):Gx(e)&&tf(e).call(e,(function(n){r.__onceEvents[n]=t,r.player.once(e,t)})):AR(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)):Gx(e)&&tf(e).call(e,(function(n){delete r.__events[e],r.player.off(n,t)})):AR(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,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];(r=this.player).emit.apply(r,pm(t=[e]).call(t,o))}}},{key:"emitUserAction",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.player){var n=ik(ik({},r),{},{pluginName:this.pluginName});this.player.emitUserAction(e,t,n)}}},{key:"hook",value:function(e,t){var r;return ER.call.apply(ER,pm(r=[this]).call(r,hy(Array.prototype).call(arguments)))}},{key:"useHooks",value:function(e,t){for(var r,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return LR.call.apply(LR,pm(r=[this]).call(r,hy(Array.prototype).call(arguments)))}},{key:"removeHooks",value:function(e,t){for(var r,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return PR.call.apply(PR,pm(r=[this]).call(r,hy(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(),xR.clearAllTimers(this),xR.checkIsFunction(this.destroy)&&this.destroy(),qx(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)&&Of(e,r,t[r])}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),e}(),jR=te,IR=f;jR.JSON||(jR.JSON={stringify:JSON.stringify});var MR=function(e,t,r){return IR(jR.JSON.stringify,null,arguments)},FR=r(MR),NR=ee,UR=b,DR=dt("match"),BR=function(e){var t;return NR(e)&&(void 0!==(t=e[DR])?!!t:"RegExp"==UR(e))},HR=TypeError,zR=dt("match"),qR=no.includes;Er({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return qR(this,e,arguments.length>1?arguments[1]:void 0)}});var GR=Ll("Array").includes,VR=Er,$R=function(e){if(BR(e))throw HR("The method doesn't accept regular expressions");return e},QR=Y,YR=Qn,WR=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[zR]=!1,"/./"[e](t)}catch(n){}}return!1},KR=g("".indexOf);VR({target:"String",proto:!0,forced:!WR("includes")},{includes:function(e){return!!~KR(YR(QR(this)),YR($R(e)),arguments.length>1?arguments[1]:void 0)}});var XR=Ll("String").includes,JR=se,ZR=GR,eO=XR,tO=Array.prototype,rO=String.prototype,nO=r((function(e){var t=e.includes;return e===tO||JR(tO,e)&&t===tO.includes?ZR:"string"==typeof e||e===rO||JR(rO,e)&&t===rO.includes?eO:t})),oO={exports:{}},iO=i((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),aO=i,sO=ee,uO=b,cO=iO,lO=Object.isExtensible,fO=aO((function(){lO(1)}))||cO?function(e){return!!sO(e)&&((!cO||"ArrayBuffer"!=uO(e))&&(!lO||lO(e)))}:lO,dO=!i((function(){return Object.isExtensible(Object.preventExtensions({}))})),hO=Er,pO=g,vO=oo,gO=ee,yO=Je,mO=Xt.f,_O=Ho,bO=Go,wO=fO,SO=dO,xO=!1,kO=nt("meta"),TO=0,RO=function(e){mO(e,kO,{value:{objectID:"O"+TO++,weakData:{}}})},OO=oO.exports={enable:function(){OO.enable=function(){},xO=!0;var e=_O.f,t=pO([].splice),r={};r[kO]=1,e(r).length&&(_O.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===kO){t(n,o,1);break}return n},hO({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:bO.f}))},fastKey:function(e,t){if(!gO(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!yO(e,kO)){if(!wO(e))return"F";if(!t)return"E";RO(e)}return e[kO].objectID},getWeakData:function(e,t){if(!yO(e,kO)){if(!wO(e))return!0;if(!t)return!1;RO(e)}return e[kO].weakData},onFreeze:function(e){return SO&&xO&&wO(e)&&!yO(e,kO)&&RO(e),e}};vO[kO]=!0;var EO=oO.exports,LO=Er,PO=o,AO=EO,CO=i,jO=gr,IO=jd,MO=lh,FO=O,NO=ee,UO=Pi,DO=Xt.f,BO=ea.forEach,HO=L,zO=$i.set,qO=$i.getterFor,GO=Bo,VO=ai,$O=l_,QO=Kt,YO=lh,WO=V,KO=jd,XO=pc,JO=vc,ZO=sh,eE=L,tE=EO.fastKey,rE=$i.set,nE=$i.getterFor,oE={getConstructor:function(e,t,r,n){var o=e((function(e,o){YO(e,i),rE(e,{type:t,index:GO(null),first:void 0,last:void 0,size:0}),eE||(e.size=0),WO(o)||KO(o,e[n],{that:e,AS_ENTRIES:r})})),i=o.prototype,a=nE(t),s=function(e,t,r){var n,o,i=a(e),s=u(e,t);return s?s.value=r:(i.last=s={index:o=tE(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=s),n&&(n.next=s),eE?i.size++:e.size++,"F"!==o&&(i.index[o]=s)),e},u=function(e,t){var r,n=a(e),o=tE(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return $O(i,{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,eE?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=u(t,e);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),eE?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=QO(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!u(this,e)}}),$O(i,r?{get:function(e){var t=u(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),eE&&VO(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=nE(t),i=nE(n);XO(e,t,(function(e,t){rE(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(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)?JO("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,JO(void 0,!0))}),r?"entries":"values",!r,!0),ZO(t)}};(function(e,t,r){var n,o=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),a=o?"set":"add",s=PO[e],u=s&&s.prototype,c={};if(HO&&FO(s)&&(i||u.forEach&&!CO((function(){(new s).entries().next()})))){var l=(n=t((function(t,r){zO(MO(t,l),{type:e,collection:new s}),null!=r&&IO(r,t[a],{that:t,AS_ENTRIES:o})}))).prototype,f=qO(e);BO(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in u)||i&&"clear"==e||jO(l,e,(function(r,n){var o=f(this).collection;if(!t&&i&&!NO(r))return"get"==e&&void 0;var a=o[e](0===r?0:r,n);return t?this:a}))})),i||DO(l,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(t,e,o,a),AO.enable();UO(n,e,!1,!0),c[e]=n,LO({global:!0,forced:!0},c),i||r.setStrong(n,e,o)})("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),oE);var iE=te.Map,aE=Kt,sE=C,uE=Ae,cE=ph,lE=V,fE=jd,dE=[].push,hE=function(e){var t,r,n,o,i=arguments.length,a=i>1?arguments[1]:void 0;return cE(this),(t=void 0!==a)&&uE(a),lE(e)?new this:(r=[],t?(n=0,o=aE(a,i>2?arguments[2]:void 0),fE(e,(function(e){sE(dE,r,o(e,n++))}))):fE(e,dE,{that:r}),new this(r))};Er({target:"Map",stat:!0,forced:!0},{from:hE});var pE=ks,vE=function(){return new this(pE(arguments))};Er({target:"Map",stat:!0,forced:!0},{of:vE});var gE=Oe,yE=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(gE(e)+" is not a map")},mE=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},_E=ae("Map"),bE={Map:_E,set:mE("set",2),get:mE("get",1),has:mE("has",1),remove:mE("delete",1),proto:_E.prototype},wE=yE,SE=bE.remove;Er({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=wE(this),r=!0,n=0,o=arguments.length;n<o;n++)e=SE(t,arguments[n]),r=r&&e;return!!r}});var xE=yE,kE=bE.get,TE=bE.has,RE=bE.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,o=xE(this);return TE(o,e)?(r=kE(o,e),"update"in t&&(r=t.update(r,e,o),RE(o,e,r)),r):(n=t.insert(e,o),RE(o,e,n),n)}});var OE=C,EE=function(e,t,r){for(var n,o,i=r||e.next;!(n=OE(i,e)).done;)if(void 0!==(o=t(n.value)))return o},LE=function(e,t,r){return r?EE(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},PE=Kt,AE=yE,CE=LE;Er({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=AE(this),r=PE(e,arguments.length>1?arguments[1]:void 0);return!1!==CE(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var jE=Kt,IE=yE,ME=LE,FE=bE.Map,NE=bE.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=IE(this),r=jE(e,arguments.length>1?arguments[1]:void 0),n=new FE;return ME(t,(function(e,o){r(e,o,t)&&NE(n,o,e)})),n}});var UE=Kt,DE=yE,BE=LE;Er({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=DE(this),r=UE(e,arguments.length>1?arguments[1]:void 0),n=BE(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}});var HE=Kt,zE=yE,qE=LE;Er({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=zE(this),r=HE(e,arguments.length>1?arguments[1]:void 0),n=qE(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var GE=Er,VE=C,$E=O,QE=Ae,YE=jd,WE=bE.Map,KE=g([].push);GE({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new($E(this)?this:WE);QE(t);var n=QE(r.has),o=QE(r.get),i=QE(r.set);return YE(e,(function(e){var a=t(e);VE(n,r,a)?KE(VE(o,r,a),e):VE(i,r,a,[e])})),r}});var XE=function(e,t){return e===t||e!=e&&t!=t},JE=yE,ZE=LE;Er({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===ZE(JE(this),(function(t){if(XE(t,e))return!0}),!0)}});var eL=C,tL=jd,rL=O,nL=Ae,oL=bE.Map;Er({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(rL(this)?this:oL);nL(t);var n=nL(r.set);return tL(e,(function(e){eL(n,r,t(e),e)})),r}});var iL=yE,aL=LE;Er({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=aL(iL(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var sL=Kt,uL=yE,cL=LE,lL=bE.Map,fL=bE.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=uL(this),r=sL(e,arguments.length>1?arguments[1]:void 0),n=new lL;return cL(t,(function(e,o){fL(n,r(e,o,t),e)})),n}});var dL=Kt,hL=yE,pL=LE,vL=bE.Map,gL=bE.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=hL(this),r=dL(e,arguments.length>1?arguments[1]:void 0),n=new vL;return pL(t,(function(e,o){gL(n,o,r(e,o,t))})),n}});var yL=yE,mL=jd,_L=bE.set;Er({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=yL(this),r=arguments.length,n=0;n<r;)mL(arguments[n++],(function(e,r){_L(t,e,r)}),{AS_ENTRIES:!0});return t}});var bL=Ae,wL=yE,SL=LE,xL=TypeError;Er({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=wL(this),r=arguments.length<2,n=r?void 0:arguments[1];if(bL(e),SL(t,(function(o,i){r?(r=!1,n=o):n=e(n,o,i,t)})),r)throw xL("Reduce of empty map with no initial value");return n}});var kL=Kt,TL=yE,RL=LE;Er({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=TL(this),r=kL(e,arguments.length>1?arguments[1]:void 0);return!0===RL(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var OL=Ae,EL=yE,LL=TypeError,PL=bE.get,AL=bE.has,CL=bE.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=EL(this),n=arguments.length;OL(t);var o=AL(r,e);if(!o&&n<3)throw LL("Updating absent value");var i=o?PL(r,e):OL(n>2?arguments[2]:void 0)(e,r);return CL(r,e,t(i,e,r)),r}});var jL=C,IL=Ae,ML=O,FL=rr,NL=TypeError,UL=function(e,t){var r,n=FL(this),o=IL(n.get),i=IL(n.has),a=IL(n.set),s=arguments.length>2?arguments[2]:void 0;if(!ML(t)&&!ML(s))throw NL("At least one callback required");return jL(i,n,e)?(r=jL(o,n,e),ML(t)&&(r=t(r),jL(a,n,e,r))):ML(s)&&(r=s(),jL(a,n,e,r)),r};Er({target:"Map",proto:!0,real:!0,forced:!0},{upsert:UL}),Er({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:UL});var DL=r(iE);function BL(e,t){var r=Tl(e);if(Rl){var n=Rl(e);t&&(n=Il(n).call(n,(function(t){return ql(e,t).enumerable}))),r.push.apply(r,n)}return r}function HL(e){for(var t=1;t<arguments.length;t++){var r,n,o=null!=arguments[t]?arguments[t]:{};t%2?tf(r=BL(Object(o),!0)).call(r,(function(t){WL(e,t,o[t])})):hf?bf(e,hf(o)):tf(n=BL(Object(o))).call(n,(function(t){Of(e,t,ql(o,t))}))}return e}function zL(){zL=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Of||function(e,t,r){e[t]=r.value},o="function"==typeof Ef?Ef:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r){return Of(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(O){u=function(e,t,r){return e[t]=r}}function c(e,t,r,o){var i=t&&t.prototype instanceof d?t:d,a=Pf(i.prototype),s=new k(o||[]);return n(a,"_invoke",{value:b(e,r,s)}),a}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(O){return{type:"throw",arg:O}}}e.wrap=c;var f={};function d(){}function h(){}function p(){}var v={};u(v,i,(function(){return this}));var g=If&&If(If(T([])));g&&g!==t&&r.call(g,i)&&(v=g);var y=p.prototype=d.prototype=Pf(v);function m(e){var t;tf(t=["next","throw","return"]).call(t,(function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,s){var u=l(e[n],e,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Sl(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return o("throw",e,a,s)}))}s(u.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],tf(e).call(e,S,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=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 o.next=o}}return{next:R}}function R(){return{value:void 0,done:!0}}return h.prototype=p,n(y,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=u(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Mf?Mf(e,p):(e.__proto__=p,u(e,s,"GeneratorFunction")),e.prototype=Pf(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),u(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Dg);var a=new _(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),u(y,s,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return Yg(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,k.prototype={constructor:k,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,x),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+hy(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 o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.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),x(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}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 qL(e){return(qL="function"==typeof Ef&&"symbol"==typeof py?function(e){return typeof e}:function(e){return e&&"function"==typeof Ef&&e.constructor===Ef&&e!==Ef.prototype?"symbol":typeof e})(e)}function GL(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(HA){return void r(HA)}s.done?t(u):Dg.resolve(u).then(n,o)}function VL(e){return function(){var t=this,r=arguments;return new Dg((function(n,o){var i=e.apply(t,r);function a(e){GL(i,n,o,a,s,"next",e)}function s(e){GL(i,n,o,a,s,"throw",e)}a(void 0)}))}}function $L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QL(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),Of(e,uP(n.key),n)}}function YL(e,t,r){return t&&QL(e.prototype,t),r&&QL(e,r),Of(e,"prototype",{writable:!1}),e}function WL(e,t,r){return(t=uP(t))in e?Of(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KL(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Pf(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Of(e,"prototype",{writable:!1}),t&&JL(e,t)}function XL(e){var t;return(XL=Mf?Ay(t=If).call(t):function(e){return e.__proto__||If(e)})(e)}function JL(e,t){var r;return(JL=Mf?Ay(r=Mf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function ZL(){if("undefined"==typeof Reflect||!$y)return!1;if($y.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call($y(Boolean,[],(function(){}))),!0}catch(e){return!1}}function eP(e,t,r){var n;ZL()?eP=Ay(n=$y).call(n):eP=function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Ay(Function).apply(e,n));return r&&JL(o,r.prototype),o};return eP.apply(null,arguments)}function tP(e){var t="function"==typeof DL?new DL:void 0;return tP=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,o)}function o(){return eP(e,arguments,XL(this).constructor)}return o.prototype=Pf(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),JL(o,e)},tP(e)}function rP(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Tl(e);for(n=0;n<i.length;n++)r=i[n],jS(t).call(t,r)>=0||(o[r]=e[r]);return o}(e,t);if(Rl){var i=Rl(e);for(n=0;n<i.length;n++)r=i[n],jS(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function nP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oP(e){var t=ZL();return function(){var r,n=XL(e);if(t){var o=XL(this).constructor;r=$y(n,arguments,o)}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 nP(e)}(this,r)}}function iP(){var e;"undefined"!=typeof Reflect&&ek?iP=Ay(e=ek).call(e):iP=function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=XL(e)););return e}(e,t);if(n){var o=ql(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}};return iP.apply(this,arguments)}function aP(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 sP(e,t){var r=void 0!==Ef&&tk(e)||e["@@iterator"];if(!r){if(Gx(e)||(r=function(e,t){var r;if(e){if("string"==typeof e)return aP(e,t);var n=hy(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?nk(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aP(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function uP(e){var t=function(e,t){if("object"!==Sl(e)||null===e)return e;var r=e[Qy];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 cP=Ae,lP=We,fP=G,dP=Dr,hP=TypeError,pP=function(e){return function(t,r,n,o){cP(r);var i=lP(t),a=fP(i),s=dP(i),u=e?s-1:0,c=e?-1:1;if(n<2)for(;;){if(u in a){o=a[u],u+=c;break}if(u+=c,e?u<0:s<=u)throw hP("Reduce of empty array with no initial value")}for(;e?u>=0:s>u;u+=c)u in a&&(o=r(o,a[u],u,i));return o}},vP={left:pP(!1),right:pP(!0)}.left;Er({target:"Array",proto:!0,forced:!rh&&ve>79&&ve<83||!Vl("reduce")},{reduce:function(e){var t=arguments.length;return vP(this,e,t,t>1?arguments[1]:void 0)}});var gP,yP=Ll("Array").reduce,mP=se,_P=yP,bP=Array.prototype,wP=r((function(e){var t=e.reduce;return e===bP||mP(bP,e)&&t===bP.reduce?_P:t})),SP="network",xP="network_timeout",kP="network_forbidden",TP="network_notfound",RP="network_range_not_satisfiable",OP="demux",EP="remux",LP="media",PP="drm",AP="other",CP="runtime",jP=(WL(gP={},"manifest",{HLS:1100,DASH:1200}),WL(gP,SP,2100),WL(gP,xP,2101),WL(gP,kP,2103),WL(gP,TP,2104),WL(gP,RP,2116),WL(gP,OP,{FLV:3100,HLS:3200,MP4:3300,FMP4:3400,SIDX:3410}),WL(gP,EP,{FMP4:4100,MP4:4200}),WL(gP,LP,{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}),WL(gP,PP,{LICENSE:7100,CUSTOM_LICENSE:7200}),WL(gP,AP,8e3),WL(gP,CP,{NO_CANPLAY_ERROR:9001,BUFFERBREAK_ERROR:9002,WAITING_TIMEOUT_ERROR:9003}),gP),IP=function(e){KL(r,e);var t=oP(r);function r(e,n,o,i,a){var s;return $L(this,r),(s=t.call(this,a||(null==o?void 0:o.message))).errorType=e===xP?SP:e,s.originError=o,s.ext=i,s.errorCode=jP[e][n]||jP[e],s.errorMessage=s.message,s.errorCode||(s.errorType=AP,s.errorCode=jP[s.errorType]),s}return YL(r,null,[{key:"create",value:function(e,t,n,o,i){return e instanceof r?e:(e instanceof Error&&(n=e,e=""),e||(e=AP),new r(e,t,n,o,i))}},{key:"network",value:function(e){var t;return new r(null!=e&&e.isTimeout?xP:SP,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}(tP(Error)),MP=1,FP=2,NP=3,UP=4,DP=["Boolean","Number","String","Undefined","Null","Date","Object"],BP=function(){function e(t,r){$L(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 YL(e,[{key:"debug",value:function(){for(var t,r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];this.logCache.apply(this,pm(t=[MP]).call(t,i)),e.disabled||(n=console).debug.apply(n,pm(r=[this._prefix,HP()]).call(r,i))}},{key:"log",value:function(){for(var t,r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];this.logCache.apply(this,pm(t=[FP]).call(t,i)),e.disabled||(n=console).log.apply(n,pm(r=[this._prefix,HP()]).call(r,i))}},{key:"warn",value:function(){for(var t,r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];this.logCache.apply(this,pm(t=[NP]).call(t,i)),e.disabled||(n=console).warn.apply(n,pm(r=[this._prefix,HP()]).call(r,i))}},{key:"error",value:function(){for(var t,r,n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];this.logCache.apply(this,pm(t=[UP]).call(t,i)),e.disabled||(n=console).error.apply(n,pm(r=[this._prefix,HP()]).call(r,i))}},{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),o=1;o<r;o++)n[o-1]=arguments[o];var i=qx(n).call(n,(function(e){return qP(e)}));t=this._prefix+HP()+FR(i)}catch(s){return}if(e>=this.logCacheLevel&&(this.logSize+=t.length,this.logTextArray.push(t)),this.logSize>this.logMaxSize){var a=this.logTextArray.shift();this.logSize-=a.length}}}},{key:"getLogCache",value:function(){var e=this.logTextArray.join("\n");return this.reset(),e}},{key:"reset",value:function(){this.logTextArray=[],this.logSize=0}},{key:"table",value:function(){var t;e.disabled||(console.group(this._prefix),(t=console).table.apply(t,arguments),console.groupEnd())}},{key:"setLogLevel",value:function(e){this.logCacheLevel=e}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();function HP(){return(new Date).toLocaleString()}function zP(e){var t;if("object"!==qL(e))return e;var r=hy(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 qP(e,t,r){var n;r||(r=1),t||(t=2);var o={};if(!e||"object"!==qL(e))return e;var i=hy(n=Object.prototype.toString.call(e)).call(n,8,-1);if(!nO(DP).call(DP,i))return i;if(!(r>t)){for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r===t?o[a]=zP(e[a]):"object"===qL(e[a])?o[a]=qP(e[a],t,r+1):o[a]=e[a]);return o}}WL(BP,"disabled",!0);var GP="fetch",VP="xhr",$P="arraybuffer",QP="text",YP="json",WP=function(e){KL(r,e);var t=oP(r);function r(e,n,o,i){var a;return $L(this,r),WL(nP(a=t.call(this,i)),"retryCount",0),WL(nP(a),"isTimeout",!1),WL(nP(a),"loaderType",GP),WL(nP(a),"startTime",0),WL(nP(a),"endTime",0),WL(nP(a),"options",{}),a.url=e,a.request=n,a.response=o,a}return YL(r)}(tP(Error)),KP=Object.prototype.toString;function XP(e){if("[object Object]"!==KP.call(e))return!1;var t=If(e);return null===t||t===Object.prototype}function JP(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 ZP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function eA(e,t){var r,n;if(e){if(!t)return e;var o,i=Il(r=qx(n=Tl(t)).call(n,(function(e){if(null!=(o=t[e]))return Gx(o)?e+="[]":o=[o],qx(o).call(o,(function(t){var r,n;return n=t,"[object Date]"===KP.call(n)?t=t.toISOString():function(e){return null!==e&&"object"===qL(e)}(t)&&(t=FR(t)),pm(r="".concat(ZP(e),"=")).call(r,ZP(t))})).join("&")}))).call(r,Boolean).join("&");if(i){var a=jS(e).call(e,"#");-1!==a&&(e=hy(e).call(e,0,a)),e+=(-1===jS(e).call(e,"?")?"?":"&")+i}return e}}function tA(e,t,r,n,o,i,a,s,u,c,l){return o=null!=o?kT(o):null,n=Nx(n||"0",10),vx(n)&&(n=0),{data:e,done:t,options:{range:u,vid:c,index:s,contentLength:n,age:o,startTime:i,firstByteTime:a,endTime:vR(),priOptions:l},response:r}}function rA(e,t){return Math.round(8*e*1e3/t/1024)}var nA="error",oA="core.ttfb",iA="core.loadstart",aA="core.loadresponseheaders",sA="core.loadcomplete",uA="core.loadretry",cA="core.metadataparsed",lA="real_time_speed",fA=2097152,dA=function(e){KL(n,e);var t,r=oP(n);function n(){var e;return $L(this,n),WL(nP(e=r.call(this)),"_abortController",null),WL(nP(e),"_timeoutTimer",null),WL(nP(e),"_reader",null),WL(nP(e),"_response",null),WL(nP(e),"_aborted",!1),WL(nP(e),"_index",-1),WL(nP(e),"_range",null),WL(nP(e),"_receivedLength",0),WL(nP(e),"_running",!1),WL(nP(e),"_logger",null),WL(nP(e),"_vid",""),WL(nP(e),"_onProcessMinLen",0),WL(nP(e),"_onCancel",null),WL(nP(e),"_priOptions",null),e}return YL(n,[{key:"load",value:function(e){var t,r=this,n=e.url,o=e.vid,i=e.timeout,a=e.responseType,s=e.onProgress,u=e.index,c=e.onTimeout,l=e.onCancel,f=e.range,d=e.transformResponse,h=e.request,p=e.params,v=e.logger,g=e.method,y=e.headers,m=e.body,_=e.mode,b=e.credentials,w=e.cache,S=e.redirect,x=e.referrer,k=e.referrerPolicy,T=e.onProcessMinLen,R=e.priOptions;this._logger=v,this._aborted=!1,this._onProcessMinLen=T,this._onCancel=l,this._abortController="undefined"!=typeof AbortController&&new AbortController,this._running=!0,this._index=u,this._range=f||[0,0],this._vid=o||n,this._priOptions=R||{};var O={method:g,headers:y,body:m,mode:_,credentials:b,cache:w,redirect:S,referrer:x,referrerPolicy:k,signal:null===(t=this._abortController)||void 0===t?void 0:t.signal},E=!1;clearTimeout(this._timeoutTimer),n=eA(n,p);var L=JP(f);L&&(y=h?h.headers:O.headers=O.headers||(Headers?new Headers:{}),Headers&&y instanceof Headers?y.append("Range",L):y.Range=L),i&&(this._timeoutTimer=sT((function(){if(E=!0,r.cancel(),c){var e=new WP(n,O,null,"timeout");e.isTimeout=!0,c(e,{index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions})}}),i));var P=vR();return this._logger.debug("[fetch load start], index,",u,",range,",f),new Dg((function(e,t){fetch(h||n,h?void 0:O).then(function(){var o=VL(zL().mark((function o(i){var c,l,h,p;return zL().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(clearTimeout(r._timeoutTimer),r._response=i,!r._aborted&&r._running){o.next=4;break}return o.abrupt("return");case 4:if(d&&(i=d(i,n)||i),i.ok){o.next=7;break}throw new WP(n,O,i,"bad network response");case 7:if(c=vR(),a!==QP){o.next=15;break}return o.next=11,i.text();case 11:l=o.sent,r._running=!1,o.next=37;break;case 15:if(a!==YP){o.next=22;break}return o.next=18,i.json();case 18:l=o.sent,r._running=!1,o.next=37;break;case 22:if(!s){o.next=29;break}return r.resolve=e,r.reject=t,r._loadChunk(i,s,P,c),o.abrupt("return");case 29:return o.next=31,i.arrayBuffer();case 31:l=o.sent,l=new Uint8Array(l),r._running=!1,h=vR()-P,p=rA(l.byteLength,h),r.emit(lA,{speed:p,len:l.byteLength,time:h,vid:r._vid,index:r._index,range:r._range,priOptions:r._priOptions});case 37:r._logger.debug("[fetch load end], index,",u,",range,",f),e(tA(l,!0,i,i.headers.get("Content-Length"),i.headers.get("age"),P,c,u,f,r._vid,r._priOptions));case 39:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}()).catch((function(e){var o;clearTimeout(r._timeoutTimer),r._running=!1,r._aborted&&!E||((e=e instanceof WP?e:new WP(n,O,null,null===(o=e)||void 0===o?void 0:o.message)).startTime=P,e.endTime=vR(),e.isTimeout=E,e.options={index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions},t(e))}))}))}},{key:"cancel",value:(t=VL(zL().mark((function e(){return zL().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(HA){}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 o=this;if(!e.body||!e.body.getReader){this._running=!1;var i=new WP(e.url,"",e,"onProgress of bad response.body.getReader");return i.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},void this.reject(i)}this._onProcessMinLen>0&&(this._cache=new Uint8Array(fA),this._writeIdx=0);var a,s,u,c=this._reader=e.body.getReader(),l=function(){var i=VL(zL().mark((function i(){var f,d,h,p,v,g,y,m;return zL().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return s=vR(),i.prev=1,i.next=4,c.read();case 4:a=i.sent,u=vR(),i.next=13;break;case 8:return i.prev=8,i.t0=i.catch(1),u=vR(),o._aborted||(o._running=!1,i.t0.options={index:o._index,range:o._range,vid:o._vid,priOptions:o._priOptions},o.reject(i.t0)),i.abrupt("return");case 13:if(d=(null===(f=o._range)||void 0===f?void 0:f.length)>0?o._range[0]:0,h=d+o._receivedLength,!o._aborted){i.next=19;break}return o._running=!1,t(void 0,!1,{range:[h,h],vid:o._vid,index:o._index,startTime:s,endTime:u,st:r,firstByteTime:n,priOptions:o._priOptions},e),i.abrupt("return");case 19:var _;if(p=a.value?a.value.byteLength:0,o._receivedLength+=p,o._logger.debug("【fetchLoader,onProgress call】,task,",o._range,", start,",h,", end,",d+o._receivedLength,", done,",a.done),o._onProcessMinLen>0){if(o._writeIdx+p>=o._onProcessMinLen||a.done)(v=new Uint8Array(o._writeIdx+p)).set(hy(_=o._cache).call(_,0,o._writeIdx),0),p>0&&v.set(a.value,o._writeIdx),o._writeIdx=0,o._logger.debug("【fetchLoader,onProgress enough】,done,",a.done,",len,",v.byteLength,", writeIdx,",o._writeIdx);else if(p>0&&o._writeIdx+p<fA)o._cache.set(a.value,o._writeIdx),o._writeIdx+=p,o._logger.debug("【fetchLoader,onProgress cache】,len,",p,", writeIdx,",o._writeIdx);else if(p>0){var b;g=new Uint8Array(o._writeIdx+p+2048),o._logger.debug("【fetchLoader,onProgress extra start】,size,",o._writeIdx+p+2048,", datalen,",p,", writeIdx,",o._writeIdx),g.set(hy(b=o._cache).call(b,0,o._writeIdx),0),p>0&&g.set(a.value,o._writeIdx),o._writeIdx+=p,delete o._cache,o._cache=g,o._logger.debug("【fetchLoader,onProgress extra end】,len,",p,", writeIdx,",o._writeIdx)}}else v=a.value;(v&&v.byteLength>0||a.done)&&t(v,a.done,{range:[o._range[0]+o._receivedLength-(v?v.byteLength:0),o._range[0]+o._receivedLength],vid:o._vid,index:o._index,startTime:s,endTime:u,st:r,firstByteTime:n,priOptions:o._priOptions},e),a.done?(y=vR()-r,m=rA(o._receivedLength,y),o.emit(lA,{speed:m,len:o._receivedLength,time:y,vid:o._vid,index:o._index,range:o._range,priOptions:o._priOptions}),o._running=!1,o._logger.debug("[fetchLoader onProgress end],task,",o._range,",done,",a.done),o.resolve(tA(a,!0,e,e.headers.get("Content-Length"),e.headers.get("age"),r,n,o._index,o._range,o._vid,o._priOptions))):l();case 25:case"end":return i.stop()}}),i,null,[[1,8]])})));return function(){return i.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}(vk);var hA=function(e){KL(r,e);var t=oP(r);function r(){var e;return $L(this,r),WL(nP(e=t.call(this)),"_xhr",null),WL(nP(e),"_aborted",!1),WL(nP(e),"_timeoutTimer",null),WL(nP(e),"_range",null),WL(nP(e),"_receivedLength",0),WL(nP(e),"_url",null),WL(nP(e),"_onProgress",null),WL(nP(e),"_index",-1),WL(nP(e),"_headers",null),WL(nP(e),"_currentChunkSizeKB",384),WL(nP(e),"_timeout",null),WL(nP(e),"_xhr",null),WL(nP(e),"_withCredentials",null),WL(nP(e),"_startTime",-1),WL(nP(e),"_loadCompleteResolve",null),WL(nP(e),"_loadCompleteReject",null),WL(nP(e),"_runing",!1),WL(nP(e),"_logger",!1),WL(nP(e),"_vid",""),WL(nP(e),"_responseType",void 0),WL(nP(e),"_credentials",void 0),WL(nP(e),"_method",void 0),WL(nP(e),"_transformResponse",void 0),WL(nP(e),"_firstRtt",void 0),WL(nP(e),"_onCancel",null),WL(nP(e),"_priOptions",null),e}return YL(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=eA(e.url,e.params);var r=vR();return new Dg((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 WP?e:new WP(t._url,t._request)).startTime=r,e.endTime=vR(),e.options={index:t._index,vid:t._vid,priOptions:t._priOptions},e}))}},{key:"_startLoad",value:function(){var e=null;if(this._responseType===$P&&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=vR();var o=this._xhr=new XMLHttpRequest;o.open(this._method||"GET",this._url,!0),o.responseType=this._responseType,this._timeout&&(o.timeout=this._timeout),o.withCredentials=this._withCredentials,o.onload=Ay(r=this._onLoad).call(r,this),o.onreadystatechange=Ay(n=this._onReadyStatechange).call(n,this),o.onerror=function(e){var r,n,o;t._running=!1;var i=new WP(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===(o=e.currentTarget)||void 0===o?void 0:o.statusText));i.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(i)},o.ontimeout=function(e){t.cancel();var r=new WP(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 i,a=this._headers||{},s=JP(e);if(s&&(a.Range=s),a)tf(i=Tl(a)).call(i,(function(e){o.setRequestHeader(e,a[e])}));this._logger.debug("[xhr.send->] tast,",this._range,",load sub range, ",e),o.send(this._body)}catch(u){u.options={index:this._index,range:e,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(u)}}},{key:"_onReadyStatechange",value:function(e){2===e.target.readyState&&this._firstRtt<0&&(this._firstRtt=vR())}},{key:"_onLoad",value:function(e){var t,r=e.target.status;if(r<200||r>299){var n=new WP(this._url,null,HL(HL({},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 o,i=null,a=!1,s=(null===(t=this._range)||void 0===t?void 0:t.length)>0?this._range[0]:0;if(this._responseType===$P){var u,c=new Uint8Array(e.target.response);if(o=s+this._receivedLength,c&&c.byteLength>0){this._receivedLength+=c.byteLength;var l=vR()-this._startTime,f=rA(this._receivedLength,l);this.emit(lA,{speed:f,len:this._receivedLength,time:l,vid:this._vid,index:this._index,range:[o,s+this._receivedLength],priOptions:this._priOptions})}i=c,a=!((null===(u=this._range)||void 0===u?void 0:u.length)>1&&this._range[1]&&this._receivedLength<this._range[1]-this._range[0]),this._logger.debug("[xhr load done->], tast :",this._range,", start",o,"end ",s+this._receivedLength,",dataLen,",c?c.byteLength:0,",receivedLength",this._receivedLength,",index,",this._index,", done,",a)}else a=!0,i=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(i,a,{index:this._index,vid:this._vid,range:[o,s+this._receivedLength],startTime:this._startTime,endTime:vR(),priOptions:this._priOptions},d),a?(this._runing=!1,this._loadCompleteResolve&&this._loadCompleteResolve(tA(this._onProgress?null:i,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,iP(XL(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={},o=sP(jT(t=e.getAllResponseHeaders()).call(t).split("\r\n"));try{for(o.s();!(r=o.n()).done;){var i=r.value.split(": ");n[i[0].toLowerCase()]=hy(i).call(i,1).join(": ")}}catch(a){o.e(a)}finally{o.f()}return n}}],[{key:"isSupported",value:function(){return"undefined"!=typeof XMLHttpRequest}}]),r}(vk),pA=["retry","retryDelay","onRetryError","transformError"],vA=function(){function e(t,r){var n,o,i;$L(this,e),this.promise=((i=new Dg((function(e,t){n=e,o=t}))).used=!1,i.resolve=function(){return i.used=!0,n.apply(void 0,arguments)},i.reject=function(){return i.used=!0,o.apply(void 0,arguments)},i),this.alive=!!r.onProgress,!r.logger&&(r.logger=new BP("Loader")),this._loaderType=t,this._loader=t===GP&&"undefined"!=typeof fetch?new dA:new hA,this._config=r,this._retryCount=0,this._retryTimer=null,this._canceled=!1,this._retryCheckFunc=r.retryCheckFunc,this._logger=r.logger}var t;return YL(e,[{key:"exec",value:function(){var e=this,t=this._config,r=t.retry,n=t.retryDelay,o=t.onRetryError,i=t.transformError,a=rP(t,pA),s=function(){var t=VL(zL().mark((function t(){var u,c,l;return zL().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._loader.load(a);case 3:u=t.sent,e.promise.resolve(u),t.next=27;break;case 7:if(t.prev=7,t.t0=t.catch(0),e._loader.running=!1,e._logger.debug("[task request catch err]",t.t0),!e._canceled){t.next=13;break}return t.abrupt("return");case 13:if(t.t0.loaderType=e._loaderType,t.t0.retryCount=e._retryCount,c=t.t0,i&&(c=i(c)||c),o&&e._retryCount>0&&o(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=sT(s,n),t.abrupt("return");case 26:e.promise.reject(c);case 27:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(){return t.apply(this,arguments)}}();return s(),this.promise}},{key:"cancel",value:(t=VL(zL().mark((function e(){return zL().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 gA(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Dg((function(t){return sT(t,e)}))}var yA,mA=function(e){KL(n,e);var t,r=oP(n);function n(e){var t;return $L(this,n),WL(nP(t=r.call(this,e)),"type",GP),WL(nP(t),"_queue",[]),WL(nP(t),"_alive",[]),WL(nP(t),"_currentTask",null),WL(nP(t),"_finnalUrl",""),WL(nP(t),"_config",void 0),t._config=function(e){return HL({loaderType:GP,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:QP,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!==VP&&dA.isSupported()||(t.type=VP),t.log=e.logger,t}return YL(n,[{key:"isFetch",value:function(){return this.type===GP}},{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=$x({},this._config,r)).params&&(r.params=$x({},r.params)),r.headers&&XP(r.headers)&&(r.headers=$x({},r.headers)),r.body&&XP(r.body)&&(r.body=$x({},r.body)),r.transformRequest&&(r=r.transformRequest(r)||r),r.logger=this.log;var n=new vA(this.type,r);return n.loader.on(lA,(function(e){t.emit(lA,e)})),this._queue.push(n),1!==this._queue.length||this._currentTask&&this._currentTask.running||this._processTask(),n.promise}},{key:"cancel",value:(t=VL(zL().mark((function e(){var t;return zL().wrap((function(e){for(var r,n,o;;)switch(e.prev=e.next){case 0:return t=pm(r=qx(n=this._queue).call(n,(function(e){return e.cancel()}))).call(r,qx(o=this._alive).call(o,(function(e){return e.cancel()}))),this._currentTask&&t.push(this._currentTask.cancel()),this._queue=[],this._alive=[],e.next=6,Dg.all(t);case 6:return e.next=8,gA();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=Il(n=e._alive).call(n,(function(t){return t&&t!==e._currentTask})));e._processTask()}))}}}],[{key:"isFetchSupport",value:function(){return dA.isSupported()}}]),n}(vk),_A="core.rtcstatechange",bA={},wA={},SA={exports:{}},xA=SA.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(yA=Tl(xA)).call(yA,(function(e){var t=xA[e];tf(t).call(t,(function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}));var kA=SA.exports;!function(e,t){var r=function(e){return String(Number(e))===e?Number(e):e},n=function(e,t,n){var o=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:o&&!t[e.name]&&(t[e.name]={});var i=e.push?{}:o?t[e.name]:t;!function(e,t,n,o){if(o&&!n)t[o]=r(e[1]);else for(var i=0;i<n.length;i+=1)null!=e[i+1]&&(t[n[i]]=r(e[i+1]))}(n.match(e.reg),i,e.names,e.name),e.push&&t[e.push].push(i)},o=kA,i=Ay(t=RegExp.prototype.test).call(t,/^([a-z])=(.*)/);e.parse=function(e){var t,r,a={},s=[],u=a;return tf(t=Il(r=e.split(/(\r\n|\r|\n)/)).call(r,i)).call(t,(function(e){var t=e[0],r=hy(e).call(e,2);"m"===t&&(s.push({rtp:[],fmtp:[]}),u=s[s.length-1]);for(var i=0;i<(o[t]||[]).length;i+=1){var a=o[t][i];if(a.reg.test(r))return n(a,u,r)}})),a.media=s,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 wP(t=e.split(/;\s?/)).call(t,a,{})},e.parseFmtpConfig=e.parseParams,e.parsePayloads=function(e){var t;return qx(t=e.toString().split(" ")).call(t,Number)},e.parseRemoteCandidates=function(e){for(var t,n=[],o=qx(t=e.split(" ")).call(t,r),i=0;i<o.length;i+=3)n.push({component:o[i],ip:o[i+1],port:o[i+2]});return n},e.parseImageAttributes=function(e){var t;return qx(t=e.split(" ")).call(t,(function(e){var t;return wP(t=e.substring(1,e.length-1).split(",")).call(t,a,{})}))},e.parseSimulcastStreamList=function(e){var t;return qx(t=e.split(";")).call(t,(function(e){var t;return qx(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}}))}))}}(wA);var TA=kA,RA=/%[sdv%]/g,OA=function(e){var t=1,r=arguments,n=r.length;return e.replace(RA,(function(e){if(t>=n)return e;var o=r[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(o);case"%d":return Number(o);case"%v":return""}}))},EA=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 o=0;o<t.names.length;o+=1){var i=t.names[o];t.name?n.push(r[t.name][i]):n.push(r[t.names[o]])}else n.push(r[t.name]);return OA.apply(null,n)},LA=["v","o","s","i","u","e","p","c","b","t","r","z","a"],PA=["i","c","b","a"],AA=wA,CA=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 o=t.outerOrder||LA,i=t.innerOrder||PA,a=[];return tf(o).call(o,(function(t){var r;tf(r=TA[t]).call(r,(function(r){if(r.name in e&&null!=e[r.name])a.push(EA(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(EA(t,r,e))}))}}))})),tf(n=e.media).call(n,(function(e){a.push(EA("m",TA.m[0],e)),tf(i).call(i,(function(t){var r;tf(r=TA[t]).call(r,(function(r){if(r.name in e&&null!=e[r.name])a.push(EA(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(EA(t,r,e))}))}}))}))})),a.join("\r\n")+"\r\n"};function jA(e){return new Dg((function(t){var r;null===(r=e.getStats(null))||void 0===r||r.then((function(e){var r,n,o;t((n=[],o=[],tf(r=e).call(r,(function(e){"inbound-rtp"===e.type&&n.push(e),"remote-outbound-rtp"===e.type&&o.push(e)})),qx(n).call(n,(function(e){var t=r.get(e.codecId),n=r.get(e.trackId);return{type:e.mediaType,inboundRtp:e,remoteOutBoundRtp:zS(o).call(o,(function(t){return t.mediaType===e.mediaType})),codec:t,track:n}}))))}))})).catch((function(){}))}function IA(e){var t,r,n,o,i,a,s,u,c,l,f,d,h,p,v,g,y,m,_,b,w,S,x,k,T,R,O,E,L,P,A,C=null==e?void 0:Il(e).call(e,(function(e){return"video"===e.type}))[0],j=null==e?void 0:Il(e).call(e,(function(e){return"audio"===e.type}))[0];return C&&C.remoteOutBoundRtp&&(P={bytesSent:C.remoteOutBoundRtp.bytesSent,packetsSent:C.remoteOutBoundRtp.packetsSent}),j&&j.remoteOutBoundRtp&&(A={bytesSent:j.remoteOutBoundRtp.bytesSent,packetsSent:j.remoteOutBoundRtp.packetsSent}),{video:C?{codec:null===(t=C.codec)||void 0===t?void 0:t.mimeType,payloadType:null===(r=C.codec)||void 0===r?void 0:r.payloadType,sdpFmtpLine:null===(n=C.codec)||void 0===n?void 0:n.sdpFmtpLine,bytesReceived:(null===(o=C.inboundRtp)||void 0===o?void 0:o.bytesReceived)||0,firCount:null===(i=C.inboundRtp)||void 0===i?void 0:i.firCount,pliCount:null===(a=C.inboundRtp)||void 0===a?void 0:a.pliCount,frameHeight:null===(s=C.inboundRtp)||void 0===s?void 0:s.frameHeight,frameWidth:null===(u=C.inboundRtp)||void 0===u?void 0:u.frameWidth,framesDecoded:null===(c=C.inboundRtp)||void 0===c?void 0:c.framesDecoded,framesDropped:null===(l=C.inboundRtp)||void 0===l?void 0:l.framesDropped,framesPerSecond:null===(f=C.inboundRtp)||void 0===f?void 0:f.framesPerSecond,framesReceived:null===(d=C.inboundRtp)||void 0===d?void 0:d.framesReceived,jitter:null===(h=C.inboundRtp)||void 0===h?void 0:h.jitter,jitterBufferDelay:null===(p=C.inboundRtp)||void 0===p?void 0:p.jitterBufferDelay,keyFramesDecoded:null===(v=C.inboundRtp)||void 0===v?void 0:v.keyFramesDecoded,nackCount:null===(g=C.inboundRtp)||void 0===g?void 0:g.nackCount,packetsLost:(null===(y=C.inboundRtp)||void 0===y?void 0:y.packetsLost)||0,packetsReceived:(null===(m=C.inboundRtp)||void 0===m?void 0:m.packetsReceived)||0}:void 0,audio:j?{codec:null===(_=j.codec)||void 0===_?void 0:_.mimeType,payloadType:null===(b=j.codec)||void 0===b?void 0:b.payloadType,sdpFmtpLine:null===(w=j.codec)||void 0===w?void 0:w.sdpFmtpLine,bytesReceived:(null===(S=j.inboundRtp)||void 0===S?void 0:S.bytesReceived)||0,audioLevel:null===(x=j.inboundRtp)||void 0===x?void 0:x.audioLevel,jitter:null===(k=j.inboundRtp)||void 0===k?void 0:k.jitter,jitterBufferDelay:null===(T=j.inboundRtp)||void 0===T?void 0:T.jitterBufferDelay,packetsLost:(null===(R=j.inboundRtp)||void 0===R?void 0:R.packetsLost)||0,packetsReceived:(null===(O=j.inboundRtp)||void 0===O?void 0:O.packetsReceived)||0,totalSamplesDuration:null===(E=j.inboundRtp)||void 0===E?void 0:E.totalSamplesDuration,totalSamplesReceived:null===(L=j.inboundRtp)||void 0===L?void 0:L.totalSamplesReceived}:void 0,videoRemote:P,audioRemote:A}}bA.write=CA,bA.parse=AA.parse,bA.parseParams=AA.parseParams,bA.parseFmtpConfig=AA.parseFmtpConfig,bA.parsePayloads=AA.parsePayloads,bA.parseRemoteCandidates=AA.parseRemoteCandidates,bA.parseImageAttributes=AA.parseImageAttributes,bA.parseSimulcastStreamList=AA.parseSimulcastStreamList;var MA=function(){function e(t,r){var n=this;em(this,e),nm(this,"_pc",null),nm(this,"_lastVideoStats",null),nm(this,"_lastRemoteVideoStats",null),nm(this,"_timer",0),nm(this,"_timerInterval",0),nm(this,"_speedQueue",[]),nm(this,"_lostRateQueue",[]),nm(this,"_receivedRateQueue",[]),nm(this,"_currentSpeed",-1),nm(this,"_currentLostRate",-1),nm(this,"_currentReceivedRate",-1),nm(this,"_evaluate",Zy(Ky().mark((function e(){var t,r,o,i,a,s,u,c,l,f,d,h,p,v,g,y;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,jA(n._pc).then((function(e){return IA(e)}));case 3:t=e.sent,n._lastVideoStats&&null!=t&&t.video&&(r=t.video,o=r.bytesReceived,i=r.packetsLost,a=r.packetsReceived,s=n._lastVideoStats,u=s.bytesReceived,c=s.packetsLost,l=s.packetsReceived,u&&n._cacheSpeed(8e3*(o-u)/n._timerInterval),f=i-c,(d=a-l)&&f>=0&&n._cacheLostRate(f/(f+d)*1e3/n._timerInterval)),n._lastRemoteVideoStats&&null!=t&&t.videoRemote&&(h=t.video.bytesReceived,p=n._lastVideoStats.bytesReceived,v=null==t?void 0:t.videoRemote,g=v.bytesSent,(y=n._lastRemoteVideoStats.bytesSent)&&g&&g-y>0&&n._cacheReceivedRate((h-p)/(g-y))),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 rm(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=hy(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=hy(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=hy(t=this._receivedRateQueue).call(t,5));this._receivedRateQueue.push(e)}},{key:"_getAvgSpeed",value:function(){var e;return-1===this._currentSpeed?-1:wP(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:wP(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:wP(e=this._receivedRateQueue).call(e,(function(e,t){return e+t}),0)/this._receivedRateQueue.length}}]),e}(),FA=new BP("rts"),NA=function(e){om(o,e);var t,r,n=um(o);function o(e){var t;return em(this,o),nm(sm(t=n.call(this)),"_url",""),nm(sm(t),"_pc",null),nm(sm(t),"_audioTransceicer",null),nm(sm(t),"_videoTransceicer",null),nm(sm(t),"_mediaStream",null),nm(sm(t),"_lastMediaStream",null),nm(sm(t),"_media",null),nm(sm(t),"_opts",null),nm(sm(t),"_loader",null),nm(sm(t),"_networkEvaluate",null),nm(sm(t),"_retry",0),nm(sm(t),"_waitingTimer",0),nm(sm(t),"_rctConnectStartTs",0),nm(sm(t),"_isReplacing",!1),nm(sm(t),"_onTrack",(function(e){FA.log("addTrack: ",e.track,e.streams),t["_".concat(e.track.kind)]=e.track})),nm(sm(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=sT((function(){var e;null!==(e=t._media)&&void 0!==e&&e.paused||t.emit("waiting")}),t._opts.stallInterval))})),nm(sm(t),"_onLoadedData",(function(){FA.log("loadeddata emit"),t.getStatsSnapshoot().then((function(e){t.emit(cA,{type:"video",elapsed:vR()-t._rctConnectStartTs,meta:e.video}),t.emit(cA,{type:"audio",elapsed:vR()-t._rctConnectStartTs,meta:e.audio})}))})),nm(sm(t),"_onLoaderRetry",(function(e,r){t.emit(uA,{error:IP.network(e),retryTime:r})})),t._opts=function(e){return Wy({retryCount:0,retryDelay:1e3,loadTimeout:5e3,stallInterval:400,networkEvaluateInterval:1e3,delayHint:0,seamlesslyReload:!1},e)}(e),t._media=t._opts.media,t._loader=new mA(Wy(Wy({},e.fetchOptions),{},{responseType:"json",method:"POST",retry:t._opts.retryCount,retryDelay:t._opts.retryDelay,timeout:t._opts.loadTimeout,onRetryError:t._onLoaderRetry,logger:FA})),t._retry=t._opts.retryCount,t._bindMediaEvent(),t._opts.mediaStream&&t._opts.seamlesslyReload&&(t._lastMediaStream=t._opts.mediaStream),t}return rm(o,[{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 jA(this._pc)}},{key:"getStatsSnapshoot",value:function(){return this.getStats().then((function(e){return IA(e)}))}},{key:"load",value:(r=Zy(Ky().mark((function e(t,r){var n,o=this;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._disconnect(),this._url=t,this._retry=this._opts.retryCount,r?this._lastPc=this._pc:null===(n=this._pc)||void 0===n||n.close(),e.prev=4,this._pc=new RTCPeerConnection,this._bindRTCEvents(),e.next=9,this._connect(t);case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),sT((function(){return o._emitError(IP.create(AP,null,e.t0))}));case 14:case"end":return e.stop()}}),e,this,[[4,11]])}))),function(e,t){return r.apply(this,arguments)})},{key:"switchURL",value:function(e,t){t&&(this._lastMediaStream=this._mediaStream),this.load(e||this._url,t)}},{key:"_bindRTCEvents",value:function(){var e=this,t=this._pc;t.addEventListener("track",this._onTrack),t.addEventListener("connectionstatechange",(function(){if(FA.warn("onconnectionstatechange:",t.connectionState),e.emit(_A,{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(IP.network(new Error("rtc connect failed")));e._retry--,e.load(e._url)}"connected"===t.connectionState&&(e._closeLastPc(),e._handleMediaStream(),e.emit(oA,{url:e._url,responseUrl:e._url,elapsed:vR()-e._rctConnectStartTs}))}))}},{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._mediaStream.addTrack(this._audio),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._mediaStream.addTrack(this._audio),this._mediaStream.addTrack(this._video),this._media.srcObject=this._mediaStream;var o=this._media.play();o&&o.catch&&o.catch((function(e){}))}}},{key:"_bindMediaEvent",value:function(){this._media.addEventListener("timeupdate",this._mockWaitingByTimeupdate),this._media.addEventListener("loadeddata",this._onLoadedData)}},{key:"_connect",value:(t=Zy(Ky().mark((function e(){var t,r,n,o,i,a,s,u,c,l,f,d,h,p;return Ky().wrap((function(e){for(var v,g,y,m;;)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"}),(n=this._opts.delayHint)&&(this._audioTransceicer.receiver.playoutDelayHint=n,this._audioTransceicer.receiver.jitterBufferDelayHint=n,this._videoTransceicer.receiver.playoutDelayHint=n,this._videoTransceicer.receiver.jitterBufferDelayHint=n),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 FA.log("local offer"),FA.log(r.sdp),o=bA.parse(r.sdp),tf(v=Il(g=o.media).call(g,(function(e){return"audio"===e.type}))).call(v,(function(e){var t,r,n,o,i=null===(n=Il(t=e.rtp).call(t,(function(e){return"opus"===e.codec}))[0])||void 0===n?void 0:n.payload;i&&(tf(r=e.fmtp).call(r,(function(e){e.payload===i&&(e.config="minptime=10;stereo=1;useinbandfec=1")})),null===(o=e.rtcpFb)||void 0===o||o.push({payload:i,type:"nack"}))})),r.sdp=bA.write(o),FA.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,u=/_?session_id=([^&$]+)/.exec(i),c=u?u[1]:vR()+"666",this.emit(iA,{url:i,offersdp:r.sdp,sessionId:c}),l=vR(),e.next=32,this._loader.load(i,{body:FR({sessionId:c,version:"1.0-html",localSdp:r})});case 32:if(f=e.sent,this.emit(aA,{headers:f.response.headers}),404!==(null==(d=null==f?void 0:f.data)?void 0:d.code)&&403!==(null==d?void 0:d.code)){e.next=40;break}return(h=IP.create(404===d.code?TP:kP,null,d)).errorType=SP,this._emitError(h),e.abrupt("return");case 40:if(200===(null==d?void 0:d.code)){e.next=42;break}throw new Error(pm(y="code: ".concat(null==d?void 0:d.code,", message:")).call(y,null==d?void 0:d.message));case 42:return FA.log("answer:"),FA.log(null===(a=d.remoteSdp)||void 0===a?void 0:a.sdp),this.emit(sA,{url:i,elapsed:vR()-l,answersdp:null===(s=d.remoteSdp)||void 0===s?void 0:s.sdp}),p=bA.parse(d.remoteSdp.sdp),tf(m=p.media).call(m,(function(e){e.fingerprint.hash=e.fingerprint.hash.toUpperCase()})),d.remoteSdp.sdp=bA.write(p),FA.log("answer modified:\n",d.remoteSdp.sdp),this._rctConnectStartTs=vR(),e.next=52,this._pc.setRemoteDescription(d.remoteSdp);case 52:this._networkEvaluate=new MA(t,this._opts.networkEvaluateInterval),e.next=58;break;case 55:e.prev=55,e.t0=e.catch(23),this._emitError(IP.network(e.t0));case 58:case"end":return e.stop()}}),e,this,[[23,55]])}))),function(){return t.apply(this,arguments)})},{key:"_closeLastPc",value:function(){this._lastPc&&(this._lastPc.close(),this._lastPc=null)}},{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._closeLastPc(),this.emit(nA,e)}},{key:"destroy",value:function(){var e,t;this._disconnect(),null===(e=this._media)||void 0===e||e.removeEventListener("timeupdate",this._mockWaitingByTimeupdate),!this._media||null!==(t=this._opts)&&void 0!==t&&t.seamlesslyReload||(this._media.srcObject=null),this._closeLastPc(),this._pc&&this._pc.close(),this._loader=null,this._media=null,this._pc=null}}],[{key:"enableLogger",value:function(){BP.enable()}},{key:"disableLogger",value:function(){BP.disable()}}]),o}(vk);try{localStorage.getItem("xgd")?NA.enableLogger():NA.disableLogger()}catch(HA){}function UA(){return!(!window.RTCPeerConnection||!window.RTCPeerConnection.prototype.addTransceiver)}var DA=function(e){om(n,e);var t,r=um(n);function n(){var e,t;em(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return nm(sm(t=r.call.apply(r,pm(e=[this]).call(e,i))),"_rts",null),nm(sm(t),"_mediaStream",null),nm(sm(t),"_rtsOpts",null),nm(sm(t),"_onPause",(function(){var e,r,n,o;if(null!==(e=t._rts)&&void 0!==e&&e._pc&&(null===(r=t._rts)||void 0===r||!r._isReplacing)){var i;if(null!==(n=t.config)&&void 0!==n&&n.seamlesslyReload)t._mediaStream=null===(i=t._rts)||void 0===i?void 0:i._mediaStream;null===(o=t._rts)||void 0===o||o.destroy()}})),nm(sm(t),"_onPlay",(function(){var e,r;null!==(e=t._rts)&&void 0!==e&&e._pc||null!==(r=t._rts)&&void 0!==r&&r._isReplacing||t._init()})),nm(sm(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 NA(Wy({media:t.player.video,mediaStream:t._mediaStream,preProcessUrl:function(e,r){var n,o;return(null===(n=(o=t.player).preProcessUrl)||void 0===n?void 0:n.call(o,e,r))||{url:e,ext:r}}},n)),t._rts.load(r.url)})),nm(sm(t),"_onSwitchURL",(function(e,r){t._rts&&("object"===Xy(r)&&(r=r.seamless),t.player.config.url=e,t._rts.switchURL(e,r))})),nm(sm(t),"destroy",(function(){var e;t.player.switchURL=t._originSwitchFn,null===(e=t._rts)||void 0===e||e.destroy()})),t}return rm(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.4"}},{key:"beforePlayerInit",value:function(){var e,t,r,n,o=this;(this._init(),this._originSwitchFn)||(this._originSwitchFn=Ay(n=this.player.switchURL).call(n,this.player));this.player.switchURL=this._onSwitchURL,null===(e=this.player)||void 0===e||e.useHooks("replay",(function(){var e;return null===(e=o._rts)||void 0===e?void 0:e.switchURL()})),this.on("urlchange",this._onSwitchURL),this.on("destroy",this.destroy),null!==(t=this.player.config)&&void 0!==t&&null!==(r=t.rts)&&void 0!==r&&r.seamlesslyReload&&(this.on("pause",this._onPause),this.on("play",this._onPlay)),this._transErrorEvent(),this._transCoreEvent(iA),this._transCoreEvent(sA),this._transCoreEvent(oA),this._transCoreEvent(aA),this._transCoreEvent(uA),this._transCoreEvent(cA),this._transCoreEvent(_A);try{CR.defineGetterOrSetter(this.player,{__url:{get:function(){try{return xS.createObjectURL(new MediaSource)}catch(r){var e,t;null!==(e=o.player)&&void 0!==e&&null!==(t=e.video)&&void 0!==t&&t.srcObject||(o.player.video.srcObject=new MediaStream)}}}})}catch(i){}}},{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:"_transErrorEvent",value:function(){var e=this;this._rts.on(nA,(function(t){if(e.player){var r=new RR(e.player,t),n=e._rtsOpts,o=n.backupConstruct,i=n.backupURL;if(i){var a,s=e.player;s.emit("core_event",Wy(Wy({},{url:s.config.url,code:r.errorCode,message:r.message,httpCode:r.httpCode}),{},{eventName:"core.degrade"})),s.emit("degrade",{url:s.config.url,code:r.errorCode,message:r.message,httpCode:r.httpCode}),s.unRegisterPlugin("rts"),s.switchURL=e._originSwitchFn,e._rts=null,s.rts=null,null!==(a=s.video)&&void 0!==a&&a.srcObject&&(s.video.srcObject=null),s.config.url=i,o?s.registerPlugin(o).beforePlayerInit():s.video.src=i}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",Wy(Wy({},r),{},{eventName:e}))}))}}],[{key:"pluginName",get:function(){return"rts"}},{key:"isSupported",value:function(){return UA()}},{key:"getCapacity",value:function(){return function(){if(!UA())return Dg.reject("RTCPeerConnection no support");var e;try{(e=new RTCPeerConnection).addTransceiver("video",{direction:"recvonly"}),e.addTransceiver("audio",{direction:"recvonly"})}catch(t){return Dg.reject(null==t?void 0:t.message)}return e.createOffer().then((function(t){var r,n,o,i;FA.log(t.sdp);var a=bA.parse(t.sdp),s=null===(r=a.media)||void 0===r?void 0:Il(r).call(r,(function(e){return"video"===e.type}))[0],u=null===(n=a.media)||void 0===n?void 0:Il(n).call(n,(function(e){return"audio"===e.type}))[0],c=null==s||null===(o=s.rtp)||void 0===o?void 0:Il(o).call(o,(function(e){return"VP8"===e.codec||"VP9"===e.codec||"H264"===e.codec})),l=null==u||null===(i=u.rtp)||void 0===i?void 0:Il(i).call(i,(function(e){return"opus"===e.codec})),f=null==s?void 0:s.fmtp,d=null==u?void 0:u.fmtp;return f&&qx(c).call(c,(function(e){var t;e.config=null===(t=Il(f).call(f,(function(t){return t.payload===e.payload}))[0])||void 0===t?void 0:t.config})),d&&qx(l).call(l,(function(e){var t;e.config=null===(t=Il(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=Zy(Ky().mark((function e(t){var r,o,i,a,s;return Ky().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.getCapacity();case 3:if(o=e.sent,i=null===(r=o.video)||void 0===r?void 0:Il(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:s=e.sent,i=null===(a=s.video)||void 0===a?void 0:Il(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",!!i);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}(CR),BA=window.VePlayer.DynamicModule;VePlayer.registerPlugin(BA.PluginRtm,{RtmPlugin:DA}),e.RtmPlugin=DA}));