yxuse 3.0.30 → 3.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.cjs.js +1 -1
- package/lib/api.es.js +1 -1
- package/lib/components.cjs.js +1 -1
- package/lib/components.es.js +12 -11
- package/lib/directives.cjs.js +1 -1
- package/lib/directives.es.js +1 -1
- package/lib/hooks.cjs.js +1 -1
- package/lib/hooks.es.js +1 -1
- package/lib/index.cjs.js +1 -1
- package/lib/index.cjs2.js +13 -13
- package/lib/index.cjs2.js.gz +0 -0
- package/lib/index.cjs3.js +1 -1
- package/lib/index.cjs4.js +1 -1
- package/lib/index.cjs6.js +1 -1
- package/lib/index.cjs7.js +3 -3
- package/lib/index.cjs7.js.gz +0 -0
- package/lib/index.es.js +17 -16
- package/lib/index.es2.js +499 -492
- package/lib/index.es2.js.gz +0 -0
- package/lib/index.es3.js +24 -21
- package/lib/index.es4.js +3 -2
- package/lib/index.es6.js +1 -1
- package/lib/index.es6.js.gz +0 -0
- package/lib/index.es7.js +777 -2970
- package/lib/index.es7.js.gz +0 -0
- package/lib/index.es9.js +4 -4
- package/lib/theme.cjs.js +1 -1
- package/lib/theme.es.js +11 -10
- package/lib/translate.cjs.js +1 -1
- package/lib/translate.es.js +8 -7
- package/lib/utils.cjs.js +1 -1
- package/lib/utils.es.js +1 -1
- package/lib/yxIcon.cjs.js +1 -1
- package/lib/yxIcon.es.js +1 -1
- package/package.json +1 -1
- package/lib/vue.runtime.esm-bundler.cjs.js +0 -6
- package/lib/vue.runtime.esm-bundler.cjs.js.gz +0 -0
- package/lib/vue.runtime.esm-bundler.es.js +0 -4567
- package/lib/vue.runtime.esm-bundler.es.js.gz +0 -0
package/lib/index.cjs2.js.gz
CHANGED
|
Binary file
|
package/lib/index.cjs3.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var _=Object.defineProperty;var T=(t,s,e)=>s in t?_(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e;var
|
|
1
|
+
"use strict";var _=Object.defineProperty;var T=(t,s,e)=>s in t?_(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e;var d=(t,s,e)=>(T(t,typeof s!="symbol"?s+"":s,e),e);const v=require("./index.cjs7.js"),S=t=>{new BroadcastChannel("YXUSE_BC").postMessage(t)},y=t=>{const s=new BroadcastChannel("YXUSE_BC");s.onmessage=()=>{t()}},$=(t,s,e,i)=>Array.isArray(t)?t.map(a=>({label:a==null?void 0:a[s],value:i?+a[e]:a[e]})):[],w=t=>{const s=[];for(const e in t)isNaN(Number(e))&&s.push({label:e,value:t[e]});return s},B=t=>{const e=(u=>{let f=0,C=0,I=0,m=1;if(u.startsWith("#"))if(u=u.slice(1),u.length===3)f=parseInt(u[0]+u[0],16),C=parseInt(u[1]+u[1],16),I=parseInt(u[2]+u[2],16);else if(u.length===6)f=parseInt(u.slice(0,2),16),C=parseInt(u.slice(2,4),16),I=parseInt(u.slice(4,6),16);else return null;else if(u.startsWith("rgb")){const o=u.match(/(\d+(\.\d+)?)/g);if(o)f=parseFloat(o[0]),C=parseFloat(o[1]),I=parseFloat(o[2]),o.length>3&&(m=parseFloat(o[3]));else return null}else return null;return[f,C,I,m]})(t);if(!e)return null;const[i,a,r,c]=e,n=i/255,l=a/255,b=r/255,g=Math.max(n,l,b),h=Math.min(n,l,b);return(g+h)/2<.5},F=(t,s,e=100)=>{const i=n=>{let l,b,g,h=1;if(n.startsWith("#"))if(n=n.slice(1),n.length===3)l=parseInt(n[0]+n[0],16),b=parseInt(n[1]+n[1],16),g=parseInt(n[2]+n[2],16);else if(n.length===6)l=parseInt(n.slice(0,2),16),b=parseInt(n.slice(2,4),16),g=parseInt(n.slice(4,6),16);else return null;else if(n.startsWith("rgb")){const p=n.match(/(\d+(\.\d+)?)/g);l=parseFloat(p[0]),b=parseFloat(p[1]),g=parseFloat(p[2]),p.length>3&&(h=parseFloat(p[3]))}else return null;return[l,b,g,h]},a=i(t),r=i(s);if(!a||!r)return!1;const c=Math.sqrt(Math.pow(a[0]-r[0],2)+Math.pow(a[1]-r[1],2)+Math.pow(a[2]-r[2],2)+Math.pow(a[3]-r[3],2));return console.log(c),c<=e},x=(t,s)=>{function e(r){if(r.toLowerCase().startsWith("rgba"))return r.toLowerCase();if(r.toLowerCase().startsWith("rgb"))return r.replace("rgb","rgba").replace(")",", 1)");if(r.length===7){const c=parseInt(r.substring(1,3),16),n=parseInt(r.substring(3,5),16),l=parseInt(r.substring(5,7),16);return`rgba(${c}, ${n}, ${l}, 1)`}else if(r.length===9&&r.toLowerCase().startsWith("rrggbbaa")){const c=parseInt(r.substring(1,3),16),n=parseInt(r.substring(3,5),16),l=parseInt(r.substring(5,7),16),b=Math.round(parseInt(r.substring(7,9),16)/255*100)/100;return`rgba(${c}, ${n}, ${l}, ${b})`}else return null}const i=e(M(t)),a=e(M(s));return!i||!a?!1:i===a},M=t=>{if(t.length===4&&t[0]==="#"){const s=t[1],e=t[2],i=t[3];return`#${s}${s}${e}${e}${i}${i}`}else return t};class A{constructor(){d(this,"subscribers");this.subscribers={}}subscribe(s,e){this.subscribers[s]||(this.subscribers[s]=[]),this.subscribers[s].push(e)}unsubscribe(s,e){const i=this.subscribers[s];if(!e)return this.subscribers[s]=[];if(i){const a=i.indexOf(e);a!==-1&&i.splice(a,1)}}publish(s){const e=this.subscribers[s.type];e&&e.forEach(i=>{i(s.data)})}}const W=new A,E=Object.freeze(Object.defineProperty({__proto__:null,areColorsSimilar:F,enumToArray:w,getSelectOptions:$,http:v.http,isColorEqual:x,isDarkColor:B,notifyMessageToSystems:S,receiveMessage:y,yxSubscribe:W},Symbol.toStringTag,{value:"Module"}));exports.areColorsSimilar=F;exports.enumToArray=w;exports.getSelectOptions=$;exports.isColorEqual=x;exports.isDarkColor=B;exports.notifyMessageToSystems=S;exports.receiveMessage=y;exports.utils2=E;exports.yxSubscribe=W;
|
package/lib/index.cjs4.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=(n,t,e)=>new Promise((i,
|
|
1
|
+
"use strict";var r=(n,t,e)=>new Promise((i,u)=>{var g=o=>{try{c(e.next(o))}catch(s){u(s)}},d=o=>{try{c(e.throw(o))}catch(s){u(s)}},c=o=>o.done?i(o.value):Promise.resolve(o.value).then(g,d);c((e=e.apply(n,t)).next())});require("./index.cjs7.js");require("element-plus");const a=require("./index.cjs8.js"),p="yxIcon",w=()=>{x()},x=()=>r(exports,null,function*(){var e;const{data:n}=yield a.getGroupListApi(),t=(e=n.find(i=>i.groupName===p))==null?void 0:e.groupUuid;m(t)}),m=n=>r(exports,null,function*(){const{data:t}=yield a.getResourceListApi(n,1);return y(t),t}),y=n=>{const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("xmlns:xlin","http://www.w3.org/1999/xlink");let e="";n.forEach(i=>{e+=i.text.replace(/\\/g,"").trim().replace(/^"(.*)"$/,"$1")}),t.innerHTML=e,t.style.position="absolute",t.style.width="0",t.style.height="0",document.head.appendChild(t)},l={install:function(n){w()}},h=Object.freeze(Object.defineProperty({__proto__:null,default:l},Symbol.toStringTag,{value:"Module"}));exports.index=l;exports.yxIcon2=h;
|
package/lib/index.cjs6.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const et=require("
|
|
1
|
+
"use strict";const et=require("vue");var q=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function G(y){return y&&y.__esModule&&Object.prototype.hasOwnProperty.call(y,"default")?y.default:y}var B={exports:{}};(function(y,it){(function(A,k){y.exports=k()})(q,function(){var A=1e3,k=6e4,U=36e5,F="millisecond",w="second",b="minute",_="hour",M="day",x="week",m="month",z="quarter",v="year",O="date",J="Invalid Date",K=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,X={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var n=["th","st","nd","rd"],t=s%100;return"["+s+(n[(t-20)%10]||n[t]||n[0])+"]"}},I=function(s,n,t){var r=String(s);return!r||r.length>=n?s:""+Array(n+1-r.length).join(t)+s},tt={s:I,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+I(r,2,"0")+":"+I(e,2,"0")},m:function s(n,t){if(n.date()<t.date())return-s(t,n);var r=12*(t.year()-n.year())+(t.month()-n.month()),e=n.clone().add(r,m),i=t-e<0,u=n.clone().add(r+(i?-1:1),m);return+(-(r+(t-e)/(i?e-u:u-e))||0)},a:function(s){return s<0?Math.ceil(s)||0:Math.floor(s)},p:function(s){return{M:m,y:v,w:x,d:M,D:O,h:_,m:b,s:w,ms:F,Q:z}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},Y="en",p={};p[Y]=X;var Z="$isDayjsObject",E=function(s){return s instanceof L||!(!s||!s[Z])},C=function s(n,t,r){var e;if(!n)return Y;if(typeof n=="string"){var i=n.toLowerCase();p[i]&&(e=i),t&&(p[i]=t,e=i);var u=n.split("-");if(!e&&u.length>1)return s(u[0])}else{var o=n.name;p[o]=n,e=o}return!r&&e&&(Y=e),e||!r&&Y},f=function(s,n){if(E(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new L(t)},a=tt;a.l=C,a.i=E,a.w=function(s,n){return f(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var L=function(){function s(t){this.$L=C(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[Z]=!0}var n=s.prototype;return n.parse=function(t){this.$d=function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(K);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==J},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)<this.startOf(r)},n.isBefore=function(t,r){return this.endOf(r)<f(t)},n.$g=function(t,r,e){return a.u(t)?this[r]:this.set(e,t)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(t,r){var e=this,i=!!a.u(r)||r,u=a.p(t),o=function(S,l){var g=a.w(e.$u?Date.UTC(e.$y,l,S):new Date(e.$y,l,S),e);return i?g:g.endOf(M)},c=function(S,l){return a.w(e.toDate()[S].apply(e.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(l)),e)},h=this.$W,d=this.$M,$=this.$D,T="set"+(this.$u?"UTC":"");switch(u){case v:return i?o(1,0):o(31,11);case m:return i?o(1,d):o(0,d+1);case x:var D=this.$locale().weekStart||0,H=(h<D?h+7:h)-D;return o(i?$-H:$+(6-H),d);case M:case O:return c(T+"Hours",0);case _:return c(T+"Minutes",1);case b:return c(T+"Seconds",2);case w:return c(T+"Milliseconds",3);default:return this.clone()}},n.endOf=function(t){return this.startOf(t,!1)},n.$set=function(t,r){var e,i=a.p(t),u="set"+(this.$u?"UTC":""),o=(e={},e[M]=u+"Date",e[O]=u+"Date",e[m]=u+"Month",e[v]=u+"FullYear",e[_]=u+"Hours",e[b]=u+"Minutes",e[w]=u+"Seconds",e[F]=u+"Milliseconds",e)[i],c=i===M?this.$D+(r-this.$W):r;if(i===m||i===v){var h=this.clone().set(O,1);h.$d[o](c),h.init(),this.$d=h.set(O,Math.min(this.$D,h.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},n.set=function(t,r){return this.clone().$set(t,r)},n.get=function(t){return this[a.p(t)]()},n.add=function(t,r){var e,i=this;t=Number(t);var u=a.p(r),o=function(d){var $=f(i);return a.w($.date($.date()+Math.round(d*t)),i)};if(u===m)return this.set(m,this.$M+t);if(u===v)return this.set(v,this.$y+t);if(u===M)return o(1);if(u===x)return o(7);var c=(e={},e[b]=k,e[_]=U,e[w]=A,e)[u]||1,h=this.$d.getTime()+t*c;return a.w(h,this)},n.subtract=function(t,r){return this.add(-1*t,r)},n.format=function(t){var r=this,e=this.$locale();if(!this.isValid())return e.invalidDate||J;var i=t||"YYYY-MM-DDTHH:mm:ssZ",u=a.z(this),o=this.$H,c=this.$m,h=this.$M,d=e.weekdays,$=e.months,T=e.meridiem,D=function(l,g,j,W){return l&&(l[g]||l(r,i))||j[g].slice(0,W)},H=function(l){return a.s(o%12||12,l,"0")},S=T||function(l,g,j){var W=l<12?"AM":"PM";return j?W.toLowerCase():W};return i.replace(R,function(l,g){return g||function(j){switch(j){case"YY":return String(r.$y).slice(-2);case"YYYY":return a.s(r.$y,4,"0");case"M":return h+1;case"MM":return a.s(h+1,2,"0");case"MMM":return D(e.monthsShort,h,$,3);case"MMMM":return D($,h);case"D":return r.$D;case"DD":return a.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return D(e.weekdaysMin,r.$W,d,2);case"ddd":return D(e.weekdaysShort,r.$W,d,3);case"dddd":return d[r.$W];case"H":return String(o);case"HH":return a.s(o,2,"0");case"h":return H(1);case"hh":return H(2);case"a":return S(o,c,!0);case"A":return S(o,c,!1);case"m":return String(c);case"mm":return a.s(c,2,"0");case"s":return String(r.$s);case"ss":return a.s(r.$s,2,"0");case"SSS":return a.s(r.$ms,3,"0");case"Z":return u}return null}(l)||u.replace(":","")})},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(t,r,e){var i,u=this,o=a.p(r),c=f(t),h=(c.utcOffset()-this.utcOffset())*k,d=this-c,$=function(){return a.m(u,c)};switch(o){case v:i=$()/12;break;case m:i=$();break;case z:i=$()/3;break;case x:i=(d-h)/6048e5;break;case M:i=(d-h)/864e5;break;case _:i=d/U;break;case b:i=d/k;break;case w:i=d/A;break;default:i=d}return e?i:a.a(i)},n.daysInMonth=function(){return this.endOf(m).$D},n.$locale=function(){return p[this.$L]},n.locale=function(t,r){if(!t)return this.$L;var e=this.clone(),i=C(t,r,!0);return i&&(e.$L=i),e},n.clone=function(){return a.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},s}(),P=L.prototype;return f.prototype=P,[["$ms",F],["$s",w],["$m",b],["$H",_],["$W",M],["$M",m],["$y",v],["$D",O]].forEach(function(s){P[s[1]]=function(n){return this.$g(n,s[0],s[1])}}),f.extend=function(s,n){return s.$i||(s(n,L,f),s.$i=!0),f},f.locale=C,f.isDayjs=E,f.unix=function(s){return f(1e3*s)},f.en=p[Y],f.Ls=p,f.p={},f})})(B);var nt=B.exports;const rt=G(nt),V=et.ref("");let N;const Q=()=>{const y=()=>{N=setTimeout(()=>{V.value=rt().format("YYYY-MM-DD HH:mm:ss"),N&&clearTimeout(N),y()},1e3)};return y(),{time:V}},st=Object.freeze(Object.defineProperty({__proto__:null,useTime:Q},Symbol.toStringTag,{value:"Module"}));exports.commonjsGlobal=q;exports.getDefaultExportFromCjs=G;exports.useTime=Q;exports.yxHooks=st;
|
package/lib/index.cjs7.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var Dr=Object.defineProperty,Fr=Object.defineProperties;var jr=Object.getOwnPropertyDescriptors;var we=Object.getOwnPropertySymbols;var Mt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable;var Qe=(e,t,n)=>t in e?Dr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E=(e,t)=>{for(var n in t||(t={}))Mt.call(t,n)&&Qe(e,n,t[n]);if(we)for(var n of we(t))Ut.call(t,n)&&Qe(e,n,t[n]);return e},R=(e,t)=>Fr(e,jr(t));var zt=(e,t)=>{var n={};for(var r in e)Mt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&we)for(var r of we(e))t.indexOf(r)<0&&Ut.call(e,r)&&(n[r]=e[r]);return n};var Vt=(e,t,n)=>(Qe(e,typeof t!="symbol"?t+"":t,n),n);var se=(e,t,n)=>new Promise((r,o)=>{var i=u=>{try{c(n.next(u))}catch(l){o(l)}},a=u=>{try{c(n.throw(u))}catch(l){o(l)}},c=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,a);c((n=n.apply(e,t)).next())});const s=require("./vue.runtime.esm-bundler.cjs.js");function In(e,t){return function(){return e.apply(t,arguments)}}const{toString:$n}=Object.prototype,{getPrototypeOf:yt}=Object,vt=(e=>t=>{const n=$n.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),k=e=>(e=e.toLowerCase(),t=>vt(t)===e),De=e=>t=>typeof t===e,{isArray:ne}=Array,de=De("undefined");function Mr(e){return e!==null&&!de(e)&&e.constructor!==null&&!de(e.constructor)&&M(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const kn=k("ArrayBuffer");function Ur(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&kn(e.buffer),t}const zr=De("string"),M=De("function"),Dn=De("number"),bt=e=>e!==null&&typeof e=="object",Vr=e=>e===!0||e===!1,_e=e=>{if(vt(e)!=="object")return!1;const t=yt(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Hr=k("Date"),qr=k("File"),Kr=k("Blob"),Jr=k("FileList"),Gr=e=>bt(e)&&M(e.pipe),Wr=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||$n.call(e)===t||M(e.toString)&&e.toString()===t)},Zr=k("URLSearchParams"),Qr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ge(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let r,o;if(typeof e!="object"&&(e=[e]),ne(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let c;for(r=0;r<a;r++)c=i[r],t.call(null,e[c],c,e)}}function Fn(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const jn=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Mn=e=>!de(e)&&e!==jn;function it(){const{caseless:e}=Mn(this)&&this||{},t={},n=(r,o)=>{const i=e&&Fn(t,o)||o;_e(t[i])&&_e(r)?t[i]=it(t[i],r):_e(r)?t[i]=it({},r):ne(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&ge(arguments[r],n);return t}const Yr=(e,t,n,{allOwnKeys:r}={})=>(ge(t,(o,i)=>{n&&M(o)?e[i]=In(o,n):e[i]=o},{allOwnKeys:r}),e),Xr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),eo=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},to=(e,t,n,r)=>{let o,i,a;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&yt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},no=(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},ro=e=>{if(!e)return null;if(ne(e))return e;let t=e.length;if(!Dn(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},oo=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&yt(Uint8Array)),so=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},io=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ao=k("HTMLFormElement"),co=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Ht=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),lo=k("RegExp"),Un=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ge(n,(o,i)=>{t(o,i,e)!==!1&&(r[i]=o)}),Object.defineProperties(e,r)},uo=e=>{Un(e,(t,n)=>{if(M(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(M(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+"'")})}})},fo=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return ne(e)?r(e):r(String(e).split(t)),n},po=()=>{},mo=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ye="abcdefghijklmnopqrstuvwxyz",qt="0123456789",zn={DIGIT:qt,ALPHA:Ye,ALPHA_DIGIT:Ye+Ye.toUpperCase()+qt},ho=(e=16,t=zn.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function go(e){return!!(e&&M(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const yo=e=>{const t=new Array(10),n=(r,o)=>{if(bt(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=ne(r)?[]:{};return ge(r,(a,c)=>{const u=n(a,o+1);!de(u)&&(i[c]=u)}),t[o]=void 0,i}}return r};return n(e,0)},f={isArray:ne,isArrayBuffer:kn,isBuffer:Mr,isFormData:Wr,isArrayBufferView:Ur,isString:zr,isNumber:Dn,isBoolean:Vr,isObject:bt,isPlainObject:_e,isUndefined:de,isDate:Hr,isFile:qr,isBlob:Kr,isRegExp:lo,isFunction:M,isStream:Gr,isURLSearchParams:Zr,isTypedArray:oo,isFileList:Jr,forEach:ge,merge:it,extend:Yr,trim:Qr,stripBOM:Xr,inherits:eo,toFlatObject:to,kindOf:vt,kindOfTest:k,endsWith:no,toArray:ro,forEachEntry:so,matchAll:io,isHTMLForm:ao,hasOwnProperty:Ht,hasOwnProp:Ht,reduceDescriptors:Un,freezeMethods:uo,toObjectSet:fo,toCamelCase:co,noop:po,toFiniteNumber:mo,findKey:Fn,global:jn,isContextDefined:Mn,ALPHABET:zn,generateString:ho,isSpecCompliantForm:go,toJSONObject:yo};function _(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}f.inherits(_,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:f.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Vn=_.prototype,Hn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Hn[e]={value:e}});Object.defineProperties(_,Hn);Object.defineProperty(Vn,"isAxiosError",{value:!0});_.from=(e,t,n,r,o,i)=>{const a=Object.create(Vn);return f.toFlatObject(e,a,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),_.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const vo=null;function at(e){return f.isPlainObject(e)||f.isArray(e)}function qn(e){return f.endsWith(e,"[]")?e.slice(0,-2):e}function Kt(e,t,n){return e?e.concat(t).map(function(o,i){return o=qn(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function bo(e){return f.isArray(e)&&!e.some(at)}const wo=f.toFlatObject(f,{},null,function(t){return/^is[A-Z]/.test(t)});function Fe(e,t,n){if(!f.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=f.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,b){return!f.isUndefined(b[m])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,a=n.indexes,u=(n.Blob||typeof Blob!="undefined"&&Blob)&&f.isSpecCompliantForm(t);if(!f.isFunction(o))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(f.isDate(h))return h.toISOString();if(!u&&f.isBlob(h))throw new _("Blob is not supported. Use a Buffer instead.");return f.isArrayBuffer(h)||f.isTypedArray(h)?u&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,m,b){let w=h;if(h&&!b&&typeof h=="object"){if(f.endsWith(m,"{}"))m=r?m:m.slice(0,-2),h=JSON.stringify(h);else if(f.isArray(h)&&bo(h)||(f.isFileList(h)||f.endsWith(m,"[]"))&&(w=f.toArray(h)))return m=qn(m),w.forEach(function(S,P){!(f.isUndefined(S)||S===null)&&t.append(a===!0?Kt([m],P,i):a===null?m:m+"[]",l(S))}),!1}return at(h)?!0:(t.append(Kt(b,m,i),l(h)),!1)}const p=[],g=Object.assign(wo,{defaultVisitor:d,convertValue:l,isVisitable:at});function y(h,m){if(!f.isUndefined(h)){if(p.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(h),f.forEach(h,function(w,T){(!(f.isUndefined(w)||w===null)&&o.call(t,w,f.isString(T)?T.trim():T,m,g))===!0&&y(w,m?m.concat(T):[T])}),p.pop()}}if(!f.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Jt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function wt(e,t){this._pairs=[],e&&Fe(e,this,t)}const Kn=wt.prototype;Kn.append=function(t,n){this._pairs.push([t,n])};Kn.toString=function(t){const n=t?function(r){return t.call(this,r,Jt)}:Jt;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function So(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Jn(e,t,n){if(!t)return e;const r=n&&n.encode||So,o=n&&n.serialize;let i;if(o?i=o(t,n):i=f.isURLSearchParams(t)?t.toString():new wt(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Gt{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){f.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Gn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_o=typeof URLSearchParams!="undefined"?URLSearchParams:wt,Co=typeof FormData!="undefined"?FormData:null,Eo=(()=>{let e;return typeof navigator!="undefined"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"})(),Oo=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",L={isBrowser:!0,classes:{URLSearchParams:_o,FormData:Co,Blob},isStandardBrowserEnv:Eo,isStandardBrowserWebWorkerEnv:Oo,protocols:["http","https","file","blob","url","data"]};function To(e,t){return Fe(e,new L.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return L.isNode&&f.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function No(e){return f.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function xo(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Wn(e){function t(n,r,o,i){let a=n[i++];const c=Number.isFinite(+a),u=i>=n.length;return a=!a&&f.isArray(o)?o.length:a,u?(f.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!c):((!o[a]||!f.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&f.isArray(o[a])&&(o[a]=xo(o[a])),!c)}if(f.isFormData(e)&&f.isFunction(e.entries)){const n={};return f.forEachEntry(e,(r,o)=>{t(No(r),o,n,0)}),n}return null}const Ao={"Content-Type":void 0};function Po(e,t,n){if(f.isString(e))try{return(t||JSON.parse)(e),f.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const je={transitional:Gn,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=f.isObject(t);if(i&&f.isHTMLForm(t)&&(t=new FormData(t)),f.isFormData(t))return o&&o?JSON.stringify(Wn(t)):t;if(f.isArrayBuffer(t)||f.isBuffer(t)||f.isStream(t)||f.isFile(t)||f.isBlob(t))return t;if(f.isArrayBufferView(t))return t.buffer;if(f.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return To(t,this.formSerializer).toString();if((c=f.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Fe(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Po(t)):t}],transformResponse:[function(t){const n=this.transitional||je.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&f.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(a)throw c.name==="SyntaxError"?_.from(c,_.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:L.classes.FormData,Blob:L.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};f.forEach(["delete","get","head"],function(t){je.headers[t]={}});f.forEach(["post","put","patch"],function(t){je.headers[t]=f.merge(Ao)});const St=je,Ro=f.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"]),Bo=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
2
|
-
`).forEach(function(
|
|
3
|
-
`)}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(o=>r.set(o)),r}static accessor(t){const r=(this[Wt]=this[Wt]={accessors:{}}).accessors,o=this.prototype;function i(a){const c=ie(a);r[c]||(ko(o,a),r[c]=!0)}return f.isArray(t)?t.forEach(i):i(t),this}}Me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);f.freezeMethods(Me.prototype);f.freezeMethods(Me);const $=Me;function et(e,t){const n=this||St,r=t||n,o=$.from(r.headers);let i=r.data;return f.forEach(e,function(c){i=c.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Zn(e){return!!(e&&e.__CANCEL__)}function ye(e,t,n){_.call(this,e==null?"canceled":e,_.ERR_CANCELED,t,n),this.name="CanceledError"}f.inherits(ye,_,{__CANCEL__:!0});function Do(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new _("Request failed with status code "+n.status,[_.ERR_BAD_REQUEST,_.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Fo=L.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,a,c){const u=[];u.push(n+"="+encodeURIComponent(r)),f.isNumber(o)&&u.push("expires="+new Date(o).toGMTString()),f.isString(i)&&u.push("path="+i),f.isString(a)&&u.push("domain="+a),c===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function jo(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Mo(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Qn(e,t){return e&&!jo(t)?Mo(e,t):t}const Uo=L.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const c=f.isString(a)?o(a):a;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}();function zo(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Vo(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),d=r[i];a||(a=l),n[o]=u,r[o]=l;let p=i,g=0;for(;p!==o;)g+=n[p++],p=p%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const y=d&&l-d;return y?Math.round(g*1e3/y):void 0}}function Zt(e,t){let n=0;const r=Vo(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,c=i-n,u=r(c),l=i<=a;n=i;const d={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&l?(a-i)/u:void 0,event:o};d[t?"download":"upload"]=!0,e(d)}}const Ho=typeof XMLHttpRequest!="undefined",qo=Ho&&function(e){return new Promise(function(n,r){let o=e.data;const i=$.from(e.headers).normalize(),a=e.responseType;let c;function u(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}f.isFormData(o)&&(L.isStandardBrowserEnv||L.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let l=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(y+":"+h))}const d=Qn(e.baseURL,e.url);l.open(e.method.toUpperCase(),Jn(d,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function p(){if(!l)return;const y=$.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),m={data:!a||a==="text"||a==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:y,config:e,request:l};Do(function(w){n(w),u()},function(w){r(w),u()},m),l=null}if("onloadend"in l?l.onloadend=p:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(p)},l.onabort=function(){l&&(r(new _("Request aborted",_.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new _("Network Error",_.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||Gn;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),r(new _(h,m.clarifyTimeoutError?_.ETIMEDOUT:_.ECONNABORTED,e,l)),l=null},L.isStandardBrowserEnv){const y=(e.withCredentials||Uo(d))&&e.xsrfCookieName&&Fo.read(e.xsrfCookieName);y&&i.set(e.xsrfHeaderName,y)}o===void 0&&i.setContentType(null),"setRequestHeader"in l&&f.forEach(i.toJSON(),function(h,m){l.setRequestHeader(m,h)}),f.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&a!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",Zt(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Zt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=y=>{l&&(r(!y||y.type?new ye(null,e,l):y),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const g=zo(d);if(g&&L.protocols.indexOf(g)===-1){r(new _("Unsupported protocol "+g+":",_.ERR_BAD_REQUEST,e));return}l.send(o||null)})},Ee={http:vo,xhr:qo};f.forEach(Ee,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const Ko={getAdapter:e=>{e=f.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;o<t&&(n=e[o],!(r=f.isString(n)?Ee[n.toLowerCase()]:n));o++);if(!r)throw r===!1?new _(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(f.hasOwnProp(Ee,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!f.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:Ee};function tt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ye(null,e)}function Qt(e){return tt(e),e.headers=$.from(e.headers),e.data=et.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ko.getAdapter(e.adapter||St.adapter)(e).then(function(r){return tt(e),r.data=et.call(e,e.transformResponse,r),r.headers=$.from(r.headers),r},function(r){return Zn(r)||(tt(e),r&&r.response&&(r.response.data=et.call(e,e.transformResponse,r.response),r.response.headers=$.from(r.response.headers))),Promise.reject(r)})}const Yt=e=>e instanceof $?e.toJSON():e;function Q(e,t){t=t||{};const n={};function r(l,d,p){return f.isPlainObject(l)&&f.isPlainObject(d)?f.merge.call({caseless:p},l,d):f.isPlainObject(d)?f.merge({},d):f.isArray(d)?d.slice():d}function o(l,d,p){if(f.isUndefined(d)){if(!f.isUndefined(l))return r(void 0,l,p)}else return r(l,d,p)}function i(l,d){if(!f.isUndefined(d))return r(void 0,d)}function a(l,d){if(f.isUndefined(d)){if(!f.isUndefined(l))return r(void 0,l)}else return r(void 0,d)}function c(l,d,p){if(p in t)return r(l,d);if(p in e)return r(void 0,l)}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(l,d)=>o(Yt(l),Yt(d),!0)};return f.forEach(Object.keys(e).concat(Object.keys(t)),function(d){const p=u[d]||o,g=p(e[d],t[d],d);f.isUndefined(g)&&p!==c||(n[d]=g)}),n}const Yn="1.3.3",_t={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_t[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Xt={};_t.transitional=function(t,n,r){function o(i,a){return"[Axios v"+Yn+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,c)=>{if(t===!1)throw new _(o(a," has been removed"+(n?" in "+n:"")),_.ERR_DEPRECATED);return n&&!Xt[a]&&(Xt[a]=!0),t?t(i,a,c):!0}};function Jo(e,t,n){if(typeof e!="object")throw new _("options must be an object",_.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const c=e[i],u=c===void 0||a(c,i,e);if(u!==!0)throw new _("option "+i+" must be "+u,_.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new _("Unknown option "+i,_.ERR_BAD_OPTION)}}const ct={assertOptions:Jo,validators:_t},D=ct.validators;class Ae{constructor(t){this.defaults=t,this.interceptors={request:new Gt,response:new Gt}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Q(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&ct.assertOptions(r,{silentJSONParsing:D.transitional(D.boolean),forcedJSONParsing:D.transitional(D.boolean),clarifyTimeoutError:D.transitional(D.boolean)},!1),o!==void 0&&ct.assertOptions(o,{encode:D.function,serialize:D.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a;a=i&&f.merge(i.common,i[n.method]),a&&f.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),n.headers=$.concat(a,i);const c=[];let u=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(u=u&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let d,p=0,g;if(!u){const h=[Qt.bind(this),void 0];for(h.unshift.apply(h,c),h.push.apply(h,l),g=h.length,d=Promise.resolve(n);p<g;)d=d.then(h[p++],h[p++]);return d}g=c.length;let y=n;for(p=0;p<g;){const h=c[p++],m=c[p++];try{y=h(y)}catch(b){m.call(this,b);break}}try{d=Qt.call(this,y)}catch(h){return Promise.reject(h)}for(p=0,g=l.length;p<g;)d=d.then(l[p++],l[p++]);return d}getUri(t){t=Q(this.defaults,t);const n=Qn(t.baseURL,t.url);return Jn(n,t.params,t.paramsSerializer)}}f.forEach(["delete","get","head","options"],function(t){Ae.prototype[t]=function(n,r){return this.request(Q(r||{},{method:t,url:n,data:(r||{}).data}))}});f.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,c){return this.request(Q(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Ae.prototype[t]=n(),Ae.prototype[t+"Form"]=n(!0)});const Oe=Ae;class Ct{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(c=>{r.subscribe(c),i=c}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,c){r.reason||(r.reason=new ye(i,a,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)}static source(){let t;return{token:new Ct(function(o){t=o}),cancel:t}}}const Go=Ct;function Wo(e){return function(n){return e.apply(null,n)}}function Zo(e){return f.isObject(e)&&e.isAxiosError===!0}const lt={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(lt).forEach(([e,t])=>{lt[t]=e});const Qo=lt;function Xn(e){const t=new Oe(e),n=In(Oe.prototype.request,t);return f.extend(n,Oe.prototype,t,{allOwnKeys:!0}),f.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Xn(Q(e,o))},n}const O=Xn(St);O.Axios=Oe;O.CanceledError=ye;O.CancelToken=Go;O.isCancel=Zn;O.VERSION=Yn;O.toFormData=Fe;O.AxiosError=_;O.Cancel=O.CanceledError;O.all=function(t){return Promise.all(t)};O.spread=Wo;O.isAxiosError=Zo;O.mergeConfig=Q;O.AxiosHeaders=$;O.formToJSON=e=>Wn(f.isHTMLForm(e)?new FormData(e):e);O.HttpStatusCode=Qo;O.default=O;const Yo="http://www.w3.org/2000/svg",K=typeof document!="undefined"?document:null,en=K&&K.createElement("template"),Xo={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?K.createElementNS(Yo,e):K.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>K.createTextNode(e),createComment:e=>K.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>K.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{en.innerHTML=r?`<svg>${e}</svg>`:e;const c=en.content;if(r){const u=c.firstChild;for(;u.firstChild;)c.appendChild(u.firstChild);c.removeChild(u)}t.insertBefore(c,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},F="transition",ae="animation",pe=Symbol("_vtc"),W=(e,{slots:t})=>s.h(s.BaseTransition,es(e),t);W.displayName="Transition";const er={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};W.props=s.extend({},s.BaseTransitionPropsValidators,er);const V=(e,t=[])=>{s.isArray(e)?e.forEach(n=>n(...t)):e&&e(...t)},tn=e=>e?s.isArray(e)?e.some(t=>t.length>1):e.length>1:!1;function es(e){const t={};for(const v in e)v in er||(t[v]=e[v]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:u=i,appearActiveClass:l=a,appearToClass:d=c,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,h=ts(o),m=h&&h[0],b=h&&h[1],{onBeforeEnter:w,onEnter:T,onEnterCancelled:S,onLeave:P,onLeaveCancelled:I,onBeforeAppear:Ze=w,onAppear:C=T,onAppearCancelled:ve=S}=t,be=(v,A,z)=>{H(v,A?d:c),H(v,A?l:a),z&&z()},kt=(v,A)=>{v._isLeaving=!1,H(v,p),H(v,y),H(v,g),A&&A()},Dt=v=>(A,z)=>{const Ft=v?C:T,jt=()=>be(A,v,z);V(Ft,[A,jt]),nn(()=>{H(A,v?u:i),j(A,v?d:c),tn(Ft)||rn(A,r,m,jt)})};return s.extend(t,{onBeforeEnter(v){V(w,[v]),j(v,i),j(v,a)},onBeforeAppear(v){V(Ze,[v]),j(v,u),j(v,l)},onEnter:Dt(!1),onAppear:Dt(!0),onLeave(v,A){v._isLeaving=!0;const z=()=>kt(v,A);j(v,p),os(),j(v,g),nn(()=>{v._isLeaving&&(H(v,p),j(v,y),tn(P)||rn(v,r,b,z))}),V(P,[v,z])},onEnterCancelled(v){be(v,!1),V(S,[v])},onAppearCancelled(v){be(v,!0),V(ve,[v])},onLeaveCancelled(v){kt(v),V(I,[v])}})}function ts(e){if(e==null)return null;if(s.isObject(e))return[nt(e.enter),nt(e.leave)];{const t=nt(e);return[t,t]}}function nt(e){const t=s.toNumber(e);return process.env.NODE_ENV!=="production"&&s.assertNumber(t,"<transition> explicit duration"),t}function j(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[pe]||(e[pe]=new Set)).add(t)}function H(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[pe];n&&(n.delete(t),n.size||(e[pe]=void 0))}function nn(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ns=0;function rn(e,t,n,r){const o=e._endId=++ns,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:c,propCount:u}=rs(e,t);if(!a)return r();const l=a+"end";let d=0;const p=()=>{e.removeEventListener(l,g),i()},g=y=>{y.target===e&&++d>=u&&p()};setTimeout(()=>{d<u&&p()},c+1),e.addEventListener(l,g)}function rs(e,t){const n=window.getComputedStyle(e),r=h=>(n[h]||"").split(", "),o=r(`${F}Delay`),i=r(`${F}Duration`),a=on(o,i),c=r(`${ae}Delay`),u=r(`${ae}Duration`),l=on(c,u);let d=null,p=0,g=0;t===F?a>0&&(d=F,p=a,g=i.length):t===ae?l>0&&(d=ae,p=l,g=u.length):(p=Math.max(a,l),d=p>0?a>l?F:ae:null,g=d?d===F?i.length:u.length:0);const y=d===F&&/\b(transform|all)(,|$)/.test(r(`${F}Property`).toString());return{type:d,timeout:p,propCount:g,hasTransform:y}}function on(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>sn(n)+sn(e[r])))}function sn(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function os(){return document.body.offsetHeight}function ss(e,t,n){const r=e[pe];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Et=Symbol("_vod"),Y={beforeMount(e,{value:t},{transition:n}){e[Et]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ce(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),ce(e,!0),r.enter(e)):r.leave(e,()=>{ce(e,!1)}):ce(e,t))},beforeUnmount(e,{value:t}){ce(e,t)}};function ce(e,t){e.style.display=t?e[Et]:"none"}function is(e,t,n){const r=e.style,o=s.isString(n);if(n&&!o){if(t&&!s.isString(t))for(const i in t)n[i]==null&&ut(r,i,"");for(const i in n)ut(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),Et in e&&(r.display=i)}}const as=/[^\\];\s*$/,an=/\s*!important$/;function ut(e,t,n){if(s.isArray(n))n.forEach(r=>ut(e,t,r));else if(n==null&&(n=""),process.env.NODE_ENV!=="production"&&as.test(n)&&s.warn(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const r=cs(e,t);an.test(n)?e.setProperty(s.hyphenate(r),n.replace(an,""),"important"):e[r]=n}}const cn=["Webkit","Moz","ms"],rt={};function cs(e,t){const n=rt[t];if(n)return n;let r=s.camelize(t);if(r!=="filter"&&r in e)return rt[t]=r;r=s.capitalize(r);for(let o=0;o<cn.length;o++){const i=cn[o]+r;if(i in e)return rt[t]=i}return t}const ln="http://www.w3.org/1999/xlink";function ls(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(ln,t.slice(6,t.length)):e.setAttributeNS(ln,t,n);else{const i=s.isSpecialBooleanAttr(t);n==null||i&&!s.includeBooleanAttr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function us(e,t,n,r,o,i,a){if(t==="innerHTML"||t==="textContent"){r&&a(r,o,i),e[t]=n==null?"":n;return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){e._value=n;const l=c==="OPTION"?e.getAttribute("value"):e.value,d=n==null?"":n;l!==d&&(e.value=d),n==null&&e.removeAttribute(t);return}let u=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=s.includeBooleanAttr(n):n==null&&l==="string"?(n="",u=!0):l==="number"&&(n=0,u=!0)}try{e[t]=n}catch(l){process.env.NODE_ENV!=="production"&&!u&&s.warn(`Failed setting prop "${t}" on <${c.toLowerCase()}>: value ${n} is invalid.`,l)}u&&e.removeAttribute(t)}function fs(e,t,n,r){e.addEventListener(t,n,r)}function ds(e,t,n,r){e.removeEventListener(t,n,r)}const un=Symbol("_vei");function ps(e,t,n,r,o=null){const i=e[un]||(e[un]={}),a=i[t];if(r&&a)a.value=r;else{const[c,u]=ms(t);if(r){const l=i[t]=ys(r,o);fs(e,c,l,u)}else a&&(ds(e,c,a,u),i[t]=void 0)}}const fn=/(?:Once|Passive|Capture)$/;function ms(e){let t;if(fn.test(e)){t={};let r;for(;r=e.match(fn);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):s.hyphenate(e.slice(2)),t]}let ot=0;const hs=Promise.resolve(),gs=()=>ot||(hs.then(()=>ot=0),ot=Date.now());function ys(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;s.callWithAsyncErrorHandling(vs(r,n.value),t,5,[r])};return n.value=e,n.attached=gs(),n}function vs(e,t){if(s.isArray(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const dn=/^on[a-z]/,bs=(e,t,n,r,o=!1,i,a,c,u)=>{t==="class"?ss(e,r,o):t==="style"?is(e,n,r):s.isOn(t)?s.isModelListener(t)||ps(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ws(e,t,r,o))?us(e,t,r,i,a,c,u):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ls(e,t,r,o))};function ws(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&dn.test(t)&&s.isFunction(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||dn.test(t)&&s.isString(n)?!1:t in e}function Ss(e){const t=s.getCurrentInstance();if(!t){process.env.NODE_ENV!=="production"&&s.warn("useCssVars is called without current active component instance.");return}const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>dt(i,o))},r=()=>{const o=e(t.proxy);ft(t.subTree,o),n(o)};s.watchPostEffect(r),s.onMounted(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),s.onUnmounted(()=>o.disconnect())})}function ft(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ft(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)dt(e.el,t);else if(e.type===s.Fragment)e.children.forEach(n=>ft(n,t));else if(e.type===s.Static){let{el:n,anchor:r}=e;for(;n&&(dt(n,t),n!==r);)n=n.nextSibling}}function dt(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const _s=["ctrl","shift","alt","meta"],Cs={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>_s.some(n=>e[`${n}Key`]&&!t.includes(n))},Ot=(e,t)=>(n,...r)=>{for(let o=0;o<t.length;o++){const i=Cs[t[o]];if(i&&i(n,t))return}return e(n,...r)},Es={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Os=(e,t)=>n=>{if(!("key"in n))return;const r=s.hyphenate(n.key);if(t.some(o=>o===r||Es[o]===r))return e(n)},Ts=s.extend({patchProp:bs},Xo);let pn;function tr(){return pn||(pn=s.createRenderer(Ts))}const Pe=(...e)=>{tr().render(...e)},nr=(...e)=>{const t=tr().createApp(...e);process.env.NODE_ENV!=="production"&&(Ns(t),xs(t));const{mount:n}=t;return t.mount=r=>{const o=As(r);if(!o)return;const i=t._component;!s.isFunction(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t};function Ns(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>s.isHTMLTag(t)||s.isSVGTag(t),writable:!1})}function xs(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){s.warn("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=e.config.compilerOptions,r='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get(){return s.warn(r),n},set(){s.warn(r)}})}}function As(e){if(s.isString(e)){const t=document.querySelector(e);return process.env.NODE_ENV!=="production"&&!t&&s.warn(`Failed to mount app: mount target selector "${e}" returned null.`),t}return process.env.NODE_ENV!=="production"&&window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&s.warn('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}var mn;const U=typeof window!="undefined",Ps=e=>typeof e=="string",Rs=()=>{};U&&((mn=window==null?void 0:window.navigator)!=null&&mn.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Tt(e){return typeof e=="function"?e():s.unref(e)}function Bs(e){return e}function Nt(e){return s.getCurrentScope()?(s.onScopeDispose(e),!0):!1}function Ls(e,t=!0){s.getCurrentInstance()?s.onMounted(e):t?e():s.nextTick(e)}function rr(e,t,n={}){const{immediate:r=!0}=n,o=s.ref(!1);let i=null;function a(){i&&(clearTimeout(i),i=null)}function c(){o.value=!1,a()}function u(...l){a(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=null,e(...l)},Tt(t))}return r&&(o.value=!0,U&&u()),Nt(c),{isPending:s.readonly(o),start:u,stop:c}}function or(e){var t;const n=Tt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const sr=U?window:void 0;function ir(...e){let t,n,r,o;if(Ps(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=sr):[t,n,r,o]=e,!t)return Rs;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],a=()=>{i.forEach(d=>d()),i.length=0},c=(d,p,g,y)=>(d.addEventListener(p,g,y),()=>d.removeEventListener(p,g,y)),u=s.watch(()=>[or(t),Tt(o)],([d,p])=>{a(),d&&i.push(...n.flatMap(g=>r.map(y=>c(d,g,y,p))))},{immediate:!0,flush:"post"}),l=()=>{u(),a()};return Nt(l),l}function Is(e,t=!1){const n=s.ref(),r=()=>n.value=!!e();return r(),Ls(r,t),n}const hn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},gn="__vueuse_ssr_handlers__";hn[gn]=hn[gn]||{};var yn=Object.getOwnPropertySymbols,$s=Object.prototype.hasOwnProperty,ks=Object.prototype.propertyIsEnumerable,Ds=(e,t)=>{var n={};for(var r in e)$s.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&yn)for(var r of yn(e))t.indexOf(r)<0&&ks.call(e,r)&&(n[r]=e[r]);return n};function Fs(e,t,n={}){const r=n,{window:o=sr}=r,i=Ds(r,["window"]);let a;const c=Is(()=>o&&"ResizeObserver"in o),u=()=>{a&&(a.disconnect(),a=void 0)},l=s.watch(()=>or(e),p=>{u(),c.value&&o&&p&&(a=new ResizeObserver(t),a.observe(p,i))},{immediate:!0,flush:"post"}),d=()=>{u(),l()};return Nt(d),{isSupported:c,stop:d}}var vn;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(vn||(vn={}));var js=Object.defineProperty,bn=Object.getOwnPropertySymbols,Ms=Object.prototype.hasOwnProperty,Us=Object.prototype.propertyIsEnumerable,wn=(e,t,n)=>t in e?js(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zs=(e,t)=>{for(var n in t||(t={}))Ms.call(t,n)&&wn(e,n,t[n]);if(bn)for(var n of bn(t))Us.call(t,n)&&wn(e,n,t[n]);return e};const Vs={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};zs({linear:Bs},Vs);var Hs=typeof global=="object"&&global&&global.Object===Object&&global,qs=typeof self=="object"&&self&&self.Object===Object&&self,xt=Hs||qs||Function("return this")(),X=xt.Symbol,ar=Object.prototype,Ks=ar.hasOwnProperty,Js=ar.toString,le=X?X.toStringTag:void 0;function Gs(e){var t=Ks.call(e,le),n=e[le];try{e[le]=void 0;var r=!0}catch(i){}var o=Js.call(e);return r&&(t?e[le]=n:delete e[le]),o}var Ws=Object.prototype,Zs=Ws.toString;function Qs(e){return Zs.call(e)}var Ys="[object Null]",Xs="[object Undefined]",Sn=X?X.toStringTag:void 0;function cr(e){return e==null?e===void 0?Xs:Ys:Sn&&Sn in Object(e)?Gs(e):Qs(e)}function ei(e){return e!=null&&typeof e=="object"}var ti="[object Symbol]";function At(e){return typeof e=="symbol"||ei(e)&&cr(e)==ti}function ni(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Pt=Array.isArray,ri=1/0,_n=X?X.prototype:void 0,Cn=_n?_n.toString:void 0;function lr(e){if(typeof e=="string")return e;if(Pt(e))return ni(e,lr)+"";if(At(e))return Cn?Cn.call(e):"";var t=e+"";return t=="0"&&1/e==-ri?"-0":t}function ur(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var oi="[object AsyncFunction]",si="[object Function]",ii="[object GeneratorFunction]",ai="[object Proxy]";function ci(e){if(!ur(e))return!1;var t=cr(e);return t==si||t==ii||t==oi||t==ai}var st=xt["__core-js_shared__"],En=function(){var e=/[^.]+$/.exec(st&&st.keys&&st.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function li(e){return!!En&&En in e}var ui=Function.prototype,fi=ui.toString;function di(e){if(e!=null){try{return fi.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var pi=/[\\^$.*+?()[\]{}|]/g,mi=/^\[object .+?Constructor\]$/,hi=Function.prototype,gi=Object.prototype,yi=hi.toString,vi=gi.hasOwnProperty,bi=RegExp("^"+yi.call(vi).replace(pi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wi(e){if(!ur(e)||li(e))return!1;var t=ci(e)?bi:mi;return t.test(di(e))}function Si(e,t){return e==null?void 0:e[t]}function fr(e,t){var n=Si(e,t);return wi(n)?n:void 0}function _i(e,t){return e===t||e!==e&&t!==t}var Ci=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ei=/^\w*$/;function Oi(e,t){if(Pt(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||At(e)?!0:Ei.test(e)||!Ci.test(e)||t!=null&&e in Object(t)}var me=fr(Object,"create");function Ti(){this.__data__=me?me(null):{},this.size=0}function Ni(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var xi="__lodash_hash_undefined__",Ai=Object.prototype,Pi=Ai.hasOwnProperty;function Ri(e){var t=this.__data__;if(me){var n=t[e];return n===xi?void 0:n}return Pi.call(t,e)?t[e]:void 0}var Bi=Object.prototype,Li=Bi.hasOwnProperty;function Ii(e){var t=this.__data__;return me?t[e]!==void 0:Li.call(t,e)}var $i="__lodash_hash_undefined__";function ki(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=me&&t===void 0?$i:t,this}function G(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}G.prototype.clear=Ti;G.prototype.delete=Ni;G.prototype.get=Ri;G.prototype.has=Ii;G.prototype.set=ki;function Di(){this.__data__=[],this.size=0}function Ue(e,t){for(var n=e.length;n--;)if(_i(e[n][0],t))return n;return-1}var Fi=Array.prototype,ji=Fi.splice;function Mi(e){var t=this.__data__,n=Ue(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():ji.call(t,n,1),--this.size,!0}function Ui(e){var t=this.__data__,n=Ue(t,e);return n<0?void 0:t[n][1]}function zi(e){return Ue(this.__data__,e)>-1}function Vi(e,t){var n=this.__data__,r=Ue(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function re(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}re.prototype.clear=Di;re.prototype.delete=Mi;re.prototype.get=Ui;re.prototype.has=zi;re.prototype.set=Vi;var Hi=fr(xt,"Map");function qi(){this.size=0,this.__data__={hash:new G,map:new(Hi||re),string:new G}}function Ki(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ze(e,t){var n=e.__data__;return Ki(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Ji(e){var t=ze(this,e).delete(e);return this.size-=t?1:0,t}function Gi(e){return ze(this,e).get(e)}function Wi(e){return ze(this,e).has(e)}function Zi(e,t){var n=ze(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Z(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Z.prototype.clear=qi;Z.prototype.delete=Ji;Z.prototype.get=Gi;Z.prototype.has=Wi;Z.prototype.set=Zi;var Qi="Expected a function";function Rt(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Qi);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Rt.Cache||Z),n}Rt.Cache=Z;var Yi=500;function Xi(e){var t=Rt(e,function(r){return n.size===Yi&&n.clear(),r}),n=t.cache;return t}var ea=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ta=/\\(\\)?/g,na=Xi(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ea,function(n,r,o,i){t.push(o?i.replace(ta,"$1"):r||n)}),t});function ra(e){return e==null?"":lr(e)}function oa(e,t){return Pt(e)?e:Oi(e,t)?[e]:na(ra(e))}var sa=1/0;function ia(e){if(typeof e=="string"||At(e))return e;var t=e+"";return t=="0"&&1/e==-sa?"-0":t}function aa(e,t){t=oa(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ia(t[n++])];return n&&n==r?e:void 0}function ca(e,t,n){var r=e==null?void 0:aa(e,t);return r===void 0?n:r}function la(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}const ua=e=>e===void 0,he=e=>typeof e=="number",pt=e=>typeof Element=="undefined"?!1:e instanceof Element,fa=e=>s.isString(e)?!Number.isNaN(Number(e)):!1,On=e=>Object.keys(e);class da extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ve(e,t){if(process.env.NODE_ENV!=="production"){const n=s.isString(e)?new da(`[${e}] ${t}`):e}}const pa="utils/dom/style",dr=(e="")=>e.split(" ").filter(t=>!!t.trim()),Tn=(e,t)=>{!e||!t.trim()||e.classList.add(...dr(t))},Re=(e,t)=>{!e||!t.trim()||e.classList.remove(...dr(t))},ue=(e,t)=>{var n;if(!U||!e||!t)return"";let r=s.camelize(t);r==="float"&&(r="cssFloat");try{const o=e.style[r];if(o)return o;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return i?i[r]:""}catch(o){return e.style[r]}};function ma(e,t="px"){if(!e)return"";if(he(e)||fa(e))return`${e}${t}`;if(s.isString(e))return e;Ve(pa,"binding value must be a string or number")}/*! Element Plus Icons Vue v2.3.1 */var ha=s.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),pr=ha,ga=s.defineComponent({name:"Close",__name:"close",setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createBaseVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),mr=ga,ya=s.defineComponent({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),hr=ya,va=s.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),gr=va,ba=s.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(s.openBlock(),s.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[s.createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),yr=ba;const vr="__epPropKey",J=e=>e,wa=e=>s.isObject(e)&&!!e[vr],br=(e,t)=>{if(!s.isObject(e)||wa(e))return e;const{values:n,required:r,default:o,type:i,validator:a}=e,u={type:i,required:!!r,validator:n||a?l=>{let d=!1,p=[];if(n&&(p=Array.from(n),s.hasOwn(e,"default")&&p.push(o),d||(d=p.includes(l))),a&&(d||(d=a(l))),!d&&p.length>0){const g=[...new Set(p)].map(y=>JSON.stringify(y)).join(", ");s.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${g}], got value ${JSON.stringify(l)}.`)}return d}:void 0,[vr]:!0};return s.hasOwn(e,"default")&&(u.default=o),u},He=e=>la(Object.entries(e).map(([t,n])=>[t,br(n,t)])),wr=J([String,Object,Function]),Sa={Close:mr},_a={Close:mr,SuccessFilled:gr,InfoFilled:hr,WarningFilled:yr,CircleCloseFilled:pr},Be={success:gr,warning:yr,error:pr,info:hr},Sr=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t!=null?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},_r=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),Te={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Ca=["","default","small","large"],Ea=e=>e;var Oa={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Ta=e=>(t,n)=>Na(t,n,s.unref(e)),Na=(e,t,n)=>ca(n,e,e).replace(/\{(\w+)\}/g,(r,o)=>{var i;return`${(i=t==null?void 0:t[o])!=null?i:`{${o}}`}`}),xa=e=>{const t=s.computed(()=>s.unref(e).name),n=s.isRef(e)?e:s.ref(e);return{lang:t,locale:n,t:Ta(e)}},Cr=Symbol("localeContextKey"),Aa=e=>{const t=e||s.inject(Cr,s.ref());return xa(s.computed(()=>t.value||Oa))},Ne="el",Pa="is-",q=(e,t,n,r,o)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),o&&(i+=`--${o}`),i},Er=Symbol("namespaceContextKey"),Ra=e=>{const t=e||(s.getCurrentInstance()?s.inject(Er,s.ref(Ne)):s.ref(Ne));return s.computed(()=>s.unref(t)||Ne)},Bt=(e,t)=>{const n=Ra(t);return{namespace:n,b:(m="")=>q(n.value,e,m,"",""),e:m=>m?q(n.value,e,"",m,""):"",m:m=>m?q(n.value,e,"","",m):"",be:(m,b)=>m&&b?q(n.value,e,m,b,""):"",em:(m,b)=>m&&b?q(n.value,e,"",m,b):"",bm:(m,b)=>m&&b?q(n.value,e,m,"",b):"",bem:(m,b,w)=>m&&b&&w?q(n.value,e,m,b,w):"",is:(m,...b)=>{const w=b.length>=1?b[0]:!0;return m&&w?`${Pa}${m}`:""},cssVar:m=>{const b={};for(const w in m)m[w]&&(b[`--${n.value}-${w}`]=m[w]);return b},cssVarName:m=>`--${n.value}-${m}`,cssVarBlock:m=>{const b={};for(const w in m)m[w]&&(b[`--${n.value}-${e}-${w}`]=m[w]);return b},cssVarBlockName:m=>`--${n.value}-${e}-${m}`}},Nn=s.ref(0),Or=2e3,Tr=Symbol("zIndexContextKey"),Ba=e=>{const t=e||(s.getCurrentInstance()?s.inject(Tr,void 0):void 0),n=s.computed(()=>{const i=s.unref(t);return he(i)?i:Or}),r=s.computed(()=>n.value+Nn.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(Nn.value++,r.value)}};br({type:String,values:Ca,required:!1});const La=Symbol("size"),Nr=Symbol(),Le=s.ref();function xr(e,t=void 0){const n=s.getCurrentInstance()?s.inject(Nr,Le):Le;return e?s.computed(()=>{var r,o;return(o=(r=n.value)==null?void 0:r[e])!=null?o:t}):n}function Lt(e,t){const n=xr(),r=Bt(e,s.computed(()=>{var c;return((c=n.value)==null?void 0:c.namespace)||Ne})),o=Aa(s.computed(()=>{var c;return(c=n.value)==null?void 0:c.locale})),i=Ba(s.computed(()=>{var c;return((c=n.value)==null?void 0:c.zIndex)||Or})),a=s.computed(()=>{var c;return s.unref(t)||((c=n.value)==null?void 0:c.size)||""});return Ia(s.computed(()=>s.unref(n)||{})),{ns:r,locale:o,zIndex:i,size:a}}const Ia=(e,t,n=!1)=>{var r;const o=!!s.getCurrentInstance(),i=o?xr():void 0,a=(r=t==null?void 0:t.provide)!=null?r:o?s.provide:void 0;if(!a){Ve("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const c=s.computed(()=>{const u=s.unref(e);return i!=null&&i.value?$a(i.value,u):u});return a(Nr,c),a(Cr,s.computed(()=>c.value.locale)),a(Er,s.computed(()=>c.value.namespace)),a(Tr,s.computed(()=>c.value.zIndex)),a(La,{size:s.computed(()=>c.value.size||"")}),(n||!Le.value)&&(Le.value=c.value),c},$a=(e,t)=>{var n;const r=[...new Set([...On(e),...On(t)])],o={};for(const i of r)o[i]=(n=t[i])!=null?n:e[i];return o},xn={};var qe=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const ka=He({size:{type:J([Number,String])},color:{type:String}}),Da=s.defineComponent({name:"ElIcon",inheritAttrs:!1}),Fa=s.defineComponent(R(E({},Da),{props:ka,setup(e){const t=e,n=Bt("icon"),r=s.computed(()=>{const{size:o,color:i}=t;return!o&&!i?{}:{fontSize:ua(o)?void 0:ma(o),"--color":i}});return(o,i)=>(s.openBlock(),s.createElementBlock("i",s.mergeProps({class:s.unref(n).b(),style:s.unref(r)},o.$attrs),[s.renderSlot(o.$slots,"default")],16))}}));var ja=qe(Fa,[["__file","icon.vue"]]);const Ie=Sr(ja),Ma=He({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0}}),Ua=["textContent"],za=s.defineComponent({name:"ElBadge"}),Va=s.defineComponent(R(E({},za),{props:Ma,setup(e,{expose:t}){const n=e,r=Bt("badge"),o=s.computed(()=>n.isDot?"":he(n.value)&&he(n.max)?n.max<n.value?`${n.max}+`:n.value===0&&!n.showZero?"":`${n.value}`:`${n.value}`);return t({content:o}),(i,a)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(s.unref(r).b())},[s.renderSlot(i.$slots,"default"),s.createVNode(W,{name:`${s.unref(r).namespace.value}-zoom-in-center`,persisted:""},{default:s.withCtx(()=>[s.withDirectives(s.createBaseVNode("sup",{class:s.normalizeClass([s.unref(r).e("content"),s.unref(r).em("content",i.type),s.unref(r).is("fixed",!!i.$slots.default),s.unref(r).is("dot",i.isDot)]),textContent:s.toDisplayString(s.unref(o))},null,10,Ua),[[Y,!i.hidden&&(s.unref(o)||i.isDot)]])]),_:1},8,["name"])],2))}}));var Ha=qe(Va,[["__file","badge.vue"]]);const qa=Sr(Ha);function Ka(e){let t;const n=s.ref(!1),r=s.reactive(R(E({},e),{originalPosition:"",originalOverflow:"",visible:!1}));function o(g){r.text=g}function i(){const g=r.parent,y=p.ns;if(!g.vLoadingAddClassList){let h=g.getAttribute("loading-number");h=Number.parseInt(h)-1,h?g.setAttribute("loading-number",h.toString()):(Re(g,y.bm("parent","relative")),g.removeAttribute("loading-number")),Re(g,y.bm("parent","hidden"))}a(),d.unmount()}function a(){var g,y;(y=(g=p.$el)==null?void 0:g.parentNode)==null||y.removeChild(p.$el)}function c(){var g;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(u,400),r.visible=!1,(g=e.closed)==null||g.call(e))}function u(){if(!n.value)return;const g=r.parent;n.value=!1,g.vLoadingAddClassList=void 0,i()}const l=s.defineComponent({name:"ElLoading",setup(g,{expose:y}){const{ns:h,zIndex:m}=Lt("loading");return y({ns:h,zIndex:m}),()=>{const b=r.spinner||r.svg,w=s.h("svg",E({class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50"},b?{innerHTML:b}:{}),[s.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),T=r.text?s.h("p",{class:h.b("text")},[r.text]):void 0;return s.h(W,{name:h.b("fade"),onAfterLeave:u},{default:s.withCtx(()=>[s.withDirectives(s.createVNode("div",{style:{backgroundColor:r.background||""},class:[h.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[s.h("div",{class:h.b("spinner")},[w,T])]),[[Y,r.visible]])])})}}}),d=nr(l),p=d.mount(document.createElement("div"));return R(E({},s.toRefs(r)),{setText:o,removeElLoadingChild:a,close:c,handleAfterLeave:u,vm:p,get $el(){return p.$el}})}let Se;const mt=function(e={}){if(!U)return;const t=Ja(e);if(t.fullscreen&&Se)return Se;const n=Ka(R(E({},t),{closed:()=>{var o;(o=t.closed)==null||o.call(t),t.fullscreen&&(Se=void 0)}}));Ga(t,t.parent,n),An(t,t.parent,n),t.parent.vLoadingAddClassList=()=>An(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),s.nextTick(()=>n.visible.value=t.visible),t.fullscreen&&(Se=n),n},Ja=e=>{var t,n,r,o;let i;return s.isString(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(o=e.visible)!=null?o:!0,target:i}},Ga=(e,t,n)=>se(exports,null,function*(){const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(e.fullscreen)n.originalPosition.value=ue(document.body,"position"),n.originalOverflow.value=ue(document.body,"overflow"),o.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=ue(document.body,"position"),yield s.nextTick();for(const i of["top","left"]){const a=i==="top"?"scrollTop":"scrollLeft";o[i]=`${e.target.getBoundingClientRect()[i]+document.body[a]+document.documentElement[a]-Number.parseInt(ue(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])o[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=ue(t,"position");for(const[i,a]of Object.entries(o))n.$el.style[i]=a}),An=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Re(t,r.bm("parent","relative")):Tn(t,r.bm("parent","relative")),e.fullscreen&&e.lock?Tn(t,r.bm("parent","hidden")):Re(t,r.bm("parent","hidden"))},xe=Symbol("ElLoading"),Pn=(e,t)=>{var n,r,o,i;const a=t.instance,c=g=>s.isObject(t.value)?t.value[g]:void 0,u=g=>{const y=s.isString(g)&&(a==null?void 0:a[g])||g;return y&&s.ref(y)},l=g=>u(c(g)||e.getAttribute(`element-loading-${s.hyphenate(g)}`)),d=(n=c("fullscreen"))!=null?n:t.modifiers.fullscreen,p={text:l("text"),svg:l("svg"),svgViewBox:l("svgViewBox"),spinner:l("spinner"),background:l("background"),customClass:l("customClass"),fullscreen:d,target:(r=c("target"))!=null?r:d?void 0:e,body:(o=c("body"))!=null?o:t.modifiers.body,lock:(i=c("lock"))!=null?i:t.modifiers.lock};e[xe]={options:p,instance:mt(p)}},Wa=(e,t)=>{for(const n of Object.keys(t))s.isRef(t[n])&&(t[n].value=e[n])},Rn={mounted(e,t){t.value&&Pn(e,t)},updated(e,t){const n=e[xe];t.oldValue!==t.value&&(t.value&&!t.oldValue?Pn(e,t):t.value&&t.oldValue?s.isObject(t.value)&&Wa(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[xe])==null||t.instance.close(),e[xe]=null}},Za={install(e){e.directive("loading",Rn),e.config.globalProperties.$loading=mt},directive:Rn,service:mt},Ar=["success","info","warning","error"],x=Ea({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:U?document.body:void 0}),Qa=He({customClass:{type:String,default:x.customClass},center:{type:Boolean,default:x.center},dangerouslyUseHTMLString:{type:Boolean,default:x.dangerouslyUseHTMLString},duration:{type:Number,default:x.duration},icon:{type:wr,default:x.icon},id:{type:String,default:x.id},message:{type:J([String,Object,Function]),default:x.message},onClose:{type:J(Function),required:!1},showClose:{type:Boolean,default:x.showClose},type:{type:String,values:Ar,default:x.type},offset:{type:Number,default:x.offset},zIndex:{type:Number,default:x.zIndex},grouping:{type:Boolean,default:x.grouping},repeatNum:{type:Number,default:x.repeatNum}}),Ya={destroy:()=>!0},B=s.shallowReactive([]),Xa=e=>{const t=B.findIndex(o=>o.id===e),n=B[t];let r;return t>0&&(r=B[t-1]),{current:n,prev:r}},ec=e=>{const{prev:t}=Xa(e);return t?t.vm.exposed.bottom.value:0},tc=(e,t)=>B.findIndex(r=>r.id===e)>0?16:t,nc=["id"],rc=["innerHTML"],oc=s.defineComponent({name:"ElMessage"}),sc=s.defineComponent(R(E({},oc),{props:Qa,emits:Ya,setup(e,{expose:t}){const n=e,{Close:r}=_a,{ns:o,zIndex:i}=Lt("message"),{currentZIndex:a,nextZIndex:c}=i,u=s.ref(),l=s.ref(!1),d=s.ref(0);let p;const g=s.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),y=s.computed(()=>{const C=n.type;return{[o.bm("icon",C)]:C&&Be[C]}}),h=s.computed(()=>n.icon||Be[n.type]||""),m=s.computed(()=>ec(n.id)),b=s.computed(()=>tc(n.id,n.offset)+m.value),w=s.computed(()=>d.value+b.value),T=s.computed(()=>({top:`${b.value}px`,zIndex:a.value}));function S(){n.duration!==0&&({stop:p}=rr(()=>{I()},n.duration))}function P(){p==null||p()}function I(){l.value=!1}function Ze({code:C}){C===Te.esc&&I()}return s.onMounted(()=>{S(),c(),l.value=!0}),s.watch(()=>n.repeatNum,()=>{P(),S()}),ir(document,"keydown",Ze),Fs(u,()=>{d.value=u.value.getBoundingClientRect().height}),t({visible:l,bottom:w,close:I}),(C,ve)=>(s.openBlock(),s.createBlock(W,{name:s.unref(o).b("fade"),onBeforeLeave:C.onClose,onAfterLeave:ve[0]||(ve[0]=be=>C.$emit("destroy")),persisted:""},{default:s.withCtx(()=>[s.withDirectives(s.createBaseVNode("div",{id:C.id,ref_key:"messageRef",ref:u,class:s.normalizeClass([s.unref(o).b(),{[s.unref(o).m(C.type)]:C.type},s.unref(o).is("center",C.center),s.unref(o).is("closable",C.showClose),C.customClass]),style:s.normalizeStyle(s.unref(T)),role:"alert",onMouseenter:P,onMouseleave:S},[C.repeatNum>1?(s.openBlock(),s.createBlock(s.unref(qa),{key:0,value:C.repeatNum,type:s.unref(g),class:s.normalizeClass(s.unref(o).e("badge"))},null,8,["value","type","class"])):s.createCommentVNode("v-if",!0),s.unref(h)?(s.openBlock(),s.createBlock(s.unref(Ie),{key:1,class:s.normalizeClass([s.unref(o).e("icon"),s.unref(y)])},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(h))))]),_:1},8,["class"])):s.createCommentVNode("v-if",!0),s.renderSlot(C.$slots,"default",{},()=>[C.dangerouslyUseHTMLString?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),s.createBaseVNode("p",{class:s.normalizeClass(s.unref(o).e("content")),innerHTML:C.message},null,10,rc)],2112)):(s.openBlock(),s.createElementBlock("p",{key:0,class:s.normalizeClass(s.unref(o).e("content"))},s.toDisplayString(C.message),3))]),C.showClose?(s.openBlock(),s.createBlock(s.unref(Ie),{key:2,class:s.normalizeClass(s.unref(o).e("closeBtn")),onClick:Ot(I,["stop"])},{default:s.withCtx(()=>[s.createVNode(s.unref(r))]),_:1},8,["class","onClick"])):s.createCommentVNode("v-if",!0)],46,nc),[[Y,l.value]])]),_:3},8,["name","onBeforeLeave"]))}}));var ic=qe(sc,[["__file","message.vue"]]);let ac=1;const Pr=e=>{const t=!e||s.isString(e)||s.isVNode(e)||s.isFunction(e)?{message:e}:e,n=E(E({},x),t);if(!n.appendTo)n.appendTo=document.body;else if(s.isString(n.appendTo)){let r=document.querySelector(n.appendTo);pt(r)||(Ve("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),r=document.body),n.appendTo=r}return n},cc=e=>{const t=B.indexOf(e);if(t===-1)return;B.splice(t,1);const{handler:n}=e;n.close()},lc=(r,n)=>{var o=r,{appendTo:e}=o,t=zt(o,["appendTo"]);const i=`message_${ac++}`,a=t.onClose,c=document.createElement("div"),u=R(E({},t),{id:i,onClose:()=>{a==null||a(),cc(g)},onDestroy:()=>{Pe(null,c)}}),l=s.createVNode(ic,u,s.isFunction(u.message)||s.isVNode(u.message)?{default:s.isFunction(u.message)?u.message:()=>u.message}:null);l.appContext=n||ee._context,Pe(l,c),e.appendChild(c.firstElementChild);const d=l.component,g={id:i,vnode:l,vm:d,handler:{close:()=>{d.exposed.visible.value=!1}},props:l.component.props};return g},ee=(e={},t)=>{if(!U)return{close:()=>{}};if(he(xn.max)&&B.length>=xn.max)return{close:()=>{}};const n=Pr(e);if(n.grouping&&B.length){const o=B.find(({vnode:i})=>{var a;return((a=i.props)==null?void 0:a.message)===n.message});if(o)return o.props.repeatNum+=1,o.props.type=n.type,o.handler}const r=lc(n,t);return B.push(r),r.handler};Ar.forEach(e=>{ee[e]=(t={},n)=>{const r=Pr(t);return ee(R(E({},r),{type:e}),n)}});function uc(e){for(const t of B)(!e||e===t.props.type)&&t.handler.close()}ee.closeAll=uc;ee._context=null;const N=_r(ee,"$message"),Rr=["success","info","warning","error"],fc=He({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:wr},id:{type:String,default:""},message:{type:J([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:J(Function),default:()=>{}},onClose:{type:J(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...Rr,""],default:""},zIndex:Number}),dc={destroy:()=>!0},pc=["id"],mc=["textContent"],hc={key:0},gc=["innerHTML"],yc=s.defineComponent({name:"ElNotification"}),vc=s.defineComponent(R(E({},yc),{props:fc,emits:dc,setup(e,{expose:t}){const n=e,{ns:r,zIndex:o}=Lt("notification"),{nextZIndex:i,currentZIndex:a}=o,{Close:c}=Sa,u=s.ref(!1);let l;const d=s.computed(()=>{const S=n.type;return S&&Be[n.type]?r.m(S):""}),p=s.computed(()=>n.type&&Be[n.type]||n.icon),g=s.computed(()=>n.position.endsWith("right")?"right":"left"),y=s.computed(()=>n.position.startsWith("top")?"top":"bottom"),h=s.computed(()=>{var S;return{[y.value]:`${n.offset}px`,zIndex:(S=n.zIndex)!=null?S:a.value}});function m(){n.duration>0&&({stop:l}=rr(()=>{u.value&&w()},n.duration))}function b(){l==null||l()}function w(){u.value=!1}function T({code:S}){S===Te.delete||S===Te.backspace?b():S===Te.esc?u.value&&w():m()}return s.onMounted(()=>{m(),i(),u.value=!0}),ir(document,"keydown",T),t({visible:u,close:w}),(S,P)=>(s.openBlock(),s.createBlock(W,{name:s.unref(r).b("fade"),onBeforeLeave:S.onClose,onAfterLeave:P[1]||(P[1]=I=>S.$emit("destroy")),persisted:""},{default:s.withCtx(()=>[s.withDirectives(s.createBaseVNode("div",{id:S.id,class:s.normalizeClass([s.unref(r).b(),S.customClass,s.unref(g)]),style:s.normalizeStyle(s.unref(h)),role:"alert",onMouseenter:b,onMouseleave:m,onClick:P[0]||(P[0]=(...I)=>S.onClick&&S.onClick(...I))},[s.unref(p)?(s.openBlock(),s.createBlock(s.unref(Ie),{key:0,class:s.normalizeClass([s.unref(r).e("icon"),s.unref(d)])},{default:s.withCtx(()=>[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(s.unref(p))))]),_:1},8,["class"])):s.createCommentVNode("v-if",!0),s.createBaseVNode("div",{class:s.normalizeClass(s.unref(r).e("group"))},[s.createBaseVNode("h2",{class:s.normalizeClass(s.unref(r).e("title")),textContent:s.toDisplayString(S.title)},null,10,mc),s.withDirectives(s.createBaseVNode("div",{class:s.normalizeClass(s.unref(r).e("content")),style:s.normalizeStyle(S.title?void 0:{margin:0})},[s.renderSlot(S.$slots,"default",{},()=>[S.dangerouslyUseHTMLString?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),s.createBaseVNode("p",{innerHTML:S.message},null,8,gc)],2112)):(s.openBlock(),s.createElementBlock("p",hc,s.toDisplayString(S.message),1))])],6),[[Y,S.message]]),S.showClose?(s.openBlock(),s.createBlock(s.unref(Ie),{key:0,class:s.normalizeClass(s.unref(r).e("closeBtn")),onClick:Ot(w,["stop"])},{default:s.withCtx(()=>[s.createVNode(s.unref(c))]),_:1},8,["class","onClick"])):s.createCommentVNode("v-if",!0)],2)],46,pc),[[Y,u.value]])]),_:3},8,["name","onBeforeLeave"]))}}));var bc=qe(vc,[["__file","notification.vue"]]);const $e={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},ht=16;let wc=1;const te=function(e={},t=null){if(!U)return{close:()=>{}};(typeof e=="string"||s.isVNode(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;$e[n].forEach(({vm:d})=>{var p;r+=(((p=d.el)==null?void 0:p.offsetHeight)||0)+ht}),r+=ht;const o=`notification_${wc++}`,i=e.onClose,a=R(E({},e),{offset:r,id:o,onClose:()=>{Sc(o,n,i)}});let c=document.body;pt(e.appendTo)?c=e.appendTo:s.isString(e.appendTo)&&(c=document.querySelector(e.appendTo)),pt(c)||(Ve("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),c=document.body);const u=document.createElement("div"),l=s.createVNode(bc,a,s.isVNode(a.message)?{default:()=>a.message}:null);return l.appContext=t!=null?t:te._context,l.props.onDestroy=()=>{Pe(null,u)},Pe(l,u),$e[n].push({vm:l}),c.appendChild(u.firstElementChild),{close:()=>{l.component.exposed.visible.value=!1}}};Rr.forEach(e=>{te[e]=(t={})=>((typeof t=="string"||s.isVNode(t))&&(t={message:t}),te(R(E({},t),{type:e})))});function Sc(e,t,n){const r=$e[t],o=r.findIndex(({vm:l})=>{var d;return((d=l.component)==null?void 0:d.props.id)===e});if(o===-1)return;const{vm:i}=r[o];if(!i)return;n==null||n(i);const a=i.el.offsetHeight,c=t.split("-")[0];r.splice(o,1);const u=r.length;if(!(u<1))for(let l=o;l<u;l++){const{el:d,component:p}=r[l].vm,g=Number.parseInt(d.style[c],10)-a-ht;p.props.offset=g}}function _c(){for(const e of Object.values($e))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}te.closeAll=_c;te._context=null;const Bn=_r(te,"$notify"),Cc={LOGIN_URL:`${window.location.origin}/ttc/cloud/#/login`,HOME_URL:`${window.location.origin}/ttc/cloud/#/cloud`,INTEGRATED_BASE_URL:"/gateway/integrated-management/api/v1"},It={ttc:Cc},Ec=(e="ttc")=>We.get(`${It[e].INTEGRATED_BASE_URL}/account/auth/route/list`),Oc=(e="ttc")=>We.get(`${It[e].INTEGRATED_BASE_URL}/account/home/menu`),$t=(e="ttc")=>{Ge({token:""})},Ke=(e="ttc")=>{var o;const t=`${e}GlobalState`,n=(o=localStorage.getItem(t))!=null?o:"{}";return JSON.parse(n)?JSON.parse(n).token:null},Br=(r,...o)=>se(exports,[r,...o],function*({userName:e,password:t},n="ttc"){const i=oe("loginApiUrl"),{data:a}=yield We.post(i,{userName:e,password:t});a.tokenValue&&N.success("登录成功"),Ge({token:a.tokenValue,userInfo:a})}),Tc=(e="ttc")=>{var o;const t=`${e}GlobalState`,n=(o=localStorage.getItem(t))!=null?o:"{}";return JSON.parse(n)?JSON.parse(n).userInfo:null},Nc=()=>se(exports,null,function*(){return Ke()?yield Oc():[]}),Je=()=>{if(Ir()){const e=location.pathname;if(e.includes(Lr())||e.includes(ke()))return;$t(),window.location.replace(ke())}else{const e=window.prompt("当前系统处于开发环境,当前登录过期,请输入登录账号","");if(e!==null){const t=window.prompt("请输入登录密码","");(t===null||t=="")&&window.prompt("请输入登录密码",""),Br({userName:e,password:t})}}},xc=()=>{window.location.replace(ke())},Lr=()=>oe("loginUrl"),ke=()=>oe("homeUrl"),Ge=e=>{var r;const t=(r=localStorage.getItem("ttcGlobalState"))!=null?r:"{}",n=E(E({},JSON.parse(t)),e);localStorage.setItem("ttcGlobalState",JSON.stringify(n))},oe=e=>{var n,r;return(r=JSON.parse((n=localStorage.getItem("ttcGlobalState"))!=null?n:"{}")[e])!=null?r:""},Ir=()=>oe("environment")==="production",Ac=(e,t=!0,n)=>se(exports,null,function*(){if(!Ke()&&t)return Je();try{const{data:r}=yield Ec(n),o=r.filter(c=>c.routeTag.includes(e)),i=o.filter(c=>c.routeType==="VIEW"),a=o.filter(c=>c.routeType==="BTN");return sessionStorage.setItem("ttcUserBtnList",JSON.stringify(a.map(c=>c.routeTag))),{userMenuList:i,userBtnList:a}}catch(r){}}),Pc=(e,t,n)=>{let r=[];return e.forEach(o=>{const i=`/src/views${o.routeView}/config.ts`,a=`/src/views${o.routeView}/index.vue`;if(t[a]&&n[i]){const c=n[i],u={path:o.routeView,name:o.routeView.split("/")[1],meta:{title:c.title,icon:c.icon},component:t[a]};r.push(u)}}),r},$r=e=>{var n;if(!e)return!1;const t=(n=sessionStorage.getItem("ttcUserBtnList"))!=null?n:"[]";return JSON.parse(t).includes(e)},Rc=Object.freeze(Object.defineProperty({__proto__:null,autoLogin:Br,getHomeUrl:ke,getLoginUrl:Lr,getSystemConfig:oe,getToken:Ke,getUserInfo:Tc,getUserIsHaveBtnPower:$r,getUserPermissions:Ac,getUserRouteList:Nc,getUserRouter:Pc,isProduction:Ir,jumpToHome:xc,jumpToLogin:Je,removeToken:$t,setSystemConfig:Ge},Symbol.toStringTag,{value:"Module"}));let kr;const Bc={lock:!0,text:"加载中...",fullscreen:!0,background:"rgba(0, 0, 0, 0.6)"},Lc=()=>{kr=Za.service(Bc)},Ic=()=>{kr.close()};let fe=0;const $c=()=>{fe===0&&Lc(),fe++},Ln=()=>{fe<=0||(fe--,fe===0&&Ic())};var gt=(e=>(e[e.SUCCESS=200]="SUCCESS",e[e.ERROR=500]="ERROR",e[e.OVERDUE=401]="OVERDUE",e[e.TIMEOUT=3e4]="TIMEOUT",e))(gt||{});const kc={timeout:3e4,withCredentials:!0},Dc=(e,t)=>{switch(e){case 400:N.error(t||"请求失败!请您稍后重试");break;case 401:N.error(t||"登录失效!请您重新登录"),Je();break;case 403:N.error(t||"当前账号无权限访问!");break;case 404:N.error("你所访问的资源不存在!");break;case 405:N.error(t||"请求方式错误!请您稍后重试");break;case 408:N.error(t||"请求超时!请您稍后重试");break;case 500:N.error(t||"服务异常!");break;case 502:N.error("网关错误!");break;case 503:N.error("服务不可用!");break;case 504:N.error("网关超时!");break;default:N.error("请求失败!")}};class Fc{constructor(t){Vt(this,"service");this.service=O.create(t),this.setupInterceptors()}setupInterceptors(){this.service.interceptors.request.use(t=>{var n;return(n=t.headers)!=null&&n.noLoading||$c(),t.headers.token=Ke(),t},t=>Promise.reject(t)),this.service.interceptors.response.use(t=>{const{data:n}=t;return Ln(),n.code==gt.OVERDUE?this.handleOverdueResponse(n):n.code!==gt.SUCCESS&&this.handleErrorResponse(n),n},t=>(Ln(),t.message.includes("timeout")?N.error("请求超时!请稍后重试"):t.message.includes("Network Error")&&N.error("网络错误!请稍后重试"),t.response&&Dc(t.response.status),window.navigator.onLine||Bn({title:"提示",message:"当前网络似乎开小差了",type:"warning",duration:5e3}),Promise.reject(t)))}handleOverdueResponse(t){return $t(),Je(),Bn({title:"登录过期提醒",message:t.resultMsg||"当前登录失效",type:"warning",duration:5e3}),Promise.reject(t)}handleErrorResponse(t){return N.error(t.resultMsg),Promise.reject(t)}get(t,n,r={}){return this.service.get(t,E({params:n},r))}post(t,n,r={}){return this.service.post(t,n,r)}put(t,n,r={}){return this.service.put(t,n,r)}delete(t,n,r={}){return this.service.delete(t,E({params:n},r))}}const We=new Fc(kc);exports.Transition=W;exports.URL=It;exports.createApp=nr;exports.getSystemConfig=oe;exports.getUserIsHaveBtnPower=$r;exports.http=We;exports.index=Rc;exports.setSystemConfig=Ge;exports.useCssVars=Ss;exports.vShow=Y;exports.withKeys=Os;exports.withModifiers=Ot;
|
|
1
|
+
"use strict";var rt=Object.defineProperty;var Se=Object.getOwnPropertySymbols;var st=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable;var Z=(e,t,n)=>t in e?rt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,U=(e,t)=>{for(var n in t||(t={}))st.call(t,n)&&Z(e,n,t[n]);if(Se)for(var n of Se(t))ot.call(t,n)&&Z(e,n,t[n]);return e};var be=(e,t,n)=>(Z(e,typeof t!="symbol"?t+"":t,n),n);var j=(e,t,n)=>new Promise((r,s)=>{var i=l=>{try{c(n.next(l))}catch(u){s(u)}},o=l=>{try{c(n.throw(l))}catch(u){s(u)}},c=l=>l.done?r(l.value):Promise.resolve(l.value).then(i,o);c((n=n.apply(e,t)).next())});const S=require("element-plus");function _e(e,t){return function(){return e.apply(t,arguments)}}const{toString:Be}=Object.prototype,{getPrototypeOf:ue}=Object,le=(e=>t=>{const n=Be.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),A=e=>(e=e.toLowerCase(),t=>le(t)===e),G=e=>t=>typeof t===e,{isArray:x}=Array,F=G("undefined");function it(e){return e!==null&&!F(e)&&e.constructor!==null&&!F(e.constructor)&&N(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Fe=A("ArrayBuffer");function at(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Fe(e.buffer),t}const ct=G("string"),N=G("function"),De=G("number"),fe=e=>e!==null&&typeof e=="object",ut=e=>e===!0||e===!1,M=e=>{if(le(e)!=="object")return!1;const t=ue(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},lt=A("Date"),ft=A("File"),dt=A("Blob"),pt=A("FileList"),ht=e=>fe(e)&&N(e.pipe),mt=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Be.call(e)===t||N(e.toString)&&e.toString()===t)},Et=A("URLSearchParams"),yt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function D(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let r,s;if(typeof e!="object"&&(e=[e]),x(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let c;for(r=0;r<o;r++)c=i[r],t.call(null,e[c],c,e)}}function ke(e,t){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 Ie=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,je=e=>!F(e)&&e!==Ie;function se(){const{caseless:e}=je(this)&&this||{},t={},n=(r,s)=>{const i=e&&ke(t,s)||s;M(t[i])&&M(r)?t[i]=se(t[i],r):M(r)?t[i]=se({},r):x(r)?t[i]=r.slice():t[i]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&D(arguments[r],n);return t}const wt=(e,t,n,{allOwnKeys:r}={})=>(D(t,(s,i)=>{n&&N(s)?e[i]=_e(s,n):e[i]=s},{allOwnKeys:r}),e),St=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},gt=(e,t,n,r)=>{let s,i,o;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!c[o]&&(t[o]=e[o],c[o]=!0);e=n!==!1&&ue(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ot=(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},Rt=e=>{if(!e)return null;if(x(e))return e;let t=e.length;if(!De(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},At=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&ue(Uint8Array)),Tt=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},Nt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Pt=A("HTMLFormElement"),Ct=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),ge=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xt=A("RegExp"),Me=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};D(n,(s,i)=>{t(s,i,e)!==!1&&(r[i]=s)}),Object.defineProperties(e,r)},Lt=e=>{Me(e,(t,n)=>{if(N(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(N(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ut=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return x(e)?r(e):r(String(e).split(t)),n},_t=()=>{},Bt=(e,t)=>(e=+e,Number.isFinite(e)?e:t),ee="abcdefghijklmnopqrstuvwxyz",Oe="0123456789",He={DIGIT:Oe,ALPHA:ee,ALPHA_DIGIT:ee+ee.toUpperCase()+Oe},Ft=(e=16,t=He.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Dt(e){return!!(e&&N(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const kt=e=>{const t=new Array(10),n=(r,s)=>{if(fe(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const i=x(r)?[]:{};return D(r,(o,c)=>{const l=n(o,s+1);!F(l)&&(i[c]=l)}),t[s]=void 0,i}}return r};return n(e,0)},a={isArray:x,isArrayBuffer:Fe,isBuffer:it,isFormData:mt,isArrayBufferView:at,isString:ct,isNumber:De,isBoolean:ut,isObject:fe,isPlainObject:M,isUndefined:F,isDate:lt,isFile:ft,isBlob:dt,isRegExp:xt,isFunction:N,isStream:ht,isURLSearchParams:Et,isTypedArray:At,isFileList:pt,forEach:D,merge:se,extend:wt,trim:yt,stripBOM:St,inherits:bt,toFlatObject:gt,kindOf:le,kindOfTest:A,endsWith:Ot,toArray:Rt,forEachEntry:Tt,matchAll:Nt,isHTMLForm:Pt,hasOwnProperty:ge,hasOwnProp:ge,reduceDescriptors:Me,freezeMethods:Lt,toObjectSet:Ut,toCamelCase:Ct,noop:_t,toFiniteNumber:Bt,findKey:ke,global:Ie,isContextDefined:je,ALPHABET:He,generateString:Ft,isSpecCompliantForm:Dt,toJSONObject:kt};function m(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const qe=m.prototype,Je={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Je[e]={value:e}});Object.defineProperties(m,Je);Object.defineProperty(qe,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,i)=>{const o=Object.create(qe);return a.toFlatObject(e,o,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),m.call(o,e.message,t,n,r,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const It=null;function oe(e){return a.isPlainObject(e)||a.isArray(e)}function ze(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Re(e,t,n){return e?e.concat(t).map(function(s,i){return s=ze(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function jt(e){return a.isArray(e)&&!e.some(oe)}const Mt=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function $(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(h,O){return!a.isUndefined(O[h])});const r=n.metaTokens,s=n.visitor||f,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob!="undefined"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(a.isDate(d))return d.toISOString();if(!l&&a.isBlob(d))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(d)||a.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,h,O){let b=d;if(d&&!O&&typeof d=="object"){if(a.endsWith(h,"{}"))h=r?h:h.slice(0,-2),d=JSON.stringify(d);else if(a.isArray(d)&&jt(d)||(a.isFileList(d)||a.endsWith(h,"[]"))&&(b=a.toArray(d)))return h=ze(h),b.forEach(function(I,nt){!(a.isUndefined(I)||I===null)&&t.append(o===!0?Re([h],nt,i):o===null?h:h+"[]",u(I))}),!1}return oe(d)?!0:(t.append(Re(O,h,i),u(d)),!1)}const p=[],w=Object.assign(Mt,{defaultVisitor:f,convertValue:u,isVisitable:oe});function E(d,h){if(!a.isUndefined(d)){if(p.indexOf(d)!==-1)throw Error("Circular reference detected in "+h.join("."));p.push(d),a.forEach(d,function(b,P){(!(a.isUndefined(b)||b===null)&&s.call(t,b,a.isString(P)?P.trim():P,h,w))===!0&&E(b,h?h.concat(P):[P])}),p.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return E(e),t}function Ae(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function de(e,t){this._pairs=[],e&&$(e,this,t)}const Ve=de.prototype;Ve.append=function(t,n){this._pairs.push([t,n])};Ve.toString=function(t){const n=t?function(r){return t.call(this,r,Ae)}:Ae;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Ht(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ge(e,t,n){if(!t)return e;const r=n&&n.encode||Ht,s=n&&n.serialize;let i;if(s?i=s(t,n):i=a.isURLSearchParams(t)?t.toString():new de(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Te{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 $e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qt=typeof URLSearchParams!="undefined"?URLSearchParams:de,Jt=typeof FormData!="undefined"?FormData:null,zt=(()=>{let e;return typeof navigator!="undefined"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"})(),Vt=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",g={isBrowser:!0,classes:{URLSearchParams:qt,FormData:Jt,Blob},isStandardBrowserEnv:zt,isStandardBrowserWebWorkerEnv:Vt,protocols:["http","https","file","blob","url","data"]};function Gt(e,t){return $(e,new g.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,i){return g.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function $t(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vt(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function ve(e){function t(n,r,s,i){let o=n[i++];const c=Number.isFinite(+o),l=i>=n.length;return o=!o&&a.isArray(s)?s.length:o,l?(a.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!c):((!s[o]||!a.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&a.isArray(s[o])&&(s[o]=vt(s[o])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t($t(r),s,n,0)}),n}return null}const Kt={"Content-Type":void 0};function Wt(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 v={transitional:$e,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=a.isObject(t);if(i&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s&&s?JSON.stringify(ve(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(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(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Gt(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return $(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Wt(t)):t}],transformResponse:[function(t){const n=this.transitional||v.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&a.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(o)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:g.classes.FormData,Blob:g.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],function(t){v.headers[t]={}});a.forEach(["post","put","patch"],function(t){v.headers[t]=a.merge(Kt)});const pe=v,Xt=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"]),Qt=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
2
|
+
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&Xt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ne=Symbol("internals");function _(e){return e&&String(e).trim().toLowerCase()}function H(e){return e===!1||e==null?e:a.isArray(e)?e.map(H):String(e)}function Yt(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}function Zt(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function te(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 en(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function tn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}class K{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(c,l,u){const f=_(l);if(!f)throw new Error("header name must be a non-empty string");const p=a.findKey(s,f);(!p||s[p]===void 0||u===!0||u===void 0&&s[p]!==!1)&&(s[p||l]=H(c))}const o=(c,l)=>a.forEach(c,(u,f)=>i(u,f,l));return a.isPlainObject(t)||t instanceof this.constructor?o(t,n):a.isString(t)&&(t=t.trim())&&!Zt(t)?o(Qt(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=_(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Yt(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=_(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||te(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=_(o),o){const c=a.findKey(r,o);c&&(!n||te(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||te(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,i)=>{const o=a.findKey(r,i);if(o){n[o]=H(s),delete n[i];return}const c=t?en(i):String(i).trim();c!==i&&delete n[i],n[c]=H(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(`
|
|
3
|
+
`)}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[Ne]=this[Ne]={accessors:{}}).accessors,s=this.prototype;function i(o){const c=_(o);r[c]||(tn(s,o),r[c]=!0)}return a.isArray(t)?t.forEach(i):i(t),this}}K.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.freezeMethods(K.prototype);a.freezeMethods(K);const R=K;function ne(e,t){const n=this||pe,r=t||n,s=R.from(r.headers);let i=r.data;return a.forEach(e,function(c){i=c.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function Ke(e){return!!(e&&e.__CANCEL__)}function k(e,t,n){m.call(this,e==null?"canceled":e,m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(k,m,{__CANCEL__:!0});function nn(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const rn=g.isStandardBrowserEnv?function(){return{write:function(n,r,s,i,o,c){const l=[];l.push(n+"="+encodeURIComponent(r)),a.isNumber(s)&&l.push("expires="+new Date(s).toGMTString()),a.isString(i)&&l.push("path="+i),a.isString(o)&&l.push("domain="+o),c===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function sn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function on(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function We(e,t){return e&&!sn(t)?on(e,t):t}const an=g.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(o){const c=a.isString(o)?s(o):o;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}();function cn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function un(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),f=r[i];o||(o=u),n[s]=l,r[s]=u;let p=i,w=0;for(;p!==s;)w+=n[p++],p=p%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),u-o<t)return;const E=f&&u-f;return E?Math.round(w*1e3/E):void 0}}function Pe(e,t){let n=0;const r=un(50,250);return s=>{const i=s.loaded,o=s.lengthComputable?s.total:void 0,c=i-n,l=r(c),u=i<=o;n=i;const f={loaded:i,total:o,progress:o?i/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:s};f[t?"download":"upload"]=!0,e(f)}}const ln=typeof XMLHttpRequest!="undefined",fn=ln&&function(e){return new Promise(function(n,r){let s=e.data;const i=R.from(e.headers).normalize(),o=e.responseType;let c;function l(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}a.isFormData(s)&&(g.isStandardBrowserEnv||g.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const E=e.auth.username||"",d=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(E+":"+d))}const f=We(e.baseURL,e.url);u.open(e.method.toUpperCase(),Ge(f,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function p(){if(!u)return;const E=R.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),h={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:E,config:e,request:u};nn(function(b){n(b),l()},function(b){r(b),l()},h),u=null}if("onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(p)},u.onabort=function(){u&&(r(new m("Request aborted",m.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let d=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const h=e.transitional||$e;e.timeoutErrorMessage&&(d=e.timeoutErrorMessage),r(new m(d,h.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,u)),u=null},g.isStandardBrowserEnv){const E=(e.withCredentials||an(f))&&e.xsrfCookieName&&rn.read(e.xsrfCookieName);E&&i.set(e.xsrfHeaderName,E)}s===void 0&&i.setContentType(null),"setRequestHeader"in u&&a.forEach(i.toJSON(),function(d,h){u.setRequestHeader(h,d)}),a.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),o&&o!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Pe(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Pe(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=E=>{u&&(r(!E||E.type?new k(null,e,u):E),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const w=cn(f);if(w&&g.protocols.indexOf(w)===-1){r(new m("Unsupported protocol "+w+":",m.ERR_BAD_REQUEST,e));return}u.send(s||null)})},q={http:It,xhr:fn};a.forEach(q,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const dn={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let s=0;s<t&&(n=e[s],!(r=a.isString(n)?q[n.toLowerCase()]:n));s++);if(!r)throw r===!1?new m(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(a.hasOwnProp(q,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!a.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:q};function re(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new k(null,e)}function Ce(e){return re(e),e.headers=R.from(e.headers),e.data=ne.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),dn.getAdapter(e.adapter||pe.adapter)(e).then(function(r){return re(e),r.data=ne.call(e,e.transformResponse,r),r.headers=R.from(r.headers),r},function(r){return Ke(r)||(re(e),r&&r.response&&(r.response.data=ne.call(e,e.transformResponse,r.response),r.response.headers=R.from(r.response.headers))),Promise.reject(r)})}const xe=e=>e instanceof R?e.toJSON():e;function C(e,t){t=t||{};const n={};function r(u,f,p){return a.isPlainObject(u)&&a.isPlainObject(f)?a.merge.call({caseless:p},u,f):a.isPlainObject(f)?a.merge({},f):a.isArray(f)?f.slice():f}function s(u,f,p){if(a.isUndefined(f)){if(!a.isUndefined(u))return r(void 0,u,p)}else return r(u,f,p)}function i(u,f){if(!a.isUndefined(f))return r(void 0,f)}function o(u,f){if(a.isUndefined(f)){if(!a.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function c(u,f,p){if(p in t)return r(u,f);if(p in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(u,f)=>s(xe(u),xe(f),!0)};return a.forEach(Object.keys(e).concat(Object.keys(t)),function(f){const p=l[f]||s,w=p(e[f],t[f],f);a.isUndefined(w)&&p!==c||(n[f]=w)}),n}const Xe="1.3.3",he={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{he[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Le={};he.transitional=function(t,n,r){function s(i,o){return"[Axios v"+Xe+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,c)=>{if(t===!1)throw new m(s(o," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!Le[o]&&(Le[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,c):!0}};function pn(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const c=e[i],l=c===void 0||o(c,i,e);if(l!==!0)throw new m("option "+i+" must be "+l,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+i,m.ERR_BAD_OPTION)}}const ie={assertOptions:pn,validators:he},T=ie.validators;class z{constructor(t){this.defaults=t,this.interceptors={request:new Te,response:new Te}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=C(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&ie.assertOptions(r,{silentJSONParsing:T.transitional(T.boolean),forcedJSONParsing:T.transitional(T.boolean),clarifyTimeoutError:T.transitional(T.boolean)},!1),s!==void 0&&ie.assertOptions(s,{encode:T.function,serialize:T.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o;o=i&&a.merge(i.common,i[n.method]),o&&a.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),n.headers=R.concat(o,i);const c=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(l=l&&h.synchronous,c.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let f,p=0,w;if(!l){const d=[Ce.bind(this),void 0];for(d.unshift.apply(d,c),d.push.apply(d,u),w=d.length,f=Promise.resolve(n);p<w;)f=f.then(d[p++],d[p++]);return f}w=c.length;let E=n;for(p=0;p<w;){const d=c[p++],h=c[p++];try{E=d(E)}catch(O){h.call(this,O);break}}try{f=Ce.call(this,E)}catch(d){return Promise.reject(d)}for(p=0,w=u.length;p<w;)f=f.then(u[p++],u[p++]);return f}getUri(t){t=C(this.defaults,t);const n=We(t.baseURL,t.url);return Ge(n,t.params,t.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){z.prototype[t]=function(n,r){return this.request(C(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,c){return this.request(C(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}z.prototype[t]=n(),z.prototype[t+"Form"]=n(!0)});const J=z;class me{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(c=>{r.subscribe(c),i=c}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,c){r.reason||(r.reason=new k(i,o,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)}static source(){let t;return{token:new me(function(s){t=s}),cancel:t}}}const hn=me;function mn(e){return function(n){return e.apply(null,n)}}function En(e){return a.isObject(e)&&e.isAxiosError===!0}const ae={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(ae).forEach(([e,t])=>{ae[t]=e});const yn=ae;function Qe(e){const t=new J(e),n=_e(J.prototype.request,t);return a.extend(n,J.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Qe(C(e,s))},n}const y=Qe(pe);y.Axios=J;y.CanceledError=k;y.CancelToken=hn;y.isCancel=Ke;y.VERSION=Xe;y.toFormData=$;y.AxiosError=m;y.Cancel=y.CanceledError;y.all=function(t){return Promise.all(t)};y.spread=mn;y.isAxiosError=En;y.mergeConfig=C;y.AxiosHeaders=R;y.formToJSON=e=>ve(a.isHTMLForm(e)?new FormData(e):e);y.HttpStatusCode=yn;y.default=y;const wn={LOGIN_URL:`${window.location.origin}/ttc/cloud/#/login`,HOME_URL:`${window.location.origin}/ttc/cloud/#/cloud`,INTEGRATED_BASE_URL:"/gateway/integrated-management/api/v1"},Ee={ttc:wn},Sn=(e="ttc")=>Y.get(`${Ee[e].INTEGRATED_BASE_URL}/account/auth/route/list`),bn=(e="ttc")=>Y.get(`${Ee[e].INTEGRATED_BASE_URL}/account/home/menu`),ye=(e="ttc")=>{Q({token:""})},W=(e="ttc")=>{var s;const t=`${e}GlobalState`,n=(s=localStorage.getItem(t))!=null?s:"{}";return JSON.parse(n)?JSON.parse(n).token:null},Ye=(r,...s)=>j(exports,[r,...s],function*({userName:e,password:t},n="ttc"){const i=L("loginApiUrl"),{data:o}=yield Y.post(i,{userName:e,password:t});o.tokenValue&&S.ElMessage.success("登录成功"),Q({token:o.tokenValue,userInfo:o})}),gn=(e="ttc")=>{var s;const t=`${e}GlobalState`,n=(s=localStorage.getItem(t))!=null?s:"{}";return JSON.parse(n)?JSON.parse(n).userInfo:null},On=()=>j(exports,null,function*(){return W()?yield bn():[]}),X=()=>{if(Ze()){ye();const e=location.pathname;if(e.includes(we())||e.includes(V()))return;window.location.replace(V())}else{console.log("开发环境!!!");const e=window.prompt("当前系统处于开发环境,当前登录过期,请输入登录账号","");if(e!==null){const t=window.prompt("请输入登录密码","");(t===null||t=="")&&window.prompt("请输入登录密码",""),Ye({userName:e,password:t})}}},Rn=()=>{window.location.replace(V())},we=()=>L("loginUrl"),V=()=>L("homeUrl"),Q=e=>{var r;const t=(r=localStorage.getItem("ttcGlobalState"))!=null?r:"{}",n=U(U({},JSON.parse(t)),e);localStorage.setItem("ttcGlobalState",JSON.stringify(n))},L=e=>{var n,r;return(r=JSON.parse((n=localStorage.getItem("ttcGlobalState"))!=null?n:"{}")[e])!=null?r:""},Ze=()=>L("environment")==="production",An=(e,t=!0,n)=>j(exports,null,function*(){if(!W()&&t)return X();try{const{data:r}=yield Sn(n),s=r.filter(c=>c.routeTag.includes(e)),i=s.filter(c=>c.routeType==="VIEW"),o=s.filter(c=>c.routeType==="BTN");return sessionStorage.setItem("ttcUserBtnList",JSON.stringify(o.map(c=>c.routeTag))),{userMenuList:i,userBtnList:o}}catch(r){}}),Tn=(e,t,n)=>{let r=[];return e.forEach(s=>{const i=`/src/views${s.routeView}/config.ts`,o=`/src/views${s.routeView}/index.vue`;if(t[o]&&n[i]){const c=n[i],l={path:s.routeView,name:s.routeView.split("/")[1],meta:{title:c.title,icon:c.icon},component:t[o]};r.push(l)}}),r},et=e=>{var n;if(!e)return!1;const t=(n=sessionStorage.getItem("ttcUserBtnList"))!=null?n:"[]";return JSON.parse(t).includes(e)},Nn=Object.freeze(Object.defineProperty({__proto__:null,autoLogin:Ye,getHomeUrl:V,getLoginUrl:we,getSystemConfig:L,getToken:W,getUserInfo:gn,getUserIsHaveBtnPower:et,getUserPermissions:An,getUserRouteList:On,getUserRouter:Tn,isProduction:Ze,jumpToHome:Rn,jumpToLogin:X,removeToken:ye,setSystemConfig:Q},Symbol.toStringTag,{value:"Module"}));let tt;const Pn={lock:!0,text:"加载中...",fullscreen:!0,background:"rgba(0, 0, 0, 0.6)"},Cn=()=>{tt=S.ElLoading.service(Pn)},xn=()=>{tt.close()};let B=0;const Ln=()=>{B===0&&Cn(),B++},Ue=()=>{B<=0||(B--,B===0&&xn())};var ce=(e=>(e[e.SUCCESS=200]="SUCCESS",e[e.ERROR=500]="ERROR",e[e.OVERDUE=401]="OVERDUE",e[e.TIMEOUT=3e4]="TIMEOUT",e))(ce||{});const Un={timeout:3e4,withCredentials:!0},_n=(e,t)=>{switch(e){case 400:S.ElMessage.error(t||"请求失败!请您稍后重试");break;case 401:location.href.includes(we())||(S.ElMessage.error(t||"登录失效!请您重新登录"),X());break;case 403:S.ElMessage.error(t||"当前账号无权限访问!");break;case 404:S.ElMessage.error("你所访问的资源不存在!");break;case 405:S.ElMessage.error(t||"请求方式错误!请您稍后重试");break;case 408:S.ElMessage.error(t||"请求超时!请您稍后重试");break;case 500:S.ElMessage.error(t||"服务异常!");break;case 502:S.ElMessage.error("网关错误!");break;case 503:S.ElMessage.error("服务不可用!");break;case 504:S.ElMessage.error("网关超时!");break;default:S.ElMessage.error("请求失败!")}};class Bn{constructor(t){be(this,"service");this.service=y.create(t),this.setupInterceptors()}setupInterceptors(){this.service.interceptors.request.use(t=>{var n;return(n=t.headers)!=null&&n.noLoading||Ln(),t.headers.token=W(),t},t=>Promise.reject(t)),this.service.interceptors.response.use(t=>{const{data:n}=t;return Ue(),n.code==ce.OVERDUE?this.handleOverdueResponse(n):n.code!==ce.SUCCESS&&this.handleErrorResponse(n),n},t=>(Ue(),t.message.includes("timeout")?S.ElMessage.error("请求超时!请稍后重试"):t.message.includes("Network Error")&&S.ElMessage.error("网络错误!请稍后重试"),t.response&&_n(t.response.status),window.navigator.onLine||S.ElNotification({title:"提示",message:"当前网络似乎开小差了",type:"warning",duration:5e3}),Promise.reject(t)))}handleOverdueResponse(t){return ye(),X(),S.ElNotification({title:"登录过期提醒",message:t.resultMsg||"当前登录失效",type:"warning",duration:5e3}),Promise.reject(t)}handleErrorResponse(t){return S.ElMessage.error(t.resultMsg),Promise.reject(t)}get(t,n,r={}){return this.service.get(t,U({params:n},r))}post(t,n,r={}){return this.service.post(t,n,r)}put(t,n,r={}){return this.service.put(t,n,r)}delete(t,n,r={}){return this.service.delete(t,U({params:n},r))}}const Y=new Bn(Un);exports.URL=Ee;exports.getSystemConfig=L;exports.getUserIsHaveBtnPower=et;exports.http=Y;exports.index=Nn;exports.setSystemConfig=Q;
|
package/lib/index.cjs7.js.gz
CHANGED
|
Binary file
|
package/lib/index.es.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { y as
|
|
3
|
-
import { b as
|
|
4
|
-
import { B as
|
|
1
|
+
import { u as p } from "./index.es3.js";
|
|
2
|
+
import { y as x } from "./index.es4.js";
|
|
3
|
+
import { b as n } from "./index.es5.js";
|
|
4
|
+
import { B as y, v as l, s as c, t as B, w as b, y as d } from "./index.es2.js";
|
|
5
5
|
import "./index.es9.js";
|
|
6
|
-
import { u as
|
|
6
|
+
import { u as v } from "./index.es6.js";
|
|
7
7
|
import "./index.es7.js";
|
|
8
|
-
import "
|
|
8
|
+
import "element-plus";
|
|
9
9
|
import "./index.es8.js";
|
|
10
|
+
import "vue";
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
y as BC,
|
|
13
|
+
n as api,
|
|
14
|
+
l as components,
|
|
15
|
+
c as default,
|
|
16
|
+
B as theme,
|
|
17
|
+
b as translate,
|
|
18
|
+
v as useTime,
|
|
19
|
+
p as utils,
|
|
20
|
+
x as yxIcon,
|
|
21
|
+
d as yxi18n
|
|
21
22
|
};
|