little-wheels 1.2.13 → 1.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.es.js +452 -427
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -47,8 +47,8 @@ function fn(r) {
47
47
  t.prototype = e.prototype;
48
48
  } else t = {};
49
49
  return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(a) {
50
- var s = Object.getOwnPropertyDescriptor(r, a);
51
- Object.defineProperty(t, a, s.get ? s : {
50
+ var c = Object.getOwnPropertyDescriptor(r, a);
51
+ Object.defineProperty(t, a, c.get ? c : {
52
52
  enumerable: !0,
53
53
  get: function() {
54
54
  return r[a];
@@ -56,19 +56,19 @@ function fn(r) {
56
56
  });
57
57
  }), t;
58
58
  }
59
- var Le, Vr;
59
+ var ze, Vr;
60
60
  function Pe() {
61
- return Vr || (Vr = 1, Le = TypeError), Le;
61
+ return Vr || (Vr = 1, ze = TypeError), ze;
62
62
  }
63
63
  const ln = {}, cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
64
64
  __proto__: null,
65
65
  default: ln
66
66
  }, Symbol.toStringTag, { value: "Module" })), sn = /* @__PURE__ */ fn(cn);
67
- var He, Jr;
68
- function xe() {
69
- if (Jr) return He;
67
+ var je, Jr;
68
+ function qe() {
69
+ if (Jr) return je;
70
70
  Jr = 1;
71
- var r = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && r ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = r && e && typeof e.get == "function" ? e.get : null, a = r && Map.prototype.forEach, s = typeof Set == "function" && Set.prototype, y = Object.getOwnPropertyDescriptor && s ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, P = s && y && typeof y.get == "function" ? y.get : null, h = s && Set.prototype.forEach, E = typeof WeakMap == "function" && WeakMap.prototype, m = E ? WeakMap.prototype.has : null, d = typeof WeakSet == "function" && WeakSet.prototype, v = d ? WeakSet.prototype.has : null, S = typeof WeakRef == "function" && WeakRef.prototype, l = S ? WeakRef.prototype.deref : null, c = Boolean.prototype.valueOf, b = Object.prototype.toString, i = Function.prototype.toString, u = String.prototype.match, f = String.prototype.slice, g = String.prototype.replace, p = String.prototype.toUpperCase, w = String.prototype.toLowerCase, A = RegExp.prototype.test, O = Array.prototype.concat, R = Array.prototype.join, q = Array.prototype.slice, T = Math.floor, D = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, I = Object.getOwnPropertySymbols, H = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, B = typeof Symbol == "function" && typeof Symbol.iterator == "object", Q = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === B || !0) ? Symbol.toStringTag : null, te = Object.prototype.propertyIsEnumerable, ne = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(n) {
71
+ var r = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && r ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = r && e && typeof e.get == "function" ? e.get : null, a = r && Map.prototype.forEach, c = typeof Set == "function" && Set.prototype, p = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, P = c && p && typeof p.get == "function" ? p.get : null, h = c && Set.prototype.forEach, E = typeof WeakMap == "function" && WeakMap.prototype, m = E ? WeakMap.prototype.has : null, d = typeof WeakSet == "function" && WeakSet.prototype, v = d ? WeakSet.prototype.has : null, S = typeof WeakRef == "function" && WeakRef.prototype, l = S ? WeakRef.prototype.deref : null, s = Boolean.prototype.valueOf, b = Object.prototype.toString, i = Function.prototype.toString, u = String.prototype.match, f = String.prototype.slice, g = String.prototype.replace, y = String.prototype.toUpperCase, w = String.prototype.toLowerCase, A = RegExp.prototype.test, O = Array.prototype.concat, R = Array.prototype.join, q = Array.prototype.slice, T = Math.floor, D = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, I = Object.getOwnPropertySymbols, z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, B = typeof Symbol == "function" && typeof Symbol.iterator == "object", Q = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === B || !0) ? Symbol.toStringTag : null, te = Object.prototype.propertyIsEnumerable, ne = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(n) {
72
72
  return n.__proto__;
73
73
  } : null);
74
74
  function k(n, o) {
@@ -93,7 +93,7 @@ function xe() {
93
93
  double: /(["\\])/g,
94
94
  single: /(['\\])/g
95
95
  };
96
- He = function n(o, x, C, M) {
96
+ je = function n(o, x, C, M) {
97
97
  var _ = x || {};
98
98
  if (K(_, "quoteStyle") && !K(ue, _.quoteStyle))
99
99
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
@@ -125,8 +125,8 @@ function xe() {
125
125
  var de = String(o) + "n";
126
126
  return ge ? k(o, de) : de;
127
127
  }
128
- var Ce = typeof _.depth > "u" ? 5 : _.depth;
129
- if (typeof C > "u" && (C = 0), C >= Ce && Ce > 0 && typeof o == "object")
128
+ var Me = typeof _.depth > "u" ? 5 : _.depth;
129
+ if (typeof C > "u" && (C = 0), C >= Me && Me > 0 && typeof o == "object")
130
130
  return ce(o) ? "[Array]" : "[Object]";
131
131
  var Oe = en(_, C);
132
132
  if (typeof M > "u")
@@ -147,27 +147,27 @@ function xe() {
147
147
  return "[Function" + (Br ? ": " + Br : " (anonymous)") + "]" + (Gr.length > 0 ? " { " + R.call(Gr, ", ") + " }" : "");
148
148
  }
149
149
  if (j(o)) {
150
- var Wr = B ? g.call(String(o), /^(Symbol\(.*\))_[^)]*$/, "$1") : H.call(o);
150
+ var Wr = B ? g.call(String(o), /^(Symbol\(.*\))_[^)]*$/, "$1") : z.call(o);
151
151
  return typeof o == "object" && !B ? Ie(Wr) : Wr;
152
152
  }
153
153
  if (Yt(o)) {
154
- for (var Re = "<" + w.call(String(o.nodeName)), Me = o.attributes || [], ke = 0; ke < Me.length; ke++)
155
- Re += " " + Me[ke].name + "=" + le(ae(Me[ke].value), "double", _);
154
+ for (var Re = "<" + w.call(String(o.nodeName)), Ne = o.attributes || [], ke = 0; ke < Ne.length; ke++)
155
+ Re += " " + Ne[ke].name + "=" + le(ae(Ne[ke].value), "double", _);
156
156
  return Re += ">", o.childNodes && o.childNodes.length && (Re += "..."), Re += "</" + w.call(String(o.nodeName)) + ">", Re;
157
157
  }
158
158
  if (ce(o)) {
159
159
  if (o.length === 0)
160
160
  return "[]";
161
- var Ne = _e(o, re);
162
- return Oe && !Zt(Ne) ? "[" + Fe(Ne, Oe) + "]" : "[ " + R.call(Ne, ", ") + " ]";
161
+ var Ue = _e(o, re);
162
+ return Oe && !Zt(Ue) ? "[" + Ce(Ue, Oe) + "]" : "[ " + R.call(Ue, ", ") + " ]";
163
163
  }
164
164
  if ($(o)) {
165
- var Ue = _e(o, re);
166
- return !("cause" in Error.prototype) && "cause" in o && !te.call(o, "cause") ? "{ [" + String(o) + "] " + R.call(O.call("[cause]: " + re(o.cause), Ue), ", ") + " }" : Ue.length === 0 ? "[" + String(o) + "]" : "{ [" + String(o) + "] " + R.call(Ue, ", ") + " }";
165
+ var Be = _e(o, re);
166
+ return !("cause" in Error.prototype) && "cause" in o && !te.call(o, "cause") ? "{ [" + String(o) + "] " + R.call(O.call("[cause]: " + re(o.cause), Be), ", ") + " }" : Be.length === 0 ? "[" + String(o) + "]" : "{ [" + String(o) + "] " + R.call(Be, ", ") + " }";
167
167
  }
168
168
  if (typeof o == "object" && ye) {
169
169
  if (ve && typeof o[ve] == "function" && V)
170
- return V(o, { depth: Ce - C });
170
+ return V(o, { depth: Me - C });
171
171
  if (ye !== "symbol" && typeof o.inspect == "function")
172
172
  return o.inspect();
173
173
  }
@@ -178,23 +178,23 @@ function xe() {
178
178
  }), Ur("Map", t.call(o), Lr, Oe);
179
179
  }
180
180
  if (Ae(o)) {
181
- var Hr = [];
181
+ var zr = [];
182
182
  return h && h.call(o, function(Ee) {
183
- Hr.push(re(Ee, o));
184
- }), Ur("Set", P.call(o), Hr, Oe);
183
+ zr.push(re(Ee, o));
184
+ }), Ur("Set", P.call(o), zr, Oe);
185
185
  }
186
186
  if (we(o))
187
- return De("WeakMap");
187
+ return Fe("WeakMap");
188
188
  if (Jt(o))
189
- return De("WeakSet");
189
+ return Fe("WeakSet");
190
190
  if (be(o))
191
- return De("WeakRef");
191
+ return Fe("WeakRef");
192
192
  if (F(o))
193
193
  return Ie(re(Number(o)));
194
194
  if (X(o))
195
195
  return Ie(re(D.call(o)));
196
196
  if (W(o))
197
- return Ie(c.call(o));
197
+ return Ie(s.call(o));
198
198
  if (N(o))
199
199
  return Ie(re(String(o)));
200
200
  if (typeof window < "u" && o === window)
@@ -202,8 +202,8 @@ function xe() {
202
202
  if (typeof globalThis < "u" && o === globalThis || typeof Qr < "u" && o === Qr)
203
203
  return "{ [object globalThis] }";
204
204
  if (!se(o) && !L(o)) {
205
- var Be = _e(o, re), jr = ne ? ne(o) === Object.prototype : o instanceof Object || o.constructor === Object, Ge = o instanceof Object ? "" : "null prototype", zr = !jr && Q && Object(o) === o && Q in o ? f.call(Z(o), 8, -1) : Ge ? "Object" : "", rn = jr || typeof o.constructor != "function" ? "" : o.constructor.name ? o.constructor.name + " " : "", We = rn + (zr || Ge ? "[" + R.call(O.call([], zr || [], Ge || []), ": ") + "] " : "");
206
- return Be.length === 0 ? We + "{}" : Oe ? We + "{" + Fe(Be, Oe) + "}" : We + "{ " + R.call(Be, ", ") + " }";
205
+ var Ge = _e(o, re), jr = ne ? ne(o) === Object.prototype : o instanceof Object || o.constructor === Object, We = o instanceof Object ? "" : "null prototype", Hr = !jr && Q && Object(o) === o && Q in o ? f.call(Z(o), 8, -1) : We ? "Object" : "", rn = jr || typeof o.constructor != "function" ? "" : o.constructor.name ? o.constructor.name + " " : "", Le = rn + (Hr || We ? "[" + R.call(O.call([], Hr || [], We || []), ": ") + "] " : "");
206
+ return Ge.length === 0 ? Le + "{}" : Oe ? Le + "{" + Ce(Ge, Oe) + "}" : Le + "{ " + R.call(Ge, ", ") + " }";
207
207
  }
208
208
  return String(o);
209
209
  };
@@ -243,10 +243,10 @@ function xe() {
243
243
  return n && typeof n == "object" && n instanceof Symbol;
244
244
  if (typeof n == "symbol")
245
245
  return !0;
246
- if (!n || typeof n != "object" || !H)
246
+ if (!n || typeof n != "object" || !z)
247
247
  return !1;
248
248
  try {
249
- return H.call(n), !0;
249
+ return z.call(n), !0;
250
250
  } catch {
251
251
  }
252
252
  return !1;
@@ -260,11 +260,11 @@ function xe() {
260
260
  }
261
261
  return !1;
262
262
  }
263
- var z = Object.prototype.hasOwnProperty || function(n) {
263
+ var H = Object.prototype.hasOwnProperty || function(n) {
264
264
  return n in this;
265
265
  };
266
266
  function K(n, o) {
267
- return z.call(n, o);
267
+ return H.call(n, o);
268
268
  }
269
269
  function Z(n) {
270
270
  return b.call(n);
@@ -373,16 +373,16 @@ function xe() {
373
373
  12: "f",
374
374
  13: "r"
375
375
  }[o];
376
- return x ? "\\" + x : "\\x" + (o < 16 ? "0" : "") + p.call(o.toString(16));
376
+ return x ? "\\" + x : "\\x" + (o < 16 ? "0" : "") + y.call(o.toString(16));
377
377
  }
378
378
  function Ie(n) {
379
379
  return "Object(" + n + ")";
380
380
  }
381
- function De(n) {
381
+ function Fe(n) {
382
382
  return n + " { ? }";
383
383
  }
384
384
  function Ur(n, o, x, C) {
385
- var M = C ? Fe(x, C) : R.call(x, ", ");
385
+ var M = C ? Ce(x, C) : R.call(x, ", ");
386
386
  return n + " (" + o + ") {" + M + "}";
387
387
  }
388
388
  function Zt(n) {
@@ -405,7 +405,7 @@ function xe() {
405
405
  prev: R.call(Array(o + 1), x)
406
406
  };
407
407
  }
408
- function Fe(n, o) {
408
+ function Ce(n, o) {
409
409
  if (n.length === 0)
410
410
  return "";
411
411
  var x = `
@@ -433,13 +433,13 @@ function xe() {
433
433
  te.call(n, _[de]) && C.push("[" + o(_[de]) + "]: " + o(n[_[de]], n));
434
434
  return C;
435
435
  }
436
- return He;
436
+ return je;
437
437
  }
438
- var je, Yr;
438
+ var He, Yr;
439
439
  function pn() {
440
- if (Yr) return je;
440
+ if (Yr) return He;
441
441
  Yr = 1;
442
- var r = /* @__PURE__ */ xe(), e = /* @__PURE__ */ Pe(), t = function(h, E, m) {
442
+ var r = /* @__PURE__ */ qe(), e = /* @__PURE__ */ Pe(), t = function(h, E, m) {
443
443
  for (var d = h, v; (v = d.next) != null; d = v)
444
444
  if (v.key === E)
445
445
  return d.next = v.next, m || (v.next = /** @type {NonNullable<typeof list.next>} */
@@ -449,7 +449,7 @@ function pn() {
449
449
  var m = t(h, E);
450
450
  return m && m.value;
451
451
  }
452
- }, s = function(h, E, m) {
452
+ }, c = function(h, E, m) {
453
453
  var d = t(h, E);
454
454
  d ? d.value = m : h.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
455
455
  {
@@ -458,13 +458,13 @@ function pn() {
458
458
  next: h.next,
459
459
  value: m
460
460
  };
461
- }, y = function(h, E) {
461
+ }, p = function(h, E) {
462
462
  return h ? !!t(h, E) : !1;
463
463
  }, P = function(h, E) {
464
464
  if (h)
465
465
  return t(h, E, !0);
466
466
  };
467
- return je = function() {
467
+ return He = function() {
468
468
  var E, m = {
469
469
  assert: function(d) {
470
470
  if (!m.has(d))
@@ -478,12 +478,12 @@ function pn() {
478
478
  return a(E, d);
479
479
  },
480
480
  has: function(d) {
481
- return y(E, d);
481
+ return p(E, d);
482
482
  },
483
483
  set: function(d, v) {
484
484
  E || (E = {
485
485
  next: void 0
486
- }), s(
486
+ }), c(
487
487
  /** @type {NonNullable<typeof $o>} */
488
488
  E,
489
489
  d,
@@ -492,82 +492,82 @@ function pn() {
492
492
  }
493
493
  };
494
494
  return m;
495
- }, je;
495
+ }, He;
496
496
  }
497
- var ze, Xr;
497
+ var Ke, Xr;
498
498
  function Gt() {
499
- return Xr || (Xr = 1, ze = Object), ze;
499
+ return Xr || (Xr = 1, Ke = Object), Ke;
500
500
  }
501
- var Ke, Zr;
501
+ var Qe, Zr;
502
502
  function yn() {
503
- return Zr || (Zr = 1, Ke = Error), Ke;
503
+ return Zr || (Zr = 1, Qe = Error), Qe;
504
504
  }
505
- var Qe, et;
505
+ var Ve, et;
506
506
  function dn() {
507
- return et || (et = 1, Qe = EvalError), Qe;
507
+ return et || (et = 1, Ve = EvalError), Ve;
508
508
  }
509
- var Ve, rt;
509
+ var Je, rt;
510
510
  function hn() {
511
- return rt || (rt = 1, Ve = RangeError), Ve;
511
+ return rt || (rt = 1, Je = RangeError), Je;
512
512
  }
513
- var Je, tt;
513
+ var Ye, tt;
514
514
  function vn() {
515
- return tt || (tt = 1, Je = ReferenceError), Je;
515
+ return tt || (tt = 1, Ye = ReferenceError), Ye;
516
516
  }
517
- var Ye, nt;
517
+ var Xe, nt;
518
518
  function gn() {
519
- return nt || (nt = 1, Ye = SyntaxError), Ye;
519
+ return nt || (nt = 1, Xe = SyntaxError), Xe;
520
520
  }
521
- var Xe, ot;
521
+ var Ze, ot;
522
522
  function mn() {
523
- return ot || (ot = 1, Xe = URIError), Xe;
523
+ return ot || (ot = 1, Ze = URIError), Ze;
524
524
  }
525
- var Ze, at;
525
+ var er, at;
526
526
  function Sn() {
527
- return at || (at = 1, Ze = Math.abs), Ze;
527
+ return at || (at = 1, er = Math.abs), er;
528
528
  }
529
- var er, it;
529
+ var rr, it;
530
530
  function wn() {
531
- return it || (it = 1, er = Math.floor), er;
531
+ return it || (it = 1, rr = Math.floor), rr;
532
532
  }
533
- var rr, ut;
533
+ var tr, ut;
534
534
  function bn() {
535
- return ut || (ut = 1, rr = Math.max), rr;
535
+ return ut || (ut = 1, tr = Math.max), tr;
536
536
  }
537
- var tr, ft;
537
+ var nr, ft;
538
538
  function An() {
539
- return ft || (ft = 1, tr = Math.min), tr;
539
+ return ft || (ft = 1, nr = Math.min), nr;
540
540
  }
541
- var nr, lt;
541
+ var or, lt;
542
542
  function On() {
543
- return lt || (lt = 1, nr = Math.pow), nr;
543
+ return lt || (lt = 1, or = Math.pow), or;
544
544
  }
545
- var or, ct;
545
+ var ar, ct;
546
546
  function En() {
547
- return ct || (ct = 1, or = Math.round), or;
547
+ return ct || (ct = 1, ar = Math.round), ar;
548
548
  }
549
- var ar, st;
549
+ var ir, st;
550
550
  function Pn() {
551
- return st || (st = 1, ar = Number.isNaN || function(e) {
551
+ return st || (st = 1, ir = Number.isNaN || function(e) {
552
552
  return e !== e;
553
- }), ar;
553
+ }), ir;
554
554
  }
555
- var ir, pt;
555
+ var ur, pt;
556
556
  function In() {
557
- if (pt) return ir;
557
+ if (pt) return ur;
558
558
  pt = 1;
559
559
  var r = /* @__PURE__ */ Pn();
560
- return ir = function(t) {
560
+ return ur = function(t) {
561
561
  return r(t) || t === 0 ? t : t < 0 ? -1 : 1;
562
- }, ir;
562
+ }, ur;
563
563
  }
564
- var ur, yt;
564
+ var fr, yt;
565
565
  function Rn() {
566
- return yt || (yt = 1, ur = Object.getOwnPropertyDescriptor), ur;
566
+ return yt || (yt = 1, fr = Object.getOwnPropertyDescriptor), fr;
567
567
  }
568
- var fr, dt;
568
+ var lr, dt;
569
569
  function Wt() {
570
- if (dt) return fr;
570
+ if (dt) return lr;
571
571
  dt = 1;
572
572
  var r = /* @__PURE__ */ Rn();
573
573
  if (r)
@@ -576,11 +576,11 @@ function Wt() {
576
576
  } catch {
577
577
  r = null;
578
578
  }
579
- return fr = r, fr;
579
+ return lr = r, lr;
580
580
  }
581
- var lr, ht;
581
+ var cr, ht;
582
582
  function Tn() {
583
- if (ht) return lr;
583
+ if (ht) return cr;
584
584
  ht = 1;
585
585
  var r = Object.defineProperty || !1;
586
586
  if (r)
@@ -589,11 +589,11 @@ function Tn() {
589
589
  } catch {
590
590
  r = !1;
591
591
  }
592
- return lr = r, lr;
592
+ return cr = r, cr;
593
593
  }
594
- var cr, vt;
594
+ var sr, vt;
595
595
  function _n() {
596
- return vt || (vt = 1, cr = function() {
596
+ return vt || (vt = 1, sr = function() {
597
597
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
598
598
  return !1;
599
599
  if (typeof Symbol.iterator == "symbol")
@@ -601,9 +601,9 @@ function _n() {
601
601
  var e = {}, t = Symbol("test"), a = Object(t);
602
602
  if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(a) !== "[object Symbol]")
603
603
  return !1;
604
- var s = 42;
605
- e[t] = s;
606
- for (var y in e)
604
+ var c = 42;
605
+ e[t] = c;
606
+ for (var p in e)
607
607
  return !1;
608
608
  if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
609
609
  return !1;
@@ -615,43 +615,43 @@ function _n() {
615
615
  /** @type {PropertyDescriptor} */
616
616
  Object.getOwnPropertyDescriptor(e, t)
617
617
  );
618
- if (h.value !== s || h.enumerable !== !0)
618
+ if (h.value !== c || h.enumerable !== !0)
619
619
  return !1;
620
620
  }
621
621
  return !0;
622
- }), cr;
622
+ }), sr;
623
623
  }
624
- var sr, gt;
624
+ var pr, gt;
625
625
  function kn() {
626
- if (gt) return sr;
626
+ if (gt) return pr;
627
627
  gt = 1;
628
628
  var r = typeof Symbol < "u" && Symbol, e = _n();
629
- return sr = function() {
629
+ return pr = function() {
630
630
  return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
631
- }, sr;
631
+ }, pr;
632
632
  }
633
- var pr, mt;
633
+ var yr, mt;
634
634
  function Lt() {
635
- return mt || (mt = 1, pr = typeof Reflect < "u" && Reflect.getPrototypeOf || null), pr;
635
+ return mt || (mt = 1, yr = typeof Reflect < "u" && Reflect.getPrototypeOf || null), yr;
636
636
  }
637
- var yr, St;
638
- function Ht() {
639
- if (St) return yr;
637
+ var dr, St;
638
+ function zt() {
639
+ if (St) return dr;
640
640
  St = 1;
641
641
  var r = /* @__PURE__ */ Gt();
642
- return yr = r.getPrototypeOf || null, yr;
642
+ return dr = r.getPrototypeOf || null, dr;
643
643
  }
644
- var dr, wt;
644
+ var hr, wt;
645
645
  function $n() {
646
- if (wt) return dr;
646
+ if (wt) return hr;
647
647
  wt = 1;
648
- var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, a = "[object Function]", s = function(E, m) {
648
+ var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, a = "[object Function]", c = function(E, m) {
649
649
  for (var d = [], v = 0; v < E.length; v += 1)
650
650
  d[v] = E[v];
651
651
  for (var S = 0; S < m.length; S += 1)
652
652
  d[S + E.length] = m[S];
653
653
  return d;
654
- }, y = function(E, m) {
654
+ }, p = function(E, m) {
655
655
  for (var d = [], v = m, S = 0; v < E.length; v += 1, S += 1)
656
656
  d[S] = E[v];
657
657
  return d;
@@ -660,74 +660,74 @@ function $n() {
660
660
  m += h[d], d + 1 < h.length && (m += E);
661
661
  return m;
662
662
  };
663
- return dr = function(E) {
663
+ return hr = function(E) {
664
664
  var m = this;
665
665
  if (typeof m != "function" || e.apply(m) !== a)
666
666
  throw new TypeError(r + m);
667
- for (var d = y(arguments, 1), v, S = function() {
667
+ for (var d = p(arguments, 1), v, S = function() {
668
668
  if (this instanceof v) {
669
669
  var u = m.apply(
670
670
  this,
671
- s(d, arguments)
671
+ c(d, arguments)
672
672
  );
673
673
  return Object(u) === u ? u : this;
674
674
  }
675
675
  return m.apply(
676
676
  E,
677
- s(d, arguments)
677
+ c(d, arguments)
678
678
  );
679
- }, l = t(0, m.length - d.length), c = [], b = 0; b < l; b++)
680
- c[b] = "$" + b;
681
- if (v = Function("binder", "return function (" + P(c, ",") + "){ return binder.apply(this,arguments); }")(S), m.prototype) {
679
+ }, l = t(0, m.length - d.length), s = [], b = 0; b < l; b++)
680
+ s[b] = "$" + b;
681
+ if (v = Function("binder", "return function (" + P(s, ",") + "){ return binder.apply(this,arguments); }")(S), m.prototype) {
682
682
  var i = function() {
683
683
  };
684
684
  i.prototype = m.prototype, v.prototype = new i(), i.prototype = null;
685
685
  }
686
686
  return v;
687
- }, dr;
687
+ }, hr;
688
688
  }
689
- var hr, bt;
690
- function qe() {
691
- if (bt) return hr;
689
+ var vr, bt;
690
+ function De() {
691
+ if (bt) return vr;
692
692
  bt = 1;
693
693
  var r = $n();
694
- return hr = Function.prototype.bind || r, hr;
694
+ return vr = Function.prototype.bind || r, vr;
695
695
  }
696
- var vr, At;
696
+ var gr, At;
697
697
  function Fr() {
698
- return At || (At = 1, vr = Function.prototype.call), vr;
698
+ return At || (At = 1, gr = Function.prototype.call), gr;
699
699
  }
700
- var gr, Ot;
700
+ var mr, Ot;
701
701
  function jt() {
702
- return Ot || (Ot = 1, gr = Function.prototype.apply), gr;
702
+ return Ot || (Ot = 1, mr = Function.prototype.apply), mr;
703
703
  }
704
- var mr, Et;
704
+ var Sr, Et;
705
705
  function xn() {
706
- return Et || (Et = 1, mr = typeof Reflect < "u" && Reflect && Reflect.apply), mr;
706
+ return Et || (Et = 1, Sr = typeof Reflect < "u" && Reflect && Reflect.apply), Sr;
707
707
  }
708
- var Sr, Pt;
708
+ var wr, Pt;
709
709
  function qn() {
710
- if (Pt) return Sr;
710
+ if (Pt) return wr;
711
711
  Pt = 1;
712
- var r = qe(), e = jt(), t = Fr(), a = xn();
713
- return Sr = a || r.call(t, e), Sr;
712
+ var r = De(), e = jt(), t = Fr(), a = xn();
713
+ return wr = a || r.call(t, e), wr;
714
714
  }
715
- var wr, It;
716
- function zt() {
717
- if (It) return wr;
715
+ var br, It;
716
+ function Ht() {
717
+ if (It) return br;
718
718
  It = 1;
719
- var r = qe(), e = /* @__PURE__ */ Pe(), t = Fr(), a = qn();
720
- return wr = function(y) {
721
- if (y.length < 1 || typeof y[0] != "function")
719
+ var r = De(), e = /* @__PURE__ */ Pe(), t = Fr(), a = qn();
720
+ return br = function(p) {
721
+ if (p.length < 1 || typeof p[0] != "function")
722
722
  throw new e("a function is required");
723
- return a(r, t, y);
724
- }, wr;
723
+ return a(r, t, p);
724
+ }, br;
725
725
  }
726
- var br, Rt;
726
+ var Ar, Rt;
727
727
  function Dn() {
728
- if (Rt) return br;
728
+ if (Rt) return Ar;
729
729
  Rt = 1;
730
- var r = zt(), e = /* @__PURE__ */ Wt(), t;
730
+ var r = Ht(), e = /* @__PURE__ */ Wt(), t;
731
731
  try {
732
732
  t = /** @type {{ __proto__?: typeof Array.prototype }} */
733
733
  [].__proto__ === Array.prototype;
@@ -739,58 +739,58 @@ function Dn() {
739
739
  Object.prototype,
740
740
  /** @type {keyof typeof Object.prototype} */
741
741
  "__proto__"
742
- ), s = Object, y = s.getPrototypeOf;
743
- return br = a && typeof a.get == "function" ? r([a.get]) : typeof y == "function" ? (
742
+ ), c = Object, p = c.getPrototypeOf;
743
+ return Ar = a && typeof a.get == "function" ? r([a.get]) : typeof p == "function" ? (
744
744
  /** @type {import('./get')} */
745
745
  function(h) {
746
- return y(h == null ? h : s(h));
746
+ return p(h == null ? h : c(h));
747
747
  }
748
- ) : !1, br;
748
+ ) : !1, Ar;
749
749
  }
750
- var Ar, Tt;
750
+ var Or, Tt;
751
751
  function Fn() {
752
- if (Tt) return Ar;
752
+ if (Tt) return Or;
753
753
  Tt = 1;
754
- var r = Lt(), e = Ht(), t = /* @__PURE__ */ Dn();
755
- return Ar = r ? function(s) {
756
- return r(s);
757
- } : e ? function(s) {
758
- if (!s || typeof s != "object" && typeof s != "function")
754
+ var r = Lt(), e = zt(), t = /* @__PURE__ */ Dn();
755
+ return Or = r ? function(c) {
756
+ return r(c);
757
+ } : e ? function(c) {
758
+ if (!c || typeof c != "object" && typeof c != "function")
759
759
  throw new TypeError("getProto: not an object");
760
- return e(s);
761
- } : t ? function(s) {
762
- return t(s);
763
- } : null, Ar;
760
+ return e(c);
761
+ } : t ? function(c) {
762
+ return t(c);
763
+ } : null, Or;
764
764
  }
765
- var Or, _t;
765
+ var Er, _t;
766
766
  function Cn() {
767
- if (_t) return Or;
767
+ if (_t) return Er;
768
768
  _t = 1;
769
- var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = qe();
770
- return Or = t.call(r, e), Or;
769
+ var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = De();
770
+ return Er = t.call(r, e), Er;
771
771
  }
772
- var Er, kt;
772
+ var Pr, kt;
773
773
  function Cr() {
774
- if (kt) return Er;
774
+ if (kt) return Pr;
775
775
  kt = 1;
776
- var r, e = /* @__PURE__ */ Gt(), t = /* @__PURE__ */ yn(), a = /* @__PURE__ */ dn(), s = /* @__PURE__ */ hn(), y = /* @__PURE__ */ vn(), P = /* @__PURE__ */ gn(), h = /* @__PURE__ */ Pe(), E = /* @__PURE__ */ mn(), m = /* @__PURE__ */ Sn(), d = /* @__PURE__ */ wn(), v = /* @__PURE__ */ bn(), S = /* @__PURE__ */ An(), l = /* @__PURE__ */ On(), c = /* @__PURE__ */ En(), b = /* @__PURE__ */ In(), i = Function, u = function(L) {
776
+ var r, e = /* @__PURE__ */ Gt(), t = /* @__PURE__ */ yn(), a = /* @__PURE__ */ dn(), c = /* @__PURE__ */ hn(), p = /* @__PURE__ */ vn(), P = /* @__PURE__ */ gn(), h = /* @__PURE__ */ Pe(), E = /* @__PURE__ */ mn(), m = /* @__PURE__ */ Sn(), d = /* @__PURE__ */ wn(), v = /* @__PURE__ */ bn(), S = /* @__PURE__ */ An(), l = /* @__PURE__ */ On(), s = /* @__PURE__ */ En(), b = /* @__PURE__ */ In(), i = Function, u = function(L) {
777
777
  try {
778
778
  return i('"use strict"; return (' + L + ").constructor;")();
779
779
  } catch {
780
780
  }
781
- }, f = /* @__PURE__ */ Wt(), g = /* @__PURE__ */ Tn(), p = function() {
781
+ }, f = /* @__PURE__ */ Wt(), g = /* @__PURE__ */ Tn(), y = function() {
782
782
  throw new h();
783
783
  }, w = f ? function() {
784
784
  try {
785
- return arguments.callee, p;
785
+ return arguments.callee, y;
786
786
  } catch {
787
787
  try {
788
788
  return f(arguments, "callee").get;
789
789
  } catch {
790
- return p;
790
+ return y;
791
791
  }
792
792
  }
793
- }() : p, A = kn()(), O = Fn(), R = Ht(), q = Lt(), T = jt(), D = Fr(), I = {}, H = typeof Uint8Array > "u" || !O ? r : O(Uint8Array), B = {
793
+ }() : y, A = kn()(), O = Fn(), R = zt(), q = Lt(), T = jt(), D = Fr(), I = {}, z = typeof Uint8Array > "u" || !O ? r : O(Uint8Array), B = {
794
794
  __proto__: null,
795
795
  "%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
796
796
  "%Array%": Array,
@@ -839,8 +839,8 @@ function Cr() {
839
839
  "%parseInt%": parseInt,
840
840
  "%Promise%": typeof Promise > "u" ? r : Promise,
841
841
  "%Proxy%": typeof Proxy > "u" ? r : Proxy,
842
- "%RangeError%": s,
843
- "%ReferenceError%": y,
842
+ "%RangeError%": c,
843
+ "%ReferenceError%": p,
844
844
  "%Reflect%": typeof Reflect > "u" ? r : Reflect,
845
845
  "%RegExp%": RegExp,
846
846
  "%Set%": typeof Set > "u" ? r : Set,
@@ -851,7 +851,7 @@ function Cr() {
851
851
  "%Symbol%": A ? Symbol : r,
852
852
  "%SyntaxError%": P,
853
853
  "%ThrowTypeError%": w,
854
- "%TypedArray%": H,
854
+ "%TypedArray%": z,
855
855
  "%TypeError%": h,
856
856
  "%Uint8Array%": typeof Uint8Array > "u" ? r : Uint8Array,
857
857
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? r : Uint8ClampedArray,
@@ -870,7 +870,7 @@ function Cr() {
870
870
  "%Math.max%": v,
871
871
  "%Math.min%": S,
872
872
  "%Math.pow%": l,
873
- "%Math.round%": c,
873
+ "%Math.round%": s,
874
874
  "%Math.sign%": b,
875
875
  "%Reflect.getPrototypeOf%": q
876
876
  };
@@ -950,15 +950,15 @@ function Cr() {
950
950
  "%URIErrorPrototype%": ["URIError", "prototype"],
951
951
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
952
952
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
953
- }, k = qe(), V = /* @__PURE__ */ Cn(), oe = k.call(D, Array.prototype.concat), ve = k.call(T, Array.prototype.splice), ue = k.call(D, String.prototype.replace), fe = k.call(D, String.prototype.slice), le = k.call(D, RegExp.prototype.exec), ae = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Y = /\\(\\)?/g, ce = function($) {
953
+ }, k = De(), V = /* @__PURE__ */ Cn(), oe = k.call(D, Array.prototype.concat), ve = k.call(T, Array.prototype.splice), ue = k.call(D, String.prototype.replace), fe = k.call(D, String.prototype.slice), le = k.call(D, RegExp.prototype.exec), ae = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Y = /\\(\\)?/g, ce = function($) {
954
954
  var N = fe($, 0, 1), F = fe($, -1);
955
955
  if (N === "%" && F !== "%")
956
956
  throw new P("invalid intrinsic syntax, expected closing `%`");
957
957
  if (F === "%" && N !== "%")
958
958
  throw new P("invalid intrinsic syntax, expected opening `%`");
959
959
  var W = [];
960
- return ue($, ae, function(j, X, z, K) {
961
- W[W.length] = z ? ue(K, Y, "$1") : X || j;
960
+ return ue($, ae, function(j, X, H, K) {
961
+ W[W.length] = H ? ue(K, Y, "$1") : X || j;
962
962
  }), W;
963
963
  }, se = function($, N) {
964
964
  var F = $, W;
@@ -974,60 +974,60 @@ function Cr() {
974
974
  }
975
975
  throw new P("intrinsic " + $ + " does not exist!");
976
976
  };
977
- return Er = function($, N) {
977
+ return Pr = function($, N) {
978
978
  if (typeof $ != "string" || $.length === 0)
979
979
  throw new h("intrinsic name must be a non-empty string");
980
980
  if (arguments.length > 1 && typeof N != "boolean")
981
981
  throw new h('"allowMissing" argument must be a boolean');
982
982
  if (le(/^%?[^%]*%?$/, $) === null)
983
983
  throw new P("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
984
- var F = ce($), W = F.length > 0 ? F[0] : "", j = se("%" + W + "%", N), X = j.name, z = j.value, K = !1, Z = j.alias;
984
+ var F = ce($), W = F.length > 0 ? F[0] : "", j = se("%" + W + "%", N), X = j.name, H = j.value, K = !1, Z = j.alias;
985
985
  Z && (W = Z[0], ve(F, oe([0, 1], Z)));
986
986
  for (var Se = 1, pe = !0; Se < F.length; Se += 1) {
987
987
  var ee = F[Se], we = fe(ee, 0, 1), be = fe(ee, -1);
988
988
  if ((we === '"' || we === "'" || we === "`" || be === '"' || be === "'" || be === "`") && we !== be)
989
989
  throw new P("property names with quotes must have matching quotes");
990
990
  if ((ee === "constructor" || !pe) && (K = !0), W += "." + ee, X = "%" + W + "%", V(B, X))
991
- z = B[X];
992
- else if (z != null) {
993
- if (!(ee in z)) {
991
+ H = B[X];
992
+ else if (H != null) {
993
+ if (!(ee in H)) {
994
994
  if (!N)
995
995
  throw new h("base intrinsic for " + $ + " exists, but the property is not available.");
996
996
  return;
997
997
  }
998
998
  if (f && Se + 1 >= F.length) {
999
- var Ae = f(z, ee);
1000
- pe = !!Ae, pe && "get" in Ae && !("originalValue" in Ae.get) ? z = Ae.get : z = z[ee];
999
+ var Ae = f(H, ee);
1000
+ pe = !!Ae, pe && "get" in Ae && !("originalValue" in Ae.get) ? H = Ae.get : H = H[ee];
1001
1001
  } else
1002
- pe = V(z, ee), z = z[ee];
1003
- pe && !K && (B[X] = z);
1002
+ pe = V(H, ee), H = H[ee];
1003
+ pe && !K && (B[X] = H);
1004
1004
  }
1005
1005
  }
1006
- return z;
1007
- }, Er;
1006
+ return H;
1007
+ }, Pr;
1008
1008
  }
1009
- var Pr, $t;
1009
+ var Ir, $t;
1010
1010
  function Kt() {
1011
- if ($t) return Pr;
1011
+ if ($t) return Ir;
1012
1012
  $t = 1;
1013
- var r = /* @__PURE__ */ Cr(), e = zt(), t = e([r("%String.prototype.indexOf%")]);
1014
- return Pr = function(s, y) {
1013
+ var r = /* @__PURE__ */ Cr(), e = Ht(), t = e([r("%String.prototype.indexOf%")]);
1014
+ return Ir = function(c, p) {
1015
1015
  var P = (
1016
1016
  /** @type {(this: unknown, ...args: unknown[]) => unknown} */
1017
- r(s, !!y)
1017
+ r(c, !!p)
1018
1018
  );
1019
- return typeof P == "function" && t(s, ".prototype.") > -1 ? e(
1019
+ return typeof P == "function" && t(c, ".prototype.") > -1 ? e(
1020
1020
  /** @type {const} */
1021
1021
  [P]
1022
1022
  ) : P;
1023
- }, Pr;
1023
+ }, Ir;
1024
1024
  }
1025
- var Ir, xt;
1025
+ var Rr, xt;
1026
1026
  function Qt() {
1027
- if (xt) return Ir;
1027
+ if (xt) return Rr;
1028
1028
  xt = 1;
1029
- var r = /* @__PURE__ */ Cr(), e = /* @__PURE__ */ Kt(), t = /* @__PURE__ */ xe(), a = /* @__PURE__ */ Pe(), s = r("%Map%", !0), y = e("Map.prototype.get", !0), P = e("Map.prototype.set", !0), h = e("Map.prototype.has", !0), E = e("Map.prototype.delete", !0), m = e("Map.prototype.size", !0);
1030
- return Ir = !!s && /** @type {Exclude<import('.'), false>} */
1029
+ var r = /* @__PURE__ */ Cr(), e = /* @__PURE__ */ Kt(), t = /* @__PURE__ */ qe(), a = /* @__PURE__ */ Pe(), c = r("%Map%", !0), p = e("Map.prototype.get", !0), P = e("Map.prototype.set", !0), h = e("Map.prototype.has", !0), E = e("Map.prototype.delete", !0), m = e("Map.prototype.size", !0);
1030
+ return Rr = !!c && /** @type {Exclude<import('.'), false>} */
1031
1031
  function() {
1032
1032
  var v, S = {
1033
1033
  assert: function(l) {
@@ -1036,66 +1036,66 @@ function Qt() {
1036
1036
  },
1037
1037
  delete: function(l) {
1038
1038
  if (v) {
1039
- var c = E(v, l);
1040
- return m(v) === 0 && (v = void 0), c;
1039
+ var s = E(v, l);
1040
+ return m(v) === 0 && (v = void 0), s;
1041
1041
  }
1042
1042
  return !1;
1043
1043
  },
1044
1044
  get: function(l) {
1045
1045
  if (v)
1046
- return y(v, l);
1046
+ return p(v, l);
1047
1047
  },
1048
1048
  has: function(l) {
1049
1049
  return v ? h(v, l) : !1;
1050
1050
  },
1051
- set: function(l, c) {
1052
- v || (v = new s()), P(v, l, c);
1051
+ set: function(l, s) {
1052
+ v || (v = new c()), P(v, l, s);
1053
1053
  }
1054
1054
  };
1055
1055
  return S;
1056
- }, Ir;
1056
+ }, Rr;
1057
1057
  }
1058
- var Rr, qt;
1058
+ var Tr, qt;
1059
1059
  function Mn() {
1060
- if (qt) return Rr;
1060
+ if (qt) return Tr;
1061
1061
  qt = 1;
1062
- var r = /* @__PURE__ */ Cr(), e = /* @__PURE__ */ Kt(), t = /* @__PURE__ */ xe(), a = Qt(), s = /* @__PURE__ */ Pe(), y = r("%WeakMap%", !0), P = e("WeakMap.prototype.get", !0), h = e("WeakMap.prototype.set", !0), E = e("WeakMap.prototype.has", !0), m = e("WeakMap.prototype.delete", !0);
1063
- return Rr = y ? (
1062
+ var r = /* @__PURE__ */ Cr(), e = /* @__PURE__ */ Kt(), t = /* @__PURE__ */ qe(), a = Qt(), c = /* @__PURE__ */ Pe(), p = r("%WeakMap%", !0), P = e("WeakMap.prototype.get", !0), h = e("WeakMap.prototype.set", !0), E = e("WeakMap.prototype.has", !0), m = e("WeakMap.prototype.delete", !0);
1063
+ return Tr = p ? (
1064
1064
  /** @type {Exclude<import('.'), false>} */
1065
1065
  function() {
1066
1066
  var v, S, l = {
1067
- assert: function(c) {
1068
- if (!l.has(c))
1069
- throw new s("Side channel does not contain " + t(c));
1067
+ assert: function(s) {
1068
+ if (!l.has(s))
1069
+ throw new c("Side channel does not contain " + t(s));
1070
1070
  },
1071
- delete: function(c) {
1072
- if (y && c && (typeof c == "object" || typeof c == "function")) {
1071
+ delete: function(s) {
1072
+ if (p && s && (typeof s == "object" || typeof s == "function")) {
1073
1073
  if (v)
1074
- return m(v, c);
1074
+ return m(v, s);
1075
1075
  } else if (a && S)
1076
- return S.delete(c);
1076
+ return S.delete(s);
1077
1077
  return !1;
1078
1078
  },
1079
- get: function(c) {
1080
- return y && c && (typeof c == "object" || typeof c == "function") && v ? P(v, c) : S && S.get(c);
1079
+ get: function(s) {
1080
+ return p && s && (typeof s == "object" || typeof s == "function") && v ? P(v, s) : S && S.get(s);
1081
1081
  },
1082
- has: function(c) {
1083
- return y && c && (typeof c == "object" || typeof c == "function") && v ? E(v, c) : !!S && S.has(c);
1082
+ has: function(s) {
1083
+ return p && s && (typeof s == "object" || typeof s == "function") && v ? E(v, s) : !!S && S.has(s);
1084
1084
  },
1085
- set: function(c, b) {
1086
- y && c && (typeof c == "object" || typeof c == "function") ? (v || (v = new y()), h(v, c, b)) : a && (S || (S = a()), S.set(c, b));
1085
+ set: function(s, b) {
1086
+ p && s && (typeof s == "object" || typeof s == "function") ? (v || (v = new p()), h(v, s, b)) : a && (S || (S = a()), S.set(s, b));
1087
1087
  }
1088
1088
  };
1089
1089
  return l;
1090
1090
  }
1091
- ) : a, Rr;
1091
+ ) : a, Tr;
1092
1092
  }
1093
- var Tr, Dt;
1093
+ var _r, Dt;
1094
1094
  function Nn() {
1095
- if (Dt) return Tr;
1095
+ if (Dt) return _r;
1096
1096
  Dt = 1;
1097
- var r = /* @__PURE__ */ Pe(), e = /* @__PURE__ */ xe(), t = pn(), a = Qt(), s = Mn(), y = s || a || t;
1098
- return Tr = function() {
1097
+ var r = /* @__PURE__ */ Pe(), e = /* @__PURE__ */ qe(), t = pn(), a = Qt(), c = Mn(), p = c || a || t;
1098
+ return _r = function() {
1099
1099
  var h, E = {
1100
1100
  assert: function(m) {
1101
1101
  if (!E.has(m))
@@ -1111,21 +1111,21 @@ function Nn() {
1111
1111
  return !!h && h.has(m);
1112
1112
  },
1113
1113
  set: function(m, d) {
1114
- h || (h = y()), h.set(m, d);
1114
+ h || (h = p()), h.set(m, d);
1115
1115
  }
1116
1116
  };
1117
1117
  return E;
1118
- }, Tr;
1118
+ }, _r;
1119
1119
  }
1120
- var _r, Ft;
1120
+ var kr, Ft;
1121
1121
  function Mr() {
1122
- if (Ft) return _r;
1122
+ if (Ft) return kr;
1123
1123
  Ft = 1;
1124
1124
  var r = String.prototype.replace, e = /%20/g, t = {
1125
1125
  RFC1738: "RFC1738",
1126
1126
  RFC3986: "RFC3986"
1127
1127
  };
1128
- return _r = {
1128
+ return kr = {
1129
1129
  default: t.RFC3986,
1130
1130
  formatters: {
1131
1131
  RFC1738: function(a) {
@@ -1137,28 +1137,28 @@ function Mr() {
1137
1137
  },
1138
1138
  RFC1738: t.RFC1738,
1139
1139
  RFC3986: t.RFC3986
1140
- }, _r;
1140
+ }, kr;
1141
1141
  }
1142
- var kr, Ct;
1142
+ var $r, Ct;
1143
1143
  function Vt() {
1144
- if (Ct) return kr;
1144
+ if (Ct) return $r;
1145
1145
  Ct = 1;
1146
1146
  var r = /* @__PURE__ */ Mr(), e = Object.prototype.hasOwnProperty, t = Array.isArray, a = function() {
1147
1147
  for (var i = [], u = 0; u < 256; ++u)
1148
1148
  i.push("%" + ((u < 16 ? "0" : "") + u.toString(16)).toUpperCase());
1149
1149
  return i;
1150
- }(), s = function(u) {
1150
+ }(), c = function(u) {
1151
1151
  for (; u.length > 1; ) {
1152
1152
  var f = u.pop(), g = f.obj[f.prop];
1153
1153
  if (t(g)) {
1154
- for (var p = [], w = 0; w < g.length; ++w)
1155
- typeof g[w] < "u" && p.push(g[w]);
1156
- f.obj[f.prop] = p;
1154
+ for (var y = [], w = 0; w < g.length; ++w)
1155
+ typeof g[w] < "u" && y.push(g[w]);
1156
+ f.obj[f.prop] = y;
1157
1157
  }
1158
1158
  }
1159
- }, y = function(u, f) {
1160
- for (var g = f && f.plainObjects ? { __proto__: null } : {}, p = 0; p < u.length; ++p)
1161
- typeof u[p] < "u" && (g[p] = u[p]);
1159
+ }, p = function(u, f) {
1160
+ for (var g = f && f.plainObjects ? { __proto__: null } : {}, y = 0; y < u.length; ++y)
1161
+ typeof u[y] < "u" && (g[y] = u[y]);
1162
1162
  return g;
1163
1163
  }, P = function i(u, f, g) {
1164
1164
  if (!f)
@@ -1174,8 +1174,8 @@ function Vt() {
1174
1174
  }
1175
1175
  if (!u || typeof u != "object")
1176
1176
  return [u].concat(f);
1177
- var p = u;
1178
- return t(u) && !t(f) && (p = y(u, g)), t(u) && t(f) ? (f.forEach(function(w, A) {
1177
+ var y = u;
1178
+ return t(u) && !t(f) && (y = p(u, g)), t(u) && t(f) ? (f.forEach(function(w, A) {
1179
1179
  if (e.call(u, A)) {
1180
1180
  var O = u[A];
1181
1181
  O && typeof O == "object" && w && typeof w == "object" ? u[A] = i(O, w, g) : u.push(w);
@@ -1184,10 +1184,10 @@ function Vt() {
1184
1184
  }), u) : Object.keys(f).reduce(function(w, A) {
1185
1185
  var O = f[A];
1186
1186
  return e.call(w, A) ? w[A] = i(w[A], O, g) : w[A] = O, w;
1187
- }, p);
1187
+ }, y);
1188
1188
  }, h = function(u, f) {
1189
- return Object.keys(f).reduce(function(g, p) {
1190
- return g[p] = f[p], g;
1189
+ return Object.keys(f).reduce(function(g, y) {
1190
+ return g[y] = f[y], g;
1191
1191
  }, u);
1192
1192
  }, E = function(i, u, f) {
1193
1193
  var g = i.replace(/\+/g, " ");
@@ -1198,13 +1198,13 @@ function Vt() {
1198
1198
  } catch {
1199
1199
  return g;
1200
1200
  }
1201
- }, m = 1024, d = function(u, f, g, p, w) {
1201
+ }, m = 1024, d = function(u, f, g, y, w) {
1202
1202
  if (u.length === 0)
1203
1203
  return u;
1204
1204
  var A = u;
1205
1205
  if (typeof u == "symbol" ? A = Symbol.prototype.toString.call(u) : typeof u != "string" && (A = String(u)), g === "iso-8859-1")
1206
- return escape(A).replace(/%u[0-9a-f]{4}/gi, function(H) {
1207
- return "%26%23" + parseInt(H.slice(2), 16) + "%3B";
1206
+ return escape(A).replace(/%u[0-9a-f]{4}/gi, function(z) {
1207
+ return "%26%23" + parseInt(z.slice(2), 16) + "%3B";
1208
1208
  });
1209
1209
  for (var O = "", R = 0; R < A.length; R += m) {
1210
1210
  for (var q = A.length >= m ? A.slice(R, R + m) : A, T = [], D = 0; D < q.length; ++D) {
@@ -1231,30 +1231,30 @@ function Vt() {
1231
1231
  }
1232
1232
  return O;
1233
1233
  }, v = function(u) {
1234
- for (var f = [{ obj: { o: u }, prop: "o" }], g = [], p = 0; p < f.length; ++p)
1235
- for (var w = f[p], A = w.obj[w.prop], O = Object.keys(A), R = 0; R < O.length; ++R) {
1234
+ for (var f = [{ obj: { o: u }, prop: "o" }], g = [], y = 0; y < f.length; ++y)
1235
+ for (var w = f[y], A = w.obj[w.prop], O = Object.keys(A), R = 0; R < O.length; ++R) {
1236
1236
  var q = O[R], T = A[q];
1237
1237
  typeof T == "object" && T !== null && g.indexOf(T) === -1 && (f.push({ obj: A, prop: q }), g.push(T));
1238
1238
  }
1239
- return s(f), u;
1239
+ return c(f), u;
1240
1240
  }, S = function(u) {
1241
1241
  return Object.prototype.toString.call(u) === "[object RegExp]";
1242
1242
  }, l = function(u) {
1243
1243
  return !u || typeof u != "object" ? !1 : !!(u.constructor && u.constructor.isBuffer && u.constructor.isBuffer(u));
1244
- }, c = function(u, f) {
1244
+ }, s = function(u, f) {
1245
1245
  return [].concat(u, f);
1246
1246
  }, b = function(u, f) {
1247
1247
  if (t(u)) {
1248
- for (var g = [], p = 0; p < u.length; p += 1)
1249
- g.push(f(u[p]));
1248
+ for (var g = [], y = 0; y < u.length; y += 1)
1249
+ g.push(f(u[y]));
1250
1250
  return g;
1251
1251
  }
1252
1252
  return f(u);
1253
1253
  };
1254
- return kr = {
1255
- arrayToObject: y,
1254
+ return $r = {
1255
+ arrayToObject: p,
1256
1256
  assign: h,
1257
- combine: c,
1257
+ combine: s,
1258
1258
  compact: v,
1259
1259
  decode: E,
1260
1260
  encode: d,
@@ -1262,13 +1262,13 @@ function Vt() {
1262
1262
  isRegExp: S,
1263
1263
  maybeMap: b,
1264
1264
  merge: P
1265
- }, kr;
1265
+ }, $r;
1266
1266
  }
1267
- var $r, Mt;
1267
+ var xr, Mt;
1268
1268
  function Un() {
1269
- if (Mt) return $r;
1269
+ if (Mt) return xr;
1270
1270
  Mt = 1;
1271
- var r = Nn(), e = /* @__PURE__ */ Vt(), t = /* @__PURE__ */ Mr(), a = Object.prototype.hasOwnProperty, s = {
1271
+ var r = Nn(), e = /* @__PURE__ */ Vt(), t = /* @__PURE__ */ Mr(), a = Object.prototype.hasOwnProperty, c = {
1272
1272
  brackets: function(i) {
1273
1273
  return i + "[]";
1274
1274
  },
@@ -1279,8 +1279,8 @@ function Un() {
1279
1279
  repeat: function(i) {
1280
1280
  return i;
1281
1281
  }
1282
- }, y = Array.isArray, P = Array.prototype.push, h = function(b, i) {
1283
- P.apply(b, y(i) ? i : [i]);
1282
+ }, p = Array.isArray, P = Array.prototype.push, h = function(b, i) {
1283
+ P.apply(b, p(i) ? i : [i]);
1284
1284
  }, E = Date.prototype.toISOString, m = t.default, d = {
1285
1285
  addQueryPrefix: !1,
1286
1286
  allowDots: !1,
@@ -1306,7 +1306,7 @@ function Un() {
1306
1306
  strictNullHandling: !1
1307
1307
  }, v = function(i) {
1308
1308
  return typeof i == "string" || typeof i == "number" || typeof i == "boolean" || typeof i == "symbol" || typeof i == "bigint";
1309
- }, S = {}, l = function b(i, u, f, g, p, w, A, O, R, q, T, D, I, H, B, Q, te, ne) {
1309
+ }, S = {}, l = function b(i, u, f, g, y, w, A, O, R, q, T, D, I, z, B, Q, te, ne) {
1310
1310
  for (var k = i, V = ne, oe = 0, ve = !1; (V = V.get(S)) !== void 0 && !ve; ) {
1311
1311
  var ue = V.get(i);
1312
1312
  if (oe += 1, typeof ue < "u") {
@@ -1316,17 +1316,17 @@ function Un() {
1316
1316
  }
1317
1317
  typeof V.get(S) > "u" && (oe = 0);
1318
1318
  }
1319
- if (typeof q == "function" ? k = q(u, k) : k instanceof Date ? k = I(k) : f === "comma" && y(k) && (k = e.maybeMap(k, function(X) {
1319
+ if (typeof q == "function" ? k = q(u, k) : k instanceof Date ? k = I(k) : f === "comma" && p(k) && (k = e.maybeMap(k, function(X) {
1320
1320
  return X instanceof Date ? I(X) : X;
1321
1321
  })), k === null) {
1322
1322
  if (w)
1323
- return R && !Q ? R(u, d.encoder, te, "key", H) : u;
1323
+ return R && !Q ? R(u, d.encoder, te, "key", z) : u;
1324
1324
  k = "";
1325
1325
  }
1326
1326
  if (v(k) || e.isBuffer(k)) {
1327
1327
  if (R) {
1328
- var fe = Q ? u : R(u, d.encoder, te, "key", H);
1329
- return [B(fe) + "=" + B(R(k, d.encoder, te, "value", H))];
1328
+ var fe = Q ? u : R(u, d.encoder, te, "key", z);
1329
+ return [B(fe) + "=" + B(R(k, d.encoder, te, "value", z))];
1330
1330
  }
1331
1331
  return [B(u) + "=" + B(String(k))];
1332
1332
  }
@@ -1334,21 +1334,21 @@ function Un() {
1334
1334
  if (typeof k > "u")
1335
1335
  return le;
1336
1336
  var ae;
1337
- if (f === "comma" && y(k))
1337
+ if (f === "comma" && p(k))
1338
1338
  Q && R && (k = e.maybeMap(k, R)), ae = [{ value: k.length > 0 ? k.join(",") || null : void 0 }];
1339
- else if (y(q))
1339
+ else if (p(q))
1340
1340
  ae = q;
1341
1341
  else {
1342
1342
  var Y = Object.keys(k);
1343
1343
  ae = T ? Y.sort(T) : Y;
1344
1344
  }
1345
- var ce = O ? String(u).replace(/\./g, "%2E") : String(u), se = g && y(k) && k.length === 1 ? ce + "[]" : ce;
1346
- if (p && y(k) && k.length === 0)
1345
+ var ce = O ? String(u).replace(/\./g, "%2E") : String(u), se = g && p(k) && k.length === 1 ? ce + "[]" : ce;
1346
+ if (y && p(k) && k.length === 0)
1347
1347
  return se + "[]";
1348
1348
  for (var L = 0; L < ae.length; ++L) {
1349
1349
  var $ = ae[L], N = typeof $ == "object" && $ && typeof $.value < "u" ? $.value : k[$];
1350
1350
  if (!(A && N === null)) {
1351
- var F = D && O ? String($).replace(/\./g, "%2E") : String($), W = y(k) ? typeof f == "function" ? f(se, F) : se : se + (D ? "." + F : "[" + F + "]");
1351
+ var F = D && O ? String($).replace(/\./g, "%2E") : String($), W = p(k) ? typeof f == "function" ? f(se, F) : se : se + (D ? "." + F : "[" + F + "]");
1352
1352
  ne.set(i, oe);
1353
1353
  var j = r();
1354
1354
  j.set(S, ne), h(le, b(
@@ -1356,16 +1356,16 @@ function Un() {
1356
1356
  W,
1357
1357
  f,
1358
1358
  g,
1359
- p,
1359
+ y,
1360
1360
  w,
1361
1361
  A,
1362
1362
  O,
1363
- f === "comma" && Q && y(k) ? null : R,
1363
+ f === "comma" && Q && p(k) ? null : R,
1364
1364
  q,
1365
1365
  T,
1366
1366
  D,
1367
1367
  I,
1368
- H,
1368
+ z,
1369
1369
  B,
1370
1370
  Q,
1371
1371
  te,
@@ -1374,7 +1374,7 @@ function Un() {
1374
1374
  }
1375
1375
  }
1376
1376
  return le;
1377
- }, c = function(i) {
1377
+ }, s = function(i) {
1378
1378
  if (!i)
1379
1379
  return d;
1380
1380
  if (typeof i.allowEmptyArrays < "u" && typeof i.allowEmptyArrays != "boolean")
@@ -1392,10 +1392,10 @@ function Un() {
1392
1392
  throw new TypeError("Unknown format option provided.");
1393
1393
  f = i.format;
1394
1394
  }
1395
- var g = t.formatters[f], p = d.filter;
1396
- (typeof i.filter == "function" || y(i.filter)) && (p = i.filter);
1395
+ var g = t.formatters[f], y = d.filter;
1396
+ (typeof i.filter == "function" || p(i.filter)) && (y = i.filter);
1397
1397
  var w;
1398
- if (i.arrayFormat in s ? w = i.arrayFormat : "indices" in i ? w = i.indices ? "indices" : "repeat" : w = d.arrayFormat, "commaRoundTrip" in i && typeof i.commaRoundTrip != "boolean")
1398
+ if (i.arrayFormat in c ? w = i.arrayFormat : "indices" in i ? w = i.indices ? "indices" : "repeat" : w = d.arrayFormat, "commaRoundTrip" in i && typeof i.commaRoundTrip != "boolean")
1399
1399
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
1400
1400
  var A = typeof i.allowDots > "u" ? i.encodeDotInKeys === !0 ? !0 : d.allowDots : !!i.allowDots;
1401
1401
  return {
@@ -1411,7 +1411,7 @@ function Un() {
1411
1411
  encodeDotInKeys: typeof i.encodeDotInKeys == "boolean" ? i.encodeDotInKeys : d.encodeDotInKeys,
1412
1412
  encoder: typeof i.encoder == "function" ? i.encoder : d.encoder,
1413
1413
  encodeValuesOnly: typeof i.encodeValuesOnly == "boolean" ? i.encodeValuesOnly : d.encodeValuesOnly,
1414
- filter: p,
1414
+ filter: y,
1415
1415
  format: f,
1416
1416
  formatter: g,
1417
1417
  serializeDate: typeof i.serializeDate == "function" ? i.serializeDate : d.serializeDate,
@@ -1420,13 +1420,13 @@ function Un() {
1420
1420
  strictNullHandling: typeof i.strictNullHandling == "boolean" ? i.strictNullHandling : d.strictNullHandling
1421
1421
  };
1422
1422
  };
1423
- return $r = function(b, i) {
1424
- var u = b, f = c(i), g, p;
1425
- typeof f.filter == "function" ? (p = f.filter, u = p("", u)) : y(f.filter) && (p = f.filter, g = p);
1423
+ return xr = function(b, i) {
1424
+ var u = b, f = s(i), g, y;
1425
+ typeof f.filter == "function" ? (y = f.filter, u = y("", u)) : p(f.filter) && (y = f.filter, g = y);
1426
1426
  var w = [];
1427
1427
  if (typeof u != "object" || u === null)
1428
1428
  return "";
1429
- var A = s[f.arrayFormat], O = A === "comma" && f.commaRoundTrip;
1429
+ var A = c[f.arrayFormat], O = A === "comma" && f.commaRoundTrip;
1430
1430
  g || (g = Object.keys(u)), f.sort && g.sort(f.sort);
1431
1431
  for (var R = r(), q = 0; q < g.length; ++q) {
1432
1432
  var T = g[q], D = u[T];
@@ -1451,13 +1451,13 @@ function Un() {
1451
1451
  R
1452
1452
  ));
1453
1453
  }
1454
- var I = w.join(f.delimiter), H = f.addQueryPrefix === !0 ? "?" : "";
1455
- return f.charsetSentinel && (f.charset === "iso-8859-1" ? H += "utf8=%26%2310003%3B&" : H += "utf8=%E2%9C%93&"), I.length > 0 ? H + I : "";
1456
- }, $r;
1454
+ var I = w.join(f.delimiter), z = f.addQueryPrefix === !0 ? "?" : "";
1455
+ return f.charsetSentinel && (f.charset === "iso-8859-1" ? z += "utf8=%26%2310003%3B&" : z += "utf8=%E2%9C%93&"), I.length > 0 ? z + I : "";
1456
+ }, xr;
1457
1457
  }
1458
- var xr, Nt;
1458
+ var qr, Nt;
1459
1459
  function Bn() {
1460
- if (Nt) return xr;
1460
+ if (Nt) return qr;
1461
1461
  Nt = 1;
1462
1462
  var r = /* @__PURE__ */ Vt(), e = Object.prototype.hasOwnProperty, t = Array.isArray, a = {
1463
1463
  allowDots: !1,
@@ -1481,83 +1481,83 @@ function Bn() {
1481
1481
  strictDepth: !1,
1482
1482
  strictNullHandling: !1,
1483
1483
  throwOnLimitExceeded: !1
1484
- }, s = function(S) {
1485
- return S.replace(/&#(\d+);/g, function(l, c) {
1486
- return String.fromCharCode(parseInt(c, 10));
1484
+ }, c = function(S) {
1485
+ return S.replace(/&#(\d+);/g, function(l, s) {
1486
+ return String.fromCharCode(parseInt(s, 10));
1487
1487
  });
1488
- }, y = function(S, l, c) {
1488
+ }, p = function(S, l, s) {
1489
1489
  if (S && typeof S == "string" && l.comma && S.indexOf(",") > -1)
1490
1490
  return S.split(",");
1491
- if (l.throwOnLimitExceeded && c >= l.arrayLimit)
1491
+ if (l.throwOnLimitExceeded && s >= l.arrayLimit)
1492
1492
  throw new RangeError("Array limit exceeded. Only " + l.arrayLimit + " element" + (l.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
1493
1493
  return S;
1494
- }, P = "utf8=%26%2310003%3B", h = "utf8=%E2%9C%93", E = function(l, c) {
1495
- var b = { __proto__: null }, i = c.ignoreQueryPrefix ? l.replace(/^\?/, "") : l;
1494
+ }, P = "utf8=%26%2310003%3B", h = "utf8=%E2%9C%93", E = function(l, s) {
1495
+ var b = { __proto__: null }, i = s.ignoreQueryPrefix ? l.replace(/^\?/, "") : l;
1496
1496
  i = i.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1497
- var u = c.parameterLimit === 1 / 0 ? void 0 : c.parameterLimit, f = i.split(
1498
- c.delimiter,
1499
- c.throwOnLimitExceeded ? u + 1 : u
1497
+ var u = s.parameterLimit === 1 / 0 ? void 0 : s.parameterLimit, f = i.split(
1498
+ s.delimiter,
1499
+ s.throwOnLimitExceeded ? u + 1 : u
1500
1500
  );
1501
- if (c.throwOnLimitExceeded && f.length > u)
1501
+ if (s.throwOnLimitExceeded && f.length > u)
1502
1502
  throw new RangeError("Parameter limit exceeded. Only " + u + " parameter" + (u === 1 ? "" : "s") + " allowed.");
1503
- var g = -1, p, w = c.charset;
1504
- if (c.charsetSentinel)
1505
- for (p = 0; p < f.length; ++p)
1506
- f[p].indexOf("utf8=") === 0 && (f[p] === h ? w = "utf-8" : f[p] === P && (w = "iso-8859-1"), g = p, p = f.length);
1507
- for (p = 0; p < f.length; ++p)
1508
- if (p !== g) {
1509
- var A = f[p], O = A.indexOf("]="), R = O === -1 ? A.indexOf("=") : O + 1, q, T;
1510
- R === -1 ? (q = c.decoder(A, a.decoder, w, "key"), T = c.strictNullHandling ? null : "") : (q = c.decoder(A.slice(0, R), a.decoder, w, "key"), T = r.maybeMap(
1511
- y(
1503
+ var g = -1, y, w = s.charset;
1504
+ if (s.charsetSentinel)
1505
+ for (y = 0; y < f.length; ++y)
1506
+ f[y].indexOf("utf8=") === 0 && (f[y] === h ? w = "utf-8" : f[y] === P && (w = "iso-8859-1"), g = y, y = f.length);
1507
+ for (y = 0; y < f.length; ++y)
1508
+ if (y !== g) {
1509
+ var A = f[y], O = A.indexOf("]="), R = O === -1 ? A.indexOf("=") : O + 1, q, T;
1510
+ R === -1 ? (q = s.decoder(A, a.decoder, w, "key"), T = s.strictNullHandling ? null : "") : (q = s.decoder(A.slice(0, R), a.decoder, w, "key"), T = r.maybeMap(
1511
+ p(
1512
1512
  A.slice(R + 1),
1513
- c,
1513
+ s,
1514
1514
  t(b[q]) ? b[q].length : 0
1515
1515
  ),
1516
1516
  function(I) {
1517
- return c.decoder(I, a.decoder, w, "value");
1517
+ return s.decoder(I, a.decoder, w, "value");
1518
1518
  }
1519
- )), T && c.interpretNumericEntities && w === "iso-8859-1" && (T = s(String(T))), A.indexOf("[]=") > -1 && (T = t(T) ? [T] : T);
1519
+ )), T && s.interpretNumericEntities && w === "iso-8859-1" && (T = c(String(T))), A.indexOf("[]=") > -1 && (T = t(T) ? [T] : T);
1520
1520
  var D = e.call(b, q);
1521
- D && c.duplicates === "combine" ? b[q] = r.combine(b[q], T) : (!D || c.duplicates === "last") && (b[q] = T);
1521
+ D && s.duplicates === "combine" ? b[q] = r.combine(b[q], T) : (!D || s.duplicates === "last") && (b[q] = T);
1522
1522
  }
1523
1523
  return b;
1524
- }, m = function(S, l, c, b) {
1524
+ }, m = function(S, l, s, b) {
1525
1525
  var i = 0;
1526
1526
  if (S.length > 0 && S[S.length - 1] === "[]") {
1527
1527
  var u = S.slice(0, -1).join("");
1528
1528
  i = Array.isArray(l) && l[u] ? l[u].length : 0;
1529
1529
  }
1530
- for (var f = b ? l : y(l, c, i), g = S.length - 1; g >= 0; --g) {
1531
- var p, w = S[g];
1532
- if (w === "[]" && c.parseArrays)
1533
- p = c.allowEmptyArrays && (f === "" || c.strictNullHandling && f === null) ? [] : r.combine([], f);
1530
+ for (var f = b ? l : p(l, s, i), g = S.length - 1; g >= 0; --g) {
1531
+ var y, w = S[g];
1532
+ if (w === "[]" && s.parseArrays)
1533
+ y = s.allowEmptyArrays && (f === "" || s.strictNullHandling && f === null) ? [] : r.combine([], f);
1534
1534
  else {
1535
- p = c.plainObjects ? { __proto__: null } : {};
1536
- var A = w.charAt(0) === "[" && w.charAt(w.length - 1) === "]" ? w.slice(1, -1) : w, O = c.decodeDotInKeys ? A.replace(/%2E/g, ".") : A, R = parseInt(O, 10);
1537
- !c.parseArrays && O === "" ? p = { 0: f } : !isNaN(R) && w !== O && String(R) === O && R >= 0 && c.parseArrays && R <= c.arrayLimit ? (p = [], p[R] = f) : O !== "__proto__" && (p[O] = f);
1535
+ y = s.plainObjects ? { __proto__: null } : {};
1536
+ var A = w.charAt(0) === "[" && w.charAt(w.length - 1) === "]" ? w.slice(1, -1) : w, O = s.decodeDotInKeys ? A.replace(/%2E/g, ".") : A, R = parseInt(O, 10);
1537
+ !s.parseArrays && O === "" ? y = { 0: f } : !isNaN(R) && w !== O && String(R) === O && R >= 0 && s.parseArrays && R <= s.arrayLimit ? (y = [], y[R] = f) : O !== "__proto__" && (y[O] = f);
1538
1538
  }
1539
- f = p;
1539
+ f = y;
1540
1540
  }
1541
1541
  return f;
1542
- }, d = function(l, c, b, i) {
1542
+ }, d = function(l, s, b, i) {
1543
1543
  if (l) {
1544
- var u = b.allowDots ? l.replace(/\.([^.[]+)/g, "[$1]") : l, f = /(\[[^[\]]*])/, g = /(\[[^[\]]*])/g, p = b.depth > 0 && f.exec(u), w = p ? u.slice(0, p.index) : u, A = [];
1544
+ var u = b.allowDots ? l.replace(/\.([^.[]+)/g, "[$1]") : l, f = /(\[[^[\]]*])/, g = /(\[[^[\]]*])/g, y = b.depth > 0 && f.exec(u), w = y ? u.slice(0, y.index) : u, A = [];
1545
1545
  if (w) {
1546
1546
  if (!b.plainObjects && e.call(Object.prototype, w) && !b.allowPrototypes)
1547
1547
  return;
1548
1548
  A.push(w);
1549
1549
  }
1550
- for (var O = 0; b.depth > 0 && (p = g.exec(u)) !== null && O < b.depth; ) {
1551
- if (O += 1, !b.plainObjects && e.call(Object.prototype, p[1].slice(1, -1)) && !b.allowPrototypes)
1550
+ for (var O = 0; b.depth > 0 && (y = g.exec(u)) !== null && O < b.depth; ) {
1551
+ if (O += 1, !b.plainObjects && e.call(Object.prototype, y[1].slice(1, -1)) && !b.allowPrototypes)
1552
1552
  return;
1553
- A.push(p[1]);
1553
+ A.push(y[1]);
1554
1554
  }
1555
- if (p) {
1555
+ if (y) {
1556
1556
  if (b.strictDepth === !0)
1557
1557
  throw new RangeError("Input depth exceeded depth option of " + b.depth + " and strictDepth is true");
1558
- A.push("[" + u.slice(p.index) + "]");
1558
+ A.push("[" + u.slice(y.index) + "]");
1559
1559
  }
1560
- return m(A, c, b, i);
1560
+ return m(A, s, b, i);
1561
1561
  }
1562
1562
  }, v = function(l) {
1563
1563
  if (!l)
@@ -1572,7 +1572,7 @@ function Bn() {
1572
1572
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1573
1573
  if (typeof l.throwOnLimitExceeded < "u" && typeof l.throwOnLimitExceeded != "boolean")
1574
1574
  throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
1575
- var c = typeof l.charset > "u" ? a.charset : l.charset, b = typeof l.duplicates > "u" ? a.duplicates : l.duplicates;
1575
+ var s = typeof l.charset > "u" ? a.charset : l.charset, b = typeof l.duplicates > "u" ? a.duplicates : l.duplicates;
1576
1576
  if (b !== "combine" && b !== "first" && b !== "last")
1577
1577
  throw new TypeError("The duplicates option must be either combine, first, or last");
1578
1578
  var i = typeof l.allowDots > "u" ? l.decodeDotInKeys === !0 ? !0 : a.allowDots : !!l.allowDots;
@@ -1582,7 +1582,7 @@ function Bn() {
1582
1582
  allowPrototypes: typeof l.allowPrototypes == "boolean" ? l.allowPrototypes : a.allowPrototypes,
1583
1583
  allowSparse: typeof l.allowSparse == "boolean" ? l.allowSparse : a.allowSparse,
1584
1584
  arrayLimit: typeof l.arrayLimit == "number" ? l.arrayLimit : a.arrayLimit,
1585
- charset: c,
1585
+ charset: s,
1586
1586
  charsetSentinel: typeof l.charsetSentinel == "boolean" ? l.charsetSentinel : a.charsetSentinel,
1587
1587
  comma: typeof l.comma == "boolean" ? l.comma : a.comma,
1588
1588
  decodeDotInKeys: typeof l.decodeDotInKeys == "boolean" ? l.decodeDotInKeys : a.decodeDotInKeys,
@@ -1601,27 +1601,27 @@ function Bn() {
1601
1601
  throwOnLimitExceeded: typeof l.throwOnLimitExceeded == "boolean" ? l.throwOnLimitExceeded : !1
1602
1602
  };
1603
1603
  };
1604
- return xr = function(S, l) {
1605
- var c = v(l);
1604
+ return qr = function(S, l) {
1605
+ var s = v(l);
1606
1606
  if (S === "" || S === null || typeof S > "u")
1607
- return c.plainObjects ? { __proto__: null } : {};
1608
- for (var b = typeof S == "string" ? E(S, c) : S, i = c.plainObjects ? { __proto__: null } : {}, u = Object.keys(b), f = 0; f < u.length; ++f) {
1609
- var g = u[f], p = d(g, b[g], c, typeof S == "string");
1610
- i = r.merge(i, p, c);
1607
+ return s.plainObjects ? { __proto__: null } : {};
1608
+ for (var b = typeof S == "string" ? E(S, s) : S, i = s.plainObjects ? { __proto__: null } : {}, u = Object.keys(b), f = 0; f < u.length; ++f) {
1609
+ var g = u[f], y = d(g, b[g], s, typeof S == "string");
1610
+ i = r.merge(i, y, s);
1611
1611
  }
1612
- return c.allowSparse === !0 ? i : r.compact(i);
1613
- }, xr;
1612
+ return s.allowSparse === !0 ? i : r.compact(i);
1613
+ }, qr;
1614
1614
  }
1615
- var qr, Ut;
1615
+ var Dr, Ut;
1616
1616
  function Gn() {
1617
- if (Ut) return qr;
1617
+ if (Ut) return Dr;
1618
1618
  Ut = 1;
1619
1619
  var r = /* @__PURE__ */ Un(), e = /* @__PURE__ */ Bn(), t = /* @__PURE__ */ Mr();
1620
- return qr = {
1620
+ return Dr = {
1621
1621
  formats: t,
1622
1622
  parse: e,
1623
1623
  stringify: r
1624
- }, qr;
1624
+ }, Dr;
1625
1625
  }
1626
1626
  var Wn = /* @__PURE__ */ Gn();
1627
1627
  const he = /* @__PURE__ */ un(Wn), G = {
@@ -1634,43 +1634,66 @@ const he = /* @__PURE__ */ un(Wn), G = {
1634
1634
  allCompany: "/lxwork/api/auth/groups/branch",
1635
1635
  userinfo: "/lxwork/api/auth/userinfo",
1636
1636
  user: "/lxwork/api/auth/users"
1637
- };
1638
- let Dr = 0;
1639
- async function U(r, e, t) {
1640
- const a = await fetch((r.baseURL || "") + e, {
1637
+ }, xe = /* @__PURE__ */ new WeakMap();
1638
+ function Ln(r) {
1639
+ const e = xe.get(r);
1640
+ if (e)
1641
+ return e;
1642
+ r.removeToken();
1643
+ let t;
1644
+ return t = r.SSOLogin().then(() => {
1645
+ }).finally(() => {
1646
+ xe.get(r) === t && xe.delete(r);
1647
+ }), xe.set(r, t), t;
1648
+ }
1649
+ async function U(r, e, t, a = {}) {
1650
+ const c = await fetch((r.baseURL || "") + e, {
1641
1651
  headers: {
1642
1652
  "Content-Type": "application/json",
1643
1653
  Authorization: "Bearer " + (r.token || r.getToken())
1644
1654
  },
1645
1655
  ...t || {}
1646
1656
  });
1647
- if (!a.ok) {
1648
- if (console.dir(a, await a.json()), a.status === 401) {
1657
+ if (!c.ok) {
1658
+ if (console.dir(c, await c.json()), c.status === 401) {
1649
1659
  if (new URLSearchParams(window.location.search).get("token") || window.location.hash.includes("?") && new URLSearchParams(window.location.hash.split("?")[1]).get("token"))
1650
- throw new Error(`HTTP error! status: ${a.status}`);
1651
- if (Dr < 10)
1652
- return Dr += 1, r.removeToken(), await r.SSOLogin(), await U(r, e, t);
1660
+ throw new Error(`HTTP error! status: ${c.status}`);
1661
+ if (a.retryUnauthorized !== !1 && !a.hasRetriedUnauthorized)
1662
+ return await Ln(r), await U(r, e, t, {
1663
+ ...a,
1664
+ hasRetriedUnauthorized: !0
1665
+ });
1653
1666
  }
1654
- throw new Error(`HTTP error! status: ${a.status}`);
1667
+ throw new Error(`HTTP error! status: ${c.status}`);
1655
1668
  }
1656
- return Dr = 0, await a.json();
1669
+ return await c.json();
1657
1670
  }
1658
1671
  const ie = (r) => ({
1659
- getTokenInfo: (e) => U(r, `${G.token}?${he.stringify(e)}`),
1660
- createPermissionTicket: (e) => U(r, `${G.permissionTicket}`, {
1661
- method: "POST",
1662
- body: JSON.stringify(e)
1663
- }),
1672
+ getTokenInfo: (e) => U(r, `${G.token}?${he.stringify(e)}`, void 0, { retryUnauthorized: !1 }),
1673
+ createPermissionTicket: (e) => U(
1674
+ r,
1675
+ `${G.permissionTicket}`,
1676
+ {
1677
+ method: "POST",
1678
+ body: JSON.stringify(e)
1679
+ },
1680
+ { retryUnauthorized: !1 }
1681
+ ),
1664
1682
  getAuthTokenInfo: (e) => {
1665
1683
  const t = new URLSearchParams();
1666
- return t.append("grant_type", e.grant_type), t.append("ticket", e.ticket), U(r, `${G.authToken}`, {
1667
- method: "POST",
1668
- body: t,
1669
- headers: {
1670
- "Content-Type": "application/x-www-form-urlencoded",
1671
- Authorization: "Bearer " + r.getToken()
1672
- }
1673
- });
1684
+ return t.append("grant_type", e.grant_type), t.append("ticket", e.ticket), U(
1685
+ r,
1686
+ `${G.authToken}`,
1687
+ {
1688
+ method: "POST",
1689
+ body: t,
1690
+ headers: {
1691
+ "Content-Type": "application/x-www-form-urlencoded",
1692
+ Authorization: "Bearer " + r.getToken()
1693
+ }
1694
+ },
1695
+ { retryUnauthorized: !1 }
1696
+ );
1674
1697
  },
1675
1698
  refreshAuthToken: (e) => U(r, `${G.refreshToken}`, {
1676
1699
  headers: {
@@ -1787,38 +1810,38 @@ const ie = (r) => ({
1787
1810
  });
1788
1811
  function Bt(r) {
1789
1812
  try {
1790
- const t = new URL(r).hostname, a = /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/, s = /^\[?([a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}\]?$/;
1791
- return !!(a.test(t) || s.test(t));
1813
+ const t = new URL(r).hostname, a = /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/, c = /^\[?([a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}\]?$/;
1814
+ return !!(a.test(t) || c.test(t));
1792
1815
  } catch {
1793
1816
  return !1;
1794
1817
  }
1795
1818
  }
1796
- function Ln(r) {
1819
+ function zn(r) {
1797
1820
  const e = {};
1798
- return new URL(r).searchParams.forEach((a, s) => {
1799
- e[s] = a;
1821
+ return new URL(r).searchParams.forEach((a, c) => {
1822
+ e[c] = a;
1800
1823
  }), e;
1801
1824
  }
1802
- function Vn(r, e) {
1825
+ function Jn(r, e) {
1803
1826
  const t = r.indexOf(e);
1804
1827
  return t !== -1 ? r.substring(0, t) : r;
1805
1828
  }
1806
- function Hn(r) {
1829
+ function jn(r) {
1807
1830
  const e = window.location.href, t = new URL(e), a = new URLSearchParams(t.search);
1808
- r.forEach((s) => {
1809
- a.delete(s);
1831
+ r.forEach((c) => {
1832
+ a.delete(c);
1810
1833
  }), t.search = a.toString(), window.history.pushState({}, "", t.href);
1811
1834
  }
1812
1835
  class Te extends Error {
1813
1836
  }
1814
1837
  Te.prototype.name = "InvalidTokenError";
1815
- function jn(r) {
1838
+ function Hn(r) {
1816
1839
  return decodeURIComponent(atob(r).replace(/(.)/g, (e, t) => {
1817
1840
  let a = t.charCodeAt(0).toString(16).toUpperCase();
1818
1841
  return a.length < 2 && (a = "0" + a), "%" + a;
1819
1842
  }));
1820
1843
  }
1821
- function zn(r) {
1844
+ function Kn(r) {
1822
1845
  let e = r.replace(/-/g, "+").replace(/_/g, "/");
1823
1846
  switch (e.length % 4) {
1824
1847
  case 0:
@@ -1833,43 +1856,43 @@ function zn(r) {
1833
1856
  throw new Error("base64 string is not of the correct length");
1834
1857
  }
1835
1858
  try {
1836
- return jn(e);
1859
+ return Hn(e);
1837
1860
  } catch {
1838
1861
  return atob(e);
1839
1862
  }
1840
1863
  }
1841
- function Kn(r, e) {
1864
+ function Qn(r, e) {
1842
1865
  if (typeof r != "string")
1843
1866
  throw new Te("Invalid token specified: must be a string");
1844
1867
  e || (e = {});
1845
1868
  const t = e.header === !0 ? 0 : 1, a = r.split(".")[t];
1846
1869
  if (typeof a != "string")
1847
1870
  throw new Te(`Invalid token specified: missing part #${t + 1}`);
1848
- let s;
1871
+ let c;
1849
1872
  try {
1850
- s = zn(a);
1851
- } catch (y) {
1852
- throw new Te(`Invalid token specified: invalid base64 for part #${t + 1} (${y.message})`);
1873
+ c = Kn(a);
1874
+ } catch (p) {
1875
+ throw new Te(`Invalid token specified: invalid base64 for part #${t + 1} (${p.message})`);
1853
1876
  }
1854
1877
  try {
1855
- return JSON.parse(s);
1856
- } catch (y) {
1857
- throw new Te(`Invalid token specified: invalid json for part #${t + 1} (${y.message})`);
1878
+ return JSON.parse(c);
1879
+ } catch (p) {
1880
+ throw new Te(`Invalid token specified: invalid json for part #${t + 1} (${p.message})`);
1858
1881
  }
1859
1882
  }
1860
- class Jn {
1883
+ class Yn {
1861
1884
  /**
1862
1885
  * 构造函数,初始化SSO认证实例
1863
1886
  * @param {AuthLoginType} config - 认证配置
1864
1887
  * @param {string} config.APPID - 应用唯一标识
1865
1888
  */
1866
- constructor({ APPID: e, dev: t, baseURL: a, token: s }) {
1889
+ constructor({ APPID: e, dev: t, baseURL: a, token: c }) {
1867
1890
  me(this, "APPID");
1868
1891
  me(this, "dev");
1869
1892
  me(this, "baseURL");
1870
1893
  me(this, "token");
1871
1894
  me(this, "storage");
1872
- this.APPID = e, this.storage = new an(e), this.dev = t || !1, this.baseURL = a || "", this.token = s || "";
1895
+ this.APPID = e, this.storage = new an(e), this.dev = t || !1, this.baseURL = a || "", this.token = c || "";
1873
1896
  }
1874
1897
  /**
1875
1898
  * 执行单点登录流程
@@ -1882,14 +1905,14 @@ class Jn {
1882
1905
  * @throws {Error} 当SSO流程失败时抛出异常
1883
1906
  */
1884
1907
  async SSOLogin() {
1885
- const e = Ln(location.href), t = ["state", "code", "iss", "session_state"], a = t.length;
1908
+ const e = zn(location.href), t = ["state", "code", "iss", "session_state"], a = t.length;
1886
1909
  if (Object.keys(e).length !== a)
1887
1910
  return this.login(), new Promise(() => {
1888
1911
  });
1889
- let s = [], y = 0;
1890
- for (; y < a; )
1891
- Object.keys(e).includes(t[y]) && s.length <= a ? s.push(t[y]) : s = [], y++;
1892
- if (s.length === a) {
1912
+ let c = [], p = 0;
1913
+ for (; p < a; )
1914
+ Object.keys(e).includes(t[p]) && c.length <= a ? c.push(t[p]) : c = [], p++;
1915
+ if (c.length === a) {
1893
1916
  this.removeToken();
1894
1917
  let P;
1895
1918
  const h = this.storage.getItem("login_redirect_uri"), { code: E, state: m } = e;
@@ -1901,7 +1924,7 @@ class Jn {
1901
1924
  redirect_uri: h
1902
1925
  }), this.setToken(P);
1903
1926
  const { ticket: d } = await ie(this).createPermissionTicket({ client_id: this.APPID }), v = await ie(this).getAuthTokenInfo({ grant_type: "urn:ietf:params:oauth:grant-type:uma-ticket", ticket: d });
1904
- this.setToken(v, "auth"), Hn(t);
1927
+ this.setToken(v, "auth"), jn(t);
1905
1928
  } catch {
1906
1929
  return this.removeToken(), window.location.href = h, new Promise(() => {
1907
1930
  });
@@ -1923,8 +1946,8 @@ class Jn {
1923
1946
  scope: "openid"
1924
1947
  };
1925
1948
  this.storage.setItem("login_redirect_uri", a.redirect_uri), Bt(t) && !this.dev && (a.keycloak_host = t + "/sso/");
1926
- let s = `/lxwork/api/auth/login?${he.stringify(a)}`;
1927
- window.location.replace(s);
1949
+ let c = `/lxwork/api/auth/login?${he.stringify(a)}`;
1950
+ window.location.replace(c);
1928
1951
  }
1929
1952
  /**
1930
1953
  * 执行登出操作
@@ -1938,13 +1961,13 @@ class Jn {
1938
1961
  this.login();
1939
1962
  return;
1940
1963
  }
1941
- const s = {
1964
+ const c = {
1942
1965
  id_token_hint: a,
1943
1966
  post_logout_redirect_uri: e
1944
1967
  };
1945
- Bt(t) && !this.dev && (s.keycloak_host = t + "/sso/");
1946
- let y = `/lxwork/api/auth/endsession?${he.stringify(s)}`;
1947
- this.removeToken(), window.location.href = y;
1968
+ Bt(t) && !this.dev && (c.keycloak_host = t + "/sso/");
1969
+ let p = `/lxwork/api/auth/endsession?${he.stringify(c)}`;
1970
+ this.removeToken(), window.location.href = p;
1948
1971
  }
1949
1972
  /**
1950
1973
  * 设置Token信息
@@ -1984,23 +2007,23 @@ class Jn {
1984
2007
  * @returns {Promise<string>} 分公司名称,未找到则返回空字符串
1985
2008
  */
1986
2009
  async getUserBranchGroup() {
1987
- const e = await ie(this).getUserGroupList(), t = e.find((y) => y.attributes.type.includes("3"));
2010
+ const e = await ie(this).getUserGroupList(), t = e.find((p) => p.attributes.type.includes("3"));
1988
2011
  if (t)
1989
2012
  return t.name;
1990
- const a = async (y) => {
1991
- if (y.attributes.type.includes("3"))
1992
- return y.name;
1993
- if (y.parentId) {
1994
- const P = await ie(this).getGroupDetail({ id: y.parentId });
2013
+ const a = async (p) => {
2014
+ if (p.attributes.type.includes("3"))
2015
+ return p.name;
2016
+ if (p.parentId) {
2017
+ const P = await ie(this).getGroupDetail({ id: p.parentId });
1995
2018
  if (P)
1996
2019
  return a(P);
1997
2020
  }
1998
2021
  return "";
1999
2022
  };
2000
- let s = "";
2001
- for (let y = 0; y < e.length && (s = await a(e[y]), !s); y += 1)
2023
+ let c = "";
2024
+ for (let p = 0; p < e.length && (c = await a(e[p]), !c); p += 1)
2002
2025
  ;
2003
- return s;
2026
+ return c;
2004
2027
  }
2005
2028
  /**
2006
2029
  * 根据groupId获取所属分公司信息
@@ -2012,14 +2035,14 @@ class Jn {
2012
2035
  const t = await ie(this).getGroupDetail({ id: e.groupId });
2013
2036
  if (t.attributes.type.includes("3"))
2014
2037
  return t;
2015
- const a = async (s) => {
2016
- const y = s.attributes.type[0] || 0;
2017
- if (Number(y) === 3)
2018
- return s;
2019
- if (Number(y) === 1)
2038
+ const a = async (c) => {
2039
+ const p = c.attributes.type[0] || 0;
2040
+ if (Number(p) === 3)
2041
+ return c;
2042
+ if (Number(p) === 1)
2020
2043
  return t;
2021
- if (s.parentId) {
2022
- const P = await ie(this).getGroupDetail({ id: s.parentId });
2044
+ if (c.parentId) {
2045
+ const P = await ie(this).getGroupDetail({ id: c.parentId });
2023
2046
  if (P)
2024
2047
  return a(P);
2025
2048
  }
@@ -2036,8 +2059,8 @@ class Jn {
2036
2059
  async refreshToken(e) {
2037
2060
  const { exp: t } = this.getDecodeToken(), a = Date.now() / 1e3;
2038
2061
  if (e || a > t - 200 && a < t) {
2039
- const s = await ie(this).refreshAuthToken();
2040
- this.setToken(s), this.setToken(s, "auth");
2062
+ const c = await ie(this).refreshAuthToken();
2063
+ this.setToken(c), this.setToken(c, "auth");
2041
2064
  }
2042
2065
  }
2043
2066
  /**
@@ -2071,22 +2094,24 @@ class Jn {
2071
2094
  */
2072
2095
  getDecodeToken() {
2073
2096
  const e = this.getToken();
2074
- return Kn(e);
2097
+ return Qn(e);
2075
2098
  }
2076
2099
  /**
2077
2100
  * 清除所有Token
2078
2101
  * @throws {Error} APPID未初始化时抛出
2079
2102
  */
2080
2103
  removeToken() {
2081
- this.storage.removeItem("tokenInfo"), this.storage.removeItem("SSO-tokenInfo");
2104
+ Object.keys(localStorage).forEach((e) => {
2105
+ (e.endsWith("-SSO-tokenInfo") || e.endsWith("-tokenInfo")) && localStorage.removeItem(e);
2106
+ });
2082
2107
  }
2083
2108
  }
2084
2109
  export {
2085
- Jn as AuthLogin,
2110
+ Yn as AuthLogin,
2086
2111
  an as LocalStorageUtil,
2087
- Ln as getUrlParams,
2112
+ zn as getUrlParams,
2088
2113
  Bt as isIpAddress,
2089
- Hn as removeUrlParam,
2090
- Vn as subBefore,
2114
+ jn as removeUrlParam,
2115
+ Jn as subBefore,
2091
2116
  ie as useSSOApi
2092
2117
  };