@das-fed/utils 7.0.7-hot.61 → 7.0.7-hot.63

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 (37) hide show
  1. package/api-services/modules/app-manage/index.js +782 -800
  2. package/api-services/modules/app-manage/index.js.gz +0 -0
  3. package/api-services/modules/authentication/index.js +782 -800
  4. package/api-services/modules/authentication/index.js.gz +0 -0
  5. package/api-services/modules/contract/index.js +782 -800
  6. package/api-services/modules/contract/index.js.gz +0 -0
  7. package/api-services/modules/duty-manage/index.js +782 -800
  8. package/api-services/modules/duty-manage/index.js.gz +0 -0
  9. package/api-services/modules/file/index.js +907 -889
  10. package/api-services/modules/file/index.js.gz +0 -0
  11. package/api-services/modules/iot/index.js +1053 -1039
  12. package/api-services/modules/iot/index.js.gz +0 -0
  13. package/api-services/modules/justauth/index.js +784 -802
  14. package/api-services/modules/justauth/index.js.gz +0 -0
  15. package/api-services/modules/link/index.js +782 -800
  16. package/api-services/modules/link/index.js.gz +0 -0
  17. package/api-services/modules/platformManage/index.js +776 -794
  18. package/api-services/modules/platformManage/index.js.gz +0 -0
  19. package/api-services/modules/super-admin/index.js +802 -784
  20. package/api-services/modules/super-admin/index.js.gz +0 -0
  21. package/api-services/modules/supplier/index.js +784 -802
  22. package/api-services/modules/supplier/index.js.gz +0 -0
  23. package/api-services/modules/supplychain-manage/index.js +800 -782
  24. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  25. package/api-services/modules/systemConfiguration/index.js +782 -800
  26. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  27. package/api-services/src/create-service/index.js +799 -781
  28. package/api-services/src/create-service/index.js.gz +0 -0
  29. package/create-api-service/index.js +781 -799
  30. package/create-api-service/index.js.gz +0 -0
  31. package/create-api-service/sso/index.js +416 -407
  32. package/create-api-service/sso/index.js.gz +0 -0
  33. package/create-api-service/thirdLogout/index.js +382 -369
  34. package/create-api-service/thirdLogout/index.js.gz +0 -0
  35. package/create-api-service/thirdLogout/thirdLogout/index.d.ts +6 -0
  36. package/esm-map.json +2 -1
  37. package/package.json +4 -4
@@ -1,28 +1,28 @@
1
- import { getConfig as Fe } from "@das-fed/utils/config";
2
- import { clearPlatformAuthStorage as ke, getAccessToken as ut } from "@das-fed/utils/token-tools";
3
- function Be(e, t) {
1
+ import { getConfig as Be } from "@das-fed/utils/config";
2
+ import { clearPlatformAuthStorage as De, getAccessToken as lt } from "@das-fed/utils/token-tools";
3
+ function je(e, t) {
4
4
  return function() {
5
5
  return e.apply(t, arguments);
6
6
  };
7
7
  }
8
- const { toString: lt } = Object.prototype, { getPrototypeOf: pe } = Object, { iterator: X, toStringTag: De } = Symbol, Q = /* @__PURE__ */ ((e) => (t) => {
9
- const n = lt.call(t);
8
+ const { toString: ft } = Object.prototype, { getPrototypeOf: me } = Object, { iterator: Q, toStringTag: Ie } = Symbol, Y = /* @__PURE__ */ ((e) => (t) => {
9
+ const n = ft.call(t);
10
10
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
11
- })(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => Q(t) === e), Y = (e) => (t) => typeof t === e, { isArray: B } = Array, I = Y("undefined");
11
+ })(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => Y(t) === e), Z = (e) => (t) => typeof t === e, { isArray: B } = Array, I = Z("undefined");
12
12
  function q(e) {
13
13
  return e !== null && !I(e) && e.constructor !== null && !I(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
14
14
  }
15
- const je = x("ArrayBuffer");
16
- function ft(e) {
15
+ const qe = x("ArrayBuffer");
16
+ function dt(e) {
17
17
  let t;
18
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && je(e.buffer), t;
18
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && qe(e.buffer), t;
19
19
  }
20
- const dt = Y("string"), A = Y("function"), Ie = Y("number"), M = (e) => e !== null && typeof e == "object", pt = (e) => e === !0 || e === !1, J = (e) => {
21
- if (Q(e) !== "object")
20
+ const pt = Z("string"), A = Z("function"), Me = Z("number"), M = (e) => e !== null && typeof e == "object", ht = (e) => e === !0 || e === !1, J = (e) => {
21
+ if (Y(e) !== "object")
22
22
  return !1;
23
- const t = pe(e);
24
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(De in e) && !(X in e);
25
- }, ht = (e) => {
23
+ const t = me(e);
24
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ie in e) && !(Q in e);
25
+ }, mt = (e) => {
26
26
  if (!M(e) || q(e))
27
27
  return !1;
28
28
  try {
@@ -30,11 +30,11 @@ const dt = Y("string"), A = Y("function"), Ie = Y("number"), M = (e) => e !== nu
30
30
  } catch {
31
31
  return !1;
32
32
  }
33
- }, mt = x("Date"), yt = x("File"), wt = x("Blob"), gt = x("FileList"), bt = (e) => M(e) && A(e.pipe), Et = (e) => {
33
+ }, yt = x("Date"), wt = x("File"), gt = x("Blob"), bt = x("FileList"), Et = (e) => M(e) && A(e.pipe), St = (e) => {
34
34
  let t;
35
- return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = Q(e)) === "formdata" || // detect form-data instance
35
+ return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = Y(e)) === "formdata" || // detect form-data instance
36
36
  t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
37
- }, Rt = x("URLSearchParams"), [St, Ot, Tt, At] = ["ReadableStream", "Request", "Response", "Headers"].map(x), Ct = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
+ }, Rt = x("URLSearchParams"), [Tt, Ot, At, Ct] = ["ReadableStream", "Request", "Response", "Headers"].map(x), xt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
38
38
  function H(e, t, { allOwnKeys: n = !1 } = {}) {
39
39
  if (e === null || typeof e > "u")
40
40
  return;
@@ -51,7 +51,7 @@ function H(e, t, { allOwnKeys: n = !1 } = {}) {
51
51
  c = i[r], t.call(null, e[c], c, e);
52
52
  }
53
53
  }
54
- function qe(e, t) {
54
+ function He(e, t) {
55
55
  if (q(e))
56
56
  return null;
57
57
  t = t.toLowerCase();
@@ -62,19 +62,19 @@ function qe(e, t) {
62
62
  return s;
63
63
  return null;
64
64
  }
65
- const N = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Me = (e) => !I(e) && e !== N;
66
- function ie() {
67
- const { caseless: e } = Me(this) && this || {}, t = {}, n = (r, s) => {
68
- const i = e && qe(t, s) || s;
69
- J(t[i]) && J(r) ? t[i] = ie(t[i], r) : J(r) ? t[i] = ie({}, r) : B(r) ? t[i] = r.slice() : t[i] = r;
65
+ const N = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ze = (e) => !I(e) && e !== N;
66
+ function ae() {
67
+ const { caseless: e } = ze(this) && this || {}, t = {}, n = (r, s) => {
68
+ const i = e && He(t, s) || s;
69
+ J(t[i]) && J(r) ? t[i] = ae(t[i], r) : J(r) ? t[i] = ae({}, r) : B(r) ? t[i] = r.slice() : t[i] = r;
70
70
  };
71
71
  for (let r = 0, s = arguments.length; r < s; r++)
72
72
  arguments[r] && H(arguments[r], n);
73
73
  return t;
74
74
  }
75
- const xt = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, i) => {
76
- n && A(s) ? e[i] = Be(s, n) : e[i] = s;
77
- }, { allOwnKeys: r }), e), _t = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ut = (e, t, n, r) => {
75
+ const _t = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, i) => {
76
+ n && A(s) ? e[i] = je(s, n) : e[i] = s;
77
+ }, { allOwnKeys: r }), e), Ut = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Lt = (e, t, n, r) => {
78
78
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
79
79
  value: t.prototype
80
80
  }), n && Object.assign(e.prototype, n);
@@ -85,48 +85,48 @@ const xt = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, i) => {
85
85
  do {
86
86
  for (s = Object.getOwnPropertyNames(e), i = s.length; i-- > 0; )
87
87
  o = s[i], (!r || r(o, e, t)) && !c[o] && (t[o] = e[o], c[o] = !0);
88
- e = n !== !1 && pe(e);
88
+ e = n !== !1 && me(e);
89
89
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
90
90
  return t;
91
- }, Lt = (e, t, n) => {
91
+ }, Nt = (e, t, n) => {
92
92
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
93
93
  const r = e.indexOf(t, n);
94
94
  return r !== -1 && r === n;
95
- }, Nt = (e) => {
95
+ }, Ft = (e) => {
96
96
  if (!e) return null;
97
97
  if (B(e)) return e;
98
98
  let t = e.length;
99
- if (!Ie(t)) return null;
99
+ if (!Me(t)) return null;
100
100
  const n = new Array(t);
101
101
  for (; t-- > 0; )
102
102
  n[t] = e[t];
103
103
  return n;
104
- }, Ft = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && pe(Uint8Array)), kt = (e, t) => {
105
- const r = (e && e[X]).call(e);
104
+ }, kt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && me(Uint8Array)), Bt = (e, t) => {
105
+ const r = (e && e[Q]).call(e);
106
106
  let s;
107
107
  for (; (s = r.next()) && !s.done; ) {
108
108
  const i = s.value;
109
109
  t.call(e, i[0], i[1]);
110
110
  }
111
- }, Bt = (e, t) => {
111
+ }, Dt = (e, t) => {
112
112
  let n;
113
113
  const r = [];
114
114
  for (; (n = e.exec(t)) !== null; )
115
115
  r.push(n);
116
116
  return r;
117
- }, Dt = x("HTMLFormElement"), jt = (e) => e.toLowerCase().replace(
117
+ }, jt = x("HTMLFormElement"), It = (e) => e.toLowerCase().replace(
118
118
  /[-_\s]([a-z\d])(\w*)/g,
119
119
  function(n, r, s) {
120
120
  return r.toUpperCase() + s;
121
121
  }
122
- ), be = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), It = x("RegExp"), He = (e, t) => {
122
+ ), Se = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), qt = x("RegExp"), $e = (e, t) => {
123
123
  const n = Object.getOwnPropertyDescriptors(e), r = {};
124
124
  H(n, (s, i) => {
125
125
  let o;
126
126
  (o = t(s, i, e)) !== !1 && (r[i] = o || s);
127
127
  }), Object.defineProperties(e, r);
128
- }, qt = (e) => {
129
- He(e, (t, n) => {
128
+ }, Mt = (e) => {
129
+ $e(e, (t, n) => {
130
130
  if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
131
131
  return !1;
132
132
  const r = e[n];
@@ -140,19 +140,19 @@ const xt = (e, t, n, { allOwnKeys: r } = {}) => (H(t, (s, i) => {
140
140
  });
141
141
  }
142
142
  });
143
- }, Mt = (e, t) => {
143
+ }, Ht = (e, t) => {
144
144
  const n = {}, r = (s) => {
145
145
  s.forEach((i) => {
146
146
  n[i] = !0;
147
147
  });
148
148
  };
149
149
  return B(e) ? r(e) : r(String(e).split(t)), n;
150
- }, Ht = () => {
151
- }, zt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
152
- function $t(e) {
153
- return !!(e && A(e.append) && e[De] === "FormData" && e[X]);
150
+ }, zt = () => {
151
+ }, $t = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
152
+ function vt(e) {
153
+ return !!(e && A(e.append) && e[Ie] === "FormData" && e[Q]);
154
154
  }
155
- const vt = (e) => {
155
+ const Jt = (e) => {
156
156
  const t = new Array(10), n = (r, s) => {
157
157
  if (M(r)) {
158
158
  if (t.indexOf(r) >= 0)
@@ -171,72 +171,72 @@ const vt = (e) => {
171
171
  return r;
172
172
  };
173
173
  return n(e, 0);
174
- }, Jt = x("AsyncFunction"), Vt = (e) => e && (M(e) || A(e)) && A(e.then) && A(e.catch), ze = ((e, t) => e ? setImmediate : t ? ((n, r) => (N.addEventListener("message", ({ source: s, data: i }) => {
174
+ }, Vt = x("AsyncFunction"), Kt = (e) => e && (M(e) || A(e)) && A(e.then) && A(e.catch), ve = ((e, t) => e ? setImmediate : t ? ((n, r) => (N.addEventListener("message", ({ source: s, data: i }) => {
175
175
  s === N && i === n && r.length && r.shift()();
176
176
  }, !1), (s) => {
177
177
  r.push(s), N.postMessage(n, "*");
178
178
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
179
179
  typeof setImmediate == "function",
180
180
  A(N.postMessage)
181
- ), Kt = typeof queueMicrotask < "u" ? queueMicrotask.bind(N) : typeof process < "u" && process.nextTick || ze, Wt = (e) => e != null && A(e[X]), a = {
181
+ ), Wt = typeof queueMicrotask < "u" ? queueMicrotask.bind(N) : typeof process < "u" && process.nextTick || ve, Gt = (e) => e != null && A(e[Q]), a = {
182
182
  isArray: B,
183
- isArrayBuffer: je,
183
+ isArrayBuffer: qe,
184
184
  isBuffer: q,
185
- isFormData: Et,
186
- isArrayBufferView: ft,
187
- isString: dt,
188
- isNumber: Ie,
189
- isBoolean: pt,
185
+ isFormData: St,
186
+ isArrayBufferView: dt,
187
+ isString: pt,
188
+ isNumber: Me,
189
+ isBoolean: ht,
190
190
  isObject: M,
191
191
  isPlainObject: J,
192
- isEmptyObject: ht,
193
- isReadableStream: St,
192
+ isEmptyObject: mt,
193
+ isReadableStream: Tt,
194
194
  isRequest: Ot,
195
- isResponse: Tt,
196
- isHeaders: At,
195
+ isResponse: At,
196
+ isHeaders: Ct,
197
197
  isUndefined: I,
198
- isDate: mt,
199
- isFile: yt,
200
- isBlob: wt,
201
- isRegExp: It,
198
+ isDate: yt,
199
+ isFile: wt,
200
+ isBlob: gt,
201
+ isRegExp: qt,
202
202
  isFunction: A,
203
- isStream: bt,
203
+ isStream: Et,
204
204
  isURLSearchParams: Rt,
205
- isTypedArray: Ft,
206
- isFileList: gt,
205
+ isTypedArray: kt,
206
+ isFileList: bt,
207
207
  forEach: H,
208
- merge: ie,
209
- extend: xt,
210
- trim: Ct,
211
- stripBOM: _t,
212
- inherits: Ut,
208
+ merge: ae,
209
+ extend: _t,
210
+ trim: xt,
211
+ stripBOM: Ut,
212
+ inherits: Lt,
213
213
  toFlatObject: Pt,
214
- kindOf: Q,
214
+ kindOf: Y,
215
215
  kindOfTest: x,
216
- endsWith: Lt,
217
- toArray: Nt,
218
- forEachEntry: kt,
219
- matchAll: Bt,
220
- isHTMLForm: Dt,
221
- hasOwnProperty: be,
222
- hasOwnProp: be,
216
+ endsWith: Nt,
217
+ toArray: Ft,
218
+ forEachEntry: Bt,
219
+ matchAll: Dt,
220
+ isHTMLForm: jt,
221
+ hasOwnProperty: Se,
222
+ hasOwnProp: Se,
223
223
  // an alias to avoid ESLint no-prototype-builtins detection
224
- reduceDescriptors: He,
225
- freezeMethods: qt,
226
- toObjectSet: Mt,
227
- toCamelCase: jt,
228
- noop: Ht,
229
- toFiniteNumber: zt,
230
- findKey: qe,
224
+ reduceDescriptors: $e,
225
+ freezeMethods: Mt,
226
+ toObjectSet: Ht,
227
+ toCamelCase: It,
228
+ noop: zt,
229
+ toFiniteNumber: $t,
230
+ findKey: He,
231
231
  global: N,
232
- isContextDefined: Me,
233
- isSpecCompliantForm: $t,
234
- toJSONObject: vt,
235
- isAsyncFn: Jt,
236
- isThenable: Vt,
237
- setImmediate: ze,
238
- asap: Kt,
239
- isIterable: Wt
232
+ isContextDefined: ze,
233
+ isSpecCompliantForm: vt,
234
+ toJSONObject: Jt,
235
+ isAsyncFn: Vt,
236
+ isThenable: Kt,
237
+ setImmediate: ve,
238
+ asap: Wt,
239
+ isIterable: Gt
240
240
  };
241
241
  function m(e, t, n, r, s) {
242
242
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
@@ -262,7 +262,7 @@ a.inherits(m, Error, {
262
262
  };
263
263
  }
264
264
  });
265
- const $e = m.prototype, ve = {};
265
+ const Je = m.prototype, Ve = {};
266
266
  [
267
267
  "ERR_BAD_OPTION_VALUE",
268
268
  "ERR_BAD_OPTION",
@@ -278,35 +278,35 @@ const $e = m.prototype, ve = {};
278
278
  "ERR_INVALID_URL"
279
279
  // eslint-disable-next-line func-names
280
280
  ].forEach((e) => {
281
- ve[e] = { value: e };
281
+ Ve[e] = { value: e };
282
282
  });
283
- Object.defineProperties(m, ve);
284
- Object.defineProperty($e, "isAxiosError", { value: !0 });
283
+ Object.defineProperties(m, Ve);
284
+ Object.defineProperty(Je, "isAxiosError", { value: !0 });
285
285
  m.from = (e, t, n, r, s, i) => {
286
- const o = Object.create($e);
286
+ const o = Object.create(Je);
287
287
  return a.toFlatObject(e, o, function(f) {
288
288
  return f !== Error.prototype;
289
289
  }, (c) => c !== "isAxiosError"), m.call(o, e.message, t, n, r, s), o.cause = e, o.name = e.name, i && Object.assign(o, i), o;
290
290
  };
291
- const Gt = null;
292
- function ae(e) {
291
+ const Xt = null;
292
+ function ce(e) {
293
293
  return a.isPlainObject(e) || a.isArray(e);
294
294
  }
295
- function Je(e) {
295
+ function Ke(e) {
296
296
  return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
297
297
  }
298
- function Ee(e, t, n) {
298
+ function Re(e, t, n) {
299
299
  return e ? e.concat(t).map(function(s, i) {
300
- return s = Je(s), !n && i ? "[" + s + "]" : s;
300
+ return s = Ke(s), !n && i ? "[" + s + "]" : s;
301
301
  }).join(n ? "." : "") : t;
302
302
  }
303
- function Xt(e) {
304
- return a.isArray(e) && !e.some(ae);
303
+ function Qt(e) {
304
+ return a.isArray(e) && !e.some(ce);
305
305
  }
306
- const Qt = a.toFlatObject(a, {}, null, function(t) {
306
+ const Yt = a.toFlatObject(a, {}, null, function(t) {
307
307
  return /^is[A-Z]/.test(t);
308
308
  });
309
- function Z(e, t, n) {
309
+ function ee(e, t, n) {
310
310
  if (!a.isObject(e))
311
311
  throw new TypeError("target must be an object");
312
312
  t = t || new FormData(), n = a.toFlatObject(n, {
@@ -334,34 +334,34 @@ function Z(e, t, n) {
334
334
  if (p && !h && typeof p == "object") {
335
335
  if (a.endsWith(y, "{}"))
336
336
  y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
337
- else if (a.isArray(p) && Xt(p) || (a.isFileList(p) || a.endsWith(y, "[]")) && (b = a.toArray(p)))
338
- return y = Je(y), b.forEach(function(S, U) {
339
- !(a.isUndefined(S) || S === null) && t.append(
337
+ else if (a.isArray(p) && Qt(p) || (a.isFileList(p) || a.endsWith(y, "[]")) && (b = a.toArray(p)))
338
+ return y = Ke(y), b.forEach(function(R, U) {
339
+ !(a.isUndefined(R) || R === null) && t.append(
340
340
  // eslint-disable-next-line no-nested-ternary
341
- o === !0 ? Ee([y], U, i) : o === null ? y : y + "[]",
342
- l(S)
341
+ o === !0 ? Re([y], U, i) : o === null ? y : y + "[]",
342
+ l(R)
343
343
  );
344
344
  }), !1;
345
345
  }
346
- return ae(p) ? !0 : (t.append(Ee(h, y, i), l(p)), !1);
346
+ return ce(p) ? !0 : (t.append(Re(h, y, i), l(p)), !1);
347
347
  }
348
- const d = [], w = Object.assign(Qt, {
348
+ const d = [], w = Object.assign(Yt, {
349
349
  defaultVisitor: u,
350
350
  convertValue: l,
351
- isVisitable: ae
351
+ isVisitable: ce
352
352
  });
353
353
  function E(p, y) {
354
354
  if (!a.isUndefined(p)) {
355
355
  if (d.indexOf(p) !== -1)
356
356
  throw Error("Circular reference detected in " + y.join("."));
357
- d.push(p), a.forEach(p, function(b, R) {
357
+ d.push(p), a.forEach(p, function(b, S) {
358
358
  (!(a.isUndefined(b) || b === null) && s.call(
359
359
  t,
360
360
  b,
361
- a.isString(R) ? R.trim() : R,
361
+ a.isString(S) ? S.trim() : S,
362
362
  y,
363
363
  w
364
- )) === !0 && E(b, y ? y.concat(R) : [R]);
364
+ )) === !0 && E(b, y ? y.concat(S) : [S]);
365
365
  }), d.pop();
366
366
  }
367
367
  }
@@ -369,7 +369,7 @@ function Z(e, t, n) {
369
369
  throw new TypeError("data must be an object");
370
370
  return E(e), t;
371
371
  }
372
- function Re(e) {
372
+ function Te(e) {
373
373
  const t = {
374
374
  "!": "%21",
375
375
  "'": "%27",
@@ -383,40 +383,40 @@ function Re(e) {
383
383
  return t[r];
384
384
  });
385
385
  }
386
- function he(e, t) {
387
- this._pairs = [], e && Z(e, this, t);
386
+ function ye(e, t) {
387
+ this._pairs = [], e && ee(e, this, t);
388
388
  }
389
- const Ve = he.prototype;
390
- Ve.append = function(t, n) {
389
+ const We = ye.prototype;
390
+ We.append = function(t, n) {
391
391
  this._pairs.push([t, n]);
392
392
  };
393
- Ve.toString = function(t) {
393
+ We.toString = function(t) {
394
394
  const n = t ? function(r) {
395
- return t.call(this, r, Re);
396
- } : Re;
395
+ return t.call(this, r, Te);
396
+ } : Te;
397
397
  return this._pairs.map(function(s) {
398
398
  return n(s[0]) + "=" + n(s[1]);
399
399
  }, "").join("&");
400
400
  };
401
- function Yt(e) {
401
+ function Zt(e) {
402
402
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
403
403
  }
404
- function Ke(e, t, n) {
404
+ function Ge(e, t, n) {
405
405
  if (!t)
406
406
  return e;
407
- const r = n && n.encode || Yt;
407
+ const r = n && n.encode || Zt;
408
408
  a.isFunction(n) && (n = {
409
409
  serialize: n
410
410
  });
411
411
  const s = n && n.serialize;
412
412
  let i;
413
- if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new he(t, n).toString(r), i) {
413
+ if (s ? i = s(t, n) : i = a.isURLSearchParams(t) ? t.toString() : new ye(t, n).toString(r), i) {
414
414
  const o = e.indexOf("#");
415
415
  o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
416
416
  }
417
417
  return e;
418
418
  }
419
- class Se {
419
+ class Oe {
420
420
  constructor() {
421
421
  this.handlers = [];
422
422
  }
@@ -470,42 +470,42 @@ class Se {
470
470
  });
471
471
  }
472
472
  }
473
- const We = {
473
+ const Xe = {
474
474
  silentJSONParsing: !0,
475
475
  forcedJSONParsing: !0,
476
476
  clarifyTimeoutError: !1
477
- }, Zt = typeof URLSearchParams < "u" ? URLSearchParams : he, en = typeof FormData < "u" ? FormData : null, tn = typeof Blob < "u" ? Blob : null, nn = {
477
+ }, en = typeof URLSearchParams < "u" ? URLSearchParams : ye, tn = typeof FormData < "u" ? FormData : null, nn = typeof Blob < "u" ? Blob : null, rn = {
478
478
  isBrowser: !0,
479
479
  classes: {
480
- URLSearchParams: Zt,
481
- FormData: en,
482
- Blob: tn
480
+ URLSearchParams: en,
481
+ FormData: tn,
482
+ Blob: nn
483
483
  },
484
484
  protocols: ["http", "https", "file", "blob", "url", "data"]
485
- }, me = typeof window < "u" && typeof document < "u", ce = typeof navigator == "object" && navigator || void 0, rn = me && (!ce || ["ReactNative", "NativeScript", "NS"].indexOf(ce.product) < 0), sn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
486
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", on = me && window.location.href || "http://localhost", an = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
485
+ }, we = typeof window < "u" && typeof document < "u", ue = typeof navigator == "object" && navigator || void 0, sn = we && (!ue || ["ReactNative", "NativeScript", "NS"].indexOf(ue.product) < 0), on = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
486
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", an = we && window.location.href || "http://localhost", cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
487
487
  __proto__: null,
488
- hasBrowserEnv: me,
489
- hasStandardBrowserEnv: rn,
490
- hasStandardBrowserWebWorkerEnv: sn,
491
- navigator: ce,
492
- origin: on
493
- }, Symbol.toStringTag, { value: "Module" })), O = {
494
- ...an,
495
- ...nn
488
+ hasBrowserEnv: we,
489
+ hasStandardBrowserEnv: sn,
490
+ hasStandardBrowserWebWorkerEnv: on,
491
+ navigator: ue,
492
+ origin: an
493
+ }, Symbol.toStringTag, { value: "Module" })), T = {
494
+ ...cn,
495
+ ...rn
496
496
  };
497
- function cn(e, t) {
498
- return Z(e, new O.classes.URLSearchParams(), {
497
+ function un(e, t) {
498
+ return ee(e, new T.classes.URLSearchParams(), {
499
499
  visitor: function(n, r, s, i) {
500
- return O.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
500
+ return T.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
501
501
  },
502
502
  ...t
503
503
  });
504
504
  }
505
- function un(e) {
505
+ function ln(e) {
506
506
  return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
507
507
  }
508
- function ln(e) {
508
+ function fn(e) {
509
509
  const t = {}, n = Object.keys(e);
510
510
  let r;
511
511
  const s = n.length;
@@ -514,22 +514,22 @@ function ln(e) {
514
514
  i = n[r], t[i] = e[i];
515
515
  return t;
516
516
  }
517
- function Ge(e) {
517
+ function Qe(e) {
518
518
  function t(n, r, s, i) {
519
519
  let o = n[i++];
520
520
  if (o === "__proto__") return !0;
521
521
  const c = Number.isFinite(+o), f = i >= n.length;
522
- return o = !o && a.isArray(s) ? s.length : o, f ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = ln(s[o])), !c);
522
+ return o = !o && a.isArray(s) ? s.length : o, f ? (a.hasOwnProp(s, o) ? s[o] = [s[o], r] : s[o] = r, !c) : ((!s[o] || !a.isObject(s[o])) && (s[o] = []), t(n, r, s[o], i) && a.isArray(s[o]) && (s[o] = fn(s[o])), !c);
523
523
  }
524
524
  if (a.isFormData(e) && a.isFunction(e.entries)) {
525
525
  const n = {};
526
526
  return a.forEachEntry(e, (r, s) => {
527
- t(un(r), s, n, 0);
527
+ t(ln(r), s, n, 0);
528
528
  }), n;
529
529
  }
530
530
  return null;
531
531
  }
532
- function fn(e, t, n) {
532
+ function dn(e, t, n) {
533
533
  if (a.isString(e))
534
534
  try {
535
535
  return (t || JSON.parse)(e), a.trim(e);
@@ -540,12 +540,12 @@ function fn(e, t, n) {
540
540
  return (n || JSON.stringify)(e);
541
541
  }
542
542
  const z = {
543
- transitional: We,
543
+ transitional: Xe,
544
544
  adapter: ["xhr", "http", "fetch"],
545
545
  transformRequest: [function(t, n) {
546
546
  const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, i = a.isObject(t);
547
547
  if (i && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
548
- return s ? JSON.stringify(Ge(t)) : t;
548
+ return s ? JSON.stringify(Qe(t)) : t;
549
549
  if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
550
550
  return t;
551
551
  if (a.isArrayBufferView(t))
@@ -555,17 +555,17 @@ const z = {
555
555
  let c;
556
556
  if (i) {
557
557
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
558
- return cn(t, this.formSerializer).toString();
558
+ return un(t, this.formSerializer).toString();
559
559
  if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
560
560
  const f = this.env && this.env.FormData;
561
- return Z(
561
+ return ee(
562
562
  c ? { "files[]": t } : t,
563
563
  f && new f(),
564
564
  this.formSerializer
565
565
  );
566
566
  }
567
567
  }
568
- return i || s ? (n.setContentType("application/json", !1), fn(t)) : t;
568
+ return i || s ? (n.setContentType("application/json", !1), dn(t)) : t;
569
569
  }],
570
570
  transformResponse: [function(t) {
571
571
  const n = this.transitional || z.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
@@ -592,8 +592,8 @@ const z = {
592
592
  maxContentLength: -1,
593
593
  maxBodyLength: -1,
594
594
  env: {
595
- FormData: O.classes.FormData,
596
- Blob: O.classes.Blob
595
+ FormData: T.classes.FormData,
596
+ Blob: T.classes.Blob
597
597
  },
598
598
  validateStatus: function(t) {
599
599
  return t >= 200 && t < 300;
@@ -608,7 +608,7 @@ const z = {
608
608
  a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
609
609
  z.headers[e] = {};
610
610
  });
611
- const dn = a.toObjectSet([
611
+ const pn = a.toObjectSet([
612
612
  "age",
613
613
  "authorization",
614
614
  "content-length",
@@ -626,29 +626,29 @@ const dn = a.toObjectSet([
626
626
  "referer",
627
627
  "retry-after",
628
628
  "user-agent"
629
- ]), pn = (e) => {
629
+ ]), hn = (e) => {
630
630
  const t = {};
631
631
  let n, r, s;
632
632
  return e && e.split(`
633
633
  `).forEach(function(o) {
634
- s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && dn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
634
+ s = o.indexOf(":"), n = o.substring(0, s).trim().toLowerCase(), r = o.substring(s + 1).trim(), !(!n || t[n] && pn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
635
635
  }), t;
636
- }, Oe = Symbol("internals");
636
+ }, Ae = Symbol("internals");
637
637
  function j(e) {
638
638
  return e && String(e).trim().toLowerCase();
639
639
  }
640
640
  function V(e) {
641
641
  return e === !1 || e == null ? e : a.isArray(e) ? e.map(V) : String(e);
642
642
  }
643
- function hn(e) {
643
+ function mn(e) {
644
644
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
645
645
  let r;
646
646
  for (; r = n.exec(e); )
647
647
  t[r[1]] = r[2];
648
648
  return t;
649
649
  }
650
- const mn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
651
- function ne(e, t, n, r, s) {
650
+ const yn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
651
+ function re(e, t, n, r, s) {
652
652
  if (a.isFunction(r))
653
653
  return r.call(this, t, n);
654
654
  if (s && (t = n), !!a.isString(t)) {
@@ -658,10 +658,10 @@ function ne(e, t, n, r, s) {
658
658
  return r.test(t);
659
659
  }
660
660
  }
661
- function yn(e) {
661
+ function wn(e) {
662
662
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
663
663
  }
664
- function wn(e, t) {
664
+ function gn(e, t) {
665
665
  const n = a.toCamelCase(" " + t);
666
666
  ["get", "set", "has"].forEach((r) => {
667
667
  Object.defineProperty(e, r + n, {
@@ -688,8 +688,8 @@ let C = class {
688
688
  const o = (c, f) => a.forEach(c, (l, u) => i(l, u, f));
689
689
  if (a.isPlainObject(t) || t instanceof this.constructor)
690
690
  o(t, n);
691
- else if (a.isString(t) && (t = t.trim()) && !mn(t))
692
- o(pn(t), n);
691
+ else if (a.isString(t) && (t = t.trim()) && !yn(t))
692
+ o(hn(t), n);
693
693
  else if (a.isObject(t) && a.isIterable(t)) {
694
694
  let c = {}, f, l;
695
695
  for (const u of t) {
@@ -710,7 +710,7 @@ let C = class {
710
710
  if (!n)
711
711
  return s;
712
712
  if (n === !0)
713
- return hn(s);
713
+ return mn(s);
714
714
  if (a.isFunction(n))
715
715
  return n.call(this, s, r);
716
716
  if (a.isRegExp(n))
@@ -722,7 +722,7 @@ let C = class {
722
722
  has(t, n) {
723
723
  if (t = j(t), t) {
724
724
  const r = a.findKey(this, t);
725
- return !!(r && this[r] !== void 0 && (!n || ne(this, this[r], r, n)));
725
+ return !!(r && this[r] !== void 0 && (!n || re(this, this[r], r, n)));
726
726
  }
727
727
  return !1;
728
728
  }
@@ -732,7 +732,7 @@ let C = class {
732
732
  function i(o) {
733
733
  if (o = j(o), o) {
734
734
  const c = a.findKey(r, o);
735
- c && (!n || ne(r, r[c], c, n)) && (delete r[c], s = !0);
735
+ c && (!n || re(r, r[c], c, n)) && (delete r[c], s = !0);
736
736
  }
737
737
  }
738
738
  return a.isArray(t) ? t.forEach(i) : i(t), s;
@@ -742,7 +742,7 @@ let C = class {
742
742
  let r = n.length, s = !1;
743
743
  for (; r--; ) {
744
744
  const i = n[r];
745
- (!t || ne(this, this[i], i, t, !0)) && (delete this[i], s = !0);
745
+ (!t || re(this, this[i], i, t, !0)) && (delete this[i], s = !0);
746
746
  }
747
747
  return s;
748
748
  }
@@ -754,7 +754,7 @@ let C = class {
754
754
  n[o] = V(s), delete n[i];
755
755
  return;
756
756
  }
757
- const c = t ? yn(i) : String(i).trim();
757
+ const c = t ? wn(i) : String(i).trim();
758
758
  c !== i && delete n[i], n[c] = V(s), r[c] = !0;
759
759
  }), this;
760
760
  }
@@ -788,12 +788,12 @@ let C = class {
788
788
  return n.forEach((s) => r.set(s)), r;
789
789
  }
790
790
  static accessor(t) {
791
- const r = (this[Oe] = this[Oe] = {
791
+ const r = (this[Ae] = this[Ae] = {
792
792
  accessors: {}
793
793
  }).accessors, s = this.prototype;
794
794
  function i(o) {
795
795
  const c = j(o);
796
- r[c] || (wn(s, o), r[c] = !0);
796
+ r[c] || (gn(s, o), r[c] = !0);
797
797
  }
798
798
  return a.isArray(t) ? t.forEach(i) : i(t), this;
799
799
  }
@@ -809,14 +809,14 @@ a.reduceDescriptors(C.prototype, ({ value: e }, t) => {
809
809
  };
810
810
  });
811
811
  a.freezeMethods(C);
812
- function re(e, t) {
812
+ function se(e, t) {
813
813
  const n = this || z, r = t || n, s = C.from(r.headers);
814
814
  let i = r.data;
815
815
  return a.forEach(e, function(c) {
816
816
  i = c.call(n, i, s.normalize(), t ? t.status : void 0);
817
817
  }), s.normalize(), i;
818
818
  }
819
- function Xe(e) {
819
+ function Ye(e) {
820
820
  return !!(e && e.__CANCEL__);
821
821
  }
822
822
  function D(e, t, n) {
@@ -825,7 +825,7 @@ function D(e, t, n) {
825
825
  a.inherits(D, m, {
826
826
  __CANCEL__: !0
827
827
  });
828
- function Qe(e, t, n) {
828
+ function Ze(e, t, n) {
829
829
  const r = n.config.validateStatus;
830
830
  !n.status || !r || r(n.status) ? e(n) : t(new m(
831
831
  "Request failed with status code " + n.status,
@@ -835,11 +835,11 @@ function Qe(e, t, n) {
835
835
  n
836
836
  ));
837
837
  }
838
- function gn(e) {
838
+ function bn(e) {
839
839
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
840
840
  return t && t[1] || "";
841
841
  }
842
- function bn(e, t) {
842
+ function En(e, t) {
843
843
  e = e || 10;
844
844
  const n = new Array(e), r = new Array(e);
845
845
  let s = 0, i = 0, o;
@@ -855,7 +855,7 @@ function bn(e, t) {
855
855
  return E ? Math.round(w * 1e3 / E) : void 0;
856
856
  };
857
857
  }
858
- function En(e, t) {
858
+ function Sn(e, t) {
859
859
  let n = 0, r = 1e3 / t, s, i;
860
860
  const o = (l, u = Date.now()) => {
861
861
  n = u, s = null, i && (clearTimeout(i), i = null), e(...l);
@@ -869,8 +869,8 @@ function En(e, t) {
869
869
  }
870
870
  const W = (e, t, n = 3) => {
871
871
  let r = 0;
872
- const s = bn(50, 250);
873
- return En((i) => {
872
+ const s = En(50, 250);
873
+ return Sn((i) => {
874
874
  const o = i.loaded, c = i.lengthComputable ? i.total : void 0, f = o - r, l = s(f), u = o <= c;
875
875
  r = o;
876
876
  const d = {
@@ -886,17 +886,17 @@ const W = (e, t, n = 3) => {
886
886
  };
887
887
  e(d);
888
888
  }, n);
889
- }, Te = (e, t) => {
889
+ }, Ce = (e, t) => {
890
890
  const n = e != null;
891
891
  return [(r) => t[0]({
892
892
  lengthComputable: n,
893
893
  total: e,
894
894
  loaded: r
895
895
  }), t[1]];
896
- }, Ae = (e) => (...t) => a.asap(() => e(...t)), Rn = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, O.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
897
- new URL(O.origin),
898
- O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
899
- ) : () => !0, Sn = O.hasStandardBrowserEnv ? (
896
+ }, xe = (e) => (...t) => a.asap(() => e(...t)), Rn = T.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, T.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
897
+ new URL(T.origin),
898
+ T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
899
+ ) : () => !0, Tn = T.hasStandardBrowserEnv ? (
900
900
  // Standard browser envs support document.cookie
901
901
  {
902
902
  write(e, t, n, r, s, i) {
@@ -926,14 +926,14 @@ const W = (e, t, n = 3) => {
926
926
  function On(e) {
927
927
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
928
928
  }
929
- function Tn(e, t) {
929
+ function An(e, t) {
930
930
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
931
931
  }
932
- function Ye(e, t, n) {
932
+ function et(e, t, n) {
933
933
  let r = !On(t);
934
- return e && (r || n == !1) ? Tn(e, t) : t;
934
+ return e && (r || n == !1) ? An(e, t) : t;
935
935
  }
936
- const Ce = (e) => e instanceof C ? { ...e } : e;
936
+ const _e = (e) => e instanceof C ? { ...e } : e;
937
937
  function k(e, t) {
938
938
  t = t || {};
939
939
  const n = {};
@@ -991,37 +991,37 @@ function k(e, t) {
991
991
  socketPath: o,
992
992
  responseEncoding: o,
993
993
  validateStatus: c,
994
- headers: (l, u, d) => s(Ce(l), Ce(u), d, !0)
994
+ headers: (l, u, d) => s(_e(l), _e(u), d, !0)
995
995
  };
996
996
  return a.forEach(Object.keys({ ...e, ...t }), function(u) {
997
997
  const d = f[u] || s, w = d(e[u], t[u], u);
998
998
  a.isUndefined(w) && d !== c || (n[u] = w);
999
999
  }), n;
1000
1000
  }
1001
- const Ze = (e) => {
1001
+ const tt = (e) => {
1002
1002
  const t = k({}, e);
1003
1003
  let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: i, headers: o, auth: c } = t;
1004
- t.headers = o = C.from(o), t.url = Ke(Ye(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
1004
+ t.headers = o = C.from(o), t.url = Ge(et(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
1005
1005
  "Authorization",
1006
1006
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1007
1007
  );
1008
1008
  let f;
1009
1009
  if (a.isFormData(n)) {
1010
- if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
1010
+ if (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv)
1011
1011
  o.setContentType(void 0);
1012
1012
  else if ((f = o.getContentType()) !== !1) {
1013
1013
  const [l, ...u] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
1014
1014
  o.setContentType([l || "multipart/form-data", ...u].join("; "));
1015
1015
  }
1016
1016
  }
1017
- if (O.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Rn(t.url))) {
1018
- const l = s && i && Sn.read(i);
1017
+ if (T.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Rn(t.url))) {
1018
+ const l = s && i && Tn.read(i);
1019
1019
  l && o.set(s, l);
1020
1020
  }
1021
1021
  return t;
1022
- }, An = typeof XMLHttpRequest < "u", Cn = An && function(e) {
1022
+ }, Cn = typeof XMLHttpRequest < "u", xn = Cn && function(e) {
1023
1023
  return new Promise(function(n, r) {
1024
- const s = Ze(e);
1024
+ const s = tt(e);
1025
1025
  let i = s.data;
1026
1026
  const o = C.from(s.headers).normalize();
1027
1027
  let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, d, w, E, p;
@@ -1033,21 +1033,21 @@ const Ze = (e) => {
1033
1033
  function b() {
1034
1034
  if (!h)
1035
1035
  return;
1036
- const S = C.from(
1036
+ const R = C.from(
1037
1037
  "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1038
- ), T = {
1038
+ ), O = {
1039
1039
  data: !c || c === "text" || c === "json" ? h.responseText : h.response,
1040
1040
  status: h.status,
1041
1041
  statusText: h.statusText,
1042
- headers: S,
1042
+ headers: R,
1043
1043
  config: e,
1044
1044
  request: h
1045
1045
  };
1046
- Qe(function(L) {
1047
- n(L), y();
1048
- }, function(L) {
1049
- r(L), y();
1050
- }, T), h = null;
1046
+ Ze(function(P) {
1047
+ n(P), y();
1048
+ }, function(P) {
1049
+ r(P), y();
1050
+ }, O), h = null;
1051
1051
  }
1052
1052
  "onloadend" in h ? h.onloadend = b : h.onreadystatechange = function() {
1053
1053
  !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(b);
@@ -1057,26 +1057,26 @@ const Ze = (e) => {
1057
1057
  r(new m("Network Error", m.ERR_NETWORK, e, h)), h = null;
1058
1058
  }, h.ontimeout = function() {
1059
1059
  let U = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1060
- const T = s.transitional || We;
1060
+ const O = s.transitional || Xe;
1061
1061
  s.timeoutErrorMessage && (U = s.timeoutErrorMessage), r(new m(
1062
1062
  U,
1063
- T.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
1063
+ O.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
1064
1064
  e,
1065
1065
  h
1066
1066
  )), h = null;
1067
- }, i === void 0 && o.setContentType(null), "setRequestHeader" in h && a.forEach(o.toJSON(), function(U, T) {
1068
- h.setRequestHeader(T, U);
1069
- }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), l && ([w, p] = W(l, !0), h.addEventListener("progress", w)), f && h.upload && ([d, E] = W(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (u = (S) => {
1070
- h && (r(!S || S.type ? new D(null, e, h) : S), h.abort(), h = null);
1067
+ }, i === void 0 && o.setContentType(null), "setRequestHeader" in h && a.forEach(o.toJSON(), function(U, O) {
1068
+ h.setRequestHeader(O, U);
1069
+ }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), l && ([w, p] = W(l, !0), h.addEventListener("progress", w)), f && h.upload && ([d, E] = W(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (u = (R) => {
1070
+ h && (r(!R || R.type ? new D(null, e, h) : R), h.abort(), h = null);
1071
1071
  }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1072
- const R = gn(s.url);
1073
- if (R && O.protocols.indexOf(R) === -1) {
1074
- r(new m("Unsupported protocol " + R + ":", m.ERR_BAD_REQUEST, e));
1072
+ const S = bn(s.url);
1073
+ if (S && T.protocols.indexOf(S) === -1) {
1074
+ r(new m("Unsupported protocol " + S + ":", m.ERR_BAD_REQUEST, e));
1075
1075
  return;
1076
1076
  }
1077
1077
  h.send(i || null);
1078
1078
  });
1079
- }, xn = (e, t) => {
1079
+ }, _n = (e, t) => {
1080
1080
  const { length: n } = e = e ? e.filter(Boolean) : [];
1081
1081
  if (t || n) {
1082
1082
  let r = new AbortController(), s;
@@ -1099,7 +1099,7 @@ const Ze = (e) => {
1099
1099
  const { signal: f } = r;
1100
1100
  return f.unsubscribe = () => a.asap(c), f;
1101
1101
  }
1102
- }, _n = function* (e, t) {
1102
+ }, Un = function* (e, t) {
1103
1103
  let n = e.byteLength;
1104
1104
  if (n < t) {
1105
1105
  yield e;
@@ -1108,9 +1108,9 @@ const Ze = (e) => {
1108
1108
  let r = 0, s;
1109
1109
  for (; r < n; )
1110
1110
  s = r + t, yield e.slice(r, s), r = s;
1111
- }, Un = async function* (e, t) {
1111
+ }, Ln = async function* (e, t) {
1112
1112
  for await (const n of Pn(e))
1113
- yield* _n(n, t);
1113
+ yield* Un(n, t);
1114
1114
  }, Pn = async function* (e) {
1115
1115
  if (e[Symbol.asyncIterator]) {
1116
1116
  yield* e;
@@ -1127,8 +1127,8 @@ const Ze = (e) => {
1127
1127
  } finally {
1128
1128
  await t.cancel();
1129
1129
  }
1130
- }, xe = (e, t, n, r) => {
1131
- const s = Un(e, t);
1130
+ }, Ue = (e, t, n, r) => {
1131
+ const s = Ln(e, t);
1132
1132
  let i = 0, o, c = (f) => {
1133
1133
  o || (o = !0, r && r(f));
1134
1134
  };
@@ -1156,15 +1156,15 @@ const Ze = (e) => {
1156
1156
  }, {
1157
1157
  highWaterMark: 2
1158
1158
  });
1159
- }, ee = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", et = ee && typeof ReadableStream == "function", Ln = ee && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), tt = (e, ...t) => {
1159
+ }, te = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", nt = te && typeof ReadableStream == "function", Nn = te && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), rt = (e, ...t) => {
1160
1160
  try {
1161
1161
  return !!e(...t);
1162
1162
  } catch {
1163
1163
  return !1;
1164
1164
  }
1165
- }, Nn = et && tt(() => {
1165
+ }, Fn = nt && rt(() => {
1166
1166
  let e = !1;
1167
- const t = new Request(O.origin, {
1167
+ const t = new Request(T.origin, {
1168
1168
  body: new ReadableStream(),
1169
1169
  method: "POST",
1170
1170
  get duplex() {
@@ -1172,34 +1172,34 @@ const Ze = (e) => {
1172
1172
  }
1173
1173
  }).headers.has("Content-Type");
1174
1174
  return e && !t;
1175
- }), _e = 64 * 1024, ue = et && tt(() => a.isReadableStream(new Response("").body)), G = {
1176
- stream: ue && ((e) => e.body)
1175
+ }), Le = 64 * 1024, le = nt && rt(() => a.isReadableStream(new Response("").body)), G = {
1176
+ stream: le && ((e) => e.body)
1177
1177
  };
1178
- ee && ((e) => {
1178
+ te && ((e) => {
1179
1179
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1180
1180
  !G[t] && (G[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1181
1181
  throw new m(`Response type '${t}' is not supported`, m.ERR_NOT_SUPPORT, r);
1182
1182
  });
1183
1183
  });
1184
1184
  })(new Response());
1185
- const Fn = async (e) => {
1185
+ const kn = async (e) => {
1186
1186
  if (e == null)
1187
1187
  return 0;
1188
1188
  if (a.isBlob(e))
1189
1189
  return e.size;
1190
1190
  if (a.isSpecCompliantForm(e))
1191
- return (await new Request(O.origin, {
1191
+ return (await new Request(T.origin, {
1192
1192
  method: "POST",
1193
1193
  body: e
1194
1194
  }).arrayBuffer()).byteLength;
1195
1195
  if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
1196
1196
  return e.byteLength;
1197
1197
  if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
1198
- return (await Ln(e)).byteLength;
1199
- }, kn = async (e, t) => {
1198
+ return (await Nn(e)).byteLength;
1199
+ }, Bn = async (e, t) => {
1200
1200
  const n = a.toFiniteNumber(e.getContentLength());
1201
- return n ?? Fn(t);
1202
- }, Bn = ee && (async (e) => {
1201
+ return n ?? kn(t);
1202
+ }, Dn = te && (async (e) => {
1203
1203
  let {
1204
1204
  url: t,
1205
1205
  method: n,
@@ -1213,26 +1213,26 @@ const Fn = async (e) => {
1213
1213
  headers: u,
1214
1214
  withCredentials: d = "same-origin",
1215
1215
  fetchOptions: w
1216
- } = Ze(e);
1216
+ } = tt(e);
1217
1217
  l = l ? (l + "").toLowerCase() : "text";
1218
- let E = xn([s, i && i.toAbortSignal()], o), p;
1218
+ let E = _n([s, i && i.toAbortSignal()], o), p;
1219
1219
  const y = E && E.unsubscribe && (() => {
1220
1220
  E.unsubscribe();
1221
1221
  });
1222
1222
  let h;
1223
1223
  try {
1224
- if (f && Nn && n !== "get" && n !== "head" && (h = await kn(u, r)) !== 0) {
1225
- let T = new Request(t, {
1224
+ if (f && Fn && n !== "get" && n !== "head" && (h = await Bn(u, r)) !== 0) {
1225
+ let O = new Request(t, {
1226
1226
  method: "POST",
1227
1227
  body: r,
1228
1228
  duplex: "half"
1229
- }), P;
1230
- if (a.isFormData(r) && (P = T.headers.get("content-type")) && u.setContentType(P), T.body) {
1231
- const [L, $] = Te(
1229
+ }), L;
1230
+ if (a.isFormData(r) && (L = O.headers.get("content-type")) && u.setContentType(L), O.body) {
1231
+ const [P, $] = Ce(
1232
1232
  h,
1233
- W(Ae(f))
1233
+ W(xe(f))
1234
1234
  );
1235
- r = xe(T.body, _e, L, $);
1235
+ r = Ue(O.body, Le, P, $);
1236
1236
  }
1237
1237
  }
1238
1238
  a.isString(d) || (d = d ? "include" : "omit");
@@ -1246,32 +1246,32 @@ const Fn = async (e) => {
1246
1246
  duplex: "half",
1247
1247
  credentials: b ? d : void 0
1248
1248
  });
1249
- let R = await fetch(p, w);
1250
- const S = ue && (l === "stream" || l === "response");
1251
- if (ue && (c || S && y)) {
1252
- const T = {};
1253
- ["status", "statusText", "headers"].forEach((ge) => {
1254
- T[ge] = R[ge];
1249
+ let S = await fetch(p, w);
1250
+ const R = le && (l === "stream" || l === "response");
1251
+ if (le && (c || R && y)) {
1252
+ const O = {};
1253
+ ["status", "statusText", "headers"].forEach((Ee) => {
1254
+ O[Ee] = S[Ee];
1255
1255
  });
1256
- const P = a.toFiniteNumber(R.headers.get("content-length")), [L, $] = c && Te(
1257
- P,
1258
- W(Ae(c), !0)
1256
+ const L = a.toFiniteNumber(S.headers.get("content-length")), [P, $] = c && Ce(
1257
+ L,
1258
+ W(xe(c), !0)
1259
1259
  ) || [];
1260
- R = new Response(
1261
- xe(R.body, _e, L, () => {
1260
+ S = new Response(
1261
+ Ue(S.body, Le, P, () => {
1262
1262
  $ && $(), y && y();
1263
1263
  }),
1264
- T
1264
+ O
1265
1265
  );
1266
1266
  }
1267
1267
  l = l || "text";
1268
- let U = await G[a.findKey(G, l) || "text"](R, e);
1269
- return !S && y && y(), await new Promise((T, P) => {
1270
- Qe(T, P, {
1268
+ let U = await G[a.findKey(G, l) || "text"](S, e);
1269
+ return !R && y && y(), await new Promise((O, L) => {
1270
+ Ze(O, L, {
1271
1271
  data: U,
1272
- headers: C.from(R.headers),
1273
- status: R.status,
1274
- statusText: R.statusText,
1272
+ headers: C.from(S.headers),
1273
+ status: S.status,
1274
+ statusText: S.statusText,
1275
1275
  config: e,
1276
1276
  request: p
1277
1277
  });
@@ -1284,12 +1284,12 @@ const Fn = async (e) => {
1284
1284
  }
1285
1285
  ) : m.from(b, b && b.code, e, p);
1286
1286
  }
1287
- }), le = {
1288
- http: Gt,
1289
- xhr: Cn,
1290
- fetch: Bn
1287
+ }), fe = {
1288
+ http: Xt,
1289
+ xhr: xn,
1290
+ fetch: Dn
1291
1291
  };
1292
- a.forEach(le, (e, t) => {
1292
+ a.forEach(fe, (e, t) => {
1293
1293
  if (e) {
1294
1294
  try {
1295
1295
  Object.defineProperty(e, "name", { value: t });
@@ -1298,7 +1298,7 @@ a.forEach(le, (e, t) => {
1298
1298
  Object.defineProperty(e, "adapterName", { value: t });
1299
1299
  }
1300
1300
  });
1301
- const Ue = (e) => `- ${e}`, Dn = (e) => a.isFunction(e) || e === null || e === !1, nt = {
1301
+ const Pe = (e) => `- ${e}`, jn = (e) => a.isFunction(e) || e === null || e === !1, st = {
1302
1302
  getAdapter: (e) => {
1303
1303
  e = a.isArray(e) ? e : [e];
1304
1304
  const { length: t } = e;
@@ -1307,7 +1307,7 @@ const Ue = (e) => `- ${e}`, Dn = (e) => a.isFunction(e) || e === null || e === !
1307
1307
  for (let i = 0; i < t; i++) {
1308
1308
  n = e[i];
1309
1309
  let o;
1310
- if (r = n, !Dn(n) && (r = le[(o = String(n)).toLowerCase()], r === void 0))
1310
+ if (r = n, !jn(n) && (r = fe[(o = String(n)).toLowerCase()], r === void 0))
1311
1311
  throw new m(`Unknown adapter '${o}'`);
1312
1312
  if (r)
1313
1313
  break;
@@ -1318,8 +1318,8 @@ const Ue = (e) => `- ${e}`, Dn = (e) => a.isFunction(e) || e === null || e === !
1318
1318
  ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1319
1319
  );
1320
1320
  let o = t ? i.length > 1 ? `since :
1321
- ` + i.map(Ue).join(`
1322
- `) : " " + Ue(i[0]) : "as no adapter specified";
1321
+ ` + i.map(Pe).join(`
1322
+ `) : " " + Pe(i[0]) : "as no adapter specified";
1323
1323
  throw new m(
1324
1324
  "There is no suitable adapter to dispatch the request " + o,
1325
1325
  "ERR_NOT_SUPPORT"
@@ -1327,40 +1327,40 @@ const Ue = (e) => `- ${e}`, Dn = (e) => a.isFunction(e) || e === null || e === !
1327
1327
  }
1328
1328
  return r;
1329
1329
  },
1330
- adapters: le
1330
+ adapters: fe
1331
1331
  };
1332
- function se(e) {
1332
+ function oe(e) {
1333
1333
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1334
1334
  throw new D(null, e);
1335
1335
  }
1336
- function Pe(e) {
1337
- return se(e), e.headers = C.from(e.headers), e.data = re.call(
1336
+ function Ne(e) {
1337
+ return oe(e), e.headers = C.from(e.headers), e.data = se.call(
1338
1338
  e,
1339
1339
  e.transformRequest
1340
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), nt.getAdapter(e.adapter || z.adapter)(e).then(function(r) {
1341
- return se(e), r.data = re.call(
1340
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), st.getAdapter(e.adapter || z.adapter)(e).then(function(r) {
1341
+ return oe(e), r.data = se.call(
1342
1342
  e,
1343
1343
  e.transformResponse,
1344
1344
  r
1345
1345
  ), r.headers = C.from(r.headers), r;
1346
1346
  }, function(r) {
1347
- return Xe(r) || (se(e), r && r.response && (r.response.data = re.call(
1347
+ return Ye(r) || (oe(e), r && r.response && (r.response.data = se.call(
1348
1348
  e,
1349
1349
  e.transformResponse,
1350
1350
  r.response
1351
1351
  ), r.response.headers = C.from(r.response.headers))), Promise.reject(r);
1352
1352
  });
1353
1353
  }
1354
- const rt = "1.11.0", te = {};
1354
+ const ot = "1.11.0", ne = {};
1355
1355
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1356
- te[e] = function(r) {
1356
+ ne[e] = function(r) {
1357
1357
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1358
1358
  };
1359
1359
  });
1360
- const Le = {};
1361
- te.transitional = function(t, n, r) {
1360
+ const Fe = {};
1361
+ ne.transitional = function(t, n, r) {
1362
1362
  function s(i, o) {
1363
- return "[Axios v" + rt + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1363
+ return "[Axios v" + ot + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1364
1364
  }
1365
1365
  return (i, o, c) => {
1366
1366
  if (t === !1)
@@ -1368,13 +1368,13 @@ te.transitional = function(t, n, r) {
1368
1368
  s(o, " has been removed" + (n ? " in " + n : "")),
1369
1369
  m.ERR_DEPRECATED
1370
1370
  );
1371
- return n && !Le[o] && (Le[o] = !0), t ? t(i, o, c) : !0;
1371
+ return n && !Fe[o] && (Fe[o] = !0), t ? t(i, o, c) : !0;
1372
1372
  };
1373
1373
  };
1374
- te.spelling = function(t) {
1374
+ ne.spelling = function(t) {
1375
1375
  return (n, r) => !0;
1376
1376
  };
1377
- function jn(e, t, n) {
1377
+ function In(e, t, n) {
1378
1378
  if (typeof e != "object")
1379
1379
  throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
1380
1380
  const r = Object.keys(e);
@@ -1392,14 +1392,14 @@ function jn(e, t, n) {
1392
1392
  }
1393
1393
  }
1394
1394
  const K = {
1395
- assertOptions: jn,
1396
- validators: te
1395
+ assertOptions: In,
1396
+ validators: ne
1397
1397
  }, _ = K.validators;
1398
1398
  let F = class {
1399
1399
  constructor(t) {
1400
1400
  this.defaults = t || {}, this.interceptors = {
1401
- request: new Se(),
1402
- response: new Se()
1401
+ request: new Oe(),
1402
+ response: new Oe()
1403
1403
  };
1404
1404
  }
1405
1405
  /**
@@ -1464,7 +1464,7 @@ let F = class {
1464
1464
  });
1465
1465
  let u, d = 0, w;
1466
1466
  if (!f) {
1467
- const p = [Pe.bind(this), void 0];
1467
+ const p = [Ne.bind(this), void 0];
1468
1468
  for (p.unshift(...c), p.push(...l), w = p.length, u = Promise.resolve(n); d < w; )
1469
1469
  u = u.then(p[d++], p[d++]);
1470
1470
  return u;
@@ -1481,7 +1481,7 @@ let F = class {
1481
1481
  }
1482
1482
  }
1483
1483
  try {
1484
- u = Pe.call(this, E);
1484
+ u = Ne.call(this, E);
1485
1485
  } catch (p) {
1486
1486
  return Promise.reject(p);
1487
1487
  }
@@ -1491,8 +1491,8 @@ let F = class {
1491
1491
  }
1492
1492
  getUri(t) {
1493
1493
  t = k(this.defaults, t);
1494
- const n = Ye(t.baseURL, t.url, t.allowAbsoluteUrls);
1495
- return Ke(n, t.params, t.paramsSerializer);
1494
+ const n = et(t.baseURL, t.url, t.allowAbsoluteUrls);
1495
+ return Ge(n, t.params, t.paramsSerializer);
1496
1496
  }
1497
1497
  };
1498
1498
  a.forEach(["delete", "get", "head", "options"], function(t) {
@@ -1519,7 +1519,7 @@ a.forEach(["post", "put", "patch"], function(t) {
1519
1519
  }
1520
1520
  F.prototype[t] = n(), F.prototype[t + "Form"] = n(!0);
1521
1521
  });
1522
- let In = class st {
1522
+ let qn = class it {
1523
1523
  constructor(t) {
1524
1524
  if (typeof t != "function")
1525
1525
  throw new TypeError("executor must be a function.");
@@ -1585,22 +1585,22 @@ let In = class st {
1585
1585
  static source() {
1586
1586
  let t;
1587
1587
  return {
1588
- token: new st(function(s) {
1588
+ token: new it(function(s) {
1589
1589
  t = s;
1590
1590
  }),
1591
1591
  cancel: t
1592
1592
  };
1593
1593
  }
1594
1594
  };
1595
- function qn(e) {
1595
+ function Mn(e) {
1596
1596
  return function(n) {
1597
1597
  return e.apply(null, n);
1598
1598
  };
1599
1599
  }
1600
- function Mn(e) {
1600
+ function Hn(e) {
1601
1601
  return a.isObject(e) && e.isAxiosError === !0;
1602
1602
  }
1603
- const fe = {
1603
+ const de = {
1604
1604
  Continue: 100,
1605
1605
  SwitchingProtocols: 101,
1606
1606
  Processing: 102,
@@ -1665,52 +1665,52 @@ const fe = {
1665
1665
  NotExtended: 510,
1666
1666
  NetworkAuthenticationRequired: 511
1667
1667
  };
1668
- Object.entries(fe).forEach(([e, t]) => {
1669
- fe[t] = e;
1668
+ Object.entries(de).forEach(([e, t]) => {
1669
+ de[t] = e;
1670
1670
  });
1671
- function ot(e) {
1672
- const t = new F(e), n = Be(F.prototype.request, t);
1671
+ function at(e) {
1672
+ const t = new F(e), n = je(F.prototype.request, t);
1673
1673
  return a.extend(n, F.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1674
- return ot(k(e, s));
1674
+ return at(k(e, s));
1675
1675
  }, n;
1676
1676
  }
1677
- const g = ot(z);
1677
+ const g = at(z);
1678
1678
  g.Axios = F;
1679
1679
  g.CanceledError = D;
1680
- g.CancelToken = In;
1681
- g.isCancel = Xe;
1682
- g.VERSION = rt;
1683
- g.toFormData = Z;
1680
+ g.CancelToken = qn;
1681
+ g.isCancel = Ye;
1682
+ g.VERSION = ot;
1683
+ g.toFormData = ee;
1684
1684
  g.AxiosError = m;
1685
1685
  g.Cancel = g.CanceledError;
1686
1686
  g.all = function(t) {
1687
1687
  return Promise.all(t);
1688
1688
  };
1689
- g.spread = qn;
1690
- g.isAxiosError = Mn;
1689
+ g.spread = Mn;
1690
+ g.isAxiosError = Hn;
1691
1691
  g.mergeConfig = k;
1692
1692
  g.AxiosHeaders = C;
1693
- g.formToJSON = (e) => Ge(a.isHTMLForm(e) ? new FormData(e) : e);
1694
- g.getAdapter = nt.getAdapter;
1695
- g.HttpStatusCode = fe;
1693
+ g.formToJSON = (e) => Qe(a.isHTMLForm(e) ? new FormData(e) : e);
1694
+ g.getAdapter = st.getAdapter;
1695
+ g.HttpStatusCode = de;
1696
1696
  g.default = g;
1697
1697
  const {
1698
- Axios: tr,
1699
- AxiosError: nr,
1700
- CanceledError: rr,
1701
- isCancel: sr,
1702
- CancelToken: or,
1703
- VERSION: ir,
1704
- all: ar,
1705
- Cancel: cr,
1706
- isAxiosError: ur,
1707
- spread: lr,
1708
- toFormData: fr,
1709
- AxiosHeaders: dr,
1710
- HttpStatusCode: pr,
1711
- formToJSON: hr,
1712
- getAdapter: mr,
1713
- mergeConfig: yr
1698
+ Axios: nr,
1699
+ AxiosError: rr,
1700
+ CanceledError: sr,
1701
+ isCancel: or,
1702
+ CancelToken: ir,
1703
+ VERSION: ar,
1704
+ all: cr,
1705
+ Cancel: ur,
1706
+ isAxiosError: lr,
1707
+ spread: fr,
1708
+ toFormData: dr,
1709
+ AxiosHeaders: pr,
1710
+ HttpStatusCode: hr,
1711
+ formToJSON: mr,
1712
+ getAdapter: yr,
1713
+ mergeConfig: wr
1714
1714
  } = g;
1715
1715
  /*! js-cookie v3.0.5 | MIT */
1716
1716
  function v(e) {
@@ -1721,7 +1721,7 @@ function v(e) {
1721
1721
  }
1722
1722
  return e;
1723
1723
  }
1724
- var Hn = {
1724
+ var zn = {
1725
1725
  read: function(e) {
1726
1726
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
1727
1727
  },
@@ -1732,7 +1732,7 @@ var Hn = {
1732
1732
  );
1733
1733
  }
1734
1734
  };
1735
- function de(e, t) {
1735
+ function pe(e, t) {
1736
1736
  function n(s, i, o) {
1737
1737
  if (!(typeof document > "u")) {
1738
1738
  o = v({}, t, o), typeof o.expires == "number" && (o.expires = new Date(Date.now() + o.expires * 864e5)), o.expires && (o.expires = o.expires.toUTCString()), s = encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
@@ -1770,10 +1770,10 @@ function de(e, t) {
1770
1770
  );
1771
1771
  },
1772
1772
  withAttributes: function(s) {
1773
- return de(this.converter, v({}, this.attributes, s));
1773
+ return pe(this.converter, v({}, this.attributes, s));
1774
1774
  },
1775
1775
  withConverter: function(s) {
1776
- return de(v({}, this.converter, s), this.attributes);
1776
+ return pe(v({}, this.converter, s), this.attributes);
1777
1777
  }
1778
1778
  },
1779
1779
  {
@@ -1782,42 +1782,54 @@ function de(e, t) {
1782
1782
  }
1783
1783
  );
1784
1784
  }
1785
- var Ne = de(Hn, { path: "/" });
1786
- const oe = "loginType", zn = (e) => new URL(location.href).searchParams.get(e), $n = () => {
1787
- const e = zn(oe) || "";
1788
- return e ? (localStorage.setItem(oe, e), e) : localStorage.getItem(oe) || "";
1789
- }, vn = "/api/justauth/client/v1/visitor/sso-param", Jn = "/api/justauth/client/v1/visitor/jmc/sso/status", it = "thirdLogouSource", Vn = ["zhongshen", "jmc"], Kn = {
1785
+ var ke = pe(zn, { path: "/" });
1786
+ const ie = "loginType", $n = (e) => new URL(location.href).searchParams.get(e), vn = () => {
1787
+ const e = $n(ie) || "";
1788
+ return e ? (localStorage.setItem(ie, e), e) : localStorage.getItem(ie) || "";
1789
+ }, Jn = "/api/justauth/client/v1/visitor/sso-param", Vn = "/api/justauth/client/v1/visitor/jmc/sso/status", X = "thirdLogouSource", Kn = ["zhongshen", "jmc"], Wn = {
1790
1790
  uat: "https://sso-uat.jmc.com.cn"
1791
1791
  };
1792
- let ye = "";
1793
- const we = () => localStorage.getItem(it) || ye, at = (e) => {
1794
- const t = $n();
1795
- return e === "jmc" && t === "das" ? !1 : Vn.includes(e);
1796
- }, wr = () => at(we()), ct = (e) => {
1797
- ye = we(), localStorage.removeItem(it), window.__isAutoCloseApp = !1, location.href = e;
1798
- }, Wn = (e) => {
1799
- ke();
1792
+ let ge = "";
1793
+ const he = (e) => {
1794
+ if (e == null) return "";
1795
+ const t = String(e).trim();
1796
+ if (!t) return "";
1797
+ const n = t.toLowerCase();
1798
+ return n === "undefined" || n === "null" ? "" : t;
1799
+ }, gr = (e) => {
1800
+ const t = he(e);
1801
+ return t ? (localStorage.setItem(X, t), !0) : !1;
1802
+ }, be = () => {
1803
+ const e = localStorage.getItem(X), t = he(e);
1804
+ return e !== null && !t && localStorage.removeItem(X), t || he(ge);
1805
+ }, ct = (e) => {
1806
+ const t = vn();
1807
+ return e === "jmc" && t === "das" ? !1 : Kn.includes(e);
1808
+ }, br = () => ct(be()), ut = (e) => {
1809
+ ge = be(), localStorage.removeItem(X), window.__isAutoCloseApp = !1, location.href = e;
1810
+ }, Gn = (e) => {
1811
+ De();
1800
1812
  const n = `https://iam.shenyejituan.com:443/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=${encodeURIComponent(e)}&entityId=AIoT&redirectToLogin=true`;
1801
- ct(n);
1802
- }, Gn = async (e = "") => {
1813
+ ut(n);
1814
+ }, Xn = async (e = "") => {
1803
1815
  try {
1804
- const { baseURL: t } = Fe();
1816
+ const { baseURL: t } = Be();
1805
1817
  await g.create().post(
1806
- Jn,
1818
+ Vn,
1807
1819
  {
1808
1820
  ssoToken: e,
1809
1821
  // 平台退出前已清理本地 token,这里通过 cookie 兜底读取,便于后端定位并清理 cookie token。
1810
- platformToken: ut()
1822
+ platformToken: lt()
1811
1823
  },
1812
1824
  { baseURL: t }
1813
1825
  );
1814
1826
  } catch {
1815
1827
  }
1816
- }, Xn = async () => {
1828
+ }, Qn = async () => {
1817
1829
  let e = "";
1818
1830
  try {
1819
- const { baseURL: s } = Fe();
1820
- e = (await g.create().get(vn, {
1831
+ const { baseURL: s } = Be();
1832
+ e = (await g.create().get(Jn, {
1821
1833
  baseURL: s,
1822
1834
  params: {
1823
1835
  source: "jmc",
@@ -1833,25 +1845,26 @@ const we = () => localStorage.getItem(it) || ye, at = (e) => {
1833
1845
  } catch {
1834
1846
  return "";
1835
1847
  }
1836
- })(), n = t === Kn.uat ? Ne.get("sso_access_token_uat") : Ne.get("sso_access_token"), r = `${t}/oauth2/system/auth/logout?sso_token=${n}`;
1848
+ })(), n = t === Wn.uat ? ke.get("sso_access_token_uat") : ke.get("sso_access_token"), r = `${t}/oauth2/system/auth/logout?sso_token=${n}`;
1837
1849
  try {
1838
1850
  await g.post(r);
1839
1851
  } catch {
1840
1852
  }
1841
- await Gn(n), ke(), ct(e);
1842
- }, gr = async (e = "") => {
1843
- const t = we();
1844
- if (at(t)) {
1845
- if (ye = t, t === "zhongshen") {
1846
- Wn(e);
1853
+ await Xn(n), De(), ut(e);
1854
+ }, Er = async (e = "") => {
1855
+ const t = be();
1856
+ if (ct(t)) {
1857
+ if (ge = t, t === "zhongshen") {
1858
+ Gn(e);
1847
1859
  return;
1848
1860
  }
1849
- t === "jmc" && await Xn();
1861
+ t === "jmc" && await Qn();
1850
1862
  }
1851
1863
  };
1852
1864
  export {
1853
- wr as isThirdLogin,
1854
- Xn as jmcLogout,
1855
- gr as thirdLogout,
1856
- Wn as zhongshenLogout
1865
+ br as isThirdLogin,
1866
+ Qn as jmcLogout,
1867
+ gr as setThirdLogoutSource,
1868
+ Er as thirdLogout,
1869
+ Gn as zhongshenLogout
1857
1870
  };