@vtj/utils 0.8.89 → 0.8.91

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
@@ -12,10 +12,10 @@ export * from "@vtj/base";
12
12
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
13
13
  * @name @vtj/utils
14
14
  * @author CHC chenhuachun1549@dingtalk.com
15
- * @version 0.8.89
15
+ * @version 0.8.91
16
16
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
17
17
  */
18
- const As = "0.8.89";
18
+ const As = "0.8.91";
19
19
  /**
20
20
  * @vue/shared v3.4.31
21
21
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
@@ -95,9 +95,9 @@ function mt() {
95
95
  function Fe() {
96
96
  Ee++;
97
97
  }
98
- function Ie() {
99
- for (Ee--; !Ee && Se.length; )
100
- Se.shift()();
98
+ function De() {
99
+ for (Ee--; !Ee && Re.length; )
100
+ Re.shift()();
101
101
  }
102
102
  function gt(e, t, n) {
103
103
  if (t.get(e) !== e._trackId) {
@@ -106,23 +106,23 @@ function gt(e, t, n) {
106
106
  r !== t ? (r && dt(r, e), e.deps[e._depsLength++] = t) : e._depsLength++;
107
107
  }
108
108
  }
109
- const Se = [];
109
+ const Re = [];
110
110
  function wt(e, t, n) {
111
111
  Fe();
112
112
  for (const r of e.keys()) {
113
113
  let s;
114
- r._dirtyLevel < t && (s ?? (s = e.get(r) === r._trackId)) && (r._shouldSchedule || (r._shouldSchedule = r._dirtyLevel === 0), r._dirtyLevel = t), r._shouldSchedule && (s ?? (s = e.get(r) === r._trackId)) && (r.trigger(), (!r._runnings || r.allowRecurse) && r._dirtyLevel !== 2 && (r._shouldSchedule = !1, r.scheduler && Se.push(r.scheduler)));
114
+ r._dirtyLevel < t && (s ?? (s = e.get(r) === r._trackId)) && (r._shouldSchedule || (r._shouldSchedule = r._dirtyLevel === 0), r._dirtyLevel = t), r._shouldSchedule && (s ?? (s = e.get(r) === r._trackId)) && (r.trigger(), (!r._runnings || r.allowRecurse) && r._dirtyLevel !== 2 && (r._shouldSchedule = !1, r.scheduler && Re.push(r.scheduler)));
115
115
  }
116
- Ie();
116
+ De();
117
117
  }
118
118
  const yt = (e, t) => {
119
119
  const n = /* @__PURE__ */ new Map();
120
120
  return n.cleanup = e, n.computed = t, n;
121
- }, Re = /* @__PURE__ */ new WeakMap(), I = Symbol(""), Oe = Symbol("");
121
+ }, Se = /* @__PURE__ */ new WeakMap(), D = Symbol(""), Oe = Symbol("");
122
122
  function A(e, t, n) {
123
123
  if (j && F) {
124
- let r = Re.get(e);
125
- r || Re.set(e, r = /* @__PURE__ */ new Map());
124
+ let r = Se.get(e);
125
+ r || Se.set(e, r = /* @__PURE__ */ new Map());
126
126
  let s = r.get(n);
127
127
  s || r.set(n, s = yt(() => r.delete(n))), gt(
128
128
  F,
@@ -131,7 +131,7 @@ function A(e, t, n) {
131
131
  }
132
132
  }
133
133
  function v(e, t, n, r, s, o) {
134
- const i = Re.get(e);
134
+ const i = Se.get(e);
135
135
  if (!i)
136
136
  return;
137
137
  let a = [];
@@ -145,13 +145,13 @@ function v(e, t, n, r, s, o) {
145
145
  } else
146
146
  switch (n !== void 0 && a.push(i.get(n)), t) {
147
147
  case "add":
148
- N(e) ? Ne(n) && a.push(i.get("length")) : (a.push(i.get(I)), te(e) && a.push(i.get(Oe)));
148
+ N(e) ? Ne(n) && a.push(i.get("length")) : (a.push(i.get(D)), te(e) && a.push(i.get(Oe)));
149
149
  break;
150
150
  case "delete":
151
- N(e) || (a.push(i.get(I)), te(e) && a.push(i.get(Oe)));
151
+ N(e) || (a.push(i.get(D)), te(e) && a.push(i.get(Oe)));
152
152
  break;
153
153
  case "set":
154
- te(e) && a.push(i.get(I));
154
+ te(e) && a.push(i.get(D));
155
155
  break;
156
156
  }
157
157
  Fe();
@@ -160,7 +160,7 @@ function v(e, t, n, r, s, o) {
160
160
  f,
161
161
  4
162
162
  );
163
- Ie();
163
+ De();
164
164
  }
165
165
  const mn = /* @__PURE__ */ on("__proto__,__v_isRef,__isVue"), bt = new Set(
166
166
  /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(W)
@@ -179,7 +179,7 @@ function gn() {
179
179
  e[t] = function(...n) {
180
180
  pt(), Fe();
181
181
  const r = w(this)[t].apply(this, n);
182
- return Ie(), mt(), r;
182
+ return De(), mt(), r;
183
183
  };
184
184
  }), e;
185
185
  }
@@ -201,7 +201,7 @@ class _t {
201
201
  if (n === "__v_isShallow")
202
202
  return o;
203
203
  if (n === "__v_raw")
204
- return r === (s ? o ? Ln : Rt : o ? Pn : St).get(t) || // receiver is not the reactive proxy, but has the same prototype
204
+ return r === (s ? o ? Pn : St : o ? Ln : Rt).get(t) || // receiver is not the reactive proxy, but has the same prototype
205
205
  // this means the reciever is a user proxy of the reactive proxy
206
206
  Object.getPrototypeOf(t) === Object.getPrototypeOf(r) ? t : void 0;
207
207
  const i = N(t);
@@ -243,7 +243,7 @@ class yn extends _t {
243
243
  return A(
244
244
  t,
245
245
  "iterate",
246
- N(t) ? "length" : I
246
+ N(t) ? "length" : D
247
247
  ), Reflect.ownKeys(t);
248
248
  }
249
249
  }
@@ -258,12 +258,12 @@ class bn extends _t {
258
258
  return !0;
259
259
  }
260
260
  }
261
- const _n = /* @__PURE__ */ new yn(), En = /* @__PURE__ */ new bn(), De = (e) => e, le = (e) => Reflect.getPrototypeOf(e);
261
+ const _n = /* @__PURE__ */ new yn(), En = /* @__PURE__ */ new bn(), Ie = (e) => e, le = (e) => Reflect.getPrototypeOf(e);
262
262
  function G(e, t, n = !1, r = !1) {
263
263
  e = e.__v_raw;
264
264
  const s = w(e), o = w(t);
265
265
  n || (B(t, o) && A(s, "get", t), A(s, "get", o));
266
- const { has: i } = le(s), a = r ? De : n ? Ue : q;
266
+ const { has: i } = le(s), a = r ? Ie : n ? Ue : q;
267
267
  if (i.call(s, t))
268
268
  return a(e.get(t));
269
269
  if (i.call(s, o))
@@ -275,7 +275,7 @@ function X(e, t = !1) {
275
275
  return t || (B(e, s) && A(r, "has", e), A(r, "has", s)), e === s ? n.has(e) : n.has(e) || n.has(s);
276
276
  }
277
277
  function Y(e, t = !1) {
278
- return e = e.__v_raw, !t && A(w(e), "iterate", I), Reflect.get(e, "size", e);
278
+ return e = e.__v_raw, !t && A(w(e), "iterate", D), Reflect.get(e, "size", e);
279
279
  }
280
280
  function Ke(e) {
281
281
  e = w(e);
@@ -303,17 +303,17 @@ function Ge() {
303
303
  }
304
304
  function Q(e, t) {
305
305
  return function(r, s) {
306
- const o = this, i = o.__v_raw, a = w(i), f = t ? De : e ? Ue : q;
307
- return !e && A(a, "iterate", I), i.forEach((d, u) => r.call(s, f(d), f(u), o));
306
+ const o = this, i = o.__v_raw, a = w(i), f = t ? Ie : e ? Ue : q;
307
+ return !e && A(a, "iterate", D), i.forEach((d, u) => r.call(s, f(d), f(u), o));
308
308
  };
309
309
  }
310
310
  function Z(e, t, n) {
311
311
  return function(...r) {
312
- const s = this.__v_raw, o = w(s), i = te(o), a = e === "entries" || e === Symbol.iterator && i, f = e === "keys" && i, d = s[e](...r), u = n ? De : t ? Ue : q;
312
+ const s = this.__v_raw, o = w(s), i = te(o), a = e === "entries" || e === Symbol.iterator && i, f = e === "keys" && i, d = s[e](...r), u = n ? Ie : t ? Ue : q;
313
313
  return !t && A(
314
314
  o,
315
315
  "iterate",
316
- f ? Oe : I
316
+ f ? Oe : D
317
317
  ), {
318
318
  // iterator protocol
319
319
  next() {
@@ -330,12 +330,12 @@ function Z(e, t, n) {
330
330
  };
331
331
  };
332
332
  }
333
- function P(e) {
333
+ function L(e) {
334
334
  return function(...t) {
335
335
  return e === "delete" ? !1 : e === "clear" ? void 0 : this;
336
336
  };
337
337
  }
338
- function Sn() {
338
+ function Rn() {
339
339
  const e = {
340
340
  get(o) {
341
341
  return G(this, o);
@@ -372,10 +372,10 @@ function Sn() {
372
372
  has(o) {
373
373
  return X.call(this, o, !0);
374
374
  },
375
- add: P("add"),
376
- set: P("set"),
377
- delete: P("delete"),
378
- clear: P("clear"),
375
+ add: L("add"),
376
+ set: L("set"),
377
+ delete: L("delete"),
378
+ clear: L("clear"),
379
379
  forEach: Q(!0, !1)
380
380
  }, r = {
381
381
  get(o) {
@@ -387,10 +387,10 @@ function Sn() {
387
387
  has(o) {
388
388
  return X.call(this, o, !0);
389
389
  },
390
- add: P("add"),
391
- set: P("set"),
392
- delete: P("delete"),
393
- clear: P("clear"),
390
+ add: L("add"),
391
+ set: L("set"),
392
+ delete: L("delete"),
393
+ clear: L("clear"),
394
394
  forEach: Q(!0, !0)
395
395
  };
396
396
  return [
@@ -412,13 +412,13 @@ function Sn() {
412
412
  ];
413
413
  }
414
414
  const [
415
- Rn,
415
+ Sn,
416
416
  On,
417
417
  Tn,
418
418
  An
419
- ] = /* @__PURE__ */ Sn();
419
+ ] = /* @__PURE__ */ Rn();
420
420
  function Et(e, t) {
421
- const n = t ? e ? An : Tn : e ? On : Rn;
421
+ const n = t ? e ? An : Tn : e ? On : Sn;
422
422
  return (r, s, o) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? r : Reflect.get(
423
423
  oe(n, s) && s in r ? n : r,
424
424
  s,
@@ -429,7 +429,7 @@ const xn = {
429
429
  get: /* @__PURE__ */ Et(!1, !1)
430
430
  }, Cn = {
431
431
  get: /* @__PURE__ */ Et(!0, !1)
432
- }, St = /* @__PURE__ */ new WeakMap(), Pn = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), Ln = /* @__PURE__ */ new WeakMap();
432
+ }, Rt = /* @__PURE__ */ new WeakMap(), Ln = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), Pn = /* @__PURE__ */ new WeakMap();
433
433
  function jn(e) {
434
434
  switch (e) {
435
435
  case "Object":
@@ -453,7 +453,7 @@ function Ot(e) {
453
453
  !1,
454
454
  _n,
455
455
  xn,
456
- St
456
+ Rt
457
457
  );
458
458
  }
459
459
  function Tt(e) {
@@ -462,7 +462,7 @@ function Tt(e) {
462
462
  !0,
463
463
  En,
464
464
  Cn,
465
- Rt
465
+ St
466
466
  );
467
467
  }
468
468
  function At(e, t, n, r, s) {
@@ -542,9 +542,9 @@ function ge(e) {
542
542
  return Fn(e, !1);
543
543
  }
544
544
  function Fn(e, t) {
545
- return ae(e) ? e : new In(e, t);
545
+ return ae(e) ? e : new Dn(e, t);
546
546
  }
547
- class In {
547
+ class Dn {
548
548
  constructor(t, n) {
549
549
  this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : w(t), this._value = n ? t : q(t);
550
550
  }
@@ -556,22 +556,22 @@ class In {
556
556
  t = n ? t : w(t), B(t, this._rawValue) && (this._rawValue, this._rawValue = t, this._value = n ? t : q(t), ne(this, 4));
557
557
  }
558
558
  }
559
- function Pt(e, t) {
559
+ function Lt(e, t) {
560
560
  return function() {
561
561
  return e.apply(t, arguments);
562
562
  };
563
563
  }
564
- const { toString: Dn } = Object.prototype, { getPrototypeOf: Be } = Object, ue = /* @__PURE__ */ ((e) => (t) => {
565
- const n = Dn.call(t);
564
+ const { toString: In } = Object.prototype, { getPrototypeOf: Be } = Object, ue = /* @__PURE__ */ ((e) => (t) => {
565
+ const n = In.call(t);
566
566
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
567
567
  })(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => ue(t) === e), fe = (e) => (t) => typeof t === e, { isArray: k } = Array, z = fe("undefined");
568
568
  function Un(e) {
569
569
  return e !== null && !z(e) && e.constructor !== null && !z(e.constructor) && O(e.constructor.isBuffer) && e.constructor.isBuffer(e);
570
570
  }
571
- const Lt = C("ArrayBuffer");
571
+ const Pt = C("ArrayBuffer");
572
572
  function Bn(e) {
573
573
  let t;
574
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Lt(e.buffer), t;
574
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Pt(e.buffer), t;
575
575
  }
576
576
  const kn = fe("string"), O = fe("function"), jt = fe("number"), de = (e) => e !== null && typeof e == "object", Mn = (e) => e === !0 || e === !1, re = (e) => {
577
577
  if (ue(e) !== "object")
@@ -617,7 +617,7 @@ function Te() {
617
617
  return t;
618
618
  }
619
619
  const Gn = (e, t, n, { allOwnKeys: r } = {}) => (K(t, (s, o) => {
620
- n && O(s) ? e[o] = Pt(s, n) : e[o] = s;
620
+ n && O(s) ? e[o] = Lt(s, n) : e[o] = s;
621
621
  }, { allOwnKeys: r }), e), Xn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Yn = (e, t, n, r) => {
622
622
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
623
623
  value: t.prototype
@@ -663,14 +663,14 @@ const Gn = (e, t, n, { allOwnKeys: r } = {}) => (K(t, (s, o) => {
663
663
  function(n, r, s) {
664
664
  return r.toUpperCase() + s;
665
665
  }
666
- ), Xe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ir = C("RegExp"), It = (e, t) => {
666
+ ), Xe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ir = C("RegExp"), Dt = (e, t) => {
667
667
  const n = Object.getOwnPropertyDescriptors(e), r = {};
668
668
  K(n, (s, o) => {
669
669
  let i;
670
670
  (i = t(s, o, e)) !== !1 && (r[o] = i || s);
671
671
  }), Object.defineProperties(e, r);
672
672
  }, ar = (e) => {
673
- It(e, (t, n) => {
673
+ Dt(e, (t, n) => {
674
674
  if (O(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
675
675
  return !1;
676
676
  const r = e[n];
@@ -692,11 +692,11 @@ const Gn = (e, t, n, { allOwnKeys: r } = {}) => (K(t, (s, o) => {
692
692
  };
693
693
  return k(e) ? r(e) : r(String(e).split(t)), n;
694
694
  }, lr = () => {
695
- }, ur = (e, t) => (e = +e, Number.isFinite(e) ? e : t), we = "abcdefghijklmnopqrstuvwxyz", Ye = "0123456789", Dt = {
695
+ }, ur = (e, t) => (e = +e, Number.isFinite(e) ? e : t), we = "abcdefghijklmnopqrstuvwxyz", Ye = "0123456789", It = {
696
696
  DIGIT: Ye,
697
697
  ALPHA: we,
698
698
  ALPHA_DIGIT: we + we.toUpperCase() + Ye
699
- }, fr = (e = 16, t = Dt.ALPHA_DIGIT) => {
699
+ }, fr = (e = 16, t = It.ALPHA_DIGIT) => {
700
700
  let n = "";
701
701
  const { length: r } = t;
702
702
  for (; e--; )
@@ -725,7 +725,7 @@ const hr = (e) => {
725
725
  return n(e, 0);
726
726
  }, pr = C("AsyncFunction"), mr = (e) => e && (de(e) || O(e)) && O(e.then) && O(e.catch), c = {
727
727
  isArray: k,
728
- isArrayBuffer: Lt,
728
+ isArrayBuffer: Pt,
729
729
  isBuffer: Un,
730
730
  isFormData: Kn,
731
731
  isArrayBufferView: Bn,
@@ -761,7 +761,7 @@ const hr = (e) => {
761
761
  hasOwnProperty: Xe,
762
762
  hasOwnProp: Xe,
763
763
  // an alias to avoid ESLint no-prototype-builtins detection
764
- reduceDescriptors: It,
764
+ reduceDescriptors: Dt,
765
765
  freezeMethods: ar,
766
766
  toObjectSet: cr,
767
767
  toCamelCase: or,
@@ -770,7 +770,7 @@ const hr = (e) => {
770
770
  findKey: vt,
771
771
  global: Nt,
772
772
  isContextDefined: Ft,
773
- ALPHABET: Dt,
773
+ ALPHABET: It,
774
774
  generateString: fr,
775
775
  isSpecCompliantForm: dr,
776
776
  toJSONObject: hr,
@@ -872,11 +872,11 @@ function he(e, t, n) {
872
872
  if (c.endsWith(p, "{}"))
873
873
  p = r ? p : p.slice(0, -2), h = JSON.stringify(h);
874
874
  else if (c.isArray(h) && wr(h) || (c.isFileList(h) || c.endsWith(p, "[]")) && (b = c.toArray(h)))
875
- return p = kt(p), b.forEach(function(S, pe) {
876
- !(c.isUndefined(S) || S === null) && t.append(
875
+ return p = kt(p), b.forEach(function(R, pe) {
876
+ !(c.isUndefined(R) || R === null) && t.append(
877
877
  // eslint-disable-next-line no-nested-ternary
878
878
  i === !0 ? Qe([p], pe, o) : i === null ? p : p + "[]",
879
- d(S)
879
+ d(R)
880
880
  );
881
881
  }), !1;
882
882
  }
@@ -891,14 +891,14 @@ function he(e, t, n) {
891
891
  if (!c.isUndefined(h)) {
892
892
  if (l.indexOf(h) !== -1)
893
893
  throw Error("Circular reference detected in " + p.join("."));
894
- l.push(h), c.forEach(h, function(b, R) {
894
+ l.push(h), c.forEach(h, function(b, S) {
895
895
  (!(c.isUndefined(b) || b === null) && s.call(
896
896
  t,
897
897
  b,
898
- c.isString(R) ? R.trim() : R,
898
+ c.isString(S) ? S.trim() : S,
899
899
  p,
900
900
  g
901
- )) === !0 && y(b, p ? p.concat(R) : [R]);
901
+ )) === !0 && y(b, p ? p.concat(S) : [S]);
902
902
  }), l.pop();
903
903
  }
904
904
  }
@@ -1007,12 +1007,12 @@ const qt = {
1007
1007
  silentJSONParsing: !0,
1008
1008
  forcedJSONParsing: !0,
1009
1009
  clarifyTimeoutError: !1
1010
- }, _r = typeof URLSearchParams < "u" ? URLSearchParams : ke, Er = typeof FormData < "u" ? FormData : null, Sr = typeof Blob < "u" ? Blob : null, Rr = {
1010
+ }, _r = typeof URLSearchParams < "u" ? URLSearchParams : ke, Er = typeof FormData < "u" ? FormData : null, Rr = typeof Blob < "u" ? Blob : null, Sr = {
1011
1011
  isBrowser: !0,
1012
1012
  classes: {
1013
1013
  URLSearchParams: _r,
1014
1014
  FormData: Er,
1015
- Blob: Sr
1015
+ Blob: Rr
1016
1016
  },
1017
1017
  protocols: ["http", "https", "file", "blob", "url", "data"]
1018
1018
  }, zt = typeof window < "u" && typeof document < "u", Or = ((e) => zt && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), Tr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
@@ -1023,7 +1023,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ar
1023
1023
  hasStandardBrowserWebWorkerEnv: Tr
1024
1024
  }, Symbol.toStringTag, { value: "Module" })), x = {
1025
1025
  ...Ar,
1026
- ...Rr
1026
+ ...Sr
1027
1027
  };
1028
1028
  function xr(e, t) {
1029
1029
  return he(e, new x.classes.URLSearchParams(), Object.assign({
@@ -1035,7 +1035,7 @@ function xr(e, t) {
1035
1035
  function Cr(e) {
1036
1036
  return c.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
1037
1037
  }
1038
- function Pr(e) {
1038
+ function Lr(e) {
1039
1039
  const t = {}, n = Object.keys(e);
1040
1040
  let r;
1041
1041
  const s = n.length;
@@ -1049,7 +1049,7 @@ function Jt(e) {
1049
1049
  let i = n[o++];
1050
1050
  if (i === "__proto__") return !0;
1051
1051
  const a = Number.isFinite(+i), f = o >= n.length;
1052
- 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] = []), t(n, r, s[i], o) && c.isArray(s[i]) && (s[i] = Pr(s[i])), !a);
1052
+ 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] = []), t(n, r, s[i], o) && c.isArray(s[i]) && (s[i] = Lr(s[i])), !a);
1053
1053
  }
1054
1054
  if (c.isFormData(e) && c.isFunction(e.entries)) {
1055
1055
  const n = {};
@@ -1059,7 +1059,7 @@ function Jt(e) {
1059
1059
  }
1060
1060
  return null;
1061
1061
  }
1062
- function Lr(e, t, n) {
1062
+ function Pr(e, t, n) {
1063
1063
  if (c.isString(e))
1064
1064
  try {
1065
1065
  return (t || JSON.parse)(e), c.trim(e);
@@ -1095,7 +1095,7 @@ const $ = {
1095
1095
  );
1096
1096
  }
1097
1097
  }
1098
- return o || s ? (n.setContentType("application/json", !1), Lr(t)) : t;
1098
+ return o || s ? (n.setContentType("application/json", !1), Pr(t)) : t;
1099
1099
  }],
1100
1100
  transformResponse: [function(t) {
1101
1101
  const n = this.transitional || $.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
@@ -1186,10 +1186,10 @@ function ye(e, t, n, r, s) {
1186
1186
  return r.test(t);
1187
1187
  }
1188
1188
  }
1189
- function Ir(e) {
1189
+ function Dr(e) {
1190
1190
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
1191
1191
  }
1192
- function Dr(e, t) {
1192
+ function Ir(e, t) {
1193
1193
  const n = c.toCamelCase(" " + t);
1194
1194
  ["get", "set", "has"].forEach((r) => {
1195
1195
  Object.defineProperty(e, r + n, {
@@ -1268,7 +1268,7 @@ class T {
1268
1268
  n[i] = se(s), delete n[o];
1269
1269
  return;
1270
1270
  }
1271
- const a = t ? Ir(o) : String(o).trim();
1271
+ const a = t ? Dr(o) : String(o).trim();
1272
1272
  a !== o && delete n[o], n[a] = se(s), r[a] = !0;
1273
1273
  }), this;
1274
1274
  }
@@ -1304,7 +1304,7 @@ class T {
1304
1304
  }).accessors, s = this.prototype;
1305
1305
  function o(i) {
1306
1306
  const a = M(i);
1307
- r[a] || (Dr(s, i), r[a] = !0);
1307
+ r[a] || (Ir(s, i), r[a] = !0);
1308
1308
  }
1309
1309
  return c.isArray(t) ? t.forEach(o) : o(t), this;
1310
1310
  }
@@ -1489,10 +1489,10 @@ const Jr = typeof XMLHttpRequest < "u", Wr = Jr && function(e) {
1489
1489
  config: e,
1490
1490
  request: l
1491
1491
  };
1492
- Ur(function(S) {
1493
- n(S), d();
1494
- }, function(S) {
1495
- r(S), d();
1492
+ Ur(function(R) {
1493
+ n(R), d();
1494
+ }, function(R) {
1495
+ r(R), d();
1496
1496
  }, b), l = null;
1497
1497
  }
1498
1498
  if ("onloadend" in l ? l.onloadend = y : l.onreadystatechange = function() {
@@ -1702,8 +1702,8 @@ function $r(e, t, n) {
1702
1702
  const Ce = {
1703
1703
  assertOptions: $r,
1704
1704
  validators: Me
1705
- }, L = Ce.validators;
1706
- class D {
1705
+ }, P = Ce.validators;
1706
+ class I {
1707
1707
  constructor(t) {
1708
1708
  this.defaults = t, this.interceptors = {
1709
1709
  request: new et(),
@@ -1736,14 +1736,14 @@ class D {
1736
1736
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = U(this.defaults, n);
1737
1737
  const { transitional: r, paramsSerializer: s, headers: o } = n;
1738
1738
  r !== void 0 && Ce.assertOptions(r, {
1739
- silentJSONParsing: L.transitional(L.boolean),
1740
- forcedJSONParsing: L.transitional(L.boolean),
1741
- clarifyTimeoutError: L.transitional(L.boolean)
1739
+ silentJSONParsing: P.transitional(P.boolean),
1740
+ forcedJSONParsing: P.transitional(P.boolean),
1741
+ clarifyTimeoutError: P.transitional(P.boolean)
1742
1742
  }, !1), s != null && (c.isFunction(s) ? n.paramsSerializer = {
1743
1743
  serialize: s
1744
1744
  } : Ce.assertOptions(s, {
1745
- encode: L.function,
1746
- serialize: L.function
1745
+ encode: P.function,
1746
+ serialize: P.function
1747
1747
  }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1748
1748
  let i = o && c.merge(
1749
1749
  o.common,
@@ -1798,7 +1798,7 @@ class D {
1798
1798
  }
1799
1799
  }
1800
1800
  c.forEach(["delete", "get", "head", "options"], function(t) {
1801
- D.prototype[t] = function(n, r) {
1801
+ I.prototype[t] = function(n, r) {
1802
1802
  return this.request(U(r || {}, {
1803
1803
  method: t,
1804
1804
  url: n,
@@ -1819,7 +1819,7 @@ c.forEach(["post", "put", "patch"], function(t) {
1819
1819
  }));
1820
1820
  };
1821
1821
  }
1822
- D.prototype[t] = n(), D.prototype[t + "Form"] = n(!0);
1822
+ I.prototype[t] = n(), I.prototype[t + "Form"] = n(!0);
1823
1823
  });
1824
1824
  class He {
1825
1825
  constructor(t) {
@@ -1896,7 +1896,7 @@ function Vr(e) {
1896
1896
  function Gr(e) {
1897
1897
  return c.isObject(e) && e.isAxiosError === !0;
1898
1898
  }
1899
- const Pe = {
1899
+ const Le = {
1900
1900
  Continue: 100,
1901
1901
  SwitchingProtocols: 101,
1902
1902
  Processing: 102,
@@ -1961,17 +1961,17 @@ const Pe = {
1961
1961
  NotExtended: 510,
1962
1962
  NetworkAuthenticationRequired: 511
1963
1963
  };
1964
- Object.entries(Pe).forEach(([e, t]) => {
1965
- Pe[t] = e;
1964
+ Object.entries(Le).forEach(([e, t]) => {
1965
+ Le[t] = e;
1966
1966
  });
1967
1967
  function Gt(e) {
1968
- const t = new D(e), n = Pt(D.prototype.request, t);
1969
- return c.extend(n, D.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1968
+ const t = new I(e), n = Lt(I.prototype.request, t);
1969
+ return c.extend(n, I.prototype, t, { allOwnKeys: !0 }), c.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1970
1970
  return Gt(U(e, s));
1971
1971
  }, n;
1972
1972
  }
1973
1973
  const _ = Gt($);
1974
- _.Axios = D;
1974
+ _.Axios = I;
1975
1975
  _.CanceledError = V;
1976
1976
  _.CancelToken = He;
1977
1977
  _.isCancel = Wt;
@@ -1988,7 +1988,7 @@ _.mergeConfig = U;
1988
1988
  _.AxiosHeaders = T;
1989
1989
  _.formToJSON = (e) => Jt(c.isHTMLForm(e) ? new FormData(e) : e);
1990
1990
  _.getAdapter = $t.getAdapter;
1991
- _.HttpStatusCode = Pe;
1991
+ _.HttpStatusCode = Le;
1992
1992
  _.default = _;
1993
1993
  const Xr = {
1994
1994
  form: "application/x-www-form-urlencoded",
@@ -2208,7 +2208,7 @@ function Cs(e, t) {
2208
2208
  loading: s
2209
2209
  };
2210
2210
  }
2211
- const J = typeof window < "u", Ps = (e) => new Promise((t, n) => {
2211
+ const J = typeof window < "u", Ls = (e) => new Promise((t, n) => {
2212
2212
  const r = new FileReader();
2213
2213
  r.readAsDataURL(e), r.onload = () => {
2214
2214
  t(r.result);
@@ -2216,13 +2216,25 @@ const J = typeof window < "u", Ps = (e) => new Promise((t, n) => {
2216
2216
  n(s);
2217
2217
  };
2218
2218
  });
2219
- function Ls(e) {
2219
+ function Ps(e) {
2220
2220
  const t = {};
2221
2221
  return e ? (e.forEach((n, r) => {
2222
2222
  t[r] = typeof n == "string" ? decodeURIComponent(n) : n;
2223
2223
  }), t) : {};
2224
2224
  }
2225
- const js = (e) => J ? window.requestAnimationFrame(e) : setTimeout(e, 16), vs = (e) => J ? window.cancelAnimationFrame(e) : clearTimeout(e);
2225
+ function js(e) {
2226
+ const t = e.split(","), n = t[0].match(/:(.*?);/)?.[1], r = atob(t[1]);
2227
+ let s = r.length;
2228
+ const o = new Uint8Array(s);
2229
+ for (; s--; )
2230
+ o[s] = r.charCodeAt(s);
2231
+ return new Blob([o], { type: n });
2232
+ }
2233
+ function vs(e, t) {
2234
+ const n = e;
2235
+ return n.lastModified = Date.now(), n.lastModifiedDate = /* @__PURE__ */ new Date(), n.name = t, n;
2236
+ }
2237
+ const Ns = (e) => J ? window.requestAnimationFrame(e) : setTimeout(e, 16), Fs = (e) => J ? window.cancelAnimationFrame(e) : clearTimeout(e);
2226
2238
  class ss {
2227
2239
  options = {
2228
2240
  type: "cache",
@@ -2271,12 +2283,12 @@ class ss {
2271
2283
  r === this.caches ? this.caches = {} : r.clear();
2272
2284
  }
2273
2285
  }
2274
- const Ns = new ss();
2286
+ const Ds = new ss();
2275
2287
  var os = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2276
2288
  function Xt(e) {
2277
2289
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2278
2290
  }
2279
- var Le = { exports: {} };
2291
+ var Pe = { exports: {} };
2280
2292
  (function(e, t) {
2281
2293
  (function(n, r) {
2282
2294
  r(t, e);
@@ -2303,7 +2315,7 @@ var Le = { exports: {} };
2303
2315
  function f(d) {
2304
2316
  var u = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1], l = d, g = u.timeout || s.timeout, y = u.jsonpCallback || s.jsonpCallback, h = void 0;
2305
2317
  return new Promise(function(p, E) {
2306
- var b = u.jsonpCallbackFunction || o(), R = y + "_" + b;
2318
+ var b = u.jsonpCallbackFunction || o(), S = y + "_" + b;
2307
2319
  window[b] = function(pe) {
2308
2320
  p({
2309
2321
  ok: !0,
@@ -2311,22 +2323,22 @@ var Le = { exports: {} };
2311
2323
  json: function() {
2312
2324
  return Promise.resolve(pe);
2313
2325
  }
2314
- }), h && clearTimeout(h), a(R), i(b);
2326
+ }), h && clearTimeout(h), a(S), i(b);
2315
2327
  }, l += l.indexOf("?") === -1 ? "?" : "&";
2316
- var S = document.createElement("script");
2317
- S.setAttribute("src", "" + l + y + "=" + b), u.charset && S.setAttribute("charset", u.charset), u.nonce && S.setAttribute("nonce", u.nonce), u.referrerPolicy && S.setAttribute("referrerPolicy", u.referrerPolicy), u.crossorigin && S.setAttribute("crossorigin", "true"), S.id = R, document.getElementsByTagName("head")[0].appendChild(S), h = setTimeout(function() {
2318
- E(new Error("JSONP request to " + d + " timed out")), i(b), a(R), window[b] = function() {
2328
+ var R = document.createElement("script");
2329
+ R.setAttribute("src", "" + l + y + "=" + b), u.charset && R.setAttribute("charset", u.charset), u.nonce && R.setAttribute("nonce", u.nonce), u.referrerPolicy && R.setAttribute("referrerPolicy", u.referrerPolicy), u.crossorigin && R.setAttribute("crossorigin", "true"), R.id = S, document.getElementsByTagName("head")[0].appendChild(R), h = setTimeout(function() {
2330
+ E(new Error("JSONP request to " + d + " timed out")), i(b), a(S), window[b] = function() {
2319
2331
  i(b);
2320
2332
  };
2321
- }, g), S.onerror = function() {
2322
- E(new Error("JSONP request to " + d + " failed")), i(b), a(R), h && clearTimeout(h);
2333
+ }, g), R.onerror = function() {
2334
+ E(new Error("JSONP request to " + d + " failed")), i(b), a(S), h && clearTimeout(h);
2323
2335
  };
2324
2336
  });
2325
2337
  }
2326
2338
  r.exports = f;
2327
2339
  });
2328
- })(Le, Le.exports);
2329
- var is = Le.exports;
2340
+ })(Pe, Pe.exports);
2341
+ var is = Pe.exports;
2330
2342
  const as = /* @__PURE__ */ Xt(is);
2331
2343
  function cs(e) {
2332
2344
  if (J) {
@@ -2362,7 +2374,7 @@ function Qt(e, t) {
2362
2374
  const n = e.split("?")[0], r = je(e), s = Object.assign({}, r, t), o = Yt(s);
2363
2375
  return o ? [n, o].join("?") : e;
2364
2376
  }
2365
- const Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2377
+ const Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2366
2378
  __proto__: null,
2367
2379
  append: Qt,
2368
2380
  getCurrentHost: cs,
@@ -2370,7 +2382,7 @@ const Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2370
2382
  parse: je,
2371
2383
  stringify: Yt
2372
2384
  }, Symbol.toStringTag, { value: "Module" }));
2373
- async function Is(e, t = {}) {
2385
+ async function Us(e, t = {}) {
2374
2386
  const { query: n = {} } = t;
2375
2387
  e.includes("${") && (e = ut(e)(n || {}));
2376
2388
  const r = Qt(e, n);
@@ -2400,7 +2412,7 @@ function ds(e, t) {
2400
2412
  };
2401
2413
  }
2402
2414
  const hs = /* @__PURE__ */ Xt(us);
2403
- function Ds(e, t = {}) {
2415
+ function Bs(e, t = {}) {
2404
2416
  return new Promise((n, r) => {
2405
2417
  const { library: s } = t;
2406
2418
  hs(e, t, (o, i) => {
@@ -2473,7 +2485,7 @@ class ys {
2473
2485
  function bs(e) {
2474
2486
  return new ys(e);
2475
2487
  }
2476
- const Us = bs({ level: "log", bizName: "VTJ" });
2488
+ const ks = bs({ level: "log", bizName: "VTJ" });
2477
2489
  /*! js-cookie v3.0.5 | MIT */
2478
2490
  function ee(e) {
2479
2491
  for (var t = 1; t < arguments.length; t++) {
@@ -2548,19 +2560,19 @@ var qe = ve(_s, { path: "/" });
2548
2560
  function Es(e, t, n) {
2549
2561
  qe.set(e, t, n);
2550
2562
  }
2551
- function Ss(e) {
2563
+ function Rs(e) {
2552
2564
  return qe.get(e);
2553
2565
  }
2554
- function Rs(e, t) {
2566
+ function Ss(e, t) {
2555
2567
  qe.remove(e, t);
2556
2568
  }
2557
- const Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2569
+ const Ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2558
2570
  __proto__: null,
2559
- get: Ss,
2560
- remove: Rs,
2571
+ get: Rs,
2572
+ remove: Ss,
2561
2573
  set: Es
2562
2574
  }, Symbol.toStringTag, { value: "Module" }));
2563
- function ks(e, t = "") {
2575
+ function Hs(e, t = "") {
2564
2576
  const n = document.createElement("a");
2565
2577
  n.download = t, n.href = e, n.target = "_blank", n.click();
2566
2578
  }
@@ -2568,13 +2580,13 @@ function Zt(e, t = "", n) {
2568
2580
  const r = new Blob([e], { type: n }), s = document.createElement("a");
2569
2581
  s.download = t, s.style.display = "none", s.href = URL.createObjectURL(r), s.click(), URL.revokeObjectURL(s.href);
2570
2582
  }
2571
- async function Ms(e, t = "", n) {
2583
+ async function qs(e, t = "", n) {
2572
2584
  return fetch(e, { credentials: "include" }).then(async (r) => {
2573
2585
  const s = await r.blob();
2574
2586
  return Zt(s, t, n), s;
2575
2587
  });
2576
2588
  }
2577
- function Hs(e, t = "") {
2589
+ function zs(e, t = "") {
2578
2590
  const n = JSON.stringify(e);
2579
2591
  Zt(n, t, "application/json");
2580
2592
  }
@@ -2585,25 +2597,27 @@ export {
2585
2597
  ss as Storage,
2586
2598
  As as VTJ_UTILS_VERSION,
2587
2599
  _ as axios,
2588
- vs as cAF,
2589
- Bs as cookie,
2600
+ vs as blobToFile,
2601
+ Fs as cAF,
2602
+ Ms as cookie,
2590
2603
  rs as createApi,
2591
2604
  xs as createApis,
2592
2605
  ts as createRequest,
2606
+ js as dataURLtoBlob,
2593
2607
  Zt as downloadBlob,
2594
- Hs as downloadJson,
2595
- Ms as downloadRemoteFile,
2596
- ks as downloadUrl,
2597
- Ps as fileToBase64,
2598
- Ls as formDataToJson,
2608
+ zs as downloadJson,
2609
+ qs as downloadRemoteFile,
2610
+ Hs as downloadUrl,
2611
+ Ls as fileToBase64,
2612
+ Ps as formDataToJson,
2599
2613
  bs as getLogger,
2600
2614
  J as isClient,
2601
- Is as jsonp,
2602
- Ds as loadScript,
2603
- Us as logger,
2604
- js as rAF,
2615
+ Us as jsonp,
2616
+ Bs as loadScript,
2617
+ ks as logger,
2618
+ Ns as rAF,
2605
2619
  ns as request,
2606
- Ns as storage,
2607
- Fs as url,
2620
+ Ds as storage,
2621
+ Is as url,
2608
2622
  Cs as useApi
2609
2623
  };