Files
weiyu/deploy/server/agenticflow/assets/index-CM4WE41J.js
jack ning 944ab64973 update
2025-11-11 17:53:12 +08:00

7 lines
36 KiB
JavaScript

import{E as v,I as st,b as Ne,S as D,_ as it}from"./index-BRN5U9Tw.js";function Ue(e,t){return function(){return e.apply(t,arguments)}}const{toString:at}=Object.prototype,{getPrototypeOf:he}=Object,{iterator:G,toStringTag:Pe}=Symbol,Q=(e=>t=>{const r=at.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),A=e=>(e=e.toLowerCase(),t=>Q(t)===e),Z=e=>t=>typeof t===e,{isArray:_}=Array,q=Z("undefined");function ct(e){return e!==null&&!q(e)&&e.constructor!==null&&!q(e.constructor)&&S(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Fe=A("ArrayBuffer");function ut(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Fe(e.buffer),t}const lt=Z("string"),S=Z("function"),_e=Z("number"),Y=e=>e!==null&&typeof e=="object",ft=e=>e===!0||e===!1,J=e=>{if(Q(e)!=="object")return!1;const t=he(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Pe in e)&&!(G in e)},dt=A("Date"),pt=A("File"),ht=A("Blob"),mt=A("FileList"),yt=e=>Y(e)&&S(e.pipe),gt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||S(e.append)&&((t=Q(e))==="formdata"||t==="object"&&S(e.toString)&&e.toString()==="[object FormData]"))},bt=A("URLSearchParams"),[wt,Et,Rt,Ot]=["ReadableStream","Request","Response","Headers"].map(A),St=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function I(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),_(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let c;for(n=0;n<i;n++)c=s[n],t.call(null,e[c],c,e)}}function Le(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const j=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ke=e=>!q(e)&&e!==j;function ce(){const{caseless:e}=ke(this)&&this||{},t={},r=(n,o)=>{const s=e&&Le(t,o)||o;J(t[s])&&J(n)?t[s]=ce(t[s],n):J(n)?t[s]=ce({},n):_(n)?t[s]=n.slice():t[s]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&I(arguments[n],r);return t}const $t=(e,t,r,{allOwnKeys:n}={})=>(I(t,(o,s)=>{r&&S(o)?e[s]=Ue(o,r):e[s]=o},{allOwnKeys:n}),e),At=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Tt=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},xt=(e,t,r,n)=>{let o,s,i;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!n||n(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=r!==!1&&he(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Ct=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},vt=e=>{if(!e)return null;if(_(e))return e;let t=e.length;if(!_e(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},jt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&he(Uint8Array)),Nt=(e,t)=>{const r=(e&&e[G]).call(e);let n;for(;(n=r.next())&&!n.done;){const o=n.value;t.call(e,o[0],o[1])}},Ut=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Pt=A("HTMLFormElement"),Ft=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),be=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),_t=A("RegExp"),Be=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};I(r,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(n[s]=i||o)}),Object.defineProperties(e,n)},Lt=e=>{Be(e,(t,r)=>{if(S(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(S(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},kt=(e,t)=>{const r={},n=o=>{o.forEach(s=>{r[s]=!0})};return _(e)?n(e):n(String(e).split(t)),r},Bt=()=>{},Dt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function qt(e){return!!(e&&S(e.append)&&e[Pe]==="FormData"&&e[G])}const It=e=>{const t=new Array(10),r=(n,o)=>{if(Y(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const s=_(n)?[]:{};return I(n,(i,c)=>{const f=r(i,o+1);!q(f)&&(s[c]=f)}),t[o]=void 0,s}}return n};return r(e,0)},Mt=A("AsyncFunction"),zt=e=>e&&(Y(e)||S(e))&&S(e.then)&&S(e.catch),De=((e,t)=>e?setImmediate:t?((r,n)=>(j.addEventListener("message",({source:o,data:s})=>{o===j&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),j.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",S(j.postMessage)),Jt=typeof queueMicrotask<"u"?queueMicrotask.bind(j):typeof process<"u"&&process.nextTick||De,Ht=e=>e!=null&&S(e[G]),a={isArray:_,isArrayBuffer:Fe,isBuffer:ct,isFormData:gt,isArrayBufferView:ut,isString:lt,isNumber:_e,isBoolean:ft,isObject:Y,isPlainObject:J,isReadableStream:wt,isRequest:Et,isResponse:Rt,isHeaders:Ot,isUndefined:q,isDate:dt,isFile:pt,isBlob:ht,isRegExp:_t,isFunction:S,isStream:yt,isURLSearchParams:bt,isTypedArray:jt,isFileList:mt,forEach:I,merge:ce,extend:$t,trim:St,stripBOM:At,inherits:Tt,toFlatObject:xt,kindOf:Q,kindOfTest:A,endsWith:Ct,toArray:vt,forEachEntry:Nt,matchAll:Ut,isHTMLForm:Pt,hasOwnProperty:be,hasOwnProp:be,reduceDescriptors:Be,freezeMethods:Lt,toObjectSet:kt,toCamelCase:Ft,noop:Bt,toFiniteNumber:Dt,findKey:Le,global:j,isContextDefined:ke,isSpecCompliantForm:qt,toJSONObject:It,isAsyncFn:Mt,isThenable:zt,setImmediate:De,asap:Jt,isIterable:Ht};function y(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}a.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const qe=y.prototype,Ie={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ie[e]={value:e}});Object.defineProperties(y,Ie);Object.defineProperty(qe,"isAxiosError",{value:!0});y.from=(e,t,r,n,o,s)=>{const i=Object.create(qe);return a.toFlatObject(e,i,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),y.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};function ue(e){return a.isPlainObject(e)||a.isArray(e)}function Me(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function we(e,t,r){return e?e.concat(t).map(function(n,o){return n=Me(n),!r&&o?"["+n+"]":n}).join(r?".":""):t}function Wt(e){return a.isArray(e)&&!e.some(ue)}const Vt=a.toFlatObject(a,{},null,function(e){return/^is[A-Z]/.test(e)});function ee(e,t,r){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=a.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,p){return!a.isUndefined(p[m])});const n=r.metaTokens,o=r.visitor||u,s=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function f(m){if(m===null)return"";if(a.isDate(m))return m.toISOString();if(a.isBoolean(m))return m.toString();if(!c&&a.isBlob(m))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(m)||a.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,p,d){let R=m;if(m&&!d&&typeof m=="object"){if(a.endsWith(p,"{}"))p=n?p:p.slice(0,-2),m=JSON.stringify(m);else if(a.isArray(m)&&Wt(m)||(a.isFileList(m)||a.endsWith(p,"[]"))&&(R=a.toArray(m)))return p=Me(p),R.forEach(function(E,b){!(a.isUndefined(E)||E===null)&&t.append(i===!0?we([p],b,s):i===null?p:p+"[]",f(E))}),!1}return ue(m)?!0:(t.append(we(d,p,s),f(m)),!1)}const l=[],h=Object.assign(Vt,{defaultVisitor:u,convertValue:f,isVisitable:ue});function g(m,p){if(!a.isUndefined(m)){if(l.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));l.push(m),a.forEach(m,function(d,R){(!(a.isUndefined(d)||d===null)&&o.call(t,d,a.isString(R)?R.trim():R,p,h))===!0&&g(d,p?p.concat(R):[R])}),l.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Ee(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function me(e,t){this._pairs=[],e&&ee(e,this,t)}const ze=me.prototype;ze.append=function(e,t){this._pairs.push([e,t])};ze.toString=function(e){const t=e?function(r){return e.call(this,r,Ee)}:Ee;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function Kt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Je(e,t,r){if(!t)return e;const n=r&&r.encode||Kt;a.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let s;if(o?s=o(t,r):s=a.isURLSearchParams(t)?t.toString():new me(t,r).toString(n),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}let Re=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.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 He={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xt=typeof URLSearchParams<"u"?URLSearchParams:me,Gt=typeof FormData<"u"?FormData:null,Qt=typeof Blob<"u"?Blob:null,Zt={isBrowser:!0,classes:{URLSearchParams:Xt,FormData:Gt,Blob:Qt},protocols:["http","https","file","blob","url","data"]},ye=typeof window<"u"&&typeof document<"u",le=typeof navigator=="object"&&navigator||void 0,Yt=ye&&(!le||["ReactNative","NativeScript","NS"].indexOf(le.product)<0),er=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tr=ye&&window.location.href||"http://localhost",rr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ye,hasStandardBrowserEnv:Yt,hasStandardBrowserWebWorkerEnv:er,navigator:le,origin:tr},Symbol.toStringTag,{value:"Module"})),O={...rr,...Zt};function nr(e,t){return ee(e,new O.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,s){return O.isNode&&a.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function or(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function sr(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}function We(e){function t(r,n,o,s){let i=r[s++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),f=s>=r.length;return i=!i&&a.isArray(o)?o.length:i,f?(a.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!c):((!o[i]||!a.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],s)&&a.isArray(o[i])&&(o[i]=sr(o[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const r={};return a.forEachEntry(e,(n,o)=>{t(or(n),o,r,0)}),r}return null}function ir(e,t,r){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const M={transitional:He,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=a.isObject(e);if(o&&a.isHTMLForm(e)&&(e=new FormData(e)),a.isFormData(e))return n?JSON.stringify(We(e)):e;if(a.isArrayBuffer(e)||a.isBuffer(e)||a.isStream(e)||a.isFile(e)||a.isBlob(e)||a.isReadableStream(e))return e;if(a.isArrayBufferView(e))return e.buffer;if(a.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return nr(e,this.formSerializer).toString();if((s=a.isFileList(e))||r.indexOf("multipart/form-data")>-1){const i=this.env&&this.env.FormData;return ee(s?{"files[]":e}:e,i&&new i,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),ir(e)):e}],transformResponse:[function(e){const t=this.transitional||M.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(a.isResponse(e)||a.isReadableStream(e))return e;if(e&&a.isString(e)&&(r&&!this.responseType||n)){const o=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(s){if(o)throw s.name==="SyntaxError"?y.from(s,y.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{M.headers[e]={}});const ar=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"]),cr=e=>{const t={};let r,n,o;return e&&e.split(`
`).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&ar[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Oe=Symbol("internals");function B(e){return e&&String(e).trim().toLowerCase()}function H(e){return e===!1||e==null?e:a.isArray(e)?e.map(H):String(e)}function ur(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const lr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function oe(e,t,r,n,o){if(a.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!a.isString(t)){if(a.isString(n))return t.indexOf(n)!==-1;if(a.isRegExp(n))return n.test(t)}}function fr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function dr(e,t){const r=a.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,s,i){return this[n].call(this,t,o,s,i)},configurable:!0})})}let $=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function s(c,f,u){const l=B(f);if(!l)throw new Error("header name must be a non-empty string");const h=a.findKey(o,l);(!h||o[h]===void 0||u===!0||u===void 0&&o[h]!==!1)&&(o[h||f]=H(c))}const i=(c,f)=>a.forEach(c,(u,l)=>s(u,l,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(a.isString(t)&&(t=t.trim())&&!lr(t))i(cr(t),r);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,r)}else t!=null&&s(r,t,n);return this}get(t,r){if(t=B(t),t){const n=a.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return ur(o);if(a.isFunction(r))return r.call(this,o,n);if(a.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=B(t),t){const n=a.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||oe(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function s(i){if(i=B(i),i){const c=a.findKey(n,i);c&&(!r||oe(n,n[c],c,r))&&(delete n[c],o=!0)}}return a.isArray(t)?t.forEach(s):s(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const s=r[n];(!t||oe(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const r=this,n={};return a.forEach(this,(o,s)=>{const i=a.findKey(n,s);if(i){r[i]=H(o),delete r[s];return}const c=t?fr(s):String(s).trim();c!==s&&delete r[s],r[c]=H(o),n[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return a.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&a.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).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,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const r=(this[Oe]=this[Oe]={accessors:{}}).accessors,n=this.prototype;function o(s){const i=B(s);r[i]||(dr(n,s),r[i]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}};$.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors($.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});a.freezeMethods($);function se(e,t){const r=this||M,n=t||r,o=$.from(n.headers);let s=n.data;return a.forEach(e,function(i){s=i.call(r,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Ve(e){return!!(e&&e.__CANCEL__)}function L(e,t,r){y.call(this,e??"canceled",y.ERR_CANCELED,t,r),this.name="CanceledError"}a.inherits(L,y,{__CANCEL__:!0});const pr=null;function Ke(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new y("Request failed with status code "+r.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function hr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function mr(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),u=n[s];i||(i=f),r[o]=c,n[o]=f;let l=s,h=0;for(;l!==o;)h+=r[l++],l=l%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),f-i<t)return;const g=u&&f-u;return g?Math.round(h*1e3/g):void 0}}function yr(e,t){let r=0,n=1e3/t,o,s;const i=(c,f=Date.now())=>{r=f,o=null,s&&(clearTimeout(s),s=null),e.apply(null,c)};return[(...c)=>{const f=Date.now(),u=f-r;u>=n?i(c,f):(o=c,s||(s=setTimeout(()=>{s=null,i(o)},n-u)))},()=>o&&i(o)]}const K=(e,t,r=3)=>{let n=0;const o=mr(50,250);return yr(s=>{const i=s.loaded,c=s.lengthComputable?s.total:void 0,f=i-n,u=o(f),l=i<=c;n=i;const h={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:u||void 0,estimated:u&&c&&l?(c-i)/u:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},r)},Se=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},$e=e=>(...t)=>a.asap(()=>e(...t)),gr=O.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,O.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(O.origin),O.navigator&&/(msie|trident)/i.test(O.navigator.userAgent)):()=>!0,br=O.hasStandardBrowserEnv?{write(e,t,r,n,o,s){const i=[e+"="+encodeURIComponent(t)];a.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),a.isString(n)&&i.push("path="+n),a.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function wr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Er(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Xe(e,t,r){let n=!wr(t);return e&&(n||r==!1)?Er(e,t):t}const Ae=e=>e instanceof $?{...e}:e;function U(e,t){t=t||{};const r={};function n(u,l,h,g){return a.isPlainObject(u)&&a.isPlainObject(l)?a.merge.call({caseless:g},u,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function o(u,l,h,g){if(a.isUndefined(l)){if(!a.isUndefined(u))return n(void 0,u,h,g)}else return n(u,l,h,g)}function s(u,l){if(!a.isUndefined(l))return n(void 0,l)}function i(u,l){if(a.isUndefined(l)){if(!a.isUndefined(u))return n(void 0,u)}else return n(void 0,l)}function c(u,l,h){if(h in t)return n(u,l);if(h in e)return n(void 0,u)}const f={url:s,method:s,data:s,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:(u,l,h)=>o(Ae(u),Ae(l),h,!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(u){const l=f[u]||o,h=l(e[u],t[u],u);a.isUndefined(h)&&l!==c||(r[u]=h)}),r}const Ge=e=>{const t=U({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:c}=t;t.headers=i=$.from(i),t.url=Je(Xe(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(r)){if(O.hasStandardBrowserEnv||O.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[u,...l]=f?f.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...l].join("; "))}}if(O.hasStandardBrowserEnv&&(n&&a.isFunction(n)&&(n=n(t)),n||n!==!1&&gr(t.url))){const u=o&&s&&br.read(s);u&&i.set(o,u)}return t},Rr=typeof XMLHttpRequest<"u",Or=Rr&&function(e){return new Promise(function(t,r){const n=Ge(e);let o=n.data;const s=$.from(n.headers).normalize();let{responseType:i,onUploadProgress:c,onDownloadProgress:f}=n,u,l,h,g,m;function p(){g&&g(),m&&m(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let d=new XMLHttpRequest;d.open(n.method.toUpperCase(),n.url,!0),d.timeout=n.timeout;function R(){if(!d)return;const b=$.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),x={data:!i||i==="text"||i==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:b,config:e,request:d};Ke(function(k){t(k),p()},function(k){r(k),p()},x),d=null}"onloadend"in d?d.onloadend=R:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(R)},d.onabort=function(){d&&(r(new y("Request aborted",y.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new y("Network Error",y.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let b=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const x=n.transitional||He;n.timeoutErrorMessage&&(b=n.timeoutErrorMessage),r(new y(b,x.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,d)),d=null},o===void 0&&s.setContentType(null),"setRequestHeader"in d&&a.forEach(s.toJSON(),function(b,x){d.setRequestHeader(x,b)}),a.isUndefined(n.withCredentials)||(d.withCredentials=!!n.withCredentials),i&&i!=="json"&&(d.responseType=n.responseType),f&&([h,m]=K(f,!0),d.addEventListener("progress",h)),c&&d.upload&&([l,g]=K(c),d.upload.addEventListener("progress",l),d.upload.addEventListener("loadend",g)),(n.cancelToken||n.signal)&&(u=b=>{d&&(r(!b||b.type?new L(null,e,d):b),d.abort(),d=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const E=hr(n.url);if(E&&O.protocols.indexOf(E)===-1){r(new y("Unsupported protocol "+E+":",y.ERR_BAD_REQUEST,e));return}d.send(o||null)})},Sr=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const s=function(u){if(!o){o=!0,c();const l=u instanceof Error?u:this.reason;n.abort(l instanceof y?l:new L(l instanceof Error?l.message:l))}};let i=t&&setTimeout(()=>{i=null,s(new y(`timeout ${t} of ms exceeded`,y.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:f}=n;return f.unsubscribe=()=>a.asap(c),f}},$r=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},Ar=async function*(e,t){for await(const r of Tr(e))yield*$r(r,t)},Tr=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Te=(e,t,r,n)=>{const o=Ar(e,t);let s=0,i,c=f=>{i||(i=!0,n&&n(f))};return new ReadableStream({async pull(f){try{const{done:u,value:l}=await o.next();if(u){c(),f.close();return}let h=l.byteLength;if(r){let g=s+=h;r(g)}f.enqueue(new Uint8Array(l))}catch(u){throw c(u),u}},cancel(f){return c(f),o.return()}},{highWaterMark:2})},te=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Qe=te&&typeof ReadableStream=="function",xr=te&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ze=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Cr=Qe&&Ze(()=>{let e=!1;const t=new Request(O.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),xe=64*1024,fe=Qe&&Ze(()=>a.isReadableStream(new Response("").body)),X={stream:fe&&(e=>e.body)};te&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!X[t]&&(X[t]=a.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new y(`Response type '${t}' is not supported`,y.ERR_NOT_SUPPORT,n)})})})(new Response);const vr=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(O.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await xr(e)).byteLength},jr=async(e,t)=>a.toFiniteNumber(e.getContentLength())??vr(t),Nr=te&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:s,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:u,headers:l,withCredentials:h="same-origin",fetchOptions:g}=Ge(e);u=u?(u+"").toLowerCase():"text";let m=Sr([o,s&&s.toAbortSignal()],i),p;const d=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let R;try{if(f&&Cr&&r!=="get"&&r!=="head"&&(R=await jr(l,n))!==0){let C=new Request(t,{method:"POST",body:n,duplex:"half"}),P;if(a.isFormData(n)&&(P=C.headers.get("content-type"))&&l.setContentType(P),C.body){const[ne,z]=Se(R,K($e(f)));n=Te(C.body,xe,ne,z)}}a.isString(h)||(h=h?"include":"omit");const E="credentials"in Request.prototype;p=new Request(t,{...g,signal:m,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:E?h:void 0});let b=await fetch(p,g);const x=fe&&(u==="stream"||u==="response");if(fe&&(c||x&&d)){const C={};["status","statusText","headers"].forEach(ge=>{C[ge]=b[ge]});const P=a.toFiniteNumber(b.headers.get("content-length")),[ne,z]=c&&Se(P,K($e(c),!0))||[];b=new Response(Te(b.body,xe,ne,()=>{z&&z(),d&&d()}),C)}u=u||"text";let k=await X[a.findKey(X,u)||"text"](b,e);return!x&&d&&d(),await new Promise((C,P)=>{Ke(C,P,{data:k,headers:$.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:p})})}catch(E){throw d&&d(),E&&E.name==="TypeError"&&/Load failed|fetch/i.test(E.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,e,p),{cause:E.cause||E}):y.from(E,E&&E.code,e,p)}}),de={http:pr,xhr:Or,fetch:Nr};a.forEach(de,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ce=e=>`- ${e}`,Ur=e=>a.isFunction(e)||e===null||e===!1,Ye={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let s=0;s<t;s++){r=e[s];let i;if(n=r,!Ur(r)&&(n=de[(i=String(r)).toLowerCase()],n===void 0))throw new y(`Unknown adapter '${i}'`);if(n)break;o[i||"#"+s]=n}if(!n){const s=Object.entries(o).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since :
`+s.map(Ce).join(`
`):" "+Ce(s[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:de};function ie(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new L(null,e)}function ve(e){return ie(e),e.headers=$.from(e.headers),e.data=se.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ye.getAdapter(e.adapter||M.adapter)(e).then(function(t){return ie(e),t.data=se.call(e,e.transformResponse,t),t.headers=$.from(t.headers),t},function(t){return Ve(t)||(ie(e),t&&t.response&&(t.response.data=se.call(e,e.transformResponse,t.response),t.response.headers=$.from(t.response.headers))),Promise.reject(t)})}const et="1.10.0",re={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{re[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const je={};re.transitional=function(e,t,r){function n(o,s){return"[Axios v"+et+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,i)=>{if(e===!1)throw new y(n(s," has been removed"+(t?" in "+t:"")),y.ERR_DEPRECATED);return t&&!je[s]&&(je[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,s,i):!0}};re.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Pr(e,t,r){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const s=n[o],i=t[s];if(i){const c=e[s],f=c===void 0||i(c,s,e);if(f!==!0)throw new y("option "+s+" must be "+f,y.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new y("Unknown option "+s,y.ERR_BAD_OPTION)}}const W={assertOptions:Pr,validators:re},T=W.validators;class N{constructor(t){this.defaults=t||{},this.interceptors={request:new Re,response:new Re}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+s):n.stack=s}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=U(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:s}=r;n!==void 0&&W.assertOptions(n,{silentJSONParsing:T.transitional(T.boolean),forcedJSONParsing:T.transitional(T.boolean),clarifyTimeoutError:T.transitional(T.boolean)},!1),o!=null&&(a.isFunction(o)?r.paramsSerializer={serialize:o}:W.assertOptions(o,{encode:T.function,serialize:T.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),W.assertOptions(r,{baseUrl:T.spelling("baseURL"),withXsrfToken:T.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=s&&a.merge(s.common,s[r.method]);s&&a.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),r.headers=$.concat(i,s);const c=[];let f=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(f=f&&p.synchronous,c.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let l,h=0,g;if(!f){const p=[ve.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,u),g=p.length,l=Promise.resolve(r);h<g;)l=l.then(p[h++],p[h++]);return l}g=c.length;let m=r;for(h=0;h<g;){const p=c[h++],d=c[h++];try{m=p(m)}catch(R){d.call(this,R);break}}try{l=ve.call(this,m)}catch(p){return Promise.reject(p)}for(h=0,g=u.length;h<g;)l=l.then(u[h++],u[h++]);return l}getUri(t){t=U(this.defaults,t);const r=Xe(t.baseURL,t.url,t.allowAbsoluteUrls);return Je(r,t.params,t.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(e){N.prototype[e]=function(t,r){return this.request(U(r||{},{method:e,url:t,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(e){function t(r){return function(n,o,s){return this.request(U(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}N.prototype[e]=t(),N.prototype[e+"Form"]=t(!0)});let Fr=class tt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(o=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](o);n._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(c=>{n.subscribe(c),s=c}).then(o);return i.cancel=function(){n.unsubscribe(s)},i},t(function(o,s,i){n.reason||(n.reason=new L(o,s,i),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new tt(function(r){t=r}),cancel:t}}};function _r(e){return function(t){return e.apply(null,t)}}function Lr(e){return a.isObject(e)&&e.isAxiosError===!0}const pe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pe).forEach(([e,t])=>{pe[t]=e});function rt(e){const t=new N(e),r=Ue(N.prototype.request,t);return a.extend(r,N.prototype,t,{allOwnKeys:!0}),a.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return rt(U(e,n))},r}const w=rt(M);w.Axios=N;w.CanceledError=L;w.CancelToken=Fr;w.isCancel=Ve;w.VERSION=et;w.toFormData=ee;w.AxiosError=y;w.Cancel=w.CanceledError;w.all=function(e){return Promise.all(e)};w.spread=_r;w.isAxiosError=Lr;w.mergeConfig=U;w.AxiosHeaders=$;w.formToJSON=e=>We(a.isHTMLForm(e)?new FormData(e):e);w.getAdapter=Ye.getAdapter;w.HttpStatusCode=pe;w.default=w;const{Axios:Mr,AxiosError:zr,CanceledError:Jr,isCancel:Hr,CancelToken:Wr,VERSION:Vr,all:Kr,Cancel:Xr,isAxiosError:Gr,spread:Qr,toFormData:Zr,AxiosHeaders:Yr,HttpStatusCode:en,formToJSON:tn,getAdapter:rn,mergeConfig:nn}=w;function kr(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(o){o(r)}),(n=e.get("*"))&&n.slice().map(function(o){o(t,r)})}}}const F=kr();let V="";function nt(){return V||"https://api.weiyuai.cn"}function on(e){return e&&e.trim()!==""?(V=e,v.info("API URL已设置为:",V)):v.warn("尝试设置无效的API URL"),V}const ot=w.create({timeout:2e4,baseURL:nt()});ot.interceptors.request.use(e=>{e.baseURL=nt();const t=localStorage.getItem(st);return t&&t.length>10&&e.url&&e.url.startsWith("/api")&&(e.headers.Authorization=`Bearer ${t}`),!t&&e.url&&e.url.startsWith("/api")?Promise.reject(Br):e},e=>(v.error("request error",e),e.response.status===403&&F.emit(D,"403"),e.response.status===401&&F.emit(D,"401"),Promise.reject(e)));ot.interceptors.response.use(e=>e,e=>{if(v.error("response error",e),e.response)switch(e.response.status){case 400:v.error("axios interception error 400"),F.emit(D,"400");break;case 401:v.error("axios interception error 401"),F.emit(D,"401");break;case 403:v.error("axios interception error 403"),F.emit(D,"403");break;case 500:v.error("axios interception error 500"),F.emit(it,"500");break}return"return axios interception error"});const ae={data:null,status:601,statusText:Ne,headers:{},config:{headers:{}},request:null},Br={message:"匿名用户,无需访问服务器接口",name:Ne,code:"601",config:ae.config,request:ae.request,response:ae,isAxiosError:!0,toJSON:function(){return{message:this.message,name:this.name,code:this.code,config:this.config,request:this.request,response:this.response}}};export{ot as default,nt as getApiUrl,on as setApiUrl};