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