@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.
Files changed (93) hide show
  1. package/api-services/es5.js +1520 -1526
  2. package/api-services/index.js +1223 -1237
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/es5.js +313 -310
  5. package/api-services/modules/app-manage/index.js +292 -292
  6. package/api-services/modules/app-manage/index.js.gz +0 -0
  7. package/api-services/modules/authentication/es5.js +313 -310
  8. package/api-services/modules/authentication/index.js +292 -292
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/es5.js +308 -305
  11. package/api-services/modules/bems/index.js +287 -287
  12. package/api-services/modules/bems/index.js.gz +0 -0
  13. package/api-services/modules/contract/es5.js +313 -310
  14. package/api-services/modules/contract/index.js +292 -292
  15. package/api-services/modules/contract/index.js.gz +0 -0
  16. package/api-services/modules/duty-manage/es5.js +1153 -1159
  17. package/api-services/modules/duty-manage/index.js +958 -972
  18. package/api-services/modules/duty-manage/index.js.gz +0 -0
  19. package/api-services/modules/enterpriseright/es5.js +1153 -1162
  20. package/api-services/modules/enterpriseright/index.js +957 -975
  21. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  22. package/api-services/modules/es5.js +1518 -1527
  23. package/api-services/modules/file/es5.js +250 -247
  24. package/api-services/modules/file/index.js +209 -209
  25. package/api-services/modules/file/index.js.gz +0 -0
  26. package/api-services/modules/gateway-edge/es5.js +188 -185
  27. package/api-services/modules/gateway-edge/index.js +184 -184
  28. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  29. package/api-services/modules/index.js +1221 -1239
  30. package/api-services/modules/index.js.gz +0 -0
  31. package/api-services/modules/iot/es5.js +1168 -1177
  32. package/api-services/modules/iot/index.js +968 -986
  33. package/api-services/modules/iot/index.js.gz +0 -0
  34. package/api-services/modules/justauth/es5.js +314 -311
  35. package/api-services/modules/justauth/index.js +293 -293
  36. package/api-services/modules/justauth/index.js.gz +0 -0
  37. package/api-services/modules/knowledge/es5.js +313 -310
  38. package/api-services/modules/knowledge/index.js +292 -292
  39. package/api-services/modules/knowledge/index.js.gz +0 -0
  40. package/api-services/modules/link/es5.js +313 -310
  41. package/api-services/modules/link/index.js +292 -292
  42. package/api-services/modules/link/index.js.gz +0 -0
  43. package/api-services/modules/permission/es5.js +1153 -1162
  44. package/api-services/modules/permission/index.js +957 -975
  45. package/api-services/modules/permission/index.js.gz +0 -0
  46. package/api-services/modules/platformManage/es5.js +312 -309
  47. package/api-services/modules/platformManage/index.js +287 -287
  48. package/api-services/modules/platformManage/index.js.gz +0 -0
  49. package/api-services/modules/portal/es5.js +1135 -1141
  50. package/api-services/modules/portal/index.js +941 -955
  51. package/api-services/modules/portal/index.js.gz +0 -0
  52. package/api-services/modules/space-manage/es5.js +1247 -1232
  53. package/api-services/modules/space-manage/index.js +1042 -1024
  54. package/api-services/modules/space-manage/index.js.gz +0 -0
  55. package/api-services/modules/super-admin/es5.js +262 -259
  56. package/api-services/modules/super-admin/index.js +244 -244
  57. package/api-services/modules/super-admin/index.js.gz +0 -0
  58. package/api-services/modules/supplier/es5.js +315 -312
  59. package/api-services/modules/supplier/index.js +292 -292
  60. package/api-services/modules/supplier/index.js.gz +0 -0
  61. package/api-services/modules/supplychain-manage/es5.js +1164 -1173
  62. package/api-services/modules/supplychain-manage/index.js +967 -985
  63. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  64. package/api-services/modules/systemConfiguration/es5.js +313 -310
  65. package/api-services/modules/systemConfiguration/index.js +292 -292
  66. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  67. package/api-services/modules/tool/es5.js +313 -310
  68. package/api-services/modules/tool/index.js +292 -292
  69. package/api-services/modules/tool/index.js.gz +0 -0
  70. package/api-services/src/create-service/es5.js +311 -308
  71. package/api-services/src/create-service/index.js +291 -291
  72. package/api-services/src/create-service/index.js.gz +0 -0
  73. package/common-info/es5.js +4357 -124
  74. package/common-info/getPermissionMethod/es5.js +4209 -0
  75. package/common-info/getPermissionMethod/index.d.ts +26 -0
  76. package/common-info/getPermissionMethod/index.js +3328 -0
  77. package/common-info/getPermissionMethod/index.js.gz +0 -0
  78. package/common-info/index.d.ts +2 -0
  79. package/common-info/index.js +3414 -63
  80. package/common-info/index.js.gz +0 -0
  81. package/common-info/type.d.ts +0 -2
  82. package/create-api-service/es5.js +1142 -1150
  83. package/create-api-service/index.d.ts +6 -6
  84. package/create-api-service/index.js +948 -965
  85. package/create-api-service/index.js.gz +0 -0
  86. package/directive/auth/es5.js +63 -44
  87. package/directive/auth/index.js +42 -33
  88. package/directive/auth/index.js.gz +0 -0
  89. package/esm-map.json +7 -1
  90. package/hooks/use-get-auth/es5.js +13 -17
  91. package/hooks/use-get-auth/index.js +10 -13
  92. package/package.json +3 -3
  93. 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 S(t, e, n, r, o) {
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(S, Error, {
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 = S.prototype,
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(S, vn);
402
+ Object.defineProperties(b, vn);
403
403
  Object.defineProperty(gn, "isAxiosError", {
404
404
  value: true
405
405
  });
406
- S.from = function (t, e, n, r, o, a) {
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
- }), S.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
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 S("Blob is not supported. Use a Buffer instead.");
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 b = y;
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, "[]")) && (b = p.toArray(y))) return m = wn(m), b.forEach(function (g, T) {
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 (b, P) {
475
- (!(p.isUndefined(b) || b === null) && o.call(e, b, p.isString(P) ? P.trim() : P, m, d)) === true && v(b, m ? m.concat(P) : [P]);
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" ? S.from(s, S.ERR_BAD_RESPONSE, this, null, this.response) : s;
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
- S.call(this, t !== null && t !== void 0 ? t : "canceled", S.ERR_CANCELED, e, n), this.name = "CanceledError";
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, S, {
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 S("Request failed with status code " + n.status, [S.ERR_BAD_REQUEST, S.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], n.config, n.request, n));
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 b() {
1241
+ function S() {
1242
1242
  if (!h) return;
1243
1243
  var g = q.from("getAllResponseHeaders" in h && h.getAllResponseHeaders()),
1244
- R = {
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
- }, R), h = null;
1256
+ }, x), h = null;
1257
1257
  }
1258
- "onloadend" in h ? h.onloadend = b : h.onreadystatechange = function () {
1259
- !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(b);
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 S("Request aborted", S.ECONNABORTED, t, h)), h = null);
1261
+ h && (r(new b("Request aborted", b.ECONNABORTED, t, h)), h = null);
1262
1262
  }, h.onerror = function () {
1263
- r(new S("Network Error", S.ERR_NETWORK, t, h)), h = null;
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 R = o.transitional || En;
1267
- o.timeoutErrorMessage && (T = o.timeoutErrorMessage), r(new S(T, R.clarifyTimeoutError ? S.ETIMEDOUT : S.ECONNABORTED, t, h)), h = null;
1268
- }, a === undefined && i.setContentType(null), "setRequestHeader" in h && p.forEach(i.toJSON(), function (T, R) {
1269
- h.setRequestHeader(R, T);
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 P = Na(o.url);
1274
- if (P && M.protocols.indexOf(P) === -1) {
1275
- r(new S("Unsupported protocol " + P + ":", S.ERR_BAD_REQUEST, t));
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 S ? c : new Se(c instanceof Error ? c.message : c));
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 S("timeout ".concat(e, " of ms exceeded"), S.ETIMEDOUT));
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 S("Response type '".concat(e, "' is not supported"), S.ERR_NOT_SUPPORT, r);
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, R, I, _vr, _vr2, L, z, b, P, g, _R, _I, _ref15, _ref16, _L, _z, T, _t7, _t8, _t9;
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
- R = new Request(e, {
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 = R.headers.get("content-type")) && c.setContentType(I), R.body) {
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(R.body, Er, L, z);
1674
+ r = Sr(x.body, Er, L, z);
1675
1675
  }
1676
1676
  case 4:
1677
1677
  p.isString(f) || (f = f ? "include" : "omit");
1678
- b = "credentials" in Request.prototype;
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: b ? f : void 0
1685
+ credentials: S ? f : void 0
1686
1686
  }));
1687
1687
  _context8.n = 5;
1688
1688
  return fetch(y, d);
1689
1689
  case 5:
1690
- P = _context8.v;
1690
+ O = _context8.v;
1691
1691
  g = qt && (l === "stream" || l === "response");
1692
1692
  if (qt && (s || g && m)) {
1693
- _R = {};
1693
+ _x9 = {};
1694
1694
  ["status", "statusText", "headers"].forEach(function (G) {
1695
- _R[G] = P[G];
1695
+ _x9[G] = O[G];
1696
1696
  });
1697
- _I = p.toFiniteNumber(P.headers.get("content-length")), _ref15 = s && vr(_I, Je(wr(s), !0)) || [], _ref16 = _slicedToArray(_ref15, 2), _L = _ref16[0], _z = _ref16[1];
1698
- P = new Response(Sr(P.body, Er, _L, function () {
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
- }), _R);
1700
+ }), _x9);
1701
1701
  }
1702
1702
  l = l || "text";
1703
1703
  _context8.n = 6;
1704
- return Ve[p.findKey(Ve, l) || "text"](P, t);
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 (R, I) {
1710
- Rn(R, I, {
1709
+ return new Promise(function (x, I) {
1710
+ Rn(x, I, {
1711
1711
  data: T,
1712
- headers: q.from(P.headers),
1713
- status: P.status,
1714
- statusText: P.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 S("Network Error", S.ERR_NETWORK, t, y), {
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
- }) : S.from(_t9, _t9 && _t9.code, t, y);
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 S("Unknown adapter '".concat(i, "'"));
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 S("There is no suitable adapter to dispatch the request " + _i2, "ERR_NOT_SUPPORT");
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 S(o(i, " has been removed" + (n ? " in " + n : "")), S.ERR_DEPRECATED);
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 S("options must be an object", S.ERR_BAD_OPTION_VALUE);
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 S("option " + a + " must be " + u, S.ERR_BAD_OPTION_VALUE);
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 S("Unknown option " + a, S.ERR_BAD_OPTION);
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(_x9, _x0) {
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 = S;
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(x, N, w) {
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(x, H, r + 1, o);
2310
+ return ne(a, "quoteStyle") && (H.quoteStyle = a.quoteStyle), t(P, H, r + 1, o);
2311
2311
  }
2312
- return t(x, a, r + 1, o);
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)), b = e.attributes || [], P = 0; P < b.length; P++) h += " " + b[P].name + "=" + Ln(yi(b[P].value), "double", a);
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 R = [];
2344
- return Tr && Tr.call(e, function (x, N) {
2345
- R.push(d(N, e, true) + " => " + d(x, e));
2346
- }), Mr("Map", Qe.call(e), R, f);
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 (x) {
2351
- I.push(d(x, e));
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
- O = z || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "",
2369
- C = O + (E || G ? "[" + re.call(Nr.call([], E || [], G || []), ": ") + "] " : "");
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 b = l.apply(this, o(c, arguments));
2732
- return Object(b) === b ? b : this;
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 A,
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 ? A : D(Uint8Array),
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" ? A : AggregateError,
2868
+ "%AggregateError%": (typeof AggregateError === "undefined" ? "undefined" : _typeof(AggregateError)) > "u" ? R : AggregateError,
2869
2869
  "%Array%": Array,
2870
- "%ArrayBuffer%": (typeof ArrayBuffer === "undefined" ? "undefined" : _typeof(ArrayBuffer)) > "u" ? A : ArrayBuffer,
2871
- "%ArrayIteratorPrototype%": ye && D ? D([][Symbol.iterator]()) : A,
2872
- "%AsyncFromSyncIteratorPrototype%": A,
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" ? A : Atomics,
2878
- "%BigInt%": (typeof BigInt === "undefined" ? "undefined" : _typeof(BigInt)) > "u" ? A : BigInt,
2879
- "%BigInt64Array%": (typeof BigInt64Array === "undefined" ? "undefined" : _typeof(BigInt64Array)) > "u" ? A : BigInt64Array,
2880
- "%BigUint64Array%": (typeof BigUint64Array === "undefined" ? "undefined" : _typeof(BigUint64Array)) > "u" ? A : BigUint64Array,
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" ? A : DataView,
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" ? A : Float16Array,
2893
- "%Float32Array%": (typeof Float32Array === "undefined" ? "undefined" : _typeof(Float32Array)) > "u" ? A : Float32Array,
2894
- "%Float64Array%": (typeof Float64Array === "undefined" ? "undefined" : _typeof(Float64Array)) > "u" ? A : Float64Array,
2895
- "%FinalizationRegistry%": (typeof FinalizationRegistry === "undefined" ? "undefined" : _typeof(FinalizationRegistry)) > "u" ? A : FinalizationRegistry,
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" ? A : Int8Array,
2899
- "%Int16Array%": (typeof Int16Array === "undefined" ? "undefined" : _typeof(Int16Array)) > "u" ? A : Int16Array,
2900
- "%Int32Array%": (typeof Int32Array === "undefined" ? "undefined" : _typeof(Int32Array)) > "u" ? A : Int32Array,
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]())) : A,
2904
- "%JSON%": (typeof JSON === "undefined" ? "undefined" : _typeof(JSON)) == "object" ? JSON : A,
2905
- "%Map%": (typeof Map === "undefined" ? "undefined" : _typeof(Map)) > "u" ? A : Map,
2906
- "%MapIteratorPrototype%": (typeof Map === "undefined" ? "undefined" : _typeof(Map)) > "u" || !ye || !D ? A : D((/* @__PURE__ */new Map())[Symbol.iterator]()),
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" ? A : Promise,
2914
- "%Proxy%": (typeof Proxy === "undefined" ? "undefined" : _typeof(Proxy)) > "u" ? A : Proxy,
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" ? A : Reflect,
2917
+ "%Reflect%": (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) > "u" ? R : Reflect,
2918
2918
  "%RegExp%": RegExp,
2919
- "%Set%": (typeof Set === "undefined" ? "undefined" : _typeof(Set)) > "u" ? A : Set,
2920
- "%SetIteratorPrototype%": (typeof Set === "undefined" ? "undefined" : _typeof(Set)) > "u" || !ye || !D ? A : D((/* @__PURE__ */new Set())[Symbol.iterator]()),
2921
- "%SharedArrayBuffer%": (typeof SharedArrayBuffer === "undefined" ? "undefined" : _typeof(SharedArrayBuffer)) > "u" ? A : SharedArrayBuffer,
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]()) : A,
2924
- "%Symbol%": ye ? Symbol : A,
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" ? A : Uint8Array,
2930
- "%Uint8ClampedArray%": (typeof Uint8ClampedArray === "undefined" ? "undefined" : _typeof(Uint8ClampedArray)) > "u" ? A : Uint8ClampedArray,
2931
- "%Uint16Array%": (typeof Uint16Array === "undefined" ? "undefined" : _typeof(Uint16Array)) > "u" ? A : Uint16Array,
2932
- "%Uint32Array%": (typeof Uint32Array === "undefined" ? "undefined" : _typeof(Uint32Array)) > "u" ? A : Uint32Array,
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" ? A : WeakMap,
2935
- "%WeakRef%": (typeof WeakRef === "undefined" ? "undefined" : _typeof(WeakRef)) > "u" ? A : WeakRef,
2936
- "%WeakSet%": (typeof WeakSet === "undefined" ? "undefined" : _typeof(WeakSet)) > "u" ? A : WeakSet,
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, b, P) {
3395
- for (var g = e, T = P, R = 0, I = false; (T = T.get(Ut)) !== undefined && !I;) {
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 (R += 1, _typeof(L) < "u") {
3398
- if (L === R) throw new RangeError("Cyclic object value");
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" && (R = 0);
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, b, "key", y) : n;
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, b, "key", y);
3412
- return [m(z) + "=" + m(l(g, F.encoder, b, "value", y))];
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 O = Object.keys(g);
3423
- E = f ? O.sort(f) : O;
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
- x = o && te(g) && g.length === 1 ? C + "[]" : C;
3427
- if (a && te(g) && g.length === 0) return x + "[]";
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(x, B) : x : x + (d ? "." + B : "[" + B + "]");
3434
- P.set(e, R);
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, P), 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, b, W));
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(_x1, _x10) {
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 = /*#__PURE__*/function () {
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 Xl(_x11) {
3815
+ return function Yl(_x12) {
3811
3816
  return _ref22.apply(this, arguments);
3812
3817
  };
3813
3818
  }(),
3814
- Yl = /*#__PURE__*/function () {
3819
+ Zl = /*#__PURE__*/function () {
3815
3820
  var _ref23 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(t, e) {
3816
- var m, h, b, P, _i18nBridge$getI18nBr, n, r, o, a, i, s, u, l, c, _ref24, g, T, R, _ref25, _ref26, _g, _T, _R2, d, v, y, _t10, _t11, _t12;
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 = ((m = t == null ? undefined : t.response) == null ? undefined : m.data) || {};
3828
- u = sso.getQuery("code") || "", l = s == null ? undefined : s.code, c = (h = t.response) == null ? undefined : h.status;
3829
- if (!(!u && !ao && (l === 401 || c === 401))) {
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
- io() && (oo ? sso.login(_objectSpread(_objectSpread({}, sso.getTokenParams), {}, {
3834
- redirect_uri: sso.real_uri
3835
- })) : so()), r = l || c, a = s;
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
- T = !(s != null && s.data) || !s.data.length ? [] : s.data, R = n.apply(void 0, [s.status].concat(_toConsumableArray(T)));
3842
- if (!(R === s.status)) {
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, T);
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 = R;
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 (g) {
3875
- var T = new FileReader();
3876
- T.readAsText(s, "utf-8"), T.onload = function () {
3877
+ return new Promise(function (O) {
3878
+ var g = new FileReader();
3879
+ g.readAsText(s, "utf-8"), g.onload = function () {
3877
3880
  try {
3878
- g(JSON.parse(T.result || "{}"));
3881
+ O(JSON.parse(g.result || "{}"));
3879
3882
  } catch (_unused20) {
3880
- g({
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
- _g = (_ref25 = e == null ? undefined : e.i18n) !== null && _ref25 !== void 0 ? _ref25 : true;
3896
- if (!(rn && _g && s != null && s.status)) {
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
- _T = !(s != null && s.data) || !s.data.length ? [] : s.data, _R2 = n.apply(void 0, [s.status].concat(_toConsumableArray(_T)));
3901
- if (!(_R2 === s.status)) {
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, _T);
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 = _R2;
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
- d = Date.now(), v = o === nn, y = d - on < Vl;
3933
- return _context10.a(2, (!(e != null && e.ignoreErrorMessage) && o && (!v || !y) && ((P = (b = window.DasMessage) == null ? undefined : b.error) == null || P.call(b, {
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 = d), _objectSpread(_objectSpread({}, a), {}, {
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 Yl(_x12, _x13) {
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 = Xl), r.onError || (r.onError = Yl), ((_r$csrf = r.csrf) !== null && _r$csrf !== void 0 ? _r$csrf : false) && (r.headers["csrf-token"] = tn.get("csrf-token"));
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 (_x14) {
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
- Zl = J("/api/progress/accessor/".concat(V));
4039
+ ec = J("/api/progress/accessor/".concat(V));
4037
4040
  J("/api/dms/analysis/".concat(V));
4038
- var ec = function ec() {
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 tc = cr.get("token"),
4049
- rc = cr.post("put-object", function (t) {
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
- nc = cr.post("upload-objects", function (t) {
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
- oc = Zl.get("progress"),
4056
- bc = function bc() {
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$tc$run, _yield$tc$run2, E, O;
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 tc().run();
4085
+ return rc().run();
4083
4086
  case 1:
4084
- _yield$tc$run = _context12.v;
4085
- _yield$tc$run2 = _slicedToArray(_yield$tc$run, 2);
4086
- E = _yield$tc$run2[0];
4087
- O = _yield$tc$run2[1];
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: O
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
- b = function b(E) {
4102
- return new Promise(function (O, C) {
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
- O(H);
4115
+ A(H);
4113
4116
  });
4114
4117
  },
4115
- P = /*#__PURE__*/function () {
4116
- var _ref30 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee13(E, O, C) {
4117
- var x,
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
- x = _args14.length > 3 && _args14[3] !== undefined ? _args14[3] : true;
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", x && (r.value = "normal", n.value = 0, e.value = index.t("导入进度"), t.value = true, i.value = ""), y = O;
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 ? nc : rc;
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 O.forEach(/*#__PURE__*/function () {
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 b(Ue);
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 (_x18) {
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
- O.forEach(function (Ue, dt) {
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 b(O);
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 ic(uo.data);
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 (!x) {
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, R(pt.taskId, "import", "");
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 P(_x15, _x16, _x17) {
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 O,
4286
+ var A,
4284
4287
  C,
4285
- x,
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
- O = _args15.length > 1 && _args15[1] !== undefined ? _args15[1] : "";
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
- x = _context15.v;
4297
- if (x.status) {
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
- R(x.taskId, "action", "");
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(_x19) {
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 O,
4319
+ var A,
4317
4320
  C,
4318
- x,
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
- O = _args16.length > 1 && _args16[1] !== undefined ? _args16[1] : "";
4327
+ A = _args16.length > 1 && _args16[1] !== undefined ? _args16[1] : "";
4325
4328
  C = _args16.length > 2 && _args16[2] !== undefined ? _args16[2] : "";
4326
- x = _args16.length > 3 && _args16[3] !== undefined ? _args16[3] : true;
4327
- v.value = "export", x && (r.value = "normal", n.value = 0, e.value = index.t("导出进度"), t.value = true);
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") + "", R(N.taskId, "export", O || "", C);
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(_x20) {
4348
+ return function T(_x21) {
4346
4349
  return _ref33.apply(this, arguments);
4347
4350
  };
4348
4351
  }(),
4349
- R = /*#__PURE__*/function () {
4350
- var _ref34 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee16(E, O, C) {
4351
- var x,
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
- x = _args17.length > 3 && _args17[3] !== undefined ? _args17[3] : "";
4357
- o.value = true, _L2(E, O, C, x), a = setTimeout(function () {}, 50);
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 R(_x21, _x22, _x23) {
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 O,
4375
+ var A,
4373
4376
  C,
4374
- x,
4377
+ P,
4375
4378
  H,
4376
4379
  B,
4377
4380
  k,
4378
- _yield$oc$run,
4379
- _yield$oc$run2,
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
- O = _args18.length > 1 && _args18[1] !== undefined ? _args18[1] : "export";
4394
+ A = _args18.length > 1 && _args18[1] !== undefined ? _args18[1] : "export";
4392
4395
  C = _args18.length > 2 ? _args18[2] : undefined;
4393
- x = _args18.length > 3 && _args18[3] !== undefined ? _args18[3] : "";
4396
+ P = _args18.length > 3 && _args18[3] !== undefined ? _args18[3] : "";
4394
4397
  _context18.n = 1;
4395
- return oc("", {
4398
+ return ac("", {
4396
4399
  url: "progress/".concat(E)
4397
4400
  }).run();
4398
4401
  case 1:
4399
- _yield$oc$run = _context18.v;
4400
- _yield$oc$run2 = _slicedToArray(_yield$oc$run, 2);
4401
- N = _yield$oc$run2[0];
4402
- w = _yield$oc$run2[1];
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(), O == "export")) {
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, x), o.value = false;
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 || (O == "export" ? index.t("导出失败") : index.t("导入失败")), (B = window.DasMessage) == null || B.error({
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 (!(O == "import")) {
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, O, w.message);
4461
+ z(w.status, A, w.message);
4459
4462
  _context18.n = 10;
4460
4463
  break;
4461
4464
  case 9:
4462
- O == "action" && (r.value = "success");
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, O, C, x);
4469
- }, 50) : (i.value = w, o.value = false, z(w.status, O, w.message), I(), c.value = true, l.value = (w == null ? undefined : w.message) || "");
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(_x24) {
4478
+ return function L(_x25) {
4476
4479
  return _ref35.apply(this, arguments);
4477
4480
  };
4478
4481
  }(),
4479
4482
  z = function z(E) {
4480
- var O = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "export";
4483
+ var A = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "export";
4481
4484
  var C = arguments.length > 2 ? arguments[2] : undefined;
4482
- var x, N, w;
4483
- E == 1 ? (r.value = "success", (x = window.DasMessage) == null || x.success({
4484
- message: O == "export" ? index.t("导出成功") : index.t("导入成功"),
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 || (O == "export" ? index.t("导出失败") : index.t("导入失败")),
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: O == "export" ? index.t("部分导出失败") : index.t("部分导入失败"),
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: P,
4512
+ fileImport: O,
4510
4513
  fileExport: T,
4511
4514
  fileAction: g,
4512
4515
  generateUniqueName: function generateUniqueName(E) {
4513
- var O = E == null ? undefined : E.match(/(.*?)(\.[^.]*$|$)/),
4514
- C = O.length ? O[2] : "";
4515
- return "".concat(O.length ? O[1] : E).concat(ec()).concat(C);
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: R,
4522
+ checkProgress: x,
4520
4523
  fileHandleType: v
4521
4524
  };
4522
4525
  },
4523
- ac = function ac(t) {
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: ac(n)
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
- ic = function ic(t) {
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 = bc;
4580
+ exports.useFile = Sc;