@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
|
Binary file
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { setI18nRule as
|
|
1
|
+
import { setI18nRule as Ln, currentLang as Un, t as G } from "@das-fed/upf-web/packages/i18n/index";
|
|
2
2
|
import { curringHttp as Mn } from "@das-fed/upf-utils/curring-http";
|
|
3
3
|
import { getToken as kn, getQuery as qn, login as jn, real_uri as Hn, getTokenParams as zn } from "@das-fed/upf-utils/create-api-service/sso";
|
|
4
|
-
import
|
|
4
|
+
import Lt from "dayjs";
|
|
5
5
|
import Wn from "dayjs/plugin/utc";
|
|
6
6
|
import Gn from "dayjs/plugin/timezone";
|
|
7
7
|
import { getProjectInfo as Jn, getInstanceInfo as Vn } from "@das-fed/upf-utils/common-info";
|
|
8
8
|
import { getAccessToken as Kn } from "@das-fed/upf-utils/token-tools";
|
|
9
9
|
import { getConfig as Ir } from "@das-fed/upf-utils/config";
|
|
10
|
-
function
|
|
10
|
+
function Br(t, e) {
|
|
11
11
|
return function() {
|
|
12
12
|
return t.apply(e, arguments);
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
const { toString: Qn } = Object.prototype, { getPrototypeOf: Ut } = Object, { iterator: je, toStringTag:
|
|
15
|
+
const { toString: Qn } = Object.prototype, { getPrototypeOf: Ut } = Object, { iterator: je, toStringTag: Lr } = Symbol, He = /* @__PURE__ */ ((t) => (e) => {
|
|
16
16
|
const n = Qn.call(e);
|
|
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");
|
|
@@ -28,7 +28,7 @@ const Yn = ze("string"), $ = ze("function"), Mr = ze("number"), We = (t) => t !=
|
|
|
28
28
|
if (He(t) !== "object")
|
|
29
29
|
return !1;
|
|
30
30
|
const e = Ut(t);
|
|
31
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(
|
|
31
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Lr in t) && !(je in t);
|
|
32
32
|
}, to = I("Date"), ro = I("File"), no = I("Blob"), oo = I("FileList"), ao = (t) => We(t) && $(t.pipe), io = (t) => {
|
|
33
33
|
let e;
|
|
34
34
|
return t && (typeof FormData == "function" && t instanceof FormData || $(t.append) && ((e = He(t)) === "formdata" || // detect form-data instance
|
|
@@ -68,7 +68,7 @@ function Ot() {
|
|
|
68
68
|
return e;
|
|
69
69
|
}
|
|
70
70
|
const yo = (t, e, n, { allOwnKeys: r } = {}) => (Se(e, (o, a) => {
|
|
71
|
-
n && $(o) ? t[a] =
|
|
71
|
+
n && $(o) ? t[a] = Br(o, n) : t[a] = o;
|
|
72
72
|
}, { allOwnKeys: r }), t), ho = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), mo = (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
|
|
@@ -145,7 +145,7 @@ const yo = (t, e, n, { allOwnKeys: r } = {}) => (Se(e, (o, a) => {
|
|
|
145
145
|
}, xo = () => {
|
|
146
146
|
}, Co = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
147
147
|
function _o(t) {
|
|
148
|
-
return !!(t && $(t.append) && t[
|
|
148
|
+
return !!(t && $(t.append) && t[Lr] === "FormData" && t[je]);
|
|
149
149
|
}
|
|
150
150
|
const No = (t) => {
|
|
151
151
|
const e = new Array(10), n = (r, o) => {
|
|
@@ -280,7 +280,7 @@ w.from = (t, e, n, r, o, a) => {
|
|
|
280
280
|
return u !== Error.prototype;
|
|
281
281
|
}, (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;
|
|
282
282
|
};
|
|
283
|
-
const
|
|
283
|
+
const Bo = null;
|
|
284
284
|
function Rt(t) {
|
|
285
285
|
return f.isPlainObject(t) || f.isArray(t);
|
|
286
286
|
}
|
|
@@ -292,7 +292,7 @@ function Qt(t, e, n) {
|
|
|
292
292
|
return o = Gr(o), !n && a ? "[" + o + "]" : o;
|
|
293
293
|
}).join(n ? "." : "") : e;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function Lo(t) {
|
|
296
296
|
return f.isArray(t) && !t.some(Rt);
|
|
297
297
|
}
|
|
298
298
|
const Uo = f.toFlatObject(f, {}, null, function(e) {
|
|
@@ -326,7 +326,7 @@ function Ge(t, e, n) {
|
|
|
326
326
|
if (y && !h && typeof y == "object") {
|
|
327
327
|
if (f.endsWith(m, "{}"))
|
|
328
328
|
m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
|
|
329
|
-
else if (f.isArray(y) &&
|
|
329
|
+
else if (f.isArray(y) && Lo(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (S = f.toArray(y)))
|
|
330
330
|
return m = Gr(m), S.forEach(function(g, T) {
|
|
331
331
|
!(f.isUndefined(g) || g === null) && e.append(
|
|
332
332
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -858,7 +858,7 @@ function ia(t, e) {
|
|
|
858
858
|
}, r - p)));
|
|
859
859
|
}, () => o && i(o)];
|
|
860
860
|
}
|
|
861
|
-
const
|
|
861
|
+
const Be = (t, e, n = 3) => {
|
|
862
862
|
let r = 0;
|
|
863
863
|
const o = aa(50, 250);
|
|
864
864
|
return ia((a) => {
|
|
@@ -1057,7 +1057,7 @@ const en = (t) => {
|
|
|
1057
1057
|
)), h = null;
|
|
1058
1058
|
}, a === void 0 && i.setContentType(null), "setRequestHeader" in h && f.forEach(i.toJSON(), function(T, A) {
|
|
1059
1059
|
h.setRequestHeader(A, T);
|
|
1060
|
-
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] =
|
|
1060
|
+
}), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] = Be(l, !0), h.addEventListener("progress", d)), u && h.upload && ([p, v] = Be(u), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (g) => {
|
|
1061
1061
|
h && (r(!g || g.type ? new ue(null, t, h) : g), h.abort(), h = null);
|
|
1062
1062
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
1063
1063
|
const E = oa(o.url);
|
|
@@ -1163,12 +1163,12 @@ const en = (t) => {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
}).headers.has("Content-Type");
|
|
1165
1165
|
return t && !e;
|
|
1166
|
-
}), or = 64 * 1024, Tt = tn && rn(() => f.isReadableStream(new Response("").body)),
|
|
1166
|
+
}), or = 64 * 1024, Tt = tn && rn(() => f.isReadableStream(new Response("").body)), Le = {
|
|
1167
1167
|
stream: Tt && ((t) => t.body)
|
|
1168
1168
|
};
|
|
1169
1169
|
Je && ((t) => {
|
|
1170
1170
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
1171
|
-
!
|
|
1171
|
+
!Le[e] && (Le[e] = f.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
|
|
1172
1172
|
throw new w(`Response type '${e}' is not supported`, w.ERR_NOT_SUPPORT, r);
|
|
1173
1173
|
});
|
|
1174
1174
|
});
|
|
@@ -1221,7 +1221,7 @@ const wa = async (t) => {
|
|
|
1221
1221
|
if (f.isFormData(r) && (_ = A.headers.get("content-type")) && c.setContentType(_), A.body) {
|
|
1222
1222
|
const [N, q] = er(
|
|
1223
1223
|
h,
|
|
1224
|
-
|
|
1224
|
+
Be(tr(u))
|
|
1225
1225
|
);
|
|
1226
1226
|
r = nr(A.body, or, N, q);
|
|
1227
1227
|
}
|
|
@@ -1241,12 +1241,12 @@ const wa = async (t) => {
|
|
|
1241
1241
|
const g = Tt && (l === "stream" || l === "response");
|
|
1242
1242
|
if (Tt && (s || g && m)) {
|
|
1243
1243
|
const A = {};
|
|
1244
|
-
["status", "statusText", "headers"].forEach((
|
|
1245
|
-
A[
|
|
1244
|
+
["status", "statusText", "headers"].forEach((B) => {
|
|
1245
|
+
A[B] = E[B];
|
|
1246
1246
|
});
|
|
1247
1247
|
const _ = f.toFiniteNumber(E.headers.get("content-length")), [N, q] = s && er(
|
|
1248
1248
|
_,
|
|
1249
|
-
|
|
1249
|
+
Be(tr(s), !0)
|
|
1250
1250
|
) || [];
|
|
1251
1251
|
E = new Response(
|
|
1252
1252
|
nr(E.body, or, N, () => {
|
|
@@ -1256,7 +1256,7 @@ const wa = async (t) => {
|
|
|
1256
1256
|
);
|
|
1257
1257
|
}
|
|
1258
1258
|
l = l || "text";
|
|
1259
|
-
let T = await
|
|
1259
|
+
let T = await Le[f.findKey(Le, l) || "text"](E, t);
|
|
1260
1260
|
return !g && m && m(), await new Promise((A, _) => {
|
|
1261
1261
|
Zr(A, _, {
|
|
1262
1262
|
data: T,
|
|
@@ -1276,7 +1276,7 @@ const wa = async (t) => {
|
|
|
1276
1276
|
) : w.from(S, S && S.code, t, y);
|
|
1277
1277
|
}
|
|
1278
1278
|
}), xt = {
|
|
1279
|
-
http:
|
|
1279
|
+
http: Bo,
|
|
1280
1280
|
xhr: pa,
|
|
1281
1281
|
fetch: Sa
|
|
1282
1282
|
};
|
|
@@ -1385,7 +1385,7 @@ function Aa(t, e, n) {
|
|
|
1385
1385
|
const $e = {
|
|
1386
1386
|
assertOptions: Aa,
|
|
1387
1387
|
validators: Ve
|
|
1388
|
-
},
|
|
1388
|
+
}, L = $e.validators;
|
|
1389
1389
|
let X = class {
|
|
1390
1390
|
constructor(e) {
|
|
1391
1391
|
this.defaults = e || {}, this.interceptors = {
|
|
@@ -1422,17 +1422,17 @@ let X = class {
|
|
|
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
1424
|
r !== void 0 && $e.assertOptions(r, {
|
|
1425
|
-
silentJSONParsing:
|
|
1426
|
-
forcedJSONParsing:
|
|
1427
|
-
clarifyTimeoutError:
|
|
1425
|
+
silentJSONParsing: L.transitional(L.boolean),
|
|
1426
|
+
forcedJSONParsing: L.transitional(L.boolean),
|
|
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
|
-
encode:
|
|
1432
|
-
serialize:
|
|
1431
|
+
encode: L.function,
|
|
1432
|
+
serialize: L.function
|
|
1433
1433
|
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), $e.assertOptions(n, {
|
|
1434
|
-
baseUrl:
|
|
1435
|
-
withXsrfToken:
|
|
1434
|
+
baseUrl: L.spelling("baseURL"),
|
|
1435
|
+
withXsrfToken: L.spelling("withXSRFToken")
|
|
1436
1436
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1437
1437
|
let i = a && f.merge(
|
|
1438
1438
|
a.common,
|
|
@@ -1660,7 +1660,7 @@ Object.entries(Ct).forEach(([t, e]) => {
|
|
|
1660
1660
|
Ct[e] = t;
|
|
1661
1661
|
});
|
|
1662
1662
|
function sn(t) {
|
|
1663
|
-
const e = new X(t), n =
|
|
1663
|
+
const e = new X(t), n = Br(X.prototype.request, e);
|
|
1664
1664
|
return f.extend(n, X.prototype, e, { allOwnKeys: !0 }), f.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
1665
1665
|
return sn(Y(t, o));
|
|
1666
1666
|
}, n;
|
|
@@ -1731,7 +1731,7 @@ const Ca = {}, _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1731
1731
|
__proto__: null,
|
|
1732
1732
|
default: Ca
|
|
1733
1733
|
}, Symbol.toStringTag, { value: "Module" })), Na = /* @__PURE__ */ xa(_a);
|
|
1734
|
-
var qt = typeof Map == "function" && Map.prototype, it = Object.getOwnPropertyDescriptor && qt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ue = qt && it && typeof it.get == "function" ? it.get : null, cr = qt && Map.prototype.forEach, jt = typeof Set == "function" && Set.prototype, st = Object.getOwnPropertyDescriptor && jt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Me = jt && st && typeof st.get == "function" ? st.get : null, ur = jt && Set.prototype.forEach, $a = typeof WeakMap == "function" && WeakMap.prototype, he = $a ? WeakMap.prototype.has : null, Fa = typeof WeakSet == "function" && WeakSet.prototype, me = Fa ? WeakSet.prototype.has : null, Da = typeof WeakRef == "function" && WeakRef.prototype, fr = Da ? WeakRef.prototype.deref : null, Ia = Boolean.prototype.valueOf,
|
|
1734
|
+
var qt = typeof Map == "function" && Map.prototype, it = Object.getOwnPropertyDescriptor && qt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ue = qt && it && typeof it.get == "function" ? it.get : null, cr = qt && Map.prototype.forEach, jt = typeof Set == "function" && Set.prototype, st = Object.getOwnPropertyDescriptor && jt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Me = jt && st && typeof st.get == "function" ? st.get : null, ur = jt && Set.prototype.forEach, $a = typeof WeakMap == "function" && WeakMap.prototype, he = $a ? WeakMap.prototype.has : null, Fa = typeof WeakSet == "function" && WeakSet.prototype, me = Fa ? WeakSet.prototype.has : null, Da = typeof WeakRef == "function" && WeakRef.prototype, fr = Da ? WeakRef.prototype.deref : null, Ia = Boolean.prototype.valueOf, Ba = Object.prototype.toString, La = Function.prototype.toString, Ua = String.prototype.match, Ht = String.prototype.slice, J = String.prototype.replace, Ma = String.prototype.toUpperCase, pr = String.prototype.toLowerCase, ln = RegExp.prototype.test, dr = Array.prototype.concat, k = Array.prototype.join, ka = Array.prototype.slice, yr = Math.floor, _t = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, lt = Object.getOwnPropertySymbols, Nt = 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, cn = Object.prototype.propertyIsEnumerable, hr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1735
1735
|
return t.__proto__;
|
|
1736
1736
|
} : null);
|
|
1737
1737
|
function mr(t, e) {
|
|
@@ -1864,7 +1864,7 @@ var $t = Na, gr = $t.custom, vr = pn(gr) ? gr : null, un = {
|
|
|
1864
1864
|
if (typeof globalThis < "u" && e === globalThis || typeof lr < "u" && e === lr)
|
|
1865
1865
|
return "{ [object globalThis] }";
|
|
1866
1866
|
if (!Ha(e) && !wr(e)) {
|
|
1867
|
-
var N = Te(e, d), q = hr ? hr(e) === Object.prototype : e instanceof Object || e.constructor === Object,
|
|
1867
|
+
var N = Te(e, d), q = hr ? hr(e) === Object.prototype : e instanceof Object || e.constructor === Object, B = e instanceof Object ? "" : "null prototype", z = !q && ge && Object(e) === e && ge in e ? Ht.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(dr.call([], z || [], B || []), ": ") + "] " : "");
|
|
1868
1868
|
return N.length === 0 ? re + "{}" : p ? re + "{" + Dt(N, p) + "}" : re + "{ " + k.call(N, ", ") + " }";
|
|
1869
1869
|
}
|
|
1870
1870
|
return String(e);
|
|
@@ -1929,12 +1929,12 @@ function H(t, e) {
|
|
|
1929
1929
|
return Ka.call(t, e);
|
|
1930
1930
|
}
|
|
1931
1931
|
function V(t) {
|
|
1932
|
-
return
|
|
1932
|
+
return Ba.call(t);
|
|
1933
1933
|
}
|
|
1934
1934
|
function Qa(t) {
|
|
1935
1935
|
if (t.name)
|
|
1936
1936
|
return t.name;
|
|
1937
|
-
var e = Ua.call(
|
|
1937
|
+
var e = Ua.call(La.call(t), /^function\s*([\w$]+)/);
|
|
1938
1938
|
return e ? e[1] : null;
|
|
1939
1939
|
}
|
|
1940
1940
|
function dn(t, e) {
|
|
@@ -2221,11 +2221,11 @@ var $i = "Function.prototype.bind called on incompatible ", Fi = Object.prototyp
|
|
|
2221
2221
|
for (var a = 0; a < n.length; a += 1)
|
|
2222
2222
|
r[a + e.length] = n[a];
|
|
2223
2223
|
return r;
|
|
2224
|
-
},
|
|
2224
|
+
}, Bi = function(e, n) {
|
|
2225
2225
|
for (var r = [], o = n, a = 0; o < e.length; o += 1, a += 1)
|
|
2226
2226
|
r[a] = e[o];
|
|
2227
2227
|
return r;
|
|
2228
|
-
},
|
|
2228
|
+
}, Li = function(t, e) {
|
|
2229
2229
|
for (var n = "", r = 0; r < t.length; r += 1)
|
|
2230
2230
|
n += t[r], r + 1 < t.length && (n += e);
|
|
2231
2231
|
return n;
|
|
@@ -2233,7 +2233,7 @@ var $i = "Function.prototype.bind called on incompatible ", Fi = Object.prototyp
|
|
|
2233
2233
|
var n = this;
|
|
2234
2234
|
if (typeof n != "function" || Fi.apply(n) !== Ii)
|
|
2235
2235
|
throw new TypeError($i + n);
|
|
2236
|
-
for (var r =
|
|
2236
|
+
for (var r = Bi(arguments, 1), o, a = function() {
|
|
2237
2237
|
if (this instanceof o) {
|
|
2238
2238
|
var c = n.apply(
|
|
2239
2239
|
this,
|
|
@@ -2247,7 +2247,7 @@ var $i = "Function.prototype.bind called on incompatible ", Fi = Object.prototyp
|
|
|
2247
2247
|
);
|
|
2248
2248
|
}, i = Di(0, n.length - r.length), s = [], u = 0; u < i; u++)
|
|
2249
2249
|
s[u] = "$" + u;
|
|
2250
|
-
if (o = Function("binder", "return function (" +
|
|
2250
|
+
if (o = Function("binder", "return function (" + Li(s, ",") + "){ return binder.apply(this,arguments); }")(a), n.prototype) {
|
|
2251
2251
|
var l = function() {
|
|
2252
2252
|
};
|
|
2253
2253
|
l.prototype = n.prototype, o.prototype = new l(), l.prototype = null;
|
|
@@ -2572,13 +2572,13 @@ function() {
|
|
|
2572
2572
|
}
|
|
2573
2573
|
};
|
|
2574
2574
|
return n;
|
|
2575
|
-
}, Is = Wt, Ze = Rn,
|
|
2575
|
+
}, Is = Wt, Ze = Rn, Bs = Ke, xe = Pn, Ls = fe, oe = Is("%WeakMap%", !0), Us = Ze("WeakMap.prototype.get", !0), Ms = Ze("WeakMap.prototype.set", !0), ks = Ze("WeakMap.prototype.has", !0), qs = Ze("WeakMap.prototype.delete", !0), js = oe ? (
|
|
2576
2576
|
/** @type {Exclude<import('.'), false>} */
|
|
2577
2577
|
function() {
|
|
2578
2578
|
var e, n, r = {
|
|
2579
2579
|
assert: function(o) {
|
|
2580
2580
|
if (!r.has(o))
|
|
2581
|
-
throw new
|
|
2581
|
+
throw new Ls("Side channel does not contain " + Bs(o));
|
|
2582
2582
|
},
|
|
2583
2583
|
delete: function(o) {
|
|
2584
2584
|
if (oe && o && (typeof o == "object" || typeof o == "function")) {
|
|
@@ -2815,9 +2815,9 @@ function() {
|
|
|
2815
2815
|
}
|
|
2816
2816
|
return [m(n) + "=" + m(String(g))];
|
|
2817
2817
|
}
|
|
2818
|
-
var
|
|
2818
|
+
var B = [];
|
|
2819
2819
|
if (typeof g > "u")
|
|
2820
|
-
return
|
|
2820
|
+
return B;
|
|
2821
2821
|
var z;
|
|
2822
2822
|
if (r === "comma" && M(g))
|
|
2823
2823
|
h && l && (g = Ie.maybeMap(g, l)), z = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
|
|
@@ -2833,12 +2833,12 @@ function() {
|
|
|
2833
2833
|
for (var W = 0; W < z.length; ++W) {
|
|
2834
2834
|
var j = z[W], pe = typeof j == "object" && j && typeof j.value < "u" ? j.value : g[j];
|
|
2835
2835
|
if (!(s && pe === null)) {
|
|
2836
|
-
var tt = d && u ? String(j).replace(/\./g, "%2E") : String(j),
|
|
2836
|
+
var tt = d && u ? String(j).replace(/\./g, "%2E") : String(j), Bn = M(g) ? typeof r == "function" ? r(D, tt) : D : D + (d ? "." + tt : "[" + tt + "]");
|
|
2837
2837
|
E.set(e, A);
|
|
2838
2838
|
var Vt = Cn();
|
|
2839
|
-
Vt.set(At, E), Nn(
|
|
2839
|
+
Vt.set(At, E), Nn(B, t(
|
|
2840
2840
|
pe,
|
|
2841
|
-
|
|
2841
|
+
Bn,
|
|
2842
2842
|
r,
|
|
2843
2843
|
o,
|
|
2844
2844
|
a,
|
|
@@ -2858,7 +2858,7 @@ function() {
|
|
|
2858
2858
|
));
|
|
2859
2859
|
}
|
|
2860
2860
|
}
|
|
2861
|
-
return
|
|
2861
|
+
return B;
|
|
2862
2862
|
}, yl = function(e) {
|
|
2863
2863
|
if (!e)
|
|
2864
2864
|
return P;
|
|
@@ -3113,7 +3113,7 @@ var Cl = {
|
|
|
3113
3113
|
);
|
|
3114
3114
|
}
|
|
3115
3115
|
};
|
|
3116
|
-
function
|
|
3116
|
+
function Bt(t, e) {
|
|
3117
3117
|
function n(o, a, i) {
|
|
3118
3118
|
if (!(typeof document > "u")) {
|
|
3119
3119
|
i = Ce({}, 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);
|
|
@@ -3151,10 +3151,10 @@ function Lt(t, e) {
|
|
|
3151
3151
|
);
|
|
3152
3152
|
},
|
|
3153
3153
|
withAttributes: function(o) {
|
|
3154
|
-
return
|
|
3154
|
+
return Bt(this.converter, Ce({}, this.attributes, o));
|
|
3155
3155
|
},
|
|
3156
3156
|
withConverter: function(o) {
|
|
3157
|
-
return
|
|
3157
|
+
return Bt(Ce({}, this.converter, o), this.attributes);
|
|
3158
3158
|
}
|
|
3159
3159
|
},
|
|
3160
3160
|
{
|
|
@@ -3163,7 +3163,7 @@ function Lt(t, e) {
|
|
|
3163
3163
|
}
|
|
3164
3164
|
);
|
|
3165
3165
|
}
|
|
3166
|
-
var _l =
|
|
3166
|
+
var _l = Bt(Cl, { path: "/" });
|
|
3167
3167
|
const Nl = {
|
|
3168
3168
|
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
|
|
3169
3169
|
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
|
|
@@ -3176,11 +3176,13 @@ const Nl = {
|
|
|
3176
3176
|
_appCode: "framework"
|
|
3177
3177
|
}
|
|
3178
3178
|
};
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3179
|
+
Ln(Nl);
|
|
3180
|
+
Lt.extend(Wn);
|
|
3181
|
+
Lt.extend(Gn);
|
|
3182
3182
|
const Jt = Ir(), Fn = Jt.sso ?? !0, $l = Jt.i18n ?? !0, Dn = Jt.noRedireLogin ?? !1, In = () => {
|
|
3183
|
-
|
|
3183
|
+
if (Dn) return;
|
|
3184
|
+
const t = "/login";
|
|
3185
|
+
location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1, location.replace(`/#${t}`));
|
|
3184
3186
|
}, Fl = async (t) => {
|
|
3185
3187
|
var n;
|
|
3186
3188
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
@@ -3240,7 +3242,7 @@ const Jt = Ir(), Fn = Jt.sso ?? !0, $l = Jt.i18n ?? !0, Dn = Jt.noRedireLogin ??
|
|
|
3240
3242
|
const { instanceInfo: l } = Vn();
|
|
3241
3243
|
l != null && l.instanceId && (s.instance = l.instanceId);
|
|
3242
3244
|
}
|
|
3243
|
-
return r.params = s, r.headers.Timezone =
|
|
3245
|
+
return r.params = s, r.headers.Timezone = Lt.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = Un.value, r;
|
|
3244
3246
|
});
|
|
3245
3247
|
}, et = "v1", lc = Ye(`/api/superadmin/portal/${et}`), cc = Ye(`/api/superadmin/permission/${et}`), uc = Ye(`/api/superadmin/resource/${et}`), fc = Ye(`/api/superadmin/license/${et}`);
|
|
3246
3248
|
export {
|
|
Binary file
|
|
@@ -3180,7 +3180,9 @@ Ln(Nl);
|
|
|
3180
3180
|
It.extend(Wn);
|
|
3181
3181
|
It.extend(Gn);
|
|
3182
3182
|
const Wt = Ir(), Fn = Wt.sso ?? !0, $l = Wt.i18n ?? !0, Dn = Wt.noRedireLogin ?? !1, In = () => {
|
|
3183
|
-
|
|
3183
|
+
if (Dn) return;
|
|
3184
|
+
const t = "/login";
|
|
3185
|
+
location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1, location.replace(`/#${t}`));
|
|
3184
3186
|
}, Fl = async (t) => {
|
|
3185
3187
|
var n;
|
|
3186
3188
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
Binary file
|
|
@@ -3180,7 +3180,9 @@ In(Cl);
|
|
|
3180
3180
|
It.extend(Hn);
|
|
3181
3181
|
It.extend(zn);
|
|
3182
3182
|
const Wt = Fr(), Nn = Wt.sso ?? !0, _l = Wt.i18n ?? !0, $n = Wt.noRedireLogin ?? !1, Fn = () => {
|
|
3183
|
-
$n
|
|
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;
|
|
Binary file
|
|
@@ -3180,7 +3180,9 @@ In(Cl);
|
|
|
3180
3180
|
It.extend(Hn);
|
|
3181
3181
|
It.extend(zn);
|
|
3182
3182
|
const Wt = Fr(), Nn = Wt.sso ?? !0, _l = Wt.i18n ?? !0, $n = Wt.noRedireLogin ?? !1, Fn = () => {
|
|
3183
|
-
$n
|
|
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;
|
|
Binary file
|
|
@@ -3198,7 +3198,9 @@ kn(Tl);
|
|
|
3198
3198
|
Ut.extend(Vn);
|
|
3199
3199
|
Ut.extend(Kn);
|
|
3200
3200
|
const Vt = Ur(), Bn = Vt.sso ?? !0, xl = Vt.i18n ?? !0, Ln = Vt.noRedireLogin ?? !1, Un = () => {
|
|
3201
|
-
|
|
3201
|
+
if (Ln) return;
|
|
3202
|
+
const t = "/login";
|
|
3203
|
+
location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1, location.replace(`/#${t}`));
|
|
3202
3204
|
}, Cl = async (t) => {
|
|
3203
3205
|
var n;
|
|
3204
3206
|
return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
|
|
Binary file
|