@das-fed/upf-utils 6.4.0-dev.226 → 6.4.0-dev.228
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/es5.js +1520 -1526
- package/api-services/index.js +1223 -1237
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +313 -310
- package/api-services/modules/app-manage/index.js +292 -292
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +313 -310
- package/api-services/modules/authentication/index.js +292 -292
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +308 -305
- package/api-services/modules/bems/index.js +287 -287
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +313 -310
- package/api-services/modules/contract/index.js +292 -292
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +1153 -1159
- package/api-services/modules/duty-manage/index.js +958 -972
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +1153 -1162
- package/api-services/modules/enterpriseright/index.js +957 -975
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1518 -1527
- package/api-services/modules/file/es5.js +250 -247
- package/api-services/modules/file/index.js +209 -209
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +188 -185
- package/api-services/modules/gateway-edge/index.js +184 -184
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1221 -1239
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +1168 -1177
- package/api-services/modules/iot/index.js +968 -986
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +314 -311
- package/api-services/modules/justauth/index.js +293 -293
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +313 -310
- package/api-services/modules/knowledge/index.js +292 -292
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +313 -310
- package/api-services/modules/link/index.js +292 -292
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +1153 -1162
- package/api-services/modules/permission/index.js +957 -975
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +312 -309
- package/api-services/modules/platformManage/index.js +287 -287
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +1135 -1141
- package/api-services/modules/portal/index.js +941 -955
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +1247 -1232
- package/api-services/modules/space-manage/index.js +1042 -1024
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +262 -259
- package/api-services/modules/super-admin/index.js +244 -244
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +315 -312
- package/api-services/modules/supplier/index.js +292 -292
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +1164 -1173
- package/api-services/modules/supplychain-manage/index.js +967 -985
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +313 -310
- package/api-services/modules/systemConfiguration/index.js +292 -292
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +313 -310
- package/api-services/modules/tool/index.js +292 -292
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +311 -308
- package/api-services/src/create-service/index.js +291 -291
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +4357 -124
- package/common-info/getPermissionMethod/es5.js +4209 -0
- package/common-info/getPermissionMethod/index.d.ts +26 -0
- package/common-info/getPermissionMethod/index.js +3328 -0
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.d.ts +2 -0
- package/common-info/index.js +3414 -63
- package/common-info/index.js.gz +0 -0
- package/common-info/type.d.ts +0 -2
- package/create-api-service/es5.js +1142 -1150
- package/create-api-service/index.d.ts +6 -6
- package/create-api-service/index.js +948 -965
- package/create-api-service/index.js.gz +0 -0
- package/directive/auth/es5.js +63 -44
- package/directive/auth/index.js +42 -33
- package/directive/auth/index.js.gz +0 -0
- package/esm-map.json +7 -1
- package/hooks/use-get-auth/es5.js +13 -17
- package/hooks/use-get-auth/index.js +10 -13
- package/package.json +3 -3
- package/hooks/use-get-auth/apis.d.ts +0 -1
|
@@ -366,10 +366,10 @@ var oa = function oa(t) {
|
|
|
366
366
|
asap: sa,
|
|
367
367
|
isIterable: la
|
|
368
368
|
};
|
|
369
|
-
function
|
|
369
|
+
function b(t, e, n, r, o) {
|
|
370
370
|
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);
|
|
371
371
|
}
|
|
372
|
-
p.inherits(
|
|
372
|
+
p.inherits(b, Error, {
|
|
373
373
|
toJSON: function toJSON() {
|
|
374
374
|
return {
|
|
375
375
|
// Standard
|
|
@@ -390,7 +390,7 @@ p.inherits(S, Error, {
|
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
392
|
});
|
|
393
|
-
var gn =
|
|
393
|
+
var gn = b.prototype,
|
|
394
394
|
vn = {};
|
|
395
395
|
["ERR_BAD_OPTION_VALUE", "ERR_BAD_OPTION", "ECONNABORTED", "ETIMEDOUT", "ERR_NETWORK", "ERR_FR_TOO_MANY_REDIRECTS", "ERR_DEPRECATED", "ERR_BAD_RESPONSE", "ERR_BAD_REQUEST", "ERR_CANCELED", "ERR_NOT_SUPPORT", "ERR_INVALID_URL"
|
|
396
396
|
// eslint-disable-next-line func-names
|
|
@@ -399,17 +399,17 @@ var gn = S.prototype,
|
|
|
399
399
|
value: t
|
|
400
400
|
};
|
|
401
401
|
});
|
|
402
|
-
Object.defineProperties(
|
|
402
|
+
Object.defineProperties(b, vn);
|
|
403
403
|
Object.defineProperty(gn, "isAxiosError", {
|
|
404
404
|
value: true
|
|
405
405
|
});
|
|
406
|
-
|
|
406
|
+
b.from = function (t, e, n, r, o, a) {
|
|
407
407
|
var i = Object.create(gn);
|
|
408
408
|
return p.toFlatObject(t, i, function (u) {
|
|
409
409
|
return u !== Error.prototype;
|
|
410
410
|
}, function (s) {
|
|
411
411
|
return s !== "isAxiosError";
|
|
412
|
-
}),
|
|
412
|
+
}), b.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
|
|
413
413
|
};
|
|
414
414
|
var ca = null;
|
|
415
415
|
function kt(t) {
|
|
@@ -448,13 +448,13 @@ function at(t, e, n) {
|
|
|
448
448
|
if (y === null) return "";
|
|
449
449
|
if (p.isDate(y)) return y.toISOString();
|
|
450
450
|
if (p.isBoolean(y)) return y.toString();
|
|
451
|
-
if (!u && p.isBlob(y)) throw new
|
|
451
|
+
if (!u && p.isBlob(y)) throw new b("Blob is not supported. Use a Buffer instead.");
|
|
452
452
|
return p.isArrayBuffer(y) || p.isTypedArray(y) ? u && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
|
|
453
453
|
}
|
|
454
454
|
function c(y, m, h) {
|
|
455
|
-
var
|
|
455
|
+
var S = y;
|
|
456
456
|
if (y && !h && _typeof(y) == "object") {
|
|
457
|
-
if (p.endsWith(m, "{}")) m = r ? m : m.slice(0, -2), y = JSON.stringify(y);else if (p.isArray(y) && ua(y) || (p.isFileList(y) || p.endsWith(m, "[]")) && (
|
|
457
|
+
if (p.endsWith(m, "{}")) m = r ? m : m.slice(0, -2), y = JSON.stringify(y);else if (p.isArray(y) && ua(y) || (p.isFileList(y) || p.endsWith(m, "[]")) && (S = p.toArray(y))) return m = wn(m), S.forEach(function (g, T) {
|
|
458
458
|
!(p.isUndefined(g) || g === null) && e.append(
|
|
459
459
|
// eslint-disable-next-line no-nested-ternary
|
|
460
460
|
i === true ? yr([m], T, a) : i === null ? m : m + "[]", l(g));
|
|
@@ -471,8 +471,8 @@ function at(t, e, n) {
|
|
|
471
471
|
function v(y, m) {
|
|
472
472
|
if (!p.isUndefined(y)) {
|
|
473
473
|
if (f.indexOf(y) !== -1) throw Error("Circular reference detected in " + m.join("."));
|
|
474
|
-
f.push(y), p.forEach(y, function (
|
|
475
|
-
(!(p.isUndefined(
|
|
474
|
+
f.push(y), p.forEach(y, function (S, O) {
|
|
475
|
+
(!(p.isUndefined(S) || S === null) && o.call(e, S, p.isString(O) ? O.trim() : O, m, d)) === true && v(S, m ? m.concat(O) : [O]);
|
|
476
476
|
}), f.pop();
|
|
477
477
|
}
|
|
478
478
|
}
|
|
@@ -702,7 +702,7 @@ var $e = {
|
|
|
702
702
|
try {
|
|
703
703
|
return JSON.parse(e);
|
|
704
704
|
} catch (s) {
|
|
705
|
-
if (i) throw s.name === "SyntaxError" ?
|
|
705
|
+
if (i) throw s.name === "SyntaxError" ? b.from(s, b.ERR_BAD_RESPONSE, this, null, this.response) : s;
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
708
|
return e;
|
|
@@ -986,14 +986,14 @@ function An(t) {
|
|
|
986
986
|
return !!(t && t.__CANCEL__);
|
|
987
987
|
}
|
|
988
988
|
function Se(t, e, n) {
|
|
989
|
-
|
|
989
|
+
b.call(this, t !== null && t !== void 0 ? t : "canceled", b.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
990
990
|
}
|
|
991
|
-
p.inherits(Se,
|
|
991
|
+
p.inherits(Se, b, {
|
|
992
992
|
__CANCEL__: true
|
|
993
993
|
});
|
|
994
994
|
function Rn(t, e, n) {
|
|
995
995
|
var r = n.config.validateStatus;
|
|
996
|
-
!n.status || !r || r(n.status) ? t(n) : e(new
|
|
996
|
+
!n.status || !r || r(n.status) ? t(n) : e(new b("Request failed with status code " + n.status, [b.ERR_BAD_REQUEST, b.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], n.config, n.request, n));
|
|
997
997
|
}
|
|
998
998
|
function Na(t) {
|
|
999
999
|
var e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
@@ -1238,10 +1238,10 @@ var Tn = function Tn(t) {
|
|
|
1238
1238
|
}
|
|
1239
1239
|
var h = new XMLHttpRequest();
|
|
1240
1240
|
h.open(o.method.toUpperCase(), o.url, true), h.timeout = o.timeout;
|
|
1241
|
-
function
|
|
1241
|
+
function S() {
|
|
1242
1242
|
if (!h) return;
|
|
1243
1243
|
var g = q.from("getAllResponseHeaders" in h && h.getAllResponseHeaders()),
|
|
1244
|
-
|
|
1244
|
+
x = {
|
|
1245
1245
|
data: !s || s === "text" || s === "json" ? h.responseText : h.response,
|
|
1246
1246
|
status: h.status,
|
|
1247
1247
|
statusText: h.statusText,
|
|
@@ -1253,26 +1253,26 @@ var Tn = function Tn(t) {
|
|
|
1253
1253
|
n(L), m();
|
|
1254
1254
|
}, function (L) {
|
|
1255
1255
|
r(L), m();
|
|
1256
|
-
},
|
|
1256
|
+
}, x), h = null;
|
|
1257
1257
|
}
|
|
1258
|
-
"onloadend" in h ? h.onloadend =
|
|
1259
|
-
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
1258
|
+
"onloadend" in h ? h.onloadend = S : h.onreadystatechange = function () {
|
|
1259
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(S);
|
|
1260
1260
|
}, h.onabort = function () {
|
|
1261
|
-
h && (r(new
|
|
1261
|
+
h && (r(new b("Request aborted", b.ECONNABORTED, t, h)), h = null);
|
|
1262
1262
|
}, h.onerror = function () {
|
|
1263
|
-
r(new
|
|
1263
|
+
r(new b("Network Error", b.ERR_NETWORK, t, h)), h = null;
|
|
1264
1264
|
}, h.ontimeout = function () {
|
|
1265
1265
|
var T = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1266
|
-
var
|
|
1267
|
-
o.timeoutErrorMessage && (T = o.timeoutErrorMessage), r(new
|
|
1268
|
-
}, a === undefined && i.setContentType(null), "setRequestHeader" in h && p.forEach(i.toJSON(), function (T,
|
|
1269
|
-
h.setRequestHeader(
|
|
1266
|
+
var x = o.transitional || En;
|
|
1267
|
+
o.timeoutErrorMessage && (T = o.timeoutErrorMessage), r(new b(T, x.clarifyTimeoutError ? b.ETIMEDOUT : b.ECONNABORTED, t, h)), h = null;
|
|
1268
|
+
}, a === undefined && i.setContentType(null), "setRequestHeader" in h && p.forEach(i.toJSON(), function (T, x) {
|
|
1269
|
+
h.setRequestHeader(x, T);
|
|
1270
1270
|
}), p.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && (_Je = Je(l, true), _Je2 = _slicedToArray(_Je, 2), d = _Je2[0], y = _Je2[1], h.addEventListener("progress", d)), u && h.upload && (_Je3 = Je(u), _Je4 = _slicedToArray(_Je3, 2), f = _Je4[0], v = _Je4[1], h.upload.addEventListener("progress", f), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = function c(g) {
|
|
1271
1271
|
h && (r(!g || g.type ? new Se(null, t, h) : g), h.abort(), h = null);
|
|
1272
1272
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
1273
|
-
var
|
|
1274
|
-
if (
|
|
1275
|
-
r(new
|
|
1273
|
+
var O = Na(o.url);
|
|
1274
|
+
if (O && M.protocols.indexOf(O) === -1) {
|
|
1275
|
+
r(new b("Unsupported protocol " + O + ":", b.ERR_BAD_REQUEST, t));
|
|
1276
1276
|
return;
|
|
1277
1277
|
}
|
|
1278
1278
|
h.send(a || null);
|
|
@@ -1288,11 +1288,11 @@ var Tn = function Tn(t) {
|
|
|
1288
1288
|
if (!o) {
|
|
1289
1289
|
o = true, s();
|
|
1290
1290
|
var c = l instanceof Error ? l : this.reason;
|
|
1291
|
-
r.abort(c instanceof
|
|
1291
|
+
r.abort(c instanceof b ? c : new Se(c instanceof Error ? c.message : c));
|
|
1292
1292
|
}
|
|
1293
1293
|
};
|
|
1294
1294
|
var i = e && setTimeout(function () {
|
|
1295
|
-
i = null, a(new
|
|
1295
|
+
i = null, a(new b("timeout ".concat(e, " of ms exceeded"), b.ETIMEDOUT));
|
|
1296
1296
|
}, e);
|
|
1297
1297
|
var s = function s() {
|
|
1298
1298
|
t && (i && clearTimeout(i), i = null, t.forEach(function (l) {
|
|
@@ -1565,7 +1565,7 @@ it && function (t) {
|
|
|
1565
1565
|
!Ve[e] && (Ve[e] = p.isFunction(t[e]) ? function (n) {
|
|
1566
1566
|
return n[e]();
|
|
1567
1567
|
} : function (n, r) {
|
|
1568
|
-
throw new
|
|
1568
|
+
throw new b("Response type '".concat(e, "' is not supported"), b.ERR_NOT_SUPPORT, r);
|
|
1569
1569
|
});
|
|
1570
1570
|
});
|
|
1571
1571
|
}(new Response());
|
|
@@ -1638,7 +1638,7 @@ var Ka = /*#__PURE__*/function () {
|
|
|
1638
1638
|
}(),
|
|
1639
1639
|
Ja = it && (/*#__PURE__*/function () {
|
|
1640
1640
|
var _ref14 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(t) {
|
|
1641
|
-
var _Tn, e, n, r, o, a, i, s, u, l, c, _Tn$withCredentials, f, d, v, y, m, h,
|
|
1641
|
+
var _Tn, e, n, r, o, a, i, s, u, l, c, _Tn$withCredentials, f, d, v, y, m, h, x, I, _vr, _vr2, L, z, S, O, g, _x9, _I, _ref15, _ref16, _L, _z, T, _t7, _t8, _t9;
|
|
1642
1642
|
return _regenerator().w(function (_context8) {
|
|
1643
1643
|
while (1) switch (_context8.p = _context8.n) {
|
|
1644
1644
|
case 0:
|
|
@@ -1664,54 +1664,54 @@ var Ka = /*#__PURE__*/function () {
|
|
|
1664
1664
|
_context8.n = 4;
|
|
1665
1665
|
break;
|
|
1666
1666
|
}
|
|
1667
|
-
|
|
1667
|
+
x = new Request(e, {
|
|
1668
1668
|
method: "POST",
|
|
1669
1669
|
body: r,
|
|
1670
1670
|
duplex: "half"
|
|
1671
1671
|
});
|
|
1672
|
-
if (p.isFormData(r) && (I =
|
|
1672
|
+
if (p.isFormData(r) && (I = x.headers.get("content-type")) && c.setContentType(I), x.body) {
|
|
1673
1673
|
_vr = vr(h, Je(wr(u))), _vr2 = _slicedToArray(_vr, 2), L = _vr2[0], z = _vr2[1];
|
|
1674
|
-
r = Sr(
|
|
1674
|
+
r = Sr(x.body, Er, L, z);
|
|
1675
1675
|
}
|
|
1676
1676
|
case 4:
|
|
1677
1677
|
p.isString(f) || (f = f ? "include" : "omit");
|
|
1678
|
-
|
|
1678
|
+
S = "credentials" in Request.prototype;
|
|
1679
1679
|
y = new Request(e, _objectSpread(_objectSpread({}, d), {}, {
|
|
1680
1680
|
signal: v,
|
|
1681
1681
|
method: n.toUpperCase(),
|
|
1682
1682
|
headers: c.normalize().toJSON(),
|
|
1683
1683
|
body: r,
|
|
1684
1684
|
duplex: "half",
|
|
1685
|
-
credentials:
|
|
1685
|
+
credentials: S ? f : void 0
|
|
1686
1686
|
}));
|
|
1687
1687
|
_context8.n = 5;
|
|
1688
1688
|
return fetch(y, d);
|
|
1689
1689
|
case 5:
|
|
1690
|
-
|
|
1690
|
+
O = _context8.v;
|
|
1691
1691
|
g = qt && (l === "stream" || l === "response");
|
|
1692
1692
|
if (qt && (s || g && m)) {
|
|
1693
|
-
|
|
1693
|
+
_x9 = {};
|
|
1694
1694
|
["status", "statusText", "headers"].forEach(function (G) {
|
|
1695
|
-
|
|
1695
|
+
_x9[G] = O[G];
|
|
1696
1696
|
});
|
|
1697
|
-
_I = p.toFiniteNumber(
|
|
1698
|
-
|
|
1697
|
+
_I = p.toFiniteNumber(O.headers.get("content-length")), _ref15 = s && vr(_I, Je(wr(s), !0)) || [], _ref16 = _slicedToArray(_ref15, 2), _L = _ref16[0], _z = _ref16[1];
|
|
1698
|
+
O = new Response(Sr(O.body, Er, _L, function () {
|
|
1699
1699
|
_z && _z(), m && m();
|
|
1700
|
-
}),
|
|
1700
|
+
}), _x9);
|
|
1701
1701
|
}
|
|
1702
1702
|
l = l || "text";
|
|
1703
1703
|
_context8.n = 6;
|
|
1704
|
-
return Ve[p.findKey(Ve, l) || "text"](
|
|
1704
|
+
return Ve[p.findKey(Ve, l) || "text"](O, t);
|
|
1705
1705
|
case 6:
|
|
1706
1706
|
T = _context8.v;
|
|
1707
1707
|
!g && m && m();
|
|
1708
1708
|
_context8.n = 7;
|
|
1709
|
-
return new Promise(function (
|
|
1710
|
-
Rn(
|
|
1709
|
+
return new Promise(function (x, I) {
|
|
1710
|
+
Rn(x, I, {
|
|
1711
1711
|
data: T,
|
|
1712
|
-
headers: q.from(
|
|
1713
|
-
status:
|
|
1714
|
-
statusText:
|
|
1712
|
+
headers: q.from(O.headers),
|
|
1713
|
+
status: O.status,
|
|
1714
|
+
statusText: O.statusText,
|
|
1715
1715
|
config: t,
|
|
1716
1716
|
request: y
|
|
1717
1717
|
});
|
|
@@ -1721,9 +1721,9 @@ var Ka = /*#__PURE__*/function () {
|
|
|
1721
1721
|
case 8:
|
|
1722
1722
|
_context8.p = 8;
|
|
1723
1723
|
_t9 = _context8.v;
|
|
1724
|
-
throw m && m(), _t9 && _t9.name === "TypeError" && /Load failed|fetch/i.test(_t9.message) ? Object.assign(new
|
|
1724
|
+
throw m && m(), _t9 && _t9.name === "TypeError" && /Load failed|fetch/i.test(_t9.message) ? Object.assign(new b("Network Error", b.ERR_NETWORK, t, y), {
|
|
1725
1725
|
cause: _t9.cause || _t9
|
|
1726
|
-
}) :
|
|
1726
|
+
}) : b.from(_t9, _t9 && _t9.code, t, y);
|
|
1727
1727
|
case 9:
|
|
1728
1728
|
return _context8.a(2);
|
|
1729
1729
|
}
|
|
@@ -1766,7 +1766,7 @@ var Or = function Or(t) {
|
|
|
1766
1766
|
for (var a = 0; a < e; a++) {
|
|
1767
1767
|
n = t[a];
|
|
1768
1768
|
var i = void 0;
|
|
1769
|
-
if (r = n, !Va(n) && (r = Ht[(i = String(n)).toLowerCase()], r === undefined)) throw new
|
|
1769
|
+
if (r = n, !Va(n) && (r = Ht[(i = String(n)).toLowerCase()], r === undefined)) throw new b("Unknown adapter '".concat(i, "'"));
|
|
1770
1770
|
if (r) break;
|
|
1771
1771
|
o[i || "#" + a] = r;
|
|
1772
1772
|
}
|
|
@@ -1778,7 +1778,7 @@ var Or = function Or(t) {
|
|
|
1778
1778
|
return "adapter ".concat(s, " ") + (u === false ? "is not supported by the environment" : "is not available in the build");
|
|
1779
1779
|
});
|
|
1780
1780
|
var _i2 = e ? _a2.length > 1 ? "since :\n" + _a2.map(Or).join("\n") : " " + Or(_a2[0]) : "as no adapter specified";
|
|
1781
|
-
throw new
|
|
1781
|
+
throw new b("There is no suitable adapter to dispatch the request " + _i2, "ERR_NOT_SUPPORT");
|
|
1782
1782
|
}
|
|
1783
1783
|
return r;
|
|
1784
1784
|
},
|
|
@@ -1807,7 +1807,7 @@ st.transitional = function (e, n, r) {
|
|
|
1807
1807
|
return "[Axios v" + Nn + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
|
|
1808
1808
|
}
|
|
1809
1809
|
return function (a, i, s) {
|
|
1810
|
-
if (e === false) throw new
|
|
1810
|
+
if (e === false) throw new b(o(i, " has been removed" + (n ? " in " + n : "")), b.ERR_DEPRECATED);
|
|
1811
1811
|
return n && !Rr[i] && (Rr[i] = true), e ? e(a, i, s) : true;
|
|
1812
1812
|
};
|
|
1813
1813
|
};
|
|
@@ -1817,7 +1817,7 @@ st.spelling = function (e) {
|
|
|
1817
1817
|
};
|
|
1818
1818
|
};
|
|
1819
1819
|
function Qa(t, e, n) {
|
|
1820
|
-
if (_typeof(t) != "object") throw new
|
|
1820
|
+
if (_typeof(t) != "object") throw new b("options must be an object", b.ERR_BAD_OPTION_VALUE);
|
|
1821
1821
|
var r = Object.keys(t);
|
|
1822
1822
|
var o = r.length;
|
|
1823
1823
|
for (; o-- > 0;) {
|
|
@@ -1826,10 +1826,10 @@ function Qa(t, e, n) {
|
|
|
1826
1826
|
if (i) {
|
|
1827
1827
|
var s = t[a],
|
|
1828
1828
|
u = s === undefined || i(s, a, t);
|
|
1829
|
-
if (u !== true) throw new
|
|
1829
|
+
if (u !== true) throw new b("option " + a + " must be " + u, b.ERR_BAD_OPTION_VALUE);
|
|
1830
1830
|
continue;
|
|
1831
1831
|
}
|
|
1832
|
-
if (n !== true) throw new
|
|
1832
|
+
if (n !== true) throw new b("Unknown option " + a, b.ERR_BAD_OPTION);
|
|
1833
1833
|
}
|
|
1834
1834
|
}
|
|
1835
1835
|
var He = {
|
|
@@ -1883,7 +1883,7 @@ var ce = /*#__PURE__*/function () {
|
|
|
1883
1883
|
}
|
|
1884
1884
|
}, _callee8, this, [[0, 2]]);
|
|
1885
1885
|
}));
|
|
1886
|
-
function request(
|
|
1886
|
+
function request(_x0, _x1) {
|
|
1887
1887
|
return _request2.apply(this, arguments);
|
|
1888
1888
|
}
|
|
1889
1889
|
return request;
|
|
@@ -2165,7 +2165,7 @@ $.CancelToken = tr;
|
|
|
2165
2165
|
$.isCancel = An;
|
|
2166
2166
|
$.VERSION = Nn;
|
|
2167
2167
|
$.toFormData = at;
|
|
2168
|
-
$.AxiosError =
|
|
2168
|
+
$.AxiosError = b;
|
|
2169
2169
|
$.Cancel = $.CanceledError;
|
|
2170
2170
|
$.all = function (e) {
|
|
2171
2171
|
return Promise.all(e);
|
|
@@ -2302,14 +2302,14 @@ var Gt = ni,
|
|
|
2302
2302
|
if (_typeof(r) > "u" && (r = 0), r >= c && c > 0 && _typeof(e) == "object") return Jt(e) ? "[Array]" : "[Object]";
|
|
2303
2303
|
var f = Ni(a, r);
|
|
2304
2304
|
if (_typeof(o) > "u") o = [];else if (Mn(o, e) >= 0) return "[Circular]";
|
|
2305
|
-
function d(
|
|
2305
|
+
function d(P, N, w) {
|
|
2306
2306
|
if (N && (o = pi.call(o), o.push(N)), w) {
|
|
2307
2307
|
var H = {
|
|
2308
2308
|
depth: a.depth
|
|
2309
2309
|
};
|
|
2310
|
-
return ne(a, "quoteStyle") && (H.quoteStyle = a.quoteStyle), t(
|
|
2310
|
+
return ne(a, "quoteStyle") && (H.quoteStyle = a.quoteStyle), t(P, H, r + 1, o);
|
|
2311
2311
|
}
|
|
2312
|
-
return t(
|
|
2312
|
+
return t(P, a, r + 1, o);
|
|
2313
2313
|
}
|
|
2314
2314
|
if (typeof e == "function" && !Ur(e)) {
|
|
2315
2315
|
var v = Ei(e),
|
|
@@ -2321,7 +2321,7 @@ var Gt = ni,
|
|
|
2321
2321
|
return _typeof(e) == "object" && !ve ? Ae(m) : m;
|
|
2322
2322
|
}
|
|
2323
2323
|
if (xi(e)) {
|
|
2324
|
-
for (var h = "<" + _r.call(String(e.nodeName)),
|
|
2324
|
+
for (var h = "<" + _r.call(String(e.nodeName)), S = e.attributes || [], O = 0; O < S.length; O++) h += " " + S[O].name + "=" + Ln(yi(S[O].value), "double", a);
|
|
2325
2325
|
return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + _r.call(String(e.nodeName)) + ">", h;
|
|
2326
2326
|
}
|
|
2327
2327
|
if (Jt(e)) {
|
|
@@ -2340,15 +2340,15 @@ var Gt = ni,
|
|
|
2340
2340
|
if (i !== "symbol" && typeof e.inspect == "function") return e.inspect();
|
|
2341
2341
|
}
|
|
2342
2342
|
if (Oi(e)) {
|
|
2343
|
-
var
|
|
2344
|
-
return Tr && Tr.call(e, function (
|
|
2345
|
-
|
|
2346
|
-
}), Mr("Map", Qe.call(e),
|
|
2343
|
+
var x = [];
|
|
2344
|
+
return Tr && Tr.call(e, function (P, N) {
|
|
2345
|
+
x.push(d(N, e, true) + " => " + d(P, e));
|
|
2346
|
+
}), Mr("Map", Qe.call(e), x, f);
|
|
2347
2347
|
}
|
|
2348
2348
|
if (Pi(e)) {
|
|
2349
2349
|
var I = [];
|
|
2350
|
-
return xr && xr.call(e, function (
|
|
2351
|
-
I.push(d(
|
|
2350
|
+
return xr && xr.call(e, function (P) {
|
|
2351
|
+
I.push(d(P, e));
|
|
2352
2352
|
}), Mr("Set", Xe.call(e), I, f);
|
|
2353
2353
|
}
|
|
2354
2354
|
if (Ai(e)) return bt("WeakMap");
|
|
@@ -2365,8 +2365,8 @@ var Gt = ni,
|
|
|
2365
2365
|
z = Fr ? Fr(e) === Object.prototype : e instanceof Object || e.constructor === Object,
|
|
2366
2366
|
G = e instanceof Object ? "" : "null prototype",
|
|
2367
2367
|
E = !z && Te && Object(e) === e && Te in e ? or.call(ie(e), 8, -1) : G ? "Object" : "",
|
|
2368
|
-
|
|
2369
|
-
C =
|
|
2368
|
+
A = z || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "",
|
|
2369
|
+
C = A + (E || G ? "[" + re.call(Nr.call([], E || [], G || []), ": ") + "] " : "");
|
|
2370
2370
|
return L.length === 0 ? C + "{}" : f ? C + "{" + Vt(L, f) + "}" : C + "{ " + re.call(L, ", ") + " }";
|
|
2371
2371
|
}
|
|
2372
2372
|
return String(e);
|
|
@@ -2728,8 +2728,8 @@ function os() {
|
|
|
2728
2728
|
if (typeof l != "function" || e.apply(l) !== r) throw new TypeError(t + l);
|
|
2729
2729
|
for (var c = a(arguments, 1), f, d = function d() {
|
|
2730
2730
|
if (this instanceof f) {
|
|
2731
|
-
var
|
|
2732
|
-
return Object(
|
|
2731
|
+
var S = l.apply(this, o(c, arguments));
|
|
2732
|
+
return Object(S) === S ? S : this;
|
|
2733
2733
|
}
|
|
2734
2734
|
return l.apply(u, o(c, arguments));
|
|
2735
2735
|
}, v = n(0, l.length - c.length), y = [], m = 0; m < v; m++) y[m] = "$" + m;
|
|
@@ -2817,7 +2817,7 @@ function gs() {
|
|
|
2817
2817
|
n = ut();
|
|
2818
2818
|
return Nt = n.call(t, e), Nt;
|
|
2819
2819
|
}
|
|
2820
|
-
var
|
|
2820
|
+
var R,
|
|
2821
2821
|
vs = kn,
|
|
2822
2822
|
ws = Bi,
|
|
2823
2823
|
bs = ki,
|
|
@@ -2862,24 +2862,24 @@ var A,
|
|
|
2862
2862
|
Gn = zn(),
|
|
2863
2863
|
Fe = ar(),
|
|
2864
2864
|
me = {},
|
|
2865
|
-
Is = (typeof Uint8Array === "undefined" ? "undefined" : _typeof(Uint8Array)) > "u" || !D ?
|
|
2865
|
+
Is = (typeof Uint8Array === "undefined" ? "undefined" : _typeof(Uint8Array)) > "u" || !D ? R : D(Uint8Array),
|
|
2866
2866
|
ue = {
|
|
2867
2867
|
__proto__: null,
|
|
2868
|
-
"%AggregateError%": (typeof AggregateError === "undefined" ? "undefined" : _typeof(AggregateError)) > "u" ?
|
|
2868
|
+
"%AggregateError%": (typeof AggregateError === "undefined" ? "undefined" : _typeof(AggregateError)) > "u" ? R : AggregateError,
|
|
2869
2869
|
"%Array%": Array,
|
|
2870
|
-
"%ArrayBuffer%": (typeof ArrayBuffer === "undefined" ? "undefined" : _typeof(ArrayBuffer)) > "u" ?
|
|
2871
|
-
"%ArrayIteratorPrototype%": ye && D ? D([][Symbol.iterator]()) :
|
|
2872
|
-
"%AsyncFromSyncIteratorPrototype%":
|
|
2870
|
+
"%ArrayBuffer%": (typeof ArrayBuffer === "undefined" ? "undefined" : _typeof(ArrayBuffer)) > "u" ? R : ArrayBuffer,
|
|
2871
|
+
"%ArrayIteratorPrototype%": ye && D ? D([][Symbol.iterator]()) : R,
|
|
2872
|
+
"%AsyncFromSyncIteratorPrototype%": R,
|
|
2873
2873
|
"%AsyncFunction%": me,
|
|
2874
2874
|
"%AsyncGenerator%": me,
|
|
2875
2875
|
"%AsyncGeneratorFunction%": me,
|
|
2876
2876
|
"%AsyncIteratorPrototype%": me,
|
|
2877
|
-
"%Atomics%": (typeof Atomics === "undefined" ? "undefined" : _typeof(Atomics)) > "u" ?
|
|
2878
|
-
"%BigInt%": (typeof BigInt === "undefined" ? "undefined" : _typeof(BigInt)) > "u" ?
|
|
2879
|
-
"%BigInt64Array%": (typeof BigInt64Array === "undefined" ? "undefined" : _typeof(BigInt64Array)) > "u" ?
|
|
2880
|
-
"%BigUint64Array%": (typeof BigUint64Array === "undefined" ? "undefined" : _typeof(BigUint64Array)) > "u" ?
|
|
2877
|
+
"%Atomics%": (typeof Atomics === "undefined" ? "undefined" : _typeof(Atomics)) > "u" ? R : Atomics,
|
|
2878
|
+
"%BigInt%": (typeof BigInt === "undefined" ? "undefined" : _typeof(BigInt)) > "u" ? R : BigInt,
|
|
2879
|
+
"%BigInt64Array%": (typeof BigInt64Array === "undefined" ? "undefined" : _typeof(BigInt64Array)) > "u" ? R : BigInt64Array,
|
|
2880
|
+
"%BigUint64Array%": (typeof BigUint64Array === "undefined" ? "undefined" : _typeof(BigUint64Array)) > "u" ? R : BigUint64Array,
|
|
2881
2881
|
"%Boolean%": Boolean,
|
|
2882
|
-
"%DataView%": (typeof DataView === "undefined" ? "undefined" : _typeof(DataView)) > "u" ?
|
|
2882
|
+
"%DataView%": (typeof DataView === "undefined" ? "undefined" : _typeof(DataView)) > "u" ? R : DataView,
|
|
2883
2883
|
"%Date%": Date,
|
|
2884
2884
|
"%decodeURI%": decodeURI,
|
|
2885
2885
|
"%decodeURIComponent%": decodeURIComponent,
|
|
@@ -2889,51 +2889,51 @@ var A,
|
|
|
2889
2889
|
"%eval%": eval,
|
|
2890
2890
|
// eslint-disable-line no-eval
|
|
2891
2891
|
"%EvalError%": bs,
|
|
2892
|
-
"%Float16Array%": (typeof Float16Array === "undefined" ? "undefined" : _typeof(Float16Array)) > "u" ?
|
|
2893
|
-
"%Float32Array%": (typeof Float32Array === "undefined" ? "undefined" : _typeof(Float32Array)) > "u" ?
|
|
2894
|
-
"%Float64Array%": (typeof Float64Array === "undefined" ? "undefined" : _typeof(Float64Array)) > "u" ?
|
|
2895
|
-
"%FinalizationRegistry%": (typeof FinalizationRegistry === "undefined" ? "undefined" : _typeof(FinalizationRegistry)) > "u" ?
|
|
2892
|
+
"%Float16Array%": (typeof Float16Array === "undefined" ? "undefined" : _typeof(Float16Array)) > "u" ? R : Float16Array,
|
|
2893
|
+
"%Float32Array%": (typeof Float32Array === "undefined" ? "undefined" : _typeof(Float32Array)) > "u" ? R : Float32Array,
|
|
2894
|
+
"%Float64Array%": (typeof Float64Array === "undefined" ? "undefined" : _typeof(Float64Array)) > "u" ? R : Float64Array,
|
|
2895
|
+
"%FinalizationRegistry%": (typeof FinalizationRegistry === "undefined" ? "undefined" : _typeof(FinalizationRegistry)) > "u" ? R : FinalizationRegistry,
|
|
2896
2896
|
"%Function%": Kn,
|
|
2897
2897
|
"%GeneratorFunction%": me,
|
|
2898
|
-
"%Int8Array%": (typeof Int8Array === "undefined" ? "undefined" : _typeof(Int8Array)) > "u" ?
|
|
2899
|
-
"%Int16Array%": (typeof Int16Array === "undefined" ? "undefined" : _typeof(Int16Array)) > "u" ?
|
|
2900
|
-
"%Int32Array%": (typeof Int32Array === "undefined" ? "undefined" : _typeof(Int32Array)) > "u" ?
|
|
2898
|
+
"%Int8Array%": (typeof Int8Array === "undefined" ? "undefined" : _typeof(Int8Array)) > "u" ? R : Int8Array,
|
|
2899
|
+
"%Int16Array%": (typeof Int16Array === "undefined" ? "undefined" : _typeof(Int16Array)) > "u" ? R : Int16Array,
|
|
2900
|
+
"%Int32Array%": (typeof Int32Array === "undefined" ? "undefined" : _typeof(Int32Array)) > "u" ? R : Int32Array,
|
|
2901
2901
|
"%isFinite%": isFinite,
|
|
2902
2902
|
"%isNaN%": isNaN,
|
|
2903
|
-
"%IteratorPrototype%": ye && D ? D(D([][Symbol.iterator]())) :
|
|
2904
|
-
"%JSON%": (typeof JSON === "undefined" ? "undefined" : _typeof(JSON)) == "object" ? JSON :
|
|
2905
|
-
"%Map%": (typeof Map === "undefined" ? "undefined" : _typeof(Map)) > "u" ?
|
|
2906
|
-
"%MapIteratorPrototype%": (typeof Map === "undefined" ? "undefined" : _typeof(Map)) > "u" || !ye || !D ?
|
|
2903
|
+
"%IteratorPrototype%": ye && D ? D(D([][Symbol.iterator]())) : R,
|
|
2904
|
+
"%JSON%": (typeof JSON === "undefined" ? "undefined" : _typeof(JSON)) == "object" ? JSON : R,
|
|
2905
|
+
"%Map%": (typeof Map === "undefined" ? "undefined" : _typeof(Map)) > "u" ? R : Map,
|
|
2906
|
+
"%MapIteratorPrototype%": (typeof Map === "undefined" ? "undefined" : _typeof(Map)) > "u" || !ye || !D ? R : D((/* @__PURE__ */new Map())[Symbol.iterator]()),
|
|
2907
2907
|
"%Math%": Math,
|
|
2908
2908
|
"%Number%": Number,
|
|
2909
2909
|
"%Object%": vs,
|
|
2910
2910
|
"%Object.getOwnPropertyDescriptor%": _e,
|
|
2911
2911
|
"%parseFloat%": parseFloat,
|
|
2912
2912
|
"%parseInt%": parseInt,
|
|
2913
|
-
"%Promise%": (typeof Promise === "undefined" ? "undefined" : _typeof(Promise)) > "u" ?
|
|
2914
|
-
"%Proxy%": (typeof Proxy === "undefined" ? "undefined" : _typeof(Proxy)) > "u" ?
|
|
2913
|
+
"%Promise%": (typeof Promise === "undefined" ? "undefined" : _typeof(Promise)) > "u" ? R : Promise,
|
|
2914
|
+
"%Proxy%": (typeof Proxy === "undefined" ? "undefined" : _typeof(Proxy)) > "u" ? R : Proxy,
|
|
2915
2915
|
"%RangeError%": Ss,
|
|
2916
2916
|
"%ReferenceError%": Es,
|
|
2917
|
-
"%Reflect%": (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) > "u" ?
|
|
2917
|
+
"%Reflect%": (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) > "u" ? R : Reflect,
|
|
2918
2918
|
"%RegExp%": RegExp,
|
|
2919
|
-
"%Set%": (typeof Set === "undefined" ? "undefined" : _typeof(Set)) > "u" ?
|
|
2920
|
-
"%SetIteratorPrototype%": (typeof Set === "undefined" ? "undefined" : _typeof(Set)) > "u" || !ye || !D ?
|
|
2921
|
-
"%SharedArrayBuffer%": (typeof SharedArrayBuffer === "undefined" ? "undefined" : _typeof(SharedArrayBuffer)) > "u" ?
|
|
2919
|
+
"%Set%": (typeof Set === "undefined" ? "undefined" : _typeof(Set)) > "u" ? R : Set,
|
|
2920
|
+
"%SetIteratorPrototype%": (typeof Set === "undefined" ? "undefined" : _typeof(Set)) > "u" || !ye || !D ? R : D((/* @__PURE__ */new Set())[Symbol.iterator]()),
|
|
2921
|
+
"%SharedArrayBuffer%": (typeof SharedArrayBuffer === "undefined" ? "undefined" : _typeof(SharedArrayBuffer)) > "u" ? R : SharedArrayBuffer,
|
|
2922
2922
|
"%String%": String,
|
|
2923
|
-
"%StringIteratorPrototype%": ye && D ? D(""[Symbol.iterator]()) :
|
|
2924
|
-
"%Symbol%": ye ? Symbol :
|
|
2923
|
+
"%StringIteratorPrototype%": ye && D ? D(""[Symbol.iterator]()) : R,
|
|
2924
|
+
"%Symbol%": ye ? Symbol : R,
|
|
2925
2925
|
"%SyntaxError%": we,
|
|
2926
2926
|
"%ThrowTypeError%": $s,
|
|
2927
2927
|
"%TypedArray%": Is,
|
|
2928
2928
|
"%TypeError%": ge,
|
|
2929
|
-
"%Uint8Array%": (typeof Uint8Array === "undefined" ? "undefined" : _typeof(Uint8Array)) > "u" ?
|
|
2930
|
-
"%Uint8ClampedArray%": (typeof Uint8ClampedArray === "undefined" ? "undefined" : _typeof(Uint8ClampedArray)) > "u" ?
|
|
2931
|
-
"%Uint16Array%": (typeof Uint16Array === "undefined" ? "undefined" : _typeof(Uint16Array)) > "u" ?
|
|
2932
|
-
"%Uint32Array%": (typeof Uint32Array === "undefined" ? "undefined" : _typeof(Uint32Array)) > "u" ?
|
|
2929
|
+
"%Uint8Array%": (typeof Uint8Array === "undefined" ? "undefined" : _typeof(Uint8Array)) > "u" ? R : Uint8Array,
|
|
2930
|
+
"%Uint8ClampedArray%": (typeof Uint8ClampedArray === "undefined" ? "undefined" : _typeof(Uint8ClampedArray)) > "u" ? R : Uint8ClampedArray,
|
|
2931
|
+
"%Uint16Array%": (typeof Uint16Array === "undefined" ? "undefined" : _typeof(Uint16Array)) > "u" ? R : Uint16Array,
|
|
2932
|
+
"%Uint32Array%": (typeof Uint32Array === "undefined" ? "undefined" : _typeof(Uint32Array)) > "u" ? R : Uint32Array,
|
|
2933
2933
|
"%URIError%": Os,
|
|
2934
|
-
"%WeakMap%": (typeof WeakMap === "undefined" ? "undefined" : _typeof(WeakMap)) > "u" ?
|
|
2935
|
-
"%WeakRef%": (typeof WeakRef === "undefined" ? "undefined" : _typeof(WeakRef)) > "u" ?
|
|
2936
|
-
"%WeakSet%": (typeof WeakSet === "undefined" ? "undefined" : _typeof(WeakSet)) > "u" ?
|
|
2934
|
+
"%WeakMap%": (typeof WeakMap === "undefined" ? "undefined" : _typeof(WeakMap)) > "u" ? R : WeakMap,
|
|
2935
|
+
"%WeakRef%": (typeof WeakRef === "undefined" ? "undefined" : _typeof(WeakRef)) > "u" ? R : WeakRef,
|
|
2936
|
+
"%WeakSet%": (typeof WeakSet === "undefined" ? "undefined" : _typeof(WeakSet)) > "u" ? R : WeakSet,
|
|
2937
2937
|
"%Function.prototype.call%": Fe,
|
|
2938
2938
|
"%Function.prototype.apply%": Gn,
|
|
2939
2939
|
"%Object.defineProperty%": Ns,
|
|
@@ -3391,25 +3391,25 @@ var Us = function t(e) {
|
|
|
3391
3391
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || _typeof(e) == "symbol" || typeof e == "bigint";
|
|
3392
3392
|
},
|
|
3393
3393
|
Ut = {},
|
|
3394
|
-
$l = function t(e, n, r, o, a, i, s, u, l, c, f, d, v, y, m, h,
|
|
3395
|
-
for (var g = e, T =
|
|
3394
|
+
$l = function t(e, n, r, o, a, i, s, u, l, c, f, d, v, y, m, h, S, O) {
|
|
3395
|
+
for (var g = e, T = O, x = 0, I = false; (T = T.get(Ut)) !== undefined && !I;) {
|
|
3396
3396
|
var L = T.get(e);
|
|
3397
|
-
if (
|
|
3398
|
-
if (L ===
|
|
3397
|
+
if (x += 1, _typeof(L) < "u") {
|
|
3398
|
+
if (L === x) throw new RangeError("Cyclic object value");
|
|
3399
3399
|
I = true;
|
|
3400
3400
|
}
|
|
3401
|
-
_typeof(T.get(Ut)) > "u" && (
|
|
3401
|
+
_typeof(T.get(Ut)) > "u" && (x = 0);
|
|
3402
3402
|
}
|
|
3403
3403
|
if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && te(g) && (g = Ke.maybeMap(g, function (X) {
|
|
3404
3404
|
return X instanceof Date ? v(X) : X;
|
|
3405
3405
|
})), g === null) {
|
|
3406
|
-
if (i) return l && !h ? l(n, F.encoder,
|
|
3406
|
+
if (i) return l && !h ? l(n, F.encoder, S, "key", y) : n;
|
|
3407
3407
|
g = "";
|
|
3408
3408
|
}
|
|
3409
3409
|
if (Nl(g) || Ke.isBuffer(g)) {
|
|
3410
3410
|
if (l) {
|
|
3411
|
-
var z = h ? n : l(n, F.encoder,
|
|
3412
|
-
return [m(z) + "=" + m(l(g, F.encoder,
|
|
3411
|
+
var z = h ? n : l(n, F.encoder, S, "key", y);
|
|
3412
|
+
return [m(z) + "=" + m(l(g, F.encoder, S, "value", y))];
|
|
3413
3413
|
}
|
|
3414
3414
|
return [m(n) + "=" + m(String(g))];
|
|
3415
3415
|
}
|
|
@@ -3419,21 +3419,21 @@ var Us = function t(e) {
|
|
|
3419
3419
|
if (r === "comma" && te(g)) h && l && (g = Ke.maybeMap(g, l)), E = [{
|
|
3420
3420
|
value: g.length > 0 ? g.join(",") || null : undefined
|
|
3421
3421
|
}];else if (te(c)) E = c;else {
|
|
3422
|
-
var
|
|
3423
|
-
E = f ?
|
|
3422
|
+
var A = Object.keys(g);
|
|
3423
|
+
E = f ? A.sort(f) : A;
|
|
3424
3424
|
}
|
|
3425
3425
|
var C = u ? String(n).replace(/\./g, "%2E") : String(n),
|
|
3426
|
-
|
|
3427
|
-
if (a && te(g) && g.length === 0) return
|
|
3426
|
+
P = o && te(g) && g.length === 1 ? C + "[]" : C;
|
|
3427
|
+
if (a && te(g) && g.length === 0) return P + "[]";
|
|
3428
3428
|
for (var N = 0; N < E.length; ++N) {
|
|
3429
3429
|
var w = E[N],
|
|
3430
3430
|
H = _typeof(w) == "object" && w && _typeof(w.value) < "u" ? w.value : g[w];
|
|
3431
3431
|
if (!(s && H === null)) {
|
|
3432
3432
|
var B = d && u ? String(w).replace(/\./g, "%2E") : String(w),
|
|
3433
|
-
k = te(g) ? typeof r == "function" ? r(
|
|
3434
|
-
|
|
3433
|
+
k = te(g) ? typeof r == "function" ? r(P, B) : P : P + (d ? "." + B : "[" + B + "]");
|
|
3434
|
+
O.set(e, x);
|
|
3435
3435
|
var W = eo();
|
|
3436
|
-
W.set(Ut,
|
|
3436
|
+
W.set(Ut, O), ro(G, t(H, k, r, o, a, i, s, u, r === "comma" && h && te(g) ? null : l, c, f, d, v, y, m, h, S, W));
|
|
3437
3437
|
}
|
|
3438
3438
|
}
|
|
3439
3439
|
return G;
|
|
@@ -3779,7 +3779,7 @@ var Vl = 1e3,
|
|
|
3779
3779
|
}
|
|
3780
3780
|
}, _callee9);
|
|
3781
3781
|
}));
|
|
3782
|
-
return function an(
|
|
3782
|
+
return function an(_x10, _x11) {
|
|
3783
3783
|
return _ref21.apply(this, arguments);
|
|
3784
3784
|
};
|
|
3785
3785
|
}();
|
|
@@ -3796,7 +3796,12 @@ var Ql = 5e3,
|
|
|
3796
3796
|
var t = "/login";
|
|
3797
3797
|
location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = false, (e = window.top) != null && e.vueRouter ? (n = window.top) == null || n.vueRouter.replace(t) : window.location.replace("/#".concat(t)));
|
|
3798
3798
|
},
|
|
3799
|
-
Xl =
|
|
3799
|
+
Xl = function Xl() {
|
|
3800
|
+
return sso.getQuery("code") || "" || ao ? false : io() ? (oo ? sso.login(_objectSpread(_objectSpread({}, sso.getTokenParams), {}, {
|
|
3801
|
+
redirect_uri: sso.real_uri
|
|
3802
|
+
})) : so(), true) : false;
|
|
3803
|
+
},
|
|
3804
|
+
Yl = /*#__PURE__*/function () {
|
|
3800
3805
|
var _ref22 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(t) {
|
|
3801
3806
|
var _t$data;
|
|
3802
3807
|
var n;
|
|
@@ -3807,13 +3812,13 @@ var Ql = 5e3,
|
|
|
3807
3812
|
}
|
|
3808
3813
|
}, _callee0);
|
|
3809
3814
|
}));
|
|
3810
|
-
return function
|
|
3815
|
+
return function Yl(_x12) {
|
|
3811
3816
|
return _ref22.apply(this, arguments);
|
|
3812
3817
|
};
|
|
3813
3818
|
}(),
|
|
3814
|
-
|
|
3819
|
+
Zl = /*#__PURE__*/function () {
|
|
3815
3820
|
var _ref23 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(t, e) {
|
|
3816
|
-
var m, h,
|
|
3821
|
+
var y, m, h, S, _i18nBridge$getI18nBr, n, r, o, a, i, s, u, l, _ref24, O, g, T, _ref25, _ref26, _O, _g, _T, f, d, v, _t10, _t11, _t12;
|
|
3817
3822
|
return _regenerator().w(function (_context10) {
|
|
3818
3823
|
while (1) switch (_context10.n) {
|
|
3819
3824
|
case 0:
|
|
@@ -3824,33 +3829,31 @@ var Ql = 5e3,
|
|
|
3824
3829
|
404: n("接口地址未找到"),
|
|
3825
3830
|
500: n("服务器内部错误")
|
|
3826
3831
|
};
|
|
3827
|
-
s = ((
|
|
3828
|
-
u =
|
|
3829
|
-
if (!(
|
|
3832
|
+
s = ((y = t == null ? undefined : t.response) == null ? undefined : y.data) || {};
|
|
3833
|
+
u = s == null ? undefined : s.code, l = (m = t.response) == null ? undefined : m.status;
|
|
3834
|
+
if (!(u === 401 || l === 401)) {
|
|
3830
3835
|
_context10.n = 6;
|
|
3831
3836
|
break;
|
|
3832
3837
|
}
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
g = (_ref24 = e == null ? undefined : e.i18n) !== null && _ref24 !== void 0 ? _ref24 : true;
|
|
3837
|
-
if (!(rn && g && s != null && s.status)) {
|
|
3838
|
+
Xl(), r = u || l, a = s;
|
|
3839
|
+
O = (_ref24 = e == null ? undefined : e.i18n) !== null && _ref24 !== void 0 ? _ref24 : true;
|
|
3840
|
+
if (!(rn && O && s != null && s.status)) {
|
|
3838
3841
|
_context10.n = 4;
|
|
3839
3842
|
break;
|
|
3840
3843
|
}
|
|
3841
|
-
|
|
3842
|
-
if (!(
|
|
3844
|
+
g = !(s != null && s.data) || !s.data.length ? [] : s.data, T = n.apply(void 0, [s.status].concat(_toConsumableArray(g)));
|
|
3845
|
+
if (!(T === s.status)) {
|
|
3843
3846
|
_context10.n = 2;
|
|
3844
3847
|
break;
|
|
3845
3848
|
}
|
|
3846
3849
|
_context10.n = 1;
|
|
3847
|
-
return an(n, s.status,
|
|
3850
|
+
return an(n, s.status, g);
|
|
3848
3851
|
case 1:
|
|
3849
3852
|
_t10 = _context10.v;
|
|
3850
3853
|
_context10.n = 3;
|
|
3851
3854
|
break;
|
|
3852
3855
|
case 2:
|
|
3853
|
-
_t10 =
|
|
3856
|
+
_t10 = T;
|
|
3854
3857
|
case 3:
|
|
3855
3858
|
o = _t10;
|
|
3856
3859
|
_context10.n = 5;
|
|
@@ -3871,13 +3874,13 @@ var Ql = 5e3,
|
|
|
3871
3874
|
break;
|
|
3872
3875
|
}
|
|
3873
3876
|
_context10.n = 7;
|
|
3874
|
-
return new Promise(function (
|
|
3875
|
-
var
|
|
3876
|
-
|
|
3877
|
+
return new Promise(function (O) {
|
|
3878
|
+
var g = new FileReader();
|
|
3879
|
+
g.readAsText(s, "utf-8"), g.onload = function () {
|
|
3877
3880
|
try {
|
|
3878
|
-
|
|
3881
|
+
O(JSON.parse(g.result || "{}"));
|
|
3879
3882
|
} catch (_unused20) {
|
|
3880
|
-
|
|
3883
|
+
O({
|
|
3881
3884
|
code: 400,
|
|
3882
3885
|
msg: n("解析错误")
|
|
3883
3886
|
});
|
|
@@ -3892,24 +3895,24 @@ var Ql = 5e3,
|
|
|
3892
3895
|
break;
|
|
3893
3896
|
}
|
|
3894
3897
|
r = s.code, a = s;
|
|
3895
|
-
|
|
3896
|
-
if (!(rn &&
|
|
3898
|
+
_O = (_ref25 = e == null ? undefined : e.i18n) !== null && _ref25 !== void 0 ? _ref25 : true;
|
|
3899
|
+
if (!(rn && _O && s != null && s.status)) {
|
|
3897
3900
|
_context10.n = 12;
|
|
3898
3901
|
break;
|
|
3899
3902
|
}
|
|
3900
|
-
|
|
3901
|
-
if (!(
|
|
3903
|
+
_g = !(s != null && s.data) || !s.data.length ? [] : s.data, _T = n.apply(void 0, [s.status].concat(_toConsumableArray(_g)));
|
|
3904
|
+
if (!(_T === s.status)) {
|
|
3902
3905
|
_context10.n = 10;
|
|
3903
3906
|
break;
|
|
3904
3907
|
}
|
|
3905
3908
|
_context10.n = 9;
|
|
3906
|
-
return an(n, s.status,
|
|
3909
|
+
return an(n, s.status, _g);
|
|
3907
3910
|
case 9:
|
|
3908
3911
|
_t12 = _context10.v;
|
|
3909
3912
|
_context10.n = 11;
|
|
3910
3913
|
break;
|
|
3911
3914
|
case 10:
|
|
3912
|
-
_t12 =
|
|
3915
|
+
_t12 = _T;
|
|
3913
3916
|
case 11:
|
|
3914
3917
|
o = _t12;
|
|
3915
3918
|
_context10.n = 13;
|
|
@@ -3929,11 +3932,11 @@ var Ql = 5e3,
|
|
|
3929
3932
|
t.request ? (r = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = n("网络异常,请检查您的网络情况")) : (r = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = n("请求配置异常"));
|
|
3930
3933
|
case 17:
|
|
3931
3934
|
e != null && e.customErrorMessage && (o = e == null ? undefined : e.customErrorMessage(o, t));
|
|
3932
|
-
|
|
3933
|
-
return _context10.a(2, (!(e != null && e.ignoreErrorMessage) && o && (!
|
|
3935
|
+
f = Date.now(), d = o === nn, v = f - on < Vl;
|
|
3936
|
+
return _context10.a(2, (!(e != null && e.ignoreErrorMessage) && o && (!d || !v) && ((S = (h = window.DasMessage) == null ? undefined : h.error) == null || S.call(h, {
|
|
3934
3937
|
message: o,
|
|
3935
3938
|
showClose: true
|
|
3936
|
-
}), nn = o, on =
|
|
3939
|
+
}), nn = o, on = f), _objectSpread(_objectSpread({}, a), {}, {
|
|
3937
3940
|
code: r,
|
|
3938
3941
|
msg: o,
|
|
3939
3942
|
error: t
|
|
@@ -3941,7 +3944,7 @@ var Ql = 5e3,
|
|
|
3941
3944
|
}
|
|
3942
3945
|
}, _callee1);
|
|
3943
3946
|
}));
|
|
3944
|
-
return function
|
|
3947
|
+
return function Zl(_x13, _x14) {
|
|
3945
3948
|
return _ref23.apply(this, arguments);
|
|
3946
3949
|
};
|
|
3947
3950
|
}();
|
|
@@ -4006,7 +4009,7 @@ function J(t, e) {
|
|
|
4006
4009
|
indices: false
|
|
4007
4010
|
});
|
|
4008
4011
|
}
|
|
4009
|
-
}), r.onSuccess || (r.onSuccess =
|
|
4012
|
+
}), r.onSuccess || (r.onSuccess = Yl), r.onError || (r.onError = Zl), ((_r$csrf = r.csrf) !== null && _r$csrf !== void 0 ? _r$csrf : false) && (r.headers["csrf-token"] = tn.get("csrf-token"));
|
|
4010
4013
|
u = r.params || {};
|
|
4011
4014
|
if (u.project === undefined) {
|
|
4012
4015
|
_f2 = 0;
|
|
@@ -4023,7 +4026,7 @@ function J(t, e) {
|
|
|
4023
4026
|
}
|
|
4024
4027
|
}, _callee10);
|
|
4025
4028
|
}));
|
|
4026
|
-
return function (
|
|
4029
|
+
return function (_x15) {
|
|
4027
4030
|
return _ref27.apply(this, arguments);
|
|
4028
4031
|
};
|
|
4029
4032
|
}());
|
|
@@ -4033,9 +4036,9 @@ J("/api/iot/".concat(V));
|
|
|
4033
4036
|
J("/api/iot-device/thingmodel/".concat(V)), J("/api/iot-device/devicemanage/".concat(V)), J("/api/iot-device/product/".concat(V)), J("/api/iot-device/product-storage/".concat(V));
|
|
4034
4037
|
J("/api/device-relation/deviceproject/".concat(V)), J("/api/device-relation/devicerule/".concat(V)), J("/api/device-relation/project/".concat(V));
|
|
4035
4038
|
var cr = J("/api/oss/minio/".concat(V)),
|
|
4036
|
-
|
|
4039
|
+
ec = J("/api/progress/accessor/".concat(V));
|
|
4037
4040
|
J("/api/dms/analysis/".concat(V));
|
|
4038
|
-
var
|
|
4041
|
+
var tc = function tc() {
|
|
4039
4042
|
var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 21;
|
|
4040
4043
|
var e = "",
|
|
4041
4044
|
n = crypto.getRandomValues(new Uint8Array(t));
|
|
@@ -4045,15 +4048,15 @@ var ec = function ec() {
|
|
|
4045
4048
|
}
|
|
4046
4049
|
return e;
|
|
4047
4050
|
};
|
|
4048
|
-
var
|
|
4049
|
-
|
|
4051
|
+
var rc = cr.get("token"),
|
|
4052
|
+
nc = cr.post("put-object", function (t) {
|
|
4050
4053
|
return t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t;
|
|
4051
4054
|
}),
|
|
4052
|
-
|
|
4055
|
+
oc = cr.post("upload-objects", function (t) {
|
|
4053
4056
|
return t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t;
|
|
4054
4057
|
}),
|
|
4055
|
-
|
|
4056
|
-
|
|
4058
|
+
ac = ec.get("progress"),
|
|
4059
|
+
Sc = function Sc() {
|
|
4057
4060
|
var t = vue.ref(false),
|
|
4058
4061
|
e = vue.ref(""),
|
|
4059
4062
|
n = vue.ref(0),
|
|
@@ -4074,22 +4077,22 @@ var tc = cr.get("token"),
|
|
|
4074
4077
|
},
|
|
4075
4078
|
h = /*#__PURE__*/function () {
|
|
4076
4079
|
var _ref29 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11() {
|
|
4077
|
-
var _yield$
|
|
4080
|
+
var _yield$rc$run, _yield$rc$run2, E, A;
|
|
4078
4081
|
return _regenerator().w(function (_context12) {
|
|
4079
4082
|
while (1) switch (_context12.n) {
|
|
4080
4083
|
case 0:
|
|
4081
4084
|
_context12.n = 1;
|
|
4082
|
-
return
|
|
4085
|
+
return rc().run();
|
|
4083
4086
|
case 1:
|
|
4084
|
-
_yield$
|
|
4085
|
-
_yield$
|
|
4086
|
-
E = _yield$
|
|
4087
|
-
|
|
4087
|
+
_yield$rc$run = _context12.v;
|
|
4088
|
+
_yield$rc$run2 = _slicedToArray(_yield$rc$run, 2);
|
|
4089
|
+
E = _yield$rc$run2[0];
|
|
4090
|
+
A = _yield$rc$run2[1];
|
|
4088
4091
|
return _context12.a(2, E ? {
|
|
4089
4092
|
stauts: false
|
|
4090
4093
|
} : {
|
|
4091
4094
|
status: true,
|
|
4092
|
-
data:
|
|
4095
|
+
data: A
|
|
4093
4096
|
});
|
|
4094
4097
|
}
|
|
4095
4098
|
}, _callee11);
|
|
@@ -4098,8 +4101,8 @@ var tc = cr.get("token"),
|
|
|
4098
4101
|
return _ref29.apply(this, arguments);
|
|
4099
4102
|
};
|
|
4100
4103
|
}(),
|
|
4101
|
-
|
|
4102
|
-
return new Promise(function (
|
|
4104
|
+
S = function S(E) {
|
|
4105
|
+
return new Promise(function (A, C) {
|
|
4103
4106
|
var N = [];
|
|
4104
4107
|
var w = 0;
|
|
4105
4108
|
for (; w < E.size;) {
|
|
@@ -4109,12 +4112,12 @@ var tc = cr.get("token"),
|
|
|
4109
4112
|
var H = new Blob(N, {
|
|
4110
4113
|
type: E.type
|
|
4111
4114
|
});
|
|
4112
|
-
|
|
4115
|
+
A(H);
|
|
4113
4116
|
});
|
|
4114
4117
|
},
|
|
4115
|
-
|
|
4116
|
-
var _ref30 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee13(E,
|
|
4117
|
-
var
|
|
4118
|
+
O = /*#__PURE__*/function () {
|
|
4119
|
+
var _ref30 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee13(E, A, C) {
|
|
4120
|
+
var P,
|
|
4118
4121
|
N,
|
|
4119
4122
|
w,
|
|
4120
4123
|
ur,
|
|
@@ -4138,10 +4141,10 @@ var tc = cr.get("token"),
|
|
|
4138
4141
|
return _regenerator().w(function (_context14) {
|
|
4139
4142
|
while (1) switch (_context14.n) {
|
|
4140
4143
|
case 0:
|
|
4141
|
-
|
|
4144
|
+
P = _args14.length > 3 && _args14[3] !== undefined ? _args14[3] : true;
|
|
4142
4145
|
N = _args14.length > 4 && _args14[4] !== undefined ? _args14[4] : "";
|
|
4143
4146
|
w = _args14.length > 5 && _args14[5] !== undefined ? _args14[5] : false;
|
|
4144
|
-
d = N, v.value = "import",
|
|
4147
|
+
d = N, v.value = "import", P && (r.value = "normal", n.value = 0, e.value = index.t("导入进度"), t.value = true, i.value = ""), y = A;
|
|
4145
4148
|
_context14.n = 1;
|
|
4146
4149
|
return h();
|
|
4147
4150
|
case 1:
|
|
@@ -4153,21 +4156,21 @@ var tc = cr.get("token"),
|
|
|
4153
4156
|
return _context14.a(2);
|
|
4154
4157
|
case 2:
|
|
4155
4158
|
B = H.data, k = null, W = C.autoContentType, X = C.bucketName, Le = C.importFileName;
|
|
4156
|
-
lo = w ?
|
|
4159
|
+
lo = w ? oc : nc;
|
|
4157
4160
|
if (!w) {
|
|
4158
4161
|
_context14.n = 4;
|
|
4159
4162
|
break;
|
|
4160
4163
|
}
|
|
4161
4164
|
oe = [];
|
|
4162
4165
|
_context14.n = 3;
|
|
4163
|
-
return
|
|
4166
|
+
return A.forEach(/*#__PURE__*/function () {
|
|
4164
4167
|
var _ref31 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12(Ue) {
|
|
4165
4168
|
var dt;
|
|
4166
4169
|
return _regenerator().w(function (_context13) {
|
|
4167
4170
|
while (1) switch (_context13.n) {
|
|
4168
4171
|
case 0:
|
|
4169
4172
|
_context13.n = 1;
|
|
4170
|
-
return
|
|
4173
|
+
return S(Ue);
|
|
4171
4174
|
case 1:
|
|
4172
4175
|
dt = _context13.v;
|
|
4173
4176
|
oe.push(dt);
|
|
@@ -4176,7 +4179,7 @@ var tc = cr.get("token"),
|
|
|
4176
4179
|
}
|
|
4177
4180
|
}, _callee12);
|
|
4178
4181
|
}));
|
|
4179
|
-
return function (
|
|
4182
|
+
return function (_x19) {
|
|
4180
4183
|
return _ref31.apply(this, arguments);
|
|
4181
4184
|
};
|
|
4182
4185
|
}());
|
|
@@ -4186,7 +4189,7 @@ var tc = cr.get("token"),
|
|
|
4186
4189
|
k.append("secretAccessKey", B.secretAccessKey);
|
|
4187
4190
|
k.append("sessionToken", B.sessionToken);
|
|
4188
4191
|
k.append("bucketName", X);
|
|
4189
|
-
|
|
4192
|
+
A.forEach(function (Ue, dt) {
|
|
4190
4193
|
k.append("file", oe[dt]);
|
|
4191
4194
|
});
|
|
4192
4195
|
Le.forEach(function (Ue) {
|
|
@@ -4196,7 +4199,7 @@ var tc = cr.get("token"),
|
|
|
4196
4199
|
break;
|
|
4197
4200
|
case 4:
|
|
4198
4201
|
_context14.n = 5;
|
|
4199
|
-
return
|
|
4202
|
+
return S(A);
|
|
4200
4203
|
case 5:
|
|
4201
4204
|
_oe = _context14.v;
|
|
4202
4205
|
k = {
|
|
@@ -4223,7 +4226,7 @@ var tc = cr.get("token"),
|
|
|
4223
4226
|
return _context14.a(2, t.value = false);
|
|
4224
4227
|
case 8:
|
|
4225
4228
|
_context14.n = 9;
|
|
4226
|
-
return
|
|
4229
|
+
return sc(uo.data);
|
|
4227
4230
|
case 9:
|
|
4228
4231
|
Y = _context14.v;
|
|
4229
4232
|
if (!(!w && (Y == null ? undefined : Y.statusCode) != 200 || w && Y != null && Y.some(function (oe) {
|
|
@@ -4243,7 +4246,7 @@ var tc = cr.get("token"),
|
|
|
4243
4246
|
return E == null ? undefined : E(Y);
|
|
4244
4247
|
case 11:
|
|
4245
4248
|
pt = _context14.v;
|
|
4246
|
-
if (!
|
|
4249
|
+
if (!P) {
|
|
4247
4250
|
_context14.n = 13;
|
|
4248
4251
|
break;
|
|
4249
4252
|
}
|
|
@@ -4254,7 +4257,7 @@ var tc = cr.get("token"),
|
|
|
4254
4257
|
t.value = false, r.value = "error";
|
|
4255
4258
|
return _context14.a(2);
|
|
4256
4259
|
case 12:
|
|
4257
|
-
e.value = index.t("导入进度"), t.value = true,
|
|
4260
|
+
e.value = index.t("导入进度"), t.value = true, x(pt.taskId, "import", "");
|
|
4258
4261
|
_context14.n = 15;
|
|
4259
4262
|
break;
|
|
4260
4263
|
case 13:
|
|
@@ -4274,57 +4277,57 @@ var tc = cr.get("token"),
|
|
|
4274
4277
|
}
|
|
4275
4278
|
}, _callee13);
|
|
4276
4279
|
}));
|
|
4277
|
-
return function
|
|
4280
|
+
return function O(_x16, _x17, _x18) {
|
|
4278
4281
|
return _ref30.apply(this, arguments);
|
|
4279
4282
|
};
|
|
4280
4283
|
}(),
|
|
4281
4284
|
g = /*#__PURE__*/function () {
|
|
4282
4285
|
var _ref32 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14(E) {
|
|
4283
|
-
var
|
|
4286
|
+
var A,
|
|
4284
4287
|
C,
|
|
4285
|
-
|
|
4288
|
+
P,
|
|
4286
4289
|
_args15 = arguments;
|
|
4287
4290
|
return _regenerator().w(function (_context15) {
|
|
4288
4291
|
while (1) switch (_context15.n) {
|
|
4289
4292
|
case 0:
|
|
4290
|
-
|
|
4293
|
+
A = _args15.length > 1 && _args15[1] !== undefined ? _args15[1] : "";
|
|
4291
4294
|
C = _args15.length > 2 && _args15[2] !== undefined ? _args15[2] : "";
|
|
4292
4295
|
r.value = "normal", n.value = 0, e.value = C || index.t("导出进度"), t.value = true;
|
|
4293
4296
|
_context15.n = 1;
|
|
4294
4297
|
return E == null ? undefined : E();
|
|
4295
4298
|
case 1:
|
|
4296
|
-
|
|
4297
|
-
if (
|
|
4299
|
+
P = _context15.v;
|
|
4300
|
+
if (P.status) {
|
|
4298
4301
|
_context15.n = 2;
|
|
4299
4302
|
break;
|
|
4300
4303
|
}
|
|
4301
4304
|
t.value = false, r.value = "error";
|
|
4302
4305
|
return _context15.a(2);
|
|
4303
4306
|
case 2:
|
|
4304
|
-
|
|
4307
|
+
x(P.taskId, "action", "");
|
|
4305
4308
|
case 3:
|
|
4306
4309
|
return _context15.a(2);
|
|
4307
4310
|
}
|
|
4308
4311
|
}, _callee14);
|
|
4309
4312
|
}));
|
|
4310
|
-
return function g(
|
|
4313
|
+
return function g(_x20) {
|
|
4311
4314
|
return _ref32.apply(this, arguments);
|
|
4312
4315
|
};
|
|
4313
4316
|
}(),
|
|
4314
4317
|
T = /*#__PURE__*/function () {
|
|
4315
4318
|
var _ref33 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee15(E) {
|
|
4316
|
-
var
|
|
4319
|
+
var A,
|
|
4317
4320
|
C,
|
|
4318
|
-
|
|
4321
|
+
P,
|
|
4319
4322
|
N,
|
|
4320
4323
|
_args16 = arguments;
|
|
4321
4324
|
return _regenerator().w(function (_context16) {
|
|
4322
4325
|
while (1) switch (_context16.n) {
|
|
4323
4326
|
case 0:
|
|
4324
|
-
|
|
4327
|
+
A = _args16.length > 1 && _args16[1] !== undefined ? _args16[1] : "";
|
|
4325
4328
|
C = _args16.length > 2 && _args16[2] !== undefined ? _args16[2] : "";
|
|
4326
|
-
|
|
4327
|
-
v.value = "export",
|
|
4329
|
+
P = _args16.length > 3 && _args16[3] !== undefined ? _args16[3] : true;
|
|
4330
|
+
v.value = "export", P && (r.value = "normal", n.value = 0, e.value = index.t("导出进度"), t.value = true);
|
|
4328
4331
|
_context16.n = 1;
|
|
4329
4332
|
return E == null ? undefined : E();
|
|
4330
4333
|
case 1:
|
|
@@ -4336,31 +4339,31 @@ var tc = cr.get("token"),
|
|
|
4336
4339
|
t.value = false, r.value = "error";
|
|
4337
4340
|
return _context16.a(2);
|
|
4338
4341
|
case 2:
|
|
4339
|
-
et().format("YYYYMMDDHHmmss") + "",
|
|
4342
|
+
et().format("YYYYMMDDHHmmss") + "", x(N.taskId, "export", A || "", C);
|
|
4340
4343
|
case 3:
|
|
4341
4344
|
return _context16.a(2);
|
|
4342
4345
|
}
|
|
4343
4346
|
}, _callee15);
|
|
4344
4347
|
}));
|
|
4345
|
-
return function T(
|
|
4348
|
+
return function T(_x21) {
|
|
4346
4349
|
return _ref33.apply(this, arguments);
|
|
4347
4350
|
};
|
|
4348
4351
|
}(),
|
|
4349
|
-
|
|
4350
|
-
var _ref34 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee16(E,
|
|
4351
|
-
var
|
|
4352
|
+
x = /*#__PURE__*/function () {
|
|
4353
|
+
var _ref34 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee16(E, A, C) {
|
|
4354
|
+
var P,
|
|
4352
4355
|
_args17 = arguments;
|
|
4353
4356
|
return _regenerator().w(function (_context17) {
|
|
4354
4357
|
while (1) switch (_context17.n) {
|
|
4355
4358
|
case 0:
|
|
4356
|
-
|
|
4357
|
-
o.value = true, _L2(E,
|
|
4359
|
+
P = _args17.length > 3 && _args17[3] !== undefined ? _args17[3] : "";
|
|
4360
|
+
o.value = true, _L2(E, A, C, P), a = setTimeout(function () {}, 50);
|
|
4358
4361
|
case 1:
|
|
4359
4362
|
return _context17.a(2);
|
|
4360
4363
|
}
|
|
4361
4364
|
}, _callee16);
|
|
4362
4365
|
}));
|
|
4363
|
-
return function
|
|
4366
|
+
return function x(_x22, _x23, _x24) {
|
|
4364
4367
|
return _ref34.apply(this, arguments);
|
|
4365
4368
|
};
|
|
4366
4369
|
}(),
|
|
@@ -4369,14 +4372,14 @@ var tc = cr.get("token"),
|
|
|
4369
4372
|
},
|
|
4370
4373
|
_L2 = /*#__PURE__*/function () {
|
|
4371
4374
|
var _ref35 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee17(E) {
|
|
4372
|
-
var
|
|
4375
|
+
var A,
|
|
4373
4376
|
C,
|
|
4374
|
-
|
|
4377
|
+
P,
|
|
4375
4378
|
H,
|
|
4376
4379
|
B,
|
|
4377
4380
|
k,
|
|
4378
|
-
_yield$
|
|
4379
|
-
_yield$
|
|
4381
|
+
_yield$ac$run,
|
|
4382
|
+
_yield$ac$run2,
|
|
4380
4383
|
N,
|
|
4381
4384
|
w,
|
|
4382
4385
|
W,
|
|
@@ -4388,18 +4391,18 @@ var tc = cr.get("token"),
|
|
|
4388
4391
|
return _regenerator().w(function (_context18) {
|
|
4389
4392
|
while (1) switch (_context18.n) {
|
|
4390
4393
|
case 0:
|
|
4391
|
-
|
|
4394
|
+
A = _args18.length > 1 && _args18[1] !== undefined ? _args18[1] : "export";
|
|
4392
4395
|
C = _args18.length > 2 ? _args18[2] : undefined;
|
|
4393
|
-
|
|
4396
|
+
P = _args18.length > 3 && _args18[3] !== undefined ? _args18[3] : "";
|
|
4394
4397
|
_context18.n = 1;
|
|
4395
|
-
return
|
|
4398
|
+
return ac("", {
|
|
4396
4399
|
url: "progress/".concat(E)
|
|
4397
4400
|
}).run();
|
|
4398
4401
|
case 1:
|
|
4399
|
-
_yield$
|
|
4400
|
-
_yield$
|
|
4401
|
-
N = _yield$
|
|
4402
|
-
w = _yield$
|
|
4402
|
+
_yield$ac$run = _context18.v;
|
|
4403
|
+
_yield$ac$run2 = _slicedToArray(_yield$ac$run, 2);
|
|
4404
|
+
N = _yield$ac$run2[0];
|
|
4405
|
+
w = _yield$ac$run2[1];
|
|
4403
4406
|
if (!N) {
|
|
4404
4407
|
_context18.n = 2;
|
|
4405
4408
|
break;
|
|
@@ -4411,7 +4414,7 @@ var tc = cr.get("token"),
|
|
|
4411
4414
|
_context18.n = 11;
|
|
4412
4415
|
break;
|
|
4413
4416
|
}
|
|
4414
|
-
if (!(i.value = w, o.value = false, I(),
|
|
4417
|
+
if (!(i.value = w, o.value = false, I(), A == "export")) {
|
|
4415
4418
|
_context18.n = 6;
|
|
4416
4419
|
break;
|
|
4417
4420
|
}
|
|
@@ -4426,11 +4429,11 @@ var tc = cr.get("token"),
|
|
|
4426
4429
|
W = _context18.v;
|
|
4427
4430
|
X = ((H = W == null ? undefined : W.split("/")) == null ? undefined : H.pop()) || "";
|
|
4428
4431
|
Le = C || X;
|
|
4429
|
-
sn("".concat(config.getConfig().baseURL, "/oss").concat(w.filePath), Le,
|
|
4432
|
+
sn("".concat(config.getConfig().baseURL, "/oss").concat(w.filePath), Le, P), o.value = false;
|
|
4430
4433
|
_context18.n = 5;
|
|
4431
4434
|
break;
|
|
4432
4435
|
case 4:
|
|
4433
|
-
w.status == 2 && (l.value = w.message || (
|
|
4436
|
+
w.status == 2 && (l.value = w.message || (A == "export" ? index.t("导出失败") : index.t("导入失败")), (B = window.DasMessage) == null || B.error({
|
|
4434
4437
|
message: l.value,
|
|
4435
4438
|
grouping: true,
|
|
4436
4439
|
repeatNum: 1
|
|
@@ -4439,7 +4442,7 @@ var tc = cr.get("token"),
|
|
|
4439
4442
|
_context18.n = 10;
|
|
4440
4443
|
break;
|
|
4441
4444
|
case 6:
|
|
4442
|
-
if (!(
|
|
4445
|
+
if (!(A == "import")) {
|
|
4443
4446
|
_context18.n = 9;
|
|
4444
4447
|
break;
|
|
4445
4448
|
}
|
|
@@ -4455,41 +4458,41 @@ var tc = cr.get("token"),
|
|
|
4455
4458
|
_X = ((k = _W == null ? undefined : _W.split("/")) == null ? undefined : k.pop()) || "";
|
|
4456
4459
|
s.value = d || _X, u.value = y.sizeText, l.value = index.t("部分数据校验不通过,请下载附件并修改,重新导入!"), f.value = "".concat(config.getConfig().baseURL, "/oss/").concat(w == null ? undefined : w.filePath);
|
|
4457
4460
|
case 8:
|
|
4458
|
-
z(w.status,
|
|
4461
|
+
z(w.status, A, w.message);
|
|
4459
4462
|
_context18.n = 10;
|
|
4460
4463
|
break;
|
|
4461
4464
|
case 9:
|
|
4462
|
-
|
|
4465
|
+
A == "action" && (r.value = "success");
|
|
4463
4466
|
case 10:
|
|
4464
4467
|
_context18.n = 12;
|
|
4465
4468
|
break;
|
|
4466
4469
|
case 11:
|
|
4467
4470
|
a && w.status != 2 ? a = setTimeout(function () {
|
|
4468
|
-
_L2(E,
|
|
4469
|
-
}, 50) : (i.value = w, o.value = false, z(w.status,
|
|
4471
|
+
_L2(E, A, C, P);
|
|
4472
|
+
}, 50) : (i.value = w, o.value = false, z(w.status, A, w.message), I(), c.value = true, l.value = (w == null ? undefined : w.message) || "");
|
|
4470
4473
|
case 12:
|
|
4471
4474
|
return _context18.a(2);
|
|
4472
4475
|
}
|
|
4473
4476
|
}, _callee17);
|
|
4474
4477
|
}));
|
|
4475
|
-
return function L(
|
|
4478
|
+
return function L(_x25) {
|
|
4476
4479
|
return _ref35.apply(this, arguments);
|
|
4477
4480
|
};
|
|
4478
4481
|
}(),
|
|
4479
4482
|
z = function z(E) {
|
|
4480
|
-
var
|
|
4483
|
+
var A = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "export";
|
|
4481
4484
|
var C = arguments.length > 2 ? arguments[2] : undefined;
|
|
4482
|
-
var
|
|
4483
|
-
E == 1 ? (r.value = "success", (
|
|
4484
|
-
message:
|
|
4485
|
+
var P, N, w;
|
|
4486
|
+
E == 1 ? (r.value = "success", (P = window.DasMessage) == null || P.success({
|
|
4487
|
+
message: A == "export" ? index.t("导出成功") : index.t("导入成功"),
|
|
4485
4488
|
grouping: true,
|
|
4486
4489
|
repeatNum: 1
|
|
4487
4490
|
}), s.value = "", u.value = "", l.value = "") : E == 2 ? (r.value = "error", (N = window.DasMessage) == null || N.error({
|
|
4488
|
-
message: C || (
|
|
4491
|
+
message: C || (A == "export" ? index.t("导出失败") : index.t("导入失败")),
|
|
4489
4492
|
grouping: true,
|
|
4490
4493
|
repeatNum: 1
|
|
4491
4494
|
}), l.value = C || index.t("部分数据校验不通过,请下载附件并修改,重新导入!")) : E == 3 && (r.value = "error", (w = window.DasMessage) == null || w.error({
|
|
4492
|
-
message:
|
|
4495
|
+
message: A == "export" ? index.t("部分导出失败") : index.t("部分导入失败"),
|
|
4493
4496
|
grouping: true,
|
|
4494
4497
|
repeatNum: 1
|
|
4495
4498
|
}));
|
|
@@ -4506,21 +4509,21 @@ var tc = cr.get("token"),
|
|
|
4506
4509
|
errorMessage: l,
|
|
4507
4510
|
errorImport: c,
|
|
4508
4511
|
errorFilePath: f,
|
|
4509
|
-
fileImport:
|
|
4512
|
+
fileImport: O,
|
|
4510
4513
|
fileExport: T,
|
|
4511
4514
|
fileAction: g,
|
|
4512
4515
|
generateUniqueName: function generateUniqueName(E) {
|
|
4513
|
-
var
|
|
4514
|
-
C =
|
|
4515
|
-
return "".concat(
|
|
4516
|
+
var A = E == null ? undefined : E.match(/(.*?)(\.[^.]*$|$)/),
|
|
4517
|
+
C = A.length ? A[2] : "";
|
|
4518
|
+
return "".concat(A.length ? A[1] : E).concat(tc()).concat(C);
|
|
4516
4519
|
},
|
|
4517
4520
|
downloadFile: sn,
|
|
4518
4521
|
resetStataus: m,
|
|
4519
|
-
checkProgress:
|
|
4522
|
+
checkProgress: x,
|
|
4520
4523
|
fileHandleType: v
|
|
4521
4524
|
};
|
|
4522
4525
|
},
|
|
4523
|
-
|
|
4526
|
+
ic = function ic(t) {
|
|
4524
4527
|
var e = t == null ? undefined : t.toLocaleLowerCase();
|
|
4525
4528
|
return {
|
|
4526
4529
|
excel: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -4555,7 +4558,7 @@ var tc = cr.get("token"),
|
|
|
4555
4558
|
var r = new XMLHttpRequest();
|
|
4556
4559
|
r.open("get", t), r.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), r.responseType = "blob", r.onload = function (o) {
|
|
4557
4560
|
var a = new Blob([this.response], {
|
|
4558
|
-
type:
|
|
4561
|
+
type: ic(n)
|
|
4559
4562
|
}),
|
|
4560
4563
|
i = URL.createObjectURL(a);
|
|
4561
4564
|
if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(a, e);else {
|
|
@@ -4564,7 +4567,7 @@ var tc = cr.get("token"),
|
|
|
4564
4567
|
}
|
|
4565
4568
|
}, r.send();
|
|
4566
4569
|
},
|
|
4567
|
-
|
|
4570
|
+
sc = function sc(t) {
|
|
4568
4571
|
return new Promise(function (e, n) {
|
|
4569
4572
|
var r = new FileReader();
|
|
4570
4573
|
r.onload = function (o) {
|
|
@@ -4574,4 +4577,4 @@ var tc = cr.get("token"),
|
|
|
4574
4577
|
});
|
|
4575
4578
|
};
|
|
4576
4579
|
exports.downloadFile = sn;
|
|
4577
|
-
exports.useFile =
|
|
4580
|
+
exports.useFile = Sc;
|