@vtj/utils 0.13.35 → 0.13.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
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";
1
+ var jt = Object.defineProperty;
2
+ var Nt = (t, e, n) => e in t ? jt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var C = (t, e, n) => Nt(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { omit as me, merge as W, debounce as Dt, throttle as vt, isUrl as Bt, pathToRegexpCompile as It, uuid as Mt, rURL as qt, template as Ht } from "@vtj/base";
5
5
  export * from "@vtj/base";
6
6
  import { ref as ge } from "vue";
7
7
  (function() {
@@ -16,33 +16,33 @@ import { ref as ge } 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.35
19
+ * @version 0.13.37
20
20
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
21
21
  */
22
- const Xr = "0.13.35";
22
+ const Xr = "0.13.37";
23
23
  function st(t, e) {
24
24
  return function() {
25
25
  return t.apply(e, arguments);
26
26
  };
27
27
  }
28
- const { toString: Ht } = Object.prototype, { getPrototypeOf: Ce } = Object, { iterator: ce, toStringTag: ot } = Symbol, le = /* @__PURE__ */ ((t) => (e) => {
29
- const n = Ht.call(e);
28
+ const { toString: $t } = Object.prototype, { getPrototypeOf: Ce } = Object, { iterator: ce, toStringTag: ot } = Symbol, le = /* @__PURE__ */ ((t) => (e) => {
29
+ const n = $t.call(e);
30
30
  return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
31
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
32
  function X(t) {
33
33
  return t !== null && !q(t) && t.constructor !== null && !q(t.constructor) && A(t.constructor.isBuffer) && t.constructor.isBuffer(t);
34
34
  }
35
35
  const it = L("ArrayBuffer");
36
- function $t(t) {
36
+ function Jt(t) {
37
37
  let e;
38
38
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && it(t.buffer), e;
39
39
  }
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) => {
40
+ const zt = ue("string"), A = ue("function"), at = ue("number"), G = (t) => t !== null && typeof t == "object", Wt = (t) => t === !0 || t === !1, se = (t) => {
41
41
  if (le(t) !== "object")
42
42
  return !1;
43
43
  const e = Ce(t);
44
44
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(ot in t) && !(ce in t);
45
- }, Wt = (t) => {
45
+ }, Vt = (t) => {
46
46
  if (!G(t) || X(t))
47
47
  return !1;
48
48
  try {
@@ -50,11 +50,11 @@ const Jt = ue("string"), A = ue("function"), at = ue("number"), G = (t) => t !==
50
50
  } catch {
51
51
  return !1;
52
52
  }
53
- }, Vt = L("Date"), Kt = L("File"), Xt = L("Blob"), Gt = L("FileList"), Qt = (t) => G(t) && A(t.pipe), Yt = (t) => {
53
+ }, Kt = L("Date"), Xt = L("File"), Gt = L("Blob"), Qt = L("FileList"), Yt = (t) => G(t) && A(t.pipe), Zt = (t) => {
54
54
  let e;
55
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
- }, 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, "");
57
+ }, en = L("URLSearchParams"), [tn, nn, rn, sn] = ["ReadableStream", "Request", "Response", "Headers"].map(L), on = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
58
58
  function Q(t, e, { allOwnKeys: n = !1 } = {}) {
59
59
  if (t === null || typeof t > "u")
60
60
  return;
@@ -92,13 +92,13 @@ function Se() {
92
92
  arguments[s] && Q(arguments[s], r);
93
93
  return n;
94
94
  }
95
- const on = (t, e, n, { allOwnKeys: r } = {}) => (Q(e, (s, o) => {
95
+ const an = (t, e, n, { allOwnKeys: r } = {}) => (Q(e, (s, o) => {
96
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) => {
97
+ }, { allOwnKeys: r }), t), cn = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), ln = (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
- }, ln = (t, e, n, r) => {
101
+ }, un = (t, e, n, r) => {
102
102
  let s, o, i;
103
103
  const a = {};
104
104
  if (e = e || {}, t == null) return e;
@@ -108,11 +108,11 @@ const on = (t, e, n, { allOwnKeys: r } = {}) => (Q(e, (s, o) => {
108
108
  t = n !== !1 && Ce(t);
109
109
  } while (t && (!n || n(t, e)) && t !== Object.prototype);
110
110
  return e;
111
- }, un = (t, e, n) => {
111
+ }, fn = (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
- }, fn = (t) => {
115
+ }, dn = (t) => {
116
116
  if (!t) return null;
117
117
  if (H(t)) return t;
118
118
  let e = t.length;
@@ -121,31 +121,31 @@ const on = (t, e, n, { allOwnKeys: r } = {}) => (Q(e, (s, o) => {
121
121
  for (; e-- > 0; )
122
122
  n[e] = t[e];
123
123
  return n;
124
- }, dn = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Ce(Uint8Array)), pn = (t, e) => {
124
+ }, pn = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Ce(Uint8Array)), hn = (t, e) => {
125
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
- }, hn = (t, e) => {
131
+ }, mn = (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
- }, mn = L("HTMLFormElement"), gn = (t) => t.toLowerCase().replace(
137
+ }, gn = L("HTMLFormElement"), yn = (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
- ), Be = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), yn = L("RegExp"), ut = (t, e) => {
142
+ ), Be = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), wn = L("RegExp"), ut = (t, e) => {
143
143
  const n = Object.getOwnPropertyDescriptors(t), r = {};
144
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
- }, wn = (t) => {
148
+ }, bn = (t) => {
149
149
  ut(t, (e, n) => {
150
150
  if (A(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
151
151
  return !1;
@@ -160,19 +160,19 @@ const on = (t, e, n, { allOwnKeys: r } = {}) => (Q(e, (s, o) => {
160
160
  });
161
161
  }
162
162
  });
163
- }, bn = (t, e) => {
163
+ }, En = (t, e) => {
164
164
  const n = {}, r = (s) => {
165
165
  s.forEach((o) => {
166
166
  n[o] = !0;
167
167
  });
168
168
  };
169
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) {
170
+ }, Sn = () => {
171
+ }, Rn = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
172
+ function On(t) {
173
173
  return !!(t && A(t.append) && t[ot] === "FormData" && t[ce]);
174
174
  }
175
- const On = (t) => {
175
+ const Tn = (t) => {
176
176
  const e = new Array(10), n = (r, s) => {
177
177
  if (G(r)) {
178
178
  if (e.indexOf(r) >= 0)
@@ -191,72 +191,72 @@ const On = (t) => {
191
191
  return r;
192
192
  };
193
193
  return n(t, 0);
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 }) => {
194
+ }, An = L("AsyncFunction"), xn = (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
195
  s === v && o === n && r.length && r.shift()();
196
196
  }, !1), (s) => {
197
197
  r.push(s), v.postMessage(n, "*");
198
198
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
199
199
  typeof setImmediate == "function",
200
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 = {
201
+ ), Cn = typeof queueMicrotask < "u" ? queueMicrotask.bind(v) : typeof process < "u" && process.nextTick || ft, _n = (t) => t != null && A(t[ce]), c = {
202
202
  isArray: H,
203
203
  isArrayBuffer: it,
204
204
  isBuffer: X,
205
- isFormData: Yt,
206
- isArrayBufferView: $t,
207
- isString: Jt,
205
+ isFormData: Zt,
206
+ isArrayBufferView: Jt,
207
+ isString: zt,
208
208
  isNumber: at,
209
- isBoolean: zt,
209
+ isBoolean: Wt,
210
210
  isObject: G,
211
211
  isPlainObject: se,
212
- isEmptyObject: Wt,
213
- isReadableStream: en,
214
- isRequest: tn,
215
- isResponse: nn,
216
- isHeaders: rn,
212
+ isEmptyObject: Vt,
213
+ isReadableStream: tn,
214
+ isRequest: nn,
215
+ isResponse: rn,
216
+ isHeaders: sn,
217
217
  isUndefined: q,
218
- isDate: Vt,
219
- isFile: Kt,
220
- isBlob: Xt,
221
- isRegExp: yn,
218
+ isDate: Kt,
219
+ isFile: Xt,
220
+ isBlob: Gt,
221
+ isRegExp: wn,
222
222
  isFunction: A,
223
- isStream: Qt,
224
- isURLSearchParams: Zt,
225
- isTypedArray: dn,
226
- isFileList: Gt,
223
+ isStream: Yt,
224
+ isURLSearchParams: en,
225
+ isTypedArray: pn,
226
+ isFileList: Qt,
227
227
  forEach: Q,
228
228
  merge: Se,
229
- extend: on,
230
- trim: sn,
231
- stripBOM: an,
232
- inherits: cn,
233
- toFlatObject: ln,
229
+ extend: an,
230
+ trim: on,
231
+ stripBOM: cn,
232
+ inherits: ln,
233
+ toFlatObject: un,
234
234
  kindOf: le,
235
235
  kindOfTest: L,
236
- endsWith: un,
237
- toArray: fn,
238
- forEachEntry: pn,
239
- matchAll: hn,
240
- isHTMLForm: mn,
236
+ endsWith: fn,
237
+ toArray: dn,
238
+ forEachEntry: hn,
239
+ matchAll: mn,
240
+ isHTMLForm: gn,
241
241
  hasOwnProperty: Be,
242
242
  hasOwnProp: Be,
243
243
  // an alias to avoid ESLint no-prototype-builtins detection
244
244
  reduceDescriptors: ut,
245
- freezeMethods: wn,
246
- toObjectSet: bn,
247
- toCamelCase: gn,
248
- noop: En,
249
- toFiniteNumber: Sn,
245
+ freezeMethods: bn,
246
+ toObjectSet: En,
247
+ toCamelCase: yn,
248
+ noop: Sn,
249
+ toFiniteNumber: Rn,
250
250
  findKey: ct,
251
251
  global: v,
252
252
  isContextDefined: lt,
253
- isSpecCompliantForm: Rn,
254
- toJSONObject: On,
255
- isAsyncFn: Tn,
256
- isThenable: An,
253
+ isSpecCompliantForm: On,
254
+ toJSONObject: Tn,
255
+ isAsyncFn: An,
256
+ isThenable: xn,
257
257
  setImmediate: ft,
258
- asap: xn,
259
- isIterable: Cn
258
+ asap: Cn,
259
+ isIterable: _n
260
260
  };
261
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);
@@ -310,7 +310,7 @@ g.from = (t, e, n, r, s, o) => {
310
310
  const a = t && t.message ? t.message : "Error", f = e == null && t ? t.code : e;
311
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;
312
312
  };
313
- const _n = null;
313
+ const Pn = null;
314
314
  function Re(t) {
315
315
  return c.isPlainObject(t) || c.isArray(t);
316
316
  }
@@ -322,10 +322,10 @@ function Ie(t, e, n) {
322
322
  return s = ht(s), !n && o ? "[" + s + "]" : s;
323
323
  }).join(n ? "." : "") : e;
324
324
  }
325
- function Pn(t) {
325
+ function Ln(t) {
326
326
  return c.isArray(t) && !t.some(Re);
327
327
  }
328
- const Ln = c.toFlatObject(c, {}, null, function(e) {
328
+ const Un = c.toFlatObject(c, {}, null, function(e) {
329
329
  return /^is[A-Z]/.test(e);
330
330
  });
331
331
  function fe(t, e, n) {
@@ -356,7 +356,7 @@ function fe(t, e, n) {
356
356
  if (d && !h && typeof d == "object") {
357
357
  if (c.endsWith(m, "{}"))
358
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)))
359
+ else if (c.isArray(d) && Ln(d) || (c.isFileList(d) || c.endsWith(m, "[]")) && (w = c.toArray(d)))
360
360
  return m = ht(m), w.forEach(function(b, O) {
361
361
  !(c.isUndefined(b) || b === null) && e.append(
362
362
  // eslint-disable-next-line no-nested-ternary
@@ -367,7 +367,7 @@ function fe(t, e, n) {
367
367
  }
368
368
  return Re(d) ? !0 : (e.append(Ie(h, m, o), u(d)), !1);
369
369
  }
370
- const p = [], y = Object.assign(Ln, {
370
+ const p = [], y = Object.assign(Un, {
371
371
  defaultVisitor: l,
372
372
  convertValue: u,
373
373
  isVisitable: Re
@@ -420,13 +420,13 @@ mt.toString = function(e) {
420
420
  return n(s[0]) + "=" + n(s[1]);
421
421
  }, "").join("&");
422
422
  };
423
- function Un(t) {
423
+ function kn(t) {
424
424
  return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
425
425
  }
426
426
  function gt(t, e, n) {
427
427
  if (!e)
428
428
  return t;
429
- const r = n && n.encode || Un;
429
+ const r = n && n.encode || kn;
430
430
  c.isFunction(n) && (n = {
431
431
  serialize: n
432
432
  });
@@ -496,27 +496,27 @@ const yt = {
496
496
  silentJSONParsing: !0,
497
497
  forcedJSONParsing: !0,
498
498
  clarifyTimeoutError: !1
499
- }, kn = typeof URLSearchParams < "u" ? URLSearchParams : _e, Fn = typeof FormData < "u" ? FormData : null, jn = typeof Blob < "u" ? Blob : null, Nn = {
499
+ }, Fn = typeof URLSearchParams < "u" ? URLSearchParams : _e, jn = typeof FormData < "u" ? FormData : null, Nn = typeof Blob < "u" ? Blob : null, Dn = {
500
500
  isBrowser: !0,
501
501
  classes: {
502
- URLSearchParams: kn,
503
- FormData: Fn,
504
- Blob: jn
502
+ URLSearchParams: Fn,
503
+ FormData: jn,
504
+ Blob: Nn
505
505
  },
506
506
  protocols: ["http", "https", "file", "blob", "url", "data"]
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
+ }, Pe = typeof window < "u" && typeof document < "u", Oe = typeof navigator == "object" && navigator || void 0, vn = Pe && (!Oe || ["ReactNative", "NativeScript", "NS"].indexOf(Oe.product) < 0), Bn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
508
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", In = Pe && window.location.href || "http://localhost", Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
509
509
  __proto__: null,
510
510
  hasBrowserEnv: Pe,
511
- hasStandardBrowserEnv: Dn,
512
- hasStandardBrowserWebWorkerEnv: vn,
511
+ hasStandardBrowserEnv: vn,
512
+ hasStandardBrowserWebWorkerEnv: Bn,
513
513
  navigator: Oe,
514
- origin: Bn
514
+ origin: In
515
515
  }, Symbol.toStringTag, { value: "Module" })), T = {
516
- ...In,
517
- ...Nn
516
+ ...Mn,
517
+ ...Dn
518
518
  };
519
- function Mn(t, e) {
519
+ function qn(t, e) {
520
520
  return fe(t, new T.classes.URLSearchParams(), {
521
521
  visitor: function(n, r, s, o) {
522
522
  return T.isNode && c.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
@@ -524,10 +524,10 @@ function Mn(t, e) {
524
524
  ...e
525
525
  });
526
526
  }
527
- function qn(t) {
527
+ function Hn(t) {
528
528
  return c.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
529
529
  }
530
- function Hn(t) {
530
+ function $n(t) {
531
531
  const e = {}, n = Object.keys(t);
532
532
  let r;
533
533
  const s = n.length;
@@ -541,17 +541,17 @@ function wt(t) {
541
541
  let i = n[o++];
542
542
  if (i === "__proto__") return !0;
543
543
  const a = Number.isFinite(+i), f = o >= n.length;
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);
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] = $n(s[i])), !a);
545
545
  }
546
546
  if (c.isFormData(t) && c.isFunction(t.entries)) {
547
547
  const n = {};
548
548
  return c.forEachEntry(t, (r, s) => {
549
- e(qn(r), s, n, 0);
549
+ e(Hn(r), s, n, 0);
550
550
  }), n;
551
551
  }
552
552
  return null;
553
553
  }
554
- function $n(t, e, n) {
554
+ function Jn(t, e, n) {
555
555
  if (c.isString(t))
556
556
  try {
557
557
  return (e || JSON.parse)(t), c.trim(t);
@@ -577,7 +577,7 @@ const Y = {
577
577
  let a;
578
578
  if (o) {
579
579
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
580
- return Mn(e, this.formSerializer).toString();
580
+ return qn(e, this.formSerializer).toString();
581
581
  if ((a = c.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
582
582
  const f = this.env && this.env.FormData;
583
583
  return fe(
@@ -587,7 +587,7 @@ const Y = {
587
587
  );
588
588
  }
589
589
  }
590
- return o || s ? (n.setContentType("application/json", !1), $n(e)) : e;
590
+ return o || s ? (n.setContentType("application/json", !1), Jn(e)) : e;
591
591
  }],
592
592
  transformResponse: [function(e) {
593
593
  const n = this.transitional || Y.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
@@ -630,7 +630,7 @@ const Y = {
630
630
  c.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
631
631
  Y.headers[t] = {};
632
632
  });
633
- const Jn = c.toObjectSet([
633
+ const zn = c.toObjectSet([
634
634
  "age",
635
635
  "authorization",
636
636
  "content-length",
@@ -648,12 +648,12 @@ const Jn = c.toObjectSet([
648
648
  "referer",
649
649
  "retry-after",
650
650
  "user-agent"
651
- ]), zn = (t) => {
651
+ ]), Wn = (t) => {
652
652
  const e = {};
653
653
  let n, r, s;
654
654
  return t && t.split(`
655
655
  `).forEach(function(i) {
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);
656
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || e[n] && zn[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
657
657
  }), e;
658
658
  }, He = Symbol("internals");
659
659
  function z(t) {
@@ -662,14 +662,14 @@ function z(t) {
662
662
  function oe(t) {
663
663
  return t === !1 || t == null ? t : c.isArray(t) ? t.map(oe) : String(t);
664
664
  }
665
- function Wn(t) {
665
+ function Vn(t) {
666
666
  const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
667
667
  let r;
668
668
  for (; r = n.exec(t); )
669
669
  e[r[1]] = r[2];
670
670
  return e;
671
671
  }
672
- const Vn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
672
+ const Kn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
673
673
  function ye(t, e, n, r, s) {
674
674
  if (c.isFunction(r))
675
675
  return r.call(this, e, n);
@@ -680,10 +680,10 @@ function ye(t, e, n, r, s) {
680
680
  return r.test(e);
681
681
  }
682
682
  }
683
- function Kn(t) {
683
+ function Xn(t) {
684
684
  return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
685
685
  }
686
- function Xn(t, e) {
686
+ function Gn(t, e) {
687
687
  const n = c.toCamelCase(" " + e);
688
688
  ["get", "set", "has"].forEach((r) => {
689
689
  Object.defineProperty(t, r + n, {
@@ -710,8 +710,8 @@ let x = class {
710
710
  const i = (a, f) => c.forEach(a, (u, l) => o(u, l, f));
711
711
  if (c.isPlainObject(e) || e instanceof this.constructor)
712
712
  i(e, n);
713
- else if (c.isString(e) && (e = e.trim()) && !Vn(e))
714
- i(zn(e), n);
713
+ else if (c.isString(e) && (e = e.trim()) && !Kn(e))
714
+ i(Wn(e), n);
715
715
  else if (c.isObject(e) && c.isIterable(e)) {
716
716
  let a = {}, f, u;
717
717
  for (const l of e) {
@@ -732,7 +732,7 @@ let x = class {
732
732
  if (!n)
733
733
  return s;
734
734
  if (n === !0)
735
- return Wn(s);
735
+ return Vn(s);
736
736
  if (c.isFunction(n))
737
737
  return n.call(this, s, r);
738
738
  if (c.isRegExp(n))
@@ -776,7 +776,7 @@ let x = class {
776
776
  n[i] = oe(s), delete n[o];
777
777
  return;
778
778
  }
779
- const a = e ? Kn(o) : String(o).trim();
779
+ const a = e ? Xn(o) : String(o).trim();
780
780
  a !== o && delete n[o], n[a] = oe(s), r[a] = !0;
781
781
  }), this;
782
782
  }
@@ -815,7 +815,7 @@ let x = class {
815
815
  }).accessors, s = this.prototype;
816
816
  function o(i) {
817
817
  const a = z(i);
818
- r[a] || (Xn(s, i), r[a] = !0);
818
+ r[a] || (Gn(s, i), r[a] = !0);
819
819
  }
820
820
  return c.isArray(e) ? e.forEach(o) : o(e), this;
821
821
  }
@@ -857,11 +857,11 @@ function Et(t, e, n) {
857
857
  n
858
858
  ));
859
859
  }
860
- function Gn(t) {
860
+ function Qn(t) {
861
861
  const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
862
862
  return e && e[1] || "";
863
863
  }
864
- function Qn(t, e) {
864
+ function Yn(t, e) {
865
865
  t = t || 10;
866
866
  const n = new Array(t), r = new Array(t);
867
867
  let s = 0, o = 0, i;
@@ -877,7 +877,7 @@ function Qn(t, e) {
877
877
  return E ? Math.round(y * 1e3 / E) : void 0;
878
878
  };
879
879
  }
880
- function Yn(t, e) {
880
+ function Zn(t, e) {
881
881
  let n = 0, r = 1e3 / e, s, o;
882
882
  const i = (u, l = Date.now()) => {
883
883
  n = l, s = null, o && (clearTimeout(o), o = null), t(...u);
@@ -891,8 +891,8 @@ function Yn(t, e) {
891
891
  }
892
892
  const ae = (t, e, n = 3) => {
893
893
  let r = 0;
894
- const s = Qn(50, 250);
895
- return Yn((o) => {
894
+ const s = Yn(50, 250);
895
+ return Zn((o) => {
896
896
  const i = o.loaded, a = o.lengthComputable ? o.total : void 0, f = i - r, u = s(f), l = i <= a;
897
897
  r = i;
898
898
  const p = {
@@ -915,10 +915,10 @@ const ae = (t, e, n = 3) => {
915
915
  total: t,
916
916
  loaded: r
917
917
  }), e[1]];
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)))(
918
+ }, Je = (t) => (...e) => c.asap(() => t(...e)), er = 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
919
  new URL(T.origin),
920
920
  T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
921
- ) : () => !0, er = T.hasStandardBrowserEnv ? (
921
+ ) : () => !0, tr = T.hasStandardBrowserEnv ? (
922
922
  // Standard browser envs support document.cookie
923
923
  {
924
924
  write(t, e, n, r, s, o, i) {
@@ -947,15 +947,15 @@ const ae = (t, e, n = 3) => {
947
947
  }
948
948
  }
949
949
  );
950
- function tr(t) {
950
+ function nr(t) {
951
951
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
952
952
  }
953
- function nr(t, e) {
953
+ function rr(t, e) {
954
954
  return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
955
955
  }
956
956
  function St(t, e, n) {
957
- let r = !tr(e);
958
- return t && (r || n == !1) ? nr(t, e) : e;
957
+ let r = !nr(e);
958
+ return t && (r || n == !1) ? rr(t, e) : e;
959
959
  }
960
960
  const ze = (t) => t instanceof x ? { ...t } : t;
961
961
  function I(t, e) {
@@ -1038,12 +1038,12 @@ const Rt = (t) => {
1038
1038
  });
1039
1039
  }
1040
1040
  }
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);
1041
+ if (T.hasStandardBrowserEnv && (r && c.isFunction(r) && (r = r(e)), r || r !== !1 && er(e.url))) {
1042
+ const f = s && o && tr.read(o);
1043
1043
  f && i.set(s, f);
1044
1044
  }
1045
1045
  return e;
1046
- }, rr = typeof XMLHttpRequest < "u", sr = rr && function(t) {
1046
+ }, sr = typeof XMLHttpRequest < "u", or = sr && function(t) {
1047
1047
  return new Promise(function(n, r) {
1048
1048
  const s = Rt(t);
1049
1049
  let o = s.data;
@@ -1094,14 +1094,14 @@ const Rt = (t) => {
1094
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
1095
  h && (r(!b || b.type ? new $(null, t, h) : b), h.abort(), h = null);
1096
1096
  }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1097
- const R = Gn(s.url);
1097
+ const R = Qn(s.url);
1098
1098
  if (R && T.protocols.indexOf(R) === -1) {
1099
1099
  r(new g("Unsupported protocol " + R + ":", g.ERR_BAD_REQUEST, t));
1100
1100
  return;
1101
1101
  }
1102
1102
  h.send(o || null);
1103
1103
  });
1104
- }, or = (t, e) => {
1104
+ }, ir = (t, e) => {
1105
1105
  const { length: n } = t = t ? t.filter(Boolean) : [];
1106
1106
  if (e || n) {
1107
1107
  let r = new AbortController(), s;
@@ -1124,7 +1124,7 @@ const Rt = (t) => {
1124
1124
  const { signal: f } = r;
1125
1125
  return f.unsubscribe = () => c.asap(a), f;
1126
1126
  }
1127
- }, ir = function* (t, e) {
1127
+ }, ar = function* (t, e) {
1128
1128
  let n = t.byteLength;
1129
1129
  if (n < e) {
1130
1130
  yield t;
@@ -1133,10 +1133,10 @@ const Rt = (t) => {
1133
1133
  let r = 0, s;
1134
1134
  for (; r < n; )
1135
1135
  s = r + e, yield t.slice(r, s), r = s;
1136
- }, ar = async function* (t, e) {
1137
- for await (const n of cr(t))
1138
- yield* ir(n, e);
1139
- }, cr = async function* (t) {
1136
+ }, cr = async function* (t, e) {
1137
+ for await (const n of lr(t))
1138
+ yield* ar(n, e);
1139
+ }, lr = async function* (t) {
1140
1140
  if (t[Symbol.asyncIterator]) {
1141
1141
  yield* t;
1142
1142
  return;
@@ -1153,7 +1153,7 @@ const Rt = (t) => {
1153
1153
  await e.cancel();
1154
1154
  }
1155
1155
  }, We = (t, e, n, r) => {
1156
- const s = ar(t, e);
1156
+ const s = cr(t, e);
1157
1157
  let o = 0, i, a = (f) => {
1158
1158
  i || (i = !0, r && r(f));
1159
1159
  };
@@ -1181,7 +1181,7 @@ const Rt = (t) => {
1181
1181
  }, {
1182
1182
  highWaterMark: 2
1183
1183
  });
1184
- }, Ve = 64 * 1024, { isFunction: ne } = c, lr = (({ Request: t, Response: e }) => ({
1184
+ }, Ve = 64 * 1024, { isFunction: ne } = c, ur = (({ Request: t, Response: e }) => ({
1185
1185
  Request: t,
1186
1186
  Response: e
1187
1187
  }))(c.global), {
@@ -1193,10 +1193,10 @@ const Rt = (t) => {
1193
1193
  } catch {
1194
1194
  return !1;
1195
1195
  }
1196
- }, ur = (t) => {
1196
+ }, fr = (t) => {
1197
1197
  t = c.merge.call({
1198
1198
  skipUndefined: !0
1199
- }, lr, t);
1199
+ }, ur, t);
1200
1200
  const { fetch: e, Request: n, Response: r } = t, s = e ? ne(e) : typeof fetch == "function", o = ne(n), i = ne(r);
1201
1201
  if (!s)
1202
1202
  return !1;
@@ -1255,7 +1255,7 @@ const Rt = (t) => {
1255
1255
  fetchOptions: ke
1256
1256
  } = Rt(d), Fe = e || fetch;
1257
1257
  P = P ? (P + "").toLowerCase() : "text";
1258
- let ee = or([R, b && b.toAbortSignal()], O), J = null;
1258
+ let ee = ir([R, b && b.toAbortSignal()], O), J = null;
1259
1259
  const D = ee && ee.unsubscribe && (() => {
1260
1260
  ee.unsubscribe();
1261
1261
  });
@@ -1305,10 +1305,10 @@ const Rt = (t) => {
1305
1305
  );
1306
1306
  }
1307
1307
  P = P || "text";
1308
- let kt = await p[c.findKey(p, P) || "text"](F, d);
1308
+ let Ft = await p[c.findKey(p, P) || "text"](F, d);
1309
1309
  return !De && D && D(), await new Promise((j, M) => {
1310
1310
  Et(j, M, {
1311
- data: kt,
1311
+ data: Ft,
1312
1312
  headers: x.from(F.headers),
1313
1313
  status: F.status,
1314
1314
  statusText: F.statusText,
@@ -1325,22 +1325,22 @@ const Rt = (t) => {
1325
1325
  ) : g.from(U, U && U.code, d, J);
1326
1326
  }
1327
1327
  };
1328
- }, fr = /* @__PURE__ */ new Map(), Ot = (t) => {
1328
+ }, dr = /* @__PURE__ */ new Map(), Ot = (t) => {
1329
1329
  let e = t && t.env || {};
1330
1330
  const { fetch: n, Request: r, Response: s } = e, o = [
1331
1331
  r,
1332
1332
  s,
1333
1333
  n
1334
1334
  ];
1335
- let i = o.length, a = i, f, u, l = fr;
1335
+ let i = o.length, a = i, f, u, l = dr;
1336
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;
1337
+ f = o[a], u = l.get(f), u === void 0 && l.set(f, u = a ? /* @__PURE__ */ new Map() : fr(e)), l = u;
1338
1338
  return u;
1339
1339
  };
1340
1340
  Ot();
1341
1341
  const Le = {
1342
- http: _n,
1343
- xhr: sr,
1342
+ http: Pn,
1343
+ xhr: or,
1344
1344
  fetch: {
1345
1345
  get: Ot
1346
1346
  }
@@ -1354,8 +1354,8 @@ c.forEach(Le, (t, e) => {
1354
1354
  Object.defineProperty(t, "adapterName", { value: e });
1355
1355
  }
1356
1356
  });
1357
- const Qe = (t) => `- ${t}`, dr = (t) => c.isFunction(t) || t === null || t === !1;
1358
- function pr(t, e) {
1357
+ const Qe = (t) => `- ${t}`, pr = (t) => c.isFunction(t) || t === null || t === !1;
1358
+ function hr(t, e) {
1359
1359
  t = c.isArray(t) ? t : [t];
1360
1360
  const { length: n } = t;
1361
1361
  let r, s;
@@ -1363,7 +1363,7 @@ function pr(t, e) {
1363
1363
  for (let i = 0; i < n; i++) {
1364
1364
  r = t[i];
1365
1365
  let a;
1366
- if (s = r, !dr(r) && (s = Le[(a = String(r)).toLowerCase()], s === void 0))
1366
+ if (s = r, !pr(r) && (s = Le[(a = String(r)).toLowerCase()], s === void 0))
1367
1367
  throw new g(`Unknown adapter '${a}'`);
1368
1368
  if (s && (c.isFunction(s) || (s = s.get(e))))
1369
1369
  break;
@@ -1388,7 +1388,7 @@ const Tt = {
1388
1388
  * Resolve an adapter from a list of adapter names or functions.
1389
1389
  * @type {Function}
1390
1390
  */
1391
- getAdapter: pr,
1391
+ getAdapter: hr,
1392
1392
  /**
1393
1393
  * Exposes all known adapters
1394
1394
  * @type {Object<string, Function|Object>}
@@ -1445,7 +1445,7 @@ de.transitional = function(e, n, r) {
1445
1445
  de.spelling = function(e) {
1446
1446
  return (n, r) => (console.warn(`${r} is likely a misspelling of ${e}`), !0);
1447
1447
  };
1448
- function hr(t, e, n) {
1448
+ function mr(t, e, n) {
1449
1449
  if (typeof t != "object")
1450
1450
  throw new g("options must be an object", g.ERR_BAD_OPTION_VALUE);
1451
1451
  const r = Object.keys(t);
@@ -1463,7 +1463,7 @@ function hr(t, e, n) {
1463
1463
  }
1464
1464
  }
1465
1465
  const ie = {
1466
- assertOptions: hr,
1466
+ assertOptions: mr,
1467
1467
  validators: de
1468
1468
  }, k = ie.validators;
1469
1469
  let B = class {
@@ -1590,7 +1590,7 @@ c.forEach(["post", "put", "patch"], function(e) {
1590
1590
  }
1591
1591
  B.prototype[e] = n(), B.prototype[e + "Form"] = n(!0);
1592
1592
  });
1593
- let mr = class xt {
1593
+ let gr = class xt {
1594
1594
  constructor(e) {
1595
1595
  if (typeof e != "function")
1596
1596
  throw new TypeError("executor must be a function.");
@@ -1663,12 +1663,12 @@ let mr = class xt {
1663
1663
  };
1664
1664
  }
1665
1665
  };
1666
- function gr(t) {
1666
+ function yr(t) {
1667
1667
  return function(n) {
1668
1668
  return t.apply(null, n);
1669
1669
  };
1670
1670
  }
1671
- function yr(t) {
1671
+ function wr(t) {
1672
1672
  return c.isObject(t) && t.isAxiosError === !0;
1673
1673
  }
1674
1674
  const Te = {
@@ -1754,7 +1754,7 @@ function Ct(t) {
1754
1754
  const S = Ct(Y);
1755
1755
  S.Axios = B;
1756
1756
  S.CanceledError = $;
1757
- S.CancelToken = mr;
1757
+ S.CancelToken = gr;
1758
1758
  S.isCancel = bt;
1759
1759
  S.VERSION = At;
1760
1760
  S.toFormData = fe;
@@ -1763,8 +1763,8 @@ S.Cancel = S.CanceledError;
1763
1763
  S.all = function(e) {
1764
1764
  return Promise.all(e);
1765
1765
  };
1766
- S.spread = gr;
1767
- S.isAxiosError = yr;
1766
+ S.spread = yr;
1767
+ S.isAxiosError = wr;
1768
1768
  S.mergeConfig = I;
1769
1769
  S.AxiosHeaders = x;
1770
1770
  S.formToJSON = (t) => wt(c.isHTMLForm(t) ? new FormData(t) : t);
@@ -1788,12 +1788,12 @@ const {
1788
1788
  formToJSON: fs,
1789
1789
  getAdapter: ds,
1790
1790
  mergeConfig: ps
1791
- } = S, wr = {
1791
+ } = S, br = {
1792
1792
  form: "application/x-www-form-urlencoded",
1793
1793
  json: "application/json",
1794
1794
  data: "multipart/form-data"
1795
- }, br = ["put", "post", "patch"], et = "Local-Request-Id", Er = 100, Sr = 300;
1796
- class Rr {
1795
+ }, Er = ["put", "post", "patch"], et = "Local-Request-Id", Sr = 100, Rr = 300;
1796
+ class Or {
1797
1797
  constructor(e = {}) {
1798
1798
  C(this, "axios");
1799
1799
  C(this, "settings");
@@ -1817,7 +1817,7 @@ class Rr {
1817
1817
  },
1818
1818
  n
1819
1819
  )
1820
- ), this.setupSkipWarn(this.settings), this.showLoading = Nt(this.openLoading.bind(this), Er), this.showError = Dt(this._showError.bind(this), Sr, {
1820
+ ), this.setupSkipWarn(this.settings), this.showLoading = Dt(this.openLoading.bind(this), Sr), this.showError = vt(this._showError.bind(this), Rr, {
1821
1821
  leading: !0,
1822
1822
  trailing: !1
1823
1823
  });
@@ -1841,7 +1841,7 @@ class Rr {
1841
1841
  }
1842
1842
  createHeaders(e, n, r) {
1843
1843
  const s = n.injectHeaders ? typeof n.headers == "function" ? n.headers(e, r, n) : n.headers || {} : {}, o = {
1844
- "Content-Type": wr[n.type || "form"],
1844
+ "Content-Type": br[n.type || "form"],
1845
1845
  ...r.headers,
1846
1846
  ...s
1847
1847
  };
@@ -1862,7 +1862,7 @@ class Rr {
1862
1862
  const { type: i, skipWarn: a } = e, { name: f = "skipWarn" } = a || {};
1863
1863
  let { data: u, params: l = {}, method: p = "get" } = n;
1864
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 = {
1865
+ return Er.includes(p.toLowerCase()) ? (u = Object.assign(u || {}, y), u = i !== "json" || !this.isJsonType(r) ? this.toFormData(u, i) : u, l = {
1866
1866
  ...o
1867
1867
  }) : i === "form" ? l = {
1868
1868
  ...u || {},
@@ -1879,10 +1879,10 @@ class Rr {
1879
1879
  createUrl(e) {
1880
1880
  let { url: n, params: r } = e;
1881
1881
  if (n) {
1882
- let s = vt(n) ? new URL(n).origin : "";
1882
+ let s = Bt(n) ? new URL(n).origin : "";
1883
1883
  const o = s ? n.replace(s, "") : n;
1884
1884
  try {
1885
- const i = Bt(o, {
1885
+ const i = It(o, {
1886
1886
  encode: encodeURIComponent
1887
1887
  });
1888
1888
  return s + i(r || {});
@@ -1921,7 +1921,7 @@ class Rr {
1921
1921
  const r = W({}, this.settings, e.settings || {}), s = e.query || {}, o = me(e, [
1922
1922
  "settings",
1923
1923
  "query"
1924
- ]), i = It(!1), a = S.CancelToken.source();
1924
+ ]), i = Mt(!1), a = S.CancelToken.source();
1925
1925
  this.records[i] = { settings: r, config: o, source: a };
1926
1926
  const f = this.createUrl(o), u = this.createHeaders(i, r, o), { data: l, params: p } = this.createSendData(
1927
1927
  r,
@@ -1976,8 +1976,8 @@ class Rr {
1976
1976
  });
1977
1977
  }
1978
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);
1979
+ function Tr(t = {}) {
1980
+ const e = new Or(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);
1981
1981
  return Object.assign(n, {
1982
1982
  ...e,
1983
1983
  instance: e,
@@ -1988,22 +1988,22 @@ function Or(t = {}) {
1988
1988
  useResponse: i
1989
1989
  });
1990
1990
  }
1991
- const Tr = Or({
1991
+ const _t = Tr({
1992
1992
  settings: {
1993
1993
  injectHeaders: !0,
1994
1994
  loading: !0,
1995
1995
  originResponse: !0
1996
1996
  }
1997
1997
  });
1998
- function Ar(t) {
1999
- const e = typeof t == "string" ? { url: t } : t;
2000
- return (n, r) => Tr.send(W({}, e, r || {}, { data: n }));
1998
+ function Ar(t, e = _t) {
1999
+ const n = typeof t == "string" ? { url: t } : t;
2000
+ return (r, s) => e.send(W({}, n, s || {}, { data: r }));
2001
2001
  }
2002
- function hs(t) {
2003
- const e = {};
2004
- for (const [n, r] of Object.entries(t))
2005
- e[n] = Ar(r);
2006
- return e;
2002
+ function hs(t, e = _t) {
2003
+ const n = {};
2004
+ for (const [r, s] of Object.entries(t))
2005
+ n[r] = Ar(s, e);
2006
+ return n;
2007
2007
  }
2008
2008
  function ms(t, e) {
2009
2009
  const n = ge(null), r = ge(), s = ge(!0), o = () => {
@@ -2103,7 +2103,7 @@ class xr {
2103
2103
  }
2104
2104
  }
2105
2105
  const Rs = new xr();
2106
- function _t(t) {
2106
+ function Pt(t) {
2107
2107
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
2108
2108
  }
2109
2109
  var V = { exports: {} }, Cr = V.exports, tt;
@@ -2158,7 +2158,7 @@ function _r() {
2158
2158
  })(V, V.exports)), V.exports;
2159
2159
  }
2160
2160
  var Pr = _r();
2161
- const Lr = /* @__PURE__ */ _t(Pr);
2161
+ const Lr = /* @__PURE__ */ Pt(Pr);
2162
2162
  function Ur(t) {
2163
2163
  if (K) {
2164
2164
  const { protocol: e, host: n, pathname: r } = location;
@@ -2167,10 +2167,10 @@ function Ur(t) {
2167
2167
  return null;
2168
2168
  }
2169
2169
  function kr(t = "") {
2170
- const e = t.match(Mt);
2170
+ const e = t.match(qt);
2171
2171
  return e ? e[0] : "";
2172
2172
  }
2173
- function Pt(t) {
2173
+ function Lt(t) {
2174
2174
  const e = [];
2175
2175
  for (const n in t)
2176
2176
  Object.prototype.hasOwnProperty.call(t, n) && e.push([n, encodeURIComponent(t[n])].join("="));
@@ -2188,23 +2188,23 @@ function Ae(t, e, n) {
2188
2188
  s[1] !== t && (r[decodeURIComponent(s[1])] = decodeURIComponent(s[2] || ""));
2189
2189
  return r;
2190
2190
  }
2191
- function Lt(t, e) {
2191
+ function Ut(t, e) {
2192
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);
2193
+ const n = t.split("?")[0], r = Ae(t), s = Object.assign({}, r, e), o = Lt(s);
2194
2194
  return o ? [n, o].join("?") : t;
2195
2195
  }
2196
2196
  const Os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2197
2197
  __proto__: null,
2198
- append: Lt,
2198
+ append: Ut,
2199
2199
  getCurrentHost: Ur,
2200
2200
  getHost: kr,
2201
2201
  parse: Ae,
2202
- stringify: Pt
2202
+ stringify: Lt
2203
2203
  }, Symbol.toStringTag, { value: "Module" }));
2204
2204
  async function Ts(t, e = {}) {
2205
2205
  const { query: n = {} } = e;
2206
- t.includes("${") && (t = qt(t)(n || {}));
2207
- const r = Lt(t, n);
2206
+ t.includes("${") && (t = Ht(t)(n || {}));
2207
+ const r = Ut(t, n);
2208
2208
  return await (await Lr(r, e)).json();
2209
2209
  }
2210
2210
  var Ee, nt;
@@ -2236,7 +2236,7 @@ function Fr() {
2236
2236
  return Ee;
2237
2237
  }
2238
2238
  var jr = Fr();
2239
- const Nr = /* @__PURE__ */ _t(jr);
2239
+ const Nr = /* @__PURE__ */ Pt(jr);
2240
2240
  function As(t, e = {}) {
2241
2241
  return new Promise((n, r) => {
2242
2242
  const { library: s } = e;
@@ -2401,19 +2401,19 @@ function _s(t, e = "") {
2401
2401
  const n = document.createElement("a");
2402
2402
  n.download = e, n.href = t, n.target = "_blank", n.click();
2403
2403
  }
2404
- function Ut(t, e = "", n) {
2404
+ function kt(t, e = "", n) {
2405
2405
  const r = new Blob([t], { type: n }), s = document.createElement("a");
2406
2406
  s.download = e, s.style.display = "none", s.href = URL.createObjectURL(r), s.click(), URL.revokeObjectURL(s.href);
2407
2407
  }
2408
2408
  async function Ps(t, e = "", n) {
2409
2409
  return fetch(t, { credentials: "include" }).then(async (r) => {
2410
2410
  const s = await r.blob();
2411
- return Ut(s, e, n), s;
2411
+ return kt(s, e, n), s;
2412
2412
  });
2413
2413
  }
2414
2414
  function Ls(t, e = "") {
2415
2415
  const n = JSON.stringify(t);
2416
- Ut(n, e, "application/json");
2416
+ kt(n, e, "application/json");
2417
2417
  }
2418
2418
  function Us() {
2419
2419
  const t = navigator.userAgent;
@@ -2485,7 +2485,7 @@ function Us() {
2485
2485
  export {
2486
2486
  et as LOCAL_REQUEST_ID,
2487
2487
  Mr as Logger,
2488
- Rr as Request,
2488
+ Or as Request,
2489
2489
  xr as Storage,
2490
2490
  Xr as VTJ_UTILS_VERSION,
2491
2491
  S as axios,
@@ -2494,9 +2494,9 @@ export {
2494
2494
  Cs as cookie,
2495
2495
  Ar as createApi,
2496
2496
  hs as createApis,
2497
- Or as createRequest,
2497
+ Tr as createRequest,
2498
2498
  ws as dataURLtoBlob,
2499
- Ut as downloadBlob,
2499
+ kt as downloadBlob,
2500
2500
  Ls as downloadJson,
2501
2501
  Ps as downloadRemoteFile,
2502
2502
  _s as downloadUrl,
@@ -2509,7 +2509,7 @@ export {
2509
2509
  As as loadScript,
2510
2510
  xs as logger,
2511
2511
  Es as rAF,
2512
- Tr as request,
2512
+ _t as request,
2513
2513
  Rs as storage,
2514
2514
  Os as url,
2515
2515
  ms as useApi