yxuse 3.0.39 → 3.0.41
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 +9 -10
- package/lib/components.cjs.js +1 -1
- package/lib/components.es.js +11 -18
- package/lib/directives.cjs.js +1 -1
- package/lib/directives.es.js +2 -4
- package/lib/hooks.cjs.js +1 -1
- package/lib/hooks.es.js +2 -3
- package/lib/index.cjs.js +1 -1
- package/lib/index.cjs10.js +1 -1
- package/lib/index.cjs11.js +1 -3
- package/lib/index.cjs11.js.gz +0 -0
- package/lib/index.cjs12.js +1 -1
- package/lib/index.cjs13.js +1 -1
- package/lib/index.cjs2.js +1 -1
- package/lib/index.cjs3.js +1 -1
- package/lib/index.cjs4.js +1 -1
- package/lib/index.cjs5.js +8 -28
- package/lib/index.cjs5.js.gz +0 -0
- package/lib/index.cjs6.js +1 -1
- package/lib/index.cjs6.js.gz +0 -0
- package/lib/index.cjs7.js +1 -1
- package/lib/index.cjs9.js +1 -1
- package/lib/index.es.js +43 -44
- package/lib/index.es10.js +236 -246
- package/lib/index.es10.js.gz +0 -0
- package/lib/index.es11.js +1832 -1148
- package/lib/index.es11.js.gz +0 -0
- package/lib/index.es12.js +176 -103
- package/lib/index.es13.js +15 -12
- package/lib/index.es2.js +13 -13
- package/lib/index.es3.js +58 -40
- package/lib/index.es4.js +47 -37
- package/lib/index.es5.js +9647 -5958
- package/lib/index.es5.js.gz +0 -0
- package/lib/index.es6.js +805 -620
- package/lib/index.es6.js.gz +0 -0
- package/lib/index.es7.js +21 -17
- package/lib/index.es8.js +4 -4
- package/lib/index.es9.js +9 -7
- package/lib/style.css +1 -1
- package/lib/style.css.gz +0 -0
- package/lib/theme.cjs.js +1 -1
- package/lib/theme.es.js +11 -13
- package/lib/translate.cjs.js +1 -1
- package/lib/translate.es.js +6 -9
- package/lib/utils.cjs.js +1 -1
- package/lib/utils.es.js +11 -12
- package/lib/yxIcon.cjs.js +1 -1
- package/lib/yxIcon.es.js +2 -2
- package/package.json +3 -2
- package/lib/style.cjs.js +0 -1
- package/lib/style.es.js +0 -1
package/lib/api.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs11.js"),t=require("./index.cjs13.js"),s=require("./index.cjs4.js");exports.auth=e.index,exports.assets=t.index,exports.getCommentUntreatedCount=s.getCommentUntreatedCount,exports.getUserSelectAnteList=s.getUserSelectAnteList,exports.getUserSelectSatelliteList=s.getUserSelectSatelliteList,exports.getUserThemeList=s.getUserThemeList;
|
package/lib/api.es.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { i
|
|
2
|
-
import { i as
|
|
3
|
-
import { g
|
|
4
|
-
import "element-plus";
|
|
1
|
+
import { i } from "./index.es11.js";
|
|
2
|
+
import { i as i2 } from "./index.es13.js";
|
|
3
|
+
import { g, d, c, b } from "./index.es4.js";
|
|
5
4
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
i2 as assets,
|
|
6
|
+
i as auth,
|
|
7
|
+
g as getCommentUntreatedCount,
|
|
8
|
+
d as getUserSelectAnteList,
|
|
9
|
+
c as getUserSelectSatelliteList,
|
|
10
|
+
b as getUserThemeList
|
|
12
11
|
};
|
package/lib/components.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs6.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs6.js"),o=require("./index.cjs5.js");exports.Update=e.Update,exports.YxDialog=e._sfc_main,exports.YxForm=e.form,exports.YxFormV2=e._sfc_main$3,exports.YxIcon=e.index$1,exports.YxSearchForm=e.index,exports.YxTable=e._sfc_main$1,exports.YxUpload=e._sfc_main$2,exports.Toolbar=o.Toolbar;
|
package/lib/components.es.js
CHANGED
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
import { U
|
|
2
|
-
import { T
|
|
3
|
-
import "vue";
|
|
4
|
-
import "./index.es11.js";
|
|
5
|
-
import "element-plus";
|
|
6
|
-
import "./index.es13.js";
|
|
7
|
-
import "./index.es4.js";
|
|
8
|
-
import "./index.es12.js";
|
|
9
|
-
import "./index.es10.js";
|
|
1
|
+
import { U, _, f, e, b, i, a, d } from "./index.es6.js";
|
|
2
|
+
import { T } from "./index.es5.js";
|
|
10
3
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
4
|
+
T as Toolbar,
|
|
5
|
+
U as Update,
|
|
6
|
+
_ as YxDialog,
|
|
7
|
+
f as YxForm,
|
|
8
|
+
e as YxFormV2,
|
|
9
|
+
b as YxIcon,
|
|
10
|
+
i as YxSearchForm,
|
|
11
|
+
a as YxTable,
|
|
12
|
+
d as YxUpload
|
|
20
13
|
};
|
package/lib/directives.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs7.js");
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs7.js");exports.default=e.directives$1;
|
package/lib/directives.es.js
CHANGED
package/lib/hooks.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs10.js");
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs10.js");exports.useTime=e.useTime;
|
package/lib/hooks.es.js
CHANGED
package/lib/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs2.js"),s=require("./index.cjs3.js"),t=require("./index.cjs4.js"),r=require("./index.cjs5.js"),i=require("./index.cjs6.js"),o=require("./index.cjs7.js"),n=require("./index.cjs8.js"),p=require("./index.cjs9.js"),x=require("./index.cjs10.js"),u={install:e=>{e.config.globalProperties.$yx18n=e=>r.getWordByYxI18nThesaurus(e)}},c=Object.freeze(Object.defineProperty({__proto__:null,default:u},Symbol.toStringTag,{value:"Module"})),a={utils:e.utils2,api:t.api2,app:p.app,theme:r.theme2,components:i.components2,directives:o.directives,BC:r.BC,translate:r.translate2,yxi18n:c,yxHooks:n.yxHooks,yxIcon:s.yxIcon2};exports.utils=e.utils2,exports.yxIcon=s.yxIcon2,exports.api=t.api2,exports.BC=r.BC$1,exports.theme=r.theme2,exports.translate=r.translate2,exports.components=i.components2,exports.isWebApp=p.isWebApp,exports.useTime=x.useTime,exports.default=a,exports.yxi18n=c;
|
package/lib/index.cjs10.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("vue");var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n={exports:{}};const s=r(n.exports=function(){var t=1e3,e=6e4,r=36e5,n="millisecond",s="second",i="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,y={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(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},M=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},v={s:M,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),s=r%60;return(e<=0?"+":"-")+M(n,2,"0")+":"+M(s,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),s=e.clone().add(n,c),i=r-s<0,u=e.clone().add(n+(i?-1:1),c);return+(-(n+(r-s)/(i?s-u:u-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:i,s:s,ms:n,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",p={};p[g]=y;var D="$isDayjsObject",w=function(t){return t instanceof _||!(!t||!t[D])},S=function t(e,r,n){var s;if(!e)return g;if("string"==typeof e){var i=e.toLowerCase();p[i]&&(s=i),r&&(p[i]=r,s=i);var u=e.split("-");if(!s&&u.length>1)return t(u[0])}else{var a=e.name;p[a]=e,s=a}return!n&&s&&(g=s),s||!n&&g},b=function(t,e){if(w(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new _(r)},O=v;O.l=S,O.i=w,O.w=function(t,e){return b(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function y(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[D]=!0}var M=y.prototype;return M.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match($);if(n){var s=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)}(t),this.init()},M.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()},M.$utils=function(){return O},M.isValid=function(){return!(this.$d.toString()===l)},M.isSame=function(t,e){var r=b(t);return this.startOf(e)<=r&&r<=this.endOf(e)},M.isAfter=function(t,e){return b(t)<this.startOf(e)},M.isBefore=function(t,e){return this.endOf(e)<b(t)},M.$g=function(t,e,r){return O.u(t)?this[e]:this.set(r,t)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(t,e){var r=this,n=!!O.u(e)||e,f=O.p(t),l=function(t,e){var s=O.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?s:s.endOf(a)},$=function(t,e){return O.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},m=this.$W,y=this.$M,M=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return n?l(1,0):l(31,11);case c:return n?l(1,y):l(0,y+1);case o:var g=this.$locale().weekStart||0,p=(m<g?m+7:m)-g;return l(n?M-p:M+(6-p),y);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case i:return $(v+"Seconds",2);case s:return $(v+"Milliseconds",3);default:return this.clone()}},M.endOf=function(t){return this.startOf(t,!1)},M.$set=function(t,e){var r,o=O.p(t),f="set"+(this.$u?"UTC":""),l=(r={},r[a]=f+"Date",r[d]=f+"Date",r[c]=f+"Month",r[h]=f+"FullYear",r[u]=f+"Hours",r[i]=f+"Minutes",r[s]=f+"Seconds",r[n]=f+"Milliseconds",r)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var m=this.clone().set(d,1);m.$d[l]($),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},M.set=function(t,e){return this.clone().$set(t,e)},M.get=function(t){return this[O.p(t)]()},M.add=function(n,f){var d,l=this;n=Number(n);var $=O.p(f),m=function(t){var e=b(l);return O.w(e.date(e.date()+Math.round(t*n)),l)};if($===c)return this.set(c,this.$M+n);if($===h)return this.set(h,this.$y+n);if($===a)return m(1);if($===o)return m(7);var y=(d={},d[i]=e,d[u]=r,d[s]=t,d)[$]||1,M=this.$d.getTime()+n*y;return O.w(M,this)},M.subtract=function(t,e){return this.add(-1*t,e)},M.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||l;var n=t||"YYYY-MM-DDTHH:mm:ssZ",s=O.z(this),i=this.$H,u=this.$m,a=this.$M,o=r.weekdays,c=r.months,f=r.meridiem,h=function(t,r,s,i){return t&&(t[r]||t(e,n))||s[r].slice(0,i)},d=function(t){return O.s(i%12||12,t,"0")},$=f||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(m,(function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return O.s(e.$y,4,"0");case"M":return a+1;case"MM":return O.s(a+1,2,"0");case"MMM":return h(r.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return O.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(r.weekdaysMin,e.$W,o,2);case"ddd":return h(r.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(i);case"HH":return O.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(i,u,!0);case"A":return $(i,u,!1);case"m":return String(u);case"mm":return O.s(u,2,"0");case"s":return String(e.$s);case"ss":return O.s(e.$s,2,"0");case"SSS":return O.s(e.$ms,3,"0");case"Z":return s}return null}(t)||s.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(n,d,l){var $,m=this,y=O.p(d),M=b(n),v=(M.utcOffset()-this.utcOffset())*e,g=this-M,p=function(){return O.m(m,M)};switch(y){case h:$=p()/12;break;case c:$=p();break;case f:$=p()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/r;break;case i:$=g/e;break;case s:$=g/t;break;default:$=g}return l?$:O.a($)},M.daysInMonth=function(){return this.endOf(c).$D},M.$locale=function(){return p[this.$L]},M.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=S(t,e,!0);return n&&(r.$L=n),r},M.clone=function(){return O.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},y}(),T=_.prototype;return b.prototype=T,[["$ms",n],["$s",s],["$m",i],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),b.extend=function(t,e){return t.$i||(t(e,_,b),t.$i=!0),b},b.locale=S,b.isDayjs=w,b.unix=function(t){return b(1e3*t)},b.en=p[g],b.Ls=p,b.p={},b}()),i=t.ref("");let u;exports.commonjsGlobal=e,exports.getDefaultExportFromCjs=r,exports.useTime=()=>{const t=()=>{u=setTimeout((()=>{i.value=s().format("YYYY-MM-DD HH:mm:ss"),u&&clearTimeout(u),t()}),1e3)};return t(),{time:i}};
|
package/lib/index.cjs11.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
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,_=(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 ee=(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 Ue(e,t){return function(){return e.apply(t,arguments)}}const{toString:_e}=Object.prototype,{getPrototypeOf:le}=Object,fe=(e=>t=>{const n=_e.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),A=e=>(e=e.toLowerCase(),t=>fe(t)===e),G=e=>t=>typeof t===e,{isArray:x}=Array,D=G("undefined");function it(e){return e!==null&&!D(e)&&e.constructor!==null&&!D(e.constructor)&&N(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Be=A("ArrayBuffer");function at(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Be(e.buffer),t}const ct=G("string"),N=G("function"),Fe=G("number"),de=e=>e!==null&&typeof e=="object",ut=e=>e===!0||e===!1,H=e=>{if(fe(e)!=="object")return!1;const t=le(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=>de(e)&&N(e.pipe),mt=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||_e.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 k(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 De(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 ke=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Me=e=>!D(e)&&e!==ke;function oe(){const{caseless:e}=Me(this)&&this||{},t={},n=(r,s)=>{const i=e&&De(t,s)||s;H(t[i])&&H(r)?t[i]=oe(t[i],r):H(r)?t[i]=oe({},r):x(r)?t[i]=r.slice():t[i]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&k(arguments[r],n);return t}const wt=(e,t,n,{allOwnKeys:r}={})=>(k(t,(s,i)=>{n&&N(s)?e[i]=Ue(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&&le(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Rt=(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},Ot=e=>{if(!e)return null;if(x(e))return e;let t=e.length;if(!Fe(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"&&le(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}),be=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Lt=A("RegExp"),Ie=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};k(n,(s,i)=>{t(s,i,e)!==!1&&(r[i]=s)}),Object.defineProperties(e,r)},xt=e=>{Ie(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),te="abcdefghijklmnopqrstuvwxyz",ge="0123456789",je={DIGIT:ge,ALPHA:te,ALPHA_DIGIT:te+te.toUpperCase()+ge},Ft=(e=16,t=je.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(de(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const i=x(r)?[]:{};return k(r,(o,c)=>{const l=n(o,s+1);!D(l)&&(i[c]=l)}),t[s]=void 0,i}}return r};return n(e,0)},a={isArray:x,isArrayBuffer:Be,isBuffer:it,isFormData:mt,isArrayBufferView:at,isString:ct,isNumber:Fe,isBoolean:ut,isObject:de,isPlainObject:H,isUndefined:D,isDate:lt,isFile:ft,isBlob:dt,isRegExp:Lt,isFunction:N,isStream:ht,isURLSearchParams:Et,isTypedArray:At,isFileList:pt,forEach:k,merge:oe,extend:wt,trim:yt,stripBOM:St,inherits:bt,toFlatObject:gt,kindOf:fe,kindOfTest:A,endsWith:Rt,toArray:Ot,forEachEntry:Tt,matchAll:Nt,isHTMLForm:Pt,hasOwnProperty:be,hasOwnProp:be,reduceDescriptors:Ie,freezeMethods:xt,toObjectSet:Ut,toCamelCase:Ct,noop:_t,toFiniteNumber:Bt,findKey:De,global:ke,isContextDefined:Me,ALPHABET:je,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 He=m.prototype,qe={};["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=>{qe[e]={value:e}});Object.defineProperties(m,qe);Object.defineProperty(He,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,i)=>{const o=Object.create(He);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 Mt=null;function ie(e){return a.isPlainObject(e)||a.isArray(e)}function Je(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=Je(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function It(e){return a.isArray(e)&&!e.some(ie)}const jt=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,R){return!a.isUndefined(R[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,R){let b=d;if(d&&!R&&typeof d=="object"){if(a.endsWith(h,"{}"))h=r?h:h.slice(0,-2),d=JSON.stringify(d);else if(a.isArray(d)&&It(d)||(a.isFileList(d)||a.endsWith(h,"[]"))&&(b=a.toArray(d)))return h=Je(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 ie(d)?!0:(t.append(Re(R,h,i),u(d)),!1)}const p=[],w=Object.assign(jt,{defaultVisitor:f,convertValue:u,isVisitable:ie});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 Oe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function pe(e,t){this._pairs=[],e&&$(e,this,t)}const ze=pe.prototype;ze.append=function(t,n){this._pairs.push([t,n])};ze.toString=function(t){const n=t?function(r){return t.call(this,r,Oe)}:Oe;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 Ve(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 pe(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ae{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 Ge={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qt=typeof URLSearchParams!="undefined"?URLSearchParams:pe,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 $e(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:Ge,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($e(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 he=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},Te=Symbol("internals");function B(e){return e&&String(e).trim().toLowerCase()}function q(e){return e===!1||e==null?e:a.isArray(e)?e.map(q):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 ne(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=B(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]=q(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=B(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=B(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ne(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=B(o),o){const c=a.findKey(r,o);c&&(!n||ne(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||ne(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]=q(s),delete n[i];return}const c=t?en(i):String(i).trim();c!==i&&delete n[i],n[c]=q(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[Te]=this[Te]={accessors:{}}).accessors,s=this.prototype;function i(o){const c=B(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 O=K;function re(e,t){const n=this||he,r=t||n,s=O.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 ve(e){return!!(e&&e.__CANCEL__)}function M(e,t,n){m.call(this,e==null?"canceled":e,m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(M,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 Ke(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 Ne(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=O.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=Ke(e.baseURL,e.url);u.open(e.method.toUpperCase(),Ve(f,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function p(){if(!u)return;const E=O.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||Ge;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",Ne(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Ne(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=E=>{u&&(r(!E||E.type?new M(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)})},J={http:Mt,xhr:fn};a.forEach(J,(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)?J[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(J,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:J};function se(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new M(null,e)}function Pe(e){return se(e),e.headers=O.from(e.headers),e.data=re.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),dn.getAdapter(e.adapter||he.adapter)(e).then(function(r){return se(e),r.data=re.call(e,e.transformResponse,r),r.headers=O.from(r.headers),r},function(r){return ve(r)||(se(e),r&&r.response&&(r.response.data=re.call(e,e.transformResponse,r.response),r.response.headers=O.from(r.response.headers))),Promise.reject(r)})}const Ce=e=>e instanceof O?e.toJSON():e;function L(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(Ce(u),Ce(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 We="1.3.3",me={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{me[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Le={};me.transitional=function(t,n,r){function s(i,o){return"[Axios v"+We+"] 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 ae={assertOptions:pn,validators:me},T=ae.validators;class V{constructor(t){this.defaults=t,this.interceptors={request:new Ae,response:new Ae}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=L(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&ae.assertOptions(r,{silentJSONParsing:T.transitional(T.boolean),forcedJSONParsing:T.transitional(T.boolean),clarifyTimeoutError:T.transitional(T.boolean)},!1),s!==void 0&&ae.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=O.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=[Pe.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(R){h.call(this,R);break}}try{f=Pe.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=L(this.defaults,t);const n=Ke(t.baseURL,t.url);return Ve(n,t.params,t.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){V.prototype[t]=function(n,r){return this.request(L(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(L(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}V.prototype[t]=n(),V.prototype[t+"Form"]=n(!0)});const z=V;class Ee{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 M(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 Ee(function(s){t=s}),cancel:t}}}const hn=Ee;function mn(e){return function(n){return e.apply(null,n)}}function En(e){return a.isObject(e)&&e.isAxiosError===!0}const ce={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(ce).forEach(([e,t])=>{ce[t]=e});const yn=ce;function Xe(e){const t=new z(e),n=Ue(z.prototype.request,t);return a.extend(n,z.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Xe(L(e,s))},n}const y=Xe(he);y.Axios=z;y.CanceledError=M;y.CancelToken=hn;y.isCancel=ve;y.VERSION=We;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=L;y.AxiosHeaders=O;y.formToJSON=e=>$e(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"},ye={ttc:wn},Sn="THEME",bn="LANG",gn=(e="ttc")=>Y.get(`${ye[e].INTEGRATED_BASE_URL}/account/auth/route/list`),Rn=(e="ttc")=>Y.get(`${ye[e].INTEGRATED_BASE_URL}/account/home/menu`),we=(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},Qe=(r,...s)=>j(exports,[r,...s],function*({userName:e,password:t},n="ttc"){const i=U("loginApiUrl"),{data:o}=yield Y.post(i,{userName:e,password:t});o.tokenValue&&S.ElMessage.success("登录成功"),Q({token:o.tokenValue,userInfo:o})}),On=(e="ttc")=>{var s;const t=`${e}GlobalState`,n=(s=localStorage.getItem(t))!=null?s:"{}";return JSON.parse(n)?JSON.parse(n).userInfo:null},An=()=>j(exports,null,function*(){return W()?yield Rn():[]}),X=()=>{if(Ze()){we();const e=location.pathname;if(console.log("跳转至登录页",e,e.includes(C())),e.includes(C()))return;console.log("跳转至登录页",C()),location.replace(C())}else{console.log("开发环境!!!");const e=window.prompt("当前系统处于开发环境,当前登录过期,请输入登录账号","");if(e!==null){const t=window.prompt("请输入登录密码","");(t===null||t=="")&&window.prompt("请输入登录密码",""),Qe({userName:e,password:t})}}},Tn=()=>{window.location.replace(Ye())},C=()=>U("loginUrl"),Ye=()=>U("homeUrl"),Q=e=>{var r;const t=(r=localStorage.getItem("ttcGlobalState"))!=null?r:"{}",n=_(_({},JSON.parse(t)),e);localStorage.setItem("ttcGlobalState",JSON.stringify(n))},U=e=>{var n,r;return(r=JSON.parse((n=localStorage.getItem("ttcGlobalState"))!=null?n:"{}")[e])!=null?r:""},Ze=()=>U("environment")==="production",Nn=(e,t=!0,n)=>j(exports,null,function*(){if(!W()&&t)return X();try{const{data:r}=yield gn(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){}}),Pn=(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)},Cn=Object.freeze(Object.defineProperty({__proto__:null,autoLogin:Qe,getHomeUrl:Ye,getLoginUrl:C,getSystemConfig:U,getToken:W,getUserInfo:On,getUserIsHaveBtnPower:et,getUserPermissions:Nn,getUserRouteList:An,getUserRouter:Pn,isProduction:Ze,jumpToHome:Tn,jumpToLogin:X,removeToken:we,setSystemConfig:Q},Symbol.toStringTag,{value:"Module"}));let tt;const Ln={lock:!0,text:"加载中...",fullscreen:!0,background:"rgba(0, 0, 0, 0.6)"},xn=()=>{tt=S.ElLoading.service(Ln)},Un=()=>{tt.close()};let F=0;const _n=()=>{F===0&&xn(),F++},xe=()=>{F<=0||(F--,F===0&&Un())};var ue=(e=>(e[e.SUCCESS=200]="SUCCESS",e[e.ERROR=500]="ERROR",e[e.OVERDUE=401]="OVERDUE",e[e.TIMEOUT=3e4]="TIMEOUT",e))(ue||{});const Bn={timeout:3e4,withCredentials:!0},Fn=(e,t)=>{switch(e){case 400:S.ElMessage.error(t||"请求失败!请您稍后重试");break;case 401:location.href.includes(C())||(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 Dn{constructor(t){ee(this,"service");ee(this,"customResMap");this.service=y.create(t),this.setupInterceptors(),this.customResMap={}}setupInterceptors(){this.service.interceptors.request.use(t=>{var n;return(n=t.headers)!=null&&n.noLoading||_n(),t.headers.token=W(),t!=null&&t.customResHandler&&(t!=null&&t.url)&&(this.customResMap[t==null?void 0:t.url]=t.customResHandler),t},t=>Promise.reject(t)),this.service.interceptors.response.use(t=>{const{data:n,config:r}=t;return xe(),r.url&&this.customResMap[r.url]?this.customResMap[r.url](n):(n.code==ue.OVERDUE?this.handleOverdueResponse(n):n.code!==ue.SUCCESS&&this.handleErrorResponse(n),n)},t=>{xe();const{config:n}=t;return n!=null&&n.url&&this.customResMap[n.url]&&this.customResMap[n.url](t.response),t.message.includes("timeout")?S.ElMessage.error("请求超时!请稍后重试"):t.message.includes("Network Error")&&S.ElMessage.error("网络错误!请稍后重试"),t.response&&Fn(t.response.status),window.navigator.onLine||S.ElNotification({title:"提示",message:"当前网络似乎开小差了",type:"warning",duration:5e3}),Promise.reject(t)})}handleOverdueResponse(t){return we(),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,_({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,_({params:n},r))}}const Y=new Dn(Bn);exports.BC_LANG_NAME=bn;exports.BC_THEME_NAME=Sn;exports.URL=ye;exports.getSystemConfig=U;exports.getUserIsHaveBtnPower=et;exports.http=Y;exports.index=Cn;exports.setSystemConfig=Q;
|
|
1
|
+
"use strict";var e=Object.defineProperty,t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,o=(t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,s=(e,s)=>{for(var i in s||(s={}))r.call(s,i)&&o(e,i,s[i]);if(t)for(var i of t(s))n.call(s,i)&&o(e,i,s[i]);return e},i=(e,t,r)=>o(e,"symbol"!=typeof t?t+"":t,r),a=(e,t,r)=>new Promise(((n,o)=>{var s=e=>{try{a(r.next(e))}catch(t){o(t)}},i=e=>{try{a(r.throw(e))}catch(t){o(t)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(s,i);a((r=r.apply(e,t)).next())}));const c=require("element-plus");function u(e,t){return function(){return e.apply(t,arguments)}}const{toString:l}=Object.prototype,{getPrototypeOf:f}=Object,d=(e=>t=>{const r=l.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),p=e=>(e=e.toLowerCase(),t=>d(t)===e),h=e=>t=>typeof t===e,{isArray:m}=Array,g=h("undefined");const y=p("ArrayBuffer");const E=h("string"),b=h("function"),w=h("number"),O=e=>null!==e&&"object"==typeof e,S=e=>{if("object"!==d(e))return!1;const t=f(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},R=p("Date"),v=p("File"),A=p("Blob"),T=p("FileList"),N=p("URLSearchParams");function j(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),m(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(n=0;n<s;n++)i=o[n],t.call(null,e[i],i,e)}}function x(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,P=e=>!g(e)&&e!==C;const U=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&f(Uint8Array)),L=p("HTMLFormElement"),_=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),B=p("RegExp"),k=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};j(r,((r,o)=>{!1!==t(r,o,e)&&(n[o]=r)})),Object.defineProperties(e,n)},D="abcdefghijklmnopqrstuvwxyz",F="0123456789",M={DIGIT:F,ALPHA:D,ALPHA_DIGIT:D+D.toUpperCase()+F};const I={isArray:m,isArrayBuffer:y,isBuffer:function(e){return null!==e&&!g(e)&&null!==e.constructor&&!g(e.constructor)&&b(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{const t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||l.call(e)===t||b(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&y(e.buffer),t},isString:E,isNumber:w,isBoolean:e=>!0===e||!1===e,isObject:O,isPlainObject:S,isUndefined:g,isDate:R,isFile:v,isBlob:A,isRegExp:B,isFunction:b,isStream:e=>O(e)&&b(e.pipe),isURLSearchParams:N,isTypedArray:U,isFileList:T,forEach:j,merge:function e(){const{caseless:t}=P(this)&&this||{},r={},n=(n,o)=>{const s=t&&x(r,o)||o;S(r[s])&&S(n)?r[s]=e(r[s],n):S(n)?r[s]=e({},n):m(n)?r[s]=n.slice():r[s]=n};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&j(arguments[o],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(j(t,((t,n)=>{r&&b(t)?e[n]=u(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,s,i;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],n&&!n(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==r&&f(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:d,kindOfTest:p,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(m(e))return e;let t=e.length;if(!w(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:L,hasOwnProperty:_,hasOwnProp:_,reduceDescriptors:k,freezeMethods:e=>{k(e,((t,r)=>{if(b(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];b(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return m(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:x,global:C,isContextDefined:P,ALPHABET:M,generateString:(e=16,t=M.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&b(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(O(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=m(e)?[]:{};return j(e,((e,t)=>{const s=r(e,n+1);!g(s)&&(o[t]=s)})),t[n]=void 0,o}}return e};return r(e,0)}};function q(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}I.inherits(q,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:I.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const H=q.prototype,J={};["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=>{J[e]={value:e}})),Object.defineProperties(q,J),Object.defineProperty(H,"isAxiosError",{value:!0}),q.from=(e,t,r,n,o,s)=>{const i=Object.create(H);return I.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),q.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};function z(e){return I.isPlainObject(e)||I.isArray(e)}function V(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function G(e,t,r){return e?e.concat(t).map((function(e,t){return e=V(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const W=I.toFlatObject(I,{},null,(function(e){return/^is[A-Z]/.test(e)}));function $(e,t,r){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=I.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!I.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,s=r.dots,i=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(I.isDate(e))return e.toISOString();if(!a&&I.isBlob(e))throw new q("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(e)||I.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(I.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(I.isArray(e)&&function(e){return I.isArray(e)&&!e.some(z)}(e)||(I.isFileList(e)||I.endsWith(r,"[]"))&&(a=I.toArray(e)))return r=V(r),a.forEach((function(e,n){!I.isUndefined(e)&&null!==e&&t.append(!0===i?G([r],n,s):null===i?r:r+"[]",c(e))})),!1;return!!z(e)||(t.append(G(o,r,s),c(e)),!1)}const l=[],f=Object.assign(W,{defaultVisitor:u,convertValue:c,isVisitable:z});if(!I.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!I.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),I.forEach(r,(function(r,s){!0===(!(I.isUndefined(r)||null===r)&&o.call(t,r,I.isString(s)?s.trim():s,n,f))&&e(r,n?n.concat(s):[s])})),l.pop()}}(e),t}function K(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function X(e,t){this._pairs=[],e&&$(e,this,t)}const Q=X.prototype;function Z(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Y(e,t,r){if(!t)return e;const n=r&&r.encode||Z,o=r&&r.serialize;let s;if(s=o?o(t,r):I.isURLSearchParams(t)?t.toString():new X(t,r).toString(n),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}Q.append=function(e,t){this._pairs.push([e,t])},Q.toString=function(e){const t=e?function(t){return e.call(this,t,K)}:K;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class ee{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){I.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const te={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},re="undefined"!=typeof URLSearchParams?URLSearchParams:X,ne="undefined"!=typeof FormData?FormData:null,oe=(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),se="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ie={isBrowser:!0,classes:{URLSearchParams:re,FormData:ne,Blob:Blob},isStandardBrowserEnv:oe,isStandardBrowserWebWorkerEnv:se,protocols:["http","https","file","blob","url","data"]};function ae(e){function t(e,r,n,o){let s=e[o++];const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&I.isArray(n)?n.length:s,a)return I.hasOwnProp(n,s)?n[s]=[n[s],r]:n[s]=r,!i;n[s]&&I.isObject(n[s])||(n[s]=[]);return t(e,r,n[s],o)&&I.isArray(n[s])&&(n[s]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}(n[s])),!i}if(I.isFormData(e)&&I.isFunction(e.entries)){const r={};return I.forEachEntry(e,((e,n)=>{t(function(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const ce={"Content-Type":void 0};const ue={transitional:te,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=I.isObject(e);o&&I.isHTMLForm(e)&&(e=new FormData(e));if(I.isFormData(e))return n&&n?JSON.stringify(ae(e)):e;if(I.isArrayBuffer(e)||I.isBuffer(e)||I.isStream(e)||I.isFile(e)||I.isBlob(e))return e;if(I.isArrayBufferView(e))return e.buffer;if(I.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return $(e,new ie.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return ie.isNode&&I.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=I.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return $(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(n){if("SyntaxError"!==n.name)throw n}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ue.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&I.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(o){if(r){if("SyntaxError"===o.name)throw q.from(o,q.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ie.classes.FormData,Blob:ie.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};I.forEach(["delete","get","head"],(function(e){ue.headers[e]={}})),I.forEach(["post","put","patch"],(function(e){ue.headers[e]=I.merge(ce)}));const le=I.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"]),fe=Symbol("internals");function de(e){return e&&String(e).trim().toLowerCase()}function pe(e){return!1===e||null==e?e:I.isArray(e)?e.map(pe):String(e)}function he(e,t,r,n,o){return I.isFunction(n)?n.call(this,t,r):(o&&(t=r),I.isString(t)?I.isString(n)?-1!==t.indexOf(n):I.isRegExp(n)?n.test(t):void 0:void 0)}class me{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=de(t);if(!o)throw new Error("header name must be a non-empty string");const s=I.findKey(n,o);(!s||void 0===n[s]||!0===r||void 0===r&&!1!==n[s])&&(n[s||t]=pe(e))}const s=(e,t)=>I.forEach(e,((e,r)=>o(e,r,t)));return I.isPlainObject(e)||e instanceof this.constructor?s(e,t):I.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z]+$/.test(e.trim())?s((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&le[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t):null!=e&&o(t,e,r),this}get(e,t){if(e=de(e)){const r=I.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(I.isFunction(t))return t.call(this,e,r);if(I.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=de(e)){const r=I.findKey(this,e);return!(!r||void 0===this[r]||t&&!he(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=de(e)){const o=I.findKey(r,e);!o||t&&!he(0,r[o],o,t)||(delete r[o],n=!0)}}return I.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!he(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return I.forEach(this,((n,o)=>{const s=I.findKey(r,o);if(s)return t[s]=pe(n),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();i!==o&&delete t[o],t[i]=pe(n),r[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return I.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&I.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[fe]=this[fe]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=de(e);t[n]||(!function(e,t){const r=I.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return I.isArray(e)?e.forEach(n):n(e),this}}function ge(e,t){const r=this||ue,n=t||r,o=me.from(n.headers);let s=n.data;return I.forEach(e,(function(e){s=e.call(r,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function ye(e){return!(!e||!e.__CANCEL__)}function Ee(e,t,r){q.call(this,null==e?"canceled":e,q.ERR_CANCELED,t,r),this.name="CanceledError"}me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),I.freezeMethods(me.prototype),I.freezeMethods(me),I.inherits(Ee,q,{__CANCEL__:!0});const be=ie.isStandardBrowserEnv?function(){return{write:function(e,t,r,n,o,s){const i=[];i.push(e+"="+encodeURIComponent(t)),I.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),I.isString(n)&&i.push("path="+n),I.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function we(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Oe=ie.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=I.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return function(){return!0}}();function Se(e,t){let r=0;const n=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=n[i];o||(o=c),r[s]=a,n[s]=c;let l=i,f=0;for(;l!==s;)f+=r[l++],l%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*f/d):void 0}}(50,250);return o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-r,c=n(a);r=s;const u={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const Re={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){let n=e.data;const o=me.from(e.headers).normalize(),s=e.responseType;let i;function a(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}I.isFormData(n)&&(ie.isStandardBrowserEnv||ie.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+r))}const u=we(e.baseURL,e.url);function l(){if(!c)return;const n=me.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new q("Request failed with status code "+r.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),a()}),(function(e){r(e),a()}),{data:s&&"text"!==s&&"json"!==s?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c}),c=null}if(c.open(e.method.toUpperCase(),Y(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=l:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(l)},c.onabort=function(){c&&(r(new q("Request aborted",q.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new q("Network Error",q.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||te;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new q(t,n.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,c)),c=null},ie.isStandardBrowserEnv){const t=(e.withCredentials||Oe(u))&&e.xsrfCookieName&&be.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===n&&o.setContentType(null),"setRequestHeader"in c&&I.forEach(o.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),I.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&"json"!==s&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",Se(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Se(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{c&&(r(!t||t.type?new Ee(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);f&&-1===ie.protocols.indexOf(f)?r(new q("Unsupported protocol "+f+":",q.ERR_BAD_REQUEST,e)):c.send(n||null)}))}};I.forEach(Re,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}}));const ve=e=>{e=I.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let o=0;o<t&&(r=e[o],!(n=I.isString(r)?Re[r.toLowerCase()]:r));o++);if(!n){if(!1===n)throw new q(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(I.hasOwnProp(Re,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`)}if(!I.isFunction(n))throw new TypeError("adapter is not a function");return n};function Ae(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ee(null,e)}function Te(e){Ae(e),e.headers=me.from(e.headers),e.data=ge.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ve(e.adapter||ue.adapter)(e).then((function(t){return Ae(e),t.data=ge.call(e,e.transformResponse,t),t.headers=me.from(t.headers),t}),(function(t){return ye(t)||(Ae(e),t&&t.response&&(t.response.data=ge.call(e,e.transformResponse,t.response),t.response.headers=me.from(t.response.headers))),Promise.reject(t)}))}const Ne=e=>e instanceof me?e.toJSON():e;function je(e,t){t=t||{};const r={};function n(e,t,r){return I.isPlainObject(e)&&I.isPlainObject(t)?I.merge.call({caseless:r},e,t):I.isPlainObject(t)?I.merge({},t):I.isArray(t)?t.slice():t}function o(e,t,r){return I.isUndefined(t)?I.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function s(e,t){if(!I.isUndefined(t))return n(void 0,t)}function i(e,t){return I.isUndefined(t)?I.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,s){return s in t?n(r,o):s in e?n(void 0,r):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t)=>o(Ne(e),Ne(t),!0)};return I.forEach(Object.keys(e).concat(Object.keys(t)),(function(n){const s=c[n]||o,i=s(e[n],t[n],n);I.isUndefined(i)&&s!==a||(r[n]=i)})),r}const xe="1.3.3",Ce={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ce[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const Pe={};Ce.transitional=function(e,t,r){return(n,o,s)=>{if(!1===e)throw new q(function(e,t){return"[Axios v1.3.3] Transitional option '"+e+"'"+t+(r?". "+r:"")}(o," has been removed"+(t?" in "+t:"")),q.ERR_DEPRECATED);return t&&!Pe[o]&&(Pe[o]=!0),!e||e(n,o,s)}};const Ue={assertOptions:function(e,t,r){if("object"!=typeof e)throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const s=n[o],i=t[s];if(i){const t=e[s],r=void 0===t||i(t,s,e);if(!0!==r)throw new q("option "+s+" must be "+r,q.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new q("Unknown option "+s,q.ERR_BAD_OPTION)}},validators:Ce},Le=Ue.validators;class _e{constructor(e){this.defaults=e,this.interceptors={request:new ee,response:new ee}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=je(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;let s;void 0!==r&&Ue.assertOptions(r,{silentJSONParsing:Le.transitional(Le.boolean),forcedJSONParsing:Le.transitional(Le.boolean),clarifyTimeoutError:Le.transitional(Le.boolean)},!1),void 0!==n&&Ue.assertOptions(n,{encode:Le.function,serialize:Le.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase(),s=o&&I.merge(o.common,o[t.method]),s&&I.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=me.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!a){const e=[Te.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=i.length;let d=t;for(f=0;f<l;){const e=i[f++],t=i[f++];try{d=e(d)}catch(p){t.call(this,p);break}}try{u=Te.call(this,d)}catch(p){return Promise.reject(p)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return Y(we((e=je(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}I.forEach(["delete","get","head","options"],(function(e){_e.prototype[e]=function(t,r){return this.request(je(r||{},{method:e,url:t,data:(r||{}).data}))}})),I.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(je(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}_e.prototype[e]=t(),_e.prototype[e+"Form"]=t(!0)}));class Be{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new Ee(e,n,o),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Be((function(t){e=t})),cancel:e}}}const ke={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ke).forEach((([e,t])=>{ke[t]=e}));const De=function e(t){const r=new _e(t),n=u(_e.prototype.request,r);return I.extend(n,_e.prototype,r,{allOwnKeys:!0}),I.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(je(t,r))},n}(ue);De.Axios=_e,De.CanceledError=Ee,De.CancelToken=Be,De.isCancel=ye,De.VERSION=xe,De.toFormData=$,De.AxiosError=q,De.Cancel=De.CanceledError,De.all=function(e){return Promise.all(e)},De.spread=function(e){return function(t){return e.apply(null,t)}},De.isAxiosError=function(e){return I.isObject(e)&&!0===e.isAxiosError},De.mergeConfig=je,De.AxiosHeaders=me,De.formToJSON=e=>ae(I.isHTMLForm(e)?new FormData(e):e),De.HttpStatusCode=ke,De.default=De;const Fe={ttc:{LOGIN_URL:`${window.location.origin}/ttc/cloud/#/login`,HOME_URL:`${window.location.origin}/ttc/cloud/#/cloud`,INTEGRATED_BASE_URL:"/gateway/integrated-management/api/v1"}},Me=(e="ttc")=>{Ve({token:""})},Ie=(e="ttc")=>{var t;const r=`${e}GlobalState`,n=null!=(t=localStorage.getItem(r))?t:"{}";return JSON.parse(n)?JSON.parse(n).token:null},qe=(e,...t)=>a(exports,[e,...t],(function*({userName:e,password:t},r="ttc"){const n=Ge("loginApiUrl"),{data:o}=yield rt.post(n,{userName:e,password:t});o.tokenValue&&c.ElMessage.success("登录成功"),Ve({token:o.tokenValue,userInfo:o})})),He=()=>{if(We()){Me();if(location.pathname.includes(Je()))return;location.replace(Je())}else{const e=window.prompt("当前系统处于开发环境,当前登录过期,请输入登录账号","");if(null!==e){const t=window.prompt("请输入登录密码","");null!==t&&""!=t||window.prompt("请输入登录密码",""),qe({userName:e,password:t})}}},Je=()=>Ge("loginUrl"),ze=()=>Ge("homeUrl"),Ve=e=>{var t;const r=null!=(t=localStorage.getItem("ttcGlobalState"))?t:"{}",n=s(s({},JSON.parse(r)),e);localStorage.setItem("ttcGlobalState",JSON.stringify(n))},Ge=e=>{var t,r;return null!=(r=JSON.parse(null!=(t=localStorage.getItem("ttcGlobalState"))?t:"{}")[e])?r:""},We=()=>"production"===Ge("environment"),$e=e=>{var t;if(!e)return!1;const r=null!=(t=sessionStorage.getItem("ttcUserBtnList"))?t:"[]";return JSON.parse(r).includes(e)},Ke=Object.freeze(Object.defineProperty({__proto__:null,autoLogin:qe,getHomeUrl:ze,getLoginUrl:Je,getSystemConfig:Ge,getToken:Ie,getUserInfo:(e="ttc")=>{var t;const r=`${e}GlobalState`,n=null!=(t=localStorage.getItem(r))?t:"{}";return JSON.parse(n)?JSON.parse(n).userInfo:null},getUserIsHaveBtnPower:$e,getUserPermissions:(e,t=!0,r)=>a(exports,null,(function*(){if(!Ie()&&t)return He();try{const{data:t}=yield((e="ttc")=>rt.get(`${Fe[e].INTEGRATED_BASE_URL}/account/auth/route/list`))(r),n=t.filter((t=>t.routeTag.includes(e))),o=n.filter((e=>"VIEW"===e.routeType)),s=n.filter((e=>"BTN"===e.routeType));return sessionStorage.setItem("ttcUserBtnList",JSON.stringify(s.map((e=>e.routeTag)))),{userMenuList:o,userBtnList:s}}catch(n){}})),getUserRouteList:()=>a(exports,null,(function*(){if(!Ie())return[];return yield((e="ttc")=>rt.get(`${Fe[e].INTEGRATED_BASE_URL}/account/home/menu`))()})),getUserRouter:(e,t,r)=>{let n=[];return e.forEach((e=>{const o=`/src/views${e.routeView}/config.ts`,s=`/src/views${e.routeView}/index.vue`;if(t[s]&&r[o]){const i=r[o],a={path:e.routeView,name:e.routeView.split("/")[1],meta:{title:i.title,icon:i.icon},component:t[s]};n.push(a)}})),n},isProduction:We,jumpToHome:()=>{window.location.replace(ze())},jumpToLogin:He,removeToken:Me,setSystemConfig:Ve},Symbol.toStringTag,{value:"Module"}));let Xe;const Qe={lock:!0,text:"加载中...",fullscreen:!0,background:"rgba(0, 0, 0, 0.6)"};let Ze=0;const Ye=()=>{0===Ze&&(Xe=c.ElLoading.service(Qe)),Ze++},et=()=>{Ze<=0||(Ze--,0===Ze&&Xe.close())};var tt=(e=>(e[e.SUCCESS=200]="SUCCESS",e[e.ERROR=500]="ERROR",e[e.OVERDUE=401]="OVERDUE",e[e.TIMEOUT=3e4]="TIMEOUT",e))(tt||{});const rt=new class{constructor(e){i(this,"service"),i(this,"customResMap"),this.service=De.create(e),this.setupInterceptors(),this.customResMap={}}setupInterceptors(){this.service.interceptors.request.use((e=>{var t;return(null==(t=e.headers)?void 0:t.noLoading)||Ye(),e.headers.token=Ie(),(null==e?void 0:e.customResHandler)&&(null==e?void 0:e.url)&&(this.customResMap[null==e?void 0:e.url]=e.customResHandler),e}),(e=>Promise.reject(e))),this.service.interceptors.response.use((e=>{const{data:t,config:r}=e;return et(),r.url&&this.customResMap[r.url]?this.customResMap[r.url](t):(t.code==tt.OVERDUE?this.handleOverdueResponse(t):t.code!==tt.SUCCESS&&this.handleErrorResponse(t),t)}),(e=>{et();const{config:t}=e;return(null==t?void 0:t.url)&&this.customResMap[t.url]&&this.customResMap[t.url](e.response),e.message.includes("timeout")?c.ElMessage.error("请求超时!请稍后重试"):e.message.includes("Network Error")&&c.ElMessage.error("网络错误!请稍后重试"),e.response&&(e=>{switch(e){case 400:c.ElMessage.error("请求失败!请您稍后重试");break;case 401:location.href.includes(Je())||(c.ElMessage.error("登录失效!请您重新登录"),He());break;case 403:c.ElMessage.error("当前账号无权限访问!");break;case 404:c.ElMessage.error("你所访问的资源不存在!");break;case 405:c.ElMessage.error("请求方式错误!请您稍后重试");break;case 408:c.ElMessage.error("请求超时!请您稍后重试");break;case 500:c.ElMessage.error("服务异常!");break;case 502:c.ElMessage.error("网关错误!");break;case 503:c.ElMessage.error("服务不可用!");break;case 504:c.ElMessage.error("网关超时!");break;default:c.ElMessage.error("请求失败!")}})(e.response.status),window.navigator.onLine||c.ElNotification({title:"提示",message:"当前网络似乎开小差了",type:"warning",duration:5e3}),Promise.reject(e)}))}handleOverdueResponse(e){return Me(),He(),c.ElNotification({title:"登录过期提醒",message:e.resultMsg||"当前登录失效",type:"warning",duration:5e3}),Promise.reject(e)}handleErrorResponse(e){return c.ElMessage.error(e.resultMsg),Promise.reject(e)}get(e,t,r={}){return this.service.get(e,s({params:t},r))}post(e,t,r={}){return this.service.post(e,t,r)}put(e,t,r={}){return this.service.put(e,t,r)}delete(e,t,r={}){return this.service.delete(e,s({params:t},r))}}({timeout:3e4,withCredentials:!0});exports.BC_LANG_NAME="LANG",exports.BC_THEME_NAME="THEME",exports.URL=Fe,exports.getSystemConfig=Ge,exports.getUserIsHaveBtnPower=$e,exports.http=rt,exports.index=Ke,exports.setSystemConfig=Ve;
|
package/lib/index.cjs11.js.gz
CHANGED
|
Binary file
|
package/lib/index.cjs12.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var s=Object.defineProperty,r=(r,t,e)=>((r,t,e)=>t in r?s(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e)(r,"symbol"!=typeof t?t+"":t,e);const t=s=>{if(4===s.length&&"#"===s[0]){const r=s[1],t=s[2],e=s[3];return`#${r}${r}${t}${t}${e}${e}`}return s};const e=new class{constructor(){r(this,"subscribers"),this.subscribers={}}subscribe(s,r){this.subscribers[s]||(this.subscribers[s]=[]),this.subscribers[s].push(r)}unsubscribe(s,r){const t=this.subscribers[s];if(!r)return this.subscribers[s]=[];if(t){const s=t.indexOf(r);-1!==s&&t.splice(s,1)}}publish(s){const r=this.subscribers[s.type];r&&r.forEach((r=>{r(s.data)}))}};exports.areColorsSimilar=(s,r,t=100)=>{const e=s=>{let r,t,e,n=1;if(s.startsWith("#"))if(3===(s=s.slice(1)).length)r=parseInt(s[0]+s[0],16),t=parseInt(s[1]+s[1],16),e=parseInt(s[2]+s[2],16);else{if(6!==s.length)return null;r=parseInt(s.slice(0,2),16),t=parseInt(s.slice(2,4),16),e=parseInt(s.slice(4,6),16)}else{if(!s.startsWith("rgb"))return null;{const a=s.match(/(\d+(\.\d+)?)/g);r=parseFloat(a[0]),t=parseFloat(a[1]),e=parseFloat(a[2]),a.length>3&&(n=parseFloat(a[3]))}}return[r,t,e,n]},n=e(s),a=e(r);if(!n||!a)return!1;return Math.sqrt(Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2)+Math.pow(n[2]-a[2],2)+Math.pow(n[3]-a[3],2))<=t},exports.enumToArray=s=>{const r=[];for(const t in s)isNaN(Number(t))&&r.push({label:t,value:s[t]});return r},exports.getSelectOptions=(s,r,t,e)=>Array.isArray(s)?s.map((s=>({label:null==s?void 0:s[r],value:e?+s[t]:s[t]}))):[],exports.isColorEqual=(s,r)=>{function e(s){if(s.toLowerCase().startsWith("rgba"))return s.toLowerCase();if(s.toLowerCase().startsWith("rgb"))return s.replace("rgb","rgba").replace(")",", 1)");if(7===s.length){return`rgba(${parseInt(s.substring(1,3),16)}, ${parseInt(s.substring(3,5),16)}, ${parseInt(s.substring(5,7),16)}, 1)`}if(9===s.length&&s.toLowerCase().startsWith("rrggbbaa")){return`rgba(${parseInt(s.substring(1,3),16)}, ${parseInt(s.substring(3,5),16)}, ${parseInt(s.substring(5,7),16)}, ${Math.round(parseInt(s.substring(7,9),16)/255*100)/100})`}return null}const n=e(t(s)),a=e(t(r));return!(!n||!a)&&n===a},exports.isDarkColor=s=>{const r=(s=>{let r=0,t=0,e=0,n=1;if(s.startsWith("#"))if(3===(s=s.slice(1)).length)r=parseInt(s[0]+s[0],16),t=parseInt(s[1]+s[1],16),e=parseInt(s[2]+s[2],16);else{if(6!==s.length)return null;r=parseInt(s.slice(0,2),16),t=parseInt(s.slice(2,4),16),e=parseInt(s.slice(4,6),16)}else{if(!s.startsWith("rgb"))return null;{const a=s.match(/(\d+(\.\d+)?)/g);if(!a)return null;r=parseFloat(a[0]),t=parseFloat(a[1]),e=parseFloat(a[2]),a.length>3&&(n=parseFloat(a[3]))}}return[r,t,e,n]})(s);if(!r)return null;const[t,e,n,a]=r,i=t/255,l=e/255,o=n/255;return(Math.max(i,l,o)+Math.min(i,l,o))/2<.5},exports.notifyMessageToSystems=s=>{new BroadcastChannel("YXUSE_BC").postMessage(s)},exports.receiveMessage=s=>{new BroadcastChannel("YXUSE_BC").onmessage=()=>{s()}},exports.yxSubscribe=e;
|
package/lib/index.cjs13.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./index.cjs11.js"),
|
|
1
|
+
"use strict";const e=require("./index.cjs11.js"),t=(t,o)=>e.http.post(`${e.URL.ttc.INTEGRATED_BASE_URL}/file/upload`,t,o),o=()=>e.http.get(`${e.URL.ttc.INTEGRATED_BASE_URL}/resource/group/list`,{},{headers:{noLoading:!0}}),r=(t,o)=>e.http.get(`${e.URL.ttc.INTEGRATED_BASE_URL}/resource/file/list/${o}/${t}`,{},{headers:{noLoading:!0}}),s=Object.freeze(Object.defineProperty({__proto__:null,getGroupListApi:o,getResourceListApi:r,uploadResourceApi:t},Symbol.toStringTag,{value:"Module"}));exports.getGroupListApi=o,exports.getResourceListApi=r,exports.index=s,exports.uploadResourceApi=t;
|
package/lib/index.cjs2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("./index.cjs11.js"),r=require("./index.cjs12.js"),s=Object.freeze(Object.defineProperty({__proto__:null,areColorsSimilar:r.areColorsSimilar,enumToArray:r.enumToArray,getSelectOptions:r.getSelectOptions,http:e.http,isColorEqual:r.isColorEqual,isDarkColor:r.isDarkColor,notifyMessageToSystems:r.notifyMessageToSystems,receiveMessage:r.receiveMessage,yxSubscribe:r.yxSubscribe},Symbol.toStringTag,{value:"Module"}));exports.utils2=s;
|
package/lib/index.cjs3.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var e=(e,t,r)=>new Promise(((n,o)=>{var i=e=>{try{s(r.next(e))}catch(t){o(t)}},l=e=>{try{s(r.throw(e))}catch(t){o(t)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,l);s((r=r.apply(e,t)).next())}));require("./index.cjs11.js"),require("element-plus");const t=require("./index.cjs13.js"),r=()=>e(exports,null,(function*(){var e;const{data:r}=yield t.getGroupListApi(),o=null==(e=r.find((e=>"yxIcon"===e.groupName)))?void 0:e.groupUuid;n(o)})),n=r=>e(exports,null,(function*(){const{data:e}=yield t.getResourceListApi(r,1);return o(e),e})),o=e=>{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 r="";e.forEach((e=>{r+=e.text.replace(/\\/g,"").trim().replace(/^"(.*)"$/,"$1")})),t.innerHTML=r,t.style.position="absolute",t.style.width="0",t.style.height="0",document.head.appendChild(t)},i={install:function(e){r()}},l=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}));exports.index=i,exports.yxIcon2=l;
|
package/lib/index.cjs4.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var e=(e,t,r)=>new Promise(((n,s)=>{var o=e=>{try{i(r.next(e))}catch(t){s(t)}},l=e=>{try{i(r.throw(e))}catch(t){s(t)}},i=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,l);i((r=r.apply(e,t)).next())}));const t=require("./index.cjs11.js"),r=require("./index.cjs13.js"),n=(r="ttc")=>e(exports,null,(function*(){return yield t.http.get(`${t.URL[r].INTEGRATED_BASE_URL}/basic/data/satellite/select`)})),s=(r="ttc")=>e(exports,null,(function*(){return yield t.http.get(`${t.URL[r].INTEGRATED_BASE_URL}/basic/data/ante/select`)})),o=(r="ttc")=>e(exports,null,(function*(){return yield t.http.get(`${t.URL[r].INTEGRATED_BASE_URL}/theme/list`,{},{headers:{noLoading:!0}})})),l=(r="ttc")=>e(exports,null,(function*(){return yield t.http.get(`${t.URL[r].INTEGRATED_BASE_URL}/workorder/comment/untreated/count`)})),i=Object.freeze(Object.defineProperty({__proto__:null,assets:r.index,auth:t.index,getCommentUntreatedCount:l,getUserSelectAnteList:s,getUserSelectSatelliteList:n,getUserThemeList:o},Symbol.toStringTag,{value:"Module"}));exports.api2=i,exports.getCommentUntreatedCount=l,exports.getUserSelectAnteList=s,exports.getUserSelectSatelliteList=n,exports.getUserThemeList=o;
|