@reachfive/identity-ui 1.36.0 → 1.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/identity-ui.js +2 -2
- package/es/identity-ui.js +2 -2
- package/es/identity-ui.min.js +2 -2
- package/package.json +2 -2
- package/types/identity-ui.d.ts +2 -2
- package/umd/identity-ui.js +7 -4
- package/umd/identity-ui.js.map +1 -1
- package/umd/identity-ui.min.js +3 -3
- package/umd/identity-ui.min.js.map +1 -1
package/umd/identity-ui.min.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @reachfive/identity-ui - v1.36.
|
|
3
|
-
* Compiled Thu,
|
|
2
|
+
* @reachfive/identity-ui - v1.36.1
|
|
3
|
+
* Compiled Thu, 17 Jul 2025 13:28:41 UTC
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) ReachFive.
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
9
|
**/
|
|
10
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).reach5Widgets={})}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r={exports:{}};!function(e){var t=function(){var e="__winchan_relay_frame";function t(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener&&e.addEventListener(t,n,!1)}function n(e,t,n){e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener&&e.removeEventListener(t,n,!1)}function r(e){/^https?:\/\//.test(e)||(e=window.location.href);var t=/^(https?:\/\/[\-_a-zA-Z\.0-9:]+)/.exec(e);return t?t[1]:e}var a=function(){if("undefined"==typeof navigator)return!1;var e=-1,t=navigator.userAgent;if("Microsoft Internet Explorer"===navigator.appName)null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1));else if(t.indexOf("Trident")>-1){null!==new RegExp("rv:([0-9]{2,2}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1))}return e>=8}();return"undefined"!=typeof window&&window.JSON&&window.JSON.stringify&&window.JSON.parse&&window.postMessage?{open:function(o,i){if(!i)throw"missing required callback argument";var s,l;o.url||(s="missing required 'url' parameter"),o.relay_url||(s="missing required 'relay_url' parameter"),s&&setTimeout((function(){i(s)}),0),o.window_name||(o.window_name=null),o.window_features&&!function(){try{var e=navigator.userAgent;return-1!=e.indexOf("Fennec/")||-1!=e.indexOf("Firefox/")&&-1!=e.indexOf("Android")}catch(e){}return!1}()||(o.window_features=void 0);var u,c=o.origin||r(o.url);if(c!==r(o.relay_url))return setTimeout((function(){i("invalid arguments: origin of url and relay_url must match")}),0);a&&((l=document.createElement("iframe")).setAttribute("src",o.relay_url),l.style.display="none",l.setAttribute("name",e),document.body.appendChild(l),u=l.contentWindow);var d=o.popup||window.open(o.url,o.window_name,o.window_features);o.popup&&(d.location.href=o.url),u||(u=d);var f=setInterval((function(){d&&d.closed&&(p(),i&&(i("User closed the popup window"),i=null))}),500),h=JSON.stringify({a:"request",d:o.params});function p(){if(l&&document.body.removeChild(l),l=void 0,f&&(f=clearInterval(f)),n(window,"message",g),n(window,"unload",p),d)try{d.close()}catch(e){u.postMessage("die",c)}d=u=void 0}function g(e){if(e.origin===c){try{var t=JSON.parse(e.data)}catch(e){if(i)return i(e);throw e}"ready"===t.a?u.postMessage(h,c):"error"===t.a?(p(),i&&(i(t.d),i=null)):"response"===t.a&&(p(),i&&(i(null,t.d),i=null))}}return t(window,"unload",p),t(window,"message",g),{originalPopup:d,close:p,focus:function(){if(d)try{d.focus()}catch(e){}}}},onOpen:function(r){var o="*",i=a?function(){for(var t=window.opener.frames,n=t.length-1;n>=0;n--)try{if(t[n].location.protocol===window.location.protocol&&t[n].location.host===window.location.host&&t[n].name===e)return t[n]}catch(e){}}():window.opener;if(!i)throw"can't find relay frame";function s(e){e=JSON.stringify(e),a?i.doPost(e,o):i.postMessage(e,o)}function l(e){if("die"===e.data)try{window.close()}catch(e){}}t(a?i:window,"message",(function e(t){var a;try{a=JSON.parse(t.data)}catch(e){}a&&"request"===a.a&&(n(window,"message",e),o=t.origin,r&&setTimeout((function(){r(o,a.d,(function(e){r=void 0,s({a:"response",d:e})}))}),0))})),t(a?i:window,"message",l);try{s({a:"ready"})}catch(e){t(i,"load",(function(e){s({a:"ready"})}))}var u=function(){try{n(a?i:window,"message",l)}catch(e){}r&&s({a:"error",d:"client closed window"}),r=void 0;try{window.close()}catch(e){}};return t(window,"unload",u),{detach:function(){n(window,"unload",u)}}}}:{open:function(e,t,n,r){setTimeout((function(){r("unsupported browser")}),0)},onOpen:function(e){setTimeout((function(){e("unsupported browser")}),0)}}}();e.exports&&(e.exports=t)}(r);var a=n(r.exports),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e,t){return e(t={exports:{}},t.exports),t.exports}var s,l,u=function(e){return e&&e.Math===Math&&e},c=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof o&&o)||u("object"==typeof o&&o)||function(){return this}()||Function("return this")(),d=function(e){try{return!!e()}catch(e){return!0}},f=!d((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!d((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),p=Function.prototype.call,g=h?p.bind(p):function(){return p.apply(p,arguments)},m={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,y=v&&!m.call({1:2},1)?function(e){var t=v(this,e);return!!t&&t.enumerable}:m,b={f:y},w=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},C=Function.prototype,S=C.call,E=h&&C.bind.bind(S,S),k=h?E:function(e){return function(){return S.apply(e,arguments)}},$=k({}.toString),A=k("".slice),x=function(e){return A($(e),8,-1)},M=Object,T=k("".split),P=d((function(){return!M("z").propertyIsEnumerable(0)}))?function(e){return"String"===x(e)?T(e,""):M(e)}:M,N=function(e){return null==e},I=TypeError,O=function(e){if(N(e))throw new I("Can't call method on "+e);return e},R=function(e){return P(O(e))},F="object"==typeof document&&document.all,B=void 0===F&&void 0!==F?function(e){return"function"==typeof e||e===F}:function(e){return"function"==typeof e},L=function(e){return"object"==typeof e?null!==e:B(e)},D=function(e,t){return arguments.length<2?(n=c[e],B(n)?n:void 0):c[e]&&c[e][t];var n},_=k({}.isPrototypeOf),G="undefined"!=typeof navigator&&String(navigator.userAgent)||"",j=c.process,U=c.Deno,z=j&&j.versions||U&&U.version,K=z&&z.v8;K&&(l=(s=K.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!l&&G&&(!(s=G.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=G.match(/Chrome\/(\d+)/))&&(l=+s[1]);var V=l,H=c.String,W=!!Object.getOwnPropertySymbols&&!d((function(){var e=Symbol("symbol detection");return!H(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V&&V<41})),Z=W&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,q=Object,Y=Z?function(e){return"symbol"==typeof e}:function(e){var t=D("Symbol");return B(t)&&_(t.prototype,q(e))},J=String,Q=function(e){try{return J(e)}catch(e){return"Object"}},X=TypeError,ee=function(e){if(B(e))return e;throw new X(Q(e)+" is not a function")},te=function(e,t){var n=e[t];return N(n)?void 0:ee(n)},ne=TypeError,re=function(e,t){var n,r;if("string"===t&&B(n=e.toString)&&!L(r=g(n,e)))return r;if(B(n=e.valueOf)&&!L(r=g(n,e)))return r;if("string"!==t&&B(n=e.toString)&&!L(r=g(n,e)))return r;throw new ne("Can't convert object to primitive value")},ae=!1,oe=Object.defineProperty,ie=function(e,t){try{oe(c,e,{value:t,configurable:!0,writable:!0})}catch(n){c[e]=t}return t},se="__core-js_shared__",le=c[se]||ie(se,{}),ue=i((function(e){(e.exports=function(e,t){return le[e]||(le[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),ce=Object,de=function(e){return ce(O(e))},fe=k({}.hasOwnProperty),he=Object.hasOwn||function(e,t){return fe(de(e),t)},pe=0,ge=Math.random(),me=k(1..toString),ve=function(e){return"Symbol("+(void 0===e?"":e)+")_"+me(++pe+ge,36)},ye=c.Symbol,be=ue("wks"),we=Z?ye.for||ye:ye&&ye.withoutSetter||ve,Ce=function(e){return he(be,e)||(be[e]=W&&he(ye,e)?ye[e]:we("Symbol."+e)),be[e]},Se=TypeError,Ee=Ce("toPrimitive"),ke=function(e,t){if(!L(e)||Y(e))return e;var n,r=te(e,Ee);if(r){if(void 0===t&&(t="default"),n=g(r,e,t),!L(n)||Y(n))return n;throw new Se("Can't convert object to primitive value")}return void 0===t&&(t="number"),re(e,t)},$e=function(e){var t=ke(e,"string");return Y(t)?t:t+""},Ae=c.document,xe=L(Ae)&&L(Ae.createElement),Me=function(e){return xe?Ae.createElement(e):{}},Te=!f&&!d((function(){return 7!==Object.defineProperty(Me("div"),"a",{get:function(){return 7}}).a})),Pe=Object.getOwnPropertyDescriptor,Ne=f?Pe:function(e,t){if(e=R(e),t=$e(t),Te)try{return Pe(e,t)}catch(e){}if(he(e,t))return w(!g(b.f,e,t),e[t])},Ie={f:Ne},Oe=f&&d((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Re=String,Fe=TypeError,Be=function(e){if(L(e))return e;throw new Fe(Re(e)+" is not an object")},Le=TypeError,De=Object.defineProperty,_e=Object.getOwnPropertyDescriptor,Ge="enumerable",je="configurable",Ue="writable",ze=f?Oe?function(e,t,n){if(Be(e),t=$e(t),Be(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Ue in n&&!n[Ue]){var r=_e(e,t);r&&r[Ue]&&(e[t]=n.value,n={configurable:je in n?n[je]:r[je],enumerable:Ge in n?n[Ge]:r[Ge],writable:!1})}return De(e,t,n)}:De:function(e,t,n){if(Be(e),t=$e(t),Be(n),Te)try{return De(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Le("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ke={f:ze},Ve=f?function(e,t,n){return Ke.f(e,t,w(1,n))}:function(e,t,n){return e[t]=n,e},He=Function.prototype,We=f&&Object.getOwnPropertyDescriptor,Ze=he(He,"name"),qe={EXISTS:Ze,PROPER:Ze&&"something"===function(){}.name,CONFIGURABLE:Ze&&(!f||f&&We(He,"name").configurable)},Ye=k(Function.toString);B(le.inspectSource)||(le.inspectSource=function(e){return Ye(e)});var Je,Qe,Xe,et=le.inspectSource,tt=c.WeakMap,nt=B(tt)&&/native code/.test(String(tt)),rt=ue("keys"),at=function(e){return rt[e]||(rt[e]=ve(e))},ot={},it="Object already initialized",st=c.TypeError,lt=c.WeakMap;if(nt||le.state){var ut=le.state||(le.state=new lt);ut.get=ut.get,ut.has=ut.has,ut.set=ut.set,Je=function(e,t){if(ut.has(e))throw new st(it);return t.facade=e,ut.set(e,t),t},Qe=function(e){return ut.get(e)||{}},Xe=function(e){return ut.has(e)}}else{var ct=at("state");ot[ct]=!0,Je=function(e,t){if(he(e,ct))throw new st(it);return t.facade=e,Ve(e,ct,t),t},Qe=function(e){return he(e,ct)?e[ct]:{}},Xe=function(e){return he(e,ct)}}var dt={set:Je,get:Qe,has:Xe,enforce:function(e){return Xe(e)?Qe(e):Je(e,{})},getterFor:function(e){return function(t){var n;if(!L(t)||(n=Qe(t)).type!==e)throw new st("Incompatible receiver, "+e+" required");return n}}},ft=i((function(e){var t=qe.CONFIGURABLE,n=dt.enforce,r=dt.get,a=String,o=Object.defineProperty,i=k("".slice),s=k("".replace),l=k([].join),u=f&&!d((function(){return 8!==o((function(){}),"length",{value:8}).length})),c=String(String).split("String"),h=e.exports=function(e,r,d){"Symbol("===i(a(r),0,7)&&(r="["+s(a(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),d&&d.getter&&(r="get "+r),d&&d.setter&&(r="set "+r),(!he(e,"name")||t&&e.name!==r)&&(f?o(e,"name",{value:r,configurable:!0}):e.name=r),u&&d&&he(d,"arity")&&e.length!==d.arity&&o(e,"length",{value:d.arity});try{d&&he(d,"constructor")&&d.constructor?f&&o(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var h=n(e);return he(h,"source")||(h.source=l(c,"string"==typeof r?r:"")),e};Function.prototype.toString=h((function(){return B(this)&&r(this).source||et(this)}),"toString")})),ht=function(e,t,n,r){r||(r={});var a=r.enumerable,o=void 0!==r.name?r.name:t;if(B(n)&&ft(n,o,r),r.global)a?e[t]=n:ie(t,n);else{try{r.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=n:Ke.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},pt=Math.ceil,gt=Math.floor,mt=Math.trunc||function(e){var t=+e;return(t>0?gt:pt)(t)},vt=function(e){var t=+e;return t!=t||0===t?0:mt(t)},yt=Math.max,bt=Math.min,wt=function(e,t){var n=vt(e);return n<0?yt(n+t,0):bt(n,t)},Ct=Math.min,St=function(e){return e>0?Ct(vt(e),9007199254740991):0},Et=function(e){return St(e.length)},kt=function(e){return function(t,n,r){var a,o=R(t),i=Et(o),s=wt(r,i);if(e&&n!=n){for(;i>s;)if((a=o[s++])!=a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},$t={includes:kt(!0),indexOf:kt(!1)},At=$t.indexOf,xt=k([].push),Mt=function(e,t){var n,r=R(e),a=0,o=[];for(n in r)!he(ot,n)&&he(r,n)&&xt(o,n);for(;t.length>a;)he(r,n=t[a++])&&(~At(o,n)||xt(o,n));return o},Tt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pt=Tt.concat("length","prototype"),Nt=Object.getOwnPropertyNames||function(e){return Mt(e,Pt)},It={f:Nt},Ot={f:Object.getOwnPropertySymbols},Rt=k([].concat),Ft=D("Reflect","ownKeys")||function(e){var t=It.f(Be(e)),n=Ot.f;return n?Rt(t,n(e)):t},Bt=function(e,t,n){for(var r=Ft(t),a=Ke.f,o=Ie.f,i=0;i<r.length;i++){var s=r[i];he(e,s)||n&&he(n,s)||a(e,s,o(t,s))}},Lt=/#|\.prototype\./,Dt=function(e,t){var n=Gt[_t(e)];return n===Ut||n!==jt&&(B(t)?d(t):!!t)},_t=Dt.normalize=function(e){return String(e).replace(Lt,".").toLowerCase()},Gt=Dt.data={},jt=Dt.NATIVE="N",Ut=Dt.POLYFILL="P",zt=Dt,Kt=Ie.f,Vt=function(e,t){var n,r,a,o,i,s=e.target,l=e.global,u=e.stat;if(n=l?c:u?c[s]||ie(s,{}):(c[s]||{}).prototype)for(r in t){if(o=t[r],a=e.dontCallGetSet?(i=Kt(n,r))&&i.value:n[r],!zt(l?r:s+(u?".":"#")+r,e.forced)&&void 0!==a){if(typeof o==typeof a)continue;Bt(o,a)}(e.sham||a&&a.sham)&&Ve(o,"sham",!0),ht(n,r,o,e)}},Ht={};Ht[Ce("toStringTag")]="z";var Wt,Zt="[object z]"===String(Ht),qt=Ce("toStringTag"),Yt=Object,Jt="Arguments"===x(function(){return arguments}()),Qt=Zt?x:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Yt(e),qt))?n:Jt?x(t):"Object"===(r=x(t))&&B(t.callee)?"Arguments":r},Xt=String,en=function(e){if("Symbol"===Qt(e))throw new TypeError("Cannot convert a Symbol value to a string");return Xt(e)},tn=Object.keys||function(e){return Mt(e,Tt)},nn=f&&!Oe?Object.defineProperties:function(e,t){Be(e);for(var n,r=R(t),a=tn(t),o=a.length,i=0;o>i;)Ke.f(e,n=a[i++],r[n]);return e},rn={f:nn},an=D("document","documentElement"),on="prototype",sn="script",ln=at("IE_PROTO"),un=function(){},cn=function(e){return"<"+sn+">"+e+"</"+sn+">"},dn=function(e){e.write(cn("")),e.close();var t=e.parentWindow.Object;return e=null,t},fn=function(){try{Wt=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;fn="undefined"!=typeof document?document.domain&&Wt?dn(Wt):(t=Me("iframe"),n="java"+sn+":",t.style.display="none",an.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(cn("document.F=Object")),e.close(),e.F):dn(Wt);for(var r=Tt.length;r--;)delete fn[on][Tt[r]];return fn()};ot[ln]=!0;var hn=Object.create||function(e,t){var n;return null!==e?(un[on]=Be(e),n=new un,un[on]=null,n[ln]=e):n=fn(),void 0===t?n:rn.f(n,t)},pn=k([].slice),gn=It.f,mn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],vn={f:function(e){return mn&&"Window"===x(e)?function(e){try{return gn(e)}catch(e){return pn(mn)}}(e):gn(R(e))}},yn=function(e,t,n){return n.get&&ft(n.get,t,{getter:!0}),n.set&&ft(n.set,t,{setter:!0}),Ke.f(e,t,n)},bn={f:Ce},wn=c,Cn=Ke.f,Sn=function(e){var t=wn.Symbol||(wn.Symbol={});he(t,e)||Cn(t,e,{value:bn.f(e)})},En=function(){var e=D("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=Ce("toPrimitive");t&&!t[r]&&ht(t,r,(function(e){return g(n,this)}),{arity:1})},kn=Ke.f,$n=Ce("toStringTag"),An=function(e,t,n){e&&!n&&(e=e.prototype),e&&!he(e,$n)&&kn(e,$n,{configurable:!0,value:t})},xn=function(e){if("Function"===x(e))return k(e)},Mn=xn(xn.bind),Tn=function(e,t){return ee(e),void 0===t?e:h?Mn(e,t):function(){return e.apply(t,arguments)}},Pn=Array.isArray||function(e){return"Array"===x(e)},Nn=function(){},In=[],On=D("Reflect","construct"),Rn=/^\s*(?:class|function)\b/,Fn=k(Rn.exec),Bn=!Rn.test(Nn),Ln=function(e){if(!B(e))return!1;try{return On(Nn,In,e),!0}catch(e){return!1}},Dn=function(e){if(!B(e))return!1;switch(Qt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Bn||!!Fn(Rn,et(e))}catch(e){return!0}};Dn.sham=!0;var _n=!On||d((function(){var e;return Ln(Ln.call)||!Ln(Object)||!Ln((function(){e=!0}))||e}))?Dn:Ln,Gn=Ce("species"),jn=Array,Un=function(e,t){return new(function(e){var t;return Pn(e)&&(t=e.constructor,(_n(t)&&(t===jn||Pn(t.prototype))||L(t)&&null===(t=t[Gn]))&&(t=void 0)),void 0===t?jn:t}(e))(0===t?0:t)},zn=k([].push),Kn=function(e){var t=1===e,n=2===e,r=3===e,a=4===e,o=6===e,i=7===e,s=5===e||o;return function(l,u,c,d){for(var f,h,p=de(l),g=P(p),m=Et(g),v=Tn(u,c),y=0,b=d||Un,w=t?b(l,m):n||i?b(l,0):void 0;m>y;y++)if((s||y in g)&&(h=v(f=g[y],y,p),e))if(t)w[y]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:zn(w,f)}else switch(e){case 4:return!1;case 7:zn(w,f)}return o?-1:r||a?a:w}},Vn={forEach:Kn(0),map:Kn(1),filter:Kn(2),some:Kn(3),every:Kn(4),find:Kn(5),findIndex:Kn(6),filterReject:Kn(7)},Hn=Vn.forEach,Wn=at("hidden"),Zn="Symbol",qn="prototype",Yn=dt.set,Jn=dt.getterFor(Zn),Qn=Object[qn],Xn=c.Symbol,er=Xn&&Xn[qn],tr=c.RangeError,nr=c.TypeError,rr=c.QObject,ar=Ie.f,or=Ke.f,ir=vn.f,sr=b.f,lr=k([].push),ur=ue("symbols"),cr=ue("op-symbols"),dr=ue("wks"),fr=!rr||!rr[qn]||!rr[qn].findChild,hr=function(e,t,n){var r=ar(Qn,t);r&&delete Qn[t],or(e,t,n),r&&e!==Qn&&or(Qn,t,r)},pr=f&&d((function(){return 7!==hn(or({},"a",{get:function(){return or(this,"a",{value:7}).a}})).a}))?hr:or,gr=function(e,t){var n=ur[e]=hn(er);return Yn(n,{type:Zn,tag:e,description:t}),f||(n.description=t),n},mr=function(e,t,n){e===Qn&&mr(cr,t,n),Be(e);var r=$e(t);return Be(n),he(ur,r)?(n.enumerable?(he(e,Wn)&&e[Wn][r]&&(e[Wn][r]=!1),n=hn(n,{enumerable:w(0,!1)})):(he(e,Wn)||or(e,Wn,w(1,hn(null))),e[Wn][r]=!0),pr(e,r,n)):or(e,r,n)},vr=function(e,t){Be(e);var n=R(t),r=tn(n).concat(Cr(n));return Hn(r,(function(t){f&&!g(yr,n,t)||mr(e,t,n[t])})),e},yr=function(e){var t=$e(e),n=g(sr,this,t);return!(this===Qn&&he(ur,t)&&!he(cr,t))&&(!(n||!he(this,t)||!he(ur,t)||he(this,Wn)&&this[Wn][t])||n)},br=function(e,t){var n=R(e),r=$e(t);if(n!==Qn||!he(ur,r)||he(cr,r)){var a=ar(n,r);return!a||!he(ur,r)||he(n,Wn)&&n[Wn][r]||(a.enumerable=!0),a}},wr=function(e){var t=ir(R(e)),n=[];return Hn(t,(function(e){he(ur,e)||he(ot,e)||lr(n,e)})),n},Cr=function(e){var t=e===Qn,n=ir(t?cr:R(e)),r=[];return Hn(n,(function(e){!he(ur,e)||t&&!he(Qn,e)||lr(r,ur[e])})),r};W||(Xn=function(){if(_(er,this))throw new nr("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?en(arguments[0]):void 0,t=ve(e),n=function(e){var r=void 0===this?c:this;r===Qn&&g(n,cr,e),he(r,Wn)&&he(r[Wn],t)&&(r[Wn][t]=!1);var a=w(1,e);try{pr(r,t,a)}catch(e){if(!(e instanceof tr))throw e;hr(r,t,a)}};return f&&fr&&pr(Qn,t,{configurable:!0,set:n}),gr(t,e)},er=Xn[qn],ht(er,"toString",(function(){return Jn(this).tag})),ht(Xn,"withoutSetter",(function(e){return gr(ve(e),e)})),b.f=yr,Ke.f=mr,rn.f=vr,Ie.f=br,It.f=vn.f=wr,Ot.f=Cr,bn.f=function(e){return gr(Ce(e),e)},f&&(yn(er,"description",{configurable:!0,get:function(){return Jn(this).description}}),ht(Qn,"propertyIsEnumerable",yr,{unsafe:!0}))),Vt({global:!0,constructor:!0,wrap:!0,forced:!W,sham:!W},{Symbol:Xn}),Hn(tn(dr),(function(e){Sn(e)})),Vt({target:Zn,stat:!0,forced:!W},{useSetter:function(){fr=!0},useSimple:function(){fr=!1}}),Vt({target:"Object",stat:!0,forced:!W,sham:!f},{create:function(e,t){return void 0===t?hn(e):vr(hn(e),t)},defineProperty:mr,defineProperties:vr,getOwnPropertyDescriptor:br}),Vt({target:"Object",stat:!0,forced:!W},{getOwnPropertyNames:wr}),En(),An(Xn,Zn),ot[Wn]=!0;var Sr=W&&!!Symbol.for&&!!Symbol.keyFor,Er=ue("string-to-symbol-registry"),kr=ue("symbol-to-string-registry");Vt({target:"Symbol",stat:!0,forced:!Sr},{for:function(e){var t=en(e);if(he(Er,t))return Er[t];var n=D("Symbol")(t);return Er[t]=n,kr[n]=t,n}});var $r=ue("symbol-to-string-registry");Vt({target:"Symbol",stat:!0,forced:!Sr},{keyFor:function(e){if(!Y(e))throw new TypeError(Q(e)+" is not a symbol");if(he($r,e))return $r[e]}});var Ar=Function.prototype,xr=Ar.apply,Mr=Ar.call,Tr="object"==typeof Reflect&&Reflect.apply||(h?Mr.bind(xr):function(){return Mr.apply(xr,arguments)}),Pr=k([].push),Nr=function(e){if(B(e))return e;if(Pn(e)){for(var t=e.length,n=[],r=0;r<t;r++){var a=e[r];"string"==typeof a?Pr(n,a):"number"!=typeof a&&"Number"!==x(a)&&"String"!==x(a)||Pr(n,en(a))}var o=n.length,i=!0;return function(e,t){if(i)return i=!1,t;if(Pn(this))return t;for(var r=0;r<o;r++)if(n[r]===e)return t}}},Ir=String,Or=D("JSON","stringify"),Rr=k(/./.exec),Fr=k("".charAt),Br=k("".charCodeAt),Lr=k("".replace),Dr=k(1..toString),_r=/[\uD800-\uDFFF]/g,Gr=/^[\uD800-\uDBFF]$/,jr=/^[\uDC00-\uDFFF]$/,Ur=!W||d((function(){var e=D("Symbol")("stringify detection");return"[null]"!==Or([e])||"{}"!==Or({a:e})||"{}"!==Or(Object(e))})),zr=d((function(){return'"\\udf06\\ud834"'!==Or("\udf06\ud834")||'"\\udead"'!==Or("\udead")})),Kr=function(e,t){var n=pn(arguments),r=Nr(t);if(B(r)||void 0!==e&&!Y(e))return n[1]=function(e,t){if(B(r)&&(t=g(r,this,Ir(e),t)),!Y(t))return t},Tr(Or,null,n)},Vr=function(e,t,n){var r=Fr(n,t-1),a=Fr(n,t+1);return Rr(Gr,e)&&!Rr(jr,a)||Rr(jr,e)&&!Rr(Gr,r)?"\\u"+Dr(Br(e,0),16):e};Or&&Vt({target:"JSON",stat:!0,arity:3,forced:Ur||zr},{stringify:function(e,t,n){var r=pn(arguments),a=Tr(Ur?Kr:Or,null,r);return zr&&"string"==typeof a?Lr(a,_r,Vr):a}});var Hr=!W||d((function(){Ot.f(1)}));Vt({target:"Object",stat:!0,forced:Hr},{getOwnPropertySymbols:function(e){var t=Ot.f;return t?t(de(e)):[]}});var Wr=c.Symbol,Zr=Wr&&Wr.prototype;if(f&&B(Wr)&&(!("description"in Zr)||void 0!==Wr().description)){var qr={},Yr=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:en(arguments[0]),t=_(Zr,this)?new Wr(e):void 0===e?Wr():Wr(e);return""===e&&(qr[t]=!0),t};Bt(Yr,Wr),Yr.prototype=Zr,Zr.constructor=Yr;var Jr="Symbol(description detection)"===String(Wr("description detection")),Qr=k(Zr.valueOf),Xr=k(Zr.toString),ea=/^Symbol\((.*)\)[^)]+$/,ta=k("".replace),na=k("".slice);yn(Zr,"description",{configurable:!0,get:function(){var e=Qr(this);if(he(qr,e))return"";var t=Xr(e),n=Jr?na(t,7,-1):ta(t,ea,"$1");return""===n?void 0:n}}),Vt({global:!0,constructor:!0,forced:!0},{Symbol:Yr})}Sn("asyncIterator"),Sn("hasInstance"),Sn("isConcatSpreadable"),Sn("iterator"),Sn("match"),Sn("matchAll"),Sn("replace"),Sn("search"),Sn("species"),Sn("split"),Sn("toPrimitive"),En(),Sn("toStringTag"),An(D("Symbol"),"Symbol"),Sn("unscopables");var ra=function(e,t,n){try{return k(ee(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},aa=function(e){return L(e)||null===e},oa=String,ia=TypeError,sa=function(e){if(aa(e))return e;throw new ia("Can't set "+oa(e)+" as a prototype")},la=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=ra(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Be(n),sa(r),t?e(n,r):n.__proto__=r,n}}():void 0),ua=Ke.f,ca=function(e,t,n){n in e||ua(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})},da=function(e,t,n){var r,a;return la&&B(r=t.constructor)&&r!==n&&L(a=r.prototype)&&a!==n.prototype&&la(e,a),e},fa=function(e,t){return void 0===e?arguments.length<2?"":t:en(e)},ha=function(e,t){L(t)&&"cause"in t&&Ve(e,"cause",t.cause)},pa=Error,ga=k("".replace),ma=String(new pa("zxcasd").stack),va=/\n\s*at [^:]*:[^\n]*/,ya=va.test(ma),ba=function(e,t){if(ya&&"string"==typeof e&&!pa.prepareStackTrace)for(;t--;)e=ga(e,va,"");return e},wa=!d((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",w(1,7)),7!==e.stack)})),Ca=Error.captureStackTrace,Sa=function(e,t,n,r){wa&&(Ca?Ca(e,t):Ve(e,"stack",ba(n,r)))},Ea=function(e,t,n,r){var a="stackTraceLimit",o=r?2:1,i=e.split("."),s=i[i.length-1],l=D.apply(null,i);if(l){var u=l.prototype;if(he(u,"cause")&&delete u.cause,!n)return l;var c=D("Error"),d=t((function(e,t){var n=fa(r?t:e,void 0),a=r?new l(e):new l;return void 0!==n&&Ve(a,"message",n),Sa(a,d,a.stack,2),this&&_(u,this)&&da(a,this,d),arguments.length>o&&ha(a,arguments[o]),a}));d.prototype=u,"Error"!==s?la?la(d,c):Bt(d,c,{name:!0}):f&&a in l&&(ca(d,l,a),ca(d,l,"prepareStackTrace")),Bt(d,l);try{u.name!==s&&Ve(u,"name",s),u.constructor=d}catch(e){}return d}},ka="WebAssembly",$a=c[ka],Aa=7!==new Error("e",{cause:7}).cause,xa=function(e,t){var n={};n[e]=Ea(e,t,Aa),Vt({global:!0,constructor:!0,arity:1,forced:Aa},n)},Ma=function(e,t){if($a&&$a[e]){var n={};n[e]=Ea(ka+"."+e,t,Aa),Vt({target:ka,stat:!0,constructor:!0,arity:1,forced:Aa},n)}};xa("Error",(function(e){return function(t){return Tr(e,this,arguments)}})),xa("EvalError",(function(e){return function(t){return Tr(e,this,arguments)}})),xa("RangeError",(function(e){return function(t){return Tr(e,this,arguments)}})),xa("ReferenceError",(function(e){return function(t){return Tr(e,this,arguments)}})),xa("SyntaxError",(function(e){return function(t){return Tr(e,this,arguments)}})),xa("TypeError",(function(e){return function(t){return Tr(e,this,arguments)}})),xa("URIError",(function(e){return function(t){return Tr(e,this,arguments)}})),Ma("CompileError",(function(e){return function(t){return Tr(e,this,arguments)}})),Ma("LinkError",(function(e){return function(t){return Tr(e,this,arguments)}})),Ma("RuntimeError",(function(e){return function(t){return Tr(e,this,arguments)}}));var Ta=Error.prototype.toString,Pa=d((function(){if(f){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==Ta.call(e))return!0}return"2: 1"!==Ta.call({message:1,name:2})||"Error"!==Ta.call({})}))?function(){var e=Be(this),t=fa(e.name,"Error"),n=fa(e.message);return t?n?t+": "+n:t:n}:Ta,Na=Error.prototype;Na.toString!==Pa&&ht(Na,"toString",Pa);var Ia=!d((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Oa=at("IE_PROTO"),Ra=Object,Fa=Ra.prototype,Ba=Ia?Ra.getPrototypeOf:function(e){var t=de(e);if(he(t,Oa))return t[Oa];var n=t.constructor;return B(n)&&t instanceof n?n.prototype:t instanceof Ra?Fa:null},La={},Da=Ce("iterator"),_a=Array.prototype,Ga=function(e){return void 0!==e&&(La.Array===e||_a[Da]===e)},ja=Ce("iterator"),Ua=function(e){if(!N(e))return te(e,ja)||te(e,"@@iterator")||La[Qt(e)]},za=TypeError,Ka=function(e,t){var n=arguments.length<2?Ua(e):t;if(ee(n))return Be(g(n,e));throw new za(Q(e)+" is not iterable")},Va=function(e,t,n){var r,a;Be(e);try{if(!(r=te(e,"return"))){if("throw"===t)throw n;return n}r=g(r,e)}catch(e){a=!0,r=e}if("throw"===t)throw n;if(a)throw r;return Be(r),n},Ha=TypeError,Wa=function(e,t){this.stopped=e,this.result=t},Za=Wa.prototype,qa=function(e,t,n){var r,a,o,i,s,l,u,c=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),m=Tn(t,c),v=function(e){return r&&Va(r,"normal",e),new Wa(!0,e)},y=function(e){return d?(Be(e),p?m(e[0],e[1],v):m(e[0],e[1])):p?m(e,v):m(e)};if(f)r=e.iterator;else if(h)r=e;else{if(!(a=Ua(e)))throw new Ha(Q(e)+" is not iterable");if(Ga(a)){for(o=0,i=Et(e);i>o;o++)if((s=y(e[o]))&&_(Za,s))return s;return new Wa(!1)}r=Ka(e,a)}for(l=f?e.next:r.next;!(u=g(l,r)).done;){try{s=y(u.value)}catch(e){Va(r,"throw",e)}if("object"==typeof s&&s&&_(Za,s))return s}return new Wa(!1)},Ya=Ce("toStringTag"),Ja=Error,Qa=[].push,Xa=function(e,t){var n,r=_(eo,this);la?n=la(new Ja,r?Ba(this):eo):(n=r?this:hn(eo),Ve(n,Ya,"Error")),void 0!==t&&Ve(n,"message",fa(t)),Sa(n,Xa,n.stack,1),arguments.length>2&&ha(n,arguments[2]);var a=[];return qa(e,Qa,{that:a}),Ve(n,"errors",a),n};la?la(Xa,Ja):Bt(Xa,Ja,{name:!0});var eo=Xa.prototype=hn(Ja.prototype,{constructor:w(1,Xa),message:w(1,""),name:w(1,"AggregateError")});Vt({global:!0,constructor:!0,arity:2},{AggregateError:Xa});var to="AggregateError",no=D(to),ro=!d((function(){return 1!==no([1]).errors[0]}))&&d((function(){return 7!==no([1],to,{cause:7}).cause}));Vt({global:!0,constructor:!0,arity:2,forced:ro},{AggregateError:Ea(to,(function(e){return function(t,n){return Tr(e,this,arguments)}}),ro,!0)});var ao=Ke.f,oo=Ce("unscopables"),io=Array.prototype;void 0===io[oo]&&ao(io,oo,{configurable:!0,value:hn(null)});var so=function(e){io[oo][e]=!0};Vt({target:"Array",proto:!0},{at:function(e){var t=de(this),n=Et(t),r=vt(e),a=r>=0?r:n+r;return a<0||a>=n?void 0:t[a]}}),so("at");var lo=TypeError,uo=function(e){if(e>9007199254740991)throw lo("Maximum allowed index exceeded");return e},co=function(e,t,n){var r=$e(t);r in e?Ke.f(e,r,w(0,n)):e[r]=n},fo=Ce("species"),ho=function(e){return V>=51||!d((function(){var t=[];return(t.constructor={})[fo]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},po=Ce("isConcatSpreadable"),go=V>=51||!d((function(){var e=[];return e[po]=!1,e.concat()[0]!==e})),mo=function(e){if(!L(e))return!1;var t=e[po];return void 0!==t?!!t:Pn(e)},vo=!go||!ho("concat");Vt({target:"Array",proto:!0,arity:1,forced:vo},{concat:function(e){var t,n,r,a,o,i=de(this),s=Un(i,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(mo(o=-1===t?i:arguments[t]))for(a=Et(o),uo(l+a),n=0;n<a;n++,l++)n in o&&co(s,l,o[n]);else uo(l+1),co(s,l++,o);return s.length=l,s}});var yo=TypeError,bo=function(e,t){if(!delete e[t])throw new yo("Cannot delete property "+Q(t)+" of "+Q(e))},wo=Math.min,Co=[].copyWithin||function(e,t){var n=de(this),r=Et(n),a=wt(e,r),o=wt(t,r),i=arguments.length>2?arguments[2]:void 0,s=wo((void 0===i?r:wt(i,r))-o,r-a),l=1;for(o<a&&a<o+s&&(l=-1,o+=s-1,a+=s-1);s-- >0;)o in n?n[a]=n[o]:bo(n,a),a+=l,o+=l;return n};Vt({target:"Array",proto:!0},{copyWithin:Co}),so("copyWithin");var So=function(e,t){var n=[][e];return!!n&&d((function(){n.call(null,t||function(){return 1},1)}))},Eo=Vn.every,ko=So("every");Vt({target:"Array",proto:!0,forced:!ko},{every:function(e){return Eo(this,e,arguments.length>1?arguments[1]:void 0)}});var $o=function(e){for(var t=de(this),n=Et(t),r=arguments.length,a=wt(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,i=void 0===o?n:wt(o,n);i>a;)t[a++]=e;return t};Vt({target:"Array",proto:!0},{fill:$o}),so("fill");var Ao=Vn.filter,xo=ho("filter");Vt({target:"Array",proto:!0,forced:!xo},{filter:function(e){return Ao(this,e,arguments.length>1?arguments[1]:void 0)}});var Mo=Vn.find,To="find",Po=!0;To in[]&&Array(1)[To]((function(){Po=!1})),Vt({target:"Array",proto:!0,forced:Po},{find:function(e){return Mo(this,e,arguments.length>1?arguments[1]:void 0)}}),so(To);var No=Vn.findIndex,Io="findIndex",Oo=!0;Io in[]&&Array(1)[Io]((function(){Oo=!1})),Vt({target:"Array",proto:!0,forced:Oo},{findIndex:function(e){return No(this,e,arguments.length>1?arguments[1]:void 0)}}),so(Io);var Ro=function(e){var t=1===e;return function(n,r,a){for(var o,i=de(n),s=P(i),l=Et(s),u=Tn(r,a);l-- >0;)if(u(o=s[l],l,i))switch(e){case 0:return o;case 1:return l}return t?-1:void 0}},Fo={findLast:Ro(0),findLastIndex:Ro(1)},Bo=Fo.findLast;Vt({target:"Array",proto:!0},{findLast:function(e){return Bo(this,e,arguments.length>1?arguments[1]:void 0)}}),so("findLast");var Lo=Fo.findLastIndex;Vt({target:"Array",proto:!0},{findLastIndex:function(e){return Lo(this,e,arguments.length>1?arguments[1]:void 0)}}),so("findLastIndex");var Do=function(e,t,n,r,a,o,i,s){for(var l,u,c=a,d=0,f=!!i&&Tn(i,s);d<r;)d in n&&(l=f?f(n[d],d,t):n[d],o>0&&Pn(l)?(u=Et(l),c=Do(e,t,l,u,c,o-1)-1):(uo(c+1),e[c]=l),c++),d++;return c},_o=Do;Vt({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=de(this),n=Et(t),r=Un(t,0);return r.length=_o(r,t,t,n,0,void 0===e?1:vt(e)),r}}),Vt({target:"Array",proto:!0},{flatMap:function(e){var t,n=de(this),r=Et(n);return ee(e),(t=Un(n,0)).length=_o(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}});var Go=Vn.forEach,jo=So("forEach")?[].forEach:function(e){return Go(this,e,arguments.length>1?arguments[1]:void 0)};Vt({target:"Array",proto:!0,forced:[].forEach!==jo},{forEach:jo});var Uo=function(e,t,n,r){try{return r?t(Be(n)[0],n[1]):t(n)}catch(t){Va(e,"throw",t)}},zo=Array,Ko=function(e){var t=de(e),n=_n(this),r=arguments.length,a=r>1?arguments[1]:void 0,o=void 0!==a;o&&(a=Tn(a,r>2?arguments[2]:void 0));var i,s,l,u,c,d,f=Ua(t),h=0;if(!f||this===zo&&Ga(f))for(i=Et(t),s=n?new this(i):zo(i);i>h;h++)d=o?a(t[h],h):t[h],co(s,h,d);else for(c=(u=Ka(t,f)).next,s=n?new this:[];!(l=g(c,u)).done;h++)d=o?Uo(u,a,[l.value,h],!0):l.value,co(s,h,d);return s.length=h,s},Vo=Ce("iterator"),Ho=!1;try{var Wo=0,Zo={next:function(){return{done:!!Wo++}},return:function(){Ho=!0}};Zo[Vo]=function(){return this},Array.from(Zo,(function(){throw 2}))}catch(e){}var qo=function(e,t){try{if(!t&&!Ho)return!1}catch(e){return!1}var n=!1;try{var r={};r[Vo]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Yo=!qo((function(e){Array.from(e)}));Vt({target:"Array",stat:!0,forced:Yo},{from:Ko});var Jo=$t.includes,Qo=d((function(){return!Array(1).includes()}));Vt({target:"Array",proto:!0,forced:Qo},{includes:function(e){return Jo(this,e,arguments.length>1?arguments[1]:void 0)}}),so("includes");var Xo=$t.indexOf,ei=xn([].indexOf),ti=!!ei&&1/ei([1],1,-0)<0,ni=ti||!So("indexOf");Vt({target:"Array",proto:!0,forced:ni},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return ti?ei(this,e,t)||0:Xo(this,e,t)}}),Vt({target:"Array",stat:!0},{isArray:Pn});var ri,ai,oi,ii=Ce("iterator"),si=!1;[].keys&&("next"in(oi=[].keys())?(ai=Ba(Ba(oi)))!==Object.prototype&&(ri=ai):si=!0);var li=!L(ri)||d((function(){var e={};return ri[ii].call(e)!==e}));li&&(ri={}),B(ri[ii])||ht(ri,ii,(function(){return this}));var ui={IteratorPrototype:ri,BUGGY_SAFARI_ITERATORS:si},ci=ui.IteratorPrototype,di=function(){return this},fi=function(e,t,n,r){var a=t+" Iterator";return e.prototype=hn(ci,{next:w(+!r,n)}),An(e,a,!1),La[a]=di,e},hi=qe.PROPER,pi=qe.CONFIGURABLE,gi=ui.IteratorPrototype,mi=ui.BUGGY_SAFARI_ITERATORS,vi=Ce("iterator"),yi="keys",bi="values",wi="entries",Ci=function(){return this},Si=function(e,t,n,r,a,o,i){fi(n,t,r);var s,l,u,c=function(e){if(e===a&&m)return m;if(!mi&&e&&e in h)return h[e];switch(e){case yi:case bi:case wi:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,h=e.prototype,p=h[vi]||h["@@iterator"]||a&&h[a],m=!mi&&p||c(a),v="Array"===t&&h.entries||p;if(v&&(s=Ba(v.call(new e)))!==Object.prototype&&s.next&&(Ba(s)!==gi&&(la?la(s,gi):B(s[vi])||ht(s,vi,Ci)),An(s,d,!0)),hi&&a===bi&&p&&p.name!==bi&&(pi?Ve(h,"name",bi):(f=!0,m=function(){return g(p,this)})),a)if(l={values:c(bi),keys:o?m:c(yi),entries:c(wi)},i)for(u in l)(mi||f||!(u in h))&&ht(h,u,l[u]);else Vt({target:t,proto:!0,forced:mi||f},l);return h[vi]!==m&&ht(h,vi,m,{name:a}),La[t]=m,l},Ei=function(e,t){return{value:e,done:t}},ki=Ke.f,$i="Array Iterator",Ai=dt.set,xi=dt.getterFor($i),Mi=Si(Array,"Array",(function(e,t){Ai(this,{type:$i,target:R(e),index:0,kind:t})}),(function(){var e=xi(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,Ei(void 0,!0);switch(e.kind){case"keys":return Ei(n,!1);case"values":return Ei(t[n],!1)}return Ei([n,t[n]],!1)}),"values"),Ti=La.Arguments=La.Array;if(so("keys"),so("values"),so("entries"),f&&"values"!==Ti.name)try{ki(Ti,"name",{value:"values"})}catch(e){}var Pi=k([].join),Ni=P!==Object||!So("join",",");Vt({target:"Array",proto:!0,forced:Ni},{join:function(e){return Pi(R(this),void 0===e?",":e)}});var Ii=Math.min,Oi=[].lastIndexOf,Ri=!!Oi&&1/[1].lastIndexOf(1,-0)<0,Fi=So("lastIndexOf"),Bi=Ri||!Fi?function(e){if(Ri)return Tr(Oi,this,arguments)||0;var t=R(this),n=Et(t),r=n-1;for(arguments.length>1&&(r=Ii(r,vt(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:Oi;Vt({target:"Array",proto:!0,forced:Bi!==[].lastIndexOf},{lastIndexOf:Bi});var Li=Vn.map,Di=ho("map");Vt({target:"Array",proto:!0,forced:!Di},{map:function(e){return Li(this,e,arguments.length>1?arguments[1]:void 0)}});var _i=Array,Gi=d((function(){function e(){}return!(_i.of.call(e)instanceof e)}));Vt({target:"Array",stat:!0,forced:Gi},{of:function(){for(var e=0,t=arguments.length,n=new(_n(this)?this:_i)(t);t>e;)co(n,e,arguments[e++]);return n.length=t,n}});var ji=TypeError,Ui=Object.getOwnPropertyDescriptor,zi=f&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(Pn(e)&&!Ui(e,"length").writable)throw new ji("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Ki=d((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}();Vt({target:"Array",proto:!0,arity:1,forced:Ki},{push:function(e){var t=de(this),n=Et(t),r=arguments.length;uo(n+r);for(var a=0;a<r;a++)t[n]=arguments[a],n++;return zi(t,n),n}});var Vi=TypeError,Hi=function(e){return function(t,n,r,a){var o=de(t),i=P(o),s=Et(o);ee(n);var l=e?s-1:0,u=e?-1:1;if(r<2)for(;;){if(l in i){a=i[l],l+=u;break}if(l+=u,e?l<0:s<=l)throw new Vi("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=u)l in i&&(a=n(a,i[l],l,o));return a}},Wi={left:Hi(!1),right:Hi(!0)},Zi="process"===x(c.process),qi=Wi.left,Yi=!Zi&&V>79&&V<83||!So("reduce");Vt({target:"Array",proto:!0,forced:Yi},{reduce:function(e){var t=arguments.length;return qi(this,e,t,t>1?arguments[1]:void 0)}});var Ji=Wi.right,Qi=!Zi&&V>79&&V<83||!So("reduceRight");Vt({target:"Array",proto:!0,forced:Qi},{reduceRight:function(e){return Ji(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Xi=k([].reverse),es=[1,2];Vt({target:"Array",proto:!0,forced:String(es)===String(es.reverse())},{reverse:function(){return Pn(this)&&(this.length=this.length),Xi(this)}});var ts=ho("slice"),ns=Ce("species"),rs=Array,as=Math.max;Vt({target:"Array",proto:!0,forced:!ts},{slice:function(e,t){var n,r,a,o=R(this),i=Et(o),s=wt(e,i),l=wt(void 0===t?i:t,i);if(Pn(o)&&(n=o.constructor,(_n(n)&&(n===rs||Pn(n.prototype))||L(n)&&null===(n=n[ns]))&&(n=void 0),n===rs||void 0===n))return pn(o,s,l);for(r=new(void 0===n?rs:n)(as(l-s,0)),a=0;s<l;s++,a++)s in o&&co(r,a,o[s]);return r.length=a,r}});var os=Vn.some,is=So("some");Vt({target:"Array",proto:!0,forced:!is},{some:function(e){return os(this,e,arguments.length>1?arguments[1]:void 0)}});var ss=Math.floor,ls=function(e,t){var n=e.length;if(n<8)for(var r,a,o=1;o<n;){for(a=o,r=e[o];a&&t(e[a-1],r)>0;)e[a]=e[--a];a!==o++&&(e[a]=r)}else for(var i=ss(n/2),s=ls(pn(e,0,i),t),l=ls(pn(e,i),t),u=s.length,c=l.length,d=0,f=0;d<u||f<c;)e[d+f]=d<u&&f<c?t(s[d],l[f])<=0?s[d++]:l[f++]:d<u?s[d++]:l[f++];return e},us=ls,cs=G.match(/firefox\/(\d+)/i),ds=!!cs&&+cs[1],fs=/MSIE|Trident/.test(G),hs=G.match(/AppleWebKit\/(\d+)\./),ps=!!hs&&+hs[1],gs=[],ms=k(gs.sort),vs=k(gs.push),ys=d((function(){gs.sort(void 0)})),bs=d((function(){gs.sort(null)})),ws=So("sort"),Cs=!d((function(){if(V)return V<70;if(!(ds&&ds>3)){if(fs)return!0;if(ps)return ps<603;var e,t,n,r,a="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)gs.push({k:t+r,v:n})}for(gs.sort((function(e,t){return t.v-e.v})),r=0;r<gs.length;r++)t=gs[r].k.charAt(0),a.charAt(a.length-1)!==t&&(a+=t);return"DGBEFHACIJK"!==a}}));Vt({target:"Array",proto:!0,forced:ys||!bs||!ws||!Cs},{sort:function(e){void 0!==e&&ee(e);var t=de(this);if(Cs)return void 0===e?ms(t):ms(t,e);var n,r,a=[],o=Et(t);for(r=0;r<o;r++)r in t&&vs(a,t[r]);for(us(a,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:en(t)>en(n)?1:-1}}(e)),n=Et(a),r=0;r<n;)t[r]=a[r++];for(;r<o;)bo(t,r++);return t}});var Ss=Ce("species"),Es=function(e){var t=D(e);f&&t&&!t[Ss]&&yn(t,Ss,{configurable:!0,get:function(){return this}})};Es("Array");var ks=ho("splice"),$s=Math.max,As=Math.min;Vt({target:"Array",proto:!0,forced:!ks},{splice:function(e,t){var n,r,a,o,i,s,l=de(this),u=Et(l),c=wt(e,u),d=arguments.length;for(0===d?n=r=0:1===d?(n=0,r=u-c):(n=d-2,r=As($s(vt(t),0),u-c)),uo(u+n-r),a=Un(l,r),o=0;o<r;o++)(i=c+o)in l&&co(a,o,l[i]);if(a.length=r,n<r){for(o=c;o<u-r;o++)s=o+n,(i=o+r)in l?l[s]=l[i]:bo(l,s);for(o=u;o>u-r+n;o--)bo(l,o-1)}else if(n>r)for(o=u-r;o>c;o--)s=o+n-1,(i=o+r-1)in l?l[s]=l[i]:bo(l,s);for(o=0;o<n;o++)l[o+c]=arguments[o+2];return zi(l,u-r+n),a}});var xs=function(e,t){for(var n=Et(e),r=new t(n),a=0;a<n;a++)r[a]=e[n-a-1];return r},Ms=Array;Vt({target:"Array",proto:!0},{toReversed:function(){return xs(R(this),Ms)}}),so("toReversed");var Ts=function(e,t,n){for(var r=0,a=arguments.length>2?n:Et(t),o=new e(a);a>r;)o[r]=t[r++];return o},Ps=function(e,t){var n=c[e],r=n&&n.prototype;return r&&r[t]},Ns=Array,Is=k(Ps("Array","sort"));Vt({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&ee(e);var t=R(this),n=Ts(Ns,t);return Is(n,e)}}),so("toSorted");var Os=Array,Rs=Math.max,Fs=Math.min;Vt({target:"Array",proto:!0},{toSpliced:function(e,t){var n,r,a,o,i=R(this),s=Et(i),l=wt(e,s),u=arguments.length,c=0;for(0===u?n=r=0:1===u?(n=0,r=s-l):(n=u-2,r=Fs(Rs(vt(t),0),s-l)),a=uo(s+n-r),o=Os(a);c<l;c++)o[c]=i[c];for(;c<l+n;c++)o[c]=arguments[c-l+2];for(;c<a;c++)o[c]=i[c+r-n];return o}}),so("toSpliced"),so("flat"),so("flatMap");var Bs=1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}();Vt({target:"Array",proto:!0,arity:1,forced:Bs},{unshift:function(e){var t=de(this),n=Et(t),r=arguments.length;if(r){uo(n+r);for(var a=n;a--;){var o=a+r;a in t?t[o]=t[a]:bo(t,o)}for(var i=0;i<r;i++)t[i]=arguments[i]}return zi(t,n+r)}});var Ls=RangeError,Ds=function(e,t,n,r){var a=Et(e),o=vt(n),i=o<0?a+o:o;if(i>=a||i<0)throw new Ls("Incorrect index");for(var s=new t(a),l=0;l<a;l++)s[l]=l===i?r:e[l];return s},_s=Array;Vt({target:"Array",proto:!0},{with:function(e,t){return Ds(R(this),_s,e,t)}});var Gs="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,js=function(e,t,n){for(var r in t)ht(e,r,t[r],n);return e},Us=TypeError,zs=function(e,t){if(_(t,e))return e;throw new Us("Incorrect invocation")},Ks=RangeError,Vs=function(e){if(void 0===e)return 0;var t=vt(e),n=St(t);if(t!==n)throw new Ks("Wrong length or index");return n},Hs=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1},Ws=Math.abs,Zs=2220446049250313e-31,qs=1/Zs,Ys=function(e,t,n,r){var a=+e,o=Ws(a),i=Hs(a);if(o<r)return i*function(e){return e+qs-qs}(o/r/t)*r*t;var s=(1+t/Zs)*o,l=s-(s-o);return l>n||l!=l?i*(1/0):i*l},Js=Math.fround||function(e){return Ys(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)},Qs=Array,Xs=Math.abs,el=Math.pow,tl=Math.floor,nl=Math.log,rl=Math.LN2,al=function(e,t,n){var r,a,o,i=Qs(n),s=8*n-t-1,l=(1<<s)-1,u=l>>1,c=23===t?el(2,-24)-el(2,-77):0,d=e<0||0===e&&1/e<0?1:0,f=0;for((e=Xs(e))!=e||e===1/0?(a=e!=e?1:0,r=l):(r=tl(nl(e)/rl),e*(o=el(2,-r))<1&&(r--,o*=2),(e+=r+u>=1?c/o:c*el(2,1-u))*o>=2&&(r++,o/=2),r+u>=l?(a=0,r=l):r+u>=1?(a=(e*o-1)*el(2,t),r+=u):(a=e*el(2,u-1)*el(2,t),r=0));t>=8;)i[f++]=255&a,a/=256,t-=8;for(r=r<<t|a,s+=t;s>0;)i[f++]=255&r,r/=256,s-=8;return i[--f]|=128*d,i},ol=function(e,t){var n,r=e.length,a=8*r-t-1,o=(1<<a)-1,i=o>>1,s=a-7,l=r-1,u=e[l--],c=127&u;for(u>>=7;s>0;)c=256*c+e[l--],s-=8;for(n=c&(1<<-s)-1,c>>=-s,s+=t;s>0;)n=256*n+e[l--],s-=8;if(0===c)c=1-i;else{if(c===o)return n?NaN:u?-1/0:1/0;n+=el(2,t),c-=i}return(u?-1:1)*n*el(2,c-t)},il=qe.PROPER,sl=qe.CONFIGURABLE,ll="ArrayBuffer",ul="DataView",cl="prototype",dl="Wrong index",fl=dt.getterFor(ll),hl=dt.getterFor(ul),pl=dt.set,gl=c[ll],ml=gl,vl=ml&&ml[cl],yl=c[ul],bl=yl&&yl[cl],wl=Object.prototype,Cl=c.Array,Sl=c.RangeError,El=k($o),kl=k([].reverse),$l=al,Al=ol,xl=function(e){return[255&e]},Ml=function(e){return[255&e,e>>8&255]},Tl=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Pl=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Nl=function(e){return $l(Js(e),23,4)},Il=function(e){return $l(e,52,8)},Ol=function(e,t,n){yn(e[cl],t,{configurable:!0,get:function(){return n(this)[t]}})},Rl=function(e,t,n,r){var a=hl(e),o=Vs(n),i=!!r;if(o+t>a.byteLength)throw new Sl(dl);var s=a.bytes,l=o+a.byteOffset,u=pn(s,l,l+t);return i?u:kl(u)},Fl=function(e,t,n,r,a,o){var i=hl(e),s=Vs(n),l=r(+a),u=!!o;if(s+t>i.byteLength)throw new Sl(dl);for(var c=i.bytes,d=s+i.byteOffset,f=0;f<t;f++)c[d+f]=l[u?f:t-f-1]};if(Gs){var Bl=il&&gl.name!==ll;d((function(){gl(1)}))&&d((function(){new gl(-1)}))&&!d((function(){return new gl,new gl(1.5),new gl(NaN),1!==gl.length||Bl&&!sl}))?Bl&&sl&&Ve(gl,"name",ll):((ml=function(e){return zs(this,vl),da(new gl(Vs(e)),this,ml)})[cl]=vl,vl.constructor=ml,Bt(ml,gl)),la&&Ba(bl)!==wl&&la(bl,wl);var Ll=new yl(new ml(2)),Dl=k(bl.setInt8);Ll.setInt8(0,2147483648),Ll.setInt8(1,2147483649),!Ll.getInt8(0)&&Ll.getInt8(1)||js(bl,{setInt8:function(e,t){Dl(this,e,t<<24>>24)},setUint8:function(e,t){Dl(this,e,t<<24>>24)}},{unsafe:!0})}else ml=function(e){zs(this,vl);var t=Vs(e);pl(this,{type:ll,bytes:El(Cl(t),0),byteLength:t}),f||(this.byteLength=t,this.detached=!1)},vl=ml[cl],yl=function(e,t,n){zs(this,bl),zs(e,vl);var r=fl(e),a=r.byteLength,o=vt(t);if(o<0||o>a)throw new Sl("Wrong offset");if(o+(n=void 0===n?a-o:St(n))>a)throw new Sl("Wrong length");pl(this,{type:ul,buffer:e,byteLength:n,byteOffset:o,bytes:r.bytes}),f||(this.buffer=e,this.byteLength=n,this.byteOffset=o)},bl=yl[cl],f&&(Ol(ml,"byteLength",fl),Ol(yl,"buffer",hl),Ol(yl,"byteLength",hl),Ol(yl,"byteOffset",hl)),js(bl,{getInt8:function(e){return Rl(this,1,e)[0]<<24>>24},getUint8:function(e){return Rl(this,1,e)[0]},getInt16:function(e){var t=Rl(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Rl(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return Pl(Rl(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return Pl(Rl(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return Al(Rl(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return Al(Rl(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){Fl(this,1,e,xl,t)},setUint8:function(e,t){Fl(this,1,e,xl,t)},setInt16:function(e,t){Fl(this,2,e,Ml,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){Fl(this,2,e,Ml,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){Fl(this,4,e,Tl,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){Fl(this,4,e,Tl,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){Fl(this,4,e,Nl,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){Fl(this,8,e,Il,t,arguments.length>2&&arguments[2])}});An(ml,ll),An(yl,ul);var _l={ArrayBuffer:ml,DataView:yl},Gl="ArrayBuffer",jl=_l[Gl],Ul=c[Gl];Vt({global:!0,constructor:!0,forced:Ul!==jl},{ArrayBuffer:jl}),Es(Gl);var zl,Kl,Vl,Hl=dt.enforce,Wl=dt.get,Zl=c.Int8Array,ql=Zl&&Zl.prototype,Yl=c.Uint8ClampedArray,Jl=Yl&&Yl.prototype,Ql=Zl&&Ba(Zl),Xl=ql&&Ba(ql),eu=Object.prototype,tu=c.TypeError,nu=Ce("toStringTag"),ru=ve("TYPED_ARRAY_TAG"),au="TypedArrayConstructor",ou=Gs&&!!la&&"Opera"!==Qt(c.opera),iu=!1,su={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},lu={BigInt64Array:8,BigUint64Array:8},uu=function(e){var t=Ba(e);if(L(t)){var n=Wl(t);return n&&he(n,au)?n[au]:uu(t)}},cu=function(e){if(!L(e))return!1;var t=Qt(e);return he(su,t)||he(lu,t)};for(zl in su)(Vl=(Kl=c[zl])&&Kl.prototype)?Hl(Vl)[au]=Kl:ou=!1;for(zl in lu)(Vl=(Kl=c[zl])&&Kl.prototype)&&(Hl(Vl)[au]=Kl);if((!ou||!B(Ql)||Ql===Function.prototype)&&(Ql=function(){throw new tu("Incorrect invocation")},ou))for(zl in su)c[zl]&&la(c[zl],Ql);if((!ou||!Xl||Xl===eu)&&(Xl=Ql.prototype,ou))for(zl in su)c[zl]&&la(c[zl].prototype,Xl);if(ou&&Ba(Jl)!==Xl&&la(Jl,Xl),f&&!he(Xl,nu))for(zl in iu=!0,yn(Xl,nu,{configurable:!0,get:function(){return L(this)?this[ru]:void 0}}),su)c[zl]&&Ve(c[zl],ru,zl);var du={NATIVE_ARRAY_BUFFER_VIEWS:ou,TYPED_ARRAY_TAG:iu&&ru,aTypedArray:function(e){if(cu(e))return e;throw new tu("Target is not a typed array")},aTypedArrayConstructor:function(e){if(B(e)&&(!la||_(Ql,e)))return e;throw new tu(Q(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(f){if(n)for(var a in su){var o=c[a];if(o&&he(o.prototype,e))try{delete o.prototype[e]}catch(n){try{o.prototype[e]=t}catch(e){}}}Xl[e]&&!n||ht(Xl,e,n?t:ou&&ql[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,a;if(f){if(la){if(n)for(r in su)if((a=c[r])&&he(a,e))try{delete a[e]}catch(e){}if(Ql[e]&&!n)return;try{return ht(Ql,e,n?t:ou&&Ql[e]||t)}catch(e){}}for(r in su)!(a=c[r])||a[e]&&!n||ht(a,e,t)}},getTypedArrayConstructor:uu,isView:function(e){if(!L(e))return!1;var t=Qt(e);return"DataView"===t||he(su,t)||he(lu,t)},isTypedArray:cu,TypedArray:Ql,TypedArrayPrototype:Xl};Vt({target:"ArrayBuffer",stat:!0,forced:!du.NATIVE_ARRAY_BUFFER_VIEWS},{isView:du.isView});var fu=TypeError,hu=function(e){if(_n(e))return e;throw new fu(Q(e)+" is not a constructor")},pu=Ce("species"),gu=function(e,t){var n,r=Be(e).constructor;return void 0===r||N(n=Be(r)[pu])?t:hu(n)},mu=_l.ArrayBuffer,vu=_l.DataView,yu=vu.prototype,bu=xn(mu.prototype.slice),wu=xn(yu.getUint8),Cu=xn(yu.setUint8),Su=d((function(){return!new mu(2).slice(1,void 0).byteLength}));Vt({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:Su},{slice:function(e,t){if(bu&&void 0===t)return bu(Be(this),e);for(var n=Be(this).byteLength,r=wt(e,n),a=wt(void 0===t?n:t,n),o=new(gu(this,mu))(St(a-r)),i=new vu(this),s=new vu(o),l=0;r<a;)Cu(s,l++,wu(i,r++));return o}}),Vt({global:!0,constructor:!0,forced:!Gs},{DataView:_l.DataView});var Eu=d((function(){return 120!==new Date(16e11).getYear()})),ku=k(Date.prototype.getFullYear);Vt({target:"Date",proto:!0,forced:Eu},{getYear:function(){return ku(this)-1900}});var $u=Date,Au=k($u.prototype.getTime);Vt({target:"Date",stat:!0},{now:function(){return Au(new $u)}});var xu=Date.prototype,Mu=k(xu.getTime),Tu=k(xu.setFullYear);Vt({target:"Date",proto:!0},{setYear:function(e){Mu(this);var t=vt(e);return Tu(this,t>=0&&t<=99?t+1900:t)}}),Vt({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString});var Pu=RangeError,Nu=function(e){var t=en(O(this)),n="",r=vt(e);if(r<0||r===1/0)throw new Pu("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},Iu=k(Nu),Ou=k("".slice),Ru=Math.ceil,Fu=function(e){return function(t,n,r){var a,o,i=en(O(t)),s=St(n),l=i.length,u=void 0===r?" ":en(r);return s<=l||""===u?i:((o=Iu(u,Ru((a=s-l)/u.length))).length>a&&(o=Ou(o,0,a)),e?i+o:o+i)}},Bu={start:Fu(!1),end:Fu(!0)},Lu=Bu.start,Du=RangeError,_u=isFinite,Gu=Math.abs,ju=Date.prototype,Uu=ju.toISOString,zu=k(ju.getTime),Ku=k(ju.getUTCDate),Vu=k(ju.getUTCFullYear),Hu=k(ju.getUTCHours),Wu=k(ju.getUTCMilliseconds),Zu=k(ju.getUTCMinutes),qu=k(ju.getUTCMonth),Yu=k(ju.getUTCSeconds),Ju=d((function(){return"0385-07-25T07:06:39.999Z"!==Uu.call(new Date(-50000000000001))}))||!d((function(){Uu.call(new Date(NaN))}))?function(){if(!_u(zu(this)))throw new Du("Invalid time value");var e=this,t=Vu(e),n=Wu(e),r=t<0?"-":t>9999?"+":"";return r+Lu(Gu(t),r?6:4,0)+"-"+Lu(qu(e)+1,2,0)+"-"+Lu(Ku(e),2,0)+"T"+Lu(Hu(e),2,0)+":"+Lu(Zu(e),2,0)+":"+Lu(Yu(e),2,0)+"."+Lu(n,3,0)+"Z"}:Uu;Vt({target:"Date",proto:!0,forced:Date.prototype.toISOString!==Ju},{toISOString:Ju});var Qu=d((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));Vt({target:"Date",proto:!0,arity:1,forced:Qu},{toJSON:function(e){var t=de(this),n=ke(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}});var Xu=TypeError,ec=Ce("toPrimitive"),tc=Date.prototype;he(tc,ec)||ht(tc,ec,(function(e){if(Be(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new Xu("Incorrect hint");return re(this,e)}));var nc=Date.prototype,rc="Invalid Date",ac="toString",oc=k(nc[ac]),ic=k(nc.getTime);String(new Date(NaN))!==rc&&ht(nc,ac,(function(){var e=ic(this);return e==e?oc(this):rc}));var sc=k("".charAt),lc=k("".charCodeAt),uc=k(/./.exec),cc=k(1..toString),dc=k("".toUpperCase),fc=/[\w*+\-./@]/,hc=function(e,t){for(var n=cc(e,16);n.length<t;)n="0"+n;return n};Vt({global:!0},{escape:function(e){for(var t,n,r=en(e),a="",o=r.length,i=0;i<o;)t=sc(r,i++),uc(fc,t)?a+=t:a+=(n=lc(t,0))<256?"%"+hc(n,2):"%u"+dc(hc(n,4));return a}});var pc=Function,gc=k([].concat),mc=k([].join),vc={},yc=h?pc.bind:function(e){var t=ee(this),n=t.prototype,r=pn(arguments,1),a=function(){var n=gc(r,pn(arguments));return this instanceof a?function(e,t,n){if(!he(vc,t)){for(var r=[],a=0;a<t;a++)r[a]="a["+a+"]";vc[t]=pc("C,a","return new C("+mc(r,",")+")")}return vc[t](e,n)}(t,n.length,n):t.apply(e,n)};return L(n)&&(a.prototype=n),a};Vt({target:"Function",proto:!0,forced:Function.bind!==yc},{bind:yc});var bc=Ce("hasInstance"),wc=Function.prototype;bc in wc||Ke.f(wc,bc,{value:ft((function(e){if(!B(this)||!L(e))return!1;var t=this.prototype;return L(t)?_(t,e):e instanceof this}),bc)});var Cc=qe.EXISTS,Sc=Function.prototype,Ec=k(Sc.toString),kc=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,$c=k(kc.exec);f&&!Cc&&yn(Sc,"name",{configurable:!0,get:function(){try{return $c(kc,Ec(this))[1]}catch(e){return""}}}),Vt({global:!0,forced:c.globalThis!==c},{globalThis:c}),An(c.JSON,"JSON",!0);var Ac=d((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),xc=Object.isExtensible,Mc=d((function(){xc(1)}))||Ac?function(e){return!!L(e)&&((!Ac||"ArrayBuffer"!==x(e))&&(!xc||xc(e)))}:xc,Tc=!d((function(){return Object.isExtensible(Object.preventExtensions({}))})),Pc=i((function(e){var t=Ke.f,n=!1,r=ve("meta"),a=0,o=function(e){t(e,r,{value:{objectID:"O"+a++,weakData:{}}})},i=e.exports={enable:function(){i.enable=function(){},n=!0;var e=It.f,t=k([].splice),a={};a[r]=1,e(a).length&&(It.f=function(n){for(var a=e(n),o=0,i=a.length;o<i;o++)if(a[o]===r){t(a,o,1);break}return a},Vt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:vn.f}))},fastKey:function(e,t){if(!L(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!he(e,r)){if(!Mc(e))return"F";if(!t)return"E";o(e)}return e[r].objectID},getWeakData:function(e,t){if(!he(e,r)){if(!Mc(e))return!0;if(!t)return!1;o(e)}return e[r].weakData},onFreeze:function(e){return Tc&&n&&Mc(e)&&!he(e,r)&&o(e),e}};ot[r]=!0}));Pc.enable,Pc.fastKey,Pc.getWeakData,Pc.onFreeze;var Nc=function(e,t,n){var r=-1!==e.indexOf("Map"),a=-1!==e.indexOf("Weak"),o=r?"set":"add",i=c[e],s=i&&i.prototype,l=i,u={},f=function(e){var t=k(s[e]);ht(s,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(a&&!L(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return a&&!L(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(a&&!L(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(zt(e,!B(i)||!(a||s.forEach&&!d((function(){(new i).entries().next()})))))l=n.getConstructor(t,e,r,o),Pc.enable();else if(zt(e,!0)){var h=new l,p=h[o](a?{}:-0,1)!==h,g=d((function(){h.has(1)})),m=qo((function(e){new i(e)})),v=!a&&d((function(){for(var e=new i,t=5;t--;)e[o](t,t);return!e.has(-0)}));m||((l=t((function(e,t){zs(e,s);var n=da(new i,e,l);return N(t)||qa(t,n[o],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=l),(g||v)&&(f("delete"),f("has"),r&&f("get")),(v||p)&&f(o),a&&s.clear&&delete s.clear}return u[e]=l,Vt({global:!0,constructor:!0,forced:l!==i},u),An(l,e),a||n.setStrong(l,e,r),l},Ic=Pc.fastKey,Oc=dt.set,Rc=dt.getterFor,Fc={getConstructor:function(e,t,n,r){var a=e((function(e,a){zs(e,o),Oc(e,{type:t,index:hn(null),first:void 0,last:void 0,size:0}),f||(e.size=0),N(a)||qa(a,e[r],{that:e,AS_ENTRIES:n})})),o=a.prototype,i=Rc(t),s=function(e,t,n){var r,a,o=i(e),s=l(e,t);return s?s.value=n:(o.last=s={index:a=Ic(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),f?o.size++:e.size++,"F"!==a&&(o.index[a]=s)),e},l=function(e,t){var n,r=i(e),a=Ic(t);if("F"!==a)return r.index[a];for(n=r.first;n;n=n.next)if(n.key===t)return n};return js(o,{clear:function(){for(var e=i(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),t=t.next;e.first=e.last=void 0,e.index=hn(null),f?e.size=0:this.size=0},delete:function(e){var t=this,n=i(t),r=l(t,e);if(r){var a=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=a),a&&(a.previous=o),n.first===r&&(n.first=a),n.last===r&&(n.last=o),f?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=i(this),r=Tn(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!l(this,e)}}),js(o,n?{get:function(e){var t=l(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),f&&yn(o,"size",{configurable:!0,get:function(){return i(this).size}}),a},setStrong:function(e,t,n){var r=t+" Iterator",a=Rc(t),o=Rc(r);Si(e,t,(function(e,t){Oc(this,{type:r,target:e,state:a(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?Ei("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=void 0,Ei(void 0,!0))}),n?"entries":"values",!n,!0),Es(t)}};Nc("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Fc);var Bc=Map.prototype,Lc={Map:Map,set:k(Bc.set),get:k(Bc.get),has:k(Bc.has),remove:k(Bc.delete),proto:Bc},Dc=Lc.Map,_c=Lc.has,Gc=Lc.get,jc=Lc.set,Uc=k([].push);Vt({target:"Map",stat:!0,forced:ae},{groupBy:function(e,t){O(e),ee(t);var n=new Dc,r=0;return qa(e,(function(e){var a=t(e,r++);_c(n,a)?Uc(Gc(n,a),e):jc(n,a,[e])})),n}});var zc=Math.log,Kc=Math.log1p||function(e){var t=+e;return t>-1e-8&&t<1e-8?t-t*t/2:zc(1+t)},Vc=Math.acosh,Hc=Math.log,Wc=Math.sqrt,Zc=Math.LN2,qc=!Vc||710!==Math.floor(Vc(Number.MAX_VALUE))||Vc(1/0)!==1/0;Vt({target:"Math",stat:!0,forced:qc},{acosh:function(e){var t=+e;return t<1?NaN:t>94906265.62425156?Hc(t)+Zc:Kc(t-1+Wc(t-1)*Wc(t+1))}});var Yc=Math.asinh,Jc=Math.log,Qc=Math.sqrt;var Xc=!(Yc&&1/Yc(0)>0);Vt({target:"Math",stat:!0,forced:Xc},{asinh:function e(t){var n=+t;return isFinite(n)&&0!==n?n<0?-e(-n):Jc(n+Qc(n*n+1)):n}});var ed=Math.atanh,td=Math.log,nd=!(ed&&1/ed(-0)<0);Vt({target:"Math",stat:!0,forced:nd},{atanh:function(e){var t=+e;return 0===t?t:td((1+t)/(1-t))/2}});var rd=Math.abs,ad=Math.pow;Vt({target:"Math",stat:!0},{cbrt:function(e){var t=+e;return Hs(t)*ad(rd(t),1/3)}});var od=Math.floor,id=Math.log,sd=Math.LOG2E;Vt({target:"Math",stat:!0},{clz32:function(e){var t=e>>>0;return t?31-od(id(t+.5)*sd):32}});var ld=Math.expm1,ud=Math.exp,cd=!ld||ld(10)>22025.465794806718||ld(10)<22025.465794806718||-2e-17!==ld(-2e-17)?function(e){var t=+e;return 0===t?t:t>-1e-6&&t<1e-6?t+t*t/2:ud(t)-1}:ld,dd=Math.cosh,fd=Math.abs,hd=Math.E,pd=!dd||dd(710)===1/0;Vt({target:"Math",stat:!0,forced:pd},{cosh:function(e){var t=cd(fd(e)-1)+1;return(t+1/(t*hd*hd))*(hd/2)}}),Vt({target:"Math",stat:!0,forced:cd!==Math.expm1},{expm1:cd}),Vt({target:"Math",stat:!0},{fround:Js});var gd=Math.hypot,md=Math.abs,vd=Math.sqrt,yd=!!gd&&gd(1/0,NaN)!==1/0;Vt({target:"Math",stat:!0,arity:2,forced:yd},{hypot:function(e,t){for(var n,r,a=0,o=0,i=arguments.length,s=0;o<i;)s<(n=md(arguments[o++]))?(a=a*(r=s/n)*r+1,s=n):a+=n>0?(r=n/s)*r:n;return s===1/0?1/0:s*vd(a)}});var bd=Math.imul,wd=d((function(){return-5!==bd(4294967295,5)||2!==bd.length}));Vt({target:"Math",stat:!0,forced:wd},{imul:function(e,t){var n=65535,r=+e,a=+t,o=n&r,i=n&a;return 0|o*i+((n&r>>>16)*i+o*(n&a>>>16)<<16>>>0)}});var Cd=Math.log,Sd=Math.LOG10E,Ed=Math.log10||function(e){return Cd(e)*Sd};Vt({target:"Math",stat:!0},{log10:Ed}),Vt({target:"Math",stat:!0},{log1p:Kc});var kd=Math.log,$d=Math.LN2;Vt({target:"Math",stat:!0},{log2:function(e){return kd(e)/$d}}),Vt({target:"Math",stat:!0},{sign:Hs});var Ad=Math.abs,xd=Math.exp,Md=Math.E,Td=d((function(){return-2e-17!==Math.sinh(-2e-17)}));Vt({target:"Math",stat:!0,forced:Td},{sinh:function(e){var t=+e;return Ad(t)<1?(cd(t)-cd(-t))/2:(xd(t-1)-xd(-t-1))*(Md/2)}});var Pd=Math.exp;Vt({target:"Math",stat:!0},{tanh:function(e){var t=+e,n=cd(t),r=cd(-t);return n===1/0?1:r===1/0?-1:(n-r)/(Pd(t)+Pd(-t))}}),An(Math,"Math",!0),Vt({target:"Math",stat:!0},{trunc:mt});var Nd=k(1..valueOf),Id="\t\n\v\f\r \u2028\u2029\ufeff",Od=k("".replace),Rd=RegExp("^["+Id+"]+"),Fd=RegExp("(^|[^"+Id+"])["+Id+"]+$"),Bd=function(e){return function(t){var n=en(O(t));return 1&e&&(n=Od(n,Rd,"")),2&e&&(n=Od(n,Fd,"$1")),n}},Ld={start:Bd(1),end:Bd(2),trim:Bd(3)},Dd=It.f,_d=Ie.f,Gd=Ke.f,jd=Ld.trim,Ud="Number",zd=c[Ud];wn[Ud];var Kd=zd.prototype,Vd=c.TypeError,Hd=k("".slice),Wd=k("".charCodeAt),Zd=function(e){var t,n,r,a,o,i,s,l,u=ke(e,"number");if(Y(u))throw new Vd("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=jd(u),43===(t=Wd(u,0))||45===t){if(88===(n=Wd(u,2))||120===n)return NaN}else if(48===t){switch(Wd(u,1)){case 66:case 98:r=2,a=49;break;case 79:case 111:r=8,a=55;break;default:return+u}for(i=(o=Hd(u,2)).length,s=0;s<i;s++)if((l=Wd(o,s))<48||l>a)return NaN;return parseInt(o,r)}return+u},qd=zt(Ud,!zd(" 0o1")||!zd("0b1")||zd("+0x1")),Yd=function(e){var t,n=arguments.length<1?0:zd(function(e){var t=ke(e,"number");return"bigint"==typeof t?t:Zd(t)}(e));return _(Kd,t=this)&&d((function(){Nd(t)}))?da(Object(n),this,Yd):n};Yd.prototype=Kd,qd&&(Kd.constructor=Yd),Vt({global:!0,constructor:!0,wrap:!0,forced:qd},{Number:Yd});qd&&function(e,t){for(var n,r=f?Dd(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),a=0;r.length>a;a++)he(t,n=r[a])&&!he(e,n)&&Gd(e,n,_d(t,n))}(wn[Ud],zd),Vt({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)});var Jd=c.isFinite,Qd=Number.isFinite||function(e){return"number"==typeof e&&Jd(e)};Vt({target:"Number",stat:!0},{isFinite:Qd});var Xd=Math.floor,ef=Number.isInteger||function(e){return!L(e)&&isFinite(e)&&Xd(e)===e};Vt({target:"Number",stat:!0},{isInteger:ef}),Vt({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var tf=Math.abs;Vt({target:"Number",stat:!0},{isSafeInteger:function(e){return ef(e)&&tf(e)<=9007199254740991}}),Vt({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991}),Vt({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991});var nf=Ld.trim,rf=k("".charAt),af=c.parseFloat,of=c.Symbol,sf=of&&of.iterator,lf=1/af(Id+"-0")!=-1/0||sf&&!d((function(){af(Object(sf))}))?function(e){var t=nf(en(e)),n=af(t);return 0===n&&"-"===rf(t,0)?-0:n}:af;Vt({target:"Number",stat:!0,forced:Number.parseFloat!==lf},{parseFloat:lf});var uf=Ld.trim,cf=c.parseInt,df=c.Symbol,ff=df&&df.iterator,hf=/^[+-]?0x/i,pf=k(hf.exec),gf=8!==cf(Id+"08")||22!==cf(Id+"0x16")||ff&&!d((function(){cf(Object(ff))}))?function(e,t){var n=uf(en(e));return cf(n,t>>>0||(pf(hf,n)?16:10))}:cf;Vt({target:"Number",stat:!0,forced:Number.parseInt!==gf},{parseInt:gf});var mf=RangeError,vf=String,yf=isFinite,bf=Math.abs,wf=Math.floor,Cf=Math.pow,Sf=Math.round,Ef=k(1..toExponential),kf=k(Nu),$f=k("".slice),Af="-6.9000e-11"===Ef(-69e-12,4)&&"1.25e+0"===Ef(1.255,2)&&"1.235e+4"===Ef(12345,3)&&"3e+1"===Ef(25,0),xf=!Af||!(d((function(){Ef(1,1/0)}))&&d((function(){Ef(1,-1/0)})))||!!d((function(){Ef(1/0,1/0),Ef(NaN,1/0)}));Vt({target:"Number",proto:!0,forced:xf},{toExponential:function(e){var t=Nd(this);if(void 0===e)return Ef(t);var n=vt(e);if(!yf(t))return String(t);if(n<0||n>20)throw new mf("Incorrect fraction digits");if(Af)return Ef(t,n);var r="",a="",o=0,i="",s="";if(t<0&&(r="-",t=-t),0===t)o=0,a=kf("0",n+1);else{var l=Ed(t);o=wf(l);var u=0,c=Cf(10,o-n);2*t>=(2*(u=Sf(t/c))+1)*c&&(u+=1),u>=Cf(10,n+1)&&(u/=10,o+=1),a=vf(u)}return 0!==n&&(a=$f(a,0,1)+"."+$f(a,1)),0===o?(i="+",s="0"):(i=o>0?"+":"-",s=vf(bf(o))),r+(a+="e"+i+s)}});var Mf=RangeError,Tf=String,Pf=Math.floor,Nf=k(Nu),If=k("".slice),Of=k(1..toFixed),Rf=function(e,t,n){return 0===t?n:t%2==1?Rf(e,t-1,n*e):Rf(e*e,t/2,n)},Ff=function(e,t,n){for(var r=-1,a=n;++r<6;)a+=t*e[r],e[r]=a%1e7,a=Pf(a/1e7)},Bf=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=Pf(r/t),r=r%t*1e7},Lf=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=Tf(e[t]);n=""===n?r:n+Nf("0",7-r.length)+r}return n},Df=d((function(){return"0.000"!==Of(8e-5,3)||"1"!==Of(.9,0)||"1.25"!==Of(1.255,2)||"1000000000000000128"!==Of(0xde0b6b3a7640080,0)}))||!d((function(){Of({})}));Vt({target:"Number",proto:!0,forced:Df},{toFixed:function(e){var t,n,r,a,o=Nd(this),i=vt(e),s=[0,0,0,0,0,0],l="",u="0";if(i<0||i>20)throw new Mf("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return Tf(o);if(o<0&&(l="-",o=-o),o>1e-21)if(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(o*Rf(2,69,1))-69,n=t<0?o*Rf(2,-t,1):o/Rf(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Ff(s,0,n),r=i;r>=7;)Ff(s,1e7,0),r-=7;for(Ff(s,Rf(10,r,1),0),r=t-1;r>=23;)Bf(s,1<<23),r-=23;Bf(s,1<<r),Ff(s,1,1),Bf(s,2),u=Lf(s)}else Ff(s,0,n),Ff(s,1<<-t,0),u=Lf(s)+Nf("0",i);return u=i>0?l+((a=u.length)<=i?"0."+Nf("0",i-a)+u:If(u,0,a-i)+"."+If(u,a-i)):l+u}});var _f=k(1..toPrecision),Gf=d((function(){return"1"!==_f(1,void 0)}))||!d((function(){_f({})}));Vt({target:"Number",proto:!0,forced:Gf},{toPrecision:function(e){return void 0===e?_f(Nd(this)):_f(Nd(this),e)}});var jf=Object.assign,Uf=Object.defineProperty,zf=k([].concat),Kf=!jf||d((function(){if(f&&1!==jf({b:1},jf(Uf({},"a",{enumerable:!0,get:function(){Uf(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==jf({},e)[n]||tn(jf({},t)).join("")!==r}))?function(e,t){for(var n=de(e),r=arguments.length,a=1,o=Ot.f,i=b.f;r>a;)for(var s,l=P(arguments[a++]),u=o?zf(tn(l),o(l)):tn(l),c=u.length,d=0;c>d;)s=u[d++],f&&!g(i,l,s)||(n[s]=l[s]);return n}:jf;Vt({target:"Object",stat:!0,arity:2,forced:Object.assign!==Kf},{assign:Kf}),Vt({target:"Object",stat:!0,sham:!f},{create:hn});var Vf=!d((function(){if(!(ps&&ps<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete c[e]}}));f&&Vt({target:"Object",proto:!0,forced:Vf},{__defineGetter__:function(e,t){Ke.f(de(this),e,{get:ee(t),enumerable:!0,configurable:!0})}});var Hf=rn.f;Vt({target:"Object",stat:!0,forced:Object.defineProperties!==Hf,sham:!f},{defineProperties:Hf});var Wf=Ke.f;Vt({target:"Object",stat:!0,forced:Object.defineProperty!==Wf,sham:!f},{defineProperty:Wf}),f&&Vt({target:"Object",proto:!0,forced:Vf},{__defineSetter__:function(e,t){Ke.f(de(this),e,{set:ee(t),enumerable:!0,configurable:!0})}});var Zf=b.f,qf=k(Zf),Yf=k([].push),Jf=f&&d((function(){var e=Object.create(null);return e[2]=2,!qf(e,2)})),Qf=function(e){return function(t){for(var n,r=R(t),a=tn(r),o=Jf&&null===Ba(r),i=a.length,s=0,l=[];i>s;)n=a[s++],f&&!(o?n in r:qf(r,n))||Yf(l,e?[n,r[n]]:r[n]);return l}},Xf={entries:Qf(!0),values:Qf(!1)},eh=Xf.entries;Vt({target:"Object",stat:!0},{entries:function(e){return eh(e)}});var th=Pc.onFreeze,nh=Object.freeze,rh=d((function(){nh(1)}));Vt({target:"Object",stat:!0,forced:rh,sham:!Tc},{freeze:function(e){return nh&&L(e)?nh(th(e)):e}}),Vt({target:"Object",stat:!0},{fromEntries:function(e){var t={};return qa(e,(function(e,n){co(t,e,n)}),{AS_ENTRIES:!0}),t}});var ah=Ie.f,oh=!f||d((function(){ah(1)}));Vt({target:"Object",stat:!0,forced:oh,sham:!f},{getOwnPropertyDescriptor:function(e,t){return ah(R(e),t)}}),Vt({target:"Object",stat:!0,sham:!f},{getOwnPropertyDescriptors:function(e){for(var t,n,r=R(e),a=Ie.f,o=Ft(r),i={},s=0;o.length>s;)void 0!==(n=a(r,t=o[s++]))&&co(i,t,n);return i}});var ih=vn.f,sh=d((function(){return!Object.getOwnPropertyNames(1)}));Vt({target:"Object",stat:!0,forced:sh},{getOwnPropertyNames:ih});var lh=d((function(){Ba(1)}));Vt({target:"Object",stat:!0,forced:lh,sham:!Ia},{getPrototypeOf:function(e){return Ba(de(e))}});var uh=D("Object","create"),ch=k([].push);Vt({target:"Object",stat:!0},{groupBy:function(e,t){O(e),ee(t);var n=uh(null),r=0;return qa(e,(function(e){var a=$e(t(e,r++));a in n?ch(n[a],e):n[a]=[e]})),n}}),Vt({target:"Object",stat:!0},{hasOwn:he});var dh=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Vt({target:"Object",stat:!0},{is:dh}),Vt({target:"Object",stat:!0,forced:Object.isExtensible!==Mc},{isExtensible:Mc});var fh=Object.isFrozen,hh=Ac||d((function(){fh(1)}));Vt({target:"Object",stat:!0,forced:hh},{isFrozen:function(e){return!L(e)||(!(!Ac||"ArrayBuffer"!==x(e))||!!fh&&fh(e))}});var ph=Object.isSealed,gh=Ac||d((function(){ph(1)}));Vt({target:"Object",stat:!0,forced:gh},{isSealed:function(e){return!L(e)||(!(!Ac||"ArrayBuffer"!==x(e))||!!ph&&ph(e))}});var mh=d((function(){tn(1)}));Vt({target:"Object",stat:!0,forced:mh},{keys:function(e){return tn(de(e))}});var vh=Ie.f;f&&Vt({target:"Object",proto:!0,forced:Vf},{__lookupGetter__:function(e){var t,n=de(this),r=$e(e);do{if(t=vh(n,r))return t.get}while(n=Ba(n))}});var yh=Ie.f;f&&Vt({target:"Object",proto:!0,forced:Vf},{__lookupSetter__:function(e){var t,n=de(this),r=$e(e);do{if(t=yh(n,r))return t.set}while(n=Ba(n))}});var bh=Pc.onFreeze,wh=Object.preventExtensions,Ch=d((function(){wh(1)}));Vt({target:"Object",stat:!0,forced:Ch,sham:!Tc},{preventExtensions:function(e){return wh&&L(e)?wh(bh(e)):e}});var Sh=Object.getPrototypeOf,Eh=Object.setPrototypeOf,kh=Object.prototype,$h="__proto__";if(f&&Sh&&Eh&&!($h in kh))try{yn(kh,$h,{configurable:!0,get:function(){return Sh(de(this))},set:function(e){var t=O(this);aa(e)&&L(t)&&Eh(t,e)}})}catch(e){}var Ah=Pc.onFreeze,xh=Object.seal,Mh=d((function(){xh(1)}));Vt({target:"Object",stat:!0,forced:Mh,sham:!Tc},{seal:function(e){return xh&&L(e)?xh(Ah(e)):e}}),Vt({target:"Object",stat:!0},{setPrototypeOf:la});var Th=Zt?{}.toString:function(){return"[object "+Qt(this)+"]"};Zt||ht(Object.prototype,"toString",Th,{unsafe:!0});var Ph=Xf.values;Vt({target:"Object",stat:!0},{values:function(e){return Ph(e)}}),Vt({global:!0,forced:parseFloat!==lf},{parseFloat:lf}),Vt({global:!0,forced:parseInt!==gf},{parseInt:gf});var Nh,Ih,Oh,Rh,Fh=TypeError,Bh=function(e,t){if(e<t)throw new Fh("Not enough arguments");return e},Lh=/(?:ipad|iphone|ipod).*applewebkit/i.test(G),Dh=c.setImmediate,_h=c.clearImmediate,Gh=c.process,jh=c.Dispatch,Uh=c.Function,zh=c.MessageChannel,Kh=c.String,Vh=0,Hh={},Wh="onreadystatechange";d((function(){Nh=c.location}));var Zh=function(e){if(he(Hh,e)){var t=Hh[e];delete Hh[e],t()}},qh=function(e){return function(){Zh(e)}},Yh=function(e){Zh(e.data)},Jh=function(e){c.postMessage(Kh(e),Nh.protocol+"//"+Nh.host)};Dh&&_h||(Dh=function(e){Bh(arguments.length,1);var t=B(e)?e:Uh(e),n=pn(arguments,1);return Hh[++Vh]=function(){Tr(t,void 0,n)},Ih(Vh),Vh},_h=function(e){delete Hh[e]},Zi?Ih=function(e){Gh.nextTick(qh(e))}:jh&&jh.now?Ih=function(e){jh.now(qh(e))}:zh&&!Lh?(Rh=(Oh=new zh).port2,Oh.port1.onmessage=Yh,Ih=Tn(Rh.postMessage,Rh)):c.addEventListener&&B(c.postMessage)&&!c.importScripts&&Nh&&"file:"!==Nh.protocol&&!d(Jh)?(Ih=Jh,c.addEventListener("message",Yh,!1)):Ih=Wh in Me("script")?function(e){an.appendChild(Me("script"))[Wh]=function(){an.removeChild(this),Zh(e)}}:function(e){setTimeout(qh(e),0)});var Qh={set:Dh,clear:_h},Xh=Object.getOwnPropertyDescriptor,ep=function(e){if(!f)return c[e];var t=Xh(c,e);return t&&t.value},tp=function(){this.head=null,this.tail=null};tp.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.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 np,rp,ap,op,ip,sp=tp,lp=/ipad|iphone|ipod/i.test(G)&&"undefined"!=typeof Pebble,up=/web0s(?!.*chrome)/i.test(G),cp=Qh.set,dp=c.MutationObserver||c.WebKitMutationObserver,fp=c.document,hp=c.process,pp=c.Promise,gp=ep("queueMicrotask");if(!gp){var mp=new sp,vp=function(){var e,t;for(Zi&&(e=hp.domain)&&e.exit();t=mp.get();)try{t()}catch(e){throw mp.head&&np(),e}e&&e.enter()};Lh||Zi||up||!dp||!fp?!lp&&pp&&pp.resolve?((op=pp.resolve(void 0)).constructor=pp,ip=Tn(op.then,op),np=function(){ip(vp)}):Zi?np=function(){hp.nextTick(vp)}:(cp=Tn(cp,c),np=function(){cp(vp)}):(rp=!0,ap=fp.createTextNode(""),new dp(vp).observe(ap,{characterData:!0}),np=function(){ap.data=rp=!rp}),gp=function(e){mp.head||np(),mp.add(e)}}var yp=gp,bp=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}},wp=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Cp=c.Promise,Sp="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Ep=!Sp&&!Zi&&"object"==typeof window&&"object"==typeof document;Cp&&Cp.prototype;var kp,$p,Ap,xp=Ce("species"),Mp=!1,Tp=B(c.PromiseRejectionEvent),Pp=zt("Promise",(function(){var e=et(Cp),t=e!==String(Cp);if(!t&&66===V)return!0;if(!V||V<51||!/native code/.test(e)){var n=new Cp((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[xp]=r,!(Mp=n.then((function(){}))instanceof r))return!0}return!t&&(Ep||Sp)&&!Tp})),Np={CONSTRUCTOR:Pp,REJECTION_EVENT:Tp,SUBCLASSING:Mp},Ip=TypeError,Op=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new Ip("Bad Promise constructor");t=e,n=r})),this.resolve=ee(t),this.reject=ee(n)},Rp={f:function(e){return new Op(e)}},Fp=Qh.set,Bp="Promise",Lp=Np.CONSTRUCTOR,Dp=Np.REJECTION_EVENT,_p=Np.SUBCLASSING,Gp=dt.getterFor(Bp),jp=dt.set,Up=Cp&&Cp.prototype,zp=Cp,Kp=Up,Vp=c.TypeError,Hp=c.document,Wp=c.process,Zp=Rp.f,qp=Zp,Yp=!!(Hp&&Hp.createEvent&&c.dispatchEvent),Jp="unhandledrejection",Qp=function(e){var t;return!(!L(e)||!B(t=e.then))&&t},Xp=function(e,t){var n,r,a,o=t.value,i=1===t.state,s=i?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{s?(i||(2===t.rejection&&ag(t),t.rejection=1),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),a=!0)),n===e.promise?u(new Vp("Promise-chain cycle")):(r=Qp(n))?g(r,n,l,u):l(n)):u(o)}catch(e){c&&!a&&c.exit(),u(e)}},eg=function(e,t){e.notified||(e.notified=!0,yp((function(){for(var n,r=e.reactions;n=r.get();)Xp(n,e);e.notified=!1,t&&!e.rejection&&ng(e)})))},tg=function(e,t,n){var r,a;Yp?((r=Hp.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!Dp&&(a=c["on"+e])?a(r):e===Jp&&bp("Unhandled promise rejection",n)},ng=function(e){g(Fp,c,(function(){var t,n=e.facade,r=e.value;if(rg(e)&&(t=wp((function(){Zi?Wp.emit("unhandledRejection",r,n):tg(Jp,n,r)})),e.rejection=Zi||rg(e)?2:1,t.error))throw t.value}))},rg=function(e){return 1!==e.rejection&&!e.parent},ag=function(e){g(Fp,c,(function(){var t=e.facade;Zi?Wp.emit("rejectionHandled",t):tg("rejectionhandled",t,e.value)}))},og=function(e,t,n){return function(r){e(t,r,n)}},ig=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,eg(e,!0))},sg=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new Vp("Promise can't be resolved itself");var r=Qp(t);r?yp((function(){var n={done:!1};try{g(r,t,og(sg,n,e),og(ig,n,e))}catch(t){ig(n,t,e)}})):(e.value=t,e.state=1,eg(e,!1))}catch(t){ig({done:!1},t,e)}}};if(Lp&&(Kp=(zp=function(e){zs(this,Kp),ee(e),g(kp,this);var t=Gp(this);try{e(og(sg,t),og(ig,t))}catch(e){ig(t,e)}}).prototype,(kp=function(e){jp(this,{type:Bp,done:!1,notified:!1,parent:!1,reactions:new sp,rejection:!1,state:0,value:void 0})}).prototype=ht(Kp,"then",(function(e,t){var n=Gp(this),r=Zp(gu(this,zp));return n.parent=!0,r.ok=!B(e)||e,r.fail=B(t)&&t,r.domain=Zi?Wp.domain:void 0,0===n.state?n.reactions.add(r):yp((function(){Xp(r,n)})),r.promise})),$p=function(){var e=new kp,t=Gp(e);this.promise=e,this.resolve=og(sg,t),this.reject=og(ig,t)},Rp.f=Zp=function(e){return e===zp||undefined===e?new $p(e):qp(e)},B(Cp)&&Up!==Object.prototype)){Ap=Up.then,_p||ht(Up,"then",(function(e,t){var n=this;return new zp((function(e,t){g(Ap,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete Up.constructor}catch(e){}la&&la(Up,Kp)}Vt({global:!0,constructor:!0,wrap:!0,forced:Lp},{Promise:zp}),An(zp,Bp,!1),Es(Bp);var lg=Np.CONSTRUCTOR||!qo((function(e){Cp.all(e).then(void 0,(function(){}))}));Vt({target:"Promise",stat:!0,forced:lg},{all:function(e){var t=this,n=Rp.f(t),r=n.resolve,a=n.reject,o=wp((function(){var n=ee(t.resolve),o=[],i=0,s=1;qa(e,(function(e){var l=i++,u=!1;s++,g(n,t,e).then((function(e){u||(u=!0,o[l]=e,--s||r(o))}),a)})),--s||r(o)}));return o.error&&a(o.value),n.promise}});var ug=Np.CONSTRUCTOR,cg=Cp&&Cp.prototype;if(Vt({target:"Promise",proto:!0,forced:ug,real:!0},{catch:function(e){return this.then(void 0,e)}}),B(Cp)){var dg=D("Promise").prototype.catch;cg.catch!==dg&&ht(cg,"catch",dg,{unsafe:!0})}Vt({target:"Promise",stat:!0,forced:lg},{race:function(e){var t=this,n=Rp.f(t),r=n.reject,a=wp((function(){var a=ee(t.resolve);qa(e,(function(e){g(a,t,e).then(n.resolve,r)}))}));return a.error&&r(a.value),n.promise}}),Vt({target:"Promise",stat:!0,forced:Np.CONSTRUCTOR},{reject:function(e){var t=Rp.f(this);return(0,t.reject)(e),t.promise}});var fg=function(e,t){if(Be(e),L(t)&&t.constructor===e)return t;var n=Rp.f(e);return(0,n.resolve)(t),n.promise},hg=Np.CONSTRUCTOR;D("Promise"),Vt({target:"Promise",stat:!0,forced:hg},{resolve:function(e){return fg(this,e)}}),Vt({target:"Promise",stat:!0,forced:lg},{allSettled:function(e){var t=this,n=Rp.f(t),r=n.resolve,a=n.reject,o=wp((function(){var n=ee(t.resolve),a=[],o=0,i=1;qa(e,(function(e){var s=o++,l=!1;i++,g(n,t,e).then((function(e){l||(l=!0,a[s]={status:"fulfilled",value:e},--i||r(a))}),(function(e){l||(l=!0,a[s]={status:"rejected",reason:e},--i||r(a))}))})),--i||r(a)}));return o.error&&a(o.value),n.promise}});var pg="No one promise resolved";Vt({target:"Promise",stat:!0,forced:lg},{any:function(e){var t=this,n=D("AggregateError"),r=Rp.f(t),a=r.resolve,o=r.reject,i=wp((function(){var r=ee(t.resolve),i=[],s=0,l=1,u=!1;qa(e,(function(e){var c=s++,d=!1;l++,g(r,t,e).then((function(e){d||u||(u=!0,a(e))}),(function(e){d||u||(d=!0,i[c]=e,--l||o(new n(i,pg)))}))})),--l||o(new n(i,pg))}));return i.error&&o(i.value),r.promise}});var gg=Cp&&Cp.prototype,mg=!!Cp&&d((function(){gg.finally.call({then:function(){}},(function(){}))}));if(Vt({target:"Promise",proto:!0,real:!0,forced:mg},{finally:function(e){var t=gu(this,D("Promise")),n=B(e);return this.then(n?function(n){return fg(t,e()).then((function(){return n}))}:e,n?function(n){return fg(t,e()).then((function(){throw n}))}:e)}}),B(Cp)){var vg=D("Promise").prototype.finally;gg.finally!==vg&&ht(gg,"finally",vg,{unsafe:!0})}Vt({target:"Promise",stat:!0},{withResolvers:function(){var e=Rp.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}});var yg=!d((function(){Reflect.apply((function(){}))}));Vt({target:"Reflect",stat:!0,forced:yg},{apply:function(e,t,n){return Tr(ee(e),t,Be(n))}});var bg=D("Reflect","construct"),wg=Object.prototype,Cg=[].push,Sg=d((function(){function e(){}return!(bg((function(){}),[],e)instanceof e)})),Eg=!d((function(){bg((function(){}))})),kg=Sg||Eg;Vt({target:"Reflect",stat:!0,forced:kg,sham:kg},{construct:function(e,t){hu(e),Be(t);var n=arguments.length<3?e:hu(arguments[2]);if(Eg&&!Sg)return bg(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return Tr(Cg,r,t),new(Tr(yc,e,r))}var a=n.prototype,o=hn(L(a)?a:wg),i=Tr(e,o,t);return L(i)?i:o}});var $g=d((function(){Reflect.defineProperty(Ke.f({},1,{value:1}),1,{value:2})}));Vt({target:"Reflect",stat:!0,forced:$g,sham:!f},{defineProperty:function(e,t,n){Be(e);var r=$e(t);Be(n);try{return Ke.f(e,r,n),!0}catch(e){return!1}}});var Ag=Ie.f;Vt({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=Ag(Be(e),t);return!(n&&!n.configurable)&&delete e[t]}});var xg=function(e){return void 0!==e&&(he(e,"value")||he(e,"writable"))};Vt({target:"Reflect",stat:!0},{get:function e(t,n){var r,a,o=arguments.length<3?t:arguments[2];return Be(t)===o?t[n]:(r=Ie.f(t,n))?xg(r)?r.value:void 0===r.get?void 0:g(r.get,o):L(a=Ba(t))?e(a,n,o):void 0}}),Vt({target:"Reflect",stat:!0,sham:!f},{getOwnPropertyDescriptor:function(e,t){return Ie.f(Be(e),t)}}),Vt({target:"Reflect",stat:!0,sham:!Ia},{getPrototypeOf:function(e){return Ba(Be(e))}}),Vt({target:"Reflect",stat:!0},{has:function(e,t){return t in e}}),Vt({target:"Reflect",stat:!0},{isExtensible:function(e){return Be(e),Mc(e)}}),Vt({target:"Reflect",stat:!0},{ownKeys:Ft}),Vt({target:"Reflect",stat:!0,sham:!Tc},{preventExtensions:function(e){Be(e);try{var t=D("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}});var Mg=d((function(){var e=function(){},t=Ke.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}));Vt({target:"Reflect",stat:!0,forced:Mg},{set:function e(t,n,r){var a,o,i,s=arguments.length<4?t:arguments[3],l=Ie.f(Be(t),n);if(!l){if(L(o=Ba(t)))return e(o,n,r,s);l=w(0)}if(xg(l)){if(!1===l.writable||!L(s))return!1;if(a=Ie.f(s,n)){if(a.get||a.set||!1===a.writable)return!1;a.value=r,Ke.f(s,n,a)}else Ke.f(s,n,w(0,r))}else{if(void 0===(i=l.set))return!1;g(i,s,r)}return!0}}),la&&Vt({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){Be(e),sa(t);try{return la(e,t),!0}catch(e){return!1}}}),Vt({global:!0},{Reflect:{}}),An(c.Reflect,"Reflect",!0);var Tg=Ce("match"),Pg=function(e){var t;return L(e)&&(void 0!==(t=e[Tg])?!!t:"RegExp"===x(e))},Ng=function(){var e=Be(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Ig=RegExp.prototype,Og=function(e){var t=e.flags;return void 0!==t||"flags"in Ig||he(e,"flags")||!_(Ig,e)?t:g(Ng,e)},Rg=c.RegExp,Fg=d((function(){var e=Rg("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),Bg=Fg||d((function(){return!Rg("a","y").sticky})),Lg=Fg||d((function(){var e=Rg("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),Dg={BROKEN_CARET:Lg,MISSED_STICKY:Bg,UNSUPPORTED_Y:Fg},_g=c.RegExp,Gg=d((function(){var e=_g(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),jg=c.RegExp,Ug=d((function(){var e=jg("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),zg=It.f,Kg=dt.enforce,Vg=Ce("match"),Hg=c.RegExp,Wg=Hg.prototype,Zg=c.SyntaxError,qg=k(Wg.exec),Yg=k("".charAt),Jg=k("".replace),Qg=k("".indexOf),Xg=k("".slice),em=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,tm=/a/g,nm=/a/g,rm=new Hg(tm)!==tm,am=Dg.MISSED_STICKY,om=Dg.UNSUPPORTED_Y,im=f&&(!rm||am||Gg||Ug||d((function(){return nm[Vg]=!1,Hg(tm)!==tm||Hg(nm)===nm||"/a/i"!==String(Hg(tm,"i"))})));if(zt("RegExp",im)){for(var sm=function(e,t){var n,r,a,o,i,s,l=_(Wg,this),u=Pg(e),c=void 0===t,d=[],f=e;if(!l&&u&&c&&e.constructor===sm)return e;if((u||_(Wg,e))&&(e=e.source,c&&(t=Og(f))),e=void 0===e?"":en(e),t=void 0===t?"":en(t),f=e,Gg&&"dotAll"in tm&&(r=!!t&&Qg(t,"s")>-1)&&(t=Jg(t,/s/g,"")),n=t,am&&"sticky"in tm&&(a=!!t&&Qg(t,"y")>-1)&&om&&(t=Jg(t,/y/g,"")),Ug&&(o=function(e){for(var t,n=e.length,r=0,a="",o=[],i=hn(null),s=!1,l=!1,u=0,c="";r<=n;r++){if("\\"===(t=Yg(e,r)))t+=Yg(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:qg(em,Xg(e,r+1))&&(r+=2,l=!0),a+=t,u++;continue;case">"===t&&l:if(""===c||he(i,c))throw new Zg("Invalid capture group name");i[c]=!0,o[o.length]=[c,u],l=!1,c="";continue}l?c+=t:a+=t}return[a,o]}(e),e=o[0],d=o[1]),i=da(Hg(e,t),l?this:Wg,sm),(r||a||d.length)&&(s=Kg(i),r&&(s.dotAll=!0,s.raw=sm(function(e){for(var t,n=e.length,r=0,a="",o=!1;r<=n;r++)"\\"!==(t=Yg(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),a+=t):a+="[\\s\\S]":a+=t+Yg(e,++r);return a}(e),n)),a&&(s.sticky=!0),d.length&&(s.groups=d)),e!==f)try{Ve(i,"source",""===f?"(?:)":f)}catch(e){}return i},lm=zg(Hg),um=0;lm.length>um;)ca(sm,Hg,lm[um++]);Wg.constructor=sm,sm.prototype=Wg,ht(c,"RegExp",sm,{constructor:!0})}Es("RegExp");var cm=dt.get,dm=RegExp.prototype,fm=TypeError;f&&Gg&&yn(dm,"dotAll",{configurable:!0,get:function(){if(this!==dm){if("RegExp"===x(this))return!!cm(this).dotAll;throw new fm("Incompatible receiver, RegExp required")}}});var hm=dt.get,pm=ue("native-string-replace",String.prototype.replace),gm=RegExp.prototype.exec,mm=gm,vm=k("".charAt),ym=k("".indexOf),bm=k("".replace),wm=k("".slice),Cm=function(){var e=/a/,t=/b*/g;return g(gm,e,"a"),g(gm,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Sm=Dg.BROKEN_CARET,Em=void 0!==/()??/.exec("")[1];(Cm||Em||Sm||Gg||Ug)&&(mm=function(e){var t,n,r,a,o,i,s,l=this,u=hm(l),c=en(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=g(mm,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,h=Sm&&l.sticky,p=g(Ng,l),m=l.source,v=0,y=c;if(h&&(p=bm(p,"y",""),-1===ym(p,"g")&&(p+="g"),y=wm(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==vm(c,l.lastIndex-1))&&(m="(?: "+m+")",y=" "+y,v++),n=new RegExp("^(?:"+m+")",p)),Em&&(n=new RegExp("^"+m+"$(?!\\s)",p)),Cm&&(r=l.lastIndex),a=g(gm,h?n:l,y),h?a?(a.input=wm(a.input,v),a[0]=wm(a[0],v),a.index=l.lastIndex,l.lastIndex+=a[0].length):l.lastIndex=0:Cm&&a&&(l.lastIndex=l.global?a.index+a[0].length:r),Em&&a&&a.length>1&&g(pm,a[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(a[o]=void 0)})),a&&f)for(a.groups=i=hn(null),o=0;o<f.length;o++)i[(s=f[o])[0]]=a[s[1]];return a});var km=mm;Vt({target:"RegExp",proto:!0,forced:/./.exec!==km},{exec:km});var $m=c.RegExp,Am=$m.prototype,xm=f&&d((function(){var e=!0;try{$m(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",a=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var i in e&&(o.hasIndices="d"),o)a(i,o[i]);return Object.getOwnPropertyDescriptor(Am,"flags").get.call(t)!==r||n!==r}));xm&&yn(Am,"flags",{configurable:!0,get:Ng});var Mm=Dg.MISSED_STICKY,Tm=dt.get,Pm=RegExp.prototype,Nm=TypeError;f&&Mm&&yn(Pm,"sticky",{configurable:!0,get:function(){if(this!==Pm){if("RegExp"===x(this))return!!Tm(this).sticky;throw new Nm("Incompatible receiver, RegExp required")}}});var Im=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),Om=/./.test;Vt({target:"RegExp",proto:!0,forced:!Im},{test:function(e){var t=Be(this),n=en(e),r=t.exec;if(!B(r))return g(Om,t,n);var a=g(r,t,n);return null!==a&&(Be(a),!0)}});var Rm=qe.PROPER,Fm="toString",Bm=RegExp.prototype,Lm=Bm[Fm],Dm=d((function(){return"/a/b"!==Lm.call({source:"a",flags:"b"})})),_m=Rm&&Lm.name!==Fm;(Dm||_m)&&ht(Bm,Fm,(function(){var e=Be(this);return"/"+en(e.source)+"/"+en(Og(e))}),{unsafe:!0}),Nc("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Fc);var Gm=k("".charAt),jm=d((function(){return"\ud842"!=="𠮷".at(-2)}));Vt({target:"String",proto:!0,forced:jm},{at:function(e){var t=en(O(this)),n=t.length,r=vt(e),a=r>=0?r:n+r;return a<0||a>=n?void 0:Gm(t,a)}});var Um=k("".charAt),zm=k("".charCodeAt),Km=k("".slice),Vm=function(e){return function(t,n){var r,a,o=en(O(t)),i=vt(n),s=o.length;return i<0||i>=s?e?"":void 0:(r=zm(o,i))<55296||r>56319||i+1===s||(a=zm(o,i+1))<56320||a>57343?e?Um(o,i):r:e?Km(o,i,i+2):a-56320+(r-55296<<10)+65536}},Hm={codeAt:Vm(!1),charAt:Vm(!0)},Wm=Hm.codeAt;Vt({target:"String",proto:!0},{codePointAt:function(e){return Wm(this,e)}});var Zm=TypeError,qm=function(e){if(Pg(e))throw new Zm("The method doesn't accept regular expressions");return e},Ym=Ce("match"),Jm=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Ym]=!1,"/./"[e](t)}catch(e){}}return!1},Qm=Ie.f,Xm=xn("".slice),ev=Math.min,tv=Jm("endsWith"),nv=!tv&&!!function(){var e=Qm(String.prototype,"endsWith");return e&&!e.writable}();Vt({target:"String",proto:!0,forced:!nv&&!tv},{endsWith:function(e){var t=en(O(this));qm(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,a=void 0===n?r:ev(St(n),r),o=en(e);return Xm(t,a-o.length,a)===o}});var rv=RangeError,av=String.fromCharCode,ov=String.fromCodePoint,iv=k([].join),sv=!!ov&&1!==ov.length;Vt({target:"String",stat:!0,arity:1,forced:sv},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],wt(t,1114111)!==t)throw new rv(t+" is not a valid code point");n[a]=t<65536?av(t):av(55296+((t-=65536)>>10),t%1024+56320)}return iv(n,"")}});var lv=k("".indexOf);Vt({target:"String",proto:!0,forced:!Jm("includes")},{includes:function(e){return!!~lv(en(O(this)),en(qm(e)),arguments.length>1?arguments[1]:void 0)}});var uv=k("".charCodeAt);Vt({target:"String",proto:!0},{isWellFormed:function(){for(var e=en(O(this)),t=e.length,n=0;n<t;n++){var r=uv(e,n);if(55296==(63488&r)&&(r>=56320||++n>=t||56320!=(64512&uv(e,n))))return!1}return!0}});var cv=Hm.charAt,dv="String Iterator",fv=dt.set,hv=dt.getterFor(dv);Si(String,"String",(function(e){fv(this,{type:dv,string:en(e),index:0})}),(function(){var e,t=hv(this),n=t.string,r=t.index;return r>=n.length?Ei(void 0,!0):(e=cv(n,r),t.index+=e.length,Ei(e,!1))}));var pv=Ce("species"),gv=RegExp.prototype,mv=function(e,t,n,r){var a=Ce(e),o=!d((function(){var t={};return t[a]=function(){return 7},7!==""[e](t)})),i=o&&!d((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[pv]=function(){return n},n.flags="",n[a]=/./[a]),n.exec=function(){return t=!0,null},n[a](""),!t}));if(!o||!i||n){var s=xn(/./[a]),l=t(a,""[e],(function(e,t,n,r,a){var i=xn(e),l=t.exec;return l===km||l===gv.exec?o&&!a?{done:!0,value:s(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}));ht(String.prototype,e,l[0]),ht(gv,a,l[1])}r&&Ve(gv[a],"sham",!0)},vv=Hm.charAt,yv=function(e,t,n){return t+(n?vv(e,t).length:1)},bv=TypeError,wv=function(e,t){var n=e.exec;if(B(n)){var r=g(n,e,t);return null!==r&&Be(r),r}if("RegExp"===x(e))return g(km,e,t);throw new bv("RegExp#exec called on incompatible receiver")};mv("match",(function(e,t,n){return[function(t){var n=O(this),r=N(t)?void 0:te(t,e);return r?g(r,t,n):new RegExp(t)[e](en(n))},function(e){var r=Be(this),a=en(e),o=n(t,r,a);if(o.done)return o.value;if(!r.global)return wv(r,a);var i=r.unicode;r.lastIndex=0;for(var s,l=[],u=0;null!==(s=wv(r,a));){var c=en(s[0]);l[u]=c,""===c&&(r.lastIndex=yv(a,St(r.lastIndex),i)),u++}return 0===u?null:l}]}));var Cv=Ce("matchAll"),Sv="RegExp String",Ev=Sv+" Iterator",kv=dt.set,$v=dt.getterFor(Ev),Av=RegExp.prototype,xv=TypeError,Mv=xn("".indexOf),Tv=xn("".matchAll),Pv=!!Tv&&!d((function(){Tv("a",/./)})),Nv=fi((function(e,t,n,r){kv(this,{type:Ev,regexp:e,string:t,global:n,unicode:r,done:!1})}),Sv,(function(){var e=$v(this);if(e.done)return Ei(void 0,!0);var t=e.regexp,n=e.string,r=wv(t,n);return null===r?(e.done=!0,Ei(void 0,!0)):e.global?(""===en(r[0])&&(t.lastIndex=yv(n,St(t.lastIndex),e.unicode)),Ei(r,!1)):(e.done=!0,Ei(r,!1))})),Iv=function(e){var t,n,r,a=Be(this),o=en(e),i=gu(a,RegExp),s=en(Og(a));return t=new i(i===RegExp?a.source:a,s),n=!!~Mv(s,"g"),r=!!~Mv(s,"u"),t.lastIndex=St(a.lastIndex),new Nv(t,o,n,r)};Vt({target:"String",proto:!0,forced:Pv},{matchAll:function(e){var t,n,r,a=O(this);if(N(e)){if(Pv)return Tv(a,e)}else{if(Pg(e)&&(t=en(O(Og(e))),!~Mv(t,"g")))throw new xv("`.matchAll` does not allow non-global regexes");if(Pv)return Tv(a,e);if(r=te(e,Cv))return g(r,e,a)}return n=en(a),new RegExp(e,"g")[Cv](n)}}),Cv in Av||ht(Av,Cv,Iv);var Ov=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(G),Rv=Bu.end;Vt({target:"String",proto:!0,forced:Ov},{padEnd:function(e){return Rv(this,e,arguments.length>1?arguments[1]:void 0)}});var Fv=Bu.start;Vt({target:"String",proto:!0,forced:Ov},{padStart:function(e){return Fv(this,e,arguments.length>1?arguments[1]:void 0)}});var Bv=k([].push),Lv=k([].join);Vt({target:"String",stat:!0},{raw:function(e){var t=R(de(e).raw),n=Et(t);if(!n)return"";for(var r=arguments.length,a=[],o=0;;){if(Bv(a,en(t[o++])),o===n)return Lv(a,"");o<r&&Bv(a,en(arguments[o]))}}}),Vt({target:"String",proto:!0},{repeat:Nu});var Dv=Math.floor,_v=k("".charAt),Gv=k("".replace),jv=k("".slice),Uv=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,zv=/\$([$&'`]|\d{1,2})/g,Kv=function(e,t,n,r,a,o){var i=n+e.length,s=r.length,l=zv;return void 0!==a&&(a=de(a),l=Uv),Gv(o,l,(function(o,l){var u;switch(_v(l,0)){case"$":return"$";case"&":return e;case"`":return jv(t,0,n);case"'":return jv(t,i);case"<":u=a[jv(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>s){var d=Dv(c/10);return 0===d?o:d<=s?void 0===r[d-1]?_v(l,1):r[d-1]+_v(l,1):o}u=r[c-1]}return void 0===u?"":u}))},Vv=Ce("replace"),Hv=Math.max,Wv=Math.min,Zv=k([].concat),qv=k([].push),Yv=k("".indexOf),Jv=k("".slice),Qv="$0"==="a".replace(/./,"$0"),Xv=!!/./[Vv]&&""===/./[Vv]("a","$0"),ey=!d((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));mv("replace",(function(e,t,n){var r=Xv?"$":"$0";return[function(e,n){var r=O(this),a=N(e)?void 0:te(e,Vv);return a?g(a,e,r,n):g(t,en(r),e,n)},function(e,a){var o=Be(this),i=en(e);if("string"==typeof a&&-1===Yv(a,r)&&-1===Yv(a,"$<")){var s=n(t,o,i,a);if(s.done)return s.value}var l=B(a);l||(a=en(a));var u,c=o.global;c&&(u=o.unicode,o.lastIndex=0);for(var d,f=[];null!==(d=wv(o,i))&&(qv(f,d),c);){""===en(d[0])&&(o.lastIndex=yv(i,St(o.lastIndex),u))}for(var h,p="",g=0,m=0;m<f.length;m++){for(var v,y=en((d=f[m])[0]),b=Hv(Wv(vt(d.index),i.length),0),w=[],C=1;C<d.length;C++)qv(w,void 0===(h=d[C])?h:String(h));var S=d.groups;if(l){var E=Zv([y],w,b,i);void 0!==S&&qv(E,S),v=en(Tr(a,void 0,E))}else v=Kv(y,i,b,w,S,a);b>=g&&(p+=Jv(i,g,b)+v,g=b+y.length)}return p+Jv(i,g)}]}),!ey||!Qv||Xv);var ty=Ce("replace"),ny=TypeError,ry=k("".indexOf);k("".replace);var ay=k("".slice),oy=Math.max,iy=function(e,t,n){return n>e.length?-1:""===t?n:ry(e,t,n)};Vt({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,a,o,i,s,l,u,c=O(this),d=0,f=0,h="";if(!N(e)){if(Pg(e)&&(n=en(O(Og(e))),!~ry(n,"g")))throw new ny("`.replaceAll` does not allow non-global regexes");if(r=te(e,ty))return g(r,e,c,t)}for(a=en(c),o=en(e),(i=B(t))||(t=en(t)),s=o.length,l=oy(1,s),d=iy(a,o,0);-1!==d;)u=i?en(t(o,d,a)):Kv(o,a,d,[],void 0,t),h+=ay(a,f,d)+u,f=d+s,d=iy(a,o,d+l);return f<a.length&&(h+=ay(a,f)),h}}),mv("search",(function(e,t,n){return[function(t){var n=O(this),r=N(t)?void 0:te(t,e);return r?g(r,t,n):new RegExp(t)[e](en(n))},function(e){var r=Be(this),a=en(e),o=n(t,r,a);if(o.done)return o.value;var i=r.lastIndex;dh(i,0)||(r.lastIndex=0);var s=wv(r,a);return dh(r.lastIndex,i)||(r.lastIndex=i),null===s?-1:s.index}]}));var sy=Dg.UNSUPPORTED_Y,ly=4294967295,uy=Math.min,cy=[].push,dy=k(/./.exec),fy=k(cy),hy=k("".slice),py=!d((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));mv("split",(function(e,t,n){var r;return r="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=en(O(this)),a=void 0===n?ly:n>>>0;if(0===a)return[];if(void 0===e)return[r];if(!Pg(e))return g(t,r,e,a);for(var o,i,s,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,d=new RegExp(e.source,u+"g");(o=g(km,d,r))&&!((i=d.lastIndex)>c&&(fy(l,hy(r,c,o.index)),o.length>1&&o.index<r.length&&Tr(cy,l,pn(o,1)),s=o[0].length,c=i,l.length>=a));)d.lastIndex===o.index&&d.lastIndex++;return c===r.length?!s&&dy(d,"")||fy(l,""):fy(l,hy(r,c)),l.length>a?pn(l,0,a):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:g(t,this,e,n)}:t,[function(t,n){var a=O(this),o=N(t)?void 0:te(t,e);return o?g(o,t,a,n):g(r,en(a),t,n)},function(e,a){var o=Be(this),i=en(e),s=n(r,o,i,a,r!==t);if(s.done)return s.value;var l=gu(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(sy?"g":"y"),d=new l(sy?"^(?:"+o.source+")":o,c),f=void 0===a?ly:a>>>0;if(0===f)return[];if(0===i.length)return null===wv(d,i)?[i]:[];for(var h=0,p=0,g=[];p<i.length;){d.lastIndex=sy?0:p;var m,v=wv(d,sy?hy(i,p):i);if(null===v||(m=uy(St(d.lastIndex+(sy?p:0)),i.length))===h)p=yv(i,p,u);else{if(fy(g,hy(i,h,p)),g.length===f)return g;for(var y=1;y<=v.length-1;y++)if(fy(g,v[y]),g.length===f)return g;p=h=m}}return fy(g,hy(i,h)),g}]}),!py,sy);var gy=Ie.f,my=xn("".slice),vy=Math.min,yy=Jm("startsWith"),by=!yy&&!!function(){var e=gy(String.prototype,"startsWith");return e&&!e.writable}();Vt({target:"String",proto:!0,forced:!by&&!yy},{startsWith:function(e){var t=en(O(this));qm(e);var n=St(vy(arguments.length>1?arguments[1]:void 0,t.length)),r=en(e);return my(t,n,n+r.length)===r}});var wy=k("".slice),Cy=Math.max,Sy=Math.min,Ey=!"".substr||"b"!=="ab".substr(-1);Vt({target:"String",proto:!0,forced:Ey},{substr:function(e,t){var n,r,a=en(O(this)),o=a.length,i=vt(e);return i===1/0&&(i=0),i<0&&(i=Cy(o+i,0)),(n=void 0===t?o:vt(t))<=0||n===1/0||i>=(r=Sy(i+n,o))?"":wy(a,i,r)}});var ky=Array,$y=k("".charAt),Ay=k("".charCodeAt),xy=k([].join),My="".toWellFormed,Ty=My&&d((function(){return"1"!==g(My,1)}));Vt({target:"String",proto:!0,forced:Ty},{toWellFormed:function(){var e=en(O(this));if(Ty)return g(My,e);for(var t=e.length,n=ky(t),r=0;r<t;r++){var a=Ay(e,r);55296!=(63488&a)?n[r]=$y(e,r):a>=56320||r+1>=t||56320!=(64512&Ay(e,r+1))?n[r]="�":(n[r]=$y(e,r),n[++r]=$y(e,r))}return xy(n,"")}});var Py=qe.PROPER,Ny=function(e){return d((function(){return!!Id[e]()||"
"!=="
"[e]()||Py&&Id[e].name!==e}))},Iy=Ld.trim;Vt({target:"String",proto:!0,forced:Ny("trim")},{trim:function(){return Iy(this)}});var Oy=Ld.end,Ry=Ny("trimEnd")?function(){return Oy(this)}:"".trimEnd;Vt({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==Ry},{trimRight:Ry}),Vt({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==Ry},{trimEnd:Ry});var Fy=Ld.start,By=Ny("trimStart")?function(){return Fy(this)}:"".trimStart;Vt({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==By},{trimLeft:By}),Vt({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==By},{trimStart:By});var Ly=/"/g,Dy=k("".replace),_y=function(e,t,n,r){var a=en(O(e)),o="<"+t;return""!==n&&(o+=" "+n+'="'+Dy(en(r),Ly,""")+'"'),o+">"+a+"</"+t+">"},Gy=function(e){return d((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};Vt({target:"String",proto:!0,forced:Gy("anchor")},{anchor:function(e){return _y(this,"a","name",e)}}),Vt({target:"String",proto:!0,forced:Gy("big")},{big:function(){return _y(this,"big","","")}}),Vt({target:"String",proto:!0,forced:Gy("blink")},{blink:function(){return _y(this,"blink","","")}}),Vt({target:"String",proto:!0,forced:Gy("bold")},{bold:function(){return _y(this,"b","","")}}),Vt({target:"String",proto:!0,forced:Gy("fixed")},{fixed:function(){return _y(this,"tt","","")}}),Vt({target:"String",proto:!0,forced:Gy("fontcolor")},{fontcolor:function(e){return _y(this,"font","color",e)}}),Vt({target:"String",proto:!0,forced:Gy("fontsize")},{fontsize:function(e){return _y(this,"font","size",e)}}),Vt({target:"String",proto:!0,forced:Gy("italics")},{italics:function(){return _y(this,"i","","")}}),Vt({target:"String",proto:!0,forced:Gy("link")},{link:function(e){return _y(this,"a","href",e)}}),Vt({target:"String",proto:!0,forced:Gy("small")},{small:function(){return _y(this,"small","","")}}),Vt({target:"String",proto:!0,forced:Gy("strike")},{strike:function(){return _y(this,"strike","","")}}),Vt({target:"String",proto:!0,forced:Gy("sub")},{sub:function(){return _y(this,"sub","","")}}),Vt({target:"String",proto:!0,forced:Gy("sup")},{sup:function(){return _y(this,"sup","","")}});var jy=du.NATIVE_ARRAY_BUFFER_VIEWS,Uy=c.ArrayBuffer,zy=c.Int8Array,Ky=!jy||!d((function(){zy(1)}))||!d((function(){new zy(-1)}))||!qo((function(e){new zy,new zy(null),new zy(1.5),new zy(e)}),!0)||d((function(){return 1!==new zy(new Uy(2),1,void 0).length})),Vy=RangeError,Hy=function(e){var t=vt(e);if(t<0)throw new Vy("The argument can't be less than 0");return t},Wy=RangeError,Zy=function(e,t){var n=Hy(e);if(n%t)throw new Wy("Wrong offset");return n},qy=Math.round,Yy=function(e){var t=qy(e);return t<0?0:t>255?255:255&t},Jy=function(e){var t=Qt(e);return"BigInt64Array"===t||"BigUint64Array"===t},Qy=TypeError,Xy=function(e){var t=ke(e,"number");if("number"==typeof t)throw new Qy("Can't convert number to bigint");return BigInt(t)},eb=du.aTypedArrayConstructor,tb=function(e){var t,n,r,a,o,i,s,l,u=hu(this),c=de(e),d=arguments.length,f=d>1?arguments[1]:void 0,h=void 0!==f,p=Ua(c);if(p&&!Ga(p))for(l=(s=Ka(c,p)).next,c=[];!(i=g(l,s)).done;)c.push(i.value);for(h&&d>2&&(f=Tn(f,arguments[2])),n=Et(c),r=new(eb(u))(n),a=Jy(r),t=0;n>t;t++)o=h?f(c[t],t):c[t],r[t]=a?Xy(o):+o;return r},nb=i((function(e){var t=It.f,n=Vn.forEach,r=dt.get,a=dt.set,o=dt.enforce,i=Ke.f,s=Ie.f,l=c.RangeError,u=_l.ArrayBuffer,d=u.prototype,h=_l.DataView,p=du.NATIVE_ARRAY_BUFFER_VIEWS,m=du.TYPED_ARRAY_TAG,v=du.TypedArray,y=du.TypedArrayPrototype,b=du.isTypedArray,C="BYTES_PER_ELEMENT",S="Wrong length",E=function(e,t){yn(e,t,{configurable:!0,get:function(){return r(this)[t]}})},k=function(e){var t;return _(d,e)||"ArrayBuffer"===(t=Qt(e))||"SharedArrayBuffer"===t},$=function(e,t){return b(e)&&!Y(t)&&t in e&&ef(+t)&&t>=0},A=function(e,t){return t=$e(t),$(e,t)?w(2,e[t]):s(e,t)},x=function(e,t,n){return t=$e(t),!($(e,t)&&L(n)&&he(n,"value"))||he(n,"get")||he(n,"set")||n.configurable||he(n,"writable")&&!n.writable||he(n,"enumerable")&&!n.enumerable?i(e,t,n):(e[t]=n.value,e)};f?(p||(Ie.f=A,Ke.f=x,E(y,"buffer"),E(y,"byteOffset"),E(y,"byteLength"),E(y,"length")),Vt({target:"Object",stat:!0,forced:!p},{getOwnPropertyDescriptor:A,defineProperty:x}),e.exports=function(e,s,d){var f=e.match(/\d+/)[0]/8,w=e+(d?"Clamped":"")+"Array",E="get"+e,$="set"+e,A=c[w],x=A,M=x&&x.prototype,T={},P=function(e,t){i(e,t,{get:function(){return function(e,t){var n=r(e);return n.view[E](t*f+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var a=r(e);a.view[$](t*f+a.byteOffset,d?Yy(n):n,!0)}(this,t,e)},enumerable:!0})};p?Ky&&(x=s((function(e,t,n,r){return zs(e,M),da(L(t)?k(t)?void 0!==r?new A(t,Zy(n,f),r):void 0!==n?new A(t,Zy(n,f)):new A(t):b(t)?Ts(x,t):g(tb,x,t):new A(Vs(t)),e,x)})),la&&la(x,v),n(t(A),(function(e){e in x||Ve(x,e,A[e])})),x.prototype=M):(x=s((function(e,t,n,r){zs(e,M);var o,i,s,c=0,d=0;if(L(t)){if(!k(t))return b(t)?Ts(x,t):g(tb,x,t);o=t,d=Zy(n,f);var p=t.byteLength;if(void 0===r){if(p%f)throw new l(S);if((i=p-d)<0)throw new l(S)}else if((i=St(r)*f)+d>p)throw new l(S);s=i/f}else s=Vs(t),o=new u(i=s*f);for(a(e,{buffer:o,byteOffset:d,byteLength:i,length:s,view:new h(o)});c<s;)P(e,c++)})),la&&la(x,v),M=x.prototype=hn(y)),M.constructor!==x&&Ve(M,"constructor",x),o(M).TypedArrayConstructor=x,m&&Ve(M,m,w);var N=x!==A;T[w]=x,Vt({global:!0,constructor:!0,forced:N,sham:!p},T),C in x||Ve(x,C,f),C in M||Ve(M,C,f),Es(w)}):e.exports=function(){}}));nb("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}})),nb("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}})),nb("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}})),nb("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}})),nb("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}})),nb("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}})),nb("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0),nb("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}})),nb("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}));var rb=du.aTypedArray;(0,du.exportTypedArrayMethod)("at",(function(e){var t=rb(this),n=Et(t),r=vt(e),a=r>=0?r:n+r;return a<0||a>=n?void 0:t[a]}));var ab=k(Co),ob=du.aTypedArray;(0,du.exportTypedArrayMethod)("copyWithin",(function(e,t){return ab(ob(this),e,t,arguments.length>2?arguments[2]:void 0)}));var ib=Vn.every,sb=du.aTypedArray;(0,du.exportTypedArrayMethod)("every",(function(e){return ib(sb(this),e,arguments.length>1?arguments[1]:void 0)}));var lb=du.aTypedArray,ub=du.exportTypedArrayMethod,cb=k("".slice),db=d((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}));ub("fill",(function(e){var t=arguments.length;lb(this);var n="Big"===cb(Qt(this),0,3)?Xy(e):+e;return g($o,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),db);var fb=du.aTypedArrayConstructor,hb=du.getTypedArrayConstructor,pb=function(e){return fb(gu(e,hb(e)))},gb=function(e,t){return Ts(pb(e),t)},mb=Vn.filter,vb=du.aTypedArray;(0,du.exportTypedArrayMethod)("filter",(function(e){var t=mb(vb(this),e,arguments.length>1?arguments[1]:void 0);return gb(this,t)}));var yb=Vn.find,bb=du.aTypedArray;(0,du.exportTypedArrayMethod)("find",(function(e){return yb(bb(this),e,arguments.length>1?arguments[1]:void 0)}));var wb=Vn.findIndex,Cb=du.aTypedArray;(0,du.exportTypedArrayMethod)("findIndex",(function(e){return wb(Cb(this),e,arguments.length>1?arguments[1]:void 0)}));var Sb=Fo.findLast,Eb=du.aTypedArray;(0,du.exportTypedArrayMethod)("findLast",(function(e){return Sb(Eb(this),e,arguments.length>1?arguments[1]:void 0)}));var kb=Fo.findLastIndex,$b=du.aTypedArray;(0,du.exportTypedArrayMethod)("findLastIndex",(function(e){return kb($b(this),e,arguments.length>1?arguments[1]:void 0)}));var Ab=Vn.forEach,xb=du.aTypedArray;(0,du.exportTypedArrayMethod)("forEach",(function(e){Ab(xb(this),e,arguments.length>1?arguments[1]:void 0)})),(0,du.exportTypedArrayStaticMethod)("from",tb,Ky);var Mb=$t.includes,Tb=du.aTypedArray;(0,du.exportTypedArrayMethod)("includes",(function(e){return Mb(Tb(this),e,arguments.length>1?arguments[1]:void 0)}));var Pb=$t.indexOf,Nb=du.aTypedArray;(0,du.exportTypedArrayMethod)("indexOf",(function(e){return Pb(Nb(this),e,arguments.length>1?arguments[1]:void 0)}));var Ib=Ce("iterator"),Ob=c.Uint8Array,Rb=k(Mi.values),Fb=k(Mi.keys),Bb=k(Mi.entries),Lb=du.aTypedArray,Db=du.exportTypedArrayMethod,_b=Ob&&Ob.prototype,Gb=!d((function(){_b[Ib].call([1])})),jb=!!_b&&_b.values&&_b[Ib]===_b.values&&"values"===_b.values.name,Ub=function(){return Rb(Lb(this))};Db("entries",(function(){return Bb(Lb(this))}),Gb),Db("keys",(function(){return Fb(Lb(this))}),Gb),Db("values",Ub,Gb||!jb,{name:"values"}),Db(Ib,Ub,Gb||!jb,{name:"values"});var zb=du.aTypedArray,Kb=du.exportTypedArrayMethod,Vb=k([].join);Kb("join",(function(e){return Vb(zb(this),e)}));var Hb=du.aTypedArray;(0,du.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return Tr(Bi,Hb(this),t>1?[e,arguments[1]]:[e])}));var Wb=Vn.map,Zb=du.aTypedArray;(0,du.exportTypedArrayMethod)("map",(function(e){return Wb(Zb(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(pb(e))(t)}))}));var qb=du.aTypedArrayConstructor;(0,du.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(qb(this))(t);t>e;)n[e]=arguments[e++];return n}),Ky);var Yb=Wi.left,Jb=du.aTypedArray;(0,du.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return Yb(Jb(this),e,t,t>1?arguments[1]:void 0)}));var Qb=Wi.right,Xb=du.aTypedArray;(0,du.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return Qb(Xb(this),e,t,t>1?arguments[1]:void 0)}));var ew=du.aTypedArray,tw=du.exportTypedArrayMethod,nw=Math.floor;tw("reverse",(function(){for(var e,t=this,n=ew(t).length,r=nw(n/2),a=0;a<r;)e=t[a],t[a++]=t[--n],t[n]=e;return t}));var rw=c.RangeError,aw=c.Int8Array,ow=aw&&aw.prototype,iw=ow&&ow.set,sw=du.aTypedArray,lw=du.exportTypedArrayMethod,uw=!d((function(){var e=new Uint8ClampedArray(2);return g(iw,e,{length:1,0:3},1),3!==e[1]})),cw=uw&&du.NATIVE_ARRAY_BUFFER_VIEWS&&d((function(){var e=new aw(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));lw("set",(function(e){sw(this);var t=Zy(arguments.length>1?arguments[1]:void 0,1),n=de(e);if(uw)return g(iw,this,n,t);var r=this.length,a=Et(n),o=0;if(a+t>r)throw new rw("Wrong length");for(;o<a;)this[t+o]=n[o++]}),!uw||cw);var dw=du.aTypedArray;(0,du.exportTypedArrayMethod)("slice",(function(e,t){for(var n=pn(dw(this),e,t),r=pb(this),a=0,o=n.length,i=new r(o);o>a;)i[a]=n[a++];return i}),d((function(){new Int8Array(1).slice()})));var fw=Vn.some,hw=du.aTypedArray;(0,du.exportTypedArrayMethod)("some",(function(e){return fw(hw(this),e,arguments.length>1?arguments[1]:void 0)}));var pw=du.aTypedArray,gw=du.exportTypedArrayMethod,mw=c.Uint16Array,vw=mw&&xn(mw.prototype.sort),yw=!(!vw||d((function(){vw(new mw(2),null)}))&&d((function(){vw(new mw(2),{})}))),bw=!!vw&&!d((function(){if(V)return V<74;if(ds)return ds<67;if(fs)return!0;if(ps)return ps<602;var e,t,n=new mw(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(vw(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));gw("sort",(function(e){return void 0!==e&&ee(e),bw?vw(this,e):us(pw(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!bw||yw);var ww=du.aTypedArray;(0,du.exportTypedArrayMethod)("subarray",(function(e,t){var n=ww(this),r=n.length,a=wt(e,r);return new(pb(n))(n.buffer,n.byteOffset+a*n.BYTES_PER_ELEMENT,St((void 0===t?r:wt(t,r))-a))}));var Cw=c.Int8Array,Sw=du.aTypedArray,Ew=du.exportTypedArrayMethod,kw=[].toLocaleString,$w=!!Cw&&d((function(){kw.call(new Cw(1))}));Ew("toLocaleString",(function(){return Tr(kw,$w?pn(Sw(this)):Sw(this),pn(arguments))}),d((function(){return[1,2].toLocaleString()!==new Cw([1,2]).toLocaleString()}))||!d((function(){Cw.prototype.toLocaleString.call([1,2])})));var Aw=du.aTypedArray,xw=du.getTypedArrayConstructor;(0,du.exportTypedArrayMethod)("toReversed",(function(){return xs(Aw(this),xw(this))}));var Mw=du.aTypedArray,Tw=du.getTypedArrayConstructor,Pw=du.exportTypedArrayMethod,Nw=k(du.TypedArrayPrototype.sort);Pw("toSorted",(function(e){void 0!==e&&ee(e);var t=Mw(this),n=Ts(Tw(t),t);return Nw(n,e)}));var Iw=du.exportTypedArrayMethod,Ow=c.Uint8Array,Rw=Ow&&Ow.prototype||{},Fw=[].toString,Bw=k([].join);d((function(){Fw.call({})}))&&(Fw=function(){return Bw(this)});var Lw=Rw.toString!==Fw;Iw("toString",Fw,Lw);var Dw=du.aTypedArray,_w=du.getTypedArrayConstructor,Gw=du.exportTypedArrayMethod,jw=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();Gw("with",{with:function(e,t){var n=Dw(this),r=vt(e),a=Jy(n)?Xy(t):+t;return Ds(n,_w(n),r,a)}}.with,!jw);var Uw=String.fromCharCode,zw=k("".charAt),Kw=k(/./.exec),Vw=k("".slice),Hw=/^[\da-f]{2}$/i,Ww=/^[\da-f]{4}$/i;Vt({global:!0},{unescape:function(e){for(var t,n,r=en(e),a="",o=r.length,i=0;i<o;){if("%"===(t=zw(r,i++)))if("u"===zw(r,i)){if(n=Vw(r,i+1,i+5),Kw(Ww,n)){a+=Uw(parseInt(n,16)),i+=5;continue}}else if(n=Vw(r,i,i+2),Kw(Hw,n)){a+=Uw(parseInt(n,16)),i+=2;continue}a+=t}return a}});var Zw=Pc.getWeakData,qw=dt.set,Yw=dt.getterFor,Jw=Vn.find,Qw=Vn.findIndex,Xw=k([].splice),eC=0,tC=function(e){return e.frozen||(e.frozen=new nC)},nC=function(){this.entries=[]},rC=function(e,t){return Jw(e.entries,(function(e){return e[0]===t}))};nC.prototype={get:function(e){var t=rC(this,e);if(t)return t[1]},has:function(e){return!!rC(this,e)},set:function(e,t){var n=rC(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Qw(this.entries,(function(t){return t[0]===e}));return~t&&Xw(this.entries,t,1),!!~t}};var aC,oC={getConstructor:function(e,t,n,r){var a=e((function(e,a){zs(e,o),qw(e,{type:t,id:eC++,frozen:void 0}),N(a)||qa(a,e[r],{that:e,AS_ENTRIES:n})})),o=a.prototype,i=Yw(t),s=function(e,t,n){var r=i(e),a=Zw(Be(t),!0);return!0===a?tC(r).set(t,n):a[r.id]=n,e};return js(o,{delete:function(e){var t=i(this);if(!L(e))return!1;var n=Zw(e);return!0===n?tC(t).delete(e):n&&he(n,t.id)&&delete n[t.id]},has:function(e){var t=i(this);if(!L(e))return!1;var n=Zw(e);return!0===n?tC(t).has(e):n&&he(n,t.id)}}),js(o,n?{get:function(e){var t=i(this);if(L(e)){var n=Zw(e);return!0===n?tC(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),a}},iC=dt.enforce,sC=Object,lC=Array.isArray,uC=sC.isExtensible,cC=sC.isFrozen,dC=sC.isSealed,fC=sC.freeze,hC=sC.seal,pC=!c.ActiveXObject&&"ActiveXObject"in c,gC=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},mC=Nc("WeakMap",gC,oC),vC=mC.prototype,yC=k(vC.set);if(nt)if(pC){aC=oC.getConstructor(gC,"WeakMap",!0),Pc.enable();var bC=k(vC.delete),wC=k(vC.has),CC=k(vC.get);js(vC,{delete:function(e){if(L(e)&&!uC(e)){var t=iC(this);return t.frozen||(t.frozen=new aC),bC(this,e)||t.frozen.delete(e)}return bC(this,e)},has:function(e){if(L(e)&&!uC(e)){var t=iC(this);return t.frozen||(t.frozen=new aC),wC(this,e)||t.frozen.has(e)}return wC(this,e)},get:function(e){if(L(e)&&!uC(e)){var t=iC(this);return t.frozen||(t.frozen=new aC),wC(this,e)?CC(this,e):t.frozen.get(e)}return CC(this,e)},set:function(e,t){if(L(e)&&!uC(e)){var n=iC(this);n.frozen||(n.frozen=new aC),wC(this,e)?yC(this,e,t):n.frozen.set(e,t)}else yC(this,e,t);return this}})}else Tc&&d((function(){var e=fC([]);return yC(new mC,e,1),!cC(e)}))&&js(vC,{set:function(e,t){var n;return lC(e)&&(cC(e)?n=fC:dC(e)&&(n=hC)),yC(this,e,t),n&&n(e),this}});Nc("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),oC);var SC=Ce("toStringTag"),EC=Error,kC=function(e,t,n){var r,a=_($C,this);return la?r=la(new EC,a?Ba(this):$C):(r=a?this:hn($C),Ve(r,SC,"Error")),void 0!==n&&Ve(r,"message",fa(n)),Sa(r,kC,r.stack,1),Ve(r,"error",e),Ve(r,"suppressed",t),r};la?la(kC,EC):Bt(kC,EC,{name:!0});var $C=kC.prototype=hn(EC.prototype,{constructor:w(1,kC),message:w(1,""),name:w(1,"SuppressedError")});Vt({global:!0,constructor:!0,arity:3},{SuppressedError:kC});var AC,xC,MC="USE_FUNCTION_CONSTRUCTOR",TC=Ce("asyncIterator"),PC=c.AsyncIterator,NC=le.AsyncIteratorPrototype;if(NC)AC=NC;else if(B(PC))AC=PC.prototype;else if(le[MC]||c[MC])try{xC=Ba(Ba(Ba(Function("return async function*(){}()")()))),Ba(xC)===Object.prototype&&(AC=xC)}catch(e){}AC||(AC={}),B(AC[TC])||ht(AC,TC,(function(){return this}));var IC=AC,OC=D("Promise"),RC="AsyncFromSyncIterator",FC=dt.set,BC=dt.getterFor(RC),LC=function(e,t,n){var r=e.done;OC.resolve(e.value).then((function(e){t(Ei(e,r))}),n)},DC=function(e){e.type=RC,FC(this,e)};DC.prototype=js(hn(IC),{next:function(){var e=BC(this);return new OC((function(t,n){var r=Be(g(e.next,e.iterator));LC(r,t,n)}))},return:function(){var e=BC(this).iterator;return new OC((function(t,n){var r=te(e,"return");if(void 0===r)return t(Ei(void 0,!0));var a=Be(g(r,e));LC(a,t,n)}))}});var _C=DC,GC=function(e){return{iterator:e,next:e.next,done:!1}},jC=Ce("asyncIterator"),UC=function(e,t,n,r){try{var a=te(e,"return");if(a)return D("Promise").resolve(g(a,e)).then((function(){t(n)}),(function(e){r(e)}))}catch(e){return r(e)}t(n)},zC=function(e){var t=0===e,n=1===e,r=2===e,a=3===e;return function(e,o,i){Be(e);var s=void 0!==o;!s&&t||ee(o);var l=GC(e),u=D("Promise"),c=l.iterator,d=l.next,f=0;return new u((function(e,l){var h=function(e){UC(c,l,e,l)},p=function(){try{if(s)try{uo(f)}catch(e){h(e)}u.resolve(Be(g(d,c))).then((function(d){try{if(Be(d).done)t?(i.length=f,e(i)):e(!a&&(r||void 0));else{var g=d.value;try{if(s){var m=o(g,f),v=function(o){if(n)p();else if(r)o?p():UC(c,e,!1,l);else if(t)try{i[f++]=o,p()}catch(e){h(e)}else o?UC(c,e,a||g,l):p()};L(m)?u.resolve(m).then(v,h):v(m)}else i[f++]=g,p()}catch(e){h(e)}}}catch(e){l(e)}}),l)}catch(e){l(e)}};p()}))}},KC={toArray:zC(0),forEach:zC(1),every:zC(2),some:zC(3),find:zC(4)},VC=KC.toArray,HC=Ce("asyncIterator"),WC=k(Ps("Array","values")),ZC=k(WC([]).next),qC=function(){return new YC(this)},YC=function(e){this.iterator=WC(e)};YC.prototype.next=function(){return ZC(this.iterator)};var JC=function(e){var t=this,n=arguments.length,r=n>1?arguments[1]:void 0,a=n>2?arguments[2]:void 0;return new(D("Promise"))((function(n){var o=de(e);void 0!==r&&(r=Tn(r,a));var i=te(o,HC),s=i?void 0:Ua(o)||qC,l=_n(t)?new t:[],u=i?function(e,t){var n=arguments.length<2?te(e,jC):t;return n?Be(g(n,e)):new _C(GC(Ka(e)))}(o,i):new _C(GC(Ka(o,s)));n(VC(u,r,l))}))};Vt({target:"Array",stat:!0},{fromAsync:JC});var QC=Vn.filterReject;Vt({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return QC(this,e,arguments.length>1?arguments[1]:void 0)}}),so("filterOut");var XC=Vn.filterReject;Vt({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return XC(this,e,arguments.length>1?arguments[1]:void 0)}}),so("filterReject");var eS=Array,tS=k([].push),nS=function(e,t,n,r){for(var a,o,i,s=de(e),l=P(s),u=Tn(t,n),c=hn(null),d=Et(l),f=0;d>f;f++)i=l[f],(o=$e(u(i,f,s)))in c?tS(c[o],i):c[o]=[i];if(r&&(a=r(s))!==eS)for(o in c)c[o]=Ts(a,c[o]);return c};Vt({target:"Array",proto:!0},{group:function(e){return nS(this,e,arguments.length>1?arguments[1]:void 0)}}),so("group"),Vt({target:"Array",proto:!0,forced:!So("groupBy")},{groupBy:function(e){return nS(this,e,arguments.length>1?arguments[1]:void 0)}}),so("groupBy");var rS=Lc.Map,aS=Lc.get,oS=Lc.has,iS=Lc.set,sS=k([].push),lS=function(e){for(var t,n,r=de(this),a=P(r),o=Tn(e,arguments.length>1?arguments[1]:void 0),i=new rS,s=Et(a),l=0;s>l;l++)t=o(n=a[l],l,r),oS(i,t)?sS(aS(i,t),n):iS(i,t,[n]);return i};Vt({target:"Array",proto:!0,name:"groupToMap",forced:!So("groupByToMap")},{groupByToMap:lS}),so("groupByToMap"),Vt({target:"Array",proto:!0,forced:ae},{groupToMap:lS}),so("groupToMap");var uS=Object.isFrozen,cS=function(e,t){if(!uS||!Pn(e)||!uS(e))return!1;for(var n,r=0,a=e.length;r<a;)if(!("string"==typeof(n=e[r++])||t&&void 0===n))return!1;return 0!==a};Vt({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!cS(e,!0))return!1;var t=e.raw;return t.length===e.length&&cS(t,!1)}}),f&&(yn(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=de(this),t=Et(e);return 0===t?0:t-1}}),so("lastIndex")),f&&(yn(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=de(this),t=Et(e);return 0===t?void 0:e[t-1]},set:function(e){var t=de(this),n=Et(t);return t[0===n?0:n-1]=e}}),so("lastItem"));var dS=function(e,t,n){for(var r,a,o=e.iterator,i=e.next;!(r=g(i,o)).done;)if(void 0!==(a=t(r.value)))return a},fS=Lc.Map,hS=Lc.proto,pS=k(hS.forEach),gS=k(hS.entries),mS=gS(new fS).next,vS=function(e,t,n){return n?dS({iterator:gS(e),next:mS},(function(e){return t(e[1],e[0])})):pS(e,t)},yS=Lc.Map,bS=Lc.has,wS=Lc.set,CS=k([].push),SS=function(e){var t,n,r,a=de(this),o=Et(a),i=[],s=new yS,l=N(e)?function(e){return e}:ee(e);for(t=0;t<o;t++)r=l(n=a[t]),bS(s,r)||wS(s,r,n);return vS(s,(function(e){CS(i,e)})),i};Vt({target:"Array",proto:!0,forced:!0},{uniqueBy:SS}),so("uniqueBy");var ES=TypeError,kS=ra(ArrayBuffer.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==x(e))throw new ES("ArrayBuffer expected");return e.byteLength},$S=k(ArrayBuffer.prototype.slice),AS=function(e){if(0!==kS(e))return!1;try{return $S(e,0,0),!1}catch(e){return!0}},xS=ArrayBuffer.prototype;f&&!("detached"in xS)&&yn(xS,"detached",{configurable:!0,get:function(){return AS(this)}});var MS,TS,PS,NS,IS=function(e){try{if(Zi)return Function('return require("'+e+'")')()}catch(e){}},OS=c.structuredClone,RS=!!OS&&!d((function(){if(Sp&&V>92||Zi&&V>94||Ep&&V>97)return!1;var e=new ArrayBuffer(8),t=OS(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength})),FS=c.structuredClone,BS=c.ArrayBuffer,LS=c.MessageChannel,DS=!1;if(RS)DS=function(e){FS(e,{transfer:[e]})};else if(BS)try{LS||(MS=IS("worker_threads"))&&(LS=MS.MessageChannel),LS&&(TS=new LS,PS=new BS(2),NS=function(e){TS.port1.postMessage(null,[e])},2===PS.byteLength&&(NS(PS),0===PS.byteLength&&(DS=NS)))}catch(e){}var _S=DS,GS=c.structuredClone,jS=c.ArrayBuffer,US=c.DataView,zS=c.TypeError,KS=Math.min,VS=jS.prototype,HS=US.prototype,WS=k(VS.slice),ZS=ra(VS,"resizable","get"),qS=ra(VS,"maxByteLength","get"),YS=k(HS.getInt8),JS=k(HS.setInt8),QS=(RS||_S)&&function(e,t,n){var r,a=kS(e),o=void 0===t?a:Vs(t),i=!ZS||!ZS(e);if(AS(e))throw new zS("ArrayBuffer is detached");if(RS&&(e=GS(e,{transfer:[e]}),a===o&&(n||i)))return e;if(a>=o&&(!n||i))r=WS(e,0,o);else{var s=n&&!i&&qS?{maxByteLength:qS(e)}:void 0;r=new jS(o,s);for(var l=new US(e),u=new US(r),c=KS(o,a),d=0;d<c;d++)JS(u,d,YS(l,d))}return RS||_S(e),r};QS&&Vt({target:"ArrayBuffer",proto:!0},{transfer:function(){return QS(this,arguments.length?arguments[0]:void 0,!0)}}),QS&&Vt({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return QS(this,arguments.length?arguments[0]:void 0,!1)}});var XS=Ce("asyncDispose"),eE=Ce("dispose"),tE=k([].push),nE=function(e,t,n){return arguments.length<3&&!N(e)&&(n=ee(function(e,t){if("async-dispose"===t){var n=te(e,XS);return void 0!==n?n:(n=te(e,eE),function(){g(n,this)})}return te(e,eE)}(Be(e),t))),void 0===n?function(){}:Tn(n,e)},rE=function(e,t,n,r){var a;if(arguments.length<4){if(N(t)&&"sync-dispose"===n)return;a=nE(t,n)}else a=nE(void 0,n,r);tE(e.stack,a)},aE=D("Promise"),oE=D("SuppressedError"),iE=ReferenceError,sE=Ce("asyncDispose"),lE=Ce("toStringTag"),uE="AsyncDisposableStack",cE=dt.set,dE=dt.getterFor(uE),fE="async-dispose",hE="disposed",pE=function(e){var t=dE(e);if(t.state===hE)throw new iE(uE+" already disposed");return t},gE=function(){cE(zs(this,mE),{type:uE,state:"pending",stack:[]}),f||(this.disposed=!1)},mE=gE.prototype;js(mE,{disposeAsync:function(){var e=this;return new aE((function(t,n){var r=dE(e);if(r.state===hE)return t(void 0);r.state=hE,f||(e.disposed=!0);var a,o=r.stack,i=o.length,s=!1,l=function(e){s?a=new oE(e,a):(s=!0,a=e),u()},u=function(){if(i){var e=o[--i];o[i]=null;try{aE.resolve(e()).then(u,l)}catch(e){l(e)}}else r.stack=null,s?n(a):t(void 0)};u()}))},use:function(e){return rE(pE(this),e,fE),e},adopt:function(e,t){var n=pE(this);return ee(t),rE(n,void 0,fE,(function(){return t(e)})),e},defer:function(e){var t=pE(this);ee(e),rE(t,void 0,fE,e)},move:function(){var e=pE(this),t=new gE;return dE(t).stack=e.stack,e.stack=[],e.state=hE,f||(this.disposed=!0),t}}),f&&yn(mE,"disposed",{configurable:!0,get:function(){return dE(this).state===hE}}),ht(mE,sE,mE.disposeAsync,{name:"disposeAsync"}),ht(mE,lE,uE,{nonWritable:!0}),Vt({global:!0,constructor:!0},{AsyncDisposableStack:gE});var vE=Ce("toStringTag"),yE=TypeError,bE=function(){if(zs(this,IC),Ba(this)===IC)throw new yE("Abstract class AsyncIterator not directly constructable")};bE.prototype=IC,he(IC,vE)||Ve(IC,vE,"AsyncIterator"),he(IC,"constructor")&&IC.constructor!==Object||Ve(IC,"constructor",bE),Vt({global:!0,constructor:!0,forced:ae},{AsyncIterator:bE});var wE=D("Promise"),CE=Ce("toStringTag"),SE="AsyncIteratorHelper",EE="WrapForValidAsyncIterator",kE=dt.set,$E=function(e){var t=!e,n=dt.getterFor(e?EE:SE),r=function(e){var r=wp((function(){return n(e)})),a=r.error,o=r.value;return a||t&&o.done?{exit:!0,value:a?wE.reject(o):wE.resolve(Ei(void 0,!0))}:{exit:!1,value:o}};return js(hn(IC),{next:function(){var e=r(this),t=e.value;if(e.exit)return t;var n=wp((function(){return Be(t.nextHandler(wE))})),a=n.error,o=n.value;return a&&(t.done=!0),a?wE.reject(o):wE.resolve(o)},return:function(){var t=r(this),n=t.value;if(t.exit)return n;n.done=!0;var a,o,i=n.iterator,s=wp((function(){if(n.inner)try{Va(n.inner.iterator,"normal")}catch(e){return Va(i,"throw",e)}return te(i,"return")}));return a=o=s.value,s.error?wE.reject(o):void 0===a?wE.resolve(Ei(void 0,!0)):(o=(s=wp((function(){return g(a,i)}))).value,s.error?wE.reject(o):e?wE.resolve(o):wE.resolve(o).then((function(e){return Be(e),Ei(void 0,!0)})))}})},AE=$E(!0),xE=$E(!1);Ve(xE,CE,"Async Iterator Helper");var ME=function(e,t){var n=function(n,r){r?(r.iterator=n.iterator,r.next=n.next):r=n,r.type=t?EE:SE,r.nextHandler=e,r.counter=0,r.done=!1,kE(this,r)};return n.prototype=t?AE:xE,n},TE=ME((function(e){var t=this,n=t.iterator,r=t.mapper;return new e((function(a,o){var i=function(e){t.done=!0,o(e)},s=function(e){UC(n,i,e,i)};e.resolve(Be(g(t.next,n))).then((function(n){try{if(Be(n).done)t.done=!0,a(Ei(void 0,!0));else{var o=n.value;try{var l=r(o,t.counter++),u=function(e){a(Ei(e,!1))};L(l)?e.resolve(l).then(u,s):u(l)}catch(e){s(e)}}}catch(e){i(e)}}),i)}))})),PE=function(e){return Be(this),ee(e),new TE(GC(this),{mapper:e})},NE=function(e,t){return[t,e]},IE=function(){return g(PE,this,NE)};Vt({target:"AsyncIterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:IE});var OE=Ce("asyncDispose"),RE=D("Promise");he(IC,OE)||ht(IC,OE,(function(){var e=this;return new RE((function(t,n){var r=te(e,"return");r?RE.resolve(g(r,e)).then((function(){t(void 0)}),n):t(void 0)}))}));var FE=RangeError,BE=function(e){if(e==e)return e;throw new FE("NaN is not allowed")},LE=ME((function(e){var t=this;return new e((function(n,r){var a=function(e){t.done=!0,r(e)},o=function(){try{e.resolve(Be(g(t.next,t.iterator))).then((function(e){try{Be(e).done?(t.done=!0,n(Ei(void 0,!0))):t.remaining?(t.remaining--,o()):n(Ei(e.value,!1))}catch(e){a(e)}}),a)}catch(e){a(e)}};o()}))}));Vt({target:"AsyncIterator",proto:!0,real:!0,forced:ae},{drop:function(e){Be(this);var t=Hy(BE(+e));return new LE(GC(this),{remaining:t})}});var DE=KC.every;Vt({target:"AsyncIterator",proto:!0,real:!0},{every:function(e){return DE(this,e)}});var _E=ME((function(e){var t=this,n=t.iterator,r=t.predicate;return new e((function(a,o){var i=function(e){t.done=!0,o(e)},s=function(e){UC(n,i,e,i)},l=function(){try{e.resolve(Be(g(t.next,n))).then((function(n){try{if(Be(n).done)t.done=!0,a(Ei(void 0,!0));else{var o=n.value;try{var u=r(o,t.counter++),c=function(e){e?a(Ei(o,!1)):l()};L(u)?e.resolve(u).then(c,s):c(u)}catch(e){s(e)}}}catch(e){i(e)}}),i)}catch(e){i(e)}};l()}))}));Vt({target:"AsyncIterator",proto:!0,real:!0,forced:ae},{filter:function(e){return Be(this),ee(e),new _E(GC(this),{predicate:e})}});var GE=KC.find;Vt({target:"AsyncIterator",proto:!0,real:!0},{find:function(e){return GE(this,e)}});var jE=Ce("asyncIterator"),UE=function(e){var t,n=Be(e),r=!0,a=te(n,jE);return B(a)||(a=Ua(n),r=!1),void 0!==a?t=g(a,n):(t=n,r=!0),Be(t),GC(r?t:new _C(GC(t)))},zE=ME((function(e){var t=this,n=t.iterator,r=t.mapper;return new e((function(a,o){var i=function(e){t.done=!0,o(e)},s=function(e){UC(n,i,e,i)},l=function(){try{e.resolve(Be(g(t.next,n))).then((function(n){try{if(Be(n).done)t.done=!0,a(Ei(void 0,!0));else{var o=n.value;try{var l=r(o,t.counter++),c=function(e){try{t.inner=UE(e),u()}catch(e){s(e)}};L(l)?e.resolve(l).then(c,s):c(l)}catch(e){s(e)}}}catch(e){i(e)}}),i)}catch(e){i(e)}},u=function(){var n=t.inner;if(n)try{e.resolve(Be(g(n.next,n.iterator))).then((function(e){try{Be(e).done?(t.inner=null,l()):a(Ei(e.value,!1))}catch(e){s(e)}}),s)}catch(e){s(e)}else l()};u()}))}));Vt({target:"AsyncIterator",proto:!0,real:!0,forced:ae},{flatMap:function(e){return Be(this),ee(e),new zE(GC(this),{mapper:e,inner:null})}});var KE=KC.forEach;Vt({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(e){return KE(this,e)}});var VE=ME((function(){return g(this.next,this.iterator)}),!0);Vt({target:"AsyncIterator",stat:!0,forced:ae},{from:function(e){var t=UE("string"==typeof e?de(e):e);return _(IC,t.iterator)?t.iterator:new VE(t)}}),Vt({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{indexed:IE}),Vt({target:"AsyncIterator",proto:!0,real:!0,forced:ae},{map:PE});var HE=D("Promise"),WE=TypeError;Vt({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(e){Be(this),ee(e);var t=GC(this),n=t.iterator,r=t.next,a=arguments.length<2,o=a?void 0:arguments[1],i=0;return new HE((function(t,s){var l=function(e){UC(n,s,e,s)},u=function(){try{HE.resolve(Be(g(r,n))).then((function(n){try{if(Be(n).done)a?s(new WE("Reduce of empty iterator with no initial value")):t(o);else{var r=n.value;if(a)a=!1,o=r,u();else try{var c=e(o,r,i),d=function(e){o=e,u()};L(c)?HE.resolve(c).then(d,l):d(c)}catch(e){l(e)}}i++}catch(e){s(e)}}),s)}catch(e){s(e)}};u()}))}});var ZE=KC.some;Vt({target:"AsyncIterator",proto:!0,real:!0},{some:function(e){return ZE(this,e)}});var qE=ME((function(e){var t,n=this,r=n.iterator;if(!n.remaining--){var a=Ei(void 0,!0);return n.done=!0,void 0!==(t=r.return)?e.resolve(g(t,r,void 0)).then((function(){return a})):a}return e.resolve(g(n.next,r)).then((function(e){return Be(e).done?(n.done=!0,Ei(void 0,!0)):Ei(e.value,!1)})).then(null,(function(e){throw n.done=!0,e}))}));Vt({target:"AsyncIterator",proto:!0,real:!0,forced:ae},{take:function(e){Be(this);var t=Hy(BE(+e));return new qE(GC(this),{remaining:t})}});var YE=KC.toArray;Vt({target:"AsyncIterator",proto:!0,real:!0},{toArray:function(){return YE(this,void 0,[])}});var JE="Incorrect Iterator.range arguments",QE="NumericRangeIterator",XE=dt.set,ek=dt.getterFor(QE),tk=RangeError,nk=TypeError,rk=fi((function(e,t,n,r,a,o){if(typeof e!=r||t!==1/0&&t!==-1/0&&typeof t!=r)throw new nk(JE);if(e===1/0||e===-1/0)throw new tk(JE);var i,s=t>e,l=!1;if(void 0===n)i=void 0;else if(L(n))i=n.step,l=!!n.inclusive;else{if(typeof n!=r)throw new nk(JE);i=n}if(N(i)&&(i=s?o:-o),typeof i!=r)throw new nk(JE);if(i===1/0||i===-1/0||i===a&&e!==t)throw new tk(JE);XE(this,{type:QE,start:e,end:t,step:i,inclusive:l,hitsEnd:e!=e||t!=t||i!=i||t>e!=i>a,currentCount:a,zero:a}),f||(this.start=e,this.end=t,this.step=i,this.inclusive=l)}),QE,(function(){var e=ek(this);if(e.hitsEnd)return Ei(void 0,!0);var t=e.start,n=e.end,r=t+e.step*e.currentCount++;r===n&&(e.hitsEnd=!0);var a=e.inclusive;return(n>t?a?r>n:r>=n:a?n>r:n>=r)?(e.hitsEnd=!0,Ei(void 0,!0)):Ei(r,!1)})),ak=function(e){yn(rk.prototype,e,{get:function(){return ek(this)[e]},set:function(){},configurable:!0,enumerable:!1})};f&&(ak("start"),ak("end"),ak("inclusive"),ak("step"));var ok=rk;"function"==typeof BigInt&&Vt({target:"BigInt",stat:!0,forced:!0},{range:function(e,t,n){return new ok(e,t,n,"bigint",BigInt(0),BigInt(1))}});var ik=Object,sk=TypeError,lk=D("Map"),uk=D("WeakMap"),ck=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=hn(null)};ck.prototype.get=function(e,t){return this[e]||(this[e]=t())},ck.prototype.next=function(e,t,n){var r=n?this.objectsByIndex[e]||(this.objectsByIndex[e]=new uk):this.primitives||(this.primitives=new lk),a=r.get(t);return a||r.set(t,a=new ck),a};var dk=new ck,fk=function(){var e,t,n=dk,r=arguments.length;for(e=0;e<r;e++)L(t=arguments[e])&&(n=n.next(e,t,!0));if(this===ik&&n===dk)throw new sk("Composite keys must contain a non-primitive component");for(e=0;e<r;e++)L(t=arguments[e])||(n=n.next(e,t,!1));return n},hk=Object,pk=function(){var e=D("Object","freeze");return e?e(hn(null)):hn(null)};Vt({global:!0,forced:!0},{compositeKey:function(){return Tr(fk,hk,arguments).get("object",pk)}}),Vt({global:!0,forced:!0},{compositeSymbol:function(){return 1===arguments.length&&"string"==typeof arguments[0]?D("Symbol").for(arguments[0]):Tr(fk,null,arguments).get("symbol",D("Symbol"))}});var gk=ol,mk=k(DataView.prototype.getUint16);Vt({target:"DataView",proto:!0},{getFloat16:function(e){var t=mk(this,e,arguments.length>1&&arguments[1]);return gk([255&t,t>>8&255],10)}});var vk=k(DataView.prototype.getUint8);Vt({target:"DataView",proto:!0,forced:!0},{getUint8Clamped:function(e){return vk(this,e)}});var yk=TypeError,bk=function(e){if("DataView"===Qt(e))return e;throw new yk("Argument is not a DataView")},wk=Math.f16round||function(e){return Ys(e,.0009765625,65504,6103515625e-14)},Ck=al,Sk=k(DataView.prototype.setUint16);Vt({target:"DataView",proto:!0},{setFloat16:function(e,t){bk(this);var n=Vs(e),r=Ck(wk(t),10,2);return Sk(this,n,r[1]<<8|r[0],arguments.length>2&&arguments[2])}});var Ek=k(DataView.prototype.setUint8);Vt({target:"DataView",proto:!0,forced:!0},{setUint8Clamped:function(e,t){bk(this);var n=Vs(e);return Ek(this,n,Yy(t))}});var kk=D("SuppressedError"),$k=ReferenceError,Ak=Ce("dispose"),xk=Ce("toStringTag"),Mk="DisposableStack",Tk=dt.set,Pk=dt.getterFor(Mk),Nk="sync-dispose",Ik="disposed",Ok=function(e){var t=Pk(e);if(t.state===Ik)throw new $k(Mk+" already disposed");return t},Rk=function(){Tk(zs(this,Fk),{type:Mk,state:"pending",stack:[]}),f||(this.disposed=!1)},Fk=Rk.prototype;js(Fk,{dispose:function(){var e=Pk(this);if(e.state!==Ik){e.state=Ik,f||(this.disposed=!0);for(var t,n=e.stack,r=n.length,a=!1;r;){var o=n[--r];n[r]=null;try{o()}catch(e){a?t=new kk(e,t):(a=!0,t=e)}}if(e.stack=null,a)throw t}},use:function(e){return rE(Ok(this),e,Nk),e},adopt:function(e,t){var n=Ok(this);return ee(t),rE(n,void 0,Nk,(function(){t(e)})),e},defer:function(e){var t=Ok(this);ee(e),rE(t,void 0,Nk,e)},move:function(){var e=Ok(this),t=new Rk;return Pk(t).stack=e.stack,e.stack=[],e.state=Ik,f||(this.disposed=!0),t}}),f&&yn(Fk,"disposed",{configurable:!0,get:function(){return Pk(this).state===Ik}}),ht(Fk,Ak,Fk.dispose,{name:"dispose"}),ht(Fk,xk,Mk,{nonWritable:!0}),Vt({global:!0,constructor:!0},{DisposableStack:Rk});var Bk=function(){return k(ee(this))};Vt({target:"Function",proto:!0,forced:!0},{demethodize:Bk});var Lk=Object.getOwnPropertyDescriptor,Dk=/^\s*class\b/,_k=k(Dk.exec);Vt({target:"Function",stat:!0,sham:!0,forced:!0},{isCallable:function(e){return B(e)&&!function(e){try{if(!f||!_k(Dk,et(e)))return!1}catch(e){}var t=Lk(e,"prototype");return!!t&&he(t,"writable")&&!t.writable}(e)}}),Vt({target:"Function",stat:!0,forced:!0},{isConstructor:_n});var Gk=Ke.f,jk=Ce("metadata"),Uk=Function.prototype;void 0===Uk[jk]&&Gk(Uk,jk,{value:null}),Vt({target:"Function",proto:!0,forced:!0,name:"demethodize"},{unThis:Bk});var zk=ui.IteratorPrototype,Kk="constructor",Vk="Iterator",Hk=Ce("toStringTag"),Wk=TypeError,Zk=c[Vk],qk=!B(Zk)||Zk.prototype!==zk||!d((function(){Zk({})})),Yk=function(){if(zs(this,zk),Ba(this)===zk)throw new Wk("Abstract class Iterator not directly constructable")},Jk=function(e,t){f?yn(zk,e,{configurable:!0,get:function(){return t},set:function(t){if(Be(this),this===zk)throw new Wk("You can't redefine this property");he(this,e)?this[e]=t:co(this,e,t)}}):zk[e]=t};he(zk,Hk)||Jk(Hk,Vk),!qk&&he(zk,Kk)&&zk[Kk]!==Object||Jk(Kk,Yk),Yk.prototype=zk,Vt({global:!0,constructor:!0,forced:qk},{Iterator:Yk});var Qk=ui.IteratorPrototype,Xk=Ce("toStringTag"),e$="IteratorHelper",t$="WrapForValidIterator",n$=dt.set,r$=function(e){var t=dt.getterFor(e?t$:e$);return js(hn(Qk),{next:function(){var n=t(this);if(e)return n.nextHandler();try{var r=n.done?void 0:n.nextHandler();return Ei(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var n=t(this),r=n.iterator;if(n.done=!0,e){var a=te(r,"return");return a?g(a,r):Ei(void 0,!0)}if(n.inner)try{Va(n.inner.iterator,"normal")}catch(e){return Va(r,"throw",e)}return Va(r,"normal"),Ei(void 0,!0)}})},a$=r$(!0),o$=r$(!1);Ve(o$,Xk,"Iterator Helper");var i$=function(e,t){var n=function(n,r){r?(r.iterator=n.iterator,r.next=n.next):r=n,r.type=t?t$:e$,r.nextHandler=e,r.counter=0,r.done=!1,n$(this,r)};return n.prototype=t?a$:o$,n},s$=i$((function(){var e=this.iterator,t=Be(g(this.next,e));if(!(this.done=!!t.done))return Uo(e,this.mapper,[t.value,this.counter++],!0)})),l$=function(e){return Be(this),ee(e),new s$(GC(this),{mapper:e})},u$=function(e,t){return[t,e]},c$=function(){return g(l$,this,u$)};Vt({target:"Iterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:c$});var d$=ui.IteratorPrototype,f$=Ce("dispose");he(d$,f$)||ht(d$,f$,(function(){var e=te(this,"return");e&&g(e,this)}));var h$=i$((function(){for(var e,t=this.iterator,n=this.next;this.remaining;)if(this.remaining--,e=Be(g(n,t)),this.done=!!e.done)return;if(e=Be(g(n,t)),!(this.done=!!e.done))return e.value}));Vt({target:"Iterator",proto:!0,real:!0,forced:ae},{drop:function(e){Be(this);var t=Hy(BE(+e));return new h$(GC(this),{remaining:t})}}),Vt({target:"Iterator",proto:!0,real:!0},{every:function(e){Be(this),ee(e);var t=GC(this),n=0;return!qa(t,(function(t,r){if(!e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var p$=i$((function(){for(var e,t,n=this.iterator,r=this.predicate,a=this.next;;){if(e=Be(g(a,n)),this.done=!!e.done)return;if(t=e.value,Uo(n,r,[t,this.counter++],!0))return t}}));Vt({target:"Iterator",proto:!0,real:!0,forced:ae},{filter:function(e){return Be(this),ee(e),new p$(GC(this),{predicate:e})}}),Vt({target:"Iterator",proto:!0,real:!0},{find:function(e){Be(this),ee(e);var t=GC(this),n=0;return qa(t,(function(t,r){if(e(t,n++))return r(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}});var g$=function(e,t){t&&"string"==typeof e||Be(e);var n=Ua(e);return GC(Be(void 0!==n?g(n,e):e))},m$=i$((function(){for(var e,t,n=this.iterator,r=this.mapper;;){if(t=this.inner)try{if(!(e=Be(g(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){Va(n,"throw",e)}if(e=Be(g(this.next,n)),this.done=!!e.done)return;try{this.inner=g$(r(e.value,this.counter++),!1)}catch(e){Va(n,"throw",e)}}}));Vt({target:"Iterator",proto:!0,real:!0,forced:ae},{flatMap:function(e){return Be(this),ee(e),new m$(GC(this),{mapper:e,inner:null})}}),Vt({target:"Iterator",proto:!0,real:!0},{forEach:function(e){Be(this),ee(e);var t=GC(this),n=0;qa(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}});var v$=ui.IteratorPrototype,y$=i$((function(){return g(this.next,this.iterator)}),!0);Vt({target:"Iterator",stat:!0,forced:ae},{from:function(e){var t=g$("string"==typeof e?de(e):e,!0);return _(v$,t.iterator)?t.iterator:new y$(t)}}),Vt({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:c$}),Vt({target:"Iterator",proto:!0,real:!0,forced:ae},{map:l$});var b$=TypeError;Vt({target:"Iterator",stat:!0,forced:!0},{range:function(e,t,n){if("number"==typeof e)return new ok(e,t,n,"number",0,1);if("bigint"==typeof e)return new ok(e,t,n,"bigint",BigInt(0),BigInt(1));throw new b$("Incorrect Iterator.range arguments")}});var w$=TypeError;Vt({target:"Iterator",proto:!0,real:!0},{reduce:function(e){Be(this),ee(e);var t=GC(this),n=arguments.length<2,r=n?void 0:arguments[1],a=0;if(qa(t,(function(t){n?(n=!1,r=t):r=e(r,t,a),a++}),{IS_RECORD:!0}),n)throw new w$("Reduce of empty iterator with no initial value");return r}}),Vt({target:"Iterator",proto:!0,real:!0},{some:function(e){Be(this),ee(e);var t=GC(this),n=0;return qa(t,(function(t,r){if(e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var C$=i$((function(){var e=this.iterator;if(!this.remaining--)return this.done=!0,Va(e,"normal",void 0);var t=Be(g(this.next,e));return(this.done=!!t.done)?void 0:t.value}));Vt({target:"Iterator",proto:!0,real:!0,forced:ae},{take:function(e){Be(this);var t=Hy(BE(+e));return new C$(GC(this),{remaining:t})}});var S$=[].push;Vt({target:"Iterator",proto:!0,real:!0},{toArray:function(){var e=[];return qa(GC(Be(this)),S$,{that:e,IS_RECORD:!0}),e}}),Vt({target:"Iterator",proto:!0,real:!0,forced:ae},{toAsync:function(){return new VE(GC(new _C(GC(Be(this)))))}});var E$=!d((function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})),k$=dt.get,$$=function(e){if(!L(e))return!1;var t=k$(e);return!!t&&"RawJSON"===t.type};Vt({target:"JSON",stat:!0,forced:!E$},{isRawJSON:$$});var A$=SyntaxError,x$=parseInt,M$=String.fromCharCode,T$=k("".charAt),P$=k("".slice),N$=k(/./.exec),I$={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},O$=/^[\da-f]{4}$/i,R$=/^[\u0000-\u001F]$/,F$=function(e,t){for(var n=!0,r="";t<e.length;){var a=T$(e,t);if("\\"===a){var o=P$(e,t,t+2);if(he(I$,o))r+=I$[o],t+=2;else{if("\\u"!==o)throw new A$('Unknown escape sequence: "'+o+'"');var i=P$(e,t+=2,t+4);if(!N$(O$,i))throw new A$("Bad Unicode escape at: "+t);r+=M$(x$(i,16)),t+=4}}else{if('"'===a){n=!1,t++;break}if(N$(R$,a))throw new A$("Bad control character in string literal at: "+t);r+=a,t++}}if(n)throw new A$("Unterminated string at: "+t);return{value:r,end:t}},B$=c.JSON,L$=c.Number,D$=c.SyntaxError,_$=B$&&B$.parse,G$=D("Object","keys"),j$=Object.getOwnPropertyDescriptor,U$=k("".charAt),z$=k("".slice),K$=k(/./.exec),V$=k([].push),H$=/^\d$/,W$=/^[1-9]$/,Z$=/^(?:-|\d)$/,q$=/^[\t\n\r ]$/,Y$=function(e,t,n,r){var a,o,i,s,l,u=e[t],c=r&&u===r.value,d=c&&"string"==typeof r.source?{source:r.source}:{};if(L(u)){var f=Pn(u),h=c?r.nodes:f?[]:{};if(f)for(a=h.length,i=Et(u),s=0;s<i;s++)J$(u,s,Y$(u,""+s,n,s<a?h[s]:void 0));else for(o=G$(u),i=Et(o),s=0;s<i;s++)l=o[s],J$(u,l,Y$(u,l,n,he(h,l)?h[l]:void 0))}return g(n,e,t,u,d)},J$=function(e,t,n){if(f){var r=j$(e,t);if(r&&!r.configurable)return}void 0===n?delete e[t]:co(e,t,n)},Q$=function(e,t,n,r){this.value=e,this.end=t,this.source=n,this.nodes=r},X$=function(e,t){this.source=e,this.index=t};X$.prototype={fork:function(e){return new X$(this.source,e)},parse:function(){var e=this.source,t=this.skip(q$,this.index),n=this.fork(t),r=U$(e,t);if(K$(Z$,r))return n.number();switch(r){case"{":return n.object();case"[":return n.array();case'"':return n.string();case"t":return n.keyword(!0);case"f":return n.keyword(!1);case"n":return n.keyword(null)}throw new D$('Unexpected character: "'+r+'" at: '+t)},node:function(e,t,n,r,a){return new Q$(t,r,e?null:z$(this.source,n,r),a)},object:function(){for(var e=this.source,t=this.index+1,n=!1,r={},a={};t<e.length;){if(t=this.until(['"',"}"],t),"}"===U$(e,t)&&!n){t++;break}var o=this.fork(t).string(),i=o.value;t=o.end,t=this.until([":"],t)+1,t=this.skip(q$,t),o=this.fork(t).parse(),co(a,i,o),co(r,i,o.value),t=this.until([",","}"],o.end);var s=U$(e,t);if(","===s)n=!0,t++;else if("}"===s){t++;break}}return this.node(1,r,this.index,t,a)},array:function(){for(var e=this.source,t=this.index+1,n=!1,r=[],a=[];t<e.length;){if(t=this.skip(q$,t),"]"===U$(e,t)&&!n){t++;break}var o=this.fork(t).parse();if(V$(a,o),V$(r,o.value),t=this.until([",","]"],o.end),","===U$(e,t))n=!0,t++;else if("]"===U$(e,t)){t++;break}}return this.node(1,r,this.index,t,a)},string:function(){var e=this.index,t=F$(this.source,this.index+1);return this.node(0,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,n=t;if("-"===U$(e,n)&&n++,"0"===U$(e,n))n++;else{if(!K$(W$,U$(e,n)))throw new D$("Failed to parse number at: "+n);n=this.skip(H$,++n)}if(("."===U$(e,n)&&(n=this.skip(H$,++n)),"e"===U$(e,n)||"E"===U$(e,n))&&(n++,"+"!==U$(e,n)&&"-"!==U$(e,n)||n++,n===(n=this.skip(H$,n))))throw new D$("Failed to parse number's exponent value at: "+n);return this.node(0,L$(z$(e,t,n)),t,n)},keyword:function(e){var t=""+e,n=this.index,r=n+t.length;if(z$(this.source,n,r)!==t)throw new D$("Failed to parse value at: "+n);return this.node(0,e,n,r)},skip:function(e,t){for(var n=this.source;t<n.length&&K$(e,U$(n,t));t++);return t},until:function(e,t){t=this.skip(q$,t);for(var n=U$(this.source,t),r=0;r<e.length;r++)if(e[r]===n)return t;throw new D$('Unexpected character: "'+n+'" at: '+t)}};var eA=d((function(){var e,t="9007199254740993";return _$(t,(function(t,n,r){e=r.source})),e!==t})),tA=W&&!d((function(){return 1/_$("-0 \t")!=-1/0}));Vt({target:"JSON",stat:!0,forced:eA},{parse:function(e,t){return tA&&!B(t)?_$(e):function(e,t){e=en(e);var n=new X$(e,0),r=n.parse(),a=r.value,o=n.skip(q$,r.end);if(o<e.length)throw new D$('Unexpected extra character: "'+U$(e,o)+'" after the parsed data at: '+o);return B(t)?Y$({"":a},"",t,r):a}(e,t)}});var nA=dt.set,rA=String,aA=SyntaxError,oA=D("JSON","parse"),iA=D("JSON","stringify"),sA=D("Object","create"),lA=D("Object","freeze"),uA=k("".charAt),cA=k("".slice),dA=k(/./.exec),fA=k([].push),hA=ve(),pA=hA.length,gA="Unacceptable as raw JSON",mA=/^[\t\n\r ]$/;Vt({target:"JSON",stat:!0,forced:!E$},{rawJSON:function(e){var t=en(e);if(""===t||dA(mA,uA(t,0))||dA(mA,uA(t,t.length-1)))throw new aA(gA);var n=oA(t);if("object"==typeof n&&null!==n)throw new aA(gA);var r=sA(null);return nA(r,{type:"RawJSON"}),co(r,"rawJSON",t),Tc?lA(r):r}}),iA&&Vt({target:"JSON",stat:!0,arity:3,forced:!E$},{stringify:function(e,t,n){var r=Nr(t),a=[],o=iA(e,(function(e,t){var n=B(r)?g(r,this,rA(e),t):t;return $$(n)?hA+(fA(a,n.rawJSON)-1):n}),n);if("string"!=typeof o)return o;for(var i="",s=o.length,l=0;l<s;l++){var u=uA(o,l);if('"'===u){var c=F$(o,++l).end-1,d=cA(o,l,c);i+=cA(d,0,pA)===hA?a[cA(d,pA)]:'"'+d+'"',l=c}else i+=u}return i}});var vA=Lc.has,yA=function(e){return vA(e),e},bA=Lc.remove;Vt({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=yA(this),n=!0,r=0,a=arguments.length;r<a;r++)e=bA(t,arguments[r]),n=n&&e;return!!n}});var wA=Lc.get,CA=Lc.has,SA=Lc.set;Vt({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var n,r,a=yA(this);return CA(a,e)?(n=wA(a,e),"update"in t&&(n=t.update(n,e,a),SA(a,e,n)),n):(r=t.insert(e,a),SA(a,e,r),r)}}),Vt({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=yA(this),n=Tn(e,arguments.length>1?arguments[1]:void 0);return!1!==vS(t,(function(e,r){if(!n(e,r,t))return!1}),!0)}});var EA=Lc.Map,kA=Lc.set;Vt({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=yA(this),n=Tn(e,arguments.length>1?arguments[1]:void 0),r=new EA;return vS(t,(function(e,a){n(e,a,t)&&kA(r,a,e)})),r}}),Vt({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=yA(this),n=Tn(e,arguments.length>1?arguments[1]:void 0),r=vS(t,(function(e,r){if(n(e,r,t))return{value:e}}),!0);return r&&r.value}}),Vt({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=yA(this),n=Tn(e,arguments.length>1?arguments[1]:void 0),r=vS(t,(function(e,r){if(n(e,r,t))return{key:r}}),!0);return r&&r.key}});var $A=function(e,t,n){return function(r){var a=de(r),o=arguments.length,i=o>1?arguments[1]:void 0,s=void 0!==i,l=s?Tn(i,o>2?arguments[2]:void 0):void 0,u=new e,c=0;return qa(a,(function(e){var r=s?l(e,c++):e;n?t(u,Be(r)[0],r[1]):t(u,r)})),u}};Vt({target:"Map",stat:!0,forced:!0},{from:$A(Lc.Map,Lc.set,!0)});Vt({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===vS(yA(this),(function(t){if(function(e,t){return e===t||e!=e&&t!=t}(t,e))return!0}),!0)}});var AA=Lc.Map;Vt({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var n=new(B(this)?this:AA);ee(t);var r=ee(n.set);return qa(e,(function(e){g(r,n,t(e),e)})),n}}),Vt({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=vS(yA(this),(function(t,n){if(t===e)return{key:n}}),!0);return t&&t.key}});var xA=Lc.Map,MA=Lc.set;Vt({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=yA(this),n=Tn(e,arguments.length>1?arguments[1]:void 0),r=new xA;return vS(t,(function(e,a){MA(r,n(e,a,t),e)})),r}});var TA=Lc.Map,PA=Lc.set;Vt({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=yA(this),n=Tn(e,arguments.length>1?arguments[1]:void 0),r=new TA;return vS(t,(function(e,a){PA(r,a,n(e,a,t))})),r}});var NA=Lc.set;Vt({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=yA(this),n=arguments.length,r=0;r<n;)qa(arguments[r++],(function(e,n){NA(t,e,n)}),{AS_ENTRIES:!0});return t}});var IA=function(e,t,n){return function(){for(var r=new e,a=arguments.length,o=0;o<a;o++){var i=arguments[o];n?t(r,Be(i)[0],i[1]):t(r,i)}return r}};Vt({target:"Map",stat:!0,forced:!0},{of:IA(Lc.Map,Lc.set,!0)});var OA=TypeError;Vt({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=yA(this),n=arguments.length<2,r=n?void 0:arguments[1];if(ee(e),vS(t,(function(a,o){n?(n=!1,r=a):r=e(r,a,o,t)})),n)throw new OA("Reduce of empty map with no initial value");return r}}),Vt({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=yA(this),n=Tn(e,arguments.length>1?arguments[1]:void 0);return!0===vS(t,(function(e,r){if(n(e,r,t))return!0}),!0)}});var RA=TypeError,FA=Lc.get,BA=Lc.has,LA=Lc.set;Vt({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=yA(this),r=arguments.length;ee(t);var a=BA(n,e);if(!a&&r<3)throw new RA("Updating absent value");var o=a?FA(n,e):ee(r>2?arguments[2]:void 0)(e,n);return LA(n,e,t(o,e,n)),n}});var DA=TypeError,_A=function(e,t){var n,r=Be(this),a=ee(r.get),o=ee(r.has),i=ee(r.set),s=arguments.length>2?arguments[2]:void 0;if(!B(t)&&!B(s))throw new DA("At least one callback required");return g(o,r,e)?(n=g(a,r,e),B(t)&&(n=t(n),g(i,r,e,n))):B(s)&&(n=s(),g(i,r,e,n)),n};Vt({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:_A}),Vt({target:"Map",proto:!0,real:!0,forced:!0},{upsert:_A});var GA=Math.min,jA=Math.max;Vt({target:"Math",stat:!0,forced:!0},{clamp:function(e,t,n){return GA(n,jA(t,e))}}),Vt({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180});var UA=180/Math.PI;Vt({target:"Math",stat:!0,forced:!0},{degrees:function(e){return e*UA}});var zA=Math.scale||function(e,t,n,r,a){var o=+e,i=+t,s=+n,l=+r,u=+a;return o!=o||i!=i||s!=s||l!=l||u!=u?NaN:o===1/0||o===-1/0?o:(o-i)*(u-l)/(s-i)+l};Vt({target:"Math",stat:!0,forced:!0},{fscale:function(e,t,n,r,a){return Js(zA(e,t,n,r,a))}}),Vt({target:"Math",stat:!0},{f16round:wk}),Vt({target:"Math",stat:!0,forced:!0},{iaddh:function(e,t,n,r){var a=e>>>0,o=n>>>0;return(t>>>0)+(r>>>0)+((a&o|(a|o)&~(a+o>>>0))>>>31)|0}}),Vt({target:"Math",stat:!0,forced:!0},{imulh:function(e,t){var n=65535,r=+e,a=+t,o=r&n,i=a&n,s=r>>16,l=a>>16,u=(s*i>>>0)+(o*i>>>16);return s*l+(u>>16)+((o*l>>>0)+(u&n)>>16)}}),Vt({target:"Math",stat:!0,forced:!0},{isubh:function(e,t,n,r){var a=e>>>0,o=n>>>0;return(t>>>0)-(r>>>0)-((~a&o|(a^~o)&a-o>>>0)>>>31)|0}}),Vt({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI});var KA=Math.PI/180;Vt({target:"Math",stat:!0,forced:!0},{radians:function(e){return e*KA}}),Vt({target:"Math",stat:!0,forced:!0},{scale:zA});var VA="Seeded Random",HA=VA+" Generator",WA=dt.set,ZA=dt.getterFor(HA),qA=TypeError,YA=fi((function(e){WA(this,{type:HA,seed:e%2147483647})}),VA,(function(){var e=ZA(this),t=e.seed=(1103515245*e.seed+12345)%2147483647;return Ei((1073741823&t)/1073741823,!1)}));Vt({target:"Math",stat:!0,forced:!0},{seededPRNG:function(e){var t=Be(e).seed;if(!Qd(t))throw new qA('Math.seededPRNG() argument should have a "seed" field with a finite value.');return new YA(t)}}),Vt({target:"Math",stat:!0,forced:!0},{signbit:function(e){var t=+e;return t==t&&0===t?1/t==-1/0:t<0}}),Vt({target:"Math",stat:!0,forced:!0},{umulh:function(e,t){var n=65535,r=+e,a=+t,o=r&n,i=a&n,s=r>>>16,l=a>>>16,u=(s*i>>>0)+(o*i>>>16);return s*l+(u>>>16)+((o*l>>>0)+(u&n)>>>16)}});var JA="Invalid number representation",QA=RangeError,XA=SyntaxError,ex=TypeError,tx=parseInt,nx=Math.pow,rx=/^[\d.a-z]+$/,ax=k("".charAt),ox=k(rx.exec),ix=k(1..toString),sx=k("".slice),lx=k("".split);Vt({target:"Number",stat:!0,forced:!0},{fromString:function(e,t){var n=1;if("string"!=typeof e)throw new ex(JA);if(!e.length)throw new XA(JA);if("-"===ax(e,0)&&(n=-1,!(e=sx(e,1)).length))throw new XA(JA);var r=void 0===t?10:vt(t);if(r<2||r>36)throw new QA("Invalid radix");if(!ox(rx,e))throw new XA(JA);var a=lx(e,"."),o=tx(a[0],r);if(a.length>1&&(o+=tx(a[1],r)/nx(r,a[1].length)),10===r&&ix(o,r)!==e)throw new XA(JA);return n*o}}),Vt({target:"Number",stat:!0,forced:!0},{range:function(e,t,n){return new ok(e,t,n,"number",0,1)}});var ux="Object Iterator",cx=dt.set,dx=dt.getterFor(ux),fx=fi((function(e,t){var n=de(e);cx(this,{type:ux,mode:t,object:n,keys:tn(n),index:0})}),"Object",(function(){for(var e=dx(this),t=e.keys;;){if(null===t||e.index>=t.length)return e.object=e.keys=null,Ei(void 0,!0);var n=t[e.index++],r=e.object;if(he(r,n)){switch(e.mode){case"keys":return Ei(n,!1);case"values":return Ei(r[n],!1)}return Ei([n,r[n]],!1)}}}));Vt({target:"Object",stat:!0,forced:!0},{iterateEntries:function(e){return new fx(e,"entries")}}),Vt({target:"Object",stat:!0,forced:!0},{iterateKeys:function(e){return new fx(e,"keys")}}),Vt({target:"Object",stat:!0,forced:!0},{iterateValues:function(e){return new fx(e,"values")}});var hx=Ce("observable"),px="Observable",gx="Subscription",mx="SubscriptionObserver",vx=dt.getterFor,yx=dt.set,bx=vx(px),wx=vx(gx),Cx=vx(mx),Sx=function(e){this.observer=Be(e),this.cleanup=void 0,this.subscriptionObserver=void 0};Sx.prototype={type:gx,clean:function(){var e=this.cleanup;if(e){this.cleanup=void 0;try{e()}catch(e){bp(e)}}},close:function(){if(!f){var e=this.facade,t=this.subscriptionObserver;e.closed=!0,t&&(t.closed=!0)}this.observer=void 0},isClosed:function(){return void 0===this.observer}};var Ex=function(e,t){var n,r=yx(this,new Sx(e));f||(this.closed=!1);try{(n=te(e,"start"))&&g(n,e,this)}catch(e){bp(e)}if(!r.isClosed()){var a=r.subscriptionObserver=new kx(r);try{var o=t(a),i=o;N(o)||(r.cleanup=B(o.unsubscribe)?function(){i.unsubscribe()}:ee(o))}catch(e){return void a.error(e)}r.isClosed()&&r.clean()}};Ex.prototype=js({},{unsubscribe:function(){var e=wx(this);e.isClosed()||(e.close(),e.clean())}}),f&&yn(Ex.prototype,"closed",{configurable:!0,get:function(){return wx(this).isClosed()}});var kx=function(e){yx(this,{type:mx,subscriptionState:e}),f||(this.closed=!1)};kx.prototype=js({},{next:function(e){var t=Cx(this).subscriptionState;if(!t.isClosed()){var n=t.observer;try{var r=te(n,"next");r&&g(r,n,e)}catch(e){bp(e)}}},error:function(e){var t=Cx(this).subscriptionState;if(!t.isClosed()){var n=t.observer;t.close();try{var r=te(n,"error");r?g(r,n,e):bp(e)}catch(e){bp(e)}t.clean()}},complete:function(){var e=Cx(this).subscriptionState;if(!e.isClosed()){var t=e.observer;e.close();try{var n=te(t,"complete");n&&g(n,t)}catch(e){bp(e)}e.clean()}}}),f&&yn(kx.prototype,"closed",{configurable:!0,get:function(){return Cx(this).subscriptionState.isClosed()}});var $x=function(e){zs(this,Ax),yx(this,{type:px,subscriber:ee(e)})},Ax=$x.prototype;js(Ax,{subscribe:function(e){var t=arguments.length;return new Ex(B(e)?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:L(e)?e:{},bx(this).subscriber)}}),ht(Ax,hx,(function(){return this})),Vt({global:!0,constructor:!0,forced:!0},{Observable:$x}),Es(px);var xx=Ce("observable");Vt({target:"Observable",stat:!0,forced:!0},{from:function(e){var t=_n(this)?this:D("Observable"),n=te(Be(e),xx);if(n){var r=Be(g(n,e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}var a=Ka(e);return new t((function(e){qa(a,(function(t,n){if(e.next(t),e.closed)return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}),e.complete()}))}});var Mx=D("Array");Vt({target:"Observable",stat:!0,forced:!0},{of:function(){for(var e=_n(this)?this:D("Observable"),t=arguments.length,n=Mx(t),r=0;r<t;)n[r]=arguments[r++];return new e((function(e){for(var r=0;r<t;r++)if(e.next(n[r]),e.closed)return;e.complete()}))}}),Vt({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Rp.f(this),n=wp(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}});var Tx=D("Map"),Px=D("WeakMap"),Nx=k([].push),Ix=ue("metadata"),Ox=Ix.store||(Ix.store=new Px),Rx=function(e,t,n){var r=Ox.get(e);if(!r){if(!n)return;Ox.set(e,r=new Tx)}var a=r.get(t);if(!a){if(!n)return;r.set(t,a=new Tx)}return a},Fx={store:Ox,getMap:Rx,has:function(e,t,n){var r=Rx(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=Rx(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){Rx(n,r,!0).set(e,t)},keys:function(e,t){var n=Rx(e,t,!1),r=[];return n&&n.forEach((function(e,t){Nx(r,t)})),r},toKey:function(e){return void 0===e||"symbol"==typeof e?e:String(e)}},Bx=Fx.toKey,Lx=Fx.set;Vt({target:"Reflect",stat:!0},{defineMetadata:function(e,t,n){var r=arguments.length<4?void 0:Bx(arguments[3]);Lx(e,t,Be(n),r)}});var Dx=Fx.toKey,_x=Fx.getMap,Gx=Fx.store;Vt({target:"Reflect",stat:!0},{deleteMetadata:function(e,t){var n=arguments.length<3?void 0:Dx(arguments[2]),r=_x(Be(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var a=Gx.get(t);return a.delete(n),!!a.size||Gx.delete(t)}});var jx=Fx.has,Ux=Fx.get,zx=Fx.toKey,Kx=function(e,t,n){if(jx(e,t,n))return Ux(e,t,n);var r=Ba(t);return null!==r?Kx(e,r,n):void 0};Vt({target:"Reflect",stat:!0},{getMetadata:function(e,t){var n=arguments.length<3?void 0:zx(arguments[2]);return Kx(e,Be(t),n)}});var Vx=k(SS),Hx=k([].concat),Wx=Fx.keys,Zx=Fx.toKey,qx=function(e,t){var n=Wx(e,t),r=Ba(e);if(null===r)return n;var a=qx(r,t);return a.length?n.length?Vx(Hx(n,a)):a:n};Vt({target:"Reflect",stat:!0},{getMetadataKeys:function(e){var t=arguments.length<2?void 0:Zx(arguments[1]);return qx(Be(e),t)}});var Yx=Fx.get,Jx=Fx.toKey;Vt({target:"Reflect",stat:!0},{getOwnMetadata:function(e,t){var n=arguments.length<3?void 0:Jx(arguments[2]);return Yx(e,Be(t),n)}});var Qx=Fx.keys,Xx=Fx.toKey;Vt({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(e){var t=arguments.length<2?void 0:Xx(arguments[1]);return Qx(Be(e),t)}});var eM=Fx.has,tM=Fx.toKey,nM=function(e,t,n){if(eM(e,t,n))return!0;var r=Ba(t);return null!==r&&nM(e,r,n)};Vt({target:"Reflect",stat:!0},{hasMetadata:function(e,t){var n=arguments.length<3?void 0:tM(arguments[2]);return nM(e,Be(t),n)}});var rM=Fx.has,aM=Fx.toKey;Vt({target:"Reflect",stat:!0},{hasOwnMetadata:function(e,t){var n=arguments.length<3?void 0:aM(arguments[2]);return rM(e,Be(t),n)}});var oM=Fx.toKey,iM=Fx.set;Vt({target:"Reflect",stat:!0},{metadata:function(e,t){return function(n,r){iM(e,t,Be(n),oM(r))}}});var sM=k("".charCodeAt),lM=k("".replace),uM=RegExp("[!\"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^`{|}~"+Id+"]","g");Vt({target:"RegExp",stat:!0,forced:!0},{escape:function(e){var t=en(e),n=sM(t,0);return(n>47&&n<58?"\\x3":"")+lM(t,uM,"\\$&")}});var cM=Set.prototype,dM={Set:Set,add:k(cM.add),has:k(cM.has),remove:k(cM.delete),proto:cM},fM=dM.has,hM=function(e){return fM(e),e},pM=dM.add;Vt({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=hM(this),t=0,n=arguments.length;t<n;t++)pM(e,arguments[t]);return e}});var gM=dM.remove;Vt({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=hM(this),n=!0,r=0,a=arguments.length;r<a;r++)e=gM(t,arguments[r]),n=n&&e;return!!n}});var mM=dM.Set,vM=dM.proto,yM=k(vM.forEach),bM=k(vM.keys),wM=bM(new mM).next,CM=function(e,t,n){return n?dS({iterator:bM(e),next:wM},t):yM(e,t)},SM=dM.Set,EM=dM.add,kM=function(e){var t=new SM;return CM(e,(function(e){EM(t,e)})),t},$M=ra(dM.proto,"size","get")||function(e){return e.size},AM="Invalid size",xM=RangeError,MM=TypeError,TM=Math.max,PM=function(e,t){this.set=e,this.size=TM(t,0),this.has=ee(e.has),this.keys=ee(e.keys)};PM.prototype={getIterator:function(){return GC(Be(g(this.keys,this.set)))},includes:function(e){return g(this.has,this.set,e)}};var NM=function(e){Be(e);var t=+e.size;if(t!=t)throw new MM(AM);var n=vt(t);if(n<0)throw new xM(AM);return new PM(e,n)},IM=dM.has,OM=dM.remove,RM=function(e){var t=hM(this),n=NM(e),r=kM(t);return $M(t)<=n.size?CM(t,(function(e){n.includes(e)&&OM(r,e)})):dS(n.getIterator(),(function(e){IM(t,e)&&OM(r,e)})),r},FM=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},BM=function(e){var t=D("Set");try{(new t)[e](FM(0));try{return(new t)[e](FM(-1)),!1}catch(e){return!0}}catch(e){return!1}};Vt({target:"Set",proto:!0,real:!0,forced:!BM("difference")},{difference:RM});var LM=Ce("iterator"),DM=Object,_M=D("Set"),GM=function(e){return function(e){return L(e)&&"number"==typeof e.size&&B(e.has)&&B(e.keys)}(e)?e:function(e){if(N(e))return!1;var t=DM(e);return void 0!==t[LM]||"@@iterator"in t||he(La,Qt(t))}(e)?new _M(e):e};Vt({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return g(RM,this,GM(e))}}),Vt({target:"Set",proto:!0,real:!0,forced:!0},{every:function(e){var t=hM(this),n=Tn(e,arguments.length>1?arguments[1]:void 0);return!1!==CM(t,(function(e){if(!n(e,e,t))return!1}),!0)}});var jM=dM.Set,UM=dM.add;Vt({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=hM(this),n=Tn(e,arguments.length>1?arguments[1]:void 0),r=new jM;return CM(t,(function(e){n(e,e,t)&&UM(r,e)})),r}}),Vt({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=hM(this),n=Tn(e,arguments.length>1?arguments[1]:void 0),r=CM(t,(function(e){if(n(e,e,t))return{value:e}}),!0);return r&&r.value}}),Vt({target:"Set",stat:!0,forced:!0},{from:$A(dM.Set,dM.add,!1)});var zM=dM.Set,KM=dM.add,VM=dM.has,HM=function(e){var t=hM(this),n=NM(e),r=new zM;return $M(t)>n.size?dS(n.getIterator(),(function(e){VM(t,e)&&KM(r,e)})):CM(t,(function(e){n.includes(e)&&KM(r,e)})),r},WM=!BM("intersection")||d((function(){return"3,2"!==Array.from(new Set([1,2,3]).intersection(new Set([3,2])))}));Vt({target:"Set",proto:!0,real:!0,forced:WM},{intersection:HM}),Vt({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return g(HM,this,GM(e))}});var ZM=dM.has,qM=function(e){var t=hM(this),n=NM(e);if($M(t)<=n.size)return!1!==CM(t,(function(e){if(n.includes(e))return!1}),!0);var r=n.getIterator();return!1!==dS(r,(function(e){if(ZM(t,e))return Va(r,"normal",!1)}))};Vt({target:"Set",proto:!0,real:!0,forced:!BM("isDisjointFrom")},{isDisjointFrom:qM}),Vt({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return g(qM,this,GM(e))}});var YM=function(e){var t=hM(this),n=NM(e);return!($M(t)>n.size)&&!1!==CM(t,(function(e){if(!n.includes(e))return!1}),!0)};Vt({target:"Set",proto:!0,real:!0,forced:!BM("isSubsetOf")},{isSubsetOf:YM}),Vt({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return g(YM,this,GM(e))}});var JM=dM.has,QM=function(e){var t=hM(this),n=NM(e);if($M(t)<n.size)return!1;var r=n.getIterator();return!1!==dS(r,(function(e){if(!JM(t,e))return Va(r,"normal",!1)}))};Vt({target:"Set",proto:!0,real:!0,forced:!BM("isSupersetOf")},{isSupersetOf:QM}),Vt({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return g(QM,this,GM(e))}});var XM=k([].join),eT=k([].push);Vt({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=hM(this),n=void 0===e?",":en(e),r=[];return CM(t,(function(e){eT(r,e)})),XM(r,n)}});var tT=dM.Set,nT=dM.add;Vt({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=hM(this),n=Tn(e,arguments.length>1?arguments[1]:void 0),r=new tT;return CM(t,(function(e){nT(r,n(e,e,t))})),r}}),Vt({target:"Set",stat:!0,forced:!0},{of:IA(dM.Set,dM.add,!1)});var rT=TypeError;Vt({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=hM(this),n=arguments.length<2,r=n?void 0:arguments[1];if(ee(e),CM(t,(function(a){n?(n=!1,r=a):r=e(r,a,a,t)})),n)throw new rT("Reduce of empty set with no initial value");return r}}),Vt({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=hM(this),n=Tn(e,arguments.length>1?arguments[1]:void 0);return!0===CM(t,(function(e){if(n(e,e,t))return!0}),!0)}});var aT=dM.add,oT=dM.has,iT=dM.remove,sT=function(e){var t=hM(this),n=NM(e).getIterator(),r=kM(t);return dS(n,(function(e){oT(t,e)?iT(r,e):aT(r,e)})),r};Vt({target:"Set",proto:!0,real:!0,forced:!BM("symmetricDifference")},{symmetricDifference:sT}),Vt({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return g(sT,this,GM(e))}});var lT=dM.add,uT=function(e){var t=hM(this),n=NM(e).getIterator(),r=kM(t);return dS(n,(function(e){lT(r,e)})),r};Vt({target:"Set",proto:!0,real:!0,forced:!BM("union")},{union:uT}),Vt({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return g(uT,this,GM(e))}});var cT=Hm.charAt;Vt({target:"String",proto:!0,forced:!0},{at:function(e){var t=en(O(this)),n=t.length,r=vt(e),a=r>=0?r:n+r;return a<0||a>=n?void 0:cT(t,a)}});var dT=TypeError,fT=k([].push),hT=k([].join),pT=function(e){var t=R(e),n=Et(t);if(!n)return"";for(var r=arguments.length,a=[],o=0;;){var i=t[o++];if(void 0===i)throw new dT("Incorrect template");if(fT(a,en(i)),o===n)return hT(a,"");o<r&&fT(a,en(arguments[o]))}};Vt({target:"String",stat:!0,forced:!0},{cooked:pT});var gT=Hm.codeAt,mT=Hm.charAt,vT="String Iterator",yT=dt.set,bT=dt.getterFor(vT),wT=fi((function(e){yT(this,{type:vT,string:e,index:0})}),"String",(function(){var e,t=bT(this),n=t.string,r=t.index;return r>=n.length?Ei(void 0,!0):(e=mT(n,r),t.index+=e.length,Ei({codePoint:gT(e,0),position:r},!1))}));Vt({target:"String",proto:!0,forced:!0},{codePoints:function(){return new wT(en(O(this)))}});var CT=WeakMap.prototype,ST={WeakMap:WeakMap,set:k(CT.set),get:k(CT.get),has:k(CT.has),remove:k(CT.delete)},ET=String.fromCharCode,kT=D("String","fromCodePoint"),$T=k("".charAt),AT=k("".charCodeAt),xT=k("".indexOf),MT=k("".slice),TT=function(e,t){var n=AT(e,t);return n>=48&&n<=57},PT=function(e,t,n){if(n>=e.length)return-1;for(var r=0;t<n;t++){var a=NT(AT(e,t));if(-1===a)return-1;r=16*r+a}return r},NT=function(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-97+10:e>=65&&e<=70?e-65+10:-1},IT=function(e){for(var t,n="",r=0,a=0;(a=xT(e,"\\",a))>-1;){if(n+=MT(e,r,a),++a===e.length)return;var o=$T(e,a++);switch(o){case"b":n+="\b";break;case"t":n+="\t";break;case"n":n+="\n";break;case"v":n+="\v";break;case"f":n+="\f";break;case"r":n+="\r";break;case"\r":a<e.length&&"\n"===$T(e,a)&&++a;case"\n":case"\u2028":case"\u2029":break;case"0":if(TT(e,a))return;n+="\0";break;case"x":if(-1===(t=PT(e,a,a+2)))return;a+=2,n+=ET(t);break;case"u":if(a<e.length&&"{"===$T(e,a)){var i=xT(e,"}",++a);if(-1===i)return;t=PT(e,a,i),a=i+1}else t=PT(e,a,a+4),a+=4;if(-1===t||t>1114111)return;n+=kT(t);break;default:if(TT(o,0))return;n+=o}r=a}return n+MT(e,r)},OT=Ke.f,RT=new ST.WeakMap,FT=ST.get,BT=ST.has,LT=ST.set,DT=Array,_T=TypeError,GT=Object.freeze||Object,jT=Object.isFrozen,UT=Math.min,zT=k("".charAt),KT=k("".slice),VT=k("".split),HT=k(/./.exec),WT=/([\n\u2028\u2029]|\r\n?)/g,ZT=RegExp("^["+Id+"]*"),qT=RegExp("[^"+Id+"]"),YT="Invalid tag",JT=function(e){var t,n,r,a,o=de(e),i=Et(o),s=DT(i),l=DT(i),u=0;if(!i)throw new _T(YT);for(;u<i;u++){var c=o[u];if("string"!=typeof c)throw new _T(YT);s[u]=VT(c,WT)}for(u=0;u<i;u++){var d=u+1===i;if(t=s[u],0===u){if(1===t.length||t[0].length>0)throw new _T("Invalid opening line");t[1]=""}if(d){if(1===t.length||HT(qT,t[t.length-1]))throw new _T("Invalid closing line");t[t.length-2]="",t[t.length-1]=""}for(var f=2;f<t.length;f+=2){var h=t[f],p=f+1===t.length&&!d,g=HT(ZT,h)[0];p||g.length!==h.length?n=QT(g,n):t[f]=""}}var m=n?n.length:0;for(u=0;u<i;u++){for(r=(t=s[u])[0],a=1;a<t.length;a+=2)r+=t[a]+KT(t[a+1],m);l[u]=r}return l},QT=function(e,t){if(void 0===t||e===t)return e;for(var n=0,r=UT(e.length,t.length);n<r&&zT(e,n)===zT(t,n);n++);return KT(e,0,n)},XT=function(e){for(var t=0,n=e.length,r=DT(n);t<n;t++)r[t]=IT(e[t]);return r},eP=function(e){return ft((function(t){var n=pn(arguments);return n[0]=function(e){var t=e.raw;if(Tc&&!jT(t))throw new _T("Raw template should be frozen");if(BT(RT,t))return FT(RT,t);var n=JT(t),r=XT(n);return OT(r,"raw",{value:GT(n)}),GT(r),LT(RT,t,r),r}(Be(t)),Tr(e,this,n)}),"")},tP=eP(pT);Vt({target:"String",stat:!0,forced:!0},{dedent:function(e){return Be(e),B(e)?eP(e):Tr(tP,this,arguments)}});var nP=Ke.f,rP=Ie.f,aP=c.Symbol;if(Sn("asyncDispose"),aP){var oP=rP(aP,"asyncDispose");oP.enumerable&&oP.configurable&&oP.writable&&nP(aP,"asyncDispose",{value:oP.value,enumerable:!1,configurable:!1,writable:!1})}var iP=Ke.f,sP=Ie.f,lP=c.Symbol;if(Sn("dispose"),lP){var uP=sP(lP,"dispose");uP.enumerable&&uP.configurable&&uP.writable&&iP(lP,"dispose",{value:uP.value,enumerable:!1,configurable:!1,writable:!1})}var cP=D("Symbol"),dP=cP.keyFor,fP=k(cP.prototype.valueOf),hP=cP.isRegisteredSymbol||function(e){try{return void 0!==dP(fP(e))}catch(e){return!1}};Vt({target:"Symbol",stat:!0},{isRegisteredSymbol:hP}),Vt({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:hP});for(var pP=D("Symbol"),gP=pP.isWellKnownSymbol,mP=D("Object","getOwnPropertyNames"),vP=k(pP.prototype.valueOf),yP=ue("wks"),bP=0,wP=mP(pP),CP=wP.length;bP<CP;bP++)try{var SP=wP[bP];Y(pP[SP])&&Ce(SP)}catch(e){}var EP=function(e){if(gP&&gP(e))return!0;try{for(var t=vP(e),n=0,r=mP(yP),a=r.length;n<a;n++)if(yP[r[n]]==t)return!0}catch(e){}return!1};Vt({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:EP}),Vt({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:EP}),Sn("matcher"),Sn("metadata"),Sn("metadataKey"),Sn("observable"),Sn("patternMatch"),Sn("replaceAll");var kP=du.aTypedArrayConstructor;(0,du.exportTypedArrayStaticMethod)("fromAsync",(function(e){var t=this,n=arguments.length,r=n>1?arguments[1]:void 0,a=n>2?arguments[2]:void 0;return new(D("Promise"))((function(n){hu(t),n(JC(e,r,a))})).then((function(e){return Ts(kP(t),e)}))}),!0);var $P=Vn.filterReject,AP=du.aTypedArray;(0,du.exportTypedArrayMethod)("filterOut",(function(e){var t=$P(AP(this),e,arguments.length>1?arguments[1]:void 0);return gb(this,t)}),!0);var xP=Vn.filterReject,MP=du.aTypedArray;(0,du.exportTypedArrayMethod)("filterReject",(function(e){var t=xP(MP(this),e,arguments.length>1?arguments[1]:void 0);return gb(this,t)}),!0);var TP=du.aTypedArray;(0,du.exportTypedArrayMethod)("groupBy",(function(e){var t=arguments.length>1?arguments[1]:void 0;return nS(TP(this),e,t,pb)}),!0);var PP=du.aTypedArray,NP=du.getTypedArrayConstructor,IP=du.exportTypedArrayMethod,OP=Math.max,RP=Math.min;IP("toSpliced",(function(e,t){var n,r,a,o,i,s,l,u=PP(this),c=NP(u),d=Et(u),f=wt(e,d),h=arguments.length,p=0;if(0===h)n=r=0;else if(1===h)n=0,r=d-f;else if(r=RP(OP(vt(t),0),d-f),n=h-2){o=new c(n),a=Jy(o);for(var g=2;g<h;g++)i=arguments[g],o[g-2]=a?Xy(i):+i}for(l=new c(s=d+n-r);p<f;p++)l[p]=u[p];for(;p<f+n;p++)l[p]=o[p-f];for(;p<s;p++)l[p]=u[p+r-n];return l}),!!d((function(){var e=new Int8Array([1]),t=e.toSpliced(1,0,{valueOf:function(){return e[0]=2,3}});return 2!==t[0]||3!==t[1]})));var FP=du.aTypedArray,BP=du.getTypedArrayConstructor,LP=du.exportTypedArrayMethod,DP=k(SS);LP("uniqueBy",(function(e){return FP(this),Ts(BP(this),DP(this,e))}),!0);var _P=String,GP=TypeError,jP=function(e){if(void 0===e||L(e))return e;throw new GP(_P(e)+" is not an object or undefined")},UP=TypeError,zP=function(e){if("string"==typeof e)return e;throw new UP("Argument is not a string")},KP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",VP=KP+"+/",HP=KP+"-_",WP=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t},ZP={i2c:VP,c2i:WP(VP),i2cUrl:HP,c2iUrl:WP(HP)},qP=TypeError,YP=function(e){var t=e&&e.alphabet;if(void 0===t||"base64"===t||"base64url"===t)return t||"base64";throw new qP("Incorrect `alphabet` option")},JP=ZP.c2i,QP=ZP.c2iUrl,XP=c.Uint8Array,eN=c.SyntaxError,tN=k("".charAt),nN=k("".replace),rN=k("".slice),aN=k([].push),oN=/[\t\n\f\r ]/g,iN="Extra bits";XP&&Vt({target:"Uint8Array",stat:!0,forced:!0},{fromBase64:function(e){zP(e);var t=arguments.length>1?jP(arguments[1]):void 0,n="base64"===YP(t)?JP:QP,r=!!t&&!!t.strict,a=r?e:nN(e,oN,"");if(a.length%4==0)"=="===rN(a,-2)?a=rN(a,0,-2):"="===rN(a,-1)&&(a=rN(a,0,-1));else if(r)throw new eN("Input is not correctly padded");var o=a.length%4;switch(o){case 1:throw new eN("Bad input length");case 2:a+="AA";break;case 3:a+="A"}for(var i=[],s=0,l=a.length,u=function(e){var t=tN(a,s+e);if(!he(n,t))throw new eN('Bad char in input: "'+t+'"');return n[t]<<18-6*e};s<l;s+=4){var c=u(0)+u(1)+u(2)+u(3);aN(i,c>>16&255,c>>8&255,255&c)}var d=i.length;if(2===o){if(r&&0!==i[d-2])throw new eN(iN);d-=2}else if(3===o){if(r&&0!==i[d-1])throw new eN(iN);d--}return Ts(XP,i,d)}});var sN=c.Uint8Array,lN=c.SyntaxError,uN=c.parseInt,cN=/[^\da-f]/i,dN=k(cN.exec),fN=k("".slice);sN&&Vt({target:"Uint8Array",stat:!0,forced:!0},{fromHex:function(e){zP(e);var t=e.length;if(t%2)throw new lN("String should have an even number of characters");if(dN(cN,e))throw new lN("String should only contain hex characters");for(var n=new sN(t/2),r=0;r<t;r+=2)n[r/2]=uN(fN(e,r,r+2),16);return n}});var hN=TypeError,pN=function(e){if("Uint8Array"===Qt(e))return e;throw new hN("Argument is not an Uint8Array")},gN=ZP.i2c,mN=ZP.i2cUrl,vN=c.Uint8Array,yN=k("".charAt);vN&&Vt({target:"Uint8Array",proto:!0,forced:!0},{toBase64:function(){for(var e,t=pN(this),n=arguments.length?jP(arguments[0]):void 0,r="base64"===YP(n)?gN:mN,a="",o=0,i=t.length,s=function(t){return yN(r,e>>6*t&63)};o+2<i;o+=3)e=(t[o]<<16)+(t[o+1]<<8)+t[o+2],a+=s(3)+s(2)+s(1)+s(0);return o+2===i?(e=(t[o]<<16)+(t[o+1]<<8),a+=s(3)+s(2)+s(1)+"="):o+1===i&&(e=t[o]<<16,a+=s(3)+s(2)+"=="),a}});var bN=c.Uint8Array,wN=k(1..toString);bN&&Vt({target:"Uint8Array",proto:!0,forced:!0},{toHex:function(){pN(this);for(var e="",t=0,n=this.length;t<n;t++){var r=wN(this[t],16);e+=1===r.length?"0"+r:r}return e}});var CN=ST.has,SN=function(e){return CN(e),e},EN=ST.remove;Vt({target:"WeakMap",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=SN(this),n=!0,r=0,a=arguments.length;r<a;r++)e=EN(t,arguments[r]),n=n&&e;return!!n}}),Vt({target:"WeakMap",stat:!0,forced:!0},{from:$A(ST.WeakMap,ST.set,!0)}),Vt({target:"WeakMap",stat:!0,forced:!0},{of:IA(ST.WeakMap,ST.set,!0)});var kN=ST.get,$N=ST.has,AN=ST.set;Vt({target:"WeakMap",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var n,r,a=SN(this);return $N(a,e)?(n=kN(a,e),"update"in t&&(n=t.update(n,e,a),AN(a,e,n)),n):(r=t.insert(e,a),AN(a,e,r),r)}}),Vt({target:"WeakMap",proto:!0,real:!0,forced:!0},{upsert:_A});var xN=WeakSet.prototype,MN={WeakSet:WeakSet,add:k(xN.add),has:k(xN.has),remove:k(xN.delete)},TN=MN.has,PN=function(e){return TN(e),e},NN=MN.add;Vt({target:"WeakSet",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=PN(this),t=0,n=arguments.length;t<n;t++)NN(e,arguments[t]);return e}});var IN=MN.remove;Vt({target:"WeakSet",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=PN(this),n=!0,r=0,a=arguments.length;r<a;r++)e=IN(t,arguments[r]),n=n&&e;return!!n}}),Vt({target:"WeakSet",stat:!0,forced:!0},{from:$A(MN.WeakSet,MN.add,!1)}),Vt({target:"WeakSet",stat:!0,forced:!0},{of:IA(MN.WeakSet,MN.add,!1)});var ON=ZP.c2i,RN=/[^\d+/a-z]/i,FN=/[\t\n\f\r ]+/g,BN=/[=]{1,2}$/,LN=D("atob"),DN=String.fromCharCode,_N=k("".charAt),GN=k("".replace),jN=k(RN.exec),UN=!!LN&&!d((function(){return"hi"!==LN("aGk=")})),zN=UN&&d((function(){return""!==LN(" ")})),KN=UN&&!d((function(){LN("a")})),VN=UN&&!d((function(){LN()})),HN=UN&&1!==LN.length;Vt({global:!0,bind:!0,enumerable:!0,forced:!UN||zN||KN||VN||HN},{atob:function(e){if(Bh(arguments.length,1),UN&&!zN&&!KN)return g(LN,c,e);var t,n,r,a=GN(en(e),FN,""),o="",i=0,s=0;if(a.length%4==0&&(a=GN(a,BN,"")),(t=a.length)%4==1||jN(RN,a))throw new(D("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;i<t;)n=_N(a,i++),r=s%4?64*r+ON[n]:ON[n],s++%4&&(o+=DN(255&r>>(-2*s&6)));return o}});var WN=ZP.i2c,ZN=D("btoa"),qN=k("".charAt),YN=k("".charCodeAt),JN=!!ZN&&!d((function(){return"aGk="!==ZN("hi")})),QN=JN&&!d((function(){ZN()})),XN=JN&&d((function(){return"bnVsbA=="!==ZN(null)})),eI=JN&&1!==ZN.length;Vt({global:!0,bind:!0,enumerable:!0,forced:!JN||QN||XN||eI},{btoa:function(e){if(Bh(arguments.length,1),JN)return g(ZN,c,en(e));for(var t,n,r=en(e),a="",o=0,i=WN;qN(r,o)||(i="=",o%1);){if((n=YN(r,o+=3/4))>255)throw new(D("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");a+=qN(i,63&(t=t<<8|n)>>8-o%1*8)}return a}});var tI={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},nI=Me("span").classList,rI=nI&&nI.constructor&&nI.constructor.prototype,aI=rI===Object.prototype?void 0:rI,oI=function(e){if(e&&e.forEach!==jo)try{Ve(e,"forEach",jo)}catch(t){e.forEach=jo}};for(var iI in tI)tI[iI]&&oI(c[iI]&&c[iI].prototype);oI(aI);var sI=Ce("iterator"),lI=Mi.values,uI=function(e,t){if(e){if(e[sI]!==lI)try{Ve(e,sI,lI)}catch(t){e[sI]=lI}if(An(e,t,!0),tI[t])for(var n in Mi)if(e[n]!==Mi[n])try{Ve(e,n,Mi[n])}catch(t){e[n]=Mi[n]}}};for(var cI in tI)uI(c[cI]&&c[cI].prototype,cI);uI(aI,"DOMTokenList");var dI={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}},fI=Ke.f,hI="DOMException",pI="DATA_CLONE_ERR",gI=D("Error"),mI=D(hI)||function(){try{(new(D("MessageChannel")||IS("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if(e.name===pI&&25===e.code)return e.constructor}}(),vI=mI&&mI.prototype,yI=gI.prototype,bI=dt.set,wI=dt.getterFor(hI),CI="stack"in new gI(hI),SI=function(e){return he(dI,e)&&dI[e].m?dI[e].c:0},EI=function(){zs(this,kI);var e=arguments.length,t=fa(e<1?void 0:arguments[0]),n=fa(e<2?void 0:arguments[1],"Error"),r=SI(n);if(bI(this,{type:hI,name:n,message:t,code:r}),f||(this.name=n,this.message=t,this.code=r),CI){var a=new gI(t);a.name=hI,fI(this,"stack",w(1,ba(a.stack,1)))}},kI=EI.prototype=hn(yI),$I=function(e){return{enumerable:!0,configurable:!0,get:e}},AI=function(e){return $I((function(){return wI(this)[e]}))};f&&(yn(kI,"code",AI("code")),yn(kI,"message",AI("message")),yn(kI,"name",AI("name"))),fI(kI,"constructor",w(1,EI));var xI=d((function(){return!(new mI instanceof gI)})),MI=xI||d((function(){return yI.toString!==Pa||"2: 1"!==String(new mI(1,2))})),TI=xI||d((function(){return 25!==new mI(1,"DataCloneError").code}));xI||25!==mI[pI]||vI[pI];Vt({global:!0,constructor:!0,forced:xI},{DOMException:xI?EI:mI});var PI=D(hI),NI=PI.prototype;for(var II in MI&&mI===PI&&ht(NI,"toString",Pa),TI&&f&&mI===PI&&yn(NI,"code",$I((function(){return SI(Be(this).name)}))),dI)if(he(dI,II)){var OI=dI[II],RI=OI.s,FI=w(6,OI.c);he(PI,RI)||fI(PI,RI,FI),he(NI,RI)||fI(NI,RI,FI)}var BI=Ke.f,LI="DOMException",DI=D("Error"),_I=D(LI),GI=function(){zs(this,jI);var e=arguments.length,t=fa(e<1?void 0:arguments[0]),n=fa(e<2?void 0:arguments[1],"Error"),r=new _I(t,n),a=new DI(t);return a.name=LI,BI(r,"stack",w(1,ba(a.stack,1))),da(r,this,GI),r},jI=GI.prototype=_I.prototype,UI="stack"in new DI(LI),zI="stack"in new _I(1,2),KI=_I&&f&&Object.getOwnPropertyDescriptor(c,LI),VI=!(!KI||KI.writable&&KI.configurable),HI=UI&&!VI&&!zI;Vt({global:!0,constructor:!0,forced:HI},{DOMException:HI?GI:_I});var WI=D(LI),ZI=WI.prototype;if(ZI.constructor!==WI)for(var qI in BI(ZI,"constructor",w(1,WI)),dI)if(he(dI,qI)){var YI=dI[qI],JI=YI.s;he(WI,JI)||BI(WI,JI,w(6,YI.c))}var QI="DOMException";An(D(QI),QI);var XI=Qh.clear;Vt({global:!0,bind:!0,enumerable:!0,forced:c.clearImmediate!==XI},{clearImmediate:XI});var eO="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,tO=c.Function,nO=/MSIE .\./.test(G)||eO&&function(){var e=c.Bun.version.split(".");return e.length<3||"0"===e[0]&&(e[1]<3||"3"===e[1]&&"0"===e[2])}(),rO=function(e,t){var n=t?2:1;return nO?function(r,a){var o=Bh(arguments.length,1)>n,i=B(r)?r:tO(r),s=o?pn(arguments,n):[],l=o?function(){Tr(i,this,s)}:i;return t?e(l,a):e(l)}:e},aO=Qh.set,oO=c.setImmediate?rO(aO,!1):aO;Vt({global:!0,bind:!0,enumerable:!0,forced:c.setImmediate!==oO},{setImmediate:oO}),Vt({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(e){Bh(arguments.length,1),yp(ee(e))}});var iO=TypeError,sO=Object.defineProperty,lO=c.self!==c;try{if(f){var uO=Object.getOwnPropertyDescriptor(c,"self");!lO&&uO&&uO.get&&uO.enumerable||yn(c,"self",{get:function(){return c},set:function(e){if(this!==c)throw new iO("Illegal invocation");sO(c,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else Vt({global:!0,simple:!0,forced:lO},{self:c})}catch(e){}var cO,dO=c.Object,fO=c.Array,hO=c.Date,pO=c.Error,gO=c.TypeError,mO=c.PerformanceMark,vO=D("DOMException"),yO=Lc.Map,bO=Lc.has,wO=Lc.get,CO=Lc.set,SO=dM.Set,EO=dM.add,kO=dM.has,$O=D("Object","keys"),AO=k([].push),xO=k((!0).valueOf),MO=k(1..valueOf),TO=k("".valueOf),PO=k(hO.prototype.getTime),NO=ve("structuredClone"),IO="DataCloneError",OO="Transferring",RO=function(e){return!d((function(){var t=new c.Set([7]),n=e(t),r=e(dO(7));return n===t||!n.has(7)||!L(r)||7!=+r}))&&e},FO=function(e,t){return!d((function(){var n=new t,r=e({a:n,b:n});return!(r&&r.a===r.b&&r.a instanceof t&&r.a.stack===n.stack)}))},BO=c.structuredClone,LO=!FO(BO,pO)||!FO(BO,vO)||(cO=BO,!!d((function(){var e=cO(new c.AggregateError([1],NO,{cause:3}));return"AggregateError"!==e.name||1!==e.errors[0]||e.message!==NO||3!==e.cause}))),DO=!BO&&RO((function(e){return new mO(NO,{detail:e}).detail})),_O=RO(BO)||DO,GO=function(e){throw new vO("Uncloneable type: "+e,IO)},jO=function(e,t){throw new vO((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",IO)},UO=function(e,t){return _O||jO(t),_O(e)},zO=function(e,t,n){if(bO(t,e))return wO(t,e);var r,a,o,i,s,l;if("SharedArrayBuffer"===(n||Qt(e)))r=_O?_O(e):e;else{var u=c.DataView;u||B(e.slice)||jO("ArrayBuffer");try{if(B(e.slice)&&!e.resizable)r=e.slice(0);else{a=e.byteLength,o="maxByteLength"in e?{maxByteLength:e.maxByteLength}:void 0,r=new ArrayBuffer(a,o),i=new u(e),s=new u(r);for(l=0;l<a;l++)s.setUint8(l,i.getUint8(l))}}catch(e){throw new vO("ArrayBuffer is detached",IO)}}return CO(t,e,r),r},KO=function(e,t){if(Y(e)&&GO("Symbol"),!L(e))return e;if(t){if(bO(t,e))return wO(t,e)}else t=new yO;var n,r,a,o,i,s,l,u,d=Qt(e);switch(d){case"Array":a=fO(Et(e));break;case"Object":a={};break;case"Map":a=new yO;break;case"Set":a=new SO;break;case"RegExp":a=new RegExp(e.source,Og(e));break;case"Error":switch(r=e.name){case"AggregateError":a=new(D(r))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":a=new(D(r));break;case"CompileError":case"LinkError":case"RuntimeError":a=new(D("WebAssembly",r));break;default:a=new pO}break;case"DOMException":a=new vO(e.message,e.name);break;case"ArrayBuffer":case"SharedArrayBuffer":a=zO(e,t,d);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":s="DataView"===d?e.byteLength:e.length,a=function(e,t,n,r,a){var o=c[t];return L(o)||jO(t),new o(zO(e.buffer,a),n,r)}(e,d,e.byteOffset,s,t);break;case"DOMQuad":try{a=new DOMQuad(KO(e.p1,t),KO(e.p2,t),KO(e.p3,t),KO(e.p4,t))}catch(t){a=UO(e,d)}break;case"File":if(_O)try{a=_O(e),Qt(a)!==d&&(a=void 0)}catch(e){}if(!a)try{a=new File([e],e.name,e)}catch(e){}a||jO(d);break;case"FileList":if(o=function(){var e;try{e=new c.DataTransfer}catch(t){try{e=new c.ClipboardEvent("").clipboardData}catch(e){}}return e&&e.items&&e.files?e:null}()){for(i=0,s=Et(e);i<s;i++)o.items.add(KO(e[i],t));a=o.files}else a=UO(e,d);break;case"ImageData":try{a=new ImageData(KO(e.data,t),e.width,e.height,{colorSpace:e.colorSpace})}catch(t){a=UO(e,d)}break;default:if(_O)a=_O(e);else switch(d){case"BigInt":a=dO(e.valueOf());break;case"Boolean":a=dO(xO(e));break;case"Number":a=dO(MO(e));break;case"String":a=dO(TO(e));break;case"Date":a=new hO(PO(e));break;case"Blob":try{a=e.slice(0,e.size,e.type)}catch(e){jO(d)}break;case"DOMPoint":case"DOMPointReadOnly":n=c[d];try{a=n.fromPoint?n.fromPoint(e):new n(e.x,e.y,e.z,e.w)}catch(e){jO(d)}break;case"DOMRect":case"DOMRectReadOnly":n=c[d];try{a=n.fromRect?n.fromRect(e):new n(e.x,e.y,e.width,e.height)}catch(e){jO(d)}break;case"DOMMatrix":case"DOMMatrixReadOnly":n=c[d];try{a=n.fromMatrix?n.fromMatrix(e):new n(e)}catch(e){jO(d)}break;case"AudioData":case"VideoFrame":B(e.clone)||jO(d);try{a=e.clone()}catch(e){GO(d)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":jO(d);default:GO(d)}}switch(CO(t,e,a),d){case"Array":case"Object":for(l=$O(e),i=0,s=Et(l);i<s;i++)u=l[i],co(a,u,KO(e[u],t));break;case"Map":e.forEach((function(e,n){CO(a,KO(n,t),KO(e,t))}));break;case"Set":e.forEach((function(e){EO(a,KO(e,t))}));break;case"Error":Ve(a,"message",KO(e.message,t)),he(e,"cause")&&Ve(a,"cause",KO(e.cause,t)),"AggregateError"===r?a.errors=KO(e.errors,t):"SuppressedError"===r&&(a.error=KO(e.error,t),a.suppressed=KO(e.suppressed,t));case"DOMException":wa&&Ve(a,"stack",KO(e.stack,t))}return a};Vt({global:!0,enumerable:!0,sham:!RS,forced:LO},{structuredClone:function(e){var t,n,r=Bh(arguments.length,1)>1&&!N(arguments[1])?Be(arguments[1]):void 0,a=r?r.transfer:void 0;void 0!==a&&(n=function(e,t){if(!L(e))throw new gO("Transfer option cannot be converted to a sequence");var n=[];qa(e,(function(e){AO(n,Be(e))}));for(var r,a,o,i,s,l=0,u=Et(n),d=new SO;l<u;){if(r=n[l++],"ArrayBuffer"===(a=Qt(r))?kO(d,r):bO(t,r))throw new vO("Duplicate transferable",IO);if("ArrayBuffer"!==a){if(RS)i=BO(r,{transfer:[r]});else switch(a){case"ImageBitmap":o=c.OffscreenCanvas,_n(o)||jO(a,OO);try{(s=new o(r.width,r.height)).getContext("bitmaprenderer").transferFromImageBitmap(r),i=s.transferToImageBitmap()}catch(e){}break;case"AudioData":case"VideoFrame":B(r.clone)&&B(r.close)||jO(a,OO);try{i=r.clone(),r.close()}catch(e){}break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":jO(a,OO)}if(void 0===i)throw new vO("This object cannot be transferred: "+a,IO);CO(t,r,i)}else EO(d,r)}return d}(a,t=new yO));var o=KO(e,t);return n&&function(e){CM(e,(function(e){RS?_O(e,{transfer:[e]}):B(e.transfer)?e.transfer():_S?_S(e):jO("ArrayBuffer",OO)}))}(n),o}});var VO=rO(c.setInterval,!0);Vt({global:!0,bind:!0,forced:c.setInterval!==VO},{setInterval:VO});var HO=rO(c.setTimeout,!0);Vt({global:!0,bind:!0,forced:c.setTimeout!==HO},{setTimeout:HO});var WO=Ce("iterator"),ZO=!d((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),n.delete("a",2),n.delete("b",void 0),!t.size&&!f||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[WO]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),qO=2147483647,YO=/[^\0-\u007E]/,JO=/[.\u3002\uFF0E\uFF61]/g,QO="Overflow: input needs wider integers to process",XO=RangeError,eR=k(JO.exec),tR=Math.floor,nR=String.fromCharCode,rR=k("".charCodeAt),aR=k([].join),oR=k([].push),iR=k("".replace),sR=k("".split),lR=k("".toLowerCase),uR=function(e){return e+22+75*(e<26)},cR=function(e,t,n){var r=0;for(e=n?tR(e/700):e>>1,e+=tR(e/t);e>455;)e=tR(e/35),r+=36;return tR(r+36*e/(e+38))},dR=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var a=rR(e,n++);if(a>=55296&&a<=56319&&n<r){var o=rR(e,n++);56320==(64512&o)?oR(t,((1023&a)<<10)+(1023&o)+65536):(oR(t,a),n--)}else oR(t,a)}return t}(e);var n,r,a=e.length,o=128,i=0,s=72;for(n=0;n<e.length;n++)(r=e[n])<128&&oR(t,nR(r));var l=t.length,u=l;for(l&&oR(t,"-");u<a;){var c=qO;for(n=0;n<e.length;n++)(r=e[n])>=o&&r<c&&(c=r);var d=u+1;if(c-o>tR((qO-i)/d))throw new XO(QO);for(i+=(c-o)*d,o=c,n=0;n<e.length;n++){if((r=e[n])<o&&++i>qO)throw new XO(QO);if(r===o){for(var f=i,h=36;;){var p=h<=s?1:h>=s+26?26:h-s;if(f<p)break;var g=f-p,m=36-p;oR(t,nR(uR(p+g%m))),f=tR(g/m),h+=36}oR(t,nR(uR(f))),s=cR(i,d,u===l),i=0,u++}}i++,o++}return aR(t,"")},fR=Ce("iterator"),hR="URLSearchParams",pR=hR+"Iterator",gR=dt.set,mR=dt.getterFor(hR),vR=dt.getterFor(pR),yR=ep("fetch"),bR=ep("Request"),wR=ep("Headers"),CR=bR&&bR.prototype,SR=wR&&wR.prototype,ER=c.RegExp,kR=c.TypeError,$R=c.decodeURIComponent,AR=c.encodeURIComponent,xR=k("".charAt),MR=k([].join),TR=k([].push),PR=k("".replace),NR=k([].shift),IR=k([].splice),OR=k("".split),RR=k("".slice),FR=/\+/g,BR=Array(4),LR=function(e){return BR[e-1]||(BR[e-1]=ER("((?:%[\\da-f]{2}){"+e+"})","gi"))},DR=function(e){try{return $R(e)}catch(t){return e}},_R=function(e){var t=PR(e,FR," "),n=4;try{return $R(t)}catch(e){for(;n;)t=PR(t,LR(n--),DR);return t}},GR=/[!'()~]|%20/g,jR={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},UR=function(e){return jR[e]},zR=function(e){return PR(AR(e),GR,UR)},KR=fi((function(e,t){gR(this,{type:pR,target:mR(e).entries,index:0,kind:t})}),hR,(function(){var e=vR(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,Ei(void 0,!0);var r=t[n];switch(e.kind){case"keys":return Ei(r.key,!1);case"values":return Ei(r.value,!1)}return Ei([r.key,r.value],!1)}),!0),VR=function(e){this.entries=[],this.url=null,void 0!==e&&(L(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===xR(e,0)?RR(e,1):e:en(e)))};VR.prototype={type:hR,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,a,o,i,s,l=this.entries,u=Ua(e);if(u)for(n=(t=Ka(e,u)).next;!(r=g(n,t)).done;){if(o=(a=Ka(Be(r.value))).next,(i=g(o,a)).done||(s=g(o,a)).done||!g(o,a).done)throw new kR("Expected sequence with length 2");TR(l,{key:en(i.value),value:en(s.value)})}else for(var c in e)he(e,c)&&TR(l,{key:c,value:en(e[c])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,a=OR(e,"&"),o=0;o<a.length;)(t=a[o++]).length&&(n=OR(t,"="),TR(r,{key:_R(NR(n)),value:_R(MR(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],TR(n,zR(e.key)+"="+zR(e.value));return MR(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var HR=function(){zs(this,WR);var e=gR(this,new VR(arguments.length>0?arguments[0]:void 0));f||(this.size=e.entries.length)},WR=HR.prototype;if(js(WR,{append:function(e,t){var n=mR(this);Bh(arguments.length,2),TR(n.entries,{key:en(e),value:en(t)}),f||this.length++,n.updateURL()},delete:function(e){for(var t=mR(this),n=Bh(arguments.length,1),r=t.entries,a=en(e),o=n<2?void 0:arguments[1],i=void 0===o?o:en(o),s=0;s<r.length;){var l=r[s];if(l.key!==a||void 0!==i&&l.value!==i)s++;else if(IR(r,s,1),void 0!==i)break}f||(this.size=r.length),t.updateURL()},get:function(e){var t=mR(this).entries;Bh(arguments.length,1);for(var n=en(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=mR(this).entries;Bh(arguments.length,1);for(var n=en(e),r=[],a=0;a<t.length;a++)t[a].key===n&&TR(r,t[a].value);return r},has:function(e){for(var t=mR(this).entries,n=Bh(arguments.length,1),r=en(e),a=n<2?void 0:arguments[1],o=void 0===a?a:en(a),i=0;i<t.length;){var s=t[i++];if(s.key===r&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var n=mR(this);Bh(arguments.length,1);for(var r,a=n.entries,o=!1,i=en(e),s=en(t),l=0;l<a.length;l++)(r=a[l]).key===i&&(o?IR(a,l--,1):(o=!0,r.value=s));o||TR(a,{key:i,value:s}),f||(this.size=a.length),n.updateURL()},sort:function(){var e=mR(this);us(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=mR(this).entries,r=Tn(e,arguments.length>1?arguments[1]:void 0),a=0;a<n.length;)r((t=n[a++]).value,t.key,this)},keys:function(){return new KR(this,"keys")},values:function(){return new KR(this,"values")},entries:function(){return new KR(this,"entries")}},{enumerable:!0}),ht(WR,fR,WR.entries,{name:"entries"}),ht(WR,"toString",(function(){return mR(this).serialize()}),{enumerable:!0}),f&&yn(WR,"size",{get:function(){return mR(this).entries.length},configurable:!0,enumerable:!0}),An(HR,hR),Vt({global:!0,constructor:!0,forced:!ZO},{URLSearchParams:HR}),!ZO&&B(wR)){var ZR=k(SR.has),qR=k(SR.set),YR=function(e){if(L(e)){var t,n=e.body;if(Qt(n)===hR)return t=e.headers?new wR(e.headers):new wR,ZR(t,"content-type")||qR(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),hn(e,{body:w(0,en(n)),headers:w(0,t)})}return e};if(B(yR)&&Vt({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return yR(e,arguments.length>1?YR(arguments[1]):{})}}),B(bR)){var JR=function(e){return zs(this,CR),new bR(e,arguments.length>1?YR(arguments[1]):{})};CR.constructor=JR,JR.prototype=CR,Vt({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:JR})}}var QR,XR={URLSearchParams:HR,getState:mR},eF=Hm.codeAt,tF=dt.set,nF=dt.getterFor("URL"),rF=XR.URLSearchParams,aF=XR.getState,oF=c.URL,iF=c.TypeError,sF=c.parseInt,lF=Math.floor,uF=Math.pow,cF=k("".charAt),dF=k(/./.exec),fF=k([].join),hF=k(1..toString),pF=k([].pop),gF=k([].push),mF=k("".replace),vF=k([].shift),yF=k("".split),bF=k("".slice),wF=k("".toLowerCase),CF=k([].unshift),SF="Invalid scheme",EF="Invalid host",kF="Invalid port",$F=/[a-z]/i,AF=/[\d+-.a-z]/i,xF=/\d/,MF=/^0x/i,TF=/^[0-7]+$/,PF=/^\d+$/,NF=/^[\da-f]+$/i,IF=/[\0\t\n\r #%/:<>?@[\\\]^|]/,OF=/[\0\t\n\r #/:<>?@[\\\]^|]/,RF=/^[\u0000-\u0020]+/,FF=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,BF=/[\t\n\r]/g,LF=function(e){var t,n,r,a;if("number"==typeof e){for(t=[],n=0;n<4;n++)CF(t,e%256),e=lF(e/256);return fF(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,a=0,o=0;o<8;o++)0!==e[o]?(a>n&&(t=r,n=a),r=null,a=0):(null===r&&(r=o),++a);return a>n&&(t=r,n=a),t}(e),n=0;n<8;n++)a&&0===e[n]||(a&&(a=!1),r===n?(t+=n?":":"::",a=!0):(t+=hF(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},DF={},_F=Kf({},DF,{" ":1,'"':1,"<":1,">":1,"`":1}),GF=Kf({},_F,{"#":1,"?":1,"{":1,"}":1}),jF=Kf({},GF,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),UF=function(e,t){var n=eF(e,0);return n>32&&n<127&&!he(t,e)?e:encodeURIComponent(e)},zF={ftp:21,file:null,http:80,https:443,ws:80,wss:443},KF=function(e,t){var n;return 2===e.length&&dF($F,cF(e,0))&&(":"===(n=cF(e,1))||!t&&"|"===n)},VF=function(e){var t;return e.length>1&&KF(bF(e,0,2))&&(2===e.length||"/"===(t=cF(e,2))||"\\"===t||"?"===t||"#"===t)},HF=function(e){return"."===e||"%2e"===wF(e)},WF={},ZF={},qF={},YF={},JF={},QF={},XF={},eB={},tB={},nB={},rB={},aB={},oB={},iB={},sB={},lB={},uB={},cB={},dB={},fB={},hB={},pB=function(e,t,n){var r,a,o,i=en(e);if(t){if(a=this.parse(i))throw new iF(a);this.searchParams=null}else{if(void 0!==n&&(r=new pB(n,!0)),a=this.parse(i,null,r))throw new iF(a);(o=aF(new rF)).bindURL(this),this.searchParams=o}};pB.prototype={type:"URL",parse:function(e,t,n){var r,a,o,i,s,l=this,u=t||WF,c=0,d="",f=!1,h=!1,p=!1;for(e=en(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=mF(e,RF,""),e=mF(e,FF,"$1")),e=mF(e,BF,""),r=Ko(e);c<=r.length;){switch(a=r[c],u){case WF:if(!a||!dF($F,a)){if(t)return SF;u=qF;continue}d+=wF(a),u=ZF;break;case ZF:if(a&&(dF(AF,a)||"+"===a||"-"===a||"."===a))d+=wF(a);else{if(":"!==a){if(t)return SF;d="",u=qF,c=0;continue}if(t&&(l.isSpecial()!==he(zF,d)||"file"===d&&(l.includesCredentials()||null!==l.port)||"file"===l.scheme&&!l.host))return;if(l.scheme=d,t)return void(l.isSpecial()&&zF[l.scheme]===l.port&&(l.port=null));d="","file"===l.scheme?u=iB:l.isSpecial()&&n&&n.scheme===l.scheme?u=YF:l.isSpecial()?u=eB:"/"===r[c+1]?(u=JF,c++):(l.cannotBeABaseURL=!0,gF(l.path,""),u=dB)}break;case qF:if(!n||n.cannotBeABaseURL&&"#"!==a)return SF;if(n.cannotBeABaseURL&&"#"===a){l.scheme=n.scheme,l.path=pn(n.path),l.query=n.query,l.fragment="",l.cannotBeABaseURL=!0,u=hB;break}u="file"===n.scheme?iB:QF;continue;case YF:if("/"!==a||"/"!==r[c+1]){u=QF;continue}u=tB,c++;break;case JF:if("/"===a){u=nB;break}u=cB;continue;case QF:if(l.scheme=n.scheme,a===QR)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=pn(n.path),l.query=n.query;else if("/"===a||"\\"===a&&l.isSpecial())u=XF;else if("?"===a)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=pn(n.path),l.query="",u=fB;else{if("#"!==a){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=pn(n.path),l.path.length--,u=cB;continue}l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=pn(n.path),l.query=n.query,l.fragment="",u=hB}break;case XF:if(!l.isSpecial()||"/"!==a&&"\\"!==a){if("/"!==a){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,u=cB;continue}u=nB}else u=tB;break;case eB:if(u=tB,"/"!==a||"/"!==cF(d,c+1))continue;c++;break;case tB:if("/"!==a&&"\\"!==a){u=nB;continue}break;case nB:if("@"===a){f&&(d="%40"+d),f=!0,o=Ko(d);for(var g=0;g<o.length;g++){var m=o[g];if(":"!==m||p){var v=UF(m,jF);p?l.password+=v:l.username+=v}else p=!0}d=""}else if(a===QR||"/"===a||"?"===a||"#"===a||"\\"===a&&l.isSpecial()){if(f&&""===d)return"Invalid authority";c-=Ko(d).length+1,d="",u=rB}else d+=a;break;case rB:case aB:if(t&&"file"===l.scheme){u=lB;continue}if(":"!==a||h){if(a===QR||"/"===a||"?"===a||"#"===a||"\\"===a&&l.isSpecial()){if(l.isSpecial()&&""===d)return EF;if(t&&""===d&&(l.includesCredentials()||null!==l.port))return;if(i=l.parseHost(d))return i;if(d="",u=uB,t)return;continue}"["===a?h=!0:"]"===a&&(h=!1),d+=a}else{if(""===d)return EF;if(i=l.parseHost(d))return i;if(d="",u=oB,t===aB)return}break;case oB:if(!dF(xF,a)){if(a===QR||"/"===a||"?"===a||"#"===a||"\\"===a&&l.isSpecial()||t){if(""!==d){var y=sF(d,10);if(y>65535)return kF;l.port=l.isSpecial()&&y===zF[l.scheme]?null:y,d=""}if(t)return;u=uB;continue}return kF}d+=a;break;case iB:if(l.scheme="file","/"===a||"\\"===a)u=sB;else{if(!n||"file"!==n.scheme){u=cB;continue}switch(a){case QR:l.host=n.host,l.path=pn(n.path),l.query=n.query;break;case"?":l.host=n.host,l.path=pn(n.path),l.query="",u=fB;break;case"#":l.host=n.host,l.path=pn(n.path),l.query=n.query,l.fragment="",u=hB;break;default:VF(fF(pn(r,c),""))||(l.host=n.host,l.path=pn(n.path),l.shortenPath()),u=cB;continue}}break;case sB:if("/"===a||"\\"===a){u=lB;break}n&&"file"===n.scheme&&!VF(fF(pn(r,c),""))&&(KF(n.path[0],!0)?gF(l.path,n.path[0]):l.host=n.host),u=cB;continue;case lB:if(a===QR||"/"===a||"\\"===a||"?"===a||"#"===a){if(!t&&KF(d))u=cB;else if(""===d){if(l.host="",t)return;u=uB}else{if(i=l.parseHost(d))return i;if("localhost"===l.host&&(l.host=""),t)return;d="",u=uB}continue}d+=a;break;case uB:if(l.isSpecial()){if(u=cB,"/"!==a&&"\\"!==a)continue}else if(t||"?"!==a)if(t||"#"!==a){if(a!==QR&&(u=cB,"/"!==a))continue}else l.fragment="",u=hB;else l.query="",u=fB;break;case cB:if(a===QR||"/"===a||"\\"===a&&l.isSpecial()||!t&&("?"===a||"#"===a)){if(".."===(s=wF(s=d))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(l.shortenPath(),"/"===a||"\\"===a&&l.isSpecial()||gF(l.path,"")):HF(d)?"/"===a||"\\"===a&&l.isSpecial()||gF(l.path,""):("file"===l.scheme&&!l.path.length&&KF(d)&&(l.host&&(l.host=""),d=cF(d,0)+":"),gF(l.path,d)),d="","file"===l.scheme&&(a===QR||"?"===a||"#"===a))for(;l.path.length>1&&""===l.path[0];)vF(l.path);"?"===a?(l.query="",u=fB):"#"===a&&(l.fragment="",u=hB)}else d+=UF(a,GF);break;case dB:"?"===a?(l.query="",u=fB):"#"===a?(l.fragment="",u=hB):a!==QR&&(l.path[0]+=UF(a,DF));break;case fB:t||"#"!==a?a!==QR&&("'"===a&&l.isSpecial()?l.query+="%27":l.query+="#"===a?"%23":UF(a,DF)):(l.fragment="",u=hB);break;case hB:a!==QR&&(l.fragment+=UF(a,_F))}c++}},parseHost:function(e){var t,n,r;if("["===cF(e,0)){if("]"!==cF(e,e.length-1))return EF;if(t=function(e){var t,n,r,a,o,i,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,d=0,f=function(){return cF(e,d)};if(":"===f()){if(":"!==cF(e,1))return;d+=2,c=++u}for(;f();){if(8===u)return;if(":"!==f()){for(t=n=0;n<4&&dF(NF,f());)t=16*t+sF(f(),16),d++,n++;if("."===f()){if(0===n)return;if(d-=n,u>6)return;for(r=0;f();){if(a=null,r>0){if(!("."===f()&&r<4))return;d++}if(!dF(xF,f()))return;for(;dF(xF,f());){if(o=sF(f(),10),null===a)a=o;else{if(0===a)return;a=10*a+o}if(a>255)return;d++}l[u]=256*l[u]+a,2!=++r&&4!==r||u++}if(4!==r)return;break}if(":"===f()){if(d++,!f())return}else if(f())return;l[u++]=t}else{if(null!==c)return;d++,c=++u}}if(null!==c)for(i=u-c,u=7;0!==u&&i>0;)s=l[u],l[u--]=l[c+i-1],l[c+--i]=s;else if(8!==u)return;return l}(bF(e,1,-1)),!t)return EF;this.host=t}else if(this.isSpecial()){if(e=function(e){var t,n,r=[],a=sR(iR(lR(e),JO,"."),".");for(t=0;t<a.length;t++)n=a[t],oR(r,eR(YO,n)?"xn--"+dR(n):n);return aR(r,".")}(e),dF(IF,e))return EF;if(t=function(e){var t,n,r,a,o,i,s,l=yF(e,".");if(l.length&&""===l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(n=[],r=0;r<t;r++){if(""===(a=l[r]))return e;if(o=10,a.length>1&&"0"===cF(a,0)&&(o=dF(MF,a)?16:8,a=bF(a,8===o?1:2)),""===a)i=0;else{if(!dF(10===o?PF:8===o?TF:NF,a))return e;i=sF(a,o)}gF(n,i)}for(r=0;r<t;r++)if(i=n[r],r===t-1){if(i>=uF(256,5-t))return null}else if(i>255)return null;for(s=pF(n),r=0;r<n.length;r++)s+=n[r]*uF(256,3-r);return s}(e),null===t)return EF;this.host=t}else{if(dF(OF,e))return EF;for(t="",n=Ko(e),r=0;r<n.length;r++)t+=UF(n[r],DF);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return he(zF,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&KF(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,a=e.host,o=e.port,i=e.path,s=e.query,l=e.fragment,u=t+":";return null!==a?(u+="//",e.includesCredentials()&&(u+=n+(r?":"+r:"")+"@"),u+=LF(a),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?i[0]:i.length?"/"+fF(i,"/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},setHref:function(e){var t=this.parse(e);if(t)throw new iF(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new gB(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+LF(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(en(e)+":",WF)},getUsername:function(){return this.username},setUsername:function(e){var t=Ko(en(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=UF(t[n],jF)}},getPassword:function(){return this.password},setPassword:function(e){var t=Ko(en(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=UF(t[n],jF)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?LF(e):LF(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,rB)},getHostname:function(){var e=this.host;return null===e?"":LF(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,aB)},getPort:function(){var e=this.port;return null===e?"":en(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=en(e))?this.port=null:this.parse(e,oB))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+fF(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,uB))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=en(e))?this.query=null:("?"===cF(e,0)&&(e=bF(e,1)),this.query="",this.parse(e,fB)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=en(e))?("#"===cF(e,0)&&(e=bF(e,1)),this.fragment="",this.parse(e,hB)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var gB=function(e){var t=zs(this,mB),n=Bh(arguments.length,1)>1?arguments[1]:void 0,r=tF(t,new pB(e,!1,n));f||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},mB=gB.prototype,vB=function(e,t){return{get:function(){return nF(this)[e]()},set:t&&function(e){return nF(this)[t](e)},configurable:!0,enumerable:!0}};if(f&&(yn(mB,"href",vB("serialize","setHref")),yn(mB,"origin",vB("getOrigin")),yn(mB,"protocol",vB("getProtocol","setProtocol")),yn(mB,"username",vB("getUsername","setUsername")),yn(mB,"password",vB("getPassword","setPassword")),yn(mB,"host",vB("getHost","setHost")),yn(mB,"hostname",vB("getHostname","setHostname")),yn(mB,"port",vB("getPort","setPort")),yn(mB,"pathname",vB("getPathname","setPathname")),yn(mB,"search",vB("getSearch","setSearch")),yn(mB,"searchParams",vB("getSearchParams")),yn(mB,"hash",vB("getHash","setHash"))),ht(mB,"toJSON",(function(){return nF(this).serialize()}),{enumerable:!0}),ht(mB,"toString",(function(){return nF(this).serialize()}),{enumerable:!0}),oF){var yB=oF.createObjectURL,bB=oF.revokeObjectURL;yB&&ht(gB,"createObjectURL",Tn(yB,oF)),bB&&ht(gB,"revokeObjectURL",Tn(bB,oF))}An(gB,"URL"),Vt({global:!0,constructor:!0,forced:!ZO,sham:!f},{URL:gB});var wB=D("URL"),CB=ZO&&d((function(){wB.canParse()}));Vt({target:"URL",stat:!0,forced:!CB},{canParse:function(e){var t=Bh(arguments.length,1),n=en(e),r=t<2||void 0===arguments[1]?void 0:en(arguments[1]);try{return!!new wB(n,r)}catch(e){return!1}}}),Vt({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return g(URL.prototype.toString,this)}});var SB=URLSearchParams,EB=SB.prototype,kB=k(EB.append),$B=k(EB.delete),AB=k(EB.forEach),xB=k([].push),MB=new SB("a=1&a=2&b=3");MB.delete("a",1),MB.delete("b",void 0),MB+""!="a=2"&&ht(EB,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return $B(this,e);var r=[];AB(this,(function(e,t){xB(r,{key:t,value:e})})),Bh(t,1);for(var a,o=en(e),i=en(n),s=0,l=0,u=!1,c=r.length;s<c;)a=r[s++],u||a.key===o?(u=!0,$B(this,a.key)):l++;for(;l<c;)(a=r[l++]).key===o&&a.value===i||kB(this,a.key,a.value)}),{enumerable:!0,unsafe:!0});var TB=URLSearchParams,PB=TB.prototype,NB=k(PB.getAll),IB=k(PB.has),OB=new TB("a=1");!OB.has("a",2)&&OB.has("a",void 0)||ht(PB,"has",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return IB(this,e);var r=NB(this,e);Bh(t,1);for(var a=en(n),o=0;o<r.length;)if(r[o++]===a)return!0;return!1}),{enumerable:!0,unsafe:!0});var RB=URLSearchParams.prototype,FB=k(RB.forEach);function BB(e){return BB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BB(e)}f&&!("size"in RB)&&yn(RB,"size",{get:function(){var e=0;return FB(this,(function(){e++})),e},configurable:!0,enumerable:!0}),i((function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof m?t:m,o=Object.create(a.prototype),i=new M(r||[]);return o._invoke=function(e,t,n){var r=d;return function(a,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===a)throw o;return P()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=$(i,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?p:f,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(e,n,i),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d="suspendedStart",f="suspendedYield",h="executing",p="completed",g={};function m(){}function v(){}function y(){}var b={};b[o]=function(){return this};var w=Object.getPrototypeOf,C=w&&w(w(T([])));C&&C!==n&&r.call(C,o)&&(b=C);var S=y.prototype=m.prototype=Object.create(b);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(a,o,i,s){var l=c(e[a],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"===BB(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var a;this._invoke=function(e,r){function o(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(o,o):o()}}function $(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,$(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var a=c(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function T(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function n(){for(;++a<e.length;)if(r.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:P}}function P(){return{value:t,done:!0}}return v.prototype=S.constructor=y,y.constructor=v,v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},E(k.prototype),k.prototype[i]=function(){return this},e.AsyncIterator=k,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new k(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},E(S),l(S,s,"Generator"),S[o]=function(){return this},S.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=T,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(x),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function a(r,a){return s.type="throw",s.arg=e,n.next=r,a&&(n.method="next",n.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;x(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}));var LB="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==LB&&LB,DB="URLSearchParams"in LB,_B="Symbol"in LB&&"iterator"in Symbol,GB="FileReader"in LB&&"Blob"in LB&&function(){try{return new Blob,!0}catch(e){return!1}}(),jB="FormData"in LB,UB="ArrayBuffer"in LB;if(UB)var zB=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],KB=ArrayBuffer.isView||function(e){return e&&zB.indexOf(Object.prototype.toString.call(e))>-1};function VB(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function HB(e){return"string"!=typeof e&&(e=String(e)),e}function WB(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return _B&&(t[Symbol.iterator]=function(){return t}),t}function ZB(e){this.map={},e instanceof ZB?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function qB(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function YB(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function JB(e){var t=new FileReader,n=YB(t);return t.readAsArrayBuffer(e),n}function QB(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function XB(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:GB&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:jB&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:DB&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():UB&&GB&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=QB(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):UB&&(ArrayBuffer.prototype.isPrototypeOf(e)||KB(e))?this._bodyArrayBuffer=QB(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):DB&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},GB&&(this.blob=function(){var e=qB(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=qB(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(JB)}),this.text=function(){var e=qB(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=YB(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},jB&&(this.formData=function(){return this.text().then(nL)}),this.json=function(){return this.text().then(JSON.parse)},this}ZB.prototype.append=function(e,t){e=VB(e),t=HB(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},ZB.prototype.delete=function(e){delete this.map[VB(e)]},ZB.prototype.get=function(e){return e=VB(e),this.has(e)?this.map[e]:null},ZB.prototype.has=function(e){return this.map.hasOwnProperty(VB(e))},ZB.prototype.set=function(e,t){this.map[VB(e)]=HB(t)},ZB.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},ZB.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),WB(e)},ZB.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),WB(e)},ZB.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),WB(e)},_B&&(ZB.prototype[Symbol.iterator]=ZB.prototype.entries);var eL=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function tL(e,t){if(!(this instanceof tL))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof tL){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new ZB(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new ZB(t.headers)),this.method=function(e){var t=e.toUpperCase();return eL.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function nL(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(a))}})),t}function rL(e,t){if(!(this instanceof rL))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new ZB(t.headers),this.url=t.url||"",this._initBody(e)}tL.prototype.clone=function(){return new tL(this,{body:this._bodyInit})},XB.call(tL.prototype),XB.call(rL.prototype),rL.prototype.clone=function(){return new rL(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ZB(this.headers),url:this.url})},rL.error=function(){var e=new rL(null,{status:0,statusText:""});return e.type="error",e};var aL=[301,302,303,307,308];rL.redirect=function(e,t){if(-1===aL.indexOf(t))throw new RangeError("Invalid status code");return new rL(null,{status:t,headers:{location:e}})};var oL=LB.DOMException;try{new oL}catch(e){(oL=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),oL.prototype.constructor=oL}function iL(e,t){return new Promise((function(n,r){var a=new tL(e,t);if(a.signal&&a.signal.aborted)return r(new oL("Aborted","AbortError"));var o=new XMLHttpRequest;function i(){o.abort()}o.onload=function(){var e,t,r={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new ZB,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var a=n.join(":").trim();t.append(r,a)}})),t)};r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var a="response"in o?o.response:o.responseText;setTimeout((function(){n(new rL(a,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){r(new oL("Aborted","AbortError"))}),0)},o.open(a.method,function(e){try{return""===e&&LB.location.href?LB.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?o.withCredentials=!0:"omit"===a.credentials&&(o.withCredentials=!1),"responseType"in o&&(GB?o.responseType="blob":UB&&a.headers.get("Content-Type")&&-1!==a.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!t||"object"!==BB(t.headers)||t.headers instanceof ZB?a.headers.forEach((function(e,t){o.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){o.setRequestHeader(e,HB(t.headers[e]))})),a.signal&&(a.signal.addEventListener("abort",i),o.onreadystatechange=function(){4===o.readyState&&a.signal.removeEventListener("abort",i)}),o.send(void 0===a._bodyInit?null:a._bodyInit)}))}function sL(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function lL(e,t,n,r){return new(n||(n=Promise))((function(t,a){function o(e){try{s(r.next(e))}catch(e){a(e)}}function i(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,i)}s((r=r.apply(e,[])).next())}))}function uL(e,t){window.console&&(window.console.error?t?window.console.error(e,t):window.console.error(e):window.console.log&&window.console.log(e))}function cL(e,...t){return e?Object.fromEntries(Object.entries(e).filter((([e,n])=>t.includes(e)&&void 0!==n))):{}}function dL(e){return e.replace(/([^A-Z])([A-Z])/g,"$1 $2").toLowerCase().replace(/[^a-z0-9]/gi," ").trim().replace(/(?:^\w|[A-Z]|\b\w)/g,(function(e,t){return 0===t?e.toLowerCase():e.toUpperCase()})).replace(/\s+/g,"")}iL.polyfill=!0,LB.fetch||(LB.fetch=iL,LB.Headers=ZB,LB.Request=tL,LB.Response=rL);const fL=e=>gL(e,dL),hL=e=>gL(e,mL),pL=["custom_fields","consents"];function gL(e,t){return Array.isArray(e)?e.map((e=>gL(e,t))):"object"==typeof e&&null!==e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t(e),pL.find((t=>t===mL(e)))?n:gL(n,t)]))):e}function mL(e){return function(e){const t=e.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+|[A-Z]|[0-9]+/g);return t?t.map((e=>e.toLowerCase())).join("_"):""}(e).replace(/_\d/g,(e=>e.slice(1)))}function vL(e,t=!0){const n=t?hL(e):e;return Object.entries(n).filter((([e,t])=>null!=t)).map((([e,t])=>""!==t?`${e}=${encodeURIComponent(t)}`:e)).join("&")}var yL,bL;function wL(e={},t){const n=void 0===e.fetchBasicProfile||e.fetchBasicProfile,r=void 0===e.scope?t:e.scope;return[...new Set([...n?["openid","profile","email","phone"]:[],...e.requireRefreshToken?["offline_access"]:[],...CL(r)])].join(" ")}function CL(e){if(void 0===e)return[];if(Array.isArray(e))return e;if("string"==typeof e)return e.split(" ");throw new Error("Invalid scope format: string or array expected.")}function SL(e={},{acceptPopupMode:t=!1}={},n){const r=e.popupMode&&t,a=e.redirectUri?"code":"token",o=e.useWebMessage&&!r?"web_message":void 0,i=r?"popup":"web_message"!==o?"page":void 0,s="web_message"===o?"none":e.prompt,l=wL(e,n);return Object.assign(Object.assign({responseType:a},cL(e,"responseType","redirectUri","origin","state","nonce","providerScope","idTokenHint","loginHint","accessToken","persistent")),{scope:l,display:i,responseMode:o,prompt:s})}!function(e){e.isPhoneCredential=function(e){return"sms"===e.type},e.isEmailCredential=function(e){return"email"===e.type}}(yL||(yL={})),function(e){e.isErrorResponse=function(e){return"object"==typeof e&&null!==e&&"error"in e}}(bL||(bL={}));for(var EL=function(e){var t=NL(e),n=t[0],r=t[1];return 3*(n+r)/4-r},kL=function(e){var t,n,r=NL(e),a=r[0],o=r[1],i=new ML(function(e,t,n){return 3*(t+n)/4-n}(0,a,o)),s=0,l=o>0?a-4:a;for(n=0;n<l;n+=4)t=xL[e.charCodeAt(n)]<<18|xL[e.charCodeAt(n+1)]<<12|xL[e.charCodeAt(n+2)]<<6|xL[e.charCodeAt(n+3)],i[s++]=t>>16&255,i[s++]=t>>8&255,i[s++]=255&t;2===o&&(t=xL[e.charCodeAt(n)]<<2|xL[e.charCodeAt(n+1)]>>4,i[s++]=255&t);1===o&&(t=xL[e.charCodeAt(n)]<<10|xL[e.charCodeAt(n+1)]<<4|xL[e.charCodeAt(n+2)]>>2,i[s++]=t>>8&255,i[s++]=255&t);return i},$L=function(e){for(var t,n=e.length,r=n%3,a=[],o=16383,i=0,s=n-r;i<s;i+=o)a.push(IL(e,i,i+o>s?s:i+o));1===r?(t=e[n-1],a.push(AL[t>>2]+AL[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],a.push(AL[t>>10]+AL[t>>4&63]+AL[t<<2&63]+"="));return a.join("")},AL=[],xL=[],ML="undefined"!=typeof Uint8Array?Uint8Array:Array,TL="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",PL=0;PL<64;++PL)AL[PL]=TL[PL],xL[TL.charCodeAt(PL)]=PL;function NL(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function IL(e,t,n){for(var r,a,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(AL[(a=r)>>18&63]+AL[a>>12&63]+AL[a>>6&63]+AL[63&a]);return o.join("")}xL["-".charCodeAt(0)]=62,xL["_".charCodeAt(0)]=63;var OL,RL={byteLength:EL,toByteArray:kL,fromByteArray:$L},FL=function(e,t,n,r,a){var o,i,s=8*a-r-1,l=(1<<s)-1,u=l>>1,c=-7,d=n?a-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(i=o&(1<<-c)-1,o>>=-c,c+=r;c>0;i=256*i+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,r),o-=u}return(h?-1:1)*i*Math.pow(2,o-r)},BL=function(e,t,n,r,a,o){var i,s,l,u=8*o-a-1,c=(1<<u)-1,d=c>>1,f=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),(t+=i+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(i++,l/=2),i+d>=c?(s=0,i=c):i+d>=1?(s=(t*l-1)*Math.pow(2,a),i+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),i=0));a>=8;e[n+h]=255&s,h+=p,s/=256,a-=8);for(i=i<<a|s,u+=a;u>0;e[n+h]=255&i,h+=p,i/=256,u-=8);e[n+h-p]|=128*g},LL=i((function(e,t){var n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=o,t.SlowBuffer=function(e){+e!=e&&(e=0);return o.alloc(+e)},t.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(e>r)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return i(e,t,n)}function i(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|f(e,t),r=a(n),i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+BB(e));if(_(e,ArrayBuffer)||e&&_(e.buffer,ArrayBuffer))return c(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(_(e,SharedArrayBuffer)||e&&_(e.buffer,SharedArrayBuffer)))return c(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return o.from(r,t,n);var i=function(e){if(o.isBuffer(e)){var t=0|d(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||G(e.length)?a(0):u(e);if("Buffer"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+BB(e))}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return s(e),a(e<0?0:0|d(e))}function u(e){for(var t=e.length<0?0:0|d(e.length),n=a(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function c(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,o.prototype),r}function d(e){if(e>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function f(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||_(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+BB(e));var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return L(e).length;default:if(a)return r?-1:B(e).length;t=(""+t).toLowerCase(),a=!0}}function h(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return x(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function p(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),G(n=+n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=o.from(t,r)),o.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,a){var o,i=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,s/=2,l/=2,n/=2}function u(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(a){var c=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*i}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){d=!1;break}if(d)return o}return-1}function v(e,t,n,r){n=Number(n)||0;var a=e.length-n;r?(r=Number(r))>a&&(r=a):r=a;var o=t.length;r>o/2&&(r=o/2);for(var i=0;i<r;++i){var s=parseInt(t.substr(2*i,2),16);if(G(s))return i;e[n+i]=s}return i}function y(e,t,n,r){return D(B(t,e.length-n),e,n,r)}function b(e,t,n,r){return D(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return b(e,t,n,r)}function C(e,t,n,r){return D(L(t),e,n,r)}function S(e,t,n,r){return D(function(e,t){for(var n,r,a,o=[],i=0;i<e.length&&!((t-=2)<0);++i)r=(n=e.charCodeAt(i))>>8,a=n%256,o.push(a),o.push(r);return o}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?RL.fromByteArray(e):RL.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a<n;){var o,i,s,l,u=e[a],c=null,d=u>239?4:u>223?3:u>191?2:1;if(a+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[a+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[a+1],i=e[a+2],128==(192&o)&&128==(192&i)&&(l=(15&u)<<12|(63&o)<<6|63&i)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[a+1],i=e[a+2],s=e[a+3],128==(192&o)&&128==(192&i)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&i)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),a+=d}return function(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=$));return n}(r)}t.kMaxLength=r,o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(e,t,n){return i(e,t,n)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,n){return function(e,t,n){return s(e),e<=0?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)}(e,t,n)},o.allocUnsafe=function(e){return l(e)},o.allocUnsafeSlow=function(e){return l(e)},o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(_(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),_(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,a=0,i=Math.min(n,r);a<i;++a)if(e[a]!==t[a]){n=e[a],r=t[a];break}return n<r?-1:r<n?1:0},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=o.allocUnsafe(t),a=0;for(n=0;n<e.length;++n){var i=e[n];if(_(i,Uint8Array)&&(i=o.from(i)),!o.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,a),a+=i.length}return r},o.byteLength=f,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)p(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)p(this,t,t+3),p(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?k(this,0,e):h.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(e,t,n,r,a){if(_(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+BB(e));if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),l=Math.min(i,s),u=this.slice(r,a),c=e.slice(t,n),d=0;d<l;++d)if(u[d]!==c[d]){i=u[d],s=c[d];break}return i<s?-1:s<i?1:0},o.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},o.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},o.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},o.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;function A(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(127&e[a]);return r}function x(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var a="",o=t;o<n;++o)a+=j[e[o]];return a}function T(e,t,n){for(var r=e.slice(t,n),a="",o=0;o<r.length;o+=2)a+=String.fromCharCode(r[o]+256*r[o+1]);return a}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,a,i){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r,a,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function O(e,t,n,r,a){return t=+t,n>>>=0,a||I(e,0,n,4),BL(e,t,n,r,23,4),n+4}function R(e,t,n,r,a){return t=+t,n>>>=0,a||I(e,0,n,8),BL(e,t,n,r,52,8),n+8}o.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,o.prototype),r},o.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],a=1,o=0;++o<t&&(a*=256);)r+=this[e+o]*a;return r},o.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e+--t],a=1;t>0&&(a*=256);)r+=this[e+--t]*a;return r},o.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],a=1,o=0;++o<t&&(a*=256);)r+=this[e+o]*a;return r>=(a*=128)&&(r-=Math.pow(2,8*t)),r},o.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=t,a=1,o=this[e+--r];r>0&&(a*=256);)o+=this[e+--r]*a;return o>=(a*=128)&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),FL(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),FL(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),FL(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),FL(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,o=0;for(this[t]=255&e;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},o.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var a=n-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},o.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);N(this,e,t,n,a-1,-a)}var o=0,i=1,s=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+n},o.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);N(this,e,t,n,a-1,-a)}var o=n-1,i=1,s=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,n){return O(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return O(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,r){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var a=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var i=a-1;i>=0;--i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return a},o.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var a=e.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=o.isBuffer(e)?e:o.from(e,r),l=s.length;if(0===l)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=s[i%l]}return this};var F=/[^+/0-9A-Za-z-_]/g;function B(e,t){var n;t=t||1/0;for(var r=e.length,a=null,o=[],i=0;i<r;++i){if((n=e.charCodeAt(i))>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&o.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function L(e){return RL.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function D(e,t,n,r){for(var a=0;a<r&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function _(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function G(e){return e!=e}var j=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,a=0;a<16;++a)t[r+a]=e[n]+e[a];return t}()})),DL=LL.Buffer;function _L(e){return e=e.replace(/-/g,"+").replace(/_/g,"/"),t=e,decodeURIComponent(Array.prototype.map.call(window.atob(t),(e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2))).join(""));var t}function GL(e){return DL.from(e).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function jL(e){if(e.idToken)try{const t=function(e){const t=e.split(".")[1];return fL(JSON.parse(_L(t)))}(e.idToken);return Object.assign(Object.assign({},e),{idTokenPayload:t})}catch(e){uL("ID Token parsing error",e)}return e}function UL(){return GL(window.crypto.getRandomValues(new Uint8Array(32)))}function zL(){const e=UL();return localStorage.setItem("verifier_key",e),function(e){const t=DL.from(e,"utf-8");return new Promise((e=>{window.crypto.subtle.digest("SHA-256",t).then((t=>e(GL(t))))}))}(e).then((e=>({codeChallenge:e,codeChallengeMethod:"S256"})))}function KL(e){const t=sessionStorage.getItem(e);if(!t)return null;try{const n=JSON.parse(t);return(new Date).getTime()>n.expiry?(sessionStorage.removeItem(e),null):n.value}catch(e){return null}}function VL(e,t,n){const r={value:t,expiry:(new Date).getTime()+n};sessionStorage.setItem(e,JSON.stringify(r))}LL.SlowBuffer,LL.INSPECT_MAX_BYTES,LL.kMaxLength,function(e){e.isAuthResult=function(e){return"object"==typeof e&&null!==e&&("accessToken"in e||"idToken"in e||"code"in e)}}(OL||(OL={}));class HL{constructor(e){this.config=e.config,this.http=e.http,this.eventManager=e.eventManager,this.authorizeUrl=`${this.config.baseUrl}/oauth/authorize`,this.customTokenUrl=`${this.config.baseUrl}/identity/v1/custom-token/login`,this.logoutUrl=`${this.config.baseUrl}/identity/v1/logout`,this.revokeUrl=`${this.config.baseUrl}/oauth/revoke`,this.passwordlessVerifyUrl=`${this.config.baseUrl}/identity/v1/passwordless/verify`,this.passwordStrengthUrl=`${this.config.baseUrl}/identity/v1/password/strength`,this.popupRelayUrl=`${this.config.baseUrl}/popup/relay`,this.tokenUrl=`${this.config.baseUrl}/oauth/token`,this.passwordlessVerifyAuthCodeUrl="/verify-auth-code",this.passwordLoginUrl="/password/login",this.passwordlessStartUrl="/passwordless/start",this.sessionInfoUrl="/sso/data",this.signupUrl="/signup",this.signupTokenUrl="/signup-token"}setMfaClient(e){this.mfaClient=e}checkSession(e={}){if(!this.config.sso)return Promise.reject(new Error("Cannot call 'checkSession' if SSO is not enabled."));const t=this.authParams(Object.assign(Object.assign({},e),{responseType:"code",useWebMessage:!0}));return this.isAuthorizationLocked()||this.isSessionLocked()?Promise.reject(new Error("An ongoing authorization flow has not yet completed.")):(this.acquireSessionLock(),this.getPkceParams(t).then((n=>{const r=Object.assign(Object.assign({},t),n),a=this.getAuthorizationUrl(r);return this.getWebMessage(a,this.config.baseUrl,e.redirectUri)})))}exchangeAuthorizationCodeWithPkce(e){return this.http.post(this.tokenUrl,{body:Object.assign({clientId:this.config.clientId,grantType:"authorization_code",codeVerifier:localStorage.getItem("verifier_key")},e)}).then((e=>(this.eventManager.fireEvent("authenticated",e),jL(e)))).finally((()=>{this.releaseAuthorizationLock(),this.releaseSessionLock()}))}getPasswordStrength(e){return this.http.post(this.passwordStrengthUrl,{body:{clientId:this.config.clientId,password:e}})}getSessionInfo(){return this.http.get(this.sessionInfoUrl,{query:{clientId:this.config.clientId}})}loginFromSession(e={}){if(!this.config.sso)return Promise.reject(new Error("Cannot call 'loginFromSession' if SSO is not enabled."));if(this.isAuthorizationLocked()||this.isSessionLocked())return Promise.reject(new Error("An ongoing authorization flow has not yet completed."));this.acquireSessionLock();const t=this.authParams(Object.assign(Object.assign({},e),{useWebMessage:!1}));return this.getPkceParams(t).then((e=>{const n=Object.assign(Object.assign({},t),e);return this.redirectThruAuthorization(n)}))}isPasswordCredential(e){return"password"===e.type}loginWithCredentials(e){if(navigator.credentials&&navigator.credentials.get){const t={password:!0,mediation:e.mediation||"silent"};return navigator.credentials.get(t).then((t=>{if(t&&this.isPasswordCredential(t)){const n={email:t.id,password:t.password||"",auth:e.auth};return this.ropcPasswordLogin(n)}return Promise.reject(new Error("Invalid credentials"))}))}return Promise.reject(new Error("Unsupported Credentials Management API"))}loginWithCustomToken(e){const{token:t,auth:n}=e,r=vL(Object.assign(Object.assign({},this.authParams(n)),{token:t}));window.location.assign(`${this.customTokenUrl}?${r}`)}loginWithPassword(e){const{auth:t={}}=e,n=sL(e,["auth"]);this.acquireAuthorizationLock();return(window.cordova?this.ropcPasswordLogin(e).then((t=>this.storeCredentialsInBrowser(e).then((()=>jL(t))))):this.http.post(this.passwordLoginUrl,{body:Object.assign({clientId:this.config.clientId,scope:wL(t,this.config.scope)},n)}).then((t=>this.storeCredentialsInBrowser(e).then((()=>t)))).then((n=>{var r;return n.mfaRequired?this.mfaClient?null===(r=this.mfaClient)||void 0===r?void 0:r.getMfaStepUpToken({tkn:n.tkn,options:t,action:e.action}).then((e=>({stepUpToken:e.token,amr:e.amr}))):Promise.reject(new Error("Error during client instantiation")):this.loginCallback(n,t)}))).catch((e=>(e.error&&this.eventManager.fireEvent("login_failed",e),Promise.reject(e))))}loginWithSocialProvider(e,t={}){if(this.config.orchestrationToken){const n=Object.assign(Object.assign({},this.orchestratedFlowParams(this.config.orchestrationToken,Object.assign(Object.assign({},t),{useWebMessage:!1}))),{provider:e});return"cordova"in window?this.loginWithCordovaInAppBrowser(n):"popup"===n.display?this.loginWithPopup(n):this.redirectThruAuthorization(n)}{const n=this.authParams(Object.assign(Object.assign({},t),{useWebMessage:!1}),{acceptPopupMode:!0});return this.getPkceParams(n).then((t=>{const r=Object.assign(Object.assign(Object.assign({},n),{provider:e}),t);return"cordova"in window?this.loginWithCordovaInAppBrowser(r):"popup"===r.display?this.loginWithPopup(r):this.redirectThruAuthorization(r)}))}}loginWithIdToken(e,t,n,r={}){const a=this.authParams(Object.assign({},r));if(r.useWebMessage){const o=vL(Object.assign(Object.assign({},a),{provider:e,idToken:t,nonce:n}));return this.getWebMessage(`${this.authorizeUrl}?${o}`,this.config.baseUrl,r.redirectUri).then()}return this.redirectThruAuthorization(Object.assign(Object.assign({},a),{provider:e,idToken:t,nonce:n}))}googleOneTap(e={},t=UL()){const n=DL.from(t,"utf-8");return window.crypto.subtle.digest("SHA-256",n).then((n=>{const r={client_id:this.config.googleClientId,callback:n=>this.loginWithIdToken("google",n.credential,t,e),nonce:GL(n),auto_select:!0};window.google.accounts.id.initialize(r),window.google.accounts.id.prompt()}))}instantiateOneTap(e={}){var t,n;if(null===(t=this.config)||void 0===t?void 0:t.googleClientId){const t=document.createElement("script");t.src="https://accounts.google.com/gsi/client",t.onload=()=>this.googleOneTap(e),t.async=!0,t.defer=!0,null===(n=document.querySelector("body"))||void 0===n||n.appendChild(t)}else uL("Google configuration missing.")}logout(e={},t){return navigator.credentials&&navigator.credentials.preventSilentAccess&&!0===e.removeCredentials&&navigator.credentials.preventSilentAccess(),this.config.isPublic&&t?this.revokeToken(t).then((()=>window.location.assign(`${this.logoutUrl}?${vL(e)}`))):Promise.resolve(window.location.assign(`${this.logoutUrl}?${vL(e)}`))}revokeToken(e){const t=e.tokens.map((e=>this.http.post(this.revokeUrl,{body:{clientId:this.config.clientId,token:e}})));return Promise.all(t)}refreshTokens(e){return this.http.post(this.tokenUrl,{body:Object.assign({clientId:this.config.clientId,grantType:"refresh_token",refreshToken:e.refreshToken},cL(e,"scope"))}).then(jL)}signup(e){const{data:t,auth:n,redirectUrl:r,returnToAfterEmailConfirmation:a,saveCredentials:o,captchaToken:i,captchaProvider:s}=e,{clientId:l}=this.config,u=wL(n,this.config.scope),c=Object.assign(Object.assign({},t.phoneNumber?{phoneNumber:t.phoneNumber}:{email:t.email||""}),{password:t.password,saveCredentials:o,auth:n});return(window.cordova?this.http.post(this.signupTokenUrl,{body:Object.assign(Object.assign({clientId:l,redirectUrl:r,scope:u},cL(n,"origin")),{data:t,returnToAfterEmailConfirmation:a,captchaToken:i,captchaProvider:s})}).then((e=>(this.eventManager.fireEvent("authenticated",e),this.storeCredentialsInBrowser(c).then((()=>jL(e)))))):this.http.post(this.signupUrl,{body:{clientId:l,redirectUrl:r,scope:u,data:t,returnToAfterEmailConfirmation:a,captchaToken:i,captchaProvider:s}}).then((e=>this.storeCredentialsInBrowser(c).then((()=>e)))).then((e=>this.loginCallback(e,n)))).catch((e=>(e.error&&this.eventManager.fireEvent("signup_failed",e),Promise.reject(e))))}startPasswordless(e,t={}){return("stepUp"in e?Promise.resolve(e):this.resolveSingleFactorPasswordlessParams(e,t)).then((e=>this.http.post(this.passwordlessStartUrl,{body:e})))}verifyPasswordless(e,t={}){return"challengeId"in e?Promise.resolve(this.loginWithVerificationCode(e,t)):this.http.post(this.passwordlessVerifyAuthCodeUrl,{body:e}).catch((e=>(e.error&&this.eventManager.fireEvent("login_failed",e),Promise.reject(e)))).then((()=>this.loginWithVerificationCode(e,t)))}getAuthorizationUrl(e){return`${this.authorizeUrl}?${vL(e)}`}getWebMessage(e,t,n){const r=document.createElement("iframe"),a=`wm${UL()}`;return r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","display:none;"),r.setAttribute("id",a),r.setAttribute("src",e),new Promise(((e,a)=>{const o=i=>{if(i.origin!==t)return;const s=fL(i.data);if("authorization_response"!==s.type)return;window.document.body.contains(r)&&window.document.body.removeChild(r);const l=s.response;OL.isAuthResult(l)?l.code?e(this.exchangeAuthorizationCodeWithPkce({code:l.code,redirectUri:n||window.location.origin})):(this.eventManager.fireEvent("authenticated",s.response),e(jL(s.response))):bL.isErrorResponse(l)?a(l):a({error:"unexpected_error",errorDescription:"Unexpected error occurred"}),window.removeEventListener("message",o,!1)};window.addEventListener("message",o,!1),document.body.appendChild(r)})).finally((()=>{this.releaseAuthorizationLock(),this.releaseSessionLock()}))}loginWithPopup(e){const{responseType:t,redirectUri:n,provider:r}=e;return new Promise(((o,i)=>{a.open({url:`${this.authorizeUrl}?${vL(e)}`,relay_url:this.popupRelayUrl,window_features:this.computeProviderPopupOptions(r)},((e,r)=>{if(e)return uL(e),this.eventManager.fireEvent("authentication_failed",{errorDescription:"Unexpected error occurred",error:"server_error"}),i(e);if(r){const e=fL(r);if(!e.success)return this.eventManager.fireEvent("authentication_failed",e.data),i(e.data);o(),"code"===t?window.location.assign(`${n}?code=${e.data.code}`):this.eventManager.fireEvent("authenticated",e.data)}}))}))}computeProviderPopupOptions(e){try{const t=function(e){switch(e){case"amazon":return{width:715,height:525};case"facebook":return{width:650,height:400};case"google":return{width:560,height:630};case"kakaotalk":case"mailru":case"qq":return{width:450,height:400};case"line":return{width:440,height:550};case"twitter":return{width:800,height:440};case"vkontakte":return{width:655,height:430};case"yandex":return{width:655,height:700};default:return{width:400,height:550}}}(e),n=Math.max(0,(screen.width-t.width)/2),r=Math.max(0,(screen.height-t.height)/2),a=Math.min(screen.width,t.width);return`menubar=0,toolbar=0,resizable=1,scrollbars=1,width=${a},height=${Math.min(screen.height,t.height)},top=${r},left=${n}`}catch(e){return"menubar=0,toolbar=0,resizable=1,scrollbars=1,width=960,height=680"}}redirectThruAuthorization(e){const t=this.getAuthorizationUrl(e);return this.releaseAuthorizationLock(),this.releaseSessionLock(),window.location.assign(t),Promise.resolve()}loginWithVerificationCode(e,t={}){const n=vL(Object.assign(Object.assign({},this.authParams(t)),e));return t.useWebMessage?this.http.post(this.passwordlessVerifyUrl,{body:e}).catch((e=>(e.error&&this.eventManager.fireEvent("login_failed",e),Promise.reject(e)))).then((e=>OL.isAuthResult(e)?e.code?this.exchangeAuthorizationCodeWithPkce({code:e.code,redirectUri:t.redirectUri||window.location.origin}):(this.eventManager.fireEvent("authenticated",e),Promise.resolve(jL(e))):bL.isErrorResponse(e)?Promise.reject(e):Promise.reject({error:"unexpected_error",errorDescription:"Unexpected error occurred"}))):(window.location.assign(`${this.passwordlessVerifyUrl}?${n}`),Promise.resolve())}ropcPasswordLogin(e){const t=e.auth;return this.http.post(this.tokenUrl,{body:Object.assign({clientId:this.config.clientId,grantType:"password",username:this.getAuthenticationId(e),password:e.password,scope:wL(t,this.config.scope)},cL(t,"origin"))}).then((e=>(this.eventManager.fireEvent("authenticated",e),jL(e))))}loginWithCordovaInAppBrowser(e){return this.openInCordovaSystemBrowser(this.getAuthorizationUrl(Object.assign(Object.assign({},e),{display:"page"})))}openInCordovaSystemBrowser(e){return this.getAvailableBrowserTabPlugin().then((t=>{if(!window.cordova)return Promise.reject(new Error("Cordova environnement not detected."));if(t)return t.openUrl(e,(()=>{}),uL),Promise.resolve();if(window.cordova.InAppBrowser){const t="ios"===window.cordova.platformId?window.cordova.InAppBrowser.open(e,"_blank"):window.cordova.InAppBrowser.open(e,"_system");return Promise.resolve(t)}return Promise.reject(new Error('Cordova plugin "InAppBrowser" is required.'))}))}getAvailableBrowserTabPlugin(){return new Promise(((e,t)=>{const n=window.cordova;if(!n||!n.plugins||!n.plugins.browsertab)return e(void 0);const r=n.plugins.browsertab;r.isAvailable((t=>e(t?r:void 0)),t)}))}storeCredentialsInBrowser(e){if(!e.saveCredentials)return Promise.resolve();if(navigator.credentials&&navigator.credentials.create&&navigator.credentials.store){const t={password:{password:e.password,id:this.getAuthenticationId(e)}};return navigator.credentials.create(t).then((e=>void 0!==e&&e?navigator.credentials.store(e).then((()=>{})):Promise.resolve()))}return uL("Unsupported Credentials Management API"),Promise.resolve()}resolveSingleFactorPasswordlessParams(e,t={}){const{authType:n,email:r,phoneNumber:a,captchaToken:o,captchaProvider:i}=e;if(this.config.orchestrationToken){const e=this.orchestratedFlowParams(this.config.orchestrationToken,t);return Promise.resolve(Object.assign(Object.assign({},e),{authType:n,email:r,phoneNumber:a,captchaToken:o,captchaProvider:i}))}{const e=this.authParams(t);return this.getPkceParams(e).then((t=>Object.assign(Object.assign(Object.assign({},e),{authType:n,email:r,phoneNumber:a,captchaToken:o,captchaProvider:i}),t)))}}hasLoggedWithEmail(e){return void 0!==e.email}hasLoggedWithPhoneNumber(e){return void 0!==e.phoneNumber}getAuthenticationId(e){return this.hasLoggedWithEmail(e)?e.email:this.hasLoggedWithPhoneNumber(e)?e.phoneNumber:e.customIdentifier}loginCallback(e,t={}){if(this.config.orchestrationToken){const n=Object.assign(Object.assign({},this.orchestratedFlowParams(this.config.orchestrationToken,t)),cL(e,"tkn"));return Promise.resolve().then((()=>this.redirectThruAuthorization(n)))}{const n=this.authParams(t);return this.getPkceParams(n).then((r=>{const a=Object.assign(Object.assign(Object.assign({},n),r),cL(e,"tkn"));return t.useWebMessage?this.getWebMessage(this.getAuthorizationUrl(a),this.config.baseUrl,t.redirectUri):this.redirectThruAuthorization(a)}))}}orchestratedFlowParams(e,t={}){const n=SL(t),r=Object.assign({clientId:this.config.clientId,r5_request_token:e},cL(n,"responseType","redirectUri","persistent","display")),a=(o=Object.keys(n),i=Object.keys(r),o.filter((e=>!i.includes(e))));var o,i;return 0!==a.length&&console.debug("Orchestrated flow: pruned parameters: "+a),r}authParams(e,{acceptPopupMode:t=!1}={}){const n=!this.config.isPublic&&!!e.useWebMessage&&("code"===e.responseType||e.redirectUri)?{responseType:"token",redirectUri:void 0}:{};return Object.assign({clientId:this.config.clientId},SL(Object.assign(Object.assign({},e),n),{acceptPopupMode:t},this.config.scope))}getPkceParams(e){return this.config.isPublic&&"code"===e.responseType?zL():"token"===e.responseType&&this.config.pkceEnforced?Promise.reject(new Error("Cannot use implicit flow when PKCE is enforced")):Promise.resolve({})}acquireAuthorizationLock(){VL("authorize_state","state",2e4)}acquireSessionLock(){VL("session_state","state",2e4)}releaseSessionLock(){sessionStorage.removeItem("session_state")}isSessionLocked(){return null!==KL("session_state")}releaseAuthorizationLock(){sessionStorage.removeItem("authorize_state")}isAuthorizationLocked(){return null!==KL("authorize_state")}}class WL{constructor(){this.listeners={}}fire(e,t){this.getListeners(e).forEach((e=>{try{e(t)}catch(e){uL(e)}}))}on(e,t){this.getListeners(e).push(t)}off(e,t){this.listeners[e]=this.getListeners(e).filter((e=>e!==t))}getListeners(e){let t=this.listeners[e];return t||(t=this.listeners[e]=[]),t}}function ZL(e){return{checkUrlFragment(t){const n=this.parseUrlFragment(t);return OL.isAuthResult(n)?(e.fireEvent("authenticated",n),!0):!!bL.isErrorResponse(n)&&(e.fireEvent("authentication_failed",n),!0)},parseUrlFragment(e=""){const t=e.indexOf("#");if(t>=0){const n=function(e){const t=e.split("&").reduce(((e,t)=>{const[n,r=""]=t.split("=");return n&&n.length?Object.assign(Object.assign({},e),{[n]:decodeURIComponent(r.replace(/\+/g," "))}):e}),{});return fL(t)}(e.substr(t+1)),r=n.expiresIn?parseInt(n.expiresIn,10):void 0;return OL.isAuthResult(n)?Object.assign(Object.assign({},n),{expiresIn:r}):bL.isErrorResponse(n)?n:void 0}}}}function qL(e){function t(t,n){const{method:r="GET",query:a={},body:o,accessToken:i=null}=n,s=a&&(null!=(l=a)&&(Object.keys(l)||l).length)?`${t}?${vL(a)}`:t;var l;return YL(s.startsWith("http")?s:e.baseUrl+s,Object.assign(Object.assign({method:r,headers:Object.assign(Object.assign(Object.assign(Object.assign({},i&&{Authorization:"Bearer "+i}),e.language&&{"Accept-Language":e.language}),e.locale&&{"Custom-Locale":e.locale}),o&&{"Content-Type":"application/json;charset=UTF-8"})},e.acceptCookies&&{credentials:"include"}),o&&{body:JSON.stringify(hL(o))}))}return{get:function(e,n){return t(e,Object.assign(Object.assign({},n),{method:"GET"}))},remove:function(e,n){return t(e,Object.assign(Object.assign({},n),{method:"DELETE"}))},post:function(e,n){return t(e,Object.assign(Object.assign({},n),{method:"POST"}))},request:t}}function YL(e,t){return lL(this,0,void 0,(function*(){const n=yield fetch(e,t);if(204==n.status)return;const r=yield n.json(),a=fL(r);return n.ok?a:Promise.reject(a)}))}class JL{constructor(e){this.http=e.http,this.oAuthClient=e.oAuthClient,this.credentialsUrl="/mfa/credentials",this.emailCredentialUrl=`${this.credentialsUrl}/emails`,this.emailCredentialVerifyUrl=`${this.emailCredentialUrl}/verify`,this.passwordlessVerifyUrl="/passwordless/verify",this.phoneNumberCredentialUrl=`${this.credentialsUrl}/phone-numbers`,this.phoneNumberCredentialVerifyUrl=`${this.phoneNumberCredentialUrl}/verify`,this.stepUpUrl="/mfa/stepup",this.trustedDeviceUrl="/mfa/trusteddevices"}getMfaStepUpToken(e){var t;const n=this.oAuthClient.authParams(null!==(t=e.options)&&void 0!==t?t:{});return this.oAuthClient.getPkceParams(n).then((t=>this.http.post(this.stepUpUrl,{body:Object.assign(Object.assign(Object.assign({},n),{tkn:e.tkn,action:e.action}),t),accessToken:e.accessToken})))}listMfaCredentials(e){return this.http.get(this.credentialsUrl,{accessToken:e})}removeMfaEmail(e){const{accessToken:t}=e;return this.http.remove(this.emailCredentialUrl,{accessToken:t})}removeMfaPhoneNumber(e){const{accessToken:t,phoneNumber:n}=e;return this.http.remove(this.phoneNumberCredentialUrl,{body:{phoneNumber:n},accessToken:t})}startMfaEmailRegistration(e){const{accessToken:t,trustDevice:n=!1,action:r}=e;return this.http.post(this.emailCredentialUrl,{body:{trustDevice:n,action:r},accessToken:t})}startMfaPhoneNumberRegistration(e){const{accessToken:t,phoneNumber:n,trustDevice:r=!1,action:a}=e;return this.http.post(this.phoneNumberCredentialUrl,{body:{phoneNumber:n,trustDevice:r,action:a},accessToken:t})}verifyMfaEmailRegistration(e){const{accessToken:t,verificationCode:n,trustDevice:r=!1}=e;return this.http.post(this.emailCredentialVerifyUrl,{body:{verificationCode:n,trustDevice:r},accessToken:t})}verifyMfaPasswordless(e){const{challengeId:t,verificationCode:n,trustDevice:r}=e;return this.http.post(this.passwordlessVerifyUrl,{body:{challengeId:t,verificationCode:n,trustDevice:r}})}verifyMfaPhoneNumberRegistration(e){const{accessToken:t,verificationCode:n,trustDevice:r}=e;return this.http.post(this.phoneNumberCredentialVerifyUrl,{body:{verificationCode:n,trustDevice:r},accessToken:t})}listTrustedDevices(e){return this.http.get(this.trustedDeviceUrl,{accessToken:e})}deleteTrustedDevices(e){const{accessToken:t,trustedDeviceId:n}=e;return this.http.remove(this.trustedDeviceUrl+"/"+n,{accessToken:t})}}class QL{constructor(e){this.config=e.config,this.http=e.http,this.eventManager=e.eventManager,this.sendEmailVerificationUrl="/send-email-verification",this.sendPhoneNumberVerificationUrl="/send-phone-number-verification",this.signupDataUrl="/signup/data",this.unlinkUrl="/unlink",this.updateEmailUrl="/update-email",this.updatePasswordUrl="/update-password",this.updatePhoneNumberUrl="/update-phone-number",this.updateProfileUrl="/update-profile",this.userInfoUrl="/userinfo",this.verifyPhoneNumberUrl="/verify-phone-number",this.verifyEmailUrl="/verify-email"}getSignupData(e){return this.http.get(this.signupDataUrl,{query:{clientId:this.config.clientId,token:e}})}getUser(e){const{accessToken:t,fields:n}=e;return this.http.get(this.userInfoUrl,{query:{fields:n},accessToken:t})}requestAccountRecovery(e){return this.http.post("/account-recovery",{body:Object.assign({clientId:this.config.clientId},e)})}requestPasswordReset(e){return this.http.post("/forgot-password",{body:Object.assign({clientId:this.config.clientId},e)})}sendEmailVerification(e){const{accessToken:t}=e,n=sL(e,["accessToken"]);return this.http.post(this.sendEmailVerificationUrl,{body:Object.assign({},n),accessToken:t})}sendPhoneNumberVerification(e){const{accessToken:t}=e;return this.http.post(this.sendPhoneNumberVerificationUrl,{accessToken:t})}unlink(e){const{accessToken:t}=e,n=sL(e,["accessToken"]);return this.http.post(this.unlinkUrl,{body:n,accessToken:t})}updateEmail(e){const{accessToken:t,email:n,redirectUrl:r,captchaToken:a}=e;return this.http.post(this.updateEmailUrl,{body:{email:n,redirectUrl:r,captchaToken:a},accessToken:t})}updatePhoneNumber(e){const{accessToken:t}=e,n=sL(e,["accessToken"]);return this.http.post(this.updatePhoneNumberUrl,{body:n,accessToken:t})}updateProfile(e){const{accessToken:t,redirectUrl:n,data:r}=e;return this.http.post(this.updateProfileUrl,{body:Object.assign(Object.assign({},r),{redirectUrl:n}),accessToken:t}).then((()=>this.eventManager.fireEvent("profile_updated",r)))}updatePassword(e){const{accessToken:t}=e,n=sL(e,["accessToken"]);return this.http.post(this.updatePasswordUrl,{body:Object.assign({clientId:this.config.clientId},n),accessToken:t})}verifyPhoneNumber(e){const{accessToken:t}=e,n=sL(e,["accessToken"]),{phoneNumber:r}=n;return this.http.post(this.verifyPhoneNumberUrl,{body:n,accessToken:t}).then((()=>this.eventManager.fireEvent("profile_updated",{phoneNumber:r,phoneNumberVerified:!0})))}verifyEmail(e){const{email:t}=e;return this.http.post(this.verifyEmailUrl,{body:e}).then((()=>this.eventManager.fireEvent("profile_updated",{email:t,emailVerified:!0})))}}function XL(e){return Object.assign(Object.assign({},e),{challenge:DL.from(e.challenge,"base64"),user:Object.assign(Object.assign({},e.user),{id:DL.from(e.user.id,"base64")}),excludeCredentials:e.excludeCredentials&&e.excludeCredentials.map((e=>Object.assign(Object.assign({},e),{id:DL.from(e.id,"base64")})))})}function eD(e){const t=e.response;return{id:e.id,rawId:GL(e.rawId),type:"public-key",response:{clientDataJSON:GL(t.clientDataJSON),attestationObject:GL(t.attestationObject),transports:t.getTransports()}}}class tD{constructor(e){this.authenticationOptionsUrl="/webauthn/authentication-options",this.authenticationUrl="/webauthn/authentication",this.registrationOptionsUrl="/webauthn/registration-options",this.registrationUrl="/webauthn/registration",this.resetPasskeysOptionsUrl="/webauthn/reset-options",this.resetPasskeysUrl="/webauthn/reset",this.signupOptionsUrl="/webauthn/signup-options",this.signupUrl="/webauthn/signup",this.config=e.config,this.http=e.http,this.eventManager=e.eventManager,this.oAuthClient=e.oAuthClient,this.authenticationOptionsUrl="/webauthn/authentication-options",this.authenticationUrl="/webauthn/authentication",this.registrationOptionsUrl="/webauthn/registration-options",this.registrationUrl="/webauthn/registration",this.signupOptionsUrl="/webauthn/signup-options",this.signupUrl="/webauthn/signup"}isPublicKeyCredential(e){return"public-key"===e.type}addNewWebAuthnDevice(e,t,n){if(window.PublicKeyCredential){const r={origin:n||window.location.origin,friendlyName:t||window.navigator.platform};return this.http.post(this.registrationOptionsUrl,{body:r,accessToken:e}).then((e=>{const t=XL(e.options.publicKey);return navigator.credentials.create({publicKey:t})})).then((t=>{if(!t||!this.isPublicKeyCredential(t))return Promise.reject(new Error("Unable to register invalid public key credentials."));const n=eD(t);return this.http.post(this.registrationUrl,{body:Object.assign({},n),accessToken:e})})).catch((e=>(e.error&&this.eventManager.fireEvent("login_failed",e),Promise.reject(e))))}return Promise.reject(new Error("Unsupported WebAuthn API"))}resetPasskeys(e){if(window.PublicKeyCredential){const t=Object.assign(Object.assign({},e),{origin:e.webAuthnOrigin||window.location.origin,friendlyName:e.friendlyName||window.navigator.platform});return this.http.post(this.resetPasskeysOptionsUrl,{body:t}).then((e=>{const t=XL(e.options.publicKey);return navigator.credentials.create({publicKey:t})})).then((t=>{if(!t||!this.isPublicKeyCredential(t))return Promise.reject(new Error("Unable to register public key credentials."));const n=eD(t);return this.http.post(this.resetPasskeysUrl,{body:Object.assign(Object.assign({},e),{publicKeyCredential:n})})})).catch((e=>(e.error&&this.eventManager.fireEvent("login_failed",e),Promise.reject(e))))}return Promise.reject(new Error("Unsupported WebAuthn API"))}listWebAuthnDevices(e){return this.http.get(this.registrationUrl,{accessToken:e})}isDiscoverable(e){return void 0!==e.conditionalMediation}buildWebAuthnParams(e){var t,n;const r=this.isDiscoverable(e)?{clientId:this.config.clientId,origin:e.webAuthnOrigin||window.location.origin,scope:wL(e.auth,this.config.scope)}:{clientId:this.config.clientId,origin:e.webAuthnOrigin||window.location.origin,scope:wL(e.auth,this.config.scope),email:e.email,phoneNumber:e.phoneNumber},a=PublicKeyCredential;return(null!==(n=null===(t=a.isConditionalMediationAvailable)||void 0===t?void 0:t.call(a))&&void 0!==n?n:Promise.resolve(!1)).then((e=>({body:r,conditionalMediationAvailable:e})))}loginWithWebAuthn(e){return window.PublicKeyCredential?this.buildWebAuthnParams(e).then((t=>this.isDiscoverable(e)&&!0===e.conditionalMediation&&!t.conditionalMediationAvailable?Promise.reject(new Error("Conditional mediation unavailable")):this.http.post(this.authenticationOptionsUrl,{body:t.body}).then((n=>{const r=(a=n.publicKey,Object.assign(Object.assign({},a),{challenge:DL.from(a.challenge,"base64"),allowCredentials:a.allowCredentials.map((e=>Object.assign(Object.assign({},e),{id:DL.from(e.id,"base64")})))}));var a;return this.isDiscoverable(e)&&!1!==e.conditionalMediation&&t.conditionalMediationAvailable?navigator.credentials.get({publicKey:r,mediation:"conditional",signal:e.signal}):navigator.credentials.get({publicKey:r,signal:e.signal})})).then((t=>{if(!t||!this.isPublicKeyCredential(t))return Promise.reject(new Error("Unable to authenticate with invalid public key credentials."));const n=function(e){const t=e.response;return{id:e.id,rawId:GL(e.rawId),type:"public-key",response:{authenticatorData:GL(t.authenticatorData),clientDataJSON:GL(t.clientDataJSON),signature:GL(t.signature),userHandle:t.userHandle&&GL(t.userHandle)}}}(t);return this.http.post(this.authenticationUrl,{body:Object.assign({},n)}).then((t=>this.oAuthClient.loginCallback(t,e.auth)))})).catch((e=>(e.error&&this.eventManager.fireEvent("login_failed",e),Promise.reject(e)))))):Promise.reject(new Error("Unsupported WebAuthn API"))}removeWebAuthnDevice(e,t){return this.http.remove(`${this.registrationUrl}/${t}`,{accessToken:e})}signupWithWebAuthn(e,t){if(window.PublicKeyCredential){const n={origin:e.webAuthnOrigin||window.location.origin,clientId:this.config.clientId,friendlyName:e.friendlyName||window.navigator.platform,profile:e.profile,scope:wL(t,this.config.scope),redirectUrl:e.redirectUrl,returnToAfterEmailConfirmation:e.returnToAfterEmailConfirmation},r=this.http.post(this.signupOptionsUrl,{body:n}),a=r.then((e=>{const t=XL(e.options.publicKey);return navigator.credentials.create({publicKey:t})}));return Promise.all([r,a]).then((([e,n])=>{if(!n||!this.isPublicKeyCredential(n))return Promise.reject(new Error("Unable to register invalid public key credentials."));const r=eD(n);return this.http.post(this.signupUrl,{body:{publicKeyCredential:r,webauthnId:e.options.publicKey.user.id}}).then((e=>this.oAuthClient.loginCallback(e,t)))})).catch((e=>(e.error&&this.eventManager.fireEvent("login_failed",e),Promise.reject(e))))}return Promise.reject(new Error("Unsupported WebAuthn API"))}}function nD(e,t){const n=e[t];if(null==n)throw new Error(`The reach5 creation config has errors: ${t} is not set`)}function rD(e){nD(e,"domain"),nD(e,"clientId");const{domain:t,clientId:n,googleVariant:r,language:a,locale:o,webAuthnOrigin:i}=e,s=function(){const e=new WL;return{on(t,n){e.on(t,n)},off(t,n){e.off(t,n)},fireEvent(t,n){if("authenticated"===t){const r=jL(n);e.fire(t,r)}else e.fire(t,n)}}}(),l=ZL(s);!function(e){window.cordova&&(window.handleOpenURL||(window.handleOpenURL=t=>{const n=window.cordova;n&&e.checkUrlFragment(t)&&n.plugins&&n.plugins.browsertab&&n.plugins.browsertab.close()}))}(l);const u=`https://${t}`,c=`${u}/identity/v1`,d=YL(`https://${t}/identity/v1/config?${vL({clientId:n,lang:a,googleVariant:r})}`),f=d.then((e=>{const{language:t,sso:r}=e,a=new URLSearchParams(window.location.search).get("r5_request_token")||void 0,i=Object.assign({clientId:n,baseUrl:u,orchestrationToken:a},e),l=qL({baseUrl:c,language:t,acceptCookies:r,locale:o}),d=new HL({config:i,http:l,eventManager:s}),f=new JL({http:l,oAuthClient:d});return d.setMfaClient(f),{oAuth:d,mfa:f,webAuthn:new tD({config:i,http:l,eventManager:s,oAuthClient:d}),profile:new QL({config:i,http:l,eventManager:s})}}));function h(e=window.location.href){const t=l.checkUrlFragment(e);return t&&e===window.location.href&&(window.location.hash=""),t}return{addNewWebAuthnDevice:function(e,t){return f.then((n=>n.webAuthn.addNewWebAuthnDevice(e,t,i)))},checkSession:function(e={}){return f.then((t=>t.oAuth.checkSession(e)))},checkUrlFragment:h,exchangeAuthorizationCodeWithPkce:function(e){return f.then((t=>t.oAuth.exchangeAuthorizationCodeWithPkce(e)))},getMfaStepUpToken:function(e){return f.then((t=>t.mfa.getMfaStepUpToken(e)))},getPasswordStrength:function(e){return f.then((t=>t.oAuth.getPasswordStrength(e)))},getSessionInfo:function(){return f.then((e=>e.oAuth.getSessionInfo()))},getSignupData:function(e){return f.then((t=>t.profile.getSignupData(e)))},getUser:function(e){return f.then((t=>t.profile.getUser(e)))},listMfaCredentials:function(e){return f.then((t=>t.mfa.listMfaCredentials(e)))},listTrustedDevices:function(e){return f.then((t=>t.mfa.listTrustedDevices(e)))},listWebAuthnDevices:function(e){return f.then((t=>t.webAuthn.listWebAuthnDevices(e)))},loginFromSession:function(e={}){return f.then((t=>t.oAuth.loginFromSession(e)))},loginWithCredentials:function(e){return f.then((t=>t.oAuth.loginWithCredentials(e)))},loginWithCustomToken:function(e){return f.then((t=>t.oAuth.loginWithCustomToken(e)))},loginWithPassword:function(e){return f.then((t=>t.oAuth.loginWithPassword(e)))},instantiateOneTap:function(e={}){return f.then((t=>t.oAuth.instantiateOneTap(e)))},loginWithSocialProvider:function(e,t={}){return f.then((n=>n.oAuth.loginWithSocialProvider(e,t)))},loginWithWebAuthn:function(e){return f.then((t=>t.webAuthn.loginWithWebAuthn(Object.assign(Object.assign({},e),{webAuthnOrigin:i}))))},logout:function(e={},t){return f.then((n=>n.oAuth.logout(e,t)))},off:function(e,t){return s.off(e,t)},on:function(e,t){s.on(e,t),"authenticated"!==e&&"authentication_failed"!==e||setTimeout((()=>h()),0)},refreshTokens:function(e){return f.then((t=>t.oAuth.refreshTokens(e)))},remoteSettings:d,removeMfaEmail:function(e){return f.then((t=>t.mfa.removeMfaEmail(e)))},removeMfaPhoneNumber:function(e){return f.then((t=>t.mfa.removeMfaPhoneNumber(e)))},removeTrustedDevice:function(e){return f.then((t=>t.mfa.deleteTrustedDevices(e)))},removeWebAuthnDevice:function(e,t){return f.then((n=>n.webAuthn.removeWebAuthnDevice(e,t)))},requestAccountRecovery:function(e){return f.then((t=>t.profile.requestAccountRecovery(e)))},resetPasskeys:function(e){return f.then((t=>t.webAuthn.resetPasskeys(Object.assign(Object.assign({},e),{webAuthnOrigin:i}))))},requestPasswordReset:function(e){return f.then((t=>t.profile.requestPasswordReset(e)))},sendEmailVerification:function(e){return f.then((t=>t.profile.sendEmailVerification(e)))},sendPhoneNumberVerification:function(e){return f.then((t=>t.profile.sendPhoneNumberVerification(e)))},signup:function(e){return f.then((t=>t.oAuth.signup(e)))},signupWithWebAuthn:function(e,t){return f.then((n=>n.webAuthn.signupWithWebAuthn(Object.assign(Object.assign({},e),{webAuthnOrigin:i}),t)))},startMfaEmailRegistration:function(e){return f.then((t=>t.mfa.startMfaEmailRegistration(e)))},startMfaPhoneNumberRegistration:function(e){return f.then((t=>t.mfa.startMfaPhoneNumberRegistration(e)))},startPasswordless:function(e,t={}){return f.then((n=>n.oAuth.startPasswordless(e,t)))},unlink:function(e){return f.then((t=>t.profile.unlink(e)))},updateEmail:function(e){return f.then((t=>t.profile.updateEmail(e)))},updatePassword:function(e){return f.then((t=>t.profile.updatePassword(e)))},updatePhoneNumber:function(e){return f.then((t=>t.profile.updatePhoneNumber(e)))},updateProfile:function(e){return f.then((t=>t.profile.updateProfile(e)))},verifyEmail:function(e){return f.then((t=>t.profile.verifyEmail(e)))},verifyMfaEmailRegistration:function(e){return f.then((t=>t.mfa.verifyMfaEmailRegistration(e)))},verifyMfaPasswordless:function(e){return f.then((t=>t.mfa.verifyMfaPasswordless(e)))},verifyMfaPhoneNumberRegistration:function(e){return f.then((t=>t.mfa.verifyMfaPhoneNumberRegistration(e)))},verifyPasswordless:function(e,t){return f.then((n=>n.oAuth.verifyPasswordless(e,t)))},verifyPhoneNumber:function(e){return f.then((t=>t.profile.verifyPhoneNumber(e)))}}}var aD={exports:{}},oD={},iD=Symbol.for("react.element"),sD=Symbol.for("react.portal"),lD=Symbol.for("react.fragment"),uD=Symbol.for("react.strict_mode"),cD=Symbol.for("react.profiler"),dD=Symbol.for("react.provider"),fD=Symbol.for("react.context"),hD=Symbol.for("react.forward_ref"),pD=Symbol.for("react.suspense"),gD=Symbol.for("react.memo"),mD=Symbol.for("react.lazy"),vD=Symbol.iterator;var yD={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bD=Object.assign,wD={};function CD(e,t,n){this.props=e,this.context=t,this.refs=wD,this.updater=n||yD}function SD(){}function ED(e,t,n){this.props=e,this.context=t,this.refs=wD,this.updater=n||yD}CD.prototype.isReactComponent={},CD.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},CD.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},SD.prototype=CD.prototype;var kD=ED.prototype=new SD;kD.constructor=ED,bD(kD,CD.prototype),kD.isPureReactComponent=!0;var $D=Array.isArray,AD=Object.prototype.hasOwnProperty,xD={current:null},MD={key:!0,ref:!0,__self:!0,__source:!0};function TD(e,t,n){var r,a={},o=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(o=""+t.key),t)AD.call(t,r)&&!MD.hasOwnProperty(r)&&(a[r]=t[r]);var s=arguments.length-2;if(1===s)a.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===a[r]&&(a[r]=s[r]);return{$$typeof:iD,type:e,key:o,ref:i,props:a,_owner:xD.current}}function PD(e){return"object"==typeof e&&null!==e&&e.$$typeof===iD}var ND=/\/+/g;function ID(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function OD(e,t,n,r,a){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var i=!1;if(null===e)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case iD:case sD:i=!0}}if(i)return a=a(i=e),e=""===r?"."+ID(i,0):r,$D(a)?(n="",null!=e&&(n=e.replace(ND,"$&/")+"/"),OD(a,t,n,"",(function(e){return e}))):null!=a&&(PD(a)&&(a=function(e,t){return{$$typeof:iD,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||i&&i.key===a.key?"":(""+a.key).replace(ND,"$&/")+"/")+e)),t.push(a)),1;if(i=0,r=""===r?".":r+":",$D(e))for(var s=0;s<e.length;s++){var l=r+ID(o=e[s],s);i+=OD(o,t,n,l,a)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=vD&&e[vD]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),s=0;!(o=e.next()).done;)i+=OD(o=o.value,t,n,l=r+ID(o,s++),a);else if("object"===o)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function RD(e,t,n){if(null==e)return e;var r=[],a=0;return OD(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function FD(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var BD={current:null},LD={transition:null},DD={ReactCurrentDispatcher:BD,ReactCurrentBatchConfig:LD,ReactCurrentOwner:xD};function _D(){throw Error("act(...) is not supported in production builds of React.")}oD.Children={map:RD,forEach:function(e,t,n){RD(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return RD(e,(function(){t++})),t},toArray:function(e){return RD(e,(function(e){return e}))||[]},only:function(e){if(!PD(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},oD.Component=CD,oD.Fragment=lD,oD.Profiler=cD,oD.PureComponent=ED,oD.StrictMode=uD,oD.Suspense=pD,oD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=DD,oD.act=_D,oD.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=bD({},e.props),a=e.key,o=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,i=xD.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)AD.call(t,l)&&!MD.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:iD,type:e.type,key:a,ref:o,props:r,_owner:i}},oD.createContext=function(e){return(e={$$typeof:fD,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:dD,_context:e},e.Consumer=e},oD.createElement=TD,oD.createFactory=function(e){var t=TD.bind(null,e);return t.type=e,t},oD.createRef=function(){return{current:null}},oD.forwardRef=function(e){return{$$typeof:hD,render:e}},oD.isValidElement=PD,oD.lazy=function(e){return{$$typeof:mD,_payload:{_status:-1,_result:e},_init:FD}},oD.memo=function(e,t){return{$$typeof:gD,type:e,compare:void 0===t?null:t}},oD.startTransition=function(e){var t=LD.transition;LD.transition={};try{e()}finally{LD.transition=t}},oD.unstable_act=_D,oD.useCallback=function(e,t){return BD.current.useCallback(e,t)},oD.useContext=function(e){return BD.current.useContext(e)},oD.useDebugValue=function(){},oD.useDeferredValue=function(e){return BD.current.useDeferredValue(e)},oD.useEffect=function(e,t){return BD.current.useEffect(e,t)},oD.useId=function(){return BD.current.useId()},oD.useImperativeHandle=function(e,t,n){return BD.current.useImperativeHandle(e,t,n)},oD.useInsertionEffect=function(e,t){return BD.current.useInsertionEffect(e,t)},oD.useLayoutEffect=function(e,t){return BD.current.useLayoutEffect(e,t)},oD.useMemo=function(e,t){return BD.current.useMemo(e,t)},oD.useReducer=function(e,t,n){return BD.current.useReducer(e,t,n)},oD.useRef=function(e){return BD.current.useRef(e)},oD.useState=function(e){return BD.current.useState(e)},oD.useSyncExternalStore=function(e,t,n){return BD.current.useSyncExternalStore(e,t,n)},oD.useTransition=function(){return BD.current.useTransition()},oD.version="18.3.1",aD.exports=oD;var GD=aD.exports,jD=n(GD),UD=t({__proto__:null,default:jD},[GD]),zD={exports:{}},KD={},VD={exports:{}},HD={};
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).reach5Widgets={})}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r={exports:{}};!function(e){var t=function(){var e="__winchan_relay_frame";function t(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener&&e.addEventListener(t,n,!1)}function n(e,t,n){e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener&&e.removeEventListener(t,n,!1)}function r(e){/^https?:\/\//.test(e)||(e=window.location.href);var t=/^(https?:\/\/[\-_a-zA-Z\.0-9:]+)/.exec(e);return t?t[1]:e}var a=function(){if("undefined"==typeof navigator)return!1;var e=-1,t=navigator.userAgent;if("Microsoft Internet Explorer"===navigator.appName)null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1));else if(t.indexOf("Trident")>-1){null!==new RegExp("rv:([0-9]{2,2}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1))}return e>=8}();return"undefined"!=typeof window&&window.JSON&&window.JSON.stringify&&window.JSON.parse&&window.postMessage?{open:function(o,i){if(!i)throw"missing required callback argument";var s,l;o.url||(s="missing required 'url' parameter"),o.relay_url||(s="missing required 'relay_url' parameter"),s&&setTimeout((function(){i(s)}),0),o.window_name||(o.window_name=null),o.window_features&&!function(){try{var e=navigator.userAgent;return-1!=e.indexOf("Fennec/")||-1!=e.indexOf("Firefox/")&&-1!=e.indexOf("Android")}catch(e){}return!1}()||(o.window_features=void 0);var u,c=o.origin||r(o.url);if(c!==r(o.relay_url))return setTimeout((function(){i("invalid arguments: origin of url and relay_url must match")}),0);a&&((l=document.createElement("iframe")).setAttribute("src",o.relay_url),l.style.display="none",l.setAttribute("name",e),document.body.appendChild(l),u=l.contentWindow);var d=o.popup||window.open(o.url,o.window_name,o.window_features);o.popup&&(d.location.href=o.url),u||(u=d);var f=setInterval((function(){d&&d.closed&&(p(),i&&(i("User closed the popup window"),i=null))}),500),h=JSON.stringify({a:"request",d:o.params});function p(){if(l&&document.body.removeChild(l),l=void 0,f&&(f=clearInterval(f)),n(window,"message",g),n(window,"unload",p),d)try{d.close()}catch(e){u.postMessage("die",c)}d=u=void 0}function g(e){if(e.origin===c){try{var t=JSON.parse(e.data)}catch(e){if(i)return i(e);throw e}"ready"===t.a?u.postMessage(h,c):"error"===t.a?(p(),i&&(i(t.d),i=null)):"response"===t.a&&(p(),i&&(i(null,t.d),i=null))}}return t(window,"unload",p),t(window,"message",g),{originalPopup:d,close:p,focus:function(){if(d)try{d.focus()}catch(e){}}}},onOpen:function(r){var o="*",i=a?function(){for(var t=window.opener.frames,n=t.length-1;n>=0;n--)try{if(t[n].location.protocol===window.location.protocol&&t[n].location.host===window.location.host&&t[n].name===e)return t[n]}catch(e){}}():window.opener;if(!i)throw"can't find relay frame";function s(e){e=JSON.stringify(e),a?i.doPost(e,o):i.postMessage(e,o)}function l(e){if("die"===e.data)try{window.close()}catch(e){}}t(a?i:window,"message",(function e(t){var a;try{a=JSON.parse(t.data)}catch(e){}a&&"request"===a.a&&(n(window,"message",e),o=t.origin,r&&setTimeout((function(){r(o,a.d,(function(e){r=void 0,s({a:"response",d:e})}))}),0))})),t(a?i:window,"message",l);try{s({a:"ready"})}catch(e){t(i,"load",(function(e){s({a:"ready"})}))}var u=function(){try{n(a?i:window,"message",l)}catch(e){}r&&s({a:"error",d:"client closed window"}),r=void 0;try{window.close()}catch(e){}};return t(window,"unload",u),{detach:function(){n(window,"unload",u)}}}}:{open:function(e,t,n,r){setTimeout((function(){r("unsupported browser")}),0)},onOpen:function(e){setTimeout((function(){e("unsupported browser")}),0)}}}();e.exports&&(e.exports=t)}(r);var a=n(r.exports),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e,t){return e(t={exports:{}},t.exports),t.exports}var s,l,u=function(e){return e&&e.Math===Math&&e},c=u("object"==typeof globalThis&&globalThis)||u("object"==typeof window&&window)||u("object"==typeof self&&self)||u("object"==typeof o&&o)||u("object"==typeof o&&o)||function(){return this}()||Function("return this")(),d=function(e){try{return!!e()}catch(e){return!0}},f=!d((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!d((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),p=Function.prototype.call,g=h?p.bind(p):function(){return p.apply(p,arguments)},m={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,y=v&&!m.call({1:2},1)?function(e){var t=v(this,e);return!!t&&t.enumerable}:m,b={f:y},w=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},C=Function.prototype,S=C.call,E=h&&C.bind.bind(S,S),k=h?E:function(e){return function(){return S.apply(e,arguments)}},$=k({}.toString),A=k("".slice),x=function(e){return A($(e),8,-1)},M=Object,T=k("".split),P=d((function(){return!M("z").propertyIsEnumerable(0)}))?function(e){return"String"===x(e)?T(e,""):M(e)}:M,N=function(e){return null==e},I=TypeError,O=function(e){if(N(e))throw new I("Can't call method on "+e);return e},R=function(e){return P(O(e))},F="object"==typeof document&&document.all,B=void 0===F&&void 0!==F?function(e){return"function"==typeof e||e===F}:function(e){return"function"==typeof e},L=function(e){return"object"==typeof e?null!==e:B(e)},D=function(e,t){return arguments.length<2?(n=c[e],B(n)?n:void 0):c[e]&&c[e][t];var n},_=k({}.isPrototypeOf),G="undefined"!=typeof navigator&&String(navigator.userAgent)||"",j=c.process,U=c.Deno,z=j&&j.versions||U&&U.version,K=z&&z.v8;K&&(l=(s=K.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!l&&G&&(!(s=G.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=G.match(/Chrome\/(\d+)/))&&(l=+s[1]);var V=l,H=c.String,W=!!Object.getOwnPropertySymbols&&!d((function(){var e=Symbol("symbol detection");return!H(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V&&V<41})),Z=W&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,q=Object,Y=Z?function(e){return"symbol"==typeof e}:function(e){var t=D("Symbol");return B(t)&&_(t.prototype,q(e))},J=String,Q=function(e){try{return J(e)}catch(e){return"Object"}},X=TypeError,ee=function(e){if(B(e))return e;throw new X(Q(e)+" is not a function")},te=function(e,t){var n=e[t];return N(n)?void 0:ee(n)},ne=TypeError,re=function(e,t){var n,r;if("string"===t&&B(n=e.toString)&&!L(r=g(n,e)))return r;if(B(n=e.valueOf)&&!L(r=g(n,e)))return r;if("string"!==t&&B(n=e.toString)&&!L(r=g(n,e)))return r;throw new ne("Can't convert object to primitive value")},ae=!1,oe=Object.defineProperty,ie=function(e,t){try{oe(c,e,{value:t,configurable:!0,writable:!0})}catch(n){c[e]=t}return t},se="__core-js_shared__",le=c[se]||ie(se,{}),ue=i((function(e){(e.exports=function(e,t){return le[e]||(le[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),ce=Object,de=function(e){return ce(O(e))},fe=k({}.hasOwnProperty),he=Object.hasOwn||function(e,t){return fe(de(e),t)},pe=0,ge=Math.random(),me=k(1..toString),ve=function(e){return"Symbol("+(void 0===e?"":e)+")_"+me(++pe+ge,36)},ye=c.Symbol,be=ue("wks"),we=Z?ye.for||ye:ye&&ye.withoutSetter||ve,Ce=function(e){return he(be,e)||(be[e]=W&&he(ye,e)?ye[e]:we("Symbol."+e)),be[e]},Se=TypeError,Ee=Ce("toPrimitive"),ke=function(e,t){if(!L(e)||Y(e))return e;var n,r=te(e,Ee);if(r){if(void 0===t&&(t="default"),n=g(r,e,t),!L(n)||Y(n))return n;throw new Se("Can't convert object to primitive value")}return void 0===t&&(t="number"),re(e,t)},$e=function(e){var t=ke(e,"string");return Y(t)?t:t+""},Ae=c.document,xe=L(Ae)&&L(Ae.createElement),Me=function(e){return xe?Ae.createElement(e):{}},Te=!f&&!d((function(){return 7!==Object.defineProperty(Me("div"),"a",{get:function(){return 7}}).a})),Pe=Object.getOwnPropertyDescriptor,Ne=f?Pe:function(e,t){if(e=R(e),t=$e(t),Te)try{return Pe(e,t)}catch(e){}if(he(e,t))return w(!g(b.f,e,t),e[t])},Ie={f:Ne},Oe=f&&d((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Re=String,Fe=TypeError,Be=function(e){if(L(e))return e;throw new Fe(Re(e)+" is not an object")},Le=TypeError,De=Object.defineProperty,_e=Object.getOwnPropertyDescriptor,Ge="enumerable",je="configurable",Ue="writable",ze=f?Oe?function(e,t,n){if(Be(e),t=$e(t),Be(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Ue in n&&!n[Ue]){var r=_e(e,t);r&&r[Ue]&&(e[t]=n.value,n={configurable:je in n?n[je]:r[je],enumerable:Ge in n?n[Ge]:r[Ge],writable:!1})}return De(e,t,n)}:De:function(e,t,n){if(Be(e),t=$e(t),Be(n),Te)try{return De(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Le("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ke={f:ze},Ve=f?function(e,t,n){return Ke.f(e,t,w(1,n))}:function(e,t,n){return e[t]=n,e},He=Function.prototype,We=f&&Object.getOwnPropertyDescriptor,Ze=he(He,"name"),qe={EXISTS:Ze,PROPER:Ze&&"something"===function(){}.name,CONFIGURABLE:Ze&&(!f||f&&We(He,"name").configurable)},Ye=k(Function.toString);B(le.inspectSource)||(le.inspectSource=function(e){return Ye(e)});var Je,Qe,Xe,et=le.inspectSource,tt=c.WeakMap,nt=B(tt)&&/native code/.test(String(tt)),rt=ue("keys"),at=function(e){return rt[e]||(rt[e]=ve(e))},ot={},it="Object already initialized",st=c.TypeError,lt=c.WeakMap;if(nt||le.state){var ut=le.state||(le.state=new lt);ut.get=ut.get,ut.has=ut.has,ut.set=ut.set,Je=function(e,t){if(ut.has(e))throw new st(it);return t.facade=e,ut.set(e,t),t},Qe=function(e){return ut.get(e)||{}},Xe=function(e){return ut.has(e)}}else{var ct=at("state");ot[ct]=!0,Je=function(e,t){if(he(e,ct))throw new st(it);return t.facade=e,Ve(e,ct,t),t},Qe=function(e){return he(e,ct)?e[ct]:{}},Xe=function(e){return he(e,ct)}}var dt={set:Je,get:Qe,has:Xe,enforce:function(e){return Xe(e)?Qe(e):Je(e,{})},getterFor:function(e){return function(t){var n;if(!L(t)||(n=Qe(t)).type!==e)throw new st("Incompatible receiver, "+e+" required");return n}}},ft=i((function(e){var t=qe.CONFIGURABLE,n=dt.enforce,r=dt.get,a=String,o=Object.defineProperty,i=k("".slice),s=k("".replace),l=k([].join),u=f&&!d((function(){return 8!==o((function(){}),"length",{value:8}).length})),c=String(String).split("String"),h=e.exports=function(e,r,d){"Symbol("===i(a(r),0,7)&&(r="["+s(a(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),d&&d.getter&&(r="get "+r),d&&d.setter&&(r="set "+r),(!he(e,"name")||t&&e.name!==r)&&(f?o(e,"name",{value:r,configurable:!0}):e.name=r),u&&d&&he(d,"arity")&&e.length!==d.arity&&o(e,"length",{value:d.arity});try{d&&he(d,"constructor")&&d.constructor?f&&o(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var h=n(e);return he(h,"source")||(h.source=l(c,"string"==typeof r?r:"")),e};Function.prototype.toString=h((function(){return B(this)&&r(this).source||et(this)}),"toString")})),ht=function(e,t,n,r){r||(r={});var a=r.enumerable,o=void 0!==r.name?r.name:t;if(B(n)&&ft(n,o,r),r.global)a?e[t]=n:ie(t,n);else{try{r.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=n:Ke.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},pt=Math.ceil,gt=Math.floor,mt=Math.trunc||function(e){var t=+e;return(t>0?gt:pt)(t)},vt=function(e){var t=+e;return t!=t||0===t?0:mt(t)},yt=Math.max,bt=Math.min,wt=function(e,t){var n=vt(e);return n<0?yt(n+t,0):bt(n,t)},Ct=Math.min,St=function(e){return e>0?Ct(vt(e),9007199254740991):0},Et=function(e){return St(e.length)},kt=function(e){return function(t,n,r){var a,o=R(t),i=Et(o),s=wt(r,i);if(e&&n!=n){for(;i>s;)if((a=o[s++])!=a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},$t={includes:kt(!0),indexOf:kt(!1)},At=$t.indexOf,xt=k([].push),Mt=function(e,t){var n,r=R(e),a=0,o=[];for(n in r)!he(ot,n)&&he(r,n)&&xt(o,n);for(;t.length>a;)he(r,n=t[a++])&&(~At(o,n)||xt(o,n));return o},Tt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pt=Tt.concat("length","prototype"),Nt=Object.getOwnPropertyNames||function(e){return Mt(e,Pt)},It={f:Nt},Ot={f:Object.getOwnPropertySymbols},Rt=k([].concat),Ft=D("Reflect","ownKeys")||function(e){var t=It.f(Be(e)),n=Ot.f;return n?Rt(t,n(e)):t},Bt=function(e,t,n){for(var r=Ft(t),a=Ke.f,o=Ie.f,i=0;i<r.length;i++){var s=r[i];he(e,s)||n&&he(n,s)||a(e,s,o(t,s))}},Lt=/#|\.prototype\./,Dt=function(e,t){var n=Gt[_t(e)];return n===Ut||n!==jt&&(B(t)?d(t):!!t)},_t=Dt.normalize=function(e){return String(e).replace(Lt,".").toLowerCase()},Gt=Dt.data={},jt=Dt.NATIVE="N",Ut=Dt.POLYFILL="P",zt=Dt,Kt=Ie.f,Vt=function(e,t){var n,r,a,o,i,s=e.target,l=e.global,u=e.stat;if(n=l?c:u?c[s]||ie(s,{}):(c[s]||{}).prototype)for(r in t){if(o=t[r],a=e.dontCallGetSet?(i=Kt(n,r))&&i.value:n[r],!zt(l?r:s+(u?".":"#")+r,e.forced)&&void 0!==a){if(typeof o==typeof a)continue;Bt(o,a)}(e.sham||a&&a.sham)&&Ve(o,"sham",!0),ht(n,r,o,e)}},Ht={};Ht[Ce("toStringTag")]="z";var Wt,Zt="[object z]"===String(Ht),qt=Ce("toStringTag"),Yt=Object,Jt="Arguments"===x(function(){return arguments}()),Qt=Zt?x:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Yt(e),qt))?n:Jt?x(t):"Object"===(r=x(t))&&B(t.callee)?"Arguments":r},Xt=String,en=function(e){if("Symbol"===Qt(e))throw new TypeError("Cannot convert a Symbol value to a string");return Xt(e)},tn=Object.keys||function(e){return Mt(e,Tt)},nn=f&&!Oe?Object.defineProperties:function(e,t){Be(e);for(var n,r=R(t),a=tn(t),o=a.length,i=0;o>i;)Ke.f(e,n=a[i++],r[n]);return e},rn={f:nn},an=D("document","documentElement"),on="prototype",sn="script",ln=at("IE_PROTO"),un=function(){},cn=function(e){return"<"+sn+">"+e+"</"+sn+">"},dn=function(e){e.write(cn("")),e.close();var t=e.parentWindow.Object;return e=null,t},fn=function(){try{Wt=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;fn="undefined"!=typeof document?document.domain&&Wt?dn(Wt):(t=Me("iframe"),n="java"+sn+":",t.style.display="none",an.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(cn("document.F=Object")),e.close(),e.F):dn(Wt);for(var r=Tt.length;r--;)delete fn[on][Tt[r]];return fn()};ot[ln]=!0;var hn=Object.create||function(e,t){var n;return null!==e?(un[on]=Be(e),n=new un,un[on]=null,n[ln]=e):n=fn(),void 0===t?n:rn.f(n,t)},pn=k([].slice),gn=It.f,mn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],vn={f:function(e){return mn&&"Window"===x(e)?function(e){try{return gn(e)}catch(e){return pn(mn)}}(e):gn(R(e))}},yn=function(e,t,n){return n.get&&ft(n.get,t,{getter:!0}),n.set&&ft(n.set,t,{setter:!0}),Ke.f(e,t,n)},bn={f:Ce},wn=c,Cn=Ke.f,Sn=function(e){var t=wn.Symbol||(wn.Symbol={});he(t,e)||Cn(t,e,{value:bn.f(e)})},En=function(){var e=D("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=Ce("toPrimitive");t&&!t[r]&&ht(t,r,(function(e){return g(n,this)}),{arity:1})},kn=Ke.f,$n=Ce("toStringTag"),An=function(e,t,n){e&&!n&&(e=e.prototype),e&&!he(e,$n)&&kn(e,$n,{configurable:!0,value:t})},xn=function(e){if("Function"===x(e))return k(e)},Mn=xn(xn.bind),Tn=function(e,t){return ee(e),void 0===t?e:h?Mn(e,t):function(){return e.apply(t,arguments)}},Pn=Array.isArray||function(e){return"Array"===x(e)},Nn=function(){},In=[],On=D("Reflect","construct"),Rn=/^\s*(?:class|function)\b/,Fn=k(Rn.exec),Bn=!Rn.test(Nn),Ln=function(e){if(!B(e))return!1;try{return On(Nn,In,e),!0}catch(e){return!1}},Dn=function(e){if(!B(e))return!1;switch(Qt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Bn||!!Fn(Rn,et(e))}catch(e){return!0}};Dn.sham=!0;var _n=!On||d((function(){var e;return Ln(Ln.call)||!Ln(Object)||!Ln((function(){e=!0}))||e}))?Dn:Ln,Gn=Ce("species"),jn=Array,Un=function(e,t){return new(function(e){var t;return Pn(e)&&(t=e.constructor,(_n(t)&&(t===jn||Pn(t.prototype))||L(t)&&null===(t=t[Gn]))&&(t=void 0)),void 0===t?jn:t}(e))(0===t?0:t)},zn=k([].push),Kn=function(e){var t=1===e,n=2===e,r=3===e,a=4===e,o=6===e,i=7===e,s=5===e||o;return function(l,u,c,d){for(var f,h,p=de(l),g=P(p),m=Et(g),v=Tn(u,c),y=0,b=d||Un,w=t?b(l,m):n||i?b(l,0):void 0;m>y;y++)if((s||y in g)&&(h=v(f=g[y],y,p),e))if(t)w[y]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:zn(w,f)}else switch(e){case 4:return!1;case 7:zn(w,f)}return o?-1:r||a?a:w}},Vn={forEach:Kn(0),map:Kn(1),filter:Kn(2),some:Kn(3),every:Kn(4),find:Kn(5),findIndex:Kn(6),filterReject:Kn(7)},Hn=Vn.forEach,Wn=at("hidden"),Zn="Symbol",qn="prototype",Yn=dt.set,Jn=dt.getterFor(Zn),Qn=Object[qn],Xn=c.Symbol,er=Xn&&Xn[qn],tr=c.RangeError,nr=c.TypeError,rr=c.QObject,ar=Ie.f,or=Ke.f,ir=vn.f,sr=b.f,lr=k([].push),ur=ue("symbols"),cr=ue("op-symbols"),dr=ue("wks"),fr=!rr||!rr[qn]||!rr[qn].findChild,hr=function(e,t,n){var r=ar(Qn,t);r&&delete Qn[t],or(e,t,n),r&&e!==Qn&&or(Qn,t,r)},pr=f&&d((function(){return 7!==hn(or({},"a",{get:function(){return or(this,"a",{value:7}).a}})).a}))?hr:or,gr=function(e,t){var n=ur[e]=hn(er);return Yn(n,{type:Zn,tag:e,description:t}),f||(n.description=t),n},mr=function(e,t,n){e===Qn&&mr(cr,t,n),Be(e);var r=$e(t);return Be(n),he(ur,r)?(n.enumerable?(he(e,Wn)&&e[Wn][r]&&(e[Wn][r]=!1),n=hn(n,{enumerable:w(0,!1)})):(he(e,Wn)||or(e,Wn,w(1,hn(null))),e[Wn][r]=!0),pr(e,r,n)):or(e,r,n)},vr=function(e,t){Be(e);var n=R(t),r=tn(n).concat(Cr(n));return Hn(r,(function(t){f&&!g(yr,n,t)||mr(e,t,n[t])})),e},yr=function(e){var t=$e(e),n=g(sr,this,t);return!(this===Qn&&he(ur,t)&&!he(cr,t))&&(!(n||!he(this,t)||!he(ur,t)||he(this,Wn)&&this[Wn][t])||n)},br=function(e,t){var n=R(e),r=$e(t);if(n!==Qn||!he(ur,r)||he(cr,r)){var a=ar(n,r);return!a||!he(ur,r)||he(n,Wn)&&n[Wn][r]||(a.enumerable=!0),a}},wr=function(e){var t=ir(R(e)),n=[];return Hn(t,(function(e){he(ur,e)||he(ot,e)||lr(n,e)})),n},Cr=function(e){var t=e===Qn,n=ir(t?cr:R(e)),r=[];return Hn(n,(function(e){!he(ur,e)||t&&!he(Qn,e)||lr(r,ur[e])})),r};W||(Xn=function(){if(_(er,this))throw new nr("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?en(arguments[0]):void 0,t=ve(e),n=function(e){var r=void 0===this?c:this;r===Qn&&g(n,cr,e),he(r,Wn)&&he(r[Wn],t)&&(r[Wn][t]=!1);var a=w(1,e);try{pr(r,t,a)}catch(e){if(!(e instanceof tr))throw e;hr(r,t,a)}};return f&&fr&&pr(Qn,t,{configurable:!0,set:n}),gr(t,e)},er=Xn[qn],ht(er,"toString",(function(){return Jn(this).tag})),ht(Xn,"withoutSetter",(function(e){return gr(ve(e),e)})),b.f=yr,Ke.f=mr,rn.f=vr,Ie.f=br,It.f=vn.f=wr,Ot.f=Cr,bn.f=function(e){return gr(Ce(e),e)},f&&(yn(er,"description",{configurable:!0,get:function(){return Jn(this).description}}),ht(Qn,"propertyIsEnumerable",yr,{unsafe:!0}))),Vt({global:!0,constructor:!0,wrap:!0,forced:!W,sham:!W},{Symbol:Xn}),Hn(tn(dr),(function(e){Sn(e)})),Vt({target:Zn,stat:!0,forced:!W},{useSetter:function(){fr=!0},useSimple:function(){fr=!1}}),Vt({target:"Object",stat:!0,forced:!W,sham:!f},{create:function(e,t){return void 0===t?hn(e):vr(hn(e),t)},defineProperty:mr,defineProperties:vr,getOwnPropertyDescriptor:br}),Vt({target:"Object",stat:!0,forced:!W},{getOwnPropertyNames:wr}),En(),An(Xn,Zn),ot[Wn]=!0;var Sr=W&&!!Symbol.for&&!!Symbol.keyFor,Er=ue("string-to-symbol-registry"),kr=ue("symbol-to-string-registry");Vt({target:"Symbol",stat:!0,forced:!Sr},{for:function(e){var t=en(e);if(he(Er,t))return Er[t];var n=D("Symbol")(t);return Er[t]=n,kr[n]=t,n}});var $r=ue("symbol-to-string-registry");Vt({target:"Symbol",stat:!0,forced:!Sr},{keyFor:function(e){if(!Y(e))throw new TypeError(Q(e)+" is not a symbol");if(he($r,e))return $r[e]}});var Ar=Function.prototype,xr=Ar.apply,Mr=Ar.call,Tr="object"==typeof Reflect&&Reflect.apply||(h?Mr.bind(xr):function(){return Mr.apply(xr,arguments)}),Pr=k([].push),Nr=function(e){if(B(e))return e;if(Pn(e)){for(var t=e.length,n=[],r=0;r<t;r++){var a=e[r];"string"==typeof a?Pr(n,a):"number"!=typeof a&&"Number"!==x(a)&&"String"!==x(a)||Pr(n,en(a))}var o=n.length,i=!0;return function(e,t){if(i)return i=!1,t;if(Pn(this))return t;for(var r=0;r<o;r++)if(n[r]===e)return t}}},Ir=String,Or=D("JSON","stringify"),Rr=k(/./.exec),Fr=k("".charAt),Br=k("".charCodeAt),Lr=k("".replace),Dr=k(1..toString),_r=/[\uD800-\uDFFF]/g,Gr=/^[\uD800-\uDBFF]$/,jr=/^[\uDC00-\uDFFF]$/,Ur=!W||d((function(){var e=D("Symbol")("stringify detection");return"[null]"!==Or([e])||"{}"!==Or({a:e})||"{}"!==Or(Object(e))})),zr=d((function(){return'"\\udf06\\ud834"'!==Or("\udf06\ud834")||'"\\udead"'!==Or("\udead")})),Kr=function(e,t){var n=pn(arguments),r=Nr(t);if(B(r)||void 0!==e&&!Y(e))return n[1]=function(e,t){if(B(r)&&(t=g(r,this,Ir(e),t)),!Y(t))return t},Tr(Or,null,n)},Vr=function(e,t,n){var r=Fr(n,t-1),a=Fr(n,t+1);return Rr(Gr,e)&&!Rr(jr,a)||Rr(jr,e)&&!Rr(Gr,r)?"\\u"+Dr(Br(e,0),16):e};Or&&Vt({target:"JSON",stat:!0,arity:3,forced:Ur||zr},{stringify:function(e,t,n){var r=pn(arguments),a=Tr(Ur?Kr:Or,null,r);return zr&&"string"==typeof a?Lr(a,_r,Vr):a}});var Hr=!W||d((function(){Ot.f(1)}));Vt({target:"Object",stat:!0,forced:Hr},{getOwnPropertySymbols:function(e){var t=Ot.f;return t?t(de(e)):[]}});var Wr=c.Symbol,Zr=Wr&&Wr.prototype;if(f&&B(Wr)&&(!("description"in Zr)||void 0!==Wr().description)){var qr={},Yr=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:en(arguments[0]),t=_(Zr,this)?new Wr(e):void 0===e?Wr():Wr(e);return""===e&&(qr[t]=!0),t};Bt(Yr,Wr),Yr.prototype=Zr,Zr.constructor=Yr;var Jr="Symbol(description detection)"===String(Wr("description detection")),Qr=k(Zr.valueOf),Xr=k(Zr.toString),ea=/^Symbol\((.*)\)[^)]+$/,ta=k("".replace),na=k("".slice);yn(Zr,"description",{configurable:!0,get:function(){var e=Qr(this);if(he(qr,e))return"";var t=Xr(e),n=Jr?na(t,7,-1):ta(t,ea,"$1");return""===n?void 0:n}}),Vt({global:!0,constructor:!0,forced:!0},{Symbol:Yr})}Sn("asyncIterator"),Sn("hasInstance"),Sn("isConcatSpreadable"),Sn("iterator"),Sn("match"),Sn("matchAll"),Sn("replace"),Sn("search"),Sn("species"),Sn("split"),Sn("toPrimitive"),En(),Sn("toStringTag"),An(D("Symbol"),"Symbol"),Sn("unscopables");var ra=function(e,t,n){try{return k(ee(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},aa=function(e){return L(e)||null===e},oa=String,ia=TypeError,sa=function(e){if(aa(e))return e;throw new ia("Can't set "+oa(e)+" as a prototype")},la=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=ra(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Be(n),sa(r),t?e(n,r):n.__proto__=r,n}}():void 0),ua=Ke.f,ca=function(e,t,n){n in e||ua(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})},da=function(e,t,n){var r,a;return la&&B(r=t.constructor)&&r!==n&&L(a=r.prototype)&&a!==n.prototype&&la(e,a),e},fa=function(e,t){return void 0===e?arguments.length<2?"":t:en(e)},ha=function(e,t){L(t)&&"cause"in t&&Ve(e,"cause",t.cause)},pa=Error,ga=k("".replace),ma=String(new pa("zxcasd").stack),va=/\n\s*at [^:]*:[^\n]*/,ya=va.test(ma),ba=function(e,t){if(ya&&"string"==typeof e&&!pa.prepareStackTrace)for(;t--;)e=ga(e,va,"");return e},wa=!d((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",w(1,7)),7!==e.stack)})),Ca=Error.captureStackTrace,Sa=function(e,t,n,r){wa&&(Ca?Ca(e,t):Ve(e,"stack",ba(n,r)))},Ea=function(e,t,n,r){var a="stackTraceLimit",o=r?2:1,i=e.split("."),s=i[i.length-1],l=D.apply(null,i);if(l){var u=l.prototype;if(he(u,"cause")&&delete u.cause,!n)return l;var c=D("Error"),d=t((function(e,t){var n=fa(r?t:e,void 0),a=r?new l(e):new l;return void 0!==n&&Ve(a,"message",n),Sa(a,d,a.stack,2),this&&_(u,this)&&da(a,this,d),arguments.length>o&&ha(a,arguments[o]),a}));d.prototype=u,"Error"!==s?la?la(d,c):Bt(d,c,{name:!0}):f&&a in l&&(ca(d,l,a),ca(d,l,"prepareStackTrace")),Bt(d,l);try{u.name!==s&&Ve(u,"name",s),u.constructor=d}catch(e){}return d}},ka="WebAssembly",$a=c[ka],Aa=7!==new Error("e",{cause:7}).cause,xa=function(e,t){var n={};n[e]=Ea(e,t,Aa),Vt({global:!0,constructor:!0,arity:1,forced:Aa},n)},Ma=function(e,t){if($a&&$a[e]){var n={};n[e]=Ea(ka+"."+e,t,Aa),Vt({target:ka,stat:!0,constructor:!0,arity:1,forced:Aa},n)}};xa("Error",(function(e){return function(t){return Tr(e,this,arguments)}})),xa("EvalError",(function(e){return function(t){return Tr(e,this,arguments)}})),xa("RangeError",(function(e){return function(t){return Tr(e,this,arguments)}})),xa("ReferenceError",(function(e){return function(t){return Tr(e,this,arguments)}})),xa("SyntaxError",(function(e){return function(t){return Tr(e,this,arguments)}})),xa("TypeError",(function(e){return function(t){return Tr(e,this,arguments)}})),xa("URIError",(function(e){return function(t){return Tr(e,this,arguments)}})),Ma("CompileError",(function(e){return function(t){return Tr(e,this,arguments)}})),Ma("LinkError",(function(e){return function(t){return Tr(e,this,arguments)}})),Ma("RuntimeError",(function(e){return function(t){return Tr(e,this,arguments)}}));var Ta=Error.prototype.toString,Pa=d((function(){if(f){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==Ta.call(e))return!0}return"2: 1"!==Ta.call({message:1,name:2})||"Error"!==Ta.call({})}))?function(){var e=Be(this),t=fa(e.name,"Error"),n=fa(e.message);return t?n?t+": "+n:t:n}:Ta,Na=Error.prototype;Na.toString!==Pa&&ht(Na,"toString",Pa);var Ia=!d((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Oa=at("IE_PROTO"),Ra=Object,Fa=Ra.prototype,Ba=Ia?Ra.getPrototypeOf:function(e){var t=de(e);if(he(t,Oa))return t[Oa];var n=t.constructor;return B(n)&&t instanceof n?n.prototype:t instanceof Ra?Fa:null},La={},Da=Ce("iterator"),_a=Array.prototype,Ga=function(e){return void 0!==e&&(La.Array===e||_a[Da]===e)},ja=Ce("iterator"),Ua=function(e){if(!N(e))return te(e,ja)||te(e,"@@iterator")||La[Qt(e)]},za=TypeError,Ka=function(e,t){var n=arguments.length<2?Ua(e):t;if(ee(n))return Be(g(n,e));throw new za(Q(e)+" is not iterable")},Va=function(e,t,n){var r,a;Be(e);try{if(!(r=te(e,"return"))){if("throw"===t)throw n;return n}r=g(r,e)}catch(e){a=!0,r=e}if("throw"===t)throw n;if(a)throw r;return Be(r),n},Ha=TypeError,Wa=function(e,t){this.stopped=e,this.result=t},Za=Wa.prototype,qa=function(e,t,n){var r,a,o,i,s,l,u,c=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_RECORD),h=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),m=Tn(t,c),v=function(e){return r&&Va(r,"normal",e),new Wa(!0,e)},y=function(e){return d?(Be(e),p?m(e[0],e[1],v):m(e[0],e[1])):p?m(e,v):m(e)};if(f)r=e.iterator;else if(h)r=e;else{if(!(a=Ua(e)))throw new Ha(Q(e)+" is not iterable");if(Ga(a)){for(o=0,i=Et(e);i>o;o++)if((s=y(e[o]))&&_(Za,s))return s;return new Wa(!1)}r=Ka(e,a)}for(l=f?e.next:r.next;!(u=g(l,r)).done;){try{s=y(u.value)}catch(e){Va(r,"throw",e)}if("object"==typeof s&&s&&_(Za,s))return s}return new Wa(!1)},Ya=Ce("toStringTag"),Ja=Error,Qa=[].push,Xa=function(e,t){var n,r=_(eo,this);la?n=la(new Ja,r?Ba(this):eo):(n=r?this:hn(eo),Ve(n,Ya,"Error")),void 0!==t&&Ve(n,"message",fa(t)),Sa(n,Xa,n.stack,1),arguments.length>2&&ha(n,arguments[2]);var a=[];return qa(e,Qa,{that:a}),Ve(n,"errors",a),n};la?la(Xa,Ja):Bt(Xa,Ja,{name:!0});var eo=Xa.prototype=hn(Ja.prototype,{constructor:w(1,Xa),message:w(1,""),name:w(1,"AggregateError")});Vt({global:!0,constructor:!0,arity:2},{AggregateError:Xa});var to="AggregateError",no=D(to),ro=!d((function(){return 1!==no([1]).errors[0]}))&&d((function(){return 7!==no([1],to,{cause:7}).cause}));Vt({global:!0,constructor:!0,arity:2,forced:ro},{AggregateError:Ea(to,(function(e){return function(t,n){return Tr(e,this,arguments)}}),ro,!0)});var ao=Ke.f,oo=Ce("unscopables"),io=Array.prototype;void 0===io[oo]&&ao(io,oo,{configurable:!0,value:hn(null)});var so=function(e){io[oo][e]=!0};Vt({target:"Array",proto:!0},{at:function(e){var t=de(this),n=Et(t),r=vt(e),a=r>=0?r:n+r;return a<0||a>=n?void 0:t[a]}}),so("at");var lo=TypeError,uo=function(e){if(e>9007199254740991)throw lo("Maximum allowed index exceeded");return e},co=function(e,t,n){var r=$e(t);r in e?Ke.f(e,r,w(0,n)):e[r]=n},fo=Ce("species"),ho=function(e){return V>=51||!d((function(){var t=[];return(t.constructor={})[fo]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},po=Ce("isConcatSpreadable"),go=V>=51||!d((function(){var e=[];return e[po]=!1,e.concat()[0]!==e})),mo=function(e){if(!L(e))return!1;var t=e[po];return void 0!==t?!!t:Pn(e)},vo=!go||!ho("concat");Vt({target:"Array",proto:!0,arity:1,forced:vo},{concat:function(e){var t,n,r,a,o,i=de(this),s=Un(i,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(mo(o=-1===t?i:arguments[t]))for(a=Et(o),uo(l+a),n=0;n<a;n++,l++)n in o&&co(s,l,o[n]);else uo(l+1),co(s,l++,o);return s.length=l,s}});var yo=TypeError,bo=function(e,t){if(!delete e[t])throw new yo("Cannot delete property "+Q(t)+" of "+Q(e))},wo=Math.min,Co=[].copyWithin||function(e,t){var n=de(this),r=Et(n),a=wt(e,r),o=wt(t,r),i=arguments.length>2?arguments[2]:void 0,s=wo((void 0===i?r:wt(i,r))-o,r-a),l=1;for(o<a&&a<o+s&&(l=-1,o+=s-1,a+=s-1);s-- >0;)o in n?n[a]=n[o]:bo(n,a),a+=l,o+=l;return n};Vt({target:"Array",proto:!0},{copyWithin:Co}),so("copyWithin");var So=function(e,t){var n=[][e];return!!n&&d((function(){n.call(null,t||function(){return 1},1)}))},Eo=Vn.every,ko=So("every");Vt({target:"Array",proto:!0,forced:!ko},{every:function(e){return Eo(this,e,arguments.length>1?arguments[1]:void 0)}});var $o=function(e){for(var t=de(this),n=Et(t),r=arguments.length,a=wt(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,i=void 0===o?n:wt(o,n);i>a;)t[a++]=e;return t};Vt({target:"Array",proto:!0},{fill:$o}),so("fill");var Ao=Vn.filter,xo=ho("filter");Vt({target:"Array",proto:!0,forced:!xo},{filter:function(e){return Ao(this,e,arguments.length>1?arguments[1]:void 0)}});var Mo=Vn.find,To="find",Po=!0;To in[]&&Array(1)[To]((function(){Po=!1})),Vt({target:"Array",proto:!0,forced:Po},{find:function(e){return Mo(this,e,arguments.length>1?arguments[1]:void 0)}}),so(To);var No=Vn.findIndex,Io="findIndex",Oo=!0;Io in[]&&Array(1)[Io]((function(){Oo=!1})),Vt({target:"Array",proto:!0,forced:Oo},{findIndex:function(e){return No(this,e,arguments.length>1?arguments[1]:void 0)}}),so(Io);var Ro=function(e){var t=1===e;return function(n,r,a){for(var o,i=de(n),s=P(i),l=Et(s),u=Tn(r,a);l-- >0;)if(u(o=s[l],l,i))switch(e){case 0:return o;case 1:return l}return t?-1:void 0}},Fo={findLast:Ro(0),findLastIndex:Ro(1)},Bo=Fo.findLast;Vt({target:"Array",proto:!0},{findLast:function(e){return Bo(this,e,arguments.length>1?arguments[1]:void 0)}}),so("findLast");var Lo=Fo.findLastIndex;Vt({target:"Array",proto:!0},{findLastIndex:function(e){return Lo(this,e,arguments.length>1?arguments[1]:void 0)}}),so("findLastIndex");var Do=function(e,t,n,r,a,o,i,s){for(var l,u,c=a,d=0,f=!!i&&Tn(i,s);d<r;)d in n&&(l=f?f(n[d],d,t):n[d],o>0&&Pn(l)?(u=Et(l),c=Do(e,t,l,u,c,o-1)-1):(uo(c+1),e[c]=l),c++),d++;return c},_o=Do;Vt({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=de(this),n=Et(t),r=Un(t,0);return r.length=_o(r,t,t,n,0,void 0===e?1:vt(e)),r}}),Vt({target:"Array",proto:!0},{flatMap:function(e){var t,n=de(this),r=Et(n);return ee(e),(t=Un(n,0)).length=_o(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}});var Go=Vn.forEach,jo=So("forEach")?[].forEach:function(e){return Go(this,e,arguments.length>1?arguments[1]:void 0)};Vt({target:"Array",proto:!0,forced:[].forEach!==jo},{forEach:jo});var Uo=function(e,t,n,r){try{return r?t(Be(n)[0],n[1]):t(n)}catch(t){Va(e,"throw",t)}},zo=Array,Ko=function(e){var t=de(e),n=_n(this),r=arguments.length,a=r>1?arguments[1]:void 0,o=void 0!==a;o&&(a=Tn(a,r>2?arguments[2]:void 0));var i,s,l,u,c,d,f=Ua(t),h=0;if(!f||this===zo&&Ga(f))for(i=Et(t),s=n?new this(i):zo(i);i>h;h++)d=o?a(t[h],h):t[h],co(s,h,d);else for(c=(u=Ka(t,f)).next,s=n?new this:[];!(l=g(c,u)).done;h++)d=o?Uo(u,a,[l.value,h],!0):l.value,co(s,h,d);return s.length=h,s},Vo=Ce("iterator"),Ho=!1;try{var Wo=0,Zo={next:function(){return{done:!!Wo++}},return:function(){Ho=!0}};Zo[Vo]=function(){return this},Array.from(Zo,(function(){throw 2}))}catch(e){}var qo=function(e,t){try{if(!t&&!Ho)return!1}catch(e){return!1}var n=!1;try{var r={};r[Vo]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Yo=!qo((function(e){Array.from(e)}));Vt({target:"Array",stat:!0,forced:Yo},{from:Ko});var Jo=$t.includes,Qo=d((function(){return!Array(1).includes()}));Vt({target:"Array",proto:!0,forced:Qo},{includes:function(e){return Jo(this,e,arguments.length>1?arguments[1]:void 0)}}),so("includes");var Xo=$t.indexOf,ei=xn([].indexOf),ti=!!ei&&1/ei([1],1,-0)<0,ni=ti||!So("indexOf");Vt({target:"Array",proto:!0,forced:ni},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return ti?ei(this,e,t)||0:Xo(this,e,t)}}),Vt({target:"Array",stat:!0},{isArray:Pn});var ri,ai,oi,ii=Ce("iterator"),si=!1;[].keys&&("next"in(oi=[].keys())?(ai=Ba(Ba(oi)))!==Object.prototype&&(ri=ai):si=!0);var li=!L(ri)||d((function(){var e={};return ri[ii].call(e)!==e}));li&&(ri={}),B(ri[ii])||ht(ri,ii,(function(){return this}));var ui={IteratorPrototype:ri,BUGGY_SAFARI_ITERATORS:si},ci=ui.IteratorPrototype,di=function(){return this},fi=function(e,t,n,r){var a=t+" Iterator";return e.prototype=hn(ci,{next:w(+!r,n)}),An(e,a,!1),La[a]=di,e},hi=qe.PROPER,pi=qe.CONFIGURABLE,gi=ui.IteratorPrototype,mi=ui.BUGGY_SAFARI_ITERATORS,vi=Ce("iterator"),yi="keys",bi="values",wi="entries",Ci=function(){return this},Si=function(e,t,n,r,a,o,i){fi(n,t,r);var s,l,u,c=function(e){if(e===a&&m)return m;if(!mi&&e&&e in h)return h[e];switch(e){case yi:case bi:case wi:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",f=!1,h=e.prototype,p=h[vi]||h["@@iterator"]||a&&h[a],m=!mi&&p||c(a),v="Array"===t&&h.entries||p;if(v&&(s=Ba(v.call(new e)))!==Object.prototype&&s.next&&(Ba(s)!==gi&&(la?la(s,gi):B(s[vi])||ht(s,vi,Ci)),An(s,d,!0)),hi&&a===bi&&p&&p.name!==bi&&(pi?Ve(h,"name",bi):(f=!0,m=function(){return g(p,this)})),a)if(l={values:c(bi),keys:o?m:c(yi),entries:c(wi)},i)for(u in l)(mi||f||!(u in h))&&ht(h,u,l[u]);else Vt({target:t,proto:!0,forced:mi||f},l);return h[vi]!==m&&ht(h,vi,m,{name:a}),La[t]=m,l},Ei=function(e,t){return{value:e,done:t}},ki=Ke.f,$i="Array Iterator",Ai=dt.set,xi=dt.getterFor($i),Mi=Si(Array,"Array",(function(e,t){Ai(this,{type:$i,target:R(e),index:0,kind:t})}),(function(){var e=xi(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,Ei(void 0,!0);switch(e.kind){case"keys":return Ei(n,!1);case"values":return Ei(t[n],!1)}return Ei([n,t[n]],!1)}),"values"),Ti=La.Arguments=La.Array;if(so("keys"),so("values"),so("entries"),f&&"values"!==Ti.name)try{ki(Ti,"name",{value:"values"})}catch(e){}var Pi=k([].join),Ni=P!==Object||!So("join",",");Vt({target:"Array",proto:!0,forced:Ni},{join:function(e){return Pi(R(this),void 0===e?",":e)}});var Ii=Math.min,Oi=[].lastIndexOf,Ri=!!Oi&&1/[1].lastIndexOf(1,-0)<0,Fi=So("lastIndexOf"),Bi=Ri||!Fi?function(e){if(Ri)return Tr(Oi,this,arguments)||0;var t=R(this),n=Et(t),r=n-1;for(arguments.length>1&&(r=Ii(r,vt(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:Oi;Vt({target:"Array",proto:!0,forced:Bi!==[].lastIndexOf},{lastIndexOf:Bi});var Li=Vn.map,Di=ho("map");Vt({target:"Array",proto:!0,forced:!Di},{map:function(e){return Li(this,e,arguments.length>1?arguments[1]:void 0)}});var _i=Array,Gi=d((function(){function e(){}return!(_i.of.call(e)instanceof e)}));Vt({target:"Array",stat:!0,forced:Gi},{of:function(){for(var e=0,t=arguments.length,n=new(_n(this)?this:_i)(t);t>e;)co(n,e,arguments[e++]);return n.length=t,n}});var ji=TypeError,Ui=Object.getOwnPropertyDescriptor,zi=f&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(Pn(e)&&!Ui(e,"length").writable)throw new ji("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Ki=d((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}();Vt({target:"Array",proto:!0,arity:1,forced:Ki},{push:function(e){var t=de(this),n=Et(t),r=arguments.length;uo(n+r);for(var a=0;a<r;a++)t[n]=arguments[a],n++;return zi(t,n),n}});var Vi=TypeError,Hi=function(e){return function(t,n,r,a){var o=de(t),i=P(o),s=Et(o);ee(n);var l=e?s-1:0,u=e?-1:1;if(r<2)for(;;){if(l in i){a=i[l],l+=u;break}if(l+=u,e?l<0:s<=l)throw new Vi("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=u)l in i&&(a=n(a,i[l],l,o));return a}},Wi={left:Hi(!1),right:Hi(!0)},Zi="process"===x(c.process),qi=Wi.left,Yi=!Zi&&V>79&&V<83||!So("reduce");Vt({target:"Array",proto:!0,forced:Yi},{reduce:function(e){var t=arguments.length;return qi(this,e,t,t>1?arguments[1]:void 0)}});var Ji=Wi.right,Qi=!Zi&&V>79&&V<83||!So("reduceRight");Vt({target:"Array",proto:!0,forced:Qi},{reduceRight:function(e){return Ji(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Xi=k([].reverse),es=[1,2];Vt({target:"Array",proto:!0,forced:String(es)===String(es.reverse())},{reverse:function(){return Pn(this)&&(this.length=this.length),Xi(this)}});var ts=ho("slice"),ns=Ce("species"),rs=Array,as=Math.max;Vt({target:"Array",proto:!0,forced:!ts},{slice:function(e,t){var n,r,a,o=R(this),i=Et(o),s=wt(e,i),l=wt(void 0===t?i:t,i);if(Pn(o)&&(n=o.constructor,(_n(n)&&(n===rs||Pn(n.prototype))||L(n)&&null===(n=n[ns]))&&(n=void 0),n===rs||void 0===n))return pn(o,s,l);for(r=new(void 0===n?rs:n)(as(l-s,0)),a=0;s<l;s++,a++)s in o&&co(r,a,o[s]);return r.length=a,r}});var os=Vn.some,is=So("some");Vt({target:"Array",proto:!0,forced:!is},{some:function(e){return os(this,e,arguments.length>1?arguments[1]:void 0)}});var ss=Math.floor,ls=function(e,t){var n=e.length;if(n<8)for(var r,a,o=1;o<n;){for(a=o,r=e[o];a&&t(e[a-1],r)>0;)e[a]=e[--a];a!==o++&&(e[a]=r)}else for(var i=ss(n/2),s=ls(pn(e,0,i),t),l=ls(pn(e,i),t),u=s.length,c=l.length,d=0,f=0;d<u||f<c;)e[d+f]=d<u&&f<c?t(s[d],l[f])<=0?s[d++]:l[f++]:d<u?s[d++]:l[f++];return e},us=ls,cs=G.match(/firefox\/(\d+)/i),ds=!!cs&&+cs[1],fs=/MSIE|Trident/.test(G),hs=G.match(/AppleWebKit\/(\d+)\./),ps=!!hs&&+hs[1],gs=[],ms=k(gs.sort),vs=k(gs.push),ys=d((function(){gs.sort(void 0)})),bs=d((function(){gs.sort(null)})),ws=So("sort"),Cs=!d((function(){if(V)return V<70;if(!(ds&&ds>3)){if(fs)return!0;if(ps)return ps<603;var e,t,n,r,a="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)gs.push({k:t+r,v:n})}for(gs.sort((function(e,t){return t.v-e.v})),r=0;r<gs.length;r++)t=gs[r].k.charAt(0),a.charAt(a.length-1)!==t&&(a+=t);return"DGBEFHACIJK"!==a}}));Vt({target:"Array",proto:!0,forced:ys||!bs||!ws||!Cs},{sort:function(e){void 0!==e&&ee(e);var t=de(this);if(Cs)return void 0===e?ms(t):ms(t,e);var n,r,a=[],o=Et(t);for(r=0;r<o;r++)r in t&&vs(a,t[r]);for(us(a,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:en(t)>en(n)?1:-1}}(e)),n=Et(a),r=0;r<n;)t[r]=a[r++];for(;r<o;)bo(t,r++);return t}});var Ss=Ce("species"),Es=function(e){var t=D(e);f&&t&&!t[Ss]&&yn(t,Ss,{configurable:!0,get:function(){return this}})};Es("Array");var ks=ho("splice"),$s=Math.max,As=Math.min;Vt({target:"Array",proto:!0,forced:!ks},{splice:function(e,t){var n,r,a,o,i,s,l=de(this),u=Et(l),c=wt(e,u),d=arguments.length;for(0===d?n=r=0:1===d?(n=0,r=u-c):(n=d-2,r=As($s(vt(t),0),u-c)),uo(u+n-r),a=Un(l,r),o=0;o<r;o++)(i=c+o)in l&&co(a,o,l[i]);if(a.length=r,n<r){for(o=c;o<u-r;o++)s=o+n,(i=o+r)in l?l[s]=l[i]:bo(l,s);for(o=u;o>u-r+n;o--)bo(l,o-1)}else if(n>r)for(o=u-r;o>c;o--)s=o+n-1,(i=o+r-1)in l?l[s]=l[i]:bo(l,s);for(o=0;o<n;o++)l[o+c]=arguments[o+2];return zi(l,u-r+n),a}});var xs=function(e,t){for(var n=Et(e),r=new t(n),a=0;a<n;a++)r[a]=e[n-a-1];return r},Ms=Array;Vt({target:"Array",proto:!0},{toReversed:function(){return xs(R(this),Ms)}}),so("toReversed");var Ts=function(e,t,n){for(var r=0,a=arguments.length>2?n:Et(t),o=new e(a);a>r;)o[r]=t[r++];return o},Ps=function(e,t){var n=c[e],r=n&&n.prototype;return r&&r[t]},Ns=Array,Is=k(Ps("Array","sort"));Vt({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&ee(e);var t=R(this),n=Ts(Ns,t);return Is(n,e)}}),so("toSorted");var Os=Array,Rs=Math.max,Fs=Math.min;Vt({target:"Array",proto:!0},{toSpliced:function(e,t){var n,r,a,o,i=R(this),s=Et(i),l=wt(e,s),u=arguments.length,c=0;for(0===u?n=r=0:1===u?(n=0,r=s-l):(n=u-2,r=Fs(Rs(vt(t),0),s-l)),a=uo(s+n-r),o=Os(a);c<l;c++)o[c]=i[c];for(;c<l+n;c++)o[c]=arguments[c-l+2];for(;c<a;c++)o[c]=i[c+r-n];return o}}),so("toSpliced"),so("flat"),so("flatMap");var Bs=1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}();Vt({target:"Array",proto:!0,arity:1,forced:Bs},{unshift:function(e){var t=de(this),n=Et(t),r=arguments.length;if(r){uo(n+r);for(var a=n;a--;){var o=a+r;a in t?t[o]=t[a]:bo(t,o)}for(var i=0;i<r;i++)t[i]=arguments[i]}return zi(t,n+r)}});var Ls=RangeError,Ds=function(e,t,n,r){var a=Et(e),o=vt(n),i=o<0?a+o:o;if(i>=a||i<0)throw new Ls("Incorrect index");for(var s=new t(a),l=0;l<a;l++)s[l]=l===i?r:e[l];return s},_s=Array;Vt({target:"Array",proto:!0},{with:function(e,t){return Ds(R(this),_s,e,t)}});var Gs="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,js=function(e,t,n){for(var r in t)ht(e,r,t[r],n);return e},Us=TypeError,zs=function(e,t){if(_(t,e))return e;throw new Us("Incorrect invocation")},Ks=RangeError,Vs=function(e){if(void 0===e)return 0;var t=vt(e),n=St(t);if(t!==n)throw new Ks("Wrong length or index");return n},Hs=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1},Ws=Math.abs,Zs=2220446049250313e-31,qs=1/Zs,Ys=function(e,t,n,r){var a=+e,o=Ws(a),i=Hs(a);if(o<r)return i*function(e){return e+qs-qs}(o/r/t)*r*t;var s=(1+t/Zs)*o,l=s-(s-o);return l>n||l!=l?i*(1/0):i*l},Js=Math.fround||function(e){return Ys(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)},Qs=Array,Xs=Math.abs,el=Math.pow,tl=Math.floor,nl=Math.log,rl=Math.LN2,al=function(e,t,n){var r,a,o,i=Qs(n),s=8*n-t-1,l=(1<<s)-1,u=l>>1,c=23===t?el(2,-24)-el(2,-77):0,d=e<0||0===e&&1/e<0?1:0,f=0;for((e=Xs(e))!=e||e===1/0?(a=e!=e?1:0,r=l):(r=tl(nl(e)/rl),e*(o=el(2,-r))<1&&(r--,o*=2),(e+=r+u>=1?c/o:c*el(2,1-u))*o>=2&&(r++,o/=2),r+u>=l?(a=0,r=l):r+u>=1?(a=(e*o-1)*el(2,t),r+=u):(a=e*el(2,u-1)*el(2,t),r=0));t>=8;)i[f++]=255&a,a/=256,t-=8;for(r=r<<t|a,s+=t;s>0;)i[f++]=255&r,r/=256,s-=8;return i[--f]|=128*d,i},ol=function(e,t){var n,r=e.length,a=8*r-t-1,o=(1<<a)-1,i=o>>1,s=a-7,l=r-1,u=e[l--],c=127&u;for(u>>=7;s>0;)c=256*c+e[l--],s-=8;for(n=c&(1<<-s)-1,c>>=-s,s+=t;s>0;)n=256*n+e[l--],s-=8;if(0===c)c=1-i;else{if(c===o)return n?NaN:u?-1/0:1/0;n+=el(2,t),c-=i}return(u?-1:1)*n*el(2,c-t)},il=qe.PROPER,sl=qe.CONFIGURABLE,ll="ArrayBuffer",ul="DataView",cl="prototype",dl="Wrong index",fl=dt.getterFor(ll),hl=dt.getterFor(ul),pl=dt.set,gl=c[ll],ml=gl,vl=ml&&ml[cl],yl=c[ul],bl=yl&&yl[cl],wl=Object.prototype,Cl=c.Array,Sl=c.RangeError,El=k($o),kl=k([].reverse),$l=al,Al=ol,xl=function(e){return[255&e]},Ml=function(e){return[255&e,e>>8&255]},Tl=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Pl=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Nl=function(e){return $l(Js(e),23,4)},Il=function(e){return $l(e,52,8)},Ol=function(e,t,n){yn(e[cl],t,{configurable:!0,get:function(){return n(this)[t]}})},Rl=function(e,t,n,r){var a=hl(e),o=Vs(n),i=!!r;if(o+t>a.byteLength)throw new Sl(dl);var s=a.bytes,l=o+a.byteOffset,u=pn(s,l,l+t);return i?u:kl(u)},Fl=function(e,t,n,r,a,o){var i=hl(e),s=Vs(n),l=r(+a),u=!!o;if(s+t>i.byteLength)throw new Sl(dl);for(var c=i.bytes,d=s+i.byteOffset,f=0;f<t;f++)c[d+f]=l[u?f:t-f-1]};if(Gs){var Bl=il&&gl.name!==ll;d((function(){gl(1)}))&&d((function(){new gl(-1)}))&&!d((function(){return new gl,new gl(1.5),new gl(NaN),1!==gl.length||Bl&&!sl}))?Bl&&sl&&Ve(gl,"name",ll):((ml=function(e){return zs(this,vl),da(new gl(Vs(e)),this,ml)})[cl]=vl,vl.constructor=ml,Bt(ml,gl)),la&&Ba(bl)!==wl&&la(bl,wl);var Ll=new yl(new ml(2)),Dl=k(bl.setInt8);Ll.setInt8(0,2147483648),Ll.setInt8(1,2147483649),!Ll.getInt8(0)&&Ll.getInt8(1)||js(bl,{setInt8:function(e,t){Dl(this,e,t<<24>>24)},setUint8:function(e,t){Dl(this,e,t<<24>>24)}},{unsafe:!0})}else ml=function(e){zs(this,vl);var t=Vs(e);pl(this,{type:ll,bytes:El(Cl(t),0),byteLength:t}),f||(this.byteLength=t,this.detached=!1)},vl=ml[cl],yl=function(e,t,n){zs(this,bl),zs(e,vl);var r=fl(e),a=r.byteLength,o=vt(t);if(o<0||o>a)throw new Sl("Wrong offset");if(o+(n=void 0===n?a-o:St(n))>a)throw new Sl("Wrong length");pl(this,{type:ul,buffer:e,byteLength:n,byteOffset:o,bytes:r.bytes}),f||(this.buffer=e,this.byteLength=n,this.byteOffset=o)},bl=yl[cl],f&&(Ol(ml,"byteLength",fl),Ol(yl,"buffer",hl),Ol(yl,"byteLength",hl),Ol(yl,"byteOffset",hl)),js(bl,{getInt8:function(e){return Rl(this,1,e)[0]<<24>>24},getUint8:function(e){return Rl(this,1,e)[0]},getInt16:function(e){var t=Rl(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Rl(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return Pl(Rl(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return Pl(Rl(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return Al(Rl(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return Al(Rl(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){Fl(this,1,e,xl,t)},setUint8:function(e,t){Fl(this,1,e,xl,t)},setInt16:function(e,t){Fl(this,2,e,Ml,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){Fl(this,2,e,Ml,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){Fl(this,4,e,Tl,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){Fl(this,4,e,Tl,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){Fl(this,4,e,Nl,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){Fl(this,8,e,Il,t,arguments.length>2&&arguments[2])}});An(ml,ll),An(yl,ul);var _l={ArrayBuffer:ml,DataView:yl},Gl="ArrayBuffer",jl=_l[Gl],Ul=c[Gl];Vt({global:!0,constructor:!0,forced:Ul!==jl},{ArrayBuffer:jl}),Es(Gl);var zl,Kl,Vl,Hl=dt.enforce,Wl=dt.get,Zl=c.Int8Array,ql=Zl&&Zl.prototype,Yl=c.Uint8ClampedArray,Jl=Yl&&Yl.prototype,Ql=Zl&&Ba(Zl),Xl=ql&&Ba(ql),eu=Object.prototype,tu=c.TypeError,nu=Ce("toStringTag"),ru=ve("TYPED_ARRAY_TAG"),au="TypedArrayConstructor",ou=Gs&&!!la&&"Opera"!==Qt(c.opera),iu=!1,su={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},lu={BigInt64Array:8,BigUint64Array:8},uu=function(e){var t=Ba(e);if(L(t)){var n=Wl(t);return n&&he(n,au)?n[au]:uu(t)}},cu=function(e){if(!L(e))return!1;var t=Qt(e);return he(su,t)||he(lu,t)};for(zl in su)(Vl=(Kl=c[zl])&&Kl.prototype)?Hl(Vl)[au]=Kl:ou=!1;for(zl in lu)(Vl=(Kl=c[zl])&&Kl.prototype)&&(Hl(Vl)[au]=Kl);if((!ou||!B(Ql)||Ql===Function.prototype)&&(Ql=function(){throw new tu("Incorrect invocation")},ou))for(zl in su)c[zl]&&la(c[zl],Ql);if((!ou||!Xl||Xl===eu)&&(Xl=Ql.prototype,ou))for(zl in su)c[zl]&&la(c[zl].prototype,Xl);if(ou&&Ba(Jl)!==Xl&&la(Jl,Xl),f&&!he(Xl,nu))for(zl in iu=!0,yn(Xl,nu,{configurable:!0,get:function(){return L(this)?this[ru]:void 0}}),su)c[zl]&&Ve(c[zl],ru,zl);var du={NATIVE_ARRAY_BUFFER_VIEWS:ou,TYPED_ARRAY_TAG:iu&&ru,aTypedArray:function(e){if(cu(e))return e;throw new tu("Target is not a typed array")},aTypedArrayConstructor:function(e){if(B(e)&&(!la||_(Ql,e)))return e;throw new tu(Q(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(f){if(n)for(var a in su){var o=c[a];if(o&&he(o.prototype,e))try{delete o.prototype[e]}catch(n){try{o.prototype[e]=t}catch(e){}}}Xl[e]&&!n||ht(Xl,e,n?t:ou&&ql[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,a;if(f){if(la){if(n)for(r in su)if((a=c[r])&&he(a,e))try{delete a[e]}catch(e){}if(Ql[e]&&!n)return;try{return ht(Ql,e,n?t:ou&&Ql[e]||t)}catch(e){}}for(r in su)!(a=c[r])||a[e]&&!n||ht(a,e,t)}},getTypedArrayConstructor:uu,isView:function(e){if(!L(e))return!1;var t=Qt(e);return"DataView"===t||he(su,t)||he(lu,t)},isTypedArray:cu,TypedArray:Ql,TypedArrayPrototype:Xl};Vt({target:"ArrayBuffer",stat:!0,forced:!du.NATIVE_ARRAY_BUFFER_VIEWS},{isView:du.isView});var fu=TypeError,hu=function(e){if(_n(e))return e;throw new fu(Q(e)+" is not a constructor")},pu=Ce("species"),gu=function(e,t){var n,r=Be(e).constructor;return void 0===r||N(n=Be(r)[pu])?t:hu(n)},mu=_l.ArrayBuffer,vu=_l.DataView,yu=vu.prototype,bu=xn(mu.prototype.slice),wu=xn(yu.getUint8),Cu=xn(yu.setUint8),Su=d((function(){return!new mu(2).slice(1,void 0).byteLength}));Vt({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:Su},{slice:function(e,t){if(bu&&void 0===t)return bu(Be(this),e);for(var n=Be(this).byteLength,r=wt(e,n),a=wt(void 0===t?n:t,n),o=new(gu(this,mu))(St(a-r)),i=new vu(this),s=new vu(o),l=0;r<a;)Cu(s,l++,wu(i,r++));return o}}),Vt({global:!0,constructor:!0,forced:!Gs},{DataView:_l.DataView});var Eu=d((function(){return 120!==new Date(16e11).getYear()})),ku=k(Date.prototype.getFullYear);Vt({target:"Date",proto:!0,forced:Eu},{getYear:function(){return ku(this)-1900}});var $u=Date,Au=k($u.prototype.getTime);Vt({target:"Date",stat:!0},{now:function(){return Au(new $u)}});var xu=Date.prototype,Mu=k(xu.getTime),Tu=k(xu.setFullYear);Vt({target:"Date",proto:!0},{setYear:function(e){Mu(this);var t=vt(e);return Tu(this,t>=0&&t<=99?t+1900:t)}}),Vt({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString});var Pu=RangeError,Nu=function(e){var t=en(O(this)),n="",r=vt(e);if(r<0||r===1/0)throw new Pu("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},Iu=k(Nu),Ou=k("".slice),Ru=Math.ceil,Fu=function(e){return function(t,n,r){var a,o,i=en(O(t)),s=St(n),l=i.length,u=void 0===r?" ":en(r);return s<=l||""===u?i:((o=Iu(u,Ru((a=s-l)/u.length))).length>a&&(o=Ou(o,0,a)),e?i+o:o+i)}},Bu={start:Fu(!1),end:Fu(!0)},Lu=Bu.start,Du=RangeError,_u=isFinite,Gu=Math.abs,ju=Date.prototype,Uu=ju.toISOString,zu=k(ju.getTime),Ku=k(ju.getUTCDate),Vu=k(ju.getUTCFullYear),Hu=k(ju.getUTCHours),Wu=k(ju.getUTCMilliseconds),Zu=k(ju.getUTCMinutes),qu=k(ju.getUTCMonth),Yu=k(ju.getUTCSeconds),Ju=d((function(){return"0385-07-25T07:06:39.999Z"!==Uu.call(new Date(-50000000000001))}))||!d((function(){Uu.call(new Date(NaN))}))?function(){if(!_u(zu(this)))throw new Du("Invalid time value");var e=this,t=Vu(e),n=Wu(e),r=t<0?"-":t>9999?"+":"";return r+Lu(Gu(t),r?6:4,0)+"-"+Lu(qu(e)+1,2,0)+"-"+Lu(Ku(e),2,0)+"T"+Lu(Hu(e),2,0)+":"+Lu(Zu(e),2,0)+":"+Lu(Yu(e),2,0)+"."+Lu(n,3,0)+"Z"}:Uu;Vt({target:"Date",proto:!0,forced:Date.prototype.toISOString!==Ju},{toISOString:Ju});var Qu=d((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));Vt({target:"Date",proto:!0,arity:1,forced:Qu},{toJSON:function(e){var t=de(this),n=ke(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}});var Xu=TypeError,ec=Ce("toPrimitive"),tc=Date.prototype;he(tc,ec)||ht(tc,ec,(function(e){if(Be(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new Xu("Incorrect hint");return re(this,e)}));var nc=Date.prototype,rc="Invalid Date",ac="toString",oc=k(nc[ac]),ic=k(nc.getTime);String(new Date(NaN))!==rc&&ht(nc,ac,(function(){var e=ic(this);return e==e?oc(this):rc}));var sc=k("".charAt),lc=k("".charCodeAt),uc=k(/./.exec),cc=k(1..toString),dc=k("".toUpperCase),fc=/[\w*+\-./@]/,hc=function(e,t){for(var n=cc(e,16);n.length<t;)n="0"+n;return n};Vt({global:!0},{escape:function(e){for(var t,n,r=en(e),a="",o=r.length,i=0;i<o;)t=sc(r,i++),uc(fc,t)?a+=t:a+=(n=lc(t,0))<256?"%"+hc(n,2):"%u"+dc(hc(n,4));return a}});var pc=Function,gc=k([].concat),mc=k([].join),vc={},yc=h?pc.bind:function(e){var t=ee(this),n=t.prototype,r=pn(arguments,1),a=function(){var n=gc(r,pn(arguments));return this instanceof a?function(e,t,n){if(!he(vc,t)){for(var r=[],a=0;a<t;a++)r[a]="a["+a+"]";vc[t]=pc("C,a","return new C("+mc(r,",")+")")}return vc[t](e,n)}(t,n.length,n):t.apply(e,n)};return L(n)&&(a.prototype=n),a};Vt({target:"Function",proto:!0,forced:Function.bind!==yc},{bind:yc});var bc=Ce("hasInstance"),wc=Function.prototype;bc in wc||Ke.f(wc,bc,{value:ft((function(e){if(!B(this)||!L(e))return!1;var t=this.prototype;return L(t)?_(t,e):e instanceof this}),bc)});var Cc=qe.EXISTS,Sc=Function.prototype,Ec=k(Sc.toString),kc=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,$c=k(kc.exec);f&&!Cc&&yn(Sc,"name",{configurable:!0,get:function(){try{return $c(kc,Ec(this))[1]}catch(e){return""}}}),Vt({global:!0,forced:c.globalThis!==c},{globalThis:c}),An(c.JSON,"JSON",!0);var Ac=d((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),xc=Object.isExtensible,Mc=d((function(){xc(1)}))||Ac?function(e){return!!L(e)&&((!Ac||"ArrayBuffer"!==x(e))&&(!xc||xc(e)))}:xc,Tc=!d((function(){return Object.isExtensible(Object.preventExtensions({}))})),Pc=i((function(e){var t=Ke.f,n=!1,r=ve("meta"),a=0,o=function(e){t(e,r,{value:{objectID:"O"+a++,weakData:{}}})},i=e.exports={enable:function(){i.enable=function(){},n=!0;var e=It.f,t=k([].splice),a={};a[r]=1,e(a).length&&(It.f=function(n){for(var a=e(n),o=0,i=a.length;o<i;o++)if(a[o]===r){t(a,o,1);break}return a},Vt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:vn.f}))},fastKey:function(e,t){if(!L(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!he(e,r)){if(!Mc(e))return"F";if(!t)return"E";o(e)}return e[r].objectID},getWeakData:function(e,t){if(!he(e,r)){if(!Mc(e))return!0;if(!t)return!1;o(e)}return e[r].weakData},onFreeze:function(e){return Tc&&n&&Mc(e)&&!he(e,r)&&o(e),e}};ot[r]=!0}));Pc.enable,Pc.fastKey,Pc.getWeakData,Pc.onFreeze;var Nc=function(e,t,n){var r=-1!==e.indexOf("Map"),a=-1!==e.indexOf("Weak"),o=r?"set":"add",i=c[e],s=i&&i.prototype,l=i,u={},f=function(e){var t=k(s[e]);ht(s,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(a&&!L(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return a&&!L(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(a&&!L(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(zt(e,!B(i)||!(a||s.forEach&&!d((function(){(new i).entries().next()})))))l=n.getConstructor(t,e,r,o),Pc.enable();else if(zt(e,!0)){var h=new l,p=h[o](a?{}:-0,1)!==h,g=d((function(){h.has(1)})),m=qo((function(e){new i(e)})),v=!a&&d((function(){for(var e=new i,t=5;t--;)e[o](t,t);return!e.has(-0)}));m||((l=t((function(e,t){zs(e,s);var n=da(new i,e,l);return N(t)||qa(t,n[o],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=l),(g||v)&&(f("delete"),f("has"),r&&f("get")),(v||p)&&f(o),a&&s.clear&&delete s.clear}return u[e]=l,Vt({global:!0,constructor:!0,forced:l!==i},u),An(l,e),a||n.setStrong(l,e,r),l},Ic=Pc.fastKey,Oc=dt.set,Rc=dt.getterFor,Fc={getConstructor:function(e,t,n,r){var a=e((function(e,a){zs(e,o),Oc(e,{type:t,index:hn(null),first:void 0,last:void 0,size:0}),f||(e.size=0),N(a)||qa(a,e[r],{that:e,AS_ENTRIES:n})})),o=a.prototype,i=Rc(t),s=function(e,t,n){var r,a,o=i(e),s=l(e,t);return s?s.value=n:(o.last=s={index:a=Ic(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),f?o.size++:e.size++,"F"!==a&&(o.index[a]=s)),e},l=function(e,t){var n,r=i(e),a=Ic(t);if("F"!==a)return r.index[a];for(n=r.first;n;n=n.next)if(n.key===t)return n};return js(o,{clear:function(){for(var e=i(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),t=t.next;e.first=e.last=void 0,e.index=hn(null),f?e.size=0:this.size=0},delete:function(e){var t=this,n=i(t),r=l(t,e);if(r){var a=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=a),a&&(a.previous=o),n.first===r&&(n.first=a),n.last===r&&(n.last=o),f?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=i(this),r=Tn(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!l(this,e)}}),js(o,n?{get:function(e){var t=l(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),f&&yn(o,"size",{configurable:!0,get:function(){return i(this).size}}),a},setStrong:function(e,t,n){var r=t+" Iterator",a=Rc(t),o=Rc(r);Si(e,t,(function(e,t){Oc(this,{type:r,target:e,state:a(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?Ei("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=void 0,Ei(void 0,!0))}),n?"entries":"values",!n,!0),Es(t)}};Nc("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Fc);var Bc=Map.prototype,Lc={Map:Map,set:k(Bc.set),get:k(Bc.get),has:k(Bc.has),remove:k(Bc.delete),proto:Bc},Dc=Lc.Map,_c=Lc.has,Gc=Lc.get,jc=Lc.set,Uc=k([].push);Vt({target:"Map",stat:!0,forced:ae},{groupBy:function(e,t){O(e),ee(t);var n=new Dc,r=0;return qa(e,(function(e){var a=t(e,r++);_c(n,a)?Uc(Gc(n,a),e):jc(n,a,[e])})),n}});var zc=Math.log,Kc=Math.log1p||function(e){var t=+e;return t>-1e-8&&t<1e-8?t-t*t/2:zc(1+t)},Vc=Math.acosh,Hc=Math.log,Wc=Math.sqrt,Zc=Math.LN2,qc=!Vc||710!==Math.floor(Vc(Number.MAX_VALUE))||Vc(1/0)!==1/0;Vt({target:"Math",stat:!0,forced:qc},{acosh:function(e){var t=+e;return t<1?NaN:t>94906265.62425156?Hc(t)+Zc:Kc(t-1+Wc(t-1)*Wc(t+1))}});var Yc=Math.asinh,Jc=Math.log,Qc=Math.sqrt;var Xc=!(Yc&&1/Yc(0)>0);Vt({target:"Math",stat:!0,forced:Xc},{asinh:function e(t){var n=+t;return isFinite(n)&&0!==n?n<0?-e(-n):Jc(n+Qc(n*n+1)):n}});var ed=Math.atanh,td=Math.log,nd=!(ed&&1/ed(-0)<0);Vt({target:"Math",stat:!0,forced:nd},{atanh:function(e){var t=+e;return 0===t?t:td((1+t)/(1-t))/2}});var rd=Math.abs,ad=Math.pow;Vt({target:"Math",stat:!0},{cbrt:function(e){var t=+e;return Hs(t)*ad(rd(t),1/3)}});var od=Math.floor,id=Math.log,sd=Math.LOG2E;Vt({target:"Math",stat:!0},{clz32:function(e){var t=e>>>0;return t?31-od(id(t+.5)*sd):32}});var ld=Math.expm1,ud=Math.exp,cd=!ld||ld(10)>22025.465794806718||ld(10)<22025.465794806718||-2e-17!==ld(-2e-17)?function(e){var t=+e;return 0===t?t:t>-1e-6&&t<1e-6?t+t*t/2:ud(t)-1}:ld,dd=Math.cosh,fd=Math.abs,hd=Math.E,pd=!dd||dd(710)===1/0;Vt({target:"Math",stat:!0,forced:pd},{cosh:function(e){var t=cd(fd(e)-1)+1;return(t+1/(t*hd*hd))*(hd/2)}}),Vt({target:"Math",stat:!0,forced:cd!==Math.expm1},{expm1:cd}),Vt({target:"Math",stat:!0},{fround:Js});var gd=Math.hypot,md=Math.abs,vd=Math.sqrt,yd=!!gd&&gd(1/0,NaN)!==1/0;Vt({target:"Math",stat:!0,arity:2,forced:yd},{hypot:function(e,t){for(var n,r,a=0,o=0,i=arguments.length,s=0;o<i;)s<(n=md(arguments[o++]))?(a=a*(r=s/n)*r+1,s=n):a+=n>0?(r=n/s)*r:n;return s===1/0?1/0:s*vd(a)}});var bd=Math.imul,wd=d((function(){return-5!==bd(4294967295,5)||2!==bd.length}));Vt({target:"Math",stat:!0,forced:wd},{imul:function(e,t){var n=65535,r=+e,a=+t,o=n&r,i=n&a;return 0|o*i+((n&r>>>16)*i+o*(n&a>>>16)<<16>>>0)}});var Cd=Math.log,Sd=Math.LOG10E,Ed=Math.log10||function(e){return Cd(e)*Sd};Vt({target:"Math",stat:!0},{log10:Ed}),Vt({target:"Math",stat:!0},{log1p:Kc});var kd=Math.log,$d=Math.LN2;Vt({target:"Math",stat:!0},{log2:function(e){return kd(e)/$d}}),Vt({target:"Math",stat:!0},{sign:Hs});var Ad=Math.abs,xd=Math.exp,Md=Math.E,Td=d((function(){return-2e-17!==Math.sinh(-2e-17)}));Vt({target:"Math",stat:!0,forced:Td},{sinh:function(e){var t=+e;return Ad(t)<1?(cd(t)-cd(-t))/2:(xd(t-1)-xd(-t-1))*(Md/2)}});var Pd=Math.exp;Vt({target:"Math",stat:!0},{tanh:function(e){var t=+e,n=cd(t),r=cd(-t);return n===1/0?1:r===1/0?-1:(n-r)/(Pd(t)+Pd(-t))}}),An(Math,"Math",!0),Vt({target:"Math",stat:!0},{trunc:mt});var Nd=k(1..valueOf),Id="\t\n\v\f\r \u2028\u2029\ufeff",Od=k("".replace),Rd=RegExp("^["+Id+"]+"),Fd=RegExp("(^|[^"+Id+"])["+Id+"]+$"),Bd=function(e){return function(t){var n=en(O(t));return 1&e&&(n=Od(n,Rd,"")),2&e&&(n=Od(n,Fd,"$1")),n}},Ld={start:Bd(1),end:Bd(2),trim:Bd(3)},Dd=It.f,_d=Ie.f,Gd=Ke.f,jd=Ld.trim,Ud="Number",zd=c[Ud];wn[Ud];var Kd=zd.prototype,Vd=c.TypeError,Hd=k("".slice),Wd=k("".charCodeAt),Zd=function(e){var t,n,r,a,o,i,s,l,u=ke(e,"number");if(Y(u))throw new Vd("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=jd(u),43===(t=Wd(u,0))||45===t){if(88===(n=Wd(u,2))||120===n)return NaN}else if(48===t){switch(Wd(u,1)){case 66:case 98:r=2,a=49;break;case 79:case 111:r=8,a=55;break;default:return+u}for(i=(o=Hd(u,2)).length,s=0;s<i;s++)if((l=Wd(o,s))<48||l>a)return NaN;return parseInt(o,r)}return+u},qd=zt(Ud,!zd(" 0o1")||!zd("0b1")||zd("+0x1")),Yd=function(e){var t,n=arguments.length<1?0:zd(function(e){var t=ke(e,"number");return"bigint"==typeof t?t:Zd(t)}(e));return _(Kd,t=this)&&d((function(){Nd(t)}))?da(Object(n),this,Yd):n};Yd.prototype=Kd,qd&&(Kd.constructor=Yd),Vt({global:!0,constructor:!0,wrap:!0,forced:qd},{Number:Yd});qd&&function(e,t){for(var n,r=f?Dd(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),a=0;r.length>a;a++)he(t,n=r[a])&&!he(e,n)&&Gd(e,n,_d(t,n))}(wn[Ud],zd),Vt({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)});var Jd=c.isFinite,Qd=Number.isFinite||function(e){return"number"==typeof e&&Jd(e)};Vt({target:"Number",stat:!0},{isFinite:Qd});var Xd=Math.floor,ef=Number.isInteger||function(e){return!L(e)&&isFinite(e)&&Xd(e)===e};Vt({target:"Number",stat:!0},{isInteger:ef}),Vt({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var tf=Math.abs;Vt({target:"Number",stat:!0},{isSafeInteger:function(e){return ef(e)&&tf(e)<=9007199254740991}}),Vt({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991}),Vt({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991});var nf=Ld.trim,rf=k("".charAt),af=c.parseFloat,of=c.Symbol,sf=of&&of.iterator,lf=1/af(Id+"-0")!=-1/0||sf&&!d((function(){af(Object(sf))}))?function(e){var t=nf(en(e)),n=af(t);return 0===n&&"-"===rf(t,0)?-0:n}:af;Vt({target:"Number",stat:!0,forced:Number.parseFloat!==lf},{parseFloat:lf});var uf=Ld.trim,cf=c.parseInt,df=c.Symbol,ff=df&&df.iterator,hf=/^[+-]?0x/i,pf=k(hf.exec),gf=8!==cf(Id+"08")||22!==cf(Id+"0x16")||ff&&!d((function(){cf(Object(ff))}))?function(e,t){var n=uf(en(e));return cf(n,t>>>0||(pf(hf,n)?16:10))}:cf;Vt({target:"Number",stat:!0,forced:Number.parseInt!==gf},{parseInt:gf});var mf=RangeError,vf=String,yf=isFinite,bf=Math.abs,wf=Math.floor,Cf=Math.pow,Sf=Math.round,Ef=k(1..toExponential),kf=k(Nu),$f=k("".slice),Af="-6.9000e-11"===Ef(-69e-12,4)&&"1.25e+0"===Ef(1.255,2)&&"1.235e+4"===Ef(12345,3)&&"3e+1"===Ef(25,0),xf=!Af||!(d((function(){Ef(1,1/0)}))&&d((function(){Ef(1,-1/0)})))||!!d((function(){Ef(1/0,1/0),Ef(NaN,1/0)}));Vt({target:"Number",proto:!0,forced:xf},{toExponential:function(e){var t=Nd(this);if(void 0===e)return Ef(t);var n=vt(e);if(!yf(t))return String(t);if(n<0||n>20)throw new mf("Incorrect fraction digits");if(Af)return Ef(t,n);var r="",a="",o=0,i="",s="";if(t<0&&(r="-",t=-t),0===t)o=0,a=kf("0",n+1);else{var l=Ed(t);o=wf(l);var u=0,c=Cf(10,o-n);2*t>=(2*(u=Sf(t/c))+1)*c&&(u+=1),u>=Cf(10,n+1)&&(u/=10,o+=1),a=vf(u)}return 0!==n&&(a=$f(a,0,1)+"."+$f(a,1)),0===o?(i="+",s="0"):(i=o>0?"+":"-",s=vf(bf(o))),r+(a+="e"+i+s)}});var Mf=RangeError,Tf=String,Pf=Math.floor,Nf=k(Nu),If=k("".slice),Of=k(1..toFixed),Rf=function(e,t,n){return 0===t?n:t%2==1?Rf(e,t-1,n*e):Rf(e*e,t/2,n)},Ff=function(e,t,n){for(var r=-1,a=n;++r<6;)a+=t*e[r],e[r]=a%1e7,a=Pf(a/1e7)},Bf=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=Pf(r/t),r=r%t*1e7},Lf=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=Tf(e[t]);n=""===n?r:n+Nf("0",7-r.length)+r}return n},Df=d((function(){return"0.000"!==Of(8e-5,3)||"1"!==Of(.9,0)||"1.25"!==Of(1.255,2)||"1000000000000000128"!==Of(0xde0b6b3a7640080,0)}))||!d((function(){Of({})}));Vt({target:"Number",proto:!0,forced:Df},{toFixed:function(e){var t,n,r,a,o=Nd(this),i=vt(e),s=[0,0,0,0,0,0],l="",u="0";if(i<0||i>20)throw new Mf("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return Tf(o);if(o<0&&(l="-",o=-o),o>1e-21)if(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(o*Rf(2,69,1))-69,n=t<0?o*Rf(2,-t,1):o/Rf(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Ff(s,0,n),r=i;r>=7;)Ff(s,1e7,0),r-=7;for(Ff(s,Rf(10,r,1),0),r=t-1;r>=23;)Bf(s,1<<23),r-=23;Bf(s,1<<r),Ff(s,1,1),Bf(s,2),u=Lf(s)}else Ff(s,0,n),Ff(s,1<<-t,0),u=Lf(s)+Nf("0",i);return u=i>0?l+((a=u.length)<=i?"0."+Nf("0",i-a)+u:If(u,0,a-i)+"."+If(u,a-i)):l+u}});var _f=k(1..toPrecision),Gf=d((function(){return"1"!==_f(1,void 0)}))||!d((function(){_f({})}));Vt({target:"Number",proto:!0,forced:Gf},{toPrecision:function(e){return void 0===e?_f(Nd(this)):_f(Nd(this),e)}});var jf=Object.assign,Uf=Object.defineProperty,zf=k([].concat),Kf=!jf||d((function(){if(f&&1!==jf({b:1},jf(Uf({},"a",{enumerable:!0,get:function(){Uf(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==jf({},e)[n]||tn(jf({},t)).join("")!==r}))?function(e,t){for(var n=de(e),r=arguments.length,a=1,o=Ot.f,i=b.f;r>a;)for(var s,l=P(arguments[a++]),u=o?zf(tn(l),o(l)):tn(l),c=u.length,d=0;c>d;)s=u[d++],f&&!g(i,l,s)||(n[s]=l[s]);return n}:jf;Vt({target:"Object",stat:!0,arity:2,forced:Object.assign!==Kf},{assign:Kf}),Vt({target:"Object",stat:!0,sham:!f},{create:hn});var Vf=!d((function(){if(!(ps&&ps<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete c[e]}}));f&&Vt({target:"Object",proto:!0,forced:Vf},{__defineGetter__:function(e,t){Ke.f(de(this),e,{get:ee(t),enumerable:!0,configurable:!0})}});var Hf=rn.f;Vt({target:"Object",stat:!0,forced:Object.defineProperties!==Hf,sham:!f},{defineProperties:Hf});var Wf=Ke.f;Vt({target:"Object",stat:!0,forced:Object.defineProperty!==Wf,sham:!f},{defineProperty:Wf}),f&&Vt({target:"Object",proto:!0,forced:Vf},{__defineSetter__:function(e,t){Ke.f(de(this),e,{set:ee(t),enumerable:!0,configurable:!0})}});var Zf=b.f,qf=k(Zf),Yf=k([].push),Jf=f&&d((function(){var e=Object.create(null);return e[2]=2,!qf(e,2)})),Qf=function(e){return function(t){for(var n,r=R(t),a=tn(r),o=Jf&&null===Ba(r),i=a.length,s=0,l=[];i>s;)n=a[s++],f&&!(o?n in r:qf(r,n))||Yf(l,e?[n,r[n]]:r[n]);return l}},Xf={entries:Qf(!0),values:Qf(!1)},eh=Xf.entries;Vt({target:"Object",stat:!0},{entries:function(e){return eh(e)}});var th=Pc.onFreeze,nh=Object.freeze,rh=d((function(){nh(1)}));Vt({target:"Object",stat:!0,forced:rh,sham:!Tc},{freeze:function(e){return nh&&L(e)?nh(th(e)):e}}),Vt({target:"Object",stat:!0},{fromEntries:function(e){var t={};return qa(e,(function(e,n){co(t,e,n)}),{AS_ENTRIES:!0}),t}});var ah=Ie.f,oh=!f||d((function(){ah(1)}));Vt({target:"Object",stat:!0,forced:oh,sham:!f},{getOwnPropertyDescriptor:function(e,t){return ah(R(e),t)}}),Vt({target:"Object",stat:!0,sham:!f},{getOwnPropertyDescriptors:function(e){for(var t,n,r=R(e),a=Ie.f,o=Ft(r),i={},s=0;o.length>s;)void 0!==(n=a(r,t=o[s++]))&&co(i,t,n);return i}});var ih=vn.f,sh=d((function(){return!Object.getOwnPropertyNames(1)}));Vt({target:"Object",stat:!0,forced:sh},{getOwnPropertyNames:ih});var lh=d((function(){Ba(1)}));Vt({target:"Object",stat:!0,forced:lh,sham:!Ia},{getPrototypeOf:function(e){return Ba(de(e))}});var uh=D("Object","create"),ch=k([].push);Vt({target:"Object",stat:!0},{groupBy:function(e,t){O(e),ee(t);var n=uh(null),r=0;return qa(e,(function(e){var a=$e(t(e,r++));a in n?ch(n[a],e):n[a]=[e]})),n}}),Vt({target:"Object",stat:!0},{hasOwn:he});var dh=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Vt({target:"Object",stat:!0},{is:dh}),Vt({target:"Object",stat:!0,forced:Object.isExtensible!==Mc},{isExtensible:Mc});var fh=Object.isFrozen,hh=Ac||d((function(){fh(1)}));Vt({target:"Object",stat:!0,forced:hh},{isFrozen:function(e){return!L(e)||(!(!Ac||"ArrayBuffer"!==x(e))||!!fh&&fh(e))}});var ph=Object.isSealed,gh=Ac||d((function(){ph(1)}));Vt({target:"Object",stat:!0,forced:gh},{isSealed:function(e){return!L(e)||(!(!Ac||"ArrayBuffer"!==x(e))||!!ph&&ph(e))}});var mh=d((function(){tn(1)}));Vt({target:"Object",stat:!0,forced:mh},{keys:function(e){return tn(de(e))}});var vh=Ie.f;f&&Vt({target:"Object",proto:!0,forced:Vf},{__lookupGetter__:function(e){var t,n=de(this),r=$e(e);do{if(t=vh(n,r))return t.get}while(n=Ba(n))}});var yh=Ie.f;f&&Vt({target:"Object",proto:!0,forced:Vf},{__lookupSetter__:function(e){var t,n=de(this),r=$e(e);do{if(t=yh(n,r))return t.set}while(n=Ba(n))}});var bh=Pc.onFreeze,wh=Object.preventExtensions,Ch=d((function(){wh(1)}));Vt({target:"Object",stat:!0,forced:Ch,sham:!Tc},{preventExtensions:function(e){return wh&&L(e)?wh(bh(e)):e}});var Sh=Object.getPrototypeOf,Eh=Object.setPrototypeOf,kh=Object.prototype,$h="__proto__";if(f&&Sh&&Eh&&!($h in kh))try{yn(kh,$h,{configurable:!0,get:function(){return Sh(de(this))},set:function(e){var t=O(this);aa(e)&&L(t)&&Eh(t,e)}})}catch(e){}var Ah=Pc.onFreeze,xh=Object.seal,Mh=d((function(){xh(1)}));Vt({target:"Object",stat:!0,forced:Mh,sham:!Tc},{seal:function(e){return xh&&L(e)?xh(Ah(e)):e}}),Vt({target:"Object",stat:!0},{setPrototypeOf:la});var Th=Zt?{}.toString:function(){return"[object "+Qt(this)+"]"};Zt||ht(Object.prototype,"toString",Th,{unsafe:!0});var Ph=Xf.values;Vt({target:"Object",stat:!0},{values:function(e){return Ph(e)}}),Vt({global:!0,forced:parseFloat!==lf},{parseFloat:lf}),Vt({global:!0,forced:parseInt!==gf},{parseInt:gf});var Nh,Ih,Oh,Rh,Fh=TypeError,Bh=function(e,t){if(e<t)throw new Fh("Not enough arguments");return e},Lh=/(?:ipad|iphone|ipod).*applewebkit/i.test(G),Dh=c.setImmediate,_h=c.clearImmediate,Gh=c.process,jh=c.Dispatch,Uh=c.Function,zh=c.MessageChannel,Kh=c.String,Vh=0,Hh={},Wh="onreadystatechange";d((function(){Nh=c.location}));var Zh=function(e){if(he(Hh,e)){var t=Hh[e];delete Hh[e],t()}},qh=function(e){return function(){Zh(e)}},Yh=function(e){Zh(e.data)},Jh=function(e){c.postMessage(Kh(e),Nh.protocol+"//"+Nh.host)};Dh&&_h||(Dh=function(e){Bh(arguments.length,1);var t=B(e)?e:Uh(e),n=pn(arguments,1);return Hh[++Vh]=function(){Tr(t,void 0,n)},Ih(Vh),Vh},_h=function(e){delete Hh[e]},Zi?Ih=function(e){Gh.nextTick(qh(e))}:jh&&jh.now?Ih=function(e){jh.now(qh(e))}:zh&&!Lh?(Rh=(Oh=new zh).port2,Oh.port1.onmessage=Yh,Ih=Tn(Rh.postMessage,Rh)):c.addEventListener&&B(c.postMessage)&&!c.importScripts&&Nh&&"file:"!==Nh.protocol&&!d(Jh)?(Ih=Jh,c.addEventListener("message",Yh,!1)):Ih=Wh in Me("script")?function(e){an.appendChild(Me("script"))[Wh]=function(){an.removeChild(this),Zh(e)}}:function(e){setTimeout(qh(e),0)});var Qh={set:Dh,clear:_h},Xh=Object.getOwnPropertyDescriptor,ep=function(e){if(!f)return c[e];var t=Xh(c,e);return t&&t.value},tp=function(){this.head=null,this.tail=null};tp.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.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 np,rp,ap,op,ip,sp=tp,lp=/ipad|iphone|ipod/i.test(G)&&"undefined"!=typeof Pebble,up=/web0s(?!.*chrome)/i.test(G),cp=Qh.set,dp=c.MutationObserver||c.WebKitMutationObserver,fp=c.document,hp=c.process,pp=c.Promise,gp=ep("queueMicrotask");if(!gp){var mp=new sp,vp=function(){var e,t;for(Zi&&(e=hp.domain)&&e.exit();t=mp.get();)try{t()}catch(e){throw mp.head&&np(),e}e&&e.enter()};Lh||Zi||up||!dp||!fp?!lp&&pp&&pp.resolve?((op=pp.resolve(void 0)).constructor=pp,ip=Tn(op.then,op),np=function(){ip(vp)}):Zi?np=function(){hp.nextTick(vp)}:(cp=Tn(cp,c),np=function(){cp(vp)}):(rp=!0,ap=fp.createTextNode(""),new dp(vp).observe(ap,{characterData:!0}),np=function(){ap.data=rp=!rp}),gp=function(e){mp.head||np(),mp.add(e)}}var yp=gp,bp=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}},wp=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Cp=c.Promise,Sp="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Ep=!Sp&&!Zi&&"object"==typeof window&&"object"==typeof document;Cp&&Cp.prototype;var kp,$p,Ap,xp=Ce("species"),Mp=!1,Tp=B(c.PromiseRejectionEvent),Pp=zt("Promise",(function(){var e=et(Cp),t=e!==String(Cp);if(!t&&66===V)return!0;if(!V||V<51||!/native code/.test(e)){var n=new Cp((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[xp]=r,!(Mp=n.then((function(){}))instanceof r))return!0}return!t&&(Ep||Sp)&&!Tp})),Np={CONSTRUCTOR:Pp,REJECTION_EVENT:Tp,SUBCLASSING:Mp},Ip=TypeError,Op=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new Ip("Bad Promise constructor");t=e,n=r})),this.resolve=ee(t),this.reject=ee(n)},Rp={f:function(e){return new Op(e)}},Fp=Qh.set,Bp="Promise",Lp=Np.CONSTRUCTOR,Dp=Np.REJECTION_EVENT,_p=Np.SUBCLASSING,Gp=dt.getterFor(Bp),jp=dt.set,Up=Cp&&Cp.prototype,zp=Cp,Kp=Up,Vp=c.TypeError,Hp=c.document,Wp=c.process,Zp=Rp.f,qp=Zp,Yp=!!(Hp&&Hp.createEvent&&c.dispatchEvent),Jp="unhandledrejection",Qp=function(e){var t;return!(!L(e)||!B(t=e.then))&&t},Xp=function(e,t){var n,r,a,o=t.value,i=1===t.state,s=i?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{s?(i||(2===t.rejection&&ag(t),t.rejection=1),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),a=!0)),n===e.promise?u(new Vp("Promise-chain cycle")):(r=Qp(n))?g(r,n,l,u):l(n)):u(o)}catch(e){c&&!a&&c.exit(),u(e)}},eg=function(e,t){e.notified||(e.notified=!0,yp((function(){for(var n,r=e.reactions;n=r.get();)Xp(n,e);e.notified=!1,t&&!e.rejection&&ng(e)})))},tg=function(e,t,n){var r,a;Yp?((r=Hp.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!Dp&&(a=c["on"+e])?a(r):e===Jp&&bp("Unhandled promise rejection",n)},ng=function(e){g(Fp,c,(function(){var t,n=e.facade,r=e.value;if(rg(e)&&(t=wp((function(){Zi?Wp.emit("unhandledRejection",r,n):tg(Jp,n,r)})),e.rejection=Zi||rg(e)?2:1,t.error))throw t.value}))},rg=function(e){return 1!==e.rejection&&!e.parent},ag=function(e){g(Fp,c,(function(){var t=e.facade;Zi?Wp.emit("rejectionHandled",t):tg("rejectionhandled",t,e.value)}))},og=function(e,t,n){return function(r){e(t,r,n)}},ig=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,eg(e,!0))},sg=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new Vp("Promise can't be resolved itself");var r=Qp(t);r?yp((function(){var n={done:!1};try{g(r,t,og(sg,n,e),og(ig,n,e))}catch(t){ig(n,t,e)}})):(e.value=t,e.state=1,eg(e,!1))}catch(t){ig({done:!1},t,e)}}};if(Lp&&(Kp=(zp=function(e){zs(this,Kp),ee(e),g(kp,this);var t=Gp(this);try{e(og(sg,t),og(ig,t))}catch(e){ig(t,e)}}).prototype,(kp=function(e){jp(this,{type:Bp,done:!1,notified:!1,parent:!1,reactions:new sp,rejection:!1,state:0,value:void 0})}).prototype=ht(Kp,"then",(function(e,t){var n=Gp(this),r=Zp(gu(this,zp));return n.parent=!0,r.ok=!B(e)||e,r.fail=B(t)&&t,r.domain=Zi?Wp.domain:void 0,0===n.state?n.reactions.add(r):yp((function(){Xp(r,n)})),r.promise})),$p=function(){var e=new kp,t=Gp(e);this.promise=e,this.resolve=og(sg,t),this.reject=og(ig,t)},Rp.f=Zp=function(e){return e===zp||undefined===e?new $p(e):qp(e)},B(Cp)&&Up!==Object.prototype)){Ap=Up.then,_p||ht(Up,"then",(function(e,t){var n=this;return new zp((function(e,t){g(Ap,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete Up.constructor}catch(e){}la&&la(Up,Kp)}Vt({global:!0,constructor:!0,wrap:!0,forced:Lp},{Promise:zp}),An(zp,Bp,!1),Es(Bp);var lg=Np.CONSTRUCTOR||!qo((function(e){Cp.all(e).then(void 0,(function(){}))}));Vt({target:"Promise",stat:!0,forced:lg},{all:function(e){var t=this,n=Rp.f(t),r=n.resolve,a=n.reject,o=wp((function(){var n=ee(t.resolve),o=[],i=0,s=1;qa(e,(function(e){var l=i++,u=!1;s++,g(n,t,e).then((function(e){u||(u=!0,o[l]=e,--s||r(o))}),a)})),--s||r(o)}));return o.error&&a(o.value),n.promise}});var ug=Np.CONSTRUCTOR,cg=Cp&&Cp.prototype;if(Vt({target:"Promise",proto:!0,forced:ug,real:!0},{catch:function(e){return this.then(void 0,e)}}),B(Cp)){var dg=D("Promise").prototype.catch;cg.catch!==dg&&ht(cg,"catch",dg,{unsafe:!0})}Vt({target:"Promise",stat:!0,forced:lg},{race:function(e){var t=this,n=Rp.f(t),r=n.reject,a=wp((function(){var a=ee(t.resolve);qa(e,(function(e){g(a,t,e).then(n.resolve,r)}))}));return a.error&&r(a.value),n.promise}}),Vt({target:"Promise",stat:!0,forced:Np.CONSTRUCTOR},{reject:function(e){var t=Rp.f(this);return(0,t.reject)(e),t.promise}});var fg=function(e,t){if(Be(e),L(t)&&t.constructor===e)return t;var n=Rp.f(e);return(0,n.resolve)(t),n.promise},hg=Np.CONSTRUCTOR;D("Promise"),Vt({target:"Promise",stat:!0,forced:hg},{resolve:function(e){return fg(this,e)}}),Vt({target:"Promise",stat:!0,forced:lg},{allSettled:function(e){var t=this,n=Rp.f(t),r=n.resolve,a=n.reject,o=wp((function(){var n=ee(t.resolve),a=[],o=0,i=1;qa(e,(function(e){var s=o++,l=!1;i++,g(n,t,e).then((function(e){l||(l=!0,a[s]={status:"fulfilled",value:e},--i||r(a))}),(function(e){l||(l=!0,a[s]={status:"rejected",reason:e},--i||r(a))}))})),--i||r(a)}));return o.error&&a(o.value),n.promise}});var pg="No one promise resolved";Vt({target:"Promise",stat:!0,forced:lg},{any:function(e){var t=this,n=D("AggregateError"),r=Rp.f(t),a=r.resolve,o=r.reject,i=wp((function(){var r=ee(t.resolve),i=[],s=0,l=1,u=!1;qa(e,(function(e){var c=s++,d=!1;l++,g(r,t,e).then((function(e){d||u||(u=!0,a(e))}),(function(e){d||u||(d=!0,i[c]=e,--l||o(new n(i,pg)))}))})),--l||o(new n(i,pg))}));return i.error&&o(i.value),r.promise}});var gg=Cp&&Cp.prototype,mg=!!Cp&&d((function(){gg.finally.call({then:function(){}},(function(){}))}));if(Vt({target:"Promise",proto:!0,real:!0,forced:mg},{finally:function(e){var t=gu(this,D("Promise")),n=B(e);return this.then(n?function(n){return fg(t,e()).then((function(){return n}))}:e,n?function(n){return fg(t,e()).then((function(){throw n}))}:e)}}),B(Cp)){var vg=D("Promise").prototype.finally;gg.finally!==vg&&ht(gg,"finally",vg,{unsafe:!0})}Vt({target:"Promise",stat:!0},{withResolvers:function(){var e=Rp.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}});var yg=!d((function(){Reflect.apply((function(){}))}));Vt({target:"Reflect",stat:!0,forced:yg},{apply:function(e,t,n){return Tr(ee(e),t,Be(n))}});var bg=D("Reflect","construct"),wg=Object.prototype,Cg=[].push,Sg=d((function(){function e(){}return!(bg((function(){}),[],e)instanceof e)})),Eg=!d((function(){bg((function(){}))})),kg=Sg||Eg;Vt({target:"Reflect",stat:!0,forced:kg,sham:kg},{construct:function(e,t){hu(e),Be(t);var n=arguments.length<3?e:hu(arguments[2]);if(Eg&&!Sg)return bg(e,t,n);if(e===n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return Tr(Cg,r,t),new(Tr(yc,e,r))}var a=n.prototype,o=hn(L(a)?a:wg),i=Tr(e,o,t);return L(i)?i:o}});var $g=d((function(){Reflect.defineProperty(Ke.f({},1,{value:1}),1,{value:2})}));Vt({target:"Reflect",stat:!0,forced:$g,sham:!f},{defineProperty:function(e,t,n){Be(e);var r=$e(t);Be(n);try{return Ke.f(e,r,n),!0}catch(e){return!1}}});var Ag=Ie.f;Vt({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=Ag(Be(e),t);return!(n&&!n.configurable)&&delete e[t]}});var xg=function(e){return void 0!==e&&(he(e,"value")||he(e,"writable"))};Vt({target:"Reflect",stat:!0},{get:function e(t,n){var r,a,o=arguments.length<3?t:arguments[2];return Be(t)===o?t[n]:(r=Ie.f(t,n))?xg(r)?r.value:void 0===r.get?void 0:g(r.get,o):L(a=Ba(t))?e(a,n,o):void 0}}),Vt({target:"Reflect",stat:!0,sham:!f},{getOwnPropertyDescriptor:function(e,t){return Ie.f(Be(e),t)}}),Vt({target:"Reflect",stat:!0,sham:!Ia},{getPrototypeOf:function(e){return Ba(Be(e))}}),Vt({target:"Reflect",stat:!0},{has:function(e,t){return t in e}}),Vt({target:"Reflect",stat:!0},{isExtensible:function(e){return Be(e),Mc(e)}}),Vt({target:"Reflect",stat:!0},{ownKeys:Ft}),Vt({target:"Reflect",stat:!0,sham:!Tc},{preventExtensions:function(e){Be(e);try{var t=D("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}});var Mg=d((function(){var e=function(){},t=Ke.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}));Vt({target:"Reflect",stat:!0,forced:Mg},{set:function e(t,n,r){var a,o,i,s=arguments.length<4?t:arguments[3],l=Ie.f(Be(t),n);if(!l){if(L(o=Ba(t)))return e(o,n,r,s);l=w(0)}if(xg(l)){if(!1===l.writable||!L(s))return!1;if(a=Ie.f(s,n)){if(a.get||a.set||!1===a.writable)return!1;a.value=r,Ke.f(s,n,a)}else Ke.f(s,n,w(0,r))}else{if(void 0===(i=l.set))return!1;g(i,s,r)}return!0}}),la&&Vt({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){Be(e),sa(t);try{return la(e,t),!0}catch(e){return!1}}}),Vt({global:!0},{Reflect:{}}),An(c.Reflect,"Reflect",!0);var Tg=Ce("match"),Pg=function(e){var t;return L(e)&&(void 0!==(t=e[Tg])?!!t:"RegExp"===x(e))},Ng=function(){var e=Be(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Ig=RegExp.prototype,Og=function(e){var t=e.flags;return void 0!==t||"flags"in Ig||he(e,"flags")||!_(Ig,e)?t:g(Ng,e)},Rg=c.RegExp,Fg=d((function(){var e=Rg("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),Bg=Fg||d((function(){return!Rg("a","y").sticky})),Lg=Fg||d((function(){var e=Rg("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),Dg={BROKEN_CARET:Lg,MISSED_STICKY:Bg,UNSUPPORTED_Y:Fg},_g=c.RegExp,Gg=d((function(){var e=_g(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),jg=c.RegExp,Ug=d((function(){var e=jg("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),zg=It.f,Kg=dt.enforce,Vg=Ce("match"),Hg=c.RegExp,Wg=Hg.prototype,Zg=c.SyntaxError,qg=k(Wg.exec),Yg=k("".charAt),Jg=k("".replace),Qg=k("".indexOf),Xg=k("".slice),em=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,tm=/a/g,nm=/a/g,rm=new Hg(tm)!==tm,am=Dg.MISSED_STICKY,om=Dg.UNSUPPORTED_Y,im=f&&(!rm||am||Gg||Ug||d((function(){return nm[Vg]=!1,Hg(tm)!==tm||Hg(nm)===nm||"/a/i"!==String(Hg(tm,"i"))})));if(zt("RegExp",im)){for(var sm=function(e,t){var n,r,a,o,i,s,l=_(Wg,this),u=Pg(e),c=void 0===t,d=[],f=e;if(!l&&u&&c&&e.constructor===sm)return e;if((u||_(Wg,e))&&(e=e.source,c&&(t=Og(f))),e=void 0===e?"":en(e),t=void 0===t?"":en(t),f=e,Gg&&"dotAll"in tm&&(r=!!t&&Qg(t,"s")>-1)&&(t=Jg(t,/s/g,"")),n=t,am&&"sticky"in tm&&(a=!!t&&Qg(t,"y")>-1)&&om&&(t=Jg(t,/y/g,"")),Ug&&(o=function(e){for(var t,n=e.length,r=0,a="",o=[],i=hn(null),s=!1,l=!1,u=0,c="";r<=n;r++){if("\\"===(t=Yg(e,r)))t+=Yg(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:qg(em,Xg(e,r+1))&&(r+=2,l=!0),a+=t,u++;continue;case">"===t&&l:if(""===c||he(i,c))throw new Zg("Invalid capture group name");i[c]=!0,o[o.length]=[c,u],l=!1,c="";continue}l?c+=t:a+=t}return[a,o]}(e),e=o[0],d=o[1]),i=da(Hg(e,t),l?this:Wg,sm),(r||a||d.length)&&(s=Kg(i),r&&(s.dotAll=!0,s.raw=sm(function(e){for(var t,n=e.length,r=0,a="",o=!1;r<=n;r++)"\\"!==(t=Yg(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),a+=t):a+="[\\s\\S]":a+=t+Yg(e,++r);return a}(e),n)),a&&(s.sticky=!0),d.length&&(s.groups=d)),e!==f)try{Ve(i,"source",""===f?"(?:)":f)}catch(e){}return i},lm=zg(Hg),um=0;lm.length>um;)ca(sm,Hg,lm[um++]);Wg.constructor=sm,sm.prototype=Wg,ht(c,"RegExp",sm,{constructor:!0})}Es("RegExp");var cm=dt.get,dm=RegExp.prototype,fm=TypeError;f&&Gg&&yn(dm,"dotAll",{configurable:!0,get:function(){if(this!==dm){if("RegExp"===x(this))return!!cm(this).dotAll;throw new fm("Incompatible receiver, RegExp required")}}});var hm=dt.get,pm=ue("native-string-replace",String.prototype.replace),gm=RegExp.prototype.exec,mm=gm,vm=k("".charAt),ym=k("".indexOf),bm=k("".replace),wm=k("".slice),Cm=function(){var e=/a/,t=/b*/g;return g(gm,e,"a"),g(gm,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Sm=Dg.BROKEN_CARET,Em=void 0!==/()??/.exec("")[1];(Cm||Em||Sm||Gg||Ug)&&(mm=function(e){var t,n,r,a,o,i,s,l=this,u=hm(l),c=en(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=g(mm,d,c),l.lastIndex=d.lastIndex,t;var f=u.groups,h=Sm&&l.sticky,p=g(Ng,l),m=l.source,v=0,y=c;if(h&&(p=bm(p,"y",""),-1===ym(p,"g")&&(p+="g"),y=wm(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==vm(c,l.lastIndex-1))&&(m="(?: "+m+")",y=" "+y,v++),n=new RegExp("^(?:"+m+")",p)),Em&&(n=new RegExp("^"+m+"$(?!\\s)",p)),Cm&&(r=l.lastIndex),a=g(gm,h?n:l,y),h?a?(a.input=wm(a.input,v),a[0]=wm(a[0],v),a.index=l.lastIndex,l.lastIndex+=a[0].length):l.lastIndex=0:Cm&&a&&(l.lastIndex=l.global?a.index+a[0].length:r),Em&&a&&a.length>1&&g(pm,a[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(a[o]=void 0)})),a&&f)for(a.groups=i=hn(null),o=0;o<f.length;o++)i[(s=f[o])[0]]=a[s[1]];return a});var km=mm;Vt({target:"RegExp",proto:!0,forced:/./.exec!==km},{exec:km});var $m=c.RegExp,Am=$m.prototype,xm=f&&d((function(){var e=!0;try{$m(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",a=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var i in e&&(o.hasIndices="d"),o)a(i,o[i]);return Object.getOwnPropertyDescriptor(Am,"flags").get.call(t)!==r||n!==r}));xm&&yn(Am,"flags",{configurable:!0,get:Ng});var Mm=Dg.MISSED_STICKY,Tm=dt.get,Pm=RegExp.prototype,Nm=TypeError;f&&Mm&&yn(Pm,"sticky",{configurable:!0,get:function(){if(this!==Pm){if("RegExp"===x(this))return!!Tm(this).sticky;throw new Nm("Incompatible receiver, RegExp required")}}});var Im=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),Om=/./.test;Vt({target:"RegExp",proto:!0,forced:!Im},{test:function(e){var t=Be(this),n=en(e),r=t.exec;if(!B(r))return g(Om,t,n);var a=g(r,t,n);return null!==a&&(Be(a),!0)}});var Rm=qe.PROPER,Fm="toString",Bm=RegExp.prototype,Lm=Bm[Fm],Dm=d((function(){return"/a/b"!==Lm.call({source:"a",flags:"b"})})),_m=Rm&&Lm.name!==Fm;(Dm||_m)&&ht(Bm,Fm,(function(){var e=Be(this);return"/"+en(e.source)+"/"+en(Og(e))}),{unsafe:!0}),Nc("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Fc);var Gm=k("".charAt),jm=d((function(){return"\ud842"!=="𠮷".at(-2)}));Vt({target:"String",proto:!0,forced:jm},{at:function(e){var t=en(O(this)),n=t.length,r=vt(e),a=r>=0?r:n+r;return a<0||a>=n?void 0:Gm(t,a)}});var Um=k("".charAt),zm=k("".charCodeAt),Km=k("".slice),Vm=function(e){return function(t,n){var r,a,o=en(O(t)),i=vt(n),s=o.length;return i<0||i>=s?e?"":void 0:(r=zm(o,i))<55296||r>56319||i+1===s||(a=zm(o,i+1))<56320||a>57343?e?Um(o,i):r:e?Km(o,i,i+2):a-56320+(r-55296<<10)+65536}},Hm={codeAt:Vm(!1),charAt:Vm(!0)},Wm=Hm.codeAt;Vt({target:"String",proto:!0},{codePointAt:function(e){return Wm(this,e)}});var Zm=TypeError,qm=function(e){if(Pg(e))throw new Zm("The method doesn't accept regular expressions");return e},Ym=Ce("match"),Jm=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Ym]=!1,"/./"[e](t)}catch(e){}}return!1},Qm=Ie.f,Xm=xn("".slice),ev=Math.min,tv=Jm("endsWith"),nv=!tv&&!!function(){var e=Qm(String.prototype,"endsWith");return e&&!e.writable}();Vt({target:"String",proto:!0,forced:!nv&&!tv},{endsWith:function(e){var t=en(O(this));qm(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,a=void 0===n?r:ev(St(n),r),o=en(e);return Xm(t,a-o.length,a)===o}});var rv=RangeError,av=String.fromCharCode,ov=String.fromCodePoint,iv=k([].join),sv=!!ov&&1!==ov.length;Vt({target:"String",stat:!0,arity:1,forced:sv},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],wt(t,1114111)!==t)throw new rv(t+" is not a valid code point");n[a]=t<65536?av(t):av(55296+((t-=65536)>>10),t%1024+56320)}return iv(n,"")}});var lv=k("".indexOf);Vt({target:"String",proto:!0,forced:!Jm("includes")},{includes:function(e){return!!~lv(en(O(this)),en(qm(e)),arguments.length>1?arguments[1]:void 0)}});var uv=k("".charCodeAt);Vt({target:"String",proto:!0},{isWellFormed:function(){for(var e=en(O(this)),t=e.length,n=0;n<t;n++){var r=uv(e,n);if(55296==(63488&r)&&(r>=56320||++n>=t||56320!=(64512&uv(e,n))))return!1}return!0}});var cv=Hm.charAt,dv="String Iterator",fv=dt.set,hv=dt.getterFor(dv);Si(String,"String",(function(e){fv(this,{type:dv,string:en(e),index:0})}),(function(){var e,t=hv(this),n=t.string,r=t.index;return r>=n.length?Ei(void 0,!0):(e=cv(n,r),t.index+=e.length,Ei(e,!1))}));var pv=Ce("species"),gv=RegExp.prototype,mv=function(e,t,n,r){var a=Ce(e),o=!d((function(){var t={};return t[a]=function(){return 7},7!==""[e](t)})),i=o&&!d((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[pv]=function(){return n},n.flags="",n[a]=/./[a]),n.exec=function(){return t=!0,null},n[a](""),!t}));if(!o||!i||n){var s=xn(/./[a]),l=t(a,""[e],(function(e,t,n,r,a){var i=xn(e),l=t.exec;return l===km||l===gv.exec?o&&!a?{done:!0,value:s(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}));ht(String.prototype,e,l[0]),ht(gv,a,l[1])}r&&Ve(gv[a],"sham",!0)},vv=Hm.charAt,yv=function(e,t,n){return t+(n?vv(e,t).length:1)},bv=TypeError,wv=function(e,t){var n=e.exec;if(B(n)){var r=g(n,e,t);return null!==r&&Be(r),r}if("RegExp"===x(e))return g(km,e,t);throw new bv("RegExp#exec called on incompatible receiver")};mv("match",(function(e,t,n){return[function(t){var n=O(this),r=N(t)?void 0:te(t,e);return r?g(r,t,n):new RegExp(t)[e](en(n))},function(e){var r=Be(this),a=en(e),o=n(t,r,a);if(o.done)return o.value;if(!r.global)return wv(r,a);var i=r.unicode;r.lastIndex=0;for(var s,l=[],u=0;null!==(s=wv(r,a));){var c=en(s[0]);l[u]=c,""===c&&(r.lastIndex=yv(a,St(r.lastIndex),i)),u++}return 0===u?null:l}]}));var Cv=Ce("matchAll"),Sv="RegExp String",Ev=Sv+" Iterator",kv=dt.set,$v=dt.getterFor(Ev),Av=RegExp.prototype,xv=TypeError,Mv=xn("".indexOf),Tv=xn("".matchAll),Pv=!!Tv&&!d((function(){Tv("a",/./)})),Nv=fi((function(e,t,n,r){kv(this,{type:Ev,regexp:e,string:t,global:n,unicode:r,done:!1})}),Sv,(function(){var e=$v(this);if(e.done)return Ei(void 0,!0);var t=e.regexp,n=e.string,r=wv(t,n);return null===r?(e.done=!0,Ei(void 0,!0)):e.global?(""===en(r[0])&&(t.lastIndex=yv(n,St(t.lastIndex),e.unicode)),Ei(r,!1)):(e.done=!0,Ei(r,!1))})),Iv=function(e){var t,n,r,a=Be(this),o=en(e),i=gu(a,RegExp),s=en(Og(a));return t=new i(i===RegExp?a.source:a,s),n=!!~Mv(s,"g"),r=!!~Mv(s,"u"),t.lastIndex=St(a.lastIndex),new Nv(t,o,n,r)};Vt({target:"String",proto:!0,forced:Pv},{matchAll:function(e){var t,n,r,a=O(this);if(N(e)){if(Pv)return Tv(a,e)}else{if(Pg(e)&&(t=en(O(Og(e))),!~Mv(t,"g")))throw new xv("`.matchAll` does not allow non-global regexes");if(Pv)return Tv(a,e);if(r=te(e,Cv))return g(r,e,a)}return n=en(a),new RegExp(e,"g")[Cv](n)}}),Cv in Av||ht(Av,Cv,Iv);var Ov=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(G),Rv=Bu.end;Vt({target:"String",proto:!0,forced:Ov},{padEnd:function(e){return Rv(this,e,arguments.length>1?arguments[1]:void 0)}});var Fv=Bu.start;Vt({target:"String",proto:!0,forced:Ov},{padStart:function(e){return Fv(this,e,arguments.length>1?arguments[1]:void 0)}});var Bv=k([].push),Lv=k([].join);Vt({target:"String",stat:!0},{raw:function(e){var t=R(de(e).raw),n=Et(t);if(!n)return"";for(var r=arguments.length,a=[],o=0;;){if(Bv(a,en(t[o++])),o===n)return Lv(a,"");o<r&&Bv(a,en(arguments[o]))}}}),Vt({target:"String",proto:!0},{repeat:Nu});var Dv=Math.floor,_v=k("".charAt),Gv=k("".replace),jv=k("".slice),Uv=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,zv=/\$([$&'`]|\d{1,2})/g,Kv=function(e,t,n,r,a,o){var i=n+e.length,s=r.length,l=zv;return void 0!==a&&(a=de(a),l=Uv),Gv(o,l,(function(o,l){var u;switch(_v(l,0)){case"$":return"$";case"&":return e;case"`":return jv(t,0,n);case"'":return jv(t,i);case"<":u=a[jv(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>s){var d=Dv(c/10);return 0===d?o:d<=s?void 0===r[d-1]?_v(l,1):r[d-1]+_v(l,1):o}u=r[c-1]}return void 0===u?"":u}))},Vv=Ce("replace"),Hv=Math.max,Wv=Math.min,Zv=k([].concat),qv=k([].push),Yv=k("".indexOf),Jv=k("".slice),Qv="$0"==="a".replace(/./,"$0"),Xv=!!/./[Vv]&&""===/./[Vv]("a","$0"),ey=!d((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));mv("replace",(function(e,t,n){var r=Xv?"$":"$0";return[function(e,n){var r=O(this),a=N(e)?void 0:te(e,Vv);return a?g(a,e,r,n):g(t,en(r),e,n)},function(e,a){var o=Be(this),i=en(e);if("string"==typeof a&&-1===Yv(a,r)&&-1===Yv(a,"$<")){var s=n(t,o,i,a);if(s.done)return s.value}var l=B(a);l||(a=en(a));var u,c=o.global;c&&(u=o.unicode,o.lastIndex=0);for(var d,f=[];null!==(d=wv(o,i))&&(qv(f,d),c);){""===en(d[0])&&(o.lastIndex=yv(i,St(o.lastIndex),u))}for(var h,p="",g=0,m=0;m<f.length;m++){for(var v,y=en((d=f[m])[0]),b=Hv(Wv(vt(d.index),i.length),0),w=[],C=1;C<d.length;C++)qv(w,void 0===(h=d[C])?h:String(h));var S=d.groups;if(l){var E=Zv([y],w,b,i);void 0!==S&&qv(E,S),v=en(Tr(a,void 0,E))}else v=Kv(y,i,b,w,S,a);b>=g&&(p+=Jv(i,g,b)+v,g=b+y.length)}return p+Jv(i,g)}]}),!ey||!Qv||Xv);var ty=Ce("replace"),ny=TypeError,ry=k("".indexOf);k("".replace);var ay=k("".slice),oy=Math.max,iy=function(e,t,n){return n>e.length?-1:""===t?n:ry(e,t,n)};Vt({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,a,o,i,s,l,u,c=O(this),d=0,f=0,h="";if(!N(e)){if(Pg(e)&&(n=en(O(Og(e))),!~ry(n,"g")))throw new ny("`.replaceAll` does not allow non-global regexes");if(r=te(e,ty))return g(r,e,c,t)}for(a=en(c),o=en(e),(i=B(t))||(t=en(t)),s=o.length,l=oy(1,s),d=iy(a,o,0);-1!==d;)u=i?en(t(o,d,a)):Kv(o,a,d,[],void 0,t),h+=ay(a,f,d)+u,f=d+s,d=iy(a,o,d+l);return f<a.length&&(h+=ay(a,f)),h}}),mv("search",(function(e,t,n){return[function(t){var n=O(this),r=N(t)?void 0:te(t,e);return r?g(r,t,n):new RegExp(t)[e](en(n))},function(e){var r=Be(this),a=en(e),o=n(t,r,a);if(o.done)return o.value;var i=r.lastIndex;dh(i,0)||(r.lastIndex=0);var s=wv(r,a);return dh(r.lastIndex,i)||(r.lastIndex=i),null===s?-1:s.index}]}));var sy=Dg.UNSUPPORTED_Y,ly=4294967295,uy=Math.min,cy=[].push,dy=k(/./.exec),fy=k(cy),hy=k("".slice),py=!d((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));mv("split",(function(e,t,n){var r;return r="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=en(O(this)),a=void 0===n?ly:n>>>0;if(0===a)return[];if(void 0===e)return[r];if(!Pg(e))return g(t,r,e,a);for(var o,i,s,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,d=new RegExp(e.source,u+"g");(o=g(km,d,r))&&!((i=d.lastIndex)>c&&(fy(l,hy(r,c,o.index)),o.length>1&&o.index<r.length&&Tr(cy,l,pn(o,1)),s=o[0].length,c=i,l.length>=a));)d.lastIndex===o.index&&d.lastIndex++;return c===r.length?!s&&dy(d,"")||fy(l,""):fy(l,hy(r,c)),l.length>a?pn(l,0,a):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:g(t,this,e,n)}:t,[function(t,n){var a=O(this),o=N(t)?void 0:te(t,e);return o?g(o,t,a,n):g(r,en(a),t,n)},function(e,a){var o=Be(this),i=en(e),s=n(r,o,i,a,r!==t);if(s.done)return s.value;var l=gu(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(sy?"g":"y"),d=new l(sy?"^(?:"+o.source+")":o,c),f=void 0===a?ly:a>>>0;if(0===f)return[];if(0===i.length)return null===wv(d,i)?[i]:[];for(var h=0,p=0,g=[];p<i.length;){d.lastIndex=sy?0:p;var m,v=wv(d,sy?hy(i,p):i);if(null===v||(m=uy(St(d.lastIndex+(sy?p:0)),i.length))===h)p=yv(i,p,u);else{if(fy(g,hy(i,h,p)),g.length===f)return g;for(var y=1;y<=v.length-1;y++)if(fy(g,v[y]),g.length===f)return g;p=h=m}}return fy(g,hy(i,h)),g}]}),!py,sy);var gy=Ie.f,my=xn("".slice),vy=Math.min,yy=Jm("startsWith"),by=!yy&&!!function(){var e=gy(String.prototype,"startsWith");return e&&!e.writable}();Vt({target:"String",proto:!0,forced:!by&&!yy},{startsWith:function(e){var t=en(O(this));qm(e);var n=St(vy(arguments.length>1?arguments[1]:void 0,t.length)),r=en(e);return my(t,n,n+r.length)===r}});var wy=k("".slice),Cy=Math.max,Sy=Math.min,Ey=!"".substr||"b"!=="ab".substr(-1);Vt({target:"String",proto:!0,forced:Ey},{substr:function(e,t){var n,r,a=en(O(this)),o=a.length,i=vt(e);return i===1/0&&(i=0),i<0&&(i=Cy(o+i,0)),(n=void 0===t?o:vt(t))<=0||n===1/0||i>=(r=Sy(i+n,o))?"":wy(a,i,r)}});var ky=Array,$y=k("".charAt),Ay=k("".charCodeAt),xy=k([].join),My="".toWellFormed,Ty=My&&d((function(){return"1"!==g(My,1)}));Vt({target:"String",proto:!0,forced:Ty},{toWellFormed:function(){var e=en(O(this));if(Ty)return g(My,e);for(var t=e.length,n=ky(t),r=0;r<t;r++){var a=Ay(e,r);55296!=(63488&a)?n[r]=$y(e,r):a>=56320||r+1>=t||56320!=(64512&Ay(e,r+1))?n[r]="�":(n[r]=$y(e,r),n[++r]=$y(e,r))}return xy(n,"")}});var Py=qe.PROPER,Ny=function(e){return d((function(){return!!Id[e]()||"
"!=="
"[e]()||Py&&Id[e].name!==e}))},Iy=Ld.trim;Vt({target:"String",proto:!0,forced:Ny("trim")},{trim:function(){return Iy(this)}});var Oy=Ld.end,Ry=Ny("trimEnd")?function(){return Oy(this)}:"".trimEnd;Vt({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==Ry},{trimRight:Ry}),Vt({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==Ry},{trimEnd:Ry});var Fy=Ld.start,By=Ny("trimStart")?function(){return Fy(this)}:"".trimStart;Vt({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==By},{trimLeft:By}),Vt({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==By},{trimStart:By});var Ly=/"/g,Dy=k("".replace),_y=function(e,t,n,r){var a=en(O(e)),o="<"+t;return""!==n&&(o+=" "+n+'="'+Dy(en(r),Ly,""")+'"'),o+">"+a+"</"+t+">"},Gy=function(e){return d((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};Vt({target:"String",proto:!0,forced:Gy("anchor")},{anchor:function(e){return _y(this,"a","name",e)}}),Vt({target:"String",proto:!0,forced:Gy("big")},{big:function(){return _y(this,"big","","")}}),Vt({target:"String",proto:!0,forced:Gy("blink")},{blink:function(){return _y(this,"blink","","")}}),Vt({target:"String",proto:!0,forced:Gy("bold")},{bold:function(){return _y(this,"b","","")}}),Vt({target:"String",proto:!0,forced:Gy("fixed")},{fixed:function(){return _y(this,"tt","","")}}),Vt({target:"String",proto:!0,forced:Gy("fontcolor")},{fontcolor:function(e){return _y(this,"font","color",e)}}),Vt({target:"String",proto:!0,forced:Gy("fontsize")},{fontsize:function(e){return _y(this,"font","size",e)}}),Vt({target:"String",proto:!0,forced:Gy("italics")},{italics:function(){return _y(this,"i","","")}}),Vt({target:"String",proto:!0,forced:Gy("link")},{link:function(e){return _y(this,"a","href",e)}}),Vt({target:"String",proto:!0,forced:Gy("small")},{small:function(){return _y(this,"small","","")}}),Vt({target:"String",proto:!0,forced:Gy("strike")},{strike:function(){return _y(this,"strike","","")}}),Vt({target:"String",proto:!0,forced:Gy("sub")},{sub:function(){return _y(this,"sub","","")}}),Vt({target:"String",proto:!0,forced:Gy("sup")},{sup:function(){return _y(this,"sup","","")}});var jy=du.NATIVE_ARRAY_BUFFER_VIEWS,Uy=c.ArrayBuffer,zy=c.Int8Array,Ky=!jy||!d((function(){zy(1)}))||!d((function(){new zy(-1)}))||!qo((function(e){new zy,new zy(null),new zy(1.5),new zy(e)}),!0)||d((function(){return 1!==new zy(new Uy(2),1,void 0).length})),Vy=RangeError,Hy=function(e){var t=vt(e);if(t<0)throw new Vy("The argument can't be less than 0");return t},Wy=RangeError,Zy=function(e,t){var n=Hy(e);if(n%t)throw new Wy("Wrong offset");return n},qy=Math.round,Yy=function(e){var t=qy(e);return t<0?0:t>255?255:255&t},Jy=function(e){var t=Qt(e);return"BigInt64Array"===t||"BigUint64Array"===t},Qy=TypeError,Xy=function(e){var t=ke(e,"number");if("number"==typeof t)throw new Qy("Can't convert number to bigint");return BigInt(t)},eb=du.aTypedArrayConstructor,tb=function(e){var t,n,r,a,o,i,s,l,u=hu(this),c=de(e),d=arguments.length,f=d>1?arguments[1]:void 0,h=void 0!==f,p=Ua(c);if(p&&!Ga(p))for(l=(s=Ka(c,p)).next,c=[];!(i=g(l,s)).done;)c.push(i.value);for(h&&d>2&&(f=Tn(f,arguments[2])),n=Et(c),r=new(eb(u))(n),a=Jy(r),t=0;n>t;t++)o=h?f(c[t],t):c[t],r[t]=a?Xy(o):+o;return r},nb=i((function(e){var t=It.f,n=Vn.forEach,r=dt.get,a=dt.set,o=dt.enforce,i=Ke.f,s=Ie.f,l=c.RangeError,u=_l.ArrayBuffer,d=u.prototype,h=_l.DataView,p=du.NATIVE_ARRAY_BUFFER_VIEWS,m=du.TYPED_ARRAY_TAG,v=du.TypedArray,y=du.TypedArrayPrototype,b=du.isTypedArray,C="BYTES_PER_ELEMENT",S="Wrong length",E=function(e,t){yn(e,t,{configurable:!0,get:function(){return r(this)[t]}})},k=function(e){var t;return _(d,e)||"ArrayBuffer"===(t=Qt(e))||"SharedArrayBuffer"===t},$=function(e,t){return b(e)&&!Y(t)&&t in e&&ef(+t)&&t>=0},A=function(e,t){return t=$e(t),$(e,t)?w(2,e[t]):s(e,t)},x=function(e,t,n){return t=$e(t),!($(e,t)&&L(n)&&he(n,"value"))||he(n,"get")||he(n,"set")||n.configurable||he(n,"writable")&&!n.writable||he(n,"enumerable")&&!n.enumerable?i(e,t,n):(e[t]=n.value,e)};f?(p||(Ie.f=A,Ke.f=x,E(y,"buffer"),E(y,"byteOffset"),E(y,"byteLength"),E(y,"length")),Vt({target:"Object",stat:!0,forced:!p},{getOwnPropertyDescriptor:A,defineProperty:x}),e.exports=function(e,s,d){var f=e.match(/\d+/)[0]/8,w=e+(d?"Clamped":"")+"Array",E="get"+e,$="set"+e,A=c[w],x=A,M=x&&x.prototype,T={},P=function(e,t){i(e,t,{get:function(){return function(e,t){var n=r(e);return n.view[E](t*f+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var a=r(e);a.view[$](t*f+a.byteOffset,d?Yy(n):n,!0)}(this,t,e)},enumerable:!0})};p?Ky&&(x=s((function(e,t,n,r){return zs(e,M),da(L(t)?k(t)?void 0!==r?new A(t,Zy(n,f),r):void 0!==n?new A(t,Zy(n,f)):new A(t):b(t)?Ts(x,t):g(tb,x,t):new A(Vs(t)),e,x)})),la&&la(x,v),n(t(A),(function(e){e in x||Ve(x,e,A[e])})),x.prototype=M):(x=s((function(e,t,n,r){zs(e,M);var o,i,s,c=0,d=0;if(L(t)){if(!k(t))return b(t)?Ts(x,t):g(tb,x,t);o=t,d=Zy(n,f);var p=t.byteLength;if(void 0===r){if(p%f)throw new l(S);if((i=p-d)<0)throw new l(S)}else if((i=St(r)*f)+d>p)throw new l(S);s=i/f}else s=Vs(t),o=new u(i=s*f);for(a(e,{buffer:o,byteOffset:d,byteLength:i,length:s,view:new h(o)});c<s;)P(e,c++)})),la&&la(x,v),M=x.prototype=hn(y)),M.constructor!==x&&Ve(M,"constructor",x),o(M).TypedArrayConstructor=x,m&&Ve(M,m,w);var N=x!==A;T[w]=x,Vt({global:!0,constructor:!0,forced:N,sham:!p},T),C in x||Ve(x,C,f),C in M||Ve(M,C,f),Es(w)}):e.exports=function(){}}));nb("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}})),nb("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}})),nb("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}})),nb("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}})),nb("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}})),nb("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}})),nb("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0),nb("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}})),nb("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}));var rb=du.aTypedArray;(0,du.exportTypedArrayMethod)("at",(function(e){var t=rb(this),n=Et(t),r=vt(e),a=r>=0?r:n+r;return a<0||a>=n?void 0:t[a]}));var ab=k(Co),ob=du.aTypedArray;(0,du.exportTypedArrayMethod)("copyWithin",(function(e,t){return ab(ob(this),e,t,arguments.length>2?arguments[2]:void 0)}));var ib=Vn.every,sb=du.aTypedArray;(0,du.exportTypedArrayMethod)("every",(function(e){return ib(sb(this),e,arguments.length>1?arguments[1]:void 0)}));var lb=du.aTypedArray,ub=du.exportTypedArrayMethod,cb=k("".slice),db=d((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}));ub("fill",(function(e){var t=arguments.length;lb(this);var n="Big"===cb(Qt(this),0,3)?Xy(e):+e;return g($o,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),db);var fb=du.aTypedArrayConstructor,hb=du.getTypedArrayConstructor,pb=function(e){return fb(gu(e,hb(e)))},gb=function(e,t){return Ts(pb(e),t)},mb=Vn.filter,vb=du.aTypedArray;(0,du.exportTypedArrayMethod)("filter",(function(e){var t=mb(vb(this),e,arguments.length>1?arguments[1]:void 0);return gb(this,t)}));var yb=Vn.find,bb=du.aTypedArray;(0,du.exportTypedArrayMethod)("find",(function(e){return yb(bb(this),e,arguments.length>1?arguments[1]:void 0)}));var wb=Vn.findIndex,Cb=du.aTypedArray;(0,du.exportTypedArrayMethod)("findIndex",(function(e){return wb(Cb(this),e,arguments.length>1?arguments[1]:void 0)}));var Sb=Fo.findLast,Eb=du.aTypedArray;(0,du.exportTypedArrayMethod)("findLast",(function(e){return Sb(Eb(this),e,arguments.length>1?arguments[1]:void 0)}));var kb=Fo.findLastIndex,$b=du.aTypedArray;(0,du.exportTypedArrayMethod)("findLastIndex",(function(e){return kb($b(this),e,arguments.length>1?arguments[1]:void 0)}));var Ab=Vn.forEach,xb=du.aTypedArray;(0,du.exportTypedArrayMethod)("forEach",(function(e){Ab(xb(this),e,arguments.length>1?arguments[1]:void 0)})),(0,du.exportTypedArrayStaticMethod)("from",tb,Ky);var Mb=$t.includes,Tb=du.aTypedArray;(0,du.exportTypedArrayMethod)("includes",(function(e){return Mb(Tb(this),e,arguments.length>1?arguments[1]:void 0)}));var Pb=$t.indexOf,Nb=du.aTypedArray;(0,du.exportTypedArrayMethod)("indexOf",(function(e){return Pb(Nb(this),e,arguments.length>1?arguments[1]:void 0)}));var Ib=Ce("iterator"),Ob=c.Uint8Array,Rb=k(Mi.values),Fb=k(Mi.keys),Bb=k(Mi.entries),Lb=du.aTypedArray,Db=du.exportTypedArrayMethod,_b=Ob&&Ob.prototype,Gb=!d((function(){_b[Ib].call([1])})),jb=!!_b&&_b.values&&_b[Ib]===_b.values&&"values"===_b.values.name,Ub=function(){return Rb(Lb(this))};Db("entries",(function(){return Bb(Lb(this))}),Gb),Db("keys",(function(){return Fb(Lb(this))}),Gb),Db("values",Ub,Gb||!jb,{name:"values"}),Db(Ib,Ub,Gb||!jb,{name:"values"});var zb=du.aTypedArray,Kb=du.exportTypedArrayMethod,Vb=k([].join);Kb("join",(function(e){return Vb(zb(this),e)}));var Hb=du.aTypedArray;(0,du.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return Tr(Bi,Hb(this),t>1?[e,arguments[1]]:[e])}));var Wb=Vn.map,Zb=du.aTypedArray;(0,du.exportTypedArrayMethod)("map",(function(e){return Wb(Zb(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(pb(e))(t)}))}));var qb=du.aTypedArrayConstructor;(0,du.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(qb(this))(t);t>e;)n[e]=arguments[e++];return n}),Ky);var Yb=Wi.left,Jb=du.aTypedArray;(0,du.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return Yb(Jb(this),e,t,t>1?arguments[1]:void 0)}));var Qb=Wi.right,Xb=du.aTypedArray;(0,du.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return Qb(Xb(this),e,t,t>1?arguments[1]:void 0)}));var ew=du.aTypedArray,tw=du.exportTypedArrayMethod,nw=Math.floor;tw("reverse",(function(){for(var e,t=this,n=ew(t).length,r=nw(n/2),a=0;a<r;)e=t[a],t[a++]=t[--n],t[n]=e;return t}));var rw=c.RangeError,aw=c.Int8Array,ow=aw&&aw.prototype,iw=ow&&ow.set,sw=du.aTypedArray,lw=du.exportTypedArrayMethod,uw=!d((function(){var e=new Uint8ClampedArray(2);return g(iw,e,{length:1,0:3},1),3!==e[1]})),cw=uw&&du.NATIVE_ARRAY_BUFFER_VIEWS&&d((function(){var e=new aw(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));lw("set",(function(e){sw(this);var t=Zy(arguments.length>1?arguments[1]:void 0,1),n=de(e);if(uw)return g(iw,this,n,t);var r=this.length,a=Et(n),o=0;if(a+t>r)throw new rw("Wrong length");for(;o<a;)this[t+o]=n[o++]}),!uw||cw);var dw=du.aTypedArray;(0,du.exportTypedArrayMethod)("slice",(function(e,t){for(var n=pn(dw(this),e,t),r=pb(this),a=0,o=n.length,i=new r(o);o>a;)i[a]=n[a++];return i}),d((function(){new Int8Array(1).slice()})));var fw=Vn.some,hw=du.aTypedArray;(0,du.exportTypedArrayMethod)("some",(function(e){return fw(hw(this),e,arguments.length>1?arguments[1]:void 0)}));var pw=du.aTypedArray,gw=du.exportTypedArrayMethod,mw=c.Uint16Array,vw=mw&&xn(mw.prototype.sort),yw=!(!vw||d((function(){vw(new mw(2),null)}))&&d((function(){vw(new mw(2),{})}))),bw=!!vw&&!d((function(){if(V)return V<74;if(ds)return ds<67;if(fs)return!0;if(ps)return ps<602;var e,t,n=new mw(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(vw(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));gw("sort",(function(e){return void 0!==e&&ee(e),bw?vw(this,e):us(pw(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!bw||yw);var ww=du.aTypedArray;(0,du.exportTypedArrayMethod)("subarray",(function(e,t){var n=ww(this),r=n.length,a=wt(e,r);return new(pb(n))(n.buffer,n.byteOffset+a*n.BYTES_PER_ELEMENT,St((void 0===t?r:wt(t,r))-a))}));var Cw=c.Int8Array,Sw=du.aTypedArray,Ew=du.exportTypedArrayMethod,kw=[].toLocaleString,$w=!!Cw&&d((function(){kw.call(new Cw(1))}));Ew("toLocaleString",(function(){return Tr(kw,$w?pn(Sw(this)):Sw(this),pn(arguments))}),d((function(){return[1,2].toLocaleString()!==new Cw([1,2]).toLocaleString()}))||!d((function(){Cw.prototype.toLocaleString.call([1,2])})));var Aw=du.aTypedArray,xw=du.getTypedArrayConstructor;(0,du.exportTypedArrayMethod)("toReversed",(function(){return xs(Aw(this),xw(this))}));var Mw=du.aTypedArray,Tw=du.getTypedArrayConstructor,Pw=du.exportTypedArrayMethod,Nw=k(du.TypedArrayPrototype.sort);Pw("toSorted",(function(e){void 0!==e&&ee(e);var t=Mw(this),n=Ts(Tw(t),t);return Nw(n,e)}));var Iw=du.exportTypedArrayMethod,Ow=c.Uint8Array,Rw=Ow&&Ow.prototype||{},Fw=[].toString,Bw=k([].join);d((function(){Fw.call({})}))&&(Fw=function(){return Bw(this)});var Lw=Rw.toString!==Fw;Iw("toString",Fw,Lw);var Dw=du.aTypedArray,_w=du.getTypedArrayConstructor,Gw=du.exportTypedArrayMethod,jw=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();Gw("with",{with:function(e,t){var n=Dw(this),r=vt(e),a=Jy(n)?Xy(t):+t;return Ds(n,_w(n),r,a)}}.with,!jw);var Uw=String.fromCharCode,zw=k("".charAt),Kw=k(/./.exec),Vw=k("".slice),Hw=/^[\da-f]{2}$/i,Ww=/^[\da-f]{4}$/i;Vt({global:!0},{unescape:function(e){for(var t,n,r=en(e),a="",o=r.length,i=0;i<o;){if("%"===(t=zw(r,i++)))if("u"===zw(r,i)){if(n=Vw(r,i+1,i+5),Kw(Ww,n)){a+=Uw(parseInt(n,16)),i+=5;continue}}else if(n=Vw(r,i,i+2),Kw(Hw,n)){a+=Uw(parseInt(n,16)),i+=2;continue}a+=t}return a}});var Zw=Pc.getWeakData,qw=dt.set,Yw=dt.getterFor,Jw=Vn.find,Qw=Vn.findIndex,Xw=k([].splice),eC=0,tC=function(e){return e.frozen||(e.frozen=new nC)},nC=function(){this.entries=[]},rC=function(e,t){return Jw(e.entries,(function(e){return e[0]===t}))};nC.prototype={get:function(e){var t=rC(this,e);if(t)return t[1]},has:function(e){return!!rC(this,e)},set:function(e,t){var n=rC(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Qw(this.entries,(function(t){return t[0]===e}));return~t&&Xw(this.entries,t,1),!!~t}};var aC,oC={getConstructor:function(e,t,n,r){var a=e((function(e,a){zs(e,o),qw(e,{type:t,id:eC++,frozen:void 0}),N(a)||qa(a,e[r],{that:e,AS_ENTRIES:n})})),o=a.prototype,i=Yw(t),s=function(e,t,n){var r=i(e),a=Zw(Be(t),!0);return!0===a?tC(r).set(t,n):a[r.id]=n,e};return js(o,{delete:function(e){var t=i(this);if(!L(e))return!1;var n=Zw(e);return!0===n?tC(t).delete(e):n&&he(n,t.id)&&delete n[t.id]},has:function(e){var t=i(this);if(!L(e))return!1;var n=Zw(e);return!0===n?tC(t).has(e):n&&he(n,t.id)}}),js(o,n?{get:function(e){var t=i(this);if(L(e)){var n=Zw(e);return!0===n?tC(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),a}},iC=dt.enforce,sC=Object,lC=Array.isArray,uC=sC.isExtensible,cC=sC.isFrozen,dC=sC.isSealed,fC=sC.freeze,hC=sC.seal,pC=!c.ActiveXObject&&"ActiveXObject"in c,gC=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},mC=Nc("WeakMap",gC,oC),vC=mC.prototype,yC=k(vC.set);if(nt)if(pC){aC=oC.getConstructor(gC,"WeakMap",!0),Pc.enable();var bC=k(vC.delete),wC=k(vC.has),CC=k(vC.get);js(vC,{delete:function(e){if(L(e)&&!uC(e)){var t=iC(this);return t.frozen||(t.frozen=new aC),bC(this,e)||t.frozen.delete(e)}return bC(this,e)},has:function(e){if(L(e)&&!uC(e)){var t=iC(this);return t.frozen||(t.frozen=new aC),wC(this,e)||t.frozen.has(e)}return wC(this,e)},get:function(e){if(L(e)&&!uC(e)){var t=iC(this);return t.frozen||(t.frozen=new aC),wC(this,e)?CC(this,e):t.frozen.get(e)}return CC(this,e)},set:function(e,t){if(L(e)&&!uC(e)){var n=iC(this);n.frozen||(n.frozen=new aC),wC(this,e)?yC(this,e,t):n.frozen.set(e,t)}else yC(this,e,t);return this}})}else Tc&&d((function(){var e=fC([]);return yC(new mC,e,1),!cC(e)}))&&js(vC,{set:function(e,t){var n;return lC(e)&&(cC(e)?n=fC:dC(e)&&(n=hC)),yC(this,e,t),n&&n(e),this}});Nc("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),oC);var SC=Ce("toStringTag"),EC=Error,kC=function(e,t,n){var r,a=_($C,this);return la?r=la(new EC,a?Ba(this):$C):(r=a?this:hn($C),Ve(r,SC,"Error")),void 0!==n&&Ve(r,"message",fa(n)),Sa(r,kC,r.stack,1),Ve(r,"error",e),Ve(r,"suppressed",t),r};la?la(kC,EC):Bt(kC,EC,{name:!0});var $C=kC.prototype=hn(EC.prototype,{constructor:w(1,kC),message:w(1,""),name:w(1,"SuppressedError")});Vt({global:!0,constructor:!0,arity:3},{SuppressedError:kC});var AC,xC,MC="USE_FUNCTION_CONSTRUCTOR",TC=Ce("asyncIterator"),PC=c.AsyncIterator,NC=le.AsyncIteratorPrototype;if(NC)AC=NC;else if(B(PC))AC=PC.prototype;else if(le[MC]||c[MC])try{xC=Ba(Ba(Ba(Function("return async function*(){}()")()))),Ba(xC)===Object.prototype&&(AC=xC)}catch(e){}AC||(AC={}),B(AC[TC])||ht(AC,TC,(function(){return this}));var IC=AC,OC=D("Promise"),RC="AsyncFromSyncIterator",FC=dt.set,BC=dt.getterFor(RC),LC=function(e,t,n){var r=e.done;OC.resolve(e.value).then((function(e){t(Ei(e,r))}),n)},DC=function(e){e.type=RC,FC(this,e)};DC.prototype=js(hn(IC),{next:function(){var e=BC(this);return new OC((function(t,n){var r=Be(g(e.next,e.iterator));LC(r,t,n)}))},return:function(){var e=BC(this).iterator;return new OC((function(t,n){var r=te(e,"return");if(void 0===r)return t(Ei(void 0,!0));var a=Be(g(r,e));LC(a,t,n)}))}});var _C=DC,GC=function(e){return{iterator:e,next:e.next,done:!1}},jC=Ce("asyncIterator"),UC=function(e,t,n,r){try{var a=te(e,"return");if(a)return D("Promise").resolve(g(a,e)).then((function(){t(n)}),(function(e){r(e)}))}catch(e){return r(e)}t(n)},zC=function(e){var t=0===e,n=1===e,r=2===e,a=3===e;return function(e,o,i){Be(e);var s=void 0!==o;!s&&t||ee(o);var l=GC(e),u=D("Promise"),c=l.iterator,d=l.next,f=0;return new u((function(e,l){var h=function(e){UC(c,l,e,l)},p=function(){try{if(s)try{uo(f)}catch(e){h(e)}u.resolve(Be(g(d,c))).then((function(d){try{if(Be(d).done)t?(i.length=f,e(i)):e(!a&&(r||void 0));else{var g=d.value;try{if(s){var m=o(g,f),v=function(o){if(n)p();else if(r)o?p():UC(c,e,!1,l);else if(t)try{i[f++]=o,p()}catch(e){h(e)}else o?UC(c,e,a||g,l):p()};L(m)?u.resolve(m).then(v,h):v(m)}else i[f++]=g,p()}catch(e){h(e)}}}catch(e){l(e)}}),l)}catch(e){l(e)}};p()}))}},KC={toArray:zC(0),forEach:zC(1),every:zC(2),some:zC(3),find:zC(4)},VC=KC.toArray,HC=Ce("asyncIterator"),WC=k(Ps("Array","values")),ZC=k(WC([]).next),qC=function(){return new YC(this)},YC=function(e){this.iterator=WC(e)};YC.prototype.next=function(){return ZC(this.iterator)};var JC=function(e){var t=this,n=arguments.length,r=n>1?arguments[1]:void 0,a=n>2?arguments[2]:void 0;return new(D("Promise"))((function(n){var o=de(e);void 0!==r&&(r=Tn(r,a));var i=te(o,HC),s=i?void 0:Ua(o)||qC,l=_n(t)?new t:[],u=i?function(e,t){var n=arguments.length<2?te(e,jC):t;return n?Be(g(n,e)):new _C(GC(Ka(e)))}(o,i):new _C(GC(Ka(o,s)));n(VC(u,r,l))}))};Vt({target:"Array",stat:!0},{fromAsync:JC});var QC=Vn.filterReject;Vt({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return QC(this,e,arguments.length>1?arguments[1]:void 0)}}),so("filterOut");var XC=Vn.filterReject;Vt({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return XC(this,e,arguments.length>1?arguments[1]:void 0)}}),so("filterReject");var eS=Array,tS=k([].push),nS=function(e,t,n,r){for(var a,o,i,s=de(e),l=P(s),u=Tn(t,n),c=hn(null),d=Et(l),f=0;d>f;f++)i=l[f],(o=$e(u(i,f,s)))in c?tS(c[o],i):c[o]=[i];if(r&&(a=r(s))!==eS)for(o in c)c[o]=Ts(a,c[o]);return c};Vt({target:"Array",proto:!0},{group:function(e){return nS(this,e,arguments.length>1?arguments[1]:void 0)}}),so("group"),Vt({target:"Array",proto:!0,forced:!So("groupBy")},{groupBy:function(e){return nS(this,e,arguments.length>1?arguments[1]:void 0)}}),so("groupBy");var rS=Lc.Map,aS=Lc.get,oS=Lc.has,iS=Lc.set,sS=k([].push),lS=function(e){for(var t,n,r=de(this),a=P(r),o=Tn(e,arguments.length>1?arguments[1]:void 0),i=new rS,s=Et(a),l=0;s>l;l++)t=o(n=a[l],l,r),oS(i,t)?sS(aS(i,t),n):iS(i,t,[n]);return i};Vt({target:"Array",proto:!0,name:"groupToMap",forced:!So("groupByToMap")},{groupByToMap:lS}),so("groupByToMap"),Vt({target:"Array",proto:!0,forced:ae},{groupToMap:lS}),so("groupToMap");var uS=Object.isFrozen,cS=function(e,t){if(!uS||!Pn(e)||!uS(e))return!1;for(var n,r=0,a=e.length;r<a;)if(!("string"==typeof(n=e[r++])||t&&void 0===n))return!1;return 0!==a};Vt({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!cS(e,!0))return!1;var t=e.raw;return t.length===e.length&&cS(t,!1)}}),f&&(yn(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=de(this),t=Et(e);return 0===t?0:t-1}}),so("lastIndex")),f&&(yn(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=de(this),t=Et(e);return 0===t?void 0:e[t-1]},set:function(e){var t=de(this),n=Et(t);return t[0===n?0:n-1]=e}}),so("lastItem"));var dS=function(e,t,n){for(var r,a,o=e.iterator,i=e.next;!(r=g(i,o)).done;)if(void 0!==(a=t(r.value)))return a},fS=Lc.Map,hS=Lc.proto,pS=k(hS.forEach),gS=k(hS.entries),mS=gS(new fS).next,vS=function(e,t,n){return n?dS({iterator:gS(e),next:mS},(function(e){return t(e[1],e[0])})):pS(e,t)},yS=Lc.Map,bS=Lc.has,wS=Lc.set,CS=k([].push),SS=function(e){var t,n,r,a=de(this),o=Et(a),i=[],s=new yS,l=N(e)?function(e){return e}:ee(e);for(t=0;t<o;t++)r=l(n=a[t]),bS(s,r)||wS(s,r,n);return vS(s,(function(e){CS(i,e)})),i};Vt({target:"Array",proto:!0,forced:!0},{uniqueBy:SS}),so("uniqueBy");var ES=TypeError,kS=ra(ArrayBuffer.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==x(e))throw new ES("ArrayBuffer expected");return e.byteLength},$S=k(ArrayBuffer.prototype.slice),AS=function(e){if(0!==kS(e))return!1;try{return $S(e,0,0),!1}catch(e){return!0}},xS=ArrayBuffer.prototype;f&&!("detached"in xS)&&yn(xS,"detached",{configurable:!0,get:function(){return AS(this)}});var MS,TS,PS,NS,IS=function(e){try{if(Zi)return Function('return require("'+e+'")')()}catch(e){}},OS=c.structuredClone,RS=!!OS&&!d((function(){if(Sp&&V>92||Zi&&V>94||Ep&&V>97)return!1;var e=new ArrayBuffer(8),t=OS(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength})),FS=c.structuredClone,BS=c.ArrayBuffer,LS=c.MessageChannel,DS=!1;if(RS)DS=function(e){FS(e,{transfer:[e]})};else if(BS)try{LS||(MS=IS("worker_threads"))&&(LS=MS.MessageChannel),LS&&(TS=new LS,PS=new BS(2),NS=function(e){TS.port1.postMessage(null,[e])},2===PS.byteLength&&(NS(PS),0===PS.byteLength&&(DS=NS)))}catch(e){}var _S=DS,GS=c.structuredClone,jS=c.ArrayBuffer,US=c.DataView,zS=c.TypeError,KS=Math.min,VS=jS.prototype,HS=US.prototype,WS=k(VS.slice),ZS=ra(VS,"resizable","get"),qS=ra(VS,"maxByteLength","get"),YS=k(HS.getInt8),JS=k(HS.setInt8),QS=(RS||_S)&&function(e,t,n){var r,a=kS(e),o=void 0===t?a:Vs(t),i=!ZS||!ZS(e);if(AS(e))throw new zS("ArrayBuffer is detached");if(RS&&(e=GS(e,{transfer:[e]}),a===o&&(n||i)))return e;if(a>=o&&(!n||i))r=WS(e,0,o);else{var s=n&&!i&&qS?{maxByteLength:qS(e)}:void 0;r=new jS(o,s);for(var l=new US(e),u=new US(r),c=KS(o,a),d=0;d<c;d++)JS(u,d,YS(l,d))}return RS||_S(e),r};QS&&Vt({target:"ArrayBuffer",proto:!0},{transfer:function(){return QS(this,arguments.length?arguments[0]:void 0,!0)}}),QS&&Vt({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return QS(this,arguments.length?arguments[0]:void 0,!1)}});var XS=Ce("asyncDispose"),eE=Ce("dispose"),tE=k([].push),nE=function(e,t,n){return arguments.length<3&&!N(e)&&(n=ee(function(e,t){if("async-dispose"===t){var n=te(e,XS);return void 0!==n?n:(n=te(e,eE),function(){g(n,this)})}return te(e,eE)}(Be(e),t))),void 0===n?function(){}:Tn(n,e)},rE=function(e,t,n,r){var a;if(arguments.length<4){if(N(t)&&"sync-dispose"===n)return;a=nE(t,n)}else a=nE(void 0,n,r);tE(e.stack,a)},aE=D("Promise"),oE=D("SuppressedError"),iE=ReferenceError,sE=Ce("asyncDispose"),lE=Ce("toStringTag"),uE="AsyncDisposableStack",cE=dt.set,dE=dt.getterFor(uE),fE="async-dispose",hE="disposed",pE=function(e){var t=dE(e);if(t.state===hE)throw new iE(uE+" already disposed");return t},gE=function(){cE(zs(this,mE),{type:uE,state:"pending",stack:[]}),f||(this.disposed=!1)},mE=gE.prototype;js(mE,{disposeAsync:function(){var e=this;return new aE((function(t,n){var r=dE(e);if(r.state===hE)return t(void 0);r.state=hE,f||(e.disposed=!0);var a,o=r.stack,i=o.length,s=!1,l=function(e){s?a=new oE(e,a):(s=!0,a=e),u()},u=function(){if(i){var e=o[--i];o[i]=null;try{aE.resolve(e()).then(u,l)}catch(e){l(e)}}else r.stack=null,s?n(a):t(void 0)};u()}))},use:function(e){return rE(pE(this),e,fE),e},adopt:function(e,t){var n=pE(this);return ee(t),rE(n,void 0,fE,(function(){return t(e)})),e},defer:function(e){var t=pE(this);ee(e),rE(t,void 0,fE,e)},move:function(){var e=pE(this),t=new gE;return dE(t).stack=e.stack,e.stack=[],e.state=hE,f||(this.disposed=!0),t}}),f&&yn(mE,"disposed",{configurable:!0,get:function(){return dE(this).state===hE}}),ht(mE,sE,mE.disposeAsync,{name:"disposeAsync"}),ht(mE,lE,uE,{nonWritable:!0}),Vt({global:!0,constructor:!0},{AsyncDisposableStack:gE});var vE=Ce("toStringTag"),yE=TypeError,bE=function(){if(zs(this,IC),Ba(this)===IC)throw new yE("Abstract class AsyncIterator not directly constructable")};bE.prototype=IC,he(IC,vE)||Ve(IC,vE,"AsyncIterator"),he(IC,"constructor")&&IC.constructor!==Object||Ve(IC,"constructor",bE),Vt({global:!0,constructor:!0,forced:ae},{AsyncIterator:bE});var wE=D("Promise"),CE=Ce("toStringTag"),SE="AsyncIteratorHelper",EE="WrapForValidAsyncIterator",kE=dt.set,$E=function(e){var t=!e,n=dt.getterFor(e?EE:SE),r=function(e){var r=wp((function(){return n(e)})),a=r.error,o=r.value;return a||t&&o.done?{exit:!0,value:a?wE.reject(o):wE.resolve(Ei(void 0,!0))}:{exit:!1,value:o}};return js(hn(IC),{next:function(){var e=r(this),t=e.value;if(e.exit)return t;var n=wp((function(){return Be(t.nextHandler(wE))})),a=n.error,o=n.value;return a&&(t.done=!0),a?wE.reject(o):wE.resolve(o)},return:function(){var t=r(this),n=t.value;if(t.exit)return n;n.done=!0;var a,o,i=n.iterator,s=wp((function(){if(n.inner)try{Va(n.inner.iterator,"normal")}catch(e){return Va(i,"throw",e)}return te(i,"return")}));return a=o=s.value,s.error?wE.reject(o):void 0===a?wE.resolve(Ei(void 0,!0)):(o=(s=wp((function(){return g(a,i)}))).value,s.error?wE.reject(o):e?wE.resolve(o):wE.resolve(o).then((function(e){return Be(e),Ei(void 0,!0)})))}})},AE=$E(!0),xE=$E(!1);Ve(xE,CE,"Async Iterator Helper");var ME=function(e,t){var n=function(n,r){r?(r.iterator=n.iterator,r.next=n.next):r=n,r.type=t?EE:SE,r.nextHandler=e,r.counter=0,r.done=!1,kE(this,r)};return n.prototype=t?AE:xE,n},TE=ME((function(e){var t=this,n=t.iterator,r=t.mapper;return new e((function(a,o){var i=function(e){t.done=!0,o(e)},s=function(e){UC(n,i,e,i)};e.resolve(Be(g(t.next,n))).then((function(n){try{if(Be(n).done)t.done=!0,a(Ei(void 0,!0));else{var o=n.value;try{var l=r(o,t.counter++),u=function(e){a(Ei(e,!1))};L(l)?e.resolve(l).then(u,s):u(l)}catch(e){s(e)}}}catch(e){i(e)}}),i)}))})),PE=function(e){return Be(this),ee(e),new TE(GC(this),{mapper:e})},NE=function(e,t){return[t,e]},IE=function(){return g(PE,this,NE)};Vt({target:"AsyncIterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:IE});var OE=Ce("asyncDispose"),RE=D("Promise");he(IC,OE)||ht(IC,OE,(function(){var e=this;return new RE((function(t,n){var r=te(e,"return");r?RE.resolve(g(r,e)).then((function(){t(void 0)}),n):t(void 0)}))}));var FE=RangeError,BE=function(e){if(e==e)return e;throw new FE("NaN is not allowed")},LE=ME((function(e){var t=this;return new e((function(n,r){var a=function(e){t.done=!0,r(e)},o=function(){try{e.resolve(Be(g(t.next,t.iterator))).then((function(e){try{Be(e).done?(t.done=!0,n(Ei(void 0,!0))):t.remaining?(t.remaining--,o()):n(Ei(e.value,!1))}catch(e){a(e)}}),a)}catch(e){a(e)}};o()}))}));Vt({target:"AsyncIterator",proto:!0,real:!0,forced:ae},{drop:function(e){Be(this);var t=Hy(BE(+e));return new LE(GC(this),{remaining:t})}});var DE=KC.every;Vt({target:"AsyncIterator",proto:!0,real:!0},{every:function(e){return DE(this,e)}});var _E=ME((function(e){var t=this,n=t.iterator,r=t.predicate;return new e((function(a,o){var i=function(e){t.done=!0,o(e)},s=function(e){UC(n,i,e,i)},l=function(){try{e.resolve(Be(g(t.next,n))).then((function(n){try{if(Be(n).done)t.done=!0,a(Ei(void 0,!0));else{var o=n.value;try{var u=r(o,t.counter++),c=function(e){e?a(Ei(o,!1)):l()};L(u)?e.resolve(u).then(c,s):c(u)}catch(e){s(e)}}}catch(e){i(e)}}),i)}catch(e){i(e)}};l()}))}));Vt({target:"AsyncIterator",proto:!0,real:!0,forced:ae},{filter:function(e){return Be(this),ee(e),new _E(GC(this),{predicate:e})}});var GE=KC.find;Vt({target:"AsyncIterator",proto:!0,real:!0},{find:function(e){return GE(this,e)}});var jE=Ce("asyncIterator"),UE=function(e){var t,n=Be(e),r=!0,a=te(n,jE);return B(a)||(a=Ua(n),r=!1),void 0!==a?t=g(a,n):(t=n,r=!0),Be(t),GC(r?t:new _C(GC(t)))},zE=ME((function(e){var t=this,n=t.iterator,r=t.mapper;return new e((function(a,o){var i=function(e){t.done=!0,o(e)},s=function(e){UC(n,i,e,i)},l=function(){try{e.resolve(Be(g(t.next,n))).then((function(n){try{if(Be(n).done)t.done=!0,a(Ei(void 0,!0));else{var o=n.value;try{var l=r(o,t.counter++),c=function(e){try{t.inner=UE(e),u()}catch(e){s(e)}};L(l)?e.resolve(l).then(c,s):c(l)}catch(e){s(e)}}}catch(e){i(e)}}),i)}catch(e){i(e)}},u=function(){var n=t.inner;if(n)try{e.resolve(Be(g(n.next,n.iterator))).then((function(e){try{Be(e).done?(t.inner=null,l()):a(Ei(e.value,!1))}catch(e){s(e)}}),s)}catch(e){s(e)}else l()};u()}))}));Vt({target:"AsyncIterator",proto:!0,real:!0,forced:ae},{flatMap:function(e){return Be(this),ee(e),new zE(GC(this),{mapper:e,inner:null})}});var KE=KC.forEach;Vt({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(e){return KE(this,e)}});var VE=ME((function(){return g(this.next,this.iterator)}),!0);Vt({target:"AsyncIterator",stat:!0,forced:ae},{from:function(e){var t=UE("string"==typeof e?de(e):e);return _(IC,t.iterator)?t.iterator:new VE(t)}}),Vt({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{indexed:IE}),Vt({target:"AsyncIterator",proto:!0,real:!0,forced:ae},{map:PE});var HE=D("Promise"),WE=TypeError;Vt({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(e){Be(this),ee(e);var t=GC(this),n=t.iterator,r=t.next,a=arguments.length<2,o=a?void 0:arguments[1],i=0;return new HE((function(t,s){var l=function(e){UC(n,s,e,s)},u=function(){try{HE.resolve(Be(g(r,n))).then((function(n){try{if(Be(n).done)a?s(new WE("Reduce of empty iterator with no initial value")):t(o);else{var r=n.value;if(a)a=!1,o=r,u();else try{var c=e(o,r,i),d=function(e){o=e,u()};L(c)?HE.resolve(c).then(d,l):d(c)}catch(e){l(e)}}i++}catch(e){s(e)}}),s)}catch(e){s(e)}};u()}))}});var ZE=KC.some;Vt({target:"AsyncIterator",proto:!0,real:!0},{some:function(e){return ZE(this,e)}});var qE=ME((function(e){var t,n=this,r=n.iterator;if(!n.remaining--){var a=Ei(void 0,!0);return n.done=!0,void 0!==(t=r.return)?e.resolve(g(t,r,void 0)).then((function(){return a})):a}return e.resolve(g(n.next,r)).then((function(e){return Be(e).done?(n.done=!0,Ei(void 0,!0)):Ei(e.value,!1)})).then(null,(function(e){throw n.done=!0,e}))}));Vt({target:"AsyncIterator",proto:!0,real:!0,forced:ae},{take:function(e){Be(this);var t=Hy(BE(+e));return new qE(GC(this),{remaining:t})}});var YE=KC.toArray;Vt({target:"AsyncIterator",proto:!0,real:!0},{toArray:function(){return YE(this,void 0,[])}});var JE="Incorrect Iterator.range arguments",QE="NumericRangeIterator",XE=dt.set,ek=dt.getterFor(QE),tk=RangeError,nk=TypeError,rk=fi((function(e,t,n,r,a,o){if(typeof e!=r||t!==1/0&&t!==-1/0&&typeof t!=r)throw new nk(JE);if(e===1/0||e===-1/0)throw new tk(JE);var i,s=t>e,l=!1;if(void 0===n)i=void 0;else if(L(n))i=n.step,l=!!n.inclusive;else{if(typeof n!=r)throw new nk(JE);i=n}if(N(i)&&(i=s?o:-o),typeof i!=r)throw new nk(JE);if(i===1/0||i===-1/0||i===a&&e!==t)throw new tk(JE);XE(this,{type:QE,start:e,end:t,step:i,inclusive:l,hitsEnd:e!=e||t!=t||i!=i||t>e!=i>a,currentCount:a,zero:a}),f||(this.start=e,this.end=t,this.step=i,this.inclusive=l)}),QE,(function(){var e=ek(this);if(e.hitsEnd)return Ei(void 0,!0);var t=e.start,n=e.end,r=t+e.step*e.currentCount++;r===n&&(e.hitsEnd=!0);var a=e.inclusive;return(n>t?a?r>n:r>=n:a?n>r:n>=r)?(e.hitsEnd=!0,Ei(void 0,!0)):Ei(r,!1)})),ak=function(e){yn(rk.prototype,e,{get:function(){return ek(this)[e]},set:function(){},configurable:!0,enumerable:!1})};f&&(ak("start"),ak("end"),ak("inclusive"),ak("step"));var ok=rk;"function"==typeof BigInt&&Vt({target:"BigInt",stat:!0,forced:!0},{range:function(e,t,n){return new ok(e,t,n,"bigint",BigInt(0),BigInt(1))}});var ik=Object,sk=TypeError,lk=D("Map"),uk=D("WeakMap"),ck=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=hn(null)};ck.prototype.get=function(e,t){return this[e]||(this[e]=t())},ck.prototype.next=function(e,t,n){var r=n?this.objectsByIndex[e]||(this.objectsByIndex[e]=new uk):this.primitives||(this.primitives=new lk),a=r.get(t);return a||r.set(t,a=new ck),a};var dk=new ck,fk=function(){var e,t,n=dk,r=arguments.length;for(e=0;e<r;e++)L(t=arguments[e])&&(n=n.next(e,t,!0));if(this===ik&&n===dk)throw new sk("Composite keys must contain a non-primitive component");for(e=0;e<r;e++)L(t=arguments[e])||(n=n.next(e,t,!1));return n},hk=Object,pk=function(){var e=D("Object","freeze");return e?e(hn(null)):hn(null)};Vt({global:!0,forced:!0},{compositeKey:function(){return Tr(fk,hk,arguments).get("object",pk)}}),Vt({global:!0,forced:!0},{compositeSymbol:function(){return 1===arguments.length&&"string"==typeof arguments[0]?D("Symbol").for(arguments[0]):Tr(fk,null,arguments).get("symbol",D("Symbol"))}});var gk=ol,mk=k(DataView.prototype.getUint16);Vt({target:"DataView",proto:!0},{getFloat16:function(e){var t=mk(this,e,arguments.length>1&&arguments[1]);return gk([255&t,t>>8&255],10)}});var vk=k(DataView.prototype.getUint8);Vt({target:"DataView",proto:!0,forced:!0},{getUint8Clamped:function(e){return vk(this,e)}});var yk=TypeError,bk=function(e){if("DataView"===Qt(e))return e;throw new yk("Argument is not a DataView")},wk=Math.f16round||function(e){return Ys(e,.0009765625,65504,6103515625e-14)},Ck=al,Sk=k(DataView.prototype.setUint16);Vt({target:"DataView",proto:!0},{setFloat16:function(e,t){bk(this);var n=Vs(e),r=Ck(wk(t),10,2);return Sk(this,n,r[1]<<8|r[0],arguments.length>2&&arguments[2])}});var Ek=k(DataView.prototype.setUint8);Vt({target:"DataView",proto:!0,forced:!0},{setUint8Clamped:function(e,t){bk(this);var n=Vs(e);return Ek(this,n,Yy(t))}});var kk=D("SuppressedError"),$k=ReferenceError,Ak=Ce("dispose"),xk=Ce("toStringTag"),Mk="DisposableStack",Tk=dt.set,Pk=dt.getterFor(Mk),Nk="sync-dispose",Ik="disposed",Ok=function(e){var t=Pk(e);if(t.state===Ik)throw new $k(Mk+" already disposed");return t},Rk=function(){Tk(zs(this,Fk),{type:Mk,state:"pending",stack:[]}),f||(this.disposed=!1)},Fk=Rk.prototype;js(Fk,{dispose:function(){var e=Pk(this);if(e.state!==Ik){e.state=Ik,f||(this.disposed=!0);for(var t,n=e.stack,r=n.length,a=!1;r;){var o=n[--r];n[r]=null;try{o()}catch(e){a?t=new kk(e,t):(a=!0,t=e)}}if(e.stack=null,a)throw t}},use:function(e){return rE(Ok(this),e,Nk),e},adopt:function(e,t){var n=Ok(this);return ee(t),rE(n,void 0,Nk,(function(){t(e)})),e},defer:function(e){var t=Ok(this);ee(e),rE(t,void 0,Nk,e)},move:function(){var e=Ok(this),t=new Rk;return Pk(t).stack=e.stack,e.stack=[],e.state=Ik,f||(this.disposed=!0),t}}),f&&yn(Fk,"disposed",{configurable:!0,get:function(){return Pk(this).state===Ik}}),ht(Fk,Ak,Fk.dispose,{name:"dispose"}),ht(Fk,xk,Mk,{nonWritable:!0}),Vt({global:!0,constructor:!0},{DisposableStack:Rk});var Bk=function(){return k(ee(this))};Vt({target:"Function",proto:!0,forced:!0},{demethodize:Bk});var Lk=Object.getOwnPropertyDescriptor,Dk=/^\s*class\b/,_k=k(Dk.exec);Vt({target:"Function",stat:!0,sham:!0,forced:!0},{isCallable:function(e){return B(e)&&!function(e){try{if(!f||!_k(Dk,et(e)))return!1}catch(e){}var t=Lk(e,"prototype");return!!t&&he(t,"writable")&&!t.writable}(e)}}),Vt({target:"Function",stat:!0,forced:!0},{isConstructor:_n});var Gk=Ke.f,jk=Ce("metadata"),Uk=Function.prototype;void 0===Uk[jk]&&Gk(Uk,jk,{value:null}),Vt({target:"Function",proto:!0,forced:!0,name:"demethodize"},{unThis:Bk});var zk=ui.IteratorPrototype,Kk="constructor",Vk="Iterator",Hk=Ce("toStringTag"),Wk=TypeError,Zk=c[Vk],qk=!B(Zk)||Zk.prototype!==zk||!d((function(){Zk({})})),Yk=function(){if(zs(this,zk),Ba(this)===zk)throw new Wk("Abstract class Iterator not directly constructable")},Jk=function(e,t){f?yn(zk,e,{configurable:!0,get:function(){return t},set:function(t){if(Be(this),this===zk)throw new Wk("You can't redefine this property");he(this,e)?this[e]=t:co(this,e,t)}}):zk[e]=t};he(zk,Hk)||Jk(Hk,Vk),!qk&&he(zk,Kk)&&zk[Kk]!==Object||Jk(Kk,Yk),Yk.prototype=zk,Vt({global:!0,constructor:!0,forced:qk},{Iterator:Yk});var Qk=ui.IteratorPrototype,Xk=Ce("toStringTag"),e$="IteratorHelper",t$="WrapForValidIterator",n$=dt.set,r$=function(e){var t=dt.getterFor(e?t$:e$);return js(hn(Qk),{next:function(){var n=t(this);if(e)return n.nextHandler();try{var r=n.done?void 0:n.nextHandler();return Ei(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var n=t(this),r=n.iterator;if(n.done=!0,e){var a=te(r,"return");return a?g(a,r):Ei(void 0,!0)}if(n.inner)try{Va(n.inner.iterator,"normal")}catch(e){return Va(r,"throw",e)}return Va(r,"normal"),Ei(void 0,!0)}})},a$=r$(!0),o$=r$(!1);Ve(o$,Xk,"Iterator Helper");var i$=function(e,t){var n=function(n,r){r?(r.iterator=n.iterator,r.next=n.next):r=n,r.type=t?t$:e$,r.nextHandler=e,r.counter=0,r.done=!1,n$(this,r)};return n.prototype=t?a$:o$,n},s$=i$((function(){var e=this.iterator,t=Be(g(this.next,e));if(!(this.done=!!t.done))return Uo(e,this.mapper,[t.value,this.counter++],!0)})),l$=function(e){return Be(this),ee(e),new s$(GC(this),{mapper:e})},u$=function(e,t){return[t,e]},c$=function(){return g(l$,this,u$)};Vt({target:"Iterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:c$});var d$=ui.IteratorPrototype,f$=Ce("dispose");he(d$,f$)||ht(d$,f$,(function(){var e=te(this,"return");e&&g(e,this)}));var h$=i$((function(){for(var e,t=this.iterator,n=this.next;this.remaining;)if(this.remaining--,e=Be(g(n,t)),this.done=!!e.done)return;if(e=Be(g(n,t)),!(this.done=!!e.done))return e.value}));Vt({target:"Iterator",proto:!0,real:!0,forced:ae},{drop:function(e){Be(this);var t=Hy(BE(+e));return new h$(GC(this),{remaining:t})}}),Vt({target:"Iterator",proto:!0,real:!0},{every:function(e){Be(this),ee(e);var t=GC(this),n=0;return!qa(t,(function(t,r){if(!e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var p$=i$((function(){for(var e,t,n=this.iterator,r=this.predicate,a=this.next;;){if(e=Be(g(a,n)),this.done=!!e.done)return;if(t=e.value,Uo(n,r,[t,this.counter++],!0))return t}}));Vt({target:"Iterator",proto:!0,real:!0,forced:ae},{filter:function(e){return Be(this),ee(e),new p$(GC(this),{predicate:e})}}),Vt({target:"Iterator",proto:!0,real:!0},{find:function(e){Be(this),ee(e);var t=GC(this),n=0;return qa(t,(function(t,r){if(e(t,n++))return r(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}});var g$=function(e,t){t&&"string"==typeof e||Be(e);var n=Ua(e);return GC(Be(void 0!==n?g(n,e):e))},m$=i$((function(){for(var e,t,n=this.iterator,r=this.mapper;;){if(t=this.inner)try{if(!(e=Be(g(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){Va(n,"throw",e)}if(e=Be(g(this.next,n)),this.done=!!e.done)return;try{this.inner=g$(r(e.value,this.counter++),!1)}catch(e){Va(n,"throw",e)}}}));Vt({target:"Iterator",proto:!0,real:!0,forced:ae},{flatMap:function(e){return Be(this),ee(e),new m$(GC(this),{mapper:e,inner:null})}}),Vt({target:"Iterator",proto:!0,real:!0},{forEach:function(e){Be(this),ee(e);var t=GC(this),n=0;qa(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}});var v$=ui.IteratorPrototype,y$=i$((function(){return g(this.next,this.iterator)}),!0);Vt({target:"Iterator",stat:!0,forced:ae},{from:function(e){var t=g$("string"==typeof e?de(e):e,!0);return _(v$,t.iterator)?t.iterator:new y$(t)}}),Vt({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:c$}),Vt({target:"Iterator",proto:!0,real:!0,forced:ae},{map:l$});var b$=TypeError;Vt({target:"Iterator",stat:!0,forced:!0},{range:function(e,t,n){if("number"==typeof e)return new ok(e,t,n,"number",0,1);if("bigint"==typeof e)return new ok(e,t,n,"bigint",BigInt(0),BigInt(1));throw new b$("Incorrect Iterator.range arguments")}});var w$=TypeError;Vt({target:"Iterator",proto:!0,real:!0},{reduce:function(e){Be(this),ee(e);var t=GC(this),n=arguments.length<2,r=n?void 0:arguments[1],a=0;if(qa(t,(function(t){n?(n=!1,r=t):r=e(r,t,a),a++}),{IS_RECORD:!0}),n)throw new w$("Reduce of empty iterator with no initial value");return r}}),Vt({target:"Iterator",proto:!0,real:!0},{some:function(e){Be(this),ee(e);var t=GC(this),n=0;return qa(t,(function(t,r){if(e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var C$=i$((function(){var e=this.iterator;if(!this.remaining--)return this.done=!0,Va(e,"normal",void 0);var t=Be(g(this.next,e));return(this.done=!!t.done)?void 0:t.value}));Vt({target:"Iterator",proto:!0,real:!0,forced:ae},{take:function(e){Be(this);var t=Hy(BE(+e));return new C$(GC(this),{remaining:t})}});var S$=[].push;Vt({target:"Iterator",proto:!0,real:!0},{toArray:function(){var e=[];return qa(GC(Be(this)),S$,{that:e,IS_RECORD:!0}),e}}),Vt({target:"Iterator",proto:!0,real:!0,forced:ae},{toAsync:function(){return new VE(GC(new _C(GC(Be(this)))))}});var E$=!d((function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})),k$=dt.get,$$=function(e){if(!L(e))return!1;var t=k$(e);return!!t&&"RawJSON"===t.type};Vt({target:"JSON",stat:!0,forced:!E$},{isRawJSON:$$});var A$=SyntaxError,x$=parseInt,M$=String.fromCharCode,T$=k("".charAt),P$=k("".slice),N$=k(/./.exec),I$={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},O$=/^[\da-f]{4}$/i,R$=/^[\u0000-\u001F]$/,F$=function(e,t){for(var n=!0,r="";t<e.length;){var a=T$(e,t);if("\\"===a){var o=P$(e,t,t+2);if(he(I$,o))r+=I$[o],t+=2;else{if("\\u"!==o)throw new A$('Unknown escape sequence: "'+o+'"');var i=P$(e,t+=2,t+4);if(!N$(O$,i))throw new A$("Bad Unicode escape at: "+t);r+=M$(x$(i,16)),t+=4}}else{if('"'===a){n=!1,t++;break}if(N$(R$,a))throw new A$("Bad control character in string literal at: "+t);r+=a,t++}}if(n)throw new A$("Unterminated string at: "+t);return{value:r,end:t}},B$=c.JSON,L$=c.Number,D$=c.SyntaxError,_$=B$&&B$.parse,G$=D("Object","keys"),j$=Object.getOwnPropertyDescriptor,U$=k("".charAt),z$=k("".slice),K$=k(/./.exec),V$=k([].push),H$=/^\d$/,W$=/^[1-9]$/,Z$=/^(?:-|\d)$/,q$=/^[\t\n\r ]$/,Y$=function(e,t,n,r){var a,o,i,s,l,u=e[t],c=r&&u===r.value,d=c&&"string"==typeof r.source?{source:r.source}:{};if(L(u)){var f=Pn(u),h=c?r.nodes:f?[]:{};if(f)for(a=h.length,i=Et(u),s=0;s<i;s++)J$(u,s,Y$(u,""+s,n,s<a?h[s]:void 0));else for(o=G$(u),i=Et(o),s=0;s<i;s++)l=o[s],J$(u,l,Y$(u,l,n,he(h,l)?h[l]:void 0))}return g(n,e,t,u,d)},J$=function(e,t,n){if(f){var r=j$(e,t);if(r&&!r.configurable)return}void 0===n?delete e[t]:co(e,t,n)},Q$=function(e,t,n,r){this.value=e,this.end=t,this.source=n,this.nodes=r},X$=function(e,t){this.source=e,this.index=t};X$.prototype={fork:function(e){return new X$(this.source,e)},parse:function(){var e=this.source,t=this.skip(q$,this.index),n=this.fork(t),r=U$(e,t);if(K$(Z$,r))return n.number();switch(r){case"{":return n.object();case"[":return n.array();case'"':return n.string();case"t":return n.keyword(!0);case"f":return n.keyword(!1);case"n":return n.keyword(null)}throw new D$('Unexpected character: "'+r+'" at: '+t)},node:function(e,t,n,r,a){return new Q$(t,r,e?null:z$(this.source,n,r),a)},object:function(){for(var e=this.source,t=this.index+1,n=!1,r={},a={};t<e.length;){if(t=this.until(['"',"}"],t),"}"===U$(e,t)&&!n){t++;break}var o=this.fork(t).string(),i=o.value;t=o.end,t=this.until([":"],t)+1,t=this.skip(q$,t),o=this.fork(t).parse(),co(a,i,o),co(r,i,o.value),t=this.until([",","}"],o.end);var s=U$(e,t);if(","===s)n=!0,t++;else if("}"===s){t++;break}}return this.node(1,r,this.index,t,a)},array:function(){for(var e=this.source,t=this.index+1,n=!1,r=[],a=[];t<e.length;){if(t=this.skip(q$,t),"]"===U$(e,t)&&!n){t++;break}var o=this.fork(t).parse();if(V$(a,o),V$(r,o.value),t=this.until([",","]"],o.end),","===U$(e,t))n=!0,t++;else if("]"===U$(e,t)){t++;break}}return this.node(1,r,this.index,t,a)},string:function(){var e=this.index,t=F$(this.source,this.index+1);return this.node(0,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,n=t;if("-"===U$(e,n)&&n++,"0"===U$(e,n))n++;else{if(!K$(W$,U$(e,n)))throw new D$("Failed to parse number at: "+n);n=this.skip(H$,++n)}if(("."===U$(e,n)&&(n=this.skip(H$,++n)),"e"===U$(e,n)||"E"===U$(e,n))&&(n++,"+"!==U$(e,n)&&"-"!==U$(e,n)||n++,n===(n=this.skip(H$,n))))throw new D$("Failed to parse number's exponent value at: "+n);return this.node(0,L$(z$(e,t,n)),t,n)},keyword:function(e){var t=""+e,n=this.index,r=n+t.length;if(z$(this.source,n,r)!==t)throw new D$("Failed to parse value at: "+n);return this.node(0,e,n,r)},skip:function(e,t){for(var n=this.source;t<n.length&&K$(e,U$(n,t));t++);return t},until:function(e,t){t=this.skip(q$,t);for(var n=U$(this.source,t),r=0;r<e.length;r++)if(e[r]===n)return t;throw new D$('Unexpected character: "'+n+'" at: '+t)}};var eA=d((function(){var e,t="9007199254740993";return _$(t,(function(t,n,r){e=r.source})),e!==t})),tA=W&&!d((function(){return 1/_$("-0 \t")!=-1/0}));Vt({target:"JSON",stat:!0,forced:eA},{parse:function(e,t){return tA&&!B(t)?_$(e):function(e,t){e=en(e);var n=new X$(e,0),r=n.parse(),a=r.value,o=n.skip(q$,r.end);if(o<e.length)throw new D$('Unexpected extra character: "'+U$(e,o)+'" after the parsed data at: '+o);return B(t)?Y$({"":a},"",t,r):a}(e,t)}});var nA=dt.set,rA=String,aA=SyntaxError,oA=D("JSON","parse"),iA=D("JSON","stringify"),sA=D("Object","create"),lA=D("Object","freeze"),uA=k("".charAt),cA=k("".slice),dA=k(/./.exec),fA=k([].push),hA=ve(),pA=hA.length,gA="Unacceptable as raw JSON",mA=/^[\t\n\r ]$/;Vt({target:"JSON",stat:!0,forced:!E$},{rawJSON:function(e){var t=en(e);if(""===t||dA(mA,uA(t,0))||dA(mA,uA(t,t.length-1)))throw new aA(gA);var n=oA(t);if("object"==typeof n&&null!==n)throw new aA(gA);var r=sA(null);return nA(r,{type:"RawJSON"}),co(r,"rawJSON",t),Tc?lA(r):r}}),iA&&Vt({target:"JSON",stat:!0,arity:3,forced:!E$},{stringify:function(e,t,n){var r=Nr(t),a=[],o=iA(e,(function(e,t){var n=B(r)?g(r,this,rA(e),t):t;return $$(n)?hA+(fA(a,n.rawJSON)-1):n}),n);if("string"!=typeof o)return o;for(var i="",s=o.length,l=0;l<s;l++){var u=uA(o,l);if('"'===u){var c=F$(o,++l).end-1,d=cA(o,l,c);i+=cA(d,0,pA)===hA?a[cA(d,pA)]:'"'+d+'"',l=c}else i+=u}return i}});var vA=Lc.has,yA=function(e){return vA(e),e},bA=Lc.remove;Vt({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=yA(this),n=!0,r=0,a=arguments.length;r<a;r++)e=bA(t,arguments[r]),n=n&&e;return!!n}});var wA=Lc.get,CA=Lc.has,SA=Lc.set;Vt({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var n,r,a=yA(this);return CA(a,e)?(n=wA(a,e),"update"in t&&(n=t.update(n,e,a),SA(a,e,n)),n):(r=t.insert(e,a),SA(a,e,r),r)}}),Vt({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=yA(this),n=Tn(e,arguments.length>1?arguments[1]:void 0);return!1!==vS(t,(function(e,r){if(!n(e,r,t))return!1}),!0)}});var EA=Lc.Map,kA=Lc.set;Vt({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=yA(this),n=Tn(e,arguments.length>1?arguments[1]:void 0),r=new EA;return vS(t,(function(e,a){n(e,a,t)&&kA(r,a,e)})),r}}),Vt({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=yA(this),n=Tn(e,arguments.length>1?arguments[1]:void 0),r=vS(t,(function(e,r){if(n(e,r,t))return{value:e}}),!0);return r&&r.value}}),Vt({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=yA(this),n=Tn(e,arguments.length>1?arguments[1]:void 0),r=vS(t,(function(e,r){if(n(e,r,t))return{key:r}}),!0);return r&&r.key}});var $A=function(e,t,n){return function(r){var a=de(r),o=arguments.length,i=o>1?arguments[1]:void 0,s=void 0!==i,l=s?Tn(i,o>2?arguments[2]:void 0):void 0,u=new e,c=0;return qa(a,(function(e){var r=s?l(e,c++):e;n?t(u,Be(r)[0],r[1]):t(u,r)})),u}};Vt({target:"Map",stat:!0,forced:!0},{from:$A(Lc.Map,Lc.set,!0)});Vt({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===vS(yA(this),(function(t){if(function(e,t){return e===t||e!=e&&t!=t}(t,e))return!0}),!0)}});var AA=Lc.Map;Vt({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var n=new(B(this)?this:AA);ee(t);var r=ee(n.set);return qa(e,(function(e){g(r,n,t(e),e)})),n}}),Vt({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=vS(yA(this),(function(t,n){if(t===e)return{key:n}}),!0);return t&&t.key}});var xA=Lc.Map,MA=Lc.set;Vt({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=yA(this),n=Tn(e,arguments.length>1?arguments[1]:void 0),r=new xA;return vS(t,(function(e,a){MA(r,n(e,a,t),e)})),r}});var TA=Lc.Map,PA=Lc.set;Vt({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=yA(this),n=Tn(e,arguments.length>1?arguments[1]:void 0),r=new TA;return vS(t,(function(e,a){PA(r,a,n(e,a,t))})),r}});var NA=Lc.set;Vt({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=yA(this),n=arguments.length,r=0;r<n;)qa(arguments[r++],(function(e,n){NA(t,e,n)}),{AS_ENTRIES:!0});return t}});var IA=function(e,t,n){return function(){for(var r=new e,a=arguments.length,o=0;o<a;o++){var i=arguments[o];n?t(r,Be(i)[0],i[1]):t(r,i)}return r}};Vt({target:"Map",stat:!0,forced:!0},{of:IA(Lc.Map,Lc.set,!0)});var OA=TypeError;Vt({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=yA(this),n=arguments.length<2,r=n?void 0:arguments[1];if(ee(e),vS(t,(function(a,o){n?(n=!1,r=a):r=e(r,a,o,t)})),n)throw new OA("Reduce of empty map with no initial value");return r}}),Vt({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=yA(this),n=Tn(e,arguments.length>1?arguments[1]:void 0);return!0===vS(t,(function(e,r){if(n(e,r,t))return!0}),!0)}});var RA=TypeError,FA=Lc.get,BA=Lc.has,LA=Lc.set;Vt({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=yA(this),r=arguments.length;ee(t);var a=BA(n,e);if(!a&&r<3)throw new RA("Updating absent value");var o=a?FA(n,e):ee(r>2?arguments[2]:void 0)(e,n);return LA(n,e,t(o,e,n)),n}});var DA=TypeError,_A=function(e,t){var n,r=Be(this),a=ee(r.get),o=ee(r.has),i=ee(r.set),s=arguments.length>2?arguments[2]:void 0;if(!B(t)&&!B(s))throw new DA("At least one callback required");return g(o,r,e)?(n=g(a,r,e),B(t)&&(n=t(n),g(i,r,e,n))):B(s)&&(n=s(),g(i,r,e,n)),n};Vt({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:_A}),Vt({target:"Map",proto:!0,real:!0,forced:!0},{upsert:_A});var GA=Math.min,jA=Math.max;Vt({target:"Math",stat:!0,forced:!0},{clamp:function(e,t,n){return GA(n,jA(t,e))}}),Vt({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180});var UA=180/Math.PI;Vt({target:"Math",stat:!0,forced:!0},{degrees:function(e){return e*UA}});var zA=Math.scale||function(e,t,n,r,a){var o=+e,i=+t,s=+n,l=+r,u=+a;return o!=o||i!=i||s!=s||l!=l||u!=u?NaN:o===1/0||o===-1/0?o:(o-i)*(u-l)/(s-i)+l};Vt({target:"Math",stat:!0,forced:!0},{fscale:function(e,t,n,r,a){return Js(zA(e,t,n,r,a))}}),Vt({target:"Math",stat:!0},{f16round:wk}),Vt({target:"Math",stat:!0,forced:!0},{iaddh:function(e,t,n,r){var a=e>>>0,o=n>>>0;return(t>>>0)+(r>>>0)+((a&o|(a|o)&~(a+o>>>0))>>>31)|0}}),Vt({target:"Math",stat:!0,forced:!0},{imulh:function(e,t){var n=65535,r=+e,a=+t,o=r&n,i=a&n,s=r>>16,l=a>>16,u=(s*i>>>0)+(o*i>>>16);return s*l+(u>>16)+((o*l>>>0)+(u&n)>>16)}}),Vt({target:"Math",stat:!0,forced:!0},{isubh:function(e,t,n,r){var a=e>>>0,o=n>>>0;return(t>>>0)-(r>>>0)-((~a&o|(a^~o)&a-o>>>0)>>>31)|0}}),Vt({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI});var KA=Math.PI/180;Vt({target:"Math",stat:!0,forced:!0},{radians:function(e){return e*KA}}),Vt({target:"Math",stat:!0,forced:!0},{scale:zA});var VA="Seeded Random",HA=VA+" Generator",WA=dt.set,ZA=dt.getterFor(HA),qA=TypeError,YA=fi((function(e){WA(this,{type:HA,seed:e%2147483647})}),VA,(function(){var e=ZA(this),t=e.seed=(1103515245*e.seed+12345)%2147483647;return Ei((1073741823&t)/1073741823,!1)}));Vt({target:"Math",stat:!0,forced:!0},{seededPRNG:function(e){var t=Be(e).seed;if(!Qd(t))throw new qA('Math.seededPRNG() argument should have a "seed" field with a finite value.');return new YA(t)}}),Vt({target:"Math",stat:!0,forced:!0},{signbit:function(e){var t=+e;return t==t&&0===t?1/t==-1/0:t<0}}),Vt({target:"Math",stat:!0,forced:!0},{umulh:function(e,t){var n=65535,r=+e,a=+t,o=r&n,i=a&n,s=r>>>16,l=a>>>16,u=(s*i>>>0)+(o*i>>>16);return s*l+(u>>>16)+((o*l>>>0)+(u&n)>>>16)}});var JA="Invalid number representation",QA=RangeError,XA=SyntaxError,ex=TypeError,tx=parseInt,nx=Math.pow,rx=/^[\d.a-z]+$/,ax=k("".charAt),ox=k(rx.exec),ix=k(1..toString),sx=k("".slice),lx=k("".split);Vt({target:"Number",stat:!0,forced:!0},{fromString:function(e,t){var n=1;if("string"!=typeof e)throw new ex(JA);if(!e.length)throw new XA(JA);if("-"===ax(e,0)&&(n=-1,!(e=sx(e,1)).length))throw new XA(JA);var r=void 0===t?10:vt(t);if(r<2||r>36)throw new QA("Invalid radix");if(!ox(rx,e))throw new XA(JA);var a=lx(e,"."),o=tx(a[0],r);if(a.length>1&&(o+=tx(a[1],r)/nx(r,a[1].length)),10===r&&ix(o,r)!==e)throw new XA(JA);return n*o}}),Vt({target:"Number",stat:!0,forced:!0},{range:function(e,t,n){return new ok(e,t,n,"number",0,1)}});var ux="Object Iterator",cx=dt.set,dx=dt.getterFor(ux),fx=fi((function(e,t){var n=de(e);cx(this,{type:ux,mode:t,object:n,keys:tn(n),index:0})}),"Object",(function(){for(var e=dx(this),t=e.keys;;){if(null===t||e.index>=t.length)return e.object=e.keys=null,Ei(void 0,!0);var n=t[e.index++],r=e.object;if(he(r,n)){switch(e.mode){case"keys":return Ei(n,!1);case"values":return Ei(r[n],!1)}return Ei([n,r[n]],!1)}}}));Vt({target:"Object",stat:!0,forced:!0},{iterateEntries:function(e){return new fx(e,"entries")}}),Vt({target:"Object",stat:!0,forced:!0},{iterateKeys:function(e){return new fx(e,"keys")}}),Vt({target:"Object",stat:!0,forced:!0},{iterateValues:function(e){return new fx(e,"values")}});var hx=Ce("observable"),px="Observable",gx="Subscription",mx="SubscriptionObserver",vx=dt.getterFor,yx=dt.set,bx=vx(px),wx=vx(gx),Cx=vx(mx),Sx=function(e){this.observer=Be(e),this.cleanup=void 0,this.subscriptionObserver=void 0};Sx.prototype={type:gx,clean:function(){var e=this.cleanup;if(e){this.cleanup=void 0;try{e()}catch(e){bp(e)}}},close:function(){if(!f){var e=this.facade,t=this.subscriptionObserver;e.closed=!0,t&&(t.closed=!0)}this.observer=void 0},isClosed:function(){return void 0===this.observer}};var Ex=function(e,t){var n,r=yx(this,new Sx(e));f||(this.closed=!1);try{(n=te(e,"start"))&&g(n,e,this)}catch(e){bp(e)}if(!r.isClosed()){var a=r.subscriptionObserver=new kx(r);try{var o=t(a),i=o;N(o)||(r.cleanup=B(o.unsubscribe)?function(){i.unsubscribe()}:ee(o))}catch(e){return void a.error(e)}r.isClosed()&&r.clean()}};Ex.prototype=js({},{unsubscribe:function(){var e=wx(this);e.isClosed()||(e.close(),e.clean())}}),f&&yn(Ex.prototype,"closed",{configurable:!0,get:function(){return wx(this).isClosed()}});var kx=function(e){yx(this,{type:mx,subscriptionState:e}),f||(this.closed=!1)};kx.prototype=js({},{next:function(e){var t=Cx(this).subscriptionState;if(!t.isClosed()){var n=t.observer;try{var r=te(n,"next");r&&g(r,n,e)}catch(e){bp(e)}}},error:function(e){var t=Cx(this).subscriptionState;if(!t.isClosed()){var n=t.observer;t.close();try{var r=te(n,"error");r?g(r,n,e):bp(e)}catch(e){bp(e)}t.clean()}},complete:function(){var e=Cx(this).subscriptionState;if(!e.isClosed()){var t=e.observer;e.close();try{var n=te(t,"complete");n&&g(n,t)}catch(e){bp(e)}e.clean()}}}),f&&yn(kx.prototype,"closed",{configurable:!0,get:function(){return Cx(this).subscriptionState.isClosed()}});var $x=function(e){zs(this,Ax),yx(this,{type:px,subscriber:ee(e)})},Ax=$x.prototype;js(Ax,{subscribe:function(e){var t=arguments.length;return new Ex(B(e)?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:L(e)?e:{},bx(this).subscriber)}}),ht(Ax,hx,(function(){return this})),Vt({global:!0,constructor:!0,forced:!0},{Observable:$x}),Es(px);var xx=Ce("observable");Vt({target:"Observable",stat:!0,forced:!0},{from:function(e){var t=_n(this)?this:D("Observable"),n=te(Be(e),xx);if(n){var r=Be(g(n,e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}var a=Ka(e);return new t((function(e){qa(a,(function(t,n){if(e.next(t),e.closed)return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}),e.complete()}))}});var Mx=D("Array");Vt({target:"Observable",stat:!0,forced:!0},{of:function(){for(var e=_n(this)?this:D("Observable"),t=arguments.length,n=Mx(t),r=0;r<t;)n[r]=arguments[r++];return new e((function(e){for(var r=0;r<t;r++)if(e.next(n[r]),e.closed)return;e.complete()}))}}),Vt({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Rp.f(this),n=wp(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}});var Tx=D("Map"),Px=D("WeakMap"),Nx=k([].push),Ix=ue("metadata"),Ox=Ix.store||(Ix.store=new Px),Rx=function(e,t,n){var r=Ox.get(e);if(!r){if(!n)return;Ox.set(e,r=new Tx)}var a=r.get(t);if(!a){if(!n)return;r.set(t,a=new Tx)}return a},Fx={store:Ox,getMap:Rx,has:function(e,t,n){var r=Rx(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=Rx(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){Rx(n,r,!0).set(e,t)},keys:function(e,t){var n=Rx(e,t,!1),r=[];return n&&n.forEach((function(e,t){Nx(r,t)})),r},toKey:function(e){return void 0===e||"symbol"==typeof e?e:String(e)}},Bx=Fx.toKey,Lx=Fx.set;Vt({target:"Reflect",stat:!0},{defineMetadata:function(e,t,n){var r=arguments.length<4?void 0:Bx(arguments[3]);Lx(e,t,Be(n),r)}});var Dx=Fx.toKey,_x=Fx.getMap,Gx=Fx.store;Vt({target:"Reflect",stat:!0},{deleteMetadata:function(e,t){var n=arguments.length<3?void 0:Dx(arguments[2]),r=_x(Be(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var a=Gx.get(t);return a.delete(n),!!a.size||Gx.delete(t)}});var jx=Fx.has,Ux=Fx.get,zx=Fx.toKey,Kx=function(e,t,n){if(jx(e,t,n))return Ux(e,t,n);var r=Ba(t);return null!==r?Kx(e,r,n):void 0};Vt({target:"Reflect",stat:!0},{getMetadata:function(e,t){var n=arguments.length<3?void 0:zx(arguments[2]);return Kx(e,Be(t),n)}});var Vx=k(SS),Hx=k([].concat),Wx=Fx.keys,Zx=Fx.toKey,qx=function(e,t){var n=Wx(e,t),r=Ba(e);if(null===r)return n;var a=qx(r,t);return a.length?n.length?Vx(Hx(n,a)):a:n};Vt({target:"Reflect",stat:!0},{getMetadataKeys:function(e){var t=arguments.length<2?void 0:Zx(arguments[1]);return qx(Be(e),t)}});var Yx=Fx.get,Jx=Fx.toKey;Vt({target:"Reflect",stat:!0},{getOwnMetadata:function(e,t){var n=arguments.length<3?void 0:Jx(arguments[2]);return Yx(e,Be(t),n)}});var Qx=Fx.keys,Xx=Fx.toKey;Vt({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(e){var t=arguments.length<2?void 0:Xx(arguments[1]);return Qx(Be(e),t)}});var eM=Fx.has,tM=Fx.toKey,nM=function(e,t,n){if(eM(e,t,n))return!0;var r=Ba(t);return null!==r&&nM(e,r,n)};Vt({target:"Reflect",stat:!0},{hasMetadata:function(e,t){var n=arguments.length<3?void 0:tM(arguments[2]);return nM(e,Be(t),n)}});var rM=Fx.has,aM=Fx.toKey;Vt({target:"Reflect",stat:!0},{hasOwnMetadata:function(e,t){var n=arguments.length<3?void 0:aM(arguments[2]);return rM(e,Be(t),n)}});var oM=Fx.toKey,iM=Fx.set;Vt({target:"Reflect",stat:!0},{metadata:function(e,t){return function(n,r){iM(e,t,Be(n),oM(r))}}});var sM=k("".charCodeAt),lM=k("".replace),uM=RegExp("[!\"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^`{|}~"+Id+"]","g");Vt({target:"RegExp",stat:!0,forced:!0},{escape:function(e){var t=en(e),n=sM(t,0);return(n>47&&n<58?"\\x3":"")+lM(t,uM,"\\$&")}});var cM=Set.prototype,dM={Set:Set,add:k(cM.add),has:k(cM.has),remove:k(cM.delete),proto:cM},fM=dM.has,hM=function(e){return fM(e),e},pM=dM.add;Vt({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=hM(this),t=0,n=arguments.length;t<n;t++)pM(e,arguments[t]);return e}});var gM=dM.remove;Vt({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=hM(this),n=!0,r=0,a=arguments.length;r<a;r++)e=gM(t,arguments[r]),n=n&&e;return!!n}});var mM=dM.Set,vM=dM.proto,yM=k(vM.forEach),bM=k(vM.keys),wM=bM(new mM).next,CM=function(e,t,n){return n?dS({iterator:bM(e),next:wM},t):yM(e,t)},SM=dM.Set,EM=dM.add,kM=function(e){var t=new SM;return CM(e,(function(e){EM(t,e)})),t},$M=ra(dM.proto,"size","get")||function(e){return e.size},AM="Invalid size",xM=RangeError,MM=TypeError,TM=Math.max,PM=function(e,t){this.set=e,this.size=TM(t,0),this.has=ee(e.has),this.keys=ee(e.keys)};PM.prototype={getIterator:function(){return GC(Be(g(this.keys,this.set)))},includes:function(e){return g(this.has,this.set,e)}};var NM=function(e){Be(e);var t=+e.size;if(t!=t)throw new MM(AM);var n=vt(t);if(n<0)throw new xM(AM);return new PM(e,n)},IM=dM.has,OM=dM.remove,RM=function(e){var t=hM(this),n=NM(e),r=kM(t);return $M(t)<=n.size?CM(t,(function(e){n.includes(e)&&OM(r,e)})):dS(n.getIterator(),(function(e){IM(t,e)&&OM(r,e)})),r},FM=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},BM=function(e){var t=D("Set");try{(new t)[e](FM(0));try{return(new t)[e](FM(-1)),!1}catch(e){return!0}}catch(e){return!1}};Vt({target:"Set",proto:!0,real:!0,forced:!BM("difference")},{difference:RM});var LM=Ce("iterator"),DM=Object,_M=D("Set"),GM=function(e){return function(e){return L(e)&&"number"==typeof e.size&&B(e.has)&&B(e.keys)}(e)?e:function(e){if(N(e))return!1;var t=DM(e);return void 0!==t[LM]||"@@iterator"in t||he(La,Qt(t))}(e)?new _M(e):e};Vt({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return g(RM,this,GM(e))}}),Vt({target:"Set",proto:!0,real:!0,forced:!0},{every:function(e){var t=hM(this),n=Tn(e,arguments.length>1?arguments[1]:void 0);return!1!==CM(t,(function(e){if(!n(e,e,t))return!1}),!0)}});var jM=dM.Set,UM=dM.add;Vt({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=hM(this),n=Tn(e,arguments.length>1?arguments[1]:void 0),r=new jM;return CM(t,(function(e){n(e,e,t)&&UM(r,e)})),r}}),Vt({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=hM(this),n=Tn(e,arguments.length>1?arguments[1]:void 0),r=CM(t,(function(e){if(n(e,e,t))return{value:e}}),!0);return r&&r.value}}),Vt({target:"Set",stat:!0,forced:!0},{from:$A(dM.Set,dM.add,!1)});var zM=dM.Set,KM=dM.add,VM=dM.has,HM=function(e){var t=hM(this),n=NM(e),r=new zM;return $M(t)>n.size?dS(n.getIterator(),(function(e){VM(t,e)&&KM(r,e)})):CM(t,(function(e){n.includes(e)&&KM(r,e)})),r},WM=!BM("intersection")||d((function(){return"3,2"!==Array.from(new Set([1,2,3]).intersection(new Set([3,2])))}));Vt({target:"Set",proto:!0,real:!0,forced:WM},{intersection:HM}),Vt({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return g(HM,this,GM(e))}});var ZM=dM.has,qM=function(e){var t=hM(this),n=NM(e);if($M(t)<=n.size)return!1!==CM(t,(function(e){if(n.includes(e))return!1}),!0);var r=n.getIterator();return!1!==dS(r,(function(e){if(ZM(t,e))return Va(r,"normal",!1)}))};Vt({target:"Set",proto:!0,real:!0,forced:!BM("isDisjointFrom")},{isDisjointFrom:qM}),Vt({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return g(qM,this,GM(e))}});var YM=function(e){var t=hM(this),n=NM(e);return!($M(t)>n.size)&&!1!==CM(t,(function(e){if(!n.includes(e))return!1}),!0)};Vt({target:"Set",proto:!0,real:!0,forced:!BM("isSubsetOf")},{isSubsetOf:YM}),Vt({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return g(YM,this,GM(e))}});var JM=dM.has,QM=function(e){var t=hM(this),n=NM(e);if($M(t)<n.size)return!1;var r=n.getIterator();return!1!==dS(r,(function(e){if(!JM(t,e))return Va(r,"normal",!1)}))};Vt({target:"Set",proto:!0,real:!0,forced:!BM("isSupersetOf")},{isSupersetOf:QM}),Vt({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return g(QM,this,GM(e))}});var XM=k([].join),eT=k([].push);Vt({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=hM(this),n=void 0===e?",":en(e),r=[];return CM(t,(function(e){eT(r,e)})),XM(r,n)}});var tT=dM.Set,nT=dM.add;Vt({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=hM(this),n=Tn(e,arguments.length>1?arguments[1]:void 0),r=new tT;return CM(t,(function(e){nT(r,n(e,e,t))})),r}}),Vt({target:"Set",stat:!0,forced:!0},{of:IA(dM.Set,dM.add,!1)});var rT=TypeError;Vt({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=hM(this),n=arguments.length<2,r=n?void 0:arguments[1];if(ee(e),CM(t,(function(a){n?(n=!1,r=a):r=e(r,a,a,t)})),n)throw new rT("Reduce of empty set with no initial value");return r}}),Vt({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=hM(this),n=Tn(e,arguments.length>1?arguments[1]:void 0);return!0===CM(t,(function(e){if(n(e,e,t))return!0}),!0)}});var aT=dM.add,oT=dM.has,iT=dM.remove,sT=function(e){var t=hM(this),n=NM(e).getIterator(),r=kM(t);return dS(n,(function(e){oT(t,e)?iT(r,e):aT(r,e)})),r};Vt({target:"Set",proto:!0,real:!0,forced:!BM("symmetricDifference")},{symmetricDifference:sT}),Vt({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return g(sT,this,GM(e))}});var lT=dM.add,uT=function(e){var t=hM(this),n=NM(e).getIterator(),r=kM(t);return dS(n,(function(e){lT(r,e)})),r};Vt({target:"Set",proto:!0,real:!0,forced:!BM("union")},{union:uT}),Vt({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return g(uT,this,GM(e))}});var cT=Hm.charAt;Vt({target:"String",proto:!0,forced:!0},{at:function(e){var t=en(O(this)),n=t.length,r=vt(e),a=r>=0?r:n+r;return a<0||a>=n?void 0:cT(t,a)}});var dT=TypeError,fT=k([].push),hT=k([].join),pT=function(e){var t=R(e),n=Et(t);if(!n)return"";for(var r=arguments.length,a=[],o=0;;){var i=t[o++];if(void 0===i)throw new dT("Incorrect template");if(fT(a,en(i)),o===n)return hT(a,"");o<r&&fT(a,en(arguments[o]))}};Vt({target:"String",stat:!0,forced:!0},{cooked:pT});var gT=Hm.codeAt,mT=Hm.charAt,vT="String Iterator",yT=dt.set,bT=dt.getterFor(vT),wT=fi((function(e){yT(this,{type:vT,string:e,index:0})}),"String",(function(){var e,t=bT(this),n=t.string,r=t.index;return r>=n.length?Ei(void 0,!0):(e=mT(n,r),t.index+=e.length,Ei({codePoint:gT(e,0),position:r},!1))}));Vt({target:"String",proto:!0,forced:!0},{codePoints:function(){return new wT(en(O(this)))}});var CT=WeakMap.prototype,ST={WeakMap:WeakMap,set:k(CT.set),get:k(CT.get),has:k(CT.has),remove:k(CT.delete)},ET=String.fromCharCode,kT=D("String","fromCodePoint"),$T=k("".charAt),AT=k("".charCodeAt),xT=k("".indexOf),MT=k("".slice),TT=function(e,t){var n=AT(e,t);return n>=48&&n<=57},PT=function(e,t,n){if(n>=e.length)return-1;for(var r=0;t<n;t++){var a=NT(AT(e,t));if(-1===a)return-1;r=16*r+a}return r},NT=function(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-97+10:e>=65&&e<=70?e-65+10:-1},IT=function(e){for(var t,n="",r=0,a=0;(a=xT(e,"\\",a))>-1;){if(n+=MT(e,r,a),++a===e.length)return;var o=$T(e,a++);switch(o){case"b":n+="\b";break;case"t":n+="\t";break;case"n":n+="\n";break;case"v":n+="\v";break;case"f":n+="\f";break;case"r":n+="\r";break;case"\r":a<e.length&&"\n"===$T(e,a)&&++a;case"\n":case"\u2028":case"\u2029":break;case"0":if(TT(e,a))return;n+="\0";break;case"x":if(-1===(t=PT(e,a,a+2)))return;a+=2,n+=ET(t);break;case"u":if(a<e.length&&"{"===$T(e,a)){var i=xT(e,"}",++a);if(-1===i)return;t=PT(e,a,i),a=i+1}else t=PT(e,a,a+4),a+=4;if(-1===t||t>1114111)return;n+=kT(t);break;default:if(TT(o,0))return;n+=o}r=a}return n+MT(e,r)},OT=Ke.f,RT=new ST.WeakMap,FT=ST.get,BT=ST.has,LT=ST.set,DT=Array,_T=TypeError,GT=Object.freeze||Object,jT=Object.isFrozen,UT=Math.min,zT=k("".charAt),KT=k("".slice),VT=k("".split),HT=k(/./.exec),WT=/([\n\u2028\u2029]|\r\n?)/g,ZT=RegExp("^["+Id+"]*"),qT=RegExp("[^"+Id+"]"),YT="Invalid tag",JT=function(e){var t,n,r,a,o=de(e),i=Et(o),s=DT(i),l=DT(i),u=0;if(!i)throw new _T(YT);for(;u<i;u++){var c=o[u];if("string"!=typeof c)throw new _T(YT);s[u]=VT(c,WT)}for(u=0;u<i;u++){var d=u+1===i;if(t=s[u],0===u){if(1===t.length||t[0].length>0)throw new _T("Invalid opening line");t[1]=""}if(d){if(1===t.length||HT(qT,t[t.length-1]))throw new _T("Invalid closing line");t[t.length-2]="",t[t.length-1]=""}for(var f=2;f<t.length;f+=2){var h=t[f],p=f+1===t.length&&!d,g=HT(ZT,h)[0];p||g.length!==h.length?n=QT(g,n):t[f]=""}}var m=n?n.length:0;for(u=0;u<i;u++){for(r=(t=s[u])[0],a=1;a<t.length;a+=2)r+=t[a]+KT(t[a+1],m);l[u]=r}return l},QT=function(e,t){if(void 0===t||e===t)return e;for(var n=0,r=UT(e.length,t.length);n<r&&zT(e,n)===zT(t,n);n++);return KT(e,0,n)},XT=function(e){for(var t=0,n=e.length,r=DT(n);t<n;t++)r[t]=IT(e[t]);return r},eP=function(e){return ft((function(t){var n=pn(arguments);return n[0]=function(e){var t=e.raw;if(Tc&&!jT(t))throw new _T("Raw template should be frozen");if(BT(RT,t))return FT(RT,t);var n=JT(t),r=XT(n);return OT(r,"raw",{value:GT(n)}),GT(r),LT(RT,t,r),r}(Be(t)),Tr(e,this,n)}),"")},tP=eP(pT);Vt({target:"String",stat:!0,forced:!0},{dedent:function(e){return Be(e),B(e)?eP(e):Tr(tP,this,arguments)}});var nP=Ke.f,rP=Ie.f,aP=c.Symbol;if(Sn("asyncDispose"),aP){var oP=rP(aP,"asyncDispose");oP.enumerable&&oP.configurable&&oP.writable&&nP(aP,"asyncDispose",{value:oP.value,enumerable:!1,configurable:!1,writable:!1})}var iP=Ke.f,sP=Ie.f,lP=c.Symbol;if(Sn("dispose"),lP){var uP=sP(lP,"dispose");uP.enumerable&&uP.configurable&&uP.writable&&iP(lP,"dispose",{value:uP.value,enumerable:!1,configurable:!1,writable:!1})}var cP=D("Symbol"),dP=cP.keyFor,fP=k(cP.prototype.valueOf),hP=cP.isRegisteredSymbol||function(e){try{return void 0!==dP(fP(e))}catch(e){return!1}};Vt({target:"Symbol",stat:!0},{isRegisteredSymbol:hP}),Vt({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:hP});for(var pP=D("Symbol"),gP=pP.isWellKnownSymbol,mP=D("Object","getOwnPropertyNames"),vP=k(pP.prototype.valueOf),yP=ue("wks"),bP=0,wP=mP(pP),CP=wP.length;bP<CP;bP++)try{var SP=wP[bP];Y(pP[SP])&&Ce(SP)}catch(e){}var EP=function(e){if(gP&&gP(e))return!0;try{for(var t=vP(e),n=0,r=mP(yP),a=r.length;n<a;n++)if(yP[r[n]]==t)return!0}catch(e){}return!1};Vt({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:EP}),Vt({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:EP}),Sn("matcher"),Sn("metadata"),Sn("metadataKey"),Sn("observable"),Sn("patternMatch"),Sn("replaceAll");var kP=du.aTypedArrayConstructor;(0,du.exportTypedArrayStaticMethod)("fromAsync",(function(e){var t=this,n=arguments.length,r=n>1?arguments[1]:void 0,a=n>2?arguments[2]:void 0;return new(D("Promise"))((function(n){hu(t),n(JC(e,r,a))})).then((function(e){return Ts(kP(t),e)}))}),!0);var $P=Vn.filterReject,AP=du.aTypedArray;(0,du.exportTypedArrayMethod)("filterOut",(function(e){var t=$P(AP(this),e,arguments.length>1?arguments[1]:void 0);return gb(this,t)}),!0);var xP=Vn.filterReject,MP=du.aTypedArray;(0,du.exportTypedArrayMethod)("filterReject",(function(e){var t=xP(MP(this),e,arguments.length>1?arguments[1]:void 0);return gb(this,t)}),!0);var TP=du.aTypedArray;(0,du.exportTypedArrayMethod)("groupBy",(function(e){var t=arguments.length>1?arguments[1]:void 0;return nS(TP(this),e,t,pb)}),!0);var PP=du.aTypedArray,NP=du.getTypedArrayConstructor,IP=du.exportTypedArrayMethod,OP=Math.max,RP=Math.min;IP("toSpliced",(function(e,t){var n,r,a,o,i,s,l,u=PP(this),c=NP(u),d=Et(u),f=wt(e,d),h=arguments.length,p=0;if(0===h)n=r=0;else if(1===h)n=0,r=d-f;else if(r=RP(OP(vt(t),0),d-f),n=h-2){o=new c(n),a=Jy(o);for(var g=2;g<h;g++)i=arguments[g],o[g-2]=a?Xy(i):+i}for(l=new c(s=d+n-r);p<f;p++)l[p]=u[p];for(;p<f+n;p++)l[p]=o[p-f];for(;p<s;p++)l[p]=u[p+r-n];return l}),!!d((function(){var e=new Int8Array([1]),t=e.toSpliced(1,0,{valueOf:function(){return e[0]=2,3}});return 2!==t[0]||3!==t[1]})));var FP=du.aTypedArray,BP=du.getTypedArrayConstructor,LP=du.exportTypedArrayMethod,DP=k(SS);LP("uniqueBy",(function(e){return FP(this),Ts(BP(this),DP(this,e))}),!0);var _P=String,GP=TypeError,jP=function(e){if(void 0===e||L(e))return e;throw new GP(_P(e)+" is not an object or undefined")},UP=TypeError,zP=function(e){if("string"==typeof e)return e;throw new UP("Argument is not a string")},KP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",VP=KP+"+/",HP=KP+"-_",WP=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t},ZP={i2c:VP,c2i:WP(VP),i2cUrl:HP,c2iUrl:WP(HP)},qP=TypeError,YP=function(e){var t=e&&e.alphabet;if(void 0===t||"base64"===t||"base64url"===t)return t||"base64";throw new qP("Incorrect `alphabet` option")},JP=ZP.c2i,QP=ZP.c2iUrl,XP=c.Uint8Array,eN=c.SyntaxError,tN=k("".charAt),nN=k("".replace),rN=k("".slice),aN=k([].push),oN=/[\t\n\f\r ]/g,iN="Extra bits";XP&&Vt({target:"Uint8Array",stat:!0,forced:!0},{fromBase64:function(e){zP(e);var t=arguments.length>1?jP(arguments[1]):void 0,n="base64"===YP(t)?JP:QP,r=!!t&&!!t.strict,a=r?e:nN(e,oN,"");if(a.length%4==0)"=="===rN(a,-2)?a=rN(a,0,-2):"="===rN(a,-1)&&(a=rN(a,0,-1));else if(r)throw new eN("Input is not correctly padded");var o=a.length%4;switch(o){case 1:throw new eN("Bad input length");case 2:a+="AA";break;case 3:a+="A"}for(var i=[],s=0,l=a.length,u=function(e){var t=tN(a,s+e);if(!he(n,t))throw new eN('Bad char in input: "'+t+'"');return n[t]<<18-6*e};s<l;s+=4){var c=u(0)+u(1)+u(2)+u(3);aN(i,c>>16&255,c>>8&255,255&c)}var d=i.length;if(2===o){if(r&&0!==i[d-2])throw new eN(iN);d-=2}else if(3===o){if(r&&0!==i[d-1])throw new eN(iN);d--}return Ts(XP,i,d)}});var sN=c.Uint8Array,lN=c.SyntaxError,uN=c.parseInt,cN=/[^\da-f]/i,dN=k(cN.exec),fN=k("".slice);sN&&Vt({target:"Uint8Array",stat:!0,forced:!0},{fromHex:function(e){zP(e);var t=e.length;if(t%2)throw new lN("String should have an even number of characters");if(dN(cN,e))throw new lN("String should only contain hex characters");for(var n=new sN(t/2),r=0;r<t;r+=2)n[r/2]=uN(fN(e,r,r+2),16);return n}});var hN=TypeError,pN=function(e){if("Uint8Array"===Qt(e))return e;throw new hN("Argument is not an Uint8Array")},gN=ZP.i2c,mN=ZP.i2cUrl,vN=c.Uint8Array,yN=k("".charAt);vN&&Vt({target:"Uint8Array",proto:!0,forced:!0},{toBase64:function(){for(var e,t=pN(this),n=arguments.length?jP(arguments[0]):void 0,r="base64"===YP(n)?gN:mN,a="",o=0,i=t.length,s=function(t){return yN(r,e>>6*t&63)};o+2<i;o+=3)e=(t[o]<<16)+(t[o+1]<<8)+t[o+2],a+=s(3)+s(2)+s(1)+s(0);return o+2===i?(e=(t[o]<<16)+(t[o+1]<<8),a+=s(3)+s(2)+s(1)+"="):o+1===i&&(e=t[o]<<16,a+=s(3)+s(2)+"=="),a}});var bN=c.Uint8Array,wN=k(1..toString);bN&&Vt({target:"Uint8Array",proto:!0,forced:!0},{toHex:function(){pN(this);for(var e="",t=0,n=this.length;t<n;t++){var r=wN(this[t],16);e+=1===r.length?"0"+r:r}return e}});var CN=ST.has,SN=function(e){return CN(e),e},EN=ST.remove;Vt({target:"WeakMap",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=SN(this),n=!0,r=0,a=arguments.length;r<a;r++)e=EN(t,arguments[r]),n=n&&e;return!!n}}),Vt({target:"WeakMap",stat:!0,forced:!0},{from:$A(ST.WeakMap,ST.set,!0)}),Vt({target:"WeakMap",stat:!0,forced:!0},{of:IA(ST.WeakMap,ST.set,!0)});var kN=ST.get,$N=ST.has,AN=ST.set;Vt({target:"WeakMap",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var n,r,a=SN(this);return $N(a,e)?(n=kN(a,e),"update"in t&&(n=t.update(n,e,a),AN(a,e,n)),n):(r=t.insert(e,a),AN(a,e,r),r)}}),Vt({target:"WeakMap",proto:!0,real:!0,forced:!0},{upsert:_A});var xN=WeakSet.prototype,MN={WeakSet:WeakSet,add:k(xN.add),has:k(xN.has),remove:k(xN.delete)},TN=MN.has,PN=function(e){return TN(e),e},NN=MN.add;Vt({target:"WeakSet",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=PN(this),t=0,n=arguments.length;t<n;t++)NN(e,arguments[t]);return e}});var IN=MN.remove;Vt({target:"WeakSet",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=PN(this),n=!0,r=0,a=arguments.length;r<a;r++)e=IN(t,arguments[r]),n=n&&e;return!!n}}),Vt({target:"WeakSet",stat:!0,forced:!0},{from:$A(MN.WeakSet,MN.add,!1)}),Vt({target:"WeakSet",stat:!0,forced:!0},{of:IA(MN.WeakSet,MN.add,!1)});var ON=ZP.c2i,RN=/[^\d+/a-z]/i,FN=/[\t\n\f\r ]+/g,BN=/[=]{1,2}$/,LN=D("atob"),DN=String.fromCharCode,_N=k("".charAt),GN=k("".replace),jN=k(RN.exec),UN=!!LN&&!d((function(){return"hi"!==LN("aGk=")})),zN=UN&&d((function(){return""!==LN(" ")})),KN=UN&&!d((function(){LN("a")})),VN=UN&&!d((function(){LN()})),HN=UN&&1!==LN.length;Vt({global:!0,bind:!0,enumerable:!0,forced:!UN||zN||KN||VN||HN},{atob:function(e){if(Bh(arguments.length,1),UN&&!zN&&!KN)return g(LN,c,e);var t,n,r,a=GN(en(e),FN,""),o="",i=0,s=0;if(a.length%4==0&&(a=GN(a,BN,"")),(t=a.length)%4==1||jN(RN,a))throw new(D("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;i<t;)n=_N(a,i++),r=s%4?64*r+ON[n]:ON[n],s++%4&&(o+=DN(255&r>>(-2*s&6)));return o}});var WN=ZP.i2c,ZN=D("btoa"),qN=k("".charAt),YN=k("".charCodeAt),JN=!!ZN&&!d((function(){return"aGk="!==ZN("hi")})),QN=JN&&!d((function(){ZN()})),XN=JN&&d((function(){return"bnVsbA=="!==ZN(null)})),eI=JN&&1!==ZN.length;Vt({global:!0,bind:!0,enumerable:!0,forced:!JN||QN||XN||eI},{btoa:function(e){if(Bh(arguments.length,1),JN)return g(ZN,c,en(e));for(var t,n,r=en(e),a="",o=0,i=WN;qN(r,o)||(i="=",o%1);){if((n=YN(r,o+=3/4))>255)throw new(D("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");a+=qN(i,63&(t=t<<8|n)>>8-o%1*8)}return a}});var tI={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},nI=Me("span").classList,rI=nI&&nI.constructor&&nI.constructor.prototype,aI=rI===Object.prototype?void 0:rI,oI=function(e){if(e&&e.forEach!==jo)try{Ve(e,"forEach",jo)}catch(t){e.forEach=jo}};for(var iI in tI)tI[iI]&&oI(c[iI]&&c[iI].prototype);oI(aI);var sI=Ce("iterator"),lI=Mi.values,uI=function(e,t){if(e){if(e[sI]!==lI)try{Ve(e,sI,lI)}catch(t){e[sI]=lI}if(An(e,t,!0),tI[t])for(var n in Mi)if(e[n]!==Mi[n])try{Ve(e,n,Mi[n])}catch(t){e[n]=Mi[n]}}};for(var cI in tI)uI(c[cI]&&c[cI].prototype,cI);uI(aI,"DOMTokenList");var dI={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}},fI=Ke.f,hI="DOMException",pI="DATA_CLONE_ERR",gI=D("Error"),mI=D(hI)||function(){try{(new(D("MessageChannel")||IS("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if(e.name===pI&&25===e.code)return e.constructor}}(),vI=mI&&mI.prototype,yI=gI.prototype,bI=dt.set,wI=dt.getterFor(hI),CI="stack"in new gI(hI),SI=function(e){return he(dI,e)&&dI[e].m?dI[e].c:0},EI=function(){zs(this,kI);var e=arguments.length,t=fa(e<1?void 0:arguments[0]),n=fa(e<2?void 0:arguments[1],"Error"),r=SI(n);if(bI(this,{type:hI,name:n,message:t,code:r}),f||(this.name=n,this.message=t,this.code=r),CI){var a=new gI(t);a.name=hI,fI(this,"stack",w(1,ba(a.stack,1)))}},kI=EI.prototype=hn(yI),$I=function(e){return{enumerable:!0,configurable:!0,get:e}},AI=function(e){return $I((function(){return wI(this)[e]}))};f&&(yn(kI,"code",AI("code")),yn(kI,"message",AI("message")),yn(kI,"name",AI("name"))),fI(kI,"constructor",w(1,EI));var xI=d((function(){return!(new mI instanceof gI)})),MI=xI||d((function(){return yI.toString!==Pa||"2: 1"!==String(new mI(1,2))})),TI=xI||d((function(){return 25!==new mI(1,"DataCloneError").code}));xI||25!==mI[pI]||vI[pI];Vt({global:!0,constructor:!0,forced:xI},{DOMException:xI?EI:mI});var PI=D(hI),NI=PI.prototype;for(var II in MI&&mI===PI&&ht(NI,"toString",Pa),TI&&f&&mI===PI&&yn(NI,"code",$I((function(){return SI(Be(this).name)}))),dI)if(he(dI,II)){var OI=dI[II],RI=OI.s,FI=w(6,OI.c);he(PI,RI)||fI(PI,RI,FI),he(NI,RI)||fI(NI,RI,FI)}var BI=Ke.f,LI="DOMException",DI=D("Error"),_I=D(LI),GI=function(){zs(this,jI);var e=arguments.length,t=fa(e<1?void 0:arguments[0]),n=fa(e<2?void 0:arguments[1],"Error"),r=new _I(t,n),a=new DI(t);return a.name=LI,BI(r,"stack",w(1,ba(a.stack,1))),da(r,this,GI),r},jI=GI.prototype=_I.prototype,UI="stack"in new DI(LI),zI="stack"in new _I(1,2),KI=_I&&f&&Object.getOwnPropertyDescriptor(c,LI),VI=!(!KI||KI.writable&&KI.configurable),HI=UI&&!VI&&!zI;Vt({global:!0,constructor:!0,forced:HI},{DOMException:HI?GI:_I});var WI=D(LI),ZI=WI.prototype;if(ZI.constructor!==WI)for(var qI in BI(ZI,"constructor",w(1,WI)),dI)if(he(dI,qI)){var YI=dI[qI],JI=YI.s;he(WI,JI)||BI(WI,JI,w(6,YI.c))}var QI="DOMException";An(D(QI),QI);var XI=Qh.clear;Vt({global:!0,bind:!0,enumerable:!0,forced:c.clearImmediate!==XI},{clearImmediate:XI});var eO="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,tO=c.Function,nO=/MSIE .\./.test(G)||eO&&function(){var e=c.Bun.version.split(".");return e.length<3||"0"===e[0]&&(e[1]<3||"3"===e[1]&&"0"===e[2])}(),rO=function(e,t){var n=t?2:1;return nO?function(r,a){var o=Bh(arguments.length,1)>n,i=B(r)?r:tO(r),s=o?pn(arguments,n):[],l=o?function(){Tr(i,this,s)}:i;return t?e(l,a):e(l)}:e},aO=Qh.set,oO=c.setImmediate?rO(aO,!1):aO;Vt({global:!0,bind:!0,enumerable:!0,forced:c.setImmediate!==oO},{setImmediate:oO}),Vt({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(e){Bh(arguments.length,1),yp(ee(e))}});var iO=TypeError,sO=Object.defineProperty,lO=c.self!==c;try{if(f){var uO=Object.getOwnPropertyDescriptor(c,"self");!lO&&uO&&uO.get&&uO.enumerable||yn(c,"self",{get:function(){return c},set:function(e){if(this!==c)throw new iO("Illegal invocation");sO(c,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else Vt({global:!0,simple:!0,forced:lO},{self:c})}catch(e){}var cO,dO=c.Object,fO=c.Array,hO=c.Date,pO=c.Error,gO=c.TypeError,mO=c.PerformanceMark,vO=D("DOMException"),yO=Lc.Map,bO=Lc.has,wO=Lc.get,CO=Lc.set,SO=dM.Set,EO=dM.add,kO=dM.has,$O=D("Object","keys"),AO=k([].push),xO=k((!0).valueOf),MO=k(1..valueOf),TO=k("".valueOf),PO=k(hO.prototype.getTime),NO=ve("structuredClone"),IO="DataCloneError",OO="Transferring",RO=function(e){return!d((function(){var t=new c.Set([7]),n=e(t),r=e(dO(7));return n===t||!n.has(7)||!L(r)||7!=+r}))&&e},FO=function(e,t){return!d((function(){var n=new t,r=e({a:n,b:n});return!(r&&r.a===r.b&&r.a instanceof t&&r.a.stack===n.stack)}))},BO=c.structuredClone,LO=!FO(BO,pO)||!FO(BO,vO)||(cO=BO,!!d((function(){var e=cO(new c.AggregateError([1],NO,{cause:3}));return"AggregateError"!==e.name||1!==e.errors[0]||e.message!==NO||3!==e.cause}))),DO=!BO&&RO((function(e){return new mO(NO,{detail:e}).detail})),_O=RO(BO)||DO,GO=function(e){throw new vO("Uncloneable type: "+e,IO)},jO=function(e,t){throw new vO((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",IO)},UO=function(e,t){return _O||jO(t),_O(e)},zO=function(e,t,n){if(bO(t,e))return wO(t,e);var r,a,o,i,s,l;if("SharedArrayBuffer"===(n||Qt(e)))r=_O?_O(e):e;else{var u=c.DataView;u||B(e.slice)||jO("ArrayBuffer");try{if(B(e.slice)&&!e.resizable)r=e.slice(0);else{a=e.byteLength,o="maxByteLength"in e?{maxByteLength:e.maxByteLength}:void 0,r=new ArrayBuffer(a,o),i=new u(e),s=new u(r);for(l=0;l<a;l++)s.setUint8(l,i.getUint8(l))}}catch(e){throw new vO("ArrayBuffer is detached",IO)}}return CO(t,e,r),r},KO=function(e,t){if(Y(e)&&GO("Symbol"),!L(e))return e;if(t){if(bO(t,e))return wO(t,e)}else t=new yO;var n,r,a,o,i,s,l,u,d=Qt(e);switch(d){case"Array":a=fO(Et(e));break;case"Object":a={};break;case"Map":a=new yO;break;case"Set":a=new SO;break;case"RegExp":a=new RegExp(e.source,Og(e));break;case"Error":switch(r=e.name){case"AggregateError":a=new(D(r))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":a=new(D(r));break;case"CompileError":case"LinkError":case"RuntimeError":a=new(D("WebAssembly",r));break;default:a=new pO}break;case"DOMException":a=new vO(e.message,e.name);break;case"ArrayBuffer":case"SharedArrayBuffer":a=zO(e,t,d);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":s="DataView"===d?e.byteLength:e.length,a=function(e,t,n,r,a){var o=c[t];return L(o)||jO(t),new o(zO(e.buffer,a),n,r)}(e,d,e.byteOffset,s,t);break;case"DOMQuad":try{a=new DOMQuad(KO(e.p1,t),KO(e.p2,t),KO(e.p3,t),KO(e.p4,t))}catch(t){a=UO(e,d)}break;case"File":if(_O)try{a=_O(e),Qt(a)!==d&&(a=void 0)}catch(e){}if(!a)try{a=new File([e],e.name,e)}catch(e){}a||jO(d);break;case"FileList":if(o=function(){var e;try{e=new c.DataTransfer}catch(t){try{e=new c.ClipboardEvent("").clipboardData}catch(e){}}return e&&e.items&&e.files?e:null}()){for(i=0,s=Et(e);i<s;i++)o.items.add(KO(e[i],t));a=o.files}else a=UO(e,d);break;case"ImageData":try{a=new ImageData(KO(e.data,t),e.width,e.height,{colorSpace:e.colorSpace})}catch(t){a=UO(e,d)}break;default:if(_O)a=_O(e);else switch(d){case"BigInt":a=dO(e.valueOf());break;case"Boolean":a=dO(xO(e));break;case"Number":a=dO(MO(e));break;case"String":a=dO(TO(e));break;case"Date":a=new hO(PO(e));break;case"Blob":try{a=e.slice(0,e.size,e.type)}catch(e){jO(d)}break;case"DOMPoint":case"DOMPointReadOnly":n=c[d];try{a=n.fromPoint?n.fromPoint(e):new n(e.x,e.y,e.z,e.w)}catch(e){jO(d)}break;case"DOMRect":case"DOMRectReadOnly":n=c[d];try{a=n.fromRect?n.fromRect(e):new n(e.x,e.y,e.width,e.height)}catch(e){jO(d)}break;case"DOMMatrix":case"DOMMatrixReadOnly":n=c[d];try{a=n.fromMatrix?n.fromMatrix(e):new n(e)}catch(e){jO(d)}break;case"AudioData":case"VideoFrame":B(e.clone)||jO(d);try{a=e.clone()}catch(e){GO(d)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":jO(d);default:GO(d)}}switch(CO(t,e,a),d){case"Array":case"Object":for(l=$O(e),i=0,s=Et(l);i<s;i++)u=l[i],co(a,u,KO(e[u],t));break;case"Map":e.forEach((function(e,n){CO(a,KO(n,t),KO(e,t))}));break;case"Set":e.forEach((function(e){EO(a,KO(e,t))}));break;case"Error":Ve(a,"message",KO(e.message,t)),he(e,"cause")&&Ve(a,"cause",KO(e.cause,t)),"AggregateError"===r?a.errors=KO(e.errors,t):"SuppressedError"===r&&(a.error=KO(e.error,t),a.suppressed=KO(e.suppressed,t));case"DOMException":wa&&Ve(a,"stack",KO(e.stack,t))}return a};Vt({global:!0,enumerable:!0,sham:!RS,forced:LO},{structuredClone:function(e){var t,n,r=Bh(arguments.length,1)>1&&!N(arguments[1])?Be(arguments[1]):void 0,a=r?r.transfer:void 0;void 0!==a&&(n=function(e,t){if(!L(e))throw new gO("Transfer option cannot be converted to a sequence");var n=[];qa(e,(function(e){AO(n,Be(e))}));for(var r,a,o,i,s,l=0,u=Et(n),d=new SO;l<u;){if(r=n[l++],"ArrayBuffer"===(a=Qt(r))?kO(d,r):bO(t,r))throw new vO("Duplicate transferable",IO);if("ArrayBuffer"!==a){if(RS)i=BO(r,{transfer:[r]});else switch(a){case"ImageBitmap":o=c.OffscreenCanvas,_n(o)||jO(a,OO);try{(s=new o(r.width,r.height)).getContext("bitmaprenderer").transferFromImageBitmap(r),i=s.transferToImageBitmap()}catch(e){}break;case"AudioData":case"VideoFrame":B(r.clone)&&B(r.close)||jO(a,OO);try{i=r.clone(),r.close()}catch(e){}break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":jO(a,OO)}if(void 0===i)throw new vO("This object cannot be transferred: "+a,IO);CO(t,r,i)}else EO(d,r)}return d}(a,t=new yO));var o=KO(e,t);return n&&function(e){CM(e,(function(e){RS?_O(e,{transfer:[e]}):B(e.transfer)?e.transfer():_S?_S(e):jO("ArrayBuffer",OO)}))}(n),o}});var VO=rO(c.setInterval,!0);Vt({global:!0,bind:!0,forced:c.setInterval!==VO},{setInterval:VO});var HO=rO(c.setTimeout,!0);Vt({global:!0,bind:!0,forced:c.setTimeout!==HO},{setTimeout:HO});var WO=Ce("iterator"),ZO=!d((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),n.delete("a",2),n.delete("b",void 0),!t.size&&!f||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[WO]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),qO=2147483647,YO=/[^\0-\u007E]/,JO=/[.\u3002\uFF0E\uFF61]/g,QO="Overflow: input needs wider integers to process",XO=RangeError,eR=k(JO.exec),tR=Math.floor,nR=String.fromCharCode,rR=k("".charCodeAt),aR=k([].join),oR=k([].push),iR=k("".replace),sR=k("".split),lR=k("".toLowerCase),uR=function(e){return e+22+75*(e<26)},cR=function(e,t,n){var r=0;for(e=n?tR(e/700):e>>1,e+=tR(e/t);e>455;)e=tR(e/35),r+=36;return tR(r+36*e/(e+38))},dR=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var a=rR(e,n++);if(a>=55296&&a<=56319&&n<r){var o=rR(e,n++);56320==(64512&o)?oR(t,((1023&a)<<10)+(1023&o)+65536):(oR(t,a),n--)}else oR(t,a)}return t}(e);var n,r,a=e.length,o=128,i=0,s=72;for(n=0;n<e.length;n++)(r=e[n])<128&&oR(t,nR(r));var l=t.length,u=l;for(l&&oR(t,"-");u<a;){var c=qO;for(n=0;n<e.length;n++)(r=e[n])>=o&&r<c&&(c=r);var d=u+1;if(c-o>tR((qO-i)/d))throw new XO(QO);for(i+=(c-o)*d,o=c,n=0;n<e.length;n++){if((r=e[n])<o&&++i>qO)throw new XO(QO);if(r===o){for(var f=i,h=36;;){var p=h<=s?1:h>=s+26?26:h-s;if(f<p)break;var g=f-p,m=36-p;oR(t,nR(uR(p+g%m))),f=tR(g/m),h+=36}oR(t,nR(uR(f))),s=cR(i,d,u===l),i=0,u++}}i++,o++}return aR(t,"")},fR=Ce("iterator"),hR="URLSearchParams",pR=hR+"Iterator",gR=dt.set,mR=dt.getterFor(hR),vR=dt.getterFor(pR),yR=ep("fetch"),bR=ep("Request"),wR=ep("Headers"),CR=bR&&bR.prototype,SR=wR&&wR.prototype,ER=c.RegExp,kR=c.TypeError,$R=c.decodeURIComponent,AR=c.encodeURIComponent,xR=k("".charAt),MR=k([].join),TR=k([].push),PR=k("".replace),NR=k([].shift),IR=k([].splice),OR=k("".split),RR=k("".slice),FR=/\+/g,BR=Array(4),LR=function(e){return BR[e-1]||(BR[e-1]=ER("((?:%[\\da-f]{2}){"+e+"})","gi"))},DR=function(e){try{return $R(e)}catch(t){return e}},_R=function(e){var t=PR(e,FR," "),n=4;try{return $R(t)}catch(e){for(;n;)t=PR(t,LR(n--),DR);return t}},GR=/[!'()~]|%20/g,jR={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},UR=function(e){return jR[e]},zR=function(e){return PR(AR(e),GR,UR)},KR=fi((function(e,t){gR(this,{type:pR,target:mR(e).entries,index:0,kind:t})}),hR,(function(){var e=vR(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,Ei(void 0,!0);var r=t[n];switch(e.kind){case"keys":return Ei(r.key,!1);case"values":return Ei(r.value,!1)}return Ei([r.key,r.value],!1)}),!0),VR=function(e){this.entries=[],this.url=null,void 0!==e&&(L(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===xR(e,0)?RR(e,1):e:en(e)))};VR.prototype={type:hR,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,a,o,i,s,l=this.entries,u=Ua(e);if(u)for(n=(t=Ka(e,u)).next;!(r=g(n,t)).done;){if(o=(a=Ka(Be(r.value))).next,(i=g(o,a)).done||(s=g(o,a)).done||!g(o,a).done)throw new kR("Expected sequence with length 2");TR(l,{key:en(i.value),value:en(s.value)})}else for(var c in e)he(e,c)&&TR(l,{key:c,value:en(e[c])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,a=OR(e,"&"),o=0;o<a.length;)(t=a[o++]).length&&(n=OR(t,"="),TR(r,{key:_R(NR(n)),value:_R(MR(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],TR(n,zR(e.key)+"="+zR(e.value));return MR(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var HR=function(){zs(this,WR);var e=gR(this,new VR(arguments.length>0?arguments[0]:void 0));f||(this.size=e.entries.length)},WR=HR.prototype;if(js(WR,{append:function(e,t){var n=mR(this);Bh(arguments.length,2),TR(n.entries,{key:en(e),value:en(t)}),f||this.length++,n.updateURL()},delete:function(e){for(var t=mR(this),n=Bh(arguments.length,1),r=t.entries,a=en(e),o=n<2?void 0:arguments[1],i=void 0===o?o:en(o),s=0;s<r.length;){var l=r[s];if(l.key!==a||void 0!==i&&l.value!==i)s++;else if(IR(r,s,1),void 0!==i)break}f||(this.size=r.length),t.updateURL()},get:function(e){var t=mR(this).entries;Bh(arguments.length,1);for(var n=en(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=mR(this).entries;Bh(arguments.length,1);for(var n=en(e),r=[],a=0;a<t.length;a++)t[a].key===n&&TR(r,t[a].value);return r},has:function(e){for(var t=mR(this).entries,n=Bh(arguments.length,1),r=en(e),a=n<2?void 0:arguments[1],o=void 0===a?a:en(a),i=0;i<t.length;){var s=t[i++];if(s.key===r&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var n=mR(this);Bh(arguments.length,1);for(var r,a=n.entries,o=!1,i=en(e),s=en(t),l=0;l<a.length;l++)(r=a[l]).key===i&&(o?IR(a,l--,1):(o=!0,r.value=s));o||TR(a,{key:i,value:s}),f||(this.size=a.length),n.updateURL()},sort:function(){var e=mR(this);us(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=mR(this).entries,r=Tn(e,arguments.length>1?arguments[1]:void 0),a=0;a<n.length;)r((t=n[a++]).value,t.key,this)},keys:function(){return new KR(this,"keys")},values:function(){return new KR(this,"values")},entries:function(){return new KR(this,"entries")}},{enumerable:!0}),ht(WR,fR,WR.entries,{name:"entries"}),ht(WR,"toString",(function(){return mR(this).serialize()}),{enumerable:!0}),f&&yn(WR,"size",{get:function(){return mR(this).entries.length},configurable:!0,enumerable:!0}),An(HR,hR),Vt({global:!0,constructor:!0,forced:!ZO},{URLSearchParams:HR}),!ZO&&B(wR)){var ZR=k(SR.has),qR=k(SR.set),YR=function(e){if(L(e)){var t,n=e.body;if(Qt(n)===hR)return t=e.headers?new wR(e.headers):new wR,ZR(t,"content-type")||qR(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),hn(e,{body:w(0,en(n)),headers:w(0,t)})}return e};if(B(yR)&&Vt({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return yR(e,arguments.length>1?YR(arguments[1]):{})}}),B(bR)){var JR=function(e){return zs(this,CR),new bR(e,arguments.length>1?YR(arguments[1]):{})};CR.constructor=JR,JR.prototype=CR,Vt({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:JR})}}var QR,XR={URLSearchParams:HR,getState:mR},eF=Hm.codeAt,tF=dt.set,nF=dt.getterFor("URL"),rF=XR.URLSearchParams,aF=XR.getState,oF=c.URL,iF=c.TypeError,sF=c.parseInt,lF=Math.floor,uF=Math.pow,cF=k("".charAt),dF=k(/./.exec),fF=k([].join),hF=k(1..toString),pF=k([].pop),gF=k([].push),mF=k("".replace),vF=k([].shift),yF=k("".split),bF=k("".slice),wF=k("".toLowerCase),CF=k([].unshift),SF="Invalid scheme",EF="Invalid host",kF="Invalid port",$F=/[a-z]/i,AF=/[\d+-.a-z]/i,xF=/\d/,MF=/^0x/i,TF=/^[0-7]+$/,PF=/^\d+$/,NF=/^[\da-f]+$/i,IF=/[\0\t\n\r #%/:<>?@[\\\]^|]/,OF=/[\0\t\n\r #/:<>?@[\\\]^|]/,RF=/^[\u0000-\u0020]+/,FF=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,BF=/[\t\n\r]/g,LF=function(e){var t,n,r,a;if("number"==typeof e){for(t=[],n=0;n<4;n++)CF(t,e%256),e=lF(e/256);return fF(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,a=0,o=0;o<8;o++)0!==e[o]?(a>n&&(t=r,n=a),r=null,a=0):(null===r&&(r=o),++a);return a>n&&(t=r,n=a),t}(e),n=0;n<8;n++)a&&0===e[n]||(a&&(a=!1),r===n?(t+=n?":":"::",a=!0):(t+=hF(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},DF={},_F=Kf({},DF,{" ":1,'"':1,"<":1,">":1,"`":1}),GF=Kf({},_F,{"#":1,"?":1,"{":1,"}":1}),jF=Kf({},GF,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),UF=function(e,t){var n=eF(e,0);return n>32&&n<127&&!he(t,e)?e:encodeURIComponent(e)},zF={ftp:21,file:null,http:80,https:443,ws:80,wss:443},KF=function(e,t){var n;return 2===e.length&&dF($F,cF(e,0))&&(":"===(n=cF(e,1))||!t&&"|"===n)},VF=function(e){var t;return e.length>1&&KF(bF(e,0,2))&&(2===e.length||"/"===(t=cF(e,2))||"\\"===t||"?"===t||"#"===t)},HF=function(e){return"."===e||"%2e"===wF(e)},WF={},ZF={},qF={},YF={},JF={},QF={},XF={},eB={},tB={},nB={},rB={},aB={},oB={},iB={},sB={},lB={},uB={},cB={},dB={},fB={},hB={},pB=function(e,t,n){var r,a,o,i=en(e);if(t){if(a=this.parse(i))throw new iF(a);this.searchParams=null}else{if(void 0!==n&&(r=new pB(n,!0)),a=this.parse(i,null,r))throw new iF(a);(o=aF(new rF)).bindURL(this),this.searchParams=o}};pB.prototype={type:"URL",parse:function(e,t,n){var r,a,o,i,s,l=this,u=t||WF,c=0,d="",f=!1,h=!1,p=!1;for(e=en(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=mF(e,RF,""),e=mF(e,FF,"$1")),e=mF(e,BF,""),r=Ko(e);c<=r.length;){switch(a=r[c],u){case WF:if(!a||!dF($F,a)){if(t)return SF;u=qF;continue}d+=wF(a),u=ZF;break;case ZF:if(a&&(dF(AF,a)||"+"===a||"-"===a||"."===a))d+=wF(a);else{if(":"!==a){if(t)return SF;d="",u=qF,c=0;continue}if(t&&(l.isSpecial()!==he(zF,d)||"file"===d&&(l.includesCredentials()||null!==l.port)||"file"===l.scheme&&!l.host))return;if(l.scheme=d,t)return void(l.isSpecial()&&zF[l.scheme]===l.port&&(l.port=null));d="","file"===l.scheme?u=iB:l.isSpecial()&&n&&n.scheme===l.scheme?u=YF:l.isSpecial()?u=eB:"/"===r[c+1]?(u=JF,c++):(l.cannotBeABaseURL=!0,gF(l.path,""),u=dB)}break;case qF:if(!n||n.cannotBeABaseURL&&"#"!==a)return SF;if(n.cannotBeABaseURL&&"#"===a){l.scheme=n.scheme,l.path=pn(n.path),l.query=n.query,l.fragment="",l.cannotBeABaseURL=!0,u=hB;break}u="file"===n.scheme?iB:QF;continue;case YF:if("/"!==a||"/"!==r[c+1]){u=QF;continue}u=tB,c++;break;case JF:if("/"===a){u=nB;break}u=cB;continue;case QF:if(l.scheme=n.scheme,a===QR)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=pn(n.path),l.query=n.query;else if("/"===a||"\\"===a&&l.isSpecial())u=XF;else if("?"===a)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=pn(n.path),l.query="",u=fB;else{if("#"!==a){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=pn(n.path),l.path.length--,u=cB;continue}l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=pn(n.path),l.query=n.query,l.fragment="",u=hB}break;case XF:if(!l.isSpecial()||"/"!==a&&"\\"!==a){if("/"!==a){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,u=cB;continue}u=nB}else u=tB;break;case eB:if(u=tB,"/"!==a||"/"!==cF(d,c+1))continue;c++;break;case tB:if("/"!==a&&"\\"!==a){u=nB;continue}break;case nB:if("@"===a){f&&(d="%40"+d),f=!0,o=Ko(d);for(var g=0;g<o.length;g++){var m=o[g];if(":"!==m||p){var v=UF(m,jF);p?l.password+=v:l.username+=v}else p=!0}d=""}else if(a===QR||"/"===a||"?"===a||"#"===a||"\\"===a&&l.isSpecial()){if(f&&""===d)return"Invalid authority";c-=Ko(d).length+1,d="",u=rB}else d+=a;break;case rB:case aB:if(t&&"file"===l.scheme){u=lB;continue}if(":"!==a||h){if(a===QR||"/"===a||"?"===a||"#"===a||"\\"===a&&l.isSpecial()){if(l.isSpecial()&&""===d)return EF;if(t&&""===d&&(l.includesCredentials()||null!==l.port))return;if(i=l.parseHost(d))return i;if(d="",u=uB,t)return;continue}"["===a?h=!0:"]"===a&&(h=!1),d+=a}else{if(""===d)return EF;if(i=l.parseHost(d))return i;if(d="",u=oB,t===aB)return}break;case oB:if(!dF(xF,a)){if(a===QR||"/"===a||"?"===a||"#"===a||"\\"===a&&l.isSpecial()||t){if(""!==d){var y=sF(d,10);if(y>65535)return kF;l.port=l.isSpecial()&&y===zF[l.scheme]?null:y,d=""}if(t)return;u=uB;continue}return kF}d+=a;break;case iB:if(l.scheme="file","/"===a||"\\"===a)u=sB;else{if(!n||"file"!==n.scheme){u=cB;continue}switch(a){case QR:l.host=n.host,l.path=pn(n.path),l.query=n.query;break;case"?":l.host=n.host,l.path=pn(n.path),l.query="",u=fB;break;case"#":l.host=n.host,l.path=pn(n.path),l.query=n.query,l.fragment="",u=hB;break;default:VF(fF(pn(r,c),""))||(l.host=n.host,l.path=pn(n.path),l.shortenPath()),u=cB;continue}}break;case sB:if("/"===a||"\\"===a){u=lB;break}n&&"file"===n.scheme&&!VF(fF(pn(r,c),""))&&(KF(n.path[0],!0)?gF(l.path,n.path[0]):l.host=n.host),u=cB;continue;case lB:if(a===QR||"/"===a||"\\"===a||"?"===a||"#"===a){if(!t&&KF(d))u=cB;else if(""===d){if(l.host="",t)return;u=uB}else{if(i=l.parseHost(d))return i;if("localhost"===l.host&&(l.host=""),t)return;d="",u=uB}continue}d+=a;break;case uB:if(l.isSpecial()){if(u=cB,"/"!==a&&"\\"!==a)continue}else if(t||"?"!==a)if(t||"#"!==a){if(a!==QR&&(u=cB,"/"!==a))continue}else l.fragment="",u=hB;else l.query="",u=fB;break;case cB:if(a===QR||"/"===a||"\\"===a&&l.isSpecial()||!t&&("?"===a||"#"===a)){if(".."===(s=wF(s=d))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(l.shortenPath(),"/"===a||"\\"===a&&l.isSpecial()||gF(l.path,"")):HF(d)?"/"===a||"\\"===a&&l.isSpecial()||gF(l.path,""):("file"===l.scheme&&!l.path.length&&KF(d)&&(l.host&&(l.host=""),d=cF(d,0)+":"),gF(l.path,d)),d="","file"===l.scheme&&(a===QR||"?"===a||"#"===a))for(;l.path.length>1&&""===l.path[0];)vF(l.path);"?"===a?(l.query="",u=fB):"#"===a&&(l.fragment="",u=hB)}else d+=UF(a,GF);break;case dB:"?"===a?(l.query="",u=fB):"#"===a?(l.fragment="",u=hB):a!==QR&&(l.path[0]+=UF(a,DF));break;case fB:t||"#"!==a?a!==QR&&("'"===a&&l.isSpecial()?l.query+="%27":l.query+="#"===a?"%23":UF(a,DF)):(l.fragment="",u=hB);break;case hB:a!==QR&&(l.fragment+=UF(a,_F))}c++}},parseHost:function(e){var t,n,r;if("["===cF(e,0)){if("]"!==cF(e,e.length-1))return EF;if(t=function(e){var t,n,r,a,o,i,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,d=0,f=function(){return cF(e,d)};if(":"===f()){if(":"!==cF(e,1))return;d+=2,c=++u}for(;f();){if(8===u)return;if(":"!==f()){for(t=n=0;n<4&&dF(NF,f());)t=16*t+sF(f(),16),d++,n++;if("."===f()){if(0===n)return;if(d-=n,u>6)return;for(r=0;f();){if(a=null,r>0){if(!("."===f()&&r<4))return;d++}if(!dF(xF,f()))return;for(;dF(xF,f());){if(o=sF(f(),10),null===a)a=o;else{if(0===a)return;a=10*a+o}if(a>255)return;d++}l[u]=256*l[u]+a,2!=++r&&4!==r||u++}if(4!==r)return;break}if(":"===f()){if(d++,!f())return}else if(f())return;l[u++]=t}else{if(null!==c)return;d++,c=++u}}if(null!==c)for(i=u-c,u=7;0!==u&&i>0;)s=l[u],l[u--]=l[c+i-1],l[c+--i]=s;else if(8!==u)return;return l}(bF(e,1,-1)),!t)return EF;this.host=t}else if(this.isSpecial()){if(e=function(e){var t,n,r=[],a=sR(iR(lR(e),JO,"."),".");for(t=0;t<a.length;t++)n=a[t],oR(r,eR(YO,n)?"xn--"+dR(n):n);return aR(r,".")}(e),dF(IF,e))return EF;if(t=function(e){var t,n,r,a,o,i,s,l=yF(e,".");if(l.length&&""===l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(n=[],r=0;r<t;r++){if(""===(a=l[r]))return e;if(o=10,a.length>1&&"0"===cF(a,0)&&(o=dF(MF,a)?16:8,a=bF(a,8===o?1:2)),""===a)i=0;else{if(!dF(10===o?PF:8===o?TF:NF,a))return e;i=sF(a,o)}gF(n,i)}for(r=0;r<t;r++)if(i=n[r],r===t-1){if(i>=uF(256,5-t))return null}else if(i>255)return null;for(s=pF(n),r=0;r<n.length;r++)s+=n[r]*uF(256,3-r);return s}(e),null===t)return EF;this.host=t}else{if(dF(OF,e))return EF;for(t="",n=Ko(e),r=0;r<n.length;r++)t+=UF(n[r],DF);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return he(zF,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&KF(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,a=e.host,o=e.port,i=e.path,s=e.query,l=e.fragment,u=t+":";return null!==a?(u+="//",e.includesCredentials()&&(u+=n+(r?":"+r:"")+"@"),u+=LF(a),null!==o&&(u+=":"+o)):"file"===t&&(u+="//"),u+=e.cannotBeABaseURL?i[0]:i.length?"/"+fF(i,"/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},setHref:function(e){var t=this.parse(e);if(t)throw new iF(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new gB(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+LF(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(en(e)+":",WF)},getUsername:function(){return this.username},setUsername:function(e){var t=Ko(en(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=UF(t[n],jF)}},getPassword:function(){return this.password},setPassword:function(e){var t=Ko(en(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=UF(t[n],jF)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?LF(e):LF(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,rB)},getHostname:function(){var e=this.host;return null===e?"":LF(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,aB)},getPort:function(){var e=this.port;return null===e?"":en(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=en(e))?this.port=null:this.parse(e,oB))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+fF(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,uB))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=en(e))?this.query=null:("?"===cF(e,0)&&(e=bF(e,1)),this.query="",this.parse(e,fB)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=en(e))?("#"===cF(e,0)&&(e=bF(e,1)),this.fragment="",this.parse(e,hB)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var gB=function(e){var t=zs(this,mB),n=Bh(arguments.length,1)>1?arguments[1]:void 0,r=tF(t,new pB(e,!1,n));f||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},mB=gB.prototype,vB=function(e,t){return{get:function(){return nF(this)[e]()},set:t&&function(e){return nF(this)[t](e)},configurable:!0,enumerable:!0}};if(f&&(yn(mB,"href",vB("serialize","setHref")),yn(mB,"origin",vB("getOrigin")),yn(mB,"protocol",vB("getProtocol","setProtocol")),yn(mB,"username",vB("getUsername","setUsername")),yn(mB,"password",vB("getPassword","setPassword")),yn(mB,"host",vB("getHost","setHost")),yn(mB,"hostname",vB("getHostname","setHostname")),yn(mB,"port",vB("getPort","setPort")),yn(mB,"pathname",vB("getPathname","setPathname")),yn(mB,"search",vB("getSearch","setSearch")),yn(mB,"searchParams",vB("getSearchParams")),yn(mB,"hash",vB("getHash","setHash"))),ht(mB,"toJSON",(function(){return nF(this).serialize()}),{enumerable:!0}),ht(mB,"toString",(function(){return nF(this).serialize()}),{enumerable:!0}),oF){var yB=oF.createObjectURL,bB=oF.revokeObjectURL;yB&&ht(gB,"createObjectURL",Tn(yB,oF)),bB&&ht(gB,"revokeObjectURL",Tn(bB,oF))}An(gB,"URL"),Vt({global:!0,constructor:!0,forced:!ZO,sham:!f},{URL:gB});var wB=D("URL"),CB=ZO&&d((function(){wB.canParse()}));Vt({target:"URL",stat:!0,forced:!CB},{canParse:function(e){var t=Bh(arguments.length,1),n=en(e),r=t<2||void 0===arguments[1]?void 0:en(arguments[1]);try{return!!new wB(n,r)}catch(e){return!1}}}),Vt({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return g(URL.prototype.toString,this)}});var SB=URLSearchParams,EB=SB.prototype,kB=k(EB.append),$B=k(EB.delete),AB=k(EB.forEach),xB=k([].push),MB=new SB("a=1&a=2&b=3");MB.delete("a",1),MB.delete("b",void 0),MB+""!="a=2"&&ht(EB,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return $B(this,e);var r=[];AB(this,(function(e,t){xB(r,{key:t,value:e})})),Bh(t,1);for(var a,o=en(e),i=en(n),s=0,l=0,u=!1,c=r.length;s<c;)a=r[s++],u||a.key===o?(u=!0,$B(this,a.key)):l++;for(;l<c;)(a=r[l++]).key===o&&a.value===i||kB(this,a.key,a.value)}),{enumerable:!0,unsafe:!0});var TB=URLSearchParams,PB=TB.prototype,NB=k(PB.getAll),IB=k(PB.has),OB=new TB("a=1");!OB.has("a",2)&&OB.has("a",void 0)||ht(PB,"has",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return IB(this,e);var r=NB(this,e);Bh(t,1);for(var a=en(n),o=0;o<r.length;)if(r[o++]===a)return!0;return!1}),{enumerable:!0,unsafe:!0});var RB=URLSearchParams.prototype,FB=k(RB.forEach);function BB(e){return BB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BB(e)}f&&!("size"in RB)&&yn(RB,"size",{get:function(){var e=0;return FB(this,(function(){e++})),e},configurable:!0,enumerable:!0}),i((function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof m?t:m,o=Object.create(a.prototype),i=new M(r||[]);return o._invoke=function(e,t,n){var r=d;return function(a,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===a)throw o;return P()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=$(i,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?p:f,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(e,n,i),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d="suspendedStart",f="suspendedYield",h="executing",p="completed",g={};function m(){}function v(){}function y(){}var b={};b[o]=function(){return this};var w=Object.getPrototypeOf,C=w&&w(w(T([])));C&&C!==n&&r.call(C,o)&&(b=C);var S=y.prototype=m.prototype=Object.create(b);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(a,o,i,s){var l=c(e[a],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"===BB(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,s)}))}s(l.arg)}var a;this._invoke=function(e,r){function o(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(o,o):o()}}function $(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,$(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var a=c(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function T(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function n(){for(;++a<e.length;)if(r.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:P}}function P(){return{value:t,done:!0}}return v.prototype=S.constructor=y,y.constructor=v,v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},E(k.prototype),k.prototype[i]=function(){return this},e.AsyncIterator=k,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new k(u(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},E(S),l(S,s,"Generator"),S[o]=function(){return this},S.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=T,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(x),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function a(r,a){return s.type="throw",s.arg=e,n.next=r,a&&(n.method="next",n.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;x(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}));var LB="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==LB&&LB,DB="URLSearchParams"in LB,_B="Symbol"in LB&&"iterator"in Symbol,GB="FileReader"in LB&&"Blob"in LB&&function(){try{return new Blob,!0}catch(e){return!1}}(),jB="FormData"in LB,UB="ArrayBuffer"in LB;if(UB)var zB=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],KB=ArrayBuffer.isView||function(e){return e&&zB.indexOf(Object.prototype.toString.call(e))>-1};function VB(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function HB(e){return"string"!=typeof e&&(e=String(e)),e}function WB(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return _B&&(t[Symbol.iterator]=function(){return t}),t}function ZB(e){this.map={},e instanceof ZB?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function qB(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function YB(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function JB(e){var t=new FileReader,n=YB(t);return t.readAsArrayBuffer(e),n}function QB(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function XB(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:GB&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:jB&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:DB&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():UB&&GB&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=QB(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):UB&&(ArrayBuffer.prototype.isPrototypeOf(e)||KB(e))?this._bodyArrayBuffer=QB(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):DB&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},GB&&(this.blob=function(){var e=qB(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=qB(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(JB)}),this.text=function(){var e=qB(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=YB(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},jB&&(this.formData=function(){return this.text().then(nL)}),this.json=function(){return this.text().then(JSON.parse)},this}ZB.prototype.append=function(e,t){e=VB(e),t=HB(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},ZB.prototype.delete=function(e){delete this.map[VB(e)]},ZB.prototype.get=function(e){return e=VB(e),this.has(e)?this.map[e]:null},ZB.prototype.has=function(e){return this.map.hasOwnProperty(VB(e))},ZB.prototype.set=function(e,t){this.map[VB(e)]=HB(t)},ZB.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},ZB.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),WB(e)},ZB.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),WB(e)},ZB.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),WB(e)},_B&&(ZB.prototype[Symbol.iterator]=ZB.prototype.entries);var eL=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function tL(e,t){if(!(this instanceof tL))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof tL){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new ZB(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new ZB(t.headers)),this.method=function(e){var t=e.toUpperCase();return eL.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function nL(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(a))}})),t}function rL(e,t){if(!(this instanceof rL))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new ZB(t.headers),this.url=t.url||"",this._initBody(e)}tL.prototype.clone=function(){return new tL(this,{body:this._bodyInit})},XB.call(tL.prototype),XB.call(rL.prototype),rL.prototype.clone=function(){return new rL(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ZB(this.headers),url:this.url})},rL.error=function(){var e=new rL(null,{status:0,statusText:""});return e.type="error",e};var aL=[301,302,303,307,308];rL.redirect=function(e,t){if(-1===aL.indexOf(t))throw new RangeError("Invalid status code");return new rL(null,{status:t,headers:{location:e}})};var oL=LB.DOMException;try{new oL}catch(e){(oL=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),oL.prototype.constructor=oL}function iL(e,t){return new Promise((function(n,r){var a=new tL(e,t);if(a.signal&&a.signal.aborted)return r(new oL("Aborted","AbortError"));var o=new XMLHttpRequest;function i(){o.abort()}o.onload=function(){var e,t,r={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new ZB,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var a=n.join(":").trim();t.append(r,a)}})),t)};r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var a="response"in o?o.response:o.responseText;setTimeout((function(){n(new rL(a,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){r(new oL("Aborted","AbortError"))}),0)},o.open(a.method,function(e){try{return""===e&&LB.location.href?LB.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?o.withCredentials=!0:"omit"===a.credentials&&(o.withCredentials=!1),"responseType"in o&&(GB?o.responseType="blob":UB&&a.headers.get("Content-Type")&&-1!==a.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!t||"object"!==BB(t.headers)||t.headers instanceof ZB?a.headers.forEach((function(e,t){o.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){o.setRequestHeader(e,HB(t.headers[e]))})),a.signal&&(a.signal.addEventListener("abort",i),o.onreadystatechange=function(){4===o.readyState&&a.signal.removeEventListener("abort",i)}),o.send(void 0===a._bodyInit?null:a._bodyInit)}))}function sL(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function lL(e,t,n,r){return new(n||(n=Promise))((function(t,a){function o(e){try{s(r.next(e))}catch(e){a(e)}}function i(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(o,i)}s((r=r.apply(e,[])).next())}))}function uL(e,t){window.console&&(window.console.error?t?window.console.error(e,t):window.console.error(e):window.console.log&&window.console.log(e))}function cL(e,...t){return e?Object.fromEntries(Object.entries(e).filter((([e,n])=>t.includes(e)&&void 0!==n))):{}}function dL(e){return e.replace(/([^A-Z])([A-Z])/g,"$1 $2").toLowerCase().replace(/[^a-z0-9]/gi," ").trim().replace(/(?:^\w|[A-Z]|\b\w)/g,(function(e,t){return 0===t?e.toLowerCase():e.toUpperCase()})).replace(/\s+/g,"")}iL.polyfill=!0,LB.fetch||(LB.fetch=iL,LB.Headers=ZB,LB.Request=tL,LB.Response=rL);const fL=e=>gL(e,dL),hL=e=>gL(e,mL),pL=["custom_fields","consents"];function gL(e,t){return Array.isArray(e)?e.map((e=>gL(e,t))):"object"==typeof e&&null!==e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t(e),pL.find((t=>t===mL(e)))?n:gL(n,t)]))):e}function mL(e){return function(e){const t=e.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+|[A-Z]|[0-9]+/g);return t?t.map((e=>e.toLowerCase())).join("_"):""}(e).replace(/_\d/g,(e=>e.slice(1)))}function vL(e,t=!0){const n=t?hL(e):e;return Object.entries(n).filter((([e,t])=>null!=t)).map((([e,t])=>""!==t?`${e}=${encodeURIComponent(t)}`:e)).join("&")}var yL,bL;function wL(e={},t){const n=void 0===e.fetchBasicProfile||e.fetchBasicProfile,r=void 0===e.scope?t:e.scope;return[...new Set([...n?["openid","profile","email","phone"]:[],...e.requireRefreshToken?["offline_access"]:[],...CL(r)])].join(" ")}function CL(e){if(void 0===e)return[];if(Array.isArray(e))return e;if("string"==typeof e)return e.split(" ");throw new Error("Invalid scope format: string or array expected.")}function SL(e={},{acceptPopupMode:t=!1}={},n){const r=e.popupMode&&t,a=e.redirectUri?"code":"token",o=e.useWebMessage&&!r?"web_message":void 0,i=r?"popup":"web_message"!==o?"page":void 0,s="web_message"===o?"none":e.prompt,l=wL(e,n);return Object.assign(Object.assign({responseType:a},cL(e,"responseType","redirectUri","origin","state","nonce","providerScope","idTokenHint","loginHint","accessToken","persistent")),{scope:l,display:i,responseMode:o,prompt:s})}!function(e){e.isPhoneCredential=function(e){return"sms"===e.type},e.isEmailCredential=function(e){return"email"===e.type}}(yL||(yL={})),function(e){e.isErrorResponse=function(e){return"object"==typeof e&&null!==e&&"error"in e}}(bL||(bL={}));for(var EL=function(e){var t=NL(e),n=t[0],r=t[1];return 3*(n+r)/4-r},kL=function(e){var t,n,r=NL(e),a=r[0],o=r[1],i=new ML(function(e,t,n){return 3*(t+n)/4-n}(0,a,o)),s=0,l=o>0?a-4:a;for(n=0;n<l;n+=4)t=xL[e.charCodeAt(n)]<<18|xL[e.charCodeAt(n+1)]<<12|xL[e.charCodeAt(n+2)]<<6|xL[e.charCodeAt(n+3)],i[s++]=t>>16&255,i[s++]=t>>8&255,i[s++]=255&t;2===o&&(t=xL[e.charCodeAt(n)]<<2|xL[e.charCodeAt(n+1)]>>4,i[s++]=255&t);1===o&&(t=xL[e.charCodeAt(n)]<<10|xL[e.charCodeAt(n+1)]<<4|xL[e.charCodeAt(n+2)]>>2,i[s++]=t>>8&255,i[s++]=255&t);return i},$L=function(e){for(var t,n=e.length,r=n%3,a=[],o=16383,i=0,s=n-r;i<s;i+=o)a.push(IL(e,i,i+o>s?s:i+o));1===r?(t=e[n-1],a.push(AL[t>>2]+AL[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],a.push(AL[t>>10]+AL[t>>4&63]+AL[t<<2&63]+"="));return a.join("")},AL=[],xL=[],ML="undefined"!=typeof Uint8Array?Uint8Array:Array,TL="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",PL=0;PL<64;++PL)AL[PL]=TL[PL],xL[TL.charCodeAt(PL)]=PL;function NL(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function IL(e,t,n){for(var r,a,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(AL[(a=r)>>18&63]+AL[a>>12&63]+AL[a>>6&63]+AL[63&a]);return o.join("")}xL["-".charCodeAt(0)]=62,xL["_".charCodeAt(0)]=63;var OL,RL={byteLength:EL,toByteArray:kL,fromByteArray:$L},FL=function(e,t,n,r,a){var o,i,s=8*a-r-1,l=(1<<s)-1,u=l>>1,c=-7,d=n?a-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(i=o&(1<<-c)-1,o>>=-c,c+=r;c>0;i=256*i+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,r),o-=u}return(h?-1:1)*i*Math.pow(2,o-r)},BL=function(e,t,n,r,a,o){var i,s,l,u=8*o-a-1,c=(1<<u)-1,d=c>>1,f=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),(t+=i+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(i++,l/=2),i+d>=c?(s=0,i=c):i+d>=1?(s=(t*l-1)*Math.pow(2,a),i+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),i=0));a>=8;e[n+h]=255&s,h+=p,s/=256,a-=8);for(i=i<<a|s,u+=a;u>0;e[n+h]=255&i,h+=p,i/=256,u-=8);e[n+h-p]|=128*g},LL=i((function(e,t){var n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=o,t.SlowBuffer=function(e){+e!=e&&(e=0);return o.alloc(+e)},t.INSPECT_MAX_BYTES=50;var r=2147483647;function a(e){if(e>r)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return i(e,t,n)}function i(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|f(e,t),r=a(n),i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+BB(e));if(_(e,ArrayBuffer)||e&&_(e.buffer,ArrayBuffer))return c(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(_(e,SharedArrayBuffer)||e&&_(e.buffer,SharedArrayBuffer)))return c(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return o.from(r,t,n);var i=function(e){if(o.isBuffer(e)){var t=0|d(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||G(e.length)?a(0):u(e);if("Buffer"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+BB(e))}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return s(e),a(e<0?0:0|d(e))}function u(e){for(var t=e.length<0?0:0|d(e.length),n=a(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function c(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,o.prototype),r}function d(e){if(e>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function f(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||_(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+BB(e));var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return L(e).length;default:if(a)return r?-1:B(e).length;t=(""+t).toLowerCase(),a=!0}}function h(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return x(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function p(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),G(n=+n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=o.from(t,r)),o.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,a){var o,i=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,s/=2,l/=2,n/=2}function u(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(a){var c=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*i}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(u(e,o+f)!==u(t,f)){d=!1;break}if(d)return o}return-1}function v(e,t,n,r){n=Number(n)||0;var a=e.length-n;r?(r=Number(r))>a&&(r=a):r=a;var o=t.length;r>o/2&&(r=o/2);for(var i=0;i<r;++i){var s=parseInt(t.substr(2*i,2),16);if(G(s))return i;e[n+i]=s}return i}function y(e,t,n,r){return D(B(t,e.length-n),e,n,r)}function b(e,t,n,r){return D(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return b(e,t,n,r)}function C(e,t,n,r){return D(L(t),e,n,r)}function S(e,t,n,r){return D(function(e,t){for(var n,r,a,o=[],i=0;i<e.length&&!((t-=2)<0);++i)r=(n=e.charCodeAt(i))>>8,a=n%256,o.push(a),o.push(r);return o}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?RL.fromByteArray(e):RL.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a<n;){var o,i,s,l,u=e[a],c=null,d=u>239?4:u>223?3:u>191?2:1;if(a+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[a+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[a+1],i=e[a+2],128==(192&o)&&128==(192&i)&&(l=(15&u)<<12|(63&o)<<6|63&i)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[a+1],i=e[a+2],s=e[a+3],128==(192&o)&&128==(192&i)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&i)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),a+=d}return function(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=$));return n}(r)}t.kMaxLength=r,o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(e,t,n){return i(e,t,n)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,n){return function(e,t,n){return s(e),e<=0?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)}(e,t,n)},o.allocUnsafe=function(e){return l(e)},o.allocUnsafeSlow=function(e){return l(e)},o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(_(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),_(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,a=0,i=Math.min(n,r);a<i;++a)if(e[a]!==t[a]){n=e[a],r=t[a];break}return n<r?-1:r<n?1:0},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=o.allocUnsafe(t),a=0;for(n=0;n<e.length;++n){var i=e[n];if(_(i,Uint8Array)&&(i=o.from(i)),!o.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,a),a+=i.length}return r},o.byteLength=f,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)p(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)p(this,t,t+3),p(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?k(this,0,e):h.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(e,t,n,r,a){if(_(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+BB(e));if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),l=Math.min(i,s),u=this.slice(r,a),c=e.slice(t,n),d=0;d<l;++d)if(u[d]!==c[d]){i=u[d],s=c[d];break}return i<s?-1:s<i?1:0},o.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},o.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},o.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},o.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;function A(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(127&e[a]);return r}function x(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var a="",o=t;o<n;++o)a+=j[e[o]];return a}function T(e,t,n){for(var r=e.slice(t,n),a="",o=0;o<r.length;o+=2)a+=String.fromCharCode(r[o]+256*r[o+1]);return a}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,a,i){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function I(e,t,n,r,a,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function O(e,t,n,r,a){return t=+t,n>>>=0,a||I(e,0,n,4),BL(e,t,n,r,23,4),n+4}function R(e,t,n,r,a){return t=+t,n>>>=0,a||I(e,0,n,8),BL(e,t,n,r,52,8),n+8}o.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,o.prototype),r},o.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],a=1,o=0;++o<t&&(a*=256);)r+=this[e+o]*a;return r},o.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e+--t],a=1;t>0&&(a*=256);)r+=this[e+--t]*a;return r},o.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=this[e],a=1,o=0;++o<t&&(a*=256);)r+=this[e+o]*a;return r>=(a*=128)&&(r-=Math.pow(2,8*t)),r},o.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);for(var r=t,a=1,o=this[e+--r];r>0&&(a*=256);)o+=this[e+--r]*a;return o>=(a*=128)&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),FL(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),FL(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),FL(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),FL(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,o=0;for(this[t]=255&e;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},o.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var a=n-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},o.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);N(this,e,t,n,a-1,-a)}var o=0,i=1,s=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+n},o.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);N(this,e,t,n,a-1,-a)}var o=n-1,i=1,s=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,n){return O(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return O(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,r){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var a=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var i=a-1;i>=0;--i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return a},o.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var a=e.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=o.isBuffer(e)?e:o.from(e,r),l=s.length;if(0===l)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=s[i%l]}return this};var F=/[^+/0-9A-Za-z-_]/g;function B(e,t){var n;t=t||1/0;for(var r=e.length,a=null,o=[],i=0;i<r;++i){if((n=e.charCodeAt(i))>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&o.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function L(e){return RL.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function D(e,t,n,r){for(var a=0;a<r&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function _(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function G(e){return e!=e}var j=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,a=0;a<16;++a)t[r+a]=e[n]+e[a];return t}()})),DL=LL.Buffer;function _L(e){return e=e.replace(/-/g,"+").replace(/_/g,"/"),t=e,decodeURIComponent(Array.prototype.map.call(window.atob(t),(e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2))).join(""));var t}function GL(e){return DL.from(e).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function jL(e){if(e.idToken)try{const t=function(e){const t=e.split(".")[1];return fL(JSON.parse(_L(t)))}(e.idToken);return Object.assign(Object.assign({},e),{idTokenPayload:t})}catch(e){uL("ID Token parsing error",e)}return e}function UL(){return GL(window.crypto.getRandomValues(new Uint8Array(32)))}function zL(){const e=UL();return localStorage.setItem("verifier_key",e),function(e){const t=DL.from(e,"utf-8");return new Promise((e=>{window.crypto.subtle.digest("SHA-256",t).then((t=>e(GL(t))))}))}(e).then((e=>({codeChallenge:e,codeChallengeMethod:"S256"})))}function KL(e){const t=sessionStorage.getItem(e);if(!t)return null;try{const n=JSON.parse(t);return(new Date).getTime()>n.expiry?(sessionStorage.removeItem(e),null):n.value}catch(e){return null}}function VL(e,t,n){const r={value:t,expiry:(new Date).getTime()+n};sessionStorage.setItem(e,JSON.stringify(r))}LL.SlowBuffer,LL.INSPECT_MAX_BYTES,LL.kMaxLength,function(e){e.isAuthResult=function(e){return"object"==typeof e&&null!==e&&("accessToken"in e||"idToken"in e||"code"in e)}}(OL||(OL={}));class HL{constructor(e){this.config=e.config,this.http=e.http,this.eventManager=e.eventManager,this.authorizeUrl=`${this.config.baseUrl}/oauth/authorize`,this.customTokenUrl=`${this.config.baseUrl}/identity/v1/custom-token/login`,this.logoutUrl=`${this.config.baseUrl}/identity/v1/logout`,this.revokeUrl=`${this.config.baseUrl}/oauth/revoke`,this.passwordlessVerifyUrl=`${this.config.baseUrl}/identity/v1/passwordless/verify`,this.passwordStrengthUrl=`${this.config.baseUrl}/identity/v1/password/strength`,this.popupRelayUrl=`${this.config.baseUrl}/popup/relay`,this.tokenUrl=`${this.config.baseUrl}/oauth/token`,this.passwordlessVerifyAuthCodeUrl="/verify-auth-code",this.passwordLoginUrl="/password/login",this.passwordlessStartUrl="/passwordless/start",this.sessionInfoUrl="/sso/data",this.signupUrl="/signup",this.signupTokenUrl="/signup-token"}setMfaClient(e){this.mfaClient=e}checkSession(e={}){if(!this.config.sso)return Promise.reject(new Error("Cannot call 'checkSession' if SSO is not enabled."));const t=this.authParams(Object.assign(Object.assign({},e),{responseType:"code",useWebMessage:!0}));return this.isAuthorizationLocked()||this.isSessionLocked()?Promise.reject(new Error("An ongoing authorization flow has not yet completed.")):(this.acquireSessionLock(),this.getPkceParams(t).then((n=>{const r=Object.assign(Object.assign({},t),n),a=this.getAuthorizationUrl(r);return this.getWebMessage(a,this.config.baseUrl,e.redirectUri)})))}exchangeAuthorizationCodeWithPkce(e){return this.http.post(this.tokenUrl,{body:Object.assign({clientId:this.config.clientId,grantType:"authorization_code",codeVerifier:localStorage.getItem("verifier_key")},e)}).then((e=>(this.eventManager.fireEvent("authenticated",e),jL(e)))).finally((()=>{this.releaseAuthorizationLock(),this.releaseSessionLock()}))}getPasswordStrength(e){return this.http.post(this.passwordStrengthUrl,{body:{clientId:this.config.clientId,password:e}})}getSessionInfo(){return this.http.get(this.sessionInfoUrl,{query:{clientId:this.config.clientId}})}loginFromSession(e={}){if(!this.config.sso)return Promise.reject(new Error("Cannot call 'loginFromSession' if SSO is not enabled."));if(this.isAuthorizationLocked()||this.isSessionLocked())return Promise.reject(new Error("An ongoing authorization flow has not yet completed."));this.acquireSessionLock();const t=this.authParams(Object.assign(Object.assign({},e),{useWebMessage:!1}));return this.getPkceParams(t).then((e=>{const n=Object.assign(Object.assign({},t),e);return this.redirectThruAuthorization(n)}))}isPasswordCredential(e){return"password"===e.type}loginWithCredentials(e){if(navigator.credentials&&navigator.credentials.get){const t={password:!0,mediation:e.mediation||"silent"};return navigator.credentials.get(t).then((t=>{if(t&&this.isPasswordCredential(t)){const n={email:t.id,password:t.password||"",auth:e.auth};return this.ropcPasswordLogin(n)}return Promise.reject(new Error("Invalid credentials"))}))}return Promise.reject(new Error("Unsupported Credentials Management API"))}loginWithCustomToken(e){const{token:t,auth:n}=e,r=vL(Object.assign(Object.assign({},this.authParams(n)),{token:t}));window.location.assign(`${this.customTokenUrl}?${r}`)}loginWithPassword(e){const{auth:t={}}=e,n=sL(e,["auth"]);this.acquireAuthorizationLock();return(window.cordova?this.ropcPasswordLogin(e).then((t=>this.storeCredentialsInBrowser(e).then((()=>jL(t))))):this.http.post(this.passwordLoginUrl,{body:Object.assign({clientId:this.config.clientId,scope:wL(t,this.config.scope)},n)}).then((t=>this.storeCredentialsInBrowser(e).then((()=>t)))).then((n=>{var r;return n.mfaRequired?this.mfaClient?null===(r=this.mfaClient)||void 0===r?void 0:r.getMfaStepUpToken({tkn:n.tkn,options:t,action:e.action}).then((e=>({stepUpToken:e.token,amr:e.amr}))):Promise.reject(new Error("Error during client instantiation")):this.loginCallback(n,t)}))).catch((e=>(e.error&&this.eventManager.fireEvent("login_failed",e),Promise.reject(e))))}loginWithSocialProvider(e,t={}){if(this.config.orchestrationToken){const n=Object.assign(Object.assign({},this.orchestratedFlowParams(this.config.orchestrationToken,Object.assign(Object.assign({},t),{useWebMessage:!1}))),{provider:e});return"cordova"in window?this.loginWithCordovaInAppBrowser(n):"popup"===n.display?this.loginWithPopup(n):this.redirectThruAuthorization(n)}{const n=this.authParams(Object.assign(Object.assign({},t),{useWebMessage:!1}),{acceptPopupMode:!0});return this.getPkceParams(n).then((t=>{const r=Object.assign(Object.assign(Object.assign({},n),{provider:e}),t);return"cordova"in window?this.loginWithCordovaInAppBrowser(r):"popup"===r.display?this.loginWithPopup(r):this.redirectThruAuthorization(r)}))}}loginWithIdToken(e,t,n,r={}){const a=this.authParams(Object.assign({},r));if(r.useWebMessage){const o=vL(Object.assign(Object.assign({},a),{provider:e,idToken:t,nonce:n}));return this.getWebMessage(`${this.authorizeUrl}?${o}`,this.config.baseUrl,r.redirectUri).then()}return this.redirectThruAuthorization(Object.assign(Object.assign({},a),{provider:e,idToken:t,nonce:n}))}googleOneTap(e={},t=UL()){const n=DL.from(t,"utf-8");return window.crypto.subtle.digest("SHA-256",n).then((n=>{const r={client_id:this.config.googleClientId,callback:n=>this.loginWithIdToken("google",n.credential,t,e),nonce:GL(n),auto_select:!0};window.google.accounts.id.initialize(r),window.google.accounts.id.prompt()}))}instantiateOneTap(e={}){var t,n;if(null===(t=this.config)||void 0===t?void 0:t.googleClientId){const t=document.createElement("script");t.src="https://accounts.google.com/gsi/client",t.onload=()=>this.googleOneTap(e),t.async=!0,t.defer=!0,null===(n=document.querySelector("body"))||void 0===n||n.appendChild(t)}else uL("Google configuration missing.")}logout(e={},t){return navigator.credentials&&navigator.credentials.preventSilentAccess&&!0===e.removeCredentials&&navigator.credentials.preventSilentAccess(),this.config.isPublic&&t?this.revokeToken(t).then((()=>window.location.assign(`${this.logoutUrl}?${vL(e)}`))):Promise.resolve(window.location.assign(`${this.logoutUrl}?${vL(e)}`))}revokeToken(e){const t=e.tokens.map((e=>this.http.post(this.revokeUrl,{body:{clientId:this.config.clientId,token:e}})));return Promise.all(t)}refreshTokens(e){return this.http.post(this.tokenUrl,{body:Object.assign({clientId:this.config.clientId,grantType:"refresh_token",refreshToken:e.refreshToken},cL(e,"scope"))}).then(jL)}signup(e){const{data:t,auth:n,redirectUrl:r,returnToAfterEmailConfirmation:a,saveCredentials:o,captchaToken:i,captchaProvider:s}=e,{clientId:l}=this.config,u=wL(n,this.config.scope),c=Object.assign(Object.assign({},t.phoneNumber?{phoneNumber:t.phoneNumber}:{email:t.email||""}),{password:t.password,saveCredentials:o,auth:n});return(window.cordova?this.http.post(this.signupTokenUrl,{body:Object.assign(Object.assign({clientId:l,redirectUrl:r,scope:u},cL(n,"origin")),{data:t,returnToAfterEmailConfirmation:a,captchaToken:i,captchaProvider:s})}).then((e=>(this.eventManager.fireEvent("authenticated",e),this.storeCredentialsInBrowser(c).then((()=>jL(e)))))):this.http.post(this.signupUrl,{body:{clientId:l,redirectUrl:r,scope:u,data:t,returnToAfterEmailConfirmation:a,captchaToken:i,captchaProvider:s}}).then((e=>this.storeCredentialsInBrowser(c).then((()=>e)))).then((e=>this.loginCallback(e,n)))).catch((e=>(e.error&&this.eventManager.fireEvent("signup_failed",e),Promise.reject(e))))}startPasswordless(e,t={}){return("stepUp"in e?Promise.resolve(e):this.resolveSingleFactorPasswordlessParams(e,t)).then((e=>this.http.post(this.passwordlessStartUrl,{body:e})))}verifyPasswordless(e,t={}){return"challengeId"in e?Promise.resolve(this.loginWithVerificationCode(e,t)):this.http.post(this.passwordlessVerifyAuthCodeUrl,{body:e}).catch((e=>(e.error&&this.eventManager.fireEvent("login_failed",e),Promise.reject(e)))).then((()=>this.loginWithVerificationCode(e,t)))}getAuthorizationUrl(e){return`${this.authorizeUrl}?${vL(e)}`}getWebMessage(e,t,n){const r=document.createElement("iframe"),a=`wm${UL()}`;return r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","display:none;"),r.setAttribute("id",a),r.setAttribute("src",e),new Promise(((e,a)=>{const o=i=>{if(i.origin!==t)return;const s=fL(i.data);if("authorization_response"!==s.type)return;window.document.body.contains(r)&&window.document.body.removeChild(r);const l=s.response;OL.isAuthResult(l)?l.code?e(this.exchangeAuthorizationCodeWithPkce({code:l.code,redirectUri:n||window.location.origin})):(this.eventManager.fireEvent("authenticated",s.response),e(jL(s.response))):bL.isErrorResponse(l)?a(l):a({error:"unexpected_error",errorDescription:"Unexpected error occurred"}),window.removeEventListener("message",o,!1)};window.addEventListener("message",o,!1),document.body.appendChild(r)})).finally((()=>{this.releaseAuthorizationLock(),this.releaseSessionLock()}))}loginWithPopup(e){const{responseType:t,redirectUri:n,provider:r}=e;return new Promise(((o,i)=>{a.open({url:`${this.authorizeUrl}?${vL(e)}`,relay_url:this.popupRelayUrl,window_features:this.computeProviderPopupOptions(r)},((e,r)=>{if(e)return uL(e),this.eventManager.fireEvent("authentication_failed",{errorDescription:"Unexpected error occurred",error:"server_error"}),i(e);if(r){const e=fL(r);if(!e.success)return this.eventManager.fireEvent("authentication_failed",e.data),i(e.data);o(),"code"===t?window.location.assign(`${n}?code=${e.data.code}`):this.eventManager.fireEvent("authenticated",e.data)}}))}))}computeProviderPopupOptions(e){try{const t=function(e){switch(e){case"amazon":return{width:715,height:525};case"facebook":return{width:650,height:400};case"google":return{width:560,height:630};case"kakaotalk":case"mailru":case"qq":return{width:450,height:400};case"line":return{width:440,height:550};case"twitter":return{width:800,height:440};case"vkontakte":return{width:655,height:430};case"yandex":return{width:655,height:700};default:return{width:400,height:550}}}(e),n=Math.max(0,(screen.width-t.width)/2),r=Math.max(0,(screen.height-t.height)/2),a=Math.min(screen.width,t.width);return`menubar=0,toolbar=0,resizable=1,scrollbars=1,width=${a},height=${Math.min(screen.height,t.height)},top=${r},left=${n}`}catch(e){return"menubar=0,toolbar=0,resizable=1,scrollbars=1,width=960,height=680"}}redirectThruAuthorization(e){const t=this.getAuthorizationUrl(e);return this.releaseAuthorizationLock(),this.releaseSessionLock(),window.location.assign(t),Promise.resolve()}loginWithVerificationCode(e,t={}){const n=vL(Object.assign(Object.assign({},this.authParams(t)),e));return t.useWebMessage?this.http.post(this.passwordlessVerifyUrl,{body:e}).catch((e=>(e.error&&this.eventManager.fireEvent("login_failed",e),Promise.reject(e)))).then((e=>OL.isAuthResult(e)?e.code?this.exchangeAuthorizationCodeWithPkce({code:e.code,redirectUri:t.redirectUri||window.location.origin}):(this.eventManager.fireEvent("authenticated",e),Promise.resolve(jL(e))):bL.isErrorResponse(e)?Promise.reject(e):Promise.reject({error:"unexpected_error",errorDescription:"Unexpected error occurred"}))):(window.location.assign(`${this.passwordlessVerifyUrl}?${n}`),Promise.resolve())}ropcPasswordLogin(e){const t=e.auth;return this.http.post(this.tokenUrl,{body:Object.assign({clientId:this.config.clientId,grantType:"password",username:this.getAuthenticationId(e),password:e.password,scope:wL(t,this.config.scope)},cL(t,"origin"))}).then((e=>(this.eventManager.fireEvent("authenticated",e),jL(e))))}loginWithCordovaInAppBrowser(e){return this.openInCordovaSystemBrowser(this.getAuthorizationUrl(Object.assign(Object.assign({},e),{display:"page"})))}openInCordovaSystemBrowser(e){return this.getAvailableBrowserTabPlugin().then((t=>{if(!window.cordova)return Promise.reject(new Error("Cordova environnement not detected."));if(t)return t.openUrl(e,(()=>{}),uL),Promise.resolve();if(window.cordova.InAppBrowser){const t="ios"===window.cordova.platformId?window.cordova.InAppBrowser.open(e,"_blank"):window.cordova.InAppBrowser.open(e,"_system");return Promise.resolve(t)}return Promise.reject(new Error('Cordova plugin "InAppBrowser" is required.'))}))}getAvailableBrowserTabPlugin(){return new Promise(((e,t)=>{const n=window.cordova;if(!n||!n.plugins||!n.plugins.browsertab)return e(void 0);const r=n.plugins.browsertab;r.isAvailable((t=>e(t?r:void 0)),t)}))}storeCredentialsInBrowser(e){if(!e.saveCredentials)return Promise.resolve();if(navigator.credentials&&navigator.credentials.create&&navigator.credentials.store){const t={password:{password:e.password,id:this.getAuthenticationId(e)}};return navigator.credentials.create(t).then((e=>void 0!==e&&e?navigator.credentials.store(e).then((()=>{})):Promise.resolve()))}return uL("Unsupported Credentials Management API"),Promise.resolve()}resolveSingleFactorPasswordlessParams(e,t={}){const{authType:n,email:r,phoneNumber:a,captchaToken:o,captchaProvider:i}=e;if(this.config.orchestrationToken){const e=this.orchestratedFlowParams(this.config.orchestrationToken,t);return Promise.resolve(Object.assign(Object.assign({},e),{authType:n,email:r,phoneNumber:a,captchaToken:o,captchaProvider:i}))}{const e=this.authParams(t);return this.getPkceParams(e).then((t=>Object.assign(Object.assign(Object.assign({},e),{authType:n,email:r,phoneNumber:a,captchaToken:o,captchaProvider:i}),t)))}}hasLoggedWithEmail(e){return void 0!==e.email}hasLoggedWithPhoneNumber(e){return void 0!==e.phoneNumber}getAuthenticationId(e){return this.hasLoggedWithEmail(e)?e.email:this.hasLoggedWithPhoneNumber(e)?e.phoneNumber:e.customIdentifier}loginCallback(e,t={}){if(this.config.orchestrationToken){const n=Object.assign(Object.assign({},this.orchestratedFlowParams(this.config.orchestrationToken,t)),cL(e,"tkn"));return Promise.resolve().then((()=>this.redirectThruAuthorization(n)))}{const n=this.authParams(t);return this.getPkceParams(n).then((r=>{const a=Object.assign(Object.assign(Object.assign({},n),r),cL(e,"tkn"));return t.useWebMessage?this.getWebMessage(this.getAuthorizationUrl(a),this.config.baseUrl,t.redirectUri):this.redirectThruAuthorization(a)}))}}orchestratedFlowParams(e,t={}){const n=SL(t),r=Object.assign({clientId:this.config.clientId,r5_request_token:e},cL(n,"responseType","redirectUri","persistent","display")),a=(o=Object.keys(n),i=Object.keys(r),o.filter((e=>!i.includes(e))));var o,i;return 0!==a.length&&console.debug("Orchestrated flow: pruned parameters: "+a),r}authParams(e,{acceptPopupMode:t=!1}={}){const n=!this.config.isPublic&&!!e.useWebMessage&&("code"===e.responseType||e.redirectUri)?{responseType:"token",redirectUri:void 0}:{};return Object.assign({clientId:this.config.clientId},SL(Object.assign(Object.assign({},e),n),{acceptPopupMode:t},this.config.scope))}getPkceParams(e){return this.config.isPublic&&"code"===e.responseType?zL():"token"===e.responseType&&this.config.pkceEnforced?Promise.reject(new Error("Cannot use implicit flow when PKCE is enforced")):Promise.resolve({})}acquireAuthorizationLock(){VL("authorize_state","state",2e4)}acquireSessionLock(){VL("session_state","state",2e4)}releaseSessionLock(){sessionStorage.removeItem("session_state")}isSessionLocked(){return null!==KL("session_state")}releaseAuthorizationLock(){sessionStorage.removeItem("authorize_state")}isAuthorizationLocked(){return null!==KL("authorize_state")}}class WL{constructor(){this.listeners={}}fire(e,t){this.getListeners(e).forEach((e=>{try{e(t)}catch(e){uL(e)}}))}on(e,t){this.getListeners(e).push(t)}off(e,t){this.listeners[e]=this.getListeners(e).filter((e=>e!==t))}getListeners(e){let t=this.listeners[e];return t||(t=this.listeners[e]=[]),t}}function ZL(e){return{checkUrlFragment(t){const n=this.parseUrlFragment(t);return OL.isAuthResult(n)?(e.fireEvent("authenticated",n),!0):!!bL.isErrorResponse(n)&&(e.fireEvent("authentication_failed",n),!0)},parseUrlFragment(e=""){const t=e.indexOf("#");if(t>=0){const n=function(e){const t=e.split("&").reduce(((e,t)=>{const[n,r=""]=t.split("=");return n&&n.length?Object.assign(Object.assign({},e),{[n]:decodeURIComponent(r.replace(/\+/g," "))}):e}),{});return fL(t)}(e.substr(t+1)),r=n.expiresIn?parseInt(n.expiresIn,10):void 0;return OL.isAuthResult(n)?Object.assign(Object.assign({},n),{expiresIn:r}):bL.isErrorResponse(n)?n:void 0}}}}function qL(e){function t(t,n){const{method:r="GET",query:a={},body:o,accessToken:i=null}=n,s=a&&(null!=(l=a)&&(Object.keys(l)||l).length)?`${t}?${vL(a)}`:t;var l;return YL(s.startsWith("http")?s:e.baseUrl+s,Object.assign(Object.assign({method:r,headers:Object.assign(Object.assign(Object.assign(Object.assign({},i&&{Authorization:"Bearer "+i}),e.language&&{"Accept-Language":e.language}),e.locale&&{"Custom-Locale":e.locale}),o&&{"Content-Type":"application/json;charset=UTF-8"})},e.acceptCookies&&{credentials:"include"}),o&&{body:JSON.stringify(hL(o))}))}return{get:function(e,n){return t(e,Object.assign(Object.assign({},n),{method:"GET"}))},remove:function(e,n){return t(e,Object.assign(Object.assign({},n),{method:"DELETE"}))},post:function(e,n){return t(e,Object.assign(Object.assign({},n),{method:"POST"}))},request:t}}function YL(e,t){return lL(this,0,void 0,(function*(){const n=yield fetch(e,t);if(204==n.status)return;const r=yield n.json(),a=fL(r);return n.ok?a:Promise.reject(a)}))}class JL{constructor(e){this.http=e.http,this.oAuthClient=e.oAuthClient,this.credentialsUrl="/mfa/credentials",this.emailCredentialUrl=`${this.credentialsUrl}/emails`,this.emailCredentialVerifyUrl=`${this.emailCredentialUrl}/verify`,this.passwordlessVerifyUrl="/passwordless/verify",this.phoneNumberCredentialUrl=`${this.credentialsUrl}/phone-numbers`,this.phoneNumberCredentialVerifyUrl=`${this.phoneNumberCredentialUrl}/verify`,this.stepUpUrl="/mfa/stepup",this.trustedDeviceUrl="/mfa/trusteddevices"}getMfaStepUpToken(e){var t;const n=this.oAuthClient.authParams(null!==(t=e.options)&&void 0!==t?t:{});return this.oAuthClient.getPkceParams(n).then((t=>this.http.post(this.stepUpUrl,{body:Object.assign(Object.assign(Object.assign({},n),{tkn:e.tkn,action:e.action}),t),accessToken:e.accessToken})))}listMfaCredentials(e){return this.http.get(this.credentialsUrl,{accessToken:e})}removeMfaEmail(e){const{accessToken:t}=e;return this.http.remove(this.emailCredentialUrl,{accessToken:t})}removeMfaPhoneNumber(e){const{accessToken:t,phoneNumber:n}=e;return this.http.remove(this.phoneNumberCredentialUrl,{body:{phoneNumber:n},accessToken:t})}startMfaEmailRegistration(e){const{accessToken:t,trustDevice:n=!1,action:r}=e;return this.http.post(this.emailCredentialUrl,{body:{trustDevice:n,action:r},accessToken:t})}startMfaPhoneNumberRegistration(e){const{accessToken:t,phoneNumber:n,trustDevice:r=!1,action:a}=e;return this.http.post(this.phoneNumberCredentialUrl,{body:{phoneNumber:n,trustDevice:r,action:a},accessToken:t})}verifyMfaEmailRegistration(e){const{accessToken:t,verificationCode:n,trustDevice:r=!1}=e;return this.http.post(this.emailCredentialVerifyUrl,{body:{verificationCode:n,trustDevice:r},accessToken:t})}verifyMfaPasswordless(e){const{challengeId:t,verificationCode:n,trustDevice:r}=e;return this.http.post(this.passwordlessVerifyUrl,{body:{challengeId:t,verificationCode:n,trustDevice:r}}).finally((()=>{this.oAuthClient.releaseSessionLock(),this.oAuthClient.releaseAuthorizationLock()}))}verifyMfaPhoneNumberRegistration(e){const{accessToken:t,verificationCode:n,trustDevice:r}=e;return this.http.post(this.phoneNumberCredentialVerifyUrl,{body:{verificationCode:n,trustDevice:r},accessToken:t})}listTrustedDevices(e){return this.http.get(this.trustedDeviceUrl,{accessToken:e})}deleteTrustedDevices(e){const{accessToken:t,trustedDeviceId:n}=e;return this.http.remove(this.trustedDeviceUrl+"/"+n,{accessToken:t})}}class QL{constructor(e){this.config=e.config,this.http=e.http,this.eventManager=e.eventManager,this.sendEmailVerificationUrl="/send-email-verification",this.sendPhoneNumberVerificationUrl="/send-phone-number-verification",this.signupDataUrl="/signup/data",this.unlinkUrl="/unlink",this.updateEmailUrl="/update-email",this.updatePasswordUrl="/update-password",this.updatePhoneNumberUrl="/update-phone-number",this.updateProfileUrl="/update-profile",this.userInfoUrl="/userinfo",this.verifyPhoneNumberUrl="/verify-phone-number",this.verifyEmailUrl="/verify-email"}getSignupData(e){return this.http.get(this.signupDataUrl,{query:{clientId:this.config.clientId,token:e}})}getUser(e){const{accessToken:t,fields:n}=e;return this.http.get(this.userInfoUrl,{query:{fields:n},accessToken:t})}requestAccountRecovery(e){return this.http.post("/account-recovery",{body:Object.assign({clientId:this.config.clientId},e)})}requestPasswordReset(e){return this.http.post("/forgot-password",{body:Object.assign({clientId:this.config.clientId},e)})}sendEmailVerification(e){const{accessToken:t}=e,n=sL(e,["accessToken"]);return this.http.post(this.sendEmailVerificationUrl,{body:Object.assign({},n),accessToken:t})}sendPhoneNumberVerification(e){const{accessToken:t}=e;return this.http.post(this.sendPhoneNumberVerificationUrl,{accessToken:t})}unlink(e){const{accessToken:t}=e,n=sL(e,["accessToken"]);return this.http.post(this.unlinkUrl,{body:n,accessToken:t})}updateEmail(e){const{accessToken:t,email:n,redirectUrl:r,captchaToken:a}=e;return this.http.post(this.updateEmailUrl,{body:{email:n,redirectUrl:r,captchaToken:a},accessToken:t})}updatePhoneNumber(e){const{accessToken:t}=e,n=sL(e,["accessToken"]);return this.http.post(this.updatePhoneNumberUrl,{body:n,accessToken:t})}updateProfile(e){const{accessToken:t,redirectUrl:n,data:r}=e;return this.http.post(this.updateProfileUrl,{body:Object.assign(Object.assign({},r),{redirectUrl:n}),accessToken:t}).then((()=>this.eventManager.fireEvent("profile_updated",r)))}updatePassword(e){const{accessToken:t}=e,n=sL(e,["accessToken"]);return this.http.post(this.updatePasswordUrl,{body:Object.assign({clientId:this.config.clientId},n),accessToken:t})}verifyPhoneNumber(e){const{accessToken:t}=e,n=sL(e,["accessToken"]),{phoneNumber:r}=n;return this.http.post(this.verifyPhoneNumberUrl,{body:n,accessToken:t}).then((()=>this.eventManager.fireEvent("profile_updated",{phoneNumber:r,phoneNumberVerified:!0})))}verifyEmail(e){const{email:t}=e;return this.http.post(this.verifyEmailUrl,{body:e}).then((()=>this.eventManager.fireEvent("profile_updated",{email:t,emailVerified:!0})))}}function XL(e){return Object.assign(Object.assign({},e),{challenge:DL.from(e.challenge,"base64"),user:Object.assign(Object.assign({},e.user),{id:DL.from(e.user.id,"base64")}),excludeCredentials:e.excludeCredentials&&e.excludeCredentials.map((e=>Object.assign(Object.assign({},e),{id:DL.from(e.id,"base64")})))})}function eD(e){const t=e.response;return{id:e.id,rawId:GL(e.rawId),type:"public-key",response:{clientDataJSON:GL(t.clientDataJSON),attestationObject:GL(t.attestationObject),transports:t.getTransports()}}}class tD{constructor(e){this.authenticationOptionsUrl="/webauthn/authentication-options",this.authenticationUrl="/webauthn/authentication",this.registrationOptionsUrl="/webauthn/registration-options",this.registrationUrl="/webauthn/registration",this.resetPasskeysOptionsUrl="/webauthn/reset-options",this.resetPasskeysUrl="/webauthn/reset",this.signupOptionsUrl="/webauthn/signup-options",this.signupUrl="/webauthn/signup",this.config=e.config,this.http=e.http,this.eventManager=e.eventManager,this.oAuthClient=e.oAuthClient,this.authenticationOptionsUrl="/webauthn/authentication-options",this.authenticationUrl="/webauthn/authentication",this.registrationOptionsUrl="/webauthn/registration-options",this.registrationUrl="/webauthn/registration",this.signupOptionsUrl="/webauthn/signup-options",this.signupUrl="/webauthn/signup"}isPublicKeyCredential(e){return"public-key"===e.type}addNewWebAuthnDevice(e,t,n){if(window.PublicKeyCredential){const r={origin:n||window.location.origin,friendlyName:t||window.navigator.platform};return this.http.post(this.registrationOptionsUrl,{body:r,accessToken:e}).then((e=>{const t=XL(e.options.publicKey);return navigator.credentials.create({publicKey:t})})).then((t=>{if(!t||!this.isPublicKeyCredential(t))return Promise.reject(new Error("Unable to register invalid public key credentials."));const n=eD(t);return this.http.post(this.registrationUrl,{body:Object.assign({},n),accessToken:e})})).catch((e=>(e.error&&this.eventManager.fireEvent("login_failed",e),Promise.reject(e))))}return Promise.reject(new Error("Unsupported WebAuthn API"))}resetPasskeys(e){if(window.PublicKeyCredential){const t=Object.assign(Object.assign({},e),{origin:e.webAuthnOrigin||window.location.origin,friendlyName:e.friendlyName||window.navigator.platform});return this.http.post(this.resetPasskeysOptionsUrl,{body:t}).then((e=>{const t=XL(e.options.publicKey);return navigator.credentials.create({publicKey:t})})).then((t=>{if(!t||!this.isPublicKeyCredential(t))return Promise.reject(new Error("Unable to register public key credentials."));const n=eD(t);return this.http.post(this.resetPasskeysUrl,{body:Object.assign(Object.assign({},e),{publicKeyCredential:n})})})).catch((e=>(e.error&&this.eventManager.fireEvent("login_failed",e),Promise.reject(e))))}return Promise.reject(new Error("Unsupported WebAuthn API"))}listWebAuthnDevices(e){return this.http.get(this.registrationUrl,{accessToken:e})}isDiscoverable(e){return void 0!==e.conditionalMediation}buildWebAuthnParams(e){var t,n;const r=this.isDiscoverable(e)?{clientId:this.config.clientId,origin:e.webAuthnOrigin||window.location.origin,scope:wL(e.auth,this.config.scope)}:{clientId:this.config.clientId,origin:e.webAuthnOrigin||window.location.origin,scope:wL(e.auth,this.config.scope),email:e.email,phoneNumber:e.phoneNumber},a=PublicKeyCredential;return(null!==(n=null===(t=a.isConditionalMediationAvailable)||void 0===t?void 0:t.call(a))&&void 0!==n?n:Promise.resolve(!1)).then((e=>({body:r,conditionalMediationAvailable:e})))}loginWithWebAuthn(e){return window.PublicKeyCredential?this.buildWebAuthnParams(e).then((t=>this.isDiscoverable(e)&&!0===e.conditionalMediation&&!t.conditionalMediationAvailable?Promise.reject(new Error("Conditional mediation unavailable")):this.http.post(this.authenticationOptionsUrl,{body:t.body}).then((n=>{const r=(a=n.publicKey,Object.assign(Object.assign({},a),{challenge:DL.from(a.challenge,"base64"),allowCredentials:a.allowCredentials.map((e=>Object.assign(Object.assign({},e),{id:DL.from(e.id,"base64")})))}));var a;return this.isDiscoverable(e)&&!1!==e.conditionalMediation&&t.conditionalMediationAvailable?navigator.credentials.get({publicKey:r,mediation:"conditional",signal:e.signal}):navigator.credentials.get({publicKey:r,signal:e.signal})})).then((t=>{if(!t||!this.isPublicKeyCredential(t))return Promise.reject(new Error("Unable to authenticate with invalid public key credentials."));const n=function(e){const t=e.response;return{id:e.id,rawId:GL(e.rawId),type:"public-key",response:{authenticatorData:GL(t.authenticatorData),clientDataJSON:GL(t.clientDataJSON),signature:GL(t.signature),userHandle:t.userHandle&&GL(t.userHandle)}}}(t);return this.http.post(this.authenticationUrl,{body:Object.assign({},n)}).then((t=>this.oAuthClient.loginCallback(t,e.auth)))})).catch((e=>(e.error&&this.eventManager.fireEvent("login_failed",e),Promise.reject(e)))))):Promise.reject(new Error("Unsupported WebAuthn API"))}removeWebAuthnDevice(e,t){return this.http.remove(`${this.registrationUrl}/${t}`,{accessToken:e})}signupWithWebAuthn(e,t){if(window.PublicKeyCredential){const n={origin:e.webAuthnOrigin||window.location.origin,clientId:this.config.clientId,friendlyName:e.friendlyName||window.navigator.platform,profile:e.profile,scope:wL(t,this.config.scope),redirectUrl:e.redirectUrl,returnToAfterEmailConfirmation:e.returnToAfterEmailConfirmation},r=this.http.post(this.signupOptionsUrl,{body:n}),a=r.then((e=>{const t=XL(e.options.publicKey);return navigator.credentials.create({publicKey:t})}));return Promise.all([r,a]).then((([e,n])=>{if(!n||!this.isPublicKeyCredential(n))return Promise.reject(new Error("Unable to register invalid public key credentials."));const r=eD(n);return this.http.post(this.signupUrl,{body:{publicKeyCredential:r,webauthnId:e.options.publicKey.user.id}}).then((e=>this.oAuthClient.loginCallback(e,t)))})).catch((e=>(e.error&&this.eventManager.fireEvent("login_failed",e),Promise.reject(e))))}return Promise.reject(new Error("Unsupported WebAuthn API"))}}function nD(e,t){const n=e[t];if(null==n)throw new Error(`The reach5 creation config has errors: ${t} is not set`)}function rD(e){nD(e,"domain"),nD(e,"clientId");const{domain:t,clientId:n,googleVariant:r,language:a,locale:o,webAuthnOrigin:i}=e,s=function(){const e=new WL;return{on(t,n){e.on(t,n)},off(t,n){e.off(t,n)},fireEvent(t,n){if("authenticated"===t){const r=jL(n);e.fire(t,r)}else e.fire(t,n)}}}(),l=ZL(s);!function(e){window.cordova&&(window.handleOpenURL||(window.handleOpenURL=t=>{const n=window.cordova;n&&e.checkUrlFragment(t)&&n.plugins&&n.plugins.browsertab&&n.plugins.browsertab.close()}))}(l);const u=`https://${t}`,c=`${u}/identity/v1`,d=YL(`https://${t}/identity/v1/config?${vL({clientId:n,lang:a,googleVariant:r})}`),f=d.then((e=>{const{language:t,sso:r}=e,a=new URLSearchParams(window.location.search).get("r5_request_token")||void 0,i=Object.assign({clientId:n,baseUrl:u,orchestrationToken:a},e),l=qL({baseUrl:c,language:t,acceptCookies:r,locale:o}),d=new HL({config:i,http:l,eventManager:s}),f=new JL({http:l,oAuthClient:d});return d.setMfaClient(f),{oAuth:d,mfa:f,webAuthn:new tD({config:i,http:l,eventManager:s,oAuthClient:d}),profile:new QL({config:i,http:l,eventManager:s})}}));function h(e=window.location.href){const t=l.checkUrlFragment(e);return t&&e===window.location.href&&(window.location.hash=""),t}return{addNewWebAuthnDevice:function(e,t){return f.then((n=>n.webAuthn.addNewWebAuthnDevice(e,t,i)))},checkSession:function(e={}){return f.then((t=>t.oAuth.checkSession(e)))},checkUrlFragment:h,exchangeAuthorizationCodeWithPkce:function(e){return f.then((t=>t.oAuth.exchangeAuthorizationCodeWithPkce(e)))},getMfaStepUpToken:function(e){return f.then((t=>t.mfa.getMfaStepUpToken(e)))},getPasswordStrength:function(e){return f.then((t=>t.oAuth.getPasswordStrength(e)))},getSessionInfo:function(){return f.then((e=>e.oAuth.getSessionInfo()))},getSignupData:function(e){return f.then((t=>t.profile.getSignupData(e)))},getUser:function(e){return f.then((t=>t.profile.getUser(e)))},listMfaCredentials:function(e){return f.then((t=>t.mfa.listMfaCredentials(e)))},listTrustedDevices:function(e){return f.then((t=>t.mfa.listTrustedDevices(e)))},listWebAuthnDevices:function(e){return f.then((t=>t.webAuthn.listWebAuthnDevices(e)))},loginFromSession:function(e={}){return f.then((t=>t.oAuth.loginFromSession(e)))},loginWithCredentials:function(e){return f.then((t=>t.oAuth.loginWithCredentials(e)))},loginWithCustomToken:function(e){return f.then((t=>t.oAuth.loginWithCustomToken(e)))},loginWithPassword:function(e){return f.then((t=>t.oAuth.loginWithPassword(e)))},instantiateOneTap:function(e={}){return f.then((t=>t.oAuth.instantiateOneTap(e)))},loginWithSocialProvider:function(e,t={}){return f.then((n=>n.oAuth.loginWithSocialProvider(e,t)))},loginWithWebAuthn:function(e){return f.then((t=>t.webAuthn.loginWithWebAuthn(Object.assign(Object.assign({},e),{webAuthnOrigin:i}))))},logout:function(e={},t){return f.then((n=>n.oAuth.logout(e,t)))},off:function(e,t){return s.off(e,t)},on:function(e,t){s.on(e,t),"authenticated"!==e&&"authentication_failed"!==e||setTimeout((()=>h()),0)},refreshTokens:function(e){return f.then((t=>t.oAuth.refreshTokens(e)))},remoteSettings:d,removeMfaEmail:function(e){return f.then((t=>t.mfa.removeMfaEmail(e)))},removeMfaPhoneNumber:function(e){return f.then((t=>t.mfa.removeMfaPhoneNumber(e)))},removeTrustedDevice:function(e){return f.then((t=>t.mfa.deleteTrustedDevices(e)))},removeWebAuthnDevice:function(e,t){return f.then((n=>n.webAuthn.removeWebAuthnDevice(e,t)))},requestAccountRecovery:function(e){return f.then((t=>t.profile.requestAccountRecovery(e)))},resetPasskeys:function(e){return f.then((t=>t.webAuthn.resetPasskeys(Object.assign(Object.assign({},e),{webAuthnOrigin:i}))))},requestPasswordReset:function(e){return f.then((t=>t.profile.requestPasswordReset(e)))},sendEmailVerification:function(e){return f.then((t=>t.profile.sendEmailVerification(e)))},sendPhoneNumberVerification:function(e){return f.then((t=>t.profile.sendPhoneNumberVerification(e)))},signup:function(e){return f.then((t=>t.oAuth.signup(e)))},signupWithWebAuthn:function(e,t){return f.then((n=>n.webAuthn.signupWithWebAuthn(Object.assign(Object.assign({},e),{webAuthnOrigin:i}),t)))},startMfaEmailRegistration:function(e){return f.then((t=>t.mfa.startMfaEmailRegistration(e)))},startMfaPhoneNumberRegistration:function(e){return f.then((t=>t.mfa.startMfaPhoneNumberRegistration(e)))},startPasswordless:function(e,t={}){return f.then((n=>n.oAuth.startPasswordless(e,t)))},unlink:function(e){return f.then((t=>t.profile.unlink(e)))},updateEmail:function(e){return f.then((t=>t.profile.updateEmail(e)))},updatePassword:function(e){return f.then((t=>t.profile.updatePassword(e)))},updatePhoneNumber:function(e){return f.then((t=>t.profile.updatePhoneNumber(e)))},updateProfile:function(e){return f.then((t=>t.profile.updateProfile(e)))},verifyEmail:function(e){return f.then((t=>t.profile.verifyEmail(e)))},verifyMfaEmailRegistration:function(e){return f.then((t=>t.mfa.verifyMfaEmailRegistration(e)))},verifyMfaPasswordless:function(e){return f.then((t=>t.mfa.verifyMfaPasswordless(e)))},verifyMfaPhoneNumberRegistration:function(e){return f.then((t=>t.mfa.verifyMfaPhoneNumberRegistration(e)))},verifyPasswordless:function(e,t){return f.then((n=>n.oAuth.verifyPasswordless(e,t)))},verifyPhoneNumber:function(e){return f.then((t=>t.profile.verifyPhoneNumber(e)))}}}var aD={exports:{}},oD={},iD=Symbol.for("react.element"),sD=Symbol.for("react.portal"),lD=Symbol.for("react.fragment"),uD=Symbol.for("react.strict_mode"),cD=Symbol.for("react.profiler"),dD=Symbol.for("react.provider"),fD=Symbol.for("react.context"),hD=Symbol.for("react.forward_ref"),pD=Symbol.for("react.suspense"),gD=Symbol.for("react.memo"),mD=Symbol.for("react.lazy"),vD=Symbol.iterator;var yD={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bD=Object.assign,wD={};function CD(e,t,n){this.props=e,this.context=t,this.refs=wD,this.updater=n||yD}function SD(){}function ED(e,t,n){this.props=e,this.context=t,this.refs=wD,this.updater=n||yD}CD.prototype.isReactComponent={},CD.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},CD.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},SD.prototype=CD.prototype;var kD=ED.prototype=new SD;kD.constructor=ED,bD(kD,CD.prototype),kD.isPureReactComponent=!0;var $D=Array.isArray,AD=Object.prototype.hasOwnProperty,xD={current:null},MD={key:!0,ref:!0,__self:!0,__source:!0};function TD(e,t,n){var r,a={},o=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(o=""+t.key),t)AD.call(t,r)&&!MD.hasOwnProperty(r)&&(a[r]=t[r]);var s=arguments.length-2;if(1===s)a.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===a[r]&&(a[r]=s[r]);return{$$typeof:iD,type:e,key:o,ref:i,props:a,_owner:xD.current}}function PD(e){return"object"==typeof e&&null!==e&&e.$$typeof===iD}var ND=/\/+/g;function ID(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function OD(e,t,n,r,a){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var i=!1;if(null===e)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case iD:case sD:i=!0}}if(i)return a=a(i=e),e=""===r?"."+ID(i,0):r,$D(a)?(n="",null!=e&&(n=e.replace(ND,"$&/")+"/"),OD(a,t,n,"",(function(e){return e}))):null!=a&&(PD(a)&&(a=function(e,t){return{$$typeof:iD,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||i&&i.key===a.key?"":(""+a.key).replace(ND,"$&/")+"/")+e)),t.push(a)),1;if(i=0,r=""===r?".":r+":",$D(e))for(var s=0;s<e.length;s++){var l=r+ID(o=e[s],s);i+=OD(o,t,n,l,a)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=vD&&e[vD]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),s=0;!(o=e.next()).done;)i+=OD(o=o.value,t,n,l=r+ID(o,s++),a);else if("object"===o)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function RD(e,t,n){if(null==e)return e;var r=[],a=0;return OD(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function FD(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var BD={current:null},LD={transition:null},DD={ReactCurrentDispatcher:BD,ReactCurrentBatchConfig:LD,ReactCurrentOwner:xD};function _D(){throw Error("act(...) is not supported in production builds of React.")}oD.Children={map:RD,forEach:function(e,t,n){RD(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return RD(e,(function(){t++})),t},toArray:function(e){return RD(e,(function(e){return e}))||[]},only:function(e){if(!PD(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},oD.Component=CD,oD.Fragment=lD,oD.Profiler=cD,oD.PureComponent=ED,oD.StrictMode=uD,oD.Suspense=pD,oD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=DD,oD.act=_D,oD.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=bD({},e.props),a=e.key,o=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,i=xD.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)AD.call(t,l)&&!MD.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:iD,type:e.type,key:a,ref:o,props:r,_owner:i}},oD.createContext=function(e){return(e={$$typeof:fD,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:dD,_context:e},e.Consumer=e},oD.createElement=TD,oD.createFactory=function(e){var t=TD.bind(null,e);return t.type=e,t},oD.createRef=function(){return{current:null}},oD.forwardRef=function(e){return{$$typeof:hD,render:e}},oD.isValidElement=PD,oD.lazy=function(e){return{$$typeof:mD,_payload:{_status:-1,_result:e},_init:FD}},oD.memo=function(e,t){return{$$typeof:gD,type:e,compare:void 0===t?null:t}},oD.startTransition=function(e){var t=LD.transition;LD.transition={};try{e()}finally{LD.transition=t}},oD.unstable_act=_D,oD.useCallback=function(e,t){return BD.current.useCallback(e,t)},oD.useContext=function(e){return BD.current.useContext(e)},oD.useDebugValue=function(){},oD.useDeferredValue=function(e){return BD.current.useDeferredValue(e)},oD.useEffect=function(e,t){return BD.current.useEffect(e,t)},oD.useId=function(){return BD.current.useId()},oD.useImperativeHandle=function(e,t,n){return BD.current.useImperativeHandle(e,t,n)},oD.useInsertionEffect=function(e,t){return BD.current.useInsertionEffect(e,t)},oD.useLayoutEffect=function(e,t){return BD.current.useLayoutEffect(e,t)},oD.useMemo=function(e,t){return BD.current.useMemo(e,t)},oD.useReducer=function(e,t,n){return BD.current.useReducer(e,t,n)},oD.useRef=function(e){return BD.current.useRef(e)},oD.useState=function(e){return BD.current.useState(e)},oD.useSyncExternalStore=function(e,t,n){return BD.current.useSyncExternalStore(e,t,n)},oD.useTransition=function(){return BD.current.useTransition()},oD.version="18.3.1",aD.exports=oD;var GD=aD.exports,jD=n(GD),UD=t({__proto__:null,default:jD},[GD]),zD={exports:{}},KD={},VD={exports:{}},HD={};
|
|
11
11
|
/**
|
|
12
12
|
* @license React
|
|
13
13
|
* scheduler.production.min.js
|