@byteplus/rtc 4.60.0 → 4.60.2-ewy.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extension-ainr/index.d.ts +1 -64
- package/extension-ainr/index.js +4 -4
- package/extension-ainr/index.umd.js +3 -3
- package/extension-beauty/index.d.ts +13 -116
- package/extension-beauty/index.js +4 -4
- package/extension-beauty/index.umd.js +3 -3
- package/index.d.ts +5 -1
- package/index.esm.min.js +2 -2
- package/index.min.js +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2024 The BytePlusRTC project authors. All Rights Reserved.
|
|
3
3
|
* @brief BytePlusRTC Advance API
|
|
4
|
-
* version: 4.
|
|
4
|
+
* version: 4.60.2-ewy.1
|
|
5
5
|
*/
|
|
6
|
-
!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n=function(t){return t&&t.Math===Math&&t},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),i=function(t){try{return!!t()}catch(e){return!0}},o=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),a=o,s=Function.prototype,u=s.apply,c=s.call,l="object"==typeof Reflect&&Reflect.apply||(a?c.bind(u):function(){return c.apply(u,arguments)}),f=o,h=Function.prototype,d=h.call,p=f&&h.bind.bind(d,d),v=f?p:function(t){return function(){return d.apply(t,arguments)}},_=v,g=_({}.toString),y=_("".slice),m=function(t){return y(g(t),8,-1)},b=m,w=v,k=function(t){if("Function"===b(t))return w(t)},S="object"==typeof document&&document.all,x={all:S,IS_HTMLDDA:void 0===S&&void 0!==S},E=x.all,O=x.IS_HTMLDDA?function(t){return"function"==typeof t||t===E}:function(t){return"function"==typeof t},A={},T=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),C=o,R=Function.prototype.call,I=C?R.bind(R):function(){return R.apply(R,arguments)},B={},L={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,z=M&&!L.call({1:2},1);B.f=z?function(t){var e=M(this,t);return!!e&&e.enumerable}:L;var P,N,j=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},D=i,F=m,U=Object,K=v("".split),G=D((function(){return!U("z").propertyIsEnumerable(0)}))?function(t){return"String"===F(t)?K(t,""):U(t)}:U,Z=function(t){return null==t},H=Z,W=TypeError,V=function(t){if(H(t))throw W("Can't call method on "+t);return t},Y=G,J=V,X=function(t){return Y(J(t))},q=O,Q=x.all,$=x.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:q(t)||t===Q}:function(t){return"object"==typeof t?null!==t:q(t)},tt={},et=tt,nt=r,rt=O,it=function(t){return rt(t)?t:void 0},ot=function(t,e){return arguments.length<2?it(et[t])||it(nt[t]):et[t]&&et[t][e]||nt[t]&&nt[t][e]},at=v({}.isPrototypeOf),st="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ut=r,ct=st,lt=ut.process,ft=ut.Deno,ht=lt&<.versions||ft&&ft.version,dt=ht&&ht.v8;dt&&(N=(P=dt.split("."))[0]>0&&P[0]<4?1:+(P[0]+P[1])),!N&&ct&&(!(P=ct.match(/Edge\/(\d+)/))||P[1]>=74)&&(P=ct.match(/Chrome\/(\d+)/))&&(N=+P[1]);var pt=N,vt=pt,_t=i,gt=r.String,yt=!!Object.getOwnPropertySymbols&&!_t((function(){var t=Symbol("symbol detection");return!gt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&vt&&vt<41})),mt=yt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bt=ot,wt=O,kt=at,St=Object,xt=mt?function(t){return"symbol"==typeof t}:function(t){var e=bt("Symbol");return wt(e)&&kt(e.prototype,St(t))},Et=String,Ot=function(t){try{return Et(t)}catch(e){return"Object"}},At=O,Tt=Ot,Ct=TypeError,Rt=function(t){if(At(t))return t;throw Ct(Tt(t)+" is not a function")},It=Rt,Bt=Z,Lt=function(t,e){var n=t[e];return Bt(n)?void 0:It(n)},Mt=I,zt=O,Pt=$,Nt=TypeError,jt={exports:{}},Dt=r,Ft=Object.defineProperty,Ut=function(t,e){try{Ft(Dt,t,{value:e,configurable:!0,writable:!0})}catch(n){Dt[t]=e}return e},Kt="__core-js_shared__",Gt=r[Kt]||Ut(Kt,{}),Zt=Gt;(jt.exports=function(t,e){return Zt[t]||(Zt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.32.1",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Ht=jt.exports,Wt=V,Vt=Object,Yt=function(t){return Vt(Wt(t))},Jt=Yt,Xt=v({}.hasOwnProperty),qt=Object.hasOwn||function(t,e){return Xt(Jt(t),e)},Qt=v,$t=0,te=Math.random(),ee=Qt(1..toString),ne=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ee(++$t+te,36)},re=Ht,ie=qt,oe=ne,ae=yt,se=mt,ue=r.Symbol,ce=re("wks"),le=se?ue.for||ue:ue&&ue.withoutSetter||oe,fe=function(t){return ie(ce,t)||(ce[t]=ae&&ie(ue,t)?ue[t]:le("Symbol."+t)),ce[t]},he=I,de=$,pe=xt,ve=Lt,_e=function(t,e){var n,r;if("string"===e&&zt(n=t.toString)&&!Pt(r=Mt(n,t)))return r;if(zt(n=t.valueOf)&&!Pt(r=Mt(n,t)))return r;if("string"!==e&&zt(n=t.toString)&&!Pt(r=Mt(n,t)))return r;throw Nt("Can't convert object to primitive value")},ge=TypeError,ye=fe("toPrimitive"),me=function(t,e){if(!de(t)||pe(t))return t;var n,r=ve(t,ye);if(r){if(void 0===e&&(e="default"),n=he(r,t,e),!de(n)||pe(n))return n;throw ge("Can't convert object to primitive value")}return void 0===e&&(e="number"),_e(t,e)},be=xt,we=function(t){var e=me(t,"string");return be(e)?e:e+""},ke=$,Se=r.document,xe=ke(Se)&&ke(Se.createElement),Ee=function(t){return xe?Se.createElement(t):{}},Oe=Ee,Ae=!T&&!i((function(){return 7!==Object.defineProperty(Oe("div"),"a",{get:function(){return 7}}).a})),Te=T,Ce=I,Re=B,Ie=j,Be=X,Le=we,Me=qt,ze=Ae,Pe=Object.getOwnPropertyDescriptor;A.f=Te?Pe:function(t,e){if(t=Be(t),e=Le(e),ze)try{return Pe(t,e)}catch(n){}if(Me(t,e))return Ie(!Ce(Re.f,t,e),t[e])};var Ne=i,je=O,De=/#|\.prototype\./,Fe=function(t,e){var n=Ke[Ue(t)];return n===Ze||n!==Ge&&(je(e)?Ne(e):!!e)},Ue=Fe.normalize=function(t){return String(t).replace(De,".").toLowerCase()},Ke=Fe.data={},Ge=Fe.NATIVE="N",Ze=Fe.POLYFILL="P",He=Fe,We=Rt,Ve=o,Ye=k(k.bind),Je=function(t,e){return We(t),void 0===e?t:Ve?Ye(t,e):function(){return t.apply(e,arguments)}},Xe={},qe=T&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Qe=$,$e=String,tn=TypeError,en=function(t){if(Qe(t))return t;throw tn($e(t)+" is not an object")},nn=T,rn=Ae,on=qe,an=en,sn=we,un=TypeError,cn=Object.defineProperty,ln=Object.getOwnPropertyDescriptor,fn="enumerable",hn="configurable",dn="writable";Xe.f=nn?on?function(t,e,n){if(an(t),e=sn(e),an(n),"function"==typeof t&&"prototype"===e&&"value"in n&&dn in n&&!n[dn]){var r=ln(t,e);r&&r[dn]&&(t[e]=n.value,n={configurable:hn in n?n[hn]:r[hn],enumerable:fn in n?n[fn]:r[fn],writable:!1})}return cn(t,e,n)}:cn:function(t,e,n){if(an(t),e=sn(e),an(n),rn)try{return cn(t,e,n)}catch(r){}if("get"in n||"set"in n)throw un("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var pn=Xe,vn=j,_n=T?function(t,e,n){return pn.f(t,e,vn(1,n))}:function(t,e,n){return t[e]=n,t},gn=r,yn=l,mn=k,bn=O,wn=A.f,kn=He,Sn=tt,xn=Je,En=_n,On=qt,An=function(t){var e=function(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return yn(t,this,arguments)};return e.prototype=t.prototype,e},Tn=function(t,e){var n,r,i,o,a,s,u,c,l,f=t.target,h=t.global,d=t.stat,p=t.proto,v=h?gn:d?gn[f]:(gn[f]||{}).prototype,_=h?Sn:Sn[f]||En(Sn,f,{})[f],g=_.prototype;for(o in e)r=!(n=kn(h?o:f+(d?".":"#")+o,t.forced))&&v&&On(v,o),s=_[o],r&&(u=t.dontCallGetSet?(l=wn(v,o))&&l.value:v[o]),a=r&&u?u:e[o],r&&typeof s==typeof a||(c=t.bind&&r?xn(a,gn):t.wrap&&r?An(a):p&&bn(a)?mn(a):a,(t.sham||a&&a.sham||s&&s.sham)&&En(c,"sham",!0),En(_,o,c),p&&(On(Sn,i=f+"Prototype")||En(Sn,i,{}),En(Sn[i],o,a),t.real&&g&&(n||!g[o])&&En(g,o,a)))},Cn=m,Rn=Array.isArray||function(t){return"Array"===Cn(t)},In=Math.ceil,Bn=Math.floor,Ln=Math.trunc||function(t){var e=+t;return(e>0?Bn:In)(e)},Mn=function(t){var e=+t;return e!=e||0===e?0:Ln(e)},zn=Mn,Pn=Math.min,Nn=function(t){return t>0?Pn(zn(t),9007199254740991):0},jn=Nn,Dn=function(t){return jn(t.length)},Fn=TypeError,Un=function(t){if(t>9007199254740991)throw Fn("Maximum allowed index exceeded");return t},Kn=we,Gn=Xe,Zn=j,Hn=function(t,e,n){var r=Kn(e);r in t?Gn.f(t,r,Zn(0,n)):t[r]=n},Wn={};Wn[fe("toStringTag")]="z";var Vn="[object z]"===String(Wn),Yn=Vn,Jn=O,Xn=m,qn=fe("toStringTag"),Qn=Object,$n="Arguments"===Xn(function(){return arguments}()),tr=Yn?Xn:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=Qn(t),qn))?n:$n?Xn(e):"Object"===(r=Xn(e))&&Jn(e.callee)?"Arguments":r},er=O,nr=Gt,rr=v(Function.toString);er(nr.inspectSource)||(nr.inspectSource=function(t){return rr(t)});var ir=nr.inspectSource,or=v,ar=i,sr=O,ur=tr,cr=ir,lr=function(){},fr=[],hr=ot("Reflect","construct"),dr=/^\s*(?:class|function)\b/,pr=or(dr.exec),vr=!dr.exec(lr),_r=function(t){if(!sr(t))return!1;try{return hr(lr,fr,t),!0}catch(e){return!1}},gr=function(t){if(!sr(t))return!1;switch(ur(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return vr||!!pr(dr,cr(t))}catch(e){return!0}};gr.sham=!0;var yr=!hr||ar((function(){var t;return _r(_r.call)||!_r(Object)||!_r((function(){t=!0}))||t}))?gr:_r,mr=Rn,br=yr,wr=$,kr=fe("species"),Sr=Array,xr=function(t){var e;return mr(t)&&(e=t.constructor,(br(e)&&(e===Sr||mr(e.prototype))||wr(e)&&null===(e=e[kr]))&&(e=void 0)),void 0===e?Sr:e},Er=function(t,e){return new(xr(t))(0===e?0:e)},Or=i,Ar=pt,Tr=fe("species"),Cr=function(t){return Ar>=51||!Or((function(){var e=[];return(e.constructor={})[Tr]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Rr=Tn,Ir=i,Br=Rn,Lr=$,Mr=Yt,zr=Dn,Pr=Un,Nr=Hn,jr=Er,Dr=Cr,Fr=pt,Ur=fe("isConcatSpreadable"),Kr=Fr>=51||!Ir((function(){var t=[];return t[Ur]=!1,t.concat()[0]!==t})),Gr=function(t){if(!Lr(t))return!1;var e=t[Ur];return void 0!==e?!!e:Br(t)};Rr({target:"Array",proto:!0,arity:1,forced:!Kr||!Dr("concat")},{concat:function(t){var e,n,r,i,o,a=Mr(this),s=jr(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Gr(o=-1===e?a:arguments[e]))for(i=zr(o),Pr(u+i),n=0;n<i;n++,u++)n in o&&Nr(s,u,o[n]);else Pr(u+1),Nr(s,u++,o);return s.length=u,s}});var Zr=tr,Hr=String,Wr=function(t){if("Symbol"===Zr(t))throw TypeError("Cannot convert a Symbol value to a string");return Hr(t)},Vr={},Yr=Mn,Jr=Math.max,Xr=Math.min,qr=function(t,e){var n=Yr(t);return n<0?Jr(n+e,0):Xr(n,e)},Qr=X,$r=qr,ti=Dn,ei=function(t){return function(e,n,r){var i,o=Qr(e),a=ti(o),s=$r(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},ni={includes:ei(!0),indexOf:ei(!1)},ri={},ii=qt,oi=X,ai=ni.indexOf,si=ri,ui=v([].push),ci=function(t,e){var n,r=oi(t),i=0,o=[];for(n in r)!ii(si,n)&&ii(r,n)&&ui(o,n);for(;e.length>i;)ii(r,n=e[i++])&&(~ai(o,n)||ui(o,n));return o},li=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fi=ci,hi=li,di=Object.keys||function(t){return fi(t,hi)},pi=T,vi=qe,_i=Xe,gi=en,yi=X,mi=di;Vr.f=pi&&!vi?Object.defineProperties:function(t,e){gi(t);for(var n,r=yi(e),i=mi(e),o=i.length,a=0;o>a;)_i.f(t,n=i[a++],r[n]);return t};var bi,wi=ot("document","documentElement"),ki=ne,Si=Ht("keys"),xi=function(t){return Si[t]||(Si[t]=ki(t))},Ei=en,Oi=Vr,Ai=li,Ti=ri,Ci=wi,Ri=Ee,Ii="prototype",Bi="script",Li=xi("IE_PROTO"),Mi=function(){},zi=function(t){return"<"+Bi+">"+t+"</"+Bi+">"},Pi=function(t){t.write(zi("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ni=function(){try{bi=new ActiveXObject("htmlfile")}catch(i){}var t,e,n;Ni="undefined"!=typeof document?document.domain&&bi?Pi(bi):(e=Ri("iframe"),n="java"+Bi+":",e.style.display="none",Ci.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(zi("document.F=Object")),t.close(),t.F):Pi(bi);for(var r=Ai.length;r--;)delete Ni[Ii][Ai[r]];return Ni()};Ti[Li]=!0;var ji=Object.create||function(t,e){var n;return null!==t?(Mi[Ii]=Ei(t),n=new Mi,Mi[Ii]=null,n[Li]=t):n=Ni(),void 0===e?n:Oi.f(n,e)},Di={},Fi=ci,Ui=li.concat("length","prototype");Di.f=Object.getOwnPropertyNames||function(t){return Fi(t,Ui)};var Ki={},Gi=qr,Zi=Dn,Hi=Hn,Wi=Array,Vi=Math.max,Yi=m,Ji=X,Xi=Di.f,qi=function(t,e,n){for(var r=Zi(t),i=Gi(e,r),o=Gi(void 0===n?r:n,r),a=Wi(Vi(o-i,0)),s=0;i<o;i++,s++)Hi(a,s,t[i]);return a.length=s,a},Qi="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Ki.f=function(t){return Qi&&"Window"===Yi(t)?function(t){try{return Xi(t)}catch(e){return qi(Qi)}}(t):Xi(Ji(t))};var $i={};$i.f=Object.getOwnPropertySymbols;var to=_n,eo=function(t,e,n,r){return r&&r.enumerable?t[e]=n:to(t,e,n),t},no=Xe,ro=function(t,e,n){return no.f(t,e,n)},io={},oo=fe;io.f=oo;var ao,so,uo,co=tt,lo=qt,fo=io,ho=Xe.f,po=function(t){var e=co.Symbol||(co.Symbol={});lo(e,t)||ho(e,t,{value:fo.f(t)})},vo=I,_o=ot,go=fe,yo=eo,mo=function(){var t=_o("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,r=go("toPrimitive");e&&!e[r]&&yo(e,r,(function(t){return vo(n,this)}),{arity:1})},bo=tr,wo=Vn?{}.toString:function(){return"[object "+bo(this)+"]"},ko=Vn,So=Xe.f,xo=_n,Eo=qt,Oo=wo,Ao=fe("toStringTag"),To=function(t,e,n,r){if(t){var i=n?t:t.prototype;Eo(i,Ao)||So(i,Ao,{configurable:!0,value:e}),r&&!ko&&xo(i,"toString",Oo)}},Co=O,Ro=r.WeakMap,Io=Co(Ro)&&/native code/.test(String(Ro)),Bo=r,Lo=$,Mo=_n,zo=qt,Po=Gt,No=xi,jo=ri,Do="Object already initialized",Fo=Bo.TypeError,Uo=Bo.WeakMap;if(Io||Po.state){var Ko=Po.state||(Po.state=new Uo);Ko.get=Ko.get,Ko.has=Ko.has,Ko.set=Ko.set,ao=function(t,e){if(Ko.has(t))throw Fo(Do);return e.facade=t,Ko.set(t,e),e},so=function(t){return Ko.get(t)||{}},uo=function(t){return Ko.has(t)}}else{var Go=No("state");jo[Go]=!0,ao=function(t,e){if(zo(t,Go))throw Fo(Do);return e.facade=t,Mo(t,Go,e),e},so=function(t){return zo(t,Go)?t[Go]:{}},uo=function(t){return zo(t,Go)}}var Zo={set:ao,get:so,has:uo,enforce:function(t){return uo(t)?so(t):ao(t,{})},getterFor:function(t){return function(e){var n;if(!Lo(e)||(n=so(e)).type!==t)throw Fo("Incompatible receiver, "+t+" required");return n}}},Ho=Je,Wo=G,Vo=Yt,Yo=Dn,Jo=Er,Xo=v([].push),qo=function(t){var e=1===t,n=2===t,r=3===t,i=4===t,o=6===t,a=7===t,s=5===t||o;return function(u,c,l,f){for(var h,d,p=Vo(u),v=Wo(p),_=Ho(c,l),g=Yo(v),y=0,m=f||Jo,b=e?m(u,g):n||a?m(u,0):void 0;g>y;y++)if((s||y in v)&&(d=_(h=v[y],y,p),t))if(e)b[y]=d;else if(d)switch(t){case 3:return!0;case 5:return h;case 6:return y;case 2:Xo(b,h)}else switch(t){case 4:return!1;case 7:Xo(b,h)}return o?-1:r||i?i:b}},Qo={forEach:qo(0),map:qo(1),filter:qo(2),some:qo(3),every:qo(4),find:qo(5),findIndex:qo(6),filterReject:qo(7)},$o=Tn,ta=r,ea=I,na=v,ra=T,ia=yt,oa=i,aa=qt,sa=at,ua=en,ca=X,la=we,fa=Wr,ha=j,da=ji,pa=di,va=Di,_a=Ki,ga=$i,ya=A,ma=Xe,ba=Vr,wa=B,ka=eo,Sa=ro,xa=Ht,Ea=ri,Oa=ne,Aa=fe,Ta=io,Ca=po,Ra=mo,Ia=To,Ba=Zo,La=Qo.forEach,Ma=xi("hidden"),za="Symbol",Pa="prototype",Na=Ba.set,ja=Ba.getterFor(za),Da=Object[Pa],Fa=ta.Symbol,Ua=Fa&&Fa[Pa],Ka=ta.TypeError,Ga=ta.QObject,Za=ya.f,Ha=ma.f,Wa=_a.f,Va=wa.f,Ya=na([].push),Ja=xa("symbols"),Xa=xa("op-symbols"),qa=xa("wks"),Qa=!Ga||!Ga[Pa]||!Ga[Pa].findChild,$a=ra&&oa((function(){return 7!==da(Ha({},"a",{get:function(){return Ha(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Za(Da,e);r&&delete Da[e],Ha(t,e,n),r&&t!==Da&&Ha(Da,e,r)}:Ha,ts=function(t,e){var n=Ja[t]=da(Ua);return Na(n,{type:za,tag:t,description:e}),ra||(n.description=e),n},es=function(t,e,n){t===Da&&es(Xa,e,n),ua(t);var r=la(e);return ua(n),aa(Ja,r)?(n.enumerable?(aa(t,Ma)&&t[Ma][r]&&(t[Ma][r]=!1),n=da(n,{enumerable:ha(0,!1)})):(aa(t,Ma)||Ha(t,Ma,ha(1,{})),t[Ma][r]=!0),$a(t,r,n)):Ha(t,r,n)},ns=function(t,e){ua(t);var n=ca(e),r=pa(n).concat(as(n));return La(r,(function(e){ra&&!ea(rs,n,e)||es(t,e,n[e])})),t},rs=function(t){var e=la(t),n=ea(Va,this,e);return!(this===Da&&aa(Ja,e)&&!aa(Xa,e))&&(!(n||!aa(this,e)||!aa(Ja,e)||aa(this,Ma)&&this[Ma][e])||n)},is=function(t,e){var n=ca(t),r=la(e);if(n!==Da||!aa(Ja,r)||aa(Xa,r)){var i=Za(n,r);return!i||!aa(Ja,r)||aa(n,Ma)&&n[Ma][r]||(i.enumerable=!0),i}},os=function(t){var e=Wa(ca(t)),n=[];return La(e,(function(t){aa(Ja,t)||aa(Ea,t)||Ya(n,t)})),n},as=function(t){var e=t===Da,n=Wa(e?Xa:ca(t)),r=[];return La(n,(function(t){!aa(Ja,t)||e&&!aa(Da,t)||Ya(r,Ja[t])})),r};ia||(Fa=function(){if(sa(Ua,this))throw Ka("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?fa(arguments[0]):void 0,e=Oa(t),n=function(t){this===Da&&ea(n,Xa,t),aa(this,Ma)&&aa(this[Ma],e)&&(this[Ma][e]=!1),$a(this,e,ha(1,t))};return ra&&Qa&&$a(Da,e,{configurable:!0,set:n}),ts(e,t)},ka(Ua=Fa[Pa],"toString",(function(){return ja(this).tag})),ka(Fa,"withoutSetter",(function(t){return ts(Oa(t),t)})),wa.f=rs,ma.f=es,ba.f=ns,ya.f=is,va.f=_a.f=os,ga.f=as,Ta.f=function(t){return ts(Aa(t),t)},ra&&Sa(Ua,"description",{configurable:!0,get:function(){return ja(this).description}})),$o({global:!0,constructor:!0,wrap:!0,forced:!ia,sham:!ia},{Symbol:Fa}),La(pa(qa),(function(t){Ca(t)})),$o({target:za,stat:!0,forced:!ia},{useSetter:function(){Qa=!0},useSimple:function(){Qa=!1}}),$o({target:"Object",stat:!0,forced:!ia,sham:!ra},{create:function(t,e){return void 0===e?da(t):ns(da(t),e)},defineProperty:es,defineProperties:ns,getOwnPropertyDescriptor:is}),$o({target:"Object",stat:!0,forced:!ia},{getOwnPropertyNames:os}),Ra(),Ia(Fa,za),Ea[Ma]=!0;var ss=yt&&!!Symbol.for&&!!Symbol.keyFor,us=Tn,cs=ot,ls=qt,fs=Wr,hs=Ht,ds=ss,ps=hs("string-to-symbol-registry"),vs=hs("symbol-to-string-registry");us({target:"Symbol",stat:!0,forced:!ds},{for:function(t){var e=fs(t);if(ls(ps,e))return ps[e];var n=cs("Symbol")(e);return ps[e]=n,vs[n]=e,n}});var _s=Tn,gs=qt,ys=xt,ms=Ot,bs=ss,ws=Ht("symbol-to-string-registry");_s({target:"Symbol",stat:!0,forced:!bs},{keyFor:function(t){if(!ys(t))throw TypeError(ms(t)+" is not a symbol");if(gs(ws,t))return ws[t]}});var ks=v([].slice),Ss=Rn,xs=O,Es=m,Os=Wr,As=v([].push),Ts=Tn,Cs=ot,Rs=l,Is=I,Bs=v,Ls=i,Ms=O,zs=xt,Ps=ks,Ns=function(t){if(xs(t))return t;if(Ss(t)){for(var e=t.length,n=[],r=0;r<e;r++){var i=t[r];"string"==typeof i?As(n,i):"number"!=typeof i&&"Number"!==Es(i)&&"String"!==Es(i)||As(n,Os(i))}var o=n.length,a=!0;return function(t,e){if(a)return a=!1,e;if(Ss(this))return e;for(var r=0;r<o;r++)if(n[r]===t)return e}}},js=yt,Ds=String,Fs=Cs("JSON","stringify"),Us=Bs(/./.exec),Ks=Bs("".charAt),Gs=Bs("".charCodeAt),Zs=Bs("".replace),Hs=Bs(1..toString),Ws=/[\uD800-\uDFFF]/g,Vs=/^[\uD800-\uDBFF]$/,Ys=/^[\uDC00-\uDFFF]$/,Js=!js||Ls((function(){var t=Cs("Symbol")("stringify detection");return"[null]"!==Fs([t])||"{}"!==Fs({a:t})||"{}"!==Fs(Object(t))})),Xs=Ls((function(){return'"\\udf06\\ud834"'!==Fs("\udf06\ud834")||'"\\udead"'!==Fs("\udead")})),qs=function(t,e){var n=Ps(arguments),r=Ns(e);if(Ms(r)||void 0!==t&&!zs(t))return n[1]=function(t,e){if(Ms(r)&&(e=Is(r,this,Ds(t),e)),!zs(e))return e},Rs(Fs,null,n)},Qs=function(t,e,n){var r=Ks(n,e-1),i=Ks(n,e+1);return Us(Vs,t)&&!Us(Ys,i)||Us(Ys,t)&&!Us(Vs,r)?"\\u"+Hs(Gs(t,0),16):t};Fs&&Ts({target:"JSON",stat:!0,arity:3,forced:Js||Xs},{stringify:function(t,e,n){var r=Ps(arguments),i=Rs(Js?qs:Fs,null,r);return Xs&&"string"==typeof i?Zs(i,Ws,Qs):i}});var $s=$i,tu=Yt;Tn({target:"Object",stat:!0,forced:!yt||i((function(){$s.f(1)}))},{getOwnPropertySymbols:function(t){var e=$s.f;return e?e(tu(t)):[]}}),po("asyncIterator"),po("hasInstance"),po("isConcatSpreadable"),po("iterator"),po("match"),po("matchAll"),po("replace"),po("search"),po("species"),po("split");var eu=mo;po("toPrimitive"),eu();var nu=ot,ru=To;po("toStringTag"),ru(nu("Symbol"),"Symbol"),po("unscopables"),To(r.JSON,"JSON",!0);var iu,ou,au,su=tt.Symbol,uu={},cu=T,lu=qt,fu=Function.prototype,hu=cu&&Object.getOwnPropertyDescriptor,du=lu(fu,"name"),pu={EXISTS:du,PROPER:du&&"something"===function(){}.name,CONFIGURABLE:du&&(!cu||cu&&hu(fu,"name").configurable)},vu=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),_u=qt,gu=O,yu=Yt,mu=vu,bu=xi("IE_PROTO"),wu=Object,ku=wu.prototype,Su=mu?wu.getPrototypeOf:function(t){var e=yu(t);if(_u(e,bu))return e[bu];var n=e.constructor;return gu(n)&&e instanceof n?n.prototype:e instanceof wu?ku:null},xu=i,Eu=O,Ou=$,Au=ji,Tu=Su,Cu=eo,Ru=fe("iterator"),Iu=!1;[].keys&&("next"in(au=[].keys())?(ou=Tu(Tu(au)))!==Object.prototype&&(iu=ou):Iu=!0);var Bu=!Ou(iu)||xu((function(){var t={};return iu[Ru].call(t)!==t}));Eu((iu=Bu?{}:Au(iu))[Ru])||Cu(iu,Ru,(function(){return this}));var Lu={IteratorPrototype:iu,BUGGY_SAFARI_ITERATORS:Iu},Mu=Lu.IteratorPrototype,zu=ji,Pu=j,Nu=To,ju=uu,Du=function(){return this},Fu=v,Uu=Rt,Ku=O,Gu=String,Zu=TypeError,Hu=function(t,e,n){try{return Fu(Uu(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(r){}},Wu=en,Vu=function(t){if("object"==typeof t||Ku(t))return t;throw Zu("Can't set "+Gu(t)+" as a prototype")},Yu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Hu(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(r){}return function(n,r){return Wu(n),Vu(r),e?t(n,r):n.__proto__=r,n}}():void 0),Ju=Tn,Xu=I,qu=pu,Qu=function(t,e,n,r){var i=e+" Iterator";return t.prototype=zu(Mu,{next:Pu(+!r,n)}),Nu(t,i,!1,!0),ju[i]=Du,t},$u=Su,tc=To,ec=eo,nc=uu,rc=Lu,ic=qu.PROPER,oc=rc.BUGGY_SAFARI_ITERATORS,ac=fe("iterator"),sc="keys",uc="values",cc="entries",lc=function(){return this},fc=function(t,e,n,r,i,o,a){Qu(n,e,r);var s,u,c,l=function(t){if(t===i&&v)return v;if(!oc&&t in d)return d[t];switch(t){case sc:case uc:case cc:return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",h=!1,d=t.prototype,p=d[ac]||d["@@iterator"]||i&&d[i],v=!oc&&p||l(i),_="Array"===e&&d.entries||p;if(_&&(s=$u(_.call(new t)))!==Object.prototype&&s.next&&(tc(s,f,!0,!0),nc[f]=lc),ic&&i===uc&&p&&p.name!==uc&&(h=!0,v=function(){return Xu(p,this)}),i)if(u={values:l(uc),keys:o?v:l(sc),entries:l(cc)},a)for(c in u)(oc||h||!(c in d))&&ec(d,c,u[c]);else Ju({target:e,proto:!0,forced:oc||h},u);return a&&d[ac]!==v&&ec(d,ac,v,{name:i}),nc[e]=v,u},hc=function(t,e){return{value:t,done:e}},dc=X,pc=uu,vc=Zo;Xe.f;var _c=fc,gc=hc,yc="Array Iterator",mc=vc.set,bc=vc.getterFor(yc);_c(Array,"Array",(function(t,e){mc(this,{type:yc,target:dc(t),index:0,kind:e})}),(function(){var t=bc(this),e=t.target,n=t.kind,r=t.index++;if(!e||r>=e.length)return t.target=void 0,gc(void 0,!0);switch(n){case"keys":return gc(r,!1);case"values":return gc(e[r],!1)}return gc([r,e[r]],!1)}),"values"),pc.Arguments=pc.Array;var wc={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},kc=r,Sc=tr,xc=_n,Ec=uu,Oc=fe("toStringTag");for(var Ac in wc){var Tc=kc[Ac],Cc=Tc&&Tc.prototype;Cc&&Sc(Cc)!==Oc&&xc(Cc,Oc,Ac),Ec[Ac]=Ec.Array}var Rc=su,Ic=fe,Bc=Xe.f,Lc=Ic("metadata"),Mc=Function.prototype;void 0===Mc[Lc]&&Bc(Mc,Lc,{value:null}),po("asyncDispose"),po("dispose"),po("metadata");var zc=Rc,Pc=v,Nc=ot("Symbol"),jc=Nc.keyFor,Dc=Pc(Nc.prototype.valueOf),Fc=Nc.isRegisteredSymbol||function(t){try{return void 0!==jc(Dc(t))}catch(e){return!1}};Tn({target:"Symbol",stat:!0},{isRegisteredSymbol:Fc});for(var Uc=Ht,Kc=ot,Gc=v,Zc=xt,Hc=fe,Wc=Kc("Symbol"),Vc=Wc.isWellKnownSymbol,Yc=Kc("Object","getOwnPropertyNames"),Jc=Gc(Wc.prototype.valueOf),Xc=Uc("wks"),qc=0,Qc=Yc(Wc),$c=Qc.length;qc<$c;qc++)try{var tl=Qc[qc];Zc(Wc[tl])&&Hc(tl)}catch(MC){}var el=function(t){if(Vc&&Vc(t))return!0;try{for(var e=Jc(t),n=0,r=Yc(Xc),i=r.length;n<i;n++)if(Xc[r[n]]==e)return!0}catch(MC){}return!1};Tn({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:el}),po("matcher"),po("observable"),Tn({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:Fc}),Tn({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:el}),po("metadataKey"),po("patternMatch"),po("replaceAll");var nl=e(zc),rl=v,il=Mn,ol=Wr,al=V,sl=rl("".charAt),ul=rl("".charCodeAt),cl=rl("".slice),ll=function(t){return function(e,n){var r,i,o=ol(al(e)),a=il(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=ul(o,a))<55296||r>56319||a+1===s||(i=ul(o,a+1))<56320||i>57343?t?sl(o,a):r:t?cl(o,a,a+2):i-56320+(r-55296<<10)+65536}},fl={codeAt:ll(!1),charAt:ll(!0)}.charAt,hl=Wr,dl=Zo,pl=fc,vl=hc,_l="String Iterator",gl=dl.set,yl=dl.getterFor(_l);pl(String,"String",(function(t){gl(this,{type:_l,string:hl(t),index:0})}),(function(){var t,e=yl(this),n=e.string,r=e.index;return r>=n.length?vl(void 0,!0):(t=fl(n,r),e.index+=t.length,vl(t,!1))}));var ml=e(io.f("iterator"));function bl(t){return(bl="function"==typeof nl&&"symbol"==typeof ml?function(t){return typeof t}:function(t){return t&&"function"==typeof nl&&t.constructor===nl&&t!==nl.prototype?"symbol":typeof t})(t)}var wl={exports:{}},kl=Tn,Sl=T,xl=Xe.f;kl({target:"Object",stat:!0,forced:Object.defineProperty!==xl,sham:!Sl},{defineProperty:xl});var El=tt.Object,Ol=wl.exports=function(t,e,n){return El.defineProperty(t,e,n)};El.defineProperty.sham&&(Ol.sham=!0);var Al=e(wl.exports);Tn({target:"Object",stat:!0,sham:!T},{create:ji});var Tl=tt.Object,Cl=function(t,e){return Tl.create(t,e)},Rl=e(Cl),Il=Yt,Bl=Su,Ll=vu;Tn({target:"Object",stat:!0,forced:i((function(){Bl(1)})),sham:!Ll},{getPrototypeOf:function(t){return Bl(Il(t))}});var Ml=e(tt.Object.getPrototypeOf),zl=i,Pl=function(t,e){var n=[][t];return!!n&&zl((function(){n.call(null,e||function(){return 1},1)}))},Nl=Qo.forEach,jl=Pl("forEach")?[].forEach:function(t){return Nl(this,t,arguments.length>1?arguments[1]:void 0)};Tn({target:"Array",proto:!0,forced:[].forEach!==jl},{forEach:jl});var Dl=tt,Fl=function(t){return Dl[t+"Prototype"]},Ul=Fl("Array").forEach,Kl=tr,Gl=qt,Zl=at,Hl=Ul,Wl=Array.prototype,Vl={DOMTokenList:!0,NodeList:!0},Yl=function(t){var e=t.forEach;return t===Wl||Zl(Wl,t)&&e===Wl.forEach||Gl(Vl,Kl(t))?Hl:e},Jl=e(Yl),Xl=T,ql=Rn,Ql=TypeError,$l=Object.getOwnPropertyDescriptor,tf=Xl&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(MC){return MC instanceof TypeError}}()?function(t,e){if(ql(t)&&!$l(t,"length").writable)throw Ql("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},ef=Yt,nf=Dn,rf=tf,of=Un;Tn({target:"Array",proto:!0,arity:1,forced:i((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(MC){return MC instanceof TypeError}}()},{push:function(t){var e=ef(this),n=nf(e),r=arguments.length;of(n+r);for(var i=0;i<r;i++)e[n]=arguments[i],n++;return rf(e,n),n}});var af=Fl("Array").push,sf=at,uf=af,cf=Array.prototype,lf=e((function(t){var e=t.push;return t===cf||sf(cf,t)&&e===cf.push?uf:e}));Tn({target:"Object",stat:!0},{setPrototypeOf:Yu});var ff=e(tt.Object.setPrototypeOf),hf=ot,df=Di,pf=$i,vf=en,_f=v([].concat),gf=hf("Reflect","ownKeys")||function(t){var e=df.f(vf(t)),n=pf.f;return n?_f(e,n(t)):e},yf=qt,mf=gf,bf=A,wf=Xe,kf=$,Sf=_n,xf=Error,Ef=v("".replace),Of=String(xf("zxcasd").stack),Af=/\n\s*at [^:]*:[^\n]*/,Tf=Af.test(Of),Cf=j,Rf=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Cf(1,7)),7!==t.stack)})),If=_n,Bf=function(t,e){if(Tf&&"string"==typeof t&&!xf.prepareStackTrace)for(;e--;)t=Ef(t,Af,"");return t},Lf=Rf,Mf=Error.captureStackTrace,zf=uu,Pf=fe("iterator"),Nf=Array.prototype,jf=function(t){return void 0!==t&&(zf.Array===t||Nf[Pf]===t)},Df=tr,Ff=Lt,Uf=Z,Kf=uu,Gf=fe("iterator"),Zf=function(t){if(!Uf(t))return Ff(t,Gf)||Ff(t,"@@iterator")||Kf[Df(t)]},Hf=I,Wf=Rt,Vf=en,Yf=Ot,Jf=Zf,Xf=TypeError,qf=function(t,e){var n=arguments.length<2?Jf(t):e;if(Wf(n))return Vf(Hf(n,t));throw Xf(Yf(t)+" is not iterable")},Qf=I,$f=en,th=Lt,eh=function(t,e,n){var r,i;$f(t);try{if(!(r=th(t,"return"))){if("throw"===e)throw n;return n}r=Qf(r,t)}catch(MC){i=!0,r=MC}if("throw"===e)throw n;if(i)throw r;return $f(r),n},nh=Je,rh=I,ih=en,oh=Ot,ah=jf,sh=Dn,uh=at,ch=qf,lh=Zf,fh=eh,hh=TypeError,dh=function(t,e){this.stopped=t,this.result=e},ph=dh.prototype,vh=function(t,e,n){var r,i,o,a,s,u,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_RECORD),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=nh(e,l),_=function(t){return r&&fh(r,"normal",t),new dh(!0,t)},g=function(t){return f?(ih(t),p?v(t[0],t[1],_):v(t[0],t[1])):p?v(t,_):v(t)};if(h)r=t.iterator;else if(d)r=t;else{if(!(i=lh(t)))throw hh(oh(t)+" is not iterable");if(ah(i)){for(o=0,a=sh(t);a>o;o++)if((s=g(t[o]))&&uh(ph,s))return s;return new dh(!1)}r=ch(t,i)}for(u=h?t.next:r.next;!(c=rh(u,r)).done;){try{s=g(c.value)}catch(MC){fh(r,"throw",MC)}if("object"==typeof s&&s&&uh(ph,s))return s}return new dh(!1)},_h=Wr,gh=Tn,yh=at,mh=Su,bh=Yu,wh=function(t,e,n){for(var r=mf(e),i=wf.f,o=bf.f,a=0;a<r.length;a++){var s=r[a];yf(t,s)||n&&yf(n,s)||i(t,s,o(e,s))}},kh=ji,Sh=_n,xh=j,Eh=function(t,e){kf(e)&&"cause"in e&&Sf(t,"cause",e.cause)},Oh=function(t,e,n,r){Lf&&(Mf?Mf(t,e):If(t,"stack",Bf(n,r)))},Ah=vh,Th=function(t,e){return void 0===t?arguments.length<2?"":e:_h(t)},Ch=fe("toStringTag"),Rh=Error,Ih=[].push,Bh=function(t,e){var n,r=yh(Lh,this);bh?n=bh(Rh(),r?mh(this):Lh):(n=r?this:kh(Lh),Sh(n,Ch,"Error")),void 0!==e&&Sh(n,"message",Th(e)),Oh(n,Bh,n.stack,1),arguments.length>2&&Eh(n,arguments[2]);var i=[];return Ah(t,Ih,{that:i}),Sh(n,"errors",i),n};bh?bh(Bh,Rh):wh(Bh,Rh,{name:!0});var Lh=Bh.prototype=kh(Rh.prototype,{constructor:xh(1,Bh),message:xh(1,""),name:xh(1,"AggregateError")});gh({global:!0,constructor:!0,arity:2},{AggregateError:Bh});var Mh,zh,Ph,Nh,jh="process"===m(r.process),Dh=ot,Fh=ro,Uh=T,Kh=fe("species"),Gh=function(t){var e=Dh(t);Uh&&e&&!e[Kh]&&Fh(e,Kh,{configurable:!0,get:function(){return this}})},Zh=at,Hh=TypeError,Wh=function(t,e){if(Zh(e,t))return t;throw Hh("Incorrect invocation")},Vh=yr,Yh=Ot,Jh=TypeError,Xh=function(t){if(Vh(t))return t;throw Jh(Yh(t)+" is not a constructor")},qh=en,Qh=Xh,$h=Z,td=fe("species"),ed=function(t,e){var n,r=qh(t).constructor;return void 0===r||$h(n=qh(r)[td])?e:Qh(n)},nd=TypeError,rd=function(t,e){if(t<e)throw nd("Not enough arguments");return t},id=/(?:ipad|iphone|ipod).*applewebkit/i.test(st),od=r,ad=l,sd=Je,ud=O,cd=qt,ld=i,fd=wi,hd=ks,dd=Ee,pd=rd,vd=id,_d=jh,gd=od.setImmediate,yd=od.clearImmediate,md=od.process,bd=od.Dispatch,wd=od.Function,kd=od.MessageChannel,Sd=od.String,xd=0,Ed={},Od="onreadystatechange";ld((function(){Mh=od.location}));var Ad=function(t){if(cd(Ed,t)){var e=Ed[t];delete Ed[t],e()}},Td=function(t){return function(){Ad(t)}},Cd=function(t){Ad(t.data)},Rd=function(t){od.postMessage(Sd(t),Mh.protocol+"//"+Mh.host)};gd&&yd||(gd=function(t){pd(arguments.length,1);var e=ud(t)?t:wd(t),n=hd(arguments,1);return Ed[++xd]=function(){ad(e,void 0,n)},zh(xd),xd},yd=function(t){delete Ed[t]},_d?zh=function(t){md.nextTick(Td(t))}:bd&&bd.now?zh=function(t){bd.now(Td(t))}:kd&&!vd?(Nh=(Ph=new kd).port2,Ph.port1.onmessage=Cd,zh=sd(Nh.postMessage,Nh)):od.addEventListener&&ud(od.postMessage)&&!od.importScripts&&Mh&&"file:"!==Mh.protocol&&!ld(Rd)?(zh=Rd,od.addEventListener("message",Cd,!1)):zh=Od in dd("script")?function(t){fd.appendChild(dd("script"))[Od]=function(){fd.removeChild(this),Ad(t)}}:function(t){setTimeout(Td(t),0)});var Id={set:gd,clear:yd},Bd=function(){this.head=null,this.tail=null};Bd.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Ld,Md,zd,Pd,Nd,jd=Bd,Dd=/ipad|iphone|ipod/i.test(st)&&"undefined"!=typeof Pebble,Fd=/web0s(?!.*chrome)/i.test(st),Ud=r,Kd=Je,Gd=A.f,Zd=Id.set,Hd=jd,Wd=id,Vd=Dd,Yd=Fd,Jd=jh,Xd=Ud.MutationObserver||Ud.WebKitMutationObserver,qd=Ud.document,Qd=Ud.process,$d=Ud.Promise,tp=Gd(Ud,"queueMicrotask"),ep=tp&&tp.value;if(!ep){var np=new Hd,rp=function(){var t,e;for(Jd&&(t=Qd.domain)&&t.exit();e=np.get();)try{e()}catch(MC){throw np.head&&Ld(),MC}t&&t.enter()};Wd||Jd||Yd||!Xd||!qd?!Vd&&$d&&$d.resolve?((Pd=$d.resolve(void 0)).constructor=$d,Nd=Kd(Pd.then,Pd),Ld=function(){Nd(rp)}):Jd?Ld=function(){Qd.nextTick(rp)}:(Zd=Kd(Zd,Ud),Ld=function(){Zd(rp)}):(Md=!0,zd=qd.createTextNode(""),new Xd(rp).observe(zd,{characterData:!0}),Ld=function(){zd.data=Md=!Md}),ep=function(t){np.head||Ld(),np.add(t)}}var ip=ep,op=function(t){try{return{error:!1,value:t()}}catch(MC){return{error:!0,value:MC}}},ap=r.Promise,sp="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,up=!sp&&!jh&&"object"==typeof window&&"object"==typeof document,cp=r,lp=ap,fp=O,hp=He,dp=ir,pp=fe,vp=up,_p=sp,gp=pt,yp=lp&&lp.prototype,mp=pp("species"),bp=!1,wp=fp(cp.PromiseRejectionEvent),kp={CONSTRUCTOR:hp("Promise",(function(){var t=dp(lp),e=t!==String(lp);if(!e&&66===gp)return!0;if(!yp.catch||!yp.finally)return!0;if(!gp||gp<51||!/native code/.test(t)){var n=new lp((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[mp]=r,!(bp=n.then((function(){}))instanceof r))return!0}return!e&&(vp||_p)&&!wp})),REJECTION_EVENT:wp,SUBCLASSING:bp},Sp={},xp=Rt,Ep=TypeError,Op=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw Ep("Bad Promise constructor");e=t,n=r})),this.resolve=xp(e),this.reject=xp(n)};Sp.f=function(t){return new Op(t)};var Ap,Tp,Cp=Tn,Rp=jh,Ip=r,Bp=I,Lp=eo,Mp=To,zp=Gh,Pp=Rt,Np=O,jp=$,Dp=Wh,Fp=ed,Up=Id.set,Kp=ip,Gp=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(MC){}},Zp=op,Hp=jd,Wp=Zo,Vp=ap,Yp=kp,Jp=Sp,Xp="Promise",qp=Yp.CONSTRUCTOR,Qp=Yp.REJECTION_EVENT,$p=Wp.getterFor(Xp),tv=Wp.set,ev=Vp&&Vp.prototype,nv=Vp,rv=ev,iv=Ip.TypeError,ov=Ip.document,av=Ip.process,sv=Jp.f,uv=sv,cv=!!(ov&&ov.createEvent&&Ip.dispatchEvent),lv="unhandledrejection",fv=function(t){var e;return!(!jp(t)||!Np(e=t.then))&&e},hv=function(t,e){var n,r,i,o=e.value,a=1===e.state,s=a?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{s?(a||(2===e.rejection&&gv(e),e.rejection=1),!0===s?n=o:(l&&l.enter(),n=s(o),l&&(l.exit(),i=!0)),n===t.promise?c(iv("Promise-chain cycle")):(r=fv(n))?Bp(r,n,u,c):u(n)):c(o)}catch(MC){l&&!i&&l.exit(),c(MC)}},dv=function(t,e){t.notified||(t.notified=!0,Kp((function(){for(var n,r=t.reactions;n=r.get();)hv(n,t);t.notified=!1,e&&!t.rejection&&vv(t)})))},pv=function(t,e,n){var r,i;cv?((r=ov.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),Ip.dispatchEvent(r)):r={promise:e,reason:n},!Qp&&(i=Ip["on"+t])?i(r):t===lv&&Gp("Unhandled promise rejection",n)},vv=function(t){Bp(Up,Ip,(function(){var e,n=t.facade,r=t.value;if(_v(t)&&(e=Zp((function(){Rp?av.emit("unhandledRejection",r,n):pv(lv,n,r)})),t.rejection=Rp||_v(t)?2:1,e.error))throw e.value}))},_v=function(t){return 1!==t.rejection&&!t.parent},gv=function(t){Bp(Up,Ip,(function(){var e=t.facade;Rp?av.emit("rejectionHandled",e):pv("rejectionhandled",e,t.value)}))},yv=function(t,e,n){return function(r){t(e,r,n)}},mv=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,dv(t,!0))},bv=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw iv("Promise can't be resolved itself");var r=fv(e);r?Kp((function(){var n={done:!1};try{Bp(r,e,yv(bv,n,t),yv(mv,n,t))}catch(MC){mv(n,MC,t)}})):(t.value=e,t.state=1,dv(t,!1))}catch(MC){mv({done:!1},MC,t)}}};qp&&(rv=(nv=function(t){Dp(this,rv),Pp(t),Bp(Ap,this);var e=$p(this);try{t(yv(bv,e),yv(mv,e))}catch(MC){mv(e,MC)}}).prototype,(Ap=function(t){tv(this,{type:Xp,done:!1,notified:!1,parent:!1,reactions:new Hp,rejection:!1,state:0,value:void 0})}).prototype=Lp(rv,"then",(function(t,e){var n=$p(this),r=sv(Fp(this,nv));return n.parent=!0,r.ok=!Np(t)||t,r.fail=Np(e)&&e,r.domain=Rp?av.domain:void 0,0===n.state?n.reactions.add(r):Kp((function(){hv(r,n)})),r.promise})),Tp=function(){var t=new Ap,e=$p(t);this.promise=t,this.resolve=yv(bv,e),this.reject=yv(mv,e)},Jp.f=sv=function(t){return t===nv||undefined===t?new Tp(t):uv(t)}),Cp({global:!0,constructor:!0,wrap:!0,forced:qp},{Promise:nv}),Mp(nv,Xp,!1,!0),zp(Xp);var wv=fe("iterator"),kv=!1;try{var Sv=0,xv={next:function(){return{done:!!Sv++}},return:function(){kv=!0}};xv[wv]=function(){return this},Array.from(xv,(function(){throw 2}))}catch(MC){}var Ev=function(t,e){if(!e&&!kv)return!1;var n=!1;try{var r={};r[wv]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(MC){}return n},Ov=ap,Av=kp.CONSTRUCTOR||!Ev((function(t){Ov.all(t).then(void 0,(function(){}))})),Tv=I,Cv=Rt,Rv=Sp,Iv=op,Bv=vh;Tn({target:"Promise",stat:!0,forced:Av},{all:function(t){var e=this,n=Rv.f(e),r=n.resolve,i=n.reject,o=Iv((function(){var n=Cv(e.resolve),o=[],a=0,s=1;Bv(t,(function(t){var u=a++,c=!1;s++,Tv(n,e,t).then((function(t){c||(c=!0,o[u]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise}});var Lv=Tn,Mv=kp.CONSTRUCTOR;ap&&ap.prototype,Lv({target:"Promise",proto:!0,forced:Mv,real:!0},{catch:function(t){return this.then(void 0,t)}});var zv=I,Pv=Rt,Nv=Sp,jv=op,Dv=vh;Tn({target:"Promise",stat:!0,forced:Av},{race:function(t){var e=this,n=Nv.f(e),r=n.reject,i=jv((function(){var i=Pv(e.resolve);Dv(t,(function(t){zv(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Fv=I,Uv=Sp;Tn({target:"Promise",stat:!0,forced:kp.CONSTRUCTOR},{reject:function(t){var e=Uv.f(this);return Fv(e.reject,void 0,t),e.promise}});var Kv=en,Gv=$,Zv=Sp,Hv=function(t,e){if(Kv(t),Gv(e)&&e.constructor===t)return e;var n=Zv.f(t);return(0,n.resolve)(e),n.promise},Wv=Tn,Vv=ap,Yv=kp.CONSTRUCTOR,Jv=Hv,Xv=ot("Promise"),qv=!Yv;Wv({target:"Promise",stat:!0,forced:true},{resolve:function(t){return Jv(qv&&this===Xv?Vv:this,t)}});var Qv=I,$v=Rt,t_=Sp,e_=op,n_=vh;Tn({target:"Promise",stat:!0,forced:Av},{allSettled:function(t){var e=this,n=t_.f(e),r=n.resolve,i=n.reject,o=e_((function(){var n=$v(e.resolve),i=[],o=0,a=1;n_(t,(function(t){var s=o++,u=!1;a++,Qv(n,e,t).then((function(t){u||(u=!0,i[s]={status:"fulfilled",value:t},--a||r(i))}),(function(t){u||(u=!0,i[s]={status:"rejected",reason:t},--a||r(i))}))})),--a||r(i)}));return o.error&&i(o.value),n.promise}});var r_=I,i_=Rt,o_=ot,a_=Sp,s_=op,u_=vh,c_="No one promise resolved";Tn({target:"Promise",stat:!0,forced:Av},{any:function(t){var e=this,n=o_("AggregateError"),r=a_.f(e),i=r.resolve,o=r.reject,a=s_((function(){var r=i_(e.resolve),a=[],s=0,u=1,c=!1;u_(t,(function(t){var l=s++,f=!1;u++,r_(r,e,t).then((function(t){f||c||(c=!0,i(t))}),(function(t){f||c||(f=!0,a[l]=t,--u||o(new n(a,c_)))}))})),--u||o(new n(a,c_))}));return a.error&&o(a.value),r.promise}});var l_=Tn,f_=ap,h_=i,d_=ot,p_=O,v_=ed,__=Hv,g_=f_&&f_.prototype;l_({target:"Promise",proto:!0,real:!0,forced:!!f_&&h_((function(){g_.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=v_(this,d_("Promise")),n=p_(t);return this.then(n?function(n){return __(e,t()).then((function(){return n}))}:t,n?function(n){return __(e,t()).then((function(){throw n}))}:t)}});var y_=tt.Promise,m_=Sp;Tn({target:"Promise",stat:!0},{withResolvers:function(){var t=m_.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var b_=y_,w_=Sp,k_=op;Tn({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=w_.f(this),n=k_(t);return(n.error?e.reject:e.resolve)(n.value),e.promise}});var S_=b_,x_=e(S_),E_=Tn,O_=Rn,A_=v([].reverse),T_=[1,2];E_({target:"Array",proto:!0,forced:String(T_)===String(T_.reverse())},{reverse:function(){return O_(this)&&(this.length=this.length),A_(this)}});var C_=Fl("Array").reverse,R_=at,I_=C_,B_=Array.prototype,L_=e((function(t){var e=t.reverse;return t===B_||R_(B_,t)&&e===B_.reverse?I_:e})),M_=Tn,z_=Rn,P_=yr,N_=$,j_=qr,D_=Dn,F_=X,U_=Hn,K_=fe,G_=ks,Z_=Cr("slice"),H_=K_("species"),W_=Array,V_=Math.max;M_({target:"Array",proto:!0,forced:!Z_},{slice:function(t,e){var n,r,i,o=F_(this),a=D_(o),s=j_(t,a),u=j_(void 0===e?a:e,a);if(z_(o)&&(n=o.constructor,(P_(n)&&(n===W_||z_(n.prototype))||N_(n)&&null===(n=n[H_]))&&(n=void 0),n===W_||void 0===n))return G_(o,s,u);for(r=new(void 0===n?W_:n)(V_(u-s,0)),i=0;s<u;s++,i++)s in o&&U_(r,i,o[s]);return r.length=i,r}});var Y_=Fl("Array").slice,J_=at,X_=Y_,q_=Array.prototype,Q_=function(t){var e=t.slice;return t===q_||J_(q_,t)&&e===q_.slice?X_:e},$_=e(Q_);function tg(){tg=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Al||function(t,e,n){t[e]=n.value},o="function"==typeof nl?nl:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Al(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(I){c=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Rl(o.prototype),s=new C(r||[]);return i(a,"_invoke",{value:E(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}e.wrap=l;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",_={};function g(){}function y(){}function m(){}var b={};c(b,a,(function(){return this}));var w=Ml&&Ml(Ml(R([])));w&&w!==n&&r.call(w,a)&&(b=w);var k=m.prototype=g.prototype=Rl(b);function S(t){var e;Jl(e=["next","throw","return"]).call(e,(function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(i,o,a,s){var u=f(t[i],t,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==bl(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,n,r){var i=h;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=O(s,r);if(u){if(u===_)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var c=f(e,n,r);if("normal"===c.type){if(i=r.done?v:d,c.arg===_)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=v,r.method="throw",r.arg=c.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),_;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,_;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,_):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,_)}function A(t){var e,n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),lf(e=this.tryEntries).call(e,n)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],Jl(t).call(t,A,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(bl(e)+" is not iterable")}return y.prototype=m,i(k,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:y,configurable:!0}),y.displayName=c(m,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return ff?ff(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Rl(k),t},e.awrap=function(t){return{__await:t}},S(x.prototype),c(x.prototype,s,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,i,o){void 0===o&&(o=x_);var a=new x(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(k),c(k,u,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)lf(n).call(n,r);return L_(n).call(n),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=R,C.prototype={constructor:C,reset:function(e){var n;if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,Jl(n=this.tryEntries).call(n,T),!e)for(var i in this)"t"===i.charAt(0)&&r.call(this,i)&&!isNaN(+$_(i).call(i,1))&&(this[i]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){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"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,_):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),_},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),_}},e}function eg(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(MC){return void n(MC)}s.done?e(u):x_.resolve(u).then(r,i)}function ng(t){return function(){var e=this,n=arguments;return new x_((function(r,i){var o=t.apply(e,n);function a(t){eg(o,r,i,a,s,"next",t)}function s(t){eg(o,r,i,a,s,"throw",t)}a(void 0)}))}}function rg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var ig=e(io.f("toPrimitive"));function og(t){var e=function(t,e){if("object"!==bl(t)||null===t)return t;var n=t[ig];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==bl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===bl(e)?e:String(e)}function ag(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Al(t,og(r.key),r)}}function sg(t,e,n){return e&&ag(t.prototype,e),n&&ag(t,n),Al(t,"prototype",{writable:!1}),t}function ug(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var cg=v,lg=Rt,fg=$,hg=qt,dg=ks,pg=o,vg=Function,_g=cg([].concat),gg=cg([].join),yg={},mg=pg?vg.bind:function(t){var e=lg(this),n=e.prototype,r=dg(arguments,1),i=function(){var n=_g(r,dg(arguments));return this instanceof i?function(t,e,n){if(!hg(yg,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";yg[e]=vg("C,a","return new C("+gg(r,",")+")")}return yg[e](t,n)}(e,n.length,n):e.apply(t,n)};return fg(n)&&(i.prototype=n),i},bg=mg;Tn({target:"Function",proto:!0,forced:Function.bind!==bg},{bind:bg});var wg=Fl("Function").bind,kg=at,Sg=wg,xg=Function.prototype,Eg=function(t){var e=t.bind;return t===xg||kg(xg,t)&&e===xg.bind?Sg:e},Og=e(Eg);function Ag(t,e){var n;return(Ag=ff?Og(n=ff).call(n):function(t,e){return t.__proto__=e,t})(t,e)}function Tg(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Rl(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Al(t,"prototype",{writable:!1}),e&&Ag(t,e)}var Cg=Tn,Rg=l,Ig=mg,Bg=Xh,Lg=en,Mg=$,zg=ji,Pg=i,Ng=ot("Reflect","construct"),jg=Object.prototype,Dg=[].push,Fg=Pg((function(){function t(){}return!(Ng((function(){}),[],t)instanceof t)})),Ug=!Pg((function(){Ng((function(){}))})),Kg=Fg||Ug;Cg({target:"Reflect",stat:!0,forced:Kg,sham:Kg},{construct:function(t,e){Bg(t),Lg(e);var n=arguments.length<3?t:Bg(arguments[2]);if(Ug&&!Fg)return Ng(t,e,n);if(t===n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return Rg(Dg,r,e),new(Rg(Ig,t,r))}var i=n.prototype,o=zg(Mg(i)?i:jg),a=Rg(t,o,e);return Mg(a)?a:o}});var Gg=e(tt.Reflect.construct);function Zg(t){var e;return(Zg=ff?Og(e=Ml).call(e):function(t){return t.__proto__||Ml(t)})(t)}function Hg(t){var e=function(){if("undefined"==typeof Reflect||!Gg)return!1;if(Gg.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Gg(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Zg(t);if(e){var i=Zg(this).constructor;n=Gg(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===bl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ug(t)}(this,n)}}function Wg(t,e,n){return(e=og(e))in t?Al(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Vg=e(Yl),Yg=Yt,Jg=di;Tn({target:"Object",stat:!0,forced:i((function(){Jg(1)}))},{keys:function(t){return Jg(Yg(t))}});var Xg=tt.Object.keys,qg=e(Xg),Qg=e(Xg),$g=e(Eg),ty=Qo.filter;Tn({target:"Array",proto:!0,forced:!Cr("filter")},{filter:function(t){return ty(this,t,arguments.length>1?arguments[1]:void 0)}});var ey,ny=Fl("Array").filter,ry=at,iy=ny,oy=Array.prototype,ay=function(t){var e=t.filter;return t===oy||ry(oy,t)&&e===oy.filter?iy:e},sy=e(ay),uy=e(ay),cy=e(S_),ly="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,fy=r,hy=l,dy=O,py=ly,vy=st,_y=ks,gy=rd,yy=fy.Function,my=/MSIE .\./.test(vy)||py&&((ey=fy.Bun.version.split(".")).length<3||"0"===ey[0]&&(ey[1]<3||"3"===ey[1]&&"0"===ey[2])),by=function(t,e){var n=e?2:1;return my?function(r,i){var o=gy(arguments.length,1)>n,a=dy(r)?r:yy(r),s=o?_y(arguments,n):[],u=o?function(){hy(a,this,s)}:a;return e?t(u,i):t(u)}:t},wy=Tn,ky=r,Sy=by(ky.setInterval,!0);wy({global:!0,bind:!0,forced:ky.setInterval!==Sy},{setInterval:Sy});var xy=Tn,Ey=r,Oy=by(Ey.setTimeout,!0);xy({global:!0,bind:!0,forced:Ey.setTimeout!==Oy},{setTimeout:Oy});var Ay=e(tt.setTimeout),Ty=Fl("Array").concat,Cy=at,Ry=Ty,Iy=Array.prototype,By=e((function(t){var e=t.concat;return t===Iy||Cy(Iy,t)&&e===Iy.concat?Ry:e})),Ly=e(Cl),My=e(Q_),zy=tt.Object.getOwnPropertySymbols,Py=e(zy),Ny=e(zy),jy={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(t,e,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||t,a),u=n?n+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function s(){this._events=new r,this._eventsCount=0}Ly&&(r.prototype=Ly(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var t,r,i=[];if(0===this._eventsCount)return i;for(r in t=this._events)e.call(t,r)&&i.push(n?My(r).call(r,1):r);return Ny?By(i).call(i,Ny(t)):i},s.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},s.prototype.emit=function(t,e,r,i,o,a){var s=n?n+t:t;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,r),!0;case 4:return l.fn.call(l.context,e,r,i),!0;case 5:return l.fn.call(l.context,e,r,i,o),!0;case 6:return l.fn.call(l.context,e,r,i,o,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var h,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(t,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,e);break;case 3:l[c].fn.call(l[c].context,e,r);break;case 4:l[c].fn.call(l[c].context,e,r,i);break;default:if(!u)for(h=1,u=new Array(f-1);h<f;h++)u[h-1]=arguments[h];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(t,e,n){return o(this,t,e,n,!1)},s.prototype.once=function(t,e,n){return o(this,t,e,n,!0)},s.prototype.removeListener=function(t,e,r,i){var o=n?n+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==e||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==e||i&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&a(this,e)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,t.exports=s}(jy);var Dy=function(t){Tg(r,t);var e,n=Hg(r);function r(){var t,e;rg(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Wg(ug(e=n.call.apply(n,By(t=[this]).call(t,o))),"monitor",void 0),e}return sg(r,[{key:"isOpen",value:function(){return this._enable}},{key:"isSupported",value:(e=ng(tg().mark((function t(){return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",!0);case 1:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})},{key:"_reportName",get:function(){return"plugin<".concat(this.name,">")}}]),r}(jy.exports.EventEmitter),Fy=e(Zf);Tn({target:"Array",stat:!0},{isArray:Rn});var Uy=e(tt.Array.isArray),Ky=en,Gy=eh,Zy=Je,Hy=I,Wy=Yt,Vy=function(t,e,n,r){try{return r?e(Ky(n)[0],n[1]):e(n)}catch(MC){Gy(t,"throw",MC)}},Yy=jf,Jy=yr,Xy=Dn,qy=Hn,Qy=qf,$y=Zf,tm=Array,em=function(t){var e=Wy(t),n=Jy(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Zy(i,r>2?arguments[2]:void 0));var a,s,u,c,l,f,h=$y(e),d=0;if(!h||this===tm&&Yy(h))for(a=Xy(e),s=n?new this(a):tm(a);a>d;d++)f=o?i(e[d],d):e[d],qy(s,d,f);else for(l=(c=Qy(e,h)).next,s=n?new this:[];!(u=Hy(l,c)).done;d++)f=o?Vy(c,i,[u.value,d],!0):u.value,qy(s,d,f);return s.length=d,s};Tn({target:"Array",stat:!0,forced:!Ev((function(t){Array.from(t)}))},{from:em});var nm=e(tt.Array.from);function rm(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var im={exports:{}},om=i((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),am=i,sm=$,um=m,cm=om,lm=Object.isExtensible,fm=am((function(){lm(1)}))||cm?function(t){return!!sm(t)&&((!cm||"ArrayBuffer"!==um(t))&&(!lm||lm(t)))}:lm,hm=!i((function(){return Object.isExtensible(Object.preventExtensions({}))})),dm=Tn,pm=v,vm=ri,_m=$,gm=qt,ym=Xe.f,mm=Di,bm=Ki,wm=fm,km=hm,Sm=!1,xm=ne("meta"),Em=0,Om=function(t){ym(t,xm,{value:{objectID:"O"+Em++,weakData:{}}})},Am=im.exports={enable:function(){Am.enable=function(){},Sm=!0;var t=mm.f,e=pm([].splice),n={};n[xm]=1,t(n).length&&(mm.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===xm){e(r,i,1);break}return r},dm({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:bm.f}))},fastKey:function(t,e){if(!_m(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!gm(t,xm)){if(!wm(t))return"F";if(!e)return"E";Om(t)}return t[xm].objectID},getWeakData:function(t,e){if(!gm(t,xm)){if(!wm(t))return!0;if(!e)return!1;Om(t)}return t[xm].weakData},onFreeze:function(t){return km&&Sm&&wm(t)&&!gm(t,xm)&&Om(t),t}};vm[xm]=!0;var Tm=im.exports,Cm=Tn,Rm=r,Im=Tm,Bm=i,Lm=_n,Mm=vh,zm=Wh,Pm=O,Nm=$,jm=Z,Dm=To,Fm=Xe.f,Um=Qo.forEach,Km=T,Gm=Zo.set,Zm=Zo.getterFor,Hm=eo,Wm=ji,Vm=ro,Ym=function(t,e,n){for(var r in e)n&&n.unsafe&&t[r]?t[r]=e[r]:Hm(t,r,e[r],n);return t},Jm=Je,Xm=Wh,qm=Z,Qm=vh,$m=fc,tb=hc,eb=Gh,nb=T,rb=Tm.fastKey,ib=Zo.set,ob=Zo.getterFor,ab={getConstructor:function(t,e,n,r){var i=t((function(t,i){Xm(t,o),ib(t,{type:e,index:Wm(null),first:void 0,last:void 0,size:0}),nb||(t.size=0),qm(i)||Qm(i,t[r],{that:t,AS_ENTRIES:n})})),o=i.prototype,a=ob(e),s=function(t,e,n){var r,i,o=a(t),s=u(t,e);return s?s.value=n:(o.last=s={index:i=rb(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),nb?o.size++:t.size++,"F"!==i&&(o.index[i]=s)),t},u=function(t,e){var n,r=a(t),i=rb(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===e)return n};return Ym(o,{clear:function(){for(var t=a(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,nb?t.size=0:this.size=0},delete:function(t){var e=this,n=a(e),r=u(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first===r&&(n.first=i),n.last===r&&(n.last=o),nb?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=a(this),r=Jm(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),Ym(o,n?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),nb&&Vm(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(t,e,n){var r=e+" Iterator",i=ob(e),o=ob(r);$m(t,e,(function(t,e){ib(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?tb("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=void 0,tb(void 0,!0))}),n?"entries":"values",!n,!0),eb(e)}};(function(t,e,n){var r,i=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),a=i?"set":"add",s=Rm[t],u=s&&s.prototype,c={};if(Km&&Pm(s)&&(o||u.forEach&&!Bm((function(){(new s).entries().next()})))){var l=(r=e((function(e,n){Gm(zm(e,l),{type:t,collection:new s}),jm(n)||Mm(n,e[a],{that:e,AS_ENTRIES:i})}))).prototype,f=Zm(t);Um(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"===t||"set"===t;!(t in u)||o&&"clear"===t||Lm(l,t,(function(n,r){var i=f(this).collection;if(!e&&o&&!Nm(n))return"get"===t&&void 0;var a=i[t](0===n?0:n,r);return e?this:a}))})),o||Fm(l,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else r=n.getConstructor(e,t,i,a),Im.enable();Dm(r,t,!1,!0),c[t]=r,Cm({global:!0,forced:!0},c),o||n.setStrong(r,t,i)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),ab);var sb=tt.Map,ub=function(t,e){return 1===e?function(e,n){return e[t](n)}:function(e,n,r){return e[t](n,r)}},cb=ot("Map"),lb={Map:cb,set:ub("set",2),get:ub("get",1),has:ub("has",1),remove:ub("delete",1),proto:cb.prototype},fb=Tn,hb=Rt,db=V,pb=vh,vb=lb.Map,_b=lb.has,gb=lb.get,yb=lb.set,mb=v([].push);fb({target:"Map",stat:!0,forced:true},{groupBy:function(t,e){db(t),hb(e);var n=new vb,r=0;return pb(t,(function(t){var i=e(t,r++);_b(n,i)?mb(gb(n,i),t):yb(n,i,[t])})),n}});var bb=sb,wb=Je,kb=I,Sb=Rt,xb=Xh,Eb=Z,Ob=vh,Ab=[].push,Tb=function(t){var e,n,r,i,o=arguments.length,a=o>1?arguments[1]:void 0;return xb(this),(e=void 0!==a)&&Sb(a),Eb(t)?new this:(n=[],e?(r=0,i=wb(a,o>2?arguments[2]:void 0),Ob(t,(function(t){kb(Ab,n,i(t,r++))}))):Ob(t,Ab,{that:n}),new this(n))};Tn({target:"Map",stat:!0,forced:!0},{from:Tb});var Cb=ks,Rb=function(){return new this(Cb(arguments))};Tn({target:"Map",stat:!0,forced:!0},{of:Rb});var Ib=Ot,Bb=function(t){if("object"==typeof t&&"size"in t&&"has"in t&&"get"in t&&"set"in t&&"delete"in t&&"entries"in t)return t;throw TypeError(Ib(t)+" is not a map")},Lb=Bb,Mb=lb.remove;Tn({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,e=Lb(this),n=!0,r=0,i=arguments.length;r<i;r++)t=Mb(e,arguments[r]),n=n&&t;return!!n}});var zb=Bb,Pb=lb.get,Nb=lb.has,jb=lb.set;Tn({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(t,e){var n,r,i=zb(this);return Nb(i,t)?(n=Pb(i,t),"update"in e&&(n=e.update(n,t,i),jb(i,t,n)),n):(r=e.insert(t,i),jb(i,t,r),r)}});var Db=I,Fb=function(t,e,n){for(var r,i,o=n?t:t.iterator,a=t.next;!(r=Db(a,o)).done;)if(void 0!==(i=e(r.value)))return i},Ub=function(t,e,n){return n?Fb(t.entries(),(function(t){return e(t[1],t[0])}),!0):t.forEach(e)},Kb=Je,Gb=Bb,Zb=Ub;Tn({target:"Map",proto:!0,real:!0,forced:!0},{every:function(t){var e=Gb(this),n=Kb(t,arguments.length>1?arguments[1]:void 0);return!1!==Zb(e,(function(t,r){if(!n(t,r,e))return!1}),!0)}});var Hb=Je,Wb=Bb,Vb=Ub,Yb=lb.Map,Jb=lb.set;Tn({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var e=Wb(this),n=Hb(t,arguments.length>1?arguments[1]:void 0),r=new Yb;return Vb(e,(function(t,i){n(t,i,e)&&Jb(r,i,t)})),r}});var Xb=Je,qb=Bb,Qb=Ub;Tn({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var e=qb(this),n=Xb(t,arguments.length>1?arguments[1]:void 0),r=Qb(e,(function(t,r){if(n(t,r,e))return{value:t}}),!0);return r&&r.value}});var $b=Je,tw=Bb,ew=Ub;Tn({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var e=tw(this),n=$b(t,arguments.length>1?arguments[1]:void 0),r=ew(e,(function(t,r){if(n(t,r,e))return{key:r}}),!0);return r&&r.key}});var nw=function(t,e){return t===e||t!=t&&e!=e},rw=Bb,iw=Ub;Tn({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return!0===iw(rw(this),(function(e){if(nw(e,t))return!0}),!0)}});var ow=I,aw=vh,sw=O,uw=Rt,cw=lb.Map;Tn({target:"Map",stat:!0,forced:!0},{keyBy:function(t,e){var n=new(sw(this)?this:cw);uw(e);var r=uw(n.set);return aw(t,(function(t){ow(r,n,e(t),t)})),n}});var lw=Bb,fw=Ub;Tn({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){var e=fw(lw(this),(function(e,n){if(e===t)return{key:n}}),!0);return e&&e.key}});var hw=Je,dw=Bb,pw=Ub,vw=lb.Map,_w=lb.set;Tn({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var e=dw(this),n=hw(t,arguments.length>1?arguments[1]:void 0),r=new vw;return pw(e,(function(t,i){_w(r,n(t,i,e),t)})),r}});var gw=Je,yw=Bb,mw=Ub,bw=lb.Map,ww=lb.set;Tn({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var e=yw(this),n=gw(t,arguments.length>1?arguments[1]:void 0),r=new bw;return mw(e,(function(t,i){ww(r,i,n(t,i,e))})),r}});var kw=Bb,Sw=vh,xw=lb.set;Tn({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var e=kw(this),n=arguments.length,r=0;r<n;)Sw(arguments[r++],(function(t,n){xw(e,t,n)}),{AS_ENTRIES:!0});return e}});var Ew=Rt,Ow=Bb,Aw=Ub,Tw=TypeError;Tn({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(t){var e=Ow(this),n=arguments.length<2,r=n?void 0:arguments[1];if(Ew(t),Aw(e,(function(i,o){n?(n=!1,r=i):r=t(r,i,o,e)})),n)throw Tw("Reduce of empty map with no initial value");return r}});var Cw=Je,Rw=Bb,Iw=Ub;Tn({target:"Map",proto:!0,real:!0,forced:!0},{some:function(t){var e=Rw(this),n=Cw(t,arguments.length>1?arguments[1]:void 0);return!0===Iw(e,(function(t,r){if(n(t,r,e))return!0}),!0)}});var Bw=Rt,Lw=Bb,Mw=TypeError,zw=lb.get,Pw=lb.has,Nw=lb.set;Tn({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,e){var n=Lw(this),r=arguments.length;Bw(e);var i=Pw(n,t);if(!i&&r<3)throw Mw("Updating absent value");var o=i?zw(n,t):Bw(r>2?arguments[2]:void 0)(t,n);return Nw(n,t,e(o,t,n)),n}});var jw=I,Dw=Rt,Fw=O,Uw=en,Kw=TypeError,Gw=function(t,e){var n,r=Uw(this),i=Dw(r.get),o=Dw(r.has),a=Dw(r.set),s=arguments.length>2?arguments[2]:void 0;if(!Fw(e)&&!Fw(s))throw Kw("At least one callback required");return jw(o,r,t)?(n=jw(i,r,t),Fw(e)&&(n=e(n),jw(a,r,t,n))):Fw(s)&&(n=s(),jw(a,r,t,n)),n};Tn({target:"Map",proto:!0,real:!0,forced:!0},{upsert:Gw}),Tn({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:Gw});var Zw=e(bb),Hw=function(t){return t[t.CAPTURE=0]="CAPTURE",t[t.PRE_PROCESSING=1]="PRE_PROCESSING",t[t.ENCODE=2]="ENCODE",t[t.TRANSFER=3]="TRANSFER",t[t.POST_PROCESSING=4]="POST_PROCESSING",t[t.DECODE=5]="DECODE",t[t.RENDERING=6]="RENDERING",t}(Hw||{}),Ww=function(t){return t[t.STREAM_INDEX_MAIN=0]="STREAM_INDEX_MAIN",t[t.STREAM_INDEX_SCREEN=1]="STREAM_INDEX_SCREEN",t}(Ww||{}),Vw=function(t){Tg(n,t);var e=Hg(n);function n(){var t,r;rg(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Wg(ug(r=e.call.apply(e,By(t=[this]).call(t,o))),"type",Hw.PRE_PROCESSING),r}return sg(n)}(Dy),Yw=Fl("Array").values,Jw=tr,Xw=qt,qw=at,Qw=Yw,$w=Array.prototype,tk={DOMTokenList:!0,NodeList:!0},ek=e((function(t){var e=t.values;return t===$w||qw($w,t)&&e===$w.values||Xw(tk,Jw(t))?Qw:e})),nk=Tn,rk=Date,ik=v(rk.prototype.getTime);nk({target:"Date",stat:!0},{now:function(){return ik(new rk)}});var ok=e(tt.Date.now),ak=Fl("Array").keys,sk=tr,uk=qt,ck=at,lk=ak,fk=Array.prototype,hk={DOMTokenList:!0,NodeList:!0},dk=e((function(t){var e=t.keys;return t===fk||ck(fk,t)&&e===fk.keys||uk(hk,sk(t))?lk:e})),pk=ni.includes;Tn({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(t){return pk(this,t,arguments.length>1?arguments[1]:void 0)}});var vk=Fl("Array").includes,_k=$,gk=m,yk=fe("match"),mk=function(t){var e;return _k(t)&&(void 0!==(e=t[yk])?!!e:"RegExp"===gk(t))},bk=TypeError,wk=fe("match"),kk=Tn,Sk=function(t){if(mk(t))throw bk("The method doesn't accept regular expressions");return t},xk=V,Ek=Wr,Ok=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[wk]=!1,"/./"[t](e)}catch(r){}}return!1},Ak=v("".indexOf);kk({target:"String",proto:!0,forced:!Ok("includes")},{includes:function(t){return!!~Ak(Ek(xk(this)),Ek(Sk(t)),arguments.length>1?arguments[1]:void 0)}});var Tk=Fl("String").includes,Ck=at,Rk=vk,Ik=Tk,Bk=Array.prototype,Lk=String.prototype,Mk=e((function(t){var e=t.includes;return t===Bk||Ck(Bk,t)&&e===Bk.includes?Rk:"string"==typeof t||t===Lk||Ck(Lk,t)&&e===Lk.includes?Ik:e})),zk=tt,Pk=l;zk.JSON||(zk.JSON={stringify:JSON.stringify});var Nk,jk=function(t,e,n){return Pk(zk.JSON.stringify,null,arguments)},Dk=e(jk),Fk=new Uint8Array(16);function Uk(){var t,e;if(!Nk&&!(Nk="undefined"!=typeof crypto&&crypto.getRandomValues&&$g(t=crypto.getRandomValues).call(t,crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&$g(e=msCrypto.getRandomValues).call(e,msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Nk(Fk)}var Kk=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Gk=[],Zk=0;Zk<256;++Zk)Gk.push((Zk+256).toString(16).substr(1));function Hk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Gk[t[e+0]]+Gk[t[e+1]]+Gk[t[e+2]]+Gk[t[e+3]]+"-"+Gk[t[e+4]]+Gk[t[e+5]]+"-"+Gk[t[e+6]]+Gk[t[e+7]]+"-"+Gk[t[e+8]]+Gk[t[e+9]]+"-"+Gk[t[e+10]]+Gk[t[e+11]]+Gk[t[e+12]]+Gk[t[e+13]]+Gk[t[e+14]]+Gk[t[e+15]]).toLowerCase();if(!function(t){return"string"==typeof t&&Kk.test(t)}(n))throw TypeError("Stringified UUID is invalid");return n}function Wk(t,e,n){var r=(t=t||{}).random||(t.rng||Uk)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return Hk(r)}var Vk=function(){return"undefined"==typeof window};function Yk(t){return null==t?"undefined | null":"string"==typeof t?t:Dk({contentHint:t.contentHint,enabled:t.enabled,id:t.id,kind:t.kind,label:t.label,muted:t.muted,readyState:t.readyState})}function Jk(t){return null==t?"undefined | null":"string"==typeof t?t:Dk({track:Yk(t.track)})}function Xk(t){return null==t?"undefined | null":"string"==typeof t?t:Dk({track:Yk(t.track)})}var qk="@byted/ve-rtc",Qk="@byted/ve-rtc-cache-size",$k=function(){function t(){rg(this,t),Wg(this,"storeKey",void 0),Wg(this,"logLevel",void 0),Wg(this,"LogfileSize",void 0),Wg(this,"db",void 0),Wg(this,"logId",void 0),Wg(this,"cacheLog",void 0),Wg(this,"cachedSize",void 0),Wg(this,"preCacheTime",void 0),Wg(this,"timer",void 0),Wg(this,"_getSize",(function(t){return new Blob(t).size/1048576})),this.storeKey="",this.logId=1,this.cacheLog="",this.logLevel="none",this.LogfileSize=100,this._createStore()}return sg(t,[{key:"_createStore",value:function(){var t=this;if(!Vk()&&window.indexedDB){var e=indexedDB.open("@byted/ve-rtc");e.onupgradeneeded=function(){e.result.createObjectStore(qk);try{localStorage.removeItem(Qk)}catch(MC){}},e.onerror=function(t){},e.onsuccess=function(){t.db=e.result,t._getCachedSize()}}}},{key:"_getCachedSize",value:function(){var t=this;try{var e=localStorage.getItem(Qk);if(e)this.cachedSize=Number(e);else ek(this).call(this).then((function(e){t.cachedSize=t._getSize(e),t._setCachedSize()}))}catch(MC){}}},{key:"_setCachedSize",value:function(){try{localStorage.setItem(Qk,"".concat(this.cachedSize))}catch(MC){}}},{key:"_getStore",value:function(t){if(this.db)return this.db.transaction(qk,t).objectStore(qk)}},{key:"set",value:function(t){var e=this;return new cy((function(n,r){if("none"===e.logLevel)return n();var i;if(t&&e.preCacheTime&&e.preCacheTime-ok()<1e3)return e.cacheLog+=By(i="\n\n".concat(e.logId,": ")).call(i,t),e.logId++,e.timer||(e.timer=Ay((function(){e.set("")}),1e3-(e.preCacheTime-ok()))),n();clearTimeout(e.timer),e.timer=null;var o=e._getStore("readwrite");if(!o)return r("get store fail");e.cachedSize&&e.cachedSize>e.LogfileSize&&e.keyEarliest().then((function(t){e.get(t).then((function(n){e.del(t).then((function(){e.cachedSize=e.cachedSize-e._getSize(["".concat(n)]),e._setCachedSize()}))}))}));var a=o.get(e.storeKey);a.onsuccess=function(){try{var i,s,u,c,l,f=By(i="".concat(a.result||"")).call(i,e.cacheLog),h=t?By(s=By(u="".concat(f?"\n\n":"")).call(u,e.logId,": ")).call(s,t):"";o.put(By(c="".concat(f)).call(c,h),e.storeKey),t&&e.logId++,e.cacheLog="",e.cachedSize=(e.cachedSize||0)+e._getSize([By(l="".concat(e.cacheLog)).call(l,h)]),e._setCachedSize(),e.preCacheTime=ok(),n()}catch(p){var d;if(!t)return r(p);e.cacheLog+=By(d="\n\n".concat(e.logId,": ")).call(d,t),e.logId++,r(p)}},a.onerror=function(n){var i;if(!t)return r(n);e.cacheLog+=By(i="\n\n".concat(e.logId,": ")).call(i,t),e.logId++,r(n)}}))}},{key:"get",value:function(t){var e=this;return new cy((function(n,r){var i=e._getStore("readonly");if(!i)return r();var o=i.get(t);o.onsuccess=function(){n(o.result)},o.onerror=function(t){r(t)}}))}},{key:"del",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.storeKey;return new cy((function(n,r){var i=t._getStore("readwrite");if(!i)return r();var o=i.delete(e);o.onsuccess=function(){return n(o.result)},o.onerror=function(t){return r(t)}}))}},{key:"keyEarliest",value:function(){return dk(this).call(this).then((function(t){var e,n=ok();return Vg(t).call(t,(function(t){if(t&&t.length){var r=t.split("-")[0];Number(r)<n&&(n=Number(r),e=t)}})),e}))}},{key:"keys",value:function(){var t=this;return new cy((function(e,n){var r=t._getStore("readonly");if(!r)return n();if(r.getAllKeys){var i=r.getAllKeys();return i.onsuccess=function(){e(i.result)},void(i.onerror=function(){n()})}var o=[];r.openCursor().onsuccess=function(){this.result&&(o.push(this.result.key),this.result.continue())},r.transaction.oncomplete=function(){return e(o)}}))}},{key:"values",value:function(){var t=this;return new cy((function(e,n){var r=t._getStore("readonly");if(!r)return n();if(r.getAll){var i=r.getAll();return i.onsuccess=function(){e(i.result)},void(i.onerror=function(){n()})}var o=[];r.openCursor().onsuccess=function(){this.result&&(o.push(this.result.value),this.result.continue())},r.transaction.oncomplete=function(){return e(o)}}))}},{key:"download",value:function(t){t=t||this.storeKey,this.get(t).then((function(e){var n=document.createElement("a");n.download="".concat(t,".txt"),n.href="data:text/paint;utf-8,".concat(e||""),n.click()}))}}]),t}(),tS=new $k,eS=Qo.map;Tn({target:"Array",proto:!0,forced:!Cr("map")},{map:function(t){return eS(this,t,arguments.length>1?arguments[1]:void 0)}});var nS=Fl("Array").map,rS=at,iS=nS,oS=Array.prototype,aS=e((function(t){var e=t.map;return t===oS||rS(oS,t)&&e===oS.map?iS:e})),sS=Mn,uS=Wr,cS=V,lS=RangeError,fS=v,hS=Nn,dS=Wr,pS=V,vS=fS((function(t){var e=uS(cS(this)),n="",r=sS(t);if(r<0||r===1/0)throw lS("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),_S=fS("".slice),gS=Math.ceil,yS=function(t){return function(e,n,r){var i,o,a=dS(pS(e)),s=hS(n),u=a.length,c=void 0===r?" ":dS(r);return s<=u||""===c?a:((o=vS(c,gS((i=s-u)/c.length))).length>i&&(o=_S(o,0,i)),t?a+o:o+a)}},mS={start:yS(!1),end:yS(!0)},bS=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(st),wS=mS.start;Tn({target:"String",proto:!0,forced:bS},{padStart:function(t){return wS(this,t,arguments.length>1?arguments[1]:void 0)}});var kS=Fl("String").padStart,SS=at,xS=kS,ES=String.prototype,OS=e((function(t){var e=t.padStart;return"string"==typeof t||t===ES||SS(ES,t)&&e===ES.padStart?xS:e}));function AS(t){return function(t){if(Uy(t))return rm(t)}(t)||function(t){if(void 0!==nl&&null!=Fy(t)||null!=t["@@iterator"])return nm(t)}(t)||function(t,e){var n;if(t){if("string"==typeof t)return rm(t,e);var r=$_(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?nm(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rm(t,e):void 0}}(t)||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.")}()}var TS=Ot,CS=TypeError,RS=Tn,IS=Yt,BS=qr,LS=Mn,MS=Dn,zS=tf,PS=Un,NS=Er,jS=Hn,DS=function(t,e){if(!delete t[e])throw CS("Cannot delete property "+TS(e)+" of "+TS(t))},FS=Cr("splice"),US=Math.max,KS=Math.min;RS({target:"Array",proto:!0,forced:!FS},{splice:function(t,e){var n,r,i,o,a,s,u=IS(this),c=MS(u),l=BS(t,c),f=arguments.length;for(0===f?n=r=0:1===f?(n=0,r=c-l):(n=f-2,r=KS(US(LS(e),0),c-l)),PS(c+n-r),i=NS(u,r),o=0;o<r;o++)(a=l+o)in u&&jS(i,o,u[a]);if(i.length=r,n<r){for(o=l;o<c-r;o++)s=o+n,(a=o+r)in u?u[s]=u[a]:DS(u,s);for(o=c;o>c-r+n;o--)DS(u,o-1)}else if(n>r)for(o=c-r;o>l;o--)s=o+n-1,(a=o+r-1)in u?u[s]=u[a]:DS(u,s);for(o=0;o<n;o++)u[o+l]=arguments[o+2];return zS(u,c-r+n),i}});var GS=Fl("Array").splice,ZS=at,HS=GS,WS=Array.prototype,VS=e((function(t){var e=t.splice;return t===WS||ZS(WS,t)&&e===WS.splice?HS:e}));Tn({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var YS=e(tt.Number.isNaN),JS=Tn,XS=ni.indexOf,qS=Pl,QS=k([].indexOf),$S=!!QS&&1/QS([1],1,-0)<0;JS({target:"Array",proto:!0,forced:$S||!qS("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return $S?QS(this,t,e)||0:XS(this,t,e)}});var tx=Fl("Array").indexOf,ex=at,nx=tx,rx=Array.prototype,ix=function(t){var e=t.indexOf;return t===rx||ex(rx,t)&&e===rx.indexOf?nx:e},ox=e(ix),ax=e(ix),sx=function(){function t(){rg(this,t),Wg(this,"_all",{})}return sg(t,[{key:"on",value:function(t,e){var n=this._all[t];n?n.push(e):this._all[t]=[e]}},{key:"once",value:function(t,e){var n=this;this.on(t,(function r(){e.apply(void 0,arguments),n.off(t,r)}))}},{key:"off",value:function(t,e){var n=this._all[t];null==n||VS(n).call(n,ax(n).call(n,e)>>>0,1)}},{key:"emit",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=this._all[t];null==o||Vg(e=My(o).call(o)).call(e,(function(t){return t.apply(void 0,r)}))}},{key:"safeEmit",value:function(t){try{for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return this.emit.apply(this,By(e=[t]).call(e,r))}catch(MC){console.error(MC)}}},{key:"destroy",value:function(){this._all={}}}]),t}(),ux=["UPLOAD_CONSOLE_LENGTH_CUT","UPLOAD_REPORT_LIMIT"];var cx=function(t){Tg(n,t);var e=Hg(n);function n(){var t,r;rg(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Wg(ug(r=e.call.apply(e,By(t=[this]).call(t,o))),"config",{UPLOAD_CONSOLE_ON:!1,UPLOAD_CONSOLE_LENGTH_CUT:200,UPLOAD_REPORT_LIMIT:45e4,ENABLE_REPORT_IDB_BUFFER:!1}),r}return sg(n,[{key:"setParameter",value:function(t,e){if(function(t){return Mk(ux).call(ux,t)}(t))try{var n=Number(e);if(YS(n))return;this.config[t]=n}catch(i){var r;return void console.warn(By(r="Cannot convert core lib parameter ".concat(t,":")).call(r,e," into number"))}else this.config[t]=e;this.emit(t,this.config[t])}},{key:"getParameter",value:function(t){return this.config[t]}},{key:"getKeys",value:function(){return Qg(this.config)}}]),n}(sx),lx=new cx,fx={exports:{}},hx=Tn,dx=i,px=X,vx=A.f,_x=T;hx({target:"Object",stat:!0,forced:!_x||dx((function(){vx(1)})),sham:!_x},{getOwnPropertyDescriptor:function(t,e){return vx(px(t),e)}});var gx=tt.Object,yx=fx.exports=function(t,e){return gx.getOwnPropertyDescriptor(t,e)};gx.getOwnPropertyDescriptor.sham&&(yx.sham=!0);var mx=e(fx.exports),bx=gf,wx=X,kx=A,Sx=Hn;Tn({target:"Object",stat:!0,sham:!T},{getOwnPropertyDescriptors:function(t){for(var e,n,r=wx(t),i=kx.f,o=bx(r),a={},s=0;o.length>s;)void 0!==(n=i(r,e=o[s++]))&&Sx(a,e,n);return a}});var xx=e(tt.Object.getOwnPropertyDescriptors),Ex={exports:{}},Ox=Tn,Ax=T,Tx=Vr.f;Ox({target:"Object",stat:!0,forced:Object.defineProperties!==Tx,sham:!Ax},{defineProperties:Tx});var Cx=tt.Object,Rx=Ex.exports=function(t,e){return Cx.defineProperties(t,e)};Cx.defineProperties.sham&&(Rx.sham=!0);var Ix=e(Ex.exports);function Bx(t,e){var n=qg(t);if(Py){var r=Py(t);e&&(r=sy(r).call(r,(function(e){return mx(t,e).enumerable}))),lf(n).apply(n,r)}return n}function Lx(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?Jl(n=Bx(Object(i),!0)).call(n,(function(e){Wg(t,e,i[e])})):xx?Ix(t,xx(i)):Jl(r=Bx(Object(i))).call(r,(function(e){Al(t,e,mx(i,e))}))}return t}var Mx=T,zx=v,Px=I,Nx=i,jx=di,Dx=$i,Fx=B,Ux=Yt,Kx=G,Gx=Object.assign,Zx=Object.defineProperty,Hx=zx([].concat),Wx=!Gx||Nx((function(){if(Mx&&1!==Gx({b:1},Gx(Zx({},"a",{enumerable:!0,get:function(){Zx(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!==Gx({},t)[n]||jx(Gx({},e)).join("")!==r}))?function(t,e){for(var n=Ux(t),r=arguments.length,i=1,o=Dx.f,a=Fx.f;r>i;)for(var s,u=Kx(arguments[i++]),c=o?Hx(jx(u),o(u)):jx(u),l=c.length,f=0;l>f;)s=c[f++],Mx&&!Px(a,u,s)||(n[s]=u[s]);return n}:Gx,Vx=Wx;Tn({target:"Object",stat:!0,arity:2,forced:Object.assign!==Vx},{assign:Vx});var Yx=e(tt.Object.assign),Jx=Rt,Xx=Yt,qx=G,Qx=Dn,$x=TypeError,tE=function(t){return function(e,n,r,i){Jx(n);var o=Xx(e),a=qx(o),s=Qx(o),u=t?s-1:0,c=t?-1:1;if(r<2)for(;;){if(u in a){i=a[u],u+=c;break}if(u+=c,t?u<0:s<=u)throw $x("Reduce of empty array with no initial value")}for(;t?u>=0:s>u;u+=c)u in a&&(i=n(i,a[u],u,o));return i}},eE={left:tE(!1),right:tE(!0)}.left;Tn({target:"Array",proto:!0,forced:!jh&&pt>79&&pt<83||!Pl("reduce")},{reduce:function(t){var e=arguments.length;return eE(this,t,e,e>1?arguments[1]:void 0)}});var nE=Fl("Array").reduce,rE=at,iE=nE,oE=Array.prototype,aE=e((function(t){var e=t.reduce;return t===oE||rE(oE,t)&&e===oE.reduce?iE:e})),sE=Rn,uE=Dn,cE=Un,lE=Je,fE=function(t,e,n,r,i,o,a,s){for(var u,c,l=i,f=0,h=!!a&&lE(a,s);f<r;)f in n&&(u=h?h(n[f],f,e):n[f],o>0&&sE(u)?(c=uE(u),l=fE(t,e,u,c,l,o-1)-1):(cE(l+1),t[l]=u),l++),f++;return l},hE=fE,dE=Yt,pE=Dn,vE=Mn,_E=Er;Tn({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=dE(this),n=pE(e),r=_E(e,0);return r.length=hE(r,e,e,n,0,void 0===t?1:vE(t)),r}});var gE=Fl("Array").flat,yE=at,mE=gE,bE=Array.prototype,wE=e((function(t){var e=t.flat;return t===bE||yE(bE,t)&&e===bE.flat?mE:e})),kE={};!function(t){var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.assign=function(t){for(var e=My(Array.prototype).call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!==bl(r))throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(t[i]=r[i])}}return t},t.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),i=0,e=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a}},i={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return By([]).apply([],t)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,r)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,i))},t.setTyped(e)}(kE);var SE={},xE={},EE={},OE=kE,AE=0,TE=1;function CE(t){for(var e=t.length;--e>=0;)t[e]=0}var RE=0,IE=29,BE=256,LE=BE+1+IE,ME=30,zE=19,PE=2*LE+1,NE=15,jE=16,DE=7,FE=256,UE=16,KE=17,GE=18,ZE=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],HE=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],WE=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],VE=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],YE=new Array(2*(LE+2));CE(YE);var JE=new Array(2*ME);CE(JE);var XE=new Array(512);CE(XE);var qE=new Array(256);CE(qE);var QE=new Array(IE);CE(QE);var $E,tO,eO,nO=new Array(ME);function rO(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function iO(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function oO(t){return t<256?XE[t]:XE[256+(t>>>7)]}function aO(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function sO(t,e,n){t.bi_valid>jE-n?(t.bi_buf|=e<<t.bi_valid&65535,aO(t,t.bi_buf),t.bi_buf=e>>jE-t.bi_valid,t.bi_valid+=n-jE):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function uO(t,e,n){sO(t,n[2*e],n[2*e+1])}function cO(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function lO(t,e,n){var r,i,o=new Array(NE+1),a=0;for(r=1;r<=NE;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=cO(o[s]++,s))}}function fO(t){var e;for(e=0;e<LE;e++)t.dyn_ltree[2*e]=0;for(e=0;e<ME;e++)t.dyn_dtree[2*e]=0;for(e=0;e<zE;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*FE]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function hO(t){t.bi_valid>8?aO(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function dO(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function pO(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&dO(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!dO(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function vO(t,e,n){var r,i,o,a,s=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===r?uO(t,i,e):(uO(t,(o=qE[i])+BE+1,e),0!==(a=ZE[o])&&sO(t,i-=QE[o],a),uO(t,o=oO(--r),n),0!==(a=HE[o])&&sO(t,r-=nO[o],a))}while(s<t.last_lit);uO(t,FE,e)}function _O(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=PE,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)pO(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],pO(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,pO(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,u=e.dyn_tree,c=e.max_code,l=e.stat_desc.static_tree,f=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,v=0;for(o=0;o<=NE;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<PE;n++)(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)>p&&(o=p,v++),u[2*r+1]=o,r>c||(t.bl_count[o]++,a=0,r>=d&&(a=h[r-d]),s=u[2*r],t.opt_len+=s*(o+a),f&&(t.static_len+=s*(l[2*r+1]+a)));if(0!==v){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,v-=2}while(v>0);for(o=p;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(t,e),lO(o,c,t.bl_count)}function gO(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*UE]++):s<=10?t.bl_tree[2*KE]++:t.bl_tree[2*GE]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function yO(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<u&&i===a)){if(s<c)do{uO(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(uO(t,i,t.bl_tree),s--),uO(t,UE,t.bl_tree),sO(t,s-3,2)):s<=10?(uO(t,KE,t.bl_tree),sO(t,s-3,3)):(uO(t,GE,t.bl_tree),sO(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}CE(nO);var mO=!1;function bO(t,e,n,r){sO(t,(RE<<1)+(r?1:0),3),function(t,e,n,r){hO(t),r&&(aO(t,n),aO(t,~n)),OE.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}EE._tr_init=function(t){mO||(!function(){var t,e,n,r,i,o=new Array(NE+1);for(n=0,r=0;r<IE-1;r++)for(QE[r]=n,t=0;t<1<<ZE[r];t++)qE[n++]=r;for(qE[n-1]=r,i=0,r=0;r<16;r++)for(nO[r]=i,t=0;t<1<<HE[r];t++)XE[i++]=r;for(i>>=7;r<ME;r++)for(nO[r]=i<<7,t=0;t<1<<HE[r]-7;t++)XE[256+i++]=r;for(e=0;e<=NE;e++)o[e]=0;for(t=0;t<=143;)YE[2*t+1]=8,t++,o[8]++;for(;t<=255;)YE[2*t+1]=9,t++,o[9]++;for(;t<=279;)YE[2*t+1]=7,t++,o[7]++;for(;t<=287;)YE[2*t+1]=8,t++,o[8]++;for(lO(YE,LE+1,o),t=0;t<ME;t++)JE[2*t+1]=5,JE[2*t]=cO(t,5);$E=new rO(YE,ZE,BE+1,LE,NE),tO=new rO(JE,HE,0,ME,NE),eO=new rO(new Array(0),WE,0,zE,DE)}(),mO=!0),t.l_desc=new iO(t.dyn_ltree,$E),t.d_desc=new iO(t.dyn_dtree,tO),t.bl_desc=new iO(t.bl_tree,eO),t.bi_buf=0,t.bi_valid=0,fO(t)},EE._tr_stored_block=bO,EE._tr_flush_block=function(t,e,n,r){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return AE;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return TE;for(e=32;e<BE;e++)if(0!==t.dyn_ltree[2*e])return TE;return AE}(t)),_O(t,t.l_desc),_O(t,t.d_desc),a=function(t){var e;for(gO(t,t.dyn_ltree,t.l_desc.max_code),gO(t,t.dyn_dtree,t.d_desc.max_code),_O(t,t.bl_desc),e=zE-1;e>=3&&0===t.bl_tree[2*VE[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?bO(t,e,n,r):4===t.strategy||o===i?(sO(t,2+(r?1:0),3),vO(t,YE,JE)):(sO(t,4+(r?1:0),3),function(t,e,n,r){var i;for(sO(t,e-257,5),sO(t,n-1,5),sO(t,r-4,4),i=0;i<r;i++)sO(t,t.bl_tree[2*VE[i]+1],3);yO(t,t.dyn_ltree,e-1),yO(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),vO(t,t.dyn_ltree,t.dyn_dtree)),fO(t),r&&hO(t)},EE._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(qE[n]+BE+1)]++,t.dyn_dtree[2*oO(e)]++),t.last_lit===t.lit_bufsize-1},EE._tr_align=function(t){sO(t,2,3),uO(t,FE,YE),function(t){16===t.bi_valid?(aO(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)};var wO=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0};var kO=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();var SO,xO=function(t,e,n,r){var i=kO,o=r+n;t^=-1;for(var a=r;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t},EO={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},OO=kE,AO=EE,TO=wO,CO=xO,RO=EO,IO=0,BO=4,LO=0,MO=-2,zO=-1,PO=4,NO=2,jO=8,DO=9,FO=286,UO=30,KO=19,GO=2*FO+1,ZO=15,HO=3,WO=258,VO=WO+HO+1,YO=42,JO=103,XO=113,qO=666,QO=1,$O=2,tA=3,eA=4;function nA(t,e){return t.msg=RO[e],e}function rA(t){return(t<<1)-(t>4?9:0)}function iA(t){for(var e=t.length;--e>=0;)t[e]=0}function oA(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(OO.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function aA(t,e){AO._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,oA(t.strm)}function sA(t,e){t.pending_buf[t.pending++]=e}function uA(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function cA(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-VO?t.strstart-(t.w_size-VO):0,c=t.window,l=t.w_mask,f=t.prev,h=t.strstart+WO,d=c[o+a-1],p=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===p&&c[n+a-1]===d&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<h);if(r=WO-(h-o),o=h-WO,r>a){if(t.match_start=e,a=r,r>=s)break;d=c[o+a-1],p=c[o+a]}}}while((e=f[e&l])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function lA(t){var e,n,r,i,o,a,s,u,c,l,f=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=f+(f-VO)){OO.arraySet(t.window,t.window,f,f,0),t.match_start-=f,t.strstart-=f,t.block_start-=f,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=f?r-f:0}while(--n);e=n=f;do{r=t.prev[--e],t.prev[e]=r>=f?r-f:0}while(--n);i+=f}if(0===t.strm.avail_in)break;if(a=t.strm,s=t.window,u=t.strstart+t.lookahead,c=i,l=void 0,(l=a.avail_in)>c&&(l=c),n=0===l?0:(a.avail_in-=l,OO.arraySet(s,a.input,a.next_in,l,u),1===a.state.wrap?a.adler=TO(a.adler,s,l,u):2===a.state.wrap&&(a.adler=CO(a.adler,s,l,u)),a.next_in+=l,a.total_in+=l,l),t.lookahead+=n,t.lookahead+t.insert>=HO)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+HO-1])&t.hash_mask,t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<HO)););}while(t.lookahead<VO&&0!==t.strm.avail_in)}function fA(t,e){for(var n,r;;){if(t.lookahead<VO){if(lA(t),t.lookahead<VO&&e===IO)return QO;if(0===t.lookahead)break}if(n=0,t.lookahead>=HO&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+HO-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-VO&&(t.match_length=cA(t,n)),t.match_length>=HO)if(r=AO._tr_tally(t,t.strstart-t.match_start,t.match_length-HO),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=HO){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+HO-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=AO._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(aA(t,!1),0===t.strm.avail_out))return QO}return t.insert=t.strstart<HO-1?t.strstart:HO-1,e===BO?(aA(t,!0),0===t.strm.avail_out?tA:eA):t.last_lit&&(aA(t,!1),0===t.strm.avail_out)?QO:$O}function hA(t,e){for(var n,r,i;;){if(t.lookahead<VO){if(lA(t),t.lookahead<VO&&e===IO)return QO;if(0===t.lookahead)break}if(n=0,t.lookahead>=HO&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+HO-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=HO-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-VO&&(t.match_length=cA(t,n),t.match_length<=5&&(1===t.strategy||t.match_length===HO&&t.strstart-t.match_start>4096)&&(t.match_length=HO-1)),t.prev_length>=HO&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-HO,r=AO._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-HO),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+HO-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=HO-1,t.strstart++,r&&(aA(t,!1),0===t.strm.avail_out))return QO}else if(t.match_available){if((r=AO._tr_tally(t,0,t.window[t.strstart-1]))&&aA(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return QO}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=AO._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<HO-1?t.strstart:HO-1,e===BO?(aA(t,!0),0===t.strm.avail_out?tA:eA):t.last_lit&&(aA(t,!1),0===t.strm.avail_out)?QO:$O}function dA(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function pA(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=jO,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new OO.Buf16(2*GO),this.dyn_dtree=new OO.Buf16(2*(2*UO+1)),this.bl_tree=new OO.Buf16(2*(2*KO+1)),iA(this.dyn_ltree),iA(this.dyn_dtree),iA(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new OO.Buf16(ZO+1),this.heap=new OO.Buf16(2*FO+1),iA(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new OO.Buf16(2*FO+1),iA(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function vA(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=NO,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?YO:XO,t.adler=2===e.wrap?0:1,e.last_flush=IO,AO._tr_init(e),LO):nA(t,MO)}function _A(t){var e,n=vA(t);return n===LO&&((e=t.state).window_size=2*e.w_size,iA(e.head),e.max_lazy_match=SO[e.level].max_lazy,e.good_match=SO[e.level].good_length,e.nice_match=SO[e.level].nice_length,e.max_chain_length=SO[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=HO-1,e.match_available=0,e.ins_h=0),n}function gA(t,e,n,r,i,o){if(!t)return MO;var a=1;if(e===zO&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>DO||n!==jO||r<8||r>15||e<0||e>9||o<0||o>PO)return nA(t,MO);8===r&&(r=9);var s=new pA;return t.state=s,s.strm=t,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+HO-1)/HO),s.window=new OO.Buf8(2*s.w_size),s.head=new OO.Buf16(s.hash_size),s.prev=new OO.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new OO.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=o,s.method=n,_A(t)}SO=[new dA(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(lA(t),0===t.lookahead&&e===IO)return QO;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,aA(t,!1),0===t.strm.avail_out))return QO;if(t.strstart-t.block_start>=t.w_size-VO&&(aA(t,!1),0===t.strm.avail_out))return QO}return t.insert=0,e===BO?(aA(t,!0),0===t.strm.avail_out?tA:eA):(t.strstart>t.block_start&&(aA(t,!1),t.strm.avail_out),QO)})),new dA(4,4,8,4,fA),new dA(4,5,16,8,fA),new dA(4,6,32,32,fA),new dA(4,4,16,16,hA),new dA(8,16,32,32,hA),new dA(8,16,128,128,hA),new dA(8,32,128,256,hA),new dA(32,128,258,1024,hA),new dA(32,258,258,4096,hA)],xE.deflateInit=function(t,e){return gA(t,e,jO,15,8,0)},xE.deflateInit2=gA,xE.deflateReset=_A,xE.deflateResetKeep=vA,xE.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?MO:(t.state.gzhead=e,LO):MO},xE.deflate=function(t,e){var n,r,i,o;if(!t||!t.state||e>5||e<0)return t?nA(t,MO):MO;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||r.status===qO&&e!==BO)return nA(t,0===t.avail_out?-5:MO);if(r.strm=t,n=r.last_flush,r.last_flush=e,r.status===YO)if(2===r.wrap)t.adler=0,sA(r,31),sA(r,139),sA(r,8),r.gzhead?(sA(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),sA(r,255&r.gzhead.time),sA(r,r.gzhead.time>>8&255),sA(r,r.gzhead.time>>16&255),sA(r,r.gzhead.time>>24&255),sA(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),sA(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(sA(r,255&r.gzhead.extra.length),sA(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=CO(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(sA(r,0),sA(r,0),sA(r,0),sA(r,0),sA(r,0),sA(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),sA(r,3),r.status=XO);else{var a=jO+(r.w_bits-8<<4)<<8;a|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=XO,uA(r,a),0!==r.strstart&&(uA(r,t.adler>>>16),uA(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(t.adler=CO(t.adler,r.pending_buf,r.pending-i,i)),oA(t),i=r.pending,r.pending!==r.pending_buf_size));)sA(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(t.adler=CO(t.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(t.adler=CO(t.adler,r.pending_buf,r.pending-i,i)),oA(t),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,sA(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=CO(t.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(t.adler=CO(t.adler,r.pending_buf,r.pending-i,i)),oA(t),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,sA(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=CO(t.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=JO)}else r.status=JO;if(r.status===JO&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&oA(t),r.pending+2<=r.pending_buf_size&&(sA(r,255&t.adler),sA(r,t.adler>>8&255),t.adler=0,r.status=XO)):r.status=XO),0!==r.pending){if(oA(t),0===t.avail_out)return r.last_flush=-1,LO}else if(0===t.avail_in&&rA(e)<=rA(n)&&e!==BO)return nA(t,-5);if(r.status===qO&&0!==t.avail_in)return nA(t,-5);if(0!==t.avail_in||0!==r.lookahead||e!==IO&&r.status!==qO){var s=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(lA(t),0===t.lookahead)){if(e===IO)return QO;break}if(t.match_length=0,n=AO._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(aA(t,!1),0===t.strm.avail_out))return QO}return t.insert=0,e===BO?(aA(t,!0),0===t.strm.avail_out?tA:eA):t.last_lit&&(aA(t,!1),0===t.strm.avail_out)?QO:$O}(r,e):3===r.strategy?function(t,e){for(var n,r,i,o,a=t.window;;){if(t.lookahead<=WO){if(lA(t),t.lookahead<=WO&&e===IO)return QO;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=HO&&t.strstart>0&&(r=a[i=t.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=t.strstart+WO;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);t.match_length=WO-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=HO?(n=AO._tr_tally(t,1,t.match_length-HO),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=AO._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(aA(t,!1),0===t.strm.avail_out))return QO}return t.insert=0,e===BO?(aA(t,!0),0===t.strm.avail_out?tA:eA):t.last_lit&&(aA(t,!1),0===t.strm.avail_out)?QO:$O}(r,e):SO[r.level].func(r,e);if(s!==tA&&s!==eA||(r.status=qO),s===QO||s===tA)return 0===t.avail_out&&(r.last_flush=-1),LO;if(s===$O&&(1===e?AO._tr_align(r):5!==e&&(AO._tr_stored_block(r,0,0,!1),3===e&&(iA(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),oA(t),0===t.avail_out))return r.last_flush=-1,LO}return e!==BO?LO:r.wrap<=0?1:(2===r.wrap?(sA(r,255&t.adler),sA(r,t.adler>>8&255),sA(r,t.adler>>16&255),sA(r,t.adler>>24&255),sA(r,255&t.total_in),sA(r,t.total_in>>8&255),sA(r,t.total_in>>16&255),sA(r,t.total_in>>24&255)):(uA(r,t.adler>>>16),uA(r,65535&t.adler)),oA(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?LO:1)},xE.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==YO&&69!==e&&73!==e&&91!==e&&e!==JO&&e!==XO&&e!==qO?nA(t,MO):(t.state=null,e===XO?nA(t,-3):LO):MO},xE.deflateSetDictionary=function(t,e){var n,r,i,o,a,s,u,c,l=e.length;if(!t||!t.state)return MO;if(2===(o=(n=t.state).wrap)||1===o&&n.status!==YO||n.lookahead)return MO;for(1===o&&(t.adler=TO(t.adler,e,l,0)),n.wrap=0,l>=n.w_size&&(0===o&&(iA(n.head),n.strstart=0,n.block_start=0,n.insert=0),c=new OO.Buf8(n.w_size),OO.arraySet(c,e,l-n.w_size,n.w_size,0),e=c,l=n.w_size),a=t.avail_in,s=t.next_in,u=t.input,t.avail_in=l,t.next_in=0,t.input=e,lA(n);n.lookahead>=HO;){r=n.strstart,i=n.lookahead-(HO-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+HO-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--i);n.strstart=r,n.lookahead=HO-1,lA(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=HO-1,n.match_available=0,t.next_in=s,t.input=u,t.avail_in=a,n.wrap=o,LO},xE.deflateInfo="pako deflate (from Nodeca project)";var yA={},mA=kE,bA=!0,wA=!0;try{String.fromCharCode.apply(null,[0])}catch(zC){bA=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(zC){wA=!1}for(var kA=new mA.Buf8(256),SA=0;SA<256;SA++)kA[SA]=SA>=252?6:SA>=248?5:SA>=240?4:SA>=224?3:SA>=192?2:1;function xA(t,e){if(e<65534&&(t.subarray&&wA||!t.subarray&&bA))return String.fromCharCode.apply(null,mA.shrinkBuf(t,e));for(var n="",r=0;r<e;r++)n+=String.fromCharCode(t[r]);return n}kA[254]=kA[254]=1,yA.string2buf=function(t){var e,n,r,i,o,a=t.length,s=0;for(i=0;i<a;i++)55296==(64512&(n=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(r=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),s+=n<128?1:n<2048?2:n<65536?3:4;for(e=new mA.Buf8(s),o=0,i=0;o<s;i++)55296==(64512&(n=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(r=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?e[o++]=n:n<2048?(e[o++]=192|n>>>6,e[o++]=128|63&n):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|63&n):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|63&n);return e},yA.buf2binstring=function(t){return xA(t,t.length)},yA.binstring2buf=function(t){for(var e=new mA.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},yA.buf2string=function(t,e){var n,r,i,o,a=e||t.length,s=new Array(2*a);for(r=0,n=0;n<a;)if((i=t[n++])<128)s[r++]=i;else if((o=kA[i])>4)s[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n<a;)i=i<<6|63&t[n++],o--;o>1?s[r++]=65533:i<65536?s[r++]=i:(i-=65536,s[r++]=55296|i>>10&1023,s[r++]=56320|1023&i)}return xA(s,r)},yA.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+kA[t[n]]>e?n:e};var EA=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},OA=xE,AA=kE,TA=yA,CA=EO,RA=EA,IA=Object.prototype.toString,BA=0,LA=-1,MA=0,zA=8;function PA(t){if(!(this instanceof PA))return new PA(t);this.options=AA.assign({level:LA,method:zA,chunkSize:16384,windowBits:15,memLevel:8,strategy:MA,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new RA,this.strm.avail_out=0;var n=OA.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==BA)throw new Error(CA[n]);if(e.header&&OA.deflateSetHeader(this.strm,e.header),e.dictionary){var r;if(r="string"==typeof e.dictionary?TA.string2buf(e.dictionary):"[object ArrayBuffer]"===IA.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=OA.deflateSetDictionary(this.strm,r))!==BA)throw new Error(CA[n]);this._dict_set=!0}}function NA(t,e){var n=new PA(e);if(n.push(t,!0),n.err)throw n.msg||CA[n.err];return n.result}PA.prototype.push=function(t,e){var n,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;r=e===~~e?e:!0===e?4:0,"string"==typeof t?i.input=TA.string2buf(t):"[object ArrayBuffer]"===IA.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new AA.Buf8(o),i.next_out=0,i.avail_out=o),1!==(n=OA.deflate(i,r))&&n!==BA)return this.onEnd(n),this.ended=!0,!1;0!==i.avail_out&&(0!==i.avail_in||4!==r&&2!==r)||("string"===this.options.to?this.onData(TA.buf2binstring(AA.shrinkBuf(i.output,i.next_out))):this.onData(AA.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==n);return 4===r?(n=OA.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===BA):2!==r||(this.onEnd(BA),i.avail_out=0,!0)},PA.prototype.onData=function(t){this.chunks.push(t)},PA.prototype.onEnd=function(t){t===BA&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=AA.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},SE.Deflate=PA,SE.deflate=NA,SE.deflateRaw=function(t,e){return(e=e||{}).raw=!0,NA(t,e)},SE.gzip=function(t,e){return(e=e||{}).gzip=!0,NA(t,e)};var jA={},DA=en,FA=I,UA=qt,KA=at,GA=function(){var t=DA(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},ZA=RegExp.prototype,HA=at,WA=function(t){var e=t.flags;return void 0!==e||"flags"in ZA||UA(t,"flags")||!KA(ZA,t)?e:FA(GA,t)},VA=RegExp.prototype,YA=e((function(t){return t===VA||HA(VA,t)?WA(t):t.flags})),JA={},XA=kE,qA=15,QA=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],$A=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],tT=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],eT=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],nT=kE,rT=wO,iT=xO,oT=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,v,_,g,y,m,b,w,k,S,x,E,O;n=t.state,r=t.next_in,E=t.input,i=r+(t.avail_in-5),o=t.next_out,O=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=n.dmax,c=n.wsize,l=n.whave,f=n.wnext,h=n.window,d=n.hold,p=n.bits,v=n.lencode,_=n.distcode,g=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;t:do{p<15&&(d+=E[r++]<<p,p+=8,d+=E[r++]<<p,p+=8),m=v[d&g];e:for(;;){if(d>>>=b=m>>>24,p-=b,0===(b=m>>>16&255))O[o++]=65535&m;else{if(!(16&b)){if(0==(64&b)){m=v[(65535&m)+(d&(1<<b)-1)];continue e}if(32&b){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}w=65535&m,(b&=15)&&(p<b&&(d+=E[r++]<<p,p+=8),w+=d&(1<<b)-1,d>>>=b,p-=b),p<15&&(d+=E[r++]<<p,p+=8,d+=E[r++]<<p,p+=8),m=_[d&y];n:for(;;){if(d>>>=b=m>>>24,p-=b,!(16&(b=m>>>16&255))){if(0==(64&b)){m=_[(65535&m)+(d&(1<<b)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(k=65535&m,p<(b&=15)&&(d+=E[r++]<<p,(p+=8)<b&&(d+=E[r++]<<p,p+=8)),(k+=d&(1<<b)-1)>u){t.msg="invalid distance too far back",n.mode=30;break t}if(d>>>=b,p-=b,k>(b=o-a)){if((b=k-b)>l&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(S=0,x=h,0===f){if(S+=c-b,b<w){w-=b;do{O[o++]=h[S++]}while(--b);S=o-k,x=O}}else if(f<b){if(S+=c+f-b,(b-=f)<w){w-=b;do{O[o++]=h[S++]}while(--b);if(S=0,f<w){w-=b=f;do{O[o++]=h[S++]}while(--b);S=o-k,x=O}}}else if(S+=f-b,b<w){w-=b;do{O[o++]=h[S++]}while(--b);S=o-k,x=O}for(;w>2;)O[o++]=x[S++],O[o++]=x[S++],O[o++]=x[S++],w-=3;w&&(O[o++]=x[S++],w>1&&(O[o++]=x[S++]))}else{S=o-k;do{O[o++]=O[S++],O[o++]=O[S++],O[o++]=O[S++],w-=3}while(w>2);w&&(O[o++]=O[S++],w>1&&(O[o++]=O[S++]))}break}}break}}while(r<i&&o<s);r-=w=p>>3,d&=(1<<(p-=w<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=d,n.bits=p},aT=function(t,e,n,r,i,o,a,s){var u,c,l,f,h,d,p,v,_,g=s.bits,y=0,m=0,b=0,w=0,k=0,S=0,x=0,E=0,O=0,A=0,T=null,C=0,R=new XA.Buf16(16),I=new XA.Buf16(16),B=null,L=0;for(y=0;y<=qA;y++)R[y]=0;for(m=0;m<r;m++)R[e[n+m]]++;for(k=g,w=qA;w>=1&&0===R[w];w--);if(k>w&&(k=w),0===w)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(b=1;b<w&&0===R[b];b++);for(k<b&&(k=b),E=1,y=1;y<=qA;y++)if(E<<=1,(E-=R[y])<0)return-1;if(E>0&&(0===t||1!==w))return-1;for(I[1]=0,y=1;y<qA;y++)I[y+1]=I[y]+R[y];for(m=0;m<r;m++)0!==e[n+m]&&(a[I[e[n+m]]++]=m);if(0===t?(T=B=a,d=19):1===t?(T=QA,C-=257,B=$A,L-=257,d=256):(T=tT,B=eT,d=-1),A=0,m=0,y=b,h=o,S=k,x=0,l=-1,f=(O=1<<k)-1,1===t&&O>852||2===t&&O>592)return 1;for(;;){p=y-x,a[m]<d?(v=0,_=a[m]):a[m]>d?(v=B[L+a[m]],_=T[C+a[m]]):(v=96,_=0),u=1<<y-x,b=c=1<<S;do{i[h+(A>>x)+(c-=u)]=p<<24|v<<16|_|0}while(0!==c);for(u=1<<y-1;A&u;)u>>=1;if(0!==u?(A&=u-1,A+=u):A=0,m++,0==--R[y]){if(y===w)break;y=e[n+a[m]]}if(y>k&&(A&f)!==l){for(0===x&&(x=k),h+=b,E=1<<(S=y-x);S+x<w&&!((E-=R[S+x])<=0);)S++,E<<=1;if(O+=1<<S,1===t&&O>852||2===t&&O>592)return 1;i[l=A&f]=k<<24|S<<16|h-o|0}}return 0!==A&&(i[h+A]=y-x<<24|64<<16|0),s.bits=k,0},sT=1,uT=2,cT=0,lT=-2,fT=1,hT=12,dT=30,pT=852,vT=592;function _T(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function gT(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new nT.Buf16(320),this.work=new nT.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function yT(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=fT,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new nT.Buf32(pT),e.distcode=e.distdyn=new nT.Buf32(vT),e.sane=1,e.back=-1,cT):lT}function mT(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,yT(t)):lT}function bT(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?lT:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,mT(t))):lT}function wT(t,e){var n,r;return t?(r=new gT,t.state=r,r.window=null,(n=bT(t,e))!==cT&&(t.state=null),n):lT}var kT,ST,xT=!0;function ET(t){if(xT){var e;for(kT=new nT.Buf32(512),ST=new nT.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(aT(sT,t.lens,0,288,kT,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;aT(uT,t.lens,0,32,ST,0,t.work,{bits:5}),xT=!1}t.lencode=kT,t.lenbits=9,t.distcode=ST,t.distbits=5}function OT(t,e,n,r){var i,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new nT.Buf8(o.wsize)),r>=o.wsize?(nT.arraySet(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>r&&(i=r),nT.arraySet(o.window,e,n-r,i,o.wnext),(r-=i)?(nT.arraySet(o.window,e,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}JA.inflateReset=mT,JA.inflateReset2=bT,JA.inflateResetKeep=yT,JA.inflateInit=function(t){return wT(t,15)},JA.inflateInit2=wT,JA.inflate=function(t,e){var n,r,i,o,a,s,u,c,l,f,h,d,p,v,_,g,y,m,b,w,k,S,x,E,O=0,A=new nT.Buf8(4),T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return lT;(n=t.state).mode===hT&&(n.mode=13),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,r=t.input,s=t.avail_in,c=n.hold,l=n.bits,f=s,h=u,S=cT;t:for(;;)switch(n.mode){case fT:if(0===n.wrap){n.mode=13;break}for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(2&n.wrap&&35615===c){n.check=0,A[0]=255&c,A[1]=c>>>8&255,n.check=iT(n.check,A,2,0),c=0,l=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg="incorrect header check",n.mode=dT;break}if(8!=(15&c)){t.msg="unknown compression method",n.mode=dT;break}if(l-=4,k=8+(15&(c>>>=4)),0===n.wbits)n.wbits=k;else if(k>n.wbits){t.msg="invalid window size",n.mode=dT;break}n.dmax=1<<k,t.adler=n.check=1,n.mode=512&c?10:hT,c=0,l=0;break;case 2:for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(n.flags=c,8!=(255&YA(n))){t.msg="unknown compression method",n.mode=dT;break}if(57344&YA(n)){t.msg="unknown header flags set",n.mode=dT;break}n.head&&(n.head.text=c>>8&1),512&YA(n)&&(A[0]=255&c,A[1]=c>>>8&255,n.check=iT(n.check,A,2,0)),c=0,l=0,n.mode=3;case 3:for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.head&&(n.head.time=c),512&YA(n)&&(A[0]=255&c,A[1]=c>>>8&255,A[2]=c>>>16&255,A[3]=c>>>24&255,n.check=iT(n.check,A,4,0)),c=0,l=0,n.mode=4;case 4:for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&YA(n)&&(A[0]=255&c,A[1]=c>>>8&255,n.check=iT(n.check,A,2,0)),c=0,l=0,n.mode=5;case 5:if(1024&YA(n)){for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.length=c,n.head&&(n.head.extra_len=c),512&YA(n)&&(A[0]=255&c,A[1]=c>>>8&255,n.check=iT(n.check,A,2,0)),c=0,l=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&YA(n)&&((d=n.length)>s&&(d=s),d&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),nT.arraySet(n.head.extra,r,o,d,k)),512&YA(n)&&(n.check=iT(n.check,r,d,o)),s-=d,o+=d,n.length-=d),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&YA(n)){if(0===s)break t;d=0;do{k=r[o+d++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k))}while(k&&d<s);if(512&YA(n)&&(n.check=iT(n.check,r,d,o)),s-=d,o+=d,k)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&YA(n)){if(0===s)break t;d=0;do{k=r[o+d++],n.head&&k&&n.length<65536&&(n.head.comment+=String.fromCharCode(k))}while(k&&d<s);if(512&YA(n)&&(n.check=iT(n.check,r,d,o)),s-=d,o+=d,k)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&YA(n)){for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(c!==(65535&n.check)){t.msg="header crc mismatch",n.mode=dT;break}c=0,l=0}n.head&&(n.head.hcrc=YA(n)>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=hT;break;case 10:for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}t.adler=n.check=_T(c),c=0,l=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=c,n.bits=l,2;t.adler=n.check=1,n.mode=hT;case hT:if(5===e||6===e)break t;case 13:if(n.last){c>>>=7&l,l-=7&l,n.mode=27;break}for(;l<3;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}switch(n.last=1&c,l-=1,3&(c>>>=1)){case 0:n.mode=14;break;case 1:if(ET(n),n.mode=20,6===e){c>>>=2,l-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=dT}c>>>=2,l-=2;break;case 14:for(c>>>=7&l,l-=7&l;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if((65535&c)!=(c>>>16^65535)){t.msg="invalid stored block lengths",n.mode=dT;break}if(n.length=65535&c,c=0,l=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(d=n.length){if(d>s&&(d=s),d>u&&(d=u),0===d)break t;nT.arraySet(i,r,o,d,a),s-=d,o+=d,u-=d,a+=d,n.length-=d;break}n.mode=hT;break;case 17:for(;l<14;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(n.nlen=257+(31&c),c>>>=5,l-=5,n.ndist=1+(31&c),c>>>=5,l-=5,n.ncode=4+(15&c),c>>>=4,l-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=dT;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;l<3;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.lens[T[n.have++]]=7&c,c>>>=3,l-=3}for(;n.have<19;)n.lens[T[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,x={bits:n.lenbits},S=aT(0,n.lens,0,19,n.lencode,0,n.work,x),n.lenbits=x.bits,S){t.msg="invalid code lengths set",n.mode=dT;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;g=(O=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,y=65535&O,!((_=O>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(y<16)c>>>=_,l-=_,n.lens[n.have++]=y;else{if(16===y){for(E=_+2;l<E;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(c>>>=_,l-=_,0===n.have){t.msg="invalid bit length repeat",n.mode=dT;break}k=n.lens[n.have-1],d=3+(3&c),c>>>=2,l-=2}else if(17===y){for(E=_+3;l<E;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}l-=_,k=0,d=3+(7&(c>>>=_)),c>>>=3,l-=3}else{for(E=_+7;l<E;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}l-=_,k=0,d=11+(127&(c>>>=_)),c>>>=7,l-=7}if(n.have+d>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=dT;break}for(;d--;)n.lens[n.have++]=k}}if(n.mode===dT)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=dT;break}if(n.lenbits=9,x={bits:n.lenbits},S=aT(sT,n.lens,0,n.nlen,n.lencode,0,n.work,x),n.lenbits=x.bits,S){t.msg="invalid literal/lengths set",n.mode=dT;break}if(n.distbits=6,n.distcode=n.distdyn,x={bits:n.distbits},S=aT(uT,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,x),n.distbits=x.bits,S){t.msg="invalid distances set",n.mode=dT;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(s>=6&&u>=258){t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=c,n.bits=l,oT(t,h),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,r=t.input,s=t.avail_in,c=n.hold,l=n.bits,n.mode===hT&&(n.back=-1);break}for(n.back=0;g=(O=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,y=65535&O,!((_=O>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(g&&0==(240&g)){for(m=_,b=g,w=y;g=(O=n.lencode[w+((c&(1<<m+b)-1)>>m)])>>>16&255,y=65535&O,!(m+(_=O>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}c>>>=m,l-=m,n.back+=m}if(c>>>=_,l-=_,n.back+=_,n.length=y,0===g){n.mode=26;break}if(32&g){n.back=-1,n.mode=hT;break}if(64&g){t.msg="invalid literal/length code",n.mode=dT;break}n.extra=15&g,n.mode=22;case 22:if(n.extra){for(E=n.extra;l<E;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,l-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;g=(O=n.distcode[c&(1<<n.distbits)-1])>>>16&255,y=65535&O,!((_=O>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(0==(240&g)){for(m=_,b=g,w=y;g=(O=n.distcode[w+((c&(1<<m+b)-1)>>m)])>>>16&255,y=65535&O,!(m+(_=O>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}c>>>=m,l-=m,n.back+=m}if(c>>>=_,l-=_,n.back+=_,64&g){t.msg="invalid distance code",n.mode=dT;break}n.offset=y,n.extra=15&g,n.mode=24;case 24:if(n.extra){for(E=n.extra;l<E;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,l-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=dT;break}n.mode=25;case 25:if(0===u)break t;if(d=h-u,n.offset>d){if((d=n.offset-d)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=dT;break}d>n.wnext?(d-=n.wnext,p=n.wsize-d):p=n.wnext-d,d>n.length&&(d=n.length),v=n.window}else v=i,p=a-n.offset,d=n.length;d>u&&(d=u),u-=d,n.length-=d;do{i[a++]=v[p++]}while(--d);0===n.length&&(n.mode=21);break;case 26:if(0===u)break t;i[a++]=n.length,u--,n.mode=21;break;case 27:if(n.wrap){for(;l<32;){if(0===s)break t;s--,c|=r[o++]<<l,l+=8}if(h-=u,t.total_out+=h,n.total+=h,h&&(t.adler=n.check=YA(n)?iT(n.check,i,h,a-h):rT(n.check,i,h,a-h)),h=u,(YA(n)?c:_T(c))!==n.check){t.msg="incorrect data check",n.mode=dT;break}c=0,l=0}n.mode=28;case 28:if(n.wrap&&YA(n)){for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(c!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=dT;break}c=0,l=0}n.mode=29;case 29:S=1;break t;case dT:S=-3;break t;case 31:return-4;default:return lT}return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=c,n.bits=l,(n.wsize||h!==t.avail_out&&n.mode<dT&&(n.mode<27||4!==e))&&OT(t,t.output,t.next_out,h-t.avail_out),f-=t.avail_in,h-=t.avail_out,t.total_in+=f,t.total_out+=h,n.total+=h,n.wrap&&h&&(t.adler=n.check=YA(n)?iT(n.check,i,h,t.next_out-h):rT(n.check,i,h,t.next_out-h)),t.data_type=n.bits+(n.last?64:0)+(n.mode===hT?128:0)+(20===n.mode||15===n.mode?256:0),(0===f&&0===h||4===e)&&S===cT&&(S=-5),S},JA.inflateEnd=function(t){if(!t||!t.state)return lT;var e=t.state;return e.window&&(e.window=null),t.state=null,cT},JA.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?lT:(n.head=e,e.done=!1,cT):lT},JA.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?lT:11===n.mode&&rT(1,e,r,0)!==n.check?-3:OT(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,cT):lT},JA.inflateInfo="pako inflate (from Nodeca project)";var AT={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};var TT=JA,CT=kE,RT=yA,IT=AT,BT=EO,LT=EA,MT=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},zT=Object.prototype.toString;function PT(t){if(!(this instanceof PT))return new PT(t);this.options=CT.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new LT,this.strm.avail_out=0;var n=TT.inflateInit2(this.strm,e.windowBits);if(n!==IT.Z_OK)throw new Error(BT[n]);if(this.header=new MT,TT.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=RT.string2buf(e.dictionary):"[object ArrayBuffer]"===zT.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=TT.inflateSetDictionary(this.strm,e.dictionary))!==IT.Z_OK))throw new Error(BT[n])}function NT(t,e){var n=new PT(e);if(n.push(t,!0),n.err)throw n.msg||BT[n.err];return n.result}PT.prototype.push=function(t,e){var n,r,i,o,a,s=this.strm,u=this.options.chunkSize,c=this.options.dictionary,l=!1;if(this.ended)return!1;r=e===~~e?e:!0===e?IT.Z_FINISH:IT.Z_NO_FLUSH,"string"==typeof t?s.input=RT.binstring2buf(t):"[object ArrayBuffer]"===zT.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new CT.Buf8(u),s.next_out=0,s.avail_out=u),(n=TT.inflate(s,IT.Z_NO_FLUSH))===IT.Z_NEED_DICT&&c&&(n=TT.inflateSetDictionary(this.strm,c)),n===IT.Z_BUF_ERROR&&!0===l&&(n=IT.Z_OK,l=!1),n!==IT.Z_STREAM_END&&n!==IT.Z_OK)return this.onEnd(n),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&n!==IT.Z_STREAM_END&&(0!==s.avail_in||r!==IT.Z_FINISH&&r!==IT.Z_SYNC_FLUSH)||("string"===this.options.to?(i=RT.utf8border(s.output,s.next_out),o=s.next_out-i,a=RT.buf2string(s.output,i),s.next_out=o,s.avail_out=u-o,o&&CT.arraySet(s.output,s.output,i,o,0),this.onData(a)):this.onData(CT.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(l=!0)}while((s.avail_in>0||0===s.avail_out)&&n!==IT.Z_STREAM_END);return n===IT.Z_STREAM_END&&(r=IT.Z_FINISH),r===IT.Z_FINISH?(n=TT.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===IT.Z_OK):r!==IT.Z_SYNC_FLUSH||(this.onEnd(IT.Z_OK),s.avail_out=0,!0)},PT.prototype.onData=function(t){this.chunks.push(t)},PT.prototype.onEnd=function(t){t===IT.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=CT.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},jA.Inflate=PT,jA.inflate=NT,jA.inflateRaw=function(t,e){return(e=e||{}).raw=!0,NT(t,e)},jA.ungzip=NT;var jT={};(0,kE.assign)(jT,SE,jA,AT);var DT=e(jT),FT=e(tt.setInterval),UT=1,KT=function(){function t(e){rg(this,t),Wg(this,"lockingPromise",cy.resolve()),Wg(this,"locks",0),Wg(this,"name",""),Wg(this,"lockId",void 0),this.lockId=UT++,e&&(this.name=e)}return sg(t,[{key:"isLocked",get:function(){return this.locks>0}},{key:"lock",value:function(){var t,e=this;this.locks+=1;var n=new cy((function(n){t=function(){e.locks-=1,n()}})),r=this.lockingPromise.then((function(){return t}));return this.lockingPromise=this.lockingPromise.then((function(){return n})),r}}]),t}(),GT="__rtc_umd_name__",ZT=function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},HT=function(){function t(e){rg(this,t),Wg(this,"storeName",void 0),Wg(this,"pendingList",[]),this.storeName=e,!Vk()&&ZT()&&this._checkAndCreateStore(e)}var e,n,r,i,o,a,s;return sg(t,[{key:"_checkAndCreateStore",value:(s=ng(tg().mark((function e(n,r){var i,o,a=this;return tg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._promiseLock.lock();case 2:if(i=e.sent,!ZT.databases){e.next=6;break}return e.next=6,new cy((function(t){var e=function(){return ZT.databases().finally(t)};o=FT(e,100),e()})).finally((function(){return clearInterval(o)}));case 6:return e.abrupt("return",new cy((function(e){t.db&&(t.db.close(),delete t.db);var o=r?ZT().open(GT,r):ZT().open(GT);o.onupgradeneeded=function(){o.result.createObjectStore(n)},o.onerror=function(){console.error("IndexedDBInterface error",o.error)},o.onsuccess=function(){var r=o.result;t.db=r;try{var s;t.db.transaction(a.storeName,"readonly"),Vg(s=a.pendingList).call(s,function(){var t=ng(tg().mark((function t(e){var n,r,i,o;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.txMode,r=e.pendResolve,i=e.pendReject,t.prev=1,t.next=4,a._getStore(n);case 4:o=t.sent,r(o),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),i();case 11:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e){return t.apply(this,arguments)}}()),e()}catch(u){e(a._checkAndCreateStore(n,r.version+1))}finally{i()}}})));case 7:case"end":return e.stop()}}),e)}))),function(t,e){return s.apply(this,arguments)})},{key:"_getStore",value:(a=ng(tg().mark((function e(n){var r,i=this;return tg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._promiseLock.lock();case 2:return r=e.sent,e.abrupt("return",new cy((function(e,o){if(!t.db)return i.pendingList.push({txMode:n,pendResolve:e,pendReject:o}),void r();try{e(t.db.transaction(i.storeName,n).objectStore(i.storeName))}catch(a){return void i.pendingList.push({txMode:n,pendResolve:e,pendReject:o})}finally{r()}})));case 4:case"end":return e.stop()}}),e)}))),function(t){return a.apply(this,arguments)})},{key:"put2String",value:(o=ng(tg().mark((function t(e,n){var r;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{r=Dk(e)}catch(i){r=e}return t.next=3,this.put(r,n);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e){return o.apply(this,arguments)})},{key:"get4String",value:(i=ng(tg().mark((function t(e){var n,r;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.get(e);case 2:n=t.sent;try{r=JSON.parse(n)}catch(i){r=n}return t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"put",value:(r=ng(tg().mark((function t(e,n){var r;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._getStore("readwrite");case 2:return r=t.sent,t.abrupt("return",new cy((function(t,i){var o=r.put(e,n);o.onsuccess=function(){t()},o.onerror=function(t){i(t)}})));case 4:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"get",value:(n=ng(tg().mark((function t(e){var n;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._getStore("readonly");case 2:return n=t.sent,t.abrupt("return",new cy((function(t,r){var i=n.get(e);i.onsuccess=function(){t(i.result)},i.onerror=function(t){r(t)}})));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"del",value:(e=ng(tg().mark((function t(e){var n;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._getStore("readwrite");case 2:return n=t.sent,t.abrupt("return",new cy((function(t,r){var i=n.delete(e);i.onsuccess=function(){t()},i.onerror=function(t){r(t)}})));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),t}();function WT(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=qg(t);for(r=0;r<o.length;r++)n=o[r],ox(e).call(e,n)>=0||(i[n]=t[n]);return i}(t,e);if(Py){var o=Py(t);for(r=0;r<o.length;r++)n=o[r],ox(e).call(e,n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}Wg(HT,"db",void 0),Wg(HT,"state","init"),Wg(HT,"_promiseLock",new KT("iDB"));var VT=["message"];var YT,JT,XT,qT=new(function(){function t(){rg(this,t),Wg(this,"name","LongStringReportor"),Wg(this,"inBuffer",[]),Wg(this,"outBuffer",[])}return sg(t,[{key:"push",value:function(t){var e;t.message&&this.inBuffer.push(Lx(Lx({},t),{},{message:{id:My(e=Wk()).call(e,0,3),index:0,end:!0,msg:t.message}}))}},{key:"splice",value:function(t){for(var e=[],n=0;this.outBuffer.length;){var r=Dk(this.outBuffer[0]).length;if(!(r<t))break;t-=r,n+=r,e.push(this.outBuffer.shift())}for(;this.inBuffer[0]&&t>0;){var i=this.inBuffer[0],o=i.message,a=Lx(Lx({},WT(i,VT)),{},{message:Lx(Lx({},o),{},{msg:""})}),s=Dk(a).length,u=t-s,c=Lx({},a);if(u>o.msg.length)c.message.msg=o.msg,this.inBuffer.shift();else{if(!(u>=10))break;var l,f,h=My(l=o.msg).call(l,0,u);c.message.msg=h,c.message.end=!1,this.inBuffer[0].message.msg=My(f=o.msg).call(f,u),this.inBuffer[0].message.index++}var d=Dk(c.message),p=d.length;t-=p+s,n+=p+s,e.push(Lx(Lx({},c),{},{message:d}))}return{payload:e,payloadSize:n}}},{key:"unshift",value:function(t){this.outBuffer=By(t).call(t,this.outBuffer)}},{key:"get",value:function(){var t,e;return By(t=[]).call(t,AS(this.outBuffer),AS(aS(e=this.inBuffer).call(e,(function(t){return Lx(Lx({},t),{},{message:Dk(t.message)})}))))}},{key:"set",value:function(t){var e=this,n=[],r=[];Vg(t).call(t,(function(t){!function(t){return void 0!==t.report_id}(t)?(t.message||(t.message=""),e.inBuffer.push(Lx(Lx({},t),{},{message:JSON.parse(t.message)}))):e.outBuffer.push(t)})),this.outBuffer=By(n).call(n,this.outBuffer),this.inBuffer=By(r).call(r,this.inBuffer)}},{key:"isEmpty",value:function(){return 0===this.inBuffer.length&&0===this.outBuffer.length}}]),t}()),QT={product_line:"rtc",report_version:"5",os:"web",user_agent:Vk()?"":null===(YT=navigator)||void 0===YT?void 0:YT.userAgent,platform:"web",product:"webrtc",app_state:"active"},$T="LogReportor",tC="undefined"!=typeof window&&(Mk(JT=window.location.search).call(JT,"_rtc_debug_")||(null===(XT=window.localStorage)||void 0===XT?void 0:XT.getItem("_rtc_debug_"))),eC=function(){function t(e){rg(this,t),Wg(this,"_buffer",void 0),this._buffer=new HT(e)}var e,n;return sg(t,[{key:"set",value:(n=ng(tg().mark((function t(e,n){return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._buffer.put2String(e,n);case 2:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"get",value:(e=ng(tg().mark((function t(e){var n,r;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],t.prev=1,t.next=4,this._buffer.get4String(e);case 4:r=t.sent,t.next=9;break;case 7:t.prev=7,t.t0=t.catch(1);case 9:return t.abrupt("return",null!==(n=r)&&void 0!==n?n:[]);case 10:case"end":return t.stop()}}),t,this,[[1,7]])}))),function(t){return e.apply(this,arguments)})}]),t}(),nC=function(){function t(){var e=this;rg(this,t),Wg(this,"reportCommon",QT),Wg(this,"reportIds",new Zw),Wg(this,"dataBuffer",[]),Wg(this,"reportorList",[]),Wg(this,"dbBuffer",void 0),Wg(this,"posting",!1),Wg(this,"sucSendTimer",void 0),Wg(this,"preSucTime",0),Wg(this,"errSendTimer",void 0),Wg(this,"errSendDelay",100),Wg(this,"_logServerUrl",void 0),Wg(this,"_retryCount",0),Wg(this,"_reportLimit",5e5),Wg(this,"_disableTimeout",!1),Vk()||(window.addEventListener("beforeunload",(function(){clearTimeout(e.errSendTimer),clearTimeout(e.sucSendTimer),e.send(void 0,!0)})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?e.setCommonStats({app_state:"active"}):"hidden"===document.visibilityState&&e.setCommonStats({app_state:"background"})})),tC&&(window.__rtc_debug_reportor__=this)),lx.on("UPLOAD_REPORT_LIMIT",(function(t){e.setReportLimit(t)})),lx.on("ENABLE_REPORT_IDB_BUFFER",(function(t){t&&e.enableIndexedDBBuffer()})),Ay((function(){e.reportorList.push(gC),e.reportorList.push(qT)}))}var e;return sg(t,[{key:"setUrl",value:function(t){this._logServerUrl=t}},{key:"setCommonStats",value:function(t){this.reportCommon=Yx(this.reportCommon,t)}},{key:"getCommonStats",value:function(){return this.reportCommon}},{key:"setReportLimit",value:function(t){this._reportLimit=Math.max(t,5e4),this._reportLimit=Math.min(t,5e5)}},{key:"getReportId",value:function(t){var e;t=null!==(e=t)&&void 0!==e?e:"__global__",this.reportIds.has(t)||this.reportIds.set(t,0);var n=this.reportIds.get(t);return void 0===n&&(uC("no reportId in reportId map with engine-session-id ".concat(t),0,{}),n=0),this.reportIds.set(t,n+1),n}},{key:"push",value:function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])this.send(t);else{var e,n=null!==(e=t.engine_session_id)&&void 0!==e?e:"__global__";this.reportIds.has(n)||this.reportIds.set(n,0),this.dataBuffer.push(t),!this.posting&&!this.errSendTimer&&ok()-this.preSucTime>2e3&&(clearTimeout(this.sucSendTimer),this.send())}}},{key:"enableIndexedDBBuffer",value:function(){var t,e=this;this.dbBuffer||(this.dbBuffer=new eC("ReportorDBBuffer"),this.dbBuffer.get($T).then((function(t){Vg(t).call(t,(function(t){e.push(t)}))})),Vg(t=this.reportorList).call(t,(function(t){var n;null===(n=e.dbBuffer)||void 0===n||n.get(t.name).then((function(e){t.set(e)}))})))}},{key:"backup",value:function(){var t=this;try{var e,n;null===(e=this.dbBuffer)||void 0===e||e.set(AS(this.dataBuffer),$T),Vg(n=this.reportorList).call(n,(function(e){var n;null===(n=t.dbBuffer)||void 0===n||n.set(AS(e.get()),e.name)}))}catch(r){uC("Error when save log into IDB",-1,r)}}},{key:"unshift",value:function(t){var e,n;this.dataBuffer=By(e=t[0]).call(e,this.dataBuffer),Vg(n=this.reportorList).call(n,(function(e,n){var r;e.unshift(null!==(r=t[n+1])&&void 0!==r?r:[])}))}},{key:"_splice",value:function(){var t,e,n=this,r=function(t,e){for(var n=0,r=0;r<t.length;r++)if((n+=Dk(t[r]).length)>e)return r;return t.length}(this.dataBuffer,this._reportLimit);0===r&&this.dataBuffer.length>0&&(this._reportLimit=Dk(this.dataBuffer[0]).length+10,r=1,uC("update report limit to ".concat(this._reportLimit),0,null));var i=VS(t=this.dataBuffer).call(t,0,r),o=Dk(i).length,a=[i],s=this._reportLimit-o;return Vg(e=this.reportorList).call(e,(function(t){var e=VS(t).call(t,s),r=e.payload,i=e.payloadSize;Vg(r).call(r,(function(t){var e,r,i;void 0===t.report_id&&(t.report_id=n.getReportId(t.engine_session_id),!Vk()&&window.__onRTCReport&&(null===(e=(r=window).__onRTCReport)||void 0===e||e.call(r,null!==(i=t.engine_session_id)&&void 0!==i?i:"global",t,n.getCommonStats())))})),a.push(r),s-=i})),a}},{key:"send",value:(e=ng(tg().mark((function t(e,n){var r,i,o,a,s,u,c,l,f,h;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.backup(),i=aE(r=this.reportorList).call(r,(function(t,e){return t&&e.isEmpty()}),!0),(e||this.dataBuffer.length||!i)&&this._logServerUrl){t.next=4;break}return t.abrupt("return");case 4:if(e||(this.posting=!0),o=[],e||(o=this._splice()),a=tC,s={data:e||wE(o).call(o),header:Lx(Lx({},this.reportCommon),{},{http_retry_count:this._retryCount}),from:"web",os:"web",version:"1"},u={method:"POST",body:a?Dk(s):DT.gzip(Dk(s))},!this._disableTimeout)try{c=new AbortController,u.signal=c.signal,Ay((function(){c.abort()}),1e4)}catch(d){console.warn("AbortController is not supported"),this._disableTimeout=!0}return a||(u.headers={"Content-Encoding":"gzip","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}),h=null,t.prev=13,t.next=16,fetch(this._logServerUrl,u);case 16:if(200!==(l=t.sent).status&&304!==l.status){t.next=23;break}return t.t0=JSON,t.next=21,l.text();case 21:t.t1=t.sent,h=t.t0.parse.call(t.t0,t.t1);case 23:t.next=28;break;case 25:t.prev=25,t.t2=t.catch(13),f=t.t2;case 28:e||(this.posting=!1),h&&0===h.StatusCode?e||n||this.sucSend():(Ay((function(){var t,e,n,r;uC(By(t="reportor post error, resJSON:".concat(null===(e=h)||void 0===e?void 0:e.toString()," err:")).call(t,f),null!==(n=null===(r=l)||void 0===r?void 0:r.status)&&void 0!==n?n:-1,f)}),0),e?this.send(e):(this.unshift(o),n?this.send():this.errSend()));case 30:case"end":return t.stop()}}),t,this,[[13,25]])}))),function(t,n){return e.apply(this,arguments)})},{key:"sucSend",value:function(){var t;this.errSendDelay=100,this._retryCount=0,this.preSucTime=ok(),this.sucSendTimer=Ay($g(t=this.send).call(t,this),2e3)}},{key:"errSend",value:function(){var t=this;this.errSendTimer=Ay((function(){t.send(),delete t.errSendTimer}),this.errSendDelay),this.errSendDelay*=2,this._retryCount++}}]),t}();var rC,iC=new nC,oC=function(){function t(e){rg(this,t),Wg(this,"modifyIds",{}),this.id=e}return sg(t,[{key:"report",value:function(t,e){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Lx(Lx(Lx({event_key:t,rtc_timestamp:ok()},this.modifyIds),e),{},{common_extra_info:Dk(i),report_id:iC.getReportId(this.modifyIds.engine_session_id)});!Vk()&&window.__onRTCReport&&(null===(n=(r=window).__onRTCReport)||void 0===n||n.call(r,this.modifyIds.engine_session_id,o,iC.getCommonStats()));iC.push(o)}},{key:"reportLog",value:function(t){var e=Lx(Lx({event_key:"rtc_invoke_status",sdk_api_name:"console_log",rtc_timestamp:ok()},this.modifyIds),{},{message:t});gC.push(e)}},{key:"reportLongString",value:function(t,e){var n=Lx(Lx({event_key:"rtc_invoke_status",sdk_api_name:"sdk_long_string_".concat(t),rtc_timestamp:ok()},this.modifyIds),{},{message:e});qT.push(n)}},{key:"set",value:function(t){this.modifyIds=Yx(this.modifyIds,t)}},{key:"destroy",value:function(){}}]),t}();Ay((function(){rC=new xC("MessageReportor",1)}),0);var aC=function(){function t(e){rg(this,t),Wg(this,"_preTime",ok()),Wg(this,"_one2oneNum",0),Wg(this,"_one2manyNum",0),Wg(this,"_one2oneMsgCache",new Zw),Wg(this,"_one2manyMsgCache",new Zw),Wg(this,"roomId",""),Wg(this,"userId",""),Wg(this,"rtsSessionId",""),this.id=e}return sg(t,[{key:"needReport",value:function(e){return!!t.config&&(ok()-this._preTime>=36e5&&(this._preTime=ok(),this._one2oneNum=0,this._one2manyNum=0),"one2one"===e&&this._one2oneNum<t.config.max_one2one_fpt_per_hour&&Math.random()<=t.config.one2one_fpt_ratio/100||"one2many"===e&&this._one2manyNum<t.config.max_one2many_fpt_per_hour&&Math.random()<=t.config.one2many_fpt_ratio/100)}},{key:"cacheP2PMsg",value:function(e){var n;this._one2oneMsgCache.set(e.msg_id,Lx({config_version:(null===(n=t.config)||void 0===n?void 0:n.version)||""},e))}},{key:"updateP2PMsg",value:function(t,e){var n=this._one2oneMsgCache.get(t);n&&this._one2oneMsgCache.set(t,Lx(Lx({},n),e))}},{key:"cacheCustomMsg",value:function(e){var n;this._one2manyMsgCache.set(e.msg_id,Lx({config_version:(null===(n=t.config)||void 0===n?void 0:n.version)||""},e))}},{key:"updateOne2ManyMsg",value:function(t,e){var n=this._one2manyMsgCache.get(t);n&&this._one2manyMsgCache.set(t,Lx(Lx({},n),e))}},{key:"reportP2PMsg",value:function(t){var e,n=this._one2oneMsgCache.get(t);n&&(rC.info("reportP2PMsg",n.type,Dk(n)),null===(e=fC(this.id))||void 0===e||e.report("rts_message",n))}},{key:"reportOne2ManyMsg",value:function(t){var e,n=this._one2manyMsgCache.get(t);n&&(rC.info("reportOne2ManyMsg",n.type,Dk(n)),null===(e=fC(this.id))||void 0===e||e.report("rts_message",n))}},{key:"reportMsgRecv",value:function(e){var n,r;e.config_version=(null===(n=t.config)||void 0===n?void 0:n.version)||"",rC.info("reportMsgRecv",e.type,Dk(e)),null===(r=fC(this.id))||void 0===r||r.report("rts_message",e)}},{key:"destroy",value:function(){this._one2manyNum=0,this._one2oneNum=0,this._one2manyMsgCache.clear(),this._one2oneMsgCache.clear(),this._preTime=ok(),this.roomId="",this.userId="",this.rtsSessionId=""}}]),t}();Wg(aC,"config",void 0);var sC=new oC("global"),uC=function(t,e,n){sC.report("rtc_error",{message:t,error_code:e},n)};var cC,lC=new Zw,fC=function(t){return lC.get(t)},hC="undefined"!=typeof window&&Mk(cC=window.location.search).call(cC,"_rtc_upload_console_");function dC(t,e){return aS(t).call(t,(function(t){var n,r,i="";try{if("string"==typeof t)return t;if(void 0===t)return"undefined";if(null===t)return"null";if(t instanceof MediaStreamTrack)return Yk(t);if(t instanceof MediaStream)return null==(r=t)?"undefined | null":"string"==typeof r?r:Dk({id:r.id,active:r.active});if(t instanceof RTCRtpSender)return Jk(t);if(t instanceof RTCRtpReceiver)return Xk(t);if(t instanceof RTCRtpTransceiver)return null==(n=t)?"undefined | null":"string"==typeof n?n:Dk({currentDirection:n.currentDirection,direction:n.direction,mid:n.mid,stopped:n.stopped,receiver:Xk(n.receiver),sender:Jk(n.sender)});i=Dk(t)}catch(o){i=t.toString()}return i&&i.length>=e&&(i=My(i).call(i,0,e)),i})).join(", ")}var pC,vC,_C,gC=new(function(){function t(){var e=this;rg(this,t),Wg(this,"name","ConsoleReportor"),Wg(this,"_uuid","".concat(Math.floor(899*Math.random())+100)),Wg(this,"_consoleReportId",0),Wg(this,"_engineReportIdMap",new Zw),Wg(this,"_enabled","NULL"),Wg(this,"_consoleCutLength",lx.getParameter("UPLOAD_CONSOLE_LENGTH_CUT")),Wg(this,"buffer",[]),hC&&Ay((function(){e.switchOn()}),0),lx.on("UPLOAD_CONSOLE_ON",(function(t){t?e.switchOn():e.turnOff()})),lx.on("UPLOAD_CONSOLE_LENGTH_CUT",(function(t){e._consoleCutLength=t}))}return sg(t,[{key:"enabled",get:function(){return"OFF"!==this._enabled}},{key:"switchOn",value:function(){"NULL"===this._enabled&&(console.log("[LoggerReportor.constructor] console upload switch ON"),this._enabled="ON")}},{key:"turnOff",value:function(){"NULL"===this._enabled&&(console.log("[LoggerReportor.constructor] console upload switch OFF"),this._enabled="OFF",this.buffer=[])}},{key:"getEngineConsoleId",value:function(t){var e,n=null!==(e=this._engineReportIdMap.get(t))&&void 0!==e?e:0;return this._engineReportIdMap.set(t,n+1),n}},{key:"report",value:function(t,e,n,r,i,o,a,s,u){var c,l,f,h,d,p,v,_,g,y,m,b=this;if("OFF"!==this._enabled){var w,k=fC(e),S=this._consoleReportId++,x=this.getEngineConsoleId(e),E=dC(u,this._consoleCutLength),O=AS(u),A="".concat(s).replace(/%o|%s/gi,(function(){return dC([O.shift()],b._consoleCutLength)})),T=By(c=By(l=By(f=By(h=By(d=By(p=By(v=By(_=By(g=By(y=By(m="[".concat(this._uuid,"-")).call(m,S,"][")).call(y,e,"-")).call(g,x,"]-")).call(_,n,"-")).call(v,t,"[")).call(p,r,"]")).call(d,i,"[")).call(h,o,".")).call(f,a,"] ")).call(l,A," ")).call(c,E);k?k.reportLog(T):(w=T,sC.reportLog(w))}}},{key:"push",value:function(t){"OFF"!==this._enabled&&this.buffer.push(t)}},{key:"splice",value:function(t){var e;if("ON"!==this._enabled)return{payload:[],payloadSize:0};var n=function(t,e){for(var n=0,r=0;r<t.length;r++){var i=Dk(t[r]).length;if((n+=i)>e)return{index:r,size:n-i}}return{index:t.length,size:n}}(this.buffer,t),r=n.index,i=n.size;return{payload:VS(e=this.buffer).call(e,0,r),payloadSize:i}}},{key:"unshift",value:function(t){this.buffer=By(t).call(t,this.buffer)}},{key:"get",value:function(){return this.buffer}},{key:"set",value:function(t){this.buffer=By(t).call(t,this.buffer)}},{key:"isEmpty",value:function(){return"OFF"===this._enabled||0===this.buffer.length}}]),t}()),yC="[VERTC]",mC="#0050b3",bC=(Wg(pC={},"DEBUG","rgba(0, 0, 0, 0)"),Wg(pC," INFO","rgba(93, 173, 226, 0)"),Wg(pC," WARN","rgba(255, 119, 0, 0.3)"),Wg(pC,"ERROR","rgba(255, 0, 0, 0.3)"),Wg(pC," SUCC","rgba(0, 119, 0, 0.3)"),pC),wC="undefined"!=typeof window&&(Mk(vC=window.location.search).call(vC,"_rtc_debug_")||(null===(_C=window.localStorage)||void 0===_C?void 0:_C.getItem("_rtc_debug_"))),kC=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"global";rg(this,t),Wg(this,"indent",void 0),Wg(this,"module",void 0),Wg(this,"_engineId",void 0),this.module=e,this.indent=n,this._engineId=r}return sg(t,[{key:"_print",value:function(t,e){for(var n,r,i,o,a,s,u,c,l=arguments.length,f=new Array(l>2?l-2:0),h=2;h<l;h++)f[h-2]=arguments[h];var d=f.shift();try{var p,v,_,g,y=By(p=[]).call(p,f),m="".concat(d).replace(/%o/gi,(function(){var t=y.shift();return Dk(t)}));tS.set(By(v=By(_=By(g="".concat(yC,"[").concat(this.module,".")).call(g,e,"] ")).call(_,m," ")).call(v,aS(y).call(y,(function(t){return Dk(t)})).join(", ")))}catch(MC){}for(var b="",w=0;w<this.indent;w++)b+=" ";var k=SC();gC.report(yC,this._engineId,k,t,b,this.module,e,d,f),wC&&(n=console).log.apply(n,By(r=[By(i=By(o=By(a=By(s=By(u=By(c="%c".concat(k,"-")).call(c,yC,"%c[")).call(u,t,"]%c")).call(s,b,"[")).call(a,this.module,".")).call(o,e,"] ")).call(i,d),"color:".concat(mC,";"),"background-color:".concat(bC[t],";"),"color:".concat(mC,";")]).call(r,f))}},{key:"print",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this._print.apply(this,By(e=[" INFO",t]).call(e,r))}},{key:"debug",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this._print.apply(this,By(e=["DEBUG",t]).call(e,r))}},{key:"info",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this._print.apply(this,By(e=[" INFO",t]).call(e,r))}},{key:"warn",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this._print.apply(this,By(e=[" WARN",t]).call(e,r))}},{key:"error",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this._print.apply(this,By(e=["ERROR",t]).call(e,r))}},{key:"success",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this._print.apply(this,By(e=[" SUCC",t]).call(e,r))}}]),t}(),SC=function(){var t,e,n=new Date;return By(t="".concat(n.toTimeString().split(" ")[0],":")).call(t,OS(e=n.getMilliseconds().toString()).call(e,3,"0"))},xC=kC,EC=function(t){return t[t.EFFECT_WHITE_MODE=0]="EFFECT_WHITE_MODE",t[t.EFFECT_SMOOTH_MODE=1]="EFFECT_SMOOTH_MODE",t[t.EFFECT_SHARPEN_MODE=2]="EFFECT_SHARPEN_MODE",t}(EC||{}),OC=function(t){return t.BACKGROUND_BLUR="blur",t.BACKGROUND_IMAGE="image",t}(OC||{}),AC=function(t){return t[t.PERFORMANCE=0]="PERFORMANCE",t[t.QUALITY=1]="QUALITY",t}(AC||{}),TC=function(t){return t[t.CPU=-1]="CPU",t[t.GPU=1]="GPU",t}(TC||{}),CC=new xC("RTCBeautyExtension",1),RC="https://webar.volccdn.com/obj/effect-webar-res-bucket/ies/web/webar_sdk/sdk/v2.662.rtc.fix/202303229b38",IC="".concat(RC,"/externals/webar.main.sdk.iife.9b380e37.js");var BC=function(t){Tg(h,t);var e,n,r,i,o,a,s,u,c,l,f=Hg(h);function h(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(rg(this,h),Wg(ug(e=f.call(this)),"name","RTCBeautyExtension"),Wg(ug(e),"_enable",!1),Wg(ug(e),"_beautyExt",void 0),Wg(ug(e),"_backgroundExt",void 0),Wg(ug(e),"_enableBeauty",!1),Wg(ug(e),"_enableBackground",!1),Wg(ug(e),"_fps",15),Wg(ug(e),"_backgroundBackend",TC.CPU),Wg(ug(e),"_backgroundAIModelType",AC.QUALITY),Wg(ug(e),"_backgroundMode",OC.BACKGROUND_BLUR),Wg(ug(e),"_beautyDefaultValue",{sharpenIntensity:.5,whitenIntensity:.5,smoothIntensity:.5}),Wg(ug(e),"_preTrack",null),h._sdkUrl=n.sdkUrl||IC,h._sdkSourceUrl=n.sdkSourceUrl||RC,h._sdkAuthServer=n.sdkAuthServer||"",h._sdkHash=n.sdkHash||"",h._authFileUrl=n.authFileUrl||"",n.aiBackend===TC.GPU)&&("undefined"!=typeof WebGL2RenderingContext&&("undefined"!=typeof OffscreenCanvas?new OffscreenCanvas(16,16).getContext("webgl2")&&(e._backgroundBackend=TC.GPU):e._backgroundBackend=TC.GPU));return e._backgroundAIModelType=null!==(t=n.aiModelType)&&void 0!==t?t:AC.QUALITY,e.on("stop",(function(){var t;e._preTrack&&(null===(t=h._sdk)||void 0===t||t.stopFrame(),e._preTrack=null)})),e}return sg(h,[{key:"initWebArSDK",value:(l=ng(tg().mark((function t(){return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==window.WebARMainSDK){t.next=3;break}return t.next=3,h.loadWebARSDK();case 3:h._sdk||(window.WebARMainSDK.WEBAR_CONSTANTS.REROURCE_PATH_CONFIG.SDK_RESOURCE_URL=h._sdkSourceUrl,h._sdk=new window.WebARMainSDK.WebSDK);case 4:case"end":return t.stop()}}),t)}))),function(){return l.apply(this,arguments)})},{key:"init",value:(c=ng(tg().mark((function t(e){var n,r,i,o,a,s,u,c,l,f,d,p,v,_,g,y=this;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._rtcSdkApiCall("".concat(this.name,".init"),0,{hasAuthFile:!!h._authFileUrl,aiBackend:this._backgroundBackend,aiModelType:this._backgroundAIModelType}),t.next=3,this.initWebArSDK();case 3:return l=null==e?void 0:e.videoCaptureConfig,this._fps=l?"number"==typeof(null==l?void 0:l.frameRate)?(null==l?void 0:l.frameRate)||15:(null==l||null===(n=l.frameRate)||void 0===n?void 0:n.ideal)||15:15,CC.print("init fps",this._fps),null===(r=h._sdk)||void 0===r||r.setOptions({maxFps:this._fps,autoSetCanvasToVideoSize:!0,authFileUrl:h._authFileUrl||""}),t.next=9,null===(i=h._sdk)||void 0===i?void 0:i.setDocumentTemplate(window.WebARMainSDK.API.DocumentTemplateNames.RTC);case 9:return t.next=11,null===(o=h._sdk)||void 0===o?void 0:o.initialize(h._authFileUrl?{aiBackend:this._backgroundBackend,aiModelType:this._backgroundAIModelType}:{});case 11:CC.info("init",[this._backgroundBackend,this._backgroundAIModelType]),this._beautyExt||(this._beautyExt=null===(f=h._sdk)||void 0===f?void 0:f.extensions.get(window.WebARMainSDK.API.APIExtensionNameEnum.BEAUTY_FILETER)),this._backgroundExt||(this._backgroundExt=null===(d=h._sdk)||void 0===d?void 0:d.extensions.get(window.WebARMainSDK.API.APIExtensionNameEnum.VIRTUAL_BACKGROUND)),Vg(a=Qg(this._beautyDefaultValue)).call(a,(function(t){y._beautyExt&&(y._beautyExt[t]=y._beautyDefaultValue[t])})),(p=null===(s=h._sdk.video)||void 0===s||null===(u=s._video)||void 0===u?void 0:u._video)&&(p.style.position="fixed",p.style.top="0",p.style.left="0",p.style.opacity="0",p.style.pointerEvents="none"),"safari"===(m=void 0,m="none",null!==window.navigator.userAgent.match("Firefox")?m="mozilla":null!==window.navigator.userAgent.match("Chrome")?(m="chrome-stable",null!==window.navigator.userAgent.match("Electron")&&(m="electron")):(null!==window.navigator.userAgent.match("Safari")||null!==window.navigator.userAgent.match("AppleWebKit"))&&(m="safari"),m)&&(_=null===(v=h._sdk)||void 0===v?void 0:v.canvas)&&(_.style.width="1px",_.style.height="1px",_.style.position="fixed",_.style.top="0",_.style.left="0",_.style.opacity="0",_.style.pointerEvents="none",_.style.zIndex="-9999",document.body.appendChild(_)),g=$g(c=window.WebARMainSDK.documentManager._activeDocTemplate._pipeline._onPreFrame).call(c,window.WebARMainSDK.documentManager._activeDocTemplate._pipeline),window.WebARMainSDK.documentManager._activeDocTemplate._pipeline._onPreFrame=function(){0!==window.WebARMainSDK.App.video.videoElement.videoWidth&&0!==window.WebARMainSDK.App.video.videoElement.videoHeight&&g()};case 20:case"end":return t.stop()}var m}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"checkCompatibility",value:(u=ng(tg().mark((function t(){var e,n,r;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e="",t.prev=1,t.next=4,this.initWebArSDK();case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),e=(null===t.t0||void 0===t.t0?void 0:t.t0.toString())||(null===t.t0||void 0===t.t0?void 0:t.t0.stack)||"";case 9:if(!h._sdk){t.next=17;break}return t.next=12,h._sdk.checkCompatibility();case 12:return(r=t.sent).isCompatible||0!==uy(n=r.reasons).call(n,(function(t){return 4!==t})).length||(r.isCompatible=!0,r.reasons=[]),t.abrupt("return",r);case 17:return t.abrupt("return",{isCompatible:!1,reasons:[100],message:e});case 18:case"end":return t.stop()}}),t,this,[[1,6]])}))),function(){return u.apply(this,arguments)})},{key:"effect",value:(s=ng(tg().mark((function t(e,n){var r,i,o,a,s,u,c,l,f;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n||e.mediaTrack,this._enableBeauty||this._enableBackground){t.next=4;break}return this._preTrack&&(null===(i=h._sdk)||void 0===i||i.stopFrame()),t.abrupt("return",r);case 4:if("video"!==e.mediaType||e.streamIndex!==Ww.STREAM_INDEX_MAIN){t.next=16;break}if(this._preTrack===r){t.next=11;break}return t.next=8,null===(c=h._sdk)||void 0===c?void 0:c.setStreamInput(new MediaStream([r]));case 8:return this._preTrack=r,t.next=11,null===(l=h._sdk)||void 0===l||null===(f=l.video)||void 0===f?void 0:f.start();case 11:if(null===(o=h._sdk)||void 0===o||o.startFrame(),null===(a=this._beautyExt)||void 0===a||a.setEnable(this._enableBeauty),null===(s=this._backgroundExt)||void 0===s||s.setEnable(this._enableBackground),null===(u=h._sdk)||void 0===u||!u.canvas){t.next=16;break}return t.abrupt("return",h._sdk.canvas.captureStream(this._fps).getVideoTracks()[0]);case 16:return t.abrupt("return",r);case 17:case"end":return t.stop()}}),t,this)}))),function(t,e){return s.apply(this,arguments)})},{key:"enable",value:function(){return this._rtcSdkApiCall("".concat(this.name,".enable"),0,""),this.enableBeauty()}},{key:"enableBeauty",value:(a=ng(tg().mark((function t(){var e,n,r,i,o=this;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".enableBeauty"),0,""),n=!this._enableBeauty&&!this._enableBackground,this._enableBeauty=!0,Vg(e=Qg(this._beautyDefaultValue)).call(e,(function(t){o._beautyExt&&(o._beautyExt[t]=o._beautyDefaultValue[t])})),this._preTrack&&!n){t.next=8;break}return t.abrupt("return",new cy((function(t,e){o.emit("reset-video-effect",t,e)})));case 8:null===(r=h._sdk)||void 0===r||r.startFrame(),null===(i=this._beautyExt)||void 0===i||i.setEnable(!0);case 10:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"disable",value:function(){return this._rtcSdkApiCall("".concat(this.name,".disable"),0,""),this.disableBeauty()}},{key:"disableBeauty",value:(o=ng(tg().mark((function t(){var e,n,r=this;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".disableBeauty"),0,""),e=this._enableBeauty&&!this._enableBackground,this._enableBeauty=!1,this._preTrack&&!e){t.next=7;break}return t.abrupt("return",new cy((function(t,e){r.emit("reset-video-effect",t,e)})));case 7:null===(n=this._beautyExt)||void 0===n||n.setEnable(!1);case 8:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"enableVirtualBackground",value:(i=ng(tg().mark((function t(){var e,n,r,i,o=this;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".enableBackground"),0,""),n=!this._enableBeauty&&!this._enableBackground,this._enableBackground=!0,null===(e=this._backgroundExt)||void 0===e||e.setBackgroundMode(this._backgroundMode),this._preTrack&&!n){t.next=8;break}return t.abrupt("return",new cy((function(t,e){o.emit("reset-video-effect",t,e)})));case 8:null===(r=h._sdk)||void 0===r||r.startFrame(),null===(i=this._backgroundExt)||void 0===i||i.setEnable(!0);case 10:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"disableVirtualBackground",value:(r=ng(tg().mark((function t(){var e,n,r=this;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".disableBackground"),0,""),e=!this._enableBeauty&&this._enableBackground,this._enableBackground=!1,this._preTrack&&!e){t.next=7;break}return t.abrupt("return",new cy((function(t,e){r.emit("reset-video-effect",t,e)})));case 7:null===(n=this._backgroundExt)||void 0===n||n.setEnable(!1);case 8:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"setBeautyIntensity",value:function(t,e){switch(this._rtcSdkApiCall("".concat(this.name,".setBeautyIntensity"),0,[t,e]),e=Math.min(1,Math.max(0,e)),t){case EC.EFFECT_SHARPEN_MODE:this._beautyDefaultValue.sharpenIntensity=e,this._beautyExt&&(this._beautyExt.sharpenIntensity=e);break;case EC.EFFECT_WHITE_MODE:this._beautyDefaultValue.whitenIntensity=e,this._beautyExt&&(this._beautyExt.whitenIntensity=e);break;case EC.EFFECT_SMOOTH_MODE:this._beautyDefaultValue.smoothIntensity=e,this._beautyExt&&(this._beautyExt.smoothIntensity=e)}}},{key:"setBackgroundMode",value:function(t){var e;this._rtcSdkApiCall("".concat(this.name,".setBackgroundMode"),0,[t]),this._backgroundMode=t,null===(e=this._backgroundExt)||void 0===e||e.setBackgroundMode(t)}},{key:"getBackgroundImage",value:function(){var t;return this._rtcSdkApiCall("".concat(this.name,".getBackgroundImage"),0,""),(null===(t=this._backgroundExt)||void 0===t?void 0:t.backgroundImage)||""}},{key:"loadBackgroundImage",value:function(t){return this._rtcSdkApiCall("".concat(this.name,".loadBackgroundImage"),0,[t]),this._backgroundExt?this._backgroundExt.loadBackgroundImage(t):cy.reject(new Error("init extension first"))}},{key:"setAIModelType",value:function(t){var e;this._rtcSdkApiCall("".concat(this.name,".setAIModelType"),0,[t]),this._backgroundAIModelType=t,null===(e=this._backgroundExt)||void 0===e||e.setAIModelType(t)}},{key:"applyConstraints",value:function(t,e){var n,r=e.width,i=e.height;t!==Ww.STREAM_INDEX_SCREEN&&"number"==typeof r&&"number"==typeof i&&(null===(n=h._sdk)||void 0===n||n.setCanvasSize(r,i))}},{key:"isSupported",value:(n=ng(tg().mark((function t(){var e,n;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.checkCompatibility();case 2:return(n=t.sent).isCompatible||0!==uy(e=n.reasons).call(e,(function(t){return 4!==t})).length||(n.isCompatible=!0),t.abrupt("return",n.isCompatible);case 5:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"isOpen",value:function(){return this._enable}},{key:"destroy",value:function(){var t,e,n;null===(t=h._sdk)||void 0===t||t.stopFrame(),null===(e=h._sdk)||void 0===e||null===(n=e.video)||void 0===n||n.stop()}},{key:"_rtcSdkApiCall",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null===(e=this.monitor)||void 0===e||e.report("rtc_sdk_api_call",{sdk_api_name:t,error_code:n,message:r})}}],[{key:"loadWebARSDK",value:(e=ng(tg().mark((function t(){var e,n,r;return tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=null,n=!1,h._loadingProcess||(h._loadingProcess=new cy((function(t,i){try{(e=document.createElement("script")).type="text/javascript",e.async=!0,e.src=h._sdkUrl,e.id="extension-webar-sdk",e.addEventListener("load",(function(){n=!0,clearTimeout(r),t()})),e.addEventListener("error",(function(t){e&&document.body.removeChild(e),h._loadingProcess=void 0,clearTimeout(r),i(t)})),document.body.appendChild(e)}catch(MC){e&&document.body.removeChild(e),h._loadingProcess=void 0,clearTimeout(r),i(MC)}r=Ay((function(){n||(e&&document.body.removeChild(e),h._loadingProcess=void 0),i(new Error("Load WebAR SDK timeout"))}),1e4)}))),t.abrupt("return",h._loadingProcess);case 6:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})}]),h}(Vw);Wg(BC,"_loadingProcess",void 0),Wg(BC,"_sdk",void 0),Wg(BC,"_sdkUrl",void 0),Wg(BC,"_sdkSourceUrl",void 0),Wg(BC,"_sdkHash",""),Wg(BC,"_sdkAuthServer",""),Wg(BC,"_authFileUrl","");var LC=window.BytePlusRTCExtensions||{};LC.RTCBeautyExtension=BC,LC.EffectBeautyMode=EC,window.BytePlusRTCExtensions=LC}));
|
|
6
|
+
!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var r=function(t){return t&&t.Math===Math&&t},n=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),i=function(t){try{return!!t()}catch(e){return!0}},o=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),a=o,s=Function.prototype,u=s.apply,c=s.call,l="object"==typeof Reflect&&Reflect.apply||(a?c.bind(u):function(){return c.apply(u,arguments)}),f=o,h=Function.prototype,d=h.call,p=f&&h.bind.bind(d,d),v=f?p:function(t){return function(){return d.apply(t,arguments)}},g=v,_=g({}.toString),y=g("".slice),m=function(t){return y(_(t),8,-1)},b=m,w=v,k=function(t){if("Function"===b(t))return w(t)},S="object"==typeof document&&document.all,x={all:S,IS_HTMLDDA:void 0===S&&void 0!==S},E=x.all,O=x.IS_HTMLDDA?function(t){return"function"==typeof t||t===E}:function(t){return"function"==typeof t},A={},T=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),B=o,C=Function.prototype.call,R=B?C.bind(C):function(){return C.apply(C,arguments)},I={},L={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,z=M&&!L.call({1:2},1);I.f=z?function(t){var e=M(this,t);return!!e&&e.enumerable}:L;var j,N,P=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},D=i,F=m,U=Object,G=v("".split),K=D((function(){return!U("z").propertyIsEnumerable(0)}))?function(t){return"String"===F(t)?G(t,""):U(t)}:U,V=function(t){return null==t},Z=V,H=TypeError,W=function(t){if(Z(t))throw H("Can't call method on "+t);return t},J=K,Y=W,X=function(t){return J(Y(t))},$=O,q=x.all,Q=x.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:$(t)||t===q}:function(t){return"object"==typeof t?null!==t:$(t)},tt={},et=tt,rt=n,nt=O,it=function(t){return nt(t)?t:void 0},ot=function(t,e){return arguments.length<2?it(et[t])||it(rt[t]):et[t]&&et[t][e]||rt[t]&&rt[t][e]},at=v({}.isPrototypeOf),st="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ut=n,ct=st,lt=ut.process,ft=ut.Deno,ht=lt&<.versions||ft&&ft.version,dt=ht&&ht.v8;dt&&(N=(j=dt.split("."))[0]>0&&j[0]<4?1:+(j[0]+j[1])),!N&&ct&&(!(j=ct.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=ct.match(/Chrome\/(\d+)/))&&(N=+j[1]);var pt=N,vt=pt,gt=i,_t=n.String,yt=!!Object.getOwnPropertySymbols&&!gt((function(){var t=Symbol("symbol detection");return!_t(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&vt&&vt<41})),mt=yt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bt=ot,wt=O,kt=at,St=Object,xt=mt?function(t){return"symbol"==typeof t}:function(t){var e=bt("Symbol");return wt(e)&&kt(e.prototype,St(t))},Et=String,Ot=function(t){try{return Et(t)}catch(e){return"Object"}},At=O,Tt=Ot,Bt=TypeError,Ct=function(t){if(At(t))return t;throw Bt(Tt(t)+" is not a function")},Rt=Ct,It=V,Lt=function(t,e){var r=t[e];return It(r)?void 0:Rt(r)},Mt=R,zt=O,jt=Q,Nt=TypeError,Pt={exports:{}},Dt=n,Ft=Object.defineProperty,Ut=function(t,e){try{Ft(Dt,t,{value:e,configurable:!0,writable:!0})}catch(r){Dt[t]=e}return e},Gt="__core-js_shared__",Kt=n[Gt]||Ut(Gt,{}),Vt=Kt;(Pt.exports=function(t,e){return Vt[t]||(Vt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.32.1",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Zt=Pt.exports,Ht=W,Wt=Object,Jt=function(t){return Wt(Ht(t))},Yt=Jt,Xt=v({}.hasOwnProperty),$t=Object.hasOwn||function(t,e){return Xt(Yt(t),e)},qt=v,Qt=0,te=Math.random(),ee=qt(1..toString),re=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ee(++Qt+te,36)},ne=Zt,ie=$t,oe=re,ae=yt,se=mt,ue=n.Symbol,ce=ne("wks"),le=se?ue.for||ue:ue&&ue.withoutSetter||oe,fe=function(t){return ie(ce,t)||(ce[t]=ae&&ie(ue,t)?ue[t]:le("Symbol."+t)),ce[t]},he=R,de=Q,pe=xt,ve=Lt,ge=function(t,e){var r,n;if("string"===e&&zt(r=t.toString)&&!jt(n=Mt(r,t)))return n;if(zt(r=t.valueOf)&&!jt(n=Mt(r,t)))return n;if("string"!==e&&zt(r=t.toString)&&!jt(n=Mt(r,t)))return n;throw Nt("Can't convert object to primitive value")},_e=TypeError,ye=fe("toPrimitive"),me=function(t,e){if(!de(t)||pe(t))return t;var r,n=ve(t,ye);if(n){if(void 0===e&&(e="default"),r=he(n,t,e),!de(r)||pe(r))return r;throw _e("Can't convert object to primitive value")}return void 0===e&&(e="number"),ge(t,e)},be=xt,we=function(t){var e=me(t,"string");return be(e)?e:e+""},ke=Q,Se=n.document,xe=ke(Se)&&ke(Se.createElement),Ee=function(t){return xe?Se.createElement(t):{}},Oe=Ee,Ae=!T&&!i((function(){return 7!==Object.defineProperty(Oe("div"),"a",{get:function(){return 7}}).a})),Te=T,Be=R,Ce=I,Re=P,Ie=X,Le=we,Me=$t,ze=Ae,je=Object.getOwnPropertyDescriptor;A.f=Te?je:function(t,e){if(t=Ie(t),e=Le(e),ze)try{return je(t,e)}catch(r){}if(Me(t,e))return Re(!Be(Ce.f,t,e),t[e])};var Ne=i,Pe=O,De=/#|\.prototype\./,Fe=function(t,e){var r=Ge[Ue(t)];return r===Ve||r!==Ke&&(Pe(e)?Ne(e):!!e)},Ue=Fe.normalize=function(t){return String(t).replace(De,".").toLowerCase()},Ge=Fe.data={},Ke=Fe.NATIVE="N",Ve=Fe.POLYFILL="P",Ze=Fe,He=Ct,We=o,Je=k(k.bind),Ye=function(t,e){return He(t),void 0===e?t:We?Je(t,e):function(){return t.apply(e,arguments)}},Xe={},$e=T&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),qe=Q,Qe=String,tr=TypeError,er=function(t){if(qe(t))return t;throw tr(Qe(t)+" is not an object")},rr=T,nr=Ae,ir=$e,or=er,ar=we,sr=TypeError,ur=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,lr="enumerable",fr="configurable",hr="writable";Xe.f=rr?ir?function(t,e,r){if(or(t),e=ar(e),or(r),"function"==typeof t&&"prototype"===e&&"value"in r&&hr in r&&!r[hr]){var n=cr(t,e);n&&n[hr]&&(t[e]=r.value,r={configurable:fr in r?r[fr]:n[fr],enumerable:lr in r?r[lr]:n[lr],writable:!1})}return ur(t,e,r)}:ur:function(t,e,r){if(or(t),e=ar(e),or(r),nr)try{return ur(t,e,r)}catch(n){}if("get"in r||"set"in r)throw sr("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var dr=Xe,pr=P,vr=T?function(t,e,r){return dr.f(t,e,pr(1,r))}:function(t,e,r){return t[e]=r,t},gr=n,_r=l,yr=k,mr=O,br=A.f,wr=Ze,kr=tt,Sr=Ye,xr=vr,Er=$t,Or=function(t){var e=function(r,n,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,i)}return _r(t,this,arguments)};return e.prototype=t.prototype,e},Ar=function(t,e){var r,n,i,o,a,s,u,c,l,f=t.target,h=t.global,d=t.stat,p=t.proto,v=h?gr:d?gr[f]:(gr[f]||{}).prototype,g=h?kr:kr[f]||xr(kr,f,{})[f],_=g.prototype;for(o in e)n=!(r=wr(h?o:f+(d?".":"#")+o,t.forced))&&v&&Er(v,o),s=g[o],n&&(u=t.dontCallGetSet?(l=br(v,o))&&l.value:v[o]),a=n&&u?u:e[o],n&&typeof s==typeof a||(c=t.bind&&n?Sr(a,gr):t.wrap&&n?Or(a):p&&mr(a)?yr(a):a,(t.sham||a&&a.sham||s&&s.sham)&&xr(c,"sham",!0),xr(g,o,c),p&&(Er(kr,i=f+"Prototype")||xr(kr,i,{}),xr(kr[i],o,a),t.real&&_&&(r||!_[o])&&xr(_,o,a)))},Tr=Math.ceil,Br=Math.floor,Cr=Math.trunc||function(t){var e=+t;return(e>0?Br:Tr)(e)},Rr=function(t){var e=+t;return e!=e||0===e?0:Cr(e)},Ir=Rr,Lr=Math.max,Mr=Math.min,zr=function(t,e){var r=Ir(t);return r<0?Lr(r+e,0):Mr(r,e)},jr=Rr,Nr=Math.min,Pr=function(t){return t>0?Nr(jr(t),9007199254740991):0},Dr=Pr,Fr=function(t){return Dr(t.length)},Ur=X,Gr=zr,Kr=Fr,Vr=function(t){return function(e,r,n){var i,o=Ur(e),a=Kr(o),s=Gr(n,a);if(t&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===r)return t||s||0;return!t&&-1}},Zr={includes:Vr(!0),indexOf:Vr(!1)},Hr={},Wr=$t,Jr=X,Yr=Zr.indexOf,Xr=Hr,$r=v([].push),qr=function(t,e){var r,n=Jr(t),i=0,o=[];for(r in n)!Wr(Xr,r)&&Wr(n,r)&&$r(o,r);for(;e.length>i;)Wr(n,r=e[i++])&&(~Yr(o,r)||$r(o,r));return o},Qr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tn=qr,en=Qr,rn=Object.keys||function(t){return tn(t,en)},nn=Jt,on=rn;Ar({target:"Object",stat:!0,forced:i((function(){on(1)}))},{keys:function(t){return on(nn(t))}});var an=tt.Object.keys,sn=e(an),un={};un[fe("toStringTag")]="z";var cn="[object z]"===String(un),ln=cn,fn=O,hn=m,dn=fe("toStringTag"),pn=Object,vn="Arguments"===hn(function(){return arguments}()),gn=ln?hn:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(r){}}(e=pn(t),dn))?r:vn?hn(e):"Object"===(n=hn(e))&&fn(e.callee)?"Arguments":n},_n=gn,yn=String,mn=function(t){if("Symbol"===_n(t))throw TypeError("Cannot convert a Symbol value to a string");return yn(t)},bn={},wn=T,kn=$e,Sn=Xe,xn=er,En=X,On=rn;bn.f=wn&&!kn?Object.defineProperties:function(t,e){xn(t);for(var r,n=En(e),i=On(e),o=i.length,a=0;o>a;)Sn.f(t,r=i[a++],n[r]);return t};var An,Tn=ot("document","documentElement"),Bn=re,Cn=Zt("keys"),Rn=function(t){return Cn[t]||(Cn[t]=Bn(t))},In=er,Ln=bn,Mn=Qr,zn=Hr,jn=Tn,Nn=Ee,Pn="prototype",Dn="script",Fn=Rn("IE_PROTO"),Un=function(){},Gn=function(t){return"<"+Dn+">"+t+"</"+Dn+">"},Kn=function(t){t.write(Gn("")),t.close();var e=t.parentWindow.Object;return t=null,e},Vn=function(){try{An=new ActiveXObject("htmlfile")}catch(i){}var t,e,r;Vn="undefined"!=typeof document?document.domain&&An?Kn(An):(e=Nn("iframe"),r="java"+Dn+":",e.style.display="none",jn.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Gn("document.F=Object")),t.close(),t.F):Kn(An);for(var n=Mn.length;n--;)delete Vn[Pn][Mn[n]];return Vn()};zn[Fn]=!0;var Zn=Object.create||function(t,e){var r;return null!==t?(Un[Pn]=In(t),r=new Un,Un[Pn]=null,r[Fn]=t):r=Vn(),void 0===e?r:Ln.f(r,e)},Hn={},Wn=qr,Jn=Qr.concat("length","prototype");Hn.f=Object.getOwnPropertyNames||function(t){return Wn(t,Jn)};var Yn={},Xn=we,$n=Xe,qn=P,Qn=function(t,e,r){var n=Xn(e);n in t?$n.f(t,n,qn(0,r)):t[n]=r},ti=zr,ei=Fr,ri=Qn,ni=Array,ii=Math.max,oi=m,ai=X,si=Hn.f,ui=function(t,e,r){for(var n=ei(t),i=ti(e,n),o=ti(void 0===r?n:r,n),a=ni(ii(o-i,0)),s=0;i<o;i++,s++)ri(a,s,t[i]);return a.length=s,a},ci="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Yn.f=function(t){return ci&&"Window"===oi(t)?function(t){try{return si(t)}catch(e){return ui(ci)}}(t):si(ai(t))};var li={};li.f=Object.getOwnPropertySymbols;var fi=vr,hi=function(t,e,r,n){return n&&n.enumerable?t[e]=r:fi(t,e,r),t},di=Xe,pi=function(t,e,r){return di.f(t,e,r)},vi={},gi=fe;vi.f=gi;var _i,yi,mi,bi=tt,wi=$t,ki=vi,Si=Xe.f,xi=function(t){var e=bi.Symbol||(bi.Symbol={});wi(e,t)||Si(e,t,{value:ki.f(t)})},Ei=R,Oi=ot,Ai=fe,Ti=hi,Bi=function(){var t=Oi("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=Ai("toPrimitive");e&&!e[n]&&Ti(e,n,(function(t){return Ei(r,this)}),{arity:1})},Ci=gn,Ri=cn?{}.toString:function(){return"[object "+Ci(this)+"]"},Ii=cn,Li=Xe.f,Mi=vr,zi=$t,ji=Ri,Ni=fe("toStringTag"),Pi=function(t,e,r,n){if(t){var i=r?t:t.prototype;zi(i,Ni)||Li(i,Ni,{configurable:!0,value:e}),n&&!Ii&&Mi(i,"toString",ji)}},Di=O,Fi=n.WeakMap,Ui=Di(Fi)&&/native code/.test(String(Fi)),Gi=n,Ki=Q,Vi=vr,Zi=$t,Hi=Kt,Wi=Rn,Ji=Hr,Yi="Object already initialized",Xi=Gi.TypeError,$i=Gi.WeakMap;if(Ui||Hi.state){var qi=Hi.state||(Hi.state=new $i);qi.get=qi.get,qi.has=qi.has,qi.set=qi.set,_i=function(t,e){if(qi.has(t))throw Xi(Yi);return e.facade=t,qi.set(t,e),e},yi=function(t){return qi.get(t)||{}},mi=function(t){return qi.has(t)}}else{var Qi=Wi("state");Ji[Qi]=!0,_i=function(t,e){if(Zi(t,Qi))throw Xi(Yi);return e.facade=t,Vi(t,Qi,e),e},yi=function(t){return Zi(t,Qi)?t[Qi]:{}},mi=function(t){return Zi(t,Qi)}}var to={set:_i,get:yi,has:mi,enforce:function(t){return mi(t)?yi(t):_i(t,{})},getterFor:function(t){return function(e){var r;if(!Ki(e)||(r=yi(e)).type!==t)throw Xi("Incompatible receiver, "+t+" required");return r}}},eo=m,ro=Array.isArray||function(t){return"Array"===eo(t)},no=O,io=Kt,oo=v(Function.toString);no(io.inspectSource)||(io.inspectSource=function(t){return oo(t)});var ao=io.inspectSource,so=v,uo=i,co=O,lo=gn,fo=ao,ho=function(){},po=[],vo=ot("Reflect","construct"),go=/^\s*(?:class|function)\b/,_o=so(go.exec),yo=!go.exec(ho),mo=function(t){if(!co(t))return!1;try{return vo(ho,po,t),!0}catch(e){return!1}},bo=function(t){if(!co(t))return!1;switch(lo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return yo||!!_o(go,fo(t))}catch(e){return!0}};bo.sham=!0;var wo=!vo||uo((function(){var t;return mo(mo.call)||!mo(Object)||!mo((function(){t=!0}))||t}))?bo:mo,ko=ro,So=wo,xo=Q,Eo=fe("species"),Oo=Array,Ao=function(t){var e;return ko(t)&&(e=t.constructor,(So(e)&&(e===Oo||ko(e.prototype))||xo(e)&&null===(e=e[Eo]))&&(e=void 0)),void 0===e?Oo:e},To=function(t,e){return new(Ao(t))(0===e?0:e)},Bo=Ye,Co=K,Ro=Jt,Io=Fr,Lo=To,Mo=v([].push),zo=function(t){var e=1===t,r=2===t,n=3===t,i=4===t,o=6===t,a=7===t,s=5===t||o;return function(u,c,l,f){for(var h,d,p=Ro(u),v=Co(p),g=Bo(c,l),_=Io(v),y=0,m=f||Lo,b=e?m(u,_):r||a?m(u,0):void 0;_>y;y++)if((s||y in v)&&(d=g(h=v[y],y,p),t))if(e)b[y]=d;else if(d)switch(t){case 3:return!0;case 5:return h;case 6:return y;case 2:Mo(b,h)}else switch(t){case 4:return!1;case 7:Mo(b,h)}return o?-1:n||i?i:b}},jo={forEach:zo(0),map:zo(1),filter:zo(2),some:zo(3),every:zo(4),find:zo(5),findIndex:zo(6),filterReject:zo(7)},No=Ar,Po=n,Do=R,Fo=v,Uo=T,Go=yt,Ko=i,Vo=$t,Zo=at,Ho=er,Wo=X,Jo=we,Yo=mn,Xo=P,$o=Zn,qo=rn,Qo=Hn,ta=Yn,ea=li,ra=A,na=Xe,ia=bn,oa=I,aa=hi,sa=pi,ua=Zt,ca=Hr,la=re,fa=fe,ha=vi,da=xi,pa=Bi,va=Pi,ga=to,_a=jo.forEach,ya=Rn("hidden"),ma="Symbol",ba="prototype",wa=ga.set,ka=ga.getterFor(ma),Sa=Object[ba],xa=Po.Symbol,Ea=xa&&xa[ba],Oa=Po.TypeError,Aa=Po.QObject,Ta=ra.f,Ba=na.f,Ca=ta.f,Ra=oa.f,Ia=Fo([].push),La=ua("symbols"),Ma=ua("op-symbols"),za=ua("wks"),ja=!Aa||!Aa[ba]||!Aa[ba].findChild,Na=Uo&&Ko((function(){return 7!==$o(Ba({},"a",{get:function(){return Ba(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=Ta(Sa,e);n&&delete Sa[e],Ba(t,e,r),n&&t!==Sa&&Ba(Sa,e,n)}:Ba,Pa=function(t,e){var r=La[t]=$o(Ea);return wa(r,{type:ma,tag:t,description:e}),Uo||(r.description=e),r},Da=function(t,e,r){t===Sa&&Da(Ma,e,r),Ho(t);var n=Jo(e);return Ho(r),Vo(La,n)?(r.enumerable?(Vo(t,ya)&&t[ya][n]&&(t[ya][n]=!1),r=$o(r,{enumerable:Xo(0,!1)})):(Vo(t,ya)||Ba(t,ya,Xo(1,{})),t[ya][n]=!0),Na(t,n,r)):Ba(t,n,r)},Fa=function(t,e){Ho(t);var r=Wo(e),n=qo(r).concat(Va(r));return _a(n,(function(e){Uo&&!Do(Ua,r,e)||Da(t,e,r[e])})),t},Ua=function(t){var e=Jo(t),r=Do(Ra,this,e);return!(this===Sa&&Vo(La,e)&&!Vo(Ma,e))&&(!(r||!Vo(this,e)||!Vo(La,e)||Vo(this,ya)&&this[ya][e])||r)},Ga=function(t,e){var r=Wo(t),n=Jo(e);if(r!==Sa||!Vo(La,n)||Vo(Ma,n)){var i=Ta(r,n);return!i||!Vo(La,n)||Vo(r,ya)&&r[ya][n]||(i.enumerable=!0),i}},Ka=function(t){var e=Ca(Wo(t)),r=[];return _a(e,(function(t){Vo(La,t)||Vo(ca,t)||Ia(r,t)})),r},Va=function(t){var e=t===Sa,r=Ca(e?Ma:Wo(t)),n=[];return _a(r,(function(t){!Vo(La,t)||e&&!Vo(Sa,t)||Ia(n,La[t])})),n};Go||(xa=function(){if(Zo(Ea,this))throw Oa("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Yo(arguments[0]):void 0,e=la(t),r=function(t){this===Sa&&Do(r,Ma,t),Vo(this,ya)&&Vo(this[ya],e)&&(this[ya][e]=!1),Na(this,e,Xo(1,t))};return Uo&&ja&&Na(Sa,e,{configurable:!0,set:r}),Pa(e,t)},aa(Ea=xa[ba],"toString",(function(){return ka(this).tag})),aa(xa,"withoutSetter",(function(t){return Pa(la(t),t)})),oa.f=Ua,na.f=Da,ia.f=Fa,ra.f=Ga,Qo.f=ta.f=Ka,ea.f=Va,ha.f=function(t){return Pa(fa(t),t)},Uo&&sa(Ea,"description",{configurable:!0,get:function(){return ka(this).description}})),No({global:!0,constructor:!0,wrap:!0,forced:!Go,sham:!Go},{Symbol:xa}),_a(qo(za),(function(t){da(t)})),No({target:ma,stat:!0,forced:!Go},{useSetter:function(){ja=!0},useSimple:function(){ja=!1}}),No({target:"Object",stat:!0,forced:!Go,sham:!Uo},{create:function(t,e){return void 0===e?$o(t):Fa($o(t),e)},defineProperty:Da,defineProperties:Fa,getOwnPropertyDescriptor:Ga}),No({target:"Object",stat:!0,forced:!Go},{getOwnPropertyNames:Ka}),pa(),va(xa,ma),ca[ya]=!0;var Za=yt&&!!Symbol.for&&!!Symbol.keyFor,Ha=Ar,Wa=ot,Ja=$t,Ya=mn,Xa=Zt,$a=Za,qa=Xa("string-to-symbol-registry"),Qa=Xa("symbol-to-string-registry");Ha({target:"Symbol",stat:!0,forced:!$a},{for:function(t){var e=Ya(t);if(Ja(qa,e))return qa[e];var r=Wa("Symbol")(e);return qa[e]=r,Qa[r]=e,r}});var ts=Ar,es=$t,rs=xt,ns=Ot,is=Za,os=Zt("symbol-to-string-registry");ts({target:"Symbol",stat:!0,forced:!is},{keyFor:function(t){if(!rs(t))throw TypeError(ns(t)+" is not a symbol");if(es(os,t))return os[t]}});var as=v([].slice),ss=ro,us=O,cs=m,ls=mn,fs=v([].push),hs=Ar,ds=ot,ps=l,vs=R,gs=v,_s=i,ys=O,ms=xt,bs=as,ws=function(t){if(us(t))return t;if(ss(t)){for(var e=t.length,r=[],n=0;n<e;n++){var i=t[n];"string"==typeof i?fs(r,i):"number"!=typeof i&&"Number"!==cs(i)&&"String"!==cs(i)||fs(r,ls(i))}var o=r.length,a=!0;return function(t,e){if(a)return a=!1,e;if(ss(this))return e;for(var n=0;n<o;n++)if(r[n]===t)return e}}},ks=yt,Ss=String,xs=ds("JSON","stringify"),Es=gs(/./.exec),Os=gs("".charAt),As=gs("".charCodeAt),Ts=gs("".replace),Bs=gs(1..toString),Cs=/[\uD800-\uDFFF]/g,Rs=/^[\uD800-\uDBFF]$/,Is=/^[\uDC00-\uDFFF]$/,Ls=!ks||_s((function(){var t=ds("Symbol")("stringify detection");return"[null]"!==xs([t])||"{}"!==xs({a:t})||"{}"!==xs(Object(t))})),Ms=_s((function(){return'"\\udf06\\ud834"'!==xs("\udf06\ud834")||'"\\udead"'!==xs("\udead")})),zs=function(t,e){var r=bs(arguments),n=ws(e);if(ys(n)||void 0!==t&&!ms(t))return r[1]=function(t,e){if(ys(n)&&(e=vs(n,this,Ss(t),e)),!ms(e))return e},ps(xs,null,r)},js=function(t,e,r){var n=Os(r,e-1),i=Os(r,e+1);return Es(Rs,t)&&!Es(Is,i)||Es(Is,t)&&!Es(Rs,n)?"\\u"+Bs(As(t,0),16):t};xs&&hs({target:"JSON",stat:!0,arity:3,forced:Ls||Ms},{stringify:function(t,e,r){var n=bs(arguments),i=ps(Ls?zs:xs,null,n);return Ms&&"string"==typeof i?Ts(i,Cs,js):i}});var Ns=li,Ps=Jt;Ar({target:"Object",stat:!0,forced:!yt||i((function(){Ns.f(1)}))},{getOwnPropertySymbols:function(t){var e=Ns.f;return e?e(Ps(t)):[]}});var Ds=tt.Object.getOwnPropertySymbols,Fs=e(Ds),Us=i,Gs=pt,Ks=fe("species"),Vs=function(t){return Gs>=51||!Us((function(){var e=[];return(e.constructor={})[Ks]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Zs=jo.filter;Ar({target:"Array",proto:!0,forced:!Vs("filter")},{filter:function(t){return Zs(this,t,arguments.length>1?arguments[1]:void 0)}});var Hs=tt,Ws=function(t){return Hs[t+"Prototype"]},Js=Ws("Array").filter,Ys=at,Xs=Js,$s=Array.prototype,qs=e((function(t){var e=t.filter;return t===$s||Ys($s,t)&&e===$s.filter?Xs:e})),Qs={exports:{}},tu=Ar,eu=i,ru=X,nu=A.f,iu=T;tu({target:"Object",stat:!0,forced:!iu||eu((function(){nu(1)})),sham:!iu},{getOwnPropertyDescriptor:function(t,e){return nu(ru(t),e)}});var ou=tt.Object,au=Qs.exports=function(t,e){return ou.getOwnPropertyDescriptor(t,e)};ou.getOwnPropertyDescriptor.sham&&(au.sham=!0);var su=Qs.exports,uu=e(su),cu=T,lu=ro,fu=TypeError,hu=Object.getOwnPropertyDescriptor,du=cu&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(lu(t)&&!hu(t,"length").writable)throw fu("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},pu=TypeError,vu=function(t){if(t>9007199254740991)throw pu("Maximum allowed index exceeded");return t},gu=Jt,_u=Fr,yu=du,mu=vu;Ar({target:"Array",proto:!0,arity:1,forced:i((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=gu(this),r=_u(e),n=arguments.length;mu(r+n);for(var i=0;i<n;i++)e[r]=arguments[i],r++;return yu(e,r),r}});var bu,wu,ku,Su=Ws("Array").push,xu=at,Eu=Su,Ou=Array.prototype,Au=e((function(t){var e=t.push;return t===Ou||xu(Ou,t)&&e===Ou.push?Eu:e})),Tu={},Bu=T,Cu=$t,Ru=Function.prototype,Iu=Bu&&Object.getOwnPropertyDescriptor,Lu=Cu(Ru,"name"),Mu={EXISTS:Lu,PROPER:Lu&&"something"===function(){}.name,CONFIGURABLE:Lu&&(!Bu||Bu&&Iu(Ru,"name").configurable)},zu=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ju=$t,Nu=O,Pu=Jt,Du=zu,Fu=Rn("IE_PROTO"),Uu=Object,Gu=Uu.prototype,Ku=Du?Uu.getPrototypeOf:function(t){var e=Pu(t);if(ju(e,Fu))return e[Fu];var r=e.constructor;return Nu(r)&&e instanceof r?r.prototype:e instanceof Uu?Gu:null},Vu=i,Zu=O,Hu=Q,Wu=Zn,Ju=Ku,Yu=hi,Xu=fe("iterator"),$u=!1;[].keys&&("next"in(ku=[].keys())?(wu=Ju(Ju(ku)))!==Object.prototype&&(bu=wu):$u=!0);var qu=!Hu(bu)||Vu((function(){var t={};return bu[Xu].call(t)!==t}));Zu((bu=qu?{}:Wu(bu))[Xu])||Yu(bu,Xu,(function(){return this}));var Qu={IteratorPrototype:bu,BUGGY_SAFARI_ITERATORS:$u},tc=Qu.IteratorPrototype,ec=Zn,rc=P,nc=Pi,ic=Tu,oc=function(){return this},ac=v,sc=Ct,uc=O,cc=String,lc=TypeError,fc=function(t,e,r){try{return ac(sc(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(n){}},hc=er,dc=function(t){if("object"==typeof t||uc(t))return t;throw lc("Can't set "+cc(t)+" as a prototype")},pc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=fc(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(n){}return function(r,n){return hc(r),dc(n),e?t(r,n):r.__proto__=n,r}}():void 0),vc=Ar,gc=R,_c=Mu,yc=function(t,e,r,n){var i=e+" Iterator";return t.prototype=ec(tc,{next:rc(+!n,r)}),nc(t,i,!1,!0),ic[i]=oc,t},mc=Ku,bc=Pi,wc=hi,kc=Tu,Sc=Qu,xc=_c.PROPER,Ec=Sc.BUGGY_SAFARI_ITERATORS,Oc=fe("iterator"),Ac="keys",Tc="values",Bc="entries",Cc=function(){return this},Rc=function(t,e,r,n,i,o,a){yc(r,e,n);var s,u,c,l=function(t){if(t===i&&v)return v;if(!Ec&&t in d)return d[t];switch(t){case Ac:case Tc:case Bc:return function(){return new r(this,t)}}return function(){return new r(this)}},f=e+" Iterator",h=!1,d=t.prototype,p=d[Oc]||d["@@iterator"]||i&&d[i],v=!Ec&&p||l(i),g="Array"===e&&d.entries||p;if(g&&(s=mc(g.call(new t)))!==Object.prototype&&s.next&&(bc(s,f,!0,!0),kc[f]=Cc),xc&&i===Tc&&p&&p.name!==Tc&&(h=!0,v=function(){return gc(p,this)}),i)if(u={values:l(Tc),keys:o?v:l(Ac),entries:l(Bc)},a)for(c in u)(Ec||h||!(c in d))&&wc(d,c,u[c]);else vc({target:e,proto:!0,forced:Ec||h},u);return a&&d[Oc]!==v&&wc(d,Oc,v,{name:i}),kc[e]=v,u},Ic=function(t,e){return{value:t,done:e}},Lc=X,Mc=Tu,zc=to;Xe.f;var jc=Rc,Nc=Ic,Pc="Array Iterator",Dc=zc.set,Fc=zc.getterFor(Pc);jc(Array,"Array",(function(t,e){Dc(this,{type:Pc,target:Lc(t),index:0,kind:e})}),(function(){var t=Fc(this),e=t.target,r=t.kind,n=t.index++;if(!e||n>=e.length)return t.target=void 0,Nc(void 0,!0);switch(r){case"keys":return Nc(n,!1);case"values":return Nc(e[n],!1)}return Nc([n,e[n]],!1)}),"values"),Mc.Arguments=Mc.Array;var Uc={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},Gc=n,Kc=gn,Vc=vr,Zc=Tu,Hc=fe("toStringTag");for(var Wc in Uc){var Jc=Gc[Wc],Yc=Jc&&Jc.prototype;Yc&&Kc(Yc)!==Hc&&Vc(Yc,Hc,Wc),Zc[Wc]=Zc.Array}var Xc=i,$c=function(t,e){var r=[][t];return!!r&&Xc((function(){r.call(null,e||function(){return 1},1)}))},qc=jo.forEach,Qc=$c("forEach")?[].forEach:function(t){return qc(this,t,arguments.length>1?arguments[1]:void 0)};Ar({target:"Array",proto:!0,forced:[].forEach!==Qc},{forEach:Qc});var tl=Ws("Array").forEach,el=gn,rl=$t,nl=at,il=tl,ol=Array.prototype,al={DOMTokenList:!0,NodeList:!0},sl=function(t){var e=t.forEach;return t===ol||nl(ol,t)&&e===ol.forEach||rl(al,el(t))?il:e},ul=e(sl),cl=ot,ll=Hn,fl=li,hl=er,dl=v([].concat),pl=cl("Reflect","ownKeys")||function(t){var e=ll.f(hl(t)),r=fl.f;return r?dl(e,r(t)):e},vl=pl,gl=X,_l=A,yl=Qn;Ar({target:"Object",stat:!0,sham:!T},{getOwnPropertyDescriptors:function(t){for(var e,r,n=gl(t),i=_l.f,o=vl(n),a={},s=0;o.length>s;)void 0!==(r=i(n,e=o[s++]))&&yl(a,e,r);return a}});var ml=e(tt.Object.getOwnPropertyDescriptors),bl={exports:{}},wl=Ar,kl=T,Sl=bn.f;wl({target:"Object",stat:!0,forced:Object.defineProperties!==Sl,sham:!kl},{defineProperties:Sl});var xl=tt.Object,El=bl.exports=function(t,e){return xl.defineProperties(t,e)};xl.defineProperties.sham&&(El.sham=!0);var Ol=e(bl.exports),Al={exports:{}},Tl=Ar,Bl=T,Cl=Xe.f;Tl({target:"Object",stat:!0,forced:Object.defineProperty!==Cl,sham:!Bl},{defineProperty:Cl});var Rl=tt.Object,Il=Al.exports=function(t,e,r){return Rl.defineProperty(t,e,r)};Rl.defineProperty.sham&&(Il.sham=!0);var Ll=Al.exports,Ml=e(Ll),zl=Ar,jl=i,Nl=ro,Pl=Q,Dl=Jt,Fl=Fr,Ul=vu,Gl=Qn,Kl=To,Vl=Vs,Zl=pt,Hl=fe("isConcatSpreadable"),Wl=Zl>=51||!jl((function(){var t=[];return t[Hl]=!1,t.concat()[0]!==t})),Jl=function(t){if(!Pl(t))return!1;var e=t[Hl];return void 0!==e?!!e:Nl(t)};zl({target:"Array",proto:!0,arity:1,forced:!Wl||!Vl("concat")},{concat:function(t){var e,r,n,i,o,a=Dl(this),s=Kl(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(Jl(o=-1===e?a:arguments[e]))for(i=Fl(o),Ul(u+i),r=0;r<i;r++,u++)r in o&&Gl(s,u,o[r]);else Ul(u+1),Gl(s,u++,o);return s.length=u,s}}),xi("asyncIterator"),xi("hasInstance"),xi("isConcatSpreadable"),xi("iterator"),xi("match"),xi("matchAll"),xi("replace"),xi("search"),xi("species"),xi("split");var Yl=Bi;xi("toPrimitive"),Yl();var Xl=ot,$l=Pi;xi("toStringTag"),$l(Xl("Symbol"),"Symbol"),xi("unscopables"),Pi(n.JSON,"JSON",!0);var ql=tt.Symbol,Ql=fe,tf=Xe.f,ef=Ql("metadata"),rf=Function.prototype;void 0===rf[ef]&&tf(rf,ef,{value:null}),xi("asyncDispose"),xi("dispose"),xi("metadata");var nf=ql,of=v,af=ot("Symbol"),sf=af.keyFor,uf=of(af.prototype.valueOf),cf=af.isRegisteredSymbol||function(t){try{return void 0!==sf(uf(t))}catch(e){return!1}};Ar({target:"Symbol",stat:!0},{isRegisteredSymbol:cf});for(var lf=Zt,ff=ot,hf=v,df=xt,pf=fe,vf=ff("Symbol"),gf=vf.isWellKnownSymbol,_f=ff("Object","getOwnPropertyNames"),yf=hf(vf.prototype.valueOf),mf=lf("wks"),bf=0,wf=_f(vf),kf=wf.length;bf<kf;bf++)try{var Sf=wf[bf];df(vf[Sf])&&pf(Sf)}catch(dC){}var xf=function(t){if(gf&&gf(t))return!0;try{for(var e=yf(t),r=0,n=_f(mf),i=n.length;r<i;r++)if(mf[n[r]]==e)return!0}catch(dC){}return!1};Ar({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:xf}),xi("matcher"),xi("observable"),Ar({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:cf}),Ar({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:xf}),xi("metadataKey"),xi("patternMatch"),xi("replaceAll");var Ef=e(nf),Of=v,Af=Rr,Tf=mn,Bf=W,Cf=Of("".charAt),Rf=Of("".charCodeAt),If=Of("".slice),Lf=function(t){return function(e,r){var n,i,o=Tf(Bf(e)),a=Af(r),s=o.length;return a<0||a>=s?t?"":void 0:(n=Rf(o,a))<55296||n>56319||a+1===s||(i=Rf(o,a+1))<56320||i>57343?t?Cf(o,a):n:t?If(o,a,a+2):i-56320+(n-55296<<10)+65536}},Mf={codeAt:Lf(!1),charAt:Lf(!0)}.charAt,zf=mn,jf=to,Nf=Rc,Pf=Ic,Df="String Iterator",Ff=jf.set,Uf=jf.getterFor(Df);Nf(String,"String",(function(t){Ff(this,{type:Df,string:zf(t),index:0})}),(function(){var t,e=Uf(this),r=e.string,n=e.index;return n>=r.length?Pf(void 0,!0):(t=Mf(r,n),e.index+=t.length,Pf(t,!1))}));var Gf=e(vi.f("iterator"));function Kf(t){return(Kf="function"==typeof Ef&&"symbol"==typeof Gf?function(t){return typeof t}:function(t){return t&&"function"==typeof Ef&&t.constructor===Ef&&t!==Ef.prototype?"symbol":typeof t})(t)}var Vf=e(vi.f("toPrimitive"));function Zf(t){var e=function(t,e){if("object"!==Kf(t)||null===t)return t;var r=t[Vf];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Kf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Kf(e)?e:String(e)}function Hf(t,e,r){return(e=Zf(e))in t?Ml(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wf(t,e){var r=sn(t);if(Fs){var n=Fs(t);e&&(n=qs(n).call(n,(function(e){return uu(t,e).enumerable}))),Au(r).apply(r,n)}return r}function Jf(t){for(var e=1;e<arguments.length;e++){var r,n,i=null!=arguments[e]?arguments[e]:{};e%2?ul(r=Wf(Object(i),!0)).call(r,(function(e){Hf(t,e,i[e])})):ml?Ol(t,ml(i)):ul(n=Wf(Object(i))).call(n,(function(e){Ml(t,e,uu(i,e))}))}return t}Ar({target:"Object",stat:!0,sham:!T},{create:Zn});var Yf=tt.Object,Xf=function(t,e){return Yf.create(t,e)},$f=e(Xf),qf=Jt,Qf=Ku,th=zu;Ar({target:"Object",stat:!0,forced:i((function(){Qf(1)})),sham:!th},{getPrototypeOf:function(t){return Qf(qf(t))}});var eh=e(tt.Object.getPrototypeOf);Ar({target:"Object",stat:!0},{setPrototypeOf:pc});var rh=e(tt.Object.setPrototypeOf),nh=$t,ih=pl,oh=A,ah=Xe,sh=Q,uh=vr,ch=Error,lh=v("".replace),fh=String(ch("zxcasd").stack),hh=/\n\s*at [^:]*:[^\n]*/,dh=hh.test(fh),ph=P,vh=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",ph(1,7)),7!==t.stack)})),gh=vr,_h=function(t,e){if(dh&&"string"==typeof t&&!ch.prepareStackTrace)for(;e--;)t=lh(t,hh,"");return t},yh=vh,mh=Error.captureStackTrace,bh=Tu,wh=fe("iterator"),kh=Array.prototype,Sh=function(t){return void 0!==t&&(bh.Array===t||kh[wh]===t)},xh=gn,Eh=Lt,Oh=V,Ah=Tu,Th=fe("iterator"),Bh=function(t){if(!Oh(t))return Eh(t,Th)||Eh(t,"@@iterator")||Ah[xh(t)]},Ch=R,Rh=Ct,Ih=er,Lh=Ot,Mh=Bh,zh=TypeError,jh=function(t,e){var r=arguments.length<2?Mh(t):e;if(Rh(r))return Ih(Ch(r,t));throw zh(Lh(t)+" is not iterable")},Nh=R,Ph=er,Dh=Lt,Fh=function(t,e,r){var n,i;Ph(t);try{if(!(n=Dh(t,"return"))){if("throw"===e)throw r;return r}n=Nh(n,t)}catch(dC){i=!0,n=dC}if("throw"===e)throw r;if(i)throw n;return Ph(n),r},Uh=Ye,Gh=R,Kh=er,Vh=Ot,Zh=Sh,Hh=Fr,Wh=at,Jh=jh,Yh=Bh,Xh=Fh,$h=TypeError,qh=function(t,e){this.stopped=t,this.result=e},Qh=qh.prototype,td=function(t,e,r){var n,i,o,a,s,u,c,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=Uh(e,l),g=function(t){return n&&Xh(n,"normal",t),new qh(!0,t)},_=function(t){return f?(Kh(t),p?v(t[0],t[1],g):v(t[0],t[1])):p?v(t,g):v(t)};if(h)n=t.iterator;else if(d)n=t;else{if(!(i=Yh(t)))throw $h(Vh(t)+" is not iterable");if(Zh(i)){for(o=0,a=Hh(t);a>o;o++)if((s=_(t[o]))&&Wh(Qh,s))return s;return new qh(!1)}n=Jh(t,i)}for(u=h?t.next:n.next;!(c=Gh(u,n)).done;){try{s=_(c.value)}catch(dC){Xh(n,"throw",dC)}if("object"==typeof s&&s&&Wh(Qh,s))return s}return new qh(!1)},ed=mn,rd=Ar,nd=at,id=Ku,od=pc,ad=function(t,e,r){for(var n=ih(e),i=ah.f,o=oh.f,a=0;a<n.length;a++){var s=n[a];nh(t,s)||r&&nh(r,s)||i(t,s,o(e,s))}},sd=Zn,ud=vr,cd=P,ld=function(t,e){sh(e)&&"cause"in e&&uh(t,"cause",e.cause)},fd=function(t,e,r,n){yh&&(mh?mh(t,e):gh(t,"stack",_h(r,n)))},hd=td,dd=function(t,e){return void 0===t?arguments.length<2?"":e:ed(t)},pd=fe("toStringTag"),vd=Error,gd=[].push,_d=function(t,e){var r,n=nd(yd,this);od?r=od(vd(),n?id(this):yd):(r=n?this:sd(yd),ud(r,pd,"Error")),void 0!==e&&ud(r,"message",dd(e)),fd(r,_d,r.stack,1),arguments.length>2&&ld(r,arguments[2]);var i=[];return hd(t,gd,{that:i}),ud(r,"errors",i),r};od?od(_d,vd):ad(_d,vd,{name:!0});var yd=_d.prototype=sd(vd.prototype,{constructor:cd(1,_d),message:cd(1,""),name:cd(1,"AggregateError")});rd({global:!0,constructor:!0,arity:2},{AggregateError:_d});var md,bd,wd,kd,Sd="process"===m(n.process),xd=ot,Ed=pi,Od=T,Ad=fe("species"),Td=function(t){var e=xd(t);Od&&e&&!e[Ad]&&Ed(e,Ad,{configurable:!0,get:function(){return this}})},Bd=at,Cd=TypeError,Rd=function(t,e){if(Bd(e,t))return t;throw Cd("Incorrect invocation")},Id=wo,Ld=Ot,Md=TypeError,zd=function(t){if(Id(t))return t;throw Md(Ld(t)+" is not a constructor")},jd=er,Nd=zd,Pd=V,Dd=fe("species"),Fd=function(t,e){var r,n=jd(t).constructor;return void 0===n||Pd(r=jd(n)[Dd])?e:Nd(r)},Ud=TypeError,Gd=function(t,e){if(t<e)throw Ud("Not enough arguments");return t},Kd=/(?:ipad|iphone|ipod).*applewebkit/i.test(st),Vd=n,Zd=l,Hd=Ye,Wd=O,Jd=$t,Yd=i,Xd=Tn,$d=as,qd=Ee,Qd=Gd,tp=Kd,ep=Sd,rp=Vd.setImmediate,np=Vd.clearImmediate,ip=Vd.process,op=Vd.Dispatch,ap=Vd.Function,sp=Vd.MessageChannel,up=Vd.String,cp=0,lp={},fp="onreadystatechange";Yd((function(){md=Vd.location}));var hp=function(t){if(Jd(lp,t)){var e=lp[t];delete lp[t],e()}},dp=function(t){return function(){hp(t)}},pp=function(t){hp(t.data)},vp=function(t){Vd.postMessage(up(t),md.protocol+"//"+md.host)};rp&&np||(rp=function(t){Qd(arguments.length,1);var e=Wd(t)?t:ap(t),r=$d(arguments,1);return lp[++cp]=function(){Zd(e,void 0,r)},bd(cp),cp},np=function(t){delete lp[t]},ep?bd=function(t){ip.nextTick(dp(t))}:op&&op.now?bd=function(t){op.now(dp(t))}:sp&&!tp?(kd=(wd=new sp).port2,wd.port1.onmessage=pp,bd=Hd(kd.postMessage,kd)):Vd.addEventListener&&Wd(Vd.postMessage)&&!Vd.importScripts&&md&&"file:"!==md.protocol&&!Yd(vp)?(bd=vp,Vd.addEventListener("message",pp,!1)):bd=fp in qd("script")?function(t){Xd.appendChild(qd("script"))[fp]=function(){Xd.removeChild(this),hp(t)}}:function(t){setTimeout(dp(t),0)});var gp={set:rp,clear:np},_p=function(){this.head=null,this.tail=null};_p.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var yp,mp,bp,wp,kp,Sp=_p,xp=/ipad|iphone|ipod/i.test(st)&&"undefined"!=typeof Pebble,Ep=/web0s(?!.*chrome)/i.test(st),Op=n,Ap=Ye,Tp=A.f,Bp=gp.set,Cp=Sp,Rp=Kd,Ip=xp,Lp=Ep,Mp=Sd,zp=Op.MutationObserver||Op.WebKitMutationObserver,jp=Op.document,Np=Op.process,Pp=Op.Promise,Dp=Tp(Op,"queueMicrotask"),Fp=Dp&&Dp.value;if(!Fp){var Up=new Cp,Gp=function(){var t,e;for(Mp&&(t=Np.domain)&&t.exit();e=Up.get();)try{e()}catch(dC){throw Up.head&&yp(),dC}t&&t.enter()};Rp||Mp||Lp||!zp||!jp?!Ip&&Pp&&Pp.resolve?((wp=Pp.resolve(void 0)).constructor=Pp,kp=Ap(wp.then,wp),yp=function(){kp(Gp)}):Mp?yp=function(){Np.nextTick(Gp)}:(Bp=Ap(Bp,Op),yp=function(){Bp(Gp)}):(mp=!0,bp=jp.createTextNode(""),new zp(Gp).observe(bp,{characterData:!0}),yp=function(){bp.data=mp=!mp}),Fp=function(t){Up.head||yp(),Up.add(t)}}var Kp=Fp,Vp=function(t){try{return{error:!1,value:t()}}catch(dC){return{error:!0,value:dC}}},Zp=n.Promise,Hp="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Wp=!Hp&&!Sd&&"object"==typeof window&&"object"==typeof document,Jp=n,Yp=Zp,Xp=O,$p=Ze,qp=ao,Qp=fe,tv=Wp,ev=Hp,rv=pt,nv=Yp&&Yp.prototype,iv=Qp("species"),ov=!1,av=Xp(Jp.PromiseRejectionEvent),sv={CONSTRUCTOR:$p("Promise",(function(){var t=qp(Yp),e=t!==String(Yp);if(!e&&66===rv)return!0;if(!nv.catch||!nv.finally)return!0;if(!rv||rv<51||!/native code/.test(t)){var r=new Yp((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[iv]=n,!(ov=r.then((function(){}))instanceof n))return!0}return!e&&(tv||ev)&&!av})),REJECTION_EVENT:av,SUBCLASSING:ov},uv={},cv=Ct,lv=TypeError,fv=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw lv("Bad Promise constructor");e=t,r=n})),this.resolve=cv(e),this.reject=cv(r)};uv.f=function(t){return new fv(t)};var hv,dv,pv=Ar,vv=Sd,gv=n,_v=R,yv=hi,mv=Pi,bv=Td,wv=Ct,kv=O,Sv=Q,xv=Rd,Ev=Fd,Ov=gp.set,Av=Kp,Tv=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(dC){}},Bv=Vp,Cv=Sp,Rv=to,Iv=Zp,Lv=sv,Mv=uv,zv="Promise",jv=Lv.CONSTRUCTOR,Nv=Lv.REJECTION_EVENT,Pv=Rv.getterFor(zv),Dv=Rv.set,Fv=Iv&&Iv.prototype,Uv=Iv,Gv=Fv,Kv=gv.TypeError,Vv=gv.document,Zv=gv.process,Hv=Mv.f,Wv=Hv,Jv=!!(Vv&&Vv.createEvent&&gv.dispatchEvent),Yv="unhandledrejection",Xv=function(t){var e;return!(!Sv(t)||!kv(e=t.then))&&e},$v=function(t,e){var r,n,i,o=e.value,a=1===e.state,s=a?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{s?(a||(2===e.rejection&&rg(e),e.rejection=1),!0===s?r=o:(l&&l.enter(),r=s(o),l&&(l.exit(),i=!0)),r===t.promise?c(Kv("Promise-chain cycle")):(n=Xv(r))?_v(n,r,u,c):u(r)):c(o)}catch(dC){l&&!i&&l.exit(),c(dC)}},qv=function(t,e){t.notified||(t.notified=!0,Av((function(){for(var r,n=t.reactions;r=n.get();)$v(r,t);t.notified=!1,e&&!t.rejection&&tg(t)})))},Qv=function(t,e,r){var n,i;Jv?((n=Vv.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),gv.dispatchEvent(n)):n={promise:e,reason:r},!Nv&&(i=gv["on"+t])?i(n):t===Yv&&Tv("Unhandled promise rejection",r)},tg=function(t){_v(Ov,gv,(function(){var e,r=t.facade,n=t.value;if(eg(t)&&(e=Bv((function(){vv?Zv.emit("unhandledRejection",n,r):Qv(Yv,r,n)})),t.rejection=vv||eg(t)?2:1,e.error))throw e.value}))},eg=function(t){return 1!==t.rejection&&!t.parent},rg=function(t){_v(Ov,gv,(function(){var e=t.facade;vv?Zv.emit("rejectionHandled",e):Qv("rejectionhandled",e,t.value)}))},ng=function(t,e,r){return function(n){t(e,n,r)}},ig=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,qv(t,!0))},og=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Kv("Promise can't be resolved itself");var n=Xv(e);n?Av((function(){var r={done:!1};try{_v(n,e,ng(og,r,t),ng(ig,r,t))}catch(dC){ig(r,dC,t)}})):(t.value=e,t.state=1,qv(t,!1))}catch(dC){ig({done:!1},dC,t)}}};jv&&(Gv=(Uv=function(t){xv(this,Gv),wv(t),_v(hv,this);var e=Pv(this);try{t(ng(og,e),ng(ig,e))}catch(dC){ig(e,dC)}}).prototype,(hv=function(t){Dv(this,{type:zv,done:!1,notified:!1,parent:!1,reactions:new Cv,rejection:!1,state:0,value:void 0})}).prototype=yv(Gv,"then",(function(t,e){var r=Pv(this),n=Hv(Ev(this,Uv));return r.parent=!0,n.ok=!kv(t)||t,n.fail=kv(e)&&e,n.domain=vv?Zv.domain:void 0,0===r.state?r.reactions.add(n):Av((function(){$v(n,r)})),n.promise})),dv=function(){var t=new hv,e=Pv(t);this.promise=t,this.resolve=ng(og,e),this.reject=ng(ig,e)},Mv.f=Hv=function(t){return t===Uv||undefined===t?new dv(t):Wv(t)}),pv({global:!0,constructor:!0,wrap:!0,forced:jv},{Promise:Uv}),mv(Uv,zv,!1,!0),bv(zv);var ag=fe("iterator"),sg=!1;try{var ug=0,cg={next:function(){return{done:!!ug++}},return:function(){sg=!0}};cg[ag]=function(){return this},Array.from(cg,(function(){throw 2}))}catch(dC){}var lg=function(t,e){if(!e&&!sg)return!1;var r=!1;try{var n={};n[ag]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(dC){}return r},fg=Zp,hg=sv.CONSTRUCTOR||!lg((function(t){fg.all(t).then(void 0,(function(){}))})),dg=R,pg=Ct,vg=uv,gg=Vp,_g=td;Ar({target:"Promise",stat:!0,forced:hg},{all:function(t){var e=this,r=vg.f(e),n=r.resolve,i=r.reject,o=gg((function(){var r=pg(e.resolve),o=[],a=0,s=1;_g(t,(function(t){var u=a++,c=!1;s++,dg(r,e,t).then((function(t){c||(c=!0,o[u]=t,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise}});var yg=Ar,mg=sv.CONSTRUCTOR;Zp&&Zp.prototype,yg({target:"Promise",proto:!0,forced:mg,real:!0},{catch:function(t){return this.then(void 0,t)}});var bg=R,wg=Ct,kg=uv,Sg=Vp,xg=td;Ar({target:"Promise",stat:!0,forced:hg},{race:function(t){var e=this,r=kg.f(e),n=r.reject,i=Sg((function(){var i=wg(e.resolve);xg(t,(function(t){bg(i,e,t).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var Eg=R,Og=uv;Ar({target:"Promise",stat:!0,forced:sv.CONSTRUCTOR},{reject:function(t){var e=Og.f(this);return Eg(e.reject,void 0,t),e.promise}});var Ag=er,Tg=Q,Bg=uv,Cg=function(t,e){if(Ag(t),Tg(e)&&e.constructor===t)return e;var r=Bg.f(t);return(0,r.resolve)(e),r.promise},Rg=Ar,Ig=Zp,Lg=sv.CONSTRUCTOR,Mg=Cg,zg=ot("Promise"),jg=!Lg;Rg({target:"Promise",stat:!0,forced:true},{resolve:function(t){return Mg(jg&&this===zg?Ig:this,t)}});var Ng=R,Pg=Ct,Dg=uv,Fg=Vp,Ug=td;Ar({target:"Promise",stat:!0,forced:hg},{allSettled:function(t){var e=this,r=Dg.f(e),n=r.resolve,i=r.reject,o=Fg((function(){var r=Pg(e.resolve),i=[],o=0,a=1;Ug(t,(function(t){var s=o++,u=!1;a++,Ng(r,e,t).then((function(t){u||(u=!0,i[s]={status:"fulfilled",value:t},--a||n(i))}),(function(t){u||(u=!0,i[s]={status:"rejected",reason:t},--a||n(i))}))})),--a||n(i)}));return o.error&&i(o.value),r.promise}});var Gg=R,Kg=Ct,Vg=ot,Zg=uv,Hg=Vp,Wg=td,Jg="No one promise resolved";Ar({target:"Promise",stat:!0,forced:hg},{any:function(t){var e=this,r=Vg("AggregateError"),n=Zg.f(e),i=n.resolve,o=n.reject,a=Hg((function(){var n=Kg(e.resolve),a=[],s=0,u=1,c=!1;Wg(t,(function(t){var l=s++,f=!1;u++,Gg(n,e,t).then((function(t){f||c||(c=!0,i(t))}),(function(t){f||c||(f=!0,a[l]=t,--u||o(new r(a,Jg)))}))})),--u||o(new r(a,Jg))}));return a.error&&o(a.value),n.promise}});var Yg=Ar,Xg=Zp,$g=i,qg=ot,Qg=O,t_=Fd,e_=Cg,r_=Xg&&Xg.prototype;Yg({target:"Promise",proto:!0,real:!0,forced:!!Xg&&$g((function(){r_.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=t_(this,qg("Promise")),r=Qg(t);return this.then(r?function(r){return e_(e,t()).then((function(){return r}))}:t,r?function(r){return e_(e,t()).then((function(){throw r}))}:t)}});var n_=tt.Promise,i_=uv;Ar({target:"Promise",stat:!0},{withResolvers:function(){var t=i_.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var o_=n_,a_=uv,s_=Vp;Ar({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=a_.f(this),r=s_(t);return(r.error?e.reject:e.resolve)(r.value),e.promise}});var u_=o_,c_=e(u_),l_=Ar,f_=ro,h_=v([].reverse),d_=[1,2];l_({target:"Array",proto:!0,forced:String(d_)===String(d_.reverse())},{reverse:function(){return f_(this)&&(this.length=this.length),h_(this)}});var p_=Ws("Array").reverse,v_=at,g_=p_,__=Array.prototype,y_=e((function(t){var e=t.reverse;return t===__||v_(__,t)&&e===__.reverse?g_:e})),m_=Ar,b_=ro,w_=wo,k_=Q,S_=zr,x_=Fr,E_=X,O_=Qn,A_=fe,T_=as,B_=Vs("slice"),C_=A_("species"),R_=Array,I_=Math.max;m_({target:"Array",proto:!0,forced:!B_},{slice:function(t,e){var r,n,i,o=E_(this),a=x_(o),s=S_(t,a),u=S_(void 0===e?a:e,a);if(b_(o)&&(r=o.constructor,(w_(r)&&(r===R_||b_(r.prototype))||k_(r)&&null===(r=r[C_]))&&(r=void 0),r===R_||void 0===r))return T_(o,s,u);for(n=new(void 0===r?R_:r)(I_(u-s,0)),i=0;s<u;s++,i++)s in o&&O_(n,i,o[s]);return n.length=i,n}});var L_=Ws("Array").slice,M_=at,z_=L_,j_=Array.prototype,N_=function(t){var e=t.slice;return t===j_||M_(j_,t)&&e===j_.slice?z_:e},P_=e(N_);function D_(){D_=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Ml||function(t,e,r){t[e]=r.value},o="function"==typeof Ef?Ef:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Ml(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(R){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof _?e:_,a=$f(o.prototype),s=new B(n||[]);return i(a,"_invoke",{value:E(t,r,s)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}e.wrap=l;var h="suspendedStart",d="suspendedYield",p="executing",v="completed",g={};function _(){}function y(){}function m(){}var b={};c(b,a,(function(){return this}));var w=eh&&eh(eh(C([])));w&&w!==r&&n.call(w,a)&&(b=w);var k=m.prototype=_.prototype=$f(b);function S(t){var e;ul(e=["next","throw","return"]).call(e,(function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(i,o,a,s){var u=f(t[i],t,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==Kf(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,r,n){var i=h;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=O(s,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var c=f(e,r,n);if("normal"===c.type){if(i=n.done?v:d,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function O(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=f(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function A(t){var e,r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),Au(e=this.tryEntries).call(e,r)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function B(t){this.tryEntries=[{tryLoc:"root"}],ul(t).call(t,A,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(Kf(e)+" is not iterable")}return y.prototype=m,i(k,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:y,configurable:!0}),y.displayName=c(m,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return rh?rh(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=$f(k),t},e.awrap=function(t){return{__await:t}},S(x.prototype),c(x.prototype,s,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,i,o){void 0===o&&(o=c_);var a=new x(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(k),c(k,u,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)Au(r).call(r,n);return y_(r).call(r),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,B.prototype={constructor:B,reset:function(e){var r;if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,ul(r=this.tryEntries).call(r,T),!e)for(var i in this)"t"===i.charAt(0)&&n.call(this,i)&&!isNaN(+P_(i).call(i,1))&&(this[i]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function F_(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(dC){return void r(dC)}s.done?e(u):c_.resolve(u).then(n,i)}function U_(t){return function(){var e=this,r=arguments;return new c_((function(n,i){var o=t.apply(e,r);function a(t){F_(o,n,i,a,s,"next",t)}function s(t){F_(o,n,i,a,s,"throw",t)}a(void 0)}))}}function G_(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function K_(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Ml(t,Zf(n.key),n)}}function V_(t,e,r){return e&&K_(t.prototype,e),r&&K_(t,r),Ml(t,"prototype",{writable:!1}),t}function Z_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var H_=v,W_=Ct,J_=Q,Y_=$t,X_=as,$_=o,q_=Function,Q_=H_([].concat),ty=H_([].join),ey={},ry=$_?q_.bind:function(t){var e=W_(this),r=e.prototype,n=X_(arguments,1),i=function(){var r=Q_(n,X_(arguments));return this instanceof i?function(t,e,r){if(!Y_(ey,e)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";ey[e]=q_("C,a","return new C("+ty(n,",")+")")}return ey[e](t,r)}(e,r.length,r):e.apply(t,r)};return J_(r)&&(i.prototype=r),i},ny=ry;Ar({target:"Function",proto:!0,forced:Function.bind!==ny},{bind:ny});var iy=Ws("Function").bind,oy=at,ay=iy,sy=Function.prototype,uy=function(t){var e=t.bind;return t===sy||oy(sy,t)&&e===sy.bind?ay:e},cy=e(uy);function ly(t,e){var r;return(ly=rh?cy(r=rh).call(r):function(t,e){return t.__proto__=e,t})(t,e)}function fy(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=$f(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Ml(t,"prototype",{writable:!1}),e&&ly(t,e)}var hy=Ar,dy=l,py=ry,vy=zd,gy=er,_y=Q,yy=Zn,my=i,by=ot("Reflect","construct"),wy=Object.prototype,ky=[].push,Sy=my((function(){function t(){}return!(by((function(){}),[],t)instanceof t)})),xy=!my((function(){by((function(){}))})),Ey=Sy||xy;hy({target:"Reflect",stat:!0,forced:Ey,sham:Ey},{construct:function(t,e){vy(t),gy(e);var r=arguments.length<3?t:vy(arguments[2]);if(xy&&!Sy)return by(t,e,r);if(t===r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return dy(ky,n,e),new(dy(py,t,n))}var i=r.prototype,o=yy(_y(i)?i:wy),a=dy(t,o,e);return _y(a)?a:o}});var Oy=e(tt.Reflect.construct);function Ay(t){var e;return(Ay=rh?cy(e=eh).call(e):function(t){return t.__proto__||eh(t)})(t)}function Ty(t){var e=function(){if("undefined"==typeof Reflect||!Oy)return!1;if(Oy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Oy(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Ay(t);if(e){var i=Ay(this).constructor;r=Oy(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Kf(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Z_(t)}(this,r)}}var By=e(Ll),Cy=e(su),Ry=tt,Iy=l;Ry.JSON||(Ry.JSON={stringify:JSON.stringify});var Ly=function(t,e,r){return Iy(Ry.JSON.stringify,null,arguments)},My=e(Ly),zy=e(sl),jy=e(an),Ny=e(u_),Py="\t\n\v\f\r \u2028\u2029\ufeff",Dy=W,Fy=mn,Uy=Py,Gy=v("".replace),Ky=RegExp("^["+Uy+"]+"),Vy=RegExp("(^|[^"+Uy+"])["+Uy+"]+$"),Zy=function(t){return function(e){var r=Fy(Dy(e));return 1&t&&(r=Gy(r,Ky,"")),2&t&&(r=Gy(r,Vy,"$1")),r}},Hy={start:Zy(1),end:Zy(2),trim:Zy(3)},Wy=n,Jy=i,Yy=v,Xy=mn,$y=Hy.trim,qy=Py,Qy=Wy.parseInt,tm=Wy.Symbol,em=tm&&tm.iterator,rm=/^[+-]?0x/i,nm=Yy(rm.exec),im=8!==Qy(qy+"08")||22!==Qy(qy+"0x16")||em&&!Jy((function(){Qy(Object(em))}))?function(t,e){var r=$y(Xy(t));return Qy(r,e>>>0||(nm(rm,r)?16:10))}:Qy;Ar({global:!0,forced:parseInt!==im},{parseInt:im});var om=e(tt.parseInt),am=jo.map;Ar({target:"Array",proto:!0,forced:!Vs("map")},{map:function(t){return am(this,t,arguments.length>1?arguments[1]:void 0)}});var sm=Ws("Array").map,um=at,cm=sm,lm=Array.prototype,fm=e((function(t){var e=t.map;return t===lm||um(lm,t)&&e===lm.map?cm:e})),hm=e(N_),dm=jo.every;Ar({target:"Array",proto:!0,forced:!$c("every")},{every:function(t){return dm(this,t,arguments.length>1?arguments[1]:void 0)}});var pm=Ws("Array").every,vm=at,gm=pm,_m=Array.prototype,ym=e((function(t){var e=t.every;return t===_m||vm(_m,t)&&e===_m.every?gm:e})),mm=Ws("Array").concat,bm=at,wm=mm,km=Array.prototype,Sm=e((function(t){var e=t.concat;return t===km||bm(km,t)&&e===km.concat?wm:e})),xm=e(Xf),Em=e(Ds),Om={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new i(n,o||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function s(){this._events=new n,this._eventsCount=0}xm&&(n.prototype=xm(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?hm(n).call(n,1):n);return Em?Sm(i).call(i,Em(t)):i},s.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},s.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},s.prototype.emit=function(t,e,n,i,o,a){var s=r?r+t:t;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,i),!0;case 5:return l.fn.call(l.context,e,n,i,o),!0;case 6:return l.fn.call(l.context,e,n,i,o,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var h,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(t,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,e);break;case 3:l[c].fn.call(l[c].context,e,n);break;case 4:l[c].fn.call(l[c].context,e,n,i);break;default:if(!u)for(h=1,u=new Array(f-1);h<f;h++)u[h-1]=arguments[h];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},s.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},s.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==e||i&&!s.once||n&&s.context!==n||a(this,o);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==e||i&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,t.exports=s}(Om);var Am=function(t){fy(n,t);var e,r=Ty(n);function n(){var t,e;G_(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Hf(Z_(e=r.call.apply(r,Sm(t=[this]).call(t,o))),"monitor",void 0),e}return V_(n,[{key:"isOpen",value:function(){return this._enable}},{key:"isSupported",value:(e=U_(D_().mark((function t(){return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",!0);case 1:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})},{key:"_reportName",get:function(){return"plugin<".concat(this.name,">")}}]),n}(Om.exports.EventEmitter),Tm=e(Bh);Ar({target:"Array",stat:!0},{isArray:ro});var Bm=e(tt.Array.isArray),Cm=er,Rm=Fh,Im=Ye,Lm=R,Mm=Jt,zm=function(t,e,r,n){try{return n?e(Cm(r)[0],r[1]):e(r)}catch(dC){Rm(t,"throw",dC)}},jm=Sh,Nm=wo,Pm=Fr,Dm=Qn,Fm=jh,Um=Bh,Gm=Array,Km=function(t){var e=Mm(t),r=Nm(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Im(i,n>2?arguments[2]:void 0));var a,s,u,c,l,f,h=Um(e),d=0;if(!h||this===Gm&&jm(h))for(a=Pm(e),s=r?new this(a):Gm(a);a>d;d++)f=o?i(e[d],d):e[d],Dm(s,d,f);else for(l=(c=Fm(e,h)).next,s=r?new this:[];!(u=Lm(l,c)).done;d++)f=o?zm(c,i,[u.value,d],!0):u.value,Dm(s,d,f);return s.length=d,s};Ar({target:"Array",stat:!0,forced:!lg((function(t){Array.from(t)}))},{from:Km});var Vm=e(tt.Array.from);function Zm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Hm={exports:{}},Wm=i((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Jm=i,Ym=Q,Xm=m,$m=Wm,qm=Object.isExtensible,Qm=Jm((function(){qm(1)}))||$m?function(t){return!!Ym(t)&&((!$m||"ArrayBuffer"!==Xm(t))&&(!qm||qm(t)))}:qm,tb=!i((function(){return Object.isExtensible(Object.preventExtensions({}))})),eb=Ar,rb=v,nb=Hr,ib=Q,ob=$t,ab=Xe.f,sb=Hn,ub=Yn,cb=Qm,lb=tb,fb=!1,hb=re("meta"),db=0,pb=function(t){ab(t,hb,{value:{objectID:"O"+db++,weakData:{}}})},vb=Hm.exports={enable:function(){vb.enable=function(){},fb=!0;var t=sb.f,e=rb([].splice),r={};r[hb]=1,t(r).length&&(sb.f=function(r){for(var n=t(r),i=0,o=n.length;i<o;i++)if(n[i]===hb){e(n,i,1);break}return n},eb({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ub.f}))},fastKey:function(t,e){if(!ib(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!ob(t,hb)){if(!cb(t))return"F";if(!e)return"E";pb(t)}return t[hb].objectID},getWeakData:function(t,e){if(!ob(t,hb)){if(!cb(t))return!0;if(!e)return!1;pb(t)}return t[hb].weakData},onFreeze:function(t){return lb&&fb&&cb(t)&&!ob(t,hb)&&pb(t),t}};nb[hb]=!0;var gb=Hm.exports,_b=Ar,yb=n,mb=gb,bb=i,wb=vr,kb=td,Sb=Rd,xb=O,Eb=Q,Ob=V,Ab=Pi,Tb=Xe.f,Bb=jo.forEach,Cb=T,Rb=to.set,Ib=to.getterFor,Lb=hi,Mb=Zn,zb=pi,jb=function(t,e,r){for(var n in e)r&&r.unsafe&&t[n]?t[n]=e[n]:Lb(t,n,e[n],r);return t},Nb=Ye,Pb=Rd,Db=V,Fb=td,Ub=Rc,Gb=Ic,Kb=Td,Vb=T,Zb=gb.fastKey,Hb=to.set,Wb=to.getterFor,Jb={getConstructor:function(t,e,r,n){var i=t((function(t,i){Pb(t,o),Hb(t,{type:e,index:Mb(null),first:void 0,last:void 0,size:0}),Vb||(t.size=0),Db(i)||Fb(i,t[n],{that:t,AS_ENTRIES:r})})),o=i.prototype,a=Wb(e),s=function(t,e,r){var n,i,o=a(t),s=u(t,e);return s?s.value=r:(o.last=s={index:i=Zb(e,!0),key:e,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=s),n&&(n.next=s),Vb?o.size++:t.size++,"F"!==i&&(o.index[i]=s)),t},u=function(t,e){var r,n=a(t),i=Zb(e);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key===e)return r};return jb(o,{clear:function(){for(var t=a(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,Vb?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=u(e,t);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),Vb?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=Nb(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),jb(o,r?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),Vb&&zb(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(t,e,r){var n=e+" Iterator",i=Wb(e),o=Wb(n);Ub(t,e,(function(t,e){Hb(this,{type:n,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?Gb("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=void 0,Gb(void 0,!0))}),r?"entries":"values",!r,!0),Kb(e)}};(function(t,e,r){var n,i=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),a=i?"set":"add",s=yb[t],u=s&&s.prototype,c={};if(Cb&&xb(s)&&(o||u.forEach&&!bb((function(){(new s).entries().next()})))){var l=(n=e((function(e,r){Rb(Sb(e,l),{type:t,collection:new s}),Ob(r)||kb(r,e[a],{that:e,AS_ENTRIES:i})}))).prototype,f=Ib(t);Bb(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"===t||"set"===t;!(t in u)||o&&"clear"===t||wb(l,t,(function(r,n){var i=f(this).collection;if(!e&&o&&!Eb(r))return"get"===t&&void 0;var a=i[t](0===r?0:r,n);return e?this:a}))})),o||Tb(l,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(e,t,i,a),mb.enable();Ab(n,t,!1,!0),c[t]=n,_b({global:!0,forced:!0},c),o||r.setStrong(n,t,i)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Jb);var Yb=tt.Map,Xb=function(t,e){return 1===e?function(e,r){return e[t](r)}:function(e,r,n){return e[t](r,n)}},$b=ot("Map"),qb={Map:$b,set:Xb("set",2),get:Xb("get",1),has:Xb("has",1),remove:Xb("delete",1),proto:$b.prototype},Qb=Ar,tw=Ct,ew=W,rw=td,nw=qb.Map,iw=qb.has,ow=qb.get,aw=qb.set,sw=v([].push);Qb({target:"Map",stat:!0,forced:true},{groupBy:function(t,e){ew(t),tw(e);var r=new nw,n=0;return rw(t,(function(t){var i=e(t,n++);iw(r,i)?sw(ow(r,i),t):aw(r,i,[t])})),r}});var uw=Yb,cw=Ye,lw=R,fw=Ct,hw=zd,dw=V,pw=td,vw=[].push,gw=function(t){var e,r,n,i,o=arguments.length,a=o>1?arguments[1]:void 0;return hw(this),(e=void 0!==a)&&fw(a),dw(t)?new this:(r=[],e?(n=0,i=cw(a,o>2?arguments[2]:void 0),pw(t,(function(t){lw(vw,r,i(t,n++))}))):pw(t,vw,{that:r}),new this(r))};Ar({target:"Map",stat:!0,forced:!0},{from:gw});var _w=as,yw=function(){return new this(_w(arguments))};Ar({target:"Map",stat:!0,forced:!0},{of:yw});var mw=Ot,bw=function(t){if("object"==typeof t&&"size"in t&&"has"in t&&"get"in t&&"set"in t&&"delete"in t&&"entries"in t)return t;throw TypeError(mw(t)+" is not a map")},ww=bw,kw=qb.remove;Ar({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,e=ww(this),r=!0,n=0,i=arguments.length;n<i;n++)t=kw(e,arguments[n]),r=r&&t;return!!r}});var Sw=bw,xw=qb.get,Ew=qb.has,Ow=qb.set;Ar({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(t,e){var r,n,i=Sw(this);return Ew(i,t)?(r=xw(i,t),"update"in e&&(r=e.update(r,t,i),Ow(i,t,r)),r):(n=e.insert(t,i),Ow(i,t,n),n)}});var Aw=R,Tw=function(t,e,r){for(var n,i,o=r?t:t.iterator,a=t.next;!(n=Aw(a,o)).done;)if(void 0!==(i=e(n.value)))return i},Bw=function(t,e,r){return r?Tw(t.entries(),(function(t){return e(t[1],t[0])}),!0):t.forEach(e)},Cw=Ye,Rw=bw,Iw=Bw;Ar({target:"Map",proto:!0,real:!0,forced:!0},{every:function(t){var e=Rw(this),r=Cw(t,arguments.length>1?arguments[1]:void 0);return!1!==Iw(e,(function(t,n){if(!r(t,n,e))return!1}),!0)}});var Lw=Ye,Mw=bw,zw=Bw,jw=qb.Map,Nw=qb.set;Ar({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var e=Mw(this),r=Lw(t,arguments.length>1?arguments[1]:void 0),n=new jw;return zw(e,(function(t,i){r(t,i,e)&&Nw(n,i,t)})),n}});var Pw=Ye,Dw=bw,Fw=Bw;Ar({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var e=Dw(this),r=Pw(t,arguments.length>1?arguments[1]:void 0),n=Fw(e,(function(t,n){if(r(t,n,e))return{value:t}}),!0);return n&&n.value}});var Uw=Ye,Gw=bw,Kw=Bw;Ar({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var e=Gw(this),r=Uw(t,arguments.length>1?arguments[1]:void 0),n=Kw(e,(function(t,n){if(r(t,n,e))return{key:n}}),!0);return n&&n.key}});var Vw=function(t,e){return t===e||t!=t&&e!=e},Zw=bw,Hw=Bw;Ar({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return!0===Hw(Zw(this),(function(e){if(Vw(e,t))return!0}),!0)}});var Ww=R,Jw=td,Yw=O,Xw=Ct,$w=qb.Map;Ar({target:"Map",stat:!0,forced:!0},{keyBy:function(t,e){var r=new(Yw(this)?this:$w);Xw(e);var n=Xw(r.set);return Jw(t,(function(t){Ww(n,r,e(t),t)})),r}});var qw=bw,Qw=Bw;Ar({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){var e=Qw(qw(this),(function(e,r){if(e===t)return{key:r}}),!0);return e&&e.key}});var tk=Ye,ek=bw,rk=Bw,nk=qb.Map,ik=qb.set;Ar({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var e=ek(this),r=tk(t,arguments.length>1?arguments[1]:void 0),n=new nk;return rk(e,(function(t,i){ik(n,r(t,i,e),t)})),n}});var ok=Ye,ak=bw,sk=Bw,uk=qb.Map,ck=qb.set;Ar({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var e=ak(this),r=ok(t,arguments.length>1?arguments[1]:void 0),n=new uk;return sk(e,(function(t,i){ck(n,i,r(t,i,e))})),n}});var lk=bw,fk=td,hk=qb.set;Ar({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var e=lk(this),r=arguments.length,n=0;n<r;)fk(arguments[n++],(function(t,r){hk(e,t,r)}),{AS_ENTRIES:!0});return e}});var dk=Ct,pk=bw,vk=Bw,gk=TypeError;Ar({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(t){var e=pk(this),r=arguments.length<2,n=r?void 0:arguments[1];if(dk(t),vk(e,(function(i,o){r?(r=!1,n=i):n=t(n,i,o,e)})),r)throw gk("Reduce of empty map with no initial value");return n}});var _k=Ye,yk=bw,mk=Bw;Ar({target:"Map",proto:!0,real:!0,forced:!0},{some:function(t){var e=yk(this),r=_k(t,arguments.length>1?arguments[1]:void 0);return!0===mk(e,(function(t,n){if(r(t,n,e))return!0}),!0)}});var bk=Ct,wk=bw,kk=TypeError,Sk=qb.get,xk=qb.has,Ek=qb.set;Ar({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,e){var r=wk(this),n=arguments.length;bk(e);var i=xk(r,t);if(!i&&n<3)throw kk("Updating absent value");var o=i?Sk(r,t):bk(n>2?arguments[2]:void 0)(t,r);return Ek(r,t,e(o,t,r)),r}});var Ok=R,Ak=Ct,Tk=O,Bk=er,Ck=TypeError,Rk=function(t,e){var r,n=Bk(this),i=Ak(n.get),o=Ak(n.has),a=Ak(n.set),s=arguments.length>2?arguments[2]:void 0;if(!Tk(e)&&!Tk(s))throw Ck("At least one callback required");return Ok(o,n,t)?(r=Ok(i,n,t),Tk(e)&&(r=e(r),Ok(a,n,t,r))):Tk(s)&&(r=s(),Ok(a,n,t,r)),r};Ar({target:"Map",proto:!0,real:!0,forced:!0},{upsert:Rk}),Ar({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:Rk});var Ik=e(uw),Lk=function(t){return t[t.CAPTURE=0]="CAPTURE",t[t.PRE_PROCESSING=1]="PRE_PROCESSING",t[t.ENCODE=2]="ENCODE",t[t.TRANSFER=3]="TRANSFER",t[t.POST_PROCESSING=4]="POST_PROCESSING",t[t.DECODE=5]="DECODE",t[t.RENDERING=6]="RENDERING",t}(Lk||{}),Mk=function(t){return t[t.STREAM_INDEX_MAIN=0]="STREAM_INDEX_MAIN",t[t.STREAM_INDEX_SCREEN=1]="STREAM_INDEX_SCREEN",t}(Mk||{}),zk=function(t){fy(r,t);var e=Ty(r);function r(){var t,n;G_(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Hf(Z_(n=e.call.apply(e,Sm(t=[this]).call(t,o))),"type",Lk.PRE_PROCESSING),n}return V_(r)}(Am);function jk(t,e,r){var n=r.value;r.value=function(){for(var t,r=this.monitor,i=this.name,o=Sm(t="".concat(i,".")).call(t,e),a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];null==r||r.report("rtc_sdk_api_call",{sdk_api_name:o,message:My(s),error_code:0});var c=n.apply(this,s);return"function"==typeof(null==c?void 0:c.then)?c.then((function(t){return null==r||r.report("rtc_sdk_callback",{sdk_callback_name:o,error_code:0,message:My(t||{})}),t})).catch((function(t){throw null==r||r.report("rtc_sdk_callback",{sdk_callback_name:o,error_code:t.code||-1,message:t.message||""}),t})):(null==r||r.report("rtc_sdk_callback",{sdk_callback_name:o,error_code:0,message:c||""}),c)}}var Nk=Ws("Array").values,Pk=gn,Dk=$t,Fk=at,Uk=Nk,Gk=Array.prototype,Kk={DOMTokenList:!0,NodeList:!0},Vk=e((function(t){var e=t.values;return t===Gk||Fk(Gk,t)&&e===Gk.values||Dk(Kk,Pk(t))?Uk:e})),Zk=Ar,Hk=Date,Wk=v(Hk.prototype.getTime);Zk({target:"Date",stat:!0},{now:function(){return Wk(new Hk)}});var Jk,Yk=e(tt.Date.now),Xk="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,$k=n,qk=l,Qk=O,tS=Xk,eS=st,rS=as,nS=Gd,iS=$k.Function,oS=/MSIE .\./.test(eS)||tS&&((Jk=$k.Bun.version.split(".")).length<3||"0"===Jk[0]&&(Jk[1]<3||"3"===Jk[1]&&"0"===Jk[2])),aS=function(t,e){var r=e?2:1;return oS?function(n,i){var o=nS(arguments.length,1)>r,a=Qk(n)?n:iS(n),s=o?rS(arguments,r):[],u=o?function(){qk(a,this,s)}:a;return e?t(u,i):t(u)}:t},sS=Ar,uS=n,cS=aS(uS.setInterval,!0);sS({global:!0,bind:!0,forced:uS.setInterval!==cS},{setInterval:cS});var lS=Ar,fS=n,hS=aS(fS.setTimeout,!0);lS({global:!0,bind:!0,forced:fS.setTimeout!==hS},{setTimeout:hS});var dS=e(tt.setTimeout),pS=Ws("Array").keys,vS=gn,gS=$t,_S=at,yS=pS,mS=Array.prototype,bS={DOMTokenList:!0,NodeList:!0},wS=e((function(t){var e=t.keys;return t===mS||_S(mS,t)&&e===mS.keys||gS(bS,vS(t))?yS:e})),kS=Zr.includes;Ar({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(t){return kS(this,t,arguments.length>1?arguments[1]:void 0)}});var SS=Ws("Array").includes,xS=Q,ES=m,OS=fe("match"),AS=function(t){var e;return xS(t)&&(void 0!==(e=t[OS])?!!e:"RegExp"===ES(t))},TS=TypeError,BS=fe("match"),CS=Ar,RS=function(t){if(AS(t))throw TS("The method doesn't accept regular expressions");return t},IS=W,LS=mn,MS=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[BS]=!1,"/./"[t](e)}catch(n){}}return!1},zS=v("".indexOf);CS({target:"String",proto:!0,forced:!MS("includes")},{includes:function(t){return!!~zS(LS(IS(this)),LS(RS(t)),arguments.length>1?arguments[1]:void 0)}});var jS,NS=Ws("String").includes,PS=at,DS=SS,FS=NS,US=Array.prototype,GS=String.prototype,KS=e((function(t){var e=t.includes;return t===US||PS(US,t)&&e===US.includes?DS:"string"==typeof t||t===GS||PS(GS,t)&&e===GS.includes?FS:e})),VS=e(uy),ZS=new Uint8Array(16);function HS(){var t,e;if(!jS&&!(jS="undefined"!=typeof crypto&&crypto.getRandomValues&&VS(t=crypto.getRandomValues).call(t,crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&VS(e=msCrypto.getRandomValues).call(e,msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return jS(ZS)}var WS=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var JS=[],YS=0;YS<256;++YS)JS.push((YS+256).toString(16).substr(1));function XS(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(JS[t[e+0]]+JS[t[e+1]]+JS[t[e+2]]+JS[t[e+3]]+"-"+JS[t[e+4]]+JS[t[e+5]]+"-"+JS[t[e+6]]+JS[t[e+7]]+"-"+JS[t[e+8]]+JS[t[e+9]]+"-"+JS[t[e+10]]+JS[t[e+11]]+JS[t[e+12]]+JS[t[e+13]]+JS[t[e+14]]+JS[t[e+15]]).toLowerCase();if(!function(t){return"string"==typeof t&&WS.test(t)}(r))throw TypeError("Stringified UUID is invalid");return r}function $S(t,e,r){var n=(t=t||{}).random||(t.rng||HS)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(var i=0;i<16;++i)e[r+i]=n[i];return e}return XS(n)}var qS=function(){return"undefined"==typeof window};function QS(t){return null==t?"undefined | null":"string"==typeof t?t:My({contentHint:t.contentHint,enabled:t.enabled,id:t.id,kind:t.kind,label:t.label,muted:t.muted,readyState:t.readyState})}function tx(t){return null==t?"undefined | null":"string"==typeof t?t:My({track:QS(t.track)})}function ex(t){return null==t?"undefined | null":"string"==typeof t?t:My({track:QS(t.track)})}var rx="@byted/ve-rtc",nx="@byted/ve-rtc-cache-size",ix=function(){function t(){G_(this,t),Hf(this,"storeKey",void 0),Hf(this,"logLevel",void 0),Hf(this,"LogfileSize",void 0),Hf(this,"db",void 0),Hf(this,"logId",void 0),Hf(this,"cacheLog",void 0),Hf(this,"cachedSize",void 0),Hf(this,"preCacheTime",void 0),Hf(this,"timer",void 0),Hf(this,"_getSize",(function(t){return new Blob(t).size/1048576})),this.storeKey="",this.logId=1,this.cacheLog="",this.logLevel="none",this.LogfileSize=100,this._createStore()}return V_(t,[{key:"_createStore",value:function(){var t=this;if(!qS()&&window.indexedDB){var e=indexedDB.open("@byted/ve-rtc");e.onupgradeneeded=function(){e.result.createObjectStore(rx);try{localStorage.removeItem(nx)}catch(dC){}},e.onerror=function(t){},e.onsuccess=function(){t.db=e.result,t._getCachedSize()}}}},{key:"_getCachedSize",value:function(){var t=this;try{var e=localStorage.getItem(nx);if(e)this.cachedSize=Number(e);else Vk(this).call(this).then((function(e){t.cachedSize=t._getSize(e),t._setCachedSize()}))}catch(dC){}}},{key:"_setCachedSize",value:function(){try{localStorage.setItem(nx,"".concat(this.cachedSize))}catch(dC){}}},{key:"_getStore",value:function(t){if(this.db)return this.db.transaction(rx,t).objectStore(rx)}},{key:"set",value:function(t){var e=this;return new Ny((function(r,n){if("none"===e.logLevel)return r();var i;if(t&&e.preCacheTime&&e.preCacheTime-Yk()<1e3)return e.cacheLog+=Sm(i="\n\n".concat(e.logId,": ")).call(i,t),e.logId++,e.timer||(e.timer=dS((function(){e.set("")}),1e3-(e.preCacheTime-Yk()))),r();clearTimeout(e.timer),e.timer=null;var o=e._getStore("readwrite");if(!o)return n("get store fail");e.cachedSize&&e.cachedSize>e.LogfileSize&&e.keyEarliest().then((function(t){e.get(t).then((function(r){e.del(t).then((function(){e.cachedSize=e.cachedSize-e._getSize(["".concat(r)]),e._setCachedSize()}))}))}));var a=o.get(e.storeKey);a.onsuccess=function(){try{var i,s,u,c,l,f=Sm(i="".concat(a.result||"")).call(i,e.cacheLog),h=t?Sm(s=Sm(u="".concat(f?"\n\n":"")).call(u,e.logId,": ")).call(s,t):"";o.put(Sm(c="".concat(f)).call(c,h),e.storeKey),t&&e.logId++,e.cacheLog="",e.cachedSize=(e.cachedSize||0)+e._getSize([Sm(l="".concat(e.cacheLog)).call(l,h)]),e._setCachedSize(),e.preCacheTime=Yk(),r()}catch(p){var d;if(!t)return n(p);e.cacheLog+=Sm(d="\n\n".concat(e.logId,": ")).call(d,t),e.logId++,n(p)}},a.onerror=function(r){var i;if(!t)return n(r);e.cacheLog+=Sm(i="\n\n".concat(e.logId,": ")).call(i,t),e.logId++,n(r)}}))}},{key:"get",value:function(t){var e=this;return new Ny((function(r,n){var i=e._getStore("readonly");if(!i)return n();var o=i.get(t);o.onsuccess=function(){r(o.result)},o.onerror=function(t){n(t)}}))}},{key:"del",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.storeKey;return new Ny((function(r,n){var i=t._getStore("readwrite");if(!i)return n();var o=i.delete(e);o.onsuccess=function(){return r(o.result)},o.onerror=function(t){return n(t)}}))}},{key:"keyEarliest",value:function(){return wS(this).call(this).then((function(t){var e,r=Yk();return zy(t).call(t,(function(t){if(t&&t.length){var n=t.split("-")[0];Number(n)<r&&(r=Number(n),e=t)}})),e}))}},{key:"keys",value:function(){var t=this;return new Ny((function(e,r){var n=t._getStore("readonly");if(!n)return r();if(n.getAllKeys){var i=n.getAllKeys();return i.onsuccess=function(){e(i.result)},void(i.onerror=function(){r()})}var o=[];n.openCursor().onsuccess=function(){this.result&&(o.push(this.result.key),this.result.continue())},n.transaction.oncomplete=function(){return e(o)}}))}},{key:"values",value:function(){var t=this;return new Ny((function(e,r){var n=t._getStore("readonly");if(!n)return r();if(n.getAll){var i=n.getAll();return i.onsuccess=function(){e(i.result)},void(i.onerror=function(){r()})}var o=[];n.openCursor().onsuccess=function(){this.result&&(o.push(this.result.value),this.result.continue())},n.transaction.oncomplete=function(){return e(o)}}))}},{key:"download",value:function(t){t=t||this.storeKey,this.get(t).then((function(e){var r=document.createElement("a");r.download="".concat(t,".txt"),r.href="data:text/paint;utf-8,".concat(e||""),r.click()}))}}]),t}(),ox=new ix,ax=Rr,sx=mn,ux=W,cx=RangeError,lx=v,fx=Pr,hx=mn,dx=W,px=lx((function(t){var e=sx(ux(this)),r="",n=ax(t);if(n<0||n===1/0)throw cx("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r})),vx=lx("".slice),gx=Math.ceil,_x=function(t){return function(e,r,n){var i,o,a=hx(dx(e)),s=fx(r),u=a.length,c=void 0===n?" ":hx(n);return s<=u||""===c?a:((o=px(c,gx((i=s-u)/c.length))).length>i&&(o=vx(o,0,i)),t?a+o:o+a)}},yx={start:_x(!1),end:_x(!0)},mx=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(st),bx=yx.start;Ar({target:"String",proto:!0,forced:mx},{padStart:function(t){return bx(this,t,arguments.length>1?arguments[1]:void 0)}});var wx=Ws("String").padStart,kx=at,Sx=wx,xx=String.prototype,Ex=e((function(t){var e=t.padStart;return"string"==typeof t||t===xx||kx(xx,t)&&e===xx.padStart?Sx:e}));function Ox(t){return function(t){if(Bm(t))return Zm(t)}(t)||function(t){if(void 0!==Ef&&null!=Tm(t)||null!=t["@@iterator"])return Vm(t)}(t)||function(t,e){var r;if(t){if("string"==typeof t)return Zm(t,e);var n=P_(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Vm(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zm(t,e):void 0}}(t)||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.")}()}var Ax=Ot,Tx=TypeError,Bx=Ar,Cx=Jt,Rx=zr,Ix=Rr,Lx=Fr,Mx=du,zx=vu,jx=To,Nx=Qn,Px=function(t,e){if(!delete t[e])throw Tx("Cannot delete property "+Ax(e)+" of "+Ax(t))},Dx=Vs("splice"),Fx=Math.max,Ux=Math.min;Bx({target:"Array",proto:!0,forced:!Dx},{splice:function(t,e){var r,n,i,o,a,s,u=Cx(this),c=Lx(u),l=Rx(t,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=Ux(Fx(Ix(e),0),c-l)),zx(c+r-n),i=jx(u,n),o=0;o<n;o++)(a=l+o)in u&&Nx(i,o,u[a]);if(i.length=n,r<n){for(o=l;o<c-n;o++)s=o+r,(a=o+n)in u?u[s]=u[a]:Px(u,s);for(o=c;o>c-n+r;o--)Px(u,o-1)}else if(r>n)for(o=c-n;o>l;o--)s=o+r-1,(a=o+n-1)in u?u[s]=u[a]:Px(u,s);for(o=0;o<r;o++)u[o+l]=arguments[o+2];return Mx(u,c-n+r),i}});var Gx=Ws("Array").splice,Kx=at,Vx=Gx,Zx=Array.prototype,Hx=e((function(t){var e=t.splice;return t===Zx||Kx(Zx,t)&&e===Zx.splice?Vx:e}));Ar({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var Wx=e(tt.Number.isNaN),Jx=Ar,Yx=Zr.indexOf,Xx=$c,$x=k([].indexOf),qx=!!$x&&1/$x([1],1,-0)<0;Jx({target:"Array",proto:!0,forced:qx||!Xx("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return qx?$x(this,t,e)||0:Yx(this,t,e)}});var Qx=Ws("Array").indexOf,tE=at,eE=Qx,rE=Array.prototype,nE=function(t){var e=t.indexOf;return t===rE||tE(rE,t)&&e===rE.indexOf?eE:e},iE=e(nE),oE=e(nE),aE=function(){function t(){G_(this,t),Hf(this,"_all",{})}return V_(t,[{key:"on",value:function(t,e){var r=this._all[t];r?r.push(e):this._all[t]=[e]}},{key:"once",value:function(t,e){var r=this;this.on(t,(function n(){e.apply(void 0,arguments),r.off(t,n)}))}},{key:"off",value:function(t,e){var r=this._all[t];null==r||Hx(r).call(r,oE(r).call(r,e)>>>0,1)}},{key:"emit",value:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var o=this._all[t];null==o||zy(e=hm(o).call(o)).call(e,(function(t){return t.apply(void 0,n)}))}},{key:"safeEmit",value:function(t){try{for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return this.emit.apply(this,Sm(e=[t]).call(e,n))}catch(dC){console.error(dC)}}},{key:"destroy",value:function(){this._all={}}}]),t}(),sE=["UPLOAD_CONSOLE_LENGTH_CUT","UPLOAD_REPORT_LIMIT"];var uE=function(t){fy(r,t);var e=Ty(r);function r(){var t,n;G_(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Hf(Z_(n=e.call.apply(e,Sm(t=[this]).call(t,o))),"config",{UPLOAD_CONSOLE_ON:!1,UPLOAD_CONSOLE_LENGTH_CUT:200,UPLOAD_REPORT_LIMIT:45e4,ENABLE_REPORT_IDB_BUFFER:!1}),n}return V_(r,[{key:"setParameter",value:function(t,e){if(function(t){return KS(sE).call(sE,t)}(t))try{var r=Number(e);if(Wx(r))return;this.config[t]=r}catch(i){var n;return void console.warn(Sm(n="Cannot convert core lib parameter ".concat(t,":")).call(n,e," into number"))}else this.config[t]=e;this.emit(t,this.config[t])}},{key:"getParameter",value:function(t){return this.config[t]}},{key:"getKeys",value:function(){return jy(this.config)}}]),r}(aE),cE=new uE,lE=T,fE=v,hE=R,dE=i,pE=rn,vE=li,gE=I,_E=Jt,yE=K,mE=Object.assign,bE=Object.defineProperty,wE=fE([].concat),kE=!mE||dE((function(){if(lE&&1!==mE({b:1},mE(bE({},"a",{enumerable:!0,get:function(){bE(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!==mE({},t)[r]||pE(mE({},e)).join("")!==n}))?function(t,e){for(var r=_E(t),n=arguments.length,i=1,o=vE.f,a=gE.f;n>i;)for(var s,u=yE(arguments[i++]),c=o?wE(pE(u),o(u)):pE(u),l=c.length,f=0;l>f;)s=c[f++],lE&&!hE(a,u,s)||(r[s]=u[s]);return r}:mE,SE=kE;Ar({target:"Object",stat:!0,arity:2,forced:Object.assign!==SE},{assign:SE});var xE=e(tt.Object.assign),EE=Ct,OE=Jt,AE=K,TE=Fr,BE=TypeError,CE=function(t){return function(e,r,n,i){EE(r);var o=OE(e),a=AE(o),s=TE(o),u=t?s-1:0,c=t?-1:1;if(n<2)for(;;){if(u in a){i=a[u],u+=c;break}if(u+=c,t?u<0:s<=u)throw BE("Reduce of empty array with no initial value")}for(;t?u>=0:s>u;u+=c)u in a&&(i=r(i,a[u],u,o));return i}},RE={left:CE(!1),right:CE(!0)}.left;Ar({target:"Array",proto:!0,forced:!Sd&&pt>79&&pt<83||!$c("reduce")},{reduce:function(t){var e=arguments.length;return RE(this,t,e,e>1?arguments[1]:void 0)}});var IE=Ws("Array").reduce,LE=at,ME=IE,zE=Array.prototype,jE=e((function(t){var e=t.reduce;return t===zE||LE(zE,t)&&e===zE.reduce?ME:e})),NE=ro,PE=Fr,DE=vu,FE=Ye,UE=function(t,e,r,n,i,o,a,s){for(var u,c,l=i,f=0,h=!!a&&FE(a,s);f<n;)f in r&&(u=h?h(r[f],f,e):r[f],o>0&&NE(u)?(c=PE(u),l=UE(t,e,u,c,l,o-1)-1):(DE(l+1),t[l]=u),l++),f++;return l},GE=UE,KE=Jt,VE=Fr,ZE=Rr,HE=To;Ar({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=KE(this),r=VE(e),n=HE(e,0);return n.length=GE(n,e,e,r,0,void 0===t?1:ZE(t)),n}});var WE=Ws("Array").flat,JE=at,YE=WE,XE=Array.prototype,$E=e((function(t){var e=t.flat;return t===XE||JE(XE,t)&&e===XE.flat?YE:e})),qE={};!function(t){var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.assign=function(t){for(var e=hm(Array.prototype).call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!==Kf(n))throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(t[i]=n[i])}}return t},t.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var n={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,a;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(a=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)o=t[e],a.set(o,i),i+=o.length;return a}},i={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return Sm([]).apply([],t)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,n)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,i))},t.setTyped(e)}(qE);var QE={},tO={},eO={},rO=qE,nO=0,iO=1;function oO(t){for(var e=t.length;--e>=0;)t[e]=0}var aO=0,sO=29,uO=256,cO=uO+1+sO,lO=30,fO=19,hO=2*cO+1,dO=15,pO=16,vO=7,gO=256,_O=16,yO=17,mO=18,bO=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],wO=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],kO=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],SO=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],xO=new Array(2*(cO+2));oO(xO);var EO=new Array(2*lO);oO(EO);var OO=new Array(512);oO(OO);var AO=new Array(256);oO(AO);var TO=new Array(sO);oO(TO);var BO,CO,RO,IO=new Array(lO);function LO(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function MO(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function zO(t){return t<256?OO[t]:OO[256+(t>>>7)]}function jO(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function NO(t,e,r){t.bi_valid>pO-r?(t.bi_buf|=e<<t.bi_valid&65535,jO(t,t.bi_buf),t.bi_buf=e>>pO-t.bi_valid,t.bi_valid+=r-pO):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function PO(t,e,r){NO(t,r[2*e],r[2*e+1])}function DO(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function FO(t,e,r){var n,i,o=new Array(dO+1),a=0;for(n=1;n<=dO;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=DO(o[s]++,s))}}function UO(t){var e;for(e=0;e<cO;e++)t.dyn_ltree[2*e]=0;for(e=0;e<lO;e++)t.dyn_dtree[2*e]=0;for(e=0;e<fO;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*gO]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function GO(t){t.bi_valid>8?jO(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function KO(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]}function VO(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&KO(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!KO(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function ZO(t,e,r){var n,i,o,a,s=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===n?PO(t,i,e):(PO(t,(o=AO[i])+uO+1,e),0!==(a=bO[o])&&NO(t,i-=TO[o],a),PO(t,o=zO(--n),r),0!==(a=wO[o])&&NO(t,n-=IO[o],a))}while(s<t.last_lit);PO(t,gO,e)}function HO(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=hO,r=0;r<u;r++)0!==o[2*r]?(t.heap[++t.heap_len]=c=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,r=t.heap_len>>1;r>=1;r--)VO(t,o,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],VO(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,VO(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,u=e.dyn_tree,c=e.max_code,l=e.stat_desc.static_tree,f=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,p=e.stat_desc.max_length,v=0;for(o=0;o<=dO;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<hO;r++)(o=u[2*u[2*(n=t.heap[r])+1]+1]+1)>p&&(o=p,v++),u[2*n+1]=o,n>c||(t.bl_count[o]++,a=0,n>=d&&(a=h[n-d]),s=u[2*n],t.opt_len+=s*(o+a),f&&(t.static_len+=s*(l[2*n+1]+a)));if(0!==v){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,v-=2}while(v>0);for(o=p;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(t,e),FO(o,c,t.bl_count)}function WO(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*_O]++):s<=10?t.bl_tree[2*yO]++:t.bl_tree[2*mO]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function JO(t,e,r){var n,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<u&&i===a)){if(s<c)do{PO(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(PO(t,i,t.bl_tree),s--),PO(t,_O,t.bl_tree),NO(t,s-3,2)):s<=10?(PO(t,yO,t.bl_tree),NO(t,s-3,3)):(PO(t,mO,t.bl_tree),NO(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}oO(IO);var YO=!1;function XO(t,e,r,n){NO(t,(aO<<1)+(n?1:0),3),function(t,e,r,n){GO(t),n&&(jO(t,r),jO(t,~r)),rO.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}eO._tr_init=function(t){YO||(!function(){var t,e,r,n,i,o=new Array(dO+1);for(r=0,n=0;n<sO-1;n++)for(TO[n]=r,t=0;t<1<<bO[n];t++)AO[r++]=n;for(AO[r-1]=n,i=0,n=0;n<16;n++)for(IO[n]=i,t=0;t<1<<wO[n];t++)OO[i++]=n;for(i>>=7;n<lO;n++)for(IO[n]=i<<7,t=0;t<1<<wO[n]-7;t++)OO[256+i++]=n;for(e=0;e<=dO;e++)o[e]=0;for(t=0;t<=143;)xO[2*t+1]=8,t++,o[8]++;for(;t<=255;)xO[2*t+1]=9,t++,o[9]++;for(;t<=279;)xO[2*t+1]=7,t++,o[7]++;for(;t<=287;)xO[2*t+1]=8,t++,o[8]++;for(FO(xO,cO+1,o),t=0;t<lO;t++)EO[2*t+1]=5,EO[2*t]=DO(t,5);BO=new LO(xO,bO,uO+1,cO,dO),CO=new LO(EO,wO,0,lO,dO),RO=new LO(new Array(0),kO,0,fO,vO)}(),YO=!0),t.l_desc=new MO(t.dyn_ltree,BO),t.d_desc=new MO(t.dyn_dtree,CO),t.bl_desc=new MO(t.bl_tree,RO),t.bi_buf=0,t.bi_valid=0,UO(t)},eO._tr_stored_block=XO,eO._tr_flush_block=function(t,e,r,n){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return nO;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return iO;for(e=32;e<uO;e++)if(0!==t.dyn_ltree[2*e])return iO;return nO}(t)),HO(t,t.l_desc),HO(t,t.d_desc),a=function(t){var e;for(WO(t,t.dyn_ltree,t.l_desc.max_code),WO(t,t.dyn_dtree,t.d_desc.max_code),HO(t,t.bl_desc),e=fO-1;e>=3&&0===t.bl_tree[2*SO[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?XO(t,e,r,n):4===t.strategy||o===i?(NO(t,2+(n?1:0),3),ZO(t,xO,EO)):(NO(t,4+(n?1:0),3),function(t,e,r,n){var i;for(NO(t,e-257,5),NO(t,r-1,5),NO(t,n-4,4),i=0;i<n;i++)NO(t,t.bl_tree[2*SO[i]+1],3);JO(t,t.dyn_ltree,e-1),JO(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),ZO(t,t.dyn_ltree,t.dyn_dtree)),UO(t),n&&GO(t)},eO._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(AO[r]+uO+1)]++,t.dyn_dtree[2*zO(e)]++),t.last_lit===t.lit_bufsize-1},eO._tr_align=function(t){NO(t,2,3),PO(t,gO,xO),function(t){16===t.bi_valid?(jO(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)};var $O=function(t,e,r,n){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0};var qO=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();var QO,tA=function(t,e,r,n){var i=qO,o=n+r;t^=-1;for(var a=n;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t},eA={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},rA=qE,nA=eO,iA=$O,oA=tA,aA=eA,sA=0,uA=4,cA=0,lA=-2,fA=-1,hA=4,dA=2,pA=8,vA=9,gA=286,_A=30,yA=19,mA=2*gA+1,bA=15,wA=3,kA=258,SA=kA+wA+1,xA=42,EA=103,OA=113,AA=666,TA=1,BA=2,CA=3,RA=4;function IA(t,e){return t.msg=aA[e],e}function LA(t){return(t<<1)-(t>4?9:0)}function MA(t){for(var e=t.length;--e>=0;)t[e]=0}function zA(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(rA.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function jA(t,e){nA._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,zA(t.strm)}function NA(t,e){t.pending_buf[t.pending++]=e}function PA(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function DA(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-SA?t.strstart-(t.w_size-SA):0,c=t.window,l=t.w_mask,f=t.prev,h=t.strstart+kA,d=c[o+a-1],p=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(r=e)+a]===p&&c[r+a-1]===d&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<h);if(n=kA-(h-o),o=h-kA,n>a){if(t.match_start=e,a=n,n>=s)break;d=c[o+a-1],p=c[o+a]}}}while((e=f[e&l])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function FA(t){var e,r,n,i,o,a,s,u,c,l,f=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=f+(f-SA)){rA.arraySet(t.window,t.window,f,f,0),t.match_start-=f,t.strstart-=f,t.block_start-=f,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=f?n-f:0}while(--r);e=r=f;do{n=t.prev[--e],t.prev[e]=n>=f?n-f:0}while(--r);i+=f}if(0===t.strm.avail_in)break;if(a=t.strm,s=t.window,u=t.strstart+t.lookahead,c=i,l=void 0,(l=a.avail_in)>c&&(l=c),r=0===l?0:(a.avail_in-=l,rA.arraySet(s,a.input,a.next_in,l,u),1===a.state.wrap?a.adler=iA(a.adler,s,l,u):2===a.state.wrap&&(a.adler=oA(a.adler,s,l,u)),a.next_in+=l,a.total_in+=l,l),t.lookahead+=r,t.lookahead+t.insert>=wA)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+wA-1])&t.hash_mask,t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<wA)););}while(t.lookahead<SA&&0!==t.strm.avail_in)}function UA(t,e){for(var r,n;;){if(t.lookahead<SA){if(FA(t),t.lookahead<SA&&e===sA)return TA;if(0===t.lookahead)break}if(r=0,t.lookahead>=wA&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+wA-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-SA&&(t.match_length=DA(t,r)),t.match_length>=wA)if(n=nA._tr_tally(t,t.strstart-t.match_start,t.match_length-wA),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=wA){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+wA-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=nA._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(jA(t,!1),0===t.strm.avail_out))return TA}return t.insert=t.strstart<wA-1?t.strstart:wA-1,e===uA?(jA(t,!0),0===t.strm.avail_out?CA:RA):t.last_lit&&(jA(t,!1),0===t.strm.avail_out)?TA:BA}function GA(t,e){for(var r,n,i;;){if(t.lookahead<SA){if(FA(t),t.lookahead<SA&&e===sA)return TA;if(0===t.lookahead)break}if(r=0,t.lookahead>=wA&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+wA-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=wA-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-SA&&(t.match_length=DA(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===wA&&t.strstart-t.match_start>4096)&&(t.match_length=wA-1)),t.prev_length>=wA&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-wA,n=nA._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-wA),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+wA-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=wA-1,t.strstart++,n&&(jA(t,!1),0===t.strm.avail_out))return TA}else if(t.match_available){if((n=nA._tr_tally(t,0,t.window[t.strstart-1]))&&jA(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return TA}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=nA._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<wA-1?t.strstart:wA-1,e===uA?(jA(t,!0),0===t.strm.avail_out?CA:RA):t.last_lit&&(jA(t,!1),0===t.strm.avail_out)?TA:BA}function KA(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}function VA(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=pA,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new rA.Buf16(2*mA),this.dyn_dtree=new rA.Buf16(2*(2*_A+1)),this.bl_tree=new rA.Buf16(2*(2*yA+1)),MA(this.dyn_ltree),MA(this.dyn_dtree),MA(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new rA.Buf16(bA+1),this.heap=new rA.Buf16(2*gA+1),MA(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new rA.Buf16(2*gA+1),MA(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ZA(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=dA,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?xA:OA,t.adler=2===e.wrap?0:1,e.last_flush=sA,nA._tr_init(e),cA):IA(t,lA)}function HA(t){var e,r=ZA(t);return r===cA&&((e=t.state).window_size=2*e.w_size,MA(e.head),e.max_lazy_match=QO[e.level].max_lazy,e.good_match=QO[e.level].good_length,e.nice_match=QO[e.level].nice_length,e.max_chain_length=QO[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=wA-1,e.match_available=0,e.ins_h=0),r}function WA(t,e,r,n,i,o){if(!t)return lA;var a=1;if(e===fA&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>vA||r!==pA||n<8||n>15||e<0||e>9||o<0||o>hA)return IA(t,lA);8===n&&(n=9);var s=new VA;return t.state=s,s.strm=t,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+wA-1)/wA),s.window=new rA.Buf8(2*s.w_size),s.head=new rA.Buf16(s.hash_size),s.prev=new rA.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new rA.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=o,s.method=r,HA(t)}QO=[new KA(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(FA(t),0===t.lookahead&&e===sA)return TA;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,jA(t,!1),0===t.strm.avail_out))return TA;if(t.strstart-t.block_start>=t.w_size-SA&&(jA(t,!1),0===t.strm.avail_out))return TA}return t.insert=0,e===uA?(jA(t,!0),0===t.strm.avail_out?CA:RA):(t.strstart>t.block_start&&(jA(t,!1),t.strm.avail_out),TA)})),new KA(4,4,8,4,UA),new KA(4,5,16,8,UA),new KA(4,6,32,32,UA),new KA(4,4,16,16,GA),new KA(8,16,32,32,GA),new KA(8,16,128,128,GA),new KA(8,32,128,256,GA),new KA(32,128,258,1024,GA),new KA(32,258,258,4096,GA)],tO.deflateInit=function(t,e){return WA(t,e,pA,15,8,0)},tO.deflateInit2=WA,tO.deflateReset=HA,tO.deflateResetKeep=ZA,tO.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?lA:(t.state.gzhead=e,cA):lA},tO.deflate=function(t,e){var r,n,i,o;if(!t||!t.state||e>5||e<0)return t?IA(t,lA):lA;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||n.status===AA&&e!==uA)return IA(t,0===t.avail_out?-5:lA);if(n.strm=t,r=n.last_flush,n.last_flush=e,n.status===xA)if(2===n.wrap)t.adler=0,NA(n,31),NA(n,139),NA(n,8),n.gzhead?(NA(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),NA(n,255&n.gzhead.time),NA(n,n.gzhead.time>>8&255),NA(n,n.gzhead.time>>16&255),NA(n,n.gzhead.time>>24&255),NA(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),NA(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(NA(n,255&n.gzhead.extra.length),NA(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=oA(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(NA(n,0),NA(n,0),NA(n,0),NA(n,0),NA(n,0),NA(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),NA(n,3),n.status=OA);else{var a=pA+(n.w_bits-8<<4)<<8;a|=(n.strategy>=2||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(a|=32),a+=31-a%31,n.status=OA,PA(n,a),0!==n.strstart&&(PA(n,t.adler>>>16),PA(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(t.adler=oA(t.adler,n.pending_buf,n.pending-i,i)),zA(t),i=n.pending,n.pending!==n.pending_buf_size));)NA(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(t.adler=oA(t.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=oA(t.adler,n.pending_buf,n.pending-i,i)),zA(t),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,NA(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(t.adler=oA(t.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=oA(t.adler,n.pending_buf,n.pending-i,i)),zA(t),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,NA(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(t.adler=oA(t.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.status=EA)}else n.status=EA;if(n.status===EA&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&zA(t),n.pending+2<=n.pending_buf_size&&(NA(n,255&t.adler),NA(n,t.adler>>8&255),t.adler=0,n.status=OA)):n.status=OA),0!==n.pending){if(zA(t),0===t.avail_out)return n.last_flush=-1,cA}else if(0===t.avail_in&&LA(e)<=LA(r)&&e!==uA)return IA(t,-5);if(n.status===AA&&0!==t.avail_in)return IA(t,-5);if(0!==t.avail_in||0!==n.lookahead||e!==sA&&n.status!==AA){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(FA(t),0===t.lookahead)){if(e===sA)return TA;break}if(t.match_length=0,r=nA._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(jA(t,!1),0===t.strm.avail_out))return TA}return t.insert=0,e===uA?(jA(t,!0),0===t.strm.avail_out?CA:RA):t.last_lit&&(jA(t,!1),0===t.strm.avail_out)?TA:BA}(n,e):3===n.strategy?function(t,e){for(var r,n,i,o,a=t.window;;){if(t.lookahead<=kA){if(FA(t),t.lookahead<=kA&&e===sA)return TA;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=wA&&t.strstart>0&&(n=a[i=t.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){o=t.strstart+kA;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);t.match_length=kA-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=wA?(r=nA._tr_tally(t,1,t.match_length-wA),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=nA._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(jA(t,!1),0===t.strm.avail_out))return TA}return t.insert=0,e===uA?(jA(t,!0),0===t.strm.avail_out?CA:RA):t.last_lit&&(jA(t,!1),0===t.strm.avail_out)?TA:BA}(n,e):QO[n.level].func(n,e);if(s!==CA&&s!==RA||(n.status=AA),s===TA||s===CA)return 0===t.avail_out&&(n.last_flush=-1),cA;if(s===BA&&(1===e?nA._tr_align(n):5!==e&&(nA._tr_stored_block(n,0,0,!1),3===e&&(MA(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),zA(t),0===t.avail_out))return n.last_flush=-1,cA}return e!==uA?cA:n.wrap<=0?1:(2===n.wrap?(NA(n,255&t.adler),NA(n,t.adler>>8&255),NA(n,t.adler>>16&255),NA(n,t.adler>>24&255),NA(n,255&t.total_in),NA(n,t.total_in>>8&255),NA(n,t.total_in>>16&255),NA(n,t.total_in>>24&255)):(PA(n,t.adler>>>16),PA(n,65535&t.adler)),zA(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?cA:1)},tO.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==xA&&69!==e&&73!==e&&91!==e&&e!==EA&&e!==OA&&e!==AA?IA(t,lA):(t.state=null,e===OA?IA(t,-3):cA):lA},tO.deflateSetDictionary=function(t,e){var r,n,i,o,a,s,u,c,l=e.length;if(!t||!t.state)return lA;if(2===(o=(r=t.state).wrap)||1===o&&r.status!==xA||r.lookahead)return lA;for(1===o&&(t.adler=iA(t.adler,e,l,0)),r.wrap=0,l>=r.w_size&&(0===o&&(MA(r.head),r.strstart=0,r.block_start=0,r.insert=0),c=new rA.Buf8(r.w_size),rA.arraySet(c,e,l-r.w_size,r.w_size,0),e=c,l=r.w_size),a=t.avail_in,s=t.next_in,u=t.input,t.avail_in=l,t.next_in=0,t.input=e,FA(r);r.lookahead>=wA;){n=r.strstart,i=r.lookahead-(wA-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+wA-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--i);r.strstart=n,r.lookahead=wA-1,FA(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=wA-1,r.match_available=0,t.next_in=s,t.input=u,t.avail_in=a,r.wrap=o,cA},tO.deflateInfo="pako deflate (from Nodeca project)";var JA={},YA=qE,XA=!0,$A=!0;try{String.fromCharCode.apply(null,[0])}catch(pC){XA=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(pC){$A=!1}for(var qA=new YA.Buf8(256),QA=0;QA<256;QA++)qA[QA]=QA>=252?6:QA>=248?5:QA>=240?4:QA>=224?3:QA>=192?2:1;function tT(t,e){if(e<65534&&(t.subarray&&$A||!t.subarray&&XA))return String.fromCharCode.apply(null,YA.shrinkBuf(t,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}qA[254]=qA[254]=1,JA.string2buf=function(t){var e,r,n,i,o,a=t.length,s=0;for(i=0;i<a;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new YA.Buf8(s),o=0,i=0;o<s;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?e[o++]=r:r<2048?(e[o++]=192|r>>>6,e[o++]=128|63&r):r<65536?(e[o++]=224|r>>>12,e[o++]=128|r>>>6&63,e[o++]=128|63&r):(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63,e[o++]=128|r>>>6&63,e[o++]=128|63&r);return e},JA.buf2binstring=function(t){return tT(t,t.length)},JA.binstring2buf=function(t){for(var e=new YA.Buf8(t.length),r=0,n=e.length;r<n;r++)e[r]=t.charCodeAt(r);return e},JA.buf2string=function(t,e){var r,n,i,o,a=e||t.length,s=new Array(2*a);for(n=0,r=0;r<a;)if((i=t[r++])<128)s[n++]=i;else if((o=qA[i])>4)s[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&r<a;)i=i<<6|63&t[r++],o--;o>1?s[n++]=65533:i<65536?s[n++]=i:(i-=65536,s[n++]=55296|i>>10&1023,s[n++]=56320|1023&i)}return tT(s,n)},JA.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+qA[t[r]]>e?r:e};var eT=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},rT=tO,nT=qE,iT=JA,oT=eA,aT=eT,sT=Object.prototype.toString,uT=0,cT=-1,lT=0,fT=8;function hT(t){if(!(this instanceof hT))return new hT(t);this.options=nT.assign({level:cT,method:fT,chunkSize:16384,windowBits:15,memLevel:8,strategy:lT,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new aT,this.strm.avail_out=0;var r=rT.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(r!==uT)throw new Error(oT[r]);if(e.header&&rT.deflateSetHeader(this.strm,e.header),e.dictionary){var n;if(n="string"==typeof e.dictionary?iT.string2buf(e.dictionary):"[object ArrayBuffer]"===sT.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(r=rT.deflateSetDictionary(this.strm,n))!==uT)throw new Error(oT[r]);this._dict_set=!0}}function dT(t,e){var r=new hT(e);if(r.push(t,!0),r.err)throw r.msg||oT[r.err];return r.result}hT.prototype.push=function(t,e){var r,n,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;n=e===~~e?e:!0===e?4:0,"string"==typeof t?i.input=iT.string2buf(t):"[object ArrayBuffer]"===sT.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new nT.Buf8(o),i.next_out=0,i.avail_out=o),1!==(r=rT.deflate(i,n))&&r!==uT)return this.onEnd(r),this.ended=!0,!1;0!==i.avail_out&&(0!==i.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(iT.buf2binstring(nT.shrinkBuf(i.output,i.next_out))):this.onData(nT.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==r);return 4===n?(r=rT.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===uT):2!==n||(this.onEnd(uT),i.avail_out=0,!0)},hT.prototype.onData=function(t){this.chunks.push(t)},hT.prototype.onEnd=function(t){t===uT&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=nT.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},QE.Deflate=hT,QE.deflate=dT,QE.deflateRaw=function(t,e){return(e=e||{}).raw=!0,dT(t,e)},QE.gzip=function(t,e){return(e=e||{}).gzip=!0,dT(t,e)};var pT={},vT=er,gT=R,_T=$t,yT=at,mT=function(){var t=vT(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},bT=RegExp.prototype,wT=at,kT=function(t){var e=t.flags;return void 0!==e||"flags"in bT||_T(t,"flags")||!yT(bT,t)?e:gT(mT,t)},ST=RegExp.prototype,xT=e((function(t){return t===ST||wT(ST,t)?kT(t):t.flags})),ET={},OT=qE,AT=15,TT=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],BT=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],CT=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],RT=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],IT=qE,LT=$O,MT=tA,zT=function(t,e){var r,n,i,o,a,s,u,c,l,f,h,d,p,v,g,_,y,m,b,w,k,S,x,E,O;r=t.state,n=t.next_in,E=t.input,i=n+(t.avail_in-5),o=t.next_out,O=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=r.dmax,c=r.wsize,l=r.whave,f=r.wnext,h=r.window,d=r.hold,p=r.bits,v=r.lencode,g=r.distcode,_=(1<<r.lenbits)-1,y=(1<<r.distbits)-1;t:do{p<15&&(d+=E[n++]<<p,p+=8,d+=E[n++]<<p,p+=8),m=v[d&_];e:for(;;){if(d>>>=b=m>>>24,p-=b,0===(b=m>>>16&255))O[o++]=65535&m;else{if(!(16&b)){if(0==(64&b)){m=v[(65535&m)+(d&(1<<b)-1)];continue e}if(32&b){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}w=65535&m,(b&=15)&&(p<b&&(d+=E[n++]<<p,p+=8),w+=d&(1<<b)-1,d>>>=b,p-=b),p<15&&(d+=E[n++]<<p,p+=8,d+=E[n++]<<p,p+=8),m=g[d&y];r:for(;;){if(d>>>=b=m>>>24,p-=b,!(16&(b=m>>>16&255))){if(0==(64&b)){m=g[(65535&m)+(d&(1<<b)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(k=65535&m,p<(b&=15)&&(d+=E[n++]<<p,(p+=8)<b&&(d+=E[n++]<<p,p+=8)),(k+=d&(1<<b)-1)>u){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=b,p-=b,k>(b=o-a)){if((b=k-b)>l&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(S=0,x=h,0===f){if(S+=c-b,b<w){w-=b;do{O[o++]=h[S++]}while(--b);S=o-k,x=O}}else if(f<b){if(S+=c+f-b,(b-=f)<w){w-=b;do{O[o++]=h[S++]}while(--b);if(S=0,f<w){w-=b=f;do{O[o++]=h[S++]}while(--b);S=o-k,x=O}}}else if(S+=f-b,b<w){w-=b;do{O[o++]=h[S++]}while(--b);S=o-k,x=O}for(;w>2;)O[o++]=x[S++],O[o++]=x[S++],O[o++]=x[S++],w-=3;w&&(O[o++]=x[S++],w>1&&(O[o++]=x[S++]))}else{S=o-k;do{O[o++]=O[S++],O[o++]=O[S++],O[o++]=O[S++],w-=3}while(w>2);w&&(O[o++]=O[S++],w>1&&(O[o++]=O[S++]))}break}}break}}while(n<i&&o<s);n-=w=p>>3,d&=(1<<(p-=w<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<s?s-o+257:257-(o-s),r.hold=d,r.bits=p},jT=function(t,e,r,n,i,o,a,s){var u,c,l,f,h,d,p,v,g,_=s.bits,y=0,m=0,b=0,w=0,k=0,S=0,x=0,E=0,O=0,A=0,T=null,B=0,C=new OT.Buf16(16),R=new OT.Buf16(16),I=null,L=0;for(y=0;y<=AT;y++)C[y]=0;for(m=0;m<n;m++)C[e[r+m]]++;for(k=_,w=AT;w>=1&&0===C[w];w--);if(k>w&&(k=w),0===w)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(b=1;b<w&&0===C[b];b++);for(k<b&&(k=b),E=1,y=1;y<=AT;y++)if(E<<=1,(E-=C[y])<0)return-1;if(E>0&&(0===t||1!==w))return-1;for(R[1]=0,y=1;y<AT;y++)R[y+1]=R[y]+C[y];for(m=0;m<n;m++)0!==e[r+m]&&(a[R[e[r+m]]++]=m);if(0===t?(T=I=a,d=19):1===t?(T=TT,B-=257,I=BT,L-=257,d=256):(T=CT,I=RT,d=-1),A=0,m=0,y=b,h=o,S=k,x=0,l=-1,f=(O=1<<k)-1,1===t&&O>852||2===t&&O>592)return 1;for(;;){p=y-x,a[m]<d?(v=0,g=a[m]):a[m]>d?(v=I[L+a[m]],g=T[B+a[m]]):(v=96,g=0),u=1<<y-x,b=c=1<<S;do{i[h+(A>>x)+(c-=u)]=p<<24|v<<16|g|0}while(0!==c);for(u=1<<y-1;A&u;)u>>=1;if(0!==u?(A&=u-1,A+=u):A=0,m++,0==--C[y]){if(y===w)break;y=e[r+a[m]]}if(y>k&&(A&f)!==l){for(0===x&&(x=k),h+=b,E=1<<(S=y-x);S+x<w&&!((E-=C[S+x])<=0);)S++,E<<=1;if(O+=1<<S,1===t&&O>852||2===t&&O>592)return 1;i[l=A&f]=k<<24|S<<16|h-o|0}}return 0!==A&&(i[h+A]=y-x<<24|64<<16|0),s.bits=k,0},NT=1,PT=2,DT=0,FT=-2,UT=1,GT=12,KT=30,VT=852,ZT=592;function HT(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function WT(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new IT.Buf16(320),this.work=new IT.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function JT(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=UT,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new IT.Buf32(VT),e.distcode=e.distdyn=new IT.Buf32(ZT),e.sane=1,e.back=-1,DT):FT}function YT(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,JT(t)):FT}function XT(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?FT:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,YT(t))):FT}function $T(t,e){var r,n;return t?(n=new WT,t.state=n,n.window=null,(r=XT(t,e))!==DT&&(t.state=null),r):FT}var qT,QT,tB=!0;function eB(t){if(tB){var e;for(qT=new IT.Buf32(512),QT=new IT.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(jT(NT,t.lens,0,288,qT,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;jT(PT,t.lens,0,32,QT,0,t.work,{bits:5}),tB=!1}t.lencode=qT,t.lenbits=9,t.distcode=QT,t.distbits=5}function rB(t,e,r,n){var i,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new IT.Buf8(o.wsize)),n>=o.wsize?(IT.arraySet(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>n&&(i=n),IT.arraySet(o.window,e,r-n,i,o.wnext),(n-=i)?(IT.arraySet(o.window,e,r-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}ET.inflateReset=YT,ET.inflateReset2=XT,ET.inflateResetKeep=JT,ET.inflateInit=function(t){return $T(t,15)},ET.inflateInit2=$T,ET.inflate=function(t,e){var r,n,i,o,a,s,u,c,l,f,h,d,p,v,g,_,y,m,b,w,k,S,x,E,O=0,A=new IT.Buf8(4),T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return FT;(r=t.state).mode===GT&&(r.mode=13),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,l=r.bits,f=s,h=u,S=DT;t:for(;;)switch(r.mode){case UT:if(0===r.wrap){r.mode=13;break}for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(2&r.wrap&&35615===c){r.check=0,A[0]=255&c,A[1]=c>>>8&255,r.check=MT(r.check,A,2,0),c=0,l=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg="incorrect header check",r.mode=KT;break}if(8!=(15&c)){t.msg="unknown compression method",r.mode=KT;break}if(l-=4,k=8+(15&(c>>>=4)),0===r.wbits)r.wbits=k;else if(k>r.wbits){t.msg="invalid window size",r.mode=KT;break}r.dmax=1<<k,t.adler=r.check=1,r.mode=512&c?10:GT,c=0,l=0;break;case 2:for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(r.flags=c,8!=(255&xT(r))){t.msg="unknown compression method",r.mode=KT;break}if(57344&xT(r)){t.msg="unknown header flags set",r.mode=KT;break}r.head&&(r.head.text=c>>8&1),512&xT(r)&&(A[0]=255&c,A[1]=c>>>8&255,r.check=MT(r.check,A,2,0)),c=0,l=0,r.mode=3;case 3:for(;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.head&&(r.head.time=c),512&xT(r)&&(A[0]=255&c,A[1]=c>>>8&255,A[2]=c>>>16&255,A[3]=c>>>24&255,r.check=MT(r.check,A,4,0)),c=0,l=0,r.mode=4;case 4:for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.head&&(r.head.xflags=255&c,r.head.os=c>>8),512&xT(r)&&(A[0]=255&c,A[1]=c>>>8&255,r.check=MT(r.check,A,2,0)),c=0,l=0,r.mode=5;case 5:if(1024&xT(r)){for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.length=c,r.head&&(r.head.extra_len=c),512&xT(r)&&(A[0]=255&c,A[1]=c>>>8&255,r.check=MT(r.check,A,2,0)),c=0,l=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&xT(r)&&((d=r.length)>s&&(d=s),d&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),IT.arraySet(r.head.extra,n,o,d,k)),512&xT(r)&&(r.check=MT(r.check,n,d,o)),s-=d,o+=d,r.length-=d),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&xT(r)){if(0===s)break t;d=0;do{k=n[o+d++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k))}while(k&&d<s);if(512&xT(r)&&(r.check=MT(r.check,n,d,o)),s-=d,o+=d,k)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&xT(r)){if(0===s)break t;d=0;do{k=n[o+d++],r.head&&k&&r.length<65536&&(r.head.comment+=String.fromCharCode(k))}while(k&&d<s);if(512&xT(r)&&(r.check=MT(r.check,n,d,o)),s-=d,o+=d,k)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&xT(r)){for(;l<16;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(c!==(65535&r.check)){t.msg="header crc mismatch",r.mode=KT;break}c=0,l=0}r.head&&(r.head.hcrc=xT(r)>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=GT;break;case 10:for(;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}t.adler=r.check=HT(c),c=0,l=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=l,2;t.adler=r.check=1,r.mode=GT;case GT:if(5===e||6===e)break t;case 13:if(r.last){c>>>=7&l,l-=7&l,r.mode=27;break}for(;l<3;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}switch(r.last=1&c,l-=1,3&(c>>>=1)){case 0:r.mode=14;break;case 1:if(eB(r),r.mode=20,6===e){c>>>=2,l-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=KT}c>>>=2,l-=2;break;case 14:for(c>>>=7&l,l-=7&l;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if((65535&c)!=(c>>>16^65535)){t.msg="invalid stored block lengths",r.mode=KT;break}if(r.length=65535&c,c=0,l=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(d=r.length){if(d>s&&(d=s),d>u&&(d=u),0===d)break t;IT.arraySet(i,n,o,d,a),s-=d,o+=d,u-=d,a+=d,r.length-=d;break}r.mode=GT;break;case 17:for(;l<14;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(r.nlen=257+(31&c),c>>>=5,l-=5,r.ndist=1+(31&c),c>>>=5,l-=5,r.ncode=4+(15&c),c>>>=4,l-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=KT;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;l<3;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.lens[T[r.have++]]=7&c,c>>>=3,l-=3}for(;r.have<19;)r.lens[T[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,x={bits:r.lenbits},S=jT(0,r.lens,0,19,r.lencode,0,r.work,x),r.lenbits=x.bits,S){t.msg="invalid code lengths set",r.mode=KT;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;_=(O=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,y=65535&O,!((g=O>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(y<16)c>>>=g,l-=g,r.lens[r.have++]=y;else{if(16===y){for(E=g+2;l<E;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(c>>>=g,l-=g,0===r.have){t.msg="invalid bit length repeat",r.mode=KT;break}k=r.lens[r.have-1],d=3+(3&c),c>>>=2,l-=2}else if(17===y){for(E=g+3;l<E;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}l-=g,k=0,d=3+(7&(c>>>=g)),c>>>=3,l-=3}else{for(E=g+7;l<E;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}l-=g,k=0,d=11+(127&(c>>>=g)),c>>>=7,l-=7}if(r.have+d>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=KT;break}for(;d--;)r.lens[r.have++]=k}}if(r.mode===KT)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=KT;break}if(r.lenbits=9,x={bits:r.lenbits},S=jT(NT,r.lens,0,r.nlen,r.lencode,0,r.work,x),r.lenbits=x.bits,S){t.msg="invalid literal/lengths set",r.mode=KT;break}if(r.distbits=6,r.distcode=r.distdyn,x={bits:r.distbits},S=jT(PT,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,x),r.distbits=x.bits,S){t.msg="invalid distances set",r.mode=KT;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(s>=6&&u>=258){t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=l,zT(t,h),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,c=r.hold,l=r.bits,r.mode===GT&&(r.back=-1);break}for(r.back=0;_=(O=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,y=65535&O,!((g=O>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(_&&0==(240&_)){for(m=g,b=_,w=y;_=(O=r.lencode[w+((c&(1<<m+b)-1)>>m)])>>>16&255,y=65535&O,!(m+(g=O>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}c>>>=m,l-=m,r.back+=m}if(c>>>=g,l-=g,r.back+=g,r.length=y,0===_){r.mode=26;break}if(32&_){r.back=-1,r.mode=GT;break}if(64&_){t.msg="invalid literal/length code",r.mode=KT;break}r.extra=15&_,r.mode=22;case 22:if(r.extra){for(E=r.extra;l<E;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,l-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;_=(O=r.distcode[c&(1<<r.distbits)-1])>>>16&255,y=65535&O,!((g=O>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(0==(240&_)){for(m=g,b=_,w=y;_=(O=r.distcode[w+((c&(1<<m+b)-1)>>m)])>>>16&255,y=65535&O,!(m+(g=O>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}c>>>=m,l-=m,r.back+=m}if(c>>>=g,l-=g,r.back+=g,64&_){t.msg="invalid distance code",r.mode=KT;break}r.offset=y,r.extra=15&_,r.mode=24;case 24:if(r.extra){for(E=r.extra;l<E;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,l-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=KT;break}r.mode=25;case 25:if(0===u)break t;if(d=h-u,r.offset>d){if((d=r.offset-d)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=KT;break}d>r.wnext?(d-=r.wnext,p=r.wsize-d):p=r.wnext-d,d>r.length&&(d=r.length),v=r.window}else v=i,p=a-r.offset,d=r.length;d>u&&(d=u),u-=d,r.length-=d;do{i[a++]=v[p++]}while(--d);0===r.length&&(r.mode=21);break;case 26:if(0===u)break t;i[a++]=r.length,u--,r.mode=21;break;case 27:if(r.wrap){for(;l<32;){if(0===s)break t;s--,c|=n[o++]<<l,l+=8}if(h-=u,t.total_out+=h,r.total+=h,h&&(t.adler=r.check=xT(r)?MT(r.check,i,h,a-h):LT(r.check,i,h,a-h)),h=u,(xT(r)?c:HT(c))!==r.check){t.msg="incorrect data check",r.mode=KT;break}c=0,l=0}r.mode=28;case 28:if(r.wrap&&xT(r)){for(;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(c!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=KT;break}c=0,l=0}r.mode=29;case 29:S=1;break t;case KT:S=-3;break t;case 31:return-4;default:return FT}return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,r.hold=c,r.bits=l,(r.wsize||h!==t.avail_out&&r.mode<KT&&(r.mode<27||4!==e))&&rB(t,t.output,t.next_out,h-t.avail_out),f-=t.avail_in,h-=t.avail_out,t.total_in+=f,t.total_out+=h,r.total+=h,r.wrap&&h&&(t.adler=r.check=xT(r)?MT(r.check,i,h,t.next_out-h):LT(r.check,i,h,t.next_out-h)),t.data_type=r.bits+(r.last?64:0)+(r.mode===GT?128:0)+(20===r.mode||15===r.mode?256:0),(0===f&&0===h||4===e)&&S===DT&&(S=-5),S},ET.inflateEnd=function(t){if(!t||!t.state)return FT;var e=t.state;return e.window&&(e.window=null),t.state=null,DT},ET.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?FT:(r.head=e,e.done=!1,DT):FT},ET.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?FT:11===r.mode&<(1,e,n,0)!==r.check?-3:rB(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,DT):FT},ET.inflateInfo="pako inflate (from Nodeca project)";var nB={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};var iB=ET,oB=qE,aB=JA,sB=nB,uB=eA,cB=eT,lB=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},fB=Object.prototype.toString;function hB(t){if(!(this instanceof hB))return new hB(t);this.options=oB.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new cB,this.strm.avail_out=0;var r=iB.inflateInit2(this.strm,e.windowBits);if(r!==sB.Z_OK)throw new Error(uB[r]);if(this.header=new lB,iB.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=aB.string2buf(e.dictionary):"[object ArrayBuffer]"===fB.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=iB.inflateSetDictionary(this.strm,e.dictionary))!==sB.Z_OK))throw new Error(uB[r])}function dB(t,e){var r=new hB(e);if(r.push(t,!0),r.err)throw r.msg||uB[r.err];return r.result}hB.prototype.push=function(t,e){var r,n,i,o,a,s=this.strm,u=this.options.chunkSize,c=this.options.dictionary,l=!1;if(this.ended)return!1;n=e===~~e?e:!0===e?sB.Z_FINISH:sB.Z_NO_FLUSH,"string"==typeof t?s.input=aB.binstring2buf(t):"[object ArrayBuffer]"===fB.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new oB.Buf8(u),s.next_out=0,s.avail_out=u),(r=iB.inflate(s,sB.Z_NO_FLUSH))===sB.Z_NEED_DICT&&c&&(r=iB.inflateSetDictionary(this.strm,c)),r===sB.Z_BUF_ERROR&&!0===l&&(r=sB.Z_OK,l=!1),r!==sB.Z_STREAM_END&&r!==sB.Z_OK)return this.onEnd(r),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&r!==sB.Z_STREAM_END&&(0!==s.avail_in||n!==sB.Z_FINISH&&n!==sB.Z_SYNC_FLUSH)||("string"===this.options.to?(i=aB.utf8border(s.output,s.next_out),o=s.next_out-i,a=aB.buf2string(s.output,i),s.next_out=o,s.avail_out=u-o,o&&oB.arraySet(s.output,s.output,i,o,0),this.onData(a)):this.onData(oB.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(l=!0)}while((s.avail_in>0||0===s.avail_out)&&r!==sB.Z_STREAM_END);return r===sB.Z_STREAM_END&&(n=sB.Z_FINISH),n===sB.Z_FINISH?(r=iB.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===sB.Z_OK):n!==sB.Z_SYNC_FLUSH||(this.onEnd(sB.Z_OK),s.avail_out=0,!0)},hB.prototype.onData=function(t){this.chunks.push(t)},hB.prototype.onEnd=function(t){t===sB.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=oB.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},pT.Inflate=hB,pT.inflate=dB,pT.inflateRaw=function(t,e){return(e=e||{}).raw=!0,dB(t,e)},pT.ungzip=dB;var pB={};(0,qE.assign)(pB,QE,pT,nB);var vB=e(pB),gB=e(tt.setInterval),_B=1,yB=function(){function t(e){G_(this,t),Hf(this,"lockingPromise",Ny.resolve()),Hf(this,"locks",0),Hf(this,"name",""),Hf(this,"lockId",void 0),this.lockId=_B++,e&&(this.name=e)}return V_(t,[{key:"isLocked",get:function(){return this.locks>0}},{key:"lock",value:function(){var t,e=this;this.locks+=1;var r=new Ny((function(r){t=function(){e.locks-=1,r()}})),n=this.lockingPromise.then((function(){return t}));return this.lockingPromise=this.lockingPromise.then((function(){return r})),n}}]),t}(),mB="__rtc_umd_name__",bB=function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},wB=function(){function t(e){G_(this,t),Hf(this,"storeName",void 0),Hf(this,"pendingList",[]),this.storeName=e,!qS()&&bB()&&this._checkAndCreateStore(e)}var e,r,n,i,o,a,s;return V_(t,[{key:"_checkAndCreateStore",value:(s=U_(D_().mark((function e(r,n){var i,o,a=this;return D_().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._promiseLock.lock();case 2:if(i=e.sent,!bB.databases){e.next=6;break}return e.next=6,new Ny((function(t){var e=function(){return bB.databases().finally(t)};o=gB(e,100),e()})).finally((function(){return clearInterval(o)}));case 6:return e.abrupt("return",new Ny((function(e){t.db&&(t.db.close(),delete t.db);var o=n?bB().open(mB,n):bB().open(mB);o.onupgradeneeded=function(){o.result.createObjectStore(r)},o.onerror=function(){console.error("IndexedDBInterface error",o.error)},o.onsuccess=function(){var n=o.result;t.db=n;try{var s;t.db.transaction(a.storeName,"readonly"),zy(s=a.pendingList).call(s,function(){var t=U_(D_().mark((function t(e){var r,n,i,o;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.txMode,n=e.pendResolve,i=e.pendReject,t.prev=1,t.next=4,a._getStore(r);case 4:o=t.sent,n(o),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),i();case 11:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e){return t.apply(this,arguments)}}()),e()}catch(u){e(a._checkAndCreateStore(r,n.version+1))}finally{i()}}})));case 7:case"end":return e.stop()}}),e)}))),function(t,e){return s.apply(this,arguments)})},{key:"_getStore",value:(a=U_(D_().mark((function e(r){var n,i=this;return D_().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._promiseLock.lock();case 2:return n=e.sent,e.abrupt("return",new Ny((function(e,o){if(!t.db)return i.pendingList.push({txMode:r,pendResolve:e,pendReject:o}),void n();try{e(t.db.transaction(i.storeName,r).objectStore(i.storeName))}catch(a){return void i.pendingList.push({txMode:r,pendResolve:e,pendReject:o})}finally{n()}})));case 4:case"end":return e.stop()}}),e)}))),function(t){return a.apply(this,arguments)})},{key:"put2String",value:(o=U_(D_().mark((function t(e,r){var n;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{n=My(e)}catch(i){n=e}return t.next=3,this.put(n,r);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)}))),function(t,e){return o.apply(this,arguments)})},{key:"get4String",value:(i=U_(D_().mark((function t(e){var r,n;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.get(e);case 2:r=t.sent;try{n=JSON.parse(r)}catch(i){n=r}return t.abrupt("return",n);case 5:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"put",value:(n=U_(D_().mark((function t(e,r){var n;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._getStore("readwrite");case 2:return n=t.sent,t.abrupt("return",new Ny((function(t,i){var o=n.put(e,r);o.onsuccess=function(){t()},o.onerror=function(t){i(t)}})));case 4:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"get",value:(r=U_(D_().mark((function t(e){var r;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._getStore("readonly");case 2:return r=t.sent,t.abrupt("return",new Ny((function(t,n){var i=r.get(e);i.onsuccess=function(){t(i.result)},i.onerror=function(t){n(t)}})));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"del",value:(e=U_(D_().mark((function t(e){var r;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._getStore("readwrite");case 2:return r=t.sent,t.abrupt("return",new Ny((function(t,n){var i=r.delete(e);i.onsuccess=function(){t()},i.onerror=function(t){n(t)}})));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),t}();function kB(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=sn(t);for(n=0;n<o.length;n++)r=o[n],iE(e).call(e,r)>=0||(i[r]=t[r]);return i}(t,e);if(Fs){var o=Fs(t);for(n=0;n<o.length;n++)r=o[n],iE(e).call(e,r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}Hf(wB,"db",void 0),Hf(wB,"state","init"),Hf(wB,"_promiseLock",new yB("iDB"));var SB=["message"];var xB,EB,OB,AB=new(function(){function t(){G_(this,t),Hf(this,"name","LongStringReportor"),Hf(this,"inBuffer",[]),Hf(this,"outBuffer",[])}return V_(t,[{key:"push",value:function(t){var e;t.message&&this.inBuffer.push(Jf(Jf({},t),{},{message:{id:hm(e=$S()).call(e,0,3),index:0,end:!0,msg:t.message}}))}},{key:"splice",value:function(t){for(var e=[],r=0;this.outBuffer.length;){var n=My(this.outBuffer[0]).length;if(!(n<t))break;t-=n,r+=n,e.push(this.outBuffer.shift())}for(;this.inBuffer[0]&&t>0;){var i=this.inBuffer[0],o=i.message,a=Jf(Jf({},kB(i,SB)),{},{message:Jf(Jf({},o),{},{msg:""})}),s=My(a).length,u=t-s,c=Jf({},a);if(u>o.msg.length)c.message.msg=o.msg,this.inBuffer.shift();else{if(!(u>=10))break;var l,f,h=hm(l=o.msg).call(l,0,u);c.message.msg=h,c.message.end=!1,this.inBuffer[0].message.msg=hm(f=o.msg).call(f,u),this.inBuffer[0].message.index++}var d=My(c.message),p=d.length;t-=p+s,r+=p+s,e.push(Jf(Jf({},c),{},{message:d}))}return{payload:e,payloadSize:r}}},{key:"unshift",value:function(t){this.outBuffer=Sm(t).call(t,this.outBuffer)}},{key:"get",value:function(){var t,e;return Sm(t=[]).call(t,Ox(this.outBuffer),Ox(fm(e=this.inBuffer).call(e,(function(t){return Jf(Jf({},t),{},{message:My(t.message)})}))))}},{key:"set",value:function(t){var e=this,r=[],n=[];zy(t).call(t,(function(t){!function(t){return void 0!==t.report_id}(t)?(t.message||(t.message=""),e.inBuffer.push(Jf(Jf({},t),{},{message:JSON.parse(t.message)}))):e.outBuffer.push(t)})),this.outBuffer=Sm(r).call(r,this.outBuffer),this.inBuffer=Sm(n).call(n,this.inBuffer)}},{key:"isEmpty",value:function(){return 0===this.inBuffer.length&&0===this.outBuffer.length}}]),t}()),TB={product_line:"rtc",report_version:"5",os:"web",user_agent:qS()?"":null===(xB=navigator)||void 0===xB?void 0:xB.userAgent,platform:"web",product:"webrtc",app_state:"active"},BB="LogReportor",CB="undefined"!=typeof window&&(KS(EB=window.location.search).call(EB,"_rtc_debug_")||(null===(OB=window.localStorage)||void 0===OB?void 0:OB.getItem("_rtc_debug_"))),RB=function(){function t(e){G_(this,t),Hf(this,"_buffer",void 0),this._buffer=new wB(e)}var e,r;return V_(t,[{key:"set",value:(r=U_(D_().mark((function t(e,r){return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._buffer.put2String(e,r);case 2:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"get",value:(e=U_(D_().mark((function t(e){var r,n;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],t.prev=1,t.next=4,this._buffer.get4String(e);case 4:n=t.sent,t.next=9;break;case 7:t.prev=7,t.t0=t.catch(1);case 9:return t.abrupt("return",null!==(r=n)&&void 0!==r?r:[]);case 10:case"end":return t.stop()}}),t,this,[[1,7]])}))),function(t){return e.apply(this,arguments)})}]),t}(),IB=function(){function t(){var e=this;G_(this,t),Hf(this,"reportCommon",TB),Hf(this,"reportIds",new Ik),Hf(this,"dataBuffer",[]),Hf(this,"reportorList",[]),Hf(this,"dbBuffer",void 0),Hf(this,"posting",!1),Hf(this,"sucSendTimer",void 0),Hf(this,"preSucTime",0),Hf(this,"errSendTimer",void 0),Hf(this,"errSendDelay",100),Hf(this,"_logServerUrl",void 0),Hf(this,"_retryCount",0),Hf(this,"_reportLimit",5e5),Hf(this,"_disableTimeout",!1),qS()||(window.addEventListener("beforeunload",(function(){clearTimeout(e.errSendTimer),clearTimeout(e.sucSendTimer),e.send(void 0,!0)})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?e.setCommonStats({app_state:"active"}):"hidden"===document.visibilityState&&e.setCommonStats({app_state:"background"})})),CB&&(window.__rtc_debug_reportor__=this)),cE.on("UPLOAD_REPORT_LIMIT",(function(t){e.setReportLimit(t)})),cE.on("ENABLE_REPORT_IDB_BUFFER",(function(t){t&&e.enableIndexedDBBuffer()})),dS((function(){e.reportorList.push(HB),e.reportorList.push(AB)}))}var e;return V_(t,[{key:"setUrl",value:function(t){this._logServerUrl=t}},{key:"setCommonStats",value:function(t){this.reportCommon=xE(this.reportCommon,t)}},{key:"getCommonStats",value:function(){return this.reportCommon}},{key:"setReportLimit",value:function(t){this._reportLimit=Math.max(t,5e4),this._reportLimit=Math.min(t,5e5)}},{key:"getReportId",value:function(t){var e;t=null!==(e=t)&&void 0!==e?e:"__global__",this.reportIds.has(t)||this.reportIds.set(t,0);var r=this.reportIds.get(t);return void 0===r&&(NB("no reportId in reportId map with engine-session-id ".concat(t),0,{}),r=0),this.reportIds.set(t,r+1),r}},{key:"push",value:function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])this.send(t);else{var e,r=null!==(e=t.engine_session_id)&&void 0!==e?e:"__global__";this.reportIds.has(r)||this.reportIds.set(r,0),this.dataBuffer.push(t),!this.posting&&!this.errSendTimer&&Yk()-this.preSucTime>2e3&&(clearTimeout(this.sucSendTimer),this.send())}}},{key:"enableIndexedDBBuffer",value:function(){var t,e=this;this.dbBuffer||(this.dbBuffer=new RB("ReportorDBBuffer"),this.dbBuffer.get(BB).then((function(t){zy(t).call(t,(function(t){e.push(t)}))})),zy(t=this.reportorList).call(t,(function(t){var r;null===(r=e.dbBuffer)||void 0===r||r.get(t.name).then((function(e){t.set(e)}))})))}},{key:"backup",value:function(){var t=this;try{var e,r;null===(e=this.dbBuffer)||void 0===e||e.set(Ox(this.dataBuffer),BB),zy(r=this.reportorList).call(r,(function(e){var r;null===(r=t.dbBuffer)||void 0===r||r.set(Ox(e.get()),e.name)}))}catch(n){NB("Error when save log into IDB",-1,n)}}},{key:"unshift",value:function(t){var e,r;this.dataBuffer=Sm(e=t[0]).call(e,this.dataBuffer),zy(r=this.reportorList).call(r,(function(e,r){var n;e.unshift(null!==(n=t[r+1])&&void 0!==n?n:[])}))}},{key:"_splice",value:function(){var t,e,r=this,n=function(t,e){for(var r=0,n=0;n<t.length;n++)if((r+=My(t[n]).length)>e)return n;return t.length}(this.dataBuffer,this._reportLimit);0===n&&this.dataBuffer.length>0&&(this._reportLimit=My(this.dataBuffer[0]).length+10,n=1,NB("update report limit to ".concat(this._reportLimit),0,null));var i=Hx(t=this.dataBuffer).call(t,0,n),o=My(i).length,a=[i],s=this._reportLimit-o;return zy(e=this.reportorList).call(e,(function(t){var e=Hx(t).call(t,s),n=e.payload,i=e.payloadSize;zy(n).call(n,(function(t){var e,n,i;void 0===t.report_id&&(t.report_id=r.getReportId(t.engine_session_id),!qS()&&window.__onRTCReport&&(null===(e=(n=window).__onRTCReport)||void 0===e||e.call(n,null!==(i=t.engine_session_id)&&void 0!==i?i:"global",t,r.getCommonStats())))})),a.push(n),s-=i})),a}},{key:"send",value:(e=U_(D_().mark((function t(e,r){var n,i,o,a,s,u,c,l,f,h;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.backup(),i=jE(n=this.reportorList).call(n,(function(t,e){return t&&e.isEmpty()}),!0),(e||this.dataBuffer.length||!i)&&this._logServerUrl){t.next=4;break}return t.abrupt("return");case 4:if(e||(this.posting=!0),o=[],e||(o=this._splice()),a=CB,s={data:e||$E(o).call(o),header:Jf(Jf({},this.reportCommon),{},{http_retry_count:this._retryCount}),from:"web",os:"web",version:"1"},u={method:"POST",body:a?My(s):vB.gzip(My(s))},!this._disableTimeout)try{c=new AbortController,u.signal=c.signal,dS((function(){c.abort()}),1e4)}catch(d){console.warn("AbortController is not supported"),this._disableTimeout=!0}return a||(u.headers={"Content-Encoding":"gzip","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}),h=null,t.prev=13,t.next=16,fetch(this._logServerUrl,u);case 16:if(200!==(l=t.sent).status&&304!==l.status){t.next=23;break}return t.t0=JSON,t.next=21,l.text();case 21:t.t1=t.sent,h=t.t0.parse.call(t.t0,t.t1);case 23:t.next=28;break;case 25:t.prev=25,t.t2=t.catch(13),f=t.t2;case 28:e||(this.posting=!1),h&&0===h.StatusCode?e||r||this.sucSend():(dS((function(){var t,e,r,n;NB(Sm(t="reportor post error, resJSON:".concat(null===(e=h)||void 0===e?void 0:e.toString()," err:")).call(t,f),null!==(r=null===(n=l)||void 0===n?void 0:n.status)&&void 0!==r?r:-1,f)}),0),e?this.send(e):(this.unshift(o),r?this.send():this.errSend()));case 30:case"end":return t.stop()}}),t,this,[[13,25]])}))),function(t,r){return e.apply(this,arguments)})},{key:"sucSend",value:function(){var t;this.errSendDelay=100,this._retryCount=0,this.preSucTime=Yk(),this.sucSendTimer=dS(VS(t=this.send).call(t,this),2e3)}},{key:"errSend",value:function(){var t=this;this.errSendTimer=dS((function(){t.send(),delete t.errSendTimer}),this.errSendDelay),this.errSendDelay*=2,this._retryCount++}}]),t}();var LB=new IB,MB=function(){function t(e){G_(this,t),Hf(this,"modifyIds",{}),this.id=e}return V_(t,[{key:"report",value:function(t,e){var r,n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Jf(Jf(Jf({event_key:t,rtc_timestamp:Yk()},this.modifyIds),e),{},{common_extra_info:My(i),report_id:LB.getReportId(this.modifyIds.engine_session_id)});!qS()&&window.__onRTCReport&&(null===(r=(n=window).__onRTCReport)||void 0===r||r.call(n,this.modifyIds.engine_session_id,o,LB.getCommonStats()));LB.push(o)}},{key:"reportLog",value:function(t){var e=Jf(Jf({event_key:"rtc_invoke_status",sdk_api_name:"console_log",rtc_timestamp:Yk()},this.modifyIds),{},{message:t});HB.push(e)}},{key:"reportLongString",value:function(t,e){var r=Jf(Jf({event_key:"rtc_invoke_status",sdk_api_name:"sdk_long_string_".concat(t),rtc_timestamp:Yk()},this.modifyIds),{},{message:e});AB.push(r)}},{key:"set",value:function(t){this.modifyIds=xE(this.modifyIds,t)}},{key:"destroy",value:function(){}}]),t}(),zB=function(){function t(e){G_(this,t),Hf(this,"_preTime",Yk()),Hf(this,"_one2oneNum",0),Hf(this,"_one2manyNum",0),Hf(this,"_one2oneMsgCache",new Ik),Hf(this,"_one2manyMsgCache",new Ik),Hf(this,"roomId",""),Hf(this,"userId",""),Hf(this,"rtsSessionId",""),Hf(this,"logger",void 0),Hf(this,"serverUrl","server"),this.id=e,this.logger=new $B("MessageReportor",1)}return V_(t,[{key:"needReport",value:function(e){return!!t.config&&(Yk()-this._preTime>=36e5&&(this._preTime=Yk(),this._one2oneNum=0,this._one2manyNum=0),"one2one"===e&&this._one2oneNum<t.config.max_one2one_fpt_per_hour&&Math.random()<=t.config.one2one_fpt_ratio/100||"one2many"===e&&this._one2manyNum<t.config.max_one2many_fpt_per_hour&&Math.random()<=t.config.one2many_fpt_ratio/100)}},{key:"cacheP2PMsg",value:function(e){var r;this._one2oneMsgCache.set(e.msg_id,Jf({config_version:(null===(r=t.config)||void 0===r?void 0:r.version)||""},e))}},{key:"updateP2PMsg",value:function(t,e){var r=this._one2oneMsgCache.get(t);r&&this._one2oneMsgCache.set(t,Jf(Jf({},r),e))}},{key:"cacheCustomMsg",value:function(e){var r;this._one2manyMsgCache.set(e.msg_id,Jf({config_version:(null===(r=t.config)||void 0===r?void 0:r.version)||""},e))}},{key:"updateOne2ManyMsg",value:function(t,e){var r=this._one2manyMsgCache.get(t);r&&this._one2manyMsgCache.set(t,Jf(Jf({},r),e))}},{key:"reportP2PMsg",value:function(t){var e,r=this._one2oneMsgCache.get(t);r&&(this.logger.info("reportP2PMsg",r.type,My(r)),null===(e=FB(this.id))||void 0===e||e.report("rts_message",r))}},{key:"reportOne2ManyMsg",value:function(t){var e,r=this._one2manyMsgCache.get(t);r&&(this.logger.info("reportOne2ManyMsg",r.type,My(r)),null===(e=FB(this.id))||void 0===e||e.report("rts_message",r))}},{key:"reportMsgRecv",value:function(e){var r,n;e.config_version=(null===(r=t.config)||void 0===r?void 0:r.version)||"",this.logger.info("reportMsgRecv",e.type,My(e)),null===(n=FB(this.id))||void 0===n||n.report("rts_message",e)}},{key:"destroy",value:function(){this._one2manyNum=0,this._one2oneNum=0,this._one2manyMsgCache.clear(),this._one2oneMsgCache.clear(),this._preTime=Yk(),this.roomId="",this.userId="",this.rtsSessionId=""}}]),t}();Hf(zB,"config",void 0);var jB=new MB("global"),NB=function(t,e,r){jB.report("rtc_error",{message:t,error_code:e},r)};var PB,DB=new Ik,FB=function(t){return DB.get(t)},UB="undefined"!=typeof window&&KS(PB=window.location.search).call(PB,"_rtc_upload_console_");function GB(t,e){return fm(t).call(t,(function(t){var r,n,i="";try{if("string"==typeof t)return t;if(void 0===t)return"undefined";if(null===t)return"null";if(t instanceof MediaStreamTrack)return QS(t);if(t instanceof MediaStream)return null==(n=t)?"undefined | null":"string"==typeof n?n:My({id:n.id,active:n.active});if(t instanceof RTCRtpSender)return tx(t);if(t instanceof RTCRtpReceiver)return ex(t);if(t instanceof RTCRtpTransceiver)return null==(r=t)?"undefined | null":"string"==typeof r?r:My({currentDirection:r.currentDirection,direction:r.direction,mid:r.mid,stopped:r.stopped,receiver:ex(r.receiver),sender:tx(r.sender)});i=My(t)}catch(o){i=t.toString()}return i&&i.length>=e&&(i=hm(i).call(i,0,e)),i})).join(", ")}var KB,VB,ZB,HB=new(function(){function t(){var e=this;G_(this,t),Hf(this,"name","ConsoleReportor"),Hf(this,"_uuid","".concat(Math.floor(899*Math.random())+100)),Hf(this,"_consoleReportId",0),Hf(this,"_engineReportIdMap",new Ik),Hf(this,"_enabled","NULL"),Hf(this,"_consoleCutLength",cE.getParameter("UPLOAD_CONSOLE_LENGTH_CUT")),Hf(this,"buffer",[]),UB&&dS((function(){e.switchOn()}),0),cE.on("UPLOAD_CONSOLE_ON",(function(t){t?e.switchOn():e.turnOff()})),cE.on("UPLOAD_CONSOLE_LENGTH_CUT",(function(t){e._consoleCutLength=t}))}return V_(t,[{key:"enabled",get:function(){return"OFF"!==this._enabled}},{key:"switchOn",value:function(){"NULL"===this._enabled&&(console.log("[LoggerReportor.constructor] console upload switch ON"),this._enabled="ON")}},{key:"turnOff",value:function(){"NULL"===this._enabled&&(console.log("[LoggerReportor.constructor] console upload switch OFF"),this._enabled="OFF",this.buffer=[])}},{key:"getEngineConsoleId",value:function(t){var e,r=null!==(e=this._engineReportIdMap.get(t))&&void 0!==e?e:0;return this._engineReportIdMap.set(t,r+1),r}},{key:"report",value:function(t,e,r,n,i,o,a,s,u){var c,l,f,h,d,p,v,g,_,y,m,b=this;if("OFF"!==this._enabled){var w,k=FB(e),S=this._consoleReportId++,x=this.getEngineConsoleId(e),E=GB(u,this._consoleCutLength),O=Ox(u),A="".concat(s).replace(/%o|%s/gi,(function(){return GB([O.shift()],b._consoleCutLength)})),T=Sm(c=Sm(l=Sm(f=Sm(h=Sm(d=Sm(p=Sm(v=Sm(g=Sm(_=Sm(y=Sm(m="[".concat(this._uuid,"-")).call(m,S,"][")).call(y,e,"-")).call(_,x,"]-")).call(g,r,"-")).call(v,t,"[")).call(p,n,"]")).call(d,i,"[")).call(h,o,".")).call(f,a,"] ")).call(l,A," ")).call(c,E);k?k.reportLog(T):(w=T,jB.reportLog(w))}}},{key:"push",value:function(t){"OFF"!==this._enabled&&this.buffer.push(t)}},{key:"splice",value:function(t){var e;if("ON"!==this._enabled)return{payload:[],payloadSize:0};var r=function(t,e){for(var r=0,n=0;n<t.length;n++){var i=My(t[n]).length;if((r+=i)>e)return{index:n,size:r-i}}return{index:t.length,size:r}}(this.buffer,t),n=r.index,i=r.size;return{payload:Hx(e=this.buffer).call(e,0,n),payloadSize:i}}},{key:"unshift",value:function(t){this.buffer=Sm(t).call(t,this.buffer)}},{key:"get",value:function(){return this.buffer}},{key:"set",value:function(t){this.buffer=Sm(t).call(t,this.buffer)}},{key:"isEmpty",value:function(){return"OFF"===this._enabled||0===this.buffer.length}}]),t}()),WB="[VERTC]",JB="#0050b3",YB=(Hf(KB={},"DEBUG","rgba(0, 0, 0, 0)"),Hf(KB," INFO","rgba(93, 173, 226, 0)"),Hf(KB," WARN","rgba(255, 119, 0, 0.3)"),Hf(KB,"ERROR","rgba(255, 0, 0, 0.3)"),Hf(KB," SUCC","rgba(0, 119, 0, 0.3)"),KB),XB="undefined"!=typeof window&&(KS(VB=window.location.search).call(VB,"_rtc_debug_")||(null===(ZB=window.localStorage)||void 0===ZB?void 0:ZB.getItem("_rtc_debug_"))),$B=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"global";G_(this,t),Hf(this,"indent",void 0),Hf(this,"module",void 0),Hf(this,"_engineId",void 0),this.module=e,this.indent=r,this._engineId=n}return V_(t,[{key:"_print",value:function(t,e){for(var r,n,i,o,a,s,u,c,l=arguments.length,f=new Array(l>2?l-2:0),h=2;h<l;h++)f[h-2]=arguments[h];var d=f.shift();try{var p,v,g,_,y=Sm(p=[]).call(p,f),m="".concat(d).replace(/%o/gi,(function(){var t=y.shift();return My(t)}));ox.set(Sm(v=Sm(g=Sm(_="".concat(WB,"[").concat(this.module,".")).call(_,e,"] ")).call(g,m," ")).call(v,fm(y).call(y,(function(t){return My(t)})).join(", ")))}catch(dC){}for(var b="",w=0;w<this.indent;w++)b+=" ";var k=qB();HB.report(WB,this._engineId,k,t,b,this.module,e,d,f),XB&&(r=console).log.apply(r,Sm(n=[Sm(i=Sm(o=Sm(a=Sm(s=Sm(u=Sm(c="%c".concat(k,"-")).call(c,WB,"%c[")).call(u,t,"]%c")).call(s,b,"[")).call(a,this.module,".")).call(o,e,"] ")).call(i,d),"color:".concat(JB,";"),"background-color:".concat(YB[t],";"),"color:".concat(JB,";")]).call(n,f))}},{key:"print",value:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._print.apply(this,Sm(e=[" INFO",t]).call(e,n))}},{key:"debug",value:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._print.apply(this,Sm(e=["DEBUG",t]).call(e,n))}},{key:"info",value:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._print.apply(this,Sm(e=[" INFO",t]).call(e,n))}},{key:"warn",value:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._print.apply(this,Sm(e=[" WARN",t]).call(e,n))}},{key:"error",value:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._print.apply(this,Sm(e=["ERROR",t]).call(e,n))}},{key:"success",value:function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._print.apply(this,Sm(e=[" SUCC",t]).call(e,n))}}]),t}(),qB=function(){var t,e,r=new Date;return Sm(t="".concat(r.toTimeString().split(" ")[0],":")).call(t,Ex(e=r.getMilliseconds().toString()).call(e,3,"0"))},QB=function(t){return t[t.EFFECT_WHITE_MODE=0]="EFFECT_WHITE_MODE",t[t.EFFECT_SMOOTH_MODE=1]="EFFECT_SMOOTH_MODE",t[t.EFFECT_SHARPEN_MODE=2]="EFFECT_SHARPEN_MODE",t}(QB||{}),tC=function(t){return t.BACKGROUND_BLUR="blur",t.BACKGROUND_IMAGE="image-url",t.BACKGROUND_COLOR="color",t.BACKGROUND_VIDEO="video-url",t}(tC||{}),eC=function(t){return t.PERFORMANCE="fast",t.QUALITY="accurate",t}(eC||{}),rC=function(t){return t.CPU="cpu",t.GPU="gpu",t}(rC||{});var nC,iC="https://cv-tob.byteintl.com/api/v2/webardeliver/verify",oC=By,aC=Cy,sC=function(t,e,r,n){for(var i,o=n>1?void 0:n?aC(e,r):e,a=t.length-1;a>=0;a--)(i=t[a])&&(o=(n?i(e,r,o):i(o))||o);return n&&o&&oC(e,r,o),o},uC=new $B("RTCBeautyExtension",1);function cC(){var t="none";return null!==window.navigator.userAgent.match("Firefox")?t="mozilla":null!==window.navigator.userAgent.match("Chrome")?(t="chrome-stable",null!==window.navigator.userAgent.match("Electron")&&(t="electron")):(null!==window.navigator.userAgent.match("Safari")||null!==window.navigator.userAgent.match("AppleWebKit"))&&(t="safari"),t}var lC=(nC=function(t){fy(v,t);var e,r,n,i,o,a,s,u,c,l,f,h,d,p=Ty(v);function v(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(G_(this,v),Hf(Z_(e=p.call(this)),"name","RTCBeautyExtension"),Hf(Z_(e),"_enable",!1),Hf(Z_(e),"_session",void 0),Hf(Z_(e),"canvas",void 0),Hf(Z_(e),"_enableBeauty",!1),Hf(Z_(e),"_enableBackground",!1),Hf(Z_(e),"_fps",15),Hf(Z_(e),"_backgroundBackend",rC.CPU),Hf(Z_(e),"_backgroundAIModelType",eC.QUALITY),Hf(Z_(e),"_backgroundMode",tC.BACKGROUND_BLUR),Hf(Z_(e),"_backgroundUrl",""),Hf(Z_(e),"_backgroundVideoUrl",""),Hf(Z_(e),"_backgroundColor",void 0),Hf(Z_(e),"_beautyDefaultValue",{skinSmoothingSharpness:.5,whitenAmount:.5,skinSmoothingAmount:.5}),Hf(Z_(e),"_radius",20),Hf(Z_(e),"_preTrack",null),v._sdkUrl=r.sdkUrl||"https://sf-web-ar.bytepluscdn.com/obj/web-ar-resources-sg/ies/webar/1.0.0.191/87f23f8/3.6.1-rc.0/package/dist/index.js",v._sdkAuthServer=r.sdkAuthServer||iC,v._authFileUrl=r.authFileUrl||"",r.aiBackend===rC.GPU)&&("undefined"!=typeof WebGL2RenderingContext&&("undefined"!=typeof OffscreenCanvas?new OffscreenCanvas(16,16).getContext("webgl2")&&(e._backgroundBackend=rC.GPU):e._backgroundBackend=rC.GPU));return e._backgroundAIModelType=null!==(t=r.aiModelType)&&void 0!==t?t:eC.QUALITY,e.on("stop",(function(){e._preTrack&&(e._preTrack=null)})),e}return V_(v,[{key:"initWebArSDK",value:(d=U_(D_().mark((function t(){return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==v.WebARMainSDK){t.next=3;break}return t.next=3,v.loadWebARSDK();case 3:v.WebARMainSDK&&!this._session&&(this.canvas=document.createElement("canvas"),this._session=v.WebARMainSDK.createSession({canvas:this.canvas,authorization:{file:v._authFileUrl||"",serviceEndpoint:v._sdkAuthServer},__videoPlayerSettings:{shouldAttachVideoElementToDOM:"safari"===cC()}}),this._session.virtualBackgroundController.blurSettings.radius=this._radius,this._session.virtualBackgroundController.updatePreferredPortraitMattingInferenceBackend(this._backgroundBackend),this._session.virtualBackgroundController.updatePortraitMattingModelType(this._backgroundAIModelType),this._session.pipelineDriver="worker");case 4:case"end":return t.stop()}}),t,this)}))),function(){return d.apply(this,arguments)})},{key:"init",value:(h=U_(D_().mark((function t(e){var r,n,i,o,a;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return null===(r=this.monitor)||void 0===r||r.report("rtc_invoke_status",{sdk_api_name:"RTCBeautyExtension.init.params",message:My({hasAuthFile:!!v._authFileUrl,aiBackend:this._backgroundBackend,aiModelType:this._backgroundAIModelType}),error_code:0}),t.next=3,this.initWebArSDK();case 3:return t.next=5,null===(n=this._session)||void 0===n?void 0:n.clearEffect();case 5:o=null==e?void 0:e.videoCaptureConfig,this._fps=o?"number"==typeof(null==o?void 0:o.frameRate)?(null==o?void 0:o.frameRate)||15:(null==o||null===(i=o.frameRate)||void 0===i?void 0:i.ideal)||15:15,uC.print("init fps",this._fps),this._session&&(this._session.frameRateControl={type:"preferred",frameRate:this._fps}),"safari"===cC()&&(a=this.canvas)&&(a.style.width="1px",a.style.height="1px",a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",a.style.pointerEvents="none",a.style.zIndex="-9999",document.body.appendChild(a));case 10:case"end":return t.stop()}}),t,this)}))),function(t){return h.apply(this,arguments)})},{key:"checkCompatibility",value:(f=U_(D_().mark((function t(){var e;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e="",t.prev=1,t.next=4,this.initWebArSDK();case 4:return t.abrupt("return",{isCompatible:!0,reasons:[],message:e});case 7:return t.prev=7,t.t0=t.catch(1),e=(null===t.t0||void 0===t.t0?void 0:t.t0.toString())||(null===t.t0||void 0===t.t0?void 0:t.t0.stack)||"",t.abrupt("return",{isCompatible:!1,reasons:[100],message:e});case 11:case"end":return t.stop()}}),t,this,[[1,7]])}))),function(){return f.apply(this,arguments)})},{key:"effect",value:(l=U_(D_().mark((function t(e,r){var n,i,o,a,s;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r||e.mediaTrack,(this._enableBeauty||this._enableBackground)&&this.canvas){t.next=3;break}return t.abrupt("return",n);case 3:if("video"!==e.mediaType||e.streamIndex!==Mk.STREAM_INDEX_MAIN){t.next=12;break}if(i=n.getSettings(),o=i.width,a=i.height,o&&a&&(this.canvas.width=o,this.canvas.style.width="".concat(o,"px"),this.canvas.height=a,this.canvas.style.height="".concat(a,"px")),this._preTrack===n){t.next=11;break}return t.next=9,null===(s=this._session)||void 0===s?void 0:s.switchVideoSource({type:"video-stream",stream:new MediaStream([n])});case 9:this._preTrack=n,this.maybeRestartSession();case 11:return t.abrupt("return",this.canvas.captureStream(this._fps).getVideoTracks()[0]);case 12:return t.abrupt("return",n);case 13:case"end":return t.stop()}}),t,this)}))),function(t,e){return l.apply(this,arguments)})},{key:"enable",value:function(){return this.enableBeauty()}},{key:"enableBeauty",value:(c=U_(D_().mark((function t(){var e,r,n=this;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=!this._enableBeauty&&!this._enableBackground,this._enableBeauty=!0,zy(e=jy(this._beautyDefaultValue)).call(e,(function(t){n._session&&(n._session.faceBeautyController.settings[t]=n._beautyDefaultValue[t])})),this.maybeRestartSession(),this._preTrack&&!r){t.next=6;break}return t.abrupt("return",new Ny((function(t,e){n.emit("reset-video-effect",t,e)})));case 6:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"disable",value:function(){return this.disableBeauty()}},{key:"disableBeauty",value:(u=U_(D_().mark((function t(){var e,r,n=this;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this._enableBeauty&&!this._enableBackground,this._enableBeauty=!1,this.maybeStopSession(),this._preTrack&&!e){t.next=7;break}return t.abrupt("return",new Ny((function(t,e){n.emit("reset-video-effect",t,e)})));case 7:zy(r=jy(this._beautyDefaultValue)).call(r,(function(t){n._session&&(n._session.faceBeautyController.settings[t]=0)}));case 8:case"end":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})},{key:"enableVirtualBackground",value:(s=U_(D_().mark((function t(){var e,r=this;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=!this._enableBeauty&&!this._enableBackground,this._enableBackground=!0,t.next=4,this._updateVirtualBackground();case 4:if(this.maybeRestartSession(),this._preTrack&&!e){t.next=7;break}return t.abrupt("return",new Ny((function(t,e){r.emit("reset-video-effect",t,e)})));case 7:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"disableVirtualBackground",value:(a=U_(D_().mark((function t(){var e,r,n=this;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=!this._enableBeauty&&this._enableBackground,this._enableBackground=!1,this.maybeStopSession(),this._preTrack&&!e){t.next=7;break}return t.abrupt("return",new Ny((function(t,e){n.emit("reset-video-effect",t,e)})));case 7:null===(r=this._session)||void 0===r||r.virtualBackgroundController.updateVirtualBackground(null);case 8:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"setBeautyIntensity",value:function(t,e){switch(e=Math.min(1,Math.max(0,e)),t){case QB.EFFECT_SHARPEN_MODE:this._beautyDefaultValue.skinSmoothingSharpness=e,this._session&&(this._session.faceBeautyController.settings.skinSmoothingSharpness=e);break;case QB.EFFECT_WHITE_MODE:this._beautyDefaultValue.whitenAmount=e,this._session&&(this._session.faceBeautyController.settings.whitenAmount=e);break;case QB.EFFECT_SMOOTH_MODE:this._beautyDefaultValue.skinSmoothingAmount=e,this._session&&(this._session.faceBeautyController.settings.skinSmoothingAmount=e)}}},{key:"setBackgroundMode",value:function(t){this._backgroundMode=t,this._enableBackground&&this._updateVirtualBackground()}},{key:"getBackgroundImage",value:function(){return this._backgroundUrl}},{key:"loadBackgroundImage",value:(o=U_(D_().mark((function t(e){return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._session){t.next=2;break}return t.abrupt("return",Ny.reject(new Error("init extension first")));case 2:if(this._backgroundUrl=e,!this._enableBackground){t.next=6;break}return t.next=6,this._updateVirtualBackground();case 6:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"setBackgroundBlurRadius",value:function(t){"number"==typeof t&&t>=0&&(this._radius=t,this._session&&(this._session.virtualBackgroundController.blurSettings.radius=t))}},{key:"setBackgroundColor",value:function(t){var e,r=[];if(/^#[0-9A-Fa-f]{8}$/.test(t))r=[om(t.substring(1,3),16),om(t.substring(3,5),16),om(t.substring(5,7),16),om(t.substring(7,9),16)/255];else if(/^(rgba|RGBA)/.test(t)){var n;r=fm(n=hm(t).call(t,5,t.length-1).split(",")).call(n,(function(t){return Number(t)}))}return!!(4===r.length&&ym(e=[r[0],r[1],r[2]]).call(e,(function(t){return t>=0&&t<=255}))&&r[3]>=0&&r[3]<=1)&&(this._backgroundColor={r:r[0]/255,g:r[1]/255,b:r[2]/255,a:Number(r[3].toFixed(3))},this._enableBackground&&this._updateVirtualBackground(),!0)}},{key:"loadBackgroundVideo",value:(i=U_(D_().mark((function t(e){return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._session){t.next=2;break}return t.abrupt("return",Ny.reject(new Error("init extension first")));case 2:if(this._backgroundVideoUrl=e,!this._enableBackground){t.next=6;break}return t.next=6,this._updateVirtualBackground();case 6:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"getBackgroundVideo",value:function(){return this._backgroundVideoUrl}},{key:"setAIModelType",value:function(t){var e;this._backgroundAIModelType=t,null===(e=this._session)||void 0===e||e.virtualBackgroundController.updatePortraitMattingModelType(t)}},{key:"applyConstraints",value:function(t,e){var r=e.width,n=e.height;this.canvas&&t===Mk.STREAM_INDEX_MAIN&&"number"==typeof r&&"number"==typeof n&&(this.canvas.width=r,this.canvas.style.width="".concat(r,"px"),this.canvas.height=n,this.canvas.style.height="".concat(n,"px"))}},{key:"isSupported",value:(n=U_(D_().mark((function t(){var e;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.checkCompatibility();case 2:return e=t.sent,t.abrupt("return",e.isCompatible);case 4:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"isOpen",value:function(){return this._enable}},{key:"destroy",value:function(){var t;null===(t=this._session)||void 0===t||t.dispose()}},{key:"_updateVirtualBackground",value:(r=U_(D_().mark((function t(){var e,r;return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r={type:this._backgroundMode},this._backgroundMode!==tC.BACKGROUND_IMAGE){t.next=9;break}if(!this._backgroundUrl){t.next=6;break}r.url=this._backgroundUrl,t.next=7;break;case 6:case 22:return t.abrupt("return",!1);case 7:case 15:t.next=23;break;case 9:if(this._backgroundMode!==tC.BACKGROUND_COLOR){t.next=17;break}if(!this._backgroundColor){t.next=14;break}r=Jf(Jf({},r),this._backgroundColor),t.next=15;break;case 14:return t.abrupt("return");case 17:if(this._backgroundMode!==tC.BACKGROUND_VIDEO){t.next=23;break}if(!this._backgroundVideoUrl){t.next=22;break}r.url=this._backgroundVideoUrl,t.next=23;break;case 23:return t.next=25,null===(e=this._session)||void 0===e?void 0:e.virtualBackgroundController.updateVirtualBackground(r);case 25:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"maybeRestartSession",value:function(){var t=this;this._session&&(this._enableBeauty||this._enableBackground)&&!this._session.isStarted&&this._preTrack&&(uC.info("ar","session start"),this._session.start().catch((function(e){var r;null===(r=t.monitor)||void 0===r||r.report("rtc_error",{error_code:-1,message:e.name})})))}},{key:"maybeStopSession",value:function(){var t=this;this._session&&(this._enableBeauty||this._enableBackground||!this._session.isStarted||(uC.info("ar","session stop"),this._session.stop().catch((function(e){var r;null===(r=t.monitor)||void 0===r||r.report("rtc_error",{error_code:-1,message:e.name})}))))}}],[{key:"loadWebARSDK",value:(e=U_(D_().mark((function t(){return D_().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",import(v._sdkUrl).then((function(t){var e=t.ARSDK;v.WebARMainSDK=e})).catch((function(t){throw uC.error("load ar sdk error",t),new Error("Load WebAR SDK timeout")})));case 1:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})}]),v}(zk),Hf(nC,"WebARMainSDK",void 0),Hf(nC,"_sdkUrl",void 0),Hf(nC,"_sdkAuthServer",iC),Hf(nC,"_authFileUrl",""),nC),fC=lC;sC([jk],fC.prototype,"init",1),sC([jk],fC.prototype,"checkCompatibility",1),sC([jk],fC.prototype,"enable",1),sC([jk],fC.prototype,"enableBeauty",1),sC([jk],fC.prototype,"disable",1),sC([jk],fC.prototype,"disableBeauty",1),sC([jk],fC.prototype,"enableVirtualBackground",1),sC([jk],fC.prototype,"disableVirtualBackground",1),sC([jk],fC.prototype,"setBeautyIntensity",1),sC([jk],fC.prototype,"setBackgroundMode",1),sC([jk],fC.prototype,"getBackgroundImage",1),sC([jk],fC.prototype,"loadBackgroundImage",1),sC([jk],fC.prototype,"setBackgroundBlurRadius",1),sC([jk],fC.prototype,"setBackgroundColor",1),sC([jk],fC.prototype,"loadBackgroundVideo",1),sC([jk],fC.prototype,"getBackgroundVideo",1),sC([jk],fC.prototype,"setAIModelType",1);var hC=window.BytePlusRTCExtensions||{};hC.RTCBeautyExtension=fC,hC.EffectBeautyMode=QB,window.BytePlusRTCExtensions=hC}));
|
|
7
7
|
//# sourceMappingURL=index.min.js.map
|