2025-06-30 09:38:03 +08:00

7 lines
73 KiB
JavaScript

var kn=Object.defineProperty,Bn=Object.defineProperties;var Ln=Object.getOwnPropertyDescriptors;var $e=Object.getOwnPropertySymbols;var Jt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable;var zt=(t,e,r)=>e in t?kn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,z=(t,e)=>{for(var r in e||(e={}))Jt.call(e,r)&&zt(t,r,e[r]);if($e)for(var r of $e(e))Vt.call(e,r)&&zt(t,r,e[r]);return t},J=(t,e)=>Bn(t,Ln(e));var Kt=(t,e)=>{var r={};for(var n in t)Jt.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&$e)for(var n of $e(t))e.indexOf(n)<0&&Vt.call(t,n)&&(r[n]=t[n]);return r};var de=(t,e,r)=>new Promise((n,o)=>{var a=c=>{try{s(r.next(c))}catch(u){o(u)}},i=c=>{try{s(r.throw(c))}catch(u){o(u)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(a,i);s((r=r.apply(t,e)).next())});import{x as jn,C as qn,y as Lr,z as qe,T as Ot,A as Hn,D as Qt,E as j,G as Wn,p as Mt,u as He,S as Gn,H as oe,J as jr,K as zn,L as Jn,M as Vn,N as Kn,R as Yt,U as Xt,O as Zt,Q as er,V as tr,W as Qn}from"./index.f451ea46.js";var Yn=4;function Xn(t){return jn(t,Yn)}const{permissionCacheType:Zn}=Lr,qr=Zn===qn.LOCAL;function eo(){return Me(Ot)}function Me(t){return(qr?qe.getLocal:qe.getSession)(t)}function st(t,e){return(qr?qe.setLocal:qe.setSession)(t,e,!0)}function Hr(t,e){return function(){return t.apply(e,arguments)}}const{toString:to}=Object.prototype,{getPrototypeOf:It}=Object,Ye=(t=>e=>{const r=to.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),F=t=>(t=t.toLowerCase(),e=>Ye(e)===t),Xe=t=>e=>typeof e===t,{isArray:le}=Array,Oe=Xe("undefined");function ro(t){return t!==null&&!Oe(t)&&t.constructor!==null&&!Oe(t.constructor)&&R(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Wr=F("ArrayBuffer");function no(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Wr(t.buffer),e}const oo=Xe("string"),R=Xe("function"),Gr=Xe("number"),Ze=t=>t!==null&&typeof t=="object",ao=t=>t===!0||t===!1,Ie=t=>{if(Ye(t)!=="object")return!1;const e=It(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},io=F("Date"),so=F("File"),uo=F("Blob"),co=F("FileList"),lo=t=>Ze(t)&&R(t.pipe),fo=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||R(t.append)&&((e=Ye(t))==="formdata"||e==="object"&&R(t.toString)&&t.toString()==="[object FormData]"))},po=F("URLSearchParams"),yo=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ae(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t=="undefined")return;let n,o;if(typeof t!="object"&&(t=[t]),le(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{const a=r?Object.getOwnPropertyNames(t):Object.keys(t),i=a.length;let s;for(n=0;n<i;n++)s=a[n],e.call(null,t[s],s,t)}}function zr(t,e){e=e.toLowerCase();const r=Object.keys(t);let n=r.length,o;for(;n-- >0;)if(o=r[n],e===o.toLowerCase())return o;return null}const Jr=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),Vr=t=>!Oe(t)&&t!==Jr;function wt(){const{caseless:t}=Vr(this)&&this||{},e={},r=(n,o)=>{const a=t&&zr(e,o)||o;Ie(e[a])&&Ie(n)?e[a]=wt(e[a],n):Ie(n)?e[a]=wt({},n):le(n)?e[a]=n.slice():e[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Ae(arguments[n],r);return e}const ho=(t,e,r,{allOwnKeys:n}={})=>(Ae(e,(o,a)=>{r&&R(o)?t[a]=Hr(o,r):t[a]=o},{allOwnKeys:n}),t),mo=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),vo=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},go=(t,e,r,n)=>{let o,a,i;const s={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),a=o.length;a-- >0;)i=o[a],(!n||n(i,t,e))&&!s[i]&&(e[i]=t[i],s[i]=!0);t=r!==!1&&It(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},So=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},Eo=t=>{if(!t)return null;if(le(t))return t;let e=t.length;if(!Gr(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},bo=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&It(Uint8Array)),Oo=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=n.next())&&!o.done;){const a=o.value;e.call(t,a[0],a[1])}},wo=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Ao=F("HTMLFormElement"),To=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),rr=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Po=F("RegExp"),Kr=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};Ae(r,(o,a)=>{e(o,a,t)!==!1&&(n[a]=o)}),Object.defineProperties(t,n)},Ro=t=>{Kr(t,(e,r)=>{if(R(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(!!R(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},xo=(t,e)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return le(t)?n(t):n(String(t).split(e)),r},No=()=>{},Co=(t,e)=>(t=+t,Number.isFinite(t)?t:e),ut="abcdefghijklmnopqrstuvwxyz",nr="0123456789",Qr={DIGIT:nr,ALPHA:ut,ALPHA_DIGIT:ut+ut.toUpperCase()+nr},$o=(t=16,e=Qr.ALPHA_DIGIT)=>{let r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function Fo(t){return!!(t&&R(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const _o=t=>{const e=new Array(10),r=(n,o)=>{if(Ze(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[o]=n;const a=le(n)?[]:{};return Ae(n,(i,s)=>{const c=r(i,o+1);!Oe(c)&&(a[s]=c)}),e[o]=void 0,a}}return n};return r(t,0)},Mo=F("AsyncFunction"),Io=t=>t&&(Ze(t)||R(t))&&R(t.then)&&R(t.catch);var l={isArray:le,isArrayBuffer:Wr,isBuffer:ro,isFormData:fo,isArrayBufferView:no,isString:oo,isNumber:Gr,isBoolean:ao,isObject:Ze,isPlainObject:Ie,isUndefined:Oe,isDate:io,isFile:so,isBlob:uo,isRegExp:Po,isFunction:R,isStream:lo,isURLSearchParams:po,isTypedArray:bo,isFileList:co,forEach:Ae,merge:wt,extend:ho,trim:yo,stripBOM:mo,inherits:vo,toFlatObject:go,kindOf:Ye,kindOfTest:F,endsWith:So,toArray:Eo,forEachEntry:Oo,matchAll:wo,isHTMLForm:Ao,hasOwnProperty:rr,hasOwnProp:rr,reduceDescriptors:Kr,freezeMethods:Ro,toObjectSet:xo,toCamelCase:To,noop:No,toFiniteNumber:Co,findKey:zr,global:Jr,isContextDefined:Vr,ALPHABET:Qr,generateString:$o,isSpecCompliantForm:Fo,toJSONObject:_o,isAsyncFn:Mo,isThenable:Io};function S(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}l.inherits(S,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:l.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Yr=S.prototype,Xr={};["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(t=>{Xr[t]={value:t}});Object.defineProperties(S,Xr);Object.defineProperty(Yr,"isAxiosError",{value:!0});S.from=(t,e,r,n,o,a)=>{const i=Object.create(Yr);return l.toFlatObject(t,i,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),S.call(i,t.message,e,r,n,o),i.cause=t,i.name=t.name,a&&Object.assign(i,a),i};var Do=null;function At(t){return l.isPlainObject(t)||l.isArray(t)}function Zr(t){return l.endsWith(t,"[]")?t.slice(0,-2):t}function or(t,e,r){return t?t.concat(e).map(function(o,a){return o=Zr(o),!r&&a?"["+o+"]":o}).join(r?".":""):e}function Uo(t){return l.isArray(t)&&!t.some(At)}const ko=l.toFlatObject(l,{},null,function(e){return/^is[A-Z]/.test(e)});function et(t,e,r){if(!l.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=l.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,E){return!l.isUndefined(E[m])});const n=r.metaTokens,o=r.visitor||f,a=r.dots,i=r.indexes,c=(r.Blob||typeof Blob!="undefined"&&Blob)&&l.isSpecCompliantForm(e);if(!l.isFunction(o))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(l.isDate(p))return p.toISOString();if(!c&&l.isBlob(p))throw new S("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(p)||l.isTypedArray(p)?c&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,m,E){let v=p;if(p&&!E&&typeof p=="object"){if(l.endsWith(m,"{}"))m=n?m:m.slice(0,-2),p=JSON.stringify(p);else if(l.isArray(p)&&Uo(p)||(l.isFileList(p)||l.endsWith(m,"[]"))&&(v=l.toArray(p)))return m=Zr(m),v.forEach(function(T,x){!(l.isUndefined(T)||T===null)&&e.append(i===!0?or([m],x,a):i===null?m:m+"[]",u(T))}),!1}return At(p)?!0:(e.append(or(E,m,a),u(p)),!1)}const d=[],y=Object.assign(ko,{defaultVisitor:f,convertValue:u,isVisitable:At});function h(p,m){if(!l.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),l.forEach(p,function(v,b){(!(l.isUndefined(v)||v===null)&&o.call(e,v,l.isString(b)?b.trim():b,m,y))===!0&&h(v,m?m.concat(b):[b])}),d.pop()}}if(!l.isObject(t))throw new TypeError("data must be an object");return h(t),e}function ar(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Dt(t,e){this._pairs=[],t&&et(t,this,e)}const en=Dt.prototype;en.append=function(e,r){this._pairs.push([e,r])};en.toString=function(e){const r=e?function(n){return e.call(this,n,ar)}:ar;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Bo(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tn(t,e,r){if(!e)return t;const n=r&&r.encode||Bo,o=r&&r.serialize;let a;if(o?a=o(e,r):a=l.isURLSearchParams(e)?e.toString():new Dt(e,r).toString(n),a){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class Lo{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){l.forEach(this.handlers,function(n){n!==null&&e(n)})}}var ir=Lo,rn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jo=typeof URLSearchParams!="undefined"?URLSearchParams:Dt,qo=typeof FormData!="undefined"?FormData:null,Ho=typeof Blob!="undefined"?Blob:null;const Wo=(()=>{let t;return typeof navigator!="undefined"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"})(),Go=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")();var D={isBrowser:!0,classes:{URLSearchParams:jo,FormData:qo,Blob:Ho},isStandardBrowserEnv:Wo,isStandardBrowserWebWorkerEnv:Go,protocols:["http","https","file","blob","url","data"]};function zo(t,e){return et(t,new D.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return a.defaultVisitor.apply(this,arguments)}},e))}function Jo(t){return l.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Vo(t){const e={},r=Object.keys(t);let n;const o=r.length;let a;for(n=0;n<o;n++)a=r[n],e[a]=t[a];return e}function nn(t){function e(r,n,o,a){let i=r[a++];const s=Number.isFinite(+i),c=a>=r.length;return i=!i&&l.isArray(o)?o.length:i,c?(l.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!s):((!o[i]||!l.isObject(o[i]))&&(o[i]=[]),e(r,n,o[i],a)&&l.isArray(o[i])&&(o[i]=Vo(o[i])),!s)}if(l.isFormData(t)&&l.isFunction(t.entries)){const r={};return l.forEachEntry(t,(n,o)=>{e(Jo(n),o,r,0)}),r}return null}const Ko={"Content-Type":void 0};function Qo(t,e,r){if(l.isString(t))try{return(e||JSON.parse)(t),l.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const tt={transitional:rn,adapter:["xhr","http"],transformRequest:[function(e,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=l.isObject(e);if(a&&l.isHTMLForm(e)&&(e=new FormData(e)),l.isFormData(e))return o&&o?JSON.stringify(nn(e)):e;if(l.isArrayBuffer(e)||l.isBuffer(e)||l.isStream(e)||l.isFile(e)||l.isBlob(e))return e;if(l.isArrayBufferView(e))return e.buffer;if(l.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return zo(e,this.formSerializer).toString();if((s=l.isFileList(e))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return et(s?{"files[]":e}:e,c&&new c,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),Qo(e)):e}],transformResponse:[function(e){const r=this.transitional||tt.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(e&&l.isString(e)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?S.from(s,S.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:D.classes.FormData,Blob:D.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};l.forEach(["delete","get","head"],function(e){tt.headers[e]={}});l.forEach(["post","put","patch"],function(e){tt.headers[e]=l.merge(Ko)});var Ut=tt;const Yo=l.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Xo=t=>{const e={};let r,n,o;return t&&t.split(`
`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||e[r]&&Yo[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e};const sr=Symbol("internals");function ye(t){return t&&String(t).trim().toLowerCase()}function De(t){return t===!1||t==null?t:l.isArray(t)?t.map(De):String(t)}function Zo(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const ea=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ct(t,e,r,n,o){if(l.isFunction(n))return n.call(this,e,r);if(o&&(e=r),!!l.isString(e)){if(l.isString(n))return e.indexOf(n)!==-1;if(l.isRegExp(n))return n.test(e)}}function ta(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function ra(t,e){const r=l.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(o,a,i){return this[n].call(this,e,o,a,i)},configurable:!0})})}class rt{constructor(e){e&&this.set(e)}set(e,r,n){const o=this;function a(s,c,u){const f=ye(c);if(!f)throw new Error("header name must be a non-empty string");const d=l.findKey(o,f);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||c]=De(s))}const i=(s,c)=>l.forEach(s,(u,f)=>a(u,f,c));return l.isPlainObject(e)||e instanceof this.constructor?i(e,r):l.isString(e)&&(e=e.trim())&&!ea(e)?i(Xo(e),r):e!=null&&a(r,e,n),this}get(e,r){if(e=ye(e),e){const n=l.findKey(this,e);if(n){const o=this[n];if(!r)return o;if(r===!0)return Zo(o);if(l.isFunction(r))return r.call(this,o,n);if(l.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=ye(e),e){const n=l.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||ct(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let o=!1;function a(i){if(i=ye(i),i){const s=l.findKey(n,i);s&&(!r||ct(n,n[s],s,r))&&(delete n[s],o=!0)}}return l.isArray(e)?e.forEach(a):a(e),o}clear(e){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const a=r[n];(!e||ct(this,this[a],a,e,!0))&&(delete this[a],o=!0)}return o}normalize(e){const r=this,n={};return l.forEach(this,(o,a)=>{const i=l.findKey(n,a);if(i){r[i]=De(o),delete r[a];return}const s=e?ta(a):String(a).trim();s!==a&&delete r[a],r[s]=De(o),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return l.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=e&&l.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(o=>n.set(o)),n}static accessor(e){const n=(this[sr]=this[sr]={accessors:{}}).accessors,o=this.prototype;function a(i){const s=ye(i);n[s]||(ra(o,i),n[s]=!0)}return l.isArray(e)?e.forEach(a):a(e),this}}rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);l.freezeMethods(rt.prototype);l.freezeMethods(rt);var U=rt;function lt(t,e){const r=this||Ut,n=e||r,o=U.from(n.headers);let a=n.data;return l.forEach(t,function(s){a=s.call(r,a,o.normalize(),e?e.status:void 0)}),o.normalize(),a}function on(t){return!!(t&&t.__CANCEL__)}function Te(t,e,r){S.call(this,t==null?"canceled":t,S.ERR_CANCELED,e,r),this.name="CanceledError"}l.inherits(Te,S,{__CANCEL__:!0});function na(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new S("Request failed with status code "+r.status,[S.ERR_BAD_REQUEST,S.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}var oa=D.isStandardBrowserEnv?function(){return{write:function(r,n,o,a,i,s){const c=[];c.push(r+"="+encodeURIComponent(n)),l.isNumber(o)&&c.push("expires="+new Date(o).toGMTString()),l.isString(a)&&c.push("path="+a),l.isString(i)&&c.push("domain="+i),s===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function aa(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ia(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function an(t,e){return t&&!aa(e)?ia(t,e):e}var sa=D.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(a){let i=a;return e&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(i){const s=l.isString(i)?o(i):i;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function ua(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function ca(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o=0,a=0,i;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),f=n[a];i||(i=u),r[o]=c,n[o]=u;let d=a,y=0;for(;d!==o;)y+=r[d++],d=d%t;if(o=(o+1)%t,o===a&&(a=(a+1)%t),u-i<e)return;const h=f&&u-f;return h?Math.round(y*1e3/h):void 0}}function ur(t,e){let r=0;const n=ca(50,250);return o=>{const a=o.loaded,i=o.lengthComputable?o.total:void 0,s=a-r,c=n(s),u=a<=i;r=a;const f={loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:c||void 0,estimated:c&&i&&u?(i-a)/c:void 0,event:o};f[e?"download":"upload"]=!0,t(f)}}const la=typeof XMLHttpRequest!="undefined";var fa=la&&function(t){return new Promise(function(r,n){let o=t.data;const a=U.from(t.headers).normalize(),i=t.responseType;let s;function c(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}l.isFormData(o)&&(D.isStandardBrowserEnv||D.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(t.auth){const h=t.auth.username||"",p=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";a.set("Authorization","Basic "+btoa(h+":"+p))}const f=an(t.baseURL,t.url);u.open(t.method.toUpperCase(),tn(f,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function d(){if(!u)return;const h=U.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),m={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:h,config:t,request:u};na(function(v){r(v),c()},function(v){n(v),c()},m),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){!u||(n(new S("Request aborted",S.ECONNABORTED,t,u)),u=null)},u.onerror=function(){n(new S("Network Error",S.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let p=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const m=t.transitional||rn;t.timeoutErrorMessage&&(p=t.timeoutErrorMessage),n(new S(p,m.clarifyTimeoutError?S.ETIMEDOUT:S.ECONNABORTED,t,u)),u=null},D.isStandardBrowserEnv){const h=(t.withCredentials||sa(f))&&t.xsrfCookieName&&oa.read(t.xsrfCookieName);h&&a.set(t.xsrfHeaderName,h)}o===void 0&&a.setContentType(null),"setRequestHeader"in u&&l.forEach(a.toJSON(),function(p,m){u.setRequestHeader(m,p)}),l.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),i&&i!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",ur(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",ur(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=h=>{!u||(n(!h||h.type?new Te(null,t,u):h),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const y=ua(f);if(y&&D.protocols.indexOf(y)===-1){n(new S("Unsupported protocol "+y+":",S.ERR_BAD_REQUEST,t));return}u.send(o||null)})};const Ue={http:Do,xhr:fa};l.forEach(Ue,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(r){}Object.defineProperty(t,"adapterName",{value:e})}});var pa={getAdapter:t=>{t=l.isArray(t)?t:[t];const{length:e}=t;let r,n;for(let o=0;o<e&&(r=t[o],!(n=l.isString(r)?Ue[r.toLowerCase()]:r));o++);if(!n)throw n===!1?new S(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(l.hasOwnProp(Ue,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`);if(!l.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:Ue};function ft(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Te(null,t)}function cr(t){return ft(t),t.headers=U.from(t.headers),t.data=lt.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),pa.getAdapter(t.adapter||Ut.adapter)(t).then(function(n){return ft(t),n.data=lt.call(t,t.transformResponse,n),n.headers=U.from(n.headers),n},function(n){return on(n)||(ft(t),n&&n.response&&(n.response.data=lt.call(t,t.transformResponse,n.response),n.response.headers=U.from(n.response.headers))),Promise.reject(n)})}const lr=t=>t instanceof U?t.toJSON():t;function ie(t,e){e=e||{};const r={};function n(u,f,d){return l.isPlainObject(u)&&l.isPlainObject(f)?l.merge.call({caseless:d},u,f):l.isPlainObject(f)?l.merge({},f):l.isArray(f)?f.slice():f}function o(u,f,d){if(l.isUndefined(f)){if(!l.isUndefined(u))return n(void 0,u,d)}else return n(u,f,d)}function a(u,f){if(!l.isUndefined(f))return n(void 0,f)}function i(u,f){if(l.isUndefined(f)){if(!l.isUndefined(u))return n(void 0,u)}else return n(void 0,f)}function s(u,f,d){if(d in e)return n(u,f);if(d in t)return n(void 0,u)}const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials: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:s,headers:(u,f)=>o(lr(u),lr(f),!0)};return l.forEach(Object.keys(Object.assign({},t,e)),function(f){const d=c[f]||o,y=d(t[f],e[f],f);l.isUndefined(y)&&d!==s||(r[f]=y)}),r}const sn="1.4.0",kt={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{kt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const fr={};kt.transitional=function(e,r,n){function o(a,i){return"[Axios v"+sn+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,s)=>{if(e===!1)throw new S(o(i," has been removed"+(r?" in "+r:"")),S.ERR_DEPRECATED);return r&&!fr[i]&&(fr[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(a,i,s):!0}};function da(t,e,r){if(typeof t!="object")throw new S("options must be an object",S.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const a=n[o],i=e[a];if(i){const s=t[a],c=s===void 0||i(s,a,t);if(c!==!0)throw new S("option "+a+" must be "+c,S.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new S("Unknown option "+a,S.ERR_BAD_OPTION)}}var Tt={assertOptions:da,validators:kt};const B=Tt.validators;class We{constructor(e){this.defaults=e,this.interceptors={request:new ir,response:new ir}}request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=ie(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&Tt.assertOptions(n,{silentJSONParsing:B.transitional(B.boolean),forcedJSONParsing:B.transitional(B.boolean),clarifyTimeoutError:B.transitional(B.boolean)},!1),o!=null&&(l.isFunction(o)?r.paramsSerializer={serialize:o}:Tt.assertOptions(o,{encode:B.function,serialize:B.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i;i=a&&l.merge(a.common,a[r.method]),i&&l.forEach(["delete","get","head","post","put","patch","common"],p=>{delete a[p]}),r.headers=U.concat(i,a);const s=[];let c=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(c=c&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let f,d=0,y;if(!c){const p=[cr.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,u),y=p.length,f=Promise.resolve(r);d<y;)f=f.then(p[d++],p[d++]);return f}y=s.length;let h=r;for(d=0;d<y;){const p=s[d++],m=s[d++];try{h=p(h)}catch(E){m.call(this,E);break}}try{f=cr.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,y=u.length;d<y;)f=f.then(u[d++],u[d++]);return f}getUri(e){e=ie(this.defaults,e);const r=an(e.baseURL,e.url);return tn(r,e.params,e.paramsSerializer)}}l.forEach(["delete","get","head","options"],function(e){We.prototype[e]=function(r,n){return this.request(ie(n||{},{method:e,url:r,data:(n||{}).data}))}});l.forEach(["post","put","patch"],function(e){function r(n){return function(a,i,s){return this.request(ie(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}We.prototype[e]=r(),We.prototype[e+"Form"]=r(!0)});var ke=We;class Bt{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(s=>{n.subscribe(s),a=s}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},e(function(a,i,s){n.reason||(n.reason=new Te(a,i,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new Bt(function(o){e=o}),cancel:e}}}var ya=Bt;function ha(t){return function(r){return t.apply(null,r)}}function ma(t){return l.isObject(t)&&t.isAxiosError===!0}const Pt={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(Pt).forEach(([t,e])=>{Pt[e]=t});var va=Pt;function un(t){const e=new ke(t),r=Hr(ke.prototype.request,e);return l.extend(r,ke.prototype,e,{allOwnKeys:!0}),l.extend(r,e,null,{allOwnKeys:!0}),r.create=function(o){return un(ie(t,o))},r}const O=un(Ut);O.Axios=ke;O.CanceledError=Te;O.CancelToken=ya;O.isCancel=on;O.VERSION=sn;O.toFormData=et;O.AxiosError=S;O.Cancel=O.CanceledError;O.all=function(e){return Promise.all(e)};O.spread=ha;O.isAxiosError=ma;O.mergeConfig=ie;O.AxiosHeaders=U;O.formToJSON=t=>nn(l.isHTMLForm(t)?new FormData(t):t);O.HttpStatusCode=va;O.default=O;var ve=O,fe=TypeError,ga={},Sa=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:ga}),Ea=Hn(Sa),Lt=typeof Map=="function"&&Map.prototype,pt=Object.getOwnPropertyDescriptor&&Lt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Ge=Lt&&pt&&typeof pt.get=="function"?pt.get:null,pr=Lt&&Map.prototype.forEach,jt=typeof Set=="function"&&Set.prototype,dt=Object.getOwnPropertyDescriptor&&jt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ze=jt&&dt&&typeof dt.get=="function"?dt.get:null,dr=jt&&Set.prototype.forEach,ba=typeof WeakMap=="function"&&WeakMap.prototype,ge=ba?WeakMap.prototype.has:null,Oa=typeof WeakSet=="function"&&WeakSet.prototype,Se=Oa?WeakSet.prototype.has:null,wa=typeof WeakRef=="function"&&WeakRef.prototype,yr=wa?WeakRef.prototype.deref:null,Aa=Boolean.prototype.valueOf,Ta=Object.prototype.toString,Pa=Function.prototype.toString,Ra=String.prototype.match,qt=String.prototype.slice,q=String.prototype.replace,xa=String.prototype.toUpperCase,hr=String.prototype.toLowerCase,cn=RegExp.prototype.test,mr=Array.prototype.concat,$=Array.prototype.join,Na=Array.prototype.slice,vr=Math.floor,Rt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,yt=Object.getOwnPropertySymbols,xt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,se=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ee=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===se?"object":"symbol")?Symbol.toStringTag:null,ln=Object.prototype.propertyIsEnumerable,gr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Sr(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||cn.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-vr(-t):vr(t);if(n!==t){var o=String(n),a=qt.call(e,o.length+1);return q.call(o,r,"$&_")+"."+q.call(q.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return q.call(e,r,"$&_")}var Nt=Ea,Er=Nt.custom,br=dn(Er)?Er:null,fn={__proto__:null,double:'"',single:"'"},Ca={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},nt=function t(e,r,n,o){var a=r||{};if(M(a,"quoteStyle")&&!M(fn,a.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(M(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=M(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(M(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(M(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(typeof e=="undefined")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return hn(e,a);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return s?Sr(e,c):c}if(typeof e=="bigint"){var u=String(e)+"n";return s?Sr(e,u):u}var f=typeof a.depth=="undefined"?5:a.depth;if(typeof n=="undefined"&&(n=0),n>=f&&f>0&&typeof e=="object")return Ct(e)?"[Array]":"[Object]";var d=Va(a,n);if(typeof o=="undefined")o=[];else if(yn(o,e)>=0)return"[Circular]";function y(_,Z,Ce){if(Z&&(o=Na.call(o),o.push(Z)),Ce){var ee={depth:a.depth};return M(a,"quoteStyle")&&(ee.quoteStyle=a.quoteStyle),t(_,ee,n+1,o)}return t(_,a,n+1,o)}if(typeof e=="function"&&!Or(e)){var h=Ba(e),p=Fe(e,y);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(p.length>0?" { "+$.call(p,", ")+" }":"")}if(dn(e)){var m=se?q.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):xt.call(e);return typeof e=="object"&&!se?he(m):m}if(Ga(e)){for(var E="<"+hr.call(String(e.nodeName)),v=e.attributes||[],b=0;b<v.length;b++)E+=" "+v[b].name+"="+pn($a(v[b].value),"double",a);return E+=">",e.childNodes&&e.childNodes.length&&(E+="..."),E+="</"+hr.call(String(e.nodeName))+">",E}if(Ct(e)){if(e.length===0)return"[]";var T=Fe(e,y);return d&&!Ja(T)?"["+$t(T,d)+"]":"[ "+$.call(T,", ")+" ]"}if(_a(e)){var x=Fe(e,y);return!("cause"in Error.prototype)&&"cause"in e&&!ln.call(e,"cause")?"{ ["+String(e)+"] "+$.call(mr.call("[cause]: "+y(e.cause),x),", ")+" }":x.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+$.call(x,", ")+" }"}if(typeof e=="object"&&i){if(br&&typeof e[br]=="function"&&Nt)return Nt(e,{depth:f-n});if(i!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(La(e)){var W=[];return pr&&pr.call(e,function(_,Z){W.push(y(Z,e,!0)+" => "+y(_,e))}),wr("Map",Ge.call(e),W,d)}if(Ha(e)){var Ne=[];return dr&&dr.call(e,function(_){Ne.push(y(_,e))}),wr("Set",ze.call(e),Ne,d)}if(ja(e))return ht("WeakMap");if(Wa(e))return ht("WeakSet");if(qa(e))return ht("WeakRef");if(Ia(e))return he(y(Number(e)));if(Ua(e))return he(y(Rt.call(e)));if(Da(e))return he(Aa.call(e));if(Ma(e))return he(y(String(e)));if(typeof window!="undefined"&&e===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&e===globalThis||typeof Qt!="undefined"&&e===Qt)return"{ [object globalThis] }";if(!Fa(e)&&!Or(e)){var G=Fe(e,y),k=gr?gr(e)===Object.prototype:e instanceof Object||e.constructor===Object,Y=e instanceof Object?"":"null prototype",X=!k&&Ee&&Object(e)===e&&Ee in e?qt.call(H(e),8,-1):Y?"Object":"",pe=k||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",N=pe+(X||Y?"["+$.call(mr.call([],X||[],Y||[]),": ")+"] ":"");return G.length===0?N+"{}":d?N+"{"+$t(G,d)+"}":N+"{ "+$.call(G,", ")+" }"}return String(e)};function pn(t,e,r){var n=r.quoteStyle||e,o=fn[n];return o+t+o}function $a(t){return q.call(String(t),/"/g,"&quot;")}function Q(t){return!Ee||!(typeof t=="object"&&(Ee in t||typeof t[Ee]!="undefined"))}function Ct(t){return H(t)==="[object Array]"&&Q(t)}function Fa(t){return H(t)==="[object Date]"&&Q(t)}function Or(t){return H(t)==="[object RegExp]"&&Q(t)}function _a(t){return H(t)==="[object Error]"&&Q(t)}function Ma(t){return H(t)==="[object String]"&&Q(t)}function Ia(t){return H(t)==="[object Number]"&&Q(t)}function Da(t){return H(t)==="[object Boolean]"&&Q(t)}function dn(t){if(se)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!xt)return!1;try{return xt.call(t),!0}catch(e){}return!1}function Ua(t){if(!t||typeof t!="object"||!Rt)return!1;try{return Rt.call(t),!0}catch(e){}return!1}var ka=Object.prototype.hasOwnProperty||function(t){return t in this};function M(t,e){return ka.call(t,e)}function H(t){return Ta.call(t)}function Ba(t){if(t.name)return t.name;var e=Ra.call(Pa.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function yn(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function La(t){if(!Ge||!t||typeof t!="object")return!1;try{Ge.call(t);try{ze.call(t)}catch(e){return!0}return t instanceof Map}catch(e){}return!1}function ja(t){if(!ge||!t||typeof t!="object")return!1;try{ge.call(t,ge);try{Se.call(t,Se)}catch(e){return!0}return t instanceof WeakMap}catch(e){}return!1}function qa(t){if(!yr||!t||typeof t!="object")return!1;try{return yr.call(t),!0}catch(e){}return!1}function Ha(t){if(!ze||!t||typeof t!="object")return!1;try{ze.call(t);try{Ge.call(t)}catch(e){return!0}return t instanceof Set}catch(e){}return!1}function Wa(t){if(!Se||!t||typeof t!="object")return!1;try{Se.call(t,Se);try{ge.call(t,ge)}catch(e){return!0}return t instanceof WeakSet}catch(e){}return!1}function Ga(t){return!t||typeof t!="object"?!1:typeof HTMLElement!="undefined"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function hn(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return hn(qt.call(t,0,e.maxStringLength),e)+n}var o=Ca[e.quoteStyle||"single"];o.lastIndex=0;var a=q.call(q.call(t,o,"\\$1"),/[\x00-\x1f]/g,za);return pn(a,"single",e)}function za(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+xa.call(e.toString(16))}function he(t){return"Object("+t+")"}function ht(t){return t+" { ? }"}function wr(t,e,r,n){var o=n?$t(r,n):$.call(r,", ");return t+" ("+e+") {"+o+"}"}function Ja(t){for(var e=0;e<t.length;e++)if(yn(t[e],`
`)>=0)return!1;return!0}function Va(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=$.call(Array(t.indent+1)," ");else return null;return{base:r,prev:$.call(Array(e+1),r)}}function $t(t,e){if(t.length===0)return"";var r=`
`+e.prev+e.base;return r+$.call(t,","+r)+`
`+e.prev}function Fe(t,e){var r=Ct(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=M(t,o)?e(t[o],t):""}var a=typeof yt=="function"?yt(t):[],i;if(se){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in t)!M(t,c)||r&&String(Number(c))===c&&c<t.length||se&&i["$"+c]instanceof Symbol||(cn.call(/[^\w$]/,c)?n.push(e(c,t)+": "+e(t[c],t)):n.push(c+": "+e(t[c],t)));if(typeof yt=="function")for(var u=0;u<a.length;u++)ln.call(t,a[u])&&n.push("["+e(a[u])+"]: "+e(t[a[u]],t));return n}var Ka=nt,Qa=fe,ot=function(t,e,r){for(var n=t,o;(o=n.next)!=null;n=o)if(o.key===e)return n.next=o.next,r||(o.next=t.next,t.next=o),o},Ya=function(t,e){if(!!t){var r=ot(t,e);return r&&r.value}},Xa=function(t,e,r){var n=ot(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Za=function(t,e){return t?!!ot(t,e):!1},ei=function(t,e){if(t)return ot(t,e,!0)},ti=function(){var e,r={assert:function(n){if(!r.has(n))throw new Qa("Side channel does not contain "+Ka(n))},delete:function(n){var o=e&&e.next,a=ei(e,n);return a&&o&&o===a&&(e=void 0),!!a},get:function(n){return Ya(e,n)},has:function(n){return Za(e,n)},set:function(n,o){e||(e={next:void 0}),Xa(e,n,o)}};return r},mn=Object,ri=Error,ni=EvalError,oi=RangeError,ai=ReferenceError,ii=SyntaxError,si=URIError,ui=Math.abs,ci=Math.floor,li=Math.max,fi=Math.min,pi=Math.pow,di=Math.round,yi=Number.isNaN||function(e){return e!==e},hi=yi,mi=function(e){return hi(e)||e===0?e:e<0?-1:1},vi=Object.getOwnPropertyDescriptor,Be=vi;if(Be)try{Be([],"length")}catch(t){Be=null}var vn=Be,Le=Object.defineProperty||!1;if(Le)try{Le({},"a",{value:1})}catch(t){Le=!1}var gi=Le,Si=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(var a in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0},Ar=typeof Symbol!="undefined"&&Symbol,Ei=Si,bi=function(){return typeof Ar!="function"||typeof Symbol!="function"||typeof Ar("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Ei()},gn=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null,Oi=mn,Sn=Oi.getPrototypeOf||null,wi="Function.prototype.bind called on incompatible ",Ai=Object.prototype.toString,Ti=Math.max,Pi="[object Function]",Tr=function(e,r){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var a=0;a<r.length;a+=1)n[a+e.length]=r[a];return n},Ri=function(e,r){for(var n=[],o=r||0,a=0;o<e.length;o+=1,a+=1)n[a]=e[o];return n},xi=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r},Ni=function(e){var r=this;if(typeof r!="function"||Ai.apply(r)!==Pi)throw new TypeError(wi+r);for(var n=Ri(arguments,1),o,a=function(){if(this instanceof o){var f=r.apply(this,Tr(n,arguments));return Object(f)===f?f:this}return r.apply(e,Tr(n,arguments))},i=Ti(0,r.length-n.length),s=[],c=0;c<i;c++)s[c]="$"+c;if(o=Function("binder","return function ("+xi(s,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var u=function(){};u.prototype=r.prototype,o.prototype=new u,u.prototype=null}return o},Ci=Ni,at=Function.prototype.bind||Ci,Ht=Function.prototype.call,En=Function.prototype.apply,$i=typeof Reflect!="undefined"&&Reflect&&Reflect.apply,Fi=at,_i=En,Mi=Ht,Ii=$i,Di=Ii||Fi.call(Mi,_i),Ui=at,ki=fe,Bi=Ht,Li=Di,bn=function(e){if(e.length<1||typeof e[0]!="function")throw new ki("a function is required");return Li(Ui,Bi,e)},ji=bn,Pr=vn,On;try{On=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var mt=!!On&&Pr&&Pr(Object.prototype,"__proto__"),wn=Object,Rr=wn.getPrototypeOf,qi=mt&&typeof mt.get=="function"?ji([mt.get]):typeof Rr=="function"?function(e){return Rr(e==null?e:wn(e))}:!1,xr=gn,Nr=Sn,Cr=qi,Hi=xr?function(e){return xr(e)}:Nr?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return Nr(e)}:Cr?function(e){return Cr(e)}:null,Wi=Function.prototype.call,Gi=Object.prototype.hasOwnProperty,zi=at,Ji=zi.call(Wi,Gi),g,Vi=mn,Ki=ri,Qi=ni,Yi=oi,Xi=ai,ue=ii,ae=fe,Zi=si,es=ui,ts=ci,rs=li,ns=fi,os=pi,as=di,is=mi,An=Function,vt=function(t){try{return An('"use strict"; return ('+t+").constructor;")()}catch(e){}},we=vn,ss=gi,gt=function(){throw new ae},us=we?function(){try{return arguments.callee,gt}catch(t){try{return we(arguments,"callee").get}catch(e){return gt}}}():gt,te=bi(),A=Hi,cs=Sn,ls=gn,Tn=En,Pe=Ht,ne={},fs=typeof Uint8Array=="undefined"||!A?g:A(Uint8Array),K={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?g:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?g:ArrayBuffer,"%ArrayIteratorPrototype%":te&&A?A([][Symbol.iterator]()):g,"%AsyncFromSyncIteratorPrototype%":g,"%AsyncFunction%":ne,"%AsyncGenerator%":ne,"%AsyncGeneratorFunction%":ne,"%AsyncIteratorPrototype%":ne,"%Atomics%":typeof Atomics=="undefined"?g:Atomics,"%BigInt%":typeof BigInt=="undefined"?g:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?g:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?g:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?g:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ki,"%eval%":eval,"%EvalError%":Qi,"%Float16Array%":typeof Float16Array=="undefined"?g:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?g:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?g:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?g:FinalizationRegistry,"%Function%":An,"%GeneratorFunction%":ne,"%Int8Array%":typeof Int8Array=="undefined"?g:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?g:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?g:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":te&&A?A(A([][Symbol.iterator]())):g,"%JSON%":typeof JSON=="object"?JSON:g,"%Map%":typeof Map=="undefined"?g:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!te||!A?g:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Vi,"%Object.getOwnPropertyDescriptor%":we,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?g:Promise,"%Proxy%":typeof Proxy=="undefined"?g:Proxy,"%RangeError%":Yi,"%ReferenceError%":Xi,"%Reflect%":typeof Reflect=="undefined"?g:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?g:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!te||!A?g:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?g:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":te&&A?A(""[Symbol.iterator]()):g,"%Symbol%":te?Symbol:g,"%SyntaxError%":ue,"%ThrowTypeError%":us,"%TypedArray%":fs,"%TypeError%":ae,"%Uint8Array%":typeof Uint8Array=="undefined"?g:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?g:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?g:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?g:Uint32Array,"%URIError%":Zi,"%WeakMap%":typeof WeakMap=="undefined"?g:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?g:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?g:WeakSet,"%Function.prototype.call%":Pe,"%Function.prototype.apply%":Tn,"%Object.defineProperty%":ss,"%Object.getPrototypeOf%":cs,"%Math.abs%":es,"%Math.floor%":ts,"%Math.max%":rs,"%Math.min%":ns,"%Math.pow%":os,"%Math.round%":as,"%Math.sign%":is,"%Reflect.getPrototypeOf%":ls};if(A)try{null.error}catch(t){var ps=A(A(t));K["%Error.prototype%"]=ps}var ds=function t(e){var r;if(e==="%AsyncFunction%")r=vt("async function () {}");else if(e==="%GeneratorFunction%")r=vt("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=vt("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&A&&(r=A(o.prototype))}return K[e]=r,r},$r={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Re=at,Je=Ji,ys=Re.call(Pe,Array.prototype.concat),hs=Re.call(Tn,Array.prototype.splice),Fr=Re.call(Pe,String.prototype.replace),Ve=Re.call(Pe,String.prototype.slice),ms=Re.call(Pe,RegExp.prototype.exec),vs=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,gs=/\\(\\)?/g,Ss=function(e){var r=Ve(e,0,1),n=Ve(e,-1);if(r==="%"&&n!=="%")throw new ue("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ue("invalid intrinsic syntax, expected opening `%`");var o=[];return Fr(e,vs,function(a,i,s,c){o[o.length]=s?Fr(c,gs,"$1"):i||a}),o},Es=function(e,r){var n=e,o;if(Je($r,n)&&(o=$r[n],n="%"+o[0]+"%"),Je(K,n)){var a=K[n];if(a===ne&&(a=ds(n)),typeof a=="undefined"&&!r)throw new ae("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new ue("intrinsic "+e+" does not exist!")},Wt=function(e,r){if(typeof e!="string"||e.length===0)throw new ae("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ae('"allowMissing" argument must be a boolean');if(ms(/^%?[^%]*%?$/,e)===null)throw new ue("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Ss(e),o=n.length>0?n[0]:"",a=Es("%"+o+"%",r),i=a.name,s=a.value,c=!1,u=a.alias;u&&(o=u[0],hs(n,ys([0,1],u)));for(var f=1,d=!0;f<n.length;f+=1){var y=n[f],h=Ve(y,0,1),p=Ve(y,-1);if((h==='"'||h==="'"||h==="`"||p==='"'||p==="'"||p==="`")&&h!==p)throw new ue("property names with quotes must have matching quotes");if((y==="constructor"||!d)&&(c=!0),o+="."+y,i="%"+o+"%",Je(K,i))s=K[i];else if(s!=null){if(!(y in s)){if(!r)throw new ae("base intrinsic for "+e+" exists, but the property is not available.");return}if(we&&f+1>=n.length){var m=we(s,y);d=!!m,d&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[y]}else d=Je(s,y),s=s[y];d&&!c&&(K[i]=s)}}return s},Pn=Wt,Rn=bn,bs=Rn([Pn("%String.prototype.indexOf%")]),xn=function(e,r){var n=Pn(e,!!r);return typeof n=="function"&&bs(e,".prototype.")>-1?Rn([n]):n},Os=Wt,xe=xn,ws=nt,As=fe,_r=Os("%Map%",!0),Ts=xe("Map.prototype.get",!0),Ps=xe("Map.prototype.set",!0),Rs=xe("Map.prototype.has",!0),xs=xe("Map.prototype.delete",!0),Ns=xe("Map.prototype.size",!0),Nn=!!_r&&function(){var e,r={assert:function(n){if(!r.has(n))throw new As("Side channel does not contain "+ws(n))},delete:function(n){if(e){var o=xs(e,n);return Ns(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return Ts(e,n)},has:function(n){return e?Rs(e,n):!1},set:function(n,o){e||(e=new _r),Ps(e,n,o)}};return r},Cs=Wt,it=xn,$s=nt,_e=Nn,Fs=fe,re=Cs("%WeakMap%",!0),_s=it("WeakMap.prototype.get",!0),Ms=it("WeakMap.prototype.set",!0),Is=it("WeakMap.prototype.has",!0),Ds=it("WeakMap.prototype.delete",!0),Us=re?function(){var e,r,n={assert:function(o){if(!n.has(o))throw new Fs("Side channel does not contain "+$s(o))},delete:function(o){if(re&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Ds(e,o)}else if(_e&&r)return r.delete(o);return!1},get:function(o){return re&&o&&(typeof o=="object"||typeof o=="function")&&e?_s(e,o):r&&r.get(o)},has:function(o){return re&&o&&(typeof o=="object"||typeof o=="function")&&e?Is(e,o):!!r&&r.has(o)},set:function(o,a){re&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new re),Ms(e,o,a)):_e&&(r||(r=_e()),r.set(o,a))}};return n}:_e,ks=fe,Bs=nt,Ls=ti,js=Nn,qs=Us,Hs=qs||js||Ls,Ws=function(){var e,r={assert:function(n){if(!r.has(n))throw new ks("Side channel does not contain "+Bs(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,o){e||(e=Hs()),e.set(n,o)}};return r},Gs=String.prototype.replace,zs=/%20/g,St={RFC1738:"RFC1738",RFC3986:"RFC3986"},Gt={default:St.RFC3986,formatters:{RFC1738:function(t){return Gs.call(t,zs,"+")},RFC3986:function(t){return String(t)}},RFC1738:St.RFC1738,RFC3986:St.RFC3986},Js=Gt,Et=Object.prototype.hasOwnProperty,V=Array.isArray,C=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Vs=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(V(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]!="undefined"&&o.push(n[a]);r.obj[r.prop]=o}}},Cn=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},o=0;o<e.length;++o)typeof e[o]!="undefined"&&(n[o]=e[o]);return n},Ks=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(V(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Et.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var o=e;return V(e)&&!V(r)&&(o=Cn(e,n)),V(e)&&V(r)?(r.forEach(function(a,i){if(Et.call(e,i)){var s=e[i];s&&typeof s=="object"&&a&&typeof a=="object"?e[i]=t(s,a,n):e.push(a)}else e[i]=a}),e):Object.keys(r).reduce(function(a,i){var s=r[i];return Et.call(a,i)?a[i]=t(a[i],s,n):a[i]=s,a},o)},Qs=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},Ys=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(o){return n}},Xs=function(e,r,n,o,a){if(e.length===0)return e;var i=e;if(typeof e=="symbol"?i=Symbol.prototype.toString.call(e):typeof e!="string"&&(i=String(e)),n==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(f){return"%26%23"+parseInt(f.slice(2),16)+"%3B"});for(var s="",c=0;c<i.length;++c){var u=i.charCodeAt(c);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===Js.RFC1738&&(u===40||u===41)){s+=i.charAt(c);continue}if(u<128){s=s+C[u];continue}if(u<2048){s=s+(C[192|u>>6]+C[128|u&63]);continue}if(u<55296||u>=57344){s=s+(C[224|u>>12]+C[128|u>>6&63]+C[128|u&63]);continue}c+=1,u=65536+((u&1023)<<10|i.charCodeAt(c)&1023),s+=C[240|u>>18]+C[128|u>>12&63]+C[128|u>>6&63]+C[128|u&63]}return s},Zs=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o<r.length;++o)for(var a=r[o],i=a.obj[a.prop],s=Object.keys(i),c=0;c<s.length;++c){var u=s[c],f=i[u];typeof f=="object"&&f!==null&&n.indexOf(f)===-1&&(r.push({obj:i,prop:u}),n.push(f))}return Vs(r),e},eu=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},tu=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},ru=function(e,r){return[].concat(e,r)},nu=function(e,r){if(V(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)},$n={arrayToObject:Cn,assign:Qs,combine:ru,compact:Zs,decode:Ys,encode:Xs,isBuffer:tu,isRegExp:eu,maybeMap:nu,merge:Ks},Fn=Ws,je=$n,be=Gt,ou=Object.prototype.hasOwnProperty,Mr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},I=Array.isArray,au=Array.prototype.push,_n=function(t,e){au.apply(t,I(e)?e:[e])},iu=Date.prototype.toISOString,Ir=be.default,P={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:je.encode,encodeValuesOnly:!1,format:Ir,formatter:be.formatters[Ir],indices:!1,serializeDate:function(e){return iu.call(e)},skipNulls:!1,strictNullHandling:!1},su=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},bt={},uu=function t(e,r,n,o,a,i,s,c,u,f,d,y,h,p,m,E){for(var v=e,b=E,T=0,x=!1;(b=b.get(bt))!==void 0&&!x;){var W=b.get(e);if(T+=1,typeof W!="undefined"){if(W===T)throw new RangeError("Cyclic object value");x=!0}typeof b.get(bt)=="undefined"&&(T=0)}if(typeof c=="function"?v=c(r,v):v instanceof Date?v=d(v):n==="comma"&&I(v)&&(v=je.maybeMap(v,function(ee){return ee instanceof Date?d(ee):ee})),v===null){if(a)return s&&!p?s(r,P.encoder,m,"key",y):r;v=""}if(su(v)||je.isBuffer(v)){if(s){var Ne=p?r:s(r,P.encoder,m,"key",y);return[h(Ne)+"="+h(s(v,P.encoder,m,"value",y))]}return[h(r)+"="+h(String(v))]}var G=[];if(typeof v=="undefined")return G;var k;if(n==="comma"&&I(v))p&&s&&(v=je.maybeMap(v,s)),k=[{value:v.length>0?v.join(",")||null:void 0}];else if(I(c))k=c;else{var Y=Object.keys(v);k=u?Y.sort(u):Y}for(var X=o&&I(v)&&v.length===1?r+"[]":r,pe=0;pe<k.length;++pe){var N=k[pe],_=typeof N=="object"&&typeof N.value!="undefined"?N.value:v[N];if(!(i&&_===null)){var Z=I(v)?typeof n=="function"?n(X,N):X:X+(f?"."+N:"["+N+"]");E.set(e,T);var Ce=Fn();Ce.set(bt,E),_n(G,t(_,Z,n,o,a,i,n==="comma"&&p&&I(v)?null:s,c,u,f,d,y,h,p,m,Ce))}}return G},cu=function(e){if(!e)return P;if(e.encoder!==null&&typeof e.encoder!="undefined"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||P.charset;if(typeof e.charset!="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=be.default;if(typeof e.format!="undefined"){if(!ou.call(be.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=be.formatters[n],a=P.filter;return(typeof e.filter=="function"||I(e.filter))&&(a=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:P.addQueryPrefix,allowDots:typeof e.allowDots=="undefined"?P.allowDots:!!e.allowDots,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:P.charsetSentinel,delimiter:typeof e.delimiter=="undefined"?P.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:P.encode,encoder:typeof e.encoder=="function"?e.encoder:P.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:P.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:P.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:P.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:P.strictNullHandling}},lu=function(t,e){var r=t,n=cu(e),o,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):I(n.filter)&&(a=n.filter,o=a);var i=[];if(typeof r!="object"||r===null)return"";var s;e&&e.arrayFormat in Mr?s=e.arrayFormat:e&&"indices"in e?s=e.indices?"indices":"repeat":s="indices";var c=Mr[s];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=c==="comma"&&e&&e.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var f=Fn(),d=0;d<o.length;++d){var y=o[d];n.skipNulls&&r[y]===null||_n(i,uu(r[y],y,c,u,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,f))}var h=i.join(n.delimiter),p=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),h.length>0?p+h:""},ce=$n,Ft=Object.prototype.hasOwnProperty,fu=Array.isArray,w={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:ce.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},pu=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Mn=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},du="utf8=%26%2310003%3B",yu="utf8=%E2%9C%93",hu=function(e,r){var n={},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=r.parameterLimit===1/0?void 0:r.parameterLimit,i=o.split(r.delimiter,a),s=-1,c,u=r.charset;if(r.charsetSentinel)for(c=0;c<i.length;++c)i[c].indexOf("utf8=")===0&&(i[c]===yu?u="utf-8":i[c]===du&&(u="iso-8859-1"),s=c,c=i.length);for(c=0;c<i.length;++c)if(c!==s){var f=i[c],d=f.indexOf("]="),y=d===-1?f.indexOf("="):d+1,h,p;y===-1?(h=r.decoder(f,w.decoder,u,"key"),p=r.strictNullHandling?null:""):(h=r.decoder(f.slice(0,y),w.decoder,u,"key"),p=ce.maybeMap(Mn(f.slice(y+1),r),function(m){return r.decoder(m,w.decoder,u,"value")})),p&&r.interpretNumericEntities&&u==="iso-8859-1"&&(p=pu(p)),f.indexOf("[]=")>-1&&(p=fu(p)?[p]:p),Ft.call(n,h)?n[h]=ce.combine(n[h],p):n[h]=p}return n},mu=function(t,e,r,n){for(var o=n?e:Mn(e,r),a=t.length-1;a>=0;--a){var i,s=t[a];if(s==="[]"&&r.parseArrays)i=[].concat(o);else{i=r.plainObjects?Object.create(null):{};var c=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,u=parseInt(c,10);!r.parseArrays&&c===""?i={0:o}:!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(i=[],i[u]=o):c!=="__proto__"&&(i[c]=o)}o=i}return o},vu=function(e,r,n,o){if(!!e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&i.exec(a),u=c?a.slice(0,c.index):a,f=[];if(u){if(!n.plainObjects&&Ft.call(Object.prototype,u)&&!n.allowPrototypes)return;f.push(u)}for(var d=0;n.depth>0&&(c=s.exec(a))!==null&&d<n.depth;){if(d+=1,!n.plainObjects&&Ft.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;f.push(c[1])}return c&&f.push("["+a.slice(c.index)+"]"),mu(f,r,n,o)}},gu=function(e){if(!e)return w;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset!="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset=="undefined"?w.charset:e.charset;return{allowDots:typeof e.allowDots=="undefined"?w.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:w.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:w.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:w.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:w.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:w.comma,decoder:typeof e.decoder=="function"?e.decoder:w.decoder,delimiter:typeof e.delimiter=="string"||ce.isRegExp(e.delimiter)?e.delimiter:w.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:w.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:w.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:w.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:w.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:w.strictNullHandling}},Su=function(t,e){var r=gu(e);if(t===""||t===null||typeof t=="undefined")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?hu(t,r):t,o=r.plainObjects?Object.create(null):{},a=Object.keys(n),i=0;i<a.length;++i){var s=a[i],c=vu(s,n[s],r,typeof t=="string");o=ce.merge(o,c,r)}return r.allowSparse===!0?o:ce.compact(o)},Eu=lu,bu=Su,Ou=Gt,wu={formats:Ou,parse:bu,stringify:Eu};let L=new Map;const Dr=t=>[t.method,t.url].join("&");class Au{addPending(e){this.removePending(e);const r=Dr(e);e.cancelToken=e.cancelToken||new ve.CancelToken(n=>{L.has(r)||L.set(r,n)})}removeAllPending(){L.forEach(e=>{e&&j(e)&&e()}),L.clear()}removePending(e){const r=Dr(e);if(L.has(r)){const n=L.get(r);n&&n(r),L.delete(r)}}reset(){L=new Map}}var me=(t=>(t[t.SUCCESS=200]="SUCCESS",t[t.TOKEN_TIMEOUT=600]="TOKEN_TIMEOUT",t[t.TOKEN_LOGGED=601]="TOKEN_LOGGED",t[t.TOKEN_ERROR=602]="TOKEN_ERROR",t))(me||{}),Ke=(t=>(t.GET="GET",t.POST="POST",t.PUT="PUT",t.DELETE="DELETE",t))(Ke||{}),Qe=(t=>(t.JSON="application/json;charset=UTF-8",t.FORM_URLENCODED="application/x-www-form-urlencoded;charset=UTF-8",t.FORM_DATA="multipart/form-data;charset=UTF-8",t))(Qe||{});class Tu{constructor(e){this.options=e,this.axiosInstance=ve.create(e),this.setupInterceptors()}createAxios(e){this.axiosInstance=ve.create(e)}getTransform(){const{transform:e}=this.options;return e}getAxios(){return this.axiosInstance}configAxios(e){!this.axiosInstance||this.createAxios(e)}setHeader(e){!this.axiosInstance||Object.assign(this.axiosInstance.defaults.headers,e)}setupInterceptors(){const e=this.getTransform();if(!e)return;const{requestInterceptors:r,requestInterceptorsCatch:n,responseInterceptors:o,responseInterceptorsCatch:a}=e,i=new Au;this.axiosInstance.interceptors.request.use(s=>{var f;const{ignoreCancelToken:c}=s.requestOptions;return!(c!==void 0?c:(f=this.options.requestOptions)==null?void 0:f.ignoreCancelToken)&&i.addPending(s),r&&j(r)&&(s=r(s,this.options)),s},void 0),n&&j(n)&&this.axiosInstance.interceptors.request.use(void 0,n),this.axiosInstance.interceptors.response.use(s=>(s&&i.removePending(s.config),o&&j(o)&&(s=o(s)),s),void 0),a&&j(a)&&this.axiosInstance.interceptors.response.use(void 0,s=>a(this.axiosInstance,s))}uploadFile(e,r){const n=new window.FormData,o=r.name||"file";return r.filename?n.append(o,r.file,r.filename):n.append(o,r.file),r.data&&Object.keys(r.data).forEach(a=>{const i=r.data[a];if(Array.isArray(i)){i.forEach(s=>{n.append(`${a}[]`,s)});return}n.append(a,r.data[a])}),this.axiosInstance.request(J(z({},e),{method:"POST",data:n,headers:{"Content-type":Qe.FORM_DATA,ignoreCancelToken:!0}}))}supportFormData(e){var o;const r=e.headers||this.options.headers;return((r==null?void 0:r["Content-Type"])||(r==null?void 0:r["content-type"]))!==Qe.FORM_URLENCODED||!Reflect.has(e,"data")||((o=e.method)==null?void 0:o.toUpperCase())===Ke.GET?e:J(z({},e),{data:wu.stringify(e.data,{arrayFormat:"brackets"})})}get(e,r){return this.request(J(z({},e),{method:"GET"}),r)}post(e,r){return this.request(J(z({},e),{method:"POST"}),r)}put(e,r){return this.request(J(z({},e),{method:"PUT"}),r)}delete(e,r){return this.request(J(z({},e),{method:"DELETE"}),r)}request(e,r){let n=Wn(e);e.cancelToken&&(n.cancelToken=e.cancelToken);const o=this.getTransform(),{requestOptions:a}=this.options,i=Object.assign({},a,r),{beforeRequestHook:s,requestCatchHook:c,transformResponseHook:u}=o||{};return s&&j(s)&&(n=s(n,i)),n.requestOptions=i,n=this.supportFormData(n),new Promise((f,d)=>{this.axiosInstance.request(n).then(y=>{if(u&&j(u)){try{const h=u(y,i);f(h)}catch(h){d(h||new Error("request error!"))}return}f(y)}).catch(y=>{if(c&&j(c)){d(c(y,i));return}ve.isAxiosError(y),d(y)})})}}const{createMessage:Pu,createErrorModal:Ru}=Mt(),xu=Pu.error,Nu=Lr.sessionTimeoutProcessing;function Cu(t,e,r="message"){const{t:n}=He(),o=Un();let a="";switch(t){case 400:a=`${e}`;break;case 401:o.setToken(void 0),a=e||n("sys.api.errMsg401"),Nu===Gn.PAGE_COVERAGE?o.setSessionTimeout(!0):o.logout(!0);break;case 403:a=n("sys.api.errMsg403");break;case 404:a=n("sys.api.errMsg404");break;case 405:a=n("sys.api.errMsg405");break;case 408:a=n("sys.api.errMsg408");break;case 500:a=n("sys.api.errMsg500");break;case 501:a=n("sys.api.errMsg501");break;case 502:a=n("sys.api.errMsg502");break;case 503:a=n("sys.api.errMsg503");break;case 504:a=n("sys.api.errMsg504");break;case 505:a=n("sys.api.errMsg505");break}a&&(r==="modal"?Ru({title:n("sys.api.errorTip"),content:a}):r==="message"&&xu({content:a,key:`global_error_message_status_${t}`}))}const $u="YYYY-MM-DD HH:mm:ss";function Ur(t,e=!1){if(!t)return e?"":{};const r=new Date().getTime();return e?`?_t=${r}`:{_t:r}}function _t(t){var e,r;if(Object.prototype.toString.call(t)==="[object Object]")for(const n in t){const o=(r=(e=t[n])==null?void 0:e.format)!=null?r:null;if(o&&typeof o=="function"&&(t[n]=t[n].format($u)),oe(n)){const a=t[n];if(a)try{t[n]=oe(a)?a.trim():a}catch(i){throw new Error(i)}}jr(t[n])&&_t(t[n])}}class Fu{retry(e,r){var i;const{config:n}=r.response,{waitTime:o,count:a}=(i=n==null?void 0:n.requestOptions)==null?void 0:i.retryRequest;return n.__retryCount=n.__retryCount||0,n.__retryCount>=a?Promise.reject(r):(n.__retryCount+=1,delete n.headers,this.delay(o).then(()=>e(n)))}delay(e){return new Promise(r=>setTimeout(r,e))}}const In=zn(),_u=In.urlPrefix,{createMessage:kr,createErrorModal:Br}=Mt(),Mu={transformResponseHook:(t,e)=>{const{t:r}=He(),{isTransformResponse:n,isReturnNativeResponse:o}=e;if(o)return t;if(!n)return t.data;if(!t.data)throw new Error(r("sys.api.apiRequestFailed"));const{code:a,msg:i}=t.data;if(t.data&&jr(t.data)&&Reflect.has(t.data,"code")&&a===me.SUCCESS)return t.data;let c="";switch(a){case me.TOKEN_TIMEOUT:case me.TOKEN_LOGGED:case me.TOKEN_ERROR:c=i||r("sys.api.timeoutMessage");const u=Un();u.setToken(void 0),u.logout(!0);break;default:c=i||r("sys.api.apiRequestFailed")}throw e.errorMessageMode==="modal"?Br({title:r("sys.api.errorTip"),content:c}):e.errorMessageMode==="message"&&kr.error(c),new Error(c)},beforeRequestHook:(t,e)=>{var f;const{apiUrl:r,joinPrefix:n,joinParamsToUrl:o,formatDate:a,joinTime:i=!0,urlPrefix:s}=e;n&&(t.url=`${s}${t.url}`),r&&oe(r)&&!/https?:\/\//.test(t.url||"")&&(t.url=`${r}${t.url}`);const c=t.params||t.data||{},u=t.data||!1;return a&&u&&!oe(u)&&_t(u),((f=t.method)==null?void 0:f.toUpperCase())===Ke.GET?oe(c)?(t.url=t.url+c+`${Ur(i,!0)}`,t.params=void 0):t.params=Object.assign(c||{},Ur(i,!1)):oe(c)?(t.url=t.url+c,t.params=void 0):(a&&_t(c),Reflect.has(t,"data")&&t.data&&(Object.keys(t.data).length>0||t.data instanceof FormData)?(t.data=u,t.params=void 0):(t.data=c,t.params=void 0),o&&(t.url=Vn(t.url,Object.assign({},t.params,t.data)))),t},requestInterceptors:(t,e)=>{var n;t.headers["jnpf-origin"]="pc";const r=eo();return r&&((n=t==null?void 0:t.requestOptions)==null?void 0:n.withToken)!==!1&&(t.headers.Authorization=e.authenticationScheme?`${e.authenticationScheme} ${r}`:r),t},responseInterceptors:t=>t,responseInterceptorsCatch:(t,e)=>{var h,p,m,E,v,b,T,x;const{t:r}=He(),{response:n,code:o,message:a,config:i}=e||{},s=((h=i==null?void 0:i.requestOptions)==null?void 0:h.errorMessageMode)||"none",c=(E=(m=(p=n==null?void 0:n.data)==null?void 0:p.error)==null?void 0:m.message)!=null?E:"",u=(b=(v=e==null?void 0:e.toString)==null?void 0:v.call(e))!=null?b:"";let f="";if(ve.isCancel(e))return Promise.reject(e);try{if(o==="ECONNABORTED"&&a.indexOf("timeout")!==-1&&(f=r("sys.api.apiTimeoutMessage")),u!=null&&u.includes("Network Error")&&(f=r("sys.api.networkExceptionMsg")),f)return s==="modal"?Br({title:r("sys.api.errorTip"),content:f}):s==="message"&&kr.error(f),Promise.reject(e)}catch(W){throw new Error(W)}Cu((T=e==null?void 0:e.response)==null?void 0:T.status,c,s);const d=new Fu,{isOpenRetry:y}=i.requestOptions.retryRequest;return((x=i.method)==null?void 0:x.toUpperCase())===Ke.GET&&y&&d.retry(t,e),Promise.reject(e)}};function Iu(t){return new Tu(Jn({authenticationScheme:"",timeout:1e3*1e3,headers:{"Content-Type":Qe.JSON},transform:Xn(Mu),requestOptions:{joinPrefix:!0,isReturnNativeResponse:!1,isTransformResponse:!0,joinParamsToUrl:!1,formatDate:!0,errorMessageMode:"message",apiUrl:In.apiUrl,urlPrefix:_u,joinTime:!0,ignoreCancelToken:!0,withToken:!0,retryRequest:{isOpenRetry:!1,count:5,waitTime:100}}},t||{}))}const Dn=Iu();function Du(t){return Dn.post({url:"/api/tenant/login",params:t})}function Uu(){return Dn.get({url:"/api/tenant/logout"})}const ku=Kn({id:"app-user",state:()=>({userInfo:null,token:void 0,roleList:[],sessionTimeout:!1,lastUpdateTime:0}),getters:{getUserInfo(){return this.userInfo||Me(Xt)||{}},getToken(){return this.token||Me(Ot)},getRoleList(){return this.roleList.length>0?this.roleList:Me(Yt)},getSessionTimeout(){return!!this.sessionTimeout},getLastUpdateTime(){return this.lastUpdateTime}},actions:{setToken(t){this.token=t||"",st(Ot,t)},setRoleList(t){this.roleList=t,st(Yt,t)},setUserInfo(t){this.userInfo=t,this.lastUpdateTime=new Date().getTime(),st(Xt,t)},setSessionTimeout(t){this.sessionTimeout=t},resetState(){this.userInfo=null,this.token="",this.roleList=[],this.sessionTimeout=!1},login(t){return de(this,null,function*(){try{const e=t,{goHome:r=!0}=e,n=Kt(e,["goHome"]),a=(yield Du(n)).data;this.setToken(a.token),this.setUserInfo(a),this.afterLoginAction(r)}catch(r){return Promise.reject(r)}})},afterLoginAction(t){return de(this,null,function*(){if(!this.getToken)return null;this.sessionTimeout?this.setSessionTimeout(!1):t&&(yield Zt.replace(er.BASE_HOME))})},logout(t=!1){return de(this,null,function*(){if(this.getToken)try{yield Uu()}catch(e){}this.setToken(void 0),this.setSessionTimeout(!1),this.setUserInfo(null),t&&Zt.push(er.BASE_LOGIN)})},confirmLoginOut(){const{createConfirm:t}=Mt(),{t:e}=He();t({iconType:"warning",title:()=>tr("span",e("sys.app.Tip")),content:()=>tr("span",e("sys.app.logoutMessage")),onOk:()=>de(this,null,function*(){yield this.logout(!0)})})}}});function Un(){return ku(Qn)}export{Dn as d,ku as u};