@das-fed/utils 7.0.5-test.22 → 7.0.5-test.23
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 +1035 -1034
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +766 -786
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +853 -851
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +188 -204
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +853 -851
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +858 -856
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +853 -851
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +162 -178
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +176 -192
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +626 -643
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +247 -263
- 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 +723 -758
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +176 -192
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +853 -851
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +853 -851
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +260 -276
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +241 -257
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +176 -192
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +191 -207
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +183 -199
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +721 -755
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +176 -192
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +708 -720
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +852 -850
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/index.js +292 -308
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +498 -533
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/type.d.ts +87 -93
- package/esm-map.json +1 -8
- package/package.json +4 -4
- package/create-api-service/thirdLogout/index.d.ts +0 -19
- package/create-api-service/thirdLogout/index.js +0 -1834
- package/create-api-service/thirdLogout/index.js.gz +0 -0
- package/create-api-service/unauthorized-recovery/index.d.ts +0 -30
- package/create-api-service/unauthorized-recovery/index.js +0 -10
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { setI18nRule as
|
|
1
|
+
import { setI18nRule as Un, currentLang as Mn, t as V } 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 Hn, real_uri as zn, getTokenParams as Wn } from "@das-fed/utils/create-api-service/sso";
|
|
4
|
+
import Ut 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 Br } from "@das-fed/utils/config";
|
|
10
|
+
function Lr(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: Ge, toStringTag:
|
|
15
|
+
const { toString: Xn } = Object.prototype, { getPrototypeOf: Mt } = Object, { iterator: Ge, toStringTag: Ur } = Symbol, Je = /* @__PURE__ */ ((t) => (e) => {
|
|
16
16
|
const n = Xn.call(e);
|
|
17
17
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
18
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
18
|
+
})(/* @__PURE__ */ Object.create(null)), L = (t) => (t = t.toLowerCase(), (e) => Je(e) === t), Ve = (t) => (e) => typeof e === t, { isArray: fe } = Array, Se = Ve("undefined");
|
|
19
19
|
function Ae(t) {
|
|
20
20
|
return t !== null && !Se(t) && t.constructor !== null && !Se(t.constructor) && N(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
21
21
|
}
|
|
22
|
-
const Mr =
|
|
22
|
+
const Mr = L("ArrayBuffer");
|
|
23
23
|
function Zn(t) {
|
|
24
24
|
let e;
|
|
25
25
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Mr(t.buffer), e;
|
|
@@ -28,7 +28,7 @@ const Yn = Ve("string"), N = Ve("function"), kr = Ve("number"), Oe = (t) => t !=
|
|
|
28
28
|
if (Je(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) && !(Ur in t) && !(Ge in t);
|
|
32
32
|
}, to = (t) => {
|
|
33
33
|
if (!Oe(t) || Ae(t))
|
|
34
34
|
return !1;
|
|
@@ -37,11 +37,11 @@ const Yn = Ve("string"), N = Ve("function"), kr = Ve("number"), Oe = (t) => t !=
|
|
|
37
37
|
} catch {
|
|
38
38
|
return !1;
|
|
39
39
|
}
|
|
40
|
-
}, ro =
|
|
40
|
+
}, ro = L("Date"), no = L("File"), oo = L("Blob"), ao = L("FileList"), io = (t) => Oe(t) && N(t.pipe), so = (t) => {
|
|
41
41
|
let e;
|
|
42
42
|
return t && (typeof FormData == "function" && t instanceof FormData || N(t.append) && ((e = Je(t)) === "formdata" || // detect form-data instance
|
|
43
43
|
e === "object" && N(t.toString) && t.toString() === "[object FormData]"));
|
|
44
|
-
}, lo =
|
|
44
|
+
}, lo = L("URLSearchParams"), [co, uo, fo, po] = ["ReadableStream", "Request", "Response", "Headers"].map(L), yo = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
45
45
|
function Re(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
46
46
|
if (t === null || typeof t > "u")
|
|
47
47
|
return;
|
|
@@ -80,7 +80,7 @@ function Rt() {
|
|
|
80
80
|
return e;
|
|
81
81
|
}
|
|
82
82
|
const ho = (t, e, n, { allOwnKeys: r } = {}) => (Re(e, (o, a) => {
|
|
83
|
-
n && N(o) ? t[a] =
|
|
83
|
+
n && N(o) ? t[a] = Lr(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
|
|
@@ -121,19 +121,19 @@ const ho = (t, e, n, { allOwnKeys: r } = {}) => (Re(e, (o, a) => {
|
|
|
121
121
|
for (; (n = t.exec(e)) !== null; )
|
|
122
122
|
r.push(n);
|
|
123
123
|
return r;
|
|
124
|
-
}, Oo =
|
|
124
|
+
}, Oo = L("HTMLFormElement"), Ro = (t) => t.toLowerCase().replace(
|
|
125
125
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
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 =
|
|
129
|
+
), Qt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Po = L("RegExp"), Hr = (t, e) => {
|
|
130
130
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
131
131
|
Re(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
|
+
Hr(t, (e, n) => {
|
|
137
137
|
if (N(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 } = {}) => (Re(e, (o, a) => {
|
|
|
157
157
|
}, Co = () => {
|
|
158
158
|
}, _o = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
159
159
|
function $o(t) {
|
|
160
|
-
return !!(t && N(t.append) && t[
|
|
160
|
+
return !!(t && N(t.append) && t[Ur] === "FormData" && t[Ge]);
|
|
161
161
|
}
|
|
162
162
|
const No = (t) => {
|
|
163
163
|
const e = new Array(10), n = (r, o) => {
|
|
@@ -178,14 +178,14 @@ const No = (t) => {
|
|
|
178
178
|
return r;
|
|
179
179
|
};
|
|
180
180
|
return n(t, 0);
|
|
181
|
-
}, Fo =
|
|
181
|
+
}, Fo = L("AsyncFunction"), Do = (t) => t && (Oe(t) || N(t)) && N(t.then) && N(t.catch), zr = ((t, e) => t ? setImmediate : e ? ((n, r) => (Z.addEventListener("message", ({ source: o, data: a }) => {
|
|
182
182
|
o === Z && a === n && r.length && r.shift()();
|
|
183
183
|
}, !1), (o) => {
|
|
184
184
|
r.push(o), Z.postMessage(n, "*");
|
|
185
185
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
186
186
|
typeof setImmediate == "function",
|
|
187
187
|
N(Z.postMessage)
|
|
188
|
-
), Io = typeof queueMicrotask < "u" ? queueMicrotask.bind(Z) : typeof process < "u" && process.nextTick ||
|
|
188
|
+
), Io = typeof queueMicrotask < "u" ? queueMicrotask.bind(Z) : typeof process < "u" && process.nextTick || zr, Bo = (t) => t != null && N(t[Ge]), f = {
|
|
189
189
|
isArray: fe,
|
|
190
190
|
isArrayBuffer: Mr,
|
|
191
191
|
isBuffer: Ae,
|
|
@@ -219,7 +219,7 @@ const No = (t) => {
|
|
|
219
219
|
inherits: go,
|
|
220
220
|
toFlatObject: vo,
|
|
221
221
|
kindOf: Je,
|
|
222
|
-
kindOfTest:
|
|
222
|
+
kindOfTest: L,
|
|
223
223
|
endsWith: wo,
|
|
224
224
|
toArray: bo,
|
|
225
225
|
forEachEntry: Eo,
|
|
@@ -228,7 +228,7 @@ const No = (t) => {
|
|
|
228
228
|
hasOwnProperty: Qt,
|
|
229
229
|
hasOwnProp: Qt,
|
|
230
230
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
231
|
-
reduceDescriptors:
|
|
231
|
+
reduceDescriptors: Hr,
|
|
232
232
|
freezeMethods: To,
|
|
233
233
|
toObjectSet: xo,
|
|
234
234
|
toCamelCase: Ro,
|
|
@@ -241,9 +241,9 @@ const No = (t) => {
|
|
|
241
241
|
toJSONObject: No,
|
|
242
242
|
isAsyncFn: Fo,
|
|
243
243
|
isThenable: Do,
|
|
244
|
-
setImmediate:
|
|
244
|
+
setImmediate: zr,
|
|
245
245
|
asap: Io,
|
|
246
|
-
isIterable:
|
|
246
|
+
isIterable: Bo
|
|
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 Lo = 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 Uo(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 Ke(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) && Uo(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 Ke(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 p = [], d = 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 (p.indexOf(y) !== -1)
|
|
363
363
|
throw Error("Circular reference detected in " + m.join("."));
|
|
364
|
-
|
|
364
|
+
p.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
|
+
d
|
|
371
371
|
)) === !0 && v(S, m ? m.concat(E) : [E]);
|
|
372
|
-
}),
|
|
372
|
+
}), p.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, Ho = typeof Blob < "u" ? Blob : null, zo = {
|
|
485
485
|
isBrowser: !0,
|
|
486
486
|
classes: {
|
|
487
487
|
URLSearchParams: qo,
|
|
488
488
|
FormData: jo,
|
|
489
|
-
Blob:
|
|
489
|
+
Blob: Ho
|
|
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
|
+
...zo
|
|
503
503
|
};
|
|
504
504
|
function Ko(t, e) {
|
|
505
505
|
return Ke(t, new C.classes.URLSearchParams(), {
|
|
@@ -689,8 +689,8 @@ let F = class {
|
|
|
689
689
|
const c = he(u);
|
|
690
690
|
if (!c)
|
|
691
691
|
throw new Error("header name must be a non-empty string");
|
|
692
|
-
const
|
|
693
|
-
(!
|
|
692
|
+
const p = f.findKey(o, c);
|
|
693
|
+
(!p || o[p] === void 0 || l === !0 || l === void 0 && o[p] !== !1) && (o[p || u] = Ie(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 p = a, d = 0;
|
|
857
|
+
for (; p !== o; )
|
|
858
|
+
d += n[p++], p = p % 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(d * 1e3 / v) : void 0;
|
|
863
863
|
};
|
|
864
864
|
}
|
|
865
865
|
function sa(t, e) {
|
|
@@ -868,10 +868,10 @@ 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(), p = c - n;
|
|
872
|
+
p >= r ? i(l, c) : (o = l, a || (a = setTimeout(() => {
|
|
873
873
|
a = null, i(o);
|
|
874
|
-
}, r -
|
|
874
|
+
}, r - p)));
|
|
875
875
|
}, () => o && i(o)];
|
|
876
876
|
}
|
|
877
877
|
const ke = (t, e, n = 3) => {
|
|
@@ -880,7 +880,7 @@ const ke = (t, e, n = 3) => {
|
|
|
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 p = {
|
|
884
884
|
loaded: i,
|
|
885
885
|
total: s,
|
|
886
886
|
progress: s ? i / s : void 0,
|
|
@@ -891,7 +891,7 @@ const ke = (t, e, n = 3) => {
|
|
|
891
891
|
lengthComputable: s != null,
|
|
892
892
|
[e ? "download" : "upload"]: !0
|
|
893
893
|
};
|
|
894
|
-
t(
|
|
894
|
+
t(p);
|
|
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 te(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, p, d) {
|
|
948
|
+
return f.isPlainObject(l) && f.isPlainObject(c) ? f.merge.call({ caseless: d }, 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, p, d) {
|
|
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, p, d);
|
|
954
|
+
} else return r(l, c, p, d);
|
|
955
955
|
}
|
|
956
956
|
function a(l, c) {
|
|
957
957
|
if (!f.isUndefined(c))
|
|
@@ -963,10 +963,10 @@ function te(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, p) {
|
|
967
|
+
if (p in e)
|
|
968
968
|
return r(l, c);
|
|
969
|
-
if (
|
|
969
|
+
if (p in t)
|
|
970
970
|
return r(void 0, l);
|
|
971
971
|
}
|
|
972
972
|
const u = {
|
|
@@ -998,11 +998,11 @@ function te(t, e) {
|
|
|
998
998
|
socketPath: i,
|
|
999
999
|
responseEncoding: i,
|
|
1000
1000
|
validateStatus: s,
|
|
1001
|
-
headers: (l, c,
|
|
1001
|
+
headers: (l, c, p) => o(nr(l), nr(c), p, !0)
|
|
1002
1002
|
};
|
|
1003
1003
|
return f.forEach(Object.keys({ ...t, ...e }), function(c) {
|
|
1004
|
-
const
|
|
1005
|
-
f.isUndefined(
|
|
1004
|
+
const p = u[c] || o, d = p(t[c], e[c], c);
|
|
1005
|
+
f.isUndefined(d) && p !== s || (n[c] = d);
|
|
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((p) => p.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, p, d, 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 && ([d, y] = ke(l, !0), h.addEventListener("progress", d)), u && h.upload && ([p, v] = ke(u), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (g) => {
|
|
1077
1077
|
h && (r(!g || g.type ? new pe(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 p = c.byteLength;
|
|
1151
1151
|
if (n) {
|
|
1152
|
-
let
|
|
1153
|
-
n(
|
|
1152
|
+
let d = a += p;
|
|
1153
|
+
n(d);
|
|
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: p = "same-origin",
|
|
1222
|
+
fetchOptions: d
|
|
1223
1223
|
} = tn(t);
|
|
1224
1224
|
l = l ? (l + "").toLowerCase() : "text";
|
|
1225
1225
|
let v = ya([o, a && a.toAbortSignal()], i), y;
|
|
@@ -1235,38 +1235,38 @@ const ba = async (t) => {
|
|
|
1235
1235
|
duplex: "half"
|
|
1236
1236
|
}), _;
|
|
1237
1237
|
if (f.isFormData(r) && (_ = A.headers.get("content-type")) && c.setContentType(_), A.body) {
|
|
1238
|
-
const [$,
|
|
1238
|
+
const [$, H] = tr(
|
|
1239
1239
|
h,
|
|
1240
1240
|
ke(rr(u))
|
|
1241
1241
|
);
|
|
1242
|
-
r = or(A.body, ar, $,
|
|
1242
|
+
r = or(A.body, ar, $, H);
|
|
1243
1243
|
}
|
|
1244
1244
|
}
|
|
1245
|
-
f.isString(
|
|
1245
|
+
f.isString(p) || (p = p ? "include" : "omit");
|
|
1246
1246
|
const S = "credentials" in Request.prototype;
|
|
1247
1247
|
y = new Request(e, {
|
|
1248
|
-
...
|
|
1248
|
+
...d,
|
|
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 ? p : void 0
|
|
1255
1255
|
});
|
|
1256
|
-
let E = await fetch(y,
|
|
1256
|
+
let E = await fetch(y, d);
|
|
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
|
-
const _ = f.toFiniteNumber(E.headers.get("content-length")), [$,
|
|
1263
|
+
const _ = f.toFiniteNumber(E.headers.get("content-length")), [$, H] = s && tr(
|
|
1264
1264
|
_,
|
|
1265
1265
|
ke(rr(s), !0)
|
|
1266
1266
|
) || [];
|
|
1267
1267
|
E = new Response(
|
|
1268
1268
|
or(E.body, ar, $, () => {
|
|
1269
|
-
|
|
1269
|
+
H && H(), m && m();
|
|
1270
1270
|
}),
|
|
1271
1271
|
A
|
|
1272
1272
|
);
|
|
@@ -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: Lo,
|
|
1296
1296
|
xhr: da,
|
|
1297
1297
|
fetch: Ea
|
|
1298
1298
|
};
|
|
@@ -1398,10 +1398,10 @@ function Oa(t, e, n) {
|
|
|
1398
1398
|
throw new w("Unknown option " + a, w.ERR_BAD_OPTION);
|
|
1399
1399
|
}
|
|
1400
1400
|
}
|
|
1401
|
-
const
|
|
1401
|
+
const Be = {
|
|
1402
1402
|
assertOptions: Oa,
|
|
1403
1403
|
validators: Xe
|
|
1404
|
-
}, M =
|
|
1404
|
+
}, M = Be.validators;
|
|
1405
1405
|
let Y = class {
|
|
1406
1406
|
constructor(e) {
|
|
1407
1407
|
this.defaults = e || {}, this.interceptors = {
|
|
@@ -1437,16 +1437,16 @@ let Y = class {
|
|
|
1437
1437
|
_request(e, n) {
|
|
1438
1438
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = te(this.defaults, n);
|
|
1439
1439
|
const { transitional: r, paramsSerializer: o, headers: a } = n;
|
|
1440
|
-
r !== void 0 &&
|
|
1440
|
+
r !== void 0 && Be.assertOptions(r, {
|
|
1441
1441
|
silentJSONParsing: M.transitional(M.boolean),
|
|
1442
1442
|
forcedJSONParsing: M.transitional(M.boolean),
|
|
1443
1443
|
clarifyTimeoutError: M.transitional(M.boolean)
|
|
1444
1444
|
}, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
|
|
1445
1445
|
serialize: o
|
|
1446
|
-
} :
|
|
1446
|
+
} : Be.assertOptions(o, {
|
|
1447
1447
|
encode: M.function,
|
|
1448
1448
|
serialize: M.function
|
|
1449
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
1449
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Be.assertOptions(n, {
|
|
1450
1450
|
baseUrl: M.spelling("baseURL"),
|
|
1451
1451
|
withXsrfToken: M.spelling("withXSRFToken")
|
|
1452
1452
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1469,17 +1469,17 @@ let Y = 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, p = 0, d;
|
|
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), d = y.length, c = Promise.resolve(n); p < d; )
|
|
1476
|
+
c = c.then(y[p++], y[p++]);
|
|
1477
1477
|
return c;
|
|
1478
1478
|
}
|
|
1479
|
-
|
|
1479
|
+
d = s.length;
|
|
1480
1480
|
let v = n;
|
|
1481
|
-
for (
|
|
1482
|
-
const y = s[
|
|
1481
|
+
for (p = 0; p < d; ) {
|
|
1482
|
+
const y = s[p++], m = s[p++];
|
|
1483
1483
|
try {
|
|
1484
1484
|
v = y(v);
|
|
1485
1485
|
} catch (h) {
|
|
@@ -1492,8 +1492,8 @@ let Y = class {
|
|
|
1492
1492
|
} catch (y) {
|
|
1493
1493
|
return Promise.reject(y);
|
|
1494
1494
|
}
|
|
1495
|
-
for (
|
|
1496
|
-
c = c.then(l[
|
|
1495
|
+
for (p = 0, d = l.length; p < d; )
|
|
1496
|
+
c = c.then(l[p++], l[p++]);
|
|
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 Y(t), n =
|
|
1679
|
+
const e = new Y(t), n = Lr(Y.prototype.request, e);
|
|
1680
1680
|
return f.extend(n, Y.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
1681
1681
|
return ln(te(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: Jl,
|
|
1706
|
+
AxiosError: Vl,
|
|
1707
|
+
CanceledError: Kl,
|
|
1708
|
+
isCancel: Ql,
|
|
1709
|
+
CancelToken: Xl,
|
|
1710
|
+
VERSION: Zl,
|
|
1711
|
+
all: Yl,
|
|
1712
|
+
Cancel: ec,
|
|
1713
|
+
isAxiosError: tc,
|
|
1714
|
+
spread: rc,
|
|
1715
|
+
toFormData: nc,
|
|
1716
|
+
AxiosHeaders: oc,
|
|
1717
|
+
HttpStatusCode: ac,
|
|
1718
|
+
formToJSON: ic,
|
|
1719
|
+
getAdapter: sc,
|
|
1720
|
+
mergeConfig: lc
|
|
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 = {}, $a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1747
1747
|
__proto__: null,
|
|
1748
1748
|
default: _a
|
|
1749
1749
|
}, Symbol.toStringTag, { value: "Module" })), Na = /* @__PURE__ */ Ca($a);
|
|
1750
|
-
var jt = typeof Map == "function" && Map.prototype, st = Object.getOwnPropertyDescriptor && jt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, je = jt && st && typeof st.get == "function" ? st.get : null, ur = jt && Map.prototype.forEach,
|
|
1750
|
+
var jt = typeof Map == "function" && Map.prototype, st = Object.getOwnPropertyDescriptor && jt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, je = jt && st && typeof st.get == "function" ? st.get : null, ur = jt && Map.prototype.forEach, Ht = typeof Set == "function" && Set.prototype, lt = Object.getOwnPropertyDescriptor && Ht ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, He = Ht && lt && typeof lt.get == "function" ? lt.get : null, fr = Ht && Set.prototype.forEach, Fa = typeof WeakMap == "function" && WeakMap.prototype, ge = Fa ? WeakMap.prototype.has : null, Da = typeof WeakSet == "function" && WeakSet.prototype, ve = Da ? WeakSet.prototype.has : null, Ia = typeof WeakRef == "function" && WeakRef.prototype, pr = Ia ? WeakRef.prototype.deref : null, Ba = Boolean.prototype.valueOf, La = Object.prototype.toString, Ua = Function.prototype.toString, Ma = String.prototype.match, zt = String.prototype.slice, K = String.prototype.replace, ka = String.prototype.toUpperCase, dr = String.prototype.toLowerCase, cn = RegExp.prototype.test, yr = Array.prototype.concat, j = Array.prototype.join, qa = Array.prototype.slice, hr = Math.floor, $t = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, ct = Object.getOwnPropertySymbols, Nt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ce = typeof Symbol == "function" && typeof Symbol.iterator == "object", we = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ce || !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 = zt.call(e, o.length + 1);
|
|
1761
1761
|
return K.call(o, n, "$&_") + "." + K.call(K.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
1762
1762
|
}
|
|
1763
1763
|
}
|
|
@@ -1806,13 +1806,13 @@ var Ft = Na, 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 p = 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
|
|
1815
|
-
if (J && (o = qa.call(o), o.push(J)),
|
|
1814
|
+
function d(D, J, z) {
|
|
1815
|
+
if (J && (o = qa.call(o), o.push(J)), z) {
|
|
1816
1816
|
var ye = {
|
|
1817
1817
|
depth: a.depth
|
|
1818
1818
|
};
|
|
@@ -1821,7 +1821,7 @@ var Ft = Na, vr = Ft.custom, wr = dn(vr) ? vr : null, fn = {
|
|
|
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 = $e(e,
|
|
1824
|
+
var v = Xa(e), y = $e(e, d);
|
|
1825
1825
|
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + j.call(y, ", ") + " }" : "");
|
|
1826
1826
|
}
|
|
1827
1827
|
if (dn(e)) {
|
|
@@ -1830,18 +1830,18 @@ var Ft = Na, 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(Ha(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 = $e(e,
|
|
1840
|
-
return
|
|
1839
|
+
var g = $e(e, d);
|
|
1840
|
+
return p && !ai(g) ? "[" + It(g, p) + "]" : "[ " + j.call(g, ", ") + " ]";
|
|
1841
1841
|
}
|
|
1842
1842
|
if (Wa(e)) {
|
|
1843
|
-
var T = $e(e,
|
|
1844
|
-
return !("cause" in Error.prototype) && "cause" in e && !un.call(e, "cause") ? "{ [" + String(e) + "] " + j.call(yr.call("[cause]: " +
|
|
1843
|
+
var T = $e(e, d);
|
|
1844
|
+
return !("cause" in Error.prototype) && "cause" in e && !un.call(e, "cause") ? "{ [" + String(e) + "] " + j.call(yr.call("[cause]: " + d(e.cause), T), ", ") + " }" : T.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + j.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 = Na, 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, J) {
|
|
1855
|
-
A.push(
|
|
1856
|
-
}), Sr("Map", je.call(e), A,
|
|
1855
|
+
A.push(d(J, e, !0) + " => " + d(D, e));
|
|
1856
|
+
}), Sr("Map", je.call(e), A, p);
|
|
1857
1857
|
}
|
|
1858
1858
|
if (ti(e)) {
|
|
1859
1859
|
var _ = [];
|
|
1860
1860
|
return fr && fr.call(e, function(D) {
|
|
1861
|
-
_.push(
|
|
1862
|
-
}), Sr("Set",
|
|
1861
|
+
_.push(d(D, e));
|
|
1862
|
+
}), Sr("Set", He.call(e), _, p);
|
|
1863
1863
|
}
|
|
1864
1864
|
if (Ya(e))
|
|
1865
1865
|
return ut("WeakMap");
|
|
@@ -1868,20 +1868,20 @@ var Ft = Na, vr = Ft.custom, wr = dn(vr) ? vr : null, fn = {
|
|
|
1868
1868
|
if (ei(e))
|
|
1869
1869
|
return ut("WeakRef");
|
|
1870
1870
|
if (Ja(e))
|
|
1871
|
-
return me(
|
|
1871
|
+
return me(d(Number(e)));
|
|
1872
1872
|
if (Ka(e))
|
|
1873
|
-
return me(
|
|
1873
|
+
return me(d($t.call(e)));
|
|
1874
1874
|
if (Va(e))
|
|
1875
|
-
return me(
|
|
1875
|
+
return me(Ba.call(e));
|
|
1876
1876
|
if (Ga(e))
|
|
1877
|
-
return me(
|
|
1877
|
+
return me(d(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 $ = $e(e,
|
|
1884
|
-
return $.length === 0 ? oe + "{}" :
|
|
1882
|
+
if (!za(e) && !br(e)) {
|
|
1883
|
+
var $ = $e(e, d), H = mr ? mr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", G = !H && we && Object(e) === e && we in e ? zt.call(Q(e), 8, -1) : U ? "Object" : "", _e = H || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", oe = _e + (G || U ? "[" + j.call(yr.call([], G || [], U || []), ": ") + "] " : "");
|
|
1884
|
+
return $.length === 0 ? oe + "{}" : p ? oe + "{" + It($, p) + "}" : oe + "{ " + j.call($, ", ") + " }";
|
|
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 Ha(t) {
|
|
1893
1893
|
return K.call(String(t), /"/g, """);
|
|
1894
1894
|
}
|
|
1895
1895
|
function ne(t) {
|
|
@@ -1898,7 +1898,7 @@ function ne(t) {
|
|
|
1898
1898
|
function Dt(t) {
|
|
1899
1899
|
return Q(t) === "[object Array]" && ne(t);
|
|
1900
1900
|
}
|
|
1901
|
-
function
|
|
1901
|
+
function za(t) {
|
|
1902
1902
|
return Q(t) === "[object Date]" && ne(t);
|
|
1903
1903
|
}
|
|
1904
1904
|
function br(t) {
|
|
@@ -1945,12 +1945,12 @@ function W(t, e) {
|
|
|
1945
1945
|
return Qa.call(t, e);
|
|
1946
1946
|
}
|
|
1947
1947
|
function Q(t) {
|
|
1948
|
-
return
|
|
1948
|
+
return La.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(Ua.call(t), /^function\s*([\w$]+)/);
|
|
1954
1954
|
return e ? e[1] : null;
|
|
1955
1955
|
}
|
|
1956
1956
|
function yn(t, e) {
|
|
@@ -1967,7 +1967,7 @@ function Za(t) {
|
|
|
1967
1967
|
try {
|
|
1968
1968
|
je.call(t);
|
|
1969
1969
|
try {
|
|
1970
|
-
|
|
1970
|
+
He.call(t);
|
|
1971
1971
|
} catch {
|
|
1972
1972
|
return !0;
|
|
1973
1973
|
}
|
|
@@ -2001,10 +2001,10 @@ function ei(t) {
|
|
|
2001
2001
|
return !1;
|
|
2002
2002
|
}
|
|
2003
2003
|
function ti(t) {
|
|
2004
|
-
if (!
|
|
2004
|
+
if (!He || !t || typeof t != "object")
|
|
2005
2005
|
return !1;
|
|
2006
2006
|
try {
|
|
2007
|
-
|
|
2007
|
+
He.call(t);
|
|
2008
2008
|
try {
|
|
2009
2009
|
je.call(t);
|
|
2010
2010
|
} catch {
|
|
@@ -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(zt.call(t, 0, e.maxStringLength), e) + r;
|
|
2040
2040
|
}
|
|
2041
2041
|
var o = ja[e.quoteStyle || "single"];
|
|
2042
2042
|
o.lastIndex = 0;
|
|
@@ -2167,21 +2167,21 @@ var si = Ze, li = de, Ye = function(t, e, n) {
|
|
|
2167
2167
|
return e !== e;
|
|
2168
2168
|
}, Ti = Pi, xi = function(e) {
|
|
2169
2169
|
return Ti(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
2170
|
-
}, Ci = Object.getOwnPropertyDescriptor,
|
|
2171
|
-
if (
|
|
2170
|
+
}, Ci = Object.getOwnPropertyDescriptor, Le = Ci;
|
|
2171
|
+
if (Le)
|
|
2172
2172
|
try {
|
|
2173
|
-
|
|
2173
|
+
Le([], "length");
|
|
2174
2174
|
} catch {
|
|
2175
|
-
|
|
2175
|
+
Le = null;
|
|
2176
2176
|
}
|
|
2177
|
-
var gn =
|
|
2178
|
-
if (
|
|
2177
|
+
var gn = Le, 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, ft, Er;
|
|
2185
2185
|
function $i() {
|
|
2186
2186
|
return Er || (Er = 1, ft = 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 yt = t.getPrototypeOf || null, yt;
|
|
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, Bi = "[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
|
+
}, Li = 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
|
+
}, Ui = 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) !== Bi)
|
|
2251
2251
|
throw new TypeError(Fi + n);
|
|
2252
|
-
for (var r =
|
|
2252
|
+
for (var r = Li(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 (" + Ui(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, ht = Function.prototype.apply), ht;
|
|
2275
2275
|
}
|
|
2276
|
-
var qi = typeof Reflect < "u" && Reflect && Reflect.apply, ji = et,
|
|
2276
|
+
var qi = typeof Reflect < "u" && Reflect && Reflect.apply, ji = et, Hi = bn(), zi = Wt, Wi = qi, Gi = Wi || ji.call(zi, Hi), Ji = et, Vi = de, 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,7 +2500,7 @@ var ws = function t(e) {
|
|
|
2500
2500
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2501
2501
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2502
2502
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2503
|
-
}, xe = et,
|
|
2503
|
+
}, xe = et, ze = Yi(), bs = xe.call(Te, Array.prototype.concat), Ss = xe.call(An, Array.prototype.splice), Nr = xe.call(Te, String.prototype.replace), We = xe.call(Te, String.prototype.slice), Es = xe.call(Te, RegExp.prototype.exec), As = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Os = /\\(\\)?/g, Rs = function(e) {
|
|
2504
2504
|
var n = We(e, 0, 1), r = We(e, -1);
|
|
2505
2505
|
if (n === "%" && r !== "%")
|
|
2506
2506
|
throw new ue("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -2512,7 +2512,7 @@ var ws = function t(e) {
|
|
|
2512
2512
|
}), o;
|
|
2513
2513
|
}, Ps = function(e, n) {
|
|
2514
2514
|
var r = e, o;
|
|
2515
|
-
if (
|
|
2515
|
+
if (ze($r, r) && (o = $r[r], r = "%" + o[0] + "%"), ze(ee, r)) {
|
|
2516
2516
|
var a = ee[r];
|
|
2517
2517
|
if (a === se && (a = ws(r)), typeof a > "u" && !n)
|
|
2518
2518
|
throw new le("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
@@ -2532,24 +2532,24 @@ var ws = function t(e) {
|
|
|
2532
2532
|
throw new ue("`%` 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, p = !0; c < r.length; c += 1) {
|
|
2536
|
+
var d = r[c], v = We(d, 0, 1), y = We(d, -1);
|
|
2537
2537
|
if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
|
|
2538
2538
|
throw new ue("property names with quotes must have matching quotes");
|
|
2539
|
-
if ((
|
|
2539
|
+
if ((d === "constructor" || !p) && (u = !0), o += "." + d, i = "%" + o + "%", ze(ee, i))
|
|
2540
2540
|
s = ee[i];
|
|
2541
2541
|
else if (s != null) {
|
|
2542
|
-
if (!(
|
|
2542
|
+
if (!(d in s)) {
|
|
2543
2543
|
if (!n)
|
|
2544
2544
|
throw new le("base intrinsic for " + e + " exists, but the property is not available.");
|
|
2545
2545
|
return;
|
|
2546
2546
|
}
|
|
2547
2547
|
if (Ee && c + 1 >= r.length) {
|
|
2548
|
-
var m = Ee(s,
|
|
2549
|
-
|
|
2548
|
+
var m = Ee(s, d);
|
|
2549
|
+
p = !!m, p && "get" in m && !("originalValue" in m.get) ? s = m.get : s = s[d];
|
|
2550
2550
|
} else
|
|
2551
|
-
|
|
2552
|
-
|
|
2551
|
+
p = ze(s, d), s = s[d];
|
|
2552
|
+
p && !u && (ee[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
|
+
}, Bs = Gt, tt = Pn, Ls = Ze, Ne = Tn, Us = de, ie = Bs("%WeakMap%", !0), Ms = tt("WeakMap.prototype.get", !0), ks = tt("WeakMap.prototype.set", !0), qs = tt("WeakMap.prototype.has", !0), js = tt("WeakMap.prototype.delete", !0), Hs = ie ? (
|
|
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 Us("Side channel does not contain " + Ls(o));
|
|
2598
2598
|
},
|
|
2599
2599
|
delete: function(o) {
|
|
2600
2600
|
if (ie && o && (typeof o == "object" || typeof o == "function")) {
|
|
@@ -2616,11 +2616,11 @@ function() {
|
|
|
2616
2616
|
};
|
|
2617
2617
|
return r;
|
|
2618
2618
|
}
|
|
2619
|
-
) : Ne,
|
|
2619
|
+
) : Ne, zs = de, Ws = Ze, Gs = di, Js = Tn, Vs = Hs, 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 zs("Side channel does not contain " + Ws(r));
|
|
2624
2624
|
},
|
|
2625
2625
|
delete: function(r) {
|
|
2626
2626
|
return !!e && e.delete(r);
|
|
@@ -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 += At) {
|
|
2718
|
-
for (var l = i.length >= At ? i.slice(u, u + At) : i, c = [],
|
|
2719
|
-
var
|
|
2720
|
-
if (
|
|
2721
|
-
c[c.length] = l.charAt(
|
|
2718
|
+
for (var l = i.length >= At ? i.slice(u, u + At) : i, c = [], p = 0; p < l.length; ++p) {
|
|
2719
|
+
var d = l.charCodeAt(p);
|
|
2720
|
+
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a === Ys.RFC1738 && (d === 40 || d === 41)) {
|
|
2721
|
+
c[c.length] = l.charAt(p);
|
|
2722
2722
|
continue;
|
|
2723
2723
|
}
|
|
2724
|
-
if (
|
|
2725
|
-
c[c.length] = k[
|
|
2724
|
+
if (d < 128) {
|
|
2725
|
+
c[c.length] = k[d];
|
|
2726
2726
|
continue;
|
|
2727
2727
|
}
|
|
2728
|
-
if (
|
|
2729
|
-
c[c.length] = k[192 |
|
|
2728
|
+
if (d < 2048) {
|
|
2729
|
+
c[c.length] = k[192 | d >> 6] + k[128 | d & 63];
|
|
2730
2730
|
continue;
|
|
2731
2731
|
}
|
|
2732
|
-
if (
|
|
2733
|
-
c[c.length] = k[224 |
|
|
2732
|
+
if (d < 55296 || d >= 57344) {
|
|
2733
|
+
c[c.length] = k[224 | d >> 12] + k[128 | d >> 6 & 63] + k[128 | d & 63];
|
|
2734
2734
|
continue;
|
|
2735
2735
|
}
|
|
2736
|
-
|
|
2736
|
+
p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] = k[240 | d >> 18] + k[128 | d >> 12 & 63] + k[128 | d >> 6 & 63] + k[128 | d & 63];
|
|
2737
2737
|
}
|
|
2738
2738
|
s += c.join("");
|
|
2739
2739
|
}
|
|
@@ -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
|
-
}, Ot = {}, yl = function t(e, n, r, o, a, i, s, u, l, c,
|
|
2810
|
+
}, Ot = {}, yl = function t(e, n, r, o, a, i, s, u, l, c, p, d, v, y, m, h, S, E) {
|
|
2811
2811
|
for (var g = e, T = E, A = 0, _ = !1; (T = T.get(Ot)) !== void 0 && !_; ) {
|
|
2812
2812
|
var $ = T.get(e);
|
|
2813
2813
|
if (A += 1, typeof $ < "u") {
|
|
@@ -2826,14 +2826,14 @@ function() {
|
|
|
2826
2826
|
}
|
|
2827
2827
|
if (dl(g) || Me.isBuffer(g)) {
|
|
2828
2828
|
if (l) {
|
|
2829
|
-
var
|
|
2830
|
-
return [m(
|
|
2829
|
+
var H = h ? n : l(n, P.encoder, S, "key", y);
|
|
2830
|
+
return [m(H) + "=" + 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
|
|
2836
|
+
return U;
|
|
2837
2837
|
var G;
|
|
2838
2838
|
if (r === "comma" && q(g))
|
|
2839
2839
|
h && l && (g = Me.maybeMap(g, l)), G = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
|
|
@@ -2841,20 +2841,20 @@ function() {
|
|
|
2841
2841
|
G = c;
|
|
2842
2842
|
else {
|
|
2843
2843
|
var _e = Object.keys(g);
|
|
2844
|
-
G =
|
|
2844
|
+
G = p ? _e.sort(p) : _e;
|
|
2845
2845
|
}
|
|
2846
2846
|
var oe = u ? String(n).replace(/\./g, "%2E") : String(n), D = o && q(g) && g.length === 1 ? oe + "[]" : oe;
|
|
2847
2847
|
if (a && q(g) && g.length === 0)
|
|
2848
2848
|
return D + "[]";
|
|
2849
2849
|
for (var J = 0; J < G.length; ++J) {
|
|
2850
|
-
var
|
|
2850
|
+
var z = G[J], ye = typeof z == "object" && z && typeof z.value < "u" ? z.value : g[z];
|
|
2851
2851
|
if (!(s && ye === null)) {
|
|
2852
|
-
var rt =
|
|
2852
|
+
var rt = d && u ? String(z).replace(/\./g, "%2E") : String(z), Ln = q(g) ? typeof r == "function" ? r(D, rt) : D : D + (d ? "." + rt : "[" + rt + "]");
|
|
2853
2853
|
E.set(e, A);
|
|
2854
2854
|
var Kt = _n();
|
|
2855
|
-
Kt.set(Ot, E), Nn(
|
|
2855
|
+
Kt.set(Ot, E), Nn(U, t(
|
|
2856
2856
|
ye,
|
|
2857
|
-
|
|
2857
|
+
Ln,
|
|
2858
2858
|
r,
|
|
2859
2859
|
o,
|
|
2860
2860
|
a,
|
|
@@ -2863,8 +2863,8 @@ function() {
|
|
|
2863
2863
|
u,
|
|
2864
2864
|
r === "comma" && h && q(g) ? null : l,
|
|
2865
2865
|
c,
|
|
2866
|
-
d,
|
|
2867
2866
|
p,
|
|
2867
|
+
d,
|
|
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 = $n[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
|
-
p,
|
|
2932
|
+
var p = o[c], d = n[p];
|
|
2933
|
+
r.skipNulls && d === null || Nn(i, yl(
|
|
2935
2934
|
d,
|
|
2935
|
+
p,
|
|
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
|
-
}, re = Cn,
|
|
2956
|
+
}, re = Cn, Bt = 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], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1, v, y;
|
|
3004
|
+
d === -1 ? (v = n.decoder(c, O.decoder, l, "key"), y = n.strictNullHandling ? null : "") : (v = n.decoder(c.slice(0, d), O.decoder, l, "key"), y = re.maybeMap(
|
|
3005
3005
|
Fn(
|
|
3006
|
-
c.slice(
|
|
3006
|
+
c.slice(d + 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 = Bt.call(r, v);
|
|
3015
3015
|
m && n.duplicates === "combine" ? r[v] = re.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) ? [] : re.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, p = n.decodeDotInKeys ? c.replace(/%2E/g, ".") : c, d = parseInt(p, 10);
|
|
3031
|
+
!n.parseArrays && p === "" ? u = { 0: i } : !isNaN(d) && l !== p && String(d) === p && d >= 0 && n.parseArrays && d <= n.arrayLimit ? (u = [], u[d] = i) : p !== "__proto__" && (u[p] = 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 && Bt.call(Object.prototype, l) && !r.allowPrototypes)
|
|
3041
3041
|
return;
|
|
3042
3042
|
c.push(l);
|
|
3043
3043
|
}
|
|
3044
|
-
for (var
|
|
3045
|
-
if (
|
|
3044
|
+
for (var p = 0; r.depth > 0 && (u = s.exec(a)) !== null && p < r.depth; ) {
|
|
3045
|
+
if (p += 1, !r.plainObjects && Bt.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 Lt(t, e) {
|
|
3133
3133
|
function n(o, a, i) {
|
|
3134
3134
|
if (!(typeof document > "u")) {
|
|
3135
3135
|
i = Fe({}, 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 Bt(t, e) {
|
|
|
3167
3167
|
);
|
|
3168
3168
|
},
|
|
3169
3169
|
withAttributes: function(o) {
|
|
3170
|
-
return
|
|
3170
|
+
return Lt(this.converter, Fe({}, this.attributes, o));
|
|
3171
3171
|
},
|
|
3172
3172
|
withConverter: function(o) {
|
|
3173
|
-
return
|
|
3173
|
+
return Lt(Fe({}, this.converter, o), this.attributes);
|
|
3174
3174
|
}
|
|
3175
3175
|
},
|
|
3176
3176
|
{
|
|
@@ -3179,7 +3179,7 @@ function Bt(t, e) {
|
|
|
3179
3179
|
}
|
|
3180
3180
|
);
|
|
3181
3181
|
}
|
|
3182
|
-
var $l =
|
|
3182
|
+
var $l = Lt(_l, { path: "/" });
|
|
3183
3183
|
const Nl = {
|
|
3184
3184
|
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
|
|
3185
3185
|
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
|
|
@@ -3191,79 +3191,63 @@ const Nl = {
|
|
|
3191
3191
|
en: "Network error, please check your network status",
|
|
3192
3192
|
_appCode: "framework"
|
|
3193
3193
|
}
|
|
3194
|
-
}
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
const Vt =
|
|
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 = () => {
|
|
3194
|
+
};
|
|
3195
|
+
Un(Nl);
|
|
3196
|
+
Ut.extend(Gn);
|
|
3197
|
+
Ut.extend(Jn);
|
|
3198
|
+
const Vt = Br(), Dn = Vt.sso ?? !0, Fl = Vt.i18n ?? !0, In = Vt.noRedireLogin ?? !1, Bn = () => {
|
|
3214
3199
|
if (In) return;
|
|
3215
3200
|
const t = "/login";
|
|
3216
3201
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
3217
|
-
},
|
|
3202
|
+
}, Dl = async (t) => {
|
|
3218
3203
|
var n;
|
|
3219
3204
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3220
|
-
},
|
|
3221
|
-
var l, c,
|
|
3222
|
-
let n = ((
|
|
3205
|
+
}, Il = async (t, e) => {
|
|
3206
|
+
var u, l, c, p, d;
|
|
3207
|
+
let n = ((u = t.response) == null ? void 0 : u.status) || 500, r = (l = t.response) == null ? void 0 : l.message, o = {};
|
|
3223
3208
|
const a = { 400: V("参数校验错误"), 404: V("接口地址未找到"), 500: V("服务器内部错误") };
|
|
3224
|
-
let i = ((
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
Dn ? zn({ ...Wn, redirect_uri: Hn }) : Un(), o = i;
|
|
3209
|
+
let i = ((c = t == null ? void 0 : t.response) == null ? void 0 : c.data) || {};
|
|
3210
|
+
if (!(jn("code") || "") && !In && (n === 401 || (i == null ? void 0 : i.code) === 401))
|
|
3211
|
+
Dn ? Hn({ ...Wn, redirect_uri: zn }) : Bn(), o = i;
|
|
3228
3212
|
else {
|
|
3229
3213
|
if (t.response) {
|
|
3230
|
-
if (i instanceof Blob && (i = await new Promise((
|
|
3231
|
-
const
|
|
3232
|
-
|
|
3214
|
+
if (i instanceof Blob && (i = await new Promise((v) => {
|
|
3215
|
+
const y = new FileReader();
|
|
3216
|
+
y.readAsText(i, "utf-8"), y.onload = () => {
|
|
3233
3217
|
try {
|
|
3234
|
-
|
|
3218
|
+
v(JSON.parse(y.result || "{}"));
|
|
3235
3219
|
} catch {
|
|
3236
|
-
|
|
3220
|
+
v({ code: 400, msg: V("blob解析错误") });
|
|
3237
3221
|
}
|
|
3238
3222
|
};
|
|
3239
3223
|
})), i.code) {
|
|
3240
3224
|
n = i.code;
|
|
3241
|
-
const
|
|
3242
|
-
if (
|
|
3243
|
-
const
|
|
3244
|
-
r = !(i != null && i.data) || !i.data.length ? V(
|
|
3225
|
+
const v = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3226
|
+
if (Fl && v) {
|
|
3227
|
+
const y = (i == null ? void 0 : i.status) ?? "";
|
|
3228
|
+
r = !(i != null && i.data) || !i.data.length ? V(y) : V(y, ...i.data);
|
|
3245
3229
|
} else
|
|
3246
3230
|
r = (i == null ? void 0 : i.msg) ?? "";
|
|
3247
3231
|
o = i;
|
|
3248
3232
|
}
|
|
3249
3233
|
r || (r = a[t.response.status] || t.message);
|
|
3250
3234
|
} else t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = V("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = V("请求配置异常");
|
|
3251
|
-
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((
|
|
3235
|
+
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((d = (p = window.DasMessage) == null ? void 0 : p.error) == null || d.call(p, { message: r, showClose: !0 }));
|
|
3252
3236
|
}
|
|
3253
3237
|
return { ...o, code: n, msg: r, error: t };
|
|
3254
3238
|
}, I = (t, e) => {
|
|
3255
3239
|
const n = R.create();
|
|
3256
|
-
return
|
|
3257
|
-
const o =
|
|
3240
|
+
return kn(n, async (r) => {
|
|
3241
|
+
const o = Br();
|
|
3258
3242
|
if (r.headers || (r.headers = {}), !(r != null && r.public)) {
|
|
3259
3243
|
let l = "";
|
|
3260
3244
|
if (o.token && (l = o.token), !l) {
|
|
3261
3245
|
const c = new URL(location.href).searchParams;
|
|
3262
3246
|
l = c.get("token") || c.get("accessToken") || c.get("accesstoken") || "";
|
|
3263
3247
|
}
|
|
3264
|
-
Dn ? l || (l = await qn(r)) : (l || (l = Qn()), l ||
|
|
3248
|
+
Dn ? l || (l = await qn(r)) : (l || (l = Qn()), l || Bn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3265
3249
|
}
|
|
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 =
|
|
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 = Dl), r.onError || (r.onError = Il), (r.csrf ?? !1) && (r.headers["csrf-token"] = $l.get("csrf-token"));
|
|
3267
3251
|
const s = r.params || {};
|
|
3268
3252
|
if (s.project === void 0) {
|
|
3269
3253
|
let l = 0;
|
|
@@ -3274,23 +3258,23 @@ const Vt = Ur(), Dn = Vt.sso ?? !0, Dl = Vt.i18n ?? !0, In = Vt.noRedireLogin ??
|
|
|
3274
3258
|
const { instanceInfo: l } = Kn();
|
|
3275
3259
|
l != null && l.instanceId && (s.instance = l.instanceId);
|
|
3276
3260
|
}
|
|
3277
|
-
return r.params = s, r.headers.Timezone =
|
|
3261
|
+
return r.params = s, r.headers.Timezone = Ut.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = Mn.value, r;
|
|
3278
3262
|
});
|
|
3279
|
-
},
|
|
3280
|
-
thingmodel: I(`/api/iot-device/thingmodel/${
|
|
3281
|
-
deviceManage: I(`/api/iot-device/devicemanage/${
|
|
3282
|
-
product: I(`/api/iot-device/product/${
|
|
3283
|
-
productStorage: I(`/api/iot-device/product-storage/${
|
|
3284
|
-
},
|
|
3285
|
-
projectDevice: I(`/api/device-relation/deviceproject/${
|
|
3286
|
-
deviceRules: I(`/api/device-relation/devicerule/${
|
|
3287
|
-
project: I(`/api/device-relation/project/${
|
|
3288
|
-
},
|
|
3263
|
+
}, B = "v1", cc = I(`/api/iot/${B}`), uc = {
|
|
3264
|
+
thingmodel: I(`/api/iot-device/thingmodel/${B}`),
|
|
3265
|
+
deviceManage: I(`/api/iot-device/devicemanage/${B}`),
|
|
3266
|
+
product: I(`/api/iot-device/product/${B}`),
|
|
3267
|
+
productStorage: I(`/api/iot-device/product-storage/${B}`)
|
|
3268
|
+
}, fc = {
|
|
3269
|
+
projectDevice: I(`/api/device-relation/deviceproject/${B}`),
|
|
3270
|
+
deviceRules: I(`/api/device-relation/devicerule/${B}`),
|
|
3271
|
+
project: I(`/api/device-relation/project/${B}`)
|
|
3272
|
+
}, pc = I(`/api/oss/minio/${B}`), dc = I(`/api/progress/accessor/${B}`), yc = I(`/api/dms/analysis/${B}`);
|
|
3289
3273
|
export {
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3274
|
+
yc as analyApi,
|
|
3275
|
+
cc as iot,
|
|
3276
|
+
pc as iotMinio,
|
|
3277
|
+
uc as iotModules,
|
|
3278
|
+
dc as iotProgress,
|
|
3279
|
+
fc as iotRelationModules
|
|
3296
3280
|
};
|