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