commerce-sdk-isomorphic 4.1.0 → 4.2.0
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/README.md +1 -114
- package/lib/index.cjs.d.ts +1320 -169
- package/lib/index.cjs.js +1 -1
- package/lib/index.esm.d.ts +1320 -169
- package/lib/index.esm.js +1 -1
- package/package.json +24 -91
- package/lib/clientConfig.cjs.d.ts +0 -54
- package/lib/clientConfig.cjs.js +0 -1
- package/lib/clientConfig.d.ts +0 -54
- package/lib/clientConfig.js +0 -1
- package/lib/config.cjs.d.ts +0 -2
- package/lib/config.cjs.js +0 -1
- package/lib/config.d.ts +0 -2
- package/lib/config.js +0 -1
- package/lib/helpers.cjs.d.ts +0 -2225
- package/lib/helpers.cjs.js +0 -1
- package/lib/helpers.d.ts +0 -2225
- package/lib/helpers.js +0 -1
- package/lib/responseError.cjs.d.ts +0 -12
- package/lib/responseError.cjs.js +0 -1
- package/lib/responseError.d.ts +0 -12
- package/lib/responseError.js +0 -1
- package/lib/shopperBaskets.cjs.d.ts +0 -10264
- package/lib/shopperBaskets.cjs.js +0 -1
- package/lib/shopperBaskets.d.ts +0 -10264
- package/lib/shopperBaskets.js +0 -1
- package/lib/shopperBasketsv2.cjs.d.ts +0 -10458
- package/lib/shopperBasketsv2.cjs.js +0 -1
- package/lib/shopperBasketsv2.d.ts +0 -10458
- package/lib/shopperBasketsv2.js +0 -1
- package/lib/shopperConsents.cjs.d.ts +0 -1147
- package/lib/shopperConsents.cjs.js +0 -1
- package/lib/shopperConsents.d.ts +0 -1147
- package/lib/shopperConsents.js +0 -1
- package/lib/shopperContext.cjs.d.ts +0 -1406
- package/lib/shopperContext.cjs.js +0 -1
- package/lib/shopperContext.d.ts +0 -1406
- package/lib/shopperContext.js +0 -1
- package/lib/shopperCustomers.cjs.d.ts +0 -12190
- package/lib/shopperCustomers.cjs.js +0 -1
- package/lib/shopperCustomers.d.ts +0 -12190
- package/lib/shopperCustomers.js +0 -1
- package/lib/shopperExperience.cjs.d.ts +0 -1174
- package/lib/shopperExperience.cjs.js +0 -1
- package/lib/shopperExperience.d.ts +0 -1174
- package/lib/shopperExperience.js +0 -1
- package/lib/shopperGiftCertificates.cjs.d.ts +0 -734
- package/lib/shopperGiftCertificates.cjs.js +0 -1
- package/lib/shopperGiftCertificates.d.ts +0 -734
- package/lib/shopperGiftCertificates.js +0 -1
- package/lib/shopperLogin.cjs.d.ts +0 -3847
- package/lib/shopperLogin.cjs.js +0 -1
- package/lib/shopperLogin.d.ts +0 -3847
- package/lib/shopperLogin.js +0 -1
- package/lib/shopperOrders.cjs.d.ts +0 -5398
- package/lib/shopperOrders.cjs.js +0 -1
- package/lib/shopperOrders.d.ts +0 -5398
- package/lib/shopperOrders.js +0 -1
- package/lib/shopperProducts.cjs.d.ts +0 -3484
- package/lib/shopperProducts.cjs.js +0 -1
- package/lib/shopperProducts.d.ts +0 -3484
- package/lib/shopperProducts.js +0 -1
- package/lib/shopperPromotions.cjs.d.ts +0 -1006
- package/lib/shopperPromotions.cjs.js +0 -1
- package/lib/shopperPromotions.d.ts +0 -1006
- package/lib/shopperPromotions.js +0 -1
- package/lib/shopperSearch.cjs.d.ts +0 -3357
- package/lib/shopperSearch.cjs.js +0 -1
- package/lib/shopperSearch.d.ts +0 -3357
- package/lib/shopperSearch.js +0 -1
- package/lib/shopperSeo.cjs.d.ts +0 -774
- package/lib/shopperSeo.cjs.js +0 -1
- package/lib/shopperSeo.d.ts +0 -774
- package/lib/shopperSeo.js +0 -1
- package/lib/shopperStores.cjs.d.ts +0 -1294
- package/lib/shopperStores.cjs.js +0 -1
- package/lib/shopperStores.d.ts +0 -1294
- package/lib/shopperStores.js +0 -1
- package/lib/templateUrl.cjs.d.ts +0 -76
- package/lib/templateUrl.cjs.js +0 -1
- package/lib/templateUrl.d.ts +0 -76
- package/lib/templateUrl.js +0 -1
- package/lib/version.cjs.d.ts +0 -3
- package/lib/version.cjs.js +0 -1
- package/lib/version.d.ts +0 -3
- package/lib/version.js +0 -1
package/lib/helpers.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{customRandom as e,urlAlphabet as t}from"nanoid";import r from"seedrandom";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}var o,a,s=function(e){return e&&e.Math==Math&&e},c=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof n&&n)||function(){return this}()||Function("return this")(),u=function(e){try{return!!e()}catch(e){return!0}},f=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!u((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),d=Function.prototype.call,h=l?d.bind(d):function(){return d.apply(d,arguments)},p={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,v={f:g&&!p.call({1:2},1)?function(e){var t=g(this,e);return!!t&&t.enumerable}:p},y=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},m=Function.prototype,b=m.bind,w=m.call,k=l&&b.bind(w,w),x=l?function(e){return e&&k(e)}:function(e){return e&&function(){return w.apply(e,arguments)}},_=x({}.toString),I=x("".slice),O=function(e){return I(_(e),8,-1)},C=Object,S=x("".split),P=u((function(){return!C("z").propertyIsEnumerable(0)}))?function(e){return"String"==O(e)?S(e,""):C(e)}:C,T=TypeError,z=function(e){if(null==e)throw T("Can't call method on "+e);return e},A=function(e){return P(z(e))},E=function(e){return"function"==typeof e},j=function(e){return"object"==typeof e?null!==e:E(e)},R=function(e){return E(e)?e:void 0},U=function(e,t){return arguments.length<2?R(c[e]):c[e]&&c[e][t]},L=x({}.isPrototypeOf),q=U("navigator","userAgent")||"",M=c.process,B=c.Deno,F=M&&M.versions||B&&B.version,N=F&&F.v8;N&&(a=(o=N.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!a&&q&&(!(o=q.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=q.match(/Chrome\/(\d+)/))&&(a=+o[1]);var W=a,D=!!Object.getOwnPropertySymbols&&!u((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&W&&W<41})),G=D&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,H=Object,V=G?function(e){return"symbol"==typeof e}:function(e){var t=U("Symbol");return E(t)&&L(t.prototype,H(e))},$=String,Y=function(e){try{return $(e)}catch(e){return"Object"}},J=TypeError,K=function(e){if(E(e))return e;throw J(Y(e)+" is not a function")},Q=function(e,t){var r=e[t];return null==r?void 0:K(r)},X=TypeError,Z=Object.defineProperty,ee=function(e,t){try{Z(c,e,{value:t,configurable:!0,writable:!0})}catch(r){c[e]=t}return t},te=c["__core-js_shared__"]||ee("__core-js_shared__",{}),re=i((function(e){(e.exports=function(e,t){return te[e]||(te[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.4",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.4/LICENSE",source:"https://github.com/zloirock/core-js"})})),ne=Object,ie=function(e){return ne(z(e))},oe=x({}.hasOwnProperty),ae=Object.hasOwn||function(e,t){return oe(ie(e),t)},se=0,ce=Math.random(),ue=x(1..toString),fe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ue(++se+ce,36)},le=re("wks"),de=c.Symbol,he=de&&de.for,pe=G?de:de&&de.withoutSetter||fe,ge=function(e){if(!ae(le,e)||!D&&"string"!=typeof le[e]){var t="Symbol."+e;D&&ae(de,e)?le[e]=de[e]:le[e]=G&&he?he(t):pe(t)}return le[e]},ve=TypeError,ye=ge("toPrimitive"),me=function(e,t){if(!j(e)||V(e))return e;var r,n=Q(e,ye);if(n){if(void 0===t&&(t="default"),r=h(n,e,t),!j(r)||V(r))return r;throw ve("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&E(r=e.toString)&&!j(n=h(r,e)))return n;if(E(r=e.valueOf)&&!j(n=h(r,e)))return n;if("string"!==t&&E(r=e.toString)&&!j(n=h(r,e)))return n;throw X("Can't convert object to primitive value")}(e,t)},be=function(e){var t=me(e,"string");return V(t)?t:t+""},we=c.document,ke=j(we)&&j(we.createElement),xe=function(e){return ke?we.createElement(e):{}},_e=!f&&!u((function(){return 7!=Object.defineProperty(xe("div"),"a",{get:function(){return 7}}).a})),Ie=Object.getOwnPropertyDescriptor,Oe={f:f?Ie:function(e,t){if(e=A(e),t=be(t),_e)try{return Ie(e,t)}catch(e){}if(ae(e,t))return y(!h(v.f,e,t),e[t])}},Ce=f&&u((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Se=String,Pe=TypeError,Te=function(e){if(j(e))return e;throw Pe(Se(e)+" is not an object")},ze=TypeError,Ae=Object.defineProperty,Ee=Object.getOwnPropertyDescriptor,je={f:f?Ce?function(e,t,r){if(Te(e),t=be(t),Te(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=Ee(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return Ae(e,t,r)}:Ae:function(e,t,r){if(Te(e),t=be(t),Te(r),_e)try{return Ae(e,t,r)}catch(e){}if("get"in r||"set"in r)throw ze("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Re=f?function(e,t,r){return je.f(e,t,y(1,r))}:function(e,t,r){return e[t]=r,e},Ue=Function.prototype,Le=f&&Object.getOwnPropertyDescriptor,qe=ae(Ue,"name"),Me={EXISTS:qe,PROPER:qe&&"something"===function(){}.name,CONFIGURABLE:qe&&(!f||f&&Le(Ue,"name").configurable)},Be=x(Function.toString);E(te.inspectSource)||(te.inspectSource=function(e){return Be(e)});var Fe,Ne,We,De=te.inspectSource,Ge=c.WeakMap,He=E(Ge)&&/native code/.test(De(Ge)),Ve=re("keys"),$e=function(e){return Ve[e]||(Ve[e]=fe(e))},Ye={},Je=c.TypeError,Ke=c.WeakMap;if(He||te.state){var Qe=te.state||(te.state=new Ke),Xe=x(Qe.get),Ze=x(Qe.has),et=x(Qe.set);Fe=function(e,t){if(Ze(Qe,e))throw new Je("Object already initialized");return t.facade=e,et(Qe,e,t),t},Ne=function(e){return Xe(Qe,e)||{}},We=function(e){return Ze(Qe,e)}}else{var tt=$e("state");Ye[tt]=!0,Fe=function(e,t){if(ae(e,tt))throw new Je("Object already initialized");return t.facade=e,Re(e,tt,t),t},Ne=function(e){return ae(e,tt)?e[tt]:{}},We=function(e){return ae(e,tt)}}var rt={set:Fe,get:Ne,has:We,enforce:function(e){return We(e)?Ne(e):Fe(e,{})},getterFor:function(e){return function(t){var r;if(!j(t)||(r=Ne(t)).type!==e)throw Je("Incompatible receiver, "+e+" required");return r}}},nt=i((function(e){var t=Me.CONFIGURABLE,r=rt.enforce,n=rt.get,i=Object.defineProperty,o=f&&!u((function(){return 8!==i((function(){}),"length",{value:8}).length})),a=String(String).split("String"),s=e.exports=function(e,n,s){"Symbol("===String(n).slice(0,7)&&(n="["+String(n).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(n="get "+n),s&&s.setter&&(n="set "+n),(!ae(e,"name")||t&&e.name!==n)&&(f?i(e,"name",{value:n,configurable:!0}):e.name=n),o&&s&&ae(s,"arity")&&e.length!==s.arity&&i(e,"length",{value:s.arity});try{s&&ae(s,"constructor")&&s.constructor?f&&i(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var c=r(e);return ae(c,"source")||(c.source=a.join("string"==typeof n?n:"")),e};Function.prototype.toString=s((function(){return E(this)&&n(this).source||De(this)}),"toString")})),it=function(e,t,r,n){n||(n={});var i=n.enumerable,o=void 0!==n.name?n.name:t;if(E(r)&&nt(r,o,n),n.global)i?e[t]=r:ee(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=r:je.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},ot=Math.ceil,at=Math.floor,st=Math.trunc||function(e){var t=+e;return(t>0?at:ot)(t)},ct=function(e){var t=+e;return t!=t||0===t?0:st(t)},ut=Math.max,ft=Math.min,lt=function(e,t){var r=ct(e);return r<0?ut(r+t,0):ft(r,t)},dt=Math.min,ht=function(e){return e>0?dt(ct(e),9007199254740991):0},pt=function(e){return ht(e.length)},gt=function(e){return function(t,r,n){var i,o=A(t),a=pt(o),s=lt(n,a);if(e&&r!=r){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},vt={includes:gt(!0),indexOf:gt(!1)},yt=vt.indexOf,mt=x([].push),bt=function(e,t){var r,n=A(e),i=0,o=[];for(r in n)!ae(Ye,r)&&ae(n,r)&&mt(o,r);for(;t.length>i;)ae(n,r=t[i++])&&(~yt(o,r)||mt(o,r));return o},wt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],kt=wt.concat("length","prototype"),xt={f:Object.getOwnPropertyNames||function(e){return bt(e,kt)}},_t={f:Object.getOwnPropertySymbols},It=x([].concat),Ot=U("Reflect","ownKeys")||function(e){var t=xt.f(Te(e)),r=_t.f;return r?It(t,r(e)):t},Ct=function(e,t,r){for(var n=Ot(t),i=je.f,o=Oe.f,a=0;a<n.length;a++){var s=n[a];ae(e,s)||r&&ae(r,s)||i(e,s,o(t,s))}},St=/#|\.prototype\./,Pt=function(e,t){var r=zt[Tt(e)];return r==Et||r!=At&&(E(t)?u(t):!!t)},Tt=Pt.normalize=function(e){return String(e).replace(St,".").toLowerCase()},zt=Pt.data={},At=Pt.NATIVE="N",Et=Pt.POLYFILL="P",jt=Pt,Rt=Oe.f,Ut=function(e,t){var r,n,i,o,a,s=e.target,u=e.global,f=e.stat;if(r=u?c:f?c[s]||ee(s,{}):(c[s]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(a=Rt(r,n))&&a.value:r[n],!jt(u?n:s+(f?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;Ct(o,i)}(e.sham||i&&i.sham)&&Re(o,"sham",!0),it(r,n,o,e)}};Ut({global:!0},{globalThis:c});var Lt={};Lt[ge("toStringTag")]="z";var qt="[object z]"===String(Lt),Mt=ge("toStringTag"),Bt=Object,Ft="Arguments"==O(function(){return arguments}()),Nt=qt?O:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Bt(e),Mt))?r:Ft?O(t):"Object"==(n=O(t))&&E(t.callee)?"Arguments":n},Wt=qt?{}.toString:function(){return"[object "+Nt(this)+"]"};qt||it(Object.prototype,"toString",Wt,{unsafe:!0});var Dt="process"==O(c.process),Gt=String,Ht=TypeError,Vt=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=x(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Te(r),function(e){if("object"==typeof e||E(e))return e;throw Ht("Can't set "+Gt(e)+" as a prototype")}(n),t?e(r,n):r.__proto__=n,r}}():void 0),$t=je.f,Yt=ge("toStringTag"),Jt=function(e,t,r){e&&!r&&(e=e.prototype),e&&!ae(e,Yt)&&$t(e,Yt,{configurable:!0,value:t})},Kt=ge("species"),Qt=function(e){var t=U(e),r=je.f;f&&t&&!t[Kt]&&r(t,Kt,{configurable:!0,get:function(){return this}})},Xt=TypeError,Zt=function(e,t){if(L(t,e))return e;throw Xt("Incorrect invocation")},er=function(){},tr=[],rr=U("Reflect","construct"),nr=/^\s*(?:class|function)\b/,ir=x(nr.exec),or=!nr.exec(er),ar=function(e){if(!E(e))return!1;try{return rr(er,tr,e),!0}catch(e){return!1}},sr=function(e){if(!E(e))return!1;switch(Nt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return or||!!ir(nr,De(e))}catch(e){return!0}};sr.sham=!0;var cr,ur,fr,lr,dr=!rr||u((function(){var e;return ar(ar.call)||!ar(Object)||!ar((function(){e=!0}))||e}))?sr:ar,hr=TypeError,pr=function(e){if(dr(e))return e;throw hr(Y(e)+" is not a constructor")},gr=ge("species"),vr=function(e,t){var r,n=Te(e).constructor;return void 0===n||null==(r=Te(n)[gr])?t:pr(r)},yr=Function.prototype,mr=yr.apply,br=yr.call,wr="object"==typeof Reflect&&Reflect.apply||(l?br.bind(mr):function(){return br.apply(mr,arguments)}),kr=x(x.bind),xr=function(e,t){return K(e),void 0===t?e:l?kr(e,t):function(){return e.apply(t,arguments)}},_r=U("document","documentElement"),Ir=x([].slice),Or=TypeError,Cr=function(e,t){if(e<t)throw Or("Not enough arguments");return e},Sr=/(?:ipad|iphone|ipod).*applewebkit/i.test(q),Pr=c.setImmediate,Tr=c.clearImmediate,zr=c.process,Ar=c.Dispatch,Er=c.Function,jr=c.MessageChannel,Rr=c.String,Ur=0,Lr={};try{cr=c.location}catch(e){}var qr=function(e){if(ae(Lr,e)){var t=Lr[e];delete Lr[e],t()}},Mr=function(e){return function(){qr(e)}},Br=function(e){qr(e.data)},Fr=function(e){c.postMessage(Rr(e),cr.protocol+"//"+cr.host)};Pr&&Tr||(Pr=function(e){Cr(arguments.length,1);var t=E(e)?e:Er(e),r=Ir(arguments,1);return Lr[++Ur]=function(){wr(t,void 0,r)},ur(Ur),Ur},Tr=function(e){delete Lr[e]},Dt?ur=function(e){zr.nextTick(Mr(e))}:Ar&&Ar.now?ur=function(e){Ar.now(Mr(e))}:jr&&!Sr?(lr=(fr=new jr).port2,fr.port1.onmessage=Br,ur=xr(lr.postMessage,lr)):c.addEventListener&&E(c.postMessage)&&!c.importScripts&&cr&&"file:"!==cr.protocol&&!u(Fr)?(ur=Fr,c.addEventListener("message",Br,!1)):ur="onreadystatechange"in xe("script")?function(e){_r.appendChild(xe("script")).onreadystatechange=function(){_r.removeChild(this),qr(e)}}:function(e){setTimeout(Mr(e),0)});var Nr,Wr,Dr,Gr,Hr,Vr,$r,Yr,Jr={set:Pr,clear:Tr},Kr=/ipad|iphone|ipod/i.test(q)&&void 0!==c.Pebble,Qr=/web0s(?!.*chrome)/i.test(q),Xr=Oe.f,Zr=Jr.set,en=c.MutationObserver||c.WebKitMutationObserver,tn=c.document,rn=c.process,nn=c.Promise,on=Xr(c,"queueMicrotask"),an=on&&on.value;an||(Nr=function(){var e,t;for(Dt&&(e=rn.domain)&&e.exit();Wr;){t=Wr.fn,Wr=Wr.next;try{t()}catch(e){throw Wr?Gr():Dr=void 0,e}}Dr=void 0,e&&e.enter()},Sr||Dt||Qr||!en||!tn?!Kr&&nn&&nn.resolve?(($r=nn.resolve(void 0)).constructor=nn,Yr=xr($r.then,$r),Gr=function(){Yr(Nr)}):Dt?Gr=function(){rn.nextTick(Nr)}:(Zr=xr(Zr,c),Gr=function(){Zr(Nr)}):(Hr=!0,Vr=tn.createTextNode(""),new en(Nr).observe(Vr,{characterData:!0}),Gr=function(){Vr.data=Hr=!Hr}));var sn=an||function(e){var t={fn:e,next:void 0};Dr&&(Dr.next=t),Wr||(Wr=t,Gr()),Dr=t},cn=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},un=function(){this.head=null,this.tail=null};un.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var fn=un,ln=c.Promise,dn="object"==typeof window&&"object"!=typeof Deno;ln&&ln.prototype;var hn,pn,gn,vn=ge("species"),yn=!1,mn=E(c.PromiseRejectionEvent),bn={CONSTRUCTOR:jt("Promise",(function(){var e=De(ln),t=e!==String(ln);if(!t&&66===W)return!0;if(W>=51&&/native code/.test(e))return!1;var r=new ln((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(r.constructor={})[vn]=n,!(yn=r.then((function(){}))instanceof n)||!t&&dn&&!mn})),REJECTION_EVENT:mn,SUBCLASSING:yn},wn=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=K(t),this.reject=K(r)},kn={f:function(e){return new wn(e)}},xn=Jr.set,_n=bn.CONSTRUCTOR,In=bn.REJECTION_EVENT,On=bn.SUBCLASSING,Cn=rt.getterFor("Promise"),Sn=rt.set,Pn=ln&&ln.prototype,Tn=ln,zn=Pn,An=c.TypeError,En=c.document,jn=c.process,Rn=kn.f,Un=Rn,Ln=!!(En&&En.createEvent&&c.dispatchEvent),qn=function(e){var t;return!(!j(e)||!E(t=e.then))&&t},Mn=function(e,t){var r,n,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,c=e.resolve,u=e.reject,f=e.domain;try{s?(a||(2===t.rejection&&Dn(t),t.rejection=1),!0===s?r=o:(f&&f.enter(),r=s(o),f&&(f.exit(),i=!0)),r===e.promise?u(An("Promise-chain cycle")):(n=qn(r))?h(n,r,c,u):c(r)):u(o)}catch(e){f&&!i&&f.exit(),u(e)}},Bn=function(e,t){e.notified||(e.notified=!0,sn((function(){for(var r,n=e.reactions;r=n.get();)Mn(r,e);e.notified=!1,t&&!e.rejection&&Nn(e)})))},Fn=function(e,t,r){var n,i;Ln?((n=En.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},!In&&(i=c["on"+e])?i(n):"unhandledrejection"===e&&function(e,t){var r=c.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},Nn=function(e){h(xn,c,(function(){var t,r=e.facade,n=e.value;if(Wn(e)&&(t=cn((function(){Dt?jn.emit("unhandledRejection",n,r):Fn("unhandledrejection",r,n)})),e.rejection=Dt||Wn(e)?2:1,t.error))throw t.value}))},Wn=function(e){return 1!==e.rejection&&!e.parent},Dn=function(e){h(xn,c,(function(){var t=e.facade;Dt?jn.emit("rejectionHandled",t):Fn("rejectionhandled",t,e.value)}))},Gn=function(e,t,r){return function(n){e(t,n,r)}},Hn=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Bn(e,!0))},Vn=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw An("Promise can't be resolved itself");var n=qn(t);n?sn((function(){var r={done:!1};try{h(n,t,Gn(Vn,r,e),Gn(Hn,r,e))}catch(t){Hn(r,t,e)}})):(e.value=t,e.state=1,Bn(e,!1))}catch(t){Hn({done:!1},t,e)}}};if(_n&&(zn=(Tn=function(e){Zt(this,zn),K(e),h(hn,this);var t=Cn(this);try{e(Gn(Vn,t),Gn(Hn,t))}catch(e){Hn(t,e)}}).prototype,(hn=function(e){Sn(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new fn,rejection:!1,state:0,value:void 0})}).prototype=it(zn,"then",(function(e,t){var r=Cn(this),n=Rn(vr(this,Tn));return r.parent=!0,n.ok=!E(e)||e,n.fail=E(t)&&t,n.domain=Dt?jn.domain:void 0,0==r.state?r.reactions.add(n):sn((function(){Mn(n,r)})),n.promise})),pn=function(){var e=new hn,t=Cn(e);this.promise=e,this.resolve=Gn(Vn,t),this.reject=Gn(Hn,t)},kn.f=Rn=function(e){return e===Tn||void 0===e?new pn(e):Un(e)},E(ln)&&Pn!==Object.prototype)){gn=Pn.then,On||it(Pn,"then",(function(e,t){var r=this;return new Tn((function(e,t){h(gn,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete Pn.constructor}catch(e){}Vt&&Vt(Pn,zn)}Ut({global:!0,constructor:!0,wrap:!0,forced:_n},{Promise:Tn}),Jt(Tn,"Promise",!1),Qt("Promise");var $n={},Yn=ge("iterator"),Jn=Array.prototype,Kn=function(e){return void 0!==e&&($n.Array===e||Jn[Yn]===e)},Qn=ge("iterator"),Xn=function(e){if(null!=e)return Q(e,Qn)||Q(e,"@@iterator")||$n[Nt(e)]},Zn=TypeError,ei=function(e,t){var r=arguments.length<2?Xn(e):t;if(K(r))return Te(h(r,e));throw Zn(Y(e)+" is not iterable")},ti=function(e,t,r){var n,i;Te(e);try{if(!(n=Q(e,"return"))){if("throw"===t)throw r;return r}n=h(n,e)}catch(e){i=!0,n=e}if("throw"===t)throw r;if(i)throw n;return Te(n),r},ri=TypeError,ni=function(e,t){this.stopped=e,this.result=t},ii=ni.prototype,oi=function(e,t,r){var n,i,o,a,s,c,u,f=r&&r.that,l=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),g=!(!r||!r.INTERRUPTED),v=xr(t,f),y=function(e){return n&&ti(n,"normal",e),new ni(!0,e)},m=function(e){return l?(Te(e),g?v(e[0],e[1],y):v(e[0],e[1])):g?v(e,y):v(e)};if(d)n=e.iterator;else if(p)n=e;else{if(!(i=Xn(e)))throw ri(Y(e)+" is not iterable");if(Kn(i)){for(o=0,a=pt(e);a>o;o++)if((s=m(e[o]))&&L(ii,s))return s;return new ni(!1)}n=ei(e,i)}for(c=d?e.next:n.next;!(u=h(c,n)).done;){try{s=m(u.value)}catch(e){ti(n,"throw",e)}if("object"==typeof s&&s&&L(ii,s))return s}return new ni(!1)},ai=ge("iterator"),si=!1;try{var ci=0,ui={next:function(){return{done:!!ci++}},return:function(){si=!0}};ui[ai]=function(){return this},Array.from(ui,(function(){throw 2}))}catch(e){}var fi=function(e,t){if(!t&&!si)return!1;var r=!1;try{var n={};n[ai]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},li=bn.CONSTRUCTOR||!fi((function(e){ln.all(e).then(void 0,(function(){}))}));Ut({target:"Promise",stat:!0,forced:li},{all:function(e){var t=this,r=kn.f(t),n=r.resolve,i=r.reject,o=cn((function(){var r=K(t.resolve),o=[],a=0,s=1;oi(e,(function(e){var c=a++,u=!1;s++,h(r,t,e).then((function(e){u||(u=!0,o[c]=e,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise}});var di=bn.CONSTRUCTOR,hi=ln&&ln.prototype;if(Ut({target:"Promise",proto:!0,forced:di,real:!0},{catch:function(e){return this.then(void 0,e)}}),E(ln)){var pi=U("Promise").prototype.catch;hi.catch!==pi&&it(hi,"catch",pi,{unsafe:!0})}Ut({target:"Promise",stat:!0,forced:li},{race:function(e){var t=this,r=kn.f(t),n=r.reject,i=cn((function(){var i=K(t.resolve);oi(e,(function(e){h(i,t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}}),Ut({target:"Promise",stat:!0,forced:bn.CONSTRUCTOR},{reject:function(e){var t=kn.f(this);return h(t.reject,void 0,e),t.promise}});var gi=bn.CONSTRUCTOR;function vi(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function yi(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){vi(o,n,i,a,s,"next",e)}function s(e){vi(o,n,i,a,s,"throw",e)}a(void 0)}))}}function mi(e){return(mi="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})(e)}U("Promise"),Ut({target:"Promise",stat:!0,forced:gi},{resolve:function(e){return function(e,t){if(Te(e),j(t)&&t.constructor===e)return t;var r=kn.f(e);return(0,r.resolve)(t),r.promise}(this,e)}});var bi=Object.prototype,wi=bi.hasOwnProperty,ki="function"==typeof Symbol?Symbol:{},xi=ki.iterator||"@@iterator",_i=ki.asyncIterator||"@@asyncIterator",Ii=ki.toStringTag||"@@toStringTag";function Oi(e,t,r,n){var i=t&&t.prototype instanceof Pi?t:Pi,o=Object.create(i.prototype),a=new Ni(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return Di()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=Mi(a,r);if(s){if(s===Si)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=Ci(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===Si)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function Ci(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}var Si={};function Pi(){}function Ti(){}function zi(){}var Ai={};Ai[xi]=function(){return this};var Ei=Object.getPrototypeOf,ji=Ei&&Ei(Ei(Wi([])));ji&&ji!==bi&&wi.call(ji,xi)&&(Ai=ji);var Ri=zi.prototype=Pi.prototype=Object.create(Ai);function Ui(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function Li(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Ti||"GeneratorFunction"===(t.displayName||t.name))}function qi(e,t){var r;this._invoke=function(n,i){function o(){return new t((function(r,o){!function r(n,i,o,a){var s=Ci(e[n],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&wi.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,a)}),(function(e){r("throw",e,o,a)})):t.resolve(u).then((function(e){c.value=e,o(c)}),(function(e){return r("throw",e,o,a)}))}a(s.arg)}(n,i,r,o)}))}return r=r?r.then(o,o):o()}}function Mi(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,Mi(e,t),"throw"===t.method))return Si;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return Si}var n=Ci(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,Si;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,Si):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,Si)}function Bi(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 Fi(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Ni(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Bi,this),this.reset(!0)}function Wi(e){if(e){var t=e[xi];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(wi.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:Di}}function Di(){return{value:void 0,done:!0}}Ti.prototype=Ri.constructor=zi,zi.constructor=Ti,zi[Ii]=Ti.displayName="GeneratorFunction",Ui(qi.prototype),qi.prototype[_i]=function(){return this},Ui(Ri),Ri[Ii]="Generator",Ri[xi]=function(){return this},Ri.toString=function(){return"[object Generator]"},Ni.prototype={constructor:Ni,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Fi),!e)for(var t in this)"t"===t.charAt(0)&&wi.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},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 t=this;function r(r,n){return o.type="throw",o.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=wi.call(i,"catchLoc"),s=wi.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&wi.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,Si):this.complete(o)},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),Si},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),Fi(r),Si}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;Fi(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:Wi(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),Si}};var Gi,Hi,Vi={wrap:Oi,isGeneratorFunction:Li,AsyncIterator:qi,mark:function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,zi):(e.__proto__=zi,Ii in e||(e[Ii]="GeneratorFunction")),e.prototype=Object.create(Ri),e},awrap:function(e){return{__await:e}},async:function(e,t,r,n,i){void 0===i&&(i=Promise);var o=new qi(Oi(e,t,r,n),i);return Li(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},keys:function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},values:Wi},$i="object"===("undefined"==typeof window?"undefined":mi(window))&&"object"===mi(window.document),Yi="object"===("undefined"==typeof process?"undefined":mi(process))&&"object"===mi(process.versions)&&"string"==typeof process.versions.node,Ji=$i?window:globalThis,Ki="function"==typeof Ji.fetch,Qi=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Gi?Gi.apply(void 0,t):(Hi||(Hi=yi(Vi.mark((function e(){var t,r,n;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Yi){e.next=7;break}return e.next=3,import("node-fetch");case 3:return r=e.sent,n=null!==(t=r.default)&&void 0!==t?t:r,Gi=n,e.abrupt("return",n);case 7:if(Ki){e.next=9;break}throw new Error("Bad environment: it is not a node environment but fetch is not defined");case 9:return Gi=Ji.fetch.bind(Ji),e.abrupt("return",Gi);case 11:case"end":return e.stop()}}),e)})))()),Hi.then((function(e){return e.apply(void 0,t)})))},Xi=Object.keys||function(e){return bt(e,wt)},Zi=u((function(){Xi(1)}));Ut({target:"Object",stat:!0,forced:Zi},{keys:function(e){return Xi(ie(e))}});var eo,to=String,ro=function(e){if("Symbol"===Nt(e))throw TypeError("Cannot convert a Symbol value to a string");return to(e)},no={f:f&&!Ce?Object.defineProperties:function(e,t){Te(e);for(var r,n=A(t),i=Xi(t),o=i.length,a=0;o>a;)je.f(e,r=i[a++],n[r]);return e}},io=$e("IE_PROTO"),oo=function(){},ao=function(e){return"<script>"+e+"<\/script>"},so=function(e){e.write(ao("")),e.close();var t=e.parentWindow.Object;return e=null,t},co=function(){try{eo=new ActiveXObject("htmlfile")}catch(e){}var e,t;co="undefined"!=typeof document?document.domain&&eo?so(eo):((t=xe("iframe")).style.display="none",_r.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ao("document.F=Object")),e.close(),e.F):so(eo);for(var r=wt.length;r--;)delete co.prototype[wt[r]];return co()};Ye[io]=!0;var uo=Object.create||function(e,t){var r;return null!==e?(oo.prototype=Te(e),r=new oo,oo.prototype=null,r[io]=e):r=co(),void 0===t?r:no.f(r,t)},fo=function(e,t,r){var n=be(t);n in e?je.f(e,n,y(0,r)):e[n]=r},lo=Array,ho=Math.max,po=function(e,t,r){for(var n=pt(e),i=lt(t,n),o=lt(void 0===r?n:r,n),a=lo(ho(o-i,0)),s=0;i<o;i++,s++)fo(a,s,e[i]);return a.length=s,a},go=xt.f,vo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yo={f:function(e){return vo&&"Window"==O(e)?function(e){try{return go(e)}catch(e){return po(vo)}}(e):go(A(e))}},mo={f:ge},bo=c,wo=je.f,ko=Array.isArray||function(e){return"Array"==O(e)},xo=ge("species"),_o=Array,Io=function(e,t){return new(function(e){var t;return ko(e)&&(t=e.constructor,(dr(t)&&(t===_o||ko(t.prototype))||j(t)&&null===(t=t[xo]))&&(t=void 0)),void 0===t?_o:t}(e))(0===t?0:t)},Oo=x([].push),Co=function(e){var t=1==e,r=2==e,n=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(c,u,f,l){for(var d,h,p=ie(c),g=P(p),v=xr(u,f),y=pt(g),m=0,b=l||Io,w=t?b(c,y):r||a?b(c,0):void 0;y>m;m++)if((s||m in g)&&(h=v(d=g[m],m,p),e))if(t)w[m]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Oo(w,d)}else switch(e){case 4:return!1;case 7:Oo(w,d)}return o?-1:n||i?i:w}},So={forEach:Co(0),map:Co(1),filter:Co(2),some:Co(3),every:Co(4),find:Co(5),findIndex:Co(6),filterReject:Co(7)},Po=So.forEach,To=$e("hidden"),zo=rt.set,Ao=rt.getterFor("Symbol"),Eo=Object.prototype,jo=c.Symbol,Ro=jo&&jo.prototype,Uo=c.TypeError,Lo=c.QObject,qo=Oe.f,Mo=je.f,Bo=yo.f,Fo=v.f,No=x([].push),Wo=re("symbols"),Do=re("op-symbols"),Go=re("wks"),Ho=!Lo||!Lo.prototype||!Lo.prototype.findChild,Vo=f&&u((function(){return 7!=uo(Mo({},"a",{get:function(){return Mo(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=qo(Eo,t);n&&delete Eo[t],Mo(e,t,r),n&&e!==Eo&&Mo(Eo,t,n)}:Mo,$o=function(e,t){var r=Wo[e]=uo(Ro);return zo(r,{type:"Symbol",tag:e,description:t}),f||(r.description=t),r},Yo=function(e,t,r){e===Eo&&Yo(Do,t,r),Te(e);var n=be(t);return Te(r),ae(Wo,n)?(r.enumerable?(ae(e,To)&&e[To][n]&&(e[To][n]=!1),r=uo(r,{enumerable:y(0,!1)})):(ae(e,To)||Mo(e,To,y(1,{})),e[To][n]=!0),Vo(e,n,r)):Mo(e,n,r)},Jo=function(e,t){Te(e);var r=A(t),n=Xi(r).concat(Zo(r));return Po(n,(function(t){f&&!h(Ko,r,t)||Yo(e,t,r[t])})),e},Ko=function(e){var t=be(e),r=h(Fo,this,t);return!(this===Eo&&ae(Wo,t)&&!ae(Do,t))&&(!(r||!ae(this,t)||!ae(Wo,t)||ae(this,To)&&this[To][t])||r)},Qo=function(e,t){var r=A(e),n=be(t);if(r!==Eo||!ae(Wo,n)||ae(Do,n)){var i=qo(r,n);return!i||!ae(Wo,n)||ae(r,To)&&r[To][n]||(i.enumerable=!0),i}},Xo=function(e){var t=Bo(A(e)),r=[];return Po(t,(function(e){ae(Wo,e)||ae(Ye,e)||No(r,e)})),r},Zo=function(e){var t=e===Eo,r=Bo(t?Do:A(e)),n=[];return Po(r,(function(e){!ae(Wo,e)||t&&!ae(Eo,e)||No(n,Wo[e])})),n};D||(Ro=(jo=function(){if(L(Ro,this))throw Uo("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?ro(arguments[0]):void 0,t=fe(e),r=function(e){this===Eo&&h(r,Do,e),ae(this,To)&&ae(this[To],t)&&(this[To][t]=!1),Vo(this,t,y(1,e))};return f&&Ho&&Vo(Eo,t,{configurable:!0,set:r}),$o(t,e)}).prototype,it(Ro,"toString",(function(){return Ao(this).tag})),it(jo,"withoutSetter",(function(e){return $o(fe(e),e)})),v.f=Ko,je.f=Yo,no.f=Jo,Oe.f=Qo,xt.f=yo.f=Xo,_t.f=Zo,mo.f=function(e){return $o(ge(e),e)},f&&(Mo(Ro,"description",{configurable:!0,get:function(){return Ao(this).description}}),it(Eo,"propertyIsEnumerable",Ko,{unsafe:!0}))),Ut({global:!0,constructor:!0,wrap:!0,forced:!D,sham:!D},{Symbol:jo}),Po(Xi(Go),(function(e){!function(e){var t=bo.Symbol||(bo.Symbol={});ae(t,e)||wo(t,e,{value:mo.f(e)})}(e)})),Ut({target:"Symbol",stat:!0,forced:!D},{useSetter:function(){Ho=!0},useSimple:function(){Ho=!1}}),Ut({target:"Object",stat:!0,forced:!D,sham:!f},{create:function(e,t){return void 0===t?uo(e):Jo(uo(e),t)},defineProperty:Yo,defineProperties:Jo,getOwnPropertyDescriptor:Qo}),Ut({target:"Object",stat:!0,forced:!D},{getOwnPropertyNames:Xo}),function(){var e=U("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=ge("toPrimitive");t&&!t[n]&&it(t,n,(function(e){return h(r,this)}),{arity:1})}(),Jt(jo,"Symbol"),Ye[To]=!0;var ea=D&&!!Symbol.for&&!!Symbol.keyFor,ta=re("string-to-symbol-registry"),ra=re("symbol-to-string-registry");Ut({target:"Symbol",stat:!0,forced:!ea},{for:function(e){var t=ro(e);if(ae(ta,t))return ta[t];var r=U("Symbol")(t);return ta[t]=r,ra[r]=t,r}});var na=re("symbol-to-string-registry");Ut({target:"Symbol",stat:!0,forced:!ea},{keyFor:function(e){if(!V(e))throw TypeError(Y(e)+" is not a symbol");if(ae(na,e))return na[e]}});var ia=U("JSON","stringify"),oa=x(/./.exec),aa=x("".charAt),sa=x("".charCodeAt),ca=x("".replace),ua=x(1..toString),fa=/[\uD800-\uDFFF]/g,la=/^[\uD800-\uDBFF]$/,da=/^[\uDC00-\uDFFF]$/,ha=!D||u((function(){var e=U("Symbol")();return"[null]"!=ia([e])||"{}"!=ia({a:e})||"{}"!=ia(Object(e))})),pa=u((function(){return'"\\udf06\\ud834"'!==ia("\udf06\ud834")||'"\\udead"'!==ia("\udead")})),ga=function(e,t){var r=Ir(arguments),n=t;if((j(t)||void 0!==e)&&!V(e))return ko(t)||(t=function(e,t){if(E(n)&&(t=h(n,this,e,t)),!V(t))return t}),r[1]=t,wr(ia,null,r)},va=function(e,t,r){var n=aa(r,t-1),i=aa(r,t+1);return oa(la,e)&&!oa(da,i)||oa(da,e)&&!oa(la,n)?"\\u"+ua(sa(e,0),16):e};ia&&Ut({target:"JSON",stat:!0,arity:3,forced:ha||pa},{stringify:function(e,t,r){var n=Ir(arguments),i=wr(ha?ga:ia,null,n);return pa&&"string"==typeof i?ca(i,fa,va):i}});var ya=!D||u((function(){_t.f(1)}));Ut({target:"Object",stat:!0,forced:ya},{getOwnPropertySymbols:function(e){var t=_t.f;return t?t(ie(e)):[]}});var ma=ge("species"),ba=function(e){return W>=51||!u((function(){var t=[];return(t.constructor={})[ma]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},wa=So.filter,ka=ba("filter");Ut({target:"Array",proto:!0,forced:!ka},{filter:function(e){return wa(this,e,arguments.length>1?arguments[1]:void 0)}});var xa=Oe.f,_a=u((function(){xa(1)}));Ut({target:"Object",stat:!0,forced:!f||_a,sham:!f},{getOwnPropertyDescriptor:function(e,t){return xa(A(e),t)}});var Ia={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},Oa=xe("span").classList,Ca=Oa&&Oa.constructor&&Oa.constructor.prototype,Sa=Ca===Object.prototype?void 0:Ca,Pa=function(e,t){var r=[][e];return!!r&&u((function(){r.call(null,t||function(){return 1},1)}))},Ta=So.forEach,za=Pa("forEach")?[].forEach:function(e){return Ta(this,e,arguments.length>1?arguments[1]:void 0)},Aa=function(e){if(e&&e.forEach!==za)try{Re(e,"forEach",za)}catch(t){e.forEach=za}};for(var Ea in Ia)Ia[Ea]&&Aa(c[Ea]&&c[Ea].prototype);Aa(Sa),Ut({target:"Object",stat:!0,sham:!f},{getOwnPropertyDescriptors:function(e){for(var t,r,n=A(e),i=Oe.f,o=Ot(n),a={},s=0;o.length>s;)void 0!==(r=i(n,t=o[s++]))&&fo(a,t,r);return a}});var ja=no.f;Ut({target:"Object",stat:!0,forced:Object.defineProperties!==ja,sham:!f},{defineProperties:ja});var Ra=je.f;Ut({target:"Object",stat:!0,forced:Object.defineProperty!==Ra,sham:!f},{defineProperty:Ra});var Ua=function(){var e=Te(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},La=RegExp.prototype,qa=Me.PROPER,Ma=RegExp.prototype.toString,Ba=u((function(){return"/a/b"!=Ma.call({source:"a",flags:"b"})})),Fa=qa&&"toString"!=Ma.name;(Ba||Fa)&&it(RegExp.prototype,"toString",(function(){var e=Te(this);return"/"+ro(e.source)+"/"+ro(function(e){var t=e.flags;return void 0!==t||"flags"in La||ae(e,"flags")||!L(La,e)?t:h(Ua,e)}(e))}),{unsafe:!0});var Na=je.f,Wa=ge("unscopables"),Da=Array.prototype;null==Da[Wa]&&Na(Da,Wa,{configurable:!0,value:uo(null)});var Ga,Ha,Va,$a=function(e){Da[Wa][e]=!0},Ya=!u((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ja=$e("IE_PROTO"),Ka=Object,Qa=Ka.prototype,Xa=Ya?Ka.getPrototypeOf:function(e){var t=ie(e);if(ae(t,Ja))return t[Ja];var r=t.constructor;return E(r)&&t instanceof r?r.prototype:t instanceof Ka?Qa:null},Za=ge("iterator"),es=!1;[].keys&&("next"in(Va=[].keys())?(Ha=Xa(Xa(Va)))!==Object.prototype&&(Ga=Ha):es=!0),(null==Ga||u((function(){var e={};return Ga[Za].call(e)!==e})))&&(Ga={}),E(Ga[Za])||it(Ga,Za,(function(){return this}));var ts={IteratorPrototype:Ga,BUGGY_SAFARI_ITERATORS:es},rs=ts.IteratorPrototype,ns=function(){return this},is=function(e,t,r,n){var i=t+" Iterator";return e.prototype=uo(rs,{next:y(+!n,r)}),Jt(e,i,!1),$n[i]=ns,e},os=Me.PROPER,as=Me.CONFIGURABLE,ss=ts.IteratorPrototype,cs=ts.BUGGY_SAFARI_ITERATORS,us=ge("iterator"),fs=function(){return this},ls=function(e,t,r,n,i,o,a){is(r,t,n);var s,c,u,f=function(e){if(e===i&&v)return v;if(!cs&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},l=t+" Iterator",d=!1,p=e.prototype,g=p[us]||p["@@iterator"]||i&&p[i],v=!cs&&g||f(i),y="Array"==t&&p.entries||g;if(y&&(s=Xa(y.call(new e)))!==Object.prototype&&s.next&&(Xa(s)!==ss&&(Vt?Vt(s,ss):E(s[us])||it(s,us,fs)),Jt(s,l,!0)),os&&"values"==i&&g&&"values"!==g.name&&(as?Re(p,"name","values"):(d=!0,v=function(){return h(g,this)})),i)if(c={values:f("values"),keys:o?v:f("keys"),entries:f("entries")},a)for(u in c)(cs||d||!(u in p))&&it(p,u,c[u]);else Ut({target:t,proto:!0,forced:cs||d},c);return p[us]!==v&&it(p,us,v,{name:i}),$n[t]=v,c},ds=je.f,hs=rt.set,ps=rt.getterFor("Array Iterator"),gs=ls(Array,"Array",(function(e,t){hs(this,{type:"Array Iterator",target:A(e),index:0,kind:t})}),(function(){var e=ps(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),vs=$n.Arguments=$n.Array;if($a("keys"),$a("values"),$a("entries"),f&&"values"!==vs.name)try{ds(vs,"name",{value:"values"})}catch(e){}var ys=x("".charAt),ms=x("".charCodeAt),bs=x("".slice),ws=function(e){return function(t,r){var n,i,o=ro(z(t)),a=ct(r),s=o.length;return a<0||a>=s?e?"":void 0:(n=ms(o,a))<55296||n>56319||a+1===s||(i=ms(o,a+1))<56320||i>57343?e?ys(o,a):n:e?bs(o,a,a+2):i-56320+(n-55296<<10)+65536}},ks={codeAt:ws(!1),charAt:ws(!0)},xs=ks.charAt,_s=rt.set,Is=rt.getterFor("String Iterator");ls(String,"String",(function(e){_s(this,{type:"String Iterator",string:ro(e),index:0})}),(function(){var e,t=Is(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=xs(r,n),t.index+=e.length,{value:e,done:!1})}));var Os=ge("iterator"),Cs=ge("toStringTag"),Ss=gs.values,Ps=function(e,t){if(e){if(e[Os]!==Ss)try{Re(e,Os,Ss)}catch(t){e[Os]=Ss}if(e[Cs]||Re(e,Cs,t),Ia[t])for(var r in gs)if(e[r]!==gs[r])try{Re(e,r,gs[r])}catch(t){e[r]=gs[r]}}};for(var Ts in Ia)Ps(c[Ts]&&c[Ts].prototype,Ts);Ps(Sa,"DOMTokenList");var zs=ge("iterator"),As=!u((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[zs]||"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})),Es=function(e,t,r){return r.get&&nt(r.get,t,{getter:!0}),r.set&&nt(r.set,t,{setter:!0}),je.f(e,t,r)},js=Object.assign,Rs=Object.defineProperty,Us=x([].concat),Ls=!js||u((function(){if(f&&1!==js({b:1},js(Rs({},"a",{enumerable:!0,get:function(){Rs(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol();return e[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=js({},e)[r]||"abcdefghijklmnopqrst"!=Xi(js({},t)).join("")}))?function(e,t){for(var r=ie(e),n=arguments.length,i=1,o=_t.f,a=v.f;n>i;)for(var s,c=P(arguments[i++]),u=o?Us(Xi(c),o(c)):Xi(c),l=u.length,d=0;l>d;)s=u[d++],f&&!h(a,c,s)||(r[s]=c[s]);return r}:js,qs=function(e,t,r,n){try{return n?t(Te(r)[0],r[1]):t(r)}catch(t){ti(e,"throw",t)}},Ms=Array,Bs=function(e){var t=ie(e),r=dr(this),n=arguments.length,i=n>1?arguments[1]:void 0,o=void 0!==i;o&&(i=xr(i,n>2?arguments[2]:void 0));var a,s,c,u,f,l,d=Xn(t),p=0;if(!d||this===Ms&&Kn(d))for(a=pt(t),s=r?new this(a):Ms(a);a>p;p++)l=o?i(t[p],p):t[p],fo(s,p,l);else for(f=(u=ei(t,d)).next,s=r?new this:[];!(c=h(f,u)).done;p++)l=o?qs(u,i,[c.value,p],!0):c.value,fo(s,p,l);return s.length=p,s},Fs=/[^\0-\u007E]/,Ns=/[.\u3002\uFF0E\uFF61]/g,Ws="Overflow: input needs wider integers to process",Ds=RangeError,Gs=x(Ns.exec),Hs=Math.floor,Vs=String.fromCharCode,$s=x("".charCodeAt),Ys=x([].join),Js=x([].push),Ks=x("".replace),Qs=x("".split),Xs=x("".toLowerCase),Zs=function(e){return e+22+75*(e<26)},ec=function(e,t,r){var n=0;for(e=r?Hs(e/700):e>>1,e+=Hs(e/t);e>455;)e=Hs(e/35),n+=36;return Hs(n+36*e/(e+38))},tc=function(e){var t,r,n=[],i=(e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=$s(e,r++);if(i>=55296&&i<=56319&&r<n){var o=$s(e,r++);56320==(64512&o)?Js(t,((1023&i)<<10)+(1023&o)+65536):(Js(t,i),r--)}else Js(t,i)}return t}(e)).length,o=128,a=0,s=72;for(t=0;t<e.length;t++)(r=e[t])<128&&Js(n,Vs(r));var c=n.length,u=c;for(c&&Js(n,"-");u<i;){var f=2147483647;for(t=0;t<e.length;t++)(r=e[t])>=o&&r<f&&(f=r);var l=u+1;if(f-o>Hs((2147483647-a)/l))throw Ds(Ws);for(a+=(f-o)*l,o=f,t=0;t<e.length;t++){if((r=e[t])<o&&++a>2147483647)throw Ds(Ws);if(r==o){for(var d=a,h=36;;){var p=h<=s?1:h>=s+26?26:h-s;if(d<p)break;var g=d-p,v=36-p;Js(n,Vs(Zs(p+g%v))),d=Hs(g/v),h+=36}Js(n,Vs(Zs(d))),s=ec(a,l,u==c),a=0,u++}}a++,o++}return Ys(n,"")},rc=function(e,t,r){for(var n in t)it(e,n,t[n],r);return e},nc=Math.floor,ic=function(e,t){var r=e.length,n=nc(r/2);return r<8?oc(e,t):ac(e,ic(po(e,0,n),t),ic(po(e,n),t),t)},oc=function(e,t){for(var r,n,i=e.length,o=1;o<i;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},ac=function(e,t,r,n){for(var i=t.length,o=r.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?n(t[a],r[s])<=0?t[a++]:r[s++]:a<i?t[a++]:r[s++];return e},sc=ic,cc=ge("iterator"),uc=rt.set,fc=rt.getterFor("URLSearchParams"),lc=rt.getterFor("URLSearchParamsIterator"),dc=Object.getOwnPropertyDescriptor,hc=function(e){if(!f)return c[e];var t=dc(c,e);return t&&t.value},pc=hc("fetch"),gc=hc("Request"),vc=hc("Headers"),yc=gc&&gc.prototype,mc=vc&&vc.prototype,bc=c.RegExp,wc=c.TypeError,kc=c.decodeURIComponent,xc=c.encodeURIComponent,_c=x("".charAt),Ic=x([].join),Oc=x([].push),Cc=x("".replace),Sc=x([].shift),Pc=x([].splice),Tc=x("".split),zc=x("".slice),Ac=/\+/g,Ec=Array(4),jc=function(e){return Ec[e-1]||(Ec[e-1]=bc("((?:%[\\da-f]{2}){"+e+"})","gi"))},Rc=function(e){try{return kc(e)}catch(t){return e}},Uc=function(e){var t=Cc(e,Ac," "),r=4;try{return kc(t)}catch(e){for(;r;)t=Cc(t,jc(r--),Rc);return t}},Lc=/[!'()~]|%20/g,qc={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Mc=function(e){return qc[e]},Bc=function(e){return Cc(xc(e),Lc,Mc)},Fc=is((function(e,t){uc(this,{type:"URLSearchParamsIterator",iterator:ei(fc(e).entries),kind:t})}),"Iterator",(function(){var e=lc(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),Nc=function(e){this.entries=[],this.url=null,void 0!==e&&(j(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===_c(e,0)?zc(e,1):e:ro(e)))};Nc.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,i,o,a,s,c=Xn(e);if(c)for(r=(t=ei(e,c)).next;!(n=h(r,t)).done;){if(o=(i=ei(Te(n.value))).next,(a=h(o,i)).done||(s=h(o,i)).done||!h(o,i).done)throw wc("Expected sequence with length 2");Oc(this.entries,{key:ro(a.value),value:ro(s.value)})}else for(var u in e)ae(e,u)&&Oc(this.entries,{key:u,value:ro(e[u])})},parseQuery:function(e){if(e)for(var t,r,n=Tc(e,"&"),i=0;i<n.length;)(t=n[i++]).length&&(r=Tc(t,"="),Oc(this.entries,{key:Uc(Sc(r)),value:Uc(Ic(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],Oc(r,Bc(e.key)+"="+Bc(e.value));return Ic(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Wc=function(){Zt(this,Dc);var e=arguments.length>0?arguments[0]:void 0;uc(this,new Nc(e))},Dc=Wc.prototype;if(rc(Dc,{append:function(e,t){Cr(arguments.length,2);var r=fc(this);Oc(r.entries,{key:ro(e),value:ro(t)}),r.updateURL()},delete:function(e){Cr(arguments.length,1);for(var t=fc(this),r=t.entries,n=ro(e),i=0;i<r.length;)r[i].key===n?Pc(r,i,1):i++;t.updateURL()},get:function(e){Cr(arguments.length,1);for(var t=fc(this).entries,r=ro(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){Cr(arguments.length,1);for(var t=fc(this).entries,r=ro(e),n=[],i=0;i<t.length;i++)t[i].key===r&&Oc(n,t[i].value);return n},has:function(e){Cr(arguments.length,1);for(var t=fc(this).entries,r=ro(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){Cr(arguments.length,1);for(var r,n=fc(this),i=n.entries,o=!1,a=ro(e),s=ro(t),c=0;c<i.length;c++)(r=i[c]).key===a&&(o?Pc(i,c--,1):(o=!0,r.value=s));o||Oc(i,{key:a,value:s}),n.updateURL()},sort:function(){var e=fc(this);sc(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=fc(this).entries,n=xr(e,arguments.length>1?arguments[1]:void 0),i=0;i<r.length;)n((t=r[i++]).value,t.key,this)},keys:function(){return new Fc(this,"keys")},values:function(){return new Fc(this,"values")},entries:function(){return new Fc(this,"entries")}},{enumerable:!0}),it(Dc,cc,Dc.entries,{name:"entries"}),it(Dc,"toString",(function(){return fc(this).serialize()}),{enumerable:!0}),Jt(Wc,"URLSearchParams"),Ut({global:!0,constructor:!0,forced:!As},{URLSearchParams:Wc}),!As&&E(vc)){var Gc=x(mc.has),Hc=x(mc.set),Vc=function(e){if(j(e)){var t,r=e.body;if("URLSearchParams"===Nt(r))return t=e.headers?new vc(e.headers):new vc,Gc(t,"content-type")||Hc(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),uo(e,{body:y(0,ro(r)),headers:y(0,t)})}return e};if(E(pc)&&Ut({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return pc(e,arguments.length>1?Vc(arguments[1]):{})}}),E(gc)){var $c=function(e){return Zt(this,yc),new gc(e,arguments.length>1?Vc(arguments[1]):{})};yc.constructor=$c,$c.prototype=yc,Ut({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:$c})}}var Yc,Jc={URLSearchParams:Wc,getState:fc},Kc=ks.codeAt,Qc=rt.set,Xc=rt.getterFor("URL"),Zc=Jc.URLSearchParams,eu=Jc.getState,tu=c.URL,ru=c.TypeError,nu=c.parseInt,iu=Math.floor,ou=Math.pow,au=x("".charAt),su=x(/./.exec),cu=x([].join),uu=x(1..toString),fu=x([].pop),lu=x([].push),du=x("".replace),hu=x([].shift),pu=x("".split),gu=x("".slice),vu=x("".toLowerCase),yu=x([].unshift),mu=/[a-z]/i,bu=/[\d+-.a-z]/i,wu=/\d/,ku=/^0x/i,xu=/^[0-7]+$/,_u=/^\d+$/,Iu=/^[\da-f]+$/i,Ou=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Cu=/[\0\t\n\r #/:<>?@[\\\]^|]/,Su=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,Pu=/[\t\n\r]/g,Tu=function(e){var t,r,n,i;if("number"==typeof e){for(t=[],r=0;r<4;r++)yu(t,e%256),e=iu(e/256);return cu(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,i=0,o=0;o<8;o++)0!==e[o]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(t=n,r=i),t}(e),r=0;r<8;r++)i&&0===e[r]||(i&&(i=!1),n===r?(t+=r?":":"::",i=!0):(t+=uu(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},zu={},Au=Ls({},zu,{" ":1,'"':1,"<":1,">":1,"`":1}),Eu=Ls({},Au,{"#":1,"?":1,"{":1,"}":1}),ju=Ls({},Eu,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Ru=function(e,t){var r=Kc(e,0);return r>32&&r<127&&!ae(t,e)?e:encodeURIComponent(e)},Uu={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Lu=function(e,t){var r;return 2==e.length&&su(mu,au(e,0))&&(":"==(r=au(e,1))||!t&&"|"==r)},qu=function(e){var t;return e.length>1&&Lu(gu(e,0,2))&&(2==e.length||"/"===(t=au(e,2))||"\\"===t||"?"===t||"#"===t)},Mu=function(e){return"."===e||"%2e"===vu(e)},Bu={},Fu={},Nu={},Wu={},Du={},Gu={},Hu={},Vu={},$u={},Yu={},Ju={},Ku={},Qu={},Xu={},Zu={},ef={},tf={},rf={},nf={},of={},af={},sf=function(e,t,r){var n,i,o,a=ro(e);if(t){if(i=this.parse(a))throw ru(i);this.searchParams=null}else{if(void 0!==r&&(n=new sf(r,!0)),i=this.parse(a,null,n))throw ru(i);(o=eu(new Zc)).bindURL(this),this.searchParams=o}};sf.prototype={type:"URL",parse:function(e,t,r){var n,i,o,a,s,c=this,u=t||Bu,f=0,l="",d=!1,h=!1,p=!1;for(e=ro(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=du(e,Su,"")),e=du(e,Pu,""),n=Bs(e);f<=n.length;){switch(i=n[f],u){case Bu:if(!i||!su(mu,i)){if(t)return"Invalid scheme";u=Nu;continue}l+=vu(i),u=Fu;break;case Fu:if(i&&(su(bu,i)||"+"==i||"-"==i||"."==i))l+=vu(i);else{if(":"!=i){if(t)return"Invalid scheme";l="",u=Nu,f=0;continue}if(t&&(c.isSpecial()!=ae(Uu,l)||"file"==l&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=l,t)return void(c.isSpecial()&&Uu[c.scheme]==c.port&&(c.port=null));l="","file"==c.scheme?u=Xu:c.isSpecial()&&r&&r.scheme==c.scheme?u=Wu:c.isSpecial()?u=Vu:"/"==n[f+1]?(u=Du,f++):(c.cannotBeABaseURL=!0,lu(c.path,""),u=nf)}break;case Nu:if(!r||r.cannotBeABaseURL&&"#"!=i)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==i){c.scheme=r.scheme,c.path=po(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,u=af;break}u="file"==r.scheme?Xu:Gu;continue;case Wu:if("/"!=i||"/"!=n[f+1]){u=Gu;continue}u=$u,f++;break;case Du:if("/"==i){u=Yu;break}u=rf;continue;case Gu:if(c.scheme=r.scheme,i==Yc)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=po(r.path),c.query=r.query;else if("/"==i||"\\"==i&&c.isSpecial())u=Hu;else if("?"==i)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=po(r.path),c.query="",u=of;else{if("#"!=i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=po(r.path),c.path.length--,u=rf;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=po(r.path),c.query=r.query,c.fragment="",u=af}break;case Hu:if(!c.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,u=rf;continue}u=Yu}else u=$u;break;case Vu:if(u=$u,"/"!=i||"/"!=au(l,f+1))continue;f++;break;case $u:if("/"!=i&&"\\"!=i){u=Yu;continue}break;case Yu:if("@"==i){d&&(l="%40"+l),d=!0,o=Bs(l);for(var g=0;g<o.length;g++){var v=o[g];if(":"!=v||p){var y=Ru(v,ju);p?c.password+=y:c.username+=y}else p=!0}l=""}else if(i==Yc||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()){if(d&&""==l)return"Invalid authority";f-=Bs(l).length+1,l="",u=Ju}else l+=i;break;case Ju:case Ku:if(t&&"file"==c.scheme){u=ef;continue}if(":"!=i||h){if(i==Yc||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()){if(c.isSpecial()&&""==l)return"Invalid host";if(t&&""==l&&(c.includesCredentials()||null!==c.port))return;if(a=c.parseHost(l))return a;if(l="",u=tf,t)return;continue}"["==i?h=!0:"]"==i&&(h=!1),l+=i}else{if(""==l)return"Invalid host";if(a=c.parseHost(l))return a;if(l="",u=Qu,t==Ku)return}break;case Qu:if(!su(wu,i)){if(i==Yc||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()||t){if(""!=l){var m=nu(l,10);if(m>65535)return"Invalid port";c.port=c.isSpecial()&&m===Uu[c.scheme]?null:m,l=""}if(t)return;u=tf;continue}return"Invalid port"}l+=i;break;case Xu:if(c.scheme="file","/"==i||"\\"==i)u=Zu;else{if(!r||"file"!=r.scheme){u=rf;continue}if(i==Yc)c.host=r.host,c.path=po(r.path),c.query=r.query;else if("?"==i)c.host=r.host,c.path=po(r.path),c.query="",u=of;else{if("#"!=i){qu(cu(po(n,f),""))||(c.host=r.host,c.path=po(r.path),c.shortenPath()),u=rf;continue}c.host=r.host,c.path=po(r.path),c.query=r.query,c.fragment="",u=af}}break;case Zu:if("/"==i||"\\"==i){u=ef;break}r&&"file"==r.scheme&&!qu(cu(po(n,f),""))&&(Lu(r.path[0],!0)?lu(c.path,r.path[0]):c.host=r.host),u=rf;continue;case ef:if(i==Yc||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&Lu(l))u=rf;else if(""==l){if(c.host="",t)return;u=tf}else{if(a=c.parseHost(l))return a;if("localhost"==c.host&&(c.host=""),t)return;l="",u=tf}continue}l+=i;break;case tf:if(c.isSpecial()){if(u=rf,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=Yc&&(u=rf,"/"!=i))continue}else c.fragment="",u=af;else c.query="",u=of;break;case rf:if(i==Yc||"/"==i||"\\"==i&&c.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(s=vu(s=l))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"==i||"\\"==i&&c.isSpecial()||lu(c.path,"")):Mu(l)?"/"==i||"\\"==i&&c.isSpecial()||lu(c.path,""):("file"==c.scheme&&!c.path.length&&Lu(l)&&(c.host&&(c.host=""),l=au(l,0)+":"),lu(c.path,l)),l="","file"==c.scheme&&(i==Yc||"?"==i||"#"==i))for(;c.path.length>1&&""===c.path[0];)hu(c.path);"?"==i?(c.query="",u=of):"#"==i&&(c.fragment="",u=af)}else l+=Ru(i,Eu);break;case nf:"?"==i?(c.query="",u=of):"#"==i?(c.fragment="",u=af):i!=Yc&&(c.path[0]+=Ru(i,zu));break;case of:t||"#"!=i?i!=Yc&&("'"==i&&c.isSpecial()?c.query+="%27":c.query+="#"==i?"%23":Ru(i,zu)):(c.fragment="",u=af);break;case af:i!=Yc&&(c.fragment+=Ru(i,Au))}f++}},parseHost:function(e){var t,r,n;if("["==au(e,0)){if("]"!=au(e,e.length-1))return"Invalid host";if(!(t=function(e){var t,r,n,i,o,a,s,c=[0,0,0,0,0,0,0,0],u=0,f=null,l=0,d=function(){return au(e,l)};if(":"==d()){if(":"!=au(e,1))return;l+=2,f=++u}for(;d();){if(8==u)return;if(":"!=d()){for(t=r=0;r<4&&su(Iu,d());)t=16*t+nu(d(),16),l++,r++;if("."==d()){if(0==r)return;if(l-=r,u>6)return;for(n=0;d();){if(i=null,n>0){if(!("."==d()&&n<4))return;l++}if(!su(wu,d()))return;for(;su(wu,d());){if(o=nu(d(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;l++}c[u]=256*c[u]+i,2!=++n&&4!=n||u++}if(4!=n)return;break}if(":"==d()){if(l++,!d())return}else if(d())return;c[u++]=t}else{if(null!==f)return;l++,f=++u}}if(null!==f)for(a=u-f,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[f+a-1],c[f+--a]=s;else if(8!=u)return;return c}(gu(e,1,-1))))return"Invalid host";this.host=t}else if(this.isSpecial()){if(e=function(e){var t,r,n=[],i=Qs(Ks(Xs(e),Ns,"."),".");for(t=0;t<i.length;t++)r=i[t],Js(n,Gs(Fs,r)?"xn--"+tc(r):r);return Ys(n,".")}(e),su(Ou,e))return"Invalid host";if(null===(t=function(e){var t,r,n,i,o,a,s,c=pu(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(i=c[n]))return e;if(o=10,i.length>1&&"0"==au(i,0)&&(o=su(ku,i)?16:8,i=gu(i,8==o?1:2)),""===i)a=0;else{if(!su(10==o?_u:8==o?xu:Iu,i))return e;a=nu(i,o)}lu(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=ou(256,5-t))return null}else if(a>255)return null;for(s=fu(r),n=0;n<r.length;n++)s+=r[n]*ou(256,3-n);return s}(e)))return"Invalid host";this.host=t}else{if(su(Cu,e))return"Invalid host";for(t="",r=Bs(e),n=0;n<r.length;n++)t+=Ru(r[n],zu);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return ae(Uu,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&Lu(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,i=e.host,o=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==i?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=Tu(i),null!==o&&(u+=":"+o)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+cu(a,"/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},setHref:function(e){var t=this.parse(e);if(t)throw ru(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new cf(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Tu(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(ro(e)+":",Bu)},getUsername:function(){return this.username},setUsername:function(e){var t=Bs(ro(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=Ru(t[r],ju)}},getPassword:function(){return this.password},setPassword:function(e){var t=Bs(ro(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=Ru(t[r],ju)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Tu(e):Tu(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ju)},getHostname:function(){var e=this.host;return null===e?"":Tu(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ku)},getPort:function(){var e=this.port;return null===e?"":ro(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=ro(e))?this.port=null:this.parse(e,Qu))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+cu(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,tf))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=ro(e))?this.query=null:("?"==au(e,0)&&(e=gu(e,1)),this.query="",this.parse(e,of)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=ro(e))?("#"==au(e,0)&&(e=gu(e,1)),this.fragment="",this.parse(e,af)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var cf=function(e){var t=Zt(this,uf),r=Cr(arguments.length,1)>1?arguments[1]:void 0,n=Qc(t,new sf(e,!1,r));f||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},uf=cf.prototype,ff=function(e,t){return{get:function(){return Xc(this)[e]()},set:t&&function(e){return Xc(this)[t](e)},configurable:!0,enumerable:!0}};if(f&&(Es(uf,"href",ff("serialize","setHref")),Es(uf,"origin",ff("getOrigin")),Es(uf,"protocol",ff("getProtocol","setProtocol")),Es(uf,"username",ff("getUsername","setUsername")),Es(uf,"password",ff("getPassword","setPassword")),Es(uf,"host",ff("getHost","setHost")),Es(uf,"hostname",ff("getHostname","setHostname")),Es(uf,"port",ff("getPort","setPort")),Es(uf,"pathname",ff("getPathname","setPathname")),Es(uf,"search",ff("getSearch","setSearch")),Es(uf,"searchParams",ff("getSearchParams")),Es(uf,"hash",ff("getHash","setHash"))),it(uf,"toJSON",(function(){return Xc(this).serialize()}),{enumerable:!0}),it(uf,"toString",(function(){return Xc(this).serialize()}),{enumerable:!0}),tu){var lf=tu.createObjectURL,df=tu.revokeObjectURL;lf&&it(cf,"createObjectURL",xr(lf,tu)),df&&it(cf,"revokeObjectURL",xr(df,tu))}Jt(cf,"URL"),Ut({global:!0,constructor:!0,forced:!As,sham:!f},{URL:cf});var hf,pf,gf=c.RegExp,vf=u((function(){var e=gf("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),yf=vf||u((function(){return!gf("a","y").sticky})),mf={BROKEN_CARET:vf||u((function(){var e=gf("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:yf,UNSUPPORTED_Y:vf},bf=c.RegExp,wf=u((function(){var e=bf(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),kf=c.RegExp,xf=u((function(){var e=kf("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),_f=rt.get,If=re("native-string-replace",String.prototype.replace),Of=RegExp.prototype.exec,Cf=Of,Sf=x("".charAt),Pf=x("".indexOf),Tf=x("".replace),zf=x("".slice),Af=(pf=/b*/g,h(Of,hf=/a/,"a"),h(Of,pf,"a"),0!==hf.lastIndex||0!==pf.lastIndex),Ef=mf.BROKEN_CARET,jf=void 0!==/()??/.exec("")[1];(Af||jf||Ef||wf||xf)&&(Cf=function(e){var t,r,n,i,o,a,s,c=this,u=_f(c),f=ro(e),l=u.raw;if(l)return l.lastIndex=c.lastIndex,t=h(Cf,l,f),c.lastIndex=l.lastIndex,t;var d=u.groups,p=Ef&&c.sticky,g=h(Ua,c),v=c.source,y=0,m=f;if(p&&(g=Tf(g,"y",""),-1===Pf(g,"g")&&(g+="g"),m=zf(f,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Sf(f,c.lastIndex-1))&&(v="(?: "+v+")",m=" "+m,y++),r=new RegExp("^(?:"+v+")",g)),jf&&(r=new RegExp("^"+v+"$(?!\\s)",g)),Af&&(n=c.lastIndex),i=h(Of,p?r:c,m),p?i?(i.input=zf(i.input,y),i[0]=zf(i[0],y),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:Af&&i&&(c.lastIndex=c.global?i.index+i[0].length:n),jf&&i&&i.length>1&&h(If,i[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&d)for(i.groups=a=uo(null),o=0;o<d.length;o++)a[(s=d[o])[0]]=i[s[1]];return i});var Rf=Cf;Ut({target:"RegExp",proto:!0,forced:/./.exec!==Rf},{exec:Rf});var Uf=ge("species"),Lf=RegExp.prototype,qf=function(e,t,r,n){var i=ge(e),o=!u((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!u((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Uf]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return t=!0,null},r[i](""),!t}));if(!o||!a||r){var s=x(/./[i]),c=t(i,""[e],(function(e,t,r,n,i){var a=x(e),c=t.exec;return c===Rf||c===Lf.exec?o&&!i?{done:!0,value:s(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));it(String.prototype,e,c[0]),it(Lf,i,c[1])}n&&Re(Lf[i],"sham",!0)},Mf=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},Bf=TypeError,Ff=function(e,t){var r=e.exec;if(E(r)){var n=h(r,e,t);return null!==n&&Te(n),n}if("RegExp"===O(e))return h(Rf,e,t);throw Bf("RegExp#exec called on incompatible receiver")};qf("search",(function(e,t,r){return[function(t){var r=z(this),n=null==t?void 0:Q(t,e);return n?h(n,t,r):new RegExp(t)[e](ro(r))},function(e){var n=Te(this),i=ro(e),o=r(t,n,i);if(o.done)return o.value;var a=n.lastIndex;Mf(a,0)||(n.lastIndex=0);var s=Ff(n,i);return Mf(n.lastIndex,a)||(n.lastIndex=a),null===s?-1:s.index}]}));var Nf=So.map,Wf=ba("map");Ut({target:"Array",proto:!0,forced:!Wf},{map:function(e){return Nf(this,e,arguments.length>1?arguments[1]:void 0)}});var Df,Gf,Hf,Vf="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,$f=je.f,Yf=rt.enforce,Jf=rt.get,Kf=c.Int8Array,Qf=Kf&&Kf.prototype,Xf=c.Uint8ClampedArray,Zf=Xf&&Xf.prototype,el=Kf&&Xa(Kf),tl=Qf&&Xa(Qf),rl=Object.prototype,nl=c.TypeError,il=ge("toStringTag"),ol=fe("TYPED_ARRAY_TAG"),al=Vf&&!!Vt&&"Opera"!==Nt(c.opera),sl=!1,cl={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ul={BigInt64Array:8,BigUint64Array:8},fl=function(e){var t=Xa(e);if(j(t)){var r=Jf(t);return r&&ae(r,"TypedArrayConstructor")?r.TypedArrayConstructor:fl(t)}},ll=function(e){if(!j(e))return!1;var t=Nt(e);return ae(cl,t)||ae(ul,t)};for(Df in cl)(Hf=(Gf=c[Df])&&Gf.prototype)?Yf(Hf).TypedArrayConstructor=Gf:al=!1;for(Df in ul)(Hf=(Gf=c[Df])&&Gf.prototype)&&(Yf(Hf).TypedArrayConstructor=Gf);if((!al||!E(el)||el===Function.prototype)&&(el=function(){throw nl("Incorrect invocation")},al))for(Df in cl)c[Df]&&Vt(c[Df],el);if((!al||!tl||tl===rl)&&(tl=el.prototype,al))for(Df in cl)c[Df]&&Vt(c[Df].prototype,tl);if(al&&Xa(Zf)!==tl&&Vt(Zf,tl),f&&!ae(tl,il))for(Df in sl=!0,$f(tl,il,{get:function(){return j(this)?this[ol]:void 0}}),cl)c[Df]&&Re(c[Df],ol,Df);var dl={NATIVE_ARRAY_BUFFER_VIEWS:al,TYPED_ARRAY_TAG:sl&&ol,aTypedArray:function(e){if(ll(e))return e;throw nl("Target is not a typed array")},aTypedArrayConstructor:function(e){if(E(e)&&(!Vt||L(el,e)))return e;throw nl(Y(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(f){if(r)for(var i in cl){var o=c[i];if(o&&ae(o.prototype,e))try{delete o.prototype[e]}catch(r){try{o.prototype[e]=t}catch(e){}}}tl[e]&&!r||it(tl,e,r?t:al&&Qf[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,i;if(f){if(Vt){if(r)for(n in cl)if((i=c[n])&&ae(i,e))try{delete i[e]}catch(e){}if(el[e]&&!r)return;try{return it(el,e,r?t:al&&el[e]||t)}catch(e){}}for(n in cl)!(i=c[n])||i[e]&&!r||it(i,e,t)}},getTypedArrayConstructor:fl,isView:function(e){if(!j(e))return!1;var t=Nt(e);return"DataView"===t||ae(cl,t)||ae(ul,t)},isTypedArray:ll,TypedArray:el,TypedArrayPrototype:tl},hl=dl.NATIVE_ARRAY_BUFFER_VIEWS,pl=c.ArrayBuffer,gl=c.Int8Array,vl=!hl||!u((function(){gl(1)}))||!u((function(){new gl(-1)}))||!fi((function(e){new gl,new gl(null),new gl(1.5),new gl(e)}),!0)||u((function(){return 1!==new gl(new pl(2),1,void 0).length})),yl=RangeError,ml=function(e){if(void 0===e)return 0;var t=ct(e),r=ht(t);if(t!==r)throw yl("Wrong length or index");return r},bl=Array,wl=Math.abs,kl=Math.pow,xl=Math.floor,_l=Math.log,Il=Math.LN2,Ol=function(e,t,r){var n,i,o,a=bl(r),s=8*r-t-1,c=(1<<s)-1,u=c>>1,f=23===t?kl(2,-24)-kl(2,-77):0,l=e<0||0===e&&1/e<0?1:0,d=0;for((e=wl(e))!=e||e===1/0?(i=e!=e?1:0,n=c):(n=xl(_l(e)/Il),e*(o=kl(2,-n))<1&&(n--,o*=2),(e+=n+u>=1?f/o:f*kl(2,1-u))*o>=2&&(n++,o/=2),n+u>=c?(i=0,n=c):n+u>=1?(i=(e*o-1)*kl(2,t),n+=u):(i=e*kl(2,u-1)*kl(2,t),n=0));t>=8;)a[d++]=255&i,i/=256,t-=8;for(n=n<<t|i,s+=t;s>0;)a[d++]=255&n,n/=256,s-=8;return a[--d]|=128*l,a},Cl=function(e,t){var r,n=e.length,i=8*n-t-1,o=(1<<i)-1,a=o>>1,s=i-7,c=n-1,u=e[c--],f=127&u;for(u>>=7;s>0;)f=256*f+e[c--],s-=8;for(r=f&(1<<-s)-1,f>>=-s,s+=t;s>0;)r=256*r+e[c--],s-=8;if(0===f)f=1-a;else{if(f===o)return r?NaN:u?-1/0:1/0;r+=kl(2,t),f-=a}return(u?-1:1)*r*kl(2,f-t)},Sl=function(e){for(var t=ie(this),r=pt(t),n=arguments.length,i=lt(n>1?arguments[1]:void 0,r),o=n>2?arguments[2]:void 0,a=void 0===o?r:lt(o,r);a>i;)t[i++]=e;return t},Pl=xt.f,Tl=je.f,zl=Me.PROPER,Al=Me.CONFIGURABLE,El=rt.get,jl=rt.set,Rl=c.ArrayBuffer,Ul=Rl,Ll=Ul&&Ul.prototype,ql=c.DataView,Ml=ql&&ql.prototype,Bl=Object.prototype,Fl=c.Array,Nl=c.RangeError,Wl=x(Sl),Dl=x([].reverse),Gl=Ol,Hl=Cl,Vl=function(e){return[255&e]},$l=function(e){return[255&e,e>>8&255]},Yl=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Jl=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Kl=function(e){return Gl(e,23,4)},Ql=function(e){return Gl(e,52,8)},Xl=function(e,t){Tl(e.prototype,t,{get:function(){return El(this)[t]}})},Zl=function(e,t,r,n){var i=ml(r),o=El(e);if(i+t>o.byteLength)throw Nl("Wrong index");var a=El(o.buffer).bytes,s=i+o.byteOffset,c=po(a,s,s+t);return n?c:Dl(c)},ed=function(e,t,r,n,i,o){var a=ml(r),s=El(e);if(a+t>s.byteLength)throw Nl("Wrong index");for(var c=El(s.buffer).bytes,u=a+s.byteOffset,f=n(+i),l=0;l<t;l++)c[u+l]=f[o?l:t-l-1]};if(Vf){var td=zl&&"ArrayBuffer"!==Rl.name;if(u((function(){Rl(1)}))&&u((function(){new Rl(-1)}))&&!u((function(){return new Rl,new Rl(1.5),new Rl(NaN),td&&!Al})))td&&Al&&Re(Rl,"name","ArrayBuffer");else{(Ul=function(e){return Zt(this,Ll),new Rl(ml(e))}).prototype=Ll;for(var rd,nd=Pl(Rl),id=0;nd.length>id;)(rd=nd[id++])in Ul||Re(Ul,rd,Rl[rd]);Ll.constructor=Ul}Vt&&Xa(Ml)!==Bl&&Vt(Ml,Bl);var od=new ql(new Ul(2)),ad=x(Ml.setInt8);od.setInt8(0,2147483648),od.setInt8(1,2147483649),!od.getInt8(0)&&od.getInt8(1)||rc(Ml,{setInt8:function(e,t){ad(this,e,t<<24>>24)},setUint8:function(e,t){ad(this,e,t<<24>>24)}},{unsafe:!0})}else Ll=(Ul=function(e){Zt(this,Ll);var t=ml(e);jl(this,{bytes:Wl(Fl(t),0),byteLength:t}),f||(this.byteLength=t)}).prototype,Ml=(ql=function(e,t,r){Zt(this,Ml),Zt(e,Ll);var n=El(e).byteLength,i=ct(t);if(i<0||i>n)throw Nl("Wrong offset");if(i+(r=void 0===r?n-i:ht(r))>n)throw Nl("Wrong length");jl(this,{buffer:e,byteLength:r,byteOffset:i}),f||(this.buffer=e,this.byteLength=r,this.byteOffset=i)}).prototype,f&&(Xl(Ul,"byteLength"),Xl(ql,"buffer"),Xl(ql,"byteLength"),Xl(ql,"byteOffset")),rc(Ml,{getInt8:function(e){return Zl(this,1,e)[0]<<24>>24},getUint8:function(e){return Zl(this,1,e)[0]},getInt16:function(e){var t=Zl(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Zl(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return Jl(Zl(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return Jl(Zl(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return Hl(Zl(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return Hl(Zl(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){ed(this,1,e,Vl,t)},setUint8:function(e,t){ed(this,1,e,Vl,t)},setInt16:function(e,t){ed(this,2,e,$l,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){ed(this,2,e,$l,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){ed(this,4,e,Yl,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){ed(this,4,e,Yl,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){ed(this,4,e,Kl,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){ed(this,8,e,Ql,t,arguments.length>2?arguments[2]:void 0)}});Jt(Ul,"ArrayBuffer"),Jt(ql,"DataView");var sd={ArrayBuffer:Ul,DataView:ql},cd=Math.floor,ud=Number.isInteger||function(e){return!j(e)&&isFinite(e)&&cd(e)===e},fd=RangeError,ld=RangeError,dd=function(e,t){var r=function(e){var t=ct(e);if(t<0)throw fd("The argument can't be less than 0");return t}(e);if(r%t)throw ld("Wrong offset");return r},hd=dl.aTypedArrayConstructor,pd=function(e){var t,r,n,i,o,a,s=pr(this),c=ie(e),u=arguments.length,f=u>1?arguments[1]:void 0,l=void 0!==f,d=Xn(c);if(d&&!Kn(d))for(a=(o=ei(c,d)).next,c=[];!(i=h(a,o)).done;)c.push(i.value);for(l&&u>2&&(f=xr(f,arguments[2])),r=pt(c),n=new(hd(s))(r),t=0;r>t;t++)n[t]=l?f(c[t],t):c[t];return n};i((function(e){var t=xt.f,r=So.forEach,n=rt.get,i=rt.set,o=rt.enforce,a=je.f,s=Oe.f,u=Math.round,l=c.RangeError,d=sd.ArrayBuffer,p=d.prototype,g=sd.DataView,v=dl.NATIVE_ARRAY_BUFFER_VIEWS,m=dl.TYPED_ARRAY_TAG,b=dl.TypedArray,w=dl.TypedArrayPrototype,k=dl.aTypedArrayConstructor,x=dl.isTypedArray,_=function(e,t){k(e);for(var r=0,n=t.length,i=new e(n);n>r;)i[r]=t[r++];return i},I=function(e,t){a(e,t,{get:function(){return n(this)[t]}})},O=function(e){var t;return L(p,e)||"ArrayBuffer"==(t=Nt(e))||"SharedArrayBuffer"==t},C=function(e,t){return x(e)&&!V(t)&&t in e&&ud(+t)&&t>=0},S=function(e,t){return t=be(t),C(e,t)?y(2,e[t]):s(e,t)},P=function(e,t,r){return t=be(t),!(C(e,t)&&j(r)&&ae(r,"value"))||ae(r,"get")||ae(r,"set")||r.configurable||ae(r,"writable")&&!r.writable||ae(r,"enumerable")&&!r.enumerable?a(e,t,r):(e[t]=r.value,e)};f?(v||(Oe.f=S,je.f=P,I(w,"buffer"),I(w,"byteOffset"),I(w,"byteLength"),I(w,"length")),Ut({target:"Object",stat:!0,forced:!v},{getOwnPropertyDescriptor:S,defineProperty:P}),e.exports=function(e,s,f){var p=e.match(/\d+$/)[0]/8,y=e+(f?"Clamped":"")+"Array",k="get"+e,I="set"+e,C=c[y],S=C,P=S&&S.prototype,T={},z=function(e,t){a(e,t,{get:function(){return function(e,t){var r=n(e);return r.view[k](t*p+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var i=n(e);f&&(r=(r=u(r))<0?0:r>255?255:255&r),i.view[I](t*p+i.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};v?vl&&(S=s((function(e,t,r,n){return Zt(e,P),function(e,t,r){var n,i;return Vt&&E(n=t.constructor)&&n!==r&&j(i=n.prototype)&&i!==r.prototype&&Vt(e,i),e}(j(t)?O(t)?void 0!==n?new C(t,dd(r,p),n):void 0!==r?new C(t,dd(r,p)):new C(t):x(t)?_(S,t):h(pd,S,t):new C(ml(t)),e,S)})),Vt&&Vt(S,b),r(t(C),(function(e){e in S||Re(S,e,C[e])})),S.prototype=P):(S=s((function(e,t,r,n){Zt(e,P);var o,a,s,c=0,u=0;if(j(t)){if(!O(t))return x(t)?_(S,t):h(pd,S,t);o=t,u=dd(r,p);var f=t.byteLength;if(void 0===n){if(f%p)throw l("Wrong length");if((a=f-u)<0)throw l("Wrong length")}else if((a=ht(n)*p)+u>f)throw l("Wrong length");s=a/p}else s=ml(t),o=new d(a=s*p);for(i(e,{buffer:o,byteOffset:u,byteLength:a,length:s,view:new g(o)});c<s;)z(e,c++)})),Vt&&Vt(S,b),P=S.prototype=uo(w)),P.constructor!==S&&Re(P,"constructor",S),o(P).TypedArrayConstructor=S,m&&Re(P,m,y);var A=S!=C;T[y]=S,Ut({global:!0,constructor:!0,forced:A,sham:!v},T),"BYTES_PER_ELEMENT"in S||Re(S,"BYTES_PER_ELEMENT",p),"BYTES_PER_ELEMENT"in P||Re(P,"BYTES_PER_ELEMENT",p),Qt(y)}):e.exports=function(){}}))("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}));var gd=TypeError,vd=function(e,t){if(!delete e[t])throw gd("Cannot delete property "+Y(t)+" of "+Y(e))},yd=Math.min,md=x([].copyWithin||function(e,t){var r=ie(this),n=pt(r),i=lt(e,n),o=lt(t,n),a=arguments.length>2?arguments[2]:void 0,s=yd((void 0===a?n:lt(a,n))-o,n-i),c=1;for(o<i&&i<o+s&&(c=-1,o+=s-1,i+=s-1);s-- >0;)o in r?r[i]=r[o]:vd(r,i),i+=c,o+=c;return r}),bd=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("copyWithin",(function(e,t){return md(bd(this),e,t,arguments.length>2?arguments[2]:void 0)}));var wd=So.every,kd=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("every",(function(e){return wd(kd(this),e,arguments.length>1?arguments[1]:void 0)}));var xd=TypeError,_d=function(e){var t=me(e,"number");if("number"==typeof t)throw xd("Can't convert number to bigint");return BigInt(t)},Id=dl.aTypedArray,Od=dl.exportTypedArrayMethod,Cd=x("".slice);Od("fill",(function(e){var t=arguments.length;Id(this);var r="Big"===Cd(Nt(this),0,3)?_d(e):+e;return h(Sl,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),u((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})));var Sd=dl.aTypedArrayConstructor,Pd=dl.getTypedArrayConstructor,Td=function(e){return Sd(vr(e,Pd(e)))},zd=function(e,t){return function(e,t){for(var r=0,n=pt(t),i=new e(n);n>r;)i[r]=t[r++];return i}(Td(e),t)},Ad=So.filter,Ed=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("filter",(function(e){var t=Ad(Ed(this),e,arguments.length>1?arguments[1]:void 0);return zd(this,t)}));var jd=So.find,Rd=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("find",(function(e){return jd(Rd(this),e,arguments.length>1?arguments[1]:void 0)}));var Ud=So.findIndex,Ld=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("findIndex",(function(e){return Ud(Ld(this),e,arguments.length>1?arguments[1]:void 0)}));var qd=So.forEach,Md=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("forEach",(function(e){qd(Md(this),e,arguments.length>1?arguments[1]:void 0)}));var Bd=vt.includes,Fd=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("includes",(function(e){return Bd(Fd(this),e,arguments.length>1?arguments[1]:void 0)}));var Nd=vt.indexOf,Wd=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("indexOf",(function(e){return Nd(Wd(this),e,arguments.length>1?arguments[1]:void 0)}));var Dd=ge("iterator"),Gd=c.Uint8Array,Hd=x(gs.values),Vd=x(gs.keys),$d=x(gs.entries),Yd=dl.aTypedArray,Jd=dl.exportTypedArrayMethod,Kd=Gd&&Gd.prototype,Qd=!u((function(){Kd[Dd].call([1])})),Xd=!!Kd&&Kd.values&&Kd[Dd]===Kd.values&&"values"===Kd.values.name,Zd=function(){return Hd(Yd(this))};Jd("entries",(function(){return $d(Yd(this))}),Qd),Jd("keys",(function(){return Vd(Yd(this))}),Qd),Jd("values",Zd,Qd||!Xd,{name:"values"}),Jd(Dd,Zd,Qd||!Xd,{name:"values"});var eh=dl.aTypedArray,th=dl.exportTypedArrayMethod,rh=x([].join);th("join",(function(e){return rh(eh(this),e)}));var nh=Math.min,ih=[].lastIndexOf,oh=!!ih&&1/[1].lastIndexOf(1,-0)<0,ah=Pa("lastIndexOf"),sh=oh||!ah?function(e){if(oh)return wr(ih,this,arguments)||0;var t=A(this),r=pt(t),n=r-1;for(arguments.length>1&&(n=nh(n,ct(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:ih,ch=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return wr(sh,ch(this),t>1?[e,arguments[1]]:[e])}));var uh=So.map,fh=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("map",(function(e){return uh(fh(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(Td(e))(t)}))}));var lh=TypeError,dh=function(e){return function(t,r,n,i){K(r);var o=ie(t),a=P(o),s=pt(o),c=e?s-1:0,u=e?-1:1;if(n<2)for(;;){if(c in a){i=a[c],c+=u;break}if(c+=u,e?c<0:s<=c)throw lh("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=u)c in a&&(i=r(i,a[c],c,o));return i}},hh={left:dh(!1),right:dh(!0)},ph=hh.left,gh=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return ph(gh(this),e,t,t>1?arguments[1]:void 0)}));var vh=hh.right,yh=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return vh(yh(this),e,t,t>1?arguments[1]:void 0)}));var mh=dl.aTypedArray,bh=dl.exportTypedArrayMethod,wh=Math.floor;bh("reverse",(function(){for(var e,t=mh(this).length,r=wh(t/2),n=0;n<r;)e=this[n],this[n++]=this[--t],this[t]=e;return this}));var kh=c.RangeError,xh=c.Int8Array,_h=xh&&xh.prototype,Ih=_h&&_h.set,Oh=dl.aTypedArray,Ch=dl.exportTypedArrayMethod,Sh=!u((function(){var e=new Uint8ClampedArray(2);return h(Ih,e,{length:1,0:3},1),3!==e[1]})),Ph=Sh&&dl.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new xh(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));Ch("set",(function(e){Oh(this);var t=dd(arguments.length>1?arguments[1]:void 0,1),r=ie(e);if(Sh)return h(Ih,this,r,t);var n=this.length,i=pt(r),o=0;if(i+t>n)throw kh("Wrong length");for(;o<i;)this[t+o]=r[o++]}),!Sh||Ph);var Th=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("slice",(function(e,t){for(var r=Ir(Th(this),e,t),n=Td(this),i=0,o=r.length,a=new n(o);o>i;)a[i]=r[i++];return a}),u((function(){new Int8Array(1).slice()})));var zh=So.some,Ah=dl.aTypedArray;(0,dl.exportTypedArrayMethod)("some",(function(e){return zh(Ah(this),e,arguments.length>1?arguments[1]:void 0)}));var Eh=q.match(/firefox\/(\d+)/i),jh=!!Eh&&+Eh[1],Rh=/MSIE|Trident/.test(q),Uh=q.match(/AppleWebKit\/(\d+)\./),Lh=!!Uh&&+Uh[1],qh=dl.aTypedArray,Mh=dl.exportTypedArrayMethod,Bh=c.Uint16Array,Fh=Bh&&x(Bh.prototype.sort),Nh=!(!Fh||u((function(){Fh(new Bh(2),null)}))&&u((function(){Fh(new Bh(2),{})}))),Wh=!!Fh&&!u((function(){if(W)return W<74;if(jh)return jh<67;if(Rh)return!0;if(Lh)return Lh<602;var e,t,r=new Bh(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(Fh(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));Mh("sort",(function(e){return void 0!==e&&K(e),Wh?Fh(this,e):sc(qh(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!Wh||Nh);var Dh=c.Int8Array,Gh=dl.aTypedArray,Hh=dl.exportTypedArrayMethod,Vh=[].toLocaleString,$h=!!Dh&&u((function(){Vh.call(new Dh(1))}));Hh("toLocaleString",(function(){return wr(Vh,$h?Ir(Gh(this)):Gh(this),Ir(arguments))}),u((function(){return[1,2].toLocaleString()!=new Dh([1,2]).toLocaleString()}))||!u((function(){Dh.prototype.toLocaleString.call([1,2])})));var Yh=dl.exportTypedArrayMethod,Jh=c.Uint8Array,Kh=Jh&&Jh.prototype||{},Qh=[].toString,Xh=x([].join);u((function(){Qh.call({})}))&&(Qh=function(){return Xh(this)});var Zh=Kh.toString!=Qh;Yh("toString",Qh,Zh);var ep=ks.charAt,tp=function(e,t,r){return t+(r?ep(e,t).length:1)},rp=Math.floor,np=x("".charAt),ip=x("".replace),op=x("".slice),ap=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,sp=/\$([$&'`]|\d{1,2})/g,cp=function(e,t,r,n,i,o){var a=r+e.length,s=n.length,c=sp;return void 0!==i&&(i=ie(i),c=ap),ip(o,c,(function(o,c){var u;switch(np(c,0)){case"$":return"$";case"&":return e;case"`":return op(t,0,r);case"'":return op(t,a);case"<":u=i[op(c,1,-1)];break;default:var f=+c;if(0===f)return o;if(f>s){var l=rp(f/10);return 0===l?o:l<=s?void 0===n[l-1]?np(c,1):n[l-1]+np(c,1):o}u=n[f-1]}return void 0===u?"":u}))},up=ge("replace"),fp=Math.max,lp=Math.min,dp=x([].concat),hp=x([].push),pp=x("".indexOf),gp=x("".slice),vp="$0"==="a".replace(/./,"$0"),yp=!!/./[up]&&""===/./[up]("a","$0");qf("replace",(function(e,t,r){var n=yp?"$":"$0";return[function(e,r){var n=z(this),i=null==e?void 0:Q(e,up);return i?h(i,e,n,r):h(t,ro(n),e,r)},function(e,i){var o=Te(this),a=ro(e);if("string"==typeof i&&-1===pp(i,n)&&-1===pp(i,"$<")){var s=r(t,o,a,i);if(s.done)return s.value}var c=E(i);c||(i=ro(i));var u=o.global;if(u){var f=o.unicode;o.lastIndex=0}for(var l=[];;){var d=Ff(o,a);if(null===d)break;if(hp(l,d),!u)break;""===ro(d[0])&&(o.lastIndex=tp(a,ht(o.lastIndex),f))}for(var h,p="",g=0,v=0;v<l.length;v++){for(var y=ro((d=l[v])[0]),m=fp(lp(ct(d.index),a.length),0),b=[],w=1;w<d.length;w++)hp(b,void 0===(h=d[w])?h:String(h));var k=d.groups;if(c){var x=dp([y],b,m,a);void 0!==k&&hp(x,k);var _=ro(wr(i,void 0,x))}else _=cp(y,a,m,b,k,i);m>=g&&(p+=gp(a,g,m)+_,g=m+y.length)}return p+gp(a,g)}]}),!!u((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!vp||yp),Ut({target:"Object",stat:!0},{fromEntries:function(e){var t={};return oi(e,(function(e,r){fo(t,e,r)}),{AS_ENTRIES:!0}),t}});var mp=TypeError,bp=function(e){if(e>9007199254740991)throw mp("Maximum allowed index exceeded");return e},wp=ge("isConcatSpreadable"),kp=W>=51||!u((function(){var e=[];return e[wp]=!1,e.concat()[0]!==e})),xp=ba("concat"),_p=function(e){if(!j(e))return!1;var t=e[wp];return void 0!==t?!!t:ko(e)};function Ip(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Op(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Sp(e){return function(e){if(Array.isArray(e))return Cp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Cp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cp(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Ut({target:"Array",proto:!0,arity:1,forced:!kp||!xp},{concat:function(e){var t,r,n,i,o,a=ie(this),s=Io(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(_p(o=-1===t?a:arguments[t]))for(i=pt(o),bp(c+i),r=0;r<i;r++,c++)r in o&&fo(s,c,o[r]);else bp(c+1),fo(s,c++,o);return s.length=c,s}});var Pp,Tp=ge("match"),zp=function(e){var t;return j(e)&&(void 0!==(t=e[Tp])?!!t:"RegExp"==O(e))},Ap=TypeError,Ep=function(e){if(zp(e))throw Ap("The method doesn't accept regular expressions");return e},jp=ge("match"),Rp=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[jp]=!1,"/./"[e](t)}catch(e){}}return!1},Up=Oe.f,Lp=x("".startsWith),qp=x("".slice),Mp=Math.min,Bp=Rp("startsWith"),Fp=!(Bp||(Pp=Up(String.prototype,"startsWith"),!Pp||Pp.writable));function Np(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Dp(e,t,r){return t&&Wp(e.prototype,t),r&&Wp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gp(Object(r),!0).forEach((function(t){Op(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}Ut({target:"String",proto:!0,forced:!Fp&&!Bp},{startsWith:function(e){var t=ro(z(this));Ep(e);var r=ht(Mp(arguments.length>1?arguments[1]:void 0,t.length)),n=ro(e);return Lp?Lp(t,n,r):qp(t,r,r+n.length)===n}});var Vp=Dp((function e(t){if(Np(this,e),Op(this,"baseUri",void 0),Op(this,"proxy",void 0),Op(this,"headers",void 0),Op(this,"parameters",void 0),Op(this,"fetchOptions",void 0),Op(this,"fetch",void 0),Op(this,"transformRequest",void 0),Op(this,"throwOnBadResponse",void 0),this.headers=Hp({},t.headers),this.parameters=Hp({},t.parameters),!this.parameters.shortCode)throw new Error("Missing required parameter: shortCode");this.fetchOptions=Hp({credentials:"omit"},t.fetchOptions),this.transformRequest=t.transformRequest||e.defaults.transformRequest,this.fetch=t.fetch,t.baseUri&&(this.baseUri=t.baseUri),t.proxy&&(this.proxy=t.proxy),this.throwOnBadResponse=!!t.throwOnBadResponse}));Op(Vp,"defaults",{transformRequest:function(e,t){switch(t["Content-Type"]){case"application/json":return JSON.stringify(e);case"application/x-www-form-urlencoded":return new URLSearchParams(e);default:return e}}});var $p=Function,Yp=x([].concat),Jp=x([].join),Kp={},Qp=function(e,t,r){if(!ae(Kp,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Kp[t]=$p("C,a","return new C("+Jp(n,",")+")")}return Kp[t](e,r)},Xp=l?$p.bind:function(e){var t=K(this),r=t.prototype,n=Ir(arguments,1),i=function(){var r=Yp(n,Ir(arguments));return this instanceof i?Qp(t,r.length,r):t.apply(e,r)};return j(r)&&(i.prototype=r),i},Zp=U("Reflect","construct"),eg=Object.prototype,tg=[].push,rg=u((function(){function e(){}return!(Zp((function(){}),[],e)instanceof e)})),ng=!u((function(){Zp((function(){}))})),ig=rg||ng;function og(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ag(e,t){return(ag=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function sg(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ag(e,t)}function cg(e,t){if(t&&("object"===mi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return og(e)}function ug(e){return(ug=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fg(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function lg(e,t,r){return(lg=fg()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&ag(i,r.prototype),i}).apply(null,arguments)}function dg(e){var t="function"==typeof Map?new Map:void 0;return(dg=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return lg(e,arguments,ug(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ag(n,e)})(e)}function hg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ug(e);if(t){var i=ug(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return cg(this,r)}}Ut({target:"Reflect",stat:!0,forced:ig,sham:ig},{construct:function(e,t){pr(e),Te(t);var r=arguments.length<3?e:pr(arguments[2]);if(ng&&!rg)return Zp(e,t,r);if(e==r){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 n=[null];return wr(tg,n,t),new(wr(Xp,e,n))}var i=r.prototype,o=uo(j(i)?i:eg),a=wr(e,o,t);return j(a)?a:o}});var pg=function(e){sg(r,dg(Error));var t=hg(r);function r(e){var n;return Np(this,r),Op(og(n=t.call(this,"".concat(e.status," ").concat(e.statusText))),"response",void 0),n.response=e,n}return Dp(r)}();function gg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gg(Object(r),!0).forEach((function(t){Op(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var yg=function(){var e=yi(Vi.mark((function e(t,r,n,i){var o,a,s,c,u,f;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=vg(vg({},null==n?void 0:n.headers),null==r?void 0:r.headers),s=vg(vg({},null==n?void 0:n.fetchOptions),{},{headers:a,body:null==r?void 0:r.body,method:null!==(o=null==r?void 0:r.method)&&void 0!==o?o:"GET"}),c=(null==n?void 0:n.fetch)||Qi,e.next=5,c(t,s);case 5:if(u=e.sent,!i){e.next=8;break}return e.abrupt("return",u);case 8:if(null==n||!n.throwOnBadResponse||u.ok||304===u.status){e.next=12;break}throw new pg(u);case 12:return e.next=14,u.text();case 14:return f=e.sent,e.abrupt("return",f?JSON.parse(f):{});case 16:case"end":return e.stop()}}),e)})));return function(t,r,n,i){return e.apply(this,arguments)}}(),mg=function(e){return e.replace(/%/g,"%25").replace(/,/g,"%2C")};function bg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ug(e);if(t){var i=ug(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return cg(this,r)}}qf("match",(function(e,t,r){return[function(t){var r=z(this),n=null==t?void 0:Q(t,e);return n?h(n,t,r):new RegExp(t)[e](ro(r))},function(e){var n=Te(this),i=ro(e),o=r(t,n,i);if(o.done)return o.value;if(!n.global)return Ff(n,i);var a=n.unicode;n.lastIndex=0;for(var s,c=[],u=0;null!==(s=Ff(n,i));){var f=ro(s[0]);c[u]=f,""===f&&(n.lastIndex=tp(i,ht(n.lastIndex),a)),u++}return 0===u?null:c}]}));var wg=function(e){sg(r,dg(URL));var t=bg(r);function r(e,n,i){var o;Np(this,r);var a={};return Object.keys((null==i?void 0:i.pathParams)||{}).forEach((function(e){var t,r=null==i||null===(t=i.pathParams)||void 0===t?void 0:t[e];r&&(a[e]=encodeURIComponent(r))})),(o=t.call(this,r.renderTemplateUri("".concat(n,"/").concat(e).replace(/\/\/+/g,"/"),a))).addQueryParams(null==i?void 0:i.queryParams),null!=i&&i.origin&&o.replaceOrigin(null==i?void 0:i.origin),o}return Dp(r,[{key:"replaceOrigin",value:function(e){var t=new URL(e);this.protocol=t.protocol,this.host=t.host,this.pathname="".concat(t.pathname,"/").concat(this.pathname).replace(/\/\/+/g,"/")}},{key:"addQueryParams",value:function(e){var t=this;e&&Object.keys(e).forEach((function(r){var n=e[r];if(Array.isArray(n))if("refine"===r)for(var i=0;i<n.length;i+=1)t.searchParams.append(r,String(n[i]));else t.searchParams.append(r,n.join());else t.searchParams.append(r,String(n))}))}}],[{key:"renderTemplateUri",value:function(e,t){var r=t?e.replace(/\{([^\}]+)\}/g,(function(e,r){return String(t[r])})):e,n=/(\.|%2e|%2E|%252e|%252E)+(\/|%2f|%2F|%252f|%252F)+/g;return r.match(n)&&(console.warn("Path traversal attempt detected. Normalizing url"),r=r.replace(n,"")),r}}]),r}(),kg="commerce-sdk-isomorphic@4.1.0";function xg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xg(Object(r),!0).forEach((function(t){Op(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ig=function(){function e(t){Np(this,e),Op(this,"clientConfig",void 0);var r=_g({},t);r.baseUri||(r.baseUri=(this instanceof e?this.constructor:void 0).defaultBaseUri),this.clientConfig=new Vp(r)}var t,r,n,i,o,a,s,c,u,f,l,d,h,p,g,v;return Dp(e,[{key:"authenticateCustomer",value:(v=yi(Vi.mark((function e(t,r){var n,i,o,a,s,c,u;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},i=this.clientConfig.parameters,o={shortCode:i.shortCode},void 0===n.organizationId){e.next=7;break}o.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===i.organizationId){e.next=11;break}o.organizationId=i.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in o)||(e.startsWith("c_")||console.warn("Found unknown parameter for authenticateCustomer: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/login",this.clientConfig.baseUri,{pathParams:o,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),$i||(c["user-agent"]=[c["user-agent"],kg].join(" ")),e.next=19,yg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:if(u=e.sent,!r){e.next=22;break}return e.abrupt("return",u);case 22:case"end":return e.stop()}}),e,this)}))),function(e,t){return v.apply(this,arguments)})},{key:"authorizeCustomer",value:(g=yi(Vi.mark((function e(t,r){var n,i,o,a,s,c,u;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},i=this.clientConfig.parameters,o={shortCode:i.shortCode},void 0===n.organizationId){e.next=7;break}o.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===i.organizationId){e.next=11;break}o.organizationId=i.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:if(a={},void 0===n.redirect_uri){e.next=17;break}a.redirect_uri=n.redirect_uri,e.next=22;break;case 17:if(void 0===i.redirect_uri){e.next=21;break}a.redirect_uri=i.redirect_uri,e.next=22;break;case 21:throw new Error("Missing required query parameter: redirect_uri");case 22:if(void 0===n.response_type){e.next=26;break}a.response_type=n.response_type,e.next=31;break;case 26:if(void 0===i.response_type){e.next=30;break}a.response_type=i.response_type,e.next=31;break;case 30:throw new Error("Missing required query parameter: response_type");case 31:if(void 0===n.client_id){e.next=35;break}a.client_id=n.client_id,e.next=40;break;case 35:if(void 0===i.client_id){e.next=39;break}a.client_id=i.client_id,e.next=40;break;case 39:throw new Error("Missing required query parameter: client_id");case 40:return void 0!==n.scope?a.scope=n.scope:void 0!==i.scope&&(a.scope=i.scope),void 0!==n.state?a.state=n.state:void 0!==i.state&&(a.state=i.state),void 0!==n.usid?a.usid=n.usid:void 0!==i.usid&&(a.usid=i.usid),void 0!==n.hint?a.hint=n.hint:void 0!==i.hint&&(a.hint=i.hint),void 0!==n.channel_id?a.channel_id=n.channel_id:void 0!==i.channel_id&&(a.channel_id=i.channel_id),void 0!==n.code_challenge?a.code_challenge=n.code_challenge:void 0!==i.code_challenge&&(a.code_challenge=i.code_challenge),void 0!==n.ui_locales?a.ui_locales=n.ui_locales:void 0!==i.ui_locales&&(a.ui_locales=i.ui_locales),Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in o)||(e.startsWith("c_")||console.warn("Found unknown parameter for authorizeCustomer: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/authorize",this.clientConfig.baseUri,{pathParams:o,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({},this.clientConfig.headers),null==t?void 0:t.headers),$i||(c["user-agent"]=[c["user-agent"],kg].join(" ")),e.next=53,yg(s.toString(),{method:"GET",headers:c},this.clientConfig,r);case 53:if(u=e.sent,!r){e.next=56;break}return e.abrupt("return",u);case 56:case"end":return e.stop()}}),e,this)}))),function(e,t){return g.apply(this,arguments)})},{key:"authorizePasswordlessCustomer",value:(p=yi(Vi.mark((function e(t,r){var n,i,o,a,s,c,u;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},i=this.clientConfig.parameters,o={shortCode:i.shortCode},void 0===n.organizationId){e.next=7;break}o.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===i.organizationId){e.next=11;break}o.organizationId=i.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in o)||(e.startsWith("c_")||console.warn("Found unknown parameter for authorizePasswordlessCustomer: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/passwordless/login",this.clientConfig.baseUri,{pathParams:o,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),$i||(c["user-agent"]=[c["user-agent"],kg].join(" ")),e.next=19,yg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return p.apply(this,arguments)})},{key:"getAccessToken",value:(h=yi(Vi.mark((function e(t,r){var n,i,o,a,s,c,u;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},i=this.clientConfig.parameters,o={shortCode:i.shortCode},void 0===n.organizationId){e.next=7;break}o.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===i.organizationId){e.next=11;break}o.organizationId=i.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in o)||(e.startsWith("c_")||console.warn("Found unknown parameter for getAccessToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/token",this.clientConfig.baseUri,{pathParams:o,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),$i||(c["user-agent"]=[c["user-agent"],kg].join(" ")),e.next=19,yg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return h.apply(this,arguments)})},{key:"getJwksUri",value:(d=yi(Vi.mark((function e(t,r){var n,i,o,a,s,c,u;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},i=this.clientConfig.parameters,o={shortCode:i.shortCode},void 0===n.organizationId){e.next=7;break}o.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===i.organizationId){e.next=11;break}o.organizationId=i.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in o)||(e.startsWith("c_")||console.warn("Found unknown parameter for getJwksUri: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/jwks",this.clientConfig.baseUri,{pathParams:o,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({},this.clientConfig.headers),null==t?void 0:t.headers),$i||(c["user-agent"]=[c["user-agent"],kg].join(" ")),e.next=19,yg(s.toString(),{method:"GET",headers:c},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"getPasswordLessAccessToken",value:function(){var e=yi(Vi.mark((function e(t,r){var n,i,o,a,s,c,u;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},i=this.clientConfig.parameters,o={shortCode:i.shortCode},void 0===n.organizationId){e.next=7;break}o.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===i.organizationId){e.next=11;break}o.organizationId=i.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in o)||(e.startsWith("c_")||console.warn("Found unknown parameter for getPasswordLessAccessToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/passwordless/token",this.clientConfig.baseUri,{pathParams:o,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),$i||(c["user-agent"]=[c["user-agent"],kg].join(" ")),e.next=19,yg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getPasswordResetToken",value:(l=yi(Vi.mark((function e(t,r){var n,i,o,a,s,c,u;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},i=this.clientConfig.parameters,o={shortCode:i.shortCode},void 0===n.organizationId){e.next=7;break}o.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===i.organizationId){e.next=11;break}o.organizationId=i.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in o)||(e.startsWith("c_")||console.warn("Found unknown parameter for getPasswordResetToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/password/reset",this.clientConfig.baseUri,{pathParams:o,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),$i||(c["user-agent"]=[c["user-agent"],kg].join(" ")),e.next=19,yg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:if(u=e.sent,!r){e.next=22;break}return e.abrupt("return",u);case 22:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"getSessionBridgeAccessToken",value:(f=yi(Vi.mark((function e(t,r){var n,i,o,a,s,c,u;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},i=this.clientConfig.parameters,o={shortCode:i.shortCode},void 0===n.organizationId){e.next=7;break}o.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===i.organizationId){e.next=11;break}o.organizationId=i.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in o)||(e.startsWith("c_")||console.warn("Found unknown parameter for getSessionBridgeAccessToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/session-bridge/token",this.clientConfig.baseUri,{pathParams:o,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),$i||(c["user-agent"]=[c["user-agent"],kg].join(" ")),e.next=19,yg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return f.apply(this,arguments)})},{key:"getTrustedAgentAccessToken",value:(u=yi(Vi.mark((function e(t,r){var n,i,o,a,s,c,u;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},i=this.clientConfig.parameters,o={shortCode:i.shortCode},void 0===n.organizationId){e.next=7;break}o.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===i.organizationId){e.next=11;break}o.organizationId=i.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in o)||(e.startsWith("c_")||console.warn("Found unknown parameter for getTrustedAgentAccessToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/trusted-agent/token",this.clientConfig.baseUri,{pathParams:o,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),$i||(c["user-agent"]=[c["user-agent"],kg].join(" ")),e.next=19,yg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"getTrustedAgentAuthorizationToken",value:(c=yi(Vi.mark((function e(t,r){var n,i,o,a,s,c,u;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},i=this.clientConfig.parameters,o={shortCode:i.shortCode},void 0===n.organizationId){e.next=7;break}o.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===i.organizationId){e.next=11;break}o.organizationId=i.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:if(a={},void 0===n.client_id){e.next=17;break}a.client_id=n.client_id,e.next=22;break;case 17:if(void 0===i.client_id){e.next=21;break}a.client_id=i.client_id,e.next=22;break;case 21:throw new Error("Missing required query parameter: client_id");case 22:if(void 0===n.channel_id){e.next=26;break}a.channel_id=n.channel_id,e.next=31;break;case 26:if(void 0===i.channel_id){e.next=30;break}a.channel_id=i.channel_id,e.next=31;break;case 30:throw new Error("Missing required query parameter: channel_id");case 31:if(void 0!==n.code_challenge?a.code_challenge=n.code_challenge:void 0!==i.code_challenge&&(a.code_challenge=i.code_challenge),void 0===n.login_id){e.next=36;break}a.login_id=n.login_id,e.next=41;break;case 36:if(void 0===i.login_id){e.next=40;break}a.login_id=i.login_id,e.next=41;break;case 40:throw new Error("Missing required query parameter: login_id");case 41:if(void 0===n.idp_origin){e.next=45;break}a.idp_origin=n.idp_origin,e.next=50;break;case 45:if(void 0===i.idp_origin){e.next=49;break}a.idp_origin=i.idp_origin,e.next=50;break;case 49:throw new Error("Missing required query parameter: idp_origin");case 50:if(void 0===n.redirect_uri){e.next=54;break}a.redirect_uri=n.redirect_uri,e.next=59;break;case 54:if(void 0===i.redirect_uri){e.next=58;break}a.redirect_uri=i.redirect_uri,e.next=59;break;case 58:throw new Error("Missing required query parameter: redirect_uri");case 59:if(void 0===n.response_type){e.next=63;break}a.response_type=n.response_type,e.next=68;break;case 63:if(void 0===i.response_type){e.next=67;break}a.response_type=i.response_type,e.next=68;break;case 67:throw new Error("Missing required query parameter: response_type");case 68:return Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in o)||(e.startsWith("c_")||console.warn("Found unknown parameter for getTrustedAgentAuthorizationToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/trusted-agent/authorize",this.clientConfig.baseUri,{pathParams:o,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({},this.clientConfig.headers),null==t?void 0:t.headers),$i||(c["user-agent"]=[c["user-agent"],kg].join(" ")),e.next=74,yg(s.toString(),{method:"GET",headers:c},this.clientConfig,r);case 74:if(u=e.sent,!r){e.next=77;break}return e.abrupt("return",u);case 77:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"getTrustedSystemAccessToken",value:(s=yi(Vi.mark((function e(t,r){var n,i,o,a,s,c,u;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},i=this.clientConfig.parameters,o={shortCode:i.shortCode},void 0===n.organizationId){e.next=7;break}o.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===i.organizationId){e.next=11;break}o.organizationId=i.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in o)||(e.startsWith("c_")||console.warn("Found unknown parameter for getTrustedSystemAccessToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/trusted-system/token",this.clientConfig.baseUri,{pathParams:o,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),$i||(c["user-agent"]=[c["user-agent"],kg].join(" ")),e.next=19,yg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return s.apply(this,arguments)})},{key:"getUserInfo",value:(a=yi(Vi.mark((function e(t,r){var n,i,o,a,s,c,u;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},i=this.clientConfig.parameters,o={shortCode:i.shortCode},void 0===n.organizationId){e.next=7;break}o.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===i.organizationId){e.next=11;break}o.organizationId=i.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},void 0!==n.channel_id?a.channel_id=n.channel_id:void 0!==i.channel_id&&(a.channel_id=i.channel_id),Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in o)||(e.startsWith("c_")||console.warn("Found unknown parameter for getUserInfo: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/userinfo",this.clientConfig.baseUri,{pathParams:o,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({},this.clientConfig.headers),null==t?void 0:t.headers),$i||(c["user-agent"]=[c["user-agent"],kg].join(" ")),e.next=20,yg(s.toString(),{method:"GET",headers:c},this.clientConfig,r);case 20:return u=e.sent,e.abrupt("return",u);case 22:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"getWellknownOpenidConfiguration",value:(o=yi(Vi.mark((function e(t,r){var n,i,o,a,s,c,u;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},i=this.clientConfig.parameters,o={shortCode:i.shortCode},void 0===n.organizationId){e.next=7;break}o.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===i.organizationId){e.next=11;break}o.organizationId=i.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in o)||(e.startsWith("c_")||console.warn("Found unknown parameter for getWellknownOpenidConfiguration: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/.well-known/openid-configuration",this.clientConfig.baseUri,{pathParams:o,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({},this.clientConfig.headers),null==t?void 0:t.headers),$i||(c["user-agent"]=[c["user-agent"],kg].join(" ")),e.next=19,yg(s.toString(),{method:"GET",headers:c},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"introspectToken",value:(i=yi(Vi.mark((function e(t,r){var n,i,o,a,s,c,u;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},i=this.clientConfig.parameters,o={shortCode:i.shortCode},void 0===n.organizationId){e.next=7;break}o.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===i.organizationId){e.next=11;break}o.organizationId=i.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in o)||(e.startsWith("c_")||console.warn("Found unknown parameter for introspectToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/introspect",this.clientConfig.baseUri,{pathParams:o,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),$i||(c["user-agent"]=[c["user-agent"],kg].join(" ")),e.next=19,yg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"logoutCustomer",value:(n=yi(Vi.mark((function e(t,r){var n,i,o,a,s,c,u;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},i=this.clientConfig.parameters,o={shortCode:i.shortCode},void 0===n.organizationId){e.next=7;break}o.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===i.organizationId){e.next=11;break}o.organizationId=i.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:if(a={},void 0===n.client_id){e.next=17;break}a.client_id=n.client_id,e.next=22;break;case 17:if(void 0===i.client_id){e.next=21;break}a.client_id=i.client_id,e.next=22;break;case 21:throw new Error("Missing required query parameter: client_id");case 22:if(void 0===n.refresh_token){e.next=26;break}a.refresh_token=n.refresh_token,e.next=31;break;case 26:if(void 0===i.refresh_token){e.next=30;break}a.refresh_token=i.refresh_token,e.next=31;break;case 30:throw new Error("Missing required query parameter: refresh_token");case 31:return void 0!==n.channel_id?a.channel_id=n.channel_id:void 0!==i.channel_id&&(a.channel_id=i.channel_id),void 0!==n.hint?a.hint=n.hint:void 0!==i.hint&&(a.hint=i.hint),Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in o)||(e.startsWith("c_")||console.warn("Found unknown parameter for logoutCustomer: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/logout",this.clientConfig.baseUri,{pathParams:o,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({},this.clientConfig.headers),null==t?void 0:t.headers),$i||(c["user-agent"]=[c["user-agent"],kg].join(" ")),e.next=39,yg(s.toString(),{method:"GET",headers:c},this.clientConfig,r);case 39:return u=e.sent,e.abrupt("return",u);case 41:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"resetPassword",value:(r=yi(Vi.mark((function e(t,r){var n,i,o,a,s,c,u;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},i=this.clientConfig.parameters,o={shortCode:i.shortCode},void 0===n.organizationId){e.next=7;break}o.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===i.organizationId){e.next=11;break}o.organizationId=i.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in o)||(e.startsWith("c_")||console.warn("Found unknown parameter for resetPassword: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/password/action",this.clientConfig.baseUri,{pathParams:o,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),$i||(c["user-agent"]=[c["user-agent"],kg].join(" ")),e.next=19,yg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:if(u=e.sent,!r){e.next=22;break}return e.abrupt("return",u);case 22:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"revokeToken",value:(t=yi(Vi.mark((function e(t,r){var n,i,o,a,s,c,u;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},i=this.clientConfig.parameters,o={shortCode:i.shortCode},void 0===n.organizationId){e.next=7;break}o.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===i.organizationId){e.next=11;break}o.organizationId=i.organizationId,e.next=12;break;case 11:throw new Error("Missing required path parameter: organizationId");case 12:return a={},Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in o)||(e.startsWith("c_")||console.warn("Found unknown parameter for revokeToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new wg("/organizations/{organizationId}/oauth2/revoke",this.clientConfig.baseUri,{pathParams:o,queryParams:a,origin:this.clientConfig.proxy}),c=_g(_g({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),$i||(c["user-agent"]=[c["user-agent"],kg].join(" ")),e.next=19,yg(s.toString(),{method:"POST",headers:c,body:this.clientConfig.transformRequest(null==t?void 0:t.body,c)},this.clientConfig,r);case 19:return u=e.sent,e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})}]),e}();Op(Ig,"defaultBaseUri","https://{shortCode}.api.commercecloud.salesforce.com/shopper/auth/v1"),Op(Ig,"apiPaths",{authenticateCustomer:"/organizations/{organizationId}/oauth2/login",authorizeCustomer:"/organizations/{organizationId}/oauth2/authorize",authorizePasswordlessCustomer:"/organizations/{organizationId}/oauth2/passwordless/login",getAccessToken:"/organizations/{organizationId}/oauth2/token",getJwksUri:"/organizations/{organizationId}/oauth2/jwks",getPasswordLessAccessToken:"/organizations/{organizationId}/oauth2/passwordless/token",getPasswordResetToken:"/organizations/{organizationId}/oauth2/password/reset",getSessionBridgeAccessToken:"/organizations/{organizationId}/oauth2/session-bridge/token",getTrustedAgentAccessToken:"/organizations/{organizationId}/oauth2/trusted-agent/token",getTrustedAgentAuthorizationToken:"/organizations/{organizationId}/oauth2/trusted-agent/authorize",getTrustedSystemAccessToken:"/organizations/{organizationId}/oauth2/trusted-system/token",getUserInfo:"/organizations/{organizationId}/oauth2/userinfo",getWellknownOpenidConfiguration:"/organizations/{organizationId}/oauth2/.well-known/openid-configuration",introspectToken:"/organizations/{organizationId}/oauth2/introspect",logoutCustomer:"/organizations/{organizationId}/oauth2/logout",resetPassword:"/organizations/{organizationId}/oauth2/password/action",revokeToken:"/organizations/{organizationId}/oauth2/revoke"}),Op(Ig,"paramKeys",{authenticateCustomer:["organizationId","redirect_uri","channel_id","client_id","response_type","state","scope","usid","code_challenge"],authenticateCustomerRequired:["organizationId","redirect_uri","channel_id"],authorizeCustomer:["organizationId","redirect_uri","response_type","client_id","scope","state","usid","hint","channel_id","code_challenge","ui_locales"],authorizeCustomerRequired:["organizationId","redirect_uri","response_type","client_id"],authorizePasswordlessCustomer:["organizationId","user_id","mode","channel_id","locale","usid","callback_uri"],authorizePasswordlessCustomerRequired:["organizationId","user_id","mode","channel_id"],getAccessToken:["organizationId","grant_type","refresh_token","code","usid","redirect_uri","code_verifier","client_id","channel_id","dnt"],getAccessTokenRequired:["organizationId","grant_type"],getJwksUri:["organizationId"],getJwksUriRequired:["organizationId"],getPasswordLessAccessToken:["organizationId","grant_type","hint","pwdless_login_token","client_id","code_verifier"],getPasswordLessAccessTokenRequired:["organizationId","grant_type","hint","pwdless_login_token"],getPasswordResetToken:["organizationId","user_id","mode","channel_id","locale","client_id","code_challenge","callback_uri","idp_name","hint"],getPasswordResetTokenRequired:["organizationId","user_id","mode","channel_id"],getSessionBridgeAccessToken:["organizationId","code","client_id","channel_id","code_verifier","dwsid","grant_type","login_id","dwsgst","dwsrst","usid","dnt"],getSessionBridgeAccessTokenRequired:["organizationId","code","client_id","channel_id","code_verifier","dwsid","grant_type","login_id"],getTrustedAgentAccessToken:["organizationId","client_id","channel_id","code_verifier","grant_type","login_id","idp_origin","agent_id","usid","dnt","state"],getTrustedAgentAccessTokenRequired:["organizationId","client_id","channel_id","code_verifier","grant_type","login_id","idp_origin"],getTrustedAgentAuthorizationToken:["organizationId","client_id","channel_id","login_id","idp_origin","redirect_uri","response_type","code_challenge"],getTrustedAgentAuthorizationTokenRequired:["organizationId","client_id","channel_id","login_id","idp_origin","redirect_uri","response_type"],getTrustedSystemAccessToken:["organizationId","grant_type","hint","login_id","idp_origin","client_id","channel_id","usid","email_id","dnt"],getTrustedSystemAccessTokenRequired:["organizationId","grant_type","hint","login_id","idp_origin","client_id","channel_id"],getUserInfo:["organizationId","channel_id"],getUserInfoRequired:["organizationId"],getWellknownOpenidConfiguration:["organizationId"],getWellknownOpenidConfigurationRequired:["organizationId"],introspectToken:["organizationId","token","token_type_hint"],introspectTokenRequired:["organizationId","token"],logoutCustomer:["organizationId","client_id","refresh_token","channel_id","hint"],logoutCustomerRequired:["organizationId","client_id","refresh_token"],resetPassword:["organizationId","client_id","pwd_action_token","code_verifier","channel_id","new_password","hint"],resetPasswordRequired:["organizationId","client_id","pwd_action_token","code_verifier","channel_id"],revokeToken:["organizationId","token","token_type_hint"],revokeTokenRequired:["organizationId","token"]});var Og=["hint","redirectURI","usid"],Cg=["hint","redirectURI","usid"],Sg=["dnt","redirectURI","usid"];function Pg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Tg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pg(Object(r),!0).forEach((function(t){Op(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var zg=$i?btoa:function(e){return Buffer.from(e).toString("base64")},Ag=function(e){var t,r,n=new URL(e),i=new URLSearchParams(n.search),o=null!==(t=i.get("usid"))&&void 0!==t?t:"";return{code:null!==(r=i.get("code"))&&void 0!==r?r:"",usid:o}},Eg=function(){return n=r(String(+new Date),{entropy:!0}),e(t,128,(function(e){return new Uint8Array(e).map((function(){return 256*n()}))}))();var n},jg=function(){var e=yi(Vi.mark((function e(t){var r,n,i,o,a,s,c;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=function(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},n="",!$i||!window.crypto){e.next=12;break}return i=new TextEncoder,o=i.encode(t),e.next=7,window.crypto.subtle.digest("SHA-256",o);case 7:a=e.sent,s=btoa(String.fromCharCode.apply(String,Sp(new Uint8Array(a)))),n=r(s),e.next=16;break;case 12:return e.next=14,import("crypto");case 14:c=e.sent,n=r(c.default.createHash("sha256").update(t).digest("base64"));case 16:if(0!==n.length){e.next=18;break}throw new Error("Problem generating code challenge");case 18:return e.abrupt("return",n);case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function Rg(e){return Ug.apply(this,arguments)}function Ug(){return(Ug=yi(Vi.mark((function e(t){var r,n,i,o,a,s,c,u,f,l,d,h,p,g,v,y;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.slasClient,i=t.codeVerifier,o=t.parameters,a=t.privateClient,s={},void 0!==a&&a){e.next=6;break}return e.next=5,jg(i);case 5:s.codeChallenge=e.sent;case 6:return(c=new Ig(n.clientConfig)).clientConfig.fetchOptions=Tg(Tg({},n.clientConfig.fetchOptions),{},{redirect:$i?"follow":"manual"}),u=o.hint,f=o.redirectURI,l=o.usid,d=Ip(o,Og),h={parameters:Tg(Tg(Tg(Tg({},d),{},{client_id:n.clientConfig.parameters.clientId,channel_id:n.clientConfig.parameters.siteId},s.codeChallenge&&{code_challenge:s.codeChallenge}),u&&{hint:u}),{},{organizationId:n.clientConfig.parameters.organizationId,redirect_uri:f,response_type:"code"},l&&{usid:l})},e.next=12,c.authorizeCustomer(h,!0);case 12:if(p=e.sent,g=(null===(r=p.headers)||void 0===r?void 0:r.get("location"))||p.url,v=new URL(g),y=Object.fromEntries(v.searchParams.entries()),!(p.status>=400||y.error)){e.next=18;break}throw new pg(p);case 18:return e.abrupt("return",Tg({url:g},Ag(g)));case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Lg(e){return qg.apply(this,arguments)}function qg(){return(qg=yi(Vi.mark((function e(t){var r,n,i,o,a,s,c,u,f,l,d,h,p,g;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.slasClient,n=t.parameters,i=t.privateClient,o=void 0!==i&&i,a=n.hint,s=n.redirectURI,c=n.usid,u=Ip(n,Cg),f=Eg(),l={},o){e.next=8;break}return e.next=7,jg(f);case 7:l.codeChallenge=e.sent;case 8:return d=Ig.apiPaths.authorizeCustomer,h={organizationId:r.clientConfig.parameters.organizationId,shortCode:r.clientConfig.parameters.shortCode},p=Tg(Tg(Tg({},u),{},{client_id:r.clientConfig.parameters.clientId,channel_id:r.clientConfig.parameters.siteId},l.codeChallenge&&{code_challenge:l.codeChallenge}),{},{hint:a,redirect_uri:s,response_type:"code"},c&&{usid:c}),g=new wg(d,r.clientConfig.baseUri,{pathParams:h,queryParams:p,origin:r.clientConfig.proxy}),e.abrupt("return",{url:g.toString(),codeVerifier:f});case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Mg(e){return Bg.apply(this,arguments)}function Bg(){return(Bg=yi(Vi.mark((function e(t){var r,n,i,o,a,s,c;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.slasClient,n=t.credentials,i=t.parameters,o=!!n.clientSecret,a=Tg(Tg(Tg({client_id:r.clientConfig.parameters.clientId,channel_id:r.clientConfig.parameters.siteId,code:i.code,organizationId:r.clientConfig.parameters.organizationId},!o&&n.codeVerifier&&{code_verifier:n.codeVerifier}),{},{grant_type:o?"authorization_code":"authorization_code_pkce",redirect_uri:i.redirectURI},void 0!==i.dnt&&{dnt:i.dnt.toString()}),i.usid&&{usid:i.usid}),!n.clientSecret){e.next=7;break}return s="Basic ".concat(zg("".concat(r.clientConfig.parameters.clientId,":").concat(n.clientSecret))),c={headers:{Authorization:s},body:a},e.abrupt("return",r.getAccessToken(c));case 7:return e.abrupt("return",r.getAccessToken({body:a}));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Fg(e){return Ng.apply(this,arguments)}function Ng(){return(Ng=yi(Vi.mark((function e(t){var r,n,i,o,a;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.slasClient,n=t.parameters,i=t.credentials,r.clientConfig.parameters.siteId){e.next=3;break}throw new Error("Required argument channel_id is not provided through clientConfig.parameters.siteId");case 3:return o="Basic ".concat(zg("".concat(r.clientConfig.parameters.clientId,":").concat(i.clientSecret))),a={headers:{Authorization:o},body:Tg(Tg({grant_type:"client_credentials",channel_id:r.clientConfig.parameters.siteId},n.usid&&{usid:n.usid}),void 0!==n.dnt&&{dnt:n.dnt.toString()})},e.abrupt("return",r.getAccessToken(a));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wg(e){return Dg.apply(this,arguments)}function Dg(){return(Dg=yi(Vi.mark((function e(t){var r,n,i,o,a,s,c,u,f;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.slasClient,n=t.parameters,i=Eg(),o=n.dnt,a=n.redirectURI,s=n.usid,c=Ip(n,Sg),e.next=5,Rg({slasClient:r,codeVerifier:i,parameters:Tg(Tg({},c),{},{redirectURI:a,hint:"guest"},s&&{usid:s}),privateClient:!1});case 5:return u=e.sent,f=Tg({client_id:r.clientConfig.parameters.clientId,channel_id:r.clientConfig.parameters.siteId,code:u.code,code_verifier:i,grant_type:"authorization_code_pkce",redirect_uri:a,usid:u.usid},void 0!==o&&{dnt:o.toString()}),e.abrupt("return",r.getAccessToken({body:f}));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Gg(e){return Hg.apply(this,arguments)}function Hg(){return(Hg=yi(Vi.mark((function e(t){var r,n,i,o,a,s,c,u,f,l,d,h,p,g,v,y,m,b,w,k,x;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.slasClient,i=t.credentials,o=t.parameters,a=t.body,s=Eg(),e.next=4,jg(s);case 4:return c=e.sent,(u=new Ig(n.clientConfig)).clientConfig.fetchOptions=Tg(Tg({},n.clientConfig.fetchOptions),{},{redirect:$i?"follow":"manual"}),f="Basic ".concat(zg("".concat(i.username,":").concat(i.password))),l=o.dnt,d=o.usid,h=o.redirectURI,p={headers:{Authorization:f},parameters:{organizationId:n.clientConfig.parameters.organizationId},body:Tg(Tg({},a||{}),{},{redirect_uri:h,client_id:n.clientConfig.parameters.clientId,code_challenge:c,channel_id:n.clientConfig.parameters.siteId},d&&{usid:d})},e.next=12,u.authenticateCustomer(p,!0);case 12:if(g=e.sent,v=(null===(r=g.headers)||void 0===r?void 0:r.get("location"))||g.url,y=new URL(v),m=Object.fromEntries(y.searchParams.entries()),!(g.status>=400||m.error)){e.next=18;break}throw new pg(g);case 18:if(b=Ag(v),w=Tg({client_id:n.clientConfig.parameters.clientId,channel_id:n.clientConfig.parameters.siteId,code:b.code,code_verifier:s,grant_type:"authorization_code_pkce",organizationId:n.clientConfig.parameters.organizationId,redirect_uri:o.redirectURI,usid:b.usid},void 0!==l&&{dnt:l.toString()}),!i.clientSecret){e.next=24;break}return k="Basic ".concat(zg("".concat(n.clientConfig.parameters.clientId,":").concat(i.clientSecret))),x={headers:{Authorization:k},body:w},e.abrupt("return",n.getAccessToken(x));case 24:return e.abrupt("return",n.getAccessToken({body:w}));case 25:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vg(e){return $g.apply(this,arguments)}function $g(){return($g=yi(Vi.mark((function e(t){var r,n,i,o,a;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.slasClient,n=t.credentials,i=t.parameters,n.clientSecret){e.next=3;break}throw new Error("Required argument client secret is not provided");case 3:if(r.clientConfig.parameters.siteId){e.next=5;break}throw new Error("Required argument channel_id is not provided through clientConfig.parameters.siteId");case 5:if(i.mode){e.next=7;break}throw new Error("Required argument mode is not provided through parameters");case 7:if(i.userid){e.next=9;break}throw new Error("Required argument userid is not provided through parameters");case 9:return o="Basic ".concat(zg("".concat(r.clientConfig.parameters.clientId,":").concat(n.clientSecret))),a=Tg(Tg(Tg({user_id:i.userid,mode:i.mode},i.locale&&{locale:i.locale}),i.usid&&{usid:i.usid}),{},{channel_id:r.clientConfig.parameters.siteId},i.callbackURI&&{callback_uri:i.callbackURI}),e.abrupt("return",r.authorizePasswordlessCustomer({headers:{Authorization:o},parameters:{organizationId:r.clientConfig.parameters.organizationId},body:a},!0));case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Yg(e){return Jg.apply(this,arguments)}function Jg(){return(Jg=yi(Vi.mark((function e(t){var r,n,i,o,a,s;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.slasClient,n=t.credentials,i=t.parameters,n.clientSecret){e.next=3;break}throw new Error("Required argument client secret is not provided");case 3:if(r.clientConfig.parameters.organizationId){e.next=5;break}throw new Error("Required argument organizationId is not provided through clientConfig.parameters.organizationId");case 5:if(i.pwdlessLoginToken){e.next=7;break}throw new Error("Required argument pwdlessLoginToken is not provided through parameters");case 7:return o=Eg(),a="Basic ".concat(zg("".concat(r.clientConfig.parameters.clientId,":").concat(n.clientSecret))),s=Tg({grant_type:"client_credentials",hint:"pwdless_login",pwdless_login_token:i.pwdlessLoginToken,code_verifier:o},i.dnt&&{dnt:i.dnt}),e.abrupt("return",r.getPasswordLessAccessToken({headers:{Authorization:a},parameters:{organizationId:r.clientConfig.parameters.organizationId},body:s}));case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Kg(e){var t=e.slasClient,r=e.parameters,n=e.credentials,i=Tg({grant_type:"refresh_token",refresh_token:r.refreshToken,client_id:t.clientConfig.parameters.clientId,channel_id:t.clientConfig.parameters.siteId},void 0!==r.dnt&&{dnt:r.dnt.toString()});if(n&&n.clientSecret){var o={headers:{Authorization:"Basic ".concat(zg("".concat(t.clientConfig.parameters.clientId,":").concat(n.clientSecret)))},body:i};return t.getAccessToken(o)}return t.getAccessToken({body:i})}function Qg(e){var t=e.slasClient,r=e.parameters;return t.logoutCustomer({headers:{Authorization:"Bearer ".concat(r.accessToken)},parameters:{refresh_token:r.refreshToken,client_id:t.clientConfig.parameters.clientId,channel_id:t.clientConfig.parameters.siteId}})}var Xg=So.find,Zg=!0;"find"in[]&&Array(1).find((function(){Zg=!1})),Ut({target:"Array",proto:!0,forced:Zg},{find:function(e){return Xg(this,e,arguments.length>1?arguments[1]:void 0)}}),$a("find");var ev=vt.includes,tv=u((function(){return!Array(1).includes()}));Ut({target:"Array",proto:!0,forced:tv},{includes:function(e){return ev(this,e,arguments.length>1?arguments[1]:void 0)}}),$a("includes");var rv=x("".indexOf);Ut({target:"String",proto:!0,forced:!Rp("includes")},{includes:function(e){return!!~rv(ro(z(this)),ro(Ep(e)),arguments.length>1?arguments[1]:void 0)}});var nv=mf.UNSUPPORTED_Y,iv=Math.min,ov=[].push,av=x(/./.exec),sv=x(ov),cv=x("".slice);qf("split",(function(e,t,r){var n;return n="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,r){var n=ro(z(this)),i=void 0===r?4294967295:r>>>0;if(0===i)return[];if(void 0===e)return[n];if(!zp(e))return h(t,n,e,i);for(var o,a,s,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,l=new RegExp(e.source,u+"g");(o=h(Rf,l,n))&&!((a=l.lastIndex)>f&&(sv(c,cv(n,f,o.index)),o.length>1&&o.index<n.length&&wr(ov,c,po(o,1)),s=o[0].length,f=a,c.length>=i));)l.lastIndex===o.index&&l.lastIndex++;return f===n.length?!s&&av(l,"")||sv(c,""):sv(c,cv(n,f)),c.length>i?po(c,0,i):c}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:h(t,this,e,r)}:t,[function(t,r){var i=z(this),o=null==t?void 0:Q(t,e);return o?h(o,t,i,r):h(n,ro(i),t,r)},function(e,i){var o=Te(this),a=ro(e),s=r(n,o,a,i,n!==t);if(s.done)return s.value;var c=vr(o,RegExp),u=o.unicode,f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(nv?"g":"y"),l=new c(nv?"^(?:"+o.source+")":o,f),d=void 0===i?4294967295:i>>>0;if(0===d)return[];if(0===a.length)return null===Ff(l,a)?[a]:[];for(var h=0,p=0,g=[];p<a.length;){l.lastIndex=nv?0:p;var v,y=Ff(l,nv?cv(a,p):a);if(null===y||(v=iv(ht(l.lastIndex+(nv?p:0)),a.length))===h)p=tp(a,p,u);else{if(sv(g,cv(a,h,p)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(sv(g,y[m]),g.length===d)return g;p=h=v}}return sv(g,cv(a,h)),g}]}),!!u((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),nv);var uv=ba("slice"),fv=ge("species"),lv=Array,dv=Math.max;Ut({target:"Array",proto:!0,forced:!uv},{slice:function(e,t){var r,n,i,o=A(this),a=pt(o),s=lt(e,a),c=lt(void 0===t?a:t,a);if(ko(o)&&(r=o.constructor,(dr(r)&&(r===lv||ko(r.prototype))||j(r)&&null===(r=r[fv]))&&(r=void 0),r===lv||void 0===r))return Ir(o,s,c);for(n=new(void 0===r?lv:r)(dv(c-s,0)),i=0;s<c;s++,i++)s in o&&fo(n,i,o[s]);return n.length=i,n}});function hv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hv(Object(r),!0).forEach((function(t){Op(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var gv=function(e){var t=!1;return e&&(t=Boolean(Object.keys(e).find((function(e){return"content-type"===e.toLowerCase()})))),t},vv=function(){var e=yi(Vi.mark((function e(t){var r,n,i,o,a,s,c,u,f,l,d,h,p,g,v,y,m,b;return Vi.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.options,s=t.clientConfig,c=t.rawResponse,u=["apiName","endpointPath","organizationId","shortCode"],f=pv(pv({},s.parameters),null==a?void 0:a.customApiPathParameters),u.forEach((function(e){if(!f[e])throw new Error("Missing required property needed in options.customApiPathParameters or clientConfig.parameters: ".concat(e))})),f.apiVersion||(f.apiVersion="v1"),l=s,s.baseUri||(l=pv(pv({},s),{},{baseUri:"https://{shortCode}.api.commercecloud.salesforce.com/custom/{apiName}/{apiVersion}"})),d=Boolean(!(null!==(r=a.parameters)&&void 0!==r&&r.siteId)&&(null==s||null===(n=s.parameters)||void 0===n?void 0:n.siteId)),h=gv(a.headers)||gv(l.headers),p=a,h&&!d||(p=pv(pv({},a),{},{headers:pv(pv({},a.headers),!h&&{"Content-Type":"application/json"}),parameters:pv(pv({},a.parameters),d&&{siteId:s.parameters.siteId})})),g=(null==a||null===(i=a.customApiPathParameters)||void 0===i?void 0:i.endpointPath)||(null===(o=s.parameters)||void 0===o?void 0:o.endpointPath),v=g,y={},g.includes("/")&&(m=g.split("/").filter((function(e){return""!==e})),v="",m.forEach((function(e,t){var r="endpointPathSegment".concat(t);y[r]=e,v+="{".concat(r,"}/")})),v=v.slice(0,-1)),b=new wg("/organizations/{organizationId}/".concat(v),l.baseUri,{pathParams:pv(pv({},f),y),queryParams:p.parameters,origin:l.proxy}),e.abrupt("return",yg(b.toString(),p,l,c));case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();export{Rg as authorize,Lg as authorizeIDP,Vg as authorizePasswordless,vv as callCustomEndpoint,Eg as createCodeVerifier,yg as doFetch,mg as encodeSCAPISpecialCharacters,Qi as fetch,jg as generateCodeChallenge,Ag as getCodeAndUsidFromUrl,Yg as getPasswordLessAccessToken,Ji as globalObject,Ki as hasFetchAvailable,$i as isBrowser,Yi as isNode,Wg as loginGuestUser,Fg as loginGuestUserPrivate,Mg as loginIDPUser,Gg as loginRegisteredUserB2C,Qg as logout,Kg as refreshAccessToken,zg as stringToBase64};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extends the Error class with the the error being a combination of status code
|
|
3
|
-
* and text retrieved from the response.
|
|
4
|
-
*
|
|
5
|
-
* @class ResponseError
|
|
6
|
-
* @extends Error
|
|
7
|
-
*/
|
|
8
|
-
declare class ResponseError extends Error {
|
|
9
|
-
response: Response;
|
|
10
|
-
constructor(response: Response);
|
|
11
|
-
}
|
|
12
|
-
export { ResponseError as default };
|
package/lib/responseError.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,n,e){return t(e={path:n,exports:{},require:function(t,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&e.path)}},e.exports),e.exports}var e,r,o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},c=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f=!u((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),a=Function.prototype.call,l=f?a.bind(a):function(){return a.apply(a,arguments)},p={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,y={f:s&&!p.call({1:2},1)?function(t){var n=s(this,t);return!!n&&n.enumerable}:p},b=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},v=Function.prototype,h=v.bind,d=v.call,g=f&&h.bind(d,d),m=f?function(t){return t&&g(t)}:function(t){return t&&function(){return d.apply(t,arguments)}},w=m({}.toString),O=m("".slice),j=function(t){return O(w(t),8,-1)},S=Object,P=m("".split),E=u((function(){return!S("z").propertyIsEnumerable(0)}))?function(t){return"String"==j(t)?P(t,""):S(t)}:S,T=TypeError,R=function(t){if(null==t)throw T("Can't call method on "+t);return t},_=function(t){return E(R(t))},x=function(t){return"function"==typeof t},F=function(t){return"object"==typeof t?null!==t:x(t)},A=function(t){return x(t)?t:void 0},C=function(t,n){return arguments.length<2?A(i[t]):i[t]&&i[t][n]},M=m({}.isPrototypeOf),I=C("navigator","userAgent")||"",k=i.process,z=i.Deno,D=k&&k.versions||z&&z.version,L=D&&D.v8;L&&(r=(e=L.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!r&&I&&(!(e=I.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=I.match(/Chrome\/(\d+)/))&&(r=+e[1]);var B=r,N=!!Object.getOwnPropertySymbols&&!u((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&B&&B<41})),G=N&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,W=Object,q=G?function(t){return"symbol"==typeof t}:function(t){var n=C("Symbol");return x(n)&&M(n.prototype,W(t))},U=String,X=function(t){try{return U(t)}catch(t){return"Object"}},K=TypeError,V=function(t){if(x(t))return t;throw K(X(t)+" is not a function")},Y=TypeError,$=Object.defineProperty,H=function(t,n){try{$(i,t,{value:n,configurable:!0,writable:!0})}catch(e){i[t]=n}return n},J=i["__core-js_shared__"]||H("__core-js_shared__",{}),Q=n((function(t){(t.exports=function(t,n){return J[t]||(J[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.23.4",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.4/LICENSE",source:"https://github.com/zloirock/core-js"})})),Z=Object,tt=function(t){return Z(R(t))},nt=m({}.hasOwnProperty),et=Object.hasOwn||function(t,n){return nt(tt(t),n)},rt=0,ot=Math.random(),it=m(1..toString),ut=function(t){return"Symbol("+(void 0===t?"":t)+")_"+it(++rt+ot,36)},ct=Q("wks"),ft=i.Symbol,at=ft&&ft.for,lt=G?ft:ft&&ft.withoutSetter||ut,pt=function(t){if(!et(ct,t)||!N&&"string"!=typeof ct[t]){var n="Symbol."+t;N&&et(ft,t)?ct[t]=ft[t]:ct[t]=G&&at?at(n):lt(n)}return ct[t]},st=TypeError,yt=pt("toPrimitive"),bt=function(t,n){if(!F(t)||q(t))return t;var e,r,o=null==(e=t[yt])?void 0:V(e);if(o){if(void 0===n&&(n="default"),r=l(o,t,n),!F(r)||q(r))return r;throw st("Can't convert object to primitive value")}return void 0===n&&(n="number"),function(t,n){var e,r;if("string"===n&&x(e=t.toString)&&!F(r=l(e,t)))return r;if(x(e=t.valueOf)&&!F(r=l(e,t)))return r;if("string"!==n&&x(e=t.toString)&&!F(r=l(e,t)))return r;throw Y("Can't convert object to primitive value")}(t,n)},vt=function(t){var n=bt(t,"string");return q(n)?n:n+""},ht=i.document,dt=F(ht)&&F(ht.createElement),gt=function(t){return dt?ht.createElement(t):{}},mt=!c&&!u((function(){return 7!=Object.defineProperty(gt("div"),"a",{get:function(){return 7}}).a})),wt=Object.getOwnPropertyDescriptor,Ot={f:c?wt:function(t,n){if(t=_(t),n=vt(n),mt)try{return wt(t,n)}catch(t){}if(et(t,n))return b(!l(y.f,t,n),t[n])}},jt=c&&u((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),St=String,Pt=TypeError,Et=function(t){if(F(t))return t;throw Pt(St(t)+" is not an object")},Tt=TypeError,Rt=Object.defineProperty,_t=Object.getOwnPropertyDescriptor,xt={f:c?jt?function(t,n,e){if(Et(t),n=vt(n),Et(e),"function"==typeof t&&"prototype"===n&&"value"in e&&"writable"in e&&!e.writable){var r=_t(t,n);r&&r.writable&&(t[n]=e.value,e={configurable:"configurable"in e?e.configurable:r.configurable,enumerable:"enumerable"in e?e.enumerable:r.enumerable,writable:!1})}return Rt(t,n,e)}:Rt:function(t,n,e){if(Et(t),n=vt(n),Et(e),mt)try{return Rt(t,n,e)}catch(t){}if("get"in e||"set"in e)throw Tt("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},Ft=c?function(t,n,e){return xt.f(t,n,b(1,e))}:function(t,n,e){return t[n]=e,t},At=Function.prototype,Ct=c&&Object.getOwnPropertyDescriptor,Mt=et(At,"name"),It={EXISTS:Mt,PROPER:Mt&&"something"===function(){}.name,CONFIGURABLE:Mt&&(!c||c&&Ct(At,"name").configurable)},kt=m(Function.toString);x(J.inspectSource)||(J.inspectSource=function(t){return kt(t)});var zt,Dt,Lt,Bt=J.inspectSource,Nt=i.WeakMap,Gt=x(Nt)&&/native code/.test(Bt(Nt)),Wt=Q("keys"),qt=function(t){return Wt[t]||(Wt[t]=ut(t))},Ut={},Xt=i.TypeError,Kt=i.WeakMap;if(Gt||J.state){var Vt=J.state||(J.state=new Kt),Yt=m(Vt.get),$t=m(Vt.has),Ht=m(Vt.set);zt=function(t,n){if($t(Vt,t))throw new Xt("Object already initialized");return n.facade=t,Ht(Vt,t,n),n},Dt=function(t){return Yt(Vt,t)||{}},Lt=function(t){return $t(Vt,t)}}else{var Jt=qt("state");Ut[Jt]=!0,zt=function(t,n){if(et(t,Jt))throw new Xt("Object already initialized");return n.facade=t,Ft(t,Jt,n),n},Dt=function(t){return et(t,Jt)?t[Jt]:{}},Lt=function(t){return et(t,Jt)}}var Qt={set:zt,get:Dt,has:Lt,enforce:function(t){return Lt(t)?Dt(t):zt(t,{})},getterFor:function(t){return function(n){var e;if(!F(n)||(e=Dt(n)).type!==t)throw Xt("Incompatible receiver, "+t+" required");return e}}},Zt=n((function(t){var n=It.CONFIGURABLE,e=Qt.enforce,r=Qt.get,o=Object.defineProperty,i=c&&!u((function(){return 8!==o((function(){}),"length",{value:8}).length})),f=String(String).split("String"),a=t.exports=function(t,r,u){"Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),u&&u.getter&&(r="get "+r),u&&u.setter&&(r="set "+r),(!et(t,"name")||n&&t.name!==r)&&(c?o(t,"name",{value:r,configurable:!0}):t.name=r),i&&u&&et(u,"arity")&&t.length!==u.arity&&o(t,"length",{value:u.arity});try{u&&et(u,"constructor")&&u.constructor?c&&o(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var a=e(t);return et(a,"source")||(a.source=f.join("string"==typeof r?r:"")),t};Function.prototype.toString=a((function(){return x(this)&&r(this).source||Bt(this)}),"toString")})),tn=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(x(e)&&Zt(e,i,r),r.global)o?t[n]=e:H(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:xt.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},nn=Math.ceil,en=Math.floor,rn=Math.trunc||function(t){var n=+t;return(n>0?en:nn)(n)},on=function(t){var n=+t;return n!=n||0===n?0:rn(n)},un=Math.max,cn=Math.min,fn=Math.min,an=function(t){return(n=t.length)>0?fn(on(n),9007199254740991):0;var n},ln=function(t){return function(n,e,r){var o,i=_(n),u=an(i),c=function(t,n){var e=on(t);return e<0?un(e+n,0):cn(e,n)}(r,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},pn={includes:ln(!0),indexOf:ln(!1)}.indexOf,sn=m([].push),yn=function(t,n){var e,r=_(t),o=0,i=[];for(e in r)!et(Ut,e)&&et(r,e)&&sn(i,e);for(;n.length>o;)et(r,e=n[o++])&&(~pn(i,e)||sn(i,e));return i},bn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vn=bn.concat("length","prototype"),hn={f:Object.getOwnPropertyNames||function(t){return yn(t,vn)}},dn={f:Object.getOwnPropertySymbols},gn=m([].concat),mn=C("Reflect","ownKeys")||function(t){var n=hn.f(Et(t)),e=dn.f;return e?gn(n,e(t)):n},wn=function(t,n,e){for(var r=mn(n),o=xt.f,i=Ot.f,u=0;u<r.length;u++){var c=r[u];et(t,c)||e&&et(e,c)||o(t,c,i(n,c))}},On=/#|\.prototype\./,jn=function(t,n){var e=Pn[Sn(t)];return e==Tn||e!=En&&(x(n)?u(n):!!n)},Sn=jn.normalize=function(t){return String(t).replace(On,".").toLowerCase()},Pn=jn.data={},En=jn.NATIVE="N",Tn=jn.POLYFILL="P",Rn=jn,_n=Ot.f,xn=function(t,n){var e,r,o,u,c,f=t.target,a=t.global,l=t.stat;if(e=a?i:l?i[f]||H(f,{}):(i[f]||{}).prototype)for(r in n){if(u=n[r],o=t.dontCallGetSet?(c=_n(e,r))&&c.value:e[r],!Rn(a?r:f+(l?".":"#")+r,t.forced)&&void 0!==o){if(typeof u==typeof o)continue;wn(u,o)}(t.sham||o&&o.sham)&&Ft(u,"sham",!0),tn(e,r,u,t)}},Fn=Function.prototype,An=Fn.apply,Cn=Fn.call,Mn="object"==typeof Reflect&&Reflect.apply||(f?Cn.bind(An):function(){return Cn.apply(An,arguments)}),In=m([].slice),kn=Function,zn=m([].concat),Dn=m([].join),Ln={},Bn=function(t,n,e){if(!et(Ln,n)){for(var r=[],o=0;o<n;o++)r[o]="a["+o+"]";Ln[n]=kn("C,a","return new C("+Dn(r,",")+")")}return Ln[n](t,e)},Nn=f?kn.bind:function(t){var n=V(this),e=n.prototype,r=In(arguments,1),o=function(){var e=zn(r,In(arguments));return this instanceof o?Bn(n,e.length,e):n.apply(t,e)};return F(e)&&(o.prototype=e),o},Gn={};Gn[pt("toStringTag")]="z";var Wn="[object z]"===String(Gn),qn=pt("toStringTag"),Un=Object,Xn="Arguments"==j(function(){return arguments}()),Kn=Wn?j:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Un(t),qn))?e:Xn?j(n):"Object"==(r=j(n))&&x(n.callee)?"Arguments":r},Vn=function(){},Yn=[],$n=C("Reflect","construct"),Hn=/^\s*(?:class|function)\b/,Jn=m(Hn.exec),Qn=!Hn.exec(Vn),Zn=function(t){if(!x(t))return!1;try{return $n(Vn,Yn,t),!0}catch(t){return!1}},te=function(t){if(!x(t))return!1;switch(Kn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Qn||!!Jn(Hn,Bt(t))}catch(t){return!0}};te.sham=!0;var ne,ee=!$n||u((function(){var t;return Zn(Zn.call)||!Zn(Object)||!Zn((function(){t=!0}))||t}))?te:Zn,re=TypeError,oe=function(t){if(ee(t))return t;throw re(X(t)+" is not a constructor")},ie=Object.keys||function(t){return yn(t,bn)},ue={f:c&&!jt?Object.defineProperties:function(t,n){Et(t);for(var e,r=_(n),o=ie(n),i=o.length,u=0;i>u;)xt.f(t,e=o[u++],r[e]);return t}},ce=C("document","documentElement"),fe=qt("IE_PROTO"),ae=function(){},le=function(t){return"<script>"+t+"<\/script>"},pe=function(t){t.write(le("")),t.close();var n=t.parentWindow.Object;return t=null,n},se=function(){try{ne=new ActiveXObject("htmlfile")}catch(t){}var t,n;se="undefined"!=typeof document?document.domain&&ne?pe(ne):((n=gt("iframe")).style.display="none",ce.appendChild(n),n.src=String("javascript:"),(t=n.contentWindow.document).open(),t.write(le("document.F=Object")),t.close(),t.F):pe(ne);for(var e=bn.length;e--;)delete se.prototype[bn[e]];return se()};Ut[fe]=!0;var ye=Object.create||function(t,n){var e;return null!==t?(ae.prototype=Et(t),e=new ae,ae.prototype=null,e[fe]=t):e=se(),void 0===n?e:ue.f(e,n)},be=C("Reflect","construct"),ve=Object.prototype,he=[].push,de=u((function(){function t(){}return!(be((function(){}),[],t)instanceof t)})),ge=!u((function(){be((function(){}))})),me=de||ge;xn({target:"Reflect",stat:!0,forced:me,sham:me},{construct:function(t,n){oe(t),Et(n);var e=arguments.length<3?t:oe(arguments[2]);if(ge&&!de)return be(t,n,e);if(t==e){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var r=[null];return Mn(he,r,n),new(Mn(Nn,t,r))}var o=e.prototype,i=ye(F(o)?o:ve),u=Mn(t,i,n);return F(u)?u:i}});var we=Wn?{}.toString:function(){return"[object "+Kn(this)+"]"};Wn||tn(Object.prototype,"toString",we,{unsafe:!0});var Oe,je=Array.isArray||function(t){return"Array"==j(t)},Se=TypeError,Pe=function(t){if(t>9007199254740991)throw Se("Maximum allowed index exceeded");return t},Ee=function(t,n,e){var r=vt(n);r in t?xt.f(t,r,b(0,e)):t[r]=e},Te=pt("species"),Re=Array,_e=function(t,n){return new(function(t){var n;return je(t)&&(n=t.constructor,(ee(n)&&(n===Re||je(n.prototype))||F(n)&&null===(n=n[Te]))&&(n=void 0)),void 0===n?Re:n}(t))(0===n?0:n)},xe=pt("species"),Fe=pt("isConcatSpreadable"),Ae=B>=51||!u((function(){var t=[];return t[Fe]=!1,t.concat()[0]!==t})),Ce=(Oe="concat",B>=51||!u((function(){var t=[];return(t.constructor={})[xe]=function(){return{foo:1}},1!==t[Oe](Boolean).foo}))),Me=function(t){if(!F(t))return!1;var n=t[Fe];return void 0!==n?!!n:je(t)};function Ie(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ke(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ze(t,n){return(ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(t,n)}function De(t){return(De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Le(t,n){if(n&&("object"===De(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return ke(t)}function Be(t){return(Be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ne(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Ge(t,n,e){return(Ge=Ne()?Reflect.construct.bind():function(t,n,e){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(t,r));return e&&ze(o,e.prototype),o}).apply(null,arguments)}function We(t){var n="function"==typeof Map?new Map:void 0;return(We=function(t){if(null===t||(e=t,-1===Function.toString.call(e).indexOf("[native code]")))return t;var e;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return Ge(t,arguments,Be(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ze(r,t)})(t)}function qe(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=Be(t);if(n){var o=Be(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Le(this,e)}}xn({target:"Array",proto:!0,arity:1,forced:!Ae||!Ce},{concat:function(t){var n,e,r,o,i,u=tt(this),c=_e(u,0),f=0;for(n=-1,r=arguments.length;n<r;n++)if(Me(i=-1===n?u:arguments[n]))for(o=an(i),Pe(f+o),e=0;e<o;e++,f++)e in i&&Ee(c,f,i[e]);else Pe(f+1),Ee(c,f++,i);return c.length=f,c}});var Ue=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&ze(t,n)}(i,We(Error));var n,e,r,o=qe(i);function i(t){var n,e,r,u;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,i),n=o.call(this,"".concat(t.status," ").concat(t.statusText)),e=ke(n),u=void 0,(r="response")in e?Object.defineProperty(e,r,{value:u,enumerable:!0,configurable:!0,writable:!0}):e[r]=u,n.response=t,n}return n=i,e&&Ie(n.prototype,e),r&&Ie(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}();exports.default=Ue;
|
package/lib/responseError.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extends the Error class with the the error being a combination of status code
|
|
3
|
-
* and text retrieved from the response.
|
|
4
|
-
*
|
|
5
|
-
* @class ResponseError
|
|
6
|
-
* @extends Error
|
|
7
|
-
*/
|
|
8
|
-
declare class ResponseError extends Error {
|
|
9
|
-
response: Response;
|
|
10
|
-
constructor(response: Response);
|
|
11
|
-
}
|
|
12
|
-
export { ResponseError as default };
|
package/lib/responseError.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,n,e){return t(e={path:n,exports:{},require:function(t,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&e.path)}},e.exports),e.exports}var e,r,o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},c=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f=!u((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),a=Function.prototype.call,l=f?a.bind(a):function(){return a.apply(a,arguments)},p={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,y={f:s&&!p.call({1:2},1)?function(t){var n=s(this,t);return!!n&&n.enumerable}:p},b=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},v=Function.prototype,h=v.bind,d=v.call,g=f&&h.bind(d,d),m=f?function(t){return t&&g(t)}:function(t){return t&&function(){return d.apply(t,arguments)}},w=m({}.toString),O=m("".slice),j=function(t){return O(w(t),8,-1)},S=Object,P=m("".split),E=u((function(){return!S("z").propertyIsEnumerable(0)}))?function(t){return"String"==j(t)?P(t,""):S(t)}:S,T=TypeError,R=function(t){if(null==t)throw T("Can't call method on "+t);return t},x=function(t){return E(R(t))},_=function(t){return"function"==typeof t},F=function(t){return"object"==typeof t?null!==t:_(t)},A=function(t){return _(t)?t:void 0},C=function(t,n){return arguments.length<2?A(i[t]):i[t]&&i[t][n]},M=m({}.isPrototypeOf),I=C("navigator","userAgent")||"",k=i.process,z=i.Deno,D=k&&k.versions||z&&z.version,L=D&&D.v8;L&&(r=(e=L.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!r&&I&&(!(e=I.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=I.match(/Chrome\/(\d+)/))&&(r=+e[1]);var B=r,N=!!Object.getOwnPropertySymbols&&!u((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&B&&B<41})),G=N&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,W=Object,q=G?function(t){return"symbol"==typeof t}:function(t){var n=C("Symbol");return _(n)&&M(n.prototype,W(t))},U=String,X=function(t){try{return U(t)}catch(t){return"Object"}},K=TypeError,V=function(t){if(_(t))return t;throw K(X(t)+" is not a function")},Y=TypeError,$=Object.defineProperty,H=function(t,n){try{$(i,t,{value:n,configurable:!0,writable:!0})}catch(e){i[t]=n}return n},J=i["__core-js_shared__"]||H("__core-js_shared__",{}),Q=n((function(t){(t.exports=function(t,n){return J[t]||(J[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.23.4",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.4/LICENSE",source:"https://github.com/zloirock/core-js"})})),Z=Object,tt=function(t){return Z(R(t))},nt=m({}.hasOwnProperty),et=Object.hasOwn||function(t,n){return nt(tt(t),n)},rt=0,ot=Math.random(),it=m(1..toString),ut=function(t){return"Symbol("+(void 0===t?"":t)+")_"+it(++rt+ot,36)},ct=Q("wks"),ft=i.Symbol,at=ft&&ft.for,lt=G?ft:ft&&ft.withoutSetter||ut,pt=function(t){if(!et(ct,t)||!N&&"string"!=typeof ct[t]){var n="Symbol."+t;N&&et(ft,t)?ct[t]=ft[t]:ct[t]=G&&at?at(n):lt(n)}return ct[t]},st=TypeError,yt=pt("toPrimitive"),bt=function(t,n){if(!F(t)||q(t))return t;var e,r,o=null==(e=t[yt])?void 0:V(e);if(o){if(void 0===n&&(n="default"),r=l(o,t,n),!F(r)||q(r))return r;throw st("Can't convert object to primitive value")}return void 0===n&&(n="number"),function(t,n){var e,r;if("string"===n&&_(e=t.toString)&&!F(r=l(e,t)))return r;if(_(e=t.valueOf)&&!F(r=l(e,t)))return r;if("string"!==n&&_(e=t.toString)&&!F(r=l(e,t)))return r;throw Y("Can't convert object to primitive value")}(t,n)},vt=function(t){var n=bt(t,"string");return q(n)?n:n+""},ht=i.document,dt=F(ht)&&F(ht.createElement),gt=function(t){return dt?ht.createElement(t):{}},mt=!c&&!u((function(){return 7!=Object.defineProperty(gt("div"),"a",{get:function(){return 7}}).a})),wt=Object.getOwnPropertyDescriptor,Ot={f:c?wt:function(t,n){if(t=x(t),n=vt(n),mt)try{return wt(t,n)}catch(t){}if(et(t,n))return b(!l(y.f,t,n),t[n])}},jt=c&&u((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),St=String,Pt=TypeError,Et=function(t){if(F(t))return t;throw Pt(St(t)+" is not an object")},Tt=TypeError,Rt=Object.defineProperty,xt=Object.getOwnPropertyDescriptor,_t={f:c?jt?function(t,n,e){if(Et(t),n=vt(n),Et(e),"function"==typeof t&&"prototype"===n&&"value"in e&&"writable"in e&&!e.writable){var r=xt(t,n);r&&r.writable&&(t[n]=e.value,e={configurable:"configurable"in e?e.configurable:r.configurable,enumerable:"enumerable"in e?e.enumerable:r.enumerable,writable:!1})}return Rt(t,n,e)}:Rt:function(t,n,e){if(Et(t),n=vt(n),Et(e),mt)try{return Rt(t,n,e)}catch(t){}if("get"in e||"set"in e)throw Tt("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},Ft=c?function(t,n,e){return _t.f(t,n,b(1,e))}:function(t,n,e){return t[n]=e,t},At=Function.prototype,Ct=c&&Object.getOwnPropertyDescriptor,Mt=et(At,"name"),It={EXISTS:Mt,PROPER:Mt&&"something"===function(){}.name,CONFIGURABLE:Mt&&(!c||c&&Ct(At,"name").configurable)},kt=m(Function.toString);_(J.inspectSource)||(J.inspectSource=function(t){return kt(t)});var zt,Dt,Lt,Bt=J.inspectSource,Nt=i.WeakMap,Gt=_(Nt)&&/native code/.test(Bt(Nt)),Wt=Q("keys"),qt=function(t){return Wt[t]||(Wt[t]=ut(t))},Ut={},Xt=i.TypeError,Kt=i.WeakMap;if(Gt||J.state){var Vt=J.state||(J.state=new Kt),Yt=m(Vt.get),$t=m(Vt.has),Ht=m(Vt.set);zt=function(t,n){if($t(Vt,t))throw new Xt("Object already initialized");return n.facade=t,Ht(Vt,t,n),n},Dt=function(t){return Yt(Vt,t)||{}},Lt=function(t){return $t(Vt,t)}}else{var Jt=qt("state");Ut[Jt]=!0,zt=function(t,n){if(et(t,Jt))throw new Xt("Object already initialized");return n.facade=t,Ft(t,Jt,n),n},Dt=function(t){return et(t,Jt)?t[Jt]:{}},Lt=function(t){return et(t,Jt)}}var Qt={set:zt,get:Dt,has:Lt,enforce:function(t){return Lt(t)?Dt(t):zt(t,{})},getterFor:function(t){return function(n){var e;if(!F(n)||(e=Dt(n)).type!==t)throw Xt("Incompatible receiver, "+t+" required");return e}}},Zt=n((function(t){var n=It.CONFIGURABLE,e=Qt.enforce,r=Qt.get,o=Object.defineProperty,i=c&&!u((function(){return 8!==o((function(){}),"length",{value:8}).length})),f=String(String).split("String"),a=t.exports=function(t,r,u){"Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),u&&u.getter&&(r="get "+r),u&&u.setter&&(r="set "+r),(!et(t,"name")||n&&t.name!==r)&&(c?o(t,"name",{value:r,configurable:!0}):t.name=r),i&&u&&et(u,"arity")&&t.length!==u.arity&&o(t,"length",{value:u.arity});try{u&&et(u,"constructor")&&u.constructor?c&&o(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var a=e(t);return et(a,"source")||(a.source=f.join("string"==typeof r?r:"")),t};Function.prototype.toString=a((function(){return _(this)&&r(this).source||Bt(this)}),"toString")})),tn=function(t,n,e,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:n;if(_(e)&&Zt(e,i,r),r.global)o?t[n]=e:H(n,e);else{try{r.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=e:_t.f(t,n,{value:e,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},nn=Math.ceil,en=Math.floor,rn=Math.trunc||function(t){var n=+t;return(n>0?en:nn)(n)},on=function(t){var n=+t;return n!=n||0===n?0:rn(n)},un=Math.max,cn=Math.min,fn=Math.min,an=function(t){return(n=t.length)>0?fn(on(n),9007199254740991):0;var n},ln=function(t){return function(n,e,r){var o,i=x(n),u=an(i),c=function(t,n){var e=on(t);return e<0?un(e+n,0):cn(e,n)}(r,u);if(t&&e!=e){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},pn={includes:ln(!0),indexOf:ln(!1)}.indexOf,sn=m([].push),yn=function(t,n){var e,r=x(t),o=0,i=[];for(e in r)!et(Ut,e)&&et(r,e)&&sn(i,e);for(;n.length>o;)et(r,e=n[o++])&&(~pn(i,e)||sn(i,e));return i},bn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vn=bn.concat("length","prototype"),hn={f:Object.getOwnPropertyNames||function(t){return yn(t,vn)}},dn={f:Object.getOwnPropertySymbols},gn=m([].concat),mn=C("Reflect","ownKeys")||function(t){var n=hn.f(Et(t)),e=dn.f;return e?gn(n,e(t)):n},wn=function(t,n,e){for(var r=mn(n),o=_t.f,i=Ot.f,u=0;u<r.length;u++){var c=r[u];et(t,c)||e&&et(e,c)||o(t,c,i(n,c))}},On=/#|\.prototype\./,jn=function(t,n){var e=Pn[Sn(t)];return e==Tn||e!=En&&(_(n)?u(n):!!n)},Sn=jn.normalize=function(t){return String(t).replace(On,".").toLowerCase()},Pn=jn.data={},En=jn.NATIVE="N",Tn=jn.POLYFILL="P",Rn=jn,xn=Ot.f,_n=function(t,n){var e,r,o,u,c,f=t.target,a=t.global,l=t.stat;if(e=a?i:l?i[f]||H(f,{}):(i[f]||{}).prototype)for(r in n){if(u=n[r],o=t.dontCallGetSet?(c=xn(e,r))&&c.value:e[r],!Rn(a?r:f+(l?".":"#")+r,t.forced)&&void 0!==o){if(typeof u==typeof o)continue;wn(u,o)}(t.sham||o&&o.sham)&&Ft(u,"sham",!0),tn(e,r,u,t)}},Fn=Function.prototype,An=Fn.apply,Cn=Fn.call,Mn="object"==typeof Reflect&&Reflect.apply||(f?Cn.bind(An):function(){return Cn.apply(An,arguments)}),In=m([].slice),kn=Function,zn=m([].concat),Dn=m([].join),Ln={},Bn=function(t,n,e){if(!et(Ln,n)){for(var r=[],o=0;o<n;o++)r[o]="a["+o+"]";Ln[n]=kn("C,a","return new C("+Dn(r,",")+")")}return Ln[n](t,e)},Nn=f?kn.bind:function(t){var n=V(this),e=n.prototype,r=In(arguments,1),o=function(){var e=zn(r,In(arguments));return this instanceof o?Bn(n,e.length,e):n.apply(t,e)};return F(e)&&(o.prototype=e),o},Gn={};Gn[pt("toStringTag")]="z";var Wn="[object z]"===String(Gn),qn=pt("toStringTag"),Un=Object,Xn="Arguments"==j(function(){return arguments}()),Kn=Wn?j:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Un(t),qn))?e:Xn?j(n):"Object"==(r=j(n))&&_(n.callee)?"Arguments":r},Vn=function(){},Yn=[],$n=C("Reflect","construct"),Hn=/^\s*(?:class|function)\b/,Jn=m(Hn.exec),Qn=!Hn.exec(Vn),Zn=function(t){if(!_(t))return!1;try{return $n(Vn,Yn,t),!0}catch(t){return!1}},te=function(t){if(!_(t))return!1;switch(Kn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Qn||!!Jn(Hn,Bt(t))}catch(t){return!0}};te.sham=!0;var ne,ee=!$n||u((function(){var t;return Zn(Zn.call)||!Zn(Object)||!Zn((function(){t=!0}))||t}))?te:Zn,re=TypeError,oe=function(t){if(ee(t))return t;throw re(X(t)+" is not a constructor")},ie=Object.keys||function(t){return yn(t,bn)},ue={f:c&&!jt?Object.defineProperties:function(t,n){Et(t);for(var e,r=x(n),o=ie(n),i=o.length,u=0;i>u;)_t.f(t,e=o[u++],r[e]);return t}},ce=C("document","documentElement"),fe=qt("IE_PROTO"),ae=function(){},le=function(t){return"<script>"+t+"<\/script>"},pe=function(t){t.write(le("")),t.close();var n=t.parentWindow.Object;return t=null,n},se=function(){try{ne=new ActiveXObject("htmlfile")}catch(t){}var t,n;se="undefined"!=typeof document?document.domain&&ne?pe(ne):((n=gt("iframe")).style.display="none",ce.appendChild(n),n.src=String("javascript:"),(t=n.contentWindow.document).open(),t.write(le("document.F=Object")),t.close(),t.F):pe(ne);for(var e=bn.length;e--;)delete se.prototype[bn[e]];return se()};Ut[fe]=!0;var ye=Object.create||function(t,n){var e;return null!==t?(ae.prototype=Et(t),e=new ae,ae.prototype=null,e[fe]=t):e=se(),void 0===n?e:ue.f(e,n)},be=C("Reflect","construct"),ve=Object.prototype,he=[].push,de=u((function(){function t(){}return!(be((function(){}),[],t)instanceof t)})),ge=!u((function(){be((function(){}))})),me=de||ge;_n({target:"Reflect",stat:!0,forced:me,sham:me},{construct:function(t,n){oe(t),Et(n);var e=arguments.length<3?t:oe(arguments[2]);if(ge&&!de)return be(t,n,e);if(t==e){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var r=[null];return Mn(he,r,n),new(Mn(Nn,t,r))}var o=e.prototype,i=ye(F(o)?o:ve),u=Mn(t,i,n);return F(u)?u:i}});var we=Wn?{}.toString:function(){return"[object "+Kn(this)+"]"};Wn||tn(Object.prototype,"toString",we,{unsafe:!0});var Oe,je=Array.isArray||function(t){return"Array"==j(t)},Se=TypeError,Pe=function(t){if(t>9007199254740991)throw Se("Maximum allowed index exceeded");return t},Ee=function(t,n,e){var r=vt(n);r in t?_t.f(t,r,b(0,e)):t[r]=e},Te=pt("species"),Re=Array,xe=function(t,n){return new(function(t){var n;return je(t)&&(n=t.constructor,(ee(n)&&(n===Re||je(n.prototype))||F(n)&&null===(n=n[Te]))&&(n=void 0)),void 0===n?Re:n}(t))(0===n?0:n)},_e=pt("species"),Fe=pt("isConcatSpreadable"),Ae=B>=51||!u((function(){var t=[];return t[Fe]=!1,t.concat()[0]!==t})),Ce=(Oe="concat",B>=51||!u((function(){var t=[];return(t.constructor={})[_e]=function(){return{foo:1}},1!==t[Oe](Boolean).foo}))),Me=function(t){if(!F(t))return!1;var n=t[Fe];return void 0!==n?!!n:je(t)};function Ie(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ke(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ze(t,n){return(ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(t,n)}function De(t){return(De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Le(t,n){if(n&&("object"===De(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return ke(t)}function Be(t){return(Be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ne(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Ge(t,n,e){return(Ge=Ne()?Reflect.construct.bind():function(t,n,e){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(t,r));return e&&ze(o,e.prototype),o}).apply(null,arguments)}function We(t){var n="function"==typeof Map?new Map:void 0;return(We=function(t){if(null===t||(e=t,-1===Function.toString.call(e).indexOf("[native code]")))return t;var e;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return Ge(t,arguments,Be(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ze(r,t)})(t)}function qe(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=Be(t);if(n){var o=Be(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Le(this,e)}}_n({target:"Array",proto:!0,arity:1,forced:!Ae||!Ce},{concat:function(t){var n,e,r,o,i,u=tt(this),c=xe(u,0),f=0;for(n=-1,r=arguments.length;n<r;n++)if(Me(i=-1===n?u:arguments[n]))for(o=an(i),Pe(f+o),e=0;e<o;e++,f++)e in i&&Ee(c,f,i[e]);else Pe(f+1),Ee(c,f++,i);return c.length=f,c}});var Ue=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&ze(t,n)}(i,We(Error));var n,e,r,o=qe(i);function i(t){var n,e,r,u;return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,i),n=o.call(this,"".concat(t.status," ").concat(t.statusText)),e=ke(n),u=void 0,(r="response")in e?Object.defineProperty(e,r,{value:u,enumerable:!0,configurable:!0,writable:!0}):e[r]=u,n.response=t,n}return n=i,e&&Ie(n.prototype,e),r&&Ie(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}();export{Ue as default};
|