@das-fed/upf-utils 6.4.0-dev.240 → 6.4.0-dev.241
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/modules/app-manage/es5.js +1325 -1334
- package/api-services/modules/app-manage/index.js +1110 -1124
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +1072 -1081
- package/api-services/modules/authentication/index.js +874 -888
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +1327 -1315
- package/api-services/modules/bems/index.js +1125 -1107
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +1139 -1136
- package/api-services/modules/contract/index.js +936 -932
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +1333 -1345
- package/api-services/modules/duty-manage/index.js +1118 -1136
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +1107 -1095
- package/api-services/modules/enterpriseright/index.js +911 -893
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +925 -928
- package/api-services/modules/file/es5.js +1266 -1254
- package/api-services/modules/file/index.js +1042 -1024
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/index.js +687 -691
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +1049 -1058
- package/api-services/modules/iot/index.js +858 -872
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +840 -837
- package/api-services/modules/justauth/index.js +657 -653
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1107 -1095
- package/api-services/modules/permission/index.js +911 -893
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +1350 -1338
- package/api-services/modules/portal/index.js +1140 -1122
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +1111 -1099
- package/api-services/modules/super-admin/index.js +913 -895
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +1111 -1099
- package/api-services/modules/supplier/index.js +913 -895
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +1338 -1350
- package/api-services/modules/supplychain-manage/index.js +1122 -1140
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +828 -830
- package/api-services/modules/systemConfiguration/index.js +650 -654
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +837 -840
- package/api-services/modules/tool/index.js +652 -656
- package/api-services/modules/tool/index.js.gz +0 -0
- package/common-info/es5.d.ts +26 -1
- package/common-info/es5.js +607 -551
- package/common-info/getPermissionMethod/es5.js +1311 -1318
- package/common-info/getPermissionMethod/index.js +1091 -1101
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.d.ts +26 -1
- package/common-info/index.js +488 -452
- package/common-info/index.js.gz +0 -0
- package/create-api-service/es5.js +1339 -1329
- package/create-api-service/index.js +1130 -1116
- package/create-api-service/index.js.gz +0 -0
- package/esm-map.json +6 -0
- package/hooks/use-get-auth/apis.d.ts +4 -0
- package/hooks/use-get-auth/es5.d.ts +8 -0
- package/hooks/use-get-auth/es5.js +335 -0
- package/hooks/use-get-auth/index.d.ts +8 -0
- package/hooks/use-get-auth/index.js +74 -0
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/package.json +3 -3
package/common-info/index.js
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { getConfig as
|
|
1
|
+
import { getConfig as Ce } from "@das-fed/upf-utils/config";
|
|
2
2
|
import { getAccessToken as nn } from "@das-fed/upf-utils/token-tools";
|
|
3
|
-
import { getTokenFromQuery as
|
|
4
|
-
import { curringHttp as
|
|
3
|
+
import { getTokenFromQuery as so, getProjectInfoFromQuery as co } from "@das-fed/upf-utils/common-info/getInfoFromUrl";
|
|
4
|
+
import { curringHttp as lo } from "@das-fed/upf-utils/curring-http";
|
|
5
5
|
import { getI18nBridge as on } from "@das-fed/upf-utils/i18n-bridge";
|
|
6
|
-
import { getToken as
|
|
6
|
+
import { getToken as uo, getQuery as fo, login as po, getTokenParams as yo, real_uri as ho } from "@das-fed/upf-utils/create-api-service/sso";
|
|
7
7
|
import Ht from "dayjs";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { getProjectInfo as
|
|
11
|
-
import { applyRefreshedToken as
|
|
12
|
-
import { getValidAccessToken as
|
|
8
|
+
import mo from "dayjs/plugin/utc";
|
|
9
|
+
import go from "dayjs/plugin/timezone";
|
|
10
|
+
import { getProjectInfo as vo, getInstanceInfo as So } from "@das-fed/upf-utils/common-info";
|
|
11
|
+
import { applyRefreshedToken as wo } from "@das-fed/upf-utils/create-api-service/access-token-auto-refresh";
|
|
12
|
+
import { getValidAccessToken as bo } from "@das-fed/upf-utils/create-api-service/check-token";
|
|
13
13
|
function an(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: Eo } = Object.prototype, { getPrototypeOf: Wt } = Object, { iterator: Xe, toStringTag: sn } = Symbol, Ze = /* @__PURE__ */ ((e) => (t) => {
|
|
19
|
+
const r = Eo.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) => Ze(t) === e), Ye = (e) => (t) => typeof t === e, { isArray: he } = Array, pe = Ye("undefined");
|
|
22
|
-
function
|
|
22
|
+
function Ie(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
25
|
const cn = j("ArrayBuffer");
|
|
26
|
-
function
|
|
26
|
+
function Oo(e) {
|
|
27
27
|
let t;
|
|
28
28
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && cn(e.buffer), t;
|
|
29
29
|
}
|
|
30
|
-
const
|
|
30
|
+
const Ao = Ye("string"), D = Ye("function"), ln = Ye("number"), Te = (e) => e !== null && typeof e == "object", Ro = (e) => e === !0 || e === !1, ke = (e) => {
|
|
31
31
|
if (Ze(e) !== "object")
|
|
32
32
|
return !1;
|
|
33
33
|
const t = Wt(e);
|
|
34
34
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(sn in e) && !(Xe in e);
|
|
35
|
-
},
|
|
36
|
-
if (!Te(e) ||
|
|
35
|
+
}, Po = (e) => {
|
|
36
|
+
if (!Te(e) || Ie(e))
|
|
37
37
|
return !1;
|
|
38
38
|
try {
|
|
39
39
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
40
40
|
} catch {
|
|
41
41
|
return !1;
|
|
42
42
|
}
|
|
43
|
-
},
|
|
43
|
+
}, Co = j("Date"), Io = j("File"), To = j("Blob"), No = j("FileList"), xo = (e) => Te(e) && D(e.pipe), Fo = (e) => {
|
|
44
44
|
let t;
|
|
45
45
|
return e && (typeof FormData == "function" && e instanceof FormData || D(e.append) && ((t = Ze(e)) === "formdata" || // detect form-data instance
|
|
46
46
|
t === "object" && D(e.toString) && e.toString() === "[object FormData]"));
|
|
47
|
-
},
|
|
47
|
+
}, _o = j("URLSearchParams"), [Do, $o, Lo, Uo] = ["ReadableStream", "Request", "Response", "Headers"].map(j), Mo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
48
48
|
function Ne(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
49
49
|
if (e === null || typeof e > "u")
|
|
50
50
|
return;
|
|
@@ -53,7 +53,7 @@ function Ne(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
|
53
53
|
for (n = 0, o = e.length; n < o; n++)
|
|
54
54
|
t.call(null, e[n], n, e);
|
|
55
55
|
else {
|
|
56
|
-
if (
|
|
56
|
+
if (Ie(e))
|
|
57
57
|
return;
|
|
58
58
|
const a = r ? Object.getOwnPropertyNames(e) : Object.keys(e), i = a.length;
|
|
59
59
|
let s;
|
|
@@ -62,7 +62,7 @@ function Ne(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
function un(e, t) {
|
|
65
|
-
if (
|
|
65
|
+
if (Ie(e))
|
|
66
66
|
return null;
|
|
67
67
|
t = t.toLowerCase();
|
|
68
68
|
const r = Object.keys(e);
|
|
@@ -82,13 +82,13 @@ function _t() {
|
|
|
82
82
|
arguments[o] && Ne(arguments[o], n);
|
|
83
83
|
return r;
|
|
84
84
|
}
|
|
85
|
-
const
|
|
85
|
+
const Bo = (e, t, r, { allOwnKeys: n } = {}) => (Ne(t, (o, a) => {
|
|
86
86
|
r && D(o) ? e[a] = an(o, r) : e[a] = o;
|
|
87
|
-
}, { allOwnKeys: n }), e),
|
|
87
|
+
}, { allOwnKeys: n }), e), ko = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), jo = (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
|
+
}, qo = (e, t, r, n) => {
|
|
92
92
|
let o, a, i;
|
|
93
93
|
const s = {};
|
|
94
94
|
if (t = t || {}, e == null) return t;
|
|
@@ -98,11 +98,11 @@ const Mo = (e, t, r, { allOwnKeys: n } = {}) => (Ne(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
|
+
}, zo = (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
|
+
}, Ho = (e) => {
|
|
106
106
|
if (!e) return null;
|
|
107
107
|
if (he(e)) return e;
|
|
108
108
|
let t = e.length;
|
|
@@ -111,31 +111,31 @@ const Mo = (e, t, r, { allOwnKeys: n } = {}) => (Ne(t, (o, a) => {
|
|
|
111
111
|
for (; t-- > 0; )
|
|
112
112
|
r[t] = e[t];
|
|
113
113
|
return r;
|
|
114
|
-
},
|
|
114
|
+
}, Wo = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Wt(Uint8Array)), Jo = (e, t) => {
|
|
115
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
|
+
}, Go = (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
|
+
}, Vo = j("HTMLFormElement"), Ko = (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), Qo = j("RegExp"), pn = (e, t) => {
|
|
133
133
|
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
134
134
|
Ne(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
|
-
},
|
|
138
|
+
}, Xo = (e) => {
|
|
139
139
|
pn(e, (t, r) => {
|
|
140
140
|
if (D(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
141
141
|
return !1;
|
|
@@ -150,24 +150,24 @@ const Mo = (e, t, r, { allOwnKeys: n } = {}) => (Ne(t, (o, a) => {
|
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
|
-
},
|
|
153
|
+
}, Zo = (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
|
|
160
|
+
}, Yo = () => {
|
|
161
|
+
}, ea = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
162
|
+
function ta(e) {
|
|
163
163
|
return !!(e && D(e.append) && e[sn] === "FormData" && e[Xe]);
|
|
164
164
|
}
|
|
165
|
-
const
|
|
165
|
+
const ra = (e) => {
|
|
166
166
|
const t = new Array(10), r = (n, o) => {
|
|
167
167
|
if (Te(n)) {
|
|
168
168
|
if (t.indexOf(n) >= 0)
|
|
169
169
|
return;
|
|
170
|
-
if (
|
|
170
|
+
if (Ie(n))
|
|
171
171
|
return n;
|
|
172
172
|
if (!("toJSON" in n)) {
|
|
173
173
|
t[o] = n;
|
|
@@ -181,72 +181,72 @@ const ta = (e) => {
|
|
|
181
181
|
return n;
|
|
182
182
|
};
|
|
183
183
|
return r(e, 0);
|
|
184
|
-
},
|
|
184
|
+
}, na = j("AsyncFunction"), oa = (e) => e && (Te(e) || D(e)) && D(e.then) && D(e.catch), dn = ((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
|
+
), aa = typeof queueMicrotask < "u" ? queueMicrotask.bind(ee) : typeof process < "u" && process.nextTick || dn, ia = (e) => e != null && D(e[Xe]), p = {
|
|
192
192
|
isArray: he,
|
|
193
193
|
isArrayBuffer: cn,
|
|
194
|
-
isBuffer:
|
|
195
|
-
isFormData:
|
|
196
|
-
isArrayBufferView:
|
|
197
|
-
isString:
|
|
194
|
+
isBuffer: Ie,
|
|
195
|
+
isFormData: Fo,
|
|
196
|
+
isArrayBufferView: Oo,
|
|
197
|
+
isString: Ao,
|
|
198
198
|
isNumber: ln,
|
|
199
|
-
isBoolean:
|
|
199
|
+
isBoolean: Ro,
|
|
200
200
|
isObject: Te,
|
|
201
201
|
isPlainObject: ke,
|
|
202
|
-
isEmptyObject:
|
|
203
|
-
isReadableStream:
|
|
204
|
-
isRequest:
|
|
205
|
-
isResponse:
|
|
206
|
-
isHeaders:
|
|
202
|
+
isEmptyObject: Po,
|
|
203
|
+
isReadableStream: Do,
|
|
204
|
+
isRequest: $o,
|
|
205
|
+
isResponse: Lo,
|
|
206
|
+
isHeaders: Uo,
|
|
207
207
|
isUndefined: pe,
|
|
208
|
-
isDate:
|
|
208
|
+
isDate: Co,
|
|
209
209
|
isFile: Io,
|
|
210
|
-
isBlob:
|
|
211
|
-
isRegExp:
|
|
210
|
+
isBlob: To,
|
|
211
|
+
isRegExp: Qo,
|
|
212
212
|
isFunction: D,
|
|
213
|
-
isStream:
|
|
214
|
-
isURLSearchParams:
|
|
215
|
-
isTypedArray:
|
|
216
|
-
isFileList:
|
|
213
|
+
isStream: xo,
|
|
214
|
+
isURLSearchParams: _o,
|
|
215
|
+
isTypedArray: Wo,
|
|
216
|
+
isFileList: No,
|
|
217
217
|
forEach: Ne,
|
|
218
218
|
merge: _t,
|
|
219
|
-
extend:
|
|
220
|
-
trim:
|
|
221
|
-
stripBOM:
|
|
222
|
-
inherits:
|
|
223
|
-
toFlatObject:
|
|
219
|
+
extend: Bo,
|
|
220
|
+
trim: Mo,
|
|
221
|
+
stripBOM: ko,
|
|
222
|
+
inherits: jo,
|
|
223
|
+
toFlatObject: qo,
|
|
224
224
|
kindOf: Ze,
|
|
225
225
|
kindOfTest: j,
|
|
226
|
-
endsWith:
|
|
227
|
-
toArray:
|
|
228
|
-
forEachEntry:
|
|
229
|
-
matchAll:
|
|
230
|
-
isHTMLForm:
|
|
226
|
+
endsWith: zo,
|
|
227
|
+
toArray: Ho,
|
|
228
|
+
forEachEntry: Jo,
|
|
229
|
+
matchAll: Go,
|
|
230
|
+
isHTMLForm: Vo,
|
|
231
231
|
hasOwnProperty: or,
|
|
232
232
|
hasOwnProp: or,
|
|
233
233
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
234
234
|
reduceDescriptors: pn,
|
|
235
|
-
freezeMethods:
|
|
236
|
-
toObjectSet:
|
|
237
|
-
toCamelCase:
|
|
238
|
-
noop:
|
|
239
|
-
toFiniteNumber:
|
|
235
|
+
freezeMethods: Xo,
|
|
236
|
+
toObjectSet: Zo,
|
|
237
|
+
toCamelCase: Ko,
|
|
238
|
+
noop: Yo,
|
|
239
|
+
toFiniteNumber: ea,
|
|
240
240
|
findKey: un,
|
|
241
241
|
global: ee,
|
|
242
242
|
isContextDefined: fn,
|
|
243
|
-
isSpecCompliantForm:
|
|
244
|
-
toJSONObject:
|
|
245
|
-
isAsyncFn:
|
|
246
|
-
isThenable:
|
|
243
|
+
isSpecCompliantForm: ta,
|
|
244
|
+
toJSONObject: ra,
|
|
245
|
+
isAsyncFn: na,
|
|
246
|
+
isThenable: oa,
|
|
247
247
|
setImmediate: dn,
|
|
248
|
-
asap:
|
|
249
|
-
isIterable:
|
|
248
|
+
asap: aa,
|
|
249
|
+
isIterable: ia
|
|
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);
|
|
@@ -300,7 +300,7 @@ S.from = (e, t, r, n, o, a) => {
|
|
|
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 sa = null;
|
|
304
304
|
function Dt(e) {
|
|
305
305
|
return p.isPlainObject(e) || p.isArray(e);
|
|
306
306
|
}
|
|
@@ -312,10 +312,10 @@ function ar(e, t, r) {
|
|
|
312
312
|
return o = mn(o), !r && a ? "[" + o + "]" : o;
|
|
313
313
|
}).join(r ? "." : "") : t;
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function ca(e) {
|
|
316
316
|
return p.isArray(e) && !e.some(Dt);
|
|
317
317
|
}
|
|
318
|
-
const
|
|
318
|
+
const la = p.toFlatObject(p, {}, null, function(t) {
|
|
319
319
|
return /^is[A-Z]/.test(t);
|
|
320
320
|
});
|
|
321
321
|
function et(e, t, r) {
|
|
@@ -346,7 +346,7 @@ function et(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) &&
|
|
349
|
+
else if (p.isArray(y) && ca(y) || (p.isFileList(y) || p.endsWith(m, "[]")) && (w = p.toArray(y)))
|
|
350
350
|
return m = mn(m), w.forEach(function(g, E) {
|
|
351
351
|
!(p.isUndefined(g) || g === null) && t.append(
|
|
352
352
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -357,7 +357,7 @@ function et(e, t, r) {
|
|
|
357
357
|
}
|
|
358
358
|
return Dt(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(la, {
|
|
361
361
|
defaultVisitor: l,
|
|
362
362
|
convertValue: u,
|
|
363
363
|
isVisitable: Dt
|
|
@@ -410,13 +410,13 @@ gn.toString = function(t) {
|
|
|
410
410
|
return r(o[0]) + "=" + r(o[1]);
|
|
411
411
|
}, "").join("&");
|
|
412
412
|
};
|
|
413
|
-
function
|
|
413
|
+
function ua(e) {
|
|
414
414
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
415
415
|
}
|
|
416
416
|
function vn(e, t, r) {
|
|
417
417
|
if (!t)
|
|
418
418
|
return e;
|
|
419
|
-
const n = r && r.encode ||
|
|
419
|
+
const n = r && r.encode || ua;
|
|
420
420
|
p.isFunction(r) && (r = {
|
|
421
421
|
serialize: r
|
|
422
422
|
});
|
|
@@ -486,27 +486,27 @@ const Sn = {
|
|
|
486
486
|
silentJSONParsing: !0,
|
|
487
487
|
forcedJSONParsing: !0,
|
|
488
488
|
clarifyTimeoutError: !1
|
|
489
|
-
},
|
|
489
|
+
}, fa = typeof URLSearchParams < "u" ? URLSearchParams : Jt, pa = typeof FormData < "u" ? FormData : null, da = typeof Blob < "u" ? Blob : null, ya = {
|
|
490
490
|
isBrowser: !0,
|
|
491
491
|
classes: {
|
|
492
|
-
URLSearchParams:
|
|
493
|
-
FormData:
|
|
494
|
-
Blob:
|
|
492
|
+
URLSearchParams: fa,
|
|
493
|
+
FormData: pa,
|
|
494
|
+
Blob: da
|
|
495
495
|
},
|
|
496
496
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
497
|
-
}, Gt = typeof window < "u" && typeof document < "u", $t = typeof navigator == "object" && navigator || void 0,
|
|
498
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
497
|
+
}, Gt = typeof window < "u" && typeof document < "u", $t = typeof navigator == "object" && navigator || void 0, ha = Gt && (!$t || ["ReactNative", "NativeScript", "NS"].indexOf($t.product) < 0), ma = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
498
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ga = Gt && window.location.href || "http://localhost", va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
499
499
|
__proto__: null,
|
|
500
500
|
hasBrowserEnv: Gt,
|
|
501
|
-
hasStandardBrowserEnv:
|
|
502
|
-
hasStandardBrowserWebWorkerEnv:
|
|
501
|
+
hasStandardBrowserEnv: ha,
|
|
502
|
+
hasStandardBrowserWebWorkerEnv: ma,
|
|
503
503
|
navigator: $t,
|
|
504
|
-
origin:
|
|
504
|
+
origin: ga
|
|
505
505
|
}, Symbol.toStringTag, { value: "Module" })), _ = {
|
|
506
|
-
...
|
|
507
|
-
...
|
|
506
|
+
...va,
|
|
507
|
+
...ya
|
|
508
508
|
};
|
|
509
|
-
function
|
|
509
|
+
function Sa(e, t) {
|
|
510
510
|
return et(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 va(e, t) {
|
|
|
514
514
|
...t
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function wa(e) {
|
|
518
518
|
return p.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function ba(e) {
|
|
521
521
|
const t = {}, r = Object.keys(e);
|
|
522
522
|
let n;
|
|
523
523
|
const o = r.length;
|
|
@@ -531,17 +531,17 @@ function wn(e) {
|
|
|
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] = ba(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(wa(n), o, r, 0);
|
|
540
540
|
}), r;
|
|
541
541
|
}
|
|
542
542
|
return null;
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function Ea(e, t, r) {
|
|
545
545
|
if (p.isString(e))
|
|
546
546
|
try {
|
|
547
547
|
return (t || JSON.parse)(e), p.trim(e);
|
|
@@ -567,7 +567,7 @@ const xe = {
|
|
|
567
567
|
let s;
|
|
568
568
|
if (a) {
|
|
569
569
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
570
|
-
return
|
|
570
|
+
return Sa(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 et(
|
|
@@ -577,7 +577,7 @@ const xe = {
|
|
|
577
577
|
);
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
return a || o ? (r.setContentType("application/json", !1),
|
|
580
|
+
return a || o ? (r.setContentType("application/json", !1), Ea(t)) : t;
|
|
581
581
|
}],
|
|
582
582
|
transformResponse: [function(t) {
|
|
583
583
|
const r = this.transitional || xe.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
|
|
@@ -620,7 +620,7 @@ const xe = {
|
|
|
620
620
|
p.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
621
621
|
xe.headers[e] = {};
|
|
622
622
|
});
|
|
623
|
-
const
|
|
623
|
+
const Oa = p.toObjectSet([
|
|
624
624
|
"age",
|
|
625
625
|
"authorization",
|
|
626
626
|
"content-length",
|
|
@@ -638,12 +638,12 @@ const Ea = p.toObjectSet([
|
|
|
638
638
|
"referer",
|
|
639
639
|
"retry-after",
|
|
640
640
|
"user-agent"
|
|
641
|
-
]),
|
|
641
|
+
]), Aa = (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] && Oa[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 je(e) {
|
|
653
653
|
return e === !1 || e == null ? e : p.isArray(e) ? e.map(je) : String(e);
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function Ra(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 Pa = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
663
663
|
function st(e, t, r, n, o) {
|
|
664
664
|
if (p.isFunction(n))
|
|
665
665
|
return n.call(this, t, r);
|
|
@@ -670,7 +670,7 @@ function st(e, t, r, n, o) {
|
|
|
670
670
|
return n.test(t);
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function Ca(e) {
|
|
674
674
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
|
|
675
675
|
}
|
|
676
676
|
function Ia(e, t) {
|
|
@@ -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()) && !Pa(t))
|
|
704
|
+
i(Aa(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 Ra(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] = je(o), delete r[a];
|
|
767
767
|
return;
|
|
768
768
|
}
|
|
769
|
-
const s = t ?
|
|
769
|
+
const s = t ? Ca(a) : String(a).trim();
|
|
770
770
|
s !== a && delete r[a], r[s] = je(o), n[s] = !0;
|
|
771
771
|
}), this;
|
|
772
772
|
}
|
|
@@ -847,11 +847,11 @@ function En(e, t, r) {
|
|
|
847
847
|
r
|
|
848
848
|
));
|
|
849
849
|
}
|
|
850
|
-
function
|
|
850
|
+
function Ta(e) {
|
|
851
851
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
852
852
|
return t && t[1] || "";
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function Na(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 Ta(e, t) {
|
|
|
867
867
|
return v ? Math.round(d * 1e3 / v) : void 0;
|
|
868
868
|
};
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function xa(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 Na(e, t) {
|
|
|
881
881
|
}
|
|
882
882
|
const Je = (e, t, r = 3) => {
|
|
883
883
|
let n = 0;
|
|
884
|
-
const o =
|
|
885
|
-
return
|
|
884
|
+
const o = Na(50, 250);
|
|
885
|
+
return xa((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 Je = (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)), Fa = _.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, _a = _.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 Je = (e, t, r = 3) => {
|
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
939
|
);
|
|
940
|
-
function
|
|
940
|
+
function Da(e) {
|
|
941
941
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function $a(e, t) {
|
|
944
944
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
945
945
|
}
|
|
946
946
|
function On(e, t, r) {
|
|
947
|
-
let n = !
|
|
948
|
-
return e && (n || r == !1) ?
|
|
947
|
+
let n = !Da(t);
|
|
948
|
+
return e && (n || r == !1) ? $a(e, t) : t;
|
|
949
949
|
}
|
|
950
950
|
const fr = (e) => e instanceof $ ? { ...e } : e;
|
|
951
951
|
function ne(e, t) {
|
|
@@ -1028,12 +1028,12 @@ const An = (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 && Fa(t.url))) {
|
|
1032
|
+
const c = o && a && _a.read(a);
|
|
1033
1033
|
c && i.set(o, c);
|
|
1034
1034
|
}
|
|
1035
1035
|
return t;
|
|
1036
|
-
},
|
|
1036
|
+
}, La = typeof XMLHttpRequest < "u", Ua = La && function(e) {
|
|
1037
1037
|
return new Promise(function(r, n) {
|
|
1038
1038
|
const o = An(e);
|
|
1039
1039
|
let a = o.data;
|
|
@@ -1057,10 +1057,10 @@ const An = (e) => {
|
|
|
1057
1057
|
config: e,
|
|
1058
1058
|
request: h
|
|
1059
1059
|
};
|
|
1060
|
-
En(function(
|
|
1061
|
-
r(
|
|
1062
|
-
}, function(
|
|
1063
|
-
n(
|
|
1060
|
+
En(function(C) {
|
|
1061
|
+
r(C), m();
|
|
1062
|
+
}, function(C) {
|
|
1063
|
+
n(C), m();
|
|
1064
1064
|
}, P), h = null;
|
|
1065
1065
|
}
|
|
1066
1066
|
"onloadend" in h ? h.onloadend = w : h.onreadystatechange = function() {
|
|
@@ -1084,14 +1084,14 @@ const An = (e) => {
|
|
|
1084
1084
|
}), p.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), u && ([d, y] = Je(u, !0), h.addEventListener("progress", d)), c && h.upload && ([f, v] = Je(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 = Ta(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
|
+
}, Ma = (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 An = (e) => {
|
|
|
1114
1114
|
const { signal: c } = n;
|
|
1115
1115
|
return c.unsubscribe = () => p.asap(s), c;
|
|
1116
1116
|
}
|
|
1117
|
-
},
|
|
1117
|
+
}, Ba = function* (e, t) {
|
|
1118
1118
|
let r = e.byteLength;
|
|
1119
1119
|
if (r < t) {
|
|
1120
1120
|
yield e;
|
|
@@ -1123,10 +1123,10 @@ const An = (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
|
+
}, ka = async function* (e, t) {
|
|
1127
|
+
for await (const r of ja(e))
|
|
1128
|
+
yield* Ba(r, t);
|
|
1129
|
+
}, ja = async function* (e) {
|
|
1130
1130
|
if (e[Symbol.asyncIterator]) {
|
|
1131
1131
|
yield* e;
|
|
1132
1132
|
return;
|
|
@@ -1143,7 +1143,7 @@ const An = (e) => {
|
|
|
1143
1143
|
await t.cancel();
|
|
1144
1144
|
}
|
|
1145
1145
|
}, pr = (e, t, r, n) => {
|
|
1146
|
-
const o =
|
|
1146
|
+
const o = ka(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 An = (e) => {
|
|
|
1171
1171
|
}, {
|
|
1172
1172
|
highWaterMark: 2
|
|
1173
1173
|
});
|
|
1174
|
-
}, dr = 64 * 1024, { isFunction: Le } = p,
|
|
1174
|
+
}, dr = 64 * 1024, { isFunction: Le } = p, qa = (({ Request: e, Response: t }) => ({
|
|
1175
1175
|
Request: e,
|
|
1176
1176
|
Response: t
|
|
1177
1177
|
}))(p.global), {
|
|
@@ -1183,10 +1183,10 @@ const An = (e) => {
|
|
|
1183
1183
|
} catch {
|
|
1184
1184
|
return !1;
|
|
1185
1185
|
}
|
|
1186
|
-
},
|
|
1186
|
+
}, za = (e) => {
|
|
1187
1187
|
e = p.merge.call({
|
|
1188
1188
|
skipUndefined: !0
|
|
1189
|
-
},
|
|
1189
|
+
}, qa, e);
|
|
1190
1190
|
const { fetch: t, Request: r, Response: n } = e, o = t ? Le(t) : typeof fetch == "function", a = Le(r), i = Le(n);
|
|
1191
1191
|
if (!o)
|
|
1192
1192
|
return !1;
|
|
@@ -1239,13 +1239,13 @@ const An = (e) => {
|
|
|
1239
1239
|
timeout: E,
|
|
1240
1240
|
onDownloadProgress: P,
|
|
1241
1241
|
onUploadProgress: L,
|
|
1242
|
-
responseType:
|
|
1242
|
+
responseType: C,
|
|
1243
1243
|
headers: V,
|
|
1244
1244
|
withCredentials: U = "same-origin",
|
|
1245
1245
|
fetchOptions: B
|
|
1246
1246
|
} = An(y), Z = t || fetch;
|
|
1247
|
-
|
|
1248
|
-
let k =
|
|
1247
|
+
C = C ? (C + "").toLowerCase() : "text";
|
|
1248
|
+
let k = Ma([O, g && g.toAbortSignal()], E), N = null;
|
|
1249
1249
|
const x = k && k.unsubscribe && (() => {
|
|
1250
1250
|
k.unsubscribe();
|
|
1251
1251
|
});
|
|
@@ -1277,7 +1277,7 @@ const An = (e) => {
|
|
|
1277
1277
|
};
|
|
1278
1278
|
N = a && new r(m, ie);
|
|
1279
1279
|
let q = await (a ? Z(N, B) : Z(m, ie));
|
|
1280
|
-
const ve = l && (
|
|
1280
|
+
const ve = l && (C === "stream" || C === "response");
|
|
1281
1281
|
if (l && (P || ve && x)) {
|
|
1282
1282
|
const K = {};
|
|
1283
1283
|
["status", "statusText", "headers"].forEach((nr) => {
|
|
@@ -1294,8 +1294,8 @@ const An = (e) => {
|
|
|
1294
1294
|
K
|
|
1295
1295
|
);
|
|
1296
1296
|
}
|
|
1297
|
-
|
|
1298
|
-
let Se = await f[p.findKey(f,
|
|
1297
|
+
C = C || "text";
|
|
1298
|
+
let Se = await f[p.findKey(f, C) || "text"](q, y);
|
|
1299
1299
|
return !ve && x && x(), await new Promise((K, se) => {
|
|
1300
1300
|
En(K, se, {
|
|
1301
1301
|
data: Se,
|
|
@@ -1315,22 +1315,22 @@ const An = (e) => {
|
|
|
1315
1315
|
) : S.from(F, F && F.code, y, N);
|
|
1316
1316
|
}
|
|
1317
1317
|
};
|
|
1318
|
-
},
|
|
1318
|
+
}, Ha = /* @__PURE__ */ new Map(), Rn = (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 = Ha;
|
|
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() : za(t)), l = u;
|
|
1328
1328
|
return u;
|
|
1329
1329
|
};
|
|
1330
1330
|
Rn();
|
|
1331
1331
|
const Vt = {
|
|
1332
|
-
http:
|
|
1333
|
-
xhr:
|
|
1332
|
+
http: sa,
|
|
1333
|
+
xhr: Ua,
|
|
1334
1334
|
fetch: {
|
|
1335
1335
|
get: Rn
|
|
1336
1336
|
}
|
|
@@ -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}`, Wa = (e) => p.isFunction(e) || e === null || e === !1;
|
|
1348
|
+
function Ja(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 Wa(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, !Wa(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;
|
|
@@ -1378,7 +1378,7 @@ const Pn = {
|
|
|
1378
1378
|
* Resolve an adapter from a list of adapter names or functions.
|
|
1379
1379
|
* @type {Function}
|
|
1380
1380
|
*/
|
|
1381
|
-
getAdapter:
|
|
1381
|
+
getAdapter: Ja,
|
|
1382
1382
|
/**
|
|
1383
1383
|
* Exposes all known adapters
|
|
1384
1384
|
* @type {Object<string, Function|Object>}
|
|
@@ -1407,7 +1407,7 @@ function vr(e) {
|
|
|
1407
1407
|
), n.response.headers = $.from(n.response.headers))), Promise.reject(n);
|
|
1408
1408
|
});
|
|
1409
1409
|
}
|
|
1410
|
-
const
|
|
1410
|
+
const Cn = "1.13.2", tt = {};
|
|
1411
1411
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1412
1412
|
tt[e] = function(n) {
|
|
1413
1413
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
@@ -1416,7 +1416,7 @@ const In = "1.13.2", tt = {};
|
|
|
1416
1416
|
const Sr = {};
|
|
1417
1417
|
tt.transitional = function(t, r, n) {
|
|
1418
1418
|
function o(a, i) {
|
|
1419
|
-
return "[Axios v" +
|
|
1419
|
+
return "[Axios v" + Cn + "] Transitional option '" + a + "'" + i + (n ? ". " + n : "");
|
|
1420
1420
|
}
|
|
1421
1421
|
return (a, i, s) => {
|
|
1422
1422
|
if (t === !1)
|
|
@@ -1430,7 +1430,7 @@ tt.transitional = function(t, r, n) {
|
|
|
1430
1430
|
tt.spelling = function(t) {
|
|
1431
1431
|
return (r, n) => !0;
|
|
1432
1432
|
};
|
|
1433
|
-
function
|
|
1433
|
+
function Ga(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 Ja(e, t, r) {
|
|
|
1448
1448
|
}
|
|
1449
1449
|
}
|
|
1450
1450
|
const qe = {
|
|
1451
|
-
assertOptions:
|
|
1451
|
+
assertOptions: Ga,
|
|
1452
1452
|
validators: tt
|
|
1453
1453
|
}, z = qe.validators;
|
|
1454
1454
|
class te {
|
|
@@ -1648,12 +1648,12 @@ class Kt {
|
|
|
1648
1648
|
};
|
|
1649
1649
|
}
|
|
1650
1650
|
}
|
|
1651
|
-
function
|
|
1651
|
+
function Va(e) {
|
|
1652
1652
|
return function(r) {
|
|
1653
1653
|
return e.apply(null, r);
|
|
1654
1654
|
};
|
|
1655
1655
|
}
|
|
1656
|
-
function
|
|
1656
|
+
function Ka(e) {
|
|
1657
1657
|
return p.isObject(e) && e.isAxiosError === !0;
|
|
1658
1658
|
}
|
|
1659
1659
|
const Lt = {
|
|
@@ -1730,26 +1730,26 @@ const Lt = {
|
|
|
1730
1730
|
Object.entries(Lt).forEach(([e, t]) => {
|
|
1731
1731
|
Lt[t] = e;
|
|
1732
1732
|
});
|
|
1733
|
-
function
|
|
1733
|
+
function In(e) {
|
|
1734
1734
|
const t = new te(e), r = an(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 In(ne(e, o));
|
|
1737
1737
|
}, r;
|
|
1738
1738
|
}
|
|
1739
|
-
const R =
|
|
1739
|
+
const R = In(xe);
|
|
1740
1740
|
R.Axios = te;
|
|
1741
1741
|
R.CanceledError = me;
|
|
1742
1742
|
R.CancelToken = Kt;
|
|
1743
1743
|
R.isCancel = bn;
|
|
1744
|
-
R.VERSION =
|
|
1744
|
+
R.VERSION = Cn;
|
|
1745
1745
|
R.toFormData = et;
|
|
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 = Va;
|
|
1752
|
+
R.isAxiosError = Ka;
|
|
1753
1753
|
R.mergeConfig = ne;
|
|
1754
1754
|
R.AxiosHeaders = $;
|
|
1755
1755
|
R.formToJSON = (e) => wn(p.isHTMLForm(e) ? new FormData(e) : e);
|
|
@@ -1757,10 +1757,10 @@ R.getAdapter = Pn.getAdapter;
|
|
|
1757
1757
|
R.HttpStatusCode = Lt;
|
|
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 Qa(e) {
|
|
1761
1761
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1763
|
+
function Xa(e) {
|
|
1764
1764
|
if (e.__esModule) return e;
|
|
1765
1765
|
var t = e.default;
|
|
1766
1766
|
if (typeof t == "function") {
|
|
@@ -1780,14 +1780,14 @@ function Qa(e) {
|
|
|
1780
1780
|
}), r;
|
|
1781
1781
|
}
|
|
1782
1782
|
var ge = TypeError;
|
|
1783
|
-
const
|
|
1783
|
+
const Za = {}, Ya = /* @__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, ut = Object.getOwnPropertyDescriptor && Qt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ge = Qt && ut && typeof ut.get == "function" ? ut.get : null, br = Qt && Map.prototype.forEach, Xt = typeof Set == "function" && Set.prototype, ft = Object.getOwnPropertyDescriptor && Xt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ve = Xt && ft && typeof ft.get == "function" ? ft.get : null, Er = Xt && Set.prototype.forEach,
|
|
1785
|
+
default: Za
|
|
1786
|
+
}, Symbol.toStringTag, { value: "Module" })), ei = /* @__PURE__ */ Xa(Ya);
|
|
1787
|
+
var Qt = typeof Map == "function" && Map.prototype, ut = Object.getOwnPropertyDescriptor && Qt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ge = Qt && ut && typeof ut.get == "function" ? ut.get : null, br = Qt && Map.prototype.forEach, Xt = typeof Set == "function" && Set.prototype, ft = Object.getOwnPropertyDescriptor && Xt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ve = Xt && ft && typeof ft.get == "function" ? ft.get : null, Er = Xt && Set.prototype.forEach, ti = typeof WeakMap == "function" && WeakMap.prototype, Ee = ti ? WeakMap.prototype.has : null, ri = typeof WeakSet == "function" && WeakSet.prototype, Oe = ri ? WeakSet.prototype.has : null, ni = typeof WeakRef == "function" && WeakRef.prototype, Or = ni ? WeakRef.prototype.deref : null, oi = Boolean.prototype.valueOf, ai = Object.prototype.toString, ii = Function.prototype.toString, si = String.prototype.match, Zt = String.prototype.slice, Q = String.prototype.replace, ci = String.prototype.toUpperCase, Ar = String.prototype.toLowerCase, Tn = RegExp.prototype.test, Rr = Array.prototype.concat, J = Array.prototype.join, li = Array.prototype.slice, Pr = Math.floor, Ut = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, pt = Object.getOwnPropertySymbols, Mt = 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, Nn = Object.prototype.propertyIsEnumerable, Cr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
|
|
1788
1788
|
return e.__proto__;
|
|
1789
1789
|
} : null);
|
|
1790
|
-
function
|
|
1790
|
+
function Ir(e, t) {
|
|
1791
1791
|
if (e === 1 / 0 || e === -1 / 0 || e !== e || e && e > -1e3 && e < 1e3 || Tn.call(/e/, t))
|
|
1792
1792
|
return t;
|
|
1793
1793
|
var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
@@ -1800,11 +1800,11 @@ function Cr(e, t) {
|
|
|
1800
1800
|
}
|
|
1801
1801
|
return Q.call(t, r, "$&_");
|
|
1802
1802
|
}
|
|
1803
|
-
var Bt =
|
|
1803
|
+
var Bt = ei, Tr = Bt.custom, Nr = _n(Tr) ? Tr : null, xn = {
|
|
1804
1804
|
__proto__: null,
|
|
1805
1805
|
double: '"',
|
|
1806
1806
|
single: "'"
|
|
1807
|
-
},
|
|
1807
|
+
}, ui = {
|
|
1808
1808
|
__proto__: null,
|
|
1809
1809
|
double: /(["\\])/g,
|
|
1810
1810
|
single: /(['\\])/g
|
|
@@ -1834,11 +1834,11 @@ var Bt = Ya, Tr = Bt.custom, Nr = _n(Tr) ? Tr : null, xn = {
|
|
|
1834
1834
|
if (t === 0)
|
|
1835
1835
|
return 1 / 0 / t > 0 ? "0" : "-0";
|
|
1836
1836
|
var c = String(t);
|
|
1837
|
-
return s ?
|
|
1837
|
+
return s ? Ir(t, c) : c;
|
|
1838
1838
|
}
|
|
1839
1839
|
if (typeof t == "bigint") {
|
|
1840
1840
|
var u = String(t) + "n";
|
|
1841
|
-
return s ?
|
|
1841
|
+
return s ? Ir(t, u) : u;
|
|
1842
1842
|
}
|
|
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")
|
|
@@ -1849,7 +1849,7 @@ var Bt = Ya, Tr = Bt.custom, Nr = _n(Tr) ? Tr : null, xn = {
|
|
|
1849
1849
|
else if (Dn(o, t) >= 0)
|
|
1850
1850
|
return "[Circular]";
|
|
1851
1851
|
function d(N, x, M) {
|
|
1852
|
-
if (x && (o =
|
|
1852
|
+
if (x && (o = li.call(o), o.push(x)), M) {
|
|
1853
1853
|
var F = {
|
|
1854
1854
|
depth: a.depth
|
|
1855
1855
|
};
|
|
@@ -1858,25 +1858,25 @@ var Bt = Ya, Tr = Bt.custom, Nr = _n(Tr) ? Tr : null, xn = {
|
|
|
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 = Si(t), y = Ue(t, d);
|
|
1862
1862
|
return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + J.call(y, ", ") + " }" : "");
|
|
1863
1863
|
}
|
|
1864
1864
|
if (_n(t)) {
|
|
1865
1865
|
var m = de ? Q.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : Mt.call(t);
|
|
1866
1866
|
return typeof t == "object" && !de ? be(m) : m;
|
|
1867
1867
|
}
|
|
1868
|
-
if (
|
|
1868
|
+
if (Ri(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 + "=" + Fn(
|
|
1870
|
+
h += " " + w[O].name + "=" + Fn(fi(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 (kt(t)) {
|
|
1874
1874
|
if (t.length === 0)
|
|
1875
1875
|
return "[]";
|
|
1876
1876
|
var g = Ue(t, d);
|
|
1877
|
-
return f && !
|
|
1877
|
+
return f && !Ci(g) ? "[" + jt(g, f) + "]" : "[ " + J.call(g, ", ") + " ]";
|
|
1878
1878
|
}
|
|
1879
|
-
if (
|
|
1879
|
+
if (di(t)) {
|
|
1880
1880
|
var E = Ue(t, d);
|
|
1881
1881
|
return !("cause" in Error.prototype) && "cause" in t && !Nn.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
|
}
|
|
@@ -1886,39 +1886,39 @@ var Bt = Ya, Tr = Bt.custom, Nr = _n(Tr) ? Tr : null, xn = {
|
|
|
1886
1886
|
if (i !== "symbol" && typeof t.inspect == "function")
|
|
1887
1887
|
return t.inspect();
|
|
1888
1888
|
}
|
|
1889
|
-
if (
|
|
1889
|
+
if (wi(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", Ge.call(t), P, f);
|
|
1894
1894
|
}
|
|
1895
|
-
if (
|
|
1895
|
+
if (Oi(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", Ve.call(t), L, f);
|
|
1900
1900
|
}
|
|
1901
|
-
if (
|
|
1901
|
+
if (bi(t))
|
|
1902
1902
|
return dt("WeakMap");
|
|
1903
|
-
if (
|
|
1903
|
+
if (Ai(t))
|
|
1904
1904
|
return dt("WeakSet");
|
|
1905
|
-
if (
|
|
1905
|
+
if (Ei(t))
|
|
1906
1906
|
return dt("WeakRef");
|
|
1907
|
-
if (
|
|
1907
|
+
if (hi(t))
|
|
1908
1908
|
return be(d(Number(t)));
|
|
1909
|
-
if (
|
|
1909
|
+
if (gi(t))
|
|
1910
1910
|
return be(d(Ut.call(t)));
|
|
1911
|
-
if (
|
|
1912
|
-
return be(
|
|
1913
|
-
if (
|
|
1911
|
+
if (mi(t))
|
|
1912
|
+
return be(oi.call(t));
|
|
1913
|
+
if (yi(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
|
|
1921
|
-
return
|
|
1919
|
+
if (!pi(t) && !xr(t)) {
|
|
1920
|
+
var C = Ue(t, d), V = Cr ? Cr(t) === Object.prototype : t instanceof Object || t.constructor === Object, U = t instanceof Object ? "" : "null prototype", B = !V && Ae && Object(t) === t && Ae in t ? Zt.call(X(t), 8, -1) : U ? "Object" : "", Z = V || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", k = Z + (B || U ? "[" + J.call(Rr.call([], B || [], U || []), ": ") + "] " : "");
|
|
1921
|
+
return C.length === 0 ? k + "{}" : f ? k + "{" + jt(C, f) + "}" : k + "{ " + J.call(C, ", ") + " }";
|
|
1922
1922
|
}
|
|
1923
1923
|
return String(t);
|
|
1924
1924
|
};
|
|
@@ -1926,7 +1926,7 @@ function Fn(e, t, r) {
|
|
|
1926
1926
|
var n = r.quoteStyle || t, o = xn[n];
|
|
1927
1927
|
return o + e + o;
|
|
1928
1928
|
}
|
|
1929
|
-
function
|
|
1929
|
+
function fi(e) {
|
|
1930
1930
|
return Q.call(String(e), /"/g, """);
|
|
1931
1931
|
}
|
|
1932
1932
|
function ae(e) {
|
|
@@ -1935,22 +1935,22 @@ function ae(e) {
|
|
|
1935
1935
|
function kt(e) {
|
|
1936
1936
|
return X(e) === "[object Array]" && ae(e);
|
|
1937
1937
|
}
|
|
1938
|
-
function
|
|
1938
|
+
function pi(e) {
|
|
1939
1939
|
return X(e) === "[object Date]" && ae(e);
|
|
1940
1940
|
}
|
|
1941
1941
|
function xr(e) {
|
|
1942
1942
|
return X(e) === "[object RegExp]" && ae(e);
|
|
1943
1943
|
}
|
|
1944
|
-
function
|
|
1944
|
+
function di(e) {
|
|
1945
1945
|
return X(e) === "[object Error]" && ae(e);
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1947
|
+
function yi(e) {
|
|
1948
1948
|
return X(e) === "[object String]" && ae(e);
|
|
1949
1949
|
}
|
|
1950
|
-
function
|
|
1950
|
+
function hi(e) {
|
|
1951
1951
|
return X(e) === "[object Number]" && ae(e);
|
|
1952
1952
|
}
|
|
1953
|
-
function
|
|
1953
|
+
function mi(e) {
|
|
1954
1954
|
return X(e) === "[object Boolean]" && ae(e);
|
|
1955
1955
|
}
|
|
1956
1956
|
function _n(e) {
|
|
@@ -1966,7 +1966,7 @@ function _n(e) {
|
|
|
1966
1966
|
}
|
|
1967
1967
|
return !1;
|
|
1968
1968
|
}
|
|
1969
|
-
function
|
|
1969
|
+
function gi(e) {
|
|
1970
1970
|
if (!e || typeof e != "object" || !Ut)
|
|
1971
1971
|
return !1;
|
|
1972
1972
|
try {
|
|
@@ -1975,19 +1975,19 @@ function mi(e) {
|
|
|
1975
1975
|
}
|
|
1976
1976
|
return !1;
|
|
1977
1977
|
}
|
|
1978
|
-
var
|
|
1978
|
+
var vi = Object.prototype.hasOwnProperty || function(e) {
|
|
1979
1979
|
return e in this;
|
|
1980
1980
|
};
|
|
1981
1981
|
function G(e, t) {
|
|
1982
|
-
return
|
|
1982
|
+
return vi.call(e, t);
|
|
1983
1983
|
}
|
|
1984
1984
|
function X(e) {
|
|
1985
|
-
return
|
|
1985
|
+
return ai.call(e);
|
|
1986
1986
|
}
|
|
1987
|
-
function
|
|
1987
|
+
function Si(e) {
|
|
1988
1988
|
if (e.name)
|
|
1989
1989
|
return e.name;
|
|
1990
|
-
var t =
|
|
1990
|
+
var t = si.call(ii.call(e), /^function\s*([\w$]+)/);
|
|
1991
1991
|
return t ? t[1] : null;
|
|
1992
1992
|
}
|
|
1993
1993
|
function Dn(e, t) {
|
|
@@ -1998,7 +1998,7 @@ function Dn(e, t) {
|
|
|
1998
1998
|
return r;
|
|
1999
1999
|
return -1;
|
|
2000
2000
|
}
|
|
2001
|
-
function
|
|
2001
|
+
function wi(e) {
|
|
2002
2002
|
if (!Ge || !e || typeof e != "object")
|
|
2003
2003
|
return !1;
|
|
2004
2004
|
try {
|
|
@@ -2013,7 +2013,7 @@ function Si(e) {
|
|
|
2013
2013
|
}
|
|
2014
2014
|
return !1;
|
|
2015
2015
|
}
|
|
2016
|
-
function
|
|
2016
|
+
function bi(e) {
|
|
2017
2017
|
if (!Ee || !e || typeof e != "object")
|
|
2018
2018
|
return !1;
|
|
2019
2019
|
try {
|
|
@@ -2028,7 +2028,7 @@ function wi(e) {
|
|
|
2028
2028
|
}
|
|
2029
2029
|
return !1;
|
|
2030
2030
|
}
|
|
2031
|
-
function
|
|
2031
|
+
function Ei(e) {
|
|
2032
2032
|
if (!Or || !e || typeof e != "object")
|
|
2033
2033
|
return !1;
|
|
2034
2034
|
try {
|
|
@@ -2037,7 +2037,7 @@ function bi(e) {
|
|
|
2037
2037
|
}
|
|
2038
2038
|
return !1;
|
|
2039
2039
|
}
|
|
2040
|
-
function
|
|
2040
|
+
function Oi(e) {
|
|
2041
2041
|
if (!Ve || !e || typeof e != "object")
|
|
2042
2042
|
return !1;
|
|
2043
2043
|
try {
|
|
@@ -2052,7 +2052,7 @@ function Ei(e) {
|
|
|
2052
2052
|
}
|
|
2053
2053
|
return !1;
|
|
2054
2054
|
}
|
|
2055
|
-
function
|
|
2055
|
+
function Ai(e) {
|
|
2056
2056
|
if (!Oe || !e || typeof e != "object")
|
|
2057
2057
|
return !1;
|
|
2058
2058
|
try {
|
|
@@ -2067,7 +2067,7 @@ function Oi(e) {
|
|
|
2067
2067
|
}
|
|
2068
2068
|
return !1;
|
|
2069
2069
|
}
|
|
2070
|
-
function
|
|
2070
|
+
function Ri(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
2073
|
function $n(e, t) {
|
|
@@ -2075,12 +2075,12 @@ function $n(e, t) {
|
|
|
2075
2075
|
var r = e.length - t.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
|
|
2076
2076
|
return $n(Zt.call(e, 0, t.maxStringLength), t) + n;
|
|
2077
2077
|
}
|
|
2078
|
-
var o =
|
|
2078
|
+
var o = ui[t.quoteStyle || "single"];
|
|
2079
2079
|
o.lastIndex = 0;
|
|
2080
|
-
var a = Q.call(Q.call(e, o, "\\$1"), /[\x00-\x1f]/g,
|
|
2080
|
+
var a = Q.call(Q.call(e, o, "\\$1"), /[\x00-\x1f]/g, Pi);
|
|
2081
2081
|
return Fn(a, "single", t);
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function Pi(e) {
|
|
2084
2084
|
var t = e.charCodeAt(0), r = {
|
|
2085
2085
|
8: "b",
|
|
2086
2086
|
9: "t",
|
|
@@ -2088,7 +2088,7 @@ function Ri(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" : "") + ci.call(t.toString(16));
|
|
2092
2092
|
}
|
|
2093
2093
|
function be(e) {
|
|
2094
2094
|
return "Object(" + e + ")";
|
|
@@ -2100,7 +2100,7 @@ function Fr(e, t, r, n) {
|
|
|
2100
2100
|
var o = n ? jt(r, n) : J.call(r, ", ");
|
|
2101
2101
|
return e + " (" + t + ") {" + o + "}";
|
|
2102
2102
|
}
|
|
2103
|
-
function
|
|
2103
|
+
function Ci(e) {
|
|
2104
2104
|
for (var t = 0; t < e.length; t++)
|
|
2105
2105
|
if (Dn(e[t], `
|
|
2106
2106
|
`) >= 0)
|
|
@@ -2148,17 +2148,17 @@ function Ue(e, t) {
|
|
|
2148
2148
|
Nn.call(e, a[u]) && n.push("[" + t(a[u]) + "]: " + t(e[a[u]], e));
|
|
2149
2149
|
return n;
|
|
2150
2150
|
}
|
|
2151
|
-
var
|
|
2151
|
+
var Ti = rt, Ni = ge, nt = 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
|
+
}, xi = function(e, t) {
|
|
2157
2157
|
if (e) {
|
|
2158
2158
|
var r = nt(e, t);
|
|
2159
2159
|
return r && r.value;
|
|
2160
2160
|
}
|
|
2161
|
-
},
|
|
2161
|
+
}, Fi = function(e, t, r) {
|
|
2162
2162
|
var n = nt(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 Ci = rt, Ti = ge, nt = function(e, t, r) {
|
|
|
2167
2167
|
next: e.next,
|
|
2168
2168
|
value: r
|
|
2169
2169
|
};
|
|
2170
|
-
}, Fi = function(e, t) {
|
|
2171
|
-
return e ? !!nt(e, t) : !1;
|
|
2172
2170
|
}, _i = function(e, t) {
|
|
2171
|
+
return e ? !!nt(e, t) : !1;
|
|
2172
|
+
}, Di = function(e, t) {
|
|
2173
2173
|
if (e)
|
|
2174
2174
|
return nt(e, t, !0);
|
|
2175
|
-
},
|
|
2175
|
+
}, $i = function() {
|
|
2176
2176
|
var t, r = {
|
|
2177
2177
|
assert: function(n) {
|
|
2178
2178
|
if (!r.has(n))
|
|
2179
|
-
throw new
|
|
2179
|
+
throw new Ni("Side channel does not contain " + Ti(n));
|
|
2180
2180
|
},
|
|
2181
2181
|
delete: function(n) {
|
|
2182
|
-
var o = t && t.next, a =
|
|
2182
|
+
var o = t && t.next, a = Di(t, n);
|
|
2183
2183
|
return a && o && o === a && (t = void 0), !!a;
|
|
2184
2184
|
},
|
|
2185
2185
|
get: function(n) {
|
|
2186
|
-
return
|
|
2186
|
+
return xi(t, n);
|
|
2187
2187
|
},
|
|
2188
2188
|
has: function(n) {
|
|
2189
|
-
return
|
|
2189
|
+
return _i(t, n);
|
|
2190
2190
|
},
|
|
2191
2191
|
set: function(n, o) {
|
|
2192
2192
|
t || (t = {
|
|
2193
2193
|
next: void 0
|
|
2194
|
-
}),
|
|
2194
|
+
}), Fi(
|
|
2195
2195
|
/** @type {NonNullable<typeof $o>} */
|
|
2196
2196
|
t,
|
|
2197
2197
|
n,
|
|
@@ -2200,11 +2200,11 @@ var Ci = rt, Ti = ge, nt = function(e, t, r) {
|
|
|
2200
2200
|
}
|
|
2201
2201
|
};
|
|
2202
2202
|
return r;
|
|
2203
|
-
}, Ln = Object,
|
|
2203
|
+
}, Ln = Object, Li = Error, Ui = EvalError, Mi = RangeError, Bi = ReferenceError, ki = SyntaxError, ji = URIError, qi = Math.abs, zi = Math.floor, Hi = Math.max, Wi = Math.min, Ji = Math.pow, Gi = Math.round, Vi = Number.isNaN || function(t) {
|
|
2204
2204
|
return t !== t;
|
|
2205
|
-
},
|
|
2206
|
-
return
|
|
2207
|
-
},
|
|
2205
|
+
}, Ki = Vi, Qi = function(t) {
|
|
2206
|
+
return Ki(t) || t === 0 ? t : t < 0 ? -1 : 1;
|
|
2207
|
+
}, Xi = Object.getOwnPropertyDescriptor, ze = Xi;
|
|
2208
2208
|
if (ze)
|
|
2209
2209
|
try {
|
|
2210
2210
|
ze([], "length");
|
|
@@ -2218,8 +2218,8 @@ if (He)
|
|
|
2218
2218
|
} catch {
|
|
2219
2219
|
He = !1;
|
|
2220
2220
|
}
|
|
2221
|
-
var
|
|
2222
|
-
function
|
|
2221
|
+
var Zi = He, yt, _r;
|
|
2222
|
+
function Yi() {
|
|
2223
2223
|
return _r || (_r = 1, yt = function() {
|
|
2224
2224
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2225
2225
|
return !1;
|
|
@@ -2249,10 +2249,10 @@ function Zi() {
|
|
|
2249
2249
|
}), yt;
|
|
2250
2250
|
}
|
|
2251
2251
|
var ht, Dr;
|
|
2252
|
-
function
|
|
2252
|
+
function es() {
|
|
2253
2253
|
if (Dr) return ht;
|
|
2254
2254
|
Dr = 1;
|
|
2255
|
-
var e = typeof Symbol < "u" && Symbol, t =
|
|
2255
|
+
var e = typeof Symbol < "u" && Symbol, t = Yi();
|
|
2256
2256
|
return ht = function() {
|
|
2257
2257
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : t();
|
|
2258
2258
|
}, ht;
|
|
@@ -2269,7 +2269,7 @@ function Bn() {
|
|
|
2269
2269
|
return gt = e.getPrototypeOf || null, gt;
|
|
2270
2270
|
}
|
|
2271
2271
|
var vt, Ur;
|
|
2272
|
-
function
|
|
2272
|
+
function ts() {
|
|
2273
2273
|
if (Ur) return vt;
|
|
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 St, Mr;
|
|
|
2317
2317
|
function ot() {
|
|
2318
2318
|
if (Mr) return St;
|
|
2319
2319
|
Mr = 1;
|
|
2320
|
-
var e =
|
|
2320
|
+
var e = ts();
|
|
2321
2321
|
return St = Function.prototype.bind || e, St;
|
|
2322
2322
|
}
|
|
2323
2323
|
var wt, Br;
|
|
@@ -2328,12 +2328,12 @@ var bt, kr;
|
|
|
2328
2328
|
function kn() {
|
|
2329
2329
|
return kr || (kr = 1, bt = Function.prototype.apply), bt;
|
|
2330
2330
|
}
|
|
2331
|
-
var
|
|
2331
|
+
var rs = typeof Reflect < "u" && Reflect && Reflect.apply, ns = ot(), os = kn(), as = Yt(), is = rs, ss = is || ns.call(as, os), cs = ot(), ls = ge, us = Yt(), fs = ss, jn = function(t) {
|
|
2332
2332
|
if (t.length < 1 || typeof t[0] != "function")
|
|
2333
|
-
throw new
|
|
2334
|
-
return
|
|
2333
|
+
throw new ls("a function is required");
|
|
2334
|
+
return fs(cs, us, t);
|
|
2335
2335
|
}, Et, jr;
|
|
2336
|
-
function
|
|
2336
|
+
function ps() {
|
|
2337
2337
|
if (jr) return Et;
|
|
2338
2338
|
jr = 1;
|
|
2339
2339
|
var e = jn, t = Un, r;
|
|
@@ -2357,10 +2357,10 @@ function fs() {
|
|
|
2357
2357
|
) : !1, Et;
|
|
2358
2358
|
}
|
|
2359
2359
|
var Ot, qr;
|
|
2360
|
-
function
|
|
2360
|
+
function ds() {
|
|
2361
2361
|
if (qr) return Ot;
|
|
2362
2362
|
qr = 1;
|
|
2363
|
-
var e = Mn(), t = Bn(), r =
|
|
2363
|
+
var e = Mn(), t = Bn(), r = ps();
|
|
2364
2364
|
return Ot = e ? function(o) {
|
|
2365
2365
|
return e(o);
|
|
2366
2366
|
} : t ? function(o) {
|
|
@@ -2372,20 +2372,20 @@ function ps() {
|
|
|
2372
2372
|
} : null, Ot;
|
|
2373
2373
|
}
|
|
2374
2374
|
var At, zr;
|
|
2375
|
-
function
|
|
2375
|
+
function ys() {
|
|
2376
2376
|
if (zr) return At;
|
|
2377
2377
|
zr = 1;
|
|
2378
2378
|
var e = Function.prototype.call, t = Object.prototype.hasOwnProperty, r = ot();
|
|
2379
2379
|
return At = r.call(e, t), At;
|
|
2380
2380
|
}
|
|
2381
|
-
var b,
|
|
2381
|
+
var b, hs = Ln, ms = Li, gs = Ui, vs = Mi, Ss = Bi, ye = ki, fe = ge, ws = ji, bs = qi, Es = zi, Os = Hi, As = Wi, Rs = Ji, Ps = Gi, Cs = Qi, qn = Function, Rt = function(e) {
|
|
2382
2382
|
try {
|
|
2383
2383
|
return qn('"use strict"; return (' + e + ").constructor;")();
|
|
2384
2384
|
} catch {
|
|
2385
2385
|
}
|
|
2386
|
-
}, Pe = Un, Is =
|
|
2386
|
+
}, Pe = Un, Is = Zi, Pt = function() {
|
|
2387
2387
|
throw new fe();
|
|
2388
|
-
},
|
|
2388
|
+
}, Ts = Pe ? function() {
|
|
2389
2389
|
try {
|
|
2390
2390
|
return arguments.callee, Pt;
|
|
2391
2391
|
} catch {
|
|
@@ -2395,7 +2395,7 @@ var b, ys = Ln, hs = $i, ms = Li, gs = Ui, vs = Mi, ye = Bi, fe = ge, Ss = ki, w
|
|
|
2395
2395
|
return Pt;
|
|
2396
2396
|
}
|
|
2397
2397
|
}
|
|
2398
|
-
}() : Pt, ce =
|
|
2398
|
+
}() : Pt, ce = es()(), T = ds(), Ns = Bn(), xs = Mn(), zn = kn(), Fe = Yt(), ue = {}, Fs = 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,10 +2417,10 @@ var b, ys = Ln, hs = $i, ms = Li, gs = Ui, vs = Mi, ye = Bi, fe = ge, Ss = ki, w
|
|
|
2417
2417
|
"%decodeURIComponent%": decodeURIComponent,
|
|
2418
2418
|
"%encodeURI%": encodeURI,
|
|
2419
2419
|
"%encodeURIComponent%": encodeURIComponent,
|
|
2420
|
-
"%Error%":
|
|
2420
|
+
"%Error%": ms,
|
|
2421
2421
|
"%eval%": eval,
|
|
2422
2422
|
// eslint-disable-line no-eval
|
|
2423
|
-
"%EvalError%":
|
|
2423
|
+
"%EvalError%": gs,
|
|
2424
2424
|
"%Float16Array%": typeof Float16Array > "u" ? b : Float16Array,
|
|
2425
2425
|
"%Float32Array%": typeof Float32Array > "u" ? b : Float32Array,
|
|
2426
2426
|
"%Float64Array%": typeof Float64Array > "u" ? b : Float64Array,
|
|
@@ -2438,14 +2438,14 @@ var b, ys = Ln, hs = $i, ms = Li, gs = Ui, vs = Mi, ye = Bi, fe = ge, Ss = ki, w
|
|
|
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%": hs,
|
|
2442
2442
|
"%Object.getOwnPropertyDescriptor%": Pe,
|
|
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%": vs,
|
|
2448
|
+
"%ReferenceError%": Ss,
|
|
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, ys = Ln, hs = $i, ms = Li, gs = Ui, vs = Mi, ye = Bi, fe = ge, Ss = ki, w
|
|
|
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%": Ts,
|
|
2459
|
+
"%TypedArray%": Fs,
|
|
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%": ws,
|
|
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%": Fe,
|
|
2470
2470
|
"%Function.prototype.apply%": zn,
|
|
2471
2471
|
"%Object.defineProperty%": Is,
|
|
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%":
|
|
2472
|
+
"%Object.getPrototypeOf%": Ns,
|
|
2473
|
+
"%Math.abs%": bs,
|
|
2474
|
+
"%Math.floor%": Es,
|
|
2475
|
+
"%Math.max%": Os,
|
|
2476
|
+
"%Math.min%": As,
|
|
2477
|
+
"%Math.pow%": Rs,
|
|
2478
|
+
"%Math.round%": Ps,
|
|
2479
|
+
"%Math.sign%": Cs,
|
|
2480
|
+
"%Reflect.getPrototypeOf%": xs
|
|
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 _s = T(T(e));
|
|
2487
|
+
re["%Error.prototype%"] = _s;
|
|
2488
2488
|
}
|
|
2489
|
-
var
|
|
2489
|
+
var Ds = function e(t) {
|
|
2490
2490
|
var r;
|
|
2491
2491
|
if (t === "%AsyncFunction%")
|
|
2492
2492
|
r = Rt("async function () {}");
|
|
@@ -2555,21 +2555,21 @@ var _s = function e(t) {
|
|
|
2555
2555
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2556
2556
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2557
2557
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2558
|
-
}, _e = ot(), Ke =
|
|
2558
|
+
}, _e = ot(), Ke = ys(), $s = _e.call(Fe, Array.prototype.concat), Ls = _e.call(zn, Array.prototype.splice), Wr = _e.call(Fe, String.prototype.replace), Qe = _e.call(Fe, String.prototype.slice), Us = _e.call(Fe, RegExp.prototype.exec), Ms = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Bs = /\\(\\)?/g, ks = function(t) {
|
|
2559
2559
|
var r = Qe(t, 0, 1), n = Qe(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, Ms, function(a, i, s, c) {
|
|
2566
|
+
o[o.length] = s ? Wr(c, Bs, "$1") : i || a;
|
|
2567
2567
|
}), o;
|
|
2568
|
-
},
|
|
2568
|
+
}, js = function(t, r) {
|
|
2569
2569
|
var n = t, o;
|
|
2570
2570
|
if (Ke(Hr, n) && (o = Hr[n], n = "%" + o[0] + "%"), Ke(re, n)) {
|
|
2571
2571
|
var a = re[n];
|
|
2572
|
-
if (a === ue && (a =
|
|
2572
|
+
if (a === ue && (a = Ds(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,10 +2583,10 @@ var _s = 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 (Us(/^%?[^%]*%?$/, 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 = ks(t), o = n.length > 0 ? n[0] : "", a = js("%" + o + "%", r), i = a.name, s = a.value, c = !1, u = a.alias;
|
|
2589
|
+
u && (o = u[0], Ls(n, $s([0, 1], u)));
|
|
2590
2590
|
for (var l = 1, f = !0; l < n.length; l += 1) {
|
|
2591
2591
|
var d = n[l], v = Qe(d, 0, 1), y = Qe(d, -1);
|
|
2592
2592
|
if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
|
|
@@ -2608,74 +2608,74 @@ var _s = function e(t) {
|
|
|
2608
2608
|
}
|
|
2609
2609
|
}
|
|
2610
2610
|
return s;
|
|
2611
|
-
}, Hn = er, Wn = jn,
|
|
2611
|
+
}, Hn = er, Wn = jn, qs = Wn([Hn("%String.prototype.indexOf%")]), Jn = function(t, r) {
|
|
2612
2612
|
var n = (
|
|
2613
2613
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
2614
2614
|
Hn(t, !!r)
|
|
2615
2615
|
);
|
|
2616
|
-
return typeof n == "function" &&
|
|
2616
|
+
return typeof n == "function" && qs(t, ".prototype.") > -1 ? Wn(
|
|
2617
2617
|
/** @type {const} */
|
|
2618
2618
|
[n]
|
|
2619
2619
|
) : n;
|
|
2620
|
-
},
|
|
2620
|
+
}, zs = er, De = Jn, Hs = rt, Ws = ge, Jr = zs("%Map%", !0), Js = De("Map.prototype.get", !0), Gs = De("Map.prototype.set", !0), Vs = De("Map.prototype.has", !0), Ks = De("Map.prototype.delete", !0), Qs = De("Map.prototype.size", !0), Gn = !!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 Ws("Side channel does not contain " + Hs(n));
|
|
2626
2626
|
},
|
|
2627
2627
|
delete: function(n) {
|
|
2628
2628
|
if (t) {
|
|
2629
|
-
var o =
|
|
2630
|
-
return
|
|
2629
|
+
var o = Ks(t, n);
|
|
2630
|
+
return Qs(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 Js(t, n);
|
|
2637
2637
|
},
|
|
2638
2638
|
has: function(n) {
|
|
2639
|
-
return t ?
|
|
2639
|
+
return t ? Vs(t, n) : !1;
|
|
2640
2640
|
},
|
|
2641
2641
|
set: function(n, o) {
|
|
2642
|
-
t || (t = new Jr()),
|
|
2642
|
+
t || (t = new Jr()), Gs(t, n, o);
|
|
2643
2643
|
}
|
|
2644
2644
|
};
|
|
2645
2645
|
return r;
|
|
2646
|
-
},
|
|
2646
|
+
}, Xs = er, at = Jn, Zs = rt, Me = Gn, Ys = ge, le = Xs("%WeakMap%", !0), ec = at("WeakMap.prototype.get", !0), tc = at("WeakMap.prototype.set", !0), rc = at("WeakMap.prototype.has", !0), nc = at("WeakMap.prototype.delete", !0), oc = 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 Ys("Side channel does not contain " + Zs(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 nc(t, o);
|
|
2658
2658
|
} else if (Me && 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 ? ec(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 ? rc(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()), tc(t, o, a)) : Me && (r || (r = Me()), r.set(o, a));
|
|
2670
2670
|
}
|
|
2671
2671
|
};
|
|
2672
2672
|
return n;
|
|
2673
2673
|
}
|
|
2674
|
-
) : Me,
|
|
2674
|
+
) : Me, ac = ge, ic = rt, sc = $i, cc = Gn, lc = oc, uc = lc || cc || sc, fc = function() {
|
|
2675
2675
|
var t, r = {
|
|
2676
2676
|
assert: function(n) {
|
|
2677
2677
|
if (!r.has(n))
|
|
2678
|
-
throw new
|
|
2678
|
+
throw new ac("Side channel does not contain " + ic(n));
|
|
2679
2679
|
},
|
|
2680
2680
|
delete: function(n) {
|
|
2681
2681
|
return !!t && t.delete(n);
|
|
@@ -2687,30 +2687,30 @@ function() {
|
|
|
2687
2687
|
return !!t && t.has(n);
|
|
2688
2688
|
},
|
|
2689
2689
|
set: function(n, o) {
|
|
2690
|
-
t || (t =
|
|
2690
|
+
t || (t = uc()), t.set(n, o);
|
|
2691
2691
|
}
|
|
2692
2692
|
};
|
|
2693
2693
|
return r;
|
|
2694
|
-
},
|
|
2694
|
+
}, pc = String.prototype.replace, dc = /%20/g, Ct = {
|
|
2695
2695
|
RFC1738: "RFC1738",
|
|
2696
2696
|
RFC3986: "RFC3986"
|
|
2697
2697
|
}, tr = {
|
|
2698
|
-
default:
|
|
2698
|
+
default: Ct.RFC3986,
|
|
2699
2699
|
formatters: {
|
|
2700
2700
|
RFC1738: function(e) {
|
|
2701
|
-
return
|
|
2701
|
+
return pc.call(e, dc, "+");
|
|
2702
2702
|
},
|
|
2703
2703
|
RFC3986: function(e) {
|
|
2704
2704
|
return String(e);
|
|
2705
2705
|
}
|
|
2706
2706
|
},
|
|
2707
|
-
RFC1738:
|
|
2708
|
-
RFC3986:
|
|
2709
|
-
},
|
|
2707
|
+
RFC1738: Ct.RFC1738,
|
|
2708
|
+
RFC3986: Ct.RFC3986
|
|
2709
|
+
}, yc = tr, It = 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
|
+
}(), hc = function(t) {
|
|
2714
2714
|
for (; t.length > 1; ) {
|
|
2715
2715
|
var r = t.pop(), n = r.obj[r.prop];
|
|
2716
2716
|
if (Y(n)) {
|
|
@@ -2723,14 +2723,14 @@ function() {
|
|
|
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
|
+
}, mc = function e(t, r, n) {
|
|
2727
2727
|
if (!r)
|
|
2728
2728
|
return t;
|
|
2729
2729
|
if (typeof r != "object" && typeof r != "function") {
|
|
2730
2730
|
if (Y(t))
|
|
2731
2731
|
t.push(r);
|
|
2732
2732
|
else if (t && typeof t == "object")
|
|
2733
|
-
(n && (n.plainObjects || n.allowPrototypes) || !
|
|
2733
|
+
(n && (n.plainObjects || n.allowPrototypes) || !It.call(Object.prototype, r)) && (t[r] = !0);
|
|
2734
2734
|
else
|
|
2735
2735
|
return [t, r];
|
|
2736
2736
|
return t;
|
|
@@ -2739,20 +2739,20 @@ function() {
|
|
|
2739
2739
|
return [t].concat(r);
|
|
2740
2740
|
var o = t;
|
|
2741
2741
|
return Y(t) && !Y(r) && (o = Vn(t, n)), Y(t) && Y(r) ? (r.forEach(function(a, i) {
|
|
2742
|
-
if (
|
|
2742
|
+
if (It.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);
|
|
2745
2745
|
} else
|
|
2746
2746
|
t[i] = a;
|
|
2747
2747
|
}), t) : Object.keys(r).reduce(function(a, i) {
|
|
2748
2748
|
var s = r[i];
|
|
2749
|
-
return
|
|
2749
|
+
return It.call(a, i) ? a[i] = e(a[i], s, n) : a[i] = s, a;
|
|
2750
2750
|
}, o);
|
|
2751
|
-
},
|
|
2751
|
+
}, gc = 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
|
+
}, vc = 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
|
-
}, Tt = 1024,
|
|
2764
|
+
}, Tt = 1024, Sc = 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 += Tt) {
|
|
2773
2773
|
for (var u = i.length >= Tt ? i.slice(c, c + Tt) : 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 === yc.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
|
+
}, wc = 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
|
-
}, wc = function(t) {
|
|
2804
|
-
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
2802
|
+
return hc(r), t;
|
|
2805
2803
|
}, bc = function(t) {
|
|
2804
|
+
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
2805
|
+
}, Ec = function(t) {
|
|
2806
2806
|
return !t || typeof t != "object" ? !1 : !!(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t));
|
|
2807
|
-
}, Ec = function(t, r) {
|
|
2808
|
-
return [].concat(t, r);
|
|
2809
2807
|
}, Oc = function(t, r) {
|
|
2808
|
+
return [].concat(t, r);
|
|
2809
|
+
}, Ac = 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]));
|
|
@@ -2815,16 +2815,16 @@ function() {
|
|
|
2815
2815
|
return r(t);
|
|
2816
2816
|
}, Kn = {
|
|
2817
2817
|
arrayToObject: Vn,
|
|
2818
|
-
assign:
|
|
2819
|
-
combine:
|
|
2820
|
-
compact:
|
|
2821
|
-
decode:
|
|
2822
|
-
encode:
|
|
2823
|
-
isBuffer:
|
|
2824
|
-
isRegExp:
|
|
2825
|
-
maybeMap:
|
|
2826
|
-
merge:
|
|
2827
|
-
}, Qn =
|
|
2818
|
+
assign: gc,
|
|
2819
|
+
combine: Oc,
|
|
2820
|
+
compact: wc,
|
|
2821
|
+
decode: vc,
|
|
2822
|
+
encode: Sc,
|
|
2823
|
+
isBuffer: Ec,
|
|
2824
|
+
isRegExp: bc,
|
|
2825
|
+
maybeMap: Ac,
|
|
2826
|
+
merge: mc
|
|
2827
|
+
}, Qn = fc, We = Kn, Re = tr, Rc = Object.prototype.hasOwnProperty, Xn = {
|
|
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, Pc = Array.prototype.push, Zn = function(e, t) {
|
|
2839
|
+
Pc.apply(e, W(t) ? t : [t]);
|
|
2840
|
+
}, Cc = Date.prototype.toISOString, Gr = Re.default, I = {
|
|
2841
2841
|
addQueryPrefix: !1,
|
|
2842
2842
|
allowDots: !1,
|
|
2843
2843
|
allowEmptyArrays: !1,
|
|
@@ -2856,17 +2856,17 @@ function() {
|
|
|
2856
2856
|
// deprecated
|
|
2857
2857
|
indices: !1,
|
|
2858
2858
|
serializeDate: function(t) {
|
|
2859
|
-
return
|
|
2859
|
+
return Cc.call(t);
|
|
2860
2860
|
},
|
|
2861
2861
|
skipNulls: !1,
|
|
2862
2862
|
strictNullHandling: !1
|
|
2863
2863
|
}, Ic = function(t) {
|
|
2864
2864
|
return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
|
|
2865
|
-
}, Nt = {},
|
|
2865
|
+
}, Nt = {}, Tc = 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(Nt)) !== void 0 && !L; ) {
|
|
2867
|
-
var
|
|
2868
|
-
if (P += 1, typeof
|
|
2869
|
-
if (
|
|
2867
|
+
var C = E.get(t);
|
|
2868
|
+
if (P += 1, typeof C < "u") {
|
|
2869
|
+
if (C === P)
|
|
2870
2870
|
throw new RangeError("Cyclic object value");
|
|
2871
2871
|
L = !0;
|
|
2872
2872
|
}
|
|
@@ -2876,13 +2876,13 @@ function() {
|
|
|
2876
2876
|
return Se instanceof Date ? v(Se) : Se;
|
|
2877
2877
|
})), g === null) {
|
|
2878
2878
|
if (i)
|
|
2879
|
-
return u && !h ? u(r,
|
|
2879
|
+
return u && !h ? u(r, I.encoder, w, "key", y) : r;
|
|
2880
2880
|
g = "";
|
|
2881
2881
|
}
|
|
2882
2882
|
if (Ic(g) || We.isBuffer(g)) {
|
|
2883
2883
|
if (u) {
|
|
2884
|
-
var V = h ? r : u(r,
|
|
2885
|
-
return [m(V) + "=" + m(u(g,
|
|
2884
|
+
var V = h ? r : u(r, I.encoder, w, "key", y);
|
|
2885
|
+
return [m(V) + "=" + m(u(g, I.encoder, w, "value", y))];
|
|
2886
2886
|
}
|
|
2887
2887
|
return [m(r) + "=" + m(String(g))];
|
|
2888
2888
|
}
|
|
@@ -2930,53 +2930,53 @@ function() {
|
|
|
2930
2930
|
}
|
|
2931
2931
|
}
|
|
2932
2932
|
return U;
|
|
2933
|
-
},
|
|
2933
|
+
}, Nc = function(t) {
|
|
2934
2934
|
if (!t)
|
|
2935
|
-
return
|
|
2935
|
+
return I;
|
|
2936
2936
|
if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
|
|
2937
2937
|
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
2938
2938
|
if (typeof t.encodeDotInKeys < "u" && typeof t.encodeDotInKeys != "boolean")
|
|
2939
2939
|
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
2940
2940
|
if (t.encoder !== null && typeof t.encoder < "u" && typeof t.encoder != "function")
|
|
2941
2941
|
throw new TypeError("Encoder has to be a function.");
|
|
2942
|
-
var r = t.charset ||
|
|
2942
|
+
var r = t.charset || I.charset;
|
|
2943
2943
|
if (typeof t.charset < "u" && t.charset !== "utf-8" && t.charset !== "iso-8859-1")
|
|
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 (!Rc.call(Re.formatters, t.format))
|
|
2948
2948
|
throw new TypeError("Unknown format option provided.");
|
|
2949
2949
|
n = t.format;
|
|
2950
2950
|
}
|
|
2951
|
-
var o = Re.formatters[n], a =
|
|
2951
|
+
var o = Re.formatters[n], a = I.filter;
|
|
2952
2952
|
(typeof t.filter == "function" || W(t.filter)) && (a = t.filter);
|
|
2953
2953
|
var i;
|
|
2954
|
-
if (t.arrayFormat in Xn ? i = t.arrayFormat : "indices" in t ? i = t.indices ? "indices" : "repeat" : i =
|
|
2954
|
+
if (t.arrayFormat in Xn ? i = t.arrayFormat : "indices" in t ? i = t.indices ? "indices" : "repeat" : i = I.arrayFormat, "commaRoundTrip" in t && typeof t.commaRoundTrip != "boolean")
|
|
2955
2955
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
2956
|
-
var s = typeof t.allowDots > "u" ? t.encodeDotInKeys === !0 ? !0 :
|
|
2956
|
+
var s = typeof t.allowDots > "u" ? t.encodeDotInKeys === !0 ? !0 : I.allowDots : !!t.allowDots;
|
|
2957
2957
|
return {
|
|
2958
|
-
addQueryPrefix: typeof t.addQueryPrefix == "boolean" ? t.addQueryPrefix :
|
|
2958
|
+
addQueryPrefix: typeof t.addQueryPrefix == "boolean" ? t.addQueryPrefix : I.addQueryPrefix,
|
|
2959
2959
|
allowDots: s,
|
|
2960
|
-
allowEmptyArrays: typeof t.allowEmptyArrays == "boolean" ? !!t.allowEmptyArrays :
|
|
2960
|
+
allowEmptyArrays: typeof t.allowEmptyArrays == "boolean" ? !!t.allowEmptyArrays : I.allowEmptyArrays,
|
|
2961
2961
|
arrayFormat: i,
|
|
2962
2962
|
charset: r,
|
|
2963
|
-
charsetSentinel: typeof t.charsetSentinel == "boolean" ? t.charsetSentinel :
|
|
2963
|
+
charsetSentinel: typeof t.charsetSentinel == "boolean" ? t.charsetSentinel : I.charsetSentinel,
|
|
2964
2964
|
commaRoundTrip: !!t.commaRoundTrip,
|
|
2965
|
-
delimiter: typeof t.delimiter > "u" ?
|
|
2966
|
-
encode: typeof t.encode == "boolean" ? t.encode :
|
|
2967
|
-
encodeDotInKeys: typeof t.encodeDotInKeys == "boolean" ? t.encodeDotInKeys :
|
|
2968
|
-
encoder: typeof t.encoder == "function" ? t.encoder :
|
|
2969
|
-
encodeValuesOnly: typeof t.encodeValuesOnly == "boolean" ? t.encodeValuesOnly :
|
|
2965
|
+
delimiter: typeof t.delimiter > "u" ? I.delimiter : t.delimiter,
|
|
2966
|
+
encode: typeof t.encode == "boolean" ? t.encode : I.encode,
|
|
2967
|
+
encodeDotInKeys: typeof t.encodeDotInKeys == "boolean" ? t.encodeDotInKeys : I.encodeDotInKeys,
|
|
2968
|
+
encoder: typeof t.encoder == "function" ? t.encoder : I.encoder,
|
|
2969
|
+
encodeValuesOnly: typeof t.encodeValuesOnly == "boolean" ? t.encodeValuesOnly : I.encodeValuesOnly,
|
|
2970
2970
|
filter: a,
|
|
2971
2971
|
format: n,
|
|
2972
2972
|
formatter: o,
|
|
2973
|
-
serializeDate: typeof t.serializeDate == "function" ? t.serializeDate :
|
|
2974
|
-
skipNulls: typeof t.skipNulls == "boolean" ? t.skipNulls :
|
|
2973
|
+
serializeDate: typeof t.serializeDate == "function" ? t.serializeDate : I.serializeDate,
|
|
2974
|
+
skipNulls: typeof t.skipNulls == "boolean" ? t.skipNulls : I.skipNulls,
|
|
2975
2975
|
sort: typeof t.sort == "function" ? t.sort : null,
|
|
2976
|
-
strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling :
|
|
2976
|
+
strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : I.strictNullHandling
|
|
2977
2977
|
};
|
|
2978
|
-
},
|
|
2979
|
-
var r = e, n =
|
|
2978
|
+
}, xc = function(e, t) {
|
|
2979
|
+
var r = e, n = Nc(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)
|
|
@@ -2985,7 +2985,7 @@ function() {
|
|
|
2985
2985
|
o || (o = Object.keys(r)), n.sort && o.sort(n.sort);
|
|
2986
2986
|
for (var u = Qn(), l = 0; l < o.length; ++l) {
|
|
2987
2987
|
var f = o[l], d = r[f];
|
|
2988
|
-
n.skipNulls && d === null || Zn(i,
|
|
2988
|
+
n.skipNulls && d === null || Zn(i, Tc(
|
|
2989
2989
|
d,
|
|
2990
2990
|
f,
|
|
2991
2991
|
s,
|
|
@@ -3030,7 +3030,7 @@ function() {
|
|
|
3030
3030
|
strictDepth: !1,
|
|
3031
3031
|
strictNullHandling: !1,
|
|
3032
3032
|
throwOnLimitExceeded: !1
|
|
3033
|
-
},
|
|
3033
|
+
}, Fc = function(e) {
|
|
3034
3034
|
return e.replace(/&#(\d+);/g, function(t, r) {
|
|
3035
3035
|
return String.fromCharCode(parseInt(r, 10));
|
|
3036
3036
|
});
|
|
@@ -3040,7 +3040,7 @@ function() {
|
|
|
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
|
+
}, _c = "utf8=%26%2310003%3B", Dc = "utf8=%E2%9C%93", $c = 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,7 +3052,7 @@ 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] === Dc ? u = "utf-8" : i[c] === _c && (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;
|
|
@@ -3065,12 +3065,12 @@ 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 = Fc(String(y))), l.indexOf("[]=") > -1 && (y = Vr(y) ? [y] : y);
|
|
3069
3069
|
var m = qt.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
|
+
}, Lc = 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("");
|
|
@@ -3088,7 +3088,7 @@ function() {
|
|
|
3088
3088
|
i = c;
|
|
3089
3089
|
}
|
|
3090
3090
|
return i;
|
|
3091
|
-
},
|
|
3091
|
+
}, Uc = 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 Lc(l, r, n, o);
|
|
3110
3110
|
}
|
|
3111
|
-
},
|
|
3111
|
+
}, Mc = 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
|
+
}, Bc = function(e, t) {
|
|
3153
|
+
var r = Mc(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" ? $c(e, r) : e, o = r.plainObjects ? { __proto__: null } : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
|
|
3157
|
+
var s = a[i], c = Uc(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
|
+
}, kc = xc, jc = Bc, qc = tr, zc = {
|
|
3162
|
+
formats: qc,
|
|
3163
|
+
parse: jc,
|
|
3164
|
+
stringify: kc
|
|
3165
3165
|
};
|
|
3166
|
-
const
|
|
3166
|
+
const Hc = /* @__PURE__ */ Qa(zc);
|
|
3167
3167
|
/*! js-cookie v3.0.5 | MIT */
|
|
3168
3168
|
function Be(e) {
|
|
3169
3169
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -3173,7 +3173,7 @@ function Be(e) {
|
|
|
3173
3173
|
}
|
|
3174
3174
|
return e;
|
|
3175
3175
|
}
|
|
3176
|
-
var
|
|
3176
|
+
var Wc = {
|
|
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,12 +3234,12 @@ function zt(e, t) {
|
|
|
3234
3234
|
}
|
|
3235
3235
|
);
|
|
3236
3236
|
}
|
|
3237
|
-
var Kr = zt(
|
|
3238
|
-
Ht.extend(ho);
|
|
3237
|
+
var Kr = zt(Wc, { path: "/" });
|
|
3239
3238
|
Ht.extend(mo);
|
|
3240
|
-
|
|
3239
|
+
Ht.extend(go);
|
|
3240
|
+
const Jc = "UTC", Gc = () => Ht.tz.guess() || Jc, rr = Ce(), eo = rr.sso ?? !0, Qr = rr.i18n ?? !0, to = rr.noRedireLogin ?? !1;
|
|
3241
3241
|
let Xr = "", Zr = 0;
|
|
3242
|
-
const
|
|
3242
|
+
const Vc = 1e3, Yr = async (e, t, r = []) => {
|
|
3243
3243
|
const n = Date.now(), o = 1200, a = 60;
|
|
3244
3244
|
for (; Date.now() - n < o; ) {
|
|
3245
3245
|
const i = e(t, ...r);
|
|
@@ -3249,19 +3249,19 @@ const Gc = 1e3, Yr = async (e, t, r = []) => {
|
|
|
3249
3249
|
return e(t, ...r);
|
|
3250
3250
|
};
|
|
3251
3251
|
let xt = !1;
|
|
3252
|
-
const
|
|
3252
|
+
const Kc = 5e3, ro = () => xt ? !1 : (xt = !0, setTimeout(() => {
|
|
3253
3253
|
xt = !1;
|
|
3254
|
-
},
|
|
3254
|
+
}, Kc), !0), no = () => {
|
|
3255
3255
|
if (to) return;
|
|
3256
3256
|
const e = "/login";
|
|
3257
3257
|
if (location.pathname === e) return;
|
|
3258
3258
|
window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1;
|
|
3259
3259
|
const t = window.top;
|
|
3260
3260
|
t != null && t.vueRouter ? t.vueRouter.replace(e) : window.location.replace(`/#${e}`);
|
|
3261
|
-
},
|
|
3261
|
+
}, Qc = () => fo("code") || "" || to ? !1 : ro() ? (eo ? po({ ...yo, redirect_uri: ho }) : no(), !0) : !1, Xc = async (e) => {
|
|
3262
3262
|
var r;
|
|
3263
3263
|
return ((r = e.config) == null ? void 0 : r.responseType) === "blob" ? e : e.data ?? e;
|
|
3264
|
-
},
|
|
3264
|
+
}, Zc = async (e, t) => {
|
|
3265
3265
|
var y, m, h, w;
|
|
3266
3266
|
const { t: r } = on();
|
|
3267
3267
|
let n, o, a = {};
|
|
@@ -3269,7 +3269,7 @@ const Vc = 5e3, ro = () => xt ? !1 : (xt = !0, setTimeout(() => {
|
|
|
3269
3269
|
let s = ((y = e == null ? void 0 : e.response) == null ? void 0 : y.data) || {};
|
|
3270
3270
|
const c = s == null ? void 0 : s.code, u = (m = e.response) == null ? void 0 : m.status;
|
|
3271
3271
|
if (c === 401 || u === 401) {
|
|
3272
|
-
|
|
3272
|
+
Qc(), n = c || u, a = s;
|
|
3273
3273
|
const O = (t == null ? void 0 : t.i18n) ?? !0;
|
|
3274
3274
|
if (Qr && O && (s != null && s.status)) {
|
|
3275
3275
|
const g = !(s != null && s.data) || !s.data.length ? [] : s.data, E = r(s.status, ...g);
|
|
@@ -3299,13 +3299,13 @@ const Vc = 5e3, ro = () => xt ? !1 : (xt = !0, setTimeout(() => {
|
|
|
3299
3299
|
o || (o = i[e.response.status] || e.message);
|
|
3300
3300
|
} 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("请求配置异常"));
|
|
3301
3301
|
t != null && t.customErrorMessage && (o = t == null ? void 0 : t.customErrorMessage(o, e));
|
|
3302
|
-
const f = Date.now(), d = o === Xr, v = f - Zr <
|
|
3302
|
+
const f = Date.now(), d = o === Xr, v = f - Zr < Vc;
|
|
3303
3303
|
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, Zr = f), { ...a, code: n, msg: o, error: e };
|
|
3304
3304
|
};
|
|
3305
|
-
function
|
|
3305
|
+
function Yc(e, t) {
|
|
3306
3306
|
const r = R.create();
|
|
3307
|
-
return
|
|
3308
|
-
const { currentLang: o } = on(), a =
|
|
3307
|
+
return lo(r, async (n) => {
|
|
3308
|
+
const { currentLang: o } = on(), a = Ce();
|
|
3309
3309
|
if (n.headers || (n.headers = {}), !(n != null && n.public)) {
|
|
3310
3310
|
let f = "";
|
|
3311
3311
|
if (a.token && (f = a.token), !f) {
|
|
@@ -3313,50 +3313,50 @@ function Zc(e, t) {
|
|
|
3313
3313
|
f = d.get("token") || d.get("accessToken") || d.get("accesstoken") || "";
|
|
3314
3314
|
}
|
|
3315
3315
|
if (eo)
|
|
3316
|
-
f || (f = await
|
|
3316
|
+
f || (f = await uo(n));
|
|
3317
3317
|
else {
|
|
3318
3318
|
f || (f = nn());
|
|
3319
3319
|
let d = JSON.parse(window.localStorage.getItem("tokenInfo") || "{}");
|
|
3320
|
-
f ? f = await
|
|
3321
|
-
|
|
3320
|
+
f ? f = await bo(d, (y) => {
|
|
3321
|
+
wo(y);
|
|
3322
3322
|
}) : ro() && no();
|
|
3323
3323
|
}
|
|
3324
3324
|
f && !n.headers.Authorization && (n.headers.Authorization = `Bearer ${f}`);
|
|
3325
3325
|
}
|
|
3326
|
-
n.baseURL || (n.baseURL = a.baseURL || ""), n.urlPrefix || (n.urlPrefix = e), n.paramsSerializer || (n.paramsSerializer = { serialize: (f) =>
|
|
3326
|
+
n.baseURL || (n.baseURL = a.baseURL || ""), n.urlPrefix || (n.urlPrefix = e), n.paramsSerializer || (n.paramsSerializer = { serialize: (f) => Hc.stringify(f, { indices: !1 }) }), n.onSuccess || (n.onSuccess = Xc), n.onError || (n.onError = Zc), (n.csrf ?? !1) && (n.headers["csrf-token"] = Kr.get("csrf-token"));
|
|
3327
3327
|
const c = n.params || {};
|
|
3328
3328
|
if (c.project === void 0) {
|
|
3329
3329
|
let f = 0;
|
|
3330
3330
|
const d = new URL(location.href).searchParams;
|
|
3331
|
-
f = d.get("project") || d.get("projectId") || 0, f || (f =
|
|
3331
|
+
f = d.get("project") || d.get("projectId") || 0, f || (f = vo().id ?? 0), (f || f === 0) && (c.project = f);
|
|
3332
3332
|
}
|
|
3333
3333
|
if (new URL(location.href).pathname.startsWith("/iot/iot") || new URL(location.href).searchParams.get("app") === "iot") {
|
|
3334
|
-
const { instanceInfo: f } =
|
|
3334
|
+
const { instanceInfo: f } = So();
|
|
3335
3335
|
f != null && f.instanceId && (c.instance = f.instanceId);
|
|
3336
3336
|
}
|
|
3337
|
-
n.params = c, n.headers.Timezone =
|
|
3337
|
+
n.params = c, n.headers.Timezone = Gc(), n.headers["X-Origin"] = location.origin;
|
|
3338
3338
|
const l = (o == null ? void 0 : o.value) ?? "";
|
|
3339
3339
|
return l && (n.headers["Accept-Language"] = l), l && Kr.set("locale", l), n;
|
|
3340
3340
|
});
|
|
3341
3341
|
}
|
|
3342
|
-
const
|
|
3342
|
+
const el = "v1", oo = Yc(`/api/admin/basic-application/user-rights/${el}`), tl = oo.get("/menu-module-func"), rl = oo.post("/right-func"), en = (e) => Array.isArray(e) ? e : e == null || e === "" ? [] : [e], nl = (e) => {
|
|
3343
3343
|
const t = en(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 = en(e == null ? void 0 : e.moduleIds).map((o) => typeof o == "number" ? o : String(o ?? "").trim()).filter((o) => typeof o == "number" ? !Number.isNaN(o) : !!o);
|
|
3344
3344
|
if (!t.length) return null;
|
|
3345
3345
|
const n = { appIds: t };
|
|
3346
3346
|
return r.length && (n.moduleIds = r), n;
|
|
3347
|
-
},
|
|
3347
|
+
}, ol = (e) => {
|
|
3348
3348
|
const t = e && typeof e == "object" ? String((e == null ? void 0 : e.type) ?? "").trim() : "";
|
|
3349
3349
|
return t === "appId" || t === "menuId" ? t : e && typeof e == "object" && ("appIds" in e || "moduleIds" in e) ? "appId" : "menuId";
|
|
3350
|
-
},
|
|
3350
|
+
}, al = (e) => {
|
|
3351
3351
|
const t = e && typeof e == "object" ? e == null ? void 0 : e.menuId : e;
|
|
3352
3352
|
return typeof t == "number" ? Number.isNaN(t) ? "" : String(t) : String(t ?? "").trim();
|
|
3353
|
-
}, tn = (e) => typeof e == "number" ? Number.isNaN(e) ? "" : String(e) : String(e ?? "").trim(),
|
|
3353
|
+
}, tn = (e) => typeof e == "number" ? Number.isNaN(e) ? "" : String(e) : String(e ?? "").trim(), il = (e) => {
|
|
3354
3354
|
if (!e || typeof e != "object") return [];
|
|
3355
3355
|
const t = e == null ? void 0 : e.children;
|
|
3356
3356
|
return Array.isArray(t) ? t.filter((r) => r && typeof r == "object") : [];
|
|
3357
3357
|
}, ao = (e) => {
|
|
3358
3358
|
if (!e || typeof e != "object") return [];
|
|
3359
|
-
const r =
|
|
3359
|
+
const r = il(e).flatMap((a) => ao(a));
|
|
3360
3360
|
if (r.length) return r;
|
|
3361
3361
|
const n = String((e == null ? void 0 : e.type) ?? "").trim(), o = String((e == null ? void 0 : e.routeCode) ?? "").trim();
|
|
3362
3362
|
return n === "menu" && o ? [o] : [];
|
|
@@ -3386,7 +3386,7 @@ const Yc = "v1", oo = Zc(`/api/admin/basic-application/user-rights/${Yc}`), el =
|
|
|
3386
3386
|
}
|
|
3387
3387
|
}
|
|
3388
3388
|
return t.code.sourceCode = Array.from(o), t;
|
|
3389
|
-
},
|
|
3389
|
+
}, sl = () => {
|
|
3390
3390
|
const e = window.sessionStorage.getItem("currentUserMenuPermissionsList") || "";
|
|
3391
3391
|
try {
|
|
3392
3392
|
const t = JSON.parse(window.sessionStorage.getItem("menuItem") || "{}"), r = String((t == null ? void 0 : t.id) ?? "").trim(), n = String(window.sessionStorage.getItem("currentUserMenuPermissionsMenuId") || "").trim();
|
|
@@ -3397,28 +3397,28 @@ const Yc = "v1", oo = Zc(`/api/admin/basic-application/user-rights/${Yc}`), el =
|
|
|
3397
3397
|
} catch {
|
|
3398
3398
|
return Ft([]);
|
|
3399
3399
|
}
|
|
3400
|
-
},
|
|
3400
|
+
}, io = (e = "id") => {
|
|
3401
3401
|
var i, s;
|
|
3402
|
-
const t =
|
|
3402
|
+
const t = sl();
|
|
3403
3403
|
if (!t || typeof t != "object")
|
|
3404
3404
|
return e === "all" ? { idList: [], codeList: [] } : [];
|
|
3405
3405
|
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 : [];
|
|
3406
3406
|
return e === "all" ? { idList: n, codeList: a } : e === "code" ? a : n;
|
|
3407
|
-
},
|
|
3407
|
+
}, Pl = (e, t) => {
|
|
3408
3408
|
const r = (async () => {
|
|
3409
|
-
if (
|
|
3410
|
-
const c =
|
|
3409
|
+
if (ol(e) === "menuId") {
|
|
3410
|
+
const c = al(e);
|
|
3411
3411
|
if (!c) return [];
|
|
3412
|
-
const u = await
|
|
3412
|
+
const u = await tl().run({ menuId: c }), [l, f] = u;
|
|
3413
3413
|
return l ? [] : f;
|
|
3414
3414
|
}
|
|
3415
|
-
const o =
|
|
3415
|
+
const o = nl(e ?? {});
|
|
3416
3416
|
if (!o) return [];
|
|
3417
|
-
const a = await
|
|
3417
|
+
const a = await rl().run(o), [i, s] = a;
|
|
3418
3418
|
return i ? [] : s;
|
|
3419
3419
|
})();
|
|
3420
3420
|
return typeof t == "function" && r.then((n) => t(n)).catch(() => t([])), r;
|
|
3421
|
-
},
|
|
3421
|
+
}, Cl = (e, t) => {
|
|
3422
3422
|
const r = String(e ?? "").trim(), n = String(t ?? "").trim();
|
|
3423
3423
|
if (!r && !n) return !1;
|
|
3424
3424
|
if (!r && n)
|
|
@@ -3429,10 +3429,10 @@ const Yc = "v1", oo = Zc(`/api/admin/basic-application/user-rights/${Yc}`), el =
|
|
|
3429
3429
|
} catch {
|
|
3430
3430
|
return !1;
|
|
3431
3431
|
}
|
|
3432
|
-
},
|
|
3432
|
+
}, Il = (e) => {
|
|
3433
3433
|
const t = e || JSON.parse(sessionStorage.getItem("menuItem") || "{}");
|
|
3434
3434
|
return {
|
|
3435
|
-
authCodes:
|
|
3435
|
+
authCodes: io(),
|
|
3436
3436
|
routeUrl: t.routeUrl ?? "",
|
|
3437
3437
|
parentId: t.parentId ?? "",
|
|
3438
3438
|
id: t.id ?? "",
|
|
@@ -3442,7 +3442,7 @@ const Yc = "v1", oo = Zc(`/api/admin/basic-application/user-rights/${Yc}`), el =
|
|
|
3442
3442
|
showName: t.showName ?? "",
|
|
3443
3443
|
type: (t == null ? void 0 : t.type) ?? ""
|
|
3444
3444
|
};
|
|
3445
|
-
},
|
|
3445
|
+
}, Tl = () => JSON.parse(sessionStorage.getItem("menuList") || "[]"), Nl = () => {
|
|
3446
3446
|
const e = JSON.parse(sessionStorage.getItem("menuList") || "[]"), t = {};
|
|
3447
3447
|
return e.forEach((r) => {
|
|
3448
3448
|
r.appId && (r.rightFuncCodes && r.rightFuncCodes.forEach((n) => t[n] = []), r.children && r.children.forEach((n) => {
|
|
@@ -3466,7 +3466,7 @@ const Yc = "v1", oo = Zc(`/api/admin/basic-application/user-rights/${Yc}`), el =
|
|
|
3466
3466
|
});
|
|
3467
3467
|
}));
|
|
3468
3468
|
}), t;
|
|
3469
|
-
}, cl = nn,
|
|
3469
|
+
}, cl = nn, xl = () => {
|
|
3470
3470
|
var r;
|
|
3471
3471
|
let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
|
|
3472
3472
|
return {
|
|
@@ -3475,9 +3475,9 @@ const Yc = "v1", oo = Zc(`/api/admin/basic-application/user-rights/${Yc}`), el =
|
|
|
3475
3475
|
flag: e.flag ?? null,
|
|
3476
3476
|
tenantId: ((r = e == null ? void 0 : e.tenant) == null ? void 0 : r.id) ?? ""
|
|
3477
3477
|
};
|
|
3478
|
-
},
|
|
3478
|
+
}, Fl = () => {
|
|
3479
3479
|
let e = JSON.parse(sessionStorage.getItem("userInfo") || "{}");
|
|
3480
|
-
const t =
|
|
3480
|
+
const t = Ce();
|
|
3481
3481
|
return JSON.stringify(e) === "{}" && t.personalInfo && (e = t.personalInfo), {
|
|
3482
3482
|
id: e.id ?? "",
|
|
3483
3483
|
name: e.name ?? "",
|
|
@@ -3486,7 +3486,7 @@ const Yc = "v1", oo = Zc(`/api/admin/basic-application/user-rights/${Yc}`), el =
|
|
|
3486
3486
|
email: e.email ?? "",
|
|
3487
3487
|
headPicture: e.headPicture ?? ""
|
|
3488
3488
|
};
|
|
3489
|
-
},
|
|
3489
|
+
}, _l = () => {
|
|
3490
3490
|
let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
|
|
3491
3491
|
return {
|
|
3492
3492
|
userId: e.id ?? "",
|
|
@@ -3508,9 +3508,9 @@ const Yc = "v1", oo = Zc(`/api/admin/basic-application/user-rights/${Yc}`), el =
|
|
|
3508
3508
|
address: e.address ?? "",
|
|
3509
3509
|
description: e.description ?? ""
|
|
3510
3510
|
};
|
|
3511
|
-
},
|
|
3511
|
+
}, Dl = () => sessionStorage.getItem("languages"), ll = () => {
|
|
3512
3512
|
let e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}");
|
|
3513
|
-
const t =
|
|
3513
|
+
const t = Ce();
|
|
3514
3514
|
return JSON.stringify(e) === "{}" && t.projectInfo && (e = t.projectInfo), {
|
|
3515
3515
|
id: (e == null ? void 0 : e.id) ?? 0,
|
|
3516
3516
|
code: (e == null ? void 0 : e.code) ?? 0,
|
|
@@ -3524,7 +3524,7 @@ const Yc = "v1", oo = Zc(`/api/admin/basic-application/user-rights/${Yc}`), el =
|
|
|
3524
3524
|
leaf: (e == null ? void 0 : e.leaf) ?? !1,
|
|
3525
3525
|
optional: (e == null ? void 0 : e.leaf) ?? !0
|
|
3526
3526
|
};
|
|
3527
|
-
},
|
|
3527
|
+
}, $l = () => {
|
|
3528
3528
|
let e = JSON.parse(sessionStorage.getItem("projectInfo") || sessionStorage.getItem("project-message") || "{}");
|
|
3529
3529
|
return {
|
|
3530
3530
|
id: (e == null ? void 0 : e.id) ?? 0,
|
|
@@ -3554,7 +3554,7 @@ const Yc = "v1", oo = Zc(`/api/admin/basic-application/user-rights/${Yc}`), el =
|
|
|
3554
3554
|
currencySymbol: "¥"
|
|
3555
3555
|
}
|
|
3556
3556
|
};
|
|
3557
|
-
},
|
|
3557
|
+
}, Ll = () => {
|
|
3558
3558
|
const e = JSON.parse(sessionStorage.getItem("home-config") || "{}");
|
|
3559
3559
|
return {
|
|
3560
3560
|
applicationCode: (e == null ? void 0 : e.applicationCode) ?? "",
|
|
@@ -3565,7 +3565,7 @@ const Yc = "v1", oo = Zc(`/api/admin/basic-application/user-rights/${Yc}`), el =
|
|
|
3565
3565
|
displayPosition: (e == null ? void 0 : e.displayPosition) ?? 1,
|
|
3566
3566
|
type: (e == null ? void 0 : e.type) ?? null
|
|
3567
3567
|
};
|
|
3568
|
-
},
|
|
3568
|
+
}, Ul = () => {
|
|
3569
3569
|
const e = JSON.parse(sessionStorage.getItem("personal-config") || "{}");
|
|
3570
3570
|
return {
|
|
3571
3571
|
style: (e == null ? void 0 : e.style) ?? "",
|
|
@@ -3578,7 +3578,7 @@ const Yc = "v1", oo = Zc(`/api/admin/basic-application/user-rights/${Yc}`), el =
|
|
|
3578
3578
|
} catch {
|
|
3579
3579
|
return "";
|
|
3580
3580
|
}
|
|
3581
|
-
},
|
|
3581
|
+
}, fl = (e, t) => {
|
|
3582
3582
|
const r = (t == null ? void 0 : t.returnType) ?? "set", n = String((t == null ? void 0 : t.routeCode) ?? ul()).trim(), o = Array.isArray(e) ? e : e instanceof Set ? Array.from(e) : [], a = /* @__PURE__ */ new Set(), i = n ? `${n}.` : "";
|
|
3583
3583
|
return i && o.forEach((s) => {
|
|
3584
3584
|
const c = (s && typeof s == "object" ? s == null ? void 0 : s.code : s) ?? "", u = String(c).trim();
|
|
@@ -3586,36 +3586,72 @@ const Yc = "v1", oo = Zc(`/api/admin/basic-application/user-rights/${Yc}`), el =
|
|
|
3586
3586
|
const l = u.slice(i.length);
|
|
3587
3587
|
l && a.add(l.replace(/\./g, "-"));
|
|
3588
3588
|
}), r === "list" ? Array.from(a).map((s) => ({ code: s })) : a;
|
|
3589
|
-
},
|
|
3590
|
-
const
|
|
3589
|
+
}, pl = (e, t) => {
|
|
3590
|
+
const r = io("code"), n = Array.isArray(r) ? r : [];
|
|
3591
|
+
return fl(n, { returnType: "list" });
|
|
3592
|
+
}, Ml = (e, t) => pl() ?? [], dl = () => {
|
|
3593
|
+
const e = JSON.parse(sessionStorage.getItem("subApps") || "{}");
|
|
3594
|
+
return {
|
|
3595
|
+
appcategorys: e.appcategorys ?? [],
|
|
3596
|
+
currentSubApp: e.currentSubApp ?? {},
|
|
3597
|
+
currentSubAppCode: e.currentSubAppCode ?? "",
|
|
3598
|
+
subAppList: e.subAppList ?? [],
|
|
3599
|
+
menuCollapses: e.menuCollapses ?? []
|
|
3600
|
+
};
|
|
3601
|
+
}, Bl = (e, t = !1) => {
|
|
3602
|
+
var o, a;
|
|
3603
|
+
const r = dl().subAppList;
|
|
3604
|
+
if (e)
|
|
3605
|
+
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) ?? [];
|
|
3606
|
+
const n = {};
|
|
3607
|
+
return t ? r == null || r.forEach((i) => {
|
|
3608
|
+
n[i.code] = i.originalMenus ?? [];
|
|
3609
|
+
}) : r == null || r.forEach((i) => {
|
|
3610
|
+
n[i.code] = i.menus ?? [];
|
|
3611
|
+
}), n;
|
|
3612
|
+
}, kl = () => {
|
|
3613
|
+
const e = JSON.parse(sessionStorage.getItem("tabs") || "{}");
|
|
3614
|
+
return {
|
|
3615
|
+
currentCode: e.currentCode ?? "",
|
|
3616
|
+
currentTab: e.currentTab ?? {},
|
|
3617
|
+
tabMap: e.tabMap ?? {},
|
|
3618
|
+
preTab: e.preTab ?? {}
|
|
3619
|
+
};
|
|
3620
|
+
}, jl = () => {
|
|
3621
|
+
const e = Ce(), t = sessionStorage.getItem("minioAddress");
|
|
3591
3622
|
return t || (e.baseURL ? e.baseURL : location.origin);
|
|
3592
|
-
},
|
|
3623
|
+
}, ql = () => ({
|
|
3593
3624
|
instanceInfo: JSON.parse(sessionStorage.getItem("instance") || "{}").instanceInfo ?? {}
|
|
3594
|
-
}),
|
|
3595
|
-
cl() ||
|
|
3625
|
+
}), zl = () => localStorage.getItem("fav-icon") || "./logo.svg";
|
|
3626
|
+
cl() || so();
|
|
3596
3627
|
var rn;
|
|
3597
|
-
(rn = ll()) != null && rn.id ||
|
|
3628
|
+
(rn = ll()) != null && rn.id || co();
|
|
3598
3629
|
export {
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3630
|
+
fl as buildActionSuffixSet,
|
|
3631
|
+
Nl as getAuthobj,
|
|
3632
|
+
io as getCurrentModulePermissionData,
|
|
3602
3633
|
ul as getCurrentRouteCode,
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3634
|
+
Pl as getCurrentUserPermissionList,
|
|
3635
|
+
zl as getFavIcon,
|
|
3636
|
+
sl as getGroupedCurrentUserPermissionList,
|
|
3637
|
+
Ll as getHomeInfo,
|
|
3638
|
+
ql as getInstanceInfo,
|
|
3639
|
+
Dl as getLanguages,
|
|
3640
|
+
Il as getMenuItemInfo,
|
|
3641
|
+
Tl as getMenuListnfo,
|
|
3642
|
+
Bl as getMenus,
|
|
3643
|
+
jl as getMinioAddress,
|
|
3644
|
+
pl as getPageAuth,
|
|
3645
|
+
Ml as getPageAuthBtn,
|
|
3646
|
+
Ul as getPersonalConfig,
|
|
3647
|
+
Fl as getPersonalInfo,
|
|
3614
3648
|
ll as getProjectInfo,
|
|
3615
|
-
|
|
3616
|
-
|
|
3649
|
+
$l as getProjectMessage,
|
|
3650
|
+
dl as getSubApps,
|
|
3651
|
+
kl as getTabInfo,
|
|
3652
|
+
_l as getTenantInfo,
|
|
3617
3653
|
cl as getToken,
|
|
3618
|
-
|
|
3654
|
+
xl as getUserInfo,
|
|
3619
3655
|
Ft as groupPermissionListByModuleAndCode,
|
|
3620
|
-
|
|
3656
|
+
Cl as hasMenuPermissionByRouteCode
|
|
3621
3657
|
};
|