@byteplus/rtc 4.55.3 → 4.56.1-meeting.11
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.js +1 -1
- package/extension-ainr/index.umd.js +1 -1
- package/extension-beauty/index.js +1 -1
- package/extension-beauty/index.umd.js +1 -1
- package/index.d.ts +243 -32
- package/index.esm.min.js +2 -2
- package/index.min.js +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!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:{},e=function(t){return t&&t.Math==Math&&t},r=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")(),n=function(t){try{return!!t()}catch(e){return!0}},i=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),o=i,a=Function.prototype,s=a.apply,u=a.call,c="object"==typeof Reflect&&Reflect.apply||(o?u.bind(s):function(){return u.apply(s,arguments)}),l=i,f=Function.prototype,h=f.call,d=l&&f.bind.bind(h,h),p=l?d:function(t){return function(){return h.apply(t,arguments)}},v=p,_=v({}.toString),g=v("".slice),y=function(t){return g(_(t),8,-1)},m=y,b=p,w=function(t){if("Function"===m(t))return b(t)},k="object"==typeof document&&document.all,S={all:k,IS_HTMLDDA:void 0===k&&void 0!==k},x=S.all,E=S.IS_HTMLDDA?function(t){return"function"==typeof t||t===x}:function(t){return"function"==typeof t},T={},A=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),O=i,C=Function.prototype.call,R=O?C.bind(C):function(){return C.apply(C,arguments)},I={},z={}.propertyIsEnumerable,B=Object.getOwnPropertyDescriptor,j=B&&!z.call({1:2},1);I.f=j?function(t){var e=B(this,t);return!!e&&e.enumerable}:z;var P,M,D=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},N=n,L=y,F=Object,U=w("".split),Z=N((function(){return!F("z").propertyIsEnumerable(0)}))?function(t){return"String"==L(t)?U(t,""):F(t)}:F,G=function(t){return null==t},K=G,H=TypeError,W=function(t){if(K(t))throw H("Can't call method on "+t);return t},V=Z,Y=W,J=function(t){return V(Y(t))},q=E,Q=S.all,X=S.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=r,rt=E,nt=function(t){return rt(t)?t:void 0},it=function(t,e){return arguments.length<2?nt(tt[t])||nt(et[t]):tt[t]&&tt[t][e]||et[t]&&et[t][e]},ot=w({}.isPrototypeOf),at=it("navigator","userAgent")||"",st=r,ut=at,ct=st.process,lt=st.Deno,ft=ct&&ct.versions||lt&<.version,ht=ft&&ft.v8;ht&&(M=(P=ht.split("."))[0]>0&&P[0]<4?1:+(P[0]+P[1])),!M&&ut&&(!(P=ut.match(/Edge\/(\d+)/))||P[1]>=74)&&(P=ut.match(/Chrome\/(\d+)/))&&(M=+P[1]);var dt=M,pt=dt,vt=n,_t=!!Object.getOwnPropertySymbols&&!vt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&pt&&pt<41})),gt=_t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,yt=it,mt=E,bt=ot,wt=Object,kt=gt?function(t){return"symbol"==typeof t}:function(t){var e=yt("Symbol");return mt(e)&&bt(e.prototype,wt(t))},St=String,xt=function(t){try{return St(t)}catch(e){return"Object"}},Et=E,Tt=xt,At=TypeError,Ot=function(t){if(Et(t))return t;throw At(Tt(t)+" is not a function")},Ct=Ot,Rt=G,It=function(t,e){var r=t[e];return Rt(r)?void 0:Ct(r)},zt=R,Bt=E,jt=X,Pt=TypeError,Mt={exports:{}},Dt=r,Nt=Object.defineProperty,Lt=function(t,e){try{Nt(Dt,t,{value:e,configurable:!0,writable:!0})}catch(r){Dt[t]=e}return e},Ft="__core-js_shared__",Ut=r[Ft]||Lt(Ft,{}),Zt=Ut;(Mt.exports=function(t,e){return Zt[t]||(Zt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.0",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Gt=W,Kt=Object,Ht=function(t){return Kt(Gt(t))},Wt=Ht,Vt=w({}.hasOwnProperty),Yt=Object.hasOwn||function(t,e){return Vt(Wt(t),e)},Jt=w,qt=0,Qt=Math.random(),Xt=Jt(1..toString),$t=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Xt(++qt+Qt,36)},te=r,ee=Mt.exports,re=Yt,ne=$t,ie=_t,oe=gt,ae=ee("wks"),se=te.Symbol,ue=se&&se.for,ce=oe?se:se&&se.withoutSetter||ne,le=function(t){if(!re(ae,t)||!ie&&"string"!=typeof ae[t]){var e="Symbol."+t;ie&&re(se,t)?ae[t]=se[t]:ae[t]=oe&&ue?ue(e):ce(e)}return ae[t]},fe=R,he=X,de=kt,pe=It,ve=function(t,e){var r,n;if("string"===e&&Bt(r=t.toString)&&!jt(n=zt(r,t)))return n;if(Bt(r=t.valueOf)&&!jt(n=zt(r,t)))return n;if("string"!==e&&Bt(r=t.toString)&&!jt(n=zt(r,t)))return n;throw Pt("Can't convert object to primitive value")},_e=TypeError,ge=le("toPrimitive"),ye=function(t,e){if(!he(t)||de(t))return t;var r,n=pe(t,ge);if(n){if(void 0===e&&(e="default"),r=fe(n,t,e),!he(r)||de(r))return r;throw _e("Can't convert object to primitive value")}return void 0===e&&(e="number"),ve(t,e)},me=kt,be=function(t){var e=ye(t,"string");return me(e)?e:e+""},we=X,ke=r.document,Se=we(ke)&&we(ke.createElement),xe=function(t){return Se?ke.createElement(t):{}},Ee=xe,Te=!A&&!n((function(){return 7!=Object.defineProperty(Ee("div"),"a",{get:function(){return 7}}).a})),Ae=A,Oe=R,Ce=I,Re=D,Ie=J,ze=be,Be=Yt,je=Te,Pe=Object.getOwnPropertyDescriptor;T.f=Ae?Pe:function(t,e){if(t=Ie(t),e=ze(e),je)try{return Pe(t,e)}catch(r){}if(Be(t,e))return Re(!Oe(Ce.f,t,e),t[e])};var Me=n,De=E,Ne=/#|\.prototype\./,Le=function(t,e){var r=Ue[Fe(t)];return r==Ge||r!=Ze&&(De(e)?Me(e):!!e)},Fe=Le.normalize=function(t){return String(t).replace(Ne,".").toLowerCase()},Ue=Le.data={},Ze=Le.NATIVE="N",Ge=Le.POLYFILL="P",Ke=Le,He=Ot,We=i,Ve=w(w.bind),Ye=function(t,e){return He(t),void 0===e?t:We?Ve(t,e):function(){return t.apply(e,arguments)}},Je={},qe=A&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Qe=X,Xe=String,$e=TypeError,tr=function(t){if(Qe(t))return t;throw $e(Xe(t)+" is not an object")},er=A,rr=Te,nr=qe,ir=tr,or=be,ar=TypeError,sr=Object.defineProperty,ur=Object.getOwnPropertyDescriptor,cr="enumerable",lr="configurable",fr="writable";Je.f=er?nr?function(t,e,r){if(ir(t),e=or(e),ir(r),"function"==typeof t&&"prototype"===e&&"value"in r&&fr in r&&!r.writable){var n=ur(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:lr in r?r.configurable:n.configurable,enumerable:cr in r?r.enumerable:n.enumerable,writable:!1})}return sr(t,e,r)}:sr:function(t,e,r){if(ir(t),e=or(e),ir(r),rr)try{return sr(t,e,r)}catch(n){}if("get"in r||"set"in r)throw ar("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var hr=Je,dr=D,pr=A?function(t,e,r){return hr.f(t,e,dr(1,r))}:function(t,e,r){return t[e]=r,t},vr=r,_r=c,gr=w,yr=E,mr=T.f,br=Ke,wr=$,kr=Ye,Sr=pr,xr=Yt,Er=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},Tr=function(t,e){var r,n,i,o,a,s,u,c,l=t.target,f=t.global,h=t.stat,d=t.proto,p=f?vr:h?vr[l]:(vr[l]||{}).prototype,v=f?wr:wr[l]||Sr(wr,l,{})[l],_=v.prototype;for(i in e)r=!br(f?i:l+(h?".":"#")+i,t.forced)&&p&&xr(p,i),a=v[i],r&&(s=t.dontCallGetSet?(c=mr(p,i))&&c.value:p[i]),o=r&&s?s:e[i],r&&typeof a==typeof o||(u=t.bind&&r?kr(o,vr):t.wrap&&r?Er(o):d&&yr(o)?gr(o):o,(t.sham||o&&o.sham||a&&a.sham)&&Sr(u,"sham",!0),Sr(v,i,u),d&&(xr(wr,n=l+"Prototype")||Sr(wr,n,{}),Sr(wr[n],i,o),t.real&&_&&!_[i]&&Sr(_,i,o)))},Ar=y,Or=Array.isArray||function(t){return"Array"==Ar(t)},Cr=Math.ceil,Rr=Math.floor,Ir=Math.trunc||function(t){var e=+t;return(e>0?Rr:Cr)(e)},zr=function(t){var e=+t;return e!=e||0===e?0:Ir(e)},Br=zr,jr=Math.min,Pr=function(t){return t>0?jr(Br(t),9007199254740991):0},Mr=Pr,Dr=function(t){return Mr(t.length)},Nr=TypeError,Lr=function(t){if(t>9007199254740991)throw Nr("Maximum allowed index exceeded");return t},Fr=be,Ur=Je,Zr=D,Gr=function(t,e,r){var n=Fr(e);n in t?Ur.f(t,n,Zr(0,r)):t[n]=r},Kr={};Kr[le("toStringTag")]="z";var Hr="[object z]"===String(Kr),Wr=Hr,Vr=E,Yr=y,Jr=le("toStringTag"),qr=Object,Qr="Arguments"==Yr(function(){return arguments}()),Xr=Wr?Yr: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=qr(t),Jr))?r:Qr?Yr(e):"Object"==(n=Yr(e))&&Vr(e.callee)?"Arguments":n},$r=E,tn=Ut,en=w(Function.toString);$r(tn.inspectSource)||(tn.inspectSource=function(t){return en(t)});var rn=tn.inspectSource,nn=w,on=n,an=E,sn=Xr,un=rn,cn=function(){},ln=[],fn=it("Reflect","construct"),hn=/^\s*(?:class|function)\b/,dn=nn(hn.exec),pn=!hn.exec(cn),vn=function(t){if(!an(t))return!1;try{return fn(cn,ln,t),!0}catch(e){return!1}},_n=function(t){if(!an(t))return!1;switch(sn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return pn||!!dn(hn,un(t))}catch(e){return!0}};_n.sham=!0;var gn=!fn||on((function(){var t;return vn(vn.call)||!vn(Object)||!vn((function(){t=!0}))||t}))?_n:vn,yn=Or,mn=gn,bn=X,wn=le("species"),kn=Array,Sn=function(t){var e;return yn(t)&&(e=t.constructor,(mn(e)&&(e===kn||yn(e.prototype))||bn(e)&&null===(e=e[wn]))&&(e=void 0)),void 0===e?kn:e},xn=function(t,e){return new(Sn(t))(0===e?0:e)},En=n,Tn=dt,An=le("species"),On=function(t){return Tn>=51||!En((function(){var e=[];return(e.constructor={})[An]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Cn=Tr,Rn=n,In=Or,zn=X,Bn=Ht,jn=Dr,Pn=Lr,Mn=Gr,Dn=xn,Nn=On,Ln=dt,Fn=le("isConcatSpreadable"),Un=Ln>=51||!Rn((function(){var t=[];return t[Fn]=!1,t.concat()[0]!==t})),Zn=Nn("concat"),Gn=function(t){if(!zn(t))return!1;var e=t[Fn];return void 0!==e?!!e:In(t)};Cn({target:"Array",proto:!0,arity:1,forced:!Un||!Zn},{concat:function(t){var e,r,n,i,o,a=Bn(this),s=Dn(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(Gn(o=-1===e?a:arguments[e]))for(i=jn(o),Pn(u+i),r=0;r<i;r++,u++)r in o&&Mn(s,u,o[r]);else Pn(u+1),Mn(s,u++,o);return s.length=u,s}});var Kn=Xr,Hn=String,Wn=function(t){if("Symbol"===Kn(t))throw TypeError("Cannot convert a Symbol value to a string");return Hn(t)},Vn={},Yn=zr,Jn=Math.max,qn=Math.min,Qn=function(t,e){var r=Yn(t);return r<0?Jn(r+e,0):qn(r,e)},Xn=J,$n=Qn,ti=Dr,ei=function(t){return function(e,r,n){var i,o=Xn(e),a=ti(o),s=$n(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}},ri={includes:ei(!0),indexOf:ei(!1)},ni={},ii=Yt,oi=J,ai=ri.indexOf,si=ni,ui=w([].push),ci=function(t,e){var r,n=oi(t),i=0,o=[];for(r in n)!ii(si,r)&&ii(n,r)&&ui(o,r);for(;e.length>i;)ii(n,r=e[i++])&&(~ai(o,r)||ui(o,r));return o},li=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fi=ci,hi=li,di=Object.keys||function(t){return fi(t,hi)},pi=A,vi=qe,_i=Je,gi=tr,yi=J,mi=di;Vn.f=pi&&!vi?Object.defineProperties:function(t,e){gi(t);for(var r,n=yi(e),i=mi(e),o=i.length,a=0;o>a;)_i.f(t,r=i[a++],n[r]);return t};var bi,wi=it("document","documentElement"),ki=Mt.exports,Si=$t,xi=ki("keys"),Ei=function(t){return xi[t]||(xi[t]=Si(t))},Ti=tr,Ai=Vn,Oi=li,Ci=ni,Ri=wi,Ii=xe,zi=Ei("IE_PROTO"),Bi=function(){},ji=function(t){return"<script>"+t+"</"+"script>"},Pi=function(t){t.write(ji("")),t.close();var e=t.parentWindow.Object;return t=null,e},Mi=function(){try{bi=new ActiveXObject("htmlfile")}catch(n){}var t,e;Mi="undefined"!=typeof document?document.domain&&bi?Pi(bi):((e=Ii("iframe")).style.display="none",Ri.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ji("document.F=Object")),t.close(),t.F):Pi(bi);for(var r=Oi.length;r--;)delete Mi.prototype[Oi[r]];return Mi()};Ci[zi]=!0;var Di=Object.create||function(t,e){var r;return null!==t?(Bi.prototype=Ti(t),r=new Bi,Bi.prototype=null,r[zi]=t):r=Mi(),void 0===e?r:Ai.f(r,e)},Ni={},Li=ci,Fi=li.concat("length","prototype");Ni.f=Object.getOwnPropertyNames||function(t){return Li(t,Fi)};var Ui={},Zi=Qn,Gi=Dr,Ki=Gr,Hi=Array,Wi=Math.max,Vi=y,Yi=J,Ji=Ni.f,qi=function(t,e,r){for(var n=Gi(t),i=Zi(e,n),o=Zi(void 0===r?n:r,n),a=Hi(Wi(o-i,0)),s=0;i<o;i++,s++)Ki(a,s,t[i]);return a.length=s,a},Qi="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Ui.f=function(t){return Qi&&"Window"==Vi(t)?function(t){try{return Ji(t)}catch(e){return qi(Qi)}}(t):Ji(Yi(t))};var Xi={};Xi.f=Object.getOwnPropertySymbols;var $i=pr,to=function(t,e,r,n){return n&&n.enumerable?t[e]=r:$i(t,e,r),t},eo={},ro=le;eo.f=ro;var no,io,oo,ao=$,so=Yt,uo=eo,co=Je.f,lo=function(t){var e=ao.Symbol||(ao.Symbol={});so(e,t)||co(e,t,{value:uo.f(t)})},fo=R,ho=it,po=le,vo=to,_o=function(){var t=ho("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=po("toPrimitive");e&&!e[n]&&vo(e,n,(function(t){return fo(r,this)}),{arity:1})},go=Xr,yo=Hr?{}.toString:function(){return"[object "+go(this)+"]"},mo=Hr,bo=Je.f,wo=pr,ko=Yt,So=yo,xo=le("toStringTag"),Eo=function(t,e,r,n){if(t){var i=r?t:t.prototype;ko(i,xo)||bo(i,xo,{configurable:!0,value:e}),n&&!mo&&wo(i,"toString",So)}},To=E,Ao=r.WeakMap,Oo=To(Ao)&&/native code/.test(String(Ao)),Co=r,Ro=X,Io=pr,zo=Yt,Bo=Ut,jo=Ei,Po=ni,Mo="Object already initialized",Do=Co.TypeError,No=Co.WeakMap;if(Oo||Bo.state){var Lo=Bo.state||(Bo.state=new No);Lo.get=Lo.get,Lo.has=Lo.has,Lo.set=Lo.set,no=function(t,e){if(Lo.has(t))throw Do(Mo);return e.facade=t,Lo.set(t,e),e},io=function(t){return Lo.get(t)||{}},oo=function(t){return Lo.has(t)}}else{var Fo=jo("state");Po[Fo]=!0,no=function(t,e){if(zo(t,Fo))throw Do(Mo);return e.facade=t,Io(t,Fo,e),e},io=function(t){return zo(t,Fo)?t[Fo]:{}},oo=function(t){return zo(t,Fo)}}var Uo={set:no,get:io,has:oo,enforce:function(t){return oo(t)?io(t):no(t,{})},getterFor:function(t){return function(e){var r;if(!Ro(e)||(r=io(e)).type!==t)throw Do("Incompatible receiver, "+t+" required");return r}}},Zo=Ye,Go=Z,Ko=Ht,Ho=Dr,Wo=xn,Vo=w([].push),Yo=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=Ko(u),v=Go(p),_=Zo(c,l),g=Ho(v),y=0,m=f||Wo,b=e?m(u,g):r||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:Vo(b,h)}else switch(t){case 4:return!1;case 7:Vo(b,h)}return o?-1:n||i?i:b}},Jo={forEach:Yo(0),map:Yo(1),filter:Yo(2),some:Yo(3),every:Yo(4),find:Yo(5),findIndex:Yo(6),filterReject:Yo(7)},qo=Tr,Qo=r,Xo=R,$o=w,ta=A,ea=_t,ra=n,na=Yt,ia=ot,oa=tr,aa=J,sa=be,ua=Wn,ca=D,la=Di,fa=di,ha=Ni,da=Ui,pa=Xi,va=T,_a=Je,ga=Vn,ya=I,ma=to,ba=Mt.exports,wa=ni,ka=$t,Sa=le,xa=eo,Ea=lo,Ta=_o,Aa=Eo,Oa=Uo,Ca=Jo.forEach,Ra=Ei("hidden"),Ia="Symbol",za=Oa.set,Ba=Oa.getterFor(Ia),ja=Object.prototype,Pa=Qo.Symbol,Ma=Pa&&Pa.prototype,Da=Qo.TypeError,Na=Qo.QObject,La=va.f,Fa=_a.f,Ua=da.f,Za=ya.f,Ga=$o([].push),Ka=ba("symbols"),Ha=ba("op-symbols"),Wa=ba("wks"),Va=!Na||!Na.prototype||!Na.prototype.findChild,Ya=ta&&ra((function(){return 7!=la(Fa({},"a",{get:function(){return Fa(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=La(ja,e);n&&delete ja[e],Fa(t,e,r),n&&t!==ja&&Fa(ja,e,n)}:Fa,Ja=function(t,e){var r=Ka[t]=la(Ma);return za(r,{type:Ia,tag:t,description:e}),ta||(r.description=e),r},qa=function(t,e,r){t===ja&&qa(Ha,e,r),oa(t);var n=sa(e);return oa(r),na(Ka,n)?(r.enumerable?(na(t,Ra)&&t[Ra][n]&&(t[Ra][n]=!1),r=la(r,{enumerable:ca(0,!1)})):(na(t,Ra)||Fa(t,Ra,ca(1,{})),t[Ra][n]=!0),Ya(t,n,r)):Fa(t,n,r)},Qa=function(t,e){oa(t);var r=aa(e),n=fa(r).concat(es(r));return Ca(n,(function(e){ta&&!Xo(Xa,r,e)||qa(t,e,r[e])})),t},Xa=function(t){var e=sa(t),r=Xo(Za,this,e);return!(this===ja&&na(Ka,e)&&!na(Ha,e))&&(!(r||!na(this,e)||!na(Ka,e)||na(this,Ra)&&this[Ra][e])||r)},$a=function(t,e){var r=aa(t),n=sa(e);if(r!==ja||!na(Ka,n)||na(Ha,n)){var i=La(r,n);return!i||!na(Ka,n)||na(r,Ra)&&r[Ra][n]||(i.enumerable=!0),i}},ts=function(t){var e=Ua(aa(t)),r=[];return Ca(e,(function(t){na(Ka,t)||na(wa,t)||Ga(r,t)})),r},es=function(t){var e=t===ja,r=Ua(e?Ha:aa(t)),n=[];return Ca(r,(function(t){!na(Ka,t)||e&&!na(ja,t)||Ga(n,Ka[t])})),n};ea||(Pa=function(){if(ia(Ma,this))throw Da("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?ua(arguments[0]):void 0,e=ka(t),r=function(t){this===ja&&Xo(r,Ha,t),na(this,Ra)&&na(this[Ra],e)&&(this[Ra][e]=!1),Ya(this,e,ca(1,t))};return ta&&Va&&Ya(ja,e,{configurable:!0,set:r}),Ja(e,t)},ma(Ma=Pa.prototype,"toString",(function(){return Ba(this).tag})),ma(Pa,"withoutSetter",(function(t){return Ja(ka(t),t)})),ya.f=Xa,_a.f=qa,ga.f=Qa,va.f=$a,ha.f=da.f=ts,pa.f=es,xa.f=function(t){return Ja(Sa(t),t)},ta&&Fa(Ma,"description",{configurable:!0,get:function(){return Ba(this).description}})),qo({global:!0,constructor:!0,wrap:!0,forced:!ea,sham:!ea},{Symbol:Pa}),Ca(fa(Wa),(function(t){Ea(t)})),qo({target:Ia,stat:!0,forced:!ea},{useSetter:function(){Va=!0},useSimple:function(){Va=!1}}),qo({target:"Object",stat:!0,forced:!ea,sham:!ta},{create:function(t,e){return void 0===e?la(t):Qa(la(t),e)},defineProperty:qa,defineProperties:Qa,getOwnPropertyDescriptor:$a}),qo({target:"Object",stat:!0,forced:!ea},{getOwnPropertyNames:ts}),Ta(),Aa(Pa,Ia),wa[Ra]=!0;var rs=_t&&!!Symbol.for&&!!Symbol.keyFor,ns=Tr,is=it,os=Yt,as=Wn,ss=Mt.exports,us=rs,cs=ss("string-to-symbol-registry"),ls=ss("symbol-to-string-registry");ns({target:"Symbol",stat:!0,forced:!us},{for:function(t){var e=as(t);if(os(cs,e))return cs[e];var r=is("Symbol")(e);return cs[e]=r,ls[r]=e,r}});var fs=Tr,hs=Yt,ds=kt,ps=xt,vs=rs,_s=(0,Mt.exports)("symbol-to-string-registry");fs({target:"Symbol",stat:!0,forced:!vs},{keyFor:function(t){if(!ds(t))throw TypeError(ps(t)+" is not a symbol");if(hs(_s,t))return _s[t]}});var gs=w([].slice),ys=Tr,ms=it,bs=c,ws=R,ks=w,Ss=n,xs=Or,Es=E,Ts=X,As=kt,Os=gs,Cs=_t,Rs=ms("JSON","stringify"),Is=ks(/./.exec),zs=ks("".charAt),Bs=ks("".charCodeAt),js=ks("".replace),Ps=ks(1..toString),Ms=/[\uD800-\uDFFF]/g,Ds=/^[\uD800-\uDBFF]$/,Ns=/^[\uDC00-\uDFFF]$/,Ls=!Cs||Ss((function(){var t=ms("Symbol")();return"[null]"!=Rs([t])||"{}"!=Rs({a:t})||"{}"!=Rs(Object(t))})),Fs=Ss((function(){return'"\\udf06\\ud834"'!==Rs("\udf06\ud834")||'"\\udead"'!==Rs("\udead")})),Us=function(t,e){var r=Os(arguments),n=e;if((Ts(e)||void 0!==t)&&!As(t))return xs(e)||(e=function(t,e){if(Es(n)&&(e=ws(n,this,t,e)),!As(e))return e}),r[1]=e,bs(Rs,null,r)},Zs=function(t,e,r){var n=zs(r,e-1),i=zs(r,e+1);return Is(Ds,t)&&!Is(Ns,i)||Is(Ns,t)&&!Is(Ds,n)?"\\u"+Ps(Bs(t,0),16):t};Rs&&ys({target:"JSON",stat:!0,arity:3,forced:Ls||Fs},{stringify:function(t,e,r){var n=Os(arguments),i=bs(Ls?Us:Rs,null,n);return Fs&&"string"==typeof i?js(i,Ms,Zs):i}});var Gs=Xi,Ks=Ht;Tr({target:"Object",stat:!0,forced:!_t||n((function(){Gs.f(1)}))},{getOwnPropertySymbols:function(t){var e=Gs.f;return e?e(Ks(t)):[]}}),lo("asyncIterator"),lo("hasInstance"),lo("isConcatSpreadable"),lo("iterator"),lo("match"),lo("matchAll"),lo("replace"),lo("search"),lo("species"),lo("split");var Hs=_o;lo("toPrimitive"),Hs();var Ws=it,Vs=Eo;lo("toStringTag"),Vs(Ws("Symbol"),"Symbol"),lo("unscopables"),Eo(r.JSON,"JSON",!0);var Ys,Js,qs,Qs=$.Symbol,Xs={},$s=A,tu=Yt,eu=Function.prototype,ru=$s&&Object.getOwnPropertyDescriptor,nu=tu(eu,"name"),iu={EXISTS:nu,PROPER:nu&&"something"===function(){}.name,CONFIGURABLE:nu&&(!$s||$s&&ru(eu,"name").configurable)},ou=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),au=Yt,su=E,uu=Ht,cu=ou,lu=Ei("IE_PROTO"),fu=Object,hu=fu.prototype,du=cu?fu.getPrototypeOf:function(t){var e=uu(t);if(au(e,lu))return e[lu];var r=e.constructor;return su(r)&&e instanceof r?r.prototype:e instanceof fu?hu:null},pu=n,vu=E,_u=X,gu=Di,yu=du,mu=to,bu=le("iterator"),wu=!1;[].keys&&("next"in(qs=[].keys())?(Js=yu(yu(qs)))!==Object.prototype&&(Ys=Js):wu=!0);var ku=!_u(Ys)||pu((function(){var t={};return Ys[bu].call(t)!==t}));vu((Ys=ku?{}:gu(Ys))[bu])||mu(Ys,bu,(function(){return this}));var Su={IteratorPrototype:Ys,BUGGY_SAFARI_ITERATORS:wu},xu=Su.IteratorPrototype,Eu=Di,Tu=D,Au=Eo,Ou=Xs,Cu=function(){return this},Ru=E,Iu=String,zu=TypeError,Bu=w,ju=tr,Pu=function(t){if("object"==typeof t||Ru(t))return t;throw zu("Can't set "+Iu(t)+" as a prototype")},Mu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Bu(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(n){}return function(r,n){return ju(r),Pu(n),e?t(r,n):r.__proto__=n,r}}():void 0),Du=Tr,Nu=R,Lu=iu,Fu=function(t,e,r,n){var i=e+" Iterator";return t.prototype=Eu(xu,{next:Tu(+!n,r)}),Au(t,i,!1,!0),Ou[i]=Cu,t},Uu=du,Zu=Eo,Gu=to,Ku=Xs,Hu=Su,Wu=Lu.PROPER,Vu=Hu.BUGGY_SAFARI_ITERATORS,Yu=le("iterator"),Ju="keys",qu="values",Qu="entries",Xu=function(){return this},$u=function(t,e,r,n,i,o,a){Fu(r,e,n);var s,u,c,l=function(t){if(t===i&&v)return v;if(!Vu&&t in d)return d[t];switch(t){case Ju:case qu:case Qu:return function(){return new r(this,t)}}return function(){return new r(this)}},f=e+" Iterator",h=!1,d=t.prototype,p=d[Yu]||d["@@iterator"]||i&&d[i],v=!Vu&&p||l(i),_="Array"==e&&d.entries||p;if(_&&(s=Uu(_.call(new t)))!==Object.prototype&&s.next&&(Zu(s,f,!0,!0),Ku[f]=Xu),Wu&&i==qu&&p&&p.name!==qu&&(h=!0,v=function(){return Nu(p,this)}),i)if(u={values:l(qu),keys:o?v:l(Ju),entries:l(Qu)},a)for(c in u)(Vu||h||!(c in d))&&Gu(d,c,u[c]);else Du({target:e,proto:!0,forced:Vu||h},u);return a&&d[Yu]!==v&&Gu(d,Yu,v,{name:i}),Ku[e]=v,u},tc=function(t,e){return{value:t,done:e}},ec=J,rc=function(){},nc=Xs,ic=Uo,oc=(Je.f,$u),ac=tc,sc="Array Iterator",uc=ic.set,cc=ic.getterFor(sc);oc(Array,"Array",(function(t,e){uc(this,{type:sc,target:ec(t),index:0,kind:e})}),(function(){var t=cc(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,ac(void 0,!0)):ac("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values");nc.Arguments=nc.Array;rc(),rc(),rc();var lc={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},fc=r,hc=Xr,dc=pr,pc=Xs,vc=le("toStringTag");for(var _c in lc){var gc=fc[_c],yc=gc&&gc.prototype;yc&&hc(yc)!==vc&&dc(yc,vc,_c),pc[_c]=pc.Array}var mc=Qs;lo("asyncDispose"),lo("dispose"),lo("matcher"),lo("metadataKey"),lo("observable"),lo("metadata"),lo("patternMatch"),lo("replaceAll");var bc=mc,wc=w,kc=zr,Sc=Wn,xc=W,Ec=wc("".charAt),Tc=wc("".charCodeAt),Ac=wc("".slice),Oc=function(t){return function(e,r){var n,i,o=Sc(xc(e)),a=kc(r),s=o.length;return a<0||a>=s?t?"":void 0:(n=Tc(o,a))<55296||n>56319||a+1===s||(i=Tc(o,a+1))<56320||i>57343?t?Ec(o,a):n:t?Ac(o,a,a+2):i-56320+(n-55296<<10)+65536}},Cc={codeAt:Oc(!1),charAt:Oc(!0)}.charAt,Rc=Wn,Ic=Uo,zc=$u,Bc=tc,jc="String Iterator",Pc=Ic.set,Mc=Ic.getterFor(jc);zc(String,"String",(function(t){Pc(this,{type:jc,string:Rc(t),index:0})}),(function(){var t,e=Mc(this),r=e.string,n=e.index;return n>=r.length?Bc(void 0,!0):(t=Cc(r,n),e.index+=t.length,Bc(t,!1))}));var Dc=eo.f("iterator");function Nc(t){return(Nc="function"==typeof bc&&"symbol"==typeof Dc?function(t){return typeof t}:function(t){return t&&"function"==typeof bc&&t.constructor===bc&&t!==bc.prototype?"symbol":typeof t})(t)}var Lc={exports:{}},Fc=Tr,Uc=A,Zc=Je.f;Fc({target:"Object",stat:!0,forced:Object.defineProperty!==Zc,sham:!Uc},{defineProperty:Zc});var Gc=$.Object,Kc=Lc.exports=function(t,e,r){return Gc.defineProperty(t,e,r)};Gc.defineProperty.sham&&(Kc.sham=!0);var Hc=Lc.exports;Tr({target:"Object",stat:!0,sham:!A},{create:Di});var Wc=$.Object,Vc=function(t,e){return Wc.create(t,e)},Yc=Ht,Jc=du,qc=ou;Tr({target:"Object",stat:!0,forced:n((function(){Jc(1)})),sham:!qc},{getPrototypeOf:function(t){return Jc(Yc(t))}});var Qc=$.Object.getPrototypeOf,Xc=n,$c=Jo.forEach,tl=function(t,e){var r=[][t];return!!r&&Xc((function(){r.call(null,e||function(){return 1},1)}))}("forEach")?[].forEach:function(t){return $c(this,t,arguments.length>1?arguments[1]:void 0)};Tr({target:"Array",proto:!0,forced:[].forEach!=tl},{forEach:tl});var el=$,rl=function(t){return el[t+"Prototype"]},nl=rl("Array").forEach,il=Xr,ol=Yt,al=ot,sl=nl,ul=Array.prototype,cl={DOMTokenList:!0,NodeList:!0},ll=function(t){var e=t.forEach;return t===ul||al(ul,t)&&e===ul.forEach||ol(cl,il(t))?sl:e};Tr({target:"Object",stat:!0},{setPrototypeOf:Mu});var fl=$.Object.setPrototypeOf,hl=it,dl=Ni,pl=Xi,vl=tr,_l=w([].concat),gl=hl("Reflect","ownKeys")||function(t){var e=dl.f(vl(t)),r=pl.f;return r?_l(e,r(t)):e},yl=Yt,ml=gl,bl=T,wl=Je,kl=Error,Sl=w("".replace),xl=String(kl("zxcasd").stack),El=/\n\s*at [^:]*:[^\n]*/,Tl=El.test(xl),Al=X,Ol=pr,Cl=Xs,Rl=le("iterator"),Il=Array.prototype,zl=function(t){return void 0!==t&&(Cl.Array===t||Il[Rl]===t)},Bl=Xr,jl=It,Pl=G,Ml=Xs,Dl=le("iterator"),Nl=function(t){if(!Pl(t))return jl(t,Dl)||jl(t,"@@iterator")||Ml[Bl(t)]},Ll=R,Fl=Ot,Ul=tr,Zl=xt,Gl=Nl,Kl=TypeError,Hl=function(t,e){var r=arguments.length<2?Gl(t):e;if(Fl(r))return Ul(Ll(r,t));throw Kl(Zl(t)+" is not iterable")},Wl=R,Vl=tr,Yl=It,Jl=function(t,e,r){var n,i;Vl(t);try{if(!(n=Yl(t,"return"))){if("throw"===e)throw r;return r}n=Wl(n,t)}catch(o){i=!0,n=o}if("throw"===e)throw r;if(i)throw n;return Vl(n),r},ql=Ye,Ql=R,Xl=tr,$l=xt,tf=zl,ef=Dr,rf=ot,nf=Hl,of=Nl,af=Jl,sf=TypeError,uf=function(t,e){this.stopped=t,this.result=e},cf=uf.prototype,lf=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=ql(e,l),_=function(t){return n&&af(n,"normal",t),new uf(!0,t)},g=function(t){return f?(Xl(t),p?v(t[0],t[1],_):v(t[0],t[1])):p?v(t,_):v(t)};if(h)n=t.iterator;else if(d)n=t;else{if(!(i=of(t)))throw sf($l(t)+" is not iterable");if(tf(i)){for(o=0,a=ef(t);a>o;o++)if((s=g(t[o]))&&rf(cf,s))return s;return new uf(!1)}n=nf(t,i)}for(u=h?t.next:n.next;!(c=Ql(u,n)).done;){try{s=g(c.value)}catch(y){af(n,"throw",y)}if("object"==typeof s&&s&&rf(cf,s))return s}return new uf(!1)},ff=Wn,hf=D,df=!n((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",hf(1,7)),7!==t.stack)})),pf=Tr,vf=ot,_f=du,gf=Mu,yf=function(t,e,r){for(var n=ml(e),i=wl.f,o=bl.f,a=0;a<n.length;a++){var s=n[a];yl(t,s)||r&&yl(r,s)||i(t,s,o(e,s))}},mf=Di,bf=pr,wf=D,kf=function(t,e){if(Tl&&"string"==typeof t&&!kl.prepareStackTrace)for(;e--;)t=Sl(t,El,"");return t},Sf=function(t,e){Al(e)&&"cause"in e&&Ol(t,"cause",e.cause)},xf=lf,Ef=function(t,e){return void 0===t?arguments.length<2?"":e:ff(t)},Tf=df,Af=le("toStringTag"),Of=Error,Cf=[].push,Rf=function(t,e){var r,n=arguments.length>2?arguments[2]:void 0,i=vf(If,this);gf?r=gf(Of(),i?_f(this):If):(r=i?this:mf(If),bf(r,Af,"Error")),void 0!==e&&bf(r,"message",Ef(e)),Tf&&bf(r,"stack",kf(r.stack,1)),Sf(r,n);var o=[];return xf(t,Cf,{that:o}),bf(r,"errors",o),r};gf?gf(Rf,Of):yf(Rf,Of,{name:!0});var If=Rf.prototype=mf(Of.prototype,{constructor:wf(1,Rf),message:wf(1,""),name:wf(1,"AggregateError")});pf({global:!0,constructor:!0,arity:2},{AggregateError:Rf});var zf,Bf,jf,Pf,Mf="process"==y(r.process),Df=it,Nf=Je,Lf=A,Ff=le("species"),Uf=function(t){var e=Df(t),r=Nf.f;Lf&&e&&!e[Ff]&&r(e,Ff,{configurable:!0,get:function(){return this}})},Zf=ot,Gf=TypeError,Kf=function(t,e){if(Zf(e,t))return t;throw Gf("Incorrect invocation")},Hf=gn,Wf=xt,Vf=TypeError,Yf=function(t){if(Hf(t))return t;throw Vf(Wf(t)+" is not a constructor")},Jf=tr,qf=Yf,Qf=G,Xf=le("species"),$f=function(t,e){var r,n=Jf(t).constructor;return void 0===n||Qf(r=Jf(n)[Xf])?e:qf(r)},th=TypeError,eh=/(?:ipad|iphone|ipod).*applewebkit/i.test(at),rh=r,nh=c,ih=Ye,oh=E,ah=Yt,sh=n,uh=wi,ch=gs,lh=xe,fh=function(t,e){if(t<e)throw th("Not enough arguments");return t},hh=eh,dh=Mf,ph=rh.setImmediate,vh=rh.clearImmediate,_h=rh.process,gh=rh.Dispatch,yh=rh.Function,mh=rh.MessageChannel,bh=rh.String,wh=0,kh={},Sh="onreadystatechange";try{zf=rh.location}catch($E){}var xh=function(t){if(ah(kh,t)){var e=kh[t];delete kh[t],e()}},Eh=function(t){return function(){xh(t)}},Th=function(t){xh(t.data)},Ah=function(t){rh.postMessage(bh(t),zf.protocol+"//"+zf.host)};ph&&vh||(ph=function(t){fh(arguments.length,1);var e=oh(t)?t:yh(t),r=ch(arguments,1);return kh[++wh]=function(){nh(e,void 0,r)},Bf(wh),wh},vh=function(t){delete kh[t]},dh?Bf=function(t){_h.nextTick(Eh(t))}:gh&&gh.now?Bf=function(t){gh.now(Eh(t))}:mh&&!hh?(Pf=(jf=new mh).port2,jf.port1.onmessage=Th,Bf=ih(Pf.postMessage,Pf)):rh.addEventListener&&oh(rh.postMessage)&&!rh.importScripts&&zf&&"file:"!==zf.protocol&&!sh(Ah)?(Bf=Ah,rh.addEventListener("message",Th,!1)):Bf=Sh in lh("script")?function(t){uh.appendChild(lh("script")).onreadystatechange=function(){uh.removeChild(this),xh(t)}}:function(t){setTimeout(Eh(t),0)});var Oh,Ch,Rh,Ih,zh,Bh,jh,Ph,Mh={set:ph,clear:vh},Dh=r,Nh=/ipad|iphone|ipod/i.test(at)&&void 0!==Dh.Pebble,Lh=/web0s(?!.*chrome)/i.test(at),Fh=r,Uh=Ye,Zh=T.f,Gh=Mh.set,Kh=eh,Hh=Nh,Wh=Lh,Vh=Mf,Yh=Fh.MutationObserver||Fh.WebKitMutationObserver,Jh=Fh.document,qh=Fh.process,Qh=Fh.Promise,Xh=Zh(Fh,"queueMicrotask"),$h=Xh&&Xh.value;$h||(Oh=function(){var t,e;for(Vh&&(t=qh.domain)&&t.exit();Ch;){e=Ch.fn,Ch=Ch.next;try{e()}catch($E){throw Ch?Ih():Rh=void 0,$E}}Rh=void 0,t&&t.enter()},Kh||Vh||Wh||!Yh||!Jh?!Hh&&Qh&&Qh.resolve?((jh=Qh.resolve(void 0)).constructor=Qh,Ph=Uh(jh.then,jh),Ih=function(){Ph(Oh)}):Vh?Ih=function(){qh.nextTick(Oh)}:(Gh=Uh(Gh,Fh),Ih=function(){Gh(Oh)}):(zh=!0,Bh=Jh.createTextNode(""),new Yh(Oh).observe(Bh,{characterData:!0}),Ih=function(){Bh.data=zh=!zh}));var td=$h||function(t){var e={fn:t,next:void 0};Rh&&(Rh.next=e),Ch||(Ch=e,Ih()),Rh=e},ed=r,rd=function(t){try{return{error:!1,value:t()}}catch($E){return{error:!0,value:$E}}},nd=function(){this.head=null,this.tail=null};nd.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var id=nd,od=r.Promise,ad="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,sd=!ad&&!Mf&&"object"==typeof window&&"object"==typeof document,ud=r,cd=od,ld=E,fd=Ke,hd=rn,dd=le,pd=sd,vd=ad,_d=dt,gd=cd&&cd.prototype,yd=dd("species"),md=!1,bd=ld(ud.PromiseRejectionEvent),wd={CONSTRUCTOR:fd("Promise",(function(){var t=hd(cd),e=t!==String(cd);if(!e&&66===_d)return!0;if(!gd.catch||!gd.finally)return!0;if(!_d||_d<51||!/native code/.test(t)){var r=new cd((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[yd]=n,!(md=r.then((function(){}))instanceof n))return!0}return!e&&(pd||vd)&&!bd})),REJECTION_EVENT:bd,SUBCLASSING:md},kd={},Sd=Ot,xd=TypeError,Ed=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw xd("Bad Promise constructor");e=t,r=n})),this.resolve=Sd(e),this.reject=Sd(r)};kd.f=function(t){return new Ed(t)};var Td,Ad,Od=Tr,Cd=Mf,Rd=r,Id=R,zd=to,Bd=Eo,jd=Uf,Pd=Ot,Md=E,Dd=X,Nd=Kf,Ld=$f,Fd=Mh.set,Ud=td,Zd=function(t,e){var r=ed.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))},Gd=rd,Kd=id,Hd=Uo,Wd=od,Vd=wd,Yd=kd,Jd="Promise",qd=Vd.CONSTRUCTOR,Qd=Vd.REJECTION_EVENT,Xd=Hd.getterFor(Jd),$d=Hd.set,tp=Wd&&Wd.prototype,ep=Wd,rp=tp,np=Rd.TypeError,ip=Rd.document,op=Rd.process,ap=Yd.f,sp=ap,up=!!(ip&&ip.createEvent&&Rd.dispatchEvent),cp="unhandledrejection",lp=function(t){var e;return!(!Dd(t)||!Md(e=t.then))&&e},fp=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&&_p(e),e.rejection=1),!0===s?r=o:(l&&l.enter(),r=s(o),l&&(l.exit(),i=!0)),r===t.promise?c(np("Promise-chain cycle")):(n=lp(r))?Id(n,r,u,c):u(r)):c(o)}catch($E){l&&!i&&l.exit(),c($E)}},hp=function(t,e){t.notified||(t.notified=!0,Ud((function(){for(var r,n=t.reactions;r=n.get();)fp(r,t);t.notified=!1,e&&!t.rejection&&pp(t)})))},dp=function(t,e,r){var n,i;up?((n=ip.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),Rd.dispatchEvent(n)):n={promise:e,reason:r},!Qd&&(i=Rd["on"+t])?i(n):t===cp&&Zd("Unhandled promise rejection",r)},pp=function(t){Id(Fd,Rd,(function(){var e,r=t.facade,n=t.value;if(vp(t)&&(e=Gd((function(){Cd?op.emit("unhandledRejection",n,r):dp(cp,r,n)})),t.rejection=Cd||vp(t)?2:1,e.error))throw e.value}))},vp=function(t){return 1!==t.rejection&&!t.parent},_p=function(t){Id(Fd,Rd,(function(){var e=t.facade;Cd?op.emit("rejectionHandled",e):dp("rejectionhandled",e,t.value)}))},gp=function(t,e,r){return function(n){t(e,n,r)}},yp=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,hp(t,!0))},mp=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw np("Promise can't be resolved itself");var n=lp(e);n?Ud((function(){var r={done:!1};try{Id(n,e,gp(mp,r,t),gp(yp,r,t))}catch($E){yp(r,$E,t)}})):(t.value=e,t.state=1,hp(t,!1))}catch($E){yp({done:!1},$E,t)}}};qd&&(rp=(ep=function(t){Nd(this,rp),Pd(t),Id(Td,this);var e=Xd(this);try{t(gp(mp,e),gp(yp,e))}catch($E){yp(e,$E)}}).prototype,(Td=function(t){$d(this,{type:Jd,done:!1,notified:!1,parent:!1,reactions:new Kd,rejection:!1,state:0,value:void 0})}).prototype=zd(rp,"then",(function(t,e){var r=Xd(this),n=ap(Ld(this,ep));return r.parent=!0,n.ok=!Md(t)||t,n.fail=Md(e)&&e,n.domain=Cd?op.domain:void 0,0==r.state?r.reactions.add(n):Ud((function(){fp(n,r)})),n.promise})),Ad=function(){var t=new Td,e=Xd(t);this.promise=t,this.resolve=gp(mp,e),this.reject=gp(yp,e)},Yd.f=ap=function(t){return t===ep||undefined===t?new Ad(t):sp(t)}),Od({global:!0,constructor:!0,wrap:!0,forced:qd},{Promise:ep}),Bd(ep,Jd,!1,!0),jd(Jd);var bp=le("iterator"),wp=!1;try{var kp=0,Sp={next:function(){return{done:!!kp++}},return:function(){wp=!0}};Sp[bp]=function(){return this},Array.from(Sp,(function(){throw 2}))}catch($E){}var xp=function(t,e){if(!e&&!wp)return!1;var r=!1;try{var n={};n[bp]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch($E){}return r},Ep=od,Tp=wd.CONSTRUCTOR||!xp((function(t){Ep.all(t).then(void 0,(function(){}))})),Ap=R,Op=Ot,Cp=kd,Rp=rd,Ip=lf;Tr({target:"Promise",stat:!0,forced:Tp},{all:function(t){var e=this,r=Cp.f(e),n=r.resolve,i=r.reject,o=Rp((function(){var r=Op(e.resolve),o=[],a=0,s=1;Ip(t,(function(t){var u=a++,c=!1;s++,Ap(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 zp=Tr,Bp=wd.CONSTRUCTOR;od&&od.prototype,zp({target:"Promise",proto:!0,forced:Bp,real:!0},{catch:function(t){return this.then(void 0,t)}});var jp=R,Pp=Ot,Mp=kd,Dp=rd,Np=lf;Tr({target:"Promise",stat:!0,forced:Tp},{race:function(t){var e=this,r=Mp.f(e),n=r.reject,i=Dp((function(){var i=Pp(e.resolve);Np(t,(function(t){jp(i,e,t).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var Lp=R,Fp=kd;Tr({target:"Promise",stat:!0,forced:wd.CONSTRUCTOR},{reject:function(t){var e=Fp.f(this);return Lp(e.reject,void 0,t),e.promise}});var Up=tr,Zp=X,Gp=kd,Kp=function(t,e){if(Up(t),Zp(e)&&e.constructor===t)return e;var r=Gp.f(t);return(0,r.resolve)(e),r.promise},Hp=Tr,Wp=od,Vp=wd.CONSTRUCTOR,Yp=Kp,Jp=it("Promise"),qp=!Vp;Hp({target:"Promise",stat:!0,forced:true},{resolve:function(t){return Yp(qp&&this===Jp?Wp:this,t)}});var Qp=R,Xp=Ot,$p=kd,tv=rd,ev=lf;Tr({target:"Promise",stat:!0},{allSettled:function(t){var e=this,r=$p.f(e),n=r.resolve,i=r.reject,o=tv((function(){var r=Xp(e.resolve),i=[],o=0,a=1;ev(t,(function(t){var s=o++,u=!1;a++,Qp(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 rv=R,nv=Ot,iv=it,ov=kd,av=rd,sv=lf,uv="No one promise resolved";Tr({target:"Promise",stat:!0},{any:function(t){var e=this,r=iv("AggregateError"),n=ov.f(e),i=n.resolve,o=n.reject,a=av((function(){var n=nv(e.resolve),a=[],s=0,u=1,c=!1;sv(t,(function(t){var l=s++,f=!1;u++,rv(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,uv)))}))})),--u||o(new r(a,uv))}));return a.error&&o(a.value),n.promise}});var cv=Tr,lv=od,fv=n,hv=it,dv=E,pv=$f,vv=Kp,_v=lv&&lv.prototype;cv({target:"Promise",proto:!0,real:!0,forced:!!lv&&fv((function(){_v.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=pv(this,hv("Promise")),r=dv(t);return this.then(r?function(r){return vv(e,t()).then((function(){return r}))}:t,r?function(r){return vv(e,t()).then((function(){throw r}))}:t)}});var gv=$.Promise,yv=kd,mv=rd;Tr({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=yv.f(this),r=mv(t);return(r.error?e.reject:e.resolve)(r.value),e.promise}});var bv=gv,wv=Tr,kv=Or,Sv=w([].reverse),xv=[1,2];wv({target:"Array",proto:!0,forced:String(xv)===String(xv.reverse())},{reverse:function(){return kv(this)&&(this.length=this.length),Sv(this)}});var Ev=rl("Array").reverse,Tv=ot,Av=Ev,Ov=Array.prototype,Cv=function(t){var e=t.reverse;return t===Ov||Tv(Ov,t)&&e===Ov.reverse?Av:e},Rv=Tr,Iv=Or,zv=gn,Bv=X,jv=Qn,Pv=Dr,Mv=J,Dv=Gr,Nv=le,Lv=gs,Fv=On("slice"),Uv=Nv("species"),Zv=Array,Gv=Math.max;Rv({target:"Array",proto:!0,forced:!Fv},{slice:function(t,e){var r,n,i,o=Mv(this),a=Pv(o),s=jv(t,a),u=jv(void 0===e?a:e,a);if(Iv(o)&&(r=o.constructor,(zv(r)&&(r===Zv||Iv(r.prototype))||Bv(r)&&null===(r=r[Uv]))&&(r=void 0),r===Zv||void 0===r))return Lv(o,s,u);for(n=new(void 0===r?Zv:r)(Gv(u-s,0)),i=0;s<u;s++,i++)s in o&&Dv(n,i,o[s]);return n.length=i,n}});var Kv=rl("Array").slice,Hv=ot,Wv=Kv,Vv=Array.prototype,Yv=function(t){var e=t.slice;return t===Vv||Hv(Vv,t)&&e===Vv.slice?Wv:e};function Jv(){Jv=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Hc||function(t,e,r){t[e]=r.value},i="function"==typeof bc?bc:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Hc(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(A){u=function(t,e,r){return t[e]=r}}function c(t,e,r,i){var o=e&&e.prototype instanceof h?e:h,a=Vc(o.prototype),s=new x(i||[]);return n(a,"_invoke",{value:b(t,r,s)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(A){return{type:"throw",arg:A}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var _=Qc&&Qc(Qc(E([])));_&&_!==e&&r.call(_,o)&&(v=_);var g=p.prototype=h.prototype=Vc(v);function y(t){var e;ll(e=["next","throw","return"]).call(e,(function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function m(t,e){function i(n,o,a,s){var u=l(t[n],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Nc(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return o=o?o.then(n,n):n()}})}function b(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function w(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=l(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],ll(t).call(t,k,this),this.reset(!0)}function E(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return fl?fl(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Vc(g),t},t.awrap=function(t){return{__await:t}},y(m.prototype),u(m.prototype,a,(function(){return this})),t.AsyncIterator=m,t.async=function(e,r,n,i,o){void 0===o&&(o=bv);var a=new m(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(g),u(g,s,"Generator"),u(g,o,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return Cv(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}},t.values=E,x.prototype={constructor:x,reset:function(t){var e;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,ll(e=this.tryEntries).call(e,S),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+Yv(n).call(n,1))&&(this[n]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(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,f):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),f},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),S(r),f}},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;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function qv(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch($E){return void r($E)}s.done?e(u):bv.resolve(u).then(n,i)}function Qv(t){return function(){var e=this,r=arguments;return new bv((function(n,i){var o=t.apply(e,r);function a(t){qv(o,n,i,a,s,"next",t)}function s(t){qv(o,n,i,a,s,"throw",t)}a(void 0)}))}}function Xv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var $v=eo.f("toPrimitive");function t_(t){var e=function(t,e){if("object"!==Nc(t)||null===t)return t;var r=t[$v];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Nc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Nc(e)?e:String(e)}function e_(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),Hc(t,t_(n.key),n)}}function r_(t,e,r){return e&&e_(t.prototype,e),r&&e_(t,r),Hc(t,"prototype",{writable:!1}),t}function n_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var i_=w,o_=Ot,a_=X,s_=Yt,u_=gs,c_=i,l_=Function,f_=i_([].concat),h_=i_([].join),d_={},p_=function(t,e,r){if(!s_(d_,e)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";d_[e]=l_("C,a","return new C("+h_(n,",")+")")}return d_[e](t,r)},v_=c_?l_.bind:function(t){var e=o_(this),r=e.prototype,n=u_(arguments,1),i=function(){var r=f_(n,u_(arguments));return this instanceof i?p_(e,r.length,r):e.apply(t,r)};return a_(r)&&(i.prototype=r),i},__=v_;Tr({target:"Function",proto:!0,forced:Function.bind!==__},{bind:__});var g_=rl("Function").bind,y_=ot,m_=g_,b_=Function.prototype,w_=function(t){var e=t.bind;return t===b_||y_(b_,t)&&e===b_.bind?m_:e};function k_(t,e){var r;return(k_=fl?w_(r=fl).call(r):function(t,e){return t.__proto__=e,t})(t,e)}function S_(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Vc(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Hc(t,"prototype",{writable:!1}),e&&k_(t,e)}var x_=Tr,E_=c,T_=v_,A_=Yf,O_=tr,C_=X,R_=Di,I_=n,z_=it("Reflect","construct"),B_=Object.prototype,j_=[].push,P_=I_((function(){function t(){}return!(z_((function(){}),[],t)instanceof t)})),M_=!I_((function(){z_((function(){}))})),D_=P_||M_;x_({target:"Reflect",stat:!0,forced:D_,sham:D_},{construct:function(t,e){A_(t),O_(e);var r=arguments.length<3?t:A_(arguments[2]);if(M_&&!P_)return z_(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 E_(j_,n,e),new(E_(T_,t,n))}var i=r.prototype,o=R_(C_(i)?i:B_),a=E_(t,o,e);return C_(a)?a:o}});var N_=$.Reflect.construct;function L_(t){var e;return(L_=fl?w_(e=Qc).call(e):function(t){return t.__proto__||Qc(t)})(t)}function F_(t,e){if(e&&("object"===Nc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return n_(t)}function U_(t){var e=function(){if("undefined"==typeof Reflect||!N_)return!1;if(N_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(N_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=L_(t);if(e){var i=L_(this).constructor;r=N_(n,arguments,i)}else r=n.apply(this,arguments);return F_(this,r)}}function Z_(t,e,r){return(e=t_(e))in t?Hc(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var G_=Ht,K_=di;Tr({target:"Object",stat:!0,forced:n((function(){K_(1)}))},{keys:function(t){return K_(G_(t))}});var H_=$.Object.keys,W_=Jo.filter;Tr({target:"Array",proto:!0,forced:!On("filter")},{filter:function(t){return W_(this,t,arguments.length>1?arguments[1]:void 0)}});var V_=rl("Array").filter,Y_=ot,J_=V_,q_=Array.prototype,Q_=function(t){var e=t.filter;return t===q_||Y_(q_,t)&&e===q_.filter?J_:e},X_=rl("Array").concat,$_=ot,tg=X_,eg=Array.prototype,rg=function(t){var e=t.concat;return t===eg||$_(eg,t)&&e===eg.concat?tg:e},ng=$.Object.getOwnPropertySymbols,ig={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}Object.create&&(n.prototype=Object.create(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?Yv(n).call(n,1):n);return ng?rg(i).call(i,ng(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}(ig);var og=function(t){S_(n,t);var e,r=U_(n);function n(){var t,e;Xv(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Z_(n_(e=r.call.apply(r,rg(t=[this]).call(t,o))),"monitor",void 0),e}return r_(n,[{key:"isOpen",value:function(){return this._enable}},{key:"isSupported",value:(e=Qv(Jv().mark((function t(){return Jv().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}(ig.exports.EventEmitter),ag=Nl;Tr({target:"Array",stat:!0},{isArray:Or});var sg=$.Array.isArray,ug=tr,cg=Jl,lg=Ye,fg=R,hg=Ht,dg=function(t,e,r,n){try{return n?e(ug(r)[0],r[1]):e(r)}catch($E){cg(t,"throw",$E)}},pg=zl,vg=gn,_g=Dr,gg=Gr,yg=Hl,mg=Nl,bg=Array,wg=function(t){var e=hg(t),r=vg(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=lg(i,n>2?arguments[2]:void 0));var a,s,u,c,l,f,h=mg(e),d=0;if(!h||this===bg&&pg(h))for(a=_g(e),s=r?new this(a):bg(a);a>d;d++)f=o?i(e[d],d):e[d],gg(s,d,f);else for(l=(c=yg(e,h)).next,s=r?new this:[];!(u=fg(l,c)).done;d++)f=o?dg(c,i,[u.value,d],!0):u.value,gg(s,d,f);return s.length=d,s};Tr({target:"Array",stat:!0,forced:!xp((function(t){Array.from(t)}))},{from:wg});var kg=$.Array.from;function Sg(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 xg={exports:{}},Eg=n((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Tg=n,Ag=X,Og=y,Cg=Eg,Rg=Object.isExtensible,Ig=Tg((function(){Rg(1)}))||Cg?function(t){return!!Ag(t)&&((!Cg||"ArrayBuffer"!=Og(t))&&(!Rg||Rg(t)))}:Rg,zg=!n((function(){return Object.isExtensible(Object.preventExtensions({}))})),Bg=Tr,jg=w,Pg=ni,Mg=X,Dg=Yt,Ng=Je.f,Lg=Ni,Fg=Ui,Ug=Ig,Zg=zg,Gg=!1,Kg=$t("meta"),Hg=0,Wg=function(t){Ng(t,Kg,{value:{objectID:"O"+Hg++,weakData:{}}})},Vg=xg.exports={enable:function(){Vg.enable=function(){},Gg=!0;var t=Lg.f,e=jg([].splice),r={};r[Kg]=1,t(r).length&&(Lg.f=function(r){for(var n=t(r),i=0,o=n.length;i<o;i++)if(n[i]===Kg){e(n,i,1);break}return n},Bg({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Fg.f}))},fastKey:function(t,e){if(!Mg(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Dg(t,Kg)){if(!Ug(t))return"F";if(!e)return"E";Wg(t)}return t[Kg].objectID},getWeakData:function(t,e){if(!Dg(t,Kg)){if(!Ug(t))return!0;if(!e)return!1;Wg(t)}return t[Kg].weakData},onFreeze:function(t){return Zg&&Gg&&Ug(t)&&!Dg(t,Kg)&&Wg(t),t}};Pg[Kg]=!0;var Yg=Tr,Jg=r,qg=xg.exports,Qg=n,Xg=pr,$g=lf,ty=Kf,ey=E,ry=X,ny=Eo,iy=Je.f,oy=Jo.forEach,ay=A,sy=Uo.set,uy=Uo.getterFor,cy=to,ly=Je.f,fy=Di,hy=function(t,e,r){for(var n in e)r&&r.unsafe&&t[n]?t[n]=e[n]:cy(t,n,e[n],r);return t},dy=Ye,py=Kf,vy=G,_y=lf,gy=$u,yy=tc,my=Uf,by=A,wy=xg.exports.fastKey,ky=Uo.set,Sy=Uo.getterFor,xy={getConstructor:function(t,e,r,n){var i=t((function(t,i){py(t,o),ky(t,{type:e,index:fy(null),first:void 0,last:void 0,size:0}),by||(t.size=0),vy(i)||_y(i,t[n],{that:t,AS_ENTRIES:r})})),o=i.prototype,a=Sy(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=wy(e,!0),key:e,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=s),n&&(n.next=s),by?o.size++:t.size++,"F"!==i&&(o.index[i]=s)),t},u=function(t,e){var r,n=a(t),i=wy(e);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==e)return r};return hy(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,by?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),by?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=dy(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)}}),hy(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)}}),by&&ly(o,"size",{get:function(){return a(this).size}}),i},setStrong:function(t,e,r){var n=e+" Iterator",i=Sy(e),o=Sy(n);gy(t,e,(function(t,e){ky(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)?yy("keys"==e?r.key:"values"==e?r.value:[r.key,r.value],!1):(t.target=void 0,yy(void 0,!0))}),r?"entries":"values",!r,!0),my(e)}};(function(t,e,r){var n,i=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),a=i?"set":"add",s=Jg[t],u=s&&s.prototype,c={};if(ay&&ey(s)&&(o||u.forEach&&!Qg((function(){(new s).entries().next()})))){var l=(n=e((function(e,r){sy(ty(e,l),{type:t,collection:new s}),null!=r&&$g(r,e[a],{that:e,AS_ENTRIES:i})}))).prototype,f=uy(t);oy(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in u)||o&&"clear"==t||Xg(l,t,(function(r,n){var i=f(this).collection;if(!e&&o&&!ry(r))return"get"==t&&void 0;var a=i[t](0===r?0:r,n);return e?this:a}))})),o||iy(l,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else n=r.getConstructor(e,t,i,a),qg.enable();ny(n,t,!1,!0),c[t]=n,Yg({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)}}),xy);var Ey=$.Map,Ty=Ye,Ay=R,Oy=Ot,Cy=Yf,Ry=G,Iy=lf,zy=[].push,By=function(t){var e,r,n,i,o=arguments.length,a=o>1?arguments[1]:void 0;return Cy(this),(e=void 0!==a)&&Oy(a),Ry(t)?new this:(r=[],e?(n=0,i=Ty(a,o>2?arguments[2]:void 0),Iy(t,(function(t){Ay(zy,r,i(t,n++))}))):Iy(t,zy,{that:r}),new this(r))};Tr({target:"Map",stat:!0,forced:!0},{from:By});var jy=gs,Py=function(){return new this(jy(arguments))};Tr({target:"Map",stat:!0,forced:!0},{of:Py});var My=R,Dy=Ot,Ny=tr,Ly=function(){for(var t,e=Ny(this),r=Dy(e.delete),n=!0,i=0,o=arguments.length;i<o;i++)t=My(r,e,arguments[i]),n=n&&t;return!!n};Tr({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:Ly});var Fy=R,Uy=Ot,Zy=tr;Tr({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(t,e){var r,n,i=Zy(this),o=Uy(i.get),a=Uy(i.has),s=Uy(i.set);return Fy(a,i,t)?(r=Fy(o,i,t),"update"in e&&(r=e.update(r,t,i),Fy(s,i,t,r)),r):(n=e.insert(t,i),Fy(s,i,t,n),n)}});var Gy=Hl,Ky=tr,Hy=Ye,Wy=Gy,Vy=lf;Tr({target:"Map",proto:!0,real:!0,forced:!0},{every:function(t){var e=Ky(this),r=Wy(e),n=Hy(t,arguments.length>1?arguments[1]:void 0);return!Vy(r,(function(t,r,i){if(!n(r,t,e))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var Yy=it,Jy=Ye,qy=R,Qy=Ot,Xy=tr,$y=$f,tm=Gy,em=lf;Tr({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var e=Xy(this),r=tm(e),n=Jy(t,arguments.length>1?arguments[1]:void 0),i=new($y(e,Yy("Map"))),o=Qy(i.set);return em(r,(function(t,r){n(r,t,e)&&qy(o,i,t,r)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}});var rm=tr,nm=Ye,im=Gy,om=lf;Tr({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var e=rm(this),r=im(e),n=nm(t,arguments.length>1?arguments[1]:void 0);return om(r,(function(t,r,i){if(n(r,t,e))return i(r)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var am=tr,sm=Ye,um=Gy,cm=lf;Tr({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var e=am(this),r=um(e),n=sm(t,arguments.length>1?arguments[1]:void 0);return cm(r,(function(t,r,i){if(n(r,t,e))return i(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var lm=Tr,fm=R,hm=Ot,dm=Hl,pm=lf,vm=w([].push);lm({target:"Map",stat:!0,forced:!0},{groupBy:function(t,e){hm(e);var r=dm(t),n=new this,i=hm(n.has),o=hm(n.get),a=hm(n.set);return pm(r,(function(t){var r=e(t);fm(i,n,r)?vm(fm(o,n,r),t):fm(a,n,r,[t])}),{IS_ITERATOR:!0}),n}});var _m=tr,gm=Gy,ym=function(t,e){return t===e||t!=t&&e!=e},mm=lf;Tr({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return mm(gm(_m(this)),(function(e,r,n){if(ym(r,t))return n()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var bm=R,wm=lf,km=Ot;Tr({target:"Map",stat:!0,forced:!0},{keyBy:function(t,e){var r=new this;km(e);var n=km(r.set);return wm(t,(function(t){bm(n,r,e(t),t)})),r}});var Sm=tr,xm=Gy,Em=lf;Tr({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){return Em(xm(Sm(this)),(function(e,r,n){if(r===t)return n(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var Tm=it,Am=Ye,Om=R,Cm=Ot,Rm=tr,Im=$f,zm=Gy,Bm=lf;Tr({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var e=Rm(this),r=zm(e),n=Am(t,arguments.length>1?arguments[1]:void 0),i=new(Im(e,Tm("Map"))),o=Cm(i.set);return Bm(r,(function(t,r){Om(o,i,n(r,t,e),r)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}});var jm=it,Pm=Ye,Mm=R,Dm=Ot,Nm=tr,Lm=$f,Fm=Gy,Um=lf;Tr({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var e=Nm(this),r=Fm(e),n=Pm(t,arguments.length>1?arguments[1]:void 0),i=new(Lm(e,jm("Map"))),o=Dm(i.set);return Um(r,(function(t,r){Mm(o,i,t,n(r,t,e))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}});var Zm=Ot,Gm=tr,Km=lf;Tr({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var e=Gm(this),r=Zm(e.set),n=arguments.length,i=0;i<n;)Km(arguments[i++],r,{that:e,AS_ENTRIES:!0});return e}});var Hm=tr,Wm=Ot,Vm=Gy,Ym=lf,Jm=TypeError;Tr({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(t){var e=Hm(this),r=Vm(e),n=arguments.length<2,i=n?void 0:arguments[1];if(Wm(t),Ym(r,(function(r,o){n?(n=!1,i=o):i=t(i,o,r,e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),n)throw Jm("Reduce of empty map with no initial value");return i}});var qm=tr,Qm=Ye,Xm=Gy,$m=lf;Tr({target:"Map",proto:!0,real:!0,forced:!0},{some:function(t){var e=qm(this),r=Xm(e),n=Qm(t,arguments.length>1?arguments[1]:void 0);return $m(r,(function(t,r,i){if(n(r,t,e))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var tb=R,eb=tr,rb=Ot,nb=TypeError;Tr({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,e){var r=eb(this),n=rb(r.get),i=rb(r.has),o=rb(r.set),a=arguments.length;rb(e);var s=tb(i,r,t);if(!s&&a<3)throw nb("Updating absent value");var u=s?tb(n,r,t):rb(a>2?arguments[2]:void 0)(t,r);return tb(o,r,t,e(u,t,r)),r}});var ib=R,ob=Ot,ab=E,sb=tr,ub=TypeError,cb=function(t,e){var r,n=sb(this),i=ob(n.get),o=ob(n.has),a=ob(n.set),s=arguments.length>2?arguments[2]:void 0;if(!ab(e)&&!ab(s))throw ub("At least one callback required");return ib(o,n,t)?(r=ib(i,n,t),ab(e)&&(r=e(r),ib(a,n,t,r))):ab(s)&&(r=s(),ib(a,n,t,r)),r};Tr({target:"Map",proto:!0,real:!0,forced:!0},{upsert:cb}),Tr({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:cb});var lb=Ey,fb=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}(fb||{}),hb=function(t){S_(r,t);var e=U_(r);function r(){var t,n;Xv(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Z_(n_(n=e.call.apply(e,rg(t=[this]).call(t,o))),"type",fb.PRE_PROCESSING),n}return r_(r,[{key:"applyConstraints",value:function(t){}}]),r}(og),db=rl("Array").values,pb=Xr,vb=Yt,_b=ot,gb=db,yb=Array.prototype,mb={DOMTokenList:!0,NodeList:!0},bb=function(t){var e=t.values;return t===yb||_b(yb,t)&&e===yb.values||vb(mb,pb(t))?gb:e},wb=rl("Array").keys,kb=Xr,Sb=Yt,xb=ot,Eb=wb,Tb=Array.prototype,Ab={DOMTokenList:!0,NodeList:!0},Ob=function(t){var e=t.keys;return t===Tb||xb(Tb,t)&&e===Tb.keys||Sb(Ab,kb(t))?Eb:e},Cb=ri.includes;Tr({target:"Array",proto:!0,forced:n((function(){return!Array(1).includes()}))},{includes:function(t){return Cb(this,t,arguments.length>1?arguments[1]:void 0)}});var Rb=rl("Array").includes,Ib=X,zb=y,Bb=le("match"),jb=function(t){var e;return Ib(t)&&(void 0!==(e=t[Bb])?!!e:"RegExp"==zb(t))},Pb=TypeError,Mb=le("match"),Db=Tr,Nb=function(t){if(jb(t))throw Pb("The method doesn't accept regular expressions");return t},Lb=W,Fb=Wn,Ub=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[Mb]=!1,"/./"[t](e)}catch(n){}}return!1},Zb=w("".indexOf);Db({target:"String",proto:!0,forced:!Ub("includes")},{includes:function(t){return!!~Zb(Fb(Lb(this)),Fb(Nb(t)),arguments.length>1?arguments[1]:void 0)}});var Gb=rl("String").includes,Kb=ot,Hb=Rb,Wb=Gb,Vb=Array.prototype,Yb=String.prototype,Jb=function(t){var e=t.includes;return t===Vb||Kb(Vb,t)&&e===Vb.includes?Hb:"string"==typeof t||t===Yb||Kb(Yb,t)&&e===Yb.includes?Wb:e},qb=function(){return"undefined"==typeof window},Qb="@byted/ve-rtc",Xb="@byted/ve-rtc-cache-size",$b=function(){function t(){Xv(this,t),Z_(this,"storeKey",void 0),Z_(this,"logLevel",void 0),Z_(this,"LogfileSize",void 0),Z_(this,"db",void 0),Z_(this,"logId",void 0),Z_(this,"cacheLog",void 0),Z_(this,"cachedSize",void 0),Z_(this,"preCacheTime",void 0),Z_(this,"timer",void 0),Z_(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 r_(t,[{key:"_createStore",value:function(){var t=this;if(!qb()&&window.indexedDB){var e=indexedDB.open("@byted/ve-rtc");e.onupgradeneeded=function(){e.result.createObjectStore(Qb);try{localStorage.removeItem(Xb)}catch($E){}},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(Xb);if(e)this.cachedSize=Number(e);else bb(this).call(this).then((function(e){t.cachedSize=t._getSize(e),t._setCachedSize()}))}catch($E){}}},{key:"_setCachedSize",value:function(){try{localStorage.setItem(Xb,"".concat(this.cachedSize))}catch($E){}}},{key:"_getStore",value:function(t){if(this.db)return this.db.transaction(Qb,t).objectStore(Qb)}},{key:"set",value:function(t){var e=this;return new bv((function(r,n){if("none"===e.logLevel)return r();var i;if(t&&e.preCacheTime&&e.preCacheTime-Date.now()<1e3)return e.cacheLog+=rg(i="\n\n".concat(e.logId,": ")).call(i,t),e.logId++,e.timer||(e.timer=setTimeout((function(){e.set("")}),1e3-(e.preCacheTime-Date.now()))),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=rg(i="".concat(a.result||"")).call(i,e.cacheLog),h=t?rg(s=rg(u="".concat(f?"\n\n":"")).call(u,e.logId,": ")).call(s,t):"";o.put(rg(c="".concat(f)).call(c,h),e.storeKey),t&&e.logId++,e.cacheLog="",e.cachedSize=(e.cachedSize||0)+e._getSize([rg(l="".concat(e.cacheLog)).call(l,h)]),e._setCachedSize(),e.preCacheTime=Date.now(),r()}catch(p){var d;if(!t)return n(p);e.cacheLog+=rg(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+=rg(i="\n\n".concat(e.logId,": ")).call(i,t),e.logId++,n(r)}}))}},{key:"get",value:function(t){var e=this;return new bv((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 bv((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 Ob(this).call(this).then((function(t){var e,r=Date.now();return t.forEach((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 bv((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 bv((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}(),tw=new $b,ew=$,rw=c;ew.JSON||(ew.JSON={stringify:JSON.stringify});var nw=function(t,e,r){return rw(ew.JSON.stringify,null,arguments)},iw=nw,ow=Jo.map;Tr({target:"Array",proto:!0,forced:!On("map")},{map:function(t){return ow(this,t,arguments.length>1?arguments[1]:void 0)}});var aw=rl("Array").map,sw=ot,uw=aw,cw=Array.prototype,lw=function(t){var e=t.map;return t===cw||sw(cw,t)&&e===cw.map?uw:e},fw=zr,hw=Wn,dw=W,pw=RangeError,vw=w,_w=Pr,gw=Wn,yw=W,mw=vw((function(t){var e=hw(dw(this)),r="",n=fw(t);if(n<0||n==1/0)throw pw("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r})),bw=vw("".slice),ww=Math.ceil,kw=function(t){return function(e,r,n){var i,o,a=gw(yw(e)),s=_w(r),u=a.length,c=void 0===n?" ":gw(n);return s<=u||""==c?a:((o=mw(c,ww((i=s-u)/c.length))).length>i&&(o=bw(o,0,i)),t?a+o:o+a)}},Sw={start:kw(!1),end:kw(!0)},xw=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(at),Ew=Sw.start;Tr({target:"String",proto:!0,forced:xw},{padStart:function(t){return Ew(this,t,arguments.length>1?arguments[1]:void 0)}});var Tw,Aw,Ow=rl("String").padStart,Cw=ot,Rw=Ow,Iw=String.prototype,zw=function(t){var e=t.padStart;return"string"==typeof t||t===Iw||Cw(Iw,t)&&e===Iw.padStart?Rw:e},Bw="[VERTC]",jw="#0050b3",Pw=(Z_(Tw={},"DEBUG","rgba(0, 0, 0, 0)"),Z_(Tw," INFO","rgba(93, 173, 226, 0)"),Z_(Tw," WARN","rgba(255, 119, 0, 0.3)"),Z_(Tw,"ERROR","rgba(255, 0, 0, 0.3)"),Z_(Tw," SUCC","rgba(0, 119, 0, 0.3)"),Tw),Mw="undefined"!=typeof window&&Jb(Aw=window.location.search).call(Aw,"_rtc_debug_"),Dw=function(){function t(e,r){Xv(this,t),Z_(this,"indent",void 0),Z_(this,"module",void 0),this.module=e,this.indent=r}return r_(t,[{key:"log",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=rg(p=[]).call(p,f),m="".concat(d).replace(/%o/gi,(function(){var t=y.shift();return iw(t)}));tw.set(rg(v=rg(_=rg(g="".concat(Bw,"[").concat(this.module,".")).call(g,e,"] ")).call(_,m," ")).call(v,lw(y).call(y,(function(t){return iw(t)})).join(", ")))}catch($E){}if(Mw){for(var b="",w=0;w<this.indent;w++)b+=" ";(r=console).log.apply(r,rg(n=[rg(i=rg(o=rg(a=rg(s=rg(u=rg(c="%c".concat(Nw(),"-")).call(c,Bw,"%c[")).call(u,t,"]%c")).call(s,b,"[")).call(a,this.module,".")).call(o,e,"] ")).call(i,d),"color:".concat(jw,";"),"background-color:".concat(Pw[t],";"),"color:".concat(jw,";")]).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.log.apply(this,rg(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.log.apply(this,rg(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.log.apply(this,rg(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.log.apply(this,rg(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.log.apply(this,rg(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.log.apply(this,rg(e=[" SUCC",t]).call(e,n))}}]),t}(),Nw=function(){var t,e,r=new Date;return rg(t="".concat(r.toTimeString().split(" ")[0],":")).call(t,zw(e=r.getMilliseconds().toString()).call(e,3,"0"))};function Lw(t){return function(t){if(sg(t))return Sg(t)}(t)||function(t){if(void 0!==bc&&null!=ag(t)||null!=t["@@iterator"])return kg(t)}(t)||function(t,e){var r;if(t){if("string"==typeof t)return Sg(t,e);var n=Yv(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?kg(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sg(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 Fw={exports:{}},Uw=Tr,Zw=n,Gw=J,Kw=T.f,Hw=A,Ww=Zw((function(){Kw(1)}));Uw({target:"Object",stat:!0,forced:!Hw||Ww,sham:!Hw},{getOwnPropertyDescriptor:function(t,e){return Kw(Gw(t),e)}});var Vw=$.Object,Yw=Fw.exports=function(t,e){return Vw.getOwnPropertyDescriptor(t,e)};Vw.getOwnPropertyDescriptor.sham&&(Yw.sham=!0);var Jw=Fw.exports,qw=gl,Qw=J,Xw=T,$w=Gr;Tr({target:"Object",stat:!0,sham:!A},{getOwnPropertyDescriptors:function(t){for(var e,r,n=Qw(t),i=Xw.f,o=qw(n),a={},s=0;o.length>s;)void 0!==(r=i(n,e=o[s++]))&&$w(a,e,r);return a}});var tk=$.Object.getOwnPropertyDescriptors,ek={exports:{}},rk=Tr,nk=A,ik=Vn.f;rk({target:"Object",stat:!0,forced:Object.defineProperties!==ik,sham:!nk},{defineProperties:ik});var ok=$.Object,ak=ek.exports=function(t,e){return ok.defineProperties(t,e)};ok.defineProperties.sham&&(ak.sham=!0);var sk=ek.exports;function uk(t,e){var r=H_(t);if(ng){var n=ng(t);e&&(n=Q_(n).call(n,(function(e){return Jw(t,e).enumerable}))),r.push.apply(r,n)}return r}function ck(t){for(var e=1;e<arguments.length;e++){var r,n,i=null!=arguments[e]?arguments[e]:{};e%2?ll(r=uk(Object(i),!0)).call(r,(function(e){Z_(t,e,i[e])})):tk?sk(t,tk(i)):ll(n=uk(Object(i))).call(n,(function(e){Hc(t,e,Jw(i,e))}))}return t}var lk=A,fk=w,hk=R,dk=n,pk=di,vk=Xi,_k=I,gk=Ht,yk=Z,mk=Object.assign,bk=Object.defineProperty,wk=fk([].concat),kk=!mk||dk((function(){if(lk&&1!==mk({b:1},mk(bk({},"a",{enumerable:!0,get:function(){bk(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=mk({},t)[r]||pk(mk({},e)).join("")!=n}))?function(t,e){for(var r=gk(t),n=arguments.length,i=1,o=vk.f,a=_k.f;n>i;)for(var s,u=yk(arguments[i++]),c=o?wk(pk(u),o(u)):pk(u),l=c.length,f=0;l>f;)s=c[f++],lk&&!hk(a,u,s)||(r[s]=u[s]);return r}:mk,Sk=kk;Tr({target:"Object",stat:!0,arity:2,forced:Object.assign!==Sk},{assign:Sk});var xk=$.Object.assign,Ek=A,Tk=Or,Ak=TypeError,Ok=Object.getOwnPropertyDescriptor,Ck=Ek&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch($E){return $E instanceof TypeError}}(),Rk=xt,Ik=TypeError,zk=Tr,Bk=Ht,jk=Qn,Pk=zr,Mk=Dr,Dk=Ck?function(t,e){if(Tk(t)&&!Ok(t,"length").writable)throw Ak("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Nk=Lr,Lk=xn,Fk=Gr,Uk=function(t,e){if(!delete t[e])throw Ik("Cannot delete property "+Rk(e)+" of "+Rk(t))},Zk=On("splice"),Gk=Math.max,Kk=Math.min;zk({target:"Array",proto:!0,forced:!Zk},{splice:function(t,e){var r,n,i,o,a,s,u=Bk(this),c=Mk(u),l=jk(t,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=Kk(Gk(Pk(e),0),c-l)),Nk(c+r-n),i=Lk(u,n),o=0;o<n;o++)(a=l+o)in u&&Fk(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]:Uk(u,s);for(o=c;o>c-n+r;o--)Uk(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]:Uk(u,s);for(o=0;o<r;o++)u[o+l]=arguments[o+2];return Dk(u,c-n+r),i}});var Hk=rl("Array").splice,Wk=ot,Vk=Hk,Yk=Array.prototype,Jk=function(t){var e=t.splice;return t===Yk||Wk(Yk,t)&&e===Yk.splice?Vk:e},qk={};!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=Yv(Array.prototype).call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!==Nc(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 rg([]).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)}(qk);var Qk={},Xk={},$k={},tS=qk;function eS(t){for(var e=t.length;--e>=0;)t[e]=0}var rS=256,nS=286,iS=30,oS=15,aS=[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],sS=[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],uS=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],cS=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],lS=new Array(576);eS(lS);var fS=new Array(60);eS(fS);var hS=new Array(512);eS(hS);var dS=new Array(256);eS(dS);var pS=new Array(29);eS(pS);var vS,_S,gS,yS=new Array(iS);function mS(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 bS(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function wS(t){return t<256?hS[t]:hS[256+(t>>>7)]}function kS(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function SS(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,kS(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function xS(t,e,r){SS(t,r[2*e],r[2*e+1])}function ES(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function TS(t,e,r){var n,i,o=new Array(16),a=0;for(n=1;n<=oS;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]=ES(o[s]++,s))}}function AS(t){var e;for(e=0;e<nS;e++)t.dyn_ltree[2*e]=0;for(e=0;e<iS;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function OS(t){t.bi_valid>8?kS(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 CS(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 RS(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&CS(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!CS(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function IS(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?xS(t,i,e):(xS(t,(o=dS[i])+rS+1,e),0!==(a=aS[o])&&SS(t,i-=pS[o],a),xS(t,o=wS(--n),r),0!==(a=sS[o])&&SS(t,n-=yS[o],a))}while(s<t.last_lit);xS(t,256,e)}function zS(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=573,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--)RS(t,o,r);i=u;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],RS(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++,RS(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<=oS;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;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),TS(o,c,t.bl_count)}function BS(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[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function jS(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{xS(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(xS(t,i,t.bl_tree),s--),xS(t,16,t.bl_tree),SS(t,s-3,2)):s<=10?(xS(t,17,t.bl_tree),SS(t,s-3,3)):(xS(t,18,t.bl_tree),SS(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}eS(yS);var PS=!1;function MS(t,e,r,n){SS(t,0+(n?1:0),3),function(t,e,r,n){OS(t),n&&(kS(t,r),kS(t,~r)),tS.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r,!0)}$k._tr_init=function(t){PS||(!function(){var t,e,r,n,i,o=new Array(16);for(r=0,n=0;n<28;n++)for(pS[n]=r,t=0;t<1<<aS[n];t++)dS[r++]=n;for(dS[r-1]=n,i=0,n=0;n<16;n++)for(yS[n]=i,t=0;t<1<<sS[n];t++)hS[i++]=n;for(i>>=7;n<iS;n++)for(yS[n]=i<<7,t=0;t<1<<sS[n]-7;t++)hS[256+i++]=n;for(e=0;e<=oS;e++)o[e]=0;for(t=0;t<=143;)lS[2*t+1]=8,t++,o[8]++;for(;t<=255;)lS[2*t+1]=9,t++,o[9]++;for(;t<=279;)lS[2*t+1]=7,t++,o[7]++;for(;t<=287;)lS[2*t+1]=8,t++,o[8]++;for(TS(lS,287,o),t=0;t<iS;t++)fS[2*t+1]=5,fS[2*t]=ES(t,5);vS=new mS(lS,aS,257,nS,oS),_S=new mS(fS,sS,0,iS,oS),gS=new mS(new Array(0),uS,0,19,7)}(),PS=!0),t.l_desc=new bS(t.dyn_ltree,vS),t.d_desc=new bS(t.dyn_dtree,_S),t.bl_desc=new bS(t.bl_tree,gS),t.bi_buf=0,t.bi_valid=0,AS(t)},$k._tr_stored_block=MS,$k._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 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<rS;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),zS(t,t.l_desc),zS(t,t.d_desc),a=function(t){var e;for(BS(t,t.dyn_ltree,t.l_desc.max_code),BS(t,t.dyn_dtree,t.d_desc.max_code),zS(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*cS[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?MS(t,e,r,n):4===t.strategy||o===i?(SS(t,2+(n?1:0),3),IS(t,lS,fS)):(SS(t,4+(n?1:0),3),function(t,e,r,n){var i;for(SS(t,e-257,5),SS(t,r-1,5),SS(t,n-4,4),i=0;i<n;i++)SS(t,t.bl_tree[2*cS[i]+1],3);jS(t,t.dyn_ltree,e-1),jS(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),IS(t,t.dyn_ltree,t.dyn_dtree)),AS(t),n&&OS(t)},$k._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*(dS[r]+rS+1)]++,t.dyn_dtree[2*wS(e)]++),t.last_lit===t.lit_bufsize-1},$k._tr_align=function(t){SS(t,2,3),xS(t,256,lS),function(t){16===t.bi_valid?(kS(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 DS=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 NS=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 LS,FS=function(t,e,r,n){var i=NS,o=n+r;t^=-1;for(var a=n;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t},US={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"},ZS=qk,GS=$k,KS=DS,HS=FS,WS=US,VS=-2,YS=258,JS=262,qS=103,QS=113,XS=666;function $S(t,e){return t.msg=WS[e],e}function tx(t){return(t<<1)-(t>4?9:0)}function ex(t){for(var e=t.length;--e>=0;)t[e]=0}function rx(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(ZS.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 nx(t,e){GS._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,rx(t.strm)}function ix(t,e){t.pending_buf[t.pending++]=e}function ox(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function ax(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-JS?t.strstart-(t.w_size-JS):0,c=t.window,l=t.w_mask,f=t.prev,h=t.strstart+YS,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=YS-(h-o),o=h-YS,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 sx(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-JS)){ZS.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,ZS.arraySet(s,a.input,a.next_in,l,u),1===a.state.wrap?a.adler=KS(a.adler,s,l,u):2===a.state.wrap&&(a.adler=HS(a.adler,s,l,u)),a.next_in+=l,a.total_in+=l,l),t.lookahead+=r,t.lookahead+t.insert>=3)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+3-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<3)););}while(t.lookahead<JS&&0!==t.strm.avail_in)}function ux(t,e){for(var r,n;;){if(t.lookahead<JS){if(sx(t),t.lookahead<JS&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-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-JS&&(t.match_length=ax(t,r)),t.match_length>=3)if(n=GS._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-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=GS._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(nx(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(nx(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(nx(t,!1),0===t.strm.avail_out)?1:2}function cx(t,e){for(var r,n,i;;){if(t.lookahead<JS){if(sx(t),t.lookahead<JS&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-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=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-JS&&(t.match_length=ax(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=GS._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),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+3-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=2,t.strstart++,n&&(nx(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=GS._tr_tally(t,0,t.window[t.strstart-1]))&&nx(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=GS._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(nx(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(nx(t,!1),0===t.strm.avail_out)?1:2}function lx(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 fx(){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=8,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 ZS.Buf16(1146),this.dyn_dtree=new ZS.Buf16(122),this.bl_tree=new ZS.Buf16(78),ex(this.dyn_ltree),ex(this.dyn_dtree),ex(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new ZS.Buf16(16),this.heap=new ZS.Buf16(573),ex(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new ZS.Buf16(573),ex(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 hx(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:QS,t.adler=2===e.wrap?0:1,e.last_flush=0,GS._tr_init(e),0):$S(t,VS)}function dx(t){var e,r=hx(t);return 0===r&&((e=t.state).window_size=2*e.w_size,ex(e.head),e.max_lazy_match=LS[e.level].max_lazy,e.good_match=LS[e.level].good_length,e.nice_match=LS[e.level].nice_length,e.max_chain_length=LS[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),r}function px(t,e,r,n,i,o){if(!t)return VS;var a=1;if(-1===e&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>9||8!==r||n<8||n>15||e<0||e>9||o<0||o>4)return $S(t,VS);8===n&&(n=9);var s=new fx;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+3-1)/3),s.window=new ZS.Buf8(2*s.w_size),s.head=new ZS.Buf16(s.hash_size),s.prev=new ZS.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new ZS.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,dx(t)}LS=[new lx(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(sx(t),0===t.lookahead&&0===e)return 1;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,nx(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-JS&&(nx(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(nx(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(nx(t,!1),t.strm.avail_out),1)})),new lx(4,4,8,4,ux),new lx(4,5,16,8,ux),new lx(4,6,32,32,ux),new lx(4,4,16,16,cx),new lx(8,16,32,32,cx),new lx(8,16,128,128,cx),new lx(8,32,128,256,cx),new lx(32,128,258,1024,cx),new lx(32,258,258,4096,cx)],Xk.deflateInit=function(t,e){return px(t,e,8,15,8,0)},Xk.deflateInit2=px,Xk.deflateReset=dx,Xk.deflateResetKeep=hx,Xk.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?VS:(t.state.gzhead=e,0):VS},Xk.deflate=function(t,e){var r,n,i,o;if(!t||!t.state||e>5||e<0)return t?$S(t,VS):VS;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||n.status===XS&&4!==e)return $S(t,0===t.avail_out?-5:VS);if(n.strm=t,r=n.last_flush,n.last_flush=e,42===n.status)if(2===n.wrap)t.adler=0,ix(n,31),ix(n,139),ix(n,8),n.gzhead?(ix(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)),ix(n,255&n.gzhead.time),ix(n,n.gzhead.time>>8&255),ix(n,n.gzhead.time>>16&255),ix(n,n.gzhead.time>>24&255),ix(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),ix(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(ix(n,255&n.gzhead.extra.length),ix(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=HS(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(ix(n,0),ix(n,0),ix(n,0),ix(n,0),ix(n,0),ix(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),ix(n,3),n.status=QS);else{var a=8+(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=QS,ox(n,a),0!==n.strstart&&(ox(n,t.adler>>>16),ox(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=HS(t.adler,n.pending_buf,n.pending-i,i)),rx(t),i=n.pending,n.pending!==n.pending_buf_size));)ix(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(t.adler=HS(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=HS(t.adler,n.pending_buf,n.pending-i,i)),rx(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,ix(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(t.adler=HS(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=HS(t.adler,n.pending_buf,n.pending-i,i)),rx(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,ix(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(t.adler=HS(t.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.status=qS)}else n.status=qS;if(n.status===qS&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&rx(t),n.pending+2<=n.pending_buf_size&&(ix(n,255&t.adler),ix(n,t.adler>>8&255),t.adler=0,n.status=QS)):n.status=QS),0!==n.pending){if(rx(t),0===t.avail_out)return n.last_flush=-1,0}else if(0===t.avail_in&&tx(e)<=tx(r)&&4!==e)return $S(t,-5);if(n.status===XS&&0!==t.avail_in)return $S(t,-5);if(0!==t.avail_in||0!==n.lookahead||0!==e&&n.status!==XS){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(sx(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=GS._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(nx(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(nx(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(nx(t,!1),0===t.strm.avail_out)?1:2}(n,e):3===n.strategy?function(t,e){for(var r,n,i,o,a=t.window;;){if(t.lookahead<=YS){if(sx(t),t.lookahead<=YS&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=a[i=t.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){o=t.strstart+YS;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=YS-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=GS._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=GS._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(nx(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(nx(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(nx(t,!1),0===t.strm.avail_out)?1:2}(n,e):LS[n.level].func(n,e);if(3!==s&&4!==s||(n.status=XS),1===s||3===s)return 0===t.avail_out&&(n.last_flush=-1),0;if(2===s&&(1===e?GS._tr_align(n):5!==e&&(GS._tr_stored_block(n,0,0,!1),3===e&&(ex(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),rx(t),0===t.avail_out))return n.last_flush=-1,0}return 4!==e?0:n.wrap<=0?1:(2===n.wrap?(ix(n,255&t.adler),ix(n,t.adler>>8&255),ix(n,t.adler>>16&255),ix(n,t.adler>>24&255),ix(n,255&t.total_in),ix(n,t.total_in>>8&255),ix(n,t.total_in>>16&255),ix(n,t.total_in>>24&255)):(ox(n,t.adler>>>16),ox(n,65535&t.adler)),rx(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?0:1)},Xk.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&e!==qS&&e!==QS&&e!==XS?$S(t,VS):(t.state=null,e===QS?$S(t,-3):0):VS},Xk.deflateSetDictionary=function(t,e){var r,n,i,o,a,s,u,c,l=e.length;if(!t||!t.state)return VS;if(2===(o=(r=t.state).wrap)||1===o&&42!==r.status||r.lookahead)return VS;for(1===o&&(t.adler=KS(t.adler,e,l,0)),r.wrap=0,l>=r.w_size&&(0===o&&(ex(r.head),r.strstart=0,r.block_start=0,r.insert=0),c=new ZS.Buf8(r.w_size),ZS.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,sx(r);r.lookahead>=3;){n=r.strstart,i=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-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=2,sx(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=s,t.input=u,t.avail_in=a,r.wrap=o,0},Xk.deflateInfo="pako deflate (from Nodeca project)";var vx={},_x=qk,gx=!0,yx=!0;try{String.fromCharCode.apply(null,[0])}catch(tT){gx=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(tT){yx=!1}for(var mx=new _x.Buf8(256),bx=0;bx<256;bx++)mx[bx]=bx>=252?6:bx>=248?5:bx>=240?4:bx>=224?3:bx>=192?2:1;function wx(t,e){if(e<65534&&(t.subarray&&yx||!t.subarray&&gx))return String.fromCharCode.apply(null,_x.shrinkBuf(t,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}mx[254]=mx[254]=1,vx.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 _x.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},vx.buf2binstring=function(t){return wx(t,t.length)},vx.binstring2buf=function(t){for(var e=new _x.Buf8(t.length),r=0,n=e.length;r<n;r++)e[r]=t.charCodeAt(r);return e},vx.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=mx[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 wx(s,n)},vx.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+mx[t[r]]>e?r:e};var kx=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},Sx=Xk,xx=qk,Ex=vx,Tx=US,Ax=kx,Ox=Object.prototype.toString;function Cx(t){if(!(this instanceof Cx))return new Cx(t);this.options=xx.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,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 Ax,this.strm.avail_out=0;var r=Sx.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==r)throw new Error(Tx[r]);if(e.header&&Sx.deflateSetHeader(this.strm,e.header),e.dictionary){var n;if(n="string"==typeof e.dictionary?Ex.string2buf(e.dictionary):"[object ArrayBuffer]"===Ox.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(r=Sx.deflateSetDictionary(this.strm,n)))throw new Error(Tx[r]);this._dict_set=!0}}function Rx(t,e){var r=new Cx(e);if(r.push(t,!0),r.err)throw r.msg||Tx[r.err];return r.result}Cx.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=Ex.string2buf(t):"[object ArrayBuffer]"===Ox.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 xx.Buf8(o),i.next_out=0,i.avail_out=o),1!==(r=Sx.deflate(i,n))&&0!==r)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(Ex.buf2binstring(xx.shrinkBuf(i.output,i.next_out))):this.onData(xx.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==r);return 4===n?(r=Sx.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),i.avail_out=0,!0)},Cx.prototype.onData=function(t){this.chunks.push(t)},Cx.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=xx.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},Qk.Deflate=Cx,Qk.deflate=Rx,Qk.deflateRaw=function(t,e){return(e=e||{}).raw=!0,Rx(t,e)},Qk.gzip=function(t,e){return(e=e||{}).gzip=!0,Rx(t,e)};var Ix={},zx=tr,Bx=R,jx=Yt,Px=ot,Mx=function(){var t=zx(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},Dx=RegExp.prototype,Nx=ot,Lx=function(t){var e=t.flags;return void 0!==e||"flags"in Dx||jx(t,"flags")||!Px(Dx,t)?e:Bx(Mx,t)},Fx=RegExp.prototype,Ux=function(t){return t===Fx||Nx(Fx,t)?Lx(t):t.flags},Zx={},Gx=qk,Kx=15,Hx=[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],Wx=[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],Vx=[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],Yx=[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],Jx=qk,qx=DS,Qx=FS,Xx=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,T;r=t.state,n=t.next_in,E=t.input,i=n+(t.avail_in-5),o=t.next_out,T=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,_=r.distcode,g=(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&g];e:for(;;){if(d>>>=b=m>>>24,p-=b,0===(b=m>>>16&255))T[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=_[d&y];r: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 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{T[o++]=h[S++]}while(--b);S=o-k,x=T}}else if(f<b){if(S+=c+f-b,(b-=f)<w){w-=b;do{T[o++]=h[S++]}while(--b);if(S=0,f<w){w-=b=f;do{T[o++]=h[S++]}while(--b);S=o-k,x=T}}}else if(S+=f-b,b<w){w-=b;do{T[o++]=h[S++]}while(--b);S=o-k,x=T}for(;w>2;)T[o++]=x[S++],T[o++]=x[S++],T[o++]=x[S++],w-=3;w&&(T[o++]=x[S++],w>1&&(T[o++]=x[S++]))}else{S=o-k;do{T[o++]=T[S++],T[o++]=T[S++],T[o++]=T[S++],w-=3}while(w>2);w&&(T[o++]=T[S++],w>1&&(T[o++]=T[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},$x=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,T=0,A=0,O=null,C=0,R=new Gx.Buf16(16),I=new Gx.Buf16(16),z=null,B=0;for(y=0;y<=Kx;y++)R[y]=0;for(m=0;m<n;m++)R[e[r+m]]++;for(k=g,w=Kx;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<=Kx;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<Kx;y++)I[y+1]=I[y]+R[y];for(m=0;m<n;m++)0!==e[r+m]&&(a[I[e[r+m]]++]=m);if(0===t?(O=z=a,d=19):1===t?(O=Hx,C-=257,z=Wx,B-=257,d=256):(O=Vx,z=Yx,d=-1),A=0,m=0,y=b,h=o,S=k,x=0,l=-1,f=(T=1<<k)-1,1===t&&T>852||2===t&&T>592)return 1;for(;;){p=y-x,a[m]<d?(v=0,_=a[m]):a[m]>d?(v=z[B+a[m]],_=O[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[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-=R[S+x])<=0);)S++,E<<=1;if(T+=1<<S,1===t&&T>852||2===t&&T>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},tE=-2,eE=12,rE=30;function nE(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function iE(){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 Jx.Buf16(320),this.work=new Jx.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function oE(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=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Jx.Buf32(852),e.distcode=e.distdyn=new Jx.Buf32(592),e.sane=1,e.back=-1,0):tE}function aE(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,oE(t)):tE}function sE(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)?tE:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,aE(t))):tE}function uE(t,e){var r,n;return t?(n=new iE,t.state=n,n.window=null,0!==(r=sE(t,e))&&(t.state=null),r):tE}var cE,lE,fE=!0;function hE(t){if(fE){var e;for(cE=new Jx.Buf32(512),lE=new Jx.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($x(1,t.lens,0,288,cE,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;$x(2,t.lens,0,32,lE,0,t.work,{bits:5}),fE=!1}t.lencode=cE,t.lenbits=9,t.distcode=lE,t.distbits=5}function dE(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 Jx.Buf8(o.wsize)),n>=o.wsize?(Jx.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),Jx.arraySet(o.window,e,r-n,i,o.wnext),(n-=i)?(Jx.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}Zx.inflateReset=aE,Zx.inflateReset2=sE,Zx.inflateResetKeep=oE,Zx.inflateInit=function(t){return uE(t,15)},Zx.inflateInit2=uE,Zx.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,T=0,A=new Jx.Buf8(4),O=[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 tE;(r=t.state).mode===eE&&(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=0;t:for(;;)switch(r.mode){case 1: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=Qx(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=rE;break}if(8!=(15&c)){t.msg="unknown compression method",r.mode=rE;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=rE;break}r.dmax=1<<k,t.adler=r.check=1,r.mode=512&c?10:eE,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&Ux(r))){t.msg="unknown compression method",r.mode=rE;break}if(57344&Ux(r)){t.msg="unknown header flags set",r.mode=rE;break}r.head&&(r.head.text=c>>8&1),512&Ux(r)&&(A[0]=255&c,A[1]=c>>>8&255,r.check=Qx(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&Ux(r)&&(A[0]=255&c,A[1]=c>>>8&255,A[2]=c>>>16&255,A[3]=c>>>24&255,r.check=Qx(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&Ux(r)&&(A[0]=255&c,A[1]=c>>>8&255,r.check=Qx(r.check,A,2,0)),c=0,l=0,r.mode=5;case 5:if(1024&Ux(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&Ux(r)&&(A[0]=255&c,A[1]=c>>>8&255,r.check=Qx(r.check,A,2,0)),c=0,l=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&Ux(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)),Jx.arraySet(r.head.extra,n,o,d,k)),512&Ux(r)&&(r.check=Qx(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&Ux(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&Ux(r)&&(r.check=Qx(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&Ux(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&Ux(r)&&(r.check=Qx(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&Ux(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=rE;break}c=0,l=0}r.head&&(r.head.hcrc=Ux(r)>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=eE;break;case 10:for(;l<32;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}t.adler=r.check=nE(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=eE;case eE: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(hE(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=rE}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=rE;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;Jx.arraySet(i,n,o,d,a),s-=d,o+=d,u-=d,a+=d,r.length-=d;break}r.mode=eE;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=rE;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[O[r.have++]]=7&c,c>>>=3,l-=3}for(;r.have<19;)r.lens[O[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,x={bits:r.lenbits},S=$x(0,r.lens,0,19,r.lencode,0,r.work,x),r.lenbits=x.bits,S){t.msg="invalid code lengths set",r.mode=rE;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;g=(T=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,y=65535&T,!((_=T>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(y<16)c>>>=_,l-=_,r.lens[r.have++]=y;else{if(16===y){for(E=_+2;l<E;){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(c>>>=_,l-=_,0===r.have){t.msg="invalid bit length repeat",r.mode=rE;break}k=r.lens[r.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+=n[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+=n[o++]<<l,l+=8}l-=_,k=0,d=11+(127&(c>>>=_)),c>>>=7,l-=7}if(r.have+d>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=rE;break}for(;d--;)r.lens[r.have++]=k}}if(r.mode===rE)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=rE;break}if(r.lenbits=9,x={bits:r.lenbits},S=$x(1,r.lens,0,r.nlen,r.lencode,0,r.work,x),r.lenbits=x.bits,S){t.msg="invalid literal/lengths set",r.mode=rE;break}if(r.distbits=6,r.distcode=r.distdyn,x={bits:r.distbits},S=$x(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,x),r.distbits=x.bits,S){t.msg="invalid distances set",r.mode=rE;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,Xx(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===eE&&(r.back=-1);break}for(r.back=0;g=(T=r.lencode[c&(1<<r.lenbits)-1])>>>16&255,y=65535&T,!((_=T>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(g&&0==(240&g)){for(m=_,b=g,w=y;g=(T=r.lencode[w+((c&(1<<m+b)-1)>>m)])>>>16&255,y=65535&T,!(m+(_=T>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}c>>>=m,l-=m,r.back+=m}if(c>>>=_,l-=_,r.back+=_,r.length=y,0===g){r.mode=26;break}if(32&g){r.back=-1,r.mode=eE;break}if(64&g){t.msg="invalid literal/length code",r.mode=rE;break}r.extra=15&g,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(;g=(T=r.distcode[c&(1<<r.distbits)-1])>>>16&255,y=65535&T,!((_=T>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}if(0==(240&g)){for(m=_,b=g,w=y;g=(T=r.distcode[w+((c&(1<<m+b)-1)>>m)])>>>16&255,y=65535&T,!(m+(_=T>>>24)<=l);){if(0===s)break t;s--,c+=n[o++]<<l,l+=8}c>>>=m,l-=m,r.back+=m}if(c>>>=_,l-=_,r.back+=_,64&g){t.msg="invalid distance code",r.mode=rE;break}r.offset=y,r.extra=15&g,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=rE;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=rE;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=Ux(r)?Qx(r.check,i,h,a-h):qx(r.check,i,h,a-h)),h=u,(Ux(r)?c:nE(c))!==r.check){t.msg="incorrect data check",r.mode=rE;break}c=0,l=0}r.mode=28;case 28:if(r.wrap&&Ux(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=rE;break}c=0,l=0}r.mode=29;case 29:S=1;break t;case rE:S=-3;break t;case 31:return-4;default:return tE}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<rE&&(r.mode<27||4!==e))&&dE(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=Ux(r)?Qx(r.check,i,h,t.next_out-h):qx(r.check,i,h,t.next_out-h)),t.data_type=r.bits+(r.last?64:0)+(r.mode===eE?128:0)+(20===r.mode||15===r.mode?256:0),(0===f&&0===h||4===e)&&0===S&&(S=-5),S},Zx.inflateEnd=function(t){if(!t||!t.state)return tE;var e=t.state;return e.window&&(e.window=null),t.state=null,0},Zx.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?tE:(r.head=e,e.done=!1,0):tE},Zx.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?tE:11===r.mode&&qx(1,e,n,0)!==r.check?-3:dE(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,0):tE},Zx.inflateInfo="pako inflate (from Nodeca project)";var pE={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 vE=Zx,_E=qk,gE=vx,yE=pE,mE=US,bE=kx,wE=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},kE=Object.prototype.toString;function SE(t){if(!(this instanceof SE))return new SE(t);this.options=_E.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 bE,this.strm.avail_out=0;var r=vE.inflateInit2(this.strm,e.windowBits);if(r!==yE.Z_OK)throw new Error(mE[r]);if(this.header=new wE,vE.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=gE.string2buf(e.dictionary):"[object ArrayBuffer]"===kE.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=vE.inflateSetDictionary(this.strm,e.dictionary))!==yE.Z_OK))throw new Error(mE[r])}function xE(t,e){var r=new SE(e);if(r.push(t,!0),r.err)throw r.msg||mE[r.err];return r.result}SE.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?yE.Z_FINISH:yE.Z_NO_FLUSH,"string"==typeof t?s.input=gE.binstring2buf(t):"[object ArrayBuffer]"===kE.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 _E.Buf8(u),s.next_out=0,s.avail_out=u),(r=vE.inflate(s,yE.Z_NO_FLUSH))===yE.Z_NEED_DICT&&c&&(r=vE.inflateSetDictionary(this.strm,c)),r===yE.Z_BUF_ERROR&&!0===l&&(r=yE.Z_OK,l=!1),r!==yE.Z_STREAM_END&&r!==yE.Z_OK)return this.onEnd(r),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&r!==yE.Z_STREAM_END&&(0!==s.avail_in||n!==yE.Z_FINISH&&n!==yE.Z_SYNC_FLUSH)||("string"===this.options.to?(i=gE.utf8border(s.output,s.next_out),o=s.next_out-i,a=gE.buf2string(s.output,i),s.next_out=o,s.avail_out=u-o,o&&_E.arraySet(s.output,s.output,i,o,0),this.onData(a)):this.onData(_E.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!==yE.Z_STREAM_END);return r===yE.Z_STREAM_END&&(n=yE.Z_FINISH),n===yE.Z_FINISH?(r=vE.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===yE.Z_OK):n!==yE.Z_SYNC_FLUSH||(this.onEnd(yE.Z_OK),s.avail_out=0,!0)},SE.prototype.onData=function(t){this.chunks.push(t)},SE.prototype.onEnd=function(t){t===yE.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=_E.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},Ix.Inflate=SE,Ix.inflate=xE,Ix.inflateRaw=function(t,e){return(e=e||{}).raw=!0,xE(t,e)},Ix.ungzip=xE;var EE={};(0,qk.assign)(EE,Qk,Ix,pE);var TE,AE=EE,OE="__rtc_umd_name__",CE=function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},RE=function(){function t(e){Xv(this,t),Z_(this,"storeName",void 0),Z_(this,"pendingList",[]),this.storeName=e,!qb()&&CE()&&this._checkAndCreateStore(e)}var e,r;return r_(t,[{key:"_checkAndCreateStore",value:function(e,r){var n=this;t.db&&t.db.close();var i=r?CE().open(OE,r):CE().open(OE);i.onupgradeneeded=function(){i.result.createObjectStore(e)},i.onerror=function(t){console.error("IndexedDBInterface error",i.error)},i.onsuccess=function(){var r=i.result;t.db=r;try{t.db.transaction(n.storeName,"readonly"),n.pendingList.forEach(function(){var t=Qv(Jv().mark((function t(e){var r,i,o,a;return Jv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.txMode,i=e.resolve,o=e.reject,t.prev=1,t.next=4,n._getStore(r);case 4:a=t.sent,i(a),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),o();case 11:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e){return t.apply(this,arguments)}}())}catch(o){n._checkAndCreateStore(e,r.version+1)}}}},{key:"_getStore",value:function(e){var r=this;return new bv((function(n,i){t.db?n(t.db.transaction(r.storeName,e).objectStore(r.storeName)):r.pendingList.push({txMode:e,resolve:n,reject:i})}))}},{key:"put",value:(r=Qv(Jv().mark((function t(e,r){var n;return Jv().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 bv((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 r.apply(this,arguments)})},{key:"get",value:(e=Qv(Jv().mark((function t(e){var r;return Jv().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 bv((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 e.apply(this,arguments)})}]),t}();Z_(RE,"db",void 0),Z_(RE,"state","init");var IE={product_line:"rtc",report_version:"5",os:"web",user_agent:qb()?"":null===(TE=navigator)||void 0===TE?void 0:TE.userAgent,platform:"web",product:"webrtc",app_state:"active"},zE="ReportErrorBuffer",BE=function(){function t(){Xv(this,t),Z_(this,"_buffer",new RE(zE))}var e,r;return r_(t,[{key:"set",value:(r=Qv(Jv().mark((function t(e){return Jv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._buffer.put(e,zE);case 2:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"get",value:(e=Qv(Jv().mark((function t(){var e;return Jv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=[],t.prev=1,t.next=4,this._buffer.get(zE);case 4:e=t.sent,t.next=9;break;case 7:t.prev=7,t.t0=t.catch(1);case 9:return t.abrupt("return",e);case 10:case"end":return t.stop()}}),t,this,[[1,7]])}))),function(){return e.apply(this,arguments)})}]),t}(),jE=function(){function t(){var e=this;Xv(this,t),Z_(this,"reportCommon",IE),Z_(this,"dataBuffer",[]),Z_(this,"logBuffer",[]),Z_(this,"posting",!1),Z_(this,"sucSendTimer",void 0),Z_(this,"preSucTime",0),Z_(this,"errSendTimer",void 0),Z_(this,"errSendDelay",100),Z_(this,"errSendBuffer",void 0),Z_(this,"_logServerUrl",void 0),Z_(this,"_retryCount",0),qb()||(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"})})))}var e;return r_(t,[{key:"setUrl",value:function(t){this._logServerUrl=t}},{key:"setCommonStats",value:function(t){this.reportCommon=xk(this.reportCommon,t)}},{key:"enableErrorBuffer",value:function(){this.errSendBuffer=new BE,this.loadErrorBuffer()}},{key:"push",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e?this.send(t):(this.dataBuffer.push(t),!this.posting&&!this.errSendTimer&&Date.now()-this.preSucTime>2e3&&(clearTimeout(this.sucSendTimer),this.send()))}},{key:"unshift",value:function(t){this.dataBuffer=rg(t).call(t,this.dataBuffer)}},{key:"send",value:function(t,e){var r,n,i=this;if((t||this.dataBuffer.length)&&this._logServerUrl){var o={data:t||Jk(r=this.dataBuffer).call(r,0,PE(this.dataBuffer,5e5)),header:ck(ck({},this.reportCommon),{},{http_retry_count:this._retryCount}),from:"web",os:"web",version:"1"},a=new XMLHttpRequest;if(a.timeout=1e4,a.onreadystatechange=function(){if(4===a.readyState){var r,n,s,u;if(t||(i.posting=!1),200===a.status||304===a.status)try{r=JSON.parse(a.responseText)}catch($E){n=$E}if(r&&0===r.StatusCode){if(!t&&!e)null===(s=i.errSendBuffer)||void 0===s||s.set([]),i.sucSend()}else if(setTimeout((function(){var t,e;UE(rg(t="reportor error, res:".concat(null===(e=r)||void 0===e?void 0:e.toString()," err:")).call(t,n),a.status,n)}),0),t)i.send(t);else i.unshift(o.data),null===(u=i.errSendBuffer)||void 0===u||u.set(Lw(i.dataBuffer)),e?i.send():i.errSend()}},a.open("POST",this._logServerUrl,!0),t||(this.posting=!0),!qb()&&Jb(n=location.search).call(n,"_rtc_debug_"))a.send(iw(o));else{var s=AE.gzip(iw(o));a.setRequestHeader("Content-Encoding","gzip"),a.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),a.send(s)}}}},{key:"sucSend",value:function(){this.errSendDelay=100,this._retryCount=0,this.preSucTime=Date.now(),this.sucSendTimer=window.setTimeout(this.send.bind(this),2e3)}},{key:"errSend",value:function(){var t=this;this.errSendTimer=window.setTimeout((function(){t.send(),delete t.errSendTimer}),this.errSendDelay),this.errSendDelay*=2,this._retryCount++}},{key:"loadErrorBuffer",value:(e=Qv(Jv().mark((function t(){var e,r,n=this;return Jv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null===(r=this.errSendBuffer)||void 0===r?void 0:r.get();case 2:if(t.t1=e=t.sent,t.t0=null!==t.t1,!t.t0){t.next=6;break}t.t0=void 0!==e;case 6:if(!t.t0){t.next=10;break}t.t2=e,t.next=11;break;case 10:t.t2=[];case 11:t.t2.forEach((function(t){n.push(t)}));case 13:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})}]),t}();function PE(t,e){for(var r=0,n=0;n<t.length;n++)if((r+=iw(t[n]).length)>e)return n-1;return t.length}var ME=new jE,DE=function(){function t(e){Xv(this,t),Z_(this,"report_id",0),Z_(this,"modify_ids",{}),this.id=e}return r_(t,[{key:"report",value:function(t,e){var r,n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=ck(ck(ck({event_key:t,report_id:this.report_id++,rtc_timestamp:Date.now()},this.modify_ids),e),{},{common_extra_info:iw(i)});(ME.push(o),qb())||(null===(r=(n=window).__onRTCReport)||void 0===r||r.call(n,this.id,o))}},{key:"set",value:function(t){this.modify_ids=xk(this.modify_ids,t)}},{key:"destroy",value:function(){}}]),t}(),NE=new Dw("MessageReportor",1),LE=function(){function t(e){Xv(this,t),Z_(this,"_preTime",Date.now()),Z_(this,"_one2oneNum",0),Z_(this,"_one2manyNum",0),Z_(this,"_one2oneMsgCache",new lb),Z_(this,"_one2manyMsgCache",new lb),Z_(this,"roomId",""),Z_(this,"userId",""),Z_(this,"rtsSessionId",""),this.id=e}return r_(t,[{key:"needReport",value:function(e){return!!t.config&&(Date.now()-this._preTime>=36e5&&(this._preTime=Date.now(),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,ck({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,ck(ck({},r),e))}},{key:"cacheCustomMsg",value:function(e){var r;this._one2manyMsgCache.set(e.msg_id,ck({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,ck(ck({},r),e))}},{key:"reportP2PMsg",value:function(t){var e,r=this._one2oneMsgCache.get(t);r&&(NE.info("reportP2PMsg",r.type,iw(r)),null===(e=GE(this.id))||void 0===e||e.report("rts_message",r))}},{key:"reportOne2ManyMsg",value:function(t){var e,r=this._one2manyMsgCache.get(t);r&&(NE.info("reportOne2ManyMsg",r.type,iw(r)),null===(e=GE(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)||"",NE.info("reportMsgRecv",e.type,iw(e)),null===(n=GE(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=Date.now(),this.roomId="",this.userId="",this.rtsSessionId=""}}]),t}();Z_(LE,"config",void 0);var FE=new DE("global"),UE=function(t,e,r){FE.report("rtc_error",{message:t,error_code:e},r)},ZE=new lb,GE=function(t){return ZE.get(t)},KE=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}(KE||{}),HE=function(t){return t.BACKGROUND_BLUR="blur",t.BACKGROUND_IMAGE="image",t}(HE||{}),WE=function(t){return t[t.PERFORMANCE=0]="PERFORMANCE",t[t.QUALITY=1]="QUALITY",t}(WE||{}),VE=function(t){return t[t.CPU=-1]="CPU",t[t.GPU=1]="GPU",t}(VE||{}),YE=new Dw("RTCBeautyExtension",1),JE="https://webar.volccdn.com/obj/effect-webar-res-bucket/ies/web/webar_sdk/sdk/v2.662/202303229b38/resource/resource",qE="".concat(JE,"/externals/webar.main.sdk.iife.9b380e37.js");var QE=function(t){S_(h,t);var e,r,n,i,o,a,s,u,c,l,f=U_(h);function h(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Xv(this,h),Z_(n_(e=f.call(this)),"name","RTCBeautyExtension"),Z_(n_(e),"_enable",void 0),Z_(n_(e),"_beautyExt",void 0),Z_(n_(e),"_backgroundExt",void 0),Z_(n_(e),"_enableBeauty",!1),Z_(n_(e),"_enableBackground",!1),Z_(n_(e),"_fps",15),Z_(n_(e),"_backgroundBackend",VE.CPU),Z_(n_(e),"_backgroundAIModelType",WE.QUALITY),Z_(n_(e),"_backgroundMode",HE.BACKGROUND_BLUR),Z_(n_(e),"_beautyDefaultValue",{sharpenIntensity:.5,whitenIntensity:.5,smoothIntensity:.5}),Z_(n_(e),"_preTrack",null),h._sdkUrl=r.sdkUrl||qE,h._sdkSourceUrl=r.sdkSourceUrl||JE,h._sdkAuthServer=r.sdkAuthServer||"",h._sdkHash=r.sdkHash||"",h._authFileUrl=r.authFileUrl||"",r.aiBackend===VE.GPU&&"undefined"!=typeof WebGL2RenderingContext)if("undefined"!=typeof OffscreenCanvas){var n=new OffscreenCanvas(16,16);n.getContext("webgl2")&&(e._backgroundBackend=VE.GPU)}else e._backgroundBackend=VE.GPU;return e._backgroundAIModelType=null!==(t=r.aiModelType)&&void 0!==t?t:WE.QUALITY,e.on("stop",(function(){var t;e._preTrack&&(null===(t=h._sdk)||void 0===t||t.stopFrame(),e._preTrack=null)})),e}return r_(h,[{key:"initWebArSDK",value:(l=Qv(Jv().mark((function t(){return Jv().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=Qv(Jv().mark((function t(e){var r,n,i,o,a,s,u=this;return Jv().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 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===(r=o.frameRate)||void 0===r?void 0:r.ideal)||15:15,YE.print("init fps",this._fps),h._sdk.setOptions({maxFps:this._fps,autoSetCanvasToVideoSize:!0,authFileUrl:h._authFileUrl||""}),t.next=9,h._sdk.setDocumentTemplate(window.WebARMainSDK.API.DocumentTemplateNames.RTC);case 9:return t.next=11,h._sdk.initialize(h._authFileUrl?{aiBackend:this._backgroundBackend,aiModelType:this._backgroundAIModelType}:{});case 11:YE.info("init",[this._backgroundBackend,this._backgroundAIModelType]),this._beautyExt||(this._beautyExt=h._sdk.extensions.get(window.WebARMainSDK.API.APIExtensionNameEnum.BEAUTY_FILETER)),this._backgroundExt||(this._backgroundExt=h._sdk.extensions.get(window.WebARMainSDK.API.APIExtensionNameEnum.VIRTUAL_BACKGROUND)),H_(this._beautyDefaultValue).forEach((function(t){u._beautyExt[t]=u._beautyDefaultValue[t]})),(a=null===(n=h._sdk.video)||void 0===n||null===(i=n._video)||void 0===i?void 0:i._video)&&(a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",a.style.pointerEvents="none"),"safari"===(c=void 0,c="none",null!==window.navigator.userAgent.match("Firefox")?c="mozilla":null!==window.navigator.userAgent.match("Chrome")?(c="chrome-stable",null!==window.navigator.userAgent.match("Electron")&&(c="electron")):(null!==window.navigator.userAgent.match("Safari")||null!==window.navigator.userAgent.match("AppleWebKit"))&&(c="safari"),c)&&((s=h._sdk.canvas).style.width="1px",s.style.height="1px",s.style.position="fixed",s.style.top="0",s.style.left="0",s.style.opacity="0",s.style.pointerEvents="none",s.style.zIndex="-9999",document.body.appendChild(h._sdk.canvas));case 18:case"end":return t.stop()}var c}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"checkCompatibility",value:(u=Qv(Jv().mark((function t(){var e,r,n;return Jv().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(n=t.sent).isCompatible||0!==Q_(r=n.reasons).call(r,(function(t){return 4!==t})).length||(n.isCompatible=!0,n.reasons=[]),t.abrupt("return",n);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=Qv(Jv().mark((function t(e,r){var n,i,o,a,s,u;return Jv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r||e.getTrack(),this._enableBeauty||this._enableBackground){t.next=4;break}return this._preTrack&&(null===(i=h._sdk)||void 0===i||i.stopFrame()),t.abrupt("return",n);case 4:if("video"!==e.mediaType||0!==e.streamIndex){t.next=15;break}if(this._preTrack===n){t.next=11;break}return t.next=8,h._sdk.setStreamInput(new MediaStream([n]));case 8:return this._preTrack=n,t.next=11,h._sdk.video.start();case 11:return 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),t.abrupt("return",null===(u=h._sdk.canvas)||void 0===u?void 0:u.captureStream(this._fps).getVideoTracks()[0]);case 15:return t.abrupt("return",n);case 16: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=Qv(Jv().mark((function t(){var e,r,n,i=this;return Jv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".enableBeauty"),0,""),e=!this._enableBeauty&&!this._enableBackground,this._enableBeauty=!0,this._beautyExt&&H_(this._beautyDefaultValue).forEach((function(t){i._beautyExt[t]=i._beautyDefaultValue[t]})),this._preTrack&&!e){t.next=8;break}return t.abrupt("return",new bv((function(t,e){i.emit("reset-video-effect",t,e)})));case 8:null===(r=h._sdk)||void 0===r||r.startFrame(),null===(n=this._beautyExt)||void 0===n||n.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=Qv(Jv().mark((function t(){var e,r,n=this;return Jv().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 bv((function(t,e){n.emit("reset-video-effect",t,e)})));case 7:null===(r=this._beautyExt)||void 0===r||r.setEnable(!1);case 8:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"enableVirtualBackground",value:(i=Qv(Jv().mark((function t(){var e,r,n,i,o=this;return Jv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".enableBackground"),0,""),r=!this._enableBeauty&&!this._enableBackground,this._enableBackground=!0,null===(e=this._backgroundExt)||void 0===e||e.setBackgroundMode(this._backgroundMode),this._preTrack&&!r){t.next=8;break}return t.abrupt("return",new bv((function(t,e){o.emit("reset-video-effect",t,e)})));case 8:null===(n=h._sdk)||void 0===n||n.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:(n=Qv(Jv().mark((function t(){var e,r,n=this;return Jv().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 bv((function(t,e){n.emit("reset-video-effect",t,e)})));case 7:null===(r=this._backgroundExt)||void 0===r||r.setEnable(!1);case 8:case"end":return t.stop()}}),t,this)}))),function(){return n.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 KE.EFFECT_SHARPEN_MODE:this._beautyDefaultValue.sharpenIntensity=e,this._beautyExt&&(this._beautyExt.sharpenIntensity=e);break;case KE.EFFECT_WHITE_MODE:this._beautyDefaultValue.whitenIntensity=e,this._beautyExt&&(this._beautyExt.whitenIntensity=e);break;case KE.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){var e;return this._rtcSdkApiCall("".concat(this.name,".loadBackgroundImage"),0,[t]),null===(e=this._backgroundExt)||void 0===e?void 0:e.loadBackgroundImage(t)}},{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){var e,r=t.width,n=t.height;"number"==typeof r&&"number"==typeof n&&(null===(e=h._sdk)||void 0===e||e.setCanvasSize(r,n))}},{key:"isSupported",value:(r=Qv(Jv().mark((function t(){var e,r;return Jv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.checkCompatibility();case 2:return(r=t.sent).isCompatible||0!==Q_(e=r.reasons).call(e,(function(t){return 4!==t})).length||(r.isCompatible=!0),t.abrupt("return",r.isCompatible);case 5:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"isOpen",value:function(){return this._enable}},{key:"destroy",value:function(){var t,e,r;null===(t=h._sdk)||void 0===t||t.stopFrame(),null===(e=h._sdk)||void 0===e||null===(r=e.video)||void 0===r||r.stop()}},{key:"_rtcSdkApiCall",value:function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=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:r,message:n})}}],[{key:"loadWebARSDK",value:(e=Qv(Jv().mark((function t(){var e,r,n;return Jv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=null,r=!1,h._loadingProcess||(h._loadingProcess=new bv((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(){r=!0,clearTimeout(n),t()})),e.addEventListener("error",(function(t){document.body.removeChild(e),h._loadingProcess=void 0,clearTimeout(n),i(t)})),document.body.appendChild(e)}catch($E){document.body.removeChild(e),h._loadingProcess=void 0,clearTimeout(n),i($E)}n=setTimeout((function(){r||(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}(hb);Z_(QE,"_loadingProcess",void 0),Z_(QE,"_sdk",void 0),Z_(QE,"_sdkUrl",""),Z_(QE,"_sdkSourceUrl",""),Z_(QE,"_sdkHash",""),Z_(QE,"_sdkAuthServer",""),Z_(QE,"_authFileUrl","");var XE=window.BytePlusRTCExtensions||{};XE.RTCBeautyExtension=QE,XE.EffectBeautyMode=KE,window.BytePlusRTCExtensions=XE}));
|
|
1
|
+
!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}()||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,E={all:S,IS_HTMLDDA:void 0===S&&void 0!==S},x=E.all,O=E.IS_HTMLDDA?function(t){return"function"==typeof t||t===x}:function(t){return"function"==typeof t},T={},A=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),R=o,I=Function.prototype.call,C=R?I.bind(I):function(){return I.apply(I,arguments)},L={},N={}.propertyIsEnumerable,B=Object.getOwnPropertyDescriptor,D=B&&!N.call({1:2},1);L.f=D?function(t){var e=B(this,t);return!!e&&e.enumerable}:N;var P,M,z=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},j=i,F=m,U=Object,K=k("".split),G=j((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=E.all,$=E.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=k({}.isPrototypeOf),st=ot("navigator","userAgent")||"",ut=r,ct=st,lt=ut.process,ft=ut.Deno,ht=lt&<.versions||ft&&ft.version,dt=ht&&ht.v8;dt&&(M=(P=dt.split("."))[0]>0&&P[0]<4?1:+(P[0]+P[1])),!M&&ct&&(!(P=ct.match(/Edge\/(\d+)/))||P[1]>=74)&&(P=ct.match(/Chrome\/(\d+)/))&&(M=+P[1]);var pt=M,vt=pt,_t=i,gt=!!Object.getOwnPropertySymbols&&!_t((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&vt&&vt<41})),yt=gt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,mt=ot,bt=O,wt=at,kt=Object,St=yt?function(t){return"symbol"==typeof t}:function(t){var e=mt("Symbol");return bt(e)&&wt(e.prototype,kt(t))},Et=String,xt=function(t){try{return Et(t)}catch(e){return"Object"}},Ot=O,Tt=xt,At=TypeError,Rt=function(t){if(Ot(t))return t;throw At(Tt(t)+" is not a function")},It=Rt,Ct=Z,Lt=function(t,e){var n=t[e];return Ct(n)?void 0:It(n)},Nt=C,Bt=O,Dt=$,Pt=TypeError,Mt={exports:{}},zt=r,jt=Object.defineProperty,Ft=function(t,e){try{jt(zt,t,{value:e,configurable:!0,writable:!0})}catch(n){zt[t]=e}return e},Ut="__core-js_shared__",Kt=r[Ut]||Ft(Ut,{}),Gt=Kt;(Mt.exports=function(t,e){return Gt[t]||(Gt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.0",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Zt=Mt.exports,Ht=V,Wt=Object,Vt=function(t){return Wt(Ht(t))},Yt=Vt,Jt=k({}.hasOwnProperty),Xt=Object.hasOwn||function(t,e){return Jt(Yt(t),e)},qt=k,Qt=0,$t=Math.random(),te=qt(1..toString),ee=function(t){return"Symbol("+(void 0===t?"":t)+")_"+te(++Qt+$t,36)},ne=r,re=Xt,ie=ee,oe=gt,ae=yt,se=Zt("wks"),ue=ne.Symbol,ce=ue&&ue.for,le=ae?ue:ue&&ue.withoutSetter||ie,fe=function(t){if(!re(se,t)||!oe&&"string"!=typeof se[t]){var e="Symbol."+t;oe&&re(ue,t)?se[t]=ue[t]:se[t]=ae&&ce?ce(e):le(e)}return se[t]},he=C,de=$,pe=St,ve=Lt,_e=function(t,e){var n,r;if("string"===e&&Bt(n=t.toString)&&!Dt(r=Nt(n,t)))return r;if(Bt(n=t.valueOf)&&!Dt(r=Nt(n,t)))return r;if("string"!==e&&Bt(n=t.toString)&&!Dt(r=Nt(n,t)))return r;throw Pt("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=St,we=function(t){var e=me(t,"string");return be(e)?e:e+""},ke=$,Se=r.document,Ee=ke(Se)&&ke(Se.createElement),xe=function(t){return Ee?Se.createElement(t):{}},Oe=xe,Te=!A&&!i((function(){return 7!=Object.defineProperty(Oe("div"),"a",{get:function(){return 7}}).a})),Ae=A,Re=C,Ie=L,Ce=z,Le=X,Ne=we,Be=Xt,De=Te,Pe=Object.getOwnPropertyDescriptor;T.f=Ae?Pe:function(t,e){if(t=Le(t),e=Ne(e),De)try{return Pe(t,e)}catch(n){}if(Be(t,e))return Ce(!Re(Ie.f,t,e),t[e])};var Me=i,ze=O,je=/#|\.prototype\./,Fe=function(t,e){var n=Ke[Ue(t)];return n==Ze||n!=Ge&&(ze(e)?Me(e):!!e)},Ue=Fe.normalize=function(t){return String(t).replace(je,".").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=A&&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=A,rn=Te,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=z,_n=A?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=T.f,kn=He,Sn=tt,En=Je,xn=_n,On=Xt,Tn=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},An=function(t,e){var n,r,i,o,a,s,u,c,l=t.target,f=t.global,h=t.stat,d=t.proto,p=f?gn:h?gn[l]:(gn[l]||{}).prototype,v=f?Sn:Sn[l]||xn(Sn,l,{})[l],_=v.prototype;for(i in e)n=!kn(f?i:l+(h?".":"#")+i,t.forced)&&p&&On(p,i),a=v[i],n&&(s=t.dontCallGetSet?(c=wn(p,i))&&c.value:p[i]),o=n&&s?s:e[i],n&&typeof a==typeof o||(u=t.bind&&n?En(o,gn):t.wrap&&n?Tn(o):d&&bn(o)?mn(o):o,(t.sham||o&&o.sham||a&&a.sham)&&xn(u,"sham",!0),xn(v,i,u),d&&(On(Sn,r=l+"Prototype")||xn(Sn,r,{}),xn(Sn[r],i,o),t.real&&_&&!_[i]&&xn(_,i,o)))},Rn=m,In=Array.isArray||function(t){return"Array"==Rn(t)},Cn=Math.ceil,Ln=Math.floor,Nn=Math.trunc||function(t){var e=+t;return(e>0?Ln:Cn)(e)},Bn=function(t){var e=+t;return e!=e||0===e?0:Nn(e)},Dn=Bn,Pn=Math.min,Mn=function(t){return t>0?Pn(Dn(t),9007199254740991):0},zn=Mn,jn=function(t){return zn(t.length)},Fn=TypeError,Un=function(t){if(t>9007199254740991)throw Fn("Maximum allowed index exceeded");return t},Kn=we,Gn=Xe,Zn=z,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=Kt,rr=k(Function.toString);er(nr.inspectSource)||(nr.inspectSource=function(t){return rr(t)});var ir=nr.inspectSource,or=k,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=In,br=yr,wr=$,kr=fe("species"),Sr=Array,Er=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},xr=function(t,e){return new(Er(t))(0===e?0:e)},Or=i,Tr=pt,Ar=fe("species"),Rr=function(t){return Tr>=51||!Or((function(){var e=[];return(e.constructor={})[Ar]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Ir=An,Cr=i,Lr=In,Nr=$,Br=Vt,Dr=jn,Pr=Un,Mr=Hn,zr=xr,jr=Rr,Fr=pt,Ur=fe("isConcatSpreadable"),Kr=Fr>=51||!Cr((function(){var t=[];return t[Ur]=!1,t.concat()[0]!==t})),Gr=jr("concat"),Zr=function(t){if(!Nr(t))return!1;var e=t[Ur];return void 0!==e?!!e:Lr(t)};Ir({target:"Array",proto:!0,arity:1,forced:!Kr||!Gr},{concat:function(t){var e,n,r,i,o,a=Br(this),s=zr(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Zr(o=-1===e?a:arguments[e]))for(i=Dr(o),Pr(u+i),n=0;n<i;n++,u++)n in o&&Mr(s,u,o[n]);else Pr(u+1),Mr(s,u++,o);return s.length=u,s}});var Hr=tr,Wr=String,Vr=function(t){if("Symbol"===Hr(t))throw TypeError("Cannot convert a Symbol value to a string");return Wr(t)},Yr={},Jr=Bn,Xr=Math.max,qr=Math.min,Qr=function(t,e){var n=Jr(t);return n<0?Xr(n+e,0):qr(n,e)},$r=X,ti=Qr,ei=jn,ni=function(t){return function(e,n,r){var i,o=$r(e),a=ei(o),s=ti(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}},ri={includes:ni(!0),indexOf:ni(!1)},ii={},oi=Xt,ai=X,si=ri.indexOf,ui=ii,ci=k([].push),li=function(t,e){var n,r=ai(t),i=0,o=[];for(n in r)!oi(ui,n)&&oi(r,n)&&ci(o,n);for(;e.length>i;)oi(r,n=e[i++])&&(~si(o,n)||ci(o,n));return o},fi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hi=li,di=fi,pi=Object.keys||function(t){return hi(t,di)},vi=A,_i=qe,gi=Xe,yi=en,mi=X,bi=pi;Yr.f=vi&&!_i?Object.defineProperties:function(t,e){yi(t);for(var n,r=mi(e),i=bi(e),o=i.length,a=0;o>a;)gi.f(t,n=i[a++],r[n]);return t};var wi,ki=ot("document","documentElement"),Si=ee,Ei=Zt("keys"),xi=function(t){return Ei[t]||(Ei[t]=Si(t))},Oi=en,Ti=Yr,Ai=fi,Ri=ii,Ii=ki,Ci=xe,Li="prototype",Ni="script",Bi=xi("IE_PROTO"),Di=function(){},Pi=function(t){return"<"+Ni+">"+t+"</"+Ni+">"},Mi=function(t){t.write(Pi("")),t.close();var e=t.parentWindow.Object;return t=null,e},zi=function(){try{wi=new ActiveXObject("htmlfile")}catch(i){}var t,e,n;zi="undefined"!=typeof document?document.domain&&wi?Mi(wi):(e=Ci("iframe"),n="java"+Ni+":",e.style.display="none",Ii.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Pi("document.F=Object")),t.close(),t.F):Mi(wi);for(var r=Ai.length;r--;)delete zi[Li][Ai[r]];return zi()};Ri[Bi]=!0;var ji=Object.create||function(t,e){var n;return null!==t?(Di[Li]=Oi(t),n=new Di,Di[Li]=null,n[Bi]=t):n=zi(),void 0===e?n:Ti.f(n,e)},Fi={},Ui=li,Ki=fi.concat("length","prototype");Fi.f=Object.getOwnPropertyNames||function(t){return Ui(t,Ki)};var Gi={},Zi=Qr,Hi=jn,Wi=Hn,Vi=Array,Yi=Math.max,Ji=m,Xi=X,qi=Fi.f,Qi=function(t,e,n){for(var r=Hi(t),i=Zi(e,r),o=Zi(void 0===n?r:n,r),a=Vi(Yi(o-i,0)),s=0;i<o;i++,s++)Wi(a,s,t[i]);return a.length=s,a},$i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Gi.f=function(t){return $i&&"Window"==Ji(t)?function(t){try{return qi(t)}catch(e){return Qi($i)}}(t):qi(Xi(t))};var to={};to.f=Object.getOwnPropertySymbols;var eo=_n,no=function(t,e,n,r){return r&&r.enumerable?t[e]=n:eo(t,e,n),t},ro={},io=fe;ro.f=io;var oo,ao,so,uo=tt,co=Xt,lo=ro,fo=Xe.f,ho=function(t){var e=uo.Symbol||(uo.Symbol={});co(e,t)||fo(e,t,{value:lo.f(t)})},po=C,vo=ot,_o=fe,go=no,yo=function(){var t=vo("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,r=_o("toPrimitive");e&&!e[r]&&go(e,r,(function(t){return po(n,this)}),{arity:1})},mo=tr,bo=Vn?{}.toString:function(){return"[object "+mo(this)+"]"},wo=Vn,ko=Xe.f,So=_n,Eo=Xt,xo=bo,Oo=fe("toStringTag"),To=function(t,e,n,r){if(t){var i=n?t:t.prototype;Eo(i,Oo)||ko(i,Oo,{configurable:!0,value:e}),r&&!wo&&So(i,"toString",xo)}},Ao=O,Ro=r.WeakMap,Io=Ao(Ro)&&/native code/.test(String(Ro)),Co=r,Lo=$,No=_n,Bo=Xt,Do=Kt,Po=xi,Mo=ii,zo="Object already initialized",jo=Co.TypeError,Fo=Co.WeakMap;if(Io||Do.state){var Uo=Do.state||(Do.state=new Fo);Uo.get=Uo.get,Uo.has=Uo.has,Uo.set=Uo.set,oo=function(t,e){if(Uo.has(t))throw jo(zo);return e.facade=t,Uo.set(t,e),e},ao=function(t){return Uo.get(t)||{}},so=function(t){return Uo.has(t)}}else{var Ko=Po("state");Mo[Ko]=!0,oo=function(t,e){if(Bo(t,Ko))throw jo(zo);return e.facade=t,No(t,Ko,e),e},ao=function(t){return Bo(t,Ko)?t[Ko]:{}},so=function(t){return Bo(t,Ko)}}var Go={set:oo,get:ao,has:so,enforce:function(t){return so(t)?ao(t):oo(t,{})},getterFor:function(t){return function(e){var n;if(!Lo(e)||(n=ao(e)).type!==t)throw jo("Incompatible receiver, "+t+" required");return n}}},Zo=Je,Ho=G,Wo=Vt,Vo=jn,Yo=xr,Jo=k([].push),Xo=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=Wo(u),v=Ho(p),_=Zo(c,l),g=Vo(v),y=0,m=f||Yo,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:Jo(b,h)}else switch(t){case 4:return!1;case 7:Jo(b,h)}return o?-1:r||i?i:b}},qo={forEach:Xo(0),map:Xo(1),filter:Xo(2),some:Xo(3),every:Xo(4),find:Xo(5),findIndex:Xo(6),filterReject:Xo(7)},Qo=An,$o=r,ta=C,ea=k,na=A,ra=gt,ia=i,oa=Xt,aa=at,sa=en,ua=X,ca=we,la=Vr,fa=z,ha=ji,da=pi,pa=Fi,va=Gi,_a=to,ga=T,ya=Xe,ma=Yr,ba=L,wa=no,ka=Zt,Sa=ii,Ea=ee,xa=fe,Oa=ro,Ta=ho,Aa=yo,Ra=To,Ia=Go,Ca=qo.forEach,La=xi("hidden"),Na="Symbol",Ba="prototype",Da=Ia.set,Pa=Ia.getterFor(Na),Ma=Object[Ba],za=$o.Symbol,ja=za&&za[Ba],Fa=$o.TypeError,Ua=$o.QObject,Ka=ga.f,Ga=ya.f,Za=va.f,Ha=ba.f,Wa=ea([].push),Va=ka("symbols"),Ya=ka("op-symbols"),Ja=ka("wks"),Xa=!Ua||!Ua[Ba]||!Ua[Ba].findChild,qa=na&&ia((function(){return 7!=ha(Ga({},"a",{get:function(){return Ga(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Ka(Ma,e);r&&delete Ma[e],Ga(t,e,n),r&&t!==Ma&&Ga(Ma,e,r)}:Ga,Qa=function(t,e){var n=Va[t]=ha(ja);return Da(n,{type:Na,tag:t,description:e}),na||(n.description=e),n},$a=function(t,e,n){t===Ma&&$a(Ya,e,n),sa(t);var r=ca(e);return sa(n),oa(Va,r)?(n.enumerable?(oa(t,La)&&t[La][r]&&(t[La][r]=!1),n=ha(n,{enumerable:fa(0,!1)})):(oa(t,La)||Ga(t,La,fa(1,{})),t[La][r]=!0),qa(t,r,n)):Ga(t,r,n)},ts=function(t,e){sa(t);var n=ua(e),r=da(n).concat(is(n));return Ca(r,(function(e){na&&!ta(es,n,e)||$a(t,e,n[e])})),t},es=function(t){var e=ca(t),n=ta(Ha,this,e);return!(this===Ma&&oa(Va,e)&&!oa(Ya,e))&&(!(n||!oa(this,e)||!oa(Va,e)||oa(this,La)&&this[La][e])||n)},ns=function(t,e){var n=ua(t),r=ca(e);if(n!==Ma||!oa(Va,r)||oa(Ya,r)){var i=Ka(n,r);return!i||!oa(Va,r)||oa(n,La)&&n[La][r]||(i.enumerable=!0),i}},rs=function(t){var e=Za(ua(t)),n=[];return Ca(e,(function(t){oa(Va,t)||oa(Sa,t)||Wa(n,t)})),n},is=function(t){var e=t===Ma,n=Za(e?Ya:ua(t)),r=[];return Ca(n,(function(t){!oa(Va,t)||e&&!oa(Ma,t)||Wa(r,Va[t])})),r};ra||(za=function(){if(aa(ja,this))throw Fa("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?la(arguments[0]):void 0,e=Ea(t),n=function(t){this===Ma&&ta(n,Ya,t),oa(this,La)&&oa(this[La],e)&&(this[La][e]=!1),qa(this,e,fa(1,t))};return na&&Xa&&qa(Ma,e,{configurable:!0,set:n}),Qa(e,t)},wa(ja=za[Ba],"toString",(function(){return Pa(this).tag})),wa(za,"withoutSetter",(function(t){return Qa(Ea(t),t)})),ba.f=es,ya.f=$a,ma.f=ts,ga.f=ns,pa.f=va.f=rs,_a.f=is,Oa.f=function(t){return Qa(xa(t),t)},na&&Ga(ja,"description",{configurable:!0,get:function(){return Pa(this).description}})),Qo({global:!0,constructor:!0,wrap:!0,forced:!ra,sham:!ra},{Symbol:za}),Ca(da(Ja),(function(t){Ta(t)})),Qo({target:Na,stat:!0,forced:!ra},{useSetter:function(){Xa=!0},useSimple:function(){Xa=!1}}),Qo({target:"Object",stat:!0,forced:!ra,sham:!na},{create:function(t,e){return void 0===e?ha(t):ts(ha(t),e)},defineProperty:$a,defineProperties:ts,getOwnPropertyDescriptor:ns}),Qo({target:"Object",stat:!0,forced:!ra},{getOwnPropertyNames:rs}),Aa(),Ra(za,Na),Sa[La]=!0;var os=gt&&!!Symbol.for&&!!Symbol.keyFor,as=An,ss=ot,us=Xt,cs=Vr,ls=Zt,fs=os,hs=ls("string-to-symbol-registry"),ds=ls("symbol-to-string-registry");as({target:"Symbol",stat:!0,forced:!fs},{for:function(t){var e=cs(t);if(us(hs,e))return hs[e];var n=ss("Symbol")(e);return hs[e]=n,ds[n]=e,n}});var ps=An,vs=Xt,_s=St,gs=xt,ys=os,ms=Zt("symbol-to-string-registry");ps({target:"Symbol",stat:!0,forced:!ys},{keyFor:function(t){if(!_s(t))throw TypeError(gs(t)+" is not a symbol");if(vs(ms,t))return ms[t]}});var bs=k([].slice),ws=An,ks=ot,Ss=l,Es=C,xs=k,Os=i,Ts=In,As=O,Rs=$,Is=St,Cs=bs,Ls=gt,Ns=ks("JSON","stringify"),Bs=xs(/./.exec),Ds=xs("".charAt),Ps=xs("".charCodeAt),Ms=xs("".replace),zs=xs(1..toString),js=/[\uD800-\uDFFF]/g,Fs=/^[\uD800-\uDBFF]$/,Us=/^[\uDC00-\uDFFF]$/,Ks=!Ls||Os((function(){var t=ks("Symbol")();return"[null]"!=Ns([t])||"{}"!=Ns({a:t})||"{}"!=Ns(Object(t))})),Gs=Os((function(){return'"\\udf06\\ud834"'!==Ns("\udf06\ud834")||'"\\udead"'!==Ns("\udead")})),Zs=function(t,e){var n=Cs(arguments),r=e;if((Rs(e)||void 0!==t)&&!Is(t))return Ts(e)||(e=function(t,e){if(As(r)&&(e=Es(r,this,t,e)),!Is(e))return e}),n[1]=e,Ss(Ns,null,n)},Hs=function(t,e,n){var r=Ds(n,e-1),i=Ds(n,e+1);return Bs(Fs,t)&&!Bs(Us,i)||Bs(Us,t)&&!Bs(Fs,r)?"\\u"+zs(Ps(t,0),16):t};Ns&&ws({target:"JSON",stat:!0,arity:3,forced:Ks||Gs},{stringify:function(t,e,n){var r=Cs(arguments),i=Ss(Ks?Zs:Ns,null,r);return Gs&&"string"==typeof i?Ms(i,js,Hs):i}});var Ws=to,Vs=Vt;An({target:"Object",stat:!0,forced:!gt||i((function(){Ws.f(1)}))},{getOwnPropertySymbols:function(t){var e=Ws.f;return e?e(Vs(t)):[]}}),ho("asyncIterator"),ho("hasInstance"),ho("isConcatSpreadable"),ho("iterator"),ho("match"),ho("matchAll"),ho("replace"),ho("search"),ho("species"),ho("split");var Ys=yo;ho("toPrimitive"),Ys();var Js=ot,Xs=To;ho("toStringTag"),Xs(Js("Symbol"),"Symbol"),ho("unscopables"),To(r.JSON,"JSON",!0);var qs,Qs,$s,tu=tt.Symbol,eu={},nu=A,ru=Xt,iu=Function.prototype,ou=nu&&Object.getOwnPropertyDescriptor,au=ru(iu,"name"),su={EXISTS:au,PROPER:au&&"something"===function(){}.name,CONFIGURABLE:au&&(!nu||nu&&ou(iu,"name").configurable)},uu=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),cu=Xt,lu=O,fu=Vt,hu=uu,du=xi("IE_PROTO"),pu=Object,vu=pu.prototype,_u=hu?pu.getPrototypeOf:function(t){var e=fu(t);if(cu(e,du))return e[du];var n=e.constructor;return lu(n)&&e instanceof n?n.prototype:e instanceof pu?vu:null},gu=i,yu=O,mu=$,bu=ji,wu=_u,ku=no,Su=fe("iterator"),Eu=!1;[].keys&&("next"in($s=[].keys())?(Qs=wu(wu($s)))!==Object.prototype&&(qs=Qs):Eu=!0);var xu=!mu(qs)||gu((function(){var t={};return qs[Su].call(t)!==t}));yu((qs=xu?{}:bu(qs))[Su])||ku(qs,Su,(function(){return this}));var Ou={IteratorPrototype:qs,BUGGY_SAFARI_ITERATORS:Eu},Tu=Ou.IteratorPrototype,Au=ji,Ru=z,Iu=To,Cu=eu,Lu=function(){return this},Nu=O,Bu=String,Du=TypeError,Pu=k,Mu=en,zu=function(t){if("object"==typeof t||Nu(t))return t;throw Du("Can't set "+Bu(t)+" as a prototype")},ju=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Pu(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(n,r){return Mu(n),zu(r),e?t(n,r):n.__proto__=r,n}}():void 0),Fu=An,Uu=C,Ku=su,Gu=function(t,e,n,r){var i=e+" Iterator";return t.prototype=Au(Tu,{next:Ru(+!r,n)}),Iu(t,i,!1,!0),Cu[i]=Lu,t},Zu=_u,Hu=To,Wu=no,Vu=eu,Yu=Ou,Ju=Ku.PROPER,Xu=Yu.BUGGY_SAFARI_ITERATORS,qu=fe("iterator"),Qu="keys",$u="values",tc="entries",ec=function(){return this},nc=function(t,e,n,r,i,o,a){Gu(n,e,r);var s,u,c,l=function(t){if(t===i&&v)return v;if(!Xu&&t in d)return d[t];switch(t){case Qu:case $u:case tc:return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",h=!1,d=t.prototype,p=d[qu]||d["@@iterator"]||i&&d[i],v=!Xu&&p||l(i),_="Array"==e&&d.entries||p;if(_&&(s=Zu(_.call(new t)))!==Object.prototype&&s.next&&(Hu(s,f,!0,!0),Vu[f]=ec),Ju&&i==$u&&p&&p.name!==$u&&(h=!0,v=function(){return Uu(p,this)}),i)if(u={values:l($u),keys:o?v:l(Qu),entries:l(tc)},a)for(c in u)(Xu||h||!(c in d))&&Wu(d,c,u[c]);else Fu({target:e,proto:!0,forced:Xu||h},u);return a&&d[qu]!==v&&Wu(d,qu,v,{name:i}),Vu[e]=v,u},rc=function(t,e){return{value:t,done:e}},ic=X,oc=eu,ac=Go;Xe.f;var sc=nc,uc=rc,cc="Array Iterator",lc=ac.set,fc=ac.getterFor(cc);sc(Array,"Array",(function(t,e){lc(this,{type:cc,target:ic(t),index:0,kind:e})}),(function(){var t=fc(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,uc(void 0,!0)):uc("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),oc.Arguments=oc.Array;var hc={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},dc=r,pc=tr,vc=_n,_c=eu,gc=fe("toStringTag");for(var yc in hc){var mc=dc[yc],bc=mc&&mc.prototype;bc&&pc(bc)!==gc&&vc(bc,gc,yc),_c[yc]=_c.Array}var wc=tu;ho("asyncDispose"),ho("dispose"),ho("matcher"),ho("metadataKey"),ho("observable"),ho("metadata"),ho("patternMatch"),ho("replaceAll");var kc=e(wc),Sc=k,Ec=Bn,xc=Vr,Oc=V,Tc=Sc("".charAt),Ac=Sc("".charCodeAt),Rc=Sc("".slice),Ic=function(t){return function(e,n){var r,i,o=xc(Oc(e)),a=Ec(n),s=o.length;return a<0||a>=s?t?"":void 0:(r=Ac(o,a))<55296||r>56319||a+1===s||(i=Ac(o,a+1))<56320||i>57343?t?Tc(o,a):r:t?Rc(o,a,a+2):i-56320+(r-55296<<10)+65536}},Cc={codeAt:Ic(!1),charAt:Ic(!0)}.charAt,Lc=Vr,Nc=Go,Bc=nc,Dc=rc,Pc="String Iterator",Mc=Nc.set,zc=Nc.getterFor(Pc);Bc(String,"String",(function(t){Mc(this,{type:Pc,string:Lc(t),index:0})}),(function(){var t,e=zc(this),n=e.string,r=e.index;return r>=n.length?Dc(void 0,!0):(t=Cc(n,r),e.index+=t.length,Dc(t,!1))}));var jc=e(ro.f("iterator"));function Fc(t){return(Fc="function"==typeof kc&&"symbol"==typeof jc?function(t){return typeof t}:function(t){return t&&"function"==typeof kc&&t.constructor===kc&&t!==kc.prototype?"symbol":typeof t})(t)}var Uc={exports:{}},Kc=An,Gc=A,Zc=Xe.f;Kc({target:"Object",stat:!0,forced:Object.defineProperty!==Zc,sham:!Gc},{defineProperty:Zc});var Hc=tt.Object,Wc=Uc.exports=function(t,e,n){return Hc.defineProperty(t,e,n)};Hc.defineProperty.sham&&(Wc.sham=!0);var Vc=e(Uc.exports);An({target:"Object",stat:!0,sham:!A},{create:ji});var Yc=tt.Object,Jc=e((function(t,e){return Yc.create(t,e)})),Xc=Vt,qc=_u,Qc=uu;An({target:"Object",stat:!0,forced:i((function(){qc(1)})),sham:!Qc},{getPrototypeOf:function(t){return qc(Xc(t))}});var $c=e(tt.Object.getPrototypeOf),tl=i,el=function(t,e){var n=[][t];return!!n&&tl((function(){n.call(null,e||function(){return 1},1)}))},nl=qo.forEach,rl=el("forEach")?[].forEach:function(t){return nl(this,t,arguments.length>1?arguments[1]:void 0)};An({target:"Array",proto:!0,forced:[].forEach!=rl},{forEach:rl});var il=tt,ol=function(t){return il[t+"Prototype"]},al=ol("Array").forEach,sl=tr,ul=Xt,cl=at,ll=al,fl=Array.prototype,hl={DOMTokenList:!0,NodeList:!0},dl=e((function(t){var e=t.forEach;return t===fl||cl(fl,t)&&e===fl.forEach||ul(hl,sl(t))?ll:e}));An({target:"Object",stat:!0},{setPrototypeOf:ju});var pl=e(tt.Object.setPrototypeOf),vl=ot,_l=Fi,gl=to,yl=en,ml=k([].concat),bl=vl("Reflect","ownKeys")||function(t){var e=_l.f(yl(t)),n=gl.f;return n?ml(e,n(t)):e},wl=Xt,kl=bl,Sl=T,El=Xe,xl=Error,Ol=k("".replace),Tl=String(xl("zxcasd").stack),Al=/\n\s*at [^:]*:[^\n]*/,Rl=Al.test(Tl),Il=$,Cl=_n,Ll=eu,Nl=fe("iterator"),Bl=Array.prototype,Dl=function(t){return void 0!==t&&(Ll.Array===t||Bl[Nl]===t)},Pl=tr,Ml=Lt,zl=Z,jl=eu,Fl=fe("iterator"),Ul=function(t){if(!zl(t))return Ml(t,Fl)||Ml(t,"@@iterator")||jl[Pl(t)]},Kl=C,Gl=Rt,Zl=en,Hl=xt,Wl=Ul,Vl=TypeError,Yl=function(t,e){var n=arguments.length<2?Wl(t):e;if(Gl(n))return Zl(Kl(n,t));throw Vl(Hl(t)+" is not iterable")},Jl=C,Xl=en,ql=Lt,Ql=function(t,e,n){var r,i;Xl(t);try{if(!(r=ql(t,"return"))){if("throw"===e)throw n;return n}r=Jl(r,t)}catch(o){i=!0,r=o}if("throw"===e)throw n;if(i)throw r;return Xl(r),n},$l=Je,tf=C,ef=en,nf=xt,rf=Dl,of=jn,af=at,sf=Yl,uf=Ul,cf=Ql,lf=TypeError,ff=function(t,e){this.stopped=t,this.result=e},hf=ff.prototype,df=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=$l(e,l),_=function(t){return r&&cf(r,"normal",t),new ff(!0,t)},g=function(t){return f?(ef(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=uf(t)))throw lf(nf(t)+" is not iterable");if(rf(i)){for(o=0,a=of(t);a>o;o++)if((s=g(t[o]))&&af(hf,s))return s;return new ff(!1)}r=sf(t,i)}for(u=h?t.next:r.next;!(c=tf(u,r)).done;){try{s=g(c.value)}catch(y){cf(r,"throw",y)}if("object"==typeof s&&s&&af(hf,s))return s}return new ff(!1)},pf=Vr,vf=z,_f=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",vf(1,7)),7!==t.stack)})),gf=An,yf=at,mf=_u,bf=ju,wf=function(t,e,n){for(var r=kl(e),i=El.f,o=Sl.f,a=0;a<r.length;a++){var s=r[a];wl(t,s)||n&&wl(n,s)||i(t,s,o(e,s))}},kf=ji,Sf=_n,Ef=z,xf=function(t,e){if(Rl&&"string"==typeof t&&!xl.prepareStackTrace)for(;e--;)t=Ol(t,Al,"");return t},Of=function(t,e){Il(e)&&"cause"in e&&Cl(t,"cause",e.cause)},Tf=df,Af=function(t,e){return void 0===t?arguments.length<2?"":e:pf(t)},Rf=_f,If=fe("toStringTag"),Cf=Error,Lf=[].push,Nf=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,i=yf(Bf,this);bf?n=bf(Cf(),i?mf(this):Bf):(n=i?this:kf(Bf),Sf(n,If,"Error")),void 0!==e&&Sf(n,"message",Af(e)),Rf&&Sf(n,"stack",xf(n.stack,1)),Of(n,r);var o=[];return Tf(t,Lf,{that:o}),Sf(n,"errors",o),n};bf?bf(Nf,Cf):wf(Nf,Cf,{name:!0});var Bf=Nf.prototype=kf(Cf.prototype,{constructor:Ef(1,Nf),message:Ef(1,""),name:Ef(1,"AggregateError")});gf({global:!0,constructor:!0,arity:2},{AggregateError:Nf});var Df,Pf,Mf,zf,jf="process"==m(r.process),Ff=ot,Uf=Xe,Kf=A,Gf=fe("species"),Zf=function(t){var e=Ff(t),n=Uf.f;Kf&&e&&!e[Gf]&&n(e,Gf,{configurable:!0,get:function(){return this}})},Hf=at,Wf=TypeError,Vf=function(t,e){if(Hf(e,t))return t;throw Wf("Incorrect invocation")},Yf=yr,Jf=xt,Xf=TypeError,qf=function(t){if(Yf(t))return t;throw Xf(Jf(t)+" is not a constructor")},Qf=en,$f=qf,th=Z,eh=fe("species"),nh=function(t,e){var n,r=Qf(t).constructor;return void 0===r||th(n=Qf(r)[eh])?e:$f(n)},rh=TypeError,ih=/(?:ipad|iphone|ipod).*applewebkit/i.test(st),oh=r,ah=l,sh=Je,uh=O,ch=Xt,lh=i,fh=ki,hh=bs,dh=xe,ph=function(t,e){if(t<e)throw rh("Not enough arguments");return t},vh=ih,_h=jf,gh=oh.setImmediate,yh=oh.clearImmediate,mh=oh.process,bh=oh.Dispatch,wh=oh.Function,kh=oh.MessageChannel,Sh=oh.String,Eh=0,xh={},Oh="onreadystatechange";try{Df=oh.location}catch(WT){}var Th=function(t){if(ch(xh,t)){var e=xh[t];delete xh[t],e()}},Ah=function(t){return function(){Th(t)}},Rh=function(t){Th(t.data)},Ih=function(t){oh.postMessage(Sh(t),Df.protocol+"//"+Df.host)};gh&&yh||(gh=function(t){ph(arguments.length,1);var e=uh(t)?t:wh(t),n=hh(arguments,1);return xh[++Eh]=function(){ah(e,void 0,n)},Pf(Eh),Eh},yh=function(t){delete xh[t]},_h?Pf=function(t){mh.nextTick(Ah(t))}:bh&&bh.now?Pf=function(t){bh.now(Ah(t))}:kh&&!vh?(zf=(Mf=new kh).port2,Mf.port1.onmessage=Rh,Pf=sh(zf.postMessage,zf)):oh.addEventListener&&uh(oh.postMessage)&&!oh.importScripts&&Df&&"file:"!==Df.protocol&&!lh(Ih)?(Pf=Ih,oh.addEventListener("message",Rh,!1)):Pf=Oh in dh("script")?function(t){fh.appendChild(dh("script"))[Oh]=function(){fh.removeChild(this),Th(t)}}:function(t){setTimeout(Ah(t),0)});var Ch,Lh,Nh,Bh,Dh,Ph,Mh,zh,jh={set:gh,clear:yh},Fh=r,Uh=/ipad|iphone|ipod/i.test(st)&&void 0!==Fh.Pebble,Kh=/web0s(?!.*chrome)/i.test(st),Gh=r,Zh=Je,Hh=T.f,Wh=jh.set,Vh=ih,Yh=Uh,Jh=Kh,Xh=jf,qh=Gh.MutationObserver||Gh.WebKitMutationObserver,Qh=Gh.document,$h=Gh.process,td=Gh.Promise,ed=Hh(Gh,"queueMicrotask"),nd=ed&&ed.value;nd||(Ch=function(){var t,e;for(Xh&&(t=$h.domain)&&t.exit();Lh;){e=Lh.fn,Lh=Lh.next;try{e()}catch(WT){throw Lh?Bh():Nh=void 0,WT}}Nh=void 0,t&&t.enter()},Vh||Xh||Jh||!qh||!Qh?!Yh&&td&&td.resolve?((Mh=td.resolve(void 0)).constructor=td,zh=Zh(Mh.then,Mh),Bh=function(){zh(Ch)}):Xh?Bh=function(){$h.nextTick(Ch)}:(Wh=Zh(Wh,Gh),Bh=function(){Wh(Ch)}):(Dh=!0,Ph=Qh.createTextNode(""),new qh(Ch).observe(Ph,{characterData:!0}),Bh=function(){Ph.data=Dh=!Dh}));var rd=nd||function(t){var e={fn:t,next:void 0};Nh&&(Nh.next=e),Lh||(Lh=e,Bh()),Nh=e},id=r,od=function(t){try{return{error:!1,value:t()}}catch(WT){return{error:!0,value:WT}}},ad=function(){this.head=null,this.tail=null};ad.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var sd=ad,ud=r.Promise,cd="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,ld=!cd&&!jf&&"object"==typeof window&&"object"==typeof document,fd=r,hd=ud,dd=O,pd=He,vd=ir,_d=fe,gd=ld,yd=cd,md=pt,bd=hd&&hd.prototype,wd=_d("species"),kd=!1,Sd=dd(fd.PromiseRejectionEvent),Ed={CONSTRUCTOR:pd("Promise",(function(){var t=vd(hd),e=t!==String(hd);if(!e&&66===md)return!0;if(!bd.catch||!bd.finally)return!0;if(!md||md<51||!/native code/.test(t)){var n=new hd((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[wd]=r,!(kd=n.then((function(){}))instanceof r))return!0}return!e&&(gd||yd)&&!Sd})),REJECTION_EVENT:Sd,SUBCLASSING:kd},xd={},Od=Rt,Td=TypeError,Ad=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw Td("Bad Promise constructor");e=t,n=r})),this.resolve=Od(e),this.reject=Od(n)};xd.f=function(t){return new Ad(t)};var Rd,Id,Cd=An,Ld=jf,Nd=r,Bd=C,Dd=no,Pd=To,Md=Zf,zd=Rt,jd=O,Fd=$,Ud=Vf,Kd=nh,Gd=jh.set,Zd=rd,Hd=function(t,e){var n=id.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))},Wd=od,Vd=sd,Yd=Go,Jd=ud,Xd=Ed,qd=xd,Qd="Promise",$d=Xd.CONSTRUCTOR,tp=Xd.REJECTION_EVENT,ep=Yd.getterFor(Qd),np=Yd.set,rp=Jd&&Jd.prototype,ip=Jd,op=rp,ap=Nd.TypeError,sp=Nd.document,up=Nd.process,cp=qd.f,lp=cp,fp=!!(sp&&sp.createEvent&&Nd.dispatchEvent),hp="unhandledrejection",dp=function(t){var e;return!(!Fd(t)||!jd(e=t.then))&&e},pp=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&&mp(e),e.rejection=1),!0===s?n=o:(l&&l.enter(),n=s(o),l&&(l.exit(),i=!0)),n===t.promise?c(ap("Promise-chain cycle")):(r=dp(n))?Bd(r,n,u,c):u(n)):c(o)}catch(WT){l&&!i&&l.exit(),c(WT)}},vp=function(t,e){t.notified||(t.notified=!0,Zd((function(){for(var n,r=t.reactions;n=r.get();)pp(n,t);t.notified=!1,e&&!t.rejection&&gp(t)})))},_p=function(t,e,n){var r,i;fp?((r=sp.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),Nd.dispatchEvent(r)):r={promise:e,reason:n},!tp&&(i=Nd["on"+t])?i(r):t===hp&&Hd("Unhandled promise rejection",n)},gp=function(t){Bd(Gd,Nd,(function(){var e,n=t.facade,r=t.value;if(yp(t)&&(e=Wd((function(){Ld?up.emit("unhandledRejection",r,n):_p(hp,n,r)})),t.rejection=Ld||yp(t)?2:1,e.error))throw e.value}))},yp=function(t){return 1!==t.rejection&&!t.parent},mp=function(t){Bd(Gd,Nd,(function(){var e=t.facade;Ld?up.emit("rejectionHandled",e):_p("rejectionhandled",e,t.value)}))},bp=function(t,e,n){return function(r){t(e,r,n)}},wp=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,vp(t,!0))},kp=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw ap("Promise can't be resolved itself");var r=dp(e);r?Zd((function(){var n={done:!1};try{Bd(r,e,bp(kp,n,t),bp(wp,n,t))}catch(WT){wp(n,WT,t)}})):(t.value=e,t.state=1,vp(t,!1))}catch(WT){wp({done:!1},WT,t)}}};$d&&(op=(ip=function(t){Ud(this,op),zd(t),Bd(Rd,this);var e=ep(this);try{t(bp(kp,e),bp(wp,e))}catch(WT){wp(e,WT)}}).prototype,(Rd=function(t){np(this,{type:Qd,done:!1,notified:!1,parent:!1,reactions:new Vd,rejection:!1,state:0,value:void 0})}).prototype=Dd(op,"then",(function(t,e){var n=ep(this),r=cp(Kd(this,ip));return n.parent=!0,r.ok=!jd(t)||t,r.fail=jd(e)&&e,r.domain=Ld?up.domain:void 0,0==n.state?n.reactions.add(r):Zd((function(){pp(r,n)})),r.promise})),Id=function(){var t=new Rd,e=ep(t);this.promise=t,this.resolve=bp(kp,e),this.reject=bp(wp,e)},qd.f=cp=function(t){return t===ip||undefined===t?new Id(t):lp(t)}),Cd({global:!0,constructor:!0,wrap:!0,forced:$d},{Promise:ip}),Pd(ip,Qd,!1,!0),Md(Qd);var Sp=fe("iterator"),Ep=!1;try{var xp=0,Op={next:function(){return{done:!!xp++}},return:function(){Ep=!0}};Op[Sp]=function(){return this},Array.from(Op,(function(){throw 2}))}catch(WT){}var Tp=function(t,e){if(!e&&!Ep)return!1;var n=!1;try{var r={};r[Sp]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(WT){}return n},Ap=ud,Rp=Ed.CONSTRUCTOR||!Tp((function(t){Ap.all(t).then(void 0,(function(){}))})),Ip=C,Cp=Rt,Lp=xd,Np=od,Bp=df;An({target:"Promise",stat:!0,forced:Rp},{all:function(t){var e=this,n=Lp.f(e),r=n.resolve,i=n.reject,o=Np((function(){var n=Cp(e.resolve),o=[],a=0,s=1;Bp(t,(function(t){var u=a++,c=!1;s++,Ip(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 Dp=An,Pp=Ed.CONSTRUCTOR;ud&&ud.prototype,Dp({target:"Promise",proto:!0,forced:Pp,real:!0},{catch:function(t){return this.then(void 0,t)}});var Mp=C,zp=Rt,jp=xd,Fp=od,Up=df;An({target:"Promise",stat:!0,forced:Rp},{race:function(t){var e=this,n=jp.f(e),r=n.reject,i=Fp((function(){var i=zp(e.resolve);Up(t,(function(t){Mp(i,e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Kp=C,Gp=xd;An({target:"Promise",stat:!0,forced:Ed.CONSTRUCTOR},{reject:function(t){var e=Gp.f(this);return Kp(e.reject,void 0,t),e.promise}});var Zp=en,Hp=$,Wp=xd,Vp=function(t,e){if(Zp(t),Hp(e)&&e.constructor===t)return e;var n=Wp.f(t);return(0,n.resolve)(e),n.promise},Yp=An,Jp=ud,Xp=Ed.CONSTRUCTOR,qp=Vp,Qp=ot("Promise"),$p=!Xp;Yp({target:"Promise",stat:!0,forced:true},{resolve:function(t){return qp($p&&this===Qp?Jp:this,t)}});var tv=C,ev=Rt,nv=xd,rv=od,iv=df;An({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=nv.f(e),r=n.resolve,i=n.reject,o=rv((function(){var n=ev(e.resolve),i=[],o=0,a=1;iv(t,(function(t){var s=o++,u=!1;a++,tv(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 ov=C,av=Rt,sv=ot,uv=xd,cv=od,lv=df,fv="No one promise resolved";An({target:"Promise",stat:!0},{any:function(t){var e=this,n=sv("AggregateError"),r=uv.f(e),i=r.resolve,o=r.reject,a=cv((function(){var r=av(e.resolve),a=[],s=0,u=1,c=!1;lv(t,(function(t){var l=s++,f=!1;u++,ov(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,fv)))}))})),--u||o(new n(a,fv))}));return a.error&&o(a.value),r.promise}});var hv=An,dv=ud,pv=i,vv=ot,_v=O,gv=nh,yv=Vp,mv=dv&&dv.prototype;hv({target:"Promise",proto:!0,real:!0,forced:!!dv&&pv((function(){mv.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=gv(this,vv("Promise")),n=_v(t);return this.then(n?function(n){return yv(e,t()).then((function(){return n}))}:t,n?function(n){return yv(e,t()).then((function(){throw n}))}:t)}});var bv=tt.Promise,wv=xd,kv=od;An({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=wv.f(this),n=kv(t);return(n.error?e.reject:e.resolve)(n.value),e.promise}});var Sv=e(bv),Ev=An,xv=In,Ov=k([].reverse),Tv=[1,2];Ev({target:"Array",proto:!0,forced:String(Tv)===String(Tv.reverse())},{reverse:function(){return xv(this)&&(this.length=this.length),Ov(this)}});var Av=ol("Array").reverse,Rv=at,Iv=Av,Cv=Array.prototype,Lv=e((function(t){var e=t.reverse;return t===Cv||Rv(Cv,t)&&e===Cv.reverse?Iv:e})),Nv=An,Bv=In,Dv=yr,Pv=$,Mv=Qr,zv=jn,jv=X,Fv=Hn,Uv=fe,Kv=bs,Gv=Rr("slice"),Zv=Uv("species"),Hv=Array,Wv=Math.max;Nv({target:"Array",proto:!0,forced:!Gv},{slice:function(t,e){var n,r,i,o=jv(this),a=zv(o),s=Mv(t,a),u=Mv(void 0===e?a:e,a);if(Bv(o)&&(n=o.constructor,(Dv(n)&&(n===Hv||Bv(n.prototype))||Pv(n)&&null===(n=n[Zv]))&&(n=void 0),n===Hv||void 0===n))return Kv(o,s,u);for(r=new(void 0===n?Hv:n)(Wv(u-s,0)),i=0;s<u;s++,i++)s in o&&Fv(r,i,o[s]);return r.length=i,r}});var Vv=ol("Array").slice,Yv=at,Jv=Vv,Xv=Array.prototype,qv=e((function(t){var e=t.slice;return t===Xv||Yv(Xv,t)&&e===Xv.slice?Jv:e}));function Qv(){Qv=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Vc||function(t,e,n){t[e]=n.value},i="function"==typeof kc?kc:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Vc(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(T){u=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Jc(o.prototype),s=new E(i||[]);return r(a,"_invoke",{value:b(t,n,s)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(T){return{type:"throw",arg:T}}}t.wrap=c;var f={};function h(){}function d(){}function p(){}var v={};u(v,o,(function(){return this}));var _=$c&&$c($c(x([])));_&&_!==e&&n.call(_,o)&&(v=_);var g=p.prototype=h.prototype=Jc(v);function y(t){var e;dl(e=["next","throw","return"]).call(e,(function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function m(t,e){function i(r,o,a,s){var u=l(t[r],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Fc(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function b(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function w(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],dl(t).call(t,k,this),this.reset(!0)}function x(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=p,r(g,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:d,configurable:!0}),d.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return pl?pl(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Jc(g),t},t.awrap=function(t){return{__await:t}},y(m.prototype),u(m.prototype,a,(function(){return this})),t.AsyncIterator=m,t.async=function(e,n,r,i,o){void 0===o&&(o=Sv);var a=new m(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(g),u(g,s,"Generator"),u(g,o,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return Lv(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}},t.values=x,E.prototype={constructor:E,reset:function(t){var e;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,dl(e=this.tryEntries).call(e,S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+qv(r).call(r,1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.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,f):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),f},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),S(n),f}},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;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function $v(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(WT){return void n(WT)}s.done?e(u):Sv.resolve(u).then(r,i)}function t_(t){return function(){var e=this,n=arguments;return new Sv((function(r,i){var o=t.apply(e,n);function a(t){$v(o,r,i,a,s,"next",t)}function s(t){$v(o,r,i,a,s,"throw",t)}a(void 0)}))}}function e_(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n_=e(ro.f("toPrimitive"));function r_(t){var e=function(t,e){if("object"!==Fc(t)||null===t)return t;var n=t[n_];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Fc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Fc(e)?e:String(e)}function i_(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),Vc(t,r_(r.key),r)}}function o_(t,e,n){return e&&i_(t.prototype,e),n&&i_(t,n),Vc(t,"prototype",{writable:!1}),t}function a_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var s_=k,u_=Rt,c_=$,l_=Xt,f_=bs,h_=o,d_=Function,p_=s_([].concat),v_=s_([].join),__={},g_=h_?d_.bind:function(t){var e=u_(this),n=e.prototype,r=f_(arguments,1),i=function(){var n=p_(r,f_(arguments));return this instanceof i?function(t,e,n){if(!l_(__,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";__[e]=d_("C,a","return new C("+v_(r,",")+")")}return __[e](t,n)}(e,n.length,n):e.apply(t,n)};return c_(n)&&(i.prototype=n),i},y_=g_;An({target:"Function",proto:!0,forced:Function.bind!==y_},{bind:y_});var m_=ol("Function").bind,b_=at,w_=m_,k_=Function.prototype,S_=e((function(t){var e=t.bind;return t===k_||b_(k_,t)&&e===k_.bind?w_:e}));function E_(t,e){var n;return(E_=pl?S_(n=pl).call(n):function(t,e){return t.__proto__=e,t})(t,e)}function x_(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Jc(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Vc(t,"prototype",{writable:!1}),e&&E_(t,e)}var O_=An,T_=l,A_=g_,R_=qf,I_=en,C_=$,L_=ji,N_=i,B_=ot("Reflect","construct"),D_=Object.prototype,P_=[].push,M_=N_((function(){function t(){}return!(B_((function(){}),[],t)instanceof t)})),z_=!N_((function(){B_((function(){}))})),j_=M_||z_;O_({target:"Reflect",stat:!0,forced:j_,sham:j_},{construct:function(t,e){R_(t),I_(e);var n=arguments.length<3?t:R_(arguments[2]);if(z_&&!M_)return B_(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 T_(P_,r,e),new(T_(A_,t,r))}var i=n.prototype,o=L_(C_(i)?i:D_),a=T_(t,o,e);return C_(a)?a:o}});var F_=e(tt.Reflect.construct);function U_(t){var e;return(U_=pl?S_(e=$c).call(e):function(t){return t.__proto__||$c(t)})(t)}function K_(t){var e=function(){if("undefined"==typeof Reflect||!F_)return!1;if(F_.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(F_(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=U_(t);if(e){var i=U_(this).constructor;n=F_(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Fc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a_(t)}(this,n)}}function G_(t,e,n){return(e=r_(e))in t?Vc(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Z_=Vt,H_=pi;An({target:"Object",stat:!0,forced:i((function(){H_(1)}))},{keys:function(t){return H_(Z_(t))}});var W_=e(tt.Object.keys),V_=qo.filter;An({target:"Array",proto:!0,forced:!Rr("filter")},{filter:function(t){return V_(this,t,arguments.length>1?arguments[1]:void 0)}});var Y_=ol("Array").filter,J_=at,X_=Y_,q_=Array.prototype,Q_=e((function(t){var e=t.filter;return t===q_||J_(q_,t)&&e===q_.filter?X_:e})),$_=ol("Array").concat,tg=at,eg=$_,ng=Array.prototype,rg=e((function(t){var e=t.concat;return t===ng||tg(ng,t)&&e===ng.concat?eg:e})),ig=e(tt.Object.getOwnPropertySymbols),og={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}Object.create&&(r.prototype=Object.create(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?qv(r).call(r,1):r);return ig?rg(i).call(i,ig(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}(og);var ag=function(t){x_(r,t);var e,n=K_(r);function r(){var t,e;e_(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return G_(a_(e=n.call.apply(n,rg(t=[this]).call(t,o))),"monitor",void 0),e}return o_(r,[{key:"isOpen",value:function(){return this._enable}},{key:"isSupported",value:(e=t_(Qv().mark((function t(){return Qv().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}(og.exports.EventEmitter),sg=e(Ul);An({target:"Array",stat:!0},{isArray:In});var ug=e(tt.Array.isArray),cg=en,lg=Ql,fg=Je,hg=C,dg=Vt,pg=function(t,e,n,r){try{return r?e(cg(n)[0],n[1]):e(n)}catch(WT){lg(t,"throw",WT)}},vg=Dl,_g=yr,gg=jn,yg=Hn,mg=Yl,bg=Ul,wg=Array,kg=function(t){var e=dg(t),n=_g(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=fg(i,r>2?arguments[2]:void 0));var a,s,u,c,l,f,h=bg(e),d=0;if(!h||this===wg&&vg(h))for(a=gg(e),s=n?new this(a):wg(a);a>d;d++)f=o?i(e[d],d):e[d],yg(s,d,f);else for(l=(c=mg(e,h)).next,s=n?new this:[];!(u=hg(l,c)).done;d++)f=o?pg(c,i,[u.value,d],!0):u.value,yg(s,d,f);return s.length=d,s};An({target:"Array",stat:!0,forced:!Tp((function(t){Array.from(t)}))},{from:kg});var Sg=e(tt.Array.from);function Eg(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 xg={exports:{}},Og=i((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),Tg=i,Ag=$,Rg=m,Ig=Og,Cg=Object.isExtensible,Lg=Tg((function(){Cg(1)}))||Ig?function(t){return!!Ag(t)&&((!Ig||"ArrayBuffer"!=Rg(t))&&(!Cg||Cg(t)))}:Cg,Ng=!i((function(){return Object.isExtensible(Object.preventExtensions({}))})),Bg=An,Dg=k,Pg=ii,Mg=$,zg=Xt,jg=Xe.f,Fg=Fi,Ug=Gi,Kg=Lg,Gg=Ng,Zg=!1,Hg=ee("meta"),Wg=0,Vg=function(t){jg(t,Hg,{value:{objectID:"O"+Wg++,weakData:{}}})},Yg=xg.exports={enable:function(){Yg.enable=function(){},Zg=!0;var t=Fg.f,e=Dg([].splice),n={};n[Hg]=1,t(n).length&&(Fg.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===Hg){e(r,i,1);break}return r},Bg({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ug.f}))},fastKey:function(t,e){if(!Mg(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!zg(t,Hg)){if(!Kg(t))return"F";if(!e)return"E";Vg(t)}return t[Hg].objectID},getWeakData:function(t,e){if(!zg(t,Hg)){if(!Kg(t))return!0;if(!e)return!1;Vg(t)}return t[Hg].weakData},onFreeze:function(t){return Gg&&Zg&&Kg(t)&&!zg(t,Hg)&&Vg(t),t}};Pg[Hg]=!0;var Jg=xg.exports,Xg=An,qg=r,Qg=Jg,$g=i,ty=_n,ey=df,ny=Vf,ry=O,iy=$,oy=To,ay=Xe.f,sy=qo.forEach,uy=A,cy=Go.set,ly=Go.getterFor,fy=no,hy=Xe.f,dy=ji,py=function(t,e,n){for(var r in e)n&&n.unsafe&&t[r]?t[r]=e[r]:fy(t,r,e[r],n);return t},vy=Je,_y=Vf,gy=Z,yy=df,my=nc,by=rc,wy=Zf,ky=A,Sy=Jg.fastKey,Ey=Go.set,xy=Go.getterFor,Oy={getConstructor:function(t,e,n,r){var i=t((function(t,i){_y(t,o),Ey(t,{type:e,index:dy(null),first:void 0,last:void 0,size:0}),ky||(t.size=0),gy(i)||yy(i,t[r],{that:t,AS_ENTRIES:n})})),o=i.prototype,a=xy(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=Sy(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),ky?o.size++:t.size++,"F"!==i&&(o.index[i]=s)),t},u=function(t,e){var n,r=a(t),i=Sy(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return py(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,ky?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),ky?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=a(this),r=vy(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)}}),py(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)}}),ky&&hy(o,"size",{get:function(){return a(this).size}}),i},setStrong:function(t,e,n){var r=e+" Iterator",i=xy(e),o=xy(r);my(t,e,(function(t,e){Ey(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)?by("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,by(void 0,!0))}),n?"entries":"values",!n,!0),wy(e)}};(function(t,e,n){var r,i=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),a=i?"set":"add",s=qg[t],u=s&&s.prototype,c={};if(uy&&ry(s)&&(o||u.forEach&&!$g((function(){(new s).entries().next()})))){var l=(r=e((function(e,n){cy(ny(e,l),{type:t,collection:new s}),null!=n&&ey(n,e[a],{that:e,AS_ENTRIES:i})}))).prototype,f=ly(t);sy(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in u)||o&&"clear"==t||ty(l,t,(function(n,r){var i=f(this).collection;if(!e&&o&&!iy(n))return"get"==t&&void 0;var a=i[t](0===n?0:n,r);return e?this:a}))})),o||ay(l,"size",{configurable:!0,get:function(){return f(this).collection.size}})}else r=n.getConstructor(e,t,i,a),Qg.enable();oy(r,t,!1,!0),c[t]=r,Xg({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)}}),Oy);var Ty=tt.Map,Ay=Je,Ry=C,Iy=Rt,Cy=qf,Ly=Z,Ny=df,By=[].push,Dy=function(t){var e,n,r,i,o=arguments.length,a=o>1?arguments[1]:void 0;return Cy(this),(e=void 0!==a)&&Iy(a),Ly(t)?new this:(n=[],e?(r=0,i=Ay(a,o>2?arguments[2]:void 0),Ny(t,(function(t){Ry(By,n,i(t,r++))}))):Ny(t,By,{that:n}),new this(n))};An({target:"Map",stat:!0,forced:!0},{from:Dy});var Py=bs,My=function(){return new this(Py(arguments))};An({target:"Map",stat:!0,forced:!0},{of:My});var zy=C,jy=Rt,Fy=en,Uy=function(){for(var t,e=Fy(this),n=jy(e.delete),r=!0,i=0,o=arguments.length;i<o;i++)t=zy(n,e,arguments[i]),r=r&&t;return!!r};An({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:Uy});var Ky=C,Gy=Rt,Zy=en;An({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(t,e){var n,r,i=Zy(this),o=Gy(i.get),a=Gy(i.has),s=Gy(i.set);return Ky(a,i,t)?(n=Ky(o,i,t),"update"in e&&(n=e.update(n,t,i),Ky(s,i,t,n)),n):(r=e.insert(t,i),Ky(s,i,t,r),r)}});var Hy=Yl,Wy=en,Vy=Je,Yy=Hy,Jy=df;An({target:"Map",proto:!0,real:!0,forced:!0},{every:function(t){var e=Wy(this),n=Yy(e),r=Vy(t,arguments.length>1?arguments[1]:void 0);return!Jy(n,(function(t,n,i){if(!r(n,t,e))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var Xy=ot,qy=Je,Qy=C,$y=Rt,tm=en,em=nh,nm=Hy,rm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var e=tm(this),n=nm(e),r=qy(t,arguments.length>1?arguments[1]:void 0),i=new(em(e,Xy("Map"))),o=$y(i.set);return rm(n,(function(t,n){r(n,t,e)&&Qy(o,i,t,n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}});var im=en,om=Je,am=Hy,sm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var e=im(this),n=am(e),r=om(t,arguments.length>1?arguments[1]:void 0);return sm(n,(function(t,n,i){if(r(n,t,e))return i(n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var um=en,cm=Je,lm=Hy,fm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var e=um(this),n=lm(e),r=cm(t,arguments.length>1?arguments[1]:void 0);return fm(n,(function(t,n,i){if(r(n,t,e))return i(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var hm=An,dm=C,pm=Rt,vm=Yl,_m=df,gm=k([].push);hm({target:"Map",stat:!0,forced:!0},{groupBy:function(t,e){pm(e);var n=vm(t),r=new this,i=pm(r.has),o=pm(r.get),a=pm(r.set);return _m(n,(function(t){var n=e(t);dm(i,r,n)?gm(dm(o,r,n),t):dm(a,r,n,[t])}),{IS_ITERATOR:!0}),r}});var ym=en,mm=Hy,bm=function(t,e){return t===e||t!=t&&e!=e},wm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return wm(mm(ym(this)),(function(e,n,r){if(bm(n,t))return r()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var km=C,Sm=df,Em=Rt;An({target:"Map",stat:!0,forced:!0},{keyBy:function(t,e){var n=new this;Em(e);var r=Em(n.set);return Sm(t,(function(t){km(r,n,e(t),t)})),n}});var xm=en,Om=Hy,Tm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){return Tm(Om(xm(this)),(function(e,n,r){if(n===t)return r(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var Am=ot,Rm=Je,Im=C,Cm=Rt,Lm=en,Nm=nh,Bm=Hy,Dm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var e=Lm(this),n=Bm(e),r=Rm(t,arguments.length>1?arguments[1]:void 0),i=new(Nm(e,Am("Map"))),o=Cm(i.set);return Dm(n,(function(t,n){Im(o,i,r(n,t,e),n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}});var Pm=ot,Mm=Je,zm=C,jm=Rt,Fm=en,Um=nh,Km=Hy,Gm=df;An({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var e=Fm(this),n=Km(e),r=Mm(t,arguments.length>1?arguments[1]:void 0),i=new(Um(e,Pm("Map"))),o=jm(i.set);return Gm(n,(function(t,n){zm(o,i,t,r(n,t,e))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}});var Zm=Rt,Hm=en,Wm=df;An({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var e=Hm(this),n=Zm(e.set),r=arguments.length,i=0;i<r;)Wm(arguments[i++],n,{that:e,AS_ENTRIES:!0});return e}});var Vm=en,Ym=Rt,Jm=Hy,Xm=df,qm=TypeError;An({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(t){var e=Vm(this),n=Jm(e),r=arguments.length<2,i=r?void 0:arguments[1];if(Ym(t),Xm(n,(function(n,o){r?(r=!1,i=o):i=t(i,o,n,e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),r)throw qm("Reduce of empty map with no initial value");return i}});var Qm=en,$m=Je,tb=Hy,eb=df;An({target:"Map",proto:!0,real:!0,forced:!0},{some:function(t){var e=Qm(this),n=tb(e),r=$m(t,arguments.length>1?arguments[1]:void 0);return eb(n,(function(t,n,i){if(r(n,t,e))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var nb=C,rb=en,ib=Rt,ob=TypeError;An({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,e){var n=rb(this),r=ib(n.get),i=ib(n.has),o=ib(n.set),a=arguments.length;ib(e);var s=nb(i,n,t);if(!s&&a<3)throw ob("Updating absent value");var u=s?nb(r,n,t):ib(a>2?arguments[2]:void 0)(t,n);return nb(o,n,t,e(u,t,n)),n}});var ab=C,sb=Rt,ub=O,cb=en,lb=TypeError,fb=function(t,e){var n,r=cb(this),i=sb(r.get),o=sb(r.has),a=sb(r.set),s=arguments.length>2?arguments[2]:void 0;if(!ub(e)&&!ub(s))throw lb("At least one callback required");return ab(o,r,t)?(n=ab(i,r,t),ub(e)&&(n=e(n),ab(a,r,t,n))):ub(s)&&(n=s(),ab(a,r,t,n)),n};An({target:"Map",proto:!0,real:!0,forced:!0},{upsert:fb}),An({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:fb});var hb=e(Ty),db=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}(db||{}),pb=function(t){return t[t.STREAM_INDEX_MAIN=0]="STREAM_INDEX_MAIN",t[t.STREAM_INDEX_SCREEN=1]="STREAM_INDEX_SCREEN",t}(pb||{}),vb=function(t){x_(n,t);var e=K_(n);function n(){var t,r;e_(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return G_(a_(r=e.call.apply(e,rg(t=[this]).call(t,o))),"type",db.PRE_PROCESSING),r}return o_(n)}(ag),_b=ol("Array").values,gb=tr,yb=Xt,mb=at,bb=_b,wb=Array.prototype,kb={DOMTokenList:!0,NodeList:!0},Sb=e((function(t){var e=t.values;return t===wb||mb(wb,t)&&e===wb.values||yb(kb,gb(t))?bb:e})),Eb=ol("Array").keys,xb=tr,Ob=Xt,Tb=at,Ab=Eb,Rb=Array.prototype,Ib={DOMTokenList:!0,NodeList:!0},Cb=e((function(t){var e=t.keys;return t===Rb||Tb(Rb,t)&&e===Rb.keys||Ob(Ib,xb(t))?Ab:e})),Lb=ri.includes;An({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(t){return Lb(this,t,arguments.length>1?arguments[1]:void 0)}});var Nb=ol("Array").includes,Bb=$,Db=m,Pb=fe("match"),Mb=function(t){var e;return Bb(t)&&(void 0!==(e=t[Pb])?!!e:"RegExp"==Db(t))},zb=TypeError,jb=fe("match"),Fb=An,Ub=function(t){if(Mb(t))throw zb("The method doesn't accept regular expressions");return t},Kb=V,Gb=Vr,Zb=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[jb]=!1,"/./"[t](e)}catch(r){}}return!1},Hb=k("".indexOf);Fb({target:"String",proto:!0,forced:!Zb("includes")},{includes:function(t){return!!~Hb(Gb(Kb(this)),Gb(Ub(t)),arguments.length>1?arguments[1]:void 0)}});var Wb=ol("String").includes,Vb=at,Yb=Nb,Jb=Wb,Xb=Array.prototype,qb=String.prototype,Qb=e((function(t){var e=t.includes;return t===Xb||Vb(Xb,t)&&e===Xb.includes?Yb:"string"==typeof t||t===qb||Vb(qb,t)&&e===qb.includes?Jb:e})),$b=tt,tw=l;$b.JSON||($b.JSON={stringify:JSON.stringify});var ew=function(t,e,n){return tw($b.JSON.stringify,null,arguments)},nw=e(ew),rw=function(){return"undefined"==typeof window};function iw(t){return null==t?"undefined | null":"string"==typeof t?t:nw({contentHint:t.contentHint,enabled:t.enabled,id:t.id,kind:t.kind,label:t.label,muted:t.muted,readyState:t.readyState})}function ow(t){return null==t?"undefined | null":"string"==typeof t?t:nw({track:iw(t.track)})}function aw(t){return null==t?"undefined | null":"string"==typeof t?t:nw({track:iw(t.track)})}var sw="@byted/ve-rtc",uw="@byted/ve-rtc-cache-size",cw=function(){function t(){e_(this,t),G_(this,"storeKey",void 0),G_(this,"logLevel",void 0),G_(this,"LogfileSize",void 0),G_(this,"db",void 0),G_(this,"logId",void 0),G_(this,"cacheLog",void 0),G_(this,"cachedSize",void 0),G_(this,"preCacheTime",void 0),G_(this,"timer",void 0),G_(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 o_(t,[{key:"_createStore",value:function(){var t=this;if(!rw()&&window.indexedDB){var e=indexedDB.open("@byted/ve-rtc");e.onupgradeneeded=function(){e.result.createObjectStore(sw);try{localStorage.removeItem(uw)}catch(WT){}},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(uw);if(e)this.cachedSize=Number(e);else Sb(this).call(this).then((function(e){t.cachedSize=t._getSize(e),t._setCachedSize()}))}catch(WT){}}},{key:"_setCachedSize",value:function(){try{localStorage.setItem(uw,"".concat(this.cachedSize))}catch(WT){}}},{key:"_getStore",value:function(t){if(this.db)return this.db.transaction(sw,t).objectStore(sw)}},{key:"set",value:function(t){var e=this;return new Sv((function(n,r){if("none"===e.logLevel)return n();var i;if(t&&e.preCacheTime&&e.preCacheTime-Date.now()<1e3)return e.cacheLog+=rg(i="\n\n".concat(e.logId,": ")).call(i,t),e.logId++,e.timer||(e.timer=setTimeout((function(){e.set("")}),1e3-(e.preCacheTime-Date.now()))),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=rg(i="".concat(a.result||"")).call(i,e.cacheLog),h=t?rg(s=rg(u="".concat(f?"\n\n":"")).call(u,e.logId,": ")).call(s,t):"";o.put(rg(c="".concat(f)).call(c,h),e.storeKey),t&&e.logId++,e.cacheLog="",e.cachedSize=(e.cachedSize||0)+e._getSize([rg(l="".concat(e.cacheLog)).call(l,h)]),e._setCachedSize(),e.preCacheTime=Date.now(),n()}catch(p){var d;if(!t)return r(p);e.cacheLog+=rg(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+=rg(i="\n\n".concat(e.logId,": ")).call(i,t),e.logId++,r(n)}}))}},{key:"get",value:function(t){var e=this;return new Sv((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 Sv((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 Cb(this).call(this).then((function(t){var e,n=Date.now();return t.forEach((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 Sv((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 Sv((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}(),lw=new cw,fw=qo.map;An({target:"Array",proto:!0,forced:!Rr("map")},{map:function(t){return fw(this,t,arguments.length>1?arguments[1]:void 0)}});var hw=ol("Array").map,dw=at,pw=hw,vw=Array.prototype,_w=e((function(t){var e=t.map;return t===vw||dw(vw,t)&&e===vw.map?pw:e})),gw=Bn,yw=Vr,mw=V,bw=RangeError,ww=k,kw=Mn,Sw=Vr,Ew=V,xw=ww((function(t){var e=yw(mw(this)),n="",r=gw(t);if(r<0||r==1/0)throw bw("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n})),Ow=ww("".slice),Tw=Math.ceil,Aw=function(t){return function(e,n,r){var i,o,a=Sw(Ew(e)),s=kw(n),u=a.length,c=void 0===r?" ":Sw(r);return s<=u||""==c?a:((o=xw(c,Tw((i=s-u)/c.length))).length>i&&(o=Ow(o,0,i)),t?a+o:o+a)}},Rw={start:Aw(!1),end:Aw(!0)},Iw=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(st),Cw=Rw.start;An({target:"String",proto:!0,forced:Iw},{padStart:function(t){return Cw(this,t,arguments.length>1?arguments[1]:void 0)}});var Lw=ol("String").padStart,Nw=at,Bw=Lw,Dw=String.prototype,Pw=e((function(t){var e=t.padStart;return"string"==typeof t||t===Dw||Nw(Dw,t)&&e===Dw.padStart?Bw:e}));function Mw(t){return function(t){if(ug(t))return Eg(t)}(t)||function(t){if(void 0!==kc&&null!=sg(t)||null!=t["@@iterator"])return Sg(t)}(t)||function(t,e){var n;if(t){if("string"==typeof t)return Eg(t,e);var r=qv(n=Object.prototype.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Sg(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Eg(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 zw=A,jw=In,Fw=TypeError,Uw=Object.getOwnPropertyDescriptor,Kw=zw&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(WT){return WT instanceof TypeError}}(),Gw=xt,Zw=TypeError,Hw=An,Ww=Vt,Vw=Qr,Yw=Bn,Jw=jn,Xw=Kw?function(t,e){if(jw(t)&&!Uw(t,"length").writable)throw Fw("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},qw=Un,Qw=xr,$w=Hn,tk=function(t,e){if(!delete t[e])throw Zw("Cannot delete property "+Gw(e)+" of "+Gw(t))},ek=Rr("splice"),nk=Math.max,rk=Math.min;Hw({target:"Array",proto:!0,forced:!ek},{splice:function(t,e){var n,r,i,o,a,s,u=Ww(this),c=Jw(u),l=Vw(t,c),f=arguments.length;for(0===f?n=r=0:1===f?(n=0,r=c-l):(n=f-2,r=rk(nk(Yw(e),0),c-l)),qw(c+n-r),i=Qw(u,r),o=0;o<r;o++)(a=l+o)in u&&$w(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]:tk(u,s);for(o=c;o>c-r+n;o--)tk(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]:tk(u,s);for(o=0;o<n;o++)u[o+l]=arguments[o+2];return Xw(u,c-r+n),i}});var ik=ol("Array").splice,ok=at,ak=ik,sk=Array.prototype,uk=e((function(t){var e=t.splice;return t===sk||ok(sk,t)&&e===sk.splice?ak:e})),ck=An,lk=ri.indexOf,fk=el,hk=k([].indexOf),dk=!!hk&&1/hk([1],1,-0)<0,pk=fk("indexOf");ck({target:"Array",proto:!0,forced:dk||!pk},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return dk?hk(this,t,e)||0:lk(this,t,e)}});var vk=ol("Array").indexOf,_k=at,gk=vk,yk=Array.prototype,mk=e((function(t){var e=t.indexOf;return t===yk||_k(yk,t)&&e===yk.indexOf?gk:e})),bk=function(){function t(){e_(this,t),G_(this,"_all",{})}return o_(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||uk(n).call(n,mk(n).call(n,e)>>>0,1)}},{key:"emit",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=this._all[t];null==i||qv(i).call(i).forEach((function(t){return t.apply(void 0,n)}))}},{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,rg(e=[t]).call(e,r))}catch(WT){console.error(WT)}}},{key:"destroy",value:function(){this._all={}}}]),t}(),wk=["UPLOAD_CONSOLE_LENGTH_CUT","UPLOAD_REPORT_LIMIT"];var kk=function(t){x_(n,t);var e=K_(n);function n(){var t,r;e_(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return G_(a_(r=e.call.apply(e,rg(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 o_(n,[{key:"setParameter",value:function(t,e){if(function(t){return Qb(wk).call(wk,t)}(t))try{var n=Number(e);if(Number.isNaN(n))return;this.config[t]=n}catch(i){var r;return void console.warn(rg(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 W_(this.config)}}]),n}(bk),Sk=new kk,Ek={exports:{}},xk=An,Ok=i,Tk=X,Ak=T.f,Rk=A,Ik=Ok((function(){Ak(1)}));xk({target:"Object",stat:!0,forced:!Rk||Ik,sham:!Rk},{getOwnPropertyDescriptor:function(t,e){return Ak(Tk(t),e)}});var Ck=tt.Object,Lk=Ek.exports=function(t,e){return Ck.getOwnPropertyDescriptor(t,e)};Ck.getOwnPropertyDescriptor.sham&&(Lk.sham=!0);var Nk=e(Ek.exports),Bk=bl,Dk=X,Pk=T,Mk=Hn;An({target:"Object",stat:!0,sham:!A},{getOwnPropertyDescriptors:function(t){for(var e,n,r=Dk(t),i=Pk.f,o=Bk(r),a={},s=0;o.length>s;)void 0!==(n=i(r,e=o[s++]))&&Mk(a,e,n);return a}});var zk=e(tt.Object.getOwnPropertyDescriptors),jk={exports:{}},Fk=An,Uk=A,Kk=Yr.f;Fk({target:"Object",stat:!0,forced:Object.defineProperties!==Kk,sham:!Uk},{defineProperties:Kk});var Gk=tt.Object,Zk=jk.exports=function(t,e){return Gk.defineProperties(t,e)};Gk.defineProperties.sham&&(Zk.sham=!0);var Hk=e(jk.exports);function Wk(t,e){var n=W_(t);if(ig){var r=ig(t);e&&(r=Q_(r).call(r,(function(e){return Nk(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vk(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?dl(n=Wk(Object(i),!0)).call(n,(function(e){G_(t,e,i[e])})):zk?Hk(t,zk(i)):dl(r=Wk(Object(i))).call(r,(function(e){Vc(t,e,Nk(i,e))}))}return t}var Yk=A,Jk=k,Xk=C,qk=i,Qk=pi,$k=to,tS=L,eS=Vt,nS=G,rS=Object.assign,iS=Object.defineProperty,oS=Jk([].concat),aS=!rS||qk((function(){if(Yk&&1!==rS({b:1},rS(iS({},"a",{enumerable:!0,get:function(){iS(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=rS({},t)[n]||Qk(rS({},e)).join("")!=r}))?function(t,e){for(var n=eS(t),r=arguments.length,i=1,o=$k.f,a=tS.f;r>i;)for(var s,u=nS(arguments[i++]),c=o?oS(Qk(u),o(u)):Qk(u),l=c.length,f=0;l>f;)s=c[f++],Yk&&!Xk(a,u,s)||(n[s]=u[s]);return n}:rS,sS=aS;An({target:"Object",stat:!0,arity:2,forced:Object.assign!==sS},{assign:sS});var uS=e(tt.Object.assign),cS=Rt,lS=Vt,fS=G,hS=jn,dS=TypeError,pS=function(t){return function(e,n,r,i){cS(n);var o=lS(e),a=fS(o),s=hS(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 dS("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}},vS={left:pS(!1),right:pS(!0)}.left,_S=pt,gS=jf;An({target:"Array",proto:!0,forced:!el("reduce")||!gS&&_S>79&&_S<83},{reduce:function(t){var e=arguments.length;return vS(this,t,e,e>1?arguments[1]:void 0)}});var yS=ol("Array").reduce,mS=at,bS=yS,wS=Array.prototype,kS=e((function(t){var e=t.reduce;return t===wS||mS(wS,t)&&e===wS.reduce?bS:e})),SS=In,ES=jn,xS=Un,OS=Je,TS=function(t,e,n,r,i,o,a,s){for(var u,c,l=i,f=0,h=!!a&&OS(a,s);f<r;)f in n&&(u=h?h(n[f],f,e):n[f],o>0&&SS(u)?(c=ES(u),l=TS(t,e,u,c,l,o-1)-1):(xS(l+1),t[l]=u),l++),f++;return l},AS=TS,RS=Vt,IS=jn,CS=Bn,LS=xr;An({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=RS(this),n=IS(e),r=LS(e,0);return r.length=AS(r,e,e,n,0,void 0===t?1:CS(t)),r}});var NS=ol("Array").flat,BS=at,DS=NS,PS=Array.prototype,MS=e((function(t){var e=t.flat;return t===PS||BS(PS,t)&&e===PS.flat?DS:e})),zS={};!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=qv(Array.prototype).call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!==Fc(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 rg([]).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)}(zS);var jS={},FS={},US={},KS=zS,GS=0,ZS=1;function HS(t){for(var e=t.length;--e>=0;)t[e]=0}var WS=0,VS=29,YS=256,JS=YS+1+VS,XS=30,qS=19,QS=2*JS+1,$S=15,tE=16,eE=7,nE=256,rE=16,iE=17,oE=18,aE=[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],sE=[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],uE=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],cE=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],lE=new Array(2*(JS+2));HS(lE);var fE=new Array(2*XS);HS(fE);var hE=new Array(512);HS(hE);var dE=new Array(256);HS(dE);var pE=new Array(VS);HS(pE);var vE,_E,gE,yE=new Array(XS);function mE(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 bE(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function wE(t){return t<256?hE[t]:hE[256+(t>>>7)]}function kE(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function SE(t,e,n){t.bi_valid>tE-n?(t.bi_buf|=e<<t.bi_valid&65535,kE(t,t.bi_buf),t.bi_buf=e>>tE-t.bi_valid,t.bi_valid+=n-tE):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function EE(t,e,n){SE(t,n[2*e],n[2*e+1])}function xE(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function OE(t,e,n){var r,i,o=new Array($S+1),a=0;for(r=1;r<=$S;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]=xE(o[s]++,s))}}function TE(t){var e;for(e=0;e<JS;e++)t.dyn_ltree[2*e]=0;for(e=0;e<XS;e++)t.dyn_dtree[2*e]=0;for(e=0;e<qS;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*nE]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function AE(t){t.bi_valid>8?kE(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 RE(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 IE(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&RE(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!RE(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function CE(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?EE(t,i,e):(EE(t,(o=dE[i])+YS+1,e),0!==(a=aE[o])&&SE(t,i-=pE[o],a),EE(t,o=wE(--r),n),0!==(a=sE[o])&&SE(t,r-=yE[o],a))}while(s<t.last_lit);EE(t,nE,e)}function LE(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=QS,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--)IE(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],IE(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++,IE(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<=$S;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<QS;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),OE(o,c,t.bl_count)}function NE(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*rE]++):s<=10?t.bl_tree[2*iE]++:t.bl_tree[2*oE]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function BE(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{EE(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(EE(t,i,t.bl_tree),s--),EE(t,rE,t.bl_tree),SE(t,s-3,2)):s<=10?(EE(t,iE,t.bl_tree),SE(t,s-3,3)):(EE(t,oE,t.bl_tree),SE(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}HS(yE);var DE=!1;function PE(t,e,n,r){SE(t,(WS<<1)+(r?1:0),3),function(t,e,n,r){AE(t),r&&(kE(t,n),kE(t,~n)),KS.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}US._tr_init=function(t){DE||(!function(){var t,e,n,r,i,o=new Array($S+1);for(n=0,r=0;r<VS-1;r++)for(pE[r]=n,t=0;t<1<<aE[r];t++)dE[n++]=r;for(dE[n-1]=r,i=0,r=0;r<16;r++)for(yE[r]=i,t=0;t<1<<sE[r];t++)hE[i++]=r;for(i>>=7;r<XS;r++)for(yE[r]=i<<7,t=0;t<1<<sE[r]-7;t++)hE[256+i++]=r;for(e=0;e<=$S;e++)o[e]=0;for(t=0;t<=143;)lE[2*t+1]=8,t++,o[8]++;for(;t<=255;)lE[2*t+1]=9,t++,o[9]++;for(;t<=279;)lE[2*t+1]=7,t++,o[7]++;for(;t<=287;)lE[2*t+1]=8,t++,o[8]++;for(OE(lE,JS+1,o),t=0;t<XS;t++)fE[2*t+1]=5,fE[2*t]=xE(t,5);vE=new mE(lE,aE,YS+1,JS,$S),_E=new mE(fE,sE,0,XS,$S),gE=new mE(new Array(0),uE,0,qS,eE)}(),DE=!0),t.l_desc=new bE(t.dyn_ltree,vE),t.d_desc=new bE(t.dyn_dtree,_E),t.bl_desc=new bE(t.bl_tree,gE),t.bi_buf=0,t.bi_valid=0,TE(t)},US._tr_stored_block=PE,US._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 GS;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return ZS;for(e=32;e<YS;e++)if(0!==t.dyn_ltree[2*e])return ZS;return GS}(t)),LE(t,t.l_desc),LE(t,t.d_desc),a=function(t){var e;for(NE(t,t.dyn_ltree,t.l_desc.max_code),NE(t,t.dyn_dtree,t.d_desc.max_code),LE(t,t.bl_desc),e=qS-1;e>=3&&0===t.bl_tree[2*cE[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?PE(t,e,n,r):4===t.strategy||o===i?(SE(t,2+(r?1:0),3),CE(t,lE,fE)):(SE(t,4+(r?1:0),3),function(t,e,n,r){var i;for(SE(t,e-257,5),SE(t,n-1,5),SE(t,r-4,4),i=0;i<r;i++)SE(t,t.bl_tree[2*cE[i]+1],3);BE(t,t.dyn_ltree,e-1),BE(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),CE(t,t.dyn_ltree,t.dyn_dtree)),TE(t),r&&AE(t)},US._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*(dE[n]+YS+1)]++,t.dyn_dtree[2*wE(e)]++),t.last_lit===t.lit_bufsize-1},US._tr_align=function(t){SE(t,2,3),EE(t,nE,lE),function(t){16===t.bi_valid?(kE(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 ME=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 zE=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 jE,FE=function(t,e,n,r){var i=zE,o=r+n;t^=-1;for(var a=r;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t},UE={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"},KE=zS,GE=US,ZE=ME,HE=FE,WE=UE,VE=0,YE=4,JE=0,XE=-2,qE=-1,QE=4,$E=2,tx=8,ex=9,nx=286,rx=30,ix=19,ox=2*nx+1,ax=15,sx=3,ux=258,cx=ux+sx+1,lx=42,fx=103,hx=113,dx=666,px=1,vx=2,_x=3,gx=4;function yx(t,e){return t.msg=WE[e],e}function mx(t){return(t<<1)-(t>4?9:0)}function bx(t){for(var e=t.length;--e>=0;)t[e]=0}function wx(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(KE.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 kx(t,e){GE._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,wx(t.strm)}function Sx(t,e){t.pending_buf[t.pending++]=e}function Ex(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function xx(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-cx?t.strstart-(t.w_size-cx):0,c=t.window,l=t.w_mask,f=t.prev,h=t.strstart+ux,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=ux-(h-o),o=h-ux,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 Ox(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-cx)){KE.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,KE.arraySet(s,a.input,a.next_in,l,u),1===a.state.wrap?a.adler=ZE(a.adler,s,l,u):2===a.state.wrap&&(a.adler=HE(a.adler,s,l,u)),a.next_in+=l,a.total_in+=l,l),t.lookahead+=n,t.lookahead+t.insert>=sx)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+sx-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<sx)););}while(t.lookahead<cx&&0!==t.strm.avail_in)}function Tx(t,e){for(var n,r;;){if(t.lookahead<cx){if(Ox(t),t.lookahead<cx&&e===VE)return px;if(0===t.lookahead)break}if(n=0,t.lookahead>=sx&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+sx-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-cx&&(t.match_length=xx(t,n)),t.match_length>=sx)if(r=GE._tr_tally(t,t.strstart-t.match_start,t.match_length-sx),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=sx){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+sx-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=GE._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(kx(t,!1),0===t.strm.avail_out))return px}return t.insert=t.strstart<sx-1?t.strstart:sx-1,e===YE?(kx(t,!0),0===t.strm.avail_out?_x:gx):t.last_lit&&(kx(t,!1),0===t.strm.avail_out)?px:vx}function Ax(t,e){for(var n,r,i;;){if(t.lookahead<cx){if(Ox(t),t.lookahead<cx&&e===VE)return px;if(0===t.lookahead)break}if(n=0,t.lookahead>=sx&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+sx-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=sx-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-cx&&(t.match_length=xx(t,n),t.match_length<=5&&(1===t.strategy||t.match_length===sx&&t.strstart-t.match_start>4096)&&(t.match_length=sx-1)),t.prev_length>=sx&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-sx,r=GE._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-sx),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+sx-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=sx-1,t.strstart++,r&&(kx(t,!1),0===t.strm.avail_out))return px}else if(t.match_available){if((r=GE._tr_tally(t,0,t.window[t.strstart-1]))&&kx(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return px}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=GE._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<sx-1?t.strstart:sx-1,e===YE?(kx(t,!0),0===t.strm.avail_out?_x:gx):t.last_lit&&(kx(t,!1),0===t.strm.avail_out)?px:vx}function Rx(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 Ix(){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=tx,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 KE.Buf16(2*ox),this.dyn_dtree=new KE.Buf16(2*(2*rx+1)),this.bl_tree=new KE.Buf16(2*(2*ix+1)),bx(this.dyn_ltree),bx(this.dyn_dtree),bx(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new KE.Buf16(ax+1),this.heap=new KE.Buf16(2*nx+1),bx(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new KE.Buf16(2*nx+1),bx(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 Cx(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=$E,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?lx:hx,t.adler=2===e.wrap?0:1,e.last_flush=VE,GE._tr_init(e),JE):yx(t,XE)}function Lx(t){var e,n=Cx(t);return n===JE&&((e=t.state).window_size=2*e.w_size,bx(e.head),e.max_lazy_match=jE[e.level].max_lazy,e.good_match=jE[e.level].good_length,e.nice_match=jE[e.level].nice_length,e.max_chain_length=jE[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=sx-1,e.match_available=0,e.ins_h=0),n}function Nx(t,e,n,r,i,o){if(!t)return XE;var a=1;if(e===qE&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>ex||n!==tx||r<8||r>15||e<0||e>9||o<0||o>QE)return yx(t,XE);8===r&&(r=9);var s=new Ix;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+sx-1)/sx),s.window=new KE.Buf8(2*s.w_size),s.head=new KE.Buf16(s.hash_size),s.prev=new KE.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new KE.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,Lx(t)}jE=[new Rx(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(Ox(t),0===t.lookahead&&e===VE)return px;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,kx(t,!1),0===t.strm.avail_out))return px;if(t.strstart-t.block_start>=t.w_size-cx&&(kx(t,!1),0===t.strm.avail_out))return px}return t.insert=0,e===YE?(kx(t,!0),0===t.strm.avail_out?_x:gx):(t.strstart>t.block_start&&(kx(t,!1),t.strm.avail_out),px)})),new Rx(4,4,8,4,Tx),new Rx(4,5,16,8,Tx),new Rx(4,6,32,32,Tx),new Rx(4,4,16,16,Ax),new Rx(8,16,32,32,Ax),new Rx(8,16,128,128,Ax),new Rx(8,32,128,256,Ax),new Rx(32,128,258,1024,Ax),new Rx(32,258,258,4096,Ax)],FS.deflateInit=function(t,e){return Nx(t,e,tx,15,8,0)},FS.deflateInit2=Nx,FS.deflateReset=Lx,FS.deflateResetKeep=Cx,FS.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?XE:(t.state.gzhead=e,JE):XE},FS.deflate=function(t,e){var n,r,i,o;if(!t||!t.state||e>5||e<0)return t?yx(t,XE):XE;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||r.status===dx&&e!==YE)return yx(t,0===t.avail_out?-5:XE);if(r.strm=t,n=r.last_flush,r.last_flush=e,r.status===lx)if(2===r.wrap)t.adler=0,Sx(r,31),Sx(r,139),Sx(r,8),r.gzhead?(Sx(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)),Sx(r,255&r.gzhead.time),Sx(r,r.gzhead.time>>8&255),Sx(r,r.gzhead.time>>16&255),Sx(r,r.gzhead.time>>24&255),Sx(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Sx(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Sx(r,255&r.gzhead.extra.length),Sx(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=HE(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Sx(r,0),Sx(r,0),Sx(r,0),Sx(r,0),Sx(r,0),Sx(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Sx(r,3),r.status=hx);else{var a=tx+(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=hx,Ex(r,a),0!==r.strstart&&(Ex(r,t.adler>>>16),Ex(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=HE(t.adler,r.pending_buf,r.pending-i,i)),wx(t),i=r.pending,r.pending!==r.pending_buf_size));)Sx(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(t.adler=HE(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=HE(t.adler,r.pending_buf,r.pending-i,i)),wx(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,Sx(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=HE(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=HE(t.adler,r.pending_buf,r.pending-i,i)),wx(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,Sx(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=HE(t.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=fx)}else r.status=fx;if(r.status===fx&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&wx(t),r.pending+2<=r.pending_buf_size&&(Sx(r,255&t.adler),Sx(r,t.adler>>8&255),t.adler=0,r.status=hx)):r.status=hx),0!==r.pending){if(wx(t),0===t.avail_out)return r.last_flush=-1,JE}else if(0===t.avail_in&&mx(e)<=mx(n)&&e!==YE)return yx(t,-5);if(r.status===dx&&0!==t.avail_in)return yx(t,-5);if(0!==t.avail_in||0!==r.lookahead||e!==VE&&r.status!==dx){var s=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(Ox(t),0===t.lookahead)){if(e===VE)return px;break}if(t.match_length=0,n=GE._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(kx(t,!1),0===t.strm.avail_out))return px}return t.insert=0,e===YE?(kx(t,!0),0===t.strm.avail_out?_x:gx):t.last_lit&&(kx(t,!1),0===t.strm.avail_out)?px:vx}(r,e):3===r.strategy?function(t,e){for(var n,r,i,o,a=t.window;;){if(t.lookahead<=ux){if(Ox(t),t.lookahead<=ux&&e===VE)return px;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=sx&&t.strstart>0&&(r=a[i=t.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=t.strstart+ux;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=ux-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=sx?(n=GE._tr_tally(t,1,t.match_length-sx),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=GE._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(kx(t,!1),0===t.strm.avail_out))return px}return t.insert=0,e===YE?(kx(t,!0),0===t.strm.avail_out?_x:gx):t.last_lit&&(kx(t,!1),0===t.strm.avail_out)?px:vx}(r,e):jE[r.level].func(r,e);if(s!==_x&&s!==gx||(r.status=dx),s===px||s===_x)return 0===t.avail_out&&(r.last_flush=-1),JE;if(s===vx&&(1===e?GE._tr_align(r):5!==e&&(GE._tr_stored_block(r,0,0,!1),3===e&&(bx(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),wx(t),0===t.avail_out))return r.last_flush=-1,JE}return e!==YE?JE:r.wrap<=0?1:(2===r.wrap?(Sx(r,255&t.adler),Sx(r,t.adler>>8&255),Sx(r,t.adler>>16&255),Sx(r,t.adler>>24&255),Sx(r,255&t.total_in),Sx(r,t.total_in>>8&255),Sx(r,t.total_in>>16&255),Sx(r,t.total_in>>24&255)):(Ex(r,t.adler>>>16),Ex(r,65535&t.adler)),wx(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?JE:1)},FS.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==lx&&69!==e&&73!==e&&91!==e&&e!==fx&&e!==hx&&e!==dx?yx(t,XE):(t.state=null,e===hx?yx(t,-3):JE):XE},FS.deflateSetDictionary=function(t,e){var n,r,i,o,a,s,u,c,l=e.length;if(!t||!t.state)return XE;if(2===(o=(n=t.state).wrap)||1===o&&n.status!==lx||n.lookahead)return XE;for(1===o&&(t.adler=ZE(t.adler,e,l,0)),n.wrap=0,l>=n.w_size&&(0===o&&(bx(n.head),n.strstart=0,n.block_start=0,n.insert=0),c=new KE.Buf8(n.w_size),KE.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,Ox(n);n.lookahead>=sx;){r=n.strstart,i=n.lookahead-(sx-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+sx-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=sx-1,Ox(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=sx-1,n.match_available=0,t.next_in=s,t.input=u,t.avail_in=a,n.wrap=o,JE},FS.deflateInfo="pako deflate (from Nodeca project)";var Bx={},Dx=zS,Px=!0,Mx=!0;try{String.fromCharCode.apply(null,[0])}catch(VT){Px=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(VT){Mx=!1}for(var zx=new Dx.Buf8(256),jx=0;jx<256;jx++)zx[jx]=jx>=252?6:jx>=248?5:jx>=240?4:jx>=224?3:jx>=192?2:1;function Fx(t,e){if(e<65534&&(t.subarray&&Mx||!t.subarray&&Px))return String.fromCharCode.apply(null,Dx.shrinkBuf(t,e));for(var n="",r=0;r<e;r++)n+=String.fromCharCode(t[r]);return n}zx[254]=zx[254]=1,Bx.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 Dx.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},Bx.buf2binstring=function(t){return Fx(t,t.length)},Bx.binstring2buf=function(t){for(var e=new Dx.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},Bx.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=zx[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 Fx(s,r)},Bx.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+zx[t[n]]>e?n:e};var Ux=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},Kx=FS,Gx=zS,Zx=Bx,Hx=UE,Wx=Ux,Vx=Object.prototype.toString,Yx=0,Jx=-1,Xx=0,qx=8;function Qx(t){if(!(this instanceof Qx))return new Qx(t);this.options=Gx.assign({level:Jx,method:qx,chunkSize:16384,windowBits:15,memLevel:8,strategy:Xx,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 Wx,this.strm.avail_out=0;var n=Kx.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==Yx)throw new Error(Hx[n]);if(e.header&&Kx.deflateSetHeader(this.strm,e.header),e.dictionary){var r;if(r="string"==typeof e.dictionary?Zx.string2buf(e.dictionary):"[object ArrayBuffer]"===Vx.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=Kx.deflateSetDictionary(this.strm,r))!==Yx)throw new Error(Hx[n]);this._dict_set=!0}}function $x(t,e){var n=new Qx(e);if(n.push(t,!0),n.err)throw n.msg||Hx[n.err];return n.result}Qx.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=Zx.string2buf(t):"[object ArrayBuffer]"===Vx.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 Gx.Buf8(o),i.next_out=0,i.avail_out=o),1!==(n=Kx.deflate(i,r))&&n!==Yx)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(Zx.buf2binstring(Gx.shrinkBuf(i.output,i.next_out))):this.onData(Gx.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||0===i.avail_out)&&1!==n);return 4===r?(n=Kx.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yx):2!==r||(this.onEnd(Yx),i.avail_out=0,!0)},Qx.prototype.onData=function(t){this.chunks.push(t)},Qx.prototype.onEnd=function(t){t===Yx&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Gx.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},jS.Deflate=Qx,jS.deflate=$x,jS.deflateRaw=function(t,e){return(e=e||{}).raw=!0,$x(t,e)},jS.gzip=function(t,e){return(e=e||{}).gzip=!0,$x(t,e)};var tO={},eO=en,nO=C,rO=Xt,iO=at,oO=function(){var t=eO(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},aO=RegExp.prototype,sO=at,uO=function(t){var e=t.flags;return void 0!==e||"flags"in aO||rO(t,"flags")||!iO(aO,t)?e:nO(oO,t)},cO=RegExp.prototype,lO=e((function(t){return t===cO||sO(cO,t)?uO(t):t.flags})),fO={},hO=zS,dO=15,pO=[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],vO=[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],_O=[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],gO=[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],yO=zS,mO=ME,bO=FE,wO=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,E,x,O;n=t.state,r=t.next_in,x=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+=x[r++]<<p,p+=8,d+=x[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+=x[r++]<<p,p+=8),w+=d&(1<<b)-1,d>>>=b,p-=b),p<15&&(d+=x[r++]<<p,p+=8,d+=x[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+=x[r++]<<p,(p+=8)<b&&(d+=x[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,E=h,0===f){if(S+=c-b,b<w){w-=b;do{O[o++]=h[S++]}while(--b);S=o-k,E=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,E=O}}}else if(S+=f-b,b<w){w-=b;do{O[o++]=h[S++]}while(--b);S=o-k,E=O}for(;w>2;)O[o++]=E[S++],O[o++]=E[S++],O[o++]=E[S++],w-=3;w&&(O[o++]=E[S++],w>1&&(O[o++]=E[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},kO=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,E=0,x=0,O=0,T=0,A=null,R=0,I=new hO.Buf16(16),C=new hO.Buf16(16),L=null,N=0;for(y=0;y<=dO;y++)I[y]=0;for(m=0;m<r;m++)I[e[n+m]]++;for(k=g,w=dO;w>=1&&0===I[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===I[b];b++);for(k<b&&(k=b),x=1,y=1;y<=dO;y++)if(x<<=1,(x-=I[y])<0)return-1;if(x>0&&(0===t||1!==w))return-1;for(C[1]=0,y=1;y<dO;y++)C[y+1]=C[y]+I[y];for(m=0;m<r;m++)0!==e[n+m]&&(a[C[e[n+m]]++]=m);if(0===t?(A=L=a,d=19):1===t?(A=pO,R-=257,L=vO,N-=257,d=256):(A=_O,L=gO,d=-1),T=0,m=0,y=b,h=o,S=k,E=0,l=-1,f=(O=1<<k)-1,1===t&&O>852||2===t&&O>592)return 1;for(;;){p=y-E,a[m]<d?(v=0,_=a[m]):a[m]>d?(v=L[N+a[m]],_=A[R+a[m]]):(v=96,_=0),u=1<<y-E,b=c=1<<S;do{i[h+(T>>E)+(c-=u)]=p<<24|v<<16|_|0}while(0!==c);for(u=1<<y-1;T&u;)u>>=1;if(0!==u?(T&=u-1,T+=u):T=0,m++,0==--I[y]){if(y===w)break;y=e[n+a[m]]}if(y>k&&(T&f)!==l){for(0===E&&(E=k),h+=b,x=1<<(S=y-E);S+E<w&&!((x-=I[S+E])<=0);)S++,x<<=1;if(O+=1<<S,1===t&&O>852||2===t&&O>592)return 1;i[l=T&f]=k<<24|S<<16|h-o|0}}return 0!==T&&(i[h+T]=y-E<<24|64<<16|0),s.bits=k,0},SO=1,EO=2,xO=0,OO=-2,TO=1,AO=12,RO=30,IO=852,CO=592;function LO(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function NO(){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 yO.Buf16(320),this.work=new yO.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function BO(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=TO,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new yO.Buf32(IO),e.distcode=e.distdyn=new yO.Buf32(CO),e.sane=1,e.back=-1,xO):OO}function DO(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,BO(t)):OO}function PO(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)?OO:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,DO(t))):OO}function MO(t,e){var n,r;return t?(r=new NO,t.state=r,r.window=null,(n=PO(t,e))!==xO&&(t.state=null),n):OO}var zO,jO,FO=!0;function UO(t){if(FO){var e;for(zO=new yO.Buf32(512),jO=new yO.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(kO(SO,t.lens,0,288,zO,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;kO(EO,t.lens,0,32,jO,0,t.work,{bits:5}),FO=!1}t.lencode=zO,t.lenbits=9,t.distcode=jO,t.distbits=5}function KO(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 yO.Buf8(o.wsize)),r>=o.wsize?(yO.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),yO.arraySet(o.window,e,n-r,i,o.wnext),(r-=i)?(yO.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}fO.inflateReset=DO,fO.inflateReset2=PO,fO.inflateResetKeep=BO,fO.inflateInit=function(t){return MO(t,15)},fO.inflateInit2=MO,fO.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,E,x,O=0,T=new yO.Buf8(4),A=[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 OO;(n=t.state).mode===AO&&(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=xO;t:for(;;)switch(n.mode){case TO: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,T[0]=255&c,T[1]=c>>>8&255,n.check=bO(n.check,T,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=RO;break}if(8!=(15&c)){t.msg="unknown compression method",n.mode=RO;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=RO;break}n.dmax=1<<k,t.adler=n.check=1,n.mode=512&c?10:AO,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&lO(n))){t.msg="unknown compression method",n.mode=RO;break}if(57344&lO(n)){t.msg="unknown header flags set",n.mode=RO;break}n.head&&(n.head.text=c>>8&1),512&lO(n)&&(T[0]=255&c,T[1]=c>>>8&255,n.check=bO(n.check,T,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&lO(n)&&(T[0]=255&c,T[1]=c>>>8&255,T[2]=c>>>16&255,T[3]=c>>>24&255,n.check=bO(n.check,T,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&lO(n)&&(T[0]=255&c,T[1]=c>>>8&255,n.check=bO(n.check,T,2,0)),c=0,l=0,n.mode=5;case 5:if(1024&lO(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&lO(n)&&(T[0]=255&c,T[1]=c>>>8&255,n.check=bO(n.check,T,2,0)),c=0,l=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&lO(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)),yO.arraySet(n.head.extra,r,o,d,k)),512&lO(n)&&(n.check=bO(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&lO(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&lO(n)&&(n.check=bO(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&lO(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&lO(n)&&(n.check=bO(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&lO(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=RO;break}c=0,l=0}n.head&&(n.head.hcrc=lO(n)>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=AO;break;case 10:for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}t.adler=n.check=LO(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=AO;case AO: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(UO(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=RO}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=RO;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;yO.arraySet(i,r,o,d,a),s-=d,o+=d,u-=d,a+=d,n.length-=d;break}n.mode=AO;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=RO;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[A[n.have++]]=7&c,c>>>=3,l-=3}for(;n.have<19;)n.lens[A[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,E={bits:n.lenbits},S=kO(0,n.lens,0,19,n.lencode,0,n.work,E),n.lenbits=E.bits,S){t.msg="invalid code lengths set",n.mode=RO;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(x=_+2;l<x;){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=RO;break}k=n.lens[n.have-1],d=3+(3&c),c>>>=2,l-=2}else if(17===y){for(x=_+3;l<x;){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(x=_+7;l<x;){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=RO;break}for(;d--;)n.lens[n.have++]=k}}if(n.mode===RO)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=RO;break}if(n.lenbits=9,E={bits:n.lenbits},S=kO(SO,n.lens,0,n.nlen,n.lencode,0,n.work,E),n.lenbits=E.bits,S){t.msg="invalid literal/lengths set",n.mode=RO;break}if(n.distbits=6,n.distcode=n.distdyn,E={bits:n.distbits},S=kO(EO,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E),n.distbits=E.bits,S){t.msg="invalid distances set",n.mode=RO;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,wO(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===AO&&(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=AO;break}if(64&g){t.msg="invalid literal/length code",n.mode=RO;break}n.extra=15&g,n.mode=22;case 22:if(n.extra){for(x=n.extra;l<x;){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=RO;break}n.offset=y,n.extra=15&g,n.mode=24;case 24:if(n.extra){for(x=n.extra;l<x;){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=RO;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=RO;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=lO(n)?bO(n.check,i,h,a-h):mO(n.check,i,h,a-h)),h=u,(lO(n)?c:LO(c))!==n.check){t.msg="incorrect data check",n.mode=RO;break}c=0,l=0}n.mode=28;case 28:if(n.wrap&&lO(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=RO;break}c=0,l=0}n.mode=29;case 29:S=1;break t;case RO:S=-3;break t;case 31:return-4;default:return OO}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<RO&&(n.mode<27||4!==e))&&KO(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=lO(n)?bO(n.check,i,h,t.next_out-h):mO(n.check,i,h,t.next_out-h)),t.data_type=n.bits+(n.last?64:0)+(n.mode===AO?128:0)+(20===n.mode||15===n.mode?256:0),(0===f&&0===h||4===e)&&S===xO&&(S=-5),S},fO.inflateEnd=function(t){if(!t||!t.state)return OO;var e=t.state;return e.window&&(e.window=null),t.state=null,xO},fO.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?OO:(n.head=e,e.done=!1,xO):OO},fO.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?OO:11===n.mode&&mO(1,e,r,0)!==n.check?-3:KO(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,xO):OO},fO.inflateInfo="pako inflate (from Nodeca project)";var GO={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 ZO=fO,HO=zS,WO=Bx,VO=GO,YO=UE,JO=Ux,XO=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},qO=Object.prototype.toString;function QO(t){if(!(this instanceof QO))return new QO(t);this.options=HO.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 JO,this.strm.avail_out=0;var n=ZO.inflateInit2(this.strm,e.windowBits);if(n!==VO.Z_OK)throw new Error(YO[n]);if(this.header=new XO,ZO.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=WO.string2buf(e.dictionary):"[object ArrayBuffer]"===qO.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=ZO.inflateSetDictionary(this.strm,e.dictionary))!==VO.Z_OK))throw new Error(YO[n])}function $O(t,e){var n=new QO(e);if(n.push(t,!0),n.err)throw n.msg||YO[n.err];return n.result}QO.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?VO.Z_FINISH:VO.Z_NO_FLUSH,"string"==typeof t?s.input=WO.binstring2buf(t):"[object ArrayBuffer]"===qO.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 HO.Buf8(u),s.next_out=0,s.avail_out=u),(n=ZO.inflate(s,VO.Z_NO_FLUSH))===VO.Z_NEED_DICT&&c&&(n=ZO.inflateSetDictionary(this.strm,c)),n===VO.Z_BUF_ERROR&&!0===l&&(n=VO.Z_OK,l=!1),n!==VO.Z_STREAM_END&&n!==VO.Z_OK)return this.onEnd(n),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&n!==VO.Z_STREAM_END&&(0!==s.avail_in||r!==VO.Z_FINISH&&r!==VO.Z_SYNC_FLUSH)||("string"===this.options.to?(i=WO.utf8border(s.output,s.next_out),o=s.next_out-i,a=WO.buf2string(s.output,i),s.next_out=o,s.avail_out=u-o,o&&HO.arraySet(s.output,s.output,i,o,0),this.onData(a)):this.onData(HO.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!==VO.Z_STREAM_END);return n===VO.Z_STREAM_END&&(r=VO.Z_FINISH),r===VO.Z_FINISH?(n=ZO.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===VO.Z_OK):r!==VO.Z_SYNC_FLUSH||(this.onEnd(VO.Z_OK),s.avail_out=0,!0)},QO.prototype.onData=function(t){this.chunks.push(t)},QO.prototype.onEnd=function(t){t===VO.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=HO.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},tO.Inflate=QO,tO.inflate=$O,tO.inflateRaw=function(t,e){return(e=e||{}).raw=!0,$O(t,e)},tO.ungzip=$O;var tT={};(0,zS.assign)(tT,jS,tO,GO);var eT,nT,rT,iT=e(tT),oT=1,aT=function(){function t(e){e_(this,t),G_(this,"lockingPromise",Sv.resolve()),G_(this,"locks",0),G_(this,"name",""),G_(this,"lockId",void 0),this.lockId=oT++,e&&(this.name=e)}return o_(t,[{key:"isLocked",get:function(){return this.locks>0}},{key:"lock",value:function(){var t,e=this;this.locks+=1;var n=new Sv((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}(),sT="__rtc_umd_name__",uT=function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},cT=function(){function t(e){e_(this,t),G_(this,"storeName",void 0),G_(this,"pendingList",[]),this.storeName=e,!rw()&&uT()&&this._checkAndCreateStore(e)}var e,n,r,i,o,a,s;return o_(t,[{key:"_checkAndCreateStore",value:(s=t_(Qv().mark((function e(n,r){var i,o,a=this;return Qv().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._promiseLock.lock();case 2:if(i=e.sent,!uT.databases){e.next=6;break}return e.next=6,new Sv((function(t){var e=function(){return uT.databases().finally(t)};o=setInterval(e,100),e()})).finally((function(){return clearInterval(o)}));case 6:return e.abrupt("return",new Sv((function(e){t.db&&(t.db.close(),delete t.db);var o=r?uT().open(sT,r):uT().open(sT);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{t.db.transaction(a.storeName,"readonly"),a.pendingList.forEach(function(){var t=t_(Qv().mark((function t(e){var n,r,i,o;return Qv().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(s){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=t_(Qv().mark((function e(n){var r,i=this;return Qv().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 Sv((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=t_(Qv().mark((function t(e,n){var r;return Qv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{r=nw(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=t_(Qv().mark((function t(e){var n,r;return Qv().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=t_(Qv().mark((function t(e,n){var r;return Qv().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 Sv((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=t_(Qv().mark((function t(e){var n;return Qv().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 Sv((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=t_(Qv().mark((function t(e){var n;return Qv().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 Sv((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}();G_(cT,"db",void 0),G_(cT,"state","init"),G_(cT,"_promiseLock",new aT("iDB"));var lT={product_line:"rtc",report_version:"5",os:"web",user_agent:rw()?"":null===(eT=navigator)||void 0===eT?void 0:eT.userAgent,platform:"web",product:"webrtc",app_state:"active"},fT="LogReportor",hT="undefined"!=typeof window&&(Qb(nT=window.location.search).call(nT,"_rtc_debug_")||(null===(rT=window.localStorage)||void 0===rT?void 0:rT.getItem("_rtc_debug_"))),dT=function(){function t(e){e_(this,t),G_(this,"_buffer",void 0),this._buffer=new cT(e)}var e,n;return o_(t,[{key:"set",value:(n=t_(Qv().mark((function t(e,n){return Qv().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=t_(Qv().mark((function t(e){var n,r;return Qv().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}(),pT=function(){function t(){var e=this;e_(this,t),G_(this,"reportCommon",lT),G_(this,"reportIds",new hb),G_(this,"dataBuffer",[]),G_(this,"reportorList",[]),G_(this,"dbBuffer",void 0),G_(this,"posting",!1),G_(this,"sucSendTimer",void 0),G_(this,"preSucTime",0),G_(this,"errSendTimer",void 0),G_(this,"errSendDelay",100),G_(this,"_logServerUrl",void 0),G_(this,"_retryCount",0),G_(this,"_reportLimit",5e5),G_(this,"_disableTimeout",!1),rw()||(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"})})),hT&&(window.__rtc_debug_reportor__=this)),Sk.on("UPLOAD_REPORT_LIMIT",(function(t){e.setReportLimit(t)})),Sk.on("ENABLE_REPORT_IDB_BUFFER",(function(t){t&&e.enableIndexedDBBuffer()})),setTimeout((function(){e.reportorList.push(RT)}))}var e;return o_(t,[{key:"setUrl",value:function(t){this._logServerUrl=t}},{key:"setCommonStats",value:function(t){this.reportCommon=uS(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&&(bT("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){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?this.send(t):(this.dataBuffer.push(t),!this.posting&&!this.errSendTimer&&Date.now()-this.preSucTime>2e3&&(clearTimeout(this.sucSendTimer),this.send()))}},{key:"enableIndexedDBBuffer",value:function(){var t=this;this.dbBuffer||(this.dbBuffer=new dT("ReportorDBBuffer"),this.dbBuffer.get(fT).then((function(e){e.forEach((function(e){t.push(e)}))})),this.reportorList.forEach((function(e){var n;null===(n=t.dbBuffer)||void 0===n||n.get(e.name).then((function(t){t.forEach((function(t){e.push(t)}))}))})))}},{key:"backup",value:function(){var t=this;try{var e;null===(e=this.dbBuffer)||void 0===e||e.set(Mw(this.dataBuffer),fT),this.reportorList.forEach((function(e){var n;null===(n=t.dbBuffer)||void 0===n||n.set(Mw(e.get()),e.name)}))}catch(n){bT("Error when save log into IDB",-1,n)}}},{key:"unshift",value:function(t){var e;this.dataBuffer=rg(e=t[0]).call(e,this.dataBuffer),this.reportorList.forEach((function(e,n){var r;e.unshift(null!==(r=t[n+1])&&void 0!==r?r:[])}))}},{key:"_splice",value:function(){var t,e=this,n=function(t,e){for(var n=0,r=0;r<t.length;r++)if((n+=nw(t[r]).length)>e)return r;return t.length}(this.dataBuffer,this._reportLimit);0===n&&this.dataBuffer.length>0&&(this._reportLimit=nw(this.dataBuffer[0]).length+10,n=1,bT("update report limit to ".concat(this._reportLimit),0,null));var r=uk(t=this.dataBuffer).call(t,0,n),i=nw(r).length,o=[r],a=this._reportLimit-i;return this.reportorList.forEach((function(t){var n=uk(t).call(t,a),r=n.payload,i=n.payloadSize;r.forEach((function(t){var n,r,i;void 0===t.report_id&&(t.report_id=e.getReportId(t.engine_session_id),!rw()&&window.__onRTCReport&&(null===(n=(r=window).__onRTCReport)||void 0===n||n.call(r,null!==(i=t.engine_session_id)&&void 0!==i?i:"global",t,e.getCommonStats())))})),o.push(r),a-=i})),o}},{key:"send",value:(e=t_(Qv().mark((function t(e,n){var r,i,o,a,s,u,c,l,f,h;return Qv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.backup(),i=kS(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=hT,s={data:e||MS(o).call(o),header:Vk(Vk({},this.reportCommon),{},{http_retry_count:this._retryCount}),from:"web",os:"web",version:"1"},u={method:"POST",body:a?nw(s):iT.gzip(nw(s))},!this._disableTimeout)try{c=new AbortController,u.signal=c.signal,setTimeout((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():(setTimeout((function(){var t,e,n,r;bT(rg(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(){this.errSendDelay=100,this._retryCount=0,this.preSucTime=Date.now(),this.sucSendTimer=window.setTimeout(this.send.bind(this),2e3)}},{key:"errSend",value:function(){var t=this;this.errSendTimer=window.setTimeout((function(){t.send(),delete t.errSendTimer}),this.errSendDelay),this.errSendDelay*=2,this._retryCount++}}]),t}();var vT,_T=new pT,gT=function(){function t(e){e_(this,t),G_(this,"modifyIds",{}),this.id=e}return o_(t,[{key:"report",value:function(t,e){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Vk(Vk(Vk({event_key:t,rtc_timestamp:Date.now()},this.modifyIds),e),{},{common_extra_info:nw(i),report_id:_T.getReportId(this.modifyIds.engine_session_id)});!rw()&&window.__onRTCReport&&(null===(n=(r=window).__onRTCReport)||void 0===n||n.call(r,this.modifyIds.engine_session_id,o,_T.getCommonStats()));_T.push(o)}},{key:"reportLog",value:function(t){var e=Vk(Vk({event_key:"rtc_invoke_status",sdk_api_name:"console_log",rtc_timestamp:Date.now()},this.modifyIds),{},{message:t});RT.push(e)}},{key:"set",value:function(t){this.modifyIds=uS(this.modifyIds,t)}},{key:"destroy",value:function(){}}]),t}();setTimeout((function(){vT=new PT("MessageReportor",1)}),0);var yT=function(){function t(e){e_(this,t),G_(this,"_preTime",Date.now()),G_(this,"_one2oneNum",0),G_(this,"_one2manyNum",0),G_(this,"_one2oneMsgCache",new hb),G_(this,"_one2manyMsgCache",new hb),G_(this,"roomId",""),G_(this,"userId",""),G_(this,"rtsSessionId",""),this.id=e}return o_(t,[{key:"needReport",value:function(e){return!!t.config&&(Date.now()-this._preTime>=36e5&&(this._preTime=Date.now(),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,Vk({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,Vk(Vk({},n),e))}},{key:"cacheCustomMsg",value:function(e){var n;this._one2manyMsgCache.set(e.msg_id,Vk({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,Vk(Vk({},n),e))}},{key:"reportP2PMsg",value:function(t){var e,n=this._one2oneMsgCache.get(t);n&&(vT.info("reportP2PMsg",n.type,nw(n)),null===(e=ST(this.id))||void 0===e||e.report("rts_message",n))}},{key:"reportOne2ManyMsg",value:function(t){var e,n=this._one2manyMsgCache.get(t);n&&(vT.info("reportOne2ManyMsg",n.type,nw(n)),null===(e=ST(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)||"",vT.info("reportMsgRecv",e.type,nw(e)),null===(r=ST(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=Date.now(),this.roomId="",this.userId="",this.rtsSessionId=""}}]),t}();G_(yT,"config",void 0);var mT=new gT("global"),bT=function(t,e,n){mT.report("rtc_error",{message:t,error_code:e},n)};var wT,kT=new hb,ST=function(t){return kT.get(t)},ET="undefined"!=typeof window&&Qb(wT=window.location.search).call(wT,"_rtc_upload_console_");function xT(t,e){return _w(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 iw(t);if(t instanceof MediaStream)return null==(r=t)?"undefined | null":"string"==typeof r?r:nw({id:r.id,active:r.active});if(t instanceof RTCRtpSender)return ow(t);if(t instanceof RTCRtpReceiver)return aw(t);if(t instanceof RTCRtpTransceiver)return null==(n=t)?"undefined | null":"string"==typeof n?n:nw({currentDirection:n.currentDirection,direction:n.direction,mid:n.mid,stopped:n.stopped,receiver:aw(n.receiver),sender:ow(n.sender)});i=nw(t)}catch(o){i=t.toString()}return i&&i.length>=e&&(i=qv(i).call(i,0,e)),i})).join(", ")}var OT,TT,AT,RT=new(function(){function t(){var e=this;e_(this,t),G_(this,"name","ConsoleReportor"),G_(this,"_uuid","".concat(Math.floor(899*Math.random())+100)),G_(this,"_consoleReportId",0),G_(this,"_engineReportIdMap",new hb),G_(this,"_enabled","NULL"),G_(this,"_consoleCutLength",Sk.getParameter("UPLOAD_CONSOLE_LENGTH_CUT")),G_(this,"buffer",[]),ET&&setTimeout((function(){e.switchOn()}),0),Sk.on("UPLOAD_CONSOLE_ON",(function(t){t?e.switchOn():e.turnOff()})),Sk.on("UPLOAD_CONSOLE_LENGTH_CUT",(function(t){e._consoleCutLength=t}))}return o_(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=ST(e),S=this._consoleReportId++,E=this.getEngineConsoleId(e),x=xT(u,this._consoleCutLength),O=Mw(u),T="".concat(s).replace(/%o|%s/gi,(function(){return xT([O.shift()],b._consoleCutLength)})),A=rg(c=rg(l=rg(f=rg(h=rg(d=rg(p=rg(v=rg(_=rg(g=rg(y=rg(m="[".concat(this._uuid,"-")).call(m,S,"][")).call(y,e,"-")).call(g,E,"]-")).call(_,n,"-")).call(v,t,"[")).call(p,r,"]")).call(d,i,"[")).call(h,o,".")).call(f,a,"] ")).call(l,T," ")).call(c,x);k?k.reportLog(A):(w=A,mT.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=nw(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:uk(e=this.buffer).call(e,0,r),payloadSize:i}}},{key:"unshift",value:function(t){this.buffer=rg(t).call(t,this.buffer)}},{key:"get",value:function(){return this.buffer}},{key:"isEmpty",value:function(){return"OFF"===this._enabled||0===this.buffer.length}}]),t}()),IT="[VERTC]",CT="#0050b3",LT=(G_(OT={},"DEBUG","rgba(0, 0, 0, 0)"),G_(OT," INFO","rgba(93, 173, 226, 0)"),G_(OT," WARN","rgba(255, 119, 0, 0.3)"),G_(OT,"ERROR","rgba(255, 0, 0, 0.3)"),G_(OT," SUCC","rgba(0, 119, 0, 0.3)"),OT),NT="undefined"!=typeof window&&(Qb(TT=window.location.search).call(TT,"_rtc_debug_")||(null===(AT=window.localStorage)||void 0===AT?void 0:AT.getItem("_rtc_debug_"))),BT=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"global";e_(this,t),G_(this,"indent",void 0),G_(this,"module",void 0),G_(this,"_engineId",void 0),this.module=e,this.indent=n,this._engineId=r}return o_(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=rg(p=[]).call(p,f),m="".concat(d).replace(/%o/gi,(function(){var t=y.shift();return nw(t)}));lw.set(rg(v=rg(_=rg(g="".concat(IT,"[").concat(this.module,".")).call(g,e,"] ")).call(_,m," ")).call(v,_w(y).call(y,(function(t){return nw(t)})).join(", ")))}catch(WT){}for(var b="",w=0;w<this.indent;w++)b+=" ";var k=DT();RT.report(IT,this._engineId,k,t,b,this.module,e,d,f),NT&&(n=console).log.apply(n,rg(r=[rg(i=rg(o=rg(a=rg(s=rg(u=rg(c="%c".concat(k,"-")).call(c,IT,"%c[")).call(u,t,"]%c")).call(s,b,"[")).call(a,this.module,".")).call(o,e,"] ")).call(i,d),"color:".concat(CT,";"),"background-color:".concat(LT[t],";"),"color:".concat(CT,";")]).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,rg(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,rg(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,rg(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,rg(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,rg(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,rg(e=[" SUCC",t]).call(e,r))}}]),t}(),DT=function(){var t,e,n=new Date;return rg(t="".concat(n.toTimeString().split(" ")[0],":")).call(t,Pw(e=n.getMilliseconds().toString()).call(e,3,"0"))},PT=BT,MT=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}(MT||{}),zT=function(t){return t.BACKGROUND_BLUR="blur",t.BACKGROUND_IMAGE="image",t}(zT||{}),jT=function(t){return t[t.PERFORMANCE=0]="PERFORMANCE",t[t.QUALITY=1]="QUALITY",t}(jT||{}),FT=function(t){return t[t.CPU=-1]="CPU",t[t.GPU=1]="GPU",t}(FT||{}),UT=new PT("RTCBeautyExtension",1),KT="https://webar.volccdn.com/obj/effect-webar-res-bucket/ies/web/webar_sdk/sdk/v2.662/202303229b38/resource/resource",GT="".concat(KT,"/externals/webar.main.sdk.iife.9b380e37.js");var ZT=function(t){x_(h,t);var e,n,r,i,o,a,s,u,c,l,f=K_(h);function h(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e_(this,h),G_(a_(e=f.call(this)),"name","RTCBeautyExtension"),G_(a_(e),"_enable",void 0),G_(a_(e),"_beautyExt",void 0),G_(a_(e),"_backgroundExt",void 0),G_(a_(e),"_enableBeauty",!1),G_(a_(e),"_enableBackground",!1),G_(a_(e),"_fps",15),G_(a_(e),"_backgroundBackend",FT.CPU),G_(a_(e),"_backgroundAIModelType",jT.QUALITY),G_(a_(e),"_backgroundMode",zT.BACKGROUND_BLUR),G_(a_(e),"_beautyDefaultValue",{sharpenIntensity:.5,whitenIntensity:.5,smoothIntensity:.5}),G_(a_(e),"_preTrack",null),h._sdkUrl=n.sdkUrl||GT,h._sdkSourceUrl=n.sdkSourceUrl||KT,h._sdkAuthServer=n.sdkAuthServer||"",h._sdkHash=n.sdkHash||"",h._authFileUrl=n.authFileUrl||"",n.aiBackend===FT.GPU)&&("undefined"!=typeof WebGL2RenderingContext&&("undefined"!=typeof OffscreenCanvas?new OffscreenCanvas(16,16).getContext("webgl2")&&(e._backgroundBackend=FT.GPU):e._backgroundBackend=FT.GPU));return e._backgroundAIModelType=null!==(t=n.aiModelType)&&void 0!==t?t:jT.QUALITY,e.on("stop",(function(){var t;e._preTrack&&(null===(t=h._sdk)||void 0===t||t.stopFrame(),e._preTrack=null)})),e}return o_(h,[{key:"initWebArSDK",value:(l=t_(Qv().mark((function t(){return Qv().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=t_(Qv().mark((function t(e){var n,r,i,o,a,s,u,c,l,f,d,p,v,_=this;return Qv().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 u=null==e?void 0:e.videoCaptureConfig,this._fps=u?"number"==typeof(null==u?void 0:u.frameRate)?(null==u?void 0:u.frameRate)||15:(null==u||null===(n=u.frameRate)||void 0===n?void 0:n.ideal)||15:15,UT.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:UT.info("init",[this._backgroundBackend,this._backgroundAIModelType]),this._beautyExt||(this._beautyExt=null===(c=h._sdk)||void 0===c?void 0:c.extensions.get(window.WebARMainSDK.API.APIExtensionNameEnum.BEAUTY_FILETER)),this._backgroundExt||(this._backgroundExt=null===(l=h._sdk)||void 0===l?void 0:l.extensions.get(window.WebARMainSDK.API.APIExtensionNameEnum.VIRTUAL_BACKGROUND)),W_(this._beautyDefaultValue).forEach((function(t){_._beautyExt&&(_._beautyExt[t]=_._beautyDefaultValue[t])})),(f=null===(a=h._sdk.video)||void 0===a||null===(s=a._video)||void 0===s?void 0:s._video)&&(f.style.position="fixed",f.style.top="0",f.style.left="0",f.style.opacity="0",f.style.pointerEvents="none"),"safari"===(g=void 0,g="none",null!==window.navigator.userAgent.match("Firefox")?g="mozilla":null!==window.navigator.userAgent.match("Chrome")?(g="chrome-stable",null!==window.navigator.userAgent.match("Electron")&&(g="electron")):(null!==window.navigator.userAgent.match("Safari")||null!==window.navigator.userAgent.match("AppleWebKit"))&&(g="safari"),g)&&(p=null===(d=h._sdk)||void 0===d?void 0:d.canvas)&&(p.style.width="1px",p.style.height="1px",p.style.position="fixed",p.style.top="0",p.style.left="0",p.style.opacity="0",p.style.pointerEvents="none",p.style.zIndex="-9999",document.body.appendChild(p)),v=window.WebARMainSDK.documentManager._activeDocTemplate._pipeline._onPreFrame.bind(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&&v()};case 20:case"end":return t.stop()}var g}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"checkCompatibility",value:(u=t_(Qv().mark((function t(){var e,n,r;return Qv().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!==Q_(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=t_(Qv().mark((function t(e,n){var r,i,o,a,s,u,c,l,f;return Qv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n||e.getTrack(),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!==pb.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=t_(Qv().mark((function t(){var e,n,r,i=this;return Qv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._rtcSdkApiCall("".concat(this.name,".enableBeauty"),0,""),e=!this._enableBeauty&&!this._enableBackground,this._enableBeauty=!0,W_(this._beautyDefaultValue).forEach((function(t){i._beautyExt&&(i._beautyExt[t]=i._beautyDefaultValue[t])})),this._preTrack&&!e){t.next=8;break}return t.abrupt("return",new Sv((function(t,e){i.emit("reset-video-effect",t,e)})));case 8:null===(n=h._sdk)||void 0===n||n.startFrame(),null===(r=this._beautyExt)||void 0===r||r.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=t_(Qv().mark((function t(){var e,n,r=this;return Qv().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 Sv((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=t_(Qv().mark((function t(){var e,n,r,i,o=this;return Qv().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 Sv((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=t_(Qv().mark((function t(){var e,n,r=this;return Qv().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 Sv((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 MT.EFFECT_SHARPEN_MODE:this._beautyDefaultValue.sharpenIntensity=e,this._beautyExt&&(this._beautyExt.sharpenIntensity=e);break;case MT.EFFECT_WHITE_MODE:this._beautyDefaultValue.whitenIntensity=e,this._beautyExt&&(this._beautyExt.whitenIntensity=e);break;case MT.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):Sv.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!==pb.STREAM_INDEX_SCREEN&&"number"==typeof r&&"number"==typeof i&&(null===(n=h._sdk)||void 0===n||n.setCanvasSize(r,i))}},{key:"isSupported",value:(n=t_(Qv().mark((function t(){var e,n;return Qv().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!==Q_(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=t_(Qv().mark((function t(){var e,n,r;return Qv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=null,n=!1,h._loadingProcess||(h._loadingProcess=new Sv((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(WT){e&&document.body.removeChild(e),h._loadingProcess=void 0,clearTimeout(r),i(WT)}r=setTimeout((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}(vb);G_(ZT,"_loadingProcess",void 0),G_(ZT,"_sdk",void 0),G_(ZT,"_sdkUrl",void 0),G_(ZT,"_sdkSourceUrl",void 0),G_(ZT,"_sdkHash",""),G_(ZT,"_sdkAuthServer",""),G_(ZT,"_authFileUrl","");var HT=window.BytePlusRTCExtensions||{};HT.RTCBeautyExtension=ZT,HT.EffectBeautyMode=MT,window.BytePlusRTCExtensions=HT}));
|