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/shopperLogin.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function e(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(exports,"__esModule",{value:!0});var t="https://{shortCode}.api.commercecloud.salesforce.com/shopper/auth/v1",r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(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,i,a=function(e){return e&&e.Math==Math&&e},s=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof r&&r)||function(){return this}()||Function("return this")(),c=function(e){try{return!!e()}catch(e){return!0}},u=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f=!c((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),l=Function.prototype.call,h=f?l.bind(l):function(){return l.apply(l,arguments)},d={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,g={f:p&&!d.call({1:2},1)?function(e){var t=p(this,e);return!!t&&t.enumerable}:d},v=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},y=Function.prototype,m=y.bind,b=y.call,w=f&&m.bind(b,b),k=f?function(e){return e&&w(e)}:function(e){return e&&function(){return b.apply(e,arguments)}},x=k({}.toString),_=k("".slice),I=function(e){return _(x(e),8,-1)},O=Object,z=k("".split),P=c((function(){return!O("z").propertyIsEnumerable(0)}))?function(e){return"String"==I(e)?z(e,""):O(e)}:O,S=TypeError,C=function(e){if(null==e)throw S("Can't call method on "+e);return e},j=function(e){return P(C(e))},E=function(e){return"function"==typeof e},T=function(e){return"object"==typeof e?null!==e:E(e)},R=function(e){return E(e)?e:void 0},q=function(e,t){return arguments.length<2?R(s[e]):s[e]&&s[e][t]},L=k({}.isPrototypeOf),A=q("navigator","userAgent")||"",U=s.process,M=s.Deno,F=U&&U.versions||M&&M.version,B=F&&F.v8;B&&(i=(o=B.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!i&&A&&(!(o=A.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=A.match(/Chrome\/(\d+)/))&&(i=+o[1]);var W=i,N=!!Object.getOwnPropertySymbols&&!c((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&W&&W<41})),D=N&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,G=Object,H=D?function(e){return"symbol"==typeof e}:function(e){var t=q("Symbol");return E(t)&&L(t.prototype,G(e))},$=String,J=function(e){try{return $(e)}catch(e){return"Object"}},V=TypeError,Y=function(e){if(E(e))return e;throw V(J(e)+" is not a function")},K=function(e,t){var r=e[t];return null==r?void 0:Y(r)},Q=TypeError,X=Object.defineProperty,Z=function(e,t){try{X(s,e,{value:t,configurable:!0,writable:!0})}catch(r){s[e]=t}return t},ee=s["__core-js_shared__"]||Z("__core-js_shared__",{}),te=n((function(e){(e.exports=function(e,t){return ee[e]||(ee[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"})})),re=Object,ne=function(e){return re(C(e))},oe=k({}.hasOwnProperty),ie=Object.hasOwn||function(e,t){return oe(ne(e),t)},ae=0,se=Math.random(),ce=k(1..toString),ue=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ce(++ae+se,36)},fe=te("wks"),le=s.Symbol,he=le&&le.for,de=D?le:le&&le.withoutSetter||ue,pe=function(e){if(!ie(fe,e)||!N&&"string"!=typeof fe[e]){var t="Symbol."+e;N&&ie(le,e)?fe[e]=le[e]:fe[e]=D&&he?he(t):de(t)}return fe[e]},ge=TypeError,ve=pe("toPrimitive"),ye=function(e,t){if(!T(e)||H(e))return e;var r,n=K(e,ve);if(n){if(void 0===t&&(t="default"),r=h(n,e,t),!T(r)||H(r))return r;throw ge("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)&&!T(n=h(r,e)))return n;if(E(r=e.valueOf)&&!T(n=h(r,e)))return n;if("string"!==t&&E(r=e.toString)&&!T(n=h(r,e)))return n;throw Q("Can't convert object to primitive value")}(e,t)},me=function(e){var t=ye(e,"string");return H(t)?t:t+""},be=s.document,we=T(be)&&T(be.createElement),ke=function(e){return we?be.createElement(e):{}},xe=!u&&!c((function(){return 7!=Object.defineProperty(ke("div"),"a",{get:function(){return 7}}).a})),_e=Object.getOwnPropertyDescriptor,Ie={f:u?_e:function(e,t){if(e=j(e),t=me(t),xe)try{return _e(e,t)}catch(e){}if(ie(e,t))return v(!h(g.f,e,t),e[t])}},Oe=u&&c((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ze=String,Pe=TypeError,Se=function(e){if(T(e))return e;throw Pe(ze(e)+" is not an object")},Ce=TypeError,je=Object.defineProperty,Ee=Object.getOwnPropertyDescriptor,Te={f:u?Oe?function(e,t,r){if(Se(e),t=me(t),Se(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 je(e,t,r)}:je:function(e,t,r){if(Se(e),t=me(t),Se(r),xe)try{return je(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Ce("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Re=u?function(e,t,r){return Te.f(e,t,v(1,r))}:function(e,t,r){return e[t]=r,e},qe=Function.prototype,Le=u&&Object.getOwnPropertyDescriptor,Ae=ie(qe,"name"),Ue={EXISTS:Ae,PROPER:Ae&&"something"===function(){}.name,CONFIGURABLE:Ae&&(!u||u&&Le(qe,"name").configurable)},Me=k(Function.toString);E(ee.inspectSource)||(ee.inspectSource=function(e){return Me(e)});var Fe,Be,We,Ne=ee.inspectSource,De=s.WeakMap,Ge=E(De)&&/native code/.test(Ne(De)),He=te("keys"),$e=function(e){return He[e]||(He[e]=ue(e))},Je={},Ve=s.TypeError,Ye=s.WeakMap;if(Ge||ee.state){var Ke=ee.state||(ee.state=new Ye),Qe=k(Ke.get),Xe=k(Ke.has),Ze=k(Ke.set);Fe=function(e,t){if(Xe(Ke,e))throw new Ve("Object already initialized");return t.facade=e,Ze(Ke,e,t),t},Be=function(e){return Qe(Ke,e)||{}},We=function(e){return Xe(Ke,e)}}else{var et=$e("state");Je[et]=!0,Fe=function(e,t){if(ie(e,et))throw new Ve("Object already initialized");return t.facade=e,Re(e,et,t),t},Be=function(e){return ie(e,et)?e[et]:{}},We=function(e){return ie(e,et)}}var tt={set:Fe,get:Be,has:We,enforce:function(e){return We(e)?Be(e):Fe(e,{})},getterFor:function(e){return function(t){var r;if(!T(t)||(r=Be(t)).type!==e)throw Ve("Incompatible receiver, "+e+" required");return r}}},rt=n((function(e){var t=Ue.CONFIGURABLE,r=tt.enforce,n=tt.get,o=Object.defineProperty,i=u&&!c((function(){return 8!==o((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),(!ie(e,"name")||t&&e.name!==n)&&(u?o(e,"name",{value:n,configurable:!0}):e.name=n),i&&s&&ie(s,"arity")&&e.length!==s.arity&&o(e,"length",{value:s.arity});try{s&&ie(s,"constructor")&&s.constructor?u&&o(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var c=r(e);return ie(c,"source")||(c.source=a.join("string"==typeof n?n:"")),e};Function.prototype.toString=s((function(){return E(this)&&n(this).source||Ne(this)}),"toString")})),nt=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(E(r)&&rt(r,i,n),n.global)o?e[t]=r:Z(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:Te.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},ot=Math.ceil,it=Math.floor,at=Math.trunc||function(e){var t=+e;return(t>0?it:ot)(t)},st=function(e){var t=+e;return t!=t||0===t?0:at(t)},ct=Math.max,ut=Math.min,ft=function(e,t){var r=st(e);return r<0?ct(r+t,0):ut(r,t)},lt=Math.min,ht=function(e){return e>0?lt(st(e),9007199254740991):0},dt=function(e){return ht(e.length)},pt=function(e){return function(t,r,n){var o,i=j(t),a=dt(i),s=ft(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},gt={includes:pt(!0),indexOf:pt(!1)}.indexOf,vt=k([].push),yt=function(e,t){var r,n=j(e),o=0,i=[];for(r in n)!ie(Je,r)&&ie(n,r)&&vt(i,r);for(;t.length>o;)ie(n,r=t[o++])&&(~gt(i,r)||vt(i,r));return i},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bt=mt.concat("length","prototype"),wt={f:Object.getOwnPropertyNames||function(e){return yt(e,bt)}},kt={f:Object.getOwnPropertySymbols},xt=k([].concat),_t=q("Reflect","ownKeys")||function(e){var t=wt.f(Se(e)),r=kt.f;return r?xt(t,r(e)):t},It=function(e,t,r){for(var n=_t(t),o=Te.f,i=Ie.f,a=0;a<n.length;a++){var s=n[a];ie(e,s)||r&&ie(r,s)||o(e,s,i(t,s))}},Ot=/#|\.prototype\./,zt=function(e,t){var r=St[Pt(e)];return r==jt||r!=Ct&&(E(t)?c(t):!!t)},Pt=zt.normalize=function(e){return String(e).replace(Ot,".").toLowerCase()},St=zt.data={},Ct=zt.NATIVE="N",jt=zt.POLYFILL="P",Et=zt,Tt=Ie.f,Rt=function(e,t){var r,n,o,i,a,c=e.target,u=e.global,f=e.stat;if(r=u?s:f?s[c]||Z(c,{}):(s[c]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=Tt(r,n))&&a.value:r[n],!Et(u?n:c+(f?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;It(i,o)}(e.sham||o&&o.sham)&&Re(i,"sham",!0),nt(r,n,i,e)}},qt=Object.keys||function(e){return yt(e,mt)},Lt=c((function(){qt(1)}));Rt({target:"Object",stat:!0,forced:Lt},{keys:function(e){return qt(ne(e))}});var At={};At[pe("toStringTag")]="z";var Ut,Mt="[object z]"===String(At),Ft=pe("toStringTag"),Bt=Object,Wt="Arguments"==I(function(){return arguments}()),Nt=Mt?I: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),Ft))?r:Wt?I(t):"Object"==(n=I(t))&&E(t.callee)?"Arguments":n},Dt=String,Gt=function(e){if("Symbol"===Nt(e))throw TypeError("Cannot convert a Symbol value to a string");return Dt(e)},Ht={f:u&&!Oe?Object.defineProperties:function(e,t){Se(e);for(var r,n=j(t),o=qt(t),i=o.length,a=0;i>a;)Te.f(e,r=o[a++],n[r]);return e}},$t=q("document","documentElement"),Jt=$e("IE_PROTO"),Vt=function(){},Yt=function(e){return"<script>"+e+"<\/script>"},Kt=function(e){e.write(Yt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Qt=function(){try{Ut=new ActiveXObject("htmlfile")}catch(e){}var e,t;Qt="undefined"!=typeof document?document.domain&&Ut?Kt(Ut):((t=ke("iframe")).style.display="none",$t.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Yt("document.F=Object")),e.close(),e.F):Kt(Ut);for(var r=mt.length;r--;)delete Qt.prototype[mt[r]];return Qt()};Je[Jt]=!0;var Xt=Object.create||function(e,t){var r;return null!==e?(Vt.prototype=Se(e),r=new Vt,Vt.prototype=null,r[Jt]=e):r=Qt(),void 0===t?r:Ht.f(r,t)},Zt=function(e,t,r){var n=me(t);n in e?Te.f(e,n,v(0,r)):e[n]=r},er=Array,tr=Math.max,rr=function(e,t,r){for(var n=dt(e),o=ft(t,n),i=ft(void 0===r?n:r,n),a=er(tr(i-o,0)),s=0;o<i;o++,s++)Zt(a,s,e[o]);return a.length=s,a},nr=wt.f,or="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ir={f:function(e){return or&&"Window"==I(e)?function(e){try{return nr(e)}catch(e){return rr(or)}}(e):nr(j(e))}},ar={f:pe},sr=s,cr=Te.f,ur=Te.f,fr=pe("toStringTag"),lr=function(e,t,r){e&&!r&&(e=e.prototype),e&&!ie(e,fr)&&ur(e,fr,{configurable:!0,value:t})},hr=k(k.bind),dr=function(e,t){return Y(e),void 0===t?e:f?hr(e,t):function(){return e.apply(t,arguments)}},pr=Array.isArray||function(e){return"Array"==I(e)},gr=function(){},vr=[],yr=q("Reflect","construct"),mr=/^\s*(?:class|function)\b/,br=k(mr.exec),wr=!mr.exec(gr),kr=function(e){if(!E(e))return!1;try{return yr(gr,vr,e),!0}catch(e){return!1}},xr=function(e){if(!E(e))return!1;switch(Nt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return wr||!!br(mr,Ne(e))}catch(e){return!0}};xr.sham=!0;var _r=!yr||c((function(){var e;return kr(kr.call)||!kr(Object)||!kr((function(){e=!0}))||e}))?xr:kr,Ir=pe("species"),Or=Array,zr=function(e,t){return new(function(e){var t;return pr(e)&&(t=e.constructor,(_r(t)&&(t===Or||pr(t.prototype))||T(t)&&null===(t=t[Ir]))&&(t=void 0)),void 0===t?Or:t}(e))(0===t?0:t)},Pr=k([].push),Sr=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(c,u,f,l){for(var h,d,p=ne(c),g=P(p),v=dr(u,f),y=dt(g),m=0,b=l||zr,w=t?b(c,y):r||a?b(c,0):void 0;y>m;m++)if((s||m in g)&&(d=v(h=g[m],m,p),e))if(t)w[m]=d;else if(d)switch(e){case 3:return!0;case 5:return h;case 6:return m;case 2:Pr(w,h)}else switch(e){case 4:return!1;case 7:Pr(w,h)}return i?-1:n||o?o:w}},Cr={forEach:Sr(0),map:Sr(1),filter:Sr(2),some:Sr(3),every:Sr(4),find:Sr(5),findIndex:Sr(6),filterReject:Sr(7)},jr=Cr.forEach,Er=$e("hidden"),Tr=tt.set,Rr=tt.getterFor("Symbol"),qr=Object.prototype,Lr=s.Symbol,Ar=Lr&&Lr.prototype,Ur=s.TypeError,Mr=s.QObject,Fr=Ie.f,Br=Te.f,Wr=ir.f,Nr=g.f,Dr=k([].push),Gr=te("symbols"),Hr=te("op-symbols"),$r=te("wks"),Jr=!Mr||!Mr.prototype||!Mr.prototype.findChild,Vr=u&&c((function(){return 7!=Xt(Br({},"a",{get:function(){return Br(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Fr(qr,t);n&&delete qr[t],Br(e,t,r),n&&e!==qr&&Br(qr,t,n)}:Br,Yr=function(e,t){var r=Gr[e]=Xt(Ar);return Tr(r,{type:"Symbol",tag:e,description:t}),u||(r.description=t),r},Kr=function(e,t,r){e===qr&&Kr(Hr,t,r),Se(e);var n=me(t);return Se(r),ie(Gr,n)?(r.enumerable?(ie(e,Er)&&e[Er][n]&&(e[Er][n]=!1),r=Xt(r,{enumerable:v(0,!1)})):(ie(e,Er)||Br(e,Er,v(1,{})),e[Er][n]=!0),Vr(e,n,r)):Br(e,n,r)},Qr=function(e,t){Se(e);var r=j(t),n=qt(r).concat(tn(r));return jr(n,(function(t){u&&!h(Xr,r,t)||Kr(e,t,r[t])})),e},Xr=function(e){var t=me(e),r=h(Nr,this,t);return!(this===qr&&ie(Gr,t)&&!ie(Hr,t))&&(!(r||!ie(this,t)||!ie(Gr,t)||ie(this,Er)&&this[Er][t])||r)},Zr=function(e,t){var r=j(e),n=me(t);if(r!==qr||!ie(Gr,n)||ie(Hr,n)){var o=Fr(r,n);return!o||!ie(Gr,n)||ie(r,Er)&&r[Er][n]||(o.enumerable=!0),o}},en=function(e){var t=Wr(j(e)),r=[];return jr(t,(function(e){ie(Gr,e)||ie(Je,e)||Dr(r,e)})),r},tn=function(e){var t=e===qr,r=Wr(t?Hr:j(e)),n=[];return jr(r,(function(e){!ie(Gr,e)||t&&!ie(qr,e)||Dr(n,Gr[e])})),n};N||(Ar=(Lr=function(){if(L(Ar,this))throw Ur("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Gt(arguments[0]):void 0,t=ue(e),r=function(e){this===qr&&h(r,Hr,e),ie(this,Er)&&ie(this[Er],t)&&(this[Er][t]=!1),Vr(this,t,v(1,e))};return u&&Jr&&Vr(qr,t,{configurable:!0,set:r}),Yr(t,e)}).prototype,nt(Ar,"toString",(function(){return Rr(this).tag})),nt(Lr,"withoutSetter",(function(e){return Yr(ue(e),e)})),g.f=Xr,Te.f=Kr,Ht.f=Qr,Ie.f=Zr,wt.f=ir.f=en,kt.f=tn,ar.f=function(e){return Yr(pe(e),e)},u&&(Br(Ar,"description",{configurable:!0,get:function(){return Rr(this).description}}),nt(qr,"propertyIsEnumerable",Xr,{unsafe:!0}))),Rt({global:!0,constructor:!0,wrap:!0,forced:!N,sham:!N},{Symbol:Lr}),jr(qt($r),(function(e){!function(e){var t=sr.Symbol||(sr.Symbol={});ie(t,e)||cr(t,e,{value:ar.f(e)})}(e)})),Rt({target:"Symbol",stat:!0,forced:!N},{useSetter:function(){Jr=!0},useSimple:function(){Jr=!1}}),Rt({target:"Object",stat:!0,forced:!N,sham:!u},{create:function(e,t){return void 0===t?Xt(e):Qr(Xt(e),t)},defineProperty:Kr,defineProperties:Qr,getOwnPropertyDescriptor:Zr}),Rt({target:"Object",stat:!0,forced:!N},{getOwnPropertyNames:en}),function(){var e=q("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=pe("toPrimitive");t&&!t[n]&&nt(t,n,(function(e){return h(r,this)}),{arity:1})}(),lr(Lr,"Symbol"),Je[Er]=!0;var rn=N&&!!Symbol.for&&!!Symbol.keyFor,nn=te("string-to-symbol-registry"),on=te("symbol-to-string-registry");Rt({target:"Symbol",stat:!0,forced:!rn},{for:function(e){var t=Gt(e);if(ie(nn,t))return nn[t];var r=q("Symbol")(t);return nn[t]=r,on[r]=t,r}});var an=te("symbol-to-string-registry");Rt({target:"Symbol",stat:!0,forced:!rn},{keyFor:function(e){if(!H(e))throw TypeError(J(e)+" is not a symbol");if(ie(an,e))return an[e]}});var sn=Function.prototype,cn=sn.apply,un=sn.call,fn="object"==typeof Reflect&&Reflect.apply||(f?un.bind(cn):function(){return un.apply(cn,arguments)}),ln=k([].slice),hn=q("JSON","stringify"),dn=k(/./.exec),pn=k("".charAt),gn=k("".charCodeAt),vn=k("".replace),yn=k(1..toString),mn=/[\uD800-\uDFFF]/g,bn=/^[\uD800-\uDBFF]$/,wn=/^[\uDC00-\uDFFF]$/,kn=!N||c((function(){var e=q("Symbol")();return"[null]"!=hn([e])||"{}"!=hn({a:e})||"{}"!=hn(Object(e))})),xn=c((function(){return'"\\udf06\\ud834"'!==hn("\udf06\ud834")||'"\\udead"'!==hn("\udead")})),_n=function(e,t){var r=ln(arguments),n=t;if((T(t)||void 0!==e)&&!H(e))return pr(t)||(t=function(e,t){if(E(n)&&(t=h(n,this,e,t)),!H(t))return t}),r[1]=t,fn(hn,null,r)},In=function(e,t,r){var n=pn(r,t-1),o=pn(r,t+1);return dn(bn,e)&&!dn(wn,o)||dn(wn,e)&&!dn(bn,n)?"\\u"+yn(gn(e,0),16):e};hn&&Rt({target:"JSON",stat:!0,arity:3,forced:kn||xn},{stringify:function(e,t,r){var n=ln(arguments),o=fn(kn?_n:hn,null,n);return xn&&"string"==typeof o?vn(o,mn,In):o}});var On=!N||c((function(){kt.f(1)}));Rt({target:"Object",stat:!0,forced:On},{getOwnPropertySymbols:function(e){var t=kt.f;return t?t(ne(e)):[]}});var zn=pe("species"),Pn=function(e){return W>=51||!c((function(){var t=[];return(t.constructor={})[zn]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Sn=Cr.filter,Cn=Pn("filter");Rt({target:"Array",proto:!0,forced:!Cn},{filter:function(e){return Sn(this,e,arguments.length>1?arguments[1]:void 0)}});var jn=Mt?{}.toString:function(){return"[object "+Nt(this)+"]"};Mt||nt(Object.prototype,"toString",jn,{unsafe:!0});var En=Ie.f,Tn=c((function(){En(1)}));Rt({target:"Object",stat:!0,forced:!u||Tn,sham:!u},{getOwnPropertyDescriptor:function(e,t){return En(j(e),t)}});var Rn={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},qn=ke("span").classList,Ln=qn&&qn.constructor&&qn.constructor.prototype,An=Ln===Object.prototype?void 0:Ln,Un=Cr.forEach,Mn=function(e,t){var r=[][e];return!!r&&c((function(){r.call(null,t||function(){return 1},1)}))}("forEach")?[].forEach:function(e){return Un(this,e,arguments.length>1?arguments[1]:void 0)},Fn=function(e){if(e&&e.forEach!==Mn)try{Re(e,"forEach",Mn)}catch(t){e.forEach=Mn}};for(var Bn in Rn)Rn[Bn]&&Fn(s[Bn]&&s[Bn].prototype);Fn(An),Rt({target:"Object",stat:!0,sham:!u},{getOwnPropertyDescriptors:function(e){for(var t,r,n=j(e),o=Ie.f,i=_t(n),a={},s=0;i.length>s;)void 0!==(r=o(n,t=i[s++]))&&Zt(a,t,r);return a}});var Wn=Ht.f;Rt({target:"Object",stat:!0,forced:Object.defineProperties!==Wn,sham:!u},{defineProperties:Wn});var Nn=Te.f;Rt({target:"Object",stat:!0,forced:Object.defineProperty!==Nn,sham:!u},{defineProperty:Nn});var Dn,Gn=pe("match"),Hn=TypeError,$n=function(e){if(function(e){var t;return T(e)&&(void 0!==(t=e[Gn])?!!t:"RegExp"==I(e))}(e))throw Hn("The method doesn't accept regular expressions");return e},Jn=pe("match"),Vn=Ie.f,Yn=k("".startsWith),Kn=k("".slice),Qn=Math.min,Xn=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Jn]=!1,"/./"[e](t)}catch(e){}}return!1}("startsWith"),Zn=!(Xn||(Dn=Vn(String.prototype,"startsWith"),!Dn||Dn.writable));Rt({target:"String",proto:!0,forced:!Zn&&!Xn},{startsWith:function(e){var t=Gt(C(this));$n(e);var r=ht(Qn(arguments.length>1?arguments[1]:void 0,t.length)),n=Gt(e);return Yn?Yn(t,n,r):Kn(t,r,r+n.length)===n}});var eo=function(){var e=Se(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},to=RegExp.prototype,ro=Ue.PROPER,no=RegExp.prototype.toString,oo=c((function(){return"/a/b"!=no.call({source:"a",flags:"b"})})),io=ro&&"toString"!=no.name;function ao(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function so(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ao(i,n,o,a,s,"next",e)}function s(e){ao(i,n,o,a,s,"throw",e)}a(void 0)}))}}function co(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uo(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 fo(e,t,r){return t&&uo(e.prototype,t),r&&uo(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function lo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}(oo||io)&&nt(RegExp.prototype,"toString",(function(){var e=Se(this);return"/"+Gt(e.source)+"/"+Gt(function(e){var t=e.flags;return void 0!==t||"flags"in to||ie(e,"flags")||!L(to,e)?t:h(eo,e)}(e))}),{unsafe:!0});var ho=Object.prototype,po=ho.hasOwnProperty,go="function"==typeof Symbol?Symbol:{},vo=go.iterator||"@@iterator",yo=go.asyncIterator||"@@asyncIterator",mo=go.toStringTag||"@@toStringTag";function bo(e,t,r,n){var o=t&&t.prototype instanceof xo?t:xo,i=Object.create(o.prototype),a=new Lo(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return Uo()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=To(a,r);if(s){if(s===ko)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=wo(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===ko)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function wo(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}var ko={};function xo(){}function _o(){}function Io(){}var Oo={};Oo[vo]=function(){return this};var zo=Object.getPrototypeOf,Po=zo&&zo(zo(Ao([])));Po&&Po!==ho&&po.call(Po,vo)&&(Oo=Po);var So=Io.prototype=xo.prototype=Object.create(Oo);function Co(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function jo(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_o||"GeneratorFunction"===(t.displayName||t.name))}function Eo(e,t){var r;this._invoke=function(n,o){function i(){return new t((function(r,i){!function r(n,o,i,a){var s=wo(e[n],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&po.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,a)}),(function(e){r("throw",e,i,a)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,a)}))}a(s.arg)}(n,o,r,i)}))}return r=r?r.then(i,i):i()}}function To(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,To(e,t),"throw"===t.method))return ko;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return ko}var n=wo(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,ko;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,ko):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,ko)}function Ro(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 qo(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Lo(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(Ro,this),this.reset(!0)}function Ao(e){if(e){var t=e[vo];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(po.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:Uo}}function Uo(){return{value:void 0,done:!0}}_o.prototype=So.constructor=Io,Io.constructor=_o,Io[mo]=_o.displayName="GeneratorFunction",Co(Eo.prototype),Eo.prototype[yo]=function(){return this},Co(So),So[mo]="Generator",So[vo]=function(){return this},So.toString=function(){return"[object Generator]"},Lo.prototype={constructor:Lo,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(qo),!e)for(var t in this)"t"===t.charAt(0)&&po.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 i.type="throw",i.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 o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=po.call(o,"catchLoc"),s=po.call(o,"finallyLoc");if(a&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.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&&po.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,ko):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),ko},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),qo(r),ko}},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 o=n.arg;qo(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:Ao(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),ko}};var Mo={wrap:bo,isGeneratorFunction:jo,AsyncIterator:Eo,mark:function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,Io):(e.__proto__=Io,mo in e||(e[mo]="GeneratorFunction")),e.prototype=Object.create(So),e},awrap:function(e){return{__await:e}},async:function(e,t,r,n,o){void 0===o&&(o=Promise);var i=new Eo(bo(e,t,r,n),o);return jo(t)?i:i.next().then((function(e){return e.done?e.value:i.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:Ao},Fo=Te.f,Bo=pe("unscopables"),Wo=Array.prototype;null==Wo[Bo]&&Fo(Wo,Bo,{configurable:!0,value:Xt(null)});var No,Do,Go,Ho=function(e){Wo[Bo][e]=!0},$o={},Jo=!c((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Vo=$e("IE_PROTO"),Yo=Object,Ko=Yo.prototype,Qo=Jo?Yo.getPrototypeOf:function(e){var t=ne(e);if(ie(t,Vo))return t[Vo];var r=t.constructor;return E(r)&&t instanceof r?r.prototype:t instanceof Yo?Ko:null},Xo=pe("iterator"),Zo=!1;[].keys&&("next"in(Go=[].keys())?(Do=Qo(Qo(Go)))!==Object.prototype&&(No=Do):Zo=!0),(null==No||c((function(){var e={};return No[Xo].call(e)!==e})))&&(No={}),E(No[Xo])||nt(No,Xo,(function(){return this}));var ei={IteratorPrototype:No,BUGGY_SAFARI_ITERATORS:Zo},ti=ei.IteratorPrototype,ri=function(){return this},ni=function(e,t,r,n){var o=t+" Iterator";return e.prototype=Xt(ti,{next:v(+!n,r)}),lr(e,o,!1),$o[o]=ri,e},oi=String,ii=TypeError,ai=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=k(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Se(r),function(e){if("object"==typeof e||E(e))return e;throw ii("Can't set "+oi(e)+" as a prototype")}(n),t?e(r,n):r.__proto__=n,r}}():void 0),si=Ue.PROPER,ci=Ue.CONFIGURABLE,ui=ei.IteratorPrototype,fi=ei.BUGGY_SAFARI_ITERATORS,li=pe("iterator"),hi=function(){return this},di=function(e,t,r,n,o,i,a){ni(r,t,n);var s,c,u,f=function(e){if(e===o&&v)return v;if(!fi&&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[li]||p["@@iterator"]||o&&p[o],v=!fi&&g||f(o),y="Array"==t&&p.entries||g;if(y&&(s=Qo(y.call(new e)))!==Object.prototype&&s.next&&(Qo(s)!==ui&&(ai?ai(s,ui):E(s[li])||nt(s,li,hi)),lr(s,l,!0)),si&&"values"==o&&g&&"values"!==g.name&&(ci?Re(p,"name","values"):(d=!0,v=function(){return h(g,this)})),o)if(c={values:f("values"),keys:i?v:f("keys"),entries:f("entries")},a)for(u in c)(fi||d||!(u in p))&&nt(p,u,c[u]);else Rt({target:t,proto:!0,forced:fi||d},c);return p[li]!==v&&nt(p,li,v,{name:o}),$o[t]=v,c},pi=Te.f,gi=tt.set,vi=tt.getterFor("Array Iterator"),yi=di(Array,"Array",(function(e,t){gi(this,{type:"Array Iterator",target:j(e),index:0,kind:t})}),(function(){var e=vi(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"),mi=$o.Arguments=$o.Array;if(Ho("keys"),Ho("values"),Ho("entries"),u&&"values"!==mi.name)try{pi(mi,"name",{value:"values"})}catch(e){}var bi=k("".charAt),wi=k("".charCodeAt),ki=k("".slice),xi=function(e){return function(t,r){var n,o,i=Gt(C(t)),a=st(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=wi(i,a))<55296||n>56319||a+1===s||(o=wi(i,a+1))<56320||o>57343?e?bi(i,a):n:e?ki(i,a,a+2):o-56320+(n-55296<<10)+65536}},_i={codeAt:xi(!1),charAt:xi(!0)},Ii=_i.charAt,Oi=tt.set,zi=tt.getterFor("String Iterator");di(String,"String",(function(e){Oi(this,{type:"String Iterator",string:Gt(e),index:0})}),(function(){var e,t=zi(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=Ii(r,n),t.index+=e.length,{value:e,done:!1})}));var Pi=pe("iterator"),Si=pe("toStringTag"),Ci=yi.values,ji=function(e,t){if(e){if(e[Pi]!==Ci)try{Re(e,Pi,Ci)}catch(t){e[Pi]=Ci}if(e[Si]||Re(e,Si,t),Rn[t])for(var r in yi)if(e[r]!==yi[r])try{Re(e,r,yi[r])}catch(t){e[r]=yi[r]}}};for(var Ei in Rn)ji(s[Ei]&&s[Ei].prototype,Ei);ji(An,"DOMTokenList");var Ti=pe("iterator"),Ri=!c((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[Ti]||"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})),qi=TypeError,Li=function(e,t){if(L(t,e))return e;throw qi("Incorrect invocation")},Ai=pe("iterator"),Ui=function(e){if(null!=e)return K(e,Ai)||K(e,"@@iterator")||$o[Nt(e)]},Mi=TypeError,Fi=function(e,t){var r=arguments.length<2?Ui(e):t;if(Y(r))return Se(h(r,e));throw Mi(J(e)+" is not iterable")},Bi=TypeError,Wi=function(e,t){if(e<t)throw Bi("Not enough arguments");return e},Ni=Math.floor,Di=function(e,t){var r=e.length,n=Ni(r/2);return r<8?Gi(e,t):Hi(e,Di(rr(e,0,n),t),Di(rr(e,n),t),t)},Gi=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},Hi=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?n(t[a],r[s])<=0?t[a++]:r[s++]:a<o?t[a++]:r[s++];return e},$i=Di,Ji=pe("iterator"),Vi=tt.set,Yi=tt.getterFor("URLSearchParams"),Ki=tt.getterFor("URLSearchParamsIterator"),Qi=Object.getOwnPropertyDescriptor,Xi=function(e){if(!u)return s[e];var t=Qi(s,e);return t&&t.value},Zi=Xi("fetch"),ea=Xi("Request"),ta=Xi("Headers"),ra=ea&&ea.prototype,na=ta&&ta.prototype,oa=s.RegExp,ia=s.TypeError,aa=s.decodeURIComponent,sa=s.encodeURIComponent,ca=k("".charAt),ua=k([].join),fa=k([].push),la=k("".replace),ha=k([].shift),da=k([].splice),pa=k("".split),ga=k("".slice),va=/\+/g,ya=Array(4),ma=function(e){return ya[e-1]||(ya[e-1]=oa("((?:%[\\da-f]{2}){"+e+"})","gi"))},ba=function(e){try{return aa(e)}catch(t){return e}},wa=function(e){var t=la(e,va," "),r=4;try{return aa(t)}catch(e){for(;r;)t=la(t,ma(r--),ba);return t}},ka=/[!'()~]|%20/g,xa={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},_a=function(e){return xa[e]},Ia=function(e){return la(sa(e),ka,_a)},Oa=ni((function(e,t){Vi(this,{type:"URLSearchParamsIterator",iterator:Fi(Yi(e).entries),kind:t})}),"Iterator",(function(){var e=Ki(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),za=function(e){this.entries=[],this.url=null,void 0!==e&&(T(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===ca(e,0)?ga(e,1):e:Gt(e)))};za.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,s,c=Ui(e);if(c)for(r=(t=Fi(e,c)).next;!(n=h(r,t)).done;){if(i=(o=Fi(Se(n.value))).next,(a=h(i,o)).done||(s=h(i,o)).done||!h(i,o).done)throw ia("Expected sequence with length 2");fa(this.entries,{key:Gt(a.value),value:Gt(s.value)})}else for(var u in e)ie(e,u)&&fa(this.entries,{key:u,value:Gt(e[u])})},parseQuery:function(e){if(e)for(var t,r,n=pa(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=pa(t,"="),fa(this.entries,{key:wa(ha(r)),value:wa(ua(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],fa(r,Ia(e.key)+"="+Ia(e.value));return ua(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Pa=function(){Li(this,Sa);var e=arguments.length>0?arguments[0]:void 0;Vi(this,new za(e))},Sa=Pa.prototype;if(function(e,t,r){for(var n in t)nt(e,n,t[n],r)}(Sa,{append:function(e,t){Wi(arguments.length,2);var r=Yi(this);fa(r.entries,{key:Gt(e),value:Gt(t)}),r.updateURL()},delete:function(e){Wi(arguments.length,1);for(var t=Yi(this),r=t.entries,n=Gt(e),o=0;o<r.length;)r[o].key===n?da(r,o,1):o++;t.updateURL()},get:function(e){Wi(arguments.length,1);for(var t=Yi(this).entries,r=Gt(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){Wi(arguments.length,1);for(var t=Yi(this).entries,r=Gt(e),n=[],o=0;o<t.length;o++)t[o].key===r&&fa(n,t[o].value);return n},has:function(e){Wi(arguments.length,1);for(var t=Yi(this).entries,r=Gt(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){Wi(arguments.length,1);for(var r,n=Yi(this),o=n.entries,i=!1,a=Gt(e),s=Gt(t),c=0;c<o.length;c++)(r=o[c]).key===a&&(i?da(o,c--,1):(i=!0,r.value=s));i||fa(o,{key:a,value:s}),n.updateURL()},sort:function(){var e=Yi(this);$i(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=Yi(this).entries,n=dr(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new Oa(this,"keys")},values:function(){return new Oa(this,"values")},entries:function(){return new Oa(this,"entries")}},{enumerable:!0}),nt(Sa,Ji,Sa.entries,{name:"entries"}),nt(Sa,"toString",(function(){return Yi(this).serialize()}),{enumerable:!0}),lr(Pa,"URLSearchParams"),Rt({global:!0,constructor:!0,forced:!Ri},{URLSearchParams:Pa}),!Ri&&E(ta)){var Ca=k(na.has),ja=k(na.set),Ea=function(e){if(T(e)){var t,r=e.body;if("URLSearchParams"===Nt(r))return t=e.headers?new ta(e.headers):new ta,Ca(t,"content-type")||ja(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),Xt(e,{body:v(0,Gt(r)),headers:v(0,t)})}return e};if(E(Zi)&&Rt({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Zi(e,arguments.length>1?Ea(arguments[1]):{})}}),E(ea)){var Ta=function(e){return Li(this,ra),new ea(e,arguments.length>1?Ea(arguments[1]):{})};ra.constructor=Ta,Ta.prototype=ra,Rt({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Ta})}}var Ra={URLSearchParams:Pa,getState:Yi};function qa(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 La(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qa(Object(r),!0).forEach((function(t){lo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Aa=fo((function e(t){if(co(this,e),lo(this,"baseUri",void 0),lo(this,"proxy",void 0),lo(this,"headers",void 0),lo(this,"parameters",void 0),lo(this,"fetchOptions",void 0),lo(this,"fetch",void 0),lo(this,"transformRequest",void 0),lo(this,"throwOnBadResponse",void 0),this.headers=La({},t.headers),this.parameters=La({},t.parameters),!this.parameters.shortCode)throw new Error("Missing required parameter: shortCode");this.fetchOptions=La({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}));lo(Aa,"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}}}),Rt({global:!0},{globalThis:s});var Ua,Ma,Fa,Ba,Wa="process"==I(s.process),Na=pe("species"),Da=TypeError,Ga=function(e){if(_r(e))return e;throw Da(J(e)+" is not a constructor")},Ha=pe("species"),$a=/(?:ipad|iphone|ipod).*applewebkit/i.test(A),Ja=s.setImmediate,Va=s.clearImmediate,Ya=s.process,Ka=s.Dispatch,Qa=s.Function,Xa=s.MessageChannel,Za=s.String,es=0,ts={};try{Ua=s.location}catch(e){}var rs=function(e){if(ie(ts,e)){var t=ts[e];delete ts[e],t()}},ns=function(e){return function(){rs(e)}},os=function(e){rs(e.data)},is=function(e){s.postMessage(Za(e),Ua.protocol+"//"+Ua.host)};Ja&&Va||(Ja=function(e){Wi(arguments.length,1);var t=E(e)?e:Qa(e),r=ln(arguments,1);return ts[++es]=function(){fn(t,void 0,r)},Ma(es),es},Va=function(e){delete ts[e]},Wa?Ma=function(e){Ya.nextTick(ns(e))}:Ka&&Ka.now?Ma=function(e){Ka.now(ns(e))}:Xa&&!$a?(Ba=(Fa=new Xa).port2,Fa.port1.onmessage=os,Ma=dr(Ba.postMessage,Ba)):s.addEventListener&&E(s.postMessage)&&!s.importScripts&&Ua&&"file:"!==Ua.protocol&&!c(is)?(Ma=is,s.addEventListener("message",os,!1)):Ma="onreadystatechange"in ke("script")?function(e){$t.appendChild(ke("script")).onreadystatechange=function(){$t.removeChild(this),rs(e)}}:function(e){setTimeout(ns(e),0)});var as,ss,cs,us,fs,ls,hs,ds,ps={set:Ja,clear:Va},gs=/ipad|iphone|ipod/i.test(A)&&void 0!==s.Pebble,vs=/web0s(?!.*chrome)/i.test(A),ys=Ie.f,ms=ps.set,bs=s.MutationObserver||s.WebKitMutationObserver,ws=s.document,ks=s.process,xs=s.Promise,_s=ys(s,"queueMicrotask"),Is=_s&&_s.value;Is||(as=function(){var e,t;for(Wa&&(e=ks.domain)&&e.exit();ss;){t=ss.fn,ss=ss.next;try{t()}catch(e){throw ss?us():cs=void 0,e}}cs=void 0,e&&e.enter()},$a||Wa||vs||!bs||!ws?!gs&&xs&&xs.resolve?((hs=xs.resolve(void 0)).constructor=xs,ds=dr(hs.then,hs),us=function(){ds(as)}):Wa?us=function(){ks.nextTick(as)}:(ms=dr(ms,s),us=function(){ms(as)}):(fs=!0,ls=ws.createTextNode(""),new bs(as).observe(ls,{characterData:!0}),us=function(){ls.data=fs=!fs}));var Os=Is||function(e){var t={fn:e,next:void 0};cs&&(cs.next=t),ss||(ss=t,us()),cs=t},zs=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Ps=function(){this.head=null,this.tail=null};Ps.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 Ss=Ps,Cs=s.Promise,js="object"==typeof window&&"object"!=typeof Deno;Cs&&Cs.prototype;var Es,Ts,Rs,qs=pe("species"),Ls=!1,As=E(s.PromiseRejectionEvent),Us={CONSTRUCTOR:Et("Promise",(function(){var e=Ne(Cs),t=e!==String(Cs);if(!t&&66===W)return!0;if(W>=51&&/native code/.test(e))return!1;var r=new Cs((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(r.constructor={})[qs]=n,!(Ls=r.then((function(){}))instanceof n)||!t&&js&&!As})),REJECTION_EVENT:As,SUBCLASSING:Ls},Ms=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=Y(t),this.reject=Y(r)},Fs={f:function(e){return new Ms(e)}},Bs=ps.set,Ws=Us.CONSTRUCTOR,Ns=Us.REJECTION_EVENT,Ds=Us.SUBCLASSING,Gs=tt.getterFor("Promise"),Hs=tt.set,$s=Cs&&Cs.prototype,Js=Cs,Vs=$s,Ys=s.TypeError,Ks=s.document,Qs=s.process,Xs=Fs.f,Zs=Xs,ec=!!(Ks&&Ks.createEvent&&s.dispatchEvent),tc=function(e){var t;return!(!T(e)||!E(t=e.then))&&t},rc=function(e,t){var r,n,o,i=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&&sc(t),t.rejection=1),!0===s?r=i:(f&&f.enter(),r=s(i),f&&(f.exit(),o=!0)),r===e.promise?u(Ys("Promise-chain cycle")):(n=tc(r))?h(n,r,c,u):c(r)):u(i)}catch(e){f&&!o&&f.exit(),u(e)}},nc=function(e,t){e.notified||(e.notified=!0,Os((function(){for(var r,n=e.reactions;r=n.get();)rc(r,e);e.notified=!1,t&&!e.rejection&&ic(e)})))},oc=function(e,t,r){var n,o;ec?((n=Ks.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),s.dispatchEvent(n)):n={promise:t,reason:r},!Ns&&(o=s["on"+e])?o(n):"unhandledrejection"===e&&function(e,t){var r=s.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},ic=function(e){h(Bs,s,(function(){var t,r=e.facade,n=e.value;if(ac(e)&&(t=zs((function(){Wa?Qs.emit("unhandledRejection",n,r):oc("unhandledrejection",r,n)})),e.rejection=Wa||ac(e)?2:1,t.error))throw t.value}))},ac=function(e){return 1!==e.rejection&&!e.parent},sc=function(e){h(Bs,s,(function(){var t=e.facade;Wa?Qs.emit("rejectionHandled",t):oc("rejectionhandled",t,e.value)}))},cc=function(e,t,r){return function(n){e(t,n,r)}},uc=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,nc(e,!0))},fc=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw Ys("Promise can't be resolved itself");var n=tc(t);n?Os((function(){var r={done:!1};try{h(n,t,cc(fc,r,e),cc(uc,r,e))}catch(t){uc(r,t,e)}})):(e.value=t,e.state=1,nc(e,!1))}catch(t){uc({done:!1},t,e)}}};if(Ws&&(Vs=(Js=function(e){Li(this,Vs),Y(e),h(Es,this);var t=Gs(this);try{e(cc(fc,t),cc(uc,t))}catch(e){uc(t,e)}}).prototype,(Es=function(e){Hs(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new Ss,rejection:!1,state:0,value:void 0})}).prototype=nt(Vs,"then",(function(e,t){var r,n,o,i=Gs(this),a=Xs((r=Js,void 0===(o=Se(this).constructor)||null==(n=Se(o)[Ha])?r:Ga(n)));return i.parent=!0,a.ok=!E(e)||e,a.fail=E(t)&&t,a.domain=Wa?Qs.domain:void 0,0==i.state?i.reactions.add(a):Os((function(){rc(a,i)})),a.promise})),Ts=function(){var e=new Es,t=Gs(e);this.promise=e,this.resolve=cc(fc,t),this.reject=cc(uc,t)},Fs.f=Xs=function(e){return e===Js||void 0===e?new Ts(e):Zs(e)},E(Cs)&&$s!==Object.prototype)){Rs=$s.then,Ds||nt($s,"then",(function(e,t){var r=this;return new Js((function(e,t){h(Rs,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete $s.constructor}catch(e){}ai&&ai($s,Vs)}Rt({global:!0,constructor:!0,wrap:!0,forced:Ws},{Promise:Js}),lr(Js,"Promise",!1),function(e){var t=q(e),r=Te.f;u&&t&&!t[Na]&&r(t,Na,{configurable:!0,get:function(){return this}})}("Promise");var lc=pe("iterator"),hc=Array.prototype,dc=function(e){return void 0!==e&&($o.Array===e||hc[lc]===e)},pc=function(e,t,r){var n,o;Se(e);try{if(!(n=K(e,"return"))){if("throw"===t)throw r;return r}n=h(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return Se(n),r},gc=TypeError,vc=function(e,t){this.stopped=e,this.result=t},yc=vc.prototype,mc=function(e,t,r){var n,o,i,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=dr(t,f),y=function(e){return n&&pc(n,"normal",e),new vc(!0,e)},m=function(e){return l?(Se(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(!(o=Ui(e)))throw gc(J(e)+" is not iterable");if(dc(o)){for(i=0,a=dt(e);a>i;i++)if((s=m(e[i]))&&L(yc,s))return s;return new vc(!1)}n=Fi(e,o)}for(c=d?e.next:n.next;!(u=h(c,n)).done;){try{s=m(u.value)}catch(e){pc(n,"throw",e)}if("object"==typeof s&&s&&L(yc,s))return s}return new vc(!1)},bc=pe("iterator"),wc=!1;try{var kc=0,xc={next:function(){return{done:!!kc++}},return:function(){wc=!0}};xc[bc]=function(){return this},Array.from(xc,(function(){throw 2}))}catch(e){}var _c=Us.CONSTRUCTOR||!function(e,t){if(!t&&!wc)return!1;var r=!1;try{var n={};n[bc]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}((function(e){Cs.all(e).then(void 0,(function(){}))}));Rt({target:"Promise",stat:!0,forced:_c},{all:function(e){var t=this,r=Fs.f(t),n=r.resolve,o=r.reject,i=zs((function(){var r=Y(t.resolve),i=[],a=0,s=1;mc(e,(function(e){var c=a++,u=!1;s++,h(r,t,e).then((function(e){u||(u=!0,i[c]=e,--s||n(i))}),o)})),--s||n(i)}));return i.error&&o(i.value),r.promise}});var Ic=Us.CONSTRUCTOR,Oc=Cs&&Cs.prototype;if(Rt({target:"Promise",proto:!0,forced:Ic,real:!0},{catch:function(e){return this.then(void 0,e)}}),E(Cs)){var zc=q("Promise").prototype.catch;Oc.catch!==zc&&nt(Oc,"catch",zc,{unsafe:!0})}Rt({target:"Promise",stat:!0,forced:_c},{race:function(e){var t=this,r=Fs.f(t),n=r.reject,o=zs((function(){var o=Y(t.resolve);mc(e,(function(e){h(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}}),Rt({target:"Promise",stat:!0,forced:Us.CONSTRUCTOR},{reject:function(e){var t=Fs.f(this);return h(t.reject,void 0,e),t.promise}});var Pc=Us.CONSTRUCTOR;function Sc(e){return(Sc="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)}q("Promise"),Rt({target:"Promise",stat:!0,forced:Pc},{resolve:function(e){return function(e,t){if(Se(e),T(t)&&t.constructor===e)return t;var r=Fs.f(e);return(0,r.resolve)(t),r.promise}(this,e)}});var Cc,jc,Ec,Tc,Rc="object"===("undefined"==typeof window?"undefined":Sc(window))&&"object"===Sc(window.document),qc="object"===("undefined"==typeof process?"undefined":Sc(process))&&"object"===Sc(process.versions)&&"string"==typeof process.versions.node,Lc=Rc?window:globalThis,Ac="function"==typeof Lc.fetch,Uc=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Cc?Cc.apply(void 0,r):(jc||(jc=so(Mo.mark((function t(){var r,n,o;return Mo.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!qc){t.next=7;break}return t.next=3,Promise.resolve().then((function(){return e(require("node-fetch"))}));case 3:return n=t.sent,o=null!==(r=n.default)&&void 0!==r?r:n,Cc=o,t.abrupt("return",o);case 7:if(Ac){t.next=9;break}throw new Error("Bad environment: it is not a node environment but fetch is not defined");case 9:return Cc=Lc.fetch.bind(Lc),t.abrupt("return",Cc);case 11:case"end":return t.stop()}}),t)})))()),jc.then((function(e){return e.apply(void 0,r)})))},Mc=s.RegExp,Fc=c((function(){var e=Mc("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Bc=Fc||c((function(){return!Mc("a","y").sticky})),Wc={BROKEN_CARET:Fc||c((function(){var e=Mc("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Bc,UNSUPPORTED_Y:Fc},Nc=s.RegExp,Dc=c((function(){var e=Nc(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Gc=s.RegExp,Hc=c((function(){var e=Gc("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),$c=tt.get,Jc=te("native-string-replace",String.prototype.replace),Vc=RegExp.prototype.exec,Yc=Vc,Kc=k("".charAt),Qc=k("".indexOf),Xc=k("".replace),Zc=k("".slice),eu=(Tc=/b*/g,h(Vc,Ec=/a/,"a"),h(Vc,Tc,"a"),0!==Ec.lastIndex||0!==Tc.lastIndex),tu=Wc.BROKEN_CARET,ru=void 0!==/()??/.exec("")[1];(eu||ru||tu||Dc||Hc)&&(Yc=function(e){var t,r,n,o,i,a,s,c=this,u=$c(c),f=Gt(e),l=u.raw;if(l)return l.lastIndex=c.lastIndex,t=h(Yc,l,f),c.lastIndex=l.lastIndex,t;var d=u.groups,p=tu&&c.sticky,g=h(eo,c),v=c.source,y=0,m=f;if(p&&(g=Xc(g,"y",""),-1===Qc(g,"g")&&(g+="g"),m=Zc(f,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Kc(f,c.lastIndex-1))&&(v="(?: "+v+")",m=" "+m,y++),r=new RegExp("^(?:"+v+")",g)),ru&&(r=new RegExp("^"+v+"$(?!\\s)",g)),eu&&(n=c.lastIndex),o=h(Vc,p?r:c,m),p?o?(o.input=Zc(o.input,y),o[0]=Zc(o[0],y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:eu&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),ru&&o&&o.length>1&&h(Jc,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Xt(null),i=0;i<d.length;i++)a[(s=d[i])[0]]=o[s[1]];return o});var nu=Yc;Rt({target:"RegExp",proto:!0,forced:/./.exec!==nu},{exec:nu});var ou=pe("species"),iu=RegExp.prototype,au=function(e,t,r,n){var o=pe(e),i=!c((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!c((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[ou]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var s=k(/./[o]),u=t(o,""[e],(function(e,t,r,n,o){var a=k(e),c=t.exec;return c===nu||c===iu.exec?i&&!o?{done:!0,value:s(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));nt(String.prototype,e,u[0]),nt(iu,o,u[1])}n&&Re(iu[o],"sham",!0)},su=_i.charAt,cu=function(e,t,r){return t+(r?su(e,t).length:1)},uu=Math.floor,fu=k("".charAt),lu=k("".replace),hu=k("".slice),du=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,pu=/\$([$&'`]|\d{1,2})/g,gu=function(e,t,r,n,o,i){var a=r+e.length,s=n.length,c=pu;return void 0!==o&&(o=ne(o),c=du),lu(i,c,(function(i,c){var u;switch(fu(c,0)){case"$":return"$";case"&":return e;case"`":return hu(t,0,r);case"'":return hu(t,a);case"<":u=o[hu(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>s){var l=uu(f/10);return 0===l?i:l<=s?void 0===n[l-1]?fu(c,1):n[l-1]+fu(c,1):i}u=n[f-1]}return void 0===u?"":u}))},vu=TypeError,yu=function(e,t){var r=e.exec;if(E(r)){var n=h(r,e,t);return null!==n&&Se(n),n}if("RegExp"===I(e))return h(nu,e,t);throw vu("RegExp#exec called on incompatible receiver")},mu=pe("replace"),bu=Math.max,wu=Math.min,ku=k([].concat),xu=k([].push),_u=k("".indexOf),Iu=k("".slice),Ou="$0"==="a".replace(/./,"$0"),zu=!!/./[mu]&&""===/./[mu]("a","$0");au("replace",(function(e,t,r){var n=zu?"$":"$0";return[function(e,r){var n=C(this),o=null==e?void 0:K(e,mu);return o?h(o,e,n,r):h(t,Gt(n),e,r)},function(e,o){var i=Se(this),a=Gt(e);if("string"==typeof o&&-1===_u(o,n)&&-1===_u(o,"$<")){var s=r(t,i,a,o);if(s.done)return s.value}var c=E(o);c||(o=Gt(o));var u=i.global;if(u){var f=i.unicode;i.lastIndex=0}for(var l=[];;){var h=yu(i,a);if(null===h)break;if(xu(l,h),!u)break;""===Gt(h[0])&&(i.lastIndex=cu(a,ht(i.lastIndex),f))}for(var d,p="",g=0,v=0;v<l.length;v++){for(var y=Gt((h=l[v])[0]),m=bu(wu(st(h.index),a.length),0),b=[],w=1;w<h.length;w++)xu(b,void 0===(d=h[w])?d:String(d));var k=h.groups;if(c){var x=ku([y],b,m,a);void 0!==k&&xu(x,k);var _=Gt(fn(o,void 0,x))}else _=gu(y,a,m,b,k,o);m>=g&&(p+=Iu(a,g,m)+_,g=m+y.length)}return p+Iu(a,g)}]}),!!c((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Ou||zu);var Pu=Function,Su=k([].concat),Cu=k([].join),ju={},Eu=function(e,t,r){if(!ie(ju,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";ju[t]=Pu("C,a","return new C("+Cu(n,",")+")")}return ju[t](e,r)},Tu=f?Pu.bind:function(e){var t=Y(this),r=t.prototype,n=ln(arguments,1),o=function(){var r=Su(n,ln(arguments));return this instanceof o?Eu(t,r.length,r):t.apply(e,r)};return T(r)&&(o.prototype=r),o},Ru=q("Reflect","construct"),qu=Object.prototype,Lu=[].push,Au=c((function(){function e(){}return!(Ru((function(){}),[],e)instanceof e)})),Uu=!c((function(){Ru((function(){}))})),Mu=Au||Uu;Rt({target:"Reflect",stat:!0,forced:Mu,sham:Mu},{construct:function(e,t){Ga(e),Se(t);var r=arguments.length<3?e:Ga(arguments[2]);if(Uu&&!Au)return Ru(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 fn(Lu,n,t),new(fn(Tu,e,n))}var o=r.prototype,i=Xt(T(o)?o:qu),a=fn(e,i,t);return T(a)?a:i}});var Fu=TypeError,Bu=function(e){if(e>9007199254740991)throw Fu("Maximum allowed index exceeded");return e},Wu=pe("isConcatSpreadable"),Nu=W>=51||!c((function(){var e=[];return e[Wu]=!1,e.concat()[0]!==e})),Du=Pn("concat"),Gu=function(e){if(!T(e))return!1;var t=e[Wu];return void 0!==t?!!t:pr(e)};function Hu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $u(e,t){return($u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ju(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&&$u(e,t)}function Vu(e,t){if(t&&("object"===Sc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Hu(e)}function Yu(e){return(Yu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ku(){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 Qu(e,t,r){return(Qu=Ku()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&$u(o,r.prototype),o}).apply(null,arguments)}function Xu(e){var t="function"==typeof Map?new Map:void 0;return(Xu=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 Qu(e,arguments,Yu(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),$u(n,e)})(e)}function Zu(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=Yu(e);if(t){var o=Yu(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Vu(this,r)}}Rt({target:"Array",proto:!0,arity:1,forced:!Nu||!Du},{concat:function(e){var t,r,n,o,i,a=ne(this),s=zr(a,0),c=0;for(t=-1,n=arguments.length;t<n;t++)if(Gu(i=-1===t?a:arguments[t]))for(o=dt(i),Bu(c+o),r=0;r<o;r++,c++)r in i&&Zt(s,c,i[r]);else Bu(c+1),Zt(s,c++,i);return s.length=c,s}});var ef=function(e){Ju(r,Xu(Error));var t=Zu(r);function r(e){var n;return co(this,r),lo(Hu(n=t.call(this,"".concat(e.status," ").concat(e.statusText))),"response",void 0),n.response=e,n}return fo(r)}();function tf(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 rf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tf(Object(r),!0).forEach((function(t){lo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var nf,of=function(){var e=so(Mo.mark((function e(t,r,n,o){var i,a,s,c,u,f;return Mo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=rf(rf({},null==n?void 0:n.headers),null==r?void 0:r.headers),s=rf(rf({},null==n?void 0:n.fetchOptions),{},{headers:a,body:null==r?void 0:r.body,method:null!==(i=null==r?void 0:r.method)&&void 0!==i?i:"GET"}),c=(null==n?void 0:n.fetch)||Uc,e.next=5,c(t,s);case 5:if(u=e.sent,!o){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 ef(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,o){return e.apply(this,arguments)}}(),af=function(e,t,r){return r.get&&rt(r.get,t,{getter:!0}),r.set&&rt(r.set,t,{setter:!0}),Te.f(e,t,r)},sf=Object.assign,cf=Object.defineProperty,uf=k([].concat),ff=!sf||c((function(){if(u&&1!==sf({b:1},sf(cf({},"a",{enumerable:!0,get:function(){cf(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!=sf({},e)[r]||"abcdefghijklmnopqrst"!=qt(sf({},t)).join("")}))?function(e,t){for(var r=ne(e),n=arguments.length,o=1,i=kt.f,a=g.f;n>o;)for(var s,c=P(arguments[o++]),f=i?uf(qt(c),i(c)):qt(c),l=f.length,d=0;l>d;)s=f[d++],u&&!h(a,c,s)||(r[s]=c[s]);return r}:sf,lf=function(e,t,r,n){try{return n?t(Se(r)[0],r[1]):t(r)}catch(t){pc(e,"throw",t)}},hf=Array,df=function(e){var t=ne(e),r=_r(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=dr(o,n>2?arguments[2]:void 0));var a,s,c,u,f,l,d=Ui(t),p=0;if(!d||this===hf&&dc(d))for(a=dt(t),s=r?new this(a):hf(a);a>p;p++)l=i?o(t[p],p):t[p],Zt(s,p,l);else for(f=(u=Fi(t,d)).next,s=r?new this:[];!(c=h(f,u)).done;p++)l=i?lf(u,o,[c.value,p],!0):c.value,Zt(s,p,l);return s.length=p,s},pf=/[^\0-\u007E]/,gf=/[.\u3002\uFF0E\uFF61]/g,vf="Overflow: input needs wider integers to process",yf=RangeError,mf=k(gf.exec),bf=Math.floor,wf=String.fromCharCode,kf=k("".charCodeAt),xf=k([].join),_f=k([].push),If=k("".replace),Of=k("".split),zf=k("".toLowerCase),Pf=function(e){return e+22+75*(e<26)},Sf=function(e,t,r){var n=0;for(e=r?bf(e/700):e>>1,e+=bf(e/t);e>455;)e=bf(e/35),n+=36;return bf(n+36*e/(e+38))},Cf=function(e){var t,r,n=[],o=(e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=kf(e,r++);if(o>=55296&&o<=56319&&r<n){var i=kf(e,r++);56320==(64512&i)?_f(t,((1023&o)<<10)+(1023&i)+65536):(_f(t,o),r--)}else _f(t,o)}return t}(e)).length,i=128,a=0,s=72;for(t=0;t<e.length;t++)(r=e[t])<128&&_f(n,wf(r));var c=n.length,u=c;for(c&&_f(n,"-");u<o;){var f=2147483647;for(t=0;t<e.length;t++)(r=e[t])>=i&&r<f&&(f=r);var l=u+1;if(f-i>bf((2147483647-a)/l))throw yf(vf);for(a+=(f-i)*l,i=f,t=0;t<e.length;t++){if((r=e[t])<i&&++a>2147483647)throw yf(vf);if(r==i){for(var h=a,d=36;;){var p=d<=s?1:d>=s+26?26:d-s;if(h<p)break;var g=h-p,v=36-p;_f(n,wf(Pf(p+g%v))),h=bf(g/v),d+=36}_f(n,wf(Pf(h))),s=Sf(a,l,u==c),a=0,u++}}a++,i++}return xf(n,"")},jf=_i.codeAt,Ef=tt.set,Tf=tt.getterFor("URL"),Rf=Ra.URLSearchParams,qf=Ra.getState,Lf=s.URL,Af=s.TypeError,Uf=s.parseInt,Mf=Math.floor,Ff=Math.pow,Bf=k("".charAt),Wf=k(/./.exec),Nf=k([].join),Df=k(1..toString),Gf=k([].pop),Hf=k([].push),$f=k("".replace),Jf=k([].shift),Vf=k("".split),Yf=k("".slice),Kf=k("".toLowerCase),Qf=k([].unshift),Xf=/[a-z]/i,Zf=/[\d+-.a-z]/i,el=/\d/,tl=/^0x/i,rl=/^[0-7]+$/,nl=/^\d+$/,ol=/^[\da-f]+$/i,il=/[\0\t\n\r #%/:<>?@[\\\]^|]/,al=/[\0\t\n\r #/:<>?@[\\\]^|]/,sl=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,cl=/[\t\n\r]/g,ul=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)Qf(t,e%256),e=Mf(e/256);return Nf(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=Df(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},fl={},ll=ff({},fl,{" ":1,'"':1,"<":1,">":1,"`":1}),hl=ff({},ll,{"#":1,"?":1,"{":1,"}":1}),dl=ff({},hl,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),pl=function(e,t){var r=jf(e,0);return r>32&&r<127&&!ie(t,e)?e:encodeURIComponent(e)},gl={ftp:21,file:null,http:80,https:443,ws:80,wss:443},vl=function(e,t){var r;return 2==e.length&&Wf(Xf,Bf(e,0))&&(":"==(r=Bf(e,1))||!t&&"|"==r)},yl=function(e){var t;return e.length>1&&vl(Yf(e,0,2))&&(2==e.length||"/"===(t=Bf(e,2))||"\\"===t||"?"===t||"#"===t)},ml=function(e){return"."===e||"%2e"===Kf(e)},bl={},wl={},kl={},xl={},_l={},Il={},Ol={},zl={},Pl={},Sl={},Cl={},jl={},El={},Tl={},Rl={},ql={},Ll={},Al={},Ul={},Ml={},Fl={},Bl=function(e,t,r){var n,o,i,a=Gt(e);if(t){if(o=this.parse(a))throw Af(o);this.searchParams=null}else{if(void 0!==r&&(n=new Bl(r,!0)),o=this.parse(a,null,n))throw Af(o);(i=qf(new Rf)).bindURL(this),this.searchParams=i}};Bl.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,s,c=this,u=t||bl,f=0,l="",h=!1,d=!1,p=!1;for(e=Gt(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=$f(e,sl,"")),e=$f(e,cl,""),n=df(e);f<=n.length;){switch(o=n[f],u){case bl:if(!o||!Wf(Xf,o)){if(t)return"Invalid scheme";u=kl;continue}l+=Kf(o),u=wl;break;case wl:if(o&&(Wf(Zf,o)||"+"==o||"-"==o||"."==o))l+=Kf(o);else{if(":"!=o){if(t)return"Invalid scheme";l="",u=kl,f=0;continue}if(t&&(c.isSpecial()!=ie(gl,l)||"file"==l&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=l,t)return void(c.isSpecial()&&gl[c.scheme]==c.port&&(c.port=null));l="","file"==c.scheme?u=Tl:c.isSpecial()&&r&&r.scheme==c.scheme?u=xl:c.isSpecial()?u=zl:"/"==n[f+1]?(u=_l,f++):(c.cannotBeABaseURL=!0,Hf(c.path,""),u=Ul)}break;case kl:if(!r||r.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==o){c.scheme=r.scheme,c.path=rr(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,u=Fl;break}u="file"==r.scheme?Tl:Il;continue;case xl:if("/"!=o||"/"!=n[f+1]){u=Il;continue}u=Pl,f++;break;case _l:if("/"==o){u=Sl;break}u=Al;continue;case Il:if(c.scheme=r.scheme,o==nf)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=rr(r.path),c.query=r.query;else if("/"==o||"\\"==o&&c.isSpecial())u=Ol;else if("?"==o)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=rr(r.path),c.query="",u=Ml;else{if("#"!=o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=rr(r.path),c.path.length--,u=Al;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=rr(r.path),c.query=r.query,c.fragment="",u=Fl}break;case Ol:if(!c.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,u=Al;continue}u=Sl}else u=Pl;break;case zl:if(u=Pl,"/"!=o||"/"!=Bf(l,f+1))continue;f++;break;case Pl:if("/"!=o&&"\\"!=o){u=Sl;continue}break;case Sl:if("@"==o){h&&(l="%40"+l),h=!0,i=df(l);for(var g=0;g<i.length;g++){var v=i[g];if(":"!=v||p){var y=pl(v,dl);p?c.password+=y:c.username+=y}else p=!0}l=""}else if(o==nf||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(h&&""==l)return"Invalid authority";f-=df(l).length+1,l="",u=Cl}else l+=o;break;case Cl:case jl:if(t&&"file"==c.scheme){u=ql;continue}if(":"!=o||d){if(o==nf||"/"==o||"?"==o||"#"==o||"\\"==o&&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=Ll,t)return;continue}"["==o?d=!0:"]"==o&&(d=!1),l+=o}else{if(""==l)return"Invalid host";if(a=c.parseHost(l))return a;if(l="",u=El,t==jl)return}break;case El:if(!Wf(el,o)){if(o==nf||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()||t){if(""!=l){var m=Uf(l,10);if(m>65535)return"Invalid port";c.port=c.isSpecial()&&m===gl[c.scheme]?null:m,l=""}if(t)return;u=Ll;continue}return"Invalid port"}l+=o;break;case Tl:if(c.scheme="file","/"==o||"\\"==o)u=Rl;else{if(!r||"file"!=r.scheme){u=Al;continue}if(o==nf)c.host=r.host,c.path=rr(r.path),c.query=r.query;else if("?"==o)c.host=r.host,c.path=rr(r.path),c.query="",u=Ml;else{if("#"!=o){yl(Nf(rr(n,f),""))||(c.host=r.host,c.path=rr(r.path),c.shortenPath()),u=Al;continue}c.host=r.host,c.path=rr(r.path),c.query=r.query,c.fragment="",u=Fl}}break;case Rl:if("/"==o||"\\"==o){u=ql;break}r&&"file"==r.scheme&&!yl(Nf(rr(n,f),""))&&(vl(r.path[0],!0)?Hf(c.path,r.path[0]):c.host=r.host),u=Al;continue;case ql:if(o==nf||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&vl(l))u=Al;else if(""==l){if(c.host="",t)return;u=Ll}else{if(a=c.parseHost(l))return a;if("localhost"==c.host&&(c.host=""),t)return;l="",u=Ll}continue}l+=o;break;case Ll:if(c.isSpecial()){if(u=Al,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=nf&&(u=Al,"/"!=o))continue}else c.fragment="",u=Fl;else c.query="",u=Ml;break;case Al:if(o==nf||"/"==o||"\\"==o&&c.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(s=Kf(s=l))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"==o||"\\"==o&&c.isSpecial()||Hf(c.path,"")):ml(l)?"/"==o||"\\"==o&&c.isSpecial()||Hf(c.path,""):("file"==c.scheme&&!c.path.length&&vl(l)&&(c.host&&(c.host=""),l=Bf(l,0)+":"),Hf(c.path,l)),l="","file"==c.scheme&&(o==nf||"?"==o||"#"==o))for(;c.path.length>1&&""===c.path[0];)Jf(c.path);"?"==o?(c.query="",u=Ml):"#"==o&&(c.fragment="",u=Fl)}else l+=pl(o,hl);break;case Ul:"?"==o?(c.query="",u=Ml):"#"==o?(c.fragment="",u=Fl):o!=nf&&(c.path[0]+=pl(o,fl));break;case Ml:t||"#"!=o?o!=nf&&("'"==o&&c.isSpecial()?c.query+="%27":c.query+="#"==o?"%23":pl(o,fl)):(c.fragment="",u=Fl);break;case Fl:o!=nf&&(c.fragment+=pl(o,ll))}f++}},parseHost:function(e){var t,r,n;if("["==Bf(e,0)){if("]"!=Bf(e,e.length-1))return"Invalid host";if(!(t=function(e){var t,r,n,o,i,a,s,c=[0,0,0,0,0,0,0,0],u=0,f=null,l=0,h=function(){return Bf(e,l)};if(":"==h()){if(":"!=Bf(e,1))return;l+=2,f=++u}for(;h();){if(8==u)return;if(":"!=h()){for(t=r=0;r<4&&Wf(ol,h());)t=16*t+Uf(h(),16),l++,r++;if("."==h()){if(0==r)return;if(l-=r,u>6)return;for(n=0;h();){if(o=null,n>0){if(!("."==h()&&n<4))return;l++}if(!Wf(el,h()))return;for(;Wf(el,h());){if(i=Uf(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}c[u]=256*c[u]+o,2!=++n&&4!=n||u++}if(4!=n)return;break}if(":"==h()){if(l++,!h())return}else if(h())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}(Yf(e,1,-1))))return"Invalid host";this.host=t}else if(this.isSpecial()){if(e=function(e){var t,r,n=[],o=Of(If(zf(e),gf,"."),".");for(t=0;t<o.length;t++)r=o[t],_f(n,mf(pf,r)?"xn--"+Cf(r):r);return xf(n,".")}(e),Wf(il,e))return"Invalid host";if(null===(t=function(e){var t,r,n,o,i,a,s,c=Vf(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=c[n]))return e;if(i=10,o.length>1&&"0"==Bf(o,0)&&(i=Wf(tl,o)?16:8,o=Yf(o,8==i?1:2)),""===o)a=0;else{if(!Wf(10==i?nl:8==i?rl:ol,o))return e;a=Uf(o,i)}Hf(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=Ff(256,5-t))return null}else if(a>255)return null;for(s=Gf(r),n=0;n<r.length;n++)s+=r[n]*Ff(256,3-n);return s}(e)))return"Invalid host";this.host=t}else{if(Wf(al,e))return"Invalid host";for(t="",r=df(e),n=0;n<r.length;n++)t+=pl(r[n],fl);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return ie(gl,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&vl(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==o?(u+="//",e.includesCredentials()&&(u+=r+(n?":"+n:"")+"@"),u+=ul(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+Nf(a,"/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},setHref:function(e){var t=this.parse(e);if(t)throw Af(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Wl(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ul(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Gt(e)+":",bl)},getUsername:function(){return this.username},setUsername:function(e){var t=df(Gt(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=pl(t[r],dl)}},getPassword:function(){return this.password},setPassword:function(e){var t=df(Gt(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=pl(t[r],dl)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ul(e):ul(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Cl)},getHostname:function(){var e=this.host;return null===e?"":ul(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,jl)},getPort:function(){var e=this.port;return null===e?"":Gt(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=Gt(e))?this.port=null:this.parse(e,El))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Nf(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ll))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=Gt(e))?this.query=null:("?"==Bf(e,0)&&(e=Yf(e,1)),this.query="",this.parse(e,Ml)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=Gt(e))?("#"==Bf(e,0)&&(e=Yf(e,1)),this.fragment="",this.parse(e,Fl)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Wl=function(e){var t=Li(this,Nl),r=Wi(arguments.length,1)>1?arguments[1]:void 0,n=Ef(t,new Bl(e,!1,r));u||(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())},Nl=Wl.prototype,Dl=function(e,t){return{get:function(){return Tf(this)[e]()},set:t&&function(e){return Tf(this)[t](e)},configurable:!0,enumerable:!0}};if(u&&(af(Nl,"href",Dl("serialize","setHref")),af(Nl,"origin",Dl("getOrigin")),af(Nl,"protocol",Dl("getProtocol","setProtocol")),af(Nl,"username",Dl("getUsername","setUsername")),af(Nl,"password",Dl("getPassword","setPassword")),af(Nl,"host",Dl("getHost","setHost")),af(Nl,"hostname",Dl("getHostname","setHostname")),af(Nl,"port",Dl("getPort","setPort")),af(Nl,"pathname",Dl("getPathname","setPathname")),af(Nl,"search",Dl("getSearch","setSearch")),af(Nl,"searchParams",Dl("getSearchParams")),af(Nl,"hash",Dl("getHash","setHash"))),nt(Nl,"toJSON",(function(){return Tf(this).serialize()}),{enumerable:!0}),nt(Nl,"toString",(function(){return Tf(this).serialize()}),{enumerable:!0}),Lf){var Gl=Lf.createObjectURL,Hl=Lf.revokeObjectURL;Gl&&nt(Wl,"createObjectURL",dr(Gl,Lf)),Hl&&nt(Wl,"revokeObjectURL",dr(Hl,Lf))}function $l(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=Yu(e);if(t){var o=Yu(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Vu(this,r)}}lr(Wl,"URL"),Rt({global:!0,constructor:!0,forced:!Ri,sham:!u},{URL:Wl}),au("match",(function(e,t,r){return[function(t){var r=C(this),n=null==t?void 0:K(t,e);return n?h(n,t,r):new RegExp(t)[e](Gt(r))},function(e){var n=Se(this),o=Gt(e),i=r(t,n,o);if(i.done)return i.value;if(!n.global)return yu(n,o);var a=n.unicode;n.lastIndex=0;for(var s,c=[],u=0;null!==(s=yu(n,o));){var f=Gt(s[0]);c[u]=f,""===f&&(n.lastIndex=cu(o,ht(n.lastIndex),a)),u++}return 0===u?null:c}]}));var Jl=function(e){Ju(r,Xu(URL));var t=$l(r);function r(e,n,o){var i;co(this,r);var a={};return Object.keys((null==o?void 0:o.pathParams)||{}).forEach((function(e){var t,r=null==o||null===(t=o.pathParams)||void 0===t?void 0:t[e];r&&(a[e]=encodeURIComponent(r))})),(i=t.call(this,r.renderTemplateUri("".concat(n,"/").concat(e).replace(/\/\/+/g,"/"),a))).addQueryParams(null==o?void 0:o.queryParams),null!=o&&o.origin&&i.replaceOrigin(null==o?void 0:o.origin),i}return fo(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 o=0;o<n.length;o+=1)t.searchParams.append(r,String(n[o]));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}(),Vl="commerce-sdk-isomorphic@4.1.0";function Yl(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 Kl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yl(Object(r),!0).forEach((function(t){lo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ql=function(){function e(t){co(this,e),lo(this,"clientConfig",void 0);var r=Kl({},t);r.baseUri||(r.baseUri=(this instanceof e?this.constructor:void 0).defaultBaseUri),this.clientConfig=new Aa(r)}var t,r,n,o,i,a,s,c,u,f,l,h,d,p,g,v,y;return fo(e,[{key:"authenticateCustomer",value:(y=so(Mo.mark((function e(t,r){var n,o,i,a,s,c,u;return Mo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.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 i)||(e.startsWith("c_")||console.warn("Found unknown parameter for authenticateCustomer: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new Jl("/organizations/{organizationId}/oauth2/login",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=Kl(Kl({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Rc||(c["user-agent"]=[c["user-agent"],Vl].join(" ")),e.next=19,of(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 y.apply(this,arguments)})},{key:"authorizeCustomer",value:(v=so(Mo.mark((function e(t,r){var n,o,i,a,s,c,u;return Mo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.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===o.redirect_uri){e.next=21;break}a.redirect_uri=o.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===o.response_type){e.next=30;break}a.response_type=o.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===o.client_id){e.next=39;break}a.client_id=o.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!==o.scope&&(a.scope=o.scope),void 0!==n.state?a.state=n.state:void 0!==o.state&&(a.state=o.state),void 0!==n.usid?a.usid=n.usid:void 0!==o.usid&&(a.usid=o.usid),void 0!==n.hint?a.hint=n.hint:void 0!==o.hint&&(a.hint=o.hint),void 0!==n.channel_id?a.channel_id=n.channel_id:void 0!==o.channel_id&&(a.channel_id=o.channel_id),void 0!==n.code_challenge?a.code_challenge=n.code_challenge:void 0!==o.code_challenge&&(a.code_challenge=o.code_challenge),void 0!==n.ui_locales?a.ui_locales=n.ui_locales:void 0!==o.ui_locales&&(a.ui_locales=o.ui_locales),Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for authorizeCustomer: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new Jl("/organizations/{organizationId}/oauth2/authorize",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=Kl(Kl({},this.clientConfig.headers),null==t?void 0:t.headers),Rc||(c["user-agent"]=[c["user-agent"],Vl].join(" ")),e.next=53,of(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 v.apply(this,arguments)})},{key:"authorizePasswordlessCustomer",value:(g=so(Mo.mark((function e(t,r){var n,o,i,a,s,c,u;return Mo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.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 i)||(e.startsWith("c_")||console.warn("Found unknown parameter for authorizePasswordlessCustomer: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new Jl("/organizations/{organizationId}/oauth2/passwordless/login",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=Kl(Kl({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Rc||(c["user-agent"]=[c["user-agent"],Vl].join(" ")),e.next=19,of(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 g.apply(this,arguments)})},{key:"getAccessToken",value:(p=so(Mo.mark((function e(t,r){var n,o,i,a,s,c,u;return Mo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.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 i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getAccessToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new Jl("/organizations/{organizationId}/oauth2/token",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=Kl(Kl({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Rc||(c["user-agent"]=[c["user-agent"],Vl].join(" ")),e.next=19,of(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:"getJwksUri",value:(d=so(Mo.mark((function e(t,r){var n,o,i,a,s,c,u;return Mo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.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 i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getJwksUri: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new Jl("/organizations/{organizationId}/oauth2/jwks",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=Kl(Kl({},this.clientConfig.headers),null==t?void 0:t.headers),Rc||(c["user-agent"]=[c["user-agent"],Vl].join(" ")),e.next=19,of(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:(h=so(Mo.mark((function e(t,r){var n,o,i,a,s,c,u;return Mo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.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 i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getPasswordLessAccessToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new Jl("/organizations/{organizationId}/oauth2/passwordless/token",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=Kl(Kl({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Rc||(c["user-agent"]=[c["user-agent"],Vl].join(" ")),e.next=19,of(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:"getPasswordResetToken",value:(l=so(Mo.mark((function e(t,r){var n,o,i,a,s,c,u;return Mo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.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 i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getPasswordResetToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new Jl("/organizations/{organizationId}/oauth2/password/reset",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=Kl(Kl({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Rc||(c["user-agent"]=[c["user-agent"],Vl].join(" ")),e.next=19,of(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=so(Mo.mark((function e(t,r){var n,o,i,a,s,c,u;return Mo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.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 i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getSessionBridgeAccessToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new Jl("/organizations/{organizationId}/oauth2/session-bridge/token",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=Kl(Kl({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Rc||(c["user-agent"]=[c["user-agent"],Vl].join(" ")),e.next=19,of(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=so(Mo.mark((function e(t,r){var n,o,i,a,s,c,u;return Mo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.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 i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getTrustedAgentAccessToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new Jl("/organizations/{organizationId}/oauth2/trusted-agent/token",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=Kl(Kl({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Rc||(c["user-agent"]=[c["user-agent"],Vl].join(" ")),e.next=19,of(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=so(Mo.mark((function e(t,r){var n,o,i,a,s,c,u;return Mo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.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===o.client_id){e.next=21;break}a.client_id=o.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===o.channel_id){e.next=30;break}a.channel_id=o.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!==o.code_challenge&&(a.code_challenge=o.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===o.login_id){e.next=40;break}a.login_id=o.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===o.idp_origin){e.next=49;break}a.idp_origin=o.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===o.redirect_uri){e.next=58;break}a.redirect_uri=o.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===o.response_type){e.next=67;break}a.response_type=o.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 i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getTrustedAgentAuthorizationToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new Jl("/organizations/{organizationId}/oauth2/trusted-agent/authorize",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=Kl(Kl({},this.clientConfig.headers),null==t?void 0:t.headers),Rc||(c["user-agent"]=[c["user-agent"],Vl].join(" ")),e.next=74,of(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=so(Mo.mark((function e(t,r){var n,o,i,a,s,c,u;return Mo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.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 i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getTrustedSystemAccessToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new Jl("/organizations/{organizationId}/oauth2/trusted-system/token",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=Kl(Kl({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Rc||(c["user-agent"]=[c["user-agent"],Vl].join(" ")),e.next=19,of(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=so(Mo.mark((function e(t,r){var n,o,i,a,s,c,u;return Mo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.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!==o.channel_id&&(a.channel_id=o.channel_id),Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getUserInfo: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new Jl("/organizations/{organizationId}/oauth2/userinfo",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=Kl(Kl({},this.clientConfig.headers),null==t?void 0:t.headers),Rc||(c["user-agent"]=[c["user-agent"],Vl].join(" ")),e.next=20,of(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:(i=so(Mo.mark((function e(t,r){var n,o,i,a,s,c,u;return Mo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.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 i)||(e.startsWith("c_")||console.warn("Found unknown parameter for getWellknownOpenidConfiguration: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new Jl("/organizations/{organizationId}/oauth2/.well-known/openid-configuration",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=Kl(Kl({},this.clientConfig.headers),null==t?void 0:t.headers),Rc||(c["user-agent"]=[c["user-agent"],Vl].join(" ")),e.next=19,of(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 i.apply(this,arguments)})},{key:"introspectToken",value:(o=so(Mo.mark((function e(t,r){var n,o,i,a,s,c,u;return Mo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.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 i)||(e.startsWith("c_")||console.warn("Found unknown parameter for introspectToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new Jl("/organizations/{organizationId}/oauth2/introspect",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=Kl(Kl({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Rc||(c["user-agent"]=[c["user-agent"],Vl].join(" ")),e.next=19,of(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 o.apply(this,arguments)})},{key:"logoutCustomer",value:(n=so(Mo.mark((function e(t,r){var n,o,i,a,s,c,u;return Mo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.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===o.client_id){e.next=21;break}a.client_id=o.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===o.refresh_token){e.next=30;break}a.refresh_token=o.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!==o.channel_id&&(a.channel_id=o.channel_id),void 0!==n.hint?a.hint=n.hint:void 0!==o.hint&&(a.hint=o.hint),Object.keys(n).forEach((function(e){var t=n[e];void 0===t||!e.startsWith("c_")&&(e in a||e in i)||(e.startsWith("c_")||console.warn("Found unknown parameter for logoutCustomer: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new Jl("/organizations/{organizationId}/oauth2/logout",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=Kl(Kl({},this.clientConfig.headers),null==t?void 0:t.headers),Rc||(c["user-agent"]=[c["user-agent"],Vl].join(" ")),e.next=39,of(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=so(Mo.mark((function e(t,r){var n,o,i,a,s,c,u;return Mo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.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 i)||(e.startsWith("c_")||console.warn("Found unknown parameter for resetPassword: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new Jl("/organizations/{organizationId}/oauth2/password/action",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=Kl(Kl({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Rc||(c["user-agent"]=[c["user-agent"],Vl].join(" ")),e.next=19,of(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=so(Mo.mark((function e(t,r){var n,o,i,a,s,c,u;return Mo.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(null==t?void 0:t.parameters)||{},o=this.clientConfig.parameters,i={shortCode:o.shortCode},void 0===n.organizationId){e.next=7;break}i.organizationId=n.organizationId,e.next=12;break;case 7:if(void 0===o.organizationId){e.next=11;break}i.organizationId=o.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 i)||(e.startsWith("c_")||console.warn("Found unknown parameter for revokeToken: ".concat(e,", adding as query parameter anyway")),a[e]=t)})),s=new Jl("/organizations/{organizationId}/oauth2/revoke",this.clientConfig.baseUri,{pathParams:i,queryParams:a,origin:this.clientConfig.proxy}),c=Kl(Kl({"Content-Type":"application/x-www-form-urlencoded"},this.clientConfig.headers),null==t?void 0:t.headers),Rc||(c["user-agent"]=[c["user-agent"],Vl].join(" ")),e.next=19,of(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}();lo(Ql,"defaultBaseUri",t),lo(Ql,"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"}),lo(Ql,"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"]}),exports.ShopperLogin=Ql,exports.defaultBaseUri=t;
|