@das-fed/utils 7.0.0 → 7.0.1-beta.1

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 (27) hide show
  1. package/api-services/modules/app-manage/index.js +719 -733
  2. package/api-services/modules/app-manage/index.js.gz +0 -0
  3. package/api-services/modules/authentication/index.js +717 -735
  4. package/api-services/modules/authentication/index.js.gz +0 -0
  5. package/api-services/modules/bems/index.js +747 -765
  6. package/api-services/modules/bems/index.js.gz +0 -0
  7. package/api-services/modules/contract/index.js +717 -735
  8. package/api-services/modules/contract/index.js.gz +0 -0
  9. package/api-services/modules/duty-manage/index.js +759 -745
  10. package/api-services/modules/duty-manage/index.js.gz +0 -0
  11. package/api-services/modules/enterpriseright/index.js +735 -717
  12. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  13. package/api-services/modules/justauth/index.js +763 -745
  14. package/api-services/modules/justauth/index.js.gz +0 -0
  15. package/api-services/modules/space-manage/index.js +717 -735
  16. package/api-services/modules/space-manage/index.js.gz +0 -0
  17. package/api-services/modules/supplier/index.js +764 -746
  18. package/api-services/modules/supplier/index.js.gz +0 -0
  19. package/api-services/src/create-service/index.js +734 -716
  20. package/api-services/src/create-service/index.js.gz +0 -0
  21. package/common-info/type.d.ts +11 -7
  22. package/common-tools/get-url-params/index.d.ts +1 -1
  23. package/create-api-service/index.js +716 -734
  24. package/create-api-service/index.js.gz +0 -0
  25. package/create-api-service/sso/index.js +411 -412
  26. package/create-api-service/sso/index.js.gz +0 -0
  27. package/package.json +4 -4
@@ -1,42 +1,41 @@
1
- import { unref as Ut, getCurrentScope as Lt, onScopeDispose as Dt, ref as Y, watch as Re } from "vue";
2
- import { encryption as Ft } from "@das-fed/utils/atob";
3
- import { getConfig as Te } from "@das-fed/utils/config";
4
- import { getUrlParams as Ze, funcUrlDel as vt } from "@das-fed/utils/common-tools";
5
- import { getAccessToken as H, removeAccessToken as Bt, setAccessToken as It, getAccessTokenInfo as ce } from "@das-fed/utils/token-tools";
1
+ import { unref as Ut, getCurrentScope as Dt, onScopeDispose as Ft, ref as ee, watch as Te } from "vue";
2
+ import { encryption as vt } from "@das-fed/utils/atob";
3
+ import { getConfig as Oe } from "@das-fed/utils/config";
4
+ import { getAccessToken as F, removeAccessToken as Bt, setAccessToken as It, getAccessTokenInfo as ue } from "@das-fed/utils/token-tools";
6
5
  import { removeProcessEngineToken as jt, setProcessEngineToken as qt } from "@das-fed/utils/process-engine-info";
7
- import { setPersonalInfo as Ye } from "@das-fed/utils/common-info/set-personal-info";
8
- function et(e, t) {
6
+ import { setPersonalInfo as tt } from "@das-fed/utils/common-info/set-personal-info";
7
+ function nt(e, t) {
9
8
  return function() {
10
9
  return e.apply(t, arguments);
11
10
  };
12
11
  }
13
- const { toString: Ht } = Object.prototype, { getPrototypeOf: Oe } = Object, ne = /* @__PURE__ */ ((e) => (t) => {
12
+ const { toString: Ht } = Object.prototype, { getPrototypeOf: Ae } = Object, re = /* @__PURE__ */ ((e) => (t) => {
14
13
  const n = Ht.call(t);
15
14
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
16
- })(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => ne(t) === e), re = (e) => (t) => typeof t === e, { isArray: B } = Array, M = re("undefined");
15
+ })(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => re(t) === e), oe = (e) => (t) => typeof t === e, { isArray: I } = Array, M = oe("undefined");
17
16
  function Mt(e) {
18
17
  return e !== null && !M(e) && e.constructor !== null && !M(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
19
18
  }
20
- const tt = x("ArrayBuffer");
19
+ const rt = x("ArrayBuffer");
21
20
  function $t(e) {
22
21
  let t;
23
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && tt(e.buffer), t;
22
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && rt(e.buffer), t;
24
23
  }
25
- const zt = re("string"), _ = re("function"), nt = re("number"), oe = (e) => e !== null && typeof e == "object", Jt = (e) => e === !0 || e === !1, G = (e) => {
26
- if (ne(e) !== "object")
24
+ const zt = oe("string"), _ = oe("function"), ot = oe("number"), se = (e) => e !== null && typeof e == "object", Jt = (e) => e === !0 || e === !1, G = (e) => {
25
+ if (re(e) !== "object")
27
26
  return !1;
28
- const t = Oe(e);
27
+ const t = Ae(e);
29
28
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
30
- }, Vt = x("Date"), Wt = x("File"), Kt = x("Blob"), Qt = x("FileList"), Gt = (e) => oe(e) && _(e.pipe), Xt = (e) => {
29
+ }, Vt = x("Date"), Wt = x("File"), Kt = x("Blob"), Qt = x("FileList"), Gt = (e) => se(e) && _(e.pipe), Xt = (e) => {
31
30
  let t;
32
- return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = ne(e)) === "formdata" || // detect form-data instance
31
+ return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = re(e)) === "formdata" || // detect form-data instance
33
32
  t === "object" && _(e.toString) && e.toString() === "[object FormData]"));
34
33
  }, Zt = x("URLSearchParams"), [Yt, en, tn, nn] = ["ReadableStream", "Request", "Response", "Headers"].map(x), rn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
35
34
  function V(e, t, { allOwnKeys: n = !1 } = {}) {
36
35
  if (e === null || typeof e > "u")
37
36
  return;
38
37
  let r, o;
39
- if (typeof e != "object" && (e = [e]), B(e))
38
+ if (typeof e != "object" && (e = [e]), I(e))
40
39
  for (r = 0, o = e.length; r < o; r++)
41
40
  t.call(null, e[r], r, e);
42
41
  else {
@@ -46,7 +45,7 @@ function V(e, t, { allOwnKeys: n = !1 } = {}) {
46
45
  c = s[r], t.call(null, e[c], c, e);
47
46
  }
48
47
  }
49
- function rt(e, t) {
48
+ function st(e, t) {
50
49
  t = t.toLowerCase();
51
50
  const n = Object.keys(e);
52
51
  let r = n.length, o;
@@ -55,18 +54,18 @@ function rt(e, t) {
55
54
  return o;
56
55
  return null;
57
56
  }
58
- const U = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ot = (e) => !M(e) && e !== U;
59
- function pe() {
60
- const { caseless: e } = ot(this) && this || {}, t = {}, n = (r, o) => {
61
- const s = e && rt(t, o) || o;
62
- G(t[s]) && G(r) ? t[s] = pe(t[s], r) : G(r) ? t[s] = pe({}, r) : B(r) ? t[s] = r.slice() : t[s] = r;
57
+ const L = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, it = (e) => !M(e) && e !== L;
58
+ function he() {
59
+ const { caseless: e } = it(this) && this || {}, t = {}, n = (r, o) => {
60
+ const s = e && st(t, o) || o;
61
+ G(t[s]) && G(r) ? t[s] = he(t[s], r) : G(r) ? t[s] = he({}, r) : I(r) ? t[s] = r.slice() : t[s] = r;
63
62
  };
64
63
  for (let r = 0, o = arguments.length; r < o; r++)
65
64
  arguments[r] && V(arguments[r], n);
66
65
  return t;
67
66
  }
68
67
  const on = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (o, s) => {
69
- n && _(o) ? e[s] = et(o, n) : e[s] = o;
68
+ n && _(o) ? e[s] = nt(o, n) : e[s] = o;
70
69
  }, { allOwnKeys: r }), e), sn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), an = (e, t, n, r) => {
71
70
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
72
71
  value: t.prototype
@@ -78,7 +77,7 @@ const on = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (o, s) => {
78
77
  do {
79
78
  for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
80
79
  i = o[s], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
81
- e = n !== !1 && Oe(e);
80
+ e = n !== !1 && Ae(e);
82
81
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
83
82
  return t;
84
83
  }, un = (e, t, n) => {
@@ -87,14 +86,14 @@ const on = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (o, s) => {
87
86
  return r !== -1 && r === n;
88
87
  }, ln = (e) => {
89
88
  if (!e) return null;
90
- if (B(e)) return e;
89
+ if (I(e)) return e;
91
90
  let t = e.length;
92
- if (!nt(t)) return null;
91
+ if (!ot(t)) return null;
93
92
  const n = new Array(t);
94
93
  for (; t-- > 0; )
95
94
  n[t] = e[t];
96
95
  return n;
97
- }, fn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Oe(Uint8Array)), dn = (e, t) => {
96
+ }, fn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ae(Uint8Array)), dn = (e, t) => {
98
97
  const r = (e && e[Symbol.iterator]).call(e);
99
98
  let o;
100
99
  for (; (o = r.next()) && !o.done; ) {
@@ -112,14 +111,14 @@ const on = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (o, s) => {
112
111
  function(n, r, o) {
113
112
  return r.toUpperCase() + o;
114
113
  }
115
- ), ke = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), yn = x("RegExp"), st = (e, t) => {
114
+ ), Pe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), yn = x("RegExp"), at = (e, t) => {
116
115
  const n = Object.getOwnPropertyDescriptors(e), r = {};
117
116
  V(n, (o, s) => {
118
117
  let i;
119
118
  (i = t(o, s, e)) !== !1 && (r[s] = i || o);
120
119
  }), Object.defineProperties(e, r);
121
120
  }, wn = (e) => {
122
- st(e, (t, n) => {
121
+ at(e, (t, n) => {
123
122
  if (_(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
124
123
  return !1;
125
124
  const r = e[n];
@@ -139,13 +138,13 @@ const on = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (o, s) => {
139
138
  n[s] = !0;
140
139
  });
141
140
  };
142
- return B(e) ? r(e) : r(String(e).split(t)), n;
141
+ return I(e) ? r(e) : r(String(e).split(t)), n;
143
142
  }, bn = () => {
144
- }, En = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, ue = "abcdefghijklmnopqrstuvwxyz", Pe = "0123456789", it = {
145
- DIGIT: Pe,
146
- ALPHA: ue,
147
- ALPHA_DIGIT: ue + ue.toUpperCase() + Pe
148
- }, Sn = (e = 16, t = it.ALPHA_DIGIT) => {
143
+ }, En = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, le = "abcdefghijklmnopqrstuvwxyz", Ne = "0123456789", ct = {
144
+ DIGIT: Ne,
145
+ ALPHA: le,
146
+ ALPHA_DIGIT: le + le.toUpperCase() + Ne
147
+ }, Sn = (e = 16, t = ct.ALPHA_DIGIT) => {
149
148
  let n = "";
150
149
  const { length: r } = t;
151
150
  for (; e--; )
@@ -157,12 +156,12 @@ function Rn(e) {
157
156
  }
158
157
  const Tn = (e) => {
159
158
  const t = new Array(10), n = (r, o) => {
160
- if (oe(r)) {
159
+ if (se(r)) {
161
160
  if (t.indexOf(r) >= 0)
162
161
  return;
163
162
  if (!("toJSON" in r)) {
164
163
  t[o] = r;
165
- const s = B(r) ? [] : {};
164
+ const s = I(r) ? [] : {};
166
165
  return V(r, (i, c) => {
167
166
  const f = n(i, o + 1);
168
167
  !M(f) && (s[c] = f);
@@ -172,23 +171,23 @@ const Tn = (e) => {
172
171
  return r;
173
172
  };
174
173
  return n(e, 0);
175
- }, On = x("AsyncFunction"), An = (e) => e && (oe(e) || _(e)) && _(e.then) && _(e.catch), at = ((e, t) => e ? setImmediate : t ? ((n, r) => (U.addEventListener("message", ({ source: o, data: s }) => {
176
- o === U && s === n && r.length && r.shift()();
174
+ }, On = x("AsyncFunction"), An = (e) => e && (se(e) || _(e)) && _(e.then) && _(e.catch), ut = ((e, t) => e ? setImmediate : t ? ((n, r) => (L.addEventListener("message", ({ source: o, data: s }) => {
175
+ o === L && s === n && r.length && r.shift()();
177
176
  }, !1), (o) => {
178
- r.push(o), U.postMessage(n, "*");
177
+ r.push(o), L.postMessage(n, "*");
179
178
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
180
179
  typeof setImmediate == "function",
181
- _(U.postMessage)
182
- ), _n = typeof queueMicrotask < "u" ? queueMicrotask.bind(U) : typeof process < "u" && process.nextTick || at, a = {
183
- isArray: B,
184
- isArrayBuffer: tt,
180
+ _(L.postMessage)
181
+ ), _n = typeof queueMicrotask < "u" ? queueMicrotask.bind(L) : typeof process < "u" && process.nextTick || ut, a = {
182
+ isArray: I,
183
+ isArrayBuffer: rt,
185
184
  isBuffer: Mt,
186
185
  isFormData: Xt,
187
186
  isArrayBufferView: $t,
188
187
  isString: zt,
189
- isNumber: nt,
188
+ isNumber: ot,
190
189
  isBoolean: Jt,
191
- isObject: oe,
190
+ isObject: se,
192
191
  isPlainObject: G,
193
192
  isReadableStream: Yt,
194
193
  isRequest: en,
@@ -205,38 +204,38 @@ const Tn = (e) => {
205
204
  isTypedArray: fn,
206
205
  isFileList: Qt,
207
206
  forEach: V,
208
- merge: pe,
207
+ merge: he,
209
208
  extend: on,
210
209
  trim: rn,
211
210
  stripBOM: sn,
212
211
  inherits: an,
213
212
  toFlatObject: cn,
214
- kindOf: ne,
213
+ kindOf: re,
215
214
  kindOfTest: x,
216
215
  endsWith: un,
217
216
  toArray: ln,
218
217
  forEachEntry: dn,
219
218
  matchAll: pn,
220
219
  isHTMLForm: hn,
221
- hasOwnProperty: ke,
222
- hasOwnProp: ke,
220
+ hasOwnProperty: Pe,
221
+ hasOwnProp: Pe,
223
222
  // an alias to avoid ESLint no-prototype-builtins detection
224
- reduceDescriptors: st,
223
+ reduceDescriptors: at,
225
224
  freezeMethods: wn,
226
225
  toObjectSet: gn,
227
226
  toCamelCase: mn,
228
227
  noop: bn,
229
228
  toFiniteNumber: En,
230
- findKey: rt,
231
- global: U,
232
- isContextDefined: ot,
233
- ALPHABET: it,
229
+ findKey: st,
230
+ global: L,
231
+ isContextDefined: it,
232
+ ALPHABET: ct,
234
233
  generateString: Sn,
235
234
  isSpecCompliantForm: Rn,
236
235
  toJSONObject: Tn,
237
236
  isAsyncFn: On,
238
237
  isThenable: An,
239
- setImmediate: at,
238
+ setImmediate: ut,
240
239
  asap: _n
241
240
  };
242
241
  function y(e, t, n, r, o) {
@@ -263,7 +262,7 @@ a.inherits(y, Error, {
263
262
  };
264
263
  }
265
264
  });
266
- const ct = y.prototype, ut = {};
265
+ const lt = y.prototype, ft = {};
267
266
  [
268
267
  "ERR_BAD_OPTION_VALUE",
269
268
  "ERR_BAD_OPTION",
@@ -279,35 +278,35 @@ const ct = y.prototype, ut = {};
279
278
  "ERR_INVALID_URL"
280
279
  // eslint-disable-next-line func-names
281
280
  ].forEach((e) => {
282
- ut[e] = { value: e };
281
+ ft[e] = { value: e };
283
282
  });
284
- Object.defineProperties(y, ut);
285
- Object.defineProperty(ct, "isAxiosError", { value: !0 });
283
+ Object.defineProperties(y, ft);
284
+ Object.defineProperty(lt, "isAxiosError", { value: !0 });
286
285
  y.from = (e, t, n, r, o, s) => {
287
- const i = Object.create(ct);
286
+ const i = Object.create(lt);
288
287
  return a.toFlatObject(e, i, function(f) {
289
288
  return f !== Error.prototype;
290
289
  }, (c) => c !== "isAxiosError"), y.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
291
290
  };
292
291
  const xn = null;
293
- function he(e) {
292
+ function me(e) {
294
293
  return a.isPlainObject(e) || a.isArray(e);
295
294
  }
296
- function lt(e) {
295
+ function dt(e) {
297
296
  return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
298
297
  }
299
- function Ne(e, t, n) {
298
+ function Le(e, t, n) {
300
299
  return e ? e.concat(t).map(function(o, s) {
301
- return o = lt(o), !n && s ? "[" + o + "]" : o;
300
+ return o = dt(o), !n && s ? "[" + o + "]" : o;
302
301
  }).join(n ? "." : "") : t;
303
302
  }
304
303
  function Cn(e) {
305
- return a.isArray(e) && !e.some(he);
304
+ return a.isArray(e) && !e.some(me);
306
305
  }
307
306
  const kn = a.toFlatObject(a, {}, null, function(t) {
308
307
  return /^is[A-Z]/.test(t);
309
308
  });
310
- function se(e, t, n) {
309
+ function ie(e, t, n) {
311
310
  if (!a.isObject(e))
312
311
  throw new TypeError("target must be an object");
313
312
  t = t || new FormData(), n = a.toFlatObject(n, {
@@ -317,10 +316,10 @@ function se(e, t, n) {
317
316
  }, !1, function(m, h) {
318
317
  return !a.isUndefined(h[m]);
319
318
  });
320
- const r = n.metaTokens, o = n.visitor || l, s = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
319
+ const r = n.metaTokens, o = n.visitor || u, s = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
321
320
  if (!a.isFunction(o))
322
321
  throw new TypeError("visitor must be a function");
323
- function u(p) {
322
+ function l(p) {
324
323
  if (p === null) return "";
325
324
  if (a.isDate(p))
326
325
  return p.toISOString();
@@ -328,26 +327,26 @@ function se(e, t, n) {
328
327
  throw new y("Blob is not supported. Use a Buffer instead.");
329
328
  return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
330
329
  }
331
- function l(p, m, h) {
330
+ function u(p, m, h) {
332
331
  let E = p;
333
332
  if (p && !h && typeof p == "object") {
334
333
  if (a.endsWith(m, "{}"))
335
334
  m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
336
335
  else if (a.isArray(p) && Cn(p) || (a.isFileList(p) || a.endsWith(m, "[]")) && (E = a.toArray(p)))
337
- return m = lt(m), E.forEach(function(R, k) {
336
+ return m = dt(m), E.forEach(function(R, k) {
338
337
  !(a.isUndefined(R) || R === null) && t.append(
339
338
  // eslint-disable-next-line no-nested-ternary
340
- i === !0 ? Ne([m], k, s) : i === null ? m : m + "[]",
341
- u(R)
339
+ i === !0 ? Le([m], k, s) : i === null ? m : m + "[]",
340
+ l(R)
342
341
  );
343
342
  }), !1;
344
343
  }
345
- return he(p) ? !0 : (t.append(Ne(h, m, s), u(p)), !1);
344
+ return me(p) ? !0 : (t.append(Le(h, m, s), l(p)), !1);
346
345
  }
347
346
  const d = [], w = Object.assign(kn, {
348
- defaultVisitor: l,
349
- convertValue: u,
350
- isVisitable: he
347
+ defaultVisitor: u,
348
+ convertValue: l,
349
+ isVisitable: me
351
350
  });
352
351
  function g(p, m) {
353
352
  if (!a.isUndefined(p)) {
@@ -382,14 +381,14 @@ function Ue(e) {
382
381
  return t[r];
383
382
  });
384
383
  }
385
- function Ae(e, t) {
386
- this._pairs = [], e && se(e, this, t);
384
+ function _e(e, t) {
385
+ this._pairs = [], e && ie(e, this, t);
387
386
  }
388
- const ft = Ae.prototype;
389
- ft.append = function(t, n) {
387
+ const pt = _e.prototype;
388
+ pt.append = function(t, n) {
390
389
  this._pairs.push([t, n]);
391
390
  };
392
- ft.toString = function(t) {
391
+ pt.toString = function(t) {
393
392
  const n = t ? function(r) {
394
393
  return t.call(this, r, Ue);
395
394
  } : Ue;
@@ -400,7 +399,7 @@ ft.toString = function(t) {
400
399
  function Pn(e) {
401
400
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
402
401
  }
403
- function dt(e, t, n) {
402
+ function ht(e, t, n) {
404
403
  if (!t)
405
404
  return e;
406
405
  const r = n && n.encode || Pn;
@@ -409,13 +408,13 @@ function dt(e, t, n) {
409
408
  });
410
409
  const o = n && n.serialize;
411
410
  let s;
412
- if (o ? s = o(t, n) : s = a.isURLSearchParams(t) ? t.toString() : new Ae(t, n).toString(r), s) {
411
+ if (o ? s = o(t, n) : s = a.isURLSearchParams(t) ? t.toString() : new _e(t, n).toString(r), s) {
413
412
  const i = e.indexOf("#");
414
413
  i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
415
414
  }
416
415
  return e;
417
416
  }
418
- class Le {
417
+ class De {
419
418
  constructor() {
420
419
  this.handlers = [];
421
420
  }
@@ -469,32 +468,32 @@ class Le {
469
468
  });
470
469
  }
471
470
  }
472
- const pt = {
471
+ const mt = {
473
472
  silentJSONParsing: !0,
474
473
  forcedJSONParsing: !0,
475
474
  clarifyTimeoutError: !1
476
- }, Nn = typeof URLSearchParams < "u" ? URLSearchParams : Ae, Un = typeof FormData < "u" ? FormData : null, Ln = typeof Blob < "u" ? Blob : null, Dn = {
475
+ }, Nn = typeof URLSearchParams < "u" ? URLSearchParams : _e, Ln = typeof FormData < "u" ? FormData : null, Un = typeof Blob < "u" ? Blob : null, Dn = {
477
476
  isBrowser: !0,
478
477
  classes: {
479
478
  URLSearchParams: Nn,
480
- FormData: Un,
481
- Blob: Ln
479
+ FormData: Ln,
480
+ Blob: Un
482
481
  },
483
482
  protocols: ["http", "https", "file", "blob", "url", "data"]
484
- }, _e = typeof window < "u" && typeof document < "u", me = typeof navigator == "object" && navigator || void 0, Fn = _e && (!me || ["ReactNative", "NativeScript", "NS"].indexOf(me.product) < 0), vn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
485
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Bn = _e && window.location.href || "http://localhost", In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
483
+ }, xe = typeof window < "u" && typeof document < "u", ye = typeof navigator == "object" && navigator || void 0, Fn = xe && (!ye || ["ReactNative", "NativeScript", "NS"].indexOf(ye.product) < 0), vn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
484
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Bn = xe && window.location.href || "http://localhost", In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
486
485
  __proto__: null,
487
- hasBrowserEnv: _e,
486
+ hasBrowserEnv: xe,
488
487
  hasStandardBrowserEnv: Fn,
489
488
  hasStandardBrowserWebWorkerEnv: vn,
490
- navigator: me,
489
+ navigator: ye,
491
490
  origin: Bn
492
491
  }, Symbol.toStringTag, { value: "Module" })), T = {
493
492
  ...In,
494
493
  ...Dn
495
494
  };
496
495
  function jn(e, t) {
497
- return se(e, new T.classes.URLSearchParams(), Object.assign({
496
+ return ie(e, new T.classes.URLSearchParams(), Object.assign({
498
497
  visitor: function(n, r, o, s) {
499
498
  return T.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
500
499
  }
@@ -512,7 +511,7 @@ function Hn(e) {
512
511
  s = n[r], t[s] = e[s];
513
512
  return t;
514
513
  }
515
- function ht(e) {
514
+ function yt(e) {
516
515
  function t(n, r, o, s) {
517
516
  let i = n[s++];
518
517
  if (i === "__proto__") return !0;
@@ -538,12 +537,12 @@ function Mn(e, t, n) {
538
537
  return (n || JSON.stringify)(e);
539
538
  }
540
539
  const W = {
541
- transitional: pt,
540
+ transitional: mt,
542
541
  adapter: ["xhr", "http", "fetch"],
543
542
  transformRequest: [function(t, n) {
544
543
  const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = a.isObject(t);
545
544
  if (s && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
546
- return o ? JSON.stringify(ht(t)) : t;
545
+ return o ? JSON.stringify(yt(t)) : t;
547
546
  if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
548
547
  return t;
549
548
  if (a.isArrayBufferView(t))
@@ -556,7 +555,7 @@ const W = {
556
555
  return jn(t, this.formSerializer).toString();
557
556
  if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
558
557
  const f = this.env && this.env.FormData;
559
- return se(
558
+ return ie(
560
559
  c ? { "files[]": t } : t,
561
560
  f && new f(),
562
561
  this.formSerializer
@@ -631,8 +630,8 @@ const $n = a.toObjectSet([
631
630
  `).forEach(function(i) {
632
631
  o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && $n[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
633
632
  }), t;
634
- }, De = Symbol("internals");
635
- function j(e) {
633
+ }, Fe = Symbol("internals");
634
+ function q(e) {
636
635
  return e && String(e).trim().toLowerCase();
637
636
  }
638
637
  function X(e) {
@@ -646,7 +645,7 @@ function Jn(e) {
646
645
  return t;
647
646
  }
648
647
  const Vn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
649
- function le(e, t, n, r, o) {
648
+ function fe(e, t, n, r, o) {
650
649
  if (a.isFunction(r))
651
650
  return r.call(this, t, n);
652
651
  if (o && (t = n), !!a.isString(t)) {
@@ -676,14 +675,14 @@ let A = class {
676
675
  }
677
676
  set(t, n, r) {
678
677
  const o = this;
679
- function s(c, f, u) {
680
- const l = j(f);
681
- if (!l)
678
+ function s(c, f, l) {
679
+ const u = q(f);
680
+ if (!u)
682
681
  throw new Error("header name must be a non-empty string");
683
- const d = a.findKey(o, l);
684
- (!d || o[d] === void 0 || u === !0 || u === void 0 && o[d] !== !1) && (o[d || f] = X(c));
682
+ const d = a.findKey(o, u);
683
+ (!d || o[d] === void 0 || l === !0 || l === void 0 && o[d] !== !1) && (o[d || f] = X(c));
685
684
  }
686
- const i = (c, f) => a.forEach(c, (u, l) => s(u, l, f));
685
+ const i = (c, f) => a.forEach(c, (l, u) => s(l, u, f));
687
686
  if (a.isPlainObject(t) || t instanceof this.constructor)
688
687
  i(t, n);
689
688
  else if (a.isString(t) && (t = t.trim()) && !Vn(t))
@@ -696,7 +695,7 @@ let A = class {
696
695
  return this;
697
696
  }
698
697
  get(t, n) {
699
- if (t = j(t), t) {
698
+ if (t = q(t), t) {
700
699
  const r = a.findKey(this, t);
701
700
  if (r) {
702
701
  const o = this[r];
@@ -713,9 +712,9 @@ let A = class {
713
712
  }
714
713
  }
715
714
  has(t, n) {
716
- if (t = j(t), t) {
715
+ if (t = q(t), t) {
717
716
  const r = a.findKey(this, t);
718
- return !!(r && this[r] !== void 0 && (!n || le(this, this[r], r, n)));
717
+ return !!(r && this[r] !== void 0 && (!n || fe(this, this[r], r, n)));
719
718
  }
720
719
  return !1;
721
720
  }
@@ -723,9 +722,9 @@ let A = class {
723
722
  const r = this;
724
723
  let o = !1;
725
724
  function s(i) {
726
- if (i = j(i), i) {
725
+ if (i = q(i), i) {
727
726
  const c = a.findKey(r, i);
728
- c && (!n || le(r, r[c], c, n)) && (delete r[c], o = !0);
727
+ c && (!n || fe(r, r[c], c, n)) && (delete r[c], o = !0);
729
728
  }
730
729
  }
731
730
  return a.isArray(t) ? t.forEach(s) : s(t), o;
@@ -735,7 +734,7 @@ let A = class {
735
734
  let r = n.length, o = !1;
736
735
  for (; r--; ) {
737
736
  const s = n[r];
738
- (!t || le(this, this[s], s, t, !0)) && (delete this[s], o = !0);
737
+ (!t || fe(this, this[s], s, t, !0)) && (delete this[s], o = !0);
739
738
  }
740
739
  return o;
741
740
  }
@@ -778,11 +777,11 @@ let A = class {
778
777
  return n.forEach((o) => r.set(o)), r;
779
778
  }
780
779
  static accessor(t) {
781
- const r = (this[De] = this[De] = {
780
+ const r = (this[Fe] = this[Fe] = {
782
781
  accessors: {}
783
782
  }).accessors, o = this.prototype;
784
783
  function s(i) {
785
- const c = j(i);
784
+ const c = q(i);
786
785
  r[c] || (Kn(o, i), r[c] = !0);
787
786
  }
788
787
  return a.isArray(t) ? t.forEach(s) : s(t), this;
@@ -799,23 +798,23 @@ a.reduceDescriptors(A.prototype, ({ value: e }, t) => {
799
798
  };
800
799
  });
801
800
  a.freezeMethods(A);
802
- function fe(e, t) {
801
+ function de(e, t) {
803
802
  const n = this || W, r = t || n, o = A.from(r.headers);
804
803
  let s = r.data;
805
804
  return a.forEach(e, function(c) {
806
805
  s = c.call(n, s, o.normalize(), t ? t.status : void 0);
807
806
  }), o.normalize(), s;
808
807
  }
809
- function mt(e) {
808
+ function wt(e) {
810
809
  return !!(e && e.__CANCEL__);
811
810
  }
812
- function I(e, t, n) {
811
+ function j(e, t, n) {
813
812
  y.call(this, e ?? "canceled", y.ERR_CANCELED, t, n), this.name = "CanceledError";
814
813
  }
815
- a.inherits(I, y, {
814
+ a.inherits(j, y, {
816
815
  __CANCEL__: !0
817
816
  });
818
- function yt(e, t, n) {
817
+ function gt(e, t, n) {
819
818
  const r = n.config.validateStatus;
820
819
  !n.status || !r || r(n.status) ? e(n) : t(new y(
821
820
  "Request failed with status code " + n.status,
@@ -834,56 +833,56 @@ function Gn(e, t) {
834
833
  const n = new Array(e), r = new Array(e);
835
834
  let o = 0, s = 0, i;
836
835
  return t = t !== void 0 ? t : 1e3, function(f) {
837
- const u = Date.now(), l = r[s];
838
- i || (i = u), n[o] = f, r[o] = u;
836
+ const l = Date.now(), u = r[s];
837
+ i || (i = l), n[o] = f, r[o] = l;
839
838
  let d = s, w = 0;
840
839
  for (; d !== o; )
841
840
  w += n[d++], d = d % e;
842
- if (o = (o + 1) % e, o === s && (s = (s + 1) % e), u - i < t)
841
+ if (o = (o + 1) % e, o === s && (s = (s + 1) % e), l - i < t)
843
842
  return;
844
- const g = l && u - l;
843
+ const g = u && l - u;
845
844
  return g ? Math.round(w * 1e3 / g) : void 0;
846
845
  };
847
846
  }
848
847
  function Xn(e, t) {
849
848
  let n = 0, r = 1e3 / t, o, s;
850
- const i = (u, l = Date.now()) => {
851
- n = l, o = null, s && (clearTimeout(s), s = null), e.apply(null, u);
849
+ const i = (l, u = Date.now()) => {
850
+ n = u, o = null, s && (clearTimeout(s), s = null), e.apply(null, l);
852
851
  };
853
- return [(...u) => {
854
- const l = Date.now(), d = l - n;
855
- d >= r ? i(u, l) : (o = u, s || (s = setTimeout(() => {
852
+ return [(...l) => {
853
+ const u = Date.now(), d = u - n;
854
+ d >= r ? i(l, u) : (o = l, s || (s = setTimeout(() => {
856
855
  s = null, i(o);
857
856
  }, r - d)));
858
857
  }, () => o && i(o)];
859
858
  }
860
- const ee = (e, t, n = 3) => {
859
+ const te = (e, t, n = 3) => {
861
860
  let r = 0;
862
861
  const o = Gn(50, 250);
863
862
  return Xn((s) => {
864
- const i = s.loaded, c = s.lengthComputable ? s.total : void 0, f = i - r, u = o(f), l = i <= c;
863
+ const i = s.loaded, c = s.lengthComputable ? s.total : void 0, f = i - r, l = o(f), u = i <= c;
865
864
  r = i;
866
865
  const d = {
867
866
  loaded: i,
868
867
  total: c,
869
868
  progress: c ? i / c : void 0,
870
869
  bytes: f,
871
- rate: u || void 0,
872
- estimated: u && c && l ? (c - i) / u : void 0,
870
+ rate: l || void 0,
871
+ estimated: l && c && u ? (c - i) / l : void 0,
873
872
  event: s,
874
873
  lengthComputable: c != null,
875
874
  [t ? "download" : "upload"]: !0
876
875
  };
877
876
  e(d);
878
877
  }, n);
879
- }, Fe = (e, t) => {
878
+ }, ve = (e, t) => {
880
879
  const n = e != null;
881
880
  return [(r) => t[0]({
882
881
  lengthComputable: n,
883
882
  total: e,
884
883
  loaded: r
885
884
  }), t[1]];
886
- }, ve = (e) => (...t) => a.asap(() => e(...t)), Zn = 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)))(
885
+ }, Be = (e) => (...t) => a.asap(() => e(...t)), Zn = 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)))(
887
886
  new URL(T.origin),
888
887
  T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
889
888
  ) : () => !0, Yn = T.hasStandardBrowserEnv ? (
@@ -919,37 +918,37 @@ function er(e) {
919
918
  function tr(e, t) {
920
919
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
921
920
  }
922
- function wt(e, t) {
921
+ function bt(e, t) {
923
922
  return e && !er(t) ? tr(e, t) : t;
924
923
  }
925
- const Be = (e) => e instanceof A ? { ...e } : e;
924
+ const Ie = (e) => e instanceof A ? { ...e } : e;
926
925
  function D(e, t) {
927
926
  t = t || {};
928
927
  const n = {};
929
- function r(u, l, d, w) {
930
- return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: w }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
928
+ function r(l, u, d, w) {
929
+ return a.isPlainObject(l) && a.isPlainObject(u) ? a.merge.call({ caseless: w }, l, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u;
931
930
  }
932
- function o(u, l, d, w) {
933
- if (a.isUndefined(l)) {
934
- if (!a.isUndefined(u))
935
- return r(void 0, u, d, w);
936
- } else return r(u, l, d, w);
931
+ function o(l, u, d, w) {
932
+ if (a.isUndefined(u)) {
933
+ if (!a.isUndefined(l))
934
+ return r(void 0, l, d, w);
935
+ } else return r(l, u, d, w);
937
936
  }
938
- function s(u, l) {
939
- if (!a.isUndefined(l))
940
- return r(void 0, l);
937
+ function s(l, u) {
938
+ if (!a.isUndefined(u))
939
+ return r(void 0, u);
941
940
  }
942
- function i(u, l) {
943
- if (a.isUndefined(l)) {
944
- if (!a.isUndefined(u))
945
- return r(void 0, u);
946
- } else return r(void 0, l);
941
+ function i(l, u) {
942
+ if (a.isUndefined(u)) {
943
+ if (!a.isUndefined(l))
944
+ return r(void 0, l);
945
+ } else return r(void 0, u);
947
946
  }
948
- function c(u, l, d) {
947
+ function c(l, u, d) {
949
948
  if (d in t)
950
- return r(u, l);
949
+ return r(l, u);
951
950
  if (d in e)
952
- return r(void 0, u);
951
+ return r(void 0, l);
953
952
  }
954
953
  const f = {
955
954
  url: s,
@@ -980,17 +979,17 @@ function D(e, t) {
980
979
  socketPath: i,
981
980
  responseEncoding: i,
982
981
  validateStatus: c,
983
- headers: (u, l, d) => o(Be(u), Be(l), d, !0)
982
+ headers: (l, u, d) => o(Ie(l), Ie(u), d, !0)
984
983
  };
985
- return a.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
986
- const d = f[l] || o, w = d(e[l], t[l], l);
987
- a.isUndefined(w) && d !== c || (n[l] = w);
984
+ return a.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
985
+ const d = f[u] || o, w = d(e[u], t[u], u);
986
+ a.isUndefined(w) && d !== c || (n[u] = w);
988
987
  }), n;
989
988
  }
990
- const gt = (e) => {
989
+ const Et = (e) => {
991
990
  const t = D({}, e);
992
991
  let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: i, auth: c } = t;
993
- t.headers = i = A.from(i), t.url = dt(wt(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
992
+ t.headers = i = A.from(i), t.url = ht(bt(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
994
993
  "Authorization",
995
994
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
996
995
  );
@@ -999,23 +998,23 @@ const gt = (e) => {
999
998
  if (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv)
1000
999
  i.setContentType(void 0);
1001
1000
  else if ((f = i.getContentType()) !== !1) {
1002
- const [u, ...l] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
1003
- i.setContentType([u || "multipart/form-data", ...l].join("; "));
1001
+ const [l, ...u] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
1002
+ i.setContentType([l || "multipart/form-data", ...u].join("; "));
1004
1003
  }
1005
1004
  }
1006
1005
  if (T.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Zn(t.url))) {
1007
- const u = o && s && Yn.read(s);
1008
- u && i.set(o, u);
1006
+ const l = o && s && Yn.read(s);
1007
+ l && i.set(o, l);
1009
1008
  }
1010
1009
  return t;
1011
1010
  }, nr = typeof XMLHttpRequest < "u", rr = nr && function(e) {
1012
1011
  return new Promise(function(n, r) {
1013
- const o = gt(e);
1012
+ const o = Et(e);
1014
1013
  let s = o.data;
1015
1014
  const i = A.from(o.headers).normalize();
1016
- let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = o, l, d, w, g, p;
1015
+ let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = o, u, d, w, g, p;
1017
1016
  function m() {
1018
- g && g(), p && p(), o.cancelToken && o.cancelToken.unsubscribe(l), o.signal && o.signal.removeEventListener("abort", l);
1017
+ g && g(), p && p(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
1019
1018
  }
1020
1019
  let h = new XMLHttpRequest();
1021
1020
  h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
@@ -1032,7 +1031,7 @@ const gt = (e) => {
1032
1031
  config: e,
1033
1032
  request: h
1034
1033
  };
1035
- yt(function(N) {
1034
+ gt(function(N) {
1036
1035
  n(N), m();
1037
1036
  }, function(N) {
1038
1037
  r(N), m();
@@ -1046,7 +1045,7 @@ const gt = (e) => {
1046
1045
  r(new y("Network Error", y.ERR_NETWORK, e, h)), h = null;
1047
1046
  }, h.ontimeout = function() {
1048
1047
  let k = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1049
- const O = o.transitional || pt;
1048
+ const O = o.transitional || mt;
1050
1049
  o.timeoutErrorMessage && (k = o.timeoutErrorMessage), r(new y(
1051
1050
  k,
1052
1051
  O.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
@@ -1055,9 +1054,9 @@ const gt = (e) => {
1055
1054
  )), h = null;
1056
1055
  }, s === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(k, O) {
1057
1056
  h.setRequestHeader(O, k);
1058
- }), a.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), c && c !== "json" && (h.responseType = o.responseType), u && ([w, p] = ee(u, !0), h.addEventListener("progress", w)), f && h.upload && ([d, g] = ee(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (o.cancelToken || o.signal) && (l = (R) => {
1059
- h && (r(!R || R.type ? new I(null, e, h) : R), h.abort(), h = null);
1060
- }, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
1057
+ }), a.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), c && c !== "json" && (h.responseType = o.responseType), l && ([w, p] = te(l, !0), h.addEventListener("progress", w)), f && h.upload && ([d, g] = te(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (o.cancelToken || o.signal) && (u = (R) => {
1058
+ h && (r(!R || R.type ? new j(null, e, h) : R), h.abort(), h = null);
1059
+ }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
1061
1060
  const S = Qn(o.url);
1062
1061
  if (S && T.protocols.indexOf(S) === -1) {
1063
1062
  r(new y("Unsupported protocol " + S + ":", y.ERR_BAD_REQUEST, e));
@@ -1069,22 +1068,22 @@ const gt = (e) => {
1069
1068
  const { length: n } = e = e ? e.filter(Boolean) : [];
1070
1069
  if (t || n) {
1071
1070
  let r = new AbortController(), o;
1072
- const s = function(u) {
1071
+ const s = function(l) {
1073
1072
  if (!o) {
1074
1073
  o = !0, c();
1075
- const l = u instanceof Error ? u : this.reason;
1076
- r.abort(l instanceof y ? l : new I(l instanceof Error ? l.message : l));
1074
+ const u = l instanceof Error ? l : this.reason;
1075
+ r.abort(u instanceof y ? u : new j(u instanceof Error ? u.message : u));
1077
1076
  }
1078
1077
  };
1079
1078
  let i = t && setTimeout(() => {
1080
1079
  i = null, s(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
1081
1080
  }, t);
1082
1081
  const c = () => {
1083
- e && (i && clearTimeout(i), i = null, e.forEach((u) => {
1084
- u.unsubscribe ? u.unsubscribe(s) : u.removeEventListener("abort", s);
1082
+ e && (i && clearTimeout(i), i = null, e.forEach((l) => {
1083
+ l.unsubscribe ? l.unsubscribe(s) : l.removeEventListener("abort", s);
1085
1084
  }), e = null);
1086
1085
  };
1087
- e.forEach((u) => u.addEventListener("abort", s));
1086
+ e.forEach((l) => l.addEventListener("abort", s));
1088
1087
  const { signal: f } = r;
1089
1088
  return f.unsubscribe = () => a.asap(c), f;
1090
1089
  }
@@ -1116,7 +1115,7 @@ const gt = (e) => {
1116
1115
  } finally {
1117
1116
  await t.cancel();
1118
1117
  }
1119
- }, Ie = (e, t, n, r) => {
1118
+ }, je = (e, t, n, r) => {
1120
1119
  const o = ir(e, t);
1121
1120
  let s = 0, i, c = (f) => {
1122
1121
  i || (i = !0, r && r(f));
@@ -1124,19 +1123,19 @@ const gt = (e) => {
1124
1123
  return new ReadableStream({
1125
1124
  async pull(f) {
1126
1125
  try {
1127
- const { done: u, value: l } = await o.next();
1128
- if (u) {
1126
+ const { done: l, value: u } = await o.next();
1127
+ if (l) {
1129
1128
  c(), f.close();
1130
1129
  return;
1131
1130
  }
1132
- let d = l.byteLength;
1131
+ let d = u.byteLength;
1133
1132
  if (n) {
1134
1133
  let w = s += d;
1135
1134
  n(w);
1136
1135
  }
1137
- f.enqueue(new Uint8Array(l));
1138
- } catch (u) {
1139
- throw c(u), u;
1136
+ f.enqueue(new Uint8Array(u));
1137
+ } catch (l) {
1138
+ throw c(l), l;
1140
1139
  }
1141
1140
  },
1142
1141
  cancel(f) {
@@ -1145,13 +1144,13 @@ const gt = (e) => {
1145
1144
  }, {
1146
1145
  highWaterMark: 2
1147
1146
  });
1148
- }, ie = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", bt = ie && typeof ReadableStream == "function", cr = ie && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Et = (e, ...t) => {
1147
+ }, ae = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", St = ae && typeof ReadableStream == "function", cr = ae && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Rt = (e, ...t) => {
1149
1148
  try {
1150
1149
  return !!e(...t);
1151
1150
  } catch {
1152
1151
  return !1;
1153
1152
  }
1154
- }, ur = bt && Et(() => {
1153
+ }, ur = St && Rt(() => {
1155
1154
  let e = !1;
1156
1155
  const t = new Request(T.origin, {
1157
1156
  body: new ReadableStream(),
@@ -1161,12 +1160,12 @@ const gt = (e) => {
1161
1160
  }
1162
1161
  }).headers.has("Content-Type");
1163
1162
  return e && !t;
1164
- }), je = 64 * 1024, ye = bt && Et(() => a.isReadableStream(new Response("").body)), te = {
1165
- stream: ye && ((e) => e.body)
1163
+ }), qe = 64 * 1024, we = St && Rt(() => a.isReadableStream(new Response("").body)), ne = {
1164
+ stream: we && ((e) => e.body)
1166
1165
  };
1167
- ie && ((e) => {
1166
+ ae && ((e) => {
1168
1167
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1169
- !te[t] && (te[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1168
+ !ne[t] && (ne[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1170
1169
  throw new y(`Response type '${t}' is not supported`, y.ERR_NOT_SUPPORT, r);
1171
1170
  });
1172
1171
  });
@@ -1188,7 +1187,7 @@ const lr = async (e) => {
1188
1187
  }, fr = async (e, t) => {
1189
1188
  const n = a.toFiniteNumber(e.getContentLength());
1190
1189
  return n ?? lr(t);
1191
- }, dr = ie && (async (e) => {
1190
+ }, dr = ae && (async (e) => {
1192
1191
  let {
1193
1192
  url: t,
1194
1193
  method: n,
@@ -1198,30 +1197,30 @@ const lr = async (e) => {
1198
1197
  timeout: i,
1199
1198
  onDownloadProgress: c,
1200
1199
  onUploadProgress: f,
1201
- responseType: u,
1202
- headers: l,
1200
+ responseType: l,
1201
+ headers: u,
1203
1202
  withCredentials: d = "same-origin",
1204
1203
  fetchOptions: w
1205
- } = gt(e);
1206
- u = u ? (u + "").toLowerCase() : "text";
1204
+ } = Et(e);
1205
+ l = l ? (l + "").toLowerCase() : "text";
1207
1206
  let g = or([o, s && s.toAbortSignal()], i), p;
1208
1207
  const m = g && g.unsubscribe && (() => {
1209
1208
  g.unsubscribe();
1210
1209
  });
1211
1210
  let h;
1212
1211
  try {
1213
- if (f && ur && n !== "get" && n !== "head" && (h = await fr(l, r)) !== 0) {
1212
+ if (f && ur && n !== "get" && n !== "head" && (h = await fr(u, r)) !== 0) {
1214
1213
  let O = new Request(t, {
1215
1214
  method: "POST",
1216
1215
  body: r,
1217
1216
  duplex: "half"
1218
1217
  }), P;
1219
- if (a.isFormData(r) && (P = O.headers.get("content-type")) && l.setContentType(P), O.body) {
1220
- const [N, K] = Fe(
1218
+ if (a.isFormData(r) && (P = O.headers.get("content-type")) && u.setContentType(P), O.body) {
1219
+ const [N, K] = ve(
1221
1220
  h,
1222
- ee(ve(f))
1221
+ te(Be(f))
1223
1222
  );
1224
- r = Ie(O.body, je, N, K);
1223
+ r = je(O.body, qe, N, K);
1225
1224
  }
1226
1225
  }
1227
1226
  a.isString(d) || (d = d ? "include" : "omit");
@@ -1230,33 +1229,33 @@ const lr = async (e) => {
1230
1229
  ...w,
1231
1230
  signal: g,
1232
1231
  method: n.toUpperCase(),
1233
- headers: l.normalize().toJSON(),
1232
+ headers: u.normalize().toJSON(),
1234
1233
  body: r,
1235
1234
  duplex: "half",
1236
1235
  credentials: E ? d : void 0
1237
1236
  });
1238
1237
  let S = await fetch(p);
1239
- const R = ye && (u === "stream" || u === "response");
1240
- if (ye && (c || R && m)) {
1238
+ const R = we && (l === "stream" || l === "response");
1239
+ if (we && (c || R && m)) {
1241
1240
  const O = {};
1242
- ["status", "statusText", "headers"].forEach((Ce) => {
1243
- O[Ce] = S[Ce];
1241
+ ["status", "statusText", "headers"].forEach((ke) => {
1242
+ O[ke] = S[ke];
1244
1243
  });
1245
- const P = a.toFiniteNumber(S.headers.get("content-length")), [N, K] = c && Fe(
1244
+ const P = a.toFiniteNumber(S.headers.get("content-length")), [N, K] = c && ve(
1246
1245
  P,
1247
- ee(ve(c), !0)
1246
+ te(Be(c), !0)
1248
1247
  ) || [];
1249
1248
  S = new Response(
1250
- Ie(S.body, je, N, () => {
1249
+ je(S.body, qe, N, () => {
1251
1250
  K && K(), m && m();
1252
1251
  }),
1253
1252
  O
1254
1253
  );
1255
1254
  }
1256
- u = u || "text";
1257
- let k = await te[a.findKey(te, u) || "text"](S, e);
1255
+ l = l || "text";
1256
+ let k = await ne[a.findKey(ne, l) || "text"](S, e);
1258
1257
  return !R && m && m(), await new Promise((O, P) => {
1259
- yt(O, P, {
1258
+ gt(O, P, {
1260
1259
  data: k,
1261
1260
  headers: A.from(S.headers),
1262
1261
  status: S.status,
@@ -1273,12 +1272,12 @@ const lr = async (e) => {
1273
1272
  }
1274
1273
  ) : y.from(E, E && E.code, e, p);
1275
1274
  }
1276
- }), we = {
1275
+ }), ge = {
1277
1276
  http: xn,
1278
1277
  xhr: rr,
1279
1278
  fetch: dr
1280
1279
  };
1281
- a.forEach(we, (e, t) => {
1280
+ a.forEach(ge, (e, t) => {
1282
1281
  if (e) {
1283
1282
  try {
1284
1283
  Object.defineProperty(e, "name", { value: t });
@@ -1287,7 +1286,7 @@ a.forEach(we, (e, t) => {
1287
1286
  Object.defineProperty(e, "adapterName", { value: t });
1288
1287
  }
1289
1288
  });
1290
- const qe = (e) => `- ${e}`, pr = (e) => a.isFunction(e) || e === null || e === !1, St = {
1289
+ const He = (e) => `- ${e}`, pr = (e) => a.isFunction(e) || e === null || e === !1, Tt = {
1291
1290
  getAdapter: (e) => {
1292
1291
  e = a.isArray(e) ? e : [e];
1293
1292
  const { length: t } = e;
@@ -1296,7 +1295,7 @@ const qe = (e) => `- ${e}`, pr = (e) => a.isFunction(e) || e === null || e === !
1296
1295
  for (let s = 0; s < t; s++) {
1297
1296
  n = e[s];
1298
1297
  let i;
1299
- if (r = n, !pr(n) && (r = we[(i = String(n)).toLowerCase()], r === void 0))
1298
+ if (r = n, !pr(n) && (r = ge[(i = String(n)).toLowerCase()], r === void 0))
1300
1299
  throw new y(`Unknown adapter '${i}'`);
1301
1300
  if (r)
1302
1301
  break;
@@ -1307,8 +1306,8 @@ const qe = (e) => `- ${e}`, pr = (e) => a.isFunction(e) || e === null || e === !
1307
1306
  ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1308
1307
  );
1309
1308
  let i = t ? s.length > 1 ? `since :
1310
- ` + s.map(qe).join(`
1311
- `) : " " + qe(s[0]) : "as no adapter specified";
1309
+ ` + s.map(He).join(`
1310
+ `) : " " + He(s[0]) : "as no adapter specified";
1312
1311
  throw new y(
1313
1312
  "There is no suitable adapter to dispatch the request " + i,
1314
1313
  "ERR_NOT_SUPPORT"
@@ -1316,40 +1315,40 @@ const qe = (e) => `- ${e}`, pr = (e) => a.isFunction(e) || e === null || e === !
1316
1315
  }
1317
1316
  return r;
1318
1317
  },
1319
- adapters: we
1318
+ adapters: ge
1320
1319
  };
1321
- function de(e) {
1320
+ function pe(e) {
1322
1321
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1323
- throw new I(null, e);
1322
+ throw new j(null, e);
1324
1323
  }
1325
- function He(e) {
1326
- return de(e), e.headers = A.from(e.headers), e.data = fe.call(
1324
+ function Me(e) {
1325
+ return pe(e), e.headers = A.from(e.headers), e.data = de.call(
1327
1326
  e,
1328
1327
  e.transformRequest
1329
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), St.getAdapter(e.adapter || W.adapter)(e).then(function(r) {
1330
- return de(e), r.data = fe.call(
1328
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Tt.getAdapter(e.adapter || W.adapter)(e).then(function(r) {
1329
+ return pe(e), r.data = de.call(
1331
1330
  e,
1332
1331
  e.transformResponse,
1333
1332
  r
1334
1333
  ), r.headers = A.from(r.headers), r;
1335
1334
  }, function(r) {
1336
- return mt(r) || (de(e), r && r.response && (r.response.data = fe.call(
1335
+ return wt(r) || (pe(e), r && r.response && (r.response.data = de.call(
1337
1336
  e,
1338
1337
  e.transformResponse,
1339
1338
  r.response
1340
1339
  ), r.response.headers = A.from(r.response.headers))), Promise.reject(r);
1341
1340
  });
1342
1341
  }
1343
- const Rt = "1.7.9", ae = {};
1342
+ const Ot = "1.7.9", ce = {};
1344
1343
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1345
- ae[e] = function(r) {
1344
+ ce[e] = function(r) {
1346
1345
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1347
1346
  };
1348
1347
  });
1349
- const Me = {};
1350
- ae.transitional = function(t, n, r) {
1348
+ const $e = {};
1349
+ ce.transitional = function(t, n, r) {
1351
1350
  function o(s, i) {
1352
- return "[Axios v" + Rt + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
1351
+ return "[Axios v" + Ot + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
1353
1352
  }
1354
1353
  return (s, i, c) => {
1355
1354
  if (t === !1)
@@ -1357,10 +1356,10 @@ ae.transitional = function(t, n, r) {
1357
1356
  o(i, " has been removed" + (n ? " in " + n : "")),
1358
1357
  y.ERR_DEPRECATED
1359
1358
  );
1360
- return n && !Me[i] && (Me[i] = !0), t ? t(s, i, c) : !0;
1359
+ return n && !$e[i] && ($e[i] = !0), t ? t(s, i, c) : !0;
1361
1360
  };
1362
1361
  };
1363
- ae.spelling = function(t) {
1362
+ ce.spelling = function(t) {
1364
1363
  return (n, r) => !0;
1365
1364
  };
1366
1365
  function hr(e, t, n) {
@@ -1382,13 +1381,13 @@ function hr(e, t, n) {
1382
1381
  }
1383
1382
  const Z = {
1384
1383
  assertOptions: hr,
1385
- validators: ae
1384
+ validators: ce
1386
1385
  }, C = Z.validators;
1387
- let L = class {
1386
+ let U = class {
1388
1387
  constructor(t) {
1389
1388
  this.defaults = t, this.interceptors = {
1390
- request: new Le(),
1391
- response: new Le()
1389
+ request: new De(),
1390
+ response: new De()
1392
1391
  };
1393
1392
  }
1394
1393
  /**
@@ -1447,16 +1446,16 @@ let L = class {
1447
1446
  this.interceptors.request.forEach(function(m) {
1448
1447
  typeof m.runWhen == "function" && m.runWhen(n) === !1 || (f = f && m.synchronous, c.unshift(m.fulfilled, m.rejected));
1449
1448
  });
1450
- const u = [];
1449
+ const l = [];
1451
1450
  this.interceptors.response.forEach(function(m) {
1452
- u.push(m.fulfilled, m.rejected);
1451
+ l.push(m.fulfilled, m.rejected);
1453
1452
  });
1454
- let l, d = 0, w;
1453
+ let u, d = 0, w;
1455
1454
  if (!f) {
1456
- const p = [He.bind(this), void 0];
1457
- for (p.unshift.apply(p, c), p.push.apply(p, u), w = p.length, l = Promise.resolve(n); d < w; )
1458
- l = l.then(p[d++], p[d++]);
1459
- return l;
1455
+ const p = [Me.bind(this), void 0];
1456
+ for (p.unshift.apply(p, c), p.push.apply(p, l), w = p.length, u = Promise.resolve(n); d < w; )
1457
+ u = u.then(p[d++], p[d++]);
1458
+ return u;
1460
1459
  }
1461
1460
  w = c.length;
1462
1461
  let g = n;
@@ -1470,22 +1469,22 @@ let L = class {
1470
1469
  }
1471
1470
  }
1472
1471
  try {
1473
- l = He.call(this, g);
1472
+ u = Me.call(this, g);
1474
1473
  } catch (p) {
1475
1474
  return Promise.reject(p);
1476
1475
  }
1477
- for (d = 0, w = u.length; d < w; )
1478
- l = l.then(u[d++], u[d++]);
1479
- return l;
1476
+ for (d = 0, w = l.length; d < w; )
1477
+ u = u.then(l[d++], l[d++]);
1478
+ return u;
1480
1479
  }
1481
1480
  getUri(t) {
1482
1481
  t = D(this.defaults, t);
1483
- const n = wt(t.baseURL, t.url);
1484
- return dt(n, t.params, t.paramsSerializer);
1482
+ const n = bt(t.baseURL, t.url);
1483
+ return ht(n, t.params, t.paramsSerializer);
1485
1484
  }
1486
1485
  };
1487
1486
  a.forEach(["delete", "get", "head", "options"], function(t) {
1488
- L.prototype[t] = function(n, r) {
1487
+ U.prototype[t] = function(n, r) {
1489
1488
  return this.request(D(r || {}, {
1490
1489
  method: t,
1491
1490
  url: n,
@@ -1506,9 +1505,9 @@ a.forEach(["post", "put", "patch"], function(t) {
1506
1505
  }));
1507
1506
  };
1508
1507
  }
1509
- L.prototype[t] = n(), L.prototype[t + "Form"] = n(!0);
1508
+ U.prototype[t] = n(), U.prototype[t + "Form"] = n(!0);
1510
1509
  });
1511
- let mr = class Tt {
1510
+ let mr = class At {
1512
1511
  constructor(t) {
1513
1512
  if (typeof t != "function")
1514
1513
  throw new TypeError("executor must be a function.");
@@ -1532,7 +1531,7 @@ let mr = class Tt {
1532
1531
  r.unsubscribe(s);
1533
1532
  }, i;
1534
1533
  }, t(function(s, i, c) {
1535
- r.reason || (r.reason = new I(s, i, c), n(r.reason));
1534
+ r.reason || (r.reason = new j(s, i, c), n(r.reason));
1536
1535
  });
1537
1536
  }
1538
1537
  /**
@@ -1574,7 +1573,7 @@ let mr = class Tt {
1574
1573
  static source() {
1575
1574
  let t;
1576
1575
  return {
1577
- token: new Tt(function(o) {
1576
+ token: new At(function(o) {
1578
1577
  t = o;
1579
1578
  }),
1580
1579
  cancel: t
@@ -1589,7 +1588,7 @@ function yr(e) {
1589
1588
  function wr(e) {
1590
1589
  return a.isObject(e) && e.isAxiosError === !0;
1591
1590
  }
1592
- const ge = {
1591
+ const be = {
1593
1592
  Continue: 100,
1594
1593
  SwitchingProtocols: 101,
1595
1594
  Processing: 102,
@@ -1654,22 +1653,22 @@ const ge = {
1654
1653
  NotExtended: 510,
1655
1654
  NetworkAuthenticationRequired: 511
1656
1655
  };
1657
- Object.entries(ge).forEach(([e, t]) => {
1658
- ge[t] = e;
1656
+ Object.entries(be).forEach(([e, t]) => {
1657
+ be[t] = e;
1659
1658
  });
1660
- function Ot(e) {
1661
- const t = new L(e), n = et(L.prototype.request, t);
1662
- return a.extend(n, L.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
1663
- return Ot(D(e, o));
1659
+ function _t(e) {
1660
+ const t = new U(e), n = nt(U.prototype.request, t);
1661
+ return a.extend(n, U.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
1662
+ return _t(D(e, o));
1664
1663
  }, n;
1665
1664
  }
1666
- const b = Ot(W);
1667
- b.Axios = L;
1668
- b.CanceledError = I;
1665
+ const b = _t(W);
1666
+ b.Axios = U;
1667
+ b.CanceledError = j;
1669
1668
  b.CancelToken = mr;
1670
- b.isCancel = mt;
1671
- b.VERSION = Rt;
1672
- b.toFormData = se;
1669
+ b.isCancel = wt;
1670
+ b.VERSION = Ot;
1671
+ b.toFormData = ie;
1673
1672
  b.AxiosError = y;
1674
1673
  b.Cancel = b.CanceledError;
1675
1674
  b.all = function(t) {
@@ -1679,27 +1678,27 @@ b.spread = yr;
1679
1678
  b.isAxiosError = wr;
1680
1679
  b.mergeConfig = D;
1681
1680
  b.AxiosHeaders = A;
1682
- b.formToJSON = (e) => ht(a.isHTMLForm(e) ? new FormData(e) : e);
1683
- b.getAdapter = St.getAdapter;
1684
- b.HttpStatusCode = ge;
1681
+ b.formToJSON = (e) => yt(a.isHTMLForm(e) ? new FormData(e) : e);
1682
+ b.getAdapter = Tt.getAdapter;
1683
+ b.HttpStatusCode = be;
1685
1684
  b.default = b;
1686
1685
  const {
1687
- Axios: Qr,
1688
- AxiosError: Gr,
1689
- CanceledError: Xr,
1690
- isCancel: Zr,
1691
- CancelToken: Yr,
1692
- VERSION: eo,
1693
- all: to,
1694
- Cancel: no,
1695
- isAxiosError: ro,
1696
- spread: oo,
1697
- toFormData: so,
1698
- AxiosHeaders: io,
1699
- HttpStatusCode: ao,
1700
- formToJSON: co,
1701
- getAdapter: uo,
1702
- mergeConfig: lo
1686
+ Axios: Wr,
1687
+ AxiosError: Kr,
1688
+ CanceledError: Qr,
1689
+ isCancel: Gr,
1690
+ CancelToken: Xr,
1691
+ VERSION: Zr,
1692
+ all: Yr,
1693
+ Cancel: eo,
1694
+ isAxiosError: to,
1695
+ spread: no,
1696
+ toFormData: ro,
1697
+ AxiosHeaders: oo,
1698
+ HttpStatusCode: so,
1699
+ formToJSON: io,
1700
+ getAdapter: ao,
1701
+ mergeConfig: co
1703
1702
  } = b;
1704
1703
  /*! js-cookie v3.0.5 | MIT */
1705
1704
  function Q(e) {
@@ -1721,7 +1720,7 @@ var gr = {
1721
1720
  );
1722
1721
  }
1723
1722
  };
1724
- function be(e, t) {
1723
+ function Ee(e, t) {
1725
1724
  function n(o, s, i) {
1726
1725
  if (!(typeof document > "u")) {
1727
1726
  i = Q({}, t, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
@@ -1734,10 +1733,10 @@ function be(e, t) {
1734
1733
  function r(o) {
1735
1734
  if (!(typeof document > "u" || arguments.length && !o)) {
1736
1735
  for (var s = document.cookie ? document.cookie.split("; ") : [], i = {}, c = 0; c < s.length; c++) {
1737
- var f = s[c].split("="), u = f.slice(1).join("=");
1736
+ var f = s[c].split("="), l = f.slice(1).join("=");
1738
1737
  try {
1739
- var l = decodeURIComponent(f[0]);
1740
- if (i[l] = e.read(u, l), o === l)
1738
+ var u = decodeURIComponent(f[0]);
1739
+ if (i[u] = e.read(l, u), o === u)
1741
1740
  break;
1742
1741
  } catch {
1743
1742
  }
@@ -1759,10 +1758,10 @@ function be(e, t) {
1759
1758
  );
1760
1759
  },
1761
1760
  withAttributes: function(o) {
1762
- return be(this.converter, Q({}, this.attributes, o));
1761
+ return Ee(this.converter, Q({}, this.attributes, o));
1763
1762
  },
1764
1763
  withConverter: function(o) {
1765
- return be(Q({}, this.converter, o), this.attributes);
1764
+ return Ee(Q({}, this.converter, o), this.attributes);
1766
1765
  }
1767
1766
  },
1768
1767
  {
@@ -1771,11 +1770,11 @@ function be(e, t) {
1771
1770
  }
1772
1771
  );
1773
1772
  }
1774
- var br = be(gr, { path: "/" }), $e;
1775
- const At = typeof window < "u", Er = (e) => typeof e == "string", ze = () => +Date.now(), Ee = () => {
1773
+ var br = Ee(gr, { path: "/" }), ze;
1774
+ const xt = typeof window < "u", Er = (e) => typeof e == "string", Je = () => +Date.now(), Se = () => {
1776
1775
  };
1777
- At && (($e = window == null ? void 0 : window.navigator) != null && $e.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1778
- function xe(e) {
1776
+ xt && ((ze = window == null ? void 0 : window.navigator) != null && ze.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1777
+ function Ce(e) {
1779
1778
  return typeof e == "function" ? e() : Ut(e);
1780
1779
  }
1781
1780
  function Sr(e, t) {
@@ -1787,15 +1786,15 @@ function Sr(e, t) {
1787
1786
  return n;
1788
1787
  }
1789
1788
  function Rr(e, t = !0, n = !0, r = !1) {
1790
- let o = 0, s, i = !0, c = Ee, f;
1791
- const u = () => {
1792
- s && (clearTimeout(s), s = void 0, c(), c = Ee);
1789
+ let o = 0, s, i = !0, c = Se, f;
1790
+ const l = () => {
1791
+ s && (clearTimeout(s), s = void 0, c(), c = Se);
1793
1792
  };
1794
1793
  return (d) => {
1795
- const w = xe(e), g = Date.now() - o, p = () => f = d();
1796
- return u(), w <= 0 ? (o = Date.now(), p()) : (g > w && (n || !i) ? (o = Date.now(), p()) : t && (f = new Promise((m, h) => {
1794
+ const w = Ce(e), g = Date.now() - o, p = () => f = d();
1795
+ return l(), w <= 0 ? (o = Date.now(), p()) : (g > w && (n || !i) ? (o = Date.now(), p()) : t && (f = new Promise((m, h) => {
1797
1796
  c = r ? h : m, s = setTimeout(() => {
1798
- o = Date.now(), i = !0, m(p()), u();
1797
+ o = Date.now(), i = !0, m(p()), l();
1799
1798
  }, Math.max(0, w - g));
1800
1799
  })), !n && !s && (s = setTimeout(() => i = !0, w)), i = !1, f);
1801
1800
  };
@@ -1804,66 +1803,66 @@ function Tr(e) {
1804
1803
  return e;
1805
1804
  }
1806
1805
  function Or(e) {
1807
- return Lt() ? (Dt(e), !0) : !1;
1806
+ return Dt() ? (Ft(e), !0) : !1;
1808
1807
  }
1809
1808
  function Ar(e) {
1810
1809
  var t;
1811
- const n = xe(e);
1810
+ const n = Ce(e);
1812
1811
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
1813
1812
  }
1814
- const _t = At ? window : void 0;
1815
- function Je(...e) {
1813
+ const Ct = xt ? window : void 0;
1814
+ function Ve(...e) {
1816
1815
  let t, n, r, o;
1817
- if (Er(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = _t) : [t, n, r, o] = e, !t)
1818
- return Ee;
1816
+ if (Er(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = Ct) : [t, n, r, o] = e, !t)
1817
+ return Se;
1819
1818
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
1820
1819
  const s = [], i = () => {
1821
- s.forEach((l) => l()), s.length = 0;
1822
- }, c = (l, d, w, g) => (l.addEventListener(d, w, g), () => l.removeEventListener(d, w, g)), f = Re(() => [Ar(t), xe(o)], ([l, d]) => {
1823
- i(), l && s.push(...n.flatMap((w) => r.map((g) => c(l, w, g, d))));
1824
- }, { immediate: !0, flush: "post" }), u = () => {
1820
+ s.forEach((u) => u()), s.length = 0;
1821
+ }, c = (u, d, w, g) => (u.addEventListener(d, w, g), () => u.removeEventListener(d, w, g)), f = Te(() => [Ar(t), Ce(o)], ([u, d]) => {
1822
+ i(), u && s.push(...n.flatMap((w) => r.map((g) => c(u, w, g, d))));
1823
+ }, { immediate: !0, flush: "post" }), l = () => {
1825
1824
  f(), i();
1826
1825
  };
1827
- return Or(u), u;
1826
+ return Or(l), l;
1828
1827
  }
1829
- const Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, We = "__vueuse_ssr_handlers__";
1830
- Ve[We] = Ve[We] || {};
1828
+ const We = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ke = "__vueuse_ssr_handlers__";
1829
+ We[Ke] = We[Ke] || {};
1831
1830
  const _r = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], xr = 6e4;
1832
1831
  function Cr(e = xr, t = {}) {
1833
1832
  const {
1834
1833
  initialState: n = !1,
1835
1834
  listenForVisibilityChange: r = !0,
1836
1835
  events: o = _r,
1837
- window: s = _t,
1836
+ window: s = Ct,
1838
1837
  eventFilter: i = Rr(50)
1839
- } = t, c = Y(n), f = Y(ze());
1840
- let u;
1841
- const l = Sr(i, () => {
1842
- c.value = !1, f.value = ze(), clearTimeout(u), u = setTimeout(() => c.value = !0, e);
1838
+ } = t, c = ee(n), f = ee(Je());
1839
+ let l;
1840
+ const u = Sr(i, () => {
1841
+ c.value = !1, f.value = Je(), clearTimeout(l), l = setTimeout(() => c.value = !0, e);
1843
1842
  });
1844
1843
  if (s) {
1845
1844
  const d = s.document;
1846
1845
  for (const w of o)
1847
- Je(s, w, l, { passive: !0 });
1848
- r && Je(d, "visibilitychange", () => {
1849
- d.hidden || l();
1846
+ Ve(s, w, u, { passive: !0 });
1847
+ r && Ve(d, "visibilitychange", () => {
1848
+ d.hidden || u();
1850
1849
  });
1851
1850
  }
1852
- return u = setTimeout(() => c.value = !0, e), { idle: c, lastActive: f };
1851
+ return l = setTimeout(() => c.value = !0, e), { idle: c, lastActive: f };
1853
1852
  }
1854
- var Ke;
1853
+ var Qe;
1855
1854
  (function(e) {
1856
1855
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
1857
- })(Ke || (Ke = {}));
1858
- var kr = Object.defineProperty, Qe = Object.getOwnPropertySymbols, Pr = Object.prototype.hasOwnProperty, Nr = Object.prototype.propertyIsEnumerable, Ge = (e, t, n) => t in e ? kr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ur = (e, t) => {
1856
+ })(Qe || (Qe = {}));
1857
+ var kr = Object.defineProperty, Ge = Object.getOwnPropertySymbols, Pr = Object.prototype.hasOwnProperty, Nr = Object.prototype.propertyIsEnumerable, Xe = (e, t, n) => t in e ? kr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Lr = (e, t) => {
1859
1858
  for (var n in t || (t = {}))
1860
- Pr.call(t, n) && Ge(e, n, t[n]);
1861
- if (Qe)
1862
- for (var n of Qe(t))
1863
- Nr.call(t, n) && Ge(e, n, t[n]);
1859
+ Pr.call(t, n) && Xe(e, n, t[n]);
1860
+ if (Ge)
1861
+ for (var n of Ge(t))
1862
+ Nr.call(t, n) && Xe(e, n, t[n]);
1864
1863
  return e;
1865
1864
  };
1866
- const Lr = {
1865
+ const Ur = {
1867
1866
  easeInSine: [0.12, 0, 0.39, 0],
1868
1867
  easeOutSine: [0.61, 1, 0.88, 1],
1869
1868
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -1889,27 +1888,27 @@ const Lr = {
1889
1888
  easeOutBack: [0.34, 1.56, 0.64, 1],
1890
1889
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
1891
1890
  };
1892
- Ur({
1891
+ Lr({
1893
1892
  linear: Tr
1894
- }, Lr);
1895
- let Se;
1896
- const xt = { triggerProxySso: "triggerProxySso" }, Dr = () => {
1897
- Se = (e) => {
1893
+ }, Ur);
1894
+ let Re;
1895
+ const kt = { triggerProxySso: "triggerProxySso" }, Dr = () => {
1896
+ Re = (e) => {
1898
1897
  var n;
1899
1898
  const { origin: t } = new URL(location.href);
1900
1899
  (n = window.top) == null || n.postMessage(
1901
- { type: xt.triggerProxySso, data: { ...e || {}, redirect_uri: `${t}/` } },
1900
+ { type: kt.triggerProxySso, data: { ...e || {}, redirect_uri: `${t}/` } },
1902
1901
  t
1903
1902
  );
1904
1903
  };
1905
1904
  }, Fr = (e) => {
1906
1905
  window.top === window.self && window.addEventListener("message", (t) => {
1907
1906
  const { type: n, data: r } = t.data;
1908
- n === xt.triggerProxySso && (e == null || e(r));
1907
+ n === kt.triggerProxySso && (e == null || e(r));
1909
1908
  });
1910
1909
  };
1911
1910
  window.top !== window.self && Dr();
1912
- let Ct = (e = 21) => {
1911
+ let Pt = (e = 21) => {
1913
1912
  let t = "", n = crypto.getRandomValues(new Uint8Array(e));
1914
1913
  for (; e--; ) {
1915
1914
  let r = n[e] & 63;
@@ -1917,131 +1916,131 @@ let Ct = (e = 21) => {
1917
1916
  }
1918
1917
  return t;
1919
1918
  };
1920
- const kt = (e) => new URL(location.href).searchParams.get(e), v = {
1919
+ const Y = (e) => new URL(location.href).searchParams.get(e), B = {
1921
1920
  oauth: "/api/justauth/oauth-server/v1/visitor/oauth/authorize",
1922
1921
  // 重定向到登录页
1923
1922
  logoutCurpage: "/api/justauth/oauth-server/v1/visitor/logout-curpage",
1924
1923
  // 清除登录信息
1925
1924
  token: "/api/justauth/oauth-server/v1/visitor/oauth/token"
1926
1925
  // 通过code获取token
1927
- }, { baseURL: Xe, noRedireLogin: vr = !1 } = Te(), $ = location.origin + "/home", F = {
1926
+ }, { baseURL: Ze, noRedireLogin: vr = !1 } = Oe(), $ = location.origin + "/home", v = {
1928
1927
  response_type: "code",
1929
1928
  scope: "sever",
1930
1929
  client_id: "sys",
1931
- client_secret: Ft("das123"),
1930
+ client_secret: vt("das123"),
1932
1931
  state: +/* @__PURE__ */ new Date()
1933
- }, Br = () => {
1934
- const e = Ze(location.href, "redirect_url") || "";
1935
- if (e)
1936
- window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(e));
1937
- else {
1938
- const t = ["code", "state", "kingdee_token", "redirect_url"];
1939
- window.history.replaceState({}, "", vt(t));
1940
- }
1941
- }, Pt = Y(!1), Nt = (e) => {
1932
+ }, Ye = (e) => {
1933
+ const t = new URL(window.location.href), n = new URLSearchParams(t.search);
1934
+ e.forEach((r) => {
1935
+ n.delete(r);
1936
+ }), t.search = n.toString(), window.history.replaceState({}, "", t);
1937
+ }, Nt = ee(!1), Lt = (e) => {
1942
1938
  if (e <= 0) return;
1943
1939
  const { idle: t } = Cr(e);
1944
- Re(
1940
+ Te(
1945
1941
  () => t.value,
1946
1942
  (n) => {
1947
- n === !0 && (Pt.value = !0);
1943
+ n === !0 && (Nt.value = !0);
1948
1944
  }
1949
1945
  );
1950
1946
  };
1951
- localStorage.getItem("idelTime") && Nt(Number(localStorage.getItem("idelTime")));
1952
- const Ir = async () => {
1953
- const e = kt("code") || "";
1954
- if (!e) return H();
1955
- const t = Ze(location.href, "kingdee_token") || "";
1956
- let n = {};
1957
- const r = {
1947
+ localStorage.getItem("idelTime") && Lt(Number(localStorage.getItem("idelTime")));
1948
+ let et = "";
1949
+ const Br = async () => {
1950
+ const e = Y("code") || "", t = Y("redirect_url") || "", n = Y("kingdee_token") || "";
1951
+ if (!e) return F();
1952
+ if (e === et)
1953
+ return Ye(["code", "state", "kingdee_token", "redirect_url"]), t && (window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t))), F();
1954
+ et = e, Ye(["code", "state", "kingdee_token", "redirect_url"]);
1955
+ let r = {};
1956
+ const o = {
1958
1957
  grant_type: "authorization_code",
1959
1958
  code: e,
1960
- client_id: F.client_id,
1961
- client_secret: F.client_secret,
1959
+ client_id: v.client_id,
1960
+ client_secret: v.client_secret,
1962
1961
  redirect_uri: $,
1963
1962
  timestamp: (/* @__PURE__ */ new Date()).getTime(),
1964
- nonce: Ct()
1963
+ nonce: Pt()
1965
1964
  };
1966
- t && (sessionStorage.setItem("kingdee_token", t), r.redirect_uri = `${r.redirect_uri}?kingdee_token=${t}`);
1965
+ n && (sessionStorage.setItem("kingdee_token", n), o.redirect_uri = `${o.redirect_uri}?kingdee_token=${n}`);
1967
1966
  try {
1968
- await b.create().get(v.token, { baseURL: Xe });
1967
+ await b.create().get(B.token, { baseURL: Ze });
1969
1968
  } catch {
1970
1969
  }
1971
1970
  try {
1972
- n = await b.create().post(
1973
- v.token,
1971
+ r = await b.create().post(
1972
+ B.token,
1974
1973
  {},
1975
1974
  {
1976
- baseURL: Xe,
1977
- params: r,
1975
+ baseURL: Ze,
1976
+ params: o,
1978
1977
  headers: {
1979
1978
  "Content-Type": "application/x-www-form-urlencoded",
1980
1979
  "csrf-token": br.get("csrf-token")
1981
1980
  }
1982
1981
  }
1983
1982
  );
1984
- const { access_token: o = "", expires_in: s = 0, refresh_token: i = "", refresh_exp: c = 0 } = n.data, f = {
1985
- accessToken: o,
1986
- accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(s) * 1e3,
1987
- refreshToken: i,
1988
- info: n.data
1983
+ const { access_token: s = "", expires_in: i = 0, refresh_token: c = "", refresh_exp: f = 0 } = r.data, l = {
1984
+ accessToken: s,
1985
+ accessTokenExpiredAt: +/* @__PURE__ */ new Date() + Number(i) * 1e3,
1986
+ refreshToken: c,
1987
+ info: r.data
1989
1988
  };
1990
- J().save(f), await Ye(o);
1991
- const u = Number(c) - (/* @__PURE__ */ new Date()).getTime();
1992
- return u && u > 0 && (Nt(u), u && localStorage.setItem("idelTime", u.toString())), Br(), o;
1989
+ J().save(l), await tt(s);
1990
+ const u = Number(f) - (/* @__PURE__ */ new Date()).getTime();
1991
+ return u && u > 0 && (Lt(u), u && localStorage.setItem("idelTime", u.toString())), t && (window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t))), s;
1993
1992
  } catch {
1994
- return z({ ...F, redirect_uri: $ });
1993
+ return z({ ...v, redirect_uri: $ });
1995
1994
  }
1996
- }, q = Y(!1), fo = async (e) => {
1995
+ }, H = ee(!1), uo = async (e) => {
1997
1996
  if (e.public) return "";
1998
- if (Pt.value) return z({ ...F, redirect_uri: $ });
1999
- if (q.value)
1997
+ if (Nt.value) return z({ ...v, redirect_uri: $ });
1998
+ if (H.value)
2000
1999
  return await new Promise(async (o) => {
2001
- Re(
2002
- () => q.value,
2000
+ Te(
2001
+ () => H.value,
2003
2002
  (s) => {
2004
2003
  if (!s) {
2005
- const i = H();
2004
+ const i = F();
2006
2005
  o(i);
2007
2006
  }
2008
2007
  }
2009
2008
  );
2010
2009
  });
2011
- const { accessTokenExpiredAt: t } = J().getData(), n = kt("code") || "";
2012
- if ((!H() || t === 0) && !n)
2013
- return z({ ...F, redirect_uri: $ });
2014
- let r = H();
2015
- q.value = !0;
2010
+ const { accessTokenExpiredAt: t } = J().getData(), n = Y("code") || "";
2011
+ if ((!F() || t === 0) && !n)
2012
+ return z({ ...v, redirect_uri: $ });
2013
+ let r = F();
2014
+ H.value = !0;
2016
2015
  try {
2017
- typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await jr(F)), r = await Ir(), q.value = !1;
2016
+ typeof t == "number" && t > 0 && +/* @__PURE__ */ new Date() + 6e4 > t && (r = await Ir(v)), r = await Br(), H.value = !1;
2018
2017
  } catch {
2019
- q.value = !1;
2018
+ H.value = !1;
2020
2019
  }
2021
2020
  return r;
2022
2021
  }, z = (e) => {
2023
2022
  if (vr) return;
2024
- const { baseURL: t, ssoLocale: n } = Te();
2025
- if (Se) return Se(e);
2023
+ const { baseURL: t, ssoLocale: n } = Oe();
2024
+ if (Re) return Re(e);
2026
2025
  e.logout = "true", n && (e.locale = "locale");
2027
- const r = Object.keys(e).filter((s) => s !== "client_secret").map((s) => `${s}=${e[s]}`).join("&"), o = `${t}${v.oauth}?${r}`;
2026
+ const r = Object.keys(e).filter((s) => s !== "client_secret").map((s) => `${s}=${e[s]}`).join("&"), o = `${t}${B.oauth}?${r}`;
2028
2027
  localStorage.removeItem("idelTime"), sessionStorage.clear(), J().remove();
2029
2028
  try {
2030
- b.create().get(v.logoutCurpage, { baseURL: t });
2029
+ b.create().get(B.logoutCurpage, { baseURL: t });
2031
2030
  } catch {
2032
2031
  }
2033
2032
  window.__isAutoCloseApp = !1, location.replace(o);
2034
2033
  };
2035
2034
  Fr(z);
2036
- const jr = async (e) => {
2037
- const { baseURL: t } = Te(), { refreshToken: n } = J().getData();
2035
+ const Ir = async (e) => {
2036
+ const { baseURL: t } = Oe(), { refreshToken: n } = J().getData();
2038
2037
  try {
2039
- await b.create().get(v.token, { baseURL: t });
2038
+ await b.create().get(B.token, { baseURL: t });
2040
2039
  } catch {
2041
2040
  }
2042
2041
  try {
2043
2042
  const r = await b.create().post(
2044
- v.token,
2043
+ B.token,
2045
2044
  {},
2046
2045
  {
2047
2046
  baseURL: t,
@@ -2051,7 +2050,7 @@ const jr = async (e) => {
2051
2050
  client_id: e.client_id,
2052
2051
  client_secret: e.client_secret,
2053
2052
  timestamp: (/* @__PURE__ */ new Date()).getTime(),
2054
- nonce: Ct()
2053
+ nonce: Pt()
2055
2054
  }
2056
2055
  }
2057
2056
  ), { access_token: o = "", expires_in: s = 0, refresh_token: i = "" } = r.data, c = {
@@ -2060,15 +2059,15 @@ const jr = async (e) => {
2060
2059
  refreshToken: i,
2061
2060
  info: r.data
2062
2061
  };
2063
- return J().save(c), await Ye(o), o;
2062
+ return J().save(c), await tt(o), o;
2064
2063
  } catch {
2065
2064
  return z({ ...e, redirect_uri: $ });
2066
2065
  }
2067
2066
  }, J = () => ({
2068
2067
  getData: () => ({
2069
- accessToken: H(),
2070
- accessTokenExpiredAt: ce("accessTokenExpiredAt") ? Number(ce("accessTokenExpiredAt")) : "",
2071
- refreshToken: ce("refreshToken")
2068
+ accessToken: F(),
2069
+ accessTokenExpiredAt: ue("accessTokenExpiredAt") ? Number(ue("accessTokenExpiredAt")) : "",
2070
+ refreshToken: ue("refreshToken")
2072
2071
  }),
2073
2072
  save: (e) => {
2074
2073
  It(
@@ -2084,10 +2083,10 @@ const jr = async (e) => {
2084
2083
  }
2085
2084
  });
2086
2085
  export {
2087
- kt as getQuery,
2088
- fo as getToken,
2089
- Ir as getTokenFromCode,
2090
- F as getTokenParams,
2086
+ Y as getQuery,
2087
+ uo as getToken,
2088
+ Br as getTokenFromCode,
2089
+ v as getTokenParams,
2091
2090
  z as login,
2092
2091
  $ as real_uri,
2093
2092
  J as tokenStorage