@das-fed/utils 7.1.0-seres.36 → 7.1.0-seres.37

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 (73) hide show
  1. package/api-services/index.js +2195 -3634
  2. package/api-services/index.js.gz +0 -0
  3. package/api-services/modules/app-manage/index.js +2166 -3605
  4. package/api-services/modules/app-manage/index.js.gz +0 -0
  5. package/api-services/modules/authentication/index.js +2166 -3605
  6. package/api-services/modules/authentication/index.js.gz +0 -0
  7. package/api-services/modules/bems/index.js +2160 -3599
  8. package/api-services/modules/bems/index.js.gz +0 -0
  9. package/api-services/modules/contract/index.js +2220 -3641
  10. package/api-services/modules/contract/index.js.gz +0 -0
  11. package/api-services/modules/duty-manage/index.js +2161 -3600
  12. package/api-services/modules/duty-manage/index.js.gz +0 -0
  13. package/api-services/modules/enterpriseright/index.js +2166 -3605
  14. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  15. package/api-services/modules/file/index.js +2121 -3560
  16. package/api-services/modules/file/index.js.gz +0 -0
  17. package/api-services/modules/gateway-edge/index.js +2166 -3605
  18. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  19. package/api-services/modules/index.js +2185 -3624
  20. package/api-services/modules/index.js.gz +0 -0
  21. package/api-services/modules/iot/index.js +2228 -3663
  22. package/api-services/modules/iot/index.js.gz +0 -0
  23. package/api-services/modules/justauth/index.js +2226 -3647
  24. package/api-services/modules/justauth/index.js.gz +0 -0
  25. package/api-services/modules/knowledge/index.js +2166 -3605
  26. package/api-services/modules/knowledge/index.js.gz +0 -0
  27. package/api-services/modules/link/index.js +2166 -3605
  28. package/api-services/modules/link/index.js.gz +0 -0
  29. package/api-services/modules/permission/index.js +2220 -3641
  30. package/api-services/modules/permission/index.js.gz +0 -0
  31. package/api-services/modules/platformManage/index.js +2156 -3595
  32. package/api-services/modules/platformManage/index.js.gz +0 -0
  33. package/api-services/modules/portal/index.js +2166 -3605
  34. package/api-services/modules/portal/index.js.gz +0 -0
  35. package/api-services/modules/space-manage/index.js +2166 -3605
  36. package/api-services/modules/space-manage/index.js.gz +0 -0
  37. package/api-services/modules/super-admin/index.js +2160 -3599
  38. package/api-services/modules/super-admin/index.js.gz +0 -0
  39. package/api-services/modules/supplier/index.js +2150 -3589
  40. package/api-services/modules/supplier/index.js.gz +0 -0
  41. package/api-services/modules/supplychain-manage/index.js +2166 -3605
  42. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  43. package/api-services/modules/systemConfiguration/index.js +2166 -3605
  44. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  45. package/api-services/modules/tool/index.js +2166 -3605
  46. package/api-services/modules/tool/index.js.gz +0 -0
  47. package/api-services/src/create-service/index.js +2165 -3604
  48. package/api-services/src/create-service/index.js.gz +0 -0
  49. package/common-info/getInfoFromUrl/index.js +28 -28
  50. package/common-info/getInfoFromUrl/index.js.gz +0 -0
  51. package/common-info/set-personal-info/index.js +1132 -2317
  52. package/common-info/set-personal-info/index.js.gz +0 -0
  53. package/common-tools/extract-file-name/index.js +1167 -2352
  54. package/common-tools/extract-file-name/index.js.gz +0 -0
  55. package/create-api-service/index.js +2143 -3600
  56. package/create-api-service/index.js.gz +0 -0
  57. package/create-api-service/sso/index.js +1356 -2541
  58. package/create-api-service/sso/index.js.gz +0 -0
  59. package/create-api-service/thirdLogout/index.js +1241 -2426
  60. package/create-api-service/thirdLogout/index.js.gz +0 -0
  61. package/curring-http/index.js +1394 -2579
  62. package/curring-http/index.js.gz +0 -0
  63. package/nextTiken/index.js +3 -3
  64. package/nextTiken/index.js.gz +0 -0
  65. package/package.json +4 -4
  66. package/pinyin-first-character/index.js +428 -523
  67. package/pinyin-first-character/index.js.gz +0 -0
  68. package/style/index.js +11 -9
  69. package/style/index.js.gz +0 -0
  70. package/token-tools/index.js +11 -11
  71. package/token-tools/index.js.gz +0 -0
  72. package/use-low-code/index.js +2 -2
  73. package/use-low-code/index.js.gz +0 -0
@@ -1,133 +1,66 @@
1
- import { unref as yr, getCurrentScope as br, onScopeDispose as Or, ref as We, watch as Pt } from "vue";
2
- import { encryption as Er } from "@das-fed/utils/atob";
3
- import { getConfig as Xe } from "@das-fed/utils/config";
4
- import { getAccessToken as Te, tokenStorage as Ve, clearPlatformAuthStorage as Sr } from "@das-fed/utils/token-tools";
5
- import { tokenStorage as Xi } from "@das-fed/utils/token-tools";
6
- import { appendQueryParams as Tt } from "@das-fed/utils/common-tools";
7
- import { setPersonalInfo as Cn } from "@das-fed/utils/common-info/set-personal-info";
8
- import { trySailisiLogout as Rr } from "@das-fed/utils/create-api-service/sailisi-logout";
9
- import { isThirdLogin as _r, thirdLogout as Ar } from "@das-fed/utils/create-api-service/thirdLogout";
10
- import { hasUnauthorizedRecovery as mt } from "@das-fed/utils/create-api-service/unauthorized-recovery";
11
- function Dn(e, t) {
1
+ import { unref as qt, getCurrentScope as Mt, onScopeDispose as Ht, ref as te, watch as xe } from "vue";
2
+ import { encryption as $t } from "@das-fed/utils/atob";
3
+ import { getConfig as se } from "@das-fed/utils/config";
4
+ import { getAccessToken as $, tokenStorage as ne, clearPlatformAuthStorage as zt } from "@das-fed/utils/token-tools";
5
+ import { tokenStorage as Oo } from "@das-fed/utils/token-tools";
6
+ import { appendQueryParams as ke } from "@das-fed/utils/common-tools";
7
+ import { setPersonalInfo as at } from "@das-fed/utils/common-info/set-personal-info";
8
+ import { trySailisiLogout as Jt } from "@das-fed/utils/create-api-service/sailisi-logout";
9
+ import { isThirdLogin as Vt, thirdLogout as Wt } from "@das-fed/utils/create-api-service/thirdLogout";
10
+ import { hasUnauthorizedRecovery as we } from "@das-fed/utils/create-api-service/unauthorized-recovery";
11
+ function ct(e, t) {
12
12
  return function() {
13
13
  return e.apply(t, arguments);
14
14
  };
15
15
  }
16
- const { toString: Pr } = Object.prototype, { getPrototypeOf: Q } = Object, { iterator: xe, toStringTag: Un } = Symbol, G = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Nn = (e) => typeof e == "string" && (e === "__proto__" || e === "constructor" || e === "prototype"), Qe = (e, t, n) => e === Object.prototype || !n && t === null, Tr = (e) => {
17
- if (!Object.isExtensible(e))
18
- return !1;
19
- const t = Object.getOwnPropertyNames(e);
20
- return Object.getOwnPropertySymbols && t.push(...Object.getOwnPropertySymbols(e)), t.every((n) => {
21
- if (Nn(n))
22
- return !1;
23
- const r = Object.getOwnPropertyDescriptor(e, n);
24
- return !!r && r.configurable && r.writable === !0;
25
- });
26
- }, xt = (e, t) => {
27
- let n = e;
28
- const r = [];
29
- for (; n != null; ) {
30
- if (r.indexOf(n) !== -1)
31
- return !1;
32
- r.push(n);
33
- const o = Q(n);
34
- if (Qe(n, o, n === e))
35
- return !1;
36
- if (G(n, t))
37
- return !0;
38
- n = o;
39
- }
40
- return !1;
41
- }, xr = (e, t) => e != null && xt(e, t) ? e[t] : void 0, Cr = (e) => {
42
- if (e == null || typeof e != "object" && typeof e != "function")
43
- return e;
44
- const t = Q(e);
45
- if (t === null && Tr(e))
46
- return e;
47
- const n = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null), o = [];
48
- let s = e;
49
- for (; s != null && o.indexOf(s) === -1; ) {
50
- o.push(s);
51
- const i = s === e ? t : Q(s);
52
- if (Qe(s, i, s === e))
53
- break;
54
- const c = Object.getOwnPropertyNames(s);
55
- Object.getOwnPropertySymbols && c.push(...Object.getOwnPropertySymbols(s));
56
- for (const l of c)
57
- Nn(l) || G(r, l) || (n[l] = e[l], r[l] = !0);
58
- s = i;
59
- }
60
- return n;
61
- }, Ct = /* @__PURE__ */ ((e) => (t) => {
62
- const n = Pr.call(t);
16
+ const { toString: Kt } = Object.prototype, { getPrototypeOf: Pe } = Object, { iterator: ie, toStringTag: ut } = Symbol, ae = /* @__PURE__ */ ((e) => (t) => {
17
+ const n = Kt.call(t);
63
18
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
64
- })(/* @__PURE__ */ Object.create(null)), $ = (e) => (e = e.toLowerCase(), (t) => Ct(t) === e), Ge = (e) => (t) => typeof t === e, { isArray: ue } = Array, fe = Ge("undefined");
65
- function ge(e) {
66
- return e !== null && !fe(e) && e.constructor !== null && !fe(e.constructor) && v(e.constructor.isBuffer) && e.constructor.isBuffer(e);
19
+ })(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => ae(t) === e), ce = (e) => (t) => typeof t === e, { isArray: q } = Array, z = ce("undefined");
20
+ function J(e) {
21
+ return e !== null && !z(e) && e.constructor !== null && !z(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
67
22
  }
68
- const Ln = $("ArrayBuffer");
69
- function Dr(e) {
23
+ const lt = C("ArrayBuffer");
24
+ function Qt(e) {
70
25
  let t;
71
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ln(e.buffer), t;
26
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && lt(e.buffer), t;
72
27
  }
73
- const Ur = Ge("string"), v = Ge("function"), Nr = Ge("number"), we = (e) => e !== null && typeof e == "object", Lr = (e) => e === !0 || e === !1, He = (e) => {
74
- if (!we(e))
28
+ const Xt = ce("string"), A = ce("function"), ft = ce("number"), V = (e) => e !== null && typeof e == "object", Gt = (e) => e === !0 || e === !1, Y = (e) => {
29
+ if (ae(e) !== "object")
75
30
  return !1;
76
- const t = Q(e);
77
- return (t === null || t === Object.prototype || Q(t) === null) && // Treat own Symbol.toStringTag or Symbol.iterator members as evidence the
78
- // value is tagged/iterable, ignoring members reachable only through shared
79
- // or terminal prototype boundaries. This is exactly what
80
- // hasOwnInPrototypeChain(val, prop) computes here: every prototype admitted
81
- // above (null, Object.prototype, or a terminal null-prototype template) is
82
- // a boundary, so the walk never inspects anything but `val`'s own members,
83
- // and stops before even those when `val` is itself the boundary
84
- // Object.prototype. Checking that inline avoids allocating the walker's
85
- // `seen` list twice per call on the mergeConfig / merge hot path.
86
- (Qe(e, t, !0) || !G(e, Un) && !G(e, xe));
87
- }, kr = (e) => {
88
- if (!we(e) || ge(e))
31
+ const t = Pe(e);
32
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ut in e) && !(ie in e);
33
+ }, Yt = (e) => {
34
+ if (!V(e) || J(e))
89
35
  return !1;
90
36
  try {
91
37
  return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
92
38
  } catch {
93
39
  return !1;
94
40
  }
95
- }, Fr = $("Date"), jr = $("File"), Ir = (e) => !!(e && typeof e.uri < "u"), Br = (e) => e && typeof e.getParts < "u", vr = $("Blob"), Hr = $("FileList"), qr = $("Set"), Mr = (e) => we(e) && v(e.pipe);
96
- function zr() {
97
- return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
98
- }
99
- const Mt = zr(), zt = typeof Mt.FormData < "u" ? Mt.FormData : void 0, $r = (e) => {
100
- if (!e) return !1;
101
- if (zt && e instanceof zt) return !0;
102
- const t = Q(e);
103
- if (!t || t === Object.prototype || !v(e.append)) return !1;
104
- const n = Ct(e);
105
- return n === "formdata" || // detect form-data instance
106
- n === "object" && v(e.toString) && e.toString() === "[object FormData]";
107
- }, Wr = $("URLSearchParams"), [Vr, Jr, Kr, Xr] = [
108
- "ReadableStream",
109
- "Request",
110
- "Response",
111
- "Headers"
112
- ].map($), Qr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
113
- function Ce(e, t, { allOwnKeys: n = !1 } = {}) {
41
+ }, Zt = C("Date"), en = C("File"), tn = C("Blob"), nn = C("FileList"), rn = (e) => V(e) && A(e.pipe), on = (e) => {
42
+ let t;
43
+ return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = ae(e)) === "formdata" || // detect form-data instance
44
+ t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
45
+ }, sn = C("URLSearchParams"), [an, cn, un, ln] = ["ReadableStream", "Request", "Response", "Headers"].map(C), fn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
46
+ function W(e, t, { allOwnKeys: n = !1 } = {}) {
114
47
  if (e === null || typeof e > "u")
115
48
  return;
116
49
  let r, o;
117
- if (typeof e != "object" && (e = [e]), ue(e))
50
+ if (typeof e != "object" && (e = [e]), q(e))
118
51
  for (r = 0, o = e.length; r < o; r++)
119
52
  t.call(null, e[r], r, e);
120
53
  else {
121
- if (ge(e))
54
+ if (J(e))
122
55
  return;
123
56
  const s = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = s.length;
124
- let c;
57
+ let a;
125
58
  for (r = 0; r < i; r++)
126
- c = s[r], t.call(null, e[c], c, e);
59
+ a = s[r], t.call(null, e[a], a, e);
127
60
  }
128
61
  }
129
- function Gr(e, t) {
130
- if (ge(e))
62
+ function dt(e, t) {
63
+ if (J(e))
131
64
  return null;
132
65
  t = t.toLowerCase();
133
66
  const n = Object.keys(e);
@@ -137,125 +70,75 @@ function Gr(e, t) {
137
70
  return o;
138
71
  return null;
139
72
  }
140
- const ae = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, kn = (e) => !fe(e) && e !== ae;
141
- function gt(...e) {
142
- const { caseless: t, skipUndefined: n } = kn(this) && this || {}, r = {}, o = t ? /* @__PURE__ */ Object.create(null) : null, s = (i, c) => {
143
- if (c === "__proto__" || c === "constructor" || c === "prototype")
144
- return;
145
- let l = c;
146
- if (o && typeof c == "string") {
147
- const f = c.toLowerCase(), p = o[f];
148
- p !== void 0 && G(r, p) ? l = p : o[f] = c;
149
- }
150
- const u = G(r, l) ? r[l] : void 0;
151
- He(u) && He(i) ? r[l] = gt(u, i) : He(i) ? r[l] = gt({}, i) : ue(i) ? r[l] = i.slice() : (!n || !fe(i)) && (r[l] = i);
73
+ const D = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, pt = (e) => !z(e) && e !== D;
74
+ function ge() {
75
+ const { caseless: e } = pt(this) && this || {}, t = {}, n = (r, o) => {
76
+ const s = e && dt(t, o) || o;
77
+ Y(t[s]) && Y(r) ? t[s] = ge(t[s], r) : Y(r) ? t[s] = ge({}, r) : q(r) ? t[s] = r.slice() : t[s] = r;
152
78
  };
153
- for (let i = 0, c = e.length; i < c; i++) {
154
- const l = e[i];
155
- if (!l || ge(l) || (Ce(l, s), typeof l != "object" || ue(l) || !Object.getOwnPropertySymbols))
156
- continue;
157
- const u = Object.getOwnPropertySymbols(l);
158
- for (let f = 0; f < u.length; f++) {
159
- const p = u[f];
160
- lo.call(l, p) && s(l[p], p);
161
- }
162
- }
163
- return r;
79
+ for (let r = 0, o = arguments.length; r < o; r++)
80
+ arguments[r] && W(arguments[r], n);
81
+ return t;
164
82
  }
165
- const Zr = (e, t, n, { allOwnKeys: r } = {}) => (Ce(
166
- t,
167
- (o, s) => {
168
- n && v(o) ? Object.defineProperty(e, s, {
169
- // Null-proto descriptor so a polluted Object.prototype.get cannot
170
- // hijack defineProperty's accessor-vs-data resolution.
171
- __proto__: null,
172
- value: Dn(o, n),
173
- writable: !0,
174
- enumerable: !0,
175
- configurable: !0
176
- }) : Object.defineProperty(e, s, {
177
- __proto__: null,
178
- value: o,
179
- writable: !0,
180
- enumerable: !0,
181
- configurable: !0
182
- });
183
- },
184
- { allOwnKeys: r }
185
- ), e), Yr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), eo = (e, t, n, r) => {
186
- e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
187
- __proto__: null,
188
- value: e,
189
- writable: !0,
190
- enumerable: !1,
191
- configurable: !0
192
- }), Object.defineProperty(e, "super", {
193
- __proto__: null,
83
+ const dn = (e, t, n, { allOwnKeys: r } = {}) => (W(t, (o, s) => {
84
+ n && A(o) ? e[s] = ct(o, n) : e[s] = o;
85
+ }, { allOwnKeys: r }), e), pn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), hn = (e, t, n, r) => {
86
+ e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
194
87
  value: t.prototype
195
88
  }), n && Object.assign(e.prototype, n);
196
- }, to = (e, t, n, r) => {
89
+ }, mn = (e, t, n, r) => {
197
90
  let o, s, i;
198
- const c = {};
91
+ const a = {};
199
92
  if (t = t || {}, e == null) return t;
200
93
  do {
201
94
  for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
202
- i = o[s], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
203
- e = n !== !1 && Q(e);
95
+ i = o[s], (!r || r(i, e, t)) && !a[i] && (t[i] = e[i], a[i] = !0);
96
+ e = n !== !1 && Pe(e);
204
97
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
205
98
  return t;
206
- }, no = (e, t, n) => {
99
+ }, yn = (e, t, n) => {
207
100
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
208
101
  const r = e.indexOf(t, n);
209
102
  return r !== -1 && r === n;
210
- }, ro = (e) => {
103
+ }, wn = (e) => {
211
104
  if (!e) return null;
212
- if (ue(e)) return e;
105
+ if (q(e)) return e;
213
106
  let t = e.length;
214
- if (!Number.isSafeInteger(t) || t < 0 || t > 4294967295) return null;
215
- const n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
216
- let o = e;
217
- for (; o != null && n.size < t; ) {
218
- if (r.has(o)) return null;
219
- r.add(o);
220
- const i = Q(o);
221
- if (Qe(o, i, o === e)) break;
222
- Object.getOwnPropertyNames(o).forEach((c) => {
223
- const l = +c;
224
- Number.isInteger(l) && l >= 0 && l < t && String(l) === c && G(o, c) && n.add(l);
225
- }), o = i;
226
- }
227
- if (n.size !== t) return null;
228
- const s = new Array(t);
107
+ if (!ft(t)) return null;
108
+ const n = new Array(t);
229
109
  for (; t-- > 0; )
230
- s[t] = e[t];
231
- return s;
232
- }, oo = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Q(Uint8Array)), so = (e, t) => {
233
- const r = (e && e[xe]).call(e);
110
+ n[t] = e[t];
111
+ return n;
112
+ }, gn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Pe(Uint8Array)), bn = (e, t) => {
113
+ const r = (e && e[ie]).call(e);
234
114
  let o;
235
115
  for (; (o = r.next()) && !o.done; ) {
236
116
  const s = o.value;
237
117
  t.call(e, s[0], s[1]);
238
118
  }
239
- }, io = (e, t) => {
119
+ }, En = (e, t) => {
240
120
  let n;
241
121
  const r = [];
242
122
  for (; (n = e.exec(t)) !== null; )
243
123
  r.push(n);
244
124
  return r;
245
- }, ao = $("HTMLFormElement"), co = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, o) {
246
- return r.toUpperCase() + o;
247
- }), { propertyIsEnumerable: lo } = Object.prototype, uo = $("RegExp"), Fn = (e, t) => {
125
+ }, Rn = C("HTMLFormElement"), Sn = (e) => e.toLowerCase().replace(
126
+ /[-_\s]([a-z\d])(\w*)/g,
127
+ function(n, r, o) {
128
+ return r.toUpperCase() + o;
129
+ }
130
+ ), De = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Tn = C("RegExp"), ht = (e, t) => {
248
131
  const n = Object.getOwnPropertyDescriptors(e), r = {};
249
- Ce(n, (o, s) => {
132
+ W(n, (o, s) => {
250
133
  let i;
251
134
  (i = t(o, s, e)) !== !1 && (r[s] = i || o);
252
135
  }), Object.defineProperties(e, r);
253
- }, fo = (e) => {
254
- Fn(e, (t, n) => {
255
- if (v(e) && ["arguments", "caller", "callee"].includes(n))
136
+ }, On = (e) => {
137
+ ht(e, (t, n) => {
138
+ if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
256
139
  return !1;
257
140
  const r = e[n];
258
- if (v(r)) {
141
+ if (A(r)) {
259
142
  if (t.enumerable = !1, "writable" in t) {
260
143
  t.writable = !1;
261
144
  return;
@@ -265,523 +148,109 @@ const Zr = (e, t, n, { allOwnKeys: r } = {}) => (Ce(
265
148
  });
266
149
  }
267
150
  });
268
- }, po = (e, t) => {
151
+ }, An = (e, t) => {
269
152
  const n = {}, r = (o) => {
270
153
  o.forEach((s) => {
271
154
  n[s] = !0;
272
155
  });
273
156
  };
274
- return ue(e) ? r(e) : r(String(e).split(t)), n;
275
- }, ho = () => {
276
- }, mo = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
277
- function go(e) {
278
- return !!(e && v(e.append) && e[Un] === "FormData" && e[xe]);
279
- }
280
- const wo = (e) => {
281
- const t = /* @__PURE__ */ new WeakSet(), n = (r) => {
282
- if (we(r)) {
283
- if (t.has(r))
157
+ return q(e) ? r(e) : r(String(e).split(t)), n;
158
+ }, _n = () => {
159
+ }, Cn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
160
+ function xn(e) {
161
+ return !!(e && A(e.append) && e[ut] === "FormData" && e[ie]);
162
+ }
163
+ const kn = (e) => {
164
+ const t = new Array(10), n = (r, o) => {
165
+ if (V(r)) {
166
+ if (t.indexOf(r) >= 0)
284
167
  return;
285
- if (ge(r))
168
+ if (J(r))
286
169
  return r;
287
170
  if (!("toJSON" in r)) {
288
- t.add(r);
289
- let o;
290
- if (qr(r)) {
291
- o = [];
292
- for (const s of r) {
293
- const i = n(s);
294
- !fe(i) && o.push(i);
295
- }
296
- } else
297
- o = ue(r) ? [] : {}, Ce(r, (s, i) => {
298
- const c = n(s);
299
- !fe(c) && (o[i] = c);
300
- });
301
- return t.delete(r), o;
171
+ t[o] = r;
172
+ const s = q(r) ? [] : {};
173
+ return W(r, (i, a) => {
174
+ const f = n(i, o + 1);
175
+ !z(f) && (s[a] = f);
176
+ }), t[o] = void 0, s;
302
177
  }
303
178
  }
304
179
  return r;
305
180
  };
306
- return n(e);
307
- }, yo = $("AsyncFunction"), bo = (e) => e && (we(e) || v(e)) && v(e.then) && v(e.catch), jn = ((e, t) => e ? setImmediate : t ? ((n, r) => (ae.addEventListener(
308
- "message",
309
- ({ source: o, data: s }) => {
310
- o === ae && s === n && r.length && r.shift()();
311
- },
312
- !1
313
- ), (o) => {
314
- r.push(o), ae.postMessage(n, "*");
315
- }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", v(ae.postMessage)), Oo = typeof queueMicrotask < "u" ? queueMicrotask.bind(ae) : typeof process < "u" && process.nextTick || jn, In = (e) => e != null && v(e[xe]), Eo = (e) => e != null && xt(e, xe) && In(e), a = {
316
- isArray: ue,
317
- isArrayBuffer: Ln,
318
- isBuffer: ge,
319
- isFormData: $r,
320
- isArrayBufferView: Dr,
321
- isString: Ur,
322
- isNumber: Nr,
323
- isBoolean: Lr,
324
- isObject: we,
325
- isPlainObject: He,
326
- isEmptyObject: kr,
327
- isReadableStream: Vr,
328
- isRequest: Jr,
329
- isResponse: Kr,
330
- isHeaders: Xr,
331
- isUndefined: fe,
332
- isDate: Fr,
333
- isFile: jr,
334
- isReactNativeBlob: Ir,
335
- isReactNative: Br,
336
- isBlob: vr,
337
- isRegExp: uo,
338
- isFunction: v,
339
- isStream: Mr,
340
- isURLSearchParams: Wr,
341
- isTypedArray: oo,
342
- isFileList: Hr,
343
- forEach: Ce,
344
- merge: gt,
345
- extend: Zr,
346
- trim: Qr,
347
- stripBOM: Yr,
348
- inherits: eo,
349
- toFlatObject: to,
350
- kindOf: Ct,
351
- kindOfTest: $,
352
- endsWith: no,
353
- toArray: ro,
354
- forEachEntry: so,
355
- matchAll: io,
356
- isHTMLForm: ao,
357
- hasOwnProperty: G,
358
- hasOwnProp: G,
181
+ return n(e, 0);
182
+ }, Pn = C("AsyncFunction"), Un = (e) => e && (V(e) || A(e)) && A(e.then) && A(e.catch), mt = ((e, t) => e ? setImmediate : t ? ((n, r) => (D.addEventListener("message", ({ source: o, data: s }) => {
183
+ o === D && s === n && r.length && r.shift()();
184
+ }, !1), (o) => {
185
+ r.push(o), D.postMessage(n, "*");
186
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
187
+ typeof setImmediate == "function",
188
+ A(D.postMessage)
189
+ ), Ln = typeof queueMicrotask < "u" ? queueMicrotask.bind(D) : typeof process < "u" && process.nextTick || mt, Nn = (e) => e != null && A(e[ie]), c = {
190
+ isArray: q,
191
+ isArrayBuffer: lt,
192
+ isBuffer: J,
193
+ isFormData: on,
194
+ isArrayBufferView: Qt,
195
+ isString: Xt,
196
+ isNumber: ft,
197
+ isBoolean: Gt,
198
+ isObject: V,
199
+ isPlainObject: Y,
200
+ isEmptyObject: Yt,
201
+ isReadableStream: an,
202
+ isRequest: cn,
203
+ isResponse: un,
204
+ isHeaders: ln,
205
+ isUndefined: z,
206
+ isDate: Zt,
207
+ isFile: en,
208
+ isBlob: tn,
209
+ isRegExp: Tn,
210
+ isFunction: A,
211
+ isStream: rn,
212
+ isURLSearchParams: sn,
213
+ isTypedArray: gn,
214
+ isFileList: nn,
215
+ forEach: W,
216
+ merge: ge,
217
+ extend: dn,
218
+ trim: fn,
219
+ stripBOM: pn,
220
+ inherits: hn,
221
+ toFlatObject: mn,
222
+ kindOf: ae,
223
+ kindOfTest: C,
224
+ endsWith: yn,
225
+ toArray: wn,
226
+ forEachEntry: bn,
227
+ matchAll: En,
228
+ isHTMLForm: Rn,
229
+ hasOwnProperty: De,
230
+ hasOwnProp: De,
359
231
  // an alias to avoid ESLint no-prototype-builtins detection
360
- hasOwnInPrototypeChain: xt,
361
- getSafeProp: xr,
362
- toSafeFlatObject: Cr,
363
- reduceDescriptors: Fn,
364
- freezeMethods: fo,
365
- toObjectSet: po,
366
- toCamelCase: co,
367
- noop: ho,
368
- toFiniteNumber: mo,
369
- findKey: Gr,
370
- global: ae,
371
- isContextDefined: kn,
372
- isSpecCompliantForm: go,
373
- toJSONObject: wo,
374
- isAsyncFn: yo,
375
- isThenable: bo,
376
- setImmediate: jn,
377
- asap: Oo,
378
- isIterable: In,
379
- isSafeIterable: Eo
380
- }, So = a.toObjectSet([
381
- "age",
382
- "authorization",
383
- "content-length",
384
- "content-type",
385
- "etag",
386
- "expires",
387
- "from",
388
- "host",
389
- "if-modified-since",
390
- "if-unmodified-since",
391
- "last-modified",
392
- "location",
393
- "max-forwards",
394
- "proxy-authorization",
395
- "referer",
396
- "retry-after",
397
- "user-agent"
398
- ]), Ro = (e) => {
399
- const t = /* @__PURE__ */ Object.create(null);
400
- let n, r, o;
401
- return e && e.split(`
402
- `).forEach(function(i) {
403
- o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim();
404
- const c = a.hasOwnProp(t, n);
405
- !n || c && a.hasOwnProp(So, n) || (n === "set-cookie" ? c ? t[n].push(r) : t[n] = [r] : t[n] = c ? t[n] + ", " + r : r);
406
- }), t;
232
+ reduceDescriptors: ht,
233
+ freezeMethods: On,
234
+ toObjectSet: An,
235
+ toCamelCase: Sn,
236
+ noop: _n,
237
+ toFiniteNumber: Cn,
238
+ findKey: dt,
239
+ global: D,
240
+ isContextDefined: pt,
241
+ isSpecCompliantForm: xn,
242
+ toJSONObject: kn,
243
+ isAsyncFn: Pn,
244
+ isThenable: Un,
245
+ setImmediate: mt,
246
+ asap: Ln,
247
+ isIterable: Nn
407
248
  };
408
- function _o(e) {
409
- let t = 0, n = e.length;
410
- for (; t < n; ) {
411
- const r = e.charCodeAt(t);
412
- if (r !== 9 && r !== 32)
413
- break;
414
- t += 1;
415
- }
416
- for (; n > t; ) {
417
- const r = e.charCodeAt(n - 1);
418
- if (r !== 9 && r !== 32)
419
- break;
420
- n -= 1;
421
- }
422
- return t === 0 && n === e.length ? e : e.slice(t, n);
423
- }
424
- const Ao = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g"), Po = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
425
- function Dt(e, t) {
426
- return a.isArray(e) ? e.map((n) => Dt(n, t)) : _o(String(e).replace(t, ""));
427
- }
428
- const To = (e) => Dt(e, Ao), xo = (e) => Dt(e, Po);
429
- function Bn(e) {
430
- const t = /* @__PURE__ */ Object.create(null);
431
- return a.forEach(e.toJSON(), (n, r) => {
432
- t[r] = xo(n);
433
- }), t;
434
- }
435
- const $t = Symbol("internals");
436
- function Re(e) {
437
- return e && String(e).trim().toLowerCase();
438
- }
439
- function qe(e) {
440
- return e === !1 || e == null ? e : a.isArray(e) ? e.map(qe) : To(String(e));
249
+ function w(e, t, n, r, o) {
250
+ 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);
441
251
  }
442
- function Co(e) {
443
- const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
444
- let r;
445
- for (; r = n.exec(e); )
446
- t[r[1]] = r[2];
447
- return t;
448
- }
449
- const Do = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
450
- function ot(e) {
451
- let t = 0, n = e.length;
452
- for (; t < n; ) {
453
- const r = e.charCodeAt(t);
454
- if (r !== 9 && r !== 32)
455
- break;
456
- t += 1;
457
- }
458
- for (; n > t; ) {
459
- const r = e.charCodeAt(n - 1);
460
- if (r !== 9 && r !== 32)
461
- break;
462
- n -= 1;
463
- }
464
- return t === 0 && n === e.length ? e : e.slice(t, n);
465
- }
466
- function Uo(e) {
467
- const t = e.length - 1;
468
- if (t < 1 || e.charCodeAt(0) !== 34 || e.charCodeAt(t) !== 34)
469
- return e;
470
- let n = "";
471
- for (let r = 1; r < t; r++) {
472
- const o = e.charCodeAt(r);
473
- if (o === 34 || o === 92 && (r += 1, r >= t))
474
- return e;
475
- n += e[r];
476
- }
477
- return n;
478
- }
479
- function No(e) {
480
- const t = /* @__PURE__ */ Object.create(null), n = String(e);
481
- let r = 0, o = !1, s = !1;
482
- function i(c) {
483
- const l = ot(n.slice(r, c)), u = l.indexOf("=");
484
- if (u < 1)
485
- return;
486
- const f = ot(l.slice(0, u));
487
- if (!Do.test(f))
488
- return;
489
- const p = f.toLowerCase();
490
- if (p === "__proto__" || p === "constructor" || p === "prototype")
491
- return;
492
- const g = ot(l.slice(u + 1));
493
- t[p] = Uo(g);
494
- }
495
- for (let c = 0; c < n.length; c++) {
496
- const l = n.charCodeAt(c);
497
- o ? s ? s = !1 : l === 92 ? s = !0 : l === 34 && (o = !1) : l === 34 ? o = !0 : (l === 44 || l === 59) && (i(c), r = c + 1);
498
- }
499
- return i(n.length), t;
500
- }
501
- const Lo = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()), ko = "__Proto__", Wt = (e) => e === "__proto__" ? ko : e;
502
- function st(e, t, n, r, o) {
503
- if (a.isFunction(r))
504
- return r.call(e, t, n);
505
- if (o && (t = n), !!a.isString(t)) {
506
- if (a.isString(r))
507
- return t.indexOf(r) !== -1;
508
- if (a.isRegExp(r))
509
- return r.test(t);
510
- }
511
- }
512
- function Fo(e) {
513
- return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
514
- }
515
- function jo(e, t) {
516
- const n = a.toCamelCase(" " + t);
517
- ["get", "set", "has"].forEach((r) => {
518
- Object.defineProperty(e, r + n, {
519
- // Null-proto descriptor so a polluted Object.prototype.get cannot turn
520
- // this data descriptor into an accessor descriptor on the way in.
521
- __proto__: null,
522
- value: function(o, s, i) {
523
- return this[r].call(this, t, o, s, i);
524
- },
525
- configurable: !0
526
- });
527
- });
528
- }
529
- let k = class {
530
- constructor(t) {
531
- t && this.set(t);
532
- }
533
- set(t, n, r) {
534
- const o = this;
535
- function s(c, l, u) {
536
- const f = Re(l);
537
- if (!f)
538
- return;
539
- const p = a.findKey(o, f);
540
- (!p || o[p] === void 0 || u === !0 || u === void 0 && o[p] !== !1) && (o[Wt(p || l)] = qe(c));
541
- }
542
- const i = (c, l) => a.forEach(c, (u, f) => s(u, f, l));
543
- if (a.isPlainObject(t) || t instanceof this.constructor)
544
- i(t, n);
545
- else if (a.isString(t) && (t = t.trim()) && !Lo(t))
546
- i(Ro(t), n);
547
- else if (a.isObject(t) && a.isSafeIterable(t)) {
548
- let c = /* @__PURE__ */ Object.create(null), l, u;
549
- for (const f of t) {
550
- if (!a.isArray(f))
551
- throw new TypeError("Object iterator must return a key-value pair");
552
- u = f[0], a.hasOwnProp(c, u) ? (l = c[u], c[u] = a.isArray(l) ? [...l, f[1]] : [l, f[1]]) : c[u] = f[1];
553
- }
554
- i(c, n);
555
- } else
556
- t != null && s(n, t, r);
557
- return this;
558
- }
559
- get(t, n) {
560
- if (t = Re(t), t) {
561
- const r = a.findKey(this, t);
562
- if (r) {
563
- const o = this[r];
564
- if (!n)
565
- return o;
566
- if (n === !0)
567
- return Co(o);
568
- if (a.isFunction(n))
569
- return n.call(this, o, r);
570
- if (a.isRegExp(n))
571
- return n.exec(o);
572
- throw new TypeError("parser must be boolean|regexp|function");
573
- }
574
- }
575
- }
576
- has(t, n) {
577
- if (t = Re(t), t) {
578
- const r = a.findKey(this, t);
579
- return !!(r && this[r] !== void 0 && (!n || st(this, this[r], r, n)));
580
- }
581
- return !1;
582
- }
583
- delete(t, n) {
584
- const r = this;
585
- let o = !1;
586
- function s(i) {
587
- if (i = Re(i), i) {
588
- const c = a.findKey(r, i);
589
- c && (!n || st(r, r[c], c, n)) && (delete r[c], o = !0);
590
- }
591
- }
592
- return a.isArray(t) ? t.forEach(s) : s(t), o;
593
- }
594
- clear(t) {
595
- const n = Object.keys(this);
596
- let r = n.length, o = !1;
597
- for (; r--; ) {
598
- const s = n[r];
599
- (!t || st(this, this[s], s, t, !0)) && (delete this[s], o = !0);
600
- }
601
- return o;
602
- }
603
- normalize(t) {
604
- const n = this, r = /* @__PURE__ */ Object.create(null);
605
- return a.forEach(this, (o, s) => {
606
- const i = a.findKey(r, s);
607
- if (i) {
608
- n[i] = qe(o), delete n[s];
609
- return;
610
- }
611
- const c = Wt(t ? Fo(s) : String(s).trim());
612
- c !== s && delete n[s], n[c] = qe(o), r[c] = !0;
613
- }), this;
614
- }
615
- concat(...t) {
616
- return this.constructor.concat(this, ...t);
617
- }
618
- toJSON(t) {
619
- const n = /* @__PURE__ */ Object.create(null);
620
- return a.forEach(this, (r, o) => {
621
- r != null && r !== !1 && (n[o] = t && a.isArray(r) ? r.join(", ") : r);
622
- }), n;
623
- }
624
- [Symbol.iterator]() {
625
- return Object.entries(this.toJSON())[Symbol.iterator]();
626
- }
627
- toString() {
628
- return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
629
- `);
630
- }
631
- getSetCookie() {
632
- const t = this.get("set-cookie");
633
- return a.isArray(t) ? t : t == null || t === !1 ? [] : [t];
634
- }
635
- get [Symbol.toStringTag]() {
636
- return "AxiosHeaders";
637
- }
638
- static from(t) {
639
- return t instanceof this ? t : new this(t);
640
- }
641
- static parseParameters(t) {
642
- return No(t);
643
- }
644
- static concat(t, ...n) {
645
- const r = new this(t);
646
- return n.forEach((o) => r.set(o)), r;
647
- }
648
- static accessor(t) {
649
- const r = (this[$t] = this[$t] = {
650
- accessors: {}
651
- }).accessors, o = this.prototype;
652
- function s(i) {
653
- const c = Re(i);
654
- r[c] || (jo(o, i), r[c] = !0);
655
- }
656
- return a.isArray(t) ? t.forEach(s) : s(t), this;
657
- }
658
- };
659
- k.accessor([
660
- "Content-Type",
661
- "Content-Length",
662
- "Accept",
663
- "Accept-Encoding",
664
- "User-Agent",
665
- "Authorization"
666
- ]);
667
- a.reduceDescriptors(k.prototype, ({ value: e }, t) => {
668
- let n = t[0].toUpperCase() + t.slice(1);
669
- return {
670
- get: () => e,
671
- set(r) {
672
- this[n] = r;
673
- }
674
- };
675
- });
676
- a.freezeMethods(k);
677
- const Je = "[REDACTED ****]";
678
- function Io(e) {
679
- if (a.hasOwnProp(e, "toJSON"))
680
- return !0;
681
- let t = Object.getPrototypeOf(e);
682
- for (; t && t !== Object.prototype; ) {
683
- if (a.hasOwnProp(t, "toJSON"))
684
- return !0;
685
- t = Object.getPrototypeOf(t);
686
- }
687
- return !1;
688
- }
689
- function Bo(e, t) {
690
- const n = new Set(t.map((s) => String(s).toLowerCase())), r = [], o = (s) => {
691
- if (s === null || typeof s != "object" || a.isBuffer(s)) return s;
692
- if (r.indexOf(s) !== -1) return;
693
- s instanceof k && (s = s.toJSON()), r.push(s);
694
- let i;
695
- if (a.isArray(s))
696
- i = [], s.forEach((c, l) => {
697
- const u = o(c);
698
- a.isUndefined(u) || (i[l] = u);
699
- });
700
- else {
701
- if (!a.isPlainObject(s) && Io(s))
702
- return r.pop(), s;
703
- i = /* @__PURE__ */ Object.create(null);
704
- for (const [c, l] of Object.entries(s)) {
705
- const u = n.has(c.toLowerCase()) ? Je : o(l);
706
- a.isUndefined(u) || (i[c] = u);
707
- }
708
- }
709
- return r.pop(), i;
710
- };
711
- return o(e);
712
- }
713
- function Vt(e) {
714
- try {
715
- return String(e);
716
- } catch {
717
- return "";
718
- }
719
- }
720
- function vo(e) {
721
- return e.errors.map((n) => {
722
- try {
723
- return n && n.message ? Vt(n.message) : Vt(n);
724
- } catch {
725
- return "";
726
- }
727
- }).filter(Boolean).join("; ") || e.name || "AggregateError";
728
- }
729
- const Ho = `
730
- Caused by: `, wt = Symbol("causeStack");
731
- function qo(e, t) {
732
- const n = a.hasOwnProp(e, wt) && e[wt];
733
- return n && t.endsWith(n) ? t.length - n.length : -1;
734
- }
735
- function Mo(e, t) {
736
- try {
737
- const n = t && t.stack;
738
- if (typeof n != "string" || !n)
739
- return;
740
- const r = e.stack;
741
- if (typeof r != "string" || !r)
742
- return;
743
- const o = Ho + n;
744
- e.stack = r + o, Object.defineProperty(e, wt, { __proto__: null, value: o });
745
- } catch {
746
- }
747
- }
748
- let h = class vn extends Error {
749
- static from(t, n, r, o, s, i) {
750
- let c = t.message;
751
- !c && a.isArray(t.errors) && t.errors.length && (c = vo(t));
752
- const l = new vn(c, n || t.code, r, o, s);
753
- return Object.defineProperty(l, "cause", {
754
- __proto__: null,
755
- value: t,
756
- writable: !0,
757
- enumerable: !1,
758
- configurable: !0
759
- }), l.name = t.name, Mo(l, t), t.status != null && l.status == null && (l.status = t.status), i && Object.assign(l, i), l;
760
- }
761
- /**
762
- * Create an Error with the specified message, config, error code, request and response.
763
- *
764
- * @param {string} message The error message.
765
- * @param {string} [code] The error code (for example, 'ECONNABORTED').
766
- * @param {Object} [config] The config.
767
- * @param {Object} [request] The request.
768
- * @param {Object} [response] The response.
769
- *
770
- * @returns {Error} The created error.
771
- */
772
- constructor(t, n, r, o, s) {
773
- super(t), Object.defineProperty(this, "message", {
774
- // Null-proto descriptor so a polluted Object.prototype.get cannot turn
775
- // this data descriptor into an accessor descriptor on the way in.
776
- __proto__: null,
777
- value: t,
778
- enumerable: !0,
779
- writable: !0,
780
- configurable: !0
781
- }), this.name = "AxiosError", this.isAxiosError = !0, n && (this.code = n), r && (this.config = r), o && (this.request = o), s && (this.response = s, this.status = s.status);
782
- }
783
- toJSON() {
784
- const t = this.config, n = t && a.hasOwnProp(t, "redact") ? t.redact : void 0, r = a.isArray(n) && n.length > 0 ? Bo(t, n) : a.toJSONObject(t);
252
+ c.inherits(w, Error, {
253
+ toJSON: function() {
785
254
  return {
786
255
  // Standard
787
256
  message: this.message,
@@ -795,237 +264,195 @@ let h = class vn extends Error {
795
264
  columnNumber: this.columnNumber,
796
265
  stack: this.stack,
797
266
  // Axios
798
- config: r,
267
+ config: c.toJSONObject(this.config),
799
268
  code: this.code,
800
269
  status: this.status
801
270
  };
802
271
  }
272
+ });
273
+ const yt = w.prototype, wt = {};
274
+ [
275
+ "ERR_BAD_OPTION_VALUE",
276
+ "ERR_BAD_OPTION",
277
+ "ECONNABORTED",
278
+ "ETIMEDOUT",
279
+ "ERR_NETWORK",
280
+ "ERR_FR_TOO_MANY_REDIRECTS",
281
+ "ERR_DEPRECATED",
282
+ "ERR_BAD_RESPONSE",
283
+ "ERR_BAD_REQUEST",
284
+ "ERR_CANCELED",
285
+ "ERR_NOT_SUPPORT",
286
+ "ERR_INVALID_URL"
287
+ // eslint-disable-next-line func-names
288
+ ].forEach((e) => {
289
+ wt[e] = { value: e };
290
+ });
291
+ Object.defineProperties(w, wt);
292
+ Object.defineProperty(yt, "isAxiosError", { value: !0 });
293
+ w.from = (e, t, n, r, o, s) => {
294
+ const i = Object.create(yt);
295
+ return c.toFlatObject(e, i, function(f) {
296
+ return f !== Error.prototype;
297
+ }, (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;
803
298
  };
804
- h.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
805
- h.ERR_BAD_OPTION = "ERR_BAD_OPTION";
806
- h.ECONNABORTED = "ECONNABORTED";
807
- h.ETIMEDOUT = "ETIMEDOUT";
808
- h.ECONNREFUSED = "ECONNREFUSED";
809
- h.ERR_NETWORK = "ERR_NETWORK";
810
- h.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
811
- h.ERR_DEPRECATED = "ERR_DEPRECATED";
812
- h.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
813
- h.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
814
- h.ERR_CANCELED = "ERR_CANCELED";
815
- h.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
816
- h.ERR_INVALID_URL = "ERR_INVALID_URL";
817
- h.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
818
- const zo = null, Hn = 100;
819
- function yt(e) {
820
- return a.isPlainObject(e) || a.isArray(e);
299
+ const Fn = null;
300
+ function be(e) {
301
+ return c.isPlainObject(e) || c.isArray(e);
821
302
  }
822
- function qn(e) {
823
- return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
303
+ function gt(e) {
304
+ return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
824
305
  }
825
- function it(e, t, n) {
306
+ function ve(e, t, n) {
826
307
  return e ? e.concat(t).map(function(o, s) {
827
- return o = qn(o), !n && s ? "[" + o + "]" : o;
308
+ return o = gt(o), !n && s ? "[" + o + "]" : o;
828
309
  }).join(n ? "." : "") : t;
829
310
  }
830
- function $o(e) {
831
- return a.isArray(e) && !e.some(yt);
311
+ function Dn(e) {
312
+ return c.isArray(e) && !e.some(be);
832
313
  }
833
- const Wo = a.toFlatObject(a, {}, null, function(t) {
314
+ const vn = c.toFlatObject(c, {}, null, function(t) {
834
315
  return /^is[A-Z]/.test(t);
835
316
  });
836
- function Ze(e, t, n) {
837
- if (!a.isObject(e))
317
+ function ue(e, t, n) {
318
+ if (!c.isObject(e))
838
319
  throw new TypeError("target must be an object");
839
- t = t || new FormData();
840
- const r = (y, m) => {
841
- const d = a.getSafeProp(n, y);
842
- return a.isUndefined(d) ? m : d;
843
- }, o = r("metaTokens", !0), s = r("visitor") || S, i = r("dots", !1), c = r("indexes", !1), l = r("Blob") || typeof Blob < "u" && Blob, u = r("maxDepth", Hn), f = l && a.isSpecCompliantForm(t), p = [];
844
- if (!a.isFunction(s))
320
+ t = t || new FormData(), n = c.toFlatObject(n, {
321
+ metaTokens: !0,
322
+ dots: !1,
323
+ indexes: !1
324
+ }, !1, function(y, h) {
325
+ return !c.isUndefined(h[y]);
326
+ });
327
+ const r = n.metaTokens, o = n.visitor || u, s = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(t);
328
+ if (!c.isFunction(o))
845
329
  throw new TypeError("visitor must be a function");
846
- function g(y) {
847
- if (y === null) return "";
848
- if (a.isDate(y))
849
- return y.toISOString();
850
- if (a.isBoolean(y))
851
- return y.toString();
852
- if (!f && a.isBlob(y))
853
- throw new h("Blob is not supported. Use a Buffer instead.");
854
- if (a.isArrayBuffer(y) || a.isTypedArray(y)) {
855
- if (f && typeof l == "function")
856
- return new l([y]);
857
- throw new h(
858
- "Blob is not supported. Use a Buffer instead.",
859
- h.ERR_NOT_SUPPORT
860
- );
861
- }
862
- return y;
863
- }
864
- function w(y) {
865
- if (y > u)
866
- throw new h(
867
- "Object is too deeply nested (" + y + " levels). Max depth: " + u,
868
- h.ERR_FORM_DATA_DEPTH_EXCEEDED
869
- );
870
- }
871
- function O(y, m) {
872
- if (u === 1 / 0)
873
- return JSON.stringify(y);
874
- const d = [];
875
- return JSON.stringify(y, function(R, L) {
876
- if (!a.isObject(L))
877
- return L;
878
- for (; d.length && d[d.length - 1] !== this; )
879
- d.pop();
880
- return d.push(L), w(m + d.length - 1), L;
881
- });
882
- }
883
- function S(y, m, d) {
884
- let x = y;
885
- if (a.isReactNative(t) && a.isReactNativeBlob(y))
886
- return t.append(it(d, m, i), g(y)), !1;
887
- if (y && !d && typeof y == "object") {
888
- if (a.endsWith(m, "{}"))
889
- m = o ? m : m.slice(0, -2), y = O(y, 1);
890
- else if (a.isArray(y) && $o(y) || (a.isFileList(y) || a.endsWith(m, "[]")) && (x = a.toArray(y)))
891
- return m = qn(m), x.forEach(function(L, _) {
892
- !(a.isUndefined(L) || L === null) && t.append(
330
+ function l(p) {
331
+ if (p === null) return "";
332
+ if (c.isDate(p))
333
+ return p.toISOString();
334
+ if (c.isBoolean(p))
335
+ return p.toString();
336
+ if (!f && c.isBlob(p))
337
+ throw new w("Blob is not supported. Use a Buffer instead.");
338
+ return c.isArrayBuffer(p) || c.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
339
+ }
340
+ function u(p, y, h) {
341
+ let E = p;
342
+ if (p && !h && typeof p == "object") {
343
+ if (c.endsWith(y, "{}"))
344
+ y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
345
+ else if (c.isArray(p) && Dn(p) || (c.isFileList(p) || c.endsWith(y, "[]")) && (E = c.toArray(p)))
346
+ return y = gt(y), E.forEach(function(S, k) {
347
+ !(c.isUndefined(S) || S === null) && t.append(
893
348
  // eslint-disable-next-line no-nested-ternary
894
- c === !0 ? it([m], _, i) : c === null ? m : m + "[]",
895
- g(L)
349
+ i === !0 ? ve([y], k, s) : i === null ? y : y + "[]",
350
+ l(S)
896
351
  );
897
352
  }), !1;
898
353
  }
899
- return yt(y) ? !0 : (t.append(it(d, m, i), g(y)), !1);
354
+ return be(p) ? !0 : (t.append(ve(h, y, s), l(p)), !1);
900
355
  }
901
- const E = Object.assign(Wo, {
902
- defaultVisitor: S,
903
- convertValue: g,
904
- isVisitable: yt
356
+ const d = [], m = Object.assign(vn, {
357
+ defaultVisitor: u,
358
+ convertValue: l,
359
+ isVisitable: be
905
360
  });
906
- function P(y, m, d = 0) {
907
- if (!a.isUndefined(y)) {
908
- if (w(d), p.indexOf(y) !== -1)
909
- throw new Error("Circular reference detected in " + m.join("."));
910
- p.push(y), a.forEach(y, function(R, L) {
911
- (!(a.isUndefined(R) || R === null) && s.call(t, R, a.isString(L) ? L.trim() : L, m, E)) === !0 && P(R, m ? m.concat(L) : [L], d + 1);
912
- }), p.pop();
361
+ function g(p, y) {
362
+ if (!c.isUndefined(p)) {
363
+ if (d.indexOf(p) !== -1)
364
+ throw Error("Circular reference detected in " + y.join("."));
365
+ d.push(p), c.forEach(p, function(E, R) {
366
+ (!(c.isUndefined(E) || E === null) && o.call(
367
+ t,
368
+ E,
369
+ c.isString(R) ? R.trim() : R,
370
+ y,
371
+ m
372
+ )) === !0 && g(E, y ? y.concat(R) : [R]);
373
+ }), d.pop();
913
374
  }
914
375
  }
915
- if (!a.isObject(e))
376
+ if (!c.isObject(e))
916
377
  throw new TypeError("data must be an object");
917
- return P(e), t;
378
+ return g(e), t;
918
379
  }
919
- function Jt(e) {
380
+ function Ie(e) {
920
381
  const t = {
921
382
  "!": "%21",
922
383
  "'": "%27",
923
384
  "(": "%28",
924
385
  ")": "%29",
925
386
  "~": "%7E",
926
- "%20": "+"
387
+ "%20": "+",
388
+ "%00": "\0"
927
389
  };
928
- return encodeURIComponent(e).replace(/[!'()~]|%20/g, function(r) {
390
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
929
391
  return t[r];
930
392
  });
931
393
  }
932
- function Ut(e, t) {
933
- this._pairs = [], e && Ze(e, this, t);
394
+ function Ue(e, t) {
395
+ this._pairs = [], e && ue(e, this, t);
934
396
  }
935
- const Mn = Ut.prototype;
936
- Mn.append = function(t, n) {
397
+ const bt = Ue.prototype;
398
+ bt.append = function(t, n) {
937
399
  this._pairs.push([t, n]);
938
400
  };
939
- Mn.toString = function(t) {
940
- const n = t ? (r) => t.call(this, r, Jt) : Jt;
401
+ bt.toString = function(t) {
402
+ const n = t ? function(r) {
403
+ return t.call(this, r, Ie);
404
+ } : Ie;
941
405
  return this._pairs.map(function(o) {
942
406
  return n(o[0]) + "=" + n(o[1]);
943
407
  }, "").join("&");
944
408
  };
945
- function Vo(e) {
946
- return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
409
+ function In(e) {
410
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
947
411
  }
948
- function zn(e, t, n) {
412
+ function Et(e, t, n) {
949
413
  if (!t)
950
414
  return e;
951
- e = e || "";
952
- const r = a.isFunction(n) ? {
415
+ const r = n && n.encode || In;
416
+ c.isFunction(n) && (n = {
953
417
  serialize: n
954
- } : n, o = a.getSafeProp(r, "encode") || Vo, s = a.getSafeProp(r, "serialize");
955
- let i;
956
- if (s ? i = s(t, r) : i = a.isURLSearchParams(t) ? t.toString() : new Ut(t, r).toString(o), i) {
957
- const c = e.indexOf("#");
958
- c !== -1 && (e = e.slice(0, c)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
418
+ });
419
+ const o = n && n.serialize;
420
+ let s;
421
+ if (o ? s = o(t, n) : s = c.isURLSearchParams(t) ? t.toString() : new Ue(t, n).toString(r), s) {
422
+ const i = e.indexOf("#");
423
+ i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
959
424
  }
960
425
  return e;
961
426
  }
962
- const _e = Symbol("internals");
963
- function $n(e) {
964
- return e ? e.length : 0;
965
- }
966
- function Kt(e) {
967
- if (e)
968
- for (; e.length && e[e.length - 1] === null; )
969
- e.pop();
970
- }
971
- function Jo(e) {
972
- return typeof e == "string" && e !== "" && String(Number(e)) === e ? Number(e) : e;
973
- }
974
- function Ae(e, t) {
975
- const n = e.handlers, r = $n(n);
976
- n !== t.handlersRef ? (t.handlersRef = n, t.handlerEntries.clear()) : r !== t.handlersLength && (r ? t.handlerEntries.forEach(function(s, i) {
977
- n[s.index] !== s.handler && t.handlerEntries.delete(i);
978
- }) : t.handlerEntries.clear()), t.handlersLength = r;
979
- }
980
- class Xt {
427
+ class Be {
981
428
  constructor() {
982
- this.handlers = [], this[_e] = {
983
- handlersRef: this.handlers,
984
- handlersLength: this.handlers.length,
985
- handlerEntries: /* @__PURE__ */ new Map(),
986
- iterationDepth: 0,
987
- nextId: 0
988
- };
429
+ this.handlers = [];
989
430
  }
990
431
  /**
991
432
  * Add a new interceptor to the stack
992
433
  *
993
434
  * @param {Function} fulfilled The function to handle `then` for a `Promise`
994
435
  * @param {Function} rejected The function to handle `reject` for a `Promise`
995
- * @param {Object} options The options for the interceptor, synchronous and runWhen
996
436
  *
997
437
  * @return {Number} An ID used to remove interceptor later
998
438
  */
999
439
  use(t, n, r) {
1000
- const o = {
440
+ return this.handlers.push({
1001
441
  fulfilled: t,
1002
442
  rejected: n,
1003
443
  synchronous: r ? r.synchronous : !1,
1004
444
  runWhen: r ? r.runWhen : null
1005
- }, s = this[_e];
1006
- this.handlers == null && (this.handlers = []), Ae(this, s);
1007
- const i = s.nextId++;
1008
- return this.handlers.push(o), s.handlerEntries.set(i, {
1009
- handler: o,
1010
- index: this.handlers.length - 1
1011
- }), s.handlersLength = this.handlers.length, i;
445
+ }), this.handlers.length - 1;
1012
446
  }
1013
447
  /**
1014
448
  * Remove an interceptor from the stack
1015
449
  *
1016
450
  * @param {Number} id The ID that was returned by `use`
1017
451
  *
1018
- * @returns {void}
452
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
1019
453
  */
1020
454
  eject(t) {
1021
- const n = this[_e];
1022
- Ae(this, n);
1023
- const r = Jo(t), o = n.handlerEntries.get(r);
1024
- if (o) {
1025
- if (n.handlerEntries.delete(r), this.handlers[o.index] !== o.handler)
1026
- return;
1027
- this.handlers[o.index] = null, n.iterationDepth || (Kt(this.handlers), n.handlersLength = this.handlers.length);
1028
- }
455
+ this.handlers[t] && (this.handlers[t] = null);
1029
456
  }
1030
457
  /**
1031
458
  * Clear all interceptors from the stack
@@ -1033,7 +460,7 @@ class Xt {
1033
460
  * @returns {void}
1034
461
  */
1035
462
  clear() {
1036
- this.handlers && (this.handlers = [], Ae(this, this[_e]));
463
+ this.handlers && (this.handlers = []);
1037
464
  }
1038
465
  /**
1039
466
  * Iterate over all the registered interceptors
@@ -1046,69 +473,47 @@ class Xt {
1046
473
  * @returns {void}
1047
474
  */
1048
475
  forEach(t) {
1049
- const n = this[_e];
1050
- Ae(this, n), n.iterationDepth++;
1051
- try {
1052
- a.forEach(this.handlers, function(o) {
1053
- o !== null && t(o);
1054
- });
1055
- } finally {
1056
- --n.iterationDepth || (Ae(this, n), Kt(this.handlers), n.handlersLength = $n(this.handlers));
1057
- }
476
+ c.forEach(this.handlers, function(r) {
477
+ r !== null && t(r);
478
+ });
1058
479
  }
1059
480
  }
1060
- const Nt = {
481
+ const Rt = {
1061
482
  silentJSONParsing: !0,
1062
483
  forcedJSONParsing: !0,
1063
- clarifyTimeoutError: !1,
1064
- legacyInterceptorReqResOrdering: !0,
1065
- advertiseZstdAcceptEncoding: !1,
1066
- validateStatusUndefinedResolves: !0,
1067
- encodeBasicAuthUsername: !1
1068
- }, Ko = typeof URLSearchParams < "u" ? URLSearchParams : Ut, Xo = typeof FormData < "u" ? FormData : null, Qo = typeof Blob < "u" ? Blob : null, Go = {
484
+ clarifyTimeoutError: !1
485
+ }, Bn = typeof URLSearchParams < "u" ? URLSearchParams : Ue, jn = typeof FormData < "u" ? FormData : null, qn = typeof Blob < "u" ? Blob : null, Mn = {
1069
486
  isBrowser: !0,
1070
487
  classes: {
1071
- URLSearchParams: Ko,
1072
- FormData: Xo,
1073
- Blob: Qo
488
+ URLSearchParams: Bn,
489
+ FormData: jn,
490
+ Blob: qn
1074
491
  },
1075
492
  protocols: ["http", "https", "file", "blob", "url", "data"]
1076
- }, Lt = typeof window < "u" && typeof document < "u", bt = typeof navigator == "object" && navigator || void 0, Zo = Lt && (!bt || ["ReactNative", "NativeScript", "NS"].indexOf(bt.product) < 0), Yo = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1077
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", es = Lt && window.location.href || "http://localhost", ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
493
+ }, Le = typeof window < "u" && typeof document < "u", Ee = typeof navigator == "object" && navigator || void 0, Hn = Le && (!Ee || ["ReactNative", "NativeScript", "NS"].indexOf(Ee.product) < 0), $n = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
494
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", zn = Le && window.location.href || "http://localhost", Jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1078
495
  __proto__: null,
1079
- hasBrowserEnv: Lt,
1080
- hasStandardBrowserEnv: Zo,
1081
- hasStandardBrowserWebWorkerEnv: Yo,
1082
- navigator: bt,
1083
- origin: es
1084
- }, Symbol.toStringTag, { value: "Module" })), N = {
1085
- ...ts,
1086
- ...Go
496
+ hasBrowserEnv: Le,
497
+ hasStandardBrowserEnv: Hn,
498
+ hasStandardBrowserWebWorkerEnv: $n,
499
+ navigator: Ee,
500
+ origin: zn
501
+ }, Symbol.toStringTag, { value: "Module" })), T = {
502
+ ...Jn,
503
+ ...Mn
1087
504
  };
1088
- function ns(e, t) {
1089
- return Ze(e, new N.classes.URLSearchParams(), {
505
+ function Vn(e, t) {
506
+ return ue(e, new T.classes.URLSearchParams(), {
1090
507
  visitor: function(n, r, o, s) {
1091
- return N.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
508
+ return T.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
1092
509
  },
1093
510
  ...t
1094
511
  });
1095
512
  }
1096
- const Qt = Hn;
1097
513
  function Wn(e) {
1098
- if (e > Qt)
1099
- throw new h(
1100
- "FormData field is too deeply nested (" + e + " levels). Max depth: " + Qt,
1101
- h.ERR_FORM_DATA_DEPTH_EXCEEDED
1102
- );
1103
- }
1104
- function rs(e) {
1105
- const t = [], n = /[^.[\]]+|\[([^.[\]]*)]/g;
1106
- let r;
1107
- for (; (r = n.exec(e)) !== null; )
1108
- Wn(t.length), t.push(r[0] === "[]" ? "" : r[1] || r[0]);
1109
- return t;
514
+ return c.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
1110
515
  }
1111
- function Vn(e) {
516
+ function Kn(e) {
1112
517
  const t = {}, n = Object.keys(e);
1113
518
  let r;
1114
519
  const o = n.length;
@@ -1117,109 +522,74 @@ function Vn(e) {
1117
522
  s = n[r], t[s] = e[s];
1118
523
  return t;
1119
524
  }
1120
- function Jn(e) {
1121
- if (!a.isArray(e)) return e;
1122
- const t = Object.keys(e);
1123
- return t.length !== e.length || t.some((n, r) => n !== String(r)) ? Vn(e) : e;
1124
- }
1125
- function os(e) {
1126
- const t = [e];
1127
- for (; t.length; ) {
1128
- const n = t.pop();
1129
- Object.keys(n).forEach((r) => {
1130
- const o = n[r] = Jn(n[r]);
1131
- (a.isArray(o) || a.isPlainObject(o)) && t.push(o);
1132
- });
1133
- }
1134
- return e;
1135
- }
1136
- function Kn(e) {
525
+ function St(e) {
1137
526
  function t(n, r, o, s) {
1138
- Wn(s);
1139
527
  let i = n[s++];
1140
528
  if (i === "__proto__") return !0;
1141
- const c = Number.isFinite(+i), l = s >= n.length;
1142
- return i = !i && a.isArray(o) ? o.length : i, l ? (a.hasOwnProp(o, i) ? (o[i] = Jn(o[i]), o[i] = a.isArray(o[i]) ? o[i].concat(r) : [o[i], r]) : o[i] = r, !c) : ((!a.hasOwnProp(o, i) || !a.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && a.isArray(o[i]) && (o[i] = Vn(o[i])), !c);
529
+ const a = Number.isFinite(+i), f = s >= n.length;
530
+ 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);
1143
531
  }
1144
- if (a.isFormData(e) && a.isFunction(e.entries)) {
532
+ if (c.isFormData(e) && c.isFunction(e.entries)) {
1145
533
  const n = {};
1146
- return a.forEachEntry(e, (r, o) => {
1147
- t(rs(r), o, n, 0);
1148
- }), os(n);
534
+ return c.forEachEntry(e, (r, o) => {
535
+ t(Wn(r), o, n, 0);
536
+ }), n;
1149
537
  }
1150
538
  return null;
1151
539
  }
1152
- const Xn = Object.freeze([
1153
- "get",
1154
- "delete",
1155
- "head",
1156
- "options",
1157
- "post",
1158
- "put",
1159
- "patch",
1160
- "purge",
1161
- "link",
1162
- "unlink",
1163
- "query"
1164
- ]), he = (e, t) => e != null && a.hasOwnProp(e, t) ? e[t] : void 0;
1165
- function ss(e, t, n) {
1166
- if (a.isString(e))
540
+ function Qn(e, t, n) {
541
+ if (c.isString(e))
1167
542
  try {
1168
- return (t || JSON.parse)(e), a.trim(e);
543
+ return (t || JSON.parse)(e), c.trim(e);
1169
544
  } catch (r) {
1170
545
  if (r.name !== "SyntaxError")
1171
546
  throw r;
1172
547
  }
1173
548
  return (n || JSON.stringify)(e);
1174
549
  }
1175
- const De = {
1176
- transitional: Nt,
550
+ const K = {
551
+ transitional: Rt,
1177
552
  adapter: ["xhr", "http", "fetch"],
1178
- transformRequest: [
1179
- function(t, n) {
1180
- const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = a.isObject(t);
1181
- if (s && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
1182
- return o ? JSON.stringify(Kn(t)) : t;
1183
- if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
1184
- return t;
1185
- if (a.isArrayBufferView(t))
1186
- return t.buffer;
1187
- if (a.isURLSearchParams(t))
1188
- return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
1189
- let c;
1190
- if (s) {
1191
- const l = he(this, "formSerializer");
1192
- if (r.indexOf("application/x-www-form-urlencoded") > -1)
1193
- return ns(t, l).toString();
1194
- if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
1195
- const u = he(this, "env"), f = u && u.FormData;
1196
- return Ze(
1197
- c ? { "files[]": t } : t,
1198
- f && new f(),
1199
- l
1200
- );
1201
- }
553
+ transformRequest: [function(t, n) {
554
+ const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = c.isObject(t);
555
+ if (s && c.isHTMLForm(t) && (t = new FormData(t)), c.isFormData(t))
556
+ return o ? JSON.stringify(St(t)) : t;
557
+ if (c.isArrayBuffer(t) || c.isBuffer(t) || c.isStream(t) || c.isFile(t) || c.isBlob(t) || c.isReadableStream(t))
558
+ return t;
559
+ if (c.isArrayBufferView(t))
560
+ return t.buffer;
561
+ if (c.isURLSearchParams(t))
562
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
563
+ let a;
564
+ if (s) {
565
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
566
+ return Vn(t, this.formSerializer).toString();
567
+ if ((a = c.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
568
+ const f = this.env && this.env.FormData;
569
+ return ue(
570
+ a ? { "files[]": t } : t,
571
+ f && new f(),
572
+ this.formSerializer
573
+ );
1202
574
  }
1203
- return s || o ? (n.setContentType("application/json", !1), ss(t)) : t;
1204
575
  }
1205
- ],
1206
- transformResponse: [
1207
- function(t) {
1208
- const n = he(this, "transitional") || De.transitional, r = n && n.forcedJSONParsing, o = he(this, "responseType"), s = o === "json";
1209
- if (a.isResponse(t) || a.isReadableStream(t))
1210
- return t;
1211
- if (t && a.isString(t) && (r && !o || s)) {
1212
- const c = !(n && n.silentJSONParsing) && s;
1213
- try {
1214
- return JSON.parse(t, he(this, "parseReviver"));
1215
- } catch (l) {
1216
- if (c)
1217
- throw l.name === "SyntaxError" ? h.from(l, h.ERR_BAD_RESPONSE, this, null, he(this, "response")) : l;
1218
- }
1219
- }
576
+ return s || o ? (n.setContentType("application/json", !1), Qn(t)) : t;
577
+ }],
578
+ transformResponse: [function(t) {
579
+ const n = this.transitional || K.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
580
+ if (c.isResponse(t) || c.isReadableStream(t))
1220
581
  return t;
582
+ if (t && c.isString(t) && (r && !this.responseType || o)) {
583
+ const i = !(n && n.silentJSONParsing) && o;
584
+ try {
585
+ return JSON.parse(t);
586
+ } catch (a) {
587
+ if (i)
588
+ throw a.name === "SyntaxError" ? w.from(a, w.ERR_BAD_RESPONSE, this, null, this.response) : a;
589
+ }
1221
590
  }
1222
- ],
591
+ return t;
592
+ }],
1223
593
  /**
1224
594
  * A timeout in milliseconds to abort a request. If set to 0 (default) a
1225
595
  * timeout is not created.
@@ -1230,8 +600,8 @@ const De = {
1230
600
  maxContentLength: -1,
1231
601
  maxBodyLength: -1,
1232
602
  env: {
1233
- FormData: N.classes.FormData,
1234
- Blob: N.classes.Blob
603
+ FormData: T.classes.FormData,
604
+ Blob: T.classes.Blob
1235
605
  },
1236
606
  validateStatus: function(t) {
1237
607
  return t >= 200 && t < 300;
@@ -1243,597 +613,501 @@ const De = {
1243
613
  }
1244
614
  }
1245
615
  };
1246
- a.forEach(Xn, (e) => {
1247
- De.headers[e] = {};
616
+ c.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
617
+ K.headers[e] = {};
1248
618
  });
1249
- function at(e, t) {
1250
- const n = this || De, r = t || n, o = k.from(r.headers);
1251
- let s = r.data;
1252
- return a.forEach(e, function(c) {
1253
- s = c.call(n, s, o.normalize(), t ? t.status : void 0);
1254
- }), o.normalize(), s;
619
+ const Xn = c.toObjectSet([
620
+ "age",
621
+ "authorization",
622
+ "content-length",
623
+ "content-type",
624
+ "etag",
625
+ "expires",
626
+ "from",
627
+ "host",
628
+ "if-modified-since",
629
+ "if-unmodified-since",
630
+ "last-modified",
631
+ "location",
632
+ "max-forwards",
633
+ "proxy-authorization",
634
+ "referer",
635
+ "retry-after",
636
+ "user-agent"
637
+ ]), Gn = (e) => {
638
+ const t = {};
639
+ let n, r, o;
640
+ return e && e.split(`
641
+ `).forEach(function(i) {
642
+ 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);
643
+ }), t;
644
+ }, je = Symbol("internals");
645
+ function H(e) {
646
+ return e && String(e).trim().toLowerCase();
1255
647
  }
1256
- function Qn(e) {
1257
- return !!(e && e.__CANCEL__);
648
+ function Z(e) {
649
+ return e === !1 || e == null ? e : c.isArray(e) ? e.map(Z) : String(e);
1258
650
  }
1259
- let Ue = class extends h {
1260
- /**
1261
- * A `CanceledError` is an object that is thrown when an operation is canceled.
1262
- *
1263
- * @param {string=} message The message.
1264
- * @param {Object=} config The config.
1265
- * @param {Object=} request The request.
1266
- *
1267
- * @returns {CanceledError} The created error.
1268
- */
1269
- constructor(t, n, r) {
1270
- super(t ?? "canceled", h.ERR_CANCELED, n, r), this.name = "CanceledError", this.__CANCEL__ = !0;
651
+ function Yn(e) {
652
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
653
+ let r;
654
+ for (; r = n.exec(e); )
655
+ t[r[1]] = r[2];
656
+ return t;
657
+ }
658
+ const Zn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
659
+ function de(e, t, n, r, o) {
660
+ if (c.isFunction(r))
661
+ return r.call(this, t, n);
662
+ if (o && (t = n), !!c.isString(t)) {
663
+ if (c.isString(r))
664
+ return t.indexOf(r) !== -1;
665
+ if (c.isRegExp(r))
666
+ return r.test(t);
1271
667
  }
1272
- };
1273
- function Gn(e, t, n) {
1274
- const r = n.config.validateStatus;
1275
- !n.status || !r || r(n.status) ? e(n) : t(new h(
1276
- "Request failed with status code " + n.status,
1277
- n.status >= 400 && n.status < 500 ? h.ERR_BAD_REQUEST : h.ERR_BAD_RESPONSE,
1278
- n.config,
1279
- n.request,
1280
- n
1281
- ));
1282
668
  }
1283
- const is = /[\t\n\r]/g;
1284
- function Zn(e) {
1285
- if (typeof e != "string")
1286
- return e;
1287
- let t = 0;
1288
- for (; t < e.length && e.charCodeAt(t) <= 32; )
1289
- t++;
1290
- return e.slice(t).replace(is, "");
669
+ function er(e) {
670
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
1291
671
  }
1292
- function ct(e) {
1293
- const t = /^([-+\w]{1,25}):(?:\/\/)?/.exec(e);
1294
- return t && t[1].toLowerCase() || "";
672
+ function tr(e, t) {
673
+ const n = c.toCamelCase(" " + t);
674
+ ["get", "set", "has"].forEach((r) => {
675
+ Object.defineProperty(e, r + n, {
676
+ value: function(o, s, i) {
677
+ return this[r].call(this, t, o, s, i);
678
+ },
679
+ configurable: !0
680
+ });
681
+ });
1295
682
  }
1296
- const Gt = (e) => {
1297
- try {
1298
- return decodeURIComponent(e);
1299
- } catch {
1300
- return e;
683
+ let _ = class {
684
+ constructor(t) {
685
+ t && this.set(t);
1301
686
  }
1302
- }, Yn = N.hasStandardBrowserEnv ? (
1303
- // Standard browser envs support document.cookie
1304
- {
1305
- write(e, t, n, r, o, s, i) {
1306
- if (typeof document > "u") return;
1307
- const c = [`${e}=${encodeURIComponent(t)}`];
1308
- a.isNumber(n) && c.push(`expires=${new Date(n).toUTCString()}`), a.isString(r) && c.push(`path=${r}`), a.isString(o) && c.push(`domain=${o}`), s === !0 && c.push("secure"), a.isString(i) && c.push(`SameSite=${i}`), document.cookie = c.join("; ");
1309
- },
1310
- read(e) {
1311
- if (typeof document > "u") return null;
1312
- const t = document.cookie;
1313
- if (!t) return null;
1314
- const n = t.split(";");
1315
- for (let r = 0; r < n.length; r++) {
1316
- const o = n[r].replace(/^\s+/, ""), s = o.indexOf("=");
1317
- if (s !== -1 && o.slice(0, s) === e)
1318
- return Gt(o.slice(s + 1));
687
+ set(t, n, r) {
688
+ const o = this;
689
+ function s(a, f, l) {
690
+ const u = H(f);
691
+ if (!u)
692
+ throw new Error("header name must be a non-empty string");
693
+ const d = c.findKey(o, u);
694
+ (!d || o[d] === void 0 || l === !0 || l === void 0 && o[d] !== !1) && (o[d || f] = Z(a));
695
+ }
696
+ const i = (a, f) => c.forEach(a, (l, u) => s(l, u, f));
697
+ if (c.isPlainObject(t) || t instanceof this.constructor)
698
+ i(t, n);
699
+ else if (c.isString(t) && (t = t.trim()) && !Zn(t))
700
+ i(Gn(t), n);
701
+ else if (c.isObject(t) && c.isIterable(t)) {
702
+ let a = {}, f, l;
703
+ for (const u of t) {
704
+ if (!c.isArray(u))
705
+ throw TypeError("Object iterator must return a key-value pair");
706
+ a[l = u[0]] = (f = a[l]) ? c.isArray(f) ? [...f, u[1]] : [f, u[1]] : u[1];
1319
707
  }
1320
- return null;
1321
- },
1322
- async readAsync(e) {
1323
- try {
1324
- const t = typeof window < "u" && window.cookieStore;
1325
- if (t && a.isFunction(t.get)) {
1326
- const n = await t.get(e);
1327
- return n ? Gt(n.value) : null;
1328
- }
1329
- } catch {
708
+ i(a, n);
709
+ } else
710
+ t != null && s(n, t, r);
711
+ return this;
712
+ }
713
+ get(t, n) {
714
+ if (t = H(t), t) {
715
+ const r = c.findKey(this, t);
716
+ if (r) {
717
+ const o = this[r];
718
+ if (!n)
719
+ return o;
720
+ if (n === !0)
721
+ return Yn(o);
722
+ if (c.isFunction(n))
723
+ return n.call(this, o, r);
724
+ if (c.isRegExp(n))
725
+ return n.exec(o);
726
+ throw new TypeError("parser must be boolean|regexp|function");
1330
727
  }
1331
- return this.read(e);
1332
- },
1333
- remove(e) {
1334
- this.write(e, "", Date.now() - 864e5, "/");
1335
728
  }
1336
729
  }
1337
- ) : (
1338
- // Non-standard browser env (web workers, react-native) lack needed support.
1339
- {
1340
- write() {
1341
- },
1342
- read() {
1343
- return null;
1344
- },
1345
- async readAsync() {
1346
- return null;
1347
- },
1348
- remove() {
730
+ has(t, n) {
731
+ if (t = H(t), t) {
732
+ const r = c.findKey(this, t);
733
+ return !!(r && this[r] !== void 0 && (!n || de(this, this[r], r, n)));
1349
734
  }
735
+ return !1;
1350
736
  }
1351
- );
1352
- function as(e, t) {
1353
- e = e || 10;
1354
- const n = new Array(e), r = new Array(e);
1355
- let o = 0, s = 0, i;
1356
- return t = t !== void 0 ? t : 1e3, function(l) {
1357
- const u = Date.now(), f = r[s];
1358
- i || (i = u), n[o] = l, r[o] = u;
1359
- let p = s, g = 0;
1360
- for (; p !== o; )
1361
- g += n[p++], p = p % e;
1362
- if (o = (o + 1) % e, o === s && (s = (s + 1) % e), u - i < t)
1363
- return;
1364
- const w = f && u - f;
1365
- return w ? Math.round(g * 1e3 / w) : void 0;
1366
- };
1367
- }
1368
- function cs(e, t) {
1369
- let n = 0, r = 1e3 / t, o, s;
1370
- const i = (f, p = Date.now()) => {
1371
- n = p, o = null, s && (clearTimeout(s), s = null), e(...f);
1372
- };
1373
- return [(...f) => {
1374
- const p = Date.now(), g = p - n;
1375
- g >= r ? i(f, p) : (o = f, s || (s = setTimeout(() => {
1376
- s = null, i(o);
1377
- }, r - g)));
1378
- }, () => o && i(o), (...f) => i(f)];
1379
- }
1380
- const Ke = (e, t, n = 3) => {
1381
- let r = 0;
1382
- const o = as(50, 250);
1383
- return cs((s) => {
1384
- if (!s || !a.isNumber(s.loaded))
1385
- return;
1386
- const i = s.loaded, c = s.lengthComputable ? s.total : void 0, l = Math.max(0, c != null ? Math.min(i, c) : i), u = Math.max(0, l - r), f = o(u);
1387
- r = Math.max(r, l);
1388
- const p = {
1389
- loaded: l,
1390
- total: c,
1391
- progress: c ? l / c : void 0,
1392
- bytes: u,
1393
- rate: f || void 0,
1394
- estimated: f && c ? (c - l) / f : void 0,
1395
- event: s,
1396
- lengthComputable: c != null,
1397
- [t ? "download" : "upload"]: !0
1398
- };
1399
- e(p);
1400
- }, n);
1401
- }, Zt = (e, t) => {
1402
- const n = e != null;
1403
- return [
1404
- (r) => t[0]({
1405
- lengthComputable: n,
1406
- total: e,
1407
- loaded: r
1408
- }),
1409
- t[1]
1410
- ];
1411
- }, Yt = (e, t = a.asap) => (...n) => t(() => e(...n)), ls = N.hasStandardBrowserEnv ? /* @__PURE__ */ ((e) => (t) => (t = new URL(t, document.baseURI || N.origin), e.protocol === t.protocol && e.host === t.host && e.port === t.port))(new URL(N.origin)) : () => !0;
1412
- function us(e) {
1413
- return typeof e != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
1414
- }
1415
- function fs(e, t) {
1416
- if (!t)
1417
- return e;
1418
- let n = e.length;
1419
- for (; n > 0 && e.charCodeAt(n - 1) === 47; )
1420
- n--;
1421
- return e.slice(0, n) + "/" + t.replace(/^\/+/, "");
1422
- }
1423
- const ds = /^https?:(?!\/\/)/i;
1424
- function ps(e) {
1425
- return e && e.replace(/(^|&)([^=&]*=)?[^&]+/g, (t, n, r = "") => `${n}${r}${Je}`);
1426
- }
1427
- function hs(e) {
1428
- const t = e.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${Je}@`), n = t.indexOf("#"), o = (n === -1 ? t : t.slice(0, n)).replace(
1429
- /([?&][^=&#]*=)[^&#]*/g,
1430
- `$1${Je}`
1431
- );
1432
- return n === -1 ? o : `${o}#${ps(t.slice(n + 1))}`;
1433
- }
1434
- function en(e, t) {
1435
- if (typeof e == "string") {
1436
- const n = Zn(e);
1437
- if (ds.test(n))
1438
- throw new h(
1439
- `Invalid URL ${JSON.stringify(hs(n))}: missing "//" after protocol`,
1440
- h.ERR_INVALID_URL,
1441
- t
1442
- );
737
+ delete(t, n) {
738
+ const r = this;
739
+ let o = !1;
740
+ function s(i) {
741
+ if (i = H(i), i) {
742
+ const a = c.findKey(r, i);
743
+ a && (!n || de(r, r[a], a, n)) && (delete r[a], o = !0);
744
+ }
745
+ }
746
+ return c.isArray(t) ? t.forEach(s) : s(t), o;
1443
747
  }
1444
- }
1445
- function er(e, t, n, r) {
1446
- en(t, r);
1447
- let o = !us(t);
1448
- return e && (o || n === !1) ? (en(e, r), fs(e, t)) : t;
1449
- }
1450
- function ms(e) {
1451
- const t = [{ value: e }], n = /* @__PURE__ */ new WeakSet(), r = /* @__PURE__ */ new WeakSet();
1452
- for (; t.length; ) {
1453
- const { value: o, done: s } = t.pop();
1454
- if (!a.isPlainObject(o) && !a.isArray(o)) continue;
1455
- if (s) {
1456
- n.delete(o);
1457
- continue;
748
+ clear(t) {
749
+ const n = Object.keys(this);
750
+ let r = n.length, o = !1;
751
+ for (; r--; ) {
752
+ const s = n[r];
753
+ (!t || de(this, this[s], s, t, !0)) && (delete this[s], o = !0);
1458
754
  }
1459
- if (n.has(o))
1460
- throw new h(
1461
- "Circular reference detected in params",
1462
- h.ERR_BAD_OPTION_VALUE
1463
- );
1464
- if (r.has(o)) continue;
1465
- r.add(o), n.add(o), t.push({ value: o, done: !0 });
1466
- const i = Object.keys(o);
1467
- Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor && Object.getOwnPropertySymbols(o).forEach((c) => {
1468
- const l = Object.getOwnPropertyDescriptor(o, c);
1469
- l && l.enumerable && i.push(c);
1470
- }), i.forEach((c) => {
1471
- if (c === "__proto__" || c === "constructor" || c === "prototype") {
1472
- const l = Object.getOwnPropertyDescriptor(o, c);
1473
- l && a.hasOwnProp(l, "value") && t.push({ value: l.value });
1474
- } else
1475
- t.push({ value: o[c] });
1476
- });
755
+ return o;
1477
756
  }
1478
- }
1479
- const tn = (e) => e instanceof k ? { ...e } : e, Ot = (e) => Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor ? Object.keys(e).concat(
1480
- Object.getOwnPropertySymbols(e).filter((t) => {
1481
- const n = Object.getOwnPropertyDescriptor(e, t);
1482
- return n && n.enumerable;
1483
- })
1484
- ) : Object.keys(e);
1485
- function gs(e, t) {
1486
- const n = [], r = /* @__PURE__ */ new WeakMap(), o = {};
1487
- function s(c, l) {
1488
- if (!a.isPlainObject(l))
1489
- return a.isArray(l) ? l.slice() : l;
1490
- const u = a.isPlainObject(c) ? c : o;
1491
- let f = r.get(l);
1492
- if (f || (f = /* @__PURE__ */ new WeakMap(), r.set(l, f)), f.has(u)) return f.get(u);
1493
- const p = {};
1494
- return f.set(u, p), n.push({ base: u, source: l, result: p }), p;
1495
- }
1496
- const i = a.isUndefined(t) ? s(void 0, e) : s(e, t);
1497
- for (; n.length; ) {
1498
- const { base: c, source: l, result: u } = n.pop(), f = new Set(Ot(c)), p = new Set(Ot(l));
1499
- (/* @__PURE__ */ new Set([...f, ...p])).forEach((w) => {
1500
- if (w === "__proto__" || w === "constructor" || w === "prototype") return;
1501
- const O = p.has(w), S = O ? l[w] : void 0, E = (!O || a.isPlainObject(S)) && f.has(w) ? c[w] : void 0;
1502
- u[w] = O ? s(E, S) : s(void 0, E);
1503
- });
757
+ normalize(t) {
758
+ const n = this, r = {};
759
+ return c.forEach(this, (o, s) => {
760
+ const i = c.findKey(r, s);
761
+ if (i) {
762
+ n[i] = Z(o), delete n[s];
763
+ return;
764
+ }
765
+ const a = t ? er(s) : String(s).trim();
766
+ a !== s && delete n[s], n[a] = Z(o), r[a] = !0;
767
+ }), this;
768
+ }
769
+ concat(...t) {
770
+ return this.constructor.concat(this, ...t);
771
+ }
772
+ toJSON(t) {
773
+ const n = /* @__PURE__ */ Object.create(null);
774
+ return c.forEach(this, (r, o) => {
775
+ r != null && r !== !1 && (n[o] = t && c.isArray(r) ? r.join(", ") : r);
776
+ }), n;
777
+ }
778
+ [Symbol.iterator]() {
779
+ return Object.entries(this.toJSON())[Symbol.iterator]();
780
+ }
781
+ toString() {
782
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
783
+ `);
784
+ }
785
+ getSetCookie() {
786
+ return this.get("set-cookie") || [];
787
+ }
788
+ get [Symbol.toStringTag]() {
789
+ return "AxiosHeaders";
790
+ }
791
+ static from(t) {
792
+ return t instanceof this ? t : new this(t);
793
+ }
794
+ static concat(t, ...n) {
795
+ const r = new this(t);
796
+ return n.forEach((o) => r.set(o)), r;
1504
797
  }
1505
- return ms(i), i;
798
+ static accessor(t) {
799
+ const r = (this[je] = this[je] = {
800
+ accessors: {}
801
+ }).accessors, o = this.prototype;
802
+ function s(i) {
803
+ const a = H(i);
804
+ r[a] || (tr(o, i), r[a] = !0);
805
+ }
806
+ return c.isArray(t) ? t.forEach(s) : s(t), this;
807
+ }
808
+ };
809
+ _.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
810
+ c.reduceDescriptors(_.prototype, ({ value: e }, t) => {
811
+ let n = t[0].toUpperCase() + t.slice(1);
812
+ return {
813
+ get: () => e,
814
+ set(r) {
815
+ this[n] = r;
816
+ }
817
+ };
818
+ });
819
+ c.freezeMethods(_);
820
+ function pe(e, t) {
821
+ const n = this || K, r = t || n, o = _.from(r.headers);
822
+ let s = r.data;
823
+ return c.forEach(e, function(a) {
824
+ s = a.call(n, s, o.normalize(), t ? t.status : void 0);
825
+ }), o.normalize(), s;
1506
826
  }
1507
- function re(e, t, n, r) {
1508
- return a.isPlainObject(e) && a.isPlainObject(t) ? a.merge.call({ caseless: r }, e, t) : a.isPlainObject(t) ? a.merge({}, t) : a.isArray(t) ? t.slice() : t;
827
+ function Tt(e) {
828
+ return !!(e && e.__CANCEL__);
1509
829
  }
1510
- function tr(e, t, n, r) {
1511
- if (a.isUndefined(t)) {
1512
- if (!a.isUndefined(e))
1513
- return re(void 0, e, n, r);
1514
- } else return re(e, t, n, r);
830
+ function M(e, t, n) {
831
+ w.call(this, e ?? "canceled", w.ERR_CANCELED, t, n), this.name = "CanceledError";
1515
832
  }
1516
- function lt(e, t) {
1517
- if (!a.isUndefined(t))
1518
- return re(void 0, t);
833
+ c.inherits(M, w, {
834
+ __CANCEL__: !0
835
+ });
836
+ function Ot(e, t, n) {
837
+ const r = n.config.validateStatus;
838
+ !n.status || !r || r(n.status) ? e(n) : t(new w(
839
+ "Request failed with status code " + n.status,
840
+ [w.ERR_BAD_REQUEST, w.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
841
+ n.config,
842
+ n.request,
843
+ n
844
+ ));
1519
845
  }
1520
- function C(e, t) {
1521
- if (a.isUndefined(t)) {
1522
- if (!a.isUndefined(e))
1523
- return re(void 0, e);
1524
- } else return re(void 0, t);
846
+ function nr(e) {
847
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
848
+ return t && t[1] || "";
1525
849
  }
1526
- function ws(e, t, n) {
1527
- const r = a.hasOwnProp(t, "transitional") ? t.transitional : void 0;
1528
- if (!a.isUndefined(r))
1529
- if (a.isPlainObject(r)) {
1530
- if (a.hasOwnProp(r, n))
1531
- return r[n];
1532
- } else
850
+ function rr(e, t) {
851
+ e = e || 10;
852
+ const n = new Array(e), r = new Array(e);
853
+ let o = 0, s = 0, i;
854
+ return t = t !== void 0 ? t : 1e3, function(f) {
855
+ const l = Date.now(), u = r[s];
856
+ i || (i = l), n[o] = f, r[o] = l;
857
+ let d = s, m = 0;
858
+ for (; d !== o; )
859
+ m += n[d++], d = d % e;
860
+ if (o = (o + 1) % e, o === s && (s = (s + 1) % e), l - i < t)
1533
861
  return;
1534
- const o = a.hasOwnProp(e, "transitional") ? e.transitional : void 0;
1535
- if (a.isPlainObject(o) && a.hasOwnProp(o, n))
1536
- return o[n];
1537
- }
1538
- function Et(e, t, n, r, o) {
1539
- if (a.hasOwnProp(o, n))
1540
- return re(e, t);
1541
- if (a.hasOwnProp(r, n))
1542
- return re(void 0, e);
1543
- }
1544
- function ys(e, t, n) {
1545
- return tr(tn(e), tn(t), n, !0);
862
+ const g = u && l - u;
863
+ return g ? Math.round(m * 1e3 / g) : void 0;
864
+ };
1546
865
  }
1547
- const bs = Object.freeze({
1548
- __proto__: null,
1549
- value: Object.prototype.hasOwnProperty,
1550
- enumerable: !1,
1551
- writable: !0,
1552
- configurable: !0
1553
- }), nn = {
1554
- url: lt,
1555
- method: lt,
1556
- data: lt,
1557
- baseURL: C,
1558
- transformRequest: C,
1559
- transformResponse: C,
1560
- params: gs,
1561
- paramsSerializer: C,
1562
- timeout: C,
1563
- timeoutErrorMessage: C,
1564
- withCredentials: C,
1565
- withXSRFToken: C,
1566
- adapter: C,
1567
- responseType: C,
1568
- xsrfCookieName: C,
1569
- xsrfHeaderName: C,
1570
- onUploadProgress: C,
1571
- onDownloadProgress: C,
1572
- decompress: C,
1573
- maxContentLength: C,
1574
- maxBodyLength: C,
1575
- beforeRedirect: C,
1576
- transport: C,
1577
- httpAgent: C,
1578
- httpsAgent: C,
1579
- cancelToken: C,
1580
- socketPath: C,
1581
- allowedSocketPaths: C,
1582
- responseEncoding: C,
1583
- validateStatus: Et,
1584
- headers: ys
1585
- };
1586
- function de(e, t) {
1587
- e = e || {}, t = t || {};
1588
- const n = /* @__PURE__ */ Object.create(null);
1589
- Object.defineProperty(n, "hasOwnProperty", bs);
1590
- const r = Ot({ ...e, ...t });
1591
- for (let o = 0, s = r.length; o < s; o++) {
1592
- const i = r[o];
1593
- if (i === "__proto__" || i === "constructor" || i === "prototype") continue;
1594
- const c = a.hasOwnProp(nn, i) ? nn[i] : tr, l = a.hasOwnProp(e, i) ? e[i] : void 0, u = a.hasOwnProp(t, i) ? t[i] : void 0, f = c === Et ? c(l, u, i, e, t) : c(l, u, i);
1595
- a.isUndefined(f) && c !== Et || (n[i] = f);
1596
- }
1597
- return a.hasOwnProp(t, "validateStatus") && a.isUndefined(t.validateStatus) && ws(e, t, "validateStatusUndefinedResolves") === !1 && (a.hasOwnProp(e, "validateStatus") ? n.validateStatus = re(void 0, e.validateStatus) : delete n.validateStatus), n;
866
+ function or(e, t) {
867
+ let n = 0, r = 1e3 / t, o, s;
868
+ const i = (l, u = Date.now()) => {
869
+ n = u, o = null, s && (clearTimeout(s), s = null), e(...l);
870
+ };
871
+ return [(...l) => {
872
+ const u = Date.now(), d = u - n;
873
+ d >= r ? i(l, u) : (o = l, s || (s = setTimeout(() => {
874
+ s = null, i(o);
875
+ }, r - d)));
876
+ }, () => o && i(o)];
1598
877
  }
1599
- const Os = ["content-type", "content-length"];
1600
- function Es(e, t, n) {
1601
- if (n !== "content-only") {
1602
- e.set(t);
1603
- return;
878
+ const re = (e, t, n = 3) => {
879
+ let r = 0;
880
+ const o = rr(50, 250);
881
+ return or((s) => {
882
+ const i = s.loaded, a = s.lengthComputable ? s.total : void 0, f = i - r, l = o(f), u = i <= a;
883
+ r = i;
884
+ const d = {
885
+ loaded: i,
886
+ total: a,
887
+ progress: a ? i / a : void 0,
888
+ bytes: f,
889
+ rate: l || void 0,
890
+ estimated: l && a && u ? (a - i) / l : void 0,
891
+ event: s,
892
+ lengthComputable: a != null,
893
+ [t ? "download" : "upload"]: !0
894
+ };
895
+ e(d);
896
+ }, n);
897
+ }, qe = (e, t) => {
898
+ const n = e != null;
899
+ return [(r) => t[0]({
900
+ lengthComputable: n,
901
+ total: e,
902
+ loaded: r
903
+ }), t[1]];
904
+ }, 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)))(
905
+ new URL(T.origin),
906
+ T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
907
+ ) : () => !0, ir = T.hasStandardBrowserEnv ? (
908
+ // Standard browser envs support document.cookie
909
+ {
910
+ write(e, t, n, r, o, s) {
911
+ const i = [e + "=" + encodeURIComponent(t)];
912
+ c.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), c.isString(r) && i.push("path=" + r), c.isString(o) && i.push("domain=" + o), s === !0 && i.push("secure"), document.cookie = i.join("; ");
913
+ },
914
+ read(e) {
915
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
916
+ return t ? decodeURIComponent(t[3]) : null;
917
+ },
918
+ remove(e) {
919
+ this.write(e, "", Date.now() - 864e5);
920
+ }
1604
921
  }
1605
- Object.entries(t || {}).forEach(([r, o]) => {
1606
- Os.includes(r.toLowerCase()) && e.set(r, o);
1607
- });
1608
- }
1609
- const rn = (e) => encodeURIComponent(e).replace(
1610
- /%([0-9A-F]{2})/gi,
1611
- (t, n) => String.fromCharCode(parseInt(n, 16))
1612
- ), Ss = (e) => Yn.read(e);
1613
- function nr(e, t = Ss) {
1614
- const n = de({}, e), r = (w) => a.hasOwnProp(n, w) ? n[w] : void 0, o = r("data");
1615
- let s = r("withXSRFToken");
1616
- const i = r("xsrfHeaderName"), c = r("xsrfCookieName");
1617
- let l = r("headers");
1618
- const u = r("auth"), f = r("baseURL"), p = r("allowAbsoluteUrls"), g = r("url");
1619
- if (n.headers = l = k.from(l), n.url = zn(
1620
- er(f, g, p, n),
1621
- r("params"),
1622
- r("paramsSerializer")
1623
- ), u) {
1624
- const w = a.getSafeProp(u, "username") || "", O = a.getSafeProp(u, "password") || "", S = r("transitional"), E = S && a.hasOwnProp(S, "encodeBasicAuthUsername") && S.encodeBasicAuthUsername === !0;
1625
- try {
1626
- l.set(
1627
- "Authorization",
1628
- // Preserve legacy username bytes unless the caller opts in to UTF-8.
1629
- "Basic " + btoa(
1630
- (E ? rn(w) : w) + ":" + (O ? rn(O) : "")
1631
- )
1632
- );
1633
- } catch (P) {
1634
- throw h.from(P, h.ERR_BAD_OPTION_VALUE, e);
922
+ ) : (
923
+ // Non-standard browser env (web workers, react-native) lack needed support.
924
+ {
925
+ write() {
926
+ },
927
+ read() {
928
+ return null;
929
+ },
930
+ remove() {
1635
931
  }
1636
932
  }
1637
- if (a.isFormData(o)) {
1638
- const w = a.getSafeProp(o, "getHeaders");
1639
- N.hasStandardBrowserEnv || N.hasStandardBrowserWebWorkerEnv || a.isReactNative(o) ? l.setContentType(void 0) : a.isFunction(w) && Es(l, w.call(o), r("formDataHeaderPolicy"));
933
+ );
934
+ function ar(e) {
935
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
936
+ }
937
+ function cr(e, t) {
938
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
939
+ }
940
+ function At(e, t, n) {
941
+ let r = !ar(t);
942
+ return e && (r || n == !1) ? cr(e, t) : t;
943
+ }
944
+ const He = (e) => e instanceof _ ? { ...e } : e;
945
+ function B(e, t) {
946
+ t = t || {};
947
+ const n = {};
948
+ function r(l, u, d, m) {
949
+ return c.isPlainObject(l) && c.isPlainObject(u) ? c.merge.call({ caseless: m }, l, u) : c.isPlainObject(u) ? c.merge({}, u) : c.isArray(u) ? u.slice() : u;
950
+ }
951
+ function o(l, u, d, m) {
952
+ if (c.isUndefined(u)) {
953
+ if (!c.isUndefined(l))
954
+ return r(void 0, l, d, m);
955
+ } else return r(l, u, d, m);
956
+ }
957
+ function s(l, u) {
958
+ if (!c.isUndefined(u))
959
+ return r(void 0, u);
960
+ }
961
+ function i(l, u) {
962
+ if (c.isUndefined(u)) {
963
+ if (!c.isUndefined(l))
964
+ return r(void 0, l);
965
+ } else return r(void 0, u);
966
+ }
967
+ function a(l, u, d) {
968
+ if (d in t)
969
+ return r(l, u);
970
+ if (d in e)
971
+ return r(void 0, l);
972
+ }
973
+ const f = {
974
+ url: s,
975
+ method: s,
976
+ data: s,
977
+ baseURL: i,
978
+ transformRequest: i,
979
+ transformResponse: i,
980
+ paramsSerializer: i,
981
+ timeout: i,
982
+ timeoutMessage: i,
983
+ withCredentials: i,
984
+ withXSRFToken: i,
985
+ adapter: i,
986
+ responseType: i,
987
+ xsrfCookieName: i,
988
+ xsrfHeaderName: i,
989
+ onUploadProgress: i,
990
+ onDownloadProgress: i,
991
+ decompress: i,
992
+ maxContentLength: i,
993
+ maxBodyLength: i,
994
+ beforeRedirect: i,
995
+ transport: i,
996
+ httpAgent: i,
997
+ httpsAgent: i,
998
+ cancelToken: i,
999
+ socketPath: i,
1000
+ responseEncoding: i,
1001
+ validateStatus: a,
1002
+ headers: (l, u, d) => o(He(l), He(u), d, !0)
1003
+ };
1004
+ return c.forEach(Object.keys({ ...e, ...t }), function(u) {
1005
+ const d = f[u] || o, m = d(e[u], t[u], u);
1006
+ c.isUndefined(m) && d !== a || (n[u] = m);
1007
+ }), n;
1008
+ }
1009
+ const _t = (e) => {
1010
+ const t = B({}, e);
1011
+ let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: i, auth: a } = t;
1012
+ t.headers = i = _.from(i), t.url = Et(At(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
1013
+ "Authorization",
1014
+ "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
1015
+ );
1016
+ let f;
1017
+ if (c.isFormData(n)) {
1018
+ if (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv)
1019
+ i.setContentType(void 0);
1020
+ else if ((f = i.getContentType()) !== !1) {
1021
+ const [l, ...u] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
1022
+ i.setContentType([l || "multipart/form-data", ...u].join("; "));
1023
+ }
1640
1024
  }
1641
- if (N.hasStandardBrowserEnv && (a.isFunction(s) && (s = s(n)), s === !0 || s == null && ls(n.url))) {
1642
- const O = i && c && t(c);
1643
- O && l.set(i, O);
1025
+ if (T.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(t)), r || r !== !1 && sr(t.url))) {
1026
+ const l = o && s && ir.read(s);
1027
+ l && i.set(o, l);
1644
1028
  }
1645
- return n;
1646
- }
1647
- const Rs = typeof XMLHttpRequest < "u", _s = Rs && function(e) {
1029
+ return t;
1030
+ }, ur = typeof XMLHttpRequest < "u", lr = ur && function(e) {
1648
1031
  return new Promise(function(n, r) {
1649
- let o;
1650
- try {
1651
- const _ = N.hasStandardBrowserEnv && typeof window < "u" && window.cookieStore;
1652
- o = _ && a.isFunction(_.get);
1653
- } catch {
1654
- }
1655
- let s;
1656
- const i = nr(
1657
- e,
1658
- o ? (_) => (s = _, null) : void 0
1659
- );
1660
- let c = i.data;
1661
- const l = k.from(i.headers).normalize();
1662
- let { responseType: u, onUploadProgress: f, onDownloadProgress: p } = i, g, w, O, S, E, P, y;
1663
- function m() {
1664
- clearTimeout(w);
1665
- try {
1666
- E && E();
1667
- } catch (_) {
1668
- setTimeout(() => {
1669
- throw _;
1670
- });
1671
- }
1672
- try {
1673
- P && P();
1674
- } catch (_) {
1675
- setTimeout(() => {
1676
- throw _;
1677
- });
1678
- }
1679
- d && (S && d.removeEventListener("progress", S), d.upload && (O && d.upload.removeEventListener("progress", O), E && d.upload.removeEventListener("loadend", E))), i.cancelToken && i.cancelToken.unsubscribe(g), i.signal && i.signal.removeEventListener("abort", g);
1032
+ const o = _t(e);
1033
+ let s = o.data;
1034
+ const i = _.from(o.headers).normalize();
1035
+ let { responseType: a, onUploadProgress: f, onDownloadProgress: l } = o, u, d, m, g, p;
1036
+ function y() {
1037
+ g && g(), p && p(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
1680
1038
  }
1681
- let d = new XMLHttpRequest();
1682
- d.open(i.method.toUpperCase(), i.url, !0), d.timeout = i.timeout;
1683
- function x(_) {
1684
- if (!d)
1685
- return;
1686
- if (d.status === 0 && (ct(Zn(i.url)) || ct(N.origin)) !== "file" && !(d.responseURL && d.responseURL.startsWith("file:"))) {
1687
- r(new h("Request aborted", h.ECONNABORTED, e, d)), m(), d = null;
1688
- return;
1689
- }
1690
- try {
1691
- _ ? y && y(_) : P && P();
1692
- } catch (j) {
1693
- setTimeout(() => {
1694
- throw j;
1695
- });
1696
- }
1697
- if (!d)
1039
+ let h = new XMLHttpRequest();
1040
+ h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
1041
+ function E() {
1042
+ if (!h)
1698
1043
  return;
1699
- const D = k.from(
1700
- "getAllResponseHeaders" in d && d.getAllResponseHeaders()
1701
- ), U = {
1702
- data: !u || u === "text" || u === "json" ? d.responseText : d.response,
1703
- status: d.status,
1704
- statusText: d.statusText,
1705
- headers: D,
1044
+ const S = _.from(
1045
+ "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1046
+ ), O = {
1047
+ data: !a || a === "text" || a === "json" ? h.responseText : h.response,
1048
+ status: h.status,
1049
+ statusText: h.statusText,
1050
+ headers: S,
1706
1051
  config: e,
1707
- request: d
1052
+ request: h
1708
1053
  };
1709
- Gn(
1710
- function(q) {
1711
- n(q), m();
1712
- },
1713
- function(q) {
1714
- r(q), m();
1715
- },
1716
- U
1717
- ), d = null;
1718
- }
1719
- if ("onloadend" in d ? d.onloadend = x : d.onreadystatechange = function() {
1720
- !d || d.readyState !== 4 || d.status === 0 && !(d.responseURL && d.responseURL.startsWith("file:")) || setTimeout(x);
1721
- }, d.onabort = function() {
1722
- d && (r(new h("Request aborted", h.ECONNABORTED, e, d)), m(), d = null);
1723
- }, d.onerror = function(D) {
1724
- const H = D && D.message ? D.message : "Network Error", U = new h(H, h.ERR_NETWORK, e, d);
1725
- U.event = D || null, r(U), m(), d = null;
1726
- }, d.ontimeout = function() {
1727
- if (!d) return;
1728
- let D = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
1729
- const H = i.transitional || Nt;
1730
- i.timeoutErrorMessage && (D = i.timeoutErrorMessage), r(
1731
- new h(
1732
- D,
1733
- H.clarifyTimeoutError ? h.ETIMEDOUT : h.ECONNABORTED,
1734
- e,
1735
- d
1736
- )
1737
- ), m(), d = null;
1738
- }, c === void 0 && l.setContentType(null), a.isUndefined(i.withCredentials) || (d.withCredentials = !!i.withCredentials), u && u !== "json" && (d.responseType = i.responseType), p && ([S, P, y] = Ke(
1739
- p,
1740
- !0
1741
- ), d.addEventListener("progress", S)), f && d.upload && ([O, E] = Ke(f), d.upload.addEventListener("progress", O), d.upload.addEventListener("loadend", E)), i.cancelToken || i.signal) {
1742
- if (g = (_) => {
1743
- if (!d)
1744
- return;
1745
- r(!_ || _.type ? new Ue(null, e, d) : _);
1746
- const D = d;
1747
- m(), d = null, D.abort();
1748
- }, i.cancelToken && i.cancelToken.subscribe(g), !d) return;
1749
- i.signal && (i.signal.aborted ? g() : i.signal.addEventListener("abort", g));
1054
+ Ot(function(F) {
1055
+ n(F), y();
1056
+ }, function(F) {
1057
+ r(F), y();
1058
+ }, O), h = null;
1750
1059
  }
1751
- if (!d) return;
1752
- const R = ct(i.url);
1753
- if (R && !N.protocols.includes(R)) {
1754
- r(
1755
- new h(
1756
- "Unsupported protocol " + R + ":",
1757
- h.ERR_BAD_REQUEST,
1758
- e
1759
- )
1760
- ), m();
1060
+ "onloadend" in h ? h.onloadend = E : h.onreadystatechange = function() {
1061
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(E);
1062
+ }, h.onabort = function() {
1063
+ h && (r(new w("Request aborted", w.ECONNABORTED, e, h)), h = null);
1064
+ }, h.onerror = function() {
1065
+ r(new w("Network Error", w.ERR_NETWORK, e, h)), h = null;
1066
+ }, h.ontimeout = function() {
1067
+ let k = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1068
+ const O = o.transitional || Rt;
1069
+ o.timeoutErrorMessage && (k = o.timeoutErrorMessage), r(new w(
1070
+ k,
1071
+ O.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
1072
+ e,
1073
+ h
1074
+ )), h = null;
1075
+ }, s === void 0 && i.setContentType(null), "setRequestHeader" in h && c.forEach(i.toJSON(), function(k, O) {
1076
+ h.setRequestHeader(O, k);
1077
+ }), c.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), a && a !== "json" && (h.responseType = o.responseType), l && ([m, p] = re(l, !0), h.addEventListener("progress", m)), f && h.upload && ([d, g] = re(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", g)), (o.cancelToken || o.signal) && (u = (S) => {
1078
+ h && (r(!S || S.type ? new M(null, e, h) : S), h.abort(), h = null);
1079
+ }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
1080
+ const R = nr(o.url);
1081
+ if (R && T.protocols.indexOf(R) === -1) {
1082
+ r(new w("Unsupported protocol " + R + ":", w.ERR_BAD_REQUEST, e));
1761
1083
  return;
1762
1084
  }
1763
- const L = () => {
1764
- d && ("setRequestHeader" in d && a.forEach(
1765
- Bn(l),
1766
- function(D, H) {
1767
- d.setRequestHeader(H, D);
1768
- }
1769
- ), d.send(c || null));
1770
- };
1771
- if (s) {
1772
- const _ = typeof performance < "u" && a.isFunction(performance.now) ? () => performance.now() : Date.now, D = d.timeout > 0 ? _() + Number(d.timeout) : void 0, H = () => {
1773
- if (!d) return;
1774
- const U = d;
1775
- U.ontimeout(), U.abort();
1776
- };
1777
- if (D !== void 0) {
1778
- const U = () => {
1779
- const j = D - _();
1780
- j > 0 ? w = setTimeout(U, Math.min(j, 2147483647)) : H();
1781
- };
1782
- U();
1783
- }
1784
- Yn.readAsync(s).then((U) => {
1785
- if (d) {
1786
- if (D !== void 0 && _() >= D) {
1787
- H();
1788
- return;
1789
- }
1790
- if (U) {
1791
- const j = a.hasOwnProp(i, "xsrfHeaderName") && i.xsrfHeaderName;
1792
- l.set(j, U);
1793
- }
1794
- L();
1795
- }
1796
- }).catch((U) => {
1797
- d && (r(h.from(U, null, e, d)), m(), d = null);
1798
- });
1799
- } else
1800
- L();
1085
+ h.send(s || null);
1801
1086
  });
1802
- }, As = (e, t) => {
1803
- if (e = e ? e.filter(Boolean) : [], !t && !e.length)
1804
- return;
1805
- const n = new AbortController();
1806
- let r = !1;
1807
- const o = function(l) {
1808
- if (!r) {
1809
- r = !0, i();
1810
- const u = l instanceof Error ? l : this.reason;
1811
- n.abort(
1812
- u instanceof h ? u : new Ue(u instanceof Error ? u.message : u)
1813
- );
1814
- }
1815
- };
1816
- let s = t && setTimeout(() => {
1817
- s = null, o(new h(`timeout of ${t}ms exceeded`, h.ETIMEDOUT));
1818
- }, t);
1819
- const i = () => {
1820
- e && (s && clearTimeout(s), s = null, e.forEach((l) => {
1821
- const u = a.getSafeProp(l, "unsubscribe");
1822
- a.isFunction(u) ? u.call(l, o) : l.removeEventListener("abort", o);
1823
- }), e = null);
1824
- };
1825
- e.forEach((l) => {
1826
- if (!r) {
1827
- if (l.aborted) {
1828
- o.call(l);
1829
- return;
1087
+ }, fr = (e, t) => {
1088
+ const { length: n } = e = e ? e.filter(Boolean) : [];
1089
+ if (t || n) {
1090
+ let r = new AbortController(), o;
1091
+ const s = function(l) {
1092
+ if (!o) {
1093
+ o = !0, a();
1094
+ const u = l instanceof Error ? l : this.reason;
1095
+ r.abort(u instanceof w ? u : new M(u instanceof Error ? u.message : u));
1830
1096
  }
1831
- l.addEventListener("abort", o, { once: !0 });
1832
- }
1833
- });
1834
- const { signal: c } = n;
1835
- return c.unsubscribe = () => a.asap(i), c;
1836
- }, Ps = function* (e, t) {
1097
+ };
1098
+ let i = t && setTimeout(() => {
1099
+ i = null, s(new w(`timeout ${t} of ms exceeded`, w.ETIMEDOUT));
1100
+ }, t);
1101
+ const a = () => {
1102
+ e && (i && clearTimeout(i), i = null, e.forEach((l) => {
1103
+ l.unsubscribe ? l.unsubscribe(s) : l.removeEventListener("abort", s);
1104
+ }), e = null);
1105
+ };
1106
+ e.forEach((l) => l.addEventListener("abort", s));
1107
+ const { signal: f } = r;
1108
+ return f.unsubscribe = () => c.asap(a), f;
1109
+ }
1110
+ }, dr = function* (e, t) {
1837
1111
  let n = e.byteLength;
1838
1112
  if (n < t) {
1839
1113
  yield e;
@@ -1842,10 +1116,10 @@ const Rs = typeof XMLHttpRequest < "u", _s = Rs && function(e) {
1842
1116
  let r = 0, o;
1843
1117
  for (; r < n; )
1844
1118
  o = r + t, yield e.slice(r, o), r = o;
1845
- }, Ts = async function* (e, t) {
1846
- for await (const n of xs(e))
1847
- yield* Ps(n, t);
1848
- }, xs = async function* (e) {
1119
+ }, pr = async function* (e, t) {
1120
+ for await (const n of hr(e))
1121
+ yield* dr(n, t);
1122
+ }, hr = async function* (e) {
1849
1123
  if (e[Symbol.asyncIterator]) {
1850
1124
  yield* e;
1851
1125
  return;
@@ -1861,677 +1135,279 @@ const Rs = typeof XMLHttpRequest < "u", _s = Rs && function(e) {
1861
1135
  } finally {
1862
1136
  await t.cancel();
1863
1137
  }
1864
- }, on = (e, t, n, r) => {
1865
- const o = Ts(e, t);
1866
- let s = 0, i, c = (l) => {
1867
- i || (i = !0, r && r(l));
1138
+ }, $e = (e, t, n, r) => {
1139
+ const o = pr(e, t);
1140
+ let s = 0, i, a = (f) => {
1141
+ i || (i = !0, r && r(f));
1868
1142
  };
1869
- return new ReadableStream(
1870
- {
1871
- async pull(l) {
1872
- try {
1873
- const { done: u, value: f } = await o.next();
1874
- if (u) {
1875
- c(), l.close();
1876
- return;
1877
- }
1878
- let p = f.byteLength;
1879
- if (n) {
1880
- let g = s += p;
1881
- n(g);
1882
- }
1883
- l.enqueue(new Uint8Array(f));
1884
- } catch (u) {
1885
- throw c(u), u;
1143
+ return new ReadableStream({
1144
+ async pull(f) {
1145
+ try {
1146
+ const { done: l, value: u } = await o.next();
1147
+ if (l) {
1148
+ a(), f.close();
1149
+ return;
1886
1150
  }
1887
- },
1888
- cancel(l) {
1889
- return c(l), o.return();
1151
+ let d = u.byteLength;
1152
+ if (n) {
1153
+ let m = s += d;
1154
+ n(m);
1155
+ }
1156
+ f.enqueue(new Uint8Array(u));
1157
+ } catch (l) {
1158
+ throw a(l), l;
1890
1159
  }
1891
1160
  },
1892
- {
1893
- highWaterMark: 2
1894
- }
1895
- );
1896
- }, Y = `\r
1897
- `, sn = (e) => String(e).replace(/\r\n|\r|\n/g, Y), an = (e) => String(e).replace(
1898
- /[\r\n"]/g,
1899
- (t) => t === "\r" ? "%0D" : t === `
1900
- ` ? "%0A" : "%22"
1901
- ), Pe = (e, t) => {
1902
- let n = 0;
1903
- for (let r = 0; r < e.length; r++) {
1904
- const o = e.charCodeAt(r);
1905
- t && (o === 13 || o === 10) ? (o === 13 && e.charCodeAt(r + 1) === 10 && r++, n += 2) : o < 128 ? n++ : o < 2048 ? n += 2 : o >= 55296 && o <= 56319 && e.charCodeAt(r + 1) >= 56320 && e.charCodeAt(r + 1) <= 57343 ? (n += 4, r++) : n += 3;
1906
- }
1907
- return n;
1908
- };
1909
- class Me extends TypeError {
1910
- constructor(t, n) {
1911
- super(t), this.name = "FormDataError", this.reason = n;
1912
- }
1913
- }
1914
- function Cs(e, t, n, r, o) {
1915
- if (!a.isFunction(t))
1916
- throw new Me("Blob is not supported", "blob");
1917
- if (!a.isString(o) || !/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(o) || / $/.test(o))
1918
- throw new Me("Invalid multipart boundary", "boundary");
1919
- const s = "--" + o + "--" + Y;
1920
- let i = s.length;
1921
- const c = [], l = (f) => {
1922
- if (i + f > n) throw r();
1923
- };
1924
- l(0);
1925
- for (const [f, p] of e) {
1926
- const g = a.isString(p), w = g ? Pe(p, !0) : p.size;
1927
- if (!Number.isFinite(w) || w < 0)
1928
- throw new Me("Unsupported FormData part size", "part");
1929
- l(
1930
- w + Pe(f, !0) + (!g && p.name ? Pe(p.name, !1) : 0) + (!g && p.type ? Pe(p.type, !1) : 0)
1931
- );
1932
- let O = "--" + o + Y + 'Content-Disposition: form-data; name="' + an(sn(f)) + '"';
1933
- g || (O += '; filename="' + an(a.isString(p.name) ? p.name : "blob") + '"' + Y + "Content-Type: " + String(p.type || "application/octet-stream").replace(/[\r\n]/g, "")), O += Y + Y;
1934
- const S = Pe(O, !1) + w + Y.length;
1935
- l(S), i += S, c.push({ header: O, value: p, isString: g });
1936
- }
1937
- const u = [];
1938
- for (const f of c)
1939
- u.push(f.header, f.isString ? sn(f.value) : f.value, Y);
1940
- return u.push(s), new t(u, { type: "multipart/form-data; boundary=" + o });
1941
- }
1942
- function Ds(e, t, n, r, o) {
1943
- if (!a.isFunction(t))
1944
- throw new h("Blob is not supported", h.ERR_NOT_SUPPORT);
1945
- if (o === void 0)
1946
- if (a.isFunction(N.generateString))
1947
- o = "axios-" + N.generateString(36, "0123456789abcdef");
1948
- else {
1949
- const s = a.global.crypto;
1950
- if (!s || !a.isFunction(s.getRandomValues))
1951
- throw new h("Random byte generation is not supported", h.ERR_NOT_SUPPORT);
1952
- const i = new Uint8Array(18);
1953
- s.getRandomValues(i), o = "axios-" + Array.from(i, (c) => ("0" + c.toString(16)).slice(-2)).join("");
1954
- }
1955
- try {
1956
- return Cs(e, t, n, r, o);
1957
- } catch (s) {
1958
- if (s instanceof Me) {
1959
- const i = s.reason === "boundary" ? h.ERR_BAD_OPTION_VALUE : h.ERR_BAD_REQUEST;
1960
- throw new h(s.message, i);
1961
- }
1962
- throw s;
1963
- }
1964
- }
1965
- const cn = (e) => e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102, rr = (e, t, n) => t + 2 < n && cn(e.charCodeAt(t + 1)) && cn(e.charCodeAt(t + 2)), ln = (e) => e <= 57 ? e - 48 : (e & 223) - 55, Us = (e) => e >= 65 && e <= 90 || // A-Z
1966
- e >= 97 && e <= 122 || // a-z
1967
- e >= 48 && e <= 57 || // 0-9
1968
- e === 43 || // +
1969
- e === 47 || // /
1970
- e === 45 || // - (base64url)
1971
- e === 95, Ns = (e) => e === 9 || e === 10 || e === 12 || e === 13 || e === 32, Ls = (e) => {
1972
- const t = Math.floor(e / 4), n = e % 4;
1973
- return t * 3 + (n === 2 ? 1 : n === 3 ? 2 : 0);
1974
- }, ks = (e) => {
1975
- const t = e.length;
1976
- let n = 0;
1977
- return t > 0 && e.charCodeAt(t - 1) === 61 && (n++, t > 1 && e.charCodeAt(t - 2) === 61 && n++), Math.floor((t - n) * 3 / 4);
1978
- }, Fs = (e) => {
1979
- const t = e.length;
1980
- let n = 0, r = 0, o = !1;
1981
- for (let s = 0; s < t; s++) {
1982
- let i = e.charCodeAt(s);
1983
- if (i === 37 && rr(e, s, t) && (i = ln(e.charCodeAt(s + 1)) * 16 + ln(e.charCodeAt(s + 2)), s += 2), !Ns(i)) {
1984
- if (i === 61) {
1985
- r++;
1986
- continue;
1987
- }
1988
- if (!Us(i) || r > 0) {
1989
- o = !0;
1990
- continue;
1991
- }
1992
- n++;
1161
+ cancel(f) {
1162
+ return a(f), o.return();
1993
1163
  }
1994
- }
1995
- return o || r > 2 || r > 0 && (n + r) % 4 !== 0 || n % 4 === 1 ? ks(e) : Ls(n);
1996
- }, js = (e, t, n) => {
1997
- if (!e || typeof e != "string" || !/^data:/i.test(e)) return 0;
1998
- const r = e.indexOf(",");
1999
- if (r < 0) return 0;
2000
- const o = e.slice(5, r), s = e.slice(r + 1);
2001
- if (n.test(o))
2002
- return t(s);
2003
- let c = 0;
2004
- for (let l = 0, u = s.length; l < u; l++) {
2005
- const f = s.charCodeAt(l);
2006
- if (f === 37 && rr(s, l, u))
2007
- c += 1, l += 2;
2008
- else if (f < 128)
2009
- c += 1;
2010
- else if (f < 2048)
2011
- c += 2;
2012
- else if (f >= 55296 && f <= 56319 && l + 1 < u) {
2013
- const p = s.charCodeAt(l + 1);
2014
- p >= 56320 && p <= 57343 ? (c += 4, l++) : c += 3;
2015
- } else
2016
- c += 3;
2017
- }
2018
- return c;
2019
- };
2020
- function Is(e) {
2021
- const t = typeof e == "string" ? e.indexOf("#") : -1;
2022
- return js(
2023
- t === -1 ? e : e.slice(0, t),
2024
- Fs,
2025
- /; *base64[\t\n\f\r ]*$/i
2026
- );
2027
- }
2028
- const kt = "1.21.1", un = 64 * 1024, fn = {
2029
- cache: "default",
2030
- redirect: "follow",
2031
- referrer: "about:client",
2032
- referrerPolicy: "",
2033
- mode: "cors",
2034
- integrity: "",
2035
- keepalive: !1,
2036
- priority: "auto",
2037
- window: null
2038
- }, { isFunction: je } = a, Bs = (e) => encodeURIComponent(e).replace(
2039
- /%([0-9A-F]{2})/gi,
2040
- (t, n) => String.fromCharCode(parseInt(n, 16))
2041
- ), dn = (e) => {
2042
- if (!a.isString(e))
2043
- return e;
2044
- try {
2045
- return decodeURIComponent(e);
2046
- } catch {
2047
- return e;
2048
- }
2049
- }, Ie = (e, ...t) => {
1164
+ }, {
1165
+ highWaterMark: 2
1166
+ });
1167
+ }, le = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Ct = 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())), xt = (e, ...t) => {
2050
1168
  try {
2051
1169
  return !!e(...t);
2052
1170
  } catch {
2053
1171
  return !1;
2054
1172
  }
2055
- }, vs = (e) => {
2056
- const t = e.indexOf("://");
2057
- let n = e;
2058
- return t !== -1 && (n = n.slice(t + 3)), n.includes("@") || n.includes(":");
2059
- }, Hs = (e) => {
2060
- const t = a.global !== void 0 && a.global !== null ? a.global : globalThis, { ReadableStream: n, TextEncoder: r } = t;
2061
- e = a.merge.call(
2062
- {
2063
- skipUndefined: !0
2064
- },
2065
- {
2066
- Request: t.Request,
2067
- Response: t.Response,
2068
- Blob: t.Blob
2069
- },
2070
- e
2071
- );
2072
- const o = a.hasOwnProp(e, "fetch") ? e.fetch : void 0, { Request: s, Response: i, Blob: c } = e, l = o ? je(o) : typeof fetch == "function", u = je(s), f = je(i);
2073
- if (!l)
2074
- return !1;
2075
- const p = l && je(n), g = l && (typeof r == "function" ? /* @__PURE__ */ ((m) => (d) => m.encode(d))(new r()) : async (m) => new Uint8Array(await new s(m).arrayBuffer())), w = u && p && Ie(() => {
2076
- let m = !1;
2077
- const d = new s(N.origin, {
2078
- body: new n(),
2079
- method: "POST",
2080
- get duplex() {
2081
- return m = !0, "half";
2082
- }
2083
- }), x = d.headers.has("Content-Type");
2084
- return d.body != null && d.body.cancel(), m && !x;
2085
- }), O = f && p && Ie(() => a.isReadableStream(new i("").body)), S = Object.assign(/* @__PURE__ */ Object.create(null), fn);
2086
- u && !Ie(() => new s(N.origin, S)) && (delete S.cache, Ie(() => new s(N.origin, S)) || (S.cache = fn.cache));
2087
- const E = {
2088
- stream: O && ((m) => m.body)
2089
- };
2090
- l && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((m) => {
2091
- !E[m] && (E[m] = (d, x) => {
2092
- let R = d && d[m];
2093
- if (R)
2094
- return R.call(d);
2095
- throw new h(
2096
- `Response type '${m}' is not supported`,
2097
- h.ERR_NOT_SUPPORT,
2098
- x
2099
- );
1173
+ }, yr = Ct && xt(() => {
1174
+ let e = !1;
1175
+ const t = new Request(T.origin, {
1176
+ body: new ReadableStream(),
1177
+ method: "POST",
1178
+ get duplex() {
1179
+ return e = !0, "half";
1180
+ }
1181
+ }).headers.has("Content-Type");
1182
+ return e && !t;
1183
+ }), ze = 64 * 1024, Re = Ct && xt(() => c.isReadableStream(new Response("").body)), oe = {
1184
+ stream: Re && ((e) => e.body)
1185
+ };
1186
+ le && ((e) => {
1187
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1188
+ !oe[t] && (oe[t] = c.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1189
+ throw new w(`Response type '${t}' is not supported`, w.ERR_NOT_SUPPORT, r);
2100
1190
  });
2101
1191
  });
2102
- const P = async (m) => {
2103
- if (m == null)
2104
- return 0;
2105
- if (a.isBlob(m))
2106
- return m.size;
2107
- if (a.isArrayBufferView(m) || a.isArrayBuffer(m))
2108
- return m.byteLength;
2109
- if (a.isURLSearchParams(m) && (m = m + ""), a.isString(m))
2110
- return (await g(m)).byteLength;
2111
- }, y = async (m, d) => {
2112
- const x = a.toFiniteNumber(m.getContentLength());
2113
- return x ?? P(d);
2114
- };
2115
- return async (m) => {
2116
- let {
2117
- url: d,
2118
- method: x,
2119
- data: R,
2120
- signal: L,
2121
- cancelToken: _,
2122
- timeout: D,
2123
- onDownloadProgress: H,
2124
- onUploadProgress: U,
2125
- responseType: j,
2126
- headers: q,
2127
- withCredentials: Ne = "same-origin",
2128
- fetchOptions: et,
2129
- maxContentLength: V,
2130
- maxBodyLength: ye,
2131
- maxRedirects: mr
2132
- } = nr(m);
2133
- const be = a.isNumber(V) && V > -1, Oe = a.isNumber(ye) && ye > -1, It = (A) => a.hasOwnProp(m, A) ? m[A] : void 0;
2134
- let Bt = o || fetch;
2135
- j = j ? (j + "").toLowerCase() : "text";
2136
- let Z = As(
2137
- [L, _ && _.toAbortSignal()],
2138
- D
2139
- ), I = null;
2140
- const oe = Z && Z.unsubscribe && (() => {
2141
- Z.unsubscribe();
2142
- });
2143
- let se, Ee = null, tt = null;
2144
- const nt = () => new h(
2145
- "Request body larger than maxBodyLength limit",
2146
- h.ERR_BAD_REQUEST,
2147
- m,
2148
- I
2149
- );
2150
- try {
2151
- let A;
2152
- const z = It("auth");
2153
- if (z) {
2154
- const b = a.getSafeProp(z, "username") || "", B = a.getSafeProp(z, "password") || "";
2155
- A = {
2156
- username: b,
2157
- password: B
2158
- };
2159
- }
2160
- let M;
2161
- if (vs(d)) {
2162
- if (M = new URL(d, N.origin), !A && (M.username || M.password)) {
2163
- const b = dn(M.username), B = dn(M.password);
2164
- A = {
2165
- username: b,
2166
- password: B
2167
- };
2168
- }
2169
- (M.username || M.password) && (M.username = "", M.password = "", d = M.href);
2170
- }
2171
- if (A && (q.delete("authorization"), q.set(
2172
- "Authorization",
2173
- "Basic " + btoa(Bs((A.username || "") + ":" + (A.password || "")))
2174
- )), be && M && M.protocol === "data:" && Is(M.href) > V)
2175
- throw new h(
2176
- "maxContentLength size of " + V + " exceeded",
2177
- h.ERR_BAD_RESPONSE,
2178
- m,
2179
- I
2180
- );
2181
- const Le = a.isSpecCompliantForm(R) && k.from(It("headers")).getContentType();
2182
- let ke;
2183
- if (a.isString(Le) && /^multipart\/form-data(?:\s*;|$)/i.test(Le.trim())) {
2184
- const b = k.parseParameters(Le);
2185
- a.hasOwnProp(b, "boundary") && (ke = b.boundary);
2186
- }
2187
- if (a.isSpecCompliantForm(R) && x !== "get" && x !== "head" && (Oe || U && w || ke !== void 0) && (R = Ds(
2188
- R,
2189
- c,
2190
- Oe ? ye : 1 / 0,
2191
- nt,
2192
- ke
2193
- ), q.setContentType(ke === void 0 ? R.type : Le), se = R.size), Oe && x !== "get" && x !== "head") {
2194
- const b = await P(R);
2195
- if (typeof b == "number" && isFinite(b) && (se = b, b > ye))
2196
- throw nt();
2197
- }
2198
- const Fe = Oe && (a.isReadableStream(R) || a.isStream(R)), vt = (b, B, pe) => on(
2199
- b,
2200
- un,
2201
- (ie) => {
2202
- if (Oe && ie > ye)
2203
- throw Ee = nt();
2204
- B && B(ie);
2205
- },
2206
- pe
2207
- );
2208
- if (w && x !== "get" && x !== "head" && (U || Fe)) {
2209
- if (se = se ?? await y(q, R), se !== 0 || Fe) {
2210
- let b = new s(d, {
2211
- method: "POST",
2212
- body: R,
2213
- duplex: "half"
2214
- }), B;
2215
- if (a.isFormData(R) && (B = b.headers.get("content-type")) && q.setContentType(B), b.body) {
2216
- const [pe, ie] = U && Zt(
2217
- se,
2218
- Ke(Yt(U))
2219
- ) || [];
2220
- R = vt(b.body, pe, ie);
2221
- }
2222
- }
2223
- } else if (Fe && !u && p && x !== "get" && x !== "head")
2224
- R = vt(R);
2225
- else if (Fe && u && !w && x !== "get" && x !== "head")
2226
- throw new h(
2227
- "Stream request bodies are not supported by the current fetch implementation",
2228
- h.ERR_NOT_SUPPORT,
2229
- m,
2230
- I
1192
+ })(new Response());
1193
+ const wr = async (e) => {
1194
+ if (e == null)
1195
+ return 0;
1196
+ if (c.isBlob(e))
1197
+ return e.size;
1198
+ if (c.isSpecCompliantForm(e))
1199
+ return (await new Request(T.origin, {
1200
+ method: "POST",
1201
+ body: e
1202
+ }).arrayBuffer()).byteLength;
1203
+ if (c.isArrayBufferView(e) || c.isArrayBuffer(e))
1204
+ return e.byteLength;
1205
+ if (c.isURLSearchParams(e) && (e = e + ""), c.isString(e))
1206
+ return (await mr(e)).byteLength;
1207
+ }, gr = async (e, t) => {
1208
+ const n = c.toFiniteNumber(e.getContentLength());
1209
+ return n ?? wr(t);
1210
+ }, br = le && (async (e) => {
1211
+ let {
1212
+ url: t,
1213
+ method: n,
1214
+ data: r,
1215
+ signal: o,
1216
+ cancelToken: s,
1217
+ timeout: i,
1218
+ onDownloadProgress: a,
1219
+ onUploadProgress: f,
1220
+ responseType: l,
1221
+ headers: u,
1222
+ withCredentials: d = "same-origin",
1223
+ fetchOptions: m
1224
+ } = _t(e);
1225
+ l = l ? (l + "").toLowerCase() : "text";
1226
+ let g = fr([o, s && s.toAbortSignal()], i), p;
1227
+ const y = g && g.unsubscribe && (() => {
1228
+ g.unsubscribe();
1229
+ });
1230
+ let h;
1231
+ try {
1232
+ if (f && yr && n !== "get" && n !== "head" && (h = await gr(u, r)) !== 0) {
1233
+ let O = new Request(t, {
1234
+ method: "POST",
1235
+ body: r,
1236
+ duplex: "half"
1237
+ }), P;
1238
+ if (c.isFormData(r) && (P = O.headers.get("content-type")) && u.setContentType(P), O.body) {
1239
+ const [F, Q] = qe(
1240
+ h,
1241
+ re(Me(f))
2231
1242
  );
2232
- a.isString(Ne) || (Ne = Ne ? "include" : "omit");
2233
- const gr = u && "credentials" in s.prototype;
2234
- if (a.isFormData(R)) {
2235
- const b = q.getContentType();
2236
- b && /^multipart\/form-data/i.test(b) && !/boundary=/i.test(b) && q.delete("content-type");
1243
+ r = $e(O.body, ze, F, Q);
2237
1244
  }
2238
- q.set("User-Agent", "axios/" + kt, !1);
2239
- const W = et == null ? et : Object.assign(/* @__PURE__ */ Object.create(null), et);
2240
- W && (delete W.body, delete W.headers, delete W.method, delete W.signal, delete W.duplex, delete W.credentials);
2241
- const J = Object.assign(/* @__PURE__ */ Object.create(null), W, {
2242
- signal: Z,
2243
- method: x.toUpperCase(),
2244
- headers: Bn(q.normalize()),
2245
- body: R,
2246
- duplex: "half",
2247
- credentials: gr ? Ne : void 0
1245
+ }
1246
+ c.isString(d) || (d = d ? "include" : "omit");
1247
+ const E = "credentials" in Request.prototype;
1248
+ p = new Request(t, {
1249
+ ...m,
1250
+ signal: g,
1251
+ method: n.toUpperCase(),
1252
+ headers: u.normalize().toJSON(),
1253
+ body: r,
1254
+ duplex: "half",
1255
+ credentials: E ? d : void 0
1256
+ });
1257
+ let R = await fetch(p, m);
1258
+ const S = Re && (l === "stream" || l === "response");
1259
+ if (Re && (a || S && y)) {
1260
+ const O = {};
1261
+ ["status", "statusText", "headers"].forEach((Fe) => {
1262
+ O[Fe] = R[Fe];
2248
1263
  });
2249
- u && (a.forEach(S, (b, B) => {
2250
- J[B] === void 0 && (J[B] = b);
2251
- }), J.signal === void 0 && (J.signal = null), J.body === void 0 && (J.body = null)), mr === 0 && (J.redirect = "manual", W && (W.redirect = "manual")), I = u && new s(d, J);
2252
- let K = await (u ? Bt(I, W) : Bt(d, J));
2253
- const Ht = k.from(K.headers);
2254
- if (be) {
2255
- const b = a.toFiniteNumber(Ht.getContentLength());
2256
- if (b != null && b > V)
2257
- throw new h(
2258
- "maxContentLength size of " + V + " exceeded",
2259
- h.ERR_BAD_RESPONSE,
2260
- m,
2261
- I
2262
- );
2263
- }
2264
- const rt = O && (j === "stream" || j === "response");
2265
- if (O && K.body && (H || be || rt && oe)) {
2266
- const b = {};
2267
- ["status", "statusText", "headers"].forEach((Se) => {
2268
- b[Se] = K[Se];
2269
- });
2270
- const B = a.toFiniteNumber(Ht.getContentLength()), [pe, ie] = H && Zt(
2271
- B,
2272
- Ke(Yt(H), !0)
2273
- ) || [];
2274
- let qt = 0;
2275
- const wr = (Se) => {
2276
- if (be && (qt = Se, qt > V))
2277
- throw tt = new h(
2278
- "maxContentLength size of " + V + " exceeded",
2279
- h.ERR_BAD_RESPONSE,
2280
- m,
2281
- I
2282
- );
2283
- pe && pe(Se);
2284
- };
2285
- K = new i(
2286
- on(K.body, un, wr, () => {
2287
- ie && ie(), oe && oe();
2288
- }),
2289
- b
2290
- );
2291
- }
2292
- j = j || "text";
2293
- let X = await E[a.findKey(E, j) || "text"](
2294
- K,
2295
- m
1264
+ const P = c.toFiniteNumber(R.headers.get("content-length")), [F, Q] = a && qe(
1265
+ P,
1266
+ re(Me(a), !0)
1267
+ ) || [];
1268
+ R = new Response(
1269
+ $e(R.body, ze, F, () => {
1270
+ Q && Q(), y && y();
1271
+ }),
1272
+ O
2296
1273
  );
2297
- if (be && !O && !rt) {
2298
- let b;
2299
- if (X != null && (typeof X.byteLength == "number" ? b = X.byteLength : typeof X.size == "number" ? b = X.size : typeof X == "string" && (b = typeof r == "function" ? new r().encode(X).byteLength : X.length)), typeof b == "number" && b > V)
2300
- throw new h(
2301
- "maxContentLength size of " + V + " exceeded",
2302
- h.ERR_BAD_RESPONSE,
2303
- m,
2304
- I
2305
- );
2306
- }
2307
- return !rt && oe && oe(), await new Promise((b, B) => {
2308
- Gn(b, B, {
2309
- data: X,
2310
- headers: k.from(K.headers),
2311
- status: K.status,
2312
- statusText: K.statusText,
2313
- config: m,
2314
- request: I
2315
- });
1274
+ }
1275
+ l = l || "text";
1276
+ let k = await oe[c.findKey(oe, l) || "text"](R, e);
1277
+ return !S && y && y(), await new Promise((O, P) => {
1278
+ Ot(O, P, {
1279
+ data: k,
1280
+ headers: _.from(R.headers),
1281
+ status: R.status,
1282
+ statusText: R.statusText,
1283
+ config: e,
1284
+ request: p
2316
1285
  });
2317
- } catch (A) {
2318
- if (oe && oe(), Z && Z.aborted && Z.reason instanceof h) {
2319
- const z = Z.reason;
2320
- throw z.config = m, I && (z.request = I), A !== z && Object.defineProperty(z, "cause", {
2321
- __proto__: null,
2322
- value: A,
2323
- writable: !0,
2324
- enumerable: !1,
2325
- configurable: !0
2326
- }), z;
2327
- }
2328
- if (Ee)
2329
- throw I && !Ee.request && (Ee.request = I), Ee;
2330
- if (tt)
2331
- throw tt;
2332
- if (A instanceof h)
2333
- throw I && !A.request && (A.request = I), A;
2334
- if (A && A.name === "TypeError" && /Load failed|fetch/i.test(A.message)) {
2335
- const z = new h(
2336
- "Network Error",
2337
- h.ERR_NETWORK,
2338
- m,
2339
- I,
2340
- A && A.response
2341
- );
2342
- throw Object.defineProperty(z, "cause", {
2343
- __proto__: null,
2344
- value: A.cause || A,
2345
- writable: !0,
2346
- enumerable: !1,
2347
- configurable: !0
2348
- }), z;
1286
+ });
1287
+ } catch (E) {
1288
+ throw y && y(), E && E.name === "TypeError" && /Load failed|fetch/i.test(E.message) ? Object.assign(
1289
+ new w("Network Error", w.ERR_NETWORK, e, p),
1290
+ {
1291
+ cause: E.cause || E
2349
1292
  }
2350
- throw h.from(A, A && A.code, m, I, A && A.response);
2351
- }
2352
- };
2353
- }, qs = /* @__PURE__ */ new Map(), or = (e) => {
2354
- const t = /* @__PURE__ */ Object.create(null), n = e && a.hasOwnProp(e, "env") && e.env;
2355
- ["fetch", "Request", "Response", "Blob"].forEach((w) => {
2356
- n && a.hasOwnProp(n, w) && (t[w] = n[w]);
2357
- });
2358
- const { fetch: r, Request: o, Response: s, Blob: i } = t, c = [o, s, r, i];
2359
- let l = c.length, u = l, f, p, g = qs;
2360
- for (; u--; )
2361
- f = c[u], p = g.get(f), p === void 0 && g.set(f, p = u ? /* @__PURE__ */ new Map() : Hs(t)), g = p;
2362
- return p;
2363
- };
2364
- or();
2365
- const Ft = {
2366
- http: zo,
2367
- xhr: _s,
2368
- fetch: {
2369
- get: or
1293
+ ) : w.from(E, E && E.code, e, p);
2370
1294
  }
1295
+ }), Se = {
1296
+ http: Fn,
1297
+ xhr: lr,
1298
+ fetch: br
2371
1299
  };
2372
- a.forEach(Ft, (e, t) => {
1300
+ c.forEach(Se, (e, t) => {
2373
1301
  if (e) {
2374
1302
  try {
2375
- Object.defineProperty(e, "name", { __proto__: null, value: t });
1303
+ Object.defineProperty(e, "name", { value: t });
2376
1304
  } catch {
2377
1305
  }
2378
- Object.defineProperty(e, "adapterName", { __proto__: null, value: t });
1306
+ Object.defineProperty(e, "adapterName", { value: t });
2379
1307
  }
2380
1308
  });
2381
- const pn = (e) => `- ${e}`, Ms = (e) => a.isFunction(e) || e === null || e === !1;
2382
- function zs(e, t) {
2383
- e = a.isArray(e) ? e : [e];
2384
- const { length: n } = e;
2385
- let r, o;
2386
- const s = {};
2387
- for (let i = 0; i < n; i++) {
2388
- r = e[i];
2389
- let c;
2390
- if (o = r, !Ms(r) && (o = Ft[(c = String(r)).toLowerCase()], o === void 0))
2391
- throw new h(`Unknown adapter '${c}'`);
2392
- if (o && (a.isFunction(o) || (o = o.get(t))))
2393
- break;
2394
- s[c || "#" + i] = o;
2395
- }
2396
- if (!o) {
2397
- const i = Object.entries(s).map(
2398
- ([l, u]) => `adapter ${l} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
2399
- );
2400
- let c = n ? i.length > 1 ? `since :
2401
- ` + i.map(pn).join(`
2402
- `) : " " + pn(i[0]) : "as no adapter specified";
2403
- throw new h(
2404
- "There is no suitable adapter to dispatch the request " + c,
2405
- h.ERR_NOT_SUPPORT
2406
- );
2407
- }
2408
- return o;
2409
- }
2410
- const sr = {
2411
- /**
2412
- * Resolve an adapter from a list of adapter names or functions.
2413
- * @type {Function}
2414
- */
2415
- getAdapter: zs,
2416
- /**
2417
- * Exposes all known adapters
2418
- * @type {Object<string, Function|Object>}
2419
- */
2420
- adapters: Ft
1309
+ const Je = (e) => `- ${e}`, Er = (e) => c.isFunction(e) || e === null || e === !1, kt = {
1310
+ getAdapter: (e) => {
1311
+ e = c.isArray(e) ? e : [e];
1312
+ const { length: t } = e;
1313
+ let n, r;
1314
+ const o = {};
1315
+ for (let s = 0; s < t; s++) {
1316
+ n = e[s];
1317
+ let i;
1318
+ if (r = n, !Er(n) && (r = Se[(i = String(n)).toLowerCase()], r === void 0))
1319
+ throw new w(`Unknown adapter '${i}'`);
1320
+ if (r)
1321
+ break;
1322
+ o[i || "#" + s] = r;
1323
+ }
1324
+ if (!r) {
1325
+ const s = Object.entries(o).map(
1326
+ ([a, f]) => `adapter ${a} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1327
+ );
1328
+ let i = t ? s.length > 1 ? `since :
1329
+ ` + s.map(Je).join(`
1330
+ `) : " " + Je(s[0]) : "as no adapter specified";
1331
+ throw new w(
1332
+ "There is no suitable adapter to dispatch the request " + i,
1333
+ "ERR_NOT_SUPPORT"
1334
+ );
1335
+ }
1336
+ return r;
1337
+ },
1338
+ adapters: Se
2421
1339
  };
2422
- function ut(e) {
1340
+ function he(e) {
2423
1341
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
2424
- throw new Ue(null, e);
2425
- }
2426
- function $s() {
2427
- return typeof performance < "u" && a.isFunction(performance.now) ? () => performance.now() : Date.now;
2428
- }
2429
- function hn(e, t) {
2430
- return Math.max(0, Math.round(e() - t));
2431
- }
2432
- function ft(e) {
2433
- const t = a.toSafeFlatObject(e);
2434
- ut(t), t.headers = k.from(a.getSafeProp(t, "headers")), t.data = at.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1);
2435
- const n = sr.getAdapter(t.adapter || De.adapter, t), r = $s(), o = r();
2436
- return n(t).then(
2437
- function(i) {
2438
- ut(t), i.duration = hn(r, o), t.response = i;
2439
- try {
2440
- i.data = at.call(t, t.transformResponse, i);
2441
- } finally {
2442
- delete t.response;
2443
- }
2444
- return i.headers = k.from(i.headers), i;
2445
- },
2446
- function(i) {
2447
- if (!Qn(i) && (ut(t), i && i.response)) {
2448
- i.response.duration = hn(r, o), t.response = i.response;
2449
- try {
2450
- i.response.data = at.call(
2451
- t,
2452
- t.transformResponse,
2453
- i.response
2454
- );
2455
- } finally {
2456
- delete t.response;
2457
- }
2458
- i.response.headers = k.from(i.response.headers);
2459
- }
2460
- return Promise.reject(i);
2461
- }
2462
- );
1342
+ throw new M(null, e);
1343
+ }
1344
+ function Ve(e) {
1345
+ return he(e), e.headers = _.from(e.headers), e.data = pe.call(
1346
+ e,
1347
+ e.transformRequest
1348
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), kt.getAdapter(e.adapter || K.adapter)(e).then(function(r) {
1349
+ return he(e), r.data = pe.call(
1350
+ e,
1351
+ e.transformResponse,
1352
+ r
1353
+ ), r.headers = _.from(r.headers), r;
1354
+ }, function(r) {
1355
+ return Tt(r) || (he(e), r && r.response && (r.response.data = pe.call(
1356
+ e,
1357
+ e.transformResponse,
1358
+ r.response
1359
+ ), r.response.headers = _.from(r.response.headers))), Promise.reject(r);
1360
+ });
2463
1361
  }
2464
- const Ye = {};
1362
+ const Pt = "1.11.0", fe = {};
2465
1363
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
2466
- Ye[e] = function(r) {
1364
+ fe[e] = function(r) {
2467
1365
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
2468
1366
  };
2469
1367
  });
2470
- const mn = {};
2471
- Ye.transitional = function(t, n, r) {
1368
+ const We = {};
1369
+ fe.transitional = function(t, n, r) {
2472
1370
  function o(s, i) {
2473
- return "[Axios v" + kt + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
1371
+ return "[Axios v" + Pt + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
2474
1372
  }
2475
- return (s, i, c) => {
1373
+ return (s, i, a) => {
2476
1374
  if (t === !1)
2477
- throw new h(
1375
+ throw new w(
2478
1376
  o(i, " has been removed" + (n ? " in " + n : "")),
2479
- h.ERR_DEPRECATED
1377
+ w.ERR_DEPRECATED
2480
1378
  );
2481
- return n && !mn[i] && (mn[i] = !0), t ? t(s, i, c) : !0;
1379
+ return n && !We[i] && (We[i] = !0), t ? t(s, i, a) : !0;
2482
1380
  };
2483
1381
  };
2484
- Ye.spelling = function(t) {
1382
+ fe.spelling = function(t) {
2485
1383
  return (n, r) => !0;
2486
1384
  };
2487
- function Ws(e, t, n) {
2488
- if (typeof e != "object" || e === null)
2489
- throw new h("options must be an object", h.ERR_BAD_OPTION_VALUE);
1385
+ function Rr(e, t, n) {
1386
+ if (typeof e != "object")
1387
+ throw new w("options must be an object", w.ERR_BAD_OPTION_VALUE);
2490
1388
  const r = Object.keys(e);
2491
1389
  let o = r.length;
2492
1390
  for (; o-- > 0; ) {
2493
- const s = r[o], i = Object.prototype.hasOwnProperty.call(t, s) ? t[s] : void 0;
1391
+ const s = r[o], i = t[s];
2494
1392
  if (i) {
2495
- const c = e[s], l = c === void 0 || i(c, s, e);
2496
- if (l !== !0)
2497
- throw new h(
2498
- "option " + s + " must be " + l,
2499
- h.ERR_BAD_OPTION_VALUE
2500
- );
1393
+ const a = e[s], f = a === void 0 || i(a, s, e);
1394
+ if (f !== !0)
1395
+ throw new w("option " + s + " must be " + f, w.ERR_BAD_OPTION_VALUE);
2501
1396
  continue;
2502
1397
  }
2503
1398
  if (n !== !0)
2504
- throw new h("Unknown option " + s, h.ERR_BAD_OPTION);
1399
+ throw new w("Unknown option " + s, w.ERR_BAD_OPTION);
2505
1400
  }
2506
1401
  }
2507
- const ze = {
2508
- assertOptions: Ws,
2509
- validators: Ye
2510
- }, F = ze.validators, dt = (e) => {
2511
- if (e == null || a.isPlainObject(e) || e instanceof k)
2512
- return !0;
2513
- try {
2514
- return a.isObject(e) && a.getSafeProp(e, Symbol.toStringTag) === "AxiosHeaders" && [
2515
- "toJSON",
2516
- "set",
2517
- "get",
2518
- "has",
2519
- "delete",
2520
- "clear",
2521
- "normalize",
2522
- "concat",
2523
- "toString",
2524
- Symbol.iterator
2525
- ].every((t) => a.isFunction(a.getSafeProp(e, t)));
2526
- } catch {
2527
- return !1;
2528
- }
2529
- };
2530
- let ce = class {
1402
+ const ee = {
1403
+ assertOptions: Rr,
1404
+ validators: fe
1405
+ }, x = ee.validators;
1406
+ let v = class {
2531
1407
  constructor(t) {
2532
1408
  this.defaults = t || {}, this.interceptors = {
2533
- request: new Xt(),
2534
- response: new Xt()
1409
+ request: new Be(),
1410
+ response: new Be()
2535
1411
  };
2536
1412
  }
2537
1413
  /**
@@ -2546,157 +1422,112 @@ let ce = class {
2546
1422
  try {
2547
1423
  return await this._request(t, n);
2548
1424
  } catch (r) {
2549
- if (r instanceof Error)
1425
+ if (r instanceof Error) {
1426
+ let o = {};
1427
+ Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
1428
+ const s = o.stack ? o.stack.replace(/^.+\n/, "") : "";
2550
1429
  try {
2551
- let o = {};
2552
- Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
2553
- const s = o.stack;
2554
- let i = "";
2555
- if (typeof s == "string") {
2556
- const c = s.indexOf(`
2557
- `);
2558
- i = c === -1 ? "" : s.slice(c + 1);
2559
- }
2560
- if (!r.stack)
2561
- r.stack = i;
2562
- else if (i) {
2563
- const c = i.indexOf(`
2564
- `), l = c === -1 ? -1 : i.indexOf(`
2565
- `, c + 1), u = l === -1 ? i : i.slice(l + 1), f = String(r.stack), p = qo(r, f), g = p === -1 ? f : f.slice(0, p), w = p === -1 ? "" : f.slice(p);
2566
- g.endsWith(u) || (r.stack = g + `
2567
- ` + i + w);
2568
- }
1430
+ r.stack ? s && !String(r.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (r.stack += `
1431
+ ` + s) : r.stack = s;
2569
1432
  } catch {
2570
1433
  }
1434
+ }
2571
1435
  throw r;
2572
1436
  }
2573
1437
  }
2574
1438
  _request(t, n) {
2575
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = de(this.defaults, n);
1439
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = B(this.defaults, n);
2576
1440
  const { transitional: r, paramsSerializer: o, headers: s } = n;
2577
- r !== void 0 && ze.assertOptions(
2578
- r,
2579
- {
2580
- silentJSONParsing: F.transitional(F.boolean),
2581
- forcedJSONParsing: F.transitional(F.boolean),
2582
- clarifyTimeoutError: F.transitional(F.boolean),
2583
- legacyInterceptorReqResOrdering: F.transitional(F.boolean),
2584
- advertiseZstdAcceptEncoding: F.transitional(F.boolean),
2585
- validateStatusUndefinedResolves: F.transitional(F.boolean),
2586
- encodeBasicAuthUsername: F.transitional(F.boolean)
2587
- },
2588
- !1
2589
- ), o != null && (a.isFunction(o) ? n.paramsSerializer = {
1441
+ r !== void 0 && ee.assertOptions(r, {
1442
+ silentJSONParsing: x.transitional(x.boolean),
1443
+ forcedJSONParsing: x.transitional(x.boolean),
1444
+ clarifyTimeoutError: x.transitional(x.boolean)
1445
+ }, !1), o != null && (c.isFunction(o) ? n.paramsSerializer = {
2590
1446
  serialize: o
2591
- } : ze.assertOptions(
2592
- o,
2593
- {
2594
- encode: F.function,
2595
- serialize: F.function
2596
- },
2597
- !0
2598
- )), n.allowAbsoluteUrls !== void 0 || (a.hasOwnProp(this.defaults, "allowAbsoluteUrls") && this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ze.assertOptions(
2599
- n,
2600
- {
2601
- baseUrl: F.spelling("baseURL"),
2602
- withXsrfToken: F.spelling("withXSRFToken")
2603
- },
2604
- !0
2605
- ), n.method = (a.getSafeProp(n, "method") || a.getSafeProp(this.defaults, "method") || "get").toLowerCase();
2606
- const i = a.getSafeProp(s, "common"), c = a.getSafeProp(s, n.method), l = s && a.merge(
2607
- dt(i) ? i : void 0,
2608
- dt(c) ? c : void 0
1447
+ } : ee.assertOptions(o, {
1448
+ encode: x.function,
1449
+ serialize: x.function
1450
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ee.assertOptions(n, {
1451
+ baseUrl: x.spelling("baseURL"),
1452
+ withXsrfToken: x.spelling("withXSRFToken")
1453
+ }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1454
+ let i = s && c.merge(
1455
+ s.common,
1456
+ s[n.method]
2609
1457
  );
2610
- s && a.forEach(Xn.concat("common"), (E) => {
2611
- dt(a.getSafeProp(s, E)) && delete s[E];
2612
- }), n.headers = k.concat(l, s);
2613
- const u = [];
1458
+ s && c.forEach(
1459
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1460
+ (p) => {
1461
+ delete s[p];
1462
+ }
1463
+ ), n.headers = _.concat(i, s);
1464
+ const a = [];
2614
1465
  let f = !0;
2615
- this.interceptors.request.forEach(function(P) {
2616
- if (typeof P.runWhen == "function" && P.runWhen(n) === !1)
2617
- return;
2618
- f = f && P.synchronous;
2619
- const y = n.transitional || Nt;
2620
- y && y.legacyInterceptorReqResOrdering ? u.unshift(P.fulfilled, P.rejected) : u.push(P.fulfilled, P.rejected);
1466
+ this.interceptors.request.forEach(function(y) {
1467
+ typeof y.runWhen == "function" && y.runWhen(n) === !1 || (f = f && y.synchronous, a.unshift(y.fulfilled, y.rejected));
2621
1468
  });
2622
- const p = [];
2623
- this.interceptors.response.forEach(function(P) {
2624
- p.push(P.fulfilled, P.rejected);
1469
+ const l = [];
1470
+ this.interceptors.response.forEach(function(y) {
1471
+ l.push(y.fulfilled, y.rejected);
2625
1472
  });
2626
- let g, w = 0, O;
1473
+ let u, d = 0, m;
2627
1474
  if (!f) {
2628
- const E = [ft.bind(this), void 0];
2629
- for (E.unshift(...u), E.push(...p), O = E.length, g = Promise.resolve(n); w < O; )
2630
- g = g.then(E[w++], E[w++]);
2631
- return g;
1475
+ const p = [Ve.bind(this), void 0];
1476
+ for (p.unshift(...a), p.push(...l), m = p.length, u = Promise.resolve(n); d < m; )
1477
+ u = u.then(p[d++], p[d++]);
1478
+ return u;
2632
1479
  }
2633
- O = u.length;
2634
- let S = n;
2635
- for (; w < O; ) {
2636
- const E = u[w++], P = u[w++];
1480
+ m = a.length;
1481
+ let g = n;
1482
+ for (d = 0; d < m; ) {
1483
+ const p = a[d++], y = a[d++];
2637
1484
  try {
2638
- S = E ? E(S) : S;
2639
- } catch (y) {
2640
- if (!P) {
2641
- g = Promise.reject(y);
2642
- break;
2643
- }
2644
- try {
2645
- const m = P.call(this, y);
2646
- a.isThenable(m) && (g = Promise.resolve(m).then(
2647
- () => ft.call(this, S)
2648
- ));
2649
- } catch (m) {
2650
- g = Promise.reject(m);
2651
- }
1485
+ g = p(g);
1486
+ } catch (h) {
1487
+ y.call(this, h);
2652
1488
  break;
2653
1489
  }
2654
1490
  }
2655
- if (!g)
2656
- try {
2657
- g = ft.call(this, S);
2658
- } catch (E) {
2659
- g = Promise.reject(E);
2660
- }
2661
- for (w = 0, O = p.length; w < O; )
2662
- g = g.then(p[w++], p[w++]);
2663
- return g;
1491
+ try {
1492
+ u = Ve.call(this, g);
1493
+ } catch (p) {
1494
+ return Promise.reject(p);
1495
+ }
1496
+ for (d = 0, m = l.length; d < m; )
1497
+ u = u.then(l[d++], l[d++]);
1498
+ return u;
2664
1499
  }
2665
1500
  getUri(t) {
2666
- t = de(this.defaults, t);
2667
- const n = er(t.baseURL, t.url, t.allowAbsoluteUrls, t);
2668
- return zn(n, t.params, t.paramsSerializer);
1501
+ t = B(this.defaults, t);
1502
+ const n = At(t.baseURL, t.url, t.allowAbsoluteUrls);
1503
+ return Et(n, t.params, t.paramsSerializer);
2669
1504
  }
2670
1505
  };
2671
- a.forEach(["delete", "get", "head", "options"], function(t) {
2672
- ce.prototype[t] = async function(n, r) {
2673
- return this.request(
2674
- de(r || {}, {
2675
- method: t,
2676
- url: n,
2677
- data: r && a.hasOwnProp(r, "data") ? r.data : void 0
2678
- })
2679
- );
1506
+ c.forEach(["delete", "get", "head", "options"], function(t) {
1507
+ v.prototype[t] = function(n, r) {
1508
+ return this.request(B(r || {}, {
1509
+ method: t,
1510
+ url: n,
1511
+ data: (r || {}).data
1512
+ }));
2680
1513
  };
2681
1514
  });
2682
- a.forEach(["post", "put", "patch", "query"], function(t) {
1515
+ c.forEach(["post", "put", "patch"], function(t) {
2683
1516
  function n(r) {
2684
- return async function(s, i, c) {
2685
- return this.request(
2686
- de(c || {}, {
2687
- method: t,
2688
- headers: r ? {
2689
- "Content-Type": "multipart/form-data"
2690
- } : {},
2691
- url: s,
2692
- data: i
2693
- })
2694
- );
1517
+ return function(s, i, a) {
1518
+ return this.request(B(a || {}, {
1519
+ method: t,
1520
+ headers: r ? {
1521
+ "Content-Type": "multipart/form-data"
1522
+ } : {},
1523
+ url: s,
1524
+ data: i
1525
+ }));
2695
1526
  };
2696
1527
  }
2697
- ce.prototype[t] = n(), t !== "query" && (ce.prototype[t + "Form"] = n(!0));
1528
+ v.prototype[t] = n(), v.prototype[t + "Form"] = n(!0);
2698
1529
  });
2699
- let Vs = class ir {
1530
+ let Sr = class Ut {
2700
1531
  constructor(t) {
2701
1532
  if (typeof t != "function")
2702
1533
  throw new TypeError("executor must be a function.");
@@ -2713,14 +1544,14 @@ let Vs = class ir {
2713
1544
  r._listeners = null;
2714
1545
  }), this.promise.then = (o) => {
2715
1546
  let s;
2716
- const i = new Promise((c) => {
2717
- r.subscribe(c), s = c;
1547
+ const i = new Promise((a) => {
1548
+ r.subscribe(a), s = a;
2718
1549
  }).then(o);
2719
1550
  return i.cancel = function() {
2720
1551
  r.unsubscribe(s);
2721
1552
  }, i;
2722
- }, t(function(s, i, c) {
2723
- r.reason || (r.reason = new Ue(s, i, c), n(r.reason));
1553
+ }, t(function(s, i, a) {
1554
+ r.reason || (r.reason = new M(s, i, a), n(r.reason));
2724
1555
  });
2725
1556
  }
2726
1557
  /**
@@ -2762,22 +1593,22 @@ let Vs = class ir {
2762
1593
  static source() {
2763
1594
  let t;
2764
1595
  return {
2765
- token: new ir(function(o) {
1596
+ token: new Ut(function(o) {
2766
1597
  t = o;
2767
1598
  }),
2768
1599
  cancel: t
2769
1600
  };
2770
1601
  }
2771
1602
  };
2772
- function Js(e) {
1603
+ function Tr(e) {
2773
1604
  return function(n) {
2774
1605
  return e.apply(null, n);
2775
1606
  };
2776
1607
  }
2777
- function Ks(e) {
2778
- return a.isObject(e) && e.isAxiosError === !0;
1608
+ function Or(e) {
1609
+ return c.isObject(e) && e.isAxiosError === !0;
2779
1610
  }
2780
- const $e = {
1611
+ const Te = {
2781
1612
  Continue: 100,
2782
1613
  SwitchingProtocols: 101,
2783
1614
  Processing: 102,
@@ -2814,22 +1645,14 @@ const $e = {
2814
1645
  Gone: 410,
2815
1646
  LengthRequired: 411,
2816
1647
  PreconditionFailed: 412,
2817
- /**
2818
- * @deprecated Use `ContentTooLarge` instead.
2819
- */
2820
1648
  PayloadTooLarge: 413,
2821
- ContentTooLarge: 413,
2822
1649
  UriTooLong: 414,
2823
1650
  UnsupportedMediaType: 415,
2824
1651
  RangeNotSatisfiable: 416,
2825
1652
  ExpectationFailed: 417,
2826
1653
  ImATeapot: 418,
2827
1654
  MisdirectedRequest: 421,
2828
- /**
2829
- * @deprecated Use `UnprocessableContent` instead.
2830
- */
2831
1655
  UnprocessableEntity: 422,
2832
- UnprocessableContent: 422,
2833
1656
  Locked: 423,
2834
1657
  FailedDependency: 424,
2835
1658
  TooEarly: 425,
@@ -2848,73 +1671,65 @@ const $e = {
2848
1671
  InsufficientStorage: 507,
2849
1672
  LoopDetected: 508,
2850
1673
  NotExtended: 510,
2851
- NetworkAuthenticationRequired: 511,
2852
- WebServerReturnsAnUnknownError: 520,
2853
- WebServerIsDown: 521,
2854
- ConnectionTimedOut: 522,
2855
- OriginIsUnreachable: 523,
2856
- TimeoutOccurred: 524,
2857
- SslHandshakeFailed: 525,
2858
- InvalidSslCertificate: 526
1674
+ NetworkAuthenticationRequired: 511
2859
1675
  };
2860
- Object.entries($e).forEach(([e, t]) => {
2861
- $e[t] === void 0 && ($e[t] = e);
1676
+ Object.entries(Te).forEach(([e, t]) => {
1677
+ Te[t] = e;
2862
1678
  });
2863
- function ar(e) {
2864
- const t = new ce(e), n = Dn(ce.prototype.request, t);
2865
- return a.extend(n, ce.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
2866
- return ar(de(e, o));
1679
+ function Lt(e) {
1680
+ const t = new v(e), n = ct(v.prototype.request, t);
1681
+ return c.extend(n, v.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
1682
+ return Lt(B(e, o));
2867
1683
  }, n;
2868
1684
  }
2869
- const T = ar(De);
2870
- T.Axios = ce;
2871
- T.CanceledError = Ue;
2872
- T.CancelToken = Vs;
2873
- T.isCancel = Qn;
2874
- T.VERSION = kt;
2875
- T.toFormData = Ze;
2876
- T.AxiosError = h;
2877
- T.Cancel = T.CanceledError;
2878
- T.all = function(t) {
1685
+ const b = Lt(K);
1686
+ b.Axios = v;
1687
+ b.CanceledError = M;
1688
+ b.CancelToken = Sr;
1689
+ b.isCancel = Tt;
1690
+ b.VERSION = Pt;
1691
+ b.toFormData = ue;
1692
+ b.AxiosError = w;
1693
+ b.Cancel = b.CanceledError;
1694
+ b.all = function(t) {
2879
1695
  return Promise.all(t);
2880
1696
  };
2881
- T.spread = Js;
2882
- T.isAxiosError = Ks;
2883
- T.mergeConfig = de;
2884
- T.AxiosHeaders = k;
2885
- T.formToJSON = (e) => Kn(a.isHTMLForm(e) ? new FormData(e) : e);
2886
- T.getAdapter = sr.getAdapter;
2887
- T.HttpStatusCode = $e;
2888
- T.default = T;
1697
+ b.spread = Tr;
1698
+ b.isAxiosError = Or;
1699
+ b.mergeConfig = B;
1700
+ b.AxiosHeaders = _;
1701
+ b.formToJSON = (e) => St(c.isHTMLForm(e) ? new FormData(e) : e);
1702
+ b.getAdapter = kt.getAdapter;
1703
+ b.HttpStatusCode = Te;
1704
+ b.default = b;
2889
1705
  const {
2890
- Axios: Ci,
2891
- AxiosError: Di,
2892
- CanceledError: Ui,
2893
- isCancel: Ni,
2894
- CancelToken: Li,
2895
- VERSION: ki,
2896
- all: Fi,
2897
- Cancel: ji,
2898
- isAxiosError: Ii,
2899
- spread: Bi,
2900
- toFormData: vi,
2901
- AxiosHeaders: Hi,
2902
- HttpStatusCode: qi,
2903
- formToJSON: Mi,
2904
- getAdapter: zi,
2905
- mergeConfig: $i,
2906
- create: Wi
2907
- } = T;
2908
- /*! js-cookie v3.0.8 | MIT */
2909
- function Be(e) {
1706
+ Axios: oo,
1707
+ AxiosError: so,
1708
+ CanceledError: io,
1709
+ isCancel: ao,
1710
+ CancelToken: co,
1711
+ VERSION: uo,
1712
+ all: lo,
1713
+ Cancel: fo,
1714
+ isAxiosError: po,
1715
+ spread: ho,
1716
+ toFormData: mo,
1717
+ AxiosHeaders: yo,
1718
+ HttpStatusCode: wo,
1719
+ formToJSON: go,
1720
+ getAdapter: bo,
1721
+ mergeConfig: Eo
1722
+ } = b;
1723
+ /*! js-cookie v3.0.5 | MIT */
1724
+ function X(e) {
2910
1725
  for (var t = 1; t < arguments.length; t++) {
2911
1726
  var n = arguments[t];
2912
1727
  for (var r in n)
2913
- r !== "__proto__" && (e[r] = n[r]);
1728
+ e[r] = n[r];
2914
1729
  }
2915
1730
  return e;
2916
1731
  }
2917
- var Xs = {
1732
+ var Ar = {
2918
1733
  read: function(e) {
2919
1734
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
2920
1735
  },
@@ -2925,23 +1740,23 @@ var Xs = {
2925
1740
  );
2926
1741
  }
2927
1742
  };
2928
- function St(e, t) {
1743
+ function Oe(e, t) {
2929
1744
  function n(o, s, i) {
2930
1745
  if (!(typeof document > "u")) {
2931
- i = Be({}, 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);
2932
- var c = "";
2933
- for (var l in i)
2934
- i[l] && (c += "; " + l, i[l] !== !0 && (c += "=" + i[l].split(";")[0]));
2935
- return document.cookie = o + "=" + e.write(s, o) + c;
1746
+ i = X({}, 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);
1747
+ var a = "";
1748
+ for (var f in i)
1749
+ i[f] && (a += "; " + f, i[f] !== !0 && (a += "=" + i[f].split(";")[0]));
1750
+ return document.cookie = o + "=" + e.write(s, o) + a;
2936
1751
  }
2937
1752
  }
2938
1753
  function r(o) {
2939
1754
  if (!(typeof document > "u" || arguments.length && !o)) {
2940
- for (var s = document.cookie ? document.cookie.split("; ") : [], i = {}, c = 0; c < s.length; c++) {
2941
- var l = s[c].split("="), u = l.slice(1).join("=");
1755
+ for (var s = document.cookie ? document.cookie.split("; ") : [], i = {}, a = 0; a < s.length; a++) {
1756
+ var f = s[a].split("="), l = f.slice(1).join("=");
2942
1757
  try {
2943
- var f = decodeURIComponent(l[0]);
2944
- if (f in i || (i[f] = e.read(u, f)), o === f)
1758
+ var u = decodeURIComponent(f[0]);
1759
+ if (i[u] = e.read(l, u), o === u)
2945
1760
  break;
2946
1761
  } catch {
2947
1762
  }
@@ -2957,16 +1772,16 @@ function St(e, t) {
2957
1772
  n(
2958
1773
  o,
2959
1774
  "",
2960
- Be({}, s, {
1775
+ X({}, s, {
2961
1776
  expires: -1
2962
1777
  })
2963
1778
  );
2964
1779
  },
2965
1780
  withAttributes: function(o) {
2966
- return St(this.converter, Be({}, this.attributes, o));
1781
+ return Oe(this.converter, X({}, this.attributes, o));
2967
1782
  },
2968
1783
  withConverter: function(o) {
2969
- return St(Be({}, this.converter, o), this.attributes);
1784
+ return Oe(X({}, this.converter, o), this.attributes);
2970
1785
  }
2971
1786
  },
2972
1787
  {
@@ -2975,14 +1790,14 @@ function St(e, t) {
2975
1790
  }
2976
1791
  );
2977
1792
  }
2978
- var Qs = St(Xs, { path: "/" }), gn;
2979
- const cr = typeof window < "u", Gs = (e) => typeof e == "string", wn = () => +Date.now(), Rt = () => {
1793
+ var _r = Oe(Ar, { path: "/" }), Ke;
1794
+ const Nt = typeof window < "u", Cr = (e) => typeof e == "string", Qe = () => +Date.now(), Ae = () => {
2980
1795
  };
2981
- cr && ((gn = window == null ? void 0 : window.navigator) != null && gn.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
2982
- function jt(e) {
2983
- return typeof e == "function" ? e() : yr(e);
1796
+ Nt && ((Ke = window == null ? void 0 : window.navigator) != null && Ke.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1797
+ function Ne(e) {
1798
+ return typeof e == "function" ? e() : qt(e);
2984
1799
  }
2985
- function Zs(e, t) {
1800
+ function xr(e, t) {
2986
1801
  function n(...r) {
2987
1802
  return new Promise((o, s) => {
2988
1803
  Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(o).catch(s);
@@ -2990,84 +1805,84 @@ function Zs(e, t) {
2990
1805
  }
2991
1806
  return n;
2992
1807
  }
2993
- function Ys(e, t = !0, n = !0, r = !1) {
2994
- let o = 0, s, i = !0, c = Rt, l;
2995
- const u = () => {
2996
- s && (clearTimeout(s), s = void 0, c(), c = Rt);
1808
+ function kr(e, t = !0, n = !0, r = !1) {
1809
+ let o = 0, s, i = !0, a = Ae, f;
1810
+ const l = () => {
1811
+ s && (clearTimeout(s), s = void 0, a(), a = Ae);
2997
1812
  };
2998
- return (p) => {
2999
- const g = jt(e), w = Date.now() - o, O = () => l = p();
3000
- return u(), g <= 0 ? (o = Date.now(), O()) : (w > g && (n || !i) ? (o = Date.now(), O()) : t && (l = new Promise((S, E) => {
3001
- c = r ? E : S, s = setTimeout(() => {
3002
- o = Date.now(), i = !0, S(O()), u();
3003
- }, Math.max(0, g - w));
3004
- })), !n && !s && (s = setTimeout(() => i = !0, g)), i = !1, l);
1813
+ return (d) => {
1814
+ const m = Ne(e), g = Date.now() - o, p = () => f = d();
1815
+ return l(), m <= 0 ? (o = Date.now(), p()) : (g > m && (n || !i) ? (o = Date.now(), p()) : t && (f = new Promise((y, h) => {
1816
+ a = r ? h : y, s = setTimeout(() => {
1817
+ o = Date.now(), i = !0, y(p()), l();
1818
+ }, Math.max(0, m - g));
1819
+ })), !n && !s && (s = setTimeout(() => i = !0, m)), i = !1, f);
3005
1820
  };
3006
1821
  }
3007
- function ei(e) {
1822
+ function Pr(e) {
3008
1823
  return e;
3009
1824
  }
3010
- function ti(e) {
3011
- return br() ? (Or(e), !0) : !1;
1825
+ function Ur(e) {
1826
+ return Mt() ? (Ht(e), !0) : !1;
3012
1827
  }
3013
- function ni(e) {
1828
+ function Lr(e) {
3014
1829
  var t;
3015
- const n = jt(e);
1830
+ const n = Ne(e);
3016
1831
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
3017
1832
  }
3018
- const lr = cr ? window : void 0;
3019
- function yn(...e) {
1833
+ const Ft = Nt ? window : void 0;
1834
+ function Xe(...e) {
3020
1835
  let t, n, r, o;
3021
- if (Gs(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = lr) : [t, n, r, o] = e, !t)
3022
- return Rt;
1836
+ if (Cr(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = Ft) : [t, n, r, o] = e, !t)
1837
+ return Ae;
3023
1838
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
3024
1839
  const s = [], i = () => {
3025
- s.forEach((f) => f()), s.length = 0;
3026
- }, c = (f, p, g, w) => (f.addEventListener(p, g, w), () => f.removeEventListener(p, g, w)), l = Pt(() => [ni(t), jt(o)], ([f, p]) => {
3027
- i(), f && s.push(...n.flatMap((g) => r.map((w) => c(f, g, w, p))));
3028
- }, { immediate: !0, flush: "post" }), u = () => {
3029
- l(), i();
1840
+ s.forEach((u) => u()), s.length = 0;
1841
+ }, a = (u, d, m, g) => (u.addEventListener(d, m, g), () => u.removeEventListener(d, m, g)), f = xe(() => [Lr(t), Ne(o)], ([u, d]) => {
1842
+ i(), u && s.push(...n.flatMap((m) => r.map((g) => a(u, m, g, d))));
1843
+ }, { immediate: !0, flush: "post" }), l = () => {
1844
+ f(), i();
3030
1845
  };
3031
- return ti(u), u;
1846
+ return Ur(l), l;
3032
1847
  }
3033
- const bn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, On = "__vueuse_ssr_handlers__";
3034
- bn[On] = bn[On] || {};
3035
- const ri = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], oi = 6e4;
3036
- function si(e = oi, t = {}) {
1848
+ const Ge = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ye = "__vueuse_ssr_handlers__";
1849
+ Ge[Ye] = Ge[Ye] || {};
1850
+ const Nr = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"], Fr = 6e4;
1851
+ function Dr(e = Fr, t = {}) {
3037
1852
  const {
3038
1853
  initialState: n = !1,
3039
1854
  listenForVisibilityChange: r = !0,
3040
- events: o = ri,
3041
- window: s = lr,
3042
- eventFilter: i = Ys(50)
3043
- } = t, c = We(n), l = We(wn());
3044
- let u;
3045
- const f = Zs(i, () => {
3046
- c.value = !1, l.value = wn(), clearTimeout(u), u = setTimeout(() => c.value = !0, e);
1855
+ events: o = Nr,
1856
+ window: s = Ft,
1857
+ eventFilter: i = kr(50)
1858
+ } = t, a = te(n), f = te(Qe());
1859
+ let l;
1860
+ const u = xr(i, () => {
1861
+ a.value = !1, f.value = Qe(), clearTimeout(l), l = setTimeout(() => a.value = !0, e);
3047
1862
  });
3048
1863
  if (s) {
3049
- const p = s.document;
3050
- for (const g of o)
3051
- yn(s, g, f, { passive: !0 });
3052
- r && yn(p, "visibilitychange", () => {
3053
- p.hidden || f();
1864
+ const d = s.document;
1865
+ for (const m of o)
1866
+ Xe(s, m, u, { passive: !0 });
1867
+ r && Xe(d, "visibilitychange", () => {
1868
+ d.hidden || u();
3054
1869
  });
3055
1870
  }
3056
- return u = setTimeout(() => c.value = !0, e), { idle: c, lastActive: l };
1871
+ return l = setTimeout(() => a.value = !0, e), { idle: a, lastActive: f };
3057
1872
  }
3058
- var En;
1873
+ var Ze;
3059
1874
  (function(e) {
3060
1875
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
3061
- })(En || (En = {}));
3062
- var ii = Object.defineProperty, Sn = Object.getOwnPropertySymbols, ai = Object.prototype.hasOwnProperty, ci = Object.prototype.propertyIsEnumerable, Rn = (e, t, n) => t in e ? ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, li = (e, t) => {
1876
+ })(Ze || (Ze = {}));
1877
+ var vr = Object.defineProperty, et = Object.getOwnPropertySymbols, Ir = Object.prototype.hasOwnProperty, Br = Object.prototype.propertyIsEnumerable, tt = (e, t, n) => t in e ? vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, jr = (e, t) => {
3063
1878
  for (var n in t || (t = {}))
3064
- ai.call(t, n) && Rn(e, n, t[n]);
3065
- if (Sn)
3066
- for (var n of Sn(t))
3067
- ci.call(t, n) && Rn(e, n, t[n]);
1879
+ Ir.call(t, n) && tt(e, n, t[n]);
1880
+ if (et)
1881
+ for (var n of et(t))
1882
+ Br.call(t, n) && tt(e, n, t[n]);
3068
1883
  return e;
3069
1884
  };
3070
- const ui = {
1885
+ const qr = {
3071
1886
  easeInSine: [0.12, 0, 0.39, 0],
3072
1887
  easeOutSine: [0.61, 1, 0.88, 1],
3073
1888
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -3093,27 +1908,27 @@ const ui = {
3093
1908
  easeOutBack: [0.34, 1.56, 0.64, 1],
3094
1909
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
3095
1910
  };
3096
- li({
3097
- linear: ei
3098
- }, ui);
3099
- let _t;
3100
- const ur = { triggerProxySso: "triggerProxySso" }, fi = () => {
3101
- _t = (e) => {
1911
+ jr({
1912
+ linear: Pr
1913
+ }, qr);
1914
+ let _e;
1915
+ const Dt = { triggerProxySso: "triggerProxySso" }, Mr = () => {
1916
+ _e = (e) => {
3102
1917
  var n;
3103
1918
  const { origin: t } = new URL(location.href);
3104
1919
  (n = window.top) == null || n.postMessage(
3105
- { type: ur.triggerProxySso, data: { ...e || {}, redirect_uri: `${t}/` } },
1920
+ { type: Dt.triggerProxySso, data: { ...e || {}, redirect_uri: `${t}/` } },
3106
1921
  t
3107
1922
  );
3108
1923
  };
3109
- }, di = (e) => {
1924
+ }, Hr = (e) => {
3110
1925
  window.top === window.self && window.addEventListener("message", (t) => {
3111
1926
  const { type: n, data: r } = t.data;
3112
- n === ur.triggerProxySso && (e == null || e(r));
1927
+ n === Dt.triggerProxySso && (e == null || e(r));
3113
1928
  });
3114
1929
  };
3115
- window.top !== window.self && fi();
3116
- let fr = (e = 21) => {
1930
+ window.top !== window.self && Mr();
1931
+ let vt = (e = 21) => {
3117
1932
  let t = "", n = crypto.getRandomValues(new Uint8Array(e));
3118
1933
  for (; e--; ) {
3119
1934
  let r = n[e] & 63;
@@ -3121,27 +1936,27 @@ let fr = (e = 21) => {
3121
1936
  }
3122
1937
  return t;
3123
1938
  };
3124
- const pt = "loginType", ee = (e) => new URL(location.href).searchParams.get(e), dr = () => {
3125
- const e = ee(pt) || "";
3126
- return e ? (localStorage.setItem(pt, e), e) : localStorage.getItem(pt) || "";
3127
- }, At = (e) => {
1939
+ const me = "loginType", U = (e) => new URL(location.href).searchParams.get(e), It = () => {
1940
+ const e = U(me) || "";
1941
+ return e ? (localStorage.setItem(me, e), e) : localStorage.getItem(me) || "";
1942
+ }, Ce = (e) => {
3128
1943
  const t = new URL(window.location.href), n = new URLSearchParams(t.search);
3129
1944
  e.forEach((r) => {
3130
1945
  n.delete(r);
3131
1946
  }), t.search = n.toString(), window.history.replaceState({}, "", t);
3132
- }, { baseURL: _n } = Xe(), An = {
1947
+ }, { baseURL: nt } = se(), rt = {
3133
1948
  feishu: {
3134
1949
  login: "/api/justauth/client/v1/visitor/feishu/login",
3135
1950
  ssoParam: "/api/justauth/client/v1/visitor/sso-param"
3136
1951
  }
3137
- }, pi = async () => {
3138
- const e = ee("authorizer") || "", t = ee("_redirect_url") || "";
3139
- if (At(["authorizer", "_redirect_url"]), e === "feishu") {
1952
+ }, $r = async () => {
1953
+ const e = U("authorizer") || "", t = U("_redirect_url") || "";
1954
+ if (Ce(["authorizer", "_redirect_url"]), e === "feishu") {
3140
1955
  if (!window.tt) return "";
3141
1956
  const n = async () => {
3142
- const r = An.feishu.ssoParam;
3143
- return (await T.create().get(r, {
3144
- baseURL: _n,
1957
+ const r = rt.feishu.ssoParam;
1958
+ return (await b.create().get(r, {
1959
+ baseURL: nt,
3145
1960
  params: {
3146
1961
  source: "feishu",
3147
1962
  fieldKey: "appId"
@@ -3149,187 +1964,187 @@ const pt = "loginType", ee = (e) => new URL(location.href).searchParams.get(e),
3149
1964
  })).data || "";
3150
1965
  };
3151
1966
  return new Promise(async (r) => {
3152
- const o = async (c) => {
1967
+ const o = async (a) => {
3153
1968
  try {
3154
- const l = An.feishu.login, u = Tt(t, { ignoreAuth: !0 }), p = (await T.create().get(l, { baseURL: _n, params: { code: c, _redirect_url: u } })).request.responseURL;
3155
- location.replace(p), r();
1969
+ const f = rt.feishu.login, l = ke(t, { ignoreAuth: !0 }), d = (await b.create().get(f, { baseURL: nt, params: { code: a, _redirect_url: l } })).request.responseURL;
1970
+ location.replace(d), r();
3156
1971
  } catch {
3157
- le({ ...ne, redirect_uri: te }), r();
1972
+ I({ ...N, redirect_uri: L }), r();
3158
1973
  }
3159
1974
  }, s = await n(), i = () => {
3160
1975
  window.tt.requestAuthCode({
3161
1976
  appId: s,
3162
- success: (c) => {
3163
- const { code: l } = c;
3164
- o(l);
1977
+ success: (a) => {
1978
+ const { code: f } = a;
1979
+ o(f);
3165
1980
  },
3166
- fail: (c) => {
3167
- le({ ...ne, redirect_uri: te }), r();
1981
+ fail: (a) => {
1982
+ I({ ...N, redirect_uri: L }), r();
3168
1983
  }
3169
1984
  });
3170
1985
  };
3171
1986
  window.tt.requestAccess ? window.tt.requestAccess({
3172
1987
  appID: s,
3173
1988
  scopeList: [],
3174
- success: (c) => {
3175
- const { code: l } = c;
3176
- o(l);
1989
+ success: (a) => {
1990
+ const { code: f } = a;
1991
+ o(f);
3177
1992
  },
3178
- fail: (c) => {
3179
- const { errno: l } = c;
3180
- l === 103 ? i() : (le({ ...ne, redirect_uri: te }), r());
1993
+ fail: (a) => {
1994
+ const { errno: f } = a;
1995
+ f === 103 ? i() : (I({ ...N, redirect_uri: L }), r());
3181
1996
  }
3182
1997
  }) : i();
3183
1998
  });
3184
1999
  }
3185
- }, me = {
2000
+ }, j = {
3186
2001
  oauth: "/api/justauth/oauth-server/v1/visitor/oauth/authorize",
3187
2002
  // 重定向到登录页
3188
2003
  logoutCurpage: "/api/justauth/oauth-server/v1/visitor/logout-curpage",
3189
2004
  // 清除登录信息
3190
2005
  token: "/api/justauth/oauth-server/v1/visitor/oauth/token"
3191
2006
  // 通过code获取token
3192
- }, { baseURL: Pn, noRedireLogin: hi = !1 } = Xe(), Tn = localStorage.getItem("oauth-redirect_url") || "", te = Tn || location.origin + "/home", ne = {
2007
+ }, { baseURL: ot, noRedireLogin: zr = !1 } = se(), st = localStorage.getItem("oauth-redirect_url") || "", L = st || location.origin + "/home", N = {
3193
2008
  response_type: "code",
3194
2009
  scope: "sever",
3195
2010
  client_id: "sys",
3196
- client_secret: Er("das123"),
2011
+ client_secret: $t("das123"),
3197
2012
  state: +/* @__PURE__ */ new Date()
3198
- }, pr = We(!1), hr = (e) => {
2013
+ }, Bt = te(!1), jt = (e) => {
3199
2014
  if (e <= 0) return;
3200
- const { idle: t } = si(e);
3201
- Pt(
2015
+ const { idle: t } = Dr(e);
2016
+ xe(
3202
2017
  () => t.value,
3203
2018
  (n) => {
3204
- n === !0 && (pr.value = !0);
2019
+ n === !0 && (Bt.value = !0);
3205
2020
  }
3206
2021
  );
3207
2022
  };
3208
- localStorage.getItem("idelTime") && hr(Number(localStorage.getItem("idelTime")));
3209
- let xn = "";
3210
- const mi = async () => {
3211
- const e = ee("code") || "", t = ee("redirect_url") || "/", n = ee("kingdee_token") || "", r = dr();
3212
- if (!e) return Te();
2023
+ localStorage.getItem("idelTime") && jt(Number(localStorage.getItem("idelTime")));
2024
+ let it = "";
2025
+ const Jr = async () => {
2026
+ const e = U("code") || "", t = U("redirect_url") || "/", n = U("kingdee_token") || "", r = It();
2027
+ if (!e) return $();
3213
2028
  const o = ["code", "state", "kingdee_token", "redirect_url", "source"];
3214
- if (e === xn)
3215
- return At(o), window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t)), localStorage.removeItem("oauth-redirect_url"), Te();
3216
- xn = e, At(o);
2029
+ if (e === it)
2030
+ return Ce(o), window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t)), localStorage.removeItem("oauth-redirect_url"), $();
2031
+ it = e, Ce(o);
3217
2032
  let s = {};
3218
2033
  const i = {
3219
2034
  grant_type: "authorization_code",
3220
2035
  code: e,
3221
- client_id: ne.client_id,
3222
- client_secret: ne.client_secret,
3223
- redirect_uri: r ? Tt(te, { loginType: r }) : te,
2036
+ client_id: N.client_id,
2037
+ client_secret: N.client_secret,
2038
+ redirect_uri: r ? ke(L, { loginType: r }) : L,
3224
2039
  timestamp: (/* @__PURE__ */ new Date()).getTime(),
3225
- nonce: fr()
2040
+ nonce: vt()
3226
2041
  };
3227
2042
  n && (sessionStorage.setItem("kingdee_token", n), i.redirect_uri = `${i.redirect_uri}?kingdee_token=${n}`);
3228
2043
  try {
3229
- await T.create().get(me.token, { baseURL: Pn });
2044
+ await b.create().get(j.token, { baseURL: ot });
3230
2045
  } catch {
3231
2046
  }
3232
2047
  try {
3233
- s = await T.create().post(
3234
- me.token,
2048
+ s = await b.create().post(
2049
+ j.token,
3235
2050
  {},
3236
2051
  {
3237
- baseURL: Pn,
2052
+ baseURL: ot,
3238
2053
  params: i,
3239
2054
  headers: {
3240
2055
  "Content-Type": "application/x-www-form-urlencoded",
3241
- "csrf-token": Qs.get("csrf-token")
2056
+ "csrf-token": _r.get("csrf-token")
3242
2057
  }
3243
2058
  }
3244
2059
  );
3245
- const { access_token: c = "", refresh_token: l = "", exp: u = 0, refresh_exp: f = 0 } = s.data, p = {
3246
- accessToken: c,
3247
- accessTokenExpiredAt: Number(u),
3248
- refreshToken: l,
2060
+ const { access_token: a = "", refresh_token: f = "", exp: l = 0, refresh_exp: u = 0 } = s.data, d = {
2061
+ accessToken: a,
2062
+ accessTokenExpiredAt: Number(l),
2063
+ refreshToken: f,
3249
2064
  info: s.data
3250
2065
  };
3251
- Ve().save(p), await Cn(c);
3252
- const g = Number(f) - (/* @__PURE__ */ new Date()).getTime();
3253
- return g && g > 0 && (hr(g), g && localStorage.setItem("idelTime", g.toString())), t && (window.__isAutoCloseApp = !1, window.location.replace(decodeURIComponent(t))), localStorage.removeItem("oauth-redirect_url"), c;
2066
+ ne().save(d), await at(a);
2067
+ const m = Number(u) - (/* @__PURE__ */ new Date()).getTime();
2068
+ 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;
3254
2069
  } catch {
3255
- return le({ ...ne, redirect_uri: te });
2070
+ return I({ ...N, redirect_uri: L });
3256
2071
  }
3257
- }, ve = We(!1), Vi = async (e) => {
2072
+ }, G = te(!1), Ro = async (e) => {
3258
2073
  if (e.public) return "";
3259
- if (pr.value)
3260
- return mt() ? Te() : le({ ...ne, redirect_uri: te });
3261
- if (ve.value)
2074
+ if (Bt.value)
2075
+ return we() ? $() : I({ ...N, redirect_uri: L });
2076
+ if (G.value)
3262
2077
  return await new Promise(async (r) => {
3263
- Pt(
3264
- () => ve.value,
2078
+ xe(
2079
+ () => G.value,
3265
2080
  (o) => {
3266
2081
  if (!o) {
3267
- const s = Te();
2082
+ const s = $();
3268
2083
  r(s);
3269
2084
  }
3270
2085
  }
3271
2086
  );
3272
2087
  });
3273
- let t = Te();
3274
- const { accessTokenExpiredAt: n = 0 } = Ve().getData();
3275
- ve.value = !0;
2088
+ let t = $();
2089
+ const { accessTokenExpiredAt: n = 0 } = ne().getData();
2090
+ G.value = !0;
3276
2091
  try {
3277
- const r = ee("code") || "";
3278
- if ((ee("authorizer") || "") === "feishu")
3279
- await pi();
2092
+ const r = U("code") || "";
2093
+ if ((U("authorizer") || "") === "feishu")
2094
+ await $r();
3280
2095
  else if (r)
3281
- t = await mi();
2096
+ t = await Jr();
3282
2097
  else {
3283
2098
  const s = Date.now() + 6e4;
3284
- n > 0 && s > n && !mt() && (t = await gi(ne));
2099
+ n > 0 && s > n && !we() && (t = await Vr(N));
3285
2100
  }
3286
2101
  } catch {
3287
2102
  } finally {
3288
- ve.value = !1;
2103
+ G.value = !1;
3289
2104
  }
3290
2105
  return t;
3291
2106
  };
3292
- let ht = !1;
3293
- const le = async (e) => {
3294
- if (!hi && !ht) {
3295
- ht = !0;
2107
+ let ye = !1;
2108
+ const I = async (e) => {
2109
+ if (!zr && !ye) {
2110
+ ye = !0;
3296
2111
  try {
3297
- const t = { ...e }, n = dr();
3298
- n && (t.redirect_uri = Tt(t.redirect_uri, { loginType: n }));
3299
- const { baseURL: r, ssoLocale: o } = Xe();
3300
- if (_t) return _t(t);
2112
+ const t = { ...e }, n = It();
2113
+ n && (t.redirect_uri = ke(t.redirect_uri, { loginType: n }));
2114
+ const { baseURL: r, ssoLocale: o } = se();
2115
+ if (_e) return _e(t);
3301
2116
  t.logout = "true", o && (t.locale = "locale");
3302
2117
  const s = new URLSearchParams();
3303
- Object.entries(t).forEach(([l, u]) => {
3304
- l !== "client_secret" && s.set(l, String(u));
2118
+ Object.entries(t).forEach(([f, l]) => {
2119
+ f !== "client_secret" && s.set(f, String(l));
3305
2120
  });
3306
- const i = s.toString(), c = `${r}${me.oauth}?${i}`;
3307
- if (_r())
3308
- Ar(c);
2121
+ const i = s.toString(), a = `${r}${j.oauth}?${i}`;
2122
+ if (Vt())
2123
+ Wt(a);
3309
2124
  else {
3310
- await Rr();
2125
+ await Jt();
3311
2126
  try {
3312
- T.create().get(me.logoutCurpage, { baseURL: r });
2127
+ b.create().get(j.logoutCurpage, { baseURL: r });
3313
2128
  } catch {
3314
2129
  }
3315
- Sr(), window.__isAutoCloseApp = !1, location.replace(c);
2130
+ zt(), window.__isAutoCloseApp = !1, location.replace(a);
3316
2131
  }
3317
2132
  } finally {
3318
- ht = !1;
2133
+ ye = !1;
3319
2134
  }
3320
2135
  }
3321
2136
  };
3322
- di(le);
3323
- const gi = async (e) => {
3324
- if (mt()) return "";
3325
- const { baseURL: t } = Xe(), { refreshToken: n } = Ve().getData();
2137
+ Hr(I);
2138
+ const Vr = async (e) => {
2139
+ if (we()) return "";
2140
+ const { baseURL: t } = se(), { refreshToken: n } = ne().getData();
3326
2141
  try {
3327
- await T.create().get(me.token, { baseURL: t });
2142
+ await b.create().get(j.token, { baseURL: t });
3328
2143
  } catch {
3329
2144
  }
3330
2145
  try {
3331
- const r = await T.create().post(
3332
- me.token,
2146
+ const r = await b.create().post(
2147
+ j.token,
3333
2148
  {},
3334
2149
  {
3335
2150
  baseURL: t,
@@ -3339,28 +2154,28 @@ const gi = async (e) => {
3339
2154
  client_id: e.client_id,
3340
2155
  client_secret: e.client_secret,
3341
2156
  timestamp: (/* @__PURE__ */ new Date()).getTime(),
3342
- nonce: fr()
2157
+ nonce: vt()
3343
2158
  }
3344
2159
  }
3345
- ), { access_token: o = "", refresh_token: s = "", exp: i = 0 } = r.data, c = {
2160
+ ), { access_token: o = "", refresh_token: s = "", exp: i = 0 } = r.data, a = {
3346
2161
  accessToken: o,
3347
2162
  accessTokenExpiredAt: Number(i),
3348
2163
  refreshToken: s,
3349
2164
  info: r.data
3350
2165
  };
3351
- return Ve().save(c), await Cn(o), o;
2166
+ return ne().save(a), await at(o), o;
3352
2167
  } catch {
3353
- return le({ ...e, redirect_uri: te });
2168
+ return I({ ...e, redirect_uri: L });
3354
2169
  }
3355
2170
  };
3356
2171
  export {
3357
- dr as getLoginType,
3358
- ee as getQuery,
3359
- Vi as getToken,
3360
- mi as getTokenFromCode,
3361
- ne as getTokenParams,
3362
- le as login,
3363
- te as real_uri,
3364
- gi as refreshToken,
3365
- Xi as tokenStorage
2172
+ It as getLoginType,
2173
+ U as getQuery,
2174
+ Ro as getToken,
2175
+ Jr as getTokenFromCode,
2176
+ N as getTokenParams,
2177
+ I as login,
2178
+ L as real_uri,
2179
+ Vr as refreshToken,
2180
+ Oo as tokenStorage
3366
2181
  };