UNPKG

@yext/answers-search-ui

Version:

Javascript Search Programming Interface

1 lines 721 kB
var ANSWERS=function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,t){return e(t={exports:{}},t.exports),t.exports}function n(e){return e&&e.default||e}var i,o,a=function(e){return e&&e.Math===Math&&e},s=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof e&&e)||a("object"==typeof e&&e)||function(){return this}()||Function("return this")(),c=function(e){try{return!!e()}catch(e){return!0}},l=!c((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),u=Function.prototype,f=u.apply,h=u.call,d="object"==typeof Reflect&&Reflect.apply||(l?h.bind(f):function(){return h.apply(f,arguments)}),p=Function.prototype,v=p.call,g=l&&p.bind.bind(v,v),m=l?g:function(e){return function(){return v.apply(e,arguments)}},y=m({}.toString),_=m("".slice),b=function(e){return _(y(e),8,-1)},w=function(e){if("Function"===b(e))return m(e)},S="object"==typeof document&&document.all,C=void 0===S&&void 0!==S?function(e){return"function"==typeof e||e===S}:function(e){return"function"==typeof e},k=!c((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),x=Function.prototype.call,A=l?x.bind(x):function(){return x.apply(x,arguments)},E={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,O={f:M&&!E.call({1:2},1)?function(e){var t=M(this,e);return!!t&&t.enumerable}:E},T=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},L=Object,F=m("".split),I=c((function(){return!L("z").propertyIsEnumerable(0)}))?function(e){return"String"===b(e)?F(e,""):L(e)}:L,R=function(e){return null==e},j=TypeError,N=function(e){if(R(e))throw new j("Can't call method on "+e);return e},P=function(e){return I(N(e))},D=function(e){return"object"==typeof e?null!==e:C(e)},B={},q=function(e){return C(e)?e:void 0},U=function(e,t){return arguments.length<2?q(B[e])||q(s[e]):B[e]&&B[e][t]||s[e]&&s[e][t]},z=m({}.isPrototypeOf),V=s.navigator,H=V&&V.userAgent,K=H?String(H):"",G=s.process,Z=s.Deno,Q=G&&G.versions||Z&&Z.version,W=Q&&Q.v8;W&&(o=(i=W.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&K&&(!(i=K.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=K.match(/Chrome\/(\d+)/))&&(o=+i[1]);var $=o,Y=s.String,J=!!Object.getOwnPropertySymbols&&!c((function(){var e=Symbol("symbol detection");return!Y(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&$&&$<41})),X=J&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ee=Object,te=X?function(e){return"symbol"==typeof e}:function(e){var t=U("Symbol");return C(t)&&z(t.prototype,ee(e))},re=String,ne=function(e){try{return re(e)}catch(e){return"Object"}},ie=TypeError,oe=function(e){if(C(e))return e;throw new ie(ne(e)+" is not a function")},ae=function(e,t){var r=e[t];return R(r)?void 0:oe(r)},se=TypeError,ce=Object.defineProperty,le=r((function(e){var t=e.exports=s["__core-js_shared__"]||function(e,t){try{ce(s,e,{value:t,configurable:!0,writable:!0})}catch(r){s[e]=t}return t}("__core-js_shared__",{});(t.versions||(t.versions=[])).push({version:"3.40.0",mode:"pure",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),ue=function(e,t){return le[e]||(le[e]=t||{})},fe=Object,he=function(e){return fe(N(e))},de=m({}.hasOwnProperty),pe=Object.hasOwn||function(e,t){return de(he(e),t)},ve=0,ge=Math.random(),me=m(1..toString),ye=function(e){return"Symbol("+(void 0===e?"":e)+")_"+me(++ve+ge,36)},_e=s.Symbol,be=ue("wks"),we=X?_e.for||_e:_e&&_e.withoutSetter||ye,Se=function(e){return pe(be,e)||(be[e]=J&&pe(_e,e)?_e[e]:we("Symbol."+e)),be[e]},Ce=TypeError,ke=Se("toPrimitive"),xe=function(e,t){if(!D(e)||te(e))return e;var r,n=ae(e,ke);if(n){if(void 0===t&&(t="default"),r=A(n,e,t),!D(r)||te(r))return r;throw new Ce("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&C(r=e.toString)&&!D(n=A(r,e)))return n;if(C(r=e.valueOf)&&!D(n=A(r,e)))return n;if("string"!==t&&C(r=e.toString)&&!D(n=A(r,e)))return n;throw new se("Can't convert object to primitive value")}(e,t)},Ae=function(e){var t=xe(e,"string");return te(t)?t:t+""},Ee=s.document,Me=D(Ee)&&D(Ee.createElement),Oe=function(e){return Me?Ee.createElement(e):{}},Te=!k&&!c((function(){return 7!==Object.defineProperty(Oe("div"),"a",{get:function(){return 7}}).a})),Le=Object.getOwnPropertyDescriptor,Fe={f:k?Le:function(e,t){if(e=P(e),t=Ae(t),Te)try{return Le(e,t)}catch(e){}if(pe(e,t))return T(!A(O.f,e,t),e[t])}},Ie=/#|\.prototype\./,Re=function(e,t){var r=Ne[je(e)];return r===De||r!==Pe&&(C(t)?c(t):!!t)},je=Re.normalize=function(e){return String(e).replace(Ie,".").toLowerCase()},Ne=Re.data={},Pe=Re.NATIVE="N",De=Re.POLYFILL="P",Be=Re,qe=w(w.bind),Ue=function(e,t){return oe(e),void 0===t?e:l?qe(e,t):function(){return e.apply(t,arguments)}},ze=k&&c((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ve=String,He=TypeError,Ke=function(e){if(D(e))return e;throw new He(Ve(e)+" is not an object")},Ge=TypeError,Ze=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,We={f:k?ze?function(e,t,r){if(Ke(e),t=Ae(t),Ke(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=Qe(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return Ze(e,t,r)}:Ze:function(e,t,r){if(Ke(e),t=Ae(t),Ke(r),Te)try{return Ze(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new Ge("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},$e=k?function(e,t,r){return We.f(e,t,T(1,r))}:function(e,t,r){return e[t]=r,e},Ye=Fe.f,Je=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return d(e,this,arguments)};return t.prototype=e.prototype,t},Xe=function(e,t){var r,n,i,o,a,c,l,u,f,h=e.target,d=e.global,p=e.stat,v=e.proto,g=d?s:p?s[h]:s[h]&&s[h].prototype,m=d?B:B[h]||$e(B,h,{})[h],y=m.prototype;for(o in t)n=!(r=Be(d?o:h+(p?".":"#")+o,e.forced))&&g&&pe(g,o),c=m[o],n&&(l=e.dontCallGetSet?(f=Ye(g,o))&&f.value:g[o]),a=n&&l?l:t[o],(r||v||typeof c!=typeof a)&&(u=e.bind&&n?Ue(a,s):e.wrap&&n?Je(a):v&&C(a)?w(a):a,(e.sham||a&&a.sham||c&&c.sham)&&$e(u,"sham",!0),$e(m,o,u),v&&(pe(B,i=h+"Prototype")||$e(B,i,{}),$e(B[i],o,a),e.real&&y&&(r||!y[o])&&$e(y,o,a)))},et=Math.ceil,tt=Math.floor,rt=Math.trunc||function(e){var t=+e;return(t>0?tt:et)(t)},nt=function(e){var t=+e;return t!=t||0===t?0:rt(t)},it=Math.max,ot=Math.min,at=function(e,t){var r=nt(e);return r<0?it(r+t,0):ot(r,t)},st=Math.min,ct=function(e){var t=nt(e);return t>0?st(t,9007199254740991):0},lt=function(e){return ct(e.length)},ut=function(e){return function(t,r,n){var i=P(t),o=lt(i);if(0===o)return!e&&-1;var a,s=at(n,o);if(e&&r!=r){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},ft={includes:ut(!0),indexOf:ut(!1)},ht={},dt=ft.indexOf,pt=m([].push),vt=function(e,t){var r,n=P(e),i=0,o=[];for(r in n)!pe(ht,r)&&pe(n,r)&&pt(o,r);for(;t.length>i;)pe(n,r=t[i++])&&(~dt(o,r)||pt(o,r));return o},gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mt=Object.keys||function(e){return vt(e,gt)},yt={f:Object.getOwnPropertySymbols},_t=Object.assign,bt=Object.defineProperty,wt=m([].concat),St=!_t||c((function(){if(k&&1!==_t({b:1},_t(bt({},"a",{enumerable:!0,get:function(){bt(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection");return e[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!==_t({},e)[r]||"abcdefghijklmnopqrst"!==mt(_t({},t)).join("")}))?function(e,t){for(var r=he(e),n=arguments.length,i=1,o=yt.f,a=O.f;n>i;)for(var s,c=I(arguments[i++]),l=o?wt(mt(c),o(c)):mt(c),u=l.length,f=0;u>f;)s=l[f++],k&&!A(a,c,s)||(r[s]=c[s]);return r}:_t;Xe({target:"Object",stat:!0,arity:2,forced:Object.assign!==St},{assign:St});var Ct=B.Object.assign,kt=Ct,xt=m([].slice),At=Function,Et=m([].concat),Mt=m([].join),Ot={},Tt=function(e,t,r){if(!pe(Ot,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Ot[t]=At("C,a","return new C("+Mt(n,",")+")")}return Ot[t](e,r)},Lt=l?At.bind:function(e){var t=oe(this),r=t.prototype,n=xt(arguments,1),i=function(){var r=Et(n,xt(arguments));return this instanceof i?Tt(t,r.length,r):t.apply(e,r)};return D(r)&&(i.prototype=r),i};Xe({target:"Function",proto:!0,forced:Function.bind!==Lt},{bind:Lt});var Ft,It,Rt,jt=function(e,t){var r=B[e+"Prototype"],n=r&&r[t];if(n)return n;var i=s[e],o=i&&i.prototype;return o&&o[t]},Nt=jt("Function","bind"),Pt=Function.prototype,Dt=function(e){var t=e.bind;return e===Pt||z(Pt,e)&&t===Pt.bind?Nt:t},Bt=Dt,qt=t(r((function(e){function t(){var r;return e.exports=t=kt?Bt(r=kt).call(r):function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}))),Ut={},zt=s.WeakMap,Vt=C(zt)&&/native code/.test(String(zt)),Ht=ue("keys"),Kt=function(e){return Ht[e]||(Ht[e]=ye(e))},Gt=s.TypeError,Zt=s.WeakMap;if(Vt||le.state){var Qt=le.state||(le.state=new Zt);Qt.get=Qt.get,Qt.has=Qt.has,Qt.set=Qt.set,Ft=function(e,t){if(Qt.has(e))throw new Gt("Object already initialized");return t.facade=e,Qt.set(e,t),t},It=function(e){return Qt.get(e)||{}},Rt=function(e){return Qt.has(e)}}else{var Wt=Kt("state");ht[Wt]=!0,Ft=function(e,t){if(pe(e,Wt))throw new Gt("Object already initialized");return t.facade=e,$e(e,Wt,t),t},It=function(e){return pe(e,Wt)?e[Wt]:{}},Rt=function(e){return pe(e,Wt)}}var $t,Yt={set:Ft,get:It,has:Rt,enforce:function(e){return Rt(e)?It(e):Ft(e,{})},getterFor:function(e){return function(t){var r;if(!D(t)||(r=It(t)).type!==e)throw new Gt("Incompatible receiver, "+e+" required");return r}}},Jt=Function.prototype,Xt=k&&Object.getOwnPropertyDescriptor,er=pe(Jt,"name"),tr={EXISTS:er,PROPER:er&&"something"===function(){}.name,CONFIGURABLE:er&&(!k||k&&Xt(Jt,"name").configurable)},rr={f:k&&!ze?Object.defineProperties:function(e,t){Ke(e);for(var r,n=P(t),i=mt(t),o=i.length,a=0;o>a;)We.f(e,r=i[a++],n[r]);return e}},nr=U("document","documentElement"),ir=Kt("IE_PROTO"),or=function(){},ar=function(e){return"<script>"+e+"<\/script>"},sr=function(e){e.write(ar("")),e.close();var t=e.parentWindow.Object;return e=null,t},cr=function(){try{$t=new ActiveXObject("htmlfile")}catch(e){}var e,t;cr="undefined"!=typeof document?document.domain&&$t?sr($t):((t=Oe("iframe")).style.display="none",nr.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ar("document.F=Object")),e.close(),e.F):sr($t);for(var r=gt.length;r--;)delete cr.prototype[gt[r]];return cr()};ht[ir]=!0;var lr,ur,fr,hr=Object.create||function(e,t){var r;return null!==e?(or.prototype=Ke(e),r=new or,or.prototype=null,r[ir]=e):r=cr(),void 0===t?r:rr.f(r,t)},dr=!c((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),pr=Kt("IE_PROTO"),vr=Object,gr=vr.prototype,mr=dr?vr.getPrototypeOf:function(e){var t=he(e);if(pe(t,pr))return t[pr];var r=t.constructor;return C(r)&&t instanceof r?r.prototype:t instanceof vr?gr:null},yr=function(e,t,r,n){return n&&n.enumerable?e[t]=r:$e(e,t,r),e},_r=Se("iterator"),br=!1;[].keys&&("next"in(fr=[].keys())?(ur=mr(mr(fr)))!==Object.prototype&&(lr=ur):br=!0);var wr=!D(lr)||c((function(){var e={};return lr[_r].call(e)!==e}));lr=wr?{}:hr(lr),C(lr[_r])||yr(lr,_r,(function(){return this}));var Sr={IteratorPrototype:lr,BUGGY_SAFARI_ITERATORS:br},Cr={};Cr[Se("toStringTag")]="z";var kr="[object z]"===String(Cr),xr=Se("toStringTag"),Ar=Object,Er="Arguments"===b(function(){return arguments}()),Mr=kr?b:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Ar(e),xr))?r:Er?b(t):"Object"===(n=b(t))&&C(t.callee)?"Arguments":n},Or=kr?{}.toString:function(){return"[object "+Mr(this)+"]"},Tr=We.f,Lr=Se("toStringTag"),Fr=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(pe(i,Lr)||Tr(i,Lr,{configurable:!0,value:t}),n&&!kr&&$e(i,"toString",Or))},Ir=Sr.IteratorPrototype,Rr=function(){return this},jr=function(e,t,r,n){var i=t+" Iterator";return e.prototype=hr(Ir,{next:T(+!n,r)}),Fr(e,i,!1,!0),Ut[i]=Rr,e},Nr=String,Pr=TypeError,Dr=function(e){if(function(e){return D(e)||null===e}(e))return e;throw new Pr("Can't set "+Nr(e)+" as a prototype")},Br=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=function(e,t,r){try{return m(oe(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return N(r),Dr(n),D(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0),qr=tr.PROPER,Ur=Sr.BUGGY_SAFARI_ITERATORS,zr=Se("iterator"),Vr=function(){return this},Hr=function(e,t,r,n,i,o,a){jr(r,t,n);var s,c,l,u=function(e){if(e===i&&v)return v;if(!Ur&&e&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},f=t+" Iterator",h=!1,d=e.prototype,p=d[zr]||d["@@iterator"]||i&&d[i],v=!Ur&&p||u(i),g="Array"===t&&d.entries||p;if(g&&(s=mr(g.call(new e)))!==Object.prototype&&s.next&&(Fr(s,f,!0,!0),Ut[f]=Vr),qr&&"values"===i&&p&&"values"!==p.name&&(h=!0,v=function(){return A(p,this)}),i)if(c={values:u("values"),keys:o?v:u("keys"),entries:u("entries")},a)for(l in c)(Ur||h||!(l in d))&&yr(d,l,c[l]);else Xe({target:t,proto:!0,forced:Ur||h},c);return a&&d[zr]!==v&&yr(d,zr,v,{name:i}),Ut[t]=v,c},Kr=function(e,t){return{value:e,done:t}};We.f;var Gr=Yt.set,Zr=Yt.getterFor("Array Iterator");Hr(Array,"Array",(function(e,t){Gr(this,{type:"Array Iterator",target:P(e),index:0,kind:t})}),(function(){var e=Zr(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Kr(void 0,!0);switch(e.kind){case"keys":return Kr(r,!1);case"values":return Kr(t[r],!1)}return Kr([r,t[r]],!1)}),"values"),Ut.Arguments=Ut.Array;var Qr=Se("iterator"),Wr=Array.prototype,$r=function(e){return void 0!==e&&(Ut.Array===e||Wr[Qr]===e)},Yr=Se("iterator"),Jr=function(e){if(!R(e))return ae(e,Yr)||ae(e,"@@iterator")||Ut[Mr(e)]},Xr=TypeError,en=function(e,t){var r=arguments.length<2?Jr(e):t;if(oe(r))return Ke(A(r,e));throw new Xr(ne(e)+" is not iterable")},tn=function(e,t,r){var n,i;Ke(e);try{if(!(n=ae(e,"return"))){if("throw"===t)throw r;return r}n=A(n,e)}catch(e){i=!0,n=e}if("throw"===t)throw r;if(i)throw n;return Ke(n),r},rn=TypeError,nn=function(e,t){this.stopped=e,this.result=t},on=nn.prototype,an=function(e,t,r){var n,i,o,a,s,c,l,u=r&&r.that,f=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=Ue(t,u),g=function(e){return n&&tn(n,"normal",e),new nn(!0,e)},m=function(e){return f?(Ke(e),p?v(e[0],e[1],g):v(e[0],e[1])):p?v(e,g):v(e)};if(h)n=e.iterator;else if(d)n=e;else{if(!(i=Jr(e)))throw new rn(ne(e)+" is not iterable");if($r(i)){for(o=0,a=lt(e);a>o;o++)if((s=m(e[o]))&&z(on,s))return s;return new nn(!1)}n=en(e,i)}for(c=h?e.next:n.next;!(l=A(c,n)).done;){try{s=m(l.value)}catch(e){tn(n,"throw",e)}if("object"==typeof s&&s&&z(on,s))return s}return new nn(!1)},sn=function(e,t,r){k?We.f(e,t,T(0,r)):e[t]=r};Xe({target:"Object",stat:!0},{fromEntries:function(e){var t={};return an(e,(function(e,r){sn(t,e,r)}),{AS_ENTRIES:!0}),t}});var cn=B.Object.fromEntries;for(var ln in{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})Fr(s[ln],ln),Ut[ln]=Ut.Array;var un=cn,fn=Array.isArray||function(e){return"Array"===b(e)},hn=m(Function.toString);C(le.inspectSource)||(le.inspectSource=function(e){return hn(e)});var dn=le.inspectSource,pn=function(){},vn=U("Reflect","construct"),gn=/^\s*(?:class|function)\b/,mn=m(gn.exec),yn=!gn.test(pn),_n=function(e){if(!C(e))return!1;try{return vn(pn,[],e),!0}catch(e){return!1}},bn=function(e){if(!C(e))return!1;switch(Mr(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return yn||!!mn(gn,dn(e))}catch(e){return!0}};bn.sham=!0;var wn=!vn||c((function(){var e;return _n(_n.call)||!_n(Object)||!_n((function(){e=!0}))||e}))?bn:_n,Sn=Se("species"),Cn=Array,kn=function(e,t){return new(function(e){var t;return fn(e)&&(t=e.constructor,(wn(t)&&(t===Cn||fn(t.prototype))||D(t)&&null===(t=t[Sn]))&&(t=void 0)),void 0===t?Cn:t}(e))(0===t?0:t)},xn=m([].push),An=function(e){var t=1===e,r=2===e,n=3===e,i=4===e,o=6===e,a=7===e,s=5===e||o;return function(c,l,u,f){for(var h,d,p=he(c),v=I(p),g=lt(v),m=Ue(l,u),y=0,_=f||kn,b=t?_(c,g):r||a?_(c,0):void 0;g>y;y++)if((s||y in v)&&(d=m(h=v[y],y,p),e))if(t)b[y]=d;else if(d)switch(e){case 3:return!0;case 5:return h;case 6:return y;case 2:xn(b,h)}else switch(e){case 4:return!1;case 7:xn(b,h)}return o?-1:n||i?i:b}},En={forEach:An(0),map:An(1),filter:An(2),some:An(3),every:An(4),find:An(5),findIndex:An(6),filterReject:An(7)},Mn=function(e,t){var r=[][e];return!!r&&c((function(){r.call(null,t||function(){return 1},1)}))},On=En.forEach,Tn=Mn("forEach")?[].forEach:function(e){return On(this,e,arguments.length>1?arguments[1]:void 0)};Xe({target:"Array",proto:!0,forced:[].forEach!==Tn},{forEach:Tn});var Ln=jt("Array","forEach");n(Object.freeze({__proto__:null}));var Fn=Array.prototype,In={DOMTokenList:!0,NodeList:!0},Rn=function(e){var t=e.forEach;return e===Fn||z(Fn,e)&&t===Fn.forEach||pe(In,Mr(e))?Ln:t},jn=Rn,Nn=Se("species"),Pn=function(e){return $>=51||!c((function(){var t=[];return(t.constructor={})[Nn]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Dn=En.filter,Bn=Pn("filter");Xe({target:"Array",proto:!0,forced:!Bn},{filter:function(e){return Dn(this,e,arguments.length>1?arguments[1]:void 0)}});var qn=jt("Array","filter"),Un=Array.prototype,zn=function(e){var t=e.filter;return e===Un||z(Un,e)&&t===Un.filter?qn:t},Vn=gt.concat("length","prototype"),Hn={f:Object.getOwnPropertyNames||function(e){return vt(e,Vn)}},Kn=m([].concat),Gn=U("Reflect","ownKeys")||function(e){var t=Hn.f(Ke(e)),r=yt.f;return r?Kn(t,r(e)):t},Zn=function(e,t){D(t)&&"cause"in t&&$e(e,"cause",t.cause)},Qn=Error,Wn=m("".replace),$n=String(new Qn("zxcasd").stack),Yn=/\n\s*at [^:]*:[^\n]*/,Jn=Yn.test($n),Xn=!c((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",T(1,7)),7!==e.stack)})),ei=Error.captureStackTrace,ti=function(e,t,r,n){Xn&&(ei?ei(e,t):$e(e,"stack",function(e,t){if(Jn&&"string"==typeof e&&!Qn.prepareStackTrace)for(;t--;)e=Wn(e,Yn,"");return e}(r,n)))},ri=String,ni=function(e){if("Symbol"===Mr(e))throw new TypeError("Cannot convert a Symbol value to a string");return ri(e)},ii=function(e,t){return void 0===e?arguments.length<2?"":t:ni(e)},oi=Se("toStringTag"),ai=Error,si=[].push,ci=function(e,t){var r,n=z(li,this);Br?r=Br(new ai,n?mr(this):li):(r=n?this:hr(li),$e(r,oi,"Error")),void 0!==t&&$e(r,"message",ii(t)),ti(r,ci,r.stack,1),arguments.length>2&&Zn(r,arguments[2]);var i=[];return an(e,si,{that:i}),$e(r,"errors",i),r};Br?Br(ci,ai):function(e,t,r){for(var n=Gn(t),i=We.f,o=Fe.f,a=0;a<n.length;a++){var s=n[a];pe(e,s)||r&&pe(r,s)||i(e,s,o(t,s))}}(ci,ai,{name:!0});var li=ci.prototype=hr(ai.prototype,{constructor:T(1,ci),message:T(1,""),name:T(1,"AggregateError")});Xe({global:!0,constructor:!0,arity:2},{AggregateError:ci});var ui,fi,hi,di,pi=Object.freeze({__proto__:null}),vi=function(e){return K.slice(0,e.length)===e},gi=vi("Bun/")?"BUN":vi("Cloudflare-Workers")?"CLOUDFLARE":vi("Deno/")?"DENO":vi("Node.js/")?"NODE":s.Bun&&"string"==typeof Bun.version?"BUN":s.Deno&&"object"==typeof Deno.version?"DENO":"process"===b(s.process)?"NODE":s.window&&s.document?"BROWSER":"REST",mi="NODE"===gi,yi=function(e,t,r){return We.f(e,t,r)},_i=Se("species"),bi=function(e){var t=U(e);k&&t&&!t[_i]&&yi(t,_i,{configurable:!0,get:function(){return this}})},wi=TypeError,Si=function(e,t){if(z(t,e))return e;throw new wi("Incorrect invocation")},Ci=TypeError,ki=function(e){if(wn(e))return e;throw new Ci(ne(e)+" is not a constructor")},xi=Se("species"),Ai=function(e,t){var r,n=Ke(e).constructor;return void 0===n||R(r=Ke(n)[xi])?t:ki(r)},Ei=TypeError,Mi=function(e,t){if(e<t)throw new Ei("Not enough arguments");return e},Oi=/(?:ipad|iphone|ipod).*applewebkit/i.test(K),Ti=s.setImmediate,Li=s.clearImmediate,Fi=s.process,Ii=s.Dispatch,Ri=s.Function,ji=s.MessageChannel,Ni=s.String,Pi=0,Di={};c((function(){ui=s.location}));var Bi=function(e){if(pe(Di,e)){var t=Di[e];delete Di[e],t()}},qi=function(e){return function(){Bi(e)}},Ui=function(e){Bi(e.data)},zi=function(e){s.postMessage(Ni(e),ui.protocol+"//"+ui.host)};Ti&&Li||(Ti=function(e){Mi(arguments.length,1);var t=C(e)?e:Ri(e),r=xt(arguments,1);return Di[++Pi]=function(){d(t,void 0,r)},fi(Pi),Pi},Li=function(e){delete Di[e]},mi?fi=function(e){Fi.nextTick(qi(e))}:Ii&&Ii.now?fi=function(e){Ii.now(qi(e))}:ji&&!Oi?(di=(hi=new ji).port2,hi.port1.onmessage=Ui,fi=Ue(di.postMessage,di)):s.addEventListener&&C(s.postMessage)&&!s.importScripts&&ui&&"file:"!==ui.protocol&&!c(zi)?(fi=zi,s.addEventListener("message",Ui,!1)):fi="onreadystatechange"in Oe("script")?function(e){nr.appendChild(Oe("script")).onreadystatechange=function(){nr.removeChild(this),Bi(e)}}:function(e){setTimeout(qi(e),0)});var Vi={set:Ti,clear:Li},Hi=Object.getOwnPropertyDescriptor,Ki=function(e){if(!k)return s[e];var t=Hi(s,e);return t&&t.value},Gi=function(){this.head=null,this.tail=null};Gi.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var Zi,Qi,Wi,$i,Yi,Ji=Gi,Xi=/ipad|iphone|ipod/i.test(K)&&"undefined"!=typeof Pebble,eo=/web0s(?!.*chrome)/i.test(K),to=Vi.set,ro=s.MutationObserver||s.WebKitMutationObserver,no=s.document,io=s.process,oo=s.Promise,ao=Ki("queueMicrotask");if(!ao){var so=new Ji,co=function(){var e,t;for(mi&&(e=io.domain)&&e.exit();t=so.get();)try{t()}catch(e){throw so.head&&Zi(),e}e&&e.enter()};Oi||mi||eo||!ro||!no?!Xi&&oo&&oo.resolve?(($i=oo.resolve(void 0)).constructor=oo,Yi=Ue($i.then,$i),Zi=function(){Yi(co)}):mi?Zi=function(){io.nextTick(co)}:(to=Ue(to,s),Zi=function(){to(co)}):(Qi=!0,Wi=no.createTextNode(""),new ro(co).observe(Wi,{characterData:!0}),Zi=function(){Wi.data=Qi=!Qi}),ao=function(e){so.head||Zi(),so.add(e)}}var lo,uo,fo=ao,ho=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},po=s.Promise,vo=po&&po.prototype,go=Se("species"),mo=!1,yo=C(s.PromiseRejectionEvent),_o={CONSTRUCTOR:Be("Promise",(function(){var e=dn(po),t=e!==String(po);if(!t&&66===$)return!0;if(!vo.catch||!vo.finally)return!0;if(!$||$<51||!/native code/.test(e)){var r=new po((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[go]=n,!(mo=r.then((function(){}))instanceof n))return!0}return!(t||"BROWSER"!==gi&&"DENO"!==gi||yo)})),REJECTION_EVENT:yo,SUBCLASSING:mo},bo=TypeError,wo=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new bo("Bad Promise constructor");t=e,r=n})),this.resolve=oe(t),this.reject=oe(r)},So={f:function(e){return new wo(e)}},Co=Vi.set,ko=_o.CONSTRUCTOR,xo=_o.REJECTION_EVENT,Ao=Yt.getterFor("Promise"),Eo=Yt.set,Mo=po&&po.prototype,Oo=po,To=Mo,Lo=s.TypeError,Fo=s.document,Io=s.process,Ro=So.f,jo=Ro,No=!!(Fo&&Fo.createEvent&&s.dispatchEvent),Po=function(e){var t;return!(!D(e)||!C(t=e.then))&&t},Do=function(e,t){var r,n,i,o=t.value,a=1===t.state,s=a?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(a||(2===t.rejection&&Vo(t),t.rejection=1),!0===s?r=o:(u&&u.enter(),r=s(o),u&&(u.exit(),i=!0)),r===e.promise?l(new Lo("Promise-chain cycle")):(n=Po(r))?A(n,r,c,l):c(r)):l(o)}catch(e){u&&!i&&u.exit(),l(e)}},Bo=function(e,t){e.notified||(e.notified=!0,fo((function(){for(var r,n=e.reactions;r=n.get();)Do(r,e);e.notified=!1,t&&!e.rejection&&Uo(e)})))},qo=function(e,t,r){var n,i;No?((n=Fo.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),s.dispatchEvent(n)):n={promise:t,reason:r},!xo&&(i=s["on"+e])?i(n):"unhandledrejection"===e&&function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}("Unhandled promise rejection",r)},Uo=function(e){A(Co,s,(function(){var t,r=e.facade,n=e.value;if(zo(e)&&(t=ho((function(){mi?Io.emit("unhandledRejection",n,r):qo("unhandledrejection",r,n)})),e.rejection=mi||zo(e)?2:1,t.error))throw t.value}))},zo=function(e){return 1!==e.rejection&&!e.parent},Vo=function(e){A(Co,s,(function(){var t=e.facade;mi?Io.emit("rejectionHandled",t):qo("rejectionhandled",t,e.value)}))},Ho=function(e,t,r){return function(n){e(t,n,r)}},Ko=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Bo(e,!0))},Go=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new Lo("Promise can't be resolved itself");var n=Po(t);n?fo((function(){var r={done:!1};try{A(n,t,Ho(Go,r,e),Ho(Ko,r,e))}catch(t){Ko(r,t,e)}})):(e.value=t,e.state=1,Bo(e,!1))}catch(t){Ko({done:!1},t,e)}}};ko&&(To=(Oo=function(e){Si(this,To),oe(e),A(lo,this);var t=Ao(this);try{e(Ho(Go,t),Ho(Ko,t))}catch(e){Ko(t,e)}}).prototype,(lo=function(e){Eo(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new Ji,rejection:!1,state:0,value:null})}).prototype=yr(To,"then",(function(e,t){var r=Ao(this),n=Ro(Ai(this,Oo));return r.parent=!0,n.ok=!C(e)||e,n.fail=C(t)&&t,n.domain=mi?Io.domain:void 0,0===r.state?r.reactions.add(n):fo((function(){Do(n,r)})),n.promise})),uo=function(){var e=new lo,t=Ao(e);this.promise=e,this.resolve=Ho(Go,t),this.reject=Ho(Ko,t)},So.f=Ro=function(e){return e===Oo||void 0===e?new uo(e):jo(e)}),Xe({global:!0,constructor:!0,wrap:!0,forced:ko},{Promise:Oo}),Fr(Oo,"Promise",!1,!0),bi("Promise");var Zo=Se("iterator"),Qo=!1;try{var Wo=0,$o={next:function(){return{done:!!Wo++}},return:function(){Qo=!0}};$o[Zo]=function(){return this},Array.from($o,(function(){throw 2}))}catch(e){}var Yo=function(e,t){try{if(!t&&!Qo)return!1}catch(e){return!1}var r=!1;try{var n={};n[Zo]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},Jo=_o.CONSTRUCTOR||!Yo((function(e){po.all(e).then(void 0,(function(){}))}));Xe({target:"Promise",stat:!0,forced:Jo},{all:function(e){var t=this,r=So.f(t),n=r.resolve,i=r.reject,o=ho((function(){var r=oe(t.resolve),o=[],a=0,s=1;an(e,(function(e){var c=a++,l=!1;s++,A(r,t,e).then((function(e){l||(l=!0,o[c]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise}});var Xo=_o.CONSTRUCTOR;po&&po.prototype,Xe({target:"Promise",proto:!0,forced:Xo,real:!0},{catch:function(e){return this.then(void 0,e)}}),Xe({target:"Promise",stat:!0,forced:Jo},{race:function(e){var t=this,r=So.f(t),n=r.reject,i=ho((function(){var i=oe(t.resolve);an(e,(function(e){A(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}}),Xe({target:"Promise",stat:!0,forced:_o.CONSTRUCTOR},{reject:function(e){var t=So.f(this);return(0,t.reject)(e),t.promise}});var ea=function(e,t){if(Ke(e),D(t)&&t.constructor===e)return t;var r=So.f(e);return(0,r.resolve)(t),r.promise},ta=_o.CONSTRUCTOR,ra=U("Promise"),na=!ta;Xe({target:"Promise",stat:!0,forced:!0},{resolve:function(e){return ea(na&&this===ra?po:this,e)}}),Xe({target:"Promise",stat:!0,forced:Jo},{allSettled:function(e){var t=this,r=So.f(t),n=r.resolve,i=r.reject,o=ho((function(){var r=oe(t.resolve),i=[],o=0,a=1;an(e,(function(e){var s=o++,c=!1;a++,A(r,t,e).then((function(e){c||(c=!0,i[s]={status:"fulfilled",value:e},--a||n(i))}),(function(e){c||(c=!0,i[s]={status:"rejected",reason:e},--a||n(i))}))})),--a||n(i)}));return o.error&&i(o.value),r.promise}});Xe({target:"Promise",stat:!0,forced:Jo},{any:function(e){var t=this,r=U("AggregateError"),n=So.f(t),i=n.resolve,o=n.reject,a=ho((function(){var n=oe(t.resolve),a=[],s=0,c=1,l=!1;an(e,(function(e){var u=s++,f=!1;c++,A(n,t,e).then((function(e){f||l||(l=!0,i(e))}),(function(e){f||l||(f=!0,a[u]=e,--c||o(new r(a,"No one promise resolved")))}))})),--c||o(new r(a,"No one promise resolved"))}));return a.error&&o(a.value),n.promise}});var ia=s.Promise,oa=!1,aa=!ia||!ia.try||ho((function(){ia.try((function(e){oa=8===e}),8)})).error||!oa;Xe({target:"Promise",stat:!0,forced:aa},{try:function(e){var t=arguments.length>1?xt(arguments,1):[],r=So.f(this),n=ho((function(){return d(oe(e),void 0,t)}));return(n.error?r.reject:r.resolve)(n.value),r.promise}}),Xe({target:"Promise",stat:!0},{withResolvers:function(){var e=So.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}});var sa=po&&po.prototype,ca=!!po&&c((function(){sa.finally.call({then:function(){}},(function(){}))}));Xe({target:"Promise",proto:!0,real:!0,forced:ca},{finally:function(e){var t=Ai(this,U("Promise")),r=C(e);return this.then(r?function(r){return ea(t,e()).then((function(){return r}))}:e,r?function(r){return ea(t,e()).then((function(){throw r}))}:e)}});var la=m("".charAt),ua=m("".charCodeAt),fa=m("".slice),ha=function(e){return function(t,r){var n,i,o=ni(N(t)),a=nt(r),s=o.length;return a<0||a>=s?e?"":void 0:(n=ua(o,a))<55296||n>56319||a+1===s||(i=ua(o,a+1))<56320||i>57343?e?la(o,a):n:e?fa(o,a,a+2):i-56320+(n-55296<<10)+65536}},da={codeAt:ha(!1),charAt:ha(!0)},pa=da.charAt,va=Yt.set,ga=Yt.getterFor("String Iterator");Hr(String,"String",(function(e){va(this,{type:"String Iterator",string:ni(e),index:0})}),(function(){var e,t=ga(this),r=t.string,n=t.index;return n>=r.length?Kr(void 0,!0):(e=pa(r,n),t.index+=e.length,Kr(e,!1))})),n(pi);var ma=B.Promise,ya=ma,_a=ft.includes,ba=c((function(){return!Array(1).includes()}));Xe({target:"Array",proto:!0,forced:ba},{includes:function(e){return _a(this,e,arguments.length>1?arguments[1]:void 0)}});var wa=jt("Array","includes"),Sa=Se("match"),Ca=TypeError,ka=function(e){if(function(e){var t;return D(e)&&(void 0!==(t=e[Sa])?!!t:"RegExp"===b(e))}(e))throw new Ca("The method doesn't accept regular expressions");return e},xa=Se("match"),Aa=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[xa]=!1,"/./"[e](t)}catch(e){}}return!1},Ea=m("".indexOf);Xe({target:"String",proto:!0,forced:!Aa("includes")},{includes:function(e){return!!~Ea(ni(N(this)),ni(ka(e)),arguments.length>1?arguments[1]:void 0)}});var Ma=jt("String","includes"),Oa=Array.prototype,Ta=String.prototype,La=function(e){var t=e.includes;return e===Oa||z(Oa,e)&&t===Oa.includes?wa:"string"==typeof e||e===Ta||z(Ta,e)&&t===Ta.includes?Ma:t},Fa=La,Ia=RangeError,Ra=String.fromCharCode,ja=String.fromCodePoint,Na=m([].join),Pa=!!ja&&1!==ja.length;Xe({target:"String",stat:!0,arity:1,forced:Pa},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,i=0;n>i;){if(t=+arguments[i++],at(t,1114111)!==t)throw new Ia(t+" is not a valid code point");r[i]=t<65536?Ra(t):Ra(55296+((t-=65536)>>10),t%1024+56320)}return Na(r,"")}});var Da=Se("iterator"),Ba=!c((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),r.delete("a",2),r.delete("b",void 0),!e.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b")||!t.size&&!0||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Da]||"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})),qa=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:yr(e,n,t[n],r);return e},Ua=Math.floor,za=function(e,t){var r=e.length;if(r<8)for(var n,i,o=1;o<r;){for(i=o,n=e[o];i&&t(e[i-1],n)>0;)e[i]=e[--i];i!==o++&&(e[i]=n)}else for(var a=Ua(r/2),s=za(xt(e,0,a),t),c=za(xt(e,a),t),l=s.length,u=c.length,f=0,h=0;f<l||h<u;)e[f+h]=f<l&&h<u?t(s[f],c[h])<=0?s[f++]:c[h++]:f<l?s[f++]:c[h++];return e},Va=za,Ha=Se("iterator"),Ka=Yt.set,Ga=Yt.getterFor("URLSearchParams"),Za=Yt.getterFor("URLSearchParamsIterator"),Qa=Ki("fetch"),Wa=Ki("Request"),$a=Ki("Headers"),Ya=Wa&&Wa.prototype,Ja=$a&&$a.prototype,Xa=s.TypeError,es=s.encodeURIComponent,ts=String.fromCharCode,rs=U("String","fromCodePoint"),ns=parseInt,is=m("".charAt),os=m([].join),as=m([].push),ss=m("".replace),cs=m([].shift),ls=m([].splice),us=m("".split),fs=m("".slice),hs=m(/./.exec),ds=/\+/g,ps=/^[0-9a-f]+$/i,vs=function(e,t){var r=fs(e,t,t+2);return hs(ps,r)?ns(r,16):NaN},gs=function(e){for(var t=0,r=128;r>0&&0!=(e&r);r>>=1)t++;return t},ms=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},ys=function(e){for(var t=(e=ss(e,ds," ")).length,r="",n=0;n<t;){var i=is(e,n);if("%"===i){if("%"===is(e,n+1)||n+3>t){r+="%",n++;continue}var o=vs(e,n+1);if(o!=o){r+=i,n++;continue}n+=2;var a=gs(o);if(0===a)i=ts(o);else{if(1===a||a>4){r+="�",n++;continue}for(var s=[o],c=1;c<a&&!(++n+3>t||"%"!==is(e,n));){var l=vs(e,n+1);if(l!=l){n+=3;break}if(l>191||l<128)break;as(s,l),n+=2,c++}if(s.length!==a){r+="�";continue}var u=ms(s);null===u?r+="�":i=rs(u)}}r+=i,n++}return r},_s=/[!'()~]|%20/g,bs={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ws=function(e){return bs[e]},Ss=function(e){return ss(es(e),_s,ws)},Cs=jr((function(e,t){Ka(this,{type:"URLSearchParamsIterator",target:Ga(e).entries,index:0,kind:t})}),"URLSearchParams",(function(){var e=Za(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Kr(void 0,!0);var n=t[r];switch(e.kind){case"keys":return Kr(n.key,!1);case"values":return Kr(n.value,!1)}return Kr([n.key,n.value],!1)}),!0),ks=function(e){this.entries=[],this.url=null,void 0!==e&&(D(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===is(e,0)?fs(e,1):e:ni(e)))};ks.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,c=this.entries,l=Jr(e);if(l)for(r=(t=en(e,l)).next;!(n=A(r,t)).done;){if(o=(i=en(Ke(n.value))).next,(a=A(o,i)).done||(s=A(o,i)).done||!A(o,i).done)throw new Xa("Expected sequence with length 2");as(c,{key:ni(a.value),value:ni(s.value)})}else for(var u in e)pe(e,u)&&as(c,{key:u,value:ni(e[u])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,i=us(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(r=us(t,"="),as(n,{key:ys(cs(r)),value:ys(os(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],as(r,Ss(e.key)+"="+Ss(e.value));return os(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var xs=function(){Si(this,As);var e=arguments.length>0?arguments[0]:void 0,t=Ka(this,new ks(e));k||(this.size=t.entries.length)},As=xs.prototype;if(qa(As,{append:function(e,t){var r=Ga(this);Mi(arguments.length,2),as(r.entries,{key:ni(e),value:ni(t)}),k||this.length++,r.updateURL()},delete:function(e){for(var t=Ga(this),r=Mi(arguments.length,1),n=t.entries,i=ni(e),o=r<2?void 0:arguments[1],a=void 0===o?o:ni(o),s=0;s<n.length;){var c=n[s];if(c.key!==i||void 0!==a&&c.value!==a)s++;else if(ls(n,s,1),void 0!==a)break}k||(this.size=n.length),t.updateURL()},get:function(e){var t=Ga(this).entries;Mi(arguments.length,1);for(var r=ni(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=Ga(this).entries;Mi(arguments.length,1);for(var r=ni(e),n=[],i=0;i<t.length;i++)t[i].key===r&&as(n,t[i].value);return n},has:function(e){for(var t=Ga(this).entries,r=Mi(arguments.length,1),n=ni(e),i=r<2?void 0:arguments[1],o=void 0===i?i:ni(i),a=0;a<t.length;){var s=t[a++];if(s.key===n&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var r=Ga(this);Mi(arguments.length,1);for(var n,i=r.entries,o=!1,a=ni(e),s=ni(t),c=0;c<i.length;c++)(n=i[c]).key===a&&(o?ls(i,c--,1):(o=!0,n.value=s));o||as(i,{key:a,value:s}),k||(this.size=i.length),r.updateURL()},sort:function(){var e=Ga(this);Va(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=Ga(this).entries,n=Ue(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new Cs(this,"keys")},values:function(){return new Cs(this,"values")},entries:function(){return new Cs(this,"entries")}},{enumerable:!0}),yr(As,Ha,As.entries,{name:"entries"}),yr(As,"toString",(function(){return Ga(this).serialize()}),{enumerable:!0}),k&&yi(As,"size",{get:function(){return Ga(this).entries.length},configurable:!0,enumerable:!0}),Fr(xs,"URLSearchParams"),Xe({global:!0,constructor:!0,forced:!Ba},{URLSearchParams:xs}),!Ba&&C($a)){var Es=m(Ja.has),Ms=m(Ja.set),Os=function(e){if(D(e)){var t,r=e.body;if("URLSearchParams"===Mr(r))return t=e.headers?new $a(e.headers):new $a,Es(t,"content-type")||Ms(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),hr(e,{body:T(0,ni(r)),headers:T(0,t)})}return e};if(C(Qa)&&Xe({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Qa(e,arguments.length>1?Os(arguments[1]):{})}}),C(Wa)){var Ts=function(e){return Si(this,Ya),new Wa(e,arguments.length>1?Os(arguments[1]):{})};Ya.constructor=Ts,Ts.prototype=Ya,Xe({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Ts})}}var Ls,Fs={URLSearchParams:xs,getState:Ga},Is=B.URLSearchParams,Rs=function(e,t,r,n){try{return n?t(Ke(r)[0],r[1]):t(r)}catch(t){tn(e,"throw",t)}},js=Array,Ns=function(e){var t=he(e),r=wn(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=Ue(i,n>2?arguments[2]:void 0));var a,s,c,l,u,f,h=Jr(t),d=0;if(!h||this===js&&$r(h))for(a=lt(t),s=r?new this(a):js(a);a>d;d++)f=o?i(t[d],d):t[d],sn(s,d,f);else for(s=r?new this:[],u=(l=en(t,h)).next;!(c=A(u,l)).done;d++)f=o?Rs(l,i,[c.value,d],!0):c.value,sn(s,d,f);return s.length=d,s},Ps=/[^\0-\u007E]/,Ds=/[.\u3002\uFF0E\uFF61]/g,Bs="Overflow: input needs wider integers to process",qs=RangeError,Us=m(Ds.exec),zs=Math.floor,Vs=String.fromCharCode,Hs=m("".charCodeAt),Ks=m([].join),Gs=m([].push),Zs=m("".replace),Qs=m("".split),Ws=m("".toLowerCase),$s=function(e){return e+22+75*(e<26)},Ys=function(e,t,r){var n=0;for(e=r?zs(e/700):e>>1,e+=zs(e/t);e>455;)e=zs(e/35),n+=36;return zs(n+36*e/(e+38))},Js=function(e){var t,r,n=[],i=(e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=Hs(e,r++);if(i>=55296&&i<=56319&&r<n){var o=Hs(e,r++);56320==(64512&o)?Gs(t,((1023&i)<<10)+(1023&o)+65536):(Gs(t,i),r--)}else Gs(t,i)}return t}(e)).length,o=128,a=0,s=72;for(t=0;t<e.length;t++)(r=e[t])<128&&Gs(n,Vs(r));var c=n.length,l=c;for(c&&Gs(n,"-");l<i;){var u=2147483647;for(t=0;t<e.length;t++)(r=e[t])>=o&&r<u&&(u=r);var f=l+1;if(u-o>zs((2147483647-a)/f))throw new qs(Bs);for(a+=(u-o)*f,o=u,t=0;t<e.length;t++){if((r=e[t])<o&&++a>2147483647)throw new qs(Bs);if(r===o){for(var h=a,d=36;;){var p=d<=s?1:d>=s+26?26:d-s;if(h<p)break;var v=h-p,g=36-p;Gs(n,Vs($s(p+v%g))),h=zs(v/g),d+=36}Gs(n,Vs($s(h))),s=Ys(a,f,l===c),a=0,l++}}a++,o++}return Ks(n,"")},Xs=da.codeAt,ec=Yt.set,tc=Yt.getterFor("URL"),rc=Fs.URLSearchParams,nc=Fs.getState,ic=s.URL,oc=s.TypeError,ac=s.parseInt,sc=Math.floor,cc=Math.pow,lc=m("".charAt),uc=m(/./.exec),fc=m([].join),hc=m(1..toString),dc=m([].pop),pc=m([].push),vc=m("".replace),gc=m([].shift),mc=m("".split),yc=m("".slice),_c=m("".toLowerCase),bc=m([].unshift),wc=/[a-z]/i,Sc=/[\d+-.a-z]/i,Cc=/\d/,kc=/^0x/i,xc=/^[0-7]+$/,Ac=/^\d+$/,Ec=/^[\da-f]+$/i,Mc=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Oc=/[\0\t\n\r #/:<>?@[\\\]^|]/,Tc=/^[\u0000-\u0020]+/,Lc=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Fc=/[\t\n\r]/g,Ic=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)bc(t,e%256),e=sc(e/256);return fc(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r?n:t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=hc(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},Rc={},jc=St({},Rc,{" ":1,'"':1,"<":1,">":1,"`":1}),Nc=St({},jc,{"#":1,"?":1,"{":1,"}":1}),Pc=St({},Nc,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Dc=function(e,t){var r=Xs(e,0);return r>32&&r<127&&!pe(t,e)?e:encodeURIComponent(e)},Bc={ftp:21,file:null,http:80,https:443,ws:80,wss:443},qc=function(e,t){var r;return 2===e.length&&uc(wc,lc(e,0))&&(":"===(r=lc(e,1))||!t&&"|"===r)},Uc=function(e){var t;return e.length>1&&qc(yc(e,0,2))&&(2===e.length||"/"===(t=lc(e,2))||"\\"===t||"?"===t||"#"===t)},zc=function(e){return"."===e||"%2e"===_c(e)},Vc={},Hc={},Kc={},Gc={},Zc={},Qc={},Wc={},$c={},Yc={},Jc={},Xc={},el={},tl={},rl={},nl={},il={},ol={},al={},sl={},cl={},ll={},ul=function(e,t,r){var n,i,o,a=ni(e);if(t){if(i=this.parse(a))throw new oc(i);this.searchParams=null}else{if(void 0!==r&&(n=new ul(r,!0)),i=this.parse(a,null,n))throw new oc(i);(o=nc(new rc)).bindURL(this),this.searchParams=o}};ul.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,s,c=this,l=t||Vc,u=0,f="",h=!1,d=!1,p=!1;for(e=ni(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=vc(e,Tc,""),e=vc(e,Lc,"$1")),e=vc(e,Fc,""),n=Ns(e);u<=n.length;){switch(i=n[u],l){case Vc:if(!i||!uc(wc,i)){if(t)return"Invalid scheme";l=Kc;continue}f+=_c(i),l=Hc;break;case Hc:if(i&&(uc(Sc,i)||"+"===i||"-"===i||"."===i))f+=_c(i);else{if(":"!==i){if(t)return"Invalid scheme";f="",l=Kc,u=0;continue}if(t&&(c.isSpecial()!==pe(Bc,f)||"file"===f&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=f,t)return void(c.isSpecial()&&Bc[c.scheme]===c.port&&(c.port=null));f="","file"===c.scheme?l=rl:c.isSpecial()&&r&&r.scheme===c.scheme?l=Gc:c.isSpecial()?l=$c:"/"===n[u+1]?(l=Zc,u++):(c.cannotBeABaseURL=!0,pc(c.path,""),l=sl)}break;case Kc:if(!r||r.cannotBeABaseURL&&"#"!==i)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"===i){c.scheme=r.scheme,c.path=xt(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,l=ll;break}l="file"===r.scheme?rl:Qc;continue;case Gc:if("/"!==i||"/"!==n[u+1]){l=Qc;continue}l=Yc,u++;break;case Zc:if("/"===i){l=Jc;break}l=al;continue;case Qc:if(c.scheme=r.scheme,i===Ls)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=xt(r.path),c.query=r.query;else if("/"===i||"\\"===i&&c.isSpecial())l=Wc;else if("?"===i)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=xt(r.path),c.query="",l=cl;else{if("#"!==i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=xt(r.path),c.path.length--,l=al;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=xt(r.path),c.query=r.query,c.fragment="",l=ll}break;case Wc:if(!c.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,l=al;continue}l=Jc}else l=Yc;break;case $c:if(l=Yc,"/"!==i||"/"!==lc(f,u+1))continue;u++;break;case Yc:if("/"!==i&&"\\"!==i){l=Jc;continue}break;case Jc:if("@"===i){h&&(f="%40"+f),h=!0,o=Ns(f);for(var v=0;v<o.length;v++){var g=o[v];if(":"!==g||p){var m=Dc(g,Pc);p?c.password+=m:c.username+=m}else p=!0}f=""}else if(i===Ls||"/"===i||"?"===i||"#"===i||"\\"===i&&c.isSpecial()){if(h&&""===f)return"Invalid authority";u-=Ns(f).length+1,f="",l=Xc}else f+=i;break;case Xc:case el:if(t&&"file"===c.scheme){l=il;continue}if(":"!==i||d){if(i===Ls||"/"===i||"?"===i||"#"===i||"\\"===i&&c.isSpecial()){if(c.isSpecial()&&""===f)return"Invalid host";if(t&&""===f&&(c.includesCredentials()||null!==c.port))return;if(a=c.parseHost(f))return a;if(f="",l=ol,t)return;continue}"["===i?d=!0:"]"===i&&(d=!1),f+=i}else{if(""===f)return"Invalid host";if(a=c.parseHost(f))return a;if(f="",l=tl,t===el)return}break;case tl:if(!uc(Cc,i)){if(i===Ls||"/"===i||"?"===i||"#"===i||"\\"===i&&c.isSpecial()||t){if(""!==f){var y=ac(f,10);if(y>65535)return"Invalid port";c.port=c.isSpecial()&&y===Bc[c.scheme]?null:y,f=""}if(t)return;l=ol;continue}return"Invalid port"}f+=i;break;case rl:if(c.scheme="file","/"===i||"\\"===i)l=nl;else{if(!r||"file"!==r.scheme){l=al;continue}switch(i){case Ls:c.host=r.host,c.path=xt(r.path),c.query=r.query;break;case"?":c.host=r.host,c.path=xt(r.path),c.query="",l=cl;break;case"#":c.host=r.host,c.path=xt(r.path),c.query=r.query,c.fragment="",l=ll;break;default:Uc(fc(xt(n,u),""))||(c.host=r.host,c.path=xt(r.path),c.shortenPath()),l=al;continue}}break;case nl:if("/"===i||"\\"===i){l=il;break}r&&"file"===r.scheme&&!Uc(fc(xt(n,u),""))&&(qc(r.path[0],!0)?pc(c.path,r.path[0]):c.host=r.host),l=al;continue;case il:if(i===Ls||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&qc(f))l=al;else if(""===f){if(c.host="",t)return;l=ol}else{if(a=c.parseHost(f))return a;if("localhost"===c.host&&(c.host=""),t)return;f="",l=ol}continue}f+=i;break;case ol:if(c.isSpecial()){if(l=al,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==Ls&&(l=al,"/"!==i))continue}else c.fragment="",l=ll;else c.query="",l=cl;break;case al:if(i===Ls||"/"===i||"\\"===i&&c.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(s=_c(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"===i||"\\"===i&&c.isSpecial()||pc(c.path,"")):zc(f)?"/"===i||"\\"===i&&c.isSpecial()||pc(c.path,""):("file"===c.scheme&&!c.path.length&&qc(f)&&(c.host&&(c.host=""),f=lc(f,0)+":"),pc(c.path,f)),f="","file"===c.scheme&&(i===Ls||"?"===i||"#"===i))for(;c.path.length>1&&""===c.path[0];)gc(c.path);"?"===i?(c.query="",l=cl):"#"===i&&(c.fragment="",l=ll)}else f+=Dc(i,Nc);break;case sl:"?"===i?(c.query="",l=cl):"#"===i?(c.fragment="",l=ll):i!==Ls&&(c.path[0]+=Dc(i,Rc));break;case cl:t||"#"!==i?i!==Ls&&("'"===i&&c.isSpecial()?c.query+="%27":c.query+="#"===i?"%23":Dc(i,Rc)):(c.fragment="",l=ll);break;case ll:i!==Ls&&(c.fragment+=Dc(i,jc))}u++}},parseHost:function(e){var t,r,n;if("["===lc(e,0)){if("]"!==lc(e,e.length-1))return"Invalid host";if(!(t=function(e){var t,r,n,i,o,a,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,f=0,h=function(){return lc(e,f)};if(":"===h()){if(":"!==lc(e,1))return;f+=2,u=++l}for(;h();){if(8===l)return;if(":"!==h()){for(t=r=0;r<4&&uc(Ec,h());)t=16*t+ac(h(),16),f++,r++;if("."===h()){if(0===r)return;if(f-=r,l>6)return;for(n=0;h();){if(i=null,n>0){if(!("."===h()&&n<4))return;f++}if(!uc(Cc,h()))return;for(;uc(Cc,h());){if(o=ac(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;f++}c[l]=256*c[l]+i,2!==++n&&4!==n||l++}if(4!==n)return;break}if(":"===h()){if(f++,!h())return}else if(h())return;c[l++]=t}else{if(null!==u)return;f++,u=++l}}if(null!==u)for(a=l-u,l=7;0!==l&&a>0;)s=c[l],c[l--]=c[u+a-1],c[u+--a]=s;else if(8!==l)return;return c}(yc(e,1,-1))))return"Invalid host";this.host=t}else if(this.isSpecial()){if(e=function(e){var t,r,n=[],i=Qs(Zs(Ws(e),Ds,"."),".");for(t=0;t<i.length;t++)r=i[t],Gs(n,Us(Ps,r)?"xn--"+Js(r):r);return Ks(n,".")}(e),uc(Mc,e))return"Invalid host";if(null===(t=function(e){var t,r,n,i,o,a,s,c=mc(e,".");if(c.length&&""===c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""===(i=c[n]))return e;if(o=10,i.length>1&&"0"===lc(i,0)&&(o=uc(kc,i)?16:8,i=yc(i,8===o?1:2)),""===i)a=0;else{if(!uc(10===o?Ac:8===o?xc:Ec,i))return e;a=ac(i,o)}pc(r,a)}for(n=0;n<t;n++)if(a=r[n],n===t-1){if(a>=cc(256,5-t))return null}else if(a>255)return null;for(s=dc(r),n=0;n<r.length;n++)s+=r[n]*cc(256,3-n);return s}(e)))return"Invalid host";this.host=t}else{if(uc(Oc,e))return"Invalid host";for(t="",r=Ns(e),n=0;n<r.length;n++)t+=Dc(r[n],Rc);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return pe(Bc,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&qc(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,s=e.query,c=e.fragment,l=t+":";return null!==i?(l+="//",e.includesCredentials()&&(l+=r+(n?":"+n:"")+"@"),l+=Ic(i),null!==o&&(l+=":"+o)):"file"===t&&(l+="//"),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+fc(a,"/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},setHref:function(e){var t=this.parse(e);if(t)throw new oc(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new fl(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+Ic(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(ni(e)+":",Vc)},getUsername:function(){return this.username},setUsername:function(e){var t=Ns(ni(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=Dc(t[r],Pc)}},getPassword:function(){return this.password},setPassword:function(e){var t=Ns(ni(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=Dc(t[r],Pc)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Ic(e):Ic(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Xc)},getHostname:function(){var e=this.host;return null===e?"":Ic(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,el)},getPort:function(){var e=this.port;return null===e?"":ni(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||