@das-fed/utils 6.4.0-dev.55.8 → 6.4.0-dev.56
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/i18n/index.js +1 -1
- package/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.js +128 -128
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +94 -94
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +94 -94
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +93 -93
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +94 -94
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +92 -92
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +94 -94
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +125 -125
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +94 -94
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +165 -165
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +95 -95
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +92 -92
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +94 -94
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +94 -94
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +94 -94
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +96 -96
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +94 -94
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +94 -94
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +95 -95
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +95 -95
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +94 -94
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +94 -94
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +94 -94
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +93 -93
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/getInfoFromUrl/index.js.gz +0 -0
- package/common-info/index.d.ts +7 -1
- package/common-info/index.js +84 -51
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-info/type.d.ts +175 -120
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/get-url-params/index.js.gz +0 -0
- package/create-api-service/i18n/index.js +2 -2
- package/create-api-service/index.js +93 -93
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +35 -35
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js.gz +0 -0
- package/curring-http/type.d.ts +87 -87
- package/directive/auth/index.js.gz +0 -0
- package/dom-check-in/index.js +2 -2
- package/esm-map.json +3 -1
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/nextTiken/index.js.gz +0 -0
- package/package.json +4 -4
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/index.js.gz +0 -0
- package/use-low-code/index.js +3 -3
- package/use-low-code/index.js.gz +0 -0
- package/use-low-code/style.css +1 -1
- package/webSocket-service/index.js.gz +0 -0
- package/webSocket-service/type.d.ts +28 -28
|
@@ -14,7 +14,7 @@ function Mr(t, e) {
|
|
|
14
14
|
return t.apply(e, arguments);
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
const { toString: Jn } = Object.prototype, { getPrototypeOf:
|
|
17
|
+
const { toString: Jn } = Object.prototype, { getPrototypeOf: Ut } = Object, Ze = /* @__PURE__ */ ((t) => (e) => {
|
|
18
18
|
const n = Jn.call(e);
|
|
19
19
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
20
20
|
})(/* @__PURE__ */ Object.create(null)), V = (t) => (t = t.toLowerCase(), (e) => Ze(e) === t), et = (t) => (e) => typeof e === t, { isArray: Ee } = Array, Fe = et("undefined");
|
|
@@ -29,7 +29,7 @@ function Qn(t) {
|
|
|
29
29
|
const Xn = et("string"), W = et("function"), qr = et("number"), tt = (t) => t !== null && typeof t == "object", Yn = (t) => t === !0 || t === !1, je = (t) => {
|
|
30
30
|
if (Ze(t) !== "object")
|
|
31
31
|
return !1;
|
|
32
|
-
const e =
|
|
32
|
+
const e = Ut(t);
|
|
33
33
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
34
34
|
}, Zn = V("Date"), eo = V("File"), to = V("Blob"), ro = V("FileList"), no = (t) => tt(t) && W(t.pipe), oo = (t) => {
|
|
35
35
|
let e;
|
|
@@ -82,7 +82,7 @@ const fo = (t, e, n, { allOwnKeys: r } = {}) => (De(e, (o, a) => {
|
|
|
82
82
|
do {
|
|
83
83
|
for (o = Object.getOwnPropertyNames(t), a = o.length; a-- > 0; )
|
|
84
84
|
i = o[a], (!r || r(i, t, e)) && !s[i] && (e[i] = t[i], s[i] = !0);
|
|
85
|
-
t = n !== !1 &&
|
|
85
|
+
t = n !== !1 && Ut(t);
|
|
86
86
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
87
87
|
return e;
|
|
88
88
|
}, mo = (t, e, n) => {
|
|
@@ -98,7 +98,7 @@ const fo = (t, e, n, { allOwnKeys: r } = {}) => (De(e, (o, a) => {
|
|
|
98
98
|
for (; e-- > 0; )
|
|
99
99
|
n[e] = t[e];
|
|
100
100
|
return n;
|
|
101
|
-
}, vo = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" &&
|
|
101
|
+
}, vo = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Ut(Uint8Array)), bo = (t, e) => {
|
|
102
102
|
const r = (t && t[Symbol.iterator]).call(t);
|
|
103
103
|
let o;
|
|
104
104
|
for (; (o = r.next()) && !o.done; ) {
|
|
@@ -183,7 +183,7 @@ const No = (t) => {
|
|
|
183
183
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
184
184
|
typeof setImmediate == "function",
|
|
185
185
|
W(ce.postMessage)
|
|
186
|
-
),
|
|
186
|
+
), Io = typeof queueMicrotask < "u" ? queueMicrotask.bind(ce) : typeof process < "u" && process.nextTick || Gr, f = {
|
|
187
187
|
isArray: Ee,
|
|
188
188
|
isArrayBuffer: jr,
|
|
189
189
|
isBuffer: Vn,
|
|
@@ -241,7 +241,7 @@ const No = (t) => {
|
|
|
241
241
|
isAsyncFn: Fo,
|
|
242
242
|
isThenable: Do,
|
|
243
243
|
setImmediate: Gr,
|
|
244
|
-
asap:
|
|
244
|
+
asap: Io
|
|
245
245
|
};
|
|
246
246
|
function w(t, e, n, r, o) {
|
|
247
247
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
@@ -293,7 +293,7 @@ w.from = (t, e, n, r, o, a) => {
|
|
|
293
293
|
return u !== Error.prototype;
|
|
294
294
|
}, (s) => s !== "isAxiosError"), w.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
|
|
295
295
|
};
|
|
296
|
-
const
|
|
296
|
+
const _o = null;
|
|
297
297
|
function Ot(t) {
|
|
298
298
|
return f.isPlainObject(t) || f.isArray(t);
|
|
299
299
|
}
|
|
@@ -386,10 +386,10 @@ function or(t) {
|
|
|
386
386
|
return e[r];
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function kt(t, e) {
|
|
390
390
|
this._pairs = [], t && rt(t, this, e);
|
|
391
391
|
}
|
|
392
|
-
const Xr =
|
|
392
|
+
const Xr = kt.prototype;
|
|
393
393
|
Xr.append = function(e, n) {
|
|
394
394
|
this._pairs.push([e, n]);
|
|
395
395
|
};
|
|
@@ -409,7 +409,7 @@ function Yr(t, e, n) {
|
|
|
409
409
|
return t;
|
|
410
410
|
const r = n && n.encode || Lo, o = n && n.serialize;
|
|
411
411
|
let a;
|
|
412
|
-
if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new
|
|
412
|
+
if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new kt(e, n).toString(r), a) {
|
|
413
413
|
const i = t.indexOf("#");
|
|
414
414
|
i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
|
|
415
415
|
}
|
|
@@ -473,7 +473,7 @@ const Zr = {
|
|
|
473
473
|
silentJSONParsing: !0,
|
|
474
474
|
forcedJSONParsing: !0,
|
|
475
475
|
clarifyTimeoutError: !1
|
|
476
|
-
}, Uo = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
476
|
+
}, Uo = typeof URLSearchParams < "u" ? URLSearchParams : kt, ko = typeof FormData < "u" ? FormData : null, Mo = typeof Blob < "u" ? Blob : null, jo = {
|
|
477
477
|
isBrowser: !0,
|
|
478
478
|
classes: {
|
|
479
479
|
URLSearchParams: Uo,
|
|
@@ -481,10 +481,10 @@ const Zr = {
|
|
|
481
481
|
Blob: Mo
|
|
482
482
|
},
|
|
483
483
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
484
|
-
},
|
|
485
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ho =
|
|
484
|
+
}, Mt = typeof window < "u" && typeof document < "u", Rt = typeof navigator == "object" && navigator || void 0, qo = Mt && (!Rt || ["ReactNative", "NativeScript", "NS"].indexOf(Rt.product) < 0), zo = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
485
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ho = Mt && window.location.href || "http://localhost", Wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
486
486
|
__proto__: null,
|
|
487
|
-
hasBrowserEnv:
|
|
487
|
+
hasBrowserEnv: Mt,
|
|
488
488
|
hasStandardBrowserEnv: qo,
|
|
489
489
|
hasStandardBrowserWebWorkerEnv: zo,
|
|
490
490
|
navigator: Rt,
|
|
@@ -537,7 +537,7 @@ function Vo(t, e, n) {
|
|
|
537
537
|
}
|
|
538
538
|
return (n || JSON.stringify)(t);
|
|
539
539
|
}
|
|
540
|
-
const
|
|
540
|
+
const Ie = {
|
|
541
541
|
transitional: Zr,
|
|
542
542
|
adapter: ["xhr", "http", "fetch"],
|
|
543
543
|
transformRequest: [function(e, n) {
|
|
@@ -566,7 +566,7 @@ const _e = {
|
|
|
566
566
|
return a || o ? (n.setContentType("application/json", !1), Vo(e)) : e;
|
|
567
567
|
}],
|
|
568
568
|
transformResponse: [function(e) {
|
|
569
|
-
const n = this.transitional ||
|
|
569
|
+
const n = this.transitional || Ie.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
570
570
|
if (f.isResponse(e) || f.isReadableStream(e))
|
|
571
571
|
return e;
|
|
572
572
|
if (e && f.isString(e) && (r && !this.responseType || o)) {
|
|
@@ -604,7 +604,7 @@ const _e = {
|
|
|
604
604
|
}
|
|
605
605
|
};
|
|
606
606
|
f.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
607
|
-
|
|
607
|
+
Ie.headers[t] = {};
|
|
608
608
|
});
|
|
609
609
|
const Qo = f.toObjectSet([
|
|
610
610
|
"age",
|
|
@@ -800,7 +800,7 @@ f.reduceDescriptors(H.prototype, ({ value: t }, e) => {
|
|
|
800
800
|
});
|
|
801
801
|
f.freezeMethods(H);
|
|
802
802
|
function ct(t, e) {
|
|
803
|
-
const n = this ||
|
|
803
|
+
const n = this || Ie, r = e || n, o = H.from(r.headers);
|
|
804
804
|
let a = r.data;
|
|
805
805
|
return f.forEach(t, function(s) {
|
|
806
806
|
a = s.call(n, a, o.normalize(), e ? e.status : void 0);
|
|
@@ -1302,7 +1302,7 @@ const ga = async (t) => {
|
|
|
1302
1302
|
) : w.from(O, O && O.code, t, y);
|
|
1303
1303
|
}
|
|
1304
1304
|
}), Tt = {
|
|
1305
|
-
http:
|
|
1305
|
+
http: _o,
|
|
1306
1306
|
xhr: ua,
|
|
1307
1307
|
fetch: ba
|
|
1308
1308
|
};
|
|
@@ -1354,7 +1354,7 @@ function dr(t) {
|
|
|
1354
1354
|
return ut(t), t.headers = H.from(t.headers), t.data = ct.call(
|
|
1355
1355
|
t,
|
|
1356
1356
|
t.transformRequest
|
|
1357
|
-
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), ln.getAdapter(t.adapter ||
|
|
1357
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), ln.getAdapter(t.adapter || Ie.adapter)(t).then(function(r) {
|
|
1358
1358
|
return ut(t), r.data = ct.call(
|
|
1359
1359
|
t,
|
|
1360
1360
|
t.transformResponse,
|
|
@@ -1368,14 +1368,14 @@ function dr(t) {
|
|
|
1368
1368
|
), r.response.headers = H.from(r.response.headers))), Promise.reject(r);
|
|
1369
1369
|
});
|
|
1370
1370
|
}
|
|
1371
|
-
const cn = "1.7.7",
|
|
1371
|
+
const cn = "1.7.7", jt = {};
|
|
1372
1372
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1373
|
-
|
|
1373
|
+
jt[t] = function(r) {
|
|
1374
1374
|
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1375
1375
|
};
|
|
1376
1376
|
});
|
|
1377
1377
|
const yr = {};
|
|
1378
|
-
|
|
1378
|
+
jt.transitional = function(e, n, r) {
|
|
1379
1379
|
function o(a, i) {
|
|
1380
1380
|
return "[Axios v" + cn + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
|
|
1381
1381
|
}
|
|
@@ -1407,7 +1407,7 @@ function Sa(t, e, n) {
|
|
|
1407
1407
|
}
|
|
1408
1408
|
const xt = {
|
|
1409
1409
|
assertOptions: Sa,
|
|
1410
|
-
validators:
|
|
1410
|
+
validators: jt
|
|
1411
1411
|
}, ne = xt.validators;
|
|
1412
1412
|
class ue {
|
|
1413
1413
|
constructor(e) {
|
|
@@ -1530,7 +1530,7 @@ f.forEach(["post", "put", "patch"], function(e) {
|
|
|
1530
1530
|
}
|
|
1531
1531
|
ue.prototype[e] = n(), ue.prototype[e + "Form"] = n(!0);
|
|
1532
1532
|
});
|
|
1533
|
-
class
|
|
1533
|
+
class qt {
|
|
1534
1534
|
constructor(e) {
|
|
1535
1535
|
if (typeof e != "function")
|
|
1536
1536
|
throw new TypeError("executor must be a function.");
|
|
@@ -1596,7 +1596,7 @@ class zt {
|
|
|
1596
1596
|
static source() {
|
|
1597
1597
|
let e;
|
|
1598
1598
|
return {
|
|
1599
|
-
token: new
|
|
1599
|
+
token: new qt(function(o) {
|
|
1600
1600
|
e = o;
|
|
1601
1601
|
}),
|
|
1602
1602
|
cancel: e
|
|
@@ -1685,26 +1685,26 @@ function un(t) {
|
|
|
1685
1685
|
return un(de(t, o));
|
|
1686
1686
|
}, n;
|
|
1687
1687
|
}
|
|
1688
|
-
const
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1688
|
+
const I = un(Ie);
|
|
1689
|
+
I.Axios = ue;
|
|
1690
|
+
I.CanceledError = Ae;
|
|
1691
|
+
I.CancelToken = qt;
|
|
1692
|
+
I.isCancel = tn;
|
|
1693
|
+
I.VERSION = cn;
|
|
1694
|
+
I.toFormData = rt;
|
|
1695
|
+
I.AxiosError = w;
|
|
1696
|
+
I.Cancel = I.CanceledError;
|
|
1697
|
+
I.all = function(e) {
|
|
1698
1698
|
return Promise.all(e);
|
|
1699
1699
|
};
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1700
|
+
I.spread = Ea;
|
|
1701
|
+
I.isAxiosError = Aa;
|
|
1702
|
+
I.mergeConfig = de;
|
|
1703
|
+
I.AxiosHeaders = H;
|
|
1704
|
+
I.formToJSON = (t) => en(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
1705
|
+
I.getAdapter = ln.getAdapter;
|
|
1706
|
+
I.HttpStatusCode = Ct;
|
|
1707
|
+
I.default = I;
|
|
1708
1708
|
var hr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1709
1709
|
function Oa(t) {
|
|
1710
1710
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -1728,7 +1728,7 @@ function Ra(t) {
|
|
|
1728
1728
|
});
|
|
1729
1729
|
}), n;
|
|
1730
1730
|
}
|
|
1731
|
-
var Pa = Error, Ta = EvalError, xa = RangeError, Ca = ReferenceError, fn = SyntaxError,
|
|
1731
|
+
var Pa = Error, Ta = EvalError, xa = RangeError, Ca = ReferenceError, fn = SyntaxError, _e = TypeError, Na = URIError, Fa = function() {
|
|
1732
1732
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
1733
1733
|
return !1;
|
|
1734
1734
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -1751,13 +1751,13 @@ var Pa = Error, Ta = EvalError, xa = RangeError, Ca = ReferenceError, fn = Synta
|
|
|
1751
1751
|
return !1;
|
|
1752
1752
|
}
|
|
1753
1753
|
return !0;
|
|
1754
|
-
}, mr = typeof Symbol < "u" && Symbol, Da = Fa,
|
|
1754
|
+
}, mr = typeof Symbol < "u" && Symbol, Da = Fa, Ia = function() {
|
|
1755
1755
|
return typeof mr != "function" || typeof Symbol != "function" || typeof mr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Da();
|
|
1756
1756
|
}, ft = {
|
|
1757
1757
|
__proto__: null,
|
|
1758
1758
|
foo: {}
|
|
1759
|
-
},
|
|
1760
|
-
return { __proto__: ft }.foo === ft.foo && !(ft instanceof
|
|
1759
|
+
}, _a = Object, $a = function() {
|
|
1760
|
+
return { __proto__: ft }.foo === ft.foo && !(ft instanceof _a);
|
|
1761
1761
|
}, Ba = "Function.prototype.bind called on incompatible ", La = Object.prototype.toString, Ua = Math.max, ka = "[object Function]", gr = function(e, n) {
|
|
1762
1762
|
for (var r = [], o = 0; o < e.length; o += 1)
|
|
1763
1763
|
r[o] = e[o];
|
|
@@ -1796,7 +1796,7 @@ var Pa = Error, Ta = EvalError, xa = RangeError, Ca = ReferenceError, fn = Synta
|
|
|
1796
1796
|
l.prototype = n.prototype, o.prototype = new l(), l.prototype = null;
|
|
1797
1797
|
}
|
|
1798
1798
|
return o;
|
|
1799
|
-
}, za = qa,
|
|
1799
|
+
}, za = qa, zt = Function.prototype.bind || za, Ha = Function.prototype.call, Wa = Object.prototype.hasOwnProperty, Ka = zt, Ga = Ka.call(Ha, Wa), E, Ja = Pa, Va = Ta, Qa = xa, Xa = Ca, be = fn, ve = _e, Ya = Na, pn = Function, pt = function(t) {
|
|
1800
1800
|
try {
|
|
1801
1801
|
return pn('"use strict"; return (' + t + ").constructor;")();
|
|
1802
1802
|
} catch {
|
|
@@ -1820,7 +1820,7 @@ var dt = function() {
|
|
|
1820
1820
|
return dt;
|
|
1821
1821
|
}
|
|
1822
1822
|
}
|
|
1823
|
-
}() : dt, he =
|
|
1823
|
+
}() : dt, he = Ia(), ei = $a(), $ = Object.getPrototypeOf || (ei ? function(t) {
|
|
1824
1824
|
return t.__proto__;
|
|
1825
1825
|
} : null), ge = {}, ti = typeof Uint8Array > "u" || !$ ? E : $(Uint8Array), pe = {
|
|
1826
1826
|
__proto__: null,
|
|
@@ -1968,7 +1968,7 @@ var ni = function t(e) {
|
|
|
1968
1968
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1969
1969
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1970
1970
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1971
|
-
}, $e =
|
|
1971
|
+
}, $e = zt, Je = Ga, oi = $e.call(Function.call, Array.prototype.concat), ai = $e.call(Function.apply, Array.prototype.splice), br = $e.call(Function.call, String.prototype.replace), Ve = $e.call(Function.call, String.prototype.slice), ii = $e.call(Function.call, RegExp.prototype.exec), si = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, li = /\\(\\)?/g, ci = function(e) {
|
|
1972
1972
|
var n = Ve(e, 0, 1), r = Ve(e, -1);
|
|
1973
1973
|
if (n === "%" && r !== "%")
|
|
1974
1974
|
throw new be("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -2022,7 +2022,7 @@ var ni = function t(e) {
|
|
|
2022
2022
|
}
|
|
2023
2023
|
return s;
|
|
2024
2024
|
}, dn = { exports: {} }, yt, wr;
|
|
2025
|
-
function
|
|
2025
|
+
function Ht() {
|
|
2026
2026
|
if (wr) return yt;
|
|
2027
2027
|
wr = 1;
|
|
2028
2028
|
var t = Oe, e = t("%Object.defineProperty%", !0) || !1;
|
|
@@ -2041,7 +2041,7 @@ if (ze)
|
|
|
2041
2041
|
} catch {
|
|
2042
2042
|
ze = null;
|
|
2043
2043
|
}
|
|
2044
|
-
var yn = ze, Sr =
|
|
2044
|
+
var yn = ze, Sr = Ht(), pi = fn, me = _e, Er = yn, di = function(e, n, r) {
|
|
2045
2045
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
2046
2046
|
throw new me("`obj` must be an object or a function`");
|
|
2047
2047
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -2066,7 +2066,7 @@ var yn = ze, Sr = Wt(), pi = fn, me = Ie, Er = yn, di = function(e, n, r) {
|
|
|
2066
2066
|
e[n] = r;
|
|
2067
2067
|
else
|
|
2068
2068
|
throw new pi("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
2069
|
-
}, Nt =
|
|
2069
|
+
}, Nt = Ht(), hn = function() {
|
|
2070
2070
|
return !!Nt;
|
|
2071
2071
|
};
|
|
2072
2072
|
hn.hasArrayLengthDefineBug = function() {
|
|
@@ -2078,7 +2078,7 @@ hn.hasArrayLengthDefineBug = function() {
|
|
|
2078
2078
|
return !0;
|
|
2079
2079
|
}
|
|
2080
2080
|
};
|
|
2081
|
-
var yi = hn, hi = Oe, Ar = di, mi = yi(), Or = yn, Rr =
|
|
2081
|
+
var yi = hn, hi = Oe, Ar = di, mi = yi(), Or = yn, Rr = _e, gi = hi("%Math.floor%"), vi = function(e, n) {
|
|
2082
2082
|
if (typeof e != "function")
|
|
2083
2083
|
throw new Rr("`fn` is not a function");
|
|
2084
2084
|
if (typeof n != "number" || n < 0 || n > 4294967295 || gi(n) !== n)
|
|
@@ -2103,7 +2103,7 @@ var yi = hn, hi = Oe, Ar = di, mi = yi(), Or = yn, Rr = Ie, gi = hi("%Math.floor
|
|
|
2103
2103
|
)), e;
|
|
2104
2104
|
};
|
|
2105
2105
|
(function(t) {
|
|
2106
|
-
var e =
|
|
2106
|
+
var e = zt, n = Oe, r = vi, o = _e, a = n("%Function.prototype.apply%"), i = n("%Function.prototype.call%"), s = n("%Reflect.apply%", !0) || e.call(i, a), u = Ht(), l = n("%Math.max%");
|
|
2107
2107
|
t.exports = function(d) {
|
|
2108
2108
|
if (typeof d != "function")
|
|
2109
2109
|
throw new o("a function is required");
|
|
@@ -2127,23 +2127,23 @@ const Ei = {}, Ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2127
2127
|
__proto__: null,
|
|
2128
2128
|
default: Ei
|
|
2129
2129
|
}, Symbol.toStringTag, { value: "Module" })), Oi = /* @__PURE__ */ Ra(Ai);
|
|
2130
|
-
var
|
|
2130
|
+
var Wt = typeof Map == "function" && Map.prototype, ht = Object.getOwnPropertyDescriptor && Wt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Qe = Wt && ht && typeof ht.get == "function" ? ht.get : null, Pr = Wt && Map.prototype.forEach, Kt = typeof Set == "function" && Set.prototype, mt = Object.getOwnPropertyDescriptor && Kt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Xe = Kt && mt && typeof mt.get == "function" ? mt.get : null, Tr = Kt && Set.prototype.forEach, Ri = typeof WeakMap == "function" && WeakMap.prototype, xe = Ri ? WeakMap.prototype.has : null, Pi = typeof WeakSet == "function" && WeakSet.prototype, Ce = Pi ? WeakSet.prototype.has : null, Ti = typeof WeakRef == "function" && WeakRef.prototype, xr = Ti ? WeakRef.prototype.deref : null, xi = Boolean.prototype.valueOf, Ci = Object.prototype.toString, Ni = Function.prototype.toString, Fi = String.prototype.match, Gt = String.prototype.slice, ae = String.prototype.replace, Di = String.prototype.toUpperCase, Cr = String.prototype.toLowerCase, vn = RegExp.prototype.test, Nr = Array.prototype.concat, Z = Array.prototype.join, Ii = Array.prototype.slice, Fr = Math.floor, Ft = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, gt = Object.getOwnPropertySymbols, Dt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, we = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === we || !0) ? Symbol.toStringTag : null, bn = Object.prototype.propertyIsEnumerable, Dr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
2131
2131
|
return t.__proto__;
|
|
2132
2132
|
} : null);
|
|
2133
|
-
function
|
|
2133
|
+
function Ir(t, e) {
|
|
2134
2134
|
if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || vn.call(/e/, e))
|
|
2135
2135
|
return e;
|
|
2136
2136
|
var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
2137
2137
|
if (typeof t == "number") {
|
|
2138
2138
|
var r = t < 0 ? -Fr(-t) : Fr(t);
|
|
2139
2139
|
if (r !== t) {
|
|
2140
|
-
var o = String(r), a =
|
|
2140
|
+
var o = String(r), a = Gt.call(e, o.length + 1);
|
|
2141
2141
|
return ae.call(o, n, "$&_") + "." + ae.call(ae.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
2142
2142
|
}
|
|
2143
2143
|
}
|
|
2144
2144
|
return ae.call(e, n, "$&_");
|
|
2145
2145
|
}
|
|
2146
|
-
var
|
|
2146
|
+
var It = Oi, _r = It.custom, $r = Sn(_r) ? _r : null, _i = function t(e, n, r, o) {
|
|
2147
2147
|
var a = n || {};
|
|
2148
2148
|
if (oe(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
|
|
2149
2149
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -2169,22 +2169,22 @@ var _t = Oi, Ir = _t.custom, $r = Sn(Ir) ? Ir : null, Ii = function t(e, n, r, o
|
|
|
2169
2169
|
if (e === 0)
|
|
2170
2170
|
return 1 / 0 / e > 0 ? "0" : "-0";
|
|
2171
2171
|
var u = String(e);
|
|
2172
|
-
return s ?
|
|
2172
|
+
return s ? Ir(e, u) : u;
|
|
2173
2173
|
}
|
|
2174
2174
|
if (typeof e == "bigint") {
|
|
2175
2175
|
var l = String(e) + "n";
|
|
2176
|
-
return s ?
|
|
2176
|
+
return s ? Ir(e, l) : l;
|
|
2177
2177
|
}
|
|
2178
2178
|
var c = typeof a.depth > "u" ? 5 : a.depth;
|
|
2179
2179
|
if (typeof r > "u" && (r = 0), r >= c && c > 0 && typeof e == "object")
|
|
2180
|
-
return
|
|
2180
|
+
return _t(e) ? "[Array]" : "[Object]";
|
|
2181
2181
|
var p = Yi(a, r);
|
|
2182
2182
|
if (typeof o > "u")
|
|
2183
2183
|
o = [];
|
|
2184
2184
|
else if (En(o, e) >= 0)
|
|
2185
2185
|
return "[Circular]";
|
|
2186
2186
|
function d(P, F, b) {
|
|
2187
|
-
if (F && (o =
|
|
2187
|
+
if (F && (o = Ii.call(o), o.push(F)), b) {
|
|
2188
2188
|
var k = {
|
|
2189
2189
|
depth: a.depth
|
|
2190
2190
|
};
|
|
@@ -2205,7 +2205,7 @@ var _t = Oi, Ir = _t.custom, $r = Sn(Ir) ? Ir : null, Ii = function t(e, n, r, o
|
|
|
2205
2205
|
h += " " + O[R].name + "=" + wn($i(O[R].value), "double", a);
|
|
2206
2206
|
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + Cr.call(String(e.nodeName)) + ">", h;
|
|
2207
2207
|
}
|
|
2208
|
-
if (
|
|
2208
|
+
if (_t(e)) {
|
|
2209
2209
|
if (e.length === 0)
|
|
2210
2210
|
return "[]";
|
|
2211
2211
|
var v = Le(e, d);
|
|
@@ -2216,8 +2216,8 @@ var _t = Oi, Ir = _t.custom, $r = Sn(Ir) ? Ir : null, Ii = function t(e, n, r, o
|
|
|
2216
2216
|
return !("cause" in Error.prototype) && "cause" in e && !bn.call(e, "cause") ? "{ [" + String(e) + "] " + Z.call(Nr.call("[cause]: " + d(e.cause), D), ", ") + " }" : D.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + Z.call(D, ", ") + " }";
|
|
2217
2217
|
}
|
|
2218
2218
|
if (typeof e == "object" && i) {
|
|
2219
|
-
if ($r && typeof e[$r] == "function" &&
|
|
2220
|
-
return
|
|
2219
|
+
if ($r && typeof e[$r] == "function" && It)
|
|
2220
|
+
return It(e, { depth: c - r });
|
|
2221
2221
|
if (i !== "symbol" && typeof e.inspect == "function")
|
|
2222
2222
|
return e.inspect();
|
|
2223
2223
|
}
|
|
@@ -2252,7 +2252,7 @@ var _t = Oi, Ir = _t.custom, $r = Sn(Ir) ? Ir : null, Ii = function t(e, n, r, o
|
|
|
2252
2252
|
if (typeof globalThis < "u" && e === globalThis || typeof hr < "u" && e === hr)
|
|
2253
2253
|
return "{ [object globalThis] }";
|
|
2254
2254
|
if (!Bi(e) && !Br(e)) {
|
|
2255
|
-
var L = Le(e, d), K = Dr ? Dr(e) === Object.prototype : e instanceof Object || e.constructor === Object, J = e instanceof Object ? "" : "null prototype", S = !K && U && Object(e) === e && U in e ?
|
|
2255
|
+
var L = Le(e, d), K = Dr ? Dr(e) === Object.prototype : e instanceof Object || e.constructor === Object, J = e instanceof Object ? "" : "null prototype", S = !K && U && Object(e) === e && U in e ? Gt.call(ie(e), 8, -1) : J ? "Object" : "", A = K || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", x = A + (S || J ? "[" + Z.call(Nr.call([], S || [], J || []), ": ") + "] " : "");
|
|
2256
2256
|
return L.length === 0 ? x + "{}" : p ? x + "{" + $t(L, p) + "}" : x + "{ " + Z.call(L, ", ") + " }";
|
|
2257
2257
|
}
|
|
2258
2258
|
return String(e);
|
|
@@ -2264,7 +2264,7 @@ function wn(t, e, n) {
|
|
|
2264
2264
|
function $i(t) {
|
|
2265
2265
|
return ae.call(String(t), /"/g, """);
|
|
2266
2266
|
}
|
|
2267
|
-
function
|
|
2267
|
+
function _t(t) {
|
|
2268
2268
|
return ie(t) === "[object Array]" && (!U || !(typeof t == "object" && U in t));
|
|
2269
2269
|
}
|
|
2270
2270
|
function Bi(t) {
|
|
@@ -2405,7 +2405,7 @@ function Vi(t) {
|
|
|
2405
2405
|
function An(t, e) {
|
|
2406
2406
|
if (t.length > e.maxStringLength) {
|
|
2407
2407
|
var n = t.length - e.maxStringLength, r = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
2408
|
-
return An(
|
|
2408
|
+
return An(Gt.call(t, 0, e.maxStringLength), e) + r;
|
|
2409
2409
|
}
|
|
2410
2410
|
var o = ae.call(ae.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Qi);
|
|
2411
2411
|
return wn(o, "single", e);
|
|
@@ -2459,7 +2459,7 @@ function $t(t, e) {
|
|
|
2459
2459
|
` + e.prev;
|
|
2460
2460
|
}
|
|
2461
2461
|
function Le(t, e) {
|
|
2462
|
-
var n =
|
|
2462
|
+
var n = _t(t), r = [];
|
|
2463
2463
|
if (n) {
|
|
2464
2464
|
r.length = t.length;
|
|
2465
2465
|
for (var o = 0; o < t.length; o++)
|
|
@@ -2478,16 +2478,16 @@ function Le(t, e) {
|
|
|
2478
2478
|
bn.call(t, a[l]) && r.push("[" + e(a[l]) + "]: " + e(t[a[l]], t));
|
|
2479
2479
|
return r;
|
|
2480
2480
|
}
|
|
2481
|
-
var On = Oe, Re = Si, Zi =
|
|
2481
|
+
var On = Oe, Re = Si, Zi = _i, es = _e, Ue = On("%WeakMap%", !0), ke = On("%Map%", !0), ts = Re("WeakMap.prototype.get", !0), rs = Re("WeakMap.prototype.set", !0), ns = Re("WeakMap.prototype.has", !0), os = Re("Map.prototype.get", !0), as = Re("Map.prototype.set", !0), is = Re("Map.prototype.has", !0), Jt = function(t, e) {
|
|
2482
2482
|
for (var n = t, r; (r = n.next) !== null; n = r)
|
|
2483
2483
|
if (r.key === e)
|
|
2484
2484
|
return n.next = r.next, r.next = /** @type {NonNullable<typeof list.next>} */
|
|
2485
2485
|
t.next, t.next = r, r;
|
|
2486
2486
|
}, ss = function(t, e) {
|
|
2487
|
-
var n =
|
|
2487
|
+
var n = Jt(t, e);
|
|
2488
2488
|
return n && n.value;
|
|
2489
2489
|
}, ls = function(t, e, n) {
|
|
2490
|
-
var r =
|
|
2490
|
+
var r = Jt(t, e);
|
|
2491
2491
|
r ? r.value = n : t.next = /** @type {import('.').ListNode<typeof value>} */
|
|
2492
2492
|
{
|
|
2493
2493
|
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
@@ -2496,7 +2496,7 @@ var On = Oe, Re = Si, Zi = Ii, es = Ie, Ue = On("%WeakMap%", !0), ke = On("%Map%
|
|
|
2496
2496
|
value: n
|
|
2497
2497
|
};
|
|
2498
2498
|
}, cs = function(t, e) {
|
|
2499
|
-
return !!
|
|
2499
|
+
return !!Jt(t, e);
|
|
2500
2500
|
}, us = function() {
|
|
2501
2501
|
var e, n, r, o = {
|
|
2502
2502
|
assert: function(a) {
|
|
@@ -2532,7 +2532,7 @@ var On = Oe, Re = Si, Zi = Ii, es = Ie, Ue = On("%WeakMap%", !0), ke = On("%Map%
|
|
|
2532
2532
|
}, fs = String.prototype.replace, ps = /%20/g, bt = {
|
|
2533
2533
|
RFC1738: "RFC1738",
|
|
2534
2534
|
RFC3986: "RFC3986"
|
|
2535
|
-
},
|
|
2535
|
+
}, Vt = {
|
|
2536
2536
|
default: bt.RFC3986,
|
|
2537
2537
|
formatters: {
|
|
2538
2538
|
RFC1738: function(t) {
|
|
@@ -2544,7 +2544,7 @@ var On = Oe, Re = Si, Zi = Ii, es = Ie, Ue = On("%WeakMap%", !0), ke = On("%Map%
|
|
|
2544
2544
|
},
|
|
2545
2545
|
RFC1738: bt.RFC1738,
|
|
2546
2546
|
RFC3986: bt.RFC3986
|
|
2547
|
-
}, ds =
|
|
2547
|
+
}, ds = Vt, wt = Object.prototype.hasOwnProperty, le = Array.isArray, X = function() {
|
|
2548
2548
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2549
2549
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2550
2550
|
return t;
|
|
@@ -2662,7 +2662,7 @@ var On = Oe, Re = Si, Zi = Ii, es = Ie, Ue = On("%WeakMap%", !0), ke = On("%Map%
|
|
|
2662
2662
|
isRegExp: ws,
|
|
2663
2663
|
maybeMap: As,
|
|
2664
2664
|
merge: hs
|
|
2665
|
-
}, Tn = us, He = Pn, Ne =
|
|
2665
|
+
}, Tn = us, He = Pn, Ne = Vt, Os = Object.prototype.hasOwnProperty, xn = {
|
|
2666
2666
|
brackets: function(e) {
|
|
2667
2667
|
return e + "[]";
|
|
2668
2668
|
},
|
|
@@ -2675,7 +2675,7 @@ var On = Oe, Re = Si, Zi = Ii, es = Ie, Ue = On("%WeakMap%", !0), ke = On("%Map%
|
|
|
2675
2675
|
}
|
|
2676
2676
|
}, Y = Array.isArray, Rs = Array.prototype.push, Cn = function(t, e) {
|
|
2677
2677
|
Rs.apply(t, Y(e) ? e : [e]);
|
|
2678
|
-
}, Ps = Date.prototype.toISOString, Ur = Ne.default,
|
|
2678
|
+
}, Ps = Date.prototype.toISOString, Ur = Ne.default, _ = {
|
|
2679
2679
|
addQueryPrefix: !1,
|
|
2680
2680
|
allowDots: !1,
|
|
2681
2681
|
allowEmptyArrays: !1,
|
|
@@ -2712,13 +2712,13 @@ var On = Oe, Re = Si, Zi = Ii, es = Ie, Ue = On("%WeakMap%", !0), ke = On("%Map%
|
|
|
2712
2712
|
return q instanceof Date ? g(q) : q;
|
|
2713
2713
|
})), v === null) {
|
|
2714
2714
|
if (i)
|
|
2715
|
-
return l && !h ? l(n,
|
|
2715
|
+
return l && !h ? l(n, _.encoder, O, "key", y) : n;
|
|
2716
2716
|
v = "";
|
|
2717
2717
|
}
|
|
2718
2718
|
if (Ts(v) || He.isBuffer(v)) {
|
|
2719
2719
|
if (l) {
|
|
2720
|
-
var K = h ? n : l(n,
|
|
2721
|
-
return [m(K) + "=" + m(l(v,
|
|
2720
|
+
var K = h ? n : l(n, _.encoder, O, "key", y);
|
|
2721
|
+
return [m(K) + "=" + m(l(v, _.encoder, O, "value", y))];
|
|
2722
2722
|
}
|
|
2723
2723
|
return [m(n) + "=" + m(String(v))];
|
|
2724
2724
|
}
|
|
@@ -2768,14 +2768,14 @@ var On = Oe, Re = Si, Zi = Ii, es = Ie, Ue = On("%WeakMap%", !0), ke = On("%Map%
|
|
|
2768
2768
|
return J;
|
|
2769
2769
|
}, Cs = function(e) {
|
|
2770
2770
|
if (!e)
|
|
2771
|
-
return
|
|
2771
|
+
return _;
|
|
2772
2772
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
2773
2773
|
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
2774
2774
|
if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
|
|
2775
2775
|
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
2776
2776
|
if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
|
|
2777
2777
|
throw new TypeError("Encoder has to be a function.");
|
|
2778
|
-
var n = e.charset ||
|
|
2778
|
+
var n = e.charset || _.charset;
|
|
2779
2779
|
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
2780
2780
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
2781
2781
|
var r = Ne.default;
|
|
@@ -2784,32 +2784,32 @@ var On = Oe, Re = Si, Zi = Ii, es = Ie, Ue = On("%WeakMap%", !0), ke = On("%Map%
|
|
|
2784
2784
|
throw new TypeError("Unknown format option provided.");
|
|
2785
2785
|
r = e.format;
|
|
2786
2786
|
}
|
|
2787
|
-
var o = Ne.formatters[r], a =
|
|
2787
|
+
var o = Ne.formatters[r], a = _.filter;
|
|
2788
2788
|
(typeof e.filter == "function" || Y(e.filter)) && (a = e.filter);
|
|
2789
2789
|
var i;
|
|
2790
|
-
if (e.arrayFormat in xn ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i =
|
|
2790
|
+
if (e.arrayFormat in xn ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = _.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
2791
2791
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
2792
|
-
var s = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 :
|
|
2792
|
+
var s = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : _.allowDots : !!e.allowDots;
|
|
2793
2793
|
return {
|
|
2794
|
-
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix :
|
|
2794
|
+
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : _.addQueryPrefix,
|
|
2795
2795
|
allowDots: s,
|
|
2796
|
-
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays :
|
|
2796
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : _.allowEmptyArrays,
|
|
2797
2797
|
arrayFormat: i,
|
|
2798
2798
|
charset: n,
|
|
2799
|
-
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel :
|
|
2799
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : _.charsetSentinel,
|
|
2800
2800
|
commaRoundTrip: e.commaRoundTrip,
|
|
2801
|
-
delimiter: typeof e.delimiter > "u" ?
|
|
2802
|
-
encode: typeof e.encode == "boolean" ? e.encode :
|
|
2803
|
-
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys :
|
|
2804
|
-
encoder: typeof e.encoder == "function" ? e.encoder :
|
|
2805
|
-
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly :
|
|
2801
|
+
delimiter: typeof e.delimiter > "u" ? _.delimiter : e.delimiter,
|
|
2802
|
+
encode: typeof e.encode == "boolean" ? e.encode : _.encode,
|
|
2803
|
+
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : _.encodeDotInKeys,
|
|
2804
|
+
encoder: typeof e.encoder == "function" ? e.encoder : _.encoder,
|
|
2805
|
+
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : _.encodeValuesOnly,
|
|
2806
2806
|
filter: a,
|
|
2807
2807
|
format: r,
|
|
2808
2808
|
formatter: o,
|
|
2809
|
-
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate :
|
|
2810
|
-
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls :
|
|
2809
|
+
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : _.serializeDate,
|
|
2810
|
+
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : _.skipNulls,
|
|
2811
2811
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
2812
|
-
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling :
|
|
2812
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : _.strictNullHandling
|
|
2813
2813
|
};
|
|
2814
2814
|
}, Ns = function(t, e) {
|
|
2815
2815
|
var n = t, r = Cs(e), o, a;
|
|
@@ -2871,13 +2871,13 @@ var On = Oe, Re = Si, Zi = Ii, es = Ie, Ue = On("%WeakMap%", !0), ke = On("%Map%
|
|
|
2871
2871
|
});
|
|
2872
2872
|
}, Nn = function(t, e) {
|
|
2873
2873
|
return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
|
|
2874
|
-
},
|
|
2874
|
+
}, Is = "utf8=%26%2310003%3B", _s = "utf8=%E2%9C%93", $s = function(e, n) {
|
|
2875
2875
|
var r = { __proto__: null }, o = n.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
2876
2876
|
o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
2877
2877
|
var a = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, i = o.split(n.delimiter, a), s = -1, u, l = n.charset;
|
|
2878
2878
|
if (n.charsetSentinel)
|
|
2879
2879
|
for (u = 0; u < i.length; ++u)
|
|
2880
|
-
i[u].indexOf("utf8=") === 0 && (i[u] ===
|
|
2880
|
+
i[u].indexOf("utf8=") === 0 && (i[u] === _s ? l = "utf-8" : i[u] === Is && (l = "iso-8859-1"), s = u, u = i.length);
|
|
2881
2881
|
for (u = 0; u < i.length; ++u)
|
|
2882
2882
|
if (u !== s) {
|
|
2883
2883
|
var c = i[u], p = c.indexOf("]="), d = p === -1 ? c.indexOf("=") : p + 1, g, y;
|
|
@@ -2971,7 +2971,7 @@ var On = Oe, Re = Si, Zi = Ii, es = Ie, Ue = On("%WeakMap%", !0), ke = On("%Map%
|
|
|
2971
2971
|
o = Se.merge(o, u, n);
|
|
2972
2972
|
}
|
|
2973
2973
|
return n.allowSparse === !0 ? o : Se.compact(o);
|
|
2974
|
-
}, Ms = Ns, js = ks, qs =
|
|
2974
|
+
}, Ms = Ns, js = ks, qs = Vt, zs = {
|
|
2975
2975
|
formats: qs,
|
|
2976
2976
|
parse: js,
|
|
2977
2977
|
stringify: Ms
|
|
@@ -3050,33 +3050,33 @@ function Lt(t, e) {
|
|
|
3050
3050
|
var Ks = Lt(Ws, { path: "/" });
|
|
3051
3051
|
const Gs = {
|
|
3052
3052
|
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
|
|
3053
|
-
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api
|
|
3053
|
+
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
|
|
3054
3054
|
服务器内部错误: { "zh-CN": "服务器内部错误", en: "Internal Server Error", _appCode: "framework" },
|
|
3055
3055
|
解析错误: { "zh-CN": "解析错误", en: "Parsing Error", _appCode: "framework" },
|
|
3056
3056
|
请求配置异常: { "zh-CN": "请求配置异常", en: "Request Configuration Error", _appCode: "framework" },
|
|
3057
3057
|
"网络异常,请检查您的网络情况": {
|
|
3058
3058
|
"zh-CN": "网络异常,请检查您的网络情况",
|
|
3059
|
-
en: "Network
|
|
3059
|
+
en: "Network error, please check your network status",
|
|
3060
3060
|
_appCode: "framework"
|
|
3061
3061
|
}
|
|
3062
3062
|
};
|
|
3063
3063
|
Bn(Gs);
|
|
3064
3064
|
Ye.extend(zn);
|
|
3065
3065
|
Ye.extend(Hn);
|
|
3066
|
-
const
|
|
3066
|
+
const Qt = We(), Fn = Qt.sso ?? !0, Js = Qt.i18n ?? !0, Dn = Qt.noRedireLogin ?? !1, In = () => {
|
|
3067
3067
|
if (Dn) return;
|
|
3068
3068
|
const t = "/login";
|
|
3069
3069
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
3070
|
-
},
|
|
3070
|
+
}, Vs = async (t) => {
|
|
3071
3071
|
var n;
|
|
3072
3072
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3073
|
-
},
|
|
3073
|
+
}, Qs = async (t, e) => {
|
|
3074
3074
|
var u, l, c, p, d;
|
|
3075
3075
|
let n = ((u = t.response) == null ? void 0 : u.status) || 500, r = (l = t.response) == null ? void 0 : l.message, o = {};
|
|
3076
3076
|
const a = { 400: C("参数校验错误"), 404: C("接口地址未找到"), 500: C("服务器内部错误") };
|
|
3077
3077
|
let i = ((c = t == null ? void 0 : t.response) == null ? void 0 : c.data) || {};
|
|
3078
3078
|
if (!(kn("code") || "") && !Dn && (n === 401 || (i == null ? void 0 : i.code) === 401))
|
|
3079
|
-
|
|
3079
|
+
Fn ? Mn({ ...jn, redirect_uri: qn }) : In(), o = i;
|
|
3080
3080
|
else {
|
|
3081
3081
|
if (t.response) {
|
|
3082
3082
|
if (i instanceof Blob && (i = await new Promise((g) => {
|
|
@@ -3089,7 +3089,7 @@ const Fn = We(), Ut = Fn.sso ?? !0, Dn = Fn.noRedireLogin ?? !1, _n = () => {
|
|
|
3089
3089
|
}
|
|
3090
3090
|
};
|
|
3091
3091
|
})), i.code) {
|
|
3092
|
-
if (n = i.code,
|
|
3092
|
+
if (n = i.code, Js) {
|
|
3093
3093
|
const g = (i == null ? void 0 : i.status) ?? "";
|
|
3094
3094
|
r = !(i != null && i.data) || !i.data.length ? C(g) : C(g, ...i.data);
|
|
3095
3095
|
} else
|
|
@@ -3102,7 +3102,7 @@ const Fn = We(), Ut = Fn.sso ?? !0, Dn = Fn.noRedireLogin ?? !1, _n = () => {
|
|
|
3102
3102
|
}
|
|
3103
3103
|
return { ...o, code: n, msg: r, error: t };
|
|
3104
3104
|
}, ee = (t, e) => {
|
|
3105
|
-
const n =
|
|
3105
|
+
const n = I.create();
|
|
3106
3106
|
return Ln(n, async (r) => {
|
|
3107
3107
|
const o = We();
|
|
3108
3108
|
if (r.headers || (r.headers = {}), !(r != null && r.public)) {
|
|
@@ -3111,9 +3111,9 @@ const Fn = We(), Ut = Fn.sso ?? !0, Dn = Fn.noRedireLogin ?? !1, _n = () => {
|
|
|
3111
3111
|
const c = new URL(location.href).searchParams;
|
|
3112
3112
|
l = c.get("token") || c.get("accessToken") || c.get("accesstoken") || "";
|
|
3113
3113
|
}
|
|
3114
|
-
|
|
3114
|
+
Fn ? l || (l = await Un(r)) : (l || (l = Gn()), l || In()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3115
3115
|
}
|
|
3116
|
-
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Hs.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess =
|
|
3116
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Hs.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Vs), r.onError || (r.onError = Qs), (r.csrf ?? !1) && (r.headers["csrf-token"] = Ks.get("csrf-token"));
|
|
3117
3117
|
const s = r.params || {};
|
|
3118
3118
|
if (s.project === void 0) {
|
|
3119
3119
|
let l = 0;
|
|
@@ -3130,8 +3130,8 @@ const Fn = We(), Ut = Fn.sso ?? !0, Dn = Fn.noRedireLogin ?? !1, _n = () => {
|
|
|
3130
3130
|
ee(`/api/iot/${te}`);
|
|
3131
3131
|
ee(`/api/iot-device/thingmodel/${te}`), ee(`/api/iot-device/devicemanage/${te}`), ee(`/api/iot-device/product/${te}`), ee(`/api/iot-device/product-storage/${te}`);
|
|
3132
3132
|
ee(`/api/device-relation/deviceproject/${te}`), ee(`/api/device-relation/devicerule/${te}`), ee(`/api/device-relation/project/${te}`);
|
|
3133
|
-
const Xt = ee(`/api/oss/minio/${te}`),
|
|
3134
|
-
let
|
|
3133
|
+
const Xt = ee(`/api/oss/minio/${te}`), Xs = ee(`/api/progress/accessor/${te}`);
|
|
3134
|
+
let Ys = (t = 21) => {
|
|
3135
3135
|
let e = "", n = crypto.getRandomValues(new Uint8Array(t));
|
|
3136
3136
|
for (; t--; ) {
|
|
3137
3137
|
let r = n[t] & 63;
|
|
@@ -3139,12 +3139,12 @@ let Xs = (t = 21) => {
|
|
|
3139
3139
|
}
|
|
3140
3140
|
return e;
|
|
3141
3141
|
};
|
|
3142
|
-
const
|
|
3142
|
+
const Zs = Xt.get("token"), el = Xt.post("put-object", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), tl = Xt.post("upload-objects", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), rl = Xs.get("progress"), ml = () => {
|
|
3143
3143
|
let t = G(!1), e = G(""), n = G(0), r = G("normal"), o = G(!1), a, i = G(""), s = G(""), u = G(""), l = G(""), c = G(!1), p = G(""), d = "", g = G(""), y;
|
|
3144
3144
|
const m = () => {
|
|
3145
3145
|
s.value = "", u.value = "", l.value = "", c.value = !1, p.value = "";
|
|
3146
3146
|
}, h = async () => {
|
|
3147
|
-
const [S, A] = await
|
|
3147
|
+
const [S, A] = await Zs().run();
|
|
3148
3148
|
return S ? { stauts: !1 } : { status: !0, data: A };
|
|
3149
3149
|
}, O = (S) => new Promise((A, x) => {
|
|
3150
3150
|
const F = [];
|
|
@@ -3161,7 +3161,7 @@ const Ys = Xt.get("token"), Zs = Xt.post("put-object", (t) => (t.headers || (t.h
|
|
|
3161
3161
|
const k = await h();
|
|
3162
3162
|
if (!k.status) return;
|
|
3163
3163
|
let M = k.data, j = null, { autoContentType: se, bucketName: q, importFileName: ye } = x;
|
|
3164
|
-
const ot = b ?
|
|
3164
|
+
const ot = b ? tl : el;
|
|
3165
3165
|
if (b) {
|
|
3166
3166
|
let re = [];
|
|
3167
3167
|
await A.forEach(async (Be) => {
|
|
@@ -3184,9 +3184,9 @@ const Ys = Xt.get("token"), Zs = Xt.post("put-object", (t) => (t.headers || (t.h
|
|
|
3184
3184
|
autoContentType: se
|
|
3185
3185
|
};
|
|
3186
3186
|
}
|
|
3187
|
-
const [
|
|
3188
|
-
if (
|
|
3189
|
-
const Q = await
|
|
3187
|
+
const [_n, $n] = await ot(j).run();
|
|
3188
|
+
if (_n) return t.value = !1;
|
|
3189
|
+
const Q = await ol($n.data);
|
|
3190
3190
|
if (!b && (Q == null ? void 0 : Q.statusCode) != 200 || b && (Q != null && Q.some((re) => (re == null ? void 0 : re.statusCode) != 200))) {
|
|
3191
3191
|
t.value = !1, (Yt = window.DasMessage) == null || Yt.error({
|
|
3192
3192
|
message: (Q == null ? void 0 : Q.errorMsg) || C("上传失败"),
|
|
@@ -3233,7 +3233,7 @@ const Ys = Xt.get("token"), Zs = Xt.post("put-object", (t) => (t.headers || (t.h
|
|
|
3233
3233
|
clearTimeout(a), a = null, t.value = !1;
|
|
3234
3234
|
}, L = async (S, A = "export", x, P = "") => {
|
|
3235
3235
|
var M, j, se;
|
|
3236
|
-
const [F, b] = await
|
|
3236
|
+
const [F, b] = await rl("", {
|
|
3237
3237
|
url: `progress/${S}`
|
|
3238
3238
|
}).run();
|
|
3239
3239
|
if (F) {
|
|
@@ -3301,14 +3301,14 @@ const Ys = Xt.get("token"), Zs = Xt.post("put-object", (t) => (t.headers || (t.h
|
|
|
3301
3301
|
fileAction: v,
|
|
3302
3302
|
generateUniqueName: (S) => {
|
|
3303
3303
|
const A = S == null ? void 0 : S.match(/(.*?)(\.[^.]*$|$)/), x = A.length ? A[2] : "";
|
|
3304
|
-
return `${A.length ? A[1] : S}${
|
|
3304
|
+
return `${A.length ? A[1] : S}${Ys()}${x}`;
|
|
3305
3305
|
},
|
|
3306
3306
|
downloadFile: kr,
|
|
3307
3307
|
resetStataus: m,
|
|
3308
3308
|
checkProgress: T,
|
|
3309
3309
|
fileHandleType: g
|
|
3310
3310
|
};
|
|
3311
|
-
},
|
|
3311
|
+
}, nl = (t) => {
|
|
3312
3312
|
let e = t == null ? void 0 : t.toLocaleLowerCase();
|
|
3313
3313
|
return {
|
|
3314
3314
|
excel: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -3341,7 +3341,7 @@ const Ys = Xt.get("token"), Zs = Xt.post("put-object", (t) => (t.headers || (t.h
|
|
|
3341
3341
|
const r = new XMLHttpRequest();
|
|
3342
3342
|
r.open("get", t), r.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), r.responseType = "blob", r.onload = function(o) {
|
|
3343
3343
|
const a = new Blob([this.response], {
|
|
3344
|
-
type:
|
|
3344
|
+
type: nl(n)
|
|
3345
3345
|
}), i = URL.createObjectURL(a);
|
|
3346
3346
|
if (window.navigator.msSaveOrOpenBlob)
|
|
3347
3347
|
navigator.msSaveBlob(a, e);
|
|
@@ -3350,7 +3350,7 @@ const Ys = Xt.get("token"), Zs = Xt.post("put-object", (t) => (t.headers || (t.h
|
|
|
3350
3350
|
s.href = i, s.download = e, s.click(), window.URL.revokeObjectURL(i);
|
|
3351
3351
|
}
|
|
3352
3352
|
}, r.send();
|
|
3353
|
-
},
|
|
3353
|
+
}, ol = (t) => new Promise((e, n) => {
|
|
3354
3354
|
var r = new FileReader();
|
|
3355
3355
|
r.onload = function(o) {
|
|
3356
3356
|
let a = "";
|
|
@@ -3359,5 +3359,5 @@ const Ys = Xt.get("token"), Zs = Xt.post("put-object", (t) => (t.headers || (t.h
|
|
|
3359
3359
|
});
|
|
3360
3360
|
export {
|
|
3361
3361
|
kr as downloadFile,
|
|
3362
|
-
|
|
3362
|
+
ml as useFile
|
|
3363
3363
|
};
|