@vtj/utils 0.13.34 → 0.13.35

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.
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- var gt = Object.defineProperty;
2
- var wt = (t, e, n) => e in t ? gt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var C = (t, e, n) => wt(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { omit as ie, merge as q, debounce as bt, throttle as Et, isUrl as Rt, pathToRegexpCompile as St, uuid as Ot, rURL as Tt, template as At } from "@vtj/base";
1
+ var Ft = Object.defineProperty;
2
+ var jt = (t, e, n) => e in t ? Ft(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var C = (t, e, n) => jt(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { omit as me, merge as W, debounce as Nt, throttle as Dt, isUrl as vt, pathToRegexpCompile as Bt, uuid as It, rURL as Mt, template as qt } from "@vtj/base";
5
5
  export * from "@vtj/base";
6
- import { ref as ae } from "vue";
6
+ import { ref as ge } from "vue";
7
7
  (function() {
8
8
  if (typeof window > "u" || typeof EventTarget > "u")
9
9
  return;
@@ -16,54 +16,54 @@ import { ref as ae } from "vue";
16
16
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
17
17
  * @name @vtj/utils
18
18
  * @author CHC chenhuachun1549@dingtalk.com
19
- * @version 0.13.34
19
+ * @version 0.13.35
20
20
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
21
21
  */
22
- const Nr = "0.13.34";
23
- function He(t, e) {
22
+ const Xr = "0.13.35";
23
+ function st(t, e) {
24
24
  return function() {
25
25
  return t.apply(e, arguments);
26
26
  };
27
27
  }
28
- const { toString: xt } = Object.prototype, { getPrototypeOf: Ee } = Object, { iterator: ee, toStringTag: Je } = Symbol, te = /* @__PURE__ */ ((t) => (e) => {
29
- const n = xt.call(e);
28
+ const { toString: Ht } = Object.prototype, { getPrototypeOf: Ce } = Object, { iterator: ce, toStringTag: ot } = Symbol, le = /* @__PURE__ */ ((t) => (e) => {
29
+ const n = Ht.call(e);
30
30
  return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
31
- })(/* @__PURE__ */ Object.create(null)), P = (t) => (t = t.toLowerCase(), (e) => te(e) === t), ne = (t) => (e) => typeof e === t, { isArray: D } = Array, I = ne("undefined");
32
- function J(t) {
33
- return t !== null && !I(t) && t.constructor !== null && !I(t.constructor) && A(t.constructor.isBuffer) && t.constructor.isBuffer(t);
31
+ })(/* @__PURE__ */ Object.create(null)), L = (t) => (t = t.toLowerCase(), (e) => le(e) === t), ue = (t) => (e) => typeof e === t, { isArray: H } = Array, q = ue("undefined");
32
+ function X(t) {
33
+ return t !== null && !q(t) && t.constructor !== null && !q(t.constructor) && A(t.constructor.isBuffer) && t.constructor.isBuffer(t);
34
34
  }
35
- const $e = P("ArrayBuffer");
36
- function Ct(t) {
35
+ const it = L("ArrayBuffer");
36
+ function $t(t) {
37
37
  let e;
38
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && $e(t.buffer), e;
38
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && it(t.buffer), e;
39
39
  }
40
- const _t = ne("string"), A = ne("function"), ze = ne("number"), $ = (t) => t !== null && typeof t == "object", Pt = (t) => t === !0 || t === !1, X = (t) => {
41
- if (te(t) !== "object")
40
+ const Jt = ue("string"), A = ue("function"), at = ue("number"), G = (t) => t !== null && typeof t == "object", zt = (t) => t === !0 || t === !1, se = (t) => {
41
+ if (le(t) !== "object")
42
42
  return !1;
43
- const e = Ee(t);
44
- return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Je in t) && !(ee in t);
45
- }, Lt = (t) => {
46
- if (!$(t) || J(t))
43
+ const e = Ce(t);
44
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(ot in t) && !(ce in t);
45
+ }, Wt = (t) => {
46
+ if (!G(t) || X(t))
47
47
  return !1;
48
48
  try {
49
49
  return Object.keys(t).length === 0 && Object.getPrototypeOf(t) === Object.prototype;
50
50
  } catch {
51
51
  return !1;
52
52
  }
53
- }, kt = P("Date"), Ut = P("File"), jt = P("Blob"), Nt = P("FileList"), Ft = (t) => $(t) && A(t.pipe), Dt = (t) => {
53
+ }, Vt = L("Date"), Kt = L("File"), Xt = L("Blob"), Gt = L("FileList"), Qt = (t) => G(t) && A(t.pipe), Yt = (t) => {
54
54
  let e;
55
- return t && (typeof FormData == "function" && t instanceof FormData || A(t.append) && ((e = te(t)) === "formdata" || // detect form-data instance
55
+ return t && (typeof FormData == "function" && t instanceof FormData || A(t.append) && ((e = le(t)) === "formdata" || // detect form-data instance
56
56
  e === "object" && A(t.toString) && t.toString() === "[object FormData]"));
57
- }, Bt = P("URLSearchParams"), [vt, qt, Mt, It] = ["ReadableStream", "Request", "Response", "Headers"].map(P), Ht = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
58
- function z(t, e, { allOwnKeys: n = !1 } = {}) {
57
+ }, Zt = L("URLSearchParams"), [en, tn, nn, rn] = ["ReadableStream", "Request", "Response", "Headers"].map(L), sn = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
58
+ function Q(t, e, { allOwnKeys: n = !1 } = {}) {
59
59
  if (t === null || typeof t > "u")
60
60
  return;
61
61
  let r, s;
62
- if (typeof t != "object" && (t = [t]), D(t))
62
+ if (typeof t != "object" && (t = [t]), H(t))
63
63
  for (r = 0, s = t.length; r < s; r++)
64
64
  e.call(null, t[r], r, t);
65
65
  else {
66
- if (J(t))
66
+ if (X(t))
67
67
  return;
68
68
  const o = n ? Object.getOwnPropertyNames(t) : Object.keys(t), i = o.length;
69
69
  let a;
@@ -71,8 +71,8 @@ function z(t, e, { allOwnKeys: n = !1 } = {}) {
71
71
  a = o[r], e.call(null, t[a], a, t);
72
72
  }
73
73
  }
74
- function We(t, e) {
75
- if (J(t))
74
+ function ct(t, e) {
75
+ if (X(t))
76
76
  return null;
77
77
  e = e.toLowerCase();
78
78
  const n = Object.keys(t);
@@ -82,71 +82,71 @@ function We(t, e) {
82
82
  return s;
83
83
  return null;
84
84
  }
85
- const j = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ve = (t) => !I(t) && t !== j;
86
- function de() {
87
- const { caseless: t } = Ve(this) && this || {}, e = {}, n = (r, s) => {
88
- const o = t && We(e, s) || s;
89
- X(e[o]) && X(r) ? e[o] = de(e[o], r) : X(r) ? e[o] = de({}, r) : D(r) ? e[o] = r.slice() : e[o] = r;
85
+ const v = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, lt = (t) => !q(t) && t !== v;
86
+ function Se() {
87
+ const { caseless: t, skipUndefined: e } = lt(this) && this || {}, n = {}, r = (s, o) => {
88
+ const i = t && ct(n, o) || o;
89
+ se(n[i]) && se(s) ? n[i] = Se(n[i], s) : se(s) ? n[i] = Se({}, s) : H(s) ? n[i] = s.slice() : (!e || !q(s)) && (n[i] = s);
90
90
  };
91
- for (let r = 0, s = arguments.length; r < s; r++)
92
- arguments[r] && z(arguments[r], n);
93
- return e;
91
+ for (let s = 0, o = arguments.length; s < o; s++)
92
+ arguments[s] && Q(arguments[s], r);
93
+ return n;
94
94
  }
95
- const Jt = (t, e, n, { allOwnKeys: r } = {}) => (z(e, (s, o) => {
96
- n && A(s) ? t[o] = He(s, n) : t[o] = s;
97
- }, { allOwnKeys: r }), t), $t = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), zt = (t, e, n, r) => {
95
+ const on = (t, e, n, { allOwnKeys: r } = {}) => (Q(e, (s, o) => {
96
+ n && A(s) ? t[o] = st(s, n) : t[o] = s;
97
+ }, { allOwnKeys: r }), t), an = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), cn = (t, e, n, r) => {
98
98
  t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
99
99
  value: e.prototype
100
100
  }), n && Object.assign(t.prototype, n);
101
- }, Wt = (t, e, n, r) => {
101
+ }, ln = (t, e, n, r) => {
102
102
  let s, o, i;
103
103
  const a = {};
104
104
  if (e = e || {}, t == null) return e;
105
105
  do {
106
106
  for (s = Object.getOwnPropertyNames(t), o = s.length; o-- > 0; )
107
107
  i = s[o], (!r || r(i, t, e)) && !a[i] && (e[i] = t[i], a[i] = !0);
108
- t = n !== !1 && Ee(t);
108
+ t = n !== !1 && Ce(t);
109
109
  } while (t && (!n || n(t, e)) && t !== Object.prototype);
110
110
  return e;
111
- }, Vt = (t, e, n) => {
111
+ }, un = (t, e, n) => {
112
112
  t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
113
113
  const r = t.indexOf(e, n);
114
114
  return r !== -1 && r === n;
115
- }, Kt = (t) => {
115
+ }, fn = (t) => {
116
116
  if (!t) return null;
117
- if (D(t)) return t;
117
+ if (H(t)) return t;
118
118
  let e = t.length;
119
- if (!ze(e)) return null;
119
+ if (!at(e)) return null;
120
120
  const n = new Array(e);
121
121
  for (; e-- > 0; )
122
122
  n[e] = t[e];
123
123
  return n;
124
- }, Xt = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Ee(Uint8Array)), Gt = (t, e) => {
125
- const r = (t && t[ee]).call(t);
124
+ }, dn = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Ce(Uint8Array)), pn = (t, e) => {
125
+ const r = (t && t[ce]).call(t);
126
126
  let s;
127
127
  for (; (s = r.next()) && !s.done; ) {
128
128
  const o = s.value;
129
129
  e.call(t, o[0], o[1]);
130
130
  }
131
- }, Qt = (t, e) => {
131
+ }, hn = (t, e) => {
132
132
  let n;
133
133
  const r = [];
134
134
  for (; (n = t.exec(e)) !== null; )
135
135
  r.push(n);
136
136
  return r;
137
- }, Yt = P("HTMLFormElement"), Zt = (t) => t.toLowerCase().replace(
137
+ }, mn = L("HTMLFormElement"), gn = (t) => t.toLowerCase().replace(
138
138
  /[-_\s]([a-z\d])(\w*)/g,
139
139
  function(n, r, s) {
140
140
  return r.toUpperCase() + s;
141
141
  }
142
- ), Ae = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), en = P("RegExp"), Ke = (t, e) => {
142
+ ), Be = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), yn = L("RegExp"), ut = (t, e) => {
143
143
  const n = Object.getOwnPropertyDescriptors(t), r = {};
144
- z(n, (s, o) => {
144
+ Q(n, (s, o) => {
145
145
  let i;
146
146
  (i = e(s, o, t)) !== !1 && (r[o] = i || s);
147
147
  }), Object.defineProperties(t, r);
148
- }, tn = (t) => {
149
- Ke(t, (e, n) => {
148
+ }, wn = (t) => {
149
+ ut(t, (e, n) => {
150
150
  if (A(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
151
151
  return !1;
152
152
  const r = t[n];
@@ -160,108 +160,108 @@ const Jt = (t, e, n, { allOwnKeys: r } = {}) => (z(e, (s, o) => {
160
160
  });
161
161
  }
162
162
  });
163
- }, nn = (t, e) => {
163
+ }, bn = (t, e) => {
164
164
  const n = {}, r = (s) => {
165
165
  s.forEach((o) => {
166
166
  n[o] = !0;
167
167
  });
168
168
  };
169
- return D(t) ? r(t) : r(String(t).split(e)), n;
170
- }, rn = () => {
171
- }, sn = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
172
- function on(t) {
173
- return !!(t && A(t.append) && t[Je] === "FormData" && t[ee]);
169
+ return H(t) ? r(t) : r(String(t).split(e)), n;
170
+ }, En = () => {
171
+ }, Sn = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
172
+ function Rn(t) {
173
+ return !!(t && A(t.append) && t[ot] === "FormData" && t[ce]);
174
174
  }
175
- const an = (t) => {
175
+ const On = (t) => {
176
176
  const e = new Array(10), n = (r, s) => {
177
- if ($(r)) {
177
+ if (G(r)) {
178
178
  if (e.indexOf(r) >= 0)
179
179
  return;
180
- if (J(r))
180
+ if (X(r))
181
181
  return r;
182
182
  if (!("toJSON" in r)) {
183
183
  e[s] = r;
184
- const o = D(r) ? [] : {};
185
- return z(r, (i, a) => {
184
+ const o = H(r) ? [] : {};
185
+ return Q(r, (i, a) => {
186
186
  const f = n(i, s + 1);
187
- !I(f) && (o[a] = f);
187
+ !q(f) && (o[a] = f);
188
188
  }), e[s] = void 0, o;
189
189
  }
190
190
  }
191
191
  return r;
192
192
  };
193
193
  return n(t, 0);
194
- }, cn = P("AsyncFunction"), ln = (t) => t && ($(t) || A(t)) && A(t.then) && A(t.catch), Xe = ((t, e) => t ? setImmediate : e ? ((n, r) => (j.addEventListener("message", ({ source: s, data: o }) => {
195
- s === j && o === n && r.length && r.shift()();
194
+ }, Tn = L("AsyncFunction"), An = (t) => t && (G(t) || A(t)) && A(t.then) && A(t.catch), ft = ((t, e) => t ? setImmediate : e ? ((n, r) => (v.addEventListener("message", ({ source: s, data: o }) => {
195
+ s === v && o === n && r.length && r.shift()();
196
196
  }, !1), (s) => {
197
- r.push(s), j.postMessage(n, "*");
197
+ r.push(s), v.postMessage(n, "*");
198
198
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
199
199
  typeof setImmediate == "function",
200
- A(j.postMessage)
201
- ), un = typeof queueMicrotask < "u" ? queueMicrotask.bind(j) : typeof process < "u" && process.nextTick || Xe, fn = (t) => t != null && A(t[ee]), c = {
202
- isArray: D,
203
- isArrayBuffer: $e,
204
- isBuffer: J,
205
- isFormData: Dt,
206
- isArrayBufferView: Ct,
207
- isString: _t,
208
- isNumber: ze,
209
- isBoolean: Pt,
210
- isObject: $,
211
- isPlainObject: X,
212
- isEmptyObject: Lt,
213
- isReadableStream: vt,
214
- isRequest: qt,
215
- isResponse: Mt,
216
- isHeaders: It,
217
- isUndefined: I,
218
- isDate: kt,
219
- isFile: Ut,
220
- isBlob: jt,
221
- isRegExp: en,
200
+ A(v.postMessage)
201
+ ), xn = typeof queueMicrotask < "u" ? queueMicrotask.bind(v) : typeof process < "u" && process.nextTick || ft, Cn = (t) => t != null && A(t[ce]), c = {
202
+ isArray: H,
203
+ isArrayBuffer: it,
204
+ isBuffer: X,
205
+ isFormData: Yt,
206
+ isArrayBufferView: $t,
207
+ isString: Jt,
208
+ isNumber: at,
209
+ isBoolean: zt,
210
+ isObject: G,
211
+ isPlainObject: se,
212
+ isEmptyObject: Wt,
213
+ isReadableStream: en,
214
+ isRequest: tn,
215
+ isResponse: nn,
216
+ isHeaders: rn,
217
+ isUndefined: q,
218
+ isDate: Vt,
219
+ isFile: Kt,
220
+ isBlob: Xt,
221
+ isRegExp: yn,
222
222
  isFunction: A,
223
- isStream: Ft,
224
- isURLSearchParams: Bt,
225
- isTypedArray: Xt,
226
- isFileList: Nt,
227
- forEach: z,
228
- merge: de,
229
- extend: Jt,
230
- trim: Ht,
231
- stripBOM: $t,
232
- inherits: zt,
233
- toFlatObject: Wt,
234
- kindOf: te,
235
- kindOfTest: P,
236
- endsWith: Vt,
237
- toArray: Kt,
238
- forEachEntry: Gt,
239
- matchAll: Qt,
240
- isHTMLForm: Yt,
241
- hasOwnProperty: Ae,
242
- hasOwnProp: Ae,
223
+ isStream: Qt,
224
+ isURLSearchParams: Zt,
225
+ isTypedArray: dn,
226
+ isFileList: Gt,
227
+ forEach: Q,
228
+ merge: Se,
229
+ extend: on,
230
+ trim: sn,
231
+ stripBOM: an,
232
+ inherits: cn,
233
+ toFlatObject: ln,
234
+ kindOf: le,
235
+ kindOfTest: L,
236
+ endsWith: un,
237
+ toArray: fn,
238
+ forEachEntry: pn,
239
+ matchAll: hn,
240
+ isHTMLForm: mn,
241
+ hasOwnProperty: Be,
242
+ hasOwnProp: Be,
243
243
  // an alias to avoid ESLint no-prototype-builtins detection
244
- reduceDescriptors: Ke,
245
- freezeMethods: tn,
246
- toObjectSet: nn,
247
- toCamelCase: Zt,
248
- noop: rn,
249
- toFiniteNumber: sn,
250
- findKey: We,
251
- global: j,
252
- isContextDefined: Ve,
253
- isSpecCompliantForm: on,
254
- toJSONObject: an,
255
- isAsyncFn: cn,
256
- isThenable: ln,
257
- setImmediate: Xe,
258
- asap: un,
259
- isIterable: fn
244
+ reduceDescriptors: ut,
245
+ freezeMethods: wn,
246
+ toObjectSet: bn,
247
+ toCamelCase: gn,
248
+ noop: En,
249
+ toFiniteNumber: Sn,
250
+ findKey: ct,
251
+ global: v,
252
+ isContextDefined: lt,
253
+ isSpecCompliantForm: Rn,
254
+ toJSONObject: On,
255
+ isAsyncFn: Tn,
256
+ isThenable: An,
257
+ setImmediate: ft,
258
+ asap: xn,
259
+ isIterable: Cn
260
260
  };
261
- function y(t, e, n, r, s) {
261
+ function g(t, e, n, r, s) {
262
262
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
263
263
  }
264
- c.inherits(y, Error, {
264
+ c.inherits(g, Error, {
265
265
  toJSON: function() {
266
266
  return {
267
267
  // Standard
@@ -282,7 +282,7 @@ c.inherits(y, Error, {
282
282
  };
283
283
  }
284
284
  });
285
- const Ge = y.prototype, Qe = {};
285
+ const dt = g.prototype, pt = {};
286
286
  [
287
287
  "ERR_BAD_OPTION_VALUE",
288
288
  "ERR_BAD_OPTION",
@@ -298,35 +298,37 @@ const Ge = y.prototype, Qe = {};
298
298
  "ERR_INVALID_URL"
299
299
  // eslint-disable-next-line func-names
300
300
  ].forEach((t) => {
301
- Qe[t] = { value: t };
301
+ pt[t] = { value: t };
302
302
  });
303
- Object.defineProperties(y, Qe);
304
- Object.defineProperty(Ge, "isAxiosError", { value: !0 });
305
- y.from = (t, e, n, r, s, o) => {
306
- const i = Object.create(Ge);
307
- return c.toFlatObject(t, i, function(f) {
308
- return f !== Error.prototype;
309
- }, (a) => a !== "isAxiosError"), y.call(i, t.message, e, n, r, s), i.cause = t, i.name = t.name, o && Object.assign(i, o), i;
303
+ Object.defineProperties(g, pt);
304
+ Object.defineProperty(dt, "isAxiosError", { value: !0 });
305
+ g.from = (t, e, n, r, s, o) => {
306
+ const i = Object.create(dt);
307
+ c.toFlatObject(t, i, function(l) {
308
+ return l !== Error.prototype;
309
+ }, (u) => u !== "isAxiosError");
310
+ const a = t && t.message ? t.message : "Error", f = e == null && t ? t.code : e;
311
+ return g.call(i, a, f, n, r, s), t && i.cause == null && Object.defineProperty(i, "cause", { value: t, configurable: !0 }), i.name = t && t.name || "Error", o && Object.assign(i, o), i;
310
312
  };
311
- const dn = null;
312
- function pe(t) {
313
+ const _n = null;
314
+ function Re(t) {
313
315
  return c.isPlainObject(t) || c.isArray(t);
314
316
  }
315
- function Ye(t) {
317
+ function ht(t) {
316
318
  return c.endsWith(t, "[]") ? t.slice(0, -2) : t;
317
319
  }
318
- function xe(t, e, n) {
320
+ function Ie(t, e, n) {
319
321
  return t ? t.concat(e).map(function(s, o) {
320
- return s = Ye(s), !n && o ? "[" + s + "]" : s;
322
+ return s = ht(s), !n && o ? "[" + s + "]" : s;
321
323
  }).join(n ? "." : "") : e;
322
324
  }
323
- function pn(t) {
324
- return c.isArray(t) && !t.some(pe);
325
+ function Pn(t) {
326
+ return c.isArray(t) && !t.some(Re);
325
327
  }
326
- const hn = c.toFlatObject(c, {}, null, function(e) {
328
+ const Ln = c.toFlatObject(c, {}, null, function(e) {
327
329
  return /^is[A-Z]/.test(e);
328
330
  });
329
- function re(t, e, n) {
331
+ function fe(t, e, n) {
330
332
  if (!c.isObject(t))
331
333
  throw new TypeError("target must be an object");
332
334
  e = e || new FormData(), n = c.toFlatObject(n, {
@@ -336,60 +338,60 @@ function re(t, e, n) {
336
338
  }, !1, function(m, h) {
337
339
  return !c.isUndefined(h[m]);
338
340
  });
339
- const r = n.metaTokens, s = n.visitor || u, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(e);
341
+ const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(e);
340
342
  if (!c.isFunction(s))
341
343
  throw new TypeError("visitor must be a function");
342
- function l(p) {
343
- if (p === null) return "";
344
- if (c.isDate(p))
345
- return p.toISOString();
346
- if (c.isBoolean(p))
347
- return p.toString();
348
- if (!f && c.isBlob(p))
349
- throw new y("Blob is not supported. Use a Buffer instead.");
350
- return c.isArrayBuffer(p) || c.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
351
- }
352
- function u(p, m, h) {
353
- let w = p;
354
- if (p && !h && typeof p == "object") {
344
+ function u(d) {
345
+ if (d === null) return "";
346
+ if (c.isDate(d))
347
+ return d.toISOString();
348
+ if (c.isBoolean(d))
349
+ return d.toString();
350
+ if (!f && c.isBlob(d))
351
+ throw new g("Blob is not supported. Use a Buffer instead.");
352
+ return c.isArrayBuffer(d) || c.isTypedArray(d) ? f && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
353
+ }
354
+ function l(d, m, h) {
355
+ let w = d;
356
+ if (d && !h && typeof d == "object") {
355
357
  if (c.endsWith(m, "{}"))
356
- m = r ? m : m.slice(0, -2), p = JSON.stringify(p);
357
- else if (c.isArray(p) && pn(p) || (c.isFileList(p) || c.endsWith(m, "[]")) && (w = c.toArray(p)))
358
- return m = Ye(m), w.forEach(function(E, _) {
359
- !(c.isUndefined(E) || E === null) && e.append(
358
+ m = r ? m : m.slice(0, -2), d = JSON.stringify(d);
359
+ else if (c.isArray(d) && Pn(d) || (c.isFileList(d) || c.endsWith(m, "[]")) && (w = c.toArray(d)))
360
+ return m = ht(m), w.forEach(function(b, O) {
361
+ !(c.isUndefined(b) || b === null) && e.append(
360
362
  // eslint-disable-next-line no-nested-ternary
361
- i === !0 ? xe([m], _, o) : i === null ? m : m + "[]",
362
- l(E)
363
+ i === !0 ? Ie([m], O, o) : i === null ? m : m + "[]",
364
+ u(b)
363
365
  );
364
366
  }), !1;
365
367
  }
366
- return pe(p) ? !0 : (e.append(xe(h, m, o), l(p)), !1);
368
+ return Re(d) ? !0 : (e.append(Ie(h, m, o), u(d)), !1);
367
369
  }
368
- const d = [], g = Object.assign(hn, {
369
- defaultVisitor: u,
370
- convertValue: l,
371
- isVisitable: pe
370
+ const p = [], y = Object.assign(Ln, {
371
+ defaultVisitor: l,
372
+ convertValue: u,
373
+ isVisitable: Re
372
374
  });
373
- function b(p, m) {
374
- if (!c.isUndefined(p)) {
375
- if (d.indexOf(p) !== -1)
375
+ function E(d, m) {
376
+ if (!c.isUndefined(d)) {
377
+ if (p.indexOf(d) !== -1)
376
378
  throw Error("Circular reference detected in " + m.join("."));
377
- d.push(p), c.forEach(p, function(w, R) {
379
+ p.push(d), c.forEach(d, function(w, R) {
378
380
  (!(c.isUndefined(w) || w === null) && s.call(
379
381
  e,
380
382
  w,
381
383
  c.isString(R) ? R.trim() : R,
382
384
  m,
383
- g
384
- )) === !0 && b(w, m ? m.concat(R) : [R]);
385
- }), d.pop();
385
+ y
386
+ )) === !0 && E(w, m ? m.concat(R) : [R]);
387
+ }), p.pop();
386
388
  }
387
389
  }
388
390
  if (!c.isObject(t))
389
391
  throw new TypeError("data must be an object");
390
- return b(t), e;
392
+ return E(t), e;
391
393
  }
392
- function Ce(t) {
394
+ function Me(t) {
393
395
  const e = {
394
396
  "!": "%21",
395
397
  "'": "%27",
@@ -403,40 +405,40 @@ function Ce(t) {
403
405
  return e[r];
404
406
  });
405
407
  }
406
- function Re(t, e) {
407
- this._pairs = [], t && re(t, this, e);
408
+ function _e(t, e) {
409
+ this._pairs = [], t && fe(t, this, e);
408
410
  }
409
- const Ze = Re.prototype;
410
- Ze.append = function(e, n) {
411
+ const mt = _e.prototype;
412
+ mt.append = function(e, n) {
411
413
  this._pairs.push([e, n]);
412
414
  };
413
- Ze.toString = function(e) {
415
+ mt.toString = function(e) {
414
416
  const n = e ? function(r) {
415
- return e.call(this, r, Ce);
416
- } : Ce;
417
+ return e.call(this, r, Me);
418
+ } : Me;
417
419
  return this._pairs.map(function(s) {
418
420
  return n(s[0]) + "=" + n(s[1]);
419
421
  }, "").join("&");
420
422
  };
421
- function mn(t) {
422
- return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
423
+ function Un(t) {
424
+ return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
423
425
  }
424
- function et(t, e, n) {
426
+ function gt(t, e, n) {
425
427
  if (!e)
426
428
  return t;
427
- const r = n && n.encode || mn;
429
+ const r = n && n.encode || Un;
428
430
  c.isFunction(n) && (n = {
429
431
  serialize: n
430
432
  });
431
433
  const s = n && n.serialize;
432
434
  let o;
433
- if (s ? o = s(e, n) : o = c.isURLSearchParams(e) ? e.toString() : new Re(e, n).toString(r), o) {
435
+ if (s ? o = s(e, n) : o = c.isURLSearchParams(e) ? e.toString() : new _e(e, n).toString(r), o) {
434
436
  const i = t.indexOf("#");
435
437
  i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + o;
436
438
  }
437
439
  return t;
438
440
  }
439
- class _e {
441
+ class qe {
440
442
  constructor() {
441
443
  this.handlers = [];
442
444
  }
@@ -461,7 +463,7 @@ class _e {
461
463
  *
462
464
  * @param {Number} id The ID that was returned by `use`
463
465
  *
464
- * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
466
+ * @returns {void}
465
467
  */
466
468
  eject(e) {
467
469
  this.handlers[e] && (this.handlers[e] = null);
@@ -490,42 +492,42 @@ class _e {
490
492
  });
491
493
  }
492
494
  }
493
- const tt = {
495
+ const yt = {
494
496
  silentJSONParsing: !0,
495
497
  forcedJSONParsing: !0,
496
498
  clarifyTimeoutError: !1
497
- }, yn = typeof URLSearchParams < "u" ? URLSearchParams : Re, gn = typeof FormData < "u" ? FormData : null, wn = typeof Blob < "u" ? Blob : null, bn = {
499
+ }, kn = typeof URLSearchParams < "u" ? URLSearchParams : _e, Fn = typeof FormData < "u" ? FormData : null, jn = typeof Blob < "u" ? Blob : null, Nn = {
498
500
  isBrowser: !0,
499
501
  classes: {
500
- URLSearchParams: yn,
501
- FormData: gn,
502
- Blob: wn
502
+ URLSearchParams: kn,
503
+ FormData: Fn,
504
+ Blob: jn
503
505
  },
504
506
  protocols: ["http", "https", "file", "blob", "url", "data"]
505
- }, Se = typeof window < "u" && typeof document < "u", he = typeof navigator == "object" && navigator || void 0, En = Se && (!he || ["ReactNative", "NativeScript", "NS"].indexOf(he.product) < 0), Rn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
506
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Sn = Se && window.location.href || "http://localhost", On = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
507
+ }, Pe = typeof window < "u" && typeof document < "u", Oe = typeof navigator == "object" && navigator || void 0, Dn = Pe && (!Oe || ["ReactNative", "NativeScript", "NS"].indexOf(Oe.product) < 0), vn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
508
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Bn = Pe && window.location.href || "http://localhost", In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
507
509
  __proto__: null,
508
- hasBrowserEnv: Se,
509
- hasStandardBrowserEnv: En,
510
- hasStandardBrowserWebWorkerEnv: Rn,
511
- navigator: he,
512
- origin: Sn
513
- }, Symbol.toStringTag, { value: "Module" })), O = {
514
- ...On,
515
- ...bn
510
+ hasBrowserEnv: Pe,
511
+ hasStandardBrowserEnv: Dn,
512
+ hasStandardBrowserWebWorkerEnv: vn,
513
+ navigator: Oe,
514
+ origin: Bn
515
+ }, Symbol.toStringTag, { value: "Module" })), T = {
516
+ ...In,
517
+ ...Nn
516
518
  };
517
- function Tn(t, e) {
518
- return re(t, new O.classes.URLSearchParams(), {
519
+ function Mn(t, e) {
520
+ return fe(t, new T.classes.URLSearchParams(), {
519
521
  visitor: function(n, r, s, o) {
520
- return O.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
522
+ return T.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
521
523
  },
522
524
  ...e
523
525
  });
524
526
  }
525
- function An(t) {
527
+ function qn(t) {
526
528
  return c.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
527
529
  }
528
- function xn(t) {
530
+ function Hn(t) {
529
531
  const e = {}, n = Object.keys(t);
530
532
  let r;
531
533
  const s = n.length;
@@ -534,22 +536,22 @@ function xn(t) {
534
536
  o = n[r], e[o] = t[o];
535
537
  return e;
536
538
  }
537
- function nt(t) {
539
+ function wt(t) {
538
540
  function e(n, r, s, o) {
539
541
  let i = n[o++];
540
542
  if (i === "__proto__") return !0;
541
543
  const a = Number.isFinite(+i), f = o >= n.length;
542
- return i = !i && c.isArray(s) ? s.length : i, f ? (c.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !a) : ((!s[i] || !c.isObject(s[i])) && (s[i] = []), e(n, r, s[i], o) && c.isArray(s[i]) && (s[i] = xn(s[i])), !a);
544
+ return i = !i && c.isArray(s) ? s.length : i, f ? (c.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !a) : ((!s[i] || !c.isObject(s[i])) && (s[i] = []), e(n, r, s[i], o) && c.isArray(s[i]) && (s[i] = Hn(s[i])), !a);
543
545
  }
544
546
  if (c.isFormData(t) && c.isFunction(t.entries)) {
545
547
  const n = {};
546
548
  return c.forEachEntry(t, (r, s) => {
547
- e(An(r), s, n, 0);
549
+ e(qn(r), s, n, 0);
548
550
  }), n;
549
551
  }
550
552
  return null;
551
553
  }
552
- function Cn(t, e, n) {
554
+ function $n(t, e, n) {
553
555
  if (c.isString(t))
554
556
  try {
555
557
  return (e || JSON.parse)(t), c.trim(t);
@@ -559,13 +561,13 @@ function Cn(t, e, n) {
559
561
  }
560
562
  return (n || JSON.stringify)(t);
561
563
  }
562
- const W = {
563
- transitional: tt,
564
+ const Y = {
565
+ transitional: yt,
564
566
  adapter: ["xhr", "http", "fetch"],
565
567
  transformRequest: [function(e, n) {
566
568
  const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = c.isObject(e);
567
569
  if (o && c.isHTMLForm(e) && (e = new FormData(e)), c.isFormData(e))
568
- return s ? JSON.stringify(nt(e)) : e;
570
+ return s ? JSON.stringify(wt(e)) : e;
569
571
  if (c.isArrayBuffer(e) || c.isBuffer(e) || c.isStream(e) || c.isFile(e) || c.isBlob(e) || c.isReadableStream(e))
570
572
  return e;
571
573
  if (c.isArrayBufferView(e))
@@ -575,29 +577,29 @@ const W = {
575
577
  let a;
576
578
  if (o) {
577
579
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
578
- return Tn(e, this.formSerializer).toString();
580
+ return Mn(e, this.formSerializer).toString();
579
581
  if ((a = c.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
580
582
  const f = this.env && this.env.FormData;
581
- return re(
583
+ return fe(
582
584
  a ? { "files[]": e } : e,
583
585
  f && new f(),
584
586
  this.formSerializer
585
587
  );
586
588
  }
587
589
  }
588
- return o || s ? (n.setContentType("application/json", !1), Cn(e)) : e;
590
+ return o || s ? (n.setContentType("application/json", !1), $n(e)) : e;
589
591
  }],
590
592
  transformResponse: [function(e) {
591
- const n = this.transitional || W.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
593
+ const n = this.transitional || Y.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
592
594
  if (c.isResponse(e) || c.isReadableStream(e))
593
595
  return e;
594
596
  if (e && c.isString(e) && (r && !this.responseType || s)) {
595
597
  const i = !(n && n.silentJSONParsing) && s;
596
598
  try {
597
- return JSON.parse(e);
599
+ return JSON.parse(e, this.parseReviver);
598
600
  } catch (a) {
599
601
  if (i)
600
- throw a.name === "SyntaxError" ? y.from(a, y.ERR_BAD_RESPONSE, this, null, this.response) : a;
602
+ throw a.name === "SyntaxError" ? g.from(a, g.ERR_BAD_RESPONSE, this, null, this.response) : a;
601
603
  }
602
604
  }
603
605
  return e;
@@ -612,8 +614,8 @@ const W = {
612
614
  maxContentLength: -1,
613
615
  maxBodyLength: -1,
614
616
  env: {
615
- FormData: O.classes.FormData,
616
- Blob: O.classes.Blob
617
+ FormData: T.classes.FormData,
618
+ Blob: T.classes.Blob
617
619
  },
618
620
  validateStatus: function(e) {
619
621
  return e >= 200 && e < 300;
@@ -626,9 +628,9 @@ const W = {
626
628
  }
627
629
  };
628
630
  c.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
629
- W.headers[t] = {};
631
+ Y.headers[t] = {};
630
632
  });
631
- const _n = c.toObjectSet([
633
+ const Jn = c.toObjectSet([
632
634
  "age",
633
635
  "authorization",
634
636
  "content-length",
@@ -646,29 +648,29 @@ const _n = c.toObjectSet([
646
648
  "referer",
647
649
  "retry-after",
648
650
  "user-agent"
649
- ]), Pn = (t) => {
651
+ ]), zn = (t) => {
650
652
  const e = {};
651
653
  let n, r, s;
652
654
  return t && t.split(`
653
655
  `).forEach(function(i) {
654
- s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || e[n] && _n[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
656
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || e[n] && Jn[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
655
657
  }), e;
656
- }, Pe = Symbol("internals");
657
- function v(t) {
658
+ }, He = Symbol("internals");
659
+ function z(t) {
658
660
  return t && String(t).trim().toLowerCase();
659
661
  }
660
- function G(t) {
661
- return t === !1 || t == null ? t : c.isArray(t) ? t.map(G) : String(t);
662
+ function oe(t) {
663
+ return t === !1 || t == null ? t : c.isArray(t) ? t.map(oe) : String(t);
662
664
  }
663
- function Ln(t) {
665
+ function Wn(t) {
664
666
  const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
665
667
  let r;
666
668
  for (; r = n.exec(t); )
667
669
  e[r[1]] = r[2];
668
670
  return e;
669
671
  }
670
- const kn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
671
- function ce(t, e, n, r, s) {
672
+ const Vn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
673
+ function ye(t, e, n, r, s) {
672
674
  if (c.isFunction(r))
673
675
  return r.call(this, e, n);
674
676
  if (s && (e = n), !!c.isString(e)) {
@@ -678,10 +680,10 @@ function ce(t, e, n, r, s) {
678
680
  return r.test(e);
679
681
  }
680
682
  }
681
- function Un(t) {
683
+ function Kn(t) {
682
684
  return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
683
685
  }
684
- function jn(t, e) {
686
+ function Xn(t, e) {
685
687
  const n = c.toCamelCase(" " + e);
686
688
  ["get", "set", "has"].forEach((r) => {
687
689
  Object.defineProperty(t, r + n, {
@@ -698,24 +700,24 @@ let x = class {
698
700
  }
699
701
  set(e, n, r) {
700
702
  const s = this;
701
- function o(a, f, l) {
702
- const u = v(f);
703
- if (!u)
703
+ function o(a, f, u) {
704
+ const l = z(f);
705
+ if (!l)
704
706
  throw new Error("header name must be a non-empty string");
705
- const d = c.findKey(s, u);
706
- (!d || s[d] === void 0 || l === !0 || l === void 0 && s[d] !== !1) && (s[d || f] = G(a));
707
+ const p = c.findKey(s, l);
708
+ (!p || s[p] === void 0 || u === !0 || u === void 0 && s[p] !== !1) && (s[p || f] = oe(a));
707
709
  }
708
- const i = (a, f) => c.forEach(a, (l, u) => o(l, u, f));
710
+ const i = (a, f) => c.forEach(a, (u, l) => o(u, l, f));
709
711
  if (c.isPlainObject(e) || e instanceof this.constructor)
710
712
  i(e, n);
711
- else if (c.isString(e) && (e = e.trim()) && !kn(e))
712
- i(Pn(e), n);
713
+ else if (c.isString(e) && (e = e.trim()) && !Vn(e))
714
+ i(zn(e), n);
713
715
  else if (c.isObject(e) && c.isIterable(e)) {
714
- let a = {}, f, l;
715
- for (const u of e) {
716
- if (!c.isArray(u))
716
+ let a = {}, f, u;
717
+ for (const l of e) {
718
+ if (!c.isArray(l))
717
719
  throw TypeError("Object iterator must return a key-value pair");
718
- a[l = u[0]] = (f = a[l]) ? c.isArray(f) ? [...f, u[1]] : [f, u[1]] : u[1];
720
+ a[u = l[0]] = (f = a[u]) ? c.isArray(f) ? [...f, l[1]] : [f, l[1]] : l[1];
719
721
  }
720
722
  i(a, n);
721
723
  } else
@@ -723,14 +725,14 @@ let x = class {
723
725
  return this;
724
726
  }
725
727
  get(e, n) {
726
- if (e = v(e), e) {
728
+ if (e = z(e), e) {
727
729
  const r = c.findKey(this, e);
728
730
  if (r) {
729
731
  const s = this[r];
730
732
  if (!n)
731
733
  return s;
732
734
  if (n === !0)
733
- return Ln(s);
735
+ return Wn(s);
734
736
  if (c.isFunction(n))
735
737
  return n.call(this, s, r);
736
738
  if (c.isRegExp(n))
@@ -740,9 +742,9 @@ let x = class {
740
742
  }
741
743
  }
742
744
  has(e, n) {
743
- if (e = v(e), e) {
745
+ if (e = z(e), e) {
744
746
  const r = c.findKey(this, e);
745
- return !!(r && this[r] !== void 0 && (!n || ce(this, this[r], r, n)));
747
+ return !!(r && this[r] !== void 0 && (!n || ye(this, this[r], r, n)));
746
748
  }
747
749
  return !1;
748
750
  }
@@ -750,9 +752,9 @@ let x = class {
750
752
  const r = this;
751
753
  let s = !1;
752
754
  function o(i) {
753
- if (i = v(i), i) {
755
+ if (i = z(i), i) {
754
756
  const a = c.findKey(r, i);
755
- a && (!n || ce(r, r[a], a, n)) && (delete r[a], s = !0);
757
+ a && (!n || ye(r, r[a], a, n)) && (delete r[a], s = !0);
756
758
  }
757
759
  }
758
760
  return c.isArray(e) ? e.forEach(o) : o(e), s;
@@ -762,7 +764,7 @@ let x = class {
762
764
  let r = n.length, s = !1;
763
765
  for (; r--; ) {
764
766
  const o = n[r];
765
- (!e || ce(this, this[o], o, e, !0)) && (delete this[o], s = !0);
767
+ (!e || ye(this, this[o], o, e, !0)) && (delete this[o], s = !0);
766
768
  }
767
769
  return s;
768
770
  }
@@ -771,11 +773,11 @@ let x = class {
771
773
  return c.forEach(this, (s, o) => {
772
774
  const i = c.findKey(r, o);
773
775
  if (i) {
774
- n[i] = G(s), delete n[o];
776
+ n[i] = oe(s), delete n[o];
775
777
  return;
776
778
  }
777
- const a = e ? Un(o) : String(o).trim();
778
- a !== o && delete n[o], n[a] = G(s), r[a] = !0;
779
+ const a = e ? Kn(o) : String(o).trim();
780
+ a !== o && delete n[o], n[a] = oe(s), r[a] = !0;
779
781
  }), this;
780
782
  }
781
783
  concat(...e) {
@@ -808,12 +810,12 @@ let x = class {
808
810
  return n.forEach((s) => r.set(s)), r;
809
811
  }
810
812
  static accessor(e) {
811
- const r = (this[Pe] = this[Pe] = {
813
+ const r = (this[He] = this[He] = {
812
814
  accessors: {}
813
815
  }).accessors, s = this.prototype;
814
816
  function o(i) {
815
- const a = v(i);
816
- r[a] || (jn(s, i), r[a] = !0);
817
+ const a = z(i);
818
+ r[a] || (Xn(s, i), r[a] = !0);
817
819
  }
818
820
  return c.isArray(e) ? e.forEach(o) : o(e), this;
819
821
  }
@@ -829,106 +831,108 @@ c.reduceDescriptors(x.prototype, ({ value: t }, e) => {
829
831
  };
830
832
  });
831
833
  c.freezeMethods(x);
832
- function le(t, e) {
833
- const n = this || W, r = e || n, s = x.from(r.headers);
834
+ function we(t, e) {
835
+ const n = this || Y, r = e || n, s = x.from(r.headers);
834
836
  let o = r.data;
835
837
  return c.forEach(t, function(a) {
836
838
  o = a.call(n, o, s.normalize(), e ? e.status : void 0);
837
839
  }), s.normalize(), o;
838
840
  }
839
- function rt(t) {
841
+ function bt(t) {
840
842
  return !!(t && t.__CANCEL__);
841
843
  }
842
- function B(t, e, n) {
843
- y.call(this, t ?? "canceled", y.ERR_CANCELED, e, n), this.name = "CanceledError";
844
+ function $(t, e, n) {
845
+ g.call(this, t ?? "canceled", g.ERR_CANCELED, e, n), this.name = "CanceledError";
844
846
  }
845
- c.inherits(B, y, {
847
+ c.inherits($, g, {
846
848
  __CANCEL__: !0
847
849
  });
848
- function st(t, e, n) {
850
+ function Et(t, e, n) {
849
851
  const r = n.config.validateStatus;
850
- !n.status || !r || r(n.status) ? t(n) : e(new y(
852
+ !n.status || !r || r(n.status) ? t(n) : e(new g(
851
853
  "Request failed with status code " + n.status,
852
- [y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
854
+ [g.ERR_BAD_REQUEST, g.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
853
855
  n.config,
854
856
  n.request,
855
857
  n
856
858
  ));
857
859
  }
858
- function Nn(t) {
860
+ function Gn(t) {
859
861
  const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
860
862
  return e && e[1] || "";
861
863
  }
862
- function Fn(t, e) {
864
+ function Qn(t, e) {
863
865
  t = t || 10;
864
866
  const n = new Array(t), r = new Array(t);
865
867
  let s = 0, o = 0, i;
866
868
  return e = e !== void 0 ? e : 1e3, function(f) {
867
- const l = Date.now(), u = r[o];
868
- i || (i = l), n[s] = f, r[s] = l;
869
- let d = o, g = 0;
870
- for (; d !== s; )
871
- g += n[d++], d = d % t;
872
- if (s = (s + 1) % t, s === o && (o = (o + 1) % t), l - i < e)
869
+ const u = Date.now(), l = r[o];
870
+ i || (i = u), n[s] = f, r[s] = u;
871
+ let p = o, y = 0;
872
+ for (; p !== s; )
873
+ y += n[p++], p = p % t;
874
+ if (s = (s + 1) % t, s === o && (o = (o + 1) % t), u - i < e)
873
875
  return;
874
- const b = u && l - u;
875
- return b ? Math.round(g * 1e3 / b) : void 0;
876
+ const E = l && u - l;
877
+ return E ? Math.round(y * 1e3 / E) : void 0;
876
878
  };
877
879
  }
878
- function Dn(t, e) {
880
+ function Yn(t, e) {
879
881
  let n = 0, r = 1e3 / e, s, o;
880
- const i = (l, u = Date.now()) => {
881
- n = u, s = null, o && (clearTimeout(o), o = null), t(...l);
882
+ const i = (u, l = Date.now()) => {
883
+ n = l, s = null, o && (clearTimeout(o), o = null), t(...u);
882
884
  };
883
- return [(...l) => {
884
- const u = Date.now(), d = u - n;
885
- d >= r ? i(l, u) : (s = l, o || (o = setTimeout(() => {
885
+ return [(...u) => {
886
+ const l = Date.now(), p = l - n;
887
+ p >= r ? i(u, l) : (s = u, o || (o = setTimeout(() => {
886
888
  o = null, i(s);
887
- }, r - d)));
889
+ }, r - p)));
888
890
  }, () => s && i(s)];
889
891
  }
890
- const Y = (t, e, n = 3) => {
892
+ const ae = (t, e, n = 3) => {
891
893
  let r = 0;
892
- const s = Fn(50, 250);
893
- return Dn((o) => {
894
- const i = o.loaded, a = o.lengthComputable ? o.total : void 0, f = i - r, l = s(f), u = i <= a;
894
+ const s = Qn(50, 250);
895
+ return Yn((o) => {
896
+ const i = o.loaded, a = o.lengthComputable ? o.total : void 0, f = i - r, u = s(f), l = i <= a;
895
897
  r = i;
896
- const d = {
898
+ const p = {
897
899
  loaded: i,
898
900
  total: a,
899
901
  progress: a ? i / a : void 0,
900
902
  bytes: f,
901
- rate: l || void 0,
902
- estimated: l && a && u ? (a - i) / l : void 0,
903
+ rate: u || void 0,
904
+ estimated: u && a && l ? (a - i) / u : void 0,
903
905
  event: o,
904
906
  lengthComputable: a != null,
905
907
  [e ? "download" : "upload"]: !0
906
908
  };
907
- t(d);
909
+ t(p);
908
910
  }, n);
909
- }, Le = (t, e) => {
911
+ }, $e = (t, e) => {
910
912
  const n = t != null;
911
913
  return [(r) => e[0]({
912
914
  lengthComputable: n,
913
915
  total: t,
914
916
  loaded: r
915
917
  }), e[1]];
916
- }, ke = (t) => (...e) => c.asap(() => t(...e)), Bn = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, O.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
917
- new URL(O.origin),
918
- O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
919
- ) : () => !0, vn = O.hasStandardBrowserEnv ? (
918
+ }, Je = (t) => (...e) => c.asap(() => t(...e)), Zn = T.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, T.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
919
+ new URL(T.origin),
920
+ T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
921
+ ) : () => !0, er = T.hasStandardBrowserEnv ? (
920
922
  // Standard browser envs support document.cookie
921
923
  {
922
- write(t, e, n, r, s, o) {
923
- const i = [t + "=" + encodeURIComponent(e)];
924
- c.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), c.isString(r) && i.push("path=" + r), c.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
924
+ write(t, e, n, r, s, o, i) {
925
+ if (typeof document > "u") return;
926
+ const a = [`${t}=${encodeURIComponent(e)}`];
927
+ c.isNumber(n) && a.push(`expires=${new Date(n).toUTCString()}`), c.isString(r) && a.push(`path=${r}`), c.isString(s) && a.push(`domain=${s}`), o === !0 && a.push("secure"), c.isString(i) && a.push(`SameSite=${i}`), document.cookie = a.join("; ");
925
928
  },
926
929
  read(t) {
927
- const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
928
- return e ? decodeURIComponent(e[3]) : null;
930
+ if (typeof document > "u") return null;
931
+ const e = document.cookie.match(new RegExp("(?:^|; )" + t + "=([^;]*)"));
932
+ return e ? decodeURIComponent(e[1]) : null;
929
933
  },
930
934
  remove(t) {
931
- this.write(t, "", Date.now() - 864e5);
935
+ this.write(t, "", Date.now() - 864e5, "/");
932
936
  }
933
937
  }
934
938
  ) : (
@@ -943,44 +947,44 @@ const Y = (t, e, n = 3) => {
943
947
  }
944
948
  }
945
949
  );
946
- function qn(t) {
950
+ function tr(t) {
947
951
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
948
952
  }
949
- function Mn(t, e) {
953
+ function nr(t, e) {
950
954
  return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
951
955
  }
952
- function ot(t, e, n) {
953
- let r = !qn(e);
954
- return t && (r || n == !1) ? Mn(t, e) : e;
956
+ function St(t, e, n) {
957
+ let r = !tr(e);
958
+ return t && (r || n == !1) ? nr(t, e) : e;
955
959
  }
956
- const Ue = (t) => t instanceof x ? { ...t } : t;
957
- function F(t, e) {
960
+ const ze = (t) => t instanceof x ? { ...t } : t;
961
+ function I(t, e) {
958
962
  e = e || {};
959
963
  const n = {};
960
- function r(l, u, d, g) {
961
- return c.isPlainObject(l) && c.isPlainObject(u) ? c.merge.call({ caseless: g }, l, u) : c.isPlainObject(u) ? c.merge({}, u) : c.isArray(u) ? u.slice() : u;
964
+ function r(u, l, p, y) {
965
+ return c.isPlainObject(u) && c.isPlainObject(l) ? c.merge.call({ caseless: y }, u, l) : c.isPlainObject(l) ? c.merge({}, l) : c.isArray(l) ? l.slice() : l;
962
966
  }
963
- function s(l, u, d, g) {
964
- if (c.isUndefined(u)) {
965
- if (!c.isUndefined(l))
966
- return r(void 0, l, d, g);
967
- } else return r(l, u, d, g);
967
+ function s(u, l, p, y) {
968
+ if (c.isUndefined(l)) {
969
+ if (!c.isUndefined(u))
970
+ return r(void 0, u, p, y);
971
+ } else return r(u, l, p, y);
968
972
  }
969
- function o(l, u) {
970
- if (!c.isUndefined(u))
971
- return r(void 0, u);
973
+ function o(u, l) {
974
+ if (!c.isUndefined(l))
975
+ return r(void 0, l);
972
976
  }
973
- function i(l, u) {
974
- if (c.isUndefined(u)) {
975
- if (!c.isUndefined(l))
976
- return r(void 0, l);
977
- } else return r(void 0, u);
977
+ function i(u, l) {
978
+ if (c.isUndefined(l)) {
979
+ if (!c.isUndefined(u))
980
+ return r(void 0, u);
981
+ } else return r(void 0, l);
978
982
  }
979
- function a(l, u, d) {
980
- if (d in e)
981
- return r(l, u);
982
- if (d in t)
983
- return r(void 0, l);
983
+ function a(u, l, p) {
984
+ if (p in e)
985
+ return r(u, l);
986
+ if (p in t)
987
+ return r(void 0, u);
984
988
  }
985
989
  const f = {
986
990
  url: o,
@@ -1011,115 +1015,116 @@ function F(t, e) {
1011
1015
  socketPath: i,
1012
1016
  responseEncoding: i,
1013
1017
  validateStatus: a,
1014
- headers: (l, u, d) => s(Ue(l), Ue(u), d, !0)
1018
+ headers: (u, l, p) => s(ze(u), ze(l), p, !0)
1015
1019
  };
1016
- return c.forEach(Object.keys({ ...t, ...e }), function(u) {
1017
- const d = f[u] || s, g = d(t[u], e[u], u);
1018
- c.isUndefined(g) && d !== a || (n[u] = g);
1020
+ return c.forEach(Object.keys({ ...t, ...e }), function(l) {
1021
+ const p = f[l] || s, y = p(t[l], e[l], l);
1022
+ c.isUndefined(y) && p !== a || (n[l] = y);
1019
1023
  }), n;
1020
1024
  }
1021
- const it = (t) => {
1022
- const e = F({}, t);
1025
+ const Rt = (t) => {
1026
+ const e = I({}, t);
1023
1027
  let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: a } = e;
1024
- e.headers = i = x.from(i), e.url = et(ot(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), a && i.set(
1028
+ if (e.headers = i = x.from(i), e.url = gt(St(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), a && i.set(
1025
1029
  "Authorization",
1026
1030
  "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
1027
- );
1028
- let f;
1029
- if (c.isFormData(n)) {
1030
- if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
1031
+ ), c.isFormData(n)) {
1032
+ if (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv)
1031
1033
  i.setContentType(void 0);
1032
- else if ((f = i.getContentType()) !== !1) {
1033
- const [l, ...u] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
1034
- i.setContentType([l || "multipart/form-data", ...u].join("; "));
1034
+ else if (c.isFunction(n.getHeaders)) {
1035
+ const f = n.getHeaders(), u = ["content-type", "content-length"];
1036
+ Object.entries(f).forEach(([l, p]) => {
1037
+ u.includes(l.toLowerCase()) && i.set(l, p);
1038
+ });
1035
1039
  }
1036
1040
  }
1037
- if (O.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(e)), r || r !== !1 && Bn(e.url))) {
1038
- const l = s && o && vn.read(o);
1039
- l && i.set(s, l);
1041
+ if (T.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(e)), r || r !== !1 && Zn(e.url))) {
1042
+ const f = s && o && er.read(o);
1043
+ f && i.set(s, f);
1040
1044
  }
1041
1045
  return e;
1042
- }, In = typeof XMLHttpRequest < "u", Hn = In && function(t) {
1046
+ }, rr = typeof XMLHttpRequest < "u", sr = rr && function(t) {
1043
1047
  return new Promise(function(n, r) {
1044
- const s = it(t);
1048
+ const s = Rt(t);
1045
1049
  let o = s.data;
1046
1050
  const i = x.from(s.headers).normalize();
1047
- let { responseType: a, onUploadProgress: f, onDownloadProgress: l } = s, u, d, g, b, p;
1051
+ let { responseType: a, onUploadProgress: f, onDownloadProgress: u } = s, l, p, y, E, d;
1048
1052
  function m() {
1049
- b && b(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
1053
+ E && E(), d && d(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1050
1054
  }
1051
1055
  let h = new XMLHttpRequest();
1052
1056
  h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
1053
1057
  function w() {
1054
1058
  if (!h)
1055
1059
  return;
1056
- const E = x.from(
1060
+ const b = x.from(
1057
1061
  "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1058
- ), T = {
1062
+ ), _ = {
1059
1063
  data: !a || a === "text" || a === "json" ? h.responseText : h.response,
1060
1064
  status: h.status,
1061
1065
  statusText: h.statusText,
1062
- headers: E,
1066
+ headers: b,
1063
1067
  config: t,
1064
1068
  request: h
1065
1069
  };
1066
- st(function(U) {
1067
- n(U), m();
1068
- }, function(U) {
1069
- r(U), m();
1070
- }, T), h = null;
1070
+ Et(function(P) {
1071
+ n(P), m();
1072
+ }, function(P) {
1073
+ r(P), m();
1074
+ }, _), h = null;
1071
1075
  }
1072
1076
  "onloadend" in h ? h.onloadend = w : h.onreadystatechange = function() {
1073
1077
  !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(w);
1074
1078
  }, h.onabort = function() {
1075
- h && (r(new y("Request aborted", y.ECONNABORTED, t, h)), h = null);
1076
- }, h.onerror = function() {
1077
- r(new y("Network Error", y.ERR_NETWORK, t, h)), h = null;
1079
+ h && (r(new g("Request aborted", g.ECONNABORTED, t, h)), h = null);
1080
+ }, h.onerror = function(O) {
1081
+ const _ = O && O.message ? O.message : "Network Error", N = new g(_, g.ERR_NETWORK, t, h);
1082
+ N.event = O || null, r(N), h = null;
1078
1083
  }, h.ontimeout = function() {
1079
- let _ = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1080
- const T = s.transitional || tt;
1081
- s.timeoutErrorMessage && (_ = s.timeoutErrorMessage), r(new y(
1082
- _,
1083
- T.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
1084
+ let O = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1085
+ const _ = s.transitional || yt;
1086
+ s.timeoutErrorMessage && (O = s.timeoutErrorMessage), r(new g(
1087
+ O,
1088
+ _.clarifyTimeoutError ? g.ETIMEDOUT : g.ECONNABORTED,
1084
1089
  t,
1085
1090
  h
1086
1091
  )), h = null;
1087
- }, o === void 0 && i.setContentType(null), "setRequestHeader" in h && c.forEach(i.toJSON(), function(_, T) {
1088
- h.setRequestHeader(T, _);
1089
- }), c.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), a && a !== "json" && (h.responseType = s.responseType), l && ([g, p] = Y(l, !0), h.addEventListener("progress", g)), f && h.upload && ([d, b] = Y(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", b)), (s.cancelToken || s.signal) && (u = (E) => {
1090
- h && (r(!E || E.type ? new B(null, t, h) : E), h.abort(), h = null);
1091
- }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1092
- const R = Nn(s.url);
1093
- if (R && O.protocols.indexOf(R) === -1) {
1094
- r(new y("Unsupported protocol " + R + ":", y.ERR_BAD_REQUEST, t));
1092
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in h && c.forEach(i.toJSON(), function(O, _) {
1093
+ h.setRequestHeader(_, O);
1094
+ }), c.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), a && a !== "json" && (h.responseType = s.responseType), u && ([y, d] = ae(u, !0), h.addEventListener("progress", y)), f && h.upload && ([p, E] = ae(f), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (l = (b) => {
1095
+ h && (r(!b || b.type ? new $(null, t, h) : b), h.abort(), h = null);
1096
+ }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1097
+ const R = Gn(s.url);
1098
+ if (R && T.protocols.indexOf(R) === -1) {
1099
+ r(new g("Unsupported protocol " + R + ":", g.ERR_BAD_REQUEST, t));
1095
1100
  return;
1096
1101
  }
1097
1102
  h.send(o || null);
1098
1103
  });
1099
- }, Jn = (t, e) => {
1104
+ }, or = (t, e) => {
1100
1105
  const { length: n } = t = t ? t.filter(Boolean) : [];
1101
1106
  if (e || n) {
1102
1107
  let r = new AbortController(), s;
1103
- const o = function(l) {
1108
+ const o = function(u) {
1104
1109
  if (!s) {
1105
1110
  s = !0, a();
1106
- const u = l instanceof Error ? l : this.reason;
1107
- r.abort(u instanceof y ? u : new B(u instanceof Error ? u.message : u));
1111
+ const l = u instanceof Error ? u : this.reason;
1112
+ r.abort(l instanceof g ? l : new $(l instanceof Error ? l.message : l));
1108
1113
  }
1109
1114
  };
1110
1115
  let i = e && setTimeout(() => {
1111
- i = null, o(new y(`timeout ${e} of ms exceeded`, y.ETIMEDOUT));
1116
+ i = null, o(new g(`timeout ${e} of ms exceeded`, g.ETIMEDOUT));
1112
1117
  }, e);
1113
1118
  const a = () => {
1114
- t && (i && clearTimeout(i), i = null, t.forEach((l) => {
1115
- l.unsubscribe ? l.unsubscribe(o) : l.removeEventListener("abort", o);
1119
+ t && (i && clearTimeout(i), i = null, t.forEach((u) => {
1120
+ u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
1116
1121
  }), t = null);
1117
1122
  };
1118
- t.forEach((l) => l.addEventListener("abort", o));
1123
+ t.forEach((u) => u.addEventListener("abort", o));
1119
1124
  const { signal: f } = r;
1120
1125
  return f.unsubscribe = () => c.asap(a), f;
1121
1126
  }
1122
- }, $n = function* (t, e) {
1127
+ }, ir = function* (t, e) {
1123
1128
  let n = t.byteLength;
1124
1129
  if (n < e) {
1125
1130
  yield t;
@@ -1128,10 +1133,10 @@ const it = (t) => {
1128
1133
  let r = 0, s;
1129
1134
  for (; r < n; )
1130
1135
  s = r + e, yield t.slice(r, s), r = s;
1131
- }, zn = async function* (t, e) {
1132
- for await (const n of Wn(t))
1133
- yield* $n(n, e);
1134
- }, Wn = async function* (t) {
1136
+ }, ar = async function* (t, e) {
1137
+ for await (const n of cr(t))
1138
+ yield* ir(n, e);
1139
+ }, cr = async function* (t) {
1135
1140
  if (t[Symbol.asyncIterator]) {
1136
1141
  yield* t;
1137
1142
  return;
@@ -1147,27 +1152,27 @@ const it = (t) => {
1147
1152
  } finally {
1148
1153
  await e.cancel();
1149
1154
  }
1150
- }, je = (t, e, n, r) => {
1151
- const s = zn(t, e);
1155
+ }, We = (t, e, n, r) => {
1156
+ const s = ar(t, e);
1152
1157
  let o = 0, i, a = (f) => {
1153
1158
  i || (i = !0, r && r(f));
1154
1159
  };
1155
1160
  return new ReadableStream({
1156
1161
  async pull(f) {
1157
1162
  try {
1158
- const { done: l, value: u } = await s.next();
1159
- if (l) {
1163
+ const { done: u, value: l } = await s.next();
1164
+ if (u) {
1160
1165
  a(), f.close();
1161
1166
  return;
1162
1167
  }
1163
- let d = u.byteLength;
1168
+ let p = l.byteLength;
1164
1169
  if (n) {
1165
- let g = o += d;
1166
- n(g);
1170
+ let y = o += p;
1171
+ n(y);
1167
1172
  }
1168
- f.enqueue(new Uint8Array(u));
1169
- } catch (l) {
1170
- throw a(l), l;
1173
+ f.enqueue(new Uint8Array(l));
1174
+ } catch (u) {
1175
+ throw a(u), u;
1171
1176
  }
1172
1177
  },
1173
1178
  cancel(f) {
@@ -1176,140 +1181,171 @@ const it = (t) => {
1176
1181
  }, {
1177
1182
  highWaterMark: 2
1178
1183
  });
1179
- }, se = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", at = se && typeof ReadableStream == "function", Vn = se && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), ct = (t, ...e) => {
1184
+ }, Ve = 64 * 1024, { isFunction: ne } = c, lr = (({ Request: t, Response: e }) => ({
1185
+ Request: t,
1186
+ Response: e
1187
+ }))(c.global), {
1188
+ ReadableStream: Ke,
1189
+ TextEncoder: Xe
1190
+ } = c.global, Ge = (t, ...e) => {
1180
1191
  try {
1181
1192
  return !!t(...e);
1182
1193
  } catch {
1183
1194
  return !1;
1184
1195
  }
1185
- }, Kn = at && ct(() => {
1186
- let t = !1;
1187
- const e = new Request(O.origin, {
1188
- body: new ReadableStream(),
1189
- method: "POST",
1190
- get duplex() {
1191
- return t = !0, "half";
1192
- }
1193
- }).headers.has("Content-Type");
1194
- return t && !e;
1195
- }), Ne = 64 * 1024, me = at && ct(() => c.isReadableStream(new Response("").body)), Z = {
1196
- stream: me && ((t) => t.body)
1197
- };
1198
- se && ((t) => {
1199
- ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
1200
- !Z[e] && (Z[e] = c.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
1201
- throw new y(`Response type '${e}' is not supported`, y.ERR_NOT_SUPPORT, r);
1202
- });
1203
- });
1204
- })(new Response());
1205
- const Xn = async (t) => {
1206
- if (t == null)
1207
- return 0;
1208
- if (c.isBlob(t))
1209
- return t.size;
1210
- if (c.isSpecCompliantForm(t))
1211
- return (await new Request(O.origin, {
1196
+ }, ur = (t) => {
1197
+ t = c.merge.call({
1198
+ skipUndefined: !0
1199
+ }, lr, t);
1200
+ const { fetch: e, Request: n, Response: r } = t, s = e ? ne(e) : typeof fetch == "function", o = ne(n), i = ne(r);
1201
+ if (!s)
1202
+ return !1;
1203
+ const a = s && ne(Ke), f = s && (typeof Xe == "function" ? /* @__PURE__ */ ((d) => (m) => d.encode(m))(new Xe()) : async (d) => new Uint8Array(await new n(d).arrayBuffer())), u = o && a && Ge(() => {
1204
+ let d = !1;
1205
+ const m = new n(T.origin, {
1206
+ body: new Ke(),
1212
1207
  method: "POST",
1213
- body: t
1214
- }).arrayBuffer()).byteLength;
1215
- if (c.isArrayBufferView(t) || c.isArrayBuffer(t))
1216
- return t.byteLength;
1217
- if (c.isURLSearchParams(t) && (t = t + ""), c.isString(t))
1218
- return (await Vn(t)).byteLength;
1219
- }, Gn = async (t, e) => {
1220
- const n = c.toFiniteNumber(t.getContentLength());
1221
- return n ?? Xn(e);
1222
- }, Qn = se && (async (t) => {
1223
- let {
1224
- url: e,
1225
- method: n,
1226
- data: r,
1227
- signal: s,
1228
- cancelToken: o,
1229
- timeout: i,
1230
- onDownloadProgress: a,
1231
- onUploadProgress: f,
1232
- responseType: l,
1233
- headers: u,
1234
- withCredentials: d = "same-origin",
1235
- fetchOptions: g
1236
- } = it(t);
1237
- l = l ? (l + "").toLowerCase() : "text";
1238
- let b = Jn([s, o && o.toAbortSignal()], i), p;
1239
- const m = b && b.unsubscribe && (() => {
1240
- b.unsubscribe();
1208
+ get duplex() {
1209
+ return d = !0, "half";
1210
+ }
1211
+ }).headers.has("Content-Type");
1212
+ return d && !m;
1213
+ }), l = i && a && Ge(() => c.isReadableStream(new r("").body)), p = {
1214
+ stream: l && ((d) => d.body)
1215
+ };
1216
+ s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
1217
+ !p[d] && (p[d] = (m, h) => {
1218
+ let w = m && m[d];
1219
+ if (w)
1220
+ return w.call(m);
1221
+ throw new g(`Response type '${d}' is not supported`, g.ERR_NOT_SUPPORT, h);
1222
+ });
1241
1223
  });
1242
- let h;
1243
- try {
1244
- if (f && Kn && n !== "get" && n !== "head" && (h = await Gn(u, r)) !== 0) {
1245
- let T = new Request(e, {
1224
+ const y = async (d) => {
1225
+ if (d == null)
1226
+ return 0;
1227
+ if (c.isBlob(d))
1228
+ return d.size;
1229
+ if (c.isSpecCompliantForm(d))
1230
+ return (await new n(T.origin, {
1246
1231
  method: "POST",
1247
- body: r,
1248
- duplex: "half"
1249
- }), k;
1250
- if (c.isFormData(r) && (k = T.headers.get("content-type")) && u.setContentType(k), T.body) {
1251
- const [U, V] = Le(
1252
- h,
1253
- Y(ke(f))
1232
+ body: d
1233
+ }).arrayBuffer()).byteLength;
1234
+ if (c.isArrayBufferView(d) || c.isArrayBuffer(d))
1235
+ return d.byteLength;
1236
+ if (c.isURLSearchParams(d) && (d = d + ""), c.isString(d))
1237
+ return (await f(d)).byteLength;
1238
+ }, E = async (d, m) => {
1239
+ const h = c.toFiniteNumber(d.getContentLength());
1240
+ return h ?? y(m);
1241
+ };
1242
+ return async (d) => {
1243
+ let {
1244
+ url: m,
1245
+ method: h,
1246
+ data: w,
1247
+ signal: R,
1248
+ cancelToken: b,
1249
+ timeout: O,
1250
+ onDownloadProgress: _,
1251
+ onUploadProgress: N,
1252
+ responseType: P,
1253
+ headers: pe,
1254
+ withCredentials: Z = "same-origin",
1255
+ fetchOptions: ke
1256
+ } = Rt(d), Fe = e || fetch;
1257
+ P = P ? (P + "").toLowerCase() : "text";
1258
+ let ee = or([R, b && b.toAbortSignal()], O), J = null;
1259
+ const D = ee && ee.unsubscribe && (() => {
1260
+ ee.unsubscribe();
1261
+ });
1262
+ let je;
1263
+ try {
1264
+ if (N && u && h !== "get" && h !== "head" && (je = await E(pe, w)) !== 0) {
1265
+ let j = new n(m, {
1266
+ method: "POST",
1267
+ body: w,
1268
+ duplex: "half"
1269
+ }), M;
1270
+ if (c.isFormData(w) && (M = j.headers.get("content-type")) && pe.setContentType(M), j.body) {
1271
+ const [he, te] = $e(
1272
+ je,
1273
+ ae(Je(N))
1274
+ );
1275
+ w = We(j.body, Ve, he, te);
1276
+ }
1277
+ }
1278
+ c.isString(Z) || (Z = Z ? "include" : "omit");
1279
+ const U = o && "credentials" in n.prototype, Ne = {
1280
+ ...ke,
1281
+ signal: ee,
1282
+ method: h.toUpperCase(),
1283
+ headers: pe.normalize().toJSON(),
1284
+ body: w,
1285
+ duplex: "half",
1286
+ credentials: U ? Z : void 0
1287
+ };
1288
+ J = o && new n(m, Ne);
1289
+ let F = await (o ? Fe(J, ke) : Fe(m, Ne));
1290
+ const De = l && (P === "stream" || P === "response");
1291
+ if (l && (_ || De && D)) {
1292
+ const j = {};
1293
+ ["status", "statusText", "headers"].forEach((ve) => {
1294
+ j[ve] = F[ve];
1295
+ });
1296
+ const M = c.toFiniteNumber(F.headers.get("content-length")), [he, te] = _ && $e(
1297
+ M,
1298
+ ae(Je(_), !0)
1299
+ ) || [];
1300
+ F = new r(
1301
+ We(F.body, Ve, he, () => {
1302
+ te && te(), D && D();
1303
+ }),
1304
+ j
1254
1305
  );
1255
- r = je(T.body, Ne, U, V);
1256
1306
  }
1257
- }
1258
- c.isString(d) || (d = d ? "include" : "omit");
1259
- const w = "credentials" in Request.prototype;
1260
- p = new Request(e, {
1261
- ...g,
1262
- signal: b,
1263
- method: n.toUpperCase(),
1264
- headers: u.normalize().toJSON(),
1265
- body: r,
1266
- duplex: "half",
1267
- credentials: w ? d : void 0
1268
- });
1269
- let R = await fetch(p, g);
1270
- const E = me && (l === "stream" || l === "response");
1271
- if (me && (a || E && m)) {
1272
- const T = {};
1273
- ["status", "statusText", "headers"].forEach((Te) => {
1274
- T[Te] = R[Te];
1307
+ P = P || "text";
1308
+ let kt = await p[c.findKey(p, P) || "text"](F, d);
1309
+ return !De && D && D(), await new Promise((j, M) => {
1310
+ Et(j, M, {
1311
+ data: kt,
1312
+ headers: x.from(F.headers),
1313
+ status: F.status,
1314
+ statusText: F.statusText,
1315
+ config: d,
1316
+ request: J
1317
+ });
1275
1318
  });
1276
- const k = c.toFiniteNumber(R.headers.get("content-length")), [U, V] = a && Le(
1277
- k,
1278
- Y(ke(a), !0)
1279
- ) || [];
1280
- R = new Response(
1281
- je(R.body, Ne, U, () => {
1282
- V && V(), m && m();
1283
- }),
1284
- T
1285
- );
1319
+ } catch (U) {
1320
+ throw D && D(), U && U.name === "TypeError" && /Load failed|fetch/i.test(U.message) ? Object.assign(
1321
+ new g("Network Error", g.ERR_NETWORK, d, J),
1322
+ {
1323
+ cause: U.cause || U
1324
+ }
1325
+ ) : g.from(U, U && U.code, d, J);
1286
1326
  }
1287
- l = l || "text";
1288
- let _ = await Z[c.findKey(Z, l) || "text"](R, t);
1289
- return !E && m && m(), await new Promise((T, k) => {
1290
- st(T, k, {
1291
- data: _,
1292
- headers: x.from(R.headers),
1293
- status: R.status,
1294
- statusText: R.statusText,
1295
- config: t,
1296
- request: p
1297
- });
1298
- });
1299
- } catch (w) {
1300
- throw m && m(), w && w.name === "TypeError" && /Load failed|fetch/i.test(w.message) ? Object.assign(
1301
- new y("Network Error", y.ERR_NETWORK, t, p),
1302
- {
1303
- cause: w.cause || w
1304
- }
1305
- ) : y.from(w, w && w.code, t, p);
1327
+ };
1328
+ }, fr = /* @__PURE__ */ new Map(), Ot = (t) => {
1329
+ let e = t && t.env || {};
1330
+ const { fetch: n, Request: r, Response: s } = e, o = [
1331
+ r,
1332
+ s,
1333
+ n
1334
+ ];
1335
+ let i = o.length, a = i, f, u, l = fr;
1336
+ for (; a--; )
1337
+ f = o[a], u = l.get(f), u === void 0 && l.set(f, u = a ? /* @__PURE__ */ new Map() : ur(e)), l = u;
1338
+ return u;
1339
+ };
1340
+ Ot();
1341
+ const Le = {
1342
+ http: _n,
1343
+ xhr: sr,
1344
+ fetch: {
1345
+ get: Ot
1306
1346
  }
1307
- }), ye = {
1308
- http: dn,
1309
- xhr: Hn,
1310
- fetch: Qn
1311
1347
  };
1312
- c.forEach(ye, (t, e) => {
1348
+ c.forEach(Le, (t, e) => {
1313
1349
  if (t) {
1314
1350
  try {
1315
1351
  Object.defineProperty(t, "name", { value: e });
@@ -1318,77 +1354,87 @@ c.forEach(ye, (t, e) => {
1318
1354
  Object.defineProperty(t, "adapterName", { value: e });
1319
1355
  }
1320
1356
  });
1321
- const Fe = (t) => `- ${t}`, Yn = (t) => c.isFunction(t) || t === null || t === !1, lt = {
1322
- getAdapter: (t) => {
1323
- t = c.isArray(t) ? t : [t];
1324
- const { length: e } = t;
1325
- let n, r;
1326
- const s = {};
1327
- for (let o = 0; o < e; o++) {
1328
- n = t[o];
1329
- let i;
1330
- if (r = n, !Yn(n) && (r = ye[(i = String(n)).toLowerCase()], r === void 0))
1331
- throw new y(`Unknown adapter '${i}'`);
1332
- if (r)
1333
- break;
1334
- s[i || "#" + o] = r;
1335
- }
1336
- if (!r) {
1337
- const o = Object.entries(s).map(
1338
- ([a, f]) => `adapter ${a} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1339
- );
1340
- let i = e ? o.length > 1 ? `since :
1341
- ` + o.map(Fe).join(`
1342
- `) : " " + Fe(o[0]) : "as no adapter specified";
1343
- throw new y(
1344
- "There is no suitable adapter to dispatch the request " + i,
1345
- "ERR_NOT_SUPPORT"
1346
- );
1347
- }
1348
- return r;
1349
- },
1350
- adapters: ye
1357
+ const Qe = (t) => `- ${t}`, dr = (t) => c.isFunction(t) || t === null || t === !1;
1358
+ function pr(t, e) {
1359
+ t = c.isArray(t) ? t : [t];
1360
+ const { length: n } = t;
1361
+ let r, s;
1362
+ const o = {};
1363
+ for (let i = 0; i < n; i++) {
1364
+ r = t[i];
1365
+ let a;
1366
+ if (s = r, !dr(r) && (s = Le[(a = String(r)).toLowerCase()], s === void 0))
1367
+ throw new g(`Unknown adapter '${a}'`);
1368
+ if (s && (c.isFunction(s) || (s = s.get(e))))
1369
+ break;
1370
+ o[a || "#" + i] = s;
1371
+ }
1372
+ if (!s) {
1373
+ const i = Object.entries(o).map(
1374
+ ([f, u]) => `adapter ${f} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
1375
+ );
1376
+ let a = n ? i.length > 1 ? `since :
1377
+ ` + i.map(Qe).join(`
1378
+ `) : " " + Qe(i[0]) : "as no adapter specified";
1379
+ throw new g(
1380
+ "There is no suitable adapter to dispatch the request " + a,
1381
+ "ERR_NOT_SUPPORT"
1382
+ );
1383
+ }
1384
+ return s;
1385
+ }
1386
+ const Tt = {
1387
+ /**
1388
+ * Resolve an adapter from a list of adapter names or functions.
1389
+ * @type {Function}
1390
+ */
1391
+ getAdapter: pr,
1392
+ /**
1393
+ * Exposes all known adapters
1394
+ * @type {Object<string, Function|Object>}
1395
+ */
1396
+ adapters: Le
1351
1397
  };
1352
- function ue(t) {
1398
+ function be(t) {
1353
1399
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1354
- throw new B(null, t);
1400
+ throw new $(null, t);
1355
1401
  }
1356
- function De(t) {
1357
- return ue(t), t.headers = x.from(t.headers), t.data = le.call(
1402
+ function Ye(t) {
1403
+ return be(t), t.headers = x.from(t.headers), t.data = we.call(
1358
1404
  t,
1359
1405
  t.transformRequest
1360
- ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), lt.getAdapter(t.adapter || W.adapter)(t).then(function(r) {
1361
- return ue(t), r.data = le.call(
1406
+ ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Tt.getAdapter(t.adapter || Y.adapter, t)(t).then(function(r) {
1407
+ return be(t), r.data = we.call(
1362
1408
  t,
1363
1409
  t.transformResponse,
1364
1410
  r
1365
1411
  ), r.headers = x.from(r.headers), r;
1366
1412
  }, function(r) {
1367
- return rt(r) || (ue(t), r && r.response && (r.response.data = le.call(
1413
+ return bt(r) || (be(t), r && r.response && (r.response.data = we.call(
1368
1414
  t,
1369
1415
  t.transformResponse,
1370
1416
  r.response
1371
1417
  ), r.response.headers = x.from(r.response.headers))), Promise.reject(r);
1372
1418
  });
1373
1419
  }
1374
- const ut = "1.11.0", oe = {};
1420
+ const At = "1.13.2", de = {};
1375
1421
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1376
- oe[t] = function(r) {
1422
+ de[t] = function(r) {
1377
1423
  return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
1378
1424
  };
1379
1425
  });
1380
- const Be = {};
1381
- oe.transitional = function(e, n, r) {
1426
+ const Ze = {};
1427
+ de.transitional = function(e, n, r) {
1382
1428
  function s(o, i) {
1383
- return "[Axios v" + ut + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1429
+ return "[Axios v" + At + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1384
1430
  }
1385
1431
  return (o, i, a) => {
1386
1432
  if (e === !1)
1387
- throw new y(
1433
+ throw new g(
1388
1434
  s(i, " has been removed" + (n ? " in " + n : "")),
1389
- y.ERR_DEPRECATED
1435
+ g.ERR_DEPRECATED
1390
1436
  );
1391
- return n && !Be[i] && (Be[i] = !0, console.warn(
1437
+ return n && !Ze[i] && (Ze[i] = !0, console.warn(
1392
1438
  s(
1393
1439
  i,
1394
1440
  " has been deprecated since v" + n + " and will be removed in the near future"
@@ -1396,12 +1442,12 @@ oe.transitional = function(e, n, r) {
1396
1442
  )), e ? e(o, i, a) : !0;
1397
1443
  };
1398
1444
  };
1399
- oe.spelling = function(e) {
1445
+ de.spelling = function(e) {
1400
1446
  return (n, r) => (console.warn(`${r} is likely a misspelling of ${e}`), !0);
1401
1447
  };
1402
- function Zn(t, e, n) {
1448
+ function hr(t, e, n) {
1403
1449
  if (typeof t != "object")
1404
- throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
1450
+ throw new g("options must be an object", g.ERR_BAD_OPTION_VALUE);
1405
1451
  const r = Object.keys(t);
1406
1452
  let s = r.length;
1407
1453
  for (; s-- > 0; ) {
@@ -1409,22 +1455,22 @@ function Zn(t, e, n) {
1409
1455
  if (i) {
1410
1456
  const a = t[o], f = a === void 0 || i(a, o, t);
1411
1457
  if (f !== !0)
1412
- throw new y("option " + o + " must be " + f, y.ERR_BAD_OPTION_VALUE);
1458
+ throw new g("option " + o + " must be " + f, g.ERR_BAD_OPTION_VALUE);
1413
1459
  continue;
1414
1460
  }
1415
1461
  if (n !== !0)
1416
- throw new y("Unknown option " + o, y.ERR_BAD_OPTION);
1462
+ throw new g("Unknown option " + o, g.ERR_BAD_OPTION);
1417
1463
  }
1418
1464
  }
1419
- const Q = {
1420
- assertOptions: Zn,
1421
- validators: oe
1422
- }, L = Q.validators;
1423
- let N = class {
1465
+ const ie = {
1466
+ assertOptions: hr,
1467
+ validators: de
1468
+ }, k = ie.validators;
1469
+ let B = class {
1424
1470
  constructor(e) {
1425
1471
  this.defaults = e || {}, this.interceptors = {
1426
- request: new _e(),
1427
- response: new _e()
1472
+ request: new qe(),
1473
+ response: new qe()
1428
1474
  };
1429
1475
  }
1430
1476
  /**
@@ -1453,20 +1499,20 @@ let N = class {
1453
1499
  }
1454
1500
  }
1455
1501
  _request(e, n) {
1456
- typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = F(this.defaults, n);
1502
+ typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = I(this.defaults, n);
1457
1503
  const { transitional: r, paramsSerializer: s, headers: o } = n;
1458
- r !== void 0 && Q.assertOptions(r, {
1459
- silentJSONParsing: L.transitional(L.boolean),
1460
- forcedJSONParsing: L.transitional(L.boolean),
1461
- clarifyTimeoutError: L.transitional(L.boolean)
1504
+ r !== void 0 && ie.assertOptions(r, {
1505
+ silentJSONParsing: k.transitional(k.boolean),
1506
+ forcedJSONParsing: k.transitional(k.boolean),
1507
+ clarifyTimeoutError: k.transitional(k.boolean)
1462
1508
  }, !1), s != null && (c.isFunction(s) ? n.paramsSerializer = {
1463
1509
  serialize: s
1464
- } : Q.assertOptions(s, {
1465
- encode: L.function,
1466
- serialize: L.function
1467
- }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Q.assertOptions(n, {
1468
- baseUrl: L.spelling("baseURL"),
1469
- withXsrfToken: L.spelling("withXSRFToken")
1510
+ } : ie.assertOptions(s, {
1511
+ encode: k.function,
1512
+ serialize: k.function
1513
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ie.assertOptions(n, {
1514
+ baseUrl: k.spelling("baseURL"),
1515
+ withXsrfToken: k.spelling("withXSRFToken")
1470
1516
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1471
1517
  let i = o && c.merge(
1472
1518
  o.common,
@@ -1474,8 +1520,8 @@ let N = class {
1474
1520
  );
1475
1521
  o && c.forEach(
1476
1522
  ["delete", "get", "head", "post", "put", "patch", "common"],
1477
- (p) => {
1478
- delete o[p];
1523
+ (d) => {
1524
+ delete o[d];
1479
1525
  }
1480
1526
  ), n.headers = x.concat(i, o);
1481
1527
  const a = [];
@@ -1483,46 +1529,46 @@ let N = class {
1483
1529
  this.interceptors.request.forEach(function(m) {
1484
1530
  typeof m.runWhen == "function" && m.runWhen(n) === !1 || (f = f && m.synchronous, a.unshift(m.fulfilled, m.rejected));
1485
1531
  });
1486
- const l = [];
1532
+ const u = [];
1487
1533
  this.interceptors.response.forEach(function(m) {
1488
- l.push(m.fulfilled, m.rejected);
1534
+ u.push(m.fulfilled, m.rejected);
1489
1535
  });
1490
- let u, d = 0, g;
1536
+ let l, p = 0, y;
1491
1537
  if (!f) {
1492
- const p = [De.bind(this), void 0];
1493
- for (p.unshift(...a), p.push(...l), g = p.length, u = Promise.resolve(n); d < g; )
1494
- u = u.then(p[d++], p[d++]);
1495
- return u;
1538
+ const d = [Ye.bind(this), void 0];
1539
+ for (d.unshift(...a), d.push(...u), y = d.length, l = Promise.resolve(n); p < y; )
1540
+ l = l.then(d[p++], d[p++]);
1541
+ return l;
1496
1542
  }
1497
- g = a.length;
1498
- let b = n;
1499
- for (d = 0; d < g; ) {
1500
- const p = a[d++], m = a[d++];
1543
+ y = a.length;
1544
+ let E = n;
1545
+ for (; p < y; ) {
1546
+ const d = a[p++], m = a[p++];
1501
1547
  try {
1502
- b = p(b);
1548
+ E = d(E);
1503
1549
  } catch (h) {
1504
1550
  m.call(this, h);
1505
1551
  break;
1506
1552
  }
1507
1553
  }
1508
1554
  try {
1509
- u = De.call(this, b);
1510
- } catch (p) {
1511
- return Promise.reject(p);
1555
+ l = Ye.call(this, E);
1556
+ } catch (d) {
1557
+ return Promise.reject(d);
1512
1558
  }
1513
- for (d = 0, g = l.length; d < g; )
1514
- u = u.then(l[d++], l[d++]);
1515
- return u;
1559
+ for (p = 0, y = u.length; p < y; )
1560
+ l = l.then(u[p++], u[p++]);
1561
+ return l;
1516
1562
  }
1517
1563
  getUri(e) {
1518
- e = F(this.defaults, e);
1519
- const n = ot(e.baseURL, e.url, e.allowAbsoluteUrls);
1520
- return et(n, e.params, e.paramsSerializer);
1564
+ e = I(this.defaults, e);
1565
+ const n = St(e.baseURL, e.url, e.allowAbsoluteUrls);
1566
+ return gt(n, e.params, e.paramsSerializer);
1521
1567
  }
1522
1568
  };
1523
1569
  c.forEach(["delete", "get", "head", "options"], function(e) {
1524
- N.prototype[e] = function(n, r) {
1525
- return this.request(F(r || {}, {
1570
+ B.prototype[e] = function(n, r) {
1571
+ return this.request(I(r || {}, {
1526
1572
  method: e,
1527
1573
  url: n,
1528
1574
  data: (r || {}).data
@@ -1532,7 +1578,7 @@ c.forEach(["delete", "get", "head", "options"], function(e) {
1532
1578
  c.forEach(["post", "put", "patch"], function(e) {
1533
1579
  function n(r) {
1534
1580
  return function(o, i, a) {
1535
- return this.request(F(a || {}, {
1581
+ return this.request(I(a || {}, {
1536
1582
  method: e,
1537
1583
  headers: r ? {
1538
1584
  "Content-Type": "multipart/form-data"
@@ -1542,9 +1588,9 @@ c.forEach(["post", "put", "patch"], function(e) {
1542
1588
  }));
1543
1589
  };
1544
1590
  }
1545
- N.prototype[e] = n(), N.prototype[e + "Form"] = n(!0);
1591
+ B.prototype[e] = n(), B.prototype[e + "Form"] = n(!0);
1546
1592
  });
1547
- let er = class ft {
1593
+ let mr = class xt {
1548
1594
  constructor(e) {
1549
1595
  if (typeof e != "function")
1550
1596
  throw new TypeError("executor must be a function.");
@@ -1568,7 +1614,7 @@ let er = class ft {
1568
1614
  r.unsubscribe(o);
1569
1615
  }, i;
1570
1616
  }, e(function(o, i, a) {
1571
- r.reason || (r.reason = new B(o, i, a), n(r.reason));
1617
+ r.reason || (r.reason = new $(o, i, a), n(r.reason));
1572
1618
  });
1573
1619
  }
1574
1620
  /**
@@ -1610,22 +1656,22 @@ let er = class ft {
1610
1656
  static source() {
1611
1657
  let e;
1612
1658
  return {
1613
- token: new ft(function(s) {
1659
+ token: new xt(function(s) {
1614
1660
  e = s;
1615
1661
  }),
1616
1662
  cancel: e
1617
1663
  };
1618
1664
  }
1619
1665
  };
1620
- function tr(t) {
1666
+ function gr(t) {
1621
1667
  return function(n) {
1622
1668
  return t.apply(null, n);
1623
1669
  };
1624
1670
  }
1625
- function nr(t) {
1671
+ function yr(t) {
1626
1672
  return c.isObject(t) && t.isAxiosError === !0;
1627
1673
  }
1628
- const ge = {
1674
+ const Te = {
1629
1675
  Continue: 100,
1630
1676
  SwitchingProtocols: 101,
1631
1677
  Processing: 102,
@@ -1688,60 +1734,66 @@ const ge = {
1688
1734
  InsufficientStorage: 507,
1689
1735
  LoopDetected: 508,
1690
1736
  NotExtended: 510,
1691
- NetworkAuthenticationRequired: 511
1737
+ NetworkAuthenticationRequired: 511,
1738
+ WebServerIsDown: 521,
1739
+ ConnectionTimedOut: 522,
1740
+ OriginIsUnreachable: 523,
1741
+ TimeoutOccurred: 524,
1742
+ SslHandshakeFailed: 525,
1743
+ InvalidSslCertificate: 526
1692
1744
  };
1693
- Object.entries(ge).forEach(([t, e]) => {
1694
- ge[e] = t;
1745
+ Object.entries(Te).forEach(([t, e]) => {
1746
+ Te[e] = t;
1695
1747
  });
1696
- function dt(t) {
1697
- const e = new N(t), n = He(N.prototype.request, e);
1698
- return c.extend(n, N.prototype, e, { allOwnKeys: !0 }), c.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(s) {
1699
- return dt(F(t, s));
1748
+ function Ct(t) {
1749
+ const e = new B(t), n = st(B.prototype.request, e);
1750
+ return c.extend(n, B.prototype, e, { allOwnKeys: !0 }), c.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(s) {
1751
+ return Ct(I(t, s));
1700
1752
  }, n;
1701
1753
  }
1702
- const S = dt(W);
1703
- S.Axios = N;
1704
- S.CanceledError = B;
1705
- S.CancelToken = er;
1706
- S.isCancel = rt;
1707
- S.VERSION = ut;
1708
- S.toFormData = re;
1709
- S.AxiosError = y;
1754
+ const S = Ct(Y);
1755
+ S.Axios = B;
1756
+ S.CanceledError = $;
1757
+ S.CancelToken = mr;
1758
+ S.isCancel = bt;
1759
+ S.VERSION = At;
1760
+ S.toFormData = fe;
1761
+ S.AxiosError = g;
1710
1762
  S.Cancel = S.CanceledError;
1711
1763
  S.all = function(e) {
1712
1764
  return Promise.all(e);
1713
1765
  };
1714
- S.spread = tr;
1715
- S.isAxiosError = nr;
1716
- S.mergeConfig = F;
1766
+ S.spread = gr;
1767
+ S.isAxiosError = yr;
1768
+ S.mergeConfig = I;
1717
1769
  S.AxiosHeaders = x;
1718
- S.formToJSON = (t) => nt(c.isHTMLForm(t) ? new FormData(t) : t);
1719
- S.getAdapter = lt.getAdapter;
1720
- S.HttpStatusCode = ge;
1770
+ S.formToJSON = (t) => wt(c.isHTMLForm(t) ? new FormData(t) : t);
1771
+ S.getAdapter = Tt.getAdapter;
1772
+ S.HttpStatusCode = Te;
1721
1773
  S.default = S;
1722
1774
  const {
1723
- Axios: Br,
1724
- AxiosError: vr,
1725
- CanceledError: qr,
1726
- isCancel: Mr,
1727
- CancelToken: Ir,
1728
- VERSION: Hr,
1729
- all: Jr,
1730
- Cancel: $r,
1731
- isAxiosError: zr,
1732
- spread: Wr,
1733
- toFormData: Vr,
1734
- AxiosHeaders: Kr,
1735
- HttpStatusCode: Xr,
1736
- formToJSON: Gr,
1737
- getAdapter: Qr,
1738
- mergeConfig: Yr
1739
- } = S, rr = {
1775
+ Axios: Yr,
1776
+ AxiosError: Zr,
1777
+ CanceledError: es,
1778
+ isCancel: ts,
1779
+ CancelToken: ns,
1780
+ VERSION: rs,
1781
+ all: ss,
1782
+ Cancel: os,
1783
+ isAxiosError: is,
1784
+ spread: as,
1785
+ toFormData: cs,
1786
+ AxiosHeaders: ls,
1787
+ HttpStatusCode: us,
1788
+ formToJSON: fs,
1789
+ getAdapter: ds,
1790
+ mergeConfig: ps
1791
+ } = S, wr = {
1740
1792
  form: "application/x-www-form-urlencoded",
1741
1793
  json: "application/json",
1742
1794
  data: "multipart/form-data"
1743
- }, sr = ["put", "post", "patch"], ve = "Local-Request-Id", or = 100, ir = 300;
1744
- let ar = class {
1795
+ }, br = ["put", "post", "patch"], et = "Local-Request-Id", Er = 100, Sr = 300;
1796
+ class Rr {
1745
1797
  constructor(e = {}) {
1746
1798
  C(this, "axios");
1747
1799
  C(this, "settings");
@@ -1751,12 +1803,12 @@ let ar = class {
1751
1803
  C(this, "showLoading");
1752
1804
  C(this, "showError");
1753
1805
  this.settings = Object.assign({ type: "form" }, e.settings || {});
1754
- const n = ie(e, [
1806
+ const n = me(e, [
1755
1807
  "settings",
1756
1808
  "query"
1757
1809
  ]);
1758
1810
  this.axios = S.create(
1759
- q(
1811
+ W(
1760
1812
  {
1761
1813
  headers: {
1762
1814
  "Content-Type": "application/x-www-form-urlencoded"
@@ -1765,18 +1817,18 @@ let ar = class {
1765
1817
  },
1766
1818
  n
1767
1819
  )
1768
- ), this.setupSkipWarn(this.settings), this.showLoading = bt(this.openLoading.bind(this), or), this.showError = Et(this._showError.bind(this), ir, {
1820
+ ), this.setupSkipWarn(this.settings), this.showLoading = Nt(this.openLoading.bind(this), Er), this.showError = Dt(this._showError.bind(this), Sr, {
1769
1821
  leading: !0,
1770
1822
  trailing: !1
1771
1823
  });
1772
1824
  }
1773
1825
  setConfig(e = {}) {
1774
- this.settings = q(this.settings, e.settings || {});
1775
- const n = ie(e, [
1826
+ this.settings = W(this.settings, e.settings || {});
1827
+ const n = me(e, [
1776
1828
  "settings",
1777
1829
  "query"
1778
1830
  ]);
1779
- this.axios.defaults = q(this.axios.defaults, n), this.setupSkipWarn(this.settings);
1831
+ this.axios.defaults = W(this.axios.defaults, n), this.setupSkipWarn(this.settings);
1780
1832
  }
1781
1833
  cancel(e, n = "请求已取消") {
1782
1834
  if (e) {
@@ -1789,11 +1841,11 @@ let ar = class {
1789
1841
  }
1790
1842
  createHeaders(e, n, r) {
1791
1843
  const s = n.injectHeaders ? typeof n.headers == "function" ? n.headers(e, r, n) : n.headers || {} : {}, o = {
1792
- "Content-Type": rr[n.type || "form"],
1844
+ "Content-Type": wr[n.type || "form"],
1793
1845
  ...r.headers,
1794
1846
  ...s
1795
1847
  };
1796
- return n.skipWarn && (o[ve] = e), o;
1848
+ return n.skipWarn && (o[et] = e), o;
1797
1849
  }
1798
1850
  isJsonType(e) {
1799
1851
  return Object.entries(e).some(([n, r]) => n.toLowerCase() === "content-type" && String(r).includes("application/json"));
@@ -1808,29 +1860,29 @@ let ar = class {
1808
1860
  }
1809
1861
  createSendData(e, n, r, s, o = {}) {
1810
1862
  const { type: i, skipWarn: a } = e, { name: f = "skipWarn" } = a || {};
1811
- let { data: l, params: u = {}, method: d = "get" } = n;
1812
- const g = s ? { [f]: !0 } : {};
1813
- return sr.includes(d.toLowerCase()) ? (l = Object.assign(l || {}, g), l = i !== "json" || !this.isJsonType(r) ? this.toFormData(l, i) : l, u = {
1863
+ let { data: u, params: l = {}, method: p = "get" } = n;
1864
+ const y = s ? { [f]: !0 } : {};
1865
+ return br.includes(p.toLowerCase()) ? (u = Object.assign(u || {}, y), u = i !== "json" || !this.isJsonType(r) ? this.toFormData(u, i) : u, l = {
1814
1866
  ...o
1815
- }) : i === "form" ? u = {
1816
- ...l || {},
1867
+ }) : i === "form" ? l = {
1868
+ ...u || {},
1817
1869
  ...o,
1818
- ...g
1819
- } : (l && (i !== "json" || !this.isJsonType(r)) && (l = this.toFormData(l, i)), u = {
1870
+ ...y
1871
+ } : (u && (i !== "json" || !this.isJsonType(r)) && (u = this.toFormData(u, i)), l = {
1820
1872
  ...o,
1821
- ...g
1873
+ ...y
1822
1874
  }), {
1823
- data: l,
1824
- params: u
1875
+ data: u,
1876
+ params: l
1825
1877
  };
1826
1878
  }
1827
1879
  createUrl(e) {
1828
1880
  let { url: n, params: r } = e;
1829
1881
  if (n) {
1830
- let s = Rt(n) ? new URL(n).origin : "";
1882
+ let s = vt(n) ? new URL(n).origin : "";
1831
1883
  const o = s ? n.replace(s, "") : n;
1832
1884
  try {
1833
- const i = St(o, {
1885
+ const i = Bt(o, {
1834
1886
  encode: encodeURIComponent
1835
1887
  });
1836
1888
  return s + i(r || {});
@@ -1866,27 +1918,27 @@ let ar = class {
1866
1918
  return !!e.promise;
1867
1919
  }
1868
1920
  send(e = {}, n = !1) {
1869
- const r = q({}, this.settings, e.settings || {}), s = e.query || {}, o = ie(e, [
1921
+ const r = W({}, this.settings, e.settings || {}), s = e.query || {}, o = me(e, [
1870
1922
  "settings",
1871
1923
  "query"
1872
- ]), i = Ot(!1), a = S.CancelToken.source();
1924
+ ]), i = It(!1), a = S.CancelToken.source();
1873
1925
  this.records[i] = { settings: r, config: o, source: a };
1874
- const f = this.createUrl(o), l = this.createHeaders(i, r, o), { data: u, params: d } = this.createSendData(
1926
+ const f = this.createUrl(o), u = this.createHeaders(i, r, o), { data: l, params: p } = this.createSendData(
1875
1927
  r,
1876
1928
  o,
1877
- l,
1929
+ u,
1878
1930
  n,
1879
1931
  s
1880
1932
  );
1881
- return this.showLoading(r), new Promise((g, b) => {
1933
+ return this.showLoading(r), new Promise((y, E) => {
1882
1934
  this.axios({
1883
1935
  cancelToken: a.token,
1884
1936
  ...o,
1885
1937
  url: f,
1886
- headers: l,
1887
- data: u,
1888
- params: d
1889
- }).then((p) => this.isSkipWarnResponse(p) ? g(p.promise) : this.validResponse(r, p) ? g(r.originResponse ? p : p.data?.data) : (this.showError(r, p.data), b(p.data))).catch((p) => (this.showError(r, p), b(p))).finally(() => {
1938
+ headers: u,
1939
+ data: l,
1940
+ params: p
1941
+ }).then((d) => this.isSkipWarnResponse(d) ? y(d.promise) : this.validResponse(r, d) ? y(r.originResponse ? d : d.data?.data) : (this.showError(r, d.data), E(d.data))).catch((d) => (this.showError(r, d), E(d))).finally(() => {
1890
1942
  delete this.records[i], this.closeLoading(r);
1891
1943
  });
1892
1944
  });
@@ -1903,29 +1955,29 @@ let ar = class {
1903
1955
  if (this.stopSkipWarn && (this.stopSkipWarn(), this.stopSkipWarn = void 0), !e.skipWarn) return;
1904
1956
  const { code: n, executor: r, callback: s, complete: o } = e.skipWarn;
1905
1957
  this.stopSkipWarn = this.useResponse((i) => {
1906
- const f = (i.config.headers || {})[ve], l = this.records[f];
1907
- if (!l) return i;
1908
- const { data: u } = i;
1909
- if (!u || typeof u != "object") return i;
1910
- if (u?.code === n) {
1958
+ const f = (i.config.headers || {})[et], u = this.records[f];
1959
+ if (!u) return i;
1960
+ const { data: l } = i;
1961
+ if (!l || typeof l != "object") return i;
1962
+ if (l?.code === n) {
1911
1963
  s && s(i);
1912
- const d = new Promise(r).then(() => this.send(
1964
+ const p = new Promise(r).then(() => this.send(
1913
1965
  {
1914
- ...l.config,
1915
- settings: l.settings
1966
+ ...u.config,
1967
+ settings: u.settings
1916
1968
  },
1917
1969
  !0
1918
1970
  ));
1919
- d.catch((g) => g).finally(() => {
1971
+ p.catch((y) => y).finally(() => {
1920
1972
  o && o();
1921
- }), i.promise = d;
1973
+ }), i.promise = p;
1922
1974
  }
1923
1975
  return i;
1924
1976
  });
1925
1977
  }
1926
- };
1927
- function cr(t = {}) {
1928
- const e = new ar(t), n = e.send.bind(e), r = e.cancel.bind(e), s = e.setConfig.bind(e), o = e.useRequest.bind(e), i = e.useResponse.bind(e);
1978
+ }
1979
+ function Or(t = {}) {
1980
+ const e = new Rr(t), n = e.send.bind(e), r = e.cancel.bind(e), s = e.setConfig.bind(e), o = e.useRequest.bind(e), i = e.useResponse.bind(e);
1929
1981
  return Object.assign(n, {
1930
1982
  ...e,
1931
1983
  instance: e,
@@ -1936,38 +1988,41 @@ function cr(t = {}) {
1936
1988
  useResponse: i
1937
1989
  });
1938
1990
  }
1939
- const lr = cr({
1991
+ const Tr = Or({
1940
1992
  settings: {
1941
1993
  injectHeaders: !0,
1942
1994
  loading: !0,
1943
1995
  originResponse: !0
1944
1996
  }
1945
1997
  });
1946
- function ur(t) {
1998
+ function Ar(t) {
1947
1999
  const e = typeof t == "string" ? { url: t } : t;
1948
- return (n, r) => lr.send(q({}, e, r || {}, { data: n }));
2000
+ return (n, r) => Tr.send(W({}, e, r || {}, { data: n }));
1949
2001
  }
1950
- function es(t) {
2002
+ function hs(t) {
1951
2003
  const e = {};
1952
2004
  for (const [n, r] of Object.entries(t))
1953
- e[n] = ur(r);
2005
+ e[n] = Ar(r);
1954
2006
  return e;
1955
2007
  }
1956
- function ts(t, e) {
1957
- const n = ae(null), r = ae(), s = ae(!0);
1958
- return t.then((o) => {
1959
- n.value = e ? e(o) : o;
1960
- }).catch((o) => {
1961
- r.value = o;
1962
- }).finally(() => {
1963
- s.value = !1;
1964
- }), {
2008
+ function ms(t, e) {
2009
+ const n = ge(null), r = ge(), s = ge(!0), o = () => {
2010
+ s.value = !0, r.value = void 0, (typeof t == "function" ? t() : t).then((a) => {
2011
+ n.value = e ? e(a) : a;
2012
+ }).catch((a) => {
2013
+ r.value = a;
2014
+ }).finally(() => {
2015
+ s.value = !1;
2016
+ });
2017
+ };
2018
+ return o(), {
1965
2019
  data: n,
1966
2020
  error: r,
1967
- loading: s
2021
+ loading: s,
2022
+ reload: o
1968
2023
  };
1969
2024
  }
1970
- const H = typeof window < "u", ns = (t) => new Promise((e, n) => {
2025
+ const K = typeof window < "u", gs = (t) => new Promise((e, n) => {
1971
2026
  const r = new FileReader();
1972
2027
  r.readAsDataURL(t), r.onload = () => {
1973
2028
  e(r.result);
@@ -1975,13 +2030,13 @@ const H = typeof window < "u", ns = (t) => new Promise((e, n) => {
1975
2030
  n(s);
1976
2031
  };
1977
2032
  });
1978
- function rs(t) {
2033
+ function ys(t) {
1979
2034
  const e = {};
1980
2035
  return t ? (t.forEach((n, r) => {
1981
2036
  e[r] = typeof n == "string" ? decodeURIComponent(n) : n;
1982
2037
  }), e) : {};
1983
2038
  }
1984
- function ss(t) {
2039
+ function ws(t) {
1985
2040
  const e = t.split(","), n = e[0].match(/:(.*?);/)?.[1], r = atob(e[1]);
1986
2041
  let s = r.length;
1987
2042
  const o = new Uint8Array(s);
@@ -1989,12 +2044,12 @@ function ss(t) {
1989
2044
  o[s] = r.charCodeAt(s);
1990
2045
  return new Blob([o], { type: n });
1991
2046
  }
1992
- function os(t, e) {
2047
+ function bs(t, e) {
1993
2048
  const n = t;
1994
2049
  return n.lastModified = Date.now(), n.lastModifiedDate = /* @__PURE__ */ new Date(), n.name = e, n;
1995
2050
  }
1996
- const is = (t) => H ? window.requestAnimationFrame(t) : setTimeout(t, 16), as = (t) => H ? window.cancelAnimationFrame(t) : clearTimeout(t);
1997
- class fr {
2051
+ const Es = (t) => K ? window.requestAnimationFrame(t) : setTimeout(t, 16), Ss = (t) => K ? window.cancelAnimationFrame(t) : clearTimeout(t);
2052
+ class xr {
1998
2053
  constructor(e = {}) {
1999
2054
  C(this, "options", {
2000
2055
  type: "cache",
@@ -2004,8 +2059,8 @@ class fr {
2004
2059
  C(this, "caches", {});
2005
2060
  C(this, "types");
2006
2061
  this.types = {
2007
- local: H ? window.localStorage : this.caches,
2008
- session: H ? window.sessionStorage : this.caches,
2062
+ local: K ? window.localStorage : this.caches,
2063
+ session: K ? window.sessionStorage : this.caches,
2009
2064
  cache: this.caches
2010
2065
  }, this.config(e);
2011
2066
  }
@@ -2013,12 +2068,12 @@ class fr {
2013
2068
  this.options = Object.assign(this.options, e);
2014
2069
  }
2015
2070
  save(e, n, r = {}) {
2016
- const { type: s, expired: o, prefix: i } = { ...this.options, ...r }, a = Date.now(), f = i + e, l = this.types[s] || this.caches, u = {
2071
+ const { type: s, expired: o, prefix: i } = { ...this.options, ...r }, a = Date.now(), f = i + e, u = this.types[s] || this.caches, l = {
2017
2072
  value: n,
2018
2073
  timestamp: a,
2019
2074
  expired: o
2020
2075
  };
2021
- l === this.caches ? l[f] = u : l.setItem(f, JSON.stringify(u));
2076
+ u === this.caches ? u[f] = l : u.setItem(f, JSON.stringify(l));
2022
2077
  }
2023
2078
  get(e, n = {}) {
2024
2079
  const { type: r, prefix: s } = { ...this.options, ...n }, o = s + e, i = this.types[r] || this.caches;
@@ -2026,17 +2081,17 @@ class fr {
2026
2081
  if (i === this.caches)
2027
2082
  a = i[o];
2028
2083
  else {
2029
- const g = i.getItem(o);
2030
- if (g)
2084
+ const y = i.getItem(o);
2085
+ if (y)
2031
2086
  try {
2032
- a = JSON.parse(g);
2033
- } catch (b) {
2034
- console.warn("[Storage] JSON.parse", b);
2087
+ a = JSON.parse(y);
2088
+ } catch (E) {
2089
+ console.warn("[Storage] JSON.parse", E);
2035
2090
  }
2036
2091
  }
2037
2092
  if (!a) return null;
2038
- const { value: f, timestamp: l, expired: u } = a;
2039
- return u > 0 && l + u < Date.now() ? (this.remove(e, n), null) : f;
2093
+ const { value: f, timestamp: u, expired: l } = a;
2094
+ return l > 0 && u + l < Date.now() ? (this.remove(e, n), null) : f;
2040
2095
  }
2041
2096
  remove(e, n = {}) {
2042
2097
  const { type: r, prefix: s } = { ...this.options, ...n }, o = this.types[r] || this.caches, i = s + e;
@@ -2047,16 +2102,16 @@ class fr {
2047
2102
  r === this.caches ? this.caches = {} : r.clear();
2048
2103
  }
2049
2104
  }
2050
- const cs = new fr();
2051
- function pt(t) {
2105
+ const Rs = new xr();
2106
+ function _t(t) {
2052
2107
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
2053
2108
  }
2054
- var M = { exports: {} }, dr = M.exports, qe;
2055
- function pr() {
2056
- return qe || (qe = 1, (function(t, e) {
2109
+ var V = { exports: {} }, Cr = V.exports, tt;
2110
+ function _r() {
2111
+ return tt || (tt = 1, (function(t, e) {
2057
2112
  (function(n, r) {
2058
2113
  r(e, t);
2059
- })(dr, function(n, r) {
2114
+ })(Cr, function(n, r) {
2060
2115
  var s = {
2061
2116
  timeout: 5e3,
2062
2117
  jsonpCallback: "callback"
@@ -2064,64 +2119,64 @@ function pr() {
2064
2119
  function o() {
2065
2120
  return "jsonp_" + Date.now() + "_" + Math.ceil(Math.random() * 1e5);
2066
2121
  }
2067
- function i(l) {
2122
+ function i(u) {
2068
2123
  try {
2069
- delete window[l];
2124
+ delete window[u];
2070
2125
  } catch {
2071
- window[l] = void 0;
2126
+ window[u] = void 0;
2072
2127
  }
2073
2128
  }
2074
- function a(l) {
2075
- var u = document.getElementById(l);
2076
- u && document.getElementsByTagName("head")[0].removeChild(u);
2129
+ function a(u) {
2130
+ var l = document.getElementById(u);
2131
+ l && document.getElementsByTagName("head")[0].removeChild(l);
2077
2132
  }
2078
- function f(l) {
2079
- var u = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1], d = l, g = u.timeout || s.timeout, b = u.jsonpCallback || s.jsonpCallback, p = void 0;
2133
+ function f(u) {
2134
+ var l = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1], p = u, y = l.timeout || s.timeout, E = l.jsonpCallback || s.jsonpCallback, d = void 0;
2080
2135
  return new Promise(function(m, h) {
2081
- var w = u.jsonpCallbackFunction || o(), R = b + "_" + w;
2082
- window[w] = function(_) {
2136
+ var w = l.jsonpCallbackFunction || o(), R = E + "_" + w;
2137
+ window[w] = function(O) {
2083
2138
  m({
2084
2139
  ok: !0,
2085
2140
  // keep consistent with fetch API
2086
2141
  json: function() {
2087
- return Promise.resolve(_);
2142
+ return Promise.resolve(O);
2088
2143
  }
2089
- }), p && clearTimeout(p), a(R), i(w);
2090
- }, d += d.indexOf("?") === -1 ? "?" : "&";
2091
- var E = document.createElement("script");
2092
- E.setAttribute("src", "" + d + b + "=" + w), u.charset && E.setAttribute("charset", u.charset), u.nonce && E.setAttribute("nonce", u.nonce), u.referrerPolicy && E.setAttribute("referrerPolicy", u.referrerPolicy), u.crossorigin && E.setAttribute("crossorigin", "true"), E.id = R, document.getElementsByTagName("head")[0].appendChild(E), p = setTimeout(function() {
2093
- h(new Error("JSONP request to " + l + " timed out")), i(w), a(R), window[w] = function() {
2144
+ }), d && clearTimeout(d), a(R), i(w);
2145
+ }, p += p.indexOf("?") === -1 ? "?" : "&";
2146
+ var b = document.createElement("script");
2147
+ b.setAttribute("src", "" + p + E + "=" + w), l.charset && b.setAttribute("charset", l.charset), l.nonce && b.setAttribute("nonce", l.nonce), l.referrerPolicy && b.setAttribute("referrerPolicy", l.referrerPolicy), l.crossorigin && b.setAttribute("crossorigin", "true"), b.id = R, document.getElementsByTagName("head")[0].appendChild(b), d = setTimeout(function() {
2148
+ h(new Error("JSONP request to " + u + " timed out")), i(w), a(R), window[w] = function() {
2094
2149
  i(w);
2095
2150
  };
2096
- }, g), E.onerror = function() {
2097
- h(new Error("JSONP request to " + l + " failed")), i(w), a(R), p && clearTimeout(p);
2151
+ }, y), b.onerror = function() {
2152
+ h(new Error("JSONP request to " + u + " failed")), i(w), a(R), d && clearTimeout(d);
2098
2153
  };
2099
2154
  });
2100
2155
  }
2101
2156
  r.exports = f;
2102
2157
  });
2103
- })(M, M.exports)), M.exports;
2158
+ })(V, V.exports)), V.exports;
2104
2159
  }
2105
- var hr = pr();
2106
- const mr = /* @__PURE__ */ pt(hr);
2107
- function yr(t) {
2108
- if (H) {
2160
+ var Pr = _r();
2161
+ const Lr = /* @__PURE__ */ _t(Pr);
2162
+ function Ur(t) {
2163
+ if (K) {
2109
2164
  const { protocol: e, host: n, pathname: r } = location;
2110
2165
  return `${e}//${n}${t ? r : ""}`;
2111
2166
  } else
2112
2167
  return null;
2113
2168
  }
2114
- function gr(t = "") {
2115
- const e = t.match(Tt);
2169
+ function kr(t = "") {
2170
+ const e = t.match(Mt);
2116
2171
  return e ? e[0] : "";
2117
2172
  }
2118
- function ht(t) {
2173
+ function Pt(t) {
2119
2174
  const e = [];
2120
2175
  for (const n in t)
2121
2176
  Object.prototype.hasOwnProperty.call(t, n) && e.push([n, encodeURIComponent(t[n])].join("="));
2122
2177
  return e.join("&");
2123
2178
  }
2124
- function we(t, e, n) {
2179
+ function Ae(t, e, n) {
2125
2180
  const r = {};
2126
2181
  t = (t || location.search).replace(/^[^]*\?/, ""), e = e || "&", n = n || "=";
2127
2182
  let s;
@@ -2133,34 +2188,34 @@ function we(t, e, n) {
2133
2188
  s[1] !== t && (r[decodeURIComponent(s[1])] = decodeURIComponent(s[2] || ""));
2134
2189
  return r;
2135
2190
  }
2136
- function mt(t, e) {
2137
- e = typeof e == "string" ? we(e) : e;
2138
- const n = t.split("?")[0], r = we(t), s = Object.assign({}, r, e), o = ht(s);
2191
+ function Lt(t, e) {
2192
+ e = typeof e == "string" ? Ae(e) : e;
2193
+ const n = t.split("?")[0], r = Ae(t), s = Object.assign({}, r, e), o = Pt(s);
2139
2194
  return o ? [n, o].join("?") : t;
2140
2195
  }
2141
- const ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2196
+ const Os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2142
2197
  __proto__: null,
2143
- append: mt,
2144
- getCurrentHost: yr,
2145
- getHost: gr,
2146
- parse: we,
2147
- stringify: ht
2198
+ append: Lt,
2199
+ getCurrentHost: Ur,
2200
+ getHost: kr,
2201
+ parse: Ae,
2202
+ stringify: Pt
2148
2203
  }, Symbol.toStringTag, { value: "Module" }));
2149
- async function us(t, e = {}) {
2204
+ async function Ts(t, e = {}) {
2150
2205
  const { query: n = {} } = e;
2151
- t.includes("${") && (t = At(t)(n || {}));
2152
- const r = mt(t, n);
2153
- return await (await mr(r, e)).json();
2154
- }
2155
- var fe, Me;
2156
- function wr() {
2157
- if (Me) return fe;
2158
- Me = 1, fe = function(s, o, i) {
2206
+ t.includes("${") && (t = qt(t)(n || {}));
2207
+ const r = Lt(t, n);
2208
+ return await (await Lr(r, e)).json();
2209
+ }
2210
+ var Ee, nt;
2211
+ function Fr() {
2212
+ if (nt) return Ee;
2213
+ nt = 1, Ee = function(s, o, i) {
2159
2214
  var a = document.head || document.getElementsByTagName("head")[0], f = document.createElement("script");
2160
2215
  typeof o == "function" && (i = o, o = {}), o = o || {}, i = i || function() {
2161
2216
  }, f.type = o.type || "text/javascript", f.charset = o.charset || "utf8", f.async = "async" in o ? !!o.async : !0, f.src = s, o.attrs && t(f, o.attrs), o.text && (f.text = "" + o.text);
2162
- var l = "onload" in f ? e : n;
2163
- l(f, i), f.onload || e(f, i), a.appendChild(f);
2217
+ var u = "onload" in f ? e : n;
2218
+ u(f, i), f.onload || e(f, i), a.appendChild(f);
2164
2219
  };
2165
2220
  function t(r, s) {
2166
2221
  for (var o in s)
@@ -2178,29 +2233,29 @@ function wr() {
2178
2233
  this.readyState != "complete" && this.readyState != "loaded" || (this.onreadystatechange = null, s(null, r));
2179
2234
  };
2180
2235
  }
2181
- return fe;
2236
+ return Ee;
2182
2237
  }
2183
- var br = wr();
2184
- const Er = /* @__PURE__ */ pt(br);
2185
- function fs(t, e = {}) {
2238
+ var jr = Fr();
2239
+ const Nr = /* @__PURE__ */ _t(jr);
2240
+ function As(t, e = {}) {
2186
2241
  return new Promise((n, r) => {
2187
2242
  const { library: s } = e;
2188
- Er(t, e, (o, i) => {
2243
+ Nr(t, e, (o, i) => {
2189
2244
  o ? r(o) : n(s ? window[s] : void 0);
2190
2245
  });
2191
2246
  });
2192
2247
  }
2193
- const Ie = { debug: -1, log: 0, info: 0, warn: 1, error: 2 }, Rr = function(t, e, n, r) {
2248
+ const rt = { debug: -1, log: 0, info: 0, warn: 1, error: 2 }, Dr = function(t, e, n, r) {
2194
2249
  return function(...s) {
2195
- if (e && Ie[e] <= Ie[t] && // @ts-ignore
2250
+ if (e && rt[e] <= rt[t] && // @ts-ignore
2196
2251
  console[t].apply && (r === "*" || n.startsWith(r)))
2197
- return console[t].apply(console, Sr(s, n));
2252
+ return console[t].apply(console, vr(s, n));
2198
2253
  };
2199
2254
  };
2200
- function Sr(t, e) {
2255
+ function vr(t, e) {
2201
2256
  return e !== "*" && (typeof t[0] == "string" ? t[0] = `[${e}] ${t[0]}` : t = ["[" + e + "]"].concat(t)), t;
2202
2257
  }
2203
- function Or(t, e) {
2258
+ function Br(t, e) {
2204
2259
  if (!t)
2205
2260
  return {
2206
2261
  targetLevel: e.level,
@@ -2218,23 +2273,23 @@ function Or(t, e) {
2218
2273
  targetBizName: "*"
2219
2274
  };
2220
2275
  }
2221
- const Tr = {
2276
+ const Ir = {
2222
2277
  level: "warn",
2223
2278
  bizName: "*"
2224
2279
  };
2225
- class Ar {
2280
+ class Mr {
2226
2281
  constructor(e) {
2227
2282
  C(this, "config");
2228
2283
  C(this, "options");
2229
- this.options = { ...Tr, ...e };
2284
+ this.options = { ...Ir, ...e };
2230
2285
  const n = typeof location < "u" ? location : {}, r = (/__(?:logConf|logLevel)__=([^#/&]*)/.exec(
2231
2286
  n.href
2232
2287
  ) || [])[1];
2233
- this.config = Or(r, e);
2288
+ this.config = Br(r, e);
2234
2289
  }
2235
2290
  _log(e) {
2236
2291
  const { targetLevel: n, targetBizName: r } = this.config, { bizName: s } = this.options;
2237
- return Rr(e, n, s, r);
2292
+ return Dr(e, n, s, r);
2238
2293
  }
2239
2294
  debug(...e) {
2240
2295
  return this._log("debug")(...e);
@@ -2252,12 +2307,12 @@ class Ar {
2252
2307
  return this._log("error")(...e);
2253
2308
  }
2254
2309
  }
2255
- function xr(t) {
2256
- return new Ar(t);
2310
+ function qr(t) {
2311
+ return new Mr(t);
2257
2312
  }
2258
- const ds = xr({ level: "log", bizName: "VTJ" });
2313
+ const xs = qr({ level: "log", bizName: "VTJ" });
2259
2314
  /*! js-cookie v3.0.5 | MIT */
2260
- function K(t) {
2315
+ function re(t) {
2261
2316
  for (var e = 1; e < arguments.length; e++) {
2262
2317
  var n = arguments[e];
2263
2318
  for (var r in n)
@@ -2265,7 +2320,7 @@ function K(t) {
2265
2320
  }
2266
2321
  return t;
2267
2322
  }
2268
- var Cr = {
2323
+ var Hr = {
2269
2324
  read: function(t) {
2270
2325
  return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
2271
2326
  },
@@ -2276,10 +2331,10 @@ var Cr = {
2276
2331
  );
2277
2332
  }
2278
2333
  };
2279
- function be(t, e) {
2334
+ function xe(t, e) {
2280
2335
  function n(s, o, i) {
2281
2336
  if (!(typeof document > "u")) {
2282
- i = K({}, e, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), s = encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
2337
+ i = re({}, e, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), s = encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
2283
2338
  var a = "";
2284
2339
  for (var f in i)
2285
2340
  i[f] && (a += "; " + f, i[f] !== !0 && (a += "=" + i[f].split(";")[0]));
@@ -2289,10 +2344,10 @@ function be(t, e) {
2289
2344
  function r(s) {
2290
2345
  if (!(typeof document > "u" || arguments.length && !s)) {
2291
2346
  for (var o = document.cookie ? document.cookie.split("; ") : [], i = {}, a = 0; a < o.length; a++) {
2292
- var f = o[a].split("="), l = f.slice(1).join("=");
2347
+ var f = o[a].split("="), u = f.slice(1).join("=");
2293
2348
  try {
2294
- var u = decodeURIComponent(f[0]);
2295
- if (i[u] = t.read(l, u), s === u)
2349
+ var l = decodeURIComponent(f[0]);
2350
+ if (i[l] = t.read(u, l), s === l)
2296
2351
  break;
2297
2352
  } catch {
2298
2353
  }
@@ -2308,16 +2363,16 @@ function be(t, e) {
2308
2363
  n(
2309
2364
  s,
2310
2365
  "",
2311
- K({}, o, {
2366
+ re({}, o, {
2312
2367
  expires: -1
2313
2368
  })
2314
2369
  );
2315
2370
  },
2316
2371
  withAttributes: function(s) {
2317
- return be(this.converter, K({}, this.attributes, s));
2372
+ return xe(this.converter, re({}, this.attributes, s));
2318
2373
  },
2319
2374
  withConverter: function(s) {
2320
- return be(K({}, this.converter, s), this.attributes);
2375
+ return xe(re({}, this.converter, s), this.attributes);
2321
2376
  }
2322
2377
  },
2323
2378
  {
@@ -2326,41 +2381,41 @@ function be(t, e) {
2326
2381
  }
2327
2382
  );
2328
2383
  }
2329
- var Oe = be(Cr, { path: "/" });
2330
- function _r(t, e, n) {
2331
- Oe.set(t, e, n);
2384
+ var Ue = xe(Hr, { path: "/" });
2385
+ function $r(t, e, n) {
2386
+ Ue.set(t, e, n);
2332
2387
  }
2333
- function Pr(t) {
2334
- return Oe.get(t);
2388
+ function Jr(t) {
2389
+ return Ue.get(t);
2335
2390
  }
2336
- function Lr(t, e) {
2337
- Oe.remove(t, e);
2391
+ function zr(t, e) {
2392
+ Ue.remove(t, e);
2338
2393
  }
2339
- const ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2394
+ const Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2340
2395
  __proto__: null,
2341
- get: Pr,
2342
- remove: Lr,
2343
- set: _r
2396
+ get: Jr,
2397
+ remove: zr,
2398
+ set: $r
2344
2399
  }, Symbol.toStringTag, { value: "Module" }));
2345
- function hs(t, e = "") {
2400
+ function _s(t, e = "") {
2346
2401
  const n = document.createElement("a");
2347
2402
  n.download = e, n.href = t, n.target = "_blank", n.click();
2348
2403
  }
2349
- function yt(t, e = "", n) {
2404
+ function Ut(t, e = "", n) {
2350
2405
  const r = new Blob([t], { type: n }), s = document.createElement("a");
2351
2406
  s.download = e, s.style.display = "none", s.href = URL.createObjectURL(r), s.click(), URL.revokeObjectURL(s.href);
2352
2407
  }
2353
- async function ms(t, e = "", n) {
2408
+ async function Ps(t, e = "", n) {
2354
2409
  return fetch(t, { credentials: "include" }).then(async (r) => {
2355
2410
  const s = await r.blob();
2356
- return yt(s, e, n), s;
2411
+ return Ut(s, e, n), s;
2357
2412
  });
2358
2413
  }
2359
- function ys(t, e = "") {
2414
+ function Ls(t, e = "") {
2360
2415
  const n = JSON.stringify(t);
2361
- yt(n, e, "application/json");
2416
+ Ut(n, e, "application/json");
2362
2417
  }
2363
- function gs() {
2418
+ function Us() {
2364
2419
  const t = navigator.userAgent;
2365
2420
  let e = "Unknown", n = "Unknown", r = "Unknown", s = "Unknown", o = !1;
2366
2421
  if (/Windows NT/i.test(t)) {
@@ -2402,16 +2457,16 @@ function gs() {
2402
2457
  if (f)
2403
2458
  r = "Opera", s = f[2];
2404
2459
  else {
2405
- const l = t.match(/Chrome\/(\d+)/i);
2406
- if (l)
2407
- r = "Chrome", s = l[1];
2460
+ const u = t.match(/Chrome\/(\d+)/i);
2461
+ if (u)
2462
+ r = "Chrome", s = u[1];
2408
2463
  else {
2409
- const u = t.match(/Version\/(\d+\.\d+)/i);
2410
- if (u && /Safari/i.test(t))
2411
- r = "Safari", s = u[1];
2464
+ const l = t.match(/Version\/(\d+\.\d+)/i);
2465
+ if (l && /Safari/i.test(t))
2466
+ r = "Safari", s = l[1];
2412
2467
  else {
2413
- const d = t.match(/(MSIE |Trident.*rv:)(\d+)/i);
2414
- d && (r = "Internet Explorer", s = d[2]);
2468
+ const p = t.match(/(MSIE |Trident.*rv:)(\d+)/i);
2469
+ p && (r = "Internet Explorer", s = p[2]);
2415
2470
  }
2416
2471
  }
2417
2472
  }
@@ -2428,34 +2483,34 @@ function gs() {
2428
2483
  };
2429
2484
  }
2430
2485
  export {
2431
- ve as LOCAL_REQUEST_ID,
2432
- Ar as Logger,
2433
- ar as Request,
2434
- fr as Storage,
2435
- Nr as VTJ_UTILS_VERSION,
2486
+ et as LOCAL_REQUEST_ID,
2487
+ Mr as Logger,
2488
+ Rr as Request,
2489
+ xr as Storage,
2490
+ Xr as VTJ_UTILS_VERSION,
2436
2491
  S as axios,
2437
- os as blobToFile,
2438
- as as cAF,
2439
- ps as cookie,
2440
- ur as createApi,
2441
- es as createApis,
2442
- cr as createRequest,
2443
- ss as dataURLtoBlob,
2444
- yt as downloadBlob,
2445
- ys as downloadJson,
2446
- ms as downloadRemoteFile,
2447
- hs as downloadUrl,
2448
- ns as fileToBase64,
2449
- rs as formDataToJson,
2450
- gs as getClientInfo,
2451
- xr as getLogger,
2452
- H as isClient,
2453
- us as jsonp,
2454
- fs as loadScript,
2455
- ds as logger,
2456
- is as rAF,
2457
- lr as request,
2458
- cs as storage,
2459
- ls as url,
2460
- ts as useApi
2492
+ bs as blobToFile,
2493
+ Ss as cAF,
2494
+ Cs as cookie,
2495
+ Ar as createApi,
2496
+ hs as createApis,
2497
+ Or as createRequest,
2498
+ ws as dataURLtoBlob,
2499
+ Ut as downloadBlob,
2500
+ Ls as downloadJson,
2501
+ Ps as downloadRemoteFile,
2502
+ _s as downloadUrl,
2503
+ gs as fileToBase64,
2504
+ ys as formDataToJson,
2505
+ Us as getClientInfo,
2506
+ qr as getLogger,
2507
+ K as isClient,
2508
+ Ts as jsonp,
2509
+ As as loadScript,
2510
+ xs as logger,
2511
+ Es as rAF,
2512
+ Tr as request,
2513
+ Rs as storage,
2514
+ Os as url,
2515
+ ms as useApi
2461
2516
  };