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

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