@das-fed/upf-utils 6.4.0-dev.272 → 6.4.0-dev.273
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 +595 -574
- package/api-services/index.js +451 -431
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +322 -301
- package/api-services/modules/app-manage/index.js +268 -248
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +1240 -1231
- package/api-services/modules/authentication/index.js +1022 -1020
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +1248 -1215
- package/api-services/modules/bems/index.js +1048 -1010
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +1240 -1231
- package/api-services/modules/contract/index.js +1022 -1020
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +1263 -1254
- package/api-services/modules/duty-manage/index.js +1043 -1041
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +1242 -1230
- package/api-services/modules/enterpriseright/index.js +1022 -1016
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1479 -1446
- package/api-services/modules/file/es5.js +1685 -1655
- package/api-services/modules/file/index.js +1408 -1374
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +1244 -1211
- package/api-services/modules/gateway-edge/index.js +1043 -1005
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1203 -1165
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +1256 -1247
- package/api-services/modules/iot/index.js +1039 -1037
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +329 -308
- package/api-services/modules/justauth/index.js +278 -258
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +356 -335
- package/api-services/modules/knowledge/index.js +292 -272
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +356 -335
- package/api-services/modules/link/index.js +292 -272
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1244 -1211
- package/api-services/modules/permission/index.js +1043 -1005
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +412 -391
- package/api-services/modules/platformManage/index.js +346 -326
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +356 -335
- package/api-services/modules/portal/index.js +292 -272
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +362 -341
- package/api-services/modules/space-manage/index.js +306 -286
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +1054 -1030
- package/api-services/modules/super-admin/index.js +833 -809
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +362 -341
- package/api-services/modules/supplier/index.js +305 -285
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +1240 -1231
- package/api-services/modules/supplychain-manage/index.js +1022 -1020
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +1256 -1226
- package/api-services/modules/systemConfiguration/index.js +1043 -1009
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +1240 -1231
- package/api-services/modules/tool/index.js +1022 -1020
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +327 -306
- package/api-services/src/create-service/index.js +277 -257
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +431 -410
- package/common-info/getPermissionMethod/es5.js +1550 -1517
- package/common-info/getPermissionMethod/index.js +1308 -1270
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.js +374 -354
- package/common-info/index.js.gz +0 -0
- package/create-api-service/es5.js +328 -307
- package/create-api-service/index.js +278 -258
- package/create-api-service/index.js.gz +0 -0
- package/package.json +3 -3
package/common-info/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getConfig as
|
|
1
|
+
import { getConfig as Ne } from "@das-fed/upf-utils/config";
|
|
2
2
|
import { getAccessToken as fn } from "@das-fed/upf-utils/token-tools";
|
|
3
3
|
import { getTokenFromQuery as bo, getProjectInfoFromQuery as Eo } from "@das-fed/upf-utils/common-info/getInfoFromUrl";
|
|
4
4
|
import { curringHttp as Oo } from "@das-fed/upf-utils/curring-http";
|
|
@@ -16,37 +16,37 @@ function dn(e, t) {
|
|
|
16
16
|
return e.apply(t, arguments);
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
const { toString:
|
|
20
|
-
const r =
|
|
19
|
+
const { toString: Uo } = Object.prototype, { getPrototypeOf: Gt } = Object, { iterator: et, toStringTag: yn } = Symbol, tt = /* @__PURE__ */ ((e) => (t) => {
|
|
20
|
+
const r = Uo.call(t);
|
|
21
21
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
22
|
-
})(/* @__PURE__ */ Object.create(null)), j = (e) => (e = e.toLowerCase(), (t) =>
|
|
23
|
-
function
|
|
22
|
+
})(/* @__PURE__ */ Object.create(null)), j = (e) => (e = e.toLowerCase(), (t) => tt(t) === e), rt = (e) => (t) => typeof t === e, { isArray: ge } = Array, ye = rt("undefined");
|
|
23
|
+
function xe(e) {
|
|
24
24
|
return e !== null && !ye(e) && e.constructor !== null && !ye(e.constructor) && D(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
25
25
|
}
|
|
26
26
|
const mn = j("ArrayBuffer");
|
|
27
|
-
function
|
|
27
|
+
function Lo(e) {
|
|
28
28
|
let t;
|
|
29
29
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && mn(e.buffer), t;
|
|
30
30
|
}
|
|
31
|
-
const Mo =
|
|
32
|
-
if (
|
|
31
|
+
const Mo = rt("string"), D = rt("function"), hn = rt("number"), _e = (e) => e !== null && typeof e == "object", Bo = (e) => e === !0 || e === !1, ze = (e) => {
|
|
32
|
+
if (tt(e) !== "object")
|
|
33
33
|
return !1;
|
|
34
34
|
const t = Gt(e);
|
|
35
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(yn in e) && !(
|
|
35
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(yn in e) && !(et in e);
|
|
36
36
|
}, ko = (e) => {
|
|
37
|
-
if (!
|
|
37
|
+
if (!_e(e) || xe(e))
|
|
38
38
|
return !1;
|
|
39
39
|
try {
|
|
40
40
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
41
41
|
} catch {
|
|
42
42
|
return !1;
|
|
43
43
|
}
|
|
44
|
-
}, jo = j("Date"), qo = j("File"), zo = j("Blob"), Ho = j("FileList"), Wo = (e) =>
|
|
44
|
+
}, jo = j("Date"), qo = j("File"), zo = j("Blob"), Ho = j("FileList"), Wo = (e) => _e(e) && D(e.pipe), Jo = (e) => {
|
|
45
45
|
let t;
|
|
46
|
-
return e && (typeof FormData == "function" && e instanceof FormData || D(e.append) && ((t =
|
|
46
|
+
return e && (typeof FormData == "function" && e instanceof FormData || D(e.append) && ((t = tt(e)) === "formdata" || // detect form-data instance
|
|
47
47
|
t === "object" && D(e.toString) && e.toString() === "[object FormData]"));
|
|
48
48
|
}, Go = j("URLSearchParams"), [Zo, Vo, Ko, Qo] = ["ReadableStream", "Request", "Response", "Headers"].map(j), Xo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
49
|
-
function
|
|
49
|
+
function Fe(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
50
50
|
if (e === null || typeof e > "u")
|
|
51
51
|
return;
|
|
52
52
|
let n, o;
|
|
@@ -54,7 +54,7 @@ function _e(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
|
54
54
|
for (n = 0, o = e.length; n < o; n++)
|
|
55
55
|
t.call(null, e[n], n, e);
|
|
56
56
|
else {
|
|
57
|
-
if (
|
|
57
|
+
if (xe(e))
|
|
58
58
|
return;
|
|
59
59
|
const i = r ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length;
|
|
60
60
|
let s;
|
|
@@ -63,7 +63,7 @@ function _e(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
function gn(e, t) {
|
|
66
|
-
if (
|
|
66
|
+
if (xe(e))
|
|
67
67
|
return null;
|
|
68
68
|
t = t.toLowerCase();
|
|
69
69
|
const r = Object.keys(e);
|
|
@@ -74,16 +74,16 @@ function gn(e, t) {
|
|
|
74
74
|
return null;
|
|
75
75
|
}
|
|
76
76
|
const te = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Sn = (e) => !ye(e) && e !== te;
|
|
77
|
-
function
|
|
77
|
+
function $t() {
|
|
78
78
|
const { caseless: e, skipUndefined: t } = Sn(this) && this || {}, r = {}, n = (o, i) => {
|
|
79
79
|
const a = e && gn(r, i) || i;
|
|
80
|
-
|
|
80
|
+
ze(r[a]) && ze(o) ? r[a] = $t(r[a], o) : ze(o) ? r[a] = $t({}, o) : ge(o) ? r[a] = o.slice() : (!t || !ye(o)) && (r[a] = o);
|
|
81
81
|
};
|
|
82
82
|
for (let o = 0, i = arguments.length; o < i; o++)
|
|
83
|
-
arguments[o] &&
|
|
83
|
+
arguments[o] && Fe(arguments[o], n);
|
|
84
84
|
return r;
|
|
85
85
|
}
|
|
86
|
-
const Yo = (e, t, r, { allOwnKeys: n } = {}) => (
|
|
86
|
+
const Yo = (e, t, r, { allOwnKeys: n } = {}) => (Fe(t, (o, i) => {
|
|
87
87
|
r && D(o) ? e[i] = dn(o, r) : e[i] = o;
|
|
88
88
|
}, { allOwnKeys: n }), e), ei = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), ti = (e, t, r, n) => {
|
|
89
89
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
@@ -113,7 +113,7 @@ const Yo = (e, t, r, { allOwnKeys: n } = {}) => (_e(t, (o, i) => {
|
|
|
113
113
|
r[t] = e[t];
|
|
114
114
|
return r;
|
|
115
115
|
}, ii = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Gt(Uint8Array)), ai = (e, t) => {
|
|
116
|
-
const n = (e && e[
|
|
116
|
+
const n = (e && e[et]).call(e);
|
|
117
117
|
let o;
|
|
118
118
|
for (; (o = n.next()) && !o.done; ) {
|
|
119
119
|
const i = o.value;
|
|
@@ -132,7 +132,7 @@ const Yo = (e, t, r, { allOwnKeys: n } = {}) => (_e(t, (o, i) => {
|
|
|
132
132
|
}
|
|
133
133
|
), cr = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), ui = j("RegExp"), vn = (e, t) => {
|
|
134
134
|
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
135
|
-
|
|
135
|
+
Fe(r, (o, i) => {
|
|
136
136
|
let a;
|
|
137
137
|
(a = t(o, i, e)) !== !1 && (n[i] = a || o);
|
|
138
138
|
}), Object.defineProperties(e, n);
|
|
@@ -161,19 +161,19 @@ const Yo = (e, t, r, { allOwnKeys: n } = {}) => (_e(t, (o, i) => {
|
|
|
161
161
|
}, di = () => {
|
|
162
162
|
}, yi = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
163
163
|
function mi(e) {
|
|
164
|
-
return !!(e && D(e.append) && e[yn] === "FormData" && e[
|
|
164
|
+
return !!(e && D(e.append) && e[yn] === "FormData" && e[et]);
|
|
165
165
|
}
|
|
166
166
|
const hi = (e) => {
|
|
167
167
|
const t = new Array(10), r = (n, o) => {
|
|
168
|
-
if (
|
|
168
|
+
if (_e(n)) {
|
|
169
169
|
if (t.indexOf(n) >= 0)
|
|
170
170
|
return;
|
|
171
|
-
if (
|
|
171
|
+
if (xe(n))
|
|
172
172
|
return n;
|
|
173
173
|
if (!("toJSON" in n)) {
|
|
174
174
|
t[o] = n;
|
|
175
175
|
const i = ge(n) ? [] : {};
|
|
176
|
-
return
|
|
176
|
+
return Fe(n, (a, s) => {
|
|
177
177
|
const c = r(a, o + 1);
|
|
178
178
|
!ye(c) && (i[s] = c);
|
|
179
179
|
}), t[o] = void 0, i;
|
|
@@ -182,24 +182,24 @@ const hi = (e) => {
|
|
|
182
182
|
return n;
|
|
183
183
|
};
|
|
184
184
|
return r(e, 0);
|
|
185
|
-
}, gi = j("AsyncFunction"), Si = (e) => e && (
|
|
185
|
+
}, gi = j("AsyncFunction"), Si = (e) => e && (_e(e) || D(e)) && D(e.then) && D(e.catch), wn = ((e, t) => e ? setImmediate : t ? ((r, n) => (te.addEventListener("message", ({ source: o, data: i }) => {
|
|
186
186
|
o === te && i === r && n.length && n.shift()();
|
|
187
187
|
}, !1), (o) => {
|
|
188
188
|
n.push(o), te.postMessage(r, "*");
|
|
189
189
|
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
190
190
|
typeof setImmediate == "function",
|
|
191
191
|
D(te.postMessage)
|
|
192
|
-
), vi = typeof queueMicrotask < "u" ? queueMicrotask.bind(te) : typeof process < "u" && process.nextTick || wn, wi = (e) => e != null && D(e[
|
|
192
|
+
), vi = typeof queueMicrotask < "u" ? queueMicrotask.bind(te) : typeof process < "u" && process.nextTick || wn, wi = (e) => e != null && D(e[et]), f = {
|
|
193
193
|
isArray: ge,
|
|
194
194
|
isArrayBuffer: mn,
|
|
195
|
-
isBuffer:
|
|
195
|
+
isBuffer: xe,
|
|
196
196
|
isFormData: Jo,
|
|
197
|
-
isArrayBufferView:
|
|
197
|
+
isArrayBufferView: Lo,
|
|
198
198
|
isString: Mo,
|
|
199
199
|
isNumber: hn,
|
|
200
200
|
isBoolean: Bo,
|
|
201
|
-
isObject:
|
|
202
|
-
isPlainObject:
|
|
201
|
+
isObject: _e,
|
|
202
|
+
isPlainObject: ze,
|
|
203
203
|
isEmptyObject: ko,
|
|
204
204
|
isReadableStream: Zo,
|
|
205
205
|
isRequest: Vo,
|
|
@@ -215,14 +215,14 @@ const hi = (e) => {
|
|
|
215
215
|
isURLSearchParams: Go,
|
|
216
216
|
isTypedArray: ii,
|
|
217
217
|
isFileList: Ho,
|
|
218
|
-
forEach:
|
|
219
|
-
merge:
|
|
218
|
+
forEach: Fe,
|
|
219
|
+
merge: $t,
|
|
220
220
|
extend: Yo,
|
|
221
221
|
trim: Xo,
|
|
222
222
|
stripBOM: ei,
|
|
223
223
|
inherits: ti,
|
|
224
224
|
toFlatObject: ri,
|
|
225
|
-
kindOf:
|
|
225
|
+
kindOf: tt,
|
|
226
226
|
kindOfTest: j,
|
|
227
227
|
endsWith: ni,
|
|
228
228
|
toArray: oi,
|
|
@@ -302,7 +302,7 @@ v.from = (e, t, r, n, o, i) => {
|
|
|
302
302
|
return v.call(a, s, c, r, n, o), e && a.cause == null && Object.defineProperty(a, "cause", { value: e, configurable: !0 }), a.name = e && e.name || "Error", i && Object.assign(a, i), a;
|
|
303
303
|
};
|
|
304
304
|
const bi = null;
|
|
305
|
-
function
|
|
305
|
+
function Ut(e) {
|
|
306
306
|
return f.isPlainObject(e) || f.isArray(e);
|
|
307
307
|
}
|
|
308
308
|
function On(e) {
|
|
@@ -314,12 +314,12 @@ function lr(e, t, r) {
|
|
|
314
314
|
}).join(r ? "." : "") : t;
|
|
315
315
|
}
|
|
316
316
|
function Ei(e) {
|
|
317
|
-
return f.isArray(e) && !e.some(
|
|
317
|
+
return f.isArray(e) && !e.some(Ut);
|
|
318
318
|
}
|
|
319
319
|
const Oi = f.toFlatObject(f, {}, null, function(t) {
|
|
320
320
|
return /^is[A-Z]/.test(t);
|
|
321
321
|
});
|
|
322
|
-
function
|
|
322
|
+
function nt(e, t, r) {
|
|
323
323
|
if (!f.isObject(e))
|
|
324
324
|
throw new TypeError("target must be an object");
|
|
325
325
|
t = t || new FormData(), r = f.toFlatObject(r, {
|
|
@@ -356,12 +356,12 @@ function rt(e, t, r) {
|
|
|
356
356
|
);
|
|
357
357
|
}), !1;
|
|
358
358
|
}
|
|
359
|
-
return
|
|
359
|
+
return Ut(d) ? !0 : (t.append(lr(m, h, i), u(d)), !1);
|
|
360
360
|
}
|
|
361
361
|
const p = [], y = Object.assign(Oi, {
|
|
362
362
|
defaultVisitor: l,
|
|
363
363
|
convertValue: u,
|
|
364
|
-
isVisitable:
|
|
364
|
+
isVisitable: Ut
|
|
365
365
|
});
|
|
366
366
|
function S(d, h) {
|
|
367
367
|
if (!f.isUndefined(d)) {
|
|
@@ -397,7 +397,7 @@ function ur(e) {
|
|
|
397
397
|
});
|
|
398
398
|
}
|
|
399
399
|
function Zt(e, t) {
|
|
400
|
-
this._pairs = [], e &&
|
|
400
|
+
this._pairs = [], e && nt(e, this, t);
|
|
401
401
|
}
|
|
402
402
|
const An = Zt.prototype;
|
|
403
403
|
An.append = function(t, r) {
|
|
@@ -508,7 +508,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", xi
|
|
|
508
508
|
...Ii
|
|
509
509
|
};
|
|
510
510
|
function Fi(e, t) {
|
|
511
|
-
return
|
|
511
|
+
return nt(e, new F.classes.URLSearchParams(), {
|
|
512
512
|
visitor: function(r, n, o, i) {
|
|
513
513
|
return F.isNode && f.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
514
514
|
},
|
|
@@ -542,7 +542,7 @@ function Tn(e) {
|
|
|
542
542
|
}
|
|
543
543
|
return null;
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function Ui(e, t, r) {
|
|
546
546
|
if (f.isString(e))
|
|
547
547
|
try {
|
|
548
548
|
return (t || JSON.parse)(e), f.trim(e);
|
|
@@ -552,7 +552,7 @@ function Li(e, t, r) {
|
|
|
552
552
|
}
|
|
553
553
|
return (r || JSON.stringify)(e);
|
|
554
554
|
}
|
|
555
|
-
const
|
|
555
|
+
const De = {
|
|
556
556
|
transitional: Pn,
|
|
557
557
|
adapter: ["xhr", "http", "fetch"],
|
|
558
558
|
transformRequest: [function(t, r) {
|
|
@@ -571,17 +571,17 @@ const Fe = {
|
|
|
571
571
|
return Fi(t, this.formSerializer).toString();
|
|
572
572
|
if ((s = f.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
573
573
|
const c = this.env && this.env.FormData;
|
|
574
|
-
return
|
|
574
|
+
return nt(
|
|
575
575
|
s ? { "files[]": t } : t,
|
|
576
576
|
c && new c(),
|
|
577
577
|
this.formSerializer
|
|
578
578
|
);
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
return i || o ? (r.setContentType("application/json", !1),
|
|
581
|
+
return i || o ? (r.setContentType("application/json", !1), Ui(t)) : t;
|
|
582
582
|
}],
|
|
583
583
|
transformResponse: [function(t) {
|
|
584
|
-
const r = this.transitional ||
|
|
584
|
+
const r = this.transitional || De.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
|
|
585
585
|
if (f.isResponse(t) || f.isReadableStream(t))
|
|
586
586
|
return t;
|
|
587
587
|
if (t && f.isString(t) && (n && !this.responseType || o)) {
|
|
@@ -619,9 +619,9 @@ const Fe = {
|
|
|
619
619
|
}
|
|
620
620
|
};
|
|
621
621
|
f.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
622
|
-
|
|
622
|
+
De.headers[e] = {};
|
|
623
623
|
});
|
|
624
|
-
const
|
|
624
|
+
const Li = f.toObjectSet([
|
|
625
625
|
"age",
|
|
626
626
|
"authorization",
|
|
627
627
|
"content-length",
|
|
@@ -644,14 +644,14 @@ const Ui = f.toObjectSet([
|
|
|
644
644
|
let r, n, o;
|
|
645
645
|
return e && e.split(`
|
|
646
646
|
`).forEach(function(a) {
|
|
647
|
-
o = a.indexOf(":"), r = a.substring(0, o).trim().toLowerCase(), n = a.substring(o + 1).trim(), !(!r || t[r] &&
|
|
647
|
+
o = a.indexOf(":"), r = a.substring(0, o).trim().toLowerCase(), n = a.substring(o + 1).trim(), !(!r || t[r] && Li[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
|
|
648
648
|
}), t;
|
|
649
649
|
}, pr = Symbol("internals");
|
|
650
650
|
function Ee(e) {
|
|
651
651
|
return e && String(e).trim().toLowerCase();
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
return e === !1 || e == null ? e : f.isArray(e) ? e.map(
|
|
653
|
+
function He(e) {
|
|
654
|
+
return e === !1 || e == null ? e : f.isArray(e) ? e.map(He) : String(e);
|
|
655
655
|
}
|
|
656
656
|
function Bi(e) {
|
|
657
657
|
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -661,7 +661,7 @@ function Bi(e) {
|
|
|
661
661
|
return t;
|
|
662
662
|
}
|
|
663
663
|
const ki = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
664
|
-
function
|
|
664
|
+
function ft(e, t, r, n, o) {
|
|
665
665
|
if (f.isFunction(n))
|
|
666
666
|
return n.call(this, t, r);
|
|
667
667
|
if (o && (t = r), !!f.isString(t)) {
|
|
@@ -696,7 +696,7 @@ class $ {
|
|
|
696
696
|
if (!l)
|
|
697
697
|
throw new Error("header name must be a non-empty string");
|
|
698
698
|
const p = f.findKey(o, l);
|
|
699
|
-
(!p || o[p] === void 0 || u === !0 || u === void 0 && o[p] !== !1) && (o[p || c] =
|
|
699
|
+
(!p || o[p] === void 0 || u === !0 || u === void 0 && o[p] !== !1) && (o[p || c] = He(s));
|
|
700
700
|
}
|
|
701
701
|
const a = (s, c) => f.forEach(s, (u, l) => i(u, l, c));
|
|
702
702
|
if (f.isPlainObject(t) || t instanceof this.constructor)
|
|
@@ -735,7 +735,7 @@ class $ {
|
|
|
735
735
|
has(t, r) {
|
|
736
736
|
if (t = Ee(t), t) {
|
|
737
737
|
const n = f.findKey(this, t);
|
|
738
|
-
return !!(n && this[n] !== void 0 && (!r ||
|
|
738
|
+
return !!(n && this[n] !== void 0 && (!r || ft(this, this[n], n, r)));
|
|
739
739
|
}
|
|
740
740
|
return !1;
|
|
741
741
|
}
|
|
@@ -745,7 +745,7 @@ class $ {
|
|
|
745
745
|
function i(a) {
|
|
746
746
|
if (a = Ee(a), a) {
|
|
747
747
|
const s = f.findKey(n, a);
|
|
748
|
-
s && (!r ||
|
|
748
|
+
s && (!r || ft(n, n[s], s, r)) && (delete n[s], o = !0);
|
|
749
749
|
}
|
|
750
750
|
}
|
|
751
751
|
return f.isArray(t) ? t.forEach(i) : i(t), o;
|
|
@@ -755,7 +755,7 @@ class $ {
|
|
|
755
755
|
let n = r.length, o = !1;
|
|
756
756
|
for (; n--; ) {
|
|
757
757
|
const i = r[n];
|
|
758
|
-
(!t ||
|
|
758
|
+
(!t || ft(this, this[i], i, t, !0)) && (delete this[i], o = !0);
|
|
759
759
|
}
|
|
760
760
|
return o;
|
|
761
761
|
}
|
|
@@ -764,11 +764,11 @@ class $ {
|
|
|
764
764
|
return f.forEach(this, (o, i) => {
|
|
765
765
|
const a = f.findKey(n, i);
|
|
766
766
|
if (a) {
|
|
767
|
-
r[a] =
|
|
767
|
+
r[a] = He(o), delete r[i];
|
|
768
768
|
return;
|
|
769
769
|
}
|
|
770
770
|
const s = t ? ji(i) : String(i).trim();
|
|
771
|
-
s !== i && delete r[i], r[s] =
|
|
771
|
+
s !== i && delete r[i], r[s] = He(o), n[s] = !0;
|
|
772
772
|
}), this;
|
|
773
773
|
}
|
|
774
774
|
concat(...t) {
|
|
@@ -822,8 +822,8 @@ f.reduceDescriptors($.prototype, ({ value: e }, t) => {
|
|
|
822
822
|
};
|
|
823
823
|
});
|
|
824
824
|
f.freezeMethods($);
|
|
825
|
-
function
|
|
826
|
-
const r = this ||
|
|
825
|
+
function pt(e, t) {
|
|
826
|
+
const r = this || De, n = t || r, o = $.from(n.headers);
|
|
827
827
|
let i = n.data;
|
|
828
828
|
return f.forEach(e, function(s) {
|
|
829
829
|
i = s.call(r, i, o.normalize(), t ? t.status : void 0);
|
|
@@ -880,7 +880,7 @@ function Wi(e, t) {
|
|
|
880
880
|
}, n - p)));
|
|
881
881
|
}, () => o && a(o)];
|
|
882
882
|
}
|
|
883
|
-
const
|
|
883
|
+
const Ve = (e, t, r = 3) => {
|
|
884
884
|
let n = 0;
|
|
885
885
|
const o = Hi(50, 250);
|
|
886
886
|
return Wi((i) => {
|
|
@@ -1069,8 +1069,8 @@ const xn = (e) => {
|
|
|
1069
1069
|
}, m.onabort = function() {
|
|
1070
1070
|
m && (n(new v("Request aborted", v.ECONNABORTED, e, m)), m = null);
|
|
1071
1071
|
}, m.onerror = function(E) {
|
|
1072
|
-
const P = E && E.message ? E.message : "Network Error",
|
|
1073
|
-
|
|
1072
|
+
const P = E && E.message ? E.message : "Network Error", U = new v(P, v.ERR_NETWORK, e, m);
|
|
1073
|
+
U.event = E || null, n(U), m = null;
|
|
1074
1074
|
}, m.ontimeout = function() {
|
|
1075
1075
|
let E = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1076
1076
|
const P = o.transitional || Pn;
|
|
@@ -1082,7 +1082,7 @@ const xn = (e) => {
|
|
|
1082
1082
|
)), m = null;
|
|
1083
1083
|
}, i === void 0 && a.setContentType(null), "setRequestHeader" in m && f.forEach(a.toJSON(), function(E, P) {
|
|
1084
1084
|
m.setRequestHeader(P, E);
|
|
1085
|
-
}), f.isUndefined(o.withCredentials) || (m.withCredentials = !!o.withCredentials), s && s !== "json" && (m.responseType = o.responseType), u && ([y, d] =
|
|
1085
|
+
}), f.isUndefined(o.withCredentials) || (m.withCredentials = !!o.withCredentials), s && s !== "json" && (m.responseType = o.responseType), u && ([y, d] = Ve(u, !0), m.addEventListener("progress", y)), c && m.upload && ([p, S] = Ve(c), m.upload.addEventListener("progress", p), m.upload.addEventListener("loadend", S)), (o.cancelToken || o.signal) && (l = (g) => {
|
|
1086
1086
|
m && (n(!g || g.type ? new Se(null, e, m) : g), m.abort(), m = null);
|
|
1087
1087
|
}, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
|
|
1088
1088
|
const O = zi(o.url);
|
|
@@ -1172,7 +1172,7 @@ const xn = (e) => {
|
|
|
1172
1172
|
}, {
|
|
1173
1173
|
highWaterMark: 2
|
|
1174
1174
|
});
|
|
1175
|
-
}, gr = 64 * 1024, { isFunction:
|
|
1175
|
+
}, gr = 64 * 1024, { isFunction: Be } = f, ra = (({ Request: e, Response: t }) => ({
|
|
1176
1176
|
Request: e,
|
|
1177
1177
|
Response: t
|
|
1178
1178
|
}))(f.global), {
|
|
@@ -1188,10 +1188,10 @@ const xn = (e) => {
|
|
|
1188
1188
|
e = f.merge.call({
|
|
1189
1189
|
skipUndefined: !0
|
|
1190
1190
|
}, ra, e);
|
|
1191
|
-
const { fetch: t, Request: r, Response: n } = e, o = t ?
|
|
1191
|
+
const { fetch: t, Request: r, Response: n } = e, o = t ? Be(t) : typeof fetch == "function", i = Be(r), a = Be(n);
|
|
1192
1192
|
if (!o)
|
|
1193
1193
|
return !1;
|
|
1194
|
-
const s = o &&
|
|
1194
|
+
const s = o && Be(Sr), c = o && (typeof vr == "function" ? /* @__PURE__ */ ((d) => (h) => d.encode(h))(new vr()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), u = i && s && wr(() => {
|
|
1195
1195
|
let d = !1;
|
|
1196
1196
|
const h = new r(F.origin, {
|
|
1197
1197
|
body: new Sr(),
|
|
@@ -1239,10 +1239,10 @@ const xn = (e) => {
|
|
|
1239
1239
|
cancelToken: g,
|
|
1240
1240
|
timeout: E,
|
|
1241
1241
|
onDownloadProgress: P,
|
|
1242
|
-
onUploadProgress:
|
|
1242
|
+
onUploadProgress: U,
|
|
1243
1243
|
responseType: T,
|
|
1244
1244
|
headers: V,
|
|
1245
|
-
withCredentials:
|
|
1245
|
+
withCredentials: L = "same-origin",
|
|
1246
1246
|
fetchOptions: B
|
|
1247
1247
|
} = xn(d), Y = t || fetch;
|
|
1248
1248
|
T = T ? (T + "").toLowerCase() : "text";
|
|
@@ -1252,21 +1252,21 @@ const xn = (e) => {
|
|
|
1252
1252
|
});
|
|
1253
1253
|
let M;
|
|
1254
1254
|
try {
|
|
1255
|
-
if (
|
|
1255
|
+
if (U && u && m !== "get" && m !== "head" && (M = await S(V, b)) !== 0) {
|
|
1256
1256
|
let K = new r(h, {
|
|
1257
1257
|
method: "POST",
|
|
1258
1258
|
body: b,
|
|
1259
1259
|
duplex: "half"
|
|
1260
1260
|
}), ce;
|
|
1261
1261
|
if (f.isFormData(b) && (ce = K.headers.get("content-type")) && V.setContentType(ce), K.body) {
|
|
1262
|
-
const [
|
|
1262
|
+
const [ut, Me] = dr(
|
|
1263
1263
|
M,
|
|
1264
|
-
|
|
1264
|
+
Ve(yr(U))
|
|
1265
1265
|
);
|
|
1266
|
-
b = hr(K.body, gr,
|
|
1266
|
+
b = hr(K.body, gr, ut, Me);
|
|
1267
1267
|
}
|
|
1268
1268
|
}
|
|
1269
|
-
f.isString(
|
|
1269
|
+
f.isString(L) || (L = L ? "include" : "omit");
|
|
1270
1270
|
const _ = i && "credentials" in r.prototype, se = {
|
|
1271
1271
|
...B,
|
|
1272
1272
|
signal: k,
|
|
@@ -1274,7 +1274,7 @@ const xn = (e) => {
|
|
|
1274
1274
|
headers: V.normalize().toJSON(),
|
|
1275
1275
|
body: b,
|
|
1276
1276
|
duplex: "half",
|
|
1277
|
-
credentials: _ ?
|
|
1277
|
+
credentials: _ ? L : void 0
|
|
1278
1278
|
};
|
|
1279
1279
|
N = i && new r(h, se);
|
|
1280
1280
|
let q = await (i ? Y(N, B) : Y(h, se));
|
|
@@ -1284,13 +1284,13 @@ const xn = (e) => {
|
|
|
1284
1284
|
["status", "statusText", "headers"].forEach((sr) => {
|
|
1285
1285
|
K[sr] = q[sr];
|
|
1286
1286
|
});
|
|
1287
|
-
const ce = f.toFiniteNumber(q.headers.get("content-length")), [
|
|
1287
|
+
const ce = f.toFiniteNumber(q.headers.get("content-length")), [ut, Me] = P && dr(
|
|
1288
1288
|
ce,
|
|
1289
|
-
|
|
1289
|
+
Ve(yr(P), !0)
|
|
1290
1290
|
) || [];
|
|
1291
1291
|
q = new n(
|
|
1292
|
-
hr(q.body, gr,
|
|
1293
|
-
|
|
1292
|
+
hr(q.body, gr, ut, () => {
|
|
1293
|
+
Me && Me(), x && x();
|
|
1294
1294
|
}),
|
|
1295
1295
|
K
|
|
1296
1296
|
);
|
|
@@ -1386,36 +1386,36 @@ const Fn = {
|
|
|
1386
1386
|
*/
|
|
1387
1387
|
adapters: Kt
|
|
1388
1388
|
};
|
|
1389
|
-
function
|
|
1389
|
+
function dt(e) {
|
|
1390
1390
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1391
1391
|
throw new Se(null, e);
|
|
1392
1392
|
}
|
|
1393
1393
|
function Er(e) {
|
|
1394
|
-
return
|
|
1394
|
+
return dt(e), e.headers = $.from(e.headers), e.data = pt.call(
|
|
1395
1395
|
e,
|
|
1396
1396
|
e.transformRequest
|
|
1397
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Fn.getAdapter(e.adapter ||
|
|
1398
|
-
return
|
|
1397
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Fn.getAdapter(e.adapter || De.adapter, e)(e).then(function(n) {
|
|
1398
|
+
return dt(e), n.data = pt.call(
|
|
1399
1399
|
e,
|
|
1400
1400
|
e.transformResponse,
|
|
1401
1401
|
n
|
|
1402
1402
|
), n.headers = $.from(n.headers), n;
|
|
1403
1403
|
}, function(n) {
|
|
1404
|
-
return In(n) || (
|
|
1404
|
+
return In(n) || (dt(e), n && n.response && (n.response.data = pt.call(
|
|
1405
1405
|
e,
|
|
1406
1406
|
e.transformResponse,
|
|
1407
1407
|
n.response
|
|
1408
1408
|
), n.response.headers = $.from(n.response.headers))), Promise.reject(n);
|
|
1409
1409
|
});
|
|
1410
1410
|
}
|
|
1411
|
-
const Dn = "1.13.2",
|
|
1411
|
+
const Dn = "1.13.2", ot = {};
|
|
1412
1412
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1413
|
-
|
|
1413
|
+
ot[e] = function(n) {
|
|
1414
1414
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1415
1415
|
};
|
|
1416
1416
|
});
|
|
1417
1417
|
const Or = {};
|
|
1418
|
-
|
|
1418
|
+
ot.transitional = function(t, r, n) {
|
|
1419
1419
|
function o(i, a) {
|
|
1420
1420
|
return "[Axios v" + Dn + "] Transitional option '" + i + "'" + a + (n ? ". " + n : "");
|
|
1421
1421
|
}
|
|
@@ -1428,7 +1428,7 @@ nt.transitional = function(t, r, n) {
|
|
|
1428
1428
|
return r && !Or[a] && (Or[a] = !0), t ? t(i, a, s) : !0;
|
|
1429
1429
|
};
|
|
1430
1430
|
};
|
|
1431
|
-
|
|
1431
|
+
ot.spelling = function(t) {
|
|
1432
1432
|
return (r, n) => !0;
|
|
1433
1433
|
};
|
|
1434
1434
|
function sa(e, t, r) {
|
|
@@ -1448,10 +1448,10 @@ function sa(e, t, r) {
|
|
|
1448
1448
|
throw new v("Unknown option " + i, v.ERR_BAD_OPTION);
|
|
1449
1449
|
}
|
|
1450
1450
|
}
|
|
1451
|
-
const
|
|
1451
|
+
const We = {
|
|
1452
1452
|
assertOptions: sa,
|
|
1453
|
-
validators:
|
|
1454
|
-
}, z =
|
|
1453
|
+
validators: ot
|
|
1454
|
+
}, z = We.validators;
|
|
1455
1455
|
class re {
|
|
1456
1456
|
constructor(t) {
|
|
1457
1457
|
this.defaults = t || {}, this.interceptors = {
|
|
@@ -1487,16 +1487,16 @@ class re {
|
|
|
1487
1487
|
_request(t, r) {
|
|
1488
1488
|
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = oe(this.defaults, r);
|
|
1489
1489
|
const { transitional: n, paramsSerializer: o, headers: i } = r;
|
|
1490
|
-
n !== void 0 &&
|
|
1490
|
+
n !== void 0 && We.assertOptions(n, {
|
|
1491
1491
|
silentJSONParsing: z.transitional(z.boolean),
|
|
1492
1492
|
forcedJSONParsing: z.transitional(z.boolean),
|
|
1493
1493
|
clarifyTimeoutError: z.transitional(z.boolean)
|
|
1494
1494
|
}, !1), o != null && (f.isFunction(o) ? r.paramsSerializer = {
|
|
1495
1495
|
serialize: o
|
|
1496
|
-
} :
|
|
1496
|
+
} : We.assertOptions(o, {
|
|
1497
1497
|
encode: z.function,
|
|
1498
1498
|
serialize: z.function
|
|
1499
|
-
}, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0),
|
|
1499
|
+
}, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), We.assertOptions(r, {
|
|
1500
1500
|
baseUrl: z.spelling("baseURL"),
|
|
1501
1501
|
withXsrfToken: z.spelling("withXSRFToken")
|
|
1502
1502
|
}, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1657,7 +1657,7 @@ function ca(e) {
|
|
|
1657
1657
|
function la(e) {
|
|
1658
1658
|
return f.isObject(e) && e.isAxiosError === !0;
|
|
1659
1659
|
}
|
|
1660
|
-
const
|
|
1660
|
+
const Mt = {
|
|
1661
1661
|
Continue: 100,
|
|
1662
1662
|
SwitchingProtocols: 101,
|
|
1663
1663
|
Processing: 102,
|
|
@@ -1728,8 +1728,8 @@ const Ut = {
|
|
|
1728
1728
|
SslHandshakeFailed: 525,
|
|
1729
1729
|
InvalidSslCertificate: 526
|
|
1730
1730
|
};
|
|
1731
|
-
Object.entries(
|
|
1732
|
-
|
|
1731
|
+
Object.entries(Mt).forEach(([e, t]) => {
|
|
1732
|
+
Mt[t] = e;
|
|
1733
1733
|
});
|
|
1734
1734
|
function $n(e) {
|
|
1735
1735
|
const t = new re(e), r = dn(re.prototype.request, t);
|
|
@@ -1737,13 +1737,13 @@ function $n(e) {
|
|
|
1737
1737
|
return $n(oe(e, o));
|
|
1738
1738
|
}, r;
|
|
1739
1739
|
}
|
|
1740
|
-
const R = $n(
|
|
1740
|
+
const R = $n(De);
|
|
1741
1741
|
R.Axios = re;
|
|
1742
1742
|
R.CanceledError = Se;
|
|
1743
1743
|
R.CancelToken = Qt;
|
|
1744
1744
|
R.isCancel = In;
|
|
1745
1745
|
R.VERSION = Dn;
|
|
1746
|
-
R.toFormData =
|
|
1746
|
+
R.toFormData = nt;
|
|
1747
1747
|
R.AxiosError = v;
|
|
1748
1748
|
R.Cancel = R.CanceledError;
|
|
1749
1749
|
R.all = function(t) {
|
|
@@ -1755,7 +1755,7 @@ R.mergeConfig = oe;
|
|
|
1755
1755
|
R.AxiosHeaders = $;
|
|
1756
1756
|
R.formToJSON = (e) => Tn(f.isHTMLForm(e) ? new FormData(e) : e);
|
|
1757
1757
|
R.getAdapter = Fn.getAdapter;
|
|
1758
|
-
R.HttpStatusCode =
|
|
1758
|
+
R.HttpStatusCode = Mt;
|
|
1759
1759
|
R.default = R;
|
|
1760
1760
|
var Ar = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1761
1761
|
function ua(e) {
|
|
@@ -1785,11 +1785,11 @@ const pa = {}, da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1785
1785
|
__proto__: null,
|
|
1786
1786
|
default: pa
|
|
1787
1787
|
}, Symbol.toStringTag, { value: "Module" })), ya = /* @__PURE__ */ fa(da);
|
|
1788
|
-
var Xt = typeof Map == "function" && Map.prototype,
|
|
1788
|
+
var Xt = typeof Map == "function" && Map.prototype, yt = Object.getOwnPropertyDescriptor && Xt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ke = Xt && yt && typeof yt.get == "function" ? yt.get : null, Rr = Xt && Map.prototype.forEach, Yt = typeof Set == "function" && Set.prototype, mt = Object.getOwnPropertyDescriptor && Yt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Qe = Yt && mt && typeof mt.get == "function" ? mt.get : null, Pr = Yt && Set.prototype.forEach, ma = typeof WeakMap == "function" && WeakMap.prototype, Ae = ma ? WeakMap.prototype.has : null, ha = typeof WeakSet == "function" && WeakSet.prototype, Re = ha ? WeakSet.prototype.has : null, ga = typeof WeakRef == "function" && WeakRef.prototype, Tr = ga ? WeakRef.prototype.deref : null, Sa = Boolean.prototype.valueOf, va = Object.prototype.toString, wa = Function.prototype.toString, ba = String.prototype.match, er = String.prototype.slice, Q = String.prototype.replace, Ea = String.prototype.toUpperCase, Ir = String.prototype.toLowerCase, Un = RegExp.prototype.test, Cr = Array.prototype.concat, J = Array.prototype.join, Oa = Array.prototype.slice, Nr = Math.floor, Bt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, ht = Object.getOwnPropertySymbols, kt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, me = typeof Symbol == "function" && typeof Symbol.iterator == "object", Pe = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === me || !0) ? Symbol.toStringTag : null, Ln = Object.prototype.propertyIsEnumerable, xr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
|
|
1789
1789
|
return e.__proto__;
|
|
1790
1790
|
} : null);
|
|
1791
1791
|
function _r(e, t) {
|
|
1792
|
-
if (e === 1 / 0 || e === -1 / 0 || e !== e || e && e > -1e3 && e < 1e3 ||
|
|
1792
|
+
if (e === 1 / 0 || e === -1 / 0 || e !== e || e && e > -1e3 && e < 1e3 || Un.call(/e/, t))
|
|
1793
1793
|
return t;
|
|
1794
1794
|
var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
1795
1795
|
if (typeof e == "number") {
|
|
@@ -1801,7 +1801,7 @@ function _r(e, t) {
|
|
|
1801
1801
|
}
|
|
1802
1802
|
return Q.call(t, r, "$&_");
|
|
1803
1803
|
}
|
|
1804
|
-
var
|
|
1804
|
+
var jt = ya, Fr = jt.custom, Dr = kn(Fr) ? Fr : null, Mn = {
|
|
1805
1805
|
__proto__: null,
|
|
1806
1806
|
double: '"',
|
|
1807
1807
|
single: "'"
|
|
@@ -1809,7 +1809,7 @@ var kt = ya, Fr = kt.custom, Dr = kn(Fr) ? Fr : null, Mn = {
|
|
|
1809
1809
|
__proto__: null,
|
|
1810
1810
|
double: /(["\\])/g,
|
|
1811
1811
|
single: /(['\\])/g
|
|
1812
|
-
},
|
|
1812
|
+
}, it = function e(t, r, n, o) {
|
|
1813
1813
|
var i = r || {};
|
|
1814
1814
|
if (G(i, "quoteStyle") && !G(Mn, i.quoteStyle))
|
|
1815
1815
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -1843,7 +1843,7 @@ var kt = ya, Fr = kt.custom, Dr = kn(Fr) ? Fr : null, Mn = {
|
|
|
1843
1843
|
}
|
|
1844
1844
|
var l = typeof i.depth > "u" ? 5 : i.depth;
|
|
1845
1845
|
if (typeof n > "u" && (n = 0), n >= l && l > 0 && typeof t == "object")
|
|
1846
|
-
return
|
|
1846
|
+
return qt(t) ? "[Array]" : "[Object]";
|
|
1847
1847
|
var p = qa(i, n);
|
|
1848
1848
|
if (typeof o > "u")
|
|
1849
1849
|
o = [];
|
|
@@ -1859,11 +1859,11 @@ var kt = ya, Fr = kt.custom, Dr = kn(Fr) ? Fr : null, Mn = {
|
|
|
1859
1859
|
return e(N, i, n + 1, o);
|
|
1860
1860
|
}
|
|
1861
1861
|
if (typeof t == "function" && !$r(t)) {
|
|
1862
|
-
var S = Fa(t), d =
|
|
1862
|
+
var S = Fa(t), d = ke(t, y);
|
|
1863
1863
|
return "[Function" + (S ? ": " + S : " (anonymous)") + "]" + (d.length > 0 ? " { " + J.call(d, ", ") + " }" : "");
|
|
1864
1864
|
}
|
|
1865
1865
|
if (kn(t)) {
|
|
1866
|
-
var h = me ? Q.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") :
|
|
1866
|
+
var h = me ? Q.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : kt.call(t);
|
|
1867
1867
|
return typeof t == "object" && !me ? Oe(h) : h;
|
|
1868
1868
|
}
|
|
1869
1869
|
if (Ba(t)) {
|
|
@@ -1871,19 +1871,19 @@ var kt = ya, Fr = kt.custom, Dr = kn(Fr) ? Fr : null, Mn = {
|
|
|
1871
1871
|
m += " " + b[O].name + "=" + Bn(Ra(b[O].value), "double", i);
|
|
1872
1872
|
return m += ">", t.childNodes && t.childNodes.length && (m += "..."), m += "</" + Ir.call(String(t.nodeName)) + ">", m;
|
|
1873
1873
|
}
|
|
1874
|
-
if (
|
|
1874
|
+
if (qt(t)) {
|
|
1875
1875
|
if (t.length === 0)
|
|
1876
1876
|
return "[]";
|
|
1877
|
-
var g =
|
|
1878
|
-
return p && !ja(g) ? "[" +
|
|
1877
|
+
var g = ke(t, y);
|
|
1878
|
+
return p && !ja(g) ? "[" + zt(g, p) + "]" : "[ " + J.call(g, ", ") + " ]";
|
|
1879
1879
|
}
|
|
1880
1880
|
if (Ta(t)) {
|
|
1881
|
-
var E =
|
|
1882
|
-
return !("cause" in Error.prototype) && "cause" in t && !
|
|
1881
|
+
var E = ke(t, y);
|
|
1882
|
+
return !("cause" in Error.prototype) && "cause" in t && !Ln.call(t, "cause") ? "{ [" + String(t) + "] " + J.call(Cr.call("[cause]: " + y(t.cause), E), ", ") + " }" : E.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + J.call(E, ", ") + " }";
|
|
1883
1883
|
}
|
|
1884
1884
|
if (typeof t == "object" && a) {
|
|
1885
|
-
if (Dr && typeof t[Dr] == "function" &&
|
|
1886
|
-
return
|
|
1885
|
+
if (Dr && typeof t[Dr] == "function" && jt)
|
|
1886
|
+
return jt(t, { depth: l - n });
|
|
1887
1887
|
if (a !== "symbol" && typeof t.inspect == "function")
|
|
1888
1888
|
return t.inspect();
|
|
1889
1889
|
}
|
|
@@ -1891,24 +1891,24 @@ var kt = ya, Fr = kt.custom, Dr = kn(Fr) ? Fr : null, Mn = {
|
|
|
1891
1891
|
var P = [];
|
|
1892
1892
|
return Rr && Rr.call(t, function(N, x) {
|
|
1893
1893
|
P.push(y(x, t, !0) + " => " + y(N, t));
|
|
1894
|
-
}),
|
|
1894
|
+
}), Ur("Map", Ke.call(t), P, p);
|
|
1895
1895
|
}
|
|
1896
|
-
if (
|
|
1897
|
-
var
|
|
1896
|
+
if (La(t)) {
|
|
1897
|
+
var U = [];
|
|
1898
1898
|
return Pr && Pr.call(t, function(N) {
|
|
1899
|
-
|
|
1900
|
-
}),
|
|
1899
|
+
U.push(y(N, t));
|
|
1900
|
+
}), Ur("Set", Qe.call(t), U, p);
|
|
1901
1901
|
}
|
|
1902
1902
|
if ($a(t))
|
|
1903
|
-
return
|
|
1903
|
+
return gt("WeakMap");
|
|
1904
1904
|
if (Ma(t))
|
|
1905
|
-
return
|
|
1906
|
-
if (
|
|
1907
|
-
return
|
|
1905
|
+
return gt("WeakSet");
|
|
1906
|
+
if (Ua(t))
|
|
1907
|
+
return gt("WeakRef");
|
|
1908
1908
|
if (Ca(t))
|
|
1909
1909
|
return Oe(y(Number(t)));
|
|
1910
1910
|
if (xa(t))
|
|
1911
|
-
return Oe(y(
|
|
1911
|
+
return Oe(y(Bt.call(t)));
|
|
1912
1912
|
if (Na(t))
|
|
1913
1913
|
return Oe(Sa.call(t));
|
|
1914
1914
|
if (Ia(t))
|
|
@@ -1918,8 +1918,8 @@ var kt = ya, Fr = kt.custom, Dr = kn(Fr) ? Fr : null, Mn = {
|
|
|
1918
1918
|
if (typeof globalThis < "u" && t === globalThis || typeof Ar < "u" && t === Ar)
|
|
1919
1919
|
return "{ [object globalThis] }";
|
|
1920
1920
|
if (!Pa(t) && !$r(t)) {
|
|
1921
|
-
var T =
|
|
1922
|
-
return T.length === 0 ? k + "{}" : p ? k + "{" +
|
|
1921
|
+
var T = ke(t, y), V = xr ? xr(t) === Object.prototype : t instanceof Object || t.constructor === Object, L = t instanceof Object ? "" : "null prototype", B = !V && Pe && Object(t) === t && Pe in t ? er.call(X(t), 8, -1) : L ? "Object" : "", Y = V || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", k = Y + (B || L ? "[" + J.call(Cr.call([], B || [], L || []), ": ") + "] " : "");
|
|
1922
|
+
return T.length === 0 ? k + "{}" : p ? k + "{" + zt(T, p) + "}" : k + "{ " + J.call(T, ", ") + " }";
|
|
1923
1923
|
}
|
|
1924
1924
|
return String(t);
|
|
1925
1925
|
};
|
|
@@ -1933,7 +1933,7 @@ function Ra(e) {
|
|
|
1933
1933
|
function ae(e) {
|
|
1934
1934
|
return !Pe || !(typeof e == "object" && (Pe in e || typeof e[Pe] < "u"));
|
|
1935
1935
|
}
|
|
1936
|
-
function
|
|
1936
|
+
function qt(e) {
|
|
1937
1937
|
return X(e) === "[object Array]" && ae(e);
|
|
1938
1938
|
}
|
|
1939
1939
|
function Pa(e) {
|
|
@@ -1959,19 +1959,19 @@ function kn(e) {
|
|
|
1959
1959
|
return e && typeof e == "object" && e instanceof Symbol;
|
|
1960
1960
|
if (typeof e == "symbol")
|
|
1961
1961
|
return !0;
|
|
1962
|
-
if (!e || typeof e != "object" || !
|
|
1962
|
+
if (!e || typeof e != "object" || !kt)
|
|
1963
1963
|
return !1;
|
|
1964
1964
|
try {
|
|
1965
|
-
return
|
|
1965
|
+
return kt.call(e), !0;
|
|
1966
1966
|
} catch {
|
|
1967
1967
|
}
|
|
1968
1968
|
return !1;
|
|
1969
1969
|
}
|
|
1970
1970
|
function xa(e) {
|
|
1971
|
-
if (!e || typeof e != "object" || !
|
|
1971
|
+
if (!e || typeof e != "object" || !Bt)
|
|
1972
1972
|
return !1;
|
|
1973
1973
|
try {
|
|
1974
|
-
return
|
|
1974
|
+
return Bt.call(e), !0;
|
|
1975
1975
|
} catch {
|
|
1976
1976
|
}
|
|
1977
1977
|
return !1;
|
|
@@ -2000,12 +2000,12 @@ function jn(e, t) {
|
|
|
2000
2000
|
return -1;
|
|
2001
2001
|
}
|
|
2002
2002
|
function Da(e) {
|
|
2003
|
-
if (!
|
|
2003
|
+
if (!Ke || !e || typeof e != "object")
|
|
2004
2004
|
return !1;
|
|
2005
2005
|
try {
|
|
2006
|
-
|
|
2006
|
+
Ke.call(e);
|
|
2007
2007
|
try {
|
|
2008
|
-
|
|
2008
|
+
Qe.call(e);
|
|
2009
2009
|
} catch {
|
|
2010
2010
|
return !0;
|
|
2011
2011
|
}
|
|
@@ -2029,7 +2029,7 @@ function $a(e) {
|
|
|
2029
2029
|
}
|
|
2030
2030
|
return !1;
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2032
|
+
function Ua(e) {
|
|
2033
2033
|
if (!Tr || !e || typeof e != "object")
|
|
2034
2034
|
return !1;
|
|
2035
2035
|
try {
|
|
@@ -2038,13 +2038,13 @@ function La(e) {
|
|
|
2038
2038
|
}
|
|
2039
2039
|
return !1;
|
|
2040
2040
|
}
|
|
2041
|
-
function
|
|
2042
|
-
if (!
|
|
2041
|
+
function La(e) {
|
|
2042
|
+
if (!Qe || !e || typeof e != "object")
|
|
2043
2043
|
return !1;
|
|
2044
2044
|
try {
|
|
2045
|
-
|
|
2045
|
+
Qe.call(e);
|
|
2046
2046
|
try {
|
|
2047
|
-
|
|
2047
|
+
Ke.call(e);
|
|
2048
2048
|
} catch {
|
|
2049
2049
|
return !0;
|
|
2050
2050
|
}
|
|
@@ -2094,11 +2094,11 @@ function ka(e) {
|
|
|
2094
2094
|
function Oe(e) {
|
|
2095
2095
|
return "Object(" + e + ")";
|
|
2096
2096
|
}
|
|
2097
|
-
function
|
|
2097
|
+
function gt(e) {
|
|
2098
2098
|
return e + " { ? }";
|
|
2099
2099
|
}
|
|
2100
|
-
function
|
|
2101
|
-
var o = n ?
|
|
2100
|
+
function Ur(e, t, r, n) {
|
|
2101
|
+
var o = n ? zt(r, n) : J.call(r, ", ");
|
|
2102
2102
|
return e + " (" + t + ") {" + o + "}";
|
|
2103
2103
|
}
|
|
2104
2104
|
function ja(e) {
|
|
@@ -2121,7 +2121,7 @@ function qa(e, t) {
|
|
|
2121
2121
|
prev: J.call(Array(t + 1), r)
|
|
2122
2122
|
};
|
|
2123
2123
|
}
|
|
2124
|
-
function
|
|
2124
|
+
function zt(e, t) {
|
|
2125
2125
|
if (e.length === 0)
|
|
2126
2126
|
return "";
|
|
2127
2127
|
var r = `
|
|
@@ -2129,38 +2129,38 @@ function qt(e, t) {
|
|
|
2129
2129
|
return r + J.call(e, "," + r) + `
|
|
2130
2130
|
` + t.prev;
|
|
2131
2131
|
}
|
|
2132
|
-
function
|
|
2133
|
-
var r =
|
|
2132
|
+
function ke(e, t) {
|
|
2133
|
+
var r = qt(e), n = [];
|
|
2134
2134
|
if (r) {
|
|
2135
2135
|
n.length = e.length;
|
|
2136
2136
|
for (var o = 0; o < e.length; o++)
|
|
2137
2137
|
n[o] = G(e, o) ? t(e[o], e) : "";
|
|
2138
2138
|
}
|
|
2139
|
-
var i = typeof
|
|
2139
|
+
var i = typeof ht == "function" ? ht(e) : [], a;
|
|
2140
2140
|
if (me) {
|
|
2141
2141
|
a = {};
|
|
2142
2142
|
for (var s = 0; s < i.length; s++)
|
|
2143
2143
|
a["$" + i[s]] = i[s];
|
|
2144
2144
|
}
|
|
2145
2145
|
for (var c in e)
|
|
2146
|
-
G(e, c) && (r && String(Number(c)) === c && c < e.length || me && a["$" + c] instanceof Symbol || (
|
|
2147
|
-
if (typeof
|
|
2146
|
+
G(e, c) && (r && String(Number(c)) === c && c < e.length || me && a["$" + c] instanceof Symbol || (Un.call(/[^\w$]/, c) ? n.push(t(c, e) + ": " + t(e[c], e)) : n.push(c + ": " + t(e[c], e))));
|
|
2147
|
+
if (typeof ht == "function")
|
|
2148
2148
|
for (var u = 0; u < i.length; u++)
|
|
2149
|
-
|
|
2149
|
+
Ln.call(e, i[u]) && n.push("[" + t(i[u]) + "]: " + t(e[i[u]], e));
|
|
2150
2150
|
return n;
|
|
2151
2151
|
}
|
|
2152
|
-
var za =
|
|
2152
|
+
var za = it, Ha = ve, at = function(e, t, r) {
|
|
2153
2153
|
for (var n = e, o; (o = n.next) != null; n = o)
|
|
2154
2154
|
if (o.key === t)
|
|
2155
2155
|
return n.next = o.next, r || (o.next = /** @type {NonNullable<typeof list.next>} */
|
|
2156
2156
|
e.next, e.next = o), o;
|
|
2157
2157
|
}, Wa = function(e, t) {
|
|
2158
2158
|
if (e) {
|
|
2159
|
-
var r =
|
|
2159
|
+
var r = at(e, t);
|
|
2160
2160
|
return r && r.value;
|
|
2161
2161
|
}
|
|
2162
2162
|
}, Ja = function(e, t, r) {
|
|
2163
|
-
var n =
|
|
2163
|
+
var n = at(e, t);
|
|
2164
2164
|
n ? n.value = r : e.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
2165
2165
|
{
|
|
2166
2166
|
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
@@ -2169,10 +2169,10 @@ var za = ot, Ha = ve, it = function(e, t, r) {
|
|
|
2169
2169
|
value: r
|
|
2170
2170
|
};
|
|
2171
2171
|
}, Ga = function(e, t) {
|
|
2172
|
-
return e ? !!
|
|
2172
|
+
return e ? !!at(e, t) : !1;
|
|
2173
2173
|
}, Za = function(e, t) {
|
|
2174
2174
|
if (e)
|
|
2175
|
-
return
|
|
2175
|
+
return at(e, t, !0);
|
|
2176
2176
|
}, Va = function() {
|
|
2177
2177
|
var t, r = {
|
|
2178
2178
|
assert: function(n) {
|
|
@@ -2205,23 +2205,23 @@ var za = ot, Ha = ve, it = function(e, t, r) {
|
|
|
2205
2205
|
return t !== t;
|
|
2206
2206
|
}, ls = cs, us = function(t) {
|
|
2207
2207
|
return ls(t) || t === 0 ? t : t < 0 ? -1 : 1;
|
|
2208
|
-
}, fs = Object.getOwnPropertyDescriptor,
|
|
2209
|
-
if (
|
|
2208
|
+
}, fs = Object.getOwnPropertyDescriptor, Je = fs;
|
|
2209
|
+
if (Je)
|
|
2210
2210
|
try {
|
|
2211
|
-
|
|
2211
|
+
Je([], "length");
|
|
2212
2212
|
} catch {
|
|
2213
|
-
|
|
2213
|
+
Je = null;
|
|
2214
2214
|
}
|
|
2215
|
-
var Hn =
|
|
2216
|
-
if (
|
|
2215
|
+
var Hn = Je, Ge = Object.defineProperty || !1;
|
|
2216
|
+
if (Ge)
|
|
2217
2217
|
try {
|
|
2218
|
-
|
|
2218
|
+
Ge({}, "a", { value: 1 });
|
|
2219
2219
|
} catch {
|
|
2220
|
-
|
|
2220
|
+
Ge = !1;
|
|
2221
2221
|
}
|
|
2222
|
-
var ps =
|
|
2222
|
+
var ps = Ge, St, Lr;
|
|
2223
2223
|
function ds() {
|
|
2224
|
-
return
|
|
2224
|
+
return Lr || (Lr = 1, St = function() {
|
|
2225
2225
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2226
2226
|
return !1;
|
|
2227
2227
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -2247,27 +2247,27 @@ function ds() {
|
|
|
2247
2247
|
return !1;
|
|
2248
2248
|
}
|
|
2249
2249
|
return !0;
|
|
2250
|
-
}),
|
|
2250
|
+
}), St;
|
|
2251
2251
|
}
|
|
2252
|
-
var
|
|
2252
|
+
var vt, Mr;
|
|
2253
2253
|
function ys() {
|
|
2254
|
-
if (Mr) return
|
|
2254
|
+
if (Mr) return vt;
|
|
2255
2255
|
Mr = 1;
|
|
2256
2256
|
var e = typeof Symbol < "u" && Symbol, t = ds();
|
|
2257
|
-
return
|
|
2257
|
+
return vt = function() {
|
|
2258
2258
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : t();
|
|
2259
|
-
},
|
|
2259
|
+
}, vt;
|
|
2260
2260
|
}
|
|
2261
|
-
var
|
|
2261
|
+
var wt, Br;
|
|
2262
2262
|
function Wn() {
|
|
2263
|
-
return Br || (Br = 1,
|
|
2263
|
+
return Br || (Br = 1, wt = typeof Reflect < "u" && Reflect.getPrototypeOf || null), wt;
|
|
2264
2264
|
}
|
|
2265
|
-
var
|
|
2265
|
+
var bt, kr;
|
|
2266
2266
|
function Jn() {
|
|
2267
|
-
if (kr) return
|
|
2267
|
+
if (kr) return bt;
|
|
2268
2268
|
kr = 1;
|
|
2269
2269
|
var e = zn;
|
|
2270
|
-
return
|
|
2270
|
+
return bt = e.getPrototypeOf || null, bt;
|
|
2271
2271
|
}
|
|
2272
2272
|
var ms = "Function.prototype.bind called on incompatible ", hs = Object.prototype.toString, gs = Math.max, Ss = "[object Function]", jr = function(t, r) {
|
|
2273
2273
|
for (var n = [], o = 0; o < t.length; o += 1)
|
|
@@ -2307,21 +2307,21 @@ var ms = "Function.prototype.bind called on incompatible ", hs = Object.prototyp
|
|
|
2307
2307
|
u.prototype = r.prototype, o.prototype = new u(), u.prototype = null;
|
|
2308
2308
|
}
|
|
2309
2309
|
return o;
|
|
2310
|
-
}, Es = bs,
|
|
2310
|
+
}, Es = bs, st = Function.prototype.bind || Es, Et, qr;
|
|
2311
2311
|
function tr() {
|
|
2312
|
-
return qr || (qr = 1,
|
|
2312
|
+
return qr || (qr = 1, Et = Function.prototype.call), Et;
|
|
2313
2313
|
}
|
|
2314
|
-
var
|
|
2314
|
+
var Ot, zr;
|
|
2315
2315
|
function Gn() {
|
|
2316
|
-
return zr || (zr = 1,
|
|
2316
|
+
return zr || (zr = 1, Ot = Function.prototype.apply), Ot;
|
|
2317
2317
|
}
|
|
2318
|
-
var Os = typeof Reflect < "u" && Reflect && Reflect.apply, As =
|
|
2318
|
+
var Os = typeof Reflect < "u" && Reflect && Reflect.apply, As = st, Rs = Gn(), Ps = tr(), Ts = Os, Is = Ts || As.call(Ps, Rs), Cs = st, Ns = ve, xs = tr(), _s = Is, Zn = function(t) {
|
|
2319
2319
|
if (t.length < 1 || typeof t[0] != "function")
|
|
2320
2320
|
throw new Ns("a function is required");
|
|
2321
2321
|
return _s(Cs, xs, t);
|
|
2322
|
-
},
|
|
2322
|
+
}, At, Hr;
|
|
2323
2323
|
function Fs() {
|
|
2324
|
-
if (Hr) return
|
|
2324
|
+
if (Hr) return At;
|
|
2325
2325
|
Hr = 1;
|
|
2326
2326
|
var e = Zn, t = Hn, r;
|
|
2327
2327
|
try {
|
|
@@ -2336,19 +2336,19 @@ function Fs() {
|
|
|
2336
2336
|
/** @type {keyof typeof Object.prototype} */
|
|
2337
2337
|
"__proto__"
|
|
2338
2338
|
), o = Object, i = o.getPrototypeOf;
|
|
2339
|
-
return
|
|
2339
|
+
return At = n && typeof n.get == "function" ? e([n.get]) : typeof i == "function" ? (
|
|
2340
2340
|
/** @type {import('./get')} */
|
|
2341
2341
|
function(s) {
|
|
2342
2342
|
return i(s == null ? s : o(s));
|
|
2343
2343
|
}
|
|
2344
|
-
) : !1,
|
|
2344
|
+
) : !1, At;
|
|
2345
2345
|
}
|
|
2346
|
-
var
|
|
2346
|
+
var Rt, Wr;
|
|
2347
2347
|
function Ds() {
|
|
2348
|
-
if (Wr) return
|
|
2348
|
+
if (Wr) return Rt;
|
|
2349
2349
|
Wr = 1;
|
|
2350
2350
|
var e = Wn(), t = Jn(), r = Fs();
|
|
2351
|
-
return
|
|
2351
|
+
return Rt = e ? function(o) {
|
|
2352
2352
|
return e(o);
|
|
2353
2353
|
} : t ? function(o) {
|
|
2354
2354
|
if (!o || typeof o != "object" && typeof o != "function")
|
|
@@ -2356,33 +2356,33 @@ function Ds() {
|
|
|
2356
2356
|
return t(o);
|
|
2357
2357
|
} : r ? function(o) {
|
|
2358
2358
|
return r(o);
|
|
2359
|
-
} : null,
|
|
2359
|
+
} : null, Rt;
|
|
2360
2360
|
}
|
|
2361
|
-
var
|
|
2361
|
+
var Pt, Jr;
|
|
2362
2362
|
function $s() {
|
|
2363
|
-
if (Jr) return
|
|
2363
|
+
if (Jr) return Pt;
|
|
2364
2364
|
Jr = 1;
|
|
2365
|
-
var e = Function.prototype.call, t = Object.prototype.hasOwnProperty, r =
|
|
2366
|
-
return
|
|
2365
|
+
var e = Function.prototype.call, t = Object.prototype.hasOwnProperty, r = st;
|
|
2366
|
+
return Pt = r.call(e, t), Pt;
|
|
2367
2367
|
}
|
|
2368
|
-
var w,
|
|
2368
|
+
var w, Us = zn, Ls = Ka, Ms = Qa, Bs = Xa, ks = Ya, he = es, pe = ve, js = ts, qs = rs, zs = ns, Hs = os, Ws = is, Js = as, Gs = ss, Zs = us, Vn = Function, Tt = function(e) {
|
|
2369
2369
|
try {
|
|
2370
2370
|
return Vn('"use strict"; return (' + e + ").constructor;")();
|
|
2371
2371
|
} catch {
|
|
2372
2372
|
}
|
|
2373
|
-
},
|
|
2373
|
+
}, Ce = Hn, Vs = ps, It = function() {
|
|
2374
2374
|
throw new pe();
|
|
2375
|
-
}, Ks =
|
|
2375
|
+
}, Ks = Ce ? function() {
|
|
2376
2376
|
try {
|
|
2377
|
-
return arguments.callee,
|
|
2377
|
+
return arguments.callee, It;
|
|
2378
2378
|
} catch {
|
|
2379
2379
|
try {
|
|
2380
|
-
return
|
|
2380
|
+
return Ce(arguments, "callee").get;
|
|
2381
2381
|
} catch {
|
|
2382
|
-
return
|
|
2382
|
+
return It;
|
|
2383
2383
|
}
|
|
2384
2384
|
}
|
|
2385
|
-
}() :
|
|
2385
|
+
}() : It, le = ys()(), C = Ds(), Qs = Jn(), Xs = Wn(), Kn = Gn(), $e = tr(), fe = {}, Ys = typeof Uint8Array > "u" || !C ? w : C(Uint8Array), ne = {
|
|
2386
2386
|
__proto__: null,
|
|
2387
2387
|
"%AggregateError%": typeof AggregateError > "u" ? w : AggregateError,
|
|
2388
2388
|
"%Array%": Array,
|
|
@@ -2404,7 +2404,7 @@ var w, Ls = zn, Us = Ka, Ms = Qa, Bs = Xa, ks = Ya, he = es, pe = ve, js = ts, q
|
|
|
2404
2404
|
"%decodeURIComponent%": decodeURIComponent,
|
|
2405
2405
|
"%encodeURI%": encodeURI,
|
|
2406
2406
|
"%encodeURIComponent%": encodeURIComponent,
|
|
2407
|
-
"%Error%":
|
|
2407
|
+
"%Error%": Ls,
|
|
2408
2408
|
"%eval%": eval,
|
|
2409
2409
|
// eslint-disable-line no-eval
|
|
2410
2410
|
"%EvalError%": Ms,
|
|
@@ -2425,8 +2425,8 @@ var w, Ls = zn, Us = Ka, Ms = Qa, Bs = Xa, ks = Ya, he = es, pe = ve, js = ts, q
|
|
|
2425
2425
|
"%MapIteratorPrototype%": typeof Map > "u" || !le || !C ? w : C((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2426
2426
|
"%Math%": Math,
|
|
2427
2427
|
"%Number%": Number,
|
|
2428
|
-
"%Object%":
|
|
2429
|
-
"%Object.getOwnPropertyDescriptor%":
|
|
2428
|
+
"%Object%": Us,
|
|
2429
|
+
"%Object.getOwnPropertyDescriptor%": Ce,
|
|
2430
2430
|
"%parseFloat%": parseFloat,
|
|
2431
2431
|
"%parseInt%": parseInt,
|
|
2432
2432
|
"%Promise%": typeof Promise > "u" ? w : Promise,
|
|
@@ -2453,7 +2453,7 @@ var w, Ls = zn, Us = Ka, Ms = Qa, Bs = Xa, ks = Ya, he = es, pe = ve, js = ts, q
|
|
|
2453
2453
|
"%WeakMap%": typeof WeakMap > "u" ? w : WeakMap,
|
|
2454
2454
|
"%WeakRef%": typeof WeakRef > "u" ? w : WeakRef,
|
|
2455
2455
|
"%WeakSet%": typeof WeakSet > "u" ? w : WeakSet,
|
|
2456
|
-
"%Function.prototype.call%":
|
|
2456
|
+
"%Function.prototype.call%": $e,
|
|
2457
2457
|
"%Function.prototype.apply%": Kn,
|
|
2458
2458
|
"%Object.defineProperty%": Vs,
|
|
2459
2459
|
"%Object.getPrototypeOf%": Qs,
|
|
@@ -2476,11 +2476,11 @@ if (C)
|
|
|
2476
2476
|
var tc = function e(t) {
|
|
2477
2477
|
var r;
|
|
2478
2478
|
if (t === "%AsyncFunction%")
|
|
2479
|
-
r =
|
|
2479
|
+
r = Tt("async function () {}");
|
|
2480
2480
|
else if (t === "%GeneratorFunction%")
|
|
2481
|
-
r =
|
|
2481
|
+
r = Tt("function* () {}");
|
|
2482
2482
|
else if (t === "%AsyncGeneratorFunction%")
|
|
2483
|
-
r =
|
|
2483
|
+
r = Tt("async function* () {}");
|
|
2484
2484
|
else if (t === "%AsyncGenerator%") {
|
|
2485
2485
|
var n = e("%AsyncGeneratorFunction%");
|
|
2486
2486
|
n && (r = n.prototype);
|
|
@@ -2542,8 +2542,8 @@ var tc = function e(t) {
|
|
|
2542
2542
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2543
2543
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2544
2544
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2545
|
-
},
|
|
2546
|
-
var r =
|
|
2545
|
+
}, Ue = st, Xe = $s(), rc = Ue.call($e, Array.prototype.concat), nc = Ue.call(Kn, Array.prototype.splice), Zr = Ue.call($e, String.prototype.replace), Ye = Ue.call($e, String.prototype.slice), oc = Ue.call($e, RegExp.prototype.exec), ic = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ac = /\\(\\)?/g, sc = function(t) {
|
|
2546
|
+
var r = Ye(t, 0, 1), n = Ye(t, -1);
|
|
2547
2547
|
if (r === "%" && n !== "%")
|
|
2548
2548
|
throw new he("invalid intrinsic syntax, expected closing `%`");
|
|
2549
2549
|
if (n === "%" && r !== "%")
|
|
@@ -2554,7 +2554,7 @@ var tc = function e(t) {
|
|
|
2554
2554
|
}), o;
|
|
2555
2555
|
}, cc = function(t, r) {
|
|
2556
2556
|
var n = t, o;
|
|
2557
|
-
if (
|
|
2557
|
+
if (Xe(Gr, n) && (o = Gr[n], n = "%" + o[0] + "%"), Xe(ne, n)) {
|
|
2558
2558
|
var i = ne[n];
|
|
2559
2559
|
if (i === fe && (i = tc(n)), typeof i > "u" && !r)
|
|
2560
2560
|
throw new pe("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
@@ -2575,10 +2575,10 @@ var tc = function e(t) {
|
|
|
2575
2575
|
var n = sc(t), o = n.length > 0 ? n[0] : "", i = cc("%" + o + "%", r), a = i.name, s = i.value, c = !1, u = i.alias;
|
|
2576
2576
|
u && (o = u[0], nc(n, rc([0, 1], u)));
|
|
2577
2577
|
for (var l = 1, p = !0; l < n.length; l += 1) {
|
|
2578
|
-
var y = n[l], S =
|
|
2578
|
+
var y = n[l], S = Ye(y, 0, 1), d = Ye(y, -1);
|
|
2579
2579
|
if ((S === '"' || S === "'" || S === "`" || d === '"' || d === "'" || d === "`") && S !== d)
|
|
2580
2580
|
throw new he("property names with quotes must have matching quotes");
|
|
2581
|
-
if ((y === "constructor" || !p) && (c = !0), o += "." + y, a = "%" + o + "%",
|
|
2581
|
+
if ((y === "constructor" || !p) && (c = !0), o += "." + y, a = "%" + o + "%", Xe(ne, a))
|
|
2582
2582
|
s = ne[a];
|
|
2583
2583
|
else if (s != null) {
|
|
2584
2584
|
if (!(y in s)) {
|
|
@@ -2586,11 +2586,11 @@ var tc = function e(t) {
|
|
|
2586
2586
|
throw new pe("base intrinsic for " + t + " exists, but the property is not available.");
|
|
2587
2587
|
return;
|
|
2588
2588
|
}
|
|
2589
|
-
if (
|
|
2590
|
-
var h =
|
|
2589
|
+
if (Ce && l + 1 >= n.length) {
|
|
2590
|
+
var h = Ce(s, y);
|
|
2591
2591
|
p = !!h, p && "get" in h && !("originalValue" in h.get) ? s = h.get : s = s[y];
|
|
2592
2592
|
} else
|
|
2593
|
-
p =
|
|
2593
|
+
p = Xe(s, y), s = s[y];
|
|
2594
2594
|
p && !c && (ne[a] = s);
|
|
2595
2595
|
}
|
|
2596
2596
|
}
|
|
@@ -2604,7 +2604,7 @@ var tc = function e(t) {
|
|
|
2604
2604
|
/** @type {const} */
|
|
2605
2605
|
[n]
|
|
2606
2606
|
) : n;
|
|
2607
|
-
}, uc = rr, Le = Yn, fc =
|
|
2607
|
+
}, uc = rr, Le = Yn, fc = it, pc = ve, Vr = uc("%Map%", !0), dc = Le("Map.prototype.get", !0), yc = Le("Map.prototype.set", !0), mc = Le("Map.prototype.has", !0), hc = Le("Map.prototype.delete", !0), gc = Le("Map.prototype.size", !0), eo = !!Vr && /** @type {Exclude<import('.'), false>} */
|
|
2608
2608
|
function() {
|
|
2609
2609
|
var t, r = {
|
|
2610
2610
|
assert: function(n) {
|
|
@@ -2630,7 +2630,7 @@ function() {
|
|
|
2630
2630
|
}
|
|
2631
2631
|
};
|
|
2632
2632
|
return r;
|
|
2633
|
-
}, Sc = rr,
|
|
2633
|
+
}, Sc = rr, ct = Yn, vc = it, je = eo, wc = ve, ue = Sc("%WeakMap%", !0), bc = ct("WeakMap.prototype.get", !0), Ec = ct("WeakMap.prototype.set", !0), Oc = ct("WeakMap.prototype.has", !0), Ac = ct("WeakMap.prototype.delete", !0), Rc = ue ? (
|
|
2634
2634
|
/** @type {Exclude<import('.'), false>} */
|
|
2635
2635
|
function() {
|
|
2636
2636
|
var t, r, n = {
|
|
@@ -2642,7 +2642,7 @@ function() {
|
|
|
2642
2642
|
if (ue && o && (typeof o == "object" || typeof o == "function")) {
|
|
2643
2643
|
if (t)
|
|
2644
2644
|
return Ac(t, o);
|
|
2645
|
-
} else if (
|
|
2645
|
+
} else if (je && r)
|
|
2646
2646
|
return r.delete(o);
|
|
2647
2647
|
return !1;
|
|
2648
2648
|
},
|
|
@@ -2653,12 +2653,12 @@ function() {
|
|
|
2653
2653
|
return ue && o && (typeof o == "object" || typeof o == "function") && t ? Oc(t, o) : !!r && r.has(o);
|
|
2654
2654
|
},
|
|
2655
2655
|
set: function(o, i) {
|
|
2656
|
-
ue && o && (typeof o == "object" || typeof o == "function") ? (t || (t = new ue()), Ec(t, o, i)) :
|
|
2656
|
+
ue && o && (typeof o == "object" || typeof o == "function") ? (t || (t = new ue()), Ec(t, o, i)) : je && (r || (r = je()), r.set(o, i));
|
|
2657
2657
|
}
|
|
2658
2658
|
};
|
|
2659
2659
|
return n;
|
|
2660
2660
|
}
|
|
2661
|
-
) :
|
|
2661
|
+
) : je, Pc = ve, Tc = it, Ic = Va, Cc = eo, Nc = Rc, xc = Nc || Cc || Ic, _c = function() {
|
|
2662
2662
|
var t, r = {
|
|
2663
2663
|
assert: function(n) {
|
|
2664
2664
|
if (!r.has(n))
|
|
@@ -2678,11 +2678,11 @@ function() {
|
|
|
2678
2678
|
}
|
|
2679
2679
|
};
|
|
2680
2680
|
return r;
|
|
2681
|
-
}, Fc = String.prototype.replace, Dc = /%20/g,
|
|
2681
|
+
}, Fc = String.prototype.replace, Dc = /%20/g, Ct = {
|
|
2682
2682
|
RFC1738: "RFC1738",
|
|
2683
2683
|
RFC3986: "RFC3986"
|
|
2684
2684
|
}, nr = {
|
|
2685
|
-
default:
|
|
2685
|
+
default: Ct.RFC3986,
|
|
2686
2686
|
formatters: {
|
|
2687
2687
|
RFC1738: function(e) {
|
|
2688
2688
|
return Fc.call(e, Dc, "+");
|
|
@@ -2691,13 +2691,13 @@ function() {
|
|
|
2691
2691
|
return String(e);
|
|
2692
2692
|
}
|
|
2693
2693
|
},
|
|
2694
|
-
RFC1738:
|
|
2695
|
-
RFC3986:
|
|
2696
|
-
}, $c = nr,
|
|
2694
|
+
RFC1738: Ct.RFC1738,
|
|
2695
|
+
RFC3986: Ct.RFC3986
|
|
2696
|
+
}, $c = nr, Nt = Object.prototype.hasOwnProperty, ee = Array.isArray, H = function() {
|
|
2697
2697
|
for (var e = [], t = 0; t < 256; ++t)
|
|
2698
2698
|
e.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase());
|
|
2699
2699
|
return e;
|
|
2700
|
-
}(),
|
|
2700
|
+
}(), Uc = function(t) {
|
|
2701
2701
|
for (; t.length > 1; ) {
|
|
2702
2702
|
var r = t.pop(), n = r.obj[r.prop];
|
|
2703
2703
|
if (ee(n)) {
|
|
@@ -2710,14 +2710,14 @@ function() {
|
|
|
2710
2710
|
for (var n = r && r.plainObjects ? { __proto__: null } : {}, o = 0; o < t.length; ++o)
|
|
2711
2711
|
typeof t[o] < "u" && (n[o] = t[o]);
|
|
2712
2712
|
return n;
|
|
2713
|
-
},
|
|
2713
|
+
}, Lc = function e(t, r, n) {
|
|
2714
2714
|
if (!r)
|
|
2715
2715
|
return t;
|
|
2716
2716
|
if (typeof r != "object" && typeof r != "function") {
|
|
2717
2717
|
if (ee(t))
|
|
2718
2718
|
t.push(r);
|
|
2719
2719
|
else if (t && typeof t == "object")
|
|
2720
|
-
(n && (n.plainObjects || n.allowPrototypes) || !
|
|
2720
|
+
(n && (n.plainObjects || n.allowPrototypes) || !Nt.call(Object.prototype, r)) && (t[r] = !0);
|
|
2721
2721
|
else
|
|
2722
2722
|
return [t, r];
|
|
2723
2723
|
return t;
|
|
@@ -2726,14 +2726,14 @@ function() {
|
|
|
2726
2726
|
return [t].concat(r);
|
|
2727
2727
|
var o = t;
|
|
2728
2728
|
return ee(t) && !ee(r) && (o = to(t, n)), ee(t) && ee(r) ? (r.forEach(function(i, a) {
|
|
2729
|
-
if (
|
|
2729
|
+
if (Nt.call(t, a)) {
|
|
2730
2730
|
var s = t[a];
|
|
2731
2731
|
s && typeof s == "object" && i && typeof i == "object" ? t[a] = e(s, i, n) : t.push(i);
|
|
2732
2732
|
} else
|
|
2733
2733
|
t[a] = i;
|
|
2734
2734
|
}), t) : Object.keys(r).reduce(function(i, a) {
|
|
2735
2735
|
var s = r[a];
|
|
2736
|
-
return
|
|
2736
|
+
return Nt.call(i, a) ? i[a] = e(i[a], s, n) : i[a] = s, i;
|
|
2737
2737
|
}, o);
|
|
2738
2738
|
}, Mc = function(t, r) {
|
|
2739
2739
|
return Object.keys(r).reduce(function(n, o) {
|
|
@@ -2748,7 +2748,7 @@ function() {
|
|
|
2748
2748
|
} catch {
|
|
2749
2749
|
return n;
|
|
2750
2750
|
}
|
|
2751
|
-
},
|
|
2751
|
+
}, xt = 1024, kc = function(t, r, n, o, i) {
|
|
2752
2752
|
if (t.length === 0)
|
|
2753
2753
|
return t;
|
|
2754
2754
|
var a = t;
|
|
@@ -2756,8 +2756,8 @@ function() {
|
|
|
2756
2756
|
return escape(a).replace(/%u[0-9a-f]{4}/gi, function(S) {
|
|
2757
2757
|
return "%26%23" + parseInt(S.slice(2), 16) + "%3B";
|
|
2758
2758
|
});
|
|
2759
|
-
for (var s = "", c = 0; c < a.length; c +=
|
|
2760
|
-
for (var u = a.length >=
|
|
2759
|
+
for (var s = "", c = 0; c < a.length; c += xt) {
|
|
2760
|
+
for (var u = a.length >= xt ? a.slice(c, c + xt) : a, l = [], p = 0; p < u.length; ++p) {
|
|
2761
2761
|
var y = u.charCodeAt(p);
|
|
2762
2762
|
if (y === 45 || y === 46 || y === 95 || y === 126 || y >= 48 && y <= 57 || y >= 65 && y <= 90 || y >= 97 && y <= 122 || i === $c.RFC1738 && (y === 40 || y === 41)) {
|
|
2763
2763
|
l[l.length] = u.charAt(p);
|
|
@@ -2786,7 +2786,7 @@ function() {
|
|
|
2786
2786
|
var u = s[c], l = a[u];
|
|
2787
2787
|
typeof l == "object" && l !== null && n.indexOf(l) === -1 && (r.push({ obj: a, prop: u }), n.push(l));
|
|
2788
2788
|
}
|
|
2789
|
-
return
|
|
2789
|
+
return Uc(r), t;
|
|
2790
2790
|
}, qc = function(t) {
|
|
2791
2791
|
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
2792
2792
|
}, zc = function(t) {
|
|
@@ -2810,8 +2810,8 @@ function() {
|
|
|
2810
2810
|
isBuffer: zc,
|
|
2811
2811
|
isRegExp: qc,
|
|
2812
2812
|
maybeMap: Wc,
|
|
2813
|
-
merge:
|
|
2814
|
-
}, no = _c,
|
|
2813
|
+
merge: Lc
|
|
2814
|
+
}, no = _c, Ze = ro, Te = nr, Jc = Object.prototype.hasOwnProperty, oo = {
|
|
2815
2815
|
brackets: function(t) {
|
|
2816
2816
|
return t + "[]";
|
|
2817
2817
|
},
|
|
@@ -2835,7 +2835,7 @@ function() {
|
|
|
2835
2835
|
delimiter: "&",
|
|
2836
2836
|
encode: !0,
|
|
2837
2837
|
encodeDotInKeys: !1,
|
|
2838
|
-
encoder:
|
|
2838
|
+
encoder: Ze.encode,
|
|
2839
2839
|
encodeValuesOnly: !1,
|
|
2840
2840
|
filter: void 0,
|
|
2841
2841
|
format: Kr,
|
|
@@ -2849,36 +2849,36 @@ function() {
|
|
|
2849
2849
|
strictNullHandling: !1
|
|
2850
2850
|
}, Vc = function(t) {
|
|
2851
2851
|
return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
|
|
2852
|
-
},
|
|
2853
|
-
for (var g = t, E = O, P = 0,
|
|
2852
|
+
}, _t = {}, Kc = function e(t, r, n, o, i, a, s, c, u, l, p, y, S, d, h, m, b, O) {
|
|
2853
|
+
for (var g = t, E = O, P = 0, U = !1; (E = E.get(_t)) !== void 0 && !U; ) {
|
|
2854
2854
|
var T = E.get(t);
|
|
2855
2855
|
if (P += 1, typeof T < "u") {
|
|
2856
2856
|
if (T === P)
|
|
2857
2857
|
throw new RangeError("Cyclic object value");
|
|
2858
|
-
|
|
2858
|
+
U = !0;
|
|
2859
2859
|
}
|
|
2860
|
-
typeof E.get(
|
|
2860
|
+
typeof E.get(_t) > "u" && (P = 0);
|
|
2861
2861
|
}
|
|
2862
|
-
if (typeof l == "function" ? g = l(r, g) : g instanceof Date ? g = S(g) : n === "comma" && W(g) && (g =
|
|
2862
|
+
if (typeof l == "function" ? g = l(r, g) : g instanceof Date ? g = S(g) : n === "comma" && W(g) && (g = Ze.maybeMap(g, function(be) {
|
|
2863
2863
|
return be instanceof Date ? S(be) : be;
|
|
2864
2864
|
})), g === null) {
|
|
2865
2865
|
if (a)
|
|
2866
2866
|
return u && !m ? u(r, I.encoder, b, "key", d) : r;
|
|
2867
2867
|
g = "";
|
|
2868
2868
|
}
|
|
2869
|
-
if (Vc(g) ||
|
|
2869
|
+
if (Vc(g) || Ze.isBuffer(g)) {
|
|
2870
2870
|
if (u) {
|
|
2871
2871
|
var V = m ? r : u(r, I.encoder, b, "key", d);
|
|
2872
2872
|
return [h(V) + "=" + h(u(g, I.encoder, b, "value", d))];
|
|
2873
2873
|
}
|
|
2874
2874
|
return [h(r) + "=" + h(String(g))];
|
|
2875
2875
|
}
|
|
2876
|
-
var
|
|
2876
|
+
var L = [];
|
|
2877
2877
|
if (typeof g > "u")
|
|
2878
|
-
return
|
|
2878
|
+
return L;
|
|
2879
2879
|
var B;
|
|
2880
2880
|
if (n === "comma" && W(g))
|
|
2881
|
-
m && u && (g =
|
|
2881
|
+
m && u && (g = Ze.maybeMap(g, u)), B = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
|
|
2882
2882
|
else if (W(l))
|
|
2883
2883
|
B = l;
|
|
2884
2884
|
else {
|
|
@@ -2894,7 +2894,7 @@ function() {
|
|
|
2894
2894
|
var se = y && c ? String(M).replace(/\./g, "%2E") : String(M), q = W(g) ? typeof n == "function" ? n(N, se) : N : N + (y ? "." + se : "[" + se + "]");
|
|
2895
2895
|
O.set(t, P);
|
|
2896
2896
|
var we = no();
|
|
2897
|
-
we.set(
|
|
2897
|
+
we.set(_t, O), io(L, e(
|
|
2898
2898
|
_,
|
|
2899
2899
|
q,
|
|
2900
2900
|
n,
|
|
@@ -2916,7 +2916,7 @@ function() {
|
|
|
2916
2916
|
));
|
|
2917
2917
|
}
|
|
2918
2918
|
}
|
|
2919
|
-
return
|
|
2919
|
+
return L;
|
|
2920
2920
|
}, Qc = function(t) {
|
|
2921
2921
|
if (!t)
|
|
2922
2922
|
return I;
|
|
@@ -2995,7 +2995,7 @@ function() {
|
|
|
2995
2995
|
}
|
|
2996
2996
|
var S = a.join(n.delimiter), d = n.addQueryPrefix === !0 ? "?" : "";
|
|
2997
2997
|
return n.charsetSentinel && (n.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), S.length > 0 ? d + S : "";
|
|
2998
|
-
}, ie = ro,
|
|
2998
|
+
}, ie = ro, Ht = Object.prototype.hasOwnProperty, Qr = Array.isArray, A = {
|
|
2999
2999
|
allowDots: !1,
|
|
3000
3000
|
allowEmptyArrays: !1,
|
|
3001
3001
|
allowPrototypes: !1,
|
|
@@ -3053,7 +3053,7 @@ function() {
|
|
|
3053
3053
|
return r.decoder(m, A.decoder, u, "value");
|
|
3054
3054
|
}
|
|
3055
3055
|
)), d && r.interpretNumericEntities && u === "iso-8859-1" && (d = Yc(String(d))), l.indexOf("[]=") > -1 && (d = Qr(d) ? [d] : d);
|
|
3056
|
-
var h =
|
|
3056
|
+
var h = Ht.call(n, S);
|
|
3057
3057
|
h && r.duplicates === "combine" ? n[S] = ie.combine(n[S], d) : (!h || r.duplicates === "last") && (n[S] = d);
|
|
3058
3058
|
}
|
|
3059
3059
|
return n;
|
|
@@ -3079,12 +3079,12 @@ function() {
|
|
|
3079
3079
|
if (t) {
|
|
3080
3080
|
var i = n.allowDots ? t.replace(/\.([^.[]+)/g, "[$1]") : t, a = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, c = n.depth > 0 && a.exec(i), u = c ? i.slice(0, c.index) : i, l = [];
|
|
3081
3081
|
if (u) {
|
|
3082
|
-
if (!n.plainObjects &&
|
|
3082
|
+
if (!n.plainObjects && Ht.call(Object.prototype, u) && !n.allowPrototypes)
|
|
3083
3083
|
return;
|
|
3084
3084
|
l.push(u);
|
|
3085
3085
|
}
|
|
3086
3086
|
for (var p = 0; n.depth > 0 && (c = s.exec(i)) !== null && p < n.depth; ) {
|
|
3087
|
-
if (p += 1, !n.plainObjects &&
|
|
3087
|
+
if (p += 1, !n.plainObjects && Ht.call(Object.prototype, c[1].slice(1, -1)) && !n.allowPrototypes)
|
|
3088
3088
|
return;
|
|
3089
3089
|
l.push(c[1]);
|
|
3090
3090
|
}
|
|
@@ -3152,7 +3152,7 @@ function() {
|
|
|
3152
3152
|
};
|
|
3153
3153
|
const fl = /* @__PURE__ */ ua(ul);
|
|
3154
3154
|
/*! js-cookie v3.0.5 | MIT */
|
|
3155
|
-
function
|
|
3155
|
+
function qe(e) {
|
|
3156
3156
|
for (var t = 1; t < arguments.length; t++) {
|
|
3157
3157
|
var r = arguments[t];
|
|
3158
3158
|
for (var n in r)
|
|
@@ -3171,10 +3171,10 @@ var pl = {
|
|
|
3171
3171
|
);
|
|
3172
3172
|
}
|
|
3173
3173
|
};
|
|
3174
|
-
function
|
|
3174
|
+
function Wt(e, t) {
|
|
3175
3175
|
function r(o, i, a) {
|
|
3176
3176
|
if (!(typeof document > "u")) {
|
|
3177
|
-
a =
|
|
3177
|
+
a = qe({}, t, a), typeof a.expires == "number" && (a.expires = new Date(Date.now() + a.expires * 864e5)), a.expires && (a.expires = a.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
3178
3178
|
var s = "";
|
|
3179
3179
|
for (var c in a)
|
|
3180
3180
|
a[c] && (s += "; " + c, a[c] !== !0 && (s += "=" + a[c].split(";")[0]));
|
|
@@ -3203,16 +3203,16 @@ function Ht(e, t) {
|
|
|
3203
3203
|
r(
|
|
3204
3204
|
o,
|
|
3205
3205
|
"",
|
|
3206
|
-
|
|
3206
|
+
qe({}, i, {
|
|
3207
3207
|
expires: -1
|
|
3208
3208
|
})
|
|
3209
3209
|
);
|
|
3210
3210
|
},
|
|
3211
3211
|
withAttributes: function(o) {
|
|
3212
|
-
return
|
|
3212
|
+
return Wt(this.converter, qe({}, this.attributes, o));
|
|
3213
3213
|
},
|
|
3214
3214
|
withConverter: function(o) {
|
|
3215
|
-
return
|
|
3215
|
+
return Wt(qe({}, this.converter, o), this.attributes);
|
|
3216
3216
|
}
|
|
3217
3217
|
},
|
|
3218
3218
|
{
|
|
@@ -3221,12 +3221,12 @@ function Ht(e, t) {
|
|
|
3221
3221
|
}
|
|
3222
3222
|
);
|
|
3223
3223
|
}
|
|
3224
|
-
var Xr =
|
|
3224
|
+
var Xr = Wt(pl, { path: "/" });
|
|
3225
3225
|
de.extend(No);
|
|
3226
3226
|
de.extend(xo);
|
|
3227
3227
|
const so = "UTC", or = "timeZone", co = "timezonechange", dl = "__UPF_TIMEZONE_CHANGE__", Yr = /* @__PURE__ */ new Set();
|
|
3228
3228
|
var cn, ln;
|
|
3229
|
-
const yl = (ln = (cn = de.tz) == null ? void 0 : cn.guess) == null ? void 0 : ln.bind(de.tz), Z = (e) => (e || "").trim(),
|
|
3229
|
+
const yl = (ln = (cn = de.tz) == null ? void 0 : cn.guess) == null ? void 0 : ln.bind(de.tz), Z = (e) => (e || "").trim(), lt = () => typeof window > "u" ? void 0 : window, lo = () => {
|
|
3230
3230
|
try {
|
|
3231
3231
|
return typeof sessionStorage > "u" ? "" : Z(sessionStorage.getItem(or));
|
|
3232
3232
|
} catch {
|
|
@@ -3239,7 +3239,7 @@ const yl = (ln = (cn = de.tz) == null ? void 0 : cn.guess) == null ? void 0 : ln
|
|
|
3239
3239
|
}
|
|
3240
3240
|
}, uo = () => {
|
|
3241
3241
|
var t;
|
|
3242
|
-
const e =
|
|
3242
|
+
const e = lt();
|
|
3243
3243
|
if (!(e != null && e.name)) return "";
|
|
3244
3244
|
try {
|
|
3245
3245
|
const r = (t = JSON.parse(e.name || "{}")) == null ? void 0 : t.parentData;
|
|
@@ -3251,7 +3251,7 @@ const yl = (ln = (cn = de.tz) == null ? void 0 : cn.guess) == null ? void 0 : ln
|
|
|
3251
3251
|
timeZone: Z(e),
|
|
3252
3252
|
source: t,
|
|
3253
3253
|
timestamp: Date.now()
|
|
3254
|
-
}),
|
|
3254
|
+
}), Jt = Co(lo() || uo()), hl = /* @__PURE__ */ new Set();
|
|
3255
3255
|
let en = !1;
|
|
3256
3256
|
const gl = () => {
|
|
3257
3257
|
if (!(typeof Intl > "u" || typeof Intl.DateTimeFormat != "function"))
|
|
@@ -3293,14 +3293,14 @@ const gl = () => {
|
|
|
3293
3293
|
}, El = (e) => {
|
|
3294
3294
|
var t;
|
|
3295
3295
|
try {
|
|
3296
|
-
(t =
|
|
3296
|
+
(t = lt()) == null || t.dispatchEvent(new CustomEvent(co, { detail: e }));
|
|
3297
3297
|
} catch {
|
|
3298
3298
|
}
|
|
3299
3299
|
}, Ol = (e, t = {}) => {
|
|
3300
|
-
const r = Z(e), n = fo(r, t.source), o =
|
|
3301
|
-
o && (
|
|
3300
|
+
const r = Z(e), n = fo(r, t.source), o = Jt.value !== r;
|
|
3301
|
+
o && (Jt.value = r);
|
|
3302
3302
|
try {
|
|
3303
|
-
const i =
|
|
3303
|
+
const i = lt();
|
|
3304
3304
|
i && (i.__UPF_TIMEZONE_SNAPSHOT__ = n);
|
|
3305
3305
|
} catch {
|
|
3306
3306
|
}
|
|
@@ -3329,24 +3329,44 @@ const gl = () => {
|
|
|
3329
3329
|
const t = e.data;
|
|
3330
3330
|
!t || t.type !== dl || ir(t.detail || t, "message");
|
|
3331
3331
|
}, Il = () => {
|
|
3332
|
-
const e =
|
|
3332
|
+
const e = lt();
|
|
3333
3333
|
return !e || en ? !1 : (en = !0, e.addEventListener(co, Rl), e.addEventListener("storage", Pl), e.addEventListener("message", Tl), !0);
|
|
3334
3334
|
};
|
|
3335
3335
|
Il();
|
|
3336
3336
|
const Cl = () => {
|
|
3337
|
-
const t = Z(
|
|
3337
|
+
const t = Z(Jt.value) || lo() || uo() || vl() || gl();
|
|
3338
3338
|
return po(t) ? Z(t) : so;
|
|
3339
|
-
}, ar =
|
|
3339
|
+
}, ar = Ne(), yo = ar.sso ?? !0, tn = ar.i18n ?? !0, mo = ar.noRedireLogin ?? !1;
|
|
3340
3340
|
let rn = "", nn = 0;
|
|
3341
|
-
const Nl = 1e3, xl = [
|
|
3341
|
+
const Nl = 1e3, xl = [
|
|
3342
|
+
"/api/iot/",
|
|
3343
|
+
"/api/iot-device/",
|
|
3344
|
+
"/api/device-relation/",
|
|
3345
|
+
"/api/oss/minio/",
|
|
3346
|
+
"/api/progress/accessor/",
|
|
3347
|
+
"/api/dms/analysis/"
|
|
3348
|
+
], _l = ["/instance", "/instance/list", "/instance/getlast", "/instancelog"], Ie = (e) => {
|
|
3342
3349
|
const t = String(e || "").trim().toLowerCase().split("?")[0].split("#")[0];
|
|
3343
3350
|
return t ? t.startsWith("/") ? t : `/${t}` : "";
|
|
3344
|
-
},
|
|
3345
|
-
const
|
|
3351
|
+
}, Fl = (e, t = "") => {
|
|
3352
|
+
const r = String(e || "").trim(), n = String(t || "").trim(), o = (s) => {
|
|
3353
|
+
if (!s) return "";
|
|
3354
|
+
try {
|
|
3355
|
+
if (/^https?:\/\//i.test(s)) return Ie(new URL(s).pathname);
|
|
3356
|
+
} catch {
|
|
3357
|
+
}
|
|
3358
|
+
return Ie(s);
|
|
3359
|
+
}, i = o(r);
|
|
3360
|
+
if (!i) return o(n);
|
|
3361
|
+
if (i.startsWith("/api/")) return i;
|
|
3362
|
+
const a = o(n);
|
|
3363
|
+
return a ? Ie(`${a}/${i}`.replace(/\/+/g, "/")) : i;
|
|
3364
|
+
}, Dl = (e) => {
|
|
3365
|
+
const t = new URL(e), r = Ie(t.pathname), n = Ie(t.hash.replace(/^#/, ""));
|
|
3346
3366
|
return r.startsWith("/iot/iot") || n.startsWith("/iot/iot") || t.searchParams.get("app") === "iot";
|
|
3347
|
-
},
|
|
3348
|
-
const
|
|
3349
|
-
return
|
|
3367
|
+
}, $l = (e, t = "") => {
|
|
3368
|
+
const r = Fl(e, t);
|
|
3369
|
+
return !r || !xl.some((o) => r.startsWith(o)) ? !1 : !_l.some((o) => r.endsWith(o));
|
|
3350
3370
|
}, on = async (e, t, r = []) => {
|
|
3351
3371
|
const n = Date.now(), o = 1200, i = 60;
|
|
3352
3372
|
for (; Date.now() - n < o; ) {
|
|
@@ -3356,20 +3376,20 @@ const Nl = 1e3, xl = ["/instance", "/instance/list", "/instance/getlast", "/inst
|
|
|
3356
3376
|
}
|
|
3357
3377
|
return e(t, ...r);
|
|
3358
3378
|
};
|
|
3359
|
-
let
|
|
3360
|
-
const
|
|
3361
|
-
|
|
3362
|
-
},
|
|
3379
|
+
let Ft = !1;
|
|
3380
|
+
const Ul = 5e3, ho = () => Ft ? !1 : (Ft = !0, setTimeout(() => {
|
|
3381
|
+
Ft = !1;
|
|
3382
|
+
}, Ul), !0), go = () => {
|
|
3363
3383
|
if (mo) return;
|
|
3364
3384
|
const e = "/login";
|
|
3365
3385
|
if (location.pathname === e) return;
|
|
3366
3386
|
window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1;
|
|
3367
3387
|
const t = window.top;
|
|
3368
3388
|
t != null && t.vueRouter ? t.vueRouter.replace(e) : window.location.replace(`/#${e}`);
|
|
3369
|
-
},
|
|
3389
|
+
}, Ll = () => Ro("code") || "" || mo ? !1 : ho() ? (yo ? Po({ ...To, redirect_uri: Io }) : go(), !0) : !1, Ml = async (e) => {
|
|
3370
3390
|
var r;
|
|
3371
3391
|
return ((r = e.config) == null ? void 0 : r.responseType) === "blob" ? e : e.data ?? e;
|
|
3372
|
-
},
|
|
3392
|
+
}, Bl = async (e, t) => {
|
|
3373
3393
|
var d, h, m, b;
|
|
3374
3394
|
const { t: r } = pn();
|
|
3375
3395
|
let n, o, i = {};
|
|
@@ -3377,7 +3397,7 @@ const Dl = 5e3, ho = () => _t ? !1 : (_t = !0, setTimeout(() => {
|
|
|
3377
3397
|
let s = ((d = e == null ? void 0 : e.response) == null ? void 0 : d.data) || {};
|
|
3378
3398
|
const c = s == null ? void 0 : s.code, u = (h = e.response) == null ? void 0 : h.status;
|
|
3379
3399
|
if (c === 401 || u === 401) {
|
|
3380
|
-
|
|
3400
|
+
Ll(), n = c || u, i = s;
|
|
3381
3401
|
const O = (t == null ? void 0 : t.i18n) ?? !0;
|
|
3382
3402
|
if (tn && O && (s != null && s.status)) {
|
|
3383
3403
|
const g = !(s != null && s.data) || !s.data.length ? [] : s.data, E = r(s.status, ...g);
|
|
@@ -3410,10 +3430,10 @@ const Dl = 5e3, ho = () => _t ? !1 : (_t = !0, setTimeout(() => {
|
|
|
3410
3430
|
const p = Date.now(), y = o === rn, S = p - nn < Nl;
|
|
3411
3431
|
return !(t != null && t.ignoreErrorMessage) && o && (!y || !S) && ((b = (m = window.DasMessage) == null ? void 0 : m.error) == null || b.call(m, { message: o, showClose: !0 }), rn = o, nn = p), { ...i, code: n, msg: o, error: e };
|
|
3412
3432
|
};
|
|
3413
|
-
function
|
|
3433
|
+
function kl(e, t) {
|
|
3414
3434
|
const r = R.create();
|
|
3415
3435
|
return Oo(r, async (n) => {
|
|
3416
|
-
const { currentLang: o } = pn(), i =
|
|
3436
|
+
const { currentLang: o } = pn(), i = Ne();
|
|
3417
3437
|
if (n.headers || (n.headers = {}), !(n != null && n.public)) {
|
|
3418
3438
|
let p = "";
|
|
3419
3439
|
if (i.token && (p = i.token), !p) {
|
|
@@ -3431,14 +3451,14 @@ function Ml(e, t) {
|
|
|
3431
3451
|
}
|
|
3432
3452
|
p && !n.headers.Authorization && (n.headers.Authorization = `Bearer ${p}`);
|
|
3433
3453
|
}
|
|
3434
|
-
n.baseURL || (n.baseURL = i.baseURL || ""), n.urlPrefix || (n.urlPrefix = e), n.paramsSerializer || (n.paramsSerializer = { serialize: (p) => fl.stringify(p, { indices: !1 }) }), n.onSuccess || (n.onSuccess =
|
|
3454
|
+
n.baseURL || (n.baseURL = i.baseURL || ""), n.urlPrefix || (n.urlPrefix = e), n.paramsSerializer || (n.paramsSerializer = { serialize: (p) => fl.stringify(p, { indices: !1 }) }), n.onSuccess || (n.onSuccess = Ml), n.onError || (n.onError = Bl), (n.csrf ?? !1) && (n.headers["csrf-token"] = Xr.get("csrf-token"));
|
|
3435
3455
|
const c = n.params || {};
|
|
3436
3456
|
if (c.project === void 0) {
|
|
3437
3457
|
let p = 0;
|
|
3438
3458
|
const y = new URL(location.href).searchParams;
|
|
3439
3459
|
p = y.get("project") || y.get("projectId") || 0, p || (p = _o().id ?? 0), (p || p === 0) && (c.project = p);
|
|
3440
3460
|
}
|
|
3441
|
-
if (
|
|
3461
|
+
if (Dl(location.href) && $l(String(n.url || ""), String(n.urlPrefix || ""))) {
|
|
3442
3462
|
const { instanceInfo: p } = Fo();
|
|
3443
3463
|
p != null && p.instanceId && (c.instance = p.instanceId);
|
|
3444
3464
|
}
|
|
@@ -3447,28 +3467,28 @@ function Ml(e, t) {
|
|
|
3447
3467
|
return l && (n.headers["Accept-Language"] = l), l && Xr.set("locale", l), n;
|
|
3448
3468
|
});
|
|
3449
3469
|
}
|
|
3450
|
-
const
|
|
3470
|
+
const jl = "v1", So = kl(`/api/admin/basic-application/user-rights/${jl}`), ql = So.get("/menu-module-func"), zl = So.post("/right-func"), an = (e) => Array.isArray(e) ? e : e == null || e === "" ? [] : [e], Hl = (e) => {
|
|
3451
3471
|
const t = an(e == null ? void 0 : e.appIds).map((o) => typeof o == "number" ? o : String(o ?? "").trim()).filter((o) => typeof o == "number" ? !Number.isNaN(o) : !!o), r = an(e == null ? void 0 : e.moduleIds).map((o) => typeof o == "number" ? o : String(o ?? "").trim()).filter((o) => typeof o == "number" ? !Number.isNaN(o) : !!o);
|
|
3452
3472
|
if (!t.length) return null;
|
|
3453
3473
|
const n = { appIds: t };
|
|
3454
3474
|
return r.length && (n.moduleIds = r), n;
|
|
3455
|
-
},
|
|
3475
|
+
}, Wl = (e) => {
|
|
3456
3476
|
const t = e && typeof e == "object" ? String((e == null ? void 0 : e.type) ?? "").trim() : "";
|
|
3457
3477
|
return t === "appId" || t === "menuId" ? t : e && typeof e == "object" && ("appIds" in e || "moduleIds" in e) ? "appId" : "menuId";
|
|
3458
|
-
},
|
|
3478
|
+
}, Jl = (e) => {
|
|
3459
3479
|
const t = e && typeof e == "object" ? e == null ? void 0 : e.menuId : e;
|
|
3460
3480
|
return typeof t == "number" ? Number.isNaN(t) ? "" : String(t) : String(t ?? "").trim();
|
|
3461
|
-
}, sn = (e) => typeof e == "number" ? Number.isNaN(e) ? "" : String(e) : String(e ?? "").trim(),
|
|
3481
|
+
}, sn = (e) => typeof e == "number" ? Number.isNaN(e) ? "" : String(e) : String(e ?? "").trim(), Gl = (e) => {
|
|
3462
3482
|
if (!e || typeof e != "object") return [];
|
|
3463
3483
|
const t = e == null ? void 0 : e.children;
|
|
3464
3484
|
return Array.isArray(t) ? t.filter((r) => r && typeof r == "object") : [];
|
|
3465
3485
|
}, vo = (e) => {
|
|
3466
3486
|
if (!e || typeof e != "object") return [];
|
|
3467
|
-
const r =
|
|
3487
|
+
const r = Gl(e).flatMap((i) => vo(i));
|
|
3468
3488
|
if (r.length) return r;
|
|
3469
3489
|
const n = String((e == null ? void 0 : e.type) ?? "").trim(), o = String((e == null ? void 0 : e.routeCode) ?? "").trim();
|
|
3470
3490
|
return n === "menu" && o ? [o] : [];
|
|
3471
|
-
},
|
|
3491
|
+
}, Dt = (e) => {
|
|
3472
3492
|
const t = { id: { id: [] }, code: {} }, r = Array.isArray(e) ? e : [], n = (i) => {
|
|
3473
3493
|
const a = String(i ?? "").trim();
|
|
3474
3494
|
if (!a) return { groupCode: "", actionCode: "" };
|
|
@@ -3494,39 +3514,39 @@ const Bl = "v1", So = Ml(`/api/admin/basic-application/user-rights/${Bl}`), kl =
|
|
|
3494
3514
|
}
|
|
3495
3515
|
}
|
|
3496
3516
|
return t.code.sourceCode = Array.from(o), t;
|
|
3497
|
-
},
|
|
3517
|
+
}, Zl = () => {
|
|
3498
3518
|
const e = window.sessionStorage.getItem("currentUserMenuPermissionsList") || "";
|
|
3499
3519
|
try {
|
|
3500
3520
|
const t = JSON.parse(window.sessionStorage.getItem("menuItem") || "{}"), r = String((t == null ? void 0 : t.id) ?? "").trim(), n = String(window.sessionStorage.getItem("currentUserMenuPermissionsMenuId") || "").trim();
|
|
3501
3521
|
if (r && n && r !== n)
|
|
3502
|
-
return
|
|
3522
|
+
return Dt([]);
|
|
3503
3523
|
const o = e ? JSON.parse(e) : [];
|
|
3504
|
-
return
|
|
3524
|
+
return Dt(o);
|
|
3505
3525
|
} catch {
|
|
3506
|
-
return
|
|
3526
|
+
return Dt([]);
|
|
3507
3527
|
}
|
|
3508
3528
|
}, wo = (e = "id") => {
|
|
3509
3529
|
var a, s;
|
|
3510
|
-
const t =
|
|
3530
|
+
const t = Zl();
|
|
3511
3531
|
if (!t || typeof t != "object")
|
|
3512
3532
|
return e === "all" ? { idList: [], codeList: [] } : [];
|
|
3513
3533
|
const r = (a = t == null ? void 0 : t.id) == null ? void 0 : a.id, n = Array.isArray(r) ? r : [], o = (s = t == null ? void 0 : t.code) == null ? void 0 : s.sourceCode, i = Array.isArray(o) ? o : [];
|
|
3514
3534
|
return e === "all" ? { idList: n, codeList: i } : e === "code" ? i : n;
|
|
3515
|
-
},
|
|
3535
|
+
}, yu = (e, t) => {
|
|
3516
3536
|
const r = (async () => {
|
|
3517
|
-
if (
|
|
3518
|
-
const c =
|
|
3537
|
+
if (Wl(e) === "menuId") {
|
|
3538
|
+
const c = Jl(e);
|
|
3519
3539
|
if (!c) return [];
|
|
3520
|
-
const u = await
|
|
3540
|
+
const u = await ql().run({ menuId: c }), [l, p] = u;
|
|
3521
3541
|
return l ? [] : p;
|
|
3522
3542
|
}
|
|
3523
|
-
const o =
|
|
3543
|
+
const o = Hl(e ?? {});
|
|
3524
3544
|
if (!o) return [];
|
|
3525
|
-
const i = await
|
|
3545
|
+
const i = await zl().run(o), [a, s] = i;
|
|
3526
3546
|
return a ? [] : s;
|
|
3527
3547
|
})();
|
|
3528
3548
|
return typeof t == "function" && r.then((n) => t(n)).catch(() => t([])), r;
|
|
3529
|
-
},
|
|
3549
|
+
}, mu = (e, t) => {
|
|
3530
3550
|
const r = String(e ?? "").trim(), n = String(t ?? "").trim();
|
|
3531
3551
|
if (!r && !n) return !1;
|
|
3532
3552
|
if (!r && n)
|
|
@@ -3537,7 +3557,7 @@ const Bl = "v1", So = Ml(`/api/admin/basic-application/user-rights/${Bl}`), kl =
|
|
|
3537
3557
|
} catch {
|
|
3538
3558
|
return !1;
|
|
3539
3559
|
}
|
|
3540
|
-
},
|
|
3560
|
+
}, hu = (e) => {
|
|
3541
3561
|
const t = e || JSON.parse(sessionStorage.getItem("menuItem") || "{}");
|
|
3542
3562
|
return {
|
|
3543
3563
|
authCodes: wo(),
|
|
@@ -3550,7 +3570,7 @@ const Bl = "v1", So = Ml(`/api/admin/basic-application/user-rights/${Bl}`), kl =
|
|
|
3550
3570
|
showName: t.showName ?? "",
|
|
3551
3571
|
type: (t == null ? void 0 : t.type) ?? ""
|
|
3552
3572
|
};
|
|
3553
|
-
},
|
|
3573
|
+
}, gu = () => JSON.parse(sessionStorage.getItem("menuList") || "[]"), Su = () => {
|
|
3554
3574
|
const e = JSON.parse(sessionStorage.getItem("menuList") || "[]"), t = {};
|
|
3555
3575
|
return e.forEach((r) => {
|
|
3556
3576
|
r.appId && (r.rightFuncCodes && r.rightFuncCodes.forEach((n) => t[n] = []), r.children && r.children.forEach((n) => {
|
|
@@ -3574,7 +3594,7 @@ const Bl = "v1", So = Ml(`/api/admin/basic-application/user-rights/${Bl}`), kl =
|
|
|
3574
3594
|
});
|
|
3575
3595
|
}));
|
|
3576
3596
|
}), t;
|
|
3577
|
-
},
|
|
3597
|
+
}, Vl = fn, vu = () => {
|
|
3578
3598
|
var r;
|
|
3579
3599
|
let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
|
|
3580
3600
|
return {
|
|
@@ -3583,9 +3603,9 @@ const Bl = "v1", So = Ml(`/api/admin/basic-application/user-rights/${Bl}`), kl =
|
|
|
3583
3603
|
flag: e.flag ?? null,
|
|
3584
3604
|
tenantId: ((r = e == null ? void 0 : e.tenant) == null ? void 0 : r.id) ?? ""
|
|
3585
3605
|
};
|
|
3586
|
-
},
|
|
3606
|
+
}, wu = () => {
|
|
3587
3607
|
let e = JSON.parse(sessionStorage.getItem("userInfo") || "{}");
|
|
3588
|
-
const t =
|
|
3608
|
+
const t = Ne();
|
|
3589
3609
|
return JSON.stringify(e) === "{}" && t.personalInfo && (e = t.personalInfo), {
|
|
3590
3610
|
id: e.id ?? "",
|
|
3591
3611
|
name: e.name ?? "",
|
|
@@ -3594,7 +3614,7 @@ const Bl = "v1", So = Ml(`/api/admin/basic-application/user-rights/${Bl}`), kl =
|
|
|
3594
3614
|
email: e.email ?? "",
|
|
3595
3615
|
headPicture: e.headPicture ?? ""
|
|
3596
3616
|
};
|
|
3597
|
-
},
|
|
3617
|
+
}, bu = () => {
|
|
3598
3618
|
let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
|
|
3599
3619
|
return {
|
|
3600
3620
|
userId: e.id ?? "",
|
|
@@ -3616,9 +3636,9 @@ const Bl = "v1", So = Ml(`/api/admin/basic-application/user-rights/${Bl}`), kl =
|
|
|
3616
3636
|
address: e.address ?? "",
|
|
3617
3637
|
description: e.description ?? ""
|
|
3618
3638
|
};
|
|
3619
|
-
},
|
|
3639
|
+
}, Eu = () => sessionStorage.getItem("languages"), Kl = () => {
|
|
3620
3640
|
let e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}");
|
|
3621
|
-
const t =
|
|
3641
|
+
const t = Ne();
|
|
3622
3642
|
return JSON.stringify(e) === "{}" && t.projectInfo && (e = t.projectInfo), {
|
|
3623
3643
|
id: (e == null ? void 0 : e.id) ?? 0,
|
|
3624
3644
|
code: (e == null ? void 0 : e.code) ?? 0,
|
|
@@ -3632,7 +3652,7 @@ const Bl = "v1", So = Ml(`/api/admin/basic-application/user-rights/${Bl}`), kl =
|
|
|
3632
3652
|
leaf: (e == null ? void 0 : e.leaf) ?? !1,
|
|
3633
3653
|
optional: (e == null ? void 0 : e.leaf) ?? !0
|
|
3634
3654
|
};
|
|
3635
|
-
},
|
|
3655
|
+
}, Ou = () => {
|
|
3636
3656
|
let e = JSON.parse(sessionStorage.getItem("projectInfo") || sessionStorage.getItem("project-message") || "{}");
|
|
3637
3657
|
return {
|
|
3638
3658
|
id: (e == null ? void 0 : e.id) ?? 0,
|
|
@@ -3662,7 +3682,7 @@ const Bl = "v1", So = Ml(`/api/admin/basic-application/user-rights/${Bl}`), kl =
|
|
|
3662
3682
|
currencySymbol: "¥"
|
|
3663
3683
|
}
|
|
3664
3684
|
};
|
|
3665
|
-
},
|
|
3685
|
+
}, Au = () => {
|
|
3666
3686
|
const e = JSON.parse(sessionStorage.getItem("home-config") || "{}");
|
|
3667
3687
|
return {
|
|
3668
3688
|
applicationCode: (e == null ? void 0 : e.applicationCode) ?? "",
|
|
@@ -3673,31 +3693,31 @@ const Bl = "v1", So = Ml(`/api/admin/basic-application/user-rights/${Bl}`), kl =
|
|
|
3673
3693
|
displayPosition: (e == null ? void 0 : e.displayPosition) ?? 1,
|
|
3674
3694
|
type: (e == null ? void 0 : e.type) ?? null
|
|
3675
3695
|
};
|
|
3676
|
-
},
|
|
3696
|
+
}, Ru = () => {
|
|
3677
3697
|
const e = JSON.parse(sessionStorage.getItem("personal-config") || "{}");
|
|
3678
3698
|
return {
|
|
3679
3699
|
style: (e == null ? void 0 : e.style) ?? "",
|
|
3680
3700
|
skinStyle: (e == null ? void 0 : e.skinStyle) ?? ""
|
|
3681
3701
|
};
|
|
3682
|
-
},
|
|
3702
|
+
}, Ql = () => {
|
|
3683
3703
|
try {
|
|
3684
3704
|
const e = window.sessionStorage.getItem("menuItem") || "", t = e ? JSON.parse(e) : {};
|
|
3685
3705
|
return String((t == null ? void 0 : t.routeCode) ?? "").trim();
|
|
3686
3706
|
} catch {
|
|
3687
3707
|
return "";
|
|
3688
3708
|
}
|
|
3689
|
-
},
|
|
3690
|
-
const r = (t == null ? void 0 : t.returnType) ?? "set", n = String((t == null ? void 0 : t.routeCode) ??
|
|
3709
|
+
}, Xl = (e, t) => {
|
|
3710
|
+
const r = (t == null ? void 0 : t.returnType) ?? "set", n = String((t == null ? void 0 : t.routeCode) ?? Ql()).trim(), o = Array.isArray(e) ? e : e instanceof Set ? Array.from(e) : [], i = /* @__PURE__ */ new Set(), a = n ? `${n}.` : "";
|
|
3691
3711
|
return a && o.forEach((s) => {
|
|
3692
3712
|
const c = (s && typeof s == "object" ? s == null ? void 0 : s.code : s) ?? "", u = String(c).trim();
|
|
3693
3713
|
if (!u || !u.startsWith(a)) return;
|
|
3694
3714
|
const l = u.slice(a.length);
|
|
3695
3715
|
l && i.add(l.replace(/\./g, "-"));
|
|
3696
3716
|
}), r === "list" ? Array.from(i).map((s) => ({ code: s })) : i;
|
|
3697
|
-
},
|
|
3717
|
+
}, Yl = (e, t) => {
|
|
3698
3718
|
const r = wo("code"), n = Array.isArray(r) ? r : [];
|
|
3699
|
-
return
|
|
3700
|
-
},
|
|
3719
|
+
return Xl(n, { returnType: "list" });
|
|
3720
|
+
}, Pu = (e, t) => Yl() ?? [], eu = () => {
|
|
3701
3721
|
const e = JSON.parse(sessionStorage.getItem("subApps") || "{}");
|
|
3702
3722
|
return {
|
|
3703
3723
|
appcategorys: e.appcategorys ?? [],
|
|
@@ -3706,9 +3726,9 @@ const Bl = "v1", So = Ml(`/api/admin/basic-application/user-rights/${Bl}`), kl =
|
|
|
3706
3726
|
subAppList: e.subAppList ?? [],
|
|
3707
3727
|
menuCollapses: e.menuCollapses ?? []
|
|
3708
3728
|
};
|
|
3709
|
-
},
|
|
3729
|
+
}, Tu = (e, t = !1) => {
|
|
3710
3730
|
var o, i;
|
|
3711
|
-
const r =
|
|
3731
|
+
const r = eu().subAppList;
|
|
3712
3732
|
if (e)
|
|
3713
3733
|
return t ? ((o = r == null ? void 0 : r.find((a) => a.code === e)) == null ? void 0 : o.originalMenus) ?? [] : ((i = r == null ? void 0 : r.find((a) => a.code === e)) == null ? void 0 : i.menus) ?? [];
|
|
3714
3734
|
const n = {};
|
|
@@ -3717,7 +3737,7 @@ const Bl = "v1", So = Ml(`/api/admin/basic-application/user-rights/${Bl}`), kl =
|
|
|
3717
3737
|
}) : r == null || r.forEach((a) => {
|
|
3718
3738
|
n[a.code] = a.menus ?? [];
|
|
3719
3739
|
}), n;
|
|
3720
|
-
},
|
|
3740
|
+
}, Iu = () => {
|
|
3721
3741
|
const e = JSON.parse(sessionStorage.getItem("tabs") || "{}");
|
|
3722
3742
|
return {
|
|
3723
3743
|
currentCode: e.currentCode ?? "",
|
|
@@ -3725,41 +3745,41 @@ const Bl = "v1", So = Ml(`/api/admin/basic-application/user-rights/${Bl}`), kl =
|
|
|
3725
3745
|
tabMap: e.tabMap ?? {},
|
|
3726
3746
|
preTab: e.preTab ?? {}
|
|
3727
3747
|
};
|
|
3728
|
-
},
|
|
3729
|
-
const e =
|
|
3748
|
+
}, Cu = () => {
|
|
3749
|
+
const e = Ne(), t = sessionStorage.getItem("minioAddress");
|
|
3730
3750
|
return t || (e.baseURL ? e.baseURL : location.origin);
|
|
3731
|
-
},
|
|
3751
|
+
}, Nu = () => ({
|
|
3732
3752
|
instanceInfo: JSON.parse(sessionStorage.getItem("instance") || "{}").instanceInfo ?? {}
|
|
3733
|
-
}),
|
|
3734
|
-
|
|
3753
|
+
}), xu = () => localStorage.getItem("fav-icon") || "./logo.svg";
|
|
3754
|
+
Vl() || bo();
|
|
3735
3755
|
var un;
|
|
3736
|
-
(un =
|
|
3756
|
+
(un = Kl()) != null && un.id || Eo();
|
|
3737
3757
|
export {
|
|
3738
|
-
|
|
3739
|
-
|
|
3758
|
+
Xl as buildActionSuffixSet,
|
|
3759
|
+
Su as getAuthobj,
|
|
3740
3760
|
wo as getCurrentModulePermissionData,
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3761
|
+
Ql as getCurrentRouteCode,
|
|
3762
|
+
yu as getCurrentUserPermissionList,
|
|
3763
|
+
xu as getFavIcon,
|
|
3764
|
+
Zl as getGroupedCurrentUserPermissionList,
|
|
3765
|
+
Au as getHomeInfo,
|
|
3766
|
+
Nu as getInstanceInfo,
|
|
3767
|
+
Eu as getLanguages,
|
|
3768
|
+
hu as getMenuItemInfo,
|
|
3769
|
+
gu as getMenuListnfo,
|
|
3770
|
+
Tu as getMenus,
|
|
3771
|
+
Cu as getMinioAddress,
|
|
3772
|
+
Yl as getPageAuth,
|
|
3773
|
+
Pu as getPageAuthBtn,
|
|
3774
|
+
Ru as getPersonalConfig,
|
|
3775
|
+
wu as getPersonalInfo,
|
|
3776
|
+
Kl as getProjectInfo,
|
|
3777
|
+
Ou as getProjectMessage,
|
|
3778
|
+
eu as getSubApps,
|
|
3779
|
+
Iu as getTabInfo,
|
|
3780
|
+
bu as getTenantInfo,
|
|
3781
|
+
Vl as getToken,
|
|
3782
|
+
vu as getUserInfo,
|
|
3783
|
+
Dt as groupPermissionListByModuleAndCode,
|
|
3784
|
+
mu as hasMenuPermissionByRouteCode
|
|
3765
3785
|
};
|