@das-fed/utils 7.0.5-beta.8.1 → 7.0.5-beta.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-services/index.js +476 -459
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +257 -241
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +192 -176
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +254 -238
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +851 -853
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +212 -196
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +780 -768
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +178 -162
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +257 -241
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +939 -918
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +1100 -1102
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.d.ts +1 -1
- package/api-services/modules/justauth/index.js +852 -853
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +192 -176
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +192 -176
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +755 -721
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +754 -720
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +755 -721
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +851 -853
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +207 -191
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +853 -855
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +851 -853
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +851 -853
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +192 -176
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +850 -852
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/index.d.ts +1 -1
- package/common-info/set-personal-info/index.d.ts +1 -1
- package/common-info/set-personal-info/index.js +10 -10
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-tools/get-url-params/index.d.ts +7 -0
- package/common-tools/get-url-params/index.js +45 -38
- package/common-tools/get-url-params/index.js.gz +0 -0
- package/common-tools/obj-tools/index.js +1 -1
- package/common-tools/platform-tools/index.d.ts +7 -2
- package/common-tools/platform-tools/index.js +27 -15
- package/common-tools/platform-tools/index.js.gz +0 -0
- package/create-api-service/index.js +308 -292
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/authorizer.d.ts +1 -0
- package/create-api-service/sso/index.d.ts +9 -7
- package/create-api-service/sso/index.js +874 -761
- package/create-api-service/sso/index.js.gz +0 -0
- package/create-api-service/sso/utils.d.ts +2 -0
- package/create-api-service/thirdLogout/index.d.ts +19 -0
- package/create-api-service/thirdLogout/index.js +1834 -0
- package/create-api-service/thirdLogout/index.js.gz +0 -0
- package/create-api-service/unauthorized-recovery/index.d.ts +30 -0
- package/create-api-service/unauthorized-recovery/index.js +10 -0
- package/curring-http/type.d.ts +6 -0
- package/esm-map.json +10 -1
- package/package.json +4 -4
- package/process-engine-info/index.js +8 -7
- package/token-tools/index.d.ts +2 -1
- package/token-tools/index.js +80 -8
- package/token-tools/index.js.gz +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { setI18nRule as
|
|
1
|
+
import { setI18nRule as Ln, currentLang as Mn, t as G } from "@das-fed/web/packages/i18n/index";
|
|
2
2
|
import { curringHttp as kn } from "@das-fed/utils/curring-http";
|
|
3
|
-
import { getToken as qn, getQuery as jn, login as
|
|
4
|
-
import
|
|
3
|
+
import { getToken as qn, getQuery as jn, login as zn, real_uri as Hn, getTokenParams as Wn } from "@das-fed/utils/create-api-service/sso";
|
|
4
|
+
import Lt from "dayjs";
|
|
5
5
|
import Gn from "dayjs/plugin/utc";
|
|
6
6
|
import Jn from "dayjs/plugin/timezone";
|
|
7
7
|
import { getProjectInfo as Vn, getInstanceInfo as Kn } from "@das-fed/utils/common-info";
|
|
8
8
|
import { getAccessToken as Qn } from "@das-fed/utils/token-tools";
|
|
9
|
-
import { getConfig as
|
|
10
|
-
function
|
|
9
|
+
import { getConfig as Ur } from "@das-fed/utils/config";
|
|
10
|
+
function Br(t, e) {
|
|
11
11
|
return function() {
|
|
12
12
|
return t.apply(e, arguments);
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
const { toString: Xn } = Object.prototype, { getPrototypeOf: Mt } = Object, { iterator:
|
|
15
|
+
const { toString: Xn } = Object.prototype, { getPrototypeOf: Mt } = Object, { iterator: He, toStringTag: Lr } = Symbol, We = /* @__PURE__ */ ((t) => (e) => {
|
|
16
16
|
const n = Xn.call(e);
|
|
17
17
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
18
18
|
})(/* @__PURE__ */ Object.create(null)), I = (t) => (t = t.toLowerCase(), (e) => We(e) === t), Ge = (t) => (e) => typeof e === t, { isArray: ce } = Array, we = Ge("undefined");
|
|
@@ -28,7 +28,7 @@ const Yn = Ge("string"), $ = Ge("function"), kr = Ge("number"), Ee = (t) => t !=
|
|
|
28
28
|
if (We(t) !== "object")
|
|
29
29
|
return !1;
|
|
30
30
|
const e = Mt(t);
|
|
31
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(
|
|
31
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Lr in t) && !(He in t);
|
|
32
32
|
}, to = (t) => {
|
|
33
33
|
if (!Ee(t) || Se(t))
|
|
34
34
|
return !1;
|
|
@@ -80,7 +80,7 @@ function Rt() {
|
|
|
80
80
|
return e;
|
|
81
81
|
}
|
|
82
82
|
const ho = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
83
|
-
n && $(o) ? t[a] =
|
|
83
|
+
n && $(o) ? t[a] = Br(o, n) : t[a] = o;
|
|
84
84
|
}, { allOwnKeys: r }), t), mo = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), go = (t, e, n, r) => {
|
|
85
85
|
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
86
86
|
value: e.prototype
|
|
@@ -109,7 +109,7 @@ const ho = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
|
109
109
|
n[e] = t[e];
|
|
110
110
|
return n;
|
|
111
111
|
}, So = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Mt(Uint8Array)), Eo = (t, e) => {
|
|
112
|
-
const r = (t && t[
|
|
112
|
+
const r = (t && t[He]).call(t);
|
|
113
113
|
let o;
|
|
114
114
|
for (; (o = r.next()) && !o.done; ) {
|
|
115
115
|
const a = o.value;
|
|
@@ -126,14 +126,14 @@ const ho = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
|
126
126
|
function(n, r, o) {
|
|
127
127
|
return r.toUpperCase() + o;
|
|
128
128
|
}
|
|
129
|
-
), Qt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Po = I("RegExp"),
|
|
129
|
+
), Qt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Po = I("RegExp"), zr = (t, e) => {
|
|
130
130
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
131
131
|
Ae(n, (o, a) => {
|
|
132
132
|
let i;
|
|
133
133
|
(i = e(o, a, t)) !== !1 && (r[a] = i || o);
|
|
134
134
|
}), Object.defineProperties(t, r);
|
|
135
135
|
}, To = (t) => {
|
|
136
|
-
|
|
136
|
+
zr(t, (e, n) => {
|
|
137
137
|
if ($(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
138
138
|
return !1;
|
|
139
139
|
const r = t[n];
|
|
@@ -157,7 +157,7 @@ const ho = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
|
157
157
|
}, Co = () => {
|
|
158
158
|
}, _o = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
159
159
|
function No(t) {
|
|
160
|
-
return !!(t && $(t.append) && t[
|
|
160
|
+
return !!(t && $(t.append) && t[Lr] === "FormData" && t[He]);
|
|
161
161
|
}
|
|
162
162
|
const $o = (t) => {
|
|
163
163
|
const e = new Array(10), n = (r, o) => {
|
|
@@ -178,14 +178,14 @@ const $o = (t) => {
|
|
|
178
178
|
return r;
|
|
179
179
|
};
|
|
180
180
|
return n(t, 0);
|
|
181
|
-
}, Fo = I("AsyncFunction"), Do = (t) => t && (Ee(t) || $(t)) && $(t.then) && $(t.catch),
|
|
181
|
+
}, Fo = I("AsyncFunction"), Do = (t) => t && (Ee(t) || $(t)) && $(t.then) && $(t.catch), Hr = ((t, e) => t ? setImmediate : e ? ((n, r) => (Q.addEventListener("message", ({ source: o, data: a }) => {
|
|
182
182
|
o === Q && a === n && r.length && r.shift()();
|
|
183
183
|
}, !1), (o) => {
|
|
184
184
|
r.push(o), Q.postMessage(n, "*");
|
|
185
185
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
186
186
|
typeof setImmediate == "function",
|
|
187
187
|
$(Q.postMessage)
|
|
188
|
-
), Io = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick ||
|
|
188
|
+
), Io = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || Hr, Uo = (t) => t != null && $(t[He]), f = {
|
|
189
189
|
isArray: ce,
|
|
190
190
|
isArrayBuffer: Mr,
|
|
191
191
|
isBuffer: Se,
|
|
@@ -228,7 +228,7 @@ const $o = (t) => {
|
|
|
228
228
|
hasOwnProperty: Qt,
|
|
229
229
|
hasOwnProp: Qt,
|
|
230
230
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
231
|
-
reduceDescriptors:
|
|
231
|
+
reduceDescriptors: zr,
|
|
232
232
|
freezeMethods: To,
|
|
233
233
|
toObjectSet: xo,
|
|
234
234
|
toCamelCase: Ro,
|
|
@@ -241,9 +241,9 @@ const $o = (t) => {
|
|
|
241
241
|
toJSONObject: $o,
|
|
242
242
|
isAsyncFn: Fo,
|
|
243
243
|
isThenable: Do,
|
|
244
|
-
setImmediate:
|
|
244
|
+
setImmediate: Hr,
|
|
245
245
|
asap: Io,
|
|
246
|
-
isIterable:
|
|
246
|
+
isIterable: Uo
|
|
247
247
|
};
|
|
248
248
|
function w(t, e, n, r, o) {
|
|
249
249
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
@@ -295,7 +295,7 @@ w.from = (t, e, n, r, o, a) => {
|
|
|
295
295
|
return u !== Error.prototype;
|
|
296
296
|
}, (s) => s !== "isAxiosError"), w.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
|
|
297
297
|
};
|
|
298
|
-
const
|
|
298
|
+
const Bo = null;
|
|
299
299
|
function Pt(t) {
|
|
300
300
|
return f.isPlainObject(t) || f.isArray(t);
|
|
301
301
|
}
|
|
@@ -307,7 +307,7 @@ function Xt(t, e, n) {
|
|
|
307
307
|
return o = Jr(o), !n && a ? "[" + o + "]" : o;
|
|
308
308
|
}).join(n ? "." : "") : e;
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function Lo(t) {
|
|
311
311
|
return f.isArray(t) && !t.some(Pt);
|
|
312
312
|
}
|
|
313
313
|
const Mo = f.toFlatObject(f, {}, null, function(e) {
|
|
@@ -341,7 +341,7 @@ function Je(t, e, n) {
|
|
|
341
341
|
if (y && !h && typeof y == "object") {
|
|
342
342
|
if (f.endsWith(m, "{}"))
|
|
343
343
|
m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
|
|
344
|
-
else if (f.isArray(y) &&
|
|
344
|
+
else if (f.isArray(y) && Lo(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (S = f.toArray(y)))
|
|
345
345
|
return m = Jr(m), S.forEach(function(g, T) {
|
|
346
346
|
!(f.isUndefined(g) || g === null) && e.append(
|
|
347
347
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -352,24 +352,24 @@ function Je(t, e, n) {
|
|
|
352
352
|
}
|
|
353
353
|
return Pt(y) ? !0 : (e.append(Xt(h, m, a), l(y)), !1);
|
|
354
354
|
}
|
|
355
|
-
const
|
|
355
|
+
const d = [], p = Object.assign(Mo, {
|
|
356
356
|
defaultVisitor: c,
|
|
357
357
|
convertValue: l,
|
|
358
358
|
isVisitable: Pt
|
|
359
359
|
});
|
|
360
360
|
function v(y, m) {
|
|
361
361
|
if (!f.isUndefined(y)) {
|
|
362
|
-
if (
|
|
362
|
+
if (d.indexOf(y) !== -1)
|
|
363
363
|
throw Error("Circular reference detected in " + m.join("."));
|
|
364
|
-
|
|
364
|
+
d.push(y), f.forEach(y, function(S, E) {
|
|
365
365
|
(!(f.isUndefined(S) || S === null) && o.call(
|
|
366
366
|
e,
|
|
367
367
|
S,
|
|
368
368
|
f.isString(E) ? E.trim() : E,
|
|
369
369
|
m,
|
|
370
|
-
|
|
370
|
+
p
|
|
371
371
|
)) === !0 && v(S, m ? m.concat(E) : [E]);
|
|
372
|
-
}),
|
|
372
|
+
}), d.pop();
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
if (!f.isObject(t))
|
|
@@ -481,12 +481,12 @@ const Qr = {
|
|
|
481
481
|
silentJSONParsing: !0,
|
|
482
482
|
forcedJSONParsing: !0,
|
|
483
483
|
clarifyTimeoutError: !1
|
|
484
|
-
}, qo = typeof URLSearchParams < "u" ? URLSearchParams : kt, jo = typeof FormData < "u" ? FormData : null,
|
|
484
|
+
}, qo = typeof URLSearchParams < "u" ? URLSearchParams : kt, jo = typeof FormData < "u" ? FormData : null, zo = typeof Blob < "u" ? Blob : null, Ho = {
|
|
485
485
|
isBrowser: !0,
|
|
486
486
|
classes: {
|
|
487
487
|
URLSearchParams: qo,
|
|
488
488
|
FormData: jo,
|
|
489
|
-
Blob:
|
|
489
|
+
Blob: zo
|
|
490
490
|
},
|
|
491
491
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
492
492
|
}, qt = typeof window < "u" && typeof document < "u", Tt = typeof navigator == "object" && navigator || void 0, Wo = qt && (!Tt || ["ReactNative", "NativeScript", "NS"].indexOf(Tt.product) < 0), Go = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
@@ -499,7 +499,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jo
|
|
|
499
499
|
origin: Jo
|
|
500
500
|
}, Symbol.toStringTag, { value: "Module" })), C = {
|
|
501
501
|
...Vo,
|
|
502
|
-
...
|
|
502
|
+
...Ho
|
|
503
503
|
};
|
|
504
504
|
function Ko(t, e) {
|
|
505
505
|
return Je(t, new C.classes.URLSearchParams(), {
|
|
@@ -689,8 +689,8 @@ let F = class {
|
|
|
689
689
|
const c = de(u);
|
|
690
690
|
if (!c)
|
|
691
691
|
throw new Error("header name must be a non-empty string");
|
|
692
|
-
const
|
|
693
|
-
(!
|
|
692
|
+
const d = f.findKey(o, c);
|
|
693
|
+
(!d || o[d] === void 0 || l === !0 || l === void 0 && o[d] !== !1) && (o[d || u] = Fe(s));
|
|
694
694
|
}
|
|
695
695
|
const i = (s, u) => f.forEach(s, (l, c) => a(l, c, u));
|
|
696
696
|
if (f.isPlainObject(e) || e instanceof this.constructor)
|
|
@@ -853,13 +853,13 @@ function ia(t, e) {
|
|
|
853
853
|
return e = e !== void 0 ? e : 1e3, function(u) {
|
|
854
854
|
const l = Date.now(), c = r[a];
|
|
855
855
|
i || (i = l), n[o] = u, r[o] = l;
|
|
856
|
-
let
|
|
857
|
-
for (;
|
|
858
|
-
|
|
856
|
+
let d = a, p = 0;
|
|
857
|
+
for (; d !== o; )
|
|
858
|
+
p += n[d++], d = d % t;
|
|
859
859
|
if (o = (o + 1) % t, o === a && (a = (a + 1) % t), l - i < e)
|
|
860
860
|
return;
|
|
861
861
|
const v = c && l - c;
|
|
862
|
-
return v ? Math.round(
|
|
862
|
+
return v ? Math.round(p * 1e3 / v) : void 0;
|
|
863
863
|
};
|
|
864
864
|
}
|
|
865
865
|
function sa(t, e) {
|
|
@@ -868,19 +868,19 @@ function sa(t, e) {
|
|
|
868
868
|
n = c, o = null, a && (clearTimeout(a), a = null), t(...l);
|
|
869
869
|
};
|
|
870
870
|
return [(...l) => {
|
|
871
|
-
const c = Date.now(),
|
|
872
|
-
|
|
871
|
+
const c = Date.now(), d = c - n;
|
|
872
|
+
d >= r ? i(l, c) : (o = l, a || (a = setTimeout(() => {
|
|
873
873
|
a = null, i(o);
|
|
874
|
-
}, r -
|
|
874
|
+
}, r - d)));
|
|
875
875
|
}, () => o && i(o)];
|
|
876
876
|
}
|
|
877
|
-
const
|
|
877
|
+
const Le = (t, e, n = 3) => {
|
|
878
878
|
let r = 0;
|
|
879
879
|
const o = ia(50, 250);
|
|
880
880
|
return sa((a) => {
|
|
881
881
|
const i = a.loaded, s = a.lengthComputable ? a.total : void 0, u = i - r, l = o(u), c = i <= s;
|
|
882
882
|
r = i;
|
|
883
|
-
const
|
|
883
|
+
const d = {
|
|
884
884
|
loaded: i,
|
|
885
885
|
total: s,
|
|
886
886
|
progress: s ? i / s : void 0,
|
|
@@ -891,7 +891,7 @@ const Ue = (t, e, n = 3) => {
|
|
|
891
891
|
lengthComputable: s != null,
|
|
892
892
|
[e ? "download" : "upload"]: !0
|
|
893
893
|
};
|
|
894
|
-
t(
|
|
894
|
+
t(d);
|
|
895
895
|
}, n);
|
|
896
896
|
}, tr = (t, e) => {
|
|
897
897
|
const n = t != null;
|
|
@@ -944,14 +944,14 @@ const nr = (t) => t instanceof F ? { ...t } : t;
|
|
|
944
944
|
function Y(t, e) {
|
|
945
945
|
e = e || {};
|
|
946
946
|
const n = {};
|
|
947
|
-
function r(l, c,
|
|
948
|
-
return f.isPlainObject(l) && f.isPlainObject(c) ? f.merge.call({ caseless:
|
|
947
|
+
function r(l, c, d, p) {
|
|
948
|
+
return f.isPlainObject(l) && f.isPlainObject(c) ? f.merge.call({ caseless: p }, l, c) : f.isPlainObject(c) ? f.merge({}, c) : f.isArray(c) ? c.slice() : c;
|
|
949
949
|
}
|
|
950
|
-
function o(l, c,
|
|
950
|
+
function o(l, c, d, p) {
|
|
951
951
|
if (f.isUndefined(c)) {
|
|
952
952
|
if (!f.isUndefined(l))
|
|
953
|
-
return r(void 0, l,
|
|
954
|
-
} else return r(l, c,
|
|
953
|
+
return r(void 0, l, d, p);
|
|
954
|
+
} else return r(l, c, d, p);
|
|
955
955
|
}
|
|
956
956
|
function a(l, c) {
|
|
957
957
|
if (!f.isUndefined(c))
|
|
@@ -963,10 +963,10 @@ function Y(t, e) {
|
|
|
963
963
|
return r(void 0, l);
|
|
964
964
|
} else return r(void 0, c);
|
|
965
965
|
}
|
|
966
|
-
function s(l, c,
|
|
967
|
-
if (
|
|
966
|
+
function s(l, c, d) {
|
|
967
|
+
if (d in e)
|
|
968
968
|
return r(l, c);
|
|
969
|
-
if (
|
|
969
|
+
if (d in t)
|
|
970
970
|
return r(void 0, l);
|
|
971
971
|
}
|
|
972
972
|
const u = {
|
|
@@ -998,11 +998,11 @@ function Y(t, e) {
|
|
|
998
998
|
socketPath: i,
|
|
999
999
|
responseEncoding: i,
|
|
1000
1000
|
validateStatus: s,
|
|
1001
|
-
headers: (l, c,
|
|
1001
|
+
headers: (l, c, d) => o(nr(l), nr(c), d, !0)
|
|
1002
1002
|
};
|
|
1003
1003
|
return f.forEach(Object.keys({ ...t, ...e }), function(c) {
|
|
1004
|
-
const
|
|
1005
|
-
f.isUndefined(
|
|
1004
|
+
const d = u[c] || o, p = d(t[c], e[c], c);
|
|
1005
|
+
f.isUndefined(p) && d !== s || (n[c] = p);
|
|
1006
1006
|
}), n;
|
|
1007
1007
|
}
|
|
1008
1008
|
const tn = (t) => {
|
|
@@ -1017,7 +1017,7 @@ const tn = (t) => {
|
|
|
1017
1017
|
if (C.hasStandardBrowserEnv || C.hasStandardBrowserWebWorkerEnv)
|
|
1018
1018
|
i.setContentType(void 0);
|
|
1019
1019
|
else if ((u = i.getContentType()) !== !1) {
|
|
1020
|
-
const [l, ...c] = u ? u.split(";").map((
|
|
1020
|
+
const [l, ...c] = u ? u.split(";").map((d) => d.trim()).filter(Boolean) : [];
|
|
1021
1021
|
i.setContentType([l || "multipart/form-data", ...c].join("; "));
|
|
1022
1022
|
}
|
|
1023
1023
|
}
|
|
@@ -1031,7 +1031,7 @@ const tn = (t) => {
|
|
|
1031
1031
|
const o = tn(t);
|
|
1032
1032
|
let a = o.data;
|
|
1033
1033
|
const i = F.from(o.headers).normalize();
|
|
1034
|
-
let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c,
|
|
1034
|
+
let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c, d, p, v, y;
|
|
1035
1035
|
function m() {
|
|
1036
1036
|
v && v(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
|
|
1037
1037
|
}
|
|
@@ -1073,7 +1073,7 @@ const tn = (t) => {
|
|
|
1073
1073
|
)), h = null;
|
|
1074
1074
|
}, a === void 0 && i.setContentType(null), "setRequestHeader" in h && f.forEach(i.toJSON(), function(T, A) {
|
|
1075
1075
|
h.setRequestHeader(A, T);
|
|
1076
|
-
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([
|
|
1076
|
+
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([p, y] = Le(l, !0), h.addEventListener("progress", p)), u && h.upload && ([d, v] = Le(u), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (g) => {
|
|
1077
1077
|
h && (r(!g || g.type ? new ue(null, t, h) : g), h.abort(), h = null);
|
|
1078
1078
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
1079
1079
|
const E = aa(o.url);
|
|
@@ -1147,10 +1147,10 @@ const tn = (t) => {
|
|
|
1147
1147
|
s(), u.close();
|
|
1148
1148
|
return;
|
|
1149
1149
|
}
|
|
1150
|
-
let
|
|
1150
|
+
let d = c.byteLength;
|
|
1151
1151
|
if (n) {
|
|
1152
|
-
let
|
|
1153
|
-
n(
|
|
1152
|
+
let p = a += d;
|
|
1153
|
+
n(p);
|
|
1154
1154
|
}
|
|
1155
1155
|
u.enqueue(new Uint8Array(c));
|
|
1156
1156
|
} catch (l) {
|
|
@@ -1218,8 +1218,8 @@ const ba = async (t) => {
|
|
|
1218
1218
|
onUploadProgress: u,
|
|
1219
1219
|
responseType: l,
|
|
1220
1220
|
headers: c,
|
|
1221
|
-
withCredentials:
|
|
1222
|
-
fetchOptions:
|
|
1221
|
+
withCredentials: d = "same-origin",
|
|
1222
|
+
fetchOptions: p
|
|
1223
1223
|
} = tn(t);
|
|
1224
1224
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1225
1225
|
let v = ya([o, a && a.toAbortSignal()], i), y;
|
|
@@ -1237,32 +1237,32 @@ const ba = async (t) => {
|
|
|
1237
1237
|
if (f.isFormData(r) && (_ = A.headers.get("content-type")) && c.setContentType(_), A.body) {
|
|
1238
1238
|
const [N, q] = tr(
|
|
1239
1239
|
h,
|
|
1240
|
-
|
|
1240
|
+
Le(rr(u))
|
|
1241
1241
|
);
|
|
1242
1242
|
r = or(A.body, ar, N, q);
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
|
-
f.isString(
|
|
1245
|
+
f.isString(d) || (d = d ? "include" : "omit");
|
|
1246
1246
|
const S = "credentials" in Request.prototype;
|
|
1247
1247
|
y = new Request(e, {
|
|
1248
|
-
...
|
|
1248
|
+
...p,
|
|
1249
1249
|
signal: v,
|
|
1250
1250
|
method: n.toUpperCase(),
|
|
1251
1251
|
headers: c.normalize().toJSON(),
|
|
1252
1252
|
body: r,
|
|
1253
1253
|
duplex: "half",
|
|
1254
|
-
credentials: S ?
|
|
1254
|
+
credentials: S ? d : void 0
|
|
1255
1255
|
});
|
|
1256
|
-
let E = await fetch(y,
|
|
1256
|
+
let E = await fetch(y, p);
|
|
1257
1257
|
const g = xt && (l === "stream" || l === "response");
|
|
1258
1258
|
if (xt && (s || g && m)) {
|
|
1259
1259
|
const A = {};
|
|
1260
|
-
["status", "statusText", "headers"].forEach((
|
|
1261
|
-
A[
|
|
1260
|
+
["status", "statusText", "headers"].forEach((U) => {
|
|
1261
|
+
A[U] = E[U];
|
|
1262
1262
|
});
|
|
1263
1263
|
const _ = f.toFiniteNumber(E.headers.get("content-length")), [N, q] = s && tr(
|
|
1264
1264
|
_,
|
|
1265
|
-
|
|
1265
|
+
Le(rr(s), !0)
|
|
1266
1266
|
) || [];
|
|
1267
1267
|
E = new Response(
|
|
1268
1268
|
or(E.body, ar, N, () => {
|
|
@@ -1292,7 +1292,7 @@ const ba = async (t) => {
|
|
|
1292
1292
|
) : w.from(S, S && S.code, t, y);
|
|
1293
1293
|
}
|
|
1294
1294
|
}), Ct = {
|
|
1295
|
-
http:
|
|
1295
|
+
http: Bo,
|
|
1296
1296
|
xhr: da,
|
|
1297
1297
|
fetch: Ea
|
|
1298
1298
|
};
|
|
@@ -1401,7 +1401,7 @@ function Oa(t, e, n) {
|
|
|
1401
1401
|
const De = {
|
|
1402
1402
|
assertOptions: Oa,
|
|
1403
1403
|
validators: Ke
|
|
1404
|
-
},
|
|
1404
|
+
}, B = De.validators;
|
|
1405
1405
|
let X = class {
|
|
1406
1406
|
constructor(e) {
|
|
1407
1407
|
this.defaults = e || {}, this.interceptors = {
|
|
@@ -1438,17 +1438,17 @@ let X = class {
|
|
|
1438
1438
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = Y(this.defaults, n);
|
|
1439
1439
|
const { transitional: r, paramsSerializer: o, headers: a } = n;
|
|
1440
1440
|
r !== void 0 && De.assertOptions(r, {
|
|
1441
|
-
silentJSONParsing:
|
|
1442
|
-
forcedJSONParsing:
|
|
1443
|
-
clarifyTimeoutError:
|
|
1441
|
+
silentJSONParsing: B.transitional(B.boolean),
|
|
1442
|
+
forcedJSONParsing: B.transitional(B.boolean),
|
|
1443
|
+
clarifyTimeoutError: B.transitional(B.boolean)
|
|
1444
1444
|
}, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
|
|
1445
1445
|
serialize: o
|
|
1446
1446
|
} : De.assertOptions(o, {
|
|
1447
|
-
encode:
|
|
1448
|
-
serialize:
|
|
1447
|
+
encode: B.function,
|
|
1448
|
+
serialize: B.function
|
|
1449
1449
|
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), De.assertOptions(n, {
|
|
1450
|
-
baseUrl:
|
|
1451
|
-
withXsrfToken:
|
|
1450
|
+
baseUrl: B.spelling("baseURL"),
|
|
1451
|
+
withXsrfToken: B.spelling("withXSRFToken")
|
|
1452
1452
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1453
1453
|
let i = a && f.merge(
|
|
1454
1454
|
a.common,
|
|
@@ -1469,17 +1469,17 @@ let X = class {
|
|
|
1469
1469
|
this.interceptors.response.forEach(function(m) {
|
|
1470
1470
|
l.push(m.fulfilled, m.rejected);
|
|
1471
1471
|
});
|
|
1472
|
-
let c,
|
|
1472
|
+
let c, d = 0, p;
|
|
1473
1473
|
if (!u) {
|
|
1474
1474
|
const y = [sr.bind(this), void 0];
|
|
1475
|
-
for (y.unshift(...s), y.push(...l),
|
|
1476
|
-
c = c.then(y[
|
|
1475
|
+
for (y.unshift(...s), y.push(...l), p = y.length, c = Promise.resolve(n); d < p; )
|
|
1476
|
+
c = c.then(y[d++], y[d++]);
|
|
1477
1477
|
return c;
|
|
1478
1478
|
}
|
|
1479
|
-
|
|
1479
|
+
p = s.length;
|
|
1480
1480
|
let v = n;
|
|
1481
|
-
for (
|
|
1482
|
-
const y = s[
|
|
1481
|
+
for (d = 0; d < p; ) {
|
|
1482
|
+
const y = s[d++], m = s[d++];
|
|
1483
1483
|
try {
|
|
1484
1484
|
v = y(v);
|
|
1485
1485
|
} catch (h) {
|
|
@@ -1492,8 +1492,8 @@ let X = class {
|
|
|
1492
1492
|
} catch (y) {
|
|
1493
1493
|
return Promise.reject(y);
|
|
1494
1494
|
}
|
|
1495
|
-
for (
|
|
1496
|
-
c = c.then(l[
|
|
1495
|
+
for (d = 0, p = l.length; d < p; )
|
|
1496
|
+
c = c.then(l[d++], l[d++]);
|
|
1497
1497
|
return c;
|
|
1498
1498
|
}
|
|
1499
1499
|
getUri(e) {
|
|
@@ -1676,7 +1676,7 @@ Object.entries(_t).forEach(([t, e]) => {
|
|
|
1676
1676
|
_t[e] = t;
|
|
1677
1677
|
});
|
|
1678
1678
|
function ln(t) {
|
|
1679
|
-
const e = new X(t), n =
|
|
1679
|
+
const e = new X(t), n = Br(X.prototype.request, e);
|
|
1680
1680
|
return f.extend(n, X.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
1681
1681
|
return ln(Y(t, o));
|
|
1682
1682
|
}, n;
|
|
@@ -1702,22 +1702,22 @@ R.getAdapter = on.getAdapter;
|
|
|
1702
1702
|
R.HttpStatusCode = _t;
|
|
1703
1703
|
R.default = R;
|
|
1704
1704
|
const {
|
|
1705
|
-
Axios:
|
|
1706
|
-
AxiosError:
|
|
1707
|
-
CanceledError:
|
|
1708
|
-
isCancel:
|
|
1709
|
-
CancelToken:
|
|
1710
|
-
VERSION:
|
|
1711
|
-
all:
|
|
1712
|
-
Cancel:
|
|
1713
|
-
isAxiosError:
|
|
1714
|
-
spread:
|
|
1715
|
-
toFormData:
|
|
1716
|
-
AxiosHeaders:
|
|
1717
|
-
HttpStatusCode:
|
|
1718
|
-
formToJSON:
|
|
1719
|
-
getAdapter:
|
|
1720
|
-
mergeConfig:
|
|
1705
|
+
Axios: Xl,
|
|
1706
|
+
AxiosError: Zl,
|
|
1707
|
+
CanceledError: Yl,
|
|
1708
|
+
isCancel: ec,
|
|
1709
|
+
CancelToken: tc,
|
|
1710
|
+
VERSION: rc,
|
|
1711
|
+
all: nc,
|
|
1712
|
+
Cancel: oc,
|
|
1713
|
+
isAxiosError: ac,
|
|
1714
|
+
spread: ic,
|
|
1715
|
+
toFormData: sc,
|
|
1716
|
+
AxiosHeaders: lc,
|
|
1717
|
+
HttpStatusCode: cc,
|
|
1718
|
+
formToJSON: uc,
|
|
1719
|
+
getAdapter: fc,
|
|
1720
|
+
mergeConfig: pc
|
|
1721
1721
|
} = R;
|
|
1722
1722
|
var cr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1723
1723
|
function xa(t) {
|
|
@@ -1747,7 +1747,7 @@ const _a = {}, Na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1747
1747
|
__proto__: null,
|
|
1748
1748
|
default: _a
|
|
1749
1749
|
}, Symbol.toStringTag, { value: "Module" })), $a = /* @__PURE__ */ Ca(Na);
|
|
1750
|
-
var jt = typeof Map == "function" && Map.prototype, at = Object.getOwnPropertyDescriptor && jt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ke = jt && at && typeof at.get == "function" ? at.get : null, ur = jt && Map.prototype.forEach,
|
|
1750
|
+
var jt = typeof Map == "function" && Map.prototype, at = Object.getOwnPropertyDescriptor && jt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ke = jt && at && typeof at.get == "function" ? at.get : null, ur = jt && Map.prototype.forEach, zt = typeof Set == "function" && Set.prototype, it = Object.getOwnPropertyDescriptor && zt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, qe = zt && it && typeof it.get == "function" ? it.get : null, fr = zt && Set.prototype.forEach, Fa = typeof WeakMap == "function" && WeakMap.prototype, he = Fa ? WeakMap.prototype.has : null, Da = typeof WeakSet == "function" && WeakSet.prototype, me = Da ? WeakSet.prototype.has : null, Ia = typeof WeakRef == "function" && WeakRef.prototype, pr = Ia ? WeakRef.prototype.deref : null, Ua = Boolean.prototype.valueOf, Ba = Object.prototype.toString, La = Function.prototype.toString, Ma = String.prototype.match, Ht = String.prototype.slice, J = String.prototype.replace, ka = String.prototype.toUpperCase, dr = String.prototype.toLowerCase, cn = RegExp.prototype.test, yr = Array.prototype.concat, k = Array.prototype.join, qa = Array.prototype.slice, hr = Math.floor, Nt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, st = Object.getOwnPropertySymbols, $t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, se = typeof Symbol == "function" && typeof Symbol.iterator == "object", ge = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === se || !0) ? Symbol.toStringTag : null, un = Object.prototype.propertyIsEnumerable, mr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1751
1751
|
return t.__proto__;
|
|
1752
1752
|
} : null);
|
|
1753
1753
|
function gr(t, e) {
|
|
@@ -1757,7 +1757,7 @@ function gr(t, e) {
|
|
|
1757
1757
|
if (typeof t == "number") {
|
|
1758
1758
|
var r = t < 0 ? -hr(-t) : hr(t);
|
|
1759
1759
|
if (r !== t) {
|
|
1760
|
-
var o = String(r), a =
|
|
1760
|
+
var o = String(r), a = Ht.call(e, o.length + 1);
|
|
1761
1761
|
return J.call(o, n, "$&_") + "." + J.call(J.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
1762
1762
|
}
|
|
1763
1763
|
}
|
|
@@ -1773,16 +1773,16 @@ var Ft = $a, vr = Ft.custom, wr = dn(vr) ? vr : null, fn = {
|
|
|
1773
1773
|
single: /(['\\])/g
|
|
1774
1774
|
}, Qe = function t(e, n, r, o) {
|
|
1775
1775
|
var a = n || {};
|
|
1776
|
-
if (
|
|
1776
|
+
if (z(a, "quoteStyle") && !z(fn, a.quoteStyle))
|
|
1777
1777
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
1778
|
-
if (
|
|
1778
|
+
if (z(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
|
|
1779
1779
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
1780
|
-
var i =
|
|
1780
|
+
var i = z(a, "customInspect") ? a.customInspect : !0;
|
|
1781
1781
|
if (typeof i != "boolean" && i !== "symbol")
|
|
1782
1782
|
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
1783
|
-
if (
|
|
1783
|
+
if (z(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
|
|
1784
1784
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
1785
|
-
if (
|
|
1785
|
+
if (z(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
|
|
1786
1786
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
1787
1787
|
var s = a.numericSeparator;
|
|
1788
1788
|
if (typeof e > "u")
|
|
@@ -1806,22 +1806,22 @@ var Ft = $a, vr = Ft.custom, wr = dn(vr) ? vr : null, fn = {
|
|
|
1806
1806
|
var c = typeof a.depth > "u" ? 5 : a.depth;
|
|
1807
1807
|
if (typeof r > "u" && (r = 0), r >= c && c > 0 && typeof e == "object")
|
|
1808
1808
|
return Dt(e) ? "[Array]" : "[Object]";
|
|
1809
|
-
var
|
|
1809
|
+
var d = ii(a, r);
|
|
1810
1810
|
if (typeof o > "u")
|
|
1811
1811
|
o = [];
|
|
1812
1812
|
else if (yn(o, e) >= 0)
|
|
1813
1813
|
return "[Circular]";
|
|
1814
|
-
function
|
|
1814
|
+
function p(D, W, j) {
|
|
1815
1815
|
if (W && (o = qa.call(o), o.push(W)), j) {
|
|
1816
1816
|
var pe = {
|
|
1817
1817
|
depth: a.depth
|
|
1818
1818
|
};
|
|
1819
|
-
return
|
|
1819
|
+
return z(a, "quoteStyle") && (pe.quoteStyle = a.quoteStyle), t(D, pe, r + 1, o);
|
|
1820
1820
|
}
|
|
1821
1821
|
return t(D, a, r + 1, o);
|
|
1822
1822
|
}
|
|
1823
1823
|
if (typeof e == "function" && !br(e)) {
|
|
1824
|
-
var v = Xa(e), y = Ce(e,
|
|
1824
|
+
var v = Xa(e), y = Ce(e, p);
|
|
1825
1825
|
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + k.call(y, ", ") + " }" : "");
|
|
1826
1826
|
}
|
|
1827
1827
|
if (dn(e)) {
|
|
@@ -1830,18 +1830,18 @@ var Ft = $a, vr = Ft.custom, wr = dn(vr) ? vr : null, fn = {
|
|
|
1830
1830
|
}
|
|
1831
1831
|
if (ni(e)) {
|
|
1832
1832
|
for (var h = "<" + dr.call(String(e.nodeName)), S = e.attributes || [], E = 0; E < S.length; E++)
|
|
1833
|
-
h += " " + S[E].name + "=" + pn(
|
|
1833
|
+
h += " " + S[E].name + "=" + pn(za(S[E].value), "double", a);
|
|
1834
1834
|
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + dr.call(String(e.nodeName)) + ">", h;
|
|
1835
1835
|
}
|
|
1836
1836
|
if (Dt(e)) {
|
|
1837
1837
|
if (e.length === 0)
|
|
1838
1838
|
return "[]";
|
|
1839
|
-
var g = Ce(e,
|
|
1840
|
-
return
|
|
1839
|
+
var g = Ce(e, p);
|
|
1840
|
+
return d && !ai(g) ? "[" + It(g, d) + "]" : "[ " + k.call(g, ", ") + " ]";
|
|
1841
1841
|
}
|
|
1842
1842
|
if (Wa(e)) {
|
|
1843
|
-
var T = Ce(e,
|
|
1844
|
-
return !("cause" in Error.prototype) && "cause" in e && !un.call(e, "cause") ? "{ [" + String(e) + "] " + k.call(yr.call("[cause]: " +
|
|
1843
|
+
var T = Ce(e, p);
|
|
1844
|
+
return !("cause" in Error.prototype) && "cause" in e && !un.call(e, "cause") ? "{ [" + String(e) + "] " + k.call(yr.call("[cause]: " + p(e.cause), T), ", ") + " }" : T.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + k.call(T, ", ") + " }";
|
|
1845
1845
|
}
|
|
1846
1846
|
if (typeof e == "object" && i) {
|
|
1847
1847
|
if (wr && typeof e[wr] == "function" && Ft)
|
|
@@ -1852,14 +1852,14 @@ var Ft = $a, vr = Ft.custom, wr = dn(vr) ? vr : null, fn = {
|
|
|
1852
1852
|
if (Za(e)) {
|
|
1853
1853
|
var A = [];
|
|
1854
1854
|
return ur && ur.call(e, function(D, W) {
|
|
1855
|
-
A.push(
|
|
1856
|
-
}), Sr("Map", ke.call(e), A,
|
|
1855
|
+
A.push(p(W, e, !0) + " => " + p(D, e));
|
|
1856
|
+
}), Sr("Map", ke.call(e), A, d);
|
|
1857
1857
|
}
|
|
1858
1858
|
if (ti(e)) {
|
|
1859
1859
|
var _ = [];
|
|
1860
1860
|
return fr && fr.call(e, function(D) {
|
|
1861
|
-
_.push(
|
|
1862
|
-
}), Sr("Set", qe.call(e), _,
|
|
1861
|
+
_.push(p(D, e));
|
|
1862
|
+
}), Sr("Set", qe.call(e), _, d);
|
|
1863
1863
|
}
|
|
1864
1864
|
if (Ya(e))
|
|
1865
1865
|
return lt("WeakMap");
|
|
@@ -1868,20 +1868,20 @@ var Ft = $a, vr = Ft.custom, wr = dn(vr) ? vr : null, fn = {
|
|
|
1868
1868
|
if (ei(e))
|
|
1869
1869
|
return lt("WeakRef");
|
|
1870
1870
|
if (Ja(e))
|
|
1871
|
-
return ye(
|
|
1871
|
+
return ye(p(Number(e)));
|
|
1872
1872
|
if (Ka(e))
|
|
1873
|
-
return ye(
|
|
1873
|
+
return ye(p(Nt.call(e)));
|
|
1874
1874
|
if (Va(e))
|
|
1875
|
-
return ye(
|
|
1875
|
+
return ye(Ua.call(e));
|
|
1876
1876
|
if (Ga(e))
|
|
1877
|
-
return ye(
|
|
1877
|
+
return ye(p(String(e)));
|
|
1878
1878
|
if (typeof window < "u" && e === window)
|
|
1879
1879
|
return "{ [object Window] }";
|
|
1880
1880
|
if (typeof globalThis < "u" && e === globalThis || typeof cr < "u" && e === cr)
|
|
1881
1881
|
return "{ [object globalThis] }";
|
|
1882
|
-
if (!
|
|
1883
|
-
var N = Ce(e,
|
|
1884
|
-
return N.length === 0 ? re + "{}" :
|
|
1882
|
+
if (!Ha(e) && !br(e)) {
|
|
1883
|
+
var N = Ce(e, p), q = mr ? mr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", H = !q && ge && Object(e) === e && ge in e ? Ht.call(V(e), 8, -1) : U ? "Object" : "", xe = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = xe + (H || U ? "[" + k.call(yr.call([], H || [], U || []), ": ") + "] " : "");
|
|
1884
|
+
return N.length === 0 ? re + "{}" : d ? re + "{" + It(N, d) + "}" : re + "{ " + k.call(N, ", ") + " }";
|
|
1885
1885
|
}
|
|
1886
1886
|
return String(e);
|
|
1887
1887
|
};
|
|
@@ -1889,7 +1889,7 @@ function pn(t, e, n) {
|
|
|
1889
1889
|
var r = n.quoteStyle || e, o = fn[r];
|
|
1890
1890
|
return o + t + o;
|
|
1891
1891
|
}
|
|
1892
|
-
function
|
|
1892
|
+
function za(t) {
|
|
1893
1893
|
return J.call(String(t), /"/g, """);
|
|
1894
1894
|
}
|
|
1895
1895
|
function te(t) {
|
|
@@ -1898,7 +1898,7 @@ function te(t) {
|
|
|
1898
1898
|
function Dt(t) {
|
|
1899
1899
|
return V(t) === "[object Array]" && te(t);
|
|
1900
1900
|
}
|
|
1901
|
-
function
|
|
1901
|
+
function Ha(t) {
|
|
1902
1902
|
return V(t) === "[object Date]" && te(t);
|
|
1903
1903
|
}
|
|
1904
1904
|
function br(t) {
|
|
@@ -1941,16 +1941,16 @@ function Ka(t) {
|
|
|
1941
1941
|
var Qa = Object.prototype.hasOwnProperty || function(t) {
|
|
1942
1942
|
return t in this;
|
|
1943
1943
|
};
|
|
1944
|
-
function
|
|
1944
|
+
function z(t, e) {
|
|
1945
1945
|
return Qa.call(t, e);
|
|
1946
1946
|
}
|
|
1947
1947
|
function V(t) {
|
|
1948
|
-
return
|
|
1948
|
+
return Ba.call(t);
|
|
1949
1949
|
}
|
|
1950
1950
|
function Xa(t) {
|
|
1951
1951
|
if (t.name)
|
|
1952
1952
|
return t.name;
|
|
1953
|
-
var e = Ma.call(
|
|
1953
|
+
var e = Ma.call(La.call(t), /^function\s*([\w$]+)/);
|
|
1954
1954
|
return e ? e[1] : null;
|
|
1955
1955
|
}
|
|
1956
1956
|
function yn(t, e) {
|
|
@@ -2036,7 +2036,7 @@ function ni(t) {
|
|
|
2036
2036
|
function hn(t, e) {
|
|
2037
2037
|
if (t.length > e.maxStringLength) {
|
|
2038
2038
|
var n = t.length - e.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
2039
|
-
return hn(
|
|
2039
|
+
return hn(Ht.call(t, 0, e.maxStringLength), e) + r;
|
|
2040
2040
|
}
|
|
2041
2041
|
var o = ja[e.quoteStyle || "single"];
|
|
2042
2042
|
o.lastIndex = 0;
|
|
@@ -2096,7 +2096,7 @@ function Ce(t, e) {
|
|
|
2096
2096
|
if (n) {
|
|
2097
2097
|
r.length = t.length;
|
|
2098
2098
|
for (var o = 0; o < t.length; o++)
|
|
2099
|
-
r[o] =
|
|
2099
|
+
r[o] = z(t, o) ? e(t[o], t) : "";
|
|
2100
2100
|
}
|
|
2101
2101
|
var a = typeof st == "function" ? st(t) : [], i;
|
|
2102
2102
|
if (se) {
|
|
@@ -2105,7 +2105,7 @@ function Ce(t, e) {
|
|
|
2105
2105
|
i["$" + a[s]] = a[s];
|
|
2106
2106
|
}
|
|
2107
2107
|
for (var u in t)
|
|
2108
|
-
|
|
2108
|
+
z(t, u) && (n && String(Number(u)) === u && u < t.length || se && i["$" + u] instanceof Symbol || (cn.call(/[^\w$]/, u) ? r.push(e(u, t) + ": " + e(t[u], t)) : r.push(u + ": " + e(t[u], t))));
|
|
2109
2109
|
if (typeof st == "function")
|
|
2110
2110
|
for (var l = 0; l < a.length; l++)
|
|
2111
2111
|
un.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
|
|
@@ -2174,14 +2174,14 @@ if (Ie)
|
|
|
2174
2174
|
} catch {
|
|
2175
2175
|
Ie = null;
|
|
2176
2176
|
}
|
|
2177
|
-
var gn = Ie,
|
|
2178
|
-
if (
|
|
2177
|
+
var gn = Ie, Ue = Object.defineProperty || !1;
|
|
2178
|
+
if (Ue)
|
|
2179
2179
|
try {
|
|
2180
|
-
|
|
2180
|
+
Ue({}, "a", { value: 1 });
|
|
2181
2181
|
} catch {
|
|
2182
|
-
|
|
2182
|
+
Ue = !1;
|
|
2183
2183
|
}
|
|
2184
|
-
var _i =
|
|
2184
|
+
var _i = Ue, ct, Er;
|
|
2185
2185
|
function Ni() {
|
|
2186
2186
|
return Er || (Er = 1, ct = function() {
|
|
2187
2187
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
@@ -2231,25 +2231,25 @@ function wn() {
|
|
|
2231
2231
|
var t = mn;
|
|
2232
2232
|
return pt = t.getPrototypeOf || null, pt;
|
|
2233
2233
|
}
|
|
2234
|
-
var Fi = "Function.prototype.bind called on incompatible ", Di = Object.prototype.toString, Ii = Math.max,
|
|
2234
|
+
var Fi = "Function.prototype.bind called on incompatible ", Di = Object.prototype.toString, Ii = Math.max, Ui = "[object Function]", Pr = function(e, n) {
|
|
2235
2235
|
for (var r = [], o = 0; o < e.length; o += 1)
|
|
2236
2236
|
r[o] = e[o];
|
|
2237
2237
|
for (var a = 0; a < n.length; a += 1)
|
|
2238
2238
|
r[a + e.length] = n[a];
|
|
2239
2239
|
return r;
|
|
2240
|
-
},
|
|
2240
|
+
}, Bi = function(e, n) {
|
|
2241
2241
|
for (var r = [], o = n, a = 0; o < e.length; o += 1, a += 1)
|
|
2242
2242
|
r[a] = e[o];
|
|
2243
2243
|
return r;
|
|
2244
|
-
},
|
|
2244
|
+
}, Li = function(t, e) {
|
|
2245
2245
|
for (var n = "", r = 0; r < t.length; r += 1)
|
|
2246
2246
|
n += t[r], r + 1 < t.length && (n += e);
|
|
2247
2247
|
return n;
|
|
2248
2248
|
}, Mi = function(e) {
|
|
2249
2249
|
var n = this;
|
|
2250
|
-
if (typeof n != "function" || Di.apply(n) !==
|
|
2250
|
+
if (typeof n != "function" || Di.apply(n) !== Ui)
|
|
2251
2251
|
throw new TypeError(Fi + n);
|
|
2252
|
-
for (var r =
|
|
2252
|
+
for (var r = Bi(arguments, 1), o, a = function() {
|
|
2253
2253
|
if (this instanceof o) {
|
|
2254
2254
|
var c = n.apply(
|
|
2255
2255
|
this,
|
|
@@ -2263,7 +2263,7 @@ var Fi = "Function.prototype.bind called on incompatible ", Di = Object.prototyp
|
|
|
2263
2263
|
);
|
|
2264
2264
|
}, i = Ii(0, n.length - r.length), s = [], u = 0; u < i; u++)
|
|
2265
2265
|
s[u] = "$" + u;
|
|
2266
|
-
if (o = Function("binder", "return function (" +
|
|
2266
|
+
if (o = Function("binder", "return function (" + Li(s, ",") + "){ return binder.apply(this,arguments); }")(a), n.prototype) {
|
|
2267
2267
|
var l = function() {
|
|
2268
2268
|
};
|
|
2269
2269
|
l.prototype = n.prototype, o.prototype = new l(), l.prototype = null;
|
|
@@ -2273,7 +2273,7 @@ var Fi = "Function.prototype.bind called on incompatible ", Di = Object.prototyp
|
|
|
2273
2273
|
function bn() {
|
|
2274
2274
|
return Tr || (Tr = 1, dt = Function.prototype.apply), dt;
|
|
2275
2275
|
}
|
|
2276
|
-
var qi = typeof Reflect < "u" && Reflect && Reflect.apply, ji = Ze,
|
|
2276
|
+
var qi = typeof Reflect < "u" && Reflect && Reflect.apply, ji = Ze, zi = bn(), Hi = Wt, Wi = qi, Gi = Wi || ji.call(Hi, zi), Ji = Ze, Vi = fe, Ki = Wt, Qi = Gi, Sn = function(e) {
|
|
2277
2277
|
if (e.length < 1 || typeof e[0] != "function")
|
|
2278
2278
|
throw new Vi("a function is required");
|
|
2279
2279
|
return Qi(Ji, Ki, e);
|
|
@@ -2500,8 +2500,8 @@ var ws = function t(e) {
|
|
|
2500
2500
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2501
2501
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2502
2502
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2503
|
-
}, Pe = Ze, je = Yi(), bs = Pe.call(Re, Array.prototype.concat), Ss = Pe.call(An, Array.prototype.splice), $r = Pe.call(Re, String.prototype.replace),
|
|
2504
|
-
var n =
|
|
2503
|
+
}, Pe = Ze, je = Yi(), bs = Pe.call(Re, Array.prototype.concat), Ss = Pe.call(An, Array.prototype.splice), $r = Pe.call(Re, String.prototype.replace), ze = Pe.call(Re, String.prototype.slice), Es = Pe.call(Re, RegExp.prototype.exec), As = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Os = /\\(\\)?/g, Rs = function(e) {
|
|
2504
|
+
var n = ze(e, 0, 1), r = ze(e, -1);
|
|
2505
2505
|
if (n === "%" && r !== "%")
|
|
2506
2506
|
throw new le("invalid intrinsic syntax, expected closing `%`");
|
|
2507
2507
|
if (r === "%" && n !== "%")
|
|
@@ -2532,24 +2532,24 @@ var ws = function t(e) {
|
|
|
2532
2532
|
throw new le("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2533
2533
|
var r = Rs(e), o = r.length > 0 ? r[0] : "", a = Ps("%" + o + "%", n), i = a.name, s = a.value, u = !1, l = a.alias;
|
|
2534
2534
|
l && (o = l[0], Ss(r, bs([0, 1], l)));
|
|
2535
|
-
for (var c = 1,
|
|
2536
|
-
var
|
|
2535
|
+
for (var c = 1, d = !0; c < r.length; c += 1) {
|
|
2536
|
+
var p = r[c], v = ze(p, 0, 1), y = ze(p, -1);
|
|
2537
2537
|
if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
|
|
2538
2538
|
throw new le("property names with quotes must have matching quotes");
|
|
2539
|
-
if ((
|
|
2539
|
+
if ((p === "constructor" || !d) && (u = !0), o += "." + p, i = "%" + o + "%", je(Z, i))
|
|
2540
2540
|
s = Z[i];
|
|
2541
2541
|
else if (s != null) {
|
|
2542
|
-
if (!(
|
|
2542
|
+
if (!(p in s)) {
|
|
2543
2543
|
if (!n)
|
|
2544
2544
|
throw new ie("base intrinsic for " + e + " exists, but the property is not available.");
|
|
2545
2545
|
return;
|
|
2546
2546
|
}
|
|
2547
2547
|
if (be && c + 1 >= r.length) {
|
|
2548
|
-
var m = be(s,
|
|
2549
|
-
|
|
2548
|
+
var m = be(s, p);
|
|
2549
|
+
d = !!m, d && "get" in m && !("originalValue" in m.get) ? s = m.get : s = s[p];
|
|
2550
2550
|
} else
|
|
2551
|
-
|
|
2552
|
-
|
|
2551
|
+
d = je(s, p), s = s[p];
|
|
2552
|
+
d && !u && (Z[i] = s);
|
|
2553
2553
|
}
|
|
2554
2554
|
}
|
|
2555
2555
|
return s;
|
|
@@ -2588,13 +2588,13 @@ function() {
|
|
|
2588
2588
|
}
|
|
2589
2589
|
};
|
|
2590
2590
|
return n;
|
|
2591
|
-
},
|
|
2591
|
+
}, Us = Gt, Ye = Pn, Bs = Qe, _e = Tn, Ls = fe, oe = Us("%WeakMap%", !0), Ms = Ye("WeakMap.prototype.get", !0), ks = Ye("WeakMap.prototype.set", !0), qs = Ye("WeakMap.prototype.has", !0), js = Ye("WeakMap.prototype.delete", !0), zs = oe ? (
|
|
2592
2592
|
/** @type {Exclude<import('.'), false>} */
|
|
2593
2593
|
function() {
|
|
2594
2594
|
var e, n, r = {
|
|
2595
2595
|
assert: function(o) {
|
|
2596
2596
|
if (!r.has(o))
|
|
2597
|
-
throw new
|
|
2597
|
+
throw new Ls("Side channel does not contain " + Bs(o));
|
|
2598
2598
|
},
|
|
2599
2599
|
delete: function(o) {
|
|
2600
2600
|
if (oe && o && (typeof o == "object" || typeof o == "function")) {
|
|
@@ -2616,11 +2616,11 @@ function() {
|
|
|
2616
2616
|
};
|
|
2617
2617
|
return r;
|
|
2618
2618
|
}
|
|
2619
|
-
) : _e,
|
|
2619
|
+
) : _e, Hs = fe, Ws = Qe, Gs = di, Js = Tn, Vs = zs, Ks = Vs || Js || Gs, Qs = function() {
|
|
2620
2620
|
var e, n = {
|
|
2621
2621
|
assert: function(r) {
|
|
2622
2622
|
if (!n.has(r))
|
|
2623
|
-
throw new
|
|
2623
|
+
throw new Hs("Side channel does not contain " + Ws(r));
|
|
2624
2624
|
},
|
|
2625
2625
|
delete: function(r) {
|
|
2626
2626
|
return !!e && e.delete(r);
|
|
@@ -2651,7 +2651,7 @@ function() {
|
|
|
2651
2651
|
},
|
|
2652
2652
|
RFC1738: wt.RFC1738,
|
|
2653
2653
|
RFC3986: wt.RFC3986
|
|
2654
|
-
}, Ys = Jt, bt = Object.prototype.hasOwnProperty, K = Array.isArray,
|
|
2654
|
+
}, Ys = Jt, bt = Object.prototype.hasOwnProperty, K = Array.isArray, L = function() {
|
|
2655
2655
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2656
2656
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2657
2657
|
return t;
|
|
@@ -2715,25 +2715,25 @@ function() {
|
|
|
2715
2715
|
return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
|
|
2716
2716
|
});
|
|
2717
2717
|
for (var s = "", u = 0; u < i.length; u += St) {
|
|
2718
|
-
for (var l = i.length >= St ? i.slice(u, u + St) : i, c = [],
|
|
2719
|
-
var
|
|
2720
|
-
if (
|
|
2721
|
-
c[c.length] = l.charAt(
|
|
2718
|
+
for (var l = i.length >= St ? i.slice(u, u + St) : i, c = [], d = 0; d < l.length; ++d) {
|
|
2719
|
+
var p = l.charCodeAt(d);
|
|
2720
|
+
if (p === 45 || p === 46 || p === 95 || p === 126 || p >= 48 && p <= 57 || p >= 65 && p <= 90 || p >= 97 && p <= 122 || a === Ys.RFC1738 && (p === 40 || p === 41)) {
|
|
2721
|
+
c[c.length] = l.charAt(d);
|
|
2722
2722
|
continue;
|
|
2723
2723
|
}
|
|
2724
|
-
if (
|
|
2725
|
-
c[c.length] =
|
|
2724
|
+
if (p < 128) {
|
|
2725
|
+
c[c.length] = L[p];
|
|
2726
2726
|
continue;
|
|
2727
2727
|
}
|
|
2728
|
-
if (
|
|
2729
|
-
c[c.length] =
|
|
2728
|
+
if (p < 2048) {
|
|
2729
|
+
c[c.length] = L[192 | p >> 6] + L[128 | p & 63];
|
|
2730
2730
|
continue;
|
|
2731
2731
|
}
|
|
2732
|
-
if (
|
|
2733
|
-
c[c.length] =
|
|
2732
|
+
if (p < 55296 || p >= 57344) {
|
|
2733
|
+
c[c.length] = L[224 | p >> 12] + L[128 | p >> 6 & 63] + L[128 | p & 63];
|
|
2734
2734
|
continue;
|
|
2735
2735
|
}
|
|
2736
|
-
|
|
2736
|
+
d += 1, p = 65536 + ((p & 1023) << 10 | l.charCodeAt(d) & 1023), c[c.length] = L[240 | p >> 18] + L[128 | p >> 12 & 63] + L[128 | p >> 6 & 63] + L[128 | p & 63];
|
|
2737
2737
|
}
|
|
2738
2738
|
s += c.join("");
|
|
2739
2739
|
}
|
|
@@ -2769,7 +2769,7 @@ function() {
|
|
|
2769
2769
|
isRegExp: il,
|
|
2770
2770
|
maybeMap: cl,
|
|
2771
2771
|
merge: tl
|
|
2772
|
-
}, _n = Qs,
|
|
2772
|
+
}, _n = Qs, Be = Cn, ve = Jt, ul = Object.prototype.hasOwnProperty, Nn = {
|
|
2773
2773
|
brackets: function(e) {
|
|
2774
2774
|
return e + "[]";
|
|
2775
2775
|
},
|
|
@@ -2793,7 +2793,7 @@ function() {
|
|
|
2793
2793
|
delimiter: "&",
|
|
2794
2794
|
encode: !0,
|
|
2795
2795
|
encodeDotInKeys: !1,
|
|
2796
|
-
encoder:
|
|
2796
|
+
encoder: Be.encode,
|
|
2797
2797
|
encodeValuesOnly: !1,
|
|
2798
2798
|
filter: void 0,
|
|
2799
2799
|
format: Dr,
|
|
@@ -2807,7 +2807,7 @@ function() {
|
|
|
2807
2807
|
strictNullHandling: !1
|
|
2808
2808
|
}, dl = function(e) {
|
|
2809
2809
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2810
|
-
}, Et = {}, yl = function t(e, n, r, o, a, i, s, u, l, c,
|
|
2810
|
+
}, Et = {}, yl = function t(e, n, r, o, a, i, s, u, l, c, d, p, v, y, m, h, S, E) {
|
|
2811
2811
|
for (var g = e, T = E, A = 0, _ = !1; (T = T.get(Et)) !== void 0 && !_; ) {
|
|
2812
2812
|
var N = T.get(e);
|
|
2813
2813
|
if (A += 1, typeof N < "u") {
|
|
@@ -2817,44 +2817,44 @@ function() {
|
|
|
2817
2817
|
}
|
|
2818
2818
|
typeof T.get(Et) > "u" && (A = 0);
|
|
2819
2819
|
}
|
|
2820
|
-
if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && M(g) && (g =
|
|
2820
|
+
if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && M(g) && (g = Be.maybeMap(g, function(tt) {
|
|
2821
2821
|
return tt instanceof Date ? v(tt) : tt;
|
|
2822
2822
|
})), g === null) {
|
|
2823
2823
|
if (i)
|
|
2824
2824
|
return l && !h ? l(n, P.encoder, S, "key", y) : n;
|
|
2825
2825
|
g = "";
|
|
2826
2826
|
}
|
|
2827
|
-
if (dl(g) ||
|
|
2827
|
+
if (dl(g) || Be.isBuffer(g)) {
|
|
2828
2828
|
if (l) {
|
|
2829
2829
|
var q = h ? n : l(n, P.encoder, S, "key", y);
|
|
2830
2830
|
return [m(q) + "=" + m(l(g, P.encoder, S, "value", y))];
|
|
2831
2831
|
}
|
|
2832
2832
|
return [m(n) + "=" + m(String(g))];
|
|
2833
2833
|
}
|
|
2834
|
-
var
|
|
2834
|
+
var U = [];
|
|
2835
2835
|
if (typeof g > "u")
|
|
2836
|
-
return
|
|
2837
|
-
var
|
|
2836
|
+
return U;
|
|
2837
|
+
var H;
|
|
2838
2838
|
if (r === "comma" && M(g))
|
|
2839
|
-
h && l && (g =
|
|
2839
|
+
h && l && (g = Be.maybeMap(g, l)), H = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
|
|
2840
2840
|
else if (M(c))
|
|
2841
|
-
|
|
2841
|
+
H = c;
|
|
2842
2842
|
else {
|
|
2843
2843
|
var xe = Object.keys(g);
|
|
2844
|
-
|
|
2844
|
+
H = d ? xe.sort(d) : xe;
|
|
2845
2845
|
}
|
|
2846
2846
|
var re = u ? String(n).replace(/\./g, "%2E") : String(n), D = o && M(g) && g.length === 1 ? re + "[]" : re;
|
|
2847
2847
|
if (a && M(g) && g.length === 0)
|
|
2848
2848
|
return D + "[]";
|
|
2849
|
-
for (var W = 0; W <
|
|
2850
|
-
var j =
|
|
2849
|
+
for (var W = 0; W < H.length; ++W) {
|
|
2850
|
+
var j = H[W], pe = typeof j == "object" && j && typeof j.value < "u" ? j.value : g[j];
|
|
2851
2851
|
if (!(s && pe === null)) {
|
|
2852
|
-
var et =
|
|
2852
|
+
var et = p && u ? String(j).replace(/\./g, "%2E") : String(j), Bn = M(g) ? typeof r == "function" ? r(D, et) : D : D + (p ? "." + et : "[" + et + "]");
|
|
2853
2853
|
E.set(e, A);
|
|
2854
2854
|
var Kt = _n();
|
|
2855
|
-
Kt.set(Et, E), $n(
|
|
2855
|
+
Kt.set(Et, E), $n(U, t(
|
|
2856
2856
|
pe,
|
|
2857
|
-
|
|
2857
|
+
Bn,
|
|
2858
2858
|
r,
|
|
2859
2859
|
o,
|
|
2860
2860
|
a,
|
|
@@ -2863,8 +2863,8 @@ function() {
|
|
|
2863
2863
|
u,
|
|
2864
2864
|
r === "comma" && h && M(g) ? null : l,
|
|
2865
2865
|
c,
|
|
2866
|
-
p,
|
|
2867
2866
|
d,
|
|
2867
|
+
p,
|
|
2868
2868
|
v,
|
|
2869
2869
|
y,
|
|
2870
2870
|
m,
|
|
@@ -2874,7 +2874,7 @@ function() {
|
|
|
2874
2874
|
));
|
|
2875
2875
|
}
|
|
2876
2876
|
}
|
|
2877
|
-
return
|
|
2877
|
+
return U;
|
|
2878
2878
|
}, hl = function(e) {
|
|
2879
2879
|
if (!e)
|
|
2880
2880
|
return P;
|
|
@@ -2929,10 +2929,10 @@ function() {
|
|
|
2929
2929
|
var s = Nn[r.arrayFormat], u = s === "comma" && r.commaRoundTrip;
|
|
2930
2930
|
o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
|
|
2931
2931
|
for (var l = _n(), c = 0; c < o.length; ++c) {
|
|
2932
|
-
var
|
|
2933
|
-
r.skipNulls &&
|
|
2934
|
-
d,
|
|
2932
|
+
var d = o[c], p = n[d];
|
|
2933
|
+
r.skipNulls && p === null || $n(i, yl(
|
|
2935
2934
|
p,
|
|
2935
|
+
d,
|
|
2936
2936
|
s,
|
|
2937
2937
|
u,
|
|
2938
2938
|
r.allowEmptyArrays,
|
|
@@ -2953,7 +2953,7 @@ function() {
|
|
|
2953
2953
|
}
|
|
2954
2954
|
var v = i.join(r.delimiter), y = r.addQueryPrefix === !0 ? "?" : "";
|
|
2955
2955
|
return r.charsetSentinel && (r.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), v.length > 0 ? y + v : "";
|
|
2956
|
-
}, ee = Cn,
|
|
2956
|
+
}, ee = Cn, Ut = Object.prototype.hasOwnProperty, Ir = Array.isArray, O = {
|
|
2957
2957
|
allowDots: !1,
|
|
2958
2958
|
allowEmptyArrays: !1,
|
|
2959
2959
|
allowPrototypes: !1,
|
|
@@ -3000,10 +3000,10 @@ function() {
|
|
|
3000
3000
|
i[u].indexOf("utf8=") === 0 && (i[u] === wl ? l = "utf-8" : i[u] === vl && (l = "iso-8859-1"), s = u, u = i.length);
|
|
3001
3001
|
for (u = 0; u < i.length; ++u)
|
|
3002
3002
|
if (u !== s) {
|
|
3003
|
-
var c = i[u],
|
|
3004
|
-
|
|
3003
|
+
var c = i[u], d = c.indexOf("]="), p = d === -1 ? c.indexOf("=") : d + 1, v, y;
|
|
3004
|
+
p === -1 ? (v = n.decoder(c, O.decoder, l, "key"), y = n.strictNullHandling ? null : "") : (v = n.decoder(c.slice(0, p), O.decoder, l, "key"), y = ee.maybeMap(
|
|
3005
3005
|
Fn(
|
|
3006
|
-
c.slice(
|
|
3006
|
+
c.slice(p + 1),
|
|
3007
3007
|
n,
|
|
3008
3008
|
Ir(r[v]) ? r[v].length : 0
|
|
3009
3009
|
),
|
|
@@ -3011,7 +3011,7 @@ function() {
|
|
|
3011
3011
|
return n.decoder(h, O.decoder, l, "value");
|
|
3012
3012
|
}
|
|
3013
3013
|
)), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = gl(String(y))), c.indexOf("[]=") > -1 && (y = Ir(y) ? [y] : y);
|
|
3014
|
-
var m =
|
|
3014
|
+
var m = Ut.call(r, v);
|
|
3015
3015
|
m && n.duplicates === "combine" ? r[v] = ee.combine(r[v], y) : (!m || n.duplicates === "last") && (r[v] = y);
|
|
3016
3016
|
}
|
|
3017
3017
|
return r;
|
|
@@ -3027,8 +3027,8 @@ function() {
|
|
|
3027
3027
|
u = n.allowEmptyArrays && (i === "" || n.strictNullHandling && i === null) ? [] : ee.combine([], i);
|
|
3028
3028
|
else {
|
|
3029
3029
|
u = n.plainObjects ? { __proto__: null } : {};
|
|
3030
|
-
var c = l.charAt(0) === "[" && l.charAt(l.length - 1) === "]" ? l.slice(1, -1) : l,
|
|
3031
|
-
!n.parseArrays &&
|
|
3030
|
+
var c = l.charAt(0) === "[" && l.charAt(l.length - 1) === "]" ? l.slice(1, -1) : l, d = n.decodeDotInKeys ? c.replace(/%2E/g, ".") : c, p = parseInt(d, 10);
|
|
3031
|
+
!n.parseArrays && d === "" ? u = { 0: i } : !isNaN(p) && l !== d && String(p) === d && p >= 0 && n.parseArrays && p <= n.arrayLimit ? (u = [], u[p] = i) : d !== "__proto__" && (u[d] = i);
|
|
3032
3032
|
}
|
|
3033
3033
|
i = u;
|
|
3034
3034
|
}
|
|
@@ -3037,12 +3037,12 @@ function() {
|
|
|
3037
3037
|
if (e) {
|
|
3038
3038
|
var a = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, u = r.depth > 0 && i.exec(a), l = u ? a.slice(0, u.index) : a, c = [];
|
|
3039
3039
|
if (l) {
|
|
3040
|
-
if (!r.plainObjects &&
|
|
3040
|
+
if (!r.plainObjects && Ut.call(Object.prototype, l) && !r.allowPrototypes)
|
|
3041
3041
|
return;
|
|
3042
3042
|
c.push(l);
|
|
3043
3043
|
}
|
|
3044
|
-
for (var
|
|
3045
|
-
if (
|
|
3044
|
+
for (var d = 0; r.depth > 0 && (u = s.exec(a)) !== null && d < r.depth; ) {
|
|
3045
|
+
if (d += 1, !r.plainObjects && Ut.call(Object.prototype, u[1].slice(1, -1)) && !r.allowPrototypes)
|
|
3046
3046
|
return;
|
|
3047
3047
|
c.push(u[1]);
|
|
3048
3048
|
}
|
|
@@ -3129,7 +3129,7 @@ var _l = {
|
|
|
3129
3129
|
);
|
|
3130
3130
|
}
|
|
3131
3131
|
};
|
|
3132
|
-
function
|
|
3132
|
+
function Bt(t, e) {
|
|
3133
3133
|
function n(o, a, i) {
|
|
3134
3134
|
if (!(typeof document > "u")) {
|
|
3135
3135
|
i = Ne({}, e, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
@@ -3167,10 +3167,10 @@ function Lt(t, e) {
|
|
|
3167
3167
|
);
|
|
3168
3168
|
},
|
|
3169
3169
|
withAttributes: function(o) {
|
|
3170
|
-
return
|
|
3170
|
+
return Bt(this.converter, Ne({}, this.attributes, o));
|
|
3171
3171
|
},
|
|
3172
3172
|
withConverter: function(o) {
|
|
3173
|
-
return
|
|
3173
|
+
return Bt(Ne({}, this.converter, o), this.attributes);
|
|
3174
3174
|
}
|
|
3175
3175
|
},
|
|
3176
3176
|
{
|
|
@@ -3179,7 +3179,7 @@ function Lt(t, e) {
|
|
|
3179
3179
|
}
|
|
3180
3180
|
);
|
|
3181
3181
|
}
|
|
3182
|
-
var Nl =
|
|
3182
|
+
var Nl = Bt(_l, { path: "/" });
|
|
3183
3183
|
const $l = {
|
|
3184
3184
|
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
|
|
3185
3185
|
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
|
|
@@ -3191,63 +3191,79 @@ const $l = {
|
|
|
3191
3191
|
en: "Network error, please check your network status",
|
|
3192
3192
|
_appCode: "framework"
|
|
3193
3193
|
}
|
|
3194
|
-
};
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
const Vt =
|
|
3194
|
+
}, Fl = async (t) => null;
|
|
3195
|
+
Ln($l);
|
|
3196
|
+
Lt.extend(Gn);
|
|
3197
|
+
Lt.extend(Jn);
|
|
3198
|
+
const Vt = Ur(), Dn = Vt.sso ?? !0, Dl = Vt.i18n ?? !0, In = Vt.noRedireLogin ?? !1, Il = (t) => {
|
|
3199
|
+
var e, n, r;
|
|
3200
|
+
return ((e = t == null ? void 0 : t.response) == null ? void 0 : e.status) === 401 || ((r = (n = t == null ? void 0 : t.response) == null ? void 0 : n.data) == null ? void 0 : r.code) === 401;
|
|
3201
|
+
}, Ul = (t) => {
|
|
3202
|
+
t.interceptors.response.use(void 0, async (e) => {
|
|
3203
|
+
const n = e == null ? void 0 : e.config;
|
|
3204
|
+
if (!n || n.public || !Il(e) || n.skipUnauthorizedRecovery || n._unauthorizedRecoveryRetried)
|
|
3205
|
+
return Promise.reject(e);
|
|
3206
|
+
try {
|
|
3207
|
+
const r = await Fl({ error: e, config: n });
|
|
3208
|
+
return r != null && r.accessToken ? (n._unauthorizedRecoveryRetried = !0, n.headers = n.headers || {}, n.headers.Authorization = `Bearer ${r.accessToken}`, t(n)) : Promise.reject(e);
|
|
3209
|
+
} catch {
|
|
3210
|
+
return Promise.reject(e);
|
|
3211
|
+
}
|
|
3212
|
+
});
|
|
3213
|
+
}, Un = () => {
|
|
3199
3214
|
if (In) return;
|
|
3200
3215
|
const t = "/login";
|
|
3201
3216
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
3202
|
-
},
|
|
3217
|
+
}, Bl = async (t) => {
|
|
3203
3218
|
var n;
|
|
3204
3219
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3205
|
-
},
|
|
3206
|
-
var
|
|
3207
|
-
let n = ((
|
|
3220
|
+
}, Ll = async (t, e) => {
|
|
3221
|
+
var l, c, d, p, v;
|
|
3222
|
+
let n = ((l = t.response) == null ? void 0 : l.status) || 500, r = (c = t.response) == null ? void 0 : c.message, o = {};
|
|
3208
3223
|
const a = { 400: G("参数校验错误"), 404: G("接口地址未找到"), 500: G("服务器内部错误") };
|
|
3209
|
-
let i = ((
|
|
3210
|
-
|
|
3211
|
-
|
|
3224
|
+
let i = ((d = t == null ? void 0 : t.response) == null ? void 0 : d.data) || {};
|
|
3225
|
+
const s = jn("code") || "", u = !((e == null ? void 0 : e.noRedireLogin) ?? In);
|
|
3226
|
+
if (!s && u && (n === 401 || (i == null ? void 0 : i.code) === 401))
|
|
3227
|
+
Dn ? zn({ ...Wn, redirect_uri: Hn }) : Un(), o = i;
|
|
3212
3228
|
else {
|
|
3213
3229
|
if (t.response) {
|
|
3214
|
-
if (i instanceof Blob && (i = await new Promise((
|
|
3215
|
-
const
|
|
3216
|
-
|
|
3230
|
+
if (i instanceof Blob && (i = await new Promise((y) => {
|
|
3231
|
+
const m = new FileReader();
|
|
3232
|
+
m.readAsText(i, "utf-8"), m.onload = () => {
|
|
3217
3233
|
try {
|
|
3218
|
-
|
|
3234
|
+
y(JSON.parse(m.result || "{}"));
|
|
3219
3235
|
} catch {
|
|
3220
|
-
|
|
3236
|
+
y({ code: 400, msg: G("blob解析错误") });
|
|
3221
3237
|
}
|
|
3222
3238
|
};
|
|
3223
3239
|
})), i.code) {
|
|
3224
3240
|
n = i.code;
|
|
3225
|
-
const
|
|
3226
|
-
if (
|
|
3227
|
-
const
|
|
3228
|
-
r = !(i != null && i.data) || !i.data.length ? G(
|
|
3241
|
+
const y = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3242
|
+
if (Dl && y) {
|
|
3243
|
+
const m = (i == null ? void 0 : i.status) ?? "";
|
|
3244
|
+
r = !(i != null && i.data) || !i.data.length ? G(m) : G(m, ...i.data);
|
|
3229
3245
|
} else
|
|
3230
3246
|
r = (i == null ? void 0 : i.msg) ?? "";
|
|
3231
3247
|
o = i;
|
|
3232
3248
|
}
|
|
3233
3249
|
r || (r = a[t.response.status] || t.message);
|
|
3234
3250
|
} else t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = G("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = G("请求配置异常");
|
|
3235
|
-
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((
|
|
3251
|
+
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((v = (p = window.DasMessage) == null ? void 0 : p.error) == null || v.call(p, { message: r, showClose: !0 }));
|
|
3236
3252
|
}
|
|
3237
3253
|
return { ...o, code: n, msg: r, error: t };
|
|
3238
3254
|
}, At = (t, e) => {
|
|
3239
3255
|
const n = R.create();
|
|
3240
|
-
return kn(n, async (r) => {
|
|
3241
|
-
const o =
|
|
3256
|
+
return Ul(n), kn(n, async (r) => {
|
|
3257
|
+
const o = Ur();
|
|
3242
3258
|
if (r.headers || (r.headers = {}), !(r != null && r.public)) {
|
|
3243
3259
|
let l = "";
|
|
3244
3260
|
if (o.token && (l = o.token), !l) {
|
|
3245
3261
|
const c = new URL(location.href).searchParams;
|
|
3246
3262
|
l = c.get("token") || c.get("accessToken") || c.get("accesstoken") || "";
|
|
3247
3263
|
}
|
|
3248
|
-
Dn ? l || (l = await qn(r)) : (l || (l = Qn()), l ||
|
|
3264
|
+
Dn ? l || (l = await qn(r)) : (l || (l = Qn()), l || Un()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3249
3265
|
}
|
|
3250
|
-
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Cl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess =
|
|
3266
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Cl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Bl), r.onError || (r.onError = Ll), (r.csrf ?? !1) && (r.headers["csrf-token"] = Nl.get("csrf-token"));
|
|
3251
3267
|
const s = r.params || {};
|
|
3252
3268
|
if (s.project === void 0) {
|
|
3253
3269
|
let l = 0;
|
|
@@ -3258,13 +3274,13 @@ const Vt = Br(), Dn = Vt.sso ?? !0, Fl = Vt.i18n ?? !0, In = Vt.noRedireLogin ??
|
|
|
3258
3274
|
const { instanceInfo: l } = Kn();
|
|
3259
3275
|
l != null && l.instanceId && (s.instance = l.instanceId);
|
|
3260
3276
|
}
|
|
3261
|
-
return r.params = s, r.headers.Timezone =
|
|
3277
|
+
return r.params = s, r.headers.Timezone = Lt.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = Mn.value, r;
|
|
3262
3278
|
});
|
|
3263
|
-
},
|
|
3279
|
+
}, Ml = "v1", Ot = `/api/bems/data-manage/${Ml}`, dc = {
|
|
3264
3280
|
energyType: At(`${Ot}/energy-type`),
|
|
3265
3281
|
energyObject: At(`${Ot}/energy-object`),
|
|
3266
3282
|
energyDimension: At(`${Ot}/energy-dimension`)
|
|
3267
3283
|
};
|
|
3268
3284
|
export {
|
|
3269
|
-
|
|
3285
|
+
dc as bemsModules
|
|
3270
3286
|
};
|