commerce-sdk-isomorphic 3.4.0 → 4.0.1-preview-shopper-test.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 +88 -10
  2. package/lib/clientConfig.cjs.d.ts +52 -0
  3. package/lib/clientConfig.cjs.js +1 -0
  4. package/lib/clientConfig.d.ts +52 -0
  5. package/lib/clientConfig.js +1 -0
  6. package/lib/config.cjs.d.ts +2 -0
  7. package/lib/config.cjs.js +1 -0
  8. package/lib/config.d.ts +2 -0
  9. package/lib/config.js +1 -0
  10. package/lib/helpers.cjs.d.ts +2225 -0
  11. package/lib/helpers.cjs.js +1 -0
  12. package/lib/helpers.d.ts +2225 -0
  13. package/lib/helpers.js +1 -0
  14. package/lib/index.cjs.d.ts +51500 -28554
  15. package/lib/index.cjs.js +1 -1
  16. package/lib/index.esm.d.ts +51500 -28554
  17. package/lib/index.esm.js +1 -1
  18. package/lib/responseError.cjs.d.ts +12 -0
  19. package/lib/responseError.cjs.js +1 -0
  20. package/lib/responseError.d.ts +12 -0
  21. package/lib/responseError.js +1 -0
  22. package/lib/shopperBaskets.cjs.d.ts +10259 -0
  23. package/lib/shopperBaskets.cjs.js +1 -0
  24. package/lib/shopperBaskets.d.ts +10259 -0
  25. package/lib/shopperBaskets.js +1 -0
  26. package/lib/shopperBasketsv2.cjs.d.ts +10453 -0
  27. package/lib/shopperBasketsv2.cjs.js +1 -0
  28. package/lib/shopperBasketsv2.d.ts +10453 -0
  29. package/lib/shopperBasketsv2.js +1 -0
  30. package/lib/shopperConsents.cjs.d.ts +1142 -0
  31. package/lib/shopperConsents.cjs.js +1 -0
  32. package/lib/shopperConsents.d.ts +1142 -0
  33. package/lib/shopperConsents.js +1 -0
  34. package/lib/shopperContext.cjs.d.ts +1401 -0
  35. package/lib/shopperContext.cjs.js +1 -0
  36. package/lib/shopperContext.d.ts +1401 -0
  37. package/lib/shopperContext.js +1 -0
  38. package/lib/shopperCustomers.cjs.d.ts +12185 -0
  39. package/lib/shopperCustomers.cjs.js +1 -0
  40. package/lib/shopperCustomers.d.ts +12185 -0
  41. package/lib/shopperCustomers.js +1 -0
  42. package/lib/shopperExperience.cjs.d.ts +1169 -0
  43. package/lib/shopperExperience.cjs.js +1 -0
  44. package/lib/shopperExperience.d.ts +1169 -0
  45. package/lib/shopperExperience.js +1 -0
  46. package/lib/shopperGiftCertificates.cjs.d.ts +729 -0
  47. package/lib/shopperGiftCertificates.cjs.js +1 -0
  48. package/lib/shopperGiftCertificates.d.ts +729 -0
  49. package/lib/shopperGiftCertificates.js +1 -0
  50. package/lib/shopperLogin.cjs.d.ts +3842 -0
  51. package/lib/shopperLogin.cjs.js +1 -0
  52. package/lib/shopperLogin.d.ts +3842 -0
  53. package/lib/shopperLogin.js +1 -0
  54. package/lib/shopperOrders.cjs.d.ts +5393 -0
  55. package/lib/shopperOrders.cjs.js +1 -0
  56. package/lib/shopperOrders.d.ts +5393 -0
  57. package/lib/shopperOrders.js +1 -0
  58. package/lib/shopperProducts.cjs.d.ts +3479 -0
  59. package/lib/shopperProducts.cjs.js +1 -0
  60. package/lib/shopperProducts.d.ts +3479 -0
  61. package/lib/shopperProducts.js +1 -0
  62. package/lib/shopperPromotions.cjs.d.ts +1001 -0
  63. package/lib/shopperPromotions.cjs.js +1 -0
  64. package/lib/shopperPromotions.d.ts +1001 -0
  65. package/lib/shopperPromotions.js +1 -0
  66. package/lib/shopperSearch.cjs.d.ts +3352 -0
  67. package/lib/shopperSearch.cjs.js +1 -0
  68. package/lib/shopperSearch.d.ts +3352 -0
  69. package/lib/shopperSearch.js +1 -0
  70. package/lib/shopperSeo.cjs.d.ts +769 -0
  71. package/lib/shopperSeo.cjs.js +1 -0
  72. package/lib/shopperSeo.d.ts +769 -0
  73. package/lib/shopperSeo.js +1 -0
  74. package/lib/shopperStores.cjs.d.ts +1289 -0
  75. package/lib/shopperStores.cjs.js +1 -0
  76. package/lib/shopperStores.d.ts +1289 -0
  77. package/lib/shopperStores.js +1 -0
  78. package/lib/templateUrl.cjs.d.ts +76 -0
  79. package/lib/templateUrl.cjs.js +1 -0
  80. package/lib/templateUrl.d.ts +76 -0
  81. package/lib/templateUrl.js +1 -0
  82. package/lib/version.cjs.d.ts +3 -0
  83. package/lib/version.cjs.js +1 -0
  84. package/lib/version.d.ts +3 -0
  85. package/lib/version.js +1 -0
  86. package/package.json +101 -32
@@ -0,0 +1 @@
1
+ var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(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 r,n,o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},u=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=Function.prototype.call,f=c?s.bind(s):function(){return s.apply(s,arguments)},l={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,p={f:h&&!l.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:l},v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=Function.prototype,y=g.bind,d=g.call,m=c&&y.bind(d,d),b=c?function(t){return t&&m(t)}:function(t){return t&&function(){return d.apply(t,arguments)}},w=b({}.toString),S=b("".slice),O=function(t){return S(w(t),8,-1)},P=Object,R=b("".split),x=a((function(){return!P("z").propertyIsEnumerable(0)}))?function(t){return"String"==O(t)?R(t,""):P(t)}:P,j=TypeError,L=function(t){if(null==t)throw j("Can't call method on "+t);return t},E=function(t){return x(L(t))},k=function(t){return"function"==typeof t},I=function(t){return"object"==typeof t?null!==t:k(t)},U=function(t){return k(t)?t:void 0},A=function(t,e){return arguments.length<2?U(i[t]):i[t]&&i[t][e]},T=b({}.isPrototypeOf),C=A("navigator","userAgent")||"",_=i.process,B=i.Deno,F=_&&_.versions||B&&B.version,q=F&&F.v8;q&&(n=(r=q.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&C&&(!(r=C.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=C.match(/Chrome\/(\d+)/))&&(n=+r[1]);var M=n,H=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&M&&M<41})),z=H&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$=Object,D=z?function(t){return"symbol"==typeof t}:function(t){var e=A("Symbol");return k(e)&&T(e.prototype,$(t))},G=String,N=function(t){try{return G(t)}catch(t){return"Object"}},V=TypeError,Q=function(t){if(k(t))return t;throw V(N(t)+" is not a function")},W=function(t,e){var r=t[e];return null==r?void 0:Q(r)},Y=TypeError,K=Object.defineProperty,X=function(t,e){try{K(i,t,{value:e,configurable:!0,writable:!0})}catch(r){i[t]=e}return e},J=i["__core-js_shared__"]||X("__core-js_shared__",{}),Z=e((function(t){(t.exports=function(t,e){return J[t]||(J[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"})})),tt=Object,et=function(t){return tt(L(t))},rt=b({}.hasOwnProperty),nt=Object.hasOwn||function(t,e){return rt(et(t),e)},ot=0,it=Math.random(),at=b(1..toString),ut=function(t){return"Symbol("+(void 0===t?"":t)+")_"+at(++ot+it,36)},ct=Z("wks"),st=i.Symbol,ft=st&&st.for,lt=z?st:st&&st.withoutSetter||ut,ht=function(t){if(!nt(ct,t)||!H&&"string"!=typeof ct[t]){var e="Symbol."+t;H&&nt(st,t)?ct[t]=st[t]:ct[t]=z&&ft?ft(e):lt(e)}return ct[t]},pt=TypeError,vt=ht("toPrimitive"),gt=function(t,e){if(!I(t)||D(t))return t;var r,n=W(t,vt);if(n){if(void 0===e&&(e="default"),r=f(n,t,e),!I(r)||D(r))return r;throw pt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&k(r=t.toString)&&!I(n=f(r,t)))return n;if(k(r=t.valueOf)&&!I(n=f(r,t)))return n;if("string"!==e&&k(r=t.toString)&&!I(n=f(r,t)))return n;throw Y("Can't convert object to primitive value")}(t,e)},yt=function(t){var e=gt(t,"string");return D(e)?e:e+""},dt=i.document,mt=I(dt)&&I(dt.createElement),bt=function(t){return mt?dt.createElement(t):{}},wt=!u&&!a((function(){return 7!=Object.defineProperty(bt("div"),"a",{get:function(){return 7}}).a})),St=Object.getOwnPropertyDescriptor,Ot={f:u?St:function(t,e){if(t=E(t),e=yt(e),wt)try{return St(t,e)}catch(t){}if(nt(t,e))return v(!f(p.f,t,e),t[e])}},Pt=u&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Rt=String,xt=TypeError,jt=function(t){if(I(t))return t;throw xt(Rt(t)+" is not an object")},Lt=TypeError,Et=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,It={f:u?Pt?function(t,e,r){if(jt(t),e=yt(e),jt(r),"function"==typeof t&&"prototype"===e&&"value"in r&&"writable"in r&&!r.writable){var n=kt(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 Et(t,e,r)}:Et:function(t,e,r){if(jt(t),e=yt(e),jt(r),wt)try{return Et(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Lt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Ut=u?function(t,e,r){return It.f(t,e,v(1,r))}:function(t,e,r){return t[e]=r,t},At=Function.prototype,Tt=u&&Object.getOwnPropertyDescriptor,Ct=nt(At,"name"),_t={EXISTS:Ct,PROPER:Ct&&"something"===function(){}.name,CONFIGURABLE:Ct&&(!u||u&&Tt(At,"name").configurable)},Bt=b(Function.toString);k(J.inspectSource)||(J.inspectSource=function(t){return Bt(t)});var Ft,qt,Mt,Ht=J.inspectSource,zt=i.WeakMap,$t=k(zt)&&/native code/.test(Ht(zt)),Dt=Z("keys"),Gt=function(t){return Dt[t]||(Dt[t]=ut(t))},Nt={},Vt=i.TypeError,Qt=i.WeakMap;if($t||J.state){var Wt=J.state||(J.state=new Qt),Yt=b(Wt.get),Kt=b(Wt.has),Xt=b(Wt.set);Ft=function(t,e){if(Kt(Wt,t))throw new Vt("Object already initialized");return e.facade=t,Xt(Wt,t,e),e},qt=function(t){return Yt(Wt,t)||{}},Mt=function(t){return Kt(Wt,t)}}else{var Jt=Gt("state");Nt[Jt]=!0,Ft=function(t,e){if(nt(t,Jt))throw new Vt("Object already initialized");return e.facade=t,Ut(t,Jt,e),e},qt=function(t){return nt(t,Jt)?t[Jt]:{}},Mt=function(t){return nt(t,Jt)}}var Zt={set:Ft,get:qt,has:Mt,enforce:function(t){return Mt(t)?qt(t):Ft(t,{})},getterFor:function(t){return function(e){var r;if(!I(e)||(r=qt(e)).type!==t)throw Vt("Incompatible receiver, "+t+" required");return r}}},te=e((function(t){var e=_t.CONFIGURABLE,r=Zt.enforce,n=Zt.get,o=Object.defineProperty,i=u&&!a((function(){return 8!==o((function(){}),"length",{value:8}).length})),c=String(String).split("String"),s=t.exports=function(t,n,a){"Symbol("===String(n).slice(0,7)&&(n="["+String(n).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(n="get "+n),a&&a.setter&&(n="set "+n),(!nt(t,"name")||e&&t.name!==n)&&(u?o(t,"name",{value:n,configurable:!0}):t.name=n),i&&a&&nt(a,"arity")&&t.length!==a.arity&&o(t,"length",{value:a.arity});try{a&&nt(a,"constructor")&&a.constructor?u&&o(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var s=r(t);return nt(s,"source")||(s.source=c.join("string"==typeof n?n:"")),t};Function.prototype.toString=s((function(){return k(this)&&n(this).source||Ht(this)}),"toString")})),ee=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(k(r)&&te(r,i,n),n.global)o?t[e]=r:X(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:It.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},re=Math.ceil,ne=Math.floor,oe=Math.trunc||function(t){var e=+t;return(e>0?ne:re)(e)},ie=function(t){var e=+t;return e!=e||0===e?0:oe(e)},ae=Math.max,ue=Math.min,ce=function(t,e){var r=ie(t);return r<0?ae(r+e,0):ue(r,e)},se=Math.min,fe=function(t){return t>0?se(ie(t),9007199254740991):0},le=function(t){return fe(t.length)},he=function(t){return function(e,r,n){var o,i=E(e),a=le(i),u=ce(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},pe={includes:he(!0),indexOf:he(!1)}.indexOf,ve=b([].push),ge=function(t,e){var r,n=E(t),o=0,i=[];for(r in n)!nt(Nt,r)&&nt(n,r)&&ve(i,r);for(;e.length>o;)nt(n,r=e[o++])&&(~pe(i,r)||ve(i,r));return i},ye=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],de=ye.concat("length","prototype"),me={f:Object.getOwnPropertyNames||function(t){return ge(t,de)}},be={f:Object.getOwnPropertySymbols},we=b([].concat),Se=A("Reflect","ownKeys")||function(t){var e=me.f(jt(t)),r=be.f;return r?we(e,r(t)):e},Oe=function(t,e,r){for(var n=Se(e),o=It.f,i=Ot.f,a=0;a<n.length;a++){var u=n[a];nt(t,u)||r&&nt(r,u)||o(t,u,i(e,u))}},Pe=/#|\.prototype\./,Re=function(t,e){var r=je[xe(t)];return r==Ee||r!=Le&&(k(e)?a(e):!!e)},xe=Re.normalize=function(t){return String(t).replace(Pe,".").toLowerCase()},je=Re.data={},Le=Re.NATIVE="N",Ee=Re.POLYFILL="P",ke=Re,Ie=Ot.f,Ue=function(t,e){var r,n,o,a,u,c=t.target,s=t.global,f=t.stat;if(r=s?i:f?i[c]||X(c,{}):(i[c]||{}).prototype)for(n in e){if(a=e[n],o=t.dontCallGetSet?(u=Ie(r,n))&&u.value:r[n],!ke(s?n:c+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;Oe(a,o)}(t.sham||o&&o.sham)&&Ut(a,"sham",!0),ee(r,n,a,t)}},Ae=Function.prototype,Te=Ae.apply,Ce=Ae.call,_e="object"==typeof Reflect&&Reflect.apply||(c?Ce.bind(Te):function(){return Ce.apply(Te,arguments)}),Be=b([].slice),Fe=Function,qe=b([].concat),Me=b([].join),He={},ze=function(t,e,r){if(!nt(He,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";He[e]=Fe("C,a","return new C("+Me(n,",")+")")}return He[e](t,r)},$e=c?Fe.bind:function(t){var e=Q(this),r=e.prototype,n=Be(arguments,1),o=function(){var r=qe(n,Be(arguments));return this instanceof o?ze(e,r.length,r):e.apply(t,r)};return I(r)&&(o.prototype=r),o},De={};De[ht("toStringTag")]="z";var Ge="[object z]"===String(De),Ne=ht("toStringTag"),Ve=Object,Qe="Arguments"==O(function(){return arguments}()),We=Ge?O: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=Ve(t),Ne))?r:Qe?O(e):"Object"==(n=O(e))&&k(e.callee)?"Arguments":n},Ye=function(){},Ke=[],Xe=A("Reflect","construct"),Je=/^\s*(?:class|function)\b/,Ze=b(Je.exec),tr=!Je.exec(Ye),er=function(t){if(!k(t))return!1;try{return Xe(Ye,Ke,t),!0}catch(t){return!1}},rr=function(t){if(!k(t))return!1;switch(We(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return tr||!!Ze(Je,Ht(t))}catch(t){return!0}};rr.sham=!0;var nr,or=!Xe||a((function(){var t;return er(er.call)||!er(Object)||!er((function(){t=!0}))||t}))?rr:er,ir=TypeError,ar=function(t){if(or(t))return t;throw ir(N(t)+" is not a constructor")},ur=Object.keys||function(t){return ge(t,ye)},cr={f:u&&!Pt?Object.defineProperties:function(t,e){jt(t);for(var r,n=E(e),o=ur(e),i=o.length,a=0;i>a;)It.f(t,r=o[a++],n[r]);return t}},sr=A("document","documentElement"),fr=Gt("IE_PROTO"),lr=function(){},hr=function(t){return"<script>"+t+"<\/script>"},pr=function(t){t.write(hr("")),t.close();var e=t.parentWindow.Object;return t=null,e},vr=function(){try{nr=new ActiveXObject("htmlfile")}catch(t){}var t,e;vr="undefined"!=typeof document?document.domain&&nr?pr(nr):((e=bt("iframe")).style.display="none",sr.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(hr("document.F=Object")),t.close(),t.F):pr(nr);for(var r=ye.length;r--;)delete vr.prototype[ye[r]];return vr()};Nt[fr]=!0;var gr=Object.create||function(t,e){var r;return null!==t?(lr.prototype=jt(t),r=new lr,lr.prototype=null,r[fr]=t):r=vr(),void 0===e?r:cr.f(r,e)},yr=A("Reflect","construct"),dr=Object.prototype,mr=[].push,br=a((function(){function t(){}return!(yr((function(){}),[],t)instanceof t)})),wr=!a((function(){yr((function(){}))})),Sr=br||wr;Ue({target:"Reflect",stat:!0,forced:Sr,sham:Sr},{construct:function(t,e){ar(t),jt(e);var r=arguments.length<3?t:ar(arguments[2]);if(wr&&!br)return yr(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 _e(mr,n,e),new(_e($e,t,n))}var o=r.prototype,i=gr(I(o)?o:dr),a=_e(t,i,e);return I(a)?a:i}});var Or=Ge?{}.toString:function(){return"[object "+We(this)+"]"};Ge||ee(Object.prototype,"toString",Or,{unsafe:!0});var Pr,Rr,xr={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},jr=bt("span").classList,Lr=jr&&jr.constructor&&jr.constructor.prototype,Er=Lr===Object.prototype?void 0:Lr,kr=b(b.bind),Ir=function(t,e){return Q(t),void 0===e?t:c?kr(t,e):function(){return t.apply(e,arguments)}},Ur=Array.isArray||function(t){return"Array"==O(t)},Ar=ht("species"),Tr=Array,Cr=function(t,e){return new(function(t){var e;return Ur(t)&&(e=t.constructor,(or(e)&&(e===Tr||Ur(e.prototype))||I(e)&&null===(e=e[Ar]))&&(e=void 0)),void 0===e?Tr:e}(t))(0===e?0:e)},_r=b([].push),Br=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(c,s,f,l){for(var h,p,v=et(c),g=x(v),y=Ir(s,f),d=le(g),m=0,b=l||Cr,w=e?b(c,d):r||a?b(c,0):void 0;d>m;m++)if((u||m in g)&&(p=y(h=g[m],m,v),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:_r(w,h)}else switch(t){case 4:return!1;case 7:_r(w,h)}return i?-1:n||o?o:w}},Fr={forEach:Br(0),map:Br(1),filter:Br(2),some:Br(3),every:Br(4),find:Br(5),findIndex:Br(6),filterReject:Br(7)}.forEach,qr=!!(Rr=[]["forEach"])&&a((function(){Rr.call(null,Pr||function(){return 1},1)}))?[].forEach:function(t){return Fr(this,t,arguments.length>1?arguments[1]:void 0)},Mr=function(t){if(t&&t.forEach!==qr)try{Ut(t,"forEach",qr)}catch(e){t.forEach=qr}};for(var Hr in xr)xr[Hr]&&Mr(i[Hr]&&i[Hr].prototype);Mr(Er);var zr=a((function(){ur(1)}));Ue({target:"Object",stat:!0,forced:zr},{keys:function(t){return ur(et(t))}});var $r,Dr,Gr=String,Nr=function(t){if("Symbol"===We(t))throw TypeError("Cannot convert a Symbol value to a string");return Gr(t)},Vr=function(){var t=jt(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},Qr=i.RegExp,Wr=a((function(){var t=Qr("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Yr=Wr||a((function(){return!Qr("a","y").sticky})),Kr={BROKEN_CARET:Wr||a((function(){var t=Qr("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Yr,UNSUPPORTED_Y:Wr},Xr=i.RegExp,Jr=a((function(){var t=Xr(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Zr=i.RegExp,tn=a((function(){var t=Zr("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),en=Zt.get,rn=Z("native-string-replace",String.prototype.replace),nn=RegExp.prototype.exec,on=nn,an=b("".charAt),un=b("".indexOf),cn=b("".replace),sn=b("".slice),fn=(Dr=/b*/g,f(nn,$r=/a/,"a"),f(nn,Dr,"a"),0!==$r.lastIndex||0!==Dr.lastIndex),ln=Kr.BROKEN_CARET,hn=void 0!==/()??/.exec("")[1];(fn||hn||ln||Jr||tn)&&(on=function(t){var e,r,n,o,i,a,u,c=this,s=en(c),l=Nr(t),h=s.raw;if(h)return h.lastIndex=c.lastIndex,e=f(on,h,l),c.lastIndex=h.lastIndex,e;var p=s.groups,v=ln&&c.sticky,g=f(Vr,c),y=c.source,d=0,m=l;if(v&&(g=cn(g,"y",""),-1===un(g,"g")&&(g+="g"),m=sn(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==an(l,c.lastIndex-1))&&(y="(?: "+y+")",m=" "+m,d++),r=new RegExp("^(?:"+y+")",g)),hn&&(r=new RegExp("^"+y+"$(?!\\s)",g)),fn&&(n=c.lastIndex),o=f(nn,v?r:c,m),v?o?(o.input=sn(o.input,d),o[0]=sn(o[0],d),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:fn&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),hn&&o&&o.length>1&&f(rn,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=gr(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var pn=on;Ue({target:"RegExp",proto:!0,forced:/./.exec!==pn},{exec:pn});var vn=ht("species"),gn=RegExp.prototype,yn=function(t,e,r,n){var o=ht(t),i=!a((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),u=i&&!a((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[vn]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!u||r){var c=b(/./[o]),s=e(o,""[t],(function(t,e,r,n,o){var a=b(t),u=e.exec;return u===pn||u===gn.exec?i&&!o?{done:!0,value:c(e,r,n)}:{done:!0,value:a(r,e,n)}:{done:!1}}));ee(String.prototype,t,s[0]),ee(gn,o,s[1])}n&&Ut(gn[o],"sham",!0)},dn=b("".charAt),mn=b("".charCodeAt),bn=b("".slice),wn=function(t){return function(e,r){var n,o,i=Nr(L(e)),a=ie(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=mn(i,a))<55296||n>56319||a+1===u||(o=mn(i,a+1))<56320||o>57343?t?dn(i,a):n:t?bn(i,a,a+2):o-56320+(n-55296<<10)+65536}},Sn={codeAt:wn(!1),charAt:wn(!0)},On=Sn.charAt,Pn=function(t,e,r){return e+(r?On(t,e).length:1)},Rn=Math.floor,xn=b("".charAt),jn=b("".replace),Ln=b("".slice),En=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,kn=/\$([$&'`]|\d{1,2})/g,In=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,c=kn;return void 0!==o&&(o=et(o),c=En),jn(i,c,(function(i,c){var s;switch(xn(c,0)){case"$":return"$";case"&":return t;case"`":return Ln(e,0,r);case"'":return Ln(e,a);case"<":s=o[Ln(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>u){var l=Rn(f/10);return 0===l?i:l<=u?void 0===n[l-1]?xn(c,1):n[l-1]+xn(c,1):i}s=n[f-1]}return void 0===s?"":s}))},Un=TypeError,An=function(t,e){var r=t.exec;if(k(r)){var n=f(r,t,e);return null!==n&&jt(n),n}if("RegExp"===O(t))return f(pn,t,e);throw Un("RegExp#exec called on incompatible receiver")},Tn=ht("replace"),Cn=Math.max,_n=Math.min,Bn=b([].concat),Fn=b([].push),qn=b("".indexOf),Mn=b("".slice),Hn="$0"==="a".replace(/./,"$0"),zn=!!/./[Tn]&&""===/./[Tn]("a","$0");yn("replace",(function(t,e,r){var n=zn?"$":"$0";return[function(t,r){var n=L(this),o=null==t?void 0:W(t,Tn);return o?f(o,t,n,r):f(e,Nr(n),t,r)},function(t,o){var i=jt(this),a=Nr(t);if("string"==typeof o&&-1===qn(o,n)&&-1===qn(o,"$<")){var u=r(e,i,a,o);if(u.done)return u.value}var c=k(o);c||(o=Nr(o));var s=i.global;if(s){var f=i.unicode;i.lastIndex=0}for(var l=[];;){var h=An(i,a);if(null===h)break;if(Fn(l,h),!s)break;""===Nr(h[0])&&(i.lastIndex=Pn(a,fe(i.lastIndex),f))}for(var p,v="",g=0,y=0;y<l.length;y++){for(var d=Nr((h=l[y])[0]),m=Cn(_n(ie(h.index),a.length),0),b=[],w=1;w<h.length;w++)Fn(b,void 0===(p=h[w])?p:String(p));var S=h.groups;if(c){var O=Bn([d],b,m,a);void 0!==S&&Fn(O,S);var P=Nr(_e(o,void 0,O))}else P=In(d,a,m,b,S,o);m>=g&&(v+=Mn(a,g,m)+P,g=m+d.length)}return v+Mn(a,g)}]}),!!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Hn||zn);var $n=TypeError,Dn=function(t){if(t>9007199254740991)throw $n("Maximum allowed index exceeded");return t},Gn=function(t,e,r){var n=yt(e);n in t?It.f(t,n,v(0,r)):t[n]=r},Nn=ht("species"),Vn=ht("isConcatSpreadable"),Qn=M>=51||!a((function(){var t=[];return t[Vn]=!1,t.concat()[0]!==t})),Wn=function(t){return M>=51||!a((function(){var e=[];return(e.constructor={})[Nn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("concat"),Yn=function(t){if(!I(t))return!1;var e=t[Vn];return void 0!==e?!!e:Ur(t)};Ue({target:"Array",proto:!0,arity:1,forced:!Qn||!Wn},{concat:function(t){var e,r,n,o,i,a=et(this),u=Cr(a,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(Yn(i=-1===e?a:arguments[e]))for(o=le(i),Dn(c+o),r=0;r<o;r++,c++)r in i&&Gn(u,c,i[r]);else Dn(c+1),Gn(u,c++,i);return u.length=c,u}});var Kn=It.f,Xn=ht("unscopables"),Jn=Array.prototype;null==Jn[Xn]&&Kn(Jn,Xn,{configurable:!0,value:gr(null)});var Zn,to,eo,ro=function(t){Jn[Xn][t]=!0},no={},oo=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),io=Gt("IE_PROTO"),ao=Object,uo=ao.prototype,co=oo?ao.getPrototypeOf:function(t){var e=et(t);if(nt(e,io))return e[io];var r=e.constructor;return k(r)&&e instanceof r?r.prototype:e instanceof ao?uo:null},so=ht("iterator"),fo=!1;[].keys&&("next"in(eo=[].keys())?(to=co(co(eo)))!==Object.prototype&&(Zn=to):fo=!0),(null==Zn||a((function(){var t={};return Zn[so].call(t)!==t})))&&(Zn={}),k(Zn[so])||ee(Zn,so,(function(){return this}));var lo={IteratorPrototype:Zn,BUGGY_SAFARI_ITERATORS:fo},ho=It.f,po=ht("toStringTag"),vo=function(t,e,r){t&&!r&&(t=t.prototype),t&&!nt(t,po)&&ho(t,po,{configurable:!0,value:e})},go=lo.IteratorPrototype,yo=function(){return this},mo=function(t,e,r,n){var o=e+" Iterator";return t.prototype=gr(go,{next:v(+!n,r)}),vo(t,o,!1),no[o]=yo,t},bo=String,wo=TypeError,So=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=b(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return jt(r),function(t){if("object"==typeof t||k(t))return t;throw wo("Can't set "+bo(t)+" as a prototype")}(n),e?t(r,n):r.__proto__=n,r}}():void 0),Oo=_t.PROPER,Po=_t.CONFIGURABLE,Ro=lo.IteratorPrototype,xo=lo.BUGGY_SAFARI_ITERATORS,jo=ht("iterator"),Lo=function(){return this},Eo=function(t,e,r,n,o,i,a){mo(r,e,n);var u,c,s,l=function(t){if(t===o&&y)return y;if(!xo&&t in v)return v[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},h=e+" Iterator",p=!1,v=t.prototype,g=v[jo]||v["@@iterator"]||o&&v[o],y=!xo&&g||l(o),d="Array"==e&&v.entries||g;if(d&&(u=co(d.call(new t)))!==Object.prototype&&u.next&&(co(u)!==Ro&&(So?So(u,Ro):k(u[jo])||ee(u,jo,Lo)),vo(u,h,!0)),Oo&&"values"==o&&g&&"values"!==g.name&&(Po?Ut(v,"name","values"):(p=!0,y=function(){return f(g,this)})),o)if(c={values:l("values"),keys:i?y:l("keys"),entries:l("entries")},a)for(s in c)(xo||p||!(s in v))&&ee(v,s,c[s]);else Ue({target:e,proto:!0,forced:xo||p},c);return v[jo]!==y&&ee(v,jo,y,{name:o}),no[e]=y,c},ko=It.f,Io=Zt.set,Uo=Zt.getterFor("Array Iterator"),Ao=Eo(Array,"Array",(function(t,e){Io(this,{type:"Array Iterator",target:E(t),index:0,kind:e})}),(function(){var t=Uo(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"),To=no.Arguments=no.Array;if(ro("keys"),ro("values"),ro("entries"),u&&"values"!==To.name)try{ko(To,"name",{value:"values"})}catch(t){}var Co=Sn.charAt,_o=Zt.set,Bo=Zt.getterFor("String Iterator");Eo(String,"String",(function(t){_o(this,{type:"String Iterator",string:Nr(t),index:0})}),(function(){var t,e=Bo(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Co(r,n),e.index+=t.length,{value:t,done:!1})}));var Fo=ht("iterator"),qo=ht("toStringTag"),Mo=Ao.values,Ho=function(t,e){if(t){if(t[Fo]!==Mo)try{Ut(t,Fo,Mo)}catch(e){t[Fo]=Mo}if(t[qo]||Ut(t,qo,e),xr[e])for(var r in Ao)if(t[r]!==Ao[r])try{Ut(t,r,Ao[r])}catch(e){t[r]=Ao[r]}}};for(var zo in xr)Ho(i[zo]&&i[zo].prototype,zo);Ho(Er,"DOMTokenList");var $o=ht("iterator"),Do=!a((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[$o]||"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})),Go=function(t,e,r){return r.get&&te(r.get,e,{getter:!0}),r.set&&te(r.set,e,{setter:!0}),It.f(t,e,r)},No=TypeError,Vo=function(t,e){if(T(e,t))return t;throw No("Incorrect invocation")},Qo=Object.assign,Wo=Object.defineProperty,Yo=b([].concat),Ko=!Qo||a((function(){if(u&&1!==Qo({b:1},Qo(Wo({},"a",{enumerable:!0,get:function(){Wo(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!=Qo({},t)[r]||"abcdefghijklmnopqrst"!=ur(Qo({},e)).join("")}))?function(t,e){for(var r=et(t),n=arguments.length,o=1,i=be.f,a=p.f;n>o;)for(var c,s=x(arguments[o++]),l=i?Yo(ur(s),i(s)):ur(s),h=l.length,v=0;h>v;)c=l[v++],u&&!f(a,s,c)||(r[c]=s[c]);return r}:Qo,Xo=function(t,e,r,n){try{return n?e(jt(r)[0],r[1]):e(r)}catch(e){!function(t,e,r){var n,o;jt(t);try{if(!(n=W(t,"return"))){if("throw"===e)throw r;return r}n=f(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;jt(n)}(t,"throw",e)}},Jo=ht("iterator"),Zo=Array.prototype,ti=function(t){return void 0!==t&&(no.Array===t||Zo[Jo]===t)},ei=ht("iterator"),ri=function(t){if(null!=t)return W(t,ei)||W(t,"@@iterator")||no[We(t)]},ni=TypeError,oi=function(t,e){var r=arguments.length<2?ri(t):e;if(Q(r))return jt(f(r,t));throw ni(N(t)+" is not iterable")},ii=Array,ai=function(t){var e=et(t),r=or(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Ir(o,n>2?arguments[2]:void 0));var a,u,c,s,l,h,p=ri(e),v=0;if(!p||this===ii&&ti(p))for(a=le(e),u=r?new this(a):ii(a);a>v;v++)h=i?o(e[v],v):e[v],Gn(u,v,h);else for(l=(s=oi(e,p)).next,u=r?new this:[];!(c=f(l,s)).done;v++)h=i?Xo(s,o,[c.value,v],!0):c.value,Gn(u,v,h);return u.length=v,u},ui=Array,ci=Math.max,si=function(t,e,r){for(var n=le(t),o=ce(e,n),i=ce(void 0===r?n:r,n),a=ui(ci(i-o,0)),u=0;o<i;o++,u++)Gn(a,u,t[o]);return a.length=u,a},fi=/[^\0-\u007E]/,li=/[.\u3002\uFF0E\uFF61]/g,hi="Overflow: input needs wider integers to process",pi=RangeError,vi=b(li.exec),gi=Math.floor,yi=String.fromCharCode,di=b("".charCodeAt),mi=b([].join),bi=b([].push),wi=b("".replace),Si=b("".split),Oi=b("".toLowerCase),Pi=function(t){return t+22+75*(t<26)},Ri=function(t,e,r){var n=0;for(t=r?gi(t/700):t>>1,t+=gi(t/e);t>455;)t=gi(t/35),n+=36;return gi(n+36*t/(t+38))},xi=function(t){var e,r,n=[],o=(t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=di(t,r++);if(o>=55296&&o<=56319&&r<n){var i=di(t,r++);56320==(64512&i)?bi(e,((1023&o)<<10)+(1023&i)+65536):(bi(e,o),r--)}else bi(e,o)}return e}(t)).length,i=128,a=0,u=72;for(e=0;e<t.length;e++)(r=t[e])<128&&bi(n,yi(r));var c=n.length,s=c;for(c&&bi(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>gi((2147483647-a)/l))throw pi(hi);for(a+=(f-i)*l,i=f,e=0;e<t.length;e++){if((r=t[e])<i&&++a>2147483647)throw pi(hi);if(r==i){for(var h=a,p=36;;){var v=p<=u?1:p>=u+26?26:p-u;if(h<v)break;var g=h-v,y=36-v;bi(n,yi(Pi(v+g%y))),h=gi(g/y),p+=36}bi(n,yi(Pi(h))),u=Ri(a,l,s==c),a=0,s++}}a++,i++}return mi(n,"")},ji=TypeError,Li=function(t,e){if(t<e)throw ji("Not enough arguments");return t},Ei=Math.floor,ki=function(t,e){var r=t.length,n=Ei(r/2);return r<8?Ii(t,e):Ui(t,ki(si(t,0,n),e),ki(si(t,n),e),e)},Ii=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},Ui=function(t,e,r,n){for(var o=e.length,i=r.length,a=0,u=0;a<o||u<i;)t[a+u]=a<o&&u<i?n(e[a],r[u])<=0?e[a++]:r[u++]:a<o?e[a++]:r[u++];return t},Ai=ki,Ti=ht("iterator"),Ci=Zt.set,_i=Zt.getterFor("URLSearchParams"),Bi=Zt.getterFor("URLSearchParamsIterator"),Fi=Object.getOwnPropertyDescriptor,qi=function(t){if(!u)return i[t];var e=Fi(i,t);return e&&e.value},Mi=qi("fetch"),Hi=qi("Request"),zi=qi("Headers"),$i=Hi&&Hi.prototype,Di=zi&&zi.prototype,Gi=i.RegExp,Ni=i.TypeError,Vi=i.decodeURIComponent,Qi=i.encodeURIComponent,Wi=b("".charAt),Yi=b([].join),Ki=b([].push),Xi=b("".replace),Ji=b([].shift),Zi=b([].splice),ta=b("".split),ea=b("".slice),ra=/\+/g,na=Array(4),oa=function(t){return na[t-1]||(na[t-1]=Gi("((?:%[\\da-f]{2}){"+t+"})","gi"))},ia=function(t){try{return Vi(t)}catch(e){return t}},aa=function(t){var e=Xi(t,ra," "),r=4;try{return Vi(e)}catch(t){for(;r;)e=Xi(e,oa(r--),ia);return e}},ua=/[!'()~]|%20/g,ca={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},sa=function(t){return ca[t]},fa=function(t){return Xi(Qi(t),ua,sa)},la=mo((function(t,e){Ci(this,{type:"URLSearchParamsIterator",iterator:oi(_i(t).entries),kind:e})}),"Iterator",(function(){var t=Bi(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),ha=function(t){this.entries=[],this.url=null,void 0!==t&&(I(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===Wi(t,0)?ea(t,1):t:Nr(t)))};ha.prototype={type:"URLSearchParams",bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,o,i,a,u,c=ri(t);if(c)for(r=(e=oi(t,c)).next;!(n=f(r,e)).done;){if(i=(o=oi(jt(n.value))).next,(a=f(i,o)).done||(u=f(i,o)).done||!f(i,o).done)throw Ni("Expected sequence with length 2");Ki(this.entries,{key:Nr(a.value),value:Nr(u.value)})}else for(var s in t)nt(t,s)&&Ki(this.entries,{key:s,value:Nr(t[s])})},parseQuery:function(t){if(t)for(var e,r,n=ta(t,"&"),o=0;o<n.length;)(e=n[o++]).length&&(r=ta(e,"="),Ki(this.entries,{key:aa(Ji(r)),value:aa(Yi(r,"="))}))},serialize:function(){for(var t,e=this.entries,r=[],n=0;n<e.length;)t=e[n++],Ki(r,fa(t.key)+"="+fa(t.value));return Yi(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var pa=function(){Vo(this,va);var t=arguments.length>0?arguments[0]:void 0;Ci(this,new ha(t))},va=pa.prototype;if(function(t,e,r){for(var n in e)ee(t,n,e[n],r)}(va,{append:function(t,e){Li(arguments.length,2);var r=_i(this);Ki(r.entries,{key:Nr(t),value:Nr(e)}),r.updateURL()},delete:function(t){Li(arguments.length,1);for(var e=_i(this),r=e.entries,n=Nr(t),o=0;o<r.length;)r[o].key===n?Zi(r,o,1):o++;e.updateURL()},get:function(t){Li(arguments.length,1);for(var e=_i(this).entries,r=Nr(t),n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){Li(arguments.length,1);for(var e=_i(this).entries,r=Nr(t),n=[],o=0;o<e.length;o++)e[o].key===r&&Ki(n,e[o].value);return n},has:function(t){Li(arguments.length,1);for(var e=_i(this).entries,r=Nr(t),n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){Li(arguments.length,1);for(var r,n=_i(this),o=n.entries,i=!1,a=Nr(t),u=Nr(e),c=0;c<o.length;c++)(r=o[c]).key===a&&(i?Zi(o,c--,1):(i=!0,r.value=u));i||Ki(o,{key:a,value:u}),n.updateURL()},sort:function(){var t=_i(this);Ai(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,r=_i(this).entries,n=Ir(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 la(this,"keys")},values:function(){return new la(this,"values")},entries:function(){return new la(this,"entries")}},{enumerable:!0}),ee(va,Ti,va.entries,{name:"entries"}),ee(va,"toString",(function(){return _i(this).serialize()}),{enumerable:!0}),vo(pa,"URLSearchParams"),Ue({global:!0,constructor:!0,forced:!Do},{URLSearchParams:pa}),!Do&&k(zi)){var ga=b(Di.has),ya=b(Di.set),da=function(t){if(I(t)){var e,r=t.body;if("URLSearchParams"===We(r))return e=t.headers?new zi(t.headers):new zi,ga(e,"content-type")||ya(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),gr(t,{body:v(0,Nr(r)),headers:v(0,e)})}return t};if(k(Mi)&&Ue({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return Mi(t,arguments.length>1?da(arguments[1]):{})}}),k(Hi)){var ma=function(t){return Vo(this,$i),new Hi(t,arguments.length>1?da(arguments[1]):{})};$i.constructor=ma,ma.prototype=$i,Ue({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ma})}}var ba,wa={URLSearchParams:pa,getState:_i},Sa=Sn.codeAt,Oa=Zt.set,Pa=Zt.getterFor("URL"),Ra=wa.URLSearchParams,xa=wa.getState,ja=i.URL,La=i.TypeError,Ea=i.parseInt,ka=Math.floor,Ia=Math.pow,Ua=b("".charAt),Aa=b(/./.exec),Ta=b([].join),Ca=b(1..toString),_a=b([].pop),Ba=b([].push),Fa=b("".replace),qa=b([].shift),Ma=b("".split),Ha=b("".slice),za=b("".toLowerCase),$a=b([].unshift),Da=/[a-z]/i,Ga=/[\d+-.a-z]/i,Na=/\d/,Va=/^0x/i,Qa=/^[0-7]+$/,Wa=/^\d+$/,Ya=/^[\da-f]+$/i,Ka=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Xa=/[\0\t\n\r #/:<>?@[\\\]^|]/,Ja=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,Za=/[\t\n\r]/g,tu=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)$a(e,t%256),t=ka(t/256);return Ta(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+=Ca(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},eu={},ru=Ko({},eu,{" ":1,'"':1,"<":1,">":1,"`":1}),nu=Ko({},ru,{"#":1,"?":1,"{":1,"}":1}),ou=Ko({},nu,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),iu=function(t,e){var r=Sa(t,0);return r>32&&r<127&&!nt(e,t)?t:encodeURIComponent(t)},au={ftp:21,file:null,http:80,https:443,ws:80,wss:443},uu=function(t,e){var r;return 2==t.length&&Aa(Da,Ua(t,0))&&(":"==(r=Ua(t,1))||!e&&"|"==r)},cu=function(t){var e;return t.length>1&&uu(Ha(t,0,2))&&(2==t.length||"/"===(e=Ua(t,2))||"\\"===e||"?"===e||"#"===e)},su=function(t){return"."===t||"%2e"===za(t)},fu={},lu={},hu={},pu={},vu={},gu={},yu={},du={},mu={},bu={},wu={},Su={},Ou={},Pu={},Ru={},xu={},ju={},Lu={},Eu={},ku={},Iu={},Uu=function(t,e,r){var n,o,i,a=Nr(t);if(e){if(o=this.parse(a))throw La(o);this.searchParams=null}else{if(void 0!==r&&(n=new Uu(r,!0)),o=this.parse(a,null,n))throw La(o);(i=xa(new Ra)).bindURL(this),this.searchParams=i}};Uu.prototype={type:"URL",parse:function(t,e,r){var n,o,i,a,u,c=this,s=e||fu,f=0,l="",h=!1,p=!1,v=!1;for(t=Nr(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=Fa(t,Ja,"")),t=Fa(t,Za,""),n=ai(t);f<=n.length;){switch(o=n[f],s){case fu:if(!o||!Aa(Da,o)){if(e)return"Invalid scheme";s=hu;continue}l+=za(o),s=lu;break;case lu:if(o&&(Aa(Ga,o)||"+"==o||"-"==o||"."==o))l+=za(o);else{if(":"!=o){if(e)return"Invalid scheme";l="",s=hu,f=0;continue}if(e&&(c.isSpecial()!=nt(au,l)||"file"==l&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=l,e)return void(c.isSpecial()&&au[c.scheme]==c.port&&(c.port=null));l="","file"==c.scheme?s=Pu:c.isSpecial()&&r&&r.scheme==c.scheme?s=pu:c.isSpecial()?s=du:"/"==n[f+1]?(s=vu,f++):(c.cannotBeABaseURL=!0,Ba(c.path,""),s=Eu)}break;case hu:if(!r||r.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==o){c.scheme=r.scheme,c.path=si(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,s=Iu;break}s="file"==r.scheme?Pu:gu;continue;case pu:if("/"!=o||"/"!=n[f+1]){s=gu;continue}s=mu,f++;break;case vu:if("/"==o){s=bu;break}s=Lu;continue;case gu:if(c.scheme=r.scheme,o==ba)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=si(r.path),c.query=r.query;else if("/"==o||"\\"==o&&c.isSpecial())s=yu;else if("?"==o)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=si(r.path),c.query="",s=ku;else{if("#"!=o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=si(r.path),c.path.length--,s=Lu;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=si(r.path),c.query=r.query,c.fragment="",s=Iu}break;case yu:if(!c.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,s=Lu;continue}s=bu}else s=mu;break;case du:if(s=mu,"/"!=o||"/"!=Ua(l,f+1))continue;f++;break;case mu:if("/"!=o&&"\\"!=o){s=bu;continue}break;case bu:if("@"==o){h&&(l="%40"+l),h=!0,i=ai(l);for(var g=0;g<i.length;g++){var y=i[g];if(":"!=y||v){var d=iu(y,ou);v?c.password+=d:c.username+=d}else v=!0}l=""}else if(o==ba||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(h&&""==l)return"Invalid authority";f-=ai(l).length+1,l="",s=wu}else l+=o;break;case wu:case Su:if(e&&"file"==c.scheme){s=xu;continue}if(":"!=o||p){if(o==ba||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(c.isSpecial()&&""==l)return"Invalid host";if(e&&""==l&&(c.includesCredentials()||null!==c.port))return;if(a=c.parseHost(l))return a;if(l="",s=ju,e)return;continue}"["==o?p=!0:"]"==o&&(p=!1),l+=o}else{if(""==l)return"Invalid host";if(a=c.parseHost(l))return a;if(l="",s=Ou,e==Su)return}break;case Ou:if(!Aa(Na,o)){if(o==ba||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()||e){if(""!=l){var m=Ea(l,10);if(m>65535)return"Invalid port";c.port=c.isSpecial()&&m===au[c.scheme]?null:m,l=""}if(e)return;s=ju;continue}return"Invalid port"}l+=o;break;case Pu:if(c.scheme="file","/"==o||"\\"==o)s=Ru;else{if(!r||"file"!=r.scheme){s=Lu;continue}if(o==ba)c.host=r.host,c.path=si(r.path),c.query=r.query;else if("?"==o)c.host=r.host,c.path=si(r.path),c.query="",s=ku;else{if("#"!=o){cu(Ta(si(n,f),""))||(c.host=r.host,c.path=si(r.path),c.shortenPath()),s=Lu;continue}c.host=r.host,c.path=si(r.path),c.query=r.query,c.fragment="",s=Iu}}break;case Ru:if("/"==o||"\\"==o){s=xu;break}r&&"file"==r.scheme&&!cu(Ta(si(n,f),""))&&(uu(r.path[0],!0)?Ba(c.path,r.path[0]):c.host=r.host),s=Lu;continue;case xu:if(o==ba||"/"==o||"\\"==o||"?"==o||"#"==o){if(!e&&uu(l))s=Lu;else if(""==l){if(c.host="",e)return;s=ju}else{if(a=c.parseHost(l))return a;if("localhost"==c.host&&(c.host=""),e)return;l="",s=ju}continue}l+=o;break;case ju:if(c.isSpecial()){if(s=Lu,"/"!=o&&"\\"!=o)continue}else if(e||"?"!=o)if(e||"#"!=o){if(o!=ba&&(s=Lu,"/"!=o))continue}else c.fragment="",s=Iu;else c.query="",s=ku;break;case Lu:if(o==ba||"/"==o||"\\"==o&&c.isSpecial()||!e&&("?"==o||"#"==o)){if(".."===(u=za(u=l))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(c.shortenPath(),"/"==o||"\\"==o&&c.isSpecial()||Ba(c.path,"")):su(l)?"/"==o||"\\"==o&&c.isSpecial()||Ba(c.path,""):("file"==c.scheme&&!c.path.length&&uu(l)&&(c.host&&(c.host=""),l=Ua(l,0)+":"),Ba(c.path,l)),l="","file"==c.scheme&&(o==ba||"?"==o||"#"==o))for(;c.path.length>1&&""===c.path[0];)qa(c.path);"?"==o?(c.query="",s=ku):"#"==o&&(c.fragment="",s=Iu)}else l+=iu(o,nu);break;case Eu:"?"==o?(c.query="",s=ku):"#"==o?(c.fragment="",s=Iu):o!=ba&&(c.path[0]+=iu(o,eu));break;case ku:e||"#"!=o?o!=ba&&("'"==o&&c.isSpecial()?c.query+="%27":c.query+="#"==o?"%23":iu(o,eu)):(c.fragment="",s=Iu);break;case Iu:o!=ba&&(c.fragment+=iu(o,ru))}f++}},parseHost:function(t){var e,r,n;if("["==Ua(t,0)){if("]"!=Ua(t,t.length-1))return"Invalid host";if(!(e=function(t){var e,r,n,o,i,a,u,c=[0,0,0,0,0,0,0,0],s=0,f=null,l=0,h=function(){return Ua(t,l)};if(":"==h()){if(":"!=Ua(t,1))return;l+=2,f=++s}for(;h();){if(8==s)return;if(":"!=h()){for(e=r=0;r<4&&Aa(Ya,h());)e=16*e+Ea(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(!Aa(Na,h()))return;for(;Aa(Na,h());){if(i=Ea(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}c[s]=256*c[s]+o,2!=++n&&4!=n||s++}if(4!=n)return;break}if(":"==h()){if(l++,!h())return}else if(h())return;c[s++]=e}else{if(null!==f)return;l++,f=++s}}if(null!==f)for(a=s-f,s=7;0!=s&&a>0;)u=c[s],c[s--]=c[f+a-1],c[f+--a]=u;else if(8!=s)return;return c}(Ha(t,1,-1))))return"Invalid host";this.host=e}else if(this.isSpecial()){if(t=function(t){var e,r,n=[],o=Si(wi(Oi(t),li,"."),".");for(e=0;e<o.length;e++)r=o[e],bi(n,vi(fi,r)?"xn--"+xi(r):r);return mi(n,".")}(t),Aa(Ka,t))return"Invalid host";if(null===(e=function(t){var e,r,n,o,i,a,u,c=Ma(t,".");if(c.length&&""==c[c.length-1]&&c.length--,(e=c.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(o=c[n]))return t;if(i=10,o.length>1&&"0"==Ua(o,0)&&(i=Aa(Va,o)?16:8,o=Ha(o,8==i?1:2)),""===o)a=0;else{if(!Aa(10==i?Wa:8==i?Qa:Ya,o))return t;a=Ea(o,i)}Ba(r,a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=Ia(256,5-e))return null}else if(a>255)return null;for(u=_a(r),n=0;n<r.length;n++)u+=r[n]*Ia(256,3-n);return u}(t)))return"Invalid host";this.host=e}else{if(Aa(Xa,t))return"Invalid host";for(e="",r=ai(t),n=0;n<r.length;n++)e+=iu(r[n],eu);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return nt(au,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"==this.scheme&&1==e&&uu(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,u=t.query,c=t.fragment,s=e+":";return null!==o?(s+="//",t.includesCredentials()&&(s+=r+(n?":"+n:"")+"@"),s+=tu(o),null!==i&&(s+=":"+i)):"file"==e&&(s+="//"),s+=t.cannotBeABaseURL?a[0]:a.length?"/"+Ta(a,"/"):"",null!==u&&(s+="?"+u),null!==c&&(s+="#"+c),s},setHref:function(t){var e=this.parse(t);if(e)throw La(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"==t)try{return new Au(t.path[0]).origin}catch(t){return"null"}return"file"!=t&&this.isSpecial()?t+"://"+tu(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(Nr(t)+":",fu)},getUsername:function(){return this.username},setUsername:function(t){var e=ai(Nr(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<e.length;r++)this.username+=iu(e[r],ou)}},getPassword:function(){return this.password},setPassword:function(t){var e=ai(Nr(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<e.length;r++)this.password+=iu(e[r],ou)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?tu(t):tu(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,wu)},getHostname:function(){var t=this.host;return null===t?"":tu(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,Su)},getPort:function(){var t=this.port;return null===t?"":Nr(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""==(t=Nr(t))?this.port=null:this.parse(t,Ou))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+Ta(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,ju))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""==(t=Nr(t))?this.query=null:("?"==Ua(t,0)&&(t=Ha(t,1)),this.query="",this.parse(t,ku)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!=(t=Nr(t))?("#"==Ua(t,0)&&(t=Ha(t,1)),this.fragment="",this.parse(t,Iu)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Au=function(t){var e=Vo(this,Tu),r=Li(arguments.length,1)>1?arguments[1]:void 0,n=Oa(e,new Uu(t,!1,r));u||(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())},Tu=Au.prototype,Cu=function(t,e){return{get:function(){return Pa(this)[t]()},set:e&&function(t){return Pa(this)[e](t)},configurable:!0,enumerable:!0}};if(u&&(Go(Tu,"href",Cu("serialize","setHref")),Go(Tu,"origin",Cu("getOrigin")),Go(Tu,"protocol",Cu("getProtocol","setProtocol")),Go(Tu,"username",Cu("getUsername","setUsername")),Go(Tu,"password",Cu("getPassword","setPassword")),Go(Tu,"host",Cu("getHost","setHost")),Go(Tu,"hostname",Cu("getHostname","setHostname")),Go(Tu,"port",Cu("getPort","setPort")),Go(Tu,"pathname",Cu("getPathname","setPathname")),Go(Tu,"search",Cu("getSearch","setSearch")),Go(Tu,"searchParams",Cu("getSearchParams")),Go(Tu,"hash",Cu("getHash","setHash"))),ee(Tu,"toJSON",(function(){return Pa(this).serialize()}),{enumerable:!0}),ee(Tu,"toString",(function(){return Pa(this).serialize()}),{enumerable:!0}),ja){var _u=ja.createObjectURL,Bu=ja.revokeObjectURL;_u&&ee(Au,"createObjectURL",Ir(_u,ja)),Bu&&ee(Au,"revokeObjectURL",Ir(Bu,ja))}function Fu(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 qu(t,e){return(qu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Mu(t){return(Mu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Hu(t,e){if(e&&("object"===Mu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function zu(t){return(zu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function $u(){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 Du(t,e,r){return(Du=$u()?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&&qu(o,r.prototype),o}).apply(null,arguments)}function Gu(t){var e="function"==typeof Map?new Map:void 0;return(Gu=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 Du(t,arguments,zu(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),qu(n,t)})(t)}function Nu(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=zu(t);if(e){var o=zu(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Hu(this,r)}}vo(Au,"URL"),Ue({global:!0,constructor:!0,forced:!Do,sham:!u},{URL:Au}),yn("match",(function(t,e,r){return[function(e){var r=L(this),n=null==e?void 0:W(e,t);return n?f(n,e,r):new RegExp(e)[t](Nr(r))},function(t){var n=jt(this),o=Nr(t),i=r(e,n,o);if(i.done)return i.value;if(!n.global)return An(n,o);var a=n.unicode;n.lastIndex=0;for(var u,c=[],s=0;null!==(u=An(n,o));){var f=Nr(u[0]);c[s]=f,""===f&&(n.lastIndex=Pn(o,fe(n.lastIndex),a)),s++}return 0===s?null:c}]}));var Vu=function(t){!function(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&&qu(t,e)}(i,Gu(URL));var e,r,n,o=Nu(i);function i(t,e,r){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);var a={};return Object.keys((null==r?void 0:r.pathParams)||{}).forEach((function(t){var e,n=null==r||null===(e=r.pathParams)||void 0===e?void 0:e[t];n&&(a[t]=encodeURIComponent(n))})),(n=o.call(this,i.renderTemplateUri("".concat(e,"/").concat(t).replace(/\/\/+/g,"/"),a))).addQueryParams(null==r?void 0:r.queryParams),null!=r&&r.origin&&n.replaceOrigin(null==r?void 0:r.origin),n}return e=i,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=[{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))}))}}])&&Fu(e.prototype,r),n&&Fu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();export{Vu as default};
@@ -0,0 +1,3 @@
1
+ declare const USER_AGENT_HEADER = "user-agent";
2
+ declare const USER_AGENT_VALUE = "commerce-sdk-isomorphic@4.0.0";
3
+ export { USER_AGENT_HEADER, USER_AGENT_VALUE };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.USER_AGENT_HEADER="user-agent",exports.USER_AGENT_VALUE="commerce-sdk-isomorphic@4.0.0";
@@ -0,0 +1,3 @@
1
+ declare const USER_AGENT_HEADER = "user-agent";
2
+ declare const USER_AGENT_VALUE = "commerce-sdk-isomorphic@4.0.0";
3
+ export { USER_AGENT_HEADER, USER_AGENT_VALUE };
package/lib/version.js ADDED
@@ -0,0 +1 @@
1
+ var e="user-agent",r="commerce-sdk-isomorphic@4.0.0";export{e as USER_AGENT_HEADER,r as USER_AGENT_VALUE};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commerce-sdk-isomorphic",
3
- "version": "3.4.0",
3
+ "version": "4.0.1-preview-shopper-test.0",
4
4
  "private": false,
5
5
  "description": "Salesforce Commerce SDK Isomorphic",
6
6
  "bugs": {
@@ -11,6 +11,94 @@
11
11
  "url": "git+https://github.com/SalesforceCommerceCloud/commerce-sdk-isomorphic.git"
12
12
  },
13
13
  "license": "BSD-3-Clause",
14
+ "sideEffects": false,
15
+ "exports": {
16
+ ".": {
17
+ "import": "./lib/index.esm.js",
18
+ "require": "./lib/index.cjs.js"
19
+ },
20
+ "./shopperBaskets": {
21
+ "import": "./lib/shopperBaskets.js",
22
+ "require": "./lib/shopperBaskets.cjs.js"
23
+ },
24
+ "./shopperBasketsv2": {
25
+ "import": "./lib/shopperBasketsv2.js",
26
+ "require": "./lib/shopperBasketsv2.cjs.js"
27
+ },
28
+ "./shopperConsents": {
29
+ "import": "./lib/shopperConsents.js",
30
+ "require": "./lib/shopperConsents.cjs.js"
31
+ },
32
+ "./shopperContext": {
33
+ "import": "./lib/shopperContext.js",
34
+ "require": "./lib/shopperContext.cjs.js"
35
+ },
36
+ "./shopperCustomers": {
37
+ "import": "./lib/shopperCustomers.js",
38
+ "require": "./lib/shopperCustomers.cjs.js"
39
+ },
40
+ "./shopperExperience": {
41
+ "import": "./lib/shopperExperience.js",
42
+ "require": "./lib/shopperExperience.cjs.js"
43
+ },
44
+ "./shopperGiftCertificates": {
45
+ "import": "./lib/shopperGiftCertificates.js",
46
+ "require": "./lib/shopperGiftCertificates.cjs.js"
47
+ },
48
+ "./shopperLogin": {
49
+ "import": "./lib/shopperLogin.js",
50
+ "require": "./lib/shopperLogin.cjs.js"
51
+ },
52
+ "./shopperOrders": {
53
+ "import": "./lib/shopperOrders.js",
54
+ "require": "./lib/shopperOrders.cjs.js"
55
+ },
56
+ "./shopperProducts": {
57
+ "import": "./lib/shopperProducts.js",
58
+ "require": "./lib/shopperProducts.cjs.js"
59
+ },
60
+ "./shopperPromotions": {
61
+ "import": "./lib/shopperPromotions.js",
62
+ "require": "./lib/shopperPromotions.cjs.js"
63
+ },
64
+ "./shopperSearch": {
65
+ "import": "./lib/shopperSearch.js",
66
+ "require": "./lib/shopperSearch.cjs.js"
67
+ },
68
+ "./shopperSeo": {
69
+ "import": "./lib/shopperSeo.js",
70
+ "require": "./lib/shopperSeo.cjs.js"
71
+ },
72
+ "./shopperStores": {
73
+ "import": "./lib/shopperStores.js",
74
+ "require": "./lib/shopperStores.cjs.js"
75
+ },
76
+ "./helpers": {
77
+ "import": "./lib/helpers.js",
78
+ "require": "./lib/helpers.cjs.js"
79
+ },
80
+ "./clientConfig": {
81
+ "import": "./lib/clientConfig.js",
82
+ "require": "./lib/clientConfig.cjs.js"
83
+ },
84
+ "./config": {
85
+ "import": "./lib/config.js",
86
+ "require": "./lib/config.cjs.js"
87
+ },
88
+ "./responseError": {
89
+ "import": "./lib/responseError.js",
90
+ "require": "./lib/responseError.cjs.js"
91
+ },
92
+ "./templateUrl": {
93
+ "import": "./lib/templateUrl.js",
94
+ "require": "./lib/templateUrl.cjs.js"
95
+ },
96
+ "./version": {
97
+ "import": "./lib/version.js",
98
+ "require": "./lib/version.cjs.js"
99
+ },
100
+ "./package.json": "./package.json"
101
+ },
14
102
  "main": "lib/index.cjs.js",
15
103
  "module": "lib/index.esm.js",
16
104
  "style": "lib/default.css",
@@ -21,25 +109,27 @@
21
109
  ],
22
110
  "scripts": {
23
111
  "build": "react-scripts build",
24
- "build:lib": "rollup -c",
112
+ "build:lib": "ts-node --compiler-options '{\"module\": \"commonjs\", \"target\": \"ES6\" }' ./scripts/generateFileList.ts && rollup -c",
25
113
  "check:size": "npm-pack-all --output commerce-sdk-isomorphic-with-deps.tgz && bundlesize",
26
114
  "check:types": "tsc --noEmit",
115
+ "ci": "rm -rf node_modules && yarn install",
27
116
  "clean": "rm -rf build lib src/lib commerce-sdk-isomorphic-with-deps.tgz",
28
117
  "depcheck": "depcheck",
29
- "diffApis": "raml-toolkit diff --dir temp/oldApis apis -f console -o temp/diffApis.txt",
30
- "doc": "yarn run doc:generate",
118
+ "diffApis": "raml-toolkit diff --dir ./temp/oldApis ./apis -f console -o temp/diffApis.txt -s oas",
119
+ "doc": "yarn run generateVersionTable && yarn run doc:generate",
31
120
  "doc:generate": "typedoc --mode modules src/lib/** --external-modulemap \".*/src/lib/([\\w]+)\" --exclude \"src/lib/index.ts\"",
32
121
  "eject": "react-scripts eject",
33
122
  "fix": "yarn run lint -- --fix",
34
123
  "fix:style": "yarn run lint:style -- --fix",
124
+ "generateVersionTable": "ts-node --compiler-options '{\"module\": \"commonjs\", \"target\": \"ES6\" }' ./scripts/generateVersionTable.ts",
35
125
  "lint": "eslint --ext js,jsx,ts,tsx .",
36
126
  "lint:style": "stylelint ./src/",
37
127
  "prepare": "snyk protect",
38
- "renderTemplates": "ts-node --compiler-options '{\"module\": \"commonjs\", \"target\": \"ES6\" }' ./scripts/generate.ts",
128
+ "renderTemplates": "PACKAGE_VERSION=$(node -p \"require('./package.json').version\") ts-node --compiler-options '{\"module\": \"commonjs\", \"target\": \"ES6\" }' ./scripts/generate-oas.ts",
39
129
  "start": "HTTPS=true react-scripts start",
40
130
  "pretest": "yarn run lint && yarn run lint:style && depcheck && yarn run check:size",
41
131
  "test": "yarn run check:types && yarn run test:unit && CI=true yarn run test:react",
42
- "test:react": "react-scripts test --env=jest-environment-jsdom-sixteen src/environment",
132
+ "test:react": "react-scripts test --env=jest-environment-jsdom-sixteen src/environment --setupFilesAfterEnv ./src/test/setupTests.ts",
43
133
  "test:unit": "jest --coverage --testPathIgnorePatterns node_modules src/environment --silent",
44
134
  "updateApis": "ts-node --compiler-options '{\"module\": \"commonjs\", \"target\": \"ES6\" }' ./scripts/updateApis.ts && yarn diffApis"
45
135
  },
@@ -67,26 +157,6 @@
67
157
  "last 1 safari version"
68
158
  ]
69
159
  },
70
- "jest": {
71
- "collectCoverageFrom": [
72
- "src/static/**/*.{js,jsx,ts,tsx}",
73
- "scripts/**/*.{js,jsx,ts,tsx}",
74
- "!scripts/generate.ts",
75
- "!scripts/updateApis.ts",
76
- "!<rootDir>/node_modules/"
77
- ],
78
- "coverageReporters": [
79
- "text"
80
- ],
81
- "coverageThreshold": {
82
- "global": {
83
- "branches": 90,
84
- "functions": 90,
85
- "lines": 90,
86
- "statements": 90
87
- }
88
- }
89
- },
90
160
  "resolutions": {
91
161
  "**/@npmcli/fs": "<1.1.0",
92
162
  "**/@oclif/command": "<=1.8.3",
@@ -97,7 +167,6 @@
97
167
  },
98
168
  "dependencies": {
99
169
  "nanoid": "^3.3.8",
100
- "node-fetch": "2.6.13",
101
170
  "seedrandom": "^3.0.5"
102
171
  },
103
172
  "devDependencies": {
@@ -108,14 +177,13 @@
108
177
  "@babel/preset-env": "7.18.6",
109
178
  "@babel/preset-react": "7.18.6",
110
179
  "@babel/preset-typescript": "^7.18.6",
111
- "@commerce-apps/raml-toolkit": "0.5.12",
180
+ "@commerce-apps/raml-toolkit": "^0.8.0",
112
181
  "@rollup/plugin-babel": "5.3.1",
113
182
  "@rollup/plugin-commonjs": "13.0.2",
114
183
  "@rollup/plugin-node-resolve": "8.4.0",
115
184
  "@testing-library/jest-dom": "5.16.4",
116
185
  "@testing-library/react": "10.4.9",
117
186
  "@types/fs-extra": "^9.0.13",
118
- "@types/handlebars-helpers": "^0.5.3",
119
187
  "@types/node-fetch": "^2.6.2",
120
188
  "@types/react-dom": "^16.9.16",
121
189
  "@types/seedrandom": "^3.0.8",
@@ -136,11 +204,12 @@
136
204
  "eslint-plugin-react": "7.30.1",
137
205
  "eslint-plugin-react-hooks": "4.6.0",
138
206
  "fs-extra": "^9.1.0",
139
- "handlebars-helpers": "^0.10.0",
207
+ "handlebars": "4.7.7",
140
208
  "husky": "4.3.8",
141
209
  "jest-environment-jsdom-sixteen": "1.0.3",
142
210
  "lint-staged": "10.5.4",
143
211
  "nock": "^13.2.8",
212
+ "node-fetch": "2.6.13",
144
213
  "npm-pack-all": "^1.12.7",
145
214
  "postcss-preset-env": "6.7.1",
146
215
  "prettier": "^2.7.1",
@@ -177,11 +246,11 @@
177
246
  "bundlesize": [
178
247
  {
179
248
  "path": "lib/**/*.js",
180
- "maxSize": "50 kB"
249
+ "maxSize": "53 kB"
181
250
  },
182
251
  {
183
252
  "path": "commerce-sdk-isomorphic-with-deps.tgz",
184
- "maxSize": "565 kB"
253
+ "maxSize": "2.4 MB"
185
254
  }
186
255
  ],
187
256
  "proxy": "https://SHORTCODE.api.commercecloud.salesforce.com"