@gradientedge/commercetools-utils 5.2.0 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- var t={8842:(t,e,r)=>{e.Status=void 0;var o=r(7536);Object.defineProperty(e,"Status",{enumerable:!0,get:function(){return o.Status}});r(7890)},7890:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reason=void 0;const o=r(7536);e.reason=function(t){switch(t){case 200:return"OK";case 203:return"Non-Authoritative Information";case 207:return"Multi-Status";case 226:return"IM Used";case 414:return"URI Too Long";case 418:return"I'm a teapot";case 505:return"HTTP Version Not Supported";default:return(Object.keys(o.Status).find((e=>o.Status[e]===t))||"").replace(/(?!^)([A-Z])/gm," $1")}}},7536:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Status=e.ErrorStatus=e.RedirectionStatus=e.SuccessStatus=e.InformationStatus=void 0,e.InformationStatus={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103},e.SuccessStatus={Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226},e.RedirectionStatus={MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,TemporaryRedirect:307,PermanentRedirect:308},e.ErrorStatus={BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RequestedRangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511},e.Status=Object.assign(Object.assign(Object.assign(Object.assign({},e.InformationStatus),e.SuccessStatus),e.RedirectionStatus),e.ErrorStatus)},4530:(t,e)=>{function r(t,e){var r=[],o=[];return null==e&&(e=function(t,e){return r[0]===e?"[Circular ~]":"[Circular ~."+o.slice(0,r.indexOf(e)).join(".")+"]"}),function(s,n){if(r.length>0){var a=r.indexOf(this);~a?r.splice(a+1):r.push(this),~a?o.splice(a,1/0,s):o.push(s),~r.indexOf(n)&&(n=e.call(this,s,n))}else r.push(n);return null==t?n:t.call(this,s,n)}}(t.exports=function(t,e,o,s){return JSON.stringify(t,r(e,s),o)}).getSerialize=r},3692:t=>{function e(t){return Object.prototype.toString.call(t)}var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)}var s=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e},n=Object.prototype.hasOwnProperty||function(t,e){return e in t};function a(t){if("object"==typeof t&&null!==t){var n;if(r(t))n=[];else if("[object Date]"===e(t))n=new Date(t.getTime?t.getTime():t);else if("[object RegExp]"===e(t))n=new RegExp(t);else if(function(t){return"[object Error]"===e(t)}(t))n={message:t.message};else if(function(t){return"[object Boolean]"===e(t)}(t)||function(t){return"[object Number]"===e(t)}(t)||function(t){return"[object String]"===e(t)}(t))n=Object(t);else if(Object.create&&Object.getPrototypeOf)n=Object.create(Object.getPrototypeOf(t));else if(t.constructor===Object)n={};else{var a=t.constructor&&t.constructor.prototype||t.__proto__||{},i=function(){};i.prototype=a,n=new i}return o(s(t),(function(e){n[e]=t[e]})),n}return t}function i(t,e,i){var c=[],u=[],h=!0;return function t(p){var d=i?a(p):p,l={},m=!0,f={node:d,node_:p,path:[].concat(c),parent:u[u.length-1],parents:u,key:c[c.length-1],isRoot:0===c.length,level:c.length,circular:null,update:function(t,e){f.isRoot||(f.parent.node[f.key]=t),f.node=t,e&&(m=!1)},delete:function(t){delete f.parent.node[f.key],t&&(m=!1)},remove:function(t){r(f.parent.node)?f.parent.node.splice(f.key,1):delete f.parent.node[f.key],t&&(m=!1)},keys:null,before:function(t){l.before=t},after:function(t){l.after=t},pre:function(t){l.pre=t},post:function(t){l.post=t},stop:function(){h=!1},block:function(){m=!1}};if(!h)return f;function y(){if("object"==typeof f.node&&null!==f.node){f.keys&&f.node_===f.node||(f.keys=s(f.node)),f.isLeaf=0===f.keys.length;for(var t=0;t<u.length;t++)if(u[t].node_===p){f.circular=u[t];break}}else f.isLeaf=!0,f.keys=null;f.notLeaf=!f.isLeaf,f.notRoot=!f.isRoot}y();var g=e.call(f,f.node);return void 0!==g&&f.update&&f.update(g),l.before&&l.before.call(f,f.node),m?("object"!=typeof f.node||null===f.node||f.circular||(u.push(f),y(),o(f.keys,(function(e,r){c.push(e),l.pre&&l.pre.call(f,f.node[e],e);var o=t(f.node[e]);i&&n.call(f.node,e)&&(f.node[e]=o.node),o.isLast=r===f.keys.length-1,o.isFirst=0===r,l.post&&l.post.call(f,o),c.pop()})),u.pop()),l.after&&l.after.call(f,f.node),f):f}(t).node}function c(t){this.value=t}function u(t){return new c(t)}c.prototype.get=function(t){for(var e=this.value,r=0;r<t.length;r++){var o=t[r];if(!e||!n.call(e,o))return;e=e[o]}return e},c.prototype.has=function(t){for(var e=this.value,r=0;r<t.length;r++){var o=t[r];if(!e||!n.call(e,o))return!1;e=e[o]}return!0},c.prototype.set=function(t,e){for(var r=this.value,o=0;o<t.length-1;o++){var s=t[o];n.call(r,s)||(r[s]={}),r=r[s]}return r[t[o]]=e,e},c.prototype.map=function(t){return i(this.value,t,!0)},c.prototype.forEach=function(t){return this.value=i(this.value,t,!1),this.value},c.prototype.reduce=function(t,e){var r=1===arguments.length,o=r?this.value:e;return this.forEach((function(e){this.isRoot&&r||(o=t.call(this,o,e))})),o},c.prototype.paths=function(){var t=[];return this.forEach((function(){t.push(this.path)})),t},c.prototype.nodes=function(){var t=[];return this.forEach((function(){t.push(this.node)})),t},c.prototype.clone=function(){var t=[],e=[];return function r(n){for(var i=0;i<t.length;i++)if(t[i]===n)return e[i];if("object"==typeof n&&null!==n){var c=a(n);return t.push(n),e.push(c),o(s(n),(function(t){c[t]=r(n[t])})),t.pop(),e.pop(),c}return n}(this.value)},o(s(c.prototype),(function(t){u[t]=function(e){var r=[].slice.call(arguments,1),o=new c(e);return o[t].apply(o,r)}})),t.exports=u}},e={};function r(o){var s=e[o];if(void 0!==s)return s.exports;var n=e[o]={exports:{}};return t[o](n,n.exports,r),n.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var o={};(()=>{r.d(o,{A9:()=>_e,M_:()=>Be,Mq:()=>qe,h4:()=>xe,Eh:()=>ye,eJ:()=>oe,yp:()=>Ce,hw:()=>fe,Xp:()=>me,dI:()=>Se,gO:()=>ie,qX:()=>te,jF:()=>ee,as:()=>ae,cY:()=>Zt,Vl:()=>ce,kD:()=>ue,KD:()=>Ee,Jy:()=>Oe,s9:()=>ge,iS:()=>Te});var t=r(4530),e=r.n(t);function s(t,e){return function(){return t.apply(e,arguments)}}const{toString:n}=Object.prototype,{getPrototypeOf:a}=Object,i=(c=Object.create(null),t=>{const e=n.call(t);return c[e]||(c[e]=e.slice(8,-1).toLowerCase())});var c;const u=t=>(t=t.toLowerCase(),e=>i(e)===t),h=t=>e=>typeof e===t,{isArray:p}=Array,d=h("undefined"),l=u("ArrayBuffer"),m=h("string"),f=h("function"),y=h("number"),g=t=>null!==t&&"object"==typeof t,O=t=>{if("object"!==i(t))return!1;const e=a(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},E=u("Date"),T=u("File"),S=u("Blob"),q=u("FileList"),C=u("URLSearchParams");function R(t,e,{allOwnKeys:r=!1}={}){if(null==t)return;let o,s;if("object"!=typeof t&&(t=[t]),p(t))for(o=0,s=t.length;o<s;o++)e.call(null,t[o],o,t);else{const s=r?Object.getOwnPropertyNames(t):Object.keys(t),n=s.length;let a;for(o=0;o<n;o++)a=s[o],e.call(null,t[a],a,t)}}function w(t,e){e=e.toLowerCase();const r=Object.keys(t);let o,s=r.length;for(;s-- >0;)if(o=r[s],e===o.toLowerCase())return o;return null}const b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,x=t=>!d(t)&&t!==b,v=(k="undefined"!=typeof Uint8Array&&a(Uint8Array),t=>k&&t instanceof k);var k;const P=u("HTMLFormElement"),A=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),j=u("RegExp"),I=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),o={};R(r,((r,s)=>{!1!==e(r,s,t)&&(o[s]=r)})),Object.defineProperties(t,o)},B="abcdefghijklmnopqrstuvwxyz",_="0123456789",N={DIGIT:_,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+_},$={isArray:p,isArrayBuffer:l,isBuffer:function(t){return null!==t&&!d(t)&&null!==t.constructor&&!d(t.constructor)&&f(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{const e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||n.call(t)===e||f(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&l(t.buffer),e},isString:m,isNumber:y,isBoolean:t=>!0===t||!1===t,isObject:g,isPlainObject:O,isUndefined:d,isDate:E,isFile:T,isBlob:S,isRegExp:j,isFunction:f,isStream:t=>g(t)&&f(t.pipe),isURLSearchParams:C,isTypedArray:v,isFileList:q,forEach:R,merge:function t(){const{caseless:e}=x(this)&&this||{},r={},o=(o,s)=>{const n=e&&w(r,s)||s;O(r[n])&&O(o)?r[n]=t(r[n],o):O(o)?r[n]=t({},o):p(o)?r[n]=o.slice():r[n]=o};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&R(arguments[t],o);return r},extend:(t,e,r,{allOwnKeys:o}={})=>(R(e,((e,o)=>{r&&f(e)?t[o]=s(e,r):t[o]=e}),{allOwnKeys:o}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,o)=>{t.prototype=Object.create(e.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,o)=>{let s,n,i;const c={};if(e=e||{},null==t)return e;do{for(s=Object.getOwnPropertyNames(t),n=s.length;n-- >0;)i=s[n],o&&!o(i,t,e)||c[i]||(e[i]=t[i],c[i]=!0);t=!1!==r&&a(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:i,kindOfTest:u,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const o=t.indexOf(e,r);return-1!==o&&o===r},toArray:t=>{if(!t)return null;if(p(t))return t;let e=t.length;if(!y(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=r.next())&&!o.done;){const r=o.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const o=[];for(;null!==(r=t.exec(e));)o.push(r);return o},isHTMLForm:P,hasOwnProperty:A,hasOwnProp:A,reduceDescriptors:I,freezeMethods:t=>{I(t,((e,r)=>{if(f(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const o=t[r];f(o)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(t,e)=>{const r={},o=t=>{t.forEach((t=>{r[t]=!0}))};return p(t)?o(t):o(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:w,global:b,isContextDefined:x,ALPHABET:N,generateString:(t=16,e=N.ALPHA_DIGIT)=>{let r="";const{length:o}=e;for(;t--;)r+=e[Math.random()*o|0];return r},isSpecCompliantForm:function(t){return!!(t&&f(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),r=(t,o)=>{if(g(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[o]=t;const s=p(t)?[]:{};return R(t,((t,e)=>{const n=r(t,o+1);!d(n)&&(s[e]=n)})),e[o]=void 0,s}}return t};return r(t,0)}};function D(t,e,r,o,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s)}$.inherits(D,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const K=D.prototype,L={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{L[t]={value:t}})),Object.defineProperties(D,L),Object.defineProperty(K,"isAxiosError",{value:!0}),D.from=(t,e,r,o,s,n)=>{const a=Object.create(K);return $.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),D.call(a,t.message,e,r,o,s),a.cause=t,a.name=t.name,n&&Object.assign(a,n),a};const G=D;function M(t){return $.isPlainObject(t)||$.isArray(t)}function U(t){return $.endsWith(t,"[]")?t.slice(0,-2):t}function F(t,e,r){return t?t.concat(e).map((function(t,e){return t=U(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}const H=$.toFlatObject($,{},null,(function(t){return/^is[A-Z]/.test(t)})),z=function(t,e,r){if(!$.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const o=(r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!$.isUndefined(e[t])}))).metaTokens,s=r.visitor||u,n=r.dots,a=r.indexes,i=(r.Blob||"undefined"!=typeof Blob&&Blob)&&$.isSpecCompliantForm(e);if(!$.isFunction(s))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if($.isDate(t))return t.toISOString();if(!i&&$.isBlob(t))throw new G("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(t)||$.isTypedArray(t)?i&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function u(t,r,s){let i=t;if(t&&!s&&"object"==typeof t)if($.endsWith(r,"{}"))r=o?r:r.slice(0,-2),t=JSON.stringify(t);else if($.isArray(t)&&function(t){return $.isArray(t)&&!t.some(M)}(t)||($.isFileList(t)||$.endsWith(r,"[]"))&&(i=$.toArray(t)))return r=U(r),i.forEach((function(t,o){!$.isUndefined(t)&&null!==t&&e.append(!0===a?F([r],o,n):null===a?r:r+"[]",c(t))})),!1;return!!M(t)||(e.append(F(s,r,n),c(t)),!1)}const h=[],p=Object.assign(H,{defaultVisitor:u,convertValue:c,isVisitable:M});if(!$.isObject(t))throw new TypeError("data must be an object");return function t(r,o){if(!$.isUndefined(r)){if(-1!==h.indexOf(r))throw Error("Circular reference detected in "+o.join("."));h.push(r),$.forEach(r,(function(r,n){!0===(!($.isUndefined(r)||null===r)&&s.call(e,r,$.isString(n)?n.trim():n,o,p))&&t(r,o?o.concat(n):[n])})),h.pop()}}(t),e};function J(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function V(t,e){this._pairs=[],t&&z(t,this,e)}const W=V.prototype;W.append=function(t,e){this._pairs.push([t,e])},W.toString=function(t){const e=t?function(e){return t.call(this,e,J)}:J;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const X=V;function Y(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Q(t,e,r){if(!e)return t;const o=r&&r.encode||Y,s=r&&r.serialize;let n;if(n=s?s(e,r):$.isURLSearchParams(e)?e.toString():new X(e,r).toString(o),n){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t}const Z=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},tt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},et={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:X,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},rt=function(t){function e(t,r,o,s){let n=t[s++];const a=Number.isFinite(+n),i=s>=t.length;return n=!n&&$.isArray(o)?o.length:n,i?($.hasOwnProp(o,n)?o[n]=[o[n],r]:o[n]=r,!a):(o[n]&&$.isObject(o[n])||(o[n]=[]),e(t,r,o[n],s)&&$.isArray(o[n])&&(o[n]=function(t){const e={},r=Object.keys(t);let o;const s=r.length;let n;for(o=0;o<s;o++)n=r[o],e[n]=t[n];return e}(o[n])),!a)}if($.isFormData(t)&&$.isFunction(t.entries)){const r={};return $.forEachEntry(t,((t,o)=>{e(function(t){return $.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),o,r,0)})),r}return null},ot={"Content-Type":void 0},st={transitional:tt,adapter:["xhr","http"],transformRequest:[function(t,e){const r=e.getContentType()||"",o=r.indexOf("application/json")>-1,s=$.isObject(t);if(s&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return o&&o?JSON.stringify(rt(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let n;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return z(t,new et.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,o){return et.isNode&&$.isBuffer(t)?(this.append(e,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((n=$.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return z(n?{"files[]":t}:t,e&&new e,this.formSerializer)}}return s||o?(e.setContentType("application/json",!1),function(t,e,r){if($.isString(t))try{return(0,JSON.parse)(t),$.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||st.transitional,r=e&&e.forcedJSONParsing,o="json"===this.responseType;if(t&&$.isString(t)&&(r&&!this.responseType||o)){const r=!(e&&e.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw G.from(t,G.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:et.classes.FormData,Blob:et.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};$.forEach(["delete","get","head"],(function(t){st.headers[t]={}})),$.forEach(["post","put","patch"],(function(t){st.headers[t]=$.merge(ot)}));const nt=st,at=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),it=Symbol("internals");function ct(t){return t&&String(t).trim().toLowerCase()}function ut(t){return!1===t||null==t?t:$.isArray(t)?t.map(ut):String(t)}function ht(t,e,r,o,s){return $.isFunction(o)?o.call(this,e,r):(s&&(e=r),$.isString(e)?$.isString(o)?-1!==e.indexOf(o):$.isRegExp(o)?o.test(e):void 0:void 0)}class pt{constructor(t){t&&this.set(t)}set(t,e,r){const o=this;function s(t,e,r){const s=ct(e);if(!s)throw new Error("header name must be a non-empty string");const n=$.findKey(o,s);(!n||void 0===o[n]||!0===r||void 0===r&&!1!==o[n])&&(o[n||e]=ut(t))}const n=(t,e)=>$.forEach(t,((t,r)=>s(t,r,e)));return $.isPlainObject(t)||t instanceof this.constructor?n(t,e):$.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z]+$/.test(t.trim())?n((t=>{const e={};let r,o,s;return t&&t.split("\n").forEach((function(t){s=t.indexOf(":"),r=t.substring(0,s).trim().toLowerCase(),o=t.substring(s+1).trim(),!r||e[r]&&at[r]||("set-cookie"===r?e[r]?e[r].push(o):e[r]=[o]:e[r]=e[r]?e[r]+", "+o:o)})),e})(t),e):null!=t&&s(e,t,r),this}get(t,e){if(t=ct(t)){const r=$.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(t);)e[o[1]]=o[2];return e}(t);if($.isFunction(e))return e.call(this,t,r);if($.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=ct(t)){const r=$.findKey(this,t);return!(!r||void 0===this[r]||e&&!ht(0,this[r],r,e))}return!1}delete(t,e){const r=this;let o=!1;function s(t){if(t=ct(t)){const s=$.findKey(r,t);!s||e&&!ht(0,r[s],s,e)||(delete r[s],o=!0)}}return $.isArray(t)?t.forEach(s):s(t),o}clear(t){const e=Object.keys(this);let r=e.length,o=!1;for(;r--;){const s=e[r];t&&!ht(0,this[s],s,t,!0)||(delete this[s],o=!0)}return o}normalize(t){const e=this,r={};return $.forEach(this,((o,s)=>{const n=$.findKey(r,s);if(n)return e[n]=ut(o),void delete e[s];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,r)=>e.toUpperCase()+r))}(s):String(s).trim();a!==s&&delete e[s],e[a]=ut(o),r[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return $.forEach(this,((r,o)=>{null!=r&&!1!==r&&(e[o]=t&&$.isArray(r)?r.join(", "):r)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach((t=>r.set(t))),r}static accessor(t){const e=(this[it]=this[it]={accessors:{}}).accessors,r=this.prototype;function o(t){const o=ct(t);e[o]||(function(t,e){const r=$.toCamelCase(" "+e);["get","set","has"].forEach((o=>{Object.defineProperty(t,o+r,{value:function(t,r,s){return this[o].call(this,e,t,r,s)},configurable:!0})}))}(r,t),e[o]=!0)}return $.isArray(t)?t.forEach(o):o(t),this}}pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$.freezeMethods(pt.prototype),$.freezeMethods(pt);const dt=pt;function lt(t,e){const r=this||nt,o=e||r,s=dt.from(o.headers);let n=o.data;return $.forEach(t,(function(t){n=t.call(r,n,s.normalize(),e?e.status:void 0)})),s.normalize(),n}function mt(t){return!(!t||!t.__CANCEL__)}function ft(t,e,r){G.call(this,null==t?"canceled":t,G.ERR_CANCELED,e,r),this.name="CanceledError"}$.inherits(ft,G,{__CANCEL__:!0});const yt=ft,gt=et.isStandardBrowserEnv?{write:function(t,e,r,o,s,n){const a=[];a.push(t+"="+encodeURIComponent(e)),$.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),$.isString(o)&&a.push("path="+o),$.isString(s)&&a.push("domain="+s),!0===n&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Ot(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Et=et.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let r;function o(r){let o=r;return t&&(e.setAttribute("href",o),o=e.href),e.setAttribute("href",o),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return r=o(window.location.href),function(t){const e=$.isString(t)?o(t):t;return e.protocol===r.protocol&&e.host===r.host}}():function(){return!0};function Tt(t,e){let r=0;const o=function(t,e){t=t||10;const r=new Array(t),o=new Array(t);let s,n=0,a=0;return e=void 0!==e?e:1e3,function(i){const c=Date.now(),u=o[a];s||(s=c),r[n]=i,o[n]=c;let h=a,p=0;for(;h!==n;)p+=r[h++],h%=t;if(n=(n+1)%t,n===a&&(a=(a+1)%t),c-s<e)return;const d=u&&c-u;return d?Math.round(1e3*p/d):void 0}}(50,250);return s=>{const n=s.loaded,a=s.lengthComputable?s.total:void 0,i=n-r,c=o(i);r=n;const u={loaded:n,total:a,progress:a?n/a:void 0,bytes:i,rate:c||void 0,estimated:c&&a&&n<=a?(a-n)/c:void 0,event:s};u[e?"download":"upload"]=!0,t(u)}}const St={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,r){let o=t.data;const s=dt.from(t.headers).normalize(),n=t.responseType;let a;function i(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}$.isFormData(o)&&(et.isStandardBrowserEnv||et.isStandardBrowserWebWorkerEnv)&&s.setContentType(!1);let c=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",r=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.set("Authorization","Basic "+btoa(e+":"+r))}const u=Ot(t.baseURL,t.url);function h(){if(!c)return;const o=dt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(t,e,r){const o=r.config.validateStatus;r.status&&o&&!o(r.status)?e(new G("Request failed with status code "+r.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}((function(t){e(t),i()}),(function(t){r(t),i()}),{data:n&&"text"!==n&&"json"!==n?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:o,config:t,request:c}),c=null}if(c.open(t.method.toUpperCase(),Q(u,t.params,t.paramsSerializer),!0),c.timeout=t.timeout,"onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(h)},c.onabort=function(){c&&(r(new G("Request aborted",G.ECONNABORTED,t,c)),c=null)},c.onerror=function(){r(new G("Network Error",G.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const o=t.transitional||tt;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new G(e,o.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,t,c)),c=null},et.isStandardBrowserEnv){const e=(t.withCredentials||Et(u))&&t.xsrfCookieName&&gt.read(t.xsrfCookieName);e&&s.set(t.xsrfHeaderName,e)}void 0===o&&s.setContentType(null),"setRequestHeader"in c&&$.forEach(s.toJSON(),(function(t,e){c.setRequestHeader(e,t)})),$.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),n&&"json"!==n&&(c.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&c.addEventListener("progress",Tt(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Tt(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=e=>{c&&(r(!e||e.type?new yt(null,t,c):e),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const p=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(u);p&&-1===et.protocols.indexOf(p)?r(new G("Unsupported protocol "+p+":",G.ERR_BAD_REQUEST,t)):c.send(o||null)}))}};$.forEach(St,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));function qt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new yt(null,t)}function Ct(t){return qt(t),t.headers=dt.from(t.headers),t.data=lt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),(t=>{t=$.isArray(t)?t:[t];const{length:e}=t;let r,o;for(let s=0;s<e&&(r=t[s],!(o=$.isString(r)?St[r.toLowerCase()]:r));s++);if(!o){if(!1===o)throw new G(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error($.hasOwnProp(St,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`)}if(!$.isFunction(o))throw new TypeError("adapter is not a function");return o})(t.adapter||nt.adapter)(t).then((function(e){return qt(t),e.data=lt.call(t,t.transformResponse,e),e.headers=dt.from(e.headers),e}),(function(e){return mt(e)||(qt(t),e&&e.response&&(e.response.data=lt.call(t,t.transformResponse,e.response),e.response.headers=dt.from(e.response.headers))),Promise.reject(e)}))}const Rt=t=>t instanceof dt?t.toJSON():t;function wt(t,e){e=e||{};const r={};function o(t,e,r){return $.isPlainObject(t)&&$.isPlainObject(e)?$.merge.call({caseless:r},t,e):$.isPlainObject(e)?$.merge({},e):$.isArray(e)?e.slice():e}function s(t,e,r){return $.isUndefined(e)?$.isUndefined(t)?void 0:o(void 0,t,r):o(t,e,r)}function n(t,e){if(!$.isUndefined(e))return o(void 0,e)}function a(t,e){return $.isUndefined(e)?$.isUndefined(t)?void 0:o(void 0,t):o(void 0,e)}function i(r,s,n){return n in e?o(r,s):n in t?o(void 0,r):void 0}const c={url:n,method:n,data:n,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:i,headers:(t,e)=>s(Rt(t),Rt(e),!0)};return $.forEach(Object.keys(t).concat(Object.keys(e)),(function(o){const n=c[o]||s,a=n(t[o],e[o],o);$.isUndefined(a)&&n!==i||(r[o]=a)})),r}const bt={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{bt[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const xt={};bt.transitional=function(t,e,r){function o(t,e){return"[Axios v1.3.4] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,s,n)=>{if(!1===t)throw new G(o(s," has been removed"+(e?" in "+e:"")),G.ERR_DEPRECATED);return e&&!xt[s]&&(xt[s]=!0,console.warn(o(s," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,s,n)}};const vt={assertOptions:function(t,e,r){if("object"!=typeof t)throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let s=o.length;for(;s-- >0;){const n=o[s],a=e[n];if(a){const e=t[n],r=void 0===e||a(e,n,t);if(!0!==r)throw new G("option "+n+" must be "+r,G.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new G("Unknown option "+n,G.ERR_BAD_OPTION)}},validators:bt},kt=vt.validators;class Pt{constructor(t){this.defaults=t,this.interceptors={request:new Z,response:new Z}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=wt(this.defaults,e);const{transitional:r,paramsSerializer:o,headers:s}=e;let n;void 0!==r&&vt.assertOptions(r,{silentJSONParsing:kt.transitional(kt.boolean),forcedJSONParsing:kt.transitional(kt.boolean),clarifyTimeoutError:kt.transitional(kt.boolean)},!1),void 0!==o&&vt.assertOptions(o,{encode:kt.function,serialize:kt.function},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase(),n=s&&$.merge(s.common,s[e.method]),n&&$.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete s[t]})),e.headers=dt.concat(n,s);const a=[];let i=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let h,p=0;if(!i){const t=[Ct.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,c),h=t.length,u=Promise.resolve(e);p<h;)u=u.then(t[p++],t[p++]);return u}h=a.length;let d=e;for(p=0;p<h;){const t=a[p++],e=a[p++];try{d=t(d)}catch(t){e.call(this,t);break}}try{u=Ct.call(this,d)}catch(t){return Promise.reject(t)}for(p=0,h=c.length;p<h;)u=u.then(c[p++],c[p++]);return u}getUri(t){return Q(Ot((t=wt(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}$.forEach(["delete","get","head","options"],(function(t){Pt.prototype[t]=function(e,r){return this.request(wt(r||{},{method:t,url:e,data:(r||{}).data}))}})),$.forEach(["post","put","patch"],(function(t){function e(e){return function(r,o,s){return this.request(wt(s||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}Pt.prototype[t]=e(),Pt.prototype[t+"Form"]=e(!0)}));const At=Pt;class jt{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const r=this;this.promise.then((t=>{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null})),this.promise.then=t=>{let e;const o=new Promise((t=>{r.subscribe(t),e=t})).then(t);return o.cancel=function(){r.unsubscribe(e)},o},t((function(t,o,s){r.reason||(r.reason=new yt(t,o,s),e(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new jt((function(e){t=e})),cancel:t}}}const It=jt,Bt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Bt).forEach((([t,e])=>{Bt[e]=t}));const _t=Bt,Nt=function t(e){const r=new At(e),o=s(At.prototype.request,r);return $.extend(o,At.prototype,r,{allOwnKeys:!0}),$.extend(o,r,null,{allOwnKeys:!0}),o.create=function(r){return t(wt(e,r))},o}(nt);Nt.Axios=At,Nt.CanceledError=yt,Nt.CancelToken=It,Nt.isCancel=mt,Nt.VERSION="1.3.4",Nt.toFormData=z,Nt.AxiosError=G,Nt.Cancel=Nt.CanceledError,Nt.all=function(t){return Promise.all(t)},Nt.spread=function(t){return function(e){return t.apply(null,e)}},Nt.isAxiosError=function(t){return $.isObject(t)&&!0===t.isAxiosError},Nt.mergeConfig=wt,Nt.AxiosHeaders=dt,Nt.formToJSON=t=>rt($.isHTMLForm(t)?new FormData(t):t),Nt.HttpStatusCode=_t,Nt.default=Nt;const $t=Nt,{Axios:Dt,AxiosError:Kt,CanceledError:Lt,isCancel:Gt,CancelToken:Mt,VERSION:Ut,all:Ft,Cancel:Ht,isAxiosError:zt,spread:Jt,toFormData:Vt,AxiosHeaders:Wt,HttpStatusCode:Xt,formToJSON:Yt,mergeConfig:Qt}=$t;function Zt(t){let e={};if(t instanceof Wt){const r=t.toJSON();e={},Object.entries(r).forEach((([t,r])=>{const o=t.toLowerCase();"boolean"==typeof r||"number"==typeof r||"string"==typeof r?e[o]=r.toString():Array.isArray(r)&&(e[o]=r.join(", "))}))}return Object.keys(e).length?e:void 0}function te(t,e){return"isAxiosError"in t?{request:{url:t.config?.url??"",method:t.config?.method,params:t.config?.params,headers:Zt(t.config?.headers),data:t.config?.data},response:{code:t.code,message:t.response?.status?void 0:t.message,status:t.response?.status,headers:Zt(t.response?.headers),data:t.response?.data},stats:e}:null}function ee(t,e){return{request:{url:t.config?.url??"",method:t.config?.method,params:t.config?.params,headers:Zt(t.config?.headers),data:t.config?.data},response:{status:t.status,headers:Zt(t.headers),data:t.data},stats:e}}var re=r(8842);const oe=500,se={maxRetries:3,delayMs:50,jitter:!0},ne=[re.Status.InternalServerError,re.Status.NotImplemented,re.Status.BadGateway,re.Status.ServiceUnavailable,re.Status.GatewayTimeout];function ae(t){return $t.create({httpsAgent:void 0})}function ie(t,e){if(!e||0===t)return 0;const r=e.delayMs*2**(t-1);if(e.jitter){const e=r*(1+1/(t+1));return Math.floor(Math.random()*e)}return r}function ce(t){let e="";if("string"!=typeof t)throw new qe("The [input] parameter must be a string");if(e=t.trim().toLowerCase(),e=e.replace(/ {2,}/g,""),e=e.replace(/&/g,"and"),e=e.replace(/[ _]/g,"-"),e=e.replace(/[^0-9a-z-]+/g,""),e=e.replace(/-{2,}/g,"-"),e.length&&"-"===e[0]&&(e=e.slice(1)),e.length&&"-"===e[e.length-1]&&(e=e.slice(0,-1)),e.length<2)throw new qe(`Formatted key did not meet minimum length of 2 characters: ${e}`);if(e.length>256)throw new qe(`Formatted key exceeds the maximum length of 256 characters: ${e}`);return e}function ue(t){if(t?.attributes?.length){const e=t.attributes?.find((e=>e.name===t.name));if(e)return e.value}return null}var he=r(3692),pe=r.n(he);function de(t){return le(t,{})}function le(t,e){if(e&&t)for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&("object"==typeof t[r]?(Array.isArray(t[r])?e[r]=[]:e[r]={},e[r]=le(t[r],e[r])):e[r]=t[r]);return e}const me=["password","refresh_token"],fe=["authorization"],ye="********";function ge(t){return Ee(t,me)}function Oe(t){return Ee(t,fe)}function Ee(t,e,r=ye){if("object"==typeof t&&null!=t){let o={};return o=de(t instanceof Wt?t.toJSON():t),pe()(o).forEach((function(){e.includes(this.key?.toLowerCase()??"")&&this.update(r)})),o}return t}async function Te(t){const e=t?.maxRetries||3,r=t?.delayMs||100,o=!!t?.jitter;for(let s=1;s<=e;s++){if(s>1){const t=ie(s-1,{delayMs:r,maxRetries:e,jitter:o});await new Promise((e=>setTimeout(e,t)))}try{return await t.executeFn(s)}catch(t){if(!t.isCommercetoolsError||t.status!==re.Status.Conflict||s===e)throw t}}}function Se(t){let e="@gradientedge/commercetools-utils";return t&&(e=`${e} (${t})`),e}class qe extends Error{constructor(t,e,r){super(t),this.isCommercetoolsError=!0,this.data=e,this.status=r,Object.setPrototypeOf(this,qe.prototype)}static fromAxiosError(t){return new qe(t.message,{code:t.code,request:{url:t.config?.url,method:t.config?.method,headers:Oe(Zt(t.config?.headers)),params:ge(t.config?.params),data:ge(this.parseRequestData(t.config))},response:{status:t.response?.status,data:ge(t.response?.data),headers:Zt(t.response?.headers)}},t.response?.status)}static parseRequestData(t){if(!t)return null;let e=t?.data;if("string"==typeof e&&e){let r="";if("string"==typeof t?.headers?.["Content-Type"]&&(r=t?.headers?.["Content-Type"]),"application/json"===r.substring(0,16))try{e=JSON.parse(t.data)}catch(t){}else if("application/x-www-form-urlencoded"===r.substring(0,33))try{const r=new URLSearchParams(t.data),o={};r.forEach(((t,e,r)=>{const s=r.getAll(e);0===s.length?o[e]="":1===s.length?o[e]=s[0]:o[e]=s})),e=o}catch(t){}}return e}toJSON(){return{status:this.status,message:this.message,data:this.data,isCommercetoolsError:!0}}toString(){return e()(this.toJSON())}}var Ce;!function(t){t.NORTH_AMERICA_GCP="north_america_gcp",t.NORTH_AMERICA_AWS="north_america_aws",t.EUROPE_GCP="europe_gcp",t.EUROPE_AWS="europe_aws",t.AUSTRALIA_GCP="australia_gcp"}(Ce||(Ce={}));const Re={[Ce.EUROPE_GCP]:{auth:"https://auth.europe-west1.gcp.commercetools.com",api:"https://api.europe-west1.gcp.commercetools.com"},[Ce.EUROPE_AWS]:{auth:"https://auth.eu-central-1.aws.commercetools.com",api:"https://api.eu-central-1.aws.commercetools.com"},[Ce.NORTH_AMERICA_GCP]:{auth:"https://auth.us-central1.gcp.commercetools.com",api:"https://api.us-central1.gcp.commercetools.com"},[Ce.NORTH_AMERICA_AWS]:{auth:"https://auth.us-east-2.aws.commercetools.com",api:"https://api.us-east-2.aws.commercetools.com"},[Ce.AUSTRALIA_GCP]:{auth:"https://auth.australia-southeast1.gcp.commercetools.com",api:"https://api.australia-southeast1.gcp.commercetools.com"}},we=["anonymous_id","customer_id"];function be(t,e){return t?t.map((t=>`${t}:${e}`)).join(" "):""}class xe{constructor(t){var e;this.accessToken="",this.expiresIn=0,this.expiresAt=new Date,this.scopes=[],this.accessToken=t.access_token,this.expiresIn=t.expires_in,this.scopes=(e=t.scope)?e.split(" ").map((t=>t.split(":")[0])).filter((t=>!we.includes(t))):[],this.anonymousId=this.extractKeyFromScope("anonymous_id",t.scope),this.customerId=this.extractKeyFromScope("customer_id",t.scope),this.expiresAt=new Date((new Date).getTime()+1e3*t.expires_in),"refresh_token"in t&&t.refresh_token&&(this.refreshToken=t.refresh_token)}expiresWithin(t){const e=(new Date).getTime()+1e3*t;return this.expiresAt.getTime()<e}extractKeyFromScope(t,e){if(!e||!t)return;const r=e?.split(" ");if(!Array.isArray(r)||0===r.length)return;const o=r.find((e=>e.slice(0,t.length+1)===`${t}:`));return o?o.slice(t.length+1):void 0}}var ve;function ke(t){return!t.isAxiosError||!t.request||!t.response||ne.includes(t.response.status)}function Pe(t){return t.isAxiosError?qe.fromAxiosError(t):t}function Ae(t){const e=ae(t.httpsAgent),r={"User-Agent":Se(t.systemIdentifier)};return o=>{const s={...r,...o.headers};return async function(t){const{retry:e,onBeforeRequest:r,onAfterResponse:o,axiosInstance:s}=t,n=t.timeoutMs??5e3,a={};let i,c=de(t.request),u=0;Object.keys(c.headers??{}).map((t=>t.toLowerCase())).includes("user-agent")||(c.headers??(c.headers={}),c.headers["User-Agent"]=Se());let h,p,d=0;do{if(h=null,p=null,u>0){a["X-Retry-Count"]=`${u}`;const t=ie(u,e);await new Promise((e=>setTimeout(e,t)))}try{if(r){const t=await r(c);t&&(c=t)}h=Date.now();const t=await s({...c,headers:{...c.headers,...a},timeout:n});return p=Date.now(),d+=p-h,o&&o(ee(t,{accumulativeDurationMs:d,durationMs:p-h,retries:u})),t.data}catch(t){if(p=Date.now(),d+=h?p-h:0,o){const e=te(t,{accumulativeDurationMs:d,durationMs:h?p-h:0,retries:u});e&&o(e)}if(!ke(t))throw Pe(t);i=t}u++}while(u<=e.maxRetries);throw Pe(i)}({axiosInstance:e,onBeforeRequest:t.onBeforeRequest,onAfterResponse:t.onAfterResponse,request:{...o,headers:s},retry:{...se,...t.retry},timeoutMs:t.timeoutMs})}}!function(t){t.CLIENT_CREDENTIALS="client_credentials",t.REFRESH_TOKEN="refresh_token",t.PASSWORD="password"}(ve||(ve={}));class je{constructor(t){this.config=t,this.endpoints=Re[this.config.region],this.requestExecutor=Ae({timeoutMs:t.timeoutMs,httpsAgent:t.httpsAgent,systemIdentifier:t.systemIdentifier,onBeforeRequest:t.onBeforeRequest,onAfterResponse:t.onAfterResponse,retry:t.retry})}async getClientGrant(t){return this.post("/token",{grant_type:ve.CLIENT_CREDENTIALS,scope:be(t,this.config.projectKey)})}async refreshGrant(t){return await this.post("/token",{grant_type:ve.REFRESH_TOKEN,refresh_token:t})}async login(t){return this.post(`/${this.config.projectKey}${this.applyStore("/customers/token",t.storeKey)}`,{username:t.username,password:t.password,grant_type:ve.PASSWORD,scope:be(t.scopes,this.config.projectKey)})}async revokeToken(t){await this.post("/token/revoke",{token:t.tokenValue,token_type_hint:t.tokenType})}async logout(t){const e=(await Promise.allSettled([this.revokeToken({tokenType:"access_token",tokenValue:t.accessToken}),this.revokeToken({tokenType:"refresh_token",tokenValue:t.refreshToken})])).reduce(((t,e)=>("rejected"===e.status&&t.push(e.reason),t)),[]);if(e.length)throw new qe("Logout failed in one or more calls to the token revocation endpoint",e)}async getAnonymousGrant(t){const e={grant_type:ve.CLIENT_CREDENTIALS};return t?.scopes?.length&&(e.scope=be(t.scopes,this.config.projectKey)),t?.anonymousId&&(e.anonymous_id=t.anonymousId),this.post(`/${this.config.projectKey}/anonymous/token`,e)}async post(t,e){return await this.requestExecutor(this.getRequestOptions({path:t,body:e}))}getRequestOptions(t){const e=`${this.endpoints.auth}/oauth${t.path}`;let r;const o={Authorization:`Basic ${s=this.config.clientId,n=this.config.clientSecret,btoa(`${s}:${n}`)}`,"Content-Type":"application/x-www-form-urlencoded"};var s,n;return t.correlationId&&""!==t.correlationId&&(o["X-Correlation-ID"]=t.correlationId,delete t.correlationId),t.body&&(r=new URLSearchParams(t.body).toString()),{method:"POST",data:r,url:e,headers:o}}applyStore(t,e){return"string"==typeof e&&""!==e?`/in-store/key=${e}${t}`:this.config.storeKey?`/in-store/key=${this.config.storeKey}${t}`:t}}const Ie={refreshIfWithinSecs:1800,timeoutMs:5e3};class Be{constructor(t){if(this.grantPromise=null,this.config={...Ie,...t},!this.config.clientScopes.length)throw new qe("`config.clientScopes` must contain at least one scope");this.api=new je(t)}async getClientGrant(){return this.grantPromise?this.grantPromise:this.grant&&!this.grant.expiresWithin(this.config.refreshIfWithinSecs)?this.grant:(this.grantPromise=this.api.getClientGrant(this.config.clientScopes).then((t=>(this.grant=new xe(t),this.grant))).finally((()=>{this.grantPromise=null})),this.grantPromise)}async refreshCustomerGrant(t){const e=await this.api.refreshGrant(t);return new xe({...e,refresh_token:t})}async login(t){const e=t.scopes||this.config.customerScopes;if(!e)throw new qe("Customer scopes must be set on either the `options` parameter of this `login` method, or on the `customerScopes` property of the `CommercetoolsAuth` constructor");await this.getClientGrant();const r=await this.api.login({...t,scopes:e});return new xe(r)}async getAnonymousGrant(t){const e=t?.scopes||this.config.customerScopes,r=t?.anonymousId;if(!e)throw new qe("Customer scopes must be set on either the `options` parameter of this `login` method, or on the `customerScopes` property of the `CommercetoolsAuth` constructor");await this.getClientGrant();const o=await this.api.getAnonymousGrant({scopes:e,anonymousId:r});return new xe(o)}async logout(t){await this.api.logout(t)}async revokeToken(t){await this.api.revokeToken(t)}}class _e{constructor(t){_e.validateConfig(t),this.config=t,this.auth=new Be(t),this.endpoints=Re[this.config.region],this.requestExecutor=Ae({timeoutMs:t.timeoutMs,httpsAgent:t.httpsAgent,systemIdentifier:t.systemIdentifier,onBeforeRequest:t.onBeforeRequest,onAfterResponse:t.onAfterResponse,retry:t.retry})}getStoreById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/stores/${t.id}`,method:"GET"})}getStoreByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/stores/key=${t.key}`,method:"GET"})}queryStores(t){return this.request({...this.extractCommonRequestOptions(t),path:"/stores",method:"GET"})}createStore(t){return this.request({path:"/stores",method:"POST",data:t.data})}updateStoreById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/stores/${t.id}`,method:"POST",data:t.data})}updateStoreByKey(t){return this.request({path:`/stores/key=${t.key}`,method:"POST",data:t.data})}deleteStoreById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/stores/${t.id}`,method:"DELETE",params:{...t.params,version:t.version}})}deleteStoreByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/stores/key=${t.key}`,method:"DELETE",params:{...t.params,version:t.version}})}getCategoryById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/categories/${t.id}`,method:"GET"})}getCategoryByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/categories/key=${t.key}`,method:"GET"})}queryChannels(t){return this.request({...this.extractCommonRequestOptions(t),path:"/channels",method:"GET"})}async importOrder(t){return this.request({...this.extractCommonRequestOptions(t),path:"/orders/import",method:"POST",data:t.data})}getChannelById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/channels/${t.id}`,method:"GET"})}async getChannelByKey(t){const e=await this.request({...this.extractCommonRequestOptions(t),path:"/channels",method:"GET",params:{where:`key="${t.key}"`,limit:1}});if(!e?.count)throw new qe(`No channel found with key [${t.key}]`,null,404);return e.results[0]}getCategory(t){if(!t.id&&!t.key)throw new qe("Either an id, key or slug must be provided");return t.id?this.request({...this.extractCommonRequestOptions(t),path:`/categories/${t.id}`,method:"GET"}):this.request({...this.extractCommonRequestOptions(t),path:`/categories/key=${t.key}`,method:"GET"})}async getCategoryBySlug(t){if(!t.languageCode&&!t.languageCodes)throw new qe("Either the `languageCode` or `languageCodes` property must be provided");const e=[];t.languageCodes?e.push(...t.languageCodes):t.languageCode&&e.push(t.languageCode);const r=await this.request({...this.extractCommonRequestOptions({...t,params:{...t?.params,where:`slug(${e.map((e=>`${e}="${t.slug}"`)).join(" or ")})`}}),path:"/categories",method:"GET"});if(!r.count)throw new qe(`No category found with slug [${t.slug}] and language code [${t.languageCode}]`,{options:t},404);return r.results[0]}queryCategories(t){return this.request({...this.extractCommonRequestOptions(t),path:"/categories",method:"GET"})}async getCategoryParents(t){const e=await this.getCategory({...t,params:{...t.params,expand:"ancestors[*]"}}),r=e.ancestors.map((t=>t.obj));return r.push({...e,ancestors:e.ancestors.map((t=>({id:t.id,typeId:t.typeId})))}),r}getProductById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/products/${t.id}`,method:"GET"})}getProductByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/products/key=${t.key}`,method:"GET"})}getProductProjectionById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/product-projections/${t.id}`,t.storeKey),method:"GET"})}getProductProjectionByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/product-projections/key=${t.key}`,t.storeKey),method:"GET"})}async getProductProjectionBySlug(t){if(!t.languageCode&&!t.languageCodes)throw new qe("Either the `languageCode` or `languageCodes` property must be provided");const e=[];t.languageCodes?e.push(...t.languageCodes):t.languageCode&&e.push(t.languageCode);const r=await this.request({...this.extractCommonRequestOptions({...t,params:{...t?.params,where:`slug(${e.map((e=>`${e}="${t.slug}"`)).join(" or ")})`}}),path:"/product-projections",method:"GET"});if(!r.count)throw new qe(`No product projection found with slug [${t.slug}] and language code [${t.languageCode}]`,{options:t},404);return r.results[0]}queryProductProjections(t){return this.request({...this.extractCommonRequestOptions(t),path:"/product-projections",method:"GET"})}searchProductProjections(t){return this.request({...this.extractCommonRequestOptions(t),path:"/product-projections/search",method:"GET"})}getProductSelectionById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/product-selections/${t.id}`,t.storeKey),method:"GET"})}getProductSelectionByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/product-selections/key=${t.key}`,t.storeKey),method:"GET"})}queryProductSelections(t){return this.request({...this.extractCommonRequestOptions(t),path:"/product-selections",method:"GET"})}createProductSelection(t){return this.request({...this.extractCommonRequestOptions(t),path:"/product-selections",method:"POST",data:t.data})}updateProductSelectionByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/product-selections/key=${t.key}`,method:"POST",data:{version:t.version,actions:t.actions}})}deleteProductSelectionByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/product-selections/key=${t.key}&version=${t.version}`,method:"DELETE"})}queryProductsInStore(t){return this.request({...this.extractCommonRequestOptions(t),path:`/in-store/key=${t.storeKey}/product-selection-assignments`,method:"GET"})}getCartById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/carts/${t.id}`,t.storeKey),method:"GET"})}async queryCarts(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/carts",t?.storeKey),method:"GET"})}async queryMyCarts(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/carts",t.storeKey),method:"GET",accessToken:t.accessToken})}async createCart(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/carts",t.storeKey),method:"POST",data:t.data})}async updateCartById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/carts/${t.id}`,t.storeKey),method:"POST",data:{version:t.version,actions:t.actions}})}async getMyActiveCart(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/active-cart",t.storeKey),method:"GET",accessToken:t.accessToken})}async getMyCartById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/me/carts/${t.cartId}`,t.storeKey),method:"GET",accessToken:t.accessToken})}async createMyCart(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/carts",t.storeKey),method:"POST",data:t.data,accessToken:t.accessToken})}async updateMyCart(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/me/carts/${t.cartId}`,t.storeKey),method:"POST",data:{version:t.cartVersion,actions:t.actions},accessToken:t.accessToken})}async deleteMyActiveCart(t){const e=await this.getMyActiveCart(t);return await this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/me/carts/${e.id}`,t.storeKey),method:"DELETE",params:{...t.params,version:e.version},accessToken:t.accessToken})}async deleteMyCartById(t){const e=await this.getMyCartById(t);return await this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/me/carts/${t.cartId}`,t.storeKey),method:"DELETE",params:{...t.params,version:e.version},accessToken:t.accessToken})}async updateMyActiveCart(t){const e=await this.getMyActiveCart(t);return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/me/carts/${e.id}`,t.storeKey),method:"POST",data:{version:e.version,actions:t.actions},accessToken:t.accessToken})}async createMyOrderFromActiveCart(t){const e=await this.getMyActiveCart(t);return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/orders",t.storeKey),method:"POST",data:{version:e.version,id:e.id},accessToken:t.accessToken})}async createOrderFromCart(t){const e=await this.getCartById(t);return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/orders",t.storeKey),method:"POST",data:{version:e.version,id:e.id}})}async deleteCartById(t){return await this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/carts/${t.id}`,t.storeKey),method:"DELETE",params:{...t.params,version:t.version}})}createPayment(t){return this.request({...this.extractCommonRequestOptions(t),path:"/payments",method:"POST",data:t.data})}deletePaymentById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/payments/${t.id}`,method:"DELETE",params:{...t.params,version:t.version}})}updatePaymentById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/payments/${t.id}`,method:"POST",data:t.data})}getPaymentById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/payments/${t.id}`,method:"GET"})}queryPayments(t){return this.request({...this.extractCommonRequestOptions(t),path:"/payments",method:"GET"})}createMyPayment(t){return this.request({...this.extractCommonRequestOptions(t),path:"/me/payments",method:"POST",data:t.data,accessToken:t.accessToken})}updateMyPaymentById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/me/payments/${t.id}`,method:"POST",data:t.data,accessToken:t.accessToken})}getMyPaymentById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/me/payments/${t.id}`,method:"GET",accessToken:t.accessToken})}queryMyPayments(t){return this.request({...this.extractCommonRequestOptions(t),path:"/me/payments",method:"GET",accessToken:t.accessToken})}deleteMyPaymentById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/me/payments/${t.id}`,method:"DELETE",params:{version:t.version},accessToken:t.accessToken})}getMyOrderById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/me/orders/${t.id}`,t.storeKey),method:"GET",accessToken:t.accessToken})}queryMyOrders(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/orders",t.storeKey),method:"GET",accessToken:t.accessToken})}updateOrderById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/orders/${t.id}`,t.storeKey),method:"POST",data:t.data})}updateOrderByOrderNumber(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/orders/order-number=${t.orderNumber}`,t.storeKey),method:"POST",data:t.data})}getOrderById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/orders/${t.id}`,t.storeKey),method:"GET"})}getOrderByOrderNumber(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/orders/order-number=${t.orderNumber}`,t.storeKey),method:"GET"})}deleteOrderById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/orders/${t.id}`,t.storeKey),method:"DELETE",params:{...t.params,version:t.version,dataErasure:t.dataErasure}})}deleteOrderByOrderNumber(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/orders/order-number=${t.orderNo}`,t.storeKey),method:"DELETE",params:{...t.params,version:t.version,dataErasure:t.dataErasure}})}queryOrders(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/orders",t.storeKey),method:"GET"})}createProduct(t){return this.request({...this.extractCommonRequestOptions(t),path:"/products",method:"POST",data:t.data})}updateProductByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/products/key=${t.key}`,method:"POST",data:t.data})}updateProductById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/products/${t.id}`,method:"POST",data:t.data})}async deleteProductById(t){let e=t.version;return t.unpublish&&(e=(await this.unpublishProductById({id:t.id,version:t.version})).version),this.request({...this.extractCommonRequestOptions(t),path:`/products/${t.id}`,method:"DELETE",params:{...t.params,version:e}})}async deleteProductByKey(t){let e=t.version;return t.unpublish&&(e=(await this.unpublishProductByKey({key:t.key,version:t.version})).version),this.request({...this.extractCommonRequestOptions(t),path:`/products/key=${t.key}`,method:"DELETE",params:{...t.params,version:e}})}unpublishProductByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/products/key=${t.key}`,method:"POST",params:t.params,data:{version:t.version,actions:[{action:"unpublish"}]}})}unpublishProductById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/products/${t.id}`,method:"POST",params:t.params,data:{version:t.version,actions:[{action:"unpublish"}]}})}createCategory(t){return this.request({path:"/categories",method:"POST",data:t.data})}updateCategoryByKey(t){return this.request({path:`/categories/key=${t.key}`,method:"POST",data:t.data})}updateCategoryById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/categories/${t.id}`,method:"POST",data:t.data})}deleteCategoryById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/categories/${t.id}`,method:"DELETE",params:{...t.params,version:t.version}})}deleteCategoryByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/categories/key=${t.key}`,method:"DELETE",params:{...t.params,version:t.version}})}createAccount(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/customers",t.storeKey),method:"POST",data:t.data})}deleteCustomerById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/customers/${t.id}`,t.storeKey),method:"DELETE",params:{...t.params,version:t.version,dataErasure:t.dataErasure}})}deleteCustomerByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/customers/key=${t.key}`,t.storeKey),method:"DELETE",params:{...t.params,version:t.version,dataErasure:t.dataErasure}})}createMyAccount(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/signup",t.storeKey),method:"POST",data:t.data,accessToken:t.accessToken})}loginMyAccount(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/login",t.storeKey),method:"POST",data:t.data,accessToken:t.accessToken})}login(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/login",t.storeKey),method:"POST",data:t.data})}getMyAccount(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me",t.storeKey),method:"GET",accessToken:t.accessToken})}updateMyAccount(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me",t.storeKey),method:"POST",accessToken:t.accessToken,data:t.data})}changeMyPassword(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/password",t.storeKey),method:"POST",accessToken:t.accessToken,data:t.data})}resetMyPassword(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/password/reset",t.storeKey),method:"POST",accessToken:t.accessToken,data:t.data})}getPasswordResetToken(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/customers/password-token",t.storeKey),method:"POST",data:t.data})}getCustomerById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/customers/${t.id}`,t.storeKey),method:"GET"})}getCustomerByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/customers/key=${t.key}`,t.storeKey),method:"GET"})}getCustomerByPasswordToken(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/customers/password-token=${t.token}`,t.storeKey),method:"GET"})}queryCustomers(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/customers",t.storeKey),method:"GET"})}updateCustomerById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customers/${t.id}`,method:"POST",data:t.data})}updateCustomerByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customers/key=${t.key}`,method:"POST",data:t.data})}getProductTypeById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/product-types/${t.id}`,method:"GET"})}getProductTypeByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/product-types/key=${t.key}`,method:"GET"})}queryProductTypes(t){return this.request({...this.extractCommonRequestOptions(t),path:"/product-types",method:"GET"})}getTypeById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/types/${t.id}`,method:"GET"})}getTypeByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/types/key=${t.key}`,method:"GET"})}queryTypes(t){return this.request({...this.extractCommonRequestOptions(t),path:"/types",method:"GET"})}getDiscountCodeById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/discount-codes/${t.id}`,method:"GET"})}getCartDiscountById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/cart-discounts/${t.id}`,method:"GET"})}getCartDiscountByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/cart-discounts/key=${t.key}`,method:"GET"})}queryCartDiscounts(t){return this.request({...this.extractCommonRequestOptions(t),path:"/cart-discounts",method:"GET"})}getCustomObject(t){return this.request({...this.extractCommonRequestOptions(t),path:`/custom-objects/${t.container}/${t.key}`,method:"GET"})}getCustomObjectById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/custom-objects/${t.id}`,method:"GET"})}saveCustomObject(t){return this.request({...this.extractCommonRequestOptions(t),path:"/custom-objects",method:"POST",data:t.data})}deleteCustomObject(t){return this.request({...this.extractCommonRequestOptions(t),path:`/custom-objects/${t.container}/${t.key}`,method:"DELETE"})}getShippingMethodById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/shipping-methods/${t.id}`,method:"GET"})}getShippingMethodByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/shipping-methods/key=${t.key}`,method:"GET"})}getShippingMethodsForLocation(t){return this.request({...this.extractCommonRequestOptions({...t,params:{...t?.params,country:t.country,state:t.state,currency:t.currency}}),path:"/shipping-methods/matching-location",method:"GET",accessToken:t.accessToken})}getShippingMethodsForCart(t){return this.request({...this.extractCommonRequestOptions({...t,params:{...t?.params,cartId:t.cartId}}),path:"/shipping-methods/matching-cart",method:"GET",accessToken:t.accessToken})}queryShippingMethods(t){return this.request({...this.extractCommonRequestOptions(t),path:"/shipping-methods",method:"GET"})}getCustomerGroupById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customer-groups/${t.id}`,method:"GET"})}getCustomerGroupByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customer-groups/key=${t.key}`,method:"GET"})}queryCustomerGroups(t){return this.request({...this.extractCommonRequestOptions(t),path:"/customer-groups",method:"GET"})}createCustomerGroup(t){return this.request({path:"/customer-groups",method:"POST",data:t.data})}updateCustomerGroupByKey(t){return this.request({path:`/customer-groups/key=${t.key}`,method:"POST",data:t.data})}updateCustomerGroupById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customer-groups/${t.id}`,method:"POST",data:t.data})}deleteCustomerGroupById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customer-groups/${t.id}`,method:"DELETE",params:{...t.params,version:t.version}})}deleteCustomerGroupByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customer-groups/key=${t.key}`,method:"DELETE",params:{...t.params,version:t.version}})}getStateById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/states/${t.id}`,method:"GET"})}getStateByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/states/key=${t.key}`,method:"GET"})}queryStates(t){return this.request({...this.extractCommonRequestOptions(t),path:"/states",method:"GET"})}getStandalonePriceById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/standalone-prices/${t.id}`,method:"GET"})}getStandalonePriceByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/standalone-prices/key=${t.key}`,method:"GET"})}queryStandalonePrices(t){return this.request({...this.extractCommonRequestOptions(t),path:"/standalone-prices",method:"GET"})}createStandalonePrice(t){return this.request({...this.extractCommonRequestOptions(t),path:"/standalone-prices",method:"POST",data:t.data})}updateStandalonePriceById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/standalone-prices/${t.id}`,method:"POST",data:t.data})}updateStandalonePriceByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/standalone-prices/key=${t.key}`,method:"POST",data:t.data})}deleteStandalonePriceById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/standalone-prices/${t.id}`,method:"DELETE",params:{...t.params,version:t.version}})}deleteStandalonePriceByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/standalone-prices/key=${t.key}`,method:"DELETE",params:{...t.params,version:t.version}})}graphql(t){return this.request({...this.extractCommonRequestOptions(t),path:"/graphql",method:"POST",data:t.data,accessToken:t.accessToken})}async request(t){const e=await this.getRequestOptions(t);return await this.requestExecutor(e)}async getRequestOptions(t){let e,r=t.accessToken;const o=`${this.endpoints.api}/${this.config.projectKey}${t.path}`;r||(r=(await this.auth.getClientGrant()).accessToken);const s={...t.headers,Authorization:`Bearer ${r}`};return"string"==typeof t.correlationId&&""!==t.correlationId&&(s["X-Correlation-ID"]=t.correlationId,delete t.correlationId),t.params&&Object.keys(t.params).length&&(e=t.params),{method:t.method,data:t.data,url:o,headers:s,params:e}}extractCommonRequestOptions(t){return t?{correlationId:t.correlationId,params:t.params,retry:t.retry}:{}}applyStore(t,e){return"string"==typeof e&&""!==e?`/in-store/key=${e}${t}`:this.config.storeKey?`/in-store/key=${this.config.storeKey}${t}`:t}static validateConfig(t){const e=[];if(t?(t.projectKey?"string"!=typeof t.projectKey&&e.push("The `projectKey` property must be a string"):e.push("The `projectKey` property is empty"),t.clientId?"string"!=typeof t.clientId&&e.push("The `clientId` property must be a string"):e.push("The `clientId` property is empty"),t.clientSecret?"string"!=typeof t.clientSecret&&e.push("The `clientSecret` property must be a string"):e.push("The `clientSecret` property is empty"),Array.isArray(t.clientScopes)?0===t.clientScopes.length&&e.push("The `clientScopes` property must have at least 1 scope defined"):e.push("The `clientScopes` property must be an array")):e.push("The config object missing or empty"),e.length)throw new qe("The configuration object passed in to the `CommercetoolsApi` constructor is not valid: \n"+e.map((t=>`• ${t}`)).join("\n"))}}})();var s=o.A9,n=o.M_,a=o.Mq,i=o.h4,c=o.Eh,u=o.eJ,h=o.yp,p=o.hw,d=o.Xp,l=o.dI,m=o.gO,f=o.qX,y=o.jF,g=o.as,O=o.cY,E=o.Vl,T=o.kD,S=o.KD,q=o.Jy,C=o.s9,R=o.iS;export{s as CommercetoolsApi,n as CommercetoolsAuth,a as CommercetoolsError,i as CommercetoolsGrant,c as DEFAULT_MASKING_STRING,u as MAX_ITEMS_PER_QUERY,h as Region,p as SENSITIVE_HEADER_NAMES,d as SENSITIVE_PROPERTY_NAMES,l as buildUserAgent,m as calculateDelay,f as convertAxiosError,y as convertAxiosResponse,g as createAxiosInstance,O as extractAxiosHeaders,E as formatAsKey,T as getAttributeValue,S as maskSensitiveData,q as maskSensitiveHeaders,C as maskSensitiveInput,R as retryOnConflict};
1
+ var t={8842:(t,e,r)=>{e.Status=void 0;var o=r(7536);Object.defineProperty(e,"Status",{enumerable:!0,get:function(){return o.Status}});r(7890)},7890:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reason=void 0;const o=r(7536);e.reason=function(t){switch(t){case 200:return"OK";case 203:return"Non-Authoritative Information";case 207:return"Multi-Status";case 226:return"IM Used";case 414:return"URI Too Long";case 418:return"I'm a teapot";case 505:return"HTTP Version Not Supported";default:return(Object.keys(o.Status).find((e=>o.Status[e]===t))||"").replace(/(?!^)([A-Z])/gm," $1")}}},7536:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Status=e.ErrorStatus=e.RedirectionStatus=e.SuccessStatus=e.InformationStatus=void 0,e.InformationStatus={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103},e.SuccessStatus={Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226},e.RedirectionStatus={MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,TemporaryRedirect:307,PermanentRedirect:308},e.ErrorStatus={BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RequestedRangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511},e.Status=Object.assign(Object.assign(Object.assign(Object.assign({},e.InformationStatus),e.SuccessStatus),e.RedirectionStatus),e.ErrorStatus)},4530:(t,e)=>{function r(t,e){var r=[],o=[];return null==e&&(e=function(t,e){return r[0]===e?"[Circular ~]":"[Circular ~."+o.slice(0,r.indexOf(e)).join(".")+"]"}),function(s,n){if(r.length>0){var a=r.indexOf(this);~a?r.splice(a+1):r.push(this),~a?o.splice(a,1/0,s):o.push(s),~r.indexOf(n)&&(n=e.call(this,s,n))}else r.push(n);return null==t?n:t.call(this,s,n)}}(t.exports=function(t,e,o,s){return JSON.stringify(t,r(e,s),o)}).getSerialize=r},3692:t=>{function e(t){return Object.prototype.toString.call(t)}var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.forEach)return t.forEach(e);for(var r=0;r<t.length;r++)e(t[r],r,t)}var s=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e},n=Object.prototype.hasOwnProperty||function(t,e){return e in t};function a(t){if("object"==typeof t&&null!==t){var n;if(r(t))n=[];else if("[object Date]"===e(t))n=new Date(t.getTime?t.getTime():t);else if("[object RegExp]"===e(t))n=new RegExp(t);else if(function(t){return"[object Error]"===e(t)}(t))n={message:t.message};else if(function(t){return"[object Boolean]"===e(t)}(t)||function(t){return"[object Number]"===e(t)}(t)||function(t){return"[object String]"===e(t)}(t))n=Object(t);else if(Object.create&&Object.getPrototypeOf)n=Object.create(Object.getPrototypeOf(t));else if(t.constructor===Object)n={};else{var a=t.constructor&&t.constructor.prototype||t.__proto__||{},i=function(){};i.prototype=a,n=new i}return o(s(t),(function(e){n[e]=t[e]})),n}return t}function i(t,e,i){var c=[],u=[],h=!0;return function t(p){var d=i?a(p):p,l={},m=!0,f={node:d,node_:p,path:[].concat(c),parent:u[u.length-1],parents:u,key:c[c.length-1],isRoot:0===c.length,level:c.length,circular:null,update:function(t,e){f.isRoot||(f.parent.node[f.key]=t),f.node=t,e&&(m=!1)},delete:function(t){delete f.parent.node[f.key],t&&(m=!1)},remove:function(t){r(f.parent.node)?f.parent.node.splice(f.key,1):delete f.parent.node[f.key],t&&(m=!1)},keys:null,before:function(t){l.before=t},after:function(t){l.after=t},pre:function(t){l.pre=t},post:function(t){l.post=t},stop:function(){h=!1},block:function(){m=!1}};if(!h)return f;function y(){if("object"==typeof f.node&&null!==f.node){f.keys&&f.node_===f.node||(f.keys=s(f.node)),f.isLeaf=0===f.keys.length;for(var t=0;t<u.length;t++)if(u[t].node_===p){f.circular=u[t];break}}else f.isLeaf=!0,f.keys=null;f.notLeaf=!f.isLeaf,f.notRoot=!f.isRoot}y();var g=e.call(f,f.node);return void 0!==g&&f.update&&f.update(g),l.before&&l.before.call(f,f.node),m?("object"!=typeof f.node||null===f.node||f.circular||(u.push(f),y(),o(f.keys,(function(e,r){c.push(e),l.pre&&l.pre.call(f,f.node[e],e);var o=t(f.node[e]);i&&n.call(f.node,e)&&(f.node[e]=o.node),o.isLast=r===f.keys.length-1,o.isFirst=0===r,l.post&&l.post.call(f,o),c.pop()})),u.pop()),l.after&&l.after.call(f,f.node),f):f}(t).node}function c(t){this.value=t}function u(t){return new c(t)}c.prototype.get=function(t){for(var e=this.value,r=0;r<t.length;r++){var o=t[r];if(!e||!n.call(e,o))return;e=e[o]}return e},c.prototype.has=function(t){for(var e=this.value,r=0;r<t.length;r++){var o=t[r];if(!e||!n.call(e,o))return!1;e=e[o]}return!0},c.prototype.set=function(t,e){for(var r=this.value,o=0;o<t.length-1;o++){var s=t[o];n.call(r,s)||(r[s]={}),r=r[s]}return r[t[o]]=e,e},c.prototype.map=function(t){return i(this.value,t,!0)},c.prototype.forEach=function(t){return this.value=i(this.value,t,!1),this.value},c.prototype.reduce=function(t,e){var r=1===arguments.length,o=r?this.value:e;return this.forEach((function(e){this.isRoot&&r||(o=t.call(this,o,e))})),o},c.prototype.paths=function(){var t=[];return this.forEach((function(){t.push(this.path)})),t},c.prototype.nodes=function(){var t=[];return this.forEach((function(){t.push(this.node)})),t},c.prototype.clone=function(){var t=[],e=[];return function r(n){for(var i=0;i<t.length;i++)if(t[i]===n)return e[i];if("object"==typeof n&&null!==n){var c=a(n);return t.push(n),e.push(c),o(s(n),(function(t){c[t]=r(n[t])})),t.pop(),e.pop(),c}return n}(this.value)},o(s(c.prototype),(function(t){u[t]=function(e){var r=[].slice.call(arguments,1),o=new c(e);return o[t].apply(o,r)}})),t.exports=u}},e={};function r(o){var s=e[o];if(void 0!==s)return s.exports;var n=e[o]={exports:{}};return t[o](n,n.exports,r),n.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var o={};(()=>{r.d(o,{A9:()=>_e,M_:()=>Be,Mq:()=>qe,h4:()=>xe,Eh:()=>ye,eJ:()=>oe,yp:()=>Ce,hw:()=>fe,Xp:()=>me,dI:()=>Te,gO:()=>ie,qX:()=>te,jF:()=>ee,as:()=>ae,cY:()=>Zt,Vl:()=>ce,kD:()=>ue,KD:()=>Ee,Jy:()=>Oe,s9:()=>ge,iS:()=>Se});var t=r(4530),e=r.n(t);function s(t,e){return function(){return t.apply(e,arguments)}}const{toString:n}=Object.prototype,{getPrototypeOf:a}=Object,i=(c=Object.create(null),t=>{const e=n.call(t);return c[e]||(c[e]=e.slice(8,-1).toLowerCase())});var c;const u=t=>(t=t.toLowerCase(),e=>i(e)===t),h=t=>e=>typeof e===t,{isArray:p}=Array,d=h("undefined"),l=u("ArrayBuffer"),m=h("string"),f=h("function"),y=h("number"),g=t=>null!==t&&"object"==typeof t,O=t=>{if("object"!==i(t))return!1;const e=a(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},E=u("Date"),S=u("File"),T=u("Blob"),q=u("FileList"),C=u("URLSearchParams");function R(t,e,{allOwnKeys:r=!1}={}){if(null==t)return;let o,s;if("object"!=typeof t&&(t=[t]),p(t))for(o=0,s=t.length;o<s;o++)e.call(null,t[o],o,t);else{const s=r?Object.getOwnPropertyNames(t):Object.keys(t),n=s.length;let a;for(o=0;o<n;o++)a=s[o],e.call(null,t[a],a,t)}}function w(t,e){e=e.toLowerCase();const r=Object.keys(t);let o,s=r.length;for(;s-- >0;)if(o=r[s],e===o.toLowerCase())return o;return null}const b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,x=t=>!d(t)&&t!==b,v=(k="undefined"!=typeof Uint8Array&&a(Uint8Array),t=>k&&t instanceof k);var k;const P=u("HTMLFormElement"),A=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),j=u("RegExp"),I=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),o={};R(r,((r,s)=>{!1!==e(r,s,t)&&(o[s]=r)})),Object.defineProperties(t,o)},B="abcdefghijklmnopqrstuvwxyz",_="0123456789",$={DIGIT:_,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+_},N={isArray:p,isArrayBuffer:l,isBuffer:function(t){return null!==t&&!d(t)&&null!==t.constructor&&!d(t.constructor)&&f(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{const e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||n.call(t)===e||f(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&l(t.buffer),e},isString:m,isNumber:y,isBoolean:t=>!0===t||!1===t,isObject:g,isPlainObject:O,isUndefined:d,isDate:E,isFile:S,isBlob:T,isRegExp:j,isFunction:f,isStream:t=>g(t)&&f(t.pipe),isURLSearchParams:C,isTypedArray:v,isFileList:q,forEach:R,merge:function t(){const{caseless:e}=x(this)&&this||{},r={},o=(o,s)=>{const n=e&&w(r,s)||s;O(r[n])&&O(o)?r[n]=t(r[n],o):O(o)?r[n]=t({},o):p(o)?r[n]=o.slice():r[n]=o};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&R(arguments[t],o);return r},extend:(t,e,r,{allOwnKeys:o}={})=>(R(e,((e,o)=>{r&&f(e)?t[o]=s(e,r):t[o]=e}),{allOwnKeys:o}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,o)=>{t.prototype=Object.create(e.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,o)=>{let s,n,i;const c={};if(e=e||{},null==t)return e;do{for(s=Object.getOwnPropertyNames(t),n=s.length;n-- >0;)i=s[n],o&&!o(i,t,e)||c[i]||(e[i]=t[i],c[i]=!0);t=!1!==r&&a(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:i,kindOfTest:u,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const o=t.indexOf(e,r);return-1!==o&&o===r},toArray:t=>{if(!t)return null;if(p(t))return t;let e=t.length;if(!y(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=r.next())&&!o.done;){const r=o.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const o=[];for(;null!==(r=t.exec(e));)o.push(r);return o},isHTMLForm:P,hasOwnProperty:A,hasOwnProp:A,reduceDescriptors:I,freezeMethods:t=>{I(t,((e,r)=>{if(f(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const o=t[r];f(o)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(t,e)=>{const r={},o=t=>{t.forEach((t=>{r[t]=!0}))};return p(t)?o(t):o(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:w,global:b,isContextDefined:x,ALPHABET:$,generateString:(t=16,e=$.ALPHA_DIGIT)=>{let r="";const{length:o}=e;for(;t--;)r+=e[Math.random()*o|0];return r},isSpecCompliantForm:function(t){return!!(t&&f(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),r=(t,o)=>{if(g(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[o]=t;const s=p(t)?[]:{};return R(t,((t,e)=>{const n=r(t,o+1);!d(n)&&(s[e]=n)})),e[o]=void 0,s}}return t};return r(t,0)}};function D(t,e,r,o,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s)}N.inherits(D,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:N.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const K=D.prototype,L={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{L[t]={value:t}})),Object.defineProperties(D,L),Object.defineProperty(K,"isAxiosError",{value:!0}),D.from=(t,e,r,o,s,n)=>{const a=Object.create(K);return N.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),D.call(a,t.message,e,r,o,s),a.cause=t,a.name=t.name,n&&Object.assign(a,n),a};const G=D;function M(t){return N.isPlainObject(t)||N.isArray(t)}function U(t){return N.endsWith(t,"[]")?t.slice(0,-2):t}function F(t,e,r){return t?t.concat(e).map((function(t,e){return t=U(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}const H=N.toFlatObject(N,{},null,(function(t){return/^is[A-Z]/.test(t)})),z=function(t,e,r){if(!N.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const o=(r=N.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!N.isUndefined(e[t])}))).metaTokens,s=r.visitor||u,n=r.dots,a=r.indexes,i=(r.Blob||"undefined"!=typeof Blob&&Blob)&&N.isSpecCompliantForm(e);if(!N.isFunction(s))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(N.isDate(t))return t.toISOString();if(!i&&N.isBlob(t))throw new G("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(t)||N.isTypedArray(t)?i&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function u(t,r,s){let i=t;if(t&&!s&&"object"==typeof t)if(N.endsWith(r,"{}"))r=o?r:r.slice(0,-2),t=JSON.stringify(t);else if(N.isArray(t)&&function(t){return N.isArray(t)&&!t.some(M)}(t)||(N.isFileList(t)||N.endsWith(r,"[]"))&&(i=N.toArray(t)))return r=U(r),i.forEach((function(t,o){!N.isUndefined(t)&&null!==t&&e.append(!0===a?F([r],o,n):null===a?r:r+"[]",c(t))})),!1;return!!M(t)||(e.append(F(s,r,n),c(t)),!1)}const h=[],p=Object.assign(H,{defaultVisitor:u,convertValue:c,isVisitable:M});if(!N.isObject(t))throw new TypeError("data must be an object");return function t(r,o){if(!N.isUndefined(r)){if(-1!==h.indexOf(r))throw Error("Circular reference detected in "+o.join("."));h.push(r),N.forEach(r,(function(r,n){!0===(!(N.isUndefined(r)||null===r)&&s.call(e,r,N.isString(n)?n.trim():n,o,p))&&t(r,o?o.concat(n):[n])})),h.pop()}}(t),e};function J(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function V(t,e){this._pairs=[],t&&z(t,this,e)}const W=V.prototype;W.append=function(t,e){this._pairs.push([t,e])},W.toString=function(t){const e=t?function(e){return t.call(this,e,J)}:J;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const X=V;function Y(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Q(t,e,r){if(!e)return t;const o=r&&r.encode||Y,s=r&&r.serialize;let n;if(n=s?s(e,r):N.isURLSearchParams(e)?e.toString():new X(e,r).toString(o),n){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t}const Z=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){N.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},tt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},et={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:X,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},rt=function(t){function e(t,r,o,s){let n=t[s++];const a=Number.isFinite(+n),i=s>=t.length;return n=!n&&N.isArray(o)?o.length:n,i?(N.hasOwnProp(o,n)?o[n]=[o[n],r]:o[n]=r,!a):(o[n]&&N.isObject(o[n])||(o[n]=[]),e(t,r,o[n],s)&&N.isArray(o[n])&&(o[n]=function(t){const e={},r=Object.keys(t);let o;const s=r.length;let n;for(o=0;o<s;o++)n=r[o],e[n]=t[n];return e}(o[n])),!a)}if(N.isFormData(t)&&N.isFunction(t.entries)){const r={};return N.forEachEntry(t,((t,o)=>{e(function(t){return N.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),o,r,0)})),r}return null},ot={"Content-Type":void 0},st={transitional:tt,adapter:["xhr","http"],transformRequest:[function(t,e){const r=e.getContentType()||"",o=r.indexOf("application/json")>-1,s=N.isObject(t);if(s&&N.isHTMLForm(t)&&(t=new FormData(t)),N.isFormData(t))return o&&o?JSON.stringify(rt(t)):t;if(N.isArrayBuffer(t)||N.isBuffer(t)||N.isStream(t)||N.isFile(t)||N.isBlob(t))return t;if(N.isArrayBufferView(t))return t.buffer;if(N.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let n;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return z(t,new et.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,o){return et.isNode&&N.isBuffer(t)?(this.append(e,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((n=N.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return z(n?{"files[]":t}:t,e&&new e,this.formSerializer)}}return s||o?(e.setContentType("application/json",!1),function(t,e,r){if(N.isString(t))try{return(0,JSON.parse)(t),N.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||st.transitional,r=e&&e.forcedJSONParsing,o="json"===this.responseType;if(t&&N.isString(t)&&(r&&!this.responseType||o)){const r=!(e&&e.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw G.from(t,G.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:et.classes.FormData,Blob:et.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};N.forEach(["delete","get","head"],(function(t){st.headers[t]={}})),N.forEach(["post","put","patch"],(function(t){st.headers[t]=N.merge(ot)}));const nt=st,at=N.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),it=Symbol("internals");function ct(t){return t&&String(t).trim().toLowerCase()}function ut(t){return!1===t||null==t?t:N.isArray(t)?t.map(ut):String(t)}function ht(t,e,r,o,s){return N.isFunction(o)?o.call(this,e,r):(s&&(e=r),N.isString(e)?N.isString(o)?-1!==e.indexOf(o):N.isRegExp(o)?o.test(e):void 0:void 0)}class pt{constructor(t){t&&this.set(t)}set(t,e,r){const o=this;function s(t,e,r){const s=ct(e);if(!s)throw new Error("header name must be a non-empty string");const n=N.findKey(o,s);(!n||void 0===o[n]||!0===r||void 0===r&&!1!==o[n])&&(o[n||e]=ut(t))}const n=(t,e)=>N.forEach(t,((t,r)=>s(t,r,e)));return N.isPlainObject(t)||t instanceof this.constructor?n(t,e):N.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())?n((t=>{const e={};let r,o,s;return t&&t.split("\n").forEach((function(t){s=t.indexOf(":"),r=t.substring(0,s).trim().toLowerCase(),o=t.substring(s+1).trim(),!r||e[r]&&at[r]||("set-cookie"===r?e[r]?e[r].push(o):e[r]=[o]:e[r]=e[r]?e[r]+", "+o:o)})),e})(t),e):null!=t&&s(e,t,r),this}get(t,e){if(t=ct(t)){const r=N.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(t);)e[o[1]]=o[2];return e}(t);if(N.isFunction(e))return e.call(this,t,r);if(N.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=ct(t)){const r=N.findKey(this,t);return!(!r||void 0===this[r]||e&&!ht(0,this[r],r,e))}return!1}delete(t,e){const r=this;let o=!1;function s(t){if(t=ct(t)){const s=N.findKey(r,t);!s||e&&!ht(0,r[s],s,e)||(delete r[s],o=!0)}}return N.isArray(t)?t.forEach(s):s(t),o}clear(t){const e=Object.keys(this);let r=e.length,o=!1;for(;r--;){const s=e[r];t&&!ht(0,this[s],s,t,!0)||(delete this[s],o=!0)}return o}normalize(t){const e=this,r={};return N.forEach(this,((o,s)=>{const n=N.findKey(r,s);if(n)return e[n]=ut(o),void delete e[s];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,r)=>e.toUpperCase()+r))}(s):String(s).trim();a!==s&&delete e[s],e[a]=ut(o),r[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return N.forEach(this,((r,o)=>{null!=r&&!1!==r&&(e[o]=t&&N.isArray(r)?r.join(", "):r)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach((t=>r.set(t))),r}static accessor(t){const e=(this[it]=this[it]={accessors:{}}).accessors,r=this.prototype;function o(t){const o=ct(t);e[o]||(function(t,e){const r=N.toCamelCase(" "+e);["get","set","has"].forEach((o=>{Object.defineProperty(t,o+r,{value:function(t,r,s){return this[o].call(this,e,t,r,s)},configurable:!0})}))}(r,t),e[o]=!0)}return N.isArray(t)?t.forEach(o):o(t),this}}pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),N.freezeMethods(pt.prototype),N.freezeMethods(pt);const dt=pt;function lt(t,e){const r=this||nt,o=e||r,s=dt.from(o.headers);let n=o.data;return N.forEach(t,(function(t){n=t.call(r,n,s.normalize(),e?e.status:void 0)})),s.normalize(),n}function mt(t){return!(!t||!t.__CANCEL__)}function ft(t,e,r){G.call(this,null==t?"canceled":t,G.ERR_CANCELED,e,r),this.name="CanceledError"}N.inherits(ft,G,{__CANCEL__:!0});const yt=ft,gt=et.isStandardBrowserEnv?{write:function(t,e,r,o,s,n){const a=[];a.push(t+"="+encodeURIComponent(e)),N.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),N.isString(o)&&a.push("path="+o),N.isString(s)&&a.push("domain="+s),!0===n&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Ot(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Et=et.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let r;function o(r){let o=r;return t&&(e.setAttribute("href",o),o=e.href),e.setAttribute("href",o),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return r=o(window.location.href),function(t){const e=N.isString(t)?o(t):t;return e.protocol===r.protocol&&e.host===r.host}}():function(){return!0};function St(t,e){let r=0;const o=function(t,e){t=t||10;const r=new Array(t),o=new Array(t);let s,n=0,a=0;return e=void 0!==e?e:1e3,function(i){const c=Date.now(),u=o[a];s||(s=c),r[n]=i,o[n]=c;let h=a,p=0;for(;h!==n;)p+=r[h++],h%=t;if(n=(n+1)%t,n===a&&(a=(a+1)%t),c-s<e)return;const d=u&&c-u;return d?Math.round(1e3*p/d):void 0}}(50,250);return s=>{const n=s.loaded,a=s.lengthComputable?s.total:void 0,i=n-r,c=o(i);r=n;const u={loaded:n,total:a,progress:a?n/a:void 0,bytes:i,rate:c||void 0,estimated:c&&a&&n<=a?(a-n)/c:void 0,event:s};u[e?"download":"upload"]=!0,t(u)}}const Tt={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,r){let o=t.data;const s=dt.from(t.headers).normalize(),n=t.responseType;let a;function i(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}N.isFormData(o)&&(et.isStandardBrowserEnv||et.isStandardBrowserWebWorkerEnv)&&s.setContentType(!1);let c=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",r=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.set("Authorization","Basic "+btoa(e+":"+r))}const u=Ot(t.baseURL,t.url);function h(){if(!c)return;const o=dt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(t,e,r){const o=r.config.validateStatus;r.status&&o&&!o(r.status)?e(new G("Request failed with status code "+r.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}((function(t){e(t),i()}),(function(t){r(t),i()}),{data:n&&"text"!==n&&"json"!==n?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:o,config:t,request:c}),c=null}if(c.open(t.method.toUpperCase(),Q(u,t.params,t.paramsSerializer),!0),c.timeout=t.timeout,"onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(h)},c.onabort=function(){c&&(r(new G("Request aborted",G.ECONNABORTED,t,c)),c=null)},c.onerror=function(){r(new G("Network Error",G.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const o=t.transitional||tt;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new G(e,o.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,t,c)),c=null},et.isStandardBrowserEnv){const e=(t.withCredentials||Et(u))&&t.xsrfCookieName&&gt.read(t.xsrfCookieName);e&&s.set(t.xsrfHeaderName,e)}void 0===o&&s.setContentType(null),"setRequestHeader"in c&&N.forEach(s.toJSON(),(function(t,e){c.setRequestHeader(e,t)})),N.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),n&&"json"!==n&&(c.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&c.addEventListener("progress",St(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",St(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=e=>{c&&(r(!e||e.type?new yt(null,t,c):e),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const p=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(u);p&&-1===et.protocols.indexOf(p)?r(new G("Unsupported protocol "+p+":",G.ERR_BAD_REQUEST,t)):c.send(o||null)}))}};N.forEach(Tt,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));function qt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new yt(null,t)}function Ct(t){return qt(t),t.headers=dt.from(t.headers),t.data=lt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),(t=>{t=N.isArray(t)?t:[t];const{length:e}=t;let r,o;for(let s=0;s<e&&(r=t[s],!(o=N.isString(r)?Tt[r.toLowerCase()]:r));s++);if(!o){if(!1===o)throw new G(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(N.hasOwnProp(Tt,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`)}if(!N.isFunction(o))throw new TypeError("adapter is not a function");return o})(t.adapter||nt.adapter)(t).then((function(e){return qt(t),e.data=lt.call(t,t.transformResponse,e),e.headers=dt.from(e.headers),e}),(function(e){return mt(e)||(qt(t),e&&e.response&&(e.response.data=lt.call(t,t.transformResponse,e.response),e.response.headers=dt.from(e.response.headers))),Promise.reject(e)}))}const Rt=t=>t instanceof dt?t.toJSON():t;function wt(t,e){e=e||{};const r={};function o(t,e,r){return N.isPlainObject(t)&&N.isPlainObject(e)?N.merge.call({caseless:r},t,e):N.isPlainObject(e)?N.merge({},e):N.isArray(e)?e.slice():e}function s(t,e,r){return N.isUndefined(e)?N.isUndefined(t)?void 0:o(void 0,t,r):o(t,e,r)}function n(t,e){if(!N.isUndefined(e))return o(void 0,e)}function a(t,e){return N.isUndefined(e)?N.isUndefined(t)?void 0:o(void 0,t):o(void 0,e)}function i(r,s,n){return n in e?o(r,s):n in t?o(void 0,r):void 0}const c={url:n,method:n,data:n,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:i,headers:(t,e)=>s(Rt(t),Rt(e),!0)};return N.forEach(Object.keys(t).concat(Object.keys(e)),(function(o){const n=c[o]||s,a=n(t[o],e[o],o);N.isUndefined(a)&&n!==i||(r[o]=a)})),r}const bt={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{bt[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const xt={};bt.transitional=function(t,e,r){function o(t,e){return"[Axios v1.3.5] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,s,n)=>{if(!1===t)throw new G(o(s," has been removed"+(e?" in "+e:"")),G.ERR_DEPRECATED);return e&&!xt[s]&&(xt[s]=!0,console.warn(o(s," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,s,n)}};const vt={assertOptions:function(t,e,r){if("object"!=typeof t)throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let s=o.length;for(;s-- >0;){const n=o[s],a=e[n];if(a){const e=t[n],r=void 0===e||a(e,n,t);if(!0!==r)throw new G("option "+n+" must be "+r,G.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new G("Unknown option "+n,G.ERR_BAD_OPTION)}},validators:bt},kt=vt.validators;class Pt{constructor(t){this.defaults=t,this.interceptors={request:new Z,response:new Z}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=wt(this.defaults,e);const{transitional:r,paramsSerializer:o,headers:s}=e;let n;void 0!==r&&vt.assertOptions(r,{silentJSONParsing:kt.transitional(kt.boolean),forcedJSONParsing:kt.transitional(kt.boolean),clarifyTimeoutError:kt.transitional(kt.boolean)},!1),null!=o&&(N.isFunction(o)?e.paramsSerializer={serialize:o}:vt.assertOptions(o,{encode:kt.function,serialize:kt.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase(),n=s&&N.merge(s.common,s[e.method]),n&&N.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete s[t]})),e.headers=dt.concat(n,s);const a=[];let i=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let h,p=0;if(!i){const t=[Ct.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,c),h=t.length,u=Promise.resolve(e);p<h;)u=u.then(t[p++],t[p++]);return u}h=a.length;let d=e;for(p=0;p<h;){const t=a[p++],e=a[p++];try{d=t(d)}catch(t){e.call(this,t);break}}try{u=Ct.call(this,d)}catch(t){return Promise.reject(t)}for(p=0,h=c.length;p<h;)u=u.then(c[p++],c[p++]);return u}getUri(t){return Q(Ot((t=wt(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}N.forEach(["delete","get","head","options"],(function(t){Pt.prototype[t]=function(e,r){return this.request(wt(r||{},{method:t,url:e,data:(r||{}).data}))}})),N.forEach(["post","put","patch"],(function(t){function e(e){return function(r,o,s){return this.request(wt(s||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}Pt.prototype[t]=e(),Pt.prototype[t+"Form"]=e(!0)}));const At=Pt;class jt{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const r=this;this.promise.then((t=>{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null})),this.promise.then=t=>{let e;const o=new Promise((t=>{r.subscribe(t),e=t})).then(t);return o.cancel=function(){r.unsubscribe(e)},o},t((function(t,o,s){r.reason||(r.reason=new yt(t,o,s),e(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new jt((function(e){t=e})),cancel:t}}}const It=jt,Bt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Bt).forEach((([t,e])=>{Bt[e]=t}));const _t=Bt,$t=function t(e){const r=new At(e),o=s(At.prototype.request,r);return N.extend(o,At.prototype,r,{allOwnKeys:!0}),N.extend(o,r,null,{allOwnKeys:!0}),o.create=function(r){return t(wt(e,r))},o}(nt);$t.Axios=At,$t.CanceledError=yt,$t.CancelToken=It,$t.isCancel=mt,$t.VERSION="1.3.5",$t.toFormData=z,$t.AxiosError=G,$t.Cancel=$t.CanceledError,$t.all=function(t){return Promise.all(t)},$t.spread=function(t){return function(e){return t.apply(null,e)}},$t.isAxiosError=function(t){return N.isObject(t)&&!0===t.isAxiosError},$t.mergeConfig=wt,$t.AxiosHeaders=dt,$t.formToJSON=t=>rt(N.isHTMLForm(t)?new FormData(t):t),$t.HttpStatusCode=_t,$t.default=$t;const Nt=$t,{Axios:Dt,AxiosError:Kt,CanceledError:Lt,isCancel:Gt,CancelToken:Mt,VERSION:Ut,all:Ft,Cancel:Ht,isAxiosError:zt,spread:Jt,toFormData:Vt,AxiosHeaders:Wt,HttpStatusCode:Xt,formToJSON:Yt,mergeConfig:Qt}=Nt;function Zt(t){let e={};if(t instanceof Wt){const r=t.toJSON();e={},Object.entries(r).forEach((([t,r])=>{const o=t.toLowerCase();"boolean"==typeof r||"number"==typeof r||"string"==typeof r?e[o]=r.toString():Array.isArray(r)&&(e[o]=r.join(", "))}))}return Object.keys(e).length?e:void 0}function te(t,e){return"isAxiosError"in t?{request:{url:t.config?.url??"",method:t.config?.method,params:t.config?.params,headers:Zt(t.config?.headers),data:t.config?.data},response:{code:t.code,message:t.response?.status?void 0:t.message,status:t.response?.status,headers:Zt(t.response?.headers),data:t.response?.data},stats:e}:null}function ee(t,e){return{request:{url:t.config?.url??"",method:t.config?.method,params:t.config?.params,headers:Zt(t.config?.headers),data:t.config?.data},response:{status:t.status,headers:Zt(t.headers),data:t.data},stats:e}}var re=r(8842);const oe=500,se={maxRetries:3,delayMs:50,jitter:!0},ne=[re.Status.InternalServerError,re.Status.NotImplemented,re.Status.BadGateway,re.Status.ServiceUnavailable,re.Status.GatewayTimeout];function ae(t){return Nt.create({httpsAgent:void 0})}function ie(t,e){if(!e||0===t)return 0;const r=e.delayMs*2**(t-1);if(e.jitter){const e=r*(1+1/(t+1));return Math.floor(Math.random()*e)}return r}function ce(t){let e="";if("string"!=typeof t)throw new qe("The [input] parameter must be a string");if(e=t.trim().toLowerCase(),e=e.replace(/ {2,}/g,""),e=e.replace(/&/g,"and"),e=e.replace(/[ _]/g,"-"),e=e.replace(/[^0-9a-z-]+/g,""),e=e.replace(/-{2,}/g,"-"),e.length&&"-"===e[0]&&(e=e.slice(1)),e.length&&"-"===e[e.length-1]&&(e=e.slice(0,-1)),e.length<2)throw new qe(`Formatted key did not meet minimum length of 2 characters: ${e}`);if(e.length>256)throw new qe(`Formatted key exceeds the maximum length of 256 characters: ${e}`);return e}function ue(t){if(t?.attributes?.length){const e=t.attributes?.find((e=>e.name===t.name));if(e)return e.value}return null}var he=r(3692),pe=r.n(he);function de(t){return le(t,{})}function le(t,e){if(e&&t)for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&("object"==typeof t[r]?(Array.isArray(t[r])?e[r]=[]:e[r]={},e[r]=le(t[r],e[r])):e[r]=t[r]);return e}const me=["password","refresh_token"],fe=["authorization"],ye="********";function ge(t){return Ee(t,me)}function Oe(t){return Ee(t,fe)}function Ee(t,e,r=ye){if("object"==typeof t&&null!=t){let o={};return o=de(t instanceof Wt?t.toJSON():t),pe()(o).forEach((function(){e.includes(this.key?.toLowerCase()??"")&&this.update(r)})),o}return t}async function Se(t){const e=(t?.maxRetries||3)+1,r=t?.delayMs||100,o=!!t?.jitter;for(let s=1;s<=e;s++){if(s>1){const t=ie(s-1,{delayMs:r,jitter:o});await new Promise((e=>setTimeout(e,t)))}try{return await t.executeFn(s)}catch(t){if(!t.isCommercetoolsError||t.status!==re.Status.Conflict||s===e)throw t}}}function Te(t){let e="@gradientedge/commercetools-utils";return t&&(e=`${e} (${t})`),e}class qe extends Error{constructor(t,e,r){super(t),this.isCommercetoolsError=!0,this.data=e,this.status=r,Object.setPrototypeOf(this,qe.prototype)}static fromAxiosError(t){return new qe(t.message,{code:t.code,request:{url:t.config?.url,method:t.config?.method,headers:Oe(Zt(t.config?.headers)),params:ge(t.config?.params),data:ge(this.parseRequestData(t.config))},response:{status:t.response?.status,data:ge(t.response?.data),headers:Zt(t.response?.headers)}},t.response?.status)}static parseRequestData(t){if(!t)return null;let e=t?.data;if("string"==typeof e&&e){let r="";if("string"==typeof t?.headers?.["Content-Type"]&&(r=t?.headers?.["Content-Type"]),"application/json"===r.substring(0,16))try{e=JSON.parse(t.data)}catch(t){}else if("application/x-www-form-urlencoded"===r.substring(0,33))try{const r=new URLSearchParams(t.data),o={};r.forEach(((t,e,r)=>{const s=r.getAll(e);0===s.length?o[e]="":1===s.length?o[e]=s[0]:o[e]=s})),e=o}catch(t){}}return e}toJSON(){return{status:this.status,message:this.message,data:this.data,isCommercetoolsError:!0}}toString(){return e()(this.toJSON())}}var Ce;!function(t){t.NORTH_AMERICA_GCP="north_america_gcp",t.NORTH_AMERICA_AWS="north_america_aws",t.EUROPE_GCP="europe_gcp",t.EUROPE_AWS="europe_aws",t.AUSTRALIA_GCP="australia_gcp"}(Ce||(Ce={}));const Re={[Ce.EUROPE_GCP]:{auth:"https://auth.europe-west1.gcp.commercetools.com",api:"https://api.europe-west1.gcp.commercetools.com"},[Ce.EUROPE_AWS]:{auth:"https://auth.eu-central-1.aws.commercetools.com",api:"https://api.eu-central-1.aws.commercetools.com"},[Ce.NORTH_AMERICA_GCP]:{auth:"https://auth.us-central1.gcp.commercetools.com",api:"https://api.us-central1.gcp.commercetools.com"},[Ce.NORTH_AMERICA_AWS]:{auth:"https://auth.us-east-2.aws.commercetools.com",api:"https://api.us-east-2.aws.commercetools.com"},[Ce.AUSTRALIA_GCP]:{auth:"https://auth.australia-southeast1.gcp.commercetools.com",api:"https://api.australia-southeast1.gcp.commercetools.com"}},we=["anonymous_id","customer_id"];function be(t,e){return t?t.map((t=>`${t}:${e}`)).join(" "):""}class xe{constructor(t){var e;this.accessToken="",this.expiresIn=0,this.expiresAt=new Date,this.scopes=[],this.accessToken=t.access_token,this.expiresIn=t.expires_in,this.scopes=(e=t.scope)?e.split(" ").map((t=>t.split(":")[0])).filter((t=>!we.includes(t))):[],this.anonymousId=this.extractKeyFromScope("anonymous_id",t.scope),this.customerId=this.extractKeyFromScope("customer_id",t.scope),this.expiresAt=new Date((new Date).getTime()+1e3*t.expires_in),"refresh_token"in t&&t.refresh_token&&(this.refreshToken=t.refresh_token)}expiresWithin(t){const e=(new Date).getTime()+1e3*t;return this.expiresAt.getTime()<e}extractKeyFromScope(t,e){if(!e||!t)return;const r=e?.split(" ");if(!Array.isArray(r)||0===r.length)return;const o=r.find((e=>e.slice(0,t.length+1)===`${t}:`));return o?o.slice(t.length+1):void 0}}var ve;function ke(t){return!t.isAxiosError||!t.request||!t.response||ne.includes(t.response.status)}function Pe(t){return t.isAxiosError?qe.fromAxiosError(t):t}function Ae(t){const e=ae(t.httpsAgent),r={"User-Agent":Te(t.systemIdentifier)};return o=>{const s={...r,...o.headers};return async function(t){const{retry:e,onBeforeRequest:r,onAfterResponse:o,axiosInstance:s}=t,n=t.timeoutMs??5e3,a={};let i,c=de(t.request),u=0;Object.keys(c.headers??{}).map((t=>t.toLowerCase())).includes("user-agent")||(c.headers??(c.headers={}),c.headers["User-Agent"]=Te());let h,p,d=0;do{if(h=null,p=null,u>0){a["X-Retry-Count"]=`${u}`;const t=ie(u,e);await new Promise((e=>setTimeout(e,t)))}try{if(r){const t=await r(c);t&&(c=t)}h=Date.now();const t=await s({...c,headers:{...c.headers,...a},timeout:n});return p=Date.now(),d+=p-h,o&&o(ee(t,{accumulativeDurationMs:d,durationMs:p-h,retries:u})),t.data}catch(t){if(p=Date.now(),d+=h?p-h:0,o){const e=te(t,{accumulativeDurationMs:d,durationMs:h?p-h:0,retries:u});e&&o(e)}if(!ke(t))throw Pe(t);i=t}u++}while(u<=e.maxRetries);throw Pe(i)}({axiosInstance:e,onBeforeRequest:t.onBeforeRequest,onAfterResponse:t.onAfterResponse,request:{...o,headers:s},retry:{...se,...t.retry},timeoutMs:t.timeoutMs})}}!function(t){t.CLIENT_CREDENTIALS="client_credentials",t.REFRESH_TOKEN="refresh_token",t.PASSWORD="password"}(ve||(ve={}));class je{constructor(t){this.config=t,this.endpoints=Re[this.config.region],this.requestExecutor=Ae({timeoutMs:t.timeoutMs,httpsAgent:t.httpsAgent,systemIdentifier:t.systemIdentifier,onBeforeRequest:t.onBeforeRequest,onAfterResponse:t.onAfterResponse,retry:t.retry})}async getClientGrant(t){return this.post("/token",{grant_type:ve.CLIENT_CREDENTIALS,scope:be(t,this.config.projectKey)})}async refreshGrant(t){return await this.post("/token",{grant_type:ve.REFRESH_TOKEN,refresh_token:t})}async login(t){return this.post(`/${this.config.projectKey}${this.applyStore("/customers/token",t.storeKey)}`,{username:t.username,password:t.password,grant_type:ve.PASSWORD,scope:be(t.scopes,this.config.projectKey)})}async revokeToken(t){await this.post("/token/revoke",{token:t.tokenValue,token_type_hint:t.tokenType})}async logout(t){const e=(await Promise.allSettled([this.revokeToken({tokenType:"access_token",tokenValue:t.accessToken}),this.revokeToken({tokenType:"refresh_token",tokenValue:t.refreshToken})])).reduce(((t,e)=>("rejected"===e.status&&t.push(e.reason),t)),[]);if(e.length)throw new qe("Logout failed in one or more calls to the token revocation endpoint",e)}async getAnonymousGrant(t){const e={grant_type:ve.CLIENT_CREDENTIALS};return t?.scopes?.length&&(e.scope=be(t.scopes,this.config.projectKey)),t?.anonymousId&&(e.anonymous_id=t.anonymousId),this.post(`/${this.config.projectKey}/anonymous/token`,e)}async post(t,e){return await this.requestExecutor(this.getRequestOptions({path:t,body:e}))}getRequestOptions(t){const e=`${this.endpoints.auth}/oauth${t.path}`;let r;const o={Authorization:`Basic ${s=this.config.clientId,n=this.config.clientSecret,btoa(`${s}:${n}`)}`,"Content-Type":"application/x-www-form-urlencoded"};var s,n;return t.correlationId&&""!==t.correlationId&&(o["X-Correlation-ID"]=t.correlationId,delete t.correlationId),t.body&&(r=new URLSearchParams(t.body).toString()),{method:"POST",data:r,url:e,headers:o}}applyStore(t,e){return"string"==typeof e&&""!==e?`/in-store/key=${e}${t}`:this.config.storeKey?`/in-store/key=${this.config.storeKey}${t}`:t}}const Ie={refreshIfWithinSecs:1800,timeoutMs:5e3};class Be{constructor(t){if(this.grantPromise=null,this.config={...Ie,...t},!this.config.clientScopes.length)throw new qe("`config.clientScopes` must contain at least one scope");this.api=new je(t)}async getClientGrant(){return this.grantPromise?this.grantPromise:this.grant&&!this.grant.expiresWithin(this.config.refreshIfWithinSecs)?this.grant:(this.grantPromise=this.api.getClientGrant(this.config.clientScopes).then((t=>(this.grant=new xe(t),this.grant))).finally((()=>{this.grantPromise=null})),this.grantPromise)}async refreshCustomerGrant(t){const e=await this.api.refreshGrant(t);return new xe({...e,refresh_token:t})}async login(t){const e=t.scopes||this.config.customerScopes;if(!e)throw new qe("Customer scopes must be set on either the `options` parameter of this `login` method, or on the `customerScopes` property of the `CommercetoolsAuth` constructor");await this.getClientGrant();const r=await this.api.login({...t,scopes:e});return new xe(r)}async getAnonymousGrant(t){const e=t?.scopes||this.config.customerScopes,r=t?.anonymousId;if(!e)throw new qe("Customer scopes must be set on either the `options` parameter of this `login` method, or on the `customerScopes` property of the `CommercetoolsAuth` constructor");await this.getClientGrant();const o=await this.api.getAnonymousGrant({scopes:e,anonymousId:r});return new xe(o)}async logout(t){await this.api.logout(t)}async revokeToken(t){await this.api.revokeToken(t)}}class _e{constructor(t){_e.validateConfig(t),this.config=t,this.auth=new Be(t),this.endpoints=Re[this.config.region],this.requestExecutor=Ae({timeoutMs:t.timeoutMs,httpsAgent:t.httpsAgent,systemIdentifier:t.systemIdentifier,onBeforeRequest:t.onBeforeRequest,onAfterResponse:t.onAfterResponse,retry:t.retry})}getStoreById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/stores/${t.id}`,method:"GET"})}getStoreByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/stores/key=${t.key}`,method:"GET"})}queryStores(t){return this.request({...this.extractCommonRequestOptions(t),path:"/stores",method:"GET"})}createStore(t){return this.request({path:"/stores",method:"POST",data:t.data})}updateStoreById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/stores/${t.id}`,method:"POST",data:t.data})}updateStoreByKey(t){return this.request({path:`/stores/key=${t.key}`,method:"POST",data:t.data})}deleteStoreById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/stores/${t.id}`,method:"DELETE",params:{...t.params,version:t.version}})}deleteStoreByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/stores/key=${t.key}`,method:"DELETE",params:{...t.params,version:t.version}})}getCategoryById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/categories/${t.id}`,method:"GET"})}getCategoryByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/categories/key=${t.key}`,method:"GET"})}queryChannels(t){return this.request({...this.extractCommonRequestOptions(t),path:"/channels",method:"GET"})}async importOrder(t){return this.request({...this.extractCommonRequestOptions(t),path:"/orders/import",method:"POST",data:t.data})}getChannelById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/channels/${t.id}`,method:"GET"})}async getChannelByKey(t){const e=await this.request({...this.extractCommonRequestOptions(t),path:"/channels",method:"GET",params:{where:`key="${t.key}"`,limit:1}});if(!e?.count)throw new qe(`No channel found with key [${t.key}]`,null,404);return e.results[0]}getCategory(t){if(!t.id&&!t.key)throw new qe("Either an id, key or slug must be provided");return t.id?this.request({...this.extractCommonRequestOptions(t),path:`/categories/${t.id}`,method:"GET"}):this.request({...this.extractCommonRequestOptions(t),path:`/categories/key=${t.key}`,method:"GET"})}async getCategoryBySlug(t){if(!t.languageCode&&!t.languageCodes)throw new qe("Either the `languageCode` or `languageCodes` property must be provided");const e=[];t.languageCodes?e.push(...t.languageCodes):t.languageCode&&e.push(t.languageCode);const r=await this.request({...this.extractCommonRequestOptions({...t,params:{...t?.params,where:`slug(${e.map((e=>`${e}="${t.slug}"`)).join(" or ")})`}}),path:"/categories",method:"GET"});if(!r.count)throw new qe(`No category found with slug [${t.slug}] and language code [${t.languageCode}]`,{options:t},404);return r.results[0]}queryCategories(t){return this.request({...this.extractCommonRequestOptions(t),path:"/categories",method:"GET"})}async getCategoryParents(t){const e=await this.getCategory({...t,params:{...t.params,expand:"ancestors[*]"}}),r=e.ancestors.map((t=>t.obj));return r.push({...e,ancestors:e.ancestors.map((t=>({id:t.id,typeId:t.typeId})))}),r}getProductById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/products/${t.id}`,method:"GET"})}getProductByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/products/key=${t.key}`,method:"GET"})}getProductProjectionById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/product-projections/${t.id}`,t.storeKey),method:"GET"})}getProductProjectionByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/product-projections/key=${t.key}`,t.storeKey),method:"GET"})}async getProductProjectionBySlug(t){if(!t.languageCode&&!t.languageCodes)throw new qe("Either the `languageCode` or `languageCodes` property must be provided");const e=[];t.languageCodes?e.push(...t.languageCodes):t.languageCode&&e.push(t.languageCode);const r=await this.request({...this.extractCommonRequestOptions({...t,params:{...t?.params,where:`slug(${e.map((e=>`${e}="${t.slug}"`)).join(" or ")})`}}),path:"/product-projections",method:"GET"});if(!r.count)throw new qe(`No product projection found with slug [${t.slug}] and language code [${t.languageCode}]`,{options:t},404);return r.results[0]}queryProductProjections(t){return this.request({...this.extractCommonRequestOptions(t),path:"/product-projections",method:"GET"})}searchProductProjections(t){return this.request({...this.extractCommonRequestOptions(t),path:"/product-projections/search",method:"GET"})}getProductSelectionById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/product-selections/${t.id}`,t.storeKey),method:"GET"})}getProductSelectionByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/product-selections/key=${t.key}`,t.storeKey),method:"GET"})}queryProductSelections(t){return this.request({...this.extractCommonRequestOptions(t),path:"/product-selections",method:"GET"})}createProductSelection(t){return this.request({...this.extractCommonRequestOptions(t),path:"/product-selections",method:"POST",data:t.data})}updateProductSelectionByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/product-selections/key=${t.key}`,method:"POST",data:{version:t.version,actions:t.actions}})}deleteProductSelectionByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/product-selections/key=${t.key}&version=${t.version}`,method:"DELETE"})}queryProductsInStore(t){return this.request({...this.extractCommonRequestOptions(t),path:`/in-store/key=${t.storeKey}/product-selection-assignments`,method:"GET"})}getCartById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/carts/${t.id}`,t.storeKey),method:"GET"})}async queryCarts(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/carts",t?.storeKey),method:"GET"})}async queryMyCarts(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/carts",t.storeKey),method:"GET",accessToken:t.accessToken})}async createCart(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/carts",t.storeKey),method:"POST",data:t.data})}async updateCartById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/carts/${t.id}`,t.storeKey),method:"POST",data:{version:t.version,actions:t.actions}})}async getMyActiveCart(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/active-cart",t.storeKey),method:"GET",accessToken:t.accessToken})}async getMyCartById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/me/carts/${t.cartId}`,t.storeKey),method:"GET",accessToken:t.accessToken})}async createMyCart(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/carts",t.storeKey),method:"POST",data:t.data,accessToken:t.accessToken})}async updateMyCart(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/me/carts/${t.cartId}`,t.storeKey),method:"POST",data:{version:t.cartVersion,actions:t.actions},accessToken:t.accessToken})}async deleteMyActiveCart(t){const e=await this.getMyActiveCart(t);return await this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/me/carts/${e.id}`,t.storeKey),method:"DELETE",params:{...t.params,version:e.version},accessToken:t.accessToken})}async deleteMyCartById(t){const e=await this.getMyCartById(t);return await this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/me/carts/${t.cartId}`,t.storeKey),method:"DELETE",params:{...t.params,version:e.version},accessToken:t.accessToken})}async updateMyActiveCart(t){const e=await this.getMyActiveCart(t);return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/me/carts/${e.id}`,t.storeKey),method:"POST",data:{version:e.version,actions:t.actions},accessToken:t.accessToken})}async createMyOrderFromActiveCart(t){const e=await this.getMyActiveCart(t);return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/orders",t.storeKey),method:"POST",data:{version:e.version,id:e.id},accessToken:t.accessToken})}async createOrderFromCart(t){const e=await this.getCartById(t);return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/orders",t.storeKey),method:"POST",data:{version:e.version,id:e.id}})}async deleteCartById(t){return await this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/carts/${t.id}`,t.storeKey),method:"DELETE",params:{...t.params,version:t.version}})}createPayment(t){return this.request({...this.extractCommonRequestOptions(t),path:"/payments",method:"POST",data:t.data})}deletePaymentById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/payments/${t.id}`,method:"DELETE",params:{...t.params,version:t.version}})}updatePaymentById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/payments/${t.id}`,method:"POST",data:t.data})}getPaymentById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/payments/${t.id}`,method:"GET"})}queryPayments(t){return this.request({...this.extractCommonRequestOptions(t),path:"/payments",method:"GET"})}createMyPayment(t){return this.request({...this.extractCommonRequestOptions(t),path:"/me/payments",method:"POST",data:t.data,accessToken:t.accessToken})}updateMyPaymentById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/me/payments/${t.id}`,method:"POST",data:t.data,accessToken:t.accessToken})}getMyPaymentById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/me/payments/${t.id}`,method:"GET",accessToken:t.accessToken})}queryMyPayments(t){return this.request({...this.extractCommonRequestOptions(t),path:"/me/payments",method:"GET",accessToken:t.accessToken})}deleteMyPaymentById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/me/payments/${t.id}`,method:"DELETE",params:{version:t.version},accessToken:t.accessToken})}getMyOrderById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/me/orders/${t.id}`,t.storeKey),method:"GET",accessToken:t.accessToken})}queryMyOrders(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/orders",t.storeKey),method:"GET",accessToken:t.accessToken})}updateOrderById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/orders/${t.id}`,t.storeKey),method:"POST",data:t.data})}updateOrderByOrderNumber(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/orders/order-number=${t.orderNumber}`,t.storeKey),method:"POST",data:t.data})}getOrderById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/orders/${t.id}`,t.storeKey),method:"GET"})}getOrderByOrderNumber(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/orders/order-number=${t.orderNumber}`,t.storeKey),method:"GET"})}deleteOrderById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/orders/${t.id}`,t.storeKey),method:"DELETE",params:{...t.params,version:t.version,dataErasure:t.dataErasure}})}deleteOrderByOrderNumber(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/orders/order-number=${t.orderNo}`,t.storeKey),method:"DELETE",params:{...t.params,version:t.version,dataErasure:t.dataErasure}})}queryOrders(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/orders",t.storeKey),method:"GET"})}createProduct(t){return this.request({...this.extractCommonRequestOptions(t),path:"/products",method:"POST",data:t.data})}updateProductByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/products/key=${t.key}`,method:"POST",data:t.data})}updateProductById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/products/${t.id}`,method:"POST",data:t.data})}async deleteProductById(t){let e=t.version;return t.unpublish&&(e=(await this.unpublishProductById({id:t.id,version:t.version})).version),this.request({...this.extractCommonRequestOptions(t),path:`/products/${t.id}`,method:"DELETE",params:{...t.params,version:e}})}async deleteProductByKey(t){let e=t.version;return t.unpublish&&(e=(await this.unpublishProductByKey({key:t.key,version:t.version})).version),this.request({...this.extractCommonRequestOptions(t),path:`/products/key=${t.key}`,method:"DELETE",params:{...t.params,version:e}})}unpublishProductByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/products/key=${t.key}`,method:"POST",params:t.params,data:{version:t.version,actions:[{action:"unpublish"}]}})}unpublishProductById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/products/${t.id}`,method:"POST",params:t.params,data:{version:t.version,actions:[{action:"unpublish"}]}})}createCategory(t){return this.request({path:"/categories",method:"POST",data:t.data})}updateCategoryByKey(t){return this.request({path:`/categories/key=${t.key}`,method:"POST",data:t.data})}updateCategoryById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/categories/${t.id}`,method:"POST",data:t.data})}deleteCategoryById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/categories/${t.id}`,method:"DELETE",params:{...t.params,version:t.version}})}deleteCategoryByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/categories/key=${t.key}`,method:"DELETE",params:{...t.params,version:t.version}})}createAccount(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/customers",t.storeKey),method:"POST",data:t.data})}deleteCustomerById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/customers/${t.id}`,t.storeKey),method:"DELETE",params:{...t.params,version:t.version,dataErasure:t.dataErasure}})}deleteCustomerByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/customers/key=${t.key}`,t.storeKey),method:"DELETE",params:{...t.params,version:t.version,dataErasure:t.dataErasure}})}createMyAccount(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/signup",t.storeKey),method:"POST",data:t.data,accessToken:t.accessToken})}loginMyAccount(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/login",t.storeKey),method:"POST",data:t.data,accessToken:t.accessToken})}login(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/login",t.storeKey),method:"POST",data:t.data})}getMyAccount(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me",t.storeKey),method:"GET",accessToken:t.accessToken})}updateMyAccount(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me",t.storeKey),method:"POST",accessToken:t.accessToken,data:t.data})}changeMyPassword(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/password",t.storeKey),method:"POST",accessToken:t.accessToken,data:t.data})}resetMyPassword(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/me/password/reset",t.storeKey),method:"POST",accessToken:t.accessToken,data:t.data})}getPasswordResetToken(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/customers/password-token",t.storeKey),method:"POST",data:t.data})}getCustomerById(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/customers/${t.id}`,t.storeKey),method:"GET"})}getCustomerByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/customers/key=${t.key}`,t.storeKey),method:"GET"})}getCustomerByPasswordToken(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore(`/customers/password-token=${t.token}`,t.storeKey),method:"GET"})}queryCustomers(t){return this.request({...this.extractCommonRequestOptions(t),path:this.applyStore("/customers",t.storeKey),method:"GET"})}updateCustomerById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customers/${t.id}`,method:"POST",data:t.data})}updateCustomerByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customers/key=${t.key}`,method:"POST",data:t.data})}getProductTypeById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/product-types/${t.id}`,method:"GET"})}getProductTypeByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/product-types/key=${t.key}`,method:"GET"})}queryProductTypes(t){return this.request({...this.extractCommonRequestOptions(t),path:"/product-types",method:"GET"})}getTypeById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/types/${t.id}`,method:"GET"})}getTypeByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/types/key=${t.key}`,method:"GET"})}queryTypes(t){return this.request({...this.extractCommonRequestOptions(t),path:"/types",method:"GET"})}getDiscountCodeById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/discount-codes/${t.id}`,method:"GET"})}getCartDiscountById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/cart-discounts/${t.id}`,method:"GET"})}getCartDiscountByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/cart-discounts/key=${t.key}`,method:"GET"})}queryCartDiscounts(t){return this.request({...this.extractCommonRequestOptions(t),path:"/cart-discounts",method:"GET"})}getCustomObject(t){return this.request({...this.extractCommonRequestOptions(t),path:`/custom-objects/${t.container}/${t.key}`,method:"GET"})}getCustomObjectById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/custom-objects/${t.id}`,method:"GET"})}saveCustomObject(t){return this.request({...this.extractCommonRequestOptions(t),path:"/custom-objects",method:"POST",data:t.data})}deleteCustomObject(t){return this.request({...this.extractCommonRequestOptions(t),path:`/custom-objects/${t.container}/${t.key}`,method:"DELETE"})}getShippingMethodById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/shipping-methods/${t.id}`,method:"GET"})}getShippingMethodByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/shipping-methods/key=${t.key}`,method:"GET"})}getShippingMethodsForLocation(t){return this.request({...this.extractCommonRequestOptions({...t,params:{...t?.params,country:t.country,state:t.state,currency:t.currency}}),path:"/shipping-methods/matching-location",method:"GET",accessToken:t.accessToken})}getShippingMethodsForCart(t){return this.request({...this.extractCommonRequestOptions({...t,params:{...t?.params,cartId:t.cartId}}),path:"/shipping-methods/matching-cart",method:"GET",accessToken:t.accessToken})}queryShippingMethods(t){return this.request({...this.extractCommonRequestOptions(t),path:"/shipping-methods",method:"GET"})}getCustomerGroupById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customer-groups/${t.id}`,method:"GET"})}getCustomerGroupByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customer-groups/key=${t.key}`,method:"GET"})}queryCustomerGroups(t){return this.request({...this.extractCommonRequestOptions(t),path:"/customer-groups",method:"GET"})}createCustomerGroup(t){return this.request({path:"/customer-groups",method:"POST",data:t.data})}updateCustomerGroupByKey(t){return this.request({path:`/customer-groups/key=${t.key}`,method:"POST",data:t.data})}updateCustomerGroupById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customer-groups/${t.id}`,method:"POST",data:t.data})}deleteCustomerGroupById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customer-groups/${t.id}`,method:"DELETE",params:{...t.params,version:t.version}})}deleteCustomerGroupByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/customer-groups/key=${t.key}`,method:"DELETE",params:{...t.params,version:t.version}})}getStateById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/states/${t.id}`,method:"GET"})}getStateByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/states/key=${t.key}`,method:"GET"})}queryStates(t){return this.request({...this.extractCommonRequestOptions(t),path:"/states",method:"GET"})}getStandalonePriceById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/standalone-prices/${t.id}`,method:"GET"})}getStandalonePriceByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/standalone-prices/key=${t.key}`,method:"GET"})}queryStandalonePrices(t){return this.request({...this.extractCommonRequestOptions(t),path:"/standalone-prices",method:"GET"})}createStandalonePrice(t){return this.request({...this.extractCommonRequestOptions(t),path:"/standalone-prices",method:"POST",data:t.data})}updateStandalonePriceById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/standalone-prices/${t.id}`,method:"POST",data:t.data})}updateStandalonePriceByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/standalone-prices/key=${t.key}`,method:"POST",data:t.data})}deleteStandalonePriceById(t){return this.request({...this.extractCommonRequestOptions(t),path:`/standalone-prices/${t.id}`,method:"DELETE",params:{...t.params,version:t.version}})}deleteStandalonePriceByKey(t){return this.request({...this.extractCommonRequestOptions(t),path:`/standalone-prices/key=${t.key}`,method:"DELETE",params:{...t.params,version:t.version}})}graphql(t){return this.request({...this.extractCommonRequestOptions(t),path:"/graphql",method:"POST",data:t.data,accessToken:t.accessToken})}async request(t){const e=await this.getRequestOptions(t);return await this.requestExecutor(e)}async getRequestOptions(t){let e,r=t.accessToken;const o=`${this.endpoints.api}/${this.config.projectKey}${t.path}`;r||(r=(await this.auth.getClientGrant()).accessToken);const s={...t.headers,Authorization:`Bearer ${r}`};return"string"==typeof t.correlationId&&""!==t.correlationId&&(s["X-Correlation-ID"]=t.correlationId,delete t.correlationId),t.params&&Object.keys(t.params).length&&(e=t.params),{method:t.method,data:t.data,url:o,headers:s,params:e}}extractCommonRequestOptions(t){return t?{correlationId:t.correlationId,params:t.params,retry:t.retry}:{}}applyStore(t,e){return"string"==typeof e&&""!==e?`/in-store/key=${e}${t}`:this.config.storeKey?`/in-store/key=${this.config.storeKey}${t}`:t}static validateConfig(t){const e=[];if(t?(t.projectKey?"string"!=typeof t.projectKey&&e.push("The `projectKey` property must be a string"):e.push("The `projectKey` property is empty"),t.clientId?"string"!=typeof t.clientId&&e.push("The `clientId` property must be a string"):e.push("The `clientId` property is empty"),t.clientSecret?"string"!=typeof t.clientSecret&&e.push("The `clientSecret` property must be a string"):e.push("The `clientSecret` property is empty"),Array.isArray(t.clientScopes)?0===t.clientScopes.length&&e.push("The `clientScopes` property must have at least 1 scope defined"):e.push("The `clientScopes` property must be an array")):e.push("The config object missing or empty"),e.length)throw new qe("The configuration object passed in to the `CommercetoolsApi` constructor is not valid: \n"+e.map((t=>`• ${t}`)).join("\n"))}}})();var s=o.A9,n=o.M_,a=o.Mq,i=o.h4,c=o.Eh,u=o.eJ,h=o.yp,p=o.hw,d=o.Xp,l=o.dI,m=o.gO,f=o.qX,y=o.jF,g=o.as,O=o.cY,E=o.Vl,S=o.kD,T=o.KD,q=o.Jy,C=o.s9,R=o.iS;export{s as CommercetoolsApi,n as CommercetoolsAuth,a as CommercetoolsError,i as CommercetoolsGrant,c as DEFAULT_MASKING_STRING,u as MAX_ITEMS_PER_QUERY,h as Region,p as SENSITIVE_HEADER_NAMES,d as SENSITIVE_PROPERTY_NAMES,l as buildUserAgent,m as calculateDelay,f as convertAxiosError,y as convertAxiosResponse,g as createAxiosInstance,O as extractAxiosHeaders,E as formatAsKey,S as getAttributeValue,T as maskSensitiveData,q as maskSensitiveHeaders,C as maskSensitiveInput,R as retryOnConflict};
2
2
  //# sourceMappingURL=ge-commercetools-utils-browser.esm.js.map