@das-fed/utils 7.1.0-dev.32 → 7.1.0-dev.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-services/index.js +1055 -1037
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +708 -726
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +626 -626
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +623 -623
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +850 -832
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +154 -154
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +1116 -1098
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +372 -372
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +850 -832
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +317 -317
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +159 -159
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +156 -156
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +197 -197
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +867 -849
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +682 -696
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +847 -829
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +708 -726
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +850 -832
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +627 -627
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +624 -624
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +626 -626
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +708 -726
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +626 -626
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +153 -153
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/index.js +153 -153
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +1 -1
- package/create-api-service/sso/index.js.gz +0 -0
- package/create-api-service/thirdLogout/index.js +23 -23
- package/create-api-service/thirdLogout/index.js.gz +0 -0
- package/package.json +4 -4
|
@@ -156,11 +156,11 @@ const So = (t, e, n, { allOwnKeys: r } = {}) => (Ae(e, (o, a) => {
|
|
|
156
156
|
};
|
|
157
157
|
return ce(t) ? r(t) : r(String(t).split(e)), n;
|
|
158
158
|
}, Io = () => {
|
|
159
|
-
},
|
|
160
|
-
function
|
|
159
|
+
}, Lo = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
160
|
+
function Bo(t) {
|
|
161
161
|
return !!(t && F(t.append) && t[zr] === "FormData" && t[He]);
|
|
162
162
|
}
|
|
163
|
-
const
|
|
163
|
+
const Uo = (t) => {
|
|
164
164
|
const e = new Array(10), n = (r, o) => {
|
|
165
165
|
if (Ee(r)) {
|
|
166
166
|
if (e.indexOf(r) >= 0)
|
|
@@ -234,12 +234,12 @@ const Lo = (t) => {
|
|
|
234
234
|
toObjectSet: Do,
|
|
235
235
|
toCamelCase: No,
|
|
236
236
|
noop: Io,
|
|
237
|
-
toFiniteNumber:
|
|
237
|
+
toFiniteNumber: Lo,
|
|
238
238
|
findKey: Gr,
|
|
239
239
|
global: Q,
|
|
240
240
|
isContextDefined: Jr,
|
|
241
|
-
isSpecCompliantForm:
|
|
242
|
-
toJSONObject:
|
|
241
|
+
isSpecCompliantForm: Bo,
|
|
242
|
+
toJSONObject: Uo,
|
|
243
243
|
isAsyncFn: Mo,
|
|
244
244
|
isThenable: ko,
|
|
245
245
|
setImmediate: Kr,
|
|
@@ -338,12 +338,12 @@ function Je(t, e, n) {
|
|
|
338
338
|
return f.isArrayBuffer(y) || f.isTypedArray(y) ? u && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
|
|
339
339
|
}
|
|
340
340
|
function c(y, m, h) {
|
|
341
|
-
let
|
|
341
|
+
let b = y;
|
|
342
342
|
if (y && !h && typeof y == "object") {
|
|
343
343
|
if (f.endsWith(m, "{}"))
|
|
344
344
|
m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
|
|
345
|
-
else if (f.isArray(y) && Ho(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (
|
|
346
|
-
return m = Zr(m),
|
|
345
|
+
else if (f.isArray(y) && Ho(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (b = f.toArray(y)))
|
|
346
|
+
return m = Zr(m), b.forEach(function(g, T) {
|
|
347
347
|
!(f.isUndefined(g) || g === null) && e.append(
|
|
348
348
|
// eslint-disable-next-line no-nested-ternary
|
|
349
349
|
i === !0 ? er([m], T, a) : i === null ? m : m + "[]",
|
|
@@ -362,14 +362,14 @@ function Je(t, e, n) {
|
|
|
362
362
|
if (!f.isUndefined(y)) {
|
|
363
363
|
if (p.indexOf(y) !== -1)
|
|
364
364
|
throw Error("Circular reference detected in " + m.join("."));
|
|
365
|
-
p.push(y), f.forEach(y, function(
|
|
366
|
-
(!(f.isUndefined(
|
|
365
|
+
p.push(y), f.forEach(y, function(b, E) {
|
|
366
|
+
(!(f.isUndefined(b) || b === null) && o.call(
|
|
367
367
|
e,
|
|
368
|
-
|
|
368
|
+
b,
|
|
369
369
|
f.isString(E) ? E.trim() : E,
|
|
370
370
|
m,
|
|
371
371
|
d
|
|
372
|
-
)) === !0 && v(
|
|
372
|
+
)) === !0 && v(b, m ? m.concat(E) : [E]);
|
|
373
373
|
}), p.pop();
|
|
374
374
|
}
|
|
375
375
|
}
|
|
@@ -875,7 +875,7 @@ function da(t, e) {
|
|
|
875
875
|
}, r - p)));
|
|
876
876
|
}, () => o && i(o)];
|
|
877
877
|
}
|
|
878
|
-
const
|
|
878
|
+
const Ue = (t, e, n = 3) => {
|
|
879
879
|
let r = 0;
|
|
880
880
|
const o = pa(50, 250);
|
|
881
881
|
return da((a) => {
|
|
@@ -1038,7 +1038,7 @@ const sn = (t) => {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
let h = new XMLHttpRequest();
|
|
1040
1040
|
h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
|
|
1041
|
-
function
|
|
1041
|
+
function b() {
|
|
1042
1042
|
if (!h)
|
|
1043
1043
|
return;
|
|
1044
1044
|
const g = $.from(
|
|
@@ -1057,8 +1057,8 @@ const sn = (t) => {
|
|
|
1057
1057
|
r(N), m();
|
|
1058
1058
|
}, A), h = null;
|
|
1059
1059
|
}
|
|
1060
|
-
"onloadend" in h ? h.onloadend =
|
|
1061
|
-
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1060
|
+
"onloadend" in h ? h.onloadend = b : h.onreadystatechange = function() {
|
|
1061
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(b);
|
|
1062
1062
|
}, h.onabort = function() {
|
|
1063
1063
|
h && (r(new w("Request aborted", w.ECONNABORTED, t, h)), h = null);
|
|
1064
1064
|
}, h.onerror = function() {
|
|
@@ -1074,7 +1074,7 @@ const sn = (t) => {
|
|
|
1074
1074
|
)), h = null;
|
|
1075
1075
|
}, a === void 0 && i.setContentType(null), "setRequestHeader" in h && f.forEach(i.toJSON(), function(T, A) {
|
|
1076
1076
|
h.setRequestHeader(A, T);
|
|
1077
|
-
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] =
|
|
1077
|
+
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] = Ue(l, !0), h.addEventListener("progress", d)), u && h.upload && ([p, v] = Ue(u), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (g) => {
|
|
1078
1078
|
h && (r(!g || g.type ? new ue(null, t, h) : g), h.abort(), h = null);
|
|
1079
1079
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
1080
1080
|
const E = fa(o.url);
|
|
@@ -1238,13 +1238,13 @@ const Pa = async (t) => {
|
|
|
1238
1238
|
if (f.isFormData(r) && (_ = A.headers.get("content-type")) && c.setContentType(_), A.body) {
|
|
1239
1239
|
const [N, q] = or(
|
|
1240
1240
|
h,
|
|
1241
|
-
|
|
1241
|
+
Ue(ar(u))
|
|
1242
1242
|
);
|
|
1243
1243
|
r = sr(A.body, lr, N, q);
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
1246
|
f.isString(p) || (p = p ? "include" : "omit");
|
|
1247
|
-
const
|
|
1247
|
+
const b = "credentials" in Request.prototype;
|
|
1248
1248
|
y = new Request(e, {
|
|
1249
1249
|
...d,
|
|
1250
1250
|
signal: v,
|
|
@@ -1252,18 +1252,18 @@ const Pa = async (t) => {
|
|
|
1252
1252
|
headers: c.normalize().toJSON(),
|
|
1253
1253
|
body: r,
|
|
1254
1254
|
duplex: "half",
|
|
1255
|
-
credentials:
|
|
1255
|
+
credentials: b ? p : void 0
|
|
1256
1256
|
});
|
|
1257
1257
|
let E = await fetch(y, d);
|
|
1258
1258
|
const g = Ct && (l === "stream" || l === "response");
|
|
1259
1259
|
if (Ct && (s || g && m)) {
|
|
1260
1260
|
const A = {};
|
|
1261
|
-
["status", "statusText", "headers"].forEach((
|
|
1262
|
-
A[
|
|
1261
|
+
["status", "statusText", "headers"].forEach((L) => {
|
|
1262
|
+
A[L] = E[L];
|
|
1263
1263
|
});
|
|
1264
1264
|
const _ = f.toFiniteNumber(E.headers.get("content-length")), [N, q] = s && or(
|
|
1265
1265
|
_,
|
|
1266
|
-
|
|
1266
|
+
Ue(ar(s), !0)
|
|
1267
1267
|
) || [];
|
|
1268
1268
|
E = new Response(
|
|
1269
1269
|
sr(E.body, lr, N, () => {
|
|
@@ -1284,13 +1284,13 @@ const Pa = async (t) => {
|
|
|
1284
1284
|
request: y
|
|
1285
1285
|
});
|
|
1286
1286
|
});
|
|
1287
|
-
} catch (
|
|
1288
|
-
throw m && m(),
|
|
1287
|
+
} catch (b) {
|
|
1288
|
+
throw m && m(), b && b.name === "TypeError" && /Load failed|fetch/i.test(b.message) ? Object.assign(
|
|
1289
1289
|
new w("Network Error", w.ERR_NETWORK, t, y),
|
|
1290
1290
|
{
|
|
1291
|
-
cause:
|
|
1291
|
+
cause: b.cause || b
|
|
1292
1292
|
}
|
|
1293
|
-
) : w.from(
|
|
1293
|
+
) : w.from(b, b && b.code, t, y);
|
|
1294
1294
|
}
|
|
1295
1295
|
}), _t = {
|
|
1296
1296
|
http: zo,
|
|
@@ -1402,7 +1402,7 @@ function _a(t, e, n) {
|
|
|
1402
1402
|
const De = {
|
|
1403
1403
|
assertOptions: _a,
|
|
1404
1404
|
validators: Ke
|
|
1405
|
-
},
|
|
1405
|
+
}, B = De.validators;
|
|
1406
1406
|
let X = class {
|
|
1407
1407
|
constructor(e) {
|
|
1408
1408
|
this.defaults = e || {}, this.interceptors = {
|
|
@@ -1439,17 +1439,17 @@ let X = class {
|
|
|
1439
1439
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = Y(this.defaults, n);
|
|
1440
1440
|
const { transitional: r, paramsSerializer: o, headers: a } = n;
|
|
1441
1441
|
r !== void 0 && De.assertOptions(r, {
|
|
1442
|
-
silentJSONParsing:
|
|
1443
|
-
forcedJSONParsing:
|
|
1444
|
-
clarifyTimeoutError:
|
|
1442
|
+
silentJSONParsing: B.transitional(B.boolean),
|
|
1443
|
+
forcedJSONParsing: B.transitional(B.boolean),
|
|
1444
|
+
clarifyTimeoutError: B.transitional(B.boolean)
|
|
1445
1445
|
}, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
|
|
1446
1446
|
serialize: o
|
|
1447
1447
|
} : De.assertOptions(o, {
|
|
1448
|
-
encode:
|
|
1449
|
-
serialize:
|
|
1448
|
+
encode: B.function,
|
|
1449
|
+
serialize: B.function
|
|
1450
1450
|
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), De.assertOptions(n, {
|
|
1451
|
-
baseUrl:
|
|
1452
|
-
withXsrfToken:
|
|
1451
|
+
baseUrl: B.spelling("baseURL"),
|
|
1452
|
+
withXsrfToken: B.spelling("withXSRFToken")
|
|
1453
1453
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1454
1454
|
let i = a && f.merge(
|
|
1455
1455
|
a.common,
|
|
@@ -1744,10 +1744,10 @@ function Ia(t) {
|
|
|
1744
1744
|
}), n;
|
|
1745
1745
|
}
|
|
1746
1746
|
var fe = TypeError;
|
|
1747
|
-
const
|
|
1747
|
+
const La = {}, Ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1748
1748
|
__proto__: null,
|
|
1749
|
-
default:
|
|
1750
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1749
|
+
default: La
|
|
1750
|
+
}, Symbol.toStringTag, { value: "Module" })), Ua = /* @__PURE__ */ Ia(Ba);
|
|
1751
1751
|
var zt = typeof Map == "function" && Map.prototype, at = Object.getOwnPropertyDescriptor && zt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ke = zt && at && typeof at.get == "function" ? at.get : null, dr = zt && Map.prototype.forEach, Ht = typeof Set == "function" && Set.prototype, it = Object.getOwnPropertyDescriptor && Ht ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, qe = Ht && it && typeof it.get == "function" ? it.get : null, yr = Ht && Set.prototype.forEach, Ma = typeof WeakMap == "function" && WeakMap.prototype, he = Ma ? WeakMap.prototype.has : null, ka = typeof WeakSet == "function" && WeakSet.prototype, me = ka ? WeakSet.prototype.has : null, qa = typeof WeakRef == "function" && WeakRef.prototype, hr = qa ? WeakRef.prototype.deref : null, ja = Boolean.prototype.valueOf, za = Object.prototype.toString, Ha = Function.prototype.toString, Wa = String.prototype.match, Wt = String.prototype.slice, J = String.prototype.replace, Ga = String.prototype.toUpperCase, mr = String.prototype.toLowerCase, yn = RegExp.prototype.test, gr = Array.prototype.concat, k = Array.prototype.join, Ja = Array.prototype.slice, vr = Math.floor, Ft = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, st = Object.getOwnPropertySymbols, $t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, se = typeof Symbol == "function" && typeof Symbol.iterator == "object", ge = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === se || !0) ? Symbol.toStringTag : null, hn = Object.prototype.propertyIsEnumerable, wr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1752
1752
|
return t.__proto__;
|
|
1753
1753
|
} : null);
|
|
@@ -1764,7 +1764,7 @@ function br(t, e) {
|
|
|
1764
1764
|
}
|
|
1765
1765
|
return J.call(e, n, "$&_");
|
|
1766
1766
|
}
|
|
1767
|
-
var Dt =
|
|
1767
|
+
var Dt = Ua, Sr = Dt.custom, Er = vn(Sr) ? Sr : null, mn = {
|
|
1768
1768
|
__proto__: null,
|
|
1769
1769
|
double: '"',
|
|
1770
1770
|
single: "'"
|
|
@@ -1830,15 +1830,15 @@ var Dt = La, Sr = Dt.custom, Er = vn(Sr) ? Sr : null, mn = {
|
|
|
1830
1830
|
return typeof e == "object" && !se ? ye(m) : m;
|
|
1831
1831
|
}
|
|
1832
1832
|
if (ci(e)) {
|
|
1833
|
-
for (var h = "<" + mr.call(String(e.nodeName)),
|
|
1834
|
-
h += " " +
|
|
1833
|
+
for (var h = "<" + mr.call(String(e.nodeName)), b = e.attributes || [], E = 0; E < b.length; E++)
|
|
1834
|
+
h += " " + b[E].name + "=" + gn(Ka(b[E].value), "double", a);
|
|
1835
1835
|
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + mr.call(String(e.nodeName)) + ">", h;
|
|
1836
1836
|
}
|
|
1837
1837
|
if (It(e)) {
|
|
1838
1838
|
if (e.length === 0)
|
|
1839
1839
|
return "[]";
|
|
1840
1840
|
var g = Ce(e, d);
|
|
1841
|
-
return p && !fi(g) ? "[" +
|
|
1841
|
+
return p && !fi(g) ? "[" + Lt(g, p) + "]" : "[ " + k.call(g, ", ") + " ]";
|
|
1842
1842
|
}
|
|
1843
1843
|
if (Xa(e)) {
|
|
1844
1844
|
var T = Ce(e, d);
|
|
@@ -1881,8 +1881,8 @@ var Dt = La, Sr = Dt.custom, Er = vn(Sr) ? Sr : null, mn = {
|
|
|
1881
1881
|
if (typeof globalThis < "u" && e === globalThis || typeof pr < "u" && e === pr)
|
|
1882
1882
|
return "{ [object globalThis] }";
|
|
1883
1883
|
if (!Qa(e) && !Ar(e)) {
|
|
1884
|
-
var N = Ce(e, d), q = wr ? wr(e) === Object.prototype : e instanceof Object || e.constructor === Object,
|
|
1885
|
-
return N.length === 0 ? re + "{}" : p ? re + "{" +
|
|
1884
|
+
var N = Ce(e, d), q = wr ? wr(e) === Object.prototype : e instanceof Object || e.constructor === Object, L = e instanceof Object ? "" : "null prototype", H = !q && ge && Object(e) === e && ge in e ? Wt.call(V(e), 8, -1) : L ? "Object" : "", xe = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = xe + (H || L ? "[" + k.call(gr.call([], H || [], L || []), ": ") + "] " : "");
|
|
1885
|
+
return N.length === 0 ? re + "{}" : p ? re + "{" + Lt(N, p) + "}" : re + "{ " + k.call(N, ", ") + " }";
|
|
1886
1886
|
}
|
|
1887
1887
|
return String(e);
|
|
1888
1888
|
};
|
|
@@ -2061,7 +2061,7 @@ function lt(t) {
|
|
|
2061
2061
|
return t + " { ? }";
|
|
2062
2062
|
}
|
|
2063
2063
|
function Or(t, e, n, r) {
|
|
2064
|
-
var o = r ?
|
|
2064
|
+
var o = r ? Lt(n, r) : k.call(n, ", ");
|
|
2065
2065
|
return t + " (" + e + ") {" + o + "}";
|
|
2066
2066
|
}
|
|
2067
2067
|
function fi(t) {
|
|
@@ -2084,7 +2084,7 @@ function pi(t, e) {
|
|
|
2084
2084
|
prev: k.call(Array(e + 1), n)
|
|
2085
2085
|
};
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2087
|
+
function Lt(t, e) {
|
|
2088
2088
|
if (t.length === 0)
|
|
2089
2089
|
return "";
|
|
2090
2090
|
var n = `
|
|
@@ -2175,15 +2175,15 @@ if (Ie)
|
|
|
2175
2175
|
} catch {
|
|
2176
2176
|
Ie = null;
|
|
2177
2177
|
}
|
|
2178
|
-
var En = Ie,
|
|
2179
|
-
if (
|
|
2178
|
+
var En = Ie, Le = Object.defineProperty || !1;
|
|
2179
|
+
if (Le)
|
|
2180
2180
|
try {
|
|
2181
|
-
|
|
2181
|
+
Le({}, "a", { value: 1 });
|
|
2182
2182
|
} catch {
|
|
2183
|
-
|
|
2183
|
+
Le = !1;
|
|
2184
2184
|
}
|
|
2185
|
-
var
|
|
2186
|
-
function
|
|
2185
|
+
var Li = Le, ct, Rr;
|
|
2186
|
+
function Bi() {
|
|
2187
2187
|
return Rr || (Rr = 1, ct = function() {
|
|
2188
2188
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2189
2189
|
return !1;
|
|
@@ -2213,10 +2213,10 @@ function Ui() {
|
|
|
2213
2213
|
}), ct;
|
|
2214
2214
|
}
|
|
2215
2215
|
var ut, Pr;
|
|
2216
|
-
function
|
|
2216
|
+
function Ui() {
|
|
2217
2217
|
if (Pr) return ut;
|
|
2218
2218
|
Pr = 1;
|
|
2219
|
-
var t = typeof Symbol < "u" && Symbol, e =
|
|
2219
|
+
var t = typeof Symbol < "u" && Symbol, e = Bi();
|
|
2220
2220
|
return ut = function() {
|
|
2221
2221
|
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
2222
2222
|
}, ut;
|
|
@@ -2257,11 +2257,11 @@ function Mi() {
|
|
|
2257
2257
|
throw new TypeError(t + l);
|
|
2258
2258
|
for (var c = a(arguments, 1), p, d = function() {
|
|
2259
2259
|
if (this instanceof p) {
|
|
2260
|
-
var
|
|
2260
|
+
var b = l.apply(
|
|
2261
2261
|
this,
|
|
2262
2262
|
o(c, arguments)
|
|
2263
2263
|
);
|
|
2264
|
-
return Object(
|
|
2264
|
+
return Object(b) === b ? b : this;
|
|
2265
2265
|
}
|
|
2266
2266
|
return l.apply(
|
|
2267
2267
|
u,
|
|
@@ -2342,12 +2342,12 @@ function Zi() {
|
|
|
2342
2342
|
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = Ze();
|
|
2343
2343
|
return wt = n.call(t, e), wt;
|
|
2344
2344
|
}
|
|
2345
|
-
var
|
|
2345
|
+
var S, Yi = Sn, es = bi, ts = Si, rs = Ei, ns = Ai, le = Oi, ie = fe, os = Ri, as = Pi, is = Ti, ss = xi, ls = Ci, cs = _i, us = Ni, fs = Di, Tn = Function, bt = function(t) {
|
|
2346
2346
|
try {
|
|
2347
2347
|
return Tn('"use strict"; return (' + t + ").constructor;")();
|
|
2348
2348
|
} catch {
|
|
2349
2349
|
}
|
|
2350
|
-
}, be = En, ps =
|
|
2350
|
+
}, be = En, ps = Li, St = function() {
|
|
2351
2351
|
throw new ie();
|
|
2352
2352
|
}, ds = be ? function() {
|
|
2353
2353
|
try {
|
|
@@ -2359,23 +2359,23 @@ var b, Yi = Sn, es = bi, ts = Si, rs = Ei, ns = Ai, le = Oi, ie = fe, os = Ri, a
|
|
|
2359
2359
|
return St;
|
|
2360
2360
|
}
|
|
2361
2361
|
}
|
|
2362
|
-
}() : St, ne =
|
|
2362
|
+
}() : St, ne = Ui()(), x = Xi(), ys = On(), hs = An(), xn = Rn(), Re = Gt(), ae = {}, ms = typeof Uint8Array > "u" || !x ? S : x(Uint8Array), Z = {
|
|
2363
2363
|
__proto__: null,
|
|
2364
|
-
"%AggregateError%": typeof AggregateError > "u" ?
|
|
2364
|
+
"%AggregateError%": typeof AggregateError > "u" ? S : AggregateError,
|
|
2365
2365
|
"%Array%": Array,
|
|
2366
|
-
"%ArrayBuffer%": typeof ArrayBuffer > "u" ?
|
|
2367
|
-
"%ArrayIteratorPrototype%": ne && x ? x([][Symbol.iterator]()) :
|
|
2368
|
-
"%AsyncFromSyncIteratorPrototype%":
|
|
2366
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? S : ArrayBuffer,
|
|
2367
|
+
"%ArrayIteratorPrototype%": ne && x ? x([][Symbol.iterator]()) : S,
|
|
2368
|
+
"%AsyncFromSyncIteratorPrototype%": S,
|
|
2369
2369
|
"%AsyncFunction%": ae,
|
|
2370
2370
|
"%AsyncGenerator%": ae,
|
|
2371
2371
|
"%AsyncGeneratorFunction%": ae,
|
|
2372
2372
|
"%AsyncIteratorPrototype%": ae,
|
|
2373
|
-
"%Atomics%": typeof Atomics > "u" ?
|
|
2374
|
-
"%BigInt%": typeof BigInt > "u" ?
|
|
2375
|
-
"%BigInt64Array%": typeof BigInt64Array > "u" ?
|
|
2376
|
-
"%BigUint64Array%": typeof BigUint64Array > "u" ?
|
|
2373
|
+
"%Atomics%": typeof Atomics > "u" ? S : Atomics,
|
|
2374
|
+
"%BigInt%": typeof BigInt > "u" ? S : BigInt,
|
|
2375
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? S : BigInt64Array,
|
|
2376
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? S : BigUint64Array,
|
|
2377
2377
|
"%Boolean%": Boolean,
|
|
2378
|
-
"%DataView%": typeof DataView > "u" ?
|
|
2378
|
+
"%DataView%": typeof DataView > "u" ? S : DataView,
|
|
2379
2379
|
"%Date%": Date,
|
|
2380
2380
|
"%decodeURI%": decodeURI,
|
|
2381
2381
|
"%decodeURIComponent%": decodeURIComponent,
|
|
@@ -2385,51 +2385,51 @@ var b, Yi = Sn, es = bi, ts = Si, rs = Ei, ns = Ai, le = Oi, ie = fe, os = Ri, a
|
|
|
2385
2385
|
"%eval%": eval,
|
|
2386
2386
|
// eslint-disable-line no-eval
|
|
2387
2387
|
"%EvalError%": ts,
|
|
2388
|
-
"%Float16Array%": typeof Float16Array > "u" ?
|
|
2389
|
-
"%Float32Array%": typeof Float32Array > "u" ?
|
|
2390
|
-
"%Float64Array%": typeof Float64Array > "u" ?
|
|
2391
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ?
|
|
2388
|
+
"%Float16Array%": typeof Float16Array > "u" ? S : Float16Array,
|
|
2389
|
+
"%Float32Array%": typeof Float32Array > "u" ? S : Float32Array,
|
|
2390
|
+
"%Float64Array%": typeof Float64Array > "u" ? S : Float64Array,
|
|
2391
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? S : FinalizationRegistry,
|
|
2392
2392
|
"%Function%": Tn,
|
|
2393
2393
|
"%GeneratorFunction%": ae,
|
|
2394
|
-
"%Int8Array%": typeof Int8Array > "u" ?
|
|
2395
|
-
"%Int16Array%": typeof Int16Array > "u" ?
|
|
2396
|
-
"%Int32Array%": typeof Int32Array > "u" ?
|
|
2394
|
+
"%Int8Array%": typeof Int8Array > "u" ? S : Int8Array,
|
|
2395
|
+
"%Int16Array%": typeof Int16Array > "u" ? S : Int16Array,
|
|
2396
|
+
"%Int32Array%": typeof Int32Array > "u" ? S : Int32Array,
|
|
2397
2397
|
"%isFinite%": isFinite,
|
|
2398
2398
|
"%isNaN%": isNaN,
|
|
2399
|
-
"%IteratorPrototype%": ne && x ? x(x([][Symbol.iterator]())) :
|
|
2400
|
-
"%JSON%": typeof JSON == "object" ? JSON :
|
|
2401
|
-
"%Map%": typeof Map > "u" ?
|
|
2402
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !ne || !x ?
|
|
2399
|
+
"%IteratorPrototype%": ne && x ? x(x([][Symbol.iterator]())) : S,
|
|
2400
|
+
"%JSON%": typeof JSON == "object" ? JSON : S,
|
|
2401
|
+
"%Map%": typeof Map > "u" ? S : Map,
|
|
2402
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !ne || !x ? S : x((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2403
2403
|
"%Math%": Math,
|
|
2404
2404
|
"%Number%": Number,
|
|
2405
2405
|
"%Object%": Yi,
|
|
2406
2406
|
"%Object.getOwnPropertyDescriptor%": be,
|
|
2407
2407
|
"%parseFloat%": parseFloat,
|
|
2408
2408
|
"%parseInt%": parseInt,
|
|
2409
|
-
"%Promise%": typeof Promise > "u" ?
|
|
2410
|
-
"%Proxy%": typeof Proxy > "u" ?
|
|
2409
|
+
"%Promise%": typeof Promise > "u" ? S : Promise,
|
|
2410
|
+
"%Proxy%": typeof Proxy > "u" ? S : Proxy,
|
|
2411
2411
|
"%RangeError%": rs,
|
|
2412
2412
|
"%ReferenceError%": ns,
|
|
2413
|
-
"%Reflect%": typeof Reflect > "u" ?
|
|
2413
|
+
"%Reflect%": typeof Reflect > "u" ? S : Reflect,
|
|
2414
2414
|
"%RegExp%": RegExp,
|
|
2415
|
-
"%Set%": typeof Set > "u" ?
|
|
2416
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !ne || !x ?
|
|
2417
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ?
|
|
2415
|
+
"%Set%": typeof Set > "u" ? S : Set,
|
|
2416
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !ne || !x ? S : x((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
2417
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? S : SharedArrayBuffer,
|
|
2418
2418
|
"%String%": String,
|
|
2419
|
-
"%StringIteratorPrototype%": ne && x ? x(""[Symbol.iterator]()) :
|
|
2420
|
-
"%Symbol%": ne ? Symbol :
|
|
2419
|
+
"%StringIteratorPrototype%": ne && x ? x(""[Symbol.iterator]()) : S,
|
|
2420
|
+
"%Symbol%": ne ? Symbol : S,
|
|
2421
2421
|
"%SyntaxError%": le,
|
|
2422
2422
|
"%ThrowTypeError%": ds,
|
|
2423
2423
|
"%TypedArray%": ms,
|
|
2424
2424
|
"%TypeError%": ie,
|
|
2425
|
-
"%Uint8Array%": typeof Uint8Array > "u" ?
|
|
2426
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ?
|
|
2427
|
-
"%Uint16Array%": typeof Uint16Array > "u" ?
|
|
2428
|
-
"%Uint32Array%": typeof Uint32Array > "u" ?
|
|
2425
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? S : Uint8Array,
|
|
2426
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? S : Uint8ClampedArray,
|
|
2427
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? S : Uint16Array,
|
|
2428
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? S : Uint32Array,
|
|
2429
2429
|
"%URIError%": os,
|
|
2430
|
-
"%WeakMap%": typeof WeakMap > "u" ?
|
|
2431
|
-
"%WeakRef%": typeof WeakRef > "u" ?
|
|
2432
|
-
"%WeakSet%": typeof WeakSet > "u" ?
|
|
2430
|
+
"%WeakMap%": typeof WeakMap > "u" ? S : WeakMap,
|
|
2431
|
+
"%WeakRef%": typeof WeakRef > "u" ? S : WeakRef,
|
|
2432
|
+
"%WeakSet%": typeof WeakSet > "u" ? S : WeakSet,
|
|
2433
2433
|
"%Function.prototype.call%": Re,
|
|
2434
2434
|
"%Function.prototype.apply%": xn,
|
|
2435
2435
|
"%Object.defineProperty%": ps,
|
|
@@ -2466,7 +2466,7 @@ var vs = function t(e) {
|
|
|
2466
2466
|
o && x && (n = x(o.prototype));
|
|
2467
2467
|
}
|
|
2468
2468
|
return Z[e] = n, n;
|
|
2469
|
-
},
|
|
2469
|
+
}, Lr = {
|
|
2470
2470
|
__proto__: null,
|
|
2471
2471
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
2472
2472
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
@@ -2519,19 +2519,19 @@ var vs = function t(e) {
|
|
|
2519
2519
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2520
2520
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2521
2521
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2522
|
-
}, Pe = Ze(), je = Zi(), ws = Pe.call(Re, Array.prototype.concat), bs = Pe.call(xn, Array.prototype.splice),
|
|
2522
|
+
}, Pe = Ze(), je = Zi(), ws = Pe.call(Re, Array.prototype.concat), bs = Pe.call(xn, Array.prototype.splice), Br = Pe.call(Re, String.prototype.replace), ze = Pe.call(Re, String.prototype.slice), Ss = Pe.call(Re, RegExp.prototype.exec), Es = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, As = /\\(\\)?/g, Os = function(e) {
|
|
2523
2523
|
var n = ze(e, 0, 1), r = ze(e, -1);
|
|
2524
2524
|
if (n === "%" && r !== "%")
|
|
2525
2525
|
throw new le("invalid intrinsic syntax, expected closing `%`");
|
|
2526
2526
|
if (r === "%" && n !== "%")
|
|
2527
2527
|
throw new le("invalid intrinsic syntax, expected opening `%`");
|
|
2528
2528
|
var o = [];
|
|
2529
|
-
return
|
|
2530
|
-
o[o.length] = s ?
|
|
2529
|
+
return Br(e, Es, function(a, i, s, u) {
|
|
2530
|
+
o[o.length] = s ? Br(u, As, "$1") : i || a;
|
|
2531
2531
|
}), o;
|
|
2532
2532
|
}, Rs = function(e, n) {
|
|
2533
2533
|
var r = e, o;
|
|
2534
|
-
if (je(
|
|
2534
|
+
if (je(Lr, r) && (o = Lr[r], r = "%" + o[0] + "%"), je(Z, r)) {
|
|
2535
2535
|
var a = Z[r];
|
|
2536
2536
|
if (a === ae && (a = vs(r)), typeof a > "u" && !n)
|
|
2537
2537
|
throw new ie("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
@@ -2581,7 +2581,7 @@ var vs = function t(e) {
|
|
|
2581
2581
|
/** @type {const} */
|
|
2582
2582
|
[r]
|
|
2583
2583
|
) : r;
|
|
2584
|
-
}, Ts = Jt, Te = Nn, xs = Qe, Cs = fe,
|
|
2584
|
+
}, Ts = Jt, Te = Nn, xs = Qe, Cs = fe, Ur = Ts("%Map%", !0), _s = Te("Map.prototype.get", !0), Ns = Te("Map.prototype.set", !0), Fs = Te("Map.prototype.has", !0), $s = Te("Map.prototype.delete", !0), Ds = Te("Map.prototype.size", !0), Fn = !!Ur && /** @type {Exclude<import('.'), false>} */
|
|
2585
2585
|
function() {
|
|
2586
2586
|
var e, n = {
|
|
2587
2587
|
assert: function(r) {
|
|
@@ -2603,17 +2603,17 @@ function() {
|
|
|
2603
2603
|
return e ? Fs(e, r) : !1;
|
|
2604
2604
|
},
|
|
2605
2605
|
set: function(r, o) {
|
|
2606
|
-
e || (e = new
|
|
2606
|
+
e || (e = new Ur()), Ns(e, r, o);
|
|
2607
2607
|
}
|
|
2608
2608
|
};
|
|
2609
2609
|
return n;
|
|
2610
|
-
}, Is = Jt, Ye = Nn,
|
|
2610
|
+
}, Is = Jt, Ye = Nn, Ls = Qe, _e = Fn, Bs = fe, oe = Is("%WeakMap%", !0), Us = Ye("WeakMap.prototype.get", !0), Ms = Ye("WeakMap.prototype.set", !0), ks = Ye("WeakMap.prototype.has", !0), qs = Ye("WeakMap.prototype.delete", !0), js = oe ? (
|
|
2611
2611
|
/** @type {Exclude<import('.'), false>} */
|
|
2612
2612
|
function() {
|
|
2613
2613
|
var e, n, r = {
|
|
2614
2614
|
assert: function(o) {
|
|
2615
2615
|
if (!r.has(o))
|
|
2616
|
-
throw new
|
|
2616
|
+
throw new Bs("Side channel does not contain " + Ls(o));
|
|
2617
2617
|
},
|
|
2618
2618
|
delete: function(o) {
|
|
2619
2619
|
if (oe && o && (typeof o == "object" || typeof o == "function")) {
|
|
@@ -2624,7 +2624,7 @@ function() {
|
|
|
2624
2624
|
return !1;
|
|
2625
2625
|
},
|
|
2626
2626
|
get: function(o) {
|
|
2627
|
-
return oe && o && (typeof o == "object" || typeof o == "function") && e ?
|
|
2627
|
+
return oe && o && (typeof o == "object" || typeof o == "function") && e ? Us(e, o) : n && n.get(o);
|
|
2628
2628
|
},
|
|
2629
2629
|
has: function(o) {
|
|
2630
2630
|
return oe && o && (typeof o == "object" || typeof o == "function") && e ? ks(e, o) : !!n && n.has(o);
|
|
@@ -2670,7 +2670,7 @@ function() {
|
|
|
2670
2670
|
},
|
|
2671
2671
|
RFC1738: Et.RFC1738,
|
|
2672
2672
|
RFC3986: Et.RFC3986
|
|
2673
|
-
}, Zs = Vt, At = Object.prototype.hasOwnProperty, K = Array.isArray,
|
|
2673
|
+
}, Zs = Vt, At = Object.prototype.hasOwnProperty, K = Array.isArray, U = function() {
|
|
2674
2674
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2675
2675
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2676
2676
|
return t;
|
|
@@ -2741,18 +2741,18 @@ function() {
|
|
|
2741
2741
|
continue;
|
|
2742
2742
|
}
|
|
2743
2743
|
if (d < 128) {
|
|
2744
|
-
c[c.length] =
|
|
2744
|
+
c[c.length] = U[d];
|
|
2745
2745
|
continue;
|
|
2746
2746
|
}
|
|
2747
2747
|
if (d < 2048) {
|
|
2748
|
-
c[c.length] =
|
|
2748
|
+
c[c.length] = U[192 | d >> 6] + U[128 | d & 63];
|
|
2749
2749
|
continue;
|
|
2750
2750
|
}
|
|
2751
2751
|
if (d < 55296 || d >= 57344) {
|
|
2752
|
-
c[c.length] =
|
|
2752
|
+
c[c.length] = U[224 | d >> 12] + U[128 | d >> 6 & 63] + U[128 | d & 63];
|
|
2753
2753
|
continue;
|
|
2754
2754
|
}
|
|
2755
|
-
p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] =
|
|
2755
|
+
p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] = U[240 | d >> 18] + U[128 | d >> 12 & 63] + U[128 | d >> 6 & 63] + U[128 | d & 63];
|
|
2756
2756
|
}
|
|
2757
2757
|
s += c.join("");
|
|
2758
2758
|
}
|
|
@@ -2788,7 +2788,7 @@ function() {
|
|
|
2788
2788
|
isRegExp: al,
|
|
2789
2789
|
maybeMap: ll,
|
|
2790
2790
|
merge: el
|
|
2791
|
-
}, In = Ks,
|
|
2791
|
+
}, In = Ks, Be = Dn, ve = Vt, cl = Object.prototype.hasOwnProperty, Ln = {
|
|
2792
2792
|
brackets: function(e) {
|
|
2793
2793
|
return e + "[]";
|
|
2794
2794
|
},
|
|
@@ -2799,7 +2799,7 @@ function() {
|
|
|
2799
2799
|
repeat: function(e) {
|
|
2800
2800
|
return e;
|
|
2801
2801
|
}
|
|
2802
|
-
}, M = Array.isArray, ul = Array.prototype.push,
|
|
2802
|
+
}, M = Array.isArray, ul = Array.prototype.push, Bn = function(t, e) {
|
|
2803
2803
|
ul.apply(t, M(e) ? e : [e]);
|
|
2804
2804
|
}, fl = Date.prototype.toISOString, Mr = ve.default, P = {
|
|
2805
2805
|
addQueryPrefix: !1,
|
|
@@ -2812,7 +2812,7 @@ function() {
|
|
|
2812
2812
|
delimiter: "&",
|
|
2813
2813
|
encode: !0,
|
|
2814
2814
|
encodeDotInKeys: !1,
|
|
2815
|
-
encoder:
|
|
2815
|
+
encoder: Be.encode,
|
|
2816
2816
|
encodeValuesOnly: !1,
|
|
2817
2817
|
filter: void 0,
|
|
2818
2818
|
format: Mr,
|
|
@@ -2826,7 +2826,7 @@ function() {
|
|
|
2826
2826
|
strictNullHandling: !1
|
|
2827
2827
|
}, pl = function(e) {
|
|
2828
2828
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2829
|
-
}, Rt = {}, dl = function t(e, n, r, o, a, i, s, u, l, c, p, d, v, y, m, h,
|
|
2829
|
+
}, Rt = {}, dl = function t(e, n, r, o, a, i, s, u, l, c, p, d, v, y, m, h, b, E) {
|
|
2830
2830
|
for (var g = e, T = E, A = 0, _ = !1; (T = T.get(Rt)) !== void 0 && !_; ) {
|
|
2831
2831
|
var N = T.get(e);
|
|
2832
2832
|
if (A += 1, typeof N < "u") {
|
|
@@ -2836,26 +2836,26 @@ function() {
|
|
|
2836
2836
|
}
|
|
2837
2837
|
typeof T.get(Rt) > "u" && (A = 0);
|
|
2838
2838
|
}
|
|
2839
|
-
if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && M(g) && (g =
|
|
2839
|
+
if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && M(g) && (g = Be.maybeMap(g, function(tt) {
|
|
2840
2840
|
return tt instanceof Date ? v(tt) : tt;
|
|
2841
2841
|
})), g === null) {
|
|
2842
2842
|
if (i)
|
|
2843
|
-
return l && !h ? l(n, P.encoder,
|
|
2843
|
+
return l && !h ? l(n, P.encoder, b, "key", y) : n;
|
|
2844
2844
|
g = "";
|
|
2845
2845
|
}
|
|
2846
|
-
if (pl(g) ||
|
|
2846
|
+
if (pl(g) || Be.isBuffer(g)) {
|
|
2847
2847
|
if (l) {
|
|
2848
|
-
var q = h ? n : l(n, P.encoder,
|
|
2849
|
-
return [m(q) + "=" + m(l(g, P.encoder,
|
|
2848
|
+
var q = h ? n : l(n, P.encoder, b, "key", y);
|
|
2849
|
+
return [m(q) + "=" + m(l(g, P.encoder, b, "value", y))];
|
|
2850
2850
|
}
|
|
2851
2851
|
return [m(n) + "=" + m(String(g))];
|
|
2852
2852
|
}
|
|
2853
|
-
var
|
|
2853
|
+
var L = [];
|
|
2854
2854
|
if (typeof g > "u")
|
|
2855
|
-
return
|
|
2855
|
+
return L;
|
|
2856
2856
|
var H;
|
|
2857
2857
|
if (r === "comma" && M(g))
|
|
2858
|
-
h && l && (g =
|
|
2858
|
+
h && l && (g = Be.maybeMap(g, l)), H = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
|
|
2859
2859
|
else if (M(c))
|
|
2860
2860
|
H = c;
|
|
2861
2861
|
else {
|
|
@@ -2871,7 +2871,7 @@ function() {
|
|
|
2871
2871
|
var et = d && u ? String(j).replace(/\./g, "%2E") : String(j), jn = M(g) ? typeof r == "function" ? r(D, et) : D : D + (d ? "." + et : "[" + et + "]");
|
|
2872
2872
|
E.set(e, A);
|
|
2873
2873
|
var Zt = In();
|
|
2874
|
-
Zt.set(Rt, E),
|
|
2874
|
+
Zt.set(Rt, E), Bn(L, t(
|
|
2875
2875
|
pe,
|
|
2876
2876
|
jn,
|
|
2877
2877
|
r,
|
|
@@ -2888,12 +2888,12 @@ function() {
|
|
|
2888
2888
|
y,
|
|
2889
2889
|
m,
|
|
2890
2890
|
h,
|
|
2891
|
-
|
|
2891
|
+
b,
|
|
2892
2892
|
Zt
|
|
2893
2893
|
));
|
|
2894
2894
|
}
|
|
2895
2895
|
}
|
|
2896
|
-
return
|
|
2896
|
+
return L;
|
|
2897
2897
|
}, yl = function(e) {
|
|
2898
2898
|
if (!e)
|
|
2899
2899
|
return P;
|
|
@@ -2915,7 +2915,7 @@ function() {
|
|
|
2915
2915
|
var o = ve.formatters[r], a = P.filter;
|
|
2916
2916
|
(typeof e.filter == "function" || M(e.filter)) && (a = e.filter);
|
|
2917
2917
|
var i;
|
|
2918
|
-
if (e.arrayFormat in
|
|
2918
|
+
if (e.arrayFormat in Ln ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = P.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
2919
2919
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
2920
2920
|
var s = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : P.allowDots : !!e.allowDots;
|
|
2921
2921
|
return {
|
|
@@ -2945,11 +2945,11 @@ function() {
|
|
|
2945
2945
|
var i = [];
|
|
2946
2946
|
if (typeof n != "object" || n === null)
|
|
2947
2947
|
return "";
|
|
2948
|
-
var s =
|
|
2948
|
+
var s = Ln[r.arrayFormat], u = s === "comma" && r.commaRoundTrip;
|
|
2949
2949
|
o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
|
|
2950
2950
|
for (var l = In(), c = 0; c < o.length; ++c) {
|
|
2951
2951
|
var p = o[c], d = n[p];
|
|
2952
|
-
r.skipNulls && d === null ||
|
|
2952
|
+
r.skipNulls && d === null || Bn(i, dl(
|
|
2953
2953
|
d,
|
|
2954
2954
|
p,
|
|
2955
2955
|
s,
|
|
@@ -2972,7 +2972,7 @@ function() {
|
|
|
2972
2972
|
}
|
|
2973
2973
|
var v = i.join(r.delimiter), y = r.addQueryPrefix === !0 ? "?" : "";
|
|
2974
2974
|
return r.charsetSentinel && (r.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), v.length > 0 ? y + v : "";
|
|
2975
|
-
}, ee = Dn,
|
|
2975
|
+
}, ee = Dn, Bt = Object.prototype.hasOwnProperty, kr = Array.isArray, O = {
|
|
2976
2976
|
allowDots: !1,
|
|
2977
2977
|
allowEmptyArrays: !1,
|
|
2978
2978
|
allowPrototypes: !1,
|
|
@@ -2998,7 +2998,7 @@ function() {
|
|
|
2998
2998
|
return t.replace(/&#(\d+);/g, function(e, n) {
|
|
2999
2999
|
return String.fromCharCode(parseInt(n, 10));
|
|
3000
3000
|
});
|
|
3001
|
-
},
|
|
3001
|
+
}, Un = function(t, e, n) {
|
|
3002
3002
|
if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1)
|
|
3003
3003
|
return t.split(",");
|
|
3004
3004
|
if (e.throwOnLimitExceeded && n >= e.arrayLimit)
|
|
@@ -3021,7 +3021,7 @@ function() {
|
|
|
3021
3021
|
if (u !== s) {
|
|
3022
3022
|
var c = i[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1, v, y;
|
|
3023
3023
|
d === -1 ? (v = n.decoder(c, O.decoder, l, "key"), y = n.strictNullHandling ? null : "") : (v = n.decoder(c.slice(0, d), O.decoder, l, "key"), y = ee.maybeMap(
|
|
3024
|
-
|
|
3024
|
+
Un(
|
|
3025
3025
|
c.slice(d + 1),
|
|
3026
3026
|
n,
|
|
3027
3027
|
kr(r[v]) ? r[v].length : 0
|
|
@@ -3030,7 +3030,7 @@ function() {
|
|
|
3030
3030
|
return n.decoder(h, O.decoder, l, "value");
|
|
3031
3031
|
}
|
|
3032
3032
|
)), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = ml(String(y))), c.indexOf("[]=") > -1 && (y = kr(y) ? [y] : y);
|
|
3033
|
-
var m =
|
|
3033
|
+
var m = Bt.call(r, v);
|
|
3034
3034
|
m && n.duplicates === "combine" ? r[v] = ee.combine(r[v], y) : (!m || n.duplicates === "last") && (r[v] = y);
|
|
3035
3035
|
}
|
|
3036
3036
|
return r;
|
|
@@ -3040,7 +3040,7 @@ function() {
|
|
|
3040
3040
|
var a = t.slice(0, -1).join("");
|
|
3041
3041
|
o = Array.isArray(e) && e[a] ? e[a].length : 0;
|
|
3042
3042
|
}
|
|
3043
|
-
for (var i = r ? e :
|
|
3043
|
+
for (var i = r ? e : Un(e, n, o), s = t.length - 1; s >= 0; --s) {
|
|
3044
3044
|
var u, l = t[s];
|
|
3045
3045
|
if (l === "[]" && n.parseArrays)
|
|
3046
3046
|
u = n.allowEmptyArrays && (i === "" || n.strictNullHandling && i === null) ? [] : ee.combine([], i);
|
|
@@ -3056,12 +3056,12 @@ function() {
|
|
|
3056
3056
|
if (e) {
|
|
3057
3057
|
var a = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, u = r.depth > 0 && i.exec(a), l = u ? a.slice(0, u.index) : a, c = [];
|
|
3058
3058
|
if (l) {
|
|
3059
|
-
if (!r.plainObjects &&
|
|
3059
|
+
if (!r.plainObjects && Bt.call(Object.prototype, l) && !r.allowPrototypes)
|
|
3060
3060
|
return;
|
|
3061
3061
|
c.push(l);
|
|
3062
3062
|
}
|
|
3063
3063
|
for (var p = 0; r.depth > 0 && (u = s.exec(a)) !== null && p < r.depth; ) {
|
|
3064
|
-
if (p += 1, !r.plainObjects &&
|
|
3064
|
+
if (p += 1, !r.plainObjects && Bt.call(Object.prototype, u[1].slice(1, -1)) && !r.allowPrototypes)
|
|
3065
3065
|
return;
|
|
3066
3066
|
c.push(u[1]);
|
|
3067
3067
|
}
|
|
@@ -3148,7 +3148,7 @@ var Cl = {
|
|
|
3148
3148
|
);
|
|
3149
3149
|
}
|
|
3150
3150
|
};
|
|
3151
|
-
function
|
|
3151
|
+
function Ut(t, e) {
|
|
3152
3152
|
function n(o, a, i) {
|
|
3153
3153
|
if (!(typeof document > "u")) {
|
|
3154
3154
|
i = Ne({}, e, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
@@ -3186,10 +3186,10 @@ function Lt(t, e) {
|
|
|
3186
3186
|
);
|
|
3187
3187
|
},
|
|
3188
3188
|
withAttributes: function(o) {
|
|
3189
|
-
return
|
|
3189
|
+
return Ut(this.converter, Ne({}, this.attributes, o));
|
|
3190
3190
|
},
|
|
3191
3191
|
withConverter: function(o) {
|
|
3192
|
-
return
|
|
3192
|
+
return Ut(Ne({}, this.converter, o), this.attributes);
|
|
3193
3193
|
}
|
|
3194
3194
|
},
|
|
3195
3195
|
{
|
|
@@ -3198,7 +3198,7 @@ function Lt(t, e) {
|
|
|
3198
3198
|
}
|
|
3199
3199
|
);
|
|
3200
3200
|
}
|
|
3201
|
-
var _l =
|
|
3201
|
+
var _l = Ut(Cl, { path: "/" });
|
|
3202
3202
|
const Nl = {
|
|
3203
3203
|
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
|
|
3204
3204
|
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
|
|
@@ -3236,38 +3236,38 @@ const Kt = qr(), Mn = Kt.sso ?? !0, Fl = Kt.i18n ?? !0, kn = Kt.noRedireLogin ??
|
|
|
3236
3236
|
}, Il = async (t) => {
|
|
3237
3237
|
var n;
|
|
3238
3238
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3239
|
-
},
|
|
3240
|
-
var
|
|
3241
|
-
let n = ((
|
|
3239
|
+
}, Ll = async (t, e) => {
|
|
3240
|
+
var p, d, v, y, m, h;
|
|
3241
|
+
let n = ((p = t.response) == null ? void 0 : p.status) || 500, r = (d = t.response) == null ? void 0 : d.message, o = {};
|
|
3242
3242
|
const a = { 400: G("参数校验错误"), 404: G("接口地址未找到"), 500: G("服务器内部错误") };
|
|
3243
|
-
let i = ((
|
|
3244
|
-
const s = Jn("code") || "", u =
|
|
3245
|
-
if (!s &&
|
|
3243
|
+
let i = ((v = t == null ? void 0 : t.response) == null ? void 0 : v.data) || {};
|
|
3244
|
+
const s = Jn("code") || "", u = (e == null ? void 0 : e.noRedireLogin) ?? ((y = t == null ? void 0 : t.config) == null ? void 0 : y.noRedireLogin), c = !((t == null ? void 0 : t.__skipLoginRedirect) === !0) && !(u ?? kn);
|
|
3245
|
+
if (!s && c && (n === 401 || (i == null ? void 0 : i.code) === 401))
|
|
3246
3246
|
Mn ? Vn({ ...Qn, redirect_uri: Kn }) : qn(), o = i;
|
|
3247
3247
|
else {
|
|
3248
3248
|
if (t.response) {
|
|
3249
|
-
if (i instanceof Blob && (i = await new Promise((
|
|
3250
|
-
const
|
|
3251
|
-
|
|
3249
|
+
if (i instanceof Blob && (i = await new Promise((b) => {
|
|
3250
|
+
const E = new FileReader();
|
|
3251
|
+
E.readAsText(i, "utf-8"), E.onload = () => {
|
|
3252
3252
|
try {
|
|
3253
|
-
|
|
3253
|
+
b(JSON.parse(E.result || "{}"));
|
|
3254
3254
|
} catch {
|
|
3255
|
-
|
|
3255
|
+
b({ code: 400, msg: G("blob解析错误") });
|
|
3256
3256
|
}
|
|
3257
3257
|
};
|
|
3258
3258
|
})), i.code) {
|
|
3259
3259
|
n = i.code;
|
|
3260
|
-
const
|
|
3261
|
-
if (Fl &&
|
|
3262
|
-
const
|
|
3263
|
-
r = !(i != null && i.data) || !i.data.length ? G(
|
|
3260
|
+
const b = (e == null ? void 0 : e.i18n) ?? !0;
|
|
3261
|
+
if (Fl && b) {
|
|
3262
|
+
const E = (i == null ? void 0 : i.status) ?? "";
|
|
3263
|
+
r = !(i != null && i.data) || !i.data.length ? G(E) : G(E, ...i.data);
|
|
3264
3264
|
} else
|
|
3265
3265
|
r = (i == null ? void 0 : i.msg) ?? "";
|
|
3266
3266
|
o = i;
|
|
3267
3267
|
}
|
|
3268
3268
|
r || (r = a[t.response.status] || t.message);
|
|
3269
3269
|
} else t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = G("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = G("请求配置异常");
|
|
3270
|
-
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((
|
|
3270
|
+
e != null && e.customErrorMessage && (r = e == null ? void 0 : e.customErrorMessage(r, t)), !(e != null && e.ignoreErrorMessage) && r && ((h = (m = window.DasMessage) == null ? void 0 : m.error) == null || h.call(m, { message: r, showClose: !0 }));
|
|
3271
3271
|
}
|
|
3272
3272
|
return { ...o, code: n, msg: r, error: t };
|
|
3273
3273
|
}, Qt = (t, e) => {
|
|
@@ -3282,7 +3282,7 @@ const Kt = qr(), Mn = Kt.sso ?? !0, Fl = Kt.i18n ?? !0, kn = Kt.noRedireLogin ??
|
|
|
3282
3282
|
}
|
|
3283
3283
|
Mn ? l || (l = await Gn(r)) : (l || (l = to()), l || qn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3284
3284
|
}
|
|
3285
|
-
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => xl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Il), r.onError || (r.onError =
|
|
3285
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => xl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Il), r.onError || (r.onError = Ll), (r.csrf ?? !1) && (r.headers["csrf-token"] = _l.get("csrf-token"));
|
|
3286
3286
|
const s = r.params || {};
|
|
3287
3287
|
if (s.project === void 0) {
|
|
3288
3288
|
let l = 0;
|