ebay-api 9.5.1 → 9.5.2

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 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).eBayApi=t()}(this,function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function a(){var e=!1;try{e=this instanceof a}catch{}return e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n}var t,n,o={},i={},p={},f={},_={},h={};function requireAxios(){if(n)return t;function bind(e,t){return function wrap(){return e.apply(t,arguments)}}n=1;const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,{iterator:p,toStringTag:f}=Symbol,_=(h=Object.create(null),e=>{const t=o.call(e);return h[t]||(h[t]=t.slice(8,-1).toLowerCase())});var h;const kindOfTest=e=>(e=e.toLowerCase(),t=>_(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray:T}=Array,O=typeOfTest("undefined");function isBuffer(e){return null!==e&&!O(e)&&null!==e.constructor&&!O(e.constructor)&&$(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const D=kindOfTest("ArrayBuffer");const j=typeOfTest("string"),$=typeOfTest("function"),V=typeOfTest("number"),isObject=e=>null!==e&&"object"==typeof e,isPlainObject=e=>{if("object"!==_(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||f in e||p in e)},Q=kindOfTest("Date"),ee=kindOfTest("File"),te=kindOfTest("Blob"),re=kindOfTest("FileList"),ne=kindOfTest("URLSearchParams"),[oe,ie,ae,se]=["ReadableStream","Request","Response","Headers"].map(kindOfTest);function forEach(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let o,i;if("object"!=typeof e&&(e=[e]),T(e))for(o=0,i=e.length;o<i;o++)t.call(null,e[o],o,e);else{if(isBuffer(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),p=i.length;let f;for(o=0;o<p;o++)f=i[o],t.call(null,e[f],f,e)}}function findKey(e,t){if(isBuffer(e))return null;t=t.toLowerCase();const n=Object.keys(e);let o,i=n.length;for(;i-- >0;)if(o=n[i],t===o.toLowerCase())return o;return null}const ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e,isContextDefined=e=>!O(e)&&e!==ue;const ce=(le="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>le&&e instanceof le);var le;const de=kindOfTest("HTMLFormElement"),pe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),fe=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};forEach(n,(n,i)=>{let p;!1!==(p=t(n,i,e))&&(o[i]=p||n)}),Object.defineProperties(e,o)};const Ee=kindOfTest("AsyncFunction"),_e=(he="function"==typeof setImmediate,ge=$(ue.postMessage),he?setImmediate:ge?(me=`axios@${Math.random()}`,ye=[],ue.addEventListener("message",({source:e,data:t})=>{e===ue&&t===me&&ye.length&&ye.shift()()},!1),e=>{ye.push(e),ue.postMessage(me,"*")}):e=>setTimeout(e));var he,ge,me,ye;const Re="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ue):"undefined"!=typeof process&&process.nextTick||_e;var Ae={isArray:T,isArrayBuffer:D,isBuffer:isBuffer,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||$(e.append)&&("formdata"===(t=_(e))||"object"===t&&$(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function isArrayBufferView(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&D(e.buffer),t},isString:j,isNumber:V,isBoolean:e=>!0===e||!1===e,isObject:isObject,isPlainObject:isPlainObject,isEmptyObject:e=>{if(!isObject(e)||isBuffer(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:oe,isRequest:ie,isResponse:ae,isHeaders:se,isUndefined:O,isDate:Q,isFile:ee,isBlob:te,isRegExp:fe,isFunction:$,isStream:e=>isObject(e)&&$(e.pipe),isURLSearchParams:ne,isTypedArray:ce,isFileList:re,forEach:forEach,merge:function merge(){const{caseless:e,skipUndefined:t}=isContextDefined(this)&&this||{},n={},assignValue=(o,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const p=e&&findKey(n,i)||i;isPlainObject(n[p])&&isPlainObject(o)?n[p]=merge(n[p],o):isPlainObject(o)?n[p]=merge({},o):T(o)?n[p]=o.slice():t&&O(o)||(n[p]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&forEach(arguments[e],assignValue);return n},extend:(e,t,n,{allOwnKeys:o}={})=>(forEach(t,(t,o)=>{n&&$(t)?Object.defineProperty(e,o,{value:bind(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let p,f,_;const h={};if(t=t||{},null==e)return t;do{for(p=Object.getOwnPropertyNames(e),f=p.length;f-- >0;)_=p[f],o&&!o(_,e,t)||h[_]||(t[_]=e[_],h[_]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:_,kindOfTest:kindOfTest,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return-1!==o&&o===n},toArray:e=>{if(!e)return null;if(T(e))return e;let t=e.length;if(!V(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[p]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:de,hasOwnProperty:pe,hasOwnProp:pe,reduceDescriptors:reduceDescriptors,freezeMethods:e=>{reduceDescriptors(e,(t,n)=>{if($(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const o=e[n];$(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},define=e=>{e.forEach(e=>{n[e]=!0})};return T(e)?define(e):define(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function replacer(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:findKey,global:ue,isContextDefined:isContextDefined,isSpecCompliantForm:function isSpecCompliantForm(e){return!!(e&&$(e.append)&&"FormData"===e[f]&&e[p])},toJSONObject:e=>{const t=new Array(10),visit=(e,n)=>{if(isObject(e)){if(t.indexOf(e)>=0)return;if(isBuffer(e))return e;if(!("toJSON"in e)){t[n]=e;const o=T(e)?[]:{};return forEach(e,(e,t)=>{const i=visit(e,n+1);!O(i)&&(o[t]=i)}),t[n]=void 0,o}}return e};return visit(e,0)},isAsyncFn:Ee,isThenable:e=>e&&(isObject(e)||$(e))&&$(e.then)&&$(e.catch),setImmediate:_e,asap:Re,isIterable:e=>null!=e&&$(e[p])};class AxiosError extends Error{static from(e,t,n,o,i,p){const f=new AxiosError(e.message,t||e.code,n,o,i);return f.cause=e,f.name=e.name,p&&Object.assign(f,p),f}constructor(e,t,n,o,i){super(e),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){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:Ae.toJSONObject(this.config),code:this.code,status:this.status}}}AxiosError.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",AxiosError.ERR_BAD_OPTION="ERR_BAD_OPTION",AxiosError.ECONNABORTED="ECONNABORTED",AxiosError.ETIMEDOUT="ETIMEDOUT",AxiosError.ERR_NETWORK="ERR_NETWORK",AxiosError.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",AxiosError.ERR_DEPRECATED="ERR_DEPRECATED",AxiosError.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",AxiosError.ERR_BAD_REQUEST="ERR_BAD_REQUEST",AxiosError.ERR_CANCELED="ERR_CANCELED",AxiosError.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",AxiosError.ERR_INVALID_URL="ERR_INVALID_URL";var Ie=AxiosError;function isVisitable(e){return Ae.isPlainObject(e)||Ae.isArray(e)}function removeBrackets(e){return Ae.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,n){return e?e.concat(t).map(function each(e,t){return e=removeBrackets(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Te=Ae.toFlatObject(Ae,{},null,function filter(e){return/^is[A-Z]/.test(e)});function toFormData(e,t,n){if(!Ae.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=Ae.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function defined(e,t){return!Ae.isUndefined(t[e])})).metaTokens,i=n.visitor||defaultVisitor,p=n.dots,f=n.indexes,_=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Ae.isSpecCompliantForm(t);if(!Ae.isFunction(i))throw new TypeError("visitor must be a function");function convertValue(e){if(null===e)return"";if(Ae.isDate(e))return e.toISOString();if(Ae.isBoolean(e))return e.toString();if(!_&&Ae.isBlob(e))throw new Ie("Blob is not supported. Use a Buffer instead.");return Ae.isArrayBuffer(e)||Ae.isTypedArray(e)?_&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function defaultVisitor(e,n,i){let _=e;if(e&&!i&&"object"==typeof e)if(Ae.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ae.isArray(e)&&function isFlatArray(e){return Ae.isArray(e)&&!e.some(isVisitable)}(e)||(Ae.isFileList(e)||Ae.endsWith(n,"[]"))&&(_=Ae.toArray(e)))return n=removeBrackets(n),_.forEach(function each(e,o){!Ae.isUndefined(e)&&null!==e&&t.append(!0===f?renderKey([n],o,p):null===f?n:n+"[]",convertValue(e))}),!1;return!!isVisitable(e)||(t.append(renderKey(i,n,p),convertValue(e)),!1)}const h=[],T=Object.assign(Te,{defaultVisitor:defaultVisitor,convertValue:convertValue,isVisitable:isVisitable});if(!Ae.isObject(e))throw new TypeError("data must be an object");return function build(e,n){if(!Ae.isUndefined(e)){if(-1!==h.indexOf(e))throw Error("Circular reference detected in "+n.join("."));h.push(e),Ae.forEach(e,function each(e,o){!0===(!(Ae.isUndefined(e)||null===e)&&i.call(t,e,Ae.isString(o)?o.trim():o,n,T))&&build(e,n?n.concat(o):[o])}),h.pop()}}(e),t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function replacer(e){return t[e]})}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData(e,this,t)}const Se=AxiosURLSearchParams.prototype;function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function buildURL(e,t,n){if(!t)return e;const o=n&&n.encode||encode,i=Ae.isFunction(n)?{serialize:n}:n,p=i&&i.serialize;let f;if(f=p?p(t,i):Ae.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,i).toString(o),f){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+f}return e}Se.append=function append(e,t){this._pairs.push([e,t])},Se.toString=function toString(e){const t=e?function(t){return e.call(this,t,encode$1)}:encode$1;return this._pairs.map(function each(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Oe=class InterceptorManager{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ae.forEach(this.handlers,function forEachHandler(t){null!==t&&e(t)})}},Ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},be={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Ne="undefined"!=typeof window&&"undefined"!=typeof document,Pe="object"==typeof navigator&&navigator||void 0,ve=Ne&&(!Pe||["ReactNative","NativeScript","NS"].indexOf(Pe.product)<0),Me="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,De=Ne&&window.location.href||"http://localhost";var Ue={...Object.freeze({__proto__:null,hasBrowserEnv:Ne,hasStandardBrowserWebWorkerEnv:Me,hasStandardBrowserEnv:ve,navigator:Pe,origin:De}),...be};function formDataToJSON(e){function buildPath(e,t,n,o){let i=e[o++];if("__proto__"===i)return!0;const p=Number.isFinite(+i),f=o>=e.length;if(i=!i&&Ae.isArray(n)?n.length:i,f)return Ae.hasOwnProp(n,i)?n[i]=[n[i],t]:n[i]=t,!p;n[i]&&Ae.isObject(n[i])||(n[i]=[]);return buildPath(e,t,n[i],o)&&Ae.isArray(n[i])&&(n[i]=function arrayToObject(e){const t={},n=Object.keys(e);let o;const i=n.length;let p;for(o=0;o<i;o++)p=n[o],t[p]=e[p];return t}(n[i])),!p}if(Ae.isFormData(e)&&Ae.isFunction(e.entries)){const t={};return Ae.forEachEntry(e,(e,n)=>{buildPath(function parsePropPath(e){return Ae.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,t,0)}),t}return null}const Le={transitional:Ce,adapter:["xhr","http","fetch"],transformRequest:[function transformRequest(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=Ae.isObject(e);i&&Ae.isHTMLForm(e)&&(e=new FormData(e));if(Ae.isFormData(e))return o?JSON.stringify(formDataToJSON(e)):e;if(Ae.isArrayBuffer(e)||Ae.isBuffer(e)||Ae.isStream(e)||Ae.isFile(e)||Ae.isBlob(e)||Ae.isReadableStream(e))return e;if(Ae.isArrayBufferView(e))return e.buffer;if(Ae.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let p;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function toURLEncodedForm(e,t){return toFormData(e,new Ue.classes.URLSearchParams,{visitor:function(e,t,n,o){return Ue.isNode&&Ae.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((p=Ae.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return toFormData(p?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function stringifySafely(e,t,n){if(Ae.isString(e))try{return(t||JSON.parse)(e),Ae.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function transformResponse(e){const t=this.transitional||Le.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(Ae.isResponse(e)||Ae.isReadableStream(e))return e;if(e&&Ae.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw Ie.from(e,Ie.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ue.classes.FormData,Blob:Ue.classes.Blob},validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ae.forEach(["delete","get","head","post","put","patch"],e=>{Le.headers[e]={}});var Be=Le;const Fe=Ae.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"]);const we=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:Ae.isArray(e)?e.map(normalizeValue):String(e)}function matchHeaderValue(e,t,n,o,i){return Ae.isFunction(o)?o.call(this,t,n):(i&&(t=n),Ae.isString(t)?Ae.isString(o)?-1!==t.indexOf(o):Ae.isRegExp(o)?o.test(t):void 0:void 0)}class AxiosHeaders{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function setHeader(e,t,n){const i=normalizeHeader(t);if(!i)throw new Error("header name must be a non-empty string");const p=Ae.findKey(o,i);(!p||void 0===o[p]||!0===n||void 0===n&&!1!==o[p])&&(o[p||t]=normalizeValue(e))}const setHeaders=(e,t)=>Ae.forEach(e,(e,n)=>setHeader(e,n,t));if(Ae.isPlainObject(e)||e instanceof this.constructor)setHeaders(e,t);else if(Ae.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))setHeaders((e=>{const t={};let n,o,i;return e&&e.split("\n").forEach(function parser(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),o=e.substring(i+1).trim(),!n||t[n]&&Fe[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t})(e),t);else if(Ae.isObject(e)&&Ae.isIterable(e)){let n,o,i={};for(const t of e){if(!Ae.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[o=t[0]]=(n=i[o])?Ae.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}setHeaders(i,t)}else null!=e&&setHeader(t,e,n);return this}get(e,t){if(e=normalizeHeader(e)){const n=Ae.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function parseTokens(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(Ae.isFunction(t))return t.call(this,e,n);if(Ae.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader(e)){const n=Ae.findKey(this,e);return!(!n||void 0===this[n]||t&&!matchHeaderValue(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function deleteHeader(e){if(e=normalizeHeader(e)){const i=Ae.findKey(n,e);!i||t&&!matchHeaderValue(0,n[i],i,t)||(delete n[i],o=!0)}}return Ae.isArray(e)?e.forEach(deleteHeader):deleteHeader(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const i=t[n];e&&!matchHeaderValue(0,this[i],i,e,!0)||(delete this[i],o=!0)}return o}normalize(e){const t=this,n={};return Ae.forEach(this,(o,i)=>{const p=Ae.findKey(n,i);if(p)return t[p]=normalizeValue(o),void delete t[i];const f=e?function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim();f!==i&&delete t[i],t[f]=normalizeValue(o),n[f]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ae.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&Ae.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[we]=this[we]={accessors:{}}).accessors,n=this.prototype;function defineAccessor(e){const o=normalizeHeader(e);t[o]||(!function buildAccessors(e,t){const n=Ae.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(e,n,i){return this[o].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[o]=!0)}return Ae.isArray(e)?e.forEach(defineAccessor):defineAccessor(e),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ae.reduceDescriptors(AxiosHeaders.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Ae.freezeMethods(AxiosHeaders);var xe=AxiosHeaders;function transformData(e,t){const n=this||Be,o=t||n,i=xe.from(o.headers);let p=o.data;return Ae.forEach(e,function transform(e){p=e.call(n,p,i.normalize(),t?t.status:void 0)}),i.normalize(),p}function isCancel(e){return!(!e||!e.__CANCEL__)}var ke=class CanceledError extends Ie{constructor(e,t,n){super(null==e?"canceled":e,Ie.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function settle(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new Ie("Request failed with status code "+n.status,[Ie.ERR_BAD_REQUEST,Ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const progressEventReducer=(e,t,n=3)=>{let o=0;const i=function speedometer(e,t){e=e||10;const n=new Array(e),o=new Array(e);let i,p=0,f=0;return t=void 0!==t?t:1e3,function push(_){const h=Date.now(),T=o[f];i||(i=h),n[p]=_,o[p]=h;let O=f,D=0;for(;O!==p;)D+=n[O++],O%=e;if(p=(p+1)%e,p===f&&(f=(f+1)%e),h-i<t)return;const j=T&&h-T;return j?Math.round(1e3*D/j):void 0}}(50,250);return function throttle(e,t){let n,o,i=0,p=1e3/t;const invoke=(t,p=Date.now())=>{i=p,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{const t=Date.now(),f=t-i;f>=p?invoke(e,t):(n=e,o||(o=setTimeout(()=>{o=null,invoke(n)},p-f)))},()=>n&&invoke(n)]}(n=>{const p=n.loaded,f=n.lengthComputable?n.total:void 0,_=p-o,h=i(_);o=p;e({loaded:p,total:f,progress:f?p/f:void 0,bytes:_,rate:h||void 0,estimated:h&&f&&p<=f?(f-p)/h:void 0,event:n,lengthComputable:null!=f,[t?"download":"upload"]:!0})},n)},progressEventDecorator=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},asyncDecorator=e=>(...t)=>Ae.asap(()=>e(...t));var Ge=Ue.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ue.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ue.origin),Ue.navigator&&/(msie|trident)/i.test(Ue.navigator.userAgent)):()=>!0,qe=Ue.hasStandardBrowserEnv?{write(e,t,n,o,i,p,f){if("undefined"==typeof document)return;const _=[`${e}=${encodeURIComponent(t)}`];Ae.isNumber(n)&&_.push(`expires=${new Date(n).toUTCString()}`),Ae.isString(o)&&_.push(`path=${o}`),Ae.isString(i)&&_.push(`domain=${i}`),!0===p&&_.push("secure"),Ae.isString(f)&&_.push(`SameSite=${f}`),document.cookie=_.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function buildFullPath(e,t,n){let o=!function isAbsoluteURL(e){return"string"==typeof e&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(o||0==n)?function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const headersToObject=e=>e instanceof xe?{...e}:e;function mergeConfig(e,t){t=t||{};const n={};function getMergedValue(e,t,n,o){return Ae.isPlainObject(e)&&Ae.isPlainObject(t)?Ae.merge.call({caseless:o},e,t):Ae.isPlainObject(t)?Ae.merge({},t):Ae.isArray(t)?t.slice():t}function mergeDeepProperties(e,t,n,o){return Ae.isUndefined(t)?Ae.isUndefined(e)?void 0:getMergedValue(void 0,e,0,o):getMergedValue(e,t,0,o)}function valueFromConfig2(e,t){if(!Ae.isUndefined(t))return getMergedValue(void 0,t)}function defaultToConfig2(e,t){return Ae.isUndefined(t)?Ae.isUndefined(e)?void 0:getMergedValue(void 0,e):getMergedValue(void 0,t)}function mergeDirectKeys(n,o,i){return i in t?getMergedValue(n,o):i in e?getMergedValue(void 0,n):void 0}const o={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(e,t,n)=>mergeDeepProperties(headersToObject(e),headersToObject(t),0,!0)};return Ae.forEach(Object.keys({...e,...t}),function computeConfigValue(i){if("__proto__"===i||"constructor"===i||"prototype"===i)return;const p=Ae.hasOwnProp(o,i)?o[i]:mergeDeepProperties,f=p(e[i],t[i],i);Ae.isUndefined(f)&&p!==mergeDirectKeys||(n[i]=f)}),n}var resolveConfig=e=>{const t=mergeConfig({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:p,headers:f,auth:_}=t;if(t.headers=f=xe.from(f),t.url=buildURL(buildFullPath(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),_&&f.set("Authorization","Basic "+btoa((_.username||"")+":"+(_.password?unescape(encodeURIComponent(_.password)):""))),Ae.isFormData(n))if(Ue.hasStandardBrowserEnv||Ue.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if(Ae.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&f.set(e,n)})}if(Ue.hasStandardBrowserEnv&&(o&&Ae.isFunction(o)&&(o=o(t)),o||!1!==o&&Ge(t.url))){const e=i&&p&&qe.read(p);e&&f.set(i,e)}return t};var je="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function dispatchXhrRequest(t,n){const o=resolveConfig(e);let i=o.data;const p=xe.from(o.headers).normalize();let f,_,h,T,O,{responseType:D,onUploadProgress:j,onDownloadProgress:$}=o;function done(){T&&T(),O&&O(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let V=new XMLHttpRequest;function onloadend(){if(!V)return;const o=xe.from("getAllResponseHeaders"in V&&V.getAllResponseHeaders());settle(function _resolve(e){t(e),done()},function _reject(e){n(e),done()},{data:D&&"text"!==D&&"json"!==D?V.response:V.responseText,status:V.status,statusText:V.statusText,headers:o,config:e,request:V}),V=null}V.open(o.method.toUpperCase(),o.url,!0),V.timeout=o.timeout,"onloadend"in V?V.onloadend=onloadend:V.onreadystatechange=function handleLoad(){V&&4===V.readyState&&(0!==V.status||V.responseURL&&0===V.responseURL.indexOf("file:"))&&setTimeout(onloadend)},V.onabort=function handleAbort(){V&&(n(new Ie("Request aborted",Ie.ECONNABORTED,e,V)),V=null)},V.onerror=function handleError(t){const o=t&&t.message?t.message:"Network Error",i=new Ie(o,Ie.ERR_NETWORK,e,V);i.event=t||null,n(i),V=null},V.ontimeout=function handleTimeout(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const i=o.transitional||Ce;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new Ie(t,i.clarifyTimeoutError?Ie.ETIMEDOUT:Ie.ECONNABORTED,e,V)),V=null},void 0===i&&p.setContentType(null),"setRequestHeader"in V&&Ae.forEach(p.toJSON(),function setRequestHeader(e,t){V.setRequestHeader(t,e)}),Ae.isUndefined(o.withCredentials)||(V.withCredentials=!!o.withCredentials),D&&"json"!==D&&(V.responseType=o.responseType),$&&([h,O]=progressEventReducer($,!0),V.addEventListener("progress",h)),j&&V.upload&&([_,T]=progressEventReducer(j),V.upload.addEventListener("progress",_),V.upload.addEventListener("loadend",T)),(o.cancelToken||o.signal)&&(f=t=>{V&&(n(!t||t.type?new ke(null,e,V):t),V.abort(),V=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const Q=function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(o.url);Q&&-1===Ue.protocols.indexOf(Q)?n(new Ie("Unsupported protocol "+Q+":",Ie.ERR_BAD_REQUEST,e)):V.send(i||null)})};var composeSignals$1=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,o=new AbortController;const onabort=function(e){if(!n){n=!0,unsubscribe();const t=e instanceof Error?e:this.reason;o.abort(t instanceof Ie?t:new ke(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,onabort(new Ie(`timeout of ${t}ms exceeded`,Ie.ETIMEDOUT))},t);const unsubscribe=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(onabort):e.removeEventListener("abort",onabort)}),e=null)};e.forEach(e=>e.addEventListener("abort",onabort));const{signal:p}=o;return p.unsubscribe=()=>Ae.asap(unsubscribe),p}};const streamChunk=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let o,i=0;for(;i<n;)o=i+t,yield e.slice(i,o),i=o},readStream=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},trackStream=(e,t,n,o)=>{const i=async function*(e,t){for await(const n of readStream(e))yield*streamChunk(n,t)}(e,t);let p,f=0,_onFinish=e=>{p||(p=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await i.next();if(t)return _onFinish(),void e.close();let p=o.byteLength;if(n){let e=f+=p;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw _onFinish(e),e}},cancel:e=>(_onFinish(e),i.return())},{highWaterMark:2})},{isFunction:Ye}=Ae,He=(({Request:e,Response:t})=>({Request:e,Response:t}))(Ae.global),{ReadableStream:$e,TextEncoder:Ve}=Ae.global,test=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},factory=e=>{e=Ae.merge.call({skipUndefined:!0},He,e);const{fetch:t,Request:n,Response:o}=e,i=t?Ye(t):"function"==typeof fetch,p=Ye(n),f=Ye(o);if(!i)return!1;const _=i&&Ye($e),h=i&&("function"==typeof Ve?(T=new Ve,e=>T.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var T;const O=p&&_&&test(()=>{let e=!1;const t=new n(Ue.origin,{body:new $e,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),D=f&&_&&test(()=>Ae.isReadableStream(new o("").body)),j={stream:D&&(e=>e.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!j[e]&&(j[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new Ie(`Response type '${e}' is not supported`,Ie.ERR_NOT_SUPPORT,n)})});const resolveBodyLength=async(e,t)=>{const o=Ae.toFiniteNumber(e.getContentLength());return null==o?(async e=>{if(null==e)return 0;if(Ae.isBlob(e))return e.size;if(Ae.isSpecCompliantForm(e)){const t=new n(Ue.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ae.isArrayBufferView(e)||Ae.isArrayBuffer(e)?e.byteLength:(Ae.isURLSearchParams(e)&&(e+=""),Ae.isString(e)?(await h(e)).byteLength:void 0)})(t):o};return async e=>{let{url:i,method:f,data:_,signal:h,cancelToken:T,timeout:$,onDownloadProgress:V,onUploadProgress:Q,responseType:ee,headers:te,withCredentials:re="same-origin",fetchOptions:ne}=resolveConfig(e),oe=t||fetch;ee=ee?(ee+"").toLowerCase():"text";let ie=composeSignals$1([h,T&&T.toAbortSignal()],$),ae=null;const se=ie&&ie.unsubscribe&&(()=>{ie.unsubscribe()});let ue;try{if(Q&&O&&"get"!==f&&"head"!==f&&0!==(ue=await resolveBodyLength(te,_))){let e,t=new n(i,{method:"POST",body:_,duplex:"half"});if(Ae.isFormData(_)&&(e=t.headers.get("content-type"))&&te.setContentType(e),t.body){const[e,n]=progressEventDecorator(ue,progressEventReducer(asyncDecorator(Q)));_=trackStream(t.body,65536,e,n)}}Ae.isString(re)||(re=re?"include":"omit");const t=p&&"credentials"in n.prototype,h={...ne,signal:ie,method:f.toUpperCase(),headers:te.normalize().toJSON(),body:_,duplex:"half",credentials:t?re:void 0};ae=p&&new n(i,h);let T=await(p?oe(ae,ne):oe(i,h));const $=D&&("stream"===ee||"response"===ee);if(D&&(V||$&&se)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=T[t]});const t=Ae.toFiniteNumber(T.headers.get("content-length")),[n,i]=V&&progressEventDecorator(t,progressEventReducer(asyncDecorator(V),!0))||[];T=new o(trackStream(T.body,65536,n,()=>{i&&i(),se&&se()}),e)}ee=ee||"text";let ce=await j[Ae.findKey(j,ee)||"text"](T,e);return!$&&se&&se(),await new Promise((t,n)=>{settle(t,n,{data:ce,headers:xe.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:ae})})}catch(t){if(se&&se(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Ie("Network Error",Ie.ERR_NETWORK,e,ae,t&&t.response),{cause:t.cause||t});throw Ie.from(t,t&&t.code,e,ae,t&&t.response)}}},Ke=new Map,getFetch=e=>{let t=e&&e.env||{};const{fetch:n,Request:o,Response:i}=t,p=[o,i,n];let f,_,h=p.length,T=Ke;for(;h--;)f=p[h],_=T.get(f),void 0===_&&T.set(f,_=h?new Map:factory(t)),T=_;return _};getFetch();const We={http:null,xhr:je,fetch:{get:getFetch}};Ae.forEach(We,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const renderReason=e=>`- ${e}`,isResolvedHandle=e=>Ae.isFunction(e)||null===e||!1===e;var Xe={getAdapter:function getAdapter(e,t){e=Ae.isArray(e)?e:[e];const{length:n}=e;let o,i;const p={};for(let f=0;f<n;f++){let n;if(o=e[f],i=o,!isResolvedHandle(o)&&(i=We[(n=String(o)).toLowerCase()],void 0===i))throw new Ie(`Unknown adapter '${n}'`);if(i&&(Ae.isFunction(i)||(i=i.get(t))))break;p[n||"#"+f]=i}if(!i){const e=Object.entries(p).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified";throw new Ie("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return i},adapters:We};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ke(null,e)}function dispatchRequest(e){throwIfCancellationRequested(e),e.headers=xe.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Xe.getAdapter(e.adapter||Be.adapter,e)(e).then(function onAdapterResolution(t){return throwIfCancellationRequested(e),t.data=transformData.call(e,e.transformResponse,t),t.headers=xe.from(t.headers),t},function onAdapterRejection(t){return isCancel(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=transformData.call(e,e.transformResponse,t.response),t.response.headers=xe.from(t.response.headers))),Promise.reject(t)})}const ze="1.13.5",Je={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Je[e]=function validator(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Qe={};Je.transitional=function transitional(e,t,n){function formatMessage(e,t){return"[Axios v"+ze+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Ie(formatMessage(o," has been removed"+(t?" in "+t:"")),Ie.ERR_DEPRECATED);return t&&!Qe[o]&&(Qe[o]=!0,console.warn(formatMessage(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},Je.spelling=function spelling(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var Ze={assertOptions:function assertOptions(e,t,n){if("object"!=typeof e)throw new Ie("options must be an object",Ie.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let i=o.length;for(;i-- >0;){const p=o[i],f=t[p];if(f){const t=e[p],n=void 0===t||f(t,p,e);if(!0!==n)throw new Ie("option "+p+" must be "+n,Ie.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Ie("Unknown option "+p,Ie.ERR_BAD_OPTION)}},validators:Je};const dt=Ze.validators;class Axios{constructor(e){this.defaults=e||{},this.interceptors={request:new Oe,response:new Oe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:i}=t;void 0!==n&&Ze.assertOptions(n,{silentJSONParsing:dt.transitional(dt.boolean),forcedJSONParsing:dt.transitional(dt.boolean),clarifyTimeoutError:dt.transitional(dt.boolean),legacyInterceptorReqResOrdering:dt.transitional(dt.boolean)},!1),null!=o&&(Ae.isFunction(o)?t.paramsSerializer={serialize:o}:Ze.assertOptions(o,{encode:dt.function,serialize:dt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Ze.assertOptions(t,{baseUrl:dt.spelling("baseURL"),withXsrfToken:dt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let p=i&&Ae.merge(i.common,i[t.method]);i&&Ae.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=xe.concat(p,i);const f=[];let _=!0;this.interceptors.request.forEach(function unshiftRequestInterceptors(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;_=_&&e.synchronous;const n=t.transitional||Ce;n&&n.legacyInterceptorReqResOrdering?f.unshift(e.fulfilled,e.rejected):f.push(e.fulfilled,e.rejected)});const h=[];let T;this.interceptors.response.forEach(function pushResponseInterceptors(e){h.push(e.fulfilled,e.rejected)});let O,D=0;if(!_){const e=[dispatchRequest.bind(this),void 0];for(e.unshift(...f),e.push(...h),O=e.length,T=Promise.resolve(t);D<O;)T=T.then(e[D++],e[D++]);return T}O=f.length;let j=t;for(;D<O;){const e=f[D++],t=f[D++];try{j=e(j)}catch(e){t.call(this,e);break}}try{T=dispatchRequest.call(this,j)}catch(e){return Promise.reject(e)}for(D=0,O=h.length;D<O;)T=T.then(h[D++],h[D++]);return T}getUri(e){return buildURL(buildFullPath((e=mergeConfig(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Ae.forEach(["delete","get","head","options"],function forEachMethodNoData(e){Axios.prototype[e]=function(t,n){return this.request(mergeConfig(n||{},{method:e,url:t,data:(n||{}).data}))}}),Ae.forEach(["post","put","patch"],function forEachMethodWithData(e){function generateHTTPMethod(t){return function httpMethod(n,o,i){return this.request(mergeConfig(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}Axios.prototype[e]=generateHTTPMethod(),Axios.prototype[e+"Form"]=generateHTTPMethod(!0)});var Et=Axios;class CancelToken{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function promiseExecutor(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const o=new Promise(e=>{n.subscribe(e),t=e}).then(e);return o.cancel=function reject(){n.unsubscribe(t)},o},e(function cancel(e,o,i){n.reason||(n.reason=new ke(e,o,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,abort=t=>{e.abort(t)};return this.subscribe(abort),e.signal.unsubscribe=()=>this.unsubscribe(abort),e.signal}static source(){let e;return{token:new CancelToken(function executor(t){e=t}),cancel:e}}}var _t=CancelToken;const gt={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gt).forEach(([e,t])=>{gt[t]=e});var mt=gt;const yt=function createInstance(e){const t=new Et(e),n=bind(Et.prototype.request,t);return Ae.extend(n,Et.prototype,t,{allOwnKeys:!0}),Ae.extend(n,t,null,{allOwnKeys:!0}),n.create=function create(t){return createInstance(mergeConfig(e,t))},n}(Be);return yt.Axios=Et,yt.CanceledError=ke,yt.CancelToken=_t,yt.isCancel=isCancel,yt.VERSION=ze,yt.toFormData=toFormData,yt.AxiosError=Ie,yt.Cancel=yt.CanceledError,yt.all=function all(e){return Promise.all(e)},yt.spread=function spread(e){return function wrap(t){return e.apply(null,t)}},yt.isAxiosError=function isAxiosError(e){return Ae.isObject(e)&&!0===e.isAxiosError},yt.mergeConfig=mergeConfig,yt.AxiosHeaders=xe,yt.formToJSON=e=>formDataToJSON(Ae.isHTMLForm(e)?new FormData(e):e),yt.getAdapter=Xe.getAdapter,yt.HttpStatusCode=mt,yt.default=yt,t=yt}var T,O,D,j,$,V,Q,ee={exports:{}};function requireMs(){if(O)return T;O=1;var e=1e3,t=60*e,n=60*t,o=24*n,i=7*o,p=365.25*o;function plural(e,t,n,o){var i=t>=1.5*n;return Math.round(e/n)+" "+o+(i?"s":"")}return T=function(f,_){_=_||{};var h=typeof f;if("string"===h&&f.length>0)return function parse(f){if((f=String(f)).length>100)return;var _=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(!_)return;var h=parseFloat(_[1]);switch((_[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return h*p;case"weeks":case"week":case"w":return h*i;case"days":case"day":case"d":return h*o;case"hours":case"hour":case"hrs":case"hr":case"h":return h*n;case"minutes":case"minute":case"mins":case"min":case"m":return h*t;case"seconds":case"second":case"secs":case"sec":case"s":return h*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}(f);if("number"===h&&isFinite(f))return _.long?function fmtLong(i){var p=Math.abs(i);if(p>=o)return plural(i,p,o,"day");if(p>=n)return plural(i,p,n,"hour");if(p>=t)return plural(i,p,t,"minute");if(p>=e)return plural(i,p,e,"second");return i+" ms"}(f):function fmtShort(i){var p=Math.abs(i);if(p>=o)return Math.round(i/o)+"d";if(p>=n)return Math.round(i/n)+"h";if(p>=t)return Math.round(i/t)+"m";if(p>=e)return Math.round(i/e)+"s";return i+"ms"}(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))},T}function requireBrowser(){return $||($=1,function(e,t){t.formatArgs=function formatArgs(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let o=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(o++,"%c"===e&&(i=o))}),t.splice(i,0,n)},t.save=function save(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function load(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function useColors(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function localstorage(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=function requireCommon$1(){return j||(j=1,D=function setup(e){function createDebug(e){let t,n,o,i=null;function debug(...e){if(!debug.enabled)return;const n=debug,o=Number(new Date),i=o-(t||o);n.diff=i,n.prev=t,n.curr=o,t=o,e[0]=createDebug.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let p=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,o)=>{if("%%"===t)return"%";p++;const i=createDebug.formatters[o];if("function"==typeof i){const o=e[p];t=i.call(n,o),e.splice(p,1),p--}return t}),createDebug.formatArgs.call(n,e),(n.log||createDebug.log).apply(n,e)}return debug.namespace=e,debug.useColors=createDebug.useColors(),debug.color=createDebug.selectColor(e),debug.extend=extend,debug.destroy=createDebug.destroy,Object.defineProperty(debug,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(n!==createDebug.namespaces&&(n=createDebug.namespaces,o=createDebug.enabled(e)),o),set:e=>{i=e}}),"function"==typeof createDebug.init&&createDebug.init(debug),debug}function extend(e,t){const n=createDebug(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function matchesTemplate(e,t){let n=0,o=0,i=-1,p=0;for(;n<e.length;)if(o<t.length&&(t[o]===e[n]||"*"===t[o]))"*"===t[o]?(i=o,p=n,o++):(n++,o++);else{if(-1===i)return!1;o=i+1,p++,n=p}for(;o<t.length&&"*"===t[o];)o++;return o===t.length}return createDebug.debug=createDebug,createDebug.default=createDebug,createDebug.coerce=function coerce(e){return e instanceof Error?e.stack||e.message:e},createDebug.disable=function disable(){const e=[...createDebug.names,...createDebug.skips.map(e=>"-"+e)].join(",");return createDebug.enable(""),e},createDebug.enable=function enable(e){createDebug.save(e),createDebug.namespaces=e,createDebug.names=[],createDebug.skips=[];const t=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of t)"-"===e[0]?createDebug.skips.push(e.slice(1)):createDebug.names.push(e)},createDebug.enabled=function enabled(e){for(const t of createDebug.skips)if(matchesTemplate(e,t))return!1;for(const t of createDebug.names)if(matchesTemplate(e,t))return!0;return!1},createDebug.humanize=requireMs(),createDebug.destroy=function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(t=>{createDebug[t]=e[t]}),createDebug.names=[],createDebug.skips=[],createDebug.formatters={},createDebug.selectColor=function selectColor(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return createDebug.colors[Math.abs(t)%createDebug.colors.length]},createDebug.enable(createDebug.load()),createDebug}),D}()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(ee,ee.exports)),ee.exports}function requireType(){return Q?V:(Q=1,V=TypeError)}var te,re,ne,oe,ie,ae,se,ue,ce,le,de,pe,fe,Ee,_e,he,ge,me,ye,Re,Ae,Ie,Te,Se,Oe,Ce,be,Ne,Pe,ve,Me,De,Ue,Le,Be,Fe,we,xe,ke,Ge,qe,je,Ye,He,$e,Ve,Ke,We,Xe,ze,Je,Qe,Ze,dt,Et,_t,gt,mt,yt,Rt,At,It,Tt,St,Ot,Ct,bt,Nt,Pt,vt,Mt,Dt,Ut,Lt,Bt,Ft,wt,xt,kt,Gt,qt,jt,Yt,Ht,$t,Vt,Kt,Wt,Xt,zt,Jt=getAugmentedNamespace(Object.freeze({__proto__:null,default:{}}));function requireObjectInspect(){if(re)return te;re=1;var t="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=t&&n&&"function"==typeof n.get?n.get:null,i=t&&Map.prototype.forEach,p="function"==typeof Set&&Set.prototype,f=Object.getOwnPropertyDescriptor&&p?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,_=p&&f&&"function"==typeof f.get?f.get:null,h=p&&Set.prototype.forEach,T="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,O="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,D="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,j=Boolean.prototype.valueOf,$=Object.prototype.toString,V=Function.prototype.toString,Q=String.prototype.match,ee=String.prototype.slice,ne=String.prototype.replace,oe=String.prototype.toUpperCase,ie=String.prototype.toLowerCase,ae=RegExp.prototype.test,se=Array.prototype.concat,ue=Array.prototype.join,ce=Array.prototype.slice,le=Math.floor,de="function"==typeof BigInt?BigInt.prototype.valueOf:null,pe=Object.getOwnPropertySymbols,fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Ee="function"==typeof Symbol&&"object"==typeof Symbol.iterator,_e="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ee||"symbol")?Symbol.toStringTag:null,he=Object.prototype.propertyIsEnumerable,ge=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function addNumericSeparator(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||ae.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-le(-e):le(e);if(o!==e){var i=String(o),p=ee.call(t,i.length+1);return ne.call(i,n,"$&_")+"."+ne.call(ne.call(p,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ne.call(t,n,"$&_")}var me=Jt,ye=me.custom,Re=isSymbol(ye)?ye:null,Ae={__proto__:null,double:'"',single:"'"},Ie={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function wrapQuotes(e,t,n){var o=n.quoteStyle||t,i=Ae[o];return i+e+i}function quote(e){return ne.call(String(e),/"/g,"&quot;")}function canTrustToString(e){return!_e||!("object"==typeof e&&(_e in e||void 0!==e[_e]))}function isArray(e){return"[object Array]"===toStr(e)&&canTrustToString(e)}function isRegExp(e){return"[object RegExp]"===toStr(e)&&canTrustToString(e)}function isSymbol(e){if(Ee)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!fe)return!1;try{return fe.call(e),!0}catch(e){}return!1}te=function inspect_(t,n,p,f){var $=n||{};if(has($,"quoteStyle")&&!has(Ae,$.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has($,"maxStringLength")&&("number"==typeof $.maxStringLength?$.maxStringLength<0&&$.maxStringLength!==1/0:null!==$.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var te=!has($,"customInspect")||$.customInspect;if("boolean"!=typeof te&&"symbol"!==te)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has($,"indent")&&null!==$.indent&&"\t"!==$.indent&&!(parseInt($.indent,10)===$.indent&&$.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has($,"numericSeparator")&&"boolean"!=typeof $.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var re=$.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return inspectString(t,$);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var oe=String(t);return re?addNumericSeparator(t,oe):oe}if("bigint"==typeof t){var ae=String(t)+"n";return re?addNumericSeparator(t,ae):ae}var le=void 0===$.depth?5:$.depth;if(void 0===p&&(p=0),p>=le&&le>0&&"object"==typeof t)return isArray(t)?"[Array]":"[Object]";var pe=function getIndent(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=ue.call(Array(e.indent+1)," ")}return{base:n,prev:ue.call(Array(t+1),n)}}($,p);if(void 0===f)f=[];else if(indexOf(f,t)>=0)return"[Circular]";function inspect(e,t,n){if(t&&(f=ce.call(f)).push(t),n){var o={depth:$.depth};return has($,"quoteStyle")&&(o.quoteStyle=$.quoteStyle),inspect_(e,o,p+1,f)}return inspect_(e,$,p+1,f)}if("function"==typeof t&&!isRegExp(t)){var ye=function nameOf(e){if(e.name)return e.name;var t=Q.call(V.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),Ie=arrObjKeys(t,inspect);return"[Function"+(ye?": "+ye:" (anonymous)")+"]"+(Ie.length>0?" { "+ue.call(Ie,", ")+" }":"")}if(isSymbol(t)){var Te=Ee?ne.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):fe.call(t);return"object"!=typeof t||Ee?Te:markBoxed(Te)}if(function isElement(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var Se="<"+ie.call(String(t.nodeName)),Oe=t.attributes||[],Ce=0;Ce<Oe.length;Ce++)Se+=" "+Oe[Ce].name+"="+wrapQuotes(quote(Oe[Ce].value),"double",$);return Se+=">",t.childNodes&&t.childNodes.length&&(Se+="..."),Se+="</"+ie.call(String(t.nodeName))+">"}if(isArray(t)){if(0===t.length)return"[]";var be=arrObjKeys(t,inspect);return pe&&!function singleLineValues(e){for(var t=0;t<e.length;t++)if(indexOf(e[t],"\n")>=0)return!1;return!0}(be)?"["+indentedJoin(be,pe)+"]":"[ "+ue.call(be,", ")+" ]"}if(function isError(e){return"[object Error]"===toStr(e)&&canTrustToString(e)}(t)){var Ne=arrObjKeys(t,inspect);return"cause"in Error.prototype||!("cause"in t)||he.call(t,"cause")?0===Ne.length?"["+String(t)+"]":"{ ["+String(t)+"] "+ue.call(Ne,", ")+" }":"{ ["+String(t)+"] "+ue.call(se.call("[cause]: "+inspect(t.cause),Ne),", ")+" }"}if("object"==typeof t&&te){if(Re&&"function"==typeof t[Re]&&me)return me(t,{depth:le-p});if("symbol"!==te&&"function"==typeof t.inspect)return t.inspect()}if(function isMap(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{_.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var Pe=[];return i&&i.call(t,function(e,n){Pe.push(inspect(n,t,!0)+" => "+inspect(e,t))}),collectionOf("Map",o.call(t),Pe,pe)}if(function isSet(e){if(!_||!e||"object"!=typeof e)return!1;try{_.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ve=[];return h&&h.call(t,function(e){ve.push(inspect(e,t))}),collectionOf("Set",_.call(t),ve,pe)}if(function isWeakMap(e){if(!T||!e||"object"!=typeof e)return!1;try{T.call(e,T);try{O.call(e,O)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return weakCollectionOf("WeakMap");if(function isWeakSet(e){if(!O||!e||"object"!=typeof e)return!1;try{O.call(e,O);try{T.call(e,T)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return weakCollectionOf("WeakSet");if(function isWeakRef(e){if(!D||!e||"object"!=typeof e)return!1;try{return D.call(e),!0}catch(e){}return!1}(t))return weakCollectionOf("WeakRef");if(function isNumber(e){return"[object Number]"===toStr(e)&&canTrustToString(e)}(t))return markBoxed(inspect(Number(t)));if(function isBigInt(e){if(!e||"object"!=typeof e||!de)return!1;try{return de.call(e),!0}catch(e){}return!1}(t))return markBoxed(inspect(de.call(t)));if(function isBoolean(e){return"[object Boolean]"===toStr(e)&&canTrustToString(e)}(t))return markBoxed(j.call(t));if(function isString(e){return"[object String]"===toStr(e)&&canTrustToString(e)}(t))return markBoxed(inspect(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==e&&t===e)return"{ [object globalThis] }";if(!function isDate(e){return"[object Date]"===toStr(e)&&canTrustToString(e)}(t)&&!isRegExp(t)){var Me=arrObjKeys(t,inspect),De=ge?ge(t)===Object.prototype:t instanceof Object||t.constructor===Object,Ue=t instanceof Object?"":"null prototype",Le=!De&&_e&&Object(t)===t&&_e in t?ee.call(toStr(t),8,-1):Ue?"Object":"",Be=(De||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(Le||Ue?"["+ue.call(se.call([],Le||[],Ue||[]),": ")+"] ":"");return 0===Me.length?Be+"{}":pe?Be+"{"+indentedJoin(Me,pe)+"}":Be+"{ "+ue.call(Me,", ")+" }"}return String(t)};var Te=Object.prototype.hasOwnProperty||function(e){return e in this};function has(e,t){return Te.call(e,t)}function toStr(e){return $.call(e)}function indexOf(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function inspectString(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return inspectString(ee.call(e,0,t.maxStringLength),t)+o}var i=Ie[t.quoteStyle||"single"];return i.lastIndex=0,wrapQuotes(ne.call(ne.call(e,i,"\\$1"),/[\x00-\x1f]/g,lowbyte),"single",t)}function lowbyte(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+oe.call(t.toString(16))}function markBoxed(e){return"Object("+e+")"}function weakCollectionOf(e){return e+" { ? }"}function collectionOf(e,t,n,o){return e+" ("+t+") {"+(o?indentedJoin(n,o):ue.call(n,", "))+"}"}function indentedJoin(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+ue.call(e,","+n)+"\n"+t.prev}function arrObjKeys(e,t){var n=isArray(e),o=[];if(n){o.length=e.length;for(var i=0;i<e.length;i++)o[i]=has(e,i)?t(e[i],e):""}var p,f="function"==typeof pe?pe(e):[];if(Ee){p={};for(var _=0;_<f.length;_++)p["$"+f[_]]=f[_]}for(var h in e)has(e,h)&&(n&&String(Number(h))===h&&h<e.length||Ee&&p["$"+h]instanceof Symbol||(ae.call(/[^\w$]/,h)?o.push(t(h,e)+": "+t(e[h],e)):o.push(h+": "+t(e[h],e))));if("function"==typeof pe)for(var T=0;T<f.length;T++)he.call(e,f[T])&&o.push("["+t(f[T])+"]: "+t(e[f[T]],e));return o}return te}function requireSideChannelList(){if(oe)return ne;oe=1;var e=requireObjectInspect(),t=requireType(),listGetNode=function(e,t,n){for(var o,i=e;null!=(o=i.next);i=o)if(o.key===t)return i.next=o.next,n||(o.next=e.next,e.next=o),o};return ne=function getSideChannelList(){var n,o={assert:function(n){if(!o.has(n))throw new t("Side channel does not contain "+e(n))},delete:function(e){var t=n&&n.next,o=function(e,t){if(e)return listGetNode(e,t,!0)}(n,e);return o&&t&&t===o&&(n=void 0),!!o},get:function(e){return function(e,t){if(e){var n=listGetNode(e,t);return n&&n.value}}(n,e)},has:function(e){return function(e,t){return!!e&&!!listGetNode(e,t)}(n,e)},set:function(e,t){n||(n={next:void 0}),function(e,t,n){var o=listGetNode(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(n,e,t)}};return o}}function requireEsObjectAtoms(){return ae?ie:(ae=1,ie=Object)}function requireEsErrors(){return ue?se:(ue=1,se=Error)}function require_eval(){return le?ce:(le=1,ce=EvalError)}function requireRange(){return pe?de:(pe=1,de=RangeError)}function requireRef(){return Ee?fe:(Ee=1,fe=ReferenceError)}function requireSyntax(){return he?_e:(he=1,_e=SyntaxError)}function requireUri(){return me?ge:(me=1,ge=URIError)}function requireAbs(){return Re?ye:(Re=1,ye=Math.abs)}function requireFloor(){return Ie?Ae:(Ie=1,Ae=Math.floor)}function requireMax(){return Se?Te:(Se=1,Te=Math.max)}function requireMin(){return Ce?Oe:(Ce=1,Oe=Math.min)}function requirePow(){return Ne?be:(Ne=1,be=Math.pow)}function requireRound(){return ve?Pe:(ve=1,Pe=Math.round)}function require_isNaN(){return De?Me:(De=1,Me=Number.isNaN||function isNaN(e){return e!=e})}function requireSign(){if(Le)return Ue;Le=1;var e=require_isNaN();return Ue=function sign(t){return e(t)||0===t?t:t<0?-1:1}}function requireGOPD(){return Fe?Be:(Fe=1,Be=Object.getOwnPropertyDescriptor)}function requireGopd(){if(xe)return we;xe=1;var e=requireGOPD();if(e)try{e([],"length")}catch(t){e=null}return we=e}function requireEsDefineProperty(){if(Ge)return ke;Ge=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}return ke=e}function requireHasSymbols(){if(He)return Ye;He=1;var e="undefined"!=typeof Symbol&&Symbol,t=function requireShams(){return je?qe:(je=1,qe=function hasSymbols(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var o in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var p=Object.getOwnPropertyDescriptor(e,t);if(42!==p.value||!0!==p.enumerable)return!1}return!0})}();return Ye=function hasNativeSymbols(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}function requireReflect_getPrototypeOf(){return Ve?$e:(Ve=1,$e="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function requireObject_getPrototypeOf(){return We?Ke:(We=1,Ke=requireEsObjectAtoms().getPrototypeOf||null)}function requireImplementation(){if(ze)return Xe;ze=1;var e=Object.prototype.toString,t=Math.max,n=function concatty(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};return Xe=function bind(o){var i=this;if("function"!=typeof i||"[object Function]"!==e.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var p,f=function slicy(e,t){for(var n=[],o=t,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n}(arguments,1),_=t(0,i.length-f.length),h=[],T=0;T<_;T++)h[T]="$"+T;if(p=Function("binder","return function ("+function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=t);return n}(h,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof p){var e=i.apply(this,n(f,arguments));return Object(e)===e?e:this}return i.apply(o,n(f,arguments))}),i.prototype){var O=function Empty(){};O.prototype=i.prototype,p.prototype=new O,O.prototype=null}return p},Xe}function requireFunctionBind(){if(Qe)return Je;Qe=1;var e=requireImplementation();return Je=Function.prototype.bind||e}function requireFunctionCall(){return dt?Ze:(dt=1,Ze=Function.prototype.call)}function requireFunctionApply(){return _t?Et:(_t=1,Et=Function.prototype.apply)}function requireActualApply(){if(Rt)return yt;Rt=1;var e=requireFunctionBind(),t=requireFunctionApply(),n=requireFunctionCall(),o=function requireReflectApply(){return mt?gt:(mt=1,gt="undefined"!=typeof Reflect&&Reflect&&Reflect.apply)}();return yt=o||e.call(n,t)}function requireCallBindApplyHelpers(){if(It)return At;It=1;var e=requireFunctionBind(),t=requireType(),n=requireFunctionCall(),o=requireActualApply();return At=function callBindBasic(i){if(i.length<1||"function"!=typeof i[0])throw new t("a function is required");return o(e,n,i)}}function requireGet(){if(St)return Tt;St=1;var e,t=requireCallBindApplyHelpers(),n=requireGopd();try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!e&&n&&n(Object.prototype,"__proto__"),i=Object,p=i.getPrototypeOf;return Tt=o&&"function"==typeof o.get?t([o.get]):"function"==typeof p&&function getDunder(e){return p(null==e?e:i(e))}}function requireGetProto(){if(Ct)return Ot;Ct=1;var e=requireReflect_getPrototypeOf(),t=requireObject_getPrototypeOf(),n=requireGet();return Ot=e?function getProto(t){return e(t)}:t?function getProto(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function getProto(e){return n(e)}:null}function requireHasown(){if(Nt)return bt;Nt=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=requireFunctionBind();return bt=n.call(e,t)}function requireGetIntrinsic(){if(vt)return Pt;var e;vt=1;var t=requireEsObjectAtoms(),n=requireEsErrors(),o=require_eval(),i=requireRange(),p=requireRef(),f=requireSyntax(),_=requireType(),h=requireUri(),T=requireAbs(),O=requireFloor(),D=requireMax(),j=requireMin(),$=requirePow(),V=requireRound(),Q=requireSign(),ee=Function,getEvalledConstructor=function(e){try{return ee('"use strict"; return ('+e+").constructor;")()}catch(e){}},te=requireGopd(),re=requireEsDefineProperty(),throwTypeError=function(){throw new _},ne=te?function(){try{return throwTypeError}catch(e){try{return te(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError,oe=requireHasSymbols()(),ie=requireGetProto(),ae=requireObject_getPrototypeOf(),se=requireReflect_getPrototypeOf(),ue=requireFunctionApply(),ce=requireFunctionCall(),le={},de="undefined"!=typeof Uint8Array&&ie?ie(Uint8Array):e,pe={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?e:ArrayBuffer,"%ArrayIteratorPrototype%":oe&&ie?ie([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":le,"%AsyncGenerator%":le,"%AsyncGeneratorFunction%":le,"%AsyncIteratorPrototype%":le,"%Atomics%":"undefined"==typeof Atomics?e:Atomics,"%BigInt%":"undefined"==typeof BigInt?e:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?e:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"undefined"==typeof Float16Array?e:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?e:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?e:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?e:FinalizationRegistry,"%Function%":ee,"%GeneratorFunction%":le,"%Int8Array%":"undefined"==typeof Int8Array?e:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?e:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":oe&&ie?ie(ie([][Symbol.iterator]())):e,"%JSON%":"object"==typeof JSON?JSON:e,"%Map%":"undefined"==typeof Map?e:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&oe&&ie?ie((new Map)[Symbol.iterator]()):e,"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":te,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?e:Promise,"%Proxy%":"undefined"==typeof Proxy?e:Proxy,"%RangeError%":i,"%ReferenceError%":p,"%Reflect%":"undefined"==typeof Reflect?e:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?e:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&oe&&ie?ie((new Set)[Symbol.iterator]()):e,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":oe&&ie?ie(""[Symbol.iterator]()):e,"%Symbol%":oe?Symbol:e,"%SyntaxError%":f,"%ThrowTypeError%":ne,"%TypedArray%":de,"%TypeError%":_,"%Uint8Array%":"undefined"==typeof Uint8Array?e:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?e:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?e:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?e:Uint32Array,"%URIError%":h,"%WeakMap%":"undefined"==typeof WeakMap?e:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?e:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?e:WeakSet,"%Function.prototype.call%":ce,"%Function.prototype.apply%":ue,"%Object.defineProperty%":re,"%Object.getPrototypeOf%":ae,"%Math.abs%":T,"%Math.floor%":O,"%Math.max%":D,"%Math.min%":j,"%Math.pow%":$,"%Math.round%":V,"%Math.sign%":Q,"%Reflect.getPrototypeOf%":se};if(ie)try{null.error}catch(e){var fe=ie(ie(e));pe["%Error.prototype%"]=fe}var Ee=function doEval(e){var t;if("%AsyncFunction%"===e)t=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===e)t=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===e)t=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===e){var n=doEval("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=doEval("%AsyncGenerator%");o&&ie&&(t=ie(o.prototype))}return pe[e]=t,t},_e={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},he=requireFunctionBind(),ge=requireHasown(),me=he.call(ce,Array.prototype.concat),ye=he.call(ue,Array.prototype.splice),Re=he.call(ce,String.prototype.replace),Ae=he.call(ce,String.prototype.slice),Ie=he.call(ce,RegExp.prototype.exec),Te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Se=/\\(\\)?/g,Oe=function getBaseIntrinsic(e,t){var n,o=e;if(ge(_e,o)&&(o="%"+(n=_e[o])[0]+"%"),ge(pe,o)){var i=pe[o];if(i===le&&(i=Ee(o)),void 0===i&&!t)throw new _("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:i}}throw new f("intrinsic "+e+" does not exist!")};return Pt=function GetIntrinsic(e,t){if("string"!=typeof e||0===e.length)throw new _("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new _('"allowMissing" argument must be a boolean');if(null===Ie(/^%?[^%]*%?$/,e))throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function stringToPath(e){var t=Ae(e,0,1),n=Ae(e,-1);if("%"===t&&"%"!==n)throw new f("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new f("invalid intrinsic syntax, expected opening `%`");var o=[];return Re(e,Te,function(e,t,n,i){o[o.length]=n?Re(i,Se,"$1"):t||e}),o}(e),o=n.length>0?n[0]:"",i=Oe("%"+o+"%",t),p=i.name,h=i.value,T=!1,O=i.alias;O&&(o=O[0],ye(n,me([0,1],O)));for(var D=1,j=!0;D<n.length;D+=1){var $=n[D],V=Ae($,0,1),Q=Ae($,-1);if(('"'===V||"'"===V||"`"===V||'"'===Q||"'"===Q||"`"===Q)&&V!==Q)throw new f("property names with quotes must have matching quotes");if("constructor"!==$&&j||(T=!0),ge(pe,p="%"+(o+="."+$)+"%"))h=pe[p];else if(null!=h){if(!($ in h)){if(!t)throw new _("base intrinsic for "+e+" exists, but the property is not available.");return}if(te&&D+1>=n.length){var ee=te(h,$);h=(j=!!ee)&&"get"in ee&&!("originalValue"in ee.get)?ee.get:h[$]}else j=ge(h,$),h=h[$];j&&!T&&(pe[p]=h)}}return h},Pt}function requireCallBound(){if(Dt)return Mt;Dt=1;var e=requireGetIntrinsic(),t=requireCallBindApplyHelpers(),n=t([e("%String.prototype.indexOf%")]);return Mt=function callBoundIntrinsic(o,i){var p=e(o,!!i);return"function"==typeof p&&n(o,".prototype.")>-1?t([p]):p}}function requireSideChannelMap(){if(Lt)return Ut;Lt=1;var e=requireGetIntrinsic(),t=requireCallBound(),n=requireObjectInspect(),o=requireType(),i=e("%Map%",!0),p=t("Map.prototype.get",!0),f=t("Map.prototype.set",!0),_=t("Map.prototype.has",!0),h=t("Map.prototype.delete",!0),T=t("Map.prototype.size",!0);return Ut=!!i&&function getSideChannelMap(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+n(e))},delete:function(t){if(e){var n=h(e,t);return 0===T(e)&&(e=void 0),n}return!1},get:function(t){if(e)return p(e,t)},has:function(t){return!!e&&_(e,t)},set:function(t,n){e||(e=new i),f(e,t,n)}};return t}}function requireSideChannel(){if(xt)return wt;xt=1;var e=requireType(),t=requireObjectInspect(),n=requireSideChannelList(),o=requireSideChannelMap(),i=function requireSideChannelWeakmap(){if(Ft)return Bt;Ft=1;var e=requireGetIntrinsic(),t=requireCallBound(),n=requireObjectInspect(),o=requireSideChannelMap(),i=requireType(),p=e("%WeakMap%",!0),f=t("WeakMap.prototype.get",!0),_=t("WeakMap.prototype.set",!0),h=t("WeakMap.prototype.has",!0),T=t("WeakMap.prototype.delete",!0);return Bt=p?function getSideChannelWeakMap(){var e,t,O={assert:function(e){if(!O.has(e))throw new i("Side channel does not contain "+n(e))},delete:function(n){if(p&&n&&("object"==typeof n||"function"==typeof n)){if(e)return T(e,n)}else if(o&&t)return t.delete(n);return!1},get:function(n){return p&&n&&("object"==typeof n||"function"==typeof n)&&e?f(e,n):t&&t.get(n)},has:function(n){return p&&n&&("object"==typeof n||"function"==typeof n)&&e?h(e,n):!!t&&t.has(n)},set:function(n,i){p&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new p),_(e,n,i)):o&&(t||(t=o()),t.set(n,i))}};return O}:o}(),p=i||o||n;return wt=function getSideChannel(){var n,o={assert:function(n){if(!o.has(n))throw new e("Side channel does not contain "+t(n))},delete:function(e){return!!n&&n.delete(e)},get:function(e){return n&&n.get(e)},has:function(e){return!!n&&n.has(e)},set:function(e,t){n||(n=p()),n.set(e,t)}};return o}}function requireFormats(){if(Gt)return kt;Gt=1;var e=String.prototype.replace,t=/%20/g,n="RFC3986";return kt={default:n,formatters:{RFC1738:function(n){return e.call(n,t,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}}function requireUtils(){if(jt)return qt;jt=1;var e=requireFormats(),t=requireSideChannel(),n=Object.prototype.hasOwnProperty,o=Array.isArray,i=t(),p=function markOverflow(e,t){return i.set(e,t),e},f=function isOverflow(e){return i.has(e)},_=function getMaxIndex(e){return i.get(e)},h=function setMaxIndex(e,t){i.set(e,t)},T=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),O=function arrayToObject(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n},D=1024;return qt={arrayToObject:O,assign:function assignSingleSource(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function combine(e,t,n,o){if(f(e)){var i=_(e)+1;return e[i]=t,h(e,i),e}var T=[].concat(e,t);return T.length>n?p(O(T,{plainObjects:o}),T.length-1):T},compact:function compact(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],i=0;i<t.length;++i)for(var p=t[i],f=p.obj[p.prop],_=Object.keys(f),h=0;h<_.length;++h){var T=_[h],O=f[T];"object"==typeof O&&null!==O&&-1===n.indexOf(O)&&(t[t.length]={obj:f,prop:T},n[n.length]=O)}return function compactQueue(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var i=[],p=0;p<n.length;++p)void 0!==n[p]&&(i[i.length]=n[p]);t.obj[t.prop]=i}}}(t),e},decode:function(e,t,n){var o=e.replace(/\+/g," ");if("iso-8859-1"===n)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function encode(t,n,o,i,p){if(0===t.length)return t;var f=t;if("symbol"==typeof t?f=Symbol.prototype.toString.call(t):"string"!=typeof t&&(f=String(t)),"iso-8859-1"===o)return escape(f).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var _="",h=0;h<f.length;h+=D){for(var O=f.length>=D?f.slice(h,h+D):f,j=[],$=0;$<O.length;++$){var V=O.charCodeAt($);45===V||46===V||95===V||126===V||V>=48&&V<=57||V>=65&&V<=90||V>=97&&V<=122||p===e.RFC1738&&(40===V||41===V)?j[j.length]=O.charAt($):V<128?j[j.length]=T[V]:V<2048?j[j.length]=T[192|V>>6]+T[128|63&V]:V<55296||V>=57344?j[j.length]=T[224|V>>12]+T[128|V>>6&63]+T[128|63&V]:($+=1,V=65536+((1023&V)<<10|1023&O.charCodeAt($)),j[j.length]=T[240|V>>18]+T[128|V>>12&63]+T[128|V>>6&63]+T[128|63&V])}_+=j.join("")}return _},isBuffer:function isBuffer(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:f,isRegExp:function isRegExp(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:p,maybeMap:function maybeMap(e,t){if(o(e)){for(var n=[],i=0;i<e.length;i+=1)n[n.length]=t(e[i]);return n}return t(e)},merge:function merge(e,t,i){if(!t)return e;if("object"!=typeof t&&"function"!=typeof t){if(o(e)){var T=e.length;if(i&&"number"==typeof i.arrayLimit&&T>i.arrayLimit)return p(O(e.concat(t),i),T);e[T]=t}else{if(!e||"object"!=typeof e)return[e,t];if(f(e)){var D=_(e)+1;e[D]=t,h(e,D)}else{if(i&&i.strictMerge)return[e,t];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,t))&&(e[t]=!0)}}return e}if(!e||"object"!=typeof e){if(f(t)){for(var j=Object.keys(t),$=i&&i.plainObjects?{__proto__:null,0:e}:{0:e},V=0;V<j.length;V++){$[parseInt(j[V],10)+1]=t[j[V]]}return p($,_(t)+1)}var Q=[e].concat(t);return i&&"number"==typeof i.arrayLimit&&Q.length>i.arrayLimit?p(O(Q,i),Q.length-1):Q}var ee=e;return o(e)&&!o(t)&&(ee=O(e,i)),o(e)&&o(t)?(t.forEach(function(t,o){if(n.call(e,o)){var p=e[o];p&&"object"==typeof p&&t&&"object"==typeof t?e[o]=merge(p,t,i):e[e.length]=t}else e[o]=t}),e):Object.keys(t).reduce(function(e,o){var T=t[o];if(n.call(e,o)?e[o]=merge(e[o],T,i):e[o]=T,f(t)&&!f(e)&&p(e,_(t)),f(e)){var O=parseInt(o,10);String(O)===o&&O>=0&&O>_(e)&&h(e,O)}return e},ee)}},qt}function requireStringify(){if(Ht)return Yt;Ht=1;var e=requireSideChannel(),t=requireUtils(),n=requireFormats(),o=Object.prototype.hasOwnProperty,i={brackets:function brackets(e){return e+"[]"},comma:"comma",indices:function indices(e,t){return e+"["+t+"]"},repeat:function repeat(e){return e}},p=Array.isArray,f=Array.prototype.push,pushToArray=function(e,t){f.apply(e,p(t)?t:[t])},_=Date.prototype.toISOString,h=n.default,T={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:n.formatters[h],indices:!1,serializeDate:function serializeDate(e){return _.call(e)},skipNulls:!1,strictNullHandling:!1},O={},D=function stringify(n,o,i,f,_,h,D,j,$,V,Q,ee,te,re,ne,oe,ie,ae){for(var se=n,ue=ae,ce=0,le=!1;void 0!==(ue=ue.get(O))&&!le;){var de=ue.get(n);if(ce+=1,void 0!==de){if(de===ce)throw new RangeError("Cyclic object value");le=!0}void 0===ue.get(O)&&(ce=0)}if("function"==typeof V?se=V(o,se):se instanceof Date?se=te(se):"comma"===i&&p(se)&&(se=t.maybeMap(se,function(e){return e instanceof Date?te(e):e})),null===se){if(h)return $&&!oe?$(o,T.encoder,ie,"key",re):o;se=""}if(function isNonNullishPrimitive(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e}(se)||t.isBuffer(se))return $?[ne(oe?o:$(o,T.encoder,ie,"key",re))+"="+ne($(se,T.encoder,ie,"value",re))]:[ne(o)+"="+ne(String(se))];var pe,fe=[];if(void 0===se)return fe;if("comma"===i&&p(se))oe&&$&&(se=t.maybeMap(se,$)),pe=[{value:se.length>0?se.join(",")||null:void 0}];else if(p(V))pe=V;else{var Ee=Object.keys(se);pe=Q?Ee.sort(Q):Ee}var _e=j?String(o).replace(/\./g,"%2E"):String(o),he=f&&p(se)&&1===se.length?_e+"[]":_e;if(_&&p(se)&&0===se.length)return he+"[]";for(var ge=0;ge<pe.length;++ge){var me=pe[ge],ye="object"==typeof me&&me&&void 0!==me.value?me.value:se[me];if(!D||null!==ye){var Re=ee&&j?String(me).replace(/\./g,"%2E"):String(me),Ae=p(se)?"function"==typeof i?i(he,Re):he:he+(ee?"."+Re:"["+Re+"]");ae.set(n,ce);var Ie=e();Ie.set(O,ae),pushToArray(fe,stringify(ye,Ae,i,f,_,h,D,j,"comma"===i&&oe&&p(se)?null:$,V,Q,ee,te,re,ne,oe,ie,Ie))}}return fe};return Yt=function(t,f){var _,h=t,O=function normalizeStringifyOptions(e){if(!e)return T;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||T.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var f=n.default;if(void 0!==e.format){if(!o.call(n.formatters,e.format))throw new TypeError("Unknown format option provided.");f=e.format}var _,h=n.formatters[f],O=T.filter;if(("function"==typeof e.filter||p(e.filter))&&(O=e.filter),_=e.arrayFormat in i?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":T.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var D=void 0===e.allowDots?!0===e.encodeDotInKeys||T.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:T.addQueryPrefix,allowDots:D,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:T.allowEmptyArrays,arrayFormat:_,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:T.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?T.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:T.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:T.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:T.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:T.encodeValuesOnly,filter:O,format:f,formatter:h,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:T.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:T.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:T.strictNullHandling}}(f);"function"==typeof O.filter?h=(0,O.filter)("",h):p(O.filter)&&(_=O.filter);var j=[];if("object"!=typeof h||null===h)return"";var $=i[O.arrayFormat],V="comma"===$&&O.commaRoundTrip;_||(_=Object.keys(h)),O.sort&&_.sort(O.sort);for(var Q=e(),ee=0;ee<_.length;++ee){var te=_[ee],re=h[te];O.skipNulls&&null===re||pushToArray(j,D(re,te,$,V,O.allowEmptyArrays,O.strictNullHandling,O.skipNulls,O.encodeDotInKeys,O.encode?O.encoder:null,O.filter,O.sort,O.allowDots,O.serializeDate,O.format,O.formatter,O.encodeValuesOnly,O.charset,Q))}var ne=j.join(O.delimiter),oe=!0===O.addQueryPrefix?"?":"";return O.charsetSentinel&&("iso-8859-1"===O.charset?oe+="utf8=%26%2310003%3B&":oe+="utf8=%E2%9C%93&"),ne.length>0?oe+ne:""},Yt}function requireParse(){if(Vt)return $t;Vt=1;var e=requireUtils(),t=Object.prototype.hasOwnProperty,n=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},interpretNumericEntities=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},parseArrayValue=function(e,t,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},i=function parseQueryStringKeys(n,o,i,p){if(n){var f=function splitKeyIntoSegments(e,n){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(n.depth<=0){if(!n.plainObjects&&t.call(Object.prototype,o)&&!n.allowPrototypes)return;return[o]}var i=/(\[[^[\]]*])/g,p=/(\[[^[\]]*])/.exec(o),f=p?o.slice(0,p.index):o,_=[];if(f){if(!n.plainObjects&&t.call(Object.prototype,f)&&!n.allowPrototypes)return;_[_.length]=f}for(var h=0;null!==(p=i.exec(o))&&h<n.depth;){h+=1;var T=p[1].slice(1,-1);if(!n.plainObjects&&t.call(Object.prototype,T)&&!n.allowPrototypes)return;_[_.length]=p[1]}if(p){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");_[_.length]="["+o.slice(p.index)+"]"}return _}(n,i);if(f)return function(t,n,o,i){var p=0;if(t.length>0&&"[]"===t[t.length-1]){var f=t.slice(0,-1).join("");p=Array.isArray(n)&&n[f]?n[f].length:0}for(var _=i?n:parseArrayValue(n,o,p),h=t.length-1;h>=0;--h){var T,O=t[h];if("[]"===O&&o.parseArrays)T=e.isOverflow(_)?_:o.allowEmptyArrays&&(""===_||o.strictNullHandling&&null===_)?[]:e.combine([],_,o.arrayLimit,o.plainObjects);else{T=o.plainObjects?{__proto__:null}:{};var D="["===O.charAt(0)&&"]"===O.charAt(O.length-1)?O.slice(1,-1):O,j=o.decodeDotInKeys?D.replace(/%2E/g,"."):D,$=parseInt(j,10),V=!isNaN($)&&O!==j&&String($)===j&&$>=0&&o.parseArrays;if(o.parseArrays||""!==j)if(V&&$<o.arrayLimit)(T=[])[$]=_;else{if(V&&o.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");V?(T[$]=_,e.markOverflow(T,$)):"__proto__"!==j&&(T[j]=_)}else T={0:_}}_=T}return _}(f,o,i,p)}};return $t=function(p,f){var _=function normalizeParseOptions(t){if(!t)return o;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var n=void 0===t.charset?o.charset:t.charset,i=void 0===t.duplicates?o.duplicates:t.duplicates;if("combine"!==i&&"first"!==i&&"last"!==i)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||o.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:o.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:o.arrayLimit,charset:n,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:o.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:o.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:o.decoder,delimiter:"string"==typeof t.delimiter||e.isRegExp(t.delimiter)?t.delimiter:o.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:o.depth,duplicates:i,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:o.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:o.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:o.strictDepth,strictMerge:"boolean"==typeof t.strictMerge?!!t.strictMerge:o.strictMerge,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}}(f);if(""===p||null==p)return _.plainObjects?{__proto__:null}:{};for(var h="string"==typeof p?function parseQueryStringValues(i,p){var f={__proto__:null},_=p.ignoreQueryPrefix?i.replace(/^\?/,""):i;_=_.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var h=p.parameterLimit===1/0?void 0:p.parameterLimit,T=_.split(p.delimiter,p.throwOnLimitExceeded?h+1:h);if(p.throwOnLimitExceeded&&T.length>h)throw new RangeError("Parameter limit exceeded. Only "+h+" parameter"+(1===h?"":"s")+" allowed.");var O,D=-1,j=p.charset;if(p.charsetSentinel)for(O=0;O<T.length;++O)0===T[O].indexOf("utf8=")&&("utf8=%E2%9C%93"===T[O]?j="utf-8":"utf8=%26%2310003%3B"===T[O]&&(j="iso-8859-1"),D=O,O=T.length);for(O=0;O<T.length;++O)if(O!==D){var $,V,Q=T[O],ee=Q.indexOf("]="),te=-1===ee?Q.indexOf("="):ee+1;if(-1===te?($=p.decoder(Q,o.decoder,j,"key"),V=p.strictNullHandling?null:""):null!==($=p.decoder(Q.slice(0,te),o.decoder,j,"key"))&&(V=e.maybeMap(parseArrayValue(Q.slice(te+1),p,n(f[$])?f[$].length:0),function(e){return p.decoder(e,o.decoder,j,"value")})),V&&p.interpretNumericEntities&&"iso-8859-1"===j&&(V=interpretNumericEntities(String(V))),Q.indexOf("[]=")>-1&&(V=n(V)?[V]:V),p.comma&&n(V)&&V.length>p.arrayLimit){if(p.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+p.arrayLimit+" element"+(1===p.arrayLimit?"":"s")+" allowed in an array.");V=e.combine([],V,p.arrayLimit,p.plainObjects)}if(null!==$){var re=t.call(f,$);re&&("combine"===p.duplicates||Q.indexOf("[]=")>-1)?f[$]=e.combine(f[$],V,p.arrayLimit,p.plainObjects):re&&"last"!==p.duplicates||(f[$]=V)}}return f}(p,_):p,T=_.plainObjects?{__proto__:null}:{},O=Object.keys(h),D=0;D<O.length;++D){var j=O[D],$=i(j,h[j],_,"string"==typeof p);T=e.merge(T,$,_)}return!0===_.allowSparse?T:e.compact(T)}}function requireLib$1(){if(Wt)return Kt;Wt=1;var e=requireStringify(),t=requireParse();return Kt={formats:requireFormats(),parse:t,stringify:e}}function requireRequest(){return Xt||(Xt=1,function(e){var t=h&&h.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.AxiosRequest=e.defaultAxiosConfig=e.multipartHeader=e.defaultGlobalHeaders=void 0;const n=t(requireAxios()),o=t(requireBrowser()),i=requireLib$1(),p=(0,o.default)("ebay:request");e.defaultGlobalHeaders={"Access-Control-Allow-Origin":"*","Access-Control-Allow-Headers":"X-Requested-With, Origin, Content-Type, X-Auth-Token","Access-Control-Allow-Methods":"GET, PUT, POST, DELETE"},e.multipartHeader={"Content-Type":"multipart/form-data"},e.defaultAxiosConfig={paramsSerializer:{indexes:null}};e.AxiosRequest=class AxiosRequest{constructor(t={}){this.instance=n.default.create({headers:{...e.defaultGlobalHeaders},...e.defaultAxiosConfig,...t})}get(e,t){return p("get: "+e,t),this.instance.get(e,t)}post(e,t,n){return p("post: "+e,{payload:t,config:n}),this.instance.post(e,t,n)}delete(e,t){return p("delete: "+e,t),this.instance.delete(e,t)}put(e,t,n){return p("put: "+e,{payload:t,config:n}),this.instance.put(e,t,n)}postForm(e,t,n){p("postForm: "+e);const o=(0,i.stringify)(t);return this.instance.post(e,o,n)}}}(h)),h}function requireBase(){if(zt)return _;zt=1,Object.defineProperty(_,"__esModule",{value:!0});const e=requireRequest();return _.default=class Base{constructor(t,n=new e.AxiosRequest(t.axiosConfig)){this.config=t,this.req=n}},_}var Qt,Zt={},er={},tr={exports:{}};function requireFxp(){return Qt||(Qt=1,(()=>{var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{XMLBuilder:()=>te,XMLParser:()=>it,XMLValidator:()=>re});const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",o=new RegExp("^["+n+"]["+n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function s(e,t){const n=[];let o=t.exec(e);for(;o;){const i=[];i.startIndex=t.lastIndex-o[0].length;const p=o.length;for(let e=0;e<p;e++)i.push(o[e]);n.push(i),o=t.exec(e)}return n}const r=function(e){return!(null==o.exec(e))},i={allowBooleanAttributes:!1,unpairedTags:[]};function a(e,t){t=Object.assign({},i,t);const n=[];let o=!1,p=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let i=0;i<e.length;i++)if("<"===e[i]&&"?"===e[i+1]){if(i+=2,i=u(e,i),i.err)return i}else{if("<"!==e[i]){if(l(e[i]))continue;return m("InvalidChar","char '"+e[i]+"' is not expected.",N(e,i))}{let f=i;if(i++,"!"===e[i]){i=d(e,i);continue}{let _=!1;"/"===e[i]&&(_=!0,i++);let h="";for(;i<e.length&&">"!==e[i]&&" "!==e[i]&&"\t"!==e[i]&&"\n"!==e[i]&&"\r"!==e[i];i++)h+=e[i];if(h=h.trim(),"/"===h[h.length-1]&&(h=h.substring(0,h.length-1),i--),!b(h)){let t;return t=0===h.trim().length?"Invalid space after '<'.":"Tag '"+h+"' is an invalid name.",m("InvalidTag",t,N(e,i))}const T=c(e,i);if(!1===T)return m("InvalidAttr","Attributes for '"+h+"' have open quote.",N(e,i));let O=T.value;if(i=T.index,"/"===O[O.length-1]){const n=i-O.length;O=O.substring(0,O.length-1);const p=g(O,t);if(!0!==p)return m(p.err.code,p.err.msg,N(e,n+p.err.line));o=!0}else if(_){if(!T.tagClosed)return m("InvalidTag","Closing tag '"+h+"' doesn't have proper closing.",N(e,i));if(O.trim().length>0)return m("InvalidTag","Closing tag '"+h+"' can't have attributes or invalid starting.",N(e,f));if(0===n.length)return m("InvalidTag","Closing tag '"+h+"' has not been opened.",N(e,f));{const t=n.pop();if(h!==t.tagName){let n=N(e,t.tagStartPos);return m("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+h+"'.",N(e,f))}0==n.length&&(p=!0)}}else{const _=g(O,t);if(!0!==_)return m(_.err.code,_.err.msg,N(e,i-O.length+_.err.line));if(!0===p)return m("InvalidXml","Multiple possible root nodes found.",N(e,i));-1!==t.unpairedTags.indexOf(h)||n.push({tagName:h,tagStartPos:f}),o=!0}for(i++;i<e.length;i++)if("<"===e[i]){if("!"===e[i+1]){i++,i=d(e,i);continue}if("?"!==e[i+1])break;if(i=u(e,++i),i.err)return i}else if("&"===e[i]){const t=x(e,i);if(-1==t)return m("InvalidChar","char '&' is not expected.",N(e,i));i=t}else if(!0===p&&!l(e[i]))return m("InvalidXml","Extra text at the end",N(e,i));"<"===e[i]&&i--}}}return o?1==n.length?m("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",N(e,n[0].tagStartPos)):!(n.length>0)||m("InvalidXml","Invalid '"+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):m("InvalidXml","Start tag expected.",1)}function l(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function u(e,t){const n=t;for(;t<e.length;t++)if("?"==e[t]||" "==e[t]){const o=e.substr(n,t-n);if(t>5&&"xml"===o)return m("InvalidXml","XML declaration allowed only at the start of the document.",N(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}continue}return t}function d(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}const p='"',f="'";function c(e,t){let n="",o="",i=!1;for(;t<e.length;t++){if(e[t]===p||e[t]===f)""===o?o=e[t]:o!==e[t]||(o="");else if(">"===e[t]&&""===o){i=!0;break}n+=e[t]}return""===o&&{value:n,index:t,tagClosed:i}}const _=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function g(e,t){const n=s(e,_),o={};for(let e=0;e<n.length;e++){if(0===n[e][1].length)return m("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",y(n[e]));if(void 0!==n[e][3]&&void 0===n[e][4])return m("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",y(n[e]));if(void 0===n[e][3]&&!t.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",y(n[e]));const i=n[e][2];if(!E(i))return m("InvalidAttr","Attribute '"+i+"' is an invalid name.",y(n[e]));if(Object.prototype.hasOwnProperty.call(o,i))return m("InvalidAttr","Attribute '"+i+"' is repeated.",y(n[e]));o[i]=1}return!0}function x(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function m(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function E(e){return r(e)}function b(e){return r(e)}function N(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function y(e){return e.startIndex+e[1].length}const h={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0};function w(e){return"boolean"==typeof e?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,allowedTags:null,tagFilter:null}:"object"==typeof e&&null!==e?{enabled:!1!==e.enabled,maxEntitySize:e.maxEntitySize??1e4,maxExpansionDepth:e.maxExpansionDepth??10,maxTotalExpansions:e.maxTotalExpansions??1e3,maxExpandedLength:e.maxExpandedLength??1e5,allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null}:w(!0)}const v=function(e){const t=Object.assign({},h,e);return t.processEntities=w(t.processEntities),t};let T;T="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class I{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e,t){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),void 0!==t&&(this.child[this.child.length-1][T]={startIndex:t})}static getMetaDataSymbol(){return T}}class P{constructor(e){this.suppressValidationErr=!e,this.options=e}readDocType(e,t){const n=Object.create(null);if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let o=1,i=!1,p=!1,f="";for(;t<e.length;t++)if("<"!==e[t]||p)if(">"===e[t]){if(p?"-"===e[t-1]&&"-"===e[t-2]&&(p=!1,o--):o--,0===o)break}else"["===e[t]?i=!0:f+=e[t];else{if(i&&S(e,"!ENTITY",t)){let o,i;if(t+=7,[o,i,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),-1===i.indexOf("&")){const e=o.replace(/[.\-+*:]/g,"\\.");n[o]={regx:RegExp(`&${e};`,"g"),val:i}}}else if(i&&S(e,"!ELEMENT",t)){t+=8;const{index:n}=this.readElementExp(e,t+1);t=n}else if(i&&S(e,"!ATTLIST",t))t+=8;else if(i&&S(e,"!NOTATION",t)){t+=9;const{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else{if(!S(e,"!--",t))throw new Error("Invalid DOCTYPE");p=!0}o++,f=""}if(0!==o)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}readEntityExp(e,t){t=A(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t])&&'"'!==e[t]&&"'"!==e[t];)n+=e[t],t++;if(C(n),t=A(e,t),!this.suppressValidationErr){if("SYSTEM"===e.substring(t,t+6).toUpperCase())throw new Error("External entities are not supported");if("%"===e[t])throw new Error("Parameter entities are not supported")}let o="";if([t,o]=this.readIdentifierVal(e,t,"entity"),!1!==this.options.enabled&&this.options.maxEntitySize&&o.length>this.options.maxEntitySize)throw new Error(`Entity "${n}" size (${o.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[n,o,--t]}readNotationExp(e,t){t=A(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;!this.suppressValidationErr&&C(n),t=A(e,t);const o=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&"SYSTEM"!==o&&"PUBLIC"!==o)throw new Error(`Expected SYSTEM or PUBLIC, found "${o}"`);t+=o.length,t=A(e,t);let i=null,p=null;if("PUBLIC"===o)[t,i]=this.readIdentifierVal(e,t,"publicIdentifier"),'"'!==e[t=A(e,t)]&&"'"!==e[t]||([t,p]=this.readIdentifierVal(e,t,"systemIdentifier"));else if("SYSTEM"===o&&([t,p]=this.readIdentifierVal(e,t,"systemIdentifier"),!this.suppressValidationErr&&!p))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:n,publicIdentifier:i,systemIdentifier:p,index:--t}}readIdentifierVal(e,t,n){let o="";const i=e[t];if('"'!==i&&"'"!==i)throw new Error(`Expected quoted string, found "${i}"`);for(t++;t<e.length&&e[t]!==i;)o+=e[t],t++;if(e[t]!==i)throw new Error(`Unterminated ${n} value`);return[++t,o]}readElementExp(e,t){t=A(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;if(!this.suppressValidationErr&&!r(n))throw new Error(`Invalid element name: "${n}"`);let o="";if("E"===e[t=A(e,t)]&&S(e,"MPTY",t))t+=4;else if("A"===e[t]&&S(e,"NY",t))t+=2;else if("("===e[t]){for(t++;t<e.length&&")"!==e[t];)o+=e[t],t++;if(")"!==e[t])throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:n,contentModel:o.trim(),index:t}}readAttlistExp(e,t){t=A(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;C(n),t=A(e,t);let o="";for(;t<e.length&&!/\s/.test(e[t]);)o+=e[t],t++;if(!C(o))throw new Error(`Invalid attribute name: "${o}"`);t=A(e,t);let i="";if("NOTATION"===e.substring(t,t+8).toUpperCase()){if(i="NOTATION","("!==e[t=A(e,t+=8)])throw new Error(`Expected '(', found "${e[t]}"`);t++;let n=[];for(;t<e.length&&")"!==e[t];){let o="";for(;t<e.length&&"|"!==e[t]&&")"!==e[t];)o+=e[t],t++;if(o=o.trim(),!C(o))throw new Error(`Invalid notation name: "${o}"`);n.push(o),"|"===e[t]&&(t++,t=A(e,t))}if(")"!==e[t])throw new Error("Unterminated list of notations");t++,i+=" ("+n.join("|")+")"}else{for(;t<e.length&&!/\s/.test(e[t]);)i+=e[t],t++;const n=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!n.includes(i.toUpperCase()))throw new Error(`Invalid attribute type: "${i}"`)}t=A(e,t);let p="";return"#REQUIRED"===e.substring(t,t+8).toUpperCase()?(p="#REQUIRED",t+=8):"#IMPLIED"===e.substring(t,t+7).toUpperCase()?(p="#IMPLIED",t+=7):[t,p]=this.readIdentifierVal(e,t,"ATTLIST"),{elementName:n,attributeName:o,attributeType:i,defaultValue:p,index:t}}}const A=(e,t)=>{for(;t<e.length&&/\s/.test(e[t]);)t++;return t};function S(e,t,n){for(let o=0;o<t.length;o++)if(t[o]!==e[n+o+1])return!1;return!0}function C(e){if(r(e))return e;throw new Error(`Invalid entity name ${e}`)}const O=/^[-+]?0x[a-fA-F0-9]+$/,D=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,j={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0},$=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;class L{constructor(e){var t;if(this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>K(t,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>K(t,16,"&#x")}},this.addExternalEntities=F,this.parseXml=R,this.parseTextData=M,this.resolveNameSpace=k,this.buildAttributesMap=U,this.isItStopNode=X,this.replaceEntitiesValue=Y,this.readStopNodeData=q,this.saveTextToParentTag=G,this.addChild=B,this.ignoreAttributesFn="function"==typeof(t=this.options.ignoreAttributes)?t:Array.isArray(t)?e=>{for(const n of t){if("string"==typeof n&&e===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let e=0;e<this.options.stopNodes.length;e++){const t=this.options.stopNodes[e];"string"==typeof t&&(t.startsWith("*.")?this.stopNodesWildcard.add(t.substring(2)):this.stopNodesExact.add(t))}}}}function F(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const o=t[n],i=o.replace(/[.\-+*:]/g,"\\.");this.lastEntities[o]={regex:new RegExp("&"+i+";","g"),val:e[o]}}}function M(e,t,n,o,i,p,f){if(void 0!==e&&(this.options.trimValues&&!o&&(e=e.trim()),e.length>0)){f||(e=this.replaceEntitiesValue(e,t,n));const o=this.options.tagValueProcessor(t,e,n,i,p);return null==o?e:typeof o!=typeof e||o!==e?o:this.options.trimValues||e.trim()===e?Z(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function k(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const V=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function U(e,t,n){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){const o=s(e,V),i=o.length,p={};for(let e=0;e<i;e++){const i=this.resolveNameSpace(o[e][1]);if(this.ignoreAttributesFn(i,t))continue;let f=o[e][4],_=this.options.attributeNamePrefix+i;if(i.length)if(this.options.transformAttributeName&&(_=this.options.transformAttributeName(_)),"__proto__"===_&&(_="#__proto__"),void 0!==f){this.options.trimValues&&(f=f.trim()),f=this.replaceEntitiesValue(f,n,t);const e=this.options.attributeValueProcessor(i,f,t);p[_]=null==e?f:typeof e!=typeof f||e!==f?e:Z(f,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(p[_]=!0)}if(!Object.keys(p).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=p,e}return p}}const R=function(e){e=e.replace(/\r\n?/g,"\n");const t=new I("!xml");let n=t,o="",i="";this.entityExpansionCount=0,this.currentExpandedLength=0;const p=new P(this.options.processEntities);for(let f=0;f<e.length;f++)if("<"===e[f])if("/"===e[f+1]){const t=z(e,">",f,"Closing Tag is not closed.");let p=e.substring(f+2,t).trim();if(this.options.removeNSPrefix){const e=p.indexOf(":");-1!==e&&(p=p.substr(e+1))}this.options.transformTagName&&(p=this.options.transformTagName(p)),n&&(o=this.saveTextToParentTag(o,n,i));const _=i.substring(i.lastIndexOf(".")+1);if(p&&-1!==this.options.unpairedTags.indexOf(p))throw new Error(`Unpaired tag can not be used as closing tag: </${p}>`);let h=0;_&&-1!==this.options.unpairedTags.indexOf(_)?(h=i.lastIndexOf(".",i.lastIndexOf(".")-1),this.tagsNodeStack.pop()):h=i.lastIndexOf("."),i=i.substring(0,h),n=this.tagsNodeStack.pop(),o="",f=t}else if("?"===e[f+1]){let t=W(e,f,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(o=this.saveTextToParentTag(o,n,i),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new I(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,i,t.tagName)),this.addChild(n,e,i,f)}f=t.closeIndex+1}else if("!--"===e.substr(f+1,3)){const t=z(e,"--\x3e",f+4,"Comment is not closed.");if(this.options.commentPropName){const p=e.substring(f+4,t-2);o=this.saveTextToParentTag(o,n,i),n.add(this.options.commentPropName,[{[this.options.textNodeName]:p}])}f=t}else if("!D"===e.substr(f+1,2)){const t=p.readDocType(e,f);this.docTypeEntities=t.entities,f=t.i}else if("!["===e.substr(f+1,2)){const t=z(e,"]]>",f,"CDATA is not closed.")-2,p=e.substring(f+9,t);o=this.saveTextToParentTag(o,n,i);let _=this.parseTextData(p,n.tagname,i,!0,!1,!0,!0);null==_&&(_=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:p}]):n.add(this.options.textNodeName,_),f=t+2}else{let p=W(e,f,this.options.removeNSPrefix),_=p.tagName;const h=p.rawTagName;let T=p.tagExp,O=p.attrExpPresent,D=p.closeIndex;if(this.options.transformTagName){const e=this.options.transformTagName(_);T===_&&(T=e),_=e}if(this.options.strictReservedNames&&(_===this.options.commentPropName||_===this.options.cdataPropName))throw new Error(`Invalid tag name: ${_}`);n&&o&&"!xml"!==n.tagname&&(o=this.saveTextToParentTag(o,n,i,!1));const j=n;j&&-1!==this.options.unpairedTags.indexOf(j.tagname)&&(n=this.tagsNodeStack.pop(),i=i.substring(0,i.lastIndexOf("."))),_!==t.tagname&&(i+=i?"."+_:_);const $=f;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,i,_)){let t="";if(T.length>0&&T.lastIndexOf("/")===T.length-1)"/"===_[_.length-1]?(_=_.substr(0,_.length-1),i=i.substr(0,i.length-1),T=_):T=T.substr(0,T.length-1),f=p.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(_))f=p.closeIndex;else{const n=this.readStopNodeData(e,h,D+1);if(!n)throw new Error(`Unexpected end of ${h}`);f=n.i,t=n.tagContent}const o=new I(_);_!==T&&O&&(o[":@"]=this.buildAttributesMap(T,i,_)),t&&(t=this.parseTextData(t,_,i,!0,O,!0,!0)),i=i.substr(0,i.lastIndexOf(".")),o.add(this.options.textNodeName,t),this.addChild(n,o,i,$)}else{if(T.length>0&&T.lastIndexOf("/")===T.length-1){if("/"===_[_.length-1]?(_=_.substr(0,_.length-1),i=i.substr(0,i.length-1),T=_):T=T.substr(0,T.length-1),this.options.transformTagName){const e=this.options.transformTagName(_);T===_&&(T=e),_=e}const e=new I(_);_!==T&&O&&(e[":@"]=this.buildAttributesMap(T,i,_)),this.addChild(n,e,i,$),i=i.substr(0,i.lastIndexOf("."))}else{if(-1!==this.options.unpairedTags.indexOf(_)){const e=new I(_);_!==T&&O&&(e[":@"]=this.buildAttributesMap(T,i)),this.addChild(n,e,i,$),i=i.substr(0,i.lastIndexOf(".")),f=p.closeIndex;continue}{const e=new I(_);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(n),_!==T&&O&&(e[":@"]=this.buildAttributesMap(T,i,_)),this.addChild(n,e,i,$),n=e}}o="",f=D}}else o+=e[f];return t.child};function B(e,t,n,o){this.options.captureMetaData||(o=void 0);const i=this.options.updateTag(t.tagname,n,t[":@"]);!1===i||("string"==typeof i?(t.tagname=i,e.addChild(t,o)):e.addChild(t,o))}const Y=function(e,t,n){if(-1===e.indexOf("&"))return e;const o=this.options.processEntities;if(!o.enabled)return e;if(o.allowedTags&&!o.allowedTags.includes(t))return e;if(o.tagFilter&&!o.tagFilter(t,n))return e;for(let t in this.docTypeEntities){const n=this.docTypeEntities[t],i=e.match(n.regx);if(i){if(this.entityExpansionCount+=i.length,o.maxTotalExpansions&&this.entityExpansionCount>o.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${o.maxTotalExpansions}`);const t=e.length;if(e=e.replace(n.regx,n.val),o.maxExpandedLength&&(this.currentExpandedLength+=e.length-t,this.currentExpandedLength>o.maxExpandedLength))throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${o.maxExpandedLength}`)}}if(-1===e.indexOf("&"))return e;for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(-1===e.indexOf("&"))return e;if(this.options.htmlEntities)for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}return e.replace(this.ampEntity.regex,this.ampEntity.val)};function G(e,t,n,o){return e&&(void 0===o&&(o=0===t.child.length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,o))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function X(e,t,n,o){return!(!t||!t.has(o))||!(!e||!e.has(n))}function z(e,t,n,o){const i=e.indexOf(t,n);if(-1===i)throw new Error(o);return i+t.length-1}function W(e,t,n,o=">"){const i=function(e,t,n=">"){let o,i="";for(let p=t;p<e.length;p++){let t=e[p];if(o)t===o&&(o="");else if('"'===t||"'"===t)o=t;else if(t===n[0]){if(!n[1])return{data:i,index:p};if(e[p+1]===n[1])return{data:i,index:p}}else"\t"===t&&(t=" ");i+=t}}(e,t+1,o);if(!i)return;let p=i.data;const f=i.index,_=p.search(/\s/);let h=p,T=!0;-1!==_&&(h=p.substring(0,_),p=p.substring(_+1).trimStart());const O=h;if(n){const e=h.indexOf(":");-1!==e&&(h=h.substr(e+1),T=h!==i.data.substr(e+1))}return{tagName:h,tagExp:p,closeIndex:f,attrExpPresent:T,rawTagName:O}}function q(e,t,n){const o=n;let i=1;for(;n<e.length;n++)if("<"===e[n])if("/"===e[n+1]){const p=z(e,">",n,`${t} is not closed`);if(e.substring(n+2,p).trim()===t&&(i--,0===i))return{tagContent:e.substring(o,n),i:p};n=p}else if("?"===e[n+1])n=z(e,"?>",n+1,"StopNode is not closed.");else if("!--"===e.substr(n+1,3))n=z(e,"--\x3e",n+3,"StopNode is not closed.");else if("!["===e.substr(n+1,2))n=z(e,"]]>",n,"StopNode is not closed.")-2;else{const o=W(e,n,">");o&&((o&&o.tagName)===t&&"/"!==o.tagExp[o.tagExp.length-1]&&i++,n=o.closeIndex)}}function Z(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&function(e,t={}){if(t=Object.assign({},j,t),!e||"string"!=typeof e)return e;let n=e.trim();if(void 0!==t.skipLike&&t.skipLike.test(n))return e;if("0"===e)return 0;if(t.hex&&O.test(n))return function(e){if(parseInt)return parseInt(e,16);if(Number.parseInt)return Number.parseInt(e,16);if(window&&window.parseInt)return window.parseInt(e,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(n);if(n.includes("e")||n.includes("E"))return function(e,t,n){if(!n.eNotation)return e;const o=t.match($);if(o){let i=o[1]||"";const p=-1===o[3].indexOf("e")?"E":"e",f=o[2],_=i?e[f.length+1]===p:e[f.length]===p;return f.length>1&&_?e:1!==f.length||!o[3].startsWith(`.${p}`)&&o[3][0]!==p?n.leadingZeros&&!_?(t=(o[1]||"")+o[3],Number(t)):e:Number(t)}return e}(e,n,t);{const i=D.exec(n);if(i){const p=i[1]||"",f=i[2];let _=(o=i[3])&&-1!==o.indexOf(".")?("."===(o=o.replace(/0+$/,""))?o="0":"."===o[0]?o="0"+o:"."===o[o.length-1]&&(o=o.substring(0,o.length-1)),o):o;const h=p?"."===e[f.length+1]:"."===e[f.length];if(!t.leadingZeros&&(f.length>1||1===f.length&&!h))return e;{const o=Number(n),i=String(o);if(0===o)return o;if(-1!==i.search(/[eE]/))return t.eNotation?o:e;if(-1!==n.indexOf("."))return"0"===i||i===_||i===`${p}${_}`?o:e;let h=f?_:n;return f?h===i||p+h===i?o:e:h===i||h===p+i?o:e}}return e}var o}(e,n)}return void 0!==e?e:""}function K(e,t,n){const o=Number.parseInt(e,t);return o>=0&&o<=1114111?String.fromCodePoint(o):n+e+";"}const Q=I.getMetaDataSymbol();function J(e,t){return H(e,t)}function H(e,t,n){let o;const i={};for(let p=0;p<e.length;p++){const f=e[p],_=tt(f);let h="";if(h=void 0===n?_:n+"."+_,_===t.textNodeName)void 0===o?o=f[_]:o+=""+f[_];else{if(void 0===_)continue;if(f[_]){let e=H(f[_],t,h);const n=nt(e,t);f[":@"]?et(e,f[":@"],h,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==f[Q]&&"object"==typeof e&&null!==e&&(e[Q]=f[Q]),void 0!==i[_]&&Object.prototype.hasOwnProperty.call(i,_)?(Array.isArray(i[_])||(i[_]=[i[_]]),i[_].push(e)):t.isArray(_,h,n)?i[_]=[e]:i[_]=e}}}return"string"==typeof o?o.length>0&&(i[t.textNodeName]=o):void 0!==o&&(i[t.textNodeName]=o),i}function tt(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function et(e,t,n,o){if(t){const i=Object.keys(t),p=i.length;for(let f=0;f<p;f++){const p=i[f];o.isArray(p,n+"."+p,!0,!0)?e[p]=[t[p]]:e[p]=t[p]}}}function nt(e,t){const{textNodeName:n}=t,o=Object.keys(e).length;return 0===o||!(1!==o||!e[n]&&"boolean"!=typeof e[n]&&0!==e[n])}class it{constructor(e){this.externalEntities={},this.options=v(e)}parse(e,t){if("string"!=typeof e&&e.toString)e=e.toString();else if("string"!=typeof e)throw new Error("XML data is accepted in String or Bytes[] form.");if(t){!0===t&&(t={});const n=a(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new L(this.options);n.addExternalEntities(this.externalEntities);const o=n.parseXml(e);return this.options.preserveOrder||void 0===o?o:J(o,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}static getMetaDataSymbol(){return I.getMetaDataSymbol()}}function st(e,t){let n="";return t.format&&t.indentBy.length>0&&(n="\n"),rt(e,t,"",n)}function rt(e,t,n,o){let i="",p=!1;if(!Array.isArray(e)){if(null!=e){let n=e.toString();return n=ut(n,t),n}return""}for(let f=0;f<e.length;f++){const _=e[f],h=ot(_);if(void 0===h)continue;let T="";if(T=0===n.length?h:`${n}.${h}`,h===t.textNodeName){let e=_[h];lt(T,t)||(e=t.tagValueProcessor(h,e),e=ut(e,t)),p&&(i+=o),i+=e,p=!1;continue}if(h===t.cdataPropName){p&&(i+=o),i+=`<![CDATA[${_[h][0][t.textNodeName]}]]>`,p=!1;continue}if(h===t.commentPropName){i+=o+`\x3c!--${_[h][0][t.textNodeName]}--\x3e`,p=!0;continue}if("?"===h[0]){const e=at(_[":@"],t),n="?xml"===h?"":o;let f=_[h][0][t.textNodeName];f=0!==f.length?" "+f:"",i+=n+`<${h}${f}${e}?>`,p=!0;continue}let O=o;""!==O&&(O+=t.indentBy);const D=o+`<${h}${at(_[":@"],t)}`,j=rt(_[h],t,T,O);-1!==t.unpairedTags.indexOf(h)?t.suppressUnpairedNode?i+=D+">":i+=D+"/>":j&&0!==j.length||!t.suppressEmptyNode?j&&j.endsWith(">")?i+=D+`>${j}${o}</${h}>`:(i+=D+">",j&&""!==o&&(j.includes("/>")||j.includes("</"))?i+=o+t.indentBy+j+o:i+=j,i+=`</${h}>`):i+=D+"/>",p=!0}return i}function ot(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const o=t[n];if(Object.prototype.hasOwnProperty.call(e,o)&&":@"!==o)return o}}function at(e,t){let n="";if(e&&!t.ignoreAttributes)for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;let i=t.attributeValueProcessor(o,e[o]);i=ut(i,t),!0===i&&t.suppressBooleanAttributes?n+=` ${o.substr(t.attributeNamePrefix.length)}`:n+=` ${o.substr(t.attributeNamePrefix.length)}="${i}"`}return n}function lt(e,t){let n=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let o in t.stopNodes)if(t.stopNodes[o]===e||t.stopNodes[o]==="*."+n)return!0;return!1}function ut(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n<t.entities.length;n++){const o=t.entities[n];e=e.replace(o.regex,o.val)}return e}const ee={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function ht(e){var t;this.options=Object.assign({},ee,e),!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn="function"==typeof(t=this.options.ignoreAttributes)?t:Array.isArray(t)?e=>{for(const n of t){if("string"==typeof n&&e===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=ft),this.processTextOrObjNode=pt,this.options.format?(this.indentate=ct,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function pt(e,t,n,o){const i=this.j2x(e,n+1,o.concat(t));return void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,i.attrStr,n):this.buildObjectNode(i.val,t,i.attrStr,n)}function ct(e){return this.options.indentBy.repeat(e)}function ft(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}ht.prototype.build=function(e){return this.options.preserveOrder?st(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},ht.prototype.j2x=function(e,t,n){let o="",i="";const p=n.join(".");for(let f in e)if(Object.prototype.hasOwnProperty.call(e,f))if(void 0===e[f])this.isAttribute(f)&&(i+="");else if(null===e[f])this.isAttribute(f)||f===this.options.cdataPropName?i+="":"?"===f[0]?i+=this.indentate(t)+"<"+f+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+f+"/"+this.tagEndChar;else if(e[f]instanceof Date)i+=this.buildTextValNode(e[f],f,"",t);else if("object"!=typeof e[f]){const n=this.isAttribute(f);if(n&&!this.ignoreAttributesFn(n,p))o+=this.buildAttrPairStr(n,""+e[f]);else if(!n)if(f===this.options.textNodeName){let t=this.options.tagValueProcessor(f,""+e[f]);i+=this.replaceEntitiesValue(t)}else i+=this.buildTextValNode(e[f],f,"",t)}else if(Array.isArray(e[f])){const o=e[f].length;let p="",_="";for(let h=0;h<o;h++){const o=e[f][h];if(void 0===o);else if(null===o)"?"===f[0]?i+=this.indentate(t)+"<"+f+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+f+"/"+this.tagEndChar;else if("object"==typeof o)if(this.options.oneListGroup){const e=this.j2x(o,t+1,n.concat(f));p+=e.val,this.options.attributesGroupName&&o.hasOwnProperty(this.options.attributesGroupName)&&(_+=e.attrStr)}else p+=this.processTextOrObjNode(o,f,t,n);else if(this.options.oneListGroup){let e=this.options.tagValueProcessor(f,o);e=this.replaceEntitiesValue(e),p+=e}else p+=this.buildTextValNode(o,f,"",t)}this.options.oneListGroup&&(p=this.buildObjectNode(p,f,_,t)),i+=p}else if(this.options.attributesGroupName&&f===this.options.attributesGroupName){const t=Object.keys(e[f]),n=t.length;for(let i=0;i<n;i++)o+=this.buildAttrPairStr(t[i],""+e[f][t[i]])}else i+=this.processTextOrObjNode(e[f],f,t,n);return{attrStr:o,val:i}},ht.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},ht.prototype.buildObjectNode=function(e,t,n,o){if(""===e)return"?"===t[0]?this.indentate(o)+"<"+t+n+"?"+this.tagEndChar:this.indentate(o)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let i="</"+t+this.tagEndChar,p="";return"?"===t[0]&&(p="?",i=""),!n&&""!==n||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===p.length?this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(o)+"<"+t+n+p+this.tagEndChar+e+this.indentate(o)+i:this.indentate(o)+"<"+t+n+p+">"+e+i}},ht.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},ht.prototype.buildTextValNode=function(e,t,n,o){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(o)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(o)+"<"+t+n+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),""===i?this.indentate(o)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(o)+"<"+t+n+">"+i+"</"+t+this.tagEndChar}},ht.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const n=this.options.entities[t];e=e.replace(n.regex,n.val)}return e};const te=ht,re={validate:a};tr.exports=t})()),tr.exports}var rr,nr,or,ir={};function requireErrors(){return rr||(rr=1,function(e){var t=ir&&ir.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.checkEBayTraditionalResponse=e.handleEBayError=e.extractEBayError=e.EBayInvalidScope=e.EBayTokenRequired=e.EBayIAFTokenInvalid=e.EBayAuthTokenIsHardExpired=e.EBayAuthTokenIsInvalid=e.EBayIAFTokenExpired=e.EBayInvalidAccessToken=e.EBayNotFound=e.EBayInvalidGrant=e.EBayAccessDenied=e.EBayApiError=e.EbayApiError=e.ApiEnvError=e.EBayNoCallError=e.EBayError=e.rawError=void 0;const n=(0,t(requireBrowser()).default)("ebay:error");e.rawError=Symbol("raw-error");class EBayError extends Error{constructor(e,t="",n={}){super(e),this.name=this.constructor.name,this.description=t,this.meta=n,Object.setPrototypeOf(this,new.target.prototype)}}e.EBayError=EBayError;e.EBayNoCallError=class EBayNoCallError extends EBayError{constructor(e="No eBay API call defined, please invoke one."){super(e)}};e.ApiEnvError=class ApiEnvError extends EBayError{constructor(e){super(`Could not find ${e} in process.env.`)}};class EbayApiError extends EBayError{constructor(e,t,n,o,i){super(e,t,n),this.errorCode=o,this.firstError=i}}e.EbayApiError=EbayApiError;class EBayApiError extends EbayApiError{}e.EBayApiError=EBayApiError;class EBayAccessDenied extends EBayApiError{}e.EBayAccessDenied=EBayAccessDenied;class EBayInvalidGrant extends EBayApiError{}e.EBayInvalidGrant=EBayInvalidGrant;class EBayNotFound extends EBayApiError{}e.EBayNotFound=EBayNotFound,EBayNotFound.code=11001;class EBayInvalidAccessToken extends EBayApiError{}e.EBayInvalidAccessToken=EBayInvalidAccessToken;class EBayIAFTokenExpired extends EBayApiError{}e.EBayIAFTokenExpired=EBayIAFTokenExpired,EBayIAFTokenExpired.code=21917053;class EBayAuthTokenIsInvalid extends EBayApiError{}e.EBayAuthTokenIsInvalid=EBayAuthTokenIsInvalid,EBayAuthTokenIsInvalid.code=931;class EBayAuthTokenIsHardExpired extends EBayApiError{}e.EBayAuthTokenIsHardExpired=EBayAuthTokenIsHardExpired,EBayAuthTokenIsHardExpired.code=932;class EBayIAFTokenInvalid extends EBayApiError{}e.EBayIAFTokenInvalid=EBayIAFTokenInvalid,EBayIAFTokenInvalid.code=21916984;class EBayTokenRequired extends EBayApiError{}e.EBayTokenRequired=EBayTokenRequired,EBayTokenRequired.code=930;class EBayInvalidScope extends EBayApiError{}e.EBayInvalidScope=EBayInvalidScope;const getErrorMessage=e=>"message"in e?e.message:"Errors"in e?Array.isArray(e.Errors)?e.Errors[0].ShortMessage:e.Errors.ShortMessage:"eBay API request error",getErrorDescription=(e,t)=>"description"in e?e.description:"Errors"in e?Array.isArray(e.Errors)?e.Errors[0].LongMessage:e.Errors.LongMessage:"longMessage"in e?e.longMessage:(200!==t?.status?t?.statusText:"")||"",getErrorCode=e=>"errorId"in e?e.errorId:"Errors"in e?Array.isArray(e.Errors)?e.Errors[0].ErrorCode:e.Errors.ErrorCode:void 0;e.extractEBayError=(t,n)=>{const o=function getEBayError(e){return e?"string"==typeof e?{message:e}:"Errors"in e?e:"error"in e&&"string"==typeof e.error?{message:e.error,description:"error_description"in e&&e.error_description||""}:"errors"in e&&Array.isArray(e.errors)?e.errors[0]:"error"in e&&Array.isArray(e.error)?e.error[0]:"errorMessage"in e?Array.isArray(e.errorMessage?.error)?e.errorMessage.error[0]:e.errorMessage.error:{message:"Unknown eBay API Error",description:'This error response is not known. You should investigate the "meta.res.data" for more information.'}:{message:"eBay API Error",description:"No data is set in response result."}}(n||t.response?.data),i={...o,[e.rawError]:t},p="Errors"in o?Array.isArray(o.Errors)?o.Errors[0]:o.Errors:o;return t?.response&&(i.res={status:t.response.status,statusText:t.response.statusText,headers:t.response.headers,data:t.response.data??{}}),t?.config&&(i.req={url:t.config.url,method:t.config.method,headers:t.config.headers,params:t.config.params}),{message:getErrorMessage(o),description:getErrorDescription(o,t?.response),errorCode:getErrorCode(o),meta:i,firstError:p}};e.handleEBayError=t=>{if(n("handleEBayError",t),t instanceof EBayError||!t.response)throw t;if("object"!=typeof t)throw new EBayError(t);const{message:o,meta:i,description:p,errorCode:f,firstError:_}=(0,e.extractEBayError)(t);if("domain"in i&&"ACCESS"===i.domain)throw new EBayAccessDenied(o,p,i,f,_);if("message"in i&&"invalid_grant"===i.message)throw new EBayInvalidGrant(o,p,i,f,_);if("message"in i&&"invalid_scope"===i.message)throw new EBayInvalidScope(o,p,i,f,_);if("message"in i&&"Invalid access token"===i.message)throw new EBayInvalidAccessToken(o,p,i,f,_);if(f===EBayNotFound.code)throw new EBayNotFound(o,p,i,f,_);throw new EBayApiError(o,p,i,f,_)};e.checkEBayTraditionalResponse=(t,o)=>{if(!o)return void n("checkEBayTraditionalResponse: No data found in response.");if(!("Errors"in o)&&!("errorMessage"in o))return;if("Errors"in o&&"Failure"!==o.Ack)return void n(`checkEBayTraditionalResponse: eBay API returned ${o.Ack}`);const{message:i,meta:p,description:f,errorCode:_,firstError:h}=(0,e.extractEBayError)(t,o);if(void 0===_)throw new EBayApiError(i,f,p,_,h);switch(_){case EBayIAFTokenExpired.code:throw new EBayIAFTokenExpired(i,f,p,_,h);case EBayIAFTokenInvalid.code:case 1.32:throw new EBayIAFTokenInvalid(i,f,p,_,h);case EBayTokenRequired.code:throw new EBayTokenRequired(i,f,p,_,h);case EBayAuthTokenIsHardExpired.code:throw new EBayAuthTokenIsHardExpired(i,f,p,_,h);case EBayAuthTokenIsInvalid.code:throw new EBayAuthTokenIsInvalid(i,f,p,_,h)}throw new EBayApiError(i,f,p,_,h)}}(ir)),ir}function requireXMLRequest(){return nr||(nr=1,function(e){var t=er&&er.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultHeaders=e.defaultApiConfig=e.defaultXML2JSONParseOptions=e.defaultXmlBuilderOptions=void 0;const n=t(requireBrowser()),o=requireFxp(),i=requireErrors(),p=(0,n.default)("ebay:xml:request");e.defaultXmlBuilderOptions={attributeNamePrefix:"@_",textNodeName:"#value",ignoreAttributes:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,cdataPropName:"__cdata"},e.defaultXML2JSONParseOptions={attributeNamePrefix:"",textNodeName:"value",ignoreAttributes:!1,parseAttributeValue:!0,parseTagValue:!0,numberParseOptions:{hex:!1,leadingZeros:!1},removeNSPrefix:!0,processEntities:{enabled:!0,maxEntitySize:1e4,maxTotalExpansions:1e4,maxExpandedLength:1e5,maxEntityCount:100},isArray:(e,t)=>/Array$/.test(t.slice(0,-e.length-1))},e.defaultApiConfig={raw:!1,parseOptions:e.defaultXML2JSONParseOptions,xmlBuilderOptions:e.defaultXmlBuilderOptions,useIaf:!0,sign:!1,headers:{},returnResponse:!1},e.defaultHeaders={"Content-Type":"text/xml"};e.default=class XMLRequest{constructor(t,n,p,f){if(!t)throw new i.EBayNoCallError;this.config={...e.defaultApiConfig,...p},this.j2x=new o.XMLBuilder({...e.defaultXmlBuilderOptions,...this.config.xmlBuilderOptions}),this.callName=t,this.fields=n||{},this.req=f}getResponseWrapper(){return`${this.callName}Response`}getCredentials(){return this.config.eBayAuthToken?{RequesterCredentials:{eBayAuthToken:this.config.eBayAuthToken}}:{}}getHeaders(){return{...e.defaultHeaders,...this.config.headers}}toJSON(e){return p("parseOption",this.config.parseOptions),new o.XMLParser(this.config.parseOptions).parse(e)}toXML(e){return'<?xml version="1.0" encoding="utf-8"?>'+this.j2x.build({[this.callName+"Request"]:{"@_xmlns":this.config.xmlns,...this.getCredentials(),...e}})}async request(){const e=this.toXML(this.fields);p("xml",e);try{const{body:t,headers:n={}}=this.config.hook?.(e)??{body:e},o={headers:{...this.getHeaders(),...this.config.digitalSignatureHeaders?this.config.digitalSignatureHeaders(t):{},...n||{}}};p("config",o);const f=await this.req.post(this.config.endpoint,t,o);if(p("response",f),this.config.returnResponse)return f;const{data:_}=f;if(this.config.raw)return _;const h=this.xml2JSON(_);return(0,i.checkEBayTraditionalResponse)(f,h),h}catch(e){if(p("error",e),e.response?.data){const t=this.toJSON(e.response.data);(0,i.checkEBayTraditionalResponse)(e,t[this.callName+"Response"])}throw e}}xml2JSON(e){const t=this.toJSON(e);return t[this.getResponseWrapper()]??t}}}(er)),er}var ar,sr,ur,cr={},lr={};function requireOAuth2(){if(sr)return cr;sr=1;var e=cr&&cr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cr,"__esModule",{value:!0});const t=e(requireBrowser()),n=e(requireBase()),o=function requireNanoevents(){return ar||(ar=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.createNanoEvents=void 0,lr.createNanoEvents=()=>({events:{},emit(e,...t){const n=this.events[e]||[];for(let e=0,o=n.length;e<o;e++)n[e](...t)},on(e,t){return this.events[e]?this.events[e].push(t):this.events[e]=[t],()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}})),lr}(),i=(0,t.default)("ebay:oauth2");class OAuth2 extends n.default{constructor(e,t){super(e,t),this.emitter=(0,o.createNanoEvents)(),this.scope=this.config.scope||OAuth2.defaultScopes}on(e,t){return this.emitter.on(e,t)}get identityEndpoint(){return this.config.sandbox?OAuth2.IDENTITY_ENDPOINT.sandbox:OAuth2.IDENTITY_ENDPOINT.production}static generateAuthUrl(e,t,n,o,i=""){return[e?OAuth2.AUTHORIZE_ENDPOINT.sandbox:OAuth2.AUTHORIZE_ENDPOINT.production,"?client_id=",encodeURIComponent(t),"&redirect_uri=",encodeURIComponent(n),"&response_type=code","&state=",encodeURIComponent(i),"&scope=",encodeURIComponent(o.join(" "))].join("")}generateAuthUrl(e,t=this.scope,n=""){if(!(e=e||this.config.ruName))throw new Error("RuName is required.");return OAuth2.generateAuthUrl(this.config.sandbox,this.config.appId,e,t,n)}async getAccessToken(){return this.getUserAccessToken()||this.getApplicationAccessToken()}getUserAccessToken(){return this._authToken?.access_token??null}async getApplicationAccessToken(){if(this._clientToken)return i("Return existing application access token: ",this._clientToken),this._clientToken.access_token;try{return(await this.obtainApplicationAccessToken()).access_token}catch(e){throw e}}getScope(){return[...this.scope]}setClientToken(e){this._clientToken=e}setScope(e){this.scope=e}async mintApplicationAccessToken(){if(!this.config.appId)throw new Error("Missing App ID (Client Id)");if(!this.config.certId)throw new Error("Missing Cert Id (Client Secret)");try{return(await this.req.postForm(this.identityEndpoint,{scope:this.scope.join(" "),grant_type:"client_credentials"},{auth:{username:this.config.appId,password:this.config.certId}})).data}catch(e){throw i("Failed to mint application token",e),e}}async obtainApplicationAccessToken(){i("Obtain a new application access token with scope: ",this.scope.join(","));try{const e=await this.mintApplicationAccessToken();return i("Obtained a new application access token:",e),this.setClientToken(e),this.emitter.emit("refreshClientToken",e),e}catch(e){throw i("Failed to obtain application token",e),e}}async mintUserAccessToken(e,t=this.config.ruName){if(!this.config.appId)throw new Error("Missing App ID (Client Id)");if(!this.config.certId)throw new Error("Missing Cert Id (Client Secret)");try{const n=(await this.req.postForm(this.identityEndpoint,{grant_type:"authorization_code",code:e,redirect_uri:t},{auth:{username:this.config.appId,password:this.config.certId}})).data;return i("User Access Token",n),n}catch(e){throw i("Failed to get the token",e),e}}async getToken(e,t=this.config.ruName){return await this.mintUserAccessToken(e,t)}async refreshUserAccessToken(){if(!this._authToken||!this._authToken.refresh_token)throw i("Tried to refresh user access token before it was set."),new Error("Failed to refresh the user access token. Token or refresh_token is not set.");try{const e=(await this.req.postForm(this.identityEndpoint,{grant_type:"refresh_token",refresh_token:this._authToken.refresh_token,scope:this.scope.join(" ")},{auth:{username:this.config.appId,password:this.config.certId}})).data;i("Successfully refreshed token",e);const t={...this._authToken,...e};return this.setCredentials(t),this.emitter.emit("refreshAuthToken",t),t}catch(e){throw i("Failed to refresh the token",e),e}}async obtainToken(e){const t=await this.getToken(e);return i("Obtain user access token",t),this.setCredentials(t),t}getCredentials(){return this._authToken?{...this._authToken}:this._clientToken?{...this._clientToken}:null}setCredentials(e){this._authToken="string"==typeof e?{refresh_token:"",expires_in:7200,refresh_token_expires_in:47304e3,token_type:"User Access Token",access_token:e}:e}async refreshToken(){if(this._authToken)return await this.refreshUserAccessToken();if(this._clientToken)return await this.obtainApplicationAccessToken();throw new Error("Missing credentials. To refresh a token an application access token or user access token must be already set.")}}return OAuth2.IDENTITY_ENDPOINT={production:"https://api.ebay.com/identity/v1/oauth2/token",sandbox:"https://api.sandbox.ebay.com/identity/v1/oauth2/token"},OAuth2.AUTHORIZE_ENDPOINT={production:"https://auth.ebay.com/oauth2/authorize",sandbox:"https://auth.sandbox.ebay.com/oauth2/authorize"},OAuth2.defaultScopes=["https://api.ebay.com/oauth/api_scope"],cr.default=OAuth2,cr}function requireAuth(){if(ur)return f;ur=1;var e=f&&f.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(f,"__esModule",{value:!0});const t=e(requireBase()),n=e(function requireAuthNAuth(){if(or)return Zt;or=1;var e=Zt&&Zt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zt,"__esModule",{value:!0});const t=e(requireBrowser()),n=e(requireBase()),o=e(requireXMLRequest()),i=(0,t.default)("ebay:authNAuth");class AuthNAuth extends n.default{static generateAuthUrl(e,t,n,o=!1){return[e?AuthNAuth.SIGNIN_ENDPOINT.sandbox:AuthNAuth.SIGNIN_ENDPOINT.production,"?SignIn","&RuName=",encodeURIComponent(t),"&SessID=",encodeURIComponent(n),o?"&prompt=login":""].join("")}constructor(e,t){super(e,t),this.authToken=null,this.config.authToken&&this.setAuthToken(this.config.authToken)}get apiEndpoint(){return this.config.sandbox?AuthNAuth.API_ENDPOINT.sandbox:AuthNAuth.API_ENDPOINT.production}async getSessionIdAndAuthUrl(e){if(!this.config.devId)throw new Error("DevId is required.");if(!(e=e||this.config.ruName))throw new Error("RuName is required.");const t=new o.default("GetSessionID",{RuName:e},this.getRequestConfig("GetSessionID"),this.req),n=await t.request();return i("GetSessionID data",n),{sessionId:n.SessionID,url:AuthNAuth.generateAuthUrl(this.config.sandbox,e,n.SessionID)}}async mintToken(e){if(!this.config.devId)throw new Error("DevId is required.");const t=new o.default("FetchToken",{SessionID:e},this.getRequestConfig("FetchToken"),this.req);try{return await t.request()}catch(e){throw i("Fetch auth token failed",e),e}}async obtainToken(e){const t=await this.mintToken(e);return i("Obtain auth token",t),this.setAuthToken(t),t}setAuthToken(e){this.authToken="string"==typeof e?{eBayAuthToken:e}:e}getAuthToken(){return this.authToken?{...this.authToken}:null}get eBayAuthToken(){return this.authToken?.eBayAuthToken??null}getRequestConfig(e){if("number"!=typeof this.config.siteId)throw new Error("\"siteId\" is required for Auth'n'Auth.");return{useIaf:!1,xmlns:"urn:ebay:apis:eBLBaseComponents",endpoint:this.apiEndpoint,headers:{"X-EBAY-API-CALL-NAME":e,"X-EBAY-API-CERT-NAME":this.config.certId,"X-EBAY-API-APP-NAME":this.config.appId,"X-EBAY-API-DEV-NAME":this.config.devId,"X-EBAY-API-SITEID":this.config.siteId,"X-EBAY-API-COMPATIBILITY-LEVEL":967}}}}return AuthNAuth.SIGNIN_ENDPOINT={sandbox:"https://signin.sandbox.ebay.com/ws/eBayISAPI.dll",production:"https://signin.ebay.com/ws/eBayISAPI.dll"},AuthNAuth.API_ENDPOINT={production:"https://api.ebay.com/ws/api.dll",sandbox:"https://api.sandbox.ebay.com/ws/api.dll"},Zt.default=AuthNAuth,Zt}()),o=e(requireOAuth2());class Auth extends t.default{constructor(e,t){super(e,t),this.authNAuth=new n.default(this.config,this.req),this.OAuth2=new o.default(this.config,this.req),this.oAuth2=this.OAuth2}async getHeaderAuthorization(e){if(this.authNAuth.eBayAuthToken)return{Authorization:"Token "+this.authNAuth.eBayAuthToken};return{Authorization:(e?"IAF ":"Bearer ")+await this.OAuth2.getAccessToken()}}}return f.default=Auth,f}var dr={};var pr,fr,Er=getAugmentedNamespace(Object.freeze({__proto__:null,createHash:function createHash(){throw Error("crypto.createHash is not supported in browser.")},sign:function sign(){throw Error("crypto.sign is not supported in browser.")}}));function requireApi(){if(fr)return p;fr=1;var e=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(p,"__esModule",{value:!0});const t=e(requireAuth()),n=e(requireBase()),o=function requireDigitalSignature(){return pr||(pr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.generateSignatureInput=e.generateContentDigestValue=e.getUnixTimestamp=void 0,e.generateBaseString=generateBaseString,e.generateSignature=function generateSignature(n,p,f,_,h=(0,e.getUnixTimestamp)()){const T=generateBaseString(n,f,_,h);(p=p.trim()).startsWith(o)||(p=o+"\n"+p+"\n"+i);return`sig1=:${(0,t.sign)(void 0,Buffer.from(T),p).toString("base64")}:`};const t=Er,n=requireErrors(),o="-----BEGIN PRIVATE KEY-----",i="-----END PRIVATE KEY-----";e.getUnixTimestamp=()=>Math.floor(Date.now()/1e3);const getSignatureParams=e=>[...e?["content-digest"]:[],"x-ebay-signature-key","@method","@path","@authority"],getSignatureParamsValue=e=>getSignatureParams(e).map(e=>`"${e}"`).join(" ");function generateBaseString(t,o,i,p=(0,e.getUnixTimestamp)()){try{let e="";return getSignatureParams(i).forEach(n=>{if(e+=`"${n.toLowerCase()}": `,n.startsWith("@"))switch(n.toLowerCase()){case"@method":e+=o.method;break;case"@authority":e+=o.authority;break;case"@path":e+=o.path;break;default:throw new Error("Unknown pseudo header "+n)}else{if(!t[n])throw new Error("Header "+n+" not included in message");e+=t[n]}e+="\n"}),e+=`"@signature-params": (${getSignatureParamsValue(i)});created=${p}`,e}catch(e){throw new n.EBayError(`Error calculating signature base: ${e.message}`)}}e.generateContentDigestValue=(e,n="sha256")=>{const o=Buffer.from("string"==typeof e?e:JSON.stringify(e));return`${"sha512"===n?"sha-512":"sha-256"}=:${(0,t.createHash)(n).update(o).digest("base64")}:`},e.generateSignatureInput=(t,n=(0,e.getUnixTimestamp)())=>`sig1=(${getSignatureParamsValue(t)});created=${n}`}(dr)),dr}();class Api extends n.default{constructor(e,n,o){super(e,n),this.auth=o||new t.default(this.config,this.req)}getDigitalSignatureHeaders(e,t){if(!this.config.signature)return{};const n=(0,o.getUnixTimestamp)(),i={"x-ebay-enforce-signature":!0,"x-ebay-signature-key":this.config.signature.jwe,...t?{"content-digest":(0,o.generateContentDigestValue)(t,this.config.signature.cipher??"sha256")}:{},"signature-input":(0,o.generateSignatureInput)(t,n)};return{...i,signature:(0,o.generateSignature)(i,this.config.signature.privateKey,e,t,n)}}}return p.default=Api,p}var _r,hr,gr={},mr={},yr={};function requireRestful(){return _r||(_r=1,function(e){var t=yr&&yr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultApiHeaders=void 0;const n=requireErrors(),o=t(requireApi());e.defaultApiHeaders={"Content-Type":"application/json","Cache-Control":"no-cache",..."undefined"==typeof window?{"Accept-Encoding":"application/gzip"}:{}};const i={marketplaceId:"X-EBAY-C-MARKETPLACE-ID",endUserCtx:"X-EBAY-C-ENDUSERCTX",acceptLanguage:"Accept-Language",contentLanguage:"Content-Language"};class Restful extends o.default{constructor(e,t,n,o={}){super(e,t,n),this.apiConfig={...this.getApiConfig(),...o}}static buildServerUrl(e,t,n,o){return`${e}${t}.${n?"sandbox.":""}${o}`}get useIaf(){return!1}get schema(){return"https://"}get subdomain(){return"api"}get apiVersionPath(){return""}getServerUrl({schema:e,subdomain:t,apiVersion:n,basePath:o,sandbox:i,tld:p}){return Restful.buildServerUrl(e,t,i,p)+n+o}getApiConfig(){return{subdomain:this.subdomain,useIaf:this.useIaf,apiVersion:this.apiVersionPath,basePath:this.basePath,schema:this.schema,sandbox:this.config.sandbox,tld:"ebay.com",headers:{},returnResponse:!1,sign:!1}}get baseUrl(){return this.getServerUrl(this.apiConfig)}api(e){return new this.constructor(this.config,this.req,this.auth,e)}get apix(){return this.api({subdomain:"apix"})}get apiz(){return this.api({subdomain:"apiz"})}get sign(){return this.api({sign:!0})}async get(e,t={},n){return this.doRequest({method:"get",path:e,config:t},n)}async delete(e,t={},n){return this.doRequest({method:"delete",path:e,config:t},n)}async post(e,t,n={},o){return this.doRequest({method:"post",path:e,data:t,config:n},o)}async put(e,t,n={},o){return this.doRequest({method:"put",path:e,data:t,config:n},o)}get additionalHeaders(){return Object.keys(i).filter(e=>void 0!==this.config[e]).reduce((e,t)=>(e[i[t]]=this.config[t],e),{})}async enrichRequestConfig(t,n=null,o=this.apiConfig){const i=await this.auth.getHeaderAuthorization(o.useIaf),p=o.sign?this.getDigitalSignatureHeaders({method:t.method.toUpperCase(),authority:Restful.buildServerUrl("",o.subdomain,o.sandbox,o.tld),path:o.apiVersion+o.basePath+t.path},n):{},f={...e.defaultApiHeaders,...this.additionalHeaders,...i,...o.headers,...p};return{...t.config,headers:{...t.config.headers||{},...f}}}async doRequest(e,t){try{return await this.request(e,t)}catch(n){if(this.shouldRefreshToken(n))return await this.request(e,t,!0);throw n}}shouldRefreshToken(e){return!!this.config.autoRefreshToken&&(e.name===n.EBayInvalidAccessToken.name||(403===e?.meta?.res?.status&&"/sell/inventory/v1"===this.apiConfig.basePath||401===e?.meta?.res?.status&&"/post-order/v2"===this.apiConfig.basePath))}async request(e,t=this.apiConfig,o=!1){const{path:i,method:p,data:f}=e,_={...this.apiConfig,...t},h=this.getServerUrl(_)+i;try{o&&await this.auth.OAuth2.refreshToken();const t=await this.enrichRequestConfig(e,f,_),n=["get","delete"].includes(p)?[t]:[f,t],i=await this.req[p](h,...n);return this.apiConfig.returnResponse?i:i.data}catch(e){(0,n.handleEBayError)(e)}}}e.default=Restful}(yr)),yr}var Rr,Ar={};var Ir,Tr={};var Sr,Or={};var Cr,br={};var Nr,Pr={};var vr,Mr,Dr={};function requireBuy(){if(Mr)return gr;Mr=1;var e=gr&&gr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gr,"__esModule",{value:!0}),gr.Order=gr.Offer=gr.MarketplaceInsights=gr.Marketing=gr.Feed=gr.Deal=gr.Browse=void 0;const t=e(function requireBrowse(){if(hr)return mr;hr=1;var e=mr&&mr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mr,"__esModule",{value:!0});const t=e(requireRestful());class Browse extends t.default{get basePath(){return"/buy/browse/v1"}search(e){return this.get("/item_summary/search",{params:e})}searchByImage(e,t){return this.post("/item_summary/search_by_image",t,{params:e})}getItems(e){return this.get("/item/",{params:e})}getItem(e,t){const n=encodeURIComponent(e);return this.get(`/item/${n}`,{params:{fieldgroups:t}})}getItemByLegacyId(e){return this.get("/item/get_item_by_legacy_id",{params:e})}getItemsByItemGroup(e){return this.get("/item/get_items_by_item_group",{params:{item_group_id:e}})}checkCompatibility(e,t){const n=encodeURIComponent(e);return this.post(`/item/${n}/check_compatibility`,t)}addItem(e){return this.post("/shopping_cart/add_item",e)}getShoppingCart(){return this.get("/shopping_cart/")}removeItem(e){return this.post("/shopping_cart/remove_item",e)}updateQuantity(e){return this.post("/shopping_cart/update_quantity",e)}}return Browse.id="Browse",mr.default=Browse,mr}());gr.Browse=t.default;const n=e(function requireFeed$1(){if(Rr)return Ar;Rr=1;var e=Ar&&Ar.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ar,"__esModule",{value:!0});const t=e(requireRestful());class Feed extends t.default{get basePath(){return"/buy/feed/v1_beta"}getItemFeed(e,t){return this.get("/item",{params:e,headers:{Range:t}})}getItemGroupFeed(e,t){return this.get("/item_group",{params:e,headers:{Range:t}})}getItemSnapshotFeed(e,t,n){return this.get("/item_snapshot",{params:{...e,snapshot_date:t},headers:{Range:n}})}getProductFeed(e,t,n){return this.get("/product",{params:{...e,snapshot_date:t},headers:{Range:n}})}}return Feed.id="Feed",Ar.default=Feed,Ar}());gr.Feed=n.default;const o=e(function requireMarketing$1(){if(Ir)return Tr;Ir=1;var e=Tr&&Tr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tr,"__esModule",{value:!0});const t=e(requireRestful());class Marketing extends t.default{get basePath(){return"/buy/marketing/v1_beta"}getAlsoBoughtByProduct(e){return this.get("/merchandised_product/get_also_bought_products",{params:e})}getAlsoViewedByProduct(e){return this.get("/merchandised_product/get_also_viewed_products",{params:e})}getMerchandisedProducts(e){return this.get("/merchandised_product",{params:e})}}return Marketing.id="Marketing",Tr.default=Marketing,Tr}());gr.Marketing=o.default;const i=e(function requireOffer(){if(Sr)return Or;Sr=1;var e=Or&&Or.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Or,"__esModule",{value:!0});const t=e(requireRestful());class Offer extends t.default{get basePath(){return"/buy/offer/v1_beta"}getBidding(e){const t=encodeURIComponent(e);return this.get(`/bidding/${t}`)}placeProxyBid(e,t){const n=encodeURIComponent(e);return this.post(`/bidding/${n}/place_proxy_bid`,t)}}return Offer.id="Offer",Or.default=Offer,Or}());gr.Offer=i.default;const p=e(function requireOrder(){if(Cr)return br;Cr=1;var e=br&&br.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(br,"__esModule",{value:!0});const t=e(requireRestful());class Order extends t.default{get basePath(){return"/buy/order/v1"}applyCoupon(e,t){return e=encodeURIComponent(e),this.post(`/checkout_session/${e}/apply_coupon`,t)}getCheckoutSession(e){return e=encodeURIComponent(e),this.get(`/checkout_session/${e}`)}initiateCheckoutSession(e){return this.post("/checkout_session/initiate",e)}placeOrder(e){return e=encodeURIComponent(e),this.post(`/checkout_session/${e}/place_order`)}removeCoupon(e,t){return e=encodeURIComponent(e),this.post(`/checkout_session/${e}/remove_coupon`,t)}updatePaymentInfo(e,t){return e=encodeURIComponent(e),this.post(`/checkout_session/${e}/update_payment_info`,t)}updateQuantity(e,t){return e=encodeURIComponent(e),this.post(`/checkout_session/${e}/update_quantity`,t)}checkoutSessionId(e,t){return e=encodeURIComponent(e),this.post(`/checkout_session/${e}/update_quantity`,t)}updateShippingAddress(e,t){return e=encodeURIComponent(e),this.post(`/checkout_session/${e}/update_shipping_address`,t)}updateShippingOption(e,t){return e=encodeURIComponent(e),this.post(`/checkout_session/${e}/update_shipping_option`,t)}applyGuestCoupon(e,t){return e=encodeURIComponent(e),this.post(`/guest_checkout_session/${e}/apply_coupon`,t)}getGuestCheckoutSession(e){return e=encodeURIComponent(e),this.get(`/guest_checkout_session/${e}`)}initiateGuestCheckoutSession(e){return this.post("/guest_checkout_session/initiate",e)}initiateGuestPayment(e,t){return e=encodeURIComponent(e),this.post(`/guest_checkout_session/${e}/initiate_payment`,t)}placeGuestOrder(e,t){return e=encodeURIComponent(e),this.post(`/guest_checkout_session/${e}/place_order`,t)}removeGuestCoupon(e,t){return e=encodeURIComponent(e),this.post(`/guest_checkout_session/${e}/remove_coupon`,t)}updateGuestPaymentInfo(e,t){return e=encodeURIComponent(e),this.post(`/guest_checkout_session/${e}/update_payment_info`,t)}updateGuestQuantity(e,t){return e=encodeURIComponent(e),this.post(`/guest_checkout_session/${e}/update_quantity`,t)}updateGuestShippingAddress(e,t){return e=encodeURIComponent(e),this.post(`/guest_checkout_session/${e}/update_shipping_address`,t)}updateGuestShippingOption(e,t){return e=encodeURIComponent(e),this.post(`/guest_checkout_session/${e}/update_shipping_option`,t)}applyProxyGuestCoupon(e,t){return e=encodeURIComponent(e),this.post(`/proxy_guest_checkout_session/${e}/apply_coupon`,t)}getProxyGuestCheckoutSession(e){return e=encodeURIComponent(e),this.get(`/proxy_guest_checkout_session/${e}`)}initiateProxyGuestCheckoutSession(e){return this.post("/proxy_guest_checkout_session/initiate",e)}placeProxyGuestOrder(e,t){return e=encodeURIComponent(e),this.post(`/proxy_guest_checkout_session/${e}/place_order`,t)}removeProxyGuestCoupon(e,t){return e=encodeURIComponent(e),this.post(`/proxy_guest_checkout_session/${e}/remove_coupon`,t)}updateProxyGuestPaymentInfo(e,t,n,o,i,p){return e=encodeURIComponent(e),this.post(`/proxy_guest_checkout_session/${e}/update_payment_info`,p,{headers:{Authorization:t,"X-EBAY-C-DATE":n,"X-EBAY-C-REQUEST-NONCE":o,"X-EBAY-C-SIGNATURE":i}})}updateProxyGuestQuantity(e,t){return e=encodeURIComponent(e),this.post(`/proxy_guest_checkout_session/${e}/update_quantity`,t)}updateProxyGuestShippingAddress(e,t){return e=encodeURIComponent(e),this.post(`/proxy_guest_checkout_session/${e}/update_shipping_address`,t)}updateProxyGuestShippingOption(e,t){return e=encodeURIComponent(e),this.post(`/proxy_guest_checkout_session/${e}/update_shipping_option`,t)}getGuestPurchaseOrder(e){return e=encodeURIComponent(e),this.get(`/guest_purchase_order/${e}`)}getPurchaseOrder(e){return e=encodeURIComponent(e),this.get(`/purchase_order/${e}`)}}return Order.id="Order",br.default=Order,br}());gr.Order=p.default;const f=e(function requireDeal(){if(Nr)return Pr;Nr=1;var e=Pr&&Pr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pr,"__esModule",{value:!0});const t=e(requireRestful());class Deal extends t.default{get basePath(){return"/buy/deal/v1"}getDealItems({categoryIds:e,commissionable:t,deliveryCountry:n,limit:o,offset:i}){return this.get("/deal_item",{params:{category_ids:e,commissionable:t,delivery_country:n,limit:o,offset:i}})}getEvent(e){return e=encodeURIComponent(e),this.get(`/event/${e}`)}getEvents({limit:e,offset:t}){return this.get("/event",{params:{limit:e,offset:t}})}getEventItems(e,{categoryIds:t,deliveryCountry:n,limit:o,offset:i}={}){return this.get("/event_item",{params:{event_ids:e,limit:o,offset:i,category_ids:t,delivery_country:n}})}}return Deal.id="Deal",Pr.default=Deal,Pr}());gr.Deal=f.default;const _=e(function requireMarketplaceInsights(){if(vr)return Dr;vr=1;var e=Dr&&Dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dr,"__esModule",{value:!0});const t=e(requireRestful());class MarketplaceInsights extends t.default{get basePath(){return"/buy/marketplace_insights/v1_beta"}search({aspectFilter:e,categoryIds:t,epid:n,fieldgroups:o,filter:i,gtin:p,limit:f,offset:_,q:h,sort:T}){return this.get("/item_sales/search",{params:{aspect_filter:e,category_ids:t,epid:n,fieldgroups:o,filter:i,gtin:p,limit:f,offset:_,q:h,sort:T}})}}return MarketplaceInsights.id="MarketplaceInsights",Dr.default=MarketplaceInsights,Dr}());return gr.MarketplaceInsights=_.default,gr}var Ur,Lr={},Br={};var Fr,wr={};var xr,kr={};var Gr,qr={};var jr,Yr={};var Hr,$r={};var Vr,Kr={};var Wr,Xr,zr={};function requireCommerce(){if(Xr)return Lr;Xr=1;var e=Lr&&Lr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.Message=Lr.Media=Lr.Translation=Lr.Taxonomy=Lr.Notification=Lr.Identity=Lr.Charity=Lr.Catalog=void 0;const t=e(function requireCatalog(){if(Ur)return Br;Ur=1;var e=Br&&Br.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Br,"__esModule",{value:!0});const t=e(requireRestful());class Catalog extends t.default{get basePath(){return"/commerce/catalog/v1_beta"}getChangeRequest(e){return this.get(`/change_request/${e}`)}getChangeRequests({filter:e,limit:t,offset:n}={}){return this.get("/change_request",{params:{filter:e,limit:t,offset:n}})}getProduct(e){const t=encodeURIComponent(e);return this.get(`/product/${t}`)}search(e){return this.get("/product_summary/search",{params:e})}getProductMetadata(e,{otherApplicableCategoryIds:t,primaryCategoryId:n}={}){return this.get("/get_product_metadata",{params:{epid:e,other_applicable_category_ids:t,primary_category_id:n}})}getProductMetadataForCategories(e,t){return this.get("/get_product_metadata_for_categories",{params:{primary_category_id:e,other_applicable_category_ids:t}})}}return Catalog.id="Catalog",Br.default=Catalog,Br}());Lr.Catalog=t.default;const n=e(function requireCharity(){if(Fr)return wr;Fr=1;var e=wr&&wr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wr,"__esModule",{value:!0});const t=e(requireRestful());class Charity extends t.default{get basePath(){return"/commerce/charity/v1"}getCharityOrg(e){return e=encodeURIComponent(e),this.get(`/charity_org/${e}`)}getCharityOrgs({limit:e,offset:t,q:n,registrationIds:o}){return this.get("/charity_org",{params:{limit:e,offset:t,q:n,registration_ids:o}})}getCharityOrgByLegacyId(e){return this.get("/charity_org/get_charity_org_by_legacy_id",{params:{legacy_charity_org_id:e}})}}return Charity.id="Charity",wr.default=Charity,wr}());Lr.Charity=n.default;const o=e(function requireIdentity(){if(xr)return kr;xr=1;var e=kr&&kr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(kr,"__esModule",{value:!0});const t=e(requireRestful());class Identity extends t.default{get basePath(){return"/commerce/identity/v1"}get subdomain(){return"apiz"}getUser(){return this.get("/user/")}}return Identity.id="Identity",kr.default=Identity,kr}());Lr.Identity=o.default;const i=e(function requireMedia(){if(Gr)return qr;Gr=1;var e=qr&&qr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qr,"__esModule",{value:!0});const t=e(requireRestful());class Media extends t.default{get basePath(){return"/commerce/media/v1_beta"}get subdomain(){return"apim"}async createVideo(e){return this.post("/video",e)}async getVideo(e){return e=encodeURIComponent(e),this.get(`/video/${e}`)}async uploadVideo(e,t){return e=encodeURIComponent(e),this.post(`/video/${e}/upload`,t)}}return Media.id="Media",qr.default=Media,qr}());Lr.Media=i.default;const p=e(function requireNotification(){if(jr)return Yr;jr=1;var e=Yr&&Yr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yr,"__esModule",{value:!0});const t=e(requireRestful());class Notification extends t.default{get basePath(){return"/commerce/notification/v1"}getPublicKey(e){return e=encodeURIComponent(e),this.get(`/public_key/${e}`)}getTopic(e){return e=encodeURIComponent(e),this.get(`/topic/${e}`)}getTopics({limit:e,continuationToken:t}){return this.get("/topic",{params:{limit:e,continuation_token:t}})}getSubscriptions({limit:e,continuationToken:t}){return this.get("/subscription",{params:{limit:e,continuation_token:t}})}createSubscription(e){return this.post("/subscription",e)}getSubscription(e){return e=encodeURIComponent(e),this.get(`/subscription/${e}`)}updateSubscription(e,t){return e=encodeURIComponent(e),this.put(`/subscription/${e}`,t)}deleteSubscription(e){return e=encodeURIComponent(e),this.delete(`/subscription/${e}`)}enableSubscription(e){return e=encodeURIComponent(e),this.post(`/subscription/${e}/enable`)}disableSubscription(e){return e=encodeURIComponent(e),this.post(`/subscription/${e}/disable`)}test(e){return e=encodeURIComponent(e),this.post(`/subscription/${e}/test`)}getDestinations({limit:e,continuationToken:t}){return this.get("/destination",{params:{limit:e,continuation_token:t}})}createDestination(e){return this.post("/destination",e)}getDestination(e){return e=encodeURIComponent(e),this.get(`/destination/${e}`)}updateDestination(e,t){return e=encodeURIComponent(e),this.put(`/destination/${e}`,t)}deleteDestination(e){return e=encodeURIComponent(e),this.delete(`/destination/${e}`)}getConfig(){return this.get("/config")}updateConfig(e){return this.put("/config",e)}}return Notification.id="Notification",Yr.default=Notification,Yr}());Lr.Notification=p.default;const f=e(function requireTaxonomy(){if(Hr)return $r;Hr=1;var e=$r&&$r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($r,"__esModule",{value:!0});const t=e(requireRestful());class Taxonomy extends t.default{get basePath(){return"/commerce/taxonomy/v1"}getDefaultCategoryTreeId(e){return this.get("/get_default_category_tree_id",{params:{marketplace_id:e}})}getCategoryTree(e){const t=encodeURIComponent(e);return this.get(`/category_tree/${t}`)}getCategorySubtree(e,t){return e=encodeURIComponent(e),this.get(`/category_tree/${e}/get_category_subtree`,{params:{category_id:t}})}getCategorySuggestions(e,t){return this.get(`/category_tree/${e}/get_category_suggestions`,{params:{q:t}})}getItemAspectsForCategory(e,t){return e=encodeURIComponent(e),this.get(`/category_tree/${e}/get_item_aspects_for_category`,{params:{category_id:t}})}getCompatibilityProperties(e,t){return e=encodeURIComponent(e),this.get(`/category_tree/${e}/get_compatibility_properties`,{params:{category_id:t}})}getCompatibilityPropertyValues(e,t,n,o){return e=encodeURIComponent(e),this.get(`/category_tree/${e}/get_compatibility_property_values`,{params:{category_id:t,compatibility_property:n,...o?.trim()&&{filter:o}}})}fetchItemAspects(e){return e=encodeURIComponent(e),this.get(`/category_tree/${e}/fetch_item_aspects`,{responseType:"arraybuffer"})}}return Taxonomy.id="Taxonomy",$r.default=Taxonomy,$r}());Lr.Taxonomy=f.default;const _=e(function requireTranslation(){if(Vr)return Kr;Vr=1;var e=Kr&&Kr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kr,"__esModule",{value:!0});const t=e(requireRestful());class Translation extends t.default{get basePath(){return"/commerce/translation/v1_beta"}translate(e){return this.post("/translate",e)}}return Translation.id="Translation",Kr.default=Translation,Kr}());Lr.Translation=_.default;const h=e(function requireMessage(){if(Wr)return zr;Wr=1;var e=zr&&zr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zr,"__esModule",{value:!0});const t=e(requireRestful());class Message extends t.default{get basePath(){return"/commerce/message/v1"}getConversations({limit:e,offset:t,conversationStatus:n,conversationType:o,referenceId:i,referenceType:p,startTime:f,endTime:_,otherPartyUsername:h}={}){return this.get("/conversation",{params:{limit:e,offset:t,conversation_status:n,conversation_type:o,reference_id:i,reference_type:p,start_time:f,end_time:_,other_party_username:h}})}getConversation(e,{conversationType:t,limit:n,offset:o}){return this.get(`/conversation/${e}`,{params:{conversation_type:t,limit:n,offset:o}})}updateConversation(e){return this.post("/update_conversation",e)}bulkUpdateConversation(e){return this.post("/bulk_update_conversation",e)}sendMessage(e){return this.post("/send_message",e)}}return Message.id="Message",zr.default=Message,zr}());return Lr.Message=h.default,Lr}var Jr,Qr={},Zr={};var en,tn,rn={};function requireDeveloper(){if(tn)return Qr;tn=1;var e=Qr&&Qr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.KeyManagement=Qr.Analytics=void 0;const t=e(function requireAnalytics$1(){if(Jr)return Zr;Jr=1;var e=Zr&&Zr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zr,"__esModule",{value:!0});const t=e(requireRestful());class Analytics extends t.default{get basePath(){return"/developer/analytics/v1_beta"}getRateLimits(e,t){return this.get("/rate_limit/",{params:{api_context:e,api_name:t}})}getUserRateLimits(e,t){return this.get("/user_rate_limit/",{params:{api_context:e,api_name:t}})}}return Analytics.id="Analytics",Zr.default=Analytics,Zr}());Qr.Analytics=t.default;const n=e(function requireKeyManagement(){if(en)return rn;en=1;var e=rn&&rn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rn,"__esModule",{value:!0});const t=e(requireRestful());class KeyManagement extends t.default{get subdomain(){return"apiz"}get basePath(){return"/developer/key_management/v1"}getSigningKeys(){return this.get("/signing_key")}createSigningKey(e){return this.post("/signing_key",{signingKeyCipher:e})}getSigningKey(e){return this.get(`/signing_key/${e}`)}}return KeyManagement.id="KeyManagement",rn.default=KeyManagement,rn}());return Qr.KeyManagement=n.default,Qr}var nn,on={},an={};var sn,un={};var cn,ln={};var dn,pn,fn={};function requirePostOrder(){if(pn)return on;pn=1;var e=on&&on.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(on,"__esModule",{value:!0}),on.Return=on.Inquiry=on.Case=on.Cancellation=void 0;const t=e(function requireCancellation(){if(nn)return an;nn=1;var e=an&&an.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(an,"__esModule",{value:!0});const t=e(requireRestful());class Cancellation extends t.default{get basePath(){return"/post-order/v2"}get useIaf(){return!0}approveCancellationRequest(e){return e=encodeURIComponent(e),this.post(`/cancellation/${e}/approve`)}checkCancellationEligibility(e){return this.post("/cancellation/check_eligibility",{legacyOrderId:e})}confirmRefundReceived(e,t){return e=encodeURIComponent(e),this.post(`/cancellation/${e}/confirm`,t)}createCancellation(e){return this.post("/cancellation",e)}getCancellation(e,t){return e=encodeURIComponent(e),this.get(`/cancellation/${e}`,{params:{fieldgroups:t}})}rejectCancellationRequest(e,t){return e=encodeURIComponent(e),this.post(`/cancellation/${e}/reject`,t)}search(e){return this.get("/cancellation/search",{params:e})}}return Cancellation.id="Cancellation",an.default=Cancellation,an}());on.Cancellation=t.default;const n=e(function require_case(){if(sn)return un;sn=1;var e=un&&un.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(un,"__esModule",{value:!0});const t=e(requireRestful());class Case extends t.default{get basePath(){return"/post-order/v2"}get useIaf(){return!0}appealCaseDecision(e,t){const n=encodeURIComponent(e);return this.post(`/casemanagement/${n}/appeal`,t)}closeCase(e,t){const n=encodeURIComponent(e);return this.post(`/casemanagement/${n}/close`,t)}getCase(e){const t=encodeURIComponent(e);return this.get(`/casemanagement/${t}`)}issueCaseRefund(e,t){const n=encodeURIComponent(e);return this.post(`/casemanagement/${n}/issue_refund`,t)}provideReturnShipmentInfo(e,{shippingCarrierName:t,trackingNumber:n}){const o=encodeURIComponent(e);return this.post(`/casemanagement/${o}/provide_shipment_info`,{shippingCarrierName:t,trackingNumber:n})}providesReturnAddress(e,t){const n=encodeURIComponent(e);return this.post(`/casemanagement/${n}/provide_return_address`,t)}search(e){return this.get("/casemanagement/search",{params:e})}}return Case.id="Case",un.default=Case,un}());on.Case=n.default;const o=e(function requireInquiry(){if(cn)return ln;cn=1;var e=ln&&ln.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ln,"__esModule",{value:!0});const t=e(requireRestful());class Inquiry extends t.default{get basePath(){return"/post-order/v2"}get useIaf(){return!0}checkInquiryEligibility(e){return this.post("/inquiry/check_eligibility",e)}closeInquiry(e,t){return e=encodeURIComponent(e),"string"==typeof t?.closeReason&&(t.closeReason=t.closeReason.trim()),this.post(`/inquiry/${e}/close`,t)}confirmInquiryRefund(e){return e=encodeURIComponent(e),this.post(`/inquiry/${e}/confirm_refund`)}createInquiry(e){return"string"==typeof e.desiredOutcome&&(e.desiredOutcome=e.desiredOutcome.trim()),this.post("/inquiry",e)}escalateInquiry(e,t){return e=encodeURIComponent(e),t.escalateInquiryReason=t.escalateInquiryReason.trim(),this.post(`/inquiry/${e}/escalate`,t)}getInquiry(e){return e=encodeURIComponent(e),this.get(`/inquiry/${e}`)}issueInquiryRefund(e,t){return e=encodeURIComponent(e),this.post(`/inquiry/${e}/issue_refund`,t)}provideInquiryRefundInfo(e,t){return e=encodeURIComponent(e),this.post(`/inquiry/${e}/provide_refund_info`,t)}provideInquiryShipmentInfo(e,t){return e=encodeURIComponent(e),this.post(`/inquiry/${e}/provide_shipment_info`,t)}search(e){return this.get("/inquiry/search",{params:e})}sendInquiryMessage(e,t){return e=encodeURIComponent(e),this.post(`/inquiry/${e}/send_message`,t)}}return Inquiry.id="Inquiry",ln.default=Inquiry,ln}());on.Inquiry=o.default;const i=e(function require_return(){if(dn)return fn;dn=1;var e=fn&&fn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fn,"__esModule",{value:!0});const t=e(requireRestful());class Return extends t.default{get basePath(){return"/post-order/v2"}get useIaf(){return!0}addShippingLabelInfo(e,t){const n=encodeURIComponent(e);return this.post(`/return/${n}/add_shipping_label`,t)}cancelReturnRequest(e,t){const n=encodeURIComponent(e);return t&&t.buyerCloseReason&&(t.buyerCloseReason=t.buyerCloseReason.trim()),this.post(`/return/${n}/cancel`,t)}checkReturnEligibility(e){return this.post("/return/check_eligibility",e)}checkShippingLabelEligibility(e){const t=encodeURIComponent(e);return this.get(`/return/${t}/check_label_print_eligibility`)}createReturnDraft(e){return this.post("/return/draft",e)}createReturnRequest(e,t){return this.post("/return",e,{params:{fieldgroups:t}})}createReturnShippingLabel(e){const t=encodeURIComponent(e);return this.post(`/return/${t}/initiate_shipping_label`)}deleteReturnDraftFile(e,t){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.delete(`/return/draft/${e}/file/${t}`)}escalateReturn(e,t){const n=encodeURIComponent(e);return this.post(`/return/${n}/escalate`,t)}getReturn(e,t){return e=encodeURIComponent(e),this.get(`/return/${e}`,{params:{fieldgroups:t}})}getReturnDraft(e){const t=encodeURIComponent(e);return this.get(`/return/draft/${t}`)}getReturnDraftFiles(e){const t=encodeURIComponent(e);return this.get(`/return/draft/${t}/files`)}getReturnEstimate(e){return this.post("/return/estimate",e)}getReturnFiles(e){const t=encodeURIComponent(e);return this.get(`/return/${t}/files`)}getReturnPreferences(){return this.get("/return/preference")}getReturnShippingLabel(e){return e=encodeURIComponent(e),this.get(`/return/${e}/get_shipping_label`)}getShipmentTrackingInfo(e,t,n){return e=encodeURIComponent(e),this.get(`/return/${e}/tracking`,{params:{carrier_used:t,tracking_number:n}})}issueReturnRefund(e,t){return e=encodeURIComponent(e),this.post(`/return/${e}/issue_refund`,t)}markReturnReceived(e,t){return e=encodeURIComponent(e),this.post(`/return/${e}/mark_as_received`,t)}markReturnRefundReceived(e){return e=encodeURIComponent(e),this.post(`/return/${e}/mark_refund_received`)}markReturnRefundSent(e,t){return e=encodeURIComponent(e),this.post(`/return/${e}/mark_refund_sent`,t)}markReturnShipped(e,t){return e=encodeURIComponent(e),this.post(`/return/${e}/mark_as_shipped`,t)}processReturnRequest(e,t){return e=encodeURIComponent(e),this.post(`/return/${e}/decide`,t)}search(e){return this.get("/return/search",{params:e})}sendReturnMessage(e,t){return e=encodeURIComponent(e),this.post(`/return/${e}/send_message`,t)}sendReturnShippingLabel(e,t){return e=encodeURIComponent(e),this.post(`/return/${e}/send_shipping_label`,{},{params:{to_email_address:t}})}setReturnPreferences(e){return this.post("/return/preference",{rmaRequired:e})}submitReturnFile(e,t){return e=encodeURIComponent(e),this.post(`/return/${e}/file/submit`,{filePurpose:t})}updateReturnDraft(e,t){return e=encodeURIComponent(e),this.put(`/return/draft/${e}`,{returnRequest:t})}updateShipmentTrackingInfo(e,t){return e=encodeURIComponent(e),this.put(`/return/${e}/update_tracking`,t)}uploadReturnDraftFile(e,t){return e=encodeURIComponent(e),this.post(`/return/draft/${e}/file/upload`,t)}uploadReturnFile(e,t){return e=encodeURIComponent(e),this.post(`/return/${e}/file/upload`,t)}voidShippingLabel(e,t){return e=encodeURIComponent(e),this.post(`/return/${e}/void_shipping_label`,t)}}return Return.id="Return",fn.default=Return,fn}());return on.Return=i.default,on}var En,_n={},hn={};var gn,mn={};var yn,Rn={};var An,In={};var Tn,Sn={};var On,Cn={};var bn,Nn={};var Pn,vn={};var Mn,Dn={};var Un,Ln={};var Bn,Fn={};var wn,xn={};var kn,Gn={};var qn,jn,Yn={};function requireSell(){if(jn)return _n;jn=1;var e=_n&&_n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_n,"__esModule",{value:!0}),_n.Listing=_n.Negotiation=_n.Logistics=_n.Feed=_n.Finances=_n.Recommendation=_n.Metadata=_n.Marketing=_n.Inventory=_n.Fulfillment=_n.Analytics=_n.Compliance=_n.AccountV2=_n.AccountV1=void 0;const t=e(function requireV1(){if(En)return hn;En=1;var e=hn&&hn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hn,"__esModule",{value:!0});const t=e(requireRestful());class AccountV1 extends t.default{get basePath(){return"/sell/account/v1"}getCustomPolicies(e){return this.get("/custom_policy/",{params:{policy_types:e}})}createCustomPolicy(e){return this.post("/custom_policy/",e)}getCustomPolicy(e){return e=encodeURIComponent(e),this.get(`/custom_policy/${e}`)}updateCustomPolicy(e,t){return e=encodeURIComponent(e),this.put(`/custom_policy/${e}`,t)}getFulfillmentPolicies(e){return this.get("/fulfillment_policy",{params:{marketplace_id:e}})}createFulfillmentPolicy(e){return this.post("/fulfillment_policy/",e)}updateFulfillmentPolicy(e,t){return e=encodeURIComponent(e),this.put(`/fulfillment_policy/${e}`,t)}deleteFulfillmentPolicy(e){return e=encodeURIComponent(e),this.delete(`/fulfillment_policy/${e}`)}getFulfillmentPolicy(e){return this.get(`/fulfillment_policy/${e}`)}getFulfillmentPolicyByName(e,t){return this.get("/fulfillment_policy/get_by_policy_name",{params:{marketplace_id:e,name:t}})}getPaymentPolicies(e){return this.get("/payment_policy",{params:{marketplace_id:e}})}getPaymentPolicy(e){return e=encodeURIComponent(e),this.get(`/payment_policy/${e}`)}createPaymentPolicy(e){return this.post("/payment_policy",e)}updatePaymentPolicy(e,t){return e=encodeURIComponent(e),this.put(`/payment_policy/${e}`,t)}deletePaymentPolicy(e){return e=encodeURIComponent(e),this.delete(`/payment_policy/${e}`)}getPaymentPolicyByName(e,t){return this.get("/payment_policy/get_by_policy_name",{params:{marketplace_id:e,name:t}})}getPaymentsProgram(e,t){e=encodeURIComponent(e);const n=encodeURIComponent(t);return this.get(`/payments_program/${e}/${n}`)}getPaymentsProgramOnboarding(e,t){e=encodeURIComponent(e);const n=encodeURIComponent(t);return this.get(`/payments_program/${e}/${n}/onboarding`)}getPrivileges(){return this.get("/privilege")}getOptedInPrograms(){return this.get("/program/get_opted_in_programs")}optInToProgram(e){return this.post("/program/opt_in",e)}optOutOfProgram(e){return this.post("/program/opt_out",e)}getRateTables(e){return this.get("/rate_table",{params:{country_code:e}})}getReturnPolicies(e){return this.get("/return_policy",{params:{marketplace_id:e}})}getReturnPolicy(e){return e=encodeURIComponent(e),this.get(`/return_policy/${e}`)}createReturnPolicy(e){return this.post("/return_policy",e)}updateReturnPolicy(e,t){return e=encodeURIComponent(e),this.put(`/return_policy/${e}`,t)}deleteReturnPolicy(e){return e=encodeURIComponent(e),this.delete(`/return_policy/${e}`)}getReturnPolicyByName(e,t){return this.get("/return_policy/get_by_policy_name",{params:{marketplace_id:e,name:t}})}getSalesTax(e,t){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.get(`/sales_tax/${e}/${t}`)}createOrReplaceSalesTax(e,t,n){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.put(`/sales_tax/${e}/${t}`,n)}deleteSalesTax(e,t){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.delete(`/sales_tax/${e}/${t}`)}getSalesTaxes(e){return this.get("/sales_tax",{params:{country_code:e}})}getSubscription({limit:e,continuationToken:t}={}){return this.get("/subscription",{params:{limit:e,continuation_token:t}})}getKYC(){return this.get("/kyc")}getAdvertisingEligibility(e){return this.get("/advertising_eligibility",{params:{program_types:e}})}getInventoryLocation(e){return e=encodeURIComponent(e),this.get(`/location/${e}`)}createInventoryLocation(e,t){return e=encodeURIComponent(e),this.post(`/location/${e}`,t)}deleteInventoryLocation(e){return e=encodeURIComponent(e),this.delete(`/location/${e}`)}disableInventoryLocation(e){return e=encodeURIComponent(e),this.post(`/location/${e}/disable`)}enableInventoryLocation(e){return e=encodeURIComponent(e),this.post(`/location/${e}/enable`)}getInventoryLocations({limit:e,offset:t}={}){return this.get("/location",{params:{limit:e,offset:t}})}updateInventoryLocation(e,t){return e=encodeURIComponent(e),this.post(`/location/${e}/update_location_details`,t)}getSalesTaxJurisdictions(e){return e=encodeURIComponent(e),this.get(`/country/${e}/sales_tax_jurisdiction`)}}return AccountV1.id="AccountV1",hn.default=AccountV1,hn}());_n.AccountV1=t.default;const n=e(function requireV2(){if(gn)return mn;gn=1;var e=mn&&mn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(mn,"__esModule",{value:!0});const t=e(requireRestful());class AccountV2 extends t.default{get basePath(){return"/sell/account/v2"}getRateTable(e){return e=encodeURIComponent(e),this.get(`/rate_table/${e}`)}updateShippingCost(e,t){return e=encodeURIComponent(e),this.post(`/rate_table/${e}/update_shipping_cost`,t)}getPayoutSettings(){return this.get("/payout_settings")}updatePayoutPercentage(e){return this.post("/payout_settings/update_percentage",e)}}return AccountV2.id="AccountV2",mn.default=AccountV2,mn}());_n.AccountV2=n.default;const o=e(function requireAnalytics(){if(yn)return Rn;yn=1;var e=Rn&&Rn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rn,"__esModule",{value:!0});const t=e(requireRestful());class Analytics extends t.default{get basePath(){return"/sell/analytics/v1"}findSellerStandardsProfiles(){return this.get("/seller_standards_profile")}getSellerStandardsProfile(e,t){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.get(`/seller_standards_profile/${e}/${t}`)}getTrafficReport({dimension:e,filter:t,metric:n,sort:o}={}){return this.get("/traffic_report",{params:{dimension:e,filter:t,metric:n,sort:o}})}getCustomerServiceMetric(e,t){return this.get(`/customer_service_metric/${e}/${t}`)}}return Analytics.id="Analytics",Rn.default=Analytics,Rn}());_n.Analytics=o.default;const i=e(function requireCompliance(){if(An)return In;An=1;var e=In&&In.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(In,"__esModule",{value:!0});const t=e(requireRestful());class Compliance extends t.default{get basePath(){return"/sell/compliance/v1"}getListingViolationsSummary(e){return this.get("/listing_violation_summary",{params:{compliance_type:e}})}getListingViolations({complianceType:e,offset:t,listingId:n,limit:o}={}){return this.get("/listing_violation",{params:{compliance_type:e,offset:t,listing_id:n,limit:o}})}suppressViolation(e){return this.post("/suppress_listing_violation",e)}}return Compliance.id="Compliance",In.default=Compliance,In}());_n.Compliance=i.default;const p=e(function requireFinances(){if(Tn)return Sn;Tn=1;var e=Sn&&Sn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Sn,"__esModule",{value:!0});const t=e(requireRestful());class Finances extends t.default{get basePath(){return"/sell/finances/v1"}get subdomain(){return"apiz"}getPayout(e){return e=encodeURIComponent(e),this.get(`/payout/${e}`)}getPayouts({filter:e,limit:t,offset:n,sort:o}={}){return this.get("/payout",{params:{filter:e,limit:t,offset:n,sort:o}})}getPayoutSummary({filter:e}={}){return this.get("/payout_summary",{params:{filter:e}})}getTransactions({filter:e,limit:t,offset:n,sort:o}={}){return this.get("/transaction",{params:{filter:e,limit:t,offset:n,sort:o}})}getTransactionSummary({filter:e}={}){return this.get("/transaction_summary",{params:{filter:e}})}getTransfer(e){return e=encodeURIComponent(e),this.get(`/transfer/${e}`)}getSellerFundsSummary(){return this.get("/seller_funds_summary")}}return Finances.id="Finances",Sn.default=Finances,Sn}());_n.Finances=p.default;const f=e(function requireFulfillment(){if(On)return Cn;On=1;var e=Cn&&Cn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Cn,"__esModule",{value:!0});const t=requireRequest(),n=e(requireRestful());class Fulfillment extends n.default{get basePath(){return"/sell/fulfillment/v1"}getOrder(e,{fieldGroups:t}={}){return this.get(`/order/${e}`,{params:{fieldGroups:t}})}getOrders({filter:e,limit:t,offset:n,orderIds:o,fieldGroups:i}={}){return this.get("/order",{params:{filter:e,limit:t,offset:n,orderIds:Array.isArray(o)?o.join():o,fieldGroups:i}})}issueRefund(e,t){return e=encodeURIComponent(e),this.post(`/order/${e}/issue_refund`,t)}getShippingFulfillments(e){return e=encodeURIComponent(e),this.get(`/order/${e}/shipping_fulfillment`)}createShippingFulfillment(e,t){return e=encodeURIComponent(e),this.post(`/order/${e}/shipping_fulfillment`,t)}getShippingFulfillment(e,t){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.get(`/order/${e}/shipping_fulfillment/${t}`)}getPaymentDispute(e){return this.get(`/payment_dispute/${e}`)}fetchEvidenceContent(e){return this.get(`/payment_dispute/${e}/fetch_evidence_content`)}getActivities(e){return this.get(`/payment_dispute/${e}/activity`)}getPaymentDisputeSummaries({orderId:e,buyerUsername:t,openDateFrom:n,openDateTo:o,paymentDisputeStatus:i,limit:p,offset:f}){return this.get("/payment_dispute_summary",{params:{order_id:e,buyer_username:t,open_date_from:n,open_date_to:o,payment_dispute_status:i,limit:p,offset:f}})}contestPaymentDispute(e,t){return this.post(`/payment_dispute/${e}/contest`,t)}acceptPaymentDispute(e){return this.post(`/payment_dispute/${e}/accept`)}uploadEvidenceFile(e,n){return this.post(`/payment_dispute/${e}/upload_evidence_file`,n,{headers:{...t.multipartHeader}})}addEvidence(e,t){return this.post(`/payment_dispute/${e}/add_evidence`,t)}updateEvidence(e,t){return this.post(`/payment_dispute/${e}/update_evidence`,t)}}return Fulfillment.id="Fulfillment",Cn.default=Fulfillment,Cn}());_n.Fulfillment=f.default;const _=e(function requireInventory(){if(bn)return Nn;bn=1;var e=Nn&&Nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nn,"__esModule",{value:!0});const t=e(requireRestful());class Inventory extends t.default{get basePath(){return"/sell/inventory/v1"}getInventoryLocation(e){const t=encodeURIComponent(e);return this.get(`/location/${t}`)}disableInventoryLocation(e){const t=encodeURIComponent(e);return this.post(`/location/${t}/disable`)}enableInventoryLocation(e){const t=encodeURIComponent(e);return this.post(`/location/${t}/enable`)}getInventoryLocations({limit:e,offset:t}={}){return this.get("/location",{params:{limit:e,offset:t}})}createInventoryLocation(e,t){const n=encodeURIComponent(e);return this.post(`/location/${n}`,t)}deleteInventoryLocation(e){const t=encodeURIComponent(e);return this.delete(`/location/${t}`)}updateInventoryLocation(e,t){const n=encodeURIComponent(e);return this.post(`/location/${n}/update_location_details`,t)}getInventoryItem(e){return e=encodeURIComponent(e),this.get(`/inventory_item/${e}`)}createOrReplaceInventoryItem(e,t){return e=encodeURIComponent(e),this.put(`/inventory_item/${e}`,t)}deleteInventoryItem(e){return e=encodeURIComponent(e),this.delete(`/inventory_item/${e}`)}getInventoryItems({limit:e,offset:t}={}){return this.get("/inventory_item",{params:{limit:e,offset:t}})}bulkUpdatePriceQuantity(e){return this.post("/bulk_update_price_quantity",e)}bulkCreateOrReplaceInventoryItem(e){return this.post("/bulk_create_or_replace_inventory_item",e)}bulkGetInventoryItem(e){return this.post("/bulk_get_inventory_item",e)}getProductCompatibility(e){return e=encodeURIComponent(e),this.get(`/inventory_item/${e}/product_compatibility`)}createOrReplaceProductCompatibility(e,t){return e=encodeURIComponent(e),this.put(`/inventory_item/${e}/product_compatibility`,t)}deleteProductCompatibility(e){return e=encodeURIComponent(e),this.delete(`/inventory_item/${e}/product_compatibility`)}getOffers({sku:e,marketplaceId:t,format:n,limit:o,offset:i}={}){return this.get("/offer",{params:{sku:e,marketplace_id:t,format:n,limit:o,offset:i}})}getOffer(e){return e=encodeURIComponent(e),this.get(`/offer/${e}`)}createOffer(e){return this.post("/offer",e)}updateOffer(e,t){return e=encodeURIComponent(e),this.put(`/offer/${e}`,t)}deleteOffer(e){return this.delete(`/offer/${e}`)}publishOffer(e){const t=encodeURIComponent(e);return this.post(`/offer/${t}/publish`)}publishOfferByInventoryItemGroup(e){return this.post("/offer/publish_by_inventory_item_group",e)}withdrawOfferByInventoryItemGroup(e){return this.post("/offer/withdraw_by_inventory_item_group",e)}getListingFees(e){return this.post("/offer/get_listing_fees",e)}bulkCreateOffer(e){return this.post("/bulk_create_offer",e)}bulkPublishOffer(e){return this.post("/bulk_publish_offer",e)}withdrawOffer(e){const t=encodeURIComponent(e);return this.post(`/offer/${t}/withdraw`)}getInventoryItemGroup(e){return e=encodeURIComponent(e),this.get(`/inventory_item_group/${e}`)}createOrReplaceInventoryItemGroup(e,t){return e=encodeURIComponent(e),this.put(`/inventory_item_group/${e}`,t)}deleteInventoryItemGroup(e){return this.delete(`/inventory_item_group/${e}`)}bulkMigrateListing(e){return this.post("/bulk_migrate_listing",e)}getSkuLocationMapping(e,t){return t=encodeURIComponent(t),e=encodeURIComponent(e),this.get(`/listing/${e}/sku/${t}/locations`)}createOrReplaceSkuLocationMapping(e,t,n){return t=encodeURIComponent(t),e=encodeURIComponent(e),this.put(`/listing/${e}/sku/${t}/locations`,n)}deleteSkuLocationMapping(e,t){return t=encodeURIComponent(t),e=encodeURIComponent(e),this.delete(`/listing/${e}/sku/${t}/locations`)}}return Inventory.id="Inventory",Nn.default=Inventory,Nn}());_n.Inventory=_.default;const h=e(function requireMarketing(){if(Pn)return vn;Pn=1;var e=vn&&vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vn,"__esModule",{value:!0});const t=e(requireRestful());class Marketing extends t.default{get basePath(){return"/sell/marketing/v1"}bulkCreateAdsByInventoryReference(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/bulk_create_ads_by_inventory_reference`,t)}bulkCreateAdsByListingId(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/bulk_create_ads_by_listing_id`,t)}bulkDeleteAdsByInventoryReference(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/bulk_delete_ads_by_inventory_reference`,t)}bulkDeleteAdsByListingId(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/bulk_delete_ads_by_listing_id`,t)}bulkUpdateAdsBidByInventoryReference(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/bulk_update_ads_bid_by_inventory_reference`,t)}bulkUpdateAdsBidByListingId(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/bulk_update_ads_bid_by_listing_id`,t)}bulkUpdateAdsStatus(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/bulk_update_ads_status`,t)}bulkUpdateAdsStatusByListingId(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/bulk_update_ads_status_by_listing_id`,t)}launchCampaign(e){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/launch`)}setupQuickCampaign(e){return this.post("/ad_campaign/setup_quick_campaign",e)}getAds(e,{limit:t,listingIds:n,offset:o}={}){return e=encodeURIComponent(e),this.get(`/ad_campaign/${e}/ad`,{params:{limit:t,listing_ids:n,offset:o}})}createAdByListingId(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/ad`,t)}createAdsByInventoryReference(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/create_ads_by_inventory_reference`,t)}getAd(e,t){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.get(`/ad_campaign/${e}/ad/${t}`)}deleteAd(e,t){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.delete(`/ad_campaign/${e}/ad/${t}`)}deleteAdsByInventoryReference(e){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/delete_ads_by_inventory_reference`)}getAdsByInventoryReference(e,t,n){return e=encodeURIComponent(e),this.get(`/ad_campaign/${e}/get_ads_by_inventory_reference`,{params:{inventory_reference_id:t,inventory_reference_type:n}})}updateBid(e,t,n){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.post(`/ad_campaign/${e}/ad/${t}/update_bid`,n)}getAdGroups(e,{adGroupStatus:t,limit:n,offset:o}={}){return e=encodeURIComponent(e),this.get(`/ad_campaign/${e}/ad_group`,{params:{ad_group_status:t,limit:n,offset:o}})}createAdGroup(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/ad_group`,t)}getAdGroup(e,t){return t=encodeURIComponent(t),e=encodeURIComponent(e),this.get(`/ad_campaign/${e}/ad_group/${t}`)}updateAdGroup(e,t,n){return t=encodeURIComponent(t),e=encodeURIComponent(e),this.put(`/ad_campaign/${e}/ad_group/${t}`,n)}suggestBids(e,t,n){return t=encodeURIComponent(t),e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/ad_group/${t}/suggest_bids`,n)}suggestKeywords(e,t,n){return t=encodeURIComponent(t),e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/ad_group/${t}/suggest_keywords`,n)}cloneCampaign(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/clone`,t)}getCampaigns({campaignName:e,campaignStatus:t,endDateRange:n,limit:o,offset:i,startDateRange:p}={}){return this.get("/ad_campaign",{params:{campaign_name:e,campaign_status:t,end_date_range:n,limit:o,offset:i,start_date_range:p}})}getCampaign(e){return e=encodeURIComponent(e),this.get(`/ad_campaign/${e}`)}createCampaign(e){return this.post("/ad_campaign",e)}deleteCampaign(e){return e=encodeURIComponent(e),this.delete(`/ad_campaign/${e}`)}endCampaign(e){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/end`)}findCampaignByAdReference({inventoryReferenceId:e,inventoryReferenceType:t,listingId:n}={}){return this.get("/ad_campaign/find_campaign_by_ad_reference",{params:{inventory_reference_id:e,inventory_reference_type:t,listing_id:n}})}getCampaignByName(e){return this.get("/ad_campaign/get_campaign_by_name",{params:{campaign_name:e}})}pauseCampaign(e){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/pause`)}resumeCampaign(e){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/resume`)}suggestItems(e,{categoryIds:t,limit:n,offset:o}={}){return e=encodeURIComponent(e),this.get(`/ad_campaign/${e}/suggest_items`,{params:{category_ids:t,limit:n,offset:o}})}updateAdRateStrategy(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/update_ad_rate_strategy`,t)}updateCampaignBudget(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/update_campaign_budget`,t)}updateCampaignIdentification(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/update_campaign_identification`,t)}bulkCreateKeyword(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/bulk_create_keyword`,t)}bulkUpdateKeyword(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/bulk_update_keyword`,t)}getKeywords(e,{adGroupIds:t,keywordStatus:n,limit:o,offset:i}={}){return e=encodeURIComponent(e),this.get(`/ad_campaign/${e}/keyword`,{params:{ad_group_ids:t,keyword_status:n,limit:o,offset:i}})}createKeyword(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/keyword`,t)}getKeyword(e,t){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.get(`/ad_campaign/${e}/keyword/${t}`)}updateKeyword(e,t,n){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.put(`/ad_campaign/${e}/keyword/${t}`,n)}bulkCreateNegativeKeyword(e){return this.post("/bulk_create_negative_keyword",e)}bulkUpdateNegativeKeyword(e){return this.post("/bulk_update_negative_keyword",e)}getNegativeKeywords({adGroupIds:e,campaignIds:t,limit:n,negativeKeywordStatus:o,offset:i}={}){return this.get("/negative_keyword",{params:{ad_group_ids:e,campaign_ids:t,limit:n,negative_keyword_status:o,offset:i}})}createNegativeKeyword(e){return this.post("/negative_keyword",e)}getNegativeKeyword(e){return e=encodeURIComponent(e),this.get(`/negative_keyword/${e}`)}updateNegativeKeyword(e,t){return e=encodeURIComponent(e),this.put(`/negative_keyword/${e}`,t)}getReport(e){return e=encodeURIComponent(e),this.get(`/ad_report/${e}`)}getReportMetadata(){return this.get("/ad_report_metadata")}getReportMetadataForReportType(e){return e=encodeURIComponent(e),this.get(`/ad_report_metadata/${e}`)}getReportTasks({limit:e,offset:t,reportTaskStatuses:n}={}){return this.get("/ad_report_task",{params:{limit:e,offset:t,report_task_statuses:n}})}getReportTask(e){return e=encodeURIComponent(e),this.get(`/ad_report_task/${e}`)}createReportTask(e){return this.post("/ad_report_task",e)}deleteReportTask(e){return e=encodeURIComponent(e),this.delete(`/ad_report_task/${e}`)}createItemPriceMarkdownPromotion(e){return this.post("/item_price_markdown",e)}updateItemPriceMarkdownPromotion(e,t){return e=encodeURIComponent(e),this.put(`/item_price_markdown/${e}`,t)}deleteItemPriceMarkdownPromotion(e){return e=encodeURIComponent(e),this.delete(`/item_price_markdown/${e}`)}getItemPriceMarkdownPromotion(e){return e=encodeURIComponent(e),this.get(`/item_price_markdown/${e}`)}createItemPromotion(e){return this.post("/item_promotion",e)}updateItemPromotion(e,t){return e=encodeURIComponent(e),this.put(`/item_promotion/${e}`,t)}deleteItemPromotion(e){return e=encodeURIComponent(e),this.delete(`/item_promotion/${e}`)}getItemPromotion(e){return e=encodeURIComponent(e),this.get(`/item_promotion/${e}`)}getListingSet(e,{limit:t,offset:n,q:o,sort:i,status:p}={}){return e=encodeURIComponent(e),this.get(`/promotion/${e}/get_listing_set`,{params:{limit:t,offset:n,q:o,sort:i,status:p}})}getPromotions(e,{limit:t,offset:n,promotionStatus:o,promotionType:i,q:p,sort:f}={}){return this.get("/promotion",{params:{marketplace_id:e,limit:t,offset:n,promotion_status:o,promotion_type:i,q:p,sort:f}})}pausePromotion(e){const t=encodeURIComponent(e);return this.post(`/promotion/${t}/pause`)}resumePromotion(e){const t=encodeURIComponent(e);return this.post(`/promotion/${t}/resume`)}getPromotionReports(e,{limit:t,offset:n,promotionStatus:o,promotionType:i,q:p}={}){return this.get("/promotion_report",{params:{marketplace_id:e,limit:t,offset:n,promotion_status:o,promotion_type:i,q:p}})}getPromotionSummaryReport(e){return this.get("/promotion_summary_report",{params:{marketplace_id:e}})}getEmailCampaign(e){return e=encodeURIComponent(e),this.get(`/email_campaign/${e}`)}getEmailCampaigns({limit:e,q:t,offset:n,sort:o}={}){return this.get("/email_campaign",{params:{limit:e,offset:n,q:t,sort:o}})}createEmailCampaign(e){return this.post("/email_campaign",e)}updateEmailCampaign(e,t){return e=encodeURIComponent(e),this.put(`/email_campaign/${e}`,t)}deleteEmailCampaign(e){return e=encodeURIComponent(e),this.delete(`/email_campaign/${e}`)}getEmailPreview(e){return e=encodeURIComponent(e),this.get(`/email_campaign/${e}/email_preview`)}getAudiences(){return this.get("/email_campaign/audience")}getEmailReport(e,t){return this.get("/email_campaign/report",{params:{startDate:e,endDate:t}})}}return Marketing.id="Marketing",vn.default=Marketing,vn}());_n.Marketing=h.default;const T=e(function requireMetadata(){if(Mn)return Dn;Mn=1;var e=Dn&&Dn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dn,"__esModule",{value:!0});const t=e(requireRestful());class Metadata extends t.default{get basePath(){return"/sell/metadata/v1"}getSalesTaxJurisdictions(e){return e=encodeURIComponent(e),this.get(`/country/${e}/sales_tax_jurisdiction`)}getAutomotivePartsCompatibilityPolicies(e,t){return e=encodeURIComponent(e),this.get(`/marketplace/${e}/get_automotive_parts_compatibility_policies`,{params:{filter:t}})}getExtendedProducerResponsibilityPolicies(e,t){return e=encodeURIComponent(e),this.get(`/marketplace/${e}/get_extended_producer_responsibility_policies`,{params:{filter:t}})}getItemConditionPolicies(e,t){return e=encodeURIComponent(e),this.get(`/marketplace/${e}/get_item_condition_policies`,{params:{filter:t}})}getListingStructurePolicies(e,t){return e=encodeURIComponent(e),this.get(`/marketplace/${e}/get_listing_structure_policies`,{params:{filter:t}})}getNegotiatedPricePolicies(e,t){return e=encodeURIComponent(e),this.get(`/marketplace/${e}/get_negotiated_price_policies`,{params:{filter:t}})}getProductAdoptionPolicies(e,t){return e=encodeURIComponent(e),this.get(`/marketplace/${e}/get_product_adoption_policies`,{params:{filter:t}})}getReturnPolicies(e,t){return e=encodeURIComponent(e),this.get(`/marketplace/${e}/get_return_policies`,{params:{filter:t}})}getHazardousMaterialsLabels(e){return e=encodeURIComponent(e),this.get(`/marketplace/${e}/get_hazardous_materials_labels`)}}return Metadata.id="Metadata",Dn.default=Metadata,Dn}());_n.Metadata=T.default;const O=e(function requireRecommendation(){if(Un)return Ln;Un=1;var e=Ln&&Ln.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ln,"__esModule",{value:!0});const t=e(requireRestful());class Recommendation extends t.default{get basePath(){return"/sell/recommendation/v1"}findListingRecommendations({filter:e,limit:t,offset:n}={},o){return this.post("/find",{data:o,params:{filter:e,limit:t,offset:n}})}}return Recommendation.id="Recommendation",Ln.default=Recommendation,Ln}());_n.Recommendation=O.default;const D=e(function requireFeed(){if(Bn)return Fn;Bn=1;var e=Fn&&Fn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Fn,"__esModule",{value:!0});const t=requireRequest(),n=e(requireRestful());class Feed extends n.default{get basePath(){return"/sell/feed/v1"}getOrderTasks({dateRange:e,feedType:t,limit:n,lookBackDays:o,offset:i,scheduleId:p}={}){return this.get("/order_task",{params:{date_range:e,feed_type:t,limit:n,look_back_days:o,offset:i,schedule_id:p}})}createOrderTask(e){return this.post("/order_task",e)}getOrderTask(e){return e=encodeURIComponent(e),this.get(`/order_task/${e}`)}getInventoryTasks({feedType:e,scheduleId:t,lookBackDays:n,dateRange:o,limit:i,offset:p}={}){return this.get("/inventory_task",{params:{feed_type:e,schedule_id:t,look_back_days:n,date_range:o,limit:i,offset:p}})}createInventoryTask(e){return this.post("/inventory_task",e)}getInventoryTask(e){return e=encodeURIComponent(e),this.get(`/inventory_task/${e}`)}getSchedules({feedType:e,limit:t,offset:n}={}){return this.get("/schedule",{params:{feed_type:e,limit:t,offset:n}})}createSchedule(e){return this.post("/schedule",e)}getSchedule(e){return e=encodeURIComponent(e),this.get(`/schedule/${e}`)}updateSchedule(e,t){return e=encodeURIComponent(e),this.put(`/schedule/${e}`,t)}deleteSchedule(e){return e=encodeURIComponent(e),this.delete(`/schedule/${e}`)}getLatestResultFile(e){return e=encodeURIComponent(e),this.get(`/schedule/${e}/download_result_file`,{responseType:"arraybuffer",responseEncoding:"binary"})}getScheduleTemplate(e){return e=encodeURIComponent(e),this.get(`/schedule_template/${e}`)}getScheduleTemplates({feedType:e,limit:t,offset:n}={}){return this.get("/schedule_template",{params:{feed_type:e,limit:t,offset:n}})}getTasks({dateRange:e,feedType:t,limit:n,lookBackDays:o,offset:i,scheduleId:p}={}){return this.get("/task",{params:{date_range:e,feed_type:t,limit:n,look_back_days:o,offset:i,schedule_id:p}})}createTask(e){return this.post("/task",e)}getInputFile(e){return e=encodeURIComponent(e),this.get(`/task/${e}/download_input_file`)}getResultFile(e){return e=encodeURIComponent(e),this.get(`/task/${e}/download_result_file`,{responseType:"arraybuffer",responseEncoding:"binary"})}getTask(e){return e=encodeURIComponent(e),this.get(`/task/${e}`)}uploadFile(e,n){return e=encodeURIComponent(e),this.post(`/task/${e}/upload_file`,n,{headers:t.multipartHeader})}getCustomerServiceMetricTasks({dateRange:e,feedType:t,limit:n,lookBackDays:o,offset:i}={}){return this.get("/customer_service_metric_task",{params:{date_range:e,feed_type:t,limit:n,look_back_days:o,offset:i}})}createCustomerServiceMetricTask(e,t){return this.post("/customer_service_metric_task",t,{headers:{"accept-language":e}})}getCustomerServiceMetricTask(e){return e=encodeURIComponent(e),this.get(`/customer_service_metric_task/${e}`)}}return Feed.id="Feed",Fn.default=Feed,Fn}());_n.Feed=D.default;const j=e(function requireLogistics(){if(wn)return xn;wn=1;var e=xn&&xn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xn,"__esModule",{value:!0});const t=e(requireRestful());class Logistics extends t.default{get basePath(){return"/sell/logistics/v1_beta"}createShippingQuote(e){return this.post("/shipping_quote",e)}getShippingQuote(e){return e=encodeURIComponent(e),this.get(`/shipping_quote/${e}`)}createFromShippingQuote(e){return this.post("/shipment/create_from_shipping_quote",e)}getShipment(e){return this.get(`/shipment/${e}`)}downloadLabelFile(e){return this.get(`/shipment/${e}/download_label_file`)}cancelShipment(e){return this.post(`/shipment/${e}/cancel`)}}return Logistics.id="Logistics",xn.default=Logistics,xn}());_n.Logistics=j.default;const $=e(function requireNegotiation(){if(kn)return Gn;kn=1;var e=Gn&&Gn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gn,"__esModule",{value:!0});const t=e(requireRestful());class Negotiation extends t.default{get basePath(){return"/sell/negotiation/v1"}findEligibleItems({limit:e,offset:t}={}){return this.get("/find_eligible_items",{params:{limit:e,offset:t}})}sendOfferToInterestedBuyers(e){return this.post("/send_offer_to_interested_buyers",e)}}return Negotiation.id="Negotiation",Gn.default=Negotiation,Gn}());_n.Negotiation=$.default;const V=e(function requireListing(){if(qn)return Yn;qn=1;var e=Yn&&Yn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yn,"__esModule",{value:!0});const t=e(requireRestful());class Listing extends t.default{get basePath(){return"/sell/listing/v1_beta"}createItemDraft(e){return this.post("/item_draft/",e)}}return Listing.id="Listing",Yn.default=Listing,Yn}());return _n.Listing=V.default,_n}var Hn,$n,Vn={},Kn={},Wn={};function requireClientAlerts(){return $n||($n=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EventType=void 0;const t=function requireTypes$1(){return Hn||(Hn=1,Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.EventType=void 0,function(e){e.AskSellerQuestion="AskSellerQuestion",e.BestOffer="BestOffer",e.BestOfferDeclined="BestOfferDeclined",e.BestOfferPlaced="BestOfferPlaced",e.BidPlaced="BidPlaced",e.BidReceived="BidReceived",e.CounterOfferReceived="CounterOfferReceived",e.CustomCode="CustomCode",e.EndOfAuction="EndOfAuction",e.FeedbackLeft="FeedbackLeft",e.FeedbackReceived="FeedbackReceived",e.FeedbackStarChanged="FeedbackStarChanged",e.FixedPriceEndOfTransaction="FixedPriceEndOfTransaction",e.FixedPriceTransaction="FixedPriceTransaction",e.ItemAddedToWatchList="ItemAddedToWatchList",e.ItemEnded="ItemEnded",e.ItemListed="ItemListed",e.ItemLost="ItemLost",e.ItemMarkedPaid="ItemMarkedPaid",e.ItemMarkedShipped="ItemMarkedShipped",e.ItemRemovedFromWatchList="ItemRemovedFromWatchList",e.ItemSold="ItemSold",e.ItemUnsold="ItemUnsold",e.ItemWon="ItemWon",e.OutBid="OutBid",e.PriceChange="PriceChange",e.SecondChanceOffer="SecondChanceOffer",e.WatchedItemEndingSoon="WatchedItemEndingSoon"}(e||(Wn.EventType=e={}))),Wn;var e}();var n;Object.defineProperty(e,"EventType",{enumerable:!0,get:function(){return t.EventType}}),function(e){e[e.GetPublicAlerts=0]="GetPublicAlerts",e[e.GetUserAlerts=1]="GetUserAlerts",e[e.Login=2]="Login",e[e.Logout=3]="Logout"}(n||(n={})),e.default=n}(Kn)),Kn}var Xn,zn={};var Jn,Qn={};var Zn,eo={};var to,ro,no,oo={};function requireTraditional$1(){if(ro)return Vn;ro=1;var e,t=Vn&&Vn.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=Vn&&Vn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=Vn&&Vn.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},function(o){if(o&&o.__esModule)return o;var i={};if(null!=o)for(var p=e(o),f=0;f<p.length;f++)"default"!==p[f]&&t(i,o,p[f]);return n(i,o),i}),i=Vn&&Vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vn,"__esModule",{value:!0});const p=requireLib$1(),f=requireErrors(),_=i(requireApi()),h=i(requireClientAlerts()),T=i(function requireFinding(){return Xn||(Xn=1,Object.defineProperty(zn,"__esModule",{value:!0}),function(e){e[e.findCompletedItems=0]="findCompletedItems",e[e.findItemsAdvanced=1]="findItemsAdvanced",e[e.findItemsByCategory=2]="findItemsByCategory",e[e.findItemsByKeywords=3]="findItemsByKeywords",e[e.findItemsByProduct=4]="findItemsByProduct",e[e.findItemsIneBayStores=5]="findItemsIneBayStores",e[e.getHistograms=6]="getHistograms",e[e.getSearchKeywordsRecommendation=7]="getSearchKeywordsRecommendation",e[e.getVersion=8]="getVersion"}(e||(e={})),zn.default=e),zn;var e}()),O=i(function requireMerchandising(){return Jn||(Jn=1,Object.defineProperty(Qn,"__esModule",{value:!0}),function(e){e[e.getMostWatchedItems=0]="getMostWatchedItems",e[e.getRelatedCategoryItems=1]="getRelatedCategoryItems",e[e.getSimilarItems=2]="getSimilarItems",e[e.getVersion=3]="getVersion"}(e||(e={})),Qn.default=e),Qn;var e}()),D=i(function requireShopping(){return Zn||(Zn=1,Object.defineProperty(eo,"__esModule",{value:!0}),function(e){e[e.FindProducts=0]="FindProducts",e[e.GetCategoryInfo=1]="GetCategoryInfo",e[e.GeteBayTime=2]="GeteBayTime",e[e.GetItemStatus=3]="GetItemStatus",e[e.GetMultipleItems=4]="GetMultipleItems",e[e.GetShippingCosts=5]="GetShippingCosts",e[e.GetSingleItem=6]="GetSingleItem",e[e.GetUserProfile=7]="GetUserProfile"}(e||(e={})),eo.default=e),eo;var e}()),j=i(function requireTrading(){return to||(to=1,Object.defineProperty(oo,"__esModule",{value:!0}),function(e){e[e.AddDispute=0]="AddDispute",e[e.AddDisputeResponse=1]="AddDisputeResponse",e[e.AddFixedPriceItem=2]="AddFixedPriceItem",e[e.AddItem=3]="AddItem",e[e.AddItemFromSellingManagerTemplate=4]="AddItemFromSellingManagerTemplate",e[e.AddItems=5]="AddItems",e[e.AddMemberMessageAAQToPartner=6]="AddMemberMessageAAQToPartner",e[e.AddMemberMessageRTQ=7]="AddMemberMessageRTQ",e[e.AddMemberMessagesAAQToBidder=8]="AddMemberMessagesAAQToBidder",e[e.AddOrder=9]="AddOrder",e[e.AddSecondChanceItem=10]="AddSecondChanceItem",e[e.AddSellingManagerInventoryFolder=11]="AddSellingManagerInventoryFolder",e[e.AddSellingManagerProduct=12]="AddSellingManagerProduct",e[e.AddSellingManagerTemplate=13]="AddSellingManagerTemplate",e[e.AddToItemDescription=14]="AddToItemDescription",e[e.AddToWatchList=15]="AddToWatchList",e[e.AddTransactionConfirmationItem=16]="AddTransactionConfirmationItem",e[e.CompleteSale=17]="CompleteSale",e[e.ConfirmIdentity=18]="ConfirmIdentity",e[e.DeleteMyMessages=19]="DeleteMyMessages",e[e.DeleteSellingManagerInventoryFolder=20]="DeleteSellingManagerInventoryFolder",e[e.DeleteSellingManagerItemAutomationRule=21]="DeleteSellingManagerItemAutomationRule",e[e.DeleteSellingManagerProduct=22]="DeleteSellingManagerProduct",e[e.DeleteSellingManagerTemplate=23]="DeleteSellingManagerTemplate",e[e.DeleteSellingManagerTemplateAutomationRule=24]="DeleteSellingManagerTemplateAutomationRule",e[e.DisableUnpaidItemAssistance=25]="DisableUnpaidItemAssistance",e[e.EndFixedPriceItem=26]="EndFixedPriceItem",e[e.EndItem=27]="EndItem",e[e.EndItems=28]="EndItems",e[e.ExtendSiteHostedPictures=29]="ExtendSiteHostedPictures",e[e.FetchToken=30]="FetchToken",e[e.GetAccount=31]="GetAccount",e[e.GetAdFormatLeads=32]="GetAdFormatLeads",e[e.GetAllBidders=33]="GetAllBidders",e[e.GetApiAccessRules=34]="GetApiAccessRules",e[e.GetBestOffers=35]="GetBestOffers",e[e.GetBidderList=36]="GetBidderList",e[e.GetCategories=37]="GetCategories",e[e.GetCategoryFeatures=38]="GetCategoryFeatures",e[e.GetCategoryMappings=39]="GetCategoryMappings",e[e.GetCategorySpecifics=40]="GetCategorySpecifics",e[e.GetChallengeToken=41]="GetChallengeToken",e[e.GetCharities=42]="GetCharities",e[e.GetClientAlertsAuthToken=43]="GetClientAlertsAuthToken",e[e.GetContextualKeywords=44]="GetContextualKeywords",e[e.GetDescriptionTemplates=45]="GetDescriptionTemplates",e[e.GetDispute=46]="GetDispute",e[e.GeteBayDetails=47]="GeteBayDetails",e[e.GeteBayOfficialTime=48]="GeteBayOfficialTime",e[e.GetFeedback=49]="GetFeedback",e[e.GetItem=50]="GetItem",e[e.GetItemsAwaitingFeedback=51]="GetItemsAwaitingFeedback",e[e.GetItemShipping=52]="GetItemShipping",e[e.GetItemTransactions=53]="GetItemTransactions",e[e.GetMemberMessages=54]="GetMemberMessages",e[e.GetMessagePreferences=55]="GetMessagePreferences",e[e.GetMyeBayBuying=56]="GetMyeBayBuying",e[e.GetMyeBayReminders=57]="GetMyeBayReminders",e[e.GetMyeBaySelling=58]="GetMyeBaySelling",e[e.GetMyMessages=59]="GetMyMessages",e[e.GetNotificationPreferences=60]="GetNotificationPreferences",e[e.GetNotificationsUsage=61]="GetNotificationsUsage",e[e.GetOrders=62]="GetOrders",e[e.GetOrderTransactions=63]="GetOrderTransactions",e[e.GetPromotionalSaleDetails=64]="GetPromotionalSaleDetails",e[e.GetSellerDashboard=65]="GetSellerDashboard",e[e.GetSellerEvents=66]="GetSellerEvents",e[e.GetSellerList=67]="GetSellerList",e[e.GetSellerTransactions=68]="GetSellerTransactions",e[e.GetSellingManagerAlerts=69]="GetSellingManagerAlerts",e[e.GetSellingManagerEmailLog=70]="GetSellingManagerEmailLog",e[e.GetSellingManagerInventory=71]="GetSellingManagerInventory",e[e.GetSellingManagerInventoryFolder=72]="GetSellingManagerInventoryFolder",e[e.GetSellingManagerItemAutomationRule=73]="GetSellingManagerItemAutomationRule",e[e.GetSellingManagerSaleRecord=74]="GetSellingManagerSaleRecord",e[e.GetSellingManagerSoldListings=75]="GetSellingManagerSoldListings",e[e.GetSellingManagerTemplateAutomationRule=76]="GetSellingManagerTemplateAutomationRule",e[e.GetSellingManagerTemplates=77]="GetSellingManagerTemplates",e[e.GetSessionID=78]="GetSessionID",e[e.GetShippingDiscountProfiles=79]="GetShippingDiscountProfiles",e[e.GetStore=80]="GetStore",e[e.GetStoreCategoryUpdateStatus=81]="GetStoreCategoryUpdateStatus",e[e.GetStoreCustomPage=82]="GetStoreCustomPage",e[e.GetStoreOptions=83]="GetStoreOptions",e[e.GetStorePreferences=84]="GetStorePreferences",e[e.GetSuggestedCategories=85]="GetSuggestedCategories",e[e.GetTaxTable=86]="GetTaxTable",e[e.GetTokenStatus=87]="GetTokenStatus",e[e.GetUser=88]="GetUser",e[e.GetUserContactDetails=89]="GetUserContactDetails",e[e.GetUserDisputes=90]="GetUserDisputes",e[e.GetUserPreferences=91]="GetUserPreferences",e[e.GetVeROReasonCodeDetails=92]="GetVeROReasonCodeDetails",e[e.GetVeROReportStatus=93]="GetVeROReportStatus",e[e.LeaveFeedback=94]="LeaveFeedback",e[e.MoveSellingManagerInventoryFolder=95]="MoveSellingManagerInventoryFolder",e[e.PlaceOffer=96]="PlaceOffer",e[e.RelistFixedPriceItem=97]="RelistFixedPriceItem",e[e.RelistItem=98]="RelistItem",e[e.RemoveFromWatchList=99]="RemoveFromWatchList",e[e.RespondToBestOffer=100]="RespondToBestOffer",e[e.RespondToFeedback=101]="RespondToFeedback",e[e.ReviseCheckoutStatus=102]="ReviseCheckoutStatus",e[e.ReviseFixedPriceItem=103]="ReviseFixedPriceItem",e[e.ReviseInventoryStatus=104]="ReviseInventoryStatus",e[e.ReviseItem=105]="ReviseItem",e[e.ReviseMyMessages=106]="ReviseMyMessages",e[e.ReviseMyMessagesFolders=107]="ReviseMyMessagesFolders",e[e.ReviseSellingManagerInventoryFolder=108]="ReviseSellingManagerInventoryFolder",e[e.ReviseSellingManagerProduct=109]="ReviseSellingManagerProduct",e[e.ReviseSellingManagerSaleRecord=110]="ReviseSellingManagerSaleRecord",e[e.ReviseSellingManagerTemplate=111]="ReviseSellingManagerTemplate",e[e.RevokeToken=112]="RevokeToken",e[e.SaveItemToSellingManagerTemplate=113]="SaveItemToSellingManagerTemplate",e[e.SellerReverseDispute=114]="SellerReverseDispute",e[e.SendInvoice=115]="SendInvoice",e[e.SetMessagePreferences=116]="SetMessagePreferences",e[e.SetNotificationPreferences=117]="SetNotificationPreferences",e[e.SetPromotionalSale=118]="SetPromotionalSale",e[e.SetPromotionalSaleListings=119]="SetPromotionalSaleListings",e[e.SetSellingManagerFeedbackOptions=120]="SetSellingManagerFeedbackOptions",e[e.SetSellingManagerItemAutomationRule=121]="SetSellingManagerItemAutomationRule",e[e.SetSellingManagerTemplateAutomationRule=122]="SetSellingManagerTemplateAutomationRule",e[e.SetShippingDiscountProfiles=123]="SetShippingDiscountProfiles",e[e.SetStore=124]="SetStore",e[e.SetStoreCategories=125]="SetStoreCategories",e[e.SetStoreCustomPage=126]="SetStoreCustomPage",e[e.SetStorePreferences=127]="SetStorePreferences",e[e.SetTaxTable=128]="SetTaxTable",e[e.SetUserNotes=129]="SetUserNotes",e[e.SetUserPreferences=130]="SetUserPreferences",e[e.UploadSiteHostedPictures=131]="UploadSiteHostedPictures",e[e.ValidateChallengeInput=132]="ValidateChallengeInput",e[e.ValidateTestUserRegistration=133]="ValidateTestUserRegistration",e[e.VerifyAddFixedPriceItem=134]="VerifyAddFixedPriceItem",e[e.VerifyAddItem=135]="VerifyAddItem",e[e.VerifyAddSecondChanceItem=136]="VerifyAddSecondChanceItem",e[e.VerifyRelistItem=137]="VerifyRelistItem",e[e.VeROReportItems=138]="VeROReportItems"}(e||(e={})),oo.default=e),oo;var e}()),$=o(requireXMLRequest());class Traditional extends _.default{constructor(){super(...arguments),this.createXMLRequest=(e,t)=>async(n,o)=>{const i={...$.defaultApiConfig,...o,parseOptions:{...$.defaultApiConfig.parseOptions,...this.config.parseOptions,...o?.parseOptions,processEntities:{...$.defaultApiConfig.parseOptions.processEntities,...this.config.parseOptions?.processEntities,...o?.parseOptions?.processEntities}}};try{return await this.request(i,t,e,n)}catch(o){if(this.shouldRefreshToken(o))return await this.request(i,t,e,n,!0);throw o}}}createTradingApi(){if("number"!=typeof this.config.siteId)throw new Error("siteId is required for trading API.");return this.createTraditionalXMLApi({endpoint:{production:"api.ebay.com",sandbox:"api.sandbox.ebay.com"},path:"/ws/api.dll",calls:j.default,xmlns:"urn:ebay:apis:eBLBaseComponents",headers:(e,t)=>({"X-EBAY-API-CALL-NAME":e,"X-EBAY-API-CERT-NAME":this.config.certId,"X-EBAY-API-APP-NAME":this.config.appId,"X-EBAY-API-DEV-NAME":this.config.devId,"X-EBAY-API-SITEID":this.config.siteId,"X-EBAY-API-COMPATIBILITY-LEVEL":967,...t&&{"X-EBAY-API-IAF-TOKEN":t}})})}createShoppingApi(){if("number"!=typeof this.config.siteId)throw new Error("siteId is required for shopping API.");return this.createTraditionalXMLApi({endpoint:{production:"open.api.ebay.com",sandbox:"open.api.sandbox.ebay.com"},path:"/shopping",xmlns:"urn:ebay:apis:eBLBaseComponents",calls:D.default,headers:(e,t)=>({"X-EBAY-API-CALL-NAME":e,"X-EBAY-API-SITE-ID":this.config.siteId,"X-EBAY-API-VERSION":863,"X-EBAY-API-REQUEST-ENCODING":"xml",...t&&{"X-EBAY-API-IAF-TOKEN":t}})})}createFindingApi(){return this.createTraditionalXMLApi({endpoint:{production:"svcs.ebay.com",sandbox:"svcs.sandbox.ebay.com"},path:"/services/search/FindingService/v1",xmlns:"http://www.ebay.com/marketplace/search/v1/services",calls:T.default,headers:e=>({"X-EBAY-SOA-SECURITY-APPNAME":this.config.appId,"X-EBAY-SOA-OPERATION-NAME":e})})}createClientAlertsApi(){if("number"!=typeof this.config.siteId)throw new Error("siteId is required for client alerts API.");const e={endpoint:{production:"clientalerts.ebay.com",sandbox:"clientalerts.sandbox.ebay.com"},calls:h.default},t=e.endpoint[this.config.sandbox?"sandbox":"production"],paramsSerializer=e=>(0,p.stringify)(e,{allowDots:!0}).replace(/%5B/gi,"(").replace(/%5D/gi,")"),n={appid:this.config.appId,siteid:this.config.siteId,version:643},o={};return Object.keys(e.calls).forEach(e=>{o[e]=async o=>this.req.get(t,{paramsSerializer:{serialize:paramsSerializer},params:{...n,...o,callname:e}})}),o}createMerchandisingApi(){return this.createTraditionalXMLApi({endpoint:{production:"svcs.ebay.com",sandbox:"svcs.sandbox.ebay.com"},path:"/MerchandisingService",xmlns:"http://www.ebay.com/marketplace/services",calls:O.default,headers:e=>({"EBAY-SOA-CONSUMER-ID":this.config.appId,"X-EBAY-SOA-OPERATION-NAME":e})})}createBusinessPolicyManagementApi(){throw new Error("Important! This API is deprecated and will be decommissioned on January 31, 2022. We recommend that you migrate to the fulfillment_policy, payment_policy, and return_policy resources of the Account API to set up and manage all of your fulfillment, payment, and return business policies.")}shouldRefreshToken(e){return!!this.config.autoRefreshToken&&(e.name===f.EBayIAFTokenExpired.name||e.name===f.EBayIAFTokenInvalid.name||e.name===f.EBayAuthTokenIsHardExpired.name||e.name===f.EBayAuthTokenIsInvalid.name)}async request(e,t,n,o,i=!1){try{i&&await this.auth.OAuth2.refreshToken();const p=await this.getConfig(t,n,e),f=new $.default(n,o,p,this.req);return await f.request()}catch(e){(0,f.handleEBayError)(e)}}async getConfig(e,t,n){const o=this.auth.authNAuth.eBayAuthToken,i=!o&&n.useIaf?await this.auth.OAuth2.getAccessToken():null,p=!o&&i,f=this.config.sandbox?e.endpoint.sandbox:e.endpoint.production;return{...n,xmlns:e.xmlns,endpoint:`https://${f}${e.path}`,headers:{...e.headers(t,p?i:null),...n.headers},digitalSignatureHeaders:t=>n.sign?this.getDigitalSignatureHeaders({method:"POST",authority:f,path:e.path},t):{},...p?{}:{eBayAuthToken:o}}}createTraditionalXMLApi(e){const t={};return Object.keys(e.calls).forEach(n=>{t[n]=this.createXMLRequest(n,e)}),t}}return Vn.default=Traditional,Vn}var io,ao={},so={};var uo,co,lo={};function requireEnums(){return co||(co=1,e=ao,t=ao&&ao.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=ao&&ao.__exportStar||function(e,n){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(n,o)||t(n,e,o)},Object.defineProperty(e,"__esModule",{value:!0}),n(function requireApiEnums(){return io||(io=1,Object.defineProperty(so,"__esModule",{value:!0}),so.MarketplaceId=so.SiteId=void 0,function(e){e[e.EBAY_US=0]="EBAY_US",e[e.EBAY_ENCA=2]="EBAY_ENCA",e[e.EBAY_GB=3]="EBAY_GB",e[e.EBAY_AU=15]="EBAY_AU",e[e.EBAY_AT=16]="EBAY_AT",e[e.EBAY_FRBE=23]="EBAY_FRBE",e[e.EBAY_FR=71]="EBAY_FR",e[e.EBAY_DE=77]="EBAY_DE",e[e.EBAY_MOTOR=100]="EBAY_MOTOR",e[e.EBAY_IT=101]="EBAY_IT",e[e.EBAY_NLBE=123]="EBAY_NLBE",e[e.EBAY_NL=146]="EBAY_NL",e[e.EBAY_ES=186]="EBAY_ES",e[e.EBAY_CH=193]="EBAY_CH",e[e.EBAY_HK=201]="EBAY_HK",e[e.EBAY_IN=203]="EBAY_IN",e[e.EBAY_IE=205]="EBAY_IE",e[e.EBAY_MY=207]="EBAY_MY",e[e.EBAY_FRCA=210]="EBAY_FRCA",e[e.EBAY_PH=211]="EBAY_PH",e[e.EBAY_PL=212]="EBAY_PL",e[e.EBAY_SG=216]="EBAY_SG"}(e||(so.SiteId=e={})),function(e){e.EBAY_US="EBAY_US",e.EBAY_AT="EBAY_AT",e.EBAY_AU="EBAY_AU",e.EBAY_BE="EBAY_BE",e.EBAY_CA="EBAY_CA",e.EBAY_CH="EBAY_CH",e.EBAY_DE="EBAY_DE",e.EBAY_ES="EBAY_ES",e.EBAY_FR="EBAY_FR",e.EBAY_GB="EBAY_GB",e.EBAY_HK="EBAY_HK",e.EBAY_IE="EBAY_IE",e.EBAY_IN="EBAY_IN",e.EBAY_IT="EBAY_IT",e.EBAY_MY="EBAY_MY",e.EBAY_NL="EBAY_NL",e.EBAY_PH="EBAY_PH",e.EBAY_PL="EBAY_PL",e.EBAY_SG="EBAY_SG",e.EBAY_TH="EBAY_TH",e.EBAY_TW="EBAY_TW",e.EBAY_VN="EBAY_VN",e.EBAY_MOTORS_US="EBAY_MOTORS_US"}(t||(so.MarketplaceId=t={}))),so;var e,t}(),e),n(function requireRestfulEnums(){return uo||(uo=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.PackageType=lo.WeightUnitOfMeasure=lo.LengthUnitOfMeasure=lo.CancelReason=lo.ReasonForRefund=lo.RegionType=lo.ReturnShippingCostPayer=lo.ReturnMethod=lo.RefundMethod=lo.Metric=lo.FormatType=lo.Marketplace=lo.LocaleEnum=lo.Condition=lo.ContentLanguage=lo.Locale=lo.CurrencyCode=lo.CountryCode=lo.RecipientAccountReferenceType=lo.PaymentMethodType=lo.PaymentsProgramStatus=lo.PaymentsProgramType=lo.ShippingCostType=lo.ShippingOptionType=lo.TimeDurationUnit=lo.StoreType=lo.ActivityOption=lo.RefundFeeType=lo.FilePurpose=lo.ReturnState=lo.ReturnCountFilter=lo.CategoryType=lo.Decision=lo.EscalateReason=lo.GetReturnFieldGroupEnum=lo.ReturnType=lo.RequestType=lo.ReturnReason=lo.ShippingCarrier=lo.InquiryStatusFilter=lo.CaseSearchFieldGroup=lo.CaseStatusFilter=lo.InquirySearchFieldGroup=lo.UserRoleFilter=void 0,function(e){e.BUYER="BUYER",e.SELLER="SELLER"}(e||(lo.UserRoleFilter=e={})),function(e){e.DEFAULT="DEFAULT",e.SUMMARY="SUMMARY"}(t||(lo.InquirySearchFieldGroup=t={})),function(e){e.CLOSED="CLOSED",e.CS_CLOSED="CS_CLOSED",e.ON_HOLD="ON_HOLD",e.OPEN="OPEN",e.OTHER="OTHER",e.REFUND_AGREED_BUT_FAILED="REFUND_AGREED_BUT_FAILED",e.WAITING_CS="WAITING_CS",e.WAITING_DELIVERY="WAITING_DELIVERY"}(n||(lo.CaseStatusFilter=n={})),function(e){e.DEFAULT="DEFAULT",e.SUMMARY="SUMMARY"}(o||(lo.CaseSearchFieldGroup=o={})),function(e){e.CLOSED="CLOSED",e.CLOSED_WITH_ESCALATION="CLOSED_WITH_ESCALATION",e.CS_CLOSED="CS_CLOSED",e.OPEN="OPEN",e.OTHER="OTHER",e.PENDING="PENDING",e.WAITING_BUYER_RESPONSE="WAITING_BUYER_RESPONSE",e.WAITING_SELLER_RESPONSE="WAITING_SELLER_RESPONSE"}(i||(lo.InquiryStatusFilter=i={})),function(e){e.AUSTRALIA_POST="AUSTRALIA_POST",e.BARTOLINI="BARTOLINI",e.CANADA_POST="CANADA_POST",e.COLISSIMO="COLISSIMO",e.COLLECT_PLUS="COLLECT_PLUS",e.CORREOS="CORREOS",e.DEUTSCHE_POST="DEUTSCHE_POST",e.DHL="DHL",e.FEDEX="FEDEX",e.HERMES="HERMES",e.LA_POSTE="LA_POSTE",e.MONDIAL_RELAY="MONDIAL_RELAY",e.MRW="MRW",e.NEXIVE="NEXIVE",e.OTHER="OTHER",e.PARCEL_FORCE="PARCEL_FORCE",e.POSTE="POSTE",e.ROYAL_MAIL="ROYAL_MAIL",e.SEUR="SEUR",e.UNKNOWN="UNKNOWN",e.UPS="UPS",e.USPS="USPS"}(p||(lo.ShippingCarrier=p={})),function(e){e.ARRIVED_DAMAGED="ARRIVED_DAMAGED",e.ARRIVED_LATE="ARRIVED_LATE",e.BUYER_CANCEL_ORDER="BUYER_CANCEL_ORDER",e.BUYER_NO_SHOW="BUYER_NO_SHOW",e.BUYER_NOT_SCHEDULED="BUYER_NOT_SCHEDULED",e.BUYER_REFUSED_TO_PICKUP="BUYER_REFUSED_TO_PICKUP",e.DEFECTIVE_ITEM="DEFECTIVE_ITEM",e.DIFFERENT_FROM_LISTING="DIFFERENT_FROM_LISTING",e.EXPIRED_ITEM="EXPIRED_ITEM",e.FAKE_OR_COUNTERFEIT="FAKE_OR_COUNTERFEIT",e.FOUND_BETTER_PRICE="FOUND_BETTER_PRICE",e.IN_STORE_RETURN="IN_STORE_RETURN",e.MISSING_PARTS="MISSING_PARTS",e.NO_LONGER_NEED_ITEM="NO_LONGER_NEED_ITEM",e.NO_REASON="NO_REASON",e.NOT_AS_DESCRIBED="NOT_AS_DESCRIBED",e.ORDERED_ACCIDENTALLY="ORDERED_ACCIDENTALLY",e.ORDERED_DIFFERENT_ITEM="ORDERED_DIFFERENT_ITEM",e.ORDERED_WRONG_ITEM="ORDERED_WRONG_ITEM",e.OTHER="OTHER",e.OUT_OF_STOCK="OUT_OF_STOCK",e.RETURNING_GIFT="RETURNING_GIFT",e.VALET_DELIVERY_ISSUES="VALET_DELIVERY_ISSUES",e.VALET_UNAVAILABLE="VALET_UNAVAILABLE",e.WRONG_SIZE="WRONG_SIZE"}(f||(lo.ReturnReason=f={})),function(e){e.CREATE="CREATE",e.REQUEST="REQUEST",e.UNKNOWN="UNKNOWN"}(_||(lo.RequestType=_={})),function(e){e.EXCHANGE="EXCHANGE",e.MONEY_BACK="MONEY_BACK",e.REPLACEMENT="REPLACEMENT",e.UNKNOWN="UNKNOWN"}(h||(lo.ReturnType=h={})),function(e){e.FULL="FULL",e.NONE="NONE",e.SUMMARY="SUMMARY"}(T||(lo.GetReturnFieldGroupEnum=T={})),function(e){e.BUYER_NORESPONSE="BUYER_NORESPONSE",e.BUYER_RETURNED_WRONG_ITEM="BUYER_RETURNED_WRONG_ITEM",e.DISAGREE_WITH_RETURN_REASON="DISAGREE_WITH_RETURN_REASON",e.ITEM_NOT_RECEIVED="ITEM_NOT_RECEIVED",e.ITEM_RECEIVED_IN_DIFFERENT_CONDITION="ITEM_RECEIVED_IN_DIFFERENT_CONDITION",e.NEW_ITEM_NOT_RECEIVED="NEW_ITEM_NOT_RECEIVED",e.NO_REFUND_FOR_RETURN_SHIPPING="NO_REFUND_FOR_RETURN_SHIPPING",e.NO_REFUND_RECEIVED="NO_REFUND_RECEIVED",e.OTHER="OTHER",e.RECEIVED_WRONG_ITEM="RECEIVED_WRONG_ITEM",e.SELLER_NO_RESPONSE="SELLER_NO_RESPONSE",e.TROUBLE_COMMUNICATION_WITH_BUYER="TROUBLE_COMMUNICATION_WITH_BUYER",e.TROUBLE_COMMUNICATION_WITH_SELLER="TROUBLE_COMMUNICATION_WITH_SELLER"}(O||(lo.EscalateReason=O={})),function(e){e.ACCEPT_PARTIAL_REFUND="ACCEPT_PARTIAL_REFUND",e.ACCEPT_REPLACEMENT_OFFER="ACCEPT_REPLACEMENT_OFFER",e.APPROVE="APPROVE",e.APPROVE_WITHOUT_EBAY_LABEL="APPROVE_WITHOUT_EBAY_LABEL",e.DECLINE="DECLINE",e.DECLINE_PARTIAL_REFUND="DECLINE_PARTIAL_REFUND",e.DECLINE_REPLACEMENT_OFFER="DECLINE_REPLACEMENT_OFFER",e.OFFER_PARTIAL_REFUND="OFFER_PARTIAL_REFUND",e.OFFER_REPLACEMENT="OFFER_REPLACEMENT",e.OFFER_RETURN="OFFER_RETURN",e.OFFER_RETURN_WITHOUT_LABEL="OFFER_RETURN_WITHOUT_LABEL",e.PROVIDE_RMA="PROVIDE_RMA",e.UNKNOWN="UNKNOWN"}(D||(lo.Decision=D={})),function(e){e.MOTORS_VEHICLES="MOTORS_VEHICLES",e.ALL_EXCLUDING_MOTORS_VEHICLES="ALL_EXCLUDING_MOTORS_VEHICLES"}(j||(lo.CategoryType=j={})),function(e){e.ALL_OPEN="ALL_OPEN",e.ALL_OPEN_REPLACEMENT="ALL_OPEN_REPLACEMENT",e.ALL_OPEN_RETURN="ALL_OPEN_RETURN",e.CLOSED="CLOSED",e.EBAY_PLUS="EBAY_PLUS",e.ITEM_DELIVERED="ITEM_DELIVERED",e.ITEM_SHIPPED="ITEM_SHIPPED",e.RETURN_STARTED="RETURN_STARTED",e.SELLER_ACTION_DUE="SELLER_ACTION_DUE",e.SELLER_ACTION_OVERDUE="SELLER_ACTION_OVERDUE",e.SELLER_NO_ACTION="SELLER_NO_ACTION",e.UNKNOWN="UNKNOWN"}($||(lo.ReturnCountFilter=$={})),function(e){e.AUTO_REFUND_INITIATED="AUTO_REFUND_INITIATED",e.CLOSED="CLOSED",e.INITIAL="INITIAL",e.ITEM_DELIVERED="ITEM_DELIVERED",e.ITEM_KEPT="ITEM_KEPT",e.ITEM_READY_TO_SHIP="ITEM_READY_TO_SHIP",e.ITEM_SHIPPED="ITEM_SHIPPED",e.LESS_THAN_A_FULL_REFUND_ISSUED="LESS_THAN_A_FULL_REFUND_ISSUED",e.PARTIAL_REFUND_AS_PAYOUT_INITIATED="PARTIAL_REFUND_AS_PAYOUT_INITIATED",e.PARTIAL_REFUND_DECLINED="PARTIAL_REFUND_DECLINED",e.PARTIAL_REFUND_FAILED="PARTIAL_REFUND_FAILED",e.PARTIAL_REFUND_INITIATED="PARTIAL_REFUND_INITIATED",e.PARTIAL_REFUND_NON_PAYPAL_INITIATED="PARTIAL_REFUND_NON_PAYPAL_INITIATED",e.PARTIAL_REFUND_REQUESTED="PARTIAL_REFUND_REQUESTED",e.PARTIAL_REFUNDED="PARTIAL_REFUNDED",e.PAYOUT_INITIATED="PAYOUT_INITIATED",e.REFUND_AS_PAYOUT_INITIATED="REFUND_AS_PAYOUT_INITIATED",e.REFUND_FAILED="REFUND_FAILED",e.REFUND_INITIATED="REFUND_INITIATED",e.REFUND_SENT_PENDING_CONFIRMATION="REFUND_SENT_PENDING_CONFIRMATION",e.REFUND_TIMEOUT="REFUND_TIMEOUT",e.REPLACED="REPLACED",e.REPLACEMENT_CLOSED="REPLACEMENT_CLOSED",e.REPLACEMENT_DELIVERED="REPLACEMENT_DELIVERED",e.REPLACEMENT_LABEL_PENDING="REPLACEMENT_LABEL_PENDING",e.REPLACEMENT_LABEL_PENDING_TIMEOUT="REPLACEMENT_LABEL_PENDING_TIMEOUT",e.REPLACEMENT_LABEL_REQUESTED="REPLACEMENT_LABEL_REQUESTED",e.REPLACEMENT_LABEL_REQUESTED_TIMEOUT="REPLACEMENT_LABEL_REQUESTED_TIMEOUT",e.REPLACEMENT_OFFER_PENDING="REPLACEMENT_OFFER_PENDING",e.REPLACEMENT_REQUEST_TIMEOUT="REPLACEMENT_REQUEST_TIMEOUT",e.REPLACEMENT_REQUESTED="REPLACEMENT_REQUESTED",e.REPLACEMENT_RMA_PENDING="REPLACEMENT_RMA_PENDING",e.REPLACEMENT_SHIPPED="REPLACEMENT_SHIPPED",e.REPLACEMENT_STARTED="REPLACEMENT_STARTED",e.RETURN_LABEL_PENDING="RETURN_LABEL_PENDING",e.RETURN_LABEL_PENDING_TIMEOUT="RETURN_LABEL_PENDING_TIMEOUT",e.RETURN_LABEL_REQUESTED="RETURN_LABEL_REQUESTED",e.RETURN_LABEL_REQUESTED_TIMEOUT="RETURN_LABEL_REQUESTED_TIMEOUT",e.RETURN_REJECTED="RETURN_REJECTED",e.RETURN_REQUEST_TIMEOUT="RETURN_REQUEST_TIMEOUT",e.RETURN_REQUESTED="RETURN_REQUESTED",e.RMA_PENDING="RMA_PENDING",e.UNKNOWN="UNKNOWN"}(V||(lo.ReturnState=V={})),function(e){e.ITEM_RELATED="ITEM_RELATED",e.LABEL_RELATED="LABEL_RELATED",e.REFUND_RELATED="REFUND_RELATED",e.UNKNOWN="UNKNOWN"}(Q||(lo.FilePurpose=Q={})),function(e){e.DOMESTIC_SHIPPING="DOMESTIC_SHIPPING",e.IMPORT_CHARGE="IMPORT_CHARGE",e.INTERNATIONAL_SHIPPING="INTERNATIONAL_SHIPPING",e.ITEM_IMPORT_TAX="ITEM_IMPORT_TAX",e.ITEM_TAX="ITEM_TAX",e.ORDER_ADJUSTMENT="ORDER_ADJUSTMENT",e.ORIGINAL_SHIPPING="ORIGINAL_SHIPPING",e.OTHER="OTHER",e.PURCHASE_PRICE="PURCHASE_PRICE",e.REFUND_FROM_PAYPAL="REFUND_FROM_PAYPAL",e.RETURN_SHIPPING="RETURN_SHIPPING",e.SHIPPING_IMPORT_TAX="SHIPPING_IMPORT_TAX",e.SHIPPING_TAX="SHIPPING_TAX"}(ee||(lo.RefundFeeType=ee={})),function(e){e.AUTO_APPROVE_REMORSE="AUTO_APPROVE_REMORSE",e.BUYER_ACCEPT_REPLACEMENT_OFFER="BUYER_ACCEPT_REPLACEMENT_OFFER",e.BUYER_ACCEPTS_NON_PAYPAL_PARTIAL_REFUND="BUYER_ACCEPTS_NON_PAYPAL_PARTIAL_REFUND",e.BUYER_ACCEPTS_PARTIAL_REFUND="BUYER_ACCEPTS_PARTIAL_REFUND",e.BUYER_CLOSE_RETURN="BUYER_CLOSE_RETURN",e.BUYER_CREATE_RETURN="BUYER_CREATE_RETURN",e.BUYER_DECLINE_PARTIAL_REFUND="BUYER_DECLINE_PARTIAL_REFUND",e.BUYER_DECLINE_REPLACEMENT_OFFER="BUYER_DECLINE_REPLACEMENT_OFFER",e.BUYER_ESCALATE="BUYER_ESCALATE",e.BUYER_MARK_AS_RECEIVED="BUYER_MARK_AS_RECEIVED",e.BUYER_MARK_REFUND_RECEIVED="BUYER_MARK_REFUND_RECEIVED",e.BUYER_MARK_RETURN_SHIPPED="BUYER_MARK_RETURN_SHIPPED",e.BUYER_PRINT_SHIPPING_LABEL="BUYER_PRINT_SHIPPING_LABEL",e.BUYER_PROVIDE_LABEL="BUYER_PROVIDE_LABEL",e.BUYER_PROVIDE_TRACKING_INFO="BUYER_PROVIDE_TRACKING_INFO",e.BUYER_SEND_MESSAGE="BUYER_SEND_MESSAGE",e.BUYER_UPDATE_TRACKING="BUYER_UPDATE_TRACKING",e.BUYER_VOID_LABEL="BUYER_VOID_LABEL",e.CHARGEBACK_OPEN="CHARGEBACK_OPEN",e.DELETE_FILE="DELETE_FILE",e.EMAIL_SHIPPING_LABEL="EMAIL_SHIPPING_LABEL",e.EXTERNAL_CLAIM_OPENED="EXTERNAL_CLAIM_OPENED",e.GENERAL_TIME_OUT="GENERAL_TIME_OUT",e.NOTIFIED_DELIVERED="NOTIFIED_DELIVERED",e.NOTIFIED_SHIPPED="NOTIFIED_SHIPPED",e.NOTIFY_REPLACEMENT_DELIVERED="NOTIFY_REPLACEMENT_DELIVERED",e.NOTIFY_REPLACEMENT_SHIPPED="NOTIFY_REPLACEMENT_SHIPPED",e.NOTIFY_UPDATE_REFUND_STATUS="NOTIFY_UPDATE_REFUND_STATUS",e.OTHER="OTHER",e.REMINDER_BUYER_TO_RESPOND_RE_OFFER="REMINDER_BUYER_TO_RESPOND_RE_OFFER",e.REMINDER_BUYER_TO_SHIP="REMINDER_BUYER_TO_SHIP",e.REMINDER_FOR_REFUND="REMINDER_FOR_REFUND",e.REMINDER_FOR_REFUND_NO_SHIPPING="REMINDER_FOR_REFUND_NO_SHIPPING",e.REMINDER_FOR_RMA="REMINDER_FOR_RMA",e.REMINDER_FOR_SHIPPING="REMINDER_FOR_SHIPPING",e.REMINDER_SELLER_TO_RESPOND="REMINDER_SELLER_TO_RESPOND",e.REMINDER_SELLER_TO_SHIP="REMINDER_SELLER_TO_SHIP",e.SELLER_APPROVE_REQUEST="SELLER_APPROVE_REQUEST",e.SELLER_DECLINE_REQUEST="SELLER_DECLINE_REQUEST",e.SELLER_ESCALATE="SELLER_ESCALATE",e.SELLER_ISSUE_REFUND="SELLER_ISSUE_REFUND",e.SELLER_ISSUE_STORE_CREDIT_REFUND="SELLER_ISSUE_STORE_CREDIT_REFUND",e.SELLER_MARK_AS_RECEIVED="SELLER_MARK_AS_RECEIVED",e.SELLER_MARK_REFUND_SENT="SELLER_MARK_REFUND_SENT",e.SELLER_MARK_REPLACEMENT_SHIPPED="SELLER_MARK_REPLACEMENT_SHIPPED",e.SELLER_OFFER_PARTIAL_REFUND="SELLER_OFFER_PARTIAL_REFUND",e.SELLER_OFFER_REPLACEMENT="SELLER_OFFER_REPLACEMENT",e.SELLER_OFFER_RETURNS="SELLER_OFFER_RETURNS",e.SELLER_PRINT_SHIPPING_LABEL="SELLER_PRINT_SHIPPING_LABEL",e.SELLER_PROVIDE_LABEL="SELLER_PROVIDE_LABEL",e.SELLER_PROVIDE_RMA="SELLER_PROVIDE_RMA",e.SELLER_PROVIDE_TRACKING_INFO="SELLER_PROVIDE_TRACKING_INFO",e.SELLER_RETRY_REFUND="SELLER_RETRY_REFUND",e.SELLER_SEND_MESSAGE="SELLER_SEND_MESSAGE",e.SELLER_UPDATE_TRACKING="SELLER_UPDATE_TRACKING",e.SELLER_VOID_LABEL="SELLER_VOID_LABEL",e.SUBMIT_FILE="SUBMIT_FILE",e.SYSTEM_BUYER_PARTIAL_REFUND_AS_PAYOUT="SYSTEM_BUYER_PARTIAL_REFUND_AS_PAYOUT",e.SYSTEM_BUYER_REFUND_AS_PAYOUT="SYSTEM_BUYER_REFUND_AS_PAYOUT",e.SYSTEM_CLOSE_RETURN="SYSTEM_CLOSE_RETURN",e.SYSTEM_CREATE_RETURN="SYSTEM_CREATE_RETURN",e.SYSTEM_IMMEDIATE_REFUND="SYSTEM_IMMEDIATE_REFUND",e.TIME_OUT_AFTER_DECLINE="TIME_OUT_AFTER_DECLINE",e.TIME_OUT_AFTER_REFUNDED="TIME_OUT_AFTER_REFUNDED",e.TIME_OUT_AFTER_REFUNDED_AS_PAYOUT="TIME_OUT_AFTER_REFUNDED_AS_PAYOUT",e.TIME_OUT_AFTER_REPLACED="TIME_OUT_AFTER_REPLACED",e.TIME_OUT_FOR_AUTHORIZE="TIME_OUT_FOR_AUTHORIZE",e.TIME_OUT_FOR_AUTO_REFUND="TIME_OUT_FOR_AUTO_REFUND",e.TIME_OUT_FOR_BUYER_RECOUP="TIME_OUT_FOR_BUYER_RECOUP",e.TIME_OUT_FOR_DELIVERY="TIME_OUT_FOR_DELIVERY",e.TIME_OUT_FOR_ESCALATION="TIME_OUT_FOR_ESCALATION",e.TIME_OUT_FOR_ESCALATION_AFTER_SMIR="TIME_OUT_FOR_ESCALATION_AFTER_SMIR",e.TIME_OUT_FOR_ITEM_REPLACED="TIME_OUT_FOR_ITEM_REPLACED",e.TIME_OUT_FOR_MARK_REFUND_RECEIVED="TIME_OUT_FOR_MARK_REFUND_RECEIVED",e.TIME_OUT_FOR_MARK_REFUND_SENT="TIME_OUT_FOR_MARK_REFUND_SENT",e.TIME_OUT_FOR_MASS_PAYOUT="TIME_OUT_FOR_MASS_PAYOUT",e.TIME_OUT_FOR_PAYOUT="TIME_OUT_FOR_PAYOUT",e.TIME_OUT_FOR_PROVIDE_LABEL="TIME_OUT_FOR_PROVIDE_LABEL",e.TIME_OUT_FOR_REFUND="TIME_OUT_FOR_REFUND",e.TIME_OUT_FOR_REPLACEMENT_DELIVERED_ITEM_NOT_RETURNED="TIME_OUT_FOR_REPLACEMENT_DELIVERED_ITEM_NOT_RETURNED",e.TIME_OUT_FOR_REPLACEMENT_SHIPPED="TIME_OUT_FOR_REPLACEMENT_SHIPPED",e.TIME_OUT_FOR_RETURN_SHIPPING="TIME_OUT_FOR_RETURN_SHIPPING",e.TIME_OUT_FOR_RMA="TIME_OUT_FOR_RMA",e.TIME_OUT_FOR_SELLER_INVOICE="TIME_OUT_FOR_SELLER_INVOICE",e.TIME_OUT_FOR_SELLER_PAYOUT="TIME_OUT_FOR_SELLER_PAYOUT",e.TIME_OUT_FOR_SHIPMENT_TRACKING="TIME_OUT_FOR_SHIPMENT_TRACKING",e.TIME_OUT_FOR_SHIPPING="TIME_OUT_FOR_SHIPPING",e.TIME_OUT_FOR_SHIPPING_SYSTEM_CLOSE="TIME_OUT_FOR_SHIPPING_SYSTEM_CLOSE"}(te||(lo.ActivityOption=te={})),function(e){e.STORE="STORE",e.WAREHOUSE="WAREHOUSE"}(re||(lo.StoreType=re={})),function(e){e.YEAR="YEAR",e.MONTH="MONTH",e.DAY="DAY",e.HOUR="HOUR",e.CALENDAR_DAY="CALENDAR_DAY",e.BUSINESS_DAY="BUSINESS_DAY",e.MINUTE="MINUTE",e.SECOND="SECOND",e.MILLISECOND="MILLISECOND"}(ne||(lo.TimeDurationUnit=ne={})),function(e){e.DOMESTIC="DOMESTIC",e.INTERNATIONAL="INTERNATIONAL"}(oe||(lo.ShippingOptionType=oe={})),function(e){e.CALCULATED="CALCULATED",e.FLAT_RATE="FLAT_RATE",e.NOT_SPECIFIED="NOT_SPECIFIED"}(ie||(lo.ShippingCostType=ie={})),function(e){e.EBAY_PAYMENTS="EBAY_PAYMENTS"}(ae||(lo.PaymentsProgramType=ae={})),function(e){e.OPTED_IN="OPTED_IN",e.NOT_OPTED_IN="NOT_OPTED_IN"}(se||(lo.PaymentsProgramStatus=se={})),function(e){e.CASH_IN_PERSON="CASH_IN_PERSON",e.CASH_ON_DELIVERY="CASH_ON_DELIVERY",e.CASH_ON_PICKUP="CASH_ON_PICKUP",e.CASHIER_CHECK="CASHIER_CHECK",e.CREDIT_CARD="CREDIT_CARD",e.ESCROW="ESCROW",e.INTEGRATED_MERCHANT_CREDIT_CARD="INTEGRATED_MERCHANT_CREDIT_CARD",e.LOAN_CHECK="LOAN_CHECK",e.MONEY_ORDER="MONEY_ORDER",e.PAISA_PAY="PAISA_PAY",e.PAISA_PAY_ESCROW="PAISA_PAY_ESCROW",e.PAISA_PAY_ESCROW_EMI="PAISA_PAY_ESCROW_EMI",e.PAYPAL="PAYPAL",e.PERSONAL_CHECK="PERSONAL_CHECK",e.OTHER="OTHER"}(ue||(lo.PaymentMethodType=ue={})),function(e){e.PAYPAL_EMAIL="PAYPAL_EMAIL"}(ce||(lo.RecipientAccountReferenceType=ce={})),function(e){e.AD="AD",e.AE="AE",e.AF="AF",e.AG="AG",e.AI="AI",e.AL="AL",e.AM="AM",e.AN="AN",e.AO="AO",e.AQ="AQ",e.AR="AR",e.AS="AS",e.AT="AT",e.AU="AU",e.AW="AW",e.AX="AX",e.AZ="AZ",e.BA="BA",e.BB="BB",e.BD="BD",e.BE="BE",e.BF="BF",e.BG="BG",e.BH="BH",e.BI="BI",e.BJ="BJ",e.BL="BL",e.BM="BM",e.BN="BN",e.BO="BO",e.BQ="BQ",e.BR="BR",e.BS="BS",e.BT="BT",e.BV="BV",e.BW="BW",e.BY="BY",e.BZ="BZ",e.CA="CA",e.CC="CC",e.CD="CD",e.CF="CF",e.CG="CG",e.CH="CH",e.CI="CI",e.CK="CK",e.CL="CL",e.CM="CM",e.CN="CN",e.CO="CO",e.CR="CR",e.CU="CU",e.CV="CV",e.CW="CW",e.CX="CX",e.CY="CY",e.CZ="CZ",e.DE="DE",e.DJ="DJ",e.DK="DK",e.DM="DM",e.DO="DO",e.DZ="DZ",e.EC="EC",e.EE="EE",e.EG="EG",e.EH="EH",e.ER="ER",e.ES="ES",e.ET="ET",e.FI="FI",e.FJ="FJ",e.FK="FK",e.FM="FM",e.FO="FO",e.FR="FR",e.GA="GA",e.GB="GB",e.GD="GD",e.GE="GE",e.GF="GF",e.GG="GG",e.GH="GH",e.GI="GI",e.GL="GL",e.GM="GM",e.GN="GN",e.GP="GP",e.GQ="GQ",e.GR="GR",e.GS="GS",e.GT="GT",e.GU="GU",e.GW="GW",e.GY="GY",e.HK="HK",e.HM="HM",e.HN="HN",e.HR="HR",e.HT="HT",e.HU="HU",e.ID="ID",e.IE="IE",e.IL="IL",e.IM="IM",e.IN="IN",e.IO="IO",e.IQ="IQ",e.IR="IR",e.IS="IS",e.IT="IT",e.JE="JE",e.JM="JM",e.JO="JO",e.JP="JP",e.KE="KE",e.KG="KG",e.KH="KH",e.KI="KI",e.KM="KM",e.KN="KN",e.KP="KP",e.KR="KR",e.KW="KW",e.KY="KY",e.KZ="KZ",e.LA="LA",e.LB="LB",e.LC="LC",e.LI="LI",e.LK="LK",e.LR="LR",e.LS="LS",e.LT="LT",e.LU="LU",e.LV="LV",e.LY="LY",e.MA="MA",e.MC="MC",e.MD="MD",e.ME="ME",e.MF="MF",e.MG="MG",e.MH="MH",e.MK="MK",e.ML="ML",e.MM="MM",e.MN="MN",e.MO="MO",e.MP="MP",e.MQ="MQ",e.MR="MR",e.MS="MS",e.MT="MT",e.MU="MU",e.MV="MV",e.MW="MW",e.MX="MX",e.MY="MY",e.MZ="MZ",e.NA="NA",e.NC="NC",e.NE="NE",e.NF="NF",e.NG="NG",e.NI="NI",e.NL="NL",e.NO="NO",e.NP="NP",e.NR="NR",e.NU="NU",e.NZ="NZ",e.OM="OM",e.PA="PA",e.PE="PE",e.PF="PF",e.PG="PG",e.PH="PH",e.PK="PK",e.PL="PL",e.PM="PM",e.PN="PN",e.PR="PR",e.PS="PS",e.PT="PT",e.PW="PW",e.PY="PY",e.QA="QA",e.RE="RE",e.RO="RO",e.RS="RS",e.RU="RU",e.RW="RW",e.SA="SA",e.SB="SB",e.SC="SC",e.SD="SD",e.SE="SE",e.SG="SG",e.SH="SH",e.SI="SI",e.SJ="SJ",e.SK="SK",e.SL="SL",e.SM="SM",e.SN="SN",e.SO="SO",e.SR="SR",e.ST="ST",e.SV="SV",e.SX="SX",e.SY="SY",e.SZ="SZ",e.TC="TC",e.TD="TD",e.TF="TF",e.TG="TG",e.TH="TH",e.TJ="TJ",e.TK="TK",e.TL="TL",e.TM="TM",e.TN="TN",e.TO="TO",e.TR="TR",e.TT="TT",e.TV="TV",e.TW="TW",e.TZ="TZ",e.UA="UA",e.UG="UG",e.UM="UM",e.US="US",e.UY="UY",e.UZ="UZ",e.VA="VA",e.VC="VC",e.VE="VE",e.VG="VG",e.VI="VI",e.VN="VN",e.VU="VU",e.WF="WF",e.WS="WS",e.YE="YE",e.YT="YT",e.ZA="ZA",e.ZM="ZM",e.ZW="ZW"}(le||(lo.CountryCode=le={})),function(e){e.AED="AED",e.AFN="AFN",e.ALL="ALL",e.AMD="AMD",e.ANG="ANG",e.AOA="AOA",e.ARS="ARS",e.AUD="AUD",e.AWG="AWG",e.AZN="AZN",e.BAM="BAM",e.BBD="BBD",e.BDT="BDT",e.BGN="BGN",e.BHD="BHD",e.BIF="BIF",e.BMD="BMD",e.BND="BND",e.BOB="BOB",e.BRL="BRL",e.BSD="BSD",e.BTN="BTN",e.BWP="BWP",e.BYR="BYR",e.BZD="BZD",e.CAD="CAD",e.CDF="CDF",e.CHF="CHF",e.CLP="CLP",e.CNY="CNY",e.COP="COP",e.CRC="CRC",e.CUP="CUP",e.CVE="CVE",e.CZK="CZK",e.DJF="DJF",e.DKK="DKK",e.DOP="DOP",e.DZD="DZD",e.EGP="EGP",e.ERN="ERN",e.ETB="ETB",e.EUR="EUR",e.FJD="FJD",e.FKP="FKP",e.GBP="GBP",e.GEL="GEL",e.GHS="GHS",e.GIP="GIP",e.GMD="GMD",e.GNF="GNF",e.GTQ="GTQ",e.GYD="GYD",e.HKD="HKD",e.HNL="HNL",e.HRK="HRK",e.HTG="HTG",e.HUF="HUF",e.IDR="IDR",e.ILS="ILS",e.INR="INR",e.IQD="IQD",e.IRR="IRR",e.ISK="ISK",e.JMD="JMD",e.JOD="JOD",e.JPY="JPY",e.KES="KES",e.KGS="KGS",e.KHR="KHR",e.KMF="KMF",e.KPW="KPW",e.KRW="KRW",e.KWD="KWD",e.KYD="KYD",e.KZT="KZT",e.LAK="LAK",e.LBP="LBP",e.LKR="LKR",e.LRD="LRD",e.LSL="LSL",e.LTL="LTL",e.LYD="LYD",e.MAD="MAD",e.MDL="MDL",e.MGA="MGA",e.MKD="MKD",e.MMK="MMK",e.MNT="MNT",e.MOP="MOP",e.MRO="MRO",e.MUR="MUR",e.MVR="MVR",e.MWK="MWK",e.MXN="MXN",e.MYR="MYR",e.MZN="MZN",e.NAD="NAD",e.NGN="NGN",e.NIO="NIO",e.NOK="NOK",e.NPR="NPR",e.NZD="NZD",e.OMR="OMR",e.PAB="PAB",e.PEN="PEN",e.PGK="PGK",e.PHP="PHP",e.PKR="PKR",e.PLN="PLN",e.PYG="PYG",e.QAR="QAR",e.RON="RON",e.RSD="RSD",e.RUB="RUB",e.RWF="RWF",e.SAR="SAR",e.SBD="SBD",e.SCR="SCR",e.SDG="SDG",e.SEK="SEK",e.SGD="SGD",e.SHP="SHP",e.SLL="SLL",e.SOS="SOS",e.SRD="SRD",e.STD="STD",e.SYP="SYP",e.SZL="SZL",e.THB="THB",e.TJS="TJS",e.TMT="TMT",e.TND="TND",e.TOP="TOP",e.TRY="TRY",e.TTD="TTD",e.TWD="TWD",e.TZS="TZS",e.UAH="UAH",e.UGX="UGX",e.USD="USD",e.UYU="UYU",e.UZS="UZS",e.VEF="VEF",e.VND="VND",e.VUV="VUV",e.WST="WST",e.XAF="XAF",e.XCD="XCD",e.XOF="XOF",e.XPF="XPF",e.YER="YER",e.ZAR="ZAR",e.ZMW="ZMW",e.ZWL="ZWL"}(de||(lo.CurrencyCode=de={})),function(e){e.de_AT="de-AT",e.de_CH="de-CH",e.de_DE="de-DE",e.en_AU="en-AU",e.en_CA="en-CA",e.en_GB="en-GB",e.en_IE="en-IE",e.en_PH="en-PH",e.en_US="en-US",e.es_ES="es-ES",e.fr_BE="fr-BE",e.fr_CA="fr-CA",e.fr_FR="fr-FR",e.it_IT="it-IT",e.nl_BE="nl-BE",e.nl_NL="nl-NL",e.pl_PL="pl-PL",e.th_TH="th-TH",e.zh_HK="zh-HK",e.zh_TW="zh-TW"}(pe||(lo.ContentLanguage=lo.Locale=pe={})),function(e){e.NEW="NEW",e.LIKE_NEW="LIKE_NEW",e.NEW_OTHER="NEW_OTHER",e.NEW_WITH_DEFECTS="NEW_WITH_DEFECTS",e.MANUFACTURER_REFURBISHED="MANUFACTURER_REFURBISHED",e.SELLER_REFURBISHED="SELLER_REFURBISHED",e.USED_EXCELLENT="USED_EXCELLENT",e.USED_VERY_GOOD="USED_VERY_GOOD",e.USED_GOOD="USED_GOOD",e.USED_ACCEPTABLE="USED_ACCEPTABLE",e.FOR_PARTS_OR_NOT_WORKING="FOR_PARTS_OR_NOT_WORKING"}(fe||(lo.Condition=fe={})),function(e){e.en_US="en_US",e.en_CA="en_CA",e.fr_CA="fr_CA",e.en_GB="en_GB",e.en_AU="en_AU",e.en_IN="en_IN",e.de_AT="de_AT",e.fr_BE="fr_BE",e.fr_FR="fr_FR",e.de_DE="de_DE",e.it_IT="it_IT",e.nl_BE="nl_BE",e.nl_NL="nl_NL",e.es_ES="es_ES",e.de_CH="de_CH",e.fi_FI="fi_FI",e.zh_HK="zh_HK",e.hu_HU="hu_HU",e.en_PH="en_PH",e.pl_PL="pl_PL",e.pt_PT="pt_PT",e.ru_RU="ru_RU",e.en_SG="en_SG",e.en_IE="en_IE",e.en_MY="en_MY"}(Ee||(lo.LocaleEnum=Ee={})),function(e){e.EBAY_US="EBAY_US",e.EBAY_MOTORS="EBAY_MOTORS",e.EBAY_CA="EBAY_CA",e.EBAY_GB="EBAY_GB",e.EBAY_AU="EBAY_AU",e.EBAY_AT="EBAY_AT",e.EBAY_BE="EBAY_BE",e.EBAY_FR="EBAY_FR",e.EBAY_DE="EBAY_DE",e.EBAY_IT="EBAY_IT",e.EBAY_NL="EBAY_NL",e.EBAY_ES="EBAY_ES",e.EBAY_CH="EBAY_CH",e.EBAY_TW="EBAY_TW",e.EBAY_CZ="EBAY_CZ",e.EBAY_DK="EBAY_DK",e.EBAY_FI="EBAY_FI",e.EBAY_GR="EBAY_GR",e.EBAY_HK="EBAY_HK",e.EBAY_HU="EBAY_HU",e.EBAY_IN="EBAY_IN",e.EBAY_ID="EBAY_ID",e.EBAY_IE="EBAY_IE",e.EBAY_IL="EBAY_IL",e.EBAY_MY="EBAY_MY",e.EBAY_NZ="EBAY_NZ",e.EBAY_NO="EBAY_NO",e.EBAY_PH="EBAY_PH",e.EBAY_PL="EBAY_PL",e.EBAY_PT="EBAY_PT",e.EBAY_PR="EBAY_PR",e.EBAY_RU="EBAY_RU",e.EBAY_SG="EBAY_SG",e.EBAY_ZA="EBAY_ZA",e.EBAY_SE="EBAY_SE",e.EBAY_TH="EBAY_TH",e.EBAY_VN="EBAY_VN",e.EBAY_CN="EBAY_CN",e.EBAY_PE="EBAY_PE",e.EBAY_JP="EBAY_JP"}(_e||(lo.Marketplace=_e={})),function(e){e.AUCTION="AUCTION",e.FIXED_PRICE="FIXED_PRICE"}(he||(lo.FormatType=he={})),function(e){e.CLICK_THROUGH_RATE="CLICK_THROUGH_RATE",e.LISTING_IMPRESSION_SEARCH_RESULTS_PAGE="LISTING_IMPRESSION_SEARCH_RESULTS_PAGE",e.LISTING_IMPRESSION_STORE="CLICK_THROUGH_RATE",e.LISTING_IMPRESSION_TOTAL="LISTING_IMPRESSION_TOTAL",e.LISTING_VIEWS_SOURCE_DIRECT="LISTING_VIEWS_SOURCE_DIRECT",e.LISTING_VIEWS_SOURCE_OFF_EBAY="LISTING_VIEWS_SOURCE_OFF_EBAY",e.LISTING_VIEWS_SOURCE_OTHER_EBAY="LISTING_VIEWS_SOURCE_OTHER_EBAY",e.LISTING_VIEWS_SOURCE_SEARCH_RESULTS_PAGE="LISTING_VIEWS_SOURCE_SEARCH_RESULTS_PAGE",e.LISTING_VIEWS_SOURCE_STORE="LISTING_VIEWS_SOURCE_STORE",e.LISTING_VIEWS_TOTAL="LISTING_VIEWS_TOTAL",e.SALES_CONVERSION_RATE="SALES_CONVERSION_RATE",e.TOTAL_IMPRESSION_TOTAL="TOTAL_IMPRESSION_TOTAL",e.TRANSACTION="TRANSACTION"}(ge||(lo.Metric=ge={})),function(e){e.MERCHANDISE_CREDIT="MERCHANDISE_CREDIT",e.MONEY_BACK="MONEY_BACK"}(me||(lo.RefundMethod=me={})),function(e){e.EXCHANGE="EXCHANGE",e.REPLACEMENT="REPLACEMENT"}(ye||(lo.ReturnMethod=ye={})),function(e){e.BUYER="BUYER",e.SELLER="SELLER"}(Re||(lo.ReturnShippingCostPayer=Re={})),function(e){e.COUNTRY="COUNTRY",e.COUNTRY_REGION="COUNTRY_REGION",e.STATE_OR_PROVINCE="STATE_OR_PROVINCE",e.WORLD_REGION="WORLD_REGION",e.WORLDWIDE="WORLDWIDE"}(Ae||(lo.RegionType=Ae={})),function(e){e.BUYER_CANCEL="BUYER_CANCEL",e.SELLER_CANCEL="SELLER_CANCEL",e.ITEM_NOT_RECEIVED="ITEM_NOT_RECEIVED",e.BUYER_RETURN="BUYER_RETURN",e.ITEM_NOT_AS_DESCRIBED="ITEM_NOT_AS_DESCRIBED",e.OTHER_ADJUSTMENT="OTHER_ADJUSTMENT",e.SHIPPING_DISCOUNT="SHIPPING_DISCOUNT"}(Ie||(lo.ReasonForRefund=Ie={})),function(e){e.ADDRESS_ISSUES="ADDRESS_ISSUES",e.BUYER_ASKED_CANCEL="BUYER_ASKED_CANCEL",e.BUYER_CANCEL_OR_ADDRESS_ISSUE="BUYER_CANCEL_OR_ADDRESS_ISSUE",e.FOUND_CHEAPER_PRICE="FOUND_CHEAPER_PRICE",e.ORDER_MISTAKE="ORDER_MISTAKE",e.ORDER_UNPAID="ORDER_UNPAID",e.OTHER="OTHER",e.OUT_OF_STOCK_OR_CANNOT_FULFILL="OUT_OF_STOCK_OR_CANNOT_FULFILL",e.PRICE_TOO_HIGH="PRICE_TOO_HIGH",e.UNKNOWN="UNKNOWN",e.WONT_ARRIVE_IN_TIME="WONT_ARRIVE_IN_TIME",e.WRONG_PAYMENT_METHOD="WRONG_PAYMENT_METHOD",e.WRONG_SHIPPING_ADDRESS="WRONG_SHIPPING_ADDRESS",e.WRONG_SHIPPING_METHOD="WRONG_SHIPPING_METHOD"}(Te||(lo.CancelReason=Te={})),function(e){e.INCH="INCH",e.FEET="FEET",e.CENTIMETER="CENTIMETER",e.METER="METER"}(Se||(lo.LengthUnitOfMeasure=Se={})),function(e){e.POUND="POUND",e.KILOGRAM="KILOGRAM",e.OUNCE="OUNCE",e.GRAM="GRAM"}(Oe||(lo.WeightUnitOfMeasure=Oe={})),function(e){e.LETTER="LETTER",e.BULKY_GOODS="BULKY_GOODS",e.CARAVAN="CARAVAN",e.CARS="CARS",e.EUROPALLET="EUROPALLET",e.EXPANDABLE_TOUGH_BAGS="EXPANDABLE_TOUGH_BAGS",e.EXTRA_LARGE_PACK="EXTRA_LARGE_PACK",e.FURNITURE="FURNITURE",e.INDUSTRY_VEHICLES="INDUSTRY_VEHICLES",e.LARGE_CANADA_POSTBOX="LARGE_CANADA_POSTBOX",e.LARGE_CANADA_POST_BUBBLE_MAILER="LARGE_CANADA_POST_BUBBLE_MAILER",e.LARGE_ENVELOPE="LARGE_ENVELOPE",e.MAILING_BOX="MAILING_BOX",e.MEDIUM_CANADA_POST_BOX="MEDIUM_CANADA_POST_BOX",e.MEDIUM_CANADA_POST_BUBBLE_MAILER="MEDIUM_CANADA_POST_BUBBLE_MAILER",e.MOTORBIKES="MOTORBIKES",e.ONE_WAY_PALLET="ONE_WAY_PALLET",e.PACKAGE_THICK_ENVELOPE="PACKAGE_THICK_ENVELOPE",e.PADDED_BAGS="PADDED_BAGS",e.PARCEL_OR_PADDED_ENVELOPE="PARCEL_OR_PADDED_ENVELOPE",e.ROLL="ROLL",e.SMALL_CANADA_POST_BOX="SMALL_CANADA_POST_BOX",e.SMALL_CANADA_POST_BUBBLE_MAILER="SMALL_CANADA_POST_BUBBLE_MAILER",e.TOUGH_BAGS="TOUGH_BAGS",e.UPS_LETTER="UPS_LETTER",e.USPS_FLAT_RATE_ENVELOPE="USPS_FLAT_RATE_ENVELOPE",e.USPS_LARGE_PACK="USPS_LARGE_PACK",e.VERY_LARGE_PACK="VERY_LARGE_PACK",e.WINE_PAK="WINE_PAK"}(Ce||(lo.PackageType=Ce={}))),lo;var e,t,n,o,i,p,f,_,h,T,O,D,j,$,V,Q,ee,te,re,ne,oe,ie,ae,se,ue,ce,le,de,pe,fe,Ee,_e,he,ge,me,ye,Re,Ae,Ie,Te,Se,Oe,Ce}(),e)),ao;var e,t,n}var po,fo={},Eo={};var _o,ho={};var go,mo={};var yo,Ro={},Ao={};var Io,To={};var So,Oo={};var Co,bo={};var No,Po={};var vo,Mo={};var Do,Uo={};var Lo,Bo={};var Fo,wo={};var xo,ko={};var Go,qo={};var jo,Yo={};var Ho,$o={};var Vo,Ko={};var Wo,Xo={};var zo,Jo={};var Qo,Zo={};var ei,ti={};var ri,ni={};var oi,ii={};var ai,si={};var ui,ci={};var li,di={};var pi,fi={};var Ei,_i={};var hi,gi={};var mi,yi={};var Ri,Ai={};var Ii,Ti={};var Si,Oi={};var Ci,bi={};var Ni,Pi={};var vi,Mi={};var Di,Ui={};var Li,Bi={};var Fi,wi={};var xi,ki={};var Gi,qi={};var ji,Yi={};var Hi,$i={};var Vi,Ki={};var Wi,Xi={};var zi,Ji={};var Qi,Zi={};var ea,ta={};var ra,na={};var oa,ia={};var aa,sa={};var ua,ca={};var la,da={};var pa,fa={};var Ea,_a={};var ha,ga={};var ma,ya={};var Ra,Aa={};var Ia,Ta={};var Sa,Oa={};var Ca,ba={};var Na,Pa={};var va,Ma={};var Da,Ua={};var La,Ba={};var Fa,wa={};var xa,ka={};var Ga,qa={};var ja,Ya={};var Ha,$a={};var Va,Ka,Wa,Xa,za,Ja,Qa={};function requireTraditional(){return Ka||(Ka=1,e=Ro,t=Ro&&Ro.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=Ro&&Ro.__exportStar||function(e,n){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(n,o)||t(n,e,o)},Object.defineProperty(e,"__esModule",{value:!0}),n(function requireCommon(){return yo||(yo=1,Object.defineProperty(Ao,"__esModule",{value:!0})),Ao}(),e),n(function requireAddFixedPriceItemResponse(){return Io||(Io=1,Object.defineProperty(To,"__esModule",{value:!0})),To}(),e),n(function requireAddItemResponse(){return So||(So=1,Object.defineProperty(Oo,"__esModule",{value:!0})),Oo}(),e),n(function requireAddItemsResponse(){return Co||(Co=1,Object.defineProperty(bo,"__esModule",{value:!0})),bo}(),e),n(function requireAddMemberMessageAAQToPartnerResponse(){return No||(No=1,Object.defineProperty(Po,"__esModule",{value:!0})),Po}(),e),n(function requireAddMemberMessageRTQResponse(){return vo||(vo=1,Object.defineProperty(Mo,"__esModule",{value:!0})),Mo}(),e),n(function requireAddMemberMessagesAAQToBidderResponse(){return Do||(Do=1,Object.defineProperty(Uo,"__esModule",{value:!0})),Uo}(),e),n(function requireAddOrderResponse(){return Lo||(Lo=1,Object.defineProperty(Bo,"__esModule",{value:!0})),Bo}(),e),n(function requireAddSecondChanceItemResponse(){return Fo||(Fo=1,Object.defineProperty(wo,"__esModule",{value:!0})),wo}(),e),n(function requireAddToItemDescriptionResponse(){return xo||(xo=1,Object.defineProperty(ko,"__esModule",{value:!0})),ko}(),e),n(function requireAddToWatchListResponse(){return Go||(Go=1,Object.defineProperty(qo,"__esModule",{value:!0})),qo}(),e),n(function requireCompleteSaleResponse(){return jo||(jo=1,Object.defineProperty(Yo,"__esModule",{value:!0})),Yo}(),e),n(function requireDeleteMyMessagesResponse(){return Ho||(Ho=1,Object.defineProperty($o,"__esModule",{value:!0})),$o}(),e),n(function requireEndFixedPriceItemResponse(){return Vo||(Vo=1,Object.defineProperty(Ko,"__esModule",{value:!0})),Ko}(),e),n(function requireEndItemsResponse(){return Wo||(Wo=1,Object.defineProperty(Xo,"__esModule",{value:!0})),Xo}(),e),n(function requireFetchTokenResponse(){return zo||(zo=1,Object.defineProperty(Jo,"__esModule",{value:!0})),Jo}(),e),n(function requireGetAccountResponse(){return Qo||(Qo=1,Object.defineProperty(Zo,"__esModule",{value:!0})),Zo}(),e),n(function requireGetAdFormatLeadsResponse(){return ei||(ei=1,Object.defineProperty(ti,"__esModule",{value:!0})),ti}(),e),n(function requireGetAllBiddersResponse(){return ri||(ri=1,Object.defineProperty(ni,"__esModule",{value:!0})),ni}(),e),n(function requireGetBestOffersResponse(){return oi||(oi=1,Object.defineProperty(ii,"__esModule",{value:!0})),ii}(),e),n(function requireGetBidderListResponse(){return ai||(ai=1,Object.defineProperty(si,"__esModule",{value:!0})),si}(),e),n(function requireGetCategoriesResponse(){return ui||(ui=1,Object.defineProperty(ci,"__esModule",{value:!0})),ci}(),e),n(function requireGetCategoryFeaturesResponse(){return li||(li=1,Object.defineProperty(di,"__esModule",{value:!0})),di}(),e),n(function requireGetDescriptionTemplatesResponse(){return pi||(pi=1,Object.defineProperty(fi,"__esModule",{value:!0})),fi}(),e),n(function requireGetFeedbackResponse(){return Ei||(Ei=1,Object.defineProperty(_i,"__esModule",{value:!0})),_i}(),e),n(function requireGetItemResponse(){return hi||(hi=1,Object.defineProperty(gi,"__esModule",{value:!0})),gi}(),e),n(function requireGetItemsAwaitingFeedbackResponse(){return mi||(mi=1,Object.defineProperty(yi,"__esModule",{value:!0})),yi}(),e),n(function requireGetMemberMessagesResponse(){return Ri||(Ri=1,Object.defineProperty(Ai,"__esModule",{value:!0})),Ai}(),e),n(function requireGetMessagePreferencesResponse(){return Ii||(Ii=1,Object.defineProperty(Ti,"__esModule",{value:!0})),Ti}(),e),n(function requireGetMyMessagesResponse(){return Si||(Si=1,Object.defineProperty(Oi,"__esModule",{value:!0})),Oi}(),e),n(function requireGetSellerListResponse(){return Ci||(Ci=1,Object.defineProperty(bi,"__esModule",{value:!0})),bi}(),e),n(function requireGetSellerTransactionsResponse(){return Ni||(Ni=1,Object.defineProperty(Pi,"__esModule",{value:!0})),Pi}(),e),n(function requireGetShippingDiscountProfilesResponse(){return vi||(vi=1,Object.defineProperty(Mi,"__esModule",{value:!0})),Mi}(),e),n(function requireGetStoreResponse(){return Di||(Di=1,Object.defineProperty(Ui,"__esModule",{value:!0})),Ui}(),e),n(function requireGetTaxTableResponse(){return Li||(Li=1,Object.defineProperty(Bi,"__esModule",{value:!0})),Bi}(),e),n(function requireGetTokenStatusResponse(){return Fi||(Fi=1,Object.defineProperty(wi,"__esModule",{value:!0})),wi}(),e),n(function requireGetUserContactDetailsResponse(){return xi||(xi=1,Object.defineProperty(ki,"__esModule",{value:!0})),ki}(),e),n(function requireGetUserPreferencesResponse(){return Gi||(Gi=1,Object.defineProperty(qi,"__esModule",{value:!0})),qi}(),e),n(function requireGetUserResponse(){return ji||(ji=1,Object.defineProperty(Yi,"__esModule",{value:!0})),Yi}(),e),n(function requireGetVeROReasonCodeDetailsResponse(){return Hi||(Hi=1,Object.defineProperty($i,"__esModule",{value:!0})),$i}(),e),n(function requireGetVeROReportStatusResponse(){return Vi||(Vi=1,Object.defineProperty(Ki,"__esModule",{value:!0})),Ki}(),e),n(function requireGeteBayDetailsResponse(){return Wi||(Wi=1,Object.defineProperty(Xi,"__esModule",{value:!0})),Xi}(),e),n(function requirePlaceOfferResponse(){return zi||(zi=1,Object.defineProperty(Ji,"__esModule",{value:!0})),Ji}(),e),n(function requireRelistFixedPriceItemResponse(){return Qi||(Qi=1,Object.defineProperty(Zi,"__esModule",{value:!0})),Zi}(),e),n(function requireRelistItemResponse(){return ea||(ea=1,Object.defineProperty(ta,"__esModule",{value:!0})),ta}(),e),n(function requireRemoveFromWatchListResponse(){return ra||(ra=1,Object.defineProperty(na,"__esModule",{value:!0})),na}(),e),n(function requireRespondToBestOfferResponse(){return oa||(oa=1,Object.defineProperty(ia,"__esModule",{value:!0})),ia}(),e),n(function requireRespondToFeedbackResponse(){return aa||(aa=1,Object.defineProperty(sa,"__esModule",{value:!0})),sa}(),e),n(function requireReviseFixedPriceItemResponse(){return ua||(ua=1,Object.defineProperty(ca,"__esModule",{value:!0})),ca}(),e),n(function requireReviseInventoryStatusResponse(){return la||(la=1,Object.defineProperty(da,"__esModule",{value:!0})),da}(),e),n(function requireReviseItemResponse(){return pa||(pa=1,Object.defineProperty(fa,"__esModule",{value:!0})),fa}(),e),n(function requireReviseMyMessagesFoldersResponse(){return Ea||(Ea=1,Object.defineProperty(_a,"__esModule",{value:!0})),_a}(),e),n(function requireReviseMyMessagesResponse(){return ha||(ha=1,Object.defineProperty(ga,"__esModule",{value:!0})),ga}(),e),n(function requireRevokeTokenResponse(){return ma||(ma=1,Object.defineProperty(ya,"__esModule",{value:!0})),ya}(),e),n(function requireSendInvoiceResponse(){return Ra||(Ra=1,Object.defineProperty(Aa,"__esModule",{value:!0})),Aa}(),e),n(function requireSetMessagePreferencesResponse(){return Ia||(Ia=1,Object.defineProperty(Ta,"__esModule",{value:!0})),Ta}(),e),n(function requireSetNotificationPreferencesResponse(){return Sa||(Sa=1,Object.defineProperty(Oa,"__esModule",{value:!0})),Oa}(),e),n(function requireSetShippingDiscountProfilesResponse(){return Ca||(Ca=1,Object.defineProperty(ba,"__esModule",{value:!0})),ba}(),e),n(function requireSetStoreCategoriesResponse(){return Na||(Na=1,Object.defineProperty(Pa,"__esModule",{value:!0})),Pa}(),e),n(function requireSetTaxTableResponse(){return va||(va=1,Object.defineProperty(Ma,"__esModule",{value:!0})),Ma}(),e),n(function requireSetUserNotesResponse(){return Da||(Da=1,Object.defineProperty(Ua,"__esModule",{value:!0})),Ua}(),e),n(function requireSetUserPreferencesResponse(){return La||(La=1,Object.defineProperty(Ba,"__esModule",{value:!0})),Ba}(),e),n(function requireUploadSiteHostedPicturesResponse(){return Fa||(Fa=1,Object.defineProperty(wa,"__esModule",{value:!0})),wa}(),e),n(function requireVeROReportItemsResponse(){return xa||(xa=1,Object.defineProperty(ka,"__esModule",{value:!0})),ka}(),e),n(function requireVerifyAddFixedPriceItemResponse(){return Ga||(Ga=1,Object.defineProperty(qa,"__esModule",{value:!0})),qa}(),e),n(function requireVerifyAddItemResponse(){return ja||(ja=1,Object.defineProperty(Ya,"__esModule",{value:!0})),Ya}(),e),n(function requireVerifyAddSecondChanceItemResponse(){return Ha||(Ha=1,Object.defineProperty($a,"__esModule",{value:!0})),$a}(),e),n(function requireVerifyRelistItemResponse(){return Va||(Va=1,Object.defineProperty(Qa,"__esModule",{value:!0})),Qa}(),e)),Ro;var e,t,n}function requireTypes(){return Wa||(Wa=1,e=fo,t=fo&&fo.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=fo&&fo.__exportStar||function(e,n){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(n,o)||t(n,e,o)},Object.defineProperty(e,"__esModule",{value:!0}),n(function requireApiTypes(){return po||(po=1,Object.defineProperty(Eo,"__esModule",{value:!0})),Eo}(),e),n(function requireRestfulTypes(){return _o||(_o=1,Object.defineProperty(ho,"__esModule",{value:!0})),ho}(),e),n(function requireTraditonalTypes(){return go||(go=1,Object.defineProperty(mo,"__esModule",{value:!0})),mo}(),e),n(requireTraditional(),e)),fo;var e,t,n}function requireEBayApi(){return Xa||(Xa=1,function(e){var t,n=o&&o.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),p=o&&o.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),f=o&&o.__importStar||(t=function(e){return t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},t(e)},function(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var i=t(e),f=0;f<i.length;f++)"default"!==i[f]&&n(o,e,i[f]);return p(o,e),o}),_=o&&o.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.types=e.errors=e.enums=e.Locale=e.ContentLanguage=e.MarketplaceId=e.SiteId=e.eBayApi=void 0;const h=_(function requireApiFactory(){if(no)return i;no=1;var e=i&&i.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0});const t=e(requireApi()),n=requireBuy(),o=requireCommerce(),p=requireDeveloper(),f=requirePostOrder(),_=requireSell(),h=e(requireTraditional$1());class ApiFactory extends t.default{constructor(){super(...arguments),this._restful={}}createBuyApi(){return{browse:this.createRestfulApi(n.Browse),feed:this.createRestfulApi(n.Feed),marketing:this.createRestfulApi(n.Marketing),offer:this.createRestfulApi(n.Offer),order:this.createRestfulApi(n.Order),deal:this.createRestfulApi(n.Deal),marketplaceInsights:this.createRestfulApi(n.MarketplaceInsights)}}createCommerceApi(){return{catalog:this.createRestfulApi(o.Catalog),charity:this.createRestfulApi(o.Charity),identity:this.createRestfulApi(o.Identity),notification:this.createRestfulApi(o.Notification),media:this.createRestfulApi(o.Media),translation:this.createRestfulApi(o.Translation),taxonomy:this.createRestfulApi(o.Taxonomy),message:this.createRestfulApi(o.Message)}}createDeveloperApi(){return{analytics:this.createRestfulApi(p.Analytics),keyManagement:this.createRestfulApi(p.KeyManagement)}}createPostOrderApi(){return{cancellation:this.createRestfulApi(f.Cancellation),case:this.createRestfulApi(f.Case),inquiry:this.createRestfulApi(f.Inquiry),return:this.createRestfulApi(f.Return)}}createSellApi(){return{account:this.createRestfulApi(_.AccountV1),accountV2:this.createRestfulApi(_.AccountV2),analytics:this.createRestfulApi(_.Analytics),compliance:this.createRestfulApi(_.Compliance),fulfillment:this.createRestfulApi(_.Fulfillment),inventory:this.createRestfulApi(_.Inventory),marketing:this.createRestfulApi(_.Marketing),metadata:this.createRestfulApi(_.Metadata),recommendation:this.createRestfulApi(_.Recommendation),finances:this.createRestfulApi(_.Finances),feed:this.createRestfulApi(_.Feed),logistics:this.createRestfulApi(_.Logistics),negotiation:this.createRestfulApi(_.Negotiation),listing:this.createRestfulApi(_.Listing)}}get traditional(){return this._traditional?this._traditional:this._traditional=new h.default(this.config,this.req,this.auth)}createTradingApi(){return this.traditional.createTradingApi()}createShoppingApi(){return this.traditional.createShoppingApi()}createFindingApi(){return this.traditional.createFindingApi()}createClientAlertsApi(){return this.traditional.createClientAlertsApi()}createMerchandisingApi(){return this.traditional.createMerchandisingApi()}createRestfulApi(e){const t=e.id;return this._restful[t]||(this._restful[t]=new e(this.config,this.req,this.auth))}}return i.default=ApiFactory,i}()),T=_(requireApi()),O=f(requireEnums());e.enums=O;const D=requireEnums();Object.defineProperty(e,"ContentLanguage",{enumerable:!0,get:function(){return D.ContentLanguage}}),Object.defineProperty(e,"Locale",{enumerable:!0,get:function(){return D.Locale}}),Object.defineProperty(e,"MarketplaceId",{enumerable:!0,get:function(){return D.MarketplaceId}}),Object.defineProperty(e,"SiteId",{enumerable:!0,get:function(){return D.SiteId}});const j=f(requireErrors());e.errors=j;const $=requireErrors(),V=f(requireTypes());e.types=V;const Q={sandbox:!1,autoRefreshToken:!0,siteId:D.SiteId.EBAY_US,marketplaceId:D.MarketplaceId.EBAY_US,acceptLanguage:D.Locale.en_US,contentLanguage:D.ContentLanguage.en_US};let ee=class eBayApi extends T.default{static fromEnv(e){if(!process.env.EBAY_APP_ID)throw new $.ApiEnvError("EBAY_APP_ID");if(!process.env.EBAY_CERT_ID)throw new $.ApiEnvError("EBAY_CERT_ID");let t=null;return process.env.EBAY_JWE&&process.env.EBAY_PRIVATE_KEY&&(t={jwe:process.env.EBAY_JWE,privateKey:process.env.EBAY_PRIVATE_KEY}),new eBayApi({appId:process.env.EBAY_APP_ID,certId:process.env.EBAY_CERT_ID,devId:process.env.EBAY_DEV_ID,authToken:process.env.EBAY_AUTH_TOKEN,siteId:process.env.EBAY_SITE_ID?parseInt(process.env.EBAY_SITE_ID,10):D.SiteId.EBAY_US,marketplaceId:process.env.EBAY_MARKETPLACE_ID&&process.env.EBAY_MARKETPLACE_ID in D.MarketplaceId?D.MarketplaceId[process.env.EBAY_MARKETPLACE_ID]:D.MarketplaceId.EBAY_US,ruName:process.env.EBAY_RU_NAME,sandbox:"true"===process.env.EBAY_SANDBOX,signature:t},e)}constructor(e,t){super({...Q,...e},t),this.factory=new h.default(this.config,this.req,this.auth),this.authNAuth=this.auth.authNAuth,this.OAuth2=this.auth.OAuth2,this.oAuth2=this.OAuth2}get buy(){return this._buy||(this._buy=this.factory.createBuyApi())}get commerce(){return this._commerce||(this._commerce=this.factory.createCommerceApi())}get developer(){return this._developer||(this._developer=this.factory.createDeveloperApi())}get postOrder(){return this._postOrder||(this._postOrder=this.factory.createPostOrderApi())}get sell(){return this._sell||(this._sell=this.factory.createSellApi())}get trading(){return this._trading||(this._trading=this.factory.createTradingApi())}get finding(){return this._finding||(this._finding=this.factory.createFindingApi())}get shopping(){return this._shopping||(this._shopping=this.factory.createShoppingApi())}get merchandising(){return this._merchandising||(this._merchandising=this.factory.createMerchandisingApi())}get clientAlerts(){return this._clientAlerts||(this._clientAlerts=this.factory.createClientAlertsApi())}setSignature(e){this.config.signature=e}};e.eBayApi=ee,ee.SiteId=D.SiteId,ee.MarketplaceId=D.MarketplaceId,ee.ContentLanguage=D.ContentLanguage,ee.Locale=D.Locale,e.default=ee}(o)),o}return getDefaultExportFromCjs(function requireLib(){if(Ja)return za;Ja=1;const e=(za&&za.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(requireEBayApi());return za=e.default}())});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).eBayApi=t()}(this,function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function a(){var e=!1;try{e=this instanceof a}catch{}return e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n}var t,n,o={},i={},d={},f={},h={},_={};function requireAxios(){if(n)return t;function bind(e,t){return function wrap(){return e.apply(t,arguments)}}n=1;const{toString:o}=Object.prototype,{getPrototypeOf:i}=Object,{iterator:d,toStringTag:f}=Symbol,h=(_=Object.create(null),e=>{const t=o.call(e);return _[t]||(_[t]=t.slice(8,-1).toLowerCase())});var _;const kindOfTest=e=>(e=e.toLowerCase(),t=>h(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray:m}=Array,P=typeOfTest("undefined");function isBuffer(e){return null!==e&&!P(e)&&null!==e.constructor&&!P(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const U=kindOfTest("ArrayBuffer");const L=typeOfTest("string"),k=typeOfTest("function"),j=typeOfTest("number"),isObject=e=>null!==e&&"object"==typeof e,isPlainObject=e=>{if("object"!==h(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||f in e||d in e)},Y=kindOfTest("Date"),H=kindOfTest("File"),V=kindOfTest("Blob"),K=kindOfTest("FileList");const W=function getGlobal(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}}(),X=void 0!==W.FormData?W.FormData:void 0,J=kindOfTest("URLSearchParams"),[Q,Z,ee,te]=["ReadableStream","Request","Response","Headers"].map(kindOfTest);function forEach(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let o,i;if("object"!=typeof e&&(e=[e]),m(e))for(o=0,i=e.length;o<i;o++)t.call(null,e[o],o,e);else{if(isBuffer(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),d=i.length;let f;for(o=0;o<d;o++)f=i[o],t.call(null,e[f],f,e)}}function findKey(e,t){if(isBuffer(e))return null;t=t.toLowerCase();const n=Object.keys(e);let o,i=n.length;for(;i-- >0;)if(o=n[i],t===o.toLowerCase())return o;return null}const re="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e,isContextDefined=e=>!P(e)&&e!==re;const ne=(oe="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>oe&&e instanceof oe);var oe;const ie=kindOfTest("HTMLFormElement"),se=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ae=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};forEach(n,(n,i)=>{let d;!1!==(d=t(n,i,e))&&(o[i]=d||n)}),Object.defineProperties(e,o)};const ue=kindOfTest("AsyncFunction"),ce=(le="function"==typeof setImmediate,de=k(re.postMessage),le?setImmediate:de?(pe=`axios@${Math.random()}`,fe=[],re.addEventListener("message",({source:e,data:t})=>{e===re&&t===pe&&fe.length&&fe.shift()()},!1),e=>{fe.push(e),re.postMessage(pe,"*")}):e=>setTimeout(e));var le,de,pe,fe;const he="undefined"!=typeof queueMicrotask?queueMicrotask.bind(re):"undefined"!=typeof process&&process.nextTick||ce;var _e={isArray:m,isArrayBuffer:U,isBuffer:isBuffer,isFormData:e=>{if(!e)return!1;if(X&&e instanceof X)return!0;const t=i(e);if(!t||t===Object.prototype)return!1;if(!k(e.append))return!1;const n=h(e);return"formdata"===n||"object"===n&&k(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function isArrayBufferView(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&U(e.buffer),t},isString:L,isNumber:j,isBoolean:e=>!0===e||!1===e,isObject:isObject,isPlainObject:isPlainObject,isEmptyObject:e=>{if(!isObject(e)||isBuffer(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Q,isRequest:Z,isResponse:ee,isHeaders:te,isUndefined:P,isDate:Y,isFile:H,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:V,isRegExp:ae,isFunction:k,isStream:e=>isObject(e)&&k(e.pipe),isURLSearchParams:J,isTypedArray:ne,isFileList:K,forEach:forEach,merge:function merge(...e){const{caseless:t,skipUndefined:n}=isContextDefined(this)&&this||{},o={},assignValue=(e,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const d=t&&findKey(o,i)||i,f=se(o,d)?o[d]:void 0;isPlainObject(f)&&isPlainObject(e)?o[d]=merge(f,e):isPlainObject(e)?o[d]=merge({},e):m(e)?o[d]=e.slice():n&&P(e)||(o[d]=e)};for(let t=0,n=e.length;t<n;t++)e[t]&&forEach(e[t],assignValue);return o},extend:(e,t,n,{allOwnKeys:o}={})=>(forEach(t,(t,o)=>{n&&k(t)?Object.defineProperty(e,o,{__proto__:null,value:bind(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let d,f,h;const _={};if(t=t||{},null==e)return t;do{for(d=Object.getOwnPropertyNames(e),f=d.length;f-- >0;)h=d[f],o&&!o(h,e,t)||_[h]||(t[h]=e[h],_[h]=!0);e=!1!==n&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:h,kindOfTest:kindOfTest,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return-1!==o&&o===n},toArray:e=>{if(!e)return null;if(m(e))return e;let t=e.length;if(!j(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[d]).call(e);let o;for(;(o=n.next())&&!o.done;){const n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:ie,hasOwnProperty:se,hasOwnProp:se,reduceDescriptors:reduceDescriptors,freezeMethods:e=>{reduceDescriptors(e,(t,n)=>{if(k(e)&&["arguments","caller","callee"].includes(n))return!1;const o=e[n];k(o)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},define=e=>{e.forEach(e=>{n[e]=!0})};return m(e)?define(e):define(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function replacer(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:findKey,global:re,isContextDefined:isContextDefined,isSpecCompliantForm:function isSpecCompliantForm(e){return!!(e&&k(e.append)&&"FormData"===e[f]&&e[d])},toJSONObject:e=>{const t=new Array(10),visit=(e,n)=>{if(isObject(e)){if(t.indexOf(e)>=0)return;if(isBuffer(e))return e;if(!("toJSON"in e)){t[n]=e;const o=m(e)?[]:{};return forEach(e,(e,t)=>{const i=visit(e,n+1);!P(i)&&(o[t]=i)}),t[n]=void 0,o}}return e};return visit(e,0)},isAsyncFn:ue,isThenable:e=>e&&(isObject(e)||k(e))&&k(e.then)&&k(e.catch),setImmediate:ce,asap:he,isIterable:e=>null!=e&&k(e[d])};const Ee=_e.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"]);const ge=Symbol("internals"),me=/[^\x09\x20-\x7E\x80-\xFF]/g;function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:_e.isArray(e)?e.map(normalizeValue):function sanitizeHeaderValue(e){return function trimSPorHTAB(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(e.replace(me,""))}(String(e))}function matchHeaderValue(e,t,n,o,i){return _e.isFunction(o)?o.call(this,t,n):(i&&(t=n),_e.isString(t)?_e.isString(o)?-1!==t.indexOf(o):_e.isRegExp(o)?o.test(t):void 0:void 0)}class AxiosHeaders{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function setHeader(e,t,n){const i=normalizeHeader(t);if(!i)throw new Error("header name must be a non-empty string");const d=_e.findKey(o,i);(!d||void 0===o[d]||!0===n||void 0===n&&!1!==o[d])&&(o[d||t]=normalizeValue(e))}const setHeaders=(e,t)=>_e.forEach(e,(e,n)=>setHeader(e,n,t));if(_e.isPlainObject(e)||e instanceof this.constructor)setHeaders(e,t);else if(_e.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))setHeaders((e=>{const t={};let n,o,i;return e&&e.split("\n").forEach(function parser(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),o=e.substring(i+1).trim(),!n||t[n]&&Ee[n]||("set-cookie"===n?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t})(e),t);else if(_e.isObject(e)&&_e.isIterable(e)){let n,o,i={};for(const t of e){if(!_e.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[o=t[0]]=(n=i[o])?_e.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}setHeaders(i,t)}else null!=e&&setHeader(t,e,n);return this}get(e,t){if(e=normalizeHeader(e)){const n=_e.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function parseTokens(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}(e);if(_e.isFunction(t))return t.call(this,e,n);if(_e.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=normalizeHeader(e)){const n=_e.findKey(this,e);return!(!n||void 0===this[n]||t&&!matchHeaderValue(0,this[n],n,t))}return!1}delete(e,t){const n=this;let o=!1;function deleteHeader(e){if(e=normalizeHeader(e)){const i=_e.findKey(n,e);!i||t&&!matchHeaderValue(0,n[i],i,t)||(delete n[i],o=!0)}}return _e.isArray(e)?e.forEach(deleteHeader):deleteHeader(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const i=t[n];e&&!matchHeaderValue(0,this[i],i,e,!0)||(delete this[i],o=!0)}return o}normalize(e){const t=this,n={};return _e.forEach(this,(o,i)=>{const d=_e.findKey(n,i);if(d)return t[d]=normalizeValue(o),void delete t[i];const f=e?function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim();f!==i&&delete t[i],t[f]=normalizeValue(o),n[f]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return _e.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&_e.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[ge]=this[ge]={accessors:{}}).accessors,n=this.prototype;function defineAccessor(e){const o=normalizeHeader(e);t[o]||(!function buildAccessors(e,t){const n=_e.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{__proto__:null,value:function(e,n,i){return this[o].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[o]=!0)}return _e.isArray(e)?e.forEach(defineAccessor):defineAccessor(e),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_e.reduceDescriptors(AxiosHeaders.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),_e.freezeMethods(AxiosHeaders);function redactConfig(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),o=[],visit=e=>{if(null===e||"object"!=typeof e)return e;if(_e.isBuffer(e))return e;if(-1!==o.indexOf(e))return;let t;if(e instanceof AxiosHeaders&&(e=e.toJSON()),o.push(e),_e.isArray(e))t=[],e.forEach((e,n)=>{const o=visit(e);_e.isUndefined(o)||(t[n]=o)});else{if(!_e.isPlainObject(e)&&function hasOwnOrPrototypeToJSON(e){if(_e.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(_e.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return o.pop(),e;t=Object.create(null);for(const[o,i]of Object.entries(e)){const e=n.has(o.toLowerCase())?"[REDACTED ****]":visit(i);_e.isUndefined(e)||(t[o]=e)}}return o.pop(),t};return visit(e)}class AxiosError extends Error{static from(e,t,n,o,i,d){const f=new AxiosError(e.message,t||e.code,n,o,i);return f.cause=e,f.name=e.name,null!=e.status&&null==f.status&&(f.status=e.status),d&&Object.assign(f,d),f}constructor(e,t,n,o,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){const e=this.config,t=e&&_e.hasOwnProp(e,"redact")?e.redact:void 0,n=_e.isArray(t)&&t.length>0?redactConfig(e,t):_e.toJSONObject(e);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,code:this.code,status:this.status}}}AxiosError.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",AxiosError.ERR_BAD_OPTION="ERR_BAD_OPTION",AxiosError.ECONNABORTED="ECONNABORTED",AxiosError.ETIMEDOUT="ETIMEDOUT",AxiosError.ECONNREFUSED="ECONNREFUSED",AxiosError.ERR_NETWORK="ERR_NETWORK",AxiosError.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",AxiosError.ERR_DEPRECATED="ERR_DEPRECATED",AxiosError.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",AxiosError.ERR_BAD_REQUEST="ERR_BAD_REQUEST",AxiosError.ERR_CANCELED="ERR_CANCELED",AxiosError.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",AxiosError.ERR_INVALID_URL="ERR_INVALID_URL",AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function isVisitable(e){return _e.isPlainObject(e)||_e.isArray(e)}function removeBrackets(e){return _e.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,n){return e?e.concat(t).map(function each(e,t){return e=removeBrackets(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const ye=_e.toFlatObject(_e,{},null,function filter(e){return/^is[A-Z]/.test(e)});function toFormData(e,t,n){if(!_e.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const o=(n=_e.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function defined(e,t){return!_e.isUndefined(t[e])})).metaTokens,i=n.visitor||defaultVisitor,d=n.dots,f=n.indexes,h=n.Blob||"undefined"!=typeof Blob&&Blob,_=void 0===n.maxDepth?100:n.maxDepth,m=h&&_e.isSpecCompliantForm(t);if(!_e.isFunction(i))throw new TypeError("visitor must be a function");function convertValue(e){if(null===e)return"";if(_e.isDate(e))return e.toISOString();if(_e.isBoolean(e))return e.toString();if(!m&&_e.isBlob(e))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return _e.isArrayBuffer(e)||_e.isTypedArray(e)?m&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function defaultVisitor(e,n,i){let h=e;if(_e.isReactNative(t)&&_e.isReactNativeBlob(e))return t.append(renderKey(i,n,d),convertValue(e)),!1;if(e&&!i&&"object"==typeof e)if(_e.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(_e.isArray(e)&&function isFlatArray(e){return _e.isArray(e)&&!e.some(isVisitable)}(e)||(_e.isFileList(e)||_e.endsWith(n,"[]"))&&(h=_e.toArray(e)))return n=removeBrackets(n),h.forEach(function each(e,o){!_e.isUndefined(e)&&null!==e&&t.append(!0===f?renderKey([n],o,d):null===f?n:n+"[]",convertValue(e))}),!1;return!!isVisitable(e)||(t.append(renderKey(i,n,d),convertValue(e)),!1)}const P=[],U=Object.assign(ye,{defaultVisitor:defaultVisitor,convertValue:convertValue,isVisitable:isVisitable});if(!_e.isObject(e))throw new TypeError("data must be an object");return function build(e,n,o=0){if(!_e.isUndefined(e)){if(o>_)throw new AxiosError("Object is too deeply nested ("+o+" levels). Max depth: "+_,AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==P.indexOf(e))throw Error("Circular reference detected in "+n.join("."));P.push(e),_e.forEach(e,function each(e,d){!0===(!(_e.isUndefined(e)||null===e)&&i.call(t,e,_e.isString(d)?d.trim():d,n,U))&&build(e,n?n.concat(d):[d],o+1)}),P.pop()}}(e),t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function replacer(e){return t[e]})}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData(e,this,t)}const Re=AxiosURLSearchParams.prototype;function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function buildURL(e,t,n){if(!t)return e;const o=n&&n.encode||encode,i=_e.isFunction(n)?{serialize:n}:n,d=i&&i.serialize;let f;if(f=d?d(t,i):_e.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,i).toString(o),f){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+f}return e}Re.append=function append(e,t){this._pairs.push([e,t])},Re.toString=function toString(e){const t=e?function(t){return e.call(this,t,encode$1)}:encode$1;return this._pairs.map(function each(e){return t(e[0])+"="+t(e[1])},"").join("&")};class InterceptorManager{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){_e.forEach(this.handlers,function forEachHandler(t){null!==t&&e(t)})}}var Ae={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Ie={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Te="undefined"!=typeof window&&"undefined"!=typeof document,Se="object"==typeof navigator&&navigator||void 0,Oe=Te&&(!Se||["ReactNative","NativeScript","NS"].indexOf(Se.product)<0),be="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ce=Te&&window.location.href||"http://localhost";var Ne={...Object.freeze({__proto__:null,hasBrowserEnv:Te,hasStandardBrowserEnv:Oe,hasStandardBrowserWebWorkerEnv:be,navigator:Se,origin:Ce}),...Ie};function formDataToJSON(e){function buildPath(e,t,n,o){let i=e[o++];if("__proto__"===i)return!0;const d=Number.isFinite(+i),f=o>=e.length;if(i=!i&&_e.isArray(n)?n.length:i,f)return _e.hasOwnProp(n,i)?n[i]=_e.isArray(n[i])?n[i].concat(t):[n[i],t]:n[i]=t,!d;n[i]&&_e.isObject(n[i])||(n[i]=[]);return buildPath(e,t,n[i],o)&&_e.isArray(n[i])&&(n[i]=function arrayToObject(e){const t={},n=Object.keys(e);let o;const i=n.length;let d;for(o=0;o<i;o++)d=n[o],t[d]=e[d];return t}(n[i])),!d}if(_e.isFormData(e)&&_e.isFunction(e.entries)){const t={};return _e.forEachEntry(e,(e,n)=>{buildPath(function parsePropPath(e){return _e.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,t,0)}),t}return null}const own=(e,t)=>null!=e&&_e.hasOwnProp(e,t)?e[t]:void 0;const Pe={transitional:Ae,adapter:["xhr","http","fetch"],transformRequest:[function transformRequest(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=_e.isObject(e);i&&_e.isHTMLForm(e)&&(e=new FormData(e));if(_e.isFormData(e))return o?JSON.stringify(formDataToJSON(e)):e;if(_e.isArrayBuffer(e)||_e.isBuffer(e)||_e.isStream(e)||_e.isFile(e)||_e.isBlob(e)||_e.isReadableStream(e))return e;if(_e.isArrayBufferView(e))return e.buffer;if(_e.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(i){const t=own(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function toURLEncodedForm(e,t){return toFormData(e,new Ne.classes.URLSearchParams,{visitor:function(e,t,n,o){return Ne.isNode&&_e.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((d=_e.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=own(this,"env"),o=n&&n.FormData;return toFormData(d?{"files[]":e}:e,o&&new o,t)}}return i||o?(t.setContentType("application/json",!1),function stringifySafely(e,t,n){if(_e.isString(e))try{return(t||JSON.parse)(e),_e.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function transformResponse(e){const t=own(this,"transitional")||Pe.transitional,n=t&&t.forcedJSONParsing,o=own(this,"responseType"),i="json"===o;if(_e.isResponse(e)||_e.isReadableStream(e))return e;if(e&&_e.isString(e)&&(n&&!o||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,own(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,own(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ne.classes.FormData,Blob:Ne.classes.Blob},validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function transformData(e,t){const n=this||Pe,o=t||n,i=AxiosHeaders.from(o.headers);let d=o.data;return _e.forEach(e,function transform(e){d=e.call(n,d,i.normalize(),t?t.status:void 0)}),i.normalize(),d}function isCancel(e){return!(!e||!e.__CANCEL__)}_e.forEach(["delete","get","head","post","put","patch","query"],e=>{Pe.headers[e]={}});class CanceledError extends AxiosError{constructor(e,t,n){super(null==e?"canceled":e,AxiosError.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}}function settle(e,t,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new AxiosError("Request failed with status code "+n.status,n.status>=400&&n.status<500?AxiosError.ERR_BAD_REQUEST:AxiosError.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const progressEventReducer=(e,t,n=3)=>{let o=0;const i=function speedometer(e,t){e=e||10;const n=new Array(e),o=new Array(e);let i,d=0,f=0;return t=void 0!==t?t:1e3,function push(h){const _=Date.now(),m=o[f];i||(i=_),n[d]=h,o[d]=_;let P=f,U=0;for(;P!==d;)U+=n[P++],P%=e;if(d=(d+1)%e,d===f&&(f=(f+1)%e),_-i<t)return;const L=m&&_-m;return L?Math.round(1e3*U/L):void 0}}(50,250);return function throttle(e,t){let n,o,i=0,d=1e3/t;const invoke=(t,d=Date.now())=>{i=d,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{const t=Date.now(),f=t-i;f>=d?invoke(e,t):(n=e,o||(o=setTimeout(()=>{o=null,invoke(n)},d-f)))},()=>n&&invoke(n)]}(n=>{const d=n.loaded,f=n.lengthComputable?n.total:void 0,h=null!=f?Math.min(d,f):d,_=Math.max(0,h-o),m=i(_);o=Math.max(o,h);e({loaded:h,total:f,progress:f?h/f:void 0,bytes:_,rate:m||void 0,estimated:m&&f?(f-h)/m:void 0,event:n,lengthComputable:null!=f,[t?"download":"upload"]:!0})},n)},progressEventDecorator=(e,t)=>{const n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},asyncDecorator=e=>(...t)=>_e.asap(()=>e(...t));var ve=Ne.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ne.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ne.origin),Ne.navigator&&/(msie|trident)/i.test(Ne.navigator.userAgent)):()=>!0,De=Ne.hasStandardBrowserEnv?{write(e,t,n,o,i,d,f){if("undefined"==typeof document)return;const h=[`${e}=${encodeURIComponent(t)}`];_e.isNumber(n)&&h.push(`expires=${new Date(n).toUTCString()}`),_e.isString(o)&&h.push(`path=${o}`),_e.isString(i)&&h.push(`domain=${i}`),!0===d&&h.push("secure"),_e.isString(f)&&h.push(`SameSite=${f}`),document.cookie=h.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const o=t[n].replace(/^\s+/,""),i=o.indexOf("=");if(-1!==i&&o.slice(0,i)===e)return decodeURIComponent(o.slice(i+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function buildFullPath(e,t,n){let o=!function isAbsoluteURL(e){return"string"==typeof e&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(o||!1===n)?function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const headersToObject=e=>e instanceof AxiosHeaders?{...e}:e;function mergeConfig(e,t){t=t||{};const n=Object.create(null);function getMergedValue(e,t,n,o){return _e.isPlainObject(e)&&_e.isPlainObject(t)?_e.merge.call({caseless:o},e,t):_e.isPlainObject(t)?_e.merge({},t):_e.isArray(t)?t.slice():t}function mergeDeepProperties(e,t,n,o){return _e.isUndefined(t)?_e.isUndefined(e)?void 0:getMergedValue(void 0,e,0,o):getMergedValue(e,t,0,o)}function valueFromConfig2(e,t){if(!_e.isUndefined(t))return getMergedValue(void 0,t)}function defaultToConfig2(e,t){return _e.isUndefined(t)?_e.isUndefined(e)?void 0:getMergedValue(void 0,e):getMergedValue(void 0,t)}function mergeDirectKeys(n,o,i){return _e.hasOwnProp(t,i)?getMergedValue(n,o):_e.hasOwnProp(e,i)?getMergedValue(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const o={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,allowedSocketPaths:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(e,t,n)=>mergeDeepProperties(headersToObject(e),headersToObject(t),0,!0)};return _e.forEach(Object.keys({...e,...t}),function computeConfigValue(i){if("__proto__"===i||"constructor"===i||"prototype"===i)return;const d=_e.hasOwnProp(o,i)?o[i]:mergeDeepProperties,f=d(_e.hasOwnProp(e,i)?e[i]:void 0,_e.hasOwnProp(t,i)?t[i]:void 0,i);_e.isUndefined(f)&&d!==mergeDirectKeys||(n[i]=f)}),n}const Me=["content-type","content-length"];var resolveConfig=e=>{const t=mergeConfig({},e),own=e=>_e.hasOwnProp(t,e)?t[e]:void 0,n=own("data");let o=own("withXSRFToken");const i=own("xsrfHeaderName"),d=own("xsrfCookieName");let f=own("headers");const h=own("auth"),_=own("baseURL"),m=own("allowAbsoluteUrls"),P=own("url");var U;if(t.headers=f=AxiosHeaders.from(f),t.url=buildURL(buildFullPath(_,P,m),e.params,e.paramsSerializer),h&&f.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?(U=h.password,encodeURIComponent(U).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))):""))),_e.isFormData(n)&&(Ne.hasStandardBrowserEnv||Ne.hasStandardBrowserWebWorkerEnv?f.setContentType(void 0):_e.isFunction(n.getHeaders)&&function setFormDataHeaders(e,t,n){"content-only"===n?Object.entries(t).forEach(([t,n])=>{Me.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(f,n.getHeaders(),own("formDataHeaderPolicy"))),Ne.hasStandardBrowserEnv){_e.isFunction(o)&&(o=o(t));if(!0===o||null==o&&ve(t.url)){const e=i&&d&&De.read(d);e&&f.set(i,e)}}return t};var Ue="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function dispatchXhrRequest(t,n){const o=resolveConfig(e);let i=o.data;const d=AxiosHeaders.from(o.headers).normalize();let f,h,_,m,P,{responseType:U,onUploadProgress:L,onDownloadProgress:k}=o;function done(){m&&m(),P&&P(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let j=new XMLHttpRequest;function onloadend(){if(!j)return;const o=AxiosHeaders.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders());settle(function _resolve(e){t(e),done()},function _reject(e){n(e),done()},{data:U&&"text"!==U&&"json"!==U?j.response:j.responseText,status:j.status,statusText:j.statusText,headers:o,config:e,request:j}),j=null}j.open(o.method.toUpperCase(),o.url,!0),j.timeout=o.timeout,"onloadend"in j?j.onloadend=onloadend:j.onreadystatechange=function handleLoad(){j&&4===j.readyState&&(0!==j.status||j.responseURL&&j.responseURL.startsWith("file:"))&&setTimeout(onloadend)},j.onabort=function handleAbort(){j&&(n(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,j)),done(),j=null)},j.onerror=function handleError(t){const o=t&&t.message?t.message:"Network Error",i=new AxiosError(o,AxiosError.ERR_NETWORK,e,j);i.event=t||null,n(i),done(),j=null},j.ontimeout=function handleTimeout(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const i=o.transitional||Ae;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),n(new AxiosError(t,i.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,j)),done(),j=null},void 0===i&&d.setContentType(null),"setRequestHeader"in j&&_e.forEach(d.toJSON(),function setRequestHeader(e,t){j.setRequestHeader(t,e)}),_e.isUndefined(o.withCredentials)||(j.withCredentials=!!o.withCredentials),U&&"json"!==U&&(j.responseType=o.responseType),k&&([_,P]=progressEventReducer(k,!0),j.addEventListener("progress",_)),L&&j.upload&&([h,m]=progressEventReducer(L),j.upload.addEventListener("progress",h),j.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(f=t=>{j&&(n(!t||t.type?new CanceledError(null,e,j):t),j.abort(),done(),j=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const Y=function parseProtocol(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(o.url);!Y||Ne.protocols.includes(Y)?j.send(i||null):n(new AxiosError("Unsupported protocol "+Y+":",AxiosError.ERR_BAD_REQUEST,e))})};const composeSignals=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,o=new AbortController;const onabort=function(e){if(!n){n=!0,unsubscribe();const t=e instanceof Error?e:this.reason;o.abort(t instanceof AxiosError?t:new CanceledError(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,onabort(new AxiosError(`timeout of ${t}ms exceeded`,AxiosError.ETIMEDOUT))},t);const unsubscribe=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(onabort):e.removeEventListener("abort",onabort)}),e=null)};e.forEach(e=>e.addEventListener("abort",onabort));const{signal:d}=o;return d.unsubscribe=()=>_e.asap(unsubscribe),d}},streamChunk=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let o,i=0;for(;i<n;)o=i+t,yield e.slice(i,o),i=o},readStream=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},trackStream=(e,t,n,o)=>{const i=async function*(e,t){for await(const n of readStream(e))yield*streamChunk(n,t)}(e,t);let d,f=0,_onFinish=e=>{d||(d=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await i.next();if(t)return _onFinish(),void e.close();let d=o.byteLength;if(n){let e=f+=d;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw _onFinish(e),e}},cancel:e=>(_onFinish(e),i.return())},{highWaterMark:2})};const Le="1.16.0",{isFunction:we}=_e,test=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},factory=e=>{const t=_e.global??globalThis,{ReadableStream:n,TextEncoder:o}=t;e=_e.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:i,Request:d,Response:f}=e,h=i?we(i):"function"==typeof fetch,_=we(d),m=we(f);if(!h)return!1;const P=h&&we(n),U=h&&("function"==typeof o?(L=new o,e=>L.encode(e)):async e=>new Uint8Array(await new d(e).arrayBuffer()));var L;const k=_&&P&&test(()=>{let e=!1;const t=new d(Ne.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),o=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!o}),j=m&&P&&test(()=>_e.isReadableStream(new f("").body)),Y={stream:j&&(e=>e.body)};h&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Y[e]&&(Y[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new AxiosError(`Response type '${e}' is not supported`,AxiosError.ERR_NOT_SUPPORT,n)})});const resolveBodyLength=async(e,t)=>{const n=_e.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(_e.isBlob(e))return e.size;if(_e.isSpecCompliantForm(e)){const t=new d(Ne.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return _e.isArrayBufferView(e)||_e.isArrayBuffer(e)?e.byteLength:(_e.isURLSearchParams(e)&&(e+=""),_e.isString(e)?(await U(e)).byteLength:void 0)})(t):n};return async e=>{let{url:t,method:n,data:h,signal:m,cancelToken:P,timeout:U,onDownloadProgress:L,onUploadProgress:H,responseType:V,headers:K,withCredentials:W="same-origin",fetchOptions:X,maxContentLength:J,maxBodyLength:Q}=resolveConfig(e);const Z=_e.isNumber(J)&&J>-1,ee=_e.isNumber(Q)&&Q>-1;let te=i||fetch;V=V?(V+"").toLowerCase():"text";let re=composeSignals([m,P&&P.toAbortSignal()],U),ne=null;const oe=re&&re.unsubscribe&&(()=>{re.unsubscribe()});let ie;try{if(Z&&"string"==typeof t&&t.startsWith("data:")){const n=function estimateDataURLDecodedBytes(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),o=e.slice(t+1);if(/;base64/i.test(n)){let e=o.length;const t=o.length;for(let n=0;n<t;n++)if(37===o.charCodeAt(n)&&n+2<t){const t=o.charCodeAt(n+1),i=o.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102)&&(e-=2,n+=2)}let n=0,i=t-1;const tailIsPct3D=e=>e>=2&&37===o.charCodeAt(e-2)&&51===o.charCodeAt(e-1)&&(68===o.charCodeAt(e)||100===o.charCodeAt(e));i>=0&&(61===o.charCodeAt(i)?(n++,i--):tailIsPct3D(i)&&(n++,i-=3)),1===n&&i>=0&&(61===o.charCodeAt(i)||tailIsPct3D(i))&&n++;const d=3*Math.floor(e/4)-(n||0);return d>0?d:0}if("undefined"!=typeof Buffer&&"function"==typeof Buffer.byteLength)return Buffer.byteLength(o,"utf8");let i=0;for(let e=0,t=o.length;e<t;e++){const n=o.charCodeAt(e);if(n<128)i+=1;else if(n<2048)i+=2;else if(n>=55296&&n<=56319&&e+1<t){const t=o.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i}(t);if(n>J)throw new AxiosError("maxContentLength size of "+J+" exceeded",AxiosError.ERR_BAD_RESPONSE,e,ne)}if(ee&&"get"!==n&&"head"!==n){const t=await resolveBodyLength(K,h);if("number"==typeof t&&isFinite(t)&&t>Q)throw new AxiosError("Request body larger than maxBodyLength limit",AxiosError.ERR_BAD_REQUEST,e,ne)}if(H&&k&&"get"!==n&&"head"!==n&&0!==(ie=await resolveBodyLength(K,h))){let e,n=new d(t,{method:"POST",body:h,duplex:"half"});if(_e.isFormData(h)&&(e=n.headers.get("content-type"))&&K.setContentType(e),n.body){const[e,t]=progressEventDecorator(ie,progressEventReducer(asyncDecorator(H)));h=trackStream(n.body,65536,e,t)}}_e.isString(W)||(W=W?"include":"omit");const i=_&&"credentials"in d.prototype;if(_e.isFormData(h)){const e=K.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&K.delete("content-type")}K.set("User-Agent","axios/"+Le,!1);const m={...X,signal:re,method:n.toUpperCase(),headers:K.normalize().toJSON(),body:h,duplex:"half",credentials:i?W:void 0};ne=_&&new d(t,m);let P=await(_?te(ne,X):te(t,m));if(Z){const t=_e.toFiniteNumber(P.headers.get("content-length"));if(null!=t&&t>J)throw new AxiosError("maxContentLength size of "+J+" exceeded",AxiosError.ERR_BAD_RESPONSE,e,ne)}const U=j&&("stream"===V||"response"===V);if(j&&P.body&&(L||Z||U&&oe)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=P[e]});const n=_e.toFiniteNumber(P.headers.get("content-length")),[o,i]=L&&progressEventDecorator(n,progressEventReducer(asyncDecorator(L),!0))||[];let d=0;const onChunkProgress=t=>{if(Z&&(d=t,d>J))throw new AxiosError("maxContentLength size of "+J+" exceeded",AxiosError.ERR_BAD_RESPONSE,e,ne);o&&o(t)};P=new f(trackStream(P.body,65536,onChunkProgress,()=>{i&&i(),oe&&oe()}),t)}V=V||"text";let se=await Y[_e.findKey(Y,V)||"text"](P,e);if(Z&&!j&&!U){let t;if(null!=se&&("number"==typeof se.byteLength?t=se.byteLength:"number"==typeof se.size?t=se.size:"string"==typeof se&&(t="function"==typeof o?(new o).encode(se).byteLength:se.length)),"number"==typeof t&&t>J)throw new AxiosError("maxContentLength size of "+J+" exceeded",AxiosError.ERR_BAD_RESPONSE,e,ne)}return!U&&oe&&oe(),await new Promise((t,n)=>{settle(t,n,{data:se,headers:AxiosHeaders.from(P.headers),status:P.status,statusText:P.statusText,config:e,request:ne})})}catch(t){if(oe&&oe(),re&&re.aborted&&re.reason instanceof AxiosError){const n=re.reason;throw n.config=e,ne&&(n.request=ne),t!==n&&(n.cause=t),n}if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,ne,t&&t.response),{cause:t.cause||t});throw AxiosError.from(t,t&&t.code,e,ne,t&&t.response)}}},Be=new Map,getFetch=e=>{let t=e&&e.env||{};const{fetch:n,Request:o,Response:i}=t,d=[o,i,n];let f,h,_=d.length,m=Be;for(;_--;)f=d[_],h=m.get(f),void 0===h&&m.set(f,h=_?new Map:factory(t)),m=h;return h};getFetch();const xe={http:null,xhr:Ue,fetch:{get:getFetch}};_e.forEach(xe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const renderReason=e=>`- ${e}`,isResolvedHandle=e=>_e.isFunction(e)||null===e||!1===e;var Fe={getAdapter:function getAdapter(e,t){e=_e.isArray(e)?e:[e];const{length:n}=e;let o,i;const d={};for(let f=0;f<n;f++){let n;if(o=e[f],i=o,!isResolvedHandle(o)&&(i=xe[(n=String(o)).toLowerCase()],void 0===i))throw new AxiosError(`Unknown adapter '${n}'`);if(i&&(_e.isFunction(i)||(i=i.get(t))))break;d[n||"#"+f]=i}if(!i){const e=Object.entries(d).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return i},adapters:xe};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){throwIfCancellationRequested(e),e.headers=AxiosHeaders.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Fe.getAdapter(e.adapter||Pe.adapter,e)(e).then(function onAdapterResolution(t){throwIfCancellationRequested(e),e.response=t;try{t.data=transformData.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=AxiosHeaders.from(t.headers),t},function onAdapterRejection(t){if(!isCancel(t)&&(throwIfCancellationRequested(e),t&&t.response)){e.response=t.response;try{t.response.data=transformData.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=AxiosHeaders.from(t.response.headers)}return Promise.reject(t)})}const ke={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ke[e]=function validator(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ge={};ke.transitional=function transitional(e,t,n){function formatMessage(e,t){return"[Axios v"+Le+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new AxiosError(formatMessage(o," has been removed"+(t?" in "+t:"")),AxiosError.ERR_DEPRECATED);return t&&!Ge[o]&&(Ge[o]=!0,console.warn(formatMessage(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},ke.spelling=function spelling(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var qe={assertOptions:function assertOptions(e,t,n){if("object"!=typeof e)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let i=o.length;for(;i-- >0;){const d=o[i],f=Object.prototype.hasOwnProperty.call(t,d)?t[d]:void 0;if(f){const t=e[d],n=void 0===t||f(t,d,e);if(!0!==n)throw new AxiosError("option "+d+" must be "+n,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new AxiosError("Unknown option "+d,AxiosError.ERR_BAD_OPTION)}},validators:ke};const je=qe.validators;class Axios{constructor(e){this.defaults=e||{},this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){const t=n.indexOf("\n"),o=-1===t?-1:n.indexOf("\n",t+1),i=-1===o?"":n.slice(o+1);String(e.stack).endsWith(i)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=mergeConfig(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:i}=t;void 0!==n&&qe.assertOptions(n,{silentJSONParsing:je.transitional(je.boolean),forcedJSONParsing:je.transitional(je.boolean),clarifyTimeoutError:je.transitional(je.boolean),legacyInterceptorReqResOrdering:je.transitional(je.boolean)},!1),null!=o&&(_e.isFunction(o)?t.paramsSerializer={serialize:o}:qe.assertOptions(o,{encode:je.function,serialize:je.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),qe.assertOptions(t,{baseUrl:je.spelling("baseURL"),withXsrfToken:je.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let d=i&&_e.merge(i.common,i[t.method]);i&&_e.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete i[e]}),t.headers=AxiosHeaders.concat(d,i);const f=[];let h=!0;this.interceptors.request.forEach(function unshiftRequestInterceptors(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;h=h&&e.synchronous;const n=t.transitional||Ae;n&&n.legacyInterceptorReqResOrdering?f.unshift(e.fulfilled,e.rejected):f.push(e.fulfilled,e.rejected)});const _=[];let m;this.interceptors.response.forEach(function pushResponseInterceptors(e){_.push(e.fulfilled,e.rejected)});let P,U=0;if(!h){const e=[dispatchRequest.bind(this),void 0];for(e.unshift(...f),e.push(..._),P=e.length,m=Promise.resolve(t);U<P;)m=m.then(e[U++],e[U++]);return m}P=f.length;let L=t;for(;U<P;){const e=f[U++],t=f[U++];try{L=e(L)}catch(e){t.call(this,e);break}}try{m=dispatchRequest.call(this,L)}catch(e){return Promise.reject(e)}for(U=0,P=_.length;U<P;)m=m.then(_[U++],_[U++]);return m}getUri(e){return buildURL(buildFullPath((e=mergeConfig(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}_e.forEach(["delete","get","head","options"],function forEachMethodNoData(e){Axios.prototype[e]=function(t,n){return this.request(mergeConfig(n||{},{method:e,url:t,data:(n||{}).data}))}}),_e.forEach(["post","put","patch","query"],function forEachMethodWithData(e){function generateHTTPMethod(t){return function httpMethod(n,o,i){return this.request(mergeConfig(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}Axios.prototype[e]=generateHTTPMethod(),"query"!==e&&(Axios.prototype[e+"Form"]=generateHTTPMethod(!0))});class CancelToken{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function promiseExecutor(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const o=new Promise(e=>{n.subscribe(e),t=e}).then(e);return o.cancel=function reject(){n.unsubscribe(t)},o},e(function cancel(e,o,i){n.reason||(n.reason=new CanceledError(e,o,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,abort=t=>{e.abort(t)};return this.subscribe(abort),e.signal.unsubscribe=()=>this.unsubscribe(abort),e.signal}static source(){let e;return{token:new CancelToken(function executor(t){e=t}),cancel:e}}}const Ye={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ye).forEach(([e,t])=>{Ye[t]=e});const $e=function createInstance(e){const t=new Axios(e),n=bind(Axios.prototype.request,t);return _e.extend(n,Axios.prototype,t,{allOwnKeys:!0}),_e.extend(n,t,null,{allOwnKeys:!0}),n.create=function create(t){return createInstance(mergeConfig(e,t))},n}(Pe);return $e.Axios=Axios,$e.CanceledError=CanceledError,$e.CancelToken=CancelToken,$e.isCancel=isCancel,$e.VERSION=Le,$e.toFormData=toFormData,$e.AxiosError=AxiosError,$e.Cancel=$e.CanceledError,$e.all=function all(e){return Promise.all(e)},$e.spread=function spread(e){return function wrap(t){return e.apply(null,t)}},$e.isAxiosError=function isAxiosError(e){return _e.isObject(e)&&!0===e.isAxiosError},$e.mergeConfig=mergeConfig,$e.AxiosHeaders=AxiosHeaders,$e.formToJSON=e=>formDataToJSON(_e.isHTMLForm(e)?new FormData(e):e),$e.getAdapter=Fe.getAdapter,$e.HttpStatusCode=Ye,$e.default=$e,t=$e}var m,P,U,L,k,j,Y,H={exports:{}};function requireMs(){if(P)return m;P=1;var e=1e3,t=60*e,n=60*t,o=24*n,i=7*o,d=365.25*o;function plural(e,t,n,o){var i=t>=1.5*n;return Math.round(e/n)+" "+o+(i?"s":"")}return m=function(f,h){h=h||{};var _=typeof f;if("string"===_&&f.length>0)return function parse(f){if((f=String(f)).length>100)return;var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(!h)return;var _=parseFloat(h[1]);switch((h[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return _*d;case"weeks":case"week":case"w":return _*i;case"days":case"day":case"d":return _*o;case"hours":case"hour":case"hrs":case"hr":case"h":return _*n;case"minutes":case"minute":case"mins":case"min":case"m":return _*t;case"seconds":case"second":case"secs":case"sec":case"s":return _*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return _;default:return}}(f);if("number"===_&&isFinite(f))return h.long?function fmtLong(i){var d=Math.abs(i);if(d>=o)return plural(i,d,o,"day");if(d>=n)return plural(i,d,n,"hour");if(d>=t)return plural(i,d,t,"minute");if(d>=e)return plural(i,d,e,"second");return i+" ms"}(f):function fmtShort(i){var d=Math.abs(i);if(d>=o)return Math.round(i/o)+"d";if(d>=n)return Math.round(i/n)+"h";if(d>=t)return Math.round(i/t)+"m";if(d>=e)return Math.round(i/e)+"s";return i+"ms"}(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))},m}function requireBrowser(){return k||(k=1,function(e,t){t.formatArgs=function formatArgs(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let o=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(o++,"%c"===e&&(i=o))}),t.splice(i,0,n)},t.save=function save(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function load(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function useColors(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function localstorage(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=function requireCommon$1(){return L||(L=1,U=function setup(e){function createDebug(e){let t,n,o,i=null;function debug(...e){if(!debug.enabled)return;const n=debug,o=Number(new Date),i=o-(t||o);n.diff=i,n.prev=t,n.curr=o,t=o,e[0]=createDebug.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let d=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,o)=>{if("%%"===t)return"%";d++;const i=createDebug.formatters[o];if("function"==typeof i){const o=e[d];t=i.call(n,o),e.splice(d,1),d--}return t}),createDebug.formatArgs.call(n,e),(n.log||createDebug.log).apply(n,e)}return debug.namespace=e,debug.useColors=createDebug.useColors(),debug.color=createDebug.selectColor(e),debug.extend=extend,debug.destroy=createDebug.destroy,Object.defineProperty(debug,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(n!==createDebug.namespaces&&(n=createDebug.namespaces,o=createDebug.enabled(e)),o),set:e=>{i=e}}),"function"==typeof createDebug.init&&createDebug.init(debug),debug}function extend(e,t){const n=createDebug(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function matchesTemplate(e,t){let n=0,o=0,i=-1,d=0;for(;n<e.length;)if(o<t.length&&(t[o]===e[n]||"*"===t[o]))"*"===t[o]?(i=o,d=n,o++):(n++,o++);else{if(-1===i)return!1;o=i+1,d++,n=d}for(;o<t.length&&"*"===t[o];)o++;return o===t.length}return createDebug.debug=createDebug,createDebug.default=createDebug,createDebug.coerce=function coerce(e){return e instanceof Error?e.stack||e.message:e},createDebug.disable=function disable(){const e=[...createDebug.names,...createDebug.skips.map(e=>"-"+e)].join(",");return createDebug.enable(""),e},createDebug.enable=function enable(e){createDebug.save(e),createDebug.namespaces=e,createDebug.names=[],createDebug.skips=[];const t=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of t)"-"===e[0]?createDebug.skips.push(e.slice(1)):createDebug.names.push(e)},createDebug.enabled=function enabled(e){for(const t of createDebug.skips)if(matchesTemplate(e,t))return!1;for(const t of createDebug.names)if(matchesTemplate(e,t))return!0;return!1},createDebug.humanize=requireMs(),createDebug.destroy=function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(t=>{createDebug[t]=e[t]}),createDebug.names=[],createDebug.skips=[],createDebug.formatters={},createDebug.selectColor=function selectColor(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return createDebug.colors[Math.abs(t)%createDebug.colors.length]},createDebug.enable(createDebug.load()),createDebug}),U}()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(H,H.exports)),H.exports}function requireType(){return Y?j:(Y=1,j=TypeError)}var V,K,W,X,J,Q,Z,ee,te,re,ne,oe,ie,se,ae,ue,ce,le,de,pe,fe,he,_e,Ee,ge,me,ye,Re,Ae,Ie,Te,Se,Oe,be,Ce,Ne,Pe,ve,De,Me,Ue,Le,we,Be,xe,Fe,ke,Ge,qe,je,Ye,$e,He,Ve,Ke,We,Xe,ze,Je,Qe,Ze,ot,yt,Rt,qt,Yt,Ht,Kt,Xt,zt,Jt,Qt,Zt,er,tr,rr,nr,or,ir,sr,ar,ur,cr,lr,dr,pr,fr,hr,_r,Er,gr=getAugmentedNamespace(Object.freeze({__proto__:null,default:{}}));function requireObjectInspect(){if(K)return V;K=1;var t="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=t&&n&&"function"==typeof n.get?n.get:null,i=t&&Map.prototype.forEach,d="function"==typeof Set&&Set.prototype,f=Object.getOwnPropertyDescriptor&&d?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,h=d&&f&&"function"==typeof f.get?f.get:null,_=d&&Set.prototype.forEach,m="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,P="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,U="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,L=Boolean.prototype.valueOf,k=Object.prototype.toString,j=Function.prototype.toString,Y=String.prototype.match,H=String.prototype.slice,W=String.prototype.replace,X=String.prototype.toUpperCase,J=String.prototype.toLowerCase,Q=RegExp.prototype.test,Z=Array.prototype.concat,ee=Array.prototype.join,te=Array.prototype.slice,re=Math.floor,ne="function"==typeof BigInt?BigInt.prototype.valueOf:null,oe=Object.getOwnPropertySymbols,ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,se="function"==typeof Symbol&&"object"==typeof Symbol.iterator,ae="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===se||"symbol")?Symbol.toStringTag:null,ue=Object.prototype.propertyIsEnumerable,ce=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function addNumericSeparator(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||Q.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-re(-e):re(e);if(o!==e){var i=String(o),d=H.call(t,i.length+1);return W.call(i,n,"$&_")+"."+W.call(W.call(d,/([0-9]{3})/g,"$&_"),/_$/,"")}}return W.call(t,n,"$&_")}var le=gr,de=le.custom,pe=isSymbol(de)?de:null,fe={__proto__:null,double:'"',single:"'"},he={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function wrapQuotes(e,t,n){var o=n.quoteStyle||t,i=fe[o];return i+e+i}function quote(e){return W.call(String(e),/"/g,"&quot;")}function canTrustToString(e){return!ae||!("object"==typeof e&&(ae in e||void 0!==e[ae]))}function isArray(e){return"[object Array]"===toStr(e)&&canTrustToString(e)}function isRegExp(e){return"[object RegExp]"===toStr(e)&&canTrustToString(e)}function isSymbol(e){if(se)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!ie)return!1;try{return ie.call(e),!0}catch(e){}return!1}V=function inspect_(t,n,d,f){var k=n||{};if(has(k,"quoteStyle")&&!has(fe,k.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has(k,"maxStringLength")&&("number"==typeof k.maxStringLength?k.maxStringLength<0&&k.maxStringLength!==1/0:null!==k.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var V=!has(k,"customInspect")||k.customInspect;if("boolean"!=typeof V&&"symbol"!==V)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has(k,"indent")&&null!==k.indent&&"\t"!==k.indent&&!(parseInt(k.indent,10)===k.indent&&k.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has(k,"numericSeparator")&&"boolean"!=typeof k.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var K=k.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return inspectString(t,k);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var X=String(t);return K?addNumericSeparator(t,X):X}if("bigint"==typeof t){var Q=String(t)+"n";return K?addNumericSeparator(t,Q):Q}var re=void 0===k.depth?5:k.depth;if(void 0===d&&(d=0),d>=re&&re>0&&"object"==typeof t)return isArray(t)?"[Array]":"[Object]";var oe=function getIndent(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=ee.call(Array(e.indent+1)," ")}return{base:n,prev:ee.call(Array(t+1),n)}}(k,d);if(void 0===f)f=[];else if(indexOf(f,t)>=0)return"[Circular]";function inspect(e,t,n){if(t&&(f=te.call(f)).push(t),n){var o={depth:k.depth};return has(k,"quoteStyle")&&(o.quoteStyle=k.quoteStyle),inspect_(e,o,d+1,f)}return inspect_(e,k,d+1,f)}if("function"==typeof t&&!isRegExp(t)){var de=function nameOf(e){if(e.name)return e.name;var t=Y.call(j.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),he=arrObjKeys(t,inspect);return"[Function"+(de?": "+de:" (anonymous)")+"]"+(he.length>0?" { "+ee.call(he,", ")+" }":"")}if(isSymbol(t)){var _e=se?W.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):ie.call(t);return"object"!=typeof t||se?_e:markBoxed(_e)}if(function isElement(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var Ee="<"+J.call(String(t.nodeName)),ge=t.attributes||[],me=0;me<ge.length;me++)Ee+=" "+ge[me].name+"="+wrapQuotes(quote(ge[me].value),"double",k);return Ee+=">",t.childNodes&&t.childNodes.length&&(Ee+="..."),Ee+="</"+J.call(String(t.nodeName))+">"}if(isArray(t)){if(0===t.length)return"[]";var ye=arrObjKeys(t,inspect);return oe&&!function singleLineValues(e){for(var t=0;t<e.length;t++)if(indexOf(e[t],"\n")>=0)return!1;return!0}(ye)?"["+indentedJoin(ye,oe)+"]":"[ "+ee.call(ye,", ")+" ]"}if(function isError(e){return"[object Error]"===toStr(e)&&canTrustToString(e)}(t)){var Re=arrObjKeys(t,inspect);return"cause"in Error.prototype||!("cause"in t)||ue.call(t,"cause")?0===Re.length?"["+String(t)+"]":"{ ["+String(t)+"] "+ee.call(Re,", ")+" }":"{ ["+String(t)+"] "+ee.call(Z.call("[cause]: "+inspect(t.cause),Re),", ")+" }"}if("object"==typeof t&&V){if(pe&&"function"==typeof t[pe]&&le)return le(t,{depth:re-d});if("symbol"!==V&&"function"==typeof t.inspect)return t.inspect()}if(function isMap(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{h.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var Ae=[];return i&&i.call(t,function(e,n){Ae.push(inspect(n,t,!0)+" => "+inspect(e,t))}),collectionOf("Map",o.call(t),Ae,oe)}if(function isSet(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var Ie=[];return _&&_.call(t,function(e){Ie.push(inspect(e,t))}),collectionOf("Set",h.call(t),Ie,oe)}if(function isWeakMap(e){if(!m||!e||"object"!=typeof e)return!1;try{m.call(e,m);try{P.call(e,P)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return weakCollectionOf("WeakMap");if(function isWeakSet(e){if(!P||!e||"object"!=typeof e)return!1;try{P.call(e,P);try{m.call(e,m)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return weakCollectionOf("WeakSet");if(function isWeakRef(e){if(!U||!e||"object"!=typeof e)return!1;try{return U.call(e),!0}catch(e){}return!1}(t))return weakCollectionOf("WeakRef");if(function isNumber(e){return"[object Number]"===toStr(e)&&canTrustToString(e)}(t))return markBoxed(inspect(Number(t)));if(function isBigInt(e){if(!e||"object"!=typeof e||!ne)return!1;try{return ne.call(e),!0}catch(e){}return!1}(t))return markBoxed(inspect(ne.call(t)));if(function isBoolean(e){return"[object Boolean]"===toStr(e)&&canTrustToString(e)}(t))return markBoxed(L.call(t));if(function isString(e){return"[object String]"===toStr(e)&&canTrustToString(e)}(t))return markBoxed(inspect(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==e&&t===e)return"{ [object globalThis] }";if(!function isDate(e){return"[object Date]"===toStr(e)&&canTrustToString(e)}(t)&&!isRegExp(t)){var Te=arrObjKeys(t,inspect),Se=ce?ce(t)===Object.prototype:t instanceof Object||t.constructor===Object,Oe=t instanceof Object?"":"null prototype",be=!Se&&ae&&Object(t)===t&&ae in t?H.call(toStr(t),8,-1):Oe?"Object":"",Ce=(Se||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(be||Oe?"["+ee.call(Z.call([],be||[],Oe||[]),": ")+"] ":"");return 0===Te.length?Ce+"{}":oe?Ce+"{"+indentedJoin(Te,oe)+"}":Ce+"{ "+ee.call(Te,", ")+" }"}return String(t)};var _e=Object.prototype.hasOwnProperty||function(e){return e in this};function has(e,t){return _e.call(e,t)}function toStr(e){return k.call(e)}function indexOf(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function inspectString(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,o="... "+n+" more character"+(n>1?"s":"");return inspectString(H.call(e,0,t.maxStringLength),t)+o}var i=he[t.quoteStyle||"single"];return i.lastIndex=0,wrapQuotes(W.call(W.call(e,i,"\\$1"),/[\x00-\x1f]/g,lowbyte),"single",t)}function lowbyte(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+X.call(t.toString(16))}function markBoxed(e){return"Object("+e+")"}function weakCollectionOf(e){return e+" { ? }"}function collectionOf(e,t,n,o){return e+" ("+t+") {"+(o?indentedJoin(n,o):ee.call(n,", "))+"}"}function indentedJoin(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+ee.call(e,","+n)+"\n"+t.prev}function arrObjKeys(e,t){var n=isArray(e),o=[];if(n){o.length=e.length;for(var i=0;i<e.length;i++)o[i]=has(e,i)?t(e[i],e):""}var d,f="function"==typeof oe?oe(e):[];if(se){d={};for(var h=0;h<f.length;h++)d["$"+f[h]]=f[h]}for(var _ in e)has(e,_)&&(n&&String(Number(_))===_&&_<e.length||se&&d["$"+_]instanceof Symbol||(Q.call(/[^\w$]/,_)?o.push(t(_,e)+": "+t(e[_],e)):o.push(_+": "+t(e[_],e))));if("function"==typeof oe)for(var m=0;m<f.length;m++)ue.call(e,f[m])&&o.push("["+t(f[m])+"]: "+t(e[f[m]],e));return o}return V}function requireSideChannelList(){if(X)return W;X=1;var e=requireObjectInspect(),t=requireType(),listGetNode=function(e,t,n){for(var o,i=e;null!=(o=i.next);i=o)if(o.key===t)return i.next=o.next,n||(o.next=e.next,e.next=o),o};return W=function getSideChannelList(){var n,o={assert:function(n){if(!o.has(n))throw new t("Side channel does not contain "+e(n))},delete:function(e){var t=n&&n.next,o=function(e,t){if(e)return listGetNode(e,t,!0)}(n,e);return o&&t&&t===o&&(n=void 0),!!o},get:function(e){return function(e,t){if(e){var n=listGetNode(e,t);return n&&n.value}}(n,e)},has:function(e){return function(e,t){return!!e&&!!listGetNode(e,t)}(n,e)},set:function(e,t){n||(n={next:void 0}),function(e,t,n){var o=listGetNode(e,t);o?o.value=n:e.next={key:t,next:e.next,value:n}}(n,e,t)}};return o}}function requireEsObjectAtoms(){return Q?J:(Q=1,J=Object)}function requireEsErrors(){return ee?Z:(ee=1,Z=Error)}function require_eval(){return re?te:(re=1,te=EvalError)}function requireRange(){return oe?ne:(oe=1,ne=RangeError)}function requireRef(){return se?ie:(se=1,ie=ReferenceError)}function requireSyntax(){return ue?ae:(ue=1,ae=SyntaxError)}function requireUri(){return le?ce:(le=1,ce=URIError)}function requireAbs(){return pe?de:(pe=1,de=Math.abs)}function requireFloor(){return he?fe:(he=1,fe=Math.floor)}function requireMax(){return Ee?_e:(Ee=1,_e=Math.max)}function requireMin(){return me?ge:(me=1,ge=Math.min)}function requirePow(){return Re?ye:(Re=1,ye=Math.pow)}function requireRound(){return Ie?Ae:(Ie=1,Ae=Math.round)}function require_isNaN(){return Se?Te:(Se=1,Te=Number.isNaN||function isNaN(e){return e!=e})}function requireSign(){if(be)return Oe;be=1;var e=require_isNaN();return Oe=function sign(t){return e(t)||0===t?t:t<0?-1:1}}function requireGOPD(){return Ne?Ce:(Ne=1,Ce=Object.getOwnPropertyDescriptor)}function requireGopd(){if(ve)return Pe;ve=1;var e=requireGOPD();if(e)try{e([],"length")}catch(t){e=null}return Pe=e}function requireEsDefineProperty(){if(Me)return De;Me=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}return De=e}function requireHasSymbols(){if(Be)return we;Be=1;var e="undefined"!=typeof Symbol&&Symbol,t=function requireShams(){return Le?Ue:(Le=1,Ue=function hasSymbols(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var o in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var d=Object.getOwnPropertyDescriptor(e,t);if(42!==d.value||!0!==d.enumerable)return!1}return!0})}();return we=function hasNativeSymbols(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}function requireReflect_getPrototypeOf(){return Fe?xe:(Fe=1,xe="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function requireObject_getPrototypeOf(){return Ge?ke:(Ge=1,ke=requireEsObjectAtoms().getPrototypeOf||null)}function requireImplementation(){if(je)return qe;je=1;var e=Object.prototype.toString,t=Math.max,n=function concatty(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};return qe=function bind(o){var i=this;if("function"!=typeof i||"[object Function]"!==e.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var d,f=function slicy(e,t){for(var n=[],o=t,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n}(arguments,1),h=t(0,i.length-f.length),_=[],m=0;m<h;m++)_[m]="$"+m;if(d=Function("binder","return function ("+function(e,t){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=t);return n}(_,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof d){var e=i.apply(this,n(f,arguments));return Object(e)===e?e:this}return i.apply(o,n(f,arguments))}),i.prototype){var P=function Empty(){};P.prototype=i.prototype,d.prototype=new P,P.prototype=null}return d},qe}function requireFunctionBind(){if($e)return Ye;$e=1;var e=requireImplementation();return Ye=Function.prototype.bind||e}function requireFunctionCall(){return Ve?He:(Ve=1,He=Function.prototype.call)}function requireFunctionApply(){return We?Ke:(We=1,Ke=Function.prototype.apply)}function requireActualApply(){if(Qe)return Je;Qe=1;var e=requireFunctionBind(),t=requireFunctionApply(),n=requireFunctionCall(),o=function requireReflectApply(){return ze?Xe:(ze=1,Xe="undefined"!=typeof Reflect&&Reflect&&Reflect.apply)}();return Je=o||e.call(n,t)}function requireCallBindApplyHelpers(){if(ot)return Ze;ot=1;var e=requireFunctionBind(),t=requireType(),n=requireFunctionCall(),o=requireActualApply();return Ze=function callBindBasic(i){if(i.length<1||"function"!=typeof i[0])throw new t("a function is required");return o(e,n,i)}}function requireGet(){if(Rt)return yt;Rt=1;var e,t=requireCallBindApplyHelpers(),n=requireGopd();try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!e&&n&&n(Object.prototype,"__proto__"),i=Object,d=i.getPrototypeOf;return yt=o&&"function"==typeof o.get?t([o.get]):"function"==typeof d&&function getDunder(e){return d(null==e?e:i(e))}}function requireGetProto(){if(Yt)return qt;Yt=1;var e=requireReflect_getPrototypeOf(),t=requireObject_getPrototypeOf(),n=requireGet();return qt=e?function getProto(t){return e(t)}:t?function getProto(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function getProto(e){return n(e)}:null}function requireHasown(){if(Kt)return Ht;Kt=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=requireFunctionBind();return Ht=n.call(e,t)}function requireGetIntrinsic(){if(zt)return Xt;var e;zt=1;var t=requireEsObjectAtoms(),n=requireEsErrors(),o=require_eval(),i=requireRange(),d=requireRef(),f=requireSyntax(),h=requireType(),_=requireUri(),m=requireAbs(),P=requireFloor(),U=requireMax(),L=requireMin(),k=requirePow(),j=requireRound(),Y=requireSign(),H=Function,getEvalledConstructor=function(e){try{return H('"use strict"; return ('+e+").constructor;")()}catch(e){}},V=requireGopd(),K=requireEsDefineProperty(),throwTypeError=function(){throw new h},W=V?function(){try{return throwTypeError}catch(e){try{return V(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError,X=requireHasSymbols()(),J=requireGetProto(),Q=requireObject_getPrototypeOf(),Z=requireReflect_getPrototypeOf(),ee=requireFunctionApply(),te=requireFunctionCall(),re={},ne="undefined"!=typeof Uint8Array&&J?J(Uint8Array):e,oe={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?e:ArrayBuffer,"%ArrayIteratorPrototype%":X&&J?J([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":re,"%AsyncGenerator%":re,"%AsyncGeneratorFunction%":re,"%AsyncIteratorPrototype%":re,"%Atomics%":"undefined"==typeof Atomics?e:Atomics,"%BigInt%":"undefined"==typeof BigInt?e:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?e:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"undefined"==typeof Float16Array?e:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?e:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?e:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?e:FinalizationRegistry,"%Function%":H,"%GeneratorFunction%":re,"%Int8Array%":"undefined"==typeof Int8Array?e:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?e:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":X&&J?J(J([][Symbol.iterator]())):e,"%JSON%":"object"==typeof JSON?JSON:e,"%Map%":"undefined"==typeof Map?e:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&X&&J?J((new Map)[Symbol.iterator]()):e,"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":V,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?e:Promise,"%Proxy%":"undefined"==typeof Proxy?e:Proxy,"%RangeError%":i,"%ReferenceError%":d,"%Reflect%":"undefined"==typeof Reflect?e:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?e:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&X&&J?J((new Set)[Symbol.iterator]()):e,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":X&&J?J(""[Symbol.iterator]()):e,"%Symbol%":X?Symbol:e,"%SyntaxError%":f,"%ThrowTypeError%":W,"%TypedArray%":ne,"%TypeError%":h,"%Uint8Array%":"undefined"==typeof Uint8Array?e:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?e:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?e:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?e:Uint32Array,"%URIError%":_,"%WeakMap%":"undefined"==typeof WeakMap?e:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?e:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?e:WeakSet,"%Function.prototype.call%":te,"%Function.prototype.apply%":ee,"%Object.defineProperty%":K,"%Object.getPrototypeOf%":Q,"%Math.abs%":m,"%Math.floor%":P,"%Math.max%":U,"%Math.min%":L,"%Math.pow%":k,"%Math.round%":j,"%Math.sign%":Y,"%Reflect.getPrototypeOf%":Z};if(J)try{null.error}catch(e){var ie=J(J(e));oe["%Error.prototype%"]=ie}var se=function doEval(e){var t;if("%AsyncFunction%"===e)t=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===e)t=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===e)t=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===e){var n=doEval("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=doEval("%AsyncGenerator%");o&&J&&(t=J(o.prototype))}return oe[e]=t,t},ae={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ue=requireFunctionBind(),ce=requireHasown(),le=ue.call(te,Array.prototype.concat),de=ue.call(ee,Array.prototype.splice),pe=ue.call(te,String.prototype.replace),fe=ue.call(te,String.prototype.slice),he=ue.call(te,RegExp.prototype.exec),_e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ee=/\\(\\)?/g,ge=function getBaseIntrinsic(e,t){var n,o=e;if(ce(ae,o)&&(o="%"+(n=ae[o])[0]+"%"),ce(oe,o)){var i=oe[o];if(i===re&&(i=se(o)),void 0===i&&!t)throw new h("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:i}}throw new f("intrinsic "+e+" does not exist!")};return Xt=function GetIntrinsic(e,t){if("string"!=typeof e||0===e.length)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new h('"allowMissing" argument must be a boolean');if(null===he(/^%?[^%]*%?$/,e))throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function stringToPath(e){var t=fe(e,0,1),n=fe(e,-1);if("%"===t&&"%"!==n)throw new f("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new f("invalid intrinsic syntax, expected opening `%`");var o=[];return pe(e,_e,function(e,t,n,i){o[o.length]=n?pe(i,Ee,"$1"):t||e}),o}(e),o=n.length>0?n[0]:"",i=ge("%"+o+"%",t),d=i.name,_=i.value,m=!1,P=i.alias;P&&(o=P[0],de(n,le([0,1],P)));for(var U=1,L=!0;U<n.length;U+=1){var k=n[U],j=fe(k,0,1),Y=fe(k,-1);if(('"'===j||"'"===j||"`"===j||'"'===Y||"'"===Y||"`"===Y)&&j!==Y)throw new f("property names with quotes must have matching quotes");if("constructor"!==k&&L||(m=!0),ce(oe,d="%"+(o+="."+k)+"%"))_=oe[d];else if(null!=_){if(!(k in _)){if(!t)throw new h("base intrinsic for "+e+" exists, but the property is not available.");return}if(V&&U+1>=n.length){var H=V(_,k);_=(L=!!H)&&"get"in H&&!("originalValue"in H.get)?H.get:_[k]}else L=ce(_,k),_=_[k];L&&!m&&(oe[d]=_)}}return _},Xt}function requireCallBound(){if(Qt)return Jt;Qt=1;var e=requireGetIntrinsic(),t=requireCallBindApplyHelpers(),n=t([e("%String.prototype.indexOf%")]);return Jt=function callBoundIntrinsic(o,i){var d=e(o,!!i);return"function"==typeof d&&n(o,".prototype.")>-1?t([d]):d}}function requireSideChannelMap(){if(er)return Zt;er=1;var e=requireGetIntrinsic(),t=requireCallBound(),n=requireObjectInspect(),o=requireType(),i=e("%Map%",!0),d=t("Map.prototype.get",!0),f=t("Map.prototype.set",!0),h=t("Map.prototype.has",!0),_=t("Map.prototype.delete",!0),m=t("Map.prototype.size",!0);return Zt=!!i&&function getSideChannelMap(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+n(e))},delete:function(t){if(e){var n=_(e,t);return 0===m(e)&&(e=void 0),n}return!1},get:function(t){if(e)return d(e,t)},has:function(t){return!!e&&h(e,t)},set:function(t,n){e||(e=new i),f(e,t,n)}};return t}}function requireSideChannel(){if(or)return nr;or=1;var e=requireType(),t=requireObjectInspect(),n=requireSideChannelList(),o=requireSideChannelMap(),i=function requireSideChannelWeakmap(){if(rr)return tr;rr=1;var e=requireGetIntrinsic(),t=requireCallBound(),n=requireObjectInspect(),o=requireSideChannelMap(),i=requireType(),d=e("%WeakMap%",!0),f=t("WeakMap.prototype.get",!0),h=t("WeakMap.prototype.set",!0),_=t("WeakMap.prototype.has",!0),m=t("WeakMap.prototype.delete",!0);return tr=d?function getSideChannelWeakMap(){var e,t,P={assert:function(e){if(!P.has(e))throw new i("Side channel does not contain "+n(e))},delete:function(n){if(d&&n&&("object"==typeof n||"function"==typeof n)){if(e)return m(e,n)}else if(o&&t)return t.delete(n);return!1},get:function(n){return d&&n&&("object"==typeof n||"function"==typeof n)&&e?f(e,n):t&&t.get(n)},has:function(n){return d&&n&&("object"==typeof n||"function"==typeof n)&&e?_(e,n):!!t&&t.has(n)},set:function(n,i){d&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new d),h(e,n,i)):o&&(t||(t=o()),t.set(n,i))}};return P}:o}(),d=i||o||n;return nr=function getSideChannel(){var n,o={assert:function(n){if(!o.has(n))throw new e("Side channel does not contain "+t(n))},delete:function(e){return!!n&&n.delete(e)},get:function(e){return n&&n.get(e)},has:function(e){return!!n&&n.has(e)},set:function(e,t){n||(n=d()),n.set(e,t)}};return o}}function requireFormats(){if(sr)return ir;sr=1;var e=String.prototype.replace,t=/%20/g,n="RFC3986";return ir={default:n,formatters:{RFC1738:function(n){return e.call(n,t,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}}function requireUtils(){if(ur)return ar;ur=1;var e=requireFormats(),t=requireSideChannel(),n=Object.prototype.hasOwnProperty,o=Array.isArray,i=t(),d=function markOverflow(e,t){return i.set(e,t),e},f=function isOverflow(e){return i.has(e)},h=function getMaxIndex(e){return i.get(e)},_=function setMaxIndex(e,t){i.set(e,t)},m=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),P=function arrayToObject(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n},U=1024;return ar={arrayToObject:P,assign:function assignSingleSource(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function combine(e,t,n,o){if(f(e)){var i=h(e)+1;return e[i]=t,_(e,i),e}var m=[].concat(e,t);return m.length>n?d(P(m,{plainObjects:o}),m.length-1):m},compact:function compact(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],i=0;i<t.length;++i)for(var d=t[i],f=d.obj[d.prop],h=Object.keys(f),_=0;_<h.length;++_){var m=h[_],P=f[m];"object"==typeof P&&null!==P&&-1===n.indexOf(P)&&(t[t.length]={obj:f,prop:m},n[n.length]=P)}return function compactQueue(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var i=[],d=0;d<n.length;++d)void 0!==n[d]&&(i[i.length]=n[d]);t.obj[t.prop]=i}}}(t),e},decode:function(e,t,n){var o=e.replace(/\+/g," ");if("iso-8859-1"===n)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function encode(t,n,o,i,d){if(0===t.length)return t;var f=t;if("symbol"==typeof t?f=Symbol.prototype.toString.call(t):"string"!=typeof t&&(f=String(t)),"iso-8859-1"===o)return escape(f).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var h="",_=0;_<f.length;_+=U){for(var P=f.length>=U?f.slice(_,_+U):f,L=[],k=0;k<P.length;++k){var j=P.charCodeAt(k);45===j||46===j||95===j||126===j||j>=48&&j<=57||j>=65&&j<=90||j>=97&&j<=122||d===e.RFC1738&&(40===j||41===j)?L[L.length]=P.charAt(k):j<128?L[L.length]=m[j]:j<2048?L[L.length]=m[192|j>>6]+m[128|63&j]:j<55296||j>=57344?L[L.length]=m[224|j>>12]+m[128|j>>6&63]+m[128|63&j]:(k+=1,j=65536+((1023&j)<<10|1023&P.charCodeAt(k)),L[L.length]=m[240|j>>18]+m[128|j>>12&63]+m[128|j>>6&63]+m[128|63&j])}h+=L.join("")}return h},isBuffer:function isBuffer(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:f,isRegExp:function isRegExp(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:d,maybeMap:function maybeMap(e,t){if(o(e)){for(var n=[],i=0;i<e.length;i+=1)n[n.length]=t(e[i]);return n}return t(e)},merge:function merge(e,t,i){if(!t)return e;if("object"!=typeof t&&"function"!=typeof t){if(o(e)){var m=e.length;if(i&&"number"==typeof i.arrayLimit&&m>i.arrayLimit)return d(P(e.concat(t),i),m);e[m]=t}else{if(!e||"object"!=typeof e)return[e,t];if(f(e)){var U=h(e)+1;e[U]=t,_(e,U)}else{if(i&&i.strictMerge)return[e,t];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,t))&&(e[t]=!0)}}return e}if(!e||"object"!=typeof e){if(f(t)){for(var L=Object.keys(t),k=i&&i.plainObjects?{__proto__:null,0:e}:{0:e},j=0;j<L.length;j++){k[parseInt(L[j],10)+1]=t[L[j]]}return d(k,h(t)+1)}var Y=[e].concat(t);return i&&"number"==typeof i.arrayLimit&&Y.length>i.arrayLimit?d(P(Y,i),Y.length-1):Y}var H=e;return o(e)&&!o(t)&&(H=P(e,i)),o(e)&&o(t)?(t.forEach(function(t,o){if(n.call(e,o)){var d=e[o];d&&"object"==typeof d&&t&&"object"==typeof t?e[o]=merge(d,t,i):e[e.length]=t}else e[o]=t}),e):Object.keys(t).reduce(function(e,o){var m=t[o];if(n.call(e,o)?e[o]=merge(e[o],m,i):e[o]=m,f(t)&&!f(e)&&d(e,h(t)),f(e)){var P=parseInt(o,10);String(P)===o&&P>=0&&P>h(e)&&_(e,P)}return e},H)}},ar}function requireStringify(){if(lr)return cr;lr=1;var e=requireSideChannel(),t=requireUtils(),n=requireFormats(),o=Object.prototype.hasOwnProperty,i={brackets:function brackets(e){return e+"[]"},comma:"comma",indices:function indices(e,t){return e+"["+t+"]"},repeat:function repeat(e){return e}},d=Array.isArray,f=Array.prototype.push,pushToArray=function(e,t){f.apply(e,d(t)?t:[t])},h=Date.prototype.toISOString,_=n.default,m={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:_,formatter:n.formatters[_],indices:!1,serializeDate:function serializeDate(e){return h.call(e)},skipNulls:!1,strictNullHandling:!1},P={},U=function stringify(n,o,i,f,h,_,U,L,k,j,Y,H,V,K,W,X,J,Q){for(var Z=n,ee=Q,te=0,re=!1;void 0!==(ee=ee.get(P))&&!re;){var ne=ee.get(n);if(te+=1,void 0!==ne){if(ne===te)throw new RangeError("Cyclic object value");re=!0}void 0===ee.get(P)&&(te=0)}if("function"==typeof j?Z=j(o,Z):Z instanceof Date?Z=V(Z):"comma"===i&&d(Z)&&(Z=t.maybeMap(Z,function(e){return e instanceof Date?V(e):e})),null===Z){if(_)return k&&!X?k(o,m.encoder,J,"key",K):o;Z=""}if(function isNonNullishPrimitive(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e}(Z)||t.isBuffer(Z))return k?[W(X?o:k(o,m.encoder,J,"key",K))+"="+W(k(Z,m.encoder,J,"value",K))]:[W(o)+"="+W(String(Z))];var oe,ie=[];if(void 0===Z)return ie;if("comma"===i&&d(Z))X&&k&&(Z=t.maybeMap(Z,k)),oe=[{value:Z.length>0?Z.join(",")||null:void 0}];else if(d(j))oe=j;else{var se=Object.keys(Z);oe=Y?se.sort(Y):se}var ae=L?String(o).replace(/\./g,"%2E"):String(o),ue=f&&d(Z)&&1===Z.length?ae+"[]":ae;if(h&&d(Z)&&0===Z.length)return ue+"[]";for(var ce=0;ce<oe.length;++ce){var le=oe[ce],de="object"==typeof le&&le&&void 0!==le.value?le.value:Z[le];if(!U||null!==de){var pe=H&&L?String(le).replace(/\./g,"%2E"):String(le),fe=d(Z)?"function"==typeof i?i(ue,pe):ue:ue+(H?"."+pe:"["+pe+"]");Q.set(n,te);var he=e();he.set(P,Q),pushToArray(ie,stringify(de,fe,i,f,h,_,U,L,"comma"===i&&X&&d(Z)?null:k,j,Y,H,V,K,W,X,J,he))}}return ie};return cr=function(t,f){var h,_=t,P=function normalizeStringifyOptions(e){if(!e)return m;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||m.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var f=n.default;if(void 0!==e.format){if(!o.call(n.formatters,e.format))throw new TypeError("Unknown format option provided.");f=e.format}var h,_=n.formatters[f],P=m.filter;if(("function"==typeof e.filter||d(e.filter))&&(P=e.filter),h=e.arrayFormat in i?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":m.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var U=void 0===e.allowDots?!0===e.encodeDotInKeys||m.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:m.addQueryPrefix,allowDots:U,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:m.allowEmptyArrays,arrayFormat:h,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:m.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?m.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:m.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:m.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:m.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:m.encodeValuesOnly,filter:P,format:f,formatter:_,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:m.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:m.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:m.strictNullHandling}}(f);"function"==typeof P.filter?_=(0,P.filter)("",_):d(P.filter)&&(h=P.filter);var L=[];if("object"!=typeof _||null===_)return"";var k=i[P.arrayFormat],j="comma"===k&&P.commaRoundTrip;h||(h=Object.keys(_)),P.sort&&h.sort(P.sort);for(var Y=e(),H=0;H<h.length;++H){var V=h[H],K=_[V];P.skipNulls&&null===K||pushToArray(L,U(K,V,k,j,P.allowEmptyArrays,P.strictNullHandling,P.skipNulls,P.encodeDotInKeys,P.encode?P.encoder:null,P.filter,P.sort,P.allowDots,P.serializeDate,P.format,P.formatter,P.encodeValuesOnly,P.charset,Y))}var W=L.join(P.delimiter),X=!0===P.addQueryPrefix?"?":"";return P.charsetSentinel&&("iso-8859-1"===P.charset?X+="utf8=%26%2310003%3B&":X+="utf8=%E2%9C%93&"),W.length>0?X+W:""},cr}function requireParse(){if(pr)return dr;pr=1;var e=requireUtils(),t=Object.prototype.hasOwnProperty,n=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},interpretNumericEntities=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},parseArrayValue=function(e,t,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},i=function parseQueryStringKeys(n,o,i,d){if(n){var f=function splitKeyIntoSegments(e,n){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(n.depth<=0){if(!n.plainObjects&&t.call(Object.prototype,o)&&!n.allowPrototypes)return;return[o]}var i=/(\[[^[\]]*])/g,d=/(\[[^[\]]*])/.exec(o),f=d?o.slice(0,d.index):o,h=[];if(f){if(!n.plainObjects&&t.call(Object.prototype,f)&&!n.allowPrototypes)return;h[h.length]=f}for(var _=0;null!==(d=i.exec(o))&&_<n.depth;){_+=1;var m=d[1].slice(1,-1);if(!n.plainObjects&&t.call(Object.prototype,m)&&!n.allowPrototypes)return;h[h.length]=d[1]}if(d){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");h[h.length]="["+o.slice(d.index)+"]"}return h}(n,i);if(f)return function(t,n,o,i){var d=0;if(t.length>0&&"[]"===t[t.length-1]){var f=t.slice(0,-1).join("");d=Array.isArray(n)&&n[f]?n[f].length:0}for(var h=i?n:parseArrayValue(n,o,d),_=t.length-1;_>=0;--_){var m,P=t[_];if("[]"===P&&o.parseArrays)m=e.isOverflow(h)?h:o.allowEmptyArrays&&(""===h||o.strictNullHandling&&null===h)?[]:e.combine([],h,o.arrayLimit,o.plainObjects);else{m=o.plainObjects?{__proto__:null}:{};var U="["===P.charAt(0)&&"]"===P.charAt(P.length-1)?P.slice(1,-1):P,L=o.decodeDotInKeys?U.replace(/%2E/g,"."):U,k=parseInt(L,10),j=!isNaN(k)&&P!==L&&String(k)===L&&k>=0&&o.parseArrays;if(o.parseArrays||""!==L)if(j&&k<o.arrayLimit)(m=[])[k]=h;else{if(j&&o.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");j?(m[k]=h,e.markOverflow(m,k)):"__proto__"!==L&&(m[L]=h)}else m={0:h}}h=m}return h}(f,o,i,d)}};return dr=function(d,f){var h=function normalizeParseOptions(t){if(!t)return o;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var n=void 0===t.charset?o.charset:t.charset,i=void 0===t.duplicates?o.duplicates:t.duplicates;if("combine"!==i&&"first"!==i&&"last"!==i)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||o.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:o.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:o.arrayLimit,charset:n,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:o.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:o.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:o.decoder,delimiter:"string"==typeof t.delimiter||e.isRegExp(t.delimiter)?t.delimiter:o.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:o.depth,duplicates:i,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:o.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:o.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:o.strictDepth,strictMerge:"boolean"==typeof t.strictMerge?!!t.strictMerge:o.strictMerge,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}}(f);if(""===d||null==d)return h.plainObjects?{__proto__:null}:{};for(var _="string"==typeof d?function parseQueryStringValues(i,d){var f={__proto__:null},h=d.ignoreQueryPrefix?i.replace(/^\?/,""):i;h=h.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var _=d.parameterLimit===1/0?void 0:d.parameterLimit,m=h.split(d.delimiter,d.throwOnLimitExceeded?_+1:_);if(d.throwOnLimitExceeded&&m.length>_)throw new RangeError("Parameter limit exceeded. Only "+_+" parameter"+(1===_?"":"s")+" allowed.");var P,U=-1,L=d.charset;if(d.charsetSentinel)for(P=0;P<m.length;++P)0===m[P].indexOf("utf8=")&&("utf8=%E2%9C%93"===m[P]?L="utf-8":"utf8=%26%2310003%3B"===m[P]&&(L="iso-8859-1"),U=P,P=m.length);for(P=0;P<m.length;++P)if(P!==U){var k,j,Y=m[P],H=Y.indexOf("]="),V=-1===H?Y.indexOf("="):H+1;if(-1===V?(k=d.decoder(Y,o.decoder,L,"key"),j=d.strictNullHandling?null:""):null!==(k=d.decoder(Y.slice(0,V),o.decoder,L,"key"))&&(j=e.maybeMap(parseArrayValue(Y.slice(V+1),d,n(f[k])?f[k].length:0),function(e){return d.decoder(e,o.decoder,L,"value")})),j&&d.interpretNumericEntities&&"iso-8859-1"===L&&(j=interpretNumericEntities(String(j))),Y.indexOf("[]=")>-1&&(j=n(j)?[j]:j),d.comma&&n(j)&&j.length>d.arrayLimit){if(d.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+d.arrayLimit+" element"+(1===d.arrayLimit?"":"s")+" allowed in an array.");j=e.combine([],j,d.arrayLimit,d.plainObjects)}if(null!==k){var K=t.call(f,k);K&&("combine"===d.duplicates||Y.indexOf("[]=")>-1)?f[k]=e.combine(f[k],j,d.arrayLimit,d.plainObjects):K&&"last"!==d.duplicates||(f[k]=j)}}return f}(d,h):d,m=h.plainObjects?{__proto__:null}:{},P=Object.keys(_),U=0;U<P.length;++U){var L=P[U],k=i(L,_[L],h,"string"==typeof d);m=e.merge(m,k,h)}return!0===h.allowSparse?m:e.compact(m)}}function requireLib$1(){if(hr)return fr;hr=1;var e=requireStringify(),t=requireParse();return fr={formats:requireFormats(),parse:t,stringify:e}}function requireRequest(){return _r||(_r=1,function(e){var t=_&&_.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.AxiosRequest=e.defaultAxiosConfig=e.multipartHeader=e.defaultGlobalHeaders=void 0;const n=t(requireAxios()),o=t(requireBrowser()),i=requireLib$1(),d=(0,o.default)("ebay:request");e.defaultGlobalHeaders={"Access-Control-Allow-Origin":"*","Access-Control-Allow-Headers":"X-Requested-With, Origin, Content-Type, X-Auth-Token","Access-Control-Allow-Methods":"GET, PUT, POST, DELETE"},e.multipartHeader={"Content-Type":"multipart/form-data"},e.defaultAxiosConfig={paramsSerializer:{indexes:null}};e.AxiosRequest=class AxiosRequest{constructor(t={}){this.instance=n.default.create({headers:{...e.defaultGlobalHeaders},...e.defaultAxiosConfig,...t})}get(e,t){return d("get: "+e,t),this.instance.get(e,t)}post(e,t,n){return d("post: "+e,{payload:t,config:n}),this.instance.post(e,t,n)}delete(e,t){return d("delete: "+e,t),this.instance.delete(e,t)}put(e,t,n){return d("put: "+e,{payload:t,config:n}),this.instance.put(e,t,n)}postForm(e,t,n){d("postForm: "+e);const o=(0,i.stringify)(t);return this.instance.post(e,o,n)}}}(_)),_}function requireBase(){if(Er)return h;Er=1,Object.defineProperty(h,"__esModule",{value:!0});const e=requireRequest();return h.default=class Base{constructor(t,n=new e.AxiosRequest(t.axiosConfig)){this.config=t,this.req=n}},h}var mr,yr={},Rr={},Ar={exports:{}};function requireFxp(){return mr||(mr=1,(()=>{var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{XMLBuilder:()=>oe,XMLParser:()=>Tt,XMLValidator:()=>ie});const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",o=new RegExp("^["+n+"]["+n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function s(e,t){const n=[];let o=t.exec(e);for(;o;){const i=[];i.startIndex=t.lastIndex-o[0].length;const d=o.length;for(let e=0;e<d;e++)i.push(o[e]);n.push(i),o=t.exec(e)}return n}const r=function(e){return!(null==o.exec(e))},i=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],d=["__proto__","constructor","prototype"],f={allowBooleanAttributes:!1,unpairedTags:[]};function l(e,t){t=Object.assign({},f,t);const n=[];let o=!1,i=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let d=0;d<e.length;d++)if("<"===e[d]&&"?"===e[d+1]){if(d+=2,d=p(e,d),d.err)return d}else{if("<"!==e[d]){if(u(e[d]))continue;return b("InvalidChar","char '"+e[d]+"' is not expected.",w(e,d))}{let f=d;if(d++,"!"===e[d]){d=c(e,d);continue}{let h=!1;"/"===e[d]&&(h=!0,d++);let _="";for(;d<e.length&&">"!==e[d]&&" "!==e[d]&&"\t"!==e[d]&&"\n"!==e[d]&&"\r"!==e[d];d++)_+=e[d];if(_=_.trim(),"/"===_[_.length-1]&&(_=_.substring(0,_.length-1),d--),!E(_)){let t;return t=0===_.trim().length?"Invalid space after '<'.":"Tag '"+_+"' is an invalid name.",b("InvalidTag",t,w(e,d))}const m=g(e,d);if(!1===m)return b("InvalidAttr","Attributes for '"+_+"' have open quote.",w(e,d));let P=m.value;if(d=m.index,"/"===P[P.length-1]){const n=d-P.length;P=P.substring(0,P.length-1);const i=x(P,t);if(!0!==i)return b(i.err.code,i.err.msg,w(e,n+i.err.line));o=!0}else if(h){if(!m.tagClosed)return b("InvalidTag","Closing tag '"+_+"' doesn't have proper closing.",w(e,d));if(P.trim().length>0)return b("InvalidTag","Closing tag '"+_+"' can't have attributes or invalid starting.",w(e,f));if(0===n.length)return b("InvalidTag","Closing tag '"+_+"' has not been opened.",w(e,f));{const t=n.pop();if(_!==t.tagName){let n=w(e,t.tagStartPos);return b("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+_+"'.",w(e,f))}0==n.length&&(i=!0)}}else{const h=x(P,t);if(!0!==h)return b(h.err.code,h.err.msg,w(e,d-P.length+h.err.line));if(!0===i)return b("InvalidXml","Multiple possible root nodes found.",w(e,d));-1!==t.unpairedTags.indexOf(_)||n.push({tagName:_,tagStartPos:f}),o=!0}for(d++;d<e.length;d++)if("<"===e[d]){if("!"===e[d+1]){d++,d=c(e,d);continue}if("?"!==e[d+1])break;if(d=p(e,++d),d.err)return d}else if("&"===e[d]){const t=N(e,d);if(-1==t)return b("InvalidChar","char '&' is not expected.",w(e,d));d=t}else if(!0===i&&!u(e[d]))return b("InvalidXml","Extra text at the end",w(e,d));"<"===e[d]&&d--}}}return o?1==n.length?b("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",w(e,n[0].tagStartPos)):!(n.length>0)||b("InvalidXml","Invalid '"+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):b("InvalidXml","Start tag expected.",1)}function u(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function p(e,t){const n=t;for(;t<e.length;t++)if("?"==e[t]||" "==e[t]){const o=e.substr(n,t-n);if(t>5&&"xml"===o)return b("InvalidXml","XML declaration allowed only at the start of the document.",w(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}continue}return t}function c(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}const h='"',_="'";function g(e,t){let n="",o="",i=!1;for(;t<e.length;t++){if(e[t]===h||e[t]===_)""===o?o=e[t]:o!==e[t]||(o="");else if(">"===e[t]&&""===o){i=!0;break}n+=e[t]}return""===o&&{value:n,index:t,tagClosed:i}}const m=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function x(e,t){const n=s(e,m),o={};for(let e=0;e<n.length;e++){if(0===n[e][1].length)return b("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",v(n[e]));if(void 0!==n[e][3]&&void 0===n[e][4])return b("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",v(n[e]));if(void 0===n[e][3]&&!t.allowBooleanAttributes)return b("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",v(n[e]));const i=n[e][2];if(!y(i))return b("InvalidAttr","Attribute '"+i+"' is an invalid name.",v(n[e]));if(Object.prototype.hasOwnProperty.call(o,i))return b("InvalidAttr","Attribute '"+i+"' is repeated.",v(n[e]));o[i]=1}return!0}function N(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function b(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function y(e){return r(e)}function E(e){return r(e)}function w(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function v(e){return e.startIndex+e[1].length}const S=e=>i.includes(e)?"__"+e:e,P={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:S};function A(e,t){if("string"!=typeof e)return;const n=e.toLowerCase();if(i.some(e=>n===e.toLowerCase()))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);if(d.some(e=>n===e.toLowerCase()))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function T(e,t){return"boolean"==typeof e?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:"object"==typeof e&&null!==e?{enabled:!1!==e.enabled,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??"all"}:T(!0)}const C=function(e){const t=Object.assign({},P,e),n=[{value:t.attributeNamePrefix,name:"attributeNamePrefix"},{value:t.attributesGroupName,name:"attributesGroupName"},{value:t.textNodeName,name:"textNodeName"},{value:t.cdataPropName,name:"cdataPropName"},{value:t.commentPropName,name:"commentPropName"}];for(const{value:e,name:t}of n)e&&A(e,t);return null===t.onDangerousProperty&&(t.onDangerousProperty=S),t.processEntities=T(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>"string"==typeof e&&e.startsWith("*.")?".."+e.substring(2):e)),t};let U;U="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class O{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e,t){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),void 0!==t&&(this.child[this.child.length-1][U]={startIndex:t})}static getMetaDataSymbol(){return U}}class ${constructor(e){this.suppressValidationErr=!e,this.options=e}readDocType(e,t){const n=Object.create(null);let o=0;if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let i=1,d=!1,f=!1,h="";for(;t<e.length;t++)if("<"!==e[t]||f)if(">"===e[t]){if(f?"-"===e[t-1]&&"-"===e[t-2]&&(f=!1,i--):i--,0===i)break}else"["===e[t]?d=!0:h+=e[t];else{if(d&&D(e,"!ENTITY",t)){let i,d;if(t+=7,[i,d,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),-1===d.indexOf("&")){if(!1!==this.options.enabled&&null!=this.options.maxEntityCount&&o>=this.options.maxEntityCount)throw new Error(`Entity count (${o+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[i]=d,o++}}else if(d&&D(e,"!ELEMENT",t)){t+=8;const{index:n}=this.readElementExp(e,t+1);t=n}else if(d&&D(e,"!ATTLIST",t))t+=8;else if(d&&D(e,"!NOTATION",t)){t+=9;const{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else{if(!D(e,"!--",t))throw new Error("Invalid DOCTYPE");f=!0}i++,h=""}if(0!==i)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}readEntityExp(e,t){const n=t=I(e,t);for(;t<e.length&&!/\s/.test(e[t])&&'"'!==e[t]&&"'"!==e[t];)t++;let o=e.substring(n,t);if(M(o),t=I(e,t),!this.suppressValidationErr){if("SYSTEM"===e.substring(t,t+6).toUpperCase())throw new Error("External entities are not supported");if("%"===e[t])throw new Error("Parameter entities are not supported")}let i="";if([t,i]=this.readIdentifierVal(e,t,"entity"),!1!==this.options.enabled&&null!=this.options.maxEntitySize&&i.length>this.options.maxEntitySize)throw new Error(`Entity "${o}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[o,i,--t]}readNotationExp(e,t){const n=t=I(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let o=e.substring(n,t);!this.suppressValidationErr&&M(o),t=I(e,t);const i=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&"SYSTEM"!==i&&"PUBLIC"!==i)throw new Error(`Expected SYSTEM or PUBLIC, found "${i}"`);t+=i.length,t=I(e,t);let d=null,f=null;if("PUBLIC"===i)[t,d]=this.readIdentifierVal(e,t,"publicIdentifier"),'"'!==e[t=I(e,t)]&&"'"!==e[t]||([t,f]=this.readIdentifierVal(e,t,"systemIdentifier"));else if("SYSTEM"===i&&([t,f]=this.readIdentifierVal(e,t,"systemIdentifier"),!this.suppressValidationErr&&!f))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:o,publicIdentifier:d,systemIdentifier:f,index:--t}}readIdentifierVal(e,t,n){let o="";const i=e[t];if('"'!==i&&"'"!==i)throw new Error(`Expected quoted string, found "${i}"`);const d=++t;for(;t<e.length&&e[t]!==i;)t++;if(o=e.substring(d,t),e[t]!==i)throw new Error(`Unterminated ${n} value`);return[++t,o]}readElementExp(e,t){const n=t=I(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let o=e.substring(n,t);if(!this.suppressValidationErr&&!r(o))throw new Error(`Invalid element name: "${o}"`);let i="";if("E"===e[t=I(e,t)]&&D(e,"MPTY",t))t+=4;else if("A"===e[t]&&D(e,"NY",t))t+=2;else if("("===e[t]){const n=++t;for(;t<e.length&&")"!==e[t];)t++;if(i=e.substring(n,t),")"!==e[t])throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:o,contentModel:i.trim(),index:t}}readAttlistExp(e,t){let n=t=I(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let o=e.substring(n,t);for(M(o),n=t=I(e,t);t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(n,t);if(!M(i))throw new Error(`Invalid attribute name: "${i}"`);t=I(e,t);let d="";if("NOTATION"===e.substring(t,t+8).toUpperCase()){if(d="NOTATION","("!==e[t=I(e,t+=8)])throw new Error(`Expected '(', found "${e[t]}"`);t++;let n=[];for(;t<e.length&&")"!==e[t];){const o=t;for(;t<e.length&&"|"!==e[t]&&")"!==e[t];)t++;let i=e.substring(o,t);if(i=i.trim(),!M(i))throw new Error(`Invalid notation name: "${i}"`);n.push(i),"|"===e[t]&&(t++,t=I(e,t))}if(")"!==e[t])throw new Error("Unterminated list of notations");t++,d+=" ("+n.join("|")+")"}else{const n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;d+=e.substring(n,t);const o=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!o.includes(d.toUpperCase()))throw new Error(`Invalid attribute type: "${d}"`)}t=I(e,t);let f="";return"#REQUIRED"===e.substring(t,t+8).toUpperCase()?(f="#REQUIRED",t+=8):"#IMPLIED"===e.substring(t,t+7).toUpperCase()?(f="#IMPLIED",t+=7):[t,f]=this.readIdentifierVal(e,t,"ATTLIST"),{elementName:o,attributeName:i,attributeType:d,defaultValue:f,index:t}}}const I=(e,t)=>{for(;t<e.length&&/\s/.test(e[t]);)t++;return t};function D(e,t,n){for(let o=0;o<t.length;o++)if(t[o]!==e[n+o+1])return!1;return!0}function M(e){if(r(e))return e;throw new Error(`Invalid entity name ${e}`)}const L=/^[-+]?0x[a-fA-F0-9]+$/,k=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,j={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original"},Y=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;class F{constructor(e){this._matcher=e}get separator(){return this._matcher.separator}getCurrentTag(){const e=this._matcher.path;return e.length>0?e[e.length-1].tag:void 0}getCurrentNamespace(){const e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){const t=this._matcher.path;if(0!==t.length)return t[t.length-1].values?.[e]}hasAttr(e){const t=this._matcher.path;if(0===t.length)return!1;const n=t[t.length-1];return void 0!==n.values&&e in n.values}getPosition(){const e=this._matcher.path;return 0===e.length?-1:e[e.length-1].position??0}getCounter(){const e=this._matcher.path;return 0===e.length?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}}class R{constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new F(this)}push(e,t=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);const o=this.path.length;this.siblingStacks[o]||(this.siblingStacks[o]=new Map);const i=this.siblingStacks[o],d=n?`${n}:${e}`:e,f=i.get(d)||0;let h=0;for(const e of i.values())h+=e;i.set(d,f+1);const _={tag:e,position:h,counter:f};null!=n&&(_.namespace=n),null!=t&&(_.values=t),this.path.push(_)}pop(){if(0===this.path.length)return;this._pathStringCache=null;const e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){const t=this.path[this.path.length-1];null!=e&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(0!==this.path.length)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(0===this.path.length)return!1;const t=this.path[this.path.length-1];return void 0!==t.values&&e in t.values}getPosition(){return 0===this.path.length?-1:this.path[this.path.length-1].position??0}getCounter(){return 0===this.path.length?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){const n=e||this.separator;if(n===this.separator&&!0===t){if(null!==this._pathStringCache)return this._pathStringCache;const e=this.path.map(e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n);return this._pathStringCache=e,e}return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){const t=e.segments;return 0!==t.length&&(e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t))}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t<e.length;t++)if(!this._matchSegment(e[t],this.path[t],t===this.path.length-1))return!1;return!0}_matchWithDeepWildcard(e){let t=this.path.length-1,n=e.length-1;for(;n>=0&&t>=0;){const o=e[n];if("deep-wildcard"===o.type){if(n--,n<0)return!0;const o=e[n];let i=!1;for(let e=t;e>=0;e--)if(this._matchSegment(o,this.path[e],e===this.path.length-1)){t=e-1,n--,i=!0;break}if(!i)return!1}else{if(!this._matchSegment(o,this.path[t],t===this.path.length-1))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if("*"!==e.tag&&e.tag!==t.tag)return!1;if(void 0!==e.namespace&&"*"!==e.namespace&&e.namespace!==t.namespace)return!1;if(void 0!==e.attrName){if(!n)return!1;if(!t.values||!(e.attrName in t.values))return!1;if(void 0!==e.attrValue&&String(t.values[e.attrName])!==String(e.attrValue))return!1}if(void 0!==e.position){if(!n)return!1;const o=t.counter??0;if("first"===e.position&&0!==o)return!1;if("odd"===e.position&&o%2!=1)return!1;if("even"===e.position&&o%2!=0)return!1;if("nth"===e.position&&o!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>new Map(e))}readOnly(){return this._view}}class G{constructor(e,t={},n){this.pattern=e,this.separator=t.separator||".",this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(e=>"deep-wildcard"===e.type),this._hasAttributeCondition=this.segments.some(e=>void 0!==e.attrName),this._hasPositionSelector=this.segments.some(e=>void 0!==e.position)}_parse(e){const t=[];let n=0,o="";for(;n<e.length;)e[n]===this.separator?n+1<e.length&&e[n+1]===this.separator?(o.trim()&&(t.push(this._parseSegment(o.trim())),o=""),t.push({type:"deep-wildcard"}),n+=2):(o.trim()&&t.push(this._parseSegment(o.trim())),o="",n++):(o+=e[n],n++);return o.trim()&&t.push(this._parseSegment(o.trim())),t}_parseSegment(e){const t={type:"tag"};let n=null,o=e;const i=e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(i&&(o=i[1]+i[3],i[2])){const e=i[2].slice(1,-1);e&&(n=e)}let d,f,h=o;if(o.includes("::")){const t=o.indexOf("::");if(d=o.substring(0,t).trim(),h=o.substring(t+2).trim(),!d)throw new Error(`Invalid namespace in pattern: ${e}`)}let _=null;if(h.includes(":")){const e=h.lastIndexOf(":"),t=h.substring(0,e).trim(),n=h.substring(e+1).trim();["first","last","odd","even"].includes(n)||/^nth\(\d+\)$/.test(n)?(f=t,_=n):f=h}else f=h;if(!f)throw new Error(`Invalid segment pattern: ${e}`);if(t.tag=f,d&&(t.namespace=d),n)if(n.includes("=")){const e=n.indexOf("=");t.attrName=n.substring(0,e).trim(),t.attrValue=n.substring(e+1).trim()}else t.attrName=n.trim();if(_){const e=_.match(/^nth\((\d+)\)$/);e?(t.position="nth",t.positionValue=parseInt(e[1],10)):t.position=_}return t}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}}class B{constructor(){this._byDepthAndTag=new Map,this._wildcardByDepth=new Map,this._deepWildcards=[],this._patterns=new Set,this._sealed=!1}add(e){if(this._sealed)throw new TypeError("ExpressionSet is sealed. Create a new ExpressionSet to add more expressions.");if(this._patterns.has(e.pattern))return this;if(this._patterns.add(e.pattern),e.hasDeepWildcard())return this._deepWildcards.push(e),this;const t=e.length,n=e.segments[e.segments.length-1],o=n?.tag;if(o&&"*"!==o){const n=`${t}:${o}`;this._byDepthAndTag.has(n)||this._byDepthAndTag.set(n,[]),this._byDepthAndTag.get(n).push(e)}else this._wildcardByDepth.has(t)||this._wildcardByDepth.set(t,[]),this._wildcardByDepth.get(t).push(e);return this}addAll(e){for(const t of e)this.add(t);return this}has(e){return this._patterns.has(e.pattern)}get size(){return this._patterns.size}seal(){return this._sealed=!0,this}get isSealed(){return this._sealed}matchesAny(e){return null!==this.findMatch(e)}findMatch(e){const t=e.getDepth(),n=`${t}:${e.getCurrentTag()}`,o=this._byDepthAndTag.get(n);if(o)for(let t=0;t<o.length;t++)if(e.matches(o[t]))return o[t];const i=this._wildcardByDepth.get(t);if(i)for(let t=0;t<i.length;t++)if(e.matches(i[t]))return i[t];for(let t=0;t<this._deepWildcards.length;t++)if(e.matches(this._deepWildcards[t]))return this._deepWildcards[t];return null}}const H={cent:"¢",pound:"£",curren:"¤",yen:"¥",euro:"€",dollar:"$",euro:"€",fnof:"ƒ",inr:"₹",af:"؋",birr:"ብር",peso:"₱",rub:"₽",won:"₩",yuan:"¥",cedil:"¸"},V={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},K={nbsp:" ",copy:"©",reg:"®",trade:"™",mdash:"—",ndash:"–",hellip:"…",laquo:"«",raquo:"»",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",para:"¶",sect:"§",deg:"°",frac12:"½",frac14:"¼",frac34:"¾"},W=new Set("!?\\\\/[]$%{}^&*()<>|+");function z(e){if("#"===e[0])throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(const t of e)if(W.has(t))throw new Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function q(...e){const t=Object.create(null);for(const n of e)if(n)for(const e of Object.keys(n)){const o=n[e];if("string"==typeof o)t[e]=o;else if(o&&"object"==typeof o&&void 0!==o.val){const n=o.val;"string"==typeof n&&(t[e]=n)}}return t}const X="external",J="base",Q="all",Z=Object.freeze({allow:0,leave:1,remove:2,throw:3}),ee=new Set([9,10,13]);class tt{constructor(e={}){var t;this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck="function"==typeof e.postCheck?e.postCheck:e=>e,this._limitTiers=(t=this._limit.applyLimitsTo??X)&&t!==X?t===Q?new Set([Q]):t===J?new Set([J]):Array.isArray(t)?new Set(t):new Set([X]):new Set([X]),this._numericAllowed=e.numericAllowed??!0,this._baseMap=q(V,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);const n=function(e){if(!e)return{xmlVersion:1,onLevel:Z.allow,nullLevel:Z.remove};const t=1.1===e.xmlVersion?1.1:1,n=Z[e.onNCR]??Z.allow,o=Z[e.nullNCR]??Z.remove;return{xmlVersion:t,onLevel:n,nullLevel:Math.max(o,Z.remove)}}(e.ncr);this._ncrXmlVersion=n.xmlVersion,this._ncrOnLevel=n.onLevel,this._ncrNullLevel=n.nullLevel}setExternalEntities(e){if(e)for(const t of Object.keys(e))z(t);this._externalMap=q(e)}addExternalEntity(e,t){z(e),"string"==typeof t&&-1===t.indexOf("&")&&(this._externalMap[e]=t)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=q(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=1.1===e?1.1:1}decode(e){if("string"!=typeof e||0===e.length)return e;const t=e,n=[],o=e.length;let i=0,d=0;const f=this._maxTotalExpansions>0,h=this._maxExpandedLength>0,_=f||h;for(;d<o;){if(38!==e.charCodeAt(d)){d++;continue}let t=d+1;for(;t<o&&59!==e.charCodeAt(t)&&t-d<=32;)t++;if(t>=o||59!==e.charCodeAt(t)){d++;continue}const m=e.slice(d+1,t);if(0===m.length){d++;continue}let P,U;if(this._removeSet.has(m))P="",void 0===U&&(U=X);else{if(this._leaveSet.has(m)){d++;continue}if(35===m.charCodeAt(0)){const e=this._resolveNCR(m);if(void 0===e){d++;continue}P=e,U=J}else{const e=this._resolveName(m);P=e?.value,U=e?.tier}}if(void 0!==P){if(d>i&&n.push(e.slice(i,d)),n.push(P),i=t+1,d=i,_&&this._tierCounts(U)){if(f&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(h){const e=P.length-(m.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}else d++}i<o&&n.push(e.slice(i));const m=0===n.length?e:n.join("");return this._postCheck(m,t)}_tierCounts(e){return!!this._limitTiers.has(Q)||this._limitTiers.has(e)}_resolveName(e){return e in this._inputMap?{value:this._inputMap[e],tier:X}:e in this._externalMap?{value:this._externalMap[e],tier:X}:e in this._baseMap?{value:this._baseMap[e],tier:J}:void 0}_classifyNCR(e){return 0===e?this._ncrNullLevel:e>=55296&&e<=57343||1===this._ncrXmlVersion&&e>=1&&e<=31&&!ee.has(e)?Z.remove:-1}_applyNCRAction(e,t,n){switch(e){case Z.allow:return String.fromCodePoint(n);case Z.remove:return"";case Z.leave:return;case Z.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){const t=e.charCodeAt(1);let n;if(n=120===t||88===t?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;const o=this._classifyNCR(n);if(!this._numericAllowed&&o<Z.remove)return;const i=-1===o?this._ncrOnLevel:Math.max(this._ncrOnLevel,o);return this._applyNCRAction(i,e,n)}}function et(e,t){if(!e)return{};const n=t.attributesGroupName?e[t.attributesGroupName]:e;if(!n)return{};const o={};for(const e in n)e.startsWith(t.attributeNamePrefix)?o[e.substring(t.attributeNamePrefix.length)]=n[e]:o[e]=n[e];return o}function nt(e){if(!e||"string"!=typeof e)return;const t=e.indexOf(":");if(-1!==t&&t>0){const n=e.substring(0,t);if("xmlns"!==n)return n}}class it{constructor(e,t){var n;this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=ht,this.parseTextData=st,this.resolveNameSpace=rt,this.buildAttributesMap=at,this.isItStopNode=ct,this.replaceEntitiesValue=ut,this.readStopNodeData=mt,this.saveTextToParentTag=pt,this.addChild=lt,this.ignoreAttributesFn="function"==typeof(n=this.options.ignoreAttributes)?n:Array.isArray(n)?e=>{for(const t of n){if("string"==typeof t&&e===t)return!0;if(t instanceof RegExp&&t.test(e))return!0}}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0;let o={...V};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:("object"==typeof this.options.htmlEntities?o=this.options.htmlEntities:!0===this.options.htmlEntities&&(o={...K,...H}),this.entityDecoder=new tt({namedEntities:{...o,...t},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new R,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new B;const i=this.options.stopNodes;if(i&&i.length>0){for(let e=0;e<i.length;e++){const t=i[e];"string"==typeof t?this.stopNodeExpressionsSet.add(new G(t)):t instanceof G&&this.stopNodeExpressionsSet.add(t)}this.stopNodeExpressionsSet.seal()}}}function st(e,t,n,o,i,d,f){const h=this.options;if(void 0!==e&&(h.trimValues&&!o&&(e=e.trim()),e.length>0)){f||(e=this.replaceEntitiesValue(e,t,n));const o=h.jPath?n.toString():n,_=h.tagValueProcessor(t,e,o,i,d);return null==_?e:typeof _!=typeof e||_!==e?_:h.trimValues||e.trim()===e?xt(e,h.parseTagValue,h.numberParseOptions):e}}function rt(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const te=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function at(e,t,n,o=!1){const i=this.options;if(!0===o||!0!==i.ignoreAttributes&&"string"==typeof e){const o=s(e,te),d=o.length,f={},h=new Array(d);let _=!1;const m={};for(let e=0;e<d;e++){const t=this.resolveNameSpace(o[e][1]),d=o[e][4];if(t.length&&void 0!==d){let o=d;i.trimValues&&(o=o.trim()),o=this.replaceEntitiesValue(o,n,this.readonlyMatcher),h[e]=o,m[t]=o,_=!0}}_&&"object"==typeof t&&t.updateCurrent&&t.updateCurrent(m);const P=i.jPath?t.toString():this.readonlyMatcher;let U=!1;for(let e=0;e<d;e++){const t=this.resolveNameSpace(o[e][1]);if(this.ignoreAttributesFn(t,P))continue;let n=i.attributeNamePrefix+t;if(t.length)if(i.transformAttributeName&&(n=i.transformAttributeName(n)),n=bt(n,i),void 0!==o[e][4]){const o=h[e],d=i.attributeValueProcessor(t,o,P);f[n]=null==d?o:typeof d!=typeof o||d!==o?d:xt(o,i.parseAttributeValue,i.numberParseOptions),U=!0}else i.allowBooleanAttributes&&(f[n]=!0,U=!0)}if(!U)return;if(i.attributesGroupName&&!i.preserveOrder){const e={};return e[i.attributesGroupName]=f,e}return f}}const ht=function(e){e=e.replace(/\r\n?/g,"\n");const t=new O("!xml");let n=t,o="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;const i=this.options,d=new $(i.processEntities),f=e.length;for(let h=0;h<f;h++)if("<"===e[h]){const _=e.charCodeAt(h+1);if(47===_){const t=dt(e,">",h,"Closing Tag is not closed.");let d=e.substring(h+2,t).trim();if(i.removeNSPrefix){const e=d.indexOf(":");-1!==e&&(d=d.substr(e+1))}d=Nt(i.transformTagName,d,"",i).tagName,n&&(o=this.saveTextToParentTag(o,n,this.readonlyMatcher));const f=this.matcher.getCurrentTag();if(d&&i.unpairedTagsSet.has(d))throw new Error(`Unpaired tag can not be used as closing tag: </${d}>`);f&&i.unpairedTagsSet.has(f)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),o="",h=t}else if(63===_){let t=gt(e,h,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");o=this.saveTextToParentTag(o,n,this.readonlyMatcher);const d=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName,!0);if(d){const e=d[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(e)||1)}if(i.ignoreDeclaration&&"?xml"===t.tagName||i.ignorePiTags);else{const e=new O(t.tagName);e.add(i.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&!0!==i.ignoreAttributes&&(e[":@"]=d),this.addChild(n,e,this.readonlyMatcher,h)}h=t.closeIndex+1}else if(33===_&&45===e.charCodeAt(h+2)&&45===e.charCodeAt(h+3)){const t=dt(e,"--\x3e",h+4,"Comment is not closed.");if(i.commentPropName){const d=e.substring(h+4,t-2);o=this.saveTextToParentTag(o,n,this.readonlyMatcher),n.add(i.commentPropName,[{[i.textNodeName]:d}])}h=t}else if(33===_&&68===e.charCodeAt(h+2)){const t=d.readDocType(e,h);this.entityDecoder.addInputEntities(t.entities),h=t.i}else if(33===_&&91===e.charCodeAt(h+2)){const t=dt(e,"]]>",h,"CDATA is not closed.")-2,d=e.substring(h+9,t);o=this.saveTextToParentTag(o,n,this.readonlyMatcher);let f=this.parseTextData(d,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);null==f&&(f=""),i.cdataPropName?n.add(i.cdataPropName,[{[i.textNodeName]:d}]):n.add(i.textNodeName,f),h=t+2}else{let d=gt(e,h,i.removeNSPrefix);if(!d){const t=e.substring(Math.max(0,h-50),Math.min(f,h+50));throw new Error(`readTagExp returned undefined at position ${h}. Context: "${t}"`)}let _=d.tagName;const m=d.rawTagName;let P=d.tagExp,U=d.attrExpPresent,L=d.closeIndex;if(({tagName:_,tagExp:P}=Nt(i.transformTagName,_,P,i)),i.strictReservedNames&&(_===i.commentPropName||_===i.cdataPropName||_===i.textNodeName||_===i.attributesGroupName))throw new Error(`Invalid tag name: ${_}`);n&&o&&"!xml"!==n.tagname&&(o=this.saveTextToParentTag(o,n,this.readonlyMatcher,!1));const k=n;k&&i.unpairedTagsSet.has(k.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let j=!1;P.length>0&&P.lastIndexOf("/")===P.length-1&&(j=!0,"/"===_[_.length-1]?(_=_.substr(0,_.length-1),P=_):P=P.substr(0,P.length-1),U=_!==P);let Y,H=null;Y=nt(m),_!==t.tagname&&this.matcher.push(_,{},Y),_!==P&&U&&(H=this.buildAttributesMap(P,this.matcher,_),H&&et(H,i)),_!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());const V=h;if(this.isCurrentNodeStopNode){let t="";if(j)h=d.closeIndex;else if(i.unpairedTagsSet.has(_))h=d.closeIndex;else{const n=this.readStopNodeData(e,m,L+1);if(!n)throw new Error(`Unexpected end of ${m}`);h=n.i,t=n.tagContent}const o=new O(_);H&&(o[":@"]=H),o.add(i.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,o,this.readonlyMatcher,V)}else{if(j){({tagName:_,tagExp:P}=Nt(i.transformTagName,_,P,i));const e=new O(_);H&&(e[":@"]=H),this.addChild(n,e,this.readonlyMatcher,V),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(i.unpairedTagsSet.has(_)){const e=new O(_);H&&(e[":@"]=H),this.addChild(n,e,this.readonlyMatcher,V),this.matcher.pop(),this.isCurrentNodeStopNode=!1,h=d.closeIndex;continue}{const e=new O(_);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(n),H&&(e[":@"]=H),this.addChild(n,e,this.readonlyMatcher,V),n=e}}o="",h=L}}}else o+=e[h];return t.child};function lt(e,t,n,o){this.options.captureMetaData||(o=void 0);const i=this.options.jPath?n.toString():n,d=this.options.updateTag(t.tagname,i,t[":@"]);!1===d||("string"==typeof d?(t.tagname=d,e.addChild(t,o)):e.addChild(t,o))}function ut(e,t,n){const o=this.options.processEntities;if(!o||!o.enabled)return e;if(o.allowedTags){const i=this.options.jPath?n.toString():n;if(!(Array.isArray(o.allowedTags)?o.allowedTags.includes(t):o.allowedTags(t,i)))return e}if(o.tagFilter){const i=this.options.jPath?n.toString():n;if(!o.tagFilter(t,i))return e}return this.entityDecoder.decode(e)}function pt(e,t,n,o){return e&&(void 0===o&&(o=0===t.child.length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,o))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function ct(){return 0!==this.stopNodeExpressionsSet.size&&this.matcher.matchesAny(this.stopNodeExpressionsSet)}function dt(e,t,n,o){const i=e.indexOf(t,n);if(-1===i)throw new Error(o);return i+t.length-1}function ft(e,t,n,o){const i=e.indexOf(t,n);if(-1===i)throw new Error(o);return i}function gt(e,t,n,o=">"){const i=function(e,t,n=">"){let o=0;const i=e.length,d=n.charCodeAt(0),f=n.length>1?n.charCodeAt(1):-1;let h="",_=t;for(let n=t;n<i;n++){const t=e.charCodeAt(n);if(o)t===o&&(o=0);else if(34===t||39===t)o=t;else if(t===d){if(-1===f)return h+=e.substring(_,n),{data:h,index:n};if(e.charCodeAt(n+1)===f)return h+=e.substring(_,n),{data:h,index:n}}else 9!==t||o||(h+=e.substring(_,n)+" ",_=n+1)}}(e,t+1,o);if(!i)return;let d=i.data;const f=i.index,h=d.search(/\s/);let _=d,m=!0;-1!==h&&(_=d.substring(0,h),d=d.substring(h+1).trimStart());const P=_;if(n){const e=_.indexOf(":");-1!==e&&(_=_.substr(e+1),m=_!==i.data.substr(e+1))}return{tagName:_,tagExp:d,closeIndex:f,attrExpPresent:m,rawTagName:P}}function mt(e,t,n){const o=n;let i=1;const d=e.length;for(;n<d;n++)if("<"===e[n]){const d=e.charCodeAt(n+1);if(47===d){const d=ft(e,">",n,`${t} is not closed`);if(e.substring(n+2,d).trim()===t&&(i--,0===i))return{tagContent:e.substring(o,n),i:d};n=d}else if(63===d)n=dt(e,"?>",n+1,"StopNode is not closed.");else if(33===d&&45===e.charCodeAt(n+2)&&45===e.charCodeAt(n+3))n=dt(e,"--\x3e",n+3,"StopNode is not closed.");else if(33===d&&91===e.charCodeAt(n+2))n=dt(e,"]]>",n,"StopNode is not closed.")-2;else{const o=gt(e,n,!1);o&&((o&&o.tagName)===t&&"/"!==o.tagExp[o.tagExp.length-1]&&i++,n=o.closeIndex)}}}function xt(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&function(e,t={}){if(t=Object.assign({},j,t),!e||"string"!=typeof e)return e;let n=e.trim();if(0===n.length)return e;if(void 0!==t.skipLike&&t.skipLike.test(n))return e;if("0"===n)return 0;if(t.hex&&L.test(n))return function(e){if(parseInt)return parseInt(e,16);if(Number.parseInt)return Number.parseInt(e,16);if(window&&window.parseInt)return window.parseInt(e,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(n);if(isFinite(n)){if(n.includes("e")||n.includes("E"))return function(e,t,n){if(!n.eNotation)return e;const o=t.match(Y);if(o){let i=o[1]||"";const d=-1===o[3].indexOf("e")?"E":"e",f=o[2],h=i?e[f.length+1]===d:e[f.length]===d;return f.length>1&&h?e:(1!==f.length||!o[3].startsWith(`.${d}`)&&o[3][0]!==d)&&f.length>0?n.leadingZeros&&!h?(t=(o[1]||"")+o[3],Number(t)):e:Number(t)}return e}(e,n,t);{const i=k.exec(n);if(i){const d=i[1]||"",f=i[2];let h=(o=i[3])&&-1!==o.indexOf(".")?("."===(o=o.replace(/0+$/,""))?o="0":"."===o[0]?o="0"+o:"."===o[o.length-1]&&(o=o.substring(0,o.length-1)),o):o;const _=d?"."===e[f.length+1]:"."===e[f.length];if(!t.leadingZeros&&(f.length>1||1===f.length&&!_))return e;{const o=Number(n),i=String(o);if(0===o)return o;if(-1!==i.search(/[eE]/))return t.eNotation?o:e;if(-1!==n.indexOf("."))return"0"===i||i===h||i===`${d}${h}`?o:e;let _=f?h:n;return f?_===i||d+_===i?o:e:_===i||_===d+i?o:e}}return e}}var o;return function(e,t,n){const o=t===1/0;switch(n.infinity.toLowerCase()){case"null":return null;case"infinity":return t;case"string":return o?"Infinity":"-Infinity";default:return e}}(e,Number(n),t)}(e,n)}return void 0!==e?e:""}function Nt(e,t,n,o){if(e){const o=e(t);n===t&&(n=o),t=o}return{tagName:t=bt(t,o),tagExp:n}}function bt(e,t){if(d.includes(e))throw new Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return i.includes(e)?t.onDangerousProperty(e):e}const re=O.getMetaDataSymbol();function Et(e,t){if(!e||"object"!=typeof e)return{};if(!t)return e;const n={};for(const o in e)o.startsWith(t)?n[o.substring(t.length)]=e[o]:n[o]=e[o];return n}function wt(e,t,n,o){return vt(e,t,n,o)}function vt(e,t,n,o){let i;const d={};for(let f=0;f<e.length;f++){const h=e[f],_=St(h);if(void 0!==_&&_!==t.textNodeName){const e=Et(h[":@"]||{},t.attributeNamePrefix);n.push(_,e)}if(_===t.textNodeName)void 0===i?i=h[_]:i+=""+h[_];else{if(void 0===_)continue;if(h[_]){let e=vt(h[_],t,n,o);const i=At(e,t);if(0===Object.keys(e).length&&t.alwaysCreateTextNode&&(e[t.textNodeName]=""),h[":@"]?_t(e,h[":@"],o,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==h[re]&&"object"==typeof e&&null!==e&&(e[re]=h[re]),void 0!==d[_]&&Object.prototype.hasOwnProperty.call(d,_))Array.isArray(d[_])||(d[_]=[d[_]]),d[_].push(e);else{const n=t.jPath?o.toString():o;t.isArray(_,n,i)?d[_]=[e]:d[_]=e}void 0!==_&&_!==t.textNodeName&&n.pop()}}}return"string"==typeof i?i.length>0&&(d[t.textNodeName]=i):void 0!==i&&(d[t.textNodeName]=i),d}function St(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function _t(e,t,n,o){if(t){const i=Object.keys(t),d=i.length;for(let f=0;f<d;f++){const d=i[f],h=d.startsWith(o.attributeNamePrefix)?d.substring(o.attributeNamePrefix.length):d,_=o.jPath?n.toString()+"."+h:n;o.isArray(d,_,!0,!0)?e[d]=[t[d]]:e[d]=t[d]}}}function At(e,t){const{textNodeName:n}=t,o=Object.keys(e).length;return 0===o||!(1!==o||!e[n]&&"boolean"!=typeof e[n]&&0!==e[n])}class Tt{constructor(e){this.externalEntities={},this.options=C(e)}parse(e,t){if("string"!=typeof e&&e.toString)e=e.toString();else if("string"!=typeof e)throw new Error("XML data is accepted in String or Bytes[] form.");if(t){!0===t&&(t={});const n=l(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new it(this.options,this.externalEntities),o=n.parseXml(e);return this.options.preserveOrder||void 0===o?o:wt(o,this.options,n.matcher,n.readonlyMatcher)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}static getMetaDataSymbol(){return O.getMetaDataSymbol()}}function Ct(e){return String(e).replace(/--/g,"- -").replace(/--/g,"- -").replace(/-$/,"- ")}function Pt(e){return String(e).replace(/\]\]>/g,"]]]]><![CDATA[>")}function Ot(e){return String(e).replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function $t(e,t){let n="";t.format&&t.indentBy.length>0&&(n="\n");const o=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;e<t.stopNodes.length;e++){const n=t.stopNodes[e];"string"==typeof n?o.push(new G(n)):n instanceof G&&o.push(n)}return It(e,t,n,new R,o)}function It(e,t,n,o,i){let d="",f=!1;if(t.maxNestedTags&&o.getDepth()>t.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(e)){if(null!=e){let n=e.toString();return n=Ft(n,t),n}return""}for(let h=0;h<e.length;h++){const _=e[h],m=Vt(_);if(void 0===m)continue;const P=Dt(_[":@"],t);o.push(m,P);const U=kt(o,i);if(m===t.textNodeName){let e=_[m];U||(e=t.tagValueProcessor(m,e),e=Ft(e,t)),f&&(d+=n),d+=e,f=!1,o.pop();continue}if(m===t.cdataPropName){f&&(d+=n),d+=`<![CDATA[${Pt(_[m][0][t.textNodeName])}]]>`,f=!1,o.pop();continue}if(m===t.commentPropName){d+=n+`\x3c!--${Ct(_[m][0][t.textNodeName])}--\x3e`,f=!0,o.pop();continue}if("?"===m[0]){const e=Lt(_[":@"],t,U),i="?xml"===m?"":n;let h=_[m][0][t.textNodeName];h=0!==h.length?" "+h:"",d+=i+`<${m}${h}${e}?>`,f=!0,o.pop();continue}let L=n;""!==L&&(L+=t.indentBy);const k=n+`<${m}${Lt(_[":@"],t,U)}`;let j;j=U?Mt(_[m],t):It(_[m],t,L,o,i),-1!==t.unpairedTags.indexOf(m)?t.suppressUnpairedNode?d+=k+">":d+=k+"/>":j&&0!==j.length||!t.suppressEmptyNode?j&&j.endsWith(">")?d+=k+`>${j}${n}</${m}>`:(d+=k+">",j&&""!==n&&(j.includes("/>")||j.includes("</"))?d+=n+t.indentBy+j+n:d+=j,d+=`</${m}>`):d+=k+"/>",f=!0,o.pop()}return d}function Dt(e,t){if(!e||t.ignoreAttributes)return null;const n={};let o=!1;for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i.startsWith(t.attributeNamePrefix)?i.substr(t.attributeNamePrefix.length):i]=Ot(e[i]),o=!0);return o?n:null}function Mt(e,t){if(!Array.isArray(e))return null!=e?e.toString():"";let n="";for(let o=0;o<e.length;o++){const i=e[o],d=Vt(i);if(d===t.textNodeName)n+=i[d];else if(d===t.cdataPropName)n+=i[d][0][t.textNodeName];else if(d===t.commentPropName)n+=i[d][0][t.textNodeName];else{if(d&&"?"===d[0])continue;if(d){const e=jt(i[":@"],t),o=Mt(i[d],t);o&&0!==o.length?n+=`<${d}${e}>${o}</${d}>`:n+=`<${d}${e}/>`}}}return n}function jt(e,t){let n="";if(e&&!t.ignoreAttributes)for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;let i=e[o];!0===i&&t.suppressBooleanAttributes?n+=` ${o.substr(t.attributeNamePrefix.length)}`:n+=` ${o.substr(t.attributeNamePrefix.length)}="${Ot(i)}"`}return n}function Vt(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const o=t[n];if(Object.prototype.hasOwnProperty.call(e,o)&&":@"!==o)return o}}function Lt(e,t,n){let o="";if(e&&!t.ignoreAttributes)for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let d;n?d=e[i]:(d=t.attributeValueProcessor(i,e[i]),d=Ft(d,t)),!0===d&&t.suppressBooleanAttributes?o+=` ${i.substr(t.attributeNamePrefix.length)}`:o+=` ${i.substr(t.attributeNamePrefix.length)}="${Ot(d)}"`}return o}function kt(e,t){if(!t||0===t.length)return!1;for(let n=0;n<t.length;n++)if(e.matches(t[n]))return!0;return!1}function Ft(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n<t.entities.length;n++){const o=t.entities[n];e=e.replace(o.regex,o.val)}return e}const ne={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function Gt(e){if(this.options=Object.assign({},ne,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>"string"==typeof e&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){const t=this.options.stopNodes[e];"string"==typeof t?this.stopNodeExpressions.push(new G(t)):t instanceof G&&this.stopNodeExpressions.push(t)}var t;!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn="function"==typeof(t=this.options.ignoreAttributes)?t:Array.isArray(t)?e=>{for(const n of t){if("string"==typeof n&&e===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Wt),this.processTextOrObjNode=Bt,this.options.format?(this.indentate=Ut,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Bt(e,t,n,o){const i=this.extractAttributes(e);if(o.push(t,i),this.checkStopNode(o)){const i=this.buildRawContent(e),d=this.buildAttributesForStopNode(e);return o.pop(),this.buildObjectNode(i,t,d,n)}const d=this.j2x(e,n+1,o);return o.pop(),void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,d.attrStr,n,o):this.buildObjectNode(d.val,t,d.attrStr,n)}function Ut(e){return this.options.indentBy.repeat(e)}function Wt(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}Gt.prototype.build=function(e){if(this.options.preserveOrder)return $t(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});const t=new R;return this.j2x(e,0,t).val}},Gt.prototype.j2x=function(e,t,n){let o="",i="";if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");const d=this.options.jPath?n.toString():n,f=this.checkStopNode(n);for(let h in e)if(Object.prototype.hasOwnProperty.call(e,h))if(void 0===e[h])this.isAttribute(h)&&(i+="");else if(null===e[h])this.isAttribute(h)||h===this.options.cdataPropName||h===this.options.commentPropName?i+="":"?"===h[0]?i+=this.indentate(t)+"<"+h+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+h+"/"+this.tagEndChar;else if(e[h]instanceof Date)i+=this.buildTextValNode(e[h],h,"",t,n);else if("object"!=typeof e[h]){const _=this.isAttribute(h);if(_&&!this.ignoreAttributesFn(_,d))o+=this.buildAttrPairStr(_,""+e[h],f);else if(!_)if(h===this.options.textNodeName){let t=this.options.tagValueProcessor(h,""+e[h]);i+=this.replaceEntitiesValue(t)}else{n.push(h);const o=this.checkStopNode(n);if(n.pop(),o){const n=""+e[h];i+=""===n?this.indentate(t)+"<"+h+this.closeTag(h)+this.tagEndChar:this.indentate(t)+"<"+h+">"+n+"</"+h+this.tagEndChar}else i+=this.buildTextValNode(e[h],h,"",t,n)}}else if(Array.isArray(e[h])){const o=e[h].length;let d="",f="";for(let _=0;_<o;_++){const o=e[h][_];if(void 0===o);else if(null===o)"?"===h[0]?i+=this.indentate(t)+"<"+h+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+h+"/"+this.tagEndChar;else if("object"==typeof o)if(this.options.oneListGroup){n.push(h);const e=this.j2x(o,t+1,n);n.pop(),d+=e.val,this.options.attributesGroupName&&o.hasOwnProperty(this.options.attributesGroupName)&&(f+=e.attrStr)}else d+=this.processTextOrObjNode(o,h,t,n);else if(this.options.oneListGroup){let e=this.options.tagValueProcessor(h,o);e=this.replaceEntitiesValue(e),d+=e}else{n.push(h);const e=this.checkStopNode(n);if(n.pop(),e){const e=""+o;d+=""===e?this.indentate(t)+"<"+h+this.closeTag(h)+this.tagEndChar:this.indentate(t)+"<"+h+">"+e+"</"+h+this.tagEndChar}else d+=this.buildTextValNode(o,h,"",t,n)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,h,f,t)),i+=d}else if(this.options.attributesGroupName&&h===this.options.attributesGroupName){const t=Object.keys(e[h]),n=t.length;for(let i=0;i<n;i++)o+=this.buildAttrPairStr(t[i],""+e[h][t[i]],f)}else i+=this.processTextOrObjNode(e[h],h,t,n);return{attrStr:o,val:i}},Gt.prototype.buildAttrPairStr=function(e,t,n){return n||(t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t)),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+Ot(t)+'"'},Gt.prototype.extractAttributes=function(e){if(!e||"object"!=typeof e)return null;const t={};let n=!1;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const o=e[this.options.attributesGroupName];for(let e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e]=Ot(o[e]),n=!0)}else for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const i=this.isAttribute(o);i&&(t[i]=Ot(e[o]),n=!0)}return n?t:null},Gt.prototype.buildRawContent=function(e){if("string"==typeof e)return e;if("object"!=typeof e||null===e)return String(e);if(void 0!==e[this.options.textNodeName])return e[this.options.textNodeName];let t="";for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if(this.isAttribute(n))continue;if(this.options.attributesGroupName&&n===this.options.attributesGroupName)continue;const o=e[n];if(n===this.options.textNodeName)t+=o;else if(Array.isArray(o)){for(let e of o)if("string"==typeof e||"number"==typeof e)t+=`<${n}>${e}</${n}>`;else if("object"==typeof e&&null!==e){const o=this.buildRawContent(e),i=this.buildAttributesForStopNode(e);t+=""===o?`<${n}${i}/>`:`<${n}${i}>${o}</${n}>`}}else if("object"==typeof o&&null!==o){const e=this.buildRawContent(o),i=this.buildAttributesForStopNode(o);t+=""===e?`<${n}${i}/>`:`<${n}${i}>${e}</${n}>`}else t+=`<${n}>${o}</${n}>`}return t},Gt.prototype.buildAttributesForStopNode=function(e){if(!e||"object"!=typeof e)return"";let t="";if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const n=e[this.options.attributesGroupName];for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;const o=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,i=n[e];!0===i&&this.options.suppressBooleanAttributes?t+=" "+o:t+=" "+o+'="'+i+'"'}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const o=this.isAttribute(n);if(o){const i=e[n];!0===i&&this.options.suppressBooleanAttributes?t+=" "+o:t+=" "+o+'="'+i+'"'}}return t},Gt.prototype.buildObjectNode=function(e,t,n,o){if(""===e)return"?"===t[0]?this.indentate(o)+"<"+t+n+"?"+this.tagEndChar:this.indentate(o)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let i="</"+t+this.tagEndChar,d="";return"?"===t[0]&&(d="?",i=""),!n&&""!==n||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===d.length?this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(o)+"<"+t+n+d+this.tagEndChar+e+this.indentate(o)+i:this.indentate(o)+"<"+t+n+d+">"+e+i}},Gt.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},Gt.prototype.checkStopNode=function(e){if(!this.stopNodeExpressions||0===this.stopNodeExpressions.length)return!1;for(let t=0;t<this.stopNodeExpressions.length;t++)if(e.matches(this.stopNodeExpressions[t]))return!0;return!1},Gt.prototype.buildTextValNode=function(e,t,n,o,i){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName){const t=Pt(e);return this.indentate(o)+`<![CDATA[${t}]]>`+this.newLine}if(!1!==this.options.commentPropName&&t===this.options.commentPropName){const t=Ct(e);return this.indentate(o)+`\x3c!--${t}--\x3e`+this.newLine}if("?"===t[0])return this.indentate(o)+"<"+t+n+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),""===i?this.indentate(o)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(o)+"<"+t+n+">"+i+"</"+t+this.tagEndChar}},Gt.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const n=this.options.entities[t];e=e.replace(n.regex,n.val)}return e};const oe=Gt,ie={validate:l};Ar.exports=t})()),Ar.exports}var Ir,Tr,Sr,Or={};function requireErrors(){return Ir||(Ir=1,function(e){var t=Or&&Or.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.checkEBayTraditionalResponse=e.handleEBayError=e.extractEBayError=e.EBayInvalidScope=e.EBayTokenRequired=e.EBayIAFTokenInvalid=e.EBayAuthTokenIsHardExpired=e.EBayAuthTokenIsInvalid=e.EBayIAFTokenExpired=e.EBayInvalidAccessToken=e.EBayNotFound=e.EBayInvalidGrant=e.EBayAccessDenied=e.EBayApiError=e.EbayApiError=e.ApiEnvError=e.EBayNoCallError=e.EBayError=e.rawError=void 0;const n=(0,t(requireBrowser()).default)("ebay:error");e.rawError=Symbol("raw-error");class EBayError extends Error{constructor(e,t="",n={}){super(e),this.name=this.constructor.name,this.description=t,this.meta=n,Object.setPrototypeOf(this,new.target.prototype)}}e.EBayError=EBayError;e.EBayNoCallError=class EBayNoCallError extends EBayError{constructor(e="No eBay API call defined, please invoke one."){super(e)}};e.ApiEnvError=class ApiEnvError extends EBayError{constructor(e){super(`Could not find ${e} in process.env.`)}};class EbayApiError extends EBayError{constructor(e,t,n,o,i){super(e,t,n),this.errorCode=o,this.firstError=i}}e.EbayApiError=EbayApiError;class EBayApiError extends EbayApiError{}e.EBayApiError=EBayApiError;class EBayAccessDenied extends EBayApiError{}e.EBayAccessDenied=EBayAccessDenied;class EBayInvalidGrant extends EBayApiError{}e.EBayInvalidGrant=EBayInvalidGrant;class EBayNotFound extends EBayApiError{}e.EBayNotFound=EBayNotFound,EBayNotFound.code=11001;class EBayInvalidAccessToken extends EBayApiError{}e.EBayInvalidAccessToken=EBayInvalidAccessToken;class EBayIAFTokenExpired extends EBayApiError{}e.EBayIAFTokenExpired=EBayIAFTokenExpired,EBayIAFTokenExpired.code=21917053;class EBayAuthTokenIsInvalid extends EBayApiError{}e.EBayAuthTokenIsInvalid=EBayAuthTokenIsInvalid,EBayAuthTokenIsInvalid.code=931;class EBayAuthTokenIsHardExpired extends EBayApiError{}e.EBayAuthTokenIsHardExpired=EBayAuthTokenIsHardExpired,EBayAuthTokenIsHardExpired.code=932;class EBayIAFTokenInvalid extends EBayApiError{}e.EBayIAFTokenInvalid=EBayIAFTokenInvalid,EBayIAFTokenInvalid.code=21916984;class EBayTokenRequired extends EBayApiError{}e.EBayTokenRequired=EBayTokenRequired,EBayTokenRequired.code=930;class EBayInvalidScope extends EBayApiError{}e.EBayInvalidScope=EBayInvalidScope;const getErrorMessage=e=>"message"in e?e.message:"Errors"in e?Array.isArray(e.Errors)?e.Errors[0].ShortMessage:e.Errors.ShortMessage:"eBay API request error",getErrorDescription=(e,t)=>"description"in e?e.description:"Errors"in e?Array.isArray(e.Errors)?e.Errors[0].LongMessage:e.Errors.LongMessage:"longMessage"in e?e.longMessage:(200!==t?.status?t?.statusText:"")||"",getErrorCode=e=>"errorId"in e?e.errorId:"Errors"in e?Array.isArray(e.Errors)?e.Errors[0].ErrorCode:e.Errors.ErrorCode:void 0;e.extractEBayError=(t,n)=>{const o=function getEBayError(e){return e?"string"==typeof e?{message:e}:"Errors"in e?e:"error"in e&&"string"==typeof e.error?{message:e.error,description:"error_description"in e&&e.error_description||""}:"errors"in e&&Array.isArray(e.errors)?e.errors[0]:"error"in e&&Array.isArray(e.error)?e.error[0]:"errorMessage"in e?Array.isArray(e.errorMessage?.error)?e.errorMessage.error[0]:e.errorMessage.error:{message:"Unknown eBay API Error",description:'This error response is not known. You should investigate the "meta.res.data" for more information.'}:{message:"eBay API Error",description:"No data is set in response result."}}(n||t.response?.data),i={...o,[e.rawError]:t},d="Errors"in o?Array.isArray(o.Errors)?o.Errors[0]:o.Errors:o;return t?.response&&(i.res={status:t.response.status,statusText:t.response.statusText,headers:t.response.headers,data:t.response.data??{}}),t?.config&&(i.req={url:t.config.url,method:t.config.method,headers:t.config.headers,params:t.config.params}),{message:getErrorMessage(o),description:getErrorDescription(o,t?.response),errorCode:getErrorCode(o),meta:i,firstError:d}};e.handleEBayError=t=>{if(n("handleEBayError",t),t instanceof EBayError||!t.response)throw t;if("object"!=typeof t)throw new EBayError(t);const{message:o,meta:i,description:d,errorCode:f,firstError:h}=(0,e.extractEBayError)(t);if("domain"in i&&"ACCESS"===i.domain)throw new EBayAccessDenied(o,d,i,f,h);if("message"in i&&"invalid_grant"===i.message)throw new EBayInvalidGrant(o,d,i,f,h);if("message"in i&&"invalid_scope"===i.message)throw new EBayInvalidScope(o,d,i,f,h);if("message"in i&&"Invalid access token"===i.message)throw new EBayInvalidAccessToken(o,d,i,f,h);if(f===EBayNotFound.code)throw new EBayNotFound(o,d,i,f,h);throw new EBayApiError(o,d,i,f,h)};e.checkEBayTraditionalResponse=(t,o)=>{if(!o)return void n("checkEBayTraditionalResponse: No data found in response.");if(!("Errors"in o)&&!("errorMessage"in o))return;if("Errors"in o&&"Failure"!==o.Ack)return void n(`checkEBayTraditionalResponse: eBay API returned ${o.Ack}`);const{message:i,meta:d,description:f,errorCode:h,firstError:_}=(0,e.extractEBayError)(t,o);if(void 0===h)throw new EBayApiError(i,f,d,h,_);switch(h){case EBayIAFTokenExpired.code:throw new EBayIAFTokenExpired(i,f,d,h,_);case EBayIAFTokenInvalid.code:case 1.32:throw new EBayIAFTokenInvalid(i,f,d,h,_);case EBayTokenRequired.code:throw new EBayTokenRequired(i,f,d,h,_);case EBayAuthTokenIsHardExpired.code:throw new EBayAuthTokenIsHardExpired(i,f,d,h,_);case EBayAuthTokenIsInvalid.code:throw new EBayAuthTokenIsInvalid(i,f,d,h,_)}throw new EBayApiError(i,f,d,h,_)}}(Or)),Or}function requireXMLRequest(){return Tr||(Tr=1,function(e){var t=Rr&&Rr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultHeaders=e.defaultApiConfig=e.defaultXML2JSONParseOptions=e.defaultXmlBuilderOptions=void 0;const n=t(requireBrowser()),o=requireFxp(),i=requireErrors(),d=(0,n.default)("ebay:xml:request");e.defaultXmlBuilderOptions={attributeNamePrefix:"@_",textNodeName:"#value",ignoreAttributes:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,cdataPropName:"__cdata"},e.defaultXML2JSONParseOptions={attributeNamePrefix:"",textNodeName:"value",ignoreAttributes:!1,parseAttributeValue:!0,parseTagValue:!0,numberParseOptions:{hex:!1,leadingZeros:!1},removeNSPrefix:!0,processEntities:{enabled:!0,maxEntitySize:1e4,maxTotalExpansions:1e4,maxExpandedLength:1e5,maxEntityCount:100},isArray:(e,t)=>"string"==typeof t&&/Array$/.test(t.slice(0,-e.length-1))},e.defaultApiConfig={raw:!1,parseOptions:e.defaultXML2JSONParseOptions,xmlBuilderOptions:e.defaultXmlBuilderOptions,useIaf:!0,sign:!1,headers:{},returnResponse:!1},e.defaultHeaders={"Content-Type":"text/xml"};e.default=class XMLRequest{constructor(t,n,d,f){if(!t)throw new i.EBayNoCallError;this.config={...e.defaultApiConfig,...d},this.j2x=new o.XMLBuilder({...e.defaultXmlBuilderOptions,...this.config.xmlBuilderOptions}),this.callName=t,this.fields=n||{},this.req=f}getResponseWrapper(){return`${this.callName}Response`}getCredentials(){return this.config.eBayAuthToken?{RequesterCredentials:{eBayAuthToken:this.config.eBayAuthToken}}:{}}getHeaders(){return{...e.defaultHeaders,...this.config.headers}}toJSON(e){return d("parseOption",this.config.parseOptions),new o.XMLParser(this.config.parseOptions).parse(e)}toXML(e){return'<?xml version="1.0" encoding="utf-8"?>'+this.j2x.build({[this.callName+"Request"]:{"@_xmlns":this.config.xmlns,...this.getCredentials(),...e}})}async request(){const e=this.toXML(this.fields);d("xml",e);try{const{body:t,headers:n={}}=this.config.hook?.(e)??{body:e},o={headers:{...this.getHeaders(),...this.config.digitalSignatureHeaders?this.config.digitalSignatureHeaders(t):{},...n||{}}};d("config",o);const f=await this.req.post(this.config.endpoint,t,o);if(d("response",f),this.config.returnResponse)return f;const{data:h}=f;if(this.config.raw)return h;const _=this.xml2JSON(h);return(0,i.checkEBayTraditionalResponse)(f,_),_}catch(e){if(d("error",e),e.response?.data){const t=this.toJSON(e.response.data);(0,i.checkEBayTraditionalResponse)(e,t[this.callName+"Response"])}throw e}}xml2JSON(e){const t=this.toJSON(e);return t[this.getResponseWrapper()]??t}}}(Rr)),Rr}var br,Cr,Nr,Pr={},vr={};function requireOAuth2(){if(Cr)return Pr;Cr=1;var e=Pr&&Pr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pr,"__esModule",{value:!0});const t=e(requireBrowser()),n=e(requireBase()),o=function requireNanoevents(){return br||(br=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.createNanoEvents=void 0,vr.createNanoEvents=()=>({events:{},emit(e,...t){const n=this.events[e]||[];for(let e=0,o=n.length;e<o;e++)n[e](...t)},on(e,t){return this.events[e]?this.events[e].push(t):this.events[e]=[t],()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}})),vr}(),i=(0,t.default)("ebay:oauth2");class OAuth2 extends n.default{constructor(e,t){super(e,t),this.emitter=(0,o.createNanoEvents)(),this.scope=this.config.scope||OAuth2.defaultScopes}on(e,t){return this.emitter.on(e,t)}get identityEndpoint(){return this.config.sandbox?OAuth2.IDENTITY_ENDPOINT.sandbox:OAuth2.IDENTITY_ENDPOINT.production}static generateAuthUrl(e,t,n,o,i=""){return[e?OAuth2.AUTHORIZE_ENDPOINT.sandbox:OAuth2.AUTHORIZE_ENDPOINT.production,"?client_id=",encodeURIComponent(t),"&redirect_uri=",encodeURIComponent(n),"&response_type=code","&state=",encodeURIComponent(i),"&scope=",encodeURIComponent(o.join(" "))].join("")}generateAuthUrl(e,t=this.scope,n=""){if(!(e=e||this.config.ruName))throw new Error("RuName is required.");return OAuth2.generateAuthUrl(this.config.sandbox,this.config.appId,e,t,n)}async getAccessToken(){return this.getUserAccessToken()||this.getApplicationAccessToken()}getUserAccessToken(){return this._authToken?.access_token??null}async getApplicationAccessToken(){if(this._clientToken)return i("Return existing application access token: ",this._clientToken),this._clientToken.access_token;try{return(await this.obtainApplicationAccessToken()).access_token}catch(e){throw e}}getScope(){return[...this.scope]}setClientToken(e){this._clientToken=e}setScope(e){this.scope=e}async mintApplicationAccessToken(){if(!this.config.appId)throw new Error("Missing App ID (Client Id)");if(!this.config.certId)throw new Error("Missing Cert Id (Client Secret)");try{return(await this.req.postForm(this.identityEndpoint,{scope:this.scope.join(" "),grant_type:"client_credentials"},{auth:{username:this.config.appId,password:this.config.certId}})).data}catch(e){throw i("Failed to mint application token",e),e}}async obtainApplicationAccessToken(){i("Obtain a new application access token with scope: ",this.scope.join(","));try{const e=await this.mintApplicationAccessToken();return i("Obtained a new application access token:",e),this.setClientToken(e),this.emitter.emit("refreshClientToken",e),e}catch(e){throw i("Failed to obtain application token",e),e}}async mintUserAccessToken(e,t=this.config.ruName){if(!this.config.appId)throw new Error("Missing App ID (Client Id)");if(!this.config.certId)throw new Error("Missing Cert Id (Client Secret)");try{const n=(await this.req.postForm(this.identityEndpoint,{grant_type:"authorization_code",code:e,redirect_uri:t},{auth:{username:this.config.appId,password:this.config.certId}})).data;return i("User Access Token",n),n}catch(e){throw i("Failed to get the token",e),e}}async getToken(e,t=this.config.ruName){return await this.mintUserAccessToken(e,t)}async refreshUserAccessToken(){if(!this._authToken||!this._authToken.refresh_token)throw i("Tried to refresh user access token before it was set."),new Error("Failed to refresh the user access token. Token or refresh_token is not set.");try{const e=(await this.req.postForm(this.identityEndpoint,{grant_type:"refresh_token",refresh_token:this._authToken.refresh_token,scope:this.scope.join(" ")},{auth:{username:this.config.appId,password:this.config.certId}})).data;i("Successfully refreshed token",e);const t={...this._authToken,...e};return this.setCredentials(t),this.emitter.emit("refreshAuthToken",t),t}catch(e){throw i("Failed to refresh the token",e),e}}async obtainToken(e){const t=await this.getToken(e);return i("Obtain user access token",t),this.setCredentials(t),t}getCredentials(){return this._authToken?{...this._authToken}:this._clientToken?{...this._clientToken}:null}setCredentials(e){this._authToken="string"==typeof e?{refresh_token:"",expires_in:7200,refresh_token_expires_in:47304e3,token_type:"User Access Token",access_token:e}:e}async refreshToken(){if(this._authToken)return await this.refreshUserAccessToken();if(this._clientToken)return await this.obtainApplicationAccessToken();throw new Error("Missing credentials. To refresh a token an application access token or user access token must be already set.")}}return OAuth2.IDENTITY_ENDPOINT={production:"https://api.ebay.com/identity/v1/oauth2/token",sandbox:"https://api.sandbox.ebay.com/identity/v1/oauth2/token"},OAuth2.AUTHORIZE_ENDPOINT={production:"https://auth.ebay.com/oauth2/authorize",sandbox:"https://auth.sandbox.ebay.com/oauth2/authorize"},OAuth2.defaultScopes=["https://api.ebay.com/oauth/api_scope"],Pr.default=OAuth2,Pr}function requireAuth(){if(Nr)return f;Nr=1;var e=f&&f.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(f,"__esModule",{value:!0});const t=e(requireBase()),n=e(function requireAuthNAuth(){if(Sr)return yr;Sr=1;var e=yr&&yr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yr,"__esModule",{value:!0});const t=e(requireBrowser()),n=e(requireBase()),o=e(requireXMLRequest()),i=(0,t.default)("ebay:authNAuth");class AuthNAuth extends n.default{static generateAuthUrl(e,t,n,o=!1){return[e?AuthNAuth.SIGNIN_ENDPOINT.sandbox:AuthNAuth.SIGNIN_ENDPOINT.production,"?SignIn","&RuName=",encodeURIComponent(t),"&SessID=",encodeURIComponent(n),o?"&prompt=login":""].join("")}constructor(e,t){super(e,t),this.authToken=null,this.config.authToken&&this.setAuthToken(this.config.authToken)}get apiEndpoint(){return this.config.sandbox?AuthNAuth.API_ENDPOINT.sandbox:AuthNAuth.API_ENDPOINT.production}async getSessionIdAndAuthUrl(e){if(!this.config.devId)throw new Error("DevId is required.");if(!(e=e||this.config.ruName))throw new Error("RuName is required.");const t=new o.default("GetSessionID",{RuName:e},this.getRequestConfig("GetSessionID"),this.req),n=await t.request();return i("GetSessionID data",n),{sessionId:n.SessionID,url:AuthNAuth.generateAuthUrl(this.config.sandbox,e,n.SessionID)}}async mintToken(e){if(!this.config.devId)throw new Error("DevId is required.");const t=new o.default("FetchToken",{SessionID:e},this.getRequestConfig("FetchToken"),this.req);try{return await t.request()}catch(e){throw i("Fetch auth token failed",e),e}}async obtainToken(e){const t=await this.mintToken(e);return i("Obtain auth token",t),this.setAuthToken(t),t}setAuthToken(e){this.authToken="string"==typeof e?{eBayAuthToken:e}:e}getAuthToken(){return this.authToken?{...this.authToken}:null}get eBayAuthToken(){return this.authToken?.eBayAuthToken??null}getRequestConfig(e){if("number"!=typeof this.config.siteId)throw new Error("\"siteId\" is required for Auth'n'Auth.");return{useIaf:!1,xmlns:"urn:ebay:apis:eBLBaseComponents",endpoint:this.apiEndpoint,headers:{"X-EBAY-API-CALL-NAME":e,"X-EBAY-API-CERT-NAME":this.config.certId,"X-EBAY-API-APP-NAME":this.config.appId,"X-EBAY-API-DEV-NAME":this.config.devId,"X-EBAY-API-SITEID":this.config.siteId,"X-EBAY-API-COMPATIBILITY-LEVEL":967}}}}return AuthNAuth.SIGNIN_ENDPOINT={sandbox:"https://signin.sandbox.ebay.com/ws/eBayISAPI.dll",production:"https://signin.ebay.com/ws/eBayISAPI.dll"},AuthNAuth.API_ENDPOINT={production:"https://api.ebay.com/ws/api.dll",sandbox:"https://api.sandbox.ebay.com/ws/api.dll"},yr.default=AuthNAuth,yr}()),o=e(requireOAuth2());class Auth extends t.default{constructor(e,t){super(e,t),this.authNAuth=new n.default(this.config,this.req),this.OAuth2=new o.default(this.config,this.req),this.oAuth2=this.OAuth2}async getHeaderAuthorization(e){if(this.authNAuth.eBayAuthToken)return{Authorization:"Token "+this.authNAuth.eBayAuthToken};return{Authorization:(e?"IAF ":"Bearer ")+await this.OAuth2.getAccessToken()}}}return f.default=Auth,f}var Dr={};var Mr,Ur,Lr=getAugmentedNamespace(Object.freeze({__proto__:null,createHash:function createHash(){throw Error("crypto.createHash is not supported in browser.")},sign:function sign(){throw Error("crypto.sign is not supported in browser.")}}));function requireApi(){if(Ur)return d;Ur=1;var e=d&&d.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(d,"__esModule",{value:!0});const t=e(requireAuth()),n=e(requireBase()),o=function requireDigitalSignature(){return Mr||(Mr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.generateSignatureInput=e.generateContentDigestValue=e.getUnixTimestamp=void 0,e.generateBaseString=generateBaseString,e.generateSignature=function generateSignature(n,d,f,h,_=(0,e.getUnixTimestamp)()){const m=generateBaseString(n,f,h,_);(d=d.trim()).startsWith(o)||(d=o+"\n"+d+"\n"+i);return`sig1=:${(0,t.sign)(void 0,Buffer.from(m),d).toString("base64")}:`};const t=Lr,n=requireErrors(),o="-----BEGIN PRIVATE KEY-----",i="-----END PRIVATE KEY-----";e.getUnixTimestamp=()=>Math.floor(Date.now()/1e3);const getSignatureParams=e=>[...e?["content-digest"]:[],"x-ebay-signature-key","@method","@path","@authority"],getSignatureParamsValue=e=>getSignatureParams(e).map(e=>`"${e}"`).join(" ");function generateBaseString(t,o,i,d=(0,e.getUnixTimestamp)()){try{let e="";return getSignatureParams(i).forEach(n=>{if(e+=`"${n.toLowerCase()}": `,n.startsWith("@"))switch(n.toLowerCase()){case"@method":e+=o.method;break;case"@authority":e+=o.authority;break;case"@path":e+=o.path;break;default:throw new Error("Unknown pseudo header "+n)}else{if(!t[n])throw new Error("Header "+n+" not included in message");e+=t[n]}e+="\n"}),e+=`"@signature-params": (${getSignatureParamsValue(i)});created=${d}`,e}catch(e){throw new n.EBayError(`Error calculating signature base: ${e.message}`)}}e.generateContentDigestValue=(e,n="sha256")=>{const o=Buffer.from("string"==typeof e?e:JSON.stringify(e));return`${"sha512"===n?"sha-512":"sha-256"}=:${(0,t.createHash)(n).update(o).digest("base64")}:`},e.generateSignatureInput=(t,n=(0,e.getUnixTimestamp)())=>`sig1=(${getSignatureParamsValue(t)});created=${n}`}(Dr)),Dr}();class Api extends n.default{constructor(e,n,o){super(e,n),this.auth=o||new t.default(this.config,this.req)}getDigitalSignatureHeaders(e,t){if(!this.config.signature)return{};const n=(0,o.getUnixTimestamp)(),i={"x-ebay-enforce-signature":!0,"x-ebay-signature-key":this.config.signature.jwe,...t?{"content-digest":(0,o.generateContentDigestValue)(t,this.config.signature.cipher??"sha256")}:{},"signature-input":(0,o.generateSignatureInput)(t,n)};return{...i,signature:(0,o.generateSignature)(i,this.config.signature.privateKey,e,t,n)}}}return d.default=Api,d}var wr,Br,xr={},Fr={},kr={};function requireRestful(){return wr||(wr=1,function(e){var t=kr&&kr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultApiHeaders=void 0;const n=requireErrors(),o=t(requireApi());e.defaultApiHeaders={"Content-Type":"application/json","Cache-Control":"no-cache",..."undefined"==typeof window?{"Accept-Encoding":"application/gzip"}:{}};const i={marketplaceId:"X-EBAY-C-MARKETPLACE-ID",endUserCtx:"X-EBAY-C-ENDUSERCTX",acceptLanguage:"Accept-Language",contentLanguage:"Content-Language"};class Restful extends o.default{constructor(e,t,n,o={}){super(e,t,n),this.apiConfig={...this.getApiConfig(),...o}}static buildServerUrl(e,t,n,o){return`${e}${t}.${n?"sandbox.":""}${o}`}get useIaf(){return!1}get schema(){return"https://"}get subdomain(){return"api"}get apiVersionPath(){return""}getServerUrl({schema:e,subdomain:t,apiVersion:n,basePath:o,sandbox:i,tld:d}){return Restful.buildServerUrl(e,t,i,d)+n+o}getApiConfig(){return{subdomain:this.subdomain,useIaf:this.useIaf,apiVersion:this.apiVersionPath,basePath:this.basePath,schema:this.schema,sandbox:this.config.sandbox,tld:"ebay.com",headers:{},returnResponse:!1,sign:!1}}get baseUrl(){return this.getServerUrl(this.apiConfig)}api(e){return new this.constructor(this.config,this.req,this.auth,e)}get apix(){return this.api({subdomain:"apix"})}get apiz(){return this.api({subdomain:"apiz"})}get sign(){return this.api({sign:!0})}async get(e,t={},n){return this.doRequest({method:"get",path:e,config:t},n)}async delete(e,t={},n){return this.doRequest({method:"delete",path:e,config:t},n)}async post(e,t,n={},o){return this.doRequest({method:"post",path:e,data:t,config:n},o)}async put(e,t,n={},o){return this.doRequest({method:"put",path:e,data:t,config:n},o)}get additionalHeaders(){return Object.keys(i).filter(e=>void 0!==this.config[e]).reduce((e,t)=>(e[i[t]]=this.config[t],e),{})}async enrichRequestConfig(t,n=null,o=this.apiConfig){const i=await this.auth.getHeaderAuthorization(o.useIaf),d=o.sign?this.getDigitalSignatureHeaders({method:t.method.toUpperCase(),authority:Restful.buildServerUrl("",o.subdomain,o.sandbox,o.tld),path:o.apiVersion+o.basePath+t.path},n):{},f={...e.defaultApiHeaders,...this.additionalHeaders,...i,...o.headers,...d};return{...t.config,headers:{...t.config.headers||{},...f}}}async doRequest(e,t){try{return await this.request(e,t)}catch(n){if(this.shouldRefreshToken(n))return await this.request(e,t,!0);throw n}}shouldRefreshToken(e){return!!this.config.autoRefreshToken&&(e.name===n.EBayInvalidAccessToken.name||(403===e?.meta?.res?.status&&"/sell/inventory/v1"===this.apiConfig.basePath||401===e?.meta?.res?.status&&"/post-order/v2"===this.apiConfig.basePath))}async request(e,t=this.apiConfig,o=!1){const{path:i,method:d,data:f}=e,h={...this.apiConfig,...t},_=this.getServerUrl(h)+i;try{o&&await this.auth.OAuth2.refreshToken();const t=await this.enrichRequestConfig(e,f,h),n=["get","delete"].includes(d)?[t]:[f,t],i=await this.req[d](_,...n);return this.apiConfig.returnResponse?i:i.data}catch(e){(0,n.handleEBayError)(e)}}}e.default=Restful}(kr)),kr}var Gr,qr={};var jr,Yr={};var $r,Hr={};var Vr,Kr={};var Wr,Xr={};var zr,Jr,Qr={};function requireBuy(){if(Jr)return xr;Jr=1;var e=xr&&xr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xr,"__esModule",{value:!0}),xr.Order=xr.Offer=xr.MarketplaceInsights=xr.Marketing=xr.Feed=xr.Deal=xr.Browse=void 0;const t=e(function requireBrowse(){if(Br)return Fr;Br=1;var e=Fr&&Fr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Fr,"__esModule",{value:!0});const t=e(requireRestful());class Browse extends t.default{get basePath(){return"/buy/browse/v1"}search(e){return this.get("/item_summary/search",{params:e})}searchByImage(e,t){return this.post("/item_summary/search_by_image",t,{params:e})}getItems(e){return this.get("/item/",{params:e})}getItem(e,t){const n=encodeURIComponent(e);return this.get(`/item/${n}`,{params:{fieldgroups:t}})}getItemByLegacyId(e){return this.get("/item/get_item_by_legacy_id",{params:e})}getItemsByItemGroup(e){return this.get("/item/get_items_by_item_group",{params:{item_group_id:e}})}checkCompatibility(e,t){const n=encodeURIComponent(e);return this.post(`/item/${n}/check_compatibility`,t)}addItem(e){return this.post("/shopping_cart/add_item",e)}getShoppingCart(){return this.get("/shopping_cart/")}removeItem(e){return this.post("/shopping_cart/remove_item",e)}updateQuantity(e){return this.post("/shopping_cart/update_quantity",e)}}return Browse.id="Browse",Fr.default=Browse,Fr}());xr.Browse=t.default;const n=e(function requireFeed$1(){if(Gr)return qr;Gr=1;var e=qr&&qr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qr,"__esModule",{value:!0});const t=e(requireRestful());class Feed extends t.default{get basePath(){return"/buy/feed/v1_beta"}getItemFeed(e,t){return this.get("/item",{params:e,headers:{Range:t}})}getItemGroupFeed(e,t){return this.get("/item_group",{params:e,headers:{Range:t}})}getItemSnapshotFeed(e,t,n){return this.get("/item_snapshot",{params:{...e,snapshot_date:t},headers:{Range:n}})}getProductFeed(e,t,n){return this.get("/product",{params:{...e,snapshot_date:t},headers:{Range:n}})}}return Feed.id="Feed",qr.default=Feed,qr}());xr.Feed=n.default;const o=e(function requireMarketing$1(){if(jr)return Yr;jr=1;var e=Yr&&Yr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yr,"__esModule",{value:!0});const t=e(requireRestful());class Marketing extends t.default{get basePath(){return"/buy/marketing/v1_beta"}getAlsoBoughtByProduct(e){return this.get("/merchandised_product/get_also_bought_products",{params:e})}getAlsoViewedByProduct(e){return this.get("/merchandised_product/get_also_viewed_products",{params:e})}getMerchandisedProducts(e){return this.get("/merchandised_product",{params:e})}}return Marketing.id="Marketing",Yr.default=Marketing,Yr}());xr.Marketing=o.default;const i=e(function requireOffer(){if($r)return Hr;$r=1;var e=Hr&&Hr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Hr,"__esModule",{value:!0});const t=e(requireRestful());class Offer extends t.default{get basePath(){return"/buy/offer/v1_beta"}getBidding(e){const t=encodeURIComponent(e);return this.get(`/bidding/${t}`)}placeProxyBid(e,t){const n=encodeURIComponent(e);return this.post(`/bidding/${n}/place_proxy_bid`,t)}}return Offer.id="Offer",Hr.default=Offer,Hr}());xr.Offer=i.default;const d=e(function requireOrder(){if(Vr)return Kr;Vr=1;var e=Kr&&Kr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kr,"__esModule",{value:!0});const t=e(requireRestful());class Order extends t.default{get basePath(){return"/buy/order/v1"}applyCoupon(e,t){return e=encodeURIComponent(e),this.post(`/checkout_session/${e}/apply_coupon`,t)}getCheckoutSession(e){return e=encodeURIComponent(e),this.get(`/checkout_session/${e}`)}initiateCheckoutSession(e){return this.post("/checkout_session/initiate",e)}placeOrder(e){return e=encodeURIComponent(e),this.post(`/checkout_session/${e}/place_order`)}removeCoupon(e,t){return e=encodeURIComponent(e),this.post(`/checkout_session/${e}/remove_coupon`,t)}updatePaymentInfo(e,t){return e=encodeURIComponent(e),this.post(`/checkout_session/${e}/update_payment_info`,t)}updateQuantity(e,t){return e=encodeURIComponent(e),this.post(`/checkout_session/${e}/update_quantity`,t)}checkoutSessionId(e,t){return e=encodeURIComponent(e),this.post(`/checkout_session/${e}/update_quantity`,t)}updateShippingAddress(e,t){return e=encodeURIComponent(e),this.post(`/checkout_session/${e}/update_shipping_address`,t)}updateShippingOption(e,t){return e=encodeURIComponent(e),this.post(`/checkout_session/${e}/update_shipping_option`,t)}applyGuestCoupon(e,t){return e=encodeURIComponent(e),this.post(`/guest_checkout_session/${e}/apply_coupon`,t)}getGuestCheckoutSession(e){return e=encodeURIComponent(e),this.get(`/guest_checkout_session/${e}`)}initiateGuestCheckoutSession(e){return this.post("/guest_checkout_session/initiate",e)}initiateGuestPayment(e,t){return e=encodeURIComponent(e),this.post(`/guest_checkout_session/${e}/initiate_payment`,t)}placeGuestOrder(e,t){return e=encodeURIComponent(e),this.post(`/guest_checkout_session/${e}/place_order`,t)}removeGuestCoupon(e,t){return e=encodeURIComponent(e),this.post(`/guest_checkout_session/${e}/remove_coupon`,t)}updateGuestPaymentInfo(e,t){return e=encodeURIComponent(e),this.post(`/guest_checkout_session/${e}/update_payment_info`,t)}updateGuestQuantity(e,t){return e=encodeURIComponent(e),this.post(`/guest_checkout_session/${e}/update_quantity`,t)}updateGuestShippingAddress(e,t){return e=encodeURIComponent(e),this.post(`/guest_checkout_session/${e}/update_shipping_address`,t)}updateGuestShippingOption(e,t){return e=encodeURIComponent(e),this.post(`/guest_checkout_session/${e}/update_shipping_option`,t)}applyProxyGuestCoupon(e,t){return e=encodeURIComponent(e),this.post(`/proxy_guest_checkout_session/${e}/apply_coupon`,t)}getProxyGuestCheckoutSession(e){return e=encodeURIComponent(e),this.get(`/proxy_guest_checkout_session/${e}`)}initiateProxyGuestCheckoutSession(e){return this.post("/proxy_guest_checkout_session/initiate",e)}placeProxyGuestOrder(e,t){return e=encodeURIComponent(e),this.post(`/proxy_guest_checkout_session/${e}/place_order`,t)}removeProxyGuestCoupon(e,t){return e=encodeURIComponent(e),this.post(`/proxy_guest_checkout_session/${e}/remove_coupon`,t)}updateProxyGuestPaymentInfo(e,t,n,o,i,d){return e=encodeURIComponent(e),this.post(`/proxy_guest_checkout_session/${e}/update_payment_info`,d,{headers:{Authorization:t,"X-EBAY-C-DATE":n,"X-EBAY-C-REQUEST-NONCE":o,"X-EBAY-C-SIGNATURE":i}})}updateProxyGuestQuantity(e,t){return e=encodeURIComponent(e),this.post(`/proxy_guest_checkout_session/${e}/update_quantity`,t)}updateProxyGuestShippingAddress(e,t){return e=encodeURIComponent(e),this.post(`/proxy_guest_checkout_session/${e}/update_shipping_address`,t)}updateProxyGuestShippingOption(e,t){return e=encodeURIComponent(e),this.post(`/proxy_guest_checkout_session/${e}/update_shipping_option`,t)}getGuestPurchaseOrder(e){return e=encodeURIComponent(e),this.get(`/guest_purchase_order/${e}`)}getPurchaseOrder(e){return e=encodeURIComponent(e),this.get(`/purchase_order/${e}`)}}return Order.id="Order",Kr.default=Order,Kr}());xr.Order=d.default;const f=e(function requireDeal(){if(Wr)return Xr;Wr=1;var e=Xr&&Xr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xr,"__esModule",{value:!0});const t=e(requireRestful());class Deal extends t.default{get basePath(){return"/buy/deal/v1"}getDealItems({categoryIds:e,commissionable:t,deliveryCountry:n,limit:o,offset:i}){return this.get("/deal_item",{params:{category_ids:e,commissionable:t,delivery_country:n,limit:o,offset:i}})}getEvent(e){return e=encodeURIComponent(e),this.get(`/event/${e}`)}getEvents({limit:e,offset:t}){return this.get("/event",{params:{limit:e,offset:t}})}getEventItems(e,{categoryIds:t,deliveryCountry:n,limit:o,offset:i}={}){return this.get("/event_item",{params:{event_ids:e,limit:o,offset:i,category_ids:t,delivery_country:n}})}}return Deal.id="Deal",Xr.default=Deal,Xr}());xr.Deal=f.default;const h=e(function requireMarketplaceInsights(){if(zr)return Qr;zr=1;var e=Qr&&Qr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qr,"__esModule",{value:!0});const t=e(requireRestful());class MarketplaceInsights extends t.default{get basePath(){return"/buy/marketplace_insights/v1_beta"}search({aspectFilter:e,categoryIds:t,epid:n,fieldgroups:o,filter:i,gtin:d,limit:f,offset:h,q:_,sort:m}){return this.get("/item_sales/search",{params:{aspect_filter:e,category_ids:t,epid:n,fieldgroups:o,filter:i,gtin:d,limit:f,offset:h,q:_,sort:m}})}}return MarketplaceInsights.id="MarketplaceInsights",Qr.default=MarketplaceInsights,Qr}());return xr.MarketplaceInsights=h.default,xr}var Zr,en={},tn={};var rn,nn={};var on,sn={};var an,un={};var cn,ln={};var dn,pn={};var fn,hn={};var _n,En,gn={};function requireCommerce(){if(En)return en;En=1;var e=en&&en.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(en,"__esModule",{value:!0}),en.Message=en.Media=en.Translation=en.Taxonomy=en.Notification=en.Identity=en.Charity=en.Catalog=void 0;const t=e(function requireCatalog(){if(Zr)return tn;Zr=1;var e=tn&&tn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(tn,"__esModule",{value:!0});const t=e(requireRestful());class Catalog extends t.default{get basePath(){return"/commerce/catalog/v1_beta"}getChangeRequest(e){return this.get(`/change_request/${e}`)}getChangeRequests({filter:e,limit:t,offset:n}={}){return this.get("/change_request",{params:{filter:e,limit:t,offset:n}})}getProduct(e){const t=encodeURIComponent(e);return this.get(`/product/${t}`)}search(e){return this.get("/product_summary/search",{params:e})}getProductMetadata(e,{otherApplicableCategoryIds:t,primaryCategoryId:n}={}){return this.get("/get_product_metadata",{params:{epid:e,other_applicable_category_ids:t,primary_category_id:n}})}getProductMetadataForCategories(e,t){return this.get("/get_product_metadata_for_categories",{params:{primary_category_id:e,other_applicable_category_ids:t}})}}return Catalog.id="Catalog",tn.default=Catalog,tn}());en.Catalog=t.default;const n=e(function requireCharity(){if(rn)return nn;rn=1;var e=nn&&nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nn,"__esModule",{value:!0});const t=e(requireRestful());class Charity extends t.default{get basePath(){return"/commerce/charity/v1"}getCharityOrg(e){return e=encodeURIComponent(e),this.get(`/charity_org/${e}`)}getCharityOrgs({limit:e,offset:t,q:n,registrationIds:o}){return this.get("/charity_org",{params:{limit:e,offset:t,q:n,registration_ids:o}})}getCharityOrgByLegacyId(e){return this.get("/charity_org/get_charity_org_by_legacy_id",{params:{legacy_charity_org_id:e}})}}return Charity.id="Charity",nn.default=Charity,nn}());en.Charity=n.default;const o=e(function requireIdentity(){if(on)return sn;on=1;var e=sn&&sn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(sn,"__esModule",{value:!0});const t=e(requireRestful());class Identity extends t.default{get basePath(){return"/commerce/identity/v1"}get subdomain(){return"apiz"}getUser(){return this.get("/user/")}}return Identity.id="Identity",sn.default=Identity,sn}());en.Identity=o.default;const i=e(function requireMedia(){if(an)return un;an=1;var e=un&&un.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(un,"__esModule",{value:!0});const t=e(requireRestful());class Media extends t.default{get basePath(){return"/commerce/media/v1_beta"}get subdomain(){return"apim"}async createVideo(e){return this.post("/video",e)}async getVideo(e){return e=encodeURIComponent(e),this.get(`/video/${e}`)}async uploadVideo(e,t){return e=encodeURIComponent(e),this.post(`/video/${e}/upload`,t)}}return Media.id="Media",un.default=Media,un}());en.Media=i.default;const d=e(function requireNotification(){if(cn)return ln;cn=1;var e=ln&&ln.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ln,"__esModule",{value:!0});const t=e(requireRestful());class Notification extends t.default{get basePath(){return"/commerce/notification/v1"}getPublicKey(e){return e=encodeURIComponent(e),this.get(`/public_key/${e}`)}getTopic(e){return e=encodeURIComponent(e),this.get(`/topic/${e}`)}getTopics({limit:e,continuationToken:t}){return this.get("/topic",{params:{limit:e,continuation_token:t}})}getSubscriptions({limit:e,continuationToken:t}){return this.get("/subscription",{params:{limit:e,continuation_token:t}})}createSubscription(e){return this.post("/subscription",e)}getSubscription(e){return e=encodeURIComponent(e),this.get(`/subscription/${e}`)}updateSubscription(e,t){return e=encodeURIComponent(e),this.put(`/subscription/${e}`,t)}deleteSubscription(e){return e=encodeURIComponent(e),this.delete(`/subscription/${e}`)}enableSubscription(e){return e=encodeURIComponent(e),this.post(`/subscription/${e}/enable`)}disableSubscription(e){return e=encodeURIComponent(e),this.post(`/subscription/${e}/disable`)}test(e){return e=encodeURIComponent(e),this.post(`/subscription/${e}/test`)}getDestinations({limit:e,continuationToken:t}){return this.get("/destination",{params:{limit:e,continuation_token:t}})}createDestination(e){return this.post("/destination",e)}getDestination(e){return e=encodeURIComponent(e),this.get(`/destination/${e}`)}updateDestination(e,t){return e=encodeURIComponent(e),this.put(`/destination/${e}`,t)}deleteDestination(e){return e=encodeURIComponent(e),this.delete(`/destination/${e}`)}getConfig(){return this.get("/config")}updateConfig(e){return this.put("/config",e)}}return Notification.id="Notification",ln.default=Notification,ln}());en.Notification=d.default;const f=e(function requireTaxonomy(){if(dn)return pn;dn=1;var e=pn&&pn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pn,"__esModule",{value:!0});const t=e(requireRestful());class Taxonomy extends t.default{get basePath(){return"/commerce/taxonomy/v1"}getDefaultCategoryTreeId(e){return this.get("/get_default_category_tree_id",{params:{marketplace_id:e}})}getCategoryTree(e){const t=encodeURIComponent(e);return this.get(`/category_tree/${t}`)}getCategorySubtree(e,t){return e=encodeURIComponent(e),this.get(`/category_tree/${e}/get_category_subtree`,{params:{category_id:t}})}getCategorySuggestions(e,t){return this.get(`/category_tree/${e}/get_category_suggestions`,{params:{q:t}})}getItemAspectsForCategory(e,t){return e=encodeURIComponent(e),this.get(`/category_tree/${e}/get_item_aspects_for_category`,{params:{category_id:t}})}getCompatibilityProperties(e,t){return e=encodeURIComponent(e),this.get(`/category_tree/${e}/get_compatibility_properties`,{params:{category_id:t}})}getCompatibilityPropertyValues(e,t,n,o){return e=encodeURIComponent(e),this.get(`/category_tree/${e}/get_compatibility_property_values`,{params:{category_id:t,compatibility_property:n,...o?.trim()&&{filter:o}}})}fetchItemAspects(e){return e=encodeURIComponent(e),this.get(`/category_tree/${e}/fetch_item_aspects`,{responseType:"arraybuffer"})}}return Taxonomy.id="Taxonomy",pn.default=Taxonomy,pn}());en.Taxonomy=f.default;const h=e(function requireTranslation(){if(fn)return hn;fn=1;var e=hn&&hn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hn,"__esModule",{value:!0});const t=e(requireRestful());class Translation extends t.default{get basePath(){return"/commerce/translation/v1_beta"}translate(e){return this.post("/translate",e)}}return Translation.id="Translation",hn.default=Translation,hn}());en.Translation=h.default;const _=e(function requireMessage(){if(_n)return gn;_n=1;var e=gn&&gn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gn,"__esModule",{value:!0});const t=e(requireRestful());class Message extends t.default{get basePath(){return"/commerce/message/v1"}getConversations({limit:e,offset:t,conversationStatus:n,conversationType:o,referenceId:i,referenceType:d,startTime:f,endTime:h,otherPartyUsername:_}={}){return this.get("/conversation",{params:{limit:e,offset:t,conversation_status:n,conversation_type:o,reference_id:i,reference_type:d,start_time:f,end_time:h,other_party_username:_}})}getConversation(e,{conversationType:t,limit:n,offset:o}){return this.get(`/conversation/${e}`,{params:{conversation_type:t,limit:n,offset:o}})}updateConversation(e){return this.post("/update_conversation",e)}bulkUpdateConversation(e){return this.post("/bulk_update_conversation",e)}sendMessage(e){return this.post("/send_message",e)}}return Message.id="Message",gn.default=Message,gn}());return en.Message=_.default,en}var mn,yn={},Rn={};var An,In,Tn={};function requireDeveloper(){if(In)return yn;In=1;var e=yn&&yn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yn,"__esModule",{value:!0}),yn.KeyManagement=yn.Analytics=void 0;const t=e(function requireAnalytics$1(){if(mn)return Rn;mn=1;var e=Rn&&Rn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rn,"__esModule",{value:!0});const t=e(requireRestful());class Analytics extends t.default{get basePath(){return"/developer/analytics/v1_beta"}getRateLimits(e,t){return this.get("/rate_limit/",{params:{api_context:e,api_name:t}})}getUserRateLimits(e,t){return this.get("/user_rate_limit/",{params:{api_context:e,api_name:t}})}}return Analytics.id="Analytics",Rn.default=Analytics,Rn}());yn.Analytics=t.default;const n=e(function requireKeyManagement(){if(An)return Tn;An=1;var e=Tn&&Tn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tn,"__esModule",{value:!0});const t=e(requireRestful());class KeyManagement extends t.default{get subdomain(){return"apiz"}get basePath(){return"/developer/key_management/v1"}getSigningKeys(){return this.get("/signing_key")}createSigningKey(e){return this.post("/signing_key",{signingKeyCipher:e})}getSigningKey(e){return this.get(`/signing_key/${e}`)}}return KeyManagement.id="KeyManagement",Tn.default=KeyManagement,Tn}());return yn.KeyManagement=n.default,yn}var Sn,On={},bn={};var Cn,Nn={};var Pn,vn={};var Dn,Mn,Un={};function requirePostOrder(){if(Mn)return On;Mn=1;var e=On&&On.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(On,"__esModule",{value:!0}),On.Return=On.Inquiry=On.Case=On.Cancellation=void 0;const t=e(function requireCancellation(){if(Sn)return bn;Sn=1;var e=bn&&bn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bn,"__esModule",{value:!0});const t=e(requireRestful());class Cancellation extends t.default{get basePath(){return"/post-order/v2"}get useIaf(){return!0}approveCancellationRequest(e){return e=encodeURIComponent(e),this.post(`/cancellation/${e}/approve`)}checkCancellationEligibility(e){return this.post("/cancellation/check_eligibility",{legacyOrderId:e})}confirmRefundReceived(e,t){return e=encodeURIComponent(e),this.post(`/cancellation/${e}/confirm`,t)}createCancellation(e){return this.post("/cancellation",e)}getCancellation(e,t){return e=encodeURIComponent(e),this.get(`/cancellation/${e}`,{params:{fieldgroups:t}})}rejectCancellationRequest(e,t){return e=encodeURIComponent(e),this.post(`/cancellation/${e}/reject`,t)}search(e){return this.get("/cancellation/search",{params:e})}}return Cancellation.id="Cancellation",bn.default=Cancellation,bn}());On.Cancellation=t.default;const n=e(function require_case(){if(Cn)return Nn;Cn=1;var e=Nn&&Nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nn,"__esModule",{value:!0});const t=e(requireRestful());class Case extends t.default{get basePath(){return"/post-order/v2"}get useIaf(){return!0}appealCaseDecision(e,t){const n=encodeURIComponent(e);return this.post(`/casemanagement/${n}/appeal`,t)}closeCase(e,t){const n=encodeURIComponent(e);return this.post(`/casemanagement/${n}/close`,t)}getCase(e){const t=encodeURIComponent(e);return this.get(`/casemanagement/${t}`)}issueCaseRefund(e,t){const n=encodeURIComponent(e);return this.post(`/casemanagement/${n}/issue_refund`,t)}provideReturnShipmentInfo(e,{shippingCarrierName:t,trackingNumber:n}){const o=encodeURIComponent(e);return this.post(`/casemanagement/${o}/provide_shipment_info`,{shippingCarrierName:t,trackingNumber:n})}providesReturnAddress(e,t){const n=encodeURIComponent(e);return this.post(`/casemanagement/${n}/provide_return_address`,t)}search(e){return this.get("/casemanagement/search",{params:e})}}return Case.id="Case",Nn.default=Case,Nn}());On.Case=n.default;const o=e(function requireInquiry(){if(Pn)return vn;Pn=1;var e=vn&&vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vn,"__esModule",{value:!0});const t=e(requireRestful());class Inquiry extends t.default{get basePath(){return"/post-order/v2"}get useIaf(){return!0}checkInquiryEligibility(e){return this.post("/inquiry/check_eligibility",e)}closeInquiry(e,t){return e=encodeURIComponent(e),"string"==typeof t?.closeReason&&(t.closeReason=t.closeReason.trim()),this.post(`/inquiry/${e}/close`,t)}confirmInquiryRefund(e){return e=encodeURIComponent(e),this.post(`/inquiry/${e}/confirm_refund`)}createInquiry(e){return"string"==typeof e.desiredOutcome&&(e.desiredOutcome=e.desiredOutcome.trim()),this.post("/inquiry",e)}escalateInquiry(e,t){return e=encodeURIComponent(e),t.escalateInquiryReason=t.escalateInquiryReason.trim(),this.post(`/inquiry/${e}/escalate`,t)}getInquiry(e){return e=encodeURIComponent(e),this.get(`/inquiry/${e}`)}issueInquiryRefund(e,t){return e=encodeURIComponent(e),this.post(`/inquiry/${e}/issue_refund`,t)}provideInquiryRefundInfo(e,t){return e=encodeURIComponent(e),this.post(`/inquiry/${e}/provide_refund_info`,t)}provideInquiryShipmentInfo(e,t){return e=encodeURIComponent(e),this.post(`/inquiry/${e}/provide_shipment_info`,t)}search(e){return this.get("/inquiry/search",{params:e})}sendInquiryMessage(e,t){return e=encodeURIComponent(e),this.post(`/inquiry/${e}/send_message`,t)}}return Inquiry.id="Inquiry",vn.default=Inquiry,vn}());On.Inquiry=o.default;const i=e(function require_return(){if(Dn)return Un;Dn=1;var e=Un&&Un.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Un,"__esModule",{value:!0});const t=e(requireRestful());class Return extends t.default{get basePath(){return"/post-order/v2"}get useIaf(){return!0}addShippingLabelInfo(e,t){const n=encodeURIComponent(e);return this.post(`/return/${n}/add_shipping_label`,t)}cancelReturnRequest(e,t){const n=encodeURIComponent(e);return t&&t.buyerCloseReason&&(t.buyerCloseReason=t.buyerCloseReason.trim()),this.post(`/return/${n}/cancel`,t)}checkReturnEligibility(e){return this.post("/return/check_eligibility",e)}checkShippingLabelEligibility(e){const t=encodeURIComponent(e);return this.get(`/return/${t}/check_label_print_eligibility`)}createReturnDraft(e){return this.post("/return/draft",e)}createReturnRequest(e,t){return this.post("/return",e,{params:{fieldgroups:t}})}createReturnShippingLabel(e){const t=encodeURIComponent(e);return this.post(`/return/${t}/initiate_shipping_label`)}deleteReturnDraftFile(e,t){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.delete(`/return/draft/${e}/file/${t}`)}escalateReturn(e,t){const n=encodeURIComponent(e);return this.post(`/return/${n}/escalate`,t)}getReturn(e,t){return e=encodeURIComponent(e),this.get(`/return/${e}`,{params:{fieldgroups:t}})}getReturnDraft(e){const t=encodeURIComponent(e);return this.get(`/return/draft/${t}`)}getReturnDraftFiles(e){const t=encodeURIComponent(e);return this.get(`/return/draft/${t}/files`)}getReturnEstimate(e){return this.post("/return/estimate",e)}getReturnFiles(e){const t=encodeURIComponent(e);return this.get(`/return/${t}/files`)}getReturnPreferences(){return this.get("/return/preference")}getReturnShippingLabel(e){return e=encodeURIComponent(e),this.get(`/return/${e}/get_shipping_label`)}getShipmentTrackingInfo(e,t,n){return e=encodeURIComponent(e),this.get(`/return/${e}/tracking`,{params:{carrier_used:t,tracking_number:n}})}issueReturnRefund(e,t){return e=encodeURIComponent(e),this.post(`/return/${e}/issue_refund`,t)}markReturnReceived(e,t){return e=encodeURIComponent(e),this.post(`/return/${e}/mark_as_received`,t)}markReturnRefundReceived(e){return e=encodeURIComponent(e),this.post(`/return/${e}/mark_refund_received`)}markReturnRefundSent(e,t){return e=encodeURIComponent(e),this.post(`/return/${e}/mark_refund_sent`,t)}markReturnShipped(e,t){return e=encodeURIComponent(e),this.post(`/return/${e}/mark_as_shipped`,t)}processReturnRequest(e,t){return e=encodeURIComponent(e),this.post(`/return/${e}/decide`,t)}search(e){return this.get("/return/search",{params:e})}sendReturnMessage(e,t){return e=encodeURIComponent(e),this.post(`/return/${e}/send_message`,t)}sendReturnShippingLabel(e,t){return e=encodeURIComponent(e),this.post(`/return/${e}/send_shipping_label`,{},{params:{to_email_address:t}})}setReturnPreferences(e){return this.post("/return/preference",{rmaRequired:e})}submitReturnFile(e,t){return e=encodeURIComponent(e),this.post(`/return/${e}/file/submit`,{filePurpose:t})}updateReturnDraft(e,t){return e=encodeURIComponent(e),this.put(`/return/draft/${e}`,{returnRequest:t})}updateShipmentTrackingInfo(e,t){return e=encodeURIComponent(e),this.put(`/return/${e}/update_tracking`,t)}uploadReturnDraftFile(e,t){return e=encodeURIComponent(e),this.post(`/return/draft/${e}/file/upload`,t)}uploadReturnFile(e,t){return e=encodeURIComponent(e),this.post(`/return/${e}/file/upload`,t)}voidShippingLabel(e,t){return e=encodeURIComponent(e),this.post(`/return/${e}/void_shipping_label`,t)}}return Return.id="Return",Un.default=Return,Un}());return On.Return=i.default,On}var Ln,wn={},Bn={};var xn,Fn={};var kn,Gn={};var qn,jn={};var Yn,$n={};var Hn,Vn={};var Kn,Wn={};var Xn,zn={};var Jn,Qn={};var Zn,eo={};var to,ro={};var no,oo={};var io,so={};var ao,uo,co={};function requireSell(){if(uo)return wn;uo=1;var e=wn&&wn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wn,"__esModule",{value:!0}),wn.Listing=wn.Negotiation=wn.Logistics=wn.Feed=wn.Finances=wn.Recommendation=wn.Metadata=wn.Marketing=wn.Inventory=wn.Fulfillment=wn.Analytics=wn.Compliance=wn.AccountV2=wn.AccountV1=void 0;const t=e(function requireV1(){if(Ln)return Bn;Ln=1;var e=Bn&&Bn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bn,"__esModule",{value:!0});const t=e(requireRestful());class AccountV1 extends t.default{get basePath(){return"/sell/account/v1"}getCustomPolicies(e){return this.get("/custom_policy/",{params:{policy_types:e}})}createCustomPolicy(e){return this.post("/custom_policy/",e)}getCustomPolicy(e){return e=encodeURIComponent(e),this.get(`/custom_policy/${e}`)}updateCustomPolicy(e,t){return e=encodeURIComponent(e),this.put(`/custom_policy/${e}`,t)}getFulfillmentPolicies(e){return this.get("/fulfillment_policy",{params:{marketplace_id:e}})}createFulfillmentPolicy(e){return this.post("/fulfillment_policy/",e)}updateFulfillmentPolicy(e,t){return e=encodeURIComponent(e),this.put(`/fulfillment_policy/${e}`,t)}deleteFulfillmentPolicy(e){return e=encodeURIComponent(e),this.delete(`/fulfillment_policy/${e}`)}getFulfillmentPolicy(e){return this.get(`/fulfillment_policy/${e}`)}getFulfillmentPolicyByName(e,t){return this.get("/fulfillment_policy/get_by_policy_name",{params:{marketplace_id:e,name:t}})}getPaymentPolicies(e){return this.get("/payment_policy",{params:{marketplace_id:e}})}getPaymentPolicy(e){return e=encodeURIComponent(e),this.get(`/payment_policy/${e}`)}createPaymentPolicy(e){return this.post("/payment_policy",e)}updatePaymentPolicy(e,t){return e=encodeURIComponent(e),this.put(`/payment_policy/${e}`,t)}deletePaymentPolicy(e){return e=encodeURIComponent(e),this.delete(`/payment_policy/${e}`)}getPaymentPolicyByName(e,t){return this.get("/payment_policy/get_by_policy_name",{params:{marketplace_id:e,name:t}})}getPaymentsProgram(e,t){e=encodeURIComponent(e);const n=encodeURIComponent(t);return this.get(`/payments_program/${e}/${n}`)}getPaymentsProgramOnboarding(e,t){e=encodeURIComponent(e);const n=encodeURIComponent(t);return this.get(`/payments_program/${e}/${n}/onboarding`)}getPrivileges(){return this.get("/privilege")}getOptedInPrograms(){return this.get("/program/get_opted_in_programs")}optInToProgram(e){return this.post("/program/opt_in",e)}optOutOfProgram(e){return this.post("/program/opt_out",e)}getRateTables(e){return this.get("/rate_table",{params:{country_code:e}})}getReturnPolicies(e){return this.get("/return_policy",{params:{marketplace_id:e}})}getReturnPolicy(e){return e=encodeURIComponent(e),this.get(`/return_policy/${e}`)}createReturnPolicy(e){return this.post("/return_policy",e)}updateReturnPolicy(e,t){return e=encodeURIComponent(e),this.put(`/return_policy/${e}`,t)}deleteReturnPolicy(e){return e=encodeURIComponent(e),this.delete(`/return_policy/${e}`)}getReturnPolicyByName(e,t){return this.get("/return_policy/get_by_policy_name",{params:{marketplace_id:e,name:t}})}getSalesTax(e,t){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.get(`/sales_tax/${e}/${t}`)}createOrReplaceSalesTax(e,t,n){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.put(`/sales_tax/${e}/${t}`,n)}deleteSalesTax(e,t){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.delete(`/sales_tax/${e}/${t}`)}getSalesTaxes(e){return this.get("/sales_tax",{params:{country_code:e}})}getSubscription({limit:e,continuationToken:t}={}){return this.get("/subscription",{params:{limit:e,continuation_token:t}})}getKYC(){return this.get("/kyc")}getAdvertisingEligibility(e){return this.get("/advertising_eligibility",{params:{program_types:e}})}getInventoryLocation(e){return e=encodeURIComponent(e),this.get(`/location/${e}`)}createInventoryLocation(e,t){return e=encodeURIComponent(e),this.post(`/location/${e}`,t)}deleteInventoryLocation(e){return e=encodeURIComponent(e),this.delete(`/location/${e}`)}disableInventoryLocation(e){return e=encodeURIComponent(e),this.post(`/location/${e}/disable`)}enableInventoryLocation(e){return e=encodeURIComponent(e),this.post(`/location/${e}/enable`)}getInventoryLocations({limit:e,offset:t}={}){return this.get("/location",{params:{limit:e,offset:t}})}updateInventoryLocation(e,t){return e=encodeURIComponent(e),this.post(`/location/${e}/update_location_details`,t)}getSalesTaxJurisdictions(e){return e=encodeURIComponent(e),this.get(`/country/${e}/sales_tax_jurisdiction`)}}return AccountV1.id="AccountV1",Bn.default=AccountV1,Bn}());wn.AccountV1=t.default;const n=e(function requireV2(){if(xn)return Fn;xn=1;var e=Fn&&Fn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Fn,"__esModule",{value:!0});const t=e(requireRestful());class AccountV2 extends t.default{get basePath(){return"/sell/account/v2"}getRateTable(e){return e=encodeURIComponent(e),this.get(`/rate_table/${e}`)}updateShippingCost(e,t){return e=encodeURIComponent(e),this.post(`/rate_table/${e}/update_shipping_cost`,t)}getPayoutSettings(){return this.get("/payout_settings")}updatePayoutPercentage(e){return this.post("/payout_settings/update_percentage",e)}}return AccountV2.id="AccountV2",Fn.default=AccountV2,Fn}());wn.AccountV2=n.default;const o=e(function requireAnalytics(){if(kn)return Gn;kn=1;var e=Gn&&Gn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gn,"__esModule",{value:!0});const t=e(requireRestful());class Analytics extends t.default{get basePath(){return"/sell/analytics/v1"}findSellerStandardsProfiles(){return this.get("/seller_standards_profile")}getSellerStandardsProfile(e,t){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.get(`/seller_standards_profile/${e}/${t}`)}getTrafficReport({dimension:e,filter:t,metric:n,sort:o}={}){return this.get("/traffic_report",{params:{dimension:e,filter:t,metric:n,sort:o}})}getCustomerServiceMetric(e,t){return this.get(`/customer_service_metric/${e}/${t}`)}}return Analytics.id="Analytics",Gn.default=Analytics,Gn}());wn.Analytics=o.default;const i=e(function requireCompliance(){if(qn)return jn;qn=1;var e=jn&&jn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jn,"__esModule",{value:!0});const t=e(requireRestful());class Compliance extends t.default{get basePath(){return"/sell/compliance/v1"}getListingViolationsSummary(e){return this.get("/listing_violation_summary",{params:{compliance_type:e}})}getListingViolations({complianceType:e,offset:t,listingId:n,limit:o}={}){return this.get("/listing_violation",{params:{compliance_type:e,offset:t,listing_id:n,limit:o}})}suppressViolation(e){return this.post("/suppress_listing_violation",e)}}return Compliance.id="Compliance",jn.default=Compliance,jn}());wn.Compliance=i.default;const d=e(function requireFinances(){if(Yn)return $n;Yn=1;var e=$n&&$n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($n,"__esModule",{value:!0});const t=e(requireRestful());class Finances extends t.default{get basePath(){return"/sell/finances/v1"}get subdomain(){return"apiz"}getPayout(e){return e=encodeURIComponent(e),this.get(`/payout/${e}`)}getPayouts({filter:e,limit:t,offset:n,sort:o}={}){return this.get("/payout",{params:{filter:e,limit:t,offset:n,sort:o}})}getPayoutSummary({filter:e}={}){return this.get("/payout_summary",{params:{filter:e}})}getTransactions({filter:e,limit:t,offset:n,sort:o}={}){return this.get("/transaction",{params:{filter:e,limit:t,offset:n,sort:o}})}getTransactionSummary({filter:e}={}){return this.get("/transaction_summary",{params:{filter:e}})}getTransfer(e){return e=encodeURIComponent(e),this.get(`/transfer/${e}`)}getSellerFundsSummary(){return this.get("/seller_funds_summary")}}return Finances.id="Finances",$n.default=Finances,$n}());wn.Finances=d.default;const f=e(function requireFulfillment(){if(Hn)return Vn;Hn=1;var e=Vn&&Vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vn,"__esModule",{value:!0});const t=requireRequest(),n=e(requireRestful());class Fulfillment extends n.default{get basePath(){return"/sell/fulfillment/v1"}getOrder(e,{fieldGroups:t}={}){return this.get(`/order/${e}`,{params:{fieldGroups:t}})}getOrders({filter:e,limit:t,offset:n,orderIds:o,fieldGroups:i}={}){return this.get("/order",{params:{filter:e,limit:t,offset:n,orderIds:Array.isArray(o)?o.join():o,fieldGroups:i}})}issueRefund(e,t){return e=encodeURIComponent(e),this.post(`/order/${e}/issue_refund`,t)}getShippingFulfillments(e){return e=encodeURIComponent(e),this.get(`/order/${e}/shipping_fulfillment`)}createShippingFulfillment(e,t){return e=encodeURIComponent(e),this.post(`/order/${e}/shipping_fulfillment`,t)}getShippingFulfillment(e,t){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.get(`/order/${e}/shipping_fulfillment/${t}`)}getPaymentDispute(e){return this.get(`/payment_dispute/${e}`)}fetchEvidenceContent(e){return this.get(`/payment_dispute/${e}/fetch_evidence_content`)}getActivities(e){return this.get(`/payment_dispute/${e}/activity`)}getPaymentDisputeSummaries({orderId:e,buyerUsername:t,openDateFrom:n,openDateTo:o,paymentDisputeStatus:i,limit:d,offset:f}){return this.get("/payment_dispute_summary",{params:{order_id:e,buyer_username:t,open_date_from:n,open_date_to:o,payment_dispute_status:i,limit:d,offset:f}})}contestPaymentDispute(e,t){return this.post(`/payment_dispute/${e}/contest`,t)}acceptPaymentDispute(e){return this.post(`/payment_dispute/${e}/accept`)}uploadEvidenceFile(e,n){return this.post(`/payment_dispute/${e}/upload_evidence_file`,n,{headers:{...t.multipartHeader}})}addEvidence(e,t){return this.post(`/payment_dispute/${e}/add_evidence`,t)}updateEvidence(e,t){return this.post(`/payment_dispute/${e}/update_evidence`,t)}}return Fulfillment.id="Fulfillment",Vn.default=Fulfillment,Vn}());wn.Fulfillment=f.default;const h=e(function requireInventory(){if(Kn)return Wn;Kn=1;var e=Wn&&Wn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wn,"__esModule",{value:!0});const t=e(requireRestful());class Inventory extends t.default{get basePath(){return"/sell/inventory/v1"}getInventoryLocation(e){const t=encodeURIComponent(e);return this.get(`/location/${t}`)}disableInventoryLocation(e){const t=encodeURIComponent(e);return this.post(`/location/${t}/disable`)}enableInventoryLocation(e){const t=encodeURIComponent(e);return this.post(`/location/${t}/enable`)}getInventoryLocations({limit:e,offset:t}={}){return this.get("/location",{params:{limit:e,offset:t}})}createInventoryLocation(e,t){const n=encodeURIComponent(e);return this.post(`/location/${n}`,t)}deleteInventoryLocation(e){const t=encodeURIComponent(e);return this.delete(`/location/${t}`)}updateInventoryLocation(e,t){const n=encodeURIComponent(e);return this.post(`/location/${n}/update_location_details`,t)}getInventoryItem(e){return e=encodeURIComponent(e),this.get(`/inventory_item/${e}`)}createOrReplaceInventoryItem(e,t){return e=encodeURIComponent(e),this.put(`/inventory_item/${e}`,t)}deleteInventoryItem(e){return e=encodeURIComponent(e),this.delete(`/inventory_item/${e}`)}getInventoryItems({limit:e,offset:t}={}){return this.get("/inventory_item",{params:{limit:e,offset:t}})}bulkUpdatePriceQuantity(e){return this.post("/bulk_update_price_quantity",e)}bulkCreateOrReplaceInventoryItem(e){return this.post("/bulk_create_or_replace_inventory_item",e)}bulkGetInventoryItem(e){return this.post("/bulk_get_inventory_item",e)}getProductCompatibility(e){return e=encodeURIComponent(e),this.get(`/inventory_item/${e}/product_compatibility`)}createOrReplaceProductCompatibility(e,t){return e=encodeURIComponent(e),this.put(`/inventory_item/${e}/product_compatibility`,t)}deleteProductCompatibility(e){return e=encodeURIComponent(e),this.delete(`/inventory_item/${e}/product_compatibility`)}getOffers({sku:e,marketplaceId:t,format:n,limit:o,offset:i}={}){return this.get("/offer",{params:{sku:e,marketplace_id:t,format:n,limit:o,offset:i}})}getOffer(e){return e=encodeURIComponent(e),this.get(`/offer/${e}`)}createOffer(e){return this.post("/offer",e)}updateOffer(e,t){return e=encodeURIComponent(e),this.put(`/offer/${e}`,t)}deleteOffer(e){return this.delete(`/offer/${e}`)}publishOffer(e){const t=encodeURIComponent(e);return this.post(`/offer/${t}/publish`)}publishOfferByInventoryItemGroup(e){return this.post("/offer/publish_by_inventory_item_group",e)}withdrawOfferByInventoryItemGroup(e){return this.post("/offer/withdraw_by_inventory_item_group",e)}getListingFees(e){return this.post("/offer/get_listing_fees",e)}bulkCreateOffer(e){return this.post("/bulk_create_offer",e)}bulkPublishOffer(e){return this.post("/bulk_publish_offer",e)}withdrawOffer(e){const t=encodeURIComponent(e);return this.post(`/offer/${t}/withdraw`)}getInventoryItemGroup(e){return e=encodeURIComponent(e),this.get(`/inventory_item_group/${e}`)}createOrReplaceInventoryItemGroup(e,t){return e=encodeURIComponent(e),this.put(`/inventory_item_group/${e}`,t)}deleteInventoryItemGroup(e){return this.delete(`/inventory_item_group/${e}`)}bulkMigrateListing(e){return this.post("/bulk_migrate_listing",e)}getSkuLocationMapping(e,t){return t=encodeURIComponent(t),e=encodeURIComponent(e),this.get(`/listing/${e}/sku/${t}/locations`)}createOrReplaceSkuLocationMapping(e,t,n){return t=encodeURIComponent(t),e=encodeURIComponent(e),this.put(`/listing/${e}/sku/${t}/locations`,n)}deleteSkuLocationMapping(e,t){return t=encodeURIComponent(t),e=encodeURIComponent(e),this.delete(`/listing/${e}/sku/${t}/locations`)}}return Inventory.id="Inventory",Wn.default=Inventory,Wn}());wn.Inventory=h.default;const _=e(function requireMarketing(){if(Xn)return zn;Xn=1;var e=zn&&zn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zn,"__esModule",{value:!0});const t=e(requireRestful());class Marketing extends t.default{get basePath(){return"/sell/marketing/v1"}bulkCreateAdsByInventoryReference(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/bulk_create_ads_by_inventory_reference`,t)}bulkCreateAdsByListingId(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/bulk_create_ads_by_listing_id`,t)}bulkDeleteAdsByInventoryReference(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/bulk_delete_ads_by_inventory_reference`,t)}bulkDeleteAdsByListingId(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/bulk_delete_ads_by_listing_id`,t)}bulkUpdateAdsBidByInventoryReference(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/bulk_update_ads_bid_by_inventory_reference`,t)}bulkUpdateAdsBidByListingId(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/bulk_update_ads_bid_by_listing_id`,t)}bulkUpdateAdsStatus(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/bulk_update_ads_status`,t)}bulkUpdateAdsStatusByListingId(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/bulk_update_ads_status_by_listing_id`,t)}launchCampaign(e){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/launch`)}setupQuickCampaign(e){return this.post("/ad_campaign/setup_quick_campaign",e)}getAds(e,{limit:t,listingIds:n,offset:o}={}){return e=encodeURIComponent(e),this.get(`/ad_campaign/${e}/ad`,{params:{limit:t,listing_ids:n,offset:o}})}createAdByListingId(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/ad`,t)}createAdsByInventoryReference(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/create_ads_by_inventory_reference`,t)}getAd(e,t){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.get(`/ad_campaign/${e}/ad/${t}`)}deleteAd(e,t){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.delete(`/ad_campaign/${e}/ad/${t}`)}deleteAdsByInventoryReference(e){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/delete_ads_by_inventory_reference`)}getAdsByInventoryReference(e,t,n){return e=encodeURIComponent(e),this.get(`/ad_campaign/${e}/get_ads_by_inventory_reference`,{params:{inventory_reference_id:t,inventory_reference_type:n}})}updateBid(e,t,n){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.post(`/ad_campaign/${e}/ad/${t}/update_bid`,n)}getAdGroups(e,{adGroupStatus:t,limit:n,offset:o}={}){return e=encodeURIComponent(e),this.get(`/ad_campaign/${e}/ad_group`,{params:{ad_group_status:t,limit:n,offset:o}})}createAdGroup(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/ad_group`,t)}getAdGroup(e,t){return t=encodeURIComponent(t),e=encodeURIComponent(e),this.get(`/ad_campaign/${e}/ad_group/${t}`)}updateAdGroup(e,t,n){return t=encodeURIComponent(t),e=encodeURIComponent(e),this.put(`/ad_campaign/${e}/ad_group/${t}`,n)}suggestBids(e,t,n){return t=encodeURIComponent(t),e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/ad_group/${t}/suggest_bids`,n)}suggestKeywords(e,t,n){return t=encodeURIComponent(t),e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/ad_group/${t}/suggest_keywords`,n)}cloneCampaign(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/clone`,t)}getCampaigns({campaignName:e,campaignStatus:t,endDateRange:n,limit:o,offset:i,startDateRange:d}={}){return this.get("/ad_campaign",{params:{campaign_name:e,campaign_status:t,end_date_range:n,limit:o,offset:i,start_date_range:d}})}getCampaign(e){return e=encodeURIComponent(e),this.get(`/ad_campaign/${e}`)}createCampaign(e){return this.post("/ad_campaign",e)}deleteCampaign(e){return e=encodeURIComponent(e),this.delete(`/ad_campaign/${e}`)}endCampaign(e){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/end`)}findCampaignByAdReference({inventoryReferenceId:e,inventoryReferenceType:t,listingId:n}={}){return this.get("/ad_campaign/find_campaign_by_ad_reference",{params:{inventory_reference_id:e,inventory_reference_type:t,listing_id:n}})}getCampaignByName(e){return this.get("/ad_campaign/get_campaign_by_name",{params:{campaign_name:e}})}pauseCampaign(e){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/pause`)}resumeCampaign(e){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/resume`)}suggestItems(e,{categoryIds:t,limit:n,offset:o}={}){return e=encodeURIComponent(e),this.get(`/ad_campaign/${e}/suggest_items`,{params:{category_ids:t,limit:n,offset:o}})}updateAdRateStrategy(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/update_ad_rate_strategy`,t)}updateCampaignBudget(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/update_campaign_budget`,t)}updateCampaignIdentification(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/update_campaign_identification`,t)}bulkCreateKeyword(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/bulk_create_keyword`,t)}bulkUpdateKeyword(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/bulk_update_keyword`,t)}getKeywords(e,{adGroupIds:t,keywordStatus:n,limit:o,offset:i}={}){return e=encodeURIComponent(e),this.get(`/ad_campaign/${e}/keyword`,{params:{ad_group_ids:t,keyword_status:n,limit:o,offset:i}})}createKeyword(e,t){return e=encodeURIComponent(e),this.post(`/ad_campaign/${e}/keyword`,t)}getKeyword(e,t){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.get(`/ad_campaign/${e}/keyword/${t}`)}updateKeyword(e,t,n){return e=encodeURIComponent(e),t=encodeURIComponent(t),this.put(`/ad_campaign/${e}/keyword/${t}`,n)}bulkCreateNegativeKeyword(e){return this.post("/bulk_create_negative_keyword",e)}bulkUpdateNegativeKeyword(e){return this.post("/bulk_update_negative_keyword",e)}getNegativeKeywords({adGroupIds:e,campaignIds:t,limit:n,negativeKeywordStatus:o,offset:i}={}){return this.get("/negative_keyword",{params:{ad_group_ids:e,campaign_ids:t,limit:n,negative_keyword_status:o,offset:i}})}createNegativeKeyword(e){return this.post("/negative_keyword",e)}getNegativeKeyword(e){return e=encodeURIComponent(e),this.get(`/negative_keyword/${e}`)}updateNegativeKeyword(e,t){return e=encodeURIComponent(e),this.put(`/negative_keyword/${e}`,t)}getReport(e){return e=encodeURIComponent(e),this.get(`/ad_report/${e}`)}getReportMetadata(){return this.get("/ad_report_metadata")}getReportMetadataForReportType(e){return e=encodeURIComponent(e),this.get(`/ad_report_metadata/${e}`)}getReportTasks({limit:e,offset:t,reportTaskStatuses:n}={}){return this.get("/ad_report_task",{params:{limit:e,offset:t,report_task_statuses:n}})}getReportTask(e){return e=encodeURIComponent(e),this.get(`/ad_report_task/${e}`)}createReportTask(e){return this.post("/ad_report_task",e)}deleteReportTask(e){return e=encodeURIComponent(e),this.delete(`/ad_report_task/${e}`)}createItemPriceMarkdownPromotion(e){return this.post("/item_price_markdown",e)}updateItemPriceMarkdownPromotion(e,t){return e=encodeURIComponent(e),this.put(`/item_price_markdown/${e}`,t)}deleteItemPriceMarkdownPromotion(e){return e=encodeURIComponent(e),this.delete(`/item_price_markdown/${e}`)}getItemPriceMarkdownPromotion(e){return e=encodeURIComponent(e),this.get(`/item_price_markdown/${e}`)}createItemPromotion(e){return this.post("/item_promotion",e)}updateItemPromotion(e,t){return e=encodeURIComponent(e),this.put(`/item_promotion/${e}`,t)}deleteItemPromotion(e){return e=encodeURIComponent(e),this.delete(`/item_promotion/${e}`)}getItemPromotion(e){return e=encodeURIComponent(e),this.get(`/item_promotion/${e}`)}getListingSet(e,{limit:t,offset:n,q:o,sort:i,status:d}={}){return e=encodeURIComponent(e),this.get(`/promotion/${e}/get_listing_set`,{params:{limit:t,offset:n,q:o,sort:i,status:d}})}getPromotions(e,{limit:t,offset:n,promotionStatus:o,promotionType:i,q:d,sort:f}={}){return this.get("/promotion",{params:{marketplace_id:e,limit:t,offset:n,promotion_status:o,promotion_type:i,q:d,sort:f}})}pausePromotion(e){const t=encodeURIComponent(e);return this.post(`/promotion/${t}/pause`)}resumePromotion(e){const t=encodeURIComponent(e);return this.post(`/promotion/${t}/resume`)}getPromotionReports(e,{limit:t,offset:n,promotionStatus:o,promotionType:i,q:d}={}){return this.get("/promotion_report",{params:{marketplace_id:e,limit:t,offset:n,promotion_status:o,promotion_type:i,q:d}})}getPromotionSummaryReport(e){return this.get("/promotion_summary_report",{params:{marketplace_id:e}})}getEmailCampaign(e){return e=encodeURIComponent(e),this.get(`/email_campaign/${e}`)}getEmailCampaigns({limit:e,q:t,offset:n,sort:o}={}){return this.get("/email_campaign",{params:{limit:e,offset:n,q:t,sort:o}})}createEmailCampaign(e){return this.post("/email_campaign",e)}updateEmailCampaign(e,t){return e=encodeURIComponent(e),this.put(`/email_campaign/${e}`,t)}deleteEmailCampaign(e){return e=encodeURIComponent(e),this.delete(`/email_campaign/${e}`)}getEmailPreview(e){return e=encodeURIComponent(e),this.get(`/email_campaign/${e}/email_preview`)}getAudiences(){return this.get("/email_campaign/audience")}getEmailReport(e,t){return this.get("/email_campaign/report",{params:{startDate:e,endDate:t}})}}return Marketing.id="Marketing",zn.default=Marketing,zn}());wn.Marketing=_.default;const m=e(function requireMetadata(){if(Jn)return Qn;Jn=1;var e=Qn&&Qn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qn,"__esModule",{value:!0});const t=e(requireRestful());class Metadata extends t.default{get basePath(){return"/sell/metadata/v1"}getSalesTaxJurisdictions(e){return e=encodeURIComponent(e),this.get(`/country/${e}/sales_tax_jurisdiction`)}getAutomotivePartsCompatibilityPolicies(e,t){return e=encodeURIComponent(e),this.get(`/marketplace/${e}/get_automotive_parts_compatibility_policies`,{params:{filter:t}})}getExtendedProducerResponsibilityPolicies(e,t){return e=encodeURIComponent(e),this.get(`/marketplace/${e}/get_extended_producer_responsibility_policies`,{params:{filter:t}})}getItemConditionPolicies(e,t){return e=encodeURIComponent(e),this.get(`/marketplace/${e}/get_item_condition_policies`,{params:{filter:t}})}getListingStructurePolicies(e,t){return e=encodeURIComponent(e),this.get(`/marketplace/${e}/get_listing_structure_policies`,{params:{filter:t}})}getNegotiatedPricePolicies(e,t){return e=encodeURIComponent(e),this.get(`/marketplace/${e}/get_negotiated_price_policies`,{params:{filter:t}})}getProductAdoptionPolicies(e,t){return e=encodeURIComponent(e),this.get(`/marketplace/${e}/get_product_adoption_policies`,{params:{filter:t}})}getReturnPolicies(e,t){return e=encodeURIComponent(e),this.get(`/marketplace/${e}/get_return_policies`,{params:{filter:t}})}getHazardousMaterialsLabels(e){return e=encodeURIComponent(e),this.get(`/marketplace/${e}/get_hazardous_materials_labels`)}}return Metadata.id="Metadata",Qn.default=Metadata,Qn}());wn.Metadata=m.default;const P=e(function requireRecommendation(){if(Zn)return eo;Zn=1;var e=eo&&eo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eo,"__esModule",{value:!0});const t=e(requireRestful());class Recommendation extends t.default{get basePath(){return"/sell/recommendation/v1"}findListingRecommendations({filter:e,limit:t,offset:n}={},o){return this.post("/find",{data:o,params:{filter:e,limit:t,offset:n}})}}return Recommendation.id="Recommendation",eo.default=Recommendation,eo}());wn.Recommendation=P.default;const U=e(function requireFeed(){if(to)return ro;to=1;var e=ro&&ro.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ro,"__esModule",{value:!0});const t=requireRequest(),n=e(requireRestful());class Feed extends n.default{get basePath(){return"/sell/feed/v1"}getOrderTasks({dateRange:e,feedType:t,limit:n,lookBackDays:o,offset:i,scheduleId:d}={}){return this.get("/order_task",{params:{date_range:e,feed_type:t,limit:n,look_back_days:o,offset:i,schedule_id:d}})}createOrderTask(e){return this.post("/order_task",e)}getOrderTask(e){return e=encodeURIComponent(e),this.get(`/order_task/${e}`)}getInventoryTasks({feedType:e,scheduleId:t,lookBackDays:n,dateRange:o,limit:i,offset:d}={}){return this.get("/inventory_task",{params:{feed_type:e,schedule_id:t,look_back_days:n,date_range:o,limit:i,offset:d}})}createInventoryTask(e){return this.post("/inventory_task",e)}getInventoryTask(e){return e=encodeURIComponent(e),this.get(`/inventory_task/${e}`)}getSchedules({feedType:e,limit:t,offset:n}={}){return this.get("/schedule",{params:{feed_type:e,limit:t,offset:n}})}createSchedule(e){return this.post("/schedule",e)}getSchedule(e){return e=encodeURIComponent(e),this.get(`/schedule/${e}`)}updateSchedule(e,t){return e=encodeURIComponent(e),this.put(`/schedule/${e}`,t)}deleteSchedule(e){return e=encodeURIComponent(e),this.delete(`/schedule/${e}`)}getLatestResultFile(e){return e=encodeURIComponent(e),this.get(`/schedule/${e}/download_result_file`,{responseType:"arraybuffer",responseEncoding:"binary"})}getScheduleTemplate(e){return e=encodeURIComponent(e),this.get(`/schedule_template/${e}`)}getScheduleTemplates({feedType:e,limit:t,offset:n}={}){return this.get("/schedule_template",{params:{feed_type:e,limit:t,offset:n}})}getTasks({dateRange:e,feedType:t,limit:n,lookBackDays:o,offset:i,scheduleId:d}={}){return this.get("/task",{params:{date_range:e,feed_type:t,limit:n,look_back_days:o,offset:i,schedule_id:d}})}createTask(e){return this.post("/task",e)}getInputFile(e){return e=encodeURIComponent(e),this.get(`/task/${e}/download_input_file`)}getResultFile(e){return e=encodeURIComponent(e),this.get(`/task/${e}/download_result_file`,{responseType:"arraybuffer",responseEncoding:"binary"})}getTask(e){return e=encodeURIComponent(e),this.get(`/task/${e}`)}uploadFile(e,n){return e=encodeURIComponent(e),this.post(`/task/${e}/upload_file`,n,{headers:t.multipartHeader})}getCustomerServiceMetricTasks({dateRange:e,feedType:t,limit:n,lookBackDays:o,offset:i}={}){return this.get("/customer_service_metric_task",{params:{date_range:e,feed_type:t,limit:n,look_back_days:o,offset:i}})}createCustomerServiceMetricTask(e,t){return this.post("/customer_service_metric_task",t,{headers:{"accept-language":e}})}getCustomerServiceMetricTask(e){return e=encodeURIComponent(e),this.get(`/customer_service_metric_task/${e}`)}}return Feed.id="Feed",ro.default=Feed,ro}());wn.Feed=U.default;const L=e(function requireLogistics(){if(no)return oo;no=1;var e=oo&&oo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(oo,"__esModule",{value:!0});const t=e(requireRestful());class Logistics extends t.default{get basePath(){return"/sell/logistics/v1_beta"}createShippingQuote(e){return this.post("/shipping_quote",e)}getShippingQuote(e){return e=encodeURIComponent(e),this.get(`/shipping_quote/${e}`)}createFromShippingQuote(e){return this.post("/shipment/create_from_shipping_quote",e)}getShipment(e){return this.get(`/shipment/${e}`)}downloadLabelFile(e){return this.get(`/shipment/${e}/download_label_file`)}cancelShipment(e){return this.post(`/shipment/${e}/cancel`)}}return Logistics.id="Logistics",oo.default=Logistics,oo}());wn.Logistics=L.default;const k=e(function requireNegotiation(){if(io)return so;io=1;var e=so&&so.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(so,"__esModule",{value:!0});const t=e(requireRestful());class Negotiation extends t.default{get basePath(){return"/sell/negotiation/v1"}findEligibleItems({limit:e,offset:t}={}){return this.get("/find_eligible_items",{params:{limit:e,offset:t}})}sendOfferToInterestedBuyers(e){return this.post("/send_offer_to_interested_buyers",e)}}return Negotiation.id="Negotiation",so.default=Negotiation,so}());wn.Negotiation=k.default;const j=e(function requireListing(){if(ao)return co;ao=1;var e=co&&co.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(co,"__esModule",{value:!0});const t=e(requireRestful());class Listing extends t.default{get basePath(){return"/sell/listing/v1_beta"}createItemDraft(e){return this.post("/item_draft/",e)}}return Listing.id="Listing",co.default=Listing,co}());return wn.Listing=j.default,wn}var lo,po,fo={},ho={},_o={};function requireClientAlerts(){return po||(po=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EventType=void 0;const t=function requireTypes$1(){return lo||(lo=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.EventType=void 0,function(e){e.AskSellerQuestion="AskSellerQuestion",e.BestOffer="BestOffer",e.BestOfferDeclined="BestOfferDeclined",e.BestOfferPlaced="BestOfferPlaced",e.BidPlaced="BidPlaced",e.BidReceived="BidReceived",e.CounterOfferReceived="CounterOfferReceived",e.CustomCode="CustomCode",e.EndOfAuction="EndOfAuction",e.FeedbackLeft="FeedbackLeft",e.FeedbackReceived="FeedbackReceived",e.FeedbackStarChanged="FeedbackStarChanged",e.FixedPriceEndOfTransaction="FixedPriceEndOfTransaction",e.FixedPriceTransaction="FixedPriceTransaction",e.ItemAddedToWatchList="ItemAddedToWatchList",e.ItemEnded="ItemEnded",e.ItemListed="ItemListed",e.ItemLost="ItemLost",e.ItemMarkedPaid="ItemMarkedPaid",e.ItemMarkedShipped="ItemMarkedShipped",e.ItemRemovedFromWatchList="ItemRemovedFromWatchList",e.ItemSold="ItemSold",e.ItemUnsold="ItemUnsold",e.ItemWon="ItemWon",e.OutBid="OutBid",e.PriceChange="PriceChange",e.SecondChanceOffer="SecondChanceOffer",e.WatchedItemEndingSoon="WatchedItemEndingSoon"}(e||(_o.EventType=e={}))),_o;var e}();var n;Object.defineProperty(e,"EventType",{enumerable:!0,get:function(){return t.EventType}}),function(e){e[e.GetPublicAlerts=0]="GetPublicAlerts",e[e.GetUserAlerts=1]="GetUserAlerts",e[e.Login=2]="Login",e[e.Logout=3]="Logout"}(n||(n={})),e.default=n}(ho)),ho}var Eo,go={};var mo,yo={};var Ro,Ao={};var Io,To,So,Oo={};function requireTraditional$1(){if(To)return fo;To=1;var e,t=fo&&fo.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=fo&&fo.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=fo&&fo.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},function(o){if(o&&o.__esModule)return o;var i={};if(null!=o)for(var d=e(o),f=0;f<d.length;f++)"default"!==d[f]&&t(i,o,d[f]);return n(i,o),i}),i=fo&&fo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fo,"__esModule",{value:!0});const d=requireLib$1(),f=requireErrors(),h=i(requireApi()),_=i(requireClientAlerts()),m=i(function requireFinding(){return Eo||(Eo=1,Object.defineProperty(go,"__esModule",{value:!0}),function(e){e[e.findCompletedItems=0]="findCompletedItems",e[e.findItemsAdvanced=1]="findItemsAdvanced",e[e.findItemsByCategory=2]="findItemsByCategory",e[e.findItemsByKeywords=3]="findItemsByKeywords",e[e.findItemsByProduct=4]="findItemsByProduct",e[e.findItemsIneBayStores=5]="findItemsIneBayStores",e[e.getHistograms=6]="getHistograms",e[e.getSearchKeywordsRecommendation=7]="getSearchKeywordsRecommendation",e[e.getVersion=8]="getVersion"}(e||(e={})),go.default=e),go;var e}()),P=i(function requireMerchandising(){return mo||(mo=1,Object.defineProperty(yo,"__esModule",{value:!0}),function(e){e[e.getMostWatchedItems=0]="getMostWatchedItems",e[e.getRelatedCategoryItems=1]="getRelatedCategoryItems",e[e.getSimilarItems=2]="getSimilarItems",e[e.getVersion=3]="getVersion"}(e||(e={})),yo.default=e),yo;var e}()),U=i(function requireShopping(){return Ro||(Ro=1,Object.defineProperty(Ao,"__esModule",{value:!0}),function(e){e[e.FindProducts=0]="FindProducts",e[e.GetCategoryInfo=1]="GetCategoryInfo",e[e.GeteBayTime=2]="GeteBayTime",e[e.GetItemStatus=3]="GetItemStatus",e[e.GetMultipleItems=4]="GetMultipleItems",e[e.GetShippingCosts=5]="GetShippingCosts",e[e.GetSingleItem=6]="GetSingleItem",e[e.GetUserProfile=7]="GetUserProfile"}(e||(e={})),Ao.default=e),Ao;var e}()),L=i(function requireTrading(){return Io||(Io=1,Object.defineProperty(Oo,"__esModule",{value:!0}),function(e){e[e.AddDispute=0]="AddDispute",e[e.AddDisputeResponse=1]="AddDisputeResponse",e[e.AddFixedPriceItem=2]="AddFixedPriceItem",e[e.AddItem=3]="AddItem",e[e.AddItemFromSellingManagerTemplate=4]="AddItemFromSellingManagerTemplate",e[e.AddItems=5]="AddItems",e[e.AddMemberMessageAAQToPartner=6]="AddMemberMessageAAQToPartner",e[e.AddMemberMessageRTQ=7]="AddMemberMessageRTQ",e[e.AddMemberMessagesAAQToBidder=8]="AddMemberMessagesAAQToBidder",e[e.AddOrder=9]="AddOrder",e[e.AddSecondChanceItem=10]="AddSecondChanceItem",e[e.AddSellingManagerInventoryFolder=11]="AddSellingManagerInventoryFolder",e[e.AddSellingManagerProduct=12]="AddSellingManagerProduct",e[e.AddSellingManagerTemplate=13]="AddSellingManagerTemplate",e[e.AddToItemDescription=14]="AddToItemDescription",e[e.AddToWatchList=15]="AddToWatchList",e[e.AddTransactionConfirmationItem=16]="AddTransactionConfirmationItem",e[e.CompleteSale=17]="CompleteSale",e[e.ConfirmIdentity=18]="ConfirmIdentity",e[e.DeleteMyMessages=19]="DeleteMyMessages",e[e.DeleteSellingManagerInventoryFolder=20]="DeleteSellingManagerInventoryFolder",e[e.DeleteSellingManagerItemAutomationRule=21]="DeleteSellingManagerItemAutomationRule",e[e.DeleteSellingManagerProduct=22]="DeleteSellingManagerProduct",e[e.DeleteSellingManagerTemplate=23]="DeleteSellingManagerTemplate",e[e.DeleteSellingManagerTemplateAutomationRule=24]="DeleteSellingManagerTemplateAutomationRule",e[e.DisableUnpaidItemAssistance=25]="DisableUnpaidItemAssistance",e[e.EndFixedPriceItem=26]="EndFixedPriceItem",e[e.EndItem=27]="EndItem",e[e.EndItems=28]="EndItems",e[e.ExtendSiteHostedPictures=29]="ExtendSiteHostedPictures",e[e.FetchToken=30]="FetchToken",e[e.GetAccount=31]="GetAccount",e[e.GetAdFormatLeads=32]="GetAdFormatLeads",e[e.GetAllBidders=33]="GetAllBidders",e[e.GetApiAccessRules=34]="GetApiAccessRules",e[e.GetBestOffers=35]="GetBestOffers",e[e.GetBidderList=36]="GetBidderList",e[e.GetCategories=37]="GetCategories",e[e.GetCategoryFeatures=38]="GetCategoryFeatures",e[e.GetCategoryMappings=39]="GetCategoryMappings",e[e.GetCategorySpecifics=40]="GetCategorySpecifics",e[e.GetChallengeToken=41]="GetChallengeToken",e[e.GetCharities=42]="GetCharities",e[e.GetClientAlertsAuthToken=43]="GetClientAlertsAuthToken",e[e.GetContextualKeywords=44]="GetContextualKeywords",e[e.GetDescriptionTemplates=45]="GetDescriptionTemplates",e[e.GetDispute=46]="GetDispute",e[e.GeteBayDetails=47]="GeteBayDetails",e[e.GeteBayOfficialTime=48]="GeteBayOfficialTime",e[e.GetFeedback=49]="GetFeedback",e[e.GetItem=50]="GetItem",e[e.GetItemsAwaitingFeedback=51]="GetItemsAwaitingFeedback",e[e.GetItemShipping=52]="GetItemShipping",e[e.GetItemTransactions=53]="GetItemTransactions",e[e.GetMemberMessages=54]="GetMemberMessages",e[e.GetMessagePreferences=55]="GetMessagePreferences",e[e.GetMyeBayBuying=56]="GetMyeBayBuying",e[e.GetMyeBayReminders=57]="GetMyeBayReminders",e[e.GetMyeBaySelling=58]="GetMyeBaySelling",e[e.GetMyMessages=59]="GetMyMessages",e[e.GetNotificationPreferences=60]="GetNotificationPreferences",e[e.GetNotificationsUsage=61]="GetNotificationsUsage",e[e.GetOrders=62]="GetOrders",e[e.GetOrderTransactions=63]="GetOrderTransactions",e[e.GetPromotionalSaleDetails=64]="GetPromotionalSaleDetails",e[e.GetSellerDashboard=65]="GetSellerDashboard",e[e.GetSellerEvents=66]="GetSellerEvents",e[e.GetSellerList=67]="GetSellerList",e[e.GetSellerTransactions=68]="GetSellerTransactions",e[e.GetSellingManagerAlerts=69]="GetSellingManagerAlerts",e[e.GetSellingManagerEmailLog=70]="GetSellingManagerEmailLog",e[e.GetSellingManagerInventory=71]="GetSellingManagerInventory",e[e.GetSellingManagerInventoryFolder=72]="GetSellingManagerInventoryFolder",e[e.GetSellingManagerItemAutomationRule=73]="GetSellingManagerItemAutomationRule",e[e.GetSellingManagerSaleRecord=74]="GetSellingManagerSaleRecord",e[e.GetSellingManagerSoldListings=75]="GetSellingManagerSoldListings",e[e.GetSellingManagerTemplateAutomationRule=76]="GetSellingManagerTemplateAutomationRule",e[e.GetSellingManagerTemplates=77]="GetSellingManagerTemplates",e[e.GetSessionID=78]="GetSessionID",e[e.GetShippingDiscountProfiles=79]="GetShippingDiscountProfiles",e[e.GetStore=80]="GetStore",e[e.GetStoreCategoryUpdateStatus=81]="GetStoreCategoryUpdateStatus",e[e.GetStoreCustomPage=82]="GetStoreCustomPage",e[e.GetStoreOptions=83]="GetStoreOptions",e[e.GetStorePreferences=84]="GetStorePreferences",e[e.GetSuggestedCategories=85]="GetSuggestedCategories",e[e.GetTaxTable=86]="GetTaxTable",e[e.GetTokenStatus=87]="GetTokenStatus",e[e.GetUser=88]="GetUser",e[e.GetUserContactDetails=89]="GetUserContactDetails",e[e.GetUserDisputes=90]="GetUserDisputes",e[e.GetUserPreferences=91]="GetUserPreferences",e[e.GetVeROReasonCodeDetails=92]="GetVeROReasonCodeDetails",e[e.GetVeROReportStatus=93]="GetVeROReportStatus",e[e.LeaveFeedback=94]="LeaveFeedback",e[e.MoveSellingManagerInventoryFolder=95]="MoveSellingManagerInventoryFolder",e[e.PlaceOffer=96]="PlaceOffer",e[e.RelistFixedPriceItem=97]="RelistFixedPriceItem",e[e.RelistItem=98]="RelistItem",e[e.RemoveFromWatchList=99]="RemoveFromWatchList",e[e.RespondToBestOffer=100]="RespondToBestOffer",e[e.RespondToFeedback=101]="RespondToFeedback",e[e.ReviseCheckoutStatus=102]="ReviseCheckoutStatus",e[e.ReviseFixedPriceItem=103]="ReviseFixedPriceItem",e[e.ReviseInventoryStatus=104]="ReviseInventoryStatus",e[e.ReviseItem=105]="ReviseItem",e[e.ReviseMyMessages=106]="ReviseMyMessages",e[e.ReviseMyMessagesFolders=107]="ReviseMyMessagesFolders",e[e.ReviseSellingManagerInventoryFolder=108]="ReviseSellingManagerInventoryFolder",e[e.ReviseSellingManagerProduct=109]="ReviseSellingManagerProduct",e[e.ReviseSellingManagerSaleRecord=110]="ReviseSellingManagerSaleRecord",e[e.ReviseSellingManagerTemplate=111]="ReviseSellingManagerTemplate",e[e.RevokeToken=112]="RevokeToken",e[e.SaveItemToSellingManagerTemplate=113]="SaveItemToSellingManagerTemplate",e[e.SellerReverseDispute=114]="SellerReverseDispute",e[e.SendInvoice=115]="SendInvoice",e[e.SetMessagePreferences=116]="SetMessagePreferences",e[e.SetNotificationPreferences=117]="SetNotificationPreferences",e[e.SetPromotionalSale=118]="SetPromotionalSale",e[e.SetPromotionalSaleListings=119]="SetPromotionalSaleListings",e[e.SetSellingManagerFeedbackOptions=120]="SetSellingManagerFeedbackOptions",e[e.SetSellingManagerItemAutomationRule=121]="SetSellingManagerItemAutomationRule",e[e.SetSellingManagerTemplateAutomationRule=122]="SetSellingManagerTemplateAutomationRule",e[e.SetShippingDiscountProfiles=123]="SetShippingDiscountProfiles",e[e.SetStore=124]="SetStore",e[e.SetStoreCategories=125]="SetStoreCategories",e[e.SetStoreCustomPage=126]="SetStoreCustomPage",e[e.SetStorePreferences=127]="SetStorePreferences",e[e.SetTaxTable=128]="SetTaxTable",e[e.SetUserNotes=129]="SetUserNotes",e[e.SetUserPreferences=130]="SetUserPreferences",e[e.UploadSiteHostedPictures=131]="UploadSiteHostedPictures",e[e.ValidateChallengeInput=132]="ValidateChallengeInput",e[e.ValidateTestUserRegistration=133]="ValidateTestUserRegistration",e[e.VerifyAddFixedPriceItem=134]="VerifyAddFixedPriceItem",e[e.VerifyAddItem=135]="VerifyAddItem",e[e.VerifyAddSecondChanceItem=136]="VerifyAddSecondChanceItem",e[e.VerifyRelistItem=137]="VerifyRelistItem",e[e.VeROReportItems=138]="VeROReportItems"}(e||(e={})),Oo.default=e),Oo;var e}()),k=o(requireXMLRequest());class Traditional extends h.default{constructor(){super(...arguments),this.createXMLRequest=(e,t)=>async(n,o)=>{const i={...k.defaultApiConfig,...o,parseOptions:{...k.defaultApiConfig.parseOptions,...this.config.parseOptions,...o?.parseOptions,processEntities:{...k.defaultApiConfig.parseOptions.processEntities,...this.config.parseOptions?.processEntities,...o?.parseOptions?.processEntities}}};try{return await this.request(i,t,e,n)}catch(o){if(this.shouldRefreshToken(o))return await this.request(i,t,e,n,!0);throw o}}}createTradingApi(){if("number"!=typeof this.config.siteId)throw new Error("siteId is required for trading API.");return this.createTraditionalXMLApi({endpoint:{production:"api.ebay.com",sandbox:"api.sandbox.ebay.com"},path:"/ws/api.dll",calls:L.default,xmlns:"urn:ebay:apis:eBLBaseComponents",headers:(e,t)=>({"X-EBAY-API-CALL-NAME":e,"X-EBAY-API-CERT-NAME":this.config.certId,"X-EBAY-API-APP-NAME":this.config.appId,"X-EBAY-API-DEV-NAME":this.config.devId,"X-EBAY-API-SITEID":this.config.siteId,"X-EBAY-API-COMPATIBILITY-LEVEL":967,...t&&{"X-EBAY-API-IAF-TOKEN":t}})})}createShoppingApi(){if("number"!=typeof this.config.siteId)throw new Error("siteId is required for shopping API.");return this.createTraditionalXMLApi({endpoint:{production:"open.api.ebay.com",sandbox:"open.api.sandbox.ebay.com"},path:"/shopping",xmlns:"urn:ebay:apis:eBLBaseComponents",calls:U.default,headers:(e,t)=>({"X-EBAY-API-CALL-NAME":e,"X-EBAY-API-SITE-ID":this.config.siteId,"X-EBAY-API-VERSION":863,"X-EBAY-API-REQUEST-ENCODING":"xml",...t&&{"X-EBAY-API-IAF-TOKEN":t}})})}createFindingApi(){return this.createTraditionalXMLApi({endpoint:{production:"svcs.ebay.com",sandbox:"svcs.sandbox.ebay.com"},path:"/services/search/FindingService/v1",xmlns:"http://www.ebay.com/marketplace/search/v1/services",calls:m.default,headers:e=>({"X-EBAY-SOA-SECURITY-APPNAME":this.config.appId,"X-EBAY-SOA-OPERATION-NAME":e})})}createClientAlertsApi(){if("number"!=typeof this.config.siteId)throw new Error("siteId is required for client alerts API.");const e={endpoint:{production:"clientalerts.ebay.com",sandbox:"clientalerts.sandbox.ebay.com"},calls:_.default},t=e.endpoint[this.config.sandbox?"sandbox":"production"],paramsSerializer=e=>(0,d.stringify)(e,{allowDots:!0}).replace(/%5B/gi,"(").replace(/%5D/gi,")"),n={appid:this.config.appId,siteid:this.config.siteId,version:643},o={};return Object.keys(e.calls).forEach(e=>{o[e]=async o=>this.req.get(t,{paramsSerializer:{serialize:paramsSerializer},params:{...n,...o,callname:e}})}),o}createMerchandisingApi(){return this.createTraditionalXMLApi({endpoint:{production:"svcs.ebay.com",sandbox:"svcs.sandbox.ebay.com"},path:"/MerchandisingService",xmlns:"http://www.ebay.com/marketplace/services",calls:P.default,headers:e=>({"EBAY-SOA-CONSUMER-ID":this.config.appId,"X-EBAY-SOA-OPERATION-NAME":e})})}createBusinessPolicyManagementApi(){throw new Error("Important! This API is deprecated and will be decommissioned on January 31, 2022. We recommend that you migrate to the fulfillment_policy, payment_policy, and return_policy resources of the Account API to set up and manage all of your fulfillment, payment, and return business policies.")}shouldRefreshToken(e){return!!this.config.autoRefreshToken&&(e.name===f.EBayIAFTokenExpired.name||e.name===f.EBayIAFTokenInvalid.name||e.name===f.EBayAuthTokenIsHardExpired.name||e.name===f.EBayAuthTokenIsInvalid.name)}async request(e,t,n,o,i=!1){try{i&&await this.auth.OAuth2.refreshToken();const d=await this.getConfig(t,n,e),f=new k.default(n,o,d,this.req);return await f.request()}catch(e){(0,f.handleEBayError)(e)}}async getConfig(e,t,n){const o=this.auth.authNAuth.eBayAuthToken,i=!o&&n.useIaf?await this.auth.OAuth2.getAccessToken():null,d=!o&&i,f=this.config.sandbox?e.endpoint.sandbox:e.endpoint.production;return{...n,xmlns:e.xmlns,endpoint:`https://${f}${e.path}`,headers:{...e.headers(t,d?i:null),...n.headers},digitalSignatureHeaders:t=>n.sign?this.getDigitalSignatureHeaders({method:"POST",authority:f,path:e.path},t):{},...d?{}:{eBayAuthToken:o}}}createTraditionalXMLApi(e){const t={};return Object.keys(e.calls).forEach(n=>{t[n]=this.createXMLRequest(n,e)}),t}}return fo.default=Traditional,fo}var bo,Co={},No={};var Po,vo,Do={};function requireEnums(){return vo||(vo=1,function(e){var t=Co&&Co.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=Co&&Co.__exportStar||function(e,n){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(n,o)||t(n,e,o)};Object.defineProperty(e,"__esModule",{value:!0}),n(function requireApiEnums(){return bo||(bo=1,Object.defineProperty(No,"__esModule",{value:!0}),No.MarketplaceId=No.SiteId=void 0,function(e){e[e.EBAY_US=0]="EBAY_US",e[e.EBAY_ENCA=2]="EBAY_ENCA",e[e.EBAY_GB=3]="EBAY_GB",e[e.EBAY_AU=15]="EBAY_AU",e[e.EBAY_AT=16]="EBAY_AT",e[e.EBAY_FRBE=23]="EBAY_FRBE",e[e.EBAY_FR=71]="EBAY_FR",e[e.EBAY_DE=77]="EBAY_DE",e[e.EBAY_MOTOR=100]="EBAY_MOTOR",e[e.EBAY_IT=101]="EBAY_IT",e[e.EBAY_NLBE=123]="EBAY_NLBE",e[e.EBAY_NL=146]="EBAY_NL",e[e.EBAY_ES=186]="EBAY_ES",e[e.EBAY_CH=193]="EBAY_CH",e[e.EBAY_HK=201]="EBAY_HK",e[e.EBAY_IN=203]="EBAY_IN",e[e.EBAY_IE=205]="EBAY_IE",e[e.EBAY_MY=207]="EBAY_MY",e[e.EBAY_FRCA=210]="EBAY_FRCA",e[e.EBAY_PH=211]="EBAY_PH",e[e.EBAY_PL=212]="EBAY_PL",e[e.EBAY_SG=216]="EBAY_SG"}(e||(No.SiteId=e={})),function(e){e.EBAY_US="EBAY_US",e.EBAY_AT="EBAY_AT",e.EBAY_AU="EBAY_AU",e.EBAY_BE="EBAY_BE",e.EBAY_CA="EBAY_CA",e.EBAY_CH="EBAY_CH",e.EBAY_DE="EBAY_DE",e.EBAY_ES="EBAY_ES",e.EBAY_FR="EBAY_FR",e.EBAY_GB="EBAY_GB",e.EBAY_HK="EBAY_HK",e.EBAY_IE="EBAY_IE",e.EBAY_IN="EBAY_IN",e.EBAY_IT="EBAY_IT",e.EBAY_MY="EBAY_MY",e.EBAY_NL="EBAY_NL",e.EBAY_PH="EBAY_PH",e.EBAY_PL="EBAY_PL",e.EBAY_SG="EBAY_SG",e.EBAY_TH="EBAY_TH",e.EBAY_TW="EBAY_TW",e.EBAY_VN="EBAY_VN",e.EBAY_MOTORS_US="EBAY_MOTORS_US"}(t||(No.MarketplaceId=t={}))),No;var e,t}(),e),n(function requireRestfulEnums(){return Po||(Po=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.PackageType=Do.WeightUnitOfMeasure=Do.LengthUnitOfMeasure=Do.CancelReason=Do.ReasonForRefund=Do.RegionType=Do.ReturnShippingCostPayer=Do.ReturnMethod=Do.RefundMethod=Do.Metric=Do.FormatType=Do.Marketplace=Do.LocaleEnum=Do.Condition=Do.ContentLanguage=Do.Locale=Do.CurrencyCode=Do.CountryCode=Do.RecipientAccountReferenceType=Do.PaymentMethodType=Do.PaymentsProgramStatus=Do.PaymentsProgramType=Do.ShippingCostType=Do.ShippingOptionType=Do.TimeDurationUnit=Do.StoreType=Do.ActivityOption=Do.RefundFeeType=Do.FilePurpose=Do.ReturnState=Do.ReturnCountFilter=Do.CategoryType=Do.Decision=Do.EscalateReason=Do.GetReturnFieldGroupEnum=Do.ReturnType=Do.RequestType=Do.ReturnReason=Do.ShippingCarrier=Do.InquiryStatusFilter=Do.CaseSearchFieldGroup=Do.CaseStatusFilter=Do.InquirySearchFieldGroup=Do.UserRoleFilter=void 0,function(e){e.BUYER="BUYER",e.SELLER="SELLER"}(e||(Do.UserRoleFilter=e={})),function(e){e.DEFAULT="DEFAULT",e.SUMMARY="SUMMARY"}(t||(Do.InquirySearchFieldGroup=t={})),function(e){e.CLOSED="CLOSED",e.CS_CLOSED="CS_CLOSED",e.ON_HOLD="ON_HOLD",e.OPEN="OPEN",e.OTHER="OTHER",e.REFUND_AGREED_BUT_FAILED="REFUND_AGREED_BUT_FAILED",e.WAITING_CS="WAITING_CS",e.WAITING_DELIVERY="WAITING_DELIVERY"}(n||(Do.CaseStatusFilter=n={})),function(e){e.DEFAULT="DEFAULT",e.SUMMARY="SUMMARY"}(o||(Do.CaseSearchFieldGroup=o={})),function(e){e.CLOSED="CLOSED",e.CLOSED_WITH_ESCALATION="CLOSED_WITH_ESCALATION",e.CS_CLOSED="CS_CLOSED",e.OPEN="OPEN",e.OTHER="OTHER",e.PENDING="PENDING",e.WAITING_BUYER_RESPONSE="WAITING_BUYER_RESPONSE",e.WAITING_SELLER_RESPONSE="WAITING_SELLER_RESPONSE"}(i||(Do.InquiryStatusFilter=i={})),function(e){e.AUSTRALIA_POST="AUSTRALIA_POST",e.BARTOLINI="BARTOLINI",e.CANADA_POST="CANADA_POST",e.COLISSIMO="COLISSIMO",e.COLLECT_PLUS="COLLECT_PLUS",e.CORREOS="CORREOS",e.DEUTSCHE_POST="DEUTSCHE_POST",e.DHL="DHL",e.FEDEX="FEDEX",e.HERMES="HERMES",e.LA_POSTE="LA_POSTE",e.MONDIAL_RELAY="MONDIAL_RELAY",e.MRW="MRW",e.NEXIVE="NEXIVE",e.OTHER="OTHER",e.PARCEL_FORCE="PARCEL_FORCE",e.POSTE="POSTE",e.ROYAL_MAIL="ROYAL_MAIL",e.SEUR="SEUR",e.UNKNOWN="UNKNOWN",e.UPS="UPS",e.USPS="USPS"}(d||(Do.ShippingCarrier=d={})),function(e){e.ARRIVED_DAMAGED="ARRIVED_DAMAGED",e.ARRIVED_LATE="ARRIVED_LATE",e.BUYER_CANCEL_ORDER="BUYER_CANCEL_ORDER",e.BUYER_NO_SHOW="BUYER_NO_SHOW",e.BUYER_NOT_SCHEDULED="BUYER_NOT_SCHEDULED",e.BUYER_REFUSED_TO_PICKUP="BUYER_REFUSED_TO_PICKUP",e.DEFECTIVE_ITEM="DEFECTIVE_ITEM",e.DIFFERENT_FROM_LISTING="DIFFERENT_FROM_LISTING",e.EXPIRED_ITEM="EXPIRED_ITEM",e.FAKE_OR_COUNTERFEIT="FAKE_OR_COUNTERFEIT",e.FOUND_BETTER_PRICE="FOUND_BETTER_PRICE",e.IN_STORE_RETURN="IN_STORE_RETURN",e.MISSING_PARTS="MISSING_PARTS",e.NO_LONGER_NEED_ITEM="NO_LONGER_NEED_ITEM",e.NO_REASON="NO_REASON",e.NOT_AS_DESCRIBED="NOT_AS_DESCRIBED",e.ORDERED_ACCIDENTALLY="ORDERED_ACCIDENTALLY",e.ORDERED_DIFFERENT_ITEM="ORDERED_DIFFERENT_ITEM",e.ORDERED_WRONG_ITEM="ORDERED_WRONG_ITEM",e.OTHER="OTHER",e.OUT_OF_STOCK="OUT_OF_STOCK",e.RETURNING_GIFT="RETURNING_GIFT",e.VALET_DELIVERY_ISSUES="VALET_DELIVERY_ISSUES",e.VALET_UNAVAILABLE="VALET_UNAVAILABLE",e.WRONG_SIZE="WRONG_SIZE"}(f||(Do.ReturnReason=f={})),function(e){e.CREATE="CREATE",e.REQUEST="REQUEST",e.UNKNOWN="UNKNOWN"}(h||(Do.RequestType=h={})),function(e){e.EXCHANGE="EXCHANGE",e.MONEY_BACK="MONEY_BACK",e.REPLACEMENT="REPLACEMENT",e.UNKNOWN="UNKNOWN"}(_||(Do.ReturnType=_={})),function(e){e.FULL="FULL",e.NONE="NONE",e.SUMMARY="SUMMARY"}(m||(Do.GetReturnFieldGroupEnum=m={})),function(e){e.BUYER_NORESPONSE="BUYER_NORESPONSE",e.BUYER_RETURNED_WRONG_ITEM="BUYER_RETURNED_WRONG_ITEM",e.DISAGREE_WITH_RETURN_REASON="DISAGREE_WITH_RETURN_REASON",e.ITEM_NOT_RECEIVED="ITEM_NOT_RECEIVED",e.ITEM_RECEIVED_IN_DIFFERENT_CONDITION="ITEM_RECEIVED_IN_DIFFERENT_CONDITION",e.NEW_ITEM_NOT_RECEIVED="NEW_ITEM_NOT_RECEIVED",e.NO_REFUND_FOR_RETURN_SHIPPING="NO_REFUND_FOR_RETURN_SHIPPING",e.NO_REFUND_RECEIVED="NO_REFUND_RECEIVED",e.OTHER="OTHER",e.RECEIVED_WRONG_ITEM="RECEIVED_WRONG_ITEM",e.SELLER_NO_RESPONSE="SELLER_NO_RESPONSE",e.TROUBLE_COMMUNICATION_WITH_BUYER="TROUBLE_COMMUNICATION_WITH_BUYER",e.TROUBLE_COMMUNICATION_WITH_SELLER="TROUBLE_COMMUNICATION_WITH_SELLER"}(P||(Do.EscalateReason=P={})),function(e){e.ACCEPT_PARTIAL_REFUND="ACCEPT_PARTIAL_REFUND",e.ACCEPT_REPLACEMENT_OFFER="ACCEPT_REPLACEMENT_OFFER",e.APPROVE="APPROVE",e.APPROVE_WITHOUT_EBAY_LABEL="APPROVE_WITHOUT_EBAY_LABEL",e.DECLINE="DECLINE",e.DECLINE_PARTIAL_REFUND="DECLINE_PARTIAL_REFUND",e.DECLINE_REPLACEMENT_OFFER="DECLINE_REPLACEMENT_OFFER",e.OFFER_PARTIAL_REFUND="OFFER_PARTIAL_REFUND",e.OFFER_REPLACEMENT="OFFER_REPLACEMENT",e.OFFER_RETURN="OFFER_RETURN",e.OFFER_RETURN_WITHOUT_LABEL="OFFER_RETURN_WITHOUT_LABEL",e.PROVIDE_RMA="PROVIDE_RMA",e.UNKNOWN="UNKNOWN"}(U||(Do.Decision=U={})),function(e){e.MOTORS_VEHICLES="MOTORS_VEHICLES",e.ALL_EXCLUDING_MOTORS_VEHICLES="ALL_EXCLUDING_MOTORS_VEHICLES"}(L||(Do.CategoryType=L={})),function(e){e.ALL_OPEN="ALL_OPEN",e.ALL_OPEN_REPLACEMENT="ALL_OPEN_REPLACEMENT",e.ALL_OPEN_RETURN="ALL_OPEN_RETURN",e.CLOSED="CLOSED",e.EBAY_PLUS="EBAY_PLUS",e.ITEM_DELIVERED="ITEM_DELIVERED",e.ITEM_SHIPPED="ITEM_SHIPPED",e.RETURN_STARTED="RETURN_STARTED",e.SELLER_ACTION_DUE="SELLER_ACTION_DUE",e.SELLER_ACTION_OVERDUE="SELLER_ACTION_OVERDUE",e.SELLER_NO_ACTION="SELLER_NO_ACTION",e.UNKNOWN="UNKNOWN"}(k||(Do.ReturnCountFilter=k={})),function(e){e.AUTO_REFUND_INITIATED="AUTO_REFUND_INITIATED",e.CLOSED="CLOSED",e.INITIAL="INITIAL",e.ITEM_DELIVERED="ITEM_DELIVERED",e.ITEM_KEPT="ITEM_KEPT",e.ITEM_READY_TO_SHIP="ITEM_READY_TO_SHIP",e.ITEM_SHIPPED="ITEM_SHIPPED",e.LESS_THAN_A_FULL_REFUND_ISSUED="LESS_THAN_A_FULL_REFUND_ISSUED",e.PARTIAL_REFUND_AS_PAYOUT_INITIATED="PARTIAL_REFUND_AS_PAYOUT_INITIATED",e.PARTIAL_REFUND_DECLINED="PARTIAL_REFUND_DECLINED",e.PARTIAL_REFUND_FAILED="PARTIAL_REFUND_FAILED",e.PARTIAL_REFUND_INITIATED="PARTIAL_REFUND_INITIATED",e.PARTIAL_REFUND_NON_PAYPAL_INITIATED="PARTIAL_REFUND_NON_PAYPAL_INITIATED",e.PARTIAL_REFUND_REQUESTED="PARTIAL_REFUND_REQUESTED",e.PARTIAL_REFUNDED="PARTIAL_REFUNDED",e.PAYOUT_INITIATED="PAYOUT_INITIATED",e.REFUND_AS_PAYOUT_INITIATED="REFUND_AS_PAYOUT_INITIATED",e.REFUND_FAILED="REFUND_FAILED",e.REFUND_INITIATED="REFUND_INITIATED",e.REFUND_SENT_PENDING_CONFIRMATION="REFUND_SENT_PENDING_CONFIRMATION",e.REFUND_TIMEOUT="REFUND_TIMEOUT",e.REPLACED="REPLACED",e.REPLACEMENT_CLOSED="REPLACEMENT_CLOSED",e.REPLACEMENT_DELIVERED="REPLACEMENT_DELIVERED",e.REPLACEMENT_LABEL_PENDING="REPLACEMENT_LABEL_PENDING",e.REPLACEMENT_LABEL_PENDING_TIMEOUT="REPLACEMENT_LABEL_PENDING_TIMEOUT",e.REPLACEMENT_LABEL_REQUESTED="REPLACEMENT_LABEL_REQUESTED",e.REPLACEMENT_LABEL_REQUESTED_TIMEOUT="REPLACEMENT_LABEL_REQUESTED_TIMEOUT",e.REPLACEMENT_OFFER_PENDING="REPLACEMENT_OFFER_PENDING",e.REPLACEMENT_REQUEST_TIMEOUT="REPLACEMENT_REQUEST_TIMEOUT",e.REPLACEMENT_REQUESTED="REPLACEMENT_REQUESTED",e.REPLACEMENT_RMA_PENDING="REPLACEMENT_RMA_PENDING",e.REPLACEMENT_SHIPPED="REPLACEMENT_SHIPPED",e.REPLACEMENT_STARTED="REPLACEMENT_STARTED",e.RETURN_LABEL_PENDING="RETURN_LABEL_PENDING",e.RETURN_LABEL_PENDING_TIMEOUT="RETURN_LABEL_PENDING_TIMEOUT",e.RETURN_LABEL_REQUESTED="RETURN_LABEL_REQUESTED",e.RETURN_LABEL_REQUESTED_TIMEOUT="RETURN_LABEL_REQUESTED_TIMEOUT",e.RETURN_REJECTED="RETURN_REJECTED",e.RETURN_REQUEST_TIMEOUT="RETURN_REQUEST_TIMEOUT",e.RETURN_REQUESTED="RETURN_REQUESTED",e.RMA_PENDING="RMA_PENDING",e.UNKNOWN="UNKNOWN"}(j||(Do.ReturnState=j={})),function(e){e.ITEM_RELATED="ITEM_RELATED",e.LABEL_RELATED="LABEL_RELATED",e.REFUND_RELATED="REFUND_RELATED",e.UNKNOWN="UNKNOWN"}(Y||(Do.FilePurpose=Y={})),function(e){e.DOMESTIC_SHIPPING="DOMESTIC_SHIPPING",e.IMPORT_CHARGE="IMPORT_CHARGE",e.INTERNATIONAL_SHIPPING="INTERNATIONAL_SHIPPING",e.ITEM_IMPORT_TAX="ITEM_IMPORT_TAX",e.ITEM_TAX="ITEM_TAX",e.ORDER_ADJUSTMENT="ORDER_ADJUSTMENT",e.ORIGINAL_SHIPPING="ORIGINAL_SHIPPING",e.OTHER="OTHER",e.PURCHASE_PRICE="PURCHASE_PRICE",e.REFUND_FROM_PAYPAL="REFUND_FROM_PAYPAL",e.RETURN_SHIPPING="RETURN_SHIPPING",e.SHIPPING_IMPORT_TAX="SHIPPING_IMPORT_TAX",e.SHIPPING_TAX="SHIPPING_TAX"}(H||(Do.RefundFeeType=H={})),function(e){e.AUTO_APPROVE_REMORSE="AUTO_APPROVE_REMORSE",e.BUYER_ACCEPT_REPLACEMENT_OFFER="BUYER_ACCEPT_REPLACEMENT_OFFER",e.BUYER_ACCEPTS_NON_PAYPAL_PARTIAL_REFUND="BUYER_ACCEPTS_NON_PAYPAL_PARTIAL_REFUND",e.BUYER_ACCEPTS_PARTIAL_REFUND="BUYER_ACCEPTS_PARTIAL_REFUND",e.BUYER_CLOSE_RETURN="BUYER_CLOSE_RETURN",e.BUYER_CREATE_RETURN="BUYER_CREATE_RETURN",e.BUYER_DECLINE_PARTIAL_REFUND="BUYER_DECLINE_PARTIAL_REFUND",e.BUYER_DECLINE_REPLACEMENT_OFFER="BUYER_DECLINE_REPLACEMENT_OFFER",e.BUYER_ESCALATE="BUYER_ESCALATE",e.BUYER_MARK_AS_RECEIVED="BUYER_MARK_AS_RECEIVED",e.BUYER_MARK_REFUND_RECEIVED="BUYER_MARK_REFUND_RECEIVED",e.BUYER_MARK_RETURN_SHIPPED="BUYER_MARK_RETURN_SHIPPED",e.BUYER_PRINT_SHIPPING_LABEL="BUYER_PRINT_SHIPPING_LABEL",e.BUYER_PROVIDE_LABEL="BUYER_PROVIDE_LABEL",e.BUYER_PROVIDE_TRACKING_INFO="BUYER_PROVIDE_TRACKING_INFO",e.BUYER_SEND_MESSAGE="BUYER_SEND_MESSAGE",e.BUYER_UPDATE_TRACKING="BUYER_UPDATE_TRACKING",e.BUYER_VOID_LABEL="BUYER_VOID_LABEL",e.CHARGEBACK_OPEN="CHARGEBACK_OPEN",e.DELETE_FILE="DELETE_FILE",e.EMAIL_SHIPPING_LABEL="EMAIL_SHIPPING_LABEL",e.EXTERNAL_CLAIM_OPENED="EXTERNAL_CLAIM_OPENED",e.GENERAL_TIME_OUT="GENERAL_TIME_OUT",e.NOTIFIED_DELIVERED="NOTIFIED_DELIVERED",e.NOTIFIED_SHIPPED="NOTIFIED_SHIPPED",e.NOTIFY_REPLACEMENT_DELIVERED="NOTIFY_REPLACEMENT_DELIVERED",e.NOTIFY_REPLACEMENT_SHIPPED="NOTIFY_REPLACEMENT_SHIPPED",e.NOTIFY_UPDATE_REFUND_STATUS="NOTIFY_UPDATE_REFUND_STATUS",e.OTHER="OTHER",e.REMINDER_BUYER_TO_RESPOND_RE_OFFER="REMINDER_BUYER_TO_RESPOND_RE_OFFER",e.REMINDER_BUYER_TO_SHIP="REMINDER_BUYER_TO_SHIP",e.REMINDER_FOR_REFUND="REMINDER_FOR_REFUND",e.REMINDER_FOR_REFUND_NO_SHIPPING="REMINDER_FOR_REFUND_NO_SHIPPING",e.REMINDER_FOR_RMA="REMINDER_FOR_RMA",e.REMINDER_FOR_SHIPPING="REMINDER_FOR_SHIPPING",e.REMINDER_SELLER_TO_RESPOND="REMINDER_SELLER_TO_RESPOND",e.REMINDER_SELLER_TO_SHIP="REMINDER_SELLER_TO_SHIP",e.SELLER_APPROVE_REQUEST="SELLER_APPROVE_REQUEST",e.SELLER_DECLINE_REQUEST="SELLER_DECLINE_REQUEST",e.SELLER_ESCALATE="SELLER_ESCALATE",e.SELLER_ISSUE_REFUND="SELLER_ISSUE_REFUND",e.SELLER_ISSUE_STORE_CREDIT_REFUND="SELLER_ISSUE_STORE_CREDIT_REFUND",e.SELLER_MARK_AS_RECEIVED="SELLER_MARK_AS_RECEIVED",e.SELLER_MARK_REFUND_SENT="SELLER_MARK_REFUND_SENT",e.SELLER_MARK_REPLACEMENT_SHIPPED="SELLER_MARK_REPLACEMENT_SHIPPED",e.SELLER_OFFER_PARTIAL_REFUND="SELLER_OFFER_PARTIAL_REFUND",e.SELLER_OFFER_REPLACEMENT="SELLER_OFFER_REPLACEMENT",e.SELLER_OFFER_RETURNS="SELLER_OFFER_RETURNS",e.SELLER_PRINT_SHIPPING_LABEL="SELLER_PRINT_SHIPPING_LABEL",e.SELLER_PROVIDE_LABEL="SELLER_PROVIDE_LABEL",e.SELLER_PROVIDE_RMA="SELLER_PROVIDE_RMA",e.SELLER_PROVIDE_TRACKING_INFO="SELLER_PROVIDE_TRACKING_INFO",e.SELLER_RETRY_REFUND="SELLER_RETRY_REFUND",e.SELLER_SEND_MESSAGE="SELLER_SEND_MESSAGE",e.SELLER_UPDATE_TRACKING="SELLER_UPDATE_TRACKING",e.SELLER_VOID_LABEL="SELLER_VOID_LABEL",e.SUBMIT_FILE="SUBMIT_FILE",e.SYSTEM_BUYER_PARTIAL_REFUND_AS_PAYOUT="SYSTEM_BUYER_PARTIAL_REFUND_AS_PAYOUT",e.SYSTEM_BUYER_REFUND_AS_PAYOUT="SYSTEM_BUYER_REFUND_AS_PAYOUT",e.SYSTEM_CLOSE_RETURN="SYSTEM_CLOSE_RETURN",e.SYSTEM_CREATE_RETURN="SYSTEM_CREATE_RETURN",e.SYSTEM_IMMEDIATE_REFUND="SYSTEM_IMMEDIATE_REFUND",e.TIME_OUT_AFTER_DECLINE="TIME_OUT_AFTER_DECLINE",e.TIME_OUT_AFTER_REFUNDED="TIME_OUT_AFTER_REFUNDED",e.TIME_OUT_AFTER_REFUNDED_AS_PAYOUT="TIME_OUT_AFTER_REFUNDED_AS_PAYOUT",e.TIME_OUT_AFTER_REPLACED="TIME_OUT_AFTER_REPLACED",e.TIME_OUT_FOR_AUTHORIZE="TIME_OUT_FOR_AUTHORIZE",e.TIME_OUT_FOR_AUTO_REFUND="TIME_OUT_FOR_AUTO_REFUND",e.TIME_OUT_FOR_BUYER_RECOUP="TIME_OUT_FOR_BUYER_RECOUP",e.TIME_OUT_FOR_DELIVERY="TIME_OUT_FOR_DELIVERY",e.TIME_OUT_FOR_ESCALATION="TIME_OUT_FOR_ESCALATION",e.TIME_OUT_FOR_ESCALATION_AFTER_SMIR="TIME_OUT_FOR_ESCALATION_AFTER_SMIR",e.TIME_OUT_FOR_ITEM_REPLACED="TIME_OUT_FOR_ITEM_REPLACED",e.TIME_OUT_FOR_MARK_REFUND_RECEIVED="TIME_OUT_FOR_MARK_REFUND_RECEIVED",e.TIME_OUT_FOR_MARK_REFUND_SENT="TIME_OUT_FOR_MARK_REFUND_SENT",e.TIME_OUT_FOR_MASS_PAYOUT="TIME_OUT_FOR_MASS_PAYOUT",e.TIME_OUT_FOR_PAYOUT="TIME_OUT_FOR_PAYOUT",e.TIME_OUT_FOR_PROVIDE_LABEL="TIME_OUT_FOR_PROVIDE_LABEL",e.TIME_OUT_FOR_REFUND="TIME_OUT_FOR_REFUND",e.TIME_OUT_FOR_REPLACEMENT_DELIVERED_ITEM_NOT_RETURNED="TIME_OUT_FOR_REPLACEMENT_DELIVERED_ITEM_NOT_RETURNED",e.TIME_OUT_FOR_REPLACEMENT_SHIPPED="TIME_OUT_FOR_REPLACEMENT_SHIPPED",e.TIME_OUT_FOR_RETURN_SHIPPING="TIME_OUT_FOR_RETURN_SHIPPING",e.TIME_OUT_FOR_RMA="TIME_OUT_FOR_RMA",e.TIME_OUT_FOR_SELLER_INVOICE="TIME_OUT_FOR_SELLER_INVOICE",e.TIME_OUT_FOR_SELLER_PAYOUT="TIME_OUT_FOR_SELLER_PAYOUT",e.TIME_OUT_FOR_SHIPMENT_TRACKING="TIME_OUT_FOR_SHIPMENT_TRACKING",e.TIME_OUT_FOR_SHIPPING="TIME_OUT_FOR_SHIPPING",e.TIME_OUT_FOR_SHIPPING_SYSTEM_CLOSE="TIME_OUT_FOR_SHIPPING_SYSTEM_CLOSE"}(V||(Do.ActivityOption=V={})),function(e){e.STORE="STORE",e.WAREHOUSE="WAREHOUSE"}(K||(Do.StoreType=K={})),function(e){e.YEAR="YEAR",e.MONTH="MONTH",e.DAY="DAY",e.HOUR="HOUR",e.CALENDAR_DAY="CALENDAR_DAY",e.BUSINESS_DAY="BUSINESS_DAY",e.MINUTE="MINUTE",e.SECOND="SECOND",e.MILLISECOND="MILLISECOND"}(W||(Do.TimeDurationUnit=W={})),function(e){e.DOMESTIC="DOMESTIC",e.INTERNATIONAL="INTERNATIONAL"}(X||(Do.ShippingOptionType=X={})),function(e){e.CALCULATED="CALCULATED",e.FLAT_RATE="FLAT_RATE",e.NOT_SPECIFIED="NOT_SPECIFIED"}(J||(Do.ShippingCostType=J={})),function(e){e.EBAY_PAYMENTS="EBAY_PAYMENTS"}(Q||(Do.PaymentsProgramType=Q={})),function(e){e.OPTED_IN="OPTED_IN",e.NOT_OPTED_IN="NOT_OPTED_IN"}(Z||(Do.PaymentsProgramStatus=Z={})),function(e){e.CASH_IN_PERSON="CASH_IN_PERSON",e.CASH_ON_DELIVERY="CASH_ON_DELIVERY",e.CASH_ON_PICKUP="CASH_ON_PICKUP",e.CASHIER_CHECK="CASHIER_CHECK",e.CREDIT_CARD="CREDIT_CARD",e.ESCROW="ESCROW",e.INTEGRATED_MERCHANT_CREDIT_CARD="INTEGRATED_MERCHANT_CREDIT_CARD",e.LOAN_CHECK="LOAN_CHECK",e.MONEY_ORDER="MONEY_ORDER",e.PAISA_PAY="PAISA_PAY",e.PAISA_PAY_ESCROW="PAISA_PAY_ESCROW",e.PAISA_PAY_ESCROW_EMI="PAISA_PAY_ESCROW_EMI",e.PAYPAL="PAYPAL",e.PERSONAL_CHECK="PERSONAL_CHECK",e.OTHER="OTHER"}(ee||(Do.PaymentMethodType=ee={})),function(e){e.PAYPAL_EMAIL="PAYPAL_EMAIL"}(te||(Do.RecipientAccountReferenceType=te={})),function(e){e.AD="AD",e.AE="AE",e.AF="AF",e.AG="AG",e.AI="AI",e.AL="AL",e.AM="AM",e.AN="AN",e.AO="AO",e.AQ="AQ",e.AR="AR",e.AS="AS",e.AT="AT",e.AU="AU",e.AW="AW",e.AX="AX",e.AZ="AZ",e.BA="BA",e.BB="BB",e.BD="BD",e.BE="BE",e.BF="BF",e.BG="BG",e.BH="BH",e.BI="BI",e.BJ="BJ",e.BL="BL",e.BM="BM",e.BN="BN",e.BO="BO",e.BQ="BQ",e.BR="BR",e.BS="BS",e.BT="BT",e.BV="BV",e.BW="BW",e.BY="BY",e.BZ="BZ",e.CA="CA",e.CC="CC",e.CD="CD",e.CF="CF",e.CG="CG",e.CH="CH",e.CI="CI",e.CK="CK",e.CL="CL",e.CM="CM",e.CN="CN",e.CO="CO",e.CR="CR",e.CU="CU",e.CV="CV",e.CW="CW",e.CX="CX",e.CY="CY",e.CZ="CZ",e.DE="DE",e.DJ="DJ",e.DK="DK",e.DM="DM",e.DO="DO",e.DZ="DZ",e.EC="EC",e.EE="EE",e.EG="EG",e.EH="EH",e.ER="ER",e.ES="ES",e.ET="ET",e.FI="FI",e.FJ="FJ",e.FK="FK",e.FM="FM",e.FO="FO",e.FR="FR",e.GA="GA",e.GB="GB",e.GD="GD",e.GE="GE",e.GF="GF",e.GG="GG",e.GH="GH",e.GI="GI",e.GL="GL",e.GM="GM",e.GN="GN",e.GP="GP",e.GQ="GQ",e.GR="GR",e.GS="GS",e.GT="GT",e.GU="GU",e.GW="GW",e.GY="GY",e.HK="HK",e.HM="HM",e.HN="HN",e.HR="HR",e.HT="HT",e.HU="HU",e.ID="ID",e.IE="IE",e.IL="IL",e.IM="IM",e.IN="IN",e.IO="IO",e.IQ="IQ",e.IR="IR",e.IS="IS",e.IT="IT",e.JE="JE",e.JM="JM",e.JO="JO",e.JP="JP",e.KE="KE",e.KG="KG",e.KH="KH",e.KI="KI",e.KM="KM",e.KN="KN",e.KP="KP",e.KR="KR",e.KW="KW",e.KY="KY",e.KZ="KZ",e.LA="LA",e.LB="LB",e.LC="LC",e.LI="LI",e.LK="LK",e.LR="LR",e.LS="LS",e.LT="LT",e.LU="LU",e.LV="LV",e.LY="LY",e.MA="MA",e.MC="MC",e.MD="MD",e.ME="ME",e.MF="MF",e.MG="MG",e.MH="MH",e.MK="MK",e.ML="ML",e.MM="MM",e.MN="MN",e.MO="MO",e.MP="MP",e.MQ="MQ",e.MR="MR",e.MS="MS",e.MT="MT",e.MU="MU",e.MV="MV",e.MW="MW",e.MX="MX",e.MY="MY",e.MZ="MZ",e.NA="NA",e.NC="NC",e.NE="NE",e.NF="NF",e.NG="NG",e.NI="NI",e.NL="NL",e.NO="NO",e.NP="NP",e.NR="NR",e.NU="NU",e.NZ="NZ",e.OM="OM",e.PA="PA",e.PE="PE",e.PF="PF",e.PG="PG",e.PH="PH",e.PK="PK",e.PL="PL",e.PM="PM",e.PN="PN",e.PR="PR",e.PS="PS",e.PT="PT",e.PW="PW",e.PY="PY",e.QA="QA",e.RE="RE",e.RO="RO",e.RS="RS",e.RU="RU",e.RW="RW",e.SA="SA",e.SB="SB",e.SC="SC",e.SD="SD",e.SE="SE",e.SG="SG",e.SH="SH",e.SI="SI",e.SJ="SJ",e.SK="SK",e.SL="SL",e.SM="SM",e.SN="SN",e.SO="SO",e.SR="SR",e.ST="ST",e.SV="SV",e.SX="SX",e.SY="SY",e.SZ="SZ",e.TC="TC",e.TD="TD",e.TF="TF",e.TG="TG",e.TH="TH",e.TJ="TJ",e.TK="TK",e.TL="TL",e.TM="TM",e.TN="TN",e.TO="TO",e.TR="TR",e.TT="TT",e.TV="TV",e.TW="TW",e.TZ="TZ",e.UA="UA",e.UG="UG",e.UM="UM",e.US="US",e.UY="UY",e.UZ="UZ",e.VA="VA",e.VC="VC",e.VE="VE",e.VG="VG",e.VI="VI",e.VN="VN",e.VU="VU",e.WF="WF",e.WS="WS",e.YE="YE",e.YT="YT",e.ZA="ZA",e.ZM="ZM",e.ZW="ZW"}(re||(Do.CountryCode=re={})),function(e){e.AED="AED",e.AFN="AFN",e.ALL="ALL",e.AMD="AMD",e.ANG="ANG",e.AOA="AOA",e.ARS="ARS",e.AUD="AUD",e.AWG="AWG",e.AZN="AZN",e.BAM="BAM",e.BBD="BBD",e.BDT="BDT",e.BGN="BGN",e.BHD="BHD",e.BIF="BIF",e.BMD="BMD",e.BND="BND",e.BOB="BOB",e.BRL="BRL",e.BSD="BSD",e.BTN="BTN",e.BWP="BWP",e.BYR="BYR",e.BZD="BZD",e.CAD="CAD",e.CDF="CDF",e.CHF="CHF",e.CLP="CLP",e.CNY="CNY",e.COP="COP",e.CRC="CRC",e.CUP="CUP",e.CVE="CVE",e.CZK="CZK",e.DJF="DJF",e.DKK="DKK",e.DOP="DOP",e.DZD="DZD",e.EGP="EGP",e.ERN="ERN",e.ETB="ETB",e.EUR="EUR",e.FJD="FJD",e.FKP="FKP",e.GBP="GBP",e.GEL="GEL",e.GHS="GHS",e.GIP="GIP",e.GMD="GMD",e.GNF="GNF",e.GTQ="GTQ",e.GYD="GYD",e.HKD="HKD",e.HNL="HNL",e.HRK="HRK",e.HTG="HTG",e.HUF="HUF",e.IDR="IDR",e.ILS="ILS",e.INR="INR",e.IQD="IQD",e.IRR="IRR",e.ISK="ISK",e.JMD="JMD",e.JOD="JOD",e.JPY="JPY",e.KES="KES",e.KGS="KGS",e.KHR="KHR",e.KMF="KMF",e.KPW="KPW",e.KRW="KRW",e.KWD="KWD",e.KYD="KYD",e.KZT="KZT",e.LAK="LAK",e.LBP="LBP",e.LKR="LKR",e.LRD="LRD",e.LSL="LSL",e.LTL="LTL",e.LYD="LYD",e.MAD="MAD",e.MDL="MDL",e.MGA="MGA",e.MKD="MKD",e.MMK="MMK",e.MNT="MNT",e.MOP="MOP",e.MRO="MRO",e.MUR="MUR",e.MVR="MVR",e.MWK="MWK",e.MXN="MXN",e.MYR="MYR",e.MZN="MZN",e.NAD="NAD",e.NGN="NGN",e.NIO="NIO",e.NOK="NOK",e.NPR="NPR",e.NZD="NZD",e.OMR="OMR",e.PAB="PAB",e.PEN="PEN",e.PGK="PGK",e.PHP="PHP",e.PKR="PKR",e.PLN="PLN",e.PYG="PYG",e.QAR="QAR",e.RON="RON",e.RSD="RSD",e.RUB="RUB",e.RWF="RWF",e.SAR="SAR",e.SBD="SBD",e.SCR="SCR",e.SDG="SDG",e.SEK="SEK",e.SGD="SGD",e.SHP="SHP",e.SLL="SLL",e.SOS="SOS",e.SRD="SRD",e.STD="STD",e.SYP="SYP",e.SZL="SZL",e.THB="THB",e.TJS="TJS",e.TMT="TMT",e.TND="TND",e.TOP="TOP",e.TRY="TRY",e.TTD="TTD",e.TWD="TWD",e.TZS="TZS",e.UAH="UAH",e.UGX="UGX",e.USD="USD",e.UYU="UYU",e.UZS="UZS",e.VEF="VEF",e.VND="VND",e.VUV="VUV",e.WST="WST",e.XAF="XAF",e.XCD="XCD",e.XOF="XOF",e.XPF="XPF",e.YER="YER",e.ZAR="ZAR",e.ZMW="ZMW",e.ZWL="ZWL"}(ne||(Do.CurrencyCode=ne={})),function(e){e.de_AT="de-AT",e.de_CH="de-CH",e.de_DE="de-DE",e.en_AU="en-AU",e.en_CA="en-CA",e.en_GB="en-GB",e.en_IE="en-IE",e.en_PH="en-PH",e.en_US="en-US",e.es_ES="es-ES",e.fr_BE="fr-BE",e.fr_CA="fr-CA",e.fr_FR="fr-FR",e.it_IT="it-IT",e.nl_BE="nl-BE",e.nl_NL="nl-NL",e.pl_PL="pl-PL",e.th_TH="th-TH",e.zh_HK="zh-HK",e.zh_TW="zh-TW"}(oe||(Do.ContentLanguage=Do.Locale=oe={})),function(e){e.NEW="NEW",e.LIKE_NEW="LIKE_NEW",e.NEW_OTHER="NEW_OTHER",e.NEW_WITH_DEFECTS="NEW_WITH_DEFECTS",e.MANUFACTURER_REFURBISHED="MANUFACTURER_REFURBISHED",e.SELLER_REFURBISHED="SELLER_REFURBISHED",e.USED_EXCELLENT="USED_EXCELLENT",e.USED_VERY_GOOD="USED_VERY_GOOD",e.USED_GOOD="USED_GOOD",e.USED_ACCEPTABLE="USED_ACCEPTABLE",e.FOR_PARTS_OR_NOT_WORKING="FOR_PARTS_OR_NOT_WORKING"}(ie||(Do.Condition=ie={})),function(e){e.en_US="en_US",e.en_CA="en_CA",e.fr_CA="fr_CA",e.en_GB="en_GB",e.en_AU="en_AU",e.en_IN="en_IN",e.de_AT="de_AT",e.fr_BE="fr_BE",e.fr_FR="fr_FR",e.de_DE="de_DE",e.it_IT="it_IT",e.nl_BE="nl_BE",e.nl_NL="nl_NL",e.es_ES="es_ES",e.de_CH="de_CH",e.fi_FI="fi_FI",e.zh_HK="zh_HK",e.hu_HU="hu_HU",e.en_PH="en_PH",e.pl_PL="pl_PL",e.pt_PT="pt_PT",e.ru_RU="ru_RU",e.en_SG="en_SG",e.en_IE="en_IE",e.en_MY="en_MY"}(se||(Do.LocaleEnum=se={})),function(e){e.EBAY_US="EBAY_US",e.EBAY_MOTORS="EBAY_MOTORS",e.EBAY_CA="EBAY_CA",e.EBAY_GB="EBAY_GB",e.EBAY_AU="EBAY_AU",e.EBAY_AT="EBAY_AT",e.EBAY_BE="EBAY_BE",e.EBAY_FR="EBAY_FR",e.EBAY_DE="EBAY_DE",e.EBAY_IT="EBAY_IT",e.EBAY_NL="EBAY_NL",e.EBAY_ES="EBAY_ES",e.EBAY_CH="EBAY_CH",e.EBAY_TW="EBAY_TW",e.EBAY_CZ="EBAY_CZ",e.EBAY_DK="EBAY_DK",e.EBAY_FI="EBAY_FI",e.EBAY_GR="EBAY_GR",e.EBAY_HK="EBAY_HK",e.EBAY_HU="EBAY_HU",e.EBAY_IN="EBAY_IN",e.EBAY_ID="EBAY_ID",e.EBAY_IE="EBAY_IE",e.EBAY_IL="EBAY_IL",e.EBAY_MY="EBAY_MY",e.EBAY_NZ="EBAY_NZ",e.EBAY_NO="EBAY_NO",e.EBAY_PH="EBAY_PH",e.EBAY_PL="EBAY_PL",e.EBAY_PT="EBAY_PT",e.EBAY_PR="EBAY_PR",e.EBAY_RU="EBAY_RU",e.EBAY_SG="EBAY_SG",e.EBAY_ZA="EBAY_ZA",e.EBAY_SE="EBAY_SE",e.EBAY_TH="EBAY_TH",e.EBAY_VN="EBAY_VN",e.EBAY_CN="EBAY_CN",e.EBAY_PE="EBAY_PE",e.EBAY_JP="EBAY_JP"}(ae||(Do.Marketplace=ae={})),function(e){e.AUCTION="AUCTION",e.FIXED_PRICE="FIXED_PRICE"}(ue||(Do.FormatType=ue={})),function(e){e.CLICK_THROUGH_RATE="CLICK_THROUGH_RATE",e.LISTING_IMPRESSION_SEARCH_RESULTS_PAGE="LISTING_IMPRESSION_SEARCH_RESULTS_PAGE",e.LISTING_IMPRESSION_STORE="CLICK_THROUGH_RATE",e.LISTING_IMPRESSION_TOTAL="LISTING_IMPRESSION_TOTAL",e.LISTING_VIEWS_SOURCE_DIRECT="LISTING_VIEWS_SOURCE_DIRECT",e.LISTING_VIEWS_SOURCE_OFF_EBAY="LISTING_VIEWS_SOURCE_OFF_EBAY",e.LISTING_VIEWS_SOURCE_OTHER_EBAY="LISTING_VIEWS_SOURCE_OTHER_EBAY",e.LISTING_VIEWS_SOURCE_SEARCH_RESULTS_PAGE="LISTING_VIEWS_SOURCE_SEARCH_RESULTS_PAGE",e.LISTING_VIEWS_SOURCE_STORE="LISTING_VIEWS_SOURCE_STORE",e.LISTING_VIEWS_TOTAL="LISTING_VIEWS_TOTAL",e.SALES_CONVERSION_RATE="SALES_CONVERSION_RATE",e.TOTAL_IMPRESSION_TOTAL="TOTAL_IMPRESSION_TOTAL",e.TRANSACTION="TRANSACTION"}(ce||(Do.Metric=ce={})),function(e){e.MERCHANDISE_CREDIT="MERCHANDISE_CREDIT",e.MONEY_BACK="MONEY_BACK"}(le||(Do.RefundMethod=le={})),function(e){e.EXCHANGE="EXCHANGE",e.REPLACEMENT="REPLACEMENT"}(de||(Do.ReturnMethod=de={})),function(e){e.BUYER="BUYER",e.SELLER="SELLER"}(pe||(Do.ReturnShippingCostPayer=pe={})),function(e){e.COUNTRY="COUNTRY",e.COUNTRY_REGION="COUNTRY_REGION",e.STATE_OR_PROVINCE="STATE_OR_PROVINCE",e.WORLD_REGION="WORLD_REGION",e.WORLDWIDE="WORLDWIDE"}(fe||(Do.RegionType=fe={})),function(e){e.BUYER_CANCEL="BUYER_CANCEL",e.SELLER_CANCEL="SELLER_CANCEL",e.ITEM_NOT_RECEIVED="ITEM_NOT_RECEIVED",e.BUYER_RETURN="BUYER_RETURN",e.ITEM_NOT_AS_DESCRIBED="ITEM_NOT_AS_DESCRIBED",e.OTHER_ADJUSTMENT="OTHER_ADJUSTMENT",e.SHIPPING_DISCOUNT="SHIPPING_DISCOUNT"}(he||(Do.ReasonForRefund=he={})),function(e){e.ADDRESS_ISSUES="ADDRESS_ISSUES",e.BUYER_ASKED_CANCEL="BUYER_ASKED_CANCEL",e.BUYER_CANCEL_OR_ADDRESS_ISSUE="BUYER_CANCEL_OR_ADDRESS_ISSUE",e.FOUND_CHEAPER_PRICE="FOUND_CHEAPER_PRICE",e.ORDER_MISTAKE="ORDER_MISTAKE",e.ORDER_UNPAID="ORDER_UNPAID",e.OTHER="OTHER",e.OUT_OF_STOCK_OR_CANNOT_FULFILL="OUT_OF_STOCK_OR_CANNOT_FULFILL",e.PRICE_TOO_HIGH="PRICE_TOO_HIGH",e.UNKNOWN="UNKNOWN",e.WONT_ARRIVE_IN_TIME="WONT_ARRIVE_IN_TIME",e.WRONG_PAYMENT_METHOD="WRONG_PAYMENT_METHOD",e.WRONG_SHIPPING_ADDRESS="WRONG_SHIPPING_ADDRESS",e.WRONG_SHIPPING_METHOD="WRONG_SHIPPING_METHOD"}(_e||(Do.CancelReason=_e={})),function(e){e.INCH="INCH",e.FEET="FEET",e.CENTIMETER="CENTIMETER",e.METER="METER"}(Ee||(Do.LengthUnitOfMeasure=Ee={})),function(e){e.POUND="POUND",e.KILOGRAM="KILOGRAM",e.OUNCE="OUNCE",e.GRAM="GRAM"}(ge||(Do.WeightUnitOfMeasure=ge={})),function(e){e.LETTER="LETTER",e.BULKY_GOODS="BULKY_GOODS",e.CARAVAN="CARAVAN",e.CARS="CARS",e.EUROPALLET="EUROPALLET",e.EXPANDABLE_TOUGH_BAGS="EXPANDABLE_TOUGH_BAGS",e.EXTRA_LARGE_PACK="EXTRA_LARGE_PACK",e.FURNITURE="FURNITURE",e.INDUSTRY_VEHICLES="INDUSTRY_VEHICLES",e.LARGE_CANADA_POSTBOX="LARGE_CANADA_POSTBOX",e.LARGE_CANADA_POST_BUBBLE_MAILER="LARGE_CANADA_POST_BUBBLE_MAILER",e.LARGE_ENVELOPE="LARGE_ENVELOPE",e.MAILING_BOX="MAILING_BOX",e.MEDIUM_CANADA_POST_BOX="MEDIUM_CANADA_POST_BOX",e.MEDIUM_CANADA_POST_BUBBLE_MAILER="MEDIUM_CANADA_POST_BUBBLE_MAILER",e.MOTORBIKES="MOTORBIKES",e.ONE_WAY_PALLET="ONE_WAY_PALLET",e.PACKAGE_THICK_ENVELOPE="PACKAGE_THICK_ENVELOPE",e.PADDED_BAGS="PADDED_BAGS",e.PARCEL_OR_PADDED_ENVELOPE="PARCEL_OR_PADDED_ENVELOPE",e.ROLL="ROLL",e.SMALL_CANADA_POST_BOX="SMALL_CANADA_POST_BOX",e.SMALL_CANADA_POST_BUBBLE_MAILER="SMALL_CANADA_POST_BUBBLE_MAILER",e.TOUGH_BAGS="TOUGH_BAGS",e.UPS_LETTER="UPS_LETTER",e.USPS_FLAT_RATE_ENVELOPE="USPS_FLAT_RATE_ENVELOPE",e.USPS_LARGE_PACK="USPS_LARGE_PACK",e.VERY_LARGE_PACK="VERY_LARGE_PACK",e.WINE_PAK="WINE_PAK"}(me||(Do.PackageType=me={}))),Do;var e,t,n,o,i,d,f,h,_,m,P,U,L,k,j,Y,H,V,K,W,X,J,Q,Z,ee,te,re,ne,oe,ie,se,ae,ue,ce,le,de,pe,fe,he,_e,Ee,ge,me}(),e)}(Co)),Co}var Mo,Uo={},Lo={};var wo,Bo={};var xo,Fo={};var ko,Go={},qo={};var jo,Yo={};var $o,Ho={};var Vo,Ko={};var Wo,Xo={};var zo,Jo={};var Qo,Zo={};var ei,ti={};var ri,ni={};var oi,ii={};var si,ai={};var ui,ci={};var li,di={};var pi,fi={};var hi,_i={};var Ei,gi={};var mi,yi={};var Ri,Ai={};var Ii,Ti={};var Si,Oi={};var bi,Ci={};var Ni,Pi={};var vi,Di={};var Mi,Ui={};var Li,wi={};var Bi,xi={};var Fi,ki={};var Gi,qi={};var ji,Yi={};var $i,Hi={};var Vi,Ki={};var Wi,Xi={};var zi,Ji={};var Qi,Zi={};var es,ts={};var rs,ns={};var os,is={};var ss,as={};var us,cs={};var ls,ds={};var ps,fs={};var hs,_s={};var Es,gs={};var ms,ys={};var Rs,As={};var Is,Ts={};var Ss,Os={};var bs,Cs={};var Ns,Ps={};var vs,Ds={};var Ms,Us={};var Ls,ws={};var Bs,xs={};var Fs,ks={};var Gs,qs={};var js,Ys={};var $s,Hs={};var Vs,Ks={};var Ws,Xs={};var zs,Js={};var Qs,Zs={};var ea,ta={};var ra,na={};var oa,ia={};var sa,aa={};var ua,ca={};var la,da={};var pa,fa,ha,_a,Ea,ga,ma={};function requireTraditional(){return fa||(fa=1,function(e){var t=Go&&Go.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=Go&&Go.__exportStar||function(e,n){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(n,o)||t(n,e,o)};Object.defineProperty(e,"__esModule",{value:!0}),n(function requireCommon(){return ko||(ko=1,Object.defineProperty(qo,"__esModule",{value:!0})),qo}(),e),n(function requireAddFixedPriceItemResponse(){return jo||(jo=1,Object.defineProperty(Yo,"__esModule",{value:!0})),Yo}(),e),n(function requireAddItemResponse(){return $o||($o=1,Object.defineProperty(Ho,"__esModule",{value:!0})),Ho}(),e),n(function requireAddItemsResponse(){return Vo||(Vo=1,Object.defineProperty(Ko,"__esModule",{value:!0})),Ko}(),e),n(function requireAddMemberMessageAAQToPartnerResponse(){return Wo||(Wo=1,Object.defineProperty(Xo,"__esModule",{value:!0})),Xo}(),e),n(function requireAddMemberMessageRTQResponse(){return zo||(zo=1,Object.defineProperty(Jo,"__esModule",{value:!0})),Jo}(),e),n(function requireAddMemberMessagesAAQToBidderResponse(){return Qo||(Qo=1,Object.defineProperty(Zo,"__esModule",{value:!0})),Zo}(),e),n(function requireAddOrderResponse(){return ei||(ei=1,Object.defineProperty(ti,"__esModule",{value:!0})),ti}(),e),n(function requireAddSecondChanceItemResponse(){return ri||(ri=1,Object.defineProperty(ni,"__esModule",{value:!0})),ni}(),e),n(function requireAddToItemDescriptionResponse(){return oi||(oi=1,Object.defineProperty(ii,"__esModule",{value:!0})),ii}(),e),n(function requireAddToWatchListResponse(){return si||(si=1,Object.defineProperty(ai,"__esModule",{value:!0})),ai}(),e),n(function requireCompleteSaleResponse(){return ui||(ui=1,Object.defineProperty(ci,"__esModule",{value:!0})),ci}(),e),n(function requireDeleteMyMessagesResponse(){return li||(li=1,Object.defineProperty(di,"__esModule",{value:!0})),di}(),e),n(function requireEndFixedPriceItemResponse(){return pi||(pi=1,Object.defineProperty(fi,"__esModule",{value:!0})),fi}(),e),n(function requireEndItemsResponse(){return hi||(hi=1,Object.defineProperty(_i,"__esModule",{value:!0})),_i}(),e),n(function requireFetchTokenResponse(){return Ei||(Ei=1,Object.defineProperty(gi,"__esModule",{value:!0})),gi}(),e),n(function requireGetAccountResponse(){return mi||(mi=1,Object.defineProperty(yi,"__esModule",{value:!0})),yi}(),e),n(function requireGetAdFormatLeadsResponse(){return Ri||(Ri=1,Object.defineProperty(Ai,"__esModule",{value:!0})),Ai}(),e),n(function requireGetAllBiddersResponse(){return Ii||(Ii=1,Object.defineProperty(Ti,"__esModule",{value:!0})),Ti}(),e),n(function requireGetBestOffersResponse(){return Si||(Si=1,Object.defineProperty(Oi,"__esModule",{value:!0})),Oi}(),e),n(function requireGetBidderListResponse(){return bi||(bi=1,Object.defineProperty(Ci,"__esModule",{value:!0})),Ci}(),e),n(function requireGetCategoriesResponse(){return Ni||(Ni=1,Object.defineProperty(Pi,"__esModule",{value:!0})),Pi}(),e),n(function requireGetCategoryFeaturesResponse(){return vi||(vi=1,Object.defineProperty(Di,"__esModule",{value:!0})),Di}(),e),n(function requireGetDescriptionTemplatesResponse(){return Mi||(Mi=1,Object.defineProperty(Ui,"__esModule",{value:!0})),Ui}(),e),n(function requireGetFeedbackResponse(){return Li||(Li=1,Object.defineProperty(wi,"__esModule",{value:!0})),wi}(),e),n(function requireGetItemResponse(){return Bi||(Bi=1,Object.defineProperty(xi,"__esModule",{value:!0})),xi}(),e),n(function requireGetItemsAwaitingFeedbackResponse(){return Fi||(Fi=1,Object.defineProperty(ki,"__esModule",{value:!0})),ki}(),e),n(function requireGetMemberMessagesResponse(){return Gi||(Gi=1,Object.defineProperty(qi,"__esModule",{value:!0})),qi}(),e),n(function requireGetMessagePreferencesResponse(){return ji||(ji=1,Object.defineProperty(Yi,"__esModule",{value:!0})),Yi}(),e),n(function requireGetMyMessagesResponse(){return $i||($i=1,Object.defineProperty(Hi,"__esModule",{value:!0})),Hi}(),e),n(function requireGetSellerListResponse(){return Vi||(Vi=1,Object.defineProperty(Ki,"__esModule",{value:!0})),Ki}(),e),n(function requireGetSellerTransactionsResponse(){return Wi||(Wi=1,Object.defineProperty(Xi,"__esModule",{value:!0})),Xi}(),e),n(function requireGetShippingDiscountProfilesResponse(){return zi||(zi=1,Object.defineProperty(Ji,"__esModule",{value:!0})),Ji}(),e),n(function requireGetStoreResponse(){return Qi||(Qi=1,Object.defineProperty(Zi,"__esModule",{value:!0})),Zi}(),e),n(function requireGetTaxTableResponse(){return es||(es=1,Object.defineProperty(ts,"__esModule",{value:!0})),ts}(),e),n(function requireGetTokenStatusResponse(){return rs||(rs=1,Object.defineProperty(ns,"__esModule",{value:!0})),ns}(),e),n(function requireGetUserContactDetailsResponse(){return os||(os=1,Object.defineProperty(is,"__esModule",{value:!0})),is}(),e),n(function requireGetUserPreferencesResponse(){return ss||(ss=1,Object.defineProperty(as,"__esModule",{value:!0})),as}(),e),n(function requireGetUserResponse(){return us||(us=1,Object.defineProperty(cs,"__esModule",{value:!0})),cs}(),e),n(function requireGetVeROReasonCodeDetailsResponse(){return ls||(ls=1,Object.defineProperty(ds,"__esModule",{value:!0})),ds}(),e),n(function requireGetVeROReportStatusResponse(){return ps||(ps=1,Object.defineProperty(fs,"__esModule",{value:!0})),fs}(),e),n(function requireGeteBayDetailsResponse(){return hs||(hs=1,Object.defineProperty(_s,"__esModule",{value:!0})),_s}(),e),n(function requirePlaceOfferResponse(){return Es||(Es=1,Object.defineProperty(gs,"__esModule",{value:!0})),gs}(),e),n(function requireRelistFixedPriceItemResponse(){return ms||(ms=1,Object.defineProperty(ys,"__esModule",{value:!0})),ys}(),e),n(function requireRelistItemResponse(){return Rs||(Rs=1,Object.defineProperty(As,"__esModule",{value:!0})),As}(),e),n(function requireRemoveFromWatchListResponse(){return Is||(Is=1,Object.defineProperty(Ts,"__esModule",{value:!0})),Ts}(),e),n(function requireRespondToBestOfferResponse(){return Ss||(Ss=1,Object.defineProperty(Os,"__esModule",{value:!0})),Os}(),e),n(function requireRespondToFeedbackResponse(){return bs||(bs=1,Object.defineProperty(Cs,"__esModule",{value:!0})),Cs}(),e),n(function requireReviseFixedPriceItemResponse(){return Ns||(Ns=1,Object.defineProperty(Ps,"__esModule",{value:!0})),Ps}(),e),n(function requireReviseInventoryStatusResponse(){return vs||(vs=1,Object.defineProperty(Ds,"__esModule",{value:!0})),Ds}(),e),n(function requireReviseItemResponse(){return Ms||(Ms=1,Object.defineProperty(Us,"__esModule",{value:!0})),Us}(),e),n(function requireReviseMyMessagesFoldersResponse(){return Ls||(Ls=1,Object.defineProperty(ws,"__esModule",{value:!0})),ws}(),e),n(function requireReviseMyMessagesResponse(){return Bs||(Bs=1,Object.defineProperty(xs,"__esModule",{value:!0})),xs}(),e),n(function requireRevokeTokenResponse(){return Fs||(Fs=1,Object.defineProperty(ks,"__esModule",{value:!0})),ks}(),e),n(function requireSendInvoiceResponse(){return Gs||(Gs=1,Object.defineProperty(qs,"__esModule",{value:!0})),qs}(),e),n(function requireSetMessagePreferencesResponse(){return js||(js=1,Object.defineProperty(Ys,"__esModule",{value:!0})),Ys}(),e),n(function requireSetNotificationPreferencesResponse(){return $s||($s=1,Object.defineProperty(Hs,"__esModule",{value:!0})),Hs}(),e),n(function requireSetShippingDiscountProfilesResponse(){return Vs||(Vs=1,Object.defineProperty(Ks,"__esModule",{value:!0})),Ks}(),e),n(function requireSetStoreCategoriesResponse(){return Ws||(Ws=1,Object.defineProperty(Xs,"__esModule",{value:!0})),Xs}(),e),n(function requireSetTaxTableResponse(){return zs||(zs=1,Object.defineProperty(Js,"__esModule",{value:!0})),Js}(),e),n(function requireSetUserNotesResponse(){return Qs||(Qs=1,Object.defineProperty(Zs,"__esModule",{value:!0})),Zs}(),e),n(function requireSetUserPreferencesResponse(){return ea||(ea=1,Object.defineProperty(ta,"__esModule",{value:!0})),ta}(),e),n(function requireUploadSiteHostedPicturesResponse(){return ra||(ra=1,Object.defineProperty(na,"__esModule",{value:!0})),na}(),e),n(function requireVeROReportItemsResponse(){return oa||(oa=1,Object.defineProperty(ia,"__esModule",{value:!0})),ia}(),e),n(function requireVerifyAddFixedPriceItemResponse(){return sa||(sa=1,Object.defineProperty(aa,"__esModule",{value:!0})),aa}(),e),n(function requireVerifyAddItemResponse(){return ua||(ua=1,Object.defineProperty(ca,"__esModule",{value:!0})),ca}(),e),n(function requireVerifyAddSecondChanceItemResponse(){return la||(la=1,Object.defineProperty(da,"__esModule",{value:!0})),da}(),e),n(function requireVerifyRelistItemResponse(){return pa||(pa=1,Object.defineProperty(ma,"__esModule",{value:!0})),ma}(),e)}(Go)),Go}function requireTypes(){return ha||(ha=1,function(e){var t=Uo&&Uo.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=Uo&&Uo.__exportStar||function(e,n){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(n,o)||t(n,e,o)};Object.defineProperty(e,"__esModule",{value:!0}),n(function requireApiTypes(){return Mo||(Mo=1,Object.defineProperty(Lo,"__esModule",{value:!0})),Lo}(),e),n(function requireRestfulTypes(){return wo||(wo=1,Object.defineProperty(Bo,"__esModule",{value:!0})),Bo}(),e),n(function requireTraditonalTypes(){return xo||(xo=1,Object.defineProperty(Fo,"__esModule",{value:!0})),Fo}(),e),n(requireTraditional(),e)}(Uo)),Uo}function requireEBayApi(){return _a||(_a=1,function(e){var t,n=o&&o.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),d=o&&o.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),f=o&&o.__importStar||(t=function(e){return t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},t(e)},function(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var i=t(e),f=0;f<i.length;f++)"default"!==i[f]&&n(o,e,i[f]);return d(o,e),o}),h=o&&o.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.types=e.errors=e.enums=e.Locale=e.ContentLanguage=e.MarketplaceId=e.SiteId=e.eBayApi=void 0;const _=h(function requireApiFactory(){if(So)return i;So=1;var e=i&&i.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0});const t=e(requireApi()),n=requireBuy(),o=requireCommerce(),d=requireDeveloper(),f=requirePostOrder(),h=requireSell(),_=e(requireTraditional$1());class ApiFactory extends t.default{constructor(){super(...arguments),this._restful={}}createBuyApi(){return{browse:this.createRestfulApi(n.Browse),feed:this.createRestfulApi(n.Feed),marketing:this.createRestfulApi(n.Marketing),offer:this.createRestfulApi(n.Offer),order:this.createRestfulApi(n.Order),deal:this.createRestfulApi(n.Deal),marketplaceInsights:this.createRestfulApi(n.MarketplaceInsights)}}createCommerceApi(){return{catalog:this.createRestfulApi(o.Catalog),charity:this.createRestfulApi(o.Charity),identity:this.createRestfulApi(o.Identity),notification:this.createRestfulApi(o.Notification),media:this.createRestfulApi(o.Media),translation:this.createRestfulApi(o.Translation),taxonomy:this.createRestfulApi(o.Taxonomy),message:this.createRestfulApi(o.Message)}}createDeveloperApi(){return{analytics:this.createRestfulApi(d.Analytics),keyManagement:this.createRestfulApi(d.KeyManagement)}}createPostOrderApi(){return{cancellation:this.createRestfulApi(f.Cancellation),case:this.createRestfulApi(f.Case),inquiry:this.createRestfulApi(f.Inquiry),return:this.createRestfulApi(f.Return)}}createSellApi(){return{account:this.createRestfulApi(h.AccountV1),accountV2:this.createRestfulApi(h.AccountV2),analytics:this.createRestfulApi(h.Analytics),compliance:this.createRestfulApi(h.Compliance),fulfillment:this.createRestfulApi(h.Fulfillment),inventory:this.createRestfulApi(h.Inventory),marketing:this.createRestfulApi(h.Marketing),metadata:this.createRestfulApi(h.Metadata),recommendation:this.createRestfulApi(h.Recommendation),finances:this.createRestfulApi(h.Finances),feed:this.createRestfulApi(h.Feed),logistics:this.createRestfulApi(h.Logistics),negotiation:this.createRestfulApi(h.Negotiation),listing:this.createRestfulApi(h.Listing)}}get traditional(){return this._traditional?this._traditional:this._traditional=new _.default(this.config,this.req,this.auth)}createTradingApi(){return this.traditional.createTradingApi()}createShoppingApi(){return this.traditional.createShoppingApi()}createFindingApi(){return this.traditional.createFindingApi()}createClientAlertsApi(){return this.traditional.createClientAlertsApi()}createMerchandisingApi(){return this.traditional.createMerchandisingApi()}createRestfulApi(e){const t=e.id;return this._restful[t]||(this._restful[t]=new e(this.config,this.req,this.auth))}}return i.default=ApiFactory,i}()),m=h(requireApi()),P=f(requireEnums());e.enums=P;const U=requireEnums();Object.defineProperty(e,"ContentLanguage",{enumerable:!0,get:function(){return U.ContentLanguage}}),Object.defineProperty(e,"Locale",{enumerable:!0,get:function(){return U.Locale}}),Object.defineProperty(e,"MarketplaceId",{enumerable:!0,get:function(){return U.MarketplaceId}}),Object.defineProperty(e,"SiteId",{enumerable:!0,get:function(){return U.SiteId}});const L=f(requireErrors());e.errors=L;const k=requireErrors(),j=f(requireTypes());e.types=j;const Y={sandbox:!1,autoRefreshToken:!0,siteId:U.SiteId.EBAY_US,marketplaceId:U.MarketplaceId.EBAY_US,acceptLanguage:U.Locale.en_US,contentLanguage:U.ContentLanguage.en_US};let H=class eBayApi extends m.default{static fromEnv(e){if(!process.env.EBAY_APP_ID)throw new k.ApiEnvError("EBAY_APP_ID");if(!process.env.EBAY_CERT_ID)throw new k.ApiEnvError("EBAY_CERT_ID");let t=null;return process.env.EBAY_JWE&&process.env.EBAY_PRIVATE_KEY&&(t={jwe:process.env.EBAY_JWE,privateKey:process.env.EBAY_PRIVATE_KEY}),new eBayApi({appId:process.env.EBAY_APP_ID,certId:process.env.EBAY_CERT_ID,devId:process.env.EBAY_DEV_ID,authToken:process.env.EBAY_AUTH_TOKEN,siteId:process.env.EBAY_SITE_ID?parseInt(process.env.EBAY_SITE_ID,10):U.SiteId.EBAY_US,marketplaceId:process.env.EBAY_MARKETPLACE_ID&&process.env.EBAY_MARKETPLACE_ID in U.MarketplaceId?U.MarketplaceId[process.env.EBAY_MARKETPLACE_ID]:U.MarketplaceId.EBAY_US,ruName:process.env.EBAY_RU_NAME,sandbox:"true"===process.env.EBAY_SANDBOX,signature:t},e)}constructor(e,t){super({...Y,...e},t),this.factory=new _.default(this.config,this.req,this.auth),this.authNAuth=this.auth.authNAuth,this.OAuth2=this.auth.OAuth2,this.oAuth2=this.OAuth2}get buy(){return this._buy||(this._buy=this.factory.createBuyApi())}get commerce(){return this._commerce||(this._commerce=this.factory.createCommerceApi())}get developer(){return this._developer||(this._developer=this.factory.createDeveloperApi())}get postOrder(){return this._postOrder||(this._postOrder=this.factory.createPostOrderApi())}get sell(){return this._sell||(this._sell=this.factory.createSellApi())}get trading(){return this._trading||(this._trading=this.factory.createTradingApi())}get finding(){return this._finding||(this._finding=this.factory.createFindingApi())}get shopping(){return this._shopping||(this._shopping=this.factory.createShoppingApi())}get merchandising(){return this._merchandising||(this._merchandising=this.factory.createMerchandisingApi())}get clientAlerts(){return this._clientAlerts||(this._clientAlerts=this.factory.createClientAlertsApi())}setSignature(e){this.config.signature=e}};e.eBayApi=H,H.SiteId=U.SiteId,H.MarketplaceId=U.MarketplaceId,H.ContentLanguage=U.ContentLanguage,H.Locale=U.Locale,e.default=H}(o)),o}return getDefaultExportFromCjs(function requireLib(){if(ga)return Ea;ga=1;const e=(Ea&&Ea.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(requireEBayApi());return Ea=e.default}())});