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