@das-fed/upf-utils 6.4.0-dev.243 → 6.4.0-dev.245
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-services/es5.js +952 -938
- package/api-services/index.js +732 -723
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +690 -676
- package/api-services/modules/app-manage/index.js +540 -531
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +690 -676
- package/api-services/modules/authentication/index.js +540 -531
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +705 -691
- package/api-services/modules/bems/index.js +555 -546
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +926 -909
- package/api-services/modules/contract/index.js +732 -719
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +708 -694
- package/api-services/modules/duty-manage/index.js +559 -550
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +1160 -1137
- package/api-services/modules/enterpriseright/index.js +969 -946
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1453 -1451
- package/api-services/modules/file/es5.js +1349 -1347
- package/api-services/modules/file/index.js +1101 -1110
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +690 -676
- package/api-services/modules/gateway-edge/index.js +540 -531
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1137 -1146
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +1155 -1153
- package/api-services/modules/iot/index.js +947 -956
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +1115 -1110
- package/api-services/modules/justauth/index.js +917 -922
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +1091 -1065
- package/api-services/modules/knowledge/index.js +919 -892
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +690 -676
- package/api-services/modules/link/index.js +540 -531
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +737 -723
- package/api-services/modules/permission/index.js +581 -572
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +755 -741
- package/api-services/modules/platformManage/index.js +590 -581
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +737 -723
- package/api-services/modules/portal/index.js +581 -572
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +1091 -1065
- package/api-services/modules/space-manage/index.js +919 -892
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +614 -603
- package/api-services/modules/super-admin/index.js +490 -485
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +1058 -1032
- package/api-services/modules/supplier/index.js +898 -871
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +737 -723
- package/api-services/modules/supplychain-manage/index.js +581 -572
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +1116 -1111
- package/api-services/modules/systemConfiguration/index.js +917 -922
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +579 -568
- package/api-services/modules/tool/index.js +475 -470
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +1160 -1137
- package/api-services/src/create-service/index.js +969 -946
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +734 -720
- package/common-info/getPermissionMethod/es5.js +705 -691
- package/common-info/getPermissionMethod/index.js +544 -535
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.js +569 -560
- package/common-info/index.js.gz +0 -0
- package/common-tools/timezone-format/es5.d.ts +107 -3
- package/common-tools/timezone-format/es5.js +751 -101
- package/common-tools/timezone-format/get-iana-data/dayjs-timezone-iana-plugin.d.ts +72 -0
- package/common-tools/timezone-format/get-iana-data/iana-api-fetch.d.ts +21 -0
- package/common-tools/timezone-format/get-iana-data/moment-iana-loader.d.ts +29 -0
- package/common-tools/timezone-format/index.d.ts +107 -3
- package/common-tools/timezone-format/index.js +392 -62
- package/common-tools/timezone-format/index.js.gz +0 -0
- package/create-api-service/es5.js +736 -722
- package/create-api-service/index.js +581 -572
- package/create-api-service/index.js.gz +0 -0
- package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.d.ts +29 -0
- package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.js +19868 -0
- package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.js.gz +0 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/index.d.ts +55 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/index.js +116 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/index.js.gz +0 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-event-listener.d.ts +104 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-event-listener.js +17 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index.d.ts +8 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index.js +51 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index.js.gz +0 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/create-canvas.d.ts +5 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/create-canvas.js +14 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/find.d.ts +7 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/find.js +5 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/guideline.d.ts +5 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/guideline.js +180 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/guideline.js.gz +0 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.d.ts +4 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.js +7535 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.js.gz +0 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/load-json.d.ts +6 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/load-json.js +13 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/remove-object.d.ts +6 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/remove-object.js +7 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/rule.d.ts +8 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/rule.js +193 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/rule.js.gz +0 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/transform-axis.d.ts +11 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/transform-axis.js +20 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/transformer.d.ts +5 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/transformer.js +52 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/transformer.js.gz +0 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/wheel-zoom.d.ts +4 -0
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/wheel-zoom.js +14 -0
- package/dimple-canvas/use-dimple-canvas/es5.d.ts +9 -0
- package/dimple-canvas/use-dimple-canvas/es5.js +20 -0
- package/dimple-canvas/use-dimple-canvas/index.d.ts +9 -0
- package/dimple-canvas/use-dimple-canvas/index.js +10 -0
- package/esm-map.json +33 -1
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +3 -3
- package/theme/es5.d.ts +20 -1
- package/theme/es5.js +614 -303
- package/theme/index.d.ts +20 -1
- package/theme/index.js +523 -276
- package/theme/index.js.gz +0 -0
package/common-info/index.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { getConfig as Ce } from "@das-fed/upf-utils/config";
|
|
2
|
-
import { getAccessToken as
|
|
3
|
-
import { getTokenFromQuery as
|
|
4
|
-
import { curringHttp as
|
|
5
|
-
import { getI18nBridge as
|
|
6
|
-
import { getToken as
|
|
2
|
+
import { getAccessToken as sn } from "@das-fed/upf-utils/token-tools";
|
|
3
|
+
import { getTokenFromQuery as fo, getProjectInfoFromQuery as po } from "@das-fed/upf-utils/common-info/getInfoFromUrl";
|
|
4
|
+
import { curringHttp as yo } from "@das-fed/upf-utils/curring-http";
|
|
5
|
+
import { getI18nBridge as cn } from "@das-fed/upf-utils/i18n-bridge";
|
|
6
|
+
import { getToken as ho, getQuery as mo, login as go, getTokenParams as vo, real_uri as So } from "@das-fed/upf-utils/create-api-service/sso";
|
|
7
7
|
import Pe from "dayjs";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { getProjectInfo as
|
|
11
|
-
import { applyRefreshedToken as
|
|
12
|
-
import { getValidAccessToken as
|
|
13
|
-
function
|
|
8
|
+
import wo from "dayjs/plugin/utc";
|
|
9
|
+
import bo from "dayjs/plugin/timezone";
|
|
10
|
+
import { getProjectInfo as Eo, getInstanceInfo as Oo } from "@das-fed/upf-utils/common-info";
|
|
11
|
+
import { applyRefreshedToken as Ao } from "@das-fed/upf-utils/create-api-service/access-token-auto-refresh";
|
|
12
|
+
import { getValidAccessToken as Ro } from "@das-fed/upf-utils/create-api-service/check-token";
|
|
13
|
+
function ln(e, t) {
|
|
14
14
|
return function() {
|
|
15
15
|
return e.apply(t, arguments);
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
const { toString:
|
|
19
|
-
const r =
|
|
18
|
+
const { toString: Po } = Object.prototype, { getPrototypeOf: Wt } = Object, { iterator: Xe, toStringTag: un } = Symbol, Ye = /* @__PURE__ */ ((e) => (t) => {
|
|
19
|
+
const r = Po.call(t);
|
|
20
20
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
21
21
|
})(/* @__PURE__ */ Object.create(null)), j = (e) => (e = e.toLowerCase(), (t) => Ye(t) === e), et = (e) => (t) => typeof t === e, { isArray: he } = Array, pe = et("undefined");
|
|
22
22
|
function Te(e) {
|
|
23
23
|
return e !== null && !pe(e) && e.constructor !== null && !pe(e.constructor) && D(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
24
24
|
}
|
|
25
|
-
const
|
|
26
|
-
function
|
|
25
|
+
const fn = j("ArrayBuffer");
|
|
26
|
+
function Io(e) {
|
|
27
27
|
let t;
|
|
28
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
28
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && fn(e.buffer), t;
|
|
29
29
|
}
|
|
30
|
-
const
|
|
30
|
+
const Co = et("string"), D = et("function"), pn = et("number"), Ne = (e) => e !== null && typeof e == "object", To = (e) => e === !0 || e === !1, je = (e) => {
|
|
31
31
|
if (Ye(e) !== "object")
|
|
32
32
|
return !1;
|
|
33
33
|
const t = Wt(e);
|
|
34
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
35
|
-
},
|
|
34
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(un in e) && !(Xe in e);
|
|
35
|
+
}, No = (e) => {
|
|
36
36
|
if (!Ne(e) || Te(e))
|
|
37
37
|
return !1;
|
|
38
38
|
try {
|
|
@@ -40,11 +40,11 @@ const Po = et("string"), D = et("function"), fn = et("number"), Ne = (e) => e !=
|
|
|
40
40
|
} catch {
|
|
41
41
|
return !1;
|
|
42
42
|
}
|
|
43
|
-
},
|
|
43
|
+
}, xo = j("Date"), Fo = j("File"), _o = j("Blob"), Do = j("FileList"), $o = (e) => Ne(e) && D(e.pipe), Lo = (e) => {
|
|
44
44
|
let t;
|
|
45
45
|
return e && (typeof FormData == "function" && e instanceof FormData || D(e.append) && ((t = Ye(e)) === "formdata" || // detect form-data instance
|
|
46
46
|
t === "object" && D(e.toString) && e.toString() === "[object FormData]"));
|
|
47
|
-
},
|
|
47
|
+
}, Uo = j("URLSearchParams"), [Mo, Bo, ko, jo] = ["ReadableStream", "Request", "Response", "Headers"].map(j), qo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
48
48
|
function xe(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
49
49
|
if (e === null || typeof e > "u")
|
|
50
50
|
return;
|
|
@@ -61,7 +61,7 @@ function xe(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
|
61
61
|
s = a[n], t.call(null, e[s], s, e);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function dn(e, t) {
|
|
65
65
|
if (Te(e))
|
|
66
66
|
return null;
|
|
67
67
|
t = t.toLowerCase();
|
|
@@ -72,23 +72,23 @@ function pn(e, t) {
|
|
|
72
72
|
return o;
|
|
73
73
|
return null;
|
|
74
74
|
}
|
|
75
|
-
const ee = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
75
|
+
const ee = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, yn = (e) => !pe(e) && e !== ee;
|
|
76
76
|
function Dt() {
|
|
77
|
-
const { caseless: e, skipUndefined: t } =
|
|
78
|
-
const i = e &&
|
|
77
|
+
const { caseless: e, skipUndefined: t } = yn(this) && this || {}, r = {}, n = (o, a) => {
|
|
78
|
+
const i = e && dn(r, a) || a;
|
|
79
79
|
je(r[i]) && je(o) ? r[i] = Dt(r[i], o) : je(o) ? r[i] = Dt({}, o) : he(o) ? r[i] = o.slice() : (!t || !pe(o)) && (r[i] = o);
|
|
80
80
|
};
|
|
81
81
|
for (let o = 0, a = arguments.length; o < a; o++)
|
|
82
82
|
arguments[o] && xe(arguments[o], n);
|
|
83
83
|
return r;
|
|
84
84
|
}
|
|
85
|
-
const
|
|
86
|
-
r && D(o) ? e[a] =
|
|
87
|
-
}, { allOwnKeys: n }), e),
|
|
85
|
+
const zo = (e, t, r, { allOwnKeys: n } = {}) => (xe(t, (o, a) => {
|
|
86
|
+
r && D(o) ? e[a] = ln(o, r) : e[a] = o;
|
|
87
|
+
}, { allOwnKeys: n }), e), Ho = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Wo = (e, t, r, n) => {
|
|
88
88
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
89
89
|
value: t.prototype
|
|
90
90
|
}), r && Object.assign(e.prototype, r);
|
|
91
|
-
},
|
|
91
|
+
}, Jo = (e, t, r, n) => {
|
|
92
92
|
let o, a, i;
|
|
93
93
|
const s = {};
|
|
94
94
|
if (t = t || {}, e == null) return t;
|
|
@@ -98,45 +98,45 @@ const jo = (e, t, r, { allOwnKeys: n } = {}) => (xe(t, (o, a) => {
|
|
|
98
98
|
e = r !== !1 && Wt(e);
|
|
99
99
|
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
100
100
|
return t;
|
|
101
|
-
},
|
|
101
|
+
}, Go = (e, t, r) => {
|
|
102
102
|
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
103
103
|
const n = e.indexOf(t, r);
|
|
104
104
|
return n !== -1 && n === r;
|
|
105
|
-
},
|
|
105
|
+
}, Vo = (e) => {
|
|
106
106
|
if (!e) return null;
|
|
107
107
|
if (he(e)) return e;
|
|
108
108
|
let t = e.length;
|
|
109
|
-
if (!
|
|
109
|
+
if (!pn(t)) return null;
|
|
110
110
|
const r = new Array(t);
|
|
111
111
|
for (; t-- > 0; )
|
|
112
112
|
r[t] = e[t];
|
|
113
113
|
return r;
|
|
114
|
-
},
|
|
115
|
-
const n = (e && e[
|
|
114
|
+
}, Ko = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Wt(Uint8Array)), Qo = (e, t) => {
|
|
115
|
+
const n = (e && e[Xe]).call(e);
|
|
116
116
|
let o;
|
|
117
117
|
for (; (o = n.next()) && !o.done; ) {
|
|
118
118
|
const a = o.value;
|
|
119
119
|
t.call(e, a[0], a[1]);
|
|
120
120
|
}
|
|
121
|
-
},
|
|
121
|
+
}, Zo = (e, t) => {
|
|
122
122
|
let r;
|
|
123
123
|
const n = [];
|
|
124
124
|
for (; (r = e.exec(t)) !== null; )
|
|
125
125
|
n.push(r);
|
|
126
126
|
return n;
|
|
127
|
-
},
|
|
127
|
+
}, Xo = j("HTMLFormElement"), Yo = (e) => e.toLowerCase().replace(
|
|
128
128
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
129
129
|
function(r, n, o) {
|
|
130
130
|
return n.toUpperCase() + o;
|
|
131
131
|
}
|
|
132
|
-
), or = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype),
|
|
132
|
+
), or = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), ea = j("RegExp"), hn = (e, t) => {
|
|
133
133
|
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
134
134
|
xe(r, (o, a) => {
|
|
135
135
|
let i;
|
|
136
136
|
(i = t(o, a, e)) !== !1 && (n[a] = i || o);
|
|
137
137
|
}), Object.defineProperties(e, n);
|
|
138
|
-
},
|
|
139
|
-
|
|
138
|
+
}, ta = (e) => {
|
|
139
|
+
hn(e, (t, r) => {
|
|
140
140
|
if (D(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
141
141
|
return !1;
|
|
142
142
|
const n = e[r];
|
|
@@ -150,19 +150,19 @@ const jo = (e, t, r, { allOwnKeys: n } = {}) => (xe(t, (o, a) => {
|
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
|
-
},
|
|
153
|
+
}, ra = (e, t) => {
|
|
154
154
|
const r = {}, n = (o) => {
|
|
155
155
|
o.forEach((a) => {
|
|
156
156
|
r[a] = !0;
|
|
157
157
|
});
|
|
158
158
|
};
|
|
159
159
|
return he(e) ? n(e) : n(String(e).split(t)), r;
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
function
|
|
163
|
-
return !!(e && D(e.append) && e[
|
|
160
|
+
}, na = () => {
|
|
161
|
+
}, oa = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
162
|
+
function aa(e) {
|
|
163
|
+
return !!(e && D(e.append) && e[un] === "FormData" && e[Xe]);
|
|
164
164
|
}
|
|
165
|
-
const
|
|
165
|
+
const ia = (e) => {
|
|
166
166
|
const t = new Array(10), r = (n, o) => {
|
|
167
167
|
if (Ne(n)) {
|
|
168
168
|
if (t.indexOf(n) >= 0)
|
|
@@ -181,72 +181,72 @@ const oa = (e) => {
|
|
|
181
181
|
return n;
|
|
182
182
|
};
|
|
183
183
|
return r(e, 0);
|
|
184
|
-
},
|
|
184
|
+
}, sa = j("AsyncFunction"), ca = (e) => e && (Ne(e) || D(e)) && D(e.then) && D(e.catch), mn = ((e, t) => e ? setImmediate : t ? ((r, n) => (ee.addEventListener("message", ({ source: o, data: a }) => {
|
|
185
185
|
o === ee && a === r && n.length && n.shift()();
|
|
186
186
|
}, !1), (o) => {
|
|
187
187
|
n.push(o), ee.postMessage(r, "*");
|
|
188
188
|
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
189
189
|
typeof setImmediate == "function",
|
|
190
190
|
D(ee.postMessage)
|
|
191
|
-
),
|
|
191
|
+
), la = typeof queueMicrotask < "u" ? queueMicrotask.bind(ee) : typeof process < "u" && process.nextTick || mn, ua = (e) => e != null && D(e[Xe]), p = {
|
|
192
192
|
isArray: he,
|
|
193
|
-
isArrayBuffer:
|
|
193
|
+
isArrayBuffer: fn,
|
|
194
194
|
isBuffer: Te,
|
|
195
|
-
isFormData:
|
|
196
|
-
isArrayBufferView:
|
|
197
|
-
isString:
|
|
198
|
-
isNumber:
|
|
199
|
-
isBoolean:
|
|
195
|
+
isFormData: Lo,
|
|
196
|
+
isArrayBufferView: Io,
|
|
197
|
+
isString: Co,
|
|
198
|
+
isNumber: pn,
|
|
199
|
+
isBoolean: To,
|
|
200
200
|
isObject: Ne,
|
|
201
201
|
isPlainObject: je,
|
|
202
|
-
isEmptyObject:
|
|
203
|
-
isReadableStream:
|
|
204
|
-
isRequest:
|
|
205
|
-
isResponse:
|
|
206
|
-
isHeaders:
|
|
202
|
+
isEmptyObject: No,
|
|
203
|
+
isReadableStream: Mo,
|
|
204
|
+
isRequest: Bo,
|
|
205
|
+
isResponse: ko,
|
|
206
|
+
isHeaders: jo,
|
|
207
207
|
isUndefined: pe,
|
|
208
|
-
isDate:
|
|
209
|
-
isFile:
|
|
210
|
-
isBlob:
|
|
211
|
-
isRegExp:
|
|
208
|
+
isDate: xo,
|
|
209
|
+
isFile: Fo,
|
|
210
|
+
isBlob: _o,
|
|
211
|
+
isRegExp: ea,
|
|
212
212
|
isFunction: D,
|
|
213
|
-
isStream:
|
|
214
|
-
isURLSearchParams:
|
|
215
|
-
isTypedArray:
|
|
216
|
-
isFileList:
|
|
213
|
+
isStream: $o,
|
|
214
|
+
isURLSearchParams: Uo,
|
|
215
|
+
isTypedArray: Ko,
|
|
216
|
+
isFileList: Do,
|
|
217
217
|
forEach: xe,
|
|
218
218
|
merge: Dt,
|
|
219
|
-
extend:
|
|
220
|
-
trim:
|
|
221
|
-
stripBOM:
|
|
222
|
-
inherits:
|
|
223
|
-
toFlatObject:
|
|
219
|
+
extend: zo,
|
|
220
|
+
trim: qo,
|
|
221
|
+
stripBOM: Ho,
|
|
222
|
+
inherits: Wo,
|
|
223
|
+
toFlatObject: Jo,
|
|
224
224
|
kindOf: Ye,
|
|
225
225
|
kindOfTest: j,
|
|
226
|
-
endsWith:
|
|
227
|
-
toArray:
|
|
228
|
-
forEachEntry:
|
|
229
|
-
matchAll:
|
|
230
|
-
isHTMLForm:
|
|
226
|
+
endsWith: Go,
|
|
227
|
+
toArray: Vo,
|
|
228
|
+
forEachEntry: Qo,
|
|
229
|
+
matchAll: Zo,
|
|
230
|
+
isHTMLForm: Xo,
|
|
231
231
|
hasOwnProperty: or,
|
|
232
232
|
hasOwnProp: or,
|
|
233
233
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
234
|
-
reduceDescriptors:
|
|
235
|
-
freezeMethods:
|
|
236
|
-
toObjectSet:
|
|
237
|
-
toCamelCase:
|
|
238
|
-
noop:
|
|
239
|
-
toFiniteNumber:
|
|
240
|
-
findKey:
|
|
234
|
+
reduceDescriptors: hn,
|
|
235
|
+
freezeMethods: ta,
|
|
236
|
+
toObjectSet: ra,
|
|
237
|
+
toCamelCase: Yo,
|
|
238
|
+
noop: na,
|
|
239
|
+
toFiniteNumber: oa,
|
|
240
|
+
findKey: dn,
|
|
241
241
|
global: ee,
|
|
242
|
-
isContextDefined:
|
|
243
|
-
isSpecCompliantForm:
|
|
244
|
-
toJSONObject:
|
|
245
|
-
isAsyncFn:
|
|
246
|
-
isThenable:
|
|
247
|
-
setImmediate:
|
|
248
|
-
asap:
|
|
249
|
-
isIterable:
|
|
242
|
+
isContextDefined: yn,
|
|
243
|
+
isSpecCompliantForm: aa,
|
|
244
|
+
toJSONObject: ia,
|
|
245
|
+
isAsyncFn: sa,
|
|
246
|
+
isThenable: ca,
|
|
247
|
+
setImmediate: mn,
|
|
248
|
+
asap: la,
|
|
249
|
+
isIterable: ua
|
|
250
250
|
};
|
|
251
251
|
function S(e, t, r, n, o) {
|
|
252
252
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
@@ -272,7 +272,7 @@ p.inherits(S, Error, {
|
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
|
-
const
|
|
275
|
+
const gn = S.prototype, vn = {};
|
|
276
276
|
[
|
|
277
277
|
"ERR_BAD_OPTION_VALUE",
|
|
278
278
|
"ERR_BAD_OPTION",
|
|
@@ -288,34 +288,34 @@ const mn = S.prototype, gn = {};
|
|
|
288
288
|
"ERR_INVALID_URL"
|
|
289
289
|
// eslint-disable-next-line func-names
|
|
290
290
|
].forEach((e) => {
|
|
291
|
-
|
|
291
|
+
vn[e] = { value: e };
|
|
292
292
|
});
|
|
293
|
-
Object.defineProperties(S,
|
|
294
|
-
Object.defineProperty(
|
|
293
|
+
Object.defineProperties(S, vn);
|
|
294
|
+
Object.defineProperty(gn, "isAxiosError", { value: !0 });
|
|
295
295
|
S.from = (e, t, r, n, o, a) => {
|
|
296
|
-
const i = Object.create(
|
|
296
|
+
const i = Object.create(gn);
|
|
297
297
|
p.toFlatObject(e, i, function(l) {
|
|
298
298
|
return l !== Error.prototype;
|
|
299
299
|
}, (u) => u !== "isAxiosError");
|
|
300
300
|
const s = e && e.message ? e.message : "Error", c = t == null && e ? e.code : t;
|
|
301
301
|
return S.call(i, s, c, r, n, o), e && i.cause == null && Object.defineProperty(i, "cause", { value: e, configurable: !0 }), i.name = e && e.name || "Error", a && Object.assign(i, a), i;
|
|
302
302
|
};
|
|
303
|
-
const
|
|
303
|
+
const fa = null;
|
|
304
304
|
function $t(e) {
|
|
305
305
|
return p.isPlainObject(e) || p.isArray(e);
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function Sn(e) {
|
|
308
308
|
return p.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
309
309
|
}
|
|
310
310
|
function ar(e, t, r) {
|
|
311
311
|
return e ? e.concat(t).map(function(o, a) {
|
|
312
|
-
return o =
|
|
312
|
+
return o = Sn(o), !r && a ? "[" + o + "]" : o;
|
|
313
313
|
}).join(r ? "." : "") : t;
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function pa(e) {
|
|
316
316
|
return p.isArray(e) && !e.some($t);
|
|
317
317
|
}
|
|
318
|
-
const
|
|
318
|
+
const da = p.toFlatObject(p, {}, null, function(t) {
|
|
319
319
|
return /^is[A-Z]/.test(t);
|
|
320
320
|
});
|
|
321
321
|
function tt(e, t, r) {
|
|
@@ -346,8 +346,8 @@ function tt(e, t, r) {
|
|
|
346
346
|
if (y && !h && typeof y == "object") {
|
|
347
347
|
if (p.endsWith(m, "{}"))
|
|
348
348
|
m = n ? m : m.slice(0, -2), y = JSON.stringify(y);
|
|
349
|
-
else if (p.isArray(y) &&
|
|
350
|
-
return m =
|
|
349
|
+
else if (p.isArray(y) && pa(y) || (p.isFileList(y) || p.endsWith(m, "[]")) && (w = p.toArray(y)))
|
|
350
|
+
return m = Sn(m), w.forEach(function(g, E) {
|
|
351
351
|
!(p.isUndefined(g) || g === null) && t.append(
|
|
352
352
|
// eslint-disable-next-line no-nested-ternary
|
|
353
353
|
i === !0 ? ar([m], E, a) : i === null ? m : m + "[]",
|
|
@@ -357,7 +357,7 @@ function tt(e, t, r) {
|
|
|
357
357
|
}
|
|
358
358
|
return $t(y) ? !0 : (t.append(ar(h, m, a), u(y)), !1);
|
|
359
359
|
}
|
|
360
|
-
const f = [], d = Object.assign(
|
|
360
|
+
const f = [], d = Object.assign(da, {
|
|
361
361
|
defaultVisitor: l,
|
|
362
362
|
convertValue: u,
|
|
363
363
|
isVisitable: $t
|
|
@@ -398,11 +398,11 @@ function ir(e) {
|
|
|
398
398
|
function Jt(e, t) {
|
|
399
399
|
this._pairs = [], e && tt(e, this, t);
|
|
400
400
|
}
|
|
401
|
-
const
|
|
402
|
-
|
|
401
|
+
const wn = Jt.prototype;
|
|
402
|
+
wn.append = function(t, r) {
|
|
403
403
|
this._pairs.push([t, r]);
|
|
404
404
|
};
|
|
405
|
-
|
|
405
|
+
wn.toString = function(t) {
|
|
406
406
|
const r = t ? function(n) {
|
|
407
407
|
return t.call(this, n, ir);
|
|
408
408
|
} : ir;
|
|
@@ -410,13 +410,13 @@ Sn.toString = function(t) {
|
|
|
410
410
|
return r(o[0]) + "=" + r(o[1]);
|
|
411
411
|
}, "").join("&");
|
|
412
412
|
};
|
|
413
|
-
function
|
|
413
|
+
function ya(e) {
|
|
414
414
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function bn(e, t, r) {
|
|
417
417
|
if (!t)
|
|
418
418
|
return e;
|
|
419
|
-
const n = r && r.encode ||
|
|
419
|
+
const n = r && r.encode || ya;
|
|
420
420
|
p.isFunction(r) && (r = {
|
|
421
421
|
serialize: r
|
|
422
422
|
});
|
|
@@ -482,31 +482,31 @@ class sr {
|
|
|
482
482
|
});
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
const
|
|
485
|
+
const En = {
|
|
486
486
|
silentJSONParsing: !0,
|
|
487
487
|
forcedJSONParsing: !0,
|
|
488
488
|
clarifyTimeoutError: !1
|
|
489
|
-
},
|
|
489
|
+
}, ha = typeof URLSearchParams < "u" ? URLSearchParams : Jt, ma = typeof FormData < "u" ? FormData : null, ga = typeof Blob < "u" ? Blob : null, va = {
|
|
490
490
|
isBrowser: !0,
|
|
491
491
|
classes: {
|
|
492
|
-
URLSearchParams:
|
|
493
|
-
FormData:
|
|
494
|
-
Blob:
|
|
492
|
+
URLSearchParams: ha,
|
|
493
|
+
FormData: ma,
|
|
494
|
+
Blob: ga
|
|
495
495
|
},
|
|
496
496
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
497
|
-
}, Gt = typeof window < "u" && typeof document < "u", Lt = typeof navigator == "object" && navigator || void 0,
|
|
498
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
497
|
+
}, Gt = typeof window < "u" && typeof document < "u", Lt = typeof navigator == "object" && navigator || void 0, Sa = Gt && (!Lt || ["ReactNative", "NativeScript", "NS"].indexOf(Lt.product) < 0), wa = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
498
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ba = Gt && window.location.href || "http://localhost", Ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
499
499
|
__proto__: null,
|
|
500
500
|
hasBrowserEnv: Gt,
|
|
501
|
-
hasStandardBrowserEnv:
|
|
502
|
-
hasStandardBrowserWebWorkerEnv:
|
|
501
|
+
hasStandardBrowserEnv: Sa,
|
|
502
|
+
hasStandardBrowserWebWorkerEnv: wa,
|
|
503
503
|
navigator: Lt,
|
|
504
|
-
origin:
|
|
504
|
+
origin: ba
|
|
505
505
|
}, Symbol.toStringTag, { value: "Module" })), _ = {
|
|
506
|
-
...
|
|
507
|
-
...
|
|
506
|
+
...Ea,
|
|
507
|
+
...va
|
|
508
508
|
};
|
|
509
|
-
function
|
|
509
|
+
function Oa(e, t) {
|
|
510
510
|
return tt(e, new _.classes.URLSearchParams(), {
|
|
511
511
|
visitor: function(r, n, o, a) {
|
|
512
512
|
return _.isNode && p.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
@@ -514,10 +514,10 @@ function ba(e, t) {
|
|
|
514
514
|
...t
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function Aa(e) {
|
|
518
518
|
return p.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Ra(e) {
|
|
521
521
|
const t = {}, r = Object.keys(e);
|
|
522
522
|
let n;
|
|
523
523
|
const o = r.length;
|
|
@@ -526,22 +526,22 @@ function Oa(e) {
|
|
|
526
526
|
a = r[n], t[a] = e[a];
|
|
527
527
|
return t;
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function On(e) {
|
|
530
530
|
function t(r, n, o, a) {
|
|
531
531
|
let i = r[a++];
|
|
532
532
|
if (i === "__proto__") return !0;
|
|
533
533
|
const s = Number.isFinite(+i), c = a >= r.length;
|
|
534
|
-
return i = !i && p.isArray(o) ? o.length : i, c ? (p.hasOwnProp(o, i) ? o[i] = [o[i], n] : o[i] = n, !s) : ((!o[i] || !p.isObject(o[i])) && (o[i] = []), t(r, n, o[i], a) && p.isArray(o[i]) && (o[i] =
|
|
534
|
+
return i = !i && p.isArray(o) ? o.length : i, c ? (p.hasOwnProp(o, i) ? o[i] = [o[i], n] : o[i] = n, !s) : ((!o[i] || !p.isObject(o[i])) && (o[i] = []), t(r, n, o[i], a) && p.isArray(o[i]) && (o[i] = Ra(o[i])), !s);
|
|
535
535
|
}
|
|
536
536
|
if (p.isFormData(e) && p.isFunction(e.entries)) {
|
|
537
537
|
const r = {};
|
|
538
538
|
return p.forEachEntry(e, (n, o) => {
|
|
539
|
-
t(
|
|
539
|
+
t(Aa(n), o, r, 0);
|
|
540
540
|
}), r;
|
|
541
541
|
}
|
|
542
542
|
return null;
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function Pa(e, t, r) {
|
|
545
545
|
if (p.isString(e))
|
|
546
546
|
try {
|
|
547
547
|
return (t || JSON.parse)(e), p.trim(e);
|
|
@@ -552,12 +552,12 @@ function Aa(e, t, r) {
|
|
|
552
552
|
return (r || JSON.stringify)(e);
|
|
553
553
|
}
|
|
554
554
|
const Fe = {
|
|
555
|
-
transitional:
|
|
555
|
+
transitional: En,
|
|
556
556
|
adapter: ["xhr", "http", "fetch"],
|
|
557
557
|
transformRequest: [function(t, r) {
|
|
558
558
|
const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, a = p.isObject(t);
|
|
559
559
|
if (a && p.isHTMLForm(t) && (t = new FormData(t)), p.isFormData(t))
|
|
560
|
-
return o ? JSON.stringify(
|
|
560
|
+
return o ? JSON.stringify(On(t)) : t;
|
|
561
561
|
if (p.isArrayBuffer(t) || p.isBuffer(t) || p.isStream(t) || p.isFile(t) || p.isBlob(t) || p.isReadableStream(t))
|
|
562
562
|
return t;
|
|
563
563
|
if (p.isArrayBufferView(t))
|
|
@@ -567,7 +567,7 @@ const Fe = {
|
|
|
567
567
|
let s;
|
|
568
568
|
if (a) {
|
|
569
569
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
570
|
-
return
|
|
570
|
+
return Oa(t, this.formSerializer).toString();
|
|
571
571
|
if ((s = p.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
572
572
|
const c = this.env && this.env.FormData;
|
|
573
573
|
return tt(
|
|
@@ -577,7 +577,7 @@ const Fe = {
|
|
|
577
577
|
);
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
return a || o ? (r.setContentType("application/json", !1),
|
|
580
|
+
return a || o ? (r.setContentType("application/json", !1), Pa(t)) : t;
|
|
581
581
|
}],
|
|
582
582
|
transformResponse: [function(t) {
|
|
583
583
|
const r = this.transitional || Fe.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
|
|
@@ -620,7 +620,7 @@ const Fe = {
|
|
|
620
620
|
p.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
621
621
|
Fe.headers[e] = {};
|
|
622
622
|
});
|
|
623
|
-
const
|
|
623
|
+
const Ia = p.toObjectSet([
|
|
624
624
|
"age",
|
|
625
625
|
"authorization",
|
|
626
626
|
"content-length",
|
|
@@ -638,12 +638,12 @@ const Ra = p.toObjectSet([
|
|
|
638
638
|
"referer",
|
|
639
639
|
"retry-after",
|
|
640
640
|
"user-agent"
|
|
641
|
-
]),
|
|
641
|
+
]), Ca = (e) => {
|
|
642
642
|
const t = {};
|
|
643
643
|
let r, n, o;
|
|
644
644
|
return e && e.split(`
|
|
645
645
|
`).forEach(function(i) {
|
|
646
|
-
o = i.indexOf(":"), r = i.substring(0, o).trim().toLowerCase(), n = i.substring(o + 1).trim(), !(!r || t[r] &&
|
|
646
|
+
o = i.indexOf(":"), r = i.substring(0, o).trim().toLowerCase(), n = i.substring(o + 1).trim(), !(!r || t[r] && Ia[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
|
|
647
647
|
}), t;
|
|
648
648
|
}, cr = Symbol("internals");
|
|
649
649
|
function we(e) {
|
|
@@ -652,14 +652,14 @@ function we(e) {
|
|
|
652
652
|
function qe(e) {
|
|
653
653
|
return e === !1 || e == null ? e : p.isArray(e) ? e.map(qe) : String(e);
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function Ta(e) {
|
|
656
656
|
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
657
657
|
let n;
|
|
658
658
|
for (; n = r.exec(e); )
|
|
659
659
|
t[n[1]] = n[2];
|
|
660
660
|
return t;
|
|
661
661
|
}
|
|
662
|
-
const
|
|
662
|
+
const Na = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
663
663
|
function ct(e, t, r, n, o) {
|
|
664
664
|
if (p.isFunction(n))
|
|
665
665
|
return n.call(this, t, r);
|
|
@@ -670,10 +670,10 @@ function ct(e, t, r, n, o) {
|
|
|
670
670
|
return n.test(t);
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function xa(e) {
|
|
674
674
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function Fa(e, t) {
|
|
677
677
|
const r = p.toCamelCase(" " + t);
|
|
678
678
|
["get", "set", "has"].forEach((n) => {
|
|
679
679
|
Object.defineProperty(e, n + r, {
|
|
@@ -700,8 +700,8 @@ class $ {
|
|
|
700
700
|
const i = (s, c) => p.forEach(s, (u, l) => a(u, l, c));
|
|
701
701
|
if (p.isPlainObject(t) || t instanceof this.constructor)
|
|
702
702
|
i(t, r);
|
|
703
|
-
else if (p.isString(t) && (t = t.trim()) && !
|
|
704
|
-
i(
|
|
703
|
+
else if (p.isString(t) && (t = t.trim()) && !Na(t))
|
|
704
|
+
i(Ca(t), r);
|
|
705
705
|
else if (p.isObject(t) && p.isIterable(t)) {
|
|
706
706
|
let s = {}, c, u;
|
|
707
707
|
for (const l of t) {
|
|
@@ -722,7 +722,7 @@ class $ {
|
|
|
722
722
|
if (!r)
|
|
723
723
|
return o;
|
|
724
724
|
if (r === !0)
|
|
725
|
-
return
|
|
725
|
+
return Ta(o);
|
|
726
726
|
if (p.isFunction(r))
|
|
727
727
|
return r.call(this, o, n);
|
|
728
728
|
if (p.isRegExp(r))
|
|
@@ -766,7 +766,7 @@ class $ {
|
|
|
766
766
|
r[i] = qe(o), delete r[a];
|
|
767
767
|
return;
|
|
768
768
|
}
|
|
769
|
-
const s = t ?
|
|
769
|
+
const s = t ? xa(a) : String(a).trim();
|
|
770
770
|
s !== a && delete r[a], r[s] = qe(o), n[s] = !0;
|
|
771
771
|
}), this;
|
|
772
772
|
}
|
|
@@ -805,7 +805,7 @@ class $ {
|
|
|
805
805
|
}).accessors, o = this.prototype;
|
|
806
806
|
function a(i) {
|
|
807
807
|
const s = we(i);
|
|
808
|
-
n[s] || (
|
|
808
|
+
n[s] || (Fa(o, i), n[s] = !0);
|
|
809
809
|
}
|
|
810
810
|
return p.isArray(t) ? t.forEach(a) : a(t), this;
|
|
811
811
|
}
|
|
@@ -828,7 +828,7 @@ function lt(e, t) {
|
|
|
828
828
|
a = s.call(r, a, o.normalize(), t ? t.status : void 0);
|
|
829
829
|
}), o.normalize(), a;
|
|
830
830
|
}
|
|
831
|
-
function
|
|
831
|
+
function An(e) {
|
|
832
832
|
return !!(e && e.__CANCEL__);
|
|
833
833
|
}
|
|
834
834
|
function me(e, t, r) {
|
|
@@ -837,7 +837,7 @@ function me(e, t, r) {
|
|
|
837
837
|
p.inherits(me, S, {
|
|
838
838
|
__CANCEL__: !0
|
|
839
839
|
});
|
|
840
|
-
function
|
|
840
|
+
function Rn(e, t, r) {
|
|
841
841
|
const n = r.config.validateStatus;
|
|
842
842
|
!r.status || !n || n(r.status) ? e(r) : t(new S(
|
|
843
843
|
"Request failed with status code " + r.status,
|
|
@@ -847,11 +847,11 @@ function An(e, t, r) {
|
|
|
847
847
|
r
|
|
848
848
|
));
|
|
849
849
|
}
|
|
850
|
-
function
|
|
850
|
+
function _a(e) {
|
|
851
851
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
852
852
|
return t && t[1] || "";
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function Da(e, t) {
|
|
855
855
|
e = e || 10;
|
|
856
856
|
const r = new Array(e), n = new Array(e);
|
|
857
857
|
let o = 0, a = 0, i;
|
|
@@ -867,7 +867,7 @@ function Fa(e, t) {
|
|
|
867
867
|
return v ? Math.round(d * 1e3 / v) : void 0;
|
|
868
868
|
};
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function $a(e, t) {
|
|
871
871
|
let r = 0, n = 1e3 / t, o, a;
|
|
872
872
|
const i = (u, l = Date.now()) => {
|
|
873
873
|
r = l, o = null, a && (clearTimeout(a), a = null), e(...u);
|
|
@@ -881,8 +881,8 @@ function _a(e, t) {
|
|
|
881
881
|
}
|
|
882
882
|
const Ge = (e, t, r = 3) => {
|
|
883
883
|
let n = 0;
|
|
884
|
-
const o =
|
|
885
|
-
return
|
|
884
|
+
const o = Da(50, 250);
|
|
885
|
+
return $a((a) => {
|
|
886
886
|
const i = a.loaded, s = a.lengthComputable ? a.total : void 0, c = i - n, u = o(c), l = i <= s;
|
|
887
887
|
n = i;
|
|
888
888
|
const f = {
|
|
@@ -905,10 +905,10 @@ const Ge = (e, t, r = 3) => {
|
|
|
905
905
|
total: e,
|
|
906
906
|
loaded: n
|
|
907
907
|
}), t[1]];
|
|
908
|
-
}, ur = (e) => (...t) => p.asap(() => e(...t)),
|
|
908
|
+
}, ur = (e) => (...t) => p.asap(() => e(...t)), La = _.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, _.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
|
|
909
909
|
new URL(_.origin),
|
|
910
910
|
_.navigator && /(msie|trident)/i.test(_.navigator.userAgent)
|
|
911
|
-
) : () => !0,
|
|
911
|
+
) : () => !0, Ua = _.hasStandardBrowserEnv ? (
|
|
912
912
|
// Standard browser envs support document.cookie
|
|
913
913
|
{
|
|
914
914
|
write(e, t, r, n, o, a, i) {
|
|
@@ -937,15 +937,15 @@ const Ge = (e, t, r = 3) => {
|
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
939
|
);
|
|
940
|
-
function
|
|
940
|
+
function Ma(e) {
|
|
941
941
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function Ba(e, t) {
|
|
944
944
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
945
945
|
}
|
|
946
|
-
function
|
|
947
|
-
let n = !
|
|
948
|
-
return e && (n || r == !1) ?
|
|
946
|
+
function Pn(e, t, r) {
|
|
947
|
+
let n = !Ma(t);
|
|
948
|
+
return e && (n || r == !1) ? Ba(e, t) : t;
|
|
949
949
|
}
|
|
950
950
|
const fr = (e) => e instanceof $ ? { ...e } : e;
|
|
951
951
|
function ne(e, t) {
|
|
@@ -1012,10 +1012,10 @@ function ne(e, t) {
|
|
|
1012
1012
|
p.isUndefined(d) && f !== s || (r[l] = d);
|
|
1013
1013
|
}), r;
|
|
1014
1014
|
}
|
|
1015
|
-
const
|
|
1015
|
+
const In = (e) => {
|
|
1016
1016
|
const t = ne({}, e);
|
|
1017
1017
|
let { data: r, withXSRFToken: n, xsrfHeaderName: o, xsrfCookieName: a, headers: i, auth: s } = t;
|
|
1018
|
-
if (t.headers = i = $.from(i), t.url =
|
|
1018
|
+
if (t.headers = i = $.from(i), t.url = bn(Pn(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), s && i.set(
|
|
1019
1019
|
"Authorization",
|
|
1020
1020
|
"Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
|
|
1021
1021
|
), p.isFormData(r)) {
|
|
@@ -1028,14 +1028,14 @@ const Pn = (e) => {
|
|
|
1028
1028
|
});
|
|
1029
1029
|
}
|
|
1030
1030
|
}
|
|
1031
|
-
if (_.hasStandardBrowserEnv && (n && p.isFunction(n) && (n = n(t)), n || n !== !1 &&
|
|
1032
|
-
const c = o && a &&
|
|
1031
|
+
if (_.hasStandardBrowserEnv && (n && p.isFunction(n) && (n = n(t)), n || n !== !1 && La(t.url))) {
|
|
1032
|
+
const c = o && a && Ua.read(a);
|
|
1033
1033
|
c && i.set(o, c);
|
|
1034
1034
|
}
|
|
1035
1035
|
return t;
|
|
1036
|
-
},
|
|
1036
|
+
}, ka = typeof XMLHttpRequest < "u", ja = ka && function(e) {
|
|
1037
1037
|
return new Promise(function(r, n) {
|
|
1038
|
-
const o =
|
|
1038
|
+
const o = In(e);
|
|
1039
1039
|
let a = o.data;
|
|
1040
1040
|
const i = $.from(o.headers).normalize();
|
|
1041
1041
|
let { responseType: s, onUploadProgress: c, onDownloadProgress: u } = o, l, f, d, v, y;
|
|
@@ -1057,7 +1057,7 @@ const Pn = (e) => {
|
|
|
1057
1057
|
config: e,
|
|
1058
1058
|
request: h
|
|
1059
1059
|
};
|
|
1060
|
-
|
|
1060
|
+
Rn(function(I) {
|
|
1061
1061
|
r(I), m();
|
|
1062
1062
|
}, function(I) {
|
|
1063
1063
|
n(I), m();
|
|
@@ -1072,7 +1072,7 @@ const Pn = (e) => {
|
|
|
1072
1072
|
L.event = E || null, n(L), h = null;
|
|
1073
1073
|
}, h.ontimeout = function() {
|
|
1074
1074
|
let E = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1075
|
-
const P = o.transitional ||
|
|
1075
|
+
const P = o.transitional || En;
|
|
1076
1076
|
o.timeoutErrorMessage && (E = o.timeoutErrorMessage), n(new S(
|
|
1077
1077
|
E,
|
|
1078
1078
|
P.clarifyTimeoutError ? S.ETIMEDOUT : S.ECONNABORTED,
|
|
@@ -1084,14 +1084,14 @@ const Pn = (e) => {
|
|
|
1084
1084
|
}), p.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), u && ([d, y] = Ge(u, !0), h.addEventListener("progress", d)), c && h.upload && ([f, v] = Ge(c), h.upload.addEventListener("progress", f), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (l = (g) => {
|
|
1085
1085
|
h && (n(!g || g.type ? new me(null, e, h) : g), h.abort(), h = null);
|
|
1086
1086
|
}, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
|
|
1087
|
-
const O =
|
|
1087
|
+
const O = _a(o.url);
|
|
1088
1088
|
if (O && _.protocols.indexOf(O) === -1) {
|
|
1089
1089
|
n(new S("Unsupported protocol " + O + ":", S.ERR_BAD_REQUEST, e));
|
|
1090
1090
|
return;
|
|
1091
1091
|
}
|
|
1092
1092
|
h.send(a || null);
|
|
1093
1093
|
});
|
|
1094
|
-
},
|
|
1094
|
+
}, qa = (e, t) => {
|
|
1095
1095
|
const { length: r } = e = e ? e.filter(Boolean) : [];
|
|
1096
1096
|
if (t || r) {
|
|
1097
1097
|
let n = new AbortController(), o;
|
|
@@ -1114,7 +1114,7 @@ const Pn = (e) => {
|
|
|
1114
1114
|
const { signal: c } = n;
|
|
1115
1115
|
return c.unsubscribe = () => p.asap(s), c;
|
|
1116
1116
|
}
|
|
1117
|
-
},
|
|
1117
|
+
}, za = function* (e, t) {
|
|
1118
1118
|
let r = e.byteLength;
|
|
1119
1119
|
if (r < t) {
|
|
1120
1120
|
yield e;
|
|
@@ -1123,10 +1123,10 @@ const Pn = (e) => {
|
|
|
1123
1123
|
let n = 0, o;
|
|
1124
1124
|
for (; n < r; )
|
|
1125
1125
|
o = n + t, yield e.slice(n, o), n = o;
|
|
1126
|
-
},
|
|
1127
|
-
for await (const r of
|
|
1128
|
-
yield*
|
|
1129
|
-
},
|
|
1126
|
+
}, Ha = async function* (e, t) {
|
|
1127
|
+
for await (const r of Wa(e))
|
|
1128
|
+
yield* za(r, t);
|
|
1129
|
+
}, Wa = async function* (e) {
|
|
1130
1130
|
if (e[Symbol.asyncIterator]) {
|
|
1131
1131
|
yield* e;
|
|
1132
1132
|
return;
|
|
@@ -1143,7 +1143,7 @@ const Pn = (e) => {
|
|
|
1143
1143
|
await t.cancel();
|
|
1144
1144
|
}
|
|
1145
1145
|
}, pr = (e, t, r, n) => {
|
|
1146
|
-
const o =
|
|
1146
|
+
const o = Ha(e, t);
|
|
1147
1147
|
let a = 0, i, s = (c) => {
|
|
1148
1148
|
i || (i = !0, n && n(c));
|
|
1149
1149
|
};
|
|
@@ -1171,7 +1171,7 @@ const Pn = (e) => {
|
|
|
1171
1171
|
}, {
|
|
1172
1172
|
highWaterMark: 2
|
|
1173
1173
|
});
|
|
1174
|
-
}, dr = 64 * 1024, { isFunction: Ue } = p,
|
|
1174
|
+
}, dr = 64 * 1024, { isFunction: Ue } = p, Ja = (({ Request: e, Response: t }) => ({
|
|
1175
1175
|
Request: e,
|
|
1176
1176
|
Response: t
|
|
1177
1177
|
}))(p.global), {
|
|
@@ -1183,10 +1183,10 @@ const Pn = (e) => {
|
|
|
1183
1183
|
} catch {
|
|
1184
1184
|
return !1;
|
|
1185
1185
|
}
|
|
1186
|
-
},
|
|
1186
|
+
}, Ga = (e) => {
|
|
1187
1187
|
e = p.merge.call({
|
|
1188
1188
|
skipUndefined: !0
|
|
1189
|
-
},
|
|
1189
|
+
}, Ja, e);
|
|
1190
1190
|
const { fetch: t, Request: r, Response: n } = e, o = t ? Ue(t) : typeof fetch == "function", a = Ue(r), i = Ue(n);
|
|
1191
1191
|
if (!o)
|
|
1192
1192
|
return !1;
|
|
@@ -1243,9 +1243,9 @@ const Pn = (e) => {
|
|
|
1243
1243
|
headers: V,
|
|
1244
1244
|
withCredentials: U = "same-origin",
|
|
1245
1245
|
fetchOptions: B
|
|
1246
|
-
} =
|
|
1246
|
+
} = In(y), X = t || fetch;
|
|
1247
1247
|
I = I ? (I + "").toLowerCase() : "text";
|
|
1248
|
-
let k =
|
|
1248
|
+
let k = qa([O, g && g.toAbortSignal()], E), N = null;
|
|
1249
1249
|
const x = k && k.unsubscribe && (() => {
|
|
1250
1250
|
k.unsubscribe();
|
|
1251
1251
|
});
|
|
@@ -1276,7 +1276,7 @@ const Pn = (e) => {
|
|
|
1276
1276
|
credentials: F ? U : void 0
|
|
1277
1277
|
};
|
|
1278
1278
|
N = a && new r(m, ie);
|
|
1279
|
-
let q = await (a ?
|
|
1279
|
+
let q = await (a ? X(N, B) : X(m, ie));
|
|
1280
1280
|
const ve = l && (I === "stream" || I === "response");
|
|
1281
1281
|
if (l && (P || ve && x)) {
|
|
1282
1282
|
const K = {};
|
|
@@ -1297,7 +1297,7 @@ const Pn = (e) => {
|
|
|
1297
1297
|
I = I || "text";
|
|
1298
1298
|
let Se = await f[p.findKey(f, I) || "text"](q, y);
|
|
1299
1299
|
return !ve && x && x(), await new Promise((K, se) => {
|
|
1300
|
-
|
|
1300
|
+
Rn(K, se, {
|
|
1301
1301
|
data: Se,
|
|
1302
1302
|
headers: $.from(q.headers),
|
|
1303
1303
|
status: q.status,
|
|
@@ -1315,24 +1315,24 @@ const Pn = (e) => {
|
|
|
1315
1315
|
) : S.from(F, F && F.code, y, N);
|
|
1316
1316
|
}
|
|
1317
1317
|
};
|
|
1318
|
-
},
|
|
1318
|
+
}, Va = /* @__PURE__ */ new Map(), Cn = (e) => {
|
|
1319
1319
|
let t = e && e.env || {};
|
|
1320
1320
|
const { fetch: r, Request: n, Response: o } = t, a = [
|
|
1321
1321
|
n,
|
|
1322
1322
|
o,
|
|
1323
1323
|
r
|
|
1324
1324
|
];
|
|
1325
|
-
let i = a.length, s = i, c, u, l =
|
|
1325
|
+
let i = a.length, s = i, c, u, l = Va;
|
|
1326
1326
|
for (; s--; )
|
|
1327
|
-
c = a[s], u = l.get(c), u === void 0 && l.set(c, u = s ? /* @__PURE__ */ new Map() :
|
|
1327
|
+
c = a[s], u = l.get(c), u === void 0 && l.set(c, u = s ? /* @__PURE__ */ new Map() : Ga(t)), l = u;
|
|
1328
1328
|
return u;
|
|
1329
1329
|
};
|
|
1330
|
-
|
|
1330
|
+
Cn();
|
|
1331
1331
|
const Vt = {
|
|
1332
|
-
http:
|
|
1333
|
-
xhr:
|
|
1332
|
+
http: fa,
|
|
1333
|
+
xhr: ja,
|
|
1334
1334
|
fetch: {
|
|
1335
|
-
get:
|
|
1335
|
+
get: Cn
|
|
1336
1336
|
}
|
|
1337
1337
|
};
|
|
1338
1338
|
p.forEach(Vt, (e, t) => {
|
|
@@ -1344,8 +1344,8 @@ p.forEach(Vt, (e, t) => {
|
|
|
1344
1344
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1345
1345
|
}
|
|
1346
1346
|
});
|
|
1347
|
-
const gr = (e) => `- ${e}`,
|
|
1348
|
-
function
|
|
1347
|
+
const gr = (e) => `- ${e}`, Ka = (e) => p.isFunction(e) || e === null || e === !1;
|
|
1348
|
+
function Qa(e, t) {
|
|
1349
1349
|
e = p.isArray(e) ? e : [e];
|
|
1350
1350
|
const { length: r } = e;
|
|
1351
1351
|
let n, o;
|
|
@@ -1353,7 +1353,7 @@ function Va(e, t) {
|
|
|
1353
1353
|
for (let i = 0; i < r; i++) {
|
|
1354
1354
|
n = e[i];
|
|
1355
1355
|
let s;
|
|
1356
|
-
if (o = n, !
|
|
1356
|
+
if (o = n, !Ka(n) && (o = Vt[(s = String(n)).toLowerCase()], o === void 0))
|
|
1357
1357
|
throw new S(`Unknown adapter '${s}'`);
|
|
1358
1358
|
if (o && (p.isFunction(o) || (o = o.get(t))))
|
|
1359
1359
|
break;
|
|
@@ -1373,12 +1373,12 @@ function Va(e, t) {
|
|
|
1373
1373
|
}
|
|
1374
1374
|
return o;
|
|
1375
1375
|
}
|
|
1376
|
-
const
|
|
1376
|
+
const Tn = {
|
|
1377
1377
|
/**
|
|
1378
1378
|
* Resolve an adapter from a list of adapter names or functions.
|
|
1379
1379
|
* @type {Function}
|
|
1380
1380
|
*/
|
|
1381
|
-
getAdapter:
|
|
1381
|
+
getAdapter: Qa,
|
|
1382
1382
|
/**
|
|
1383
1383
|
* Exposes all known adapters
|
|
1384
1384
|
* @type {Object<string, Function|Object>}
|
|
@@ -1393,21 +1393,21 @@ function vr(e) {
|
|
|
1393
1393
|
return ut(e), e.headers = $.from(e.headers), e.data = lt.call(
|
|
1394
1394
|
e,
|
|
1395
1395
|
e.transformRequest
|
|
1396
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1396
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Tn.getAdapter(e.adapter || Fe.adapter, e)(e).then(function(n) {
|
|
1397
1397
|
return ut(e), n.data = lt.call(
|
|
1398
1398
|
e,
|
|
1399
1399
|
e.transformResponse,
|
|
1400
1400
|
n
|
|
1401
1401
|
), n.headers = $.from(n.headers), n;
|
|
1402
1402
|
}, function(n) {
|
|
1403
|
-
return
|
|
1403
|
+
return An(n) || (ut(e), n && n.response && (n.response.data = lt.call(
|
|
1404
1404
|
e,
|
|
1405
1405
|
e.transformResponse,
|
|
1406
1406
|
n.response
|
|
1407
1407
|
), n.response.headers = $.from(n.response.headers))), Promise.reject(n);
|
|
1408
1408
|
});
|
|
1409
1409
|
}
|
|
1410
|
-
const
|
|
1410
|
+
const Nn = "1.13.2", rt = {};
|
|
1411
1411
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1412
1412
|
rt[e] = function(n) {
|
|
1413
1413
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
@@ -1416,7 +1416,7 @@ const Tn = "1.13.2", rt = {};
|
|
|
1416
1416
|
const Sr = {};
|
|
1417
1417
|
rt.transitional = function(t, r, n) {
|
|
1418
1418
|
function o(a, i) {
|
|
1419
|
-
return "[Axios v" +
|
|
1419
|
+
return "[Axios v" + Nn + "] Transitional option '" + a + "'" + i + (n ? ". " + n : "");
|
|
1420
1420
|
}
|
|
1421
1421
|
return (a, i, s) => {
|
|
1422
1422
|
if (t === !1)
|
|
@@ -1430,7 +1430,7 @@ rt.transitional = function(t, r, n) {
|
|
|
1430
1430
|
rt.spelling = function(t) {
|
|
1431
1431
|
return (r, n) => !0;
|
|
1432
1432
|
};
|
|
1433
|
-
function
|
|
1433
|
+
function Za(e, t, r) {
|
|
1434
1434
|
if (typeof e != "object")
|
|
1435
1435
|
throw new S("options must be an object", S.ERR_BAD_OPTION_VALUE);
|
|
1436
1436
|
const n = Object.keys(e);
|
|
@@ -1448,7 +1448,7 @@ function Ka(e, t, r) {
|
|
|
1448
1448
|
}
|
|
1449
1449
|
}
|
|
1450
1450
|
const ze = {
|
|
1451
|
-
assertOptions:
|
|
1451
|
+
assertOptions: Za,
|
|
1452
1452
|
validators: rt
|
|
1453
1453
|
}, z = ze.validators;
|
|
1454
1454
|
class te {
|
|
@@ -1547,8 +1547,8 @@ class te {
|
|
|
1547
1547
|
}
|
|
1548
1548
|
getUri(t) {
|
|
1549
1549
|
t = ne(this.defaults, t);
|
|
1550
|
-
const r =
|
|
1551
|
-
return
|
|
1550
|
+
const r = Pn(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1551
|
+
return bn(r, t.params, t.paramsSerializer);
|
|
1552
1552
|
}
|
|
1553
1553
|
}
|
|
1554
1554
|
p.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -1648,12 +1648,12 @@ class Kt {
|
|
|
1648
1648
|
};
|
|
1649
1649
|
}
|
|
1650
1650
|
}
|
|
1651
|
-
function
|
|
1651
|
+
function Xa(e) {
|
|
1652
1652
|
return function(r) {
|
|
1653
1653
|
return e.apply(null, r);
|
|
1654
1654
|
};
|
|
1655
1655
|
}
|
|
1656
|
-
function
|
|
1656
|
+
function Ya(e) {
|
|
1657
1657
|
return p.isObject(e) && e.isAxiosError === !0;
|
|
1658
1658
|
}
|
|
1659
1659
|
const Ut = {
|
|
@@ -1730,37 +1730,37 @@ const Ut = {
|
|
|
1730
1730
|
Object.entries(Ut).forEach(([e, t]) => {
|
|
1731
1731
|
Ut[t] = e;
|
|
1732
1732
|
});
|
|
1733
|
-
function
|
|
1734
|
-
const t = new te(e), r =
|
|
1733
|
+
function xn(e) {
|
|
1734
|
+
const t = new te(e), r = ln(te.prototype.request, t);
|
|
1735
1735
|
return p.extend(r, te.prototype, t, { allOwnKeys: !0 }), p.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(o) {
|
|
1736
|
-
return
|
|
1736
|
+
return xn(ne(e, o));
|
|
1737
1737
|
}, r;
|
|
1738
1738
|
}
|
|
1739
|
-
const R =
|
|
1739
|
+
const R = xn(Fe);
|
|
1740
1740
|
R.Axios = te;
|
|
1741
1741
|
R.CanceledError = me;
|
|
1742
1742
|
R.CancelToken = Kt;
|
|
1743
|
-
R.isCancel =
|
|
1744
|
-
R.VERSION =
|
|
1743
|
+
R.isCancel = An;
|
|
1744
|
+
R.VERSION = Nn;
|
|
1745
1745
|
R.toFormData = tt;
|
|
1746
1746
|
R.AxiosError = S;
|
|
1747
1747
|
R.Cancel = R.CanceledError;
|
|
1748
1748
|
R.all = function(t) {
|
|
1749
1749
|
return Promise.all(t);
|
|
1750
1750
|
};
|
|
1751
|
-
R.spread =
|
|
1752
|
-
R.isAxiosError =
|
|
1751
|
+
R.spread = Xa;
|
|
1752
|
+
R.isAxiosError = Ya;
|
|
1753
1753
|
R.mergeConfig = ne;
|
|
1754
1754
|
R.AxiosHeaders = $;
|
|
1755
|
-
R.formToJSON = (e) =>
|
|
1756
|
-
R.getAdapter =
|
|
1755
|
+
R.formToJSON = (e) => On(p.isHTMLForm(e) ? new FormData(e) : e);
|
|
1756
|
+
R.getAdapter = Tn.getAdapter;
|
|
1757
1757
|
R.HttpStatusCode = Ut;
|
|
1758
1758
|
R.default = R;
|
|
1759
1759
|
var wr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1760
|
-
function
|
|
1760
|
+
function ei(e) {
|
|
1761
1761
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1763
|
+
function ti(e) {
|
|
1764
1764
|
if (e.__esModule) return e;
|
|
1765
1765
|
var t = e.default;
|
|
1766
1766
|
if (typeof t == "function") {
|
|
@@ -1780,37 +1780,37 @@ function Ya(e) {
|
|
|
1780
1780
|
}), r;
|
|
1781
1781
|
}
|
|
1782
1782
|
var ge = TypeError;
|
|
1783
|
-
const
|
|
1783
|
+
const ri = {}, ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1784
1784
|
__proto__: null,
|
|
1785
|
-
default:
|
|
1786
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1787
|
-
var Qt = typeof Map == "function" && Map.prototype, ft = Object.getOwnPropertyDescriptor && Qt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ve = Qt && ft && typeof ft.get == "function" ? ft.get : null, br = Qt && Map.prototype.forEach,
|
|
1785
|
+
default: ri
|
|
1786
|
+
}, Symbol.toStringTag, { value: "Module" })), oi = /* @__PURE__ */ ti(ni);
|
|
1787
|
+
var Qt = typeof Map == "function" && Map.prototype, ft = Object.getOwnPropertyDescriptor && Qt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ve = Qt && ft && typeof ft.get == "function" ? ft.get : null, br = Qt && Map.prototype.forEach, Zt = typeof Set == "function" && Set.prototype, pt = Object.getOwnPropertyDescriptor && Zt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ke = Zt && pt && typeof pt.get == "function" ? pt.get : null, Er = Zt && Set.prototype.forEach, ai = typeof WeakMap == "function" && WeakMap.prototype, Ee = ai ? WeakMap.prototype.has : null, ii = typeof WeakSet == "function" && WeakSet.prototype, Oe = ii ? WeakSet.prototype.has : null, si = typeof WeakRef == "function" && WeakRef.prototype, Or = si ? WeakRef.prototype.deref : null, ci = Boolean.prototype.valueOf, li = Object.prototype.toString, ui = Function.prototype.toString, fi = String.prototype.match, Xt = String.prototype.slice, Q = String.prototype.replace, pi = String.prototype.toUpperCase, Ar = String.prototype.toLowerCase, Fn = RegExp.prototype.test, Rr = Array.prototype.concat, J = Array.prototype.join, di = Array.prototype.slice, Pr = Math.floor, Mt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, dt = Object.getOwnPropertySymbols, Bt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, de = typeof Symbol == "function" && typeof Symbol.iterator == "object", Ae = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === de || !0) ? Symbol.toStringTag : null, _n = Object.prototype.propertyIsEnumerable, Ir = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
|
|
1788
1788
|
return e.__proto__;
|
|
1789
1789
|
} : null);
|
|
1790
1790
|
function Cr(e, t) {
|
|
1791
|
-
if (e === 1 / 0 || e === -1 / 0 || e !== e || e && e > -1e3 && e < 1e3 ||
|
|
1791
|
+
if (e === 1 / 0 || e === -1 / 0 || e !== e || e && e > -1e3 && e < 1e3 || Fn.call(/e/, t))
|
|
1792
1792
|
return t;
|
|
1793
1793
|
var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
1794
1794
|
if (typeof e == "number") {
|
|
1795
1795
|
var n = e < 0 ? -Pr(-e) : Pr(e);
|
|
1796
1796
|
if (n !== e) {
|
|
1797
|
-
var o = String(n), a =
|
|
1797
|
+
var o = String(n), a = Xt.call(t, o.length + 1);
|
|
1798
1798
|
return Q.call(o, r, "$&_") + "." + Q.call(Q.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
1799
1799
|
}
|
|
1800
1800
|
}
|
|
1801
1801
|
return Q.call(t, r, "$&_");
|
|
1802
1802
|
}
|
|
1803
|
-
var kt =
|
|
1803
|
+
var kt = oi, Tr = kt.custom, Nr = Ln(Tr) ? Tr : null, Dn = {
|
|
1804
1804
|
__proto__: null,
|
|
1805
1805
|
double: '"',
|
|
1806
1806
|
single: "'"
|
|
1807
|
-
},
|
|
1807
|
+
}, yi = {
|
|
1808
1808
|
__proto__: null,
|
|
1809
1809
|
double: /(["\\])/g,
|
|
1810
1810
|
single: /(['\\])/g
|
|
1811
1811
|
}, nt = function e(t, r, n, o) {
|
|
1812
1812
|
var a = r || {};
|
|
1813
|
-
if (G(a, "quoteStyle") && !G(
|
|
1813
|
+
if (G(a, "quoteStyle") && !G(Dn, a.quoteStyle))
|
|
1814
1814
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
1815
1815
|
if (G(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
|
|
1816
1816
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
@@ -1829,7 +1829,7 @@ var kt = ri, Tr = kt.custom, Nr = $n(Tr) ? Tr : null, _n = {
|
|
|
1829
1829
|
if (typeof t == "boolean")
|
|
1830
1830
|
return t ? "true" : "false";
|
|
1831
1831
|
if (typeof t == "string")
|
|
1832
|
-
return
|
|
1832
|
+
return Mn(t, a);
|
|
1833
1833
|
if (typeof t == "number") {
|
|
1834
1834
|
if (t === 0)
|
|
1835
1835
|
return 1 / 0 / t > 0 ? "0" : "-0";
|
|
@@ -1843,13 +1843,13 @@ var kt = ri, Tr = kt.custom, Nr = $n(Tr) ? Tr : null, _n = {
|
|
|
1843
1843
|
var l = typeof a.depth > "u" ? 5 : a.depth;
|
|
1844
1844
|
if (typeof n > "u" && (n = 0), n >= l && l > 0 && typeof t == "object")
|
|
1845
1845
|
return jt(t) ? "[Array]" : "[Object]";
|
|
1846
|
-
var f =
|
|
1846
|
+
var f = Fi(a, n);
|
|
1847
1847
|
if (typeof o > "u")
|
|
1848
1848
|
o = [];
|
|
1849
|
-
else if (
|
|
1849
|
+
else if (Un(o, t) >= 0)
|
|
1850
1850
|
return "[Circular]";
|
|
1851
1851
|
function d(N, x, M) {
|
|
1852
|
-
if (x && (o =
|
|
1852
|
+
if (x && (o = di.call(o), o.push(x)), M) {
|
|
1853
1853
|
var F = {
|
|
1854
1854
|
depth: a.depth
|
|
1855
1855
|
};
|
|
@@ -1858,27 +1858,27 @@ var kt = ri, Tr = kt.custom, Nr = $n(Tr) ? Tr : null, _n = {
|
|
|
1858
1858
|
return e(N, a, n + 1, o);
|
|
1859
1859
|
}
|
|
1860
1860
|
if (typeof t == "function" && !xr(t)) {
|
|
1861
|
-
var v =
|
|
1861
|
+
var v = Oi(t), y = Me(t, d);
|
|
1862
1862
|
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + J.call(y, ", ") + " }" : "");
|
|
1863
1863
|
}
|
|
1864
|
-
if (
|
|
1864
|
+
if (Ln(t)) {
|
|
1865
1865
|
var m = de ? Q.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : Bt.call(t);
|
|
1866
1866
|
return typeof t == "object" && !de ? be(m) : m;
|
|
1867
1867
|
}
|
|
1868
|
-
if (
|
|
1868
|
+
if (Ti(t)) {
|
|
1869
1869
|
for (var h = "<" + Ar.call(String(t.nodeName)), w = t.attributes || [], O = 0; O < w.length; O++)
|
|
1870
|
-
h += " " + w[O].name + "=" +
|
|
1870
|
+
h += " " + w[O].name + "=" + $n(hi(w[O].value), "double", a);
|
|
1871
1871
|
return h += ">", t.childNodes && t.childNodes.length && (h += "..."), h += "</" + Ar.call(String(t.nodeName)) + ">", h;
|
|
1872
1872
|
}
|
|
1873
1873
|
if (jt(t)) {
|
|
1874
1874
|
if (t.length === 0)
|
|
1875
1875
|
return "[]";
|
|
1876
1876
|
var g = Me(t, d);
|
|
1877
|
-
return f && !
|
|
1877
|
+
return f && !xi(g) ? "[" + qt(g, f) + "]" : "[ " + J.call(g, ", ") + " ]";
|
|
1878
1878
|
}
|
|
1879
|
-
if (
|
|
1879
|
+
if (gi(t)) {
|
|
1880
1880
|
var E = Me(t, d);
|
|
1881
|
-
return !("cause" in Error.prototype) && "cause" in t && !
|
|
1881
|
+
return !("cause" in Error.prototype) && "cause" in t && !_n.call(t, "cause") ? "{ [" + String(t) + "] " + J.call(Rr.call("[cause]: " + d(t.cause), E), ", ") + " }" : E.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + J.call(E, ", ") + " }";
|
|
1882
1882
|
}
|
|
1883
1883
|
if (typeof t == "object" && i) {
|
|
1884
1884
|
if (Nr && typeof t[Nr] == "function" && kt)
|
|
@@ -1886,74 +1886,74 @@ var kt = ri, Tr = kt.custom, Nr = $n(Tr) ? Tr : null, _n = {
|
|
|
1886
1886
|
if (i !== "symbol" && typeof t.inspect == "function")
|
|
1887
1887
|
return t.inspect();
|
|
1888
1888
|
}
|
|
1889
|
-
if (
|
|
1889
|
+
if (Ai(t)) {
|
|
1890
1890
|
var P = [];
|
|
1891
1891
|
return br && br.call(t, function(N, x) {
|
|
1892
1892
|
P.push(d(x, t, !0) + " => " + d(N, t));
|
|
1893
1893
|
}), Fr("Map", Ve.call(t), P, f);
|
|
1894
1894
|
}
|
|
1895
|
-
if (
|
|
1895
|
+
if (Ii(t)) {
|
|
1896
1896
|
var L = [];
|
|
1897
1897
|
return Er && Er.call(t, function(N) {
|
|
1898
1898
|
L.push(d(N, t));
|
|
1899
1899
|
}), Fr("Set", Ke.call(t), L, f);
|
|
1900
1900
|
}
|
|
1901
|
-
if (
|
|
1901
|
+
if (Ri(t))
|
|
1902
1902
|
return yt("WeakMap");
|
|
1903
|
-
if (
|
|
1903
|
+
if (Ci(t))
|
|
1904
1904
|
return yt("WeakSet");
|
|
1905
|
-
if (
|
|
1905
|
+
if (Pi(t))
|
|
1906
1906
|
return yt("WeakRef");
|
|
1907
|
-
if (gi(t))
|
|
1908
|
-
return be(d(Number(t)));
|
|
1909
1907
|
if (Si(t))
|
|
1908
|
+
return be(d(Number(t)));
|
|
1909
|
+
if (bi(t))
|
|
1910
1910
|
return be(d(Mt.call(t)));
|
|
1911
|
+
if (wi(t))
|
|
1912
|
+
return be(ci.call(t));
|
|
1911
1913
|
if (vi(t))
|
|
1912
|
-
return be(ii.call(t));
|
|
1913
|
-
if (mi(t))
|
|
1914
1914
|
return be(d(String(t)));
|
|
1915
1915
|
if (typeof window < "u" && t === window)
|
|
1916
1916
|
return "{ [object Window] }";
|
|
1917
1917
|
if (typeof globalThis < "u" && t === globalThis || typeof wr < "u" && t === wr)
|
|
1918
1918
|
return "{ [object globalThis] }";
|
|
1919
|
-
if (!
|
|
1920
|
-
var I = Me(t, d), V = Ir ? Ir(t) === Object.prototype : t instanceof Object || t.constructor === Object, U = t instanceof Object ? "" : "null prototype", B = !V && Ae && Object(t) === t && Ae in t ?
|
|
1919
|
+
if (!mi(t) && !xr(t)) {
|
|
1920
|
+
var I = Me(t, d), V = Ir ? Ir(t) === Object.prototype : t instanceof Object || t.constructor === Object, U = t instanceof Object ? "" : "null prototype", B = !V && Ae && Object(t) === t && Ae in t ? Xt.call(Z(t), 8, -1) : U ? "Object" : "", X = V || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", k = X + (B || U ? "[" + J.call(Rr.call([], B || [], U || []), ": ") + "] " : "");
|
|
1921
1921
|
return I.length === 0 ? k + "{}" : f ? k + "{" + qt(I, f) + "}" : k + "{ " + J.call(I, ", ") + " }";
|
|
1922
1922
|
}
|
|
1923
1923
|
return String(t);
|
|
1924
1924
|
};
|
|
1925
|
-
function
|
|
1926
|
-
var n = r.quoteStyle || t, o =
|
|
1925
|
+
function $n(e, t, r) {
|
|
1926
|
+
var n = r.quoteStyle || t, o = Dn[n];
|
|
1927
1927
|
return o + e + o;
|
|
1928
1928
|
}
|
|
1929
|
-
function
|
|
1929
|
+
function hi(e) {
|
|
1930
1930
|
return Q.call(String(e), /"/g, """);
|
|
1931
1931
|
}
|
|
1932
1932
|
function ae(e) {
|
|
1933
1933
|
return !Ae || !(typeof e == "object" && (Ae in e || typeof e[Ae] < "u"));
|
|
1934
1934
|
}
|
|
1935
1935
|
function jt(e) {
|
|
1936
|
-
return
|
|
1936
|
+
return Z(e) === "[object Array]" && ae(e);
|
|
1937
1937
|
}
|
|
1938
|
-
function
|
|
1939
|
-
return
|
|
1938
|
+
function mi(e) {
|
|
1939
|
+
return Z(e) === "[object Date]" && ae(e);
|
|
1940
1940
|
}
|
|
1941
1941
|
function xr(e) {
|
|
1942
|
-
return
|
|
1943
|
-
}
|
|
1944
|
-
function hi(e) {
|
|
1945
|
-
return X(e) === "[object Error]" && ae(e);
|
|
1946
|
-
}
|
|
1947
|
-
function mi(e) {
|
|
1948
|
-
return X(e) === "[object String]" && ae(e);
|
|
1942
|
+
return Z(e) === "[object RegExp]" && ae(e);
|
|
1949
1943
|
}
|
|
1950
1944
|
function gi(e) {
|
|
1951
|
-
return
|
|
1945
|
+
return Z(e) === "[object Error]" && ae(e);
|
|
1952
1946
|
}
|
|
1953
1947
|
function vi(e) {
|
|
1954
|
-
return
|
|
1948
|
+
return Z(e) === "[object String]" && ae(e);
|
|
1949
|
+
}
|
|
1950
|
+
function Si(e) {
|
|
1951
|
+
return Z(e) === "[object Number]" && ae(e);
|
|
1955
1952
|
}
|
|
1956
|
-
function
|
|
1953
|
+
function wi(e) {
|
|
1954
|
+
return Z(e) === "[object Boolean]" && ae(e);
|
|
1955
|
+
}
|
|
1956
|
+
function Ln(e) {
|
|
1957
1957
|
if (de)
|
|
1958
1958
|
return e && typeof e == "object" && e instanceof Symbol;
|
|
1959
1959
|
if (typeof e == "symbol")
|
|
@@ -1966,7 +1966,7 @@ function $n(e) {
|
|
|
1966
1966
|
}
|
|
1967
1967
|
return !1;
|
|
1968
1968
|
}
|
|
1969
|
-
function
|
|
1969
|
+
function bi(e) {
|
|
1970
1970
|
if (!e || typeof e != "object" || !Mt)
|
|
1971
1971
|
return !1;
|
|
1972
1972
|
try {
|
|
@@ -1975,22 +1975,22 @@ function Si(e) {
|
|
|
1975
1975
|
}
|
|
1976
1976
|
return !1;
|
|
1977
1977
|
}
|
|
1978
|
-
var
|
|
1978
|
+
var Ei = Object.prototype.hasOwnProperty || function(e) {
|
|
1979
1979
|
return e in this;
|
|
1980
1980
|
};
|
|
1981
1981
|
function G(e, t) {
|
|
1982
|
-
return
|
|
1982
|
+
return Ei.call(e, t);
|
|
1983
1983
|
}
|
|
1984
|
-
function
|
|
1985
|
-
return
|
|
1984
|
+
function Z(e) {
|
|
1985
|
+
return li.call(e);
|
|
1986
1986
|
}
|
|
1987
|
-
function
|
|
1987
|
+
function Oi(e) {
|
|
1988
1988
|
if (e.name)
|
|
1989
1989
|
return e.name;
|
|
1990
|
-
var t =
|
|
1990
|
+
var t = fi.call(ui.call(e), /^function\s*([\w$]+)/);
|
|
1991
1991
|
return t ? t[1] : null;
|
|
1992
1992
|
}
|
|
1993
|
-
function
|
|
1993
|
+
function Un(e, t) {
|
|
1994
1994
|
if (e.indexOf)
|
|
1995
1995
|
return e.indexOf(t);
|
|
1996
1996
|
for (var r = 0, n = e.length; r < n; r++)
|
|
@@ -1998,7 +1998,7 @@ function Ln(e, t) {
|
|
|
1998
1998
|
return r;
|
|
1999
1999
|
return -1;
|
|
2000
2000
|
}
|
|
2001
|
-
function
|
|
2001
|
+
function Ai(e) {
|
|
2002
2002
|
if (!Ve || !e || typeof e != "object")
|
|
2003
2003
|
return !1;
|
|
2004
2004
|
try {
|
|
@@ -2013,7 +2013,7 @@ function Ei(e) {
|
|
|
2013
2013
|
}
|
|
2014
2014
|
return !1;
|
|
2015
2015
|
}
|
|
2016
|
-
function
|
|
2016
|
+
function Ri(e) {
|
|
2017
2017
|
if (!Ee || !e || typeof e != "object")
|
|
2018
2018
|
return !1;
|
|
2019
2019
|
try {
|
|
@@ -2028,7 +2028,7 @@ function Oi(e) {
|
|
|
2028
2028
|
}
|
|
2029
2029
|
return !1;
|
|
2030
2030
|
}
|
|
2031
|
-
function
|
|
2031
|
+
function Pi(e) {
|
|
2032
2032
|
if (!Or || !e || typeof e != "object")
|
|
2033
2033
|
return !1;
|
|
2034
2034
|
try {
|
|
@@ -2037,7 +2037,7 @@ function Ai(e) {
|
|
|
2037
2037
|
}
|
|
2038
2038
|
return !1;
|
|
2039
2039
|
}
|
|
2040
|
-
function
|
|
2040
|
+
function Ii(e) {
|
|
2041
2041
|
if (!Ke || !e || typeof e != "object")
|
|
2042
2042
|
return !1;
|
|
2043
2043
|
try {
|
|
@@ -2052,7 +2052,7 @@ function Ri(e) {
|
|
|
2052
2052
|
}
|
|
2053
2053
|
return !1;
|
|
2054
2054
|
}
|
|
2055
|
-
function
|
|
2055
|
+
function Ci(e) {
|
|
2056
2056
|
if (!Oe || !e || typeof e != "object")
|
|
2057
2057
|
return !1;
|
|
2058
2058
|
try {
|
|
@@ -2067,20 +2067,20 @@ function Pi(e) {
|
|
|
2067
2067
|
}
|
|
2068
2068
|
return !1;
|
|
2069
2069
|
}
|
|
2070
|
-
function
|
|
2070
|
+
function Ti(e) {
|
|
2071
2071
|
return !e || typeof e != "object" ? !1 : typeof HTMLElement < "u" && e instanceof HTMLElement ? !0 : typeof e.nodeName == "string" && typeof e.getAttribute == "function";
|
|
2072
2072
|
}
|
|
2073
|
-
function
|
|
2073
|
+
function Mn(e, t) {
|
|
2074
2074
|
if (e.length > t.maxStringLength) {
|
|
2075
2075
|
var r = e.length - t.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
|
|
2076
|
-
return
|
|
2076
|
+
return Mn(Xt.call(e, 0, t.maxStringLength), t) + n;
|
|
2077
2077
|
}
|
|
2078
|
-
var o =
|
|
2078
|
+
var o = yi[t.quoteStyle || "single"];
|
|
2079
2079
|
o.lastIndex = 0;
|
|
2080
|
-
var a = Q.call(Q.call(e, o, "\\$1"), /[\x00-\x1f]/g,
|
|
2081
|
-
return
|
|
2080
|
+
var a = Q.call(Q.call(e, o, "\\$1"), /[\x00-\x1f]/g, Ni);
|
|
2081
|
+
return $n(a, "single", t);
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function Ni(e) {
|
|
2084
2084
|
var t = e.charCodeAt(0), r = {
|
|
2085
2085
|
8: "b",
|
|
2086
2086
|
9: "t",
|
|
@@ -2088,7 +2088,7 @@ function Ci(e) {
|
|
|
2088
2088
|
12: "f",
|
|
2089
2089
|
13: "r"
|
|
2090
2090
|
}[t];
|
|
2091
|
-
return r ? "\\" + r : "\\x" + (t < 16 ? "0" : "") +
|
|
2091
|
+
return r ? "\\" + r : "\\x" + (t < 16 ? "0" : "") + pi.call(t.toString(16));
|
|
2092
2092
|
}
|
|
2093
2093
|
function be(e) {
|
|
2094
2094
|
return "Object(" + e + ")";
|
|
@@ -2100,14 +2100,14 @@ function Fr(e, t, r, n) {
|
|
|
2100
2100
|
var o = n ? qt(r, n) : J.call(r, ", ");
|
|
2101
2101
|
return e + " (" + t + ") {" + o + "}";
|
|
2102
2102
|
}
|
|
2103
|
-
function
|
|
2103
|
+
function xi(e) {
|
|
2104
2104
|
for (var t = 0; t < e.length; t++)
|
|
2105
|
-
if (
|
|
2105
|
+
if (Un(e[t], `
|
|
2106
2106
|
`) >= 0)
|
|
2107
2107
|
return !1;
|
|
2108
2108
|
return !0;
|
|
2109
2109
|
}
|
|
2110
|
-
function
|
|
2110
|
+
function Fi(e, t) {
|
|
2111
2111
|
var r;
|
|
2112
2112
|
if (e.indent === " ")
|
|
2113
2113
|
r = " ";
|
|
@@ -2142,23 +2142,23 @@ function Me(e, t) {
|
|
|
2142
2142
|
i["$" + a[s]] = a[s];
|
|
2143
2143
|
}
|
|
2144
2144
|
for (var c in e)
|
|
2145
|
-
G(e, c) && (r && String(Number(c)) === c && c < e.length || de && i["$" + c] instanceof Symbol || (
|
|
2145
|
+
G(e, c) && (r && String(Number(c)) === c && c < e.length || de && i["$" + c] instanceof Symbol || (Fn.call(/[^\w$]/, c) ? n.push(t(c, e) + ": " + t(e[c], e)) : n.push(c + ": " + t(e[c], e))));
|
|
2146
2146
|
if (typeof dt == "function")
|
|
2147
2147
|
for (var u = 0; u < a.length; u++)
|
|
2148
|
-
|
|
2148
|
+
_n.call(e, a[u]) && n.push("[" + t(a[u]) + "]: " + t(e[a[u]], e));
|
|
2149
2149
|
return n;
|
|
2150
2150
|
}
|
|
2151
|
-
var
|
|
2151
|
+
var _i = nt, Di = ge, ot = function(e, t, r) {
|
|
2152
2152
|
for (var n = e, o; (o = n.next) != null; n = o)
|
|
2153
2153
|
if (o.key === t)
|
|
2154
2154
|
return n.next = o.next, r || (o.next = /** @type {NonNullable<typeof list.next>} */
|
|
2155
2155
|
e.next, e.next = o), o;
|
|
2156
|
-
},
|
|
2156
|
+
}, $i = function(e, t) {
|
|
2157
2157
|
if (e) {
|
|
2158
2158
|
var r = ot(e, t);
|
|
2159
2159
|
return r && r.value;
|
|
2160
2160
|
}
|
|
2161
|
-
},
|
|
2161
|
+
}, Li = function(e, t, r) {
|
|
2162
2162
|
var n = ot(e, t);
|
|
2163
2163
|
n ? n.value = r : e.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
2164
2164
|
{
|
|
@@ -2167,31 +2167,31 @@ var xi = nt, Fi = ge, ot = function(e, t, r) {
|
|
|
2167
2167
|
next: e.next,
|
|
2168
2168
|
value: r
|
|
2169
2169
|
};
|
|
2170
|
-
},
|
|
2170
|
+
}, Ui = function(e, t) {
|
|
2171
2171
|
return e ? !!ot(e, t) : !1;
|
|
2172
|
-
},
|
|
2172
|
+
}, Mi = function(e, t) {
|
|
2173
2173
|
if (e)
|
|
2174
2174
|
return ot(e, t, !0);
|
|
2175
|
-
},
|
|
2175
|
+
}, Bi = function() {
|
|
2176
2176
|
var t, r = {
|
|
2177
2177
|
assert: function(n) {
|
|
2178
2178
|
if (!r.has(n))
|
|
2179
|
-
throw new
|
|
2179
|
+
throw new Di("Side channel does not contain " + _i(n));
|
|
2180
2180
|
},
|
|
2181
2181
|
delete: function(n) {
|
|
2182
|
-
var o = t && t.next, a =
|
|
2182
|
+
var o = t && t.next, a = Mi(t, n);
|
|
2183
2183
|
return a && o && o === a && (t = void 0), !!a;
|
|
2184
2184
|
},
|
|
2185
2185
|
get: function(n) {
|
|
2186
|
-
return
|
|
2186
|
+
return $i(t, n);
|
|
2187
2187
|
},
|
|
2188
2188
|
has: function(n) {
|
|
2189
|
-
return
|
|
2189
|
+
return Ui(t, n);
|
|
2190
2190
|
},
|
|
2191
2191
|
set: function(n, o) {
|
|
2192
2192
|
t || (t = {
|
|
2193
2193
|
next: void 0
|
|
2194
|
-
}),
|
|
2194
|
+
}), Li(
|
|
2195
2195
|
/** @type {NonNullable<typeof $o>} */
|
|
2196
2196
|
t,
|
|
2197
2197
|
n,
|
|
@@ -2200,26 +2200,26 @@ var xi = nt, Fi = ge, ot = function(e, t, r) {
|
|
|
2200
2200
|
}
|
|
2201
2201
|
};
|
|
2202
2202
|
return r;
|
|
2203
|
-
},
|
|
2203
|
+
}, Bn = Object, ki = Error, ji = EvalError, qi = RangeError, zi = ReferenceError, Hi = SyntaxError, Wi = URIError, Ji = Math.abs, Gi = Math.floor, Vi = Math.max, Ki = Math.min, Qi = Math.pow, Zi = Math.round, Xi = Number.isNaN || function(t) {
|
|
2204
2204
|
return t !== t;
|
|
2205
|
-
},
|
|
2206
|
-
return
|
|
2207
|
-
},
|
|
2205
|
+
}, Yi = Xi, es = function(t) {
|
|
2206
|
+
return Yi(t) || t === 0 ? t : t < 0 ? -1 : 1;
|
|
2207
|
+
}, ts = Object.getOwnPropertyDescriptor, He = ts;
|
|
2208
2208
|
if (He)
|
|
2209
2209
|
try {
|
|
2210
2210
|
He([], "length");
|
|
2211
2211
|
} catch {
|
|
2212
2212
|
He = null;
|
|
2213
2213
|
}
|
|
2214
|
-
var
|
|
2214
|
+
var kn = He, We = Object.defineProperty || !1;
|
|
2215
2215
|
if (We)
|
|
2216
2216
|
try {
|
|
2217
2217
|
We({}, "a", { value: 1 });
|
|
2218
2218
|
} catch {
|
|
2219
2219
|
We = !1;
|
|
2220
2220
|
}
|
|
2221
|
-
var
|
|
2222
|
-
function
|
|
2221
|
+
var rs = We, ht, _r;
|
|
2222
|
+
function ns() {
|
|
2223
2223
|
return _r || (_r = 1, ht = function() {
|
|
2224
2224
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2225
2225
|
return !1;
|
|
@@ -2249,27 +2249,27 @@ function ts() {
|
|
|
2249
2249
|
}), ht;
|
|
2250
2250
|
}
|
|
2251
2251
|
var mt, Dr;
|
|
2252
|
-
function
|
|
2252
|
+
function os() {
|
|
2253
2253
|
if (Dr) return mt;
|
|
2254
2254
|
Dr = 1;
|
|
2255
|
-
var e = typeof Symbol < "u" && Symbol, t =
|
|
2255
|
+
var e = typeof Symbol < "u" && Symbol, t = ns();
|
|
2256
2256
|
return mt = function() {
|
|
2257
2257
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : t();
|
|
2258
2258
|
}, mt;
|
|
2259
2259
|
}
|
|
2260
2260
|
var gt, $r;
|
|
2261
|
-
function
|
|
2261
|
+
function jn() {
|
|
2262
2262
|
return $r || ($r = 1, gt = typeof Reflect < "u" && Reflect.getPrototypeOf || null), gt;
|
|
2263
2263
|
}
|
|
2264
2264
|
var vt, Lr;
|
|
2265
|
-
function
|
|
2265
|
+
function qn() {
|
|
2266
2266
|
if (Lr) return vt;
|
|
2267
2267
|
Lr = 1;
|
|
2268
|
-
var e =
|
|
2268
|
+
var e = Bn;
|
|
2269
2269
|
return vt = e.getPrototypeOf || null, vt;
|
|
2270
2270
|
}
|
|
2271
2271
|
var St, Ur;
|
|
2272
|
-
function
|
|
2272
|
+
function as() {
|
|
2273
2273
|
if (Ur) return St;
|
|
2274
2274
|
Ur = 1;
|
|
2275
2275
|
var e = "Function.prototype.bind called on incompatible ", t = Object.prototype.toString, r = Math.max, n = "[object Function]", o = function(c, u) {
|
|
@@ -2317,7 +2317,7 @@ var wt, Mr;
|
|
|
2317
2317
|
function at() {
|
|
2318
2318
|
if (Mr) return wt;
|
|
2319
2319
|
Mr = 1;
|
|
2320
|
-
var e =
|
|
2320
|
+
var e = as();
|
|
2321
2321
|
return wt = Function.prototype.bind || e, wt;
|
|
2322
2322
|
}
|
|
2323
2323
|
var bt, Br;
|
|
@@ -2325,18 +2325,18 @@ function Yt() {
|
|
|
2325
2325
|
return Br || (Br = 1, bt = Function.prototype.call), bt;
|
|
2326
2326
|
}
|
|
2327
2327
|
var Et, kr;
|
|
2328
|
-
function
|
|
2328
|
+
function zn() {
|
|
2329
2329
|
return kr || (kr = 1, Et = Function.prototype.apply), Et;
|
|
2330
2330
|
}
|
|
2331
|
-
var
|
|
2331
|
+
var is = typeof Reflect < "u" && Reflect && Reflect.apply, ss = at(), cs = zn(), ls = Yt(), us = is, fs = us || ss.call(ls, cs), ps = at(), ds = ge, ys = Yt(), hs = fs, Hn = function(t) {
|
|
2332
2332
|
if (t.length < 1 || typeof t[0] != "function")
|
|
2333
|
-
throw new
|
|
2334
|
-
return
|
|
2333
|
+
throw new ds("a function is required");
|
|
2334
|
+
return hs(ps, ys, t);
|
|
2335
2335
|
}, Ot, jr;
|
|
2336
|
-
function
|
|
2336
|
+
function ms() {
|
|
2337
2337
|
if (jr) return Ot;
|
|
2338
2338
|
jr = 1;
|
|
2339
|
-
var e =
|
|
2339
|
+
var e = Hn, t = kn, r;
|
|
2340
2340
|
try {
|
|
2341
2341
|
r = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
2342
2342
|
[].__proto__ === Array.prototype;
|
|
@@ -2357,10 +2357,10 @@ function ys() {
|
|
|
2357
2357
|
) : !1, Ot;
|
|
2358
2358
|
}
|
|
2359
2359
|
var At, qr;
|
|
2360
|
-
function
|
|
2360
|
+
function gs() {
|
|
2361
2361
|
if (qr) return At;
|
|
2362
2362
|
qr = 1;
|
|
2363
|
-
var e =
|
|
2363
|
+
var e = jn(), t = qn(), r = ms();
|
|
2364
2364
|
return At = e ? function(o) {
|
|
2365
2365
|
return e(o);
|
|
2366
2366
|
} : t ? function(o) {
|
|
@@ -2372,20 +2372,20 @@ function hs() {
|
|
|
2372
2372
|
} : null, At;
|
|
2373
2373
|
}
|
|
2374
2374
|
var Rt, zr;
|
|
2375
|
-
function
|
|
2375
|
+
function vs() {
|
|
2376
2376
|
if (zr) return Rt;
|
|
2377
2377
|
zr = 1;
|
|
2378
2378
|
var e = Function.prototype.call, t = Object.prototype.hasOwnProperty, r = at();
|
|
2379
2379
|
return Rt = r.call(e, t), Rt;
|
|
2380
2380
|
}
|
|
2381
|
-
var b,
|
|
2381
|
+
var b, Ss = Bn, ws = ki, bs = ji, Es = qi, Os = zi, ye = Hi, fe = ge, As = Wi, Rs = Ji, Ps = Gi, Is = Vi, Cs = Ki, Ts = Qi, Ns = Zi, xs = es, Wn = Function, Pt = function(e) {
|
|
2382
2382
|
try {
|
|
2383
|
-
return
|
|
2383
|
+
return Wn('"use strict"; return (' + e + ").constructor;")();
|
|
2384
2384
|
} catch {
|
|
2385
2385
|
}
|
|
2386
|
-
}, Ie =
|
|
2386
|
+
}, Ie = kn, Fs = rs, It = function() {
|
|
2387
2387
|
throw new fe();
|
|
2388
|
-
},
|
|
2388
|
+
}, _s = Ie ? function() {
|
|
2389
2389
|
try {
|
|
2390
2390
|
return arguments.callee, It;
|
|
2391
2391
|
} catch {
|
|
@@ -2395,7 +2395,7 @@ var b, gs = Mn, vs = Mi, Ss = Bi, ws = ki, bs = ji, ye = qi, fe = ge, Es = zi, O
|
|
|
2395
2395
|
return It;
|
|
2396
2396
|
}
|
|
2397
2397
|
}
|
|
2398
|
-
}() : It, ce =
|
|
2398
|
+
}() : It, ce = os()(), T = gs(), Ds = qn(), $s = jn(), Jn = zn(), _e = Yt(), ue = {}, Ls = typeof Uint8Array > "u" || !T ? b : T(Uint8Array), re = {
|
|
2399
2399
|
__proto__: null,
|
|
2400
2400
|
"%AggregateError%": typeof AggregateError > "u" ? b : AggregateError,
|
|
2401
2401
|
"%Array%": Array,
|
|
@@ -2417,15 +2417,15 @@ var b, gs = Mn, vs = Mi, Ss = Bi, ws = ki, bs = ji, ye = qi, fe = ge, Es = zi, O
|
|
|
2417
2417
|
"%decodeURIComponent%": decodeURIComponent,
|
|
2418
2418
|
"%encodeURI%": encodeURI,
|
|
2419
2419
|
"%encodeURIComponent%": encodeURIComponent,
|
|
2420
|
-
"%Error%":
|
|
2420
|
+
"%Error%": ws,
|
|
2421
2421
|
"%eval%": eval,
|
|
2422
2422
|
// eslint-disable-line no-eval
|
|
2423
|
-
"%EvalError%":
|
|
2423
|
+
"%EvalError%": bs,
|
|
2424
2424
|
"%Float16Array%": typeof Float16Array > "u" ? b : Float16Array,
|
|
2425
2425
|
"%Float32Array%": typeof Float32Array > "u" ? b : Float32Array,
|
|
2426
2426
|
"%Float64Array%": typeof Float64Array > "u" ? b : Float64Array,
|
|
2427
2427
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? b : FinalizationRegistry,
|
|
2428
|
-
"%Function%":
|
|
2428
|
+
"%Function%": Wn,
|
|
2429
2429
|
"%GeneratorFunction%": ue,
|
|
2430
2430
|
"%Int8Array%": typeof Int8Array > "u" ? b : Int8Array,
|
|
2431
2431
|
"%Int16Array%": typeof Int16Array > "u" ? b : Int16Array,
|
|
@@ -2438,14 +2438,14 @@ var b, gs = Mn, vs = Mi, Ss = Bi, ws = ki, bs = ji, ye = qi, fe = ge, Es = zi, O
|
|
|
2438
2438
|
"%MapIteratorPrototype%": typeof Map > "u" || !ce || !T ? b : T((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2439
2439
|
"%Math%": Math,
|
|
2440
2440
|
"%Number%": Number,
|
|
2441
|
-
"%Object%":
|
|
2441
|
+
"%Object%": Ss,
|
|
2442
2442
|
"%Object.getOwnPropertyDescriptor%": Ie,
|
|
2443
2443
|
"%parseFloat%": parseFloat,
|
|
2444
2444
|
"%parseInt%": parseInt,
|
|
2445
2445
|
"%Promise%": typeof Promise > "u" ? b : Promise,
|
|
2446
2446
|
"%Proxy%": typeof Proxy > "u" ? b : Proxy,
|
|
2447
|
-
"%RangeError%":
|
|
2448
|
-
"%ReferenceError%":
|
|
2447
|
+
"%RangeError%": Es,
|
|
2448
|
+
"%ReferenceError%": Os,
|
|
2449
2449
|
"%Reflect%": typeof Reflect > "u" ? b : Reflect,
|
|
2450
2450
|
"%RegExp%": RegExp,
|
|
2451
2451
|
"%Set%": typeof Set > "u" ? b : Set,
|
|
@@ -2455,38 +2455,38 @@ var b, gs = Mn, vs = Mi, Ss = Bi, ws = ki, bs = ji, ye = qi, fe = ge, Es = zi, O
|
|
|
2455
2455
|
"%StringIteratorPrototype%": ce && T ? T(""[Symbol.iterator]()) : b,
|
|
2456
2456
|
"%Symbol%": ce ? Symbol : b,
|
|
2457
2457
|
"%SyntaxError%": ye,
|
|
2458
|
-
"%ThrowTypeError%":
|
|
2459
|
-
"%TypedArray%":
|
|
2458
|
+
"%ThrowTypeError%": _s,
|
|
2459
|
+
"%TypedArray%": Ls,
|
|
2460
2460
|
"%TypeError%": fe,
|
|
2461
2461
|
"%Uint8Array%": typeof Uint8Array > "u" ? b : Uint8Array,
|
|
2462
2462
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? b : Uint8ClampedArray,
|
|
2463
2463
|
"%Uint16Array%": typeof Uint16Array > "u" ? b : Uint16Array,
|
|
2464
2464
|
"%Uint32Array%": typeof Uint32Array > "u" ? b : Uint32Array,
|
|
2465
|
-
"%URIError%":
|
|
2465
|
+
"%URIError%": As,
|
|
2466
2466
|
"%WeakMap%": typeof WeakMap > "u" ? b : WeakMap,
|
|
2467
2467
|
"%WeakRef%": typeof WeakRef > "u" ? b : WeakRef,
|
|
2468
2468
|
"%WeakSet%": typeof WeakSet > "u" ? b : WeakSet,
|
|
2469
2469
|
"%Function.prototype.call%": _e,
|
|
2470
|
-
"%Function.prototype.apply%":
|
|
2471
|
-
"%Object.defineProperty%":
|
|
2472
|
-
"%Object.getPrototypeOf%":
|
|
2473
|
-
"%Math.abs%":
|
|
2474
|
-
"%Math.floor%":
|
|
2475
|
-
"%Math.max%":
|
|
2476
|
-
"%Math.min%":
|
|
2477
|
-
"%Math.pow%":
|
|
2478
|
-
"%Math.round%":
|
|
2479
|
-
"%Math.sign%":
|
|
2480
|
-
"%Reflect.getPrototypeOf%":
|
|
2470
|
+
"%Function.prototype.apply%": Jn,
|
|
2471
|
+
"%Object.defineProperty%": Fs,
|
|
2472
|
+
"%Object.getPrototypeOf%": Ds,
|
|
2473
|
+
"%Math.abs%": Rs,
|
|
2474
|
+
"%Math.floor%": Ps,
|
|
2475
|
+
"%Math.max%": Is,
|
|
2476
|
+
"%Math.min%": Cs,
|
|
2477
|
+
"%Math.pow%": Ts,
|
|
2478
|
+
"%Math.round%": Ns,
|
|
2479
|
+
"%Math.sign%": xs,
|
|
2480
|
+
"%Reflect.getPrototypeOf%": $s
|
|
2481
2481
|
};
|
|
2482
2482
|
if (T)
|
|
2483
2483
|
try {
|
|
2484
2484
|
null.error;
|
|
2485
2485
|
} catch (e) {
|
|
2486
|
-
var
|
|
2487
|
-
re["%Error.prototype%"] =
|
|
2486
|
+
var Us = T(T(e));
|
|
2487
|
+
re["%Error.prototype%"] = Us;
|
|
2488
2488
|
}
|
|
2489
|
-
var
|
|
2489
|
+
var Ms = function e(t) {
|
|
2490
2490
|
var r;
|
|
2491
2491
|
if (t === "%AsyncFunction%")
|
|
2492
2492
|
r = Pt("async function () {}");
|
|
@@ -2555,21 +2555,21 @@ var Ls = function e(t) {
|
|
|
2555
2555
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2556
2556
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2557
2557
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2558
|
-
}, De = at(), Qe =
|
|
2559
|
-
var r =
|
|
2558
|
+
}, De = at(), Qe = vs(), Bs = De.call(_e, Array.prototype.concat), ks = De.call(Jn, Array.prototype.splice), Wr = De.call(_e, String.prototype.replace), Ze = De.call(_e, String.prototype.slice), js = De.call(_e, RegExp.prototype.exec), qs = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, zs = /\\(\\)?/g, Hs = function(t) {
|
|
2559
|
+
var r = Ze(t, 0, 1), n = Ze(t, -1);
|
|
2560
2560
|
if (r === "%" && n !== "%")
|
|
2561
2561
|
throw new ye("invalid intrinsic syntax, expected closing `%`");
|
|
2562
2562
|
if (n === "%" && r !== "%")
|
|
2563
2563
|
throw new ye("invalid intrinsic syntax, expected opening `%`");
|
|
2564
2564
|
var o = [];
|
|
2565
|
-
return Wr(t,
|
|
2566
|
-
o[o.length] = s ? Wr(c,
|
|
2565
|
+
return Wr(t, qs, function(a, i, s, c) {
|
|
2566
|
+
o[o.length] = s ? Wr(c, zs, "$1") : i || a;
|
|
2567
2567
|
}), o;
|
|
2568
|
-
},
|
|
2568
|
+
}, Ws = function(t, r) {
|
|
2569
2569
|
var n = t, o;
|
|
2570
2570
|
if (Qe(Hr, n) && (o = Hr[n], n = "%" + o[0] + "%"), Qe(re, n)) {
|
|
2571
2571
|
var a = re[n];
|
|
2572
|
-
if (a === ue && (a =
|
|
2572
|
+
if (a === ue && (a = Ms(n)), typeof a > "u" && !r)
|
|
2573
2573
|
throw new fe("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
2574
2574
|
return {
|
|
2575
2575
|
alias: o,
|
|
@@ -2583,12 +2583,12 @@ var Ls = function e(t) {
|
|
|
2583
2583
|
throw new fe("intrinsic name must be a non-empty string");
|
|
2584
2584
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
2585
2585
|
throw new fe('"allowMissing" argument must be a boolean');
|
|
2586
|
-
if (
|
|
2586
|
+
if (js(/^%?[^%]*%?$/, t) === null)
|
|
2587
2587
|
throw new ye("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2588
|
-
var n =
|
|
2589
|
-
u && (o = u[0],
|
|
2588
|
+
var n = Hs(t), o = n.length > 0 ? n[0] : "", a = Ws("%" + o + "%", r), i = a.name, s = a.value, c = !1, u = a.alias;
|
|
2589
|
+
u && (o = u[0], ks(n, Bs([0, 1], u)));
|
|
2590
2590
|
for (var l = 1, f = !0; l < n.length; l += 1) {
|
|
2591
|
-
var d = n[l], v =
|
|
2591
|
+
var d = n[l], v = Ze(d, 0, 1), y = Ze(d, -1);
|
|
2592
2592
|
if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
|
|
2593
2593
|
throw new ye("property names with quotes must have matching quotes");
|
|
2594
2594
|
if ((d === "constructor" || !f) && (c = !0), o += "." + d, i = "%" + o + "%", Qe(re, i))
|
|
@@ -2608,74 +2608,74 @@ var Ls = function e(t) {
|
|
|
2608
2608
|
}
|
|
2609
2609
|
}
|
|
2610
2610
|
return s;
|
|
2611
|
-
},
|
|
2611
|
+
}, Gn = er, Vn = Hn, Js = Vn([Gn("%String.prototype.indexOf%")]), Kn = function(t, r) {
|
|
2612
2612
|
var n = (
|
|
2613
2613
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
2614
|
-
|
|
2614
|
+
Gn(t, !!r)
|
|
2615
2615
|
);
|
|
2616
|
-
return typeof n == "function" &&
|
|
2616
|
+
return typeof n == "function" && Js(t, ".prototype.") > -1 ? Vn(
|
|
2617
2617
|
/** @type {const} */
|
|
2618
2618
|
[n]
|
|
2619
2619
|
) : n;
|
|
2620
|
-
},
|
|
2620
|
+
}, Gs = er, $e = Kn, Vs = nt, Ks = ge, Jr = Gs("%Map%", !0), Qs = $e("Map.prototype.get", !0), Zs = $e("Map.prototype.set", !0), Xs = $e("Map.prototype.has", !0), Ys = $e("Map.prototype.delete", !0), ec = $e("Map.prototype.size", !0), Qn = !!Jr && /** @type {Exclude<import('.'), false>} */
|
|
2621
2621
|
function() {
|
|
2622
2622
|
var t, r = {
|
|
2623
2623
|
assert: function(n) {
|
|
2624
2624
|
if (!r.has(n))
|
|
2625
|
-
throw new
|
|
2625
|
+
throw new Ks("Side channel does not contain " + Vs(n));
|
|
2626
2626
|
},
|
|
2627
2627
|
delete: function(n) {
|
|
2628
2628
|
if (t) {
|
|
2629
|
-
var o =
|
|
2630
|
-
return
|
|
2629
|
+
var o = Ys(t, n);
|
|
2630
|
+
return ec(t) === 0 && (t = void 0), o;
|
|
2631
2631
|
}
|
|
2632
2632
|
return !1;
|
|
2633
2633
|
},
|
|
2634
2634
|
get: function(n) {
|
|
2635
2635
|
if (t)
|
|
2636
|
-
return
|
|
2636
|
+
return Qs(t, n);
|
|
2637
2637
|
},
|
|
2638
2638
|
has: function(n) {
|
|
2639
|
-
return t ?
|
|
2639
|
+
return t ? Xs(t, n) : !1;
|
|
2640
2640
|
},
|
|
2641
2641
|
set: function(n, o) {
|
|
2642
|
-
t || (t = new Jr()),
|
|
2642
|
+
t || (t = new Jr()), Zs(t, n, o);
|
|
2643
2643
|
}
|
|
2644
2644
|
};
|
|
2645
2645
|
return r;
|
|
2646
|
-
},
|
|
2646
|
+
}, tc = er, it = Kn, rc = nt, Be = Qn, nc = ge, le = tc("%WeakMap%", !0), oc = it("WeakMap.prototype.get", !0), ac = it("WeakMap.prototype.set", !0), ic = it("WeakMap.prototype.has", !0), sc = it("WeakMap.prototype.delete", !0), cc = le ? (
|
|
2647
2647
|
/** @type {Exclude<import('.'), false>} */
|
|
2648
2648
|
function() {
|
|
2649
2649
|
var t, r, n = {
|
|
2650
2650
|
assert: function(o) {
|
|
2651
2651
|
if (!n.has(o))
|
|
2652
|
-
throw new
|
|
2652
|
+
throw new nc("Side channel does not contain " + rc(o));
|
|
2653
2653
|
},
|
|
2654
2654
|
delete: function(o) {
|
|
2655
2655
|
if (le && o && (typeof o == "object" || typeof o == "function")) {
|
|
2656
2656
|
if (t)
|
|
2657
|
-
return
|
|
2657
|
+
return sc(t, o);
|
|
2658
2658
|
} else if (Be && r)
|
|
2659
2659
|
return r.delete(o);
|
|
2660
2660
|
return !1;
|
|
2661
2661
|
},
|
|
2662
2662
|
get: function(o) {
|
|
2663
|
-
return le && o && (typeof o == "object" || typeof o == "function") && t ?
|
|
2663
|
+
return le && o && (typeof o == "object" || typeof o == "function") && t ? oc(t, o) : r && r.get(o);
|
|
2664
2664
|
},
|
|
2665
2665
|
has: function(o) {
|
|
2666
|
-
return le && o && (typeof o == "object" || typeof o == "function") && t ?
|
|
2666
|
+
return le && o && (typeof o == "object" || typeof o == "function") && t ? ic(t, o) : !!r && r.has(o);
|
|
2667
2667
|
},
|
|
2668
2668
|
set: function(o, a) {
|
|
2669
|
-
le && o && (typeof o == "object" || typeof o == "function") ? (t || (t = new le()),
|
|
2669
|
+
le && o && (typeof o == "object" || typeof o == "function") ? (t || (t = new le()), ac(t, o, a)) : Be && (r || (r = Be()), r.set(o, a));
|
|
2670
2670
|
}
|
|
2671
2671
|
};
|
|
2672
2672
|
return n;
|
|
2673
2673
|
}
|
|
2674
|
-
) : Be,
|
|
2674
|
+
) : Be, lc = ge, uc = nt, fc = Bi, pc = Qn, dc = cc, yc = dc || pc || fc, hc = function() {
|
|
2675
2675
|
var t, r = {
|
|
2676
2676
|
assert: function(n) {
|
|
2677
2677
|
if (!r.has(n))
|
|
2678
|
-
throw new
|
|
2678
|
+
throw new lc("Side channel does not contain " + uc(n));
|
|
2679
2679
|
},
|
|
2680
2680
|
delete: function(n) {
|
|
2681
2681
|
return !!t && t.delete(n);
|
|
@@ -2687,18 +2687,18 @@ function() {
|
|
|
2687
2687
|
return !!t && t.has(n);
|
|
2688
2688
|
},
|
|
2689
2689
|
set: function(n, o) {
|
|
2690
|
-
t || (t =
|
|
2690
|
+
t || (t = yc()), t.set(n, o);
|
|
2691
2691
|
}
|
|
2692
2692
|
};
|
|
2693
2693
|
return r;
|
|
2694
|
-
},
|
|
2694
|
+
}, mc = String.prototype.replace, gc = /%20/g, Ct = {
|
|
2695
2695
|
RFC1738: "RFC1738",
|
|
2696
2696
|
RFC3986: "RFC3986"
|
|
2697
2697
|
}, tr = {
|
|
2698
2698
|
default: Ct.RFC3986,
|
|
2699
2699
|
formatters: {
|
|
2700
2700
|
RFC1738: function(e) {
|
|
2701
|
-
return
|
|
2701
|
+
return mc.call(e, gc, "+");
|
|
2702
2702
|
},
|
|
2703
2703
|
RFC3986: function(e) {
|
|
2704
2704
|
return String(e);
|
|
@@ -2706,11 +2706,11 @@ function() {
|
|
|
2706
2706
|
},
|
|
2707
2707
|
RFC1738: Ct.RFC1738,
|
|
2708
2708
|
RFC3986: Ct.RFC3986
|
|
2709
|
-
},
|
|
2709
|
+
}, vc = tr, Tt = Object.prototype.hasOwnProperty, Y = Array.isArray, H = function() {
|
|
2710
2710
|
for (var e = [], t = 0; t < 256; ++t)
|
|
2711
2711
|
e.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase());
|
|
2712
2712
|
return e;
|
|
2713
|
-
}(),
|
|
2713
|
+
}(), Sc = function(t) {
|
|
2714
2714
|
for (; t.length > 1; ) {
|
|
2715
2715
|
var r = t.pop(), n = r.obj[r.prop];
|
|
2716
2716
|
if (Y(n)) {
|
|
@@ -2719,11 +2719,11 @@ function() {
|
|
|
2719
2719
|
r.obj[r.prop] = o;
|
|
2720
2720
|
}
|
|
2721
2721
|
}
|
|
2722
|
-
},
|
|
2722
|
+
}, Zn = function(t, r) {
|
|
2723
2723
|
for (var n = r && r.plainObjects ? { __proto__: null } : {}, o = 0; o < t.length; ++o)
|
|
2724
2724
|
typeof t[o] < "u" && (n[o] = t[o]);
|
|
2725
2725
|
return n;
|
|
2726
|
-
},
|
|
2726
|
+
}, wc = function e(t, r, n) {
|
|
2727
2727
|
if (!r)
|
|
2728
2728
|
return t;
|
|
2729
2729
|
if (typeof r != "object" && typeof r != "function") {
|
|
@@ -2738,7 +2738,7 @@ function() {
|
|
|
2738
2738
|
if (!t || typeof t != "object")
|
|
2739
2739
|
return [t].concat(r);
|
|
2740
2740
|
var o = t;
|
|
2741
|
-
return Y(t) && !Y(r) && (o =
|
|
2741
|
+
return Y(t) && !Y(r) && (o = Zn(t, n)), Y(t) && Y(r) ? (r.forEach(function(a, i) {
|
|
2742
2742
|
if (Tt.call(t, i)) {
|
|
2743
2743
|
var s = t[i];
|
|
2744
2744
|
s && typeof s == "object" && a && typeof a == "object" ? t[i] = e(s, a, n) : t.push(a);
|
|
@@ -2748,11 +2748,11 @@ function() {
|
|
|
2748
2748
|
var s = r[i];
|
|
2749
2749
|
return Tt.call(a, i) ? a[i] = e(a[i], s, n) : a[i] = s, a;
|
|
2750
2750
|
}, o);
|
|
2751
|
-
},
|
|
2751
|
+
}, bc = function(t, r) {
|
|
2752
2752
|
return Object.keys(r).reduce(function(n, o) {
|
|
2753
2753
|
return n[o] = r[o], n;
|
|
2754
2754
|
}, t);
|
|
2755
|
-
},
|
|
2755
|
+
}, Ec = function(e, t, r) {
|
|
2756
2756
|
var n = e.replace(/\+/g, " ");
|
|
2757
2757
|
if (r === "iso-8859-1")
|
|
2758
2758
|
return n.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -2761,7 +2761,7 @@ function() {
|
|
|
2761
2761
|
} catch {
|
|
2762
2762
|
return n;
|
|
2763
2763
|
}
|
|
2764
|
-
}, Nt = 1024,
|
|
2764
|
+
}, Nt = 1024, Oc = function(t, r, n, o, a) {
|
|
2765
2765
|
if (t.length === 0)
|
|
2766
2766
|
return t;
|
|
2767
2767
|
var i = t;
|
|
@@ -2772,7 +2772,7 @@ function() {
|
|
|
2772
2772
|
for (var s = "", c = 0; c < i.length; c += Nt) {
|
|
2773
2773
|
for (var u = i.length >= Nt ? i.slice(c, c + Nt) : i, l = [], f = 0; f < u.length; ++f) {
|
|
2774
2774
|
var d = u.charCodeAt(f);
|
|
2775
|
-
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a ===
|
|
2775
|
+
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a === vc.RFC1738 && (d === 40 || d === 41)) {
|
|
2776
2776
|
l[l.length] = u.charAt(f);
|
|
2777
2777
|
continue;
|
|
2778
2778
|
}
|
|
@@ -2793,20 +2793,20 @@ function() {
|
|
|
2793
2793
|
s += l.join("");
|
|
2794
2794
|
}
|
|
2795
2795
|
return s;
|
|
2796
|
-
},
|
|
2796
|
+
}, Ac = function(t) {
|
|
2797
2797
|
for (var r = [{ obj: { o: t }, prop: "o" }], n = [], o = 0; o < r.length; ++o)
|
|
2798
2798
|
for (var a = r[o], i = a.obj[a.prop], s = Object.keys(i), c = 0; c < s.length; ++c) {
|
|
2799
2799
|
var u = s[c], l = i[u];
|
|
2800
2800
|
typeof l == "object" && l !== null && n.indexOf(l) === -1 && (r.push({ obj: i, prop: u }), n.push(l));
|
|
2801
2801
|
}
|
|
2802
|
-
return
|
|
2803
|
-
},
|
|
2802
|
+
return Sc(r), t;
|
|
2803
|
+
}, Rc = function(t) {
|
|
2804
2804
|
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
2805
|
-
},
|
|
2805
|
+
}, Pc = function(t) {
|
|
2806
2806
|
return !t || typeof t != "object" ? !1 : !!(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t));
|
|
2807
|
-
},
|
|
2807
|
+
}, Ic = function(t, r) {
|
|
2808
2808
|
return [].concat(t, r);
|
|
2809
|
-
},
|
|
2809
|
+
}, Cc = function(t, r) {
|
|
2810
2810
|
if (Y(t)) {
|
|
2811
2811
|
for (var n = [], o = 0; o < t.length; o += 1)
|
|
2812
2812
|
n.push(r(t[o]));
|
|
@@ -2814,17 +2814,17 @@ function() {
|
|
|
2814
2814
|
}
|
|
2815
2815
|
return r(t);
|
|
2816
2816
|
}, Xn = {
|
|
2817
|
-
arrayToObject:
|
|
2818
|
-
assign:
|
|
2819
|
-
combine:
|
|
2820
|
-
compact:
|
|
2821
|
-
decode:
|
|
2822
|
-
encode:
|
|
2823
|
-
isBuffer:
|
|
2824
|
-
isRegExp:
|
|
2825
|
-
maybeMap:
|
|
2826
|
-
merge:
|
|
2827
|
-
},
|
|
2817
|
+
arrayToObject: Zn,
|
|
2818
|
+
assign: bc,
|
|
2819
|
+
combine: Ic,
|
|
2820
|
+
compact: Ac,
|
|
2821
|
+
decode: Ec,
|
|
2822
|
+
encode: Oc,
|
|
2823
|
+
isBuffer: Pc,
|
|
2824
|
+
isRegExp: Rc,
|
|
2825
|
+
maybeMap: Cc,
|
|
2826
|
+
merge: wc
|
|
2827
|
+
}, Yn = hc, Je = Xn, Re = tr, Tc = Object.prototype.hasOwnProperty, eo = {
|
|
2828
2828
|
brackets: function(t) {
|
|
2829
2829
|
return t + "[]";
|
|
2830
2830
|
},
|
|
@@ -2835,9 +2835,9 @@ function() {
|
|
|
2835
2835
|
repeat: function(t) {
|
|
2836
2836
|
return t;
|
|
2837
2837
|
}
|
|
2838
|
-
}, W = Array.isArray,
|
|
2839
|
-
|
|
2840
|
-
},
|
|
2838
|
+
}, W = Array.isArray, Nc = Array.prototype.push, to = function(e, t) {
|
|
2839
|
+
Nc.apply(e, W(t) ? t : [t]);
|
|
2840
|
+
}, xc = Date.prototype.toISOString, Gr = Re.default, C = {
|
|
2841
2841
|
addQueryPrefix: !1,
|
|
2842
2842
|
allowDots: !1,
|
|
2843
2843
|
allowEmptyArrays: !1,
|
|
@@ -2856,13 +2856,13 @@ function() {
|
|
|
2856
2856
|
// deprecated
|
|
2857
2857
|
indices: !1,
|
|
2858
2858
|
serializeDate: function(t) {
|
|
2859
|
-
return
|
|
2859
|
+
return xc.call(t);
|
|
2860
2860
|
},
|
|
2861
2861
|
skipNulls: !1,
|
|
2862
2862
|
strictNullHandling: !1
|
|
2863
|
-
},
|
|
2863
|
+
}, Fc = function(t) {
|
|
2864
2864
|
return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
|
|
2865
|
-
}, xt = {},
|
|
2865
|
+
}, xt = {}, _c = function e(t, r, n, o, a, i, s, c, u, l, f, d, v, y, m, h, w, O) {
|
|
2866
2866
|
for (var g = t, E = O, P = 0, L = !1; (E = E.get(xt)) !== void 0 && !L; ) {
|
|
2867
2867
|
var I = E.get(t);
|
|
2868
2868
|
if (P += 1, typeof I < "u") {
|
|
@@ -2879,7 +2879,7 @@ function() {
|
|
|
2879
2879
|
return u && !h ? u(r, C.encoder, w, "key", y) : r;
|
|
2880
2880
|
g = "";
|
|
2881
2881
|
}
|
|
2882
|
-
if (
|
|
2882
|
+
if (Fc(g) || Je.isBuffer(g)) {
|
|
2883
2883
|
if (u) {
|
|
2884
2884
|
var V = h ? r : u(r, C.encoder, w, "key", y);
|
|
2885
2885
|
return [m(V) + "=" + m(u(g, C.encoder, w, "value", y))];
|
|
@@ -2895,8 +2895,8 @@ function() {
|
|
|
2895
2895
|
else if (W(l))
|
|
2896
2896
|
B = l;
|
|
2897
2897
|
else {
|
|
2898
|
-
var
|
|
2899
|
-
B = f ?
|
|
2898
|
+
var X = Object.keys(g);
|
|
2899
|
+
B = f ? X.sort(f) : X;
|
|
2900
2900
|
}
|
|
2901
2901
|
var k = c ? String(r).replace(/\./g, "%2E") : String(r), N = o && W(g) && g.length === 1 ? k + "[]" : k;
|
|
2902
2902
|
if (a && W(g) && g.length === 0)
|
|
@@ -2906,8 +2906,8 @@ function() {
|
|
|
2906
2906
|
if (!(s && F === null)) {
|
|
2907
2907
|
var ie = d && c ? String(M).replace(/\./g, "%2E") : String(M), q = W(g) ? typeof n == "function" ? n(N, ie) : N : N + (d ? "." + ie : "[" + ie + "]");
|
|
2908
2908
|
O.set(t, P);
|
|
2909
|
-
var ve =
|
|
2910
|
-
ve.set(xt, O),
|
|
2909
|
+
var ve = Yn();
|
|
2910
|
+
ve.set(xt, O), to(U, e(
|
|
2911
2911
|
F,
|
|
2912
2912
|
q,
|
|
2913
2913
|
n,
|
|
@@ -2930,7 +2930,7 @@ function() {
|
|
|
2930
2930
|
}
|
|
2931
2931
|
}
|
|
2932
2932
|
return U;
|
|
2933
|
-
},
|
|
2933
|
+
}, Dc = function(t) {
|
|
2934
2934
|
if (!t)
|
|
2935
2935
|
return C;
|
|
2936
2936
|
if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
|
|
@@ -2944,14 +2944,14 @@ function() {
|
|
|
2944
2944
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
2945
2945
|
var n = Re.default;
|
|
2946
2946
|
if (typeof t.format < "u") {
|
|
2947
|
-
if (!
|
|
2947
|
+
if (!Tc.call(Re.formatters, t.format))
|
|
2948
2948
|
throw new TypeError("Unknown format option provided.");
|
|
2949
2949
|
n = t.format;
|
|
2950
2950
|
}
|
|
2951
2951
|
var o = Re.formatters[n], a = C.filter;
|
|
2952
2952
|
(typeof t.filter == "function" || W(t.filter)) && (a = t.filter);
|
|
2953
2953
|
var i;
|
|
2954
|
-
if (t.arrayFormat in
|
|
2954
|
+
if (t.arrayFormat in eo ? i = t.arrayFormat : "indices" in t ? i = t.indices ? "indices" : "repeat" : i = C.arrayFormat, "commaRoundTrip" in t && typeof t.commaRoundTrip != "boolean")
|
|
2955
2955
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
2956
2956
|
var s = typeof t.allowDots > "u" ? t.encodeDotInKeys === !0 ? !0 : C.allowDots : !!t.allowDots;
|
|
2957
2957
|
return {
|
|
@@ -2975,17 +2975,17 @@ function() {
|
|
|
2975
2975
|
sort: typeof t.sort == "function" ? t.sort : null,
|
|
2976
2976
|
strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : C.strictNullHandling
|
|
2977
2977
|
};
|
|
2978
|
-
},
|
|
2979
|
-
var r = e, n =
|
|
2978
|
+
}, $c = function(e, t) {
|
|
2979
|
+
var r = e, n = Dc(t), o, a;
|
|
2980
2980
|
typeof n.filter == "function" ? (a = n.filter, r = a("", r)) : W(n.filter) && (a = n.filter, o = a);
|
|
2981
2981
|
var i = [];
|
|
2982
2982
|
if (typeof r != "object" || r === null)
|
|
2983
2983
|
return "";
|
|
2984
|
-
var s =
|
|
2984
|
+
var s = eo[n.arrayFormat], c = s === "comma" && n.commaRoundTrip;
|
|
2985
2985
|
o || (o = Object.keys(r)), n.sort && o.sort(n.sort);
|
|
2986
|
-
for (var u =
|
|
2986
|
+
for (var u = Yn(), l = 0; l < o.length; ++l) {
|
|
2987
2987
|
var f = o[l], d = r[f];
|
|
2988
|
-
n.skipNulls && d === null ||
|
|
2988
|
+
n.skipNulls && d === null || to(i, _c(
|
|
2989
2989
|
d,
|
|
2990
2990
|
f,
|
|
2991
2991
|
s,
|
|
@@ -3030,17 +3030,17 @@ function() {
|
|
|
3030
3030
|
strictDepth: !1,
|
|
3031
3031
|
strictNullHandling: !1,
|
|
3032
3032
|
throwOnLimitExceeded: !1
|
|
3033
|
-
},
|
|
3033
|
+
}, Lc = function(e) {
|
|
3034
3034
|
return e.replace(/&#(\d+);/g, function(t, r) {
|
|
3035
3035
|
return String.fromCharCode(parseInt(r, 10));
|
|
3036
3036
|
});
|
|
3037
|
-
},
|
|
3037
|
+
}, ro = function(e, t, r) {
|
|
3038
3038
|
if (e && typeof e == "string" && t.comma && e.indexOf(",") > -1)
|
|
3039
3039
|
return e.split(",");
|
|
3040
3040
|
if (t.throwOnLimitExceeded && r >= t.arrayLimit)
|
|
3041
3041
|
throw new RangeError("Array limit exceeded. Only " + t.arrayLimit + " element" + (t.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
3042
3042
|
return e;
|
|
3043
|
-
},
|
|
3043
|
+
}, Uc = "utf8=%26%2310003%3B", Mc = "utf8=%E2%9C%93", Bc = function(t, r) {
|
|
3044
3044
|
var n = { __proto__: null }, o = r.ignoreQueryPrefix ? t.replace(/^\?/, "") : t;
|
|
3045
3045
|
o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
3046
3046
|
var a = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, i = o.split(
|
|
@@ -3052,12 +3052,12 @@ function() {
|
|
|
3052
3052
|
var s = -1, c, u = r.charset;
|
|
3053
3053
|
if (r.charsetSentinel)
|
|
3054
3054
|
for (c = 0; c < i.length; ++c)
|
|
3055
|
-
i[c].indexOf("utf8=") === 0 && (i[c] ===
|
|
3055
|
+
i[c].indexOf("utf8=") === 0 && (i[c] === Mc ? u = "utf-8" : i[c] === Uc && (u = "iso-8859-1"), s = c, c = i.length);
|
|
3056
3056
|
for (c = 0; c < i.length; ++c)
|
|
3057
3057
|
if (c !== s) {
|
|
3058
3058
|
var l = i[c], f = l.indexOf("]="), d = f === -1 ? l.indexOf("=") : f + 1, v, y;
|
|
3059
3059
|
d === -1 ? (v = r.decoder(l, A.decoder, u, "key"), y = r.strictNullHandling ? null : "") : (v = r.decoder(l.slice(0, d), A.decoder, u, "key"), y = oe.maybeMap(
|
|
3060
|
-
|
|
3060
|
+
ro(
|
|
3061
3061
|
l.slice(d + 1),
|
|
3062
3062
|
r,
|
|
3063
3063
|
Vr(n[v]) ? n[v].length : 0
|
|
@@ -3065,18 +3065,18 @@ function() {
|
|
|
3065
3065
|
function(h) {
|
|
3066
3066
|
return r.decoder(h, A.decoder, u, "value");
|
|
3067
3067
|
}
|
|
3068
|
-
)), y && r.interpretNumericEntities && u === "iso-8859-1" && (y =
|
|
3068
|
+
)), y && r.interpretNumericEntities && u === "iso-8859-1" && (y = Lc(String(y))), l.indexOf("[]=") > -1 && (y = Vr(y) ? [y] : y);
|
|
3069
3069
|
var m = zt.call(n, v);
|
|
3070
3070
|
m && r.duplicates === "combine" ? n[v] = oe.combine(n[v], y) : (!m || r.duplicates === "last") && (n[v] = y);
|
|
3071
3071
|
}
|
|
3072
3072
|
return n;
|
|
3073
|
-
},
|
|
3073
|
+
}, kc = function(e, t, r, n) {
|
|
3074
3074
|
var o = 0;
|
|
3075
3075
|
if (e.length > 0 && e[e.length - 1] === "[]") {
|
|
3076
3076
|
var a = e.slice(0, -1).join("");
|
|
3077
3077
|
o = Array.isArray(t) && t[a] ? t[a].length : 0;
|
|
3078
3078
|
}
|
|
3079
|
-
for (var i = n ? t :
|
|
3079
|
+
for (var i = n ? t : ro(t, r, o), s = e.length - 1; s >= 0; --s) {
|
|
3080
3080
|
var c, u = e[s];
|
|
3081
3081
|
if (u === "[]" && r.parseArrays)
|
|
3082
3082
|
c = r.allowEmptyArrays && (i === "" || r.strictNullHandling && i === null) ? [] : oe.combine([], i);
|
|
@@ -3088,7 +3088,7 @@ function() {
|
|
|
3088
3088
|
i = c;
|
|
3089
3089
|
}
|
|
3090
3090
|
return i;
|
|
3091
|
-
},
|
|
3091
|
+
}, jc = function(t, r, n, o) {
|
|
3092
3092
|
if (t) {
|
|
3093
3093
|
var a = n.allowDots ? t.replace(/\.([^.[]+)/g, "[$1]") : t, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, c = n.depth > 0 && i.exec(a), u = c ? a.slice(0, c.index) : a, l = [];
|
|
3094
3094
|
if (u) {
|
|
@@ -3106,9 +3106,9 @@ function() {
|
|
|
3106
3106
|
throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
|
|
3107
3107
|
l.push("[" + a.slice(c.index) + "]");
|
|
3108
3108
|
}
|
|
3109
|
-
return
|
|
3109
|
+
return kc(l, r, n, o);
|
|
3110
3110
|
}
|
|
3111
|
-
},
|
|
3111
|
+
}, qc = function(t) {
|
|
3112
3112
|
if (!t)
|
|
3113
3113
|
return A;
|
|
3114
3114
|
if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
|
|
@@ -3149,21 +3149,21 @@ function() {
|
|
|
3149
3149
|
strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : A.strictNullHandling,
|
|
3150
3150
|
throwOnLimitExceeded: typeof t.throwOnLimitExceeded == "boolean" ? t.throwOnLimitExceeded : !1
|
|
3151
3151
|
};
|
|
3152
|
-
},
|
|
3153
|
-
var r =
|
|
3152
|
+
}, zc = function(e, t) {
|
|
3153
|
+
var r = qc(t);
|
|
3154
3154
|
if (e === "" || e === null || typeof e > "u")
|
|
3155
3155
|
return r.plainObjects ? { __proto__: null } : {};
|
|
3156
|
-
for (var n = typeof e == "string" ?
|
|
3157
|
-
var s = a[i], c =
|
|
3156
|
+
for (var n = typeof e == "string" ? Bc(e, r) : e, o = r.plainObjects ? { __proto__: null } : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
|
|
3157
|
+
var s = a[i], c = jc(s, n[s], r, typeof e == "string");
|
|
3158
3158
|
o = oe.merge(o, c, r);
|
|
3159
3159
|
}
|
|
3160
3160
|
return r.allowSparse === !0 ? o : oe.compact(o);
|
|
3161
|
-
},
|
|
3162
|
-
formats:
|
|
3163
|
-
parse:
|
|
3164
|
-
stringify:
|
|
3161
|
+
}, Hc = $c, Wc = zc, Jc = tr, Gc = {
|
|
3162
|
+
formats: Jc,
|
|
3163
|
+
parse: Wc,
|
|
3164
|
+
stringify: Hc
|
|
3165
3165
|
};
|
|
3166
|
-
const
|
|
3166
|
+
const Vc = /* @__PURE__ */ ei(Gc);
|
|
3167
3167
|
/*! js-cookie v3.0.5 | MIT */
|
|
3168
3168
|
function ke(e) {
|
|
3169
3169
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -3173,7 +3173,7 @@ function ke(e) {
|
|
|
3173
3173
|
}
|
|
3174
3174
|
return e;
|
|
3175
3175
|
}
|
|
3176
|
-
var
|
|
3176
|
+
var Kc = {
|
|
3177
3177
|
read: function(e) {
|
|
3178
3178
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
3179
3179
|
},
|
|
@@ -3234,19 +3234,19 @@ function Ht(e, t) {
|
|
|
3234
3234
|
}
|
|
3235
3235
|
);
|
|
3236
3236
|
}
|
|
3237
|
-
var Kr = Ht(
|
|
3238
|
-
Pe.extend(
|
|
3239
|
-
Pe.extend(
|
|
3240
|
-
const
|
|
3241
|
-
var
|
|
3242
|
-
const
|
|
3237
|
+
var Kr = Ht(Kc, { path: "/" });
|
|
3238
|
+
Pe.extend(wo);
|
|
3239
|
+
Pe.extend(bo);
|
|
3240
|
+
const Qc = "UTC", Qr = /* @__PURE__ */ new Set();
|
|
3241
|
+
var nn, on;
|
|
3242
|
+
const Zc = (on = (nn = Pe.tz) == null ? void 0 : nn.guess) == null ? void 0 : on.bind(Pe.tz), no = (e) => (e || "").trim(), Xc = () => {
|
|
3243
3243
|
if (!(typeof Intl > "u" || typeof Intl.DateTimeFormat != "function"))
|
|
3244
3244
|
try {
|
|
3245
3245
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3246
3246
|
} catch {
|
|
3247
3247
|
return;
|
|
3248
3248
|
}
|
|
3249
|
-
},
|
|
3249
|
+
}, Yc = (e) => {
|
|
3250
3250
|
if (!e) return !1;
|
|
3251
3251
|
if (typeof Intl > "u" || typeof Intl.DateTimeFormat != "function") return !0;
|
|
3252
3252
|
try {
|
|
@@ -3254,20 +3254,29 @@ const Kc = (nn = (rn = Pe.tz) == null ? void 0 : rn.guess) == null ? void 0 : nn
|
|
|
3254
3254
|
} catch {
|
|
3255
3255
|
return !1;
|
|
3256
3256
|
}
|
|
3257
|
-
},
|
|
3257
|
+
}, el = (e) => {
|
|
3258
|
+
const t = no(e);
|
|
3259
|
+
return t ? Qr.size ? Qr.has(t) : Yc(t) : !1;
|
|
3260
|
+
}, tl = () => {
|
|
3258
3261
|
var r;
|
|
3259
|
-
const e = (r = Pe.tz) == null ? void 0 : r.guess, t = typeof e == "function" ? e :
|
|
3262
|
+
const e = (r = Pe.tz) == null ? void 0 : r.guess, t = typeof e == "function" ? e : Zc;
|
|
3260
3263
|
try {
|
|
3261
3264
|
return t == null ? void 0 : t();
|
|
3262
3265
|
} catch {
|
|
3263
3266
|
return;
|
|
3264
3267
|
}
|
|
3265
|
-
},
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3268
|
+
}, rl = () => {
|
|
3269
|
+
let e = "";
|
|
3270
|
+
try {
|
|
3271
|
+
e = typeof sessionStorage > "u" ? "" : sessionStorage.getItem("timeZone") || "";
|
|
3272
|
+
} catch {
|
|
3273
|
+
e = "";
|
|
3274
|
+
}
|
|
3275
|
+
const t = e || tl() || Xc();
|
|
3276
|
+
return el(t) ? no(t) : Qc;
|
|
3277
|
+
}, rr = Ce(), oo = rr.sso ?? !0, Zr = rr.i18n ?? !0, ao = rr.noRedireLogin ?? !1;
|
|
3278
|
+
let Xr = "", Yr = 0;
|
|
3279
|
+
const nl = 1e3, en = async (e, t, r = []) => {
|
|
3271
3280
|
const n = Date.now(), o = 1200, a = 60;
|
|
3272
3281
|
for (; Date.now() - n < o; ) {
|
|
3273
3282
|
const i = e(t, ...r);
|
|
@@ -3277,31 +3286,31 @@ const el = 1e3, Yr = async (e, t, r = []) => {
|
|
|
3277
3286
|
return e(t, ...r);
|
|
3278
3287
|
};
|
|
3279
3288
|
let Ft = !1;
|
|
3280
|
-
const
|
|
3289
|
+
const ol = 5e3, io = () => Ft ? !1 : (Ft = !0, setTimeout(() => {
|
|
3281
3290
|
Ft = !1;
|
|
3282
|
-
},
|
|
3283
|
-
if (
|
|
3291
|
+
}, ol), !0), so = () => {
|
|
3292
|
+
if (ao) return;
|
|
3284
3293
|
const e = "/login";
|
|
3285
3294
|
if (location.pathname === e) return;
|
|
3286
3295
|
window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1;
|
|
3287
3296
|
const t = window.top;
|
|
3288
3297
|
t != null && t.vueRouter ? t.vueRouter.replace(e) : window.location.replace(`/#${e}`);
|
|
3289
|
-
},
|
|
3298
|
+
}, al = () => mo("code") || "" || ao ? !1 : io() ? (oo ? go({ ...vo, redirect_uri: So }) : so(), !0) : !1, il = async (e) => {
|
|
3290
3299
|
var r;
|
|
3291
3300
|
return ((r = e.config) == null ? void 0 : r.responseType) === "blob" ? e : e.data ?? e;
|
|
3292
|
-
},
|
|
3301
|
+
}, sl = async (e, t) => {
|
|
3293
3302
|
var y, m, h, w;
|
|
3294
|
-
const { t: r } =
|
|
3303
|
+
const { t: r } = cn();
|
|
3295
3304
|
let n, o, a = {};
|
|
3296
3305
|
const i = { 400: r("参数校验错误"), 404: r("接口地址未找到"), 500: r("服务器内部错误") };
|
|
3297
3306
|
let s = ((y = e == null ? void 0 : e.response) == null ? void 0 : y.data) || {};
|
|
3298
3307
|
const c = s == null ? void 0 : s.code, u = (m = e.response) == null ? void 0 : m.status;
|
|
3299
3308
|
if (c === 401 || u === 401) {
|
|
3300
|
-
|
|
3309
|
+
al(), n = c || u, a = s;
|
|
3301
3310
|
const O = (t == null ? void 0 : t.i18n) ?? !0;
|
|
3302
|
-
if (
|
|
3311
|
+
if (Zr && O && (s != null && s.status)) {
|
|
3303
3312
|
const g = !(s != null && s.data) || !s.data.length ? [] : s.data, E = r(s.status, ...g);
|
|
3304
|
-
o = E === s.status ? await
|
|
3313
|
+
o = E === s.status ? await en(r, s.status, g) : E;
|
|
3305
3314
|
} else
|
|
3306
3315
|
o = (s == null ? void 0 : s.msg) || i[n] || (e == null ? void 0 : e.message);
|
|
3307
3316
|
} else if (e.response) {
|
|
@@ -3317,9 +3326,9 @@ const tl = 5e3, oo = () => Ft ? !1 : (Ft = !0, setTimeout(() => {
|
|
|
3317
3326
|
})), s.code !== void 0 && s.code !== null) {
|
|
3318
3327
|
n = s.code, a = s;
|
|
3319
3328
|
const O = (t == null ? void 0 : t.i18n) ?? !0;
|
|
3320
|
-
if (
|
|
3329
|
+
if (Zr && O && (s != null && s.status)) {
|
|
3321
3330
|
const g = !(s != null && s.data) || !s.data.length ? [] : s.data, E = r(s.status, ...g);
|
|
3322
|
-
o = E === s.status ? await
|
|
3331
|
+
o = E === s.status ? await en(r, s.status, g) : E;
|
|
3323
3332
|
} else
|
|
3324
3333
|
o = (s == null ? void 0 : s.msg) ?? "";
|
|
3325
3334
|
} else
|
|
@@ -3327,64 +3336,64 @@ const tl = 5e3, oo = () => Ft ? !1 : (Ft = !0, setTimeout(() => {
|
|
|
3327
3336
|
o || (o = i[e.response.status] || e.message);
|
|
3328
3337
|
} else e.request ? (n = 500, e.code === "ERR_CANCELED" ? o = e.abortReason || "" : o = r("网络异常,请检查您的网络情况")) : (n = 500, e.code === "ERR_CANCELED" ? o = e.abortReason || "" : o = r("请求配置异常"));
|
|
3329
3338
|
t != null && t.customErrorMessage && (o = t == null ? void 0 : t.customErrorMessage(o, e));
|
|
3330
|
-
const f = Date.now(), d = o === Xr, v = f -
|
|
3331
|
-
return !(t != null && t.ignoreErrorMessage) && o && (!d || !v) && ((w = (h = window.DasMessage) == null ? void 0 : h.error) == null || w.call(h, { message: o, showClose: !0 }), Xr = o,
|
|
3339
|
+
const f = Date.now(), d = o === Xr, v = f - Yr < nl;
|
|
3340
|
+
return !(t != null && t.ignoreErrorMessage) && o && (!d || !v) && ((w = (h = window.DasMessage) == null ? void 0 : h.error) == null || w.call(h, { message: o, showClose: !0 }), Xr = o, Yr = f), { ...a, code: n, msg: o, error: e };
|
|
3332
3341
|
};
|
|
3333
|
-
function
|
|
3342
|
+
function cl(e, t) {
|
|
3334
3343
|
const r = R.create();
|
|
3335
|
-
return
|
|
3336
|
-
const { currentLang: o } =
|
|
3344
|
+
return yo(r, async (n) => {
|
|
3345
|
+
const { currentLang: o } = cn(), a = Ce();
|
|
3337
3346
|
if (n.headers || (n.headers = {}), !(n != null && n.public)) {
|
|
3338
3347
|
let f = "";
|
|
3339
3348
|
if (a.token && (f = a.token), !f) {
|
|
3340
3349
|
const d = new URL(location.href).searchParams;
|
|
3341
3350
|
f = d.get("token") || d.get("accessToken") || d.get("accesstoken") || "";
|
|
3342
3351
|
}
|
|
3343
|
-
if (
|
|
3344
|
-
f || (f = await
|
|
3352
|
+
if (oo)
|
|
3353
|
+
f || (f = await ho(n));
|
|
3345
3354
|
else {
|
|
3346
|
-
f || (f =
|
|
3355
|
+
f || (f = sn());
|
|
3347
3356
|
let d = JSON.parse(window.localStorage.getItem("tokenInfo") || "{}");
|
|
3348
|
-
f ? f = await
|
|
3349
|
-
|
|
3350
|
-
}) :
|
|
3357
|
+
f ? f = await Ro(d, (y) => {
|
|
3358
|
+
Ao(y);
|
|
3359
|
+
}) : io() && so();
|
|
3351
3360
|
}
|
|
3352
3361
|
f && !n.headers.Authorization && (n.headers.Authorization = `Bearer ${f}`);
|
|
3353
3362
|
}
|
|
3354
|
-
n.baseURL || (n.baseURL = a.baseURL || ""), n.urlPrefix || (n.urlPrefix = e), n.paramsSerializer || (n.paramsSerializer = { serialize: (f) =>
|
|
3363
|
+
n.baseURL || (n.baseURL = a.baseURL || ""), n.urlPrefix || (n.urlPrefix = e), n.paramsSerializer || (n.paramsSerializer = { serialize: (f) => Vc.stringify(f, { indices: !1 }) }), n.onSuccess || (n.onSuccess = il), n.onError || (n.onError = sl), (n.csrf ?? !1) && (n.headers["csrf-token"] = Kr.get("csrf-token"));
|
|
3355
3364
|
const c = n.params || {};
|
|
3356
3365
|
if (c.project === void 0) {
|
|
3357
3366
|
let f = 0;
|
|
3358
3367
|
const d = new URL(location.href).searchParams;
|
|
3359
|
-
f = d.get("project") || d.get("projectId") || 0, f || (f =
|
|
3368
|
+
f = d.get("project") || d.get("projectId") || 0, f || (f = Eo().id ?? 0), (f || f === 0) && (c.project = f);
|
|
3360
3369
|
}
|
|
3361
3370
|
if (new URL(location.href).pathname.startsWith("/iot/iot") || new URL(location.href).searchParams.get("app") === "iot") {
|
|
3362
|
-
const { instanceInfo: f } =
|
|
3371
|
+
const { instanceInfo: f } = Oo();
|
|
3363
3372
|
f != null && f.instanceId && (c.instance = f.instanceId);
|
|
3364
3373
|
}
|
|
3365
|
-
n.params = c, n.headers.Timezone =
|
|
3374
|
+
n.params = c, n.headers.Timezone = rl(), n.headers["X-Origin"] = location.origin;
|
|
3366
3375
|
const l = (o == null ? void 0 : o.value) ?? "";
|
|
3367
3376
|
return l && (n.headers["Accept-Language"] = l), l && Kr.set("locale", l), n;
|
|
3368
3377
|
});
|
|
3369
3378
|
}
|
|
3370
|
-
const
|
|
3371
|
-
const t =
|
|
3379
|
+
const ll = "v1", co = cl(`/api/admin/basic-application/user-rights/${ll}`), ul = co.get("/menu-module-func"), fl = co.post("/right-func"), tn = (e) => Array.isArray(e) ? e : e == null || e === "" ? [] : [e], pl = (e) => {
|
|
3380
|
+
const t = tn(e == null ? void 0 : e.appIds).map((o) => typeof o == "number" ? o : String(o ?? "").trim()).filter((o) => typeof o == "number" ? !Number.isNaN(o) : !!o), r = tn(e == null ? void 0 : e.moduleIds).map((o) => typeof o == "number" ? o : String(o ?? "").trim()).filter((o) => typeof o == "number" ? !Number.isNaN(o) : !!o);
|
|
3372
3381
|
if (!t.length) return null;
|
|
3373
3382
|
const n = { appIds: t };
|
|
3374
3383
|
return r.length && (n.moduleIds = r), n;
|
|
3375
|
-
},
|
|
3384
|
+
}, dl = (e) => {
|
|
3376
3385
|
const t = e && typeof e == "object" ? String((e == null ? void 0 : e.type) ?? "").trim() : "";
|
|
3377
3386
|
return t === "appId" || t === "menuId" ? t : e && typeof e == "object" && ("appIds" in e || "moduleIds" in e) ? "appId" : "menuId";
|
|
3378
|
-
},
|
|
3387
|
+
}, yl = (e) => {
|
|
3379
3388
|
const t = e && typeof e == "object" ? e == null ? void 0 : e.menuId : e;
|
|
3380
3389
|
return typeof t == "number" ? Number.isNaN(t) ? "" : String(t) : String(t ?? "").trim();
|
|
3381
|
-
},
|
|
3390
|
+
}, rn = (e) => typeof e == "number" ? Number.isNaN(e) ? "" : String(e) : String(e ?? "").trim(), hl = (e) => {
|
|
3382
3391
|
if (!e || typeof e != "object") return [];
|
|
3383
3392
|
const t = e == null ? void 0 : e.children;
|
|
3384
3393
|
return Array.isArray(t) ? t.filter((r) => r && typeof r == "object") : [];
|
|
3385
|
-
},
|
|
3394
|
+
}, lo = (e) => {
|
|
3386
3395
|
if (!e || typeof e != "object") return [];
|
|
3387
|
-
const r =
|
|
3396
|
+
const r = hl(e).flatMap((a) => lo(a));
|
|
3388
3397
|
if (r.length) return r;
|
|
3389
3398
|
const n = String((e == null ? void 0 : e.type) ?? "").trim(), o = String((e == null ? void 0 : e.routeCode) ?? "").trim();
|
|
3390
3399
|
return n === "menu" && o ? [o] : [];
|
|
@@ -3414,7 +3423,7 @@ const il = "v1", io = al(`/api/admin/basic-application/user-rights/${il}`), sl =
|
|
|
3414
3423
|
}
|
|
3415
3424
|
}
|
|
3416
3425
|
return t.code.sourceCode = Array.from(o), t;
|
|
3417
|
-
},
|
|
3426
|
+
}, ml = () => {
|
|
3418
3427
|
const e = window.sessionStorage.getItem("currentUserMenuPermissionsList") || "";
|
|
3419
3428
|
try {
|
|
3420
3429
|
const t = JSON.parse(window.sessionStorage.getItem("menuItem") || "{}"), r = String((t == null ? void 0 : t.id) ?? "").trim(), n = String(window.sessionStorage.getItem("currentUserMenuPermissionsMenuId") || "").trim();
|
|
@@ -3425,42 +3434,42 @@ const il = "v1", io = al(`/api/admin/basic-application/user-rights/${il}`), sl =
|
|
|
3425
3434
|
} catch {
|
|
3426
3435
|
return _t([]);
|
|
3427
3436
|
}
|
|
3428
|
-
},
|
|
3437
|
+
}, uo = (e = "id") => {
|
|
3429
3438
|
var i, s;
|
|
3430
|
-
const t =
|
|
3439
|
+
const t = ml();
|
|
3431
3440
|
if (!t || typeof t != "object")
|
|
3432
3441
|
return e === "all" ? { idList: [], codeList: [] } : [];
|
|
3433
3442
|
const r = (i = t == null ? void 0 : t.id) == null ? void 0 : i.id, n = Array.isArray(r) ? r : [], o = (s = t == null ? void 0 : t.code) == null ? void 0 : s.sourceCode, a = Array.isArray(o) ? o : [];
|
|
3434
3443
|
return e === "all" ? { idList: n, codeList: a } : e === "code" ? a : n;
|
|
3435
|
-
},
|
|
3444
|
+
}, $l = (e, t) => {
|
|
3436
3445
|
const r = (async () => {
|
|
3437
|
-
if (
|
|
3438
|
-
const c =
|
|
3446
|
+
if (dl(e) === "menuId") {
|
|
3447
|
+
const c = yl(e);
|
|
3439
3448
|
if (!c) return [];
|
|
3440
|
-
const u = await
|
|
3449
|
+
const u = await ul().run({ menuId: c }), [l, f] = u;
|
|
3441
3450
|
return l ? [] : f;
|
|
3442
3451
|
}
|
|
3443
|
-
const o =
|
|
3452
|
+
const o = pl(e ?? {});
|
|
3444
3453
|
if (!o) return [];
|
|
3445
|
-
const a = await
|
|
3454
|
+
const a = await fl().run(o), [i, s] = a;
|
|
3446
3455
|
return i ? [] : s;
|
|
3447
3456
|
})();
|
|
3448
3457
|
return typeof t == "function" && r.then((n) => t(n)).catch(() => t([])), r;
|
|
3449
|
-
},
|
|
3458
|
+
}, Ll = (e, t) => {
|
|
3450
3459
|
const r = String(e ?? "").trim(), n = String(t ?? "").trim();
|
|
3451
3460
|
if (!r && !n) return !1;
|
|
3452
3461
|
if (!r && n)
|
|
3453
|
-
return !!
|
|
3462
|
+
return !!rn(n);
|
|
3454
3463
|
try {
|
|
3455
3464
|
const o = window.sessionStorage.getItem("menuList") || "[]", a = o ? JSON.parse(o) : [], i = Array.isArray(a) ? a : [];
|
|
3456
|
-
return (n ? i.filter((c) =>
|
|
3465
|
+
return (n ? i.filter((c) => rn(c == null ? void 0 : c.appId) === n) : i).some((c) => lo(c).includes(r));
|
|
3457
3466
|
} catch {
|
|
3458
3467
|
return !1;
|
|
3459
3468
|
}
|
|
3460
|
-
},
|
|
3469
|
+
}, Ul = (e) => {
|
|
3461
3470
|
const t = e || JSON.parse(sessionStorage.getItem("menuItem") || "{}");
|
|
3462
3471
|
return {
|
|
3463
|
-
authCodes:
|
|
3472
|
+
authCodes: uo(),
|
|
3464
3473
|
routeUrl: t.routeUrl ?? "",
|
|
3465
3474
|
parentId: t.parentId ?? "",
|
|
3466
3475
|
id: t.id ?? "",
|
|
@@ -3470,7 +3479,7 @@ const il = "v1", io = al(`/api/admin/basic-application/user-rights/${il}`), sl =
|
|
|
3470
3479
|
showName: t.showName ?? "",
|
|
3471
3480
|
type: (t == null ? void 0 : t.type) ?? ""
|
|
3472
3481
|
};
|
|
3473
|
-
},
|
|
3482
|
+
}, Ml = () => JSON.parse(sessionStorage.getItem("menuList") || "[]"), Bl = () => {
|
|
3474
3483
|
const e = JSON.parse(sessionStorage.getItem("menuList") || "[]"), t = {};
|
|
3475
3484
|
return e.forEach((r) => {
|
|
3476
3485
|
r.appId && (r.rightFuncCodes && r.rightFuncCodes.forEach((n) => t[n] = []), r.children && r.children.forEach((n) => {
|
|
@@ -3494,7 +3503,7 @@ const il = "v1", io = al(`/api/admin/basic-application/user-rights/${il}`), sl =
|
|
|
3494
3503
|
});
|
|
3495
3504
|
}));
|
|
3496
3505
|
}), t;
|
|
3497
|
-
},
|
|
3506
|
+
}, gl = sn, kl = () => {
|
|
3498
3507
|
var r;
|
|
3499
3508
|
let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
|
|
3500
3509
|
return {
|
|
@@ -3503,7 +3512,7 @@ const il = "v1", io = al(`/api/admin/basic-application/user-rights/${il}`), sl =
|
|
|
3503
3512
|
flag: e.flag ?? null,
|
|
3504
3513
|
tenantId: ((r = e == null ? void 0 : e.tenant) == null ? void 0 : r.id) ?? ""
|
|
3505
3514
|
};
|
|
3506
|
-
},
|
|
3515
|
+
}, jl = () => {
|
|
3507
3516
|
let e = JSON.parse(sessionStorage.getItem("userInfo") || "{}");
|
|
3508
3517
|
const t = Ce();
|
|
3509
3518
|
return JSON.stringify(e) === "{}" && t.personalInfo && (e = t.personalInfo), {
|
|
@@ -3514,7 +3523,7 @@ const il = "v1", io = al(`/api/admin/basic-application/user-rights/${il}`), sl =
|
|
|
3514
3523
|
email: e.email ?? "",
|
|
3515
3524
|
headPicture: e.headPicture ?? ""
|
|
3516
3525
|
};
|
|
3517
|
-
},
|
|
3526
|
+
}, ql = () => {
|
|
3518
3527
|
let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
|
|
3519
3528
|
return {
|
|
3520
3529
|
userId: e.id ?? "",
|
|
@@ -3536,7 +3545,7 @@ const il = "v1", io = al(`/api/admin/basic-application/user-rights/${il}`), sl =
|
|
|
3536
3545
|
address: e.address ?? "",
|
|
3537
3546
|
description: e.description ?? ""
|
|
3538
3547
|
};
|
|
3539
|
-
},
|
|
3548
|
+
}, zl = () => sessionStorage.getItem("languages"), vl = () => {
|
|
3540
3549
|
let e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}");
|
|
3541
3550
|
const t = Ce();
|
|
3542
3551
|
return JSON.stringify(e) === "{}" && t.projectInfo && (e = t.projectInfo), {
|
|
@@ -3552,7 +3561,7 @@ const il = "v1", io = al(`/api/admin/basic-application/user-rights/${il}`), sl =
|
|
|
3552
3561
|
leaf: (e == null ? void 0 : e.leaf) ?? !1,
|
|
3553
3562
|
optional: (e == null ? void 0 : e.leaf) ?? !0
|
|
3554
3563
|
};
|
|
3555
|
-
},
|
|
3564
|
+
}, Hl = () => {
|
|
3556
3565
|
let e = JSON.parse(sessionStorage.getItem("projectInfo") || sessionStorage.getItem("project-message") || "{}");
|
|
3557
3566
|
return {
|
|
3558
3567
|
id: (e == null ? void 0 : e.id) ?? 0,
|
|
@@ -3582,7 +3591,7 @@ const il = "v1", io = al(`/api/admin/basic-application/user-rights/${il}`), sl =
|
|
|
3582
3591
|
currencySymbol: "¥"
|
|
3583
3592
|
}
|
|
3584
3593
|
};
|
|
3585
|
-
},
|
|
3594
|
+
}, Wl = () => {
|
|
3586
3595
|
const e = JSON.parse(sessionStorage.getItem("home-config") || "{}");
|
|
3587
3596
|
return {
|
|
3588
3597
|
applicationCode: (e == null ? void 0 : e.applicationCode) ?? "",
|
|
@@ -3593,31 +3602,31 @@ const il = "v1", io = al(`/api/admin/basic-application/user-rights/${il}`), sl =
|
|
|
3593
3602
|
displayPosition: (e == null ? void 0 : e.displayPosition) ?? 1,
|
|
3594
3603
|
type: (e == null ? void 0 : e.type) ?? null
|
|
3595
3604
|
};
|
|
3596
|
-
},
|
|
3605
|
+
}, Jl = () => {
|
|
3597
3606
|
const e = JSON.parse(sessionStorage.getItem("personal-config") || "{}");
|
|
3598
3607
|
return {
|
|
3599
3608
|
style: (e == null ? void 0 : e.style) ?? "",
|
|
3600
3609
|
skinStyle: (e == null ? void 0 : e.skinStyle) ?? ""
|
|
3601
3610
|
};
|
|
3602
|
-
},
|
|
3611
|
+
}, Sl = () => {
|
|
3603
3612
|
try {
|
|
3604
3613
|
const e = window.sessionStorage.getItem("menuItem") || "", t = e ? JSON.parse(e) : {};
|
|
3605
3614
|
return String((t == null ? void 0 : t.routeCode) ?? "").trim();
|
|
3606
3615
|
} catch {
|
|
3607
3616
|
return "";
|
|
3608
3617
|
}
|
|
3609
|
-
},
|
|
3610
|
-
const r = (t == null ? void 0 : t.returnType) ?? "set", n = String((t == null ? void 0 : t.routeCode) ??
|
|
3618
|
+
}, wl = (e, t) => {
|
|
3619
|
+
const r = (t == null ? void 0 : t.returnType) ?? "set", n = String((t == null ? void 0 : t.routeCode) ?? Sl()).trim(), o = Array.isArray(e) ? e : e instanceof Set ? Array.from(e) : [], a = /* @__PURE__ */ new Set(), i = n ? `${n}.` : "";
|
|
3611
3620
|
return i && o.forEach((s) => {
|
|
3612
3621
|
const c = (s && typeof s == "object" ? s == null ? void 0 : s.code : s) ?? "", u = String(c).trim();
|
|
3613
3622
|
if (!u || !u.startsWith(i)) return;
|
|
3614
3623
|
const l = u.slice(i.length);
|
|
3615
3624
|
l && a.add(l.replace(/\./g, "-"));
|
|
3616
3625
|
}), r === "list" ? Array.from(a).map((s) => ({ code: s })) : a;
|
|
3617
|
-
},
|
|
3618
|
-
const r =
|
|
3619
|
-
return
|
|
3620
|
-
},
|
|
3626
|
+
}, bl = (e, t) => {
|
|
3627
|
+
const r = uo("code"), n = Array.isArray(r) ? r : [];
|
|
3628
|
+
return wl(n, { returnType: "list" });
|
|
3629
|
+
}, Gl = (e, t) => bl() ?? [], El = () => {
|
|
3621
3630
|
const e = JSON.parse(sessionStorage.getItem("subApps") || "{}");
|
|
3622
3631
|
return {
|
|
3623
3632
|
appcategorys: e.appcategorys ?? [],
|
|
@@ -3626,9 +3635,9 @@ const il = "v1", io = al(`/api/admin/basic-application/user-rights/${il}`), sl =
|
|
|
3626
3635
|
subAppList: e.subAppList ?? [],
|
|
3627
3636
|
menuCollapses: e.menuCollapses ?? []
|
|
3628
3637
|
};
|
|
3629
|
-
},
|
|
3638
|
+
}, Vl = (e, t = !1) => {
|
|
3630
3639
|
var o, a;
|
|
3631
|
-
const r =
|
|
3640
|
+
const r = El().subAppList;
|
|
3632
3641
|
if (e)
|
|
3633
3642
|
return t ? ((o = r == null ? void 0 : r.find((i) => i.code === e)) == null ? void 0 : o.originalMenus) ?? [] : ((a = r == null ? void 0 : r.find((i) => i.code === e)) == null ? void 0 : a.menus) ?? [];
|
|
3634
3643
|
const n = {};
|
|
@@ -3637,7 +3646,7 @@ const il = "v1", io = al(`/api/admin/basic-application/user-rights/${il}`), sl =
|
|
|
3637
3646
|
}) : r == null || r.forEach((i) => {
|
|
3638
3647
|
n[i.code] = i.menus ?? [];
|
|
3639
3648
|
}), n;
|
|
3640
|
-
},
|
|
3649
|
+
}, Kl = () => {
|
|
3641
3650
|
const e = JSON.parse(sessionStorage.getItem("tabs") || "{}");
|
|
3642
3651
|
return {
|
|
3643
3652
|
currentCode: e.currentCode ?? "",
|
|
@@ -3645,41 +3654,41 @@ const il = "v1", io = al(`/api/admin/basic-application/user-rights/${il}`), sl =
|
|
|
3645
3654
|
tabMap: e.tabMap ?? {},
|
|
3646
3655
|
preTab: e.preTab ?? {}
|
|
3647
3656
|
};
|
|
3648
|
-
},
|
|
3657
|
+
}, Ql = () => {
|
|
3649
3658
|
const e = Ce(), t = sessionStorage.getItem("minioAddress");
|
|
3650
3659
|
return t || (e.baseURL ? e.baseURL : location.origin);
|
|
3651
|
-
},
|
|
3660
|
+
}, Zl = () => ({
|
|
3652
3661
|
instanceInfo: JSON.parse(sessionStorage.getItem("instance") || "{}").instanceInfo ?? {}
|
|
3653
|
-
}),
|
|
3654
|
-
|
|
3655
|
-
var
|
|
3656
|
-
(
|
|
3662
|
+
}), Xl = () => localStorage.getItem("fav-icon") || "./logo.svg";
|
|
3663
|
+
gl() || fo();
|
|
3664
|
+
var an;
|
|
3665
|
+
(an = vl()) != null && an.id || po();
|
|
3657
3666
|
export {
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3667
|
+
wl as buildActionSuffixSet,
|
|
3668
|
+
Bl as getAuthobj,
|
|
3669
|
+
uo as getCurrentModulePermissionData,
|
|
3670
|
+
Sl as getCurrentRouteCode,
|
|
3671
|
+
$l as getCurrentUserPermissionList,
|
|
3672
|
+
Xl as getFavIcon,
|
|
3673
|
+
ml as getGroupedCurrentUserPermissionList,
|
|
3674
|
+
Wl as getHomeInfo,
|
|
3675
|
+
Zl as getInstanceInfo,
|
|
3676
|
+
zl as getLanguages,
|
|
3677
|
+
Ul as getMenuItemInfo,
|
|
3678
|
+
Ml as getMenuListnfo,
|
|
3679
|
+
Vl as getMenus,
|
|
3680
|
+
Ql as getMinioAddress,
|
|
3681
|
+
bl as getPageAuth,
|
|
3682
|
+
Gl as getPageAuthBtn,
|
|
3683
|
+
Jl as getPersonalConfig,
|
|
3684
|
+
jl as getPersonalInfo,
|
|
3685
|
+
vl as getProjectInfo,
|
|
3686
|
+
Hl as getProjectMessage,
|
|
3687
|
+
El as getSubApps,
|
|
3688
|
+
Kl as getTabInfo,
|
|
3689
|
+
ql as getTenantInfo,
|
|
3690
|
+
gl as getToken,
|
|
3691
|
+
kl as getUserInfo,
|
|
3683
3692
|
_t as groupPermissionListByModuleAndCode,
|
|
3684
|
-
|
|
3693
|
+
Ll as hasMenuPermissionByRouteCode
|
|
3685
3694
|
};
|