@das-fed/upf-utils 6.4.0-dev.215 → 6.4.0-dev.217
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/api-services/es5.js +1907 -1848
- package/api-services/index.js +1427 -1422
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +1448 -1390
- package/api-services/modules/app-manage/index.js +1159 -1155
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +1391 -1333
- package/api-services/modules/authentication/index.js +1106 -1102
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +1629 -1559
- package/api-services/modules/bems/index.js +1305 -1283
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +1391 -1333
- package/api-services/modules/contract/index.js +1106 -1102
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +1627 -1557
- package/api-services/modules/duty-manage/index.js +1304 -1282
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +1448 -1390
- package/api-services/modules/enterpriseright/index.js +1159 -1155
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1573 -1514
- package/api-services/modules/file/es5.js +1737 -1678
- package/api-services/modules/file/index.js +1306 -1301
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +1639 -1593
- package/api-services/modules/gateway-edge/index.js +1298 -1312
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1078 -1073
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +1414 -1356
- package/api-services/modules/iot/index.js +1123 -1119
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +1390 -1332
- package/api-services/modules/justauth/index.js +1106 -1102
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +1639 -1593
- package/api-services/modules/knowledge/index.js +1298 -1312
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +1639 -1593
- package/api-services/modules/link/index.js +1298 -1312
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1526 -1466
- package/api-services/modules/permission/index.js +1196 -1188
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +1398 -1340
- package/api-services/modules/platformManage/index.js +1109 -1105
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +1639 -1593
- package/api-services/modules/portal/index.js +1298 -1312
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +1391 -1333
- package/api-services/modules/space-manage/index.js +1106 -1102
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +1629 -1559
- package/api-services/modules/super-admin/index.js +1306 -1284
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +1174 -1116
- package/api-services/modules/supplier/index.js +882 -878
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +1401 -1343
- package/api-services/modules/supplychain-manage/index.js +1114 -1110
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +1639 -1593
- package/api-services/modules/systemConfiguration/index.js +1298 -1312
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +1391 -1333
- package/api-services/modules/tool/index.js +1106 -1102
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +1637 -1591
- package/api-services/src/create-service/index.js +1297 -1311
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/set-personal-info/es5.js +779 -684
- package/common-info/set-personal-info/index.js +672 -594
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/create-api-service/es5.js +1389 -1331
- package/create-api-service/index.js +1105 -1101
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/es5.js +314 -322
- package/create-api-service/sso/index.js +270 -271
- package/create-api-service/sso/index.js.gz +0 -0
- package/front-end/i18n/front-end-page/dasutils_en-US.js +20 -1
- package/front-end/i18n/front-end-page/dasutils_zh-CN.js +19 -1
- package/front-end/i18n/front-end-page/dasutils_zh-MO.js +19 -1
- package/package.json +4 -4
|
@@ -1,37 +1,36 @@
|
|
|
1
|
-
import { unref as
|
|
2
|
-
import { encryption as
|
|
1
|
+
import { unref as Pt, getCurrentScope as Ut, onScopeDispose as Nt, ref as Y, watch as Se } from "vue";
|
|
2
|
+
import { encryption as Lt } from "@das-fed/upf-utils/atob";
|
|
3
3
|
import { getConfig as Te } from "@das-fed/upf-utils/config";
|
|
4
|
-
import { getUrlParams as Ze, funcUrlDel as
|
|
5
|
-
import { getAccessToken as M, getAccessTokenInfo as ue, setAccessToken as
|
|
6
|
-
import { setProcessEngineToken as
|
|
7
|
-
|
|
8
|
-
function et(e, t) {
|
|
4
|
+
import { getUrlParams as Ze, funcUrlDel as Ft } from "@das-fed/upf-utils/common-tools/get-url-params";
|
|
5
|
+
import { getAccessToken as M, getAccessTokenInfo as ue, setAccessToken as Dt, removeAccessToken as vt } from "@das-fed/upf-utils/token-tools";
|
|
6
|
+
import { setProcessEngineToken as Bt, removeProcessEngineToken as It } from "@das-fed/upf-utils/process-engine-info";
|
|
7
|
+
function Ye(e, t) {
|
|
9
8
|
return function() {
|
|
10
9
|
return e.apply(t, arguments);
|
|
11
10
|
};
|
|
12
11
|
}
|
|
13
|
-
const { toString:
|
|
14
|
-
const n =
|
|
12
|
+
const { toString: jt } = Object.prototype, { getPrototypeOf: Oe } = Object, { iterator: ne, toStringTag: et } = Symbol, re = /* @__PURE__ */ ((e) => (t) => {
|
|
13
|
+
const n = jt.call(t);
|
|
15
14
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
16
15
|
})(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => re(t) === e), se = (e) => (t) => typeof t === e, { isArray: B } = Array, H = se("undefined");
|
|
17
|
-
function
|
|
16
|
+
function qt(e) {
|
|
18
17
|
return e !== null && !H(e) && e.constructor !== null && !H(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
19
18
|
}
|
|
20
|
-
const
|
|
21
|
-
function
|
|
19
|
+
const tt = x("ArrayBuffer");
|
|
20
|
+
function Mt(e) {
|
|
22
21
|
let t;
|
|
23
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
22
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && tt(e.buffer), t;
|
|
24
23
|
}
|
|
25
|
-
const
|
|
24
|
+
const Ht = se("string"), A = se("function"), nt = se("number"), oe = (e) => e !== null && typeof e == "object", zt = (e) => e === !0 || e === !1, X = (e) => {
|
|
26
25
|
if (re(e) !== "object")
|
|
27
26
|
return !1;
|
|
28
27
|
const t = Oe(e);
|
|
29
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
30
|
-
},
|
|
28
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(et in e) && !(ne in e);
|
|
29
|
+
}, $t = x("Date"), Jt = x("File"), Vt = x("Blob"), Wt = x("FileList"), Kt = (e) => oe(e) && A(e.pipe), Qt = (e) => {
|
|
31
30
|
let t;
|
|
32
31
|
return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = re(e)) === "formdata" || // detect form-data instance
|
|
33
32
|
t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
|
|
34
|
-
},
|
|
33
|
+
}, Xt = x("URLSearchParams"), [Gt, Zt, Yt, en] = ["ReadableStream", "Request", "Response", "Headers"].map(x), tn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
35
34
|
function V(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
36
35
|
if (e === null || typeof e > "u")
|
|
37
36
|
return;
|
|
@@ -46,7 +45,7 @@ function V(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
46
45
|
c = o[r], t.call(null, e[c], c, e);
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
|
-
function
|
|
48
|
+
function rt(e, t) {
|
|
50
49
|
t = t.toLowerCase();
|
|
51
50
|
const n = Object.keys(e);
|
|
52
51
|
let r = n.length, s;
|
|
@@ -55,23 +54,23 @@ function st(e, t) {
|
|
|
55
54
|
return s;
|
|
56
55
|
return null;
|
|
57
56
|
}
|
|
58
|
-
const N = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
57
|
+
const N = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, st = (e) => !H(e) && e !== N;
|
|
59
58
|
function pe() {
|
|
60
|
-
const { caseless: e } =
|
|
61
|
-
const o = e &&
|
|
59
|
+
const { caseless: e } = st(this) && this || {}, t = {}, n = (r, s) => {
|
|
60
|
+
const o = e && rt(t, s) || s;
|
|
62
61
|
X(t[o]) && X(r) ? t[o] = pe(t[o], r) : X(r) ? t[o] = pe({}, r) : B(r) ? t[o] = r.slice() : t[o] = r;
|
|
63
62
|
};
|
|
64
63
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
65
64
|
arguments[r] && V(arguments[r], n);
|
|
66
65
|
return t;
|
|
67
66
|
}
|
|
68
|
-
const
|
|
69
|
-
n && A(s) ? e[o] =
|
|
70
|
-
}, { allOwnKeys: r }), e),
|
|
67
|
+
const nn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
|
|
68
|
+
n && A(s) ? e[o] = Ye(s, n) : e[o] = s;
|
|
69
|
+
}, { allOwnKeys: r }), e), rn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), sn = (e, t, n, r) => {
|
|
71
70
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
72
71
|
value: t.prototype
|
|
73
72
|
}), n && Object.assign(e.prototype, n);
|
|
74
|
-
},
|
|
73
|
+
}, on = (e, t, n, r) => {
|
|
75
74
|
let s, o, i;
|
|
76
75
|
const c = {};
|
|
77
76
|
if (t = t || {}, e == null) return t;
|
|
@@ -81,45 +80,45 @@ const rn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
|
|
|
81
80
|
e = n !== !1 && Oe(e);
|
|
82
81
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
83
82
|
return t;
|
|
84
|
-
},
|
|
83
|
+
}, an = (e, t, n) => {
|
|
85
84
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
86
85
|
const r = e.indexOf(t, n);
|
|
87
86
|
return r !== -1 && r === n;
|
|
88
|
-
},
|
|
87
|
+
}, cn = (e) => {
|
|
89
88
|
if (!e) return null;
|
|
90
89
|
if (B(e)) return e;
|
|
91
90
|
let t = e.length;
|
|
92
|
-
if (!
|
|
91
|
+
if (!nt(t)) return null;
|
|
93
92
|
const n = new Array(t);
|
|
94
93
|
for (; t-- > 0; )
|
|
95
94
|
n[t] = e[t];
|
|
96
95
|
return n;
|
|
97
|
-
},
|
|
96
|
+
}, un = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Oe(Uint8Array)), ln = (e, t) => {
|
|
98
97
|
const r = (e && e[ne]).call(e);
|
|
99
98
|
let s;
|
|
100
99
|
for (; (s = r.next()) && !s.done; ) {
|
|
101
100
|
const o = s.value;
|
|
102
101
|
t.call(e, o[0], o[1]);
|
|
103
102
|
}
|
|
104
|
-
},
|
|
103
|
+
}, fn = (e, t) => {
|
|
105
104
|
let n;
|
|
106
105
|
const r = [];
|
|
107
106
|
for (; (n = e.exec(t)) !== null; )
|
|
108
107
|
r.push(n);
|
|
109
108
|
return r;
|
|
110
|
-
},
|
|
109
|
+
}, dn = x("HTMLFormElement"), pn = (e) => e.toLowerCase().replace(
|
|
111
110
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
112
111
|
function(n, r, s) {
|
|
113
112
|
return r.toUpperCase() + s;
|
|
114
113
|
}
|
|
115
|
-
), Pe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype),
|
|
114
|
+
), Pe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), hn = x("RegExp"), ot = (e, t) => {
|
|
116
115
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
117
116
|
V(n, (s, o) => {
|
|
118
117
|
let i;
|
|
119
118
|
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
120
119
|
}), Object.defineProperties(e, r);
|
|
121
|
-
},
|
|
122
|
-
|
|
120
|
+
}, mn = (e) => {
|
|
121
|
+
ot(e, (t, n) => {
|
|
123
122
|
if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
124
123
|
return !1;
|
|
125
124
|
const r = e[n];
|
|
@@ -133,19 +132,19 @@ const rn = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
|
|
|
133
132
|
});
|
|
134
133
|
}
|
|
135
134
|
});
|
|
136
|
-
},
|
|
135
|
+
}, yn = (e, t) => {
|
|
137
136
|
const n = {}, r = (s) => {
|
|
138
137
|
s.forEach((o) => {
|
|
139
138
|
n[o] = !0;
|
|
140
139
|
});
|
|
141
140
|
};
|
|
142
141
|
return B(e) ? r(e) : r(String(e).split(t)), n;
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
function
|
|
146
|
-
return !!(e && A(e.append) && e[
|
|
142
|
+
}, wn = () => {
|
|
143
|
+
}, gn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
144
|
+
function bn(e) {
|
|
145
|
+
return !!(e && A(e.append) && e[et] === "FormData" && e[ne]);
|
|
147
146
|
}
|
|
148
|
-
const
|
|
147
|
+
const En = (e) => {
|
|
149
148
|
const t = new Array(10), n = (r, s) => {
|
|
150
149
|
if (oe(r)) {
|
|
151
150
|
if (t.indexOf(r) >= 0)
|
|
@@ -162,71 +161,71 @@ const Rn = (e) => {
|
|
|
162
161
|
return r;
|
|
163
162
|
};
|
|
164
163
|
return n(e, 0);
|
|
165
|
-
},
|
|
164
|
+
}, Rn = x("AsyncFunction"), Sn = (e) => e && (oe(e) || A(e)) && A(e.then) && A(e.catch), it = ((e, t) => e ? setImmediate : t ? ((n, r) => (N.addEventListener("message", ({ source: s, data: o }) => {
|
|
166
165
|
s === N && o === n && r.length && r.shift()();
|
|
167
166
|
}, !1), (s) => {
|
|
168
167
|
r.push(s), N.postMessage(n, "*");
|
|
169
168
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
170
169
|
typeof setImmediate == "function",
|
|
171
170
|
A(N.postMessage)
|
|
172
|
-
),
|
|
171
|
+
), Tn = typeof queueMicrotask < "u" ? queueMicrotask.bind(N) : typeof process < "u" && process.nextTick || it, On = (e) => e != null && A(e[ne]), a = {
|
|
173
172
|
isArray: B,
|
|
174
|
-
isArrayBuffer:
|
|
175
|
-
isBuffer:
|
|
176
|
-
isFormData:
|
|
177
|
-
isArrayBufferView:
|
|
178
|
-
isString:
|
|
179
|
-
isNumber:
|
|
180
|
-
isBoolean:
|
|
173
|
+
isArrayBuffer: tt,
|
|
174
|
+
isBuffer: qt,
|
|
175
|
+
isFormData: Qt,
|
|
176
|
+
isArrayBufferView: Mt,
|
|
177
|
+
isString: Ht,
|
|
178
|
+
isNumber: nt,
|
|
179
|
+
isBoolean: zt,
|
|
181
180
|
isObject: oe,
|
|
182
181
|
isPlainObject: X,
|
|
183
|
-
isReadableStream:
|
|
184
|
-
isRequest:
|
|
185
|
-
isResponse:
|
|
186
|
-
isHeaders:
|
|
182
|
+
isReadableStream: Gt,
|
|
183
|
+
isRequest: Zt,
|
|
184
|
+
isResponse: Yt,
|
|
185
|
+
isHeaders: en,
|
|
187
186
|
isUndefined: H,
|
|
188
|
-
isDate:
|
|
189
|
-
isFile:
|
|
190
|
-
isBlob:
|
|
191
|
-
isRegExp:
|
|
187
|
+
isDate: $t,
|
|
188
|
+
isFile: Jt,
|
|
189
|
+
isBlob: Vt,
|
|
190
|
+
isRegExp: hn,
|
|
192
191
|
isFunction: A,
|
|
193
|
-
isStream:
|
|
194
|
-
isURLSearchParams:
|
|
195
|
-
isTypedArray:
|
|
196
|
-
isFileList:
|
|
192
|
+
isStream: Kt,
|
|
193
|
+
isURLSearchParams: Xt,
|
|
194
|
+
isTypedArray: un,
|
|
195
|
+
isFileList: Wt,
|
|
197
196
|
forEach: V,
|
|
198
197
|
merge: pe,
|
|
199
|
-
extend:
|
|
200
|
-
trim:
|
|
201
|
-
stripBOM:
|
|
202
|
-
inherits:
|
|
203
|
-
toFlatObject:
|
|
198
|
+
extend: nn,
|
|
199
|
+
trim: tn,
|
|
200
|
+
stripBOM: rn,
|
|
201
|
+
inherits: sn,
|
|
202
|
+
toFlatObject: on,
|
|
204
203
|
kindOf: re,
|
|
205
204
|
kindOfTest: x,
|
|
206
|
-
endsWith:
|
|
207
|
-
toArray:
|
|
208
|
-
forEachEntry:
|
|
209
|
-
matchAll:
|
|
210
|
-
isHTMLForm:
|
|
205
|
+
endsWith: an,
|
|
206
|
+
toArray: cn,
|
|
207
|
+
forEachEntry: ln,
|
|
208
|
+
matchAll: fn,
|
|
209
|
+
isHTMLForm: dn,
|
|
211
210
|
hasOwnProperty: Pe,
|
|
212
211
|
hasOwnProp: Pe,
|
|
213
212
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
214
|
-
reduceDescriptors:
|
|
215
|
-
freezeMethods:
|
|
216
|
-
toObjectSet:
|
|
217
|
-
toCamelCase:
|
|
218
|
-
noop:
|
|
219
|
-
toFiniteNumber:
|
|
220
|
-
findKey:
|
|
213
|
+
reduceDescriptors: ot,
|
|
214
|
+
freezeMethods: mn,
|
|
215
|
+
toObjectSet: yn,
|
|
216
|
+
toCamelCase: pn,
|
|
217
|
+
noop: wn,
|
|
218
|
+
toFiniteNumber: gn,
|
|
219
|
+
findKey: rt,
|
|
221
220
|
global: N,
|
|
222
|
-
isContextDefined:
|
|
223
|
-
isSpecCompliantForm:
|
|
224
|
-
toJSONObject:
|
|
225
|
-
isAsyncFn:
|
|
226
|
-
isThenable:
|
|
227
|
-
setImmediate:
|
|
228
|
-
asap:
|
|
229
|
-
isIterable:
|
|
221
|
+
isContextDefined: st,
|
|
222
|
+
isSpecCompliantForm: bn,
|
|
223
|
+
toJSONObject: En,
|
|
224
|
+
isAsyncFn: Rn,
|
|
225
|
+
isThenable: Sn,
|
|
226
|
+
setImmediate: it,
|
|
227
|
+
asap: Tn,
|
|
228
|
+
isIterable: On
|
|
230
229
|
};
|
|
231
230
|
function y(e, t, n, r, s) {
|
|
232
231
|
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, this.status = s.status ? s.status : null);
|
|
@@ -252,7 +251,7 @@ a.inherits(y, Error, {
|
|
|
252
251
|
};
|
|
253
252
|
}
|
|
254
253
|
});
|
|
255
|
-
const
|
|
254
|
+
const at = y.prototype, ct = {};
|
|
256
255
|
[
|
|
257
256
|
"ERR_BAD_OPTION_VALUE",
|
|
258
257
|
"ERR_BAD_OPTION",
|
|
@@ -268,32 +267,32 @@ const ct = y.prototype, ut = {};
|
|
|
268
267
|
"ERR_INVALID_URL"
|
|
269
268
|
// eslint-disable-next-line func-names
|
|
270
269
|
].forEach((e) => {
|
|
271
|
-
|
|
270
|
+
ct[e] = { value: e };
|
|
272
271
|
});
|
|
273
|
-
Object.defineProperties(y,
|
|
274
|
-
Object.defineProperty(
|
|
272
|
+
Object.defineProperties(y, ct);
|
|
273
|
+
Object.defineProperty(at, "isAxiosError", { value: !0 });
|
|
275
274
|
y.from = (e, t, n, r, s, o) => {
|
|
276
|
-
const i = Object.create(
|
|
275
|
+
const i = Object.create(at);
|
|
277
276
|
return a.toFlatObject(e, i, function(f) {
|
|
278
277
|
return f !== Error.prototype;
|
|
279
278
|
}, (c) => c !== "isAxiosError"), y.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
280
279
|
};
|
|
281
|
-
const
|
|
280
|
+
const An = null;
|
|
282
281
|
function he(e) {
|
|
283
282
|
return a.isPlainObject(e) || a.isArray(e);
|
|
284
283
|
}
|
|
285
|
-
function
|
|
284
|
+
function ut(e) {
|
|
286
285
|
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
287
286
|
}
|
|
288
287
|
function Ue(e, t, n) {
|
|
289
288
|
return e ? e.concat(t).map(function(s, o) {
|
|
290
|
-
return s =
|
|
289
|
+
return s = ut(s), !n && o ? "[" + s + "]" : s;
|
|
291
290
|
}).join(n ? "." : "") : t;
|
|
292
291
|
}
|
|
293
|
-
function
|
|
292
|
+
function _n(e) {
|
|
294
293
|
return a.isArray(e) && !e.some(he);
|
|
295
294
|
}
|
|
296
|
-
const
|
|
295
|
+
const xn = a.toFlatObject(a, {}, null, function(t) {
|
|
297
296
|
return /^is[A-Z]/.test(t);
|
|
298
297
|
});
|
|
299
298
|
function ie(e, t, n) {
|
|
@@ -324,8 +323,8 @@ function ie(e, t, n) {
|
|
|
324
323
|
if (p && !h && typeof p == "object") {
|
|
325
324
|
if (a.endsWith(m, "{}"))
|
|
326
325
|
m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
|
|
327
|
-
else if (a.isArray(p) &&
|
|
328
|
-
return m =
|
|
326
|
+
else if (a.isArray(p) && _n(p) || (a.isFileList(p) || a.endsWith(m, "[]")) && (E = a.toArray(p)))
|
|
327
|
+
return m = ut(m), E.forEach(function(S, C) {
|
|
329
328
|
!(a.isUndefined(S) || S === null) && t.append(
|
|
330
329
|
// eslint-disable-next-line no-nested-ternary
|
|
331
330
|
i === !0 ? Ue([m], C, o) : i === null ? m : m + "[]",
|
|
@@ -335,7 +334,7 @@ function ie(e, t, n) {
|
|
|
335
334
|
}
|
|
336
335
|
return he(p) ? !0 : (t.append(Ue(h, m, o), u(p)), !1);
|
|
337
336
|
}
|
|
338
|
-
const d = [], w = Object.assign(
|
|
337
|
+
const d = [], w = Object.assign(xn, {
|
|
339
338
|
defaultVisitor: l,
|
|
340
339
|
convertValue: u,
|
|
341
340
|
isVisitable: he
|
|
@@ -376,11 +375,11 @@ function Ne(e) {
|
|
|
376
375
|
function Ae(e, t) {
|
|
377
376
|
this._pairs = [], e && ie(e, this, t);
|
|
378
377
|
}
|
|
379
|
-
const
|
|
380
|
-
|
|
378
|
+
const lt = Ae.prototype;
|
|
379
|
+
lt.append = function(t, n) {
|
|
381
380
|
this._pairs.push([t, n]);
|
|
382
381
|
};
|
|
383
|
-
|
|
382
|
+
lt.toString = function(t) {
|
|
384
383
|
const n = t ? function(r) {
|
|
385
384
|
return t.call(this, r, Ne);
|
|
386
385
|
} : Ne;
|
|
@@ -388,13 +387,13 @@ ft.toString = function(t) {
|
|
|
388
387
|
return n(s[0]) + "=" + n(s[1]);
|
|
389
388
|
}, "").join("&");
|
|
390
389
|
};
|
|
391
|
-
function
|
|
390
|
+
function kn(e) {
|
|
392
391
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
393
392
|
}
|
|
394
|
-
function
|
|
393
|
+
function ft(e, t, n) {
|
|
395
394
|
if (!t)
|
|
396
395
|
return e;
|
|
397
|
-
const r = n && n.encode ||
|
|
396
|
+
const r = n && n.encode || kn;
|
|
398
397
|
a.isFunction(n) && (n = {
|
|
399
398
|
serialize: n
|
|
400
399
|
});
|
|
@@ -460,41 +459,41 @@ class Le {
|
|
|
460
459
|
});
|
|
461
460
|
}
|
|
462
461
|
}
|
|
463
|
-
const
|
|
462
|
+
const dt = {
|
|
464
463
|
silentJSONParsing: !0,
|
|
465
464
|
forcedJSONParsing: !0,
|
|
466
465
|
clarifyTimeoutError: !1
|
|
467
|
-
},
|
|
466
|
+
}, Cn = typeof URLSearchParams < "u" ? URLSearchParams : Ae, Pn = typeof FormData < "u" ? FormData : null, Un = typeof Blob < "u" ? Blob : null, Nn = {
|
|
468
467
|
isBrowser: !0,
|
|
469
468
|
classes: {
|
|
470
|
-
URLSearchParams:
|
|
471
|
-
FormData:
|
|
472
|
-
Blob:
|
|
469
|
+
URLSearchParams: Cn,
|
|
470
|
+
FormData: Pn,
|
|
471
|
+
Blob: Un
|
|
473
472
|
},
|
|
474
473
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
475
|
-
}, _e = typeof window < "u" && typeof document < "u", me = typeof navigator == "object" && navigator || void 0,
|
|
476
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
474
|
+
}, _e = typeof window < "u" && typeof document < "u", me = typeof navigator == "object" && navigator || void 0, Ln = _e && (!me || ["ReactNative", "NativeScript", "NS"].indexOf(me.product) < 0), Fn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
475
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Dn = _e && window.location.href || "http://localhost", vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
477
476
|
__proto__: null,
|
|
478
477
|
hasBrowserEnv: _e,
|
|
479
|
-
hasStandardBrowserEnv:
|
|
480
|
-
hasStandardBrowserWebWorkerEnv:
|
|
478
|
+
hasStandardBrowserEnv: Ln,
|
|
479
|
+
hasStandardBrowserWebWorkerEnv: Fn,
|
|
481
480
|
navigator: me,
|
|
482
|
-
origin:
|
|
481
|
+
origin: Dn
|
|
483
482
|
}, Symbol.toStringTag, { value: "Module" })), T = {
|
|
484
|
-
...
|
|
485
|
-
...
|
|
483
|
+
...vn,
|
|
484
|
+
...Nn
|
|
486
485
|
};
|
|
487
|
-
function
|
|
486
|
+
function Bn(e, t) {
|
|
488
487
|
return ie(e, new T.classes.URLSearchParams(), Object.assign({
|
|
489
488
|
visitor: function(n, r, s, o) {
|
|
490
489
|
return T.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
491
490
|
}
|
|
492
491
|
}, t));
|
|
493
492
|
}
|
|
494
|
-
function
|
|
493
|
+
function In(e) {
|
|
495
494
|
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
496
495
|
}
|
|
497
|
-
function
|
|
496
|
+
function jn(e) {
|
|
498
497
|
const t = {}, n = Object.keys(e);
|
|
499
498
|
let r;
|
|
500
499
|
const s = n.length;
|
|
@@ -503,22 +502,22 @@ function qn(e) {
|
|
|
503
502
|
o = n[r], t[o] = e[o];
|
|
504
503
|
return t;
|
|
505
504
|
}
|
|
506
|
-
function
|
|
505
|
+
function pt(e) {
|
|
507
506
|
function t(n, r, s, o) {
|
|
508
507
|
let i = n[o++];
|
|
509
508
|
if (i === "__proto__") return !0;
|
|
510
509
|
const c = Number.isFinite(+i), f = o >= n.length;
|
|
511
|
-
return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] =
|
|
510
|
+
return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = jn(s[i])), !c);
|
|
512
511
|
}
|
|
513
512
|
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
514
513
|
const n = {};
|
|
515
514
|
return a.forEachEntry(e, (r, s) => {
|
|
516
|
-
t(
|
|
515
|
+
t(In(r), s, n, 0);
|
|
517
516
|
}), n;
|
|
518
517
|
}
|
|
519
518
|
return null;
|
|
520
519
|
}
|
|
521
|
-
function
|
|
520
|
+
function qn(e, t, n) {
|
|
522
521
|
if (a.isString(e))
|
|
523
522
|
try {
|
|
524
523
|
return (t || JSON.parse)(e), a.trim(e);
|
|
@@ -529,12 +528,12 @@ function Mn(e, t, n) {
|
|
|
529
528
|
return (0, JSON.stringify)(e);
|
|
530
529
|
}
|
|
531
530
|
const W = {
|
|
532
|
-
transitional:
|
|
531
|
+
transitional: dt,
|
|
533
532
|
adapter: ["xhr", "http", "fetch"],
|
|
534
533
|
transformRequest: [function(t, n) {
|
|
535
534
|
const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
|
|
536
535
|
if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
537
|
-
return s ? JSON.stringify(
|
|
536
|
+
return s ? JSON.stringify(pt(t)) : t;
|
|
538
537
|
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
539
538
|
return t;
|
|
540
539
|
if (a.isArrayBufferView(t))
|
|
@@ -544,7 +543,7 @@ const W = {
|
|
|
544
543
|
let c;
|
|
545
544
|
if (o) {
|
|
546
545
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
547
|
-
return
|
|
546
|
+
return Bn(t, this.formSerializer).toString();
|
|
548
547
|
if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
549
548
|
const f = this.env && this.env.FormData;
|
|
550
549
|
return ie(
|
|
@@ -554,7 +553,7 @@ const W = {
|
|
|
554
553
|
);
|
|
555
554
|
}
|
|
556
555
|
}
|
|
557
|
-
return o || s ? (n.setContentType("application/json", !1),
|
|
556
|
+
return o || s ? (n.setContentType("application/json", !1), qn(t)) : t;
|
|
558
557
|
}],
|
|
559
558
|
transformResponse: [function(t) {
|
|
560
559
|
const n = this.transitional || W.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
|
|
@@ -597,7 +596,7 @@ const W = {
|
|
|
597
596
|
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
598
597
|
W.headers[e] = {};
|
|
599
598
|
});
|
|
600
|
-
const
|
|
599
|
+
const Mn = a.toObjectSet([
|
|
601
600
|
"age",
|
|
602
601
|
"authorization",
|
|
603
602
|
"content-length",
|
|
@@ -615,12 +614,12 @@ const Hn = a.toObjectSet([
|
|
|
615
614
|
"referer",
|
|
616
615
|
"retry-after",
|
|
617
616
|
"user-agent"
|
|
618
|
-
]),
|
|
617
|
+
]), Hn = (e) => {
|
|
619
618
|
const t = {};
|
|
620
619
|
let n, r, s;
|
|
621
620
|
return e && e.split(`
|
|
622
621
|
`).forEach(function(i) {
|
|
623
|
-
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] &&
|
|
622
|
+
s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && Mn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
624
623
|
}), t;
|
|
625
624
|
}, Fe = Symbol("internals");
|
|
626
625
|
function j(e) {
|
|
@@ -629,14 +628,14 @@ function j(e) {
|
|
|
629
628
|
function G(e) {
|
|
630
629
|
return e === !1 || e == null ? e : a.isArray(e) ? e.map(G) : String(e);
|
|
631
630
|
}
|
|
632
|
-
function
|
|
631
|
+
function zn(e) {
|
|
633
632
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
634
633
|
let r;
|
|
635
634
|
for (; r = n.exec(e); )
|
|
636
635
|
t[r[1]] = r[2];
|
|
637
636
|
return t;
|
|
638
637
|
}
|
|
639
|
-
const
|
|
638
|
+
const $n = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
640
639
|
function le(e, t, n, r, s) {
|
|
641
640
|
if (a.isFunction(r))
|
|
642
641
|
return r.call(this, t, n);
|
|
@@ -647,10 +646,10 @@ function le(e, t, n, r, s) {
|
|
|
647
646
|
return r.test(t);
|
|
648
647
|
}
|
|
649
648
|
}
|
|
650
|
-
function
|
|
649
|
+
function Jn(e) {
|
|
651
650
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
652
651
|
}
|
|
653
|
-
function
|
|
652
|
+
function Vn(e, t) {
|
|
654
653
|
const n = a.toCamelCase(" " + t);
|
|
655
654
|
["get", "set", "has"].forEach((r) => {
|
|
656
655
|
Object.defineProperty(e, r + n, {
|
|
@@ -677,8 +676,8 @@ class _ {
|
|
|
677
676
|
const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f));
|
|
678
677
|
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
679
678
|
i(t, n);
|
|
680
|
-
else if (a.isString(t) && (t = t.trim()) &&
|
|
681
|
-
i(
|
|
679
|
+
else if (a.isString(t) && (t = t.trim()) && !$n(t))
|
|
680
|
+
i(Hn(t), n);
|
|
682
681
|
else if (a.isObject(t) && a.isIterable(t)) {
|
|
683
682
|
let c = {}, f, u;
|
|
684
683
|
for (const l of t) {
|
|
@@ -699,7 +698,7 @@ class _ {
|
|
|
699
698
|
if (!n)
|
|
700
699
|
return s;
|
|
701
700
|
if (n === !0)
|
|
702
|
-
return
|
|
701
|
+
return zn(s);
|
|
703
702
|
if (a.isFunction(n))
|
|
704
703
|
return n.call(this, s, r);
|
|
705
704
|
if (a.isRegExp(n))
|
|
@@ -743,7 +742,7 @@ class _ {
|
|
|
743
742
|
n[i] = G(s), delete n[o];
|
|
744
743
|
return;
|
|
745
744
|
}
|
|
746
|
-
const c = t ?
|
|
745
|
+
const c = t ? Jn(o) : String(o).trim();
|
|
747
746
|
c !== o && delete n[o], n[c] = G(s), r[c] = !0;
|
|
748
747
|
}), this;
|
|
749
748
|
}
|
|
@@ -782,7 +781,7 @@ class _ {
|
|
|
782
781
|
}).accessors, s = this.prototype;
|
|
783
782
|
function o(i) {
|
|
784
783
|
const c = j(i);
|
|
785
|
-
r[c] || (
|
|
784
|
+
r[c] || (Vn(s, i), r[c] = !0);
|
|
786
785
|
}
|
|
787
786
|
return a.isArray(t) ? t.forEach(o) : o(t), this;
|
|
788
787
|
}
|
|
@@ -805,7 +804,7 @@ function fe(e, t) {
|
|
|
805
804
|
o = c.call(n, o, s.normalize(), t ? t.status : void 0);
|
|
806
805
|
}), s.normalize(), o;
|
|
807
806
|
}
|
|
808
|
-
function
|
|
807
|
+
function ht(e) {
|
|
809
808
|
return !!(e && e.__CANCEL__);
|
|
810
809
|
}
|
|
811
810
|
function I(e, t, n) {
|
|
@@ -814,7 +813,7 @@ function I(e, t, n) {
|
|
|
814
813
|
a.inherits(I, y, {
|
|
815
814
|
__CANCEL__: !0
|
|
816
815
|
});
|
|
817
|
-
function
|
|
816
|
+
function mt(e, t, n) {
|
|
818
817
|
const r = n.config.validateStatus;
|
|
819
818
|
!n.status || !r || r(n.status) ? e(n) : t(new y(
|
|
820
819
|
"Request failed with status code " + n.status,
|
|
@@ -824,11 +823,11 @@ function yt(e, t, n) {
|
|
|
824
823
|
n
|
|
825
824
|
));
|
|
826
825
|
}
|
|
827
|
-
function
|
|
826
|
+
function Wn(e) {
|
|
828
827
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
829
828
|
return t && t[1] || "";
|
|
830
829
|
}
|
|
831
|
-
function
|
|
830
|
+
function Kn(e, t) {
|
|
832
831
|
e = e || 10;
|
|
833
832
|
const n = new Array(e), r = new Array(e);
|
|
834
833
|
let s = 0, o = 0, i;
|
|
@@ -844,7 +843,7 @@ function Qn(e, t) {
|
|
|
844
843
|
return g ? Math.round(w * 1e3 / g) : void 0;
|
|
845
844
|
};
|
|
846
845
|
}
|
|
847
|
-
function
|
|
846
|
+
function Qn(e, t) {
|
|
848
847
|
let n = 0, r = 1e3 / t, s, o;
|
|
849
848
|
const i = (u, l = Date.now()) => {
|
|
850
849
|
n = l, s = null, o && (clearTimeout(o), o = null), e.apply(null, u);
|
|
@@ -858,8 +857,8 @@ function Xn(e, t) {
|
|
|
858
857
|
}
|
|
859
858
|
const ee = (e, t, n = 3) => {
|
|
860
859
|
let r = 0;
|
|
861
|
-
const s =
|
|
862
|
-
return
|
|
860
|
+
const s = Kn(50, 250);
|
|
861
|
+
return Qn((o) => {
|
|
863
862
|
const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, u = s(f), l = i <= c;
|
|
864
863
|
r = i;
|
|
865
864
|
const d = {
|
|
@@ -882,10 +881,10 @@ const ee = (e, t, n = 3) => {
|
|
|
882
881
|
total: e,
|
|
883
882
|
loaded: r
|
|
884
883
|
}), t[1]];
|
|
885
|
-
}, ve = (e) => (...t) => a.asap(() => e(...t)),
|
|
884
|
+
}, ve = (e) => (...t) => a.asap(() => e(...t)), Xn = T.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, T.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
886
885
|
new URL(T.origin),
|
|
887
886
|
T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
|
|
888
|
-
) : () => !0,
|
|
887
|
+
) : () => !0, Gn = T.hasStandardBrowserEnv ? (
|
|
889
888
|
// Standard browser envs support document.cookie
|
|
890
889
|
{
|
|
891
890
|
write(e, t, n, r, s, o) {
|
|
@@ -912,15 +911,15 @@ const ee = (e, t, n = 3) => {
|
|
|
912
911
|
}
|
|
913
912
|
}
|
|
914
913
|
);
|
|
915
|
-
function
|
|
914
|
+
function Zn(e) {
|
|
916
915
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
917
916
|
}
|
|
918
|
-
function
|
|
917
|
+
function Yn(e, t) {
|
|
919
918
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
920
919
|
}
|
|
921
|
-
function
|
|
922
|
-
let r = !
|
|
923
|
-
return e && (r || n == !1) ?
|
|
920
|
+
function yt(e, t, n) {
|
|
921
|
+
let r = !Zn(t);
|
|
922
|
+
return e && (r || n == !1) ? Yn(e, t) : t;
|
|
924
923
|
}
|
|
925
924
|
const Be = (e) => e instanceof _ ? { ...e } : e;
|
|
926
925
|
function F(e, t) {
|
|
@@ -987,10 +986,10 @@ function F(e, t) {
|
|
|
987
986
|
a.isUndefined(w) && d !== c || (n[l] = w);
|
|
988
987
|
}), n;
|
|
989
988
|
}
|
|
990
|
-
const
|
|
989
|
+
const wt = (e) => {
|
|
991
990
|
const t = F({}, e);
|
|
992
991
|
let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
993
|
-
t.headers = i = _.from(i), t.url =
|
|
992
|
+
t.headers = i = _.from(i), t.url = ft(yt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
|
|
994
993
|
"Authorization",
|
|
995
994
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
996
995
|
);
|
|
@@ -1003,14 +1002,14 @@ const gt = (e) => {
|
|
|
1003
1002
|
i.setContentType([u || "multipart/form-data", ...l].join("; "));
|
|
1004
1003
|
}
|
|
1005
1004
|
}
|
|
1006
|
-
if (T.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 &&
|
|
1007
|
-
const u = s && o &&
|
|
1005
|
+
if (T.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Xn(t.url))) {
|
|
1006
|
+
const u = s && o && Gn.read(o);
|
|
1008
1007
|
u && i.set(s, u);
|
|
1009
1008
|
}
|
|
1010
1009
|
return t;
|
|
1011
|
-
},
|
|
1010
|
+
}, er = typeof XMLHttpRequest < "u", tr = er && function(e) {
|
|
1012
1011
|
return new Promise(function(n, r) {
|
|
1013
|
-
const s =
|
|
1012
|
+
const s = wt(e);
|
|
1014
1013
|
let o = s.data;
|
|
1015
1014
|
const i = _.from(s.headers).normalize();
|
|
1016
1015
|
let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, d, w, g, p;
|
|
@@ -1032,7 +1031,7 @@ const gt = (e) => {
|
|
|
1032
1031
|
config: e,
|
|
1033
1032
|
request: h
|
|
1034
1033
|
};
|
|
1035
|
-
|
|
1034
|
+
mt(function(U) {
|
|
1036
1035
|
n(U), m();
|
|
1037
1036
|
}, function(U) {
|
|
1038
1037
|
r(U), m();
|
|
@@ -1046,7 +1045,7 @@ const gt = (e) => {
|
|
|
1046
1045
|
r(new y("Network Error", y.ERR_NETWORK, e, h)), h = null;
|
|
1047
1046
|
}, h.ontimeout = function() {
|
|
1048
1047
|
let C = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1049
|
-
const O = s.transitional ||
|
|
1048
|
+
const O = s.transitional || dt;
|
|
1050
1049
|
s.timeoutErrorMessage && (C = s.timeoutErrorMessage), r(new y(
|
|
1051
1050
|
C,
|
|
1052
1051
|
O.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
|
|
@@ -1058,14 +1057,14 @@ const gt = (e) => {
|
|
|
1058
1057
|
}), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), u && ([w, p] = ee(u, !0), h.addEventListener("progress", w)), f && h.upload && ([d, g] = ee(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (s.cancelToken || s.signal) && (l = (S) => {
|
|
1059
1058
|
h && (r(!S || S.type ? new I(null, e, h) : S), h.abort(), h = null);
|
|
1060
1059
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
1061
|
-
const R =
|
|
1060
|
+
const R = Wn(s.url);
|
|
1062
1061
|
if (R && T.protocols.indexOf(R) === -1) {
|
|
1063
1062
|
r(new y("Unsupported protocol " + R + ":", y.ERR_BAD_REQUEST, e));
|
|
1064
1063
|
return;
|
|
1065
1064
|
}
|
|
1066
1065
|
h.send(o || null);
|
|
1067
1066
|
});
|
|
1068
|
-
},
|
|
1067
|
+
}, nr = (e, t) => {
|
|
1069
1068
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1070
1069
|
if (t || n) {
|
|
1071
1070
|
let r = new AbortController(), s;
|
|
@@ -1088,7 +1087,7 @@ const gt = (e) => {
|
|
|
1088
1087
|
const { signal: f } = r;
|
|
1089
1088
|
return f.unsubscribe = () => a.asap(c), f;
|
|
1090
1089
|
}
|
|
1091
|
-
},
|
|
1090
|
+
}, rr = function* (e, t) {
|
|
1092
1091
|
let n = e.byteLength;
|
|
1093
1092
|
if (n < t) {
|
|
1094
1093
|
yield e;
|
|
@@ -1097,10 +1096,10 @@ const gt = (e) => {
|
|
|
1097
1096
|
let r = 0, s;
|
|
1098
1097
|
for (; r < n; )
|
|
1099
1098
|
s = r + t, yield e.slice(r, s), r = s;
|
|
1100
|
-
},
|
|
1101
|
-
for await (const n of
|
|
1102
|
-
yield*
|
|
1103
|
-
},
|
|
1099
|
+
}, sr = async function* (e, t) {
|
|
1100
|
+
for await (const n of or(e))
|
|
1101
|
+
yield* rr(n, t);
|
|
1102
|
+
}, or = async function* (e) {
|
|
1104
1103
|
if (e[Symbol.asyncIterator]) {
|
|
1105
1104
|
yield* e;
|
|
1106
1105
|
return;
|
|
@@ -1117,7 +1116,7 @@ const gt = (e) => {
|
|
|
1117
1116
|
await t.cancel();
|
|
1118
1117
|
}
|
|
1119
1118
|
}, Ie = (e, t, n, r) => {
|
|
1120
|
-
const s =
|
|
1119
|
+
const s = sr(e, t);
|
|
1121
1120
|
let o = 0, i, c = (f) => {
|
|
1122
1121
|
i || (i = !0, r && r(f));
|
|
1123
1122
|
};
|
|
@@ -1145,13 +1144,13 @@ const gt = (e) => {
|
|
|
1145
1144
|
}, {
|
|
1146
1145
|
highWaterMark: 2
|
|
1147
1146
|
});
|
|
1148
|
-
}, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
|
1147
|
+
}, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", gt = ae && typeof ReadableStream == "function", ir = ae && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), bt = (e, ...t) => {
|
|
1149
1148
|
try {
|
|
1150
1149
|
return !!e(...t);
|
|
1151
1150
|
} catch {
|
|
1152
1151
|
return !1;
|
|
1153
1152
|
}
|
|
1154
|
-
},
|
|
1153
|
+
}, ar = gt && bt(() => {
|
|
1155
1154
|
let e = !1;
|
|
1156
1155
|
const t = new Request(T.origin, {
|
|
1157
1156
|
body: new ReadableStream(),
|
|
@@ -1161,7 +1160,7 @@ const gt = (e) => {
|
|
|
1161
1160
|
}
|
|
1162
1161
|
}).headers.has("Content-Type");
|
|
1163
1162
|
return e && !t;
|
|
1164
|
-
}), je = 64 * 1024, ye =
|
|
1163
|
+
}), je = 64 * 1024, ye = gt && bt(() => a.isReadableStream(new Response("").body)), te = {
|
|
1165
1164
|
stream: ye && ((e) => e.body)
|
|
1166
1165
|
};
|
|
1167
1166
|
ae && ((e) => {
|
|
@@ -1171,7 +1170,7 @@ ae && ((e) => {
|
|
|
1171
1170
|
});
|
|
1172
1171
|
});
|
|
1173
1172
|
})(new Response());
|
|
1174
|
-
const
|
|
1173
|
+
const cr = async (e) => {
|
|
1175
1174
|
if (e == null)
|
|
1176
1175
|
return 0;
|
|
1177
1176
|
if (a.isBlob(e))
|
|
@@ -1184,11 +1183,11 @@ const ur = async (e) => {
|
|
|
1184
1183
|
if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
|
|
1185
1184
|
return e.byteLength;
|
|
1186
1185
|
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1187
|
-
return (await
|
|
1188
|
-
},
|
|
1186
|
+
return (await ir(e)).byteLength;
|
|
1187
|
+
}, ur = async (e, t) => {
|
|
1189
1188
|
const n = a.toFiniteNumber(e.getContentLength());
|
|
1190
|
-
return n ??
|
|
1191
|
-
},
|
|
1189
|
+
return n ?? cr(t);
|
|
1190
|
+
}, lr = ae && (async (e) => {
|
|
1192
1191
|
let {
|
|
1193
1192
|
url: t,
|
|
1194
1193
|
method: n,
|
|
@@ -1202,15 +1201,15 @@ const ur = async (e) => {
|
|
|
1202
1201
|
headers: l,
|
|
1203
1202
|
withCredentials: d = "same-origin",
|
|
1204
1203
|
fetchOptions: w
|
|
1205
|
-
} =
|
|
1204
|
+
} = wt(e);
|
|
1206
1205
|
u = u ? (u + "").toLowerCase() : "text";
|
|
1207
|
-
let g =
|
|
1206
|
+
let g = nr([s, o && o.toAbortSignal()], i), p;
|
|
1208
1207
|
const m = g && g.unsubscribe && (() => {
|
|
1209
1208
|
g.unsubscribe();
|
|
1210
1209
|
});
|
|
1211
1210
|
let h;
|
|
1212
1211
|
try {
|
|
1213
|
-
if (f &&
|
|
1212
|
+
if (f && ar && n !== "get" && n !== "head" && (h = await ur(l, r)) !== 0) {
|
|
1214
1213
|
let O = new Request(t, {
|
|
1215
1214
|
method: "POST",
|
|
1216
1215
|
body: r,
|
|
@@ -1256,7 +1255,7 @@ const ur = async (e) => {
|
|
|
1256
1255
|
u = u || "text";
|
|
1257
1256
|
let C = await te[a.findKey(te, u) || "text"](R, e);
|
|
1258
1257
|
return !S && m && m(), await new Promise((O, P) => {
|
|
1259
|
-
|
|
1258
|
+
mt(O, P, {
|
|
1260
1259
|
data: C,
|
|
1261
1260
|
headers: _.from(R.headers),
|
|
1262
1261
|
status: R.status,
|
|
@@ -1274,9 +1273,9 @@ const ur = async (e) => {
|
|
|
1274
1273
|
) : y.from(E, E && E.code, e, p);
|
|
1275
1274
|
}
|
|
1276
1275
|
}), we = {
|
|
1277
|
-
http:
|
|
1278
|
-
xhr:
|
|
1279
|
-
fetch:
|
|
1276
|
+
http: An,
|
|
1277
|
+
xhr: tr,
|
|
1278
|
+
fetch: lr
|
|
1280
1279
|
};
|
|
1281
1280
|
a.forEach(we, (e, t) => {
|
|
1282
1281
|
if (e) {
|
|
@@ -1287,7 +1286,7 @@ a.forEach(we, (e, t) => {
|
|
|
1287
1286
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1288
1287
|
}
|
|
1289
1288
|
});
|
|
1290
|
-
const qe = (e) => `- ${e}`,
|
|
1289
|
+
const qe = (e) => `- ${e}`, fr = (e) => a.isFunction(e) || e === null || e === !1, Et = {
|
|
1291
1290
|
getAdapter: (e) => {
|
|
1292
1291
|
e = a.isArray(e) ? e : [e];
|
|
1293
1292
|
const { length: t } = e;
|
|
@@ -1296,7 +1295,7 @@ const qe = (e) => `- ${e}`, dr = (e) => a.isFunction(e) || e === null || e === !
|
|
|
1296
1295
|
for (let o = 0; o < t; o++) {
|
|
1297
1296
|
n = e[o];
|
|
1298
1297
|
let i;
|
|
1299
|
-
if (r = n, !
|
|
1298
|
+
if (r = n, !fr(n) && (r = we[(i = String(n)).toLowerCase()], r === void 0))
|
|
1300
1299
|
throw new y(`Unknown adapter '${i}'`);
|
|
1301
1300
|
if (r)
|
|
1302
1301
|
break;
|
|
@@ -1326,21 +1325,21 @@ function Me(e) {
|
|
|
1326
1325
|
return de(e), e.headers = _.from(e.headers), e.data = fe.call(
|
|
1327
1326
|
e,
|
|
1328
1327
|
e.transformRequest
|
|
1329
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1328
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Et.getAdapter(e.adapter || W.adapter)(e).then(function(r) {
|
|
1330
1329
|
return de(e), r.data = fe.call(
|
|
1331
1330
|
e,
|
|
1332
1331
|
e.transformResponse,
|
|
1333
1332
|
r
|
|
1334
1333
|
), r.headers = _.from(r.headers), r;
|
|
1335
1334
|
}, function(r) {
|
|
1336
|
-
return
|
|
1335
|
+
return ht(r) || (de(e), r && r.response && (r.response.data = fe.call(
|
|
1337
1336
|
e,
|
|
1338
1337
|
e.transformResponse,
|
|
1339
1338
|
r.response
|
|
1340
1339
|
), r.response.headers = _.from(r.response.headers))), Promise.reject(r);
|
|
1341
1340
|
});
|
|
1342
1341
|
}
|
|
1343
|
-
const
|
|
1342
|
+
const Rt = "1.10.0", ce = {};
|
|
1344
1343
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1345
1344
|
ce[e] = function(r) {
|
|
1346
1345
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
@@ -1349,7 +1348,7 @@ const St = "1.10.0", ce = {};
|
|
|
1349
1348
|
const He = {};
|
|
1350
1349
|
ce.transitional = function(t, n, r) {
|
|
1351
1350
|
function s(o, i) {
|
|
1352
|
-
return "[Axios v" +
|
|
1351
|
+
return "[Axios v" + Rt + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
|
|
1353
1352
|
}
|
|
1354
1353
|
return (o, i, c) => {
|
|
1355
1354
|
if (t === !1)
|
|
@@ -1363,7 +1362,7 @@ ce.transitional = function(t, n, r) {
|
|
|
1363
1362
|
ce.spelling = function(t) {
|
|
1364
1363
|
return (n, r) => !0;
|
|
1365
1364
|
};
|
|
1366
|
-
function
|
|
1365
|
+
function dr(e, t, n) {
|
|
1367
1366
|
if (typeof e != "object")
|
|
1368
1367
|
throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
|
|
1369
1368
|
const r = Object.keys(e);
|
|
@@ -1381,7 +1380,7 @@ function pr(e, t, n) {
|
|
|
1381
1380
|
}
|
|
1382
1381
|
}
|
|
1383
1382
|
const Z = {
|
|
1384
|
-
assertOptions:
|
|
1383
|
+
assertOptions: dr,
|
|
1385
1384
|
validators: ce
|
|
1386
1385
|
}, k = Z.validators;
|
|
1387
1386
|
class L {
|
|
@@ -1480,8 +1479,8 @@ class L {
|
|
|
1480
1479
|
}
|
|
1481
1480
|
getUri(t) {
|
|
1482
1481
|
t = F(this.defaults, t);
|
|
1483
|
-
const n =
|
|
1484
|
-
return
|
|
1482
|
+
const n = yt(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1483
|
+
return ft(n, t.params, t.paramsSerializer);
|
|
1485
1484
|
}
|
|
1486
1485
|
}
|
|
1487
1486
|
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -1581,12 +1580,12 @@ class xe {
|
|
|
1581
1580
|
};
|
|
1582
1581
|
}
|
|
1583
1582
|
}
|
|
1584
|
-
function
|
|
1583
|
+
function pr(e) {
|
|
1585
1584
|
return function(n) {
|
|
1586
1585
|
return e.apply(null, n);
|
|
1587
1586
|
};
|
|
1588
1587
|
}
|
|
1589
|
-
function
|
|
1588
|
+
function hr(e) {
|
|
1590
1589
|
return a.isObject(e) && e.isAxiosError === !0;
|
|
1591
1590
|
}
|
|
1592
1591
|
const ge = {
|
|
@@ -1657,30 +1656,30 @@ const ge = {
|
|
|
1657
1656
|
Object.entries(ge).forEach(([e, t]) => {
|
|
1658
1657
|
ge[t] = e;
|
|
1659
1658
|
});
|
|
1660
|
-
function
|
|
1661
|
-
const t = new L(e), n =
|
|
1659
|
+
function St(e) {
|
|
1660
|
+
const t = new L(e), n = Ye(L.prototype.request, t);
|
|
1662
1661
|
return a.extend(n, L.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
1663
|
-
return
|
|
1662
|
+
return St(F(e, s));
|
|
1664
1663
|
}, n;
|
|
1665
1664
|
}
|
|
1666
|
-
const b =
|
|
1665
|
+
const b = St(W);
|
|
1667
1666
|
b.Axios = L;
|
|
1668
1667
|
b.CanceledError = I;
|
|
1669
1668
|
b.CancelToken = xe;
|
|
1670
|
-
b.isCancel =
|
|
1671
|
-
b.VERSION =
|
|
1669
|
+
b.isCancel = ht;
|
|
1670
|
+
b.VERSION = Rt;
|
|
1672
1671
|
b.toFormData = ie;
|
|
1673
1672
|
b.AxiosError = y;
|
|
1674
1673
|
b.Cancel = b.CanceledError;
|
|
1675
1674
|
b.all = function(t) {
|
|
1676
1675
|
return Promise.all(t);
|
|
1677
1676
|
};
|
|
1678
|
-
b.spread =
|
|
1679
|
-
b.isAxiosError =
|
|
1677
|
+
b.spread = pr;
|
|
1678
|
+
b.isAxiosError = hr;
|
|
1680
1679
|
b.mergeConfig = F;
|
|
1681
1680
|
b.AxiosHeaders = _;
|
|
1682
|
-
b.formToJSON = (e) =>
|
|
1683
|
-
b.getAdapter =
|
|
1681
|
+
b.formToJSON = (e) => pt(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
1682
|
+
b.getAdapter = Et.getAdapter;
|
|
1684
1683
|
b.HttpStatusCode = ge;
|
|
1685
1684
|
b.default = b;
|
|
1686
1685
|
/*! js-cookie v3.0.5 | MIT */
|
|
@@ -1692,7 +1691,7 @@ function Q(e) {
|
|
|
1692
1691
|
}
|
|
1693
1692
|
return e;
|
|
1694
1693
|
}
|
|
1695
|
-
var
|
|
1694
|
+
var mr = {
|
|
1696
1695
|
read: function(e) {
|
|
1697
1696
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
1698
1697
|
},
|
|
@@ -1753,14 +1752,14 @@ function be(e, t) {
|
|
|
1753
1752
|
}
|
|
1754
1753
|
);
|
|
1755
1754
|
}
|
|
1756
|
-
var
|
|
1757
|
-
const
|
|
1755
|
+
var yr = be(mr, { path: "/" }), ze;
|
|
1756
|
+
const Tt = typeof window < "u", wr = (e) => typeof e == "string", $e = () => +Date.now(), Ee = () => {
|
|
1758
1757
|
};
|
|
1759
|
-
|
|
1758
|
+
Tt && ((ze = window == null ? void 0 : window.navigator) != null && ze.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1760
1759
|
function ke(e) {
|
|
1761
|
-
return typeof e == "function" ? e() :
|
|
1760
|
+
return typeof e == "function" ? e() : Pt(e);
|
|
1762
1761
|
}
|
|
1763
|
-
function
|
|
1762
|
+
function gr(e, t) {
|
|
1764
1763
|
function n(...r) {
|
|
1765
1764
|
return new Promise((s, o) => {
|
|
1766
1765
|
Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(s).catch(o);
|
|
@@ -1768,7 +1767,7 @@ function br(e, t) {
|
|
|
1768
1767
|
}
|
|
1769
1768
|
return n;
|
|
1770
1769
|
}
|
|
1771
|
-
function
|
|
1770
|
+
function br(e, t = !0, n = !0, r = !1) {
|
|
1772
1771
|
let s = 0, o, i = !0, c = Ee, f;
|
|
1773
1772
|
const u = () => {
|
|
1774
1773
|
o && (clearTimeout(o), o = void 0, c(), c = Ee);
|
|
@@ -1782,45 +1781,45 @@ function Er(e, t = !0, n = !0, r = !1) {
|
|
|
1782
1781
|
})), !n && !o && (o = setTimeout(() => i = !0, w)), i = !1, f);
|
|
1783
1782
|
};
|
|
1784
1783
|
}
|
|
1785
|
-
function
|
|
1784
|
+
function Er(e) {
|
|
1786
1785
|
return e;
|
|
1787
1786
|
}
|
|
1788
|
-
function
|
|
1789
|
-
return
|
|
1787
|
+
function Rr(e) {
|
|
1788
|
+
return Ut() ? (Nt(e), !0) : !1;
|
|
1790
1789
|
}
|
|
1791
|
-
function
|
|
1790
|
+
function Sr(e) {
|
|
1792
1791
|
var t;
|
|
1793
1792
|
const n = ke(e);
|
|
1794
1793
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
1795
1794
|
}
|
|
1796
|
-
const
|
|
1795
|
+
const Ot = Tt ? window : void 0;
|
|
1797
1796
|
function Je(...e) {
|
|
1798
1797
|
let t, n, r, s;
|
|
1799
|
-
if (
|
|
1798
|
+
if (wr(e[0]) || Array.isArray(e[0]) ? ([n, r, s] = e, t = Ot) : [t, n, r, s] = e, !t)
|
|
1800
1799
|
return Ee;
|
|
1801
1800
|
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
|
|
1802
1801
|
const o = [], i = () => {
|
|
1803
1802
|
o.forEach((l) => l()), o.length = 0;
|
|
1804
|
-
}, c = (l, d, w, g) => (l.addEventListener(d, w, g), () => l.removeEventListener(d, w, g)), f = Se(() => [
|
|
1803
|
+
}, c = (l, d, w, g) => (l.addEventListener(d, w, g), () => l.removeEventListener(d, w, g)), f = Se(() => [Sr(t), ke(s)], ([l, d]) => {
|
|
1805
1804
|
i(), l && o.push(...n.flatMap((w) => r.map((g) => c(l, w, g, d))));
|
|
1806
1805
|
}, { immediate: !0, flush: "post" }), u = () => {
|
|
1807
1806
|
f(), i();
|
|
1808
1807
|
};
|
|
1809
|
-
return
|
|
1808
|
+
return Rr(u), u;
|
|
1810
1809
|
}
|
|
1811
1810
|
const Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, We = "__vueuse_ssr_handlers__";
|
|
1812
1811
|
Ve[We] = Ve[We] || {};
|
|
1813
|
-
const
|
|
1814
|
-
function
|
|
1812
|
+
const Tr = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], Or = 6e4;
|
|
1813
|
+
function Ar(e = Or, t = {}) {
|
|
1815
1814
|
const {
|
|
1816
1815
|
initialState: n = !1,
|
|
1817
1816
|
listenForVisibilityChange: r = !0,
|
|
1818
|
-
events: s =
|
|
1819
|
-
window: o =
|
|
1820
|
-
eventFilter: i =
|
|
1817
|
+
events: s = Tr,
|
|
1818
|
+
window: o = Ot,
|
|
1819
|
+
eventFilter: i = br(50)
|
|
1821
1820
|
} = t, c = Y(n), f = Y($e());
|
|
1822
1821
|
let u;
|
|
1823
|
-
const l =
|
|
1822
|
+
const l = gr(i, () => {
|
|
1824
1823
|
c.value = !1, f.value = $e(), clearTimeout(u), u = setTimeout(() => c.value = !0, e);
|
|
1825
1824
|
});
|
|
1826
1825
|
if (o) {
|
|
@@ -1837,15 +1836,15 @@ var Ke;
|
|
|
1837
1836
|
(function(e) {
|
|
1838
1837
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
1839
1838
|
})(Ke || (Ke = {}));
|
|
1840
|
-
var
|
|
1839
|
+
var _r = Object.defineProperty, Qe = Object.getOwnPropertySymbols, xr = Object.prototype.hasOwnProperty, kr = Object.prototype.propertyIsEnumerable, Xe = (e, t, n) => t in e ? _r(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Cr = (e, t) => {
|
|
1841
1840
|
for (var n in t)
|
|
1842
|
-
|
|
1841
|
+
xr.call(t, n) && Xe(e, n, t[n]);
|
|
1843
1842
|
if (Qe)
|
|
1844
1843
|
for (var n of Qe(t))
|
|
1845
|
-
|
|
1844
|
+
kr.call(t, n) && Xe(e, n, t[n]);
|
|
1846
1845
|
return e;
|
|
1847
1846
|
};
|
|
1848
|
-
const
|
|
1847
|
+
const Pr = {
|
|
1849
1848
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
1850
1849
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
1851
1850
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -1871,27 +1870,27 @@ const Ur = {
|
|
|
1871
1870
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
1872
1871
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
1873
1872
|
};
|
|
1874
|
-
|
|
1875
|
-
linear:
|
|
1876
|
-
},
|
|
1873
|
+
Cr({
|
|
1874
|
+
linear: Er
|
|
1875
|
+
}, Pr);
|
|
1877
1876
|
let Re;
|
|
1878
|
-
const
|
|
1877
|
+
const At = { triggerProxySso: "triggerProxySso" }, Ur = () => {
|
|
1879
1878
|
Re = (e) => {
|
|
1880
1879
|
var n;
|
|
1881
1880
|
const { origin: t } = new URL(location.href);
|
|
1882
1881
|
(n = window.top) == null || n.postMessage(
|
|
1883
|
-
{ type:
|
|
1882
|
+
{ type: At.triggerProxySso, data: { ...e || {}, redirect_uri: `${t}/` } },
|
|
1884
1883
|
t
|
|
1885
1884
|
);
|
|
1886
1885
|
};
|
|
1887
|
-
},
|
|
1886
|
+
}, Nr = (e) => {
|
|
1888
1887
|
window.top === window.self && window.addEventListener("message", (t) => {
|
|
1889
1888
|
const { type: n, data: r } = t.data;
|
|
1890
|
-
n ===
|
|
1889
|
+
n === At.triggerProxySso && (e == null || e(r));
|
|
1891
1890
|
});
|
|
1892
1891
|
};
|
|
1893
|
-
window.top !== window.self &&
|
|
1894
|
-
let
|
|
1892
|
+
window.top !== window.self && Ur();
|
|
1893
|
+
let _t = (e = 21) => {
|
|
1895
1894
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e));
|
|
1896
1895
|
for (; e--; ) {
|
|
1897
1896
|
let r = n[e] & 63;
|
|
@@ -1899,40 +1898,40 @@ let xt = (e = 21) => {
|
|
|
1899
1898
|
}
|
|
1900
1899
|
return t;
|
|
1901
1900
|
};
|
|
1902
|
-
const
|
|
1901
|
+
const xt = (e) => new URL(location.href).searchParams.get(e), v = {
|
|
1903
1902
|
oauth: "/api/justauth/oauth-server/v1/visitor/oauth/authorize",
|
|
1904
1903
|
// 重定向到登录页
|
|
1905
1904
|
logoutCurpage: "/api/justauth/oauth-server/v1/visitor/logout-curpage",
|
|
1906
1905
|
// 清除登录信息
|
|
1907
1906
|
token: "/api/justauth/oauth-server/v1/visitor/oauth/token"
|
|
1908
1907
|
// 通过code获取token
|
|
1909
|
-
}, { baseURL: Ge, noRedireLogin:
|
|
1908
|
+
}, { baseURL: Ge, noRedireLogin: Lr = !1 } = Te(), z = location.origin + "/home", D = {
|
|
1910
1909
|
response_type: "code",
|
|
1911
1910
|
scope: "sever",
|
|
1912
1911
|
client_id: "sys",
|
|
1913
|
-
client_secret:
|
|
1912
|
+
client_secret: Lt("das123"),
|
|
1914
1913
|
state: +/* @__PURE__ */ new Date()
|
|
1915
|
-
},
|
|
1914
|
+
}, Fr = () => {
|
|
1916
1915
|
const e = Ze(location.href, "redirect_url") || "";
|
|
1917
1916
|
if (e)
|
|
1918
1917
|
window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(e));
|
|
1919
1918
|
else {
|
|
1920
1919
|
const t = ["code", "state", "kingdee_token", "redirect_url"];
|
|
1921
|
-
window.history.replaceState({}, "",
|
|
1920
|
+
window.history.replaceState({}, "", Ft(t));
|
|
1922
1921
|
}
|
|
1923
|
-
},
|
|
1922
|
+
}, kt = Y(!1), Ct = (e) => {
|
|
1924
1923
|
if (e <= 0) return;
|
|
1925
|
-
const { idle: t } =
|
|
1924
|
+
const { idle: t } = Ar(e);
|
|
1926
1925
|
Se(
|
|
1927
1926
|
() => t.value,
|
|
1928
1927
|
(n) => {
|
|
1929
|
-
n === !0 && (
|
|
1928
|
+
n === !0 && (kt.value = !0);
|
|
1930
1929
|
}
|
|
1931
1930
|
);
|
|
1932
1931
|
};
|
|
1933
|
-
localStorage.getItem("idelTime") &&
|
|
1934
|
-
const
|
|
1935
|
-
const e =
|
|
1932
|
+
localStorage.getItem("idelTime") && Ct(Number(localStorage.getItem("idelTime")));
|
|
1933
|
+
const Dr = async () => {
|
|
1934
|
+
const e = xt("code") || "";
|
|
1936
1935
|
if (!e) return M();
|
|
1937
1936
|
const t = Ze(location.href, "kingdee_token") || "";
|
|
1938
1937
|
let n = {};
|
|
@@ -1943,7 +1942,7 @@ const vr = async () => {
|
|
|
1943
1942
|
client_secret: D.client_secret,
|
|
1944
1943
|
redirect_uri: z,
|
|
1945
1944
|
timestamp: (/* @__PURE__ */ new Date()).getTime(),
|
|
1946
|
-
nonce:
|
|
1945
|
+
nonce: _t()
|
|
1947
1946
|
};
|
|
1948
1947
|
t && (sessionStorage.setItem("kingdee_token", t), r.redirect_uri = `${r.redirect_uri}?kingdee_token=${t}`);
|
|
1949
1948
|
try {
|
|
@@ -1959,7 +1958,7 @@ const vr = async () => {
|
|
|
1959
1958
|
params: r,
|
|
1960
1959
|
headers: {
|
|
1961
1960
|
"Content-Type": "application/x-www-form-urlencoded",
|
|
1962
|
-
"csrf-token":
|
|
1961
|
+
"csrf-token": yr.get("csrf-token")
|
|
1963
1962
|
}
|
|
1964
1963
|
}
|
|
1965
1964
|
);
|
|
@@ -1969,15 +1968,15 @@ const vr = async () => {
|
|
|
1969
1968
|
refreshToken: i,
|
|
1970
1969
|
info: n.data
|
|
1971
1970
|
};
|
|
1972
|
-
J().save(f)
|
|
1971
|
+
J().save(f);
|
|
1973
1972
|
const u = Number(c) - (/* @__PURE__ */ new Date()).getTime();
|
|
1974
|
-
return u && u > 0 && (
|
|
1973
|
+
return u && u > 0 && (Ct(u), u && localStorage.setItem("idelTime", u.toString())), Fr(), s;
|
|
1975
1974
|
} catch {
|
|
1976
1975
|
return $({ ...D, redirect_uri: z });
|
|
1977
1976
|
}
|
|
1978
|
-
}, q = Y(!1),
|
|
1977
|
+
}, q = Y(!1), zr = async (e) => {
|
|
1979
1978
|
if (e.public) return "";
|
|
1980
|
-
if (
|
|
1979
|
+
if (kt.value) return $({ ...D, redirect_uri: z });
|
|
1981
1980
|
if (q.value)
|
|
1982
1981
|
return await new Promise(async (s) => {
|
|
1983
1982
|
Se(
|
|
@@ -1990,19 +1989,19 @@ const vr = async () => {
|
|
|
1990
1989
|
}
|
|
1991
1990
|
);
|
|
1992
1991
|
});
|
|
1993
|
-
const { accessTokenExpiredAt: t } = J().getData(), n =
|
|
1992
|
+
const { accessTokenExpiredAt: t } = J().getData(), n = xt("code") || "";
|
|
1994
1993
|
if ((!M() || t === 0) && !n)
|
|
1995
1994
|
return $({ ...D, redirect_uri: z });
|
|
1996
1995
|
let r = M();
|
|
1997
1996
|
q.value = !0;
|
|
1998
1997
|
try {
|
|
1999
|
-
typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await
|
|
1998
|
+
typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await vr(D)), r = await Dr(), q.value = !1;
|
|
2000
1999
|
} catch {
|
|
2001
2000
|
q.value = !1;
|
|
2002
2001
|
}
|
|
2003
2002
|
return r;
|
|
2004
2003
|
}, $ = (e) => {
|
|
2005
|
-
if (
|
|
2004
|
+
if (Lr) return;
|
|
2006
2005
|
const { baseURL: t, ssoLocale: n } = Te();
|
|
2007
2006
|
if (Re) return Re(e);
|
|
2008
2007
|
e.logout = "true", n && (e.locale = "locale");
|
|
@@ -2014,8 +2013,8 @@ const vr = async () => {
|
|
|
2014
2013
|
}
|
|
2015
2014
|
window.__isAutoCloseApp = !1, location.replace(s);
|
|
2016
2015
|
};
|
|
2017
|
-
|
|
2018
|
-
const
|
|
2016
|
+
Nr($);
|
|
2017
|
+
const vr = async (e) => {
|
|
2019
2018
|
const { baseURL: t } = Te(), { refreshToken: n } = J().getData();
|
|
2020
2019
|
try {
|
|
2021
2020
|
await b.create().get(v.token, { baseURL: t });
|
|
@@ -2033,7 +2032,7 @@ const Br = async (e) => {
|
|
|
2033
2032
|
client_id: e.client_id,
|
|
2034
2033
|
client_secret: e.client_secret,
|
|
2035
2034
|
timestamp: (/* @__PURE__ */ new Date()).getTime(),
|
|
2036
|
-
nonce:
|
|
2035
|
+
nonce: _t()
|
|
2037
2036
|
}
|
|
2038
2037
|
}
|
|
2039
2038
|
), { access_token: s = "", expires_in: o = 0, refresh_token: i = "" } = r.data, c = {
|
|
@@ -2042,7 +2041,7 @@ const Br = async (e) => {
|
|
|
2042
2041
|
refreshToken: i,
|
|
2043
2042
|
info: r.data
|
|
2044
2043
|
};
|
|
2045
|
-
return J().save(c),
|
|
2044
|
+
return J().save(c), s;
|
|
2046
2045
|
} catch {
|
|
2047
2046
|
return $({ ...e, redirect_uri: z });
|
|
2048
2047
|
}
|
|
@@ -2053,22 +2052,22 @@ const Br = async (e) => {
|
|
|
2053
2052
|
refreshToken: ue("refreshToken")
|
|
2054
2053
|
}),
|
|
2055
2054
|
save: (e) => {
|
|
2056
|
-
|
|
2055
|
+
Dt(
|
|
2057
2056
|
e.accessToken || "",
|
|
2058
2057
|
{
|
|
2059
2058
|
accessTokenExpiredAt: e.accessTokenExpiredAt,
|
|
2060
2059
|
refreshToken: e.refreshToken
|
|
2061
2060
|
}
|
|
2062
|
-
),
|
|
2061
|
+
), Bt(e);
|
|
2063
2062
|
},
|
|
2064
2063
|
remove: () => {
|
|
2065
|
-
|
|
2064
|
+
vt(), It();
|
|
2066
2065
|
}
|
|
2067
2066
|
});
|
|
2068
2067
|
export {
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2068
|
+
xt as getQuery,
|
|
2069
|
+
zr as getToken,
|
|
2070
|
+
Dr as getTokenFromCode,
|
|
2072
2071
|
D as getTokenParams,
|
|
2073
2072
|
$ as login,
|
|
2074
2073
|
z as real_uri,
|