@opencloud-eu/web-client 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ "use strict";const tt=require("./index-D0bnLDAA.cjs");function Nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nt={exports:{}},E=nt.exports={},L,D;function ge(){throw new Error("setTimeout has not been defined")}function Se(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?L=setTimeout:L=ge}catch{L=ge}try{typeof clearTimeout=="function"?D=clearTimeout:D=Se}catch{D=Se}})();function rt(e){if(L===setTimeout)return setTimeout(e,0);if((L===ge||!L)&&setTimeout)return L=setTimeout,setTimeout(e,0);try{return L(e,0)}catch{try{return L.call(null,e,0)}catch{return L.call(this,e,0)}}}function Pt(e){if(D===clearTimeout)return clearTimeout(e);if((D===Se||!D)&&clearTimeout)return D=clearTimeout,clearTimeout(e);try{return D(e)}catch{try{return D.call(null,e)}catch{return D.call(this,e)}}}var B=[],V=!1,M,ie=-1;function Ft(){!V||!M||(V=!1,M.length?B=M.concat(B):ie=-1,B.length&&st())}function st(){if(!V){var e=rt(Ft);V=!0;for(var t=B.length;t;){for(M=B,B=[];++ie<t;)M&&M[ie].run();ie=-1,t=B.length}M=null,V=!1,Pt(e)}}E.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];B.push(new ot(e,t)),B.length===1&&!V&&rt(st)};function ot(e,t){this.fun=e,this.array=t}ot.prototype.run=function(){this.fun.apply(null,this.array)};E.title="browser";E.browser=!0;E.env={};E.argv=[];E.version="";E.versions={};function k(){}E.on=k;E.addListener=k;E.once=k;E.off=k;E.removeListener=k;E.removeAllListeners=k;E.emit=k;E.prependListener=k;E.prependOnceListener=k;E.listeners=function(e){return[]};E.binding=function(e){throw new Error("process.binding is not supported")};E.cwd=function(){return"/"};E.chdir=function(e){throw new Error("process.chdir is not supported")};E.umask=function(){return 0};var Ut=nt.exports;const Oe=Nt(Ut);function it(e,t){return function(){return e.apply(t,arguments)}}const{toString:Lt}=Object.prototype,{getPrototypeOf:_e}=Object,{iterator:fe,toStringTag:at}=Symbol,de=(e=>t=>{const n=Lt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),U=e=>(e=e.toLowerCase(),t=>de(t)===e),pe=e=>t=>typeof t===e,{isArray:K}=Array,W=pe("undefined");function G(e){return e!==null&&!W(e)&&e.constructor!==null&&!W(e.constructor)&&C(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ct=U("ArrayBuffer");function Dt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ct(e.buffer),t}const Bt=pe("string"),C=pe("function"),ut=pe("number"),Z=e=>e!==null&&typeof e=="object",kt=e=>e===!0||e===!1,ae=e=>{if(de(e)!=="object")return!1;const t=_e(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(at in e)&&!(fe in e)},jt=e=>{if(!Z(e)||G(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},qt=U("Date"),It=U("File"),Ht=U("Blob"),Mt=U("FileList"),$t=e=>Z(e)&&C(e.pipe),vt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||C(e.append)&&((t=de(e))==="formdata"||t==="object"&&C(e.toString)&&e.toString()==="[object FormData]"))},zt=U("URLSearchParams"),[Jt,Vt,Wt,Kt]=["ReadableStream","Request","Response","Headers"].map(U),Xt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Y(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),K(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(G(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function lt(e,t){if(G(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const $=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:tt.global,ft=e=>!W(e)&&e!==$;function Te(){const{caseless:e,skipUndefined:t}=ft(this)&&this||{},n={},r=(s,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const i=e&&lt(n,o)||o;ae(n[i])&&ae(s)?n[i]=Te(n[i],s):ae(s)?n[i]=Te({},s):K(s)?n[i]=s.slice():(!t||!W(s))&&(n[i]=s)};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&Y(arguments[s],r);return n}const Qt=(e,t,n,{allOwnKeys:r}={})=>(Y(t,(s,o)=>{n&&C(s)?Object.defineProperty(e,o,{value:it(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Gt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Zt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),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)},Yt=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&_e(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},en=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},tn=e=>{if(!e)return null;if(K(e))return e;let t=e.length;if(!ut(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},nn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_e(Uint8Array)),rn=(e,t)=>{const r=(e&&e[fe]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},sn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},on=U("HTMLFormElement"),an=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ie=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cn=U("RegExp"),dt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Y(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},un=e=>{dt(e,(t,n)=>{if(C(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(C(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ln=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return K(e)?r(e):r(String(e).split(t)),n},fn=()=>{},dn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function pn(e){return!!(e&&C(e.append)&&e[at]==="FormData"&&e[fe])}const hn=e=>{const t=new Array(10),n=(r,s)=>{if(Z(r)){if(t.indexOf(r)>=0)return;if(G(r))return r;if(!("toJSON"in r)){t[s]=r;const o=K(r)?[]:{};return Y(r,(i,c)=>{const d=n(i,s+1);!W(d)&&(o[c]=d)}),t[s]=void 0,o}}return r};return n(e,0)},mn=U("AsyncFunction"),yn=e=>e&&(Z(e)||C(e))&&C(e.then)&&C(e.catch),pt=((e,t)=>e?setImmediate:t?((n,r)=>($.addEventListener("message",({source:s,data:o})=>{s===$&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),$.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",C($.postMessage)),bn=typeof queueMicrotask<"u"?queueMicrotask.bind($):typeof Oe<"u"&&Oe.nextTick||pt,wn=e=>e!=null&&C(e[fe]),a={isArray:K,isArrayBuffer:ct,isBuffer:G,isFormData:vt,isArrayBufferView:Dt,isString:Bt,isNumber:ut,isBoolean:kt,isObject:Z,isPlainObject:ae,isEmptyObject:jt,isReadableStream:Jt,isRequest:Vt,isResponse:Wt,isHeaders:Kt,isUndefined:W,isDate:qt,isFile:It,isBlob:Ht,isRegExp:cn,isFunction:C,isStream:$t,isURLSearchParams:zt,isTypedArray:nn,isFileList:Mt,forEach:Y,merge:Te,extend:Qt,trim:Xt,stripBOM:Gt,inherits:Zt,toFlatObject:Yt,kindOf:de,kindOfTest:U,endsWith:en,toArray:tn,forEachEntry:rn,matchAll:sn,isHTMLForm:on,hasOwnProperty:Ie,hasOwnProp:Ie,reduceDescriptors:dt,freezeMethods:un,toObjectSet:ln,toCamelCase:an,noop:fn,toFiniteNumber:dn,findKey:lt,global:$,isContextDefined:ft,isSpecCompliantForm:pn,toJSONObject:hn,isAsyncFn:mn,isThenable:yn,setImmediate:pt,asap:bn,isIterable:wn};let y=class ht extends Error{static from(t,n,r,s,o,i){const c=new ht(t.message,n||t.code,r,s,o);return c.cause=t,c.name=t.name,i&&Object.assign(c,i),c}constructor(t,n,r,s,o){super(t),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),s&&(this.request=s),o&&(this.response=o,this.status=o.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:a.toJSONObject(this.config),code:this.code,status:this.status}}};y.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";y.ERR_BAD_OPTION="ERR_BAD_OPTION";y.ECONNABORTED="ECONNABORTED";y.ETIMEDOUT="ETIMEDOUT";y.ERR_NETWORK="ERR_NETWORK";y.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";y.ERR_DEPRECATED="ERR_DEPRECATED";y.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";y.ERR_BAD_REQUEST="ERR_BAD_REQUEST";y.ERR_CANCELED="ERR_CANCELED";y.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";y.ERR_INVALID_URL="ERR_INVALID_URL";const En=null;function Ae(e){return a.isPlainObject(e)||a.isArray(e)}function mt(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function He(e,t,n){return e?e.concat(t).map(function(s,o){return s=mt(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Rn(e){return a.isArray(e)&&!e.some(Ae)}const gn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function he(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,p){return!a.isUndefined(p[m])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function f(l){if(l===null)return"";if(a.isDate(l))return l.toISOString();if(a.isBoolean(l))return l.toString();if(!d&&a.isBlob(l))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(l)||a.isTypedArray(l)?d&&typeof Blob=="function"?new Blob([l]):tt.Buffer.from(l):l}function u(l,m,p){let R=l;if(l&&!p&&typeof l=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),l=JSON.stringify(l);else if(a.isArray(l)&&Rn(l)||(a.isFileList(l)||a.endsWith(m,"[]"))&&(R=a.toArray(l)))return m=mt(m),R.forEach(function(g,T){!(a.isUndefined(g)||g===null)&&t.append(i===!0?He([m],T,o):i===null?m:m+"[]",f(g))}),!1}return Ae(l)?!0:(t.append(He(p,m,o),f(l)),!1)}const h=[],b=Object.assign(gn,{defaultVisitor:u,convertValue:f,isVisitable:Ae});function S(l,m){if(!a.isUndefined(l)){if(h.indexOf(l)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(l),a.forEach(l,function(R,_){(!(a.isUndefined(R)||R===null)&&s.call(t,R,a.isString(_)?_.trim():_,m,b))===!0&&S(R,m?m.concat(_):[_])}),h.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Me(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ne(e,t){this._pairs=[],e&&he(e,this,t)}const yt=Ne.prototype;yt.append=function(t,n){this._pairs.push([t,n])};yt.toString=function(t){const n=t?function(r){return t.call(this,r,Me)}:Me;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Sn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function bt(e,t,n){if(!t)return e;const r=n&&n.encode||Sn,s=a.isFunction(n)?{serialize:n}:n,o=s&&s.serialize;let i;if(o?i=o(t,s):i=a.isURLSearchParams(t)?t.toString():new Ne(t,s).toString(r),i){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class $e{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Pe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},On=typeof URLSearchParams<"u"?URLSearchParams:Ne,Tn=typeof FormData<"u"?FormData:null,An=typeof Blob<"u"?Blob:null,Cn={isBrowser:!0,classes:{URLSearchParams:On,FormData:Tn,Blob:An},protocols:["http","https","file","blob","url","data"]},Fe=typeof window<"u"&&typeof document<"u",Ce=typeof navigator=="object"&&navigator||void 0,xn=Fe&&(!Ce||["ReactNative","NativeScript","NS"].indexOf(Ce.product)<0),_n=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nn=Fe&&window.location.href||"http://localhost",Pn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Fe,hasStandardBrowserEnv:xn,hasStandardBrowserWebWorkerEnv:_n,navigator:Ce,origin:Nn},Symbol.toStringTag,{value:"Module"})),O={...Pn,...Cn};function Fn(e,t){return he(e,new O.classes.URLSearchParams,{visitor:function(n,r,s,o){return O.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Un(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ln(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function wt(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),d=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,d?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=Ln(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Un(r),s,n,0)}),n}return null}function Dn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ee={transitional:Pe,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(wt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Fn(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return he(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Dn(t)):t}],transformResponse:[function(t){const n=this.transitional||ee.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(c){if(i)throw c.name==="SyntaxError"?y.from(c,y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{ee.headers[e]={}});const Bn=a.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"]),kn=e=>{const t={};let n,r,s;return e&&e.split(`
2
+ `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Bn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ve=Symbol("internals");function Q(e){return e&&String(e).trim().toLowerCase()}function ce(e){return e===!1||e==null?e:a.isArray(e)?e.map(ce):String(e)}function jn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const qn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function we(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function In(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Hn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let x=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,d,f){const u=Q(d);if(!u)throw new Error("header name must be a non-empty string");const h=a.findKey(s,u);(!h||s[h]===void 0||f===!0||f===void 0&&s[h]!==!1)&&(s[h||d]=ce(c))}const i=(c,d)=>a.forEach(c,(f,u)=>o(f,u,d));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!qn(t))i(kn(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},d,f;for(const u of t){if(!a.isArray(u))throw TypeError("Object iterator must return a key-value pair");c[f=u[0]]=(d=c[f])?a.isArray(d)?[...d,u[1]]:[d,u[1]]:u[1]}i(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=Q(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return jn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Q(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||we(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=Q(i),i){const c=a.findKey(r,i);c&&(!n||we(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||we(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=ce(s),delete n[o];return}const c=t?In(o):String(o).trim();c!==o&&delete n[o],n[c]=ce(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[ve]=this[ve]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=Q(i);r[c]||(Hn(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}};x.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(x.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(x);function Ee(e,t){const n=this||ee,r=t||n,s=x.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Et(e){return!!(e&&e.__CANCEL__)}let te=class extends y{constructor(t,n,r){super(t??"canceled",y.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Rt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Mn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function $n(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),u=r[o];i||(i=f),n[s]=d,r[s]=f;let h=o,b=0;for(;h!==s;)b+=n[h++],h=h%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),f-i<t)return;const S=u&&f-u;return S?Math.round(b*1e3/S):void 0}}function vn(e,t){let n=0,r=1e3/t,s,o;const i=(f,u=Date.now())=>{n=u,s=null,o&&(clearTimeout(o),o=null),e(...f)};return[(...f)=>{const u=Date.now(),h=u-n;h>=r?i(f,u):(s=f,o||(o=setTimeout(()=>{o=null,i(s)},r-h)))},()=>s&&i(s)]}const le=(e,t,n=3)=>{let r=0;const s=$n(50,250);return vn(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,d=i-r,f=s(d),u=i<=c;r=i;const h={loaded:i,total:c,progress:c?i/c:void 0,bytes:d,rate:f||void 0,estimated:f&&c&&u?(c-i)/f:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},n)},ze=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Je=e=>(...t)=>a.asap(()=>e(...t)),zn=O.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,O.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(O.origin),O.navigator&&/(msie|trident)/i.test(O.navigator.userAgent)):()=>!0,Jn=O.hasStandardBrowserEnv?{write(e,t,n,r,s,o,i){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];a.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),a.isString(r)&&c.push(`path=${r}`),a.isString(s)&&c.push(`domain=${s}`),o===!0&&c.push("secure"),a.isString(i)&&c.push(`SameSite=${i}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")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(){return null},remove(){}};function Vn(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Wn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function gt(e,t,n){let r=!Vn(t);return e&&(r||n==!1)?Wn(e,t):t}const Ve=e=>e instanceof x?{...e}:e;function z(e,t){t=t||{};const n={};function r(f,u,h,b){return a.isPlainObject(f)&&a.isPlainObject(u)?a.merge.call({caseless:b},f,u):a.isPlainObject(u)?a.merge({},u):a.isArray(u)?u.slice():u}function s(f,u,h,b){if(a.isUndefined(u)){if(!a.isUndefined(f))return r(void 0,f,h,b)}else return r(f,u,h,b)}function o(f,u){if(!a.isUndefined(u))return r(void 0,u)}function i(f,u){if(a.isUndefined(u)){if(!a.isUndefined(f))return r(void 0,f)}else return r(void 0,u)}function c(f,u,h){if(h in t)return r(f,u);if(h in e)return r(void 0,f)}const d={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(f,u,h)=>s(Ve(f),Ve(u),h,!0)};return a.forEach(Object.keys({...e,...t}),function(u){if(u==="__proto__"||u==="constructor"||u==="prototype")return;const h=a.hasOwnProp(d,u)?d[u]:s,b=h(e[u],t[u],u);a.isUndefined(b)&&h!==c||(n[u]=b)}),n}const St=e=>{const t=z({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;if(t.headers=i=x.from(i),t.url=bt(gt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),a.isFormData(n)){if(O.hasStandardBrowserEnv||O.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(a.isFunction(n.getHeaders)){const d=n.getHeaders(),f=["content-type","content-length"];Object.entries(d).forEach(([u,h])=>{f.includes(u.toLowerCase())&&i.set(u,h)})}}if(O.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&zn(t.url))){const d=s&&o&&Jn.read(o);d&&i.set(s,d)}return t},Kn=typeof XMLHttpRequest<"u",Xn=Kn&&function(e){return new Promise(function(n,r){const s=St(e);let o=s.data;const i=x.from(s.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:f}=s,u,h,b,S,l;function m(){S&&S(),l&&l(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let p=new XMLHttpRequest;p.open(s.method.toUpperCase(),s.url,!0),p.timeout=s.timeout;function R(){if(!p)return;const g=x.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),F={data:!c||c==="text"||c==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:g,config:e,request:p};Rt(function(N){n(N),m()},function(N){r(N),m()},F),p=null}"onloadend"in p?p.onloadend=R:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(R)},p.onabort=function(){p&&(r(new y("Request aborted",y.ECONNABORTED,e,p)),p=null)},p.onerror=function(T){const F=T&&T.message?T.message:"Network Error",I=new y(F,y.ERR_NETWORK,e,p);I.event=T||null,r(I),p=null},p.ontimeout=function(){let T=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const F=s.transitional||Pe;s.timeoutErrorMessage&&(T=s.timeoutErrorMessage),r(new y(T,F.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,p)),p=null},o===void 0&&i.setContentType(null),"setRequestHeader"in p&&a.forEach(i.toJSON(),function(T,F){p.setRequestHeader(F,T)}),a.isUndefined(s.withCredentials)||(p.withCredentials=!!s.withCredentials),c&&c!=="json"&&(p.responseType=s.responseType),f&&([b,l]=le(f,!0),p.addEventListener("progress",b)),d&&p.upload&&([h,S]=le(d),p.upload.addEventListener("progress",h),p.upload.addEventListener("loadend",S)),(s.cancelToken||s.signal)&&(u=g=>{p&&(r(!g||g.type?new te(null,e,p):g),p.abort(),p=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const _=Mn(s.url);if(_&&O.protocols.indexOf(_)===-1){r(new y("Unsupported protocol "+_+":",y.ERR_BAD_REQUEST,e));return}p.send(o||null)})},Qn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(f){if(!s){s=!0,c();const u=f instanceof Error?f:this.reason;r.abort(u instanceof y?u:new te(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new y(`timeout of ${t}ms exceeded`,y.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),e=null)};e.forEach(f=>f.addEventListener("abort",o));const{signal:d}=r;return d.unsubscribe=()=>a.asap(c),d}},Gn=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},Zn=async function*(e,t){for await(const n of Yn(e))yield*Gn(n,t)},Yn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},We=(e,t,n,r)=>{const s=Zn(e,t);let o=0,i,c=d=>{i||(i=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:u}=await s.next();if(f){c(),d.close();return}let h=u.byteLength;if(n){let b=o+=h;n(b)}d.enqueue(new Uint8Array(u))}catch(f){throw c(f),f}},cancel(d){return c(d),s.return()}},{highWaterMark:2})},Ke=64*1024,{isFunction:oe}=a,er=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:Xe,TextEncoder:Qe}=a.global,Ge=(e,...t)=>{try{return!!e(...t)}catch{return!1}},tr=e=>{e=a.merge.call({skipUndefined:!0},er,e);const{fetch:t,Request:n,Response:r}=e,s=t?oe(t):typeof fetch=="function",o=oe(n),i=oe(r);if(!s)return!1;const c=s&&oe(Xe),d=s&&(typeof Qe=="function"?(l=>m=>l.encode(m))(new Qe):async l=>new Uint8Array(await new n(l).arrayBuffer())),f=o&&c&&Ge(()=>{let l=!1;const m=new n(O.origin,{body:new Xe,method:"POST",get duplex(){return l=!0,"half"}}).headers.has("Content-Type");return l&&!m}),u=i&&c&&Ge(()=>a.isReadableStream(new r("").body)),h={stream:u&&(l=>l.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(l=>{!h[l]&&(h[l]=(m,p)=>{let R=m&&m[l];if(R)return R.call(m);throw new y(`Response type '${l}' is not supported`,y.ERR_NOT_SUPPORT,p)})});const b=async l=>{if(l==null)return 0;if(a.isBlob(l))return l.size;if(a.isSpecCompliantForm(l))return(await new n(O.origin,{method:"POST",body:l}).arrayBuffer()).byteLength;if(a.isArrayBufferView(l)||a.isArrayBuffer(l))return l.byteLength;if(a.isURLSearchParams(l)&&(l=l+""),a.isString(l))return(await d(l)).byteLength},S=async(l,m)=>{const p=a.toFiniteNumber(l.getContentLength());return p??b(m)};return async l=>{let{url:m,method:p,data:R,signal:_,cancelToken:g,timeout:T,onDownloadProgress:F,onUploadProgress:I,responseType:N,headers:ye,withCredentials:ne="same-origin",fetchOptions:Le}=St(l),De=t||fetch;N=N?(N+"").toLowerCase():"text";let re=Qn([_,g&&g.toAbortSignal()],T),X=null;const H=re&&re.unsubscribe&&(()=>{re.unsubscribe()});let Be;try{if(I&&f&&p!=="get"&&p!=="head"&&(Be=await S(ye,R))!==0){let q=new n(m,{method:"POST",body:R,duplex:"half"}),J;if(a.isFormData(R)&&(J=q.headers.get("content-type"))&&ye.setContentType(J),q.body){const[be,se]=ze(Be,le(Je(I)));R=We(q.body,Ke,be,se)}}a.isString(ne)||(ne=ne?"include":"omit");const A=o&&"credentials"in n.prototype,ke={...Le,signal:re,method:p.toUpperCase(),headers:ye.normalize().toJSON(),body:R,duplex:"half",credentials:A?ne:void 0};X=o&&new n(m,ke);let j=await(o?De(X,Le):De(m,ke));const je=u&&(N==="stream"||N==="response");if(u&&(F||je&&H)){const q={};["status","statusText","headers"].forEach(qe=>{q[qe]=j[qe]});const J=a.toFiniteNumber(j.headers.get("content-length")),[be,se]=F&&ze(J,le(Je(F),!0))||[];j=new r(We(j.body,Ke,be,()=>{se&&se(),H&&H()}),q)}N=N||"text";let _t=await h[a.findKey(h,N)||"text"](j,l);return!je&&H&&H(),await new Promise((q,J)=>{Rt(q,J,{data:_t,headers:x.from(j.headers),status:j.status,statusText:j.statusText,config:l,request:X})})}catch(A){throw H&&H(),A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,l,X,A&&A.response),{cause:A.cause||A}):y.from(A,A&&A.code,l,X,A&&A.response)}}},nr=new Map,Ot=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,o=[r,s,n];let i=o.length,c=i,d,f,u=nr;for(;c--;)d=o[c],f=u.get(d),f===void 0&&u.set(d,f=c?new Map:tr(t)),u=f;return f};Ot();const Ue={http:En,xhr:Xn,fetch:{get:Ot}};a.forEach(Ue,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ze=e=>`- ${e}`,rr=e=>a.isFunction(e)||e===null||e===!1;function sr(e,t){e=a.isArray(e)?e:[e];const{length:n}=e;let r,s;const o={};for(let i=0;i<n;i++){r=e[i];let c;if(s=r,!rr(r)&&(s=Ue[(c=String(r)).toLowerCase()],s===void 0))throw new y(`Unknown adapter '${c}'`);if(s&&(a.isFunction(s)||(s=s.get(t))))break;o[c||"#"+i]=s}if(!s){const i=Object.entries(o).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let c=n?i.length>1?`since :
4
+ `+i.map(Ze).join(`
5
+ `):" "+Ze(i[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const Tt={getAdapter:sr,adapters:Ue};function Re(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new te(null,e)}function Ye(e){return Re(e),e.headers=x.from(e.headers),e.data=Ee.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Tt.getAdapter(e.adapter||ee.adapter,e)(e).then(function(r){return Re(e),r.data=Ee.call(e,e.transformResponse,r),r.headers=x.from(r.headers),r},function(r){return Et(r)||(Re(e),r&&r.response&&(r.response.data=Ee.call(e,e.transformResponse,r.response),r.response.headers=x.from(r.response.headers))),Promise.reject(r)})}const At="1.13.5",me={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{me[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const et={};me.transitional=function(t,n,r){function s(o,i){return"[Axios v"+At+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new y(s(i," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!et[i]&&(et[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};me.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function or(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],d=c===void 0||i(c,o,e);if(d!==!0)throw new y("option "+o+" must be "+d,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+o,y.ERR_BAD_OPTION)}}const ue={assertOptions:or,validators:me},P=ue.validators;let v=class{constructor(t){this.defaults=t||{},this.interceptors={request:new $e,response:new $e}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
+ `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=z(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&ue.assertOptions(r,{silentJSONParsing:P.transitional(P.boolean),forcedJSONParsing:P.transitional(P.boolean),clarifyTimeoutError:P.transitional(P.boolean),legacyInterceptorReqResOrdering:P.transitional(P.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:ue.assertOptions(s,{encode:P.function,serialize:P.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ue.assertOptions(n,{baseUrl:P.spelling("baseURL"),withXsrfToken:P.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],l=>{delete o[l]}),n.headers=x.concat(i,o);const c=[];let d=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(n)===!1)return;d=d&&m.synchronous;const p=n.transitional||Pe;p&&p.legacyInterceptorReqResOrdering?c.unshift(m.fulfilled,m.rejected):c.push(m.fulfilled,m.rejected)});const f=[];this.interceptors.response.forEach(function(m){f.push(m.fulfilled,m.rejected)});let u,h=0,b;if(!d){const l=[Ye.bind(this),void 0];for(l.unshift(...c),l.push(...f),b=l.length,u=Promise.resolve(n);h<b;)u=u.then(l[h++],l[h++]);return u}b=c.length;let S=n;for(;h<b;){const l=c[h++],m=c[h++];try{S=l(S)}catch(p){m.call(this,p);break}}try{u=Ye.call(this,S)}catch(l){return Promise.reject(l)}for(h=0,b=f.length;h<b;)u=u.then(f[h++],f[h++]);return u}getUri(t){t=z(this.defaults,t);const n=gt(t.baseURL,t.url,t.allowAbsoluteUrls);return bt(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){v.prototype[t]=function(n,r){return this.request(z(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(z(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}v.prototype[t]=n(),v.prototype[t+"Form"]=n(!0)});let ir=class Ct{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new te(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ct(function(s){t=s}),cancel:t}}};function ar(e){return function(n){return e.apply(null,n)}}function cr(e){return a.isObject(e)&&e.isAxiosError===!0}const xe={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(xe).forEach(([e,t])=>{xe[t]=e});function xt(e){const t=new v(e),n=it(v.prototype.request,t);return a.extend(n,v.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return xt(z(e,s))},n}const w=xt(ee);w.Axios=v;w.CanceledError=te;w.CancelToken=ir;w.isCancel=Et;w.VERSION=At;w.toFormData=he;w.AxiosError=y;w.Cancel=w.CanceledError;w.all=function(t){return Promise.all(t)};w.spread=ar;w.isAxiosError=cr;w.mergeConfig=z;w.AxiosHeaders=x;w.formToJSON=e=>wt(a.isHTMLForm(e)?new FormData(e):e);w.getAdapter=Tt.getAdapter;w.HttpStatusCode=xe;w.default=w;const{Axios:dr,AxiosError:pr,CanceledError:hr,isCancel:mr,CancelToken:yr,VERSION:br,all:wr,Cancel:Er,isAxiosError:Rr,spread:gr,toFormData:Sr,AxiosHeaders:Or,HttpStatusCode:Tr,formToJSON:Ar,getAdapter:Cr,mergeConfig:xr}=w;exports.axios=w;exports.process$1=Oe;
@@ -6,6 +6,7 @@ export interface UrlSignOptions {
6
6
  export declare class UrlSign {
7
7
  private axiosClient;
8
8
  private baseURI;
9
+ private xmlParser;
9
10
  private signingKey;
10
11
  private ALGORITHM;
11
12
  private TTL;
@@ -1,6 +1,6 @@
1
- import { g as h } from "./index-8RyXehLU.js";
2
- const F = /^(\w+:\/\/[^/?]+)?(.*?)$/, A = (t) => t.filter((e) => typeof e == "string" || typeof e == "number").map((e) => `${e}`).filter((e) => e), E = (t) => {
3
- const e = t.join("/"), [, r = "", n = ""] = e.match(F) || [];
1
+ import { g as f } from "./index-cttW6Cve.js";
2
+ const D = /^(\w+:\/\/[^/?]+)?(.*?)$/, F = (t) => t.filter((e) => typeof e == "string" || typeof e == "number").map((e) => `${e}`).filter((e) => e), H = (t) => {
3
+ const e = t.join("/"), [, r = "", n = ""] = e.match(D) || [];
4
4
  return {
5
5
  prefix: r,
6
6
  pathname: {
@@ -9,10 +9,10 @@ const F = /^(\w+:\/\/[^/?]+)?(.*?)$/, A = (t) => t.filter((e) => typeof e == "st
9
9
  hasTrailing: /\/+$/.test(n)
10
10
  }
11
11
  };
12
- }, H = (t, e) => {
13
- const { prefix: r, pathname: n } = t, { parts: a, hasLeading: y, hasTrailing: z } = n, { leadingSlash: b, trailingSlash: v } = e, j = b === !0 || b === "keep" && y, D = v === !0 || v === "keep" && z;
12
+ }, I = (t, e) => {
13
+ const { prefix: r, pathname: n } = t, { parts: a, hasLeading: y, hasTrailing: z } = n, { leadingSlash: b, trailingSlash: v } = e, j = b === !0 || b === "keep" && y, A = v === !0 || v === "keep" && z;
14
14
  let o = r;
15
- return a.length > 0 && ((o || j) && (o += "/"), o += a.join("/")), D && (o += "/"), !o && j && (o += "/"), o;
15
+ return a.length > 0 && ((o || j) && (o += "/"), o += a.join("/")), A && (o += "/"), !o && j && (o += "/"), o;
16
16
  }, Ut = (...t) => {
17
17
  const e = t[t.length - 1];
18
18
  let r;
@@ -20,17 +20,13 @@ const F = /^(\w+:\/\/[^/?]+)?(.*?)$/, A = (t) => t.filter((e) => typeof e == "st
20
20
  leadingSlash: !0,
21
21
  trailingSlash: !1,
22
22
  ...r
23
- }, t = A(t);
24
- const n = E(t);
25
- return H(n, r);
23
+ }, t = F(t);
24
+ const n = H(t);
25
+ return I(n, r);
26
26
  };
27
- var Jt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
28
- function Kt(t) {
29
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
30
- }
31
- var I = typeof h == "object" && h && h.Object === Object && h, M = typeof self == "object" && self && self.Object === Object && self, _ = I || M || Function("return this")(), s = _.Symbol, w = Object.prototype, N = w.hasOwnProperty, G = w.toString, l = s ? s.toStringTag : void 0;
27
+ var E = typeof f == "object" && f && f.Object === Object && f, N = typeof self == "object" && self && self.Object === Object && self, _ = E || N || Function("return this")(), s = _.Symbol, P = Object.prototype, M = P.hasOwnProperty, G = P.toString, l = s ? s.toStringTag : void 0;
32
28
  function L(t) {
33
- var e = N.call(t, l), r = t[l];
29
+ var e = M.call(t, l), r = t[l];
34
30
  try {
35
31
  t[l] = void 0;
36
32
  var n = !0;
@@ -44,7 +40,7 @@ function J(t) {
44
40
  return U.call(t);
45
41
  }
46
42
  var K = "[object Null]", q = "[object Undefined]", S = s ? s.toStringTag : void 0;
47
- function P(t) {
43
+ function $(t) {
48
44
  return t == null ? t === void 0 ? q : K : S && S in Object(t) ? L(t) : J(t);
49
45
  }
50
46
  function V(t) {
@@ -52,7 +48,7 @@ function V(t) {
52
48
  }
53
49
  var B = "[object Symbol]";
54
50
  function Q(t) {
55
- return typeof t == "symbol" || V(t) && P(t) == B;
51
+ return typeof t == "symbol" || V(t) && $(t) == B;
56
52
  }
57
53
  function W(t, e) {
58
54
  for (var r = -1, n = t == null ? 0 : t.length, a = Array(n); ++r < n; )
@@ -60,11 +56,11 @@ function W(t, e) {
60
56
  return a;
61
57
  }
62
58
  var X = Array.isArray, m = s ? s.prototype : void 0, O = m ? m.toString : void 0;
63
- function $(t) {
59
+ function w(t) {
64
60
  if (typeof t == "string")
65
61
  return t;
66
62
  if (X(t))
67
- return W(t, $) + "";
63
+ return W(t, w) + "";
68
64
  if (Q(t))
69
65
  return O ? O.call(t) : "";
70
66
  var e = t + "";
@@ -78,7 +74,7 @@ var Y = "[object AsyncFunction]", Z = "[object Function]", k = "[object Generato
78
74
  function et(t) {
79
75
  if (!C(t))
80
76
  return !1;
81
- var e = P(t);
77
+ var e = $(t);
82
78
  return e == Z || e == k || e == Y || e == tt;
83
79
  }
84
80
  var g = _["__core-js_shared__"], T = (function() {
@@ -102,13 +98,13 @@ function ot(t) {
102
98
  }
103
99
  return "";
104
100
  }
105
- var it = /[\\^$.*+?()[\]{}|]/g, st = /^\[object .+?Constructor\]$/, ct = Function.prototype, lt = Object.prototype, ut = ct.toString, ft = lt.hasOwnProperty, ht = RegExp(
106
- "^" + ut.call(ft).replace(it, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
101
+ var it = /[\\^$.*+?()[\]{}|]/g, st = /^\[object .+?Constructor\]$/, ct = Function.prototype, lt = Object.prototype, ht = ct.toString, ut = lt.hasOwnProperty, ft = RegExp(
102
+ "^" + ht.call(ut).replace(it, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
107
103
  );
108
104
  function pt(t) {
109
105
  if (!C(t) || rt(t))
110
106
  return !1;
111
- var e = et(t) ? ht : st;
107
+ var e = et(t) ? ft : st;
112
108
  return e.test(ot(t));
113
109
  }
114
110
  function dt(t, e) {
@@ -121,9 +117,9 @@ function x(t, e) {
121
117
  function gt(t, e) {
122
118
  return t === e || t !== t && e !== e;
123
119
  }
124
- var u = x(Object, "create");
120
+ var h = x(Object, "create");
125
121
  function _t() {
126
- this.__data__ = u ? u(null) : {}, this.size = 0;
122
+ this.__data__ = h ? h(null) : {}, this.size = 0;
127
123
  }
128
124
  function yt(t) {
129
125
  var e = this.has(t) && delete this.__data__[t];
@@ -132,7 +128,7 @@ function yt(t) {
132
128
  var bt = "__lodash_hash_undefined__", vt = Object.prototype, jt = vt.hasOwnProperty;
133
129
  function St(t) {
134
130
  var e = this.__data__;
135
- if (u) {
131
+ if (h) {
136
132
  var r = e[t];
137
133
  return r === bt ? void 0 : r;
138
134
  }
@@ -141,12 +137,12 @@ function St(t) {
141
137
  var mt = Object.prototype, Ot = mt.hasOwnProperty;
142
138
  function Tt(t) {
143
139
  var e = this.__data__;
144
- return u ? e[t] !== void 0 : Ot.call(e, t);
140
+ return h ? e[t] !== void 0 : Ot.call(e, t);
145
141
  }
146
- var wt = "__lodash_hash_undefined__";
147
- function Pt(t, e) {
142
+ var Pt = "__lodash_hash_undefined__";
143
+ function $t(t, e) {
148
144
  var r = this.__data__;
149
- return this.size += this.has(t) ? 0 : 1, r[t] = u && e === void 0 ? wt : e, this;
145
+ return this.size += this.has(t) ? 0 : 1, r[t] = h && e === void 0 ? Pt : e, this;
150
146
  }
151
147
  function i(t) {
152
148
  var e = -1, r = t == null ? 0 : t.length;
@@ -159,8 +155,8 @@ i.prototype.clear = _t;
159
155
  i.prototype.delete = yt;
160
156
  i.prototype.get = St;
161
157
  i.prototype.has = Tt;
162
- i.prototype.set = Pt;
163
- function $t() {
158
+ i.prototype.set = $t;
159
+ function wt() {
164
160
  this.__data__ = [], this.size = 0;
165
161
  }
166
162
  function p(t, e) {
@@ -177,14 +173,14 @@ function zt(t) {
177
173
  var n = e.length - 1;
178
174
  return r == n ? e.pop() : xt.call(e, r, 1), --this.size, !0;
179
175
  }
180
- function Dt(t) {
176
+ function At(t) {
181
177
  var e = this.__data__, r = p(e, t);
182
178
  return r < 0 ? void 0 : e[r][1];
183
179
  }
184
- function Ft(t) {
180
+ function Dt(t) {
185
181
  return p(this.__data__, t) > -1;
186
182
  }
187
- function At(t, e) {
183
+ function Ft(t, e) {
188
184
  var r = this.__data__, n = p(r, t);
189
185
  return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
190
186
  }
@@ -195,32 +191,32 @@ function c(t) {
195
191
  this.set(n[0], n[1]);
196
192
  }
197
193
  }
198
- c.prototype.clear = $t;
194
+ c.prototype.clear = wt;
199
195
  c.prototype.delete = zt;
200
- c.prototype.get = Dt;
201
- c.prototype.has = Ft;
202
- c.prototype.set = At;
203
- var Et = x(_, "Map");
204
- function Ht() {
196
+ c.prototype.get = At;
197
+ c.prototype.has = Dt;
198
+ c.prototype.set = Ft;
199
+ var Ht = x(_, "Map");
200
+ function It() {
205
201
  this.size = 0, this.__data__ = {
206
202
  hash: new i(),
207
- map: new (Et || c)(),
203
+ map: new (Ht || c)(),
208
204
  string: new i()
209
205
  };
210
206
  }
211
- function It(t) {
207
+ function Et(t) {
212
208
  var e = typeof t;
213
209
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
214
210
  }
215
211
  function d(t, e) {
216
212
  var r = t.__data__;
217
- return It(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
213
+ return Et(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
218
214
  }
219
- function Mt(t) {
215
+ function Nt(t) {
220
216
  var e = d(this, t).delete(t);
221
217
  return this.size -= e ? 1 : 0, e;
222
218
  }
223
- function Nt(t) {
219
+ function Mt(t) {
224
220
  return d(this, t).get(t);
225
221
  }
226
222
  function Gt(t) {
@@ -230,32 +226,30 @@ function Lt(t, e) {
230
226
  var r = d(this, t), n = r.size;
231
227
  return r.set(t, e), this.size += r.size == n ? 0 : 1, this;
232
228
  }
233
- function f(t) {
229
+ function u(t) {
234
230
  var e = -1, r = t == null ? 0 : t.length;
235
231
  for (this.clear(); ++e < r; ) {
236
232
  var n = t[e];
237
233
  this.set(n[0], n[1]);
238
234
  }
239
235
  }
240
- f.prototype.clear = Ht;
241
- f.prototype.delete = Mt;
242
- f.prototype.get = Nt;
243
- f.prototype.has = Gt;
244
- f.prototype.set = Lt;
245
- function qt(t) {
246
- return t == null ? "" : $(t);
236
+ u.prototype.clear = It;
237
+ u.prototype.delete = Nt;
238
+ u.prototype.get = Mt;
239
+ u.prototype.has = Gt;
240
+ u.prototype.set = Lt;
241
+ function Jt(t) {
242
+ return t == null ? "" : w(t);
247
243
  }
248
244
  export {
249
- f as M,
250
- Kt as a,
251
- V as b,
252
- W as c,
253
- X as d,
254
- Q as e,
255
- Jt as f,
245
+ u as M,
246
+ Q as a,
247
+ et as b,
248
+ V as c,
249
+ W as d,
256
250
  x as g,
257
- et as i,
251
+ X as i,
258
252
  _ as r,
259
- qt as t,
253
+ Jt as t,
260
254
  Ut as u
261
255
  };
@@ -0,0 +1 @@
1
+ "use strict";const f=require("./index-D0bnLDAA.cjs"),E=/^(\w+:\/\/[^/?]+)?(.*?)$/,M=t=>t.filter(e=>typeof e=="string"||typeof e=="number").map(e=>`${e}`).filter(e=>e),G=t=>{const e=t.join("/"),[,r="",n=""]=e.match(E)||[];return{prefix:r,pathname:{parts:n.split("/").filter(a=>a!==""),hasLeading:/^\/+/.test(n),hasTrailing:/\/+$/.test(n)}}},L=(t,e)=>{const{prefix:r,pathname:n}=t,{parts:a,hasLeading:b,hasTrailing:I}=n,{leadingSlash:v,trailingSlash:j}=e,S=v===!0||v==="keep"&&b,N=j===!0||j==="keep"&&I;let o=r;return a.length>0&&((o||S)&&(o+="/"),o+=a.join("/")),N&&(o+="/"),!o&&S&&(o+="/"),o},R=(...t)=>{const e=t[t.length-1];let r;e&&typeof e=="object"&&(r=e,t=t.slice(0,-1)),r={leadingSlash:!0,trailingSlash:!1,...r},t=M(t);const n=G(t);return L(n,r)};var U=typeof f.global=="object"&&f.global&&f.global.Object===Object&&f.global,J=typeof self=="object"&&self&&self.Object===Object&&self,p=U||J||Function("return this")(),s=p.Symbol,$=Object.prototype,q=$.hasOwnProperty,K=$.toString,u=s?s.toStringTag:void 0;function V(t){var e=q.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch{}var a=K.call(t);return n&&(e?t[u]=r:delete t[u]),a}var B=Object.prototype,Q=B.toString;function W(t){return Q.call(t)}var X="[object Null]",Y="[object Undefined]",m=s?s.toStringTag:void 0;function w(t){return t==null?t===void 0?Y:X:m&&m in Object(t)?V(t):W(t)}function C(t){return t!=null&&typeof t=="object"}var Z="[object Symbol]";function x(t){return typeof t=="symbol"||C(t)&&w(t)==Z}function z(t,e){for(var r=-1,n=t==null?0:t.length,a=Array(n);++r<n;)a[r]=e(t[r],r,t);return a}var A=Array.isArray,O=s?s.prototype:void 0,T=O?O.toString:void 0;function F(t){if(typeof t=="string")return t;if(A(t))return z(t,F)+"";if(x(t))return T?T.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function D(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var k="[object AsyncFunction]",tt="[object Function]",et="[object GeneratorFunction]",rt="[object Proxy]";function H(t){if(!D(t))return!1;var e=w(t);return e==tt||e==et||e==k||e==rt}var _=p["__core-js_shared__"],P=(function(){var t=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function nt(t){return!!P&&P in t}var at=Function.prototype,ot=at.toString;function it(t){if(t!=null){try{return ot.call(t)}catch{}try{return t+""}catch{}}return""}var st=/[\\^$.*+?()[\]{}|]/g,ct=/^\[object .+?Constructor\]$/,lt=Function.prototype,ut=Object.prototype,ht=lt.toString,ft=ut.hasOwnProperty,pt=RegExp("^"+ht.call(ft).replace(st,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dt(t){if(!D(t)||nt(t))return!1;var e=H(t)?pt:ct;return e.test(it(t))}function gt(t,e){return t?.[e]}function y(t,e){var r=gt(t,e);return dt(r)?r:void 0}function _t(t,e){return t===e||t!==t&&e!==e}var h=y(Object,"create");function yt(){this.__data__=h?h(null):{},this.size=0}function bt(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var vt="__lodash_hash_undefined__",jt=Object.prototype,St=jt.hasOwnProperty;function mt(t){var e=this.__data__;if(h){var r=e[t];return r===vt?void 0:r}return St.call(e,t)?e[t]:void 0}var Ot=Object.prototype,Tt=Ot.hasOwnProperty;function Pt(t){var e=this.__data__;return h?e[t]!==void 0:Tt.call(e,t)}var $t="__lodash_hash_undefined__";function wt(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=h&&e===void 0?$t:e,this}function i(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}i.prototype.clear=yt;i.prototype.delete=bt;i.prototype.get=mt;i.prototype.has=Pt;i.prototype.set=wt;function Ct(){this.__data__=[],this.size=0}function d(t,e){for(var r=t.length;r--;)if(_t(t[r][0],e))return r;return-1}var xt=Array.prototype,zt=xt.splice;function At(t){var e=this.__data__,r=d(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():zt.call(e,r,1),--this.size,!0}function Ft(t){var e=this.__data__,r=d(e,t);return r<0?void 0:e[r][1]}function Dt(t){return d(this.__data__,t)>-1}function Ht(t,e){var r=this.__data__,n=d(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function c(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=Ct;c.prototype.delete=At;c.prototype.get=Ft;c.prototype.has=Dt;c.prototype.set=Ht;var It=y(p,"Map");function Nt(){this.size=0,this.__data__={hash:new i,map:new(It||c),string:new i}}function Et(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function g(t,e){var r=t.__data__;return Et(e)?r[typeof e=="string"?"string":"hash"]:r.map}function Mt(t){var e=g(this,t).delete(t);return this.size-=e?1:0,e}function Gt(t){return g(this,t).get(t)}function Lt(t){return g(this,t).has(t)}function Rt(t,e){var r=g(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function l(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=Nt;l.prototype.delete=Mt;l.prototype.get=Gt;l.prototype.has=Lt;l.prototype.set=Rt;function Ut(t){return t==null?"":F(t)}exports.MapCache=l;exports.arrayMap=z;exports.getNative=y;exports.isArray=A;exports.isFunction=H;exports.isObjectLike=C;exports.isSymbol=x;exports.root=p;exports.toString=Ut;exports.urlJoin=R;