@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
@@ -13,7 +13,7 @@ function qr(t, e) {
13
13
  return t.apply(e, arguments);
14
14
  };
15
15
  }
16
- const { toString: eo } = Object.prototype, { getPrototypeOf: Lt } = Object, { iterator: qe, toStringTag: jr } = Symbol, je = /* @__PURE__ */ ((t) => (e) => {
16
+ const { toString: eo } = Object.prototype, { getPrototypeOf: Ut } = Object, { iterator: qe, toStringTag: jr } = Symbol, je = /* @__PURE__ */ ((t) => (e) => {
17
17
  const n = eo.call(e);
18
18
  return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
19
19
  })(/* @__PURE__ */ Object.create(null)), I = (t) => (t = t.toLowerCase(), (e) => je(e) === t), He = (t) => (e) => typeof e === t, { isArray: le } = Array, ve = He("undefined");
@@ -28,7 +28,7 @@ function ro(t) {
28
28
  const no = He("string"), F = He("function"), zr = He("number"), ze = (t) => t !== null && typeof t == "object", oo = (t) => t === !0 || t === !1, _e = (t) => {
29
29
  if (je(t) !== "object")
30
30
  return !1;
31
- const e = Lt(t);
31
+ const e = Ut(t);
32
32
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(jr in t) && !(qe in t);
33
33
  }, ao = I("Date"), io = I("File"), so = I("Blob"), lo = I("FileList"), co = (t) => ze(t) && F(t.pipe), uo = (t) => {
34
34
  let e;
@@ -81,7 +81,7 @@ const vo = (t, e, n, { allOwnKeys: r } = {}) => (be(e, (o, a) => {
81
81
  do {
82
82
  for (o = Object.getOwnPropertyNames(t), a = o.length; a-- > 0; )
83
83
  i = o[a], (!r || r(i, t, e)) && !s[i] && (e[i] = t[i], s[i] = !0);
84
- t = n !== !1 && Lt(t);
84
+ t = n !== !1 && Ut(t);
85
85
  } while (t && (!n || n(t, e)) && t !== Object.prototype);
86
86
  return e;
87
87
  }, Eo = (t, e, n) => {
@@ -97,7 +97,7 @@ const vo = (t, e, n, { allOwnKeys: r } = {}) => (be(e, (o, a) => {
97
97
  for (; e-- > 0; )
98
98
  n[e] = t[e];
99
99
  return n;
100
- }, Ao = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Lt(Uint8Array)), Ro = (t, e) => {
100
+ }, Ao = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Ut(Uint8Array)), Ro = (t, e) => {
101
101
  const r = (t && t[qe]).call(t);
102
102
  let o;
103
103
  for (; (o = r.next()) && !o.done; ) {
@@ -165,7 +165,7 @@ const Io = (t) => {
165
165
  return r;
166
166
  };
167
167
  return n(t, 0);
168
- }, Lo = I("AsyncFunction"), Uo = (t) => t && (ze(t) || F(t)) && F(t.then) && F(t.catch), Vr = ((t, e) => t ? setImmediate : e ? ((n, r) => (K.addEventListener("message", ({ source: o, data: a }) => {
168
+ }, Uo = I("AsyncFunction"), Lo = (t) => t && (ze(t) || F(t)) && F(t.then) && F(t.catch), Vr = ((t, e) => t ? setImmediate : e ? ((n, r) => (K.addEventListener("message", ({ source: o, data: a }) => {
169
169
  o === K && a === n && r.length && r.shift()();
170
170
  }, !1), (o) => {
171
171
  r.push(o), K.postMessage(n, "*");
@@ -225,8 +225,8 @@ const Io = (t) => {
225
225
  isContextDefined: Gr,
226
226
  isSpecCompliantForm: $o,
227
227
  toJSONObject: Io,
228
- isAsyncFn: Lo,
229
- isThenable: Uo,
228
+ isAsyncFn: Uo,
229
+ isThenable: Lo,
230
230
  setImmediate: Vr,
231
231
  asap: Bo,
232
232
  isIterable: Mo
@@ -306,8 +306,8 @@ function We(t, e, n) {
306
306
  metaTokens: !0,
307
307
  dots: !1,
308
308
  indexes: !1
309
- }, !1, function(m, h) {
310
- return !f.isUndefined(h[m]);
309
+ }, !1, function(g, h) {
310
+ return !f.isUndefined(h[g]);
311
311
  });
312
312
  const r = n.metaTokens, o = n.visitor || l, a = n.dots, i = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
313
313
  if (!f.isFunction(o))
@@ -322,39 +322,39 @@ function We(t, e, n) {
322
322
  throw new w("Blob is not supported. Use a Buffer instead.");
323
323
  return f.isArrayBuffer(y) || f.isTypedArray(y) ? c && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
324
324
  }
325
- function l(y, m, h) {
326
- let S = y;
325
+ function l(y, g, h) {
326
+ let E = y;
327
327
  if (y && !h && typeof y == "object") {
328
- if (f.endsWith(m, "{}"))
329
- m = r ? m : m.slice(0, -2), y = JSON.stringify(y);
330
- else if (f.isArray(y) && qo(y) || (f.isFileList(y) || f.endsWith(m, "[]")) && (S = f.toArray(y)))
331
- return m = Xr(m), S.forEach(function(g, A) {
332
- !(f.isUndefined(g) || g === null) && e.append(
328
+ if (f.endsWith(g, "{}"))
329
+ g = r ? g : g.slice(0, -2), y = JSON.stringify(y);
330
+ else if (f.isArray(y) && qo(y) || (f.isFileList(y) || f.endsWith(g, "[]")) && (E = f.toArray(y)))
331
+ return g = Xr(g), E.forEach(function(m, O) {
332
+ !(f.isUndefined(m) || m === null) && e.append(
333
333
  // eslint-disable-next-line no-nested-ternary
334
- i === !0 ? Kt([m], A, a) : i === null ? m : m + "[]",
335
- u(g)
334
+ i === !0 ? Kt([g], O, a) : i === null ? g : g + "[]",
335
+ u(m)
336
336
  );
337
337
  }), !1;
338
338
  }
339
- return Ot(y) ? !0 : (e.append(Kt(h, m, a), u(y)), !1);
339
+ return Ot(y) ? !0 : (e.append(Kt(h, g, a), u(y)), !1);
340
340
  }
341
341
  const p = [], d = Object.assign(jo, {
342
342
  defaultVisitor: l,
343
343
  convertValue: u,
344
344
  isVisitable: Ot
345
345
  });
346
- function v(y, m) {
346
+ function v(y, g) {
347
347
  if (!f.isUndefined(y)) {
348
348
  if (p.indexOf(y) !== -1)
349
- throw Error("Circular reference detected in " + m.join("."));
350
- p.push(y), f.forEach(y, function(S, E) {
351
- (!(f.isUndefined(S) || S === null) && o.call(
349
+ throw Error("Circular reference detected in " + g.join("."));
350
+ p.push(y), f.forEach(y, function(E, S) {
351
+ (!(f.isUndefined(E) || E === null) && o.call(
352
352
  e,
353
- S,
354
- f.isString(E) ? E.trim() : E,
355
- m,
353
+ E,
354
+ f.isString(S) ? S.trim() : S,
355
+ g,
356
356
  d
357
- )) === !0 && v(S, m ? m.concat(E) : [E]);
357
+ )) === !0 && v(E, g ? g.concat(S) : [S]);
358
358
  }), p.pop();
359
359
  }
360
360
  }
@@ -376,10 +376,10 @@ function Qt(t) {
376
376
  return e[r];
377
377
  });
378
378
  }
379
- function Ut(t, e) {
379
+ function Lt(t, e) {
380
380
  this._pairs = [], t && We(t, this, e);
381
381
  }
382
- const Zr = Ut.prototype;
382
+ const Zr = Lt.prototype;
383
383
  Zr.append = function(e, n) {
384
384
  this._pairs.push([e, n]);
385
385
  };
@@ -403,7 +403,7 @@ function Yr(t, e, n) {
403
403
  });
404
404
  const o = n && n.serialize;
405
405
  let a;
406
- if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new Ut(e, n).toString(r), a) {
406
+ if (o ? a = o(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new Lt(e, n).toString(r), a) {
407
407
  const i = t.indexOf("#");
408
408
  i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
409
409
  }
@@ -467,7 +467,7 @@ const en = {
467
467
  silentJSONParsing: !0,
468
468
  forcedJSONParsing: !0,
469
469
  clarifyTimeoutError: !1
470
- }, zo = typeof URLSearchParams < "u" ? URLSearchParams : Ut, Wo = typeof FormData < "u" ? FormData : null, Go = typeof Blob < "u" ? Blob : null, Jo = {
470
+ }, zo = typeof URLSearchParams < "u" ? URLSearchParams : Lt, Wo = typeof FormData < "u" ? FormData : null, Go = typeof Blob < "u" ? Blob : null, Jo = {
471
471
  isBrowser: !0,
472
472
  classes: {
473
473
  URLSearchParams: zo,
@@ -1017,53 +1017,53 @@ const an = (t) => {
1017
1017
  let a = o.data;
1018
1018
  const i = D.from(o.headers).normalize();
1019
1019
  let { responseType: s, onUploadProgress: c, onDownloadProgress: u } = o, l, p, d, v, y;
1020
- function m() {
1020
+ function g() {
1021
1021
  v && v(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(l), o.signal && o.signal.removeEventListener("abort", l);
1022
1022
  }
1023
1023
  let h = new XMLHttpRequest();
1024
1024
  h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
1025
- function S() {
1025
+ function E() {
1026
1026
  if (!h)
1027
1027
  return;
1028
- const g = D.from(
1028
+ const m = D.from(
1029
1029
  "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1030
- ), O = {
1030
+ ), A = {
1031
1031
  data: !s || s === "text" || s === "json" ? h.responseText : h.response,
1032
1032
  status: h.status,
1033
1033
  statusText: h.statusText,
1034
- headers: g,
1034
+ headers: m,
1035
1035
  config: t,
1036
1036
  request: h
1037
1037
  };
1038
1038
  nn(function(N) {
1039
- n(N), m();
1039
+ n(N), g();
1040
1040
  }, function(N) {
1041
- r(N), m();
1042
- }, O), h = null;
1041
+ r(N), g();
1042
+ }, A), h = null;
1043
1043
  }
1044
- "onloadend" in h ? h.onloadend = S : h.onreadystatechange = function() {
1045
- !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(S);
1044
+ "onloadend" in h ? h.onloadend = E : h.onreadystatechange = function() {
1045
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(E);
1046
1046
  }, h.onabort = function() {
1047
1047
  h && (r(new w("Request aborted", w.ECONNABORTED, t, h)), h = null);
1048
1048
  }, h.onerror = function() {
1049
1049
  r(new w("Network Error", w.ERR_NETWORK, t, h)), h = null;
1050
1050
  }, h.ontimeout = function() {
1051
- let A = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1052
- const O = o.transitional || en;
1053
- o.timeoutErrorMessage && (A = o.timeoutErrorMessage), r(new w(
1054
- A,
1055
- O.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
1051
+ let O = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1052
+ const A = o.transitional || en;
1053
+ o.timeoutErrorMessage && (O = o.timeoutErrorMessage), r(new w(
1054
+ O,
1055
+ A.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
1056
1056
  t,
1057
1057
  h
1058
1058
  )), h = null;
1059
- }, a === void 0 && i.setContentType(null), "setRequestHeader" in h && f.forEach(i.toJSON(), function(A, O) {
1060
- h.setRequestHeader(O, A);
1061
- }), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), u && ([d, y] = Ie(u, !0), h.addEventListener("progress", d)), c && h.upload && ([p, v] = Ie(c), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (l = (g) => {
1062
- h && (r(!g || g.type ? new ce(null, t, h) : g), h.abort(), h = null);
1059
+ }, a === void 0 && i.setContentType(null), "setRequestHeader" in h && f.forEach(i.toJSON(), function(O, A) {
1060
+ h.setRequestHeader(A, O);
1061
+ }), f.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), u && ([d, y] = Ie(u, !0), h.addEventListener("progress", d)), c && h.upload && ([p, v] = Ie(c), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (l = (m) => {
1062
+ h && (r(!m || m.type ? new ce(null, t, h) : m), h.abort(), h = null);
1063
1063
  }, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
1064
- const E = la(o.url);
1065
- if (E && _.protocols.indexOf(E) === -1) {
1066
- r(new w("Unsupported protocol " + E + ":", w.ERR_BAD_REQUEST, t));
1064
+ const S = la(o.url);
1065
+ if (S && _.protocols.indexOf(S) === -1) {
1066
+ r(new w("Unsupported protocol " + S + ":", w.ERR_BAD_REQUEST, t));
1067
1067
  return;
1068
1068
  }
1069
1069
  h.send(a || null);
@@ -1164,12 +1164,12 @@ const an = (t) => {
1164
1164
  }
1165
1165
  }).headers.has("Content-Type");
1166
1166
  return t && !e;
1167
- }), nr = 64 * 1024, Rt = sn && ln(() => f.isReadableStream(new Response("").body)), Le = {
1167
+ }), nr = 64 * 1024, Rt = sn && ln(() => f.isReadableStream(new Response("").body)), Ue = {
1168
1168
  stream: Rt && ((t) => t.body)
1169
1169
  };
1170
1170
  Ge && ((t) => {
1171
1171
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
1172
- !Le[e] && (Le[e] = f.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
1172
+ !Ue[e] && (Ue[e] = f.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
1173
1173
  throw new w(`Response type '${e}' is not supported`, w.ERR_NOT_SUPPORT, r);
1174
1174
  });
1175
1175
  });
@@ -1208,27 +1208,27 @@ const Oa = async (t) => {
1208
1208
  } = an(t);
1209
1209
  u = u ? (u + "").toLowerCase() : "text";
1210
1210
  let v = ga([o, a && a.toAbortSignal()], i), y;
1211
- const m = v && v.unsubscribe && (() => {
1211
+ const g = v && v.unsubscribe && (() => {
1212
1212
  v.unsubscribe();
1213
1213
  });
1214
1214
  let h;
1215
1215
  try {
1216
1216
  if (c && Ea && n !== "get" && n !== "head" && (h = await Aa(l, r)) !== 0) {
1217
- let O = new Request(e, {
1217
+ let A = new Request(e, {
1218
1218
  method: "POST",
1219
1219
  body: r,
1220
1220
  duplex: "half"
1221
1221
  }), C;
1222
- if (f.isFormData(r) && (C = O.headers.get("content-type")) && l.setContentType(C), O.body) {
1222
+ if (f.isFormData(r) && (C = A.headers.get("content-type")) && l.setContentType(C), A.body) {
1223
1223
  const [N, q] = Yt(
1224
1224
  h,
1225
1225
  Ie(er(c))
1226
1226
  );
1227
- r = rr(O.body, nr, N, q);
1227
+ r = rr(A.body, nr, N, q);
1228
1228
  }
1229
1229
  }
1230
1230
  f.isString(p) || (p = p ? "include" : "omit");
1231
- const S = "credentials" in Request.prototype;
1231
+ const E = "credentials" in Request.prototype;
1232
1232
  y = new Request(e, {
1233
1233
  ...d,
1234
1234
  signal: v,
@@ -1236,45 +1236,45 @@ const Oa = async (t) => {
1236
1236
  headers: l.normalize().toJSON(),
1237
1237
  body: r,
1238
1238
  duplex: "half",
1239
- credentials: S ? p : void 0
1239
+ credentials: E ? p : void 0
1240
1240
  });
1241
- let E = await fetch(y, d);
1242
- const g = Rt && (u === "stream" || u === "response");
1243
- if (Rt && (s || g && m)) {
1244
- const O = {};
1245
- ["status", "statusText", "headers"].forEach((L) => {
1246
- O[L] = E[L];
1241
+ let S = await fetch(y, d);
1242
+ const m = Rt && (u === "stream" || u === "response");
1243
+ if (Rt && (s || m && g)) {
1244
+ const A = {};
1245
+ ["status", "statusText", "headers"].forEach((U) => {
1246
+ A[U] = S[U];
1247
1247
  });
1248
- const C = f.toFiniteNumber(E.headers.get("content-length")), [N, q] = s && Yt(
1248
+ const C = f.toFiniteNumber(S.headers.get("content-length")), [N, q] = s && Yt(
1249
1249
  C,
1250
1250
  Ie(er(s), !0)
1251
1251
  ) || [];
1252
- E = new Response(
1253
- rr(E.body, nr, N, () => {
1254
- q && q(), m && m();
1252
+ S = new Response(
1253
+ rr(S.body, nr, N, () => {
1254
+ q && q(), g && g();
1255
1255
  }),
1256
- O
1256
+ A
1257
1257
  );
1258
1258
  }
1259
1259
  u = u || "text";
1260
- let A = await Le[f.findKey(Le, u) || "text"](E, t);
1261
- return !g && m && m(), await new Promise((O, C) => {
1262
- nn(O, C, {
1263
- data: A,
1264
- headers: D.from(E.headers),
1265
- status: E.status,
1266
- statusText: E.statusText,
1260
+ let O = await Ue[f.findKey(Ue, u) || "text"](S, t);
1261
+ return !m && g && g(), await new Promise((A, C) => {
1262
+ nn(A, C, {
1263
+ data: O,
1264
+ headers: D.from(S.headers),
1265
+ status: S.status,
1266
+ statusText: S.statusText,
1267
1267
  config: t,
1268
1268
  request: y
1269
1269
  });
1270
1270
  });
1271
- } catch (S) {
1272
- throw m && m(), S && S.name === "TypeError" && /Load failed|fetch/i.test(S.message) ? Object.assign(
1271
+ } catch (E) {
1272
+ throw g && g(), E && E.name === "TypeError" && /Load failed|fetch/i.test(E.message) ? Object.assign(
1273
1273
  new w("Network Error", w.ERR_NETWORK, t, y),
1274
1274
  {
1275
- cause: S.cause || S
1275
+ cause: E.cause || E
1276
1276
  }
1277
- ) : w.from(S, S && S.code, t, y);
1277
+ ) : w.from(E, E && E.code, t, y);
1278
1278
  }
1279
1279
  }), Pt = {
1280
1280
  http: ko,
@@ -1386,7 +1386,7 @@ function Ta(t, e, n) {
1386
1386
  const Ne = {
1387
1387
  assertOptions: Ta,
1388
1388
  validators: Je
1389
- }, U = Ne.validators;
1389
+ }, L = Ne.validators;
1390
1390
  class Q {
1391
1391
  constructor(e) {
1392
1392
  this.defaults = e || {}, this.interceptors = {
@@ -1423,17 +1423,17 @@ class Q {
1423
1423
  typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = Z(this.defaults, n);
1424
1424
  const { transitional: r, paramsSerializer: o, headers: a } = n;
1425
1425
  r !== void 0 && Ne.assertOptions(r, {
1426
- silentJSONParsing: U.transitional(U.boolean),
1427
- forcedJSONParsing: U.transitional(U.boolean),
1428
- clarifyTimeoutError: U.transitional(U.boolean)
1426
+ silentJSONParsing: L.transitional(L.boolean),
1427
+ forcedJSONParsing: L.transitional(L.boolean),
1428
+ clarifyTimeoutError: L.transitional(L.boolean)
1429
1429
  }, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
1430
1430
  serialize: o
1431
1431
  } : Ne.assertOptions(o, {
1432
- encode: U.function,
1433
- serialize: U.function
1432
+ encode: L.function,
1433
+ serialize: L.function
1434
1434
  }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Ne.assertOptions(n, {
1435
- baseUrl: U.spelling("baseURL"),
1436
- withXsrfToken: U.spelling("withXSRFToken")
1435
+ baseUrl: L.spelling("baseURL"),
1436
+ withXsrfToken: L.spelling("withXSRFToken")
1437
1437
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1438
1438
  let i = a && f.merge(
1439
1439
  a.common,
@@ -1447,12 +1447,12 @@ class Q {
1447
1447
  ), n.headers = D.concat(i, a);
1448
1448
  const s = [];
1449
1449
  let c = !0;
1450
- this.interceptors.request.forEach(function(m) {
1451
- typeof m.runWhen == "function" && m.runWhen(n) === !1 || (c = c && m.synchronous, s.unshift(m.fulfilled, m.rejected));
1450
+ this.interceptors.request.forEach(function(g) {
1451
+ typeof g.runWhen == "function" && g.runWhen(n) === !1 || (c = c && g.synchronous, s.unshift(g.fulfilled, g.rejected));
1452
1452
  });
1453
1453
  const u = [];
1454
- this.interceptors.response.forEach(function(m) {
1455
- u.push(m.fulfilled, m.rejected);
1454
+ this.interceptors.response.forEach(function(g) {
1455
+ u.push(g.fulfilled, g.rejected);
1456
1456
  });
1457
1457
  let l, p = 0, d;
1458
1458
  if (!c) {
@@ -1464,11 +1464,11 @@ class Q {
1464
1464
  d = s.length;
1465
1465
  let v = n;
1466
1466
  for (p = 0; p < d; ) {
1467
- const y = s[p++], m = s[p++];
1467
+ const y = s[p++], g = s[p++];
1468
1468
  try {
1469
1469
  v = y(v);
1470
1470
  } catch (h) {
1471
- m.call(this, h);
1471
+ g.call(this, h);
1472
1472
  break;
1473
1473
  }
1474
1474
  }
@@ -1714,7 +1714,7 @@ const Fa = {}, Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1714
1714
  __proto__: null,
1715
1715
  default: Fa
1716
1716
  }, Symbol.toStringTag, { value: "Module" })), $a = /* @__PURE__ */ Na(Da);
1717
- var kt = typeof Map == "function" && Map.prototype, nt = Object.getOwnPropertyDescriptor && kt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ue = kt && nt && typeof nt.get == "function" ? nt.get : null, lr = kt && Map.prototype.forEach, qt = typeof Set == "function" && Set.prototype, ot = Object.getOwnPropertyDescriptor && qt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Be = qt && ot && typeof ot.get == "function" ? ot.get : null, cr = qt && Set.prototype.forEach, Ia = typeof WeakMap == "function" && WeakMap.prototype, ye = Ia ? WeakMap.prototype.has : null, La = typeof WeakSet == "function" && WeakSet.prototype, he = La ? WeakSet.prototype.has : null, Ua = typeof WeakRef == "function" && WeakRef.prototype, ur = Ua ? WeakRef.prototype.deref : null, Ba = Boolean.prototype.valueOf, Ma = Object.prototype.toString, ka = Function.prototype.toString, qa = String.prototype.match, jt = String.prototype.slice, G = String.prototype.replace, ja = String.prototype.toUpperCase, fr = String.prototype.toLowerCase, pn = RegExp.prototype.test, pr = Array.prototype.concat, k = Array.prototype.join, Ha = Array.prototype.slice, dr = Math.floor, xt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, at = Object.getOwnPropertySymbols, _t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ie = typeof Symbol == "function" && typeof Symbol.iterator == "object", me = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ie || !0) ? Symbol.toStringTag : null, dn = Object.prototype.propertyIsEnumerable, yr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1717
+ var kt = typeof Map == "function" && Map.prototype, nt = Object.getOwnPropertyDescriptor && kt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Le = kt && nt && typeof nt.get == "function" ? nt.get : null, lr = kt && Map.prototype.forEach, qt = typeof Set == "function" && Set.prototype, ot = Object.getOwnPropertyDescriptor && qt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Be = qt && ot && typeof ot.get == "function" ? ot.get : null, cr = qt && Set.prototype.forEach, Ia = typeof WeakMap == "function" && WeakMap.prototype, ye = Ia ? WeakMap.prototype.has : null, Ua = typeof WeakSet == "function" && WeakSet.prototype, he = Ua ? WeakSet.prototype.has : null, La = typeof WeakRef == "function" && WeakRef.prototype, ur = La ? WeakRef.prototype.deref : null, Ba = Boolean.prototype.valueOf, Ma = Object.prototype.toString, ka = Function.prototype.toString, qa = String.prototype.match, jt = String.prototype.slice, G = String.prototype.replace, ja = String.prototype.toUpperCase, fr = String.prototype.toLowerCase, pn = RegExp.prototype.test, pr = Array.prototype.concat, k = Array.prototype.join, Ha = Array.prototype.slice, dr = Math.floor, xt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, at = Object.getOwnPropertySymbols, _t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ie = typeof Symbol == "function" && typeof Symbol.iterator == "object", me = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ie || !0) ? Symbol.toStringTag : null, dn = Object.prototype.propertyIsEnumerable, yr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1718
1718
  return t.__proto__;
1719
1719
  } : null);
1720
1720
  function hr(t, e) {
@@ -1792,23 +1792,23 @@ var Ct = $a, mr = Ct.custom, gr = mn(mr) ? mr : null, yn = {
1792
1792
  return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + k.call(y, ", ") + " }" : "");
1793
1793
  }
1794
1794
  if (mn(e)) {
1795
- var m = ie ? G.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : _t.call(e);
1796
- return typeof e == "object" && !ie ? de(m) : m;
1795
+ var g = ie ? G.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : _t.call(e);
1796
+ return typeof e == "object" && !ie ? de(g) : g;
1797
1797
  }
1798
1798
  if (ai(e)) {
1799
- for (var h = "<" + fr.call(String(e.nodeName)), S = e.attributes || [], E = 0; E < S.length; E++)
1800
- h += " " + S[E].name + "=" + hn(Wa(S[E].value), "double", a);
1799
+ for (var h = "<" + fr.call(String(e.nodeName)), E = e.attributes || [], S = 0; S < E.length; S++)
1800
+ h += " " + E[S].name + "=" + hn(Wa(E[S].value), "double", a);
1801
1801
  return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + fr.call(String(e.nodeName)) + ">", h;
1802
1802
  }
1803
1803
  if (Nt(e)) {
1804
1804
  if (e.length === 0)
1805
1805
  return "[]";
1806
- var g = Pe(e, d);
1807
- return p && !si(g) ? "[" + Ft(g, p) + "]" : "[ " + k.call(g, ", ") + " ]";
1806
+ var m = Pe(e, d);
1807
+ return p && !si(m) ? "[" + Ft(m, p) + "]" : "[ " + k.call(m, ", ") + " ]";
1808
1808
  }
1809
1809
  if (Ja(e)) {
1810
- var A = Pe(e, d);
1811
- return !("cause" in Error.prototype) && "cause" in e && !dn.call(e, "cause") ? "{ [" + String(e) + "] " + k.call(pr.call("[cause]: " + d(e.cause), A), ", ") + " }" : A.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + k.call(A, ", ") + " }";
1810
+ var O = Pe(e, d);
1811
+ return !("cause" in Error.prototype) && "cause" in e && !dn.call(e, "cause") ? "{ [" + String(e) + "] " + k.call(pr.call("[cause]: " + d(e.cause), O), ", ") + " }" : O.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + k.call(O, ", ") + " }";
1812
1812
  }
1813
1813
  if (typeof e == "object" && i) {
1814
1814
  if (gr && typeof e[gr] == "function" && Ct)
@@ -1817,10 +1817,10 @@ var Ct = $a, mr = Ct.custom, gr = mn(mr) ? mr : null, yn = {
1817
1817
  return e.inspect();
1818
1818
  }
1819
1819
  if (ei(e)) {
1820
- var O = [];
1820
+ var A = [];
1821
1821
  return lr && lr.call(e, function($, W) {
1822
- O.push(d(W, e, !0) + " => " + d($, e));
1823
- }), wr("Map", Ue.call(e), O, p);
1822
+ A.push(d(W, e, !0) + " => " + d($, e));
1823
+ }), wr("Map", Le.call(e), A, p);
1824
1824
  }
1825
1825
  if (ni(e)) {
1826
1826
  var C = [];
@@ -1847,7 +1847,7 @@ var Ct = $a, mr = Ct.custom, gr = mn(mr) ? mr : null, yn = {
1847
1847
  if (typeof globalThis < "u" && e === globalThis || typeof sr < "u" && e === sr)
1848
1848
  return "{ [object globalThis] }";
1849
1849
  if (!Ga(e) && !vr(e)) {
1850
- var N = Pe(e, d), q = yr ? yr(e) === Object.prototype : e instanceof Object || e.constructor === Object, L = e instanceof Object ? "" : "null prototype", z = !q && me && Object(e) === e && me in e ? jt.call(J(e), 8, -1) : L ? "Object" : "", Re = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", te = Re + (z || L ? "[" + k.call(pr.call([], z || [], L || []), ": ") + "] " : "");
1850
+ var N = Pe(e, d), q = yr ? yr(e) === Object.prototype : e instanceof Object || e.constructor === Object, U = e instanceof Object ? "" : "null prototype", z = !q && me && Object(e) === e && me in e ? jt.call(J(e), 8, -1) : U ? "Object" : "", Re = q || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", te = Re + (z || U ? "[" + k.call(pr.call([], z || [], U || []), ": ") + "] " : "");
1851
1851
  return N.length === 0 ? te + "{}" : p ? te + "{" + Ft(N, p) + "}" : te + "{ " + k.call(N, ", ") + " }";
1852
1852
  }
1853
1853
  return String(e);
@@ -1929,10 +1929,10 @@ function gn(t, e) {
1929
1929
  return -1;
1930
1930
  }
1931
1931
  function ei(t) {
1932
- if (!Ue || !t || typeof t != "object")
1932
+ if (!Le || !t || typeof t != "object")
1933
1933
  return !1;
1934
1934
  try {
1935
- Ue.call(t);
1935
+ Le.call(t);
1936
1936
  try {
1937
1937
  Be.call(t);
1938
1938
  } catch {
@@ -1973,7 +1973,7 @@ function ni(t) {
1973
1973
  try {
1974
1974
  Be.call(t);
1975
1975
  try {
1976
- Ue.call(t);
1976
+ Le.call(t);
1977
1977
  } catch {
1978
1978
  return !0;
1979
1979
  }
@@ -2198,7 +2198,7 @@ function En() {
2198
2198
  var t = wn;
2199
2199
  return ut = t.getPrototypeOf || null, ut;
2200
2200
  }
2201
- var Ii = "Function.prototype.bind called on incompatible ", Li = Object.prototype.toString, Ui = Math.max, Bi = "[object Function]", Ar = function(e, n) {
2201
+ var Ii = "Function.prototype.bind called on incompatible ", Ui = Object.prototype.toString, Li = Math.max, Bi = "[object Function]", Ar = function(e, n) {
2202
2202
  for (var r = [], o = 0; o < e.length; o += 1)
2203
2203
  r[o] = e[o];
2204
2204
  for (var a = 0; a < n.length; a += 1)
@@ -2214,7 +2214,7 @@ var Ii = "Function.prototype.bind called on incompatible ", Li = Object.prototyp
2214
2214
  return n;
2215
2215
  }, qi = function(e) {
2216
2216
  var n = this;
2217
- if (typeof n != "function" || Li.apply(n) !== Bi)
2217
+ if (typeof n != "function" || Ui.apply(n) !== Bi)
2218
2218
  throw new TypeError(Ii + n);
2219
2219
  for (var r = Mi(arguments, 1), o, a = function() {
2220
2220
  if (this instanceof o) {
@@ -2228,7 +2228,7 @@ var Ii = "Function.prototype.bind called on incompatible ", Li = Object.prototyp
2228
2228
  e,
2229
2229
  Ar(r, arguments)
2230
2230
  );
2231
- }, i = Ui(0, n.length - r.length), s = [], c = 0; c < i; c++)
2231
+ }, i = Li(0, n.length - r.length), s = [], c = 0; c < i; c++)
2232
2232
  s[c] = "$" + c;
2233
2233
  if (o = Function("binder", "return function (" + ki(s, ",") + "){ return binder.apply(this,arguments); }")(a), n.prototype) {
2234
2234
  var u = function() {
@@ -2512,8 +2512,8 @@ var Ss = function t(e) {
2512
2512
  return;
2513
2513
  }
2514
2514
  if (we && l + 1 >= r.length) {
2515
- var m = we(s, d);
2516
- p = !!m, p && "get" in m && !("originalValue" in m.get) ? s = m.get : s = s[d];
2515
+ var g = we(s, d);
2516
+ p = !!g, p && "get" in g && !("originalValue" in g.get) ? s = g.get : s = s[d];
2517
2517
  } else
2518
2518
  p = Me(s, d), s = s[d];
2519
2519
  p && !c && (X[i] = s);
@@ -2529,7 +2529,7 @@ var Ss = function t(e) {
2529
2529
  /** @type {const} */
2530
2530
  [r]
2531
2531
  ) : r;
2532
- }, Cs = zt, Ae = _n, Ns = Ve, Fs = ue, Nr = Cs("%Map%", !0), Ds = Ae("Map.prototype.get", !0), $s = Ae("Map.prototype.set", !0), Is = Ae("Map.prototype.has", !0), Ls = Ae("Map.prototype.delete", !0), Us = Ae("Map.prototype.size", !0), Cn = !!Nr && /** @type {Exclude<import('.'), false>} */
2532
+ }, Cs = zt, Ae = _n, Ns = Ve, Fs = ue, Nr = Cs("%Map%", !0), Ds = Ae("Map.prototype.get", !0), $s = Ae("Map.prototype.set", !0), Is = Ae("Map.prototype.has", !0), Us = Ae("Map.prototype.delete", !0), Ls = Ae("Map.prototype.size", !0), Cn = !!Nr && /** @type {Exclude<import('.'), false>} */
2533
2533
  function() {
2534
2534
  var e, n = {
2535
2535
  assert: function(r) {
@@ -2538,8 +2538,8 @@ function() {
2538
2538
  },
2539
2539
  delete: function(r) {
2540
2540
  if (e) {
2541
- var o = Ls(e, r);
2542
- return Us(e) === 0 && (e = void 0), o;
2541
+ var o = Us(e, r);
2542
+ return Ls(e) === 0 && (e = void 0), o;
2543
2543
  }
2544
2544
  return !1;
2545
2545
  },
@@ -2774,52 +2774,52 @@ function() {
2774
2774
  strictNullHandling: !1
2775
2775
  }, hl = function(e) {
2776
2776
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
2777
- }, bt = {}, ml = function t(e, n, r, o, a, i, s, c, u, l, p, d, v, y, m, h, S, E) {
2778
- for (var g = e, A = E, O = 0, C = !1; (A = A.get(bt)) !== void 0 && !C; ) {
2779
- var N = A.get(e);
2780
- if (O += 1, typeof N < "u") {
2781
- if (N === O)
2777
+ }, bt = {}, ml = function t(e, n, r, o, a, i, s, c, u, l, p, d, v, y, g, h, E, S) {
2778
+ for (var m = e, O = S, A = 0, C = !1; (O = O.get(bt)) !== void 0 && !C; ) {
2779
+ var N = O.get(e);
2780
+ if (A += 1, typeof N < "u") {
2781
+ if (N === A)
2782
2782
  throw new RangeError("Cyclic object value");
2783
2783
  C = !0;
2784
2784
  }
2785
- typeof A.get(bt) > "u" && (O = 0);
2785
+ typeof O.get(bt) > "u" && (A = 0);
2786
2786
  }
2787
- if (typeof l == "function" ? g = l(n, g) : g instanceof Date ? g = v(g) : r === "comma" && M(g) && (g = $e.maybeMap(g, function(Ye) {
2787
+ if (typeof l == "function" ? m = l(n, m) : m instanceof Date ? m = v(m) : r === "comma" && M(m) && (m = $e.maybeMap(m, function(Ye) {
2788
2788
  return Ye instanceof Date ? v(Ye) : Ye;
2789
- })), g === null) {
2789
+ })), m === null) {
2790
2790
  if (i)
2791
- return u && !h ? u(n, T.encoder, S, "key", y) : n;
2792
- g = "";
2791
+ return u && !h ? u(n, T.encoder, E, "key", y) : n;
2792
+ m = "";
2793
2793
  }
2794
- if (hl(g) || $e.isBuffer(g)) {
2794
+ if (hl(m) || $e.isBuffer(m)) {
2795
2795
  if (u) {
2796
- var q = h ? n : u(n, T.encoder, S, "key", y);
2797
- return [m(q) + "=" + m(u(g, T.encoder, S, "value", y))];
2796
+ var q = h ? n : u(n, T.encoder, E, "key", y);
2797
+ return [g(q) + "=" + g(u(m, T.encoder, E, "value", y))];
2798
2798
  }
2799
- return [m(n) + "=" + m(String(g))];
2799
+ return [g(n) + "=" + g(String(m))];
2800
2800
  }
2801
- var L = [];
2802
- if (typeof g > "u")
2803
- return L;
2801
+ var U = [];
2802
+ if (typeof m > "u")
2803
+ return U;
2804
2804
  var z;
2805
- if (r === "comma" && M(g))
2806
- h && u && (g = $e.maybeMap(g, u)), z = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
2805
+ if (r === "comma" && M(m))
2806
+ h && u && (m = $e.maybeMap(m, u)), z = [{ value: m.length > 0 ? m.join(",") || null : void 0 }];
2807
2807
  else if (M(l))
2808
2808
  z = l;
2809
2809
  else {
2810
- var Re = Object.keys(g);
2810
+ var Re = Object.keys(m);
2811
2811
  z = p ? Re.sort(p) : Re;
2812
2812
  }
2813
- var te = c ? String(n).replace(/\./g, "%2E") : String(n), $ = o && M(g) && g.length === 1 ? te + "[]" : te;
2814
- if (a && M(g) && g.length === 0)
2813
+ var te = c ? String(n).replace(/\./g, "%2E") : String(n), $ = o && M(m) && m.length === 1 ? te + "[]" : te;
2814
+ if (a && M(m) && m.length === 0)
2815
2815
  return $ + "[]";
2816
2816
  for (var W = 0; W < z.length; ++W) {
2817
- var j = z[W], fe = typeof j == "object" && j && typeof j.value < "u" ? j.value : g[j];
2817
+ var j = z[W], fe = typeof j == "object" && j && typeof j.value < "u" ? j.value : m[j];
2818
2818
  if (!(s && fe === null)) {
2819
- var Ze = d && c ? String(j).replace(/\./g, "%2E") : String(j), qn = M(g) ? typeof r == "function" ? r($, Ze) : $ : $ + (d ? "." + Ze : "[" + Ze + "]");
2820
- E.set(e, O);
2819
+ var Ze = d && c ? String(j).replace(/\./g, "%2E") : String(j), qn = M(m) ? typeof r == "function" ? r($, Ze) : $ : $ + (d ? "." + Ze : "[" + Ze + "]");
2820
+ S.set(e, A);
2821
2821
  var Jt = Dn();
2822
- Jt.set(bt, E), In(L, t(
2822
+ Jt.set(bt, S), In(U, t(
2823
2823
  fe,
2824
2824
  qn,
2825
2825
  r,
@@ -2828,20 +2828,20 @@ function() {
2828
2828
  i,
2829
2829
  s,
2830
2830
  c,
2831
- r === "comma" && h && M(g) ? null : u,
2831
+ r === "comma" && h && M(m) ? null : u,
2832
2832
  l,
2833
2833
  p,
2834
2834
  d,
2835
2835
  v,
2836
2836
  y,
2837
- m,
2837
+ g,
2838
2838
  h,
2839
- S,
2839
+ E,
2840
2840
  Jt
2841
2841
  ));
2842
2842
  }
2843
2843
  }
2844
- return L;
2844
+ return U;
2845
2845
  }, gl = function(e) {
2846
2846
  if (!e)
2847
2847
  return T;
@@ -2946,7 +2946,7 @@ function() {
2946
2946
  return t.replace(/&#(\d+);/g, function(e, n) {
2947
2947
  return String.fromCharCode(parseInt(n, 10));
2948
2948
  });
2949
- }, Ln = function(t, e, n) {
2949
+ }, Un = function(t, e, n) {
2950
2950
  if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1)
2951
2951
  return t.split(",");
2952
2952
  if (e.throwOnLimitExceeded && n >= e.arrayLimit)
@@ -2969,7 +2969,7 @@ function() {
2969
2969
  if (c !== s) {
2970
2970
  var l = i[c], p = l.indexOf("]="), d = p === -1 ? l.indexOf("=") : p + 1, v, y;
2971
2971
  d === -1 ? (v = n.decoder(l, R.decoder, u, "key"), y = n.strictNullHandling ? null : "") : (v = n.decoder(l.slice(0, d), R.decoder, u, "key"), y = Y.maybeMap(
2972
- Ln(
2972
+ Un(
2973
2973
  l.slice(d + 1),
2974
2974
  n,
2975
2975
  Dr(r[v]) ? r[v].length : 0
@@ -2978,8 +2978,8 @@ function() {
2978
2978
  return n.decoder(h, R.decoder, u, "value");
2979
2979
  }
2980
2980
  )), y && n.interpretNumericEntities && u === "iso-8859-1" && (y = wl(String(y))), l.indexOf("[]=") > -1 && (y = Dr(y) ? [y] : y);
2981
- var m = Dt.call(r, v);
2982
- m && n.duplicates === "combine" ? r[v] = Y.combine(r[v], y) : (!m || n.duplicates === "last") && (r[v] = y);
2981
+ var g = Dt.call(r, v);
2982
+ g && n.duplicates === "combine" ? r[v] = Y.combine(r[v], y) : (!g || n.duplicates === "last") && (r[v] = y);
2983
2983
  }
2984
2984
  return r;
2985
2985
  }, Ol = function(t, e, n, r) {
@@ -2988,7 +2988,7 @@ function() {
2988
2988
  var a = t.slice(0, -1).join("");
2989
2989
  o = Array.isArray(e) && e[a] ? e[a].length : 0;
2990
2990
  }
2991
- for (var i = r ? e : Ln(e, n, o), s = t.length - 1; s >= 0; --s) {
2991
+ for (var i = r ? e : Un(e, n, o), s = t.length - 1; s >= 0; --s) {
2992
2992
  var c, u = t[s];
2993
2993
  if (u === "[]" && n.parseArrays)
2994
2994
  c = n.allowEmptyArrays && (i === "" || n.strictNullHandling && i === null) ? [] : Y.combine([], i);
@@ -3149,8 +3149,8 @@ function $t(t, e) {
3149
3149
  var $r = $t(Fl, { path: "/" });
3150
3150
  It.extend(Vn);
3151
3151
  It.extend(Kn);
3152
- const Gt = kr(), Un = Gt.sso ?? !0, Ir = Gt.i18n ?? !0, Bn = Gt.noRedireLogin ?? !1;
3153
- let Lr = "", Ur = 0;
3152
+ const Gt = kr(), Ln = Gt.sso ?? !0, Ir = Gt.i18n ?? !0, Bn = Gt.noRedireLogin ?? !1;
3153
+ let Ur = "", Lr = 0;
3154
3154
  const Dl = 1e3, Br = async (t, e, n = []) => {
3155
3155
  const r = Date.now(), o = 1200, a = 60;
3156
3156
  for (; Date.now() - r < o; ) {
@@ -3168,40 +3168,40 @@ const $l = 5e3, Mn = () => St ? !1 : (St = !0, setTimeout(() => {
3168
3168
  if (Bn) return;
3169
3169
  const t = "/login";
3170
3170
  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}`));
3171
- }, Il = async (t) => {
3171
+ }, Il = () => zn("code") || "" || Bn ? !1 : Mn() ? (Ln ? Wn({ ...Gn, redirect_uri: Jn }) : kn(), !0) : !1, Ul = async (t) => {
3172
3172
  var n;
3173
3173
  return ((n = t.config) == null ? void 0 : n.responseType) === "blob" ? t : t.data ?? t;
3174
3174
  }, Ll = async (t, e) => {
3175
- var m, h, S, E;
3175
+ var y, g, h, E;
3176
3176
  const { t: n } = Mr();
3177
3177
  let r, o, a = {};
3178
3178
  const i = { 400: n("参数校验错误"), 404: n("接口地址未找到"), 500: n("服务器内部错误") };
3179
- let s = ((m = t == null ? void 0 : t.response) == null ? void 0 : m.data) || {};
3180
- const c = zn("code") || "", u = s == null ? void 0 : s.code, l = (h = t.response) == null ? void 0 : h.status;
3181
- if (!c && !Bn && (u === 401 || l === 401)) {
3182
- Mn() && (Un ? Wn({ ...Gn, redirect_uri: Jn }) : kn()), r = u || l, a = s;
3183
- const g = (e == null ? void 0 : e.i18n) ?? !0;
3184
- if (Ir && g && (s != null && s.status)) {
3185
- const A = !(s != null && s.data) || !s.data.length ? [] : s.data, O = n(s.status, ...A);
3186
- o = O === s.status ? await Br(n, s.status, A) : O;
3179
+ let s = ((y = t == null ? void 0 : t.response) == null ? void 0 : y.data) || {};
3180
+ const c = s == null ? void 0 : s.code, u = (g = t.response) == null ? void 0 : g.status;
3181
+ if (c === 401 || u === 401) {
3182
+ Il(), r = c || u, a = s;
3183
+ const S = (e == null ? void 0 : e.i18n) ?? !0;
3184
+ if (Ir && S && (s != null && s.status)) {
3185
+ const m = !(s != null && s.data) || !s.data.length ? [] : s.data, O = n(s.status, ...m);
3186
+ o = O === s.status ? await Br(n, s.status, m) : O;
3187
3187
  } else
3188
3188
  o = (s == null ? void 0 : s.msg) || i[r] || (t == null ? void 0 : t.message);
3189
3189
  } else if (t.response) {
3190
- if (s instanceof Blob && (s = await new Promise((g) => {
3191
- const A = new FileReader();
3192
- A.readAsText(s, "utf-8"), A.onload = () => {
3190
+ if (s instanceof Blob && (s = await new Promise((S) => {
3191
+ const m = new FileReader();
3192
+ m.readAsText(s, "utf-8"), m.onload = () => {
3193
3193
  try {
3194
- g(JSON.parse(A.result || "{}"));
3194
+ S(JSON.parse(m.result || "{}"));
3195
3195
  } catch {
3196
- g({ code: 400, msg: n("解析错误") });
3196
+ S({ code: 400, msg: n("解析错误") });
3197
3197
  }
3198
3198
  };
3199
3199
  })), s.code !== void 0 && s.code !== null) {
3200
3200
  r = s.code, a = s;
3201
- const g = (e == null ? void 0 : e.i18n) ?? !0;
3202
- if (Ir && g && (s != null && s.status)) {
3203
- const A = !(s != null && s.data) || !s.data.length ? [] : s.data, O = n(s.status, ...A);
3204
- o = O === s.status ? await Br(n, s.status, A) : O;
3201
+ const S = (e == null ? void 0 : e.i18n) ?? !0;
3202
+ if (Ir && S && (s != null && s.status)) {
3203
+ const m = !(s != null && s.data) || !s.data.length ? [] : s.data, O = n(s.status, ...m);
3204
+ o = O === s.status ? await Br(n, s.status, m) : O;
3205
3205
  } else
3206
3206
  o = (s == null ? void 0 : s.msg) ?? "";
3207
3207
  } else
@@ -3209,10 +3209,10 @@ const $l = 5e3, Mn = () => St ? !1 : (St = !0, setTimeout(() => {
3209
3209
  o || (o = i[t.response.status] || t.message);
3210
3210
  } 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("请求配置异常"));
3211
3211
  e != null && e.customErrorMessage && (o = e == null ? void 0 : e.customErrorMessage(o, t));
3212
- const d = Date.now(), v = o === Lr, y = d - Ur < Dl;
3213
- return !(e != null && e.ignoreErrorMessage) && o && (!v || !y) && ((E = (S = window.DasMessage) == null ? void 0 : S.error) == null || E.call(S, { message: o, showClose: !0 }), Lr = o, Ur = d), { ...a, code: r, msg: o, error: t };
3212
+ const p = Date.now(), d = o === Ur, v = p - Lr < Dl;
3213
+ return !(e != null && e.ignoreErrorMessage) && o && (!d || !v) && ((E = (h = window.DasMessage) == null ? void 0 : h.error) == null || E.call(h, { message: o, showClose: !0 }), Ur = o, Lr = p), { ...a, code: r, msg: o, error: t };
3214
3214
  };
3215
- function Ul(t, e) {
3215
+ function Bl(t, e) {
3216
3216
  const n = P.create();
3217
3217
  return jn(n, async (r) => {
3218
3218
  const { currentLang: o } = Mr(), a = kr();
@@ -3222,7 +3222,7 @@ function Ul(t, e) {
3222
3222
  const d = new URL(location.href).searchParams;
3223
3223
  p = d.get("token") || d.get("accessToken") || d.get("accesstoken") || "";
3224
3224
  }
3225
- if (Un)
3225
+ if (Ln)
3226
3226
  p || (p = await Hn(r));
3227
3227
  else {
3228
3228
  p || (p = Zn());
@@ -3233,7 +3233,7 @@ function Ul(t, e) {
3233
3233
  }
3234
3234
  p && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${p}`);
3235
3235
  }
3236
- r.baseURL || (r.baseURL = a.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (p) => Nl.stringify(p, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Il), r.onError || (r.onError = Ll), (r.csrf ?? !1) && (r.headers["csrf-token"] = $r.get("csrf-token"));
3236
+ r.baseURL || (r.baseURL = a.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (p) => Nl.stringify(p, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Ul), r.onError || (r.onError = Ll), (r.csrf ?? !1) && (r.headers["csrf-token"] = $r.get("csrf-token"));
3237
3237
  const c = r.params || {};
3238
3238
  if (c.project === void 0) {
3239
3239
  let p = 0;
@@ -3249,7 +3249,7 @@ function Ul(t, e) {
3249
3249
  return l && (r.headers["Accept-Language"] = l), l && $r.set("locale", l), r;
3250
3250
  });
3251
3251
  }
3252
- const Bl = "v2", Kl = Ul(`/api/edge/${Bl}`);
3252
+ const Ml = "v2", Ql = Bl(`/api/edge/${Ml}`);
3253
3253
  export {
3254
- Kl as gatewayEdge
3254
+ Ql as gatewayEdge
3255
3255
  };