Files
wecom_it_smart_desk/frontend-agent/dist.bak/assets/index-ChNUjLLo.js
Simon bea288e414 feat: 2026-07-11 全量更新 - 代办集成+会议室预定+知识迭代修复+UI统一+Bug修复
== 已部署上线 (9项) ==
- 代办事项真实数据源集成 (企微审批API 8bug修复链)
- H5/坐席端 Logo样式统一+绿色背景
- 视频引导页修复 (localStorage key v2)
- 坐席端 v9 Vue版本修复 (ElMessage._context)
- 截图按钮 v10 修复 (getDisplayMedia user gesture)
- 扫码样式恢复+H5扫码登录跳转修复
- H5截图快捷键提示

== 代码完成待部署 (3项) ==
- 知识迭代3Bug修复 (#8 POST端点/#7 MERGE幂等/#6 过期检查)
- 会议室预定-小鱼易联终端 (40文件, 40/40测试通过)
- IT资产升级审批推送 (asset_service.py)

== 需求文档 (2项) ==
- 坐席端AI辅助消息框-PRD (4项新功能确认)
- 坐席端布局优化建议 v2.0 (7天计划)

== 新增文档 ==
- 日报-2026-07-11.md
- 知识迭代Bug修复报告-20260711.md
- 会议室预定-部署指南.md
- CHANGELOG.md 更新

== 测试 ==
- test_todo_integration.py: 40/40
- test_meetingroom.py: 40/40
- test_bugfix_ki_suggestions.py: 21/21
2026-07-11 23:13:10 +08:00

11 lines
44 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-B1u3nieA.js","assets/index-Do7r--Ys.css"])))=>i.map(i=>d[i]);
import{E as pe,_ as Lt}from"./index-B1u3nieA.js";function at(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ut}=Object.prototype,{getPrototypeOf:me}=Object,{iterator:ye,toStringTag:ct}=Symbol,be=(e=>t=>{const n=Ut.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),L=e=>(e=e.toLowerCase(),t=>be(t)===e),we=e=>t=>typeof t===e,{isArray:X}=Array,v=we("undefined");function te(e){return e!==null&&!v(e)&&e.constructor!==null&&!v(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const lt=L("ArrayBuffer");function Ft(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&lt(e.buffer),t}const Bt=we("string"),x=we("function"),ut=we("number"),ne=e=>e!==null&&typeof e=="object",kt=e=>e===!0||e===!1,ue=e=>{if(be(e)!=="object")return!1;const t=me(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ct in e)&&!(ye in e)},It=e=>{if(!ne(e)||te(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},jt=L("Date"),qt=L("File"),Ht=e=>!!(e&&typeof e.uri<"u"),Mt=e=>e&&typeof e.getParts<"u",zt=L("Blob"),$t=L("FileList"),Vt=e=>ne(e)&&x(e.pipe);function Jt(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Je=Jt(),We=typeof Je.FormData<"u"?Je.FormData:void 0,Wt=e=>{if(!e)return!1;if(We&&e instanceof We)return!0;const t=me(e);if(!t||t===Object.prototype||!x(e.append))return!1;const n=be(e);return n==="formdata"||n==="object"&&x(e.toString)&&e.toString()==="[object FormData]"},Kt=L("URLSearchParams"),[vt,Xt,Gt,Qt]=["ReadableStream","Request","Response","Headers"].map(L),Yt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function re(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")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(te(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 ft(e,t){if(te(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 z=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,dt=e=>!v(e)&&e!==z;function xe(...e){const{caseless:t,skipUndefined:n}=dt(this)&&this||{},r={},s=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const c=t&&ft(r,i)||i,l=Pe(r,c)?r[c]:void 0;ue(l)&&ue(o)?r[c]=xe(l,o):ue(o)?r[c]=xe({},o):X(o)?r[c]=o.slice():(!n||!v(o))&&(r[c]=o)};for(let o=0,i=e.length;o<i;o++)e[o]&&re(e[o],s);return r}const Zt=(e,t,n,{allOwnKeys:r}={})=>(re(t,(s,o)=>{n&&x(s)?Object.defineProperty(e,o,{__proto__:null,value:at(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),en=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tn=(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)},nn=(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&&me(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},rn=(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},sn=e=>{if(!e)return null;if(X(e))return e;let t=e.length;if(!ut(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},on=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&me(Uint8Array)),an=(e,t)=>{const r=(e&&e[ye]).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},ln=L("HTMLFormElement"),un=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Pe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),fn=L("RegExp"),pt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};re(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},dn=e=>{pt(e,(t,n)=>{if(x(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(x(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+"'")})}})},pn=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return X(e)?r(e):r(String(e).split(t)),n},hn=()=>{},mn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function yn(e){return!!(e&&x(e.append)&&e[ct]==="FormData"&&e[ye])}const bn=e=>{const t=new WeakSet,n=r=>{if(ne(r)){if(t.has(r))return;if(te(r))return r;if(!("toJSON"in r)){t.add(r);const s=X(r)?[]:{};return re(r,(o,i)=>{const c=n(o);!v(c)&&(s[i]=c)}),t.delete(r),s}}return r};return n(e)},wn=L("AsyncFunction"),En=e=>e&&(ne(e)||x(e))&&x(e.then)&&x(e.catch),ht=((e,t)=>e?setImmediate:t?((n,r)=>(z.addEventListener("message",({source:s,data:o})=>{s===z&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),z.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",x(z.postMessage)),Rn=typeof queueMicrotask<"u"?queueMicrotask.bind(z):typeof process<"u"&&process.nextTick||ht,gn=e=>e!=null&&x(e[ye]),a={isArray:X,isArrayBuffer:lt,isBuffer:te,isFormData:Wt,isArrayBufferView:Ft,isString:Bt,isNumber:ut,isBoolean:kt,isObject:ne,isPlainObject:ue,isEmptyObject:It,isReadableStream:vt,isRequest:Xt,isResponse:Gt,isHeaders:Qt,isUndefined:v,isDate:jt,isFile:qt,isReactNativeBlob:Ht,isReactNative:Mt,isBlob:zt,isRegExp:fn,isFunction:x,isStream:Vt,isURLSearchParams:Kt,isTypedArray:on,isFileList:$t,forEach:re,merge:xe,extend:Zt,trim:Yt,stripBOM:en,inherits:tn,toFlatObject:nn,kindOf:be,kindOfTest:L,endsWith:rn,toArray:sn,forEachEntry:an,matchAll:cn,isHTMLForm:ln,hasOwnProperty:Pe,hasOwnProp:Pe,reduceDescriptors:pt,freezeMethods:dn,toObjectSet:pn,toCamelCase:un,noop:hn,toFiniteNumber:mn,findKey:ft,global:z,isContextDefined:dt,isSpecCompliantForm:yn,toJSONObject:bn,isAsyncFn:wn,isThenable:En,setImmediate:ht,asap:Rn,isIterable:gn},On=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"]),Sn=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]&&On[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function An(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)}const _n=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Tn=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ue(e,t){return a.isArray(e)?e.map(n=>Ue(n,t)):An(String(e).replace(t,""))}const Cn=e=>Ue(e,_n),xn=e=>Ue(e,Tn);function mt(e){const t=Object.create(null);return a.forEach(e.toJSON(),(n,r)=>{t[r]=xn(n)}),t}const Ke=Symbol("internals");function Z(e){return e&&String(e).trim().toLowerCase()}function fe(e){return e===!1||e==null?e:a.isArray(e)?e.map(fe):Cn(String(e))}function Pn(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 Nn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ae(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 Dn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Ln(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 C=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,l,f){const u=Z(l);if(!u)throw new Error("header name must be a non-empty string");const y=a.findKey(s,u);(!y||s[y]===void 0||f===!0||f===void 0&&s[y]!==!1)&&(s[y||l]=fe(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())&&!Nn(t))i(Sn(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},l,f;for(const u of t){if(!a.isArray(u))throw TypeError("Object iterator must return a key-value pair");c[f=u[0]]=(l=c[f])?a.isArray(l)?[...l,u[1]]:[l,u[1]]:u[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 Pn(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||Ae(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||Ae(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||Ae(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]=fe(s),delete n[o];return}const c=t?Dn(o):String(o).trim();c!==o&&delete n[o],n[c]=fe(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[Ke]=this[Ke]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=Z(i);r[c]||(Ln(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}};C.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(C.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(C);const Un="[REDACTED ****]";function Fn(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 Bn(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 C&&(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)&&Fn(o))return r.pop(),o;i=Object.create(null);for(const[c,l]of Object.entries(o)){const f=n.has(c.toLowerCase())?Un:s(l);a.isUndefined(f)||(i[c]=f)}}return r.pop(),i};return s(e)}let p=class yt extends Error{static from(t,n,r,s,o,i){const c=new yt(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?Bn(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}}};p.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";p.ERR_BAD_OPTION="ERR_BAD_OPTION";p.ECONNABORTED="ECONNABORTED";p.ETIMEDOUT="ETIMEDOUT";p.ECONNREFUSED="ECONNREFUSED";p.ERR_NETWORK="ERR_NETWORK";p.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";p.ERR_DEPRECATED="ERR_DEPRECATED";p.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";p.ERR_BAD_REQUEST="ERR_BAD_REQUEST";p.ERR_CANCELED="ERR_CANCELED";p.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";p.ERR_INVALID_URL="ERR_INVALID_URL";p.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const kn=null;function Ne(e){return a.isPlainObject(e)||a.isArray(e)}function bt(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function _e(e,t,n){return e?e.concat(t).map(function(s,o){return s=bt(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function In(e){return a.isArray(e)&&!e.some(Ne)}const jn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function Ee(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,m){return!a.isUndefined(m[d])});const r=n.metaTokens,s=n.visitor||y,o=n.dots,i=n.indexes,c=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?100:n.maxDepth,f=c&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(a.isDate(h))return h.toISOString();if(a.isBoolean(h))return h.toString();if(!f&&a.isBlob(h))throw new p("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(h)||a.isTypedArray(h)?f&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function y(h,d,m){let O=h;if(a.isReactNative(t)&&a.isReactNativeBlob(h))return t.append(_e(m,d,o),u(h)),!1;if(h&&!m&&typeof h=="object"){if(a.endsWith(d,"{}"))d=r?d:d.slice(0,-2),h=JSON.stringify(h);else if(a.isArray(h)&&In(h)||(a.isFileList(h)||a.endsWith(d,"[]"))&&(O=a.toArray(h)))return d=bt(d),O.forEach(function(R,P){!(a.isUndefined(R)||R===null)&&t.append(i===!0?_e([d],P,o):i===null?d:d+"[]",u(R))}),!1}return Ne(h)?!0:(t.append(_e(m,d,o),u(h)),!1)}const E=[],b=Object.assign(jn,{defaultVisitor:y,convertValue:u,isVisitable:Ne});function w(h,d,m=0){if(!a.isUndefined(h)){if(m>l)throw new p("Object is too deeply nested ("+m+" levels). Max depth: "+l,p.ERR_FORM_DATA_DEPTH_EXCEEDED);if(E.indexOf(h)!==-1)throw Error("Circular reference detected in "+d.join("."));E.push(h),a.forEach(h,function(g,R){(!(a.isUndefined(g)||g===null)&&s.call(t,g,a.isString(R)?R.trim():R,d,b))===!0&&w(g,d?d.concat(R):[R],m+1)}),E.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return w(e),t}function ve(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Fe(e,t){this._pairs=[],e&&Ee(e,this,t)}const wt=Fe.prototype;wt.append=function(t,n){this._pairs.push([t,n])};wt.toString=function(t){const n=t?function(r){return t.call(this,r,ve)}:ve;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function qn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Et(e,t,n){if(!t)return e;const r=n&&n.encode||qn,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 Fe(t,s).toString(r),i){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Xe{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 Be={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Hn=typeof URLSearchParams<"u"?URLSearchParams:Fe,Mn=typeof FormData<"u"?FormData:null,zn=typeof Blob<"u"?Blob:null,$n={isBrowser:!0,classes:{URLSearchParams:Hn,FormData:Mn,Blob:zn},protocols:["http","https","file","blob","url","data"]},ke=typeof window<"u"&&typeof document<"u",De=typeof navigator=="object"&&navigator||void 0,Vn=ke&&(!De||["ReactNative","NativeScript","NS"].indexOf(De.product)<0),Jn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Wn=ke&&window.location.href||"http://localhost",Kn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ke,hasStandardBrowserEnv:Vn,hasStandardBrowserWebWorkerEnv:Jn,navigator:De,origin:Wn},Symbol.toStringTag,{value:"Module"})),T={...Kn,...$n};function vn(e,t){return Ee(e,new T.classes.URLSearchParams,{visitor:function(n,r,s,o){return T.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Xn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Gn(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 Rt(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),l=o>=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]=Gn(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Xn(r),s,n,0)}),n}return null}const W=(e,t)=>e!=null&&a.hasOwnProp(e,t)?e[t]:void 0;function Qn(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 se={transitional:Be,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(Rt(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=W(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return vn(t,l).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=W(this,"env"),u=f&&f.FormData;return Ee(c?{"files[]":t}:t,u&&new u,l)}}return o||s?(n.setContentType("application/json",!1),Qn(t)):t}],transformResponse:[function(t){const n=W(this,"transitional")||se.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(l){if(c)throw l.name==="SyntaxError"?p.from(l,p.ERR_BAD_RESPONSE,this,null,W(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:T.classes.FormData,Blob:T.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=>{se.headers[e]={}});function Te(e,t){const n=this||se,r=t||n,s=C.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 gt(e){return!!(e&&e.__CANCEL__)}let oe=class extends p{constructor(t,n,r){super(t??"canceled",p.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Ot(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new p("Request failed with status code "+n.status,n.status>=400&&n.status<500?p.ERR_BAD_REQUEST:p.ERR_BAD_RESPONSE,n.config,n.request,n))}function Yn(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function Zn(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 y=o,E=0;for(;y!==s;)E+=n[y++],y=y%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),f-i<t)return;const b=u&&f-u;return b?Math.round(E*1e3/b):void 0}}function er(e,t){let n=0,r=1e3/t,s,o;const i=(f,u=Date.now())=>{n=u,s=null,o&&(clearTimeout(o),o=null),e(...f)};return[(...f)=>{const u=Date.now(),y=u-n;y>=r?i(f,u):(s=f,o||(o=setTimeout(()=>{o=null,i(s)},r-y)))},()=>s&&i(s)]}const he=(e,t,n=3)=>{let r=0;const s=Zn(50,250);return er(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 y={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(y)},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)),tr=T.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,T.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(T.origin),T.navigator&&/(msie|trident)/i.test(T.navigator.userAgent)):()=>!0,nr=T.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;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 rr(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function St(e,t,n){let r=!rr(t);return e&&(r||n===!1)?sr(e,t):t}const Ye=e=>e instanceof C?{...e}:e;function V(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(f,u,y,E){return a.isPlainObject(f)&&a.isPlainObject(u)?a.merge.call({caseless:E},f,u):a.isPlainObject(u)?a.merge({},u):a.isArray(u)?u.slice():u}function s(f,u,y,E){if(a.isUndefined(u)){if(!a.isUndefined(f))return r(void 0,f,y,E)}else return r(f,u,y,E)}function o(f,u){if(!a.isUndefined(u))return r(void 0,u)}function i(f,u){if(a.isUndefined(u)){if(!a.isUndefined(f))return r(void 0,f)}else return r(void 0,u)}function c(f,u,y){if(a.hasOwnProp(t,y))return r(f,u);if(a.hasOwnProp(e,y))return r(void 0,f)}const l={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:(f,u,y)=>s(Ye(f),Ye(u),y,!0)};return a.forEach(Object.keys({...e,...t}),function(u){if(u==="__proto__"||u==="constructor"||u==="prototype")return;const y=a.hasOwnProp(l,u)?l[u]:s,E=a.hasOwnProp(e,u)?e[u]:void 0,b=a.hasOwnProp(t,u)?t[u]:void 0,w=y(E,b,u);a.isUndefined(w)&&y!==c||(n[u]=w)}),n}const or=["content-type","content-length"];function ir(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,s])=>{or.includes(r.toLowerCase())&&e.set(r,s)})}const ar=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),At=e=>{const t=V({},e),n=E=>a.hasOwnProp(t,E)?t[E]: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"),y=n("url");if(t.headers=c=C.from(c),t.url=Et(St(f,y,u),e.params,e.paramsSerializer),l&&c.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?ar(l.password):""))),a.isFormData(r)&&(T.hasStandardBrowserEnv||T.hasStandardBrowserWebWorkerEnv?c.setContentType(void 0):a.isFunction(r.getHeaders)&&ir(c,r.getHeaders(),n("formDataHeaderPolicy"))),T.hasStandardBrowserEnv&&(a.isFunction(s)&&(s=s(t)),s===!0||s==null&&tr(t.url))){const b=o&&i&&nr.read(i);b&&c.set(o,b)}return t},cr=typeof XMLHttpRequest<"u",lr=cr&&function(e){return new Promise(function(n,r){const s=At(e);let o=s.data;const i=C.from(s.headers).normalize();let{responseType:c,onUploadProgress:l,onDownloadProgress:f}=s,u,y,E,b,w;function h(){b&&b(),w&&w(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let d=new XMLHttpRequest;d.open(s.method.toUpperCase(),s.url,!0),d.timeout=s.timeout;function m(){if(!d)return;const g=C.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),P={data:!c||c==="text"||c==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:g,config:e,request:d};Ot(function(G){n(G),h()},function(G){r(G),h()},P),d=null}"onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.startsWith("file:"))||setTimeout(m)},d.onabort=function(){d&&(r(new p("Request aborted",p.ECONNABORTED,e,d)),h(),d=null)},d.onerror=function(R){const P=R&&R.message?R.message:"Network Error",q=new p(P,p.ERR_NETWORK,e,d);q.event=R||null,r(q),h(),d=null},d.ontimeout=function(){let R=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const P=s.transitional||Be;s.timeoutErrorMessage&&(R=s.timeoutErrorMessage),r(new p(R,P.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,e,d)),h(),d=null},o===void 0&&i.setContentType(null),"setRequestHeader"in d&&a.forEach(mt(i),function(R,P){d.setRequestHeader(P,R)}),a.isUndefined(s.withCredentials)||(d.withCredentials=!!s.withCredentials),c&&c!=="json"&&(d.responseType=s.responseType),f&&([E,w]=he(f,!0),d.addEventListener("progress",E)),l&&d.upload&&([y,b]=he(l),d.upload.addEventListener("progress",y),d.upload.addEventListener("loadend",b)),(s.cancelToken||s.signal)&&(u=g=>{d&&(r(!g||g.type?new oe(null,e,d):g),d.abort(),h(),d=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const O=Yn(s.url);if(O&&!T.protocols.includes(O)){r(new p("Unsupported protocol "+O+":",p.ERR_BAD_REQUEST,e));return}d.send(o||null)})},ur=(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 p?f:new oe(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{o=null,s(new p(`timeout of ${t}ms exceeded`,p.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));const{signal:c}=n;return c.unsubscribe=()=>a.asap(i),c},fr=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},dr=async function*(e,t){for await(const n of pr(e))yield*fr(n,t)},pr=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()}},Ze=(e,t,n,r)=>{const s=dr(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 y=u.byteLength;if(n){let E=o+=y;n(E)}l.enqueue(new Uint8Array(u))}catch(f){throw c(f),f}},cancel(l){return c(l),s.return()}},{highWaterMark:2})};function hr(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 w=r.charCodeAt(b+1),h=r.charCodeAt(b+2);(w>=48&&w<=57||w>=65&&w<=70||w>=97&&w<=102)&&(h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102)&&(i-=2,b+=2)}let l=0,f=c-1;const u=b=>b>=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 E=Math.floor(i/4)*3-(l||0);return E>0?E:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let o=0;for(let i=0,c=r.length;i<c;i++){const l=r.charCodeAt(i);if(l<128)o+=1;else if(l<2048)o+=2;else if(l>=55296&&l<=56319&&i+1<c){const f=r.charCodeAt(i+1);f>=56320&&f<=57343?(o+=4,i++):o+=3}else o+=3}return o}const Ie="1.16.1",et=64*1024,{isFunction:le}=a,tt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},mr=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?le(s):typeof fetch=="function",l=le(o),f=le(i);if(!c)return!1;const u=c&&le(n),y=c&&(typeof r=="function"?(m=>O=>m.encode(O))(new r):async m=>new Uint8Array(await new o(m).arrayBuffer())),E=l&&u&&tt(()=>{let m=!1;const O=new o(T.origin,{body:new n,method:"POST",get duplex(){return m=!0,"half"}}),g=O.headers.has("Content-Type");return O.body!=null&&O.body.cancel(),m&&!g}),b=f&&u&&tt(()=>a.isReadableStream(new i("").body)),w={stream:b&&(m=>m.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!w[m]&&(w[m]=(O,g)=>{let R=O&&O[m];if(R)return R.call(O);throw new p(`Response type '${m}' is not supported`,p.ERR_NOT_SUPPORT,g)})});const h=async m=>{if(m==null)return 0;if(a.isBlob(m))return m.size;if(a.isSpecCompliantForm(m))return(await new o(T.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 y(m)).byteLength},d=async(m,O)=>{const g=a.toFiniteNumber(m.getContentLength());return g??h(O)};return async m=>{let{url:O,method:g,data:R,signal:P,cancelToken:q,timeout:G,onDownloadProgress:ge,onUploadProgress:He,responseType:k,headers:H,withCredentials:ie="same-origin",fetchOptions:Me,maxContentLength:U,maxBodyLength:Oe}=At(m);const Q=a.isNumber(U)&&U>-1,Nt=a.isNumber(Oe)&&Oe>-1;let ze=s||fetch;k=k?(k+"").toLowerCase():"text";let I=ur([P,q&&q.toAbortSignal()],G),N=null;const M=I&&I.unsubscribe&&(()=>{I.unsubscribe()});let $e;try{if(Q&&typeof O=="string"&&O.startsWith("data:")&&hr(O)>U)throw new p("maxContentLength size of "+U+" exceeded",p.ERR_BAD_RESPONSE,m,N);if(Nt&&g!=="get"&&g!=="head"){const S=await d(H,R);if(typeof S=="number"&&isFinite(S)&&S>Oe)throw new p("Request body larger than maxBodyLength limit",p.ERR_BAD_REQUEST,m,N)}if(He&&E&&g!=="get"&&g!=="head"&&($e=await d(H,R))!==0){let S=new o(O,{method:"POST",body:R,duplex:"half"}),J;if(a.isFormData(R)&&(J=S.headers.get("content-type"))&&H.setContentType(J),S.body){const[ae,ce]=Ge($e,he(Qe(He)));R=Ze(S.body,et,ae,ce)}}a.isString(ie)||(ie=ie?"include":"omit");const _=l&&"credentials"in o.prototype;if(a.isFormData(R)){const S=H.getContentType();S&&/^multipart\/form-data/i.test(S)&&!/boundary=/i.test(S)&&H.delete("content-type")}H.set("User-Agent","axios/"+Ie,!1);const j={...Me,signal:I,method:g.toUpperCase(),headers:mt(H.normalize()),body:R,duplex:"half",credentials:_?ie:void 0};N=l&&new o(O,j);let F=await(l?ze(N,Me):ze(O,j));if(Q){const S=a.toFiniteNumber(F.headers.get("content-length"));if(S!=null&&S>U)throw new p("maxContentLength size of "+U+" exceeded",p.ERR_BAD_RESPONSE,m,N)}const Se=b&&(k==="stream"||k==="response");if(b&&F.body&&(ge||Q||Se&&M)){const S={};["status","statusText","headers"].forEach(Y=>{S[Y]=F[Y]});const J=a.toFiniteNumber(F.headers.get("content-length")),[ae,ce]=ge&&Ge(J,he(Qe(ge),!0))||[];let Ve=0;const Dt=Y=>{if(Q&&(Ve=Y,Ve>U))throw new p("maxContentLength size of "+U+" exceeded",p.ERR_BAD_RESPONSE,m,N);ae&&ae(Y)};F=new i(Ze(F.body,et,Dt,()=>{ce&&ce(),M&&M()}),S)}k=k||"text";let B=await w[a.findKey(w,k)||"text"](F,m);if(Q&&!b&&!Se){let S;if(B!=null&&(typeof B.byteLength=="number"?S=B.byteLength:typeof B.size=="number"?S=B.size:typeof B=="string"&&(S=typeof r=="function"?new r().encode(B).byteLength:B.length)),typeof S=="number"&&S>U)throw new p("maxContentLength size of "+U+" exceeded",p.ERR_BAD_RESPONSE,m,N)}return!Se&&M&&M(),await new Promise((S,J)=>{Ot(S,J,{data:B,headers:C.from(F.headers),status:F.status,statusText:F.statusText,config:m,request:N})})}catch(_){if(M&&M(),I&&I.aborted&&I.reason instanceof p){const j=I.reason;throw j.config=m,N&&(j.request=N),_!==j&&(j.cause=_),j}throw _&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new p("Network Error",p.ERR_NETWORK,m,N,_&&_.response),{cause:_.cause||_}):p.from(_,_&&_.code,m,N,_&&_.response)}}},yr=new Map,_t=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=yr;for(;c--;)l=o[c],f=u.get(l),f===void 0&&u.set(l,f=c?new Map:mr(t)),u=f;return f};_t();const je={http:kn,xhr:lr,fetch:{get:_t}};a.forEach(je,(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}`,br=e=>a.isFunction(e)||e===null||e===!1;function wr(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,!br(r)&&(s=je[(c=String(r)).toLowerCase()],s===void 0))throw new p(`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(([l,f])=>`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(nt).join(`
`):" "+nt(i[0]):"as no adapter specified";throw new p("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const Tt={getAdapter:wr,adapters:je};function Ce(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new oe(null,e)}function rt(e){return Ce(e),e.headers=C.from(e.headers),e.data=Te.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Tt.getAdapter(e.adapter||se.adapter,e)(e).then(function(r){Ce(e),e.response=r;try{r.data=Te.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=C.from(r.headers),r},function(r){if(!gt(r)&&(Ce(e),r&&r.response)){e.response=r.response;try{r.response.data=Te.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=C.from(r.response.headers)}return Promise.reject(r)})}const Re={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Re[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const st={};Re.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Ie+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new p(s(i," has been removed"+(n?" in "+n:"")),p.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}};Re.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Er(e,t,n){if(typeof e!="object")throw new p("options must be an object",p.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 p("option "+o+" must be "+l,p.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new p("Unknown option "+o,p.ERR_BAD_OPTION)}}const de={assertOptions:Er,validators:Re},D=de.validators;let $=class{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),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=V(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&de.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}:de.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),de.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"],w=>{delete o[w]}),n.headers=C.concat(i,o);const c=[];let l=!0;this.interceptors.request.forEach(function(h){if(typeof h.runWhen=="function"&&h.runWhen(n)===!1)return;l=l&&h.synchronous;const d=n.transitional||Be;d&&d.legacyInterceptorReqResOrdering?c.unshift(h.fulfilled,h.rejected):c.push(h.fulfilled,h.rejected)});const f=[];this.interceptors.response.forEach(function(h){f.push(h.fulfilled,h.rejected)});let u,y=0,E;if(!l){const w=[rt.bind(this),void 0];for(w.unshift(...c),w.push(...f),E=w.length,u=Promise.resolve(n);y<E;)u=u.then(w[y++],w[y++]);return u}E=c.length;let b=n;for(;y<E;){const w=c[y++],h=c[y++];try{b=w(b)}catch(d){h.call(this,d);break}}try{u=rt.call(this,b)}catch(w){return Promise.reject(w)}for(y=0,E=f.length;y<E;)u=u.then(f[y++],f[y++]);return u}getUri(t){t=V(this.defaults,t);const n=St(t.baseURL,t.url,t.allowAbsoluteUrls);return Et(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){$.prototype[t]=function(n,r){return this.request(V(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(V(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}$.prototype[t]=n(),t!=="query"&&($.prototype[t+"Form"]=n(!0))});let Rr=class Ct{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new oe(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ct(function(s){t=s}),cancel:t}}};function gr(e){return function(n){return e.apply(null,n)}}function Or(e){return a.isObject(e)&&e.isAxiosError===!0}const Le={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(Le).forEach(([e,t])=>{Le[t]=e});function xt(e){const t=new $(e),n=at($.prototype.request,t);return a.extend(n,$.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return xt(V(e,s))},n}const A=xt(se);A.Axios=$;A.CanceledError=oe;A.CancelToken=Rr;A.isCancel=gt;A.VERSION=Ie;A.toFormData=Ee;A.AxiosError=p;A.Cancel=A.CanceledError;A.all=function(t){return Promise.all(t)};A.spread=gr;A.isAxiosError=Or;A.mergeConfig=V;A.AxiosHeaders=C;A.formToJSON=e=>Rt(a.isHTMLForm(e)?new FormData(e):e);A.getAdapter=Tt.getAdapter;A.HttpStatusCode=Le;A.default=A;const{Axios:Pr,AxiosError:Nr,CanceledError:Dr,isCancel:Lr,CancelToken:Ur,VERSION:Fr,all:Br,Cancel:kr,isAxiosError:Ir,spread:jr,toFormData:qr,AxiosHeaders:Hr,HttpStatusCode:Mr,formToJSON:zr,getAdapter:$r,mergeConfig:Vr,create:Jr}=A,Pt=A.create({baseURL:"/api",timeout:2e4,headers:{"Content-Type":"application/json"}}),qe="agent_token",Sr="oauth_redirect_count",ot=3;let K=null,ee=null;async function Ar(){if(ee)return ee;const e=localStorage.getItem(qe);return e?(console.log("[API] 尝试静默刷新 Token..."),ee=(async()=>{try{const t=await A.post("/api/auth/refresh",null,{params:{token:e},timeout:5e3});return t.data.code===0?(console.log("[API] Token 静默刷新成功"),!0):(console.warn("[API] Token 刷新失败:",t.data.message),!1)}catch(t){return console.warn("[API] Token 刷新异常:",t),!1}finally{ee=null}})(),ee):!1}async function it(e){const t=e==="http401"?"HTTP 401":"业务码 1002";return K?(console.warn(`[API] ${t} 未授权 已有处理进行中等待完成`),K):(console.warn(`[API] ${t} 未授权尝试刷新 Token...`),K=(async()=>{try{if(await Ar()){console.log("[API] Token 刷新成功,不需要跳转"),K=null;return}console.warn("[API] Token 刷新失败,清除凭证并跳转登录"),localStorage.removeItem(qe),pe.warning("登录已过期,请重新登录");const r=parseInt(localStorage.getItem(Sr)||"0",10);if(r>=ot){console.error("[API] 登录重定向次数超限,疑似无限循环,停止重定向"),pe.error("登录状态异常,请刷新页面重试");return}console.warn(`[API] 登录重定向计数: ${r}/${ot}`),Lt(()=>import("./index-B1u3nieA.js").then(s=>s.a1),__vite__mapDeps([0,1])).then(s=>{s.default.push("/login")})}catch(n){console.warn("[API] 401 处理失败:",n)}finally{K=null}})(),K)}Pt.interceptors.request.use(e=>{const t=localStorage.getItem(qe);return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));Pt.interceptors.response.use(e=>{const t=e.data;return t.code!==0?(pe.error(t.message||"请求失败"),t.code===1002&&it("biz1002"),Promise.reject({code:t.code,message:t.message||"请求失败"})):t.data},async e=>{var r;let t="网络异常,请稍后重试",n=-1;if(e.response)switch(n=e.response.status,e.response.status){case 401:await it("http401");break;case 403:t="拒绝访问";break;case 404:t="请求的资源不存在";break;case 422:t=((r=e.response.data)==null?void 0:r.detail)||"请求验证失败";break;case 500:t="服务器内部错误";break;default:t=`请求失败 (${e.response.status})`}else e.code==="ECONNABORTED"&&(t="请求超时,请稍后重试");return n!==401&&pe.error(t),Promise.reject({code:n,message:t})});export{Pt as a};