@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
@@ -234,10 +234,10 @@ const oa = (t) => {
234
234
  asap: sa,
235
235
  isIterable: la
236
236
  };
237
- function S(t, e, n, r, o) {
237
+ function b(t, e, n, r, o) {
238
238
  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);
239
239
  }
240
- p.inherits(S, Error, {
240
+ p.inherits(b, Error, {
241
241
  toJSON: function() {
242
242
  return {
243
243
  // Standard
@@ -258,7 +258,7 @@ p.inherits(S, Error, {
258
258
  };
259
259
  }
260
260
  });
261
- const gn = S.prototype, vn = {};
261
+ const gn = b.prototype, vn = {};
262
262
  [
263
263
  "ERR_BAD_OPTION_VALUE",
264
264
  "ERR_BAD_OPTION",
@@ -276,13 +276,13 @@ const gn = S.prototype, vn = {};
276
276
  ].forEach((t) => {
277
277
  vn[t] = { value: t };
278
278
  });
279
- Object.defineProperties(S, vn);
279
+ Object.defineProperties(b, vn);
280
280
  Object.defineProperty(gn, "isAxiosError", { value: !0 });
281
- S.from = (t, e, n, r, o, a) => {
281
+ b.from = (t, e, n, r, o, a) => {
282
282
  const i = Object.create(gn);
283
283
  return p.toFlatObject(t, i, function(u) {
284
284
  return u !== Error.prototype;
285
- }, (s) => s !== "isAxiosError"), S.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
285
+ }, (s) => s !== "isAxiosError"), b.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
286
286
  };
287
287
  const ca = null;
288
288
  function kt(t) {
@@ -322,16 +322,16 @@ function at(t, e, n) {
322
322
  if (p.isBoolean(y))
323
323
  return y.toString();
324
324
  if (!u && p.isBlob(y))
325
- throw new S("Blob is not supported. Use a Buffer instead.");
325
+ throw new b("Blob is not supported. Use a Buffer instead.");
326
326
  return p.isArrayBuffer(y) || p.isTypedArray(y) ? u && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
327
327
  }
328
328
  function c(y, m, h) {
329
- let b = y;
329
+ let S = y;
330
330
  if (y && !h && typeof y == "object") {
331
331
  if (p.endsWith(m, "{}"))
332
332
  m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
333
- else if (p.isArray(y) && ua(y) || (p.isFileList(y) || p.endsWith(m, "[]")) && (b = p.toArray(y)))
334
- return m = wn(m), b.forEach(function(g, T) {
333
+ else if (p.isArray(y) && ua(y) || (p.isFileList(y) || p.endsWith(m, "[]")) && (S = p.toArray(y)))
334
+ return m = wn(m), S.forEach(function(g, T) {
335
335
  !(p.isUndefined(g) || g === null) && e.append(
336
336
  // eslint-disable-next-line no-nested-ternary
337
337
  i === !0 ? yr([m], T, a) : i === null ? m : m + "[]",
@@ -350,14 +350,14 @@ function at(t, e, n) {
350
350
  if (!p.isUndefined(y)) {
351
351
  if (f.indexOf(y) !== -1)
352
352
  throw Error("Circular reference detected in " + m.join("."));
353
- f.push(y), p.forEach(y, function(b, P) {
354
- (!(p.isUndefined(b) || b === null) && o.call(
353
+ f.push(y), p.forEach(y, function(S, O) {
354
+ (!(p.isUndefined(S) || S === null) && o.call(
355
355
  e,
356
- b,
357
- p.isString(P) ? P.trim() : P,
356
+ S,
357
+ p.isString(O) ? O.trim() : O,
358
358
  m,
359
359
  d
360
- )) === !0 && v(b, m ? m.concat(P) : [P]);
360
+ )) === !0 && v(S, m ? m.concat(O) : [O]);
361
361
  }), f.pop();
362
362
  }
363
363
  }
@@ -572,7 +572,7 @@ const $e = {
572
572
  return JSON.parse(e);
573
573
  } catch (s) {
574
574
  if (i)
575
- throw s.name === "SyntaxError" ? S.from(s, S.ERR_BAD_RESPONSE, this, null, this.response) : s;
575
+ throw s.name === "SyntaxError" ? b.from(s, b.ERR_BAD_RESPONSE, this, null, this.response) : s;
576
576
  }
577
577
  }
578
578
  return e;
@@ -815,16 +815,16 @@ function An(t) {
815
815
  return !!(t && t.__CANCEL__);
816
816
  }
817
817
  function Se(t, e, n) {
818
- S.call(this, t ?? "canceled", S.ERR_CANCELED, e, n), this.name = "CanceledError";
818
+ b.call(this, t ?? "canceled", b.ERR_CANCELED, e, n), this.name = "CanceledError";
819
819
  }
820
- p.inherits(Se, S, {
820
+ p.inherits(Se, b, {
821
821
  __CANCEL__: !0
822
822
  });
823
823
  function Rn(t, e, n) {
824
824
  const r = n.config.validateStatus;
825
- !n.status || !r || r(n.status) ? t(n) : e(new S(
825
+ !n.status || !r || r(n.status) ? t(n) : e(new b(
826
826
  "Request failed with status code " + n.status,
827
- [S.ERR_BAD_REQUEST, S.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
827
+ [b.ERR_BAD_REQUEST, b.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
828
828
  n.config,
829
829
  n.request,
830
830
  n
@@ -1025,12 +1025,12 @@ const Tn = (t) => {
1025
1025
  }
1026
1026
  let h = new XMLHttpRequest();
1027
1027
  h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
1028
- function b() {
1028
+ function S() {
1029
1029
  if (!h)
1030
1030
  return;
1031
1031
  const g = q.from(
1032
1032
  "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1033
- ), R = {
1033
+ ), x = {
1034
1034
  data: !s || s === "text" || s === "json" ? h.responseText : h.response,
1035
1035
  status: h.status,
1036
1036
  statusText: h.statusText,
@@ -1042,31 +1042,31 @@ const Tn = (t) => {
1042
1042
  n(L), m();
1043
1043
  }, function(L) {
1044
1044
  r(L), m();
1045
- }, R), h = null;
1045
+ }, x), h = null;
1046
1046
  }
1047
- "onloadend" in h ? h.onloadend = b : h.onreadystatechange = function() {
1048
- !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(b);
1047
+ "onloadend" in h ? h.onloadend = S : h.onreadystatechange = function() {
1048
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(S);
1049
1049
  }, h.onabort = function() {
1050
- h && (r(new S("Request aborted", S.ECONNABORTED, t, h)), h = null);
1050
+ h && (r(new b("Request aborted", b.ECONNABORTED, t, h)), h = null);
1051
1051
  }, h.onerror = function() {
1052
- r(new S("Network Error", S.ERR_NETWORK, t, h)), h = null;
1052
+ r(new b("Network Error", b.ERR_NETWORK, t, h)), h = null;
1053
1053
  }, h.ontimeout = function() {
1054
1054
  let T = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1055
- const R = o.transitional || En;
1056
- o.timeoutErrorMessage && (T = o.timeoutErrorMessage), r(new S(
1055
+ const x = o.transitional || En;
1056
+ o.timeoutErrorMessage && (T = o.timeoutErrorMessage), r(new b(
1057
1057
  T,
1058
- R.clarifyTimeoutError ? S.ETIMEDOUT : S.ECONNABORTED,
1058
+ x.clarifyTimeoutError ? b.ETIMEDOUT : b.ECONNABORTED,
1059
1059
  t,
1060
1060
  h
1061
1061
  )), h = null;
1062
- }, a === void 0 && i.setContentType(null), "setRequestHeader" in h && p.forEach(i.toJSON(), function(T, R) {
1063
- h.setRequestHeader(R, T);
1062
+ }, a === void 0 && i.setContentType(null), "setRequestHeader" in h && p.forEach(i.toJSON(), function(T, x) {
1063
+ h.setRequestHeader(x, T);
1064
1064
  }), p.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), l && ([d, y] = Je(l, !0), h.addEventListener("progress", d)), u && h.upload && ([f, v] = Je(u), h.upload.addEventListener("progress", f), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (g) => {
1065
1065
  h && (r(!g || g.type ? new Se(null, t, h) : g), h.abort(), h = null);
1066
1066
  }, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
1067
- const P = Na(o.url);
1068
- if (P && M.protocols.indexOf(P) === -1) {
1069
- r(new S("Unsupported protocol " + P + ":", S.ERR_BAD_REQUEST, t));
1067
+ const O = Na(o.url);
1068
+ if (O && M.protocols.indexOf(O) === -1) {
1069
+ r(new b("Unsupported protocol " + O + ":", b.ERR_BAD_REQUEST, t));
1070
1070
  return;
1071
1071
  }
1072
1072
  h.send(a || null);
@@ -1079,11 +1079,11 @@ const Tn = (t) => {
1079
1079
  if (!o) {
1080
1080
  o = !0, s();
1081
1081
  const c = l instanceof Error ? l : this.reason;
1082
- r.abort(c instanceof S ? c : new Se(c instanceof Error ? c.message : c));
1082
+ r.abort(c instanceof b ? c : new Se(c instanceof Error ? c.message : c));
1083
1083
  }
1084
1084
  };
1085
1085
  let i = e && setTimeout(() => {
1086
- i = null, a(new S(`timeout ${e} of ms exceeded`, S.ETIMEDOUT));
1086
+ i = null, a(new b(`timeout ${e} of ms exceeded`, b.ETIMEDOUT));
1087
1087
  }, e);
1088
1088
  const s = () => {
1089
1089
  t && (i && clearTimeout(i), i = null, t.forEach((l) => {
@@ -1173,7 +1173,7 @@ const Tn = (t) => {
1173
1173
  it && ((t) => {
1174
1174
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
1175
1175
  !Ve[e] && (Ve[e] = p.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
1176
- throw new S(`Response type '${e}' is not supported`, S.ERR_NOT_SUPPORT, r);
1176
+ throw new b(`Response type '${e}' is not supported`, b.ERR_NOT_SUPPORT, r);
1177
1177
  });
1178
1178
  });
1179
1179
  })(new Response());
@@ -1217,21 +1217,21 @@ const Ka = async (t) => {
1217
1217
  let h;
1218
1218
  try {
1219
1219
  if (u && Wa && n !== "get" && n !== "head" && (h = await Ga(c, r)) !== 0) {
1220
- let R = new Request(e, {
1220
+ let x = new Request(e, {
1221
1221
  method: "POST",
1222
1222
  body: r,
1223
1223
  duplex: "half"
1224
1224
  }), I;
1225
- if (p.isFormData(r) && (I = R.headers.get("content-type")) && c.setContentType(I), R.body) {
1225
+ if (p.isFormData(r) && (I = x.headers.get("content-type")) && c.setContentType(I), x.body) {
1226
1226
  const [L, z] = vr(
1227
1227
  h,
1228
1228
  Je(wr(u))
1229
1229
  );
1230
- r = Sr(R.body, Er, L, z);
1230
+ r = Sr(x.body, Er, L, z);
1231
1231
  }
1232
1232
  }
1233
1233
  p.isString(f) || (f = f ? "include" : "omit");
1234
- const b = "credentials" in Request.prototype;
1234
+ const S = "credentials" in Request.prototype;
1235
1235
  y = new Request(e, {
1236
1236
  ...d,
1237
1237
  signal: v,
@@ -1239,45 +1239,45 @@ const Ka = async (t) => {
1239
1239
  headers: c.normalize().toJSON(),
1240
1240
  body: r,
1241
1241
  duplex: "half",
1242
- credentials: b ? f : void 0
1242
+ credentials: S ? f : void 0
1243
1243
  });
1244
- let P = await fetch(y, d);
1244
+ let O = await fetch(y, d);
1245
1245
  const g = qt && (l === "stream" || l === "response");
1246
1246
  if (qt && (s || g && m)) {
1247
- const R = {};
1247
+ const x = {};
1248
1248
  ["status", "statusText", "headers"].forEach((G) => {
1249
- R[G] = P[G];
1249
+ x[G] = O[G];
1250
1250
  });
1251
- const I = p.toFiniteNumber(P.headers.get("content-length")), [L, z] = s && vr(
1251
+ const I = p.toFiniteNumber(O.headers.get("content-length")), [L, z] = s && vr(
1252
1252
  I,
1253
1253
  Je(wr(s), !0)
1254
1254
  ) || [];
1255
- P = new Response(
1256
- Sr(P.body, Er, L, () => {
1255
+ O = new Response(
1256
+ Sr(O.body, Er, L, () => {
1257
1257
  z && z(), m && m();
1258
1258
  }),
1259
- R
1259
+ x
1260
1260
  );
1261
1261
  }
1262
1262
  l = l || "text";
1263
- let T = await Ve[p.findKey(Ve, l) || "text"](P, t);
1264
- return !g && m && m(), await new Promise((R, I) => {
1265
- Rn(R, I, {
1263
+ let T = await Ve[p.findKey(Ve, l) || "text"](O, t);
1264
+ return !g && m && m(), await new Promise((x, I) => {
1265
+ Rn(x, I, {
1266
1266
  data: T,
1267
- headers: q.from(P.headers),
1268
- status: P.status,
1269
- statusText: P.statusText,
1267
+ headers: q.from(O.headers),
1268
+ status: O.status,
1269
+ statusText: O.statusText,
1270
1270
  config: t,
1271
1271
  request: y
1272
1272
  });
1273
1273
  });
1274
- } catch (b) {
1275
- throw m && m(), b && b.name === "TypeError" && /Load failed|fetch/i.test(b.message) ? Object.assign(
1276
- new S("Network Error", S.ERR_NETWORK, t, y),
1274
+ } catch (S) {
1275
+ throw m && m(), S && S.name === "TypeError" && /Load failed|fetch/i.test(S.message) ? Object.assign(
1276
+ new b("Network Error", b.ERR_NETWORK, t, y),
1277
1277
  {
1278
- cause: b.cause || b
1278
+ cause: S.cause || S
1279
1279
  }
1280
- ) : S.from(b, b && b.code, t, y);
1280
+ ) : b.from(S, S && S.code, t, y);
1281
1281
  }
1282
1282
  }), Ht = {
1283
1283
  http: ca,
@@ -1303,7 +1303,7 @@ const Or = (t) => `- ${t}`, Va = (t) => p.isFunction(t) || t === null || t === !
1303
1303
  n = t[a];
1304
1304
  let i;
1305
1305
  if (r = n, !Va(n) && (r = Ht[(i = String(n)).toLowerCase()], r === void 0))
1306
- throw new S(`Unknown adapter '${i}'`);
1306
+ throw new b(`Unknown adapter '${i}'`);
1307
1307
  if (r)
1308
1308
  break;
1309
1309
  o[i || "#" + a] = r;
@@ -1315,7 +1315,7 @@ const Or = (t) => `- ${t}`, Va = (t) => p.isFunction(t) || t === null || t === !
1315
1315
  let i = e ? a.length > 1 ? `since :
1316
1316
  ` + a.map(Or).join(`
1317
1317
  `) : " " + Or(a[0]) : "as no adapter specified";
1318
- throw new S(
1318
+ throw new b(
1319
1319
  "There is no suitable adapter to dispatch the request " + i,
1320
1320
  "ERR_NOT_SUPPORT"
1321
1321
  );
@@ -1359,9 +1359,9 @@ st.transitional = function(e, n, r) {
1359
1359
  }
1360
1360
  return (a, i, s) => {
1361
1361
  if (e === !1)
1362
- throw new S(
1362
+ throw new b(
1363
1363
  o(i, " has been removed" + (n ? " in " + n : "")),
1364
- S.ERR_DEPRECATED
1364
+ b.ERR_DEPRECATED
1365
1365
  );
1366
1366
  return n && !Rr[i] && (Rr[i] = !0), e ? e(a, i, s) : !0;
1367
1367
  };
@@ -1371,7 +1371,7 @@ st.spelling = function(e) {
1371
1371
  };
1372
1372
  function Qa(t, e, n) {
1373
1373
  if (typeof t != "object")
1374
- throw new S("options must be an object", S.ERR_BAD_OPTION_VALUE);
1374
+ throw new b("options must be an object", b.ERR_BAD_OPTION_VALUE);
1375
1375
  const r = Object.keys(t);
1376
1376
  let o = r.length;
1377
1377
  for (; o-- > 0; ) {
@@ -1379,11 +1379,11 @@ function Qa(t, e, n) {
1379
1379
  if (i) {
1380
1380
  const s = t[a], u = s === void 0 || i(s, a, t);
1381
1381
  if (u !== !0)
1382
- throw new S("option " + a + " must be " + u, S.ERR_BAD_OPTION_VALUE);
1382
+ throw new b("option " + a + " must be " + u, b.ERR_BAD_OPTION_VALUE);
1383
1383
  continue;
1384
1384
  }
1385
1385
  if (n !== !0)
1386
- throw new S("Unknown option " + a, S.ERR_BAD_OPTION);
1386
+ throw new b("Unknown option " + a, b.ERR_BAD_OPTION);
1387
1387
  }
1388
1388
  }
1389
1389
  const He = {
@@ -1676,7 +1676,7 @@ $.CancelToken = tr;
1676
1676
  $.isCancel = An;
1677
1677
  $.VERSION = Nn;
1678
1678
  $.toFormData = at;
1679
- $.AxiosError = S;
1679
+ $.AxiosError = b;
1680
1680
  $.Cancel = $.CanceledError;
1681
1681
  $.all = function(e) {
1682
1682
  return Promise.all(e);
@@ -1781,14 +1781,14 @@ var Gt = ni, Ir = Gt.custom, Lr = Un(Ir) ? Ir : null, In = {
1781
1781
  o = [];
1782
1782
  else if (Mn(o, e) >= 0)
1783
1783
  return "[Circular]";
1784
- function d(x, N, w) {
1784
+ function d(P, N, w) {
1785
1785
  if (N && (o = pi.call(o), o.push(N)), w) {
1786
1786
  var H = {
1787
1787
  depth: a.depth
1788
1788
  };
1789
- return ne(a, "quoteStyle") && (H.quoteStyle = a.quoteStyle), t(x, H, r + 1, o);
1789
+ return ne(a, "quoteStyle") && (H.quoteStyle = a.quoteStyle), t(P, H, r + 1, o);
1790
1790
  }
1791
- return t(x, a, r + 1, o);
1791
+ return t(P, a, r + 1, o);
1792
1792
  }
1793
1793
  if (typeof e == "function" && !Ur(e)) {
1794
1794
  var v = Ei(e), y = Me(e, d);
@@ -1799,8 +1799,8 @@ var Gt = ni, Ir = Gt.custom, Lr = Un(Ir) ? Ir : null, In = {
1799
1799
  return typeof e == "object" && !ve ? Ae(m) : m;
1800
1800
  }
1801
1801
  if (xi(e)) {
1802
- for (var h = "<" + _r.call(String(e.nodeName)), b = e.attributes || [], P = 0; P < b.length; P++)
1803
- h += " " + b[P].name + "=" + Ln(yi(b[P].value), "double", a);
1802
+ for (var h = "<" + _r.call(String(e.nodeName)), S = e.attributes || [], O = 0; O < S.length; O++)
1803
+ h += " " + S[O].name + "=" + Ln(yi(S[O].value), "double", a);
1804
1804
  return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + _r.call(String(e.nodeName)) + ">", h;
1805
1805
  }
1806
1806
  if (Jt(e)) {
@@ -1820,15 +1820,15 @@ var Gt = ni, Ir = Gt.custom, Lr = Un(Ir) ? Ir : null, In = {
1820
1820
  return e.inspect();
1821
1821
  }
1822
1822
  if (Oi(e)) {
1823
- var R = [];
1824
- return Tr && Tr.call(e, function(x, N) {
1825
- R.push(d(N, e, !0) + " => " + d(x, e));
1826
- }), Mr("Map", Qe.call(e), R, f);
1823
+ var x = [];
1824
+ return Tr && Tr.call(e, function(P, N) {
1825
+ x.push(d(N, e, !0) + " => " + d(P, e));
1826
+ }), Mr("Map", Qe.call(e), x, f);
1827
1827
  }
1828
1828
  if (Pi(e)) {
1829
1829
  var I = [];
1830
- return xr && xr.call(e, function(x) {
1831
- I.push(d(x, e));
1830
+ return xr && xr.call(e, function(P) {
1831
+ I.push(d(P, e));
1832
1832
  }), Mr("Set", Xe.call(e), I, f);
1833
1833
  }
1834
1834
  if (Ai(e))
@@ -1850,7 +1850,7 @@ var Gt = ni, Ir = Gt.custom, Lr = Un(Ir) ? Ir : null, In = {
1850
1850
  if (typeof globalThis < "u" && e === globalThis || typeof Pr < "u" && e === Pr)
1851
1851
  return "{ [object globalThis] }";
1852
1852
  if (!hi(e) && !Ur(e)) {
1853
- var L = Me(e, d), z = Fr ? Fr(e) === Object.prototype : e instanceof Object || e.constructor === Object, G = e instanceof Object ? "" : "null prototype", E = !z && Te && Object(e) === e && Te in e ? or.call(ie(e), 8, -1) : G ? "Object" : "", O = z || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", C = O + (E || G ? "[" + re.call(Nr.call([], E || [], G || []), ": ") + "] " : "");
1853
+ var L = Me(e, d), z = Fr ? Fr(e) === Object.prototype : e instanceof Object || e.constructor === Object, G = e instanceof Object ? "" : "null prototype", E = !z && Te && Object(e) === e && Te in e ? or.call(ie(e), 8, -1) : G ? "Object" : "", A = z || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", C = A + (E || G ? "[" + re.call(Nr.call([], E || [], G || []), ": ") + "] " : "");
1854
1854
  return L.length === 0 ? C + "{}" : f ? C + "{" + Vt(L, f) + "}" : C + "{ " + re.call(L, ", ") + " }";
1855
1855
  }
1856
1856
  return String(e);
@@ -2226,11 +2226,11 @@ function os() {
2226
2226
  throw new TypeError(t + l);
2227
2227
  for (var c = a(arguments, 1), f, d = function() {
2228
2228
  if (this instanceof f) {
2229
- var b = l.apply(
2229
+ var S = l.apply(
2230
2230
  this,
2231
2231
  o(c, arguments)
2232
2232
  );
2233
- return Object(b) === b ? b : this;
2233
+ return Object(S) === S ? S : this;
2234
2234
  }
2235
2235
  return l.apply(
2236
2236
  u,
@@ -2311,7 +2311,7 @@ function gs() {
2311
2311
  var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = ut();
2312
2312
  return Nt = n.call(t, e), Nt;
2313
2313
  }
2314
- var A, vs = kn, ws = Bi, bs = ki, Ss = ji, Es = qi, we = Hi, ge = Ee, Os = zi, As = Wi, Rs = Ki, Ps = Gi, Ts = Ji, xs = Vi, Cs = Qi, _s = Zi, Kn = Function, $t = function(t) {
2314
+ var R, vs = kn, ws = Bi, bs = ki, Ss = ji, Es = qi, we = Hi, ge = Ee, Os = zi, As = Wi, Rs = Ki, Ps = Gi, Ts = Ji, xs = Vi, Cs = Qi, _s = Zi, Kn = Function, $t = function(t) {
2315
2315
  try {
2316
2316
  return Kn('"use strict"; return (' + t + ").constructor;")();
2317
2317
  } catch {
@@ -2328,23 +2328,23 @@ var A, vs = kn, ws = Bi, bs = ki, Ss = ji, Es = qi, we = Hi, ge = Ee, Os = zi, A
2328
2328
  return Ft;
2329
2329
  }
2330
2330
  }
2331
- }() : Ft, ye = ns()(), D = ms(), Fs = Hn(), Ds = qn(), Gn = zn(), Fe = ar(), me = {}, Is = typeof Uint8Array > "u" || !D ? A : D(Uint8Array), ue = {
2331
+ }() : Ft, ye = ns()(), D = ms(), Fs = Hn(), Ds = qn(), Gn = zn(), Fe = ar(), me = {}, Is = typeof Uint8Array > "u" || !D ? R : D(Uint8Array), ue = {
2332
2332
  __proto__: null,
2333
- "%AggregateError%": typeof AggregateError > "u" ? A : AggregateError,
2333
+ "%AggregateError%": typeof AggregateError > "u" ? R : AggregateError,
2334
2334
  "%Array%": Array,
2335
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? A : ArrayBuffer,
2336
- "%ArrayIteratorPrototype%": ye && D ? D([][Symbol.iterator]()) : A,
2337
- "%AsyncFromSyncIteratorPrototype%": A,
2335
+ "%ArrayBuffer%": typeof ArrayBuffer > "u" ? R : ArrayBuffer,
2336
+ "%ArrayIteratorPrototype%": ye && D ? D([][Symbol.iterator]()) : R,
2337
+ "%AsyncFromSyncIteratorPrototype%": R,
2338
2338
  "%AsyncFunction%": me,
2339
2339
  "%AsyncGenerator%": me,
2340
2340
  "%AsyncGeneratorFunction%": me,
2341
2341
  "%AsyncIteratorPrototype%": me,
2342
- "%Atomics%": typeof Atomics > "u" ? A : Atomics,
2343
- "%BigInt%": typeof BigInt > "u" ? A : BigInt,
2344
- "%BigInt64Array%": typeof BigInt64Array > "u" ? A : BigInt64Array,
2345
- "%BigUint64Array%": typeof BigUint64Array > "u" ? A : BigUint64Array,
2342
+ "%Atomics%": typeof Atomics > "u" ? R : Atomics,
2343
+ "%BigInt%": typeof BigInt > "u" ? R : BigInt,
2344
+ "%BigInt64Array%": typeof BigInt64Array > "u" ? R : BigInt64Array,
2345
+ "%BigUint64Array%": typeof BigUint64Array > "u" ? R : BigUint64Array,
2346
2346
  "%Boolean%": Boolean,
2347
- "%DataView%": typeof DataView > "u" ? A : DataView,
2347
+ "%DataView%": typeof DataView > "u" ? R : DataView,
2348
2348
  "%Date%": Date,
2349
2349
  "%decodeURI%": decodeURI,
2350
2350
  "%decodeURIComponent%": decodeURIComponent,
@@ -2354,51 +2354,51 @@ var A, vs = kn, ws = Bi, bs = ki, Ss = ji, Es = qi, we = Hi, ge = Ee, Os = zi, A
2354
2354
  "%eval%": eval,
2355
2355
  // eslint-disable-line no-eval
2356
2356
  "%EvalError%": bs,
2357
- "%Float16Array%": typeof Float16Array > "u" ? A : Float16Array,
2358
- "%Float32Array%": typeof Float32Array > "u" ? A : Float32Array,
2359
- "%Float64Array%": typeof Float64Array > "u" ? A : Float64Array,
2360
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? A : FinalizationRegistry,
2357
+ "%Float16Array%": typeof Float16Array > "u" ? R : Float16Array,
2358
+ "%Float32Array%": typeof Float32Array > "u" ? R : Float32Array,
2359
+ "%Float64Array%": typeof Float64Array > "u" ? R : Float64Array,
2360
+ "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? R : FinalizationRegistry,
2361
2361
  "%Function%": Kn,
2362
2362
  "%GeneratorFunction%": me,
2363
- "%Int8Array%": typeof Int8Array > "u" ? A : Int8Array,
2364
- "%Int16Array%": typeof Int16Array > "u" ? A : Int16Array,
2365
- "%Int32Array%": typeof Int32Array > "u" ? A : Int32Array,
2363
+ "%Int8Array%": typeof Int8Array > "u" ? R : Int8Array,
2364
+ "%Int16Array%": typeof Int16Array > "u" ? R : Int16Array,
2365
+ "%Int32Array%": typeof Int32Array > "u" ? R : Int32Array,
2366
2366
  "%isFinite%": isFinite,
2367
2367
  "%isNaN%": isNaN,
2368
- "%IteratorPrototype%": ye && D ? D(D([][Symbol.iterator]())) : A,
2369
- "%JSON%": typeof JSON == "object" ? JSON : A,
2370
- "%Map%": typeof Map > "u" ? A : Map,
2371
- "%MapIteratorPrototype%": typeof Map > "u" || !ye || !D ? A : D((/* @__PURE__ */ new Map())[Symbol.iterator]()),
2368
+ "%IteratorPrototype%": ye && D ? D(D([][Symbol.iterator]())) : R,
2369
+ "%JSON%": typeof JSON == "object" ? JSON : R,
2370
+ "%Map%": typeof Map > "u" ? R : Map,
2371
+ "%MapIteratorPrototype%": typeof Map > "u" || !ye || !D ? R : D((/* @__PURE__ */ new Map())[Symbol.iterator]()),
2372
2372
  "%Math%": Math,
2373
2373
  "%Number%": Number,
2374
2374
  "%Object%": vs,
2375
2375
  "%Object.getOwnPropertyDescriptor%": _e,
2376
2376
  "%parseFloat%": parseFloat,
2377
2377
  "%parseInt%": parseInt,
2378
- "%Promise%": typeof Promise > "u" ? A : Promise,
2379
- "%Proxy%": typeof Proxy > "u" ? A : Proxy,
2378
+ "%Promise%": typeof Promise > "u" ? R : Promise,
2379
+ "%Proxy%": typeof Proxy > "u" ? R : Proxy,
2380
2380
  "%RangeError%": Ss,
2381
2381
  "%ReferenceError%": Es,
2382
- "%Reflect%": typeof Reflect > "u" ? A : Reflect,
2382
+ "%Reflect%": typeof Reflect > "u" ? R : Reflect,
2383
2383
  "%RegExp%": RegExp,
2384
- "%Set%": typeof Set > "u" ? A : Set,
2385
- "%SetIteratorPrototype%": typeof Set > "u" || !ye || !D ? A : D((/* @__PURE__ */ new Set())[Symbol.iterator]()),
2386
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? A : SharedArrayBuffer,
2384
+ "%Set%": typeof Set > "u" ? R : Set,
2385
+ "%SetIteratorPrototype%": typeof Set > "u" || !ye || !D ? R : D((/* @__PURE__ */ new Set())[Symbol.iterator]()),
2386
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? R : SharedArrayBuffer,
2387
2387
  "%String%": String,
2388
- "%StringIteratorPrototype%": ye && D ? D(""[Symbol.iterator]()) : A,
2389
- "%Symbol%": ye ? Symbol : A,
2388
+ "%StringIteratorPrototype%": ye && D ? D(""[Symbol.iterator]()) : R,
2389
+ "%Symbol%": ye ? Symbol : R,
2390
2390
  "%SyntaxError%": we,
2391
2391
  "%ThrowTypeError%": $s,
2392
2392
  "%TypedArray%": Is,
2393
2393
  "%TypeError%": ge,
2394
- "%Uint8Array%": typeof Uint8Array > "u" ? A : Uint8Array,
2395
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? A : Uint8ClampedArray,
2396
- "%Uint16Array%": typeof Uint16Array > "u" ? A : Uint16Array,
2397
- "%Uint32Array%": typeof Uint32Array > "u" ? A : Uint32Array,
2394
+ "%Uint8Array%": typeof Uint8Array > "u" ? R : Uint8Array,
2395
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? R : Uint8ClampedArray,
2396
+ "%Uint16Array%": typeof Uint16Array > "u" ? R : Uint16Array,
2397
+ "%Uint32Array%": typeof Uint32Array > "u" ? R : Uint32Array,
2398
2398
  "%URIError%": Os,
2399
- "%WeakMap%": typeof WeakMap > "u" ? A : WeakMap,
2400
- "%WeakRef%": typeof WeakRef > "u" ? A : WeakRef,
2401
- "%WeakSet%": typeof WeakSet > "u" ? A : WeakSet,
2399
+ "%WeakMap%": typeof WeakMap > "u" ? R : WeakMap,
2400
+ "%WeakRef%": typeof WeakRef > "u" ? R : WeakRef,
2401
+ "%WeakSet%": typeof WeakSet > "u" ? R : WeakSet,
2402
2402
  "%Function.prototype.call%": Fe,
2403
2403
  "%Function.prototype.apply%": Gn,
2404
2404
  "%Object.defineProperty%": Ns,
@@ -2795,27 +2795,27 @@ function() {
2795
2795
  strictNullHandling: !1
2796
2796
  }, Nl = function(e) {
2797
2797
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
2798
- }, Ut = {}, $l = function t(e, n, r, o, a, i, s, u, l, c, f, d, v, y, m, h, b, P) {
2799
- for (var g = e, T = P, R = 0, I = !1; (T = T.get(Ut)) !== void 0 && !I; ) {
2798
+ }, Ut = {}, $l = function t(e, n, r, o, a, i, s, u, l, c, f, d, v, y, m, h, S, O) {
2799
+ for (var g = e, T = O, x = 0, I = !1; (T = T.get(Ut)) !== void 0 && !I; ) {
2800
2800
  var L = T.get(e);
2801
- if (R += 1, typeof L < "u") {
2802
- if (L === R)
2801
+ if (x += 1, typeof L < "u") {
2802
+ if (L === x)
2803
2803
  throw new RangeError("Cyclic object value");
2804
2804
  I = !0;
2805
2805
  }
2806
- typeof T.get(Ut) > "u" && (R = 0);
2806
+ typeof T.get(Ut) > "u" && (x = 0);
2807
2807
  }
2808
2808
  if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && te(g) && (g = Ke.maybeMap(g, function(X) {
2809
2809
  return X instanceof Date ? v(X) : X;
2810
2810
  })), g === null) {
2811
2811
  if (i)
2812
- return l && !h ? l(n, F.encoder, b, "key", y) : n;
2812
+ return l && !h ? l(n, F.encoder, S, "key", y) : n;
2813
2813
  g = "";
2814
2814
  }
2815
2815
  if (Nl(g) || Ke.isBuffer(g)) {
2816
2816
  if (l) {
2817
- var z = h ? n : l(n, F.encoder, b, "key", y);
2818
- return [m(z) + "=" + m(l(g, F.encoder, b, "value", y))];
2817
+ var z = h ? n : l(n, F.encoder, S, "key", y);
2818
+ return [m(z) + "=" + m(l(g, F.encoder, S, "value", y))];
2819
2819
  }
2820
2820
  return [m(n) + "=" + m(String(g))];
2821
2821
  }
@@ -2828,19 +2828,19 @@ function() {
2828
2828
  else if (te(c))
2829
2829
  E = c;
2830
2830
  else {
2831
- var O = Object.keys(g);
2832
- E = f ? O.sort(f) : O;
2831
+ var A = Object.keys(g);
2832
+ E = f ? A.sort(f) : A;
2833
2833
  }
2834
- var C = u ? String(n).replace(/\./g, "%2E") : String(n), x = o && te(g) && g.length === 1 ? C + "[]" : C;
2834
+ var C = u ? String(n).replace(/\./g, "%2E") : String(n), P = o && te(g) && g.length === 1 ? C + "[]" : C;
2835
2835
  if (a && te(g) && g.length === 0)
2836
- return x + "[]";
2836
+ return P + "[]";
2837
2837
  for (var N = 0; N < E.length; ++N) {
2838
2838
  var w = E[N], H = typeof w == "object" && w && typeof w.value < "u" ? w.value : g[w];
2839
2839
  if (!(s && H === null)) {
2840
- var B = d && u ? String(w).replace(/\./g, "%2E") : String(w), k = te(g) ? typeof r == "function" ? r(x, B) : x : x + (d ? "." + B : "[" + B + "]");
2841
- P.set(e, R);
2840
+ var B = d && u ? String(w).replace(/\./g, "%2E") : String(w), k = te(g) ? typeof r == "function" ? r(P, B) : P : P + (d ? "." + B : "[" + B + "]");
2841
+ O.set(e, x);
2842
2842
  var W = eo();
2843
- W.set(Ut, P), ro(G, t(
2843
+ W.set(Ut, O), ro(G, t(
2844
2844
  H,
2845
2845
  k,
2846
2846
  r,
@@ -2857,7 +2857,7 @@ function() {
2857
2857
  y,
2858
2858
  m,
2859
2859
  h,
2860
- b,
2860
+ S,
2861
2861
  W
2862
2862
  ));
2863
2863
  }
@@ -3189,40 +3189,40 @@ const Ql = 5e3, io = () => Mt ? !1 : (Mt = !0, setTimeout(() => {
3189
3189
  if (ao) return;
3190
3190
  const t = "/login";
3191
3191
  location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1, (e = window.top) != null && e.vueRouter ? (n = window.top) == null || n.vueRouter.replace(t) : window.location.replace(`/#${t}`));
3192
- }, Xl = async (t) => {
3192
+ }, Xl = () => yo("code") || "" || ao ? !1 : io() ? (oo ? ho({ ...mo, redirect_uri: go }) : so(), !0) : !1, Yl = async (t) => {
3193
3193
  var n;
3194
3194
  return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
3195
- }, Yl = async (t, e) => {
3196
- var m, h, b, P;
3195
+ }, Zl = async (t, e) => {
3196
+ var y, m, h, S;
3197
3197
  const { t: n } = ln();
3198
3198
  let r, o, a = {};
3199
3199
  const i = { 400: n("参数校验错误"), 404: n("接口地址未找到"), 500: n("服务器内部错误") };
3200
- let s = ((m = t == null ? void 0 : t.response) == null ? void 0 : m.data) || {};
3201
- const u = yo("code") || "", l = s == null ? void 0 : s.code, c = (h = t.response) == null ? void 0 : h.status;
3202
- if (!u && !ao && (l === 401 || c === 401)) {
3203
- io() && (oo ? ho({ ...mo, redirect_uri: go }) : so()), r = l || c, a = s;
3204
- const g = (e == null ? void 0 : e.i18n) ?? !0;
3205
- if (rn && g && (s != null && s.status)) {
3206
- const T = !(s != null && s.data) || !s.data.length ? [] : s.data, R = n(s.status, ...T);
3207
- o = R === s.status ? await an(n, s.status, T) : R;
3200
+ let s = ((y = t == null ? void 0 : t.response) == null ? void 0 : y.data) || {};
3201
+ const u = s == null ? void 0 : s.code, l = (m = t.response) == null ? void 0 : m.status;
3202
+ if (u === 401 || l === 401) {
3203
+ Xl(), r = u || l, a = s;
3204
+ const O = (e == null ? void 0 : e.i18n) ?? !0;
3205
+ if (rn && O && (s != null && s.status)) {
3206
+ const g = !(s != null && s.data) || !s.data.length ? [] : s.data, T = n(s.status, ...g);
3207
+ o = T === s.status ? await an(n, s.status, g) : T;
3208
3208
  } else
3209
3209
  o = (s == null ? void 0 : s.msg) || i[r] || (t == null ? void 0 : t.message);
3210
3210
  } else if (t.response) {
3211
- if (s instanceof Blob && (s = await new Promise((g) => {
3212
- const T = new FileReader();
3213
- T.readAsText(s, "utf-8"), T.onload = () => {
3211
+ if (s instanceof Blob && (s = await new Promise((O) => {
3212
+ const g = new FileReader();
3213
+ g.readAsText(s, "utf-8"), g.onload = () => {
3214
3214
  try {
3215
- g(JSON.parse(T.result || "{}"));
3215
+ O(JSON.parse(g.result || "{}"));
3216
3216
  } catch {
3217
- g({ code: 400, msg: n("解析错误") });
3217
+ O({ code: 400, msg: n("解析错误") });
3218
3218
  }
3219
3219
  };
3220
3220
  })), s.code !== void 0 && s.code !== null) {
3221
3221
  r = s.code, a = s;
3222
- const g = (e == null ? void 0 : e.i18n) ?? !0;
3223
- if (rn && g && (s != null && s.status)) {
3224
- const T = !(s != null && s.data) || !s.data.length ? [] : s.data, R = n(s.status, ...T);
3225
- o = R === s.status ? await an(n, s.status, T) : R;
3222
+ const O = (e == null ? void 0 : e.i18n) ?? !0;
3223
+ if (rn && O && (s != null && s.status)) {
3224
+ const g = !(s != null && s.data) || !s.data.length ? [] : s.data, T = n(s.status, ...g);
3225
+ o = T === s.status ? await an(n, s.status, g) : T;
3226
3226
  } else
3227
3227
  o = (s == null ? void 0 : s.msg) ?? "";
3228
3228
  } else
@@ -3230,8 +3230,8 @@ const Ql = 5e3, io = () => Mt ? !1 : (Mt = !0, setTimeout(() => {
3230
3230
  o || (o = i[t.response.status] || t.message);
3231
3231
  } else t.request ? (r = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = n("网络异常,请检查您的网络情况")) : (r = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = n("请求配置异常"));
3232
3232
  e != null && e.customErrorMessage && (o = e == null ? void 0 : e.customErrorMessage(o, t));
3233
- const d = Date.now(), v = o === nn, y = d - on < Vl;
3234
- return !(e != null && e.ignoreErrorMessage) && o && (!v || !y) && ((P = (b = window.DasMessage) == null ? void 0 : b.error) == null || P.call(b, { message: o, showClose: !0 }), nn = o, on = d), { ...a, code: r, msg: o, error: t };
3233
+ const f = Date.now(), d = o === nn, v = f - on < Vl;
3234
+ return !(e != null && e.ignoreErrorMessage) && o && (!d || !v) && ((S = (h = window.DasMessage) == null ? void 0 : h.error) == null || S.call(h, { message: o, showClose: !0 }), nn = o, on = f), { ...a, code: r, msg: o, error: t };
3235
3235
  };
3236
3236
  function J(t, e) {
3237
3237
  const n = $.create();
@@ -3254,7 +3254,7 @@ function J(t, e) {
3254
3254
  }
3255
3255
  f && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${f}`);
3256
3256
  }
3257
- r.baseURL || (r.baseURL = a.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (f) => Gl.stringify(f, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Xl), r.onError || (r.onError = Yl), (r.csrf ?? !1) && (r.headers["csrf-token"] = tn.get("csrf-token"));
3257
+ r.baseURL || (r.baseURL = a.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (f) => Gl.stringify(f, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Yl), r.onError || (r.onError = Zl), (r.csrf ?? !1) && (r.headers["csrf-token"] = tn.get("csrf-token"));
3258
3258
  const u = r.params || {};
3259
3259
  if (u.project === void 0) {
3260
3260
  let f = 0;
@@ -3274,9 +3274,9 @@ const V = "v1";
3274
3274
  J(`/api/iot/${V}`);
3275
3275
  J(`/api/iot-device/thingmodel/${V}`), J(`/api/iot-device/devicemanage/${V}`), J(`/api/iot-device/product/${V}`), J(`/api/iot-device/product-storage/${V}`);
3276
3276
  J(`/api/device-relation/deviceproject/${V}`), J(`/api/device-relation/devicerule/${V}`), J(`/api/device-relation/project/${V}`);
3277
- const cr = J(`/api/oss/minio/${V}`), Zl = J(`/api/progress/accessor/${V}`);
3277
+ const cr = J(`/api/oss/minio/${V}`), ec = J(`/api/progress/accessor/${V}`);
3278
3278
  J(`/api/dms/analysis/${V}`);
3279
- let ec = (t = 21) => {
3279
+ let tc = (t = 21) => {
3280
3280
  let e = "", n = crypto.getRandomValues(new Uint8Array(t));
3281
3281
  for (; t--; ) {
3282
3282
  let r = n[t] & 63;
@@ -3284,14 +3284,14 @@ let ec = (t = 21) => {
3284
3284
  }
3285
3285
  return e;
3286
3286
  };
3287
- const tc = cr.get("token"), rc = cr.post("put-object", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), nc = cr.post("upload-objects", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), oc = Zl.get("progress"), bc = () => {
3287
+ const rc = cr.get("token"), nc = cr.post("put-object", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), oc = cr.post("upload-objects", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), ac = ec.get("progress"), Sc = () => {
3288
3288
  let t = K(!1), e = K(""), n = K(0), r = K("normal"), o = K(!1), a, i = K(""), s = K(""), u = K(""), l = K(""), c = K(!1), f = K(""), d = "", v = K(""), y;
3289
3289
  const m = () => {
3290
3290
  s.value = "", u.value = "", l.value = "", c.value = !1, f.value = "";
3291
3291
  }, h = async () => {
3292
- const [E, O] = await tc().run();
3293
- return E ? { stauts: !1 } : { status: !0, data: O };
3294
- }, b = (E) => new Promise((O, C) => {
3292
+ const [E, A] = await rc().run();
3293
+ return E ? { stauts: !1 } : { status: !0, data: A };
3294
+ }, S = (E) => new Promise((A, C) => {
3295
3295
  const N = [];
3296
3296
  let w = 0;
3297
3297
  for (; w < E.size; ) {
@@ -3299,26 +3299,26 @@ const tc = cr.get("token"), rc = cr.post("put-object", (t) => (t.headers || (t.h
3299
3299
  N.push(B), w += 1048576;
3300
3300
  }
3301
3301
  const H = new Blob(N, { type: E.type });
3302
- O(H);
3303
- }), P = async (E, O, C, x = !0, N = "", w = !1) => {
3302
+ A(H);
3303
+ }), O = async (E, A, C, P = !0, N = "", w = !1) => {
3304
3304
  var ur, fr;
3305
- d = N, v.value = "import", x && (r.value = "normal", n.value = 0, e.value = U("导入进度"), t.value = !0, i.value = ""), y = O;
3305
+ d = N, v.value = "import", P && (r.value = "normal", n.value = 0, e.value = U("导入进度"), t.value = !0, i.value = ""), y = A;
3306
3306
  const H = await h();
3307
3307
  if (!H.status) return;
3308
3308
  let B = H.data, k = null, { autoContentType: W, bucketName: X, importFileName: Le } = C;
3309
- const lo = w ? nc : rc;
3309
+ const lo = w ? oc : nc;
3310
3310
  if (w) {
3311
3311
  let oe = [];
3312
- await O.forEach(async (Ue) => {
3313
- let dt = await b(Ue);
3312
+ await A.forEach(async (Ue) => {
3313
+ let dt = await S(Ue);
3314
3314
  oe.push(dt);
3315
- }), k = new FormData(), k.append("accessKeyId", B.accessKeyId), k.append("secretAccessKey", B.secretAccessKey), k.append("sessionToken", B.sessionToken), k.append("bucketName", X), O.forEach((Ue, dt) => {
3315
+ }), k = new FormData(), k.append("accessKeyId", B.accessKeyId), k.append("secretAccessKey", B.secretAccessKey), k.append("sessionToken", B.sessionToken), k.append("bucketName", X), A.forEach((Ue, dt) => {
3316
3316
  k.append("file", oe[dt]);
3317
3317
  }), Le.forEach((Ue) => {
3318
3318
  k.append("filePaths", Ue);
3319
3319
  });
3320
3320
  } else {
3321
- const oe = await b(O);
3321
+ const oe = await S(A);
3322
3322
  k = {
3323
3323
  accessKeyId: B.accessKeyId,
3324
3324
  secretAccessKey: B.secretAccessKey,
@@ -3331,7 +3331,7 @@ const tc = cr.get("token"), rc = cr.post("put-object", (t) => (t.headers || (t.h
3331
3331
  }
3332
3332
  const [co, uo] = await lo(k).run();
3333
3333
  if (co) return t.value = !1;
3334
- const Y = await ic(uo.data);
3334
+ const Y = await sc(uo.data);
3335
3335
  if (!w && (Y == null ? void 0 : Y.statusCode) != 200 || w && (Y != null && Y.some((oe) => (oe == null ? void 0 : oe.statusCode) != 200))) {
3336
3336
  t.value = !1, (ur = window.DasMessage) == null || ur.error({
3337
3337
  message: (Y == null ? void 0 : Y.errorMsg) || U("上传失败"),
@@ -3341,12 +3341,12 @@ const tc = cr.get("token"), rc = cr.post("put-object", (t) => (t.headers || (t.h
3341
3341
  return;
3342
3342
  }
3343
3343
  const pt = await (E == null ? void 0 : E(Y));
3344
- if (x) {
3344
+ if (P) {
3345
3345
  if (!pt.status) {
3346
3346
  t.value = !1, r.value = "error";
3347
3347
  return;
3348
3348
  }
3349
- e.value = U("导入进度"), t.value = !0, R(pt.taskId, "import", "");
3349
+ e.value = U("导入进度"), t.value = !0, x(pt.taskId, "import", "");
3350
3350
  } else {
3351
3351
  if (!pt.status) return;
3352
3352
  r.value = "success", (fr = window.DasMessage) == null || fr.success({
@@ -3355,30 +3355,30 @@ const tc = cr.get("token"), rc = cr.post("put-object", (t) => (t.headers || (t.h
3355
3355
  repeatNum: 1
3356
3356
  });
3357
3357
  }
3358
- }, g = async (E, O = "", C = "") => {
3358
+ }, g = async (E, A = "", C = "") => {
3359
3359
  r.value = "normal", n.value = 0, e.value = C || U("导出进度"), t.value = !0;
3360
- const x = await (E == null ? void 0 : E());
3361
- if (!x.status) {
3360
+ const P = await (E == null ? void 0 : E());
3361
+ if (!P.status) {
3362
3362
  t.value = !1, r.value = "error";
3363
3363
  return;
3364
3364
  }
3365
- R(x.taskId, "action", "");
3366
- }, T = async (E, O = "", C = "", x = !0) => {
3367
- v.value = "export", x && (r.value = "normal", n.value = 0, e.value = U("导出进度"), t.value = !0);
3365
+ x(P.taskId, "action", "");
3366
+ }, T = async (E, A = "", C = "", P = !0) => {
3367
+ v.value = "export", P && (r.value = "normal", n.value = 0, e.value = U("导出进度"), t.value = !0);
3368
3368
  const N = await (E == null ? void 0 : E());
3369
3369
  if (!N.status) {
3370
3370
  t.value = !1, r.value = "error";
3371
3371
  return;
3372
3372
  }
3373
- et().format("YYYYMMDDHHmmss") + "", R(N.taskId, "export", O || "", C);
3374
- }, R = async (E, O, C, x = "") => {
3375
- o.value = !0, L(E, O, C, x), a = setTimeout(() => {
3373
+ et().format("YYYYMMDDHHmmss") + "", x(N.taskId, "export", A || "", C);
3374
+ }, x = async (E, A, C, P = "") => {
3375
+ o.value = !0, L(E, A, C, P), a = setTimeout(() => {
3376
3376
  }, 50);
3377
3377
  }, I = () => {
3378
3378
  clearTimeout(a), a = null, t.value = !1;
3379
- }, L = async (E, O = "export", C, x = "") => {
3379
+ }, L = async (E, A = "export", C, P = "") => {
3380
3380
  var H, B, k;
3381
- const [N, w] = await oc("", {
3381
+ const [N, w] = await ac("", {
3382
3382
  url: `progress/${E}`
3383
3383
  }).run();
3384
3384
  if (N) {
@@ -3386,43 +3386,43 @@ const tc = cr.get("token"), rc = cr.post("put-object", (t) => (t.headers || (t.h
3386
3386
  return;
3387
3387
  }
3388
3388
  if (n.value = w.percentage, n.value == 100)
3389
- if (i.value = w, o.value = !1, I(), O == "export")
3389
+ if (i.value = w, o.value = !1, I(), A == "export")
3390
3390
  if (w.status == 1) {
3391
3391
  r.value = "success";
3392
3392
  let W = await pr(`/oss/${w == null ? void 0 : w.filePath}`);
3393
3393
  const X = ((H = W == null ? void 0 : W.split("/")) == null ? void 0 : H.pop()) || "";
3394
3394
  let Le = C || X;
3395
- sn(`${Ge().baseURL}/oss${w.filePath}`, Le, x), o.value = !1;
3396
- } else w.status == 2 && (l.value = w.message || (O == "export" ? U("导出失败") : U("导入失败")), (B = window.DasMessage) == null || B.error({
3395
+ sn(`${Ge().baseURL}/oss${w.filePath}`, Le, P), o.value = !1;
3396
+ } else w.status == 2 && (l.value = w.message || (A == "export" ? U("导出失败") : U("导入失败")), (B = window.DasMessage) == null || B.error({
3397
3397
  message: l.value,
3398
3398
  grouping: !0,
3399
3399
  repeatNum: 1
3400
3400
  }));
3401
- else if (O == "import") {
3401
+ else if (A == "import") {
3402
3402
  if (w.filePath) {
3403
3403
  r.value = "error", c.value = !0;
3404
3404
  let W = await pr(`/oss/${w == null ? void 0 : w.filePath}`);
3405
3405
  const X = ((k = W == null ? void 0 : W.split("/")) == null ? void 0 : k.pop()) || "";
3406
3406
  s.value = d || X, u.value = y.sizeText, l.value = U("部分数据校验不通过,请下载附件并修改,重新导入!"), f.value = `${Ge().baseURL}/oss/${w == null ? void 0 : w.filePath}`;
3407
3407
  }
3408
- z(w.status, O, w.message);
3409
- } else O == "action" && (r.value = "success");
3408
+ z(w.status, A, w.message);
3409
+ } else A == "action" && (r.value = "success");
3410
3410
  else
3411
3411
  a && w.status != 2 ? a = setTimeout(() => {
3412
- L(E, O, C, x);
3413
- }, 50) : (i.value = w, o.value = !1, z(w.status, O, w.message), I(), c.value = !0, l.value = (w == null ? void 0 : w.message) || "");
3414
- }, z = (E, O = "export", C) => {
3415
- var x, N, w;
3416
- E == 1 ? (r.value = "success", (x = window.DasMessage) == null || x.success({
3417
- message: O == "export" ? U("导出成功") : U("导入成功"),
3412
+ L(E, A, C, P);
3413
+ }, 50) : (i.value = w, o.value = !1, z(w.status, A, w.message), I(), c.value = !0, l.value = (w == null ? void 0 : w.message) || "");
3414
+ }, z = (E, A = "export", C) => {
3415
+ var P, N, w;
3416
+ E == 1 ? (r.value = "success", (P = window.DasMessage) == null || P.success({
3417
+ message: A == "export" ? U("导出成功") : U("导入成功"),
3418
3418
  grouping: !0,
3419
3419
  repeatNum: 1
3420
3420
  }), s.value = "", u.value = "", l.value = "") : E == 2 ? (r.value = "error", (N = window.DasMessage) == null || N.error({
3421
- message: C || (O == "export" ? U("导出失败") : U("导入失败")),
3421
+ message: C || (A == "export" ? U("导出失败") : U("导入失败")),
3422
3422
  grouping: !0,
3423
3423
  repeatNum: 1
3424
3424
  }), l.value = C || U("部分数据校验不通过,请下载附件并修改,重新导入!")) : E == 3 && (r.value = "error", (w = window.DasMessage) == null || w.error({
3425
- message: O == "export" ? U("部分导出失败") : U("部分导入失败"),
3425
+ message: A == "export" ? U("部分导出失败") : U("部分导入失败"),
3426
3426
  grouping: !0,
3427
3427
  repeatNum: 1
3428
3428
  }));
@@ -3439,19 +3439,19 @@ const tc = cr.get("token"), rc = cr.post("put-object", (t) => (t.headers || (t.h
3439
3439
  errorMessage: l,
3440
3440
  errorImport: c,
3441
3441
  errorFilePath: f,
3442
- fileImport: P,
3442
+ fileImport: O,
3443
3443
  fileExport: T,
3444
3444
  fileAction: g,
3445
3445
  generateUniqueName: (E) => {
3446
- const O = E == null ? void 0 : E.match(/(.*?)(\.[^.]*$|$)/), C = O.length ? O[2] : "";
3447
- return `${O.length ? O[1] : E}${ec()}${C}`;
3446
+ const A = E == null ? void 0 : E.match(/(.*?)(\.[^.]*$|$)/), C = A.length ? A[2] : "";
3447
+ return `${A.length ? A[1] : E}${tc()}${C}`;
3448
3448
  },
3449
3449
  downloadFile: sn,
3450
3450
  resetStataus: m,
3451
- checkProgress: R,
3451
+ checkProgress: x,
3452
3452
  fileHandleType: v
3453
3453
  };
3454
- }, ac = (t) => {
3454
+ }, ic = (t) => {
3455
3455
  let e = t == null ? void 0 : t.toLocaleLowerCase();
3456
3456
  return {
3457
3457
  excel: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
@@ -3484,7 +3484,7 @@ const tc = cr.get("token"), rc = cr.post("put-object", (t) => (t.headers || (t.h
3484
3484
  const r = new XMLHttpRequest();
3485
3485
  r.open("get", t), r.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), r.responseType = "blob", r.onload = function(o) {
3486
3486
  const a = new Blob([this.response], {
3487
- type: ac(n)
3487
+ type: ic(n)
3488
3488
  }), i = URL.createObjectURL(a);
3489
3489
  if (window.navigator.msSaveOrOpenBlob)
3490
3490
  navigator.msSaveBlob(a, e);
@@ -3493,7 +3493,7 @@ const tc = cr.get("token"), rc = cr.post("put-object", (t) => (t.headers || (t.h
3493
3493
  s.href = i, s.download = e, s.click(), window.URL.revokeObjectURL(i);
3494
3494
  }
3495
3495
  }, r.send();
3496
- }, ic = (t) => new Promise((e, n) => {
3496
+ }, sc = (t) => new Promise((e, n) => {
3497
3497
  var r = new FileReader();
3498
3498
  r.onload = function(o) {
3499
3499
  let a = "";
@@ -3502,5 +3502,5 @@ const tc = cr.get("token"), rc = cr.post("put-object", (t) => (t.headers || (t.h
3502
3502
  });
3503
3503
  export {
3504
3504
  sn as downloadFile,
3505
- bc as useFile
3505
+ Sc as useFile
3506
3506
  };