@das-fed/upf-utils 6.4.0-dev.151 → 6.4.0-dev.152
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 +142 -140
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +3 -1
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +3 -1
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +3 -1
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +747 -727
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +744 -724
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +651 -653
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +800 -780
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +729 -745
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +966 -946
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +3 -1
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +730 -746
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +3 -1
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +3 -1
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +3 -1
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +723 -703
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +3 -1
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +747 -727
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +56 -54
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +3 -1
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +3 -1
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +3 -1
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +3 -1
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +69 -67
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/index.js +719 -699
- package/create-api-service/index.js.gz +0 -0
- package/package.json +4 -4
|
@@ -6,7 +6,7 @@ import Hn from "dayjs/plugin/utc";
|
|
|
6
6
|
import zn from "dayjs/plugin/timezone";
|
|
7
7
|
import { getProjectInfo as Wn, getInstanceInfo as Gn } from "@das-fed/upf-utils/common-info";
|
|
8
8
|
import { getAccessToken as Jn } from "@das-fed/upf-utils/token-tools";
|
|
9
|
-
import { getConfig as
|
|
9
|
+
import { getConfig as Fr } from "@das-fed/upf-utils/config";
|
|
10
10
|
function Dr(t, e) {
|
|
11
11
|
return function() {
|
|
12
12
|
return t.apply(e, arguments);
|
|
@@ -17,22 +17,22 @@ const { toString: Vn } = Object.prototype, { getPrototypeOf: Bt } = Object, { it
|
|
|
17
17
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
18
18
|
})(/* @__PURE__ */ Object.create(null)), I = (t) => (t = t.toLowerCase(), (e) => He(e) === t), ze = (t) => (e) => typeof e === t, { isArray: ce } = Array, we = ze("undefined");
|
|
19
19
|
function Kn(t) {
|
|
20
|
-
return t !== null && !we(t) && t.constructor !== null && !we(t.constructor) &&
|
|
20
|
+
return t !== null && !we(t) && t.constructor !== null && !we(t.constructor) && $(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
21
21
|
}
|
|
22
22
|
const Br = I("ArrayBuffer");
|
|
23
23
|
function Qn(t) {
|
|
24
24
|
let e;
|
|
25
25
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Br(t.buffer), e;
|
|
26
26
|
}
|
|
27
|
-
const Xn = ze("string"),
|
|
27
|
+
const Xn = ze("string"), $ = ze("function"), Lr = ze("number"), We = (t) => t !== null && typeof t == "object", Zn = (t) => t === !0 || t === !1, _e = (t) => {
|
|
28
28
|
if (He(t) !== "object")
|
|
29
29
|
return !1;
|
|
30
30
|
const e = Bt(t);
|
|
31
31
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Ir in t) && !(je in t);
|
|
32
|
-
}, Yn = I("Date"), eo = I("File"), to = I("Blob"), ro = I("FileList"), no = (t) => We(t) &&
|
|
32
|
+
}, Yn = I("Date"), eo = I("File"), to = I("Blob"), ro = I("FileList"), no = (t) => We(t) && $(t.pipe), oo = (t) => {
|
|
33
33
|
let e;
|
|
34
|
-
return t && (typeof FormData == "function" && t instanceof FormData ||
|
|
35
|
-
e === "object" &&
|
|
34
|
+
return t && (typeof FormData == "function" && t instanceof FormData || $(t.append) && ((e = He(t)) === "formdata" || // detect form-data instance
|
|
35
|
+
e === "object" && $(t.toString) && t.toString() === "[object FormData]"));
|
|
36
36
|
}, ao = I("URLSearchParams"), [io, so, lo, co] = ["ReadableStream", "Request", "Response", "Headers"].map(I), uo = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
37
37
|
function Se(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
38
38
|
if (t === null || typeof t > "u")
|
|
@@ -68,7 +68,7 @@ function Et() {
|
|
|
68
68
|
return e;
|
|
69
69
|
}
|
|
70
70
|
const fo = (t, e, n, { allOwnKeys: r } = {}) => (Se(e, (o, a) => {
|
|
71
|
-
n &&
|
|
71
|
+
n && $(o) ? t[a] = Dr(o, n) : t[a] = o;
|
|
72
72
|
}, { allOwnKeys: r }), t), po = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), yo = (t, e, n, r) => {
|
|
73
73
|
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
74
74
|
value: e.prototype
|
|
@@ -122,10 +122,10 @@ const fo = (t, e, n, { allOwnKeys: r } = {}) => (Se(e, (o, a) => {
|
|
|
122
122
|
}), Object.defineProperties(t, r);
|
|
123
123
|
}, Oo = (t) => {
|
|
124
124
|
kr(t, (e, n) => {
|
|
125
|
-
if (
|
|
125
|
+
if ($(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
126
126
|
return !1;
|
|
127
127
|
const r = t[n];
|
|
128
|
-
if (
|
|
128
|
+
if ($(r)) {
|
|
129
129
|
if (e.enumerable = !1, "writable" in e) {
|
|
130
130
|
e.writable = !1;
|
|
131
131
|
return;
|
|
@@ -145,7 +145,7 @@ const fo = (t, e, n, { allOwnKeys: r } = {}) => (Se(e, (o, a) => {
|
|
|
145
145
|
}, Po = () => {
|
|
146
146
|
}, To = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
147
147
|
function xo(t) {
|
|
148
|
-
return !!(t &&
|
|
148
|
+
return !!(t && $(t.append) && t[Ir] === "FormData" && t[je]);
|
|
149
149
|
}
|
|
150
150
|
const Co = (t) => {
|
|
151
151
|
const e = new Array(10), n = (r, o) => {
|
|
@@ -164,14 +164,14 @@ const Co = (t) => {
|
|
|
164
164
|
return r;
|
|
165
165
|
};
|
|
166
166
|
return n(t, 0);
|
|
167
|
-
}, _o = I("AsyncFunction"), No = (t) => t && (We(t) ||
|
|
167
|
+
}, _o = I("AsyncFunction"), No = (t) => t && (We(t) || $(t)) && $(t.then) && $(t.catch), qr = ((t, e) => t ? setImmediate : e ? ((n, r) => (Q.addEventListener("message", ({ source: o, data: a }) => {
|
|
168
168
|
o === Q && a === n && r.length && r.shift()();
|
|
169
169
|
}, !1), (o) => {
|
|
170
170
|
r.push(o), Q.postMessage(n, "*");
|
|
171
171
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
172
172
|
typeof setImmediate == "function",
|
|
173
|
-
|
|
174
|
-
),
|
|
173
|
+
$(Q.postMessage)
|
|
174
|
+
), $o = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || qr, Fo = (t) => t != null && $(t[je]), f = {
|
|
175
175
|
isArray: ce,
|
|
176
176
|
isArrayBuffer: Br,
|
|
177
177
|
isBuffer: Kn,
|
|
@@ -191,7 +191,7 @@ const Co = (t) => {
|
|
|
191
191
|
isFile: eo,
|
|
192
192
|
isBlob: to,
|
|
193
193
|
isRegExp: Ao,
|
|
194
|
-
isFunction:
|
|
194
|
+
isFunction: $,
|
|
195
195
|
isStream: no,
|
|
196
196
|
isURLSearchParams: ao,
|
|
197
197
|
isTypedArray: vo,
|
|
@@ -227,8 +227,8 @@ const Co = (t) => {
|
|
|
227
227
|
isAsyncFn: _o,
|
|
228
228
|
isThenable: No,
|
|
229
229
|
setImmediate: qr,
|
|
230
|
-
asap:
|
|
231
|
-
isIterable:
|
|
230
|
+
asap: $o,
|
|
231
|
+
isIterable: Fo
|
|
232
232
|
};
|
|
233
233
|
function w(t, e, n, r, o) {
|
|
234
234
|
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);
|
|
@@ -663,7 +663,7 @@ function ta(t, e) {
|
|
|
663
663
|
});
|
|
664
664
|
});
|
|
665
665
|
}
|
|
666
|
-
let
|
|
666
|
+
let F = class {
|
|
667
667
|
constructor(e) {
|
|
668
668
|
e && this.set(e);
|
|
669
669
|
}
|
|
@@ -789,8 +789,8 @@ let $ = class {
|
|
|
789
789
|
return f.isArray(e) ? e.forEach(a) : a(e), this;
|
|
790
790
|
}
|
|
791
791
|
};
|
|
792
|
-
|
|
793
|
-
f.reduceDescriptors(
|
|
792
|
+
F.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
793
|
+
f.reduceDescriptors(F.prototype, ({ value: t }, e) => {
|
|
794
794
|
let n = e[0].toUpperCase() + e.slice(1);
|
|
795
795
|
return {
|
|
796
796
|
get: () => t,
|
|
@@ -799,9 +799,9 @@ f.reduceDescriptors($.prototype, ({ value: t }, e) => {
|
|
|
799
799
|
}
|
|
800
800
|
};
|
|
801
801
|
});
|
|
802
|
-
f.freezeMethods(
|
|
802
|
+
f.freezeMethods(F);
|
|
803
803
|
function rt(t, e) {
|
|
804
|
-
const n = this || Ee, r = e || n, o =
|
|
804
|
+
const n = this || Ee, r = e || n, o = F.from(r.headers);
|
|
805
805
|
let a = r.data;
|
|
806
806
|
return f.forEach(t, function(s) {
|
|
807
807
|
a = s.call(n, a, o.normalize(), e ? e.status : void 0);
|
|
@@ -924,7 +924,7 @@ function Xr(t, e, n) {
|
|
|
924
924
|
let r = !sa(e);
|
|
925
925
|
return t && (r || n == !1) ? la(t, e) : e;
|
|
926
926
|
}
|
|
927
|
-
const er = (t) => t instanceof
|
|
927
|
+
const er = (t) => t instanceof F ? { ...t } : t;
|
|
928
928
|
function Y(t, e) {
|
|
929
929
|
e = e || {};
|
|
930
930
|
const n = {};
|
|
@@ -992,7 +992,7 @@ function Y(t, e) {
|
|
|
992
992
|
const Zr = (t) => {
|
|
993
993
|
const e = Y({}, t);
|
|
994
994
|
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: a, headers: i, auth: s } = e;
|
|
995
|
-
e.headers = i =
|
|
995
|
+
e.headers = i = F.from(i), e.url = Gr(Xr(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), s && i.set(
|
|
996
996
|
"Authorization",
|
|
997
997
|
"Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
|
|
998
998
|
);
|
|
@@ -1014,7 +1014,7 @@ const Zr = (t) => {
|
|
|
1014
1014
|
return new Promise(function(n, r) {
|
|
1015
1015
|
const o = Zr(t);
|
|
1016
1016
|
let a = o.data;
|
|
1017
|
-
const i =
|
|
1017
|
+
const i = F.from(o.headers).normalize();
|
|
1018
1018
|
let { responseType: s, onUploadProgress: u, onDownloadProgress: l } = o, c, p, d, v, y;
|
|
1019
1019
|
function m() {
|
|
1020
1020
|
v && v(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
|
|
@@ -1024,7 +1024,7 @@ const Zr = (t) => {
|
|
|
1024
1024
|
function S() {
|
|
1025
1025
|
if (!h)
|
|
1026
1026
|
return;
|
|
1027
|
-
const g =
|
|
1027
|
+
const g = F.from(
|
|
1028
1028
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1029
1029
|
), A = {
|
|
1030
1030
|
data: !s || s === "text" || s === "json" ? h.responseText : h.response,
|
|
@@ -1260,7 +1260,7 @@ const ga = async (t) => {
|
|
|
1260
1260
|
return !g && m && m(), await new Promise((A, _) => {
|
|
1261
1261
|
Qr(A, _, {
|
|
1262
1262
|
data: T,
|
|
1263
|
-
headers:
|
|
1263
|
+
headers: F.from(E.headers),
|
|
1264
1264
|
status: E.status,
|
|
1265
1265
|
statusText: E.statusText,
|
|
1266
1266
|
config: t,
|
|
@@ -1325,7 +1325,7 @@ function nt(t) {
|
|
|
1325
1325
|
throw new ue(null, t);
|
|
1326
1326
|
}
|
|
1327
1327
|
function or(t) {
|
|
1328
|
-
return nt(t), t.headers =
|
|
1328
|
+
return nt(t), t.headers = F.from(t.headers), t.data = rt.call(
|
|
1329
1329
|
t,
|
|
1330
1330
|
t.transformRequest
|
|
1331
1331
|
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), tn.getAdapter(t.adapter || Ee.adapter)(t).then(function(r) {
|
|
@@ -1333,13 +1333,13 @@ function or(t) {
|
|
|
1333
1333
|
t,
|
|
1334
1334
|
t.transformResponse,
|
|
1335
1335
|
r
|
|
1336
|
-
), r.headers =
|
|
1336
|
+
), r.headers = F.from(r.headers), r;
|
|
1337
1337
|
}, function(r) {
|
|
1338
1338
|
return Kr(r) || (nt(t), r && r.response && (r.response.data = rt.call(
|
|
1339
1339
|
t,
|
|
1340
1340
|
t.transformResponse,
|
|
1341
1341
|
r.response
|
|
1342
|
-
), r.response.headers =
|
|
1342
|
+
), r.response.headers = F.from(r.response.headers))), Promise.reject(r);
|
|
1343
1343
|
});
|
|
1344
1344
|
}
|
|
1345
1345
|
const rn = "1.10.0", Ve = {};
|
|
@@ -1382,10 +1382,10 @@ function Sa(t, e, n) {
|
|
|
1382
1382
|
throw new w("Unknown option " + a, w.ERR_BAD_OPTION);
|
|
1383
1383
|
}
|
|
1384
1384
|
}
|
|
1385
|
-
const
|
|
1385
|
+
const $e = {
|
|
1386
1386
|
assertOptions: Sa,
|
|
1387
1387
|
validators: Ve
|
|
1388
|
-
}, L =
|
|
1388
|
+
}, L = $e.validators;
|
|
1389
1389
|
let X = class {
|
|
1390
1390
|
constructor(e) {
|
|
1391
1391
|
this.defaults = e || {}, this.interceptors = {
|
|
@@ -1421,16 +1421,16 @@ let X = class {
|
|
|
1421
1421
|
_request(e, n) {
|
|
1422
1422
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = Y(this.defaults, n);
|
|
1423
1423
|
const { transitional: r, paramsSerializer: o, headers: a } = n;
|
|
1424
|
-
r !== void 0 &&
|
|
1424
|
+
r !== void 0 && $e.assertOptions(r, {
|
|
1425
1425
|
silentJSONParsing: L.transitional(L.boolean),
|
|
1426
1426
|
forcedJSONParsing: L.transitional(L.boolean),
|
|
1427
1427
|
clarifyTimeoutError: L.transitional(L.boolean)
|
|
1428
1428
|
}, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
|
|
1429
1429
|
serialize: o
|
|
1430
|
-
} :
|
|
1430
|
+
} : $e.assertOptions(o, {
|
|
1431
1431
|
encode: L.function,
|
|
1432
1432
|
serialize: L.function
|
|
1433
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
1433
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), $e.assertOptions(n, {
|
|
1434
1434
|
baseUrl: L.spelling("baseURL"),
|
|
1435
1435
|
withXsrfToken: L.spelling("withXSRFToken")
|
|
1436
1436
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1443,7 +1443,7 @@ let X = class {
|
|
|
1443
1443
|
(y) => {
|
|
1444
1444
|
delete a[y];
|
|
1445
1445
|
}
|
|
1446
|
-
), n.headers =
|
|
1446
|
+
), n.headers = F.concat(i, a);
|
|
1447
1447
|
const s = [];
|
|
1448
1448
|
let u = !0;
|
|
1449
1449
|
this.interceptors.request.forEach(function(m) {
|
|
@@ -1680,7 +1680,7 @@ R.all = function(e) {
|
|
|
1680
1680
|
R.spread = Aa;
|
|
1681
1681
|
R.isAxiosError = Oa;
|
|
1682
1682
|
R.mergeConfig = Y;
|
|
1683
|
-
R.AxiosHeaders =
|
|
1683
|
+
R.AxiosHeaders = F;
|
|
1684
1684
|
R.formToJSON = (t) => Vr(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
1685
1685
|
R.getAdapter = tn.getAdapter;
|
|
1686
1686
|
R.HttpStatusCode = Tt;
|
|
@@ -1731,7 +1731,7 @@ const Ta = {}, xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1731
1731
|
__proto__: null,
|
|
1732
1732
|
default: Ta
|
|
1733
1733
|
}, Symbol.toStringTag, { value: "Module" })), Ca = /* @__PURE__ */ Pa(xa);
|
|
1734
|
-
var Mt = typeof Map == "function" && Map.prototype, ot = Object.getOwnPropertyDescriptor && Mt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ue = Mt && ot && typeof ot.get == "function" ? ot.get : null, sr = Mt && Map.prototype.forEach, kt = typeof Set == "function" && Set.prototype, at = Object.getOwnPropertyDescriptor && kt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Me = kt && at && typeof at.get == "function" ? at.get : null, lr = kt && Set.prototype.forEach, _a = typeof WeakMap == "function" && WeakMap.prototype, he = _a ? WeakMap.prototype.has : null, Na = typeof WeakSet == "function" && WeakSet.prototype, me = Na ? WeakSet.prototype.has : null,
|
|
1734
|
+
var Mt = typeof Map == "function" && Map.prototype, ot = Object.getOwnPropertyDescriptor && Mt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ue = Mt && ot && typeof ot.get == "function" ? ot.get : null, sr = Mt && Map.prototype.forEach, kt = typeof Set == "function" && Set.prototype, at = Object.getOwnPropertyDescriptor && kt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Me = kt && at && typeof at.get == "function" ? at.get : null, lr = kt && Set.prototype.forEach, _a = typeof WeakMap == "function" && WeakMap.prototype, he = _a ? WeakMap.prototype.has : null, Na = typeof WeakSet == "function" && WeakSet.prototype, me = Na ? WeakSet.prototype.has : null, $a = typeof WeakRef == "function" && WeakRef.prototype, cr = $a ? WeakRef.prototype.deref : null, Fa = Boolean.prototype.valueOf, Da = Object.prototype.toString, Ia = Function.prototype.toString, Ba = String.prototype.match, qt = String.prototype.slice, J = String.prototype.replace, La = String.prototype.toUpperCase, ur = String.prototype.toLowerCase, an = RegExp.prototype.test, fr = Array.prototype.concat, k = Array.prototype.join, Ua = Array.prototype.slice, pr = Math.floor, xt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, it = Object.getOwnPropertySymbols, Ct = 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, sn = Object.prototype.propertyIsEnumerable, dr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1735
1735
|
return t.__proto__;
|
|
1736
1736
|
} : null);
|
|
1737
1737
|
function yr(t, e) {
|
|
@@ -1821,7 +1821,7 @@ var _t = Ca, hr = _t.custom, mr = un(hr) ? hr : null, ln = {
|
|
|
1821
1821
|
if (e.length === 0)
|
|
1822
1822
|
return "[]";
|
|
1823
1823
|
var g = Te(e, d);
|
|
1824
|
-
return p && !ri(g) ? "[" +
|
|
1824
|
+
return p && !ri(g) ? "[" + $t(g, p) + "]" : "[ " + k.call(g, ", ") + " ]";
|
|
1825
1825
|
}
|
|
1826
1826
|
if (ja(e)) {
|
|
1827
1827
|
var T = Te(e, d);
|
|
@@ -1856,7 +1856,7 @@ var _t = Ca, hr = _t.custom, mr = un(hr) ? hr : null, ln = {
|
|
|
1856
1856
|
if (Ga(e))
|
|
1857
1857
|
return ye(d(xt.call(e)));
|
|
1858
1858
|
if (Wa(e))
|
|
1859
|
-
return ye(
|
|
1859
|
+
return ye(Fa.call(e));
|
|
1860
1860
|
if (Ha(e))
|
|
1861
1861
|
return ye(d(String(e)));
|
|
1862
1862
|
if (typeof window < "u" && e === window)
|
|
@@ -1865,7 +1865,7 @@ var _t = Ca, hr = _t.custom, mr = un(hr) ? hr : null, ln = {
|
|
|
1865
1865
|
return "{ [object globalThis] }";
|
|
1866
1866
|
if (!qa(e) && !gr(e)) {
|
|
1867
1867
|
var N = Te(e, d), q = dr ? dr(e) === Object.prototype : e instanceof Object || e.constructor === Object, B = e instanceof Object ? "" : "null prototype", z = !q && ge && Object(e) === e && ge in e ? qt.call(V(e), 8, -1) : B ? "Object" : "", Pe = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = Pe + (z || B ? "[" + k.call(fr.call([], z || [], B || []), ": ") + "] " : "");
|
|
1868
|
-
return N.length === 0 ? re + "{}" : p ? re + "{" +
|
|
1868
|
+
return N.length === 0 ? re + "{}" : p ? re + "{" + $t(N, p) + "}" : re + "{ " + k.call(N, ", ") + " }";
|
|
1869
1869
|
}
|
|
1870
1870
|
return String(e);
|
|
1871
1871
|
};
|
|
@@ -2044,7 +2044,7 @@ function st(t) {
|
|
|
2044
2044
|
return t + " { ? }";
|
|
2045
2045
|
}
|
|
2046
2046
|
function vr(t, e, n, r) {
|
|
2047
|
-
var o = r ?
|
|
2047
|
+
var o = r ? $t(n, r) : k.call(n, ", ");
|
|
2048
2048
|
return t + " (" + e + ") {" + o + "}";
|
|
2049
2049
|
}
|
|
2050
2050
|
function ri(t) {
|
|
@@ -2067,7 +2067,7 @@ function ni(t, e) {
|
|
|
2067
2067
|
prev: k.call(Array(e + 1), n)
|
|
2068
2068
|
};
|
|
2069
2069
|
}
|
|
2070
|
-
function
|
|
2070
|
+
function $t(t, e) {
|
|
2071
2071
|
if (t.length === 0)
|
|
2072
2072
|
return "";
|
|
2073
2073
|
var n = `
|
|
@@ -2151,14 +2151,14 @@ var oi = Ke, ai = fe, Qe = function(t, e, n) {
|
|
|
2151
2151
|
return e !== e;
|
|
2152
2152
|
}, Oi = Ai, Ri = function(e) {
|
|
2153
2153
|
return Oi(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
2154
|
-
}, Pi = Object.getOwnPropertyDescriptor,
|
|
2155
|
-
if (
|
|
2154
|
+
}, Pi = Object.getOwnPropertyDescriptor, Fe = Pi;
|
|
2155
|
+
if (Fe)
|
|
2156
2156
|
try {
|
|
2157
|
-
|
|
2157
|
+
Fe([], "length");
|
|
2158
2158
|
} catch {
|
|
2159
|
-
|
|
2159
|
+
Fe = null;
|
|
2160
2160
|
}
|
|
2161
|
-
var yn =
|
|
2161
|
+
var yn = Fe, De = Object.defineProperty || !1;
|
|
2162
2162
|
if (De)
|
|
2163
2163
|
try {
|
|
2164
2164
|
De({}, "a", { value: 1 });
|
|
@@ -2215,7 +2215,7 @@ function mn() {
|
|
|
2215
2215
|
var t = dn;
|
|
2216
2216
|
return ft = t.getPrototypeOf || null, ft;
|
|
2217
2217
|
}
|
|
2218
|
-
var _i = "Function.prototype.bind called on incompatible ", Ni = Object.prototype.toString,
|
|
2218
|
+
var _i = "Function.prototype.bind called on incompatible ", Ni = Object.prototype.toString, $i = Math.max, Fi = "[object Function]", Ar = function(e, n) {
|
|
2219
2219
|
for (var r = [], o = 0; o < e.length; o += 1)
|
|
2220
2220
|
r[o] = e[o];
|
|
2221
2221
|
for (var a = 0; a < n.length; a += 1)
|
|
@@ -2231,7 +2231,7 @@ var _i = "Function.prototype.bind called on incompatible ", Ni = Object.prototyp
|
|
|
2231
2231
|
return n;
|
|
2232
2232
|
}, Bi = function(e) {
|
|
2233
2233
|
var n = this;
|
|
2234
|
-
if (typeof n != "function" || Ni.apply(n) !==
|
|
2234
|
+
if (typeof n != "function" || Ni.apply(n) !== Fi)
|
|
2235
2235
|
throw new TypeError(_i + n);
|
|
2236
2236
|
for (var r = Di(arguments, 1), o, a = function() {
|
|
2237
2237
|
if (this instanceof o) {
|
|
@@ -2245,7 +2245,7 @@ var _i = "Function.prototype.bind called on incompatible ", Ni = Object.prototyp
|
|
|
2245
2245
|
e,
|
|
2246
2246
|
Ar(r, arguments)
|
|
2247
2247
|
);
|
|
2248
|
-
}, i =
|
|
2248
|
+
}, i = $i(0, n.length - r.length), s = [], u = 0; u < i; u++)
|
|
2249
2249
|
s[u] = "$" + u;
|
|
2250
2250
|
if (o = Function("binder", "return function (" + Ii(s, ",") + "){ return binder.apply(this,arguments); }")(a), n.prototype) {
|
|
2251
2251
|
var l = function() {
|
|
@@ -2546,7 +2546,7 @@ var ms = function t(e) {
|
|
|
2546
2546
|
/** @type {const} */
|
|
2547
2547
|
[r]
|
|
2548
2548
|
) : r;
|
|
2549
|
-
}, Rs = Ht, Re = An, Ps = Ke, Ts = fe, _r = Rs("%Map%", !0), xs = Re("Map.prototype.get", !0), Cs = Re("Map.prototype.set", !0), _s = Re("Map.prototype.has", !0), Ns = Re("Map.prototype.delete", !0),
|
|
2549
|
+
}, Rs = Ht, Re = An, Ps = Ke, Ts = fe, _r = Rs("%Map%", !0), xs = Re("Map.prototype.get", !0), Cs = Re("Map.prototype.set", !0), _s = Re("Map.prototype.has", !0), Ns = Re("Map.prototype.delete", !0), $s = Re("Map.prototype.size", !0), On = !!_r && /** @type {Exclude<import('.'), false>} */
|
|
2550
2550
|
function() {
|
|
2551
2551
|
var e, n = {
|
|
2552
2552
|
assert: function(r) {
|
|
@@ -2556,7 +2556,7 @@ function() {
|
|
|
2556
2556
|
delete: function(r) {
|
|
2557
2557
|
if (e) {
|
|
2558
2558
|
var o = Ns(e, r);
|
|
2559
|
-
return
|
|
2559
|
+
return $s(e) === 0 && (e = void 0), o;
|
|
2560
2560
|
}
|
|
2561
2561
|
return !1;
|
|
2562
2562
|
},
|
|
@@ -2572,7 +2572,7 @@ function() {
|
|
|
2572
2572
|
}
|
|
2573
2573
|
};
|
|
2574
2574
|
return n;
|
|
2575
|
-
},
|
|
2575
|
+
}, Fs = Ht, Ze = An, Ds = Ke, xe = On, Is = fe, oe = Fs("%WeakMap%", !0), Bs = Ze("WeakMap.prototype.get", !0), Ls = Ze("WeakMap.prototype.set", !0), Us = Ze("WeakMap.prototype.has", !0), Ms = Ze("WeakMap.prototype.delete", !0), ks = oe ? (
|
|
2576
2576
|
/** @type {Exclude<import('.'), false>} */
|
|
2577
2577
|
function() {
|
|
2578
2578
|
var e, n, r = {
|
|
@@ -2937,7 +2937,7 @@ function() {
|
|
|
2937
2937
|
}
|
|
2938
2938
|
var v = i.join(r.delimiter), y = r.addQueryPrefix === !0 ? "?" : "";
|
|
2939
2939
|
return r.charsetSentinel && (r.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), v.length > 0 ? y + v : "";
|
|
2940
|
-
}, ee = Pn,
|
|
2940
|
+
}, ee = Pn, Ft = Object.prototype.hasOwnProperty, $r = Array.isArray, O = {
|
|
2941
2941
|
allowDots: !1,
|
|
2942
2942
|
allowEmptyArrays: !1,
|
|
2943
2943
|
allowPrototypes: !1,
|
|
@@ -2989,13 +2989,13 @@ function() {
|
|
|
2989
2989
|
_n(
|
|
2990
2990
|
c.slice(d + 1),
|
|
2991
2991
|
n,
|
|
2992
|
-
|
|
2992
|
+
$r(r[v]) ? r[v].length : 0
|
|
2993
2993
|
),
|
|
2994
2994
|
function(h) {
|
|
2995
2995
|
return n.decoder(h, O.decoder, l, "value");
|
|
2996
2996
|
}
|
|
2997
|
-
)), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = yl(String(y))), c.indexOf("[]=") > -1 && (y =
|
|
2998
|
-
var m =
|
|
2997
|
+
)), y && n.interpretNumericEntities && l === "iso-8859-1" && (y = yl(String(y))), c.indexOf("[]=") > -1 && (y = $r(y) ? [y] : y);
|
|
2998
|
+
var m = Ft.call(r, v);
|
|
2999
2999
|
m && n.duplicates === "combine" ? r[v] = ee.combine(r[v], y) : (!m || n.duplicates === "last") && (r[v] = y);
|
|
3000
3000
|
}
|
|
3001
3001
|
return r;
|
|
@@ -3021,12 +3021,12 @@ function() {
|
|
|
3021
3021
|
if (e) {
|
|
3022
3022
|
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 = [];
|
|
3023
3023
|
if (l) {
|
|
3024
|
-
if (!r.plainObjects &&
|
|
3024
|
+
if (!r.plainObjects && Ft.call(Object.prototype, l) && !r.allowPrototypes)
|
|
3025
3025
|
return;
|
|
3026
3026
|
c.push(l);
|
|
3027
3027
|
}
|
|
3028
3028
|
for (var p = 0; r.depth > 0 && (u = s.exec(a)) !== null && p < r.depth; ) {
|
|
3029
|
-
if (p += 1, !r.plainObjects &&
|
|
3029
|
+
if (p += 1, !r.plainObjects && Ft.call(Object.prototype, u[1].slice(1, -1)) && !r.allowPrototypes)
|
|
3030
3030
|
return;
|
|
3031
3031
|
c.push(u[1]);
|
|
3032
3032
|
}
|
|
@@ -3179,18 +3179,20 @@ const Cl = {
|
|
|
3179
3179
|
In(Cl);
|
|
3180
3180
|
It.extend(Hn);
|
|
3181
3181
|
It.extend(zn);
|
|
3182
|
-
const Wt =
|
|
3183
|
-
|
|
3182
|
+
const Wt = Fr(), Nn = Wt.sso ?? !0, _l = Wt.i18n ?? !0, $n = Wt.noRedireLogin ?? !1, Fn = () => {
|
|
3183
|
+
if ($n) return;
|
|
3184
|
+
const t = "/login";
|
|
3185
|
+
location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1, location.replace(`/#${t}`));
|
|
3184
3186
|
}, Nl = async (t) => {
|
|
3185
3187
|
var n;
|
|
3186
3188
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
3187
|
-
},
|
|
3189
|
+
}, $l = async (t, e) => {
|
|
3188
3190
|
var u, l, c, p, d;
|
|
3189
3191
|
let n = ((u = t.response) == null ? void 0 : u.status) || 500, r = (l = t.response) == null ? void 0 : l.message, o = {};
|
|
3190
3192
|
const a = { 400: G("参数校验错误"), 404: G("接口地址未找到"), 500: G("服务器内部错误") };
|
|
3191
3193
|
let i = ((c = t == null ? void 0 : t.response) == null ? void 0 : c.data) || {};
|
|
3192
|
-
if (!(Mn("code") || "") &&
|
|
3193
|
-
Nn ? kn({ ...jn, redirect_uri: qn }) :
|
|
3194
|
+
if (!(Mn("code") || "") && !$n && (n === 401 || (i == null ? void 0 : i.code) === 401))
|
|
3195
|
+
Nn ? kn({ ...jn, redirect_uri: qn }) : Fn(), o = i;
|
|
3194
3196
|
else {
|
|
3195
3197
|
if (t.response) {
|
|
3196
3198
|
if (i instanceof Blob && (i = await new Promise((v) => {
|
|
@@ -3220,16 +3222,16 @@ const Wt = $r(), Nn = Wt.sso ?? !0, _l = Wt.i18n ?? !0, Fn = Wt.noRedireLogin ??
|
|
|
3220
3222
|
}, ic = (t, e) => {
|
|
3221
3223
|
const n = R.create();
|
|
3222
3224
|
return Ln(n, async (r) => {
|
|
3223
|
-
const o =
|
|
3225
|
+
const o = Fr();
|
|
3224
3226
|
if (r.headers || (r.headers = {}), !(r != null && r.public)) {
|
|
3225
3227
|
let l = "";
|
|
3226
3228
|
if (o.token && (l = o.token), !l) {
|
|
3227
3229
|
const c = new URL(location.href).searchParams;
|
|
3228
3230
|
l = c.get("token") || c.get("accessToken") || c.get("accesstoken") || "";
|
|
3229
3231
|
}
|
|
3230
|
-
Nn ? l || (l = await Un(r)) : (l || (l = Jn()), l ||
|
|
3232
|
+
Nn ? l || (l = await Un(r)) : (l || (l = Jn()), l || Fn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3231
3233
|
}
|
|
3232
|
-
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Pl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Nl), r.onError || (r.onError =
|
|
3234
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Pl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Nl), r.onError || (r.onError = $l), (r.csrf ?? !1) && (r.headers["csrf-token"] = xl.get("csrf-token"));
|
|
3233
3235
|
const s = r.params || {};
|
|
3234
3236
|
if (s.project === void 0) {
|
|
3235
3237
|
let l = 0;
|
|
Binary file
|