@das-fed/utils 7.0.7-hot.52 → 7.0.7-hot.54

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 (61) hide show
  1. package/api-services/index.js +396 -395
  2. package/api-services/index.js.gz +0 -0
  3. package/api-services/modules/app-manage/index.js +353 -352
  4. package/api-services/modules/app-manage/index.js.gz +0 -0
  5. package/api-services/modules/authentication/index.js +799 -780
  6. package/api-services/modules/authentication/index.js.gz +0 -0
  7. package/api-services/modules/bems/index.js +353 -352
  8. package/api-services/modules/bems/index.js.gz +0 -0
  9. package/api-services/modules/contract/index.js +783 -800
  10. package/api-services/modules/contract/index.js.gz +0 -0
  11. package/api-services/modules/duty-manage/index.js +353 -352
  12. package/api-services/modules/duty-manage/index.js.gz +0 -0
  13. package/api-services/modules/enterpriseright/index.js +353 -352
  14. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  15. package/api-services/modules/file/index.js +406 -405
  16. package/api-services/modules/file/index.js.gz +0 -0
  17. package/api-services/modules/gateway-edge/index.js +353 -352
  18. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  19. package/api-services/modules/index.js +448 -447
  20. package/api-services/modules/index.js.gz +0 -0
  21. package/api-services/modules/iot/index.js +360 -359
  22. package/api-services/modules/iot/index.js.gz +0 -0
  23. package/api-services/modules/justauth/index.js +785 -802
  24. package/api-services/modules/justauth/index.js.gz +0 -0
  25. package/api-services/modules/knowledge/index.js +353 -352
  26. package/api-services/modules/knowledge/index.js.gz +0 -0
  27. package/api-services/modules/link/index.js +353 -352
  28. package/api-services/modules/link/index.js.gz +0 -0
  29. package/api-services/modules/permission/index.js +353 -352
  30. package/api-services/modules/permission/index.js.gz +0 -0
  31. package/api-services/modules/platformManage/index.js +357 -356
  32. package/api-services/modules/platformManage/index.js.gz +0 -0
  33. package/api-services/modules/portal/index.js +353 -352
  34. package/api-services/modules/portal/index.js.gz +0 -0
  35. package/api-services/modules/space-manage/index.js +353 -352
  36. package/api-services/modules/space-manage/index.js.gz +0 -0
  37. package/api-services/modules/super-admin/index.js +356 -355
  38. package/api-services/modules/super-admin/index.js.gz +0 -0
  39. package/api-services/modules/supplier/index.js +802 -783
  40. package/api-services/modules/supplier/index.js.gz +0 -0
  41. package/api-services/modules/supplychain-manage/index.js +353 -352
  42. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  43. package/api-services/modules/systemConfiguration/index.js +353 -352
  44. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  45. package/api-services/modules/tool/index.js +799 -780
  46. package/api-services/modules/tool/index.js.gz +0 -0
  47. package/api-services/src/create-service/index.js +353 -352
  48. package/api-services/src/create-service/index.js.gz +0 -0
  49. package/create-api-service/index.js +782 -799
  50. package/create-api-service/index.js.gz +0 -0
  51. package/create-api-service/sso/index.d.ts +6 -0
  52. package/create-api-service/sso/index.js +351 -340
  53. package/create-api-service/sso/index.js.gz +0 -0
  54. package/create-api-service/thirdLogout/index.d.ts +1 -1
  55. package/create-api-service/thirdLogout/index.js +56 -55
  56. package/create-api-service/thirdLogout/index.js.gz +0 -0
  57. package/create-api-service/unauthorized-recovery/index.d.ts +6 -0
  58. package/create-api-service/unauthorized-recovery/index.js +5 -4
  59. package/curring-http/type.d.ts +93 -93
  60. package/esm-map.json +2 -1
  61. package/package.json +4 -4
@@ -1,33 +1,34 @@
1
- import { unref as qt, getCurrentScope as Mt, onScopeDispose as $t, ref as re, watch as Ce } from "vue";
2
- import { encryption as Ht } from "@das-fed/utils/atob";
1
+ import { unref as $t, getCurrentScope as zt, onScopeDispose as Ht, ref as re, watch as Ce } from "vue";
2
+ import { encryption as Jt } from "@das-fed/utils/atob";
3
3
  import { getConfig as V } from "@das-fed/utils/config";
4
- import { getAccessToken as H, removeAccessToken as zt, setAccessToken as Jt, getAccessTokenInfo as de } from "@das-fed/utils/token-tools";
4
+ import { getAccessToken as j, removeAccessToken as Vt, setAccessToken as Wt, getAccessTokenInfo as de } from "@das-fed/utils/token-tools";
5
5
  import { appendQueryParams as xe } from "@das-fed/utils/common-tools";
6
- import { removeProcessEngineToken as Vt, setProcessEngineToken as Wt } from "@das-fed/utils/process-engine-info";
6
+ import { removeProcessEngineToken as Kt, setProcessEngineToken as Qt } from "@das-fed/utils/process-engine-info";
7
7
  import { setPersonalInfo as at } from "@das-fed/utils/common-info/set-personal-info";
8
- function ct(e, t) {
8
+ import { hasUnauthorizedRecovery as ct, recoverUnauthorized as Xt } from "@das-fed/utils/create-api-service/unauthorized-recovery";
9
+ function ut(e, t) {
9
10
  return function() {
10
11
  return e.apply(t, arguments);
11
12
  };
12
13
  }
13
- const { toString: Kt } = Object.prototype, { getPrototypeOf: Pe } = Object, { iterator: ie, toStringTag: ut } = Symbol, ae = /* @__PURE__ */ ((e) => (t) => {
14
- const n = Kt.call(t);
14
+ const { toString: Gt } = Object.prototype, { getPrototypeOf: Pe } = Object, { iterator: ie, toStringTag: lt } = Symbol, ae = /* @__PURE__ */ ((e) => (t) => {
15
+ const n = Gt.call(t);
15
16
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
16
- })(/* @__PURE__ */ Object.create(null)), k = (e) => (e = e.toLowerCase(), (t) => ae(t) === e), ce = (e) => (t) => typeof t === e, { isArray: q } = Array, z = ce("undefined");
17
+ })(/* @__PURE__ */ Object.create(null)), k = (e) => (e = e.toLowerCase(), (t) => ae(t) === e), ce = (e) => (t) => typeof t === e, { isArray: M } = Array, H = ce("undefined");
17
18
  function W(e) {
18
- return e !== null && !z(e) && e.constructor !== null && !z(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
19
+ return e !== null && !H(e) && e.constructor !== null && !H(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
19
20
  }
20
- const lt = k("ArrayBuffer");
21
- function Qt(e) {
21
+ const ft = k("ArrayBuffer");
22
+ function Zt(e) {
22
23
  let t;
23
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && lt(e.buffer), t;
24
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ft(e.buffer), t;
24
25
  }
25
- const Xt = ce("string"), A = ce("function"), ft = ce("number"), K = (e) => e !== null && typeof e == "object", Gt = (e) => e === !0 || e === !1, ee = (e) => {
26
+ const Yt = ce("string"), A = ce("function"), dt = ce("number"), K = (e) => e !== null && typeof e == "object", en = (e) => e === !0 || e === !1, ee = (e) => {
26
27
  if (ae(e) !== "object")
27
28
  return !1;
28
29
  const t = Pe(e);
29
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ut in e) && !(ie in e);
30
- }, Zt = (e) => {
30
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(lt in e) && !(ie in e);
31
+ }, tn = (e) => {
31
32
  if (!K(e) || W(e))
32
33
  return !1;
33
34
  try {
@@ -35,16 +36,16 @@ const Xt = ce("string"), A = ce("function"), ft = ce("number"), K = (e) => e !==
35
36
  } catch {
36
37
  return !1;
37
38
  }
38
- }, Yt = k("Date"), en = k("File"), tn = k("Blob"), nn = k("FileList"), rn = (e) => K(e) && A(e.pipe), on = (e) => {
39
+ }, nn = k("Date"), rn = k("File"), on = k("Blob"), sn = k("FileList"), an = (e) => K(e) && A(e.pipe), cn = (e) => {
39
40
  let t;
40
41
  return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = ae(e)) === "formdata" || // detect form-data instance
41
42
  t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
42
- }, sn = k("URLSearchParams"), [an, cn, un, ln] = ["ReadableStream", "Request", "Response", "Headers"].map(k), fn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
43
+ }, un = k("URLSearchParams"), [ln, fn, dn, pn] = ["ReadableStream", "Request", "Response", "Headers"].map(k), hn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
43
44
  function Q(e, t, { allOwnKeys: n = !1 } = {}) {
44
45
  if (e === null || typeof e > "u")
45
46
  return;
46
47
  let r, o;
47
- if (typeof e != "object" && (e = [e]), q(e))
48
+ if (typeof e != "object" && (e = [e]), M(e))
48
49
  for (r = 0, o = e.length; r < o; r++)
49
50
  t.call(null, e[r], r, e);
50
51
  else {
@@ -56,7 +57,7 @@ function Q(e, t, { allOwnKeys: n = !1 } = {}) {
56
57
  a = s[r], t.call(null, e[a], a, e);
57
58
  }
58
59
  }
59
- function dt(e, t) {
60
+ function pt(e, t) {
60
61
  if (W(e))
61
62
  return null;
62
63
  t = t.toLowerCase();
@@ -67,23 +68,23 @@ function dt(e, t) {
67
68
  return o;
68
69
  return null;
69
70
  }
70
- const F = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, pt = (e) => !z(e) && e !== F;
71
+ const F = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ht = (e) => !H(e) && e !== F;
71
72
  function we() {
72
- const { caseless: e } = pt(this) && this || {}, t = {}, n = (r, o) => {
73
- const s = e && dt(t, o) || o;
74
- ee(t[s]) && ee(r) ? t[s] = we(t[s], r) : ee(r) ? t[s] = we({}, r) : q(r) ? t[s] = r.slice() : t[s] = r;
73
+ const { caseless: e } = ht(this) && this || {}, t = {}, n = (r, o) => {
74
+ const s = e && pt(t, o) || o;
75
+ ee(t[s]) && ee(r) ? t[s] = we(t[s], r) : ee(r) ? t[s] = we({}, r) : M(r) ? t[s] = r.slice() : t[s] = r;
75
76
  };
76
77
  for (let r = 0, o = arguments.length; r < o; r++)
77
78
  arguments[r] && Q(arguments[r], n);
78
79
  return t;
79
80
  }
80
- const dn = (e, t, n, { allOwnKeys: r } = {}) => (Q(t, (o, s) => {
81
- n && A(o) ? e[s] = ct(o, n) : e[s] = o;
82
- }, { allOwnKeys: r }), e), pn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), hn = (e, t, n, r) => {
81
+ const mn = (e, t, n, { allOwnKeys: r } = {}) => (Q(t, (o, s) => {
82
+ n && A(o) ? e[s] = ut(o, n) : e[s] = o;
83
+ }, { allOwnKeys: r }), e), yn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), wn = (e, t, n, r) => {
83
84
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
84
85
  value: t.prototype
85
86
  }), n && Object.assign(e.prototype, n);
86
- }, mn = (e, t, n, r) => {
87
+ }, gn = (e, t, n, r) => {
87
88
  let o, s, i;
88
89
  const a = {};
89
90
  if (t = t || {}, e == null) return t;
@@ -93,45 +94,45 @@ const dn = (e, t, n, { allOwnKeys: r } = {}) => (Q(t, (o, s) => {
93
94
  e = n !== !1 && Pe(e);
94
95
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
95
96
  return t;
96
- }, yn = (e, t, n) => {
97
+ }, bn = (e, t, n) => {
97
98
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
98
99
  const r = e.indexOf(t, n);
99
100
  return r !== -1 && r === n;
100
- }, wn = (e) => {
101
+ }, En = (e) => {
101
102
  if (!e) return null;
102
- if (q(e)) return e;
103
+ if (M(e)) return e;
103
104
  let t = e.length;
104
- if (!ft(t)) return null;
105
+ if (!dt(t)) return null;
105
106
  const n = new Array(t);
106
107
  for (; t-- > 0; )
107
108
  n[t] = e[t];
108
109
  return n;
109
- }, gn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Pe(Uint8Array)), bn = (e, t) => {
110
+ }, Rn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Pe(Uint8Array)), Sn = (e, t) => {
110
111
  const r = (e && e[ie]).call(e);
111
112
  let o;
112
113
  for (; (o = r.next()) && !o.done; ) {
113
114
  const s = o.value;
114
115
  t.call(e, s[0], s[1]);
115
116
  }
116
- }, En = (e, t) => {
117
+ }, Tn = (e, t) => {
117
118
  let n;
118
119
  const r = [];
119
120
  for (; (n = e.exec(t)) !== null; )
120
121
  r.push(n);
121
122
  return r;
122
- }, Rn = k("HTMLFormElement"), Sn = (e) => e.toLowerCase().replace(
123
+ }, On = k("HTMLFormElement"), An = (e) => e.toLowerCase().replace(
123
124
  /[-_\s]([a-z\d])(\w*)/g,
124
125
  function(n, r, o) {
125
126
  return r.toUpperCase() + o;
126
127
  }
127
- ), Fe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Tn = k("RegExp"), ht = (e, t) => {
128
+ ), Fe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), _n = k("RegExp"), mt = (e, t) => {
128
129
  const n = Object.getOwnPropertyDescriptors(e), r = {};
129
130
  Q(n, (o, s) => {
130
131
  let i;
131
132
  (i = t(o, s, e)) !== !1 && (r[s] = i || o);
132
133
  }), Object.defineProperties(e, r);
133
- }, On = (e) => {
134
- ht(e, (t, n) => {
134
+ }, kn = (e) => {
135
+ mt(e, (t, n) => {
135
136
  if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
136
137
  return !1;
137
138
  const r = e[n];
@@ -145,19 +146,19 @@ const dn = (e, t, n, { allOwnKeys: r } = {}) => (Q(t, (o, s) => {
145
146
  });
146
147
  }
147
148
  });
148
- }, An = (e, t) => {
149
+ }, Cn = (e, t) => {
149
150
  const n = {}, r = (o) => {
150
151
  o.forEach((s) => {
151
152
  n[s] = !0;
152
153
  });
153
154
  };
154
- return q(e) ? r(e) : r(String(e).split(t)), n;
155
- }, _n = () => {
156
- }, kn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
157
- function Cn(e) {
158
- return !!(e && A(e.append) && e[ut] === "FormData" && e[ie]);
155
+ return M(e) ? r(e) : r(String(e).split(t)), n;
156
+ }, xn = () => {
157
+ }, Pn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
158
+ function Un(e) {
159
+ return !!(e && A(e.append) && e[lt] === "FormData" && e[ie]);
159
160
  }
160
- const xn = (e) => {
161
+ const Ln = (e) => {
161
162
  const t = new Array(10), n = (r, o) => {
162
163
  if (K(r)) {
163
164
  if (t.indexOf(r) >= 0)
@@ -166,82 +167,82 @@ const xn = (e) => {
166
167
  return r;
167
168
  if (!("toJSON" in r)) {
168
169
  t[o] = r;
169
- const s = q(r) ? [] : {};
170
+ const s = M(r) ? [] : {};
170
171
  return Q(r, (i, a) => {
171
172
  const f = n(i, o + 1);
172
- !z(f) && (s[a] = f);
173
+ !H(f) && (s[a] = f);
173
174
  }), t[o] = void 0, s;
174
175
  }
175
176
  }
176
177
  return r;
177
178
  };
178
179
  return n(e, 0);
179
- }, Pn = k("AsyncFunction"), Un = (e) => e && (K(e) || A(e)) && A(e.then) && A(e.catch), mt = ((e, t) => e ? setImmediate : t ? ((n, r) => (F.addEventListener("message", ({ source: o, data: s }) => {
180
+ }, Nn = k("AsyncFunction"), In = (e) => e && (K(e) || A(e)) && A(e.then) && A(e.catch), yt = ((e, t) => e ? setImmediate : t ? ((n, r) => (F.addEventListener("message", ({ source: o, data: s }) => {
180
181
  o === F && s === n && r.length && r.shift()();
181
182
  }, !1), (o) => {
182
183
  r.push(o), F.postMessage(n, "*");
183
184
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
184
185
  typeof setImmediate == "function",
185
186
  A(F.postMessage)
186
- ), Ln = typeof queueMicrotask < "u" ? queueMicrotask.bind(F) : typeof process < "u" && process.nextTick || mt, Nn = (e) => e != null && A(e[ie]), c = {
187
- isArray: q,
188
- isArrayBuffer: lt,
187
+ ), Fn = typeof queueMicrotask < "u" ? queueMicrotask.bind(F) : typeof process < "u" && process.nextTick || yt, vn = (e) => e != null && A(e[ie]), c = {
188
+ isArray: M,
189
+ isArrayBuffer: ft,
189
190
  isBuffer: W,
190
- isFormData: on,
191
- isArrayBufferView: Qt,
192
- isString: Xt,
193
- isNumber: ft,
194
- isBoolean: Gt,
191
+ isFormData: cn,
192
+ isArrayBufferView: Zt,
193
+ isString: Yt,
194
+ isNumber: dt,
195
+ isBoolean: en,
195
196
  isObject: K,
196
197
  isPlainObject: ee,
197
- isEmptyObject: Zt,
198
- isReadableStream: an,
199
- isRequest: cn,
200
- isResponse: un,
201
- isHeaders: ln,
202
- isUndefined: z,
203
- isDate: Yt,
204
- isFile: en,
205
- isBlob: tn,
206
- isRegExp: Tn,
198
+ isEmptyObject: tn,
199
+ isReadableStream: ln,
200
+ isRequest: fn,
201
+ isResponse: dn,
202
+ isHeaders: pn,
203
+ isUndefined: H,
204
+ isDate: nn,
205
+ isFile: rn,
206
+ isBlob: on,
207
+ isRegExp: _n,
207
208
  isFunction: A,
208
- isStream: rn,
209
- isURLSearchParams: sn,
210
- isTypedArray: gn,
211
- isFileList: nn,
209
+ isStream: an,
210
+ isURLSearchParams: un,
211
+ isTypedArray: Rn,
212
+ isFileList: sn,
212
213
  forEach: Q,
213
214
  merge: we,
214
- extend: dn,
215
- trim: fn,
216
- stripBOM: pn,
217
- inherits: hn,
218
- toFlatObject: mn,
215
+ extend: mn,
216
+ trim: hn,
217
+ stripBOM: yn,
218
+ inherits: wn,
219
+ toFlatObject: gn,
219
220
  kindOf: ae,
220
221
  kindOfTest: k,
221
- endsWith: yn,
222
- toArray: wn,
223
- forEachEntry: bn,
224
- matchAll: En,
225
- isHTMLForm: Rn,
222
+ endsWith: bn,
223
+ toArray: En,
224
+ forEachEntry: Sn,
225
+ matchAll: Tn,
226
+ isHTMLForm: On,
226
227
  hasOwnProperty: Fe,
227
228
  hasOwnProp: Fe,
228
229
  // an alias to avoid ESLint no-prototype-builtins detection
229
- reduceDescriptors: ht,
230
- freezeMethods: On,
231
- toObjectSet: An,
232
- toCamelCase: Sn,
233
- noop: _n,
234
- toFiniteNumber: kn,
235
- findKey: dt,
230
+ reduceDescriptors: mt,
231
+ freezeMethods: kn,
232
+ toObjectSet: Cn,
233
+ toCamelCase: An,
234
+ noop: xn,
235
+ toFiniteNumber: Pn,
236
+ findKey: pt,
236
237
  global: F,
237
- isContextDefined: pt,
238
- isSpecCompliantForm: Cn,
239
- toJSONObject: xn,
240
- isAsyncFn: Pn,
241
- isThenable: Un,
242
- setImmediate: mt,
243
- asap: Ln,
244
- isIterable: Nn
238
+ isContextDefined: ht,
239
+ isSpecCompliantForm: Un,
240
+ toJSONObject: Ln,
241
+ isAsyncFn: Nn,
242
+ isThenable: In,
243
+ setImmediate: yt,
244
+ asap: Fn,
245
+ isIterable: vn
245
246
  };
246
247
  function w(e, t, n, r, o) {
247
248
  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), o && (this.response = o, this.status = o.status ? o.status : null);
@@ -267,7 +268,7 @@ c.inherits(w, Error, {
267
268
  };
268
269
  }
269
270
  });
270
- const yt = w.prototype, wt = {};
271
+ const wt = w.prototype, gt = {};
271
272
  [
272
273
  "ERR_BAD_OPTION_VALUE",
273
274
  "ERR_BAD_OPTION",
@@ -283,32 +284,32 @@ const yt = w.prototype, wt = {};
283
284
  "ERR_INVALID_URL"
284
285
  // eslint-disable-next-line func-names
285
286
  ].forEach((e) => {
286
- wt[e] = { value: e };
287
+ gt[e] = { value: e };
287
288
  });
288
- Object.defineProperties(w, wt);
289
- Object.defineProperty(yt, "isAxiosError", { value: !0 });
289
+ Object.defineProperties(w, gt);
290
+ Object.defineProperty(wt, "isAxiosError", { value: !0 });
290
291
  w.from = (e, t, n, r, o, s) => {
291
- const i = Object.create(yt);
292
+ const i = Object.create(wt);
292
293
  return c.toFlatObject(e, i, function(f) {
293
294
  return f !== Error.prototype;
294
295
  }, (a) => a !== "isAxiosError"), w.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
295
296
  };
296
- const In = null;
297
+ const Dn = null;
297
298
  function ge(e) {
298
299
  return c.isPlainObject(e) || c.isArray(e);
299
300
  }
300
- function gt(e) {
301
+ function bt(e) {
301
302
  return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
302
303
  }
303
304
  function ve(e, t, n) {
304
305
  return e ? e.concat(t).map(function(o, s) {
305
- return o = gt(o), !n && s ? "[" + o + "]" : o;
306
+ return o = bt(o), !n && s ? "[" + o + "]" : o;
306
307
  }).join(n ? "." : "") : t;
307
308
  }
308
- function Fn(e) {
309
+ function Bn(e) {
309
310
  return c.isArray(e) && !e.some(ge);
310
311
  }
311
- const vn = c.toFlatObject(c, {}, null, function(t) {
312
+ const jn = c.toFlatObject(c, {}, null, function(t) {
312
313
  return /^is[A-Z]/.test(t);
313
314
  });
314
315
  function ue(e, t, n) {
@@ -339,8 +340,8 @@ function ue(e, t, n) {
339
340
  if (p && !h && typeof p == "object") {
340
341
  if (c.endsWith(y, "{}"))
341
342
  y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
342
- else if (c.isArray(p) && Fn(p) || (c.isFileList(p) || c.endsWith(y, "[]")) && (E = c.toArray(p)))
343
- return y = gt(y), E.forEach(function(S, x) {
343
+ else if (c.isArray(p) && Bn(p) || (c.isFileList(p) || c.endsWith(y, "[]")) && (E = c.toArray(p)))
344
+ return y = bt(y), E.forEach(function(S, x) {
344
345
  !(c.isUndefined(S) || S === null) && t.append(
345
346
  // eslint-disable-next-line no-nested-ternary
346
347
  i === !0 ? ve([y], x, s) : i === null ? y : y + "[]",
@@ -350,7 +351,7 @@ function ue(e, t, n) {
350
351
  }
351
352
  return ge(p) ? !0 : (t.append(ve(h, y, s), l(p)), !1);
352
353
  }
353
- const d = [], m = Object.assign(vn, {
354
+ const d = [], m = Object.assign(jn, {
354
355
  defaultVisitor: u,
355
356
  convertValue: l,
356
357
  isVisitable: ge
@@ -391,11 +392,11 @@ function De(e) {
391
392
  function Ue(e, t) {
392
393
  this._pairs = [], e && ue(e, this, t);
393
394
  }
394
- const bt = Ue.prototype;
395
- bt.append = function(t, n) {
395
+ const Et = Ue.prototype;
396
+ Et.append = function(t, n) {
396
397
  this._pairs.push([t, n]);
397
398
  };
398
- bt.toString = function(t) {
399
+ Et.toString = function(t) {
399
400
  const n = t ? function(r) {
400
401
  return t.call(this, r, De);
401
402
  } : De;
@@ -403,13 +404,13 @@ bt.toString = function(t) {
403
404
  return n(o[0]) + "=" + n(o[1]);
404
405
  }, "").join("&");
405
406
  };
406
- function Dn(e) {
407
+ function qn(e) {
407
408
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
408
409
  }
409
- function Et(e, t, n) {
410
+ function Rt(e, t, n) {
410
411
  if (!t)
411
412
  return e;
412
- const r = n && n.encode || Dn;
413
+ const r = n && n.encode || qn;
413
414
  c.isFunction(n) && (n = {
414
415
  serialize: n
415
416
  });
@@ -475,31 +476,31 @@ class Be {
475
476
  });
476
477
  }
477
478
  }
478
- const Rt = {
479
+ const St = {
479
480
  silentJSONParsing: !0,
480
481
  forcedJSONParsing: !0,
481
482
  clarifyTimeoutError: !1
482
- }, Bn = typeof URLSearchParams < "u" ? URLSearchParams : Ue, jn = typeof FormData < "u" ? FormData : null, qn = typeof Blob < "u" ? Blob : null, Mn = {
483
+ }, Mn = typeof URLSearchParams < "u" ? URLSearchParams : Ue, $n = typeof FormData < "u" ? FormData : null, zn = typeof Blob < "u" ? Blob : null, Hn = {
483
484
  isBrowser: !0,
484
485
  classes: {
485
- URLSearchParams: Bn,
486
- FormData: jn,
487
- Blob: qn
486
+ URLSearchParams: Mn,
487
+ FormData: $n,
488
+ Blob: zn
488
489
  },
489
490
  protocols: ["http", "https", "file", "blob", "url", "data"]
490
- }, Le = typeof window < "u" && typeof document < "u", be = typeof navigator == "object" && navigator || void 0, $n = Le && (!be || ["ReactNative", "NativeScript", "NS"].indexOf(be.product) < 0), Hn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
491
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", zn = Le && window.location.href || "http://localhost", Jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
491
+ }, Le = typeof window < "u" && typeof document < "u", be = typeof navigator == "object" && navigator || void 0, Jn = Le && (!be || ["ReactNative", "NativeScript", "NS"].indexOf(be.product) < 0), Vn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
492
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Wn = Le && window.location.href || "http://localhost", Kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
492
493
  __proto__: null,
493
494
  hasBrowserEnv: Le,
494
- hasStandardBrowserEnv: $n,
495
- hasStandardBrowserWebWorkerEnv: Hn,
495
+ hasStandardBrowserEnv: Jn,
496
+ hasStandardBrowserWebWorkerEnv: Vn,
496
497
  navigator: be,
497
- origin: zn
498
+ origin: Wn
498
499
  }, Symbol.toStringTag, { value: "Module" })), T = {
499
- ...Jn,
500
- ...Mn
500
+ ...Kn,
501
+ ...Hn
501
502
  };
502
- function Vn(e, t) {
503
+ function Qn(e, t) {
503
504
  return ue(e, new T.classes.URLSearchParams(), {
504
505
  visitor: function(n, r, o, s) {
505
506
  return T.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
@@ -507,10 +508,10 @@ function Vn(e, t) {
507
508
  ...t
508
509
  });
509
510
  }
510
- function Wn(e) {
511
+ function Xn(e) {
511
512
  return c.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
512
513
  }
513
- function Kn(e) {
514
+ function Gn(e) {
514
515
  const t = {}, n = Object.keys(e);
515
516
  let r;
516
517
  const o = n.length;
@@ -519,22 +520,22 @@ function Kn(e) {
519
520
  s = n[r], t[s] = e[s];
520
521
  return t;
521
522
  }
522
- function St(e) {
523
+ function Tt(e) {
523
524
  function t(n, r, o, s) {
524
525
  let i = n[s++];
525
526
  if (i === "__proto__") return !0;
526
527
  const a = Number.isFinite(+i), f = s >= n.length;
527
- return i = !i && c.isArray(o) ? o.length : i, f ? (c.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !a) : ((!o[i] || !c.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && c.isArray(o[i]) && (o[i] = Kn(o[i])), !a);
528
+ return i = !i && c.isArray(o) ? o.length : i, f ? (c.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !a) : ((!o[i] || !c.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && c.isArray(o[i]) && (o[i] = Gn(o[i])), !a);
528
529
  }
529
530
  if (c.isFormData(e) && c.isFunction(e.entries)) {
530
531
  const n = {};
531
532
  return c.forEachEntry(e, (r, o) => {
532
- t(Wn(r), o, n, 0);
533
+ t(Xn(r), o, n, 0);
533
534
  }), n;
534
535
  }
535
536
  return null;
536
537
  }
537
- function Qn(e, t, n) {
538
+ function Zn(e, t, n) {
538
539
  if (c.isString(e))
539
540
  try {
540
541
  return (t || JSON.parse)(e), c.trim(e);
@@ -545,12 +546,12 @@ function Qn(e, t, n) {
545
546
  return (n || JSON.stringify)(e);
546
547
  }
547
548
  const X = {
548
- transitional: Rt,
549
+ transitional: St,
549
550
  adapter: ["xhr", "http", "fetch"],
550
551
  transformRequest: [function(t, n) {
551
552
  const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = c.isObject(t);
552
553
  if (s && c.isHTMLForm(t) && (t = new FormData(t)), c.isFormData(t))
553
- return o ? JSON.stringify(St(t)) : t;
554
+ return o ? JSON.stringify(Tt(t)) : t;
554
555
  if (c.isArrayBuffer(t) || c.isBuffer(t) || c.isStream(t) || c.isFile(t) || c.isBlob(t) || c.isReadableStream(t))
555
556
  return t;
556
557
  if (c.isArrayBufferView(t))
@@ -560,7 +561,7 @@ const X = {
560
561
  let a;
561
562
  if (s) {
562
563
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
563
- return Vn(t, this.formSerializer).toString();
564
+ return Qn(t, this.formSerializer).toString();
564
565
  if ((a = c.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
565
566
  const f = this.env && this.env.FormData;
566
567
  return ue(
@@ -570,7 +571,7 @@ const X = {
570
571
  );
571
572
  }
572
573
  }
573
- return s || o ? (n.setContentType("application/json", !1), Qn(t)) : t;
574
+ return s || o ? (n.setContentType("application/json", !1), Zn(t)) : t;
574
575
  }],
575
576
  transformResponse: [function(t) {
576
577
  const n = this.transitional || X.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
@@ -613,7 +614,7 @@ const X = {
613
614
  c.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
614
615
  X.headers[e] = {};
615
616
  });
616
- const Xn = c.toObjectSet([
617
+ const Yn = c.toObjectSet([
617
618
  "age",
618
619
  "authorization",
619
620
  "content-length",
@@ -631,28 +632,28 @@ const Xn = c.toObjectSet([
631
632
  "referer",
632
633
  "retry-after",
633
634
  "user-agent"
634
- ]), Gn = (e) => {
635
+ ]), er = (e) => {
635
636
  const t = {};
636
637
  let n, r, o;
637
638
  return e && e.split(`
638
639
  `).forEach(function(i) {
639
- o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && Xn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
640
+ o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && Yn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
640
641
  }), t;
641
642
  }, je = Symbol("internals");
642
- function $(e) {
643
+ function z(e) {
643
644
  return e && String(e).trim().toLowerCase();
644
645
  }
645
646
  function te(e) {
646
647
  return e === !1 || e == null ? e : c.isArray(e) ? e.map(te) : String(e);
647
648
  }
648
- function Zn(e) {
649
+ function tr(e) {
649
650
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
650
651
  let r;
651
652
  for (; r = n.exec(e); )
652
653
  t[r[1]] = r[2];
653
654
  return t;
654
655
  }
655
- const Yn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
656
+ const nr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
656
657
  function pe(e, t, n, r, o) {
657
658
  if (c.isFunction(r))
658
659
  return r.call(this, t, n);
@@ -663,10 +664,10 @@ function pe(e, t, n, r, o) {
663
664
  return r.test(t);
664
665
  }
665
666
  }
666
- function er(e) {
667
+ function rr(e) {
667
668
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
668
669
  }
669
- function tr(e, t) {
670
+ function or(e, t) {
670
671
  const n = c.toCamelCase(" " + t);
671
672
  ["get", "set", "has"].forEach((r) => {
672
673
  Object.defineProperty(e, r + n, {
@@ -684,7 +685,7 @@ let _ = class {
684
685
  set(t, n, r) {
685
686
  const o = this;
686
687
  function s(a, f, l) {
687
- const u = $(f);
688
+ const u = z(f);
688
689
  if (!u)
689
690
  throw new Error("header name must be a non-empty string");
690
691
  const d = c.findKey(o, u);
@@ -693,8 +694,8 @@ let _ = class {
693
694
  const i = (a, f) => c.forEach(a, (l, u) => s(l, u, f));
694
695
  if (c.isPlainObject(t) || t instanceof this.constructor)
695
696
  i(t, n);
696
- else if (c.isString(t) && (t = t.trim()) && !Yn(t))
697
- i(Gn(t), n);
697
+ else if (c.isString(t) && (t = t.trim()) && !nr(t))
698
+ i(er(t), n);
698
699
  else if (c.isObject(t) && c.isIterable(t)) {
699
700
  let a = {}, f, l;
700
701
  for (const u of t) {
@@ -708,14 +709,14 @@ let _ = class {
708
709
  return this;
709
710
  }
710
711
  get(t, n) {
711
- if (t = $(t), t) {
712
+ if (t = z(t), t) {
712
713
  const r = c.findKey(this, t);
713
714
  if (r) {
714
715
  const o = this[r];
715
716
  if (!n)
716
717
  return o;
717
718
  if (n === !0)
718
- return Zn(o);
719
+ return tr(o);
719
720
  if (c.isFunction(n))
720
721
  return n.call(this, o, r);
721
722
  if (c.isRegExp(n))
@@ -725,7 +726,7 @@ let _ = class {
725
726
  }
726
727
  }
727
728
  has(t, n) {
728
- if (t = $(t), t) {
729
+ if (t = z(t), t) {
729
730
  const r = c.findKey(this, t);
730
731
  return !!(r && this[r] !== void 0 && (!n || pe(this, this[r], r, n)));
731
732
  }
@@ -735,7 +736,7 @@ let _ = class {
735
736
  const r = this;
736
737
  let o = !1;
737
738
  function s(i) {
738
- if (i = $(i), i) {
739
+ if (i = z(i), i) {
739
740
  const a = c.findKey(r, i);
740
741
  a && (!n || pe(r, r[a], a, n)) && (delete r[a], o = !0);
741
742
  }
@@ -759,7 +760,7 @@ let _ = class {
759
760
  n[i] = te(o), delete n[s];
760
761
  return;
761
762
  }
762
- const a = t ? er(s) : String(s).trim();
763
+ const a = t ? rr(s) : String(s).trim();
763
764
  a !== s && delete n[s], n[a] = te(o), r[a] = !0;
764
765
  }), this;
765
766
  }
@@ -797,8 +798,8 @@ let _ = class {
797
798
  accessors: {}
798
799
  }).accessors, o = this.prototype;
799
800
  function s(i) {
800
- const a = $(i);
801
- r[a] || (tr(o, i), r[a] = !0);
801
+ const a = z(i);
802
+ r[a] || (or(o, i), r[a] = !0);
802
803
  }
803
804
  return c.isArray(t) ? t.forEach(s) : s(t), this;
804
805
  }
@@ -821,16 +822,16 @@ function he(e, t) {
821
822
  s = a.call(n, s, o.normalize(), t ? t.status : void 0);
822
823
  }), o.normalize(), s;
823
824
  }
824
- function Tt(e) {
825
+ function Ot(e) {
825
826
  return !!(e && e.__CANCEL__);
826
827
  }
827
- function M(e, t, n) {
828
+ function $(e, t, n) {
828
829
  w.call(this, e ?? "canceled", w.ERR_CANCELED, t, n), this.name = "CanceledError";
829
830
  }
830
- c.inherits(M, w, {
831
+ c.inherits($, w, {
831
832
  __CANCEL__: !0
832
833
  });
833
- function Ot(e, t, n) {
834
+ function At(e, t, n) {
834
835
  const r = n.config.validateStatus;
835
836
  !n.status || !r || r(n.status) ? e(n) : t(new w(
836
837
  "Request failed with status code " + n.status,
@@ -840,11 +841,11 @@ function Ot(e, t, n) {
840
841
  n
841
842
  ));
842
843
  }
843
- function nr(e) {
844
+ function sr(e) {
844
845
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
845
846
  return t && t[1] || "";
846
847
  }
847
- function rr(e, t) {
848
+ function ir(e, t) {
848
849
  e = e || 10;
849
850
  const n = new Array(e), r = new Array(e);
850
851
  let o = 0, s = 0, i;
@@ -860,7 +861,7 @@ function rr(e, t) {
860
861
  return b ? Math.round(m * 1e3 / b) : void 0;
861
862
  };
862
863
  }
863
- function or(e, t) {
864
+ function ar(e, t) {
864
865
  let n = 0, r = 1e3 / t, o, s;
865
866
  const i = (l, u = Date.now()) => {
866
867
  n = u, o = null, s && (clearTimeout(s), s = null), e(...l);
@@ -874,8 +875,8 @@ function or(e, t) {
874
875
  }
875
876
  const oe = (e, t, n = 3) => {
876
877
  let r = 0;
877
- const o = rr(50, 250);
878
- return or((s) => {
878
+ const o = ir(50, 250);
879
+ return ar((s) => {
879
880
  const i = s.loaded, a = s.lengthComputable ? s.total : void 0, f = i - r, l = o(f), u = i <= a;
880
881
  r = i;
881
882
  const d = {
@@ -898,10 +899,10 @@ const oe = (e, t, n = 3) => {
898
899
  total: e,
899
900
  loaded: r
900
901
  }), t[1]];
901
- }, Me = (e) => (...t) => c.asap(() => e(...t)), sr = 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)))(
902
+ }, Me = (e) => (...t) => c.asap(() => e(...t)), cr = 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)))(
902
903
  new URL(T.origin),
903
904
  T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
904
- ) : () => !0, ir = T.hasStandardBrowserEnv ? (
905
+ ) : () => !0, ur = T.hasStandardBrowserEnv ? (
905
906
  // Standard browser envs support document.cookie
906
907
  {
907
908
  write(e, t, n, r, o, s) {
@@ -928,15 +929,15 @@ const oe = (e, t, n = 3) => {
928
929
  }
929
930
  }
930
931
  );
931
- function ar(e) {
932
+ function lr(e) {
932
933
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
933
934
  }
934
- function cr(e, t) {
935
+ function fr(e, t) {
935
936
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
936
937
  }
937
- function At(e, t, n) {
938
- let r = !ar(t);
939
- return e && (r || n == !1) ? cr(e, t) : t;
938
+ function _t(e, t, n) {
939
+ let r = !lr(t);
940
+ return e && (r || n == !1) ? fr(e, t) : t;
940
941
  }
941
942
  const $e = (e) => e instanceof _ ? { ...e } : e;
942
943
  function B(e, t) {
@@ -1003,10 +1004,10 @@ function B(e, t) {
1003
1004
  c.isUndefined(m) && d !== a || (n[u] = m);
1004
1005
  }), n;
1005
1006
  }
1006
- const _t = (e) => {
1007
+ const kt = (e) => {
1007
1008
  const t = B({}, e);
1008
1009
  let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: i, auth: a } = t;
1009
- t.headers = i = _.from(i), t.url = Et(At(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
1010
+ t.headers = i = _.from(i), t.url = Rt(_t(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
1010
1011
  "Authorization",
1011
1012
  "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
1012
1013
  );
@@ -1019,14 +1020,14 @@ const _t = (e) => {
1019
1020
  i.setContentType([l || "multipart/form-data", ...u].join("; "));
1020
1021
  }
1021
1022
  }
1022
- if (T.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 && sr(t.url))) {
1023
- const l = o && s && ir.read(s);
1023
+ if (T.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 && cr(t.url))) {
1024
+ const l = o && s && ur.read(s);
1024
1025
  l && i.set(o, l);
1025
1026
  }
1026
1027
  return t;
1027
- }, ur = typeof XMLHttpRequest < "u", lr = ur && function(e) {
1028
+ }, dr = typeof XMLHttpRequest < "u", pr = dr && function(e) {
1028
1029
  return new Promise(function(n, r) {
1029
- const o = _t(e);
1030
+ const o = kt(e);
1030
1031
  let s = o.data;
1031
1032
  const i = _.from(o.headers).normalize();
1032
1033
  let { responseType: a, onUploadProgress: f, onDownloadProgress: l } = o, u, d, m, b, p;
@@ -1048,7 +1049,7 @@ const _t = (e) => {
1048
1049
  config: e,
1049
1050
  request: h
1050
1051
  };
1051
- Ot(function(I) {
1052
+ At(function(I) {
1052
1053
  n(I), y();
1053
1054
  }, function(I) {
1054
1055
  r(I), y();
@@ -1062,7 +1063,7 @@ const _t = (e) => {
1062
1063
  r(new w("Network Error", w.ERR_NETWORK, e, h)), h = null;
1063
1064
  }, h.ontimeout = function() {
1064
1065
  let x = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1065
- const O = o.transitional || Rt;
1066
+ const O = o.transitional || St;
1066
1067
  o.timeoutErrorMessage && (x = o.timeoutErrorMessage), r(new w(
1067
1068
  x,
1068
1069
  O.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
@@ -1072,16 +1073,16 @@ const _t = (e) => {
1072
1073
  }, s === void 0 && i.setContentType(null), "setRequestHeader" in h && c.forEach(i.toJSON(), function(x, O) {
1073
1074
  h.setRequestHeader(O, x);
1074
1075
  }), c.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), a && a !== "json" && (h.responseType = o.responseType), l && ([m, p] = oe(l, !0), h.addEventListener("progress", m)), f && h.upload && ([d, b] = oe(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", b)), (o.cancelToken || o.signal) && (u = (S) => {
1075
- h && (r(!S || S.type ? new M(null, e, h) : S), h.abort(), h = null);
1076
+ h && (r(!S || S.type ? new $(null, e, h) : S), h.abort(), h = null);
1076
1077
  }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
1077
- const R = nr(o.url);
1078
+ const R = sr(o.url);
1078
1079
  if (R && T.protocols.indexOf(R) === -1) {
1079
1080
  r(new w("Unsupported protocol " + R + ":", w.ERR_BAD_REQUEST, e));
1080
1081
  return;
1081
1082
  }
1082
1083
  h.send(s || null);
1083
1084
  });
1084
- }, fr = (e, t) => {
1085
+ }, hr = (e, t) => {
1085
1086
  const { length: n } = e = e ? e.filter(Boolean) : [];
1086
1087
  if (t || n) {
1087
1088
  let r = new AbortController(), o;
@@ -1089,7 +1090,7 @@ const _t = (e) => {
1089
1090
  if (!o) {
1090
1091
  o = !0, a();
1091
1092
  const u = l instanceof Error ? l : this.reason;
1092
- r.abort(u instanceof w ? u : new M(u instanceof Error ? u.message : u));
1093
+ r.abort(u instanceof w ? u : new $(u instanceof Error ? u.message : u));
1093
1094
  }
1094
1095
  };
1095
1096
  let i = t && setTimeout(() => {
@@ -1104,7 +1105,7 @@ const _t = (e) => {
1104
1105
  const { signal: f } = r;
1105
1106
  return f.unsubscribe = () => c.asap(a), f;
1106
1107
  }
1107
- }, dr = function* (e, t) {
1108
+ }, mr = function* (e, t) {
1108
1109
  let n = e.byteLength;
1109
1110
  if (n < t) {
1110
1111
  yield e;
@@ -1113,10 +1114,10 @@ const _t = (e) => {
1113
1114
  let r = 0, o;
1114
1115
  for (; r < n; )
1115
1116
  o = r + t, yield e.slice(r, o), r = o;
1116
- }, pr = async function* (e, t) {
1117
- for await (const n of hr(e))
1118
- yield* dr(n, t);
1119
- }, hr = async function* (e) {
1117
+ }, yr = async function* (e, t) {
1118
+ for await (const n of wr(e))
1119
+ yield* mr(n, t);
1120
+ }, wr = async function* (e) {
1120
1121
  if (e[Symbol.asyncIterator]) {
1121
1122
  yield* e;
1122
1123
  return;
@@ -1132,8 +1133,8 @@ const _t = (e) => {
1132
1133
  } finally {
1133
1134
  await t.cancel();
1134
1135
  }
1135
- }, He = (e, t, n, r) => {
1136
- const o = pr(e, t);
1136
+ }, ze = (e, t, n, r) => {
1137
+ const o = yr(e, t);
1137
1138
  let s = 0, i, a = (f) => {
1138
1139
  i || (i = !0, r && r(f));
1139
1140
  };
@@ -1161,13 +1162,13 @@ const _t = (e) => {
1161
1162
  }, {
1162
1163
  highWaterMark: 2
1163
1164
  });
1164
- }, le = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", kt = le && typeof ReadableStream == "function", mr = le && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ct = (e, ...t) => {
1165
+ }, le = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Ct = le && typeof ReadableStream == "function", gr = le && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), xt = (e, ...t) => {
1165
1166
  try {
1166
1167
  return !!e(...t);
1167
1168
  } catch {
1168
1169
  return !1;
1169
1170
  }
1170
- }, yr = kt && Ct(() => {
1171
+ }, br = Ct && xt(() => {
1171
1172
  let e = !1;
1172
1173
  const t = new Request(T.origin, {
1173
1174
  body: new ReadableStream(),
@@ -1177,7 +1178,7 @@ const _t = (e) => {
1177
1178
  }
1178
1179
  }).headers.has("Content-Type");
1179
1180
  return e && !t;
1180
- }), ze = 64 * 1024, Ee = kt && Ct(() => c.isReadableStream(new Response("").body)), se = {
1181
+ }), He = 64 * 1024, Ee = Ct && xt(() => c.isReadableStream(new Response("").body)), se = {
1181
1182
  stream: Ee && ((e) => e.body)
1182
1183
  };
1183
1184
  le && ((e) => {
@@ -1187,7 +1188,7 @@ le && ((e) => {
1187
1188
  });
1188
1189
  });
1189
1190
  })(new Response());
1190
- const wr = async (e) => {
1191
+ const Er = async (e) => {
1191
1192
  if (e == null)
1192
1193
  return 0;
1193
1194
  if (c.isBlob(e))
@@ -1200,11 +1201,11 @@ const wr = async (e) => {
1200
1201
  if (c.isArrayBufferView(e) || c.isArrayBuffer(e))
1201
1202
  return e.byteLength;
1202
1203
  if (c.isURLSearchParams(e) && (e = e + ""), c.isString(e))
1203
- return (await mr(e)).byteLength;
1204
- }, gr = async (e, t) => {
1204
+ return (await gr(e)).byteLength;
1205
+ }, Rr = async (e, t) => {
1205
1206
  const n = c.toFiniteNumber(e.getContentLength());
1206
- return n ?? wr(t);
1207
- }, br = le && (async (e) => {
1207
+ return n ?? Er(t);
1208
+ }, Sr = le && (async (e) => {
1208
1209
  let {
1209
1210
  url: t,
1210
1211
  method: n,
@@ -1218,15 +1219,15 @@ const wr = async (e) => {
1218
1219
  headers: u,
1219
1220
  withCredentials: d = "same-origin",
1220
1221
  fetchOptions: m
1221
- } = _t(e);
1222
+ } = kt(e);
1222
1223
  l = l ? (l + "").toLowerCase() : "text";
1223
- let b = fr([o, s && s.toAbortSignal()], i), p;
1224
+ let b = hr([o, s && s.toAbortSignal()], i), p;
1224
1225
  const y = b && b.unsubscribe && (() => {
1225
1226
  b.unsubscribe();
1226
1227
  });
1227
1228
  let h;
1228
1229
  try {
1229
- if (f && yr && n !== "get" && n !== "head" && (h = await gr(u, r)) !== 0) {
1230
+ if (f && br && n !== "get" && n !== "head" && (h = await Rr(u, r)) !== 0) {
1230
1231
  let O = new Request(t, {
1231
1232
  method: "POST",
1232
1233
  body: r,
@@ -1237,7 +1238,7 @@ const wr = async (e) => {
1237
1238
  h,
1238
1239
  oe(Me(f))
1239
1240
  );
1240
- r = He(O.body, ze, I, G);
1241
+ r = ze(O.body, He, I, G);
1241
1242
  }
1242
1243
  }
1243
1244
  c.isString(d) || (d = d ? "include" : "omit");
@@ -1263,7 +1264,7 @@ const wr = async (e) => {
1263
1264
  oe(Me(a), !0)
1264
1265
  ) || [];
1265
1266
  R = new Response(
1266
- He(R.body, ze, I, () => {
1267
+ ze(R.body, He, I, () => {
1267
1268
  G && G(), y && y();
1268
1269
  }),
1269
1270
  O
@@ -1272,7 +1273,7 @@ const wr = async (e) => {
1272
1273
  l = l || "text";
1273
1274
  let x = await se[c.findKey(se, l) || "text"](R, e);
1274
1275
  return !S && y && y(), await new Promise((O, P) => {
1275
- Ot(O, P, {
1276
+ At(O, P, {
1276
1277
  data: x,
1277
1278
  headers: _.from(R.headers),
1278
1279
  status: R.status,
@@ -1290,9 +1291,9 @@ const wr = async (e) => {
1290
1291
  ) : w.from(E, E && E.code, e, p);
1291
1292
  }
1292
1293
  }), Re = {
1293
- http: In,
1294
- xhr: lr,
1295
- fetch: br
1294
+ http: Dn,
1295
+ xhr: pr,
1296
+ fetch: Sr
1296
1297
  };
1297
1298
  c.forEach(Re, (e, t) => {
1298
1299
  if (e) {
@@ -1303,7 +1304,7 @@ c.forEach(Re, (e, t) => {
1303
1304
  Object.defineProperty(e, "adapterName", { value: t });
1304
1305
  }
1305
1306
  });
1306
- const Je = (e) => `- ${e}`, Er = (e) => c.isFunction(e) || e === null || e === !1, xt = {
1307
+ const Je = (e) => `- ${e}`, Tr = (e) => c.isFunction(e) || e === null || e === !1, Pt = {
1307
1308
  getAdapter: (e) => {
1308
1309
  e = c.isArray(e) ? e : [e];
1309
1310
  const { length: t } = e;
@@ -1312,7 +1313,7 @@ const Je = (e) => `- ${e}`, Er = (e) => c.isFunction(e) || e === null || e === !
1312
1313
  for (let s = 0; s < t; s++) {
1313
1314
  n = e[s];
1314
1315
  let i;
1315
- if (r = n, !Er(n) && (r = Re[(i = String(n)).toLowerCase()], r === void 0))
1316
+ if (r = n, !Tr(n) && (r = Re[(i = String(n)).toLowerCase()], r === void 0))
1316
1317
  throw new w(`Unknown adapter '${i}'`);
1317
1318
  if (r)
1318
1319
  break;
@@ -1336,27 +1337,27 @@ const Je = (e) => `- ${e}`, Er = (e) => c.isFunction(e) || e === null || e === !
1336
1337
  };
1337
1338
  function me(e) {
1338
1339
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1339
- throw new M(null, e);
1340
+ throw new $(null, e);
1340
1341
  }
1341
1342
  function Ve(e) {
1342
1343
  return me(e), e.headers = _.from(e.headers), e.data = he.call(
1343
1344
  e,
1344
1345
  e.transformRequest
1345
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), xt.getAdapter(e.adapter || X.adapter)(e).then(function(r) {
1346
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Pt.getAdapter(e.adapter || X.adapter)(e).then(function(r) {
1346
1347
  return me(e), r.data = he.call(
1347
1348
  e,
1348
1349
  e.transformResponse,
1349
1350
  r
1350
1351
  ), r.headers = _.from(r.headers), r;
1351
1352
  }, function(r) {
1352
- return Tt(r) || (me(e), r && r.response && (r.response.data = he.call(
1353
+ return Ot(r) || (me(e), r && r.response && (r.response.data = he.call(
1353
1354
  e,
1354
1355
  e.transformResponse,
1355
1356
  r.response
1356
1357
  ), r.response.headers = _.from(r.response.headers))), Promise.reject(r);
1357
1358
  });
1358
1359
  }
1359
- const Pt = "1.11.0", fe = {};
1360
+ const Ut = "1.11.0", fe = {};
1360
1361
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1361
1362
  fe[e] = function(r) {
1362
1363
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
@@ -1365,7 +1366,7 @@ const Pt = "1.11.0", fe = {};
1365
1366
  const We = {};
1366
1367
  fe.transitional = function(t, n, r) {
1367
1368
  function o(s, i) {
1368
- return "[Axios v" + Pt + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
1369
+ return "[Axios v" + Ut + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
1369
1370
  }
1370
1371
  return (s, i, a) => {
1371
1372
  if (t === !1)
@@ -1379,7 +1380,7 @@ fe.transitional = function(t, n, r) {
1379
1380
  fe.spelling = function(t) {
1380
1381
  return (n, r) => !0;
1381
1382
  };
1382
- function Rr(e, t, n) {
1383
+ function Or(e, t, n) {
1383
1384
  if (typeof e != "object")
1384
1385
  throw new w("options must be an object", w.ERR_BAD_OPTION_VALUE);
1385
1386
  const r = Object.keys(e);
@@ -1397,7 +1398,7 @@ function Rr(e, t, n) {
1397
1398
  }
1398
1399
  }
1399
1400
  const ne = {
1400
- assertOptions: Rr,
1401
+ assertOptions: Or,
1401
1402
  validators: fe
1402
1403
  }, C = ne.validators;
1403
1404
  let v = class {
@@ -1496,8 +1497,8 @@ let v = class {
1496
1497
  }
1497
1498
  getUri(t) {
1498
1499
  t = B(this.defaults, t);
1499
- const n = At(t.baseURL, t.url, t.allowAbsoluteUrls);
1500
- return Et(n, t.params, t.paramsSerializer);
1500
+ const n = _t(t.baseURL, t.url, t.allowAbsoluteUrls);
1501
+ return Rt(n, t.params, t.paramsSerializer);
1501
1502
  }
1502
1503
  };
1503
1504
  c.forEach(["delete", "get", "head", "options"], function(t) {
@@ -1524,7 +1525,7 @@ c.forEach(["post", "put", "patch"], function(t) {
1524
1525
  }
1525
1526
  v.prototype[t] = n(), v.prototype[t + "Form"] = n(!0);
1526
1527
  });
1527
- let Sr = class Ut {
1528
+ let Ar = class Lt {
1528
1529
  constructor(t) {
1529
1530
  if (typeof t != "function")
1530
1531
  throw new TypeError("executor must be a function.");
@@ -1548,7 +1549,7 @@ let Sr = class Ut {
1548
1549
  r.unsubscribe(s);
1549
1550
  }, i;
1550
1551
  }, t(function(s, i, a) {
1551
- r.reason || (r.reason = new M(s, i, a), n(r.reason));
1552
+ r.reason || (r.reason = new $(s, i, a), n(r.reason));
1552
1553
  });
1553
1554
  }
1554
1555
  /**
@@ -1590,19 +1591,19 @@ let Sr = class Ut {
1590
1591
  static source() {
1591
1592
  let t;
1592
1593
  return {
1593
- token: new Ut(function(o) {
1594
+ token: new Lt(function(o) {
1594
1595
  t = o;
1595
1596
  }),
1596
1597
  cancel: t
1597
1598
  };
1598
1599
  }
1599
1600
  };
1600
- function Tr(e) {
1601
+ function _r(e) {
1601
1602
  return function(n) {
1602
1603
  return e.apply(null, n);
1603
1604
  };
1604
1605
  }
1605
- function Or(e) {
1606
+ function kr(e) {
1606
1607
  return c.isObject(e) && e.isAxiosError === !0;
1607
1608
  }
1608
1609
  const Se = {
@@ -1673,49 +1674,49 @@ const Se = {
1673
1674
  Object.entries(Se).forEach(([e, t]) => {
1674
1675
  Se[t] = e;
1675
1676
  });
1676
- function Lt(e) {
1677
- const t = new v(e), n = ct(v.prototype.request, t);
1677
+ function Nt(e) {
1678
+ const t = new v(e), n = ut(v.prototype.request, t);
1678
1679
  return c.extend(n, v.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
1679
- return Lt(B(e, o));
1680
+ return Nt(B(e, o));
1680
1681
  }, n;
1681
1682
  }
1682
- const g = Lt(X);
1683
+ const g = Nt(X);
1683
1684
  g.Axios = v;
1684
- g.CanceledError = M;
1685
- g.CancelToken = Sr;
1686
- g.isCancel = Tt;
1687
- g.VERSION = Pt;
1685
+ g.CanceledError = $;
1686
+ g.CancelToken = Ar;
1687
+ g.isCancel = Ot;
1688
+ g.VERSION = Ut;
1688
1689
  g.toFormData = ue;
1689
1690
  g.AxiosError = w;
1690
1691
  g.Cancel = g.CanceledError;
1691
1692
  g.all = function(t) {
1692
1693
  return Promise.all(t);
1693
1694
  };
1694
- g.spread = Tr;
1695
- g.isAxiosError = Or;
1695
+ g.spread = _r;
1696
+ g.isAxiosError = kr;
1696
1697
  g.mergeConfig = B;
1697
1698
  g.AxiosHeaders = _;
1698
- g.formToJSON = (e) => St(c.isHTMLForm(e) ? new FormData(e) : e);
1699
- g.getAdapter = xt.getAdapter;
1699
+ g.formToJSON = (e) => Tt(c.isHTMLForm(e) ? new FormData(e) : e);
1700
+ g.getAdapter = Pt.getAdapter;
1700
1701
  g.HttpStatusCode = Se;
1701
1702
  g.default = g;
1702
1703
  const {
1703
- Axios: ao,
1704
- AxiosError: co,
1705
- CanceledError: uo,
1706
- isCancel: lo,
1707
- CancelToken: fo,
1708
- VERSION: po,
1709
- all: ho,
1710
- Cancel: mo,
1711
- isAxiosError: yo,
1712
- spread: wo,
1713
- toFormData: go,
1714
- AxiosHeaders: bo,
1715
- HttpStatusCode: Eo,
1716
- formToJSON: Ro,
1717
- getAdapter: So,
1718
- mergeConfig: To
1704
+ Axios: lo,
1705
+ AxiosError: fo,
1706
+ CanceledError: po,
1707
+ isCancel: ho,
1708
+ CancelToken: mo,
1709
+ VERSION: yo,
1710
+ all: wo,
1711
+ Cancel: go,
1712
+ isAxiosError: bo,
1713
+ spread: Eo,
1714
+ toFormData: Ro,
1715
+ AxiosHeaders: So,
1716
+ HttpStatusCode: To,
1717
+ formToJSON: Oo,
1718
+ getAdapter: Ao,
1719
+ mergeConfig: _o
1719
1720
  } = g;
1720
1721
  /*! js-cookie v3.0.5 | MIT */
1721
1722
  function Z(e) {
@@ -1726,7 +1727,7 @@ function Z(e) {
1726
1727
  }
1727
1728
  return e;
1728
1729
  }
1729
- var Ar = {
1730
+ var Cr = {
1730
1731
  read: function(e) {
1731
1732
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
1732
1733
  },
@@ -1787,14 +1788,14 @@ function Te(e, t) {
1787
1788
  }
1788
1789
  );
1789
1790
  }
1790
- var Oe = Te(Ar, { path: "/" }), Ke;
1791
- const Nt = typeof window < "u", _r = (e) => typeof e == "string", Qe = () => +Date.now(), Ae = () => {
1791
+ var Oe = Te(Cr, { path: "/" }), Ke;
1792
+ const It = typeof window < "u", xr = (e) => typeof e == "string", Qe = () => +Date.now(), Ae = () => {
1792
1793
  };
1793
- Nt && ((Ke = window == null ? void 0 : window.navigator) != null && Ke.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1794
+ It && ((Ke = window == null ? void 0 : window.navigator) != null && Ke.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1794
1795
  function Ne(e) {
1795
- return typeof e == "function" ? e() : qt(e);
1796
+ return typeof e == "function" ? e() : $t(e);
1796
1797
  }
1797
- function kr(e, t) {
1798
+ function Pr(e, t) {
1798
1799
  function n(...r) {
1799
1800
  return new Promise((o, s) => {
1800
1801
  Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(o).catch(s);
@@ -1802,7 +1803,7 @@ function kr(e, t) {
1802
1803
  }
1803
1804
  return n;
1804
1805
  }
1805
- function Cr(e, t = !0, n = !0, r = !1) {
1806
+ function Ur(e, t = !0, n = !0, r = !1) {
1806
1807
  let o = 0, s, i = !0, a = Ae, f;
1807
1808
  const l = () => {
1808
1809
  s && (clearTimeout(s), s = void 0, a(), a = Ae);
@@ -1816,45 +1817,45 @@ function Cr(e, t = !0, n = !0, r = !1) {
1816
1817
  })), !n && !s && (s = setTimeout(() => i = !0, m)), i = !1, f);
1817
1818
  };
1818
1819
  }
1819
- function xr(e) {
1820
+ function Lr(e) {
1820
1821
  return e;
1821
1822
  }
1822
- function Pr(e) {
1823
- return Mt() ? ($t(e), !0) : !1;
1823
+ function Nr(e) {
1824
+ return zt() ? (Ht(e), !0) : !1;
1824
1825
  }
1825
- function Ur(e) {
1826
+ function Ir(e) {
1826
1827
  var t;
1827
1828
  const n = Ne(e);
1828
1829
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
1829
1830
  }
1830
- const It = Nt ? window : void 0;
1831
+ const Ft = It ? window : void 0;
1831
1832
  function Xe(...e) {
1832
1833
  let t, n, r, o;
1833
- if (_r(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = It) : [t, n, r, o] = e, !t)
1834
+ if (xr(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = Ft) : [t, n, r, o] = e, !t)
1834
1835
  return Ae;
1835
1836
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
1836
1837
  const s = [], i = () => {
1837
1838
  s.forEach((u) => u()), s.length = 0;
1838
- }, a = (u, d, m, b) => (u.addEventListener(d, m, b), () => u.removeEventListener(d, m, b)), f = Ce(() => [Ur(t), Ne(o)], ([u, d]) => {
1839
+ }, a = (u, d, m, b) => (u.addEventListener(d, m, b), () => u.removeEventListener(d, m, b)), f = Ce(() => [Ir(t), Ne(o)], ([u, d]) => {
1839
1840
  i(), u && s.push(...n.flatMap((m) => r.map((b) => a(u, m, b, d))));
1840
1841
  }, { immediate: !0, flush: "post" }), l = () => {
1841
1842
  f(), i();
1842
1843
  };
1843
- return Pr(l), l;
1844
+ return Nr(l), l;
1844
1845
  }
1845
1846
  const Ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ze = "__vueuse_ssr_handlers__";
1846
1847
  Ge[Ze] = Ge[Ze] || {};
1847
- const Lr = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], Nr = 6e4;
1848
- function Ir(e = Nr, t = {}) {
1848
+ const Fr = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], vr = 6e4;
1849
+ function Dr(e = vr, t = {}) {
1849
1850
  const {
1850
1851
  initialState: n = !1,
1851
1852
  listenForVisibilityChange: r = !0,
1852
- events: o = Lr,
1853
- window: s = It,
1854
- eventFilter: i = Cr(50)
1853
+ events: o = Fr,
1854
+ window: s = Ft,
1855
+ eventFilter: i = Ur(50)
1855
1856
  } = t, a = re(n), f = re(Qe());
1856
1857
  let l;
1857
- const u = kr(i, () => {
1858
+ const u = Pr(i, () => {
1858
1859
  a.value = !1, f.value = Qe(), clearTimeout(l), l = setTimeout(() => a.value = !0, e);
1859
1860
  });
1860
1861
  if (s) {
@@ -1871,15 +1872,15 @@ var Ye;
1871
1872
  (function(e) {
1872
1873
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
1873
1874
  })(Ye || (Ye = {}));
1874
- var Fr = Object.defineProperty, et = Object.getOwnPropertySymbols, vr = Object.prototype.hasOwnProperty, Dr = Object.prototype.propertyIsEnumerable, tt = (e, t, n) => t in e ? Fr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Br = (e, t) => {
1875
+ var Br = Object.defineProperty, et = Object.getOwnPropertySymbols, jr = Object.prototype.hasOwnProperty, qr = Object.prototype.propertyIsEnumerable, tt = (e, t, n) => t in e ? Br(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Mr = (e, t) => {
1875
1876
  for (var n in t || (t = {}))
1876
- vr.call(t, n) && tt(e, n, t[n]);
1877
+ jr.call(t, n) && tt(e, n, t[n]);
1877
1878
  if (et)
1878
1879
  for (var n of et(t))
1879
- Dr.call(t, n) && tt(e, n, t[n]);
1880
+ qr.call(t, n) && tt(e, n, t[n]);
1880
1881
  return e;
1881
1882
  };
1882
- const jr = {
1883
+ const $r = {
1883
1884
  easeInSine: [0.12, 0, 0.39, 0],
1884
1885
  easeOutSine: [0.61, 1, 0.88, 1],
1885
1886
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -1905,27 +1906,27 @@ const jr = {
1905
1906
  easeOutBack: [0.34, 1.56, 0.64, 1],
1906
1907
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
1907
1908
  };
1908
- Br({
1909
- linear: xr
1910
- }, jr);
1909
+ Mr({
1910
+ linear: Lr
1911
+ }, $r);
1911
1912
  let _e;
1912
- const Ft = { triggerProxySso: "triggerProxySso" }, qr = () => {
1913
+ const vt = { triggerProxySso: "triggerProxySso" }, zr = () => {
1913
1914
  _e = (e) => {
1914
1915
  var n;
1915
1916
  const { origin: t } = new URL(location.href);
1916
1917
  (n = window.top) == null || n.postMessage(
1917
- { type: Ft.triggerProxySso, data: { ...e || {}, redirect_uri: `${t}/` } },
1918
+ { type: vt.triggerProxySso, data: { ...e || {}, redirect_uri: `${t}/` } },
1918
1919
  t
1919
1920
  );
1920
1921
  };
1921
- }, Mr = (e) => {
1922
+ }, Hr = (e) => {
1922
1923
  window.top === window.self && window.addEventListener("message", (t) => {
1923
1924
  const { type: n, data: r } = t.data;
1924
- n === Ft.triggerProxySso && (e == null || e(r));
1925
+ n === vt.triggerProxySso && (e == null || e(r));
1925
1926
  });
1926
1927
  };
1927
- window.top !== window.self && qr();
1928
- let vt = (e = 21) => {
1928
+ window.top !== window.self && zr();
1929
+ let Dt = (e = 21) => {
1929
1930
  let t = "", n = crypto.getRandomValues(new Uint8Array(e));
1930
1931
  for (; e--; ) {
1931
1932
  let r = n[e] & 63;
@@ -1943,7 +1944,7 @@ const U = (e) => new URL(location.href).searchParams.get(e), ke = (e) => {
1943
1944
  login: "/api/justauth/client/v1/visitor/feishu/login",
1944
1945
  ssoParam: "/api/justauth/client/v1/visitor/sso-param"
1945
1946
  }
1946
- }, $r = async () => {
1947
+ }, Jr = async () => {
1947
1948
  const e = U("authorizer") || "", t = U("_redirect_url") || "";
1948
1949
  if (ke(["authorizer", "_redirect_url"]), e === "feishu") {
1949
1950
  if (!window.tt) return "";
@@ -1991,21 +1992,21 @@ const U = (e) => new URL(location.href).searchParams.get(e), ke = (e) => {
1991
1992
  }) : i();
1992
1993
  });
1993
1994
  }
1994
- }, Hr = "/api/justauth/client/v1/visitor/sso-param", zr = {
1995
+ }, Vr = "/api/justauth/client/v1/visitor/sso-param", Wr = {
1995
1996
  uat: "https://sso-uat.jmc.com.cn"
1996
- }, Jr = () => {
1997
- const e = localStorage.getItem("thirdLogouSource");
1998
- return e === "zhongshen" || e === "jmc";
1999
- }, Dt = (e) => {
2000
- localStorage.removeItem("thirdLogouSource"), location.href = e;
2001
- }, Vr = (e) => {
1997
+ }, Bt = () => {
1998
+ const e = localStorage.getItem("thirdLogouSource"), t = localStorage.getItem("loginType");
1999
+ return e === "jmc" && t === "das" ? !1 : e === "zhongshen" || e === "jmc";
2000
+ }, jt = (e) => {
2001
+ localStorage.removeItem("thirdLogouSource"), window.__isAutoCloseApp = !1, location.href = e;
2002
+ }, Kr = (e) => {
2002
2003
  const n = `https://iam.shenyejituan.com:443/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=${encodeURIComponent(e)}&entityId=AIoT&redirectToLogin=true`;
2003
- Dt(n);
2004
- }, Wr = async () => {
2004
+ jt(n);
2005
+ }, Qr = async () => {
2005
2006
  let e = "";
2006
2007
  try {
2007
2008
  const { baseURL: o } = V();
2008
- e = (await g.create().get(Hr, {
2009
+ e = (await g.create().get(Vr, {
2009
2010
  baseURL: o,
2010
2011
  params: {
2011
2012
  source: "jmc",
@@ -2021,50 +2022,51 @@ const U = (e) => new URL(location.href).searchParams.get(e), ke = (e) => {
2021
2022
  } catch {
2022
2023
  return "";
2023
2024
  }
2024
- })(), n = t === zr.uat ? Oe.get("sso_access_token_uat") : Oe.get("sso_access_token"), r = `${t}/oauth2/system/auth/logout?sso_token=${n}`;
2025
+ })(), n = t === Wr.uat ? Oe.get("sso_access_token_uat") : Oe.get("sso_access_token"), r = `${t}/oauth2/system/auth/logout?sso_token=${n}`;
2025
2026
  try {
2026
2027
  await g.post(r);
2027
2028
  } catch {
2028
2029
  }
2029
- Dt(e);
2030
- }, Kr = async (e) => {
2030
+ jt(e);
2031
+ }, Xr = async (e = "") => {
2032
+ if (!Bt()) return;
2031
2033
  const t = localStorage.getItem("thirdLogouSource");
2032
2034
  if (t === "zhongshen") {
2033
- Vr(e);
2035
+ Kr(e);
2034
2036
  return;
2035
2037
  }
2036
- t === "jmc" && await Wr();
2037
- }, j = {
2038
+ t === "jmc" && await Qr();
2039
+ }, q = {
2038
2040
  oauth: "/api/justauth/oauth-server/v1/visitor/oauth/authorize",
2039
2041
  // 重定向到登录页
2040
2042
  logoutCurpage: "/api/justauth/oauth-server/v1/visitor/logout-curpage",
2041
2043
  // 清除登录信息
2042
2044
  token: "/api/justauth/oauth-server/v1/visitor/oauth/token"
2043
2045
  // 通过code获取token
2044
- }, { baseURL: ot, noRedireLogin: Qr = !1 } = V(), st = localStorage.getItem("oauth-redirect_url") || "", L = st || location.origin + "/home", N = {
2046
+ }, { baseURL: ot, noRedireLogin: Gr = !1 } = V(), st = localStorage.getItem("oauth-redirect_url") || "", L = st || location.origin + "/home", N = {
2045
2047
  response_type: "code",
2046
2048
  scope: "sever",
2047
2049
  client_id: "sys",
2048
- client_secret: Ht("das123"),
2050
+ client_secret: Jt("das123"),
2049
2051
  state: +/* @__PURE__ */ new Date()
2050
- }, Bt = re(!1), jt = (e) => {
2052
+ }, qt = re(!1), Mt = (e) => {
2051
2053
  if (e <= 0) return;
2052
- const { idle: t } = Ir(e);
2054
+ const { idle: t } = Dr(e);
2053
2055
  Ce(
2054
2056
  () => t.value,
2055
2057
  (n) => {
2056
- n === !0 && (Bt.value = !0);
2058
+ n === !0 && (qt.value = !0);
2057
2059
  }
2058
2060
  );
2059
2061
  };
2060
- localStorage.getItem("idelTime") && jt(Number(localStorage.getItem("idelTime")));
2062
+ localStorage.getItem("idelTime") && Mt(Number(localStorage.getItem("idelTime")));
2061
2063
  let it = "";
2062
- const Xr = async () => {
2064
+ const Zr = async () => {
2063
2065
  const e = U("code") || "", t = U("redirect_url") || "/", n = U("kingdee_token") || "", r = U("loginType") || "";
2064
- if (r && localStorage.setItem("loginType", r), !e) return H();
2066
+ if (r && localStorage.setItem("loginType", r), !e) return j();
2065
2067
  const o = ["code", "state", "kingdee_token", "redirect_url", "source"];
2066
2068
  if (e === it)
2067
- return ke(o), window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t)), localStorage.removeItem("oauth-redirect_url"), H();
2069
+ return ke(o), window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t)), localStorage.removeItem("oauth-redirect_url"), j();
2068
2070
  it = e, ke(o);
2069
2071
  let s = {};
2070
2072
  const i = {
@@ -2074,16 +2076,16 @@ const Xr = async () => {
2074
2076
  client_secret: N.client_secret,
2075
2077
  redirect_uri: r ? xe(L, { loginType: r }) : L,
2076
2078
  timestamp: (/* @__PURE__ */ new Date()).getTime(),
2077
- nonce: vt()
2079
+ nonce: Dt()
2078
2080
  };
2079
2081
  n && (sessionStorage.setItem("kingdee_token", n), i.redirect_uri = `${i.redirect_uri}?kingdee_token=${n}`);
2080
2082
  try {
2081
- await g.create().get(j.token, { baseURL: ot });
2083
+ await g.create().get(q.token, { baseURL: ot });
2082
2084
  } catch {
2083
2085
  }
2084
2086
  try {
2085
2087
  s = await g.create().post(
2086
- j.token,
2088
+ q.token,
2087
2089
  {},
2088
2090
  {
2089
2091
  baseURL: ot,
@@ -2102,38 +2104,38 @@ const Xr = async () => {
2102
2104
  };
2103
2105
  J().save(d), await at(a);
2104
2106
  const m = Number(u) - (/* @__PURE__ */ new Date()).getTime();
2105
- return m && m > 0 && (jt(m), m && localStorage.setItem("idelTime", m.toString())), t && (window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t))), localStorage.removeItem("oauth-redirect_url"), a;
2107
+ return m && m > 0 && (Mt(m), m && localStorage.setItem("idelTime", m.toString())), t && (window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t))), localStorage.removeItem("oauth-redirect_url"), a;
2106
2108
  } catch {
2107
2109
  return D({ ...N, redirect_uri: L });
2108
2110
  }
2109
- }, Y = re(!1), Oo = async (e) => {
2111
+ }, Y = re(!1), ko = async (e) => {
2110
2112
  if (e.public) return "";
2111
- if (Bt.value)
2112
- return D({ ...N, redirect_uri: L });
2113
+ if (qt.value)
2114
+ return ct() ? j() : D({ ...N, redirect_uri: L });
2113
2115
  if (Y.value)
2114
2116
  return await new Promise(async (r) => {
2115
2117
  Ce(
2116
2118
  () => Y.value,
2117
2119
  (o) => {
2118
2120
  if (!o) {
2119
- const s = H();
2121
+ const s = j();
2120
2122
  r(s);
2121
2123
  }
2122
2124
  }
2123
2125
  );
2124
2126
  });
2125
- let t = H();
2127
+ let t = j();
2126
2128
  const { accessTokenExpiredAt: n = 0 } = J().getData();
2127
2129
  Y.value = !0;
2128
2130
  try {
2129
2131
  const r = U("code") || "";
2130
2132
  if ((U("authorizer") || "") === "feishu")
2131
- await $r();
2133
+ await Jr();
2132
2134
  else if (r)
2133
- t = await Xr();
2135
+ t = await Zr();
2134
2136
  else {
2135
2137
  const s = Date.now() + 6e4;
2136
- n > 0 && s > n && (t = await Gr(N));
2138
+ n > 0 && s > n && (t = await Yr(N));
2137
2139
  }
2138
2140
  } catch {
2139
2141
  } finally {
@@ -2143,7 +2145,7 @@ const Xr = async () => {
2143
2145
  };
2144
2146
  let ye = !1;
2145
2147
  const D = (e) => {
2146
- if (!Qr && !ye) {
2148
+ if (!Gr && !ye) {
2147
2149
  ye = !0;
2148
2150
  try {
2149
2151
  const t = { ...e }, n = localStorage.getItem("loginType") || "";
@@ -2155,12 +2157,12 @@ const D = (e) => {
2155
2157
  Object.entries(t).forEach(([f, l]) => {
2156
2158
  f !== "client_secret" && s.set(f, String(l));
2157
2159
  });
2158
- const i = s.toString(), a = `${r}${j.oauth}?${i}`;
2159
- if (localStorage.removeItem("idelTime"), sessionStorage.clear(), J().remove(), Jr())
2160
- Kr(a);
2160
+ const i = s.toString(), a = `${r}${q.oauth}?${i}`;
2161
+ if (localStorage.removeItem("idelTime"), sessionStorage.clear(), J().remove(), Bt())
2162
+ Xr(a);
2161
2163
  else {
2162
2164
  try {
2163
- g.create().get(j.logoutCurpage, { baseURL: r });
2165
+ g.create().get(q.logoutCurpage, { baseURL: r });
2164
2166
  } catch {
2165
2167
  }
2166
2168
  window.__isAutoCloseApp = !1, location.replace(a);
@@ -2170,16 +2172,16 @@ const D = (e) => {
2170
2172
  }
2171
2173
  }
2172
2174
  };
2173
- Mr(D);
2174
- const Gr = async (e) => {
2175
+ Hr(D);
2176
+ const Yr = async (e) => {
2175
2177
  const { baseURL: t } = V(), { refreshToken: n } = J().getData();
2176
2178
  try {
2177
- await g.create().get(j.token, { baseURL: t });
2179
+ await g.create().get(q.token, { baseURL: t });
2178
2180
  } catch {
2179
2181
  }
2180
2182
  try {
2181
2183
  const r = await g.create().post(
2182
- j.token,
2184
+ q.token,
2183
2185
  {},
2184
2186
  {
2185
2187
  baseURL: t,
@@ -2189,7 +2191,7 @@ const Gr = async (e) => {
2189
2191
  client_id: e.client_id,
2190
2192
  client_secret: e.client_secret,
2191
2193
  timestamp: (/* @__PURE__ */ new Date()).getTime(),
2192
- nonce: vt()
2194
+ nonce: Dt()
2193
2195
  }
2194
2196
  }
2195
2197
  ), { access_token: o = "", refresh_token: s = "", exp: i = 0 } = r.data, a = {
@@ -2199,32 +2201,41 @@ const Gr = async (e) => {
2199
2201
  info: r.data
2200
2202
  };
2201
2203
  return J().save(a), await at(o), o;
2202
- } catch {
2204
+ } catch (r) {
2205
+ if (ct())
2206
+ try {
2207
+ const o = await Xt({
2208
+ error: r,
2209
+ config: r.config || {}
2210
+ });
2211
+ if (o != null && o.accessToken) return o.accessToken;
2212
+ } catch {
2213
+ }
2203
2214
  return D({ ...e, redirect_uri: L });
2204
2215
  }
2205
2216
  }, J = () => ({
2206
2217
  getData: () => ({
2207
- accessToken: H(),
2218
+ accessToken: j(),
2208
2219
  accessTokenExpiredAt: de("accessTokenExpiredAt") ? Number(de("accessTokenExpiredAt")) : 0,
2209
2220
  refreshToken: de("refreshToken")
2210
2221
  }),
2211
2222
  save: (e) => {
2212
- Jt(e.accessToken ?? "", {
2223
+ Wt(e.accessToken ?? "", {
2213
2224
  accessTokenExpiredAt: e.accessTokenExpiredAt,
2214
2225
  refreshToken: e.refreshToken
2215
- }), Wt(e);
2226
+ }), Qt(e);
2216
2227
  },
2217
2228
  remove: () => {
2218
- zt(), Vt();
2229
+ Vt(), Kt();
2219
2230
  }
2220
2231
  });
2221
2232
  export {
2222
2233
  U as getQuery,
2223
- Oo as getToken,
2224
- Xr as getTokenFromCode,
2234
+ ko as getToken,
2235
+ Zr as getTokenFromCode,
2225
2236
  N as getTokenParams,
2226
2237
  D as login,
2227
2238
  L as real_uri,
2228
- Gr as refreshToken,
2239
+ Yr as refreshToken,
2229
2240
  J as tokenStorage
2230
2241
  };