10 lines
41 KiB
JavaScript
10 lines
41 KiB
JavaScript
function ot(e,t){return function(){return e.apply(t,arguments)}}const{toString:xt}=Object.prototype,{getPrototypeOf:pe}=Object,{iterator:he,toStringTag:it}=Symbol,me=(e=>t=>{const n=xt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),F=e=>(e=e.toLowerCase(),t=>me(t)===e),ye=e=>t=>typeof t===e,{isArray:X}=Array,K=ye("undefined");function Y(e){return e!==null&&!K(e)&&e.constructor!==null&&!K(e.constructor)&&N(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const at=F("ArrayBuffer");function Ct(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&at(e.buffer),t}const Nt=ye("string"),N=ye("function"),ct=ye("number"),ee=e=>e!==null&&typeof e=="object",Pt=e=>e===!0||e===!1,ae=e=>{if(me(e)!=="object")return!1;const t=pe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(it in e)&&!(he in e)},Dt=e=>{if(!ee(e)||Y(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Lt=F("Date"),Ft=F("File"),Ut=e=>!!(e&&typeof e.uri!="undefined"),Bt=e=>e&&typeof e.getParts!="undefined",kt=F("Blob"),jt=F("FileList"),qt=e=>ee(e)&&N(e.pipe);function It(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}}const Je=It(),Ve=typeof Je.FormData!="undefined"?Je.FormData:void 0,Ht=e=>{if(!e)return!1;if(Ve&&e instanceof Ve)return!0;const t=pe(e);if(!t||t===Object.prototype||!N(e.append))return!1;const n=me(e);return n==="formdata"||n==="object"&&N(e.toString)&&e.toString()==="[object FormData]"},Mt=F("URLSearchParams"),[vt,zt,$t,Jt]=["ReadableStream","Request","Response","Headers"].map(F),Vt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function te(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let r,s;if(typeof e!="object"&&(e=[e]),X(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(Y(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(Y(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 v=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),ut=e=>!K(e)&&e!==v;function xe(...e){const{caseless:t,skipUndefined:n}=ut(this)&&this||{},r={},s=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const c=t&<(r,i)||i,f=Ce(r,c)?r[c]:void 0;ae(f)&&ae(o)?r[c]=xe(f,o):ae(o)?r[c]=xe({},o):X(o)?r[c]=o.slice():(!n||!K(o))&&(r[c]=o)};for(let o=0,i=e.length;o<i;o++)e[o]&&te(e[o],s);return r}const Wt=(e,t,n,{allOwnKeys:r}={})=>(te(t,(s,o)=>{n&&N(s)?Object.defineProperty(e,o,{__proto__:null,value:ot(s,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Kt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Xt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),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)},Gt=(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&&pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Qt=(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},Zt=e=>{if(!e)return null;if(X(e))return e;let t=e.length;if(!ct(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Yt=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&pe(Uint8Array)),en=(e,t)=>{const r=(e&&e[he]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},tn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},nn=F("HTMLFormElement"),rn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ce=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sn=F("RegExp"),ft=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};te(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},on=e=>{ft(e,(t,n)=>{if(N(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(!!N(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+"'")})}})},an=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return X(e)?r(e):r(String(e).split(t)),n},cn=()=>{},ln=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function un(e){return!!(e&&N(e.append)&&e[it]==="FormData"&&e[he])}const fn=e=>{const t=new Array(10),n=(r,s)=>{if(ee(r)){if(t.indexOf(r)>=0)return;if(Y(r))return r;if(!("toJSON"in r)){t[s]=r;const o=X(r)?[]:{};return te(r,(i,c)=>{const f=n(i,s+1);!K(f)&&(o[c]=f)}),t[s]=void 0,o}}return r};return n(e,0)},dn=F("AsyncFunction"),pn=e=>e&&(ee(e)||N(e))&&N(e.then)&&N(e.catch),dt=((e,t)=>e?setImmediate:t?((n,r)=>(v.addEventListener("message",({source:s,data:o})=>{s===v&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),v.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",N(v.postMessage)),hn=typeof queueMicrotask!="undefined"?queueMicrotask.bind(v):typeof process!="undefined"&&process.nextTick||dt,mn=e=>e!=null&&N(e[he]);var a={isArray:X,isArrayBuffer:at,isBuffer:Y,isFormData:Ht,isArrayBufferView:Ct,isString:Nt,isNumber:ct,isBoolean:Pt,isObject:ee,isPlainObject:ae,isEmptyObject:Dt,isReadableStream:vt,isRequest:zt,isResponse:$t,isHeaders:Jt,isUndefined:K,isDate:Lt,isFile:Ft,isReactNativeBlob:Ut,isReactNative:Bt,isBlob:kt,isRegExp:sn,isFunction:N,isStream:qt,isURLSearchParams:Mt,isTypedArray:Yt,isFileList:jt,forEach:te,merge:xe,extend:Wt,trim:Vt,stripBOM:Kt,inherits:Xt,toFlatObject:Gt,kindOf:me,kindOfTest:F,endsWith:Qt,toArray:Zt,forEachEntry:en,matchAll:tn,isHTMLForm:nn,hasOwnProperty:Ce,hasOwnProp:Ce,reduceDescriptors:ft,freezeMethods:on,toObjectSet:an,toCamelCase:rn,noop:cn,toFiniteNumber:ln,findKey:lt,global:v,isContextDefined:ut,isSpecCompliantForm:un,toJSONObject:fn,isAsyncFn:dn,isThenable:pn,setImmediate:dt,asap:hn,isIterable:mn};const yn=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"]);var bn=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&yn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};const We=Symbol("internals"),wn=/[^\x09\x20-\x7E\x80-\xFF]/g;function En(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function Z(e){return e&&String(e).trim().toLowerCase()}function Rn(e){return En(e.replace(wn,""))}function ce(e){return e===!1||e==null?e:a.isArray(e)?e.map(ce):Rn(String(e))}function gn(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 On=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Se(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 Sn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function An(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class be{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,f,u){const l=Z(f);if(!l)throw new Error("header name must be a non-empty string");const h=a.findKey(s,l);(!h||s[h]===void 0||u===!0||u===void 0&&s[h]!==!1)&&(s[h||f]=ce(c))}const i=(c,f)=>a.forEach(c,(u,l)=>o(u,l,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!On(t))i(bn(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},f,u;for(const l of t){if(!a.isArray(l))throw TypeError("Object iterator must return a key-value pair");c[u=l[0]]=(f=c[u])?a.isArray(f)?[...f,l[1]]:[f,l[1]]:l[1]}i(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=Z(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return gn(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=Z(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Se(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=Z(i),i){const c=a.findKey(r,i);c&&(!n||Se(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||Se(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?Sn(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(`
|
|
`)}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[We]=this[We]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=Z(i);r[c]||(An(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(be.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(be);var L=be;const _n="[REDACTED ****]";function Tn(e){if(a.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(a.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function xn(e,t){const n=new Set(t.map(o=>String(o).toLowerCase())),r=[],s=o=>{if(o===null||typeof o!="object"||a.isBuffer(o))return o;if(r.indexOf(o)!==-1)return;o instanceof L&&(o=o.toJSON()),r.push(o);let i;if(a.isArray(o))i=[],o.forEach((c,f)=>{const u=s(c);a.isUndefined(u)||(i[f]=u)});else{if(!a.isPlainObject(o)&&Tn(o))return r.pop(),o;i=Object.create(null);for(const[c,f]of Object.entries(o)){const u=n.has(c.toLowerCase())?_n:s(f);a.isUndefined(u)||(i[c]=u)}}return r.pop(),i};return s(e)}class _ extends Error{static from(t,n,r,s,o,i){const c=new _(t.message,n||t.code,r,s,o);return c.cause=t,c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),i&&Object.assign(c,i),c}constructor(t,n,r,s,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),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(){const t=this.config,n=t&&a.hasOwnProp(t,"redact")?t.redact:void 0,r=a.isArray(n)&&n.length>0?xn(t,n):a.toJSONObject(t);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:r,code:this.code,status:this.status}}}_.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";_.ERR_BAD_OPTION="ERR_BAD_OPTION";_.ECONNABORTED="ECONNABORTED";_.ETIMEDOUT="ETIMEDOUT";_.ECONNREFUSED="ECONNREFUSED";_.ERR_NETWORK="ERR_NETWORK";_.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";_.ERR_DEPRECATED="ERR_DEPRECATED";_.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";_.ERR_BAD_REQUEST="ERR_BAD_REQUEST";_.ERR_CANCELED="ERR_CANCELED";_.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";_.ERR_INVALID_URL="ERR_INVALID_URL";_.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var y=_,Cn=null;function Ne(e){return a.isPlainObject(e)||a.isArray(e)}function pt(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ae(e,t,n){return e?e.concat(t).map(function(s,o){return s=pt(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Nn(e){return a.isArray(e)&&!e.some(Ne)}const Pn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function we(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(d,T){return!a.isUndefined(T[d])});const r=n.metaTokens,s=n.visitor||h,o=n.dots,i=n.indexes,c=n.Blob||typeof Blob!="undefined"&&Blob,f=n.maxDepth===void 0?100:n.maxDepth,u=c&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(a.isBoolean(p))return p.toString();if(!u&&a.isBlob(p))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function h(p,d,T){let m=p;if(a.isReactNative(t)&&a.isReactNativeBlob(p))return t.append(Ae(T,d,o),l(p)),!1;if(p&&!T&&typeof p=="object"){if(a.endsWith(d,"{}"))d=r?d:d.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&Nn(p)||(a.isFileList(p)||a.endsWith(d,"[]"))&&(m=a.toArray(p)))return d=pt(d),m.forEach(function(g,S){!(a.isUndefined(g)||g===null)&&t.append(i===!0?Ae([d],S,o):i===null?d:d+"[]",l(g))}),!1}return Ne(p)?!0:(t.append(Ae(T,d,o),l(p)),!1)}const R=[],b=Object.assign(Pn,{defaultVisitor:h,convertValue:l,isVisitable:Ne});function E(p,d,T=0){if(!a.isUndefined(p)){if(T>f)throw new y("Object is too deeply nested ("+T+" levels). Max depth: "+f,y.ERR_FORM_DATA_DEPTH_EXCEEDED);if(R.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));R.push(p),a.forEach(p,function(w,g){(!(a.isUndefined(w)||w===null)&&s.call(t,w,a.isString(g)?g.trim():g,d,b))===!0&&E(w,d?d.concat(g):[g],T+1)}),R.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return E(e),t}function Ke(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Le(e,t){this._pairs=[],e&&we(e,this,t)}const ht=Le.prototype;ht.append=function(t,n){this._pairs.push([t,n])};ht.toString=function(t){const n=t?function(r){return t.call(this,r,Ke)}:Ke;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Dn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function mt(e,t,n){if(!t)return e;const r=n&&n.encode||Dn,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 Le(t,s).toString(r),i){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ln{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)})}}var Xe=Ln,Fe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Fn=typeof URLSearchParams!="undefined"?URLSearchParams:Le,Un=typeof FormData!="undefined"?FormData:null,Bn=typeof Blob!="undefined"?Blob:null,kn={isBrowser:!0,classes:{URLSearchParams:Fn,FormData:Un,Blob:Bn},protocols:["http","https","file","blob","url","data"]};const Ue=typeof window!="undefined"&&typeof document!="undefined",Pe=typeof navigator=="object"&&navigator||void 0,jn=Ue&&(!Pe||["ReactNative","NativeScript","NS"].indexOf(Pe.product)<0),qn=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),In=Ue&&window.location.href||"http://localhost";var Hn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ue,hasStandardBrowserWebWorkerEnv:qn,hasStandardBrowserEnv:jn,navigator:Pe,origin:In},Symbol.toStringTag,{value:"Module"})),C={...Hn,...kn};function Mn(e,t){return we(e,new C.classes.URLSearchParams,{visitor:function(n,r,s,o){return C.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function vn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function zn(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 yt(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),f=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=a.isArray(s[i])?s[i].concat(r):[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]=zn(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(vn(r),s,n,0)}),n}return null}const W=(e,t)=>e!=null&&a.hasOwnProp(e,t)?e[t]:void 0;function $n(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 Be={transitional:Fe,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(yt(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){const f=W(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return Mn(t,f).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=W(this,"env"),l=u&&u.FormData;return we(c?{"files[]":t}:t,l&&new l,f)}}return o||s?(n.setContentType("application/json",!1),$n(t)):t}],transformResponse:[function(t){const n=W(this,"transitional")||Be.transitional,r=n&&n.forcedJSONParsing,s=W(this,"responseType"),o=s==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!s||o)){const c=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,W(this,"parseReviver"))}catch(f){if(c)throw f.name==="SyntaxError"?y.from(f,y.ERR_BAD_RESPONSE,this,null,W(this,"response")):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:C.classes.FormData,Blob:C.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","query"],e=>{Be.headers[e]={}});var ke=Be;function _e(e,t){const n=this||ke,r=t||n,s=L.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 bt(e){return!!(e&&e.__CANCEL__)}class Jn extends y{constructor(t,n,r){super(t==null?"canceled":t,y.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}}var ne=Jn;function wt(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,n.status>=400&&n.status<500?y.ERR_BAD_REQUEST:y.ERR_BAD_RESPONSE,n.config,n.request,n))}function Vn(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function Wn(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(f){const u=Date.now(),l=r[o];i||(i=u),n[s]=f,r[s]=u;let h=o,R=0;for(;h!==s;)R+=n[h++],h=h%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),u-i<t)return;const b=l&&u-l;return b?Math.round(R*1e3/b):void 0}}function Kn(e,t){let n=0,r=1e3/t,s,o;const i=(u,l=Date.now())=>{n=l,s=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const l=Date.now(),h=l-n;h>=r?i(u,l):(s=u,o||(o=setTimeout(()=>{o=null,i(s)},r-h)))},()=>s&&i(s)]}const fe=(e,t,n=3)=>{let r=0;const s=Wn(50,250);return Kn(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,f=c!=null?Math.min(i,c):i,u=Math.max(0,f-r),l=s(u);r=Math.max(r,f);const h={loaded:f,total:c,progress:c?f/c:void 0,bytes:u,rate:l||void 0,estimated:l&&c?(c-f)/l:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},n)},Ge=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Qe=e=>(...t)=>a.asap(()=>e(...t));var Xn=C.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,C.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(C.origin),C.navigator&&/(msie|trident)/i.test(C.navigator.userAgent)):()=>!0,Gn=C.hasStandardBrowserEnv?{write(e,t,n,r,s,o,i){if(typeof document=="undefined")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=="undefined")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),s=r.indexOf("=");if(s!==-1&&r.slice(0,s)===e)return decodeURIComponent(r.slice(s+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Qn(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Zn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Et(e,t,n){let r=!Qn(t);return e&&(r||n===!1)?Zn(e,t):t}const Ze=e=>e instanceof L?{...e}:e;function z(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(u,l,h,R){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:R},u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(u,l,h,R){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u,h,R)}else return r(u,l,h,R)}function o(u,l){if(!a.isUndefined(l))return r(void 0,l)}function i(u,l){if(a.isUndefined(l)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,l)}function c(u,l,h){if(a.hasOwnProp(t,h))return r(u,l);if(a.hasOwnProp(e,h))return r(void 0,u)}const f={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,allowedSocketPaths:i,responseEncoding:i,validateStatus:c,headers:(u,l,h)=>s(Ze(u),Ze(l),h,!0)};return a.forEach(Object.keys({...e,...t}),function(l){if(l==="__proto__"||l==="constructor"||l==="prototype")return;const h=a.hasOwnProp(f,l)?f[l]:s,R=a.hasOwnProp(e,l)?e[l]:void 0,b=a.hasOwnProp(t,l)?t[l]:void 0,E=h(R,b,l);a.isUndefined(E)&&h!==c||(n[l]=E)}),n}const Yn=["content-type","content-length"];function er(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,s])=>{Yn.includes(r.toLowerCase())&&e.set(r,s)})}const tr=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));var Rt=e=>{const t=z({},e),n=R=>a.hasOwnProp(t,R)?t[R]:void 0,r=n("data");let s=n("withXSRFToken");const o=n("xsrfHeaderName"),i=n("xsrfCookieName");let c=n("headers");const f=n("auth"),u=n("baseURL"),l=n("allowAbsoluteUrls"),h=n("url");if(t.headers=c=L.from(c),t.url=mt(Et(u,h,l),e.params,e.paramsSerializer),f&&c.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?tr(f.password):""))),a.isFormData(r)&&(C.hasStandardBrowserEnv||C.hasStandardBrowserWebWorkerEnv?c.setContentType(void 0):a.isFunction(r.getHeaders)&&er(c,r.getHeaders(),n("formDataHeaderPolicy"))),C.hasStandardBrowserEnv&&(a.isFunction(s)&&(s=s(t)),s===!0||s==null&&Xn(t.url))){const b=o&&i&&Gn.read(i);b&&c.set(o,b)}return t};const nr=typeof XMLHttpRequest!="undefined";var rr=nr&&function(e){return new Promise(function(n,r){const s=Rt(e);let o=s.data;const i=L.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:u}=s,l,h,R,b,E;function p(){b&&b(),E&&E(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let d=new XMLHttpRequest;d.open(s.method.toUpperCase(),s.url,!0),d.timeout=s.timeout;function T(){if(!d)return;const w=L.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),S={data:!c||c==="text"||c==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:w,config:e,request:d};wt(function(J){n(J),p()},function(J){r(J),p()},S),d=null}"onloadend"in d?d.onloadend=T:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.startsWith("file:"))||setTimeout(T)},d.onabort=function(){!d||(r(new y("Request aborted",y.ECONNABORTED,e,d)),p(),d=null)},d.onerror=function(g){const S=g&&g.message?g.message:"Network Error",$=new y(S,y.ERR_NETWORK,e,d);$.event=g||null,r($),p(),d=null},d.ontimeout=function(){let g=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const S=s.transitional||Fe;s.timeoutErrorMessage&&(g=s.timeoutErrorMessage),r(new y(g,S.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,d)),p(),d=null},o===void 0&&i.setContentType(null),"setRequestHeader"in d&&a.forEach(i.toJSON(),function(g,S){d.setRequestHeader(S,g)}),a.isUndefined(s.withCredentials)||(d.withCredentials=!!s.withCredentials),c&&c!=="json"&&(d.responseType=s.responseType),u&&([R,E]=fe(u,!0),d.addEventListener("progress",R)),f&&d.upload&&([h,b]=fe(f),d.upload.addEventListener("progress",h),d.upload.addEventListener("loadend",b)),(s.cancelToken||s.signal)&&(l=w=>{!d||(r(!w||w.type?new ne(null,e,d):w),d.abort(),p(),d=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const m=Vn(s.url);if(m&&!C.protocols.includes(m)){r(new y("Unsupported protocol "+m+":",y.ERR_BAD_REQUEST,e));return}d.send(o||null)})};const sr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,c();const l=u instanceof Error?u:this.reason;r.abort(l instanceof y?l:new ne(l instanceof Error?l.message:l))}};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(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}};var or=sr;const ir=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},ar=async function*(e,t){for await(const n of cr(e))yield*ir(n,t)},cr=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()}},Ye=(e,t,n,r)=>{const s=ar(e,t);let o=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:u,value:l}=await s.next();if(u){c(),f.close();return}let h=l.byteLength;if(n){let R=o+=h;n(R)}f.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(f){return c(f),s.return()}},{highWaterMark:2})};function lr(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let i=r.length;const c=r.length;for(let b=0;b<c;b++)if(r.charCodeAt(b)===37&&b+2<c){const E=r.charCodeAt(b+1),p=r.charCodeAt(b+2);(E>=48&&E<=57||E>=65&&E<=70||E>=97&&E<=102)&&(p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102)&&(i-=2,b+=2)}let f=0,u=c-1;const l=b=>b>=2&&r.charCodeAt(b-2)===37&&r.charCodeAt(b-1)===51&&(r.charCodeAt(b)===68||r.charCodeAt(b)===100);u>=0&&(r.charCodeAt(u)===61?(f++,u--):l(u)&&(f++,u-=3)),f===1&&u>=0&&(r.charCodeAt(u)===61||l(u))&&f++;const R=Math.floor(i/4)*3-(f||0);return R>0?R:0}if(typeof Buffer!="undefined"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let o=0;for(let i=0,c=r.length;i<c;i++){const f=r.charCodeAt(i);if(f<128)o+=1;else if(f<2048)o+=2;else if(f>=55296&&f<=56319&&i+1<c){const u=r.charCodeAt(i+1);u>=56320&&u<=57343?(o+=4,i++):o+=3}else o+=3}return o}const je="1.16.0",et=64*1024,{isFunction:ie}=a,tt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ur=e=>{var T;const t=(T=a.global)!=null?T:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=a.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:s,Request:o,Response:i}=e,c=s?ie(s):typeof fetch=="function",f=ie(o),u=ie(i);if(!c)return!1;const l=c&&ie(n),h=c&&(typeof r=="function"?(m=>w=>m.encode(w))(new r):async m=>new Uint8Array(await new o(m).arrayBuffer())),R=f&&l&&tt(()=>{let m=!1;const w=new o(C.origin,{body:new n,method:"POST",get duplex(){return m=!0,"half"}}),g=w.headers.has("Content-Type");return w.body!=null&&w.body.cancel(),m&&!g}),b=u&&l&&tt(()=>a.isReadableStream(new i("").body)),E={stream:b&&(m=>m.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!E[m]&&(E[m]=(w,g)=>{let S=w&&w[m];if(S)return S.call(w);throw new y(`Response type '${m}' is not supported`,y.ERR_NOT_SUPPORT,g)})});const p=async m=>{if(m==null)return 0;if(a.isBlob(m))return m.size;if(a.isSpecCompliantForm(m))return(await new o(C.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(a.isArrayBufferView(m)||a.isArrayBuffer(m))return m.byteLength;if(a.isURLSearchParams(m)&&(m=m+""),a.isString(m))return(await h(m)).byteLength},d=async(m,w)=>{const g=a.toFiniteNumber(m.getContentLength());return g==null?p(w):g};return async m=>{let{url:w,method:g,data:S,signal:$,cancelToken:J,timeout:At,onDownloadProgress:Re,onUploadProgress:He,responseType:j,headers:H,withCredentials:re="same-origin",fetchOptions:Me,maxContentLength:U,maxBodyLength:ge}=Rt(m);const G=a.isNumber(U)&&U>-1,_t=a.isNumber(ge)&&ge>-1;let ve=s||fetch;j=j?(j+"").toLowerCase():"text";let q=or([$,J&&J.toAbortSignal()],At),P=null;const M=q&&q.unsubscribe&&(()=>{q.unsubscribe()});let ze;try{if(G&&typeof w=="string"&&w.startsWith("data:")&&lr(w)>U)throw new y("maxContentLength size of "+U+" exceeded",y.ERR_BAD_RESPONSE,m,P);if(_t&&g!=="get"&&g!=="head"){const O=await d(H,S);if(typeof O=="number"&&isFinite(O)&&O>ge)throw new y("Request body larger than maxBodyLength limit",y.ERR_BAD_REQUEST,m,P)}if(He&&R&&g!=="get"&&g!=="head"&&(ze=await d(H,S))!==0){let O=new o(w,{method:"POST",body:S,duplex:"half"}),V;if(a.isFormData(S)&&(V=O.headers.get("content-type"))&&H.setContentType(V),O.body){const[se,oe]=Ge(ze,fe(Qe(He)));S=Ye(O.body,et,se,oe)}}a.isString(re)||(re=re?"include":"omit");const x=f&&"credentials"in o.prototype;if(a.isFormData(S)){const O=H.getContentType();O&&/^multipart\/form-data/i.test(O)&&!/boundary=/i.test(O)&&H.delete("content-type")}H.set("User-Agent","axios/"+je,!1);const I={...Me,signal:q,method:g.toUpperCase(),headers:H.normalize().toJSON(),body:S,duplex:"half",credentials:x?re:void 0};P=f&&new o(w,I);let B=await(f?ve(P,Me):ve(w,I));if(G){const O=a.toFiniteNumber(B.headers.get("content-length"));if(O!=null&&O>U)throw new y("maxContentLength size of "+U+" exceeded",y.ERR_BAD_RESPONSE,m,P)}const Oe=b&&(j==="stream"||j==="response");if(b&&B.body&&(Re||G||Oe&&M)){const O={};["status","statusText","headers"].forEach(Q=>{O[Q]=B[Q]});const V=a.toFiniteNumber(B.headers.get("content-length")),[se,oe]=Re&&Ge(V,fe(Qe(Re),!0))||[];let $e=0;const Tt=Q=>{if(G&&($e=Q,$e>U))throw new y("maxContentLength size of "+U+" exceeded",y.ERR_BAD_RESPONSE,m,P);se&&se(Q)};B=new i(Ye(B.body,et,Tt,()=>{oe&&oe(),M&&M()}),O)}j=j||"text";let k=await E[a.findKey(E,j)||"text"](B,m);if(G&&!b&&!Oe){let O;if(k!=null&&(typeof k.byteLength=="number"?O=k.byteLength:typeof k.size=="number"?O=k.size:typeof k=="string"&&(O=typeof r=="function"?new r().encode(k).byteLength:k.length)),typeof O=="number"&&O>U)throw new y("maxContentLength size of "+U+" exceeded",y.ERR_BAD_RESPONSE,m,P)}return!Oe&&M&&M(),await new Promise((O,V)=>{wt(O,V,{data:k,headers:L.from(B.headers),status:B.status,statusText:B.statusText,config:m,request:P})})}catch(x){if(M&&M(),q&&q.aborted&&q.reason instanceof y){const I=q.reason;throw I.config=m,P&&(I.request=P),x!==I&&(I.cause=x),I}throw x&&x.name==="TypeError"&&/Load failed|fetch/i.test(x.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,m,P,x&&x.response),{cause:x.cause||x}):y.from(x,x&&x.code,m,P,x&&x.response)}}},fr=new Map,gt=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,o=[r,s,n];let i=o.length,c=i,f,u,l=fr;for(;c--;)f=o[c],u=l.get(f),u===void 0&&l.set(f,u=c?new Map:ur(t)),l=u;return u};gt();const qe={http:Cn,xhr:rr,fetch:{get:gt}};a.forEach(qe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const nt=e=>`- ${e}`,dr=e=>a.isFunction(e)||e===null||e===!1;function pr(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,!dr(r)&&(s=qe[(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(([f,u])=>`adapter ${f} `+(u===!1?"is not supported by the environment":"is not available in the build"));let c=n?i.length>1?`since :
|
|
`+i.map(nt).join(`
|
|
`):" "+nt(i[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}var Ot={getAdapter:pr,adapters:qe};function Te(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ne(null,e)}function rt(e){return Te(e),e.headers=L.from(e.headers),e.data=_e.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ot.getAdapter(e.adapter||ke.adapter,e)(e).then(function(r){Te(e),e.response=r;try{r.data=_e.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=L.from(r.headers),r},function(r){if(!bt(r)&&(Te(e),r&&r.response)){e.response=r.response;try{r.response.data=_e.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=L.from(r.response.headers)}return Promise.reject(r)})}const Ee={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ee[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const st={};Ee.transitional=function(t,n,r){function s(o,i){return"[Axios v"+je+"] 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&&!st[i]&&(st[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}};Ee.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function hr(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=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(i){const c=e[o],f=c===void 0||i(c,o,e);if(f!==!0)throw new y("option "+o+" must be "+f,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+o,y.ERR_BAD_OPTION)}}var le={assertOptions:hr,validators:Ee};const D=le.validators;class de{constructor(t){this.defaults=t||{},this.interceptors={request:new Xe,response:new Xe}}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=(()=>{if(!s.stack)return"";const i=s.stack.indexOf(`
|
|
`);return i===-1?"":s.stack.slice(i+1)})();try{if(!r.stack)r.stack=o;else if(o){const i=o.indexOf(`
|
|
`),c=i===-1?-1:o.indexOf(`
|
|
`,i+1),f=c===-1?"":o.slice(c+1);String(r.stack).endsWith(f)||(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&&le.assertOptions(r,{silentJSONParsing:D.transitional(D.boolean),forcedJSONParsing:D.transitional(D.boolean),clarifyTimeoutError:D.transitional(D.boolean),legacyInterceptorReqResOrdering:D.transitional(D.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:le.assertOptions(s,{encode:D.function,serialize:D.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),le.assertOptions(n,{baseUrl:D.spelling("baseURL"),withXsrfToken:D.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","query","common"],E=>{delete o[E]}),n.headers=L.concat(i,o);const c=[];let f=!0;this.interceptors.request.forEach(function(p){if(typeof p.runWhen=="function"&&p.runWhen(n)===!1)return;f=f&&p.synchronous;const d=n.transitional||Fe;d&&d.legacyInterceptorReqResOrdering?c.unshift(p.fulfilled,p.rejected):c.push(p.fulfilled,p.rejected)});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let l,h=0,R;if(!f){const E=[rt.bind(this),void 0];for(E.unshift(...c),E.push(...u),R=E.length,l=Promise.resolve(n);h<R;)l=l.then(E[h++],E[h++]);return l}R=c.length;let b=n;for(;h<R;){const E=c[h++],p=c[h++];try{b=E(b)}catch(d){p.call(this,d);break}}try{l=rt.call(this,b)}catch(E){return Promise.reject(E)}for(h=0,R=u.length;h<R;)l=l.then(u[h++],u[h++]);return l}getUri(t){t=z(this.defaults,t);const n=Et(t.baseURL,t.url,t.allowAbsoluteUrls);return mt(n,t.params,t.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){de.prototype[t]=function(n,r){return this.request(z(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch","query"],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}))}}de.prototype[t]=n(),t!=="query"&&(de.prototype[t+"Form"]=n(!0))});var ue=de;class Ie{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 ne(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 Ie(function(s){t=s}),cancel:t}}}var mr=Ie;function yr(e){return function(n){return e.apply(null,n)}}function br(e){return a.isObject(e)&&e.isAxiosError===!0}const De={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(De).forEach(([e,t])=>{De[t]=e});var wr=De;function St(e){const t=new ue(e),n=ot(ue.prototype.request,t);return a.extend(n,ue.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return St(z(e,s))},n}const A=St(ke);A.Axios=ue;A.CanceledError=ne;A.CancelToken=mr;A.isCancel=bt;A.VERSION=je;A.toFormData=we;A.AxiosError=y;A.Cancel=A.CanceledError;A.all=function(t){return Promise.all(t)};A.spread=yr;A.isAxiosError=br;A.mergeConfig=z;A.AxiosHeaders=L;A.formToJSON=e=>yt(a.isHTMLForm(e)?new FormData(e):e);A.getAdapter=Ot.getAdapter;A.HttpStatusCode=wr;A.default=A;var Er=A;export{Er as a};
|