UNPKG

agora-rtc-sdk-ng

Version:
5 lines (4 loc) 1.25 MB
/** * AgoraWebSDK_N-v4.24.0-0-gf2267710-dirty Copyright AgoraInc. */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).AgoraRTC=t()}(this,(function(){"use strict";function e(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(i){if("default"!==i&&!(i in e)){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})}}))})),Object.freeze(e)}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n=function(e){try{return!!e()}catch(e){return!0}},r=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),o=r,s=Function.prototype,a=s.call,c=o&&s.bind.bind(a,a),d=o?c:function(e){return function(){return a.apply(e,arguments)}},l=d({}.isPrototypeOf),u=function(e){return e&&e.Math===Math&&e},h=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof t&&t)||u("object"==typeof t&&t)||function(){return this}()||Function("return this")(),p=r,_=Function.prototype,E=_.apply,m=_.call,f="object"==typeof Reflect&&Reflect.apply||(p?m.bind(E):function(){return m.apply(E,arguments)}),S=d,g=S({}.toString),T=S("".slice),R=function(e){return T(g(e),8,-1)},v=R,C=d,y=function(e){if("Function"===v(e))return C(e)},I="object"==typeof document&&document.all,b=void 0===I&&void 0!==I?function(e){return"function"==typeof e||e===I}:function(e){return"function"==typeof e},A={},w=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),O=r,N=Function.prototype.call,D=O?N.bind(N):function(){return N.apply(N,arguments)},P={},L={}.propertyIsEnumerable,k=Object.getOwnPropertyDescriptor,M=k&&!L.call({1:2},1);P.f=M?function(e){var t=k(this,e);return!!t&&t.enumerable}:L;var U,V,x=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},F=n,B=R,j=Object,G=d("".split),W=F((function(){return!j("z").propertyIsEnumerable(0)}))?function(e){return"String"===B(e)?G(e,""):j(e)}:j,H=function(e){return null==e},K=H,Y=TypeError,z=function(e){if(K(e))throw new Y("Can't call method on "+e);return e},q=W,X=z,J=function(e){return q(X(e))},Z=b,Q=function(e){return"object"==typeof e?null!==e:Z(e)},$={},ee=$,te=h,ie=b,ne=function(e){return ie(e)?e:void 0},re=function(e,t){return arguments.length<2?ne(ee[e])||ne(te[e]):ee[e]&&ee[e][t]||te[e]&&te[e][t]},oe=h.navigator,se=oe&&oe.userAgent,ae=se?String(se):"",ce=h,de=ae,le=ce.process,ue=ce.Deno,he=le&&le.versions||ue&&ue.version,pe=he&&he.v8;pe&&(V=(U=pe.split("."))[0]>0&&U[0]<4?1:+(U[0]+U[1])),!V&&de&&(!(U=de.match(/Edge\/(\d+)/))||U[1]>=74)&&(U=de.match(/Chrome\/(\d+)/))&&(V=+U[1]);var _e=V,Ee=_e,me=n,fe=h.String,Se=!!Object.getOwnPropertySymbols&&!me((function(){var e=Symbol("symbol detection");return!fe(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ee&&Ee<41})),ge=Se&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Te=re,Re=b,ve=l,Ce=Object,ye=ge?function(e){return"symbol"==typeof e}:function(e){var t=Te("Symbol");return Re(t)&&ve(t.prototype,Ce(e))},Ie=String,be=function(e){try{return Ie(e)}catch(e){return"Object"}},Ae=b,we=be,Oe=TypeError,Ne=function(e){if(Ae(e))return e;throw new Oe(we(e)+" is not a function")},De=Ne,Pe=H,Le=function(e,t){var i=e[t];return Pe(i)?void 0:De(i)},ke=D,Me=b,Ue=Q,Ve=TypeError,xe={exports:{}},Fe=h,Be=Object.defineProperty,je=h,Ge=function(e,t){try{Be(Fe,e,{value:t,configurable:!0,writable:!0})}catch(i){Fe[e]=t}return t},We="__core-js_shared__",He=xe.exports=je[We]||Ge(We,{});(He.versions||(He.versions=[])).push({version:"3.42.0",mode:"pure",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ke=xe.exports,Ye=Ke,ze=function(e,t){return Ye[e]||(Ye[e]=t||{})},qe=z,Xe=Object,Je=function(e){return Xe(qe(e))},Ze=Je,Qe=d({}.hasOwnProperty),$e=Object.hasOwn||function(e,t){return Qe(Ze(e),t)},et=d,tt=0,it=Math.random(),nt=et(1..toString),rt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+nt(++tt+it,36)},ot=ze,st=$e,at=rt,ct=Se,dt=ge,lt=h.Symbol,ut=ot("wks"),ht=dt?lt.for||lt:lt&&lt.withoutSetter||at,pt=function(e){return st(ut,e)||(ut[e]=ct&&st(lt,e)?lt[e]:ht("Symbol."+e)),ut[e]},_t=D,Et=Q,mt=ye,ft=Le,St=function(e,t){var i,n;if("string"===t&&Me(i=e.toString)&&!Ue(n=ke(i,e)))return n;if(Me(i=e.valueOf)&&!Ue(n=ke(i,e)))return n;if("string"!==t&&Me(i=e.toString)&&!Ue(n=ke(i,e)))return n;throw new Ve("Can't convert object to primitive value")},gt=TypeError,Tt=pt("toPrimitive"),Rt=function(e,t){if(!Et(e)||mt(e))return e;var i,n=ft(e,Tt);if(n){if(void 0===t&&(t="default"),i=_t(n,e,t),!Et(i)||mt(i))return i;throw new gt("Can't convert object to primitive value")}return void 0===t&&(t="number"),St(e,t)},vt=ye,Ct=function(e){var t=Rt(e,"string");return vt(t)?t:t+""},yt=Q,It=h.document,bt=yt(It)&&yt(It.createElement),At=function(e){return bt?It.createElement(e):{}},wt=At,Ot=!w&&!n((function(){return 7!==Object.defineProperty(wt("div"),"a",{get:function(){return 7}}).a})),Nt=w,Dt=D,Pt=P,Lt=x,kt=J,Mt=Ct,Ut=$e,Vt=Ot,xt=Object.getOwnPropertyDescriptor;A.f=Nt?xt:function(e,t){if(e=kt(e),t=Mt(t),Vt)try{return xt(e,t)}catch(e){}if(Ut(e,t))return Lt(!Dt(Pt.f,e,t),e[t])};var Ft=n,Bt=b,jt=/#|\.prototype\./,Gt=function(e,t){var i=Ht[Wt(e)];return i===Yt||i!==Kt&&(Bt(t)?Ft(t):!!t)},Wt=Gt.normalize=function(e){return String(e).replace(jt,".").toLowerCase()},Ht=Gt.data={},Kt=Gt.NATIVE="N",Yt=Gt.POLYFILL="P",zt=Gt,qt=Ne,Xt=r,Jt=y(y.bind),Zt=function(e,t){return qt(e),void 0===t?e:Xt?Jt(e,t):function(){return e.apply(t,arguments)}},Qt={},$t=w&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ei=Q,ti=String,ii=TypeError,ni=function(e){if(ei(e))return e;throw new ii(ti(e)+" is not an object")},ri=w,oi=Ot,si=$t,ai=ni,ci=Ct,di=TypeError,li=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,hi="enumerable",pi="configurable",_i="writable";Qt.f=ri?si?function(e,t,i){if(ai(e),t=ci(t),ai(i),"function"==typeof e&&"prototype"===t&&"value"in i&&_i in i&&!i[_i]){var n=ui(e,t);n&&n[_i]&&(e[t]=i.value,i={configurable:pi in i?i[pi]:n[pi],enumerable:hi in i?i[hi]:n[hi],writable:!1})}return li(e,t,i)}:li:function(e,t,i){if(ai(e),t=ci(t),ai(i),oi)try{return li(e,t,i)}catch(e){}if("get"in i||"set"in i)throw new di("Accessors not supported");return"value"in i&&(e[t]=i.value),e};var Ei=Qt,mi=x,fi=w?function(e,t,i){return Ei.f(e,t,mi(1,i))}:function(e,t,i){return e[t]=i,e},Si=h,gi=f,Ti=y,Ri=b,vi=A.f,Ci=zt,yi=$,Ii=Zt,bi=fi,Ai=$e,wi=function(e){var t=function(i,n,r){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(i);case 2:return new e(i,n)}return new e(i,n,r)}return gi(e,this,arguments)};return t.prototype=e.prototype,t},Oi=function(e,t){var i,n,r,o,s,a,c,d,l,u=e.target,h=e.global,p=e.stat,_=e.proto,E=h?Si:p?Si[u]:Si[u]&&Si[u].prototype,m=h?yi:yi[u]||bi(yi,u,{})[u],f=m.prototype;for(o in t)n=!(i=Ci(h?o:u+(p?".":"#")+o,e.forced))&&E&&Ai(E,o),a=m[o],n&&(c=e.dontCallGetSet?(l=vi(E,o))&&l.value:E[o]),s=n&&c?c:t[o],(i||_||typeof a!=typeof s)&&(d=e.bind&&n?Ii(s,Si):e.wrap&&n?wi(s):_&&Ri(s)?Ti(s):s,(e.sham||s&&s.sham||a&&a.sham)&&bi(d,"sham",!0),bi(m,o,d),_&&(Ai(yi,r=u+"Prototype")||bi(yi,r,{}),bi(yi[r],o,s),e.real&&f&&(i||!f[o])&&bi(f,o,s)))},Ni=Math.ceil,Di=Math.floor,Pi=Math.trunc||function(e){var t=+e;return(t>0?Di:Ni)(t)},Li=Pi,ki=function(e){var t=+e;return t!=t||0===t?0:Li(t)},Mi=ki,Ui=Math.max,Vi=Math.min,xi=function(e,t){var i=Mi(e);return i<0?Ui(i+t,0):Vi(i,t)},Fi=ki,Bi=Math.min,ji=function(e){var t=Fi(e);return t>0?Bi(t,9007199254740991):0},Gi=ji,Wi=function(e){return Gi(e.length)},Hi=J,Ki=xi,Yi=Wi,zi=function(e){return function(t,i,n){var r=Hi(t),o=Yi(r);if(0===o)return!e&&-1;var s,a=Ki(n,o);if(e&&i!=i){for(;o>a;)if((s=r[a++])!=s)return!0}else for(;o>a;a++)if((e||a in r)&&r[a]===i)return e||a||0;return!e&&-1}},qi={includes:zi(!0),indexOf:zi(!1)},Xi=qi.includes;Oi({target:"Array",proto:!0,forced:n((function(){return!Array(1).includes()}))},{includes:function(e){return Xi(this,e,arguments.length>1?arguments[1]:void 0)}});var Ji=h,Zi=$,Qi=function(e,t){var i=Zi[e+"Prototype"],n=i&&i[t];if(n)return n;var r=Ji[e],o=r&&r.prototype;return o&&o[t]},$i=Qi("Array","includes"),en=Q,tn=R,nn=pt("match"),rn=function(e){var t;return en(e)&&(void 0!==(t=e[nn])?!!t:"RegExp"===tn(e))},on=rn,sn=TypeError,an={};an[pt("toStringTag")]="z";var cn="[object z]"===String(an),dn=cn,ln=b,un=R,hn=pt("toStringTag"),pn=Object,_n="Arguments"===un(function(){return arguments}()),En=dn?un:function(e){var t,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(e,t){try{return e[t]}catch(e){}}(t=pn(e),hn))?i:_n?un(t):"Object"===(n=un(t))&&ln(t.callee)?"Arguments":n},mn=En,fn=String,Sn=function(e){if("Symbol"===mn(e))throw new TypeError("Cannot convert a Symbol value to a string");return fn(e)},gn=pt("match"),Tn=Oi,Rn=function(e){if(on(e))throw new sn("The method doesn't accept regular expressions");return e},vn=z,Cn=Sn,yn=function(e){var t=/./;try{"/./"[e](t)}catch(i){try{return t[gn]=!1,"/./"[e](t)}catch(e){}}return!1},In=d("".indexOf);Tn({target:"String",proto:!0,forced:!yn("includes")},{includes:function(e){return!!~In(Cn(vn(this)),Cn(Rn(e)),arguments.length>1?arguments[1]:void 0)}});var bn=Qi("String","includes"),An=l,wn=$i,On=bn,Nn=Array.prototype,Dn=String.prototype,Pn=function(e){var t=e.includes;return e===Nn||An(Nn,e)&&t===Nn.includes?wn:"string"==typeof e||e===Dn||An(Dn,e)&&t===Dn.includes?On:t},Ln=i(Pn),kn=Ne,Mn=Je,Un=W,Vn=Wi,xn=TypeError,Fn="Reduce of empty array with no initial value",Bn=function(e){return function(t,i,n,r){var o=Mn(t),s=Un(o),a=Vn(o);if(kn(i),0===a&&n<2)throw new xn(Fn);var c=e?a-1:0,d=e?-1:1;if(n<2)for(;;){if(c in s){r=s[c],c+=d;break}if(c+=d,e?c<0:a<=c)throw new xn(Fn)}for(;e?c>=0:a>c;c+=d)c in s&&(r=i(r,s[c],c,o));return r}},jn={left:Bn(!1),right:Bn(!0)},Gn=n,Wn=function(e,t){var i=[][e];return!!i&&Gn((function(){i.call(null,t||function(){return 1},1)}))},Hn=h,Kn=ae,Yn=R,zn=function(e){return Kn.slice(0,e.length)===e},qn=zn("Bun/")?"BUN":zn("Cloudflare-Workers")?"CLOUDFLARE":zn("Deno/")?"DENO":zn("Node.js/")?"NODE":Hn.Bun&&"string"==typeof Bun.version?"BUN":Hn.Deno&&"object"==typeof Deno.version?"DENO":"process"===Yn(Hn.process)?"NODE":Hn.window&&Hn.document?"BROWSER":"REST",Xn="NODE"===qn,Jn=jn.left;Oi({target:"Array",proto:!0,forced:!Xn&&_e>79&&_e<83||!Wn("reduce")},{reduce:function(e){var t=arguments.length;return Jn(this,e,t,t>1?arguments[1]:void 0)}});var Zn=Qi("Array","reduce"),Qn=l,$n=Zn,er=Array.prototype,tr=function(e){var t=e.reduce;return e===er||Qn(er,e)&&t===er.reduce?$n:t},ir=tr,nr=i(ir),rr=R,or=Array.isArray||function(e){return"Array"===rr(e)},sr=Oi,ar=or,cr=d([].reverse),dr=[1,2];sr({target:"Array",proto:!0,forced:String(dr)===String(dr.reverse())},{reverse:function(){return ar(this)&&(this.length=this.length),cr(this)}});var lr=Qi("Array","reverse"),ur=l,hr=lr,pr=Array.prototype,_r=function(e){var t=e.reverse;return e===pr||ur(pr,e)&&t===pr.reverse?hr:t},Er=_r,mr=i(Er),fr=rt,Sr=ze("keys"),gr=function(e){return Sr[e]||(Sr[e]=fr(e))},Tr=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Rr=$e,vr=b,Cr=Je,yr=Tr,Ir=gr("IE_PROTO"),br=Object,Ar=br.prototype,wr=yr?br.getPrototypeOf:function(e){var t=Cr(e);if(Rr(t,Ir))return t[Ir];var i=t.constructor;return vr(i)&&t instanceof i?i.prototype:t instanceof br?Ar:null},Or=d,Nr=Ne,Dr=Q,Pr=function(e){return Dr(e)||null===e},Lr=String,kr=TypeError,Mr=function(e,t,i){try{return Or(Nr(Object.getOwnPropertyDescriptor(e,t)[i]))}catch(e){}},Ur=Q,Vr=z,xr=function(e){if(Pr(e))return e;throw new kr("Can't set "+Lr(e)+" as a prototype")},Fr=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,i={};try{(e=Mr(Object.prototype,"__proto__","set"))(i,[]),t=i instanceof Array}catch(e){}return function(i,n){return Vr(i),xr(n),Ur(i)?(t?e(i,n):i.__proto__=n,i):i}}():void 0),Br={},jr={},Gr=$e,Wr=J,Hr=qi.indexOf,Kr=jr,Yr=d([].push),zr=function(e,t){var i,n=Wr(e),r=0,o=[];for(i in n)!Gr(Kr,i)&&Gr(n,i)&&Yr(o,i);for(;t.length>r;)Gr(n,i=t[r++])&&(~Hr(o,i)||Yr(o,i));return o},qr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xr=zr,Jr=qr.concat("length","prototype");Br.f=Object.getOwnPropertyNames||function(e){return Xr(e,Jr)};var Zr={};Zr.f=Object.getOwnPropertySymbols;var Qr=re,$r=Br,eo=Zr,to=ni,io=d([].concat),no=Qr("Reflect","ownKeys")||function(e){var t=$r.f(to(e)),i=eo.f;return i?io(t,i(e)):t},ro=$e,oo=no,so=A,ao=Qt,co={},lo=zr,uo=qr,ho=Object.keys||function(e){return lo(e,uo)},po=w,_o=$t,Eo=Qt,mo=ni,fo=J,So=ho;co.f=po&&!_o?Object.defineProperties:function(e,t){mo(e);for(var i,n=fo(t),r=So(t),o=r.length,s=0;o>s;)Eo.f(e,i=r[s++],n[i]);return e};var go,To=re("document","documentElement"),Ro=ni,vo=co,Co=qr,yo=jr,Io=To,bo=At,Ao="prototype",wo="script",Oo=gr("IE_PROTO"),No=function(){},Do=function(e){return"<"+wo+">"+e+"</"+wo+">"},Po=function(e){e.write(Do("")),e.close();var t=e.parentWindow.Object;return e=null,t},Lo=function(){try{go=new ActiveXObject("htmlfile")}catch(e){}var e,t,i;Lo="undefined"!=typeof document?document.domain&&go?Po(go):(t=bo("iframe"),i="java"+wo+":",t.style.display="none",Io.appendChild(t),t.src=String(i),(e=t.contentWindow.document).open(),e.write(Do("document.F=Object")),e.close(),e.F):Po(go);for(var n=Co.length;n--;)delete Lo[Ao][Co[n]];return Lo()};yo[Oo]=!0;var ko=Object.create||function(e,t){var i;return null!==e?(No[Ao]=Ro(e),i=new No,No[Ao]=null,i[Oo]=e):i=Lo(),void 0===t?i:vo.f(i,t)},Mo=Q,Uo=fi,Vo=Error,xo=d("".replace),Fo=String(new Vo("zxcasd").stack),Bo=/\n\s*at [^:]*:[^\n]*/,jo=Bo.test(Fo),Go=x,Wo=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Go(1,7)),7!==e.stack)})),Ho=fi,Ko=function(e,t){if(jo&&"string"==typeof e&&!Vo.prepareStackTrace)for(;t--;)e=xo(e,Bo,"");return e},Yo=Wo,zo=Error.captureStackTrace,qo={},Xo=qo,Jo=pt("iterator"),Zo=Array.prototype,Qo=function(e){return void 0!==e&&(Xo.Array===e||Zo[Jo]===e)},$o=En,es=Le,ts=H,is=qo,ns=pt("iterator"),rs=function(e){if(!ts(e))return es(e,ns)||es(e,"@@iterator")||is[$o(e)]},os=D,ss=Ne,as=ni,cs=be,ds=rs,ls=TypeError,us=function(e,t){var i=arguments.length<2?ds(e):t;if(ss(i))return as(os(i,e));throw new ls(cs(e)+" is not iterable")},hs=D,ps=ni,_s=Le,Es=function(e,t,i){var n,r;ps(e);try{if(!(n=_s(e,"return"))){if("throw"===t)throw i;return i}n=hs(n,e)}catch(e){r=!0,n=e}if("throw"===t)throw i;if(r)throw n;return ps(n),i},ms=Zt,fs=D,Ss=ni,gs=be,Ts=Qo,Rs=Wi,vs=l,Cs=us,ys=rs,Is=Es,bs=TypeError,As=function(e,t){this.stopped=e,this.result=t},ws=As.prototype,Os=function(e,t,i){var n,r,o,s,a,c,d,l=i&&i.that,u=!(!i||!i.AS_ENTRIES),h=!(!i||!i.IS_RECORD),p=!(!i||!i.IS_ITERATOR),_=!(!i||!i.INTERRUPTED),E=ms(t,l),m=function(e){return n&&Is(n,"normal",e),new As(!0,e)},f=function(e){return u?(Ss(e),_?E(e[0],e[1],m):E(e[0],e[1])):_?E(e,m):E(e)};if(h)n=e.iterator;else if(p)n=e;else{if(!(r=ys(e)))throw new bs(gs(e)+" is not iterable");if(Ts(r)){for(o=0,s=Rs(e);s>o;o++)if((a=f(e[o]))&&vs(ws,a))return a;return new As(!1)}n=Cs(e,r)}for(c=h?e.next:n.next;!(d=fs(c,n)).done;){try{a=f(d.value)}catch(e){Is(n,"throw",e)}if("object"==typeof a&&a&&vs(ws,a))return a}return new As(!1)},Ns=Sn,Ds=Oi,Ps=l,Ls=wr,ks=Fr,Ms=function(e,t,i){for(var n=oo(t),r=ao.f,o=so.f,s=0;s<n.length;s++){var a=n[s];ro(e,a)||i&&ro(i,a)||r(e,a,o(t,a))}},Us=ko,Vs=fi,xs=x,Fs=function(e,t){Mo(t)&&"cause"in t&&Uo(e,"cause",t.cause)},Bs=function(e,t,i,n){Yo&&(zo?zo(e,t):Ho(e,"stack",Ko(i,n)))},js=Os,Gs=function(e,t){return void 0===e?arguments.length<2?"":t:Ns(e)},Ws=pt("toStringTag"),Hs=Error,Ks=[].push,Ys=function(e,t){var i,n=Ps(zs,this);ks?i=ks(new Hs,n?Ls(this):zs):(i=n?this:Us(zs),Vs(i,Ws,"Error")),void 0!==t&&Vs(i,"message",Gs(t)),Bs(i,Ys,i.stack,1),arguments.length>2&&Fs(i,arguments[2]);var r=[];return js(e,Ks,{that:r}),Vs(i,"errors",r),i};ks?ks(Ys,Hs):Ms(Ys,Hs,{name:!0});var zs=Ys.prototype=Us(Hs.prototype,{constructor:xs(1,Ys),message:xs(1,""),name:xs(1,"AggregateError")});Ds({global:!0,constructor:!0,arity:2},{AggregateError:Ys});var qs,Xs,Js,Zs=b,Qs=h.WeakMap,$s=Zs(Qs)&&/native code/.test(String(Qs)),ea=h,ta=Q,ia=fi,na=$e,ra=Ke,oa=gr,sa=jr,aa="Object already initialized",ca=ea.TypeError,da=ea.WeakMap;if($s||ra.state){var la=ra.state||(ra.state=new da);la.get=la.get,la.has=la.has,la.set=la.set,qs=function(e,t){if(la.has(e))throw new ca(aa);return t.facade=e,la.set(e,t),t},Xs=function(e){return la.get(e)||{}},Js=function(e){return la.has(e)}}else{var ua=oa("state");sa[ua]=!0,qs=function(e,t){if(na(e,ua))throw new ca(aa);return t.facade=e,ia(e,ua,t),t},Xs=function(e){return na(e,ua)?e[ua]:{}},Js=function(e){return na(e,ua)}}var ha,pa,_a,Ea={set:qs,get:Xs,has:Js,enforce:function(e){return Js(e)?Xs(e):qs(e,{})},getterFor:function(e){return function(t){var i;if(!ta(t)||(i=Xs(t)).type!==e)throw new ca("Incompatible receiver, "+e+" required");return i}}},ma=w,fa=$e,Sa=Function.prototype,ga=ma&&Object.getOwnPropertyDescriptor,Ta=fa(Sa,"name"),Ra={EXISTS:Ta,PROPER:Ta&&"something"===function(){}.name,CONFIGURABLE:Ta&&(!ma||ma&&ga(Sa,"name").configurable)},va=fi,Ca=function(e,t,i,n){return n&&n.enumerable?e[t]=i:va(e,t,i),e},ya=n,Ia=b,ba=Q,Aa=ko,wa=wr,Oa=Ca,Na=pt("iterator"),Da=!1;[].keys&&("next"in(_a=[].keys())?(pa=wa(wa(_a)))!==Object.prototype&&(ha=pa):Da=!0);var Pa=!ba(ha)||ya((function(){var e={};return ha[Na].call(e)!==e}));Ia((ha=Pa?{}:Aa(ha))[Na])||Oa(ha,Na,(function(){return this}));var La={IteratorPrototype:ha,BUGGY_SAFARI_ITERATORS:Da},ka=En,Ma=cn?{}.toString:function(){return"[object "+ka(this)+"]"},Ua=cn,Va=Qt.f,xa=fi,Fa=$e,Ba=Ma,ja=pt("toStringTag"),Ga=function(e,t,i,n){var r=i?e:e&&e.prototype;r&&(Fa(r,ja)||Va(r,ja,{configurable:!0,value:t}),n&&!Ua&&xa(r,"toString",Ba))},Wa=La.IteratorPrototype,Ha=ko,Ka=x,Ya=Ga,za=qo,qa=function(){return this},Xa=function(e,t,i,n){var r=t+" Iterator";return e.prototype=Ha(Wa,{next:Ka(+!n,i)}),Ya(e,r,!1,!0),za[r]=qa,e},Ja=Oi,Za=D,Qa=Ra,$a=Xa,ec=wr,tc=Ga,ic=Ca,nc=qo,rc=La,oc=Qa.PROPER,sc=rc.BUGGY_SAFARI_ITERATORS,ac=pt("iterator"),cc="keys",dc="values",lc="entries",uc=function(){return this},hc=function(e,t,i,n,r,o,s){$a(i,t,n);var a,c,d,l=function(e){if(e===r&&E)return E;if(!sc&&e&&e in p)return p[e];switch(e){case cc:case dc:case lc:return function(){return new i(this,e)}}return function(){return new i(this)}},u=t+" Iterator",h=!1,p=e.prototype,_=p[ac]||p["@@iterator"]||r&&p[r],E=!sc&&_||l(r),m="Array"===t&&p.entries||_;if(m&&(a=ec(m.call(new e)))!==Object.prototype&&a.next&&(tc(a,u,!0,!0),nc[u]=uc),oc&&r===dc&&_&&_.name!==dc&&(h=!0,E=function(){return Za(_,this)}),r)if(c={values:l(dc),keys:o?E:l(cc),entries:l(lc)},s)for(d in c)(sc||h||!(d in p))&&ic(p,d,c[d]);else Ja({target:t,proto:!0,forced:sc||h},c);return s&&p[ac]!==E&&ic(p,ac,E,{name:r}),nc[t]=E,c},pc=function(e,t){return{value:e,done:t}},_c=J,Ec=qo,mc=Ea;Qt.f;var fc=hc,Sc=pc,gc="Array Iterator",Tc=mc.set,Rc=mc.getterFor(gc);fc(Array,"Array",(function(e,t){Tc(this,{type:gc,target:_c(e),index:0,kind:t})}),(function(){var e=Rc(this),t=e.target,i=e.index++;if(!t||i>=t.length)return e.target=null,Sc(void 0,!0);switch(e.kind){case"keys":return Sc(i,!1);case"values":return Sc(t[i],!1)}return Sc([i,t[i]],!1)}),"values"),Ec.Arguments=Ec.Array;var vc=Qt,Cc=function(e,t,i){return vc.f(e,t,i)},yc=re,Ic=Cc,bc=w,Ac=pt("species"),wc=l,Oc=TypeError,Nc=function(e,t){if(wc(t,e))return e;throw new Oc("Incorrect invocation")},Dc=b,Pc=Ke,Lc=d(Function.toString);Dc(Pc.inspectSource)||(Pc.inspectSource=function(e){return Lc(e)});var kc=Pc.inspectSource,Mc=d,Uc=n,Vc=b,xc=En,Fc=kc,Bc=function(){},jc=re("Reflect","construct"),Gc=/^\s*(?:class|function)\b/,Wc=Mc(Gc.exec),Hc=!Gc.test(Bc),Kc=function(e){if(!Vc(e))return!1;try{return jc(Bc,[],e),!0}catch(e){return!1}},Yc=function(e){if(!Vc(e))return!1;switch(xc(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Hc||!!Wc(Gc,Fc(e))}catch(e){return!0}};Yc.sham=!0;var zc,qc,Xc,Jc,Zc=!jc||Uc((function(){var e;return Kc(Kc.call)||!Kc(Object)||!Kc((function(){e=!0}))||e}))?Yc:Kc,Qc=Zc,$c=be,ed=TypeError,td=ni,id=function(e){if(Qc(e))return e;throw new ed($c(e)+" is not a constructor")},nd=H,rd=pt("species"),od=function(e,t){var i,n=td(e).constructor;return void 0===n||nd(i=td(n)[rd])?t:id(i)},sd=d([].slice),ad=TypeError,cd=function(e,t){if(e<t)throw new ad("Not enough arguments");return e},dd=/(?:ipad|iphone|ipod).*applewebkit/i.test(ae),ld=h,ud=f,hd=Zt,pd=b,_d=$e,Ed=n,md=To,fd=sd,Sd=At,gd=cd,Td=dd,Rd=Xn,vd=ld.setImmediate,Cd=ld.clearImmediate,yd=ld.process,Id=ld.Dispatch,bd=ld.Function,Ad=ld.MessageChannel,wd=ld.String,Od=0,Nd={},Dd="onreadystatechange";Ed((function(){zc=ld.location}));var Pd=function(e){if(_d(Nd,e)){var t=Nd[e];delete Nd[e],t()}},Ld=function(e){return function(){Pd(e)}},kd=function(e){Pd(e.data)},Md=function(e){ld.postMessage(wd(e),zc.protocol+"//"+zc.host)};vd&&Cd||(vd=function(e){gd(arguments.length,1);var t=pd(e)?e:bd(e),i=fd(arguments,1);return Nd[++Od]=function(){ud(t,void 0,i)},qc(Od),Od},Cd=function(e){delete Nd[e]},Rd?qc=function(e){yd.nextTick(Ld(e))}:Id&&Id.now?qc=function(e){Id.now(Ld(e))}:Ad&&!Td?(Jc=(Xc=new Ad).port2,Xc.port1.onmessage=kd,qc=hd(Jc.postMessage,Jc)):ld.addEventListener&&pd(ld.postMessage)&&!ld.importScripts&&zc&&"file:"!==zc.protocol&&!Ed(Md)?(qc=Md,ld.addEventListener("message",kd,!1)):qc=Dd in Sd("script")?function(e){md.appendChild(Sd("script"))[Dd]=function(){md.removeChild(this),Pd(e)}}:function(e){setTimeout(Ld(e),0)});var Ud={set:vd,clear:Cd},Vd=h,xd=w,Fd=Object.getOwnPropertyDescriptor,Bd=function(e){if(!xd)return Vd[e];var t=Fd(Vd,e);return t&&t.value},jd=function(){this.head=null,this.tail=null};jd.prototype={add:function(e){var t={item:e,next:null},i=this.tail;i?i.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var Gd,Wd,Hd,Kd,Yd,zd=jd,qd=/ipad|iphone|ipod/i.test(ae)&&"undefined"!=typeof Pebble,Xd=/web0s(?!.*chrome)/i.test(ae),Jd=h,Zd=Bd,Qd=Zt,$d=Ud.set,el=zd,tl=dd,il=qd,nl=Xd,rl=Xn,ol=Jd.MutationObserver||Jd.WebKitMutationObserver,sl=Jd.document,al=Jd.process,cl=Jd.Promise,dl=Zd("queueMicrotask");if(!dl){var ll=new el,ul=function(){var e,t;for(rl&&(e=al.domain)&&e.exit();t=ll.get();)try{t()}catch(e){throw ll.head&&Gd(),e}e&&e.enter()};tl||rl||nl||!ol||!sl?!il&&cl&&cl.resolve?((Kd=cl.resolve(void 0)).constructor=cl,Yd=Qd(Kd.then,Kd),Gd=function(){Yd(ul)}):rl?Gd=function(){al.nextTick(ul)}:($d=Qd($d,Jd),Gd=function(){$d(ul)}):(Wd=!0,Hd=sl.createTextNode(""),new ol(ul).observe(Hd,{characterData:!0}),Gd=function(){Hd.data=Wd=!Wd}),dl=function(e){ll.head||Gd(),ll.add(e)}}var hl=dl,pl=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},_l=h.Promise,El=h,ml=_l,fl=b,Sl=zt,gl=kc,Tl=pt,Rl=qn,vl=_e,Cl=ml&&ml.prototype,yl=Tl("species"),Il=!1,bl=fl(El.PromiseRejectionEvent),Al=Sl("Promise",(function(){var e=gl(ml),t=e!==String(ml);if(!t&&66===vl)return!0;if(!Cl.catch||!Cl.finally)return!0;if(!vl||vl<51||!/native code/.test(e)){var i=new ml((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((i.constructor={})[yl]=n,!(Il=i.then((function(){}))instanceof n))return!0}return!(t||"BROWSER"!==Rl&&"DENO"!==Rl||bl)})),wl={CONSTRUCTOR:Al,REJECTION_EVENT:bl,SUBCLASSING:Il},Ol={},Nl=Ne,Dl=TypeError,Pl=function(e){var t,i;this.promise=new e((function(e,n){if(void 0!==t||void 0!==i)throw new Dl("Bad Promise constructor");t=e,i=n})),this.resolve=Nl(t),this.reject=Nl(i)};Ol.f=function(e){return new Pl(e)};var Ll,kl,Ml=Oi,Ul=Xn,Vl=h,xl=D,Fl=Ca,Bl=Ga,jl=function(e){var t=yc(e);bc&&t&&!t[Ac]&&Ic(t,Ac,{configurable:!0,get:function(){return this}})},Gl=Ne,Wl=b,Hl=Q,Kl=Nc,Yl=od,zl=Ud.set,ql=hl,Xl=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}},Jl=pl,Zl=zd,Ql=Ea,$l=_l,eu=wl,tu=Ol,iu="Promise",nu=eu.CONSTRUCTOR,ru=eu.REJECTION_EVENT,ou=Ql.getterFor(iu),su=Ql.set,au=$l&&$l.prototype,cu=$l,du=au,lu=Vl.TypeError,uu=Vl.document,hu=Vl.process,pu=tu.f,_u=pu,Eu=!!(uu&&uu.createEvent&&Vl.dispatchEvent),mu="unhandledrejection",fu=function(e){var t;return!(!Hl(e)||!Wl(t=e.then))&&t},Su=function(e,t){var i,n,r,o=t.value,s=1===t.state,a=s?e.ok:e.fail,c=e.resolve,d=e.reject,l=e.domain;try{a?(s||(2===t.rejection&&Cu(t),t.rejection=1),!0===a?i=o:(l&&l.enter(),i=a(o),l&&(l.exit(),r=!0)),i===e.promise?d(new lu("Promise-chain cycle")):(n=fu(i))?xl(n,i,c,d):c(i)):d(o)}catch(e){l&&!r&&l.exit(),d(e)}},gu=function(e,t){e.notified||(e.notified=!0,ql((function(){for(var i,n=e.reactions;i=n.get();)Su(i,e);e.notified=!1,t&&!e.rejection&&Ru(e)})))},Tu=function(e,t,i){var n,r;Eu?((n=uu.createEvent("Event")).promise=t,n.reason=i,n.initEvent(e,!1,!0),Vl.dispatchEvent(n)):n={promise:t,reason:i},!ru&&(r=Vl["on"+e])?r(n):e===mu&&Xl("Unhandled promise rejection",i)},Ru=function(e){xl(zl,Vl,(function(){var t,i=e.facade,n=e.value;if(vu(e)&&(t=Jl((function(){Ul?hu.emit("unhandledRejection",n,i):Tu(mu,i,n)})),e.rejection=Ul||vu(e)?2:1,t.error))throw t.value}))},vu=function(e){return 1!==e.rejection&&!e.parent},Cu=function(e){xl(zl,Vl,(function(){var t=e.facade;Ul?hu.emit("rejectionHandled",t):Tu("rejectionhandled",t,e.value)}))},yu=function(e,t,i){return function(n){e(t,n,i)}},Iu=function(e,t,i){e.done||(e.done=!0,i&&(e=i),e.value=t,e.state=2,gu(e,!0))},bu=function(e,t,i){if(!e.done){e.done=!0,i&&(e=i);try{if(e.facade===t)throw new lu("Promise can't be resolved itself");var n=fu(t);n?ql((function(){var i={done:!1};try{xl(n,t,yu(bu,i,e),yu(Iu,i,e))}catch(t){Iu(i,t,e)}})):(e.value=t,e.state=1,gu(e,!1))}catch(t){Iu({done:!1},t,e)}}};nu&&(du=(cu=function(e){Kl(this,du),Gl(e),xl(Ll,this);var t=ou(this);try{e(yu(bu,t),yu(Iu,t))}catch(e){Iu(t,e)}}).prototype,(Ll=function(e){su(this,{type:iu,done:!1,notified:!1,parent:!1,reactions:new Zl,rejection:!1,state:0,value:null})}).prototype=Fl(du,"then",(function(e,t){var i=ou(this),n=pu(Yl(this,cu));return i.parent=!0,n.ok=!Wl(e)||e,n.fail=Wl(t)&&t,n.domain=Ul?hu.domain:void 0,0===i.state?i.reactions.add(n):ql((function(){Su(n,i)})),n.promise})),kl=function(){var e=new Ll,t=ou(e);this.promise=e,this.resolve=yu(bu,t),this.reject=yu(Iu,t)},tu.f=pu=function(e){return e===cu||undefined===e?new kl(e):_u(e)}),Ml({global:!0,constructor:!0,wrap:!0,forced:nu},{Promise:cu}),Bl(cu,iu,!1,!0),jl(iu);var Au=pt("iterator"),wu=!1;try{var Ou=0,Nu={next:function(){return{done:!!Ou++}},return:function(){wu=!0}};Nu[Au]=function(){return this},Array.from(Nu,(function(){throw 2}))}catch(e){}var Du=_l,Pu=function(e,t){try{if(!t&&!wu)return!1}catch(e){return!1}var i=!1;try{var n={};n[Au]=function(){return{next:function(){return{done:i=!0}}}},e(n)}catch(e){}return i},Lu=wl.CONSTRUCTOR||!Pu((function(e){Du.all(e).then(void 0,(function(){}))})),ku=D,Mu=Ne,Uu=Ol,Vu=pl,xu=Os;Oi({target:"Promise",stat:!0,forced:Lu},{all:function(e){var t=this,i=Uu.f(t),n=i.resolve,r=i.reject,o=Vu((function(){var i=Mu(t.resolve),o=[],s=0,a=1;xu(e,(function(e){var c=s++,d=!1;a++,ku(i,t,e).then((function(e){d||(d=!0,o[c]=e,--a||n(o))}),r)})),--a||n(o)}));return o.error&&r(o.value),i.promise}});var Fu=Oi,Bu=wl.CONSTRUCTOR;_l&&_l.prototype,Fu({target:"Promise",proto:!0,forced:Bu,real:!0},{catch:function(e){return this.then(void 0,e)}});var ju=D,Gu=Ne,Wu=Ol,Hu=pl,Ku=Os;Oi({target:"Promise",stat:!0,forced:Lu},{race:function(e){var t=this,i=Wu.f(t),n=i.reject,r=Hu((function(){var r=Gu(t.resolve);Ku(e,(function(e){ju(r,t,e).then(i.resolve,n)}))}));return r.error&&n(r.value),i.promise}});var Yu=Ol;Oi({target:"Promise",stat:!0,forced:wl.CONSTRUCTOR},{reject:function(e){var t=Yu.f(this);return(0,t.reject)(e),t.promise}});var zu=ni,qu=Q,Xu=Ol,Ju=function(e,t){if(zu(e),qu(t)&&t.constructor===e)return t;var i=Xu.f(e);return(0,i.resolve)(t),i.promise},Zu=Oi,Qu=_l,$u=wl.CONSTRUCTOR,eh=Ju,th=re("Promise"),ih=!$u;Zu({target:"Promise",stat:!0,forced:true},{resolve:function(e){return eh(ih&&this===th?Qu:this,e)}});var nh=D,rh=Ne,oh=Ol,sh=pl,ah=Os;Oi({target:"Promise",stat:!0,forced:Lu},{allSettled:function(e){var t=this,i=oh.f(t),n=i.resolve,r=i.reject,o=sh((function(){var i=rh(t.resolve),r=[],o=0,s=1;ah(e,(function(e){var a=o++,c=!1;s++,nh(i,t,e).then((function(e){c||(c=!0,r[a]={status:"fulfilled",value:e},--s||n(r))}),(function(e){c||(c=!0,r[a]={status:"rejected",reason:e},--s||n(r))}))})),--s||n(r)}));return o.error&&r(o.value),i.promise}});var ch=D,dh=Ne,lh=re,uh=Ol,hh=pl,ph=Os,_h="No one promise resolved";Oi({target:"Promise",stat:!0,forced:Lu},{any:function(e){var t=this,i=lh("AggregateError"),n=uh.f(t),r=n.resolve,o=n.reject,s=hh((function(){var n=dh(t.resolve),s=[],a=0,c=1,d=!1;ph(e,(function(e){var l=a++,u=!1;c++,ch(n,t,e).then((function(e){u||d||(d=!0,r(e))}),(function(e){u||d||(u=!0,s[l]=e,--c||o(new i(s,_h)))}))})),--c||o(new i(s,_h))}));return s.error&&o(s.value),n.promise}});var Eh=Oi,mh=f,fh=sd,Sh=Ol,gh=Ne,Th=pl,Rh=h.Promise,vh=!1;Eh({target:"Promise",stat:!0,forced:!Rh||!Rh.try||Th((function(){Rh.try((function(e){vh=8===e}),8)})).error||!vh},{try:function(e){var t=arguments.length>1?fh(arguments,1):[],i=Sh.f(this),n=Th((function(){return mh(gh(e),void 0,t)}));return(n.error?i.reject:i.resolve)(n.value),i.promise}});var Ch=Ol;Oi({target:"Promise",stat:!0},{withResolvers:function(){var e=Ch.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}});var yh=Oi,Ih=_l,bh=n,Ah=re,wh=b,Oh=od,Nh=Ju,Dh=Ih&&Ih.prototype;yh({target:"Promise",proto:!0,real:!0,forced:!!Ih&&bh((function(){Dh.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=Oh(this,Ah("Promise")),i=wh(e);return this.then(i?function(i){return Nh(t,e()).then((function(){return i}))}:e,i?function(i){return Nh(t,e()).then((function(){throw i}))}:e)}});var Ph=d,Lh=ki,kh=Sn,Mh=z,Uh=Ph("".charAt),Vh=Ph("".charCodeAt),xh=Ph("".slice),Fh=function(e){return function(t,i){var n,r,o=kh(Mh(t)),s=Lh(i),a=o.length;return s<0||s>=a?e?"":void 0:(n=Vh(o,s))<55296||n>56319||s+1===a||(r=Vh(o,s+1))<56320||r>57343?e?Uh(o,s):n:e?xh(o,s,s+2):r-56320+(n-55296<<10)+65536}},Bh={codeAt:Fh(!1),charAt:Fh(!0)},jh=Bh.charAt,Gh=Sn,Wh=Ea,Hh=hc,Kh=pc,Yh="String Iterator",zh=Wh.set,qh=Wh.getterFor(Yh);Hh(String,"String",(function(e){zh(this,{type:Yh,string:Gh(e),index:0})}),(function(){var e,t=qh(this),i=t.string,n=t.index;return n>=i.length?Kh(void 0,!0):(e=jh(i,n),t.index+=e.length,Kh(e,!1))}));var Xh=$.Promise,Jh={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},Zh=h,Qh=Ga,$h=qo;for(var ep in Jh)Qh(Zh[ep],ep),$h[ep]=$h.Array;var tp=Xh,ip=i(tp),np=Qi("Array","values"),rp=En,op=$e,sp=l,ap=np,cp=Array.prototype,dp={DOMTokenList:!0,NodeList:!0},lp=function(e){var t=e.values;return e===cp||sp(cp,e)&&t===cp.values||op(dp,rp(e))?ap:t},up=i(lp),hp=be,pp=TypeError,_p=sd,Ep=Math.floor,mp=function(e,t){var i=e.length;if(i<8)for(var n,r,o=1;o<i;){for(r=o,n=e[o];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==o++&&(e[r]=n)}else for(var s=Ep(i/2),a=mp(_p(e,0,s),t),c=mp(_p(e,s),t),d=a.length,l=c.length,u=0,h=0;u<d||h<l;)e[u+h]=u<d&&h<l?t(a[u],c[h])<=0?a[u++]:c[h++]:u<d?a[u++]:c[h++];return e},fp=mp,Sp=ae.match(/firefox\/(\d+)/i),gp=!!Sp&&+Sp[1],Tp=/MSIE|Trident/.test(ae),Rp=ae.match(/AppleWebKit\/(\d+)\./),vp=!!Rp&&+Rp[1],Cp=Oi,yp=d,Ip=Ne,bp=Je,Ap=Wi,wp=function(e,t){if(!delete e[t])throw new pp("Cannot delete property "+hp(t)+" of "+hp(e))},Op=Sn,Np=n,Dp=fp,Pp=Wn,Lp=gp,kp=Tp,Mp=_e,Up=vp,Vp=[],xp=yp(Vp.sort),Fp=yp(Vp.push),Bp=Np((function(){Vp.sort(void 0)})),jp=Np((function(){Vp.sort(null)})),Gp=Pp("sort"),Wp=!Np((function(){if(Mp)return Mp<70;if(!(Lp&&Lp>3)){if(kp)return!0;if(Up)return Up<603;var e,t,i,n,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(n=0;n<47;n++)Vp.push({k:t+n,v:i})}for(Vp.sort((function(e,t){return t.v-e.v})),n=0;n<Vp.length;n++)t=Vp[n].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}}));Cp({target:"Array",proto:!0,forced:Bp||!jp||!Gp||!Wp},{sort:function(e){void 0!==e&&Ip(e);var t=bp(this);if(Wp)return void 0===e?xp(t):xp(t,e);var i,n,r=[],o=Ap(t);for(n=0;n<o;n++)n in t&&Fp(r,t[n]);for(Dp(r,function(e){return function(t,i){return void 0===i?-1:void 0===t?1:void 0!==e?+e(t,i)||0:Op(t)>Op(i)?1:-1}}(e)),i=Ap(r),n=0;n<i;)t[n]=r[n++];for(;n<o;)wp(t,n++);return t}});var Hp=Qi("Array","sort"),Kp=l,Yp=Hp,zp=Array.prototype,qp=function(e){var t=e.sort;return e===zp||Kp(zp,e)&&t===zp.sort?Yp:t},Xp=i(qp),Jp=Oi,Zp=d,Qp=xi,$p=RangeError,e_=String.fromCharCode,t_=String.fromCodePoint,i_=Zp([].join);Jp({target:"String",stat:!0,arity:1,forced:!!t_&&1!==t_.length},{fromCodePoint:function(e){for(var t,i=[],n=arguments.length,r=0;n>r;){if(t=+arguments[r++],Qp(t,1114111)!==t)throw new $p(t+" is not a valid code point");i[r]=t<65536?e_(t):e_(55296+((t-=65536)>>10),t%1024+56320)}return i_(i,"")}});var n_=n,r_=pt("iterator"),o_=!n_((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,i=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach((function(e,i){t.delete("b"),n+=i+e})),i.delete("a",2),i.delete("b",void 0),!e.toJSON||!i.has("a",1)||i.has("a",2)||!i.has("a",void 0)||i.has("b")||!t.size&&true||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[r_]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host})),s_=Ca,a_=Oi,c_=h,d_=Bd,l_=re,u_=D,h_=d,p_=w,__=o_,E_=Ca,m_=Cc,f_=function(e,t,i){for(var n in t)i&&i.unsafe&&e[n]?e[n]=t[n]:s_(e,n,t[n],i);return e},S_=Ga,g_=Xa,T_=Ea,R_=Nc,v_=b,C_=$e,y_=Zt,I_=En,b_=ni,A_=Q,w_=Sn,O_=ko,N_=x,D_=us,P_=rs,L_=pc,k_=cd,M_=fp,U_=pt("iterator"),V_="URLSearchParams",x_=V_+"Iterator",F_=T_.set,B_=T_.getterFor(V_),j_=T_.getterFor(x_),G_=d_("fetch"),W_=d_("Request"),H_=d_("Headers"),K_=W_&&W_.prototype,Y_=H_&&H_.prototype,z_=c_.TypeError,q_=c_.encodeURIComponent,X_=String.fromCharCode,J_=l_("String","fromCodePoint"),Z_=parseInt,Q_=h_("".charAt),$_=h_([].join),eE=h_([].push),tE=h_("".replace),iE=h_([].shift),nE=h_([].splice),rE=h_("".split),oE=h_("".slice),sE=h_(/./.exec),aE=/\+/g,cE=/^[0-9a-f]+$/i,dE=function(e,t){var i=oE(e,t,t+2);return sE(cE,i)?Z_(i,16):NaN},lE=function(e){for(var t=0,i=128;i>0&&0!=(e&i);i>>=1)t++;return t},uE=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},hE=function(e){for(var t=(e=tE(e,aE," ")).length,i="",n=0;n<t;){var r=Q_(e,n);if("%"===r){if("%"===Q_(e,n+1)||n+3>t){i+="%",n++;continue}var o=dE(e,n+1);if(o!=o){i+=r,n++;continue}n+=2;var s=lE(o);if(0===s)r=X_(o);else{if(1===s||s>4){i+="�",n++;continue}for(var a=[o],c=1;c<s&&!(++n+3>t||"%"!==Q_(e,n));){var d=dE(e,n+1);if(d!=d){n+=3;break}if(d>191||d<128)break;eE(a,d),n+=2,c++}if(a.length!==s){i+="�";continue}var l=uE(a);null===l?i+="�":r=J_(l)}}i+=r,n++}return i},pE=/[!'()~]|%20/g,_E={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},EE=function(e){return _E[e]},mE=function(e){return tE(q_(e),pE,EE)},fE=g_((function(e,t){F_(this,{type:x_,target:B_(e).entries,index:0,kind:t})}),V_,(function(){var e=j_(this),t=e.target,i=e.index++;if(!t||i>=t.length)return e.target=null,L_(void 0,!0);var n=t[i];switch(e.kind){case"keys":return L_(n.key,!1);case"values":return L_(n.value,!1)}return L_([n.key,n.value],!1)}),!0),SE=function(e){this.entries=[],this.url=null,void 0!==e&&(A_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Q_(e,0)?oE(e,1):e:w_(e)))};SE.prototype={type:V_,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,i,n,r,o,s,a,c=this.entries,d=P_(e);if(d)for(i=(t=D_(e,d)).next;!(n=u_(i,t)).done;){if(o=(r=D_(b_(n.value))).next,(s=u_(o,r)).done||(a=u_(o,r)).done||!u_(o,r).done)throw new z_("Expected sequence with length 2");eE(c,{key:w_(s.value),value:w_(a.value)})}else for(var l in e)C_(e,l)&&eE(c,{key:l,value:w_(e[l])})},parseQuery:function(e){if(e)for(var t,i,n=this.entries,r=rE(e,"&"),o=0;o<r.length;)(t=r[o++]).length&&(i=rE(t,"="),eE(n,{key:hE(iE(i)),value:hE($_(i,"="))}))},serialize:function(){for(var e,t=this.entries,i=[],n=0;n<t.length;)e=t[n++],eE(i,mE(e.key)+"="+mE(e.value));return $_(i,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var gE=function(){R_(this,TE);var e=F_(this,new SE(arguments.length>0?arguments[0]:void 0));p_||(this.size=e.entries.length)},TE=gE.prototype;if(f_(TE,{append:function(e,t){var i=B_(this);k_(arguments.length,2),eE(i.entries,{key:w_(e),value:w_(t)}),p_||this.length++,i.updateURL()},delete:function(e){for(var t=B_(this),i=k_(arguments.length,1),n=t.entries,r=w_(e),o=i<2?void 0:arguments[1],s=void 0===o?o:w_(o),a=0;a<n.length;){var c=n[a];if(c.key!==r||void 0!==s&&c.value!==s)a++;else if(nE(n,a,1),void 0!==s)break}p_||(this.size=n.length),t.updateURL()},get:function(e){var t=B_(this).entries;k_(arguments.length,1);for(var i=w_(e),n=0;n<t.length;n++)if(t[n].key===i)return t[n].value;return null},getAll:function(e){var t=B_(this).entries;k_(arguments.length,1);for(var i=w_(e),n=[],r=0;r<t.length;r++)t[r].key===i&&eE(n,t[r].value);return n},has:function(e){for(var t=B_(this).entries,i=k_(arguments.length,1),n=w_(e),r=i<2?void 0:arguments[1],o=void 0===r?r:w_(r),s=0;s<t.length;){var a=t[s++];if(a.key===n&&(void 0===o||a.value===o))return!0}return!1},set:function(e,t){var i=B_(this);k_(arguments.length,1);for(var n,r=i.entries,o=!1,s=w_(e),a=w_(t),c=0;c<r.length;c++)(n=r[c]).key===s&&(o?nE(r,c--,1):(o=!0,n.value=a));o||eE(r,{key:s,value:a}),p_||(this.size=r.length),i.updateURL()},sort:function(){var e=B_(this);M_(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,i=B_(this).entries,n=y_(e,arguments.length>1?arguments[1]:void 0),r=0;r<i.length;)n((t=i[r++]).value,t.key,this)},keys:function(){return new fE(this,"keys")},values:function(){return new fE(this,"values")},entries:function(){return new fE(this,"entries")}},{enumerable:!0}),E_(TE,U_,TE.entries,{name:"entries"}),E_(TE,"toString",(function(){return B_(this).serialize()}),{enumerable:!0}),p_&&m_(TE,"size",{get:function(){return B_(this).entries.length},configurable:!0,enumerable:!0}),S_(gE,V_),a_({global:!0,constructor:!0,forced:!__},{URLSearchParams:gE}),!__&&v_(H_)){var RE=h_(Y_.has),vE=h_(Y_.set),CE=function(e){if(A_(e)){var t,i=e.body;if(I_(i)===V_)return t=e.headers?new H_(e.headers):new H_,RE(t,"content-type")||vE(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),O_(e,{body:N_(0,w_(i)),headers:N_(0,t)})}return e};if(v_(G_)&&a_({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return G_(e,arguments.length>1?CE(arguments[1]):{})}}),v_(W_)){var yE=function(e){return R_(this,K_),new W_(e,arguments.length>1?CE(arguments[1]):{})};K_.constructor=yE,yE.prototype=K_,a_({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:yE})}}var IE,bE={URLSearchParams:gE,getState:B_},AE=$.URLSearchParams,wE=w,OE=d,NE=D,DE=n,PE=ho,LE=Zr,kE=P,ME=Je,UE=W,VE=Object.assign,xE=Object.defineProperty,FE=OE([].concat),BE=!VE||DE((function(){if(wE&&1!==VE({b:1},VE(xE({},"a",{enumerable:!0,get:function(){xE(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},i=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[i]=7,n.split("").forEach((function(e){t[e]=e})),7!==VE({},e)[i]||PE(VE({},t)).join("")!==n}))?function(e,t){for(var i=ME(e),n=arguments.length,r=1,o=LE.f,s=kE.f;n>r;)for(var a,c=UE(arguments[r++]),d=o?FE(PE(c),o(c)):PE(c),l=d.length,u=0;l>u;)a=d[u++],wE&&!NE(s,c,a)||(i[a]=c[a]);return i}:VE,jE=ni,GE=Es,WE=w,HE=Qt,KE=x,YE=function(e,t,i){WE?HE.f(e,t,KE(0,i)):e[t]=i},zE=Zt,qE=D,XE=Je,JE=function(e,t,i,n){try{return n?t(jE(i)[0],i[1]):t(i)}catch(t){GE(e,"throw",t)}},ZE=Qo,QE=Zc,$E=Wi,em=YE,tm=us,im=rs,nm=Array,rm=d,om=2147483647,sm=/[^\0-\u007E]/,am=/[.\u3002\uFF0E\uFF61]/g,cm="Overflow: input needs wider integers to process",dm=RangeError,lm=rm(am.exec),um=Math.floor,hm=String.fromCharCode,pm=rm("".charCodeAt),_m=rm([].join),Em=rm([].push),mm=rm("".replace),fm=rm("".split),Sm=rm("".toLowerCase),gm=function(e){return e+22+75*(e<26)},Tm=function(e,t,i){var n=0;for(e=i?um(e/700):e>>1,e+=um(e/t);e>455;)e=um(e/35),n+=36;return um(n+36*e/(e+38))},Rm=function(e){var t=[];e=function(e){for(var t=[],i=0,n=e.length;i<n;){var r=pm(e,i++);if(r>=55296&&r<=56319&&i<n){var o=pm(e,i++);56320==(64512&o)?Em(t,((1023&r)<<10)+(1023&o)+65536):(Em(t,r),i--)}else Em(t,r)}return t}(e);var i,n,r=e.length,o=128,s=0,a=72;for(i=0;i<e.length;i++)(n=e[i])<128&&Em(t,hm(n));var c=t.length,d=c;for(c&&Em(t,"-");d<r;){var l=om;for(i=0;i<e.length;i++)(n=e[i])>=o&&n<l&&(l=n);var u=d+1;if(l-o>um((om-s)/u))throw new dm(cm);for(s+=(l-o)*u,o=l,i=0;i<e.length;i++){if((n=e[i])<o&&++s>om)throw new dm(cm);if(n===o){for(var h=s,p=36;;){var _=p<=a?1:p>=a+26?26:p-a;if(h<_)break;var E=h-_,m=36-_;Em(t,hm(gm(_+E%m))),h=um(E/m),p+=36}Em(t,hm(gm(h))),a=Tm(s,u,d===c),s=0,d++}}s++,o++}return _m(t,"")},vm=Oi,Cm=w,ym=o_,Im=h,bm=Zt,Am=d,wm=Ca,Om=Cc,Nm=Nc,Dm=$e,Pm=BE,Lm=function(e){var t=XE(e),i=QE(this),n=arguments.length,r=n>1?arguments[1]:void 0,o=void 0!==r;o&&(r=zE(r,n>2?arguments[2]:void 0));var s,a,c,d,l,u,h=im(t),p=0;if(!h||this===nm&&ZE(h))for(s=$E(t),a=i?new this(s):nm(s);s>p;p++)u=o?r(t[p],p):t[p],em(a,p,u);else for(a=i?new this:[],l=(d=tm(t,h)).next;!(c=qE(l,d)).done;p++)u=o?JE(d,r,[c.value,p],!0):c.value,em(a,p,u);return a.length=p,a},km=sd,Mm=Bh.codeAt,Um=function(e){var t,i,n=[],r=fm(mm(Sm(e),am,"."),".");for(t=0;t<r.length;t++)i=r[t],Em(n,lm(sm,i)?"xn--"+Rm(i):i);return _m(n,".")},Vm=Sn,xm=Ga,Fm=cd,Bm=bE,jm=Ea,Gm=jm.set,Wm=jm.getterFor("URL"),Hm=Bm.URLSearchParams,Km=Bm.getState,Ym=Im.URL,zm=Im.TypeError,qm=Im.parseInt,Xm=Math.floor,Jm=Math.pow,Zm=Am("".charAt),Qm=Am(/./.exec),$m=Am([].join),ef=Am(1..toString),tf=Am([].pop),nf=Am([].push),rf=Am("".replace),of=Am([].shift),sf=Am("".split),af=Am("".slice),cf=Am("".toLowerCase),df=Am([].unshift),lf="Invalid scheme",uf="Invalid host",hf="Invalid port",pf=/[a-z]/i,_f=/[\d+-.a-z]/i,Ef=/\d/,mf=/^0x/i,ff=/^[0-7]+$/,Sf=/^\d+$/,gf=/^[\da-f]+$/i,Tf=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Rf=/[\0\t\n\r #/:<>?@[\\\]^|]/,vf=/^[\u0000-\u0020]+/,Cf=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,yf=/[\t\n\r]/g,If=function(e){var t,i,n,r;if("number"==typeof e){for(t=[],i=0;i<4;i++)df(t,e%256),e=Xm(e/256);return $m(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,i=1,n=null,r=0,o=0;o<8;o++)0!==e[o]?(r>i&&(t=n,i=r),n=null,r=0):(null===n&&(n=o),++r);return r>i?n:t}(e),i=0;i<8;i++)r&&0===e[i]||(r&&(r=!1),n===i?(t+=i?":":"::",r=!0):(t+=ef(e[i],16),i<7&&(t+=":")));return"["+t+"]"}return e},bf={},Af=Pm({},bf,{" ":1,'"':1,"<":1,">":1,"`":1}),wf=Pm({},Af,{"#":1,"?":1,"{":1,"}":1}),Of=Pm({},wf,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Nf=function(e,t){var i=Mm(e,0);return i>32&&i<127&&!Dm(t,e)?e:encodeURIComponent(e)},Df={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Pf=function(e,t){var i;return 2===e.length&&Qm(pf,Zm(e,0))&&(":"===(i=Zm(e,1))||!t&&"|"===i)},Lf=function(e){var t;return e.length>1&&Pf(af(e,0,2))&&(2===e.length||"/"===(t=Zm(e,2))||"\\"===t||"?"===t||"#"===t)},kf=function(e){return"."===e||"%2e"===cf(e)},Mf={},Uf={},Vf={},xf={},Ff={},Bf={},jf={},Gf={},Wf={},Hf={},Kf={},Yf={},zf={},qf={},Xf={},Jf={},Zf={},Qf={},$f={},eS={},tS={},iS=function(e,t,i){var n,r,o,s=Vm(e);if(t){if(r=this.parse(s))throw new zm(r);this.searchParams=null}else{if(void 0!==i&&(n=new iS(i,!0)),r=this.parse(s,null,n))throw new zm(r);(o=Km(new Hm)).bindURL(this),this.searchParams=o}};iS.prototype={type:"URL",parse:function(e,t,i){var n,r,o,s,a,c=this,d=t||Mf,l=0,u="",h=!1,p=!1,_=!1;for(e=Vm(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=rf(e,vf,""),e=rf(e,Cf,"$1")),e=rf(e,yf,""),n=Lm(e);l<=n.length;){switch(r=n[l],d){case Mf:if(!r||!Qm(pf,r)){if(t)return lf;d=Vf;continue}u+=cf(r),d=Uf;break;case Uf:if(r&&(Qm(_f,r)||"+"===r||"-"===r||"."===r))u+=cf(r);else{if(":"!==r){if(t)return lf;u="",d=Vf,l=0;continue}if(t&&(c.isSpecial()!==Dm(Df,u)||"file"===u&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=u,t)return void(c.isSpecial()&&Df[c.scheme]===c.port&&(c.port=null));u="","file"===c.scheme?d=qf:c.isSpecial()&&i&&i.scheme===c.scheme?d=xf:c.isSpecial()?d=Gf:"/"===n[l+1]?(d=Ff,l++):(c.cannotBeABaseURL=!0,nf(c.path,""),d=$f)}break;case Vf:if(!i||i.cannotBeABaseURL&&"#"!==r)return lf;if(i.cannotBeABaseURL&&"#"===r){c.scheme=i.scheme,c.path=km(i.path),c.query=i.query,c.fragment="",c.cannotBeABaseURL=!0,d=tS;break}d="file"===i.scheme?qf:Bf;continue;case xf:if("/"!==r||"/"!==n[l+1]){d=Bf;continue}d=Wf,l++;break;case Ff:if("/"===r){d=Hf;break}d=Qf;continue;case Bf:if(c.scheme=i.scheme,r===IE)c.username=i.username,c.password=i.password,c.host=i.host,c.port=i.port,c.path=km(i.path),c.query=i.query;else if("/"===r||"\\"===r&&c.isSpecial())d=jf;else if("?"===r)c.username=i.username,c.password=i.password,c.host=i.host,c.port=i.port,c.path=km(i.path),c.query="",d=eS;else{if("#"!==r){c.username=i.username,c.password=i.password,c.host=i.host,c.port=i.port,c.path=km(i.path),c.path.length--,d=Qf;continue}c.username=i.username,c.password=i.password,c.host=i.host,c.port=i.port,c.path=km(i.path),c.query=i.query,c.fragment="",d=tS}break;case jf:if(!c.isSpecial()||"/"!==r&&"\\"!==r){if("/"!==r){c.username=i.username,c.password=i.password,c.host=i.host,c.port=i.port,d=Qf;continue}d=Hf}else d=Wf;break;case Gf:if(d=Wf,"/"!==r||"/"!==Zm(u,l+1))continue;l++;break;case Wf:if("/"!==r&&"\\"!==r){d=Hf;continue}break;case Hf:if("@"===r){h&&(u="%40"+u),h=!0,o=Lm(u);for(var E=0;E<o.length;E++){var m=o[E];if(":"!==m||_){var f=Nf(m,Of);_?c.password+=f:c.username+=f}else _=!0}u=""}else if(r===IE||"/"===r||"?"===r||"#"===r||"\\"===r&&c.isSpecial()){if(h&&""===u)return"Invalid authority";l-=Lm(u).length+1,u="",d=Kf}else u+=r;break;case Kf:case Yf:if(t&&"file"===c.scheme){d=Jf;continue}if(":"!==r||p){if(r===IE||"/"===r||"?"===r||"#"===r||"\\"===r&&c.isSpecial()){if(c.isSpecial()&&""===u)return uf;if(t&&""===u&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(u))return s;if(u="",d=Zf,t)return;continue}"["===r?p=!0:"]"===r&&(p=!1),u+=r}else{if(""===u)return uf;if(s=c.parseHost(u))return s;if(u="",d=zf,t===Yf)return}break;case zf:if(!Qm(Ef,r)){if(r===IE||"/"===r||"?"===r||"#"===r||"\\"===r&&c.isSpecial()||t){if(""!==u){var S=qm(u,10);if(S>65535)return hf;c.port=c.isSpecial()&&S===Df[c.scheme]?null:S,u=""}if(t)return;d=Zf;continue}return hf}u+=r;break;case qf:if(c.scheme="file","/"===r||"\\"===r)d=Xf;else{if(!i||"file"!==i.scheme){d=Qf;continue}switch(r){case IE:c.host=i.host,c.path=km(i.path),c.query=i.query;break;case"?":c.host=i.host,c.path=km(i.path),c.query="",d=eS;break;case"#":c.host=i.host,c.path=km(i.path),c.query=i.query,c.fragment="",d=tS;break;default:Lf($m(km(n,l),""))||(c.host=i.host,c.path=km(i.path),c.shortenPath()),d=Qf;continue}}break;case Xf:if("/"===r||"\\"===r){d=Jf;break}i&&"file"===i.scheme&&!Lf($m(km(n,l),""))&&(Pf(i.path[0],!0)?nf(c.path,i.path[0]):c.host=i.host),d=Qf;continue;case Jf:if(r===IE||"/"===r||"\\"===r||"?"===r||"#"===r){if(!t&&Pf(u))d=Qf;else if(""===u){if(c.host="",t)return;d=Zf}else{if(s=c.parseHost(u))return s;if("localhost"===c.host&&(c.host=""),t)return;u="",d=Zf}continue}u+=r;break;case Zf:if(c.isSpecial()){if(d=Qf,"/"!==r&&"\\"!==r)continue}else if(t||"?"!==r)if(t||"#"!==r){if(r!==IE&&(d=Qf,"/"!==r))continue}else c.fragment="",d=tS;else c.query="",d=eS;break;case Qf:if(r===IE||"/"===r||"\\"===r&&c.isSpecial()||!t&&("?"===r||"#"===r)){if(".."===(a=cf(a=u))||"%2e."===a||".%2e"===a||"%2e%2e"===a?(c.shortenPath(),"/"===r||"\\"===r&&c.isSpecial()||nf(c.path,"")):kf(u)?"/"===r||"\\"===r&&c.isSpecial()||nf(c.path,""):("file"===c.scheme&&!c.path.length&&Pf(u)&&(c.host&&(c.host=""),u=Zm(u,0)+":"),nf(c.path,u)),u="","file"===c.scheme&&(r===IE||"?"===r||"#"===r))for(;c.path.length>1&&""===c.path[0];)of(c.path);"?"===r?(c.query="",d=eS):"#"===r&&(c.fragment="",d=tS)}else u+=Nf(r,wf);break;case $f:"?"===r?(c.query="",d=eS):"#"===r?(c.fragment="",d=tS):r!==IE&&(c.path[0]+=Nf(r,bf));break;case eS:t||"#"!==r?r!==IE&&("'"===r&&c.isSpecial()?c.query+="%27":c.query+="#"===r?"%23":Nf(r,bf)):(c.fragment="",d=tS);break;case tS:r!==IE&&(c.fragment+=Nf(r,Af))}l++}},parseHost:function(e){var t,i,n;if("["===Zm(e,0)){if("]"!==Zm(e,e.length-1))return uf;if(t=function(e){var t,i,n,r,o,s,a,c=[0,0,0,0,0,0,0,0],d=0,l=null,u=0,h=function(){return Zm(e,u)};if(":"===h()){if(":"!==Zm(e,1))return;u+=2,l=++d}for(;h();){if(8===d)return;if(":"!==h()){for(t=i=0;i<4&&Qm(gf,h());)t=16*t+qm(h(),16),u++,i++;if("."===h()){if(0===i)return;if(u-=i,d>6)return;for(n=0;h();){if(r=null,n>0){if(!("."===h()&&n<4))return;u++}if(!Qm(Ef,h()))return;for(;Qm(Ef,h());){if(o=qm(h(),10),null===r)r=o;else{if(0===r)return;r=10*r+o}if(r>255)return;u++}c[d]=256*c[d]+r,2!=++n&&4!==n||d++}if(4!==n)return;break}if(":"===h()){if(u++,!h())return}