@volcengine/veplayer-plugin 2.4.2-rc.4 → 2.4.2-rc.6

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},i=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),o=function(e){try{return!!e()}catch(t){return!0}},a=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),u=a,s=Function.prototype,c=s.apply,l=s.call,f="object"==typeof Reflect&&Reflect.apply||(u?l.bind(c):function(){return l.apply(c,arguments)}),d=a,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,k=g,S=function(e){if("Function"===w(e))return k(e)},x="object"==typeof document&&document.all,T={all:x,IS_HTMLDDA:void 0===x&&void 0!==x},R=T.all,O=T.IS_HTMLDDA?function(e){return"function"==typeof e||e===R}:function(e){return"function"==typeof e},E={},L=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),A=a,P=Function.prototype.call,C=A?P.bind(P):function(){return P.apply(P,arguments)},j={},I={}.propertyIsEnumerable,U=Object.getOwnPropertyDescriptor,M=U&&!I.call({1:2},1);j.f=M?function(e){var t=U(this,e);return!!t&&t.enumerable}:I;var N,F,D=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},B=o,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=i,ie=O,oe=function(e){return ie(e)?e:void 0},ae=function(e,t){return arguments.length<2?oe(re[e])||oe(ne[e]):re[e]&&re[e][t]||ne[e]&&ne[e][t]},ue=g({}.isPrototypeOf),se="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ce=i,le=se,fe=ce.process,de=ce.Deno,he=fe&&fe.versions||de&&de.version,pe=he&&he.v8;pe&&(F=(N=pe.split("."))[0]>0&&N[0]<4?1:+(N[0]+N[1])),!F&&le&&(!(N=le.match(/Edge\/(\d+)/))||N[1]>=74)&&(N=le.match(/Chrome\/(\d+)/))&&(F=+N[1]);var ve=F,ge=ve,ye=o,me=i.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,ke=O,Se=ue,xe=Object,Te=be?function(e){return"symbol"==typeof e}:function(e){var t=we("Symbol");return ke(t)&&Se(t.prototype,xe(e))},Re=String,Oe=function(e){try{return Re(e)}catch(t){return"Object"}},Ee=O,Le=Oe,Ae=TypeError,Pe=function(e){if(Ee(e))return e;throw Ae(Le(e)+" is not a function")},Ce=Pe,je=V,Ie=function(e,t){var r=e[t];return je(r)?void 0:Ce(r)},Ue=C,Me=O,Ne=ee,Fe=TypeError,De={exports:{}},Be=i,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=i[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)},it=$e,ot=Je,at=nt,ut=_e,st=be,ct=i.Symbol,lt=it("wks"),ft=st?ct.for||ct:ct&&ct.withoutSetter||at,dt=function(e){return ot(lt,e)||(lt[e]=ut&&ot(ct,e)?ct[e]:ft("Symbol."+e)),lt[e]},ht=C,pt=ee,vt=Te,gt=Ie,yt=function(e,t){var r,n;if("string"===t&&Me(r=e.toString)&&!Ne(n=Ue(r,e)))return n;if(Me(r=e.valueOf)&&!Ne(n=Ue(r,e)))return n;if("string"!==t&&Me(r=e.toString)&&!Ne(n=Ue(r,e)))return n;throw Fe("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,kt=function(e){var t=bt(e,"string");return wt(t)?t:t+""},St=ee,xt=i.document,Tt=St(xt)&&St(xt.createElement),Rt=function(e){return Tt?xt.createElement(e):{}},Ot=Rt,Et=!L&&!o((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),Lt=L,At=C,Pt=j,Ct=D,jt=X,It=kt,Ut=Je,Mt=Et,Nt=Object.getOwnPropertyDescriptor;E.f=Lt?Nt:function(e,t){if(e=jt(e),t=It(t),Mt)try{return Nt(e,t)}catch(r){}if(Ut(e,t))return Ct(!At(Pt.f,e,t),e[t])};var Ft=o,Dt=O,Bt=/#|\.prototype\./,Ht=function(e,t){var r=qt[zt(e)];return r==Vt||r!=Gt&&(Dt(t)?Ft(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=Pe,Yt=a,Wt=S(S.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&&o((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,ir=Et,or=Jt,ar=rr,ur=kt,sr=TypeError,cr=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,fr="enumerable",dr="configurable",hr="writable";Xt.f=nr?or?function(e,t,r){if(ar(e),t=ur(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=ur(t),ar(r),ir)try{return cr(e,t,r)}catch(n){}if("get"in r||"set"in r)throw sr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var 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=i,mr=f,_r=S,br=O,wr=E.f,kr=$t,Sr=te,xr=Kt,Tr=gr,Rr=Je,Or=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return mr(e,this,arguments)};return t.prototype=e.prototype,t},Er=function(e,t){var r,n,i,o,a,u,s,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?Sr:Sr[f]||Tr(Sr,f,{})[f],y=g.prototype;for(o in t)n=!(r=kr(d?o:f+(h?".":"#")+o,e.forced))&&v&&Rr(v,o),u=g[o],n&&(s=e.dontCallGetSet?(l=wr(v,o))&&l.value:v[o]),a=n&&s?s:t[o],n&&typeof u==typeof a||(c=e.bind&&n?xr(a,yr):e.wrap&&n?Or(a):p&&br(a)?_r(a):a,(e.sham||a&&a.sham||u&&u.sham)&&Tr(c,"sham",!0),Tr(g,o,c),p&&(Rr(Sr,i=f+"Prototype")||Tr(Sr,i,{}),Tr(Sr[i],o,a),e.real&&y&&(r||!y[o])&&Tr(y,o,a)))},Lr=b,Ar=Array.isArray||function(e){return"Array"==Lr(e)},Pr=Math.ceil,Cr=Math.floor,jr=Math.trunc||function(e){var t=+e;return(t>0?Cr:Pr)(t)},Ir=function(e){var t=+e;return t!=t||0===t?0:jr(t)},Ur=Ir,Mr=Math.min,Nr=function(e){return e>0?Mr(Ur(e),9007199254740991):0},Fr=Nr,Dr=function(e){return Fr(e.length)},Br=TypeError,Hr=function(e){if(e>9007199254740991)throw Br("Maximum allowed index exceeded");return e},zr=kt,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,un=o,sn=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(!sn(e))return!1;try{return hn(fn,dn,e),!0}catch(t){return!1}},mn=function(e){if(!sn(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||un((function(){var e;return yn(yn.call)||!yn(Object)||!yn((function(){e=!0}))||e}))?mn:yn,bn=Ar,wn=_n,kn=ee,Sn=dt("species"),xn=Array,Tn=function(e){var t;return bn(e)&&(t=e.constructor,(wn(t)&&(t===xn||bn(t.prototype))||kn(t)&&null===(t=t[Sn]))&&(t=void 0)),void 0===t?xn:t},Rn=function(e,t){return new(Tn(e))(0===t?0:t)},On=o,En=ve,Ln=dt("species"),An=function(e){return En>=51||!On((function(){var t=[];return(t.constructor={})[Ln]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Pn=Er,Cn=o,jn=Ar,In=ee,Un=We,Mn=Dr,Nn=Hr,Fn=Vr,Dn=Rn,Bn=An,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)};Pn({target:"Array",proto:!0,arity:1,forced:!qn||!Bn("concat")},{concat:function(e){var t,r,n,i,o,a=Un(this),u=Dn(a,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(Gn(o=-1===t?a:arguments[t]))for(i=Mn(o),Nn(s+i),r=0;r<i;r++,s++)r in o&&Fn(u,s,o[r]);else Nn(s+1),Fn(u,s++,o);return u.length=s,u}});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,ei=Jn,ti=Dr,ri=function(e){return function(t,r,n){var i,o=Zn(t),a=ti(o),u=ei(n,a);if(e&&r!=r){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===r)return e||u||0;return!e&&-1}},ni={includes:ri(!0),indexOf:ri(!1)},ii={},oi=Je,ai=X,ui=ni.indexOf,si=ii,ci=g([].push),li=function(e,t){var r,n=ai(e),i=0,o=[];for(r in n)!oi(si,r)&&oi(n,r)&&ci(o,r);for(;t.length>i;)oi(n,r=t[i++])&&(~ui(o,r)||ci(o,r));return o},fi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],di=li,hi=fi,pi=Object.keys||function(e){return di(e,hi)},vi=L,gi=Jt,yi=Xt,mi=rr,_i=X,bi=pi;Yn.f=vi&&!gi?Object.defineProperties:function(e,t){mi(e);for(var r,n=_i(t),i=bi(t),o=i.length,a=0;o>a;)yi.f(e,r=i[a++],n[r]);return e};var wi,ki=ae("document","documentElement"),Si=nt,xi=$e("keys"),Ti=function(e){return xi[e]||(xi[e]=Si(e))},Ri=rr,Oi=Yn,Ei=fi,Li=ii,Ai=ki,Pi=Rt,Ci="prototype",ji="script",Ii=Ti("IE_PROTO"),Ui=function(){},Mi=function(e){return"<"+ji+">"+e+"</"+ji+">"},Ni=function(e){e.write(Mi("")),e.close();var t=e.parentWindow.Object;return e=null,t},Fi=function(){try{wi=new ActiveXObject("htmlfile")}catch(i){}var e,t,r;Fi="undefined"!=typeof document?document.domain&&wi?Ni(wi):(t=Pi("iframe"),r="java"+ji+":",t.style.display="none",Ai.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Mi("document.F=Object")),e.close(),e.F):Ni(wi);for(var n=Ei.length;n--;)delete Fi[Ci][Ei[n]];return Fi()};Li[Ii]=!0;var Di=Object.create||function(e,t){var r;return null!==e?(Ui[Ci]=Ri(e),r=new Ui,Ui[Ci]=null,r[Ii]=e):r=Fi(),void 0===t?r:Oi.f(r,t)},Bi={},Hi=li,zi=fi.concat("length","prototype");Bi.f=Object.getOwnPropertyNames||function(e){return Hi(e,zi)};var qi={},Gi=Jn,Vi=Dr,$i=Vr,Qi=Array,Yi=Math.max,Wi=function(e,t,r){for(var n=Vi(e),i=Gi(t,n),o=Gi(void 0===r?n:r,n),a=Qi(Yi(o-i,0)),u=0;i<o;i++,u++)$i(a,u,e[i]);return a.length=u,a},Ki=b,Xi=X,Ji=Bi.f,Zi=Wi,eo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];qi.f=function(e){return eo&&"Window"==Ki(e)?function(e){try{return Ji(e)}catch(t){return Zi(eo)}}(e):Ji(Xi(e))};var to={};to.f=Object.getOwnPropertySymbols;var ro=gr,no=function(e,t,r,n){return n&&n.enumerable?e[t]=r:ro(e,t,r),e},io=Xt,oo=function(e,t,r){return io.f(e,t,r)},ao={},uo=dt;ao.f=uo;var so,co,lo,fo=te,ho=Je,po=ao,vo=Xt.f,go=function(e){var t=fo.Symbol||(fo.Symbol={});ho(t,e)||vo(t,e,{value:po.f(e)})},yo=C,mo=ae,_o=dt,bo=no,wo=function(){var e=mo("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=_o("toPrimitive");t&&!t[n]&&bo(t,n,(function(e){return yo(r,this)}),{arity:1})},ko=en,So=Qr?{}.toString:function(){return"[object "+ko(this)+"]"},xo=Qr,To=Xt.f,Ro=gr,Oo=Je,Eo=So,Lo=dt("toStringTag"),Ao=function(e,t,r,n){if(e){var i=r?e:e.prototype;Oo(i,Lo)||To(i,Lo,{configurable:!0,value:t}),n&&!xo&&Ro(i,"toString",Eo)}},Po=O,Co=i.WeakMap,jo=Po(Co)&&/native code/.test(String(Co)),Io=i,Uo=ee,Mo=gr,No=Je,Fo=Ge,Do=Ti,Bo=ii,Ho="Object already initialized",zo=Io.TypeError,qo=Io.WeakMap;if(jo||Fo.state){var Go=Fo.state||(Fo.state=new qo);Go.get=Go.get,Go.has=Go.has,Go.set=Go.set,so=function(e,t){if(Go.has(e))throw zo(Ho);return t.facade=e,Go.set(e,t),t},co=function(e){return Go.get(e)||{}},lo=function(e){return Go.has(e)}}else{var Vo=Do("state");Bo[Vo]=!0,so=function(e,t){if(No(e,Vo))throw zo(Ho);return t.facade=e,Mo(e,Vo,t),t},co=function(e){return No(e,Vo)?e[Vo]:{}},lo=function(e){return No(e,Vo)}}var $o={set:so,get:co,has:lo,enforce:function(e){return lo(e)?co(e):so(e,{})},getterFor:function(e){return function(t){var r;if(!Uo(t)||(r=co(t)).type!==e)throw zo("Incompatible receiver, "+e+" required");return r}}},Qo=Kt,Yo=G,Wo=We,Ko=Dr,Xo=Rn,Jo=g([].push),Zo=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,o=6==e,a=7==e,u=5==e||o;return function(s,c,l,f){for(var d,h,p=Wo(s),v=Yo(p),g=Qo(c,l),y=Ko(v),m=0,_=f||Xo,b=t?_(s,y):r||a?_(s,0):void 0;y>m;m++)if((u||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:Jo(b,d)}else switch(e){case 4:return!1;case 7:Jo(b,d)}return o?-1:n||i?i:b}},ea={forEach:Zo(0),map:Zo(1),filter:Zo(2),some:Zo(3),every:Zo(4),find:Zo(5),findIndex:Zo(6),filterReject:Zo(7)},ta=Er,ra=i,na=C,ia=g,oa=L,aa=_e,ua=o,sa=Je,ca=ue,la=rr,fa=X,da=kt,ha=Qn,pa=D,va=Di,ga=pi,ya=Bi,ma=qi,_a=to,ba=E,wa=Xt,ka=Yn,Sa=j,xa=no,Ta=oo,Ra=$e,Oa=ii,Ea=nt,La=dt,Aa=ao,Pa=go,Ca=wo,ja=Ao,Ia=$o,Ua=ea.forEach,Ma=Ti("hidden"),Na="Symbol",Fa="prototype",Da=Ia.set,Ba=Ia.getterFor(Na),Ha=Object[Fa],za=ra.Symbol,qa=za&&za[Fa],Ga=ra.TypeError,Va=ra.QObject,$a=ba.f,Qa=wa.f,Ya=ma.f,Wa=Sa.f,Ka=ia([].push),Xa=Ra("symbols"),Ja=Ra("op-symbols"),Za=Ra("wks"),eu=!Va||!Va[Fa]||!Va[Fa].findChild,tu=oa&&ua((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,ru=function(e,t){var r=Xa[e]=va(qa);return Da(r,{type:Na,tag:e,description:t}),oa||(r.description=t),r},nu=function(e,t,r){e===Ha&&nu(Ja,t,r),la(e);var n=da(t);return la(r),sa(Xa,n)?(r.enumerable?(sa(e,Ma)&&e[Ma][n]&&(e[Ma][n]=!1),r=va(r,{enumerable:pa(0,!1)})):(sa(e,Ma)||Qa(e,Ma,pa(1,{})),e[Ma][n]=!0),tu(e,n,r)):Qa(e,n,r)},iu=function(e,t){la(e);var r=fa(t),n=ga(r).concat(su(r));return Ua(n,(function(t){oa&&!na(ou,r,t)||nu(e,t,r[t])})),e},ou=function(e){var t=da(e),r=na(Wa,this,t);return!(this===Ha&&sa(Xa,t)&&!sa(Ja,t))&&(!(r||!sa(this,t)||!sa(Xa,t)||sa(this,Ma)&&this[Ma][t])||r)},au=function(e,t){var r=fa(e),n=da(t);if(r!==Ha||!sa(Xa,n)||sa(Ja,n)){var i=$a(r,n);return!i||!sa(Xa,n)||sa(r,Ma)&&r[Ma][n]||(i.enumerable=!0),i}},uu=function(e){var t=Ya(fa(e)),r=[];return Ua(t,(function(e){sa(Xa,e)||sa(Oa,e)||Ka(r,e)})),r},su=function(e){var t=e===Ha,r=Ya(t?Ja:fa(e)),n=[];return Ua(r,(function(e){!sa(Xa,e)||t&&!sa(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),sa(this,Ma)&&sa(this[Ma],t)&&(this[Ma][t]=!1),tu(this,t,pa(1,e))};return oa&&eu&&tu(Ha,t,{configurable:!0,set:r}),ru(t,e)},xa(qa=za[Fa],"toString",(function(){return Ba(this).tag})),xa(za,"withoutSetter",(function(e){return ru(Ea(e),e)})),Sa.f=ou,wa.f=nu,ka.f=iu,ba.f=au,ya.f=ma.f=uu,_a.f=su,Aa.f=function(e){return ru(La(e),e)},oa&&Ta(qa,"description",{configurable:!0,get:function(){return Ba(this).description}})),ta({global:!0,constructor:!0,wrap:!0,forced:!aa,sham:!aa},{Symbol:za}),Ua(ga(Za),(function(e){Pa(e)})),ta({target:Na,stat:!0,forced:!aa},{useSetter:function(){eu=!0},useSimple:function(){eu=!1}}),ta({target:"Object",stat:!0,forced:!aa,sham:!oa},{create:function(e,t){return void 0===t?va(e):iu(va(e),t)},defineProperty:nu,defineProperties:iu,getOwnPropertyDescriptor:au}),ta({target:"Object",stat:!0,forced:!aa},{getOwnPropertyNames:uu}),Ca(),ja(za,Na),Oa[Ma]=!0;var cu=_e&&!!Symbol.for&&!!Symbol.keyFor,lu=Er,fu=ae,du=Je,hu=Qn,pu=$e,vu=cu,gu=pu("string-to-symbol-registry"),yu=pu("symbol-to-string-registry");lu({target:"Symbol",stat:!0,forced:!vu},{for:function(e){var t=hu(e);if(du(gu,t))return gu[t];var r=fu("Symbol")(t);return gu[t]=r,yu[r]=t,r}});var mu=Er,_u=Je,bu=Te,wu=Oe,ku=cu,Su=$e("symbol-to-string-registry");mu({target:"Symbol",stat:!0,forced:!ku},{keyFor:function(e){if(!bu(e))throw TypeError(wu(e)+" is not a symbol");if(_u(Su,e))return Su[e]}});var xu=g([].slice),Tu=Ar,Ru=O,Ou=b,Eu=Qn,Lu=g([].push),Au=Er,Pu=ae,Cu=f,ju=C,Iu=g,Uu=o,Mu=O,Nu=Te,Fu=xu,Du=function(e){if(Ru(e))return e;if(Tu(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];"string"==typeof i?Lu(r,i):"number"!=typeof i&&"Number"!=Ou(i)&&"String"!=Ou(i)||Lu(r,Eu(i))}var o=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(Tu(this))return t;for(var n=0;n<o;n++)if(r[n]===e)return t}}},Bu=_e,Hu=String,zu=Pu("JSON","stringify"),qu=Iu(/./.exec),Gu=Iu("".charAt),Vu=Iu("".charCodeAt),$u=Iu("".replace),Qu=Iu(1..toString),Yu=/[\uD800-\uDFFF]/g,Wu=/^[\uD800-\uDBFF]$/,Ku=/^[\uDC00-\uDFFF]$/,Xu=!Bu||Uu((function(){var e=Pu("Symbol")();return"[null]"!=zu([e])||"{}"!=zu({a:e})||"{}"!=zu(Object(e))})),Ju=Uu((function(){return'"\\udf06\\ud834"'!==zu("\udf06\ud834")||'"\\udead"'!==zu("\udead")})),Zu=function(e,t){var r=Fu(arguments),n=Du(t);if(Mu(n)||void 0!==e&&!Nu(e))return r[1]=function(e,t){if(Mu(n)&&(t=ju(n,this,Hu(e),t)),!Nu(t))return t},Cu(zu,null,r)},es=function(e,t,r){var n=Gu(r,t-1),i=Gu(r,t+1);return qu(Wu,e)&&!qu(Ku,i)||qu(Ku,e)&&!qu(Wu,n)?"\\u"+Qu(Vu(e,0),16):e};zu&&Au({target:"JSON",stat:!0,arity:3,forced:Xu||Ju},{stringify:function(e,t,r){var n=Fu(arguments),i=Cu(Xu?Zu:zu,null,n);return Ju&&"string"==typeof i?$u(i,Yu,es):i}});var ts=to,rs=We;Er({target:"Object",stat:!0,forced:!_e||o((function(){ts.f(1)}))},{getOwnPropertySymbols:function(e){var t=ts.f;return t?t(rs(e)):[]}}),go("asyncIterator"),go("hasInstance"),go("isConcatSpreadable"),go("iterator"),go("match"),go("matchAll"),go("replace"),go("search"),go("species"),go("split");var ns=wo;go("toPrimitive"),ns();var is=ae,os=Ao;go("toStringTag"),os(is("Symbol"),"Symbol"),go("unscopables"),Ao(i.JSON,"JSON",!0);var as,us,ss,cs=te.Symbol,ls={},fs=L,ds=Je,hs=Function.prototype,ps=fs&&Object.getOwnPropertyDescriptor,vs=ds(hs,"name"),gs={EXISTS:vs,PROPER:vs&&"something"===function(){}.name,CONFIGURABLE:vs&&(!fs||fs&&ps(hs,"name").configurable)},ys=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ms=Je,_s=O,bs=We,ws=ys,ks=Ti("IE_PROTO"),Ss=Object,xs=Ss.prototype,Ts=ws?Ss.getPrototypeOf:function(e){var t=bs(e);if(ms(t,ks))return t[ks];var r=t.constructor;return _s(r)&&t instanceof r?r.prototype:t instanceof Ss?xs:null},Rs=o,Os=O,Es=ee,Ls=Di,As=Ts,Ps=no,Cs=dt("iterator"),js=!1;[].keys&&("next"in(ss=[].keys())?(us=As(As(ss)))!==Object.prototype&&(as=us):js=!0);var Is=!Es(as)||Rs((function(){var e={};return as[Cs].call(e)!==e}));Os((as=Is?{}:Ls(as))[Cs])||Ps(as,Cs,(function(){return this}));var Us={IteratorPrototype:as,BUGGY_SAFARI_ITERATORS:js},Ms=Us.IteratorPrototype,Ns=Di,Fs=D,Ds=Ao,Bs=ls,Hs=function(){return this},zs=function(e,t,r,n){var i=t+" Iterator";return e.prototype=Ns(Ms,{next:Fs(+!n,r)}),Ds(e,i,!1,!0),Bs[i]=Hs,e},qs=g,Gs=Pe,Vs=O,$s=String,Qs=TypeError,Ys=function(e,t,r){try{return qs(Gs(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},Ws=rr,Ks=function(e){if("object"==typeof e||Vs(e))return e;throw Qs("Can't set "+$s(e)+" as a prototype")},Xs=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Ys(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return Ws(r),Ks(n),t?e(r,n):r.__proto__=n,r}}():void 0),Js=Er,Zs=C,ec=gs,tc=zs,rc=Ts,nc=Ao,ic=no,oc=ls,ac=Us,uc=ec.PROPER,sc=ac.BUGGY_SAFARI_ITERATORS,cc=dt("iterator"),lc="keys",fc="values",dc="entries",hc=function(){return this},pc=function(e,t,r,n,i,o,a){tc(r,t,n);var u,s,c,l=function(e){if(e===i&&v)return v;if(!sc&&e in 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"]||i&&h[i],v=!sc&&p||l(i),g="Array"==t&&h.entries||p;if(g&&(u=rc(g.call(new e)))!==Object.prototype&&u.next&&(nc(u,f,!0,!0),oc[f]=hc),uc&&i==fc&&p&&p.name!==fc&&(d=!0,v=function(){return Zs(p,this)}),i)if(s={values:l(fc),keys:o?v:l(lc),entries:l(dc)},a)for(c in s)(sc||d||!(c in h))&&ic(h,c,s[c]);else Js({target:t,proto:!0,forced:sc||d},s);return a&&h[cc]!==v&&ic(h,cc,v,{name:i}),oc[t]=v,s},vc=function(e,t){return{value:e,done:t}},gc=X,yc=ls,mc=$o;Xt.f;var _c=pc,bc=vc,wc="Array Iterator",kc=mc.set,Sc=mc.getterFor(wc);_c(Array,"Array",(function(e,t){kc(this,{type:wc,target:gc(e),index:0,kind:t})}),(function(){var e=Sc(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 xc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Tc=i,Rc=en,Oc=gr,Ec=ls,Lc=dt("toStringTag");for(var Ac in xc){var Pc=Tc[Ac],Cc=Pc&&Pc.prototype;Cc&&Rc(Cc)!==Lc&&Oc(Cc,Lc,Ac),Ec[Ac]=Ec.Array}var jc=cs;go("dispose");var Ic=jc;go("asyncDispose");var Uc=Er,Mc=g,Nc=ae("Symbol"),Fc=Nc.keyFor,Dc=Mc(Nc.prototype.valueOf);Uc({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==Fc(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(ZP){}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),i=n.length;r<i;r++)if(Kc[n[r]]==t)return!0}catch(ZP){}return!1}}),go("matcher"),go("metadataKey"),go("observable"),go("metadata"),go("patternMatch"),go("replaceAll");var tl=Ic,rl=r(tl),nl=g,il=Ir,ol=Qn,al=Y,ul=nl("".charAt),sl=nl("".charCodeAt),cl=nl("".slice),ll=function(e){return function(t,r){var n,i,o=ol(al(t)),a=il(r),u=o.length;return a<0||a>=u?e?"":void 0:(n=sl(o,a))<55296||n>56319||a+1===u||(i=sl(o,a+1))<56320||i>57343?e?ul(o,a):n:e?cl(o,a,a+2):i-56320+(n-55296<<10)+65536}},fl={codeAt:ll(!1),charAt:ll(!0)},dl=fl.charAt,hl=Qn,pl=$o,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=ao.f("iterator"),wl=r(bl);function kl(e){return(kl="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 Sl=r(tl),xl=en,Tl=Ie,Rl=V,Ol=ls,El=dt("iterator"),Ll=function(e){if(!Rl(e))return Tl(e,El)||Tl(e,"@@iterator")||Ol[xl(e)]},Al=r(Ll),Pl=We,Cl=pi;Er({target:"Object",stat:!0,forced:o((function(){Cl(1)}))},{keys:function(e){return Cl(Pl(e))}});var jl=r(te.Object.keys),Il=r(te.Object.getOwnPropertySymbols),Ul=ea.filter;Er({target:"Array",proto:!0,forced:!An("filter")},{filter:function(e){return Ul(this,e,arguments.length>1?arguments[1]:void 0)}});var Ml=te,Nl=function(e){return Ml[e+"Prototype"]},Fl=Nl("Array").filter,Dl=ue,Bl=Fl,Hl=Array.prototype,zl=r((function(e){var t=e.filter;return e===Hl||Dl(Hl,e)&&t===Hl.filter?Bl:t})),ql={exports:{}},Gl=Er,Vl=o,$l=X,Ql=E.f,Yl=L;Gl({target:"Object",stat:!0,forced:!Yl||Vl((function(){Ql(1)})),sham:!Yl},{getOwnPropertyDescriptor:function(e,t){return Ql($l(e),t)}});var Wl=te.Object,Kl=ql.exports=function(e,t){return Wl.getOwnPropertyDescriptor(e,t)};Wl.getOwnPropertyDescriptor.sham&&(Kl.sham=!0);var Xl=r(ql.exports),Jl=o,Zl=function(e,t){var r=[][e];return!!r&&Jl((function(){r.call(null,t||function(){return 1},1)}))},ef=ea.forEach,tf=Zl("forEach")?[].forEach:function(e){return ef(this,e,arguments.length>1?arguments[1]:void 0)};Er({target:"Array",proto:!0,forced:[].forEach!=tf},{forEach:tf});var rf=Nl("Array").forEach,nf=en,of=Je,af=ue,uf=rf,sf=Array.prototype,cf={DOMTokenList:!0,NodeList:!0},lf=r((function(e){var t=e.forEach;return e===sf||af(sf,e)&&t===sf.forEach||of(cf,nf(e))?uf:t})),ff=ae,df=Bi,hf=to,pf=rr,vf=g([].concat),gf=ff("Reflect","ownKeys")||function(e){var t=df.f(pf(e)),r=hf.f;return r?vf(t,r(e)):t},yf=gf,mf=X,_f=E,bf=Vr;Er({target:"Object",stat:!0,sham:!L},{getOwnPropertyDescriptors:function(e){for(var t,r,n=mf(e),i=_f.f,o=yf(n),a={},u=0;o.length>u;)void 0!==(r=i(n,t=o[u++]))&&bf(a,t,r);return a}});var wf=r(te.Object.getOwnPropertyDescriptors),kf={exports:{}},Sf=Er,xf=L,Tf=Yn.f;Sf({target:"Object",stat:!0,forced:Object.defineProperties!==Tf,sham:!xf},{defineProperties:Tf});var Rf=te.Object,Of=kf.exports=function(e,t){return Rf.defineProperties(e,t)};Rf.defineProperties.sham&&(Of.sham=!0);var Ef=r(kf.exports),Lf={exports:{}},Af=Er,Pf=L,Cf=Xt.f;Af({target:"Object",stat:!0,forced:Object.defineProperty!==Cf,sham:!Pf},{defineProperty:Cf});var jf=te.Object,If=Lf.exports=function(e,t,r){return jf.defineProperty(e,t,r)};jf.defineProperty.sham&&(If.sham=!0);var Uf=r(Lf.exports);Er({target:"Object",stat:!0,sham:!L},{create:Di});var Mf=te.Object,Nf=r((function(e,t){return Mf.create(e,t)})),Ff=We,Df=Ts,Bf=ys;Er({target:"Object",stat:!0,forced:o((function(){Df(1)})),sham:!Bf},{getPrototypeOf:function(e){return Df(Ff(e))}});var Hf=r(te.Object.getPrototypeOf);Er({target:"Object",stat:!0},{setPrototypeOf:Xs});var zf=r(te.Object.setPrototypeOf),qf=Je,Gf=gf,Vf=E,$f=Xt,Qf=ee,Yf=gr,Wf=Error,Kf=g("".replace),Xf=String(Wf("zxcasd").stack),Jf=/\n\s*at [^:]*:[^\n]*/,Zf=Jf.test(Xf),ed=D,td=!o((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",ed(1,7)),7!==e.stack)})),rd=gr,nd=function(e,t){if(Zf&&"string"==typeof e&&!Wf.prepareStackTrace)for(;t--;)e=Kf(e,Jf,"");return e},id=td,od=Error.captureStackTrace,ad=ls,ud=dt("iterator"),sd=Array.prototype,cd=function(e){return void 0!==e&&(ad.Array===e||sd[ud]===e)},ld=C,fd=Pe,dd=rr,hd=Oe,pd=Ll,vd=TypeError,gd=function(e,t){var r=arguments.length<2?pd(e):t;if(fd(r))return dd(ld(r,e));throw vd(hd(e)+" is not iterable")},yd=C,md=rr,_d=Ie,bd=function(e,t,r){var n,i;md(e);try{if(!(n=_d(e,"return"))){if("throw"===t)throw r;return r}n=yd(n,e)}catch(ZP){i=!0,n=ZP}if("throw"===t)throw r;if(i)throw n;return md(n),r},wd=Kt,kd=C,Sd=rr,xd=Oe,Td=cd,Rd=Dr,Od=ue,Ed=gd,Ld=Ll,Ad=bd,Pd=TypeError,Cd=function(e,t){this.stopped=e,this.result=t},jd=Cd.prototype,Id=function(e,t,r){var n,i,o,a,u,s,c,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=wd(t,l),g=function(e){return n&&Ad(n,"normal",e),new Cd(!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(!(i=Ld(e)))throw Pd(xd(e)+" is not iterable");if(Td(i)){for(o=0,a=Rd(e);a>o;o++)if((u=y(e[o]))&&Od(jd,u))return u;return new Cd(!1)}n=Ed(e,i)}for(s=d?e.next:n.next;!(c=kd(s,n)).done;){try{u=y(c.value)}catch(ZP){Ad(n,"throw",ZP)}if("object"==typeof u&&u&&Od(jd,u))return u}return new Cd(!1)},Ud=Qn,Md=Er,Nd=ue,Fd=Ts,Dd=Xs,Bd=function(e,t,r){for(var n=Gf(t),i=$f.f,o=Vf.f,a=0;a<n.length;a++){var u=n[a];qf(e,u)||r&&qf(r,u)||i(e,u,o(t,u))}},Hd=Di,zd=gr,qd=D,Gd=function(e,t){Qf(t)&&"cause"in t&&Yf(e,"cause",t.cause)},Vd=function(e,t,r,n){id&&(od?od(e,t):rd(e,"stack",nd(r,n)))},$d=Id,Qd=function(e,t){return void 0===e?arguments.length<2?"":t:Ud(e)},Yd=dt("toStringTag"),Wd=Error,Kd=[].push,Xd=function(e,t){var r,n=Nd(Jd,this);Dd?r=Dd(Wd(),n?Fd(this):Jd):(r=n?this:Hd(Jd),zd(r,Yd,"Error")),void 0!==t&&zd(r,"message",Qd(t)),Vd(r,Xd,r.stack,1),arguments.length>2&&Gd(r,arguments[2]);var i=[];return $d(e,Kd,{that:i}),zd(r,"errors",i),r};Dd?Dd(Xd,Wd):Bd(Xd,Wd,{name:!0});var Jd=Xd.prototype=Hd(Wd.prototype,{constructor:qd(1,Xd),message:qd(1,""),name:qd(1,"AggregateError")});Md({global:!0,constructor:!0,arity:2},{AggregateError:Xd});var Zd,eh,th,rh,nh="undefined"!=typeof process&&"process"==b(process),ih=ae,oh=oo,ah=L,uh=dt("species"),sh=function(e){var t=ih(e);ah&&t&&!t[uh]&&oh(t,uh,{configurable:!0,get:function(){return this}})},ch=ue,lh=TypeError,fh=function(e,t){if(ch(t,e))return e;throw lh("Incorrect invocation")},dh=_n,hh=Oe,ph=TypeError,vh=function(e){if(dh(e))return e;throw ph(hh(e)+" is not a constructor")},gh=rr,yh=vh,mh=V,_h=dt("species"),bh=function(e,t){var r,n=gh(e).constructor;return void 0===n||mh(r=gh(n)[_h])?t:yh(r)},wh=TypeError,kh=function(e,t){if(e<t)throw wh("Not enough arguments");return e},Sh=/(?:ipad|iphone|ipod).*applewebkit/i.test(se),xh=i,Th=f,Rh=Kt,Oh=O,Eh=Je,Lh=o,Ah=ki,Ph=xu,Ch=Rt,jh=kh,Ih=Sh,Uh=nh,Mh=xh.setImmediate,Nh=xh.clearImmediate,Fh=xh.process,Dh=xh.Dispatch,Bh=xh.Function,Hh=xh.MessageChannel,zh=xh.String,qh=0,Gh={},Vh="onreadystatechange";Lh((function(){Zd=xh.location}));var $h=function(e){if(Eh(Gh,e)){var t=Gh[e];delete Gh[e],t()}},Qh=function(e){return function(){$h(e)}},Yh=function(e){$h(e.data)},Wh=function(e){xh.postMessage(zh(e),Zd.protocol+"//"+Zd.host)};Mh&&Nh||(Mh=function(e){jh(arguments.length,1);var t=Oh(e)?e:Bh(e),r=Ph(arguments,1);return Gh[++qh]=function(){Th(t,void 0,r)},eh(qh),qh},Nh=function(e){delete Gh[e]},Uh?eh=function(e){Fh.nextTick(Qh(e))}:Dh&&Dh.now?eh=function(e){Dh.now(Qh(e))}:Hh&&!Ih?(rh=(th=new Hh).port2,th.port1.onmessage=Yh,eh=Rh(rh.postMessage,rh)):xh.addEventListener&&Oh(xh.postMessage)&&!xh.importScripts&&Zd&&"file:"!==Zd.protocol&&!Lh(Wh)?(eh=Wh,xh.addEventListener("message",Yh,!1)):eh=Vh in Ch("script")?function(e){Ah.appendChild(Ch("script"))[Vh]=function(){Ah.removeChild(this),$h(e)}}:function(e){setTimeout(Qh(e),0)});var Kh={set:Mh,clear:Nh},Xh=function(){this.head=null,this.tail=null};Xh.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 Jh,Zh,ep,tp,rp,np=Xh,ip=/ipad|iphone|ipod/i.test(se)&&"undefined"!=typeof Pebble,op=/web0s(?!.*chrome)/i.test(se),ap=i,up=Kt,sp=E.f,cp=Kh.set,lp=np,fp=Sh,dp=ip,hp=op,pp=nh,vp=ap.MutationObserver||ap.WebKitMutationObserver,gp=ap.document,yp=ap.process,mp=ap.Promise,_p=sp(ap,"queueMicrotask"),bp=_p&&_p.value;if(!bp){var wp=new lp,kp=function(){var e,t;for(pp&&(e=yp.domain)&&e.exit();t=wp.get();)try{t()}catch(ZP){throw wp.head&&Jh(),ZP}e&&e.enter()};fp||pp||hp||!vp||!gp?!dp&&mp&&mp.resolve?((tp=mp.resolve(void 0)).constructor=mp,rp=up(tp.then,tp),Jh=function(){rp(kp)}):pp?Jh=function(){yp.nextTick(kp)}:(cp=up(cp,ap),Jh=function(){cp(kp)}):(Zh=!0,ep=gp.createTextNode(""),new vp(kp).observe(ep,{characterData:!0}),Jh=function(){ep.data=Zh=!Zh}),bp=function(e){wp.head||Jh(),wp.add(e)}}var Sp=bp,xp=function(e){try{return{error:!1,value:e()}}catch(ZP){return{error:!0,value:ZP}}},Tp=i.Promise,Rp="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Op=!Rp&&!nh&&"object"==typeof window&&"object"==typeof document,Ep=i,Lp=Tp,Ap=O,Pp=$t,Cp=on,jp=dt,Ip=Op,Up=Rp,Mp=ve,Np=Lp&&Lp.prototype,Fp=jp("species"),Dp=!1,Bp=Ap(Ep.PromiseRejectionEvent),Hp={CONSTRUCTOR:Pp("Promise",(function(){var e=Cp(Lp),t=e!==String(Lp);if(!t&&66===Mp)return!0;if(!Np.catch||!Np.finally)return!0;if(!Mp||Mp<51||!/native code/.test(e)){var r=new Lp((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[Fp]=n,!(Dp=r.then((function(){}))instanceof n))return!0}return!t&&(Ip||Up)&&!Bp})),REJECTION_EVENT:Bp,SUBCLASSING:Dp},zp={},qp=Pe,Gp=TypeError,Vp=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw Gp("Bad Promise constructor");t=e,r=n})),this.resolve=qp(t),this.reject=qp(r)};zp.f=function(e){return new Vp(e)};var $p,Qp,Yp=Er,Wp=nh,Kp=i,Xp=C,Jp=no,Zp=Ao,ev=sh,tv=Pe,rv=O,nv=ee,iv=fh,ov=bh,av=Kh.set,uv=Sp,sv=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(ZP){}},cv=xp,lv=np,fv=$o,dv=Tp,hv=Hp,pv=zp,vv="Promise",gv=hv.CONSTRUCTOR,yv=hv.REJECTION_EVENT,mv=fv.getterFor(vv),_v=fv.set,bv=dv&&dv.prototype,wv=dv,kv=bv,Sv=Kp.TypeError,xv=Kp.document,Tv=Kp.process,Rv=pv.f,Ov=Rv,Ev=!!(xv&&xv.createEvent&&Kp.dispatchEvent),Lv="unhandledrejection",Av=function(e){var t;return!(!nv(e)||!rv(t=e.then))&&t},Pv=function(e,t){var r,n,i,o=t.value,a=1==t.state,u=a?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{u?(a||(2===t.rejection&&Mv(t),t.rejection=1),!0===u?r=o:(l&&l.enter(),r=u(o),l&&(l.exit(),i=!0)),r===e.promise?c(Sv("Promise-chain cycle")):(n=Av(r))?Xp(n,r,s,c):s(r)):c(o)}catch(ZP){l&&!i&&l.exit(),c(ZP)}},Cv=function(e,t){e.notified||(e.notified=!0,uv((function(){for(var r,n=e.reactions;r=n.get();)Pv(r,e);e.notified=!1,t&&!e.rejection&&Iv(e)})))},jv=function(e,t,r){var n,i;Ev?((n=xv.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Kp.dispatchEvent(n)):n={promise:t,reason:r},!yv&&(i=Kp["on"+e])?i(n):e===Lv&&sv("Unhandled promise rejection",r)},Iv=function(e){Xp(av,Kp,(function(){var t,r=e.facade,n=e.value;if(Uv(e)&&(t=cv((function(){Wp?Tv.emit("unhandledRejection",n,r):jv(Lv,r,n)})),e.rejection=Wp||Uv(e)?2:1,t.error))throw t.value}))},Uv=function(e){return 1!==e.rejection&&!e.parent},Mv=function(e){Xp(av,Kp,(function(){var t=e.facade;Wp?Tv.emit("rejectionHandled",t):jv("rejectionhandled",t,e.value)}))},Nv=function(e,t,r){return function(n){e(t,n,r)}},Fv=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Cv(e,!0))},Dv=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=Av(t);n?uv((function(){var r={done:!1};try{Xp(n,t,Nv(Dv,r,e),Nv(Fv,r,e))}catch(ZP){Fv(r,ZP,e)}})):(e.value=t,e.state=1,Cv(e,!1))}catch(ZP){Fv({done:!1},ZP,e)}}};gv&&(kv=(wv=function(e){iv(this,kv),tv(e),Xp($p,this);var t=mv(this);try{e(Nv(Dv,t),Nv(Fv,t))}catch(ZP){Fv(t,ZP)}}).prototype,($p=function(e){_v(this,{type:vv,done:!1,notified:!1,parent:!1,reactions:new lv,rejection:!1,state:0,value:void 0})}).prototype=Jp(kv,"then",(function(e,t){var r=mv(this),n=Rv(ov(this,wv));return r.parent=!0,n.ok=!rv(e)||e,n.fail=rv(t)&&t,n.domain=Wp?Tv.domain:void 0,0==r.state?r.reactions.add(n):uv((function(){Pv(n,r)})),n.promise})),Qp=function(){var e=new $p,t=mv(e);this.promise=e,this.resolve=Nv(Dv,t),this.reject=Nv(Fv,t)},pv.f=Rv=function(e){return e===wv||undefined===e?new Qp(e):Ov(e)}),Yp({global:!0,constructor:!0,wrap:!0,forced:gv},{Promise:wv}),Zp(wv,vv,!1,!0),ev(vv);var Bv=dt("iterator"),Hv=!1;try{var zv=0,qv={next:function(){return{done:!!zv++}},return:function(){Hv=!0}};qv[Bv]=function(){return this},Array.from(qv,(function(){throw 2}))}catch(ZP){}var Gv=function(e,t){if(!t&&!Hv)return!1;var r=!1;try{var n={};n[Bv]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(ZP){}return r},Vv=Tp,$v=Hp.CONSTRUCTOR||!Gv((function(e){Vv.all(e).then(void 0,(function(){}))})),Qv=C,Yv=Pe,Wv=zp,Kv=xp,Xv=Id;Er({target:"Promise",stat:!0,forced:$v},{all:function(e){var t=this,r=Wv.f(t),n=r.resolve,i=r.reject,o=Kv((function(){var r=Yv(t.resolve),o=[],a=0,u=1;Xv(e,(function(e){var s=a++,c=!1;u++,Qv(r,t,e).then((function(e){c||(c=!0,o[s]=e,--u||n(o))}),i)})),--u||n(o)}));return o.error&&i(o.value),r.promise}});var Jv=Er,Zv=Hp.CONSTRUCTOR;Tp&&Tp.prototype,Jv({target:"Promise",proto:!0,forced:Zv,real:!0},{catch:function(e){return this.then(void 0,e)}});var eg=C,tg=Pe,rg=zp,ng=xp,ig=Id;Er({target:"Promise",stat:!0,forced:$v},{race:function(e){var t=this,r=rg.f(t),n=r.reject,i=ng((function(){var i=tg(t.resolve);ig(e,(function(e){eg(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var og=C,ag=zp;Er({target:"Promise",stat:!0,forced:Hp.CONSTRUCTOR},{reject:function(e){var t=ag.f(this);return og(t.reject,void 0,e),t.promise}});var ug=rr,sg=ee,cg=zp,lg=function(e,t){if(ug(e),sg(t)&&t.constructor===e)return t;var r=cg.f(e);return(0,r.resolve)(t),r.promise},fg=Er,dg=Tp,hg=Hp.CONSTRUCTOR,pg=lg,vg=ae("Promise"),gg=!hg;fg({target:"Promise",stat:!0,forced:true},{resolve:function(e){return pg(gg&&this===vg?dg:this,e)}});var yg=C,mg=Pe,_g=zp,bg=xp,wg=Id;Er({target:"Promise",stat:!0,forced:$v},{allSettled:function(e){var t=this,r=_g.f(t),n=r.resolve,i=r.reject,o=bg((function(){var r=mg(t.resolve),i=[],o=0,a=1;wg(e,(function(e){var u=o++,s=!1;a++,yg(r,t,e).then((function(e){s||(s=!0,i[u]={status:"fulfilled",value:e},--a||n(i))}),(function(e){s||(s=!0,i[u]={status:"rejected",reason:e},--a||n(i))}))})),--a||n(i)}));return o.error&&i(o.value),r.promise}});var kg=C,Sg=Pe,xg=ae,Tg=zp,Rg=xp,Og=Id,Eg="No one promise resolved";Er({target:"Promise",stat:!0,forced:$v},{any:function(e){var t=this,r=xg("AggregateError"),n=Tg.f(t),i=n.resolve,o=n.reject,a=Rg((function(){var n=Sg(t.resolve),a=[],u=0,s=1,c=!1;Og(e,(function(e){var l=u++,f=!1;s++,kg(n,t,e).then((function(e){f||c||(c=!0,i(e))}),(function(e){f||c||(f=!0,a[l]=e,--s||o(new r(a,Eg)))}))})),--s||o(new r(a,Eg))}));return a.error&&o(a.value),n.promise}});var Lg=Er,Ag=Tp,Pg=o,Cg=ae,jg=O,Ig=bh,Ug=lg,Mg=Ag&&Ag.prototype;Lg({target:"Promise",proto:!0,real:!0,forced:!!Ag&&Pg((function(){Mg.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=Ig(this,Cg("Promise")),r=jg(e);return this.then(r?function(r){return Ug(t,e()).then((function(){return r}))}:e,r?function(r){return Ug(t,e()).then((function(){throw r}))}:e)}});var Ng=te.Promise,Fg=zp,Dg=xp;Er({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Fg.f(this),r=Dg(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var Bg=r(Ng),Hg=Er,zg=Ar,qg=g([].reverse),Gg=[1,2];Hg({target:"Array",proto:!0,forced:String(Gg)===String(Gg.reverse())},{reverse:function(){return zg(this)&&(this.length=this.length),qg(this)}});var Vg=Nl("Array").reverse,$g=ue,Qg=Vg,Yg=Array.prototype,Wg=r((function(e){var t=e.reverse;return e===Yg||$g(Yg,e)&&t===Yg.reverse?Qg:t})),Kg=Er,Xg=Ar,Jg=_n,Zg=ee,ey=Jn,ty=Dr,ry=X,ny=Vr,iy=dt,oy=xu,ay=An("slice"),uy=iy("species"),sy=Array,cy=Math.max;Kg({target:"Array",proto:!0,forced:!ay},{slice:function(e,t){var r,n,i,o=ry(this),a=ty(o),u=ey(e,a),s=ey(void 0===t?a:t,a);if(Xg(o)&&(r=o.constructor,(Jg(r)&&(r===sy||Xg(r.prototype))||Zg(r)&&null===(r=r[uy]))&&(r=void 0),r===sy||void 0===r))return oy(o,u,s);for(n=new(void 0===r?sy:r)(cy(s-u,0)),i=0;u<s;u++,i++)u in o&&ny(n,i,o[u]);return n.length=i,n}});var ly=Nl("Array").slice,fy=ue,dy=ly,hy=Array.prototype,py=r((function(e){var t=e.slice;return e===hy||fy(hy,e)&&t===hy.slice?dy:t})),vy=g,gy=Pe,yy=ee,my=Je,_y=xu,by=a,wy=Function,ky=vy([].concat),Sy=vy([].join),xy={},Ty=by?wy.bind:function(e){var t=gy(this),r=t.prototype,n=_y(arguments,1),i=function(){var r=ky(n,_y(arguments));return this instanceof i?function(e,t,r){if(!my(xy,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";xy[t]=wy("C,a","return new C("+Sy(n,",")+")")}return xy[t](e,r)}(t,r.length,r):t.apply(e,r)};return yy(r)&&(i.prototype=r),i},Ry=Ty;Er({target:"Function",proto:!0,forced:Function.bind!==Ry},{bind:Ry});var Oy=Nl("Function").bind,Ey=ue,Ly=Oy,Ay=Function.prototype,Py=r((function(e){var t=e.bind;return e===Ay||Ey(Ay,e)&&t===Ay.bind?Ly:t})),Cy=Er,jy=f,Iy=Ty,Uy=vh,My=rr,Ny=ee,Fy=Di,Dy=o,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){Uy(e),My(t);var r=arguments.length<3?e:Uy(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 i=r.prototype,o=Fy(Ny(i)?i:Hy),a=jy(e,o,t);return Ny(a)?a:o}});var $y=r(te.Reflect.construct);Er({target:"Array",stat:!0},{isArray:Ar});var Qy=r(te.Array.isArray),Yy=rr,Wy=bd,Ky=Kt,Xy=C,Jy=We,Zy=function(e,t,r,n){try{return n?t(Yy(r)[0],r[1]):t(r)}catch(ZP){Wy(e,"throw",ZP)}},em=cd,tm=_n,rm=Dr,nm=Vr,im=gd,om=Ll,am=Array,um=function(e){var t=Jy(e),r=tm(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Ky(i,n>2?arguments[2]:void 0));var a,u,s,c,l,f,d=om(t),h=0;if(!d||this===am&&em(d))for(a=rm(t),u=r?new this(a):am(a);a>h;h++)f=o?i(t[h],h):t[h],nm(u,h,f);else for(l=(c=im(t,d)).next,u=r?new this:[];!(s=Xy(l,c)).done;h++)f=o?Zy(c,i,[s.value,h],!0):s.value,nm(u,h,f);return u.length=h,u},sm=um;Er({target:"Array",stat:!0,forced:!Gv((function(e){Array.from(e)}))},{from:sm});var cm=r(te.Array.from),lm=r(ao.f("toPrimitive"));function fm(e,t){var r=jl(e);if(Il){var n=Il(e);t&&(n=zl(n).call(n,(function(t){return Xl(e,t).enumerable}))),r.push.apply(r,n)}return r}function dm(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?lf(r=fm(Object(i),!0)).call(r,(function(t){_m(e,t,i[t])})):wf?Ef(e,wf(i)):lf(n=fm(Object(i))).call(n,(function(t){Uf(e,t,Xl(i,t))}))}return e}function hm(){hm=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Uf||function(e,t,r){e[t]=r.value},i="function"==typeof Sl?Sl:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Uf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(O){s=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var o=t&&t.prototype instanceof d?t:d,a=Nf(o.prototype),u=new x(i||[]);return n(a,"_invoke",{value:b(e,r,u)}),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={};s(v,o,(function(){return this}));var g=Hf&&Hf(Hf(T([])));g&&g!==t&&r.call(g,o)&&(v=g);var y=p.prototype=d.prototype=Nf(v);function m(e){var t;lf(t=["next","throw","return"]).call(t,(function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(n,o,a,u){var s=l(e[n],e,o);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==kl(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,u)}),(function(e){i("throw",e,a,u)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,u)}))}u(s.arg)}var o;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return o=o?o.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],lf(e).call(e,k,this),this.reset(!0)}function T(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next: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=s(p,u,"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 zf?zf(e,p):(e.__proto__=p,s(e,u,"GeneratorFunction")),e.prototype=Nf(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),s(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Bg);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),s(y,u,"Generator"),s(y,o,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return Wg(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,x.prototype={constructor:x,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,lf(t=this.tryEntries).call(t,S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+py(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function pm(e,t,r,n,i,o,a){try{var u=e[o](a),s=u.value}catch(ZP){return void r(ZP)}u.done?t(s):Bg.resolve(s).then(n,i)}function vm(e){return function(){var t=this,r=arguments;return new Bg((function(n,i){var o=e.apply(t,r);function a(e){pm(o,n,i,a,u,"next",e)}function u(e){pm(o,n,i,a,u,"throw",e)}a(void 0)}))}}function gm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ym(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),Uf(e,Lm(n.key),n)}}function mm(e,t,r){return t&&ym(e.prototype,t),r&&ym(e,r),Uf(e,"prototype",{writable:!1}),e}function _m(e,t,r){return(t=Lm(t))in e?Uf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Nf(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Uf(e,"prototype",{writable:!1}),t&&km(e,t)}function wm(e){var t;return(wm=zf?Py(t=Hf).call(t):function(e){return e.__proto__||Hf(e)})(e)}function km(e,t){var r;return(km=zf?Py(r=zf).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 xm(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=wm(e);if(t){var i=wm(this).constructor;r=$y(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===kl(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 Tm(e,t){return function(e){if(Qy(e))return e}(e)||function(e,t){var r=null==e?null:void 0!==Sl&&Al(e)||e["@@iterator"];if(null!=r){var n,i,o,a,u=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(l){c=!0,i=l}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(e,t)||Om(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rm(e){return function(e){if(Qy(e))return Em(e)}(e)||function(e){if(void 0!==Sl&&null!=Al(e)||null!=e["@@iterator"])return cm(e)}(e)||Om(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 Om(e,t){var r;if(e){if("string"==typeof e)return Em(e,t);var n=py(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?cm(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Em(e,t):void 0}}function Em(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 Lm(e){var t=function(e,t){if("object"!==kl(e)||null===e)return e;var r=e[lm];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==kl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kl(t)?t:String(t)}var Am=Nl("Array").concat,Pm=ue,Cm=Am,jm=Array.prototype,Im=r((function(e){var t=e.concat;return e===jm||Pm(jm,e)&&t===jm.concat?Cm:t})),Um=o,Mm=dt("iterator"),Nm=!Um((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[Mm]||"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})),Fm=L,Dm=g,Bm=C,Hm=o,zm=pi,qm=to,Gm=j,Vm=We,$m=G,Qm=Object.assign,Ym=Object.defineProperty,Wm=Dm([].concat),Km=!Qm||Hm((function(){if(Fm&&1!==Qm({b:1},Qm(Ym({},"a",{enumerable:!0,get:function(){Ym(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!=Qm({},e)[r]||zm(Qm({},t)).join("")!=n}))?function(e,t){for(var r=Vm(e),n=arguments.length,i=1,o=qm.f,a=Gm.f;n>i;)for(var u,s=$m(arguments[i++]),c=o?Wm(zm(s),o(s)):zm(s),l=c.length,f=0;l>f;)u=c[f++],Fm&&!Bm(a,s,u)||(r[u]=s[u]);return r}:Qm,Xm=g,Jm=2147483647,Zm=/[^\0-\u007E]/,e_=/[.\u3002\uFF0E\uFF61]/g,t_="Overflow: input needs wider integers to process",r_=RangeError,n_=Xm(e_.exec),i_=Math.floor,o_=String.fromCharCode,a_=Xm("".charCodeAt),u_=Xm([].join),s_=Xm([].push),c_=Xm("".replace),l_=Xm("".split),f_=Xm("".toLowerCase),d_=function(e){return e+22+75*(e<26)},h_=function(e,t,r){var n=0;for(e=r?i_(e/700):e>>1,e+=i_(e/t);e>455;)e=i_(e/35),n+=36;return i_(n+36*e/(e+38))},p_=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=a_(e,r++);if(i>=55296&&i<=56319&&r<n){var o=a_(e,r++);56320==(64512&o)?s_(t,((1023&i)<<10)+(1023&o)+65536):(s_(t,i),r--)}else s_(t,i)}return t}(e);var r,n,i=e.length,o=128,a=0,u=72;for(r=0;r<e.length;r++)(n=e[r])<128&&s_(t,o_(n));var s=t.length,c=s;for(s&&s_(t,"-");c<i;){var l=Jm;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<l&&(l=n);var f=c+1;if(l-o>i_((Jm-a)/f))throw r_(t_);for(a+=(l-o)*f,o=l,r=0;r<e.length;r++){if((n=e[r])<o&&++a>Jm)throw r_(t_);if(n==o){for(var d=a,h=36;;){var p=h<=u?1:h>=u+26?26:h-u;if(d<p)break;var v=d-p,g=36-p;s_(t,o_(d_(p+v%g))),d=i_(v/g),h+=36}s_(t,o_(d_(d))),u=h_(a,f,c==s),a=0,c++}}a++,o++}return u_(t,"")},v_=no,g_=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:v_(e,n,t[n],r);return e},y_=Wi,m_=Math.floor,__=function(e,t){var r=e.length,n=m_(r/2);return r<8?b_(e,t):w_(e,__(y_(e,0,n),t),__(y_(e,n),t),t)},b_=function(e,t){for(var r,n,i=e.length,o=1;o<i;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},w_=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,u=0;a<i||u<o;)e[a+u]=a<i&&u<o?n(t[a],r[u])<=0?t[a++]:r[u++]:a<i?t[a++]:r[u++];return e},k_=__,S_=Er,x_=i,T_=C,R_=g,O_=L,E_=Nm,L_=no,A_=oo,P_=g_,C_=Ao,j_=zs,I_=$o,U_=fh,M_=O,N_=Je,F_=Kt,D_=en,B_=rr,H_=ee,z_=Qn,q_=Di,G_=D,V_=gd,$_=Ll,Q_=kh,Y_=k_,W_=dt("iterator"),K_="URLSearchParams",X_=K_+"Iterator",J_=I_.set,Z_=I_.getterFor(K_),eb=I_.getterFor(X_),tb=Object.getOwnPropertyDescriptor,rb=function(e){if(!O_)return x_[e];var t=tb(x_,e);return t&&t.value},nb=rb("fetch"),ib=rb("Request"),ob=rb("Headers"),ab=ib&&ib.prototype,ub=ob&&ob.prototype,sb=x_.RegExp,cb=x_.TypeError,lb=x_.decodeURIComponent,fb=x_.encodeURIComponent,db=R_("".charAt),hb=R_([].join),pb=R_([].push),vb=R_("".replace),gb=R_([].shift),yb=R_([].splice),mb=R_("".split),_b=R_("".slice),bb=/\+/g,wb=Array(4),kb=function(e){return wb[e-1]||(wb[e-1]=sb("((?:%[\\da-f]{2}){"+e+"})","gi"))},Sb=function(e){try{return lb(e)}catch(ZP){return e}},xb=function(e){var t=vb(e,bb," "),r=4;try{return lb(t)}catch(ZP){for(;r;)t=vb(t,kb(r--),Sb);return t}},Tb=/[!'()~]|%20/g,Rb={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Ob=function(e){return Rb[e]},Eb=function(e){return vb(fb(e),Tb,Ob)},Lb=j_((function(e,t){J_(this,{type:X_,iterator:V_(Z_(e).entries),kind:t})}),"Iterator",(function(){var e=eb(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),Ab=function(e){this.entries=[],this.url=null,void 0!==e&&(H_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===db(e,0)?_b(e,1):e:z_(e)))};Ab.prototype={type:K_,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,u,s=$_(e);if(s)for(r=(t=V_(e,s)).next;!(n=T_(r,t)).done;){if(o=(i=V_(B_(n.value))).next,(a=T_(o,i)).done||(u=T_(o,i)).done||!T_(o,i).done)throw cb("Expected sequence with length 2");pb(this.entries,{key:z_(a.value),value:z_(u.value)})}else for(var c in e)N_(e,c)&&pb(this.entries,{key:c,value:z_(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=mb(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=mb(t,"="),pb(this.entries,{key:xb(gb(r)),value:xb(hb(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],pb(r,Eb(e.key)+"="+Eb(e.value));return hb(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Pb=function(){U_(this,Cb);var e=J_(this,new Ab(arguments.length>0?arguments[0]:void 0));O_||(this.length=e.entries.length)},Cb=Pb.prototype;if(P_(Cb,{append:function(e,t){Q_(arguments.length,2);var r=Z_(this);pb(r.entries,{key:z_(e),value:z_(t)}),O_||this.length++,r.updateURL()},delete:function(e){Q_(arguments.length,1);for(var t=Z_(this),r=t.entries,n=z_(e),i=0;i<r.length;)r[i].key===n?yb(r,i,1):i++;O_||(this.length=r.length),t.updateURL()},get:function(e){Q_(arguments.length,1);for(var t=Z_(this).entries,r=z_(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){Q_(arguments.length,1);for(var t=Z_(this).entries,r=z_(e),n=[],i=0;i<t.length;i++)t[i].key===r&&pb(n,t[i].value);return n},has:function(e){Q_(arguments.length,1);for(var t=Z_(this).entries,r=z_(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){Q_(arguments.length,1);for(var r,n=Z_(this),i=n.entries,o=!1,a=z_(e),u=z_(t),s=0;s<i.length;s++)(r=i[s]).key===a&&(o?yb(i,s--,1):(o=!0,r.value=u));o||pb(i,{key:a,value:u}),O_||(this.length=i.length),n.updateURL()},sort:function(){var e=Z_(this);Y_(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=Z_(this).entries,n=F_(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new Lb(this,"keys")},values:function(){return new Lb(this,"values")},entries:function(){return new Lb(this,"entries")}},{enumerable:!0}),L_(Cb,W_,Cb.entries,{name:"entries"}),L_(Cb,"toString",(function(){return Z_(this).serialize()}),{enumerable:!0}),O_&&A_(Cb,"size",{get:function(){return Z_(this).entries.length},configurable:!0,enumerable:!0}),C_(Pb,K_),S_({global:!0,constructor:!0,forced:!E_},{URLSearchParams:Pb}),!E_&&M_(ob)){var jb=R_(ub.has),Ib=R_(ub.set),Ub=function(e){if(H_(e)){var t,r=e.body;if(D_(r)===K_)return t=e.headers?new ob(e.headers):new ob,jb(t,"content-type")||Ib(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),q_(e,{body:G_(0,z_(r)),headers:G_(0,t)})}return e};if(M_(nb)&&S_({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return nb(e,arguments.length>1?Ub(arguments[1]):{})}}),M_(ib)){var Mb=function(e){return U_(this,ab),new ib(e,arguments.length>1?Ub(arguments[1]):{})};ab.constructor=Mb,Mb.prototype=ab,S_({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Mb})}}var Nb,Fb=Er,Db=L,Bb=Nm,Hb=i,zb=Kt,qb=g,Gb=no,Vb=oo,$b=fh,Qb=Je,Yb=Km,Wb=um,Kb=Wi,Xb=fl.codeAt,Jb=function(e){var t,r,n=[],i=l_(c_(f_(e),e_,"."),".");for(t=0;t<i.length;t++)r=i[t],s_(n,n_(Zm,r)?"xn--"+p_(r):r);return u_(n,".")},Zb=Qn,ew=Ao,tw=kh,rw={URLSearchParams:Pb,getState:Z_},nw=$o,iw=nw.set,ow=nw.getterFor("URL"),aw=rw.URLSearchParams,uw=rw.getState,sw=Hb.URL,cw=Hb.TypeError,lw=Hb.parseInt,fw=Math.floor,dw=Math.pow,hw=qb("".charAt),pw=qb(/./.exec),vw=qb([].join),gw=qb(1..toString),yw=qb([].pop),mw=qb([].push),_w=qb("".replace),bw=qb([].shift),ww=qb("".split),kw=qb("".slice),Sw=qb("".toLowerCase),xw=qb([].unshift),Tw="Invalid scheme",Rw="Invalid host",Ow="Invalid port",Ew=/[a-z]/i,Lw=/[\d+-.a-z]/i,Aw=/\d/,Pw=/^0x/i,Cw=/^[0-7]+$/,jw=/^\d+$/,Iw=/^[\da-f]+$/i,Uw=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Mw=/[\0\t\n\r #/:<>?@[\\\]^|]/,Nw=/^[\u0000-\u0020]+/,Fw=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Dw=/[\t\n\r]/g,Bw=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)xw(t,e%256),e=fw(e/256);return vw(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=gw(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},Hw={},zw=Yb({},Hw,{" ":1,'"':1,"<":1,">":1,"`":1}),qw=Yb({},zw,{"#":1,"?":1,"{":1,"}":1}),Gw=Yb({},qw,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Vw=function(e,t){var r=Xb(e,0);return r>32&&r<127&&!Qb(t,e)?e:encodeURIComponent(e)},$w={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Qw=function(e,t){var r;return 2==e.length&&pw(Ew,hw(e,0))&&(":"==(r=hw(e,1))||!t&&"|"==r)},Yw=function(e){var t;return e.length>1&&Qw(kw(e,0,2))&&(2==e.length||"/"===(t=hw(e,2))||"\\"===t||"?"===t||"#"===t)},Ww=function(e){return"."===e||"%2e"===Sw(e)},Kw={},Xw={},Jw={},Zw={},ek={},tk={},rk={},nk={},ik={},ok={},ak={},uk={},sk={},ck={},lk={},fk={},dk={},hk={},pk={},vk={},gk={},yk=function(e,t,r){var n,i,o,a=Zb(e);if(t){if(i=this.parse(a))throw cw(i);this.searchParams=null}else{if(void 0!==r&&(n=new yk(r,!0)),i=this.parse(a,null,n))throw cw(i);(o=uw(new aw)).bindURL(this),this.searchParams=o}};yk.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,u,s=this,c=t||Kw,l=0,f="",d=!1,h=!1,p=!1;for(e=Zb(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=_w(e,Nw,""),e=_w(e,Fw,"$1")),e=_w(e,Dw,""),n=Wb(e);l<=n.length;){switch(i=n[l],c){case Kw:if(!i||!pw(Ew,i)){if(t)return Tw;c=Jw;continue}f+=Sw(i),c=Xw;break;case Xw:if(i&&(pw(Lw,i)||"+"==i||"-"==i||"."==i))f+=Sw(i);else{if(":"!=i){if(t)return Tw;f="",c=Jw,l=0;continue}if(t&&(s.isSpecial()!=Qb($w,f)||"file"==f&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=f,t)return void(s.isSpecial()&&$w[s.scheme]==s.port&&(s.port=null));f="","file"==s.scheme?c=ck:s.isSpecial()&&r&&r.scheme==s.scheme?c=Zw:s.isSpecial()?c=nk:"/"==n[l+1]?(c=ek,l++):(s.cannotBeABaseURL=!0,mw(s.path,""),c=pk)}break;case Jw:if(!r||r.cannotBeABaseURL&&"#"!=i)return Tw;if(r.cannotBeABaseURL&&"#"==i){s.scheme=r.scheme,s.path=Kb(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,c=gk;break}c="file"==r.scheme?ck:tk;continue;case Zw:if("/"!=i||"/"!=n[l+1]){c=tk;continue}c=ik,l++;break;case ek:if("/"==i){c=ok;break}c=hk;continue;case tk:if(s.scheme=r.scheme,i==Nb)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=Kb(r.path),s.query=r.query;else if("/"==i||"\\"==i&&s.isSpecial())c=rk;else if("?"==i)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=Kb(r.path),s.query="",c=vk;else{if("#"!=i){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=Kb(r.path),s.path.length--,c=hk;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=Kb(r.path),s.query=r.query,s.fragment="",c=gk}break;case rk:if(!s.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,c=hk;continue}c=ok}else c=ik;break;case nk:if(c=ik,"/"!=i||"/"!=hw(f,l+1))continue;l++;break;case ik:if("/"!=i&&"\\"!=i){c=ok;continue}break;case ok:if("@"==i){d&&(f="%40"+f),d=!0,o=Wb(f);for(var v=0;v<o.length;v++){var g=o[v];if(":"!=g||p){var y=Vw(g,Gw);p?s.password+=y:s.username+=y}else p=!0}f=""}else if(i==Nb||"/"==i||"?"==i||"#"==i||"\\"==i&&s.isSpecial()){if(d&&""==f)return"Invalid authority";l-=Wb(f).length+1,f="",c=ak}else f+=i;break;case ak:case uk:if(t&&"file"==s.scheme){c=fk;continue}if(":"!=i||h){if(i==Nb||"/"==i||"?"==i||"#"==i||"\\"==i&&s.isSpecial()){if(s.isSpecial()&&""==f)return Rw;if(t&&""==f&&(s.includesCredentials()||null!==s.port))return;if(a=s.parseHost(f))return a;if(f="",c=dk,t)return;continue}"["==i?h=!0:"]"==i&&(h=!1),f+=i}else{if(""==f)return Rw;if(a=s.parseHost(f))return a;if(f="",c=sk,t==uk)return}break;case sk:if(!pw(Aw,i)){if(i==Nb||"/"==i||"?"==i||"#"==i||"\\"==i&&s.isSpecial()||t){if(""!=f){var m=lw(f,10);if(m>65535)return Ow;s.port=s.isSpecial()&&m===$w[s.scheme]?null:m,f=""}if(t)return;c=dk;continue}return Ow}f+=i;break;case ck:if(s.scheme="file","/"==i||"\\"==i)c=lk;else{if(!r||"file"!=r.scheme){c=hk;continue}if(i==Nb)s.host=r.host,s.path=Kb(r.path),s.query=r.query;else if("?"==i)s.host=r.host,s.path=Kb(r.path),s.query="",c=vk;else{if("#"!=i){Yw(vw(Kb(n,l),""))||(s.host=r.host,s.path=Kb(r.path),s.shortenPath()),c=hk;continue}s.host=r.host,s.path=Kb(r.path),s.query=r.query,s.fragment="",c=gk}}break;case lk:if("/"==i||"\\"==i){c=fk;break}r&&"file"==r.scheme&&!Yw(vw(Kb(n,l),""))&&(Qw(r.path[0],!0)?mw(s.path,r.path[0]):s.host=r.host),c=hk;continue;case fk:if(i==Nb||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&Qw(f))c=hk;else if(""==f){if(s.host="",t)return;c=dk}else{if(a=s.parseHost(f))return a;if("localhost"==s.host&&(s.host=""),t)return;f="",c=dk}continue}f+=i;break;case dk:if(s.isSpecial()){if(c=hk,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=Nb&&(c=hk,"/"!=i))continue}else s.fragment="",c=gk;else s.query="",c=vk;break;case hk:if(i==Nb||"/"==i||"\\"==i&&s.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(u=Sw(u=f))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(s.shortenPath(),"/"==i||"\\"==i&&s.isSpecial()||mw(s.path,"")):Ww(f)?"/"==i||"\\"==i&&s.isSpecial()||mw(s.path,""):("file"==s.scheme&&!s.path.length&&Qw(f)&&(s.host&&(s.host=""),f=hw(f,0)+":"),mw(s.path,f)),f="","file"==s.scheme&&(i==Nb||"?"==i||"#"==i))for(;s.path.length>1&&""===s.path[0];)bw(s.path);"?"==i?(s.query="",c=vk):"#"==i&&(s.fragment="",c=gk)}else f+=Vw(i,qw);break;case pk:"?"==i?(s.query="",c=vk):"#"==i?(s.fragment="",c=gk):i!=Nb&&(s.path[0]+=Vw(i,Hw));break;case vk:t||"#"!=i?i!=Nb&&("'"==i&&s.isSpecial()?s.query+="%27":s.query+="#"==i?"%23":Vw(i,Hw)):(s.fragment="",c=gk);break;case gk:i!=Nb&&(s.fragment+=Vw(i,zw))}l++}},parseHost:function(e){var t,r,n;if("["==hw(e,0)){if("]"!=hw(e,e.length-1))return Rw;if(t=function(e){var t,r,n,i,o,a,u,s=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,d=function(){return hw(e,f)};if(":"==d()){if(":"!=hw(e,1))return;f+=2,l=++c}for(;d();){if(8==c)return;if(":"!=d()){for(t=r=0;r<4&&pw(Iw,d());)t=16*t+lw(d(),16),f++,r++;if("."==d()){if(0==r)return;if(f-=r,c>6)return;for(n=0;d();){if(i=null,n>0){if(!("."==d()&&n<4))return;f++}if(!pw(Aw,d()))return;for(;pw(Aw,d());){if(o=lw(d(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}s[c]=256*s[c]+i,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;s[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!=c&&a>0;)u=s[c],s[c--]=s[l+a-1],s[l+--a]=u;else if(8!=c)return;return s}(kw(e,1,-1)),!t)return Rw;this.host=t}else if(this.isSpecial()){if(e=Jb(e),pw(Uw,e))return Rw;if(t=function(e){var t,r,n,i,o,a,u,s=ww(e,".");if(s.length&&""==s[s.length-1]&&s.length--,(t=s.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=s[n]))return e;if(o=10,i.length>1&&"0"==hw(i,0)&&(o=pw(Pw,i)?16:8,i=kw(i,8==o?1:2)),""===i)a=0;else{if(!pw(10==o?jw:8==o?Cw:Iw,i))return e;a=lw(i,o)}mw(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=dw(256,5-t))return null}else if(a>255)return null;for(u=yw(r),n=0;n<r.length;n++)u+=r[n]*dw(256,3-n);return u}(e),null===t)return Rw;this.host=t}else{if(pw(Mw,e))return Rw;for(t="",r=Wb(e),n=0;n<r.length;n++)t+=Vw(r[n],Hw);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return Qb($w,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&Qw(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,u=e.query,s=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=Bw(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+vw(a,"/"):"",null!==u&&(c+="?"+u),null!==s&&(c+="#"+s),c},setHref:function(e){var t=this.parse(e);if(t)throw cw(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new mk(e.path[0]).origin}catch(ZP){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Bw(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Zb(e)+":",Kw)},getUsername:function(){return this.username},setUsername:function(e){var t=Wb(Zb(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=Vw(t[r],Gw)}},getPassword:function(){return this.password},setPassword:function(e){var t=Wb(Zb(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=Vw(t[r],Gw)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Bw(e):Bw(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,ak)},getHostname:function(){var e=this.host;return null===e?"":Bw(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,uk)},getPort:function(){var e=this.port;return null===e?"":Zb(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=Zb(e))?this.port=null:this.parse(e,sk))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+vw(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,dk))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=Zb(e))?this.query=null:("?"==hw(e,0)&&(e=kw(e,1)),this.query="",this.parse(e,vk)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=Zb(e))?("#"==hw(e,0)&&(e=kw(e,1)),this.fragment="",this.parse(e,gk)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var mk=function(e){var t=$b(this,_k),r=tw(arguments.length,1)>1?arguments[1]:void 0,n=iw(t,new yk(e,!1,r));Db||(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())},_k=mk.prototype,bk=function(e,t){return{get:function(){return ow(this)[e]()},set:t&&function(e){return ow(this)[t](e)},configurable:!0,enumerable:!0}};if(Db&&(Vb(_k,"href",bk("serialize","setHref")),Vb(_k,"origin",bk("getOrigin")),Vb(_k,"protocol",bk("getProtocol","setProtocol")),Vb(_k,"username",bk("getUsername","setUsername")),Vb(_k,"password",bk("getPassword","setPassword")),Vb(_k,"host",bk("getHost","setHost")),Vb(_k,"hostname",bk("getHostname","setHostname")),Vb(_k,"port",bk("getPort","setPort")),Vb(_k,"pathname",bk("getPathname","setPathname")),Vb(_k,"search",bk("getSearch","setSearch")),Vb(_k,"searchParams",bk("getSearchParams")),Vb(_k,"hash",bk("getHash","setHash"))),Gb(_k,"toJSON",(function(){return ow(this).serialize()}),{enumerable:!0}),Gb(_k,"toString",(function(){return ow(this).serialize()}),{enumerable:!0}),sw){var wk=sw.createObjectURL,kk=sw.revokeObjectURL;wk&&Gb(mk,"createObjectURL",zb(wk,sw)),kk&&Gb(mk,"revokeObjectURL",zb(kk,sw))}ew(mk,"URL"),Fb({global:!0,constructor:!0,forced:!Bb,sham:!Db},{URL:mk});var Sk=Er,xk=o,Tk=kh,Rk=Qn,Ok=Nm,Ek=ae("URL");Sk({target:"URL",stat:!0,forced:!(Ok&&xk((function(){Ek.canParse()})))},{canParse:function(e){var t=Tk(arguments.length,1),r=Rk(e),n=t<2||void 0===arguments[1]?void 0:Rk(arguments[1]);try{return!!new Ek(r,n)}catch(ZP){return!1}}});var Lk=r(te.URL),Ak=Er,Pk=ni.indexOf,Ck=Zl,jk=S([].indexOf),Ik=!!jk&&1/jk([1],1,-0)<0;Ak({target:"Array",proto:!0,forced:Ik||!Ck("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return Ik?jk(this,e,t)||0:Pk(this,e,t)}});var Uk=Nl("Array").indexOf,Mk=ue,Nk=Uk,Fk=Array.prototype,Dk=r((function(e){var t=e.indexOf;return e===Fk||Mk(Fk,e)&&t===Fk.indexOf?Nk:t})),Bk=Er,Hk=ea.find,zk="find",qk=!0;zk in[]&&Array(1)[zk]((function(){qk=!1})),Bk({target:"Array",proto:!0,forced:qk},{find:function(e){return Hk(this,e,arguments.length>1?arguments[1]:void 0)}});var Gk=Nl("Array").find,Vk=ue,$k=Gk,Qk=Array.prototype,Yk=r((function(e){var t=e.find;return e===Qk||Vk(Qk,e)&&t===Qk.find?$k:t})),Wk=L,Kk=Ar,Xk=TypeError,Jk=Object.getOwnPropertyDescriptor,Zk=Wk&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(ZP){return ZP instanceof TypeError}}(),eS=Oe,tS=TypeError,rS=function(e,t){if(!delete e[t])throw tS("Cannot delete property "+eS(t)+" of "+eS(e))},nS=Er,iS=We,oS=Jn,aS=Ir,uS=Dr,sS=Zk?function(e,t){if(Kk(e)&&!Jk(e,"length").writable)throw Xk("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},cS=Hr,lS=Rn,fS=Vr,dS=rS,hS=An("splice"),pS=Math.max,vS=Math.min;nS({target:"Array",proto:!0,forced:!hS},{splice:function(e,t){var r,n,i,o,a,u,s=iS(this),c=uS(s),l=oS(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=vS(pS(aS(t),0),c-l)),cS(c+r-n),i=lS(s,n),o=0;o<n;o++)(a=l+o)in s&&fS(i,o,s[a]);if(i.length=n,r<n){for(o=l;o<c-n;o++)u=o+r,(a=o+n)in s?s[u]=s[a]:dS(s,u);for(o=c;o>c-n+r;o--)dS(s,o-1)}else if(r>n)for(o=c-n;o>l;o--)u=o+r-1,(a=o+n-1)in s?s[u]=s[a]:dS(s,u);for(o=0;o<r;o++)s[o+l]=arguments[o+2];return sS(s,c-n+r),i}});var gS=Nl("Array").splice,yS=ue,mS=gS,_S=Array.prototype,bS=r((function(e){var t=e.splice;return e===_S||yS(_S,e)&&t===_S.splice?mS:t}));Er({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var wS=r(te.Number.isNaN),kS="\t\n\v\f\r                 \u2028\u2029\ufeff",SS=Y,xS=Qn,TS=kS,RS=g("".replace),OS=RegExp("^["+TS+"]+"),ES=RegExp("(^|[^"+TS+"])["+TS+"]+$"),LS=function(e){return function(t){var r=xS(SS(t));return 1&e&&(r=RS(r,OS,"")),2&e&&(r=RS(r,ES,"$1")),r}},AS={start:LS(1),end:LS(2),trim:LS(3)},PS=i,CS=o,jS=g,IS=Qn,US=AS.trim,MS=kS,NS=PS.parseInt,FS=PS.Symbol,DS=FS&&FS.iterator,BS=/^[+-]?0x/i,HS=jS(BS.exec),zS=8!==NS(MS+"08")||22!==NS(MS+"0x16")||DS&&!CS((function(){NS(Object(DS))}))?function(e,t){var r=US(IS(e));return NS(r,t>>>0||(HS(BS,r)?16:10))}:NS;Er({global:!0,forced:parseInt!=zS},{parseInt:zS});var qS=r(te.parseInt),GS=ea.map;Er({target:"Array",proto:!0,forced:!An("map")},{map:function(e){return GS(this,e,arguments.length>1?arguments[1]:void 0)}});var VS=Nl("Array").map,$S=ue,QS=VS,YS=Array.prototype,WS=r((function(e){var t=e.map;return e===YS||$S(YS,e)&&t===YS.map?QS:t})),KS=Km;Er({target:"Object",stat:!0,arity:2,forced:Object.assign!==KS},{assign:KS});var XS=r(te.Object.assign),JS=r(bl),ZS=Je,ex=C,tx=ee,rx=rr,nx=function(e){return void 0!==e&&(ZS(e,"value")||ZS(e,"writable"))},ix=E,ox=Ts;Er({target:"Reflect",stat:!0},{get:function e(t,r){var n,i,o=arguments.length<3?t:arguments[2];return rx(t)===o?t[r]:(n=ix.f(t,r))?nx(n)?n.value:void 0===n.get?void 0:ex(n.get,o):tx(i=ox(t))?e(i,r,o):void 0}});var ax=r(te.Reflect.get);function ux(e,t){var r=jl(e);if(Il){var n=Il(e);t&&(n=zl(n).call(n,(function(t){return Xl(e,t).enumerable}))),r.push.apply(r,n)}return r}function sx(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?lf(r=ux(Object(i),!0)).call(r,(function(t){hx(e,t,i[t])})):wf?Ef(e,wf(i)):lf(n=ux(Object(i))).call(n,(function(t){Uf(e,t,Xl(i,t))}))}return e}function cx(e){return(cx="function"==typeof Sl&&"symbol"==typeof JS?function(e){return typeof e}:function(e){return e&&"function"==typeof Sl&&e.constructor===Sl&&e!==Sl.prototype?"symbol":typeof e})(e)}function lx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fx(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),Uf(e,gx(n.key),n)}}function dx(e,t,r){return t&&fx(e.prototype,t),r&&fx(e,r),Uf(e,"prototype",{writable:!1}),e}function hx(e,t,r){return(t=gx(t))in e?Uf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function px(e){return function(e){if(Qy(e))return vx(e)}(e)||function(e){if(void 0!==Sl&&null!=Al(e)||null!=e["@@iterator"])return cm(e)}(e)||function(e,t){var r;if(!e)return;if("string"==typeof e)return vx(e,t);var n=py(r=Object.prototype.toString.call(e)).call(r,8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return cm(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vx(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 vx(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 gx(e){var t=function(e,t){if("object"!==kl(e)||null===e)return e;var r=e[lm];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==kl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kl(t)?t:String(t)}var yx={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var u=new i(n,o||e,a),s=r?r+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],u]:e._events[s].push(u):(e._events[s]=u,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function u(){this._events=new n,this._eventsCount=0}Nf&&(n.prototype=Nf(null),(new n).__proto__||(r=!1)),u.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?py(n).call(n,1):n);return Il?Im(i).call(i,Il(e)):i},u.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},u.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},u.prototype.emit=function(e,t,n,i,o,a){var u=r?r+e:e;if(!this._events[u])return!1;var s,c,l=this._events[u],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,i),!0;case 5:return l.fn.call(l.context,t,n,i,o),!0;case 6:return l.fn.call(l.context,t,n,i,o,a),!0}for(c=1,s=new Array(f-1);c<f;c++)s[c-1]=arguments[c];l.fn.apply(l.context,s)}else{var d,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,i);break;default:if(!s)for(d=1,s=new Array(f-1);d<f;d++)s[d-1]=arguments[d];l[c].fn.apply(l[c].context,s)}}return!0},u.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},u.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},u.prototype.removeListener=function(e,t,n,i){var o=r?r+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var u=this._events[o];if(u.fn)u.fn!==t||i&&!u.once||n&&u.context!==n||a(this,o);else{for(var s=0,c=[],l=u.length;s<l;s++)(u[s].fn!==t||i&&!u[s].once||n&&u[s].context!==n)&&c.push(u[s]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u}(yx);var mx=r(yx.exports),_x=ea.some;Er({target:"Array",proto:!0,forced:!Zl("some")},{some:function(e){return _x(this,e,arguments.length>1?arguments[1]:void 0)}});var bx=Nl("Array").some,wx=ue,kx=bx,Sx=Array.prototype,xx=r((function(e){var t=e.some;return e===Sx||wx(Sx,e)&&t===Sx.some?kx:t})),Tx=Ir,Rx=Qn,Ox=Y,Ex=RangeError,Lx=g,Ax=Nr,Px=Qn,Cx=Y,jx=Lx((function(e){var t=Rx(Ox(this)),r="",n=Tx(e);if(n<0||n==1/0)throw Ex("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),Ix=Lx("".slice),Ux=Math.ceil,Mx=function(e){return function(t,r,n){var i,o,a=Px(Cx(t)),u=Ax(r),s=a.length,c=void 0===n?" ":Px(n);return u<=s||""==c?a:((o=jx(c,Ux((i=u-s)/c.length))).length>i&&(o=Ix(o,0,i)),e?a+o:o+a)}},Nx={start:Mx(!1),end:Mx(!0)},Fx=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(se),Dx=Nx.start;Er({target:"String",proto:!0,forced:Fx},{padStart:function(e){return Dx(this,e,arguments.length>1?arguments[1]:void 0)}});var Bx,Hx=Nl("String").padStart,zx=ue,qx=Hx,Gx=String.prototype,Vx=r((function(e){var t=e.padStart;return"string"==typeof e||e===Gx||zx(Gx,e)&&t===Gx.padStart?qx:t})),$x="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Qx=i,Yx=f,Wx=O,Kx=$x,Xx=se,Jx=xu,Zx=kh,eT=Qx.Function,tT=/MSIE .\./.test(Xx)||Kx&&((Bx=Qx.Bun.version.split(".")).length<3||0==Bx[0]&&(Bx[1]<3||3==Bx[1]&&0==Bx[2])),rT=function(e,t){var r=t?2:1;return tT?function(n,i){var o=Zx(arguments.length,1)>r,a=Wx(n)?n:eT(n),u=o?Jx(arguments,r):[],s=o?function(){Yx(a,this,u)}:a;return t?e(s,i):e(s)}:e},nT=Er,iT=i,oT=rT(iT.setInterval,!0);nT({global:!0,bind:!0,forced:iT.setInterval!==oT},{setInterval:oT});var aT=Er,uT=i,sT=rT(uT.setTimeout,!0);aT({global:!0,bind:!0,forced:uT.setTimeout!==sT},{setTimeout:sT});var cT=r(te.setInterval),lT=r(te.setTimeout),fT=ea.every;Er({target:"Array",proto:!0,forced:!Zl("every")},{every:function(e){return fT(this,e,arguments.length>1?arguments[1]:void 0)}});var dT=Nl("Array").every,hT=ue,pT=dT,vT=Array.prototype,gT=r((function(e){var t=e.every;return e===vT||hT(vT,e)&&t===vT.every?pT:t})),yT=i,mT=o,_T=Qn,bT=AS.trim,wT=kS,kT=g("".charAt),ST=yT.parseFloat,xT=yT.Symbol,TT=xT&&xT.iterator,RT=1/ST(wT+"-0")!=-1/0||TT&&!mT((function(){ST(Object(TT))}))?function(e){var t=bT(_T(e)),r=ST(t);return 0===r&&"-"==kT(t,0)?-0:r}:ST;Er({global:!0,forced:parseFloat!=RT},{parseFloat:RT});var OT=r(te.parseFloat),ET=gs.PROPER,LT=o,AT=kS,PT=AS.trim;Er({target:"String",proto:!0,forced:function(e){return LT((function(){return!!AT[e]()||"​…᠎"!=="​…᠎"[e]()||ET&&AT[e].name!==e}))}("trim")},{trim:function(){return PT(this)}});var CT=Nl("String").trim,jT=ue,IT=CT,UT=String.prototype,MT=r((function(e){var t=e.trim;return"string"==typeof e||e===UT||jT(UT,e)&&t===UT.trim?IT:t})),NT=se.match(/firefox\/(\d+)/i),FT=!!NT&&+NT[1],DT=/MSIE|Trident/.test(se),BT=se.match(/AppleWebKit\/(\d+)\./),HT=!!BT&&+BT[1],zT=Er,qT=g,GT=Pe,VT=We,$T=Dr,QT=rS,YT=Qn,WT=o,KT=k_,XT=Zl,JT=FT,ZT=DT,eR=ve,tR=HT,rR=[],nR=qT(rR.sort),iR=qT(rR.push),oR=WT((function(){rR.sort(void 0)})),aR=WT((function(){rR.sort(null)})),uR=XT("sort"),sR=!WT((function(){if(eR)return eR<70;if(!(JT&&JT>3)){if(ZT)return!0;if(tR)return tR<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)rR.push({k:t+n,v:r})}for(rR.sort((function(e,t){return t.v-e.v})),n=0;n<rR.length;n++)t=rR[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));zT({target:"Array",proto:!0,forced:oR||!aR||!uR||!sR},{sort:function(e){void 0!==e&&GT(e);var t=VT(this);if(sR)return void 0===e?nR(t):nR(t,e);var r,n,i=[],o=$T(t);for(n=0;n<o;n++)n in t&&iR(i,t[n]);for(KT(i,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:YT(t)>YT(r)?1:-1}}(e)),r=$T(i),n=0;n<r;)t[n]=i[n++];for(;n<o;)QT(t,n++);return t}});var cR=Nl("Array").sort,lR=ue,fR=cR,dR=Array.prototype,hR=r((function(e){var t=e.sort;return e===dR||lR(dR,e)&&t===dR.sort?fR:t})),pR=Er,vR=Date,gR=g(vR.prototype.getTime);pR({target:"Date",stat:!0},{now:function(){return gR(new vR)}});var yR,mR=r(te.Date.now),_R="undefined"!=typeof window&&window.location&&Dk(yR=window.location.href).call(yR,"xgplayerdebugger=1")>-1,bR="color: #525252; background-color: #90ee90;",wR="color: #525252; background-color: red;",kR="color: #525252; background-color: yellow; ",SR="%c[xgplayer]",xR={config:{debug:_R?3:0},logInfo:function(e){for(var t,r,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];this.config.debug>=3&&(r=console).log.apply(r,Im(t=[SR,bR,e]).call(t,i))},logWarn:function(e){for(var t,r,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];this.config.debug>=1&&(r=console).warn.apply(r,Im(t=[SR,kR,e]).call(t,i))},logError:function(e){var t,r;if(!(this.config.debug<1)){for(var n=this.config.debug>=2?"trace":"error",i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];(r=console)[n].apply(r,Im(t=[SR,wR,e]).call(t,o))}}},TR=function(){function e(t){lx(this,e),this.bufferedList=t}return dx(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}(),RR={};RR.createDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=document.createElement(t);return o.className=i,o.innerHTML=r,lf(e=jl(n)).call(e,(function(e){var r=e,i=n[e];"video"===t||"audio"===t||"live-video"===t?i&&o.setAttribute(r,i):o.setAttribute(r,i)})),o},RR.createDomFromHtml=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";try{var n=document.createElement("div");n.innerHTML=e;var i=n.children;if(n=null,i.length>0){var o;if(i=i[0],r&&RR.addClass(i,r),t)lf(o=jl(t)).call(o,(function(e){i.setAttribute(e,t[e])}));return i}return null}catch(a){return xR.logError("util.createDomFromHtml",a),null}},RR.hasClass=function(e,t){if(!e||!t)return!1;try{return xx(Array.prototype).call(e.classList,(function(e){return e===t}))}catch(n){var r=e.className&&"object"===cx(e.className)?e.getAttribute("class"):e.className;return r&&!!r.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},RR.addClass=function(e,t){if(e&&t)try{var r;lf(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.add(t)}))}catch(n){RR.hasClass(e,t)||(e.className&&"object"===cx(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},RR.removeClass=function(e,t){if(e&&t)try{var r;lf(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.remove(t)}))}catch(i){var n;if(RR.hasClass(e,t))lf(n=t.split(/\s+/g)).call(n,(function(t){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===cx(e.className)?e.setAttribute("class",e.getAttribute("class").replace(r," ")):e.className=e.className.replace(r," ")}))}},RR.toggleClass=function(e,t){var r;e&&lf(r=t.split(/\s+/g)).call(r,(function(t){RR.hasClass(e,t)?RR.removeClass(e,t):RR.addClass(e,t)}))},RR.classNames=function(){for(var e=arguments,t=[],r=function(r){if("String"===RR.typeOf(e[r]))t.push(e[r]);else if("Object"===RR.typeOf(e[r])){var n;WS(n=jl(e[r])).call(n,(function(n){e[r][n]&&t.push(n)}))}},n=0;n<arguments.length;n++)r(n);return t.join(" ")},RR.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){xR.logError("util.findDom",n),0===Dk(r).call(r,"#")&&(e=t.getElementById(py(r).call(r,1)))}return e},RR.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},RR.padStart=function(e,t,r){for(var n=String(r),i=t>>0,o=Math.ceil(i/n.length),a=[],u=String(e);o--;)a.push(n);return a.join("").substring(0,i-u.length)+u},RR.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=Vx(RR).call(RR,Math.floor(e/3600),2,0),r=Vx(RR).call(RR,Math.floor((e-3600*t)/60),2,0),n=Vx(RR).call(RR,Math.floor(e-3600*t-60*r),2,0);return("00"===t?[r,n]:[t,r,n]).join(":")},RR.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},RR.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},RR.deepCopy=function(e,t){var r;if("Object"===RR.typeOf(t)&&"Object"===RR.typeOf(e))return lf(r=jl(t)).call(r,(function(r){if("Object"!==RR.typeOf(t[r])||t[r]instanceof Node)if("Array"===RR.typeOf(t[r])){var n;e[r]="Array"===RR.typeOf(e[r])?Im(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]:RR.deepCopy(e[r],t[r])})),e},RR.deepMerge=function(e,t){var r;return WS(r=jl(t)).call(r,(function(r){var n;"Array"===RR.typeOf(t[r])&&"Array"===RR.typeOf(e[r])?"Array"===RR.typeOf(e[r])&&(n=e[r]).push.apply(n,px(t[r])):RR.typeOf(e[r])!==RR.typeOf(t[r])||null===e[r]||"Object"!==RR.typeOf(e[r])||t[r]instanceof window.Node?null!==t[r]&&(e[r]=t[r]):RR.deepMerge(e[r],t[r])})),e},RR.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},RR.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return lf(Array.prototype).call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},RR.setInterval=function(e,t,r,n){e._interval[t]||(e._interval[t]=cT(Py(r).call(r,e),n))},RR.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},RR.setTimeout=function(e,t,r){e._timers||(e._timers=[]);var n=lT((function(){t(),RR.clearTimeout(e,n)}),r);return e._timers.push(n),n},RR.clearTimeout=function(e,t){var r=e._timers;if("Array"===RR.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===t){bS(r).call(r,n,1),clearTimeout(t);break}}else clearTimeout(t)},RR.clearAllTimers=function(e){var t=e._timers;"Array"===RR.typeOf(t)&&(WS(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},RR.createImgBtn=function(e,t,r,n){var i,o,a,u,s,c,l,f,d,h,p,v,g=RR.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(g.style.backgroundImage='url("'.concat(t,'")'),r&&n)&&(gT(i=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(i,(function(e){var t,i;return!(Dk(r).call(r,e)>-1&&Dk(n).call(n,e)>-1)||(l=OT(MT(t=py(r).call(r,0,Dk(r).call(r,e))).call(t)),f=OT(MT(i=py(n).call(n,0,Dk(n).call(n,e))).call(i)),d=e,!1)})),g.style.width=Im(o="".concat(l)).call(o,d),g.style.height=Im(a="".concat(f)).call(a,d),g.style.backgroundSize=Im(u=Im(s=Im(c="".concat(l)).call(c,d," ")).call(s,f)).call(u,d),g.style.margin="start"===e?Im(h=Im(p=Im(v="-".concat(f/2)).call(v,d," auto auto -")).call(p,l/2)).call(h,d):"auto 5px auto 5px");return g},RR.Hex2RGBA=function(e,t){var r,n=[];if(/^\#[0-9A-F]{3}$/i.test(e)){var i="#";e.replace(/[0-9A-F]/gi,(function(e){i+=e+e})),e=i}return/^#[0-9A-F]{6}$/i.test(e)?(e.replace(/[0-9A-F]{2}/gi,(function(e){n.push(qS(e,16))})),Im(r="rgba(".concat(n.join(","),", ")).call(r,t,")")):"rgba(255, 255, 255, 0.1)"},RR.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},RR.checkIsFunction=function(e){return e&&"function"==typeof e},RR.checkIsObject=function(e){return null!==e&&"object"===cx(e)},RR.hide=function(e){e.style.display="none"},RR.show=function(e,t){e.style.display=t||"block"},RR.isUndefined=function(e){if(null==e)return!0},RR.isNotNull=function(e){return!(null==e)},RR.setStyleFromCsstext=function(e,t){if(t)if("String"===RR.typeOf(t)){var r=t.replace(/\s+/g,"").split(";");WS(r).call(r,(function(t){if(t){var r=t.split(":");r.length>1&&(e.style[r[0]]=r[1])}}))}else{var n;WS(n=jl(t)).call(n,(function(r){e.style[r]=t[r]}))}},RR.filterStyleFromText=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],n=e.style.cssText;if(!n)return{};var i=n.replace(/\s+/g,"").split(";"),o={},a={};return WS(i).call(i,(function(e){if(e){var t=e.split(":");t.length>1&&(!function(e,t){for(var r=0,n=t.length;r<n;r++)if(Dk(e).call(e,t[r])>-1)return!0;return!1}(t[0],r)?a[t[0]]=t[1]:o[t[0]]=t[1])}})),e.setAttribute("style",""),WS(t=jl(a)).call(t,(function(t){e.style[t]=a[t]})),o},RR.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var r=t.replace(/\s+/g,"").split(";"),n={};return WS(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(n[t[0]]=t[1])}})),n},RR.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}},RR.stopPropagation=function(e){e&&e.stopPropagation()},RR.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},RR.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},RR.checkTouchSupport=function(){return"ontouchstart"in window},RR.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)});hR(r).call(r,(function(e,t){var r=e.start-t.start;return r||t.end-e.end}));var i=[];if(t)for(var o=0;o<r.length;o++){var a=i.length;if(a){var u=i[a-1].end;r[o].start-u<t?r[o].end>u&&(i[a-1].end=r[o].end):i.push(r[o])}else i.push(r[o])}else i=r;return new TR(i)},RR.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}},RR.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},RR.getHostFromUrl=function(e){if("String"!==RR.typeOf(e))return"";var t=e.split("/"),r="";return t.length>3&&t[2]&&(r=t[2]),r},RR.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},RR.isMSE=function(e){return e.media&&(e=e.media),!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},RR.isBlob=function(e){return"string"==typeof e&&/^blob/.test(e)},RR.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=qS(e)}catch(r){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=qS(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)}))},RR.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},RR.adjustTimeByDuration=function(e,t,r){return t&&e&&(e>t||r&&e<t)?t:e},RR.createPositionBar=function(e,t){var r=RR.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(r),r},RR.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:Im(e="".concat(t.x||0,"%, ")).call(e,t.y||0,"%"),rotate:"".concat(t.rotate||0,"deg")},i=jl(n);return lf(i).call(i,(function(e){var t,i=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),o=Im(t="".concat(e,"(")).call(t,n[e],")");i.test(r)?(i.lastIndex=-1,r=r.replace(i,o)):r+="".concat(o," ")})),r},RR.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360},RR.getIndexByTime=function(e,t){var r=t.length,n=-1;if(r<1)return n;if(e<=t[0].end||r<2)n=0;else if(e>t[r-1].end)n=r-1;else for(var i=1;i<r;i++)if(e>t[i-1].end&&e<=t[i].end){n=i;break}return n},RR.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:RR.getIndexByTime(e,t))<0)return-1;var i=t.length,o=t[n],a=o.start,u=o.end,s=o.cTime,c=o.offset;return e<a?s:e>=a&&e<=u?e-c:e>u&&n>=i-1?u:-1},RR.getCurrentTimeByOffset=function(e,t){var r=-1;if(!t||t.length<0)return e;for(var n=0;n<t.length;n++)if(e<=t[n].duration){r=n;break}if(-1!==r){var i=t[r].start;return r-1<0?i+e:i+(e-t[r-1].duration)}return e};var OR="3.0.19-rc.0",ER={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},LR=dx((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};lx(this,e);var n=t&&t.i18n?t.i18n.ERROR_TYPES:null;if(t.media){var i,o=r.mediaError?r.mediaError:t.media.error||{},a=t.duration,u=t.currentTime,s=t.ended,c=t.src,l=t.currentSrc,f=t.media,d=f.readyState,h=f.networkState,p=r.errorCode||o.code;ER[p]&&(p=ER[p]);var v={playerVersion:OR,currentTime:u,duration:a,ended:s,readyState:d,networkState:h,src:c||l,errorType:r.errorType,errorCode:p,message:r.errorMessage||o.message,mediaError:o,originError:r.originError?r.originError.stack:"",host:RR.getHostFromUrl(c||l)};return r.ext&&WS(i=jl(r.ext)).call(i,(function(e){v[e]=r.ext[e]})),v}if(arguments.length>1){for(var g={playerVersion:OR,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 AR(e,t,r){for(var n,i=arguments.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];var u,s=t.call.apply(t,Im(n=[e]).call(n,o));r&&"function"==typeof r&&(s&&s.then?s.then((function(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];r.call.apply(r,Im(t=[e]).call(t,i))})):r.call.apply(r,Im(u=[e]).call(u,o)))}function PR(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,i=arguments,o=this;if(n.pre)try{var a,u;(u=n.pre).call.apply(u,Im(a=[this]).call(a,py(Array.prototype).call(arguments)))}catch(y){var s,c;throw y.message=Im(s=Im(c="[pluginName: ".concat(this.pluginName,":")).call(c,e,":pre error] >> ")).call(s,y.message),y}if(this.__hooks&&this.__hooks[e])try{var l,f,d,h=(f=this.__hooks[e]).call.apply(f,Im(l=[this,this]).call(l,py(Array.prototype).call(arguments)));if(h)if(h.then)h.then((function(e){var r;!1!==e&&AR.apply(void 0,Im(r=[o,t,n.next]).call(r,px(i)))})).catch((function(e){throw e}));else AR.apply(void 0,Im(d=[this,t,n.next]).call(d,py(Array.prototype).call(arguments)));else if(void 0===h){var p;AR.apply(void 0,Im(p=[this,t,n.next]).call(p,py(Array.prototype).call(arguments)))}}catch(y){var v,g;throw y.message=Im(v=Im(g="[pluginName: ".concat(this.pluginName,":")).call(g,e,"] >> ")).call(v,y.message),y}else AR.apply(void 0,Im(r=[this,t,n.next]).call(r,py(Array.prototype).call(arguments)))}).call(r,this)}function CR(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 jR(e,t){var r=this.__hooks;r&&delete r[e]}function IR(e,t){var r;xR.logError(Im(r="[".concat(e,"] event or callback cant be undefined or null when call ")).call(r,t))}var UR=function(){function e(t){lx(this,e),RR.checkIsFunction(this.beforeCreate)&&this.beforeCreate(t),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.__hooks={},t&&WS(t).call(t,(function(t){e.__hooks[t]=null})),Uf(e,"hooks",{get:function(){var t;return e.__hooks&&WS(t=jl(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 dx(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=RR.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)):Qy(e)&&lf(e).call(e,(function(e){r.__events[e]=t,r.player.on(e,t)})):IR(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)):Qy(e)&&lf(e).call(e,(function(n){r.__onceEvents[n]=t,r.player.once(e,t)})):IR(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)):Qy(e)&&lf(e).call(e,(function(n){delete r.__events[e],r.player.off(n,t)})):IR(this.pluginName,"plugin.off(event, callback)")}},{key:"offAll",value:function(){var e,t=this;lf(e=["__events","__onceEvents"]).call(e,(function(e){var r;lf(r=jl(t[e])).call(r,(function(r){t[e][r]&&t.off(r,t[e][r]),r&&delete t[e][r]}))})),this.__events={},this.__onceEvents={}}},{key:"emit",value:function(e){var t,r;if(this.player){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];(r=this.player).emit.apply(r,Im(t=[e]).call(t,i))}}},{key:"emitUserAction",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.player){var n=sx(sx({},r),{},{pluginName:this.pluginName});this.player.emitUserAction(e,t,n)}}},{key:"hook",value:function(e,t){var r;return PR.call.apply(PR,Im(r=[this]).call(r,py(Array.prototype).call(arguments)))}},{key:"useHooks",value:function(e,t){for(var r,n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return CR.call.apply(CR,Im(r=[this]).call(r,py(Array.prototype).call(arguments)))}},{key:"removeHooks",value:function(e,t){for(var r,n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return jR.call.apply(jR,Im(r=[this]).call(r,py(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(),RR.clearAllTimers(this),RR.checkIsFunction(this.destroy)&&this.destroy(),WS(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)&&Uf(e,r,t[r])}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),e}(),MR=te,NR=f;MR.JSON||(MR.JSON={stringify:JSON.stringify});var FR=function(e,t,r){return NR(MR.JSON.stringify,null,arguments)},DR=r(FR),BR=ee,HR=b,zR=dt("match"),qR=function(e){var t;return BR(e)&&(void 0!==(t=e[zR])?!!t:"RegExp"==HR(e))},GR=TypeError,VR=dt("match"),$R=ni.includes;Er({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return $R(this,e,arguments.length>1?arguments[1]:void 0)}});var QR=Nl("Array").includes,YR=Er,WR=function(e){if(qR(e))throw GR("The method doesn't accept regular expressions");return e},KR=Y,XR=Qn,JR=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[VR]=!1,"/./"[e](t)}catch(n){}}return!1},ZR=g("".indexOf);YR({target:"String",proto:!0,forced:!JR("includes")},{includes:function(e){return!!~ZR(XR(KR(this)),XR(WR(e)),arguments.length>1?arguments[1]:void 0)}});var eO=Nl("String").includes,tO=ue,rO=QR,nO=eO,iO=Array.prototype,oO=String.prototype,aO=r((function(e){var t=e.includes;return e===iO||tO(iO,e)&&t===iO.includes?rO:"string"==typeof e||e===oO||tO(oO,e)&&t===oO.includes?nO:t})),uO={exports:{}},sO=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),cO=o,lO=ee,fO=b,dO=sO,hO=Object.isExtensible,pO=cO((function(){hO(1)}))||dO?function(e){return!!lO(e)&&((!dO||"ArrayBuffer"!=fO(e))&&(!hO||hO(e)))}:hO,vO=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),gO=Er,yO=g,mO=ii,_O=ee,bO=Je,wO=Xt.f,kO=Bi,SO=qi,xO=pO,TO=vO,RO=!1,OO=nt("meta"),EO=0,LO=function(e){wO(e,OO,{value:{objectID:"O"+EO++,weakData:{}}})},AO=uO.exports={enable:function(){AO.enable=function(){},RO=!0;var e=kO.f,t=yO([].splice),r={};r[OO]=1,e(r).length&&(kO.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===OO){t(n,i,1);break}return n},gO({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:SO.f}))},fastKey:function(e,t){if(!_O(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!bO(e,OO)){if(!xO(e))return"F";if(!t)return"E";LO(e)}return e[OO].objectID},getWeakData:function(e,t){if(!bO(e,OO)){if(!xO(e))return!0;if(!t)return!1;LO(e)}return e[OO].weakData},onFreeze:function(e){return TO&&RO&&xO(e)&&!bO(e,OO)&&LO(e),e}};mO[OO]=!0;var PO=uO.exports,CO=Er,jO=i,IO=PO,UO=o,MO=gr,NO=Id,FO=fh,DO=O,BO=ee,HO=Ao,zO=Xt.f,qO=ea.forEach,GO=L,VO=$o.set,$O=$o.getterFor,QO=Di,YO=oo,WO=g_,KO=Kt,XO=fh,JO=V,ZO=Id,eE=pc,tE=vc,rE=sh,nE=L,iE=PO.fastKey,oE=$o.set,aE=$o.getterFor,uE={getConstructor:function(e,t,r,n){var i=e((function(e,i){XO(e,o),oE(e,{type:t,index:QO(null),first:void 0,last:void 0,size:0}),nE||(e.size=0),JO(i)||ZO(i,e[n],{that:e,AS_ENTRIES:r})})),o=i.prototype,a=aE(t),u=function(e,t,r){var n,i,o=a(e),u=s(e,t);return u?u.value=r:(o.last=u={index:i=iE(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=u),n&&(n.next=u),nE?o.size++:e.size++,"F"!==i&&(o.index[i]=u)),e},s=function(e,t){var r,n=a(e),i=iE(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return WO(o,{clear:function(){for(var e=a(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,nE?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=s(t,e);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),nE?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=KO(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),WO(o,r?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),nE&&YO(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=aE(t),o=aE(n);eE(e,t,(function(e,t){oE(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?tE("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,tE(void 0,!0))}),r?"entries":"values",!r,!0),rE(t)}};(function(e,t,r){var n,i=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=i?"set":"add",u=jO[e],s=u&&u.prototype,c={};if(GO&&DO(u)&&(o||s.forEach&&!UO((function(){(new u).entries().next()})))){var l=(n=t((function(t,r){VO(FO(t,l),{type:e,collection:new u}),null!=r&&NO(r,t[a],{that:t,AS_ENTRIES:i})}))).prototype,f=$O(e);qO(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in s)||o&&"clear"==e||MO(l,e,(function(r,n){var i=f(this).collection;if(!t&&o&&!BO(r))return"get"==e&&void 0;var a=i[e](0===r?0:r,n);return t?this:a}))})),o||zO(l,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(t,e,i,a),IO.enable();HO(n,e,!1,!0),c[e]=n,CO({global:!0,forced:!0},c),o||r.setStrong(n,e,i)})("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),uE);var sE=te.Map,cE=Kt,lE=C,fE=Pe,dE=vh,hE=V,pE=Id,vE=[].push,gE=function(e){var t,r,n,i,o=arguments.length,a=o>1?arguments[1]:void 0;return dE(this),(t=void 0!==a)&&fE(a),hE(e)?new this:(r=[],t?(n=0,i=cE(a,o>2?arguments[2]:void 0),pE(e,(function(e){lE(vE,r,i(e,n++))}))):pE(e,vE,{that:r}),new this(r))};Er({target:"Map",stat:!0,forced:!0},{from:gE});var yE=xu,mE=function(){return new this(yE(arguments))};Er({target:"Map",stat:!0,forced:!0},{of:mE});var _E=Oe,bE=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(_E(e)+" is not a map")},wE=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},kE=ae("Map"),SE={Map:kE,set:wE("set",2),get:wE("get",1),has:wE("has",1),remove:wE("delete",1),proto:kE.prototype},xE=bE,TE=SE.remove;Er({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=xE(this),r=!0,n=0,i=arguments.length;n<i;n++)e=TE(t,arguments[n]),r=r&&e;return!!r}});var RE=bE,OE=SE.get,EE=SE.has,LE=SE.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,i=RE(this);return EE(i,e)?(r=OE(i,e),"update"in t&&(r=t.update(r,e,i),LE(i,e,r)),r):(n=t.insert(e,i),LE(i,e,n),n)}});var AE=C,PE=function(e,t,r){for(var n,i,o=r||e.next;!(n=AE(o,e)).done;)if(void 0!==(i=t(n.value)))return i},CE=function(e,t,r){return r?PE(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},jE=Kt,IE=bE,UE=CE;Er({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=IE(this),r=jE(e,arguments.length>1?arguments[1]:void 0);return!1!==UE(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var ME=Kt,NE=bE,FE=CE,DE=SE.Map,BE=SE.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=NE(this),r=ME(e,arguments.length>1?arguments[1]:void 0),n=new DE;return FE(t,(function(e,i){r(e,i,t)&&BE(n,i,e)})),n}});var HE=Kt,zE=bE,qE=CE;Er({target:"Map",proto:!0,real:!0,forced:!0},{find: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{value:e}}),!0);return n&&n.value}});var GE=Kt,VE=bE,$E=CE;Er({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=VE(this),r=GE(e,arguments.length>1?arguments[1]:void 0),n=$E(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var QE=Er,YE=C,WE=O,KE=Pe,XE=Id,JE=SE.Map,ZE=g([].push);QE({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new(WE(this)?this:JE);KE(t);var n=KE(r.has),i=KE(r.get),o=KE(r.set);return XE(e,(function(e){var a=t(e);YE(n,r,a)?ZE(YE(i,r,a),e):YE(o,r,a,[e])})),r}});var eL=function(e,t){return e===t||e!=e&&t!=t},tL=bE,rL=CE;Er({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===rL(tL(this),(function(t){if(eL(t,e))return!0}),!0)}});var nL=C,iL=Id,oL=O,aL=Pe,uL=SE.Map;Er({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(oL(this)?this:uL);aL(t);var n=aL(r.set);return iL(e,(function(e){nL(n,r,t(e),e)})),r}});var sL=bE,cL=CE;Er({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=cL(sL(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var lL=Kt,fL=bE,dL=CE,hL=SE.Map,pL=SE.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=fL(this),r=lL(e,arguments.length>1?arguments[1]:void 0),n=new hL;return dL(t,(function(e,i){pL(n,r(e,i,t),e)})),n}});var vL=Kt,gL=bE,yL=CE,mL=SE.Map,_L=SE.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=gL(this),r=vL(e,arguments.length>1?arguments[1]:void 0),n=new mL;return yL(t,(function(e,i){_L(n,i,r(e,i,t))})),n}});var bL=bE,wL=Id,kL=SE.set;Er({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=bL(this),r=arguments.length,n=0;n<r;)wL(arguments[n++],(function(e,r){kL(t,e,r)}),{AS_ENTRIES:!0});return t}});var SL=Pe,xL=bE,TL=CE,RL=TypeError;Er({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=xL(this),r=arguments.length<2,n=r?void 0:arguments[1];if(SL(e),TL(t,(function(i,o){r?(r=!1,n=i):n=e(n,i,o,t)})),r)throw RL("Reduce of empty map with no initial value");return n}});var OL=Kt,EL=bE,LL=CE;Er({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=EL(this),r=OL(e,arguments.length>1?arguments[1]:void 0);return!0===LL(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var AL=Pe,PL=bE,CL=TypeError,jL=SE.get,IL=SE.has,UL=SE.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=PL(this),n=arguments.length;AL(t);var i=IL(r,e);if(!i&&n<3)throw CL("Updating absent value");var o=i?jL(r,e):AL(n>2?arguments[2]:void 0)(e,r);return UL(r,e,t(o,e,r)),r}});var ML=C,NL=Pe,FL=O,DL=rr,BL=TypeError,HL=function(e,t){var r,n=DL(this),i=NL(n.get),o=NL(n.has),a=NL(n.set),u=arguments.length>2?arguments[2]:void 0;if(!FL(t)&&!FL(u))throw BL("At least one callback required");return ML(o,n,e)?(r=ML(i,n,e),FL(t)&&(r=t(r),ML(a,n,e,r))):FL(u)&&(r=u(),ML(a,n,e,r)),r};Er({target:"Map",proto:!0,real:!0,forced:!0},{upsert:HL}),Er({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:HL});var zL=r(sE);function qL(e,t){var r=jl(e);if(Il){var n=Il(e);t&&(n=zl(n).call(n,(function(t){return Xl(e,t).enumerable}))),r.push.apply(r,n)}return r}function GL(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?lf(r=qL(Object(i),!0)).call(r,(function(t){JL(e,t,i[t])})):wf?Ef(e,wf(i)):lf(n=qL(Object(i))).call(n,(function(t){Uf(e,t,Xl(i,t))}))}return e}function VL(){VL=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Uf||function(e,t,r){e[t]=r.value},i="function"==typeof Sl?Sl:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Uf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(O){s=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var o=t&&t.prototype instanceof d?t:d,a=Nf(o.prototype),u=new x(i||[]);return n(a,"_invoke",{value:b(e,r,u)}),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={};s(v,o,(function(){return this}));var g=Hf&&Hf(Hf(T([])));g&&g!==t&&r.call(g,o)&&(v=g);var y=p.prototype=d.prototype=Nf(v);function m(e){var t;lf(t=["next","throw","return"]).call(t,(function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(n,o,a,u){var s=l(e[n],e,o);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==kl(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,u)}),(function(e){i("throw",e,a,u)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,u)}))}u(s.arg)}var o;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return o=o?o.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],lf(e).call(e,k,this),this.reset(!0)}function T(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next: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=s(p,u,"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 zf?zf(e,p):(e.__proto__=p,s(e,u,"GeneratorFunction")),e.prototype=Nf(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),s(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Bg);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),s(y,u,"Generator"),s(y,o,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return Wg(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,x.prototype={constructor:x,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,lf(t=this.tryEntries).call(t,S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+py(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function $L(e){return($L="function"==typeof Sl&&"symbol"==typeof JS?function(e){return typeof e}:function(e){return e&&"function"==typeof Sl&&e.constructor===Sl&&e!==Sl.prototype?"symbol":typeof e})(e)}function QL(e,t,r,n,i,o,a){try{var u=e[o](a),s=u.value}catch(ZP){return void r(ZP)}u.done?t(s):Bg.resolve(s).then(n,i)}function YL(e){return function(){var t=this,r=arguments;return new Bg((function(n,i){var o=e.apply(t,r);function a(e){QL(o,n,i,a,u,"next",e)}function u(e){QL(o,n,i,a,u,"throw",e)}a(void 0)}))}}function WL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KL(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),Uf(e,fA(n.key),n)}}function XL(e,t,r){return t&&KL(e.prototype,t),r&&KL(e,r),Uf(e,"prototype",{writable:!1}),e}function JL(e,t,r){return(t=fA(t))in e?Uf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZL(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Nf(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Uf(e,"prototype",{writable:!1}),t&&tA(e,t)}function eA(e){var t;return(eA=zf?Py(t=Hf).call(t):function(e){return e.__proto__||Hf(e)})(e)}function tA(e,t){var r;return(tA=zf?Py(r=zf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function rA(){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 nA(e,t,r){var n;rA()?nA=Py(n=$y).call(n):nA=function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Py(Function).apply(e,n));return r&&tA(i,r.prototype),i};return nA.apply(null,arguments)}function iA(e){var t="function"==typeof zL?new zL:void 0;return iA=function(e){if(null===e||(r=e,-1===Dk(n=Function.toString.call(r)).call(n,"[native code]")))return e;var r,n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return nA(e,arguments,eA(this).constructor)}return i.prototype=Nf(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),tA(i,e)},iA(e)}function oA(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=jl(e);for(n=0;n<o.length;n++)r=o[n],Dk(t).call(t,r)>=0||(i[r]=e[r]);return i}(e,t);if(Il){var o=Il(e);for(n=0;n<o.length;n++)r=o[n],Dk(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function aA(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uA(e){var t=rA();return function(){var r,n=eA(e);if(t){var i=eA(this).constructor;r=$y(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===kl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return aA(e)}(this,r)}}function sA(){var e;"undefined"!=typeof Reflect&&ax?sA=Py(e=ax).call(e):sA=function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=eA(e)););return e}(e,t);if(n){var i=Xl(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}};return sA.apply(this,arguments)}function cA(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function lA(e,t){var r=void 0!==Sl&&Al(e)||e["@@iterator"];if(!r){if(Qy(e)||(r=function(e,t){var r;if(e){if("string"==typeof e)return cA(e,t);var n=py(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?cm(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cA(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function fA(e){var t=function(e,t){if("object"!==kl(e)||null===e)return e;var r=e[lm];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==kl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kl(t)?t:String(t)}var dA=Pe,hA=We,pA=G,vA=Dr,gA=TypeError,yA=function(e){return function(t,r,n,i){dA(r);var o=hA(t),a=pA(o),u=vA(o),s=e?u-1:0,c=e?-1:1;if(n<2)for(;;){if(s in a){i=a[s],s+=c;break}if(s+=c,e?s<0:u<=s)throw gA("Reduce of empty array with no initial value")}for(;e?s>=0:u>s;s+=c)s in a&&(i=r(i,a[s],s,o));return i}},mA={left:yA(!1),right:yA(!0)}.left;Er({target:"Array",proto:!0,forced:!nh&&ve>79&&ve<83||!Zl("reduce")},{reduce:function(e){var t=arguments.length;return mA(this,e,t,t>1?arguments[1]:void 0)}});var _A,bA=Nl("Array").reduce,wA=ue,kA=bA,SA=Array.prototype,xA=r((function(e){var t=e.reduce;return e===SA||wA(SA,e)&&t===SA.reduce?kA:t})),TA="network",RA="network_timeout",OA="network_forbidden",EA="network_notfound",LA="network_range_not_satisfiable",AA="demux",PA="remux",CA="media",jA="drm",IA="other",UA="runtime",MA=(JL(_A={},"manifest",{HLS:1100,DASH:1200}),JL(_A,TA,2100),JL(_A,RA,2101),JL(_A,OA,2103),JL(_A,EA,2104),JL(_A,LA,2116),JL(_A,AA,{FLV:3100,HLS:3200,MP4:3300,FMP4:3400,SIDX:3410}),JL(_A,PA,{FMP4:4100,MP4:4200}),JL(_A,CA,{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}),JL(_A,jA,{LICENSE:7100,CUSTOM_LICENSE:7200}),JL(_A,IA,8e3),JL(_A,UA,{NO_CANPLAY_ERROR:9001,BUFFERBREAK_ERROR:9002,WAITING_TIMEOUT_ERROR:9003}),_A),NA=function(e){ZL(r,e);var t=uA(r);function r(e,n,i,o,a){var u;return WL(this,r),(u=t.call(this,a||(null==i?void 0:i.message))).errorType=e===RA?TA:e,u.originError=i,u.ext=o,u.errorCode=MA[e][n]||MA[e],u.errorMessage=u.message,u.errorCode||(u.errorType=IA,u.errorCode=MA[u.errorType]),u}return XL(r,null,[{key:"create",value:function(e,t,n,i,o){return e instanceof r?e:(e instanceof Error&&(n=e,e=""),e||(e=IA),new r(e,t,n,i,o))}},{key:"network",value:function(e){var t;return new r(null!=e&&e.isTimeout?RA:TA,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}(iA(Error)),FA=1,DA=2,BA=3,HA=4,zA=["Boolean","Number","String","Undefined","Null","Date","Object"],qA=function(){function e(t,r){WL(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 XL(e,[{key:"debug",value:function(){for(var t,r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];this.logCache.apply(this,Im(t=[FA]).call(t,o)),e.disabled||(n=console).debug.apply(n,Im(r=[this._prefix,GA()]).call(r,o))}},{key:"log",value:function(){for(var t,r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];this.logCache.apply(this,Im(t=[DA]).call(t,o)),e.disabled||(n=console).log.apply(n,Im(r=[this._prefix,GA()]).call(r,o))}},{key:"warn",value:function(){for(var t,r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];this.logCache.apply(this,Im(t=[BA]).call(t,o)),e.disabled||(n=console).warn.apply(n,Im(r=[this._prefix,GA()]).call(r,o))}},{key:"error",value:function(){for(var t,r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];this.logCache.apply(this,Im(t=[HA]).call(t,o)),e.disabled||(n=console).error.apply(n,Im(r=[this._prefix,GA()]).call(r,o))}},{key:"logCache",value:function(e){if(!(e<this.logCacheLevel)){var t="";try{for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=WS(n).call(n,(function(e){return $A(e)}));t=this._prefix+GA()+DR(o)}catch(u){return}if(e>=this.logCacheLevel&&(this.logSize+=t.length,this.logTextArray.push(t)),this.logSize>this.logMaxSize){var a=this.logTextArray.shift();this.logSize-=a.length}}}},{key:"getLogCache",value:function(){var e=this.logTextArray.join("\n");return this.reset(),e}},{key:"reset",value:function(){this.logTextArray=[],this.logSize=0}},{key:"table",value:function(){var t;e.disabled||(console.group(this._prefix),(t=console).table.apply(t,arguments),console.groupEnd())}},{key:"setLogLevel",value:function(e){this.logCacheLevel=e}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();function GA(){return(new Date).toLocaleString()}function VA(e){var t;if("object"!==$L(e))return e;var r=py(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 $A(e,t,r){var n;r||(r=1),t||(t=2);var i={};if(!e||"object"!==$L(e))return e;var o=py(n=Object.prototype.toString.call(e)).call(n,8,-1);if(!aO(zA).call(zA,o))return o;if(!(r>t)){for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r===t?i[a]=VA(e[a]):"object"===$L(e[a])?i[a]=$A(e[a],t,r+1):i[a]=e[a]);return i}}JL(qA,"disabled",!0);var QA="fetch",YA="xhr",WA="arraybuffer",KA="text",XA="json",JA=function(e){ZL(r,e);var t=uA(r);function r(e,n,i,o){var a;return WL(this,r),JL(aA(a=t.call(this,o)),"retryCount",0),JL(aA(a),"isTimeout",!1),JL(aA(a),"loaderType",QA),JL(aA(a),"startTime",0),JL(aA(a),"endTime",0),JL(aA(a),"options",{}),a.url=e,a.request=n,a.response=i,a}return XL(r)}(iA(Error)),ZA=Object.prototype.toString;function eP(e){if("[object Object]"!==ZA.call(e))return!1;var t=Hf(e);return null===t||t===Object.prototype}function tP(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 rP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nP(e,t){var r,n;if(e){if(!t)return e;var i,o=zl(r=WS(n=jl(t)).call(n,(function(e){if(null!=(i=t[e]))return Qy(i)?e+="[]":i=[i],WS(i).call(i,(function(t){var r,n;return n=t,"[object Date]"===ZA.call(n)?t=t.toISOString():function(e){return null!==e&&"object"===$L(e)}(t)&&(t=DR(t)),Im(r="".concat(rP(e),"=")).call(r,rP(t))})).join("&")}))).call(r,Boolean).join("&");if(o){var a=Dk(e).call(e,"#");-1!==a&&(e=py(e).call(e,0,a)),e+=(-1===Dk(e).call(e,"?")?"?":"&")+o}return e}}function iP(e,t,r,n,i,o,a,u,s,c,l){return i=null!=i?OT(i):null,n=qS(n||"0",10),wS(n)&&(n=0),{data:e,done:t,options:{range:s,vid:c,index:u,contentLength:n,age:i,startTime:o,firstByteTime:a,endTime:mR(),priOptions:l},response:r}}function oP(e,t){return Math.round(8*e*1e3/t/1024)}var aP="error",uP="core.ttfb",sP="core.loadstart",cP="core.loadresponseheaders",lP="core.loadcomplete",fP="core.loadretry",dP="core.metadataparsed",hP="core.sei",pP="real_time_speed",vP=2097152,gP=function(e){ZL(n,e);var t,r=uA(n);function n(){var e;return WL(this,n),JL(aA(e=r.call(this)),"_abortController",null),JL(aA(e),"_timeoutTimer",null),JL(aA(e),"_reader",null),JL(aA(e),"_response",null),JL(aA(e),"_aborted",!1),JL(aA(e),"_index",-1),JL(aA(e),"_range",null),JL(aA(e),"_receivedLength",0),JL(aA(e),"_running",!1),JL(aA(e),"_logger",null),JL(aA(e),"_vid",""),JL(aA(e),"_onProcessMinLen",0),JL(aA(e),"_onCancel",null),JL(aA(e),"_priOptions",null),e}return XL(n,[{key:"load",value:function(e){var t,r=this,n=e.url,i=e.vid,o=e.timeout,a=e.responseType,u=e.onProgress,s=e.index,c=e.onTimeout,l=e.onCancel,f=e.range,d=e.transformResponse,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,k=e.redirect,S=e.referrer,x=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=s,this._range=f||[0,0],this._vid=i||n,this._priOptions=R||{};var O={method:g,headers:y,body:m,mode:_,credentials:b,cache:w,redirect:k,referrer:S,referrerPolicy:x,signal:null===(t=this._abortController)||void 0===t?void 0:t.signal},E=!1;clearTimeout(this._timeoutTimer),n=nP(n,p);var L=tP(f);L&&(y=h?h.headers:O.headers=O.headers||(Headers?new Headers:{}),Headers&&y instanceof Headers?y.append("Range",L):y.Range=L),o&&(this._timeoutTimer=lT((function(){if(E=!0,r.cancel(),c){var e=new JA(n,O,null,"timeout");e.isTimeout=!0,c(e,{index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions})}}),o));var A=mR();return this._logger.debug("[fetch load start], index,",s,",range,",f),new Bg((function(e,t){fetch(h||n,h?void 0:O).then(function(){var i=YL(VL().mark((function i(o){var c,l,h,p;return VL().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(clearTimeout(r._timeoutTimer),r._response=o,!r._aborted&&r._running){i.next=4;break}return i.abrupt("return");case 4:if(d&&(o=d(o,n)||o),o.ok){i.next=7;break}throw new JA(n,O,o,"bad network response");case 7:if(c=mR(),a!==KA){i.next=15;break}return i.next=11,o.text();case 11:l=i.sent,r._running=!1,i.next=37;break;case 15:if(a!==XA){i.next=22;break}return i.next=18,o.json();case 18:l=i.sent,r._running=!1,i.next=37;break;case 22:if(!u){i.next=29;break}return r.resolve=e,r.reject=t,r._loadChunk(o,u,A,c),i.abrupt("return");case 29:return i.next=31,o.arrayBuffer();case 31:l=i.sent,l=new Uint8Array(l),r._running=!1,h=mR()-A,p=oP(l.byteLength,h),r.emit(pP,{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,",s,",range,",f),e(iP(l,!0,o,o.headers.get("Content-Length"),o.headers.get("age"),A,c,s,f,r._vid,r._priOptions));case 39:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}()).catch((function(e){var i;clearTimeout(r._timeoutTimer),r._running=!1,r._aborted&&!E||((e=e instanceof JA?e:new JA(n,O,null,null===(i=e)||void 0===i?void 0:i.message)).startTime=A,e.endTime=mR(),e.isTimeout=E,e.options={index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions},t(e))}))}))}},{key:"cancel",value:(t=YL(VL().mark((function e(){return VL().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(ZP){}this._abortController=null}this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions});case 16:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(){return t.apply(this,arguments)})},{key:"_loadChunk",value:function(e,t,r,n){var i=this;if(!e.body||!e.body.getReader){this._running=!1;var o=new JA(e.url,"",e,"onProgress of bad response.body.getReader");return o.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},void this.reject(o)}this._onProcessMinLen>0&&(this._cache=new Uint8Array(vP),this._writeIdx=0);var a,u,s,c=this._reader=e.body.getReader(),l=function(){var o=YL(VL().mark((function o(){var f,d,h,p,v,g,y,m;return VL().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return u=mR(),o.prev=1,o.next=4,c.read();case 4:a=o.sent,s=mR(),o.next=13;break;case 8:return o.prev=8,o.t0=o.catch(1),s=mR(),i._aborted||(i._running=!1,o.t0.options={index:i._index,range:i._range,vid:i._vid,priOptions:i._priOptions},i.reject(o.t0)),o.abrupt("return");case 13:if(d=(null===(f=i._range)||void 0===f?void 0:f.length)>0?i._range[0]:0,h=d+i._receivedLength,!i._aborted){o.next=19;break}return i._running=!1,t(void 0,!1,{range:[h,h],vid:i._vid,index:i._index,startTime:u,endTime:s,st:r,firstByteTime:n,priOptions:i._priOptions},e),o.abrupt("return");case 19:var _;if(p=a.value?a.value.byteLength:0,i._receivedLength+=p,i._logger.debug("【fetchLoader,onProgress call】,task,",i._range,", start,",h,", end,",d+i._receivedLength,", done,",a.done),i._onProcessMinLen>0){if(i._writeIdx+p>=i._onProcessMinLen||a.done)(v=new Uint8Array(i._writeIdx+p)).set(py(_=i._cache).call(_,0,i._writeIdx),0),p>0&&v.set(a.value,i._writeIdx),i._writeIdx=0,i._logger.debug("【fetchLoader,onProgress enough】,done,",a.done,",len,",v.byteLength,", writeIdx,",i._writeIdx);else if(p>0&&i._writeIdx+p<vP)i._cache.set(a.value,i._writeIdx),i._writeIdx+=p,i._logger.debug("【fetchLoader,onProgress cache】,len,",p,", writeIdx,",i._writeIdx);else if(p>0){var b;g=new Uint8Array(i._writeIdx+p+2048),i._logger.debug("【fetchLoader,onProgress extra start】,size,",i._writeIdx+p+2048,", datalen,",p,", writeIdx,",i._writeIdx),g.set(py(b=i._cache).call(b,0,i._writeIdx),0),p>0&&g.set(a.value,i._writeIdx),i._writeIdx+=p,delete i._cache,i._cache=g,i._logger.debug("【fetchLoader,onProgress extra end】,len,",p,", writeIdx,",i._writeIdx)}}else v=a.value;(v&&v.byteLength>0||a.done)&&t(v,a.done,{range:[i._range[0]+i._receivedLength-(v?v.byteLength:0),i._range[0]+i._receivedLength],vid:i._vid,index:i._index,startTime:u,endTime:s,st:r,firstByteTime:n,priOptions:i._priOptions},e),a.done?(y=mR()-r,m=oP(i._receivedLength,y),i.emit(pP,{speed:m,len:i._receivedLength,time:y,vid:i._vid,index:i._index,range:i._range,priOptions:i._priOptions}),i._running=!1,i._logger.debug("[fetchLoader onProgress end],task,",i._range,",done,",a.done),i.resolve(iP(a,!0,e,e.headers.get("Content-Length"),e.headers.get("age"),r,n,i._index,i._range,i._vid,i._priOptions))):l();case 25:case"end":return o.stop()}}),o,null,[[1,8]])})));return function(){return o.apply(this,arguments)}}();l()}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}}],[{key:"isSupported",value:function(){return!("undefined"==typeof fetch)}}]),n}(mx);var yP=function(e){ZL(r,e);var t=uA(r);function r(){var e;return WL(this,r),JL(aA(e=t.call(this)),"_xhr",null),JL(aA(e),"_aborted",!1),JL(aA(e),"_timeoutTimer",null),JL(aA(e),"_range",null),JL(aA(e),"_receivedLength",0),JL(aA(e),"_url",null),JL(aA(e),"_onProgress",null),JL(aA(e),"_index",-1),JL(aA(e),"_headers",null),JL(aA(e),"_currentChunkSizeKB",384),JL(aA(e),"_timeout",null),JL(aA(e),"_xhr",null),JL(aA(e),"_withCredentials",null),JL(aA(e),"_startTime",-1),JL(aA(e),"_loadCompleteResolve",null),JL(aA(e),"_loadCompleteReject",null),JL(aA(e),"_runing",!1),JL(aA(e),"_logger",!1),JL(aA(e),"_vid",""),JL(aA(e),"_responseType",void 0),JL(aA(e),"_credentials",void 0),JL(aA(e),"_method",void 0),JL(aA(e),"_transformResponse",void 0),JL(aA(e),"_firstRtt",void 0),JL(aA(e),"_onCancel",null),JL(aA(e),"_priOptions",null),e}return XL(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=nP(e.url,e.params);var r=mR();return new Bg((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 JA?e:new JA(t._url,t._request)).startTime=r,e.endTime=mR(),e.options={index:t._index,vid:t._vid,priOptions:t._priOptions},e}))}},{key:"_startLoad",value:function(){var e=null;if(this._responseType===WA&&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=mR();var i=this._xhr=new XMLHttpRequest;i.open(this._method||"GET",this._url,!0),i.responseType=this._responseType,this._timeout&&(i.timeout=this._timeout),i.withCredentials=this._withCredentials,i.onload=Py(r=this._onLoad).call(r,this),i.onreadystatechange=Py(n=this._onReadyStatechange).call(n,this),i.onerror=function(e){var r,n,i;t._running=!1;var o=new JA(t._url,t._request,null==e||null===(r=e.currentTarget)||void 0===r?void 0:r.response,"xhr.onerror.status:"+(null==e||null===(n=e.currentTarget)||void 0===n?void 0:n.status)+",statusText,"+(null==e||null===(i=e.currentTarget)||void 0===i?void 0:i.statusText));o.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(o)},i.ontimeout=function(e){t.cancel();var r=new JA(t._url,t._request,{status:408},"timeout");t._onTimeout&&(r.isTimeout=!0,t._onTimeout(r,{index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions})),r.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(r)};var o,a=this._headers||{},u=tP(e);if(u&&(a.Range=u),a)lf(o=jl(a)).call(o,(function(e){i.setRequestHeader(e,a[e])}));this._logger.debug("[xhr.send->] tast,",this._range,",load sub range, ",e),i.send(this._body)}catch(s){s.options={index:this._index,range:e,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(s)}}},{key:"_onReadyStatechange",value:function(e){2===e.target.readyState&&this._firstRtt<0&&(this._firstRtt=mR())}},{key:"_onLoad",value:function(e){var t,r=e.target.status;if(r<200||r>299){var n=new JA(this._url,null,GL(GL({},e.target.response),{},{status:r}),"bad response,status:"+r);return n.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(n)}var i,o=null,a=!1,u=(null===(t=this._range)||void 0===t?void 0:t.length)>0?this._range[0]:0;if(this._responseType===WA){var s,c=new Uint8Array(e.target.response);if(i=u+this._receivedLength,c&&c.byteLength>0){this._receivedLength+=c.byteLength;var l=mR()-this._startTime,f=oP(this._receivedLength,l);this.emit(pP,{speed:f,len:this._receivedLength,time:l,vid:this._vid,index:this._index,range:[i,u+this._receivedLength],priOptions:this._priOptions})}o=c,a=!((null===(s=this._range)||void 0===s?void 0:s.length)>1&&this._range[1]&&this._receivedLength<this._range[1]-this._range[0]),this._logger.debug("[xhr load done->], tast :",this._range,", start",i,"end ",u+this._receivedLength,",dataLen,",c?c.byteLength:0,",receivedLength",this._receivedLength,",index,",this._index,", done,",a)}else a=!0,o=e.target.response;var d={ok:r>=200&&r<300,status:r,statusText:this._xhr.statusText,url:this._xhr.responseURL,headers:this._getHeaders(this._xhr),body:this._xhr.response};this._transformResponse&&(d=this._transformResponse(d,this._url)||d),this._onProgress&&this._onProgress(o,a,{index:this._index,vid:this._vid,range:[i,u+this._receivedLength],startTime:this._startTime,endTime:mR(),priOptions:this._priOptions},d),a?(this._runing=!1,this._loadCompleteResolve&&this._loadCompleteResolve(iP(this._onProgress?null:o,a,d,d.headers["content-length"],d.headers.age,this._startTime,this._firstRtt,this._index,this._range,this._vid,this._priOptions))):this._startLoad()}},{key:"cancel",value:function(){if(!this._aborted)return this._aborted=!0,this._runing=!1,sA(eA(r.prototype),"removeAllListeners",this).call(this),this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions}),this._xhr?this._xhr.abort():void 0}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}},{key:"_getHeaders",value:function(e){var t,r,n={},i=lA(MT(t=e.getAllResponseHeaders()).call(t).split("\r\n"));try{for(i.s();!(r=i.n()).done;){var o=r.value.split(": ");n[o[0].toLowerCase()]=py(o).call(o,1).join(": ")}}catch(a){i.e(a)}finally{i.f()}return n}}],[{key:"isSupported",value:function(){return"undefined"!=typeof XMLHttpRequest}}]),r}(mx),mP=["retry","retryDelay","onRetryError","transformError"],_P=function(){function e(t,r){var n,i,o;WL(this,e),this.promise=((o=new Bg((function(e,t){n=e,i=t}))).used=!1,o.resolve=function(){return o.used=!0,n.apply(void 0,arguments)},o.reject=function(){return o.used=!0,i.apply(void 0,arguments)},o),this.alive=!!r.onProgress,!r.logger&&(r.logger=new qA("Loader")),this._loaderType=t,this._loader=t===QA&&"undefined"!=typeof fetch?new gP:new yP,this._config=r,this._retryCount=0,this._retryTimer=null,this._canceled=!1,this._retryCheckFunc=r.retryCheckFunc,this._logger=r.logger}var t;return XL(e,[{key:"exec",value:function(){var e=this,t=this._config,r=t.retry,n=t.retryDelay,i=t.onRetryError,o=t.transformError,a=oA(t,mP),u=function(){var t=YL(VL().mark((function t(){var s,c,l;return VL().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._loader.load(a);case 3:s=t.sent,e.promise.resolve(s),t.next=27;break;case 7:if(t.prev=7,t.t0=t.catch(0),e._loader.running=!1,e._logger.debug("[task request catch err]",t.t0),!e._canceled){t.next=13;break}return t.abrupt("return");case 13:if(t.t0.loaderType=e._loaderType,t.t0.retryCount=e._retryCount,c=t.t0,o&&(c=o(c)||c),i&&e._retryCount>0&&i(c,e._retryCount,{index:a.index,vid:a.vid,range:a.range,priOptions:a.priOptions}),e._retryCount++,l=!0,e._retryCheckFunc&&(l=e._retryCheckFunc(t.t0)),!(l&&e._retryCount<=r)){t.next=26;break}return clearTimeout(e._retryTimer),e._logger.debug("[task request setTimeout],retry",e._retryCount,",retry range,",a.range),e._retryTimer=lT(u,n),t.abrupt("return");case 26:e.promise.reject(c);case 27:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(){return t.apply(this,arguments)}}();return u(),this.promise}},{key:"cancel",value:(t=YL(VL().mark((function e(){return VL().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 bP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Bg((function(t){return lT(t,e)}))}var wP,kP=function(e){ZL(n,e);var t,r=uA(n);function n(e){var t;return WL(this,n),JL(aA(t=r.call(this,e)),"type",QA),JL(aA(t),"_queue",[]),JL(aA(t),"_alive",[]),JL(aA(t),"_currentTask",null),JL(aA(t),"_finnalUrl",""),JL(aA(t),"_config",void 0),t._config=function(e){return GL({loaderType:QA,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:KA,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!==YA&&gP.isSupported()||(t.type=YA),t.log=e.logger,t}return XL(n,[{key:"isFetch",value:function(){return this.type===QA}},{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=XS({},this._config,r)).params&&(r.params=XS({},r.params)),r.headers&&eP(r.headers)&&(r.headers=XS({},r.headers)),r.body&&eP(r.body)&&(r.body=XS({},r.body)),r.transformRequest&&(r=r.transformRequest(r)||r),r.logger=this.log;var n=new _P(this.type,r);return n.loader.on(pP,(function(e){t.emit(pP,e)})),this._queue.push(n),1!==this._queue.length||this._currentTask&&this._currentTask.running||this._processTask(),n.promise}},{key:"cancel",value:(t=YL(VL().mark((function e(){var t;return VL().wrap((function(e){for(var r,n,i;;)switch(e.prev=e.next){case 0:return t=Im(r=WS(n=this._queue).call(n,(function(e){return e.cancel()}))).call(r,WS(i=this._alive).call(i,(function(e){return e.cancel()}))),this._currentTask&&t.push(this._currentTask.cancel()),this._queue=[],this._alive=[],e.next=6,Bg.all(t);case 6:return e.next=8,bP();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=zl(n=e._alive).call(n,(function(t){return t&&t!==e._currentTask})));e._processTask()}))}}}],[{key:"isFetchSupport",value:function(){return gP.isSupported()}}]),n}(mx),SP="core.rtcstatechange",xP={},TP={},RP={exports:{}},OP=RP.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),t+=null!=e["network-id"]?" network-id %d":"%v",t+=null!=e["network-cost"]?" network-cost %d":"%v"}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){var t="mediaclk:";return t+=null!=e.id?"id=%s %s":"%v%s",t+=null!=e.mediaClockValue?"=%s":"",t+=null!=e.rateNumerator?" rate=%s":"",t+=null!=e.rateDenominator?"/%s":""}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};lf(wP=jl(OP)).call(wP,(function(e){var t=OP[e];lf(t).call(t,(function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}));var EP=RP.exports;!function(e,t){var r=function(e){return String(Number(e))===e?Number(e):e},n=function(e,t,n){var i=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:i&&!t[e.name]&&(t[e.name]={});var o=e.push?{}:i?t[e.name]:t;!function(e,t,n,i){if(i&&!n)t[i]=r(e[1]);else for(var o=0;o<n.length;o+=1)null!=e[o+1]&&(t[n[o]]=r(e[o+1]))}(n.match(e.reg),o,e.names,e.name),e.push&&t[e.push].push(o)},i=EP,o=Py(t=RegExp.prototype.test).call(t,/^([a-z])=(.*)/);e.parse=function(e){var t,r,a={},u=[],s=a;return lf(t=zl(r=e.split(/(\r\n|\r|\n)/)).call(r,o)).call(t,(function(e){var t=e[0],r=py(e).call(e,2);"m"===t&&(u.push({rtp:[],fmtp:[]}),s=u[u.length-1]);for(var o=0;o<(i[t]||[]).length;o+=1){var a=i[t][o];if(a.reg.test(r))return n(a,s,r)}})),a.media=u,a};var a=function(e,t){var n=t.split(/=(.+)/,2);return 2===n.length?e[n[0]]=r(n[1]):1===n.length&&t.length>1&&(e[n[0]]=void 0),e};e.parseParams=function(e){var t;return xA(t=e.split(/;\s?/)).call(t,a,{})},e.parseFmtpConfig=e.parseParams,e.parsePayloads=function(e){var t;return WS(t=e.toString().split(" ")).call(t,Number)},e.parseRemoteCandidates=function(e){for(var t,n=[],i=WS(t=e.split(" ")).call(t,r),o=0;o<i.length;o+=3)n.push({component:i[o],ip:i[o+1],port:i[o+2]});return n},e.parseImageAttributes=function(e){var t;return WS(t=e.split(" ")).call(t,(function(e){var t;return xA(t=e.substring(1,e.length-1).split(",")).call(t,a,{})}))},e.parseSimulcastStreamList=function(e){var t;return WS(t=e.split(";")).call(t,(function(e){var t;return WS(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}}))}))}}(TP);var LP=EP,AP=/%[sdv%]/g,PP=function(e){var t=1,r=arguments,n=r.length;return e.replace(AP,(function(e){if(t>=n)return e;var i=r[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(i);case"%d":return Number(i);case"%v":return""}}))},CP=function(e,t,r){var n=[e+"="+(t.format instanceof Function?t.format(t.push?r:r[t.name]):t.format)];if(t.names)for(var i=0;i<t.names.length;i+=1){var o=t.names[i];t.name?n.push(r[t.name][o]):n.push(r[t.names[i]])}else n.push(r[t.name]);return PP.apply(null,n)},jP=["v","o","s","i","u","e","p","c","b","t","r","z","a"],IP=["i","c","b","a"],UP=TP,MP=function(e,t){var r,n;t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),lf(r=e.media).call(r,(function(e){null==e.payloads&&(e.payloads="")}));var i=t.outerOrder||jP,o=t.innerOrder||IP,a=[];return lf(i).call(i,(function(t){var r;lf(r=LP[t]).call(r,(function(r){if(r.name in e&&null!=e[r.name])a.push(CP(t,r,e));else if(r.push in e&&null!=e[r.push]){var n;lf(n=e[r.push]).call(n,(function(e){a.push(CP(t,r,e))}))}}))})),lf(n=e.media).call(n,(function(e){a.push(CP("m",LP.m[0],e)),lf(o).call(o,(function(t){var r;lf(r=LP[t]).call(r,(function(r){if(r.name in e&&null!=e[r.name])a.push(CP(t,r,e));else if(r.push in e&&null!=e[r.push]){var n;lf(n=e[r.push]).call(n,(function(e){a.push(CP(t,r,e))}))}}))}))})),a.join("\r\n")+"\r\n"};function NP(e){return new Bg((function(t){var r;null===(r=e.getStats(null))||void 0===r||r.then((function(e){var r,n,i;t((n=[],i=[],lf(r=e).call(r,(function(e){"inbound-rtp"===e.type&&n.push(e),"remote-outbound-rtp"===e.type&&i.push(e)})),WS(n).call(n,(function(e){var t=r.get(e.codecId),n=r.get(e.trackId);return{type:e.mediaType,inboundRtp:e,remoteOutBoundRtp:Yk(i).call(i,(function(t){return t.mediaType===e.mediaType})),codec:t,track:n}}))))}))})).catch((function(){}))}function FP(e){var t,r,n,i,o,a,u,s,c,l,f,d,h,p,v,g,y,m,_,b,w,k,S,x,T,R,O,E,L,A,P,C=null==e?void 0:zl(e).call(e,(function(e){return"video"===e.type}))[0],j=null==e?void 0:zl(e).call(e,(function(e){return"audio"===e.type}))[0];return C&&C.remoteOutBoundRtp&&(A={bytesSent:C.remoteOutBoundRtp.bytesSent,packetsSent:C.remoteOutBoundRtp.packetsSent}),j&&j.remoteOutBoundRtp&&(P={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===(i=C.inboundRtp)||void 0===i?void 0:i.bytesReceived)||0,firCount:null===(o=C.inboundRtp)||void 0===o?void 0:o.firCount,pliCount:null===(a=C.inboundRtp)||void 0===a?void 0:a.pliCount,frameHeight:null===(u=C.inboundRtp)||void 0===u?void 0:u.frameHeight,frameWidth:null===(s=C.inboundRtp)||void 0===s?void 0:s.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===(k=j.inboundRtp)||void 0===k?void 0:k.bytesReceived)||0,audioLevel:null===(S=j.inboundRtp)||void 0===S?void 0:S.audioLevel,jitter:null===(x=j.inboundRtp)||void 0===x?void 0:x.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:A,audioRemote:P}}xP.write=MP,xP.parse=UP.parse,xP.parseParams=UP.parseParams,xP.parseFmtpConfig=UP.parseFmtpConfig,xP.parsePayloads=UP.parsePayloads,xP.parseRemoteCandidates=UP.parseRemoteCandidates,xP.parseImageAttributes=UP.parseImageAttributes,xP.parseSimulcastStreamList=UP.parseSimulcastStreamList;var DP=function(){function e(t,r){var n=this;gm(this,e),_m(this,"_pc",null),_m(this,"_lastVideoStats",null),_m(this,"_lastRemoteVideoStats",null),_m(this,"_timer",0),_m(this,"_timerInterval",0),_m(this,"_speedQueue",[]),_m(this,"_lostRateQueue",[]),_m(this,"_receivedRateQueue",[]),_m(this,"_currentSpeed",-1),_m(this,"_currentLostRate",-1),_m(this,"_currentReceivedRate",-1),_m(this,"_evaluate",vm(hm().mark((function e(){var t,r,i,o,a,u,s,c,l,f,d,h,p,v,g,y;return hm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,NP(n._pc).then((function(e){return FP(e)}));case 3:t=e.sent,n._lastVideoStats&&null!=t&&t.video&&(r=t.video,i=r.bytesReceived,o=r.packetsLost,a=r.packetsReceived,u=n._lastVideoStats,s=u.bytesReceived,c=u.packetsLost,l=u.packetsReceived,s&&n._cacheSpeed(8e3*(i-s)/n._timerInterval),f=o-c,(d=a-l)&&f>=0&&n._cacheLostRate(f/(f+d)*1e3/n._timerInterval)),n._lastRemoteVideoStats&&null!=t&&t.videoRemote&&(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 mm(e,[{key:"start",value:function(e){clearInterval(this._timer),this._pc&&(this._timer=cT(this._evaluate,e))}},{key:"getStats",value:function(){return this._speedQueue.length?{speed:OT(this._currentSpeed.toFixed(2)),avgSpeed:OT(this._getAvgSpeed().toFixed(2)),lostRate:OT(this._currentLostRate.toFixed(2)),avgLostRate:OT(this._getAvgLostRate().toFixed(2)),receivedRate:OT(this._currentReceivedRate.toFixed(2)),avgReceivedRate:OT(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=py(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=py(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=py(t=this._receivedRateQueue).call(t,5));this._receivedRateQueue.push(e)}},{key:"_getAvgSpeed",value:function(){var e;return-1===this._currentSpeed?-1:xA(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:xA(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:xA(e=this._receivedRateQueue).call(e,(function(e,t){return e+t}),0)/this._receivedRateQueue.length}}]),e}(),BP=function(e){return e[e.internal=0]="internal",e[e.external=1]="external",e[e.bypass=2]="bypass",e}(BP||{}),HP=new Uint8Array([109,167,53,190,103,90,72,1,170,89,63,164,194,199,19,85]),zP=new Uint8Array([109,167,53,190,103,90,72,1,170,89,63,164,194,199,19,84]);function qP(e){for(var t=[];e>=255;)e-=255,t.push(255);return t.push(e),new Uint8Array(t)}function GP(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=0;255===e[t]&&t<e.byteLength;)t++,r+=255;return t<e.byteLength&&(r+=e[t++]),[r,t]}var VP=function(){function e(){gm(this,e)}return mm(e,null,[{key:"generateSEI",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint8Array([0,0,0,1]),i=new Uint8Array([6]),o=new Uint8Array([5]),a=r?HP:zP,u=qP(e.byteLength+a.byteLength),s=function(e){for(var t=[],r=0;r<e.length;r++)e[r]<=3&&0===e[r-1]&&0===e[r-2]&&t.push(3),t.push(e[r]);return new Uint8Array(t)}(e);return new Uint8Array(Im(t=[]).call(t,Rm(n),Rm(i),Rm(o),Rm(u),Rm(a),Rm(s),[128]))}},{key:"decodeSeiBody",value:function(e){var t=function(e){for(var t=[],r=0;r<e.length;r++)e[r]<=3&&0===e[r-1]&&0===e[r-2]||t.push(e[r]);return new Uint8Array(t)}(e=py(e).call(e,0,e.length-1));if(!(t.byteLength<2)){var r=0;if(5===t[1]||100===t[1]){var n=Tm(GP(t,r+=2),2),i=n[0],o=2,a=(r=n[1])+i;return t.byteLength>=zP.byteLength&&i>=zP.byteLength&&py(t).call(t,r,r+zP.byteLength).toString()===zP.toString()?(r+=zP.byteLength,o=1):t.byteLength>=zP.byteLength&&i>=zP.byteLength&&py(t).call(t,r,r+HP.byteLength).toString()===HP.toString()&&(r+=HP.byteLength,o=0),{type:o,payload:py(t).call(t,r,a)}}}}},{key:"parseInternalSEI",value:function(e){var t=new zL,r=0;if(0===e.type){for(;e.payload.byteLength-r>=2;){var n=Tm(GP(e.payload,r),2),i=n[0];r=n[1];var o,a=Tm(GP(e.payload,r),2),u=a[0];if(r=a[1],t.get(i)||!(u<=e.payload.byteLength-r))break;t.set(i,py(o=e.payload).call(o,r,r+u)),r+=u}return t}}},{key:"makeInternalSei",value:function(e){var t,r=[],n=function(e,t){var r=void 0!==Sl&&Al(e)||e["@@iterator"];if(!r){if(Qy(e)||(r=Om(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}(e);try{for(n.s();!(t=n.n()).done;){var i=Tm(t.value,2),o=i[0],a=i[1],u=qP(o),s=qP(a.byteLength);r.push(u,s,a)}}catch(f){n.e(f)}finally{n.f()}var c=xA(r).call(r,(function(e,t){return e+t.byteLength}),0),l=new Uint8Array(c);return xA(r).call(r,(function(e,t){return l.set(t,e),e+t.byteLength}),0),l}}]),e}(),$P=function(){function e(){gm(this,e)}return mm(e,null,[{key:"getNalunits",value:function(t){if(t.length-t.position<4)return[];var r=t.position;return 1===t.getInt32(r)||0===t.getInt16(r)&&1===t.getInt8(r+2)?e.getAnnexbNals(t):e.getAvccNals(t)}},{key:"getAnnexbNals",value:function(t){for(var r=[],n=e.getHeaderPositionAnnexB(t),i=n.pos,o=i;i<t.length-4;){var a,u,s=new Uint8Array(py(a=t.buffer).call(a,i,i+n.headerLength));n.pos===t.position&&t.skip(n.headerLength),o=(n=e.getHeaderPositionAnnexB(t)).pos;var c={header:s,body:new Uint8Array(py(u=t.buffer).call(u,i+s.byteLength,o)),type:-1};e.analyseNal(c),c.type<=9&&0!==c.type&&r.push(c),t.skip(o-t.position),i=o}return r}},{key:"getAvccNals",value:function(t){for(var r=[];t.position<t.length-4;){var n=t.getInt32(t.position);if(!(t.length-t.position>=n))break;var i,o,a=new Uint8Array(py(i=t.buffer).call(i,t.position,t.position+4));t.skip(4);var u=new Uint8Array(py(o=t.buffer).call(o,t.position,t.position+n));t.skip(n);var s={header:a,body:u,type:-1};e.analyseNal(s),s.type<=9&&0!==s.type&&r.push(s)}return r}},{key:"analyseNal",value:function(e){var t=31&e.body[0];switch(e.type=t,t){case 1:e.ndr=!0;break;case 5:e.idr=!0;break;case 6:e.sei=!0;break;case 7:e.sps=!0;break;case 8:e.pps=!0}}},{key:"getHeaderPositionAnnexB",value:function(e){for(var t=e.position,r=0,n=e.length;3!==r&&4!==r&&t<n-4;)0===e.getInt16(t)?1===e.getInt16(t+2)?r=4:1===e.getInt8(t+2)?r=3:t++:t++;return t===n-4&&(0===e.getInt16(t)?1===e.getInt16(t+2)?r=4:t=n:(t++,0===e.getInt16(t)&&1===e.getInt8(t)?r=3:t=n)),{pos:t,headerLength:r}}}]),e}(),QP=function(){function e(t){gm(this,e),this._position=0,this._dataview=new DataView(t)}return mm(e,[{key:"length",get:function(){return this.buffer.byteLength}},{key:"buffer",get:function(){return this._dataview.buffer}},{key:"position",get:function(){return this._position},set:function(e){this._position=e}},{key:"back",value:function(e){this.position-=e}},{key:"getUint8",value:function(e){return this._dataview.getUint8(e)}},{key:"getInt8",value:function(e){return this._dataview.getInt8(e)}},{key:"getInt16",value:function(e){return this._dataview.getInt16(e)}},{key:"getUint16",value:function(e){return this._dataview.getUint16(e)}},{key:"getUint32",value:function(e){return this._dataview.getUint32(e)}},{key:"getInt32",value:function(e){return this._dataview.getInt32(e)}},{key:"skip",value:function(t){for(var r=Math.floor(t/4),n=t%4,i=0;i<r;i++)e.readByte(this,4);n>0&&e.readByte(this,n)}},{key:"readUint8",value:function(){return e.readByte(this,1)}},{key:"readUint16",value:function(){return e.readByte(this,2)}},{key:"readUint24",value:function(){return e.readByte(this,3)}},{key:"readUint32",value:function(){return e.readByte(this,4)}},{key:"readUint64",value:function(){return e.readByte(this,8)}},{key:"readInt8",value:function(){return e.readByte(this,1,!0)}},{key:"readInt16",value:function(){return e.readByte(this,2,!0)}},{key:"readInt32",value:function(){return e.readByte(this,4,!0)}},{key:"writeUint32",value:function(e){return new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e])}}],[{key:"readByte",value:function(e,t,r){var n;switch(t){case 1:n=r?e.getInt8(e.position):e.getUint8(e.position);break;case 2:n=r?e.getInt16(e.position):e.getUint16(e.position);break;case 3:if(r)throw new Error("not supported for readByte 3");n=e.getUint8(e.position)<<16,n|=e.getUint8(e.position+1)<<8,n|=e.getUint8(e.position+2);break;case 4:n=r?e.getInt32(e.position):e.getUint32(e.position);break;case 8:if(r)throw new Error("not supported for readBody 8");n=e.getUint32(e.position)<<32,n|=e.getUint32(e.position+4);break;default:n=""}return e.position+=t,n}}]),e}();function YP(){return!(!window.RTCPeerConnection||!window.RTCPeerConnection.prototype.addTransceiver)}var WP=new qA("rts"),KP=function(e){bm(i,e);var t,r,n=xm(i);function i(e){var t;return gm(this,i),_m(Sm(t=n.call(this)),"_url",""),_m(Sm(t),"_pc",null),_m(Sm(t),"_audioTransceicer",null),_m(Sm(t),"_videoTransceicer",null),_m(Sm(t),"_mediaStream",null),_m(Sm(t),"_media",null),_m(Sm(t),"_opts",null),_m(Sm(t),"_loader",null),_m(Sm(t),"_networkEvaluate",null),_m(Sm(t),"_retry",0),_m(Sm(t),"_waitingTimer",0),_m(Sm(t),"_rctConnectStartTs",0),_m(Sm(t),"_onTrack",(function(e){WP.log("addTrack: ",e.track,e.streams),t["_".concat(e.track.kind)]=e.track})),_m(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=lT((function(){var e;null!==(e=t._media)&&void 0!==e&&e.paused||t.emit("waiting")}),t._opts.stallInterval))})),_m(Sm(t),"_onLoadedData",(function(){WP.log("loadeddata emit"),t.getStatsSnapshoot().then((function(e){t.emit(dP,{type:"video",elapsed:mR()-t._rctConnectStartTs,meta:e.video}),t.emit(dP,{type:"audio",elapsed:mR()-t._rctConnectStartTs,meta:e.audio})}))})),_m(Sm(t),"_onLoaderRetry",(function(e,r){t.emit(fP,{error:NA.network(e),retryTime:r})})),t._opts=function(e){return dm({retryCount:0,retryDelay:1e3,loadTimeout:5e3,stallInterval:400,networkEvaluateInterval:1e3,delayHint:0,seamlesslyReload:!1},e)}(e),t._media=t._opts.media,t._loader=new kP(dm(dm({},e.fetchOptions),{},{responseType:"json",method:"POST",retry:t._opts.retryCount,retryDelay:t._opts.retryDelay,timeout:t._opts.loadTimeout,onRetryError:t._onLoaderRetry,logger:WP})),t._retry=t._opts.retryCount,t._bindMediaEvent(),t}return mm(i,[{key:"pc",get:function(){return this._pc}},{key:"audioTrack",get:function(){return this._audio}},{key:"videoTack",get:function(){return this._video}},{key:"loader",get:function(){return this._loader}},{key:"networkStats",get:function(){var e;return null===(e=this._networkEvaluate)||void 0===e?void 0:e.getStats()}},{key:"getStats",value:function(){return NP(this._pc)}},{key:"getStatsSnapshoot",value:function(){return this.getStats().then((function(e){return FP(e)}))}},{key:"load",value:(r=vm(hm().mark((function e(t){var r,n=this;return hm().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),lT((function(){return n._emitError(NA.create(IA,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(WP.warn("onconnectionstatechange:",t.connectionState),e.emit(SP,{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(NA.network(new Error("rtc connect failed")));e._retry--,e.load(e._url)}"connected"===t.connectionState&&(e._handleMediaStream(),e.emit(uP,{url:e._url,responseUrl:e._url,elapsed:mR()-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._audio&&this._mediaStream.addTrack(this._audio),this._video&&this._mediaStream.addTrack(this._video)}},{key:"initVideoEncodedTransform",value:function(){var e=this;if(this._videoTransceicer&&this._videoTransceicer.receiver){var t=this._videoTransceicer.receiver;if("undefined"!=typeof TransformStream&&"undefined"!=typeof RTCRtpReceiver&&void 0!==RTCRtpReceiver.prototype.createEncodedStreams){var r=t.createEncodedStreams(),n=r.readable,i=r.writable;n.pipeThrough(new TransformStream({transform:function(t,r){var n=$P.getNalunits(new QP(t.data));lf(n).call(n,(function(t){if(t.sei){var r=VP.decodeSeiBody(t.body);r&&r.type!==BP.internal&&e.emit(hP,{sei:{content:r.payload}})}})),r.enqueue(t)}})).pipeTo(i)}}else console.log("no receiver found when trying to bind encodedTransform")}},{key:"_bindMediaEvent",value:function(){this._media.addEventListener("timeupdate",this._mockWaitingByTimeupdate),this._media.addEventListener("loadeddata",this._onLoadedData)}},{key:"_connect",value:(t=vm(hm().mark((function e(){var t,r,n,i,o,a,u,s,c,l,f,d,h,p;return hm().wrap((function(e){for(var v,g,y,m;;)switch(e.prev=e.next){case 0:if(!(t=this._pc).addTransceiver){e.next=12;break}return this._audioTransceicer=t.addTransceiver("audio",{direction:"recvonly"}),this._videoTransceicer=t.addTransceiver("video",{direction:"recvonly"}),this.initVideoEncodedTransform(),(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=9,t.createOffer();case 9:r=e.sent,e.next=15;break;case 12:return e.next=14,t.createOffer({iceRestart:!0,offerToReceiveAudio:!0,offerToReceiveVideo:!0});case 14:r=e.sent;case 15:return WP.log("local offer"),WP.log(r.sdp),i=xP.parse(r.sdp),lf(v=zl(g=i.media).call(g,(function(e){return"audio"===e.type}))).call(v,(function(e){var t,r,n,i,o=null===(n=zl(t=e.rtp).call(t,(function(e){return"opus"===e.codec}))[0])||void 0===n?void 0:n.payload;o&&(lf(r=e.fmtp).call(r,(function(e){e.payload===o&&(e.config="minptime=10;stereo=1;useinbandfec=1")})),null===(i=e.rtcpFb)||void 0===i||i.push({payload:o,type:"nack"}))})),r.sdp=xP.write(i),WP.log("local offer modified:\n",r.sdp),e.next=23,t.setLocalDescription(r);case 23:return o=this._url,e.prev=24,this._opts.preProcessUrl&&(o=this._opts.preProcessUrl(o).url),this._loader.finnalUrl=o,s=/_?session_id=([^&$]+)/.exec(o),c=s?s[1]:mR()+"666",this.emit(sP,{url:o,offersdp:r.sdp,sessionId:c}),l=mR(),e.next=33,this._loader.load(o,{body:DR({sessionId:c,version:"1.0-html",localSdp:r})});case 33:if(f=e.sent,this.emit(cP,{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=41;break}return(h=NA.create(404===d.code?EA:OA,null,d)).errorType=TA,this._emitError(h),e.abrupt("return");case 41:if(200===(null==d?void 0:d.code)){e.next=43;break}throw new Error(Im(y="code: ".concat(null==d?void 0:d.code,", message:")).call(y,null==d?void 0:d.message));case 43:return WP.log("answer:"),WP.log(null===(a=d.remoteSdp)||void 0===a?void 0:a.sdp),this.emit(lP,{url:o,elapsed:mR()-l,answersdp:null===(u=d.remoteSdp)||void 0===u?void 0:u.sdp}),p=xP.parse(d.remoteSdp.sdp),lf(m=p.media).call(m,(function(e){e.fingerprint.hash=e.fingerprint.hash.toUpperCase()})),d.remoteSdp.sdp=xP.write(p),WP.log("answer modified:\n",d.remoteSdp.sdp),this._rctConnectStartTs=mR(),e.next=53,this._pc.setRemoteDescription(d.remoteSdp);case 53:this._networkEvaluate=new DP(t,this._opts.networkEvaluateInterval),e.next=59;break;case 56:e.prev=56,e.t0=e.catch(24),this._emitError(NA.network(e.t0));case 59:case"end":return e.stop()}}),e,this,[[24,56]])}))),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(aP,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(){qA.enable()}},{key:"disableLogger",value:function(){qA.disable()}}]),i}(mx);try{localStorage.getItem("xgd")?KP.enableLogger():KP.disableLogger()}catch(ZP){}var XP=function(e){bm(n,e);var t,r=xm(n);function n(){var e,t;gm(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return _m(Sm(t=r.call.apply(r,Im(e=[this]).call(e,o))),"_rts",null),_m(Sm(t),"_mediaStream",null),_m(Sm(t),"_rtsOpts",null),_m(Sm(t),"_onPause",(function(){var e,r,n;if(null!==(e=t._rts)&&void 0!==e&&e._pc){var i;if(null!==(r=t.config)&&void 0!==r&&r.seamlesslyReload)t._mediaStream=null===(i=t._rts)||void 0===i?void 0:i._mediaStream;null===(n=t._rts)||void 0===n||n.destroy()}})),_m(Sm(t),"_onPlay",(function(){var e;null!==(e=t._rts)&&void 0!==e&&e._pc||t._init()})),_m(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 KP(dm({media:t.player.video,mediaStream:t._mediaStream,preProcessUrl:function(e,r){var n,i;return(null===(n=(i=t.player).preProcessUrl)||void 0===n?void 0:n.call(i,e,r))||{url:e,ext:r}}},n)),t._rts.load(r.url)})),_m(Sm(t),"_onSwitchURL",(function(e){t._rts&&(t.player.config.url=e,t._rts.switchURL(e))})),_m(Sm(t),"destroy",(function(){var e;t.player.switchURL=t._originSwitchFn,null===(e=t._rts)||void 0===e||e.destroy()})),t}return mm(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.6"}},{key:"beforePlayerInit",value:function(){var e,t,r,n,i=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=i._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(sP),this._transCoreEvent(lP),this._transCoreEvent(uP),this._transCoreEvent(cP),this._transCoreEvent(fP),this._transCoreEvent(dP),this._transCoreEvent(hP),this._transCoreEvent(SP);try{UR.defineGetterOrSetter(this.player,{__url:{get:function(){try{return Lk.createObjectURL(new MediaSource)}catch(r){var e,t;null!==(e=i.player)&&void 0!==e&&null!==(t=e.video)&&void 0!==t&&t.srcObject||(i.player.video.srcObject=new MediaStream)}}}})}catch(o){}}},{key:"getStats",value:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.getStats()}},{key:"getStatsSnapshoot",value:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.getStatsSnapshoot()}},{key:"getNetWorkInfo",value:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.networkStats}},{key:"_transErrorEvent",value:function(){var e=this;this._rts.on(aP,(function(t){if(e.player){var r=new LR(e.player,t),n=e._rtsOpts,i=n.backupConstruct,o=n.backupURL;if(o){var a,u=e.player;u.emit("core_event",dm(dm({},{url:u.config.url,code:r.errorCode,message:r.message,httpCode:r.httpCode}),{},{eventName:"core.degrade"})),u.emit("degrade",{url:u.config.url,code:r.errorCode,message:r.message,httpCode:r.httpCode}),u.unRegisterPlugin("rts"),u.switchURL=e._originSwitchFn,e._rts=null,u.rts=null,null!==(a=u.video)&&void 0!==a&&a.srcObject&&(u.video.srcObject=null),u.config.url=o,i?u.registerPlugin(i).beforePlayerInit():u.video.src=o}else e.player.emit("error",r)}})),this._rts.on("waiting",(function(){var t;null===(t=e.player)||void 0===t||t.emit("waiting")}))}},{key:"_transCoreEvent",value:function(e){var t=this;this._rts.on(e,(function(r){t.player&&t.player.emit("core_event",dm(dm({},r),{},{eventName:e}))}))}}],[{key:"pluginName",get:function(){return"rts"}},{key:"isSupported",value:function(){return YP()}},{key:"getCapacity",value:function(){return function(){if(!YP())return Bg.reject("RTCPeerConnection no support");var e;try{(e=new RTCPeerConnection).addTransceiver("video",{direction:"recvonly"}),e.addTransceiver("audio",{direction:"recvonly"})}catch(t){return Bg.reject(null==t?void 0:t.message)}return e.createOffer().then((function(t){var r,n,i,o;WP.log(t.sdp);var a=xP.parse(t.sdp),u=null===(r=a.media)||void 0===r?void 0:zl(r).call(r,(function(e){return"video"===e.type}))[0],s=null===(n=a.media)||void 0===n?void 0:zl(n).call(n,(function(e){return"audio"===e.type}))[0],c=null==u||null===(i=u.rtp)||void 0===i?void 0:zl(i).call(i,(function(e){return"VP8"===e.codec||"VP9"===e.codec||"H264"===e.codec})),l=null==s||null===(o=s.rtp)||void 0===o?void 0:zl(o).call(o,(function(e){return"opus"===e.codec})),f=null==u?void 0:u.fmtp,d=null==s?void 0:s.fmtp;return f&&WS(c).call(c,(function(e){var t;e.config=null===(t=zl(f).call(f,(function(t){return t.payload===e.payload}))[0])||void 0===t?void 0:t.config})),d&&WS(l).call(l,(function(e){var t;e.config=null===(t=zl(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=vm(hm().mark((function e(t){var r,i,o,a,u;return hm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.getCapacity();case 3:if(i=e.sent,o=null===(r=i.video)||void 0===r?void 0:zl(r).call(r,(function(e){var r;return"H264"===e.codec&&(!t||-1!==Dk(r=e.config).call(r,t))})).length){e.next=10;break}return e.next=8,n.getCapacity();case 8:u=e.sent,o=null===(a=u.video)||void 0===a?void 0:zl(a).call(a,(function(e){var r;return"H264"===e.codec&&(!t||-1!==Dk(r=e.config).call(r,t))})).length;case 10:return e.abrupt("return",!!o);case 13:return e.prev=13,e.t0=e.catch(0),e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e,null,[[0,13]])}))),function(e){return t.apply(this,arguments)})}]),n}(UR),JP=window.VePlayer.DynamicModule;VePlayer.registerPlugin(JP.PluginRtm,{RtmPlugin:XP}),e.RtmPlugin=XP}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).__VEPLAYER_PLUGIN_RTM__={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n=function(e){return e&&e.Math==Math&&e},i=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),o=function(e){try{return!!e()}catch(t){return!0}},a=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),u=a,s=Function.prototype,c=s.apply,l=s.call,f="object"==typeof Reflect&&Reflect.apply||(u?l.bind(c):function(){return l.apply(c,arguments)}),d=a,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,k=g,S=function(e){if("Function"===w(e))return k(e)},x="object"==typeof document&&document.all,T={all:x,IS_HTMLDDA:void 0===x&&void 0!==x},R=T.all,O=T.IS_HTMLDDA?function(e){return"function"==typeof e||e===R}:function(e){return"function"==typeof e},E={},L=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),A=a,P=Function.prototype.call,C=A?P.bind(P):function(){return P.apply(P,arguments)},j={},I={}.propertyIsEnumerable,U=Object.getOwnPropertyDescriptor,M=U&&!I.call({1:2},1);j.f=M?function(e){var t=U(this,e);return!!t&&t.enumerable}:I;var N,F,D=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},B=o,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=i,ie=O,oe=function(e){return ie(e)?e:void 0},ae=function(e,t){return arguments.length<2?oe(re[e])||oe(ne[e]):re[e]&&re[e][t]||ne[e]&&ne[e][t]},ue=g({}.isPrototypeOf),se="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ce=i,le=se,fe=ce.process,de=ce.Deno,he=fe&&fe.versions||de&&de.version,pe=he&&he.v8;pe&&(F=(N=pe.split("."))[0]>0&&N[0]<4?1:+(N[0]+N[1])),!F&&le&&(!(N=le.match(/Edge\/(\d+)/))||N[1]>=74)&&(N=le.match(/Chrome\/(\d+)/))&&(F=+N[1]);var ve=F,ge=ve,ye=o,me=i.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,ke=O,Se=ue,xe=Object,Te=be?function(e){return"symbol"==typeof e}:function(e){var t=we("Symbol");return ke(t)&&Se(t.prototype,xe(e))},Re=String,Oe=function(e){try{return Re(e)}catch(t){return"Object"}},Ee=O,Le=Oe,Ae=TypeError,Pe=function(e){if(Ee(e))return e;throw Ae(Le(e)+" is not a function")},Ce=Pe,je=V,Ie=function(e,t){var r=e[t];return je(r)?void 0:Ce(r)},Ue=C,Me=O,Ne=ee,Fe=TypeError,De={exports:{}},Be=i,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=i[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)},it=$e,ot=Je,at=nt,ut=_e,st=be,ct=i.Symbol,lt=it("wks"),ft=st?ct.for||ct:ct&&ct.withoutSetter||at,dt=function(e){return ot(lt,e)||(lt[e]=ut&&ot(ct,e)?ct[e]:ft("Symbol."+e)),lt[e]},ht=C,pt=ee,vt=Te,gt=Ie,yt=function(e,t){var r,n;if("string"===t&&Me(r=e.toString)&&!Ne(n=Ue(r,e)))return n;if(Me(r=e.valueOf)&&!Ne(n=Ue(r,e)))return n;if("string"!==t&&Me(r=e.toString)&&!Ne(n=Ue(r,e)))return n;throw Fe("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,kt=function(e){var t=bt(e,"string");return wt(t)?t:t+""},St=ee,xt=i.document,Tt=St(xt)&&St(xt.createElement),Rt=function(e){return Tt?xt.createElement(e):{}},Ot=Rt,Et=!L&&!o((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),Lt=L,At=C,Pt=j,Ct=D,jt=X,It=kt,Ut=Je,Mt=Et,Nt=Object.getOwnPropertyDescriptor;E.f=Lt?Nt:function(e,t){if(e=jt(e),t=It(t),Mt)try{return Nt(e,t)}catch(r){}if(Ut(e,t))return Ct(!At(Pt.f,e,t),e[t])};var Ft=o,Dt=O,Bt=/#|\.prototype\./,Ht=function(e,t){var r=qt[zt(e)];return r==Vt||r!=Gt&&(Dt(t)?Ft(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=Pe,Yt=a,Wt=S(S.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&&o((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,ir=Et,or=Jt,ar=rr,ur=kt,sr=TypeError,cr=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,fr="enumerable",dr="configurable",hr="writable";Xt.f=nr?or?function(e,t,r){if(ar(e),t=ur(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=ur(t),ar(r),ir)try{return cr(e,t,r)}catch(n){}if("get"in r||"set"in r)throw sr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var 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=i,mr=f,_r=S,br=O,wr=E.f,kr=$t,Sr=te,xr=Kt,Tr=gr,Rr=Je,Or=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return mr(e,this,arguments)};return t.prototype=e.prototype,t},Er=function(e,t){var r,n,i,o,a,u,s,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?Sr:Sr[f]||Tr(Sr,f,{})[f],y=g.prototype;for(o in t)n=!(r=kr(d?o:f+(h?".":"#")+o,e.forced))&&v&&Rr(v,o),u=g[o],n&&(s=e.dontCallGetSet?(l=wr(v,o))&&l.value:v[o]),a=n&&s?s:t[o],n&&typeof u==typeof a||(c=e.bind&&n?xr(a,yr):e.wrap&&n?Or(a):p&&br(a)?_r(a):a,(e.sham||a&&a.sham||u&&u.sham)&&Tr(c,"sham",!0),Tr(g,o,c),p&&(Rr(Sr,i=f+"Prototype")||Tr(Sr,i,{}),Tr(Sr[i],o,a),e.real&&y&&(r||!y[o])&&Tr(y,o,a)))},Lr=b,Ar=Array.isArray||function(e){return"Array"==Lr(e)},Pr=Math.ceil,Cr=Math.floor,jr=Math.trunc||function(e){var t=+e;return(t>0?Cr:Pr)(t)},Ir=function(e){var t=+e;return t!=t||0===t?0:jr(t)},Ur=Ir,Mr=Math.min,Nr=function(e){return e>0?Mr(Ur(e),9007199254740991):0},Fr=Nr,Dr=function(e){return Fr(e.length)},Br=TypeError,Hr=function(e){if(e>9007199254740991)throw Br("Maximum allowed index exceeded");return e},zr=kt,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,un=o,sn=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(!sn(e))return!1;try{return hn(fn,dn,e),!0}catch(t){return!1}},mn=function(e){if(!sn(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||un((function(){var e;return yn(yn.call)||!yn(Object)||!yn((function(){e=!0}))||e}))?mn:yn,bn=Ar,wn=_n,kn=ee,Sn=dt("species"),xn=Array,Tn=function(e){var t;return bn(e)&&(t=e.constructor,(wn(t)&&(t===xn||bn(t.prototype))||kn(t)&&null===(t=t[Sn]))&&(t=void 0)),void 0===t?xn:t},Rn=function(e,t){return new(Tn(e))(0===t?0:t)},On=o,En=ve,Ln=dt("species"),An=function(e){return En>=51||!On((function(){var t=[];return(t.constructor={})[Ln]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Pn=Er,Cn=o,jn=Ar,In=ee,Un=We,Mn=Dr,Nn=Hr,Fn=Vr,Dn=Rn,Bn=An,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)};Pn({target:"Array",proto:!0,arity:1,forced:!qn||!Bn("concat")},{concat:function(e){var t,r,n,i,o,a=Un(this),u=Dn(a,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(Gn(o=-1===t?a:arguments[t]))for(i=Mn(o),Nn(s+i),r=0;r<i;r++,s++)r in o&&Fn(u,s,o[r]);else Nn(s+1),Fn(u,s++,o);return u.length=s,u}});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,ei=Jn,ti=Dr,ri=function(e){return function(t,r,n){var i,o=Zn(t),a=ti(o),u=ei(n,a);if(e&&r!=r){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((e||u in o)&&o[u]===r)return e||u||0;return!e&&-1}},ni={includes:ri(!0),indexOf:ri(!1)},ii={},oi=Je,ai=X,ui=ni.indexOf,si=ii,ci=g([].push),li=function(e,t){var r,n=ai(e),i=0,o=[];for(r in n)!oi(si,r)&&oi(n,r)&&ci(o,r);for(;t.length>i;)oi(n,r=t[i++])&&(~ui(o,r)||ci(o,r));return o},fi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],di=li,hi=fi,pi=Object.keys||function(e){return di(e,hi)},vi=L,gi=Jt,yi=Xt,mi=rr,_i=X,bi=pi;Yn.f=vi&&!gi?Object.defineProperties:function(e,t){mi(e);for(var r,n=_i(t),i=bi(t),o=i.length,a=0;o>a;)yi.f(e,r=i[a++],n[r]);return e};var wi,ki=ae("document","documentElement"),Si=nt,xi=$e("keys"),Ti=function(e){return xi[e]||(xi[e]=Si(e))},Ri=rr,Oi=Yn,Ei=fi,Li=ii,Ai=ki,Pi=Rt,Ci="prototype",ji="script",Ii=Ti("IE_PROTO"),Ui=function(){},Mi=function(e){return"<"+ji+">"+e+"</"+ji+">"},Ni=function(e){e.write(Mi("")),e.close();var t=e.parentWindow.Object;return e=null,t},Fi=function(){try{wi=new ActiveXObject("htmlfile")}catch(i){}var e,t,r;Fi="undefined"!=typeof document?document.domain&&wi?Ni(wi):(t=Pi("iframe"),r="java"+ji+":",t.style.display="none",Ai.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Mi("document.F=Object")),e.close(),e.F):Ni(wi);for(var n=Ei.length;n--;)delete Fi[Ci][Ei[n]];return Fi()};Li[Ii]=!0;var Di=Object.create||function(e,t){var r;return null!==e?(Ui[Ci]=Ri(e),r=new Ui,Ui[Ci]=null,r[Ii]=e):r=Fi(),void 0===t?r:Oi.f(r,t)},Bi={},Hi=li,zi=fi.concat("length","prototype");Bi.f=Object.getOwnPropertyNames||function(e){return Hi(e,zi)};var qi={},Gi=Jn,Vi=Dr,$i=Vr,Qi=Array,Yi=Math.max,Wi=function(e,t,r){for(var n=Vi(e),i=Gi(t,n),o=Gi(void 0===r?n:r,n),a=Qi(Yi(o-i,0)),u=0;i<o;i++,u++)$i(a,u,e[i]);return a.length=u,a},Ki=b,Xi=X,Ji=Bi.f,Zi=Wi,eo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];qi.f=function(e){return eo&&"Window"==Ki(e)?function(e){try{return Ji(e)}catch(t){return Zi(eo)}}(e):Ji(Xi(e))};var to={};to.f=Object.getOwnPropertySymbols;var ro=gr,no=function(e,t,r,n){return n&&n.enumerable?e[t]=r:ro(e,t,r),e},io=Xt,oo=function(e,t,r){return io.f(e,t,r)},ao={},uo=dt;ao.f=uo;var so,co,lo,fo=te,ho=Je,po=ao,vo=Xt.f,go=function(e){var t=fo.Symbol||(fo.Symbol={});ho(t,e)||vo(t,e,{value:po.f(e)})},yo=C,mo=ae,_o=dt,bo=no,wo=function(){var e=mo("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=_o("toPrimitive");t&&!t[n]&&bo(t,n,(function(e){return yo(r,this)}),{arity:1})},ko=en,So=Qr?{}.toString:function(){return"[object "+ko(this)+"]"},xo=Qr,To=Xt.f,Ro=gr,Oo=Je,Eo=So,Lo=dt("toStringTag"),Ao=function(e,t,r,n){if(e){var i=r?e:e.prototype;Oo(i,Lo)||To(i,Lo,{configurable:!0,value:t}),n&&!xo&&Ro(i,"toString",Eo)}},Po=O,Co=i.WeakMap,jo=Po(Co)&&/native code/.test(String(Co)),Io=i,Uo=ee,Mo=gr,No=Je,Fo=Ge,Do=Ti,Bo=ii,Ho="Object already initialized",zo=Io.TypeError,qo=Io.WeakMap;if(jo||Fo.state){var Go=Fo.state||(Fo.state=new qo);Go.get=Go.get,Go.has=Go.has,Go.set=Go.set,so=function(e,t){if(Go.has(e))throw zo(Ho);return t.facade=e,Go.set(e,t),t},co=function(e){return Go.get(e)||{}},lo=function(e){return Go.has(e)}}else{var Vo=Do("state");Bo[Vo]=!0,so=function(e,t){if(No(e,Vo))throw zo(Ho);return t.facade=e,Mo(e,Vo,t),t},co=function(e){return No(e,Vo)?e[Vo]:{}},lo=function(e){return No(e,Vo)}}var $o={set:so,get:co,has:lo,enforce:function(e){return lo(e)?co(e):so(e,{})},getterFor:function(e){return function(t){var r;if(!Uo(t)||(r=co(t)).type!==e)throw zo("Incompatible receiver, "+e+" required");return r}}},Qo=Kt,Yo=G,Wo=We,Ko=Dr,Xo=Rn,Jo=g([].push),Zo=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,o=6==e,a=7==e,u=5==e||o;return function(s,c,l,f){for(var d,h,p=Wo(s),v=Yo(p),g=Qo(c,l),y=Ko(v),m=0,_=f||Xo,b=t?_(s,y):r||a?_(s,0):void 0;y>m;m++)if((u||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:Jo(b,d)}else switch(e){case 4:return!1;case 7:Jo(b,d)}return o?-1:n||i?i:b}},ea={forEach:Zo(0),map:Zo(1),filter:Zo(2),some:Zo(3),every:Zo(4),find:Zo(5),findIndex:Zo(6),filterReject:Zo(7)},ta=Er,ra=i,na=C,ia=g,oa=L,aa=_e,ua=o,sa=Je,ca=ue,la=rr,fa=X,da=kt,ha=Qn,pa=D,va=Di,ga=pi,ya=Bi,ma=qi,_a=to,ba=E,wa=Xt,ka=Yn,Sa=j,xa=no,Ta=oo,Ra=$e,Oa=ii,Ea=nt,La=dt,Aa=ao,Pa=go,Ca=wo,ja=Ao,Ia=$o,Ua=ea.forEach,Ma=Ti("hidden"),Na="Symbol",Fa="prototype",Da=Ia.set,Ba=Ia.getterFor(Na),Ha=Object[Fa],za=ra.Symbol,qa=za&&za[Fa],Ga=ra.TypeError,Va=ra.QObject,$a=ba.f,Qa=wa.f,Ya=ma.f,Wa=Sa.f,Ka=ia([].push),Xa=Ra("symbols"),Ja=Ra("op-symbols"),Za=Ra("wks"),eu=!Va||!Va[Fa]||!Va[Fa].findChild,tu=oa&&ua((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,ru=function(e,t){var r=Xa[e]=va(qa);return Da(r,{type:Na,tag:e,description:t}),oa||(r.description=t),r},nu=function(e,t,r){e===Ha&&nu(Ja,t,r),la(e);var n=da(t);return la(r),sa(Xa,n)?(r.enumerable?(sa(e,Ma)&&e[Ma][n]&&(e[Ma][n]=!1),r=va(r,{enumerable:pa(0,!1)})):(sa(e,Ma)||Qa(e,Ma,pa(1,{})),e[Ma][n]=!0),tu(e,n,r)):Qa(e,n,r)},iu=function(e,t){la(e);var r=fa(t),n=ga(r).concat(su(r));return Ua(n,(function(t){oa&&!na(ou,r,t)||nu(e,t,r[t])})),e},ou=function(e){var t=da(e),r=na(Wa,this,t);return!(this===Ha&&sa(Xa,t)&&!sa(Ja,t))&&(!(r||!sa(this,t)||!sa(Xa,t)||sa(this,Ma)&&this[Ma][t])||r)},au=function(e,t){var r=fa(e),n=da(t);if(r!==Ha||!sa(Xa,n)||sa(Ja,n)){var i=$a(r,n);return!i||!sa(Xa,n)||sa(r,Ma)&&r[Ma][n]||(i.enumerable=!0),i}},uu=function(e){var t=Ya(fa(e)),r=[];return Ua(t,(function(e){sa(Xa,e)||sa(Oa,e)||Ka(r,e)})),r},su=function(e){var t=e===Ha,r=Ya(t?Ja:fa(e)),n=[];return Ua(r,(function(e){!sa(Xa,e)||t&&!sa(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),sa(this,Ma)&&sa(this[Ma],t)&&(this[Ma][t]=!1),tu(this,t,pa(1,e))};return oa&&eu&&tu(Ha,t,{configurable:!0,set:r}),ru(t,e)},xa(qa=za[Fa],"toString",(function(){return Ba(this).tag})),xa(za,"withoutSetter",(function(e){return ru(Ea(e),e)})),Sa.f=ou,wa.f=nu,ka.f=iu,ba.f=au,ya.f=ma.f=uu,_a.f=su,Aa.f=function(e){return ru(La(e),e)},oa&&Ta(qa,"description",{configurable:!0,get:function(){return Ba(this).description}})),ta({global:!0,constructor:!0,wrap:!0,forced:!aa,sham:!aa},{Symbol:za}),Ua(ga(Za),(function(e){Pa(e)})),ta({target:Na,stat:!0,forced:!aa},{useSetter:function(){eu=!0},useSimple:function(){eu=!1}}),ta({target:"Object",stat:!0,forced:!aa,sham:!oa},{create:function(e,t){return void 0===t?va(e):iu(va(e),t)},defineProperty:nu,defineProperties:iu,getOwnPropertyDescriptor:au}),ta({target:"Object",stat:!0,forced:!aa},{getOwnPropertyNames:uu}),Ca(),ja(za,Na),Oa[Ma]=!0;var cu=_e&&!!Symbol.for&&!!Symbol.keyFor,lu=Er,fu=ae,du=Je,hu=Qn,pu=$e,vu=cu,gu=pu("string-to-symbol-registry"),yu=pu("symbol-to-string-registry");lu({target:"Symbol",stat:!0,forced:!vu},{for:function(e){var t=hu(e);if(du(gu,t))return gu[t];var r=fu("Symbol")(t);return gu[t]=r,yu[r]=t,r}});var mu=Er,_u=Je,bu=Te,wu=Oe,ku=cu,Su=$e("symbol-to-string-registry");mu({target:"Symbol",stat:!0,forced:!ku},{keyFor:function(e){if(!bu(e))throw TypeError(wu(e)+" is not a symbol");if(_u(Su,e))return Su[e]}});var xu=g([].slice),Tu=Ar,Ru=O,Ou=b,Eu=Qn,Lu=g([].push),Au=Er,Pu=ae,Cu=f,ju=C,Iu=g,Uu=o,Mu=O,Nu=Te,Fu=xu,Du=function(e){if(Ru(e))return e;if(Tu(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];"string"==typeof i?Lu(r,i):"number"!=typeof i&&"Number"!=Ou(i)&&"String"!=Ou(i)||Lu(r,Eu(i))}var o=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(Tu(this))return t;for(var n=0;n<o;n++)if(r[n]===e)return t}}},Bu=_e,Hu=String,zu=Pu("JSON","stringify"),qu=Iu(/./.exec),Gu=Iu("".charAt),Vu=Iu("".charCodeAt),$u=Iu("".replace),Qu=Iu(1..toString),Yu=/[\uD800-\uDFFF]/g,Wu=/^[\uD800-\uDBFF]$/,Ku=/^[\uDC00-\uDFFF]$/,Xu=!Bu||Uu((function(){var e=Pu("Symbol")();return"[null]"!=zu([e])||"{}"!=zu({a:e})||"{}"!=zu(Object(e))})),Ju=Uu((function(){return'"\\udf06\\ud834"'!==zu("\udf06\ud834")||'"\\udead"'!==zu("\udead")})),Zu=function(e,t){var r=Fu(arguments),n=Du(t);if(Mu(n)||void 0!==e&&!Nu(e))return r[1]=function(e,t){if(Mu(n)&&(t=ju(n,this,Hu(e),t)),!Nu(t))return t},Cu(zu,null,r)},es=function(e,t,r){var n=Gu(r,t-1),i=Gu(r,t+1);return qu(Wu,e)&&!qu(Ku,i)||qu(Ku,e)&&!qu(Wu,n)?"\\u"+Qu(Vu(e,0),16):e};zu&&Au({target:"JSON",stat:!0,arity:3,forced:Xu||Ju},{stringify:function(e,t,r){var n=Fu(arguments),i=Cu(Xu?Zu:zu,null,n);return Ju&&"string"==typeof i?$u(i,Yu,es):i}});var ts=to,rs=We;Er({target:"Object",stat:!0,forced:!_e||o((function(){ts.f(1)}))},{getOwnPropertySymbols:function(e){var t=ts.f;return t?t(rs(e)):[]}}),go("asyncIterator"),go("hasInstance"),go("isConcatSpreadable"),go("iterator"),go("match"),go("matchAll"),go("replace"),go("search"),go("species"),go("split");var ns=wo;go("toPrimitive"),ns();var is=ae,os=Ao;go("toStringTag"),os(is("Symbol"),"Symbol"),go("unscopables"),Ao(i.JSON,"JSON",!0);var as,us,ss,cs=te.Symbol,ls={},fs=L,ds=Je,hs=Function.prototype,ps=fs&&Object.getOwnPropertyDescriptor,vs=ds(hs,"name"),gs={EXISTS:vs,PROPER:vs&&"something"===function(){}.name,CONFIGURABLE:vs&&(!fs||fs&&ps(hs,"name").configurable)},ys=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ms=Je,_s=O,bs=We,ws=ys,ks=Ti("IE_PROTO"),Ss=Object,xs=Ss.prototype,Ts=ws?Ss.getPrototypeOf:function(e){var t=bs(e);if(ms(t,ks))return t[ks];var r=t.constructor;return _s(r)&&t instanceof r?r.prototype:t instanceof Ss?xs:null},Rs=o,Os=O,Es=ee,Ls=Di,As=Ts,Ps=no,Cs=dt("iterator"),js=!1;[].keys&&("next"in(ss=[].keys())?(us=As(As(ss)))!==Object.prototype&&(as=us):js=!0);var Is=!Es(as)||Rs((function(){var e={};return as[Cs].call(e)!==e}));Os((as=Is?{}:Ls(as))[Cs])||Ps(as,Cs,(function(){return this}));var Us={IteratorPrototype:as,BUGGY_SAFARI_ITERATORS:js},Ms=Us.IteratorPrototype,Ns=Di,Fs=D,Ds=Ao,Bs=ls,Hs=function(){return this},zs=function(e,t,r,n){var i=t+" Iterator";return e.prototype=Ns(Ms,{next:Fs(+!n,r)}),Ds(e,i,!1,!0),Bs[i]=Hs,e},qs=g,Gs=Pe,Vs=O,$s=String,Qs=TypeError,Ys=function(e,t,r){try{return qs(Gs(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}},Ws=rr,Ks=function(e){if("object"==typeof e||Vs(e))return e;throw Qs("Can't set "+$s(e)+" as a prototype")},Xs=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Ys(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(n){}return function(r,n){return Ws(r),Ks(n),t?e(r,n):r.__proto__=n,r}}():void 0),Js=Er,Zs=C,ec=gs,tc=zs,rc=Ts,nc=Ao,ic=no,oc=ls,ac=Us,uc=ec.PROPER,sc=ac.BUGGY_SAFARI_ITERATORS,cc=dt("iterator"),lc="keys",fc="values",dc="entries",hc=function(){return this},pc=function(e,t,r,n,i,o,a){tc(r,t,n);var u,s,c,l=function(e){if(e===i&&v)return v;if(!sc&&e in 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"]||i&&h[i],v=!sc&&p||l(i),g="Array"==t&&h.entries||p;if(g&&(u=rc(g.call(new e)))!==Object.prototype&&u.next&&(nc(u,f,!0,!0),oc[f]=hc),uc&&i==fc&&p&&p.name!==fc&&(d=!0,v=function(){return Zs(p,this)}),i)if(s={values:l(fc),keys:o?v:l(lc),entries:l(dc)},a)for(c in s)(sc||d||!(c in h))&&ic(h,c,s[c]);else Js({target:t,proto:!0,forced:sc||d},s);return a&&h[cc]!==v&&ic(h,cc,v,{name:i}),oc[t]=v,s},vc=function(e,t){return{value:e,done:t}},gc=X,yc=ls,mc=$o;Xt.f;var _c=pc,bc=vc,wc="Array Iterator",kc=mc.set,Sc=mc.getterFor(wc);_c(Array,"Array",(function(e,t){kc(this,{type:wc,target:gc(e),index:0,kind:t})}),(function(){var e=Sc(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 xc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Tc=i,Rc=en,Oc=gr,Ec=ls,Lc=dt("toStringTag");for(var Ac in xc){var Pc=Tc[Ac],Cc=Pc&&Pc.prototype;Cc&&Rc(Cc)!==Lc&&Oc(Cc,Lc,Ac),Ec[Ac]=Ec.Array}var jc=cs;go("dispose");var Ic=jc;go("asyncDispose");var Uc=Er,Mc=g,Nc=ae("Symbol"),Fc=Nc.keyFor,Dc=Mc(Nc.prototype.valueOf);Uc({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==Fc(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(ZP){}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),i=n.length;r<i;r++)if(Kc[n[r]]==t)return!0}catch(ZP){}return!1}}),go("matcher"),go("metadataKey"),go("observable"),go("metadata"),go("patternMatch"),go("replaceAll");var tl=Ic,rl=r(tl),nl=g,il=Ir,ol=Qn,al=Y,ul=nl("".charAt),sl=nl("".charCodeAt),cl=nl("".slice),ll=function(e){return function(t,r){var n,i,o=ol(al(t)),a=il(r),u=o.length;return a<0||a>=u?e?"":void 0:(n=sl(o,a))<55296||n>56319||a+1===u||(i=sl(o,a+1))<56320||i>57343?e?ul(o,a):n:e?cl(o,a,a+2):i-56320+(n-55296<<10)+65536}},fl={codeAt:ll(!1),charAt:ll(!0)},dl=fl.charAt,hl=Qn,pl=$o,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=ao.f("iterator"),wl=r(bl);function kl(e){return(kl="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 Sl=r(tl),xl=en,Tl=Ie,Rl=V,Ol=ls,El=dt("iterator"),Ll=function(e){if(!Rl(e))return Tl(e,El)||Tl(e,"@@iterator")||Ol[xl(e)]},Al=r(Ll),Pl=We,Cl=pi;Er({target:"Object",stat:!0,forced:o((function(){Cl(1)}))},{keys:function(e){return Cl(Pl(e))}});var jl=r(te.Object.keys),Il=r(te.Object.getOwnPropertySymbols),Ul=ea.filter;Er({target:"Array",proto:!0,forced:!An("filter")},{filter:function(e){return Ul(this,e,arguments.length>1?arguments[1]:void 0)}});var Ml=te,Nl=function(e){return Ml[e+"Prototype"]},Fl=Nl("Array").filter,Dl=ue,Bl=Fl,Hl=Array.prototype,zl=r((function(e){var t=e.filter;return e===Hl||Dl(Hl,e)&&t===Hl.filter?Bl:t})),ql={exports:{}},Gl=Er,Vl=o,$l=X,Ql=E.f,Yl=L;Gl({target:"Object",stat:!0,forced:!Yl||Vl((function(){Ql(1)})),sham:!Yl},{getOwnPropertyDescriptor:function(e,t){return Ql($l(e),t)}});var Wl=te.Object,Kl=ql.exports=function(e,t){return Wl.getOwnPropertyDescriptor(e,t)};Wl.getOwnPropertyDescriptor.sham&&(Kl.sham=!0);var Xl=r(ql.exports),Jl=o,Zl=function(e,t){var r=[][e];return!!r&&Jl((function(){r.call(null,t||function(){return 1},1)}))},ef=ea.forEach,tf=Zl("forEach")?[].forEach:function(e){return ef(this,e,arguments.length>1?arguments[1]:void 0)};Er({target:"Array",proto:!0,forced:[].forEach!=tf},{forEach:tf});var rf=Nl("Array").forEach,nf=en,of=Je,af=ue,uf=rf,sf=Array.prototype,cf={DOMTokenList:!0,NodeList:!0},lf=r((function(e){var t=e.forEach;return e===sf||af(sf,e)&&t===sf.forEach||of(cf,nf(e))?uf:t})),ff=ae,df=Bi,hf=to,pf=rr,vf=g([].concat),gf=ff("Reflect","ownKeys")||function(e){var t=df.f(pf(e)),r=hf.f;return r?vf(t,r(e)):t},yf=gf,mf=X,_f=E,bf=Vr;Er({target:"Object",stat:!0,sham:!L},{getOwnPropertyDescriptors:function(e){for(var t,r,n=mf(e),i=_f.f,o=yf(n),a={},u=0;o.length>u;)void 0!==(r=i(n,t=o[u++]))&&bf(a,t,r);return a}});var wf=r(te.Object.getOwnPropertyDescriptors),kf={exports:{}},Sf=Er,xf=L,Tf=Yn.f;Sf({target:"Object",stat:!0,forced:Object.defineProperties!==Tf,sham:!xf},{defineProperties:Tf});var Rf=te.Object,Of=kf.exports=function(e,t){return Rf.defineProperties(e,t)};Rf.defineProperties.sham&&(Of.sham=!0);var Ef=r(kf.exports),Lf={exports:{}},Af=Er,Pf=L,Cf=Xt.f;Af({target:"Object",stat:!0,forced:Object.defineProperty!==Cf,sham:!Pf},{defineProperty:Cf});var jf=te.Object,If=Lf.exports=function(e,t,r){return jf.defineProperty(e,t,r)};jf.defineProperty.sham&&(If.sham=!0);var Uf=r(Lf.exports);Er({target:"Object",stat:!0,sham:!L},{create:Di});var Mf=te.Object,Nf=r((function(e,t){return Mf.create(e,t)})),Ff=We,Df=Ts,Bf=ys;Er({target:"Object",stat:!0,forced:o((function(){Df(1)})),sham:!Bf},{getPrototypeOf:function(e){return Df(Ff(e))}});var Hf=r(te.Object.getPrototypeOf);Er({target:"Object",stat:!0},{setPrototypeOf:Xs});var zf=r(te.Object.setPrototypeOf),qf=Je,Gf=gf,Vf=E,$f=Xt,Qf=ee,Yf=gr,Wf=Error,Kf=g("".replace),Xf=String(Wf("zxcasd").stack),Jf=/\n\s*at [^:]*:[^\n]*/,Zf=Jf.test(Xf),ed=D,td=!o((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",ed(1,7)),7!==e.stack)})),rd=gr,nd=function(e,t){if(Zf&&"string"==typeof e&&!Wf.prepareStackTrace)for(;t--;)e=Kf(e,Jf,"");return e},id=td,od=Error.captureStackTrace,ad=ls,ud=dt("iterator"),sd=Array.prototype,cd=function(e){return void 0!==e&&(ad.Array===e||sd[ud]===e)},ld=C,fd=Pe,dd=rr,hd=Oe,pd=Ll,vd=TypeError,gd=function(e,t){var r=arguments.length<2?pd(e):t;if(fd(r))return dd(ld(r,e));throw vd(hd(e)+" is not iterable")},yd=C,md=rr,_d=Ie,bd=function(e,t,r){var n,i;md(e);try{if(!(n=_d(e,"return"))){if("throw"===t)throw r;return r}n=yd(n,e)}catch(ZP){i=!0,n=ZP}if("throw"===t)throw r;if(i)throw n;return md(n),r},wd=Kt,kd=C,Sd=rr,xd=Oe,Td=cd,Rd=Dr,Od=ue,Ed=gd,Ld=Ll,Ad=bd,Pd=TypeError,Cd=function(e,t){this.stopped=e,this.result=t},jd=Cd.prototype,Id=function(e,t,r){var n,i,o,a,u,s,c,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=wd(t,l),g=function(e){return n&&Ad(n,"normal",e),new Cd(!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(!(i=Ld(e)))throw Pd(xd(e)+" is not iterable");if(Td(i)){for(o=0,a=Rd(e);a>o;o++)if((u=y(e[o]))&&Od(jd,u))return u;return new Cd(!1)}n=Ed(e,i)}for(s=d?e.next:n.next;!(c=kd(s,n)).done;){try{u=y(c.value)}catch(ZP){Ad(n,"throw",ZP)}if("object"==typeof u&&u&&Od(jd,u))return u}return new Cd(!1)},Ud=Qn,Md=Er,Nd=ue,Fd=Ts,Dd=Xs,Bd=function(e,t,r){for(var n=Gf(t),i=$f.f,o=Vf.f,a=0;a<n.length;a++){var u=n[a];qf(e,u)||r&&qf(r,u)||i(e,u,o(t,u))}},Hd=Di,zd=gr,qd=D,Gd=function(e,t){Qf(t)&&"cause"in t&&Yf(e,"cause",t.cause)},Vd=function(e,t,r,n){id&&(od?od(e,t):rd(e,"stack",nd(r,n)))},$d=Id,Qd=function(e,t){return void 0===e?arguments.length<2?"":t:Ud(e)},Yd=dt("toStringTag"),Wd=Error,Kd=[].push,Xd=function(e,t){var r,n=Nd(Jd,this);Dd?r=Dd(Wd(),n?Fd(this):Jd):(r=n?this:Hd(Jd),zd(r,Yd,"Error")),void 0!==t&&zd(r,"message",Qd(t)),Vd(r,Xd,r.stack,1),arguments.length>2&&Gd(r,arguments[2]);var i=[];return $d(e,Kd,{that:i}),zd(r,"errors",i),r};Dd?Dd(Xd,Wd):Bd(Xd,Wd,{name:!0});var Jd=Xd.prototype=Hd(Wd.prototype,{constructor:qd(1,Xd),message:qd(1,""),name:qd(1,"AggregateError")});Md({global:!0,constructor:!0,arity:2},{AggregateError:Xd});var Zd,eh,th,rh,nh="undefined"!=typeof process&&"process"==b(process),ih=ae,oh=oo,ah=L,uh=dt("species"),sh=function(e){var t=ih(e);ah&&t&&!t[uh]&&oh(t,uh,{configurable:!0,get:function(){return this}})},ch=ue,lh=TypeError,fh=function(e,t){if(ch(t,e))return e;throw lh("Incorrect invocation")},dh=_n,hh=Oe,ph=TypeError,vh=function(e){if(dh(e))return e;throw ph(hh(e)+" is not a constructor")},gh=rr,yh=vh,mh=V,_h=dt("species"),bh=function(e,t){var r,n=gh(e).constructor;return void 0===n||mh(r=gh(n)[_h])?t:yh(r)},wh=TypeError,kh=function(e,t){if(e<t)throw wh("Not enough arguments");return e},Sh=/(?:ipad|iphone|ipod).*applewebkit/i.test(se),xh=i,Th=f,Rh=Kt,Oh=O,Eh=Je,Lh=o,Ah=ki,Ph=xu,Ch=Rt,jh=kh,Ih=Sh,Uh=nh,Mh=xh.setImmediate,Nh=xh.clearImmediate,Fh=xh.process,Dh=xh.Dispatch,Bh=xh.Function,Hh=xh.MessageChannel,zh=xh.String,qh=0,Gh={},Vh="onreadystatechange";Lh((function(){Zd=xh.location}));var $h=function(e){if(Eh(Gh,e)){var t=Gh[e];delete Gh[e],t()}},Qh=function(e){return function(){$h(e)}},Yh=function(e){$h(e.data)},Wh=function(e){xh.postMessage(zh(e),Zd.protocol+"//"+Zd.host)};Mh&&Nh||(Mh=function(e){jh(arguments.length,1);var t=Oh(e)?e:Bh(e),r=Ph(arguments,1);return Gh[++qh]=function(){Th(t,void 0,r)},eh(qh),qh},Nh=function(e){delete Gh[e]},Uh?eh=function(e){Fh.nextTick(Qh(e))}:Dh&&Dh.now?eh=function(e){Dh.now(Qh(e))}:Hh&&!Ih?(rh=(th=new Hh).port2,th.port1.onmessage=Yh,eh=Rh(rh.postMessage,rh)):xh.addEventListener&&Oh(xh.postMessage)&&!xh.importScripts&&Zd&&"file:"!==Zd.protocol&&!Lh(Wh)?(eh=Wh,xh.addEventListener("message",Yh,!1)):eh=Vh in Ch("script")?function(e){Ah.appendChild(Ch("script"))[Vh]=function(){Ah.removeChild(this),$h(e)}}:function(e){setTimeout(Qh(e),0)});var Kh={set:Mh,clear:Nh},Xh=function(){this.head=null,this.tail=null};Xh.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 Jh,Zh,ep,tp,rp,np=Xh,ip=/ipad|iphone|ipod/i.test(se)&&"undefined"!=typeof Pebble,op=/web0s(?!.*chrome)/i.test(se),ap=i,up=Kt,sp=E.f,cp=Kh.set,lp=np,fp=Sh,dp=ip,hp=op,pp=nh,vp=ap.MutationObserver||ap.WebKitMutationObserver,gp=ap.document,yp=ap.process,mp=ap.Promise,_p=sp(ap,"queueMicrotask"),bp=_p&&_p.value;if(!bp){var wp=new lp,kp=function(){var e,t;for(pp&&(e=yp.domain)&&e.exit();t=wp.get();)try{t()}catch(ZP){throw wp.head&&Jh(),ZP}e&&e.enter()};fp||pp||hp||!vp||!gp?!dp&&mp&&mp.resolve?((tp=mp.resolve(void 0)).constructor=mp,rp=up(tp.then,tp),Jh=function(){rp(kp)}):pp?Jh=function(){yp.nextTick(kp)}:(cp=up(cp,ap),Jh=function(){cp(kp)}):(Zh=!0,ep=gp.createTextNode(""),new vp(kp).observe(ep,{characterData:!0}),Jh=function(){ep.data=Zh=!Zh}),bp=function(e){wp.head||Jh(),wp.add(e)}}var Sp=bp,xp=function(e){try{return{error:!1,value:e()}}catch(ZP){return{error:!0,value:ZP}}},Tp=i.Promise,Rp="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Op=!Rp&&!nh&&"object"==typeof window&&"object"==typeof document,Ep=i,Lp=Tp,Ap=O,Pp=$t,Cp=on,jp=dt,Ip=Op,Up=Rp,Mp=ve,Np=Lp&&Lp.prototype,Fp=jp("species"),Dp=!1,Bp=Ap(Ep.PromiseRejectionEvent),Hp={CONSTRUCTOR:Pp("Promise",(function(){var e=Cp(Lp),t=e!==String(Lp);if(!t&&66===Mp)return!0;if(!Np.catch||!Np.finally)return!0;if(!Mp||Mp<51||!/native code/.test(e)){var r=new Lp((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[Fp]=n,!(Dp=r.then((function(){}))instanceof n))return!0}return!t&&(Ip||Up)&&!Bp})),REJECTION_EVENT:Bp,SUBCLASSING:Dp},zp={},qp=Pe,Gp=TypeError,Vp=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw Gp("Bad Promise constructor");t=e,r=n})),this.resolve=qp(t),this.reject=qp(r)};zp.f=function(e){return new Vp(e)};var $p,Qp,Yp=Er,Wp=nh,Kp=i,Xp=C,Jp=no,Zp=Ao,ev=sh,tv=Pe,rv=O,nv=ee,iv=fh,ov=bh,av=Kh.set,uv=Sp,sv=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(ZP){}},cv=xp,lv=np,fv=$o,dv=Tp,hv=Hp,pv=zp,vv="Promise",gv=hv.CONSTRUCTOR,yv=hv.REJECTION_EVENT,mv=fv.getterFor(vv),_v=fv.set,bv=dv&&dv.prototype,wv=dv,kv=bv,Sv=Kp.TypeError,xv=Kp.document,Tv=Kp.process,Rv=pv.f,Ov=Rv,Ev=!!(xv&&xv.createEvent&&Kp.dispatchEvent),Lv="unhandledrejection",Av=function(e){var t;return!(!nv(e)||!rv(t=e.then))&&t},Pv=function(e,t){var r,n,i,o=t.value,a=1==t.state,u=a?e.ok:e.fail,s=e.resolve,c=e.reject,l=e.domain;try{u?(a||(2===t.rejection&&Mv(t),t.rejection=1),!0===u?r=o:(l&&l.enter(),r=u(o),l&&(l.exit(),i=!0)),r===e.promise?c(Sv("Promise-chain cycle")):(n=Av(r))?Xp(n,r,s,c):s(r)):c(o)}catch(ZP){l&&!i&&l.exit(),c(ZP)}},Cv=function(e,t){e.notified||(e.notified=!0,uv((function(){for(var r,n=e.reactions;r=n.get();)Pv(r,e);e.notified=!1,t&&!e.rejection&&Iv(e)})))},jv=function(e,t,r){var n,i;Ev?((n=xv.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Kp.dispatchEvent(n)):n={promise:t,reason:r},!yv&&(i=Kp["on"+e])?i(n):e===Lv&&sv("Unhandled promise rejection",r)},Iv=function(e){Xp(av,Kp,(function(){var t,r=e.facade,n=e.value;if(Uv(e)&&(t=cv((function(){Wp?Tv.emit("unhandledRejection",n,r):jv(Lv,r,n)})),e.rejection=Wp||Uv(e)?2:1,t.error))throw t.value}))},Uv=function(e){return 1!==e.rejection&&!e.parent},Mv=function(e){Xp(av,Kp,(function(){var t=e.facade;Wp?Tv.emit("rejectionHandled",t):jv("rejectionhandled",t,e.value)}))},Nv=function(e,t,r){return function(n){e(t,n,r)}},Fv=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Cv(e,!0))},Dv=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=Av(t);n?uv((function(){var r={done:!1};try{Xp(n,t,Nv(Dv,r,e),Nv(Fv,r,e))}catch(ZP){Fv(r,ZP,e)}})):(e.value=t,e.state=1,Cv(e,!1))}catch(ZP){Fv({done:!1},ZP,e)}}};gv&&(kv=(wv=function(e){iv(this,kv),tv(e),Xp($p,this);var t=mv(this);try{e(Nv(Dv,t),Nv(Fv,t))}catch(ZP){Fv(t,ZP)}}).prototype,($p=function(e){_v(this,{type:vv,done:!1,notified:!1,parent:!1,reactions:new lv,rejection:!1,state:0,value:void 0})}).prototype=Jp(kv,"then",(function(e,t){var r=mv(this),n=Rv(ov(this,wv));return r.parent=!0,n.ok=!rv(e)||e,n.fail=rv(t)&&t,n.domain=Wp?Tv.domain:void 0,0==r.state?r.reactions.add(n):uv((function(){Pv(n,r)})),n.promise})),Qp=function(){var e=new $p,t=mv(e);this.promise=e,this.resolve=Nv(Dv,t),this.reject=Nv(Fv,t)},pv.f=Rv=function(e){return e===wv||undefined===e?new Qp(e):Ov(e)}),Yp({global:!0,constructor:!0,wrap:!0,forced:gv},{Promise:wv}),Zp(wv,vv,!1,!0),ev(vv);var Bv=dt("iterator"),Hv=!1;try{var zv=0,qv={next:function(){return{done:!!zv++}},return:function(){Hv=!0}};qv[Bv]=function(){return this},Array.from(qv,(function(){throw 2}))}catch(ZP){}var Gv=function(e,t){if(!t&&!Hv)return!1;var r=!1;try{var n={};n[Bv]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(ZP){}return r},Vv=Tp,$v=Hp.CONSTRUCTOR||!Gv((function(e){Vv.all(e).then(void 0,(function(){}))})),Qv=C,Yv=Pe,Wv=zp,Kv=xp,Xv=Id;Er({target:"Promise",stat:!0,forced:$v},{all:function(e){var t=this,r=Wv.f(t),n=r.resolve,i=r.reject,o=Kv((function(){var r=Yv(t.resolve),o=[],a=0,u=1;Xv(e,(function(e){var s=a++,c=!1;u++,Qv(r,t,e).then((function(e){c||(c=!0,o[s]=e,--u||n(o))}),i)})),--u||n(o)}));return o.error&&i(o.value),r.promise}});var Jv=Er,Zv=Hp.CONSTRUCTOR;Tp&&Tp.prototype,Jv({target:"Promise",proto:!0,forced:Zv,real:!0},{catch:function(e){return this.then(void 0,e)}});var eg=C,tg=Pe,rg=zp,ng=xp,ig=Id;Er({target:"Promise",stat:!0,forced:$v},{race:function(e){var t=this,r=rg.f(t),n=r.reject,i=ng((function(){var i=tg(t.resolve);ig(e,(function(e){eg(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var og=C,ag=zp;Er({target:"Promise",stat:!0,forced:Hp.CONSTRUCTOR},{reject:function(e){var t=ag.f(this);return og(t.reject,void 0,e),t.promise}});var ug=rr,sg=ee,cg=zp,lg=function(e,t){if(ug(e),sg(t)&&t.constructor===e)return t;var r=cg.f(e);return(0,r.resolve)(t),r.promise},fg=Er,dg=Tp,hg=Hp.CONSTRUCTOR,pg=lg,vg=ae("Promise"),gg=!hg;fg({target:"Promise",stat:!0,forced:true},{resolve:function(e){return pg(gg&&this===vg?dg:this,e)}});var yg=C,mg=Pe,_g=zp,bg=xp,wg=Id;Er({target:"Promise",stat:!0,forced:$v},{allSettled:function(e){var t=this,r=_g.f(t),n=r.resolve,i=r.reject,o=bg((function(){var r=mg(t.resolve),i=[],o=0,a=1;wg(e,(function(e){var u=o++,s=!1;a++,yg(r,t,e).then((function(e){s||(s=!0,i[u]={status:"fulfilled",value:e},--a||n(i))}),(function(e){s||(s=!0,i[u]={status:"rejected",reason:e},--a||n(i))}))})),--a||n(i)}));return o.error&&i(o.value),r.promise}});var kg=C,Sg=Pe,xg=ae,Tg=zp,Rg=xp,Og=Id,Eg="No one promise resolved";Er({target:"Promise",stat:!0,forced:$v},{any:function(e){var t=this,r=xg("AggregateError"),n=Tg.f(t),i=n.resolve,o=n.reject,a=Rg((function(){var n=Sg(t.resolve),a=[],u=0,s=1,c=!1;Og(e,(function(e){var l=u++,f=!1;s++,kg(n,t,e).then((function(e){f||c||(c=!0,i(e))}),(function(e){f||c||(f=!0,a[l]=e,--s||o(new r(a,Eg)))}))})),--s||o(new r(a,Eg))}));return a.error&&o(a.value),n.promise}});var Lg=Er,Ag=Tp,Pg=o,Cg=ae,jg=O,Ig=bh,Ug=lg,Mg=Ag&&Ag.prototype;Lg({target:"Promise",proto:!0,real:!0,forced:!!Ag&&Pg((function(){Mg.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=Ig(this,Cg("Promise")),r=jg(e);return this.then(r?function(r){return Ug(t,e()).then((function(){return r}))}:e,r?function(r){return Ug(t,e()).then((function(){throw r}))}:e)}});var Ng=te.Promise,Fg=zp,Dg=xp;Er({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Fg.f(this),r=Dg(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}});var Bg=r(Ng),Hg=Er,zg=Ar,qg=g([].reverse),Gg=[1,2];Hg({target:"Array",proto:!0,forced:String(Gg)===String(Gg.reverse())},{reverse:function(){return zg(this)&&(this.length=this.length),qg(this)}});var Vg=Nl("Array").reverse,$g=ue,Qg=Vg,Yg=Array.prototype,Wg=r((function(e){var t=e.reverse;return e===Yg||$g(Yg,e)&&t===Yg.reverse?Qg:t})),Kg=Er,Xg=Ar,Jg=_n,Zg=ee,ey=Jn,ty=Dr,ry=X,ny=Vr,iy=dt,oy=xu,ay=An("slice"),uy=iy("species"),sy=Array,cy=Math.max;Kg({target:"Array",proto:!0,forced:!ay},{slice:function(e,t){var r,n,i,o=ry(this),a=ty(o),u=ey(e,a),s=ey(void 0===t?a:t,a);if(Xg(o)&&(r=o.constructor,(Jg(r)&&(r===sy||Xg(r.prototype))||Zg(r)&&null===(r=r[uy]))&&(r=void 0),r===sy||void 0===r))return oy(o,u,s);for(n=new(void 0===r?sy:r)(cy(s-u,0)),i=0;u<s;u++,i++)u in o&&ny(n,i,o[u]);return n.length=i,n}});var ly=Nl("Array").slice,fy=ue,dy=ly,hy=Array.prototype,py=r((function(e){var t=e.slice;return e===hy||fy(hy,e)&&t===hy.slice?dy:t})),vy=g,gy=Pe,yy=ee,my=Je,_y=xu,by=a,wy=Function,ky=vy([].concat),Sy=vy([].join),xy={},Ty=by?wy.bind:function(e){var t=gy(this),r=t.prototype,n=_y(arguments,1),i=function(){var r=ky(n,_y(arguments));return this instanceof i?function(e,t,r){if(!my(xy,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";xy[t]=wy("C,a","return new C("+Sy(n,",")+")")}return xy[t](e,r)}(t,r.length,r):t.apply(e,r)};return yy(r)&&(i.prototype=r),i},Ry=Ty;Er({target:"Function",proto:!0,forced:Function.bind!==Ry},{bind:Ry});var Oy=Nl("Function").bind,Ey=ue,Ly=Oy,Ay=Function.prototype,Py=r((function(e){var t=e.bind;return e===Ay||Ey(Ay,e)&&t===Ay.bind?Ly:t})),Cy=Er,jy=f,Iy=Ty,Uy=vh,My=rr,Ny=ee,Fy=Di,Dy=o,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){Uy(e),My(t);var r=arguments.length<3?e:Uy(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 i=r.prototype,o=Fy(Ny(i)?i:Hy),a=jy(e,o,t);return Ny(a)?a:o}});var $y=r(te.Reflect.construct);Er({target:"Array",stat:!0},{isArray:Ar});var Qy=r(te.Array.isArray),Yy=rr,Wy=bd,Ky=Kt,Xy=C,Jy=We,Zy=function(e,t,r,n){try{return n?t(Yy(r)[0],r[1]):t(r)}catch(ZP){Wy(e,"throw",ZP)}},em=cd,tm=_n,rm=Dr,nm=Vr,im=gd,om=Ll,am=Array,um=function(e){var t=Jy(e),r=tm(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Ky(i,n>2?arguments[2]:void 0));var a,u,s,c,l,f,d=om(t),h=0;if(!d||this===am&&em(d))for(a=rm(t),u=r?new this(a):am(a);a>h;h++)f=o?i(t[h],h):t[h],nm(u,h,f);else for(l=(c=im(t,d)).next,u=r?new this:[];!(s=Xy(l,c)).done;h++)f=o?Zy(c,i,[s.value,h],!0):s.value,nm(u,h,f);return u.length=h,u},sm=um;Er({target:"Array",stat:!0,forced:!Gv((function(e){Array.from(e)}))},{from:sm});var cm=r(te.Array.from),lm=r(ao.f("toPrimitive"));function fm(e,t){var r=jl(e);if(Il){var n=Il(e);t&&(n=zl(n).call(n,(function(t){return Xl(e,t).enumerable}))),r.push.apply(r,n)}return r}function dm(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?lf(r=fm(Object(i),!0)).call(r,(function(t){_m(e,t,i[t])})):wf?Ef(e,wf(i)):lf(n=fm(Object(i))).call(n,(function(t){Uf(e,t,Xl(i,t))}))}return e}function hm(){hm=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Uf||function(e,t,r){e[t]=r.value},i="function"==typeof Sl?Sl:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Uf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(O){s=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var o=t&&t.prototype instanceof d?t:d,a=Nf(o.prototype),u=new x(i||[]);return n(a,"_invoke",{value:b(e,r,u)}),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={};s(v,o,(function(){return this}));var g=Hf&&Hf(Hf(T([])));g&&g!==t&&r.call(g,o)&&(v=g);var y=p.prototype=d.prototype=Nf(v);function m(e){var t;lf(t=["next","throw","return"]).call(t,(function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(n,o,a,u){var s=l(e[n],e,o);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==kl(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,u)}),(function(e){i("throw",e,a,u)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,u)}))}u(s.arg)}var o;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return o=o?o.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],lf(e).call(e,k,this),this.reset(!0)}function T(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next: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=s(p,u,"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 zf?zf(e,p):(e.__proto__=p,s(e,u,"GeneratorFunction")),e.prototype=Nf(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),s(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Bg);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),s(y,u,"Generator"),s(y,o,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return Wg(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,x.prototype={constructor:x,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,lf(t=this.tryEntries).call(t,S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+py(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function pm(e,t,r,n,i,o,a){try{var u=e[o](a),s=u.value}catch(ZP){return void r(ZP)}u.done?t(s):Bg.resolve(s).then(n,i)}function vm(e){return function(){var t=this,r=arguments;return new Bg((function(n,i){var o=e.apply(t,r);function a(e){pm(o,n,i,a,u,"next",e)}function u(e){pm(o,n,i,a,u,"throw",e)}a(void 0)}))}}function gm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ym(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),Uf(e,Lm(n.key),n)}}function mm(e,t,r){return t&&ym(e.prototype,t),r&&ym(e,r),Uf(e,"prototype",{writable:!1}),e}function _m(e,t,r){return(t=Lm(t))in e?Uf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Nf(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Uf(e,"prototype",{writable:!1}),t&&km(e,t)}function wm(e){var t;return(wm=zf?Py(t=Hf).call(t):function(e){return e.__proto__||Hf(e)})(e)}function km(e,t){var r;return(km=zf?Py(r=zf).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 xm(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=wm(e);if(t){var i=wm(this).constructor;r=$y(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===kl(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 Tm(e,t){return function(e){if(Qy(e))return e}(e)||function(e,t){var r=null==e?null:void 0!==Sl&&Al(e)||e["@@iterator"];if(null!=r){var n,i,o,a,u=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(l){c=!0,i=l}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(e,t)||Om(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rm(e){return function(e){if(Qy(e))return Em(e)}(e)||function(e){if(void 0!==Sl&&null!=Al(e)||null!=e["@@iterator"])return cm(e)}(e)||Om(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 Om(e,t){var r;if(e){if("string"==typeof e)return Em(e,t);var n=py(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?cm(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Em(e,t):void 0}}function Em(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 Lm(e){var t=function(e,t){if("object"!==kl(e)||null===e)return e;var r=e[lm];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==kl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kl(t)?t:String(t)}var Am=Nl("Array").concat,Pm=ue,Cm=Am,jm=Array.prototype,Im=r((function(e){var t=e.concat;return e===jm||Pm(jm,e)&&t===jm.concat?Cm:t})),Um=o,Mm=dt("iterator"),Nm=!Um((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[Mm]||"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})),Fm=L,Dm=g,Bm=C,Hm=o,zm=pi,qm=to,Gm=j,Vm=We,$m=G,Qm=Object.assign,Ym=Object.defineProperty,Wm=Dm([].concat),Km=!Qm||Hm((function(){if(Fm&&1!==Qm({b:1},Qm(Ym({},"a",{enumerable:!0,get:function(){Ym(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!=Qm({},e)[r]||zm(Qm({},t)).join("")!=n}))?function(e,t){for(var r=Vm(e),n=arguments.length,i=1,o=qm.f,a=Gm.f;n>i;)for(var u,s=$m(arguments[i++]),c=o?Wm(zm(s),o(s)):zm(s),l=c.length,f=0;l>f;)u=c[f++],Fm&&!Bm(a,s,u)||(r[u]=s[u]);return r}:Qm,Xm=g,Jm=2147483647,Zm=/[^\0-\u007E]/,e_=/[.\u3002\uFF0E\uFF61]/g,t_="Overflow: input needs wider integers to process",r_=RangeError,n_=Xm(e_.exec),i_=Math.floor,o_=String.fromCharCode,a_=Xm("".charCodeAt),u_=Xm([].join),s_=Xm([].push),c_=Xm("".replace),l_=Xm("".split),f_=Xm("".toLowerCase),d_=function(e){return e+22+75*(e<26)},h_=function(e,t,r){var n=0;for(e=r?i_(e/700):e>>1,e+=i_(e/t);e>455;)e=i_(e/35),n+=36;return i_(n+36*e/(e+38))},p_=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=a_(e,r++);if(i>=55296&&i<=56319&&r<n){var o=a_(e,r++);56320==(64512&o)?s_(t,((1023&i)<<10)+(1023&o)+65536):(s_(t,i),r--)}else s_(t,i)}return t}(e);var r,n,i=e.length,o=128,a=0,u=72;for(r=0;r<e.length;r++)(n=e[r])<128&&s_(t,o_(n));var s=t.length,c=s;for(s&&s_(t,"-");c<i;){var l=Jm;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<l&&(l=n);var f=c+1;if(l-o>i_((Jm-a)/f))throw r_(t_);for(a+=(l-o)*f,o=l,r=0;r<e.length;r++){if((n=e[r])<o&&++a>Jm)throw r_(t_);if(n==o){for(var d=a,h=36;;){var p=h<=u?1:h>=u+26?26:h-u;if(d<p)break;var v=d-p,g=36-p;s_(t,o_(d_(p+v%g))),d=i_(v/g),h+=36}s_(t,o_(d_(d))),u=h_(a,f,c==s),a=0,c++}}a++,o++}return u_(t,"")},v_=no,g_=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:v_(e,n,t[n],r);return e},y_=Wi,m_=Math.floor,__=function(e,t){var r=e.length,n=m_(r/2);return r<8?b_(e,t):w_(e,__(y_(e,0,n),t),__(y_(e,n),t),t)},b_=function(e,t){for(var r,n,i=e.length,o=1;o<i;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},w_=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,u=0;a<i||u<o;)e[a+u]=a<i&&u<o?n(t[a],r[u])<=0?t[a++]:r[u++]:a<i?t[a++]:r[u++];return e},k_=__,S_=Er,x_=i,T_=C,R_=g,O_=L,E_=Nm,L_=no,A_=oo,P_=g_,C_=Ao,j_=zs,I_=$o,U_=fh,M_=O,N_=Je,F_=Kt,D_=en,B_=rr,H_=ee,z_=Qn,q_=Di,G_=D,V_=gd,$_=Ll,Q_=kh,Y_=k_,W_=dt("iterator"),K_="URLSearchParams",X_=K_+"Iterator",J_=I_.set,Z_=I_.getterFor(K_),eb=I_.getterFor(X_),tb=Object.getOwnPropertyDescriptor,rb=function(e){if(!O_)return x_[e];var t=tb(x_,e);return t&&t.value},nb=rb("fetch"),ib=rb("Request"),ob=rb("Headers"),ab=ib&&ib.prototype,ub=ob&&ob.prototype,sb=x_.RegExp,cb=x_.TypeError,lb=x_.decodeURIComponent,fb=x_.encodeURIComponent,db=R_("".charAt),hb=R_([].join),pb=R_([].push),vb=R_("".replace),gb=R_([].shift),yb=R_([].splice),mb=R_("".split),_b=R_("".slice),bb=/\+/g,wb=Array(4),kb=function(e){return wb[e-1]||(wb[e-1]=sb("((?:%[\\da-f]{2}){"+e+"})","gi"))},Sb=function(e){try{return lb(e)}catch(ZP){return e}},xb=function(e){var t=vb(e,bb," "),r=4;try{return lb(t)}catch(ZP){for(;r;)t=vb(t,kb(r--),Sb);return t}},Tb=/[!'()~]|%20/g,Rb={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Ob=function(e){return Rb[e]},Eb=function(e){return vb(fb(e),Tb,Ob)},Lb=j_((function(e,t){J_(this,{type:X_,iterator:V_(Z_(e).entries),kind:t})}),"Iterator",(function(){var e=eb(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),Ab=function(e){this.entries=[],this.url=null,void 0!==e&&(H_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===db(e,0)?_b(e,1):e:z_(e)))};Ab.prototype={type:K_,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,u,s=$_(e);if(s)for(r=(t=V_(e,s)).next;!(n=T_(r,t)).done;){if(o=(i=V_(B_(n.value))).next,(a=T_(o,i)).done||(u=T_(o,i)).done||!T_(o,i).done)throw cb("Expected sequence with length 2");pb(this.entries,{key:z_(a.value),value:z_(u.value)})}else for(var c in e)N_(e,c)&&pb(this.entries,{key:c,value:z_(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=mb(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=mb(t,"="),pb(this.entries,{key:xb(gb(r)),value:xb(hb(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],pb(r,Eb(e.key)+"="+Eb(e.value));return hb(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Pb=function(){U_(this,Cb);var e=J_(this,new Ab(arguments.length>0?arguments[0]:void 0));O_||(this.length=e.entries.length)},Cb=Pb.prototype;if(P_(Cb,{append:function(e,t){Q_(arguments.length,2);var r=Z_(this);pb(r.entries,{key:z_(e),value:z_(t)}),O_||this.length++,r.updateURL()},delete:function(e){Q_(arguments.length,1);for(var t=Z_(this),r=t.entries,n=z_(e),i=0;i<r.length;)r[i].key===n?yb(r,i,1):i++;O_||(this.length=r.length),t.updateURL()},get:function(e){Q_(arguments.length,1);for(var t=Z_(this).entries,r=z_(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){Q_(arguments.length,1);for(var t=Z_(this).entries,r=z_(e),n=[],i=0;i<t.length;i++)t[i].key===r&&pb(n,t[i].value);return n},has:function(e){Q_(arguments.length,1);for(var t=Z_(this).entries,r=z_(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){Q_(arguments.length,1);for(var r,n=Z_(this),i=n.entries,o=!1,a=z_(e),u=z_(t),s=0;s<i.length;s++)(r=i[s]).key===a&&(o?yb(i,s--,1):(o=!0,r.value=u));o||pb(i,{key:a,value:u}),O_||(this.length=i.length),n.updateURL()},sort:function(){var e=Z_(this);Y_(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=Z_(this).entries,n=F_(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new Lb(this,"keys")},values:function(){return new Lb(this,"values")},entries:function(){return new Lb(this,"entries")}},{enumerable:!0}),L_(Cb,W_,Cb.entries,{name:"entries"}),L_(Cb,"toString",(function(){return Z_(this).serialize()}),{enumerable:!0}),O_&&A_(Cb,"size",{get:function(){return Z_(this).entries.length},configurable:!0,enumerable:!0}),C_(Pb,K_),S_({global:!0,constructor:!0,forced:!E_},{URLSearchParams:Pb}),!E_&&M_(ob)){var jb=R_(ub.has),Ib=R_(ub.set),Ub=function(e){if(H_(e)){var t,r=e.body;if(D_(r)===K_)return t=e.headers?new ob(e.headers):new ob,jb(t,"content-type")||Ib(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),q_(e,{body:G_(0,z_(r)),headers:G_(0,t)})}return e};if(M_(nb)&&S_({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return nb(e,arguments.length>1?Ub(arguments[1]):{})}}),M_(ib)){var Mb=function(e){return U_(this,ab),new ib(e,arguments.length>1?Ub(arguments[1]):{})};ab.constructor=Mb,Mb.prototype=ab,S_({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Mb})}}var Nb,Fb=Er,Db=L,Bb=Nm,Hb=i,zb=Kt,qb=g,Gb=no,Vb=oo,$b=fh,Qb=Je,Yb=Km,Wb=um,Kb=Wi,Xb=fl.codeAt,Jb=function(e){var t,r,n=[],i=l_(c_(f_(e),e_,"."),".");for(t=0;t<i.length;t++)r=i[t],s_(n,n_(Zm,r)?"xn--"+p_(r):r);return u_(n,".")},Zb=Qn,ew=Ao,tw=kh,rw={URLSearchParams:Pb,getState:Z_},nw=$o,iw=nw.set,ow=nw.getterFor("URL"),aw=rw.URLSearchParams,uw=rw.getState,sw=Hb.URL,cw=Hb.TypeError,lw=Hb.parseInt,fw=Math.floor,dw=Math.pow,hw=qb("".charAt),pw=qb(/./.exec),vw=qb([].join),gw=qb(1..toString),yw=qb([].pop),mw=qb([].push),_w=qb("".replace),bw=qb([].shift),ww=qb("".split),kw=qb("".slice),Sw=qb("".toLowerCase),xw=qb([].unshift),Tw="Invalid scheme",Rw="Invalid host",Ow="Invalid port",Ew=/[a-z]/i,Lw=/[\d+-.a-z]/i,Aw=/\d/,Pw=/^0x/i,Cw=/^[0-7]+$/,jw=/^\d+$/,Iw=/^[\da-f]+$/i,Uw=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Mw=/[\0\t\n\r #/:<>?@[\\\]^|]/,Nw=/^[\u0000-\u0020]+/,Fw=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Dw=/[\t\n\r]/g,Bw=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)xw(t,e%256),e=fw(e/256);return vw(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=gw(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},Hw={},zw=Yb({},Hw,{" ":1,'"':1,"<":1,">":1,"`":1}),qw=Yb({},zw,{"#":1,"?":1,"{":1,"}":1}),Gw=Yb({},qw,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Vw=function(e,t){var r=Xb(e,0);return r>32&&r<127&&!Qb(t,e)?e:encodeURIComponent(e)},$w={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Qw=function(e,t){var r;return 2==e.length&&pw(Ew,hw(e,0))&&(":"==(r=hw(e,1))||!t&&"|"==r)},Yw=function(e){var t;return e.length>1&&Qw(kw(e,0,2))&&(2==e.length||"/"===(t=hw(e,2))||"\\"===t||"?"===t||"#"===t)},Ww=function(e){return"."===e||"%2e"===Sw(e)},Kw={},Xw={},Jw={},Zw={},ek={},tk={},rk={},nk={},ik={},ok={},ak={},uk={},sk={},ck={},lk={},fk={},dk={},hk={},pk={},vk={},gk={},yk=function(e,t,r){var n,i,o,a=Zb(e);if(t){if(i=this.parse(a))throw cw(i);this.searchParams=null}else{if(void 0!==r&&(n=new yk(r,!0)),i=this.parse(a,null,n))throw cw(i);(o=uw(new aw)).bindURL(this),this.searchParams=o}};yk.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,u,s=this,c=t||Kw,l=0,f="",d=!1,h=!1,p=!1;for(e=Zb(e),t||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,e=_w(e,Nw,""),e=_w(e,Fw,"$1")),e=_w(e,Dw,""),n=Wb(e);l<=n.length;){switch(i=n[l],c){case Kw:if(!i||!pw(Ew,i)){if(t)return Tw;c=Jw;continue}f+=Sw(i),c=Xw;break;case Xw:if(i&&(pw(Lw,i)||"+"==i||"-"==i||"."==i))f+=Sw(i);else{if(":"!=i){if(t)return Tw;f="",c=Jw,l=0;continue}if(t&&(s.isSpecial()!=Qb($w,f)||"file"==f&&(s.includesCredentials()||null!==s.port)||"file"==s.scheme&&!s.host))return;if(s.scheme=f,t)return void(s.isSpecial()&&$w[s.scheme]==s.port&&(s.port=null));f="","file"==s.scheme?c=ck:s.isSpecial()&&r&&r.scheme==s.scheme?c=Zw:s.isSpecial()?c=nk:"/"==n[l+1]?(c=ek,l++):(s.cannotBeABaseURL=!0,mw(s.path,""),c=pk)}break;case Jw:if(!r||r.cannotBeABaseURL&&"#"!=i)return Tw;if(r.cannotBeABaseURL&&"#"==i){s.scheme=r.scheme,s.path=Kb(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,c=gk;break}c="file"==r.scheme?ck:tk;continue;case Zw:if("/"!=i||"/"!=n[l+1]){c=tk;continue}c=ik,l++;break;case ek:if("/"==i){c=ok;break}c=hk;continue;case tk:if(s.scheme=r.scheme,i==Nb)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=Kb(r.path),s.query=r.query;else if("/"==i||"\\"==i&&s.isSpecial())c=rk;else if("?"==i)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=Kb(r.path),s.query="",c=vk;else{if("#"!=i){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=Kb(r.path),s.path.length--,c=hk;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=Kb(r.path),s.query=r.query,s.fragment="",c=gk}break;case rk:if(!s.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,c=hk;continue}c=ok}else c=ik;break;case nk:if(c=ik,"/"!=i||"/"!=hw(f,l+1))continue;l++;break;case ik:if("/"!=i&&"\\"!=i){c=ok;continue}break;case ok:if("@"==i){d&&(f="%40"+f),d=!0,o=Wb(f);for(var v=0;v<o.length;v++){var g=o[v];if(":"!=g||p){var y=Vw(g,Gw);p?s.password+=y:s.username+=y}else p=!0}f=""}else if(i==Nb||"/"==i||"?"==i||"#"==i||"\\"==i&&s.isSpecial()){if(d&&""==f)return"Invalid authority";l-=Wb(f).length+1,f="",c=ak}else f+=i;break;case ak:case uk:if(t&&"file"==s.scheme){c=fk;continue}if(":"!=i||h){if(i==Nb||"/"==i||"?"==i||"#"==i||"\\"==i&&s.isSpecial()){if(s.isSpecial()&&""==f)return Rw;if(t&&""==f&&(s.includesCredentials()||null!==s.port))return;if(a=s.parseHost(f))return a;if(f="",c=dk,t)return;continue}"["==i?h=!0:"]"==i&&(h=!1),f+=i}else{if(""==f)return Rw;if(a=s.parseHost(f))return a;if(f="",c=sk,t==uk)return}break;case sk:if(!pw(Aw,i)){if(i==Nb||"/"==i||"?"==i||"#"==i||"\\"==i&&s.isSpecial()||t){if(""!=f){var m=lw(f,10);if(m>65535)return Ow;s.port=s.isSpecial()&&m===$w[s.scheme]?null:m,f=""}if(t)return;c=dk;continue}return Ow}f+=i;break;case ck:if(s.scheme="file","/"==i||"\\"==i)c=lk;else{if(!r||"file"!=r.scheme){c=hk;continue}if(i==Nb)s.host=r.host,s.path=Kb(r.path),s.query=r.query;else if("?"==i)s.host=r.host,s.path=Kb(r.path),s.query="",c=vk;else{if("#"!=i){Yw(vw(Kb(n,l),""))||(s.host=r.host,s.path=Kb(r.path),s.shortenPath()),c=hk;continue}s.host=r.host,s.path=Kb(r.path),s.query=r.query,s.fragment="",c=gk}}break;case lk:if("/"==i||"\\"==i){c=fk;break}r&&"file"==r.scheme&&!Yw(vw(Kb(n,l),""))&&(Qw(r.path[0],!0)?mw(s.path,r.path[0]):s.host=r.host),c=hk;continue;case fk:if(i==Nb||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&Qw(f))c=hk;else if(""==f){if(s.host="",t)return;c=dk}else{if(a=s.parseHost(f))return a;if("localhost"==s.host&&(s.host=""),t)return;f="",c=dk}continue}f+=i;break;case dk:if(s.isSpecial()){if(c=hk,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=Nb&&(c=hk,"/"!=i))continue}else s.fragment="",c=gk;else s.query="",c=vk;break;case hk:if(i==Nb||"/"==i||"\\"==i&&s.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(u=Sw(u=f))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(s.shortenPath(),"/"==i||"\\"==i&&s.isSpecial()||mw(s.path,"")):Ww(f)?"/"==i||"\\"==i&&s.isSpecial()||mw(s.path,""):("file"==s.scheme&&!s.path.length&&Qw(f)&&(s.host&&(s.host=""),f=hw(f,0)+":"),mw(s.path,f)),f="","file"==s.scheme&&(i==Nb||"?"==i||"#"==i))for(;s.path.length>1&&""===s.path[0];)bw(s.path);"?"==i?(s.query="",c=vk):"#"==i&&(s.fragment="",c=gk)}else f+=Vw(i,qw);break;case pk:"?"==i?(s.query="",c=vk):"#"==i?(s.fragment="",c=gk):i!=Nb&&(s.path[0]+=Vw(i,Hw));break;case vk:t||"#"!=i?i!=Nb&&("'"==i&&s.isSpecial()?s.query+="%27":s.query+="#"==i?"%23":Vw(i,Hw)):(s.fragment="",c=gk);break;case gk:i!=Nb&&(s.fragment+=Vw(i,zw))}l++}},parseHost:function(e){var t,r,n;if("["==hw(e,0)){if("]"!=hw(e,e.length-1))return Rw;if(t=function(e){var t,r,n,i,o,a,u,s=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,d=function(){return hw(e,f)};if(":"==d()){if(":"!=hw(e,1))return;f+=2,l=++c}for(;d();){if(8==c)return;if(":"!=d()){for(t=r=0;r<4&&pw(Iw,d());)t=16*t+lw(d(),16),f++,r++;if("."==d()){if(0==r)return;if(f-=r,c>6)return;for(n=0;d();){if(i=null,n>0){if(!("."==d()&&n<4))return;f++}if(!pw(Aw,d()))return;for(;pw(Aw,d());){if(o=lw(d(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}s[c]=256*s[c]+i,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;s[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!=c&&a>0;)u=s[c],s[c--]=s[l+a-1],s[l+--a]=u;else if(8!=c)return;return s}(kw(e,1,-1)),!t)return Rw;this.host=t}else if(this.isSpecial()){if(e=Jb(e),pw(Uw,e))return Rw;if(t=function(e){var t,r,n,i,o,a,u,s=ww(e,".");if(s.length&&""==s[s.length-1]&&s.length--,(t=s.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=s[n]))return e;if(o=10,i.length>1&&"0"==hw(i,0)&&(o=pw(Pw,i)?16:8,i=kw(i,8==o?1:2)),""===i)a=0;else{if(!pw(10==o?jw:8==o?Cw:Iw,i))return e;a=lw(i,o)}mw(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=dw(256,5-t))return null}else if(a>255)return null;for(u=yw(r),n=0;n<r.length;n++)u+=r[n]*dw(256,3-n);return u}(e),null===t)return Rw;this.host=t}else{if(pw(Mw,e))return Rw;for(t="",r=Wb(e),n=0;n<r.length;n++)t+=Vw(r[n],Hw);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return Qb($w,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&Qw(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,u=e.query,s=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=Bw(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+vw(a,"/"):"",null!==u&&(c+="?"+u),null!==s&&(c+="#"+s),c},setHref:function(e){var t=this.parse(e);if(t)throw cw(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new mk(e.path[0]).origin}catch(ZP){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Bw(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Zb(e)+":",Kw)},getUsername:function(){return this.username},setUsername:function(e){var t=Wb(Zb(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=Vw(t[r],Gw)}},getPassword:function(){return this.password},setPassword:function(e){var t=Wb(Zb(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=Vw(t[r],Gw)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Bw(e):Bw(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,ak)},getHostname:function(){var e=this.host;return null===e?"":Bw(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,uk)},getPort:function(){var e=this.port;return null===e?"":Zb(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=Zb(e))?this.port=null:this.parse(e,sk))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+vw(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,dk))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=Zb(e))?this.query=null:("?"==hw(e,0)&&(e=kw(e,1)),this.query="",this.parse(e,vk)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=Zb(e))?("#"==hw(e,0)&&(e=kw(e,1)),this.fragment="",this.parse(e,gk)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var mk=function(e){var t=$b(this,_k),r=tw(arguments.length,1)>1?arguments[1]:void 0,n=iw(t,new yk(e,!1,r));Db||(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())},_k=mk.prototype,bk=function(e,t){return{get:function(){return ow(this)[e]()},set:t&&function(e){return ow(this)[t](e)},configurable:!0,enumerable:!0}};if(Db&&(Vb(_k,"href",bk("serialize","setHref")),Vb(_k,"origin",bk("getOrigin")),Vb(_k,"protocol",bk("getProtocol","setProtocol")),Vb(_k,"username",bk("getUsername","setUsername")),Vb(_k,"password",bk("getPassword","setPassword")),Vb(_k,"host",bk("getHost","setHost")),Vb(_k,"hostname",bk("getHostname","setHostname")),Vb(_k,"port",bk("getPort","setPort")),Vb(_k,"pathname",bk("getPathname","setPathname")),Vb(_k,"search",bk("getSearch","setSearch")),Vb(_k,"searchParams",bk("getSearchParams")),Vb(_k,"hash",bk("getHash","setHash"))),Gb(_k,"toJSON",(function(){return ow(this).serialize()}),{enumerable:!0}),Gb(_k,"toString",(function(){return ow(this).serialize()}),{enumerable:!0}),sw){var wk=sw.createObjectURL,kk=sw.revokeObjectURL;wk&&Gb(mk,"createObjectURL",zb(wk,sw)),kk&&Gb(mk,"revokeObjectURL",zb(kk,sw))}ew(mk,"URL"),Fb({global:!0,constructor:!0,forced:!Bb,sham:!Db},{URL:mk});var Sk=Er,xk=o,Tk=kh,Rk=Qn,Ok=Nm,Ek=ae("URL");Sk({target:"URL",stat:!0,forced:!(Ok&&xk((function(){Ek.canParse()})))},{canParse:function(e){var t=Tk(arguments.length,1),r=Rk(e),n=t<2||void 0===arguments[1]?void 0:Rk(arguments[1]);try{return!!new Ek(r,n)}catch(ZP){return!1}}});var Lk=r(te.URL),Ak=Er,Pk=ni.indexOf,Ck=Zl,jk=S([].indexOf),Ik=!!jk&&1/jk([1],1,-0)<0;Ak({target:"Array",proto:!0,forced:Ik||!Ck("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return Ik?jk(this,e,t)||0:Pk(this,e,t)}});var Uk=Nl("Array").indexOf,Mk=ue,Nk=Uk,Fk=Array.prototype,Dk=r((function(e){var t=e.indexOf;return e===Fk||Mk(Fk,e)&&t===Fk.indexOf?Nk:t})),Bk=Er,Hk=ea.find,zk="find",qk=!0;zk in[]&&Array(1)[zk]((function(){qk=!1})),Bk({target:"Array",proto:!0,forced:qk},{find:function(e){return Hk(this,e,arguments.length>1?arguments[1]:void 0)}});var Gk=Nl("Array").find,Vk=ue,$k=Gk,Qk=Array.prototype,Yk=r((function(e){var t=e.find;return e===Qk||Vk(Qk,e)&&t===Qk.find?$k:t})),Wk=L,Kk=Ar,Xk=TypeError,Jk=Object.getOwnPropertyDescriptor,Zk=Wk&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(ZP){return ZP instanceof TypeError}}(),eS=Oe,tS=TypeError,rS=function(e,t){if(!delete e[t])throw tS("Cannot delete property "+eS(t)+" of "+eS(e))},nS=Er,iS=We,oS=Jn,aS=Ir,uS=Dr,sS=Zk?function(e,t){if(Kk(e)&&!Jk(e,"length").writable)throw Xk("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},cS=Hr,lS=Rn,fS=Vr,dS=rS,hS=An("splice"),pS=Math.max,vS=Math.min;nS({target:"Array",proto:!0,forced:!hS},{splice:function(e,t){var r,n,i,o,a,u,s=iS(this),c=uS(s),l=oS(e,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=vS(pS(aS(t),0),c-l)),cS(c+r-n),i=lS(s,n),o=0;o<n;o++)(a=l+o)in s&&fS(i,o,s[a]);if(i.length=n,r<n){for(o=l;o<c-n;o++)u=o+r,(a=o+n)in s?s[u]=s[a]:dS(s,u);for(o=c;o>c-n+r;o--)dS(s,o-1)}else if(r>n)for(o=c-n;o>l;o--)u=o+r-1,(a=o+n-1)in s?s[u]=s[a]:dS(s,u);for(o=0;o<r;o++)s[o+l]=arguments[o+2];return sS(s,c-n+r),i}});var gS=Nl("Array").splice,yS=ue,mS=gS,_S=Array.prototype,bS=r((function(e){var t=e.splice;return e===_S||yS(_S,e)&&t===_S.splice?mS:t}));Er({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var wS=r(te.Number.isNaN),kS="\t\n\v\f\r                 \u2028\u2029\ufeff",SS=Y,xS=Qn,TS=kS,RS=g("".replace),OS=RegExp("^["+TS+"]+"),ES=RegExp("(^|[^"+TS+"])["+TS+"]+$"),LS=function(e){return function(t){var r=xS(SS(t));return 1&e&&(r=RS(r,OS,"")),2&e&&(r=RS(r,ES,"$1")),r}},AS={start:LS(1),end:LS(2),trim:LS(3)},PS=i,CS=o,jS=g,IS=Qn,US=AS.trim,MS=kS,NS=PS.parseInt,FS=PS.Symbol,DS=FS&&FS.iterator,BS=/^[+-]?0x/i,HS=jS(BS.exec),zS=8!==NS(MS+"08")||22!==NS(MS+"0x16")||DS&&!CS((function(){NS(Object(DS))}))?function(e,t){var r=US(IS(e));return NS(r,t>>>0||(HS(BS,r)?16:10))}:NS;Er({global:!0,forced:parseInt!=zS},{parseInt:zS});var qS=r(te.parseInt),GS=ea.map;Er({target:"Array",proto:!0,forced:!An("map")},{map:function(e){return GS(this,e,arguments.length>1?arguments[1]:void 0)}});var VS=Nl("Array").map,$S=ue,QS=VS,YS=Array.prototype,WS=r((function(e){var t=e.map;return e===YS||$S(YS,e)&&t===YS.map?QS:t})),KS=Km;Er({target:"Object",stat:!0,arity:2,forced:Object.assign!==KS},{assign:KS});var XS=r(te.Object.assign),JS=r(bl),ZS=Je,ex=C,tx=ee,rx=rr,nx=function(e){return void 0!==e&&(ZS(e,"value")||ZS(e,"writable"))},ix=E,ox=Ts;Er({target:"Reflect",stat:!0},{get:function e(t,r){var n,i,o=arguments.length<3?t:arguments[2];return rx(t)===o?t[r]:(n=ix.f(t,r))?nx(n)?n.value:void 0===n.get?void 0:ex(n.get,o):tx(i=ox(t))?e(i,r,o):void 0}});var ax=r(te.Reflect.get);function ux(e,t){var r=jl(e);if(Il){var n=Il(e);t&&(n=zl(n).call(n,(function(t){return Xl(e,t).enumerable}))),r.push.apply(r,n)}return r}function sx(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?lf(r=ux(Object(i),!0)).call(r,(function(t){hx(e,t,i[t])})):wf?Ef(e,wf(i)):lf(n=ux(Object(i))).call(n,(function(t){Uf(e,t,Xl(i,t))}))}return e}function cx(e){return(cx="function"==typeof Sl&&"symbol"==typeof JS?function(e){return typeof e}:function(e){return e&&"function"==typeof Sl&&e.constructor===Sl&&e!==Sl.prototype?"symbol":typeof e})(e)}function lx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fx(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),Uf(e,gx(n.key),n)}}function dx(e,t,r){return t&&fx(e.prototype,t),r&&fx(e,r),Uf(e,"prototype",{writable:!1}),e}function hx(e,t,r){return(t=gx(t))in e?Uf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function px(e){return function(e){if(Qy(e))return vx(e)}(e)||function(e){if(void 0!==Sl&&null!=Al(e)||null!=e["@@iterator"])return cm(e)}(e)||function(e,t){var r;if(!e)return;if("string"==typeof e)return vx(e,t);var n=py(r=Object.prototype.toString.call(e)).call(r,8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return cm(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vx(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 vx(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 gx(e){var t=function(e,t){if("object"!==kl(e)||null===e)return e;var r=e[lm];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==kl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kl(t)?t:String(t)}var yx={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var u=new i(n,o||e,a),s=r?r+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],u]:e._events[s].push(u):(e._events[s]=u,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function u(){this._events=new n,this._eventsCount=0}Nf&&(n.prototype=Nf(null),(new n).__proto__||(r=!1)),u.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?py(n).call(n,1):n);return Il?Im(i).call(i,Il(e)):i},u.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},u.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},u.prototype.emit=function(e,t,n,i,o,a){var u=r?r+e:e;if(!this._events[u])return!1;var s,c,l=this._events[u],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,i),!0;case 5:return l.fn.call(l.context,t,n,i,o),!0;case 6:return l.fn.call(l.context,t,n,i,o,a),!0}for(c=1,s=new Array(f-1);c<f;c++)s[c-1]=arguments[c];l.fn.apply(l.context,s)}else{var d,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,i);break;default:if(!s)for(d=1,s=new Array(f-1);d<f;d++)s[d-1]=arguments[d];l[c].fn.apply(l[c].context,s)}}return!0},u.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},u.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},u.prototype.removeListener=function(e,t,n,i){var o=r?r+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var u=this._events[o];if(u.fn)u.fn!==t||i&&!u.once||n&&u.context!==n||a(this,o);else{for(var s=0,c=[],l=u.length;s<l;s++)(u[s].fn!==t||i&&!u[s].once||n&&u[s].context!==n)&&c.push(u[s]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u}(yx);var mx=r(yx.exports),_x=ea.some;Er({target:"Array",proto:!0,forced:!Zl("some")},{some:function(e){return _x(this,e,arguments.length>1?arguments[1]:void 0)}});var bx=Nl("Array").some,wx=ue,kx=bx,Sx=Array.prototype,xx=r((function(e){var t=e.some;return e===Sx||wx(Sx,e)&&t===Sx.some?kx:t})),Tx=Ir,Rx=Qn,Ox=Y,Ex=RangeError,Lx=g,Ax=Nr,Px=Qn,Cx=Y,jx=Lx((function(e){var t=Rx(Ox(this)),r="",n=Tx(e);if(n<0||n==1/0)throw Ex("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),Ix=Lx("".slice),Ux=Math.ceil,Mx=function(e){return function(t,r,n){var i,o,a=Px(Cx(t)),u=Ax(r),s=a.length,c=void 0===n?" ":Px(n);return u<=s||""==c?a:((o=jx(c,Ux((i=u-s)/c.length))).length>i&&(o=Ix(o,0,i)),e?a+o:o+a)}},Nx={start:Mx(!1),end:Mx(!0)},Fx=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(se),Dx=Nx.start;Er({target:"String",proto:!0,forced:Fx},{padStart:function(e){return Dx(this,e,arguments.length>1?arguments[1]:void 0)}});var Bx,Hx=Nl("String").padStart,zx=ue,qx=Hx,Gx=String.prototype,Vx=r((function(e){var t=e.padStart;return"string"==typeof e||e===Gx||zx(Gx,e)&&t===Gx.padStart?qx:t})),$x="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Qx=i,Yx=f,Wx=O,Kx=$x,Xx=se,Jx=xu,Zx=kh,eT=Qx.Function,tT=/MSIE .\./.test(Xx)||Kx&&((Bx=Qx.Bun.version.split(".")).length<3||0==Bx[0]&&(Bx[1]<3||3==Bx[1]&&0==Bx[2])),rT=function(e,t){var r=t?2:1;return tT?function(n,i){var o=Zx(arguments.length,1)>r,a=Wx(n)?n:eT(n),u=o?Jx(arguments,r):[],s=o?function(){Yx(a,this,u)}:a;return t?e(s,i):e(s)}:e},nT=Er,iT=i,oT=rT(iT.setInterval,!0);nT({global:!0,bind:!0,forced:iT.setInterval!==oT},{setInterval:oT});var aT=Er,uT=i,sT=rT(uT.setTimeout,!0);aT({global:!0,bind:!0,forced:uT.setTimeout!==sT},{setTimeout:sT});var cT=r(te.setInterval),lT=r(te.setTimeout),fT=ea.every;Er({target:"Array",proto:!0,forced:!Zl("every")},{every:function(e){return fT(this,e,arguments.length>1?arguments[1]:void 0)}});var dT=Nl("Array").every,hT=ue,pT=dT,vT=Array.prototype,gT=r((function(e){var t=e.every;return e===vT||hT(vT,e)&&t===vT.every?pT:t})),yT=i,mT=o,_T=Qn,bT=AS.trim,wT=kS,kT=g("".charAt),ST=yT.parseFloat,xT=yT.Symbol,TT=xT&&xT.iterator,RT=1/ST(wT+"-0")!=-1/0||TT&&!mT((function(){ST(Object(TT))}))?function(e){var t=bT(_T(e)),r=ST(t);return 0===r&&"-"==kT(t,0)?-0:r}:ST;Er({global:!0,forced:parseFloat!=RT},{parseFloat:RT});var OT=r(te.parseFloat),ET=gs.PROPER,LT=o,AT=kS,PT=AS.trim;Er({target:"String",proto:!0,forced:function(e){return LT((function(){return!!AT[e]()||"​…᠎"!=="​…᠎"[e]()||ET&&AT[e].name!==e}))}("trim")},{trim:function(){return PT(this)}});var CT=Nl("String").trim,jT=ue,IT=CT,UT=String.prototype,MT=r((function(e){var t=e.trim;return"string"==typeof e||e===UT||jT(UT,e)&&t===UT.trim?IT:t})),NT=se.match(/firefox\/(\d+)/i),FT=!!NT&&+NT[1],DT=/MSIE|Trident/.test(se),BT=se.match(/AppleWebKit\/(\d+)\./),HT=!!BT&&+BT[1],zT=Er,qT=g,GT=Pe,VT=We,$T=Dr,QT=rS,YT=Qn,WT=o,KT=k_,XT=Zl,JT=FT,ZT=DT,eR=ve,tR=HT,rR=[],nR=qT(rR.sort),iR=qT(rR.push),oR=WT((function(){rR.sort(void 0)})),aR=WT((function(){rR.sort(null)})),uR=XT("sort"),sR=!WT((function(){if(eR)return eR<70;if(!(JT&&JT>3)){if(ZT)return!0;if(tR)return tR<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)rR.push({k:t+n,v:r})}for(rR.sort((function(e,t){return t.v-e.v})),n=0;n<rR.length;n++)t=rR[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));zT({target:"Array",proto:!0,forced:oR||!aR||!uR||!sR},{sort:function(e){void 0!==e&&GT(e);var t=VT(this);if(sR)return void 0===e?nR(t):nR(t,e);var r,n,i=[],o=$T(t);for(n=0;n<o;n++)n in t&&iR(i,t[n]);for(KT(i,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:YT(t)>YT(r)?1:-1}}(e)),r=$T(i),n=0;n<r;)t[n]=i[n++];for(;n<o;)QT(t,n++);return t}});var cR=Nl("Array").sort,lR=ue,fR=cR,dR=Array.prototype,hR=r((function(e){var t=e.sort;return e===dR||lR(dR,e)&&t===dR.sort?fR:t})),pR=Er,vR=Date,gR=g(vR.prototype.getTime);pR({target:"Date",stat:!0},{now:function(){return gR(new vR)}});var yR,mR=r(te.Date.now),_R="undefined"!=typeof window&&window.location&&Dk(yR=window.location.href).call(yR,"xgplayerdebugger=1")>-1,bR="color: #525252; background-color: #90ee90;",wR="color: #525252; background-color: red;",kR="color: #525252; background-color: yellow; ",SR="%c[xgplayer]",xR={config:{debug:_R?3:0},logInfo:function(e){for(var t,r,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];this.config.debug>=3&&(r=console).log.apply(r,Im(t=[SR,bR,e]).call(t,i))},logWarn:function(e){for(var t,r,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];this.config.debug>=1&&(r=console).warn.apply(r,Im(t=[SR,kR,e]).call(t,i))},logError:function(e){var t,r;if(!(this.config.debug<1)){for(var n=this.config.debug>=2?"trace":"error",i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];(r=console)[n].apply(r,Im(t=[SR,wR,e]).call(t,o))}}},TR=function(){function e(t){lx(this,e),this.bufferedList=t}return dx(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}(),RR={};RR.createDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=document.createElement(t);return o.className=i,o.innerHTML=r,lf(e=jl(n)).call(e,(function(e){var r=e,i=n[e];"video"===t||"audio"===t||"live-video"===t?i&&o.setAttribute(r,i):o.setAttribute(r,i)})),o},RR.createDomFromHtml=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";try{var n=document.createElement("div");n.innerHTML=e;var i=n.children;if(n=null,i.length>0){var o;if(i=i[0],r&&RR.addClass(i,r),t)lf(o=jl(t)).call(o,(function(e){i.setAttribute(e,t[e])}));return i}return null}catch(a){return xR.logError("util.createDomFromHtml",a),null}},RR.hasClass=function(e,t){if(!e||!t)return!1;try{return xx(Array.prototype).call(e.classList,(function(e){return e===t}))}catch(n){var r=e.className&&"object"===cx(e.className)?e.getAttribute("class"):e.className;return r&&!!r.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},RR.addClass=function(e,t){if(e&&t)try{var r;lf(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.add(t)}))}catch(n){RR.hasClass(e,t)||(e.className&&"object"===cx(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},RR.removeClass=function(e,t){if(e&&t)try{var r;lf(r=t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g)).call(r,(function(t){t&&e.classList.remove(t)}))}catch(i){var n;if(RR.hasClass(e,t))lf(n=t.split(/\s+/g)).call(n,(function(t){var r=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===cx(e.className)?e.setAttribute("class",e.getAttribute("class").replace(r," ")):e.className=e.className.replace(r," ")}))}},RR.toggleClass=function(e,t){var r;e&&lf(r=t.split(/\s+/g)).call(r,(function(t){RR.hasClass(e,t)?RR.removeClass(e,t):RR.addClass(e,t)}))},RR.classNames=function(){for(var e=arguments,t=[],r=function(r){if("String"===RR.typeOf(e[r]))t.push(e[r]);else if("Object"===RR.typeOf(e[r])){var n;WS(n=jl(e[r])).call(n,(function(n){e[r][n]&&t.push(n)}))}},n=0;n<arguments.length;n++)r(n);return t.join(" ")},RR.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){xR.logError("util.findDom",n),0===Dk(r).call(r,"#")&&(e=t.getElementById(py(r).call(r,1)))}return e},RR.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},RR.padStart=function(e,t,r){for(var n=String(r),i=t>>0,o=Math.ceil(i/n.length),a=[],u=String(e);o--;)a.push(n);return a.join("").substring(0,i-u.length)+u},RR.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=Vx(RR).call(RR,Math.floor(e/3600),2,0),r=Vx(RR).call(RR,Math.floor((e-3600*t)/60),2,0),n=Vx(RR).call(RR,Math.floor(e-3600*t-60*r),2,0);return("00"===t?[r,n]:[t,r,n]).join(":")},RR.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},RR.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},RR.deepCopy=function(e,t){var r;if("Object"===RR.typeOf(t)&&"Object"===RR.typeOf(e))return lf(r=jl(t)).call(r,(function(r){if("Object"!==RR.typeOf(t[r])||t[r]instanceof Node)if("Array"===RR.typeOf(t[r])){var n;e[r]="Array"===RR.typeOf(e[r])?Im(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]:RR.deepCopy(e[r],t[r])})),e},RR.deepMerge=function(e,t){var r;return WS(r=jl(t)).call(r,(function(r){var n;"Array"===RR.typeOf(t[r])&&"Array"===RR.typeOf(e[r])?"Array"===RR.typeOf(e[r])&&(n=e[r]).push.apply(n,px(t[r])):RR.typeOf(e[r])!==RR.typeOf(t[r])||null===e[r]||"Object"!==RR.typeOf(e[r])||t[r]instanceof window.Node?null!==t[r]&&(e[r]=t[r]):RR.deepMerge(e[r],t[r])})),e},RR.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},RR.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return lf(Array.prototype).call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},RR.setInterval=function(e,t,r,n){e._interval[t]||(e._interval[t]=cT(Py(r).call(r,e),n))},RR.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},RR.setTimeout=function(e,t,r){e._timers||(e._timers=[]);var n=lT((function(){t(),RR.clearTimeout(e,n)}),r);return e._timers.push(n),n},RR.clearTimeout=function(e,t){var r=e._timers;if("Array"===RR.typeOf(r)){for(var n=0;n<r.length;n++)if(r[n]===t){bS(r).call(r,n,1),clearTimeout(t);break}}else clearTimeout(t)},RR.clearAllTimers=function(e){var t=e._timers;"Array"===RR.typeOf(t)&&(WS(t).call(t,(function(e){clearTimeout(e)})),e._timerIds=[])},RR.createImgBtn=function(e,t,r,n){var i,o,a,u,s,c,l,f,d,h,p,v,g=RR.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(g.style.backgroundImage='url("'.concat(t,'")'),r&&n)&&(gT(i=["px","rem","em","pt","dp","vw","vh","vm","%"]).call(i,(function(e){var t,i;return!(Dk(r).call(r,e)>-1&&Dk(n).call(n,e)>-1)||(l=OT(MT(t=py(r).call(r,0,Dk(r).call(r,e))).call(t)),f=OT(MT(i=py(n).call(n,0,Dk(n).call(n,e))).call(i)),d=e,!1)})),g.style.width=Im(o="".concat(l)).call(o,d),g.style.height=Im(a="".concat(f)).call(a,d),g.style.backgroundSize=Im(u=Im(s=Im(c="".concat(l)).call(c,d," ")).call(s,f)).call(u,d),g.style.margin="start"===e?Im(h=Im(p=Im(v="-".concat(f/2)).call(v,d," auto auto -")).call(p,l/2)).call(h,d):"auto 5px auto 5px");return g},RR.Hex2RGBA=function(e,t){var r,n=[];if(/^\#[0-9A-F]{3}$/i.test(e)){var i="#";e.replace(/[0-9A-F]/gi,(function(e){i+=e+e})),e=i}return/^#[0-9A-F]{6}$/i.test(e)?(e.replace(/[0-9A-F]{2}/gi,(function(e){n.push(qS(e,16))})),Im(r="rgba(".concat(n.join(","),", ")).call(r,t,")")):"rgba(255, 255, 255, 0.1)"},RR.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},RR.checkIsFunction=function(e){return e&&"function"==typeof e},RR.checkIsObject=function(e){return null!==e&&"object"===cx(e)},RR.hide=function(e){e.style.display="none"},RR.show=function(e,t){e.style.display=t||"block"},RR.isUndefined=function(e){if(null==e)return!0},RR.isNotNull=function(e){return!(null==e)},RR.setStyleFromCsstext=function(e,t){if(t)if("String"===RR.typeOf(t)){var r=t.replace(/\s+/g,"").split(";");WS(r).call(r,(function(t){if(t){var r=t.split(":");r.length>1&&(e.style[r[0]]=r[1])}}))}else{var n;WS(n=jl(t)).call(n,(function(r){e.style[r]=t[r]}))}},RR.filterStyleFromText=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],n=e.style.cssText;if(!n)return{};var i=n.replace(/\s+/g,"").split(";"),o={},a={};return WS(i).call(i,(function(e){if(e){var t=e.split(":");t.length>1&&(!function(e,t){for(var r=0,n=t.length;r<n;r++)if(Dk(e).call(e,t[r])>-1)return!0;return!1}(t[0],r)?a[t[0]]=t[1]:o[t[0]]=t[1])}})),e.setAttribute("style",""),WS(t=jl(a)).call(t,(function(t){e.style[t]=a[t]})),o},RR.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var r=t.replace(/\s+/g,"").split(";"),n={};return WS(r).call(r,(function(e){if(e){var t=e.split(":");t.length>1&&(n[t[0]]=t[1])}})),n},RR.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}},RR.stopPropagation=function(e){e&&e.stopPropagation()},RR.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},RR.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},RR.checkTouchSupport=function(){return"ontouchstart"in window},RR.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)});hR(r).call(r,(function(e,t){var r=e.start-t.start;return r||t.end-e.end}));var i=[];if(t)for(var o=0;o<r.length;o++){var a=i.length;if(a){var u=i[a-1].end;r[o].start-u<t?r[o].end>u&&(i[a-1].end=r[o].end):i.push(r[o])}else i.push(r[o])}else i=r;return new TR(i)},RR.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}},RR.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},RR.getHostFromUrl=function(e){if("String"!==RR.typeOf(e))return"";var t=e.split("/"),r="";return t.length>3&&t[2]&&(r=t[2]),r},RR.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},RR.isMSE=function(e){return e.media&&(e=e.media),!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},RR.isBlob=function(e){return"string"==typeof e&&/^blob/.test(e)},RR.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=qS(e)}catch(r){e=0}return t+=e,window.performance&&"function"==typeof window.performance.now&&(t+=qS(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)}))},RR.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},RR.adjustTimeByDuration=function(e,t,r){return t&&e&&(e>t||r&&e<t)?t:e},RR.createPositionBar=function(e,t){var r=RR.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(r),r},RR.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:Im(e="".concat(t.x||0,"%, ")).call(e,t.y||0,"%"),rotate:"".concat(t.rotate||0,"deg")},i=jl(n);return lf(i).call(i,(function(e){var t,i=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),o=Im(t="".concat(e,"(")).call(t,n[e],")");i.test(r)?(i.lastIndex=-1,r=r.replace(i,o)):r+="".concat(o," ")})),r},RR.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360},RR.getIndexByTime=function(e,t){var r=t.length,n=-1;if(r<1)return n;if(e<=t[0].end||r<2)n=0;else if(e>t[r-1].end)n=r-1;else for(var i=1;i<r;i++)if(e>t[i-1].end&&e<=t[i].end){n=i;break}return n},RR.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:RR.getIndexByTime(e,t))<0)return-1;var i=t.length,o=t[n],a=o.start,u=o.end,s=o.cTime,c=o.offset;return e<a?s:e>=a&&e<=u?e-c:e>u&&n>=i-1?u:-1},RR.getCurrentTimeByOffset=function(e,t){var r=-1;if(!t||t.length<0)return e;for(var n=0;n<t.length;n++)if(e<=t[n].duration){r=n;break}if(-1!==r){var i=t[r].start;return r-1<0?i+e:i+(e-t[r-1].duration)}return e};var OR="3.0.19-rc.0",ER={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},LR=dx((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};lx(this,e);var n=t&&t.i18n?t.i18n.ERROR_TYPES:null;if(t.media){var i,o=r.mediaError?r.mediaError:t.media.error||{},a=t.duration,u=t.currentTime,s=t.ended,c=t.src,l=t.currentSrc,f=t.media,d=f.readyState,h=f.networkState,p=r.errorCode||o.code;ER[p]&&(p=ER[p]);var v={playerVersion:OR,currentTime:u,duration:a,ended:s,readyState:d,networkState:h,src:c||l,errorType:r.errorType,errorCode:p,message:r.errorMessage||o.message,mediaError:o,originError:r.originError?r.originError.stack:"",host:RR.getHostFromUrl(c||l)};return r.ext&&WS(i=jl(r.ext)).call(i,(function(e){v[e]=r.ext[e]})),v}if(arguments.length>1){for(var g={playerVersion:OR,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 AR(e,t,r){for(var n,i=arguments.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];var u,s=t.call.apply(t,Im(n=[e]).call(n,o));r&&"function"==typeof r&&(s&&s.then?s.then((function(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];r.call.apply(r,Im(t=[e]).call(t,i))})):r.call.apply(r,Im(u=[e]).call(u,o)))}function PR(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,i=arguments,o=this;if(n.pre)try{var a,u;(u=n.pre).call.apply(u,Im(a=[this]).call(a,py(Array.prototype).call(arguments)))}catch(y){var s,c;throw y.message=Im(s=Im(c="[pluginName: ".concat(this.pluginName,":")).call(c,e,":pre error] >> ")).call(s,y.message),y}if(this.__hooks&&this.__hooks[e])try{var l,f,d,h=(f=this.__hooks[e]).call.apply(f,Im(l=[this,this]).call(l,py(Array.prototype).call(arguments)));if(h)if(h.then)h.then((function(e){var r;!1!==e&&AR.apply(void 0,Im(r=[o,t,n.next]).call(r,px(i)))})).catch((function(e){throw e}));else AR.apply(void 0,Im(d=[this,t,n.next]).call(d,py(Array.prototype).call(arguments)));else if(void 0===h){var p;AR.apply(void 0,Im(p=[this,t,n.next]).call(p,py(Array.prototype).call(arguments)))}}catch(y){var v,g;throw y.message=Im(v=Im(g="[pluginName: ".concat(this.pluginName,":")).call(g,e,"] >> ")).call(v,y.message),y}else AR.apply(void 0,Im(r=[this,t,n.next]).call(r,py(Array.prototype).call(arguments)))}).call(r,this)}function CR(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 jR(e,t){var r=this.__hooks;r&&delete r[e]}function IR(e,t){var r;xR.logError(Im(r="[".concat(e,"] event or callback cant be undefined or null when call ")).call(r,t))}var UR=function(){function e(t){lx(this,e),RR.checkIsFunction(this.beforeCreate)&&this.beforeCreate(t),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.__hooks={},t&&WS(t).call(t,(function(t){e.__hooks[t]=null})),Uf(e,"hooks",{get:function(){var t;return e.__hooks&&WS(t=jl(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 dx(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=RR.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)):Qy(e)&&lf(e).call(e,(function(e){r.__events[e]=t,r.player.on(e,t)})):IR(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)):Qy(e)&&lf(e).call(e,(function(n){r.__onceEvents[n]=t,r.player.once(e,t)})):IR(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)):Qy(e)&&lf(e).call(e,(function(n){delete r.__events[e],r.player.off(n,t)})):IR(this.pluginName,"plugin.off(event, callback)")}},{key:"offAll",value:function(){var e,t=this;lf(e=["__events","__onceEvents"]).call(e,(function(e){var r;lf(r=jl(t[e])).call(r,(function(r){t[e][r]&&t.off(r,t[e][r]),r&&delete t[e][r]}))})),this.__events={},this.__onceEvents={}}},{key:"emit",value:function(e){var t,r;if(this.player){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];(r=this.player).emit.apply(r,Im(t=[e]).call(t,i))}}},{key:"emitUserAction",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.player){var n=sx(sx({},r),{},{pluginName:this.pluginName});this.player.emitUserAction(e,t,n)}}},{key:"hook",value:function(e,t){var r;return PR.call.apply(PR,Im(r=[this]).call(r,py(Array.prototype).call(arguments)))}},{key:"useHooks",value:function(e,t){for(var r,n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return CR.call.apply(CR,Im(r=[this]).call(r,py(Array.prototype).call(arguments)))}},{key:"removeHooks",value:function(e,t){for(var r,n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return jR.call.apply(jR,Im(r=[this]).call(r,py(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(),RR.clearAllTimers(this),RR.checkIsFunction(this.destroy)&&this.destroy(),WS(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)&&Uf(e,r,t[r])}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),e}(),MR=te,NR=f;MR.JSON||(MR.JSON={stringify:JSON.stringify});var FR=function(e,t,r){return NR(MR.JSON.stringify,null,arguments)},DR=r(FR),BR=ee,HR=b,zR=dt("match"),qR=function(e){var t;return BR(e)&&(void 0!==(t=e[zR])?!!t:"RegExp"==HR(e))},GR=TypeError,VR=dt("match"),$R=ni.includes;Er({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return $R(this,e,arguments.length>1?arguments[1]:void 0)}});var QR=Nl("Array").includes,YR=Er,WR=function(e){if(qR(e))throw GR("The method doesn't accept regular expressions");return e},KR=Y,XR=Qn,JR=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[VR]=!1,"/./"[e](t)}catch(n){}}return!1},ZR=g("".indexOf);YR({target:"String",proto:!0,forced:!JR("includes")},{includes:function(e){return!!~ZR(XR(KR(this)),XR(WR(e)),arguments.length>1?arguments[1]:void 0)}});var eO=Nl("String").includes,tO=ue,rO=QR,nO=eO,iO=Array.prototype,oO=String.prototype,aO=r((function(e){var t=e.includes;return e===iO||tO(iO,e)&&t===iO.includes?rO:"string"==typeof e||e===oO||tO(oO,e)&&t===oO.includes?nO:t})),uO={exports:{}},sO=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),cO=o,lO=ee,fO=b,dO=sO,hO=Object.isExtensible,pO=cO((function(){hO(1)}))||dO?function(e){return!!lO(e)&&((!dO||"ArrayBuffer"!=fO(e))&&(!hO||hO(e)))}:hO,vO=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),gO=Er,yO=g,mO=ii,_O=ee,bO=Je,wO=Xt.f,kO=Bi,SO=qi,xO=pO,TO=vO,RO=!1,OO=nt("meta"),EO=0,LO=function(e){wO(e,OO,{value:{objectID:"O"+EO++,weakData:{}}})},AO=uO.exports={enable:function(){AO.enable=function(){},RO=!0;var e=kO.f,t=yO([].splice),r={};r[OO]=1,e(r).length&&(kO.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===OO){t(n,i,1);break}return n},gO({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:SO.f}))},fastKey:function(e,t){if(!_O(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!bO(e,OO)){if(!xO(e))return"F";if(!t)return"E";LO(e)}return e[OO].objectID},getWeakData:function(e,t){if(!bO(e,OO)){if(!xO(e))return!0;if(!t)return!1;LO(e)}return e[OO].weakData},onFreeze:function(e){return TO&&RO&&xO(e)&&!bO(e,OO)&&LO(e),e}};mO[OO]=!0;var PO=uO.exports,CO=Er,jO=i,IO=PO,UO=o,MO=gr,NO=Id,FO=fh,DO=O,BO=ee,HO=Ao,zO=Xt.f,qO=ea.forEach,GO=L,VO=$o.set,$O=$o.getterFor,QO=Di,YO=oo,WO=g_,KO=Kt,XO=fh,JO=V,ZO=Id,eE=pc,tE=vc,rE=sh,nE=L,iE=PO.fastKey,oE=$o.set,aE=$o.getterFor,uE={getConstructor:function(e,t,r,n){var i=e((function(e,i){XO(e,o),oE(e,{type:t,index:QO(null),first:void 0,last:void 0,size:0}),nE||(e.size=0),JO(i)||ZO(i,e[n],{that:e,AS_ENTRIES:r})})),o=i.prototype,a=aE(t),u=function(e,t,r){var n,i,o=a(e),u=s(e,t);return u?u.value=r:(o.last=u={index:i=iE(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=u),n&&(n.next=u),nE?o.size++:e.size++,"F"!==i&&(o.index[i]=u)),e},s=function(e,t){var r,n=a(e),i=iE(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return WO(o,{clear:function(){for(var e=a(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,nE?e.size=0:this.size=0},delete:function(e){var t=this,r=a(t),n=s(t,e);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),nE?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=a(this),n=KO(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),WO(o,r?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),nE&&YO(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=aE(t),o=aE(n);eE(e,t,(function(e,t){oE(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?tE("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,tE(void 0,!0))}),r?"entries":"values",!r,!0),rE(t)}};(function(e,t,r){var n,i=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=i?"set":"add",u=jO[e],s=u&&u.prototype,c={};if(GO&&DO(u)&&(o||s.forEach&&!UO((function(){(new u).entries().next()})))){var l=(n=t((function(t,r){VO(FO(t,l),{type:e,collection:new u}),null!=r&&NO(r,t[a],{that:t,AS_ENTRIES:i})}))).prototype,f=$O(e);qO(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in s)||o&&"clear"==e||MO(l,e,(function(r,n){var i=f(this).collection;if(!t&&o&&!BO(r))return"get"==e&&void 0;var a=i[e](0===r?0:r,n);return t?this:a}))})),o||zO(l,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(t,e,i,a),IO.enable();HO(n,e,!1,!0),c[e]=n,CO({global:!0,forced:!0},c),o||r.setStrong(n,e,i)})("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),uE);var sE=te.Map,cE=Kt,lE=C,fE=Pe,dE=vh,hE=V,pE=Id,vE=[].push,gE=function(e){var t,r,n,i,o=arguments.length,a=o>1?arguments[1]:void 0;return dE(this),(t=void 0!==a)&&fE(a),hE(e)?new this:(r=[],t?(n=0,i=cE(a,o>2?arguments[2]:void 0),pE(e,(function(e){lE(vE,r,i(e,n++))}))):pE(e,vE,{that:r}),new this(r))};Er({target:"Map",stat:!0,forced:!0},{from:gE});var yE=xu,mE=function(){return new this(yE(arguments))};Er({target:"Map",stat:!0,forced:!0},{of:mE});var _E=Oe,bE=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(_E(e)+" is not a map")},wE=function(e,t){return 1==t?function(t,r){return t[e](r)}:function(t,r,n){return t[e](r,n)}},kE=ae("Map"),SE={Map:kE,set:wE("set",2),get:wE("get",1),has:wE("has",1),remove:wE("delete",1),proto:kE.prototype},xE=bE,TE=SE.remove;Er({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=xE(this),r=!0,n=0,i=arguments.length;n<i;n++)e=TE(t,arguments[n]),r=r&&e;return!!r}});var RE=bE,OE=SE.get,EE=SE.has,LE=SE.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var r,n,i=RE(this);return EE(i,e)?(r=OE(i,e),"update"in t&&(r=t.update(r,e,i),LE(i,e,r)),r):(n=t.insert(e,i),LE(i,e,n),n)}});var AE=C,PE=function(e,t,r){for(var n,i,o=r||e.next;!(n=AE(o,e)).done;)if(void 0!==(i=t(n.value)))return i},CE=function(e,t,r){return r?PE(e.entries(),(function(e){return t(e[1],e[0])})):e.forEach(t)},jE=Kt,IE=bE,UE=CE;Er({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=IE(this),r=jE(e,arguments.length>1?arguments[1]:void 0);return!1!==UE(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}});var ME=Kt,NE=bE,FE=CE,DE=SE.Map,BE=SE.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=NE(this),r=ME(e,arguments.length>1?arguments[1]:void 0),n=new DE;return FE(t,(function(e,i){r(e,i,t)&&BE(n,i,e)})),n}});var HE=Kt,zE=bE,qE=CE;Er({target:"Map",proto:!0,real:!0,forced:!0},{find: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{value:e}}),!0);return n&&n.value}});var GE=Kt,VE=bE,$E=CE;Er({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=VE(this),r=GE(e,arguments.length>1?arguments[1]:void 0),n=$E(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}});var QE=Er,YE=C,WE=O,KE=Pe,XE=Id,JE=SE.Map,ZE=g([].push);QE({target:"Map",stat:!0,forced:!0},{groupBy:function(e,t){var r=new(WE(this)?this:JE);KE(t);var n=KE(r.has),i=KE(r.get),o=KE(r.set);return XE(e,(function(e){var a=t(e);YE(n,r,a)?ZE(YE(i,r,a),e):YE(o,r,a,[e])})),r}});var eL=function(e,t){return e===t||e!=e&&t!=t},tL=bE,rL=CE;Er({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===rL(tL(this),(function(t){if(eL(t,e))return!0}),!0)}});var nL=C,iL=Id,oL=O,aL=Pe,uL=SE.Map;Er({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(oL(this)?this:uL);aL(t);var n=aL(r.set);return iL(e,(function(e){nL(n,r,t(e),e)})),r}});var sL=bE,cL=CE;Er({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=cL(sL(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}});var lL=Kt,fL=bE,dL=CE,hL=SE.Map,pL=SE.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=fL(this),r=lL(e,arguments.length>1?arguments[1]:void 0),n=new hL;return dL(t,(function(e,i){pL(n,r(e,i,t),e)})),n}});var vL=Kt,gL=bE,yL=CE,mL=SE.Map,_L=SE.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=gL(this),r=vL(e,arguments.length>1?arguments[1]:void 0),n=new mL;return yL(t,(function(e,i){_L(n,i,r(e,i,t))})),n}});var bL=bE,wL=Id,kL=SE.set;Er({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=bL(this),r=arguments.length,n=0;n<r;)wL(arguments[n++],(function(e,r){kL(t,e,r)}),{AS_ENTRIES:!0});return t}});var SL=Pe,xL=bE,TL=CE,RL=TypeError;Er({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=xL(this),r=arguments.length<2,n=r?void 0:arguments[1];if(SL(e),TL(t,(function(i,o){r?(r=!1,n=i):n=e(n,i,o,t)})),r)throw RL("Reduce of empty map with no initial value");return n}});var OL=Kt,EL=bE,LL=CE;Er({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=EL(this),r=OL(e,arguments.length>1?arguments[1]:void 0);return!0===LL(t,(function(e,n){if(r(e,n,t))return!0}),!0)}});var AL=Pe,PL=bE,CL=TypeError,jL=SE.get,IL=SE.has,UL=SE.set;Er({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=PL(this),n=arguments.length;AL(t);var i=IL(r,e);if(!i&&n<3)throw CL("Updating absent value");var o=i?jL(r,e):AL(n>2?arguments[2]:void 0)(e,r);return UL(r,e,t(o,e,r)),r}});var ML=C,NL=Pe,FL=O,DL=rr,BL=TypeError,HL=function(e,t){var r,n=DL(this),i=NL(n.get),o=NL(n.has),a=NL(n.set),u=arguments.length>2?arguments[2]:void 0;if(!FL(t)&&!FL(u))throw BL("At least one callback required");return ML(o,n,e)?(r=ML(i,n,e),FL(t)&&(r=t(r),ML(a,n,e,r))):FL(u)&&(r=u(),ML(a,n,e,r)),r};Er({target:"Map",proto:!0,real:!0,forced:!0},{upsert:HL}),Er({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:HL});var zL=r(sE);function qL(e,t){var r=jl(e);if(Il){var n=Il(e);t&&(n=zl(n).call(n,(function(t){return Xl(e,t).enumerable}))),r.push.apply(r,n)}return r}function GL(e){for(var t=1;t<arguments.length;t++){var r,n,i=null!=arguments[t]?arguments[t]:{};t%2?lf(r=qL(Object(i),!0)).call(r,(function(t){JL(e,t,i[t])})):wf?Ef(e,wf(i)):lf(n=qL(Object(i))).call(n,(function(t){Uf(e,t,Xl(i,t))}))}return e}function VL(){VL=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Uf||function(e,t,r){e[t]=r.value},i="function"==typeof Sl?Sl:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Uf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(O){s=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var o=t&&t.prototype instanceof d?t:d,a=Nf(o.prototype),u=new x(i||[]);return n(a,"_invoke",{value:b(e,r,u)}),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={};s(v,o,(function(){return this}));var g=Hf&&Hf(Hf(T([])));g&&g!==t&&r.call(g,o)&&(v=g);var y=p.prototype=d.prototype=Nf(v);function m(e){var t;lf(t=["next","throw","return"]).call(t,(function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function i(n,o,a,u){var s=l(e[n],e,o);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==kl(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,u)}),(function(e){i("throw",e,a,u)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,u)}))}u(s.arg)}var o;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return o=o?o.then(n,n):n()}})}function b(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function w(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],lf(e).call(e,k,this),this.reset(!0)}function T(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next: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=s(p,u,"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 zf?zf(e,p):(e.__proto__=p,s(e,u,"GeneratorFunction")),e.prototype=Nf(y),e},e.awrap=function(e){return{__await:e}},m(_.prototype),s(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,i,o){void 0===o&&(o=Bg);var a=new _(c(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},m(y),s(y,u,"Generator"),s(y,o,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return Wg(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,x.prototype={constructor:x,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,lf(t=this.tryEntries).call(t,S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+py(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function $L(e){return($L="function"==typeof Sl&&"symbol"==typeof JS?function(e){return typeof e}:function(e){return e&&"function"==typeof Sl&&e.constructor===Sl&&e!==Sl.prototype?"symbol":typeof e})(e)}function QL(e,t,r,n,i,o,a){try{var u=e[o](a),s=u.value}catch(ZP){return void r(ZP)}u.done?t(s):Bg.resolve(s).then(n,i)}function YL(e){return function(){var t=this,r=arguments;return new Bg((function(n,i){var o=e.apply(t,r);function a(e){QL(o,n,i,a,u,"next",e)}function u(e){QL(o,n,i,a,u,"throw",e)}a(void 0)}))}}function WL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KL(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),Uf(e,fA(n.key),n)}}function XL(e,t,r){return t&&KL(e.prototype,t),r&&KL(e,r),Uf(e,"prototype",{writable:!1}),e}function JL(e,t,r){return(t=fA(t))in e?Uf(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZL(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Nf(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Uf(e,"prototype",{writable:!1}),t&&tA(e,t)}function eA(e){var t;return(eA=zf?Py(t=Hf).call(t):function(e){return e.__proto__||Hf(e)})(e)}function tA(e,t){var r;return(tA=zf?Py(r=zf).call(r):function(e,t){return e.__proto__=t,e})(e,t)}function rA(){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 nA(e,t,r){var n;rA()?nA=Py(n=$y).call(n):nA=function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Py(Function).apply(e,n));return r&&tA(i,r.prototype),i};return nA.apply(null,arguments)}function iA(e){var t="function"==typeof zL?new zL:void 0;return iA=function(e){if(null===e||(r=e,-1===Dk(n=Function.toString.call(r)).call(n,"[native code]")))return e;var r,n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return nA(e,arguments,eA(this).constructor)}return i.prototype=Nf(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),tA(i,e)},iA(e)}function oA(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=jl(e);for(n=0;n<o.length;n++)r=o[n],Dk(t).call(t,r)>=0||(i[r]=e[r]);return i}(e,t);if(Il){var o=Il(e);for(n=0;n<o.length;n++)r=o[n],Dk(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function aA(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uA(e){var t=rA();return function(){var r,n=eA(e);if(t){var i=eA(this).constructor;r=$y(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===kl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return aA(e)}(this,r)}}function sA(){var e;"undefined"!=typeof Reflect&&ax?sA=Py(e=ax).call(e):sA=function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=eA(e)););return e}(e,t);if(n){var i=Xl(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}};return sA.apply(this,arguments)}function cA(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function lA(e,t){var r=void 0!==Sl&&Al(e)||e["@@iterator"];if(!r){if(Qy(e)||(r=function(e,t){var r;if(e){if("string"==typeof e)return cA(e,t);var n=py(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?cm(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cA(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function fA(e){var t=function(e,t){if("object"!==kl(e)||null===e)return e;var r=e[lm];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==kl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kl(t)?t:String(t)}var dA=Pe,hA=We,pA=G,vA=Dr,gA=TypeError,yA=function(e){return function(t,r,n,i){dA(r);var o=hA(t),a=pA(o),u=vA(o),s=e?u-1:0,c=e?-1:1;if(n<2)for(;;){if(s in a){i=a[s],s+=c;break}if(s+=c,e?s<0:u<=s)throw gA("Reduce of empty array with no initial value")}for(;e?s>=0:u>s;s+=c)s in a&&(i=r(i,a[s],s,o));return i}},mA={left:yA(!1),right:yA(!0)}.left;Er({target:"Array",proto:!0,forced:!nh&&ve>79&&ve<83||!Zl("reduce")},{reduce:function(e){var t=arguments.length;return mA(this,e,t,t>1?arguments[1]:void 0)}});var _A,bA=Nl("Array").reduce,wA=ue,kA=bA,SA=Array.prototype,xA=r((function(e){var t=e.reduce;return e===SA||wA(SA,e)&&t===SA.reduce?kA:t})),TA="network",RA="network_timeout",OA="network_forbidden",EA="network_notfound",LA="network_range_not_satisfiable",AA="demux",PA="remux",CA="media",jA="drm",IA="other",UA="runtime",MA=(JL(_A={},"manifest",{HLS:1100,DASH:1200}),JL(_A,TA,2100),JL(_A,RA,2101),JL(_A,OA,2103),JL(_A,EA,2104),JL(_A,LA,2116),JL(_A,AA,{FLV:3100,HLS:3200,MP4:3300,FMP4:3400,SIDX:3410}),JL(_A,PA,{FMP4:4100,MP4:4200}),JL(_A,CA,{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}),JL(_A,jA,{LICENSE:7100,CUSTOM_LICENSE:7200}),JL(_A,IA,8e3),JL(_A,UA,{NO_CANPLAY_ERROR:9001,BUFFERBREAK_ERROR:9002,WAITING_TIMEOUT_ERROR:9003}),_A),NA=function(e){ZL(r,e);var t=uA(r);function r(e,n,i,o,a){var u;return WL(this,r),(u=t.call(this,a||(null==i?void 0:i.message))).errorType=e===RA?TA:e,u.originError=i,u.ext=o,u.errorCode=MA[e][n]||MA[e],u.errorMessage=u.message,u.errorCode||(u.errorType=IA,u.errorCode=MA[u.errorType]),u}return XL(r,null,[{key:"create",value:function(e,t,n,i,o){return e instanceof r?e:(e instanceof Error&&(n=e,e=""),e||(e=IA),new r(e,t,n,i,o))}},{key:"network",value:function(e){var t;return new r(null!=e&&e.isTimeout?RA:TA,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}(iA(Error)),FA=1,DA=2,BA=3,HA=4,zA=["Boolean","Number","String","Undefined","Null","Date","Object"],qA=function(){function e(t,r){WL(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 XL(e,[{key:"debug",value:function(){for(var t,r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];this.logCache.apply(this,Im(t=[FA]).call(t,o)),e.disabled||(n=console).debug.apply(n,Im(r=[this._prefix,GA()]).call(r,o))}},{key:"log",value:function(){for(var t,r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];this.logCache.apply(this,Im(t=[DA]).call(t,o)),e.disabled||(n=console).log.apply(n,Im(r=[this._prefix,GA()]).call(r,o))}},{key:"warn",value:function(){for(var t,r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];this.logCache.apply(this,Im(t=[BA]).call(t,o)),e.disabled||(n=console).warn.apply(n,Im(r=[this._prefix,GA()]).call(r,o))}},{key:"error",value:function(){for(var t,r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];this.logCache.apply(this,Im(t=[HA]).call(t,o)),e.disabled||(n=console).error.apply(n,Im(r=[this._prefix,GA()]).call(r,o))}},{key:"logCache",value:function(e){if(!(e<this.logCacheLevel)){var t="";try{for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=WS(n).call(n,(function(e){return $A(e)}));t=this._prefix+GA()+DR(o)}catch(u){return}if(e>=this.logCacheLevel&&(this.logSize+=t.length,this.logTextArray.push(t)),this.logSize>this.logMaxSize){var a=this.logTextArray.shift();this.logSize-=a.length}}}},{key:"getLogCache",value:function(){var e=this.logTextArray.join("\n");return this.reset(),e}},{key:"reset",value:function(){this.logTextArray=[],this.logSize=0}},{key:"table",value:function(){var t;e.disabled||(console.group(this._prefix),(t=console).table.apply(t,arguments),console.groupEnd())}},{key:"setLogLevel",value:function(e){this.logCacheLevel=e}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();function GA(){return(new Date).toLocaleString()}function VA(e){var t;if("object"!==$L(e))return e;var r=py(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 $A(e,t,r){var n;r||(r=1),t||(t=2);var i={};if(!e||"object"!==$L(e))return e;var o=py(n=Object.prototype.toString.call(e)).call(n,8,-1);if(!aO(zA).call(zA,o))return o;if(!(r>t)){for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r===t?i[a]=VA(e[a]):"object"===$L(e[a])?i[a]=$A(e[a],t,r+1):i[a]=e[a]);return i}}JL(qA,"disabled",!0);var QA="fetch",YA="xhr",WA="arraybuffer",KA="text",XA="json",JA=function(e){ZL(r,e);var t=uA(r);function r(e,n,i,o){var a;return WL(this,r),JL(aA(a=t.call(this,o)),"retryCount",0),JL(aA(a),"isTimeout",!1),JL(aA(a),"loaderType",QA),JL(aA(a),"startTime",0),JL(aA(a),"endTime",0),JL(aA(a),"options",{}),a.url=e,a.request=n,a.response=i,a}return XL(r)}(iA(Error)),ZA=Object.prototype.toString;function eP(e){if("[object Object]"!==ZA.call(e))return!1;var t=Hf(e);return null===t||t===Object.prototype}function tP(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 rP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nP(e,t){var r,n;if(e){if(!t)return e;var i,o=zl(r=WS(n=jl(t)).call(n,(function(e){if(null!=(i=t[e]))return Qy(i)?e+="[]":i=[i],WS(i).call(i,(function(t){var r,n;return n=t,"[object Date]"===ZA.call(n)?t=t.toISOString():function(e){return null!==e&&"object"===$L(e)}(t)&&(t=DR(t)),Im(r="".concat(rP(e),"=")).call(r,rP(t))})).join("&")}))).call(r,Boolean).join("&");if(o){var a=Dk(e).call(e,"#");-1!==a&&(e=py(e).call(e,0,a)),e+=(-1===Dk(e).call(e,"?")?"?":"&")+o}return e}}function iP(e,t,r,n,i,o,a,u,s,c,l){return i=null!=i?OT(i):null,n=qS(n||"0",10),wS(n)&&(n=0),{data:e,done:t,options:{range:s,vid:c,index:u,contentLength:n,age:i,startTime:o,firstByteTime:a,endTime:mR(),priOptions:l},response:r}}function oP(e,t){return Math.round(8*e*1e3/t/1024)}var aP="error",uP="core.ttfb",sP="core.loadstart",cP="core.loadresponseheaders",lP="core.loadcomplete",fP="core.loadretry",dP="core.metadataparsed",hP="core.sei",pP="real_time_speed",vP=2097152,gP=function(e){ZL(n,e);var t,r=uA(n);function n(){var e;return WL(this,n),JL(aA(e=r.call(this)),"_abortController",null),JL(aA(e),"_timeoutTimer",null),JL(aA(e),"_reader",null),JL(aA(e),"_response",null),JL(aA(e),"_aborted",!1),JL(aA(e),"_index",-1),JL(aA(e),"_range",null),JL(aA(e),"_receivedLength",0),JL(aA(e),"_running",!1),JL(aA(e),"_logger",null),JL(aA(e),"_vid",""),JL(aA(e),"_onProcessMinLen",0),JL(aA(e),"_onCancel",null),JL(aA(e),"_priOptions",null),e}return XL(n,[{key:"load",value:function(e){var t,r=this,n=e.url,i=e.vid,o=e.timeout,a=e.responseType,u=e.onProgress,s=e.index,c=e.onTimeout,l=e.onCancel,f=e.range,d=e.transformResponse,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,k=e.redirect,S=e.referrer,x=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=s,this._range=f||[0,0],this._vid=i||n,this._priOptions=R||{};var O={method:g,headers:y,body:m,mode:_,credentials:b,cache:w,redirect:k,referrer:S,referrerPolicy:x,signal:null===(t=this._abortController)||void 0===t?void 0:t.signal},E=!1;clearTimeout(this._timeoutTimer),n=nP(n,p);var L=tP(f);L&&(y=h?h.headers:O.headers=O.headers||(Headers?new Headers:{}),Headers&&y instanceof Headers?y.append("Range",L):y.Range=L),o&&(this._timeoutTimer=lT((function(){if(E=!0,r.cancel(),c){var e=new JA(n,O,null,"timeout");e.isTimeout=!0,c(e,{index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions})}}),o));var A=mR();return this._logger.debug("[fetch load start], index,",s,",range,",f),new Bg((function(e,t){fetch(h||n,h?void 0:O).then(function(){var i=YL(VL().mark((function i(o){var c,l,h,p;return VL().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(clearTimeout(r._timeoutTimer),r._response=o,!r._aborted&&r._running){i.next=4;break}return i.abrupt("return");case 4:if(d&&(o=d(o,n)||o),o.ok){i.next=7;break}throw new JA(n,O,o,"bad network response");case 7:if(c=mR(),a!==KA){i.next=15;break}return i.next=11,o.text();case 11:l=i.sent,r._running=!1,i.next=37;break;case 15:if(a!==XA){i.next=22;break}return i.next=18,o.json();case 18:l=i.sent,r._running=!1,i.next=37;break;case 22:if(!u){i.next=29;break}return r.resolve=e,r.reject=t,r._loadChunk(o,u,A,c),i.abrupt("return");case 29:return i.next=31,o.arrayBuffer();case 31:l=i.sent,l=new Uint8Array(l),r._running=!1,h=mR()-A,p=oP(l.byteLength,h),r.emit(pP,{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,",s,",range,",f),e(iP(l,!0,o,o.headers.get("Content-Length"),o.headers.get("age"),A,c,s,f,r._vid,r._priOptions));case 39:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}()).catch((function(e){var i;clearTimeout(r._timeoutTimer),r._running=!1,r._aborted&&!E||((e=e instanceof JA?e:new JA(n,O,null,null===(i=e)||void 0===i?void 0:i.message)).startTime=A,e.endTime=mR(),e.isTimeout=E,e.options={index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions},t(e))}))}))}},{key:"cancel",value:(t=YL(VL().mark((function e(){return VL().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(ZP){}this._abortController=null}this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions});case 16:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(){return t.apply(this,arguments)})},{key:"_loadChunk",value:function(e,t,r,n){var i=this;if(!e.body||!e.body.getReader){this._running=!1;var o=new JA(e.url,"",e,"onProgress of bad response.body.getReader");return o.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},void this.reject(o)}this._onProcessMinLen>0&&(this._cache=new Uint8Array(vP),this._writeIdx=0);var a,u,s,c=this._reader=e.body.getReader(),l=function(){var o=YL(VL().mark((function o(){var f,d,h,p,v,g,y,m;return VL().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return u=mR(),o.prev=1,o.next=4,c.read();case 4:a=o.sent,s=mR(),o.next=13;break;case 8:return o.prev=8,o.t0=o.catch(1),s=mR(),i._aborted||(i._running=!1,o.t0.options={index:i._index,range:i._range,vid:i._vid,priOptions:i._priOptions},i.reject(o.t0)),o.abrupt("return");case 13:if(d=(null===(f=i._range)||void 0===f?void 0:f.length)>0?i._range[0]:0,h=d+i._receivedLength,!i._aborted){o.next=19;break}return i._running=!1,t(void 0,!1,{range:[h,h],vid:i._vid,index:i._index,startTime:u,endTime:s,st:r,firstByteTime:n,priOptions:i._priOptions},e),o.abrupt("return");case 19:var _;if(p=a.value?a.value.byteLength:0,i._receivedLength+=p,i._logger.debug("【fetchLoader,onProgress call】,task,",i._range,", start,",h,", end,",d+i._receivedLength,", done,",a.done),i._onProcessMinLen>0){if(i._writeIdx+p>=i._onProcessMinLen||a.done)(v=new Uint8Array(i._writeIdx+p)).set(py(_=i._cache).call(_,0,i._writeIdx),0),p>0&&v.set(a.value,i._writeIdx),i._writeIdx=0,i._logger.debug("【fetchLoader,onProgress enough】,done,",a.done,",len,",v.byteLength,", writeIdx,",i._writeIdx);else if(p>0&&i._writeIdx+p<vP)i._cache.set(a.value,i._writeIdx),i._writeIdx+=p,i._logger.debug("【fetchLoader,onProgress cache】,len,",p,", writeIdx,",i._writeIdx);else if(p>0){var b;g=new Uint8Array(i._writeIdx+p+2048),i._logger.debug("【fetchLoader,onProgress extra start】,size,",i._writeIdx+p+2048,", datalen,",p,", writeIdx,",i._writeIdx),g.set(py(b=i._cache).call(b,0,i._writeIdx),0),p>0&&g.set(a.value,i._writeIdx),i._writeIdx+=p,delete i._cache,i._cache=g,i._logger.debug("【fetchLoader,onProgress extra end】,len,",p,", writeIdx,",i._writeIdx)}}else v=a.value;(v&&v.byteLength>0||a.done)&&t(v,a.done,{range:[i._range[0]+i._receivedLength-(v?v.byteLength:0),i._range[0]+i._receivedLength],vid:i._vid,index:i._index,startTime:u,endTime:s,st:r,firstByteTime:n,priOptions:i._priOptions},e),a.done?(y=mR()-r,m=oP(i._receivedLength,y),i.emit(pP,{speed:m,len:i._receivedLength,time:y,vid:i._vid,index:i._index,range:i._range,priOptions:i._priOptions}),i._running=!1,i._logger.debug("[fetchLoader onProgress end],task,",i._range,",done,",a.done),i.resolve(iP(a,!0,e,e.headers.get("Content-Length"),e.headers.get("age"),r,n,i._index,i._range,i._vid,i._priOptions))):l();case 25:case"end":return o.stop()}}),o,null,[[1,8]])})));return function(){return o.apply(this,arguments)}}();l()}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}}],[{key:"isSupported",value:function(){return!("undefined"==typeof fetch)}}]),n}(mx);var yP=function(e){ZL(r,e);var t=uA(r);function r(){var e;return WL(this,r),JL(aA(e=t.call(this)),"_xhr",null),JL(aA(e),"_aborted",!1),JL(aA(e),"_timeoutTimer",null),JL(aA(e),"_range",null),JL(aA(e),"_receivedLength",0),JL(aA(e),"_url",null),JL(aA(e),"_onProgress",null),JL(aA(e),"_index",-1),JL(aA(e),"_headers",null),JL(aA(e),"_currentChunkSizeKB",384),JL(aA(e),"_timeout",null),JL(aA(e),"_xhr",null),JL(aA(e),"_withCredentials",null),JL(aA(e),"_startTime",-1),JL(aA(e),"_loadCompleteResolve",null),JL(aA(e),"_loadCompleteReject",null),JL(aA(e),"_runing",!1),JL(aA(e),"_logger",!1),JL(aA(e),"_vid",""),JL(aA(e),"_responseType",void 0),JL(aA(e),"_credentials",void 0),JL(aA(e),"_method",void 0),JL(aA(e),"_transformResponse",void 0),JL(aA(e),"_firstRtt",void 0),JL(aA(e),"_onCancel",null),JL(aA(e),"_priOptions",null),e}return XL(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=nP(e.url,e.params);var r=mR();return new Bg((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 JA?e:new JA(t._url,t._request)).startTime=r,e.endTime=mR(),e.options={index:t._index,vid:t._vid,priOptions:t._priOptions},e}))}},{key:"_startLoad",value:function(){var e=null;if(this._responseType===WA&&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=mR();var i=this._xhr=new XMLHttpRequest;i.open(this._method||"GET",this._url,!0),i.responseType=this._responseType,this._timeout&&(i.timeout=this._timeout),i.withCredentials=this._withCredentials,i.onload=Py(r=this._onLoad).call(r,this),i.onreadystatechange=Py(n=this._onReadyStatechange).call(n,this),i.onerror=function(e){var r,n,i;t._running=!1;var o=new JA(t._url,t._request,null==e||null===(r=e.currentTarget)||void 0===r?void 0:r.response,"xhr.onerror.status:"+(null==e||null===(n=e.currentTarget)||void 0===n?void 0:n.status)+",statusText,"+(null==e||null===(i=e.currentTarget)||void 0===i?void 0:i.statusText));o.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(o)},i.ontimeout=function(e){t.cancel();var r=new JA(t._url,t._request,{status:408},"timeout");t._onTimeout&&(r.isTimeout=!0,t._onTimeout(r,{index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions})),r.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(r)};var o,a=this._headers||{},u=tP(e);if(u&&(a.Range=u),a)lf(o=jl(a)).call(o,(function(e){i.setRequestHeader(e,a[e])}));this._logger.debug("[xhr.send->] tast,",this._range,",load sub range, ",e),i.send(this._body)}catch(s){s.options={index:this._index,range:e,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(s)}}},{key:"_onReadyStatechange",value:function(e){2===e.target.readyState&&this._firstRtt<0&&(this._firstRtt=mR())}},{key:"_onLoad",value:function(e){var t,r=e.target.status;if(r<200||r>299){var n=new JA(this._url,null,GL(GL({},e.target.response),{},{status:r}),"bad response,status:"+r);return n.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(n)}var i,o=null,a=!1,u=(null===(t=this._range)||void 0===t?void 0:t.length)>0?this._range[0]:0;if(this._responseType===WA){var s,c=new Uint8Array(e.target.response);if(i=u+this._receivedLength,c&&c.byteLength>0){this._receivedLength+=c.byteLength;var l=mR()-this._startTime,f=oP(this._receivedLength,l);this.emit(pP,{speed:f,len:this._receivedLength,time:l,vid:this._vid,index:this._index,range:[i,u+this._receivedLength],priOptions:this._priOptions})}o=c,a=!((null===(s=this._range)||void 0===s?void 0:s.length)>1&&this._range[1]&&this._receivedLength<this._range[1]-this._range[0]),this._logger.debug("[xhr load done->], tast :",this._range,", start",i,"end ",u+this._receivedLength,",dataLen,",c?c.byteLength:0,",receivedLength",this._receivedLength,",index,",this._index,", done,",a)}else a=!0,o=e.target.response;var d={ok:r>=200&&r<300,status:r,statusText:this._xhr.statusText,url:this._xhr.responseURL,headers:this._getHeaders(this._xhr),body:this._xhr.response};this._transformResponse&&(d=this._transformResponse(d,this._url)||d),this._onProgress&&this._onProgress(o,a,{index:this._index,vid:this._vid,range:[i,u+this._receivedLength],startTime:this._startTime,endTime:mR(),priOptions:this._priOptions},d),a?(this._runing=!1,this._loadCompleteResolve&&this._loadCompleteResolve(iP(this._onProgress?null:o,a,d,d.headers["content-length"],d.headers.age,this._startTime,this._firstRtt,this._index,this._range,this._vid,this._priOptions))):this._startLoad()}},{key:"cancel",value:function(){if(!this._aborted)return this._aborted=!0,this._runing=!1,sA(eA(r.prototype),"removeAllListeners",this).call(this),this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions}),this._xhr?this._xhr.abort():void 0}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}},{key:"_getHeaders",value:function(e){var t,r,n={},i=lA(MT(t=e.getAllResponseHeaders()).call(t).split("\r\n"));try{for(i.s();!(r=i.n()).done;){var o=r.value.split(": ");n[o[0].toLowerCase()]=py(o).call(o,1).join(": ")}}catch(a){i.e(a)}finally{i.f()}return n}}],[{key:"isSupported",value:function(){return"undefined"!=typeof XMLHttpRequest}}]),r}(mx),mP=["retry","retryDelay","onRetryError","transformError"],_P=function(){function e(t,r){var n,i,o;WL(this,e),this.promise=((o=new Bg((function(e,t){n=e,i=t}))).used=!1,o.resolve=function(){return o.used=!0,n.apply(void 0,arguments)},o.reject=function(){return o.used=!0,i.apply(void 0,arguments)},o),this.alive=!!r.onProgress,!r.logger&&(r.logger=new qA("Loader")),this._loaderType=t,this._loader=t===QA&&"undefined"!=typeof fetch?new gP:new yP,this._config=r,this._retryCount=0,this._retryTimer=null,this._canceled=!1,this._retryCheckFunc=r.retryCheckFunc,this._logger=r.logger}var t;return XL(e,[{key:"exec",value:function(){var e=this,t=this._config,r=t.retry,n=t.retryDelay,i=t.onRetryError,o=t.transformError,a=oA(t,mP),u=function(){var t=YL(VL().mark((function t(){var s,c,l;return VL().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._loader.load(a);case 3:s=t.sent,e.promise.resolve(s),t.next=27;break;case 7:if(t.prev=7,t.t0=t.catch(0),e._loader.running=!1,e._logger.debug("[task request catch err]",t.t0),!e._canceled){t.next=13;break}return t.abrupt("return");case 13:if(t.t0.loaderType=e._loaderType,t.t0.retryCount=e._retryCount,c=t.t0,o&&(c=o(c)||c),i&&e._retryCount>0&&i(c,e._retryCount,{index:a.index,vid:a.vid,range:a.range,priOptions:a.priOptions}),e._retryCount++,l=!0,e._retryCheckFunc&&(l=e._retryCheckFunc(t.t0)),!(l&&e._retryCount<=r)){t.next=26;break}return clearTimeout(e._retryTimer),e._logger.debug("[task request setTimeout],retry",e._retryCount,",retry range,",a.range),e._retryTimer=lT(u,n),t.abrupt("return");case 26:e.promise.reject(c);case 27:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(){return t.apply(this,arguments)}}();return u(),this.promise}},{key:"cancel",value:(t=YL(VL().mark((function e(){return VL().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 bP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Bg((function(t){return lT(t,e)}))}var wP,kP=function(e){ZL(n,e);var t,r=uA(n);function n(e){var t;return WL(this,n),JL(aA(t=r.call(this,e)),"type",QA),JL(aA(t),"_queue",[]),JL(aA(t),"_alive",[]),JL(aA(t),"_currentTask",null),JL(aA(t),"_finnalUrl",""),JL(aA(t),"_config",void 0),t._config=function(e){return GL({loaderType:QA,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:KA,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!==YA&&gP.isSupported()||(t.type=YA),t.log=e.logger,t}return XL(n,[{key:"isFetch",value:function(){return this.type===QA}},{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=XS({},this._config,r)).params&&(r.params=XS({},r.params)),r.headers&&eP(r.headers)&&(r.headers=XS({},r.headers)),r.body&&eP(r.body)&&(r.body=XS({},r.body)),r.transformRequest&&(r=r.transformRequest(r)||r),r.logger=this.log;var n=new _P(this.type,r);return n.loader.on(pP,(function(e){t.emit(pP,e)})),this._queue.push(n),1!==this._queue.length||this._currentTask&&this._currentTask.running||this._processTask(),n.promise}},{key:"cancel",value:(t=YL(VL().mark((function e(){var t;return VL().wrap((function(e){for(var r,n,i;;)switch(e.prev=e.next){case 0:return t=Im(r=WS(n=this._queue).call(n,(function(e){return e.cancel()}))).call(r,WS(i=this._alive).call(i,(function(e){return e.cancel()}))),this._currentTask&&t.push(this._currentTask.cancel()),this._queue=[],this._alive=[],e.next=6,Bg.all(t);case 6:return e.next=8,bP();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=zl(n=e._alive).call(n,(function(t){return t&&t!==e._currentTask})));e._processTask()}))}}}],[{key:"isFetchSupport",value:function(){return gP.isSupported()}}]),n}(mx),SP="core.rtcstatechange",xP={},TP={},RP={exports:{}},OP=RP.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),t+=null!=e["network-id"]?" network-id %d":"%v",t+=null!=e["network-cost"]?" network-cost %d":"%v"}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){var t="mediaclk:";return t+=null!=e.id?"id=%s %s":"%v%s",t+=null!=e.mediaClockValue?"=%s":"",t+=null!=e.rateNumerator?" rate=%s":"",t+=null!=e.rateDenominator?"/%s":""}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};lf(wP=jl(OP)).call(wP,(function(e){var t=OP[e];lf(t).call(t,(function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}));var EP=RP.exports;!function(e,t){var r=function(e){return String(Number(e))===e?Number(e):e},n=function(e,t,n){var i=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:i&&!t[e.name]&&(t[e.name]={});var o=e.push?{}:i?t[e.name]:t;!function(e,t,n,i){if(i&&!n)t[i]=r(e[1]);else for(var o=0;o<n.length;o+=1)null!=e[o+1]&&(t[n[o]]=r(e[o+1]))}(n.match(e.reg),o,e.names,e.name),e.push&&t[e.push].push(o)},i=EP,o=Py(t=RegExp.prototype.test).call(t,/^([a-z])=(.*)/);e.parse=function(e){var t,r,a={},u=[],s=a;return lf(t=zl(r=e.split(/(\r\n|\r|\n)/)).call(r,o)).call(t,(function(e){var t=e[0],r=py(e).call(e,2);"m"===t&&(u.push({rtp:[],fmtp:[]}),s=u[u.length-1]);for(var o=0;o<(i[t]||[]).length;o+=1){var a=i[t][o];if(a.reg.test(r))return n(a,s,r)}})),a.media=u,a};var a=function(e,t){var n=t.split(/=(.+)/,2);return 2===n.length?e[n[0]]=r(n[1]):1===n.length&&t.length>1&&(e[n[0]]=void 0),e};e.parseParams=function(e){var t;return xA(t=e.split(/;\s?/)).call(t,a,{})},e.parseFmtpConfig=e.parseParams,e.parsePayloads=function(e){var t;return WS(t=e.toString().split(" ")).call(t,Number)},e.parseRemoteCandidates=function(e){for(var t,n=[],i=WS(t=e.split(" ")).call(t,r),o=0;o<i.length;o+=3)n.push({component:i[o],ip:i[o+1],port:i[o+2]});return n},e.parseImageAttributes=function(e){var t;return WS(t=e.split(" ")).call(t,(function(e){var t;return xA(t=e.substring(1,e.length-1).split(",")).call(t,a,{})}))},e.parseSimulcastStreamList=function(e){var t;return WS(t=e.split(";")).call(t,(function(e){var t;return WS(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}}))}))}}(TP);var LP=EP,AP=/%[sdv%]/g,PP=function(e){var t=1,r=arguments,n=r.length;return e.replace(AP,(function(e){if(t>=n)return e;var i=r[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(i);case"%d":return Number(i);case"%v":return""}}))},CP=function(e,t,r){var n=[e+"="+(t.format instanceof Function?t.format(t.push?r:r[t.name]):t.format)];if(t.names)for(var i=0;i<t.names.length;i+=1){var o=t.names[i];t.name?n.push(r[t.name][o]):n.push(r[t.names[i]])}else n.push(r[t.name]);return PP.apply(null,n)},jP=["v","o","s","i","u","e","p","c","b","t","r","z","a"],IP=["i","c","b","a"],UP=TP,MP=function(e,t){var r,n;t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),lf(r=e.media).call(r,(function(e){null==e.payloads&&(e.payloads="")}));var i=t.outerOrder||jP,o=t.innerOrder||IP,a=[];return lf(i).call(i,(function(t){var r;lf(r=LP[t]).call(r,(function(r){if(r.name in e&&null!=e[r.name])a.push(CP(t,r,e));else if(r.push in e&&null!=e[r.push]){var n;lf(n=e[r.push]).call(n,(function(e){a.push(CP(t,r,e))}))}}))})),lf(n=e.media).call(n,(function(e){a.push(CP("m",LP.m[0],e)),lf(o).call(o,(function(t){var r;lf(r=LP[t]).call(r,(function(r){if(r.name in e&&null!=e[r.name])a.push(CP(t,r,e));else if(r.push in e&&null!=e[r.push]){var n;lf(n=e[r.push]).call(n,(function(e){a.push(CP(t,r,e))}))}}))}))})),a.join("\r\n")+"\r\n"};function NP(e){return new Bg((function(t){var r;null===(r=e.getStats(null))||void 0===r||r.then((function(e){var r,n,i;t((n=[],i=[],lf(r=e).call(r,(function(e){"inbound-rtp"===e.type&&n.push(e),"remote-outbound-rtp"===e.type&&i.push(e)})),WS(n).call(n,(function(e){var t=r.get(e.codecId),n=r.get(e.trackId);return{type:e.mediaType,inboundRtp:e,remoteOutBoundRtp:Yk(i).call(i,(function(t){return t.mediaType===e.mediaType})),codec:t,track:n}}))))}))})).catch((function(){}))}function FP(e){var t,r,n,i,o,a,u,s,c,l,f,d,h,p,v,g,y,m,_,b,w,k,S,x,T,R,O,E,L,A,P,C=null==e?void 0:zl(e).call(e,(function(e){return"video"===e.type}))[0],j=null==e?void 0:zl(e).call(e,(function(e){return"audio"===e.type}))[0];return C&&C.remoteOutBoundRtp&&(A={bytesSent:C.remoteOutBoundRtp.bytesSent,packetsSent:C.remoteOutBoundRtp.packetsSent}),j&&j.remoteOutBoundRtp&&(P={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===(i=C.inboundRtp)||void 0===i?void 0:i.bytesReceived)||0,firCount:null===(o=C.inboundRtp)||void 0===o?void 0:o.firCount,pliCount:null===(a=C.inboundRtp)||void 0===a?void 0:a.pliCount,frameHeight:null===(u=C.inboundRtp)||void 0===u?void 0:u.frameHeight,frameWidth:null===(s=C.inboundRtp)||void 0===s?void 0:s.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===(k=j.inboundRtp)||void 0===k?void 0:k.bytesReceived)||0,audioLevel:null===(S=j.inboundRtp)||void 0===S?void 0:S.audioLevel,jitter:null===(x=j.inboundRtp)||void 0===x?void 0:x.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:A,audioRemote:P}}xP.write=MP,xP.parse=UP.parse,xP.parseParams=UP.parseParams,xP.parseFmtpConfig=UP.parseFmtpConfig,xP.parsePayloads=UP.parsePayloads,xP.parseRemoteCandidates=UP.parseRemoteCandidates,xP.parseImageAttributes=UP.parseImageAttributes,xP.parseSimulcastStreamList=UP.parseSimulcastStreamList;var DP=function(){function e(t,r){var n=this;gm(this,e),_m(this,"_pc",null),_m(this,"_lastVideoStats",null),_m(this,"_lastRemoteVideoStats",null),_m(this,"_timer",0),_m(this,"_timerInterval",0),_m(this,"_speedQueue",[]),_m(this,"_lostRateQueue",[]),_m(this,"_receivedRateQueue",[]),_m(this,"_currentSpeed",-1),_m(this,"_currentLostRate",-1),_m(this,"_currentReceivedRate",-1),_m(this,"_evaluate",vm(hm().mark((function e(){var t,r,i,o,a,u,s,c,l,f,d,h,p,v,g,y;return hm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,NP(n._pc).then((function(e){return FP(e)}));case 3:t=e.sent,n._lastVideoStats&&null!=t&&t.video&&(r=t.video,i=r.bytesReceived,o=r.packetsLost,a=r.packetsReceived,u=n._lastVideoStats,s=u.bytesReceived,c=u.packetsLost,l=u.packetsReceived,s&&n._cacheSpeed(8e3*(i-s)/n._timerInterval),f=o-c,(d=a-l)&&f>=0&&n._cacheLostRate(f/(f+d)*1e3/n._timerInterval)),n._lastRemoteVideoStats&&null!=t&&t.videoRemote&&(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 mm(e,[{key:"start",value:function(e){clearInterval(this._timer),this._pc&&(this._timer=cT(this._evaluate,e))}},{key:"getStats",value:function(){return this._speedQueue.length?{speed:OT(this._currentSpeed.toFixed(2)),avgSpeed:OT(this._getAvgSpeed().toFixed(2)),lostRate:OT(this._currentLostRate.toFixed(2)),avgLostRate:OT(this._getAvgLostRate().toFixed(2)),receivedRate:OT(this._currentReceivedRate.toFixed(2)),avgReceivedRate:OT(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=py(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=py(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=py(t=this._receivedRateQueue).call(t,5));this._receivedRateQueue.push(e)}},{key:"_getAvgSpeed",value:function(){var e;return-1===this._currentSpeed?-1:xA(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:xA(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:xA(e=this._receivedRateQueue).call(e,(function(e,t){return e+t}),0)/this._receivedRateQueue.length}}]),e}(),BP=function(e){return e[e.internal=0]="internal",e[e.external=1]="external",e[e.bypass=2]="bypass",e}(BP||{}),HP=new Uint8Array([109,167,53,190,103,90,72,1,170,89,63,164,194,199,19,85]),zP=new Uint8Array([109,167,53,190,103,90,72,1,170,89,63,164,194,199,19,84]);function qP(e){for(var t=[];e>=255;)e-=255,t.push(255);return t.push(e),new Uint8Array(t)}function GP(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=0;255===e[t]&&t<e.byteLength;)t++,r+=255;return t<e.byteLength&&(r+=e[t++]),[r,t]}var VP=function(){function e(){gm(this,e)}return mm(e,null,[{key:"generateSEI",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint8Array([0,0,0,1]),i=new Uint8Array([6]),o=new Uint8Array([5]),a=r?HP:zP,u=qP(e.byteLength+a.byteLength),s=function(e){for(var t=[],r=0;r<e.length;r++)e[r]<=3&&0===e[r-1]&&0===e[r-2]&&t.push(3),t.push(e[r]);return new Uint8Array(t)}(e);return new Uint8Array(Im(t=[]).call(t,Rm(n),Rm(i),Rm(o),Rm(u),Rm(a),Rm(s),[128]))}},{key:"decodeSeiBody",value:function(e){var t=function(e){for(var t=[],r=0;r<e.length;r++)e[r]<=3&&0===e[r-1]&&0===e[r-2]||t.push(e[r]);return new Uint8Array(t)}(e=py(e).call(e,0,e.length-1));if(!(t.byteLength<2)){var r=0;if(5===t[1]||100===t[1]){var n=Tm(GP(t,r+=2),2),i=n[0],o=2,a=(r=n[1])+i;return t.byteLength>=zP.byteLength&&i>=zP.byteLength&&py(t).call(t,r,r+zP.byteLength).toString()===zP.toString()?(r+=zP.byteLength,o=1):t.byteLength>=zP.byteLength&&i>=zP.byteLength&&py(t).call(t,r,r+HP.byteLength).toString()===HP.toString()&&(r+=HP.byteLength,o=0),{type:o,payload:py(t).call(t,r,a)}}}}},{key:"parseInternalSEI",value:function(e){var t=new zL,r=0;if(0===e.type){for(;e.payload.byteLength-r>=2;){var n=Tm(GP(e.payload,r),2),i=n[0];r=n[1];var o,a=Tm(GP(e.payload,r),2),u=a[0];if(r=a[1],t.get(i)||!(u<=e.payload.byteLength-r))break;t.set(i,py(o=e.payload).call(o,r,r+u)),r+=u}return t}}},{key:"makeInternalSei",value:function(e){var t,r=[],n=function(e,t){var r=void 0!==Sl&&Al(e)||e["@@iterator"];if(!r){if(Qy(e)||(r=Om(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}(e);try{for(n.s();!(t=n.n()).done;){var i=Tm(t.value,2),o=i[0],a=i[1],u=qP(o),s=qP(a.byteLength);r.push(u,s,a)}}catch(f){n.e(f)}finally{n.f()}var c=xA(r).call(r,(function(e,t){return e+t.byteLength}),0),l=new Uint8Array(c);return xA(r).call(r,(function(e,t){return l.set(t,e),e+t.byteLength}),0),l}}]),e}(),$P=function(){function e(){gm(this,e)}return mm(e,null,[{key:"getNalunits",value:function(t){if(t.length-t.position<4)return[];var r=t.position;return 1===t.getInt32(r)||0===t.getInt16(r)&&1===t.getInt8(r+2)?e.getAnnexbNals(t):e.getAvccNals(t)}},{key:"getAnnexbNals",value:function(t){for(var r=[],n=e.getHeaderPositionAnnexB(t),i=n.pos,o=i;i<t.length-4;){var a,u,s=new Uint8Array(py(a=t.buffer).call(a,i,i+n.headerLength));n.pos===t.position&&t.skip(n.headerLength),o=(n=e.getHeaderPositionAnnexB(t)).pos;var c={header:s,body:new Uint8Array(py(u=t.buffer).call(u,i+s.byteLength,o)),type:-1};e.analyseNal(c),c.type<=9&&0!==c.type&&r.push(c),t.skip(o-t.position),i=o}return r}},{key:"getAvccNals",value:function(t){for(var r=[];t.position<t.length-4;){var n=t.getInt32(t.position);if(!(t.length-t.position>=n))break;var i,o,a=new Uint8Array(py(i=t.buffer).call(i,t.position,t.position+4));t.skip(4);var u=new Uint8Array(py(o=t.buffer).call(o,t.position,t.position+n));t.skip(n);var s={header:a,body:u,type:-1};e.analyseNal(s),s.type<=9&&0!==s.type&&r.push(s)}return r}},{key:"analyseNal",value:function(e){var t=31&e.body[0];switch(e.type=t,t){case 1:e.ndr=!0;break;case 5:e.idr=!0;break;case 6:e.sei=!0;break;case 7:e.sps=!0;break;case 8:e.pps=!0}}},{key:"getHeaderPositionAnnexB",value:function(e){for(var t=e.position,r=0,n=e.length;3!==r&&4!==r&&t<n-4;)0===e.getInt16(t)?1===e.getInt16(t+2)?r=4:1===e.getInt8(t+2)?r=3:t++:t++;return t===n-4&&(0===e.getInt16(t)?1===e.getInt16(t+2)?r=4:t=n:(t++,0===e.getInt16(t)&&1===e.getInt8(t)?r=3:t=n)),{pos:t,headerLength:r}}}]),e}(),QP=function(){function e(t){gm(this,e),this._position=0,this._dataview=new DataView(t)}return mm(e,[{key:"length",get:function(){return this.buffer.byteLength}},{key:"buffer",get:function(){return this._dataview.buffer}},{key:"position",get:function(){return this._position},set:function(e){this._position=e}},{key:"back",value:function(e){this.position-=e}},{key:"getUint8",value:function(e){return this._dataview.getUint8(e)}},{key:"getInt8",value:function(e){return this._dataview.getInt8(e)}},{key:"getInt16",value:function(e){return this._dataview.getInt16(e)}},{key:"getUint16",value:function(e){return this._dataview.getUint16(e)}},{key:"getUint32",value:function(e){return this._dataview.getUint32(e)}},{key:"getInt32",value:function(e){return this._dataview.getInt32(e)}},{key:"skip",value:function(t){for(var r=Math.floor(t/4),n=t%4,i=0;i<r;i++)e.readByte(this,4);n>0&&e.readByte(this,n)}},{key:"readUint8",value:function(){return e.readByte(this,1)}},{key:"readUint16",value:function(){return e.readByte(this,2)}},{key:"readUint24",value:function(){return e.readByte(this,3)}},{key:"readUint32",value:function(){return e.readByte(this,4)}},{key:"readUint64",value:function(){return e.readByte(this,8)}},{key:"readInt8",value:function(){return e.readByte(this,1,!0)}},{key:"readInt16",value:function(){return e.readByte(this,2,!0)}},{key:"readInt32",value:function(){return e.readByte(this,4,!0)}},{key:"writeUint32",value:function(e){return new Uint8Array([e>>>24&255,e>>>16&255,e>>>8&255,255&e])}}],[{key:"readByte",value:function(e,t,r){var n;switch(t){case 1:n=r?e.getInt8(e.position):e.getUint8(e.position);break;case 2:n=r?e.getInt16(e.position):e.getUint16(e.position);break;case 3:if(r)throw new Error("not supported for readByte 3");n=e.getUint8(e.position)<<16,n|=e.getUint8(e.position+1)<<8,n|=e.getUint8(e.position+2);break;case 4:n=r?e.getInt32(e.position):e.getUint32(e.position);break;case 8:if(r)throw new Error("not supported for readBody 8");n=e.getUint32(e.position)<<32,n|=e.getUint32(e.position+4);break;default:n=""}return e.position+=t,n}}]),e}();function YP(){return!(!window.RTCPeerConnection||!window.RTCPeerConnection.prototype.addTransceiver)}var WP=new qA("rts"),KP=function(e){bm(i,e);var t,r,n=xm(i);function i(e){var t;return gm(this,i),_m(Sm(t=n.call(this)),"_url",""),_m(Sm(t),"_pc",null),_m(Sm(t),"_audioTransceicer",null),_m(Sm(t),"_videoTransceicer",null),_m(Sm(t),"_mediaStream",null),_m(Sm(t),"_media",null),_m(Sm(t),"_opts",null),_m(Sm(t),"_loader",null),_m(Sm(t),"_networkEvaluate",null),_m(Sm(t),"_retry",0),_m(Sm(t),"_waitingTimer",0),_m(Sm(t),"_rctConnectStartTs",0),_m(Sm(t),"_onTrack",(function(e){WP.log("addTrack: ",e.track,e.streams),t["_".concat(e.track.kind)]=e.track})),_m(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=lT((function(){var e;null!==(e=t._media)&&void 0!==e&&e.paused||t.emit("waiting")}),t._opts.stallInterval))})),_m(Sm(t),"_onLoadedData",(function(){WP.log("loadeddata emit"),t.getStatsSnapshoot().then((function(e){t.emit(dP,{type:"video",elapsed:mR()-t._rctConnectStartTs,meta:e.video}),t.emit(dP,{type:"audio",elapsed:mR()-t._rctConnectStartTs,meta:e.audio})}))})),_m(Sm(t),"_onLoaderRetry",(function(e,r){t.emit(fP,{error:NA.network(e),retryTime:r})})),t._opts=function(e){return dm({retryCount:0,retryDelay:1e3,loadTimeout:5e3,stallInterval:400,networkEvaluateInterval:1e3,delayHint:0,seamlesslyReload:!1,enableSei:!0},e)}(e),t._media=t._opts.media,t._loader=new kP(dm(dm({},e.fetchOptions),{},{responseType:"json",method:"POST",retry:t._opts.retryCount,retryDelay:t._opts.retryDelay,timeout:t._opts.loadTimeout,onRetryError:t._onLoaderRetry,logger:WP})),t._retry=t._opts.retryCount,t._bindMediaEvent(),t}return mm(i,[{key:"pc",get:function(){return this._pc}},{key:"audioTrack",get:function(){return this._audio}},{key:"videoTack",get:function(){return this._video}},{key:"loader",get:function(){return this._loader}},{key:"networkStats",get:function(){var e;return null===(e=this._networkEvaluate)||void 0===e?void 0:e.getStats()}},{key:"getStats",value:function(){return NP(this._pc)}},{key:"getStatsSnapshoot",value:function(){return this.getStats().then((function(e){return FP(e)}))}},{key:"load",value:(r=vm(hm().mark((function e(t){var r,n=this;return hm().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),lT((function(){return n._emitError(NA.create(IA,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(WP.warn("onconnectionstatechange:",t.connectionState),e.emit(SP,{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(NA.network(new Error("rtc connect failed")));e._retry--,e.load(e._url)}"connected"===t.connectionState&&(e._handleMediaStream(),e.emit(uP,{url:e._url,responseUrl:e._url,elapsed:mR()-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._audio&&this._mediaStream.addTrack(this._audio),this._video&&this._mediaStream.addTrack(this._video)}},{key:"initVideoEncodedTransform",value:function(){var e=this;if(this._videoTransceicer&&this._videoTransceicer.receiver){var t=this._videoTransceicer.receiver;if("undefined"!=typeof TransformStream&&"undefined"!=typeof RTCRtpReceiver&&void 0!==RTCRtpReceiver.prototype.createEncodedStreams){var r=t.createEncodedStreams(),n=r.readable,i=r.writable;n.pipeThrough(new TransformStream({transform:function(t,r){var n=$P.getNalunits(new QP(t.data));lf(n).call(n,(function(t){if(t.sei){var r=VP.decodeSeiBody(t.body);r&&r.type!==BP.internal&&e.emit(hP,{sei:{content:r.payload}})}})),r.enqueue(t)}})).pipeTo(i)}}else console.log("no receiver found when trying to bind encodedTransform")}},{key:"_bindMediaEvent",value:function(){this._media.addEventListener("timeupdate",this._mockWaitingByTimeupdate),this._media.addEventListener("loadeddata",this._onLoadedData)}},{key:"_connect",value:(t=vm(hm().mark((function e(){var t,r,n,i,o,a,u,s,c,l,f,d,h,p;return hm().wrap((function(e){for(var v,g,y,m;;)switch(e.prev=e.next){case 0:if(!(t=this._pc).addTransceiver){e.next=12;break}return this._audioTransceicer=t.addTransceiver("audio",{direction:"recvonly"}),this._videoTransceicer=t.addTransceiver("video",{direction:"recvonly"}),this._opts.enableSei&&this.initVideoEncodedTransform(),(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=9,t.createOffer();case 9:r=e.sent,e.next=15;break;case 12:return e.next=14,t.createOffer({iceRestart:!0,offerToReceiveAudio:!0,offerToReceiveVideo:!0});case 14:r=e.sent;case 15:return WP.log("local offer"),WP.log(r.sdp),i=xP.parse(r.sdp),lf(v=zl(g=i.media).call(g,(function(e){return"audio"===e.type}))).call(v,(function(e){var t,r,n,i,o=null===(n=zl(t=e.rtp).call(t,(function(e){return"opus"===e.codec}))[0])||void 0===n?void 0:n.payload;o&&(lf(r=e.fmtp).call(r,(function(e){e.payload===o&&(e.config="minptime=10;stereo=1;useinbandfec=1")})),null===(i=e.rtcpFb)||void 0===i||i.push({payload:o,type:"nack"}))})),r.sdp=xP.write(i),WP.log("local offer modified:\n",r.sdp),e.next=23,t.setLocalDescription(r);case 23:return o=this._url,e.prev=24,this._opts.preProcessUrl&&(o=this._opts.preProcessUrl(o).url),this._loader.finnalUrl=o,s=/_?session_id=([^&$]+)/.exec(o),c=s?s[1]:mR()+"666",this.emit(sP,{url:o,offersdp:r.sdp,sessionId:c}),l=mR(),e.next=33,this._loader.load(o,{body:DR({sessionId:c,version:"1.0-html",localSdp:r})});case 33:if(f=e.sent,this.emit(cP,{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=41;break}return(h=NA.create(404===d.code?EA:OA,null,d)).errorType=TA,this._emitError(h),e.abrupt("return");case 41:if(200===(null==d?void 0:d.code)){e.next=43;break}throw new Error(Im(y="code: ".concat(null==d?void 0:d.code,", message:")).call(y,null==d?void 0:d.message));case 43:return WP.log("answer:"),WP.log(null===(a=d.remoteSdp)||void 0===a?void 0:a.sdp),this.emit(lP,{url:o,elapsed:mR()-l,answersdp:null===(u=d.remoteSdp)||void 0===u?void 0:u.sdp}),p=xP.parse(d.remoteSdp.sdp),lf(m=p.media).call(m,(function(e){e.fingerprint.hash=e.fingerprint.hash.toUpperCase()})),d.remoteSdp.sdp=xP.write(p),WP.log("answer modified:\n",d.remoteSdp.sdp),this._rctConnectStartTs=mR(),e.next=53,this._pc.setRemoteDescription(d.remoteSdp);case 53:this._networkEvaluate=new DP(t,this._opts.networkEvaluateInterval),e.next=59;break;case 56:e.prev=56,e.t0=e.catch(24),this._emitError(NA.network(e.t0));case 59:case"end":return e.stop()}}),e,this,[[24,56]])}))),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(aP,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(){qA.enable()}},{key:"disableLogger",value:function(){qA.disable()}}]),i}(mx);try{localStorage.getItem("xgd")?KP.enableLogger():KP.disableLogger()}catch(ZP){}var XP=function(e){bm(n,e);var t,r=xm(n);function n(){var e,t;gm(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return _m(Sm(t=r.call.apply(r,Im(e=[this]).call(e,o))),"_rts",null),_m(Sm(t),"_mediaStream",null),_m(Sm(t),"_rtsOpts",null),_m(Sm(t),"_onPause",(function(){var e,r,n;if(null!==(e=t._rts)&&void 0!==e&&e._pc){var i;if(null!==(r=t.config)&&void 0!==r&&r.seamlesslyReload)t._mediaStream=null===(i=t._rts)||void 0===i?void 0:i._mediaStream;null===(n=t._rts)||void 0===n||n.destroy()}})),_m(Sm(t),"_onPlay",(function(){var e;null!==(e=t._rts)&&void 0!==e&&e._pc||t._init()})),_m(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 KP(dm({media:t.player.video,mediaStream:t._mediaStream,preProcessUrl:function(e,r){var n,i;return(null===(n=(i=t.player).preProcessUrl)||void 0===n?void 0:n.call(i,e,r))||{url:e,ext:r}}},n)),t._rts.load(r.url)})),_m(Sm(t),"_onSwitchURL",(function(e){t._rts&&(t.player.config.url=e,t._rts.switchURL(e))})),_m(Sm(t),"destroy",(function(){var e;t.player.switchURL=t._originSwitchFn,null===(e=t._rts)||void 0===e||e.destroy(),t._rts=null})),t}return mm(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.8"}},{key:"beforePlayerInit",value:function(){var e,t,r,n,i=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=i._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(sP),this._transCoreEvent(lP),this._transCoreEvent(uP),this._transCoreEvent(cP),this._transCoreEvent(fP),this._transCoreEvent(dP),this._transCoreEvent(hP),this._transCoreEvent(SP);try{UR.defineGetterOrSetter(this.player,{__url:{get:function(){try{return Lk.createObjectURL(new MediaSource)}catch(r){var e,t;null!==(e=i.player)&&void 0!==e&&null!==(t=e.video)&&void 0!==t&&t.srcObject||(i.player.video.srcObject=new MediaStream)}}}})}catch(o){}}},{key:"getStats",value:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.getStats()}},{key:"getStatsSnapshoot",value:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.getStatsSnapshoot()}},{key:"getNetWorkInfo",value:function(){var e;return null===(e=this._rts)||void 0===e?void 0:e.networkStats}},{key:"_transErrorEvent",value:function(){var e=this;this._rts.on(aP,(function(t){if(e.player){var r=new LR(e.player,t),n=e._rtsOpts,i=n.backupConstruct,o=n.backupURL;if(o){var a,u=e.player;u.emit("core_event",dm(dm({},{url:u.config.url,code:r.errorCode,message:r.message,httpCode:r.httpCode}),{},{eventName:"core.degrade"})),u.emit("degrade",{url:u.config.url,code:r.errorCode,message:r.message,httpCode:r.httpCode}),u.unRegisterPlugin("rts"),u.switchURL=e._originSwitchFn,e._rts=null,u.rts=null,null!==(a=u.video)&&void 0!==a&&a.srcObject&&(u.video.srcObject=null),u.config.url=o,i?u.registerPlugin(i).beforePlayerInit():u.video.src=o}else e.player.emit("error",r)}})),this._rts.on("waiting",(function(){var t;null===(t=e.player)||void 0===t||t.emit("waiting")}))}},{key:"_transCoreEvent",value:function(e){var t=this;this._rts.on(e,(function(r){t.player&&t.player.emit("core_event",dm(dm({},r),{},{eventName:e}))}))}}],[{key:"pluginName",get:function(){return"rts"}},{key:"isSupported",value:function(){return YP()}},{key:"getCapacity",value:function(){return function(){if(!YP())return Bg.reject("RTCPeerConnection no support");var e;try{(e=new RTCPeerConnection).addTransceiver("video",{direction:"recvonly"}),e.addTransceiver("audio",{direction:"recvonly"})}catch(t){return Bg.reject(null==t?void 0:t.message)}return e.createOffer().then((function(t){var r,n,i,o;WP.log(t.sdp);var a=xP.parse(t.sdp),u=null===(r=a.media)||void 0===r?void 0:zl(r).call(r,(function(e){return"video"===e.type}))[0],s=null===(n=a.media)||void 0===n?void 0:zl(n).call(n,(function(e){return"audio"===e.type}))[0],c=null==u||null===(i=u.rtp)||void 0===i?void 0:zl(i).call(i,(function(e){return"VP8"===e.codec||"VP9"===e.codec||"H264"===e.codec})),l=null==s||null===(o=s.rtp)||void 0===o?void 0:zl(o).call(o,(function(e){return"opus"===e.codec})),f=null==u?void 0:u.fmtp,d=null==s?void 0:s.fmtp;return f&&WS(c).call(c,(function(e){var t;e.config=null===(t=zl(f).call(f,(function(t){return t.payload===e.payload}))[0])||void 0===t?void 0:t.config})),d&&WS(l).call(l,(function(e){var t;e.config=null===(t=zl(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=vm(hm().mark((function e(t){var r,i,o,a,u;return hm().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.getCapacity();case 3:if(i=e.sent,o=null===(r=i.video)||void 0===r?void 0:zl(r).call(r,(function(e){var r;return"H264"===e.codec&&(!t||-1!==Dk(r=e.config).call(r,t))})).length){e.next=10;break}return e.next=8,n.getCapacity();case 8:u=e.sent,o=null===(a=u.video)||void 0===a?void 0:zl(a).call(a,(function(e){var r;return"H264"===e.codec&&(!t||-1!==Dk(r=e.config).call(r,t))})).length;case 10:return e.abrupt("return",!!o);case 13:return e.prev=13,e.t0=e.catch(0),e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e,null,[[0,13]])}))),function(e){return t.apply(this,arguments)})}]),n}(UR),JP=window.VePlayer.DynamicModule;VePlayer.registerPlugin(JP.PluginRtm,{RtmPlugin:XP}),e.RtmPlugin=XP}));