@das-fed/utils 7.0.7-hot.47 → 7.0.7-hot.49
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/index.js +967 -949
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +782 -800
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +782 -800
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/file/index.js +889 -907
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +782 -800
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +958 -972
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +782 -800
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +631 -635
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +799 -781
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/index.js +781 -799
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +200 -199
- package/create-api-service/sso/index.js.gz +0 -0
- package/create-api-service/thirdLogout/index.js +27 -26
- package/create-api-service/thirdLogout/index.js.gz +0 -0
- package/package.json +4 -4
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { unref as
|
|
2
|
-
import { encryption as
|
|
1
|
+
import { unref as Mt, getCurrentScope as $t, onScopeDispose as Ht, ref as re, watch as Ce } from "vue";
|
|
2
|
+
import { encryption as zt } from "@das-fed/utils/atob";
|
|
3
3
|
import { getConfig as V } from "@das-fed/utils/config";
|
|
4
|
-
import { getAccessToken as H, removeAccessToken as
|
|
4
|
+
import { getAccessToken as H, removeAccessToken as Jt, setAccessToken as Vt, getAccessTokenInfo as de } from "@das-fed/utils/token-tools";
|
|
5
5
|
import { appendQueryParams as xe } from "@das-fed/utils/common-tools";
|
|
6
|
-
import { removeProcessEngineToken as
|
|
6
|
+
import { removeProcessEngineToken as Wt, setProcessEngineToken as Kt } from "@das-fed/utils/process-engine-info";
|
|
7
7
|
import { setPersonalInfo as at } from "@das-fed/utils/common-info/set-personal-info";
|
|
8
8
|
function ct(e, t) {
|
|
9
9
|
return function() {
|
|
10
10
|
return e.apply(t, arguments);
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
const { toString:
|
|
14
|
-
const n =
|
|
13
|
+
const { toString: Qt } = Object.prototype, { getPrototypeOf: Pe } = Object, { iterator: ie, toStringTag: ut } = Symbol, ae = /* @__PURE__ */ ((e) => (t) => {
|
|
14
|
+
const n = Qt.call(t);
|
|
15
15
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
16
16
|
})(/* @__PURE__ */ Object.create(null)), k = (e) => (e = e.toLowerCase(), (t) => ae(t) === e), ce = (e) => (t) => typeof t === e, { isArray: q } = Array, z = ce("undefined");
|
|
17
17
|
function W(e) {
|
|
18
18
|
return e !== null && !z(e) && e.constructor !== null && !z(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
19
19
|
}
|
|
20
20
|
const lt = k("ArrayBuffer");
|
|
21
|
-
function
|
|
21
|
+
function Xt(e) {
|
|
22
22
|
let t;
|
|
23
23
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && lt(e.buffer), t;
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const Gt = ce("string"), A = ce("function"), ft = ce("number"), K = (e) => e !== null && typeof e == "object", Zt = (e) => e === !0 || e === !1, ee = (e) => {
|
|
26
26
|
if (ae(e) !== "object")
|
|
27
27
|
return !1;
|
|
28
28
|
const t = Pe(e);
|
|
29
29
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ut in e) && !(ie in e);
|
|
30
|
-
},
|
|
30
|
+
}, Yt = (e) => {
|
|
31
31
|
if (!K(e) || W(e))
|
|
32
32
|
return !1;
|
|
33
33
|
try {
|
|
@@ -35,11 +35,11 @@ const Xt = ce("string"), A = ce("function"), ft = ce("number"), K = (e) => e !==
|
|
|
35
35
|
} catch {
|
|
36
36
|
return !1;
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, en = k("Date"), tn = k("File"), nn = k("Blob"), rn = k("FileList"), on = (e) => K(e) && A(e.pipe), sn = (e) => {
|
|
39
39
|
let t;
|
|
40
40
|
return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = ae(e)) === "formdata" || // detect form-data instance
|
|
41
41
|
t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
|
|
42
|
-
},
|
|
42
|
+
}, an = k("URLSearchParams"), [cn, un, ln, fn] = ["ReadableStream", "Request", "Response", "Headers"].map(k), dn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
43
43
|
function Q(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
44
44
|
if (e === null || typeof e > "u")
|
|
45
45
|
return;
|
|
@@ -77,13 +77,13 @@ function we() {
|
|
|
77
77
|
arguments[r] && Q(arguments[r], n);
|
|
78
78
|
return t;
|
|
79
79
|
}
|
|
80
|
-
const
|
|
80
|
+
const pn = (e, t, n, { allOwnKeys: r } = {}) => (Q(t, (o, s) => {
|
|
81
81
|
n && A(o) ? e[s] = ct(o, n) : e[s] = o;
|
|
82
|
-
}, { allOwnKeys: r }), e),
|
|
82
|
+
}, { allOwnKeys: r }), e), hn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), mn = (e, t, n, r) => {
|
|
83
83
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
84
84
|
value: t.prototype
|
|
85
85
|
}), n && Object.assign(e.prototype, n);
|
|
86
|
-
},
|
|
86
|
+
}, yn = (e, t, n, r) => {
|
|
87
87
|
let o, s, i;
|
|
88
88
|
const a = {};
|
|
89
89
|
if (t = t || {}, e == null) return t;
|
|
@@ -93,11 +93,11 @@ const dn = (e, t, n, { allOwnKeys: r } = {}) => (Q(t, (o, s) => {
|
|
|
93
93
|
e = n !== !1 && Pe(e);
|
|
94
94
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
95
95
|
return t;
|
|
96
|
-
},
|
|
96
|
+
}, wn = (e, t, n) => {
|
|
97
97
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
98
98
|
const r = e.indexOf(t, n);
|
|
99
99
|
return r !== -1 && r === n;
|
|
100
|
-
},
|
|
100
|
+
}, gn = (e) => {
|
|
101
101
|
if (!e) return null;
|
|
102
102
|
if (q(e)) return e;
|
|
103
103
|
let t = e.length;
|
|
@@ -106,31 +106,31 @@ const dn = (e, t, n, { allOwnKeys: r } = {}) => (Q(t, (o, s) => {
|
|
|
106
106
|
for (; t-- > 0; )
|
|
107
107
|
n[t] = e[t];
|
|
108
108
|
return n;
|
|
109
|
-
},
|
|
109
|
+
}, bn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Pe(Uint8Array)), En = (e, t) => {
|
|
110
110
|
const r = (e && e[ie]).call(e);
|
|
111
111
|
let o;
|
|
112
112
|
for (; (o = r.next()) && !o.done; ) {
|
|
113
113
|
const s = o.value;
|
|
114
114
|
t.call(e, s[0], s[1]);
|
|
115
115
|
}
|
|
116
|
-
},
|
|
116
|
+
}, Rn = (e, t) => {
|
|
117
117
|
let n;
|
|
118
118
|
const r = [];
|
|
119
119
|
for (; (n = e.exec(t)) !== null; )
|
|
120
120
|
r.push(n);
|
|
121
121
|
return r;
|
|
122
|
-
},
|
|
122
|
+
}, Sn = k("HTMLFormElement"), Tn = (e) => e.toLowerCase().replace(
|
|
123
123
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
124
124
|
function(n, r, o) {
|
|
125
125
|
return r.toUpperCase() + o;
|
|
126
126
|
}
|
|
127
|
-
), Fe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype),
|
|
127
|
+
), Fe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), On = k("RegExp"), ht = (e, t) => {
|
|
128
128
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
129
129
|
Q(n, (o, s) => {
|
|
130
130
|
let i;
|
|
131
131
|
(i = t(o, s, e)) !== !1 && (r[s] = i || o);
|
|
132
132
|
}), Object.defineProperties(e, r);
|
|
133
|
-
},
|
|
133
|
+
}, An = (e) => {
|
|
134
134
|
ht(e, (t, n) => {
|
|
135
135
|
if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
136
136
|
return !1;
|
|
@@ -145,19 +145,19 @@ const dn = (e, t, n, { allOwnKeys: r } = {}) => (Q(t, (o, s) => {
|
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
|
-
},
|
|
148
|
+
}, _n = (e, t) => {
|
|
149
149
|
const n = {}, r = (o) => {
|
|
150
150
|
o.forEach((s) => {
|
|
151
151
|
n[s] = !0;
|
|
152
152
|
});
|
|
153
153
|
};
|
|
154
154
|
return q(e) ? r(e) : r(String(e).split(t)), n;
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
function
|
|
155
|
+
}, kn = () => {
|
|
156
|
+
}, Cn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
157
|
+
function xn(e) {
|
|
158
158
|
return !!(e && A(e.append) && e[ut] === "FormData" && e[ie]);
|
|
159
159
|
}
|
|
160
|
-
const
|
|
160
|
+
const Pn = (e) => {
|
|
161
161
|
const t = new Array(10), n = (r, o) => {
|
|
162
162
|
if (K(r)) {
|
|
163
163
|
if (t.indexOf(r) >= 0)
|
|
@@ -176,72 +176,72 @@ const xn = (e) => {
|
|
|
176
176
|
return r;
|
|
177
177
|
};
|
|
178
178
|
return n(e, 0);
|
|
179
|
-
},
|
|
179
|
+
}, Un = k("AsyncFunction"), Ln = (e) => e && (K(e) || A(e)) && A(e.then) && A(e.catch), mt = ((e, t) => e ? setImmediate : t ? ((n, r) => (F.addEventListener("message", ({ source: o, data: s }) => {
|
|
180
180
|
o === F && s === n && r.length && r.shift()();
|
|
181
181
|
}, !1), (o) => {
|
|
182
182
|
r.push(o), F.postMessage(n, "*");
|
|
183
183
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
184
184
|
typeof setImmediate == "function",
|
|
185
185
|
A(F.postMessage)
|
|
186
|
-
),
|
|
186
|
+
), Nn = typeof queueMicrotask < "u" ? queueMicrotask.bind(F) : typeof process < "u" && process.nextTick || mt, In = (e) => e != null && A(e[ie]), c = {
|
|
187
187
|
isArray: q,
|
|
188
188
|
isArrayBuffer: lt,
|
|
189
189
|
isBuffer: W,
|
|
190
|
-
isFormData:
|
|
191
|
-
isArrayBufferView:
|
|
192
|
-
isString:
|
|
190
|
+
isFormData: sn,
|
|
191
|
+
isArrayBufferView: Xt,
|
|
192
|
+
isString: Gt,
|
|
193
193
|
isNumber: ft,
|
|
194
|
-
isBoolean:
|
|
194
|
+
isBoolean: Zt,
|
|
195
195
|
isObject: K,
|
|
196
196
|
isPlainObject: ee,
|
|
197
|
-
isEmptyObject:
|
|
198
|
-
isReadableStream:
|
|
199
|
-
isRequest:
|
|
200
|
-
isResponse:
|
|
201
|
-
isHeaders:
|
|
197
|
+
isEmptyObject: Yt,
|
|
198
|
+
isReadableStream: cn,
|
|
199
|
+
isRequest: un,
|
|
200
|
+
isResponse: ln,
|
|
201
|
+
isHeaders: fn,
|
|
202
202
|
isUndefined: z,
|
|
203
|
-
isDate:
|
|
204
|
-
isFile:
|
|
205
|
-
isBlob:
|
|
206
|
-
isRegExp:
|
|
203
|
+
isDate: en,
|
|
204
|
+
isFile: tn,
|
|
205
|
+
isBlob: nn,
|
|
206
|
+
isRegExp: On,
|
|
207
207
|
isFunction: A,
|
|
208
|
-
isStream:
|
|
209
|
-
isURLSearchParams:
|
|
210
|
-
isTypedArray:
|
|
211
|
-
isFileList:
|
|
208
|
+
isStream: on,
|
|
209
|
+
isURLSearchParams: an,
|
|
210
|
+
isTypedArray: bn,
|
|
211
|
+
isFileList: rn,
|
|
212
212
|
forEach: Q,
|
|
213
213
|
merge: we,
|
|
214
|
-
extend:
|
|
215
|
-
trim:
|
|
216
|
-
stripBOM:
|
|
217
|
-
inherits:
|
|
218
|
-
toFlatObject:
|
|
214
|
+
extend: pn,
|
|
215
|
+
trim: dn,
|
|
216
|
+
stripBOM: hn,
|
|
217
|
+
inherits: mn,
|
|
218
|
+
toFlatObject: yn,
|
|
219
219
|
kindOf: ae,
|
|
220
220
|
kindOfTest: k,
|
|
221
|
-
endsWith:
|
|
222
|
-
toArray:
|
|
223
|
-
forEachEntry:
|
|
224
|
-
matchAll:
|
|
225
|
-
isHTMLForm:
|
|
221
|
+
endsWith: wn,
|
|
222
|
+
toArray: gn,
|
|
223
|
+
forEachEntry: En,
|
|
224
|
+
matchAll: Rn,
|
|
225
|
+
isHTMLForm: Sn,
|
|
226
226
|
hasOwnProperty: Fe,
|
|
227
227
|
hasOwnProp: Fe,
|
|
228
228
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
229
229
|
reduceDescriptors: ht,
|
|
230
|
-
freezeMethods:
|
|
231
|
-
toObjectSet:
|
|
232
|
-
toCamelCase:
|
|
233
|
-
noop:
|
|
234
|
-
toFiniteNumber:
|
|
230
|
+
freezeMethods: An,
|
|
231
|
+
toObjectSet: _n,
|
|
232
|
+
toCamelCase: Tn,
|
|
233
|
+
noop: kn,
|
|
234
|
+
toFiniteNumber: Cn,
|
|
235
235
|
findKey: dt,
|
|
236
236
|
global: F,
|
|
237
237
|
isContextDefined: pt,
|
|
238
|
-
isSpecCompliantForm:
|
|
239
|
-
toJSONObject:
|
|
240
|
-
isAsyncFn:
|
|
241
|
-
isThenable:
|
|
238
|
+
isSpecCompliantForm: xn,
|
|
239
|
+
toJSONObject: Pn,
|
|
240
|
+
isAsyncFn: Un,
|
|
241
|
+
isThenable: Ln,
|
|
242
242
|
setImmediate: mt,
|
|
243
|
-
asap:
|
|
244
|
-
isIterable:
|
|
243
|
+
asap: Nn,
|
|
244
|
+
isIterable: In
|
|
245
245
|
};
|
|
246
246
|
function w(e, t, n, r, o) {
|
|
247
247
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
@@ -293,7 +293,7 @@ w.from = (e, t, n, r, o, s) => {
|
|
|
293
293
|
return f !== Error.prototype;
|
|
294
294
|
}, (a) => a !== "isAxiosError"), w.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
|
|
295
295
|
};
|
|
296
|
-
const
|
|
296
|
+
const Fn = null;
|
|
297
297
|
function ge(e) {
|
|
298
298
|
return c.isPlainObject(e) || c.isArray(e);
|
|
299
299
|
}
|
|
@@ -305,10 +305,10 @@ function ve(e, t, n) {
|
|
|
305
305
|
return o = gt(o), !n && s ? "[" + o + "]" : o;
|
|
306
306
|
}).join(n ? "." : "") : t;
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function vn(e) {
|
|
309
309
|
return c.isArray(e) && !e.some(ge);
|
|
310
310
|
}
|
|
311
|
-
const
|
|
311
|
+
const Dn = c.toFlatObject(c, {}, null, function(t) {
|
|
312
312
|
return /^is[A-Z]/.test(t);
|
|
313
313
|
});
|
|
314
314
|
function ue(e, t, n) {
|
|
@@ -339,7 +339,7 @@ function ue(e, t, n) {
|
|
|
339
339
|
if (p && !h && typeof p == "object") {
|
|
340
340
|
if (c.endsWith(y, "{}"))
|
|
341
341
|
y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
|
|
342
|
-
else if (c.isArray(p) &&
|
|
342
|
+
else if (c.isArray(p) && vn(p) || (c.isFileList(p) || c.endsWith(y, "[]")) && (E = c.toArray(p)))
|
|
343
343
|
return y = gt(y), E.forEach(function(S, x) {
|
|
344
344
|
!(c.isUndefined(S) || S === null) && t.append(
|
|
345
345
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -350,7 +350,7 @@ function ue(e, t, n) {
|
|
|
350
350
|
}
|
|
351
351
|
return ge(p) ? !0 : (t.append(ve(h, y, s), l(p)), !1);
|
|
352
352
|
}
|
|
353
|
-
const d = [], m = Object.assign(
|
|
353
|
+
const d = [], m = Object.assign(Dn, {
|
|
354
354
|
defaultVisitor: u,
|
|
355
355
|
convertValue: l,
|
|
356
356
|
isVisitable: ge
|
|
@@ -403,13 +403,13 @@ bt.toString = function(t) {
|
|
|
403
403
|
return n(o[0]) + "=" + n(o[1]);
|
|
404
404
|
}, "").join("&");
|
|
405
405
|
};
|
|
406
|
-
function
|
|
406
|
+
function Bn(e) {
|
|
407
407
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
408
408
|
}
|
|
409
409
|
function Et(e, t, n) {
|
|
410
410
|
if (!t)
|
|
411
411
|
return e;
|
|
412
|
-
const r = n && n.encode ||
|
|
412
|
+
const r = n && n.encode || Bn;
|
|
413
413
|
c.isFunction(n) && (n = {
|
|
414
414
|
serialize: n
|
|
415
415
|
});
|
|
@@ -479,27 +479,27 @@ const Rt = {
|
|
|
479
479
|
silentJSONParsing: !0,
|
|
480
480
|
forcedJSONParsing: !0,
|
|
481
481
|
clarifyTimeoutError: !1
|
|
482
|
-
},
|
|
482
|
+
}, jn = typeof URLSearchParams < "u" ? URLSearchParams : Ue, qn = typeof FormData < "u" ? FormData : null, Mn = typeof Blob < "u" ? Blob : null, $n = {
|
|
483
483
|
isBrowser: !0,
|
|
484
484
|
classes: {
|
|
485
|
-
URLSearchParams:
|
|
486
|
-
FormData:
|
|
487
|
-
Blob:
|
|
485
|
+
URLSearchParams: jn,
|
|
486
|
+
FormData: qn,
|
|
487
|
+
Blob: Mn
|
|
488
488
|
},
|
|
489
489
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
490
|
-
}, Le = typeof window < "u" && typeof document < "u", be = typeof navigator == "object" && navigator || void 0,
|
|
491
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
490
|
+
}, Le = typeof window < "u" && typeof document < "u", be = typeof navigator == "object" && navigator || void 0, Hn = Le && (!be || ["ReactNative", "NativeScript", "NS"].indexOf(be.product) < 0), zn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
491
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jn = Le && window.location.href || "http://localhost", Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
492
492
|
__proto__: null,
|
|
493
493
|
hasBrowserEnv: Le,
|
|
494
|
-
hasStandardBrowserEnv:
|
|
495
|
-
hasStandardBrowserWebWorkerEnv:
|
|
494
|
+
hasStandardBrowserEnv: Hn,
|
|
495
|
+
hasStandardBrowserWebWorkerEnv: zn,
|
|
496
496
|
navigator: be,
|
|
497
|
-
origin:
|
|
497
|
+
origin: Jn
|
|
498
498
|
}, Symbol.toStringTag, { value: "Module" })), T = {
|
|
499
|
-
...
|
|
500
|
-
|
|
499
|
+
...Vn,
|
|
500
|
+
...$n
|
|
501
501
|
};
|
|
502
|
-
function
|
|
502
|
+
function Wn(e, t) {
|
|
503
503
|
return ue(e, new T.classes.URLSearchParams(), {
|
|
504
504
|
visitor: function(n, r, o, s) {
|
|
505
505
|
return T.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
@@ -507,10 +507,10 @@ function Vn(e, t) {
|
|
|
507
507
|
...t
|
|
508
508
|
});
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function Kn(e) {
|
|
511
511
|
return c.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Qn(e) {
|
|
514
514
|
const t = {}, n = Object.keys(e);
|
|
515
515
|
let r;
|
|
516
516
|
const o = n.length;
|
|
@@ -524,17 +524,17 @@ function St(e) {
|
|
|
524
524
|
let i = n[s++];
|
|
525
525
|
if (i === "__proto__") return !0;
|
|
526
526
|
const a = Number.isFinite(+i), f = s >= n.length;
|
|
527
|
-
return i = !i && c.isArray(o) ? o.length : i, f ? (c.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !a) : ((!o[i] || !c.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && c.isArray(o[i]) && (o[i] =
|
|
527
|
+
return i = !i && c.isArray(o) ? o.length : i, f ? (c.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !a) : ((!o[i] || !c.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && c.isArray(o[i]) && (o[i] = Qn(o[i])), !a);
|
|
528
528
|
}
|
|
529
529
|
if (c.isFormData(e) && c.isFunction(e.entries)) {
|
|
530
530
|
const n = {};
|
|
531
531
|
return c.forEachEntry(e, (r, o) => {
|
|
532
|
-
t(
|
|
532
|
+
t(Kn(r), o, n, 0);
|
|
533
533
|
}), n;
|
|
534
534
|
}
|
|
535
535
|
return null;
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function Xn(e, t, n) {
|
|
538
538
|
if (c.isString(e))
|
|
539
539
|
try {
|
|
540
540
|
return (t || JSON.parse)(e), c.trim(e);
|
|
@@ -560,7 +560,7 @@ const X = {
|
|
|
560
560
|
let a;
|
|
561
561
|
if (s) {
|
|
562
562
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
563
|
-
return
|
|
563
|
+
return Wn(t, this.formSerializer).toString();
|
|
564
564
|
if ((a = c.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
565
565
|
const f = this.env && this.env.FormData;
|
|
566
566
|
return ue(
|
|
@@ -570,7 +570,7 @@ const X = {
|
|
|
570
570
|
);
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
return s || o ? (n.setContentType("application/json", !1),
|
|
573
|
+
return s || o ? (n.setContentType("application/json", !1), Xn(t)) : t;
|
|
574
574
|
}],
|
|
575
575
|
transformResponse: [function(t) {
|
|
576
576
|
const n = this.transitional || X.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
@@ -613,7 +613,7 @@ const X = {
|
|
|
613
613
|
c.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
614
614
|
X.headers[e] = {};
|
|
615
615
|
});
|
|
616
|
-
const
|
|
616
|
+
const Gn = c.toObjectSet([
|
|
617
617
|
"age",
|
|
618
618
|
"authorization",
|
|
619
619
|
"content-length",
|
|
@@ -631,12 +631,12 @@ const Xn = c.toObjectSet([
|
|
|
631
631
|
"referer",
|
|
632
632
|
"retry-after",
|
|
633
633
|
"user-agent"
|
|
634
|
-
]),
|
|
634
|
+
]), Zn = (e) => {
|
|
635
635
|
const t = {};
|
|
636
636
|
let n, r, o;
|
|
637
637
|
return e && e.split(`
|
|
638
638
|
`).forEach(function(i) {
|
|
639
|
-
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] &&
|
|
639
|
+
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && Gn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
640
640
|
}), t;
|
|
641
641
|
}, je = Symbol("internals");
|
|
642
642
|
function $(e) {
|
|
@@ -645,14 +645,14 @@ function $(e) {
|
|
|
645
645
|
function te(e) {
|
|
646
646
|
return e === !1 || e == null ? e : c.isArray(e) ? e.map(te) : String(e);
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Yn(e) {
|
|
649
649
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
650
650
|
let r;
|
|
651
651
|
for (; r = n.exec(e); )
|
|
652
652
|
t[r[1]] = r[2];
|
|
653
653
|
return t;
|
|
654
654
|
}
|
|
655
|
-
const
|
|
655
|
+
const er = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
656
656
|
function pe(e, t, n, r, o) {
|
|
657
657
|
if (c.isFunction(r))
|
|
658
658
|
return r.call(this, t, n);
|
|
@@ -663,10 +663,10 @@ function pe(e, t, n, r, o) {
|
|
|
663
663
|
return r.test(t);
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function tr(e) {
|
|
667
667
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function nr(e, t) {
|
|
670
670
|
const n = c.toCamelCase(" " + t);
|
|
671
671
|
["get", "set", "has"].forEach((r) => {
|
|
672
672
|
Object.defineProperty(e, r + n, {
|
|
@@ -693,8 +693,8 @@ let _ = class {
|
|
|
693
693
|
const i = (a, f) => c.forEach(a, (l, u) => s(l, u, f));
|
|
694
694
|
if (c.isPlainObject(t) || t instanceof this.constructor)
|
|
695
695
|
i(t, n);
|
|
696
|
-
else if (c.isString(t) && (t = t.trim()) && !
|
|
697
|
-
i(
|
|
696
|
+
else if (c.isString(t) && (t = t.trim()) && !er(t))
|
|
697
|
+
i(Zn(t), n);
|
|
698
698
|
else if (c.isObject(t) && c.isIterable(t)) {
|
|
699
699
|
let a = {}, f, l;
|
|
700
700
|
for (const u of t) {
|
|
@@ -715,7 +715,7 @@ let _ = class {
|
|
|
715
715
|
if (!n)
|
|
716
716
|
return o;
|
|
717
717
|
if (n === !0)
|
|
718
|
-
return
|
|
718
|
+
return Yn(o);
|
|
719
719
|
if (c.isFunction(n))
|
|
720
720
|
return n.call(this, o, r);
|
|
721
721
|
if (c.isRegExp(n))
|
|
@@ -759,7 +759,7 @@ let _ = class {
|
|
|
759
759
|
n[i] = te(o), delete n[s];
|
|
760
760
|
return;
|
|
761
761
|
}
|
|
762
|
-
const a = t ?
|
|
762
|
+
const a = t ? tr(s) : String(s).trim();
|
|
763
763
|
a !== s && delete n[s], n[a] = te(o), r[a] = !0;
|
|
764
764
|
}), this;
|
|
765
765
|
}
|
|
@@ -798,7 +798,7 @@ let _ = class {
|
|
|
798
798
|
}).accessors, o = this.prototype;
|
|
799
799
|
function s(i) {
|
|
800
800
|
const a = $(i);
|
|
801
|
-
r[a] || (
|
|
801
|
+
r[a] || (nr(o, i), r[a] = !0);
|
|
802
802
|
}
|
|
803
803
|
return c.isArray(t) ? t.forEach(s) : s(t), this;
|
|
804
804
|
}
|
|
@@ -840,11 +840,11 @@ function Ot(e, t, n) {
|
|
|
840
840
|
n
|
|
841
841
|
));
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function rr(e) {
|
|
844
844
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
845
845
|
return t && t[1] || "";
|
|
846
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function or(e, t) {
|
|
848
848
|
e = e || 10;
|
|
849
849
|
const n = new Array(e), r = new Array(e);
|
|
850
850
|
let o = 0, s = 0, i;
|
|
@@ -860,7 +860,7 @@ function rr(e, t) {
|
|
|
860
860
|
return b ? Math.round(m * 1e3 / b) : void 0;
|
|
861
861
|
};
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function sr(e, t) {
|
|
864
864
|
let n = 0, r = 1e3 / t, o, s;
|
|
865
865
|
const i = (l, u = Date.now()) => {
|
|
866
866
|
n = u, o = null, s && (clearTimeout(s), s = null), e(...l);
|
|
@@ -874,8 +874,8 @@ function or(e, t) {
|
|
|
874
874
|
}
|
|
875
875
|
const oe = (e, t, n = 3) => {
|
|
876
876
|
let r = 0;
|
|
877
|
-
const o =
|
|
878
|
-
return
|
|
877
|
+
const o = or(50, 250);
|
|
878
|
+
return sr((s) => {
|
|
879
879
|
const i = s.loaded, a = s.lengthComputable ? s.total : void 0, f = i - r, l = o(f), u = i <= a;
|
|
880
880
|
r = i;
|
|
881
881
|
const d = {
|
|
@@ -898,10 +898,10 @@ const oe = (e, t, n = 3) => {
|
|
|
898
898
|
total: e,
|
|
899
899
|
loaded: r
|
|
900
900
|
}), t[1]];
|
|
901
|
-
}, Me = (e) => (...t) => c.asap(() => e(...t)),
|
|
901
|
+
}, Me = (e) => (...t) => c.asap(() => e(...t)), ir = 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)))(
|
|
902
902
|
new URL(T.origin),
|
|
903
903
|
T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
|
|
904
|
-
) : () => !0,
|
|
904
|
+
) : () => !0, ar = T.hasStandardBrowserEnv ? (
|
|
905
905
|
// Standard browser envs support document.cookie
|
|
906
906
|
{
|
|
907
907
|
write(e, t, n, r, o, s) {
|
|
@@ -928,15 +928,15 @@ const oe = (e, t, n = 3) => {
|
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
);
|
|
931
|
-
function
|
|
931
|
+
function cr(e) {
|
|
932
932
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function ur(e, t) {
|
|
935
935
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
936
936
|
}
|
|
937
937
|
function At(e, t, n) {
|
|
938
|
-
let r = !
|
|
939
|
-
return e && (r || n == !1) ?
|
|
938
|
+
let r = !cr(t);
|
|
939
|
+
return e && (r || n == !1) ? ur(e, t) : t;
|
|
940
940
|
}
|
|
941
941
|
const $e = (e) => e instanceof _ ? { ...e } : e;
|
|
942
942
|
function B(e, t) {
|
|
@@ -1019,12 +1019,12 @@ const _t = (e) => {
|
|
|
1019
1019
|
i.setContentType([l || "multipart/form-data", ...u].join("; "));
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
|
-
if (T.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 &&
|
|
1023
|
-
const l = o && s &&
|
|
1022
|
+
if (T.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 && ir(t.url))) {
|
|
1023
|
+
const l = o && s && ar.read(s);
|
|
1024
1024
|
l && i.set(o, l);
|
|
1025
1025
|
}
|
|
1026
1026
|
return t;
|
|
1027
|
-
},
|
|
1027
|
+
}, lr = typeof XMLHttpRequest < "u", fr = lr && function(e) {
|
|
1028
1028
|
return new Promise(function(n, r) {
|
|
1029
1029
|
const o = _t(e);
|
|
1030
1030
|
let s = o.data;
|
|
@@ -1074,14 +1074,14 @@ const _t = (e) => {
|
|
|
1074
1074
|
}), c.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), a && a !== "json" && (h.responseType = o.responseType), l && ([m, p] = oe(l, !0), h.addEventListener("progress", m)), f && h.upload && ([d, b] = oe(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", b)), (o.cancelToken || o.signal) && (u = (S) => {
|
|
1075
1075
|
h && (r(!S || S.type ? new M(null, e, h) : S), h.abort(), h = null);
|
|
1076
1076
|
}, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
|
|
1077
|
-
const R =
|
|
1077
|
+
const R = rr(o.url);
|
|
1078
1078
|
if (R && T.protocols.indexOf(R) === -1) {
|
|
1079
1079
|
r(new w("Unsupported protocol " + R + ":", w.ERR_BAD_REQUEST, e));
|
|
1080
1080
|
return;
|
|
1081
1081
|
}
|
|
1082
1082
|
h.send(s || null);
|
|
1083
1083
|
});
|
|
1084
|
-
},
|
|
1084
|
+
}, dr = (e, t) => {
|
|
1085
1085
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1086
1086
|
if (t || n) {
|
|
1087
1087
|
let r = new AbortController(), o;
|
|
@@ -1104,7 +1104,7 @@ const _t = (e) => {
|
|
|
1104
1104
|
const { signal: f } = r;
|
|
1105
1105
|
return f.unsubscribe = () => c.asap(a), f;
|
|
1106
1106
|
}
|
|
1107
|
-
},
|
|
1107
|
+
}, pr = function* (e, t) {
|
|
1108
1108
|
let n = e.byteLength;
|
|
1109
1109
|
if (n < t) {
|
|
1110
1110
|
yield e;
|
|
@@ -1113,10 +1113,10 @@ const _t = (e) => {
|
|
|
1113
1113
|
let r = 0, o;
|
|
1114
1114
|
for (; r < n; )
|
|
1115
1115
|
o = r + t, yield e.slice(r, o), r = o;
|
|
1116
|
-
},
|
|
1117
|
-
for await (const n of
|
|
1118
|
-
yield*
|
|
1119
|
-
},
|
|
1116
|
+
}, hr = async function* (e, t) {
|
|
1117
|
+
for await (const n of mr(e))
|
|
1118
|
+
yield* pr(n, t);
|
|
1119
|
+
}, mr = async function* (e) {
|
|
1120
1120
|
if (e[Symbol.asyncIterator]) {
|
|
1121
1121
|
yield* e;
|
|
1122
1122
|
return;
|
|
@@ -1133,7 +1133,7 @@ const _t = (e) => {
|
|
|
1133
1133
|
await t.cancel();
|
|
1134
1134
|
}
|
|
1135
1135
|
}, He = (e, t, n, r) => {
|
|
1136
|
-
const o =
|
|
1136
|
+
const o = hr(e, t);
|
|
1137
1137
|
let s = 0, i, a = (f) => {
|
|
1138
1138
|
i || (i = !0, r && r(f));
|
|
1139
1139
|
};
|
|
@@ -1161,13 +1161,13 @@ const _t = (e) => {
|
|
|
1161
1161
|
}, {
|
|
1162
1162
|
highWaterMark: 2
|
|
1163
1163
|
});
|
|
1164
|
-
}, le = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", kt = le && typeof ReadableStream == "function",
|
|
1164
|
+
}, le = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", kt = le && typeof ReadableStream == "function", yr = le && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ct = (e, ...t) => {
|
|
1165
1165
|
try {
|
|
1166
1166
|
return !!e(...t);
|
|
1167
1167
|
} catch {
|
|
1168
1168
|
return !1;
|
|
1169
1169
|
}
|
|
1170
|
-
},
|
|
1170
|
+
}, wr = kt && Ct(() => {
|
|
1171
1171
|
let e = !1;
|
|
1172
1172
|
const t = new Request(T.origin, {
|
|
1173
1173
|
body: new ReadableStream(),
|
|
@@ -1187,7 +1187,7 @@ le && ((e) => {
|
|
|
1187
1187
|
});
|
|
1188
1188
|
});
|
|
1189
1189
|
})(new Response());
|
|
1190
|
-
const
|
|
1190
|
+
const gr = async (e) => {
|
|
1191
1191
|
if (e == null)
|
|
1192
1192
|
return 0;
|
|
1193
1193
|
if (c.isBlob(e))
|
|
@@ -1200,11 +1200,11 @@ const wr = async (e) => {
|
|
|
1200
1200
|
if (c.isArrayBufferView(e) || c.isArrayBuffer(e))
|
|
1201
1201
|
return e.byteLength;
|
|
1202
1202
|
if (c.isURLSearchParams(e) && (e = e + ""), c.isString(e))
|
|
1203
|
-
return (await
|
|
1204
|
-
},
|
|
1203
|
+
return (await yr(e)).byteLength;
|
|
1204
|
+
}, br = async (e, t) => {
|
|
1205
1205
|
const n = c.toFiniteNumber(e.getContentLength());
|
|
1206
|
-
return n ??
|
|
1207
|
-
},
|
|
1206
|
+
return n ?? gr(t);
|
|
1207
|
+
}, Er = le && (async (e) => {
|
|
1208
1208
|
let {
|
|
1209
1209
|
url: t,
|
|
1210
1210
|
method: n,
|
|
@@ -1220,13 +1220,13 @@ const wr = async (e) => {
|
|
|
1220
1220
|
fetchOptions: m
|
|
1221
1221
|
} = _t(e);
|
|
1222
1222
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1223
|
-
let b =
|
|
1223
|
+
let b = dr([o, s && s.toAbortSignal()], i), p;
|
|
1224
1224
|
const y = b && b.unsubscribe && (() => {
|
|
1225
1225
|
b.unsubscribe();
|
|
1226
1226
|
});
|
|
1227
1227
|
let h;
|
|
1228
1228
|
try {
|
|
1229
|
-
if (f &&
|
|
1229
|
+
if (f && wr && n !== "get" && n !== "head" && (h = await br(u, r)) !== 0) {
|
|
1230
1230
|
let O = new Request(t, {
|
|
1231
1231
|
method: "POST",
|
|
1232
1232
|
body: r,
|
|
@@ -1290,9 +1290,9 @@ const wr = async (e) => {
|
|
|
1290
1290
|
) : w.from(E, E && E.code, e, p);
|
|
1291
1291
|
}
|
|
1292
1292
|
}), Re = {
|
|
1293
|
-
http:
|
|
1294
|
-
xhr:
|
|
1295
|
-
fetch:
|
|
1293
|
+
http: Fn,
|
|
1294
|
+
xhr: fr,
|
|
1295
|
+
fetch: Er
|
|
1296
1296
|
};
|
|
1297
1297
|
c.forEach(Re, (e, t) => {
|
|
1298
1298
|
if (e) {
|
|
@@ -1303,7 +1303,7 @@ c.forEach(Re, (e, t) => {
|
|
|
1303
1303
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1304
1304
|
}
|
|
1305
1305
|
});
|
|
1306
|
-
const Je = (e) => `- ${e}`,
|
|
1306
|
+
const Je = (e) => `- ${e}`, Rr = (e) => c.isFunction(e) || e === null || e === !1, xt = {
|
|
1307
1307
|
getAdapter: (e) => {
|
|
1308
1308
|
e = c.isArray(e) ? e : [e];
|
|
1309
1309
|
const { length: t } = e;
|
|
@@ -1312,7 +1312,7 @@ const Je = (e) => `- ${e}`, Er = (e) => c.isFunction(e) || e === null || e === !
|
|
|
1312
1312
|
for (let s = 0; s < t; s++) {
|
|
1313
1313
|
n = e[s];
|
|
1314
1314
|
let i;
|
|
1315
|
-
if (r = n, !
|
|
1315
|
+
if (r = n, !Rr(n) && (r = Re[(i = String(n)).toLowerCase()], r === void 0))
|
|
1316
1316
|
throw new w(`Unknown adapter '${i}'`);
|
|
1317
1317
|
if (r)
|
|
1318
1318
|
break;
|
|
@@ -1379,7 +1379,7 @@ fe.transitional = function(t, n, r) {
|
|
|
1379
1379
|
fe.spelling = function(t) {
|
|
1380
1380
|
return (n, r) => !0;
|
|
1381
1381
|
};
|
|
1382
|
-
function
|
|
1382
|
+
function Sr(e, t, n) {
|
|
1383
1383
|
if (typeof e != "object")
|
|
1384
1384
|
throw new w("options must be an object", w.ERR_BAD_OPTION_VALUE);
|
|
1385
1385
|
const r = Object.keys(e);
|
|
@@ -1397,7 +1397,7 @@ function Rr(e, t, n) {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
1399
|
const ne = {
|
|
1400
|
-
assertOptions:
|
|
1400
|
+
assertOptions: Sr,
|
|
1401
1401
|
validators: fe
|
|
1402
1402
|
}, C = ne.validators;
|
|
1403
1403
|
let v = class {
|
|
@@ -1524,7 +1524,7 @@ c.forEach(["post", "put", "patch"], function(t) {
|
|
|
1524
1524
|
}
|
|
1525
1525
|
v.prototype[t] = n(), v.prototype[t + "Form"] = n(!0);
|
|
1526
1526
|
});
|
|
1527
|
-
let
|
|
1527
|
+
let Tr = class Ut {
|
|
1528
1528
|
constructor(t) {
|
|
1529
1529
|
if (typeof t != "function")
|
|
1530
1530
|
throw new TypeError("executor must be a function.");
|
|
@@ -1597,12 +1597,12 @@ let Sr = class Ut {
|
|
|
1597
1597
|
};
|
|
1598
1598
|
}
|
|
1599
1599
|
};
|
|
1600
|
-
function
|
|
1600
|
+
function Or(e) {
|
|
1601
1601
|
return function(n) {
|
|
1602
1602
|
return e.apply(null, n);
|
|
1603
1603
|
};
|
|
1604
1604
|
}
|
|
1605
|
-
function
|
|
1605
|
+
function Ar(e) {
|
|
1606
1606
|
return c.isObject(e) && e.isAxiosError === !0;
|
|
1607
1607
|
}
|
|
1608
1608
|
const Se = {
|
|
@@ -1682,7 +1682,7 @@ function Lt(e) {
|
|
|
1682
1682
|
const g = Lt(X);
|
|
1683
1683
|
g.Axios = v;
|
|
1684
1684
|
g.CanceledError = M;
|
|
1685
|
-
g.CancelToken =
|
|
1685
|
+
g.CancelToken = Tr;
|
|
1686
1686
|
g.isCancel = Tt;
|
|
1687
1687
|
g.VERSION = Pt;
|
|
1688
1688
|
g.toFormData = ue;
|
|
@@ -1691,8 +1691,8 @@ g.Cancel = g.CanceledError;
|
|
|
1691
1691
|
g.all = function(t) {
|
|
1692
1692
|
return Promise.all(t);
|
|
1693
1693
|
};
|
|
1694
|
-
g.spread =
|
|
1695
|
-
g.isAxiosError =
|
|
1694
|
+
g.spread = Or;
|
|
1695
|
+
g.isAxiosError = Ar;
|
|
1696
1696
|
g.mergeConfig = B;
|
|
1697
1697
|
g.AxiosHeaders = _;
|
|
1698
1698
|
g.formToJSON = (e) => St(c.isHTMLForm(e) ? new FormData(e) : e);
|
|
@@ -1726,7 +1726,7 @@ function Z(e) {
|
|
|
1726
1726
|
}
|
|
1727
1727
|
return e;
|
|
1728
1728
|
}
|
|
1729
|
-
var
|
|
1729
|
+
var _r = {
|
|
1730
1730
|
read: function(e) {
|
|
1731
1731
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
1732
1732
|
},
|
|
@@ -1787,14 +1787,14 @@ function Te(e, t) {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
);
|
|
1789
1789
|
}
|
|
1790
|
-
var Oe = Te(
|
|
1791
|
-
const Nt = typeof window < "u",
|
|
1790
|
+
var Oe = Te(_r, { path: "/" }), Ke;
|
|
1791
|
+
const Nt = typeof window < "u", kr = (e) => typeof e == "string", Qe = () => +Date.now(), Ae = () => {
|
|
1792
1792
|
};
|
|
1793
1793
|
Nt && ((Ke = window == null ? void 0 : window.navigator) != null && Ke.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1794
1794
|
function Ne(e) {
|
|
1795
|
-
return typeof e == "function" ? e() :
|
|
1795
|
+
return typeof e == "function" ? e() : Mt(e);
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1797
|
+
function Cr(e, t) {
|
|
1798
1798
|
function n(...r) {
|
|
1799
1799
|
return new Promise((o, s) => {
|
|
1800
1800
|
Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(o).catch(s);
|
|
@@ -1802,7 +1802,7 @@ function kr(e, t) {
|
|
|
1802
1802
|
}
|
|
1803
1803
|
return n;
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1805
|
+
function xr(e, t = !0, n = !0, r = !1) {
|
|
1806
1806
|
let o = 0, s, i = !0, a = Ae, f;
|
|
1807
1807
|
const l = () => {
|
|
1808
1808
|
s && (clearTimeout(s), s = void 0, a(), a = Ae);
|
|
@@ -1816,13 +1816,13 @@ function Cr(e, t = !0, n = !0, r = !1) {
|
|
|
1816
1816
|
})), !n && !s && (s = setTimeout(() => i = !0, m)), i = !1, f);
|
|
1817
1817
|
};
|
|
1818
1818
|
}
|
|
1819
|
-
function xr(e) {
|
|
1820
|
-
return e;
|
|
1821
|
-
}
|
|
1822
1819
|
function Pr(e) {
|
|
1823
|
-
return
|
|
1820
|
+
return e;
|
|
1824
1821
|
}
|
|
1825
1822
|
function Ur(e) {
|
|
1823
|
+
return $t() ? (Ht(e), !0) : !1;
|
|
1824
|
+
}
|
|
1825
|
+
function Lr(e) {
|
|
1826
1826
|
var t;
|
|
1827
1827
|
const n = Ne(e);
|
|
1828
1828
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
@@ -1830,31 +1830,31 @@ function Ur(e) {
|
|
|
1830
1830
|
const It = Nt ? window : void 0;
|
|
1831
1831
|
function Xe(...e) {
|
|
1832
1832
|
let t, n, r, o;
|
|
1833
|
-
if (
|
|
1833
|
+
if (kr(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = It) : [t, n, r, o] = e, !t)
|
|
1834
1834
|
return Ae;
|
|
1835
1835
|
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
|
|
1836
1836
|
const s = [], i = () => {
|
|
1837
1837
|
s.forEach((u) => u()), s.length = 0;
|
|
1838
|
-
}, a = (u, d, m, b) => (u.addEventListener(d, m, b), () => u.removeEventListener(d, m, b)), f = Ce(() => [
|
|
1838
|
+
}, a = (u, d, m, b) => (u.addEventListener(d, m, b), () => u.removeEventListener(d, m, b)), f = Ce(() => [Lr(t), Ne(o)], ([u, d]) => {
|
|
1839
1839
|
i(), u && s.push(...n.flatMap((m) => r.map((b) => a(u, m, b, d))));
|
|
1840
1840
|
}, { immediate: !0, flush: "post" }), l = () => {
|
|
1841
1841
|
f(), i();
|
|
1842
1842
|
};
|
|
1843
|
-
return
|
|
1843
|
+
return Ur(l), l;
|
|
1844
1844
|
}
|
|
1845
1845
|
const Ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ze = "__vueuse_ssr_handlers__";
|
|
1846
1846
|
Ge[Ze] = Ge[Ze] || {};
|
|
1847
|
-
const
|
|
1848
|
-
function
|
|
1847
|
+
const Nr = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], Ir = 6e4;
|
|
1848
|
+
function Fr(e = Ir, t = {}) {
|
|
1849
1849
|
const {
|
|
1850
1850
|
initialState: n = !1,
|
|
1851
1851
|
listenForVisibilityChange: r = !0,
|
|
1852
|
-
events: o =
|
|
1852
|
+
events: o = Nr,
|
|
1853
1853
|
window: s = It,
|
|
1854
|
-
eventFilter: i =
|
|
1854
|
+
eventFilter: i = xr(50)
|
|
1855
1855
|
} = t, a = re(n), f = re(Qe());
|
|
1856
1856
|
let l;
|
|
1857
|
-
const u =
|
|
1857
|
+
const u = Cr(i, () => {
|
|
1858
1858
|
a.value = !1, f.value = Qe(), clearTimeout(l), l = setTimeout(() => a.value = !0, e);
|
|
1859
1859
|
});
|
|
1860
1860
|
if (s) {
|
|
@@ -1871,15 +1871,15 @@ var Ye;
|
|
|
1871
1871
|
(function(e) {
|
|
1872
1872
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
1873
1873
|
})(Ye || (Ye = {}));
|
|
1874
|
-
var
|
|
1874
|
+
var vr = Object.defineProperty, et = Object.getOwnPropertySymbols, Dr = Object.prototype.hasOwnProperty, Br = Object.prototype.propertyIsEnumerable, tt = (e, t, n) => t in e ? vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, jr = (e, t) => {
|
|
1875
1875
|
for (var n in t || (t = {}))
|
|
1876
|
-
|
|
1876
|
+
Dr.call(t, n) && tt(e, n, t[n]);
|
|
1877
1877
|
if (et)
|
|
1878
1878
|
for (var n of et(t))
|
|
1879
|
-
|
|
1879
|
+
Br.call(t, n) && tt(e, n, t[n]);
|
|
1880
1880
|
return e;
|
|
1881
1881
|
};
|
|
1882
|
-
const
|
|
1882
|
+
const qr = {
|
|
1883
1883
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
1884
1884
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
1885
1885
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -1905,11 +1905,11 @@ const jr = {
|
|
|
1905
1905
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
1906
1906
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
1907
1907
|
};
|
|
1908
|
-
|
|
1909
|
-
linear:
|
|
1910
|
-
},
|
|
1908
|
+
jr({
|
|
1909
|
+
linear: Pr
|
|
1910
|
+
}, qr);
|
|
1911
1911
|
let _e;
|
|
1912
|
-
const Ft = { triggerProxySso: "triggerProxySso" },
|
|
1912
|
+
const Ft = { triggerProxySso: "triggerProxySso" }, Mr = () => {
|
|
1913
1913
|
_e = (e) => {
|
|
1914
1914
|
var n;
|
|
1915
1915
|
const { origin: t } = new URL(location.href);
|
|
@@ -1918,13 +1918,13 @@ const Ft = { triggerProxySso: "triggerProxySso" }, qr = () => {
|
|
|
1918
1918
|
t
|
|
1919
1919
|
);
|
|
1920
1920
|
};
|
|
1921
|
-
},
|
|
1921
|
+
}, $r = (e) => {
|
|
1922
1922
|
window.top === window.self && window.addEventListener("message", (t) => {
|
|
1923
1923
|
const { type: n, data: r } = t.data;
|
|
1924
1924
|
n === Ft.triggerProxySso && (e == null || e(r));
|
|
1925
1925
|
});
|
|
1926
1926
|
};
|
|
1927
|
-
window.top !== window.self &&
|
|
1927
|
+
window.top !== window.self && Mr();
|
|
1928
1928
|
let vt = (e = 21) => {
|
|
1929
1929
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e));
|
|
1930
1930
|
for (; e--; ) {
|
|
@@ -1943,7 +1943,7 @@ const U = (e) => new URL(location.href).searchParams.get(e), ke = (e) => {
|
|
|
1943
1943
|
login: "/api/justauth/client/v1/visitor/feishu/login",
|
|
1944
1944
|
ssoParam: "/api/justauth/client/v1/visitor/sso-param"
|
|
1945
1945
|
}
|
|
1946
|
-
},
|
|
1946
|
+
}, Hr = async () => {
|
|
1947
1947
|
const e = U("authorizer") || "", t = U("_redirect_url") || "";
|
|
1948
1948
|
if (ke(["authorizer", "_redirect_url"]), e === "feishu") {
|
|
1949
1949
|
if (!window.tt) return "";
|
|
@@ -1991,21 +1991,21 @@ const U = (e) => new URL(location.href).searchParams.get(e), ke = (e) => {
|
|
|
1991
1991
|
}) : i();
|
|
1992
1992
|
});
|
|
1993
1993
|
}
|
|
1994
|
-
},
|
|
1994
|
+
}, zr = "/api/justauth/client/v1/visitor/sso-param", Jr = {
|
|
1995
1995
|
uat: "https://sso-uat.jmc.com.cn"
|
|
1996
|
-
},
|
|
1997
|
-
const e = localStorage.getItem("thirdLogouSource");
|
|
1998
|
-
return e === "zhongshen" || e === "jmc";
|
|
1999
|
-
},
|
|
1996
|
+
}, Dt = () => {
|
|
1997
|
+
const e = localStorage.getItem("thirdLogouSource"), t = localStorage.getItem("loginType");
|
|
1998
|
+
return e === "jmc" && t === "das" ? !1 : e === "zhongshen" || e === "jmc";
|
|
1999
|
+
}, Bt = (e) => {
|
|
2000
2000
|
localStorage.removeItem("thirdLogouSource"), location.href = e;
|
|
2001
2001
|
}, Vr = (e) => {
|
|
2002
2002
|
const n = `https://iam.shenyejituan.com:443/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=${encodeURIComponent(e)}&entityId=AIoT&redirectToLogin=true`;
|
|
2003
|
-
|
|
2003
|
+
Bt(n);
|
|
2004
2004
|
}, Wr = async () => {
|
|
2005
2005
|
let e = "";
|
|
2006
2006
|
try {
|
|
2007
2007
|
const { baseURL: o } = V();
|
|
2008
|
-
e = (await g.create().get(
|
|
2008
|
+
e = (await g.create().get(zr, {
|
|
2009
2009
|
baseURL: o,
|
|
2010
2010
|
params: {
|
|
2011
2011
|
source: "jmc",
|
|
@@ -2021,13 +2021,14 @@ const U = (e) => new URL(location.href).searchParams.get(e), ke = (e) => {
|
|
|
2021
2021
|
} catch {
|
|
2022
2022
|
return "";
|
|
2023
2023
|
}
|
|
2024
|
-
})(), n = t ===
|
|
2024
|
+
})(), n = t === Jr.uat ? Oe.get("sso_access_token_uat") : Oe.get("sso_access_token"), r = `${t}/oauth2/system/auth/logout?sso_token=${n}`;
|
|
2025
2025
|
try {
|
|
2026
2026
|
await g.post(r);
|
|
2027
2027
|
} catch {
|
|
2028
2028
|
}
|
|
2029
|
-
|
|
2029
|
+
Bt(e);
|
|
2030
2030
|
}, Kr = async (e) => {
|
|
2031
|
+
if (!Dt()) return;
|
|
2031
2032
|
const t = localStorage.getItem("thirdLogouSource");
|
|
2032
2033
|
if (t === "zhongshen") {
|
|
2033
2034
|
Vr(e);
|
|
@@ -2045,19 +2046,19 @@ const U = (e) => new URL(location.href).searchParams.get(e), ke = (e) => {
|
|
|
2045
2046
|
response_type: "code",
|
|
2046
2047
|
scope: "sever",
|
|
2047
2048
|
client_id: "sys",
|
|
2048
|
-
client_secret:
|
|
2049
|
+
client_secret: zt("das123"),
|
|
2049
2050
|
state: +/* @__PURE__ */ new Date()
|
|
2050
|
-
},
|
|
2051
|
+
}, jt = re(!1), qt = (e) => {
|
|
2051
2052
|
if (e <= 0) return;
|
|
2052
|
-
const { idle: t } =
|
|
2053
|
+
const { idle: t } = Fr(e);
|
|
2053
2054
|
Ce(
|
|
2054
2055
|
() => t.value,
|
|
2055
2056
|
(n) => {
|
|
2056
|
-
n === !0 && (
|
|
2057
|
+
n === !0 && (jt.value = !0);
|
|
2057
2058
|
}
|
|
2058
2059
|
);
|
|
2059
2060
|
};
|
|
2060
|
-
localStorage.getItem("idelTime") &&
|
|
2061
|
+
localStorage.getItem("idelTime") && qt(Number(localStorage.getItem("idelTime")));
|
|
2061
2062
|
let it = "";
|
|
2062
2063
|
const Xr = async () => {
|
|
2063
2064
|
const e = U("code") || "", t = U("redirect_url") || "/", n = U("kingdee_token") || "", r = U("loginType") || "";
|
|
@@ -2102,13 +2103,13 @@ const Xr = async () => {
|
|
|
2102
2103
|
};
|
|
2103
2104
|
J().save(d), await at(a);
|
|
2104
2105
|
const m = Number(u) - (/* @__PURE__ */ new Date()).getTime();
|
|
2105
|
-
return m && m > 0 && (
|
|
2106
|
+
return m && m > 0 && (qt(m), m && localStorage.setItem("idelTime", m.toString())), t && (window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t))), localStorage.removeItem("oauth-redirect_url"), a;
|
|
2106
2107
|
} catch {
|
|
2107
2108
|
return D({ ...N, redirect_uri: L });
|
|
2108
2109
|
}
|
|
2109
2110
|
}, Y = re(!1), Oo = async (e) => {
|
|
2110
2111
|
if (e.public) return "";
|
|
2111
|
-
if (
|
|
2112
|
+
if (jt.value)
|
|
2112
2113
|
return D({ ...N, redirect_uri: L });
|
|
2113
2114
|
if (Y.value)
|
|
2114
2115
|
return await new Promise(async (r) => {
|
|
@@ -2128,7 +2129,7 @@ const Xr = async () => {
|
|
|
2128
2129
|
try {
|
|
2129
2130
|
const r = U("code") || "";
|
|
2130
2131
|
if ((U("authorizer") || "") === "feishu")
|
|
2131
|
-
await
|
|
2132
|
+
await Hr();
|
|
2132
2133
|
else if (r)
|
|
2133
2134
|
t = await Xr();
|
|
2134
2135
|
else {
|
|
@@ -2156,7 +2157,7 @@ const D = (e) => {
|
|
|
2156
2157
|
f !== "client_secret" && s.set(f, String(l));
|
|
2157
2158
|
});
|
|
2158
2159
|
const i = s.toString(), a = `${r}${j.oauth}?${i}`;
|
|
2159
|
-
if (localStorage.removeItem("idelTime"), sessionStorage.clear(), J().remove(),
|
|
2160
|
+
if (localStorage.removeItem("idelTime"), sessionStorage.clear(), J().remove(), Dt())
|
|
2160
2161
|
Kr(a);
|
|
2161
2162
|
else {
|
|
2162
2163
|
try {
|
|
@@ -2170,7 +2171,7 @@ const D = (e) => {
|
|
|
2170
2171
|
}
|
|
2171
2172
|
}
|
|
2172
2173
|
};
|
|
2173
|
-
|
|
2174
|
+
$r(D);
|
|
2174
2175
|
const Gr = async (e) => {
|
|
2175
2176
|
const { baseURL: t } = V(), { refreshToken: n } = J().getData();
|
|
2176
2177
|
try {
|
|
@@ -2209,13 +2210,13 @@ const Gr = async (e) => {
|
|
|
2209
2210
|
refreshToken: de("refreshToken")
|
|
2210
2211
|
}),
|
|
2211
2212
|
save: (e) => {
|
|
2212
|
-
|
|
2213
|
+
Vt(e.accessToken ?? "", {
|
|
2213
2214
|
accessTokenExpiredAt: e.accessTokenExpiredAt,
|
|
2214
2215
|
refreshToken: e.refreshToken
|
|
2215
|
-
}),
|
|
2216
|
+
}), Kt(e);
|
|
2216
2217
|
},
|
|
2217
2218
|
remove: () => {
|
|
2218
|
-
|
|
2219
|
+
Jt(), Wt();
|
|
2219
2220
|
}
|
|
2220
2221
|
});
|
|
2221
2222
|
export {
|