vue-stack-tabs 0.1.25 → 0.1.26

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.
@@ -1,7 +1,7 @@
1
1
  var kn = Object.defineProperty;
2
2
  var wn = (e, t, n) => t in e ? kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var vt = (e, t, n) => (wn(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import { inject as st, ref as $, reactive as Se, readonly as mt, toRaw as _n, defineComponent as J, openBlock as z, createElementBlock as P, createCommentVNode as Y, createElementVNode as X, unref as x, onMounted as Ue, onDeactivated as Tn, onActivated as xn, onUnmounted as Ve, createVNode as N, resolveComponent as qt, normalizeClass as ie, withModifiers as ve, toDisplayString as Gt, normalizeStyle as ot, Fragment as Fe, renderList as it, createBlock as ae, nextTick as Ht, computed as pe, renderSlot as me, watch as Sn, withDirectives as Zt, vShow as Xt, withCtx as oe, TransitionGroup as Yt, mergeProps as On, Transition as Jt, provide as En, onBeforeMount as An, onBeforeUnmount as In, KeepAlive as Bn, resolveDynamicComponent as Cn, getCurrentInstance as Kt } from "vue";
4
+ import { inject as st, ref as R, reactive as Se, readonly as mt, toRaw as _n, defineComponent as Y, openBlock as z, createElementBlock as P, createCommentVNode as ee, createElementVNode as X, unref as S, onMounted as Ue, onDeactivated as Tn, onActivated as xn, onUnmounted as Ve, createVNode as N, resolveComponent as qt, normalizeClass as ie, withModifiers as ve, toDisplayString as Gt, normalizeStyle as ot, Fragment as Fe, renderList as it, createBlock as de, nextTick as Ht, computed as pe, renderSlot as me, watch as Sn, withDirectives as Zt, vShow as Xt, withCtx as oe, TransitionGroup as Yt, mergeProps as On, Transition as Jt, provide as En, onBeforeMount as An, onBeforeUnmount as In, KeepAlive as Bn, resolveDynamicComponent as Cn, getCurrentInstance as Kt } from "vue";
5
5
  import { useRouter as at, useRoute as Mn } from "vue-router";
6
6
  const Ln = {
7
7
  VueStackTab: {
@@ -106,7 +106,7 @@ function qe() {
106
106
  return st(en);
107
107
  }
108
108
  function Gn(e) {
109
- const t = Object.assign({ locale: "en", fallbackLocale: "en", messages: {} }, e), n = $(t.locale), r = Se({});
109
+ const t = Object.assign({ locale: "en", fallbackLocale: "en", messages: {} }, e), n = R(t.locale), r = Se({});
110
110
  return Object.entries(t.messages).forEach(([s, o]) => {
111
111
  r[s] = o;
112
112
  }), {
@@ -116,8 +116,8 @@ function Gn(e) {
116
116
  const i = typeof o == "string" && o ? o : n.value;
117
117
  let u = gt(r[i], s) || gt(r[t.fallbackLocale], s);
118
118
  if (o && typeof o != "string") {
119
- const c = Un(u, o);
120
- Dn(c) || (u = Vn(u, c));
119
+ const a = Un(u, o);
120
+ Dn(a) || (u = Vn(u, a));
121
121
  }
122
122
  return u || s;
123
123
  },
@@ -200,7 +200,7 @@ const nn = (e = ".stack-tab__container *") => {
200
200
  );
201
201
  return t.length ? Math.max(...t.filter((n) => n < 9e4)) + 1 : 1;
202
202
  };
203
- var ue = /* @__PURE__ */ ((e) => (e.WHEEL = "wheel", e.BUTTON = "button", e.BOTH = "both", e))(ue || {});
203
+ var le = /* @__PURE__ */ ((e) => (e.WHEEL = "wheel", e.BUTTON = "button", e.BOTH = "both", e))(le || {});
204
204
  class He {
205
205
  //
206
206
  constructor(t) {
@@ -412,19 +412,19 @@ lt.exports;
412
412
  (function(e) {
413
413
  var t = function() {
414
414
  var n = String.fromCharCode, r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", o = {};
415
- function i(c, l) {
416
- if (!o[c]) {
417
- o[c] = {};
418
- for (var h = 0; h < c.length; h++)
419
- o[c][c.charAt(h)] = h;
415
+ function i(a, l) {
416
+ if (!o[a]) {
417
+ o[a] = {};
418
+ for (var h = 0; h < a.length; h++)
419
+ o[a][a.charAt(h)] = h;
420
420
  }
421
- return o[c][l];
421
+ return o[a][l];
422
422
  }
423
423
  var u = {
424
- compressToBase64: function(c) {
425
- if (c == null)
424
+ compressToBase64: function(a) {
425
+ if (a == null)
426
426
  return "";
427
- var l = u._compress(c, 6, function(h) {
427
+ var l = u._compress(a, 6, function(h) {
428
428
  return r.charAt(h);
429
429
  });
430
430
  switch (l.length % 4) {
@@ -439,163 +439,163 @@ lt.exports;
439
439
  return l + "=";
440
440
  }
441
441
  },
442
- decompressFromBase64: function(c) {
443
- return c == null ? "" : c == "" ? null : u._decompress(c.length, 32, function(l) {
444
- return i(r, c.charAt(l));
442
+ decompressFromBase64: function(a) {
443
+ return a == null ? "" : a == "" ? null : u._decompress(a.length, 32, function(l) {
444
+ return i(r, a.charAt(l));
445
445
  });
446
446
  },
447
- compressToUTF16: function(c) {
448
- return c == null ? "" : u._compress(c, 15, function(l) {
447
+ compressToUTF16: function(a) {
448
+ return a == null ? "" : u._compress(a, 15, function(l) {
449
449
  return n(l + 32);
450
450
  }) + " ";
451
451
  },
452
- decompressFromUTF16: function(c) {
453
- return c == null ? "" : c == "" ? null : u._decompress(c.length, 16384, function(l) {
454
- return c.charCodeAt(l) - 32;
452
+ decompressFromUTF16: function(a) {
453
+ return a == null ? "" : a == "" ? null : u._decompress(a.length, 16384, function(l) {
454
+ return a.charCodeAt(l) - 32;
455
455
  });
456
456
  },
457
457
  //compress into uint8array (UCS-2 big endian format)
458
- compressToUint8Array: function(c) {
459
- for (var l = u.compress(c), h = new Uint8Array(l.length * 2), f = 0, d = l.length; f < d; f++) {
460
- var k = l.charCodeAt(f);
461
- h[f * 2] = k >>> 8, h[f * 2 + 1] = k % 256;
458
+ compressToUint8Array: function(a) {
459
+ for (var l = u.compress(a), h = new Uint8Array(l.length * 2), f = 0, d = l.length; f < d; f++) {
460
+ var y = l.charCodeAt(f);
461
+ h[f * 2] = y >>> 8, h[f * 2 + 1] = y % 256;
462
462
  }
463
463
  return h;
464
464
  },
465
465
  //decompress from uint8array (UCS-2 big endian format)
466
- decompressFromUint8Array: function(c) {
467
- if (c == null)
468
- return u.decompress(c);
469
- for (var l = new Array(c.length / 2), h = 0, f = l.length; h < f; h++)
470
- l[h] = c[h * 2] * 256 + c[h * 2 + 1];
466
+ decompressFromUint8Array: function(a) {
467
+ if (a == null)
468
+ return u.decompress(a);
469
+ for (var l = new Array(a.length / 2), h = 0, f = l.length; h < f; h++)
470
+ l[h] = a[h * 2] * 256 + a[h * 2 + 1];
471
471
  var d = [];
472
- return l.forEach(function(k) {
473
- d.push(n(k));
472
+ return l.forEach(function(y) {
473
+ d.push(n(y));
474
474
  }), u.decompress(d.join(""));
475
475
  },
476
476
  //compress into a string that is already URI encoded
477
- compressToEncodedURIComponent: function(c) {
478
- return c == null ? "" : u._compress(c, 6, function(l) {
477
+ compressToEncodedURIComponent: function(a) {
478
+ return a == null ? "" : u._compress(a, 6, function(l) {
479
479
  return s.charAt(l);
480
480
  });
481
481
  },
482
482
  //decompress from an output of compressToEncodedURIComponent
483
- decompressFromEncodedURIComponent: function(c) {
484
- return c == null ? "" : c == "" ? null : (c = c.replace(/ /g, "+"), u._decompress(c.length, 32, function(l) {
485
- return i(s, c.charAt(l));
483
+ decompressFromEncodedURIComponent: function(a) {
484
+ return a == null ? "" : a == "" ? null : (a = a.replace(/ /g, "+"), u._decompress(a.length, 32, function(l) {
485
+ return i(s, a.charAt(l));
486
486
  }));
487
487
  },
488
- compress: function(c) {
489
- return u._compress(c, 16, function(l) {
488
+ compress: function(a) {
489
+ return u._compress(a, 16, function(l) {
490
490
  return n(l);
491
491
  });
492
492
  },
493
- _compress: function(c, l, h) {
494
- if (c == null)
493
+ _compress: function(a, l, h) {
494
+ if (a == null)
495
495
  return "";
496
- var f, d, k = {}, S = {}, B = "", I = "", _ = "", T = 2, y = 3, v = 2, E = [], a = 0, p = 0, m;
497
- for (m = 0; m < c.length; m += 1)
498
- if (B = c.charAt(m), Object.prototype.hasOwnProperty.call(k, B) || (k[B] = y++, S[B] = !0), I = _ + B, Object.prototype.hasOwnProperty.call(k, I))
499
- _ = I;
496
+ var f, d, y = {}, O = {}, B = "", I = "", T = "", w = 2, _ = 3, g = 2, x = [], c = 0, p = 0, v;
497
+ for (v = 0; v < a.length; v += 1)
498
+ if (B = a.charAt(v), Object.prototype.hasOwnProperty.call(y, B) || (y[B] = _++, O[B] = !0), I = T + B, Object.prototype.hasOwnProperty.call(y, I))
499
+ T = I;
500
500
  else {
501
- if (Object.prototype.hasOwnProperty.call(S, _)) {
502
- if (_.charCodeAt(0) < 256) {
503
- for (f = 0; f < v; f++)
504
- a = a << 1, p == l - 1 ? (p = 0, E.push(h(a)), a = 0) : p++;
505
- for (d = _.charCodeAt(0), f = 0; f < 8; f++)
506
- a = a << 1 | d & 1, p == l - 1 ? (p = 0, E.push(h(a)), a = 0) : p++, d = d >> 1;
501
+ if (Object.prototype.hasOwnProperty.call(O, T)) {
502
+ if (T.charCodeAt(0) < 256) {
503
+ for (f = 0; f < g; f++)
504
+ c = c << 1, p == l - 1 ? (p = 0, x.push(h(c)), c = 0) : p++;
505
+ for (d = T.charCodeAt(0), f = 0; f < 8; f++)
506
+ c = c << 1 | d & 1, p == l - 1 ? (p = 0, x.push(h(c)), c = 0) : p++, d = d >> 1;
507
507
  } else {
508
- for (d = 1, f = 0; f < v; f++)
509
- a = a << 1 | d, p == l - 1 ? (p = 0, E.push(h(a)), a = 0) : p++, d = 0;
510
- for (d = _.charCodeAt(0), f = 0; f < 16; f++)
511
- a = a << 1 | d & 1, p == l - 1 ? (p = 0, E.push(h(a)), a = 0) : p++, d = d >> 1;
508
+ for (d = 1, f = 0; f < g; f++)
509
+ c = c << 1 | d, p == l - 1 ? (p = 0, x.push(h(c)), c = 0) : p++, d = 0;
510
+ for (d = T.charCodeAt(0), f = 0; f < 16; f++)
511
+ c = c << 1 | d & 1, p == l - 1 ? (p = 0, x.push(h(c)), c = 0) : p++, d = d >> 1;
512
512
  }
513
- T--, T == 0 && (T = Math.pow(2, v), v++), delete S[_];
513
+ w--, w == 0 && (w = Math.pow(2, g), g++), delete O[T];
514
514
  } else
515
- for (d = k[_], f = 0; f < v; f++)
516
- a = a << 1 | d & 1, p == l - 1 ? (p = 0, E.push(h(a)), a = 0) : p++, d = d >> 1;
517
- T--, T == 0 && (T = Math.pow(2, v), v++), k[I] = y++, _ = String(B);
515
+ for (d = y[T], f = 0; f < g; f++)
516
+ c = c << 1 | d & 1, p == l - 1 ? (p = 0, x.push(h(c)), c = 0) : p++, d = d >> 1;
517
+ w--, w == 0 && (w = Math.pow(2, g), g++), y[I] = _++, T = String(B);
518
518
  }
519
- if (_ !== "") {
520
- if (Object.prototype.hasOwnProperty.call(S, _)) {
521
- if (_.charCodeAt(0) < 256) {
522
- for (f = 0; f < v; f++)
523
- a = a << 1, p == l - 1 ? (p = 0, E.push(h(a)), a = 0) : p++;
524
- for (d = _.charCodeAt(0), f = 0; f < 8; f++)
525
- a = a << 1 | d & 1, p == l - 1 ? (p = 0, E.push(h(a)), a = 0) : p++, d = d >> 1;
519
+ if (T !== "") {
520
+ if (Object.prototype.hasOwnProperty.call(O, T)) {
521
+ if (T.charCodeAt(0) < 256) {
522
+ for (f = 0; f < g; f++)
523
+ c = c << 1, p == l - 1 ? (p = 0, x.push(h(c)), c = 0) : p++;
524
+ for (d = T.charCodeAt(0), f = 0; f < 8; f++)
525
+ c = c << 1 | d & 1, p == l - 1 ? (p = 0, x.push(h(c)), c = 0) : p++, d = d >> 1;
526
526
  } else {
527
- for (d = 1, f = 0; f < v; f++)
528
- a = a << 1 | d, p == l - 1 ? (p = 0, E.push(h(a)), a = 0) : p++, d = 0;
529
- for (d = _.charCodeAt(0), f = 0; f < 16; f++)
530
- a = a << 1 | d & 1, p == l - 1 ? (p = 0, E.push(h(a)), a = 0) : p++, d = d >> 1;
527
+ for (d = 1, f = 0; f < g; f++)
528
+ c = c << 1 | d, p == l - 1 ? (p = 0, x.push(h(c)), c = 0) : p++, d = 0;
529
+ for (d = T.charCodeAt(0), f = 0; f < 16; f++)
530
+ c = c << 1 | d & 1, p == l - 1 ? (p = 0, x.push(h(c)), c = 0) : p++, d = d >> 1;
531
531
  }
532
- T--, T == 0 && (T = Math.pow(2, v), v++), delete S[_];
532
+ w--, w == 0 && (w = Math.pow(2, g), g++), delete O[T];
533
533
  } else
534
- for (d = k[_], f = 0; f < v; f++)
535
- a = a << 1 | d & 1, p == l - 1 ? (p = 0, E.push(h(a)), a = 0) : p++, d = d >> 1;
536
- T--, T == 0 && (T = Math.pow(2, v), v++);
534
+ for (d = y[T], f = 0; f < g; f++)
535
+ c = c << 1 | d & 1, p == l - 1 ? (p = 0, x.push(h(c)), c = 0) : p++, d = d >> 1;
536
+ w--, w == 0 && (w = Math.pow(2, g), g++);
537
537
  }
538
- for (d = 2, f = 0; f < v; f++)
539
- a = a << 1 | d & 1, p == l - 1 ? (p = 0, E.push(h(a)), a = 0) : p++, d = d >> 1;
538
+ for (d = 2, f = 0; f < g; f++)
539
+ c = c << 1 | d & 1, p == l - 1 ? (p = 0, x.push(h(c)), c = 0) : p++, d = d >> 1;
540
540
  for (; ; )
541
- if (a = a << 1, p == l - 1) {
542
- E.push(h(a));
541
+ if (c = c << 1, p == l - 1) {
542
+ x.push(h(c));
543
543
  break;
544
544
  } else
545
545
  p++;
546
- return E.join("");
546
+ return x.join("");
547
547
  },
548
- decompress: function(c) {
549
- return c == null ? "" : c == "" ? null : u._decompress(c.length, 32768, function(l) {
550
- return c.charCodeAt(l);
548
+ decompress: function(a) {
549
+ return a == null ? "" : a == "" ? null : u._decompress(a.length, 32768, function(l) {
550
+ return a.charCodeAt(l);
551
551
  });
552
552
  },
553
- _decompress: function(c, l, h) {
554
- var f = [], d = 4, k = 4, S = 3, B = "", I = [], _, T, y, v, E, a, p, m = { val: h(0), position: l, index: 1 };
555
- for (_ = 0; _ < 3; _ += 1)
556
- f[_] = _;
557
- for (y = 0, E = Math.pow(2, 2), a = 1; a != E; )
558
- v = m.val & m.position, m.position >>= 1, m.position == 0 && (m.position = l, m.val = h(m.index++)), y |= (v > 0 ? 1 : 0) * a, a <<= 1;
559
- switch (y) {
553
+ _decompress: function(a, l, h) {
554
+ var f = [], d = 4, y = 4, O = 3, B = "", I = [], T, w, _, g, x, c, p, v = { val: h(0), position: l, index: 1 };
555
+ for (T = 0; T < 3; T += 1)
556
+ f[T] = T;
557
+ for (_ = 0, x = Math.pow(2, 2), c = 1; c != x; )
558
+ g = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = l, v.val = h(v.index++)), _ |= (g > 0 ? 1 : 0) * c, c <<= 1;
559
+ switch (_) {
560
560
  case 0:
561
- for (y = 0, E = Math.pow(2, 8), a = 1; a != E; )
562
- v = m.val & m.position, m.position >>= 1, m.position == 0 && (m.position = l, m.val = h(m.index++)), y |= (v > 0 ? 1 : 0) * a, a <<= 1;
563
- p = n(y);
561
+ for (_ = 0, x = Math.pow(2, 8), c = 1; c != x; )
562
+ g = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = l, v.val = h(v.index++)), _ |= (g > 0 ? 1 : 0) * c, c <<= 1;
563
+ p = n(_);
564
564
  break;
565
565
  case 1:
566
- for (y = 0, E = Math.pow(2, 16), a = 1; a != E; )
567
- v = m.val & m.position, m.position >>= 1, m.position == 0 && (m.position = l, m.val = h(m.index++)), y |= (v > 0 ? 1 : 0) * a, a <<= 1;
568
- p = n(y);
566
+ for (_ = 0, x = Math.pow(2, 16), c = 1; c != x; )
567
+ g = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = l, v.val = h(v.index++)), _ |= (g > 0 ? 1 : 0) * c, c <<= 1;
568
+ p = n(_);
569
569
  break;
570
570
  case 2:
571
571
  return "";
572
572
  }
573
- for (f[3] = p, T = p, I.push(p); ; ) {
574
- if (m.index > c)
573
+ for (f[3] = p, w = p, I.push(p); ; ) {
574
+ if (v.index > a)
575
575
  return "";
576
- for (y = 0, E = Math.pow(2, S), a = 1; a != E; )
577
- v = m.val & m.position, m.position >>= 1, m.position == 0 && (m.position = l, m.val = h(m.index++)), y |= (v > 0 ? 1 : 0) * a, a <<= 1;
578
- switch (p = y) {
576
+ for (_ = 0, x = Math.pow(2, O), c = 1; c != x; )
577
+ g = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = l, v.val = h(v.index++)), _ |= (g > 0 ? 1 : 0) * c, c <<= 1;
578
+ switch (p = _) {
579
579
  case 0:
580
- for (y = 0, E = Math.pow(2, 8), a = 1; a != E; )
581
- v = m.val & m.position, m.position >>= 1, m.position == 0 && (m.position = l, m.val = h(m.index++)), y |= (v > 0 ? 1 : 0) * a, a <<= 1;
582
- f[k++] = n(y), p = k - 1, d--;
580
+ for (_ = 0, x = Math.pow(2, 8), c = 1; c != x; )
581
+ g = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = l, v.val = h(v.index++)), _ |= (g > 0 ? 1 : 0) * c, c <<= 1;
582
+ f[y++] = n(_), p = y - 1, d--;
583
583
  break;
584
584
  case 1:
585
- for (y = 0, E = Math.pow(2, 16), a = 1; a != E; )
586
- v = m.val & m.position, m.position >>= 1, m.position == 0 && (m.position = l, m.val = h(m.index++)), y |= (v > 0 ? 1 : 0) * a, a <<= 1;
587
- f[k++] = n(y), p = k - 1, d--;
585
+ for (_ = 0, x = Math.pow(2, 16), c = 1; c != x; )
586
+ g = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = l, v.val = h(v.index++)), _ |= (g > 0 ? 1 : 0) * c, c <<= 1;
587
+ f[y++] = n(_), p = y - 1, d--;
588
588
  break;
589
589
  case 2:
590
590
  return I.join("");
591
591
  }
592
- if (d == 0 && (d = Math.pow(2, S), S++), f[p])
592
+ if (d == 0 && (d = Math.pow(2, O), O++), f[p])
593
593
  B = f[p];
594
- else if (p === k)
595
- B = T + T.charAt(0);
594
+ else if (p === y)
595
+ B = w + w.charAt(0);
596
596
  else
597
597
  return null;
598
- I.push(B), f[k++] = T + B.charAt(0), d--, T = B, d == 0 && (d = Math.pow(2, S), S++);
598
+ I.push(B), f[y++] = w + B.charAt(0), d--, w = B, d == 0 && (d = Math.pow(2, O), O++);
599
599
  }
600
600
  }
601
601
  };
@@ -714,16 +714,16 @@ class vr extends pr {
714
714
  const { blockLen: n, buffer: r, buffer32: s } = this;
715
715
  t = ut(t);
716
716
  const o = t.length, i = t.byteOffset, u = t.buffer;
717
- for (let c = 0; c < o; ) {
717
+ for (let a = 0; a < o; ) {
718
718
  this.pos === n && (this.compress(s, 0, !1), this.pos = 0);
719
- const l = Math.min(n - this.pos, o - c), h = i + c;
720
- if (l === n && !(h % 4) && c + l < o) {
721
- const f = new Uint32Array(u, h, Math.floor((o - c) / 4));
722
- for (let d = 0; c + n < o; d += s.length, c += n)
719
+ const l = Math.min(n - this.pos, o - a), h = i + a;
720
+ if (l === n && !(h % 4) && a + l < o) {
721
+ const f = new Uint32Array(u, h, Math.floor((o - a) / 4));
722
+ for (let d = 0; a + n < o; d += s.length, a += n)
723
723
  this.length += n, this.compress(f, d, !1);
724
724
  continue;
725
725
  }
726
- r.set(t.subarray(c, c + l), this.pos), this.pos += l, this.length += l, c += l;
726
+ r.set(t.subarray(a, a + l), this.pos), this.pos += l, this.length += l, a += l;
727
727
  }
728
728
  return this;
729
729
  }
@@ -745,18 +745,18 @@ class vr extends pr {
745
745
  return t || (t = new this.constructor({ dkLen: i })), t.set(...this.get()), t.length = r, t.finished = s, t.destroyed = o, t.outputLen = i, t.buffer.set(n), t.pos = u, t;
746
746
  }
747
747
  }
748
- const Q = /* @__PURE__ */ new Uint32Array([1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225]);
748
+ const K = /* @__PURE__ */ new Uint32Array([1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225]);
749
749
  function te(e, t, n, r, s) {
750
750
  return e = e + t + s | 0, r = De(r ^ e, 16), n = n + r | 0, t = De(t ^ n, 12), { a: e, b: t, c: n, d: r };
751
751
  }
752
752
  function ne(e, t, n, r, s) {
753
753
  return e = e + t + s | 0, r = De(r ^ e, 8), n = n + r | 0, t = De(t ^ n, 7), { a: e, b: t, c: n, d: r };
754
754
  }
755
- function Tt(e, t, n, r, s, o, i, u, c, l, h, f, d, k, S, B, I, _, T, y) {
756
- let v = 0;
757
- for (let E = 0; E < r; E++)
758
- ({ a: s, b: c, c: d, d: I } = te(s, c, d, I, n[t + e[v++]])), { a: s, b: c, c: d, d: I } = ne(s, c, d, I, n[t + e[v++]]), { a: o, b: l, c: k, d: _ } = te(o, l, k, _, n[t + e[v++]]), { a: o, b: l, c: k, d: _ } = ne(o, l, k, _, n[t + e[v++]]), { a: i, b: h, c: S, d: T } = te(i, h, S, T, n[t + e[v++]]), { a: i, b: h, c: S, d: T } = ne(i, h, S, T, n[t + e[v++]]), { a: u, b: f, c: B, d: y } = te(u, f, B, y, n[t + e[v++]]), { a: u, b: f, c: B, d: y } = ne(u, f, B, y, n[t + e[v++]]), { a: s, b: l, c: S, d: y } = te(s, l, S, y, n[t + e[v++]]), { a: s, b: l, c: S, d: y } = ne(s, l, S, y, n[t + e[v++]]), { a: o, b: h, c: B, d: I } = te(o, h, B, I, n[t + e[v++]]), { a: o, b: h, c: B, d: I } = ne(o, h, B, I, n[t + e[v++]]), { a: i, b: f, c: d, d: _ } = te(i, f, d, _, n[t + e[v++]]), { a: i, b: f, c: d, d: _ } = ne(i, f, d, _, n[t + e[v++]]), { a: u, b: c, c: k, d: T } = te(u, c, k, T, n[t + e[v++]]), { a: u, b: c, c: k, d: T } = ne(u, c, k, T, n[t + e[v++]]);
759
- return { v0: s, v1: o, v2: i, v3: u, v4: c, v5: l, v6: h, v7: f, v8: d, v9: k, v10: S, v11: B, v12: I, v13: _, v14: T, v15: y };
755
+ function Tt(e, t, n, r, s, o, i, u, a, l, h, f, d, y, O, B, I, T, w, _) {
756
+ let g = 0;
757
+ for (let x = 0; x < r; x++)
758
+ ({ a: s, b: a, c: d, d: I } = te(s, a, d, I, n[t + e[g++]])), { a: s, b: a, c: d, d: I } = ne(s, a, d, I, n[t + e[g++]]), { a: o, b: l, c: y, d: T } = te(o, l, y, T, n[t + e[g++]]), { a: o, b: l, c: y, d: T } = ne(o, l, y, T, n[t + e[g++]]), { a: i, b: h, c: O, d: w } = te(i, h, O, w, n[t + e[g++]]), { a: i, b: h, c: O, d: w } = ne(i, h, O, w, n[t + e[g++]]), { a: u, b: f, c: B, d: _ } = te(u, f, B, _, n[t + e[g++]]), { a: u, b: f, c: B, d: _ } = ne(u, f, B, _, n[t + e[g++]]), { a: s, b: l, c: O, d: _ } = te(s, l, O, _, n[t + e[g++]]), { a: s, b: l, c: O, d: _ } = ne(s, l, O, _, n[t + e[g++]]), { a: o, b: h, c: B, d: I } = te(o, h, B, I, n[t + e[g++]]), { a: o, b: h, c: B, d: I } = ne(o, h, B, I, n[t + e[g++]]), { a: i, b: f, c: d, d: T } = te(i, f, d, T, n[t + e[g++]]), { a: i, b: f, c: d, d: T } = ne(i, f, d, T, n[t + e[g++]]), { a: u, b: a, c: y, d: w } = te(u, a, y, w, n[t + e[g++]]), { a: u, b: a, c: y, d: w } = ne(u, a, y, w, n[t + e[g++]]);
759
+ return { v0: s, v1: o, v2: i, v3: u, v4: a, v5: l, v6: h, v7: f, v8: d, v9: y, v10: O, v11: B, v12: I, v13: T, v14: w, v15: _ };
760
760
  }
761
761
  const xt = /* @__PURE__ */ (() => {
762
762
  const e = Array.from({ length: 16 }, (r, s) => s), t = (r) => [2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8].map((s) => r[s]), n = [];
@@ -781,7 +781,7 @@ class ft extends vr {
781
781
  ).update(t.context).digest();
782
782
  this.IV = Pe(r), this.flags = n | 64;
783
783
  } else
784
- this.IV = Q.slice(), this.flags = n;
784
+ this.IV = K.slice(), this.flags = n;
785
785
  this.state = this.IV.slice(), this.bufferOut = ur(this.bufferOut32);
786
786
  }
787
787
  // Unused
@@ -791,8 +791,8 @@ class ft extends vr {
791
791
  set() {
792
792
  }
793
793
  b2Compress(t, n, r, s = 0) {
794
- const { state: o, pos: i } = this, { h: u, l: c } = _t(BigInt(t), !0), { v0: l, v1: h, v2: f, v3: d, v4: k, v5: S, v6: B, v7: I, v8: _, v9: T, v10: y, v11: v, v12: E, v13: a, v14: p, v15: m } = Tt(xt, s, r, 7, o[0], o[1], o[2], o[3], o[4], o[5], o[6], o[7], Q[0], Q[1], Q[2], Q[3], u, c, i, n);
795
- o[0] = l ^ _, o[1] = h ^ T, o[2] = f ^ y, o[3] = d ^ v, o[4] = k ^ E, o[5] = S ^ a, o[6] = B ^ p, o[7] = I ^ m;
794
+ const { state: o, pos: i } = this, { h: u, l: a } = _t(BigInt(t), !0), { v0: l, v1: h, v2: f, v3: d, v4: y, v5: O, v6: B, v7: I, v8: T, v9: w, v10: _, v11: g, v12: x, v13: c, v14: p, v15: v } = Tt(xt, s, r, 7, o[0], o[1], o[2], o[3], o[4], o[5], o[6], o[7], K[0], K[1], K[2], K[3], u, a, i, n);
795
+ o[0] = l ^ T, o[1] = h ^ w, o[2] = f ^ _, o[3] = d ^ g, o[4] = y ^ x, o[5] = O ^ c, o[6] = B ^ p, o[7] = I ^ v;
796
796
  }
797
797
  compress(t, n = 0, r = !1) {
798
798
  let s = this.flags;
@@ -807,8 +807,8 @@ class ft extends vr {
807
807
  }
808
808
  _cloneInto(t) {
809
809
  t = super._cloneInto(t);
810
- const { IV: n, flags: r, state: s, chunkPos: o, posOut: i, chunkOut: u, stack: c, chunksDone: l } = this;
811
- return t.state.set(s.slice()), t.stack = c.map((h) => Uint32Array.from(h)), t.IV.set(n), t.flags = r, t.chunkPos = o, t.chunksDone = l, t.posOut = i, t.chunkOut = u, t.enableXOF = this.enableXOF, t.bufferOut32.set(this.bufferOut32), t;
810
+ const { IV: n, flags: r, state: s, chunkPos: o, posOut: i, chunkOut: u, stack: a, chunksDone: l } = this;
811
+ return t.state.set(s.slice()), t.stack = a.map((h) => Uint32Array.from(h)), t.IV.set(n), t.flags = r, t.chunkPos = o, t.chunksDone = l, t.posOut = i, t.chunkOut = u, t.enableXOF = this.enableXOF, t.bufferOut32.set(this.bufferOut32), t;
812
812
  }
813
813
  destroy() {
814
814
  this.destroyed = !0, this.state.fill(0), this.buffer32.fill(0), this.IV.fill(0), this.bufferOut32.fill(0);
@@ -817,8 +817,8 @@ class ft extends vr {
817
817
  }
818
818
  // Same as b2Compress, but doesn't modify state and returns 16 u32 array (instead of 8)
819
819
  b2CompressOut() {
820
- const { state: t, pos: n, flags: r, buffer32: s, bufferOut32: o } = this, { h: i, l: u } = _t(BigInt(this.chunkOut++)), { v0: c, v1: l, v2: h, v3: f, v4: d, v5: k, v6: S, v7: B, v8: I, v9: _, v10: T, v11: y, v12: v, v13: E, v14: a, v15: p } = Tt(xt, 0, s, 7, t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7], Q[0], Q[1], Q[2], Q[3], u, i, n, r);
821
- o[0] = c ^ I, o[1] = l ^ _, o[2] = h ^ T, o[3] = f ^ y, o[4] = d ^ v, o[5] = k ^ E, o[6] = S ^ a, o[7] = B ^ p, o[8] = t[0] ^ I, o[9] = t[1] ^ _, o[10] = t[2] ^ T, o[11] = t[3] ^ y, o[12] = t[4] ^ v, o[13] = t[5] ^ E, o[14] = t[6] ^ a, o[15] = t[7] ^ p, this.posOut = 0;
820
+ const { state: t, pos: n, flags: r, buffer32: s, bufferOut32: o } = this, { h: i, l: u } = _t(BigInt(this.chunkOut++)), { v0: a, v1: l, v2: h, v3: f, v4: d, v5: y, v6: O, v7: B, v8: I, v9: T, v10: w, v11: _, v12: g, v13: x, v14: c, v15: p } = Tt(xt, 0, s, 7, t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7], K[0], K[1], K[2], K[3], u, i, n, r);
821
+ o[0] = a ^ I, o[1] = l ^ T, o[2] = h ^ w, o[3] = f ^ _, o[4] = d ^ g, o[5] = y ^ x, o[6] = O ^ c, o[7] = B ^ p, o[8] = t[0] ^ I, o[9] = t[1] ^ T, o[10] = t[2] ^ w, o[11] = t[3] ^ _, o[12] = t[4] ^ g, o[13] = t[5] ^ x, o[14] = t[6] ^ c, o[15] = t[7] ^ p, this.posOut = 0;
822
822
  }
823
823
  finish() {
824
824
  if (this.finished)
@@ -909,7 +909,7 @@ function yr(e) {
909
909
  t.reduce((n, r) => tt(n, r, "", e), {})
910
910
  );
911
911
  }
912
- const ee = yr(), dt = (e) => {
912
+ const Q = yr(), dt = (e) => {
913
913
  const t = e.split("?");
914
914
  if (t.length <= 1)
915
915
  return {
@@ -955,40 +955,40 @@ const Tr = {
955
955
  class: "stack-tab-loading-mask"
956
956
  }, xr = /* @__PURE__ */ X("div", { class: "stack-tab-loading--spin turn" }, null, -1), Sr = [
957
957
  xr
958
- ], Or = /* @__PURE__ */ J({
958
+ ], Or = /* @__PURE__ */ Y({
959
959
  __name: "PageLoading",
960
960
  props: {
961
961
  tId: {}
962
962
  },
963
963
  setup(e) {
964
- const t = e, n = Ee(), r = $(!1);
964
+ const t = e, n = Ee(), r = R(!1);
965
965
  return n.on(V.PAGE_LOADING, ({ tId: s, value: o }) => {
966
966
  s === t.tId && (r.value = o);
967
- }), (s, o) => r.value ? (z(), P("div", Tr, Sr)) : Y("", !0);
967
+ }), (s, o) => r.value ? (z(), P("div", Tr, Sr)) : ee("", !0);
968
968
  }
969
- }), M = $([]), Ce = [], R = $([]), re = /* @__PURE__ */ new Map(), ge = /* @__PURE__ */ new Set(), Me = $(!0), Ot = "stacktab-active-tab", le = /* @__PURE__ */ new Map();
969
+ }), M = R([]), Ce = [], $ = R([]), re = /* @__PURE__ */ new Map(), ge = /* @__PURE__ */ new Set(), Me = R(!0), Ot = "stacktab-active-tab", ce = /* @__PURE__ */ new Map();
970
970
  let Et = !1, Le = 0, At = !1;
971
971
  const Ae = () => {
972
- const e = at(), t = Ee(), n = () => M.value.length, r = (w) => {
973
- Ce.splice(0), R.value.splice(0), ge.clear(), re.clear();
974
- for (const O of w) {
975
- const g = ee(O, {
972
+ const e = at(), t = Ee(), n = () => M.value.length, r = (k) => {
973
+ Ce.splice(0), $.value.splice(0), ge.clear(), re.clear();
974
+ for (const E of k) {
975
+ const m = Q(E, {
976
976
  id: sn()
977
- }), C = un(g), D = dt(g.path), W = ee(g, {
977
+ }), C = un(m), D = dt(m.path), W = Q(m, {
978
978
  closable: !0,
979
979
  refreshable: !0,
980
980
  iframe: !1
981
- }), he = St(g.id, D.path, D.query), K = {
981
+ }), he = St(m.id, D.path, D.query), J = {
982
982
  id: he,
983
- tabId: g.id,
983
+ tabId: m.id,
984
984
  path: D.path,
985
- query: ee(D.query, {
985
+ query: Q(D.query, {
986
986
  __tab: C
987
987
  })
988
988
  }, Ie = new He();
989
- Ie.push(K);
989
+ Ie.push(J);
990
990
  const bt = {
991
- id: g.id,
991
+ id: m.id,
992
992
  title: W.title,
993
993
  closable: W.closable,
994
994
  refreshable: W.refreshable,
@@ -996,64 +996,64 @@ const Ae = () => {
996
996
  active: !1,
997
997
  pages: Ie
998
998
  };
999
- Ce.push(bt), M.value.push(bt), R.value.push(he);
999
+ Ce.push(bt), M.value.push(bt), $.value.push(he);
1000
1000
  }
1001
1001
  const b = window.sessionStorage.getItem(Ot);
1002
1002
  if (b != null) {
1003
- const O = JSON.parse(b, (C, D) => C === "pages" ? new He(D) : D);
1004
- let g = !1;
1003
+ const E = JSON.parse(b, (C, D) => C === "pages" ? new He(D) : D);
1004
+ let m = !1;
1005
1005
  for (const C of M.value)
1006
- if (C.id === O.id) {
1007
- g = !0;
1006
+ if (C.id === E.id) {
1007
+ m = !0;
1008
1008
  break;
1009
1009
  }
1010
- g || M.value.push(O);
1010
+ m || M.value.push(E);
1011
1011
  }
1012
1012
  Et = !0;
1013
- }, s = (w) => {
1013
+ }, s = (k) => {
1014
1014
  for (const b of M.value)
1015
- if (b.id === w)
1015
+ if (b.id === k)
1016
1016
  return !0;
1017
1017
  return !1;
1018
- }, o = () => Le <= 0 || Le > 0 && Le > M.value.length, i = (w) => new Promise((b) => {
1019
- M.value.push(w), b(!0);
1020
- }), u = (w) => {
1018
+ }, o = () => Le <= 0 || Le > 0 && Le > M.value.length, i = (k) => new Promise((b) => {
1019
+ M.value.push(k), b(!0);
1020
+ }), u = (k) => {
1021
1021
  for (const b of M.value)
1022
- if (b.id === w)
1022
+ if (b.id === k)
1023
1023
  return b;
1024
1024
  return null;
1025
- }, c = (w, b) => {
1026
- let O;
1027
- const g = gr(w.query.__tab), C = St(g.id, w.path, w.query.valueOf()), D = w.query.__src;
1025
+ }, a = (k, b) => {
1026
+ let E;
1027
+ const m = gr(k.query.__tab), C = St(m.id, k.path, k.query.valueOf()), D = k.query.__src;
1028
1028
  let W = null;
1029
- for (const K of x(M))
1030
- K.active = !1, K.id === g.id && (W = K);
1029
+ for (const J of S(M))
1030
+ J.active = !1, J.id === m.id && (W = J);
1031
1031
  const he = {
1032
1032
  id: C,
1033
- tabId: g.id,
1034
- path: w.path,
1035
- query: w.query
1033
+ tabId: m.id,
1034
+ path: k.path,
1035
+ query: k.query
1036
1036
  };
1037
1037
  if (W === null) {
1038
- const K = new He();
1039
- K.push(he), W = {
1040
- id: g.id,
1041
- title: g.title,
1042
- closable: g.closable,
1043
- refreshable: g.refreshable,
1044
- iframe: g.iframe,
1038
+ const J = new He();
1039
+ J.push(he), W = {
1040
+ id: m.id,
1041
+ title: m.title,
1042
+ closable: m.closable,
1043
+ refreshable: m.refreshable,
1044
+ iframe: m.iframe,
1045
1045
  url: decodeURIComponent(D),
1046
1046
  active: !0,
1047
- pages: K
1047
+ pages: J
1048
1048
  }, i(W).then(() => {
1049
1049
  t.emit(V.TAB_ACTIVE, {
1050
- id: g.id,
1050
+ id: m.id,
1051
1051
  isRoute: !1
1052
1052
  });
1053
1053
  });
1054
1054
  } else
1055
1055
  W.active = !0, (W.pages.isEmpty() || W.pages.peek().id !== he.id) && W.pages.push(he);
1056
- return A(W), re.has(C) ? O = re.get(C) : (O = /* @__PURE__ */ J({
1056
+ return A(W), re.has(C) ? E = re.get(C) : (E = /* @__PURE__ */ Y({
1057
1057
  name: C,
1058
1058
  components: {
1059
1059
  DynamicComponent: b
@@ -1061,187 +1061,187 @@ const Ae = () => {
1061
1061
  emits: {
1062
1062
  onLoaded: null
1063
1063
  },
1064
- setup(K, Ie) {
1064
+ setup(J, Ie) {
1065
1065
  return Ue(() => {
1066
1066
  Ie.emit("onLoaded"), d(C, ".cache-page-wrapper");
1067
1067
  }), Tn(() => {
1068
1068
  h(C);
1069
1069
  }), xn(() => {
1070
- l(C), m(), b.props = null;
1070
+ l(C), v(), b.props = null;
1071
1071
  }), Ve(() => {
1072
1072
  f(C);
1073
1073
  }), () => N("div", {
1074
1074
  class: "cache-page-wrapper",
1075
- id: "W-" + g.id,
1075
+ id: "W-" + m.id,
1076
1076
  style: [At ? "overflow:auto" : "overflow:hidden"]
1077
1077
  }, [N(qt("dynamic-component"), {
1078
- tId: g.id,
1078
+ tId: m.id,
1079
1079
  pId: C
1080
1080
  }, null), N(Or, {
1081
- tId: g.id
1081
+ tId: m.id
1082
1082
  }, null)]);
1083
1083
  }
1084
- }), re.set(C, O)), F(C), O;
1085
- }, l = (w) => {
1086
- const b = le.get(w);
1084
+ }), re.set(C, E)), F(C), E;
1085
+ }, l = (k) => {
1086
+ const b = ce.get(k);
1087
1087
  if (b) {
1088
- for (const O of b.keys())
1089
- if (document.querySelector(O)) {
1090
- const g = b.get(O);
1091
- document.querySelector(O).scrollTop = g.top, document.querySelector(O).scrollLeft = g.left;
1088
+ for (const E of b.keys())
1089
+ if (document.querySelector(E)) {
1090
+ const m = b.get(E);
1091
+ document.querySelector(E).scrollTop = m.top, document.querySelector(E).scrollLeft = m.left;
1092
1092
  }
1093
1093
  }
1094
- }, h = (w) => {
1095
- var O, g;
1096
- const b = le.get(w);
1094
+ }, h = (k) => {
1095
+ var E, m;
1096
+ const b = ce.get(k);
1097
1097
  if (b)
1098
1098
  for (const C of b.keys()) {
1099
1099
  const D = {
1100
- top: ((O = document.querySelector(C)) == null ? void 0 : O.scrollTop) ?? 0,
1101
- left: ((g = document.querySelector(C)) == null ? void 0 : g.scrollLeft) ?? 0
1100
+ top: ((E = document.querySelector(C)) == null ? void 0 : E.scrollTop) ?? 0,
1101
+ left: ((m = document.querySelector(C)) == null ? void 0 : m.scrollLeft) ?? 0
1102
1102
  };
1103
1103
  b.set(C, D);
1104
1104
  }
1105
- }, f = (w) => {
1106
- const b = le.get(w);
1107
- b && (b.clear(), le.delete(w));
1108
- }, d = (w, ...b) => {
1109
- le.has(w) || le.set(w, /* @__PURE__ */ new Map());
1110
- const O = le.get(w);
1111
- for (const g of b)
1112
- O.set(g, {
1105
+ }, f = (k) => {
1106
+ const b = ce.get(k);
1107
+ b && (b.clear(), ce.delete(k));
1108
+ }, d = (k, ...b) => {
1109
+ ce.has(k) || ce.set(k, /* @__PURE__ */ new Map());
1110
+ const E = ce.get(k);
1111
+ for (const m of b)
1112
+ E.set(m, {
1113
1113
  top: 0,
1114
1114
  left: 0
1115
1115
  });
1116
- }, k = (w) => {
1116
+ }, y = (k) => {
1117
1117
  let b = "";
1118
- for (let O = M.value.length - 1; O >= 0; O--)
1119
- if (w === x(M)[O].id) {
1120
- if (!x(M)[O].closable)
1121
- return w;
1122
- for (const g of x(M)[O].pages.list())
1123
- a(g.id), p(g.id);
1124
- x(M)[O].pages.clear(), M.value.length > 1 && x(M)[O].active && (O === 0 ? b = x(M)[O + 1].id : b = x(M)[O - 1].id), x(M).splice(O, 1);
1118
+ for (let E = M.value.length - 1; E >= 0; E--)
1119
+ if (k === S(M)[E].id) {
1120
+ if (!S(M)[E].closable)
1121
+ return k;
1122
+ for (const m of S(M)[E].pages.list())
1123
+ c(m.id), p(m.id);
1124
+ S(M)[E].pages.clear(), M.value.length > 1 && S(M)[E].active && (E === 0 ? b = S(M)[E + 1].id : b = S(M)[E - 1].id), S(M).splice(E, 1);
1125
1125
  break;
1126
1126
  }
1127
1127
  return b !== "" && t.emit(V.TAB_ACTIVE, {
1128
1128
  id: b
1129
- }), m(), b;
1130
- }, S = () => {
1131
- const w = x(M);
1132
- for (let b = w.length - 1; b >= 0; b--)
1133
- if (w[b].closable) {
1134
- for (const O of w[b].pages.list())
1135
- a(O.id), p(O.id);
1136
- x(M)[b].pages.clear(), x(M).splice(b, 1);
1129
+ }), v(), b;
1130
+ }, O = () => {
1131
+ const k = S(M);
1132
+ for (let b = k.length - 1; b >= 0; b--)
1133
+ if (k[b].closable) {
1134
+ for (const E of k[b].pages.list())
1135
+ c(E.id), p(E.id);
1136
+ S(M)[b].pages.clear(), S(M).splice(b, 1);
1137
1137
  }
1138
- for (const b of w)
1138
+ for (const b of k)
1139
1139
  if (b.active) {
1140
- m();
1140
+ v();
1141
1141
  return;
1142
1142
  }
1143
1143
  t.emit(V.TAB_ACTIVE, {
1144
- id: w[w.length - 1].id
1144
+ id: k[k.length - 1].id
1145
1145
  });
1146
- }, B = (w) => {
1147
- const b = x(M);
1148
- let O;
1149
- for (let g = b.length - 1; g >= 0; g--)
1150
- if (b[g].id === w)
1151
- O = b[g];
1152
- else if (b[g].closable && b[g].id !== w) {
1153
- for (const C of b[g].pages.list())
1154
- a(C.id), p(C.id);
1155
- x(M)[g].pages.clear(), x(M).splice(g, 1);
1146
+ }, B = (k) => {
1147
+ const b = S(M);
1148
+ let E;
1149
+ for (let m = b.length - 1; m >= 0; m--)
1150
+ if (b[m].id === k)
1151
+ E = b[m];
1152
+ else if (b[m].closable && b[m].id !== k) {
1153
+ for (const C of b[m].pages.list())
1154
+ c(C.id), p(C.id);
1155
+ S(M)[m].pages.clear(), S(M).splice(m, 1);
1156
1156
  }
1157
- O.active ? m() : t.emit(V.TAB_ACTIVE, {
1158
- id: w
1157
+ E.active ? v() : t.emit(V.TAB_ACTIVE, {
1158
+ id: k
1159
1159
  });
1160
- }, I = (w) => {
1160
+ }, I = (k) => {
1161
1161
  let b = -1;
1162
- const O = x(M);
1163
- for (let g = 0; g < O.length; g++)
1164
- if (O[g].id === w) {
1165
- b = g - 1;
1162
+ const E = S(M);
1163
+ for (let m = 0; m < E.length; m++)
1164
+ if (E[m].id === k) {
1165
+ b = m - 1;
1166
1166
  break;
1167
1167
  }
1168
- for (let g = b; g >= 0; g--)
1169
- if (O[g].closable) {
1170
- for (const C of O[g].pages.list())
1171
- a(C.id), p(C.id);
1172
- x(M)[g].pages.clear(), x(M).splice(g, 1);
1168
+ for (let m = b; m >= 0; m--)
1169
+ if (E[m].closable) {
1170
+ for (const C of E[m].pages.list())
1171
+ c(C.id), p(C.id);
1172
+ S(M)[m].pages.clear(), S(M).splice(m, 1);
1173
1173
  }
1174
- for (const g of O)
1175
- if (g.active) {
1176
- m();
1174
+ for (const m of E)
1175
+ if (m.active) {
1176
+ v();
1177
1177
  return;
1178
1178
  }
1179
1179
  t.emit(V.TAB_ACTIVE, {
1180
- id: O[0].id
1180
+ id: E[0].id
1181
1181
  });
1182
- }, _ = (w) => {
1183
- const b = x(M);
1184
- let O = b.length;
1185
- for (let g = 0; g < b.length; g++)
1186
- if (b[g].id === w) {
1187
- O = g + 1;
1182
+ }, T = (k) => {
1183
+ const b = S(M);
1184
+ let E = b.length;
1185
+ for (let m = 0; m < b.length; m++)
1186
+ if (b[m].id === k) {
1187
+ E = m + 1;
1188
1188
  break;
1189
1189
  }
1190
- for (let g = b.length - 1; g >= O; g--)
1191
- if (b[g].closable) {
1192
- for (const C of b[g].pages.list())
1193
- a(C.id), p(C.id);
1194
- x(M)[g].pages.clear(), x(M).splice(g, 1);
1190
+ for (let m = b.length - 1; m >= E; m--)
1191
+ if (b[m].closable) {
1192
+ for (const C of b[m].pages.list())
1193
+ c(C.id), p(C.id);
1194
+ S(M)[m].pages.clear(), S(M).splice(m, 1);
1195
1195
  }
1196
- for (const g of b)
1197
- if (g.active) {
1198
- m();
1196
+ for (const m of b)
1197
+ if (m.active) {
1198
+ v();
1199
1199
  return;
1200
1200
  }
1201
1201
  t.emit(V.TAB_ACTIVE, {
1202
1202
  id: b[b.length - 1].id
1203
1203
  });
1204
- }, T = (w) => {
1204
+ }, w = (k) => {
1205
1205
  var b;
1206
- for (const O of x(M))
1207
- if (O.id === w) {
1208
- const g = (b = O.pages.peek()) == null ? void 0 : b.id;
1209
- for (let C = R.value.length - 1; C >= 0; C--)
1210
- if (R.value[C] === g) {
1211
- R.value.splice(C, 1), O.active && (Me.value = !1);
1206
+ for (const E of S(M))
1207
+ if (E.id === k) {
1208
+ const m = (b = E.pages.peek()) == null ? void 0 : b.id;
1209
+ for (let C = $.value.length - 1; C >= 0; C--)
1210
+ if ($.value[C] === m) {
1211
+ $.value.splice(C, 1), E.active && (Me.value = !1);
1212
1212
  break;
1213
1213
  }
1214
1214
  break;
1215
1215
  }
1216
- }, y = () => {
1217
- const w = /* @__PURE__ */ new Set();
1216
+ }, _ = () => {
1217
+ const k = /* @__PURE__ */ new Set();
1218
1218
  M.value.forEach((b) => {
1219
- w.add(b.pages.peek().id);
1219
+ k.add(b.pages.peek().id);
1220
1220
  });
1221
- for (let b = R.value.length - 1; b >= 0; b--) {
1222
- const O = R.value[b];
1223
- w.has(O) && R.value.splice(b, 1);
1221
+ for (let b = $.value.length - 1; b >= 0; b--) {
1222
+ const E = $.value[b];
1223
+ k.has(E) && $.value.splice(b, 1);
1224
1224
  }
1225
1225
  Me.value = !1;
1226
- }, v = (w, b) => {
1227
- re.set(w, b);
1228
- }, E = (w) => re.get(w), a = (w) => {
1229
- re.delete(w);
1230
- }, p = (w) => {
1231
- ge.add(w);
1232
- }, m = () => {
1233
- for (let w = R.value.length - 1; w >= 0; w--)
1234
- ge.has(R.value[w]) && x(R).splice(w, 1);
1226
+ }, g = (k, b) => {
1227
+ re.set(k, b);
1228
+ }, x = (k) => re.get(k), c = (k) => {
1229
+ re.delete(k);
1230
+ }, p = (k) => {
1231
+ ge.add(k);
1232
+ }, v = () => {
1233
+ for (let k = $.value.length - 1; k >= 0; k--)
1234
+ ge.has($.value[k]) && S($).splice(k, 1);
1235
1235
  ge.clear();
1236
- }, j = (w) => {
1237
- for (let b = R.value.length - 1; b >= 0; b--)
1238
- w === R.value[b] && x(R).splice(b, 1);
1239
- }, F = (w) => {
1240
- new Set(R.value).has(w) || R.value.push(w);
1241
- }, q = (w, b = !0) => new Promise((O) => {
1242
- for (let g = M.value.length - 1; g >= 0; g--) {
1243
- const C = M.value[g];
1244
- if (C.id === w) {
1236
+ }, j = (k) => {
1237
+ for (let b = $.value.length - 1; b >= 0; b--)
1238
+ k === $.value[b] && S($).splice(b, 1);
1239
+ }, F = (k) => {
1240
+ new Set($.value).has(k) || $.value.push(k);
1241
+ }, q = (k, b = !0) => new Promise((E) => {
1242
+ for (let m = M.value.length - 1; m >= 0; m--) {
1243
+ const C = M.value[m];
1244
+ if (C.id === k) {
1245
1245
  if (C.active)
1246
1246
  break;
1247
1247
  if (C.active = !0, Me.value = !1, A(C), b) {
@@ -1252,25 +1252,25 @@ const Ae = () => {
1252
1252
  });
1253
1253
  }
1254
1254
  } else
1255
- M.value[g].active = !1;
1255
+ M.value[m].active = !1;
1256
1256
  }
1257
- O(!0);
1258
- }), A = (w) => {
1259
- window.sessionStorage.setItem(Ot, JSON.stringify(w));
1257
+ E(!0);
1258
+ }), A = (k) => {
1259
+ window.sessionStorage.setItem(Ot, JSON.stringify(k));
1260
1260
  }, L = () => {
1261
- U(), x(M).push(...Ce), t.emit(V.TAB_ACTIVE, {
1261
+ U(), S(M).push(...Ce), t.emit(V.TAB_ACTIVE, {
1262
1262
  id: Ce[0].id
1263
1263
  });
1264
1264
  }, U = () => {
1265
- x(M).splice(0), re.clear(), ge.clear(), x(R).splice(0);
1265
+ S(M).splice(0), re.clear(), ge.clear(), S($).splice(0);
1266
1266
  };
1267
1267
  return {
1268
1268
  tabs: M,
1269
- caches: R,
1269
+ caches: $,
1270
1270
  pageShown: Me,
1271
1271
  initialed: Et,
1272
- setMaxSize: (w) => {
1273
- Le = w;
1272
+ setMaxSize: (k) => {
1273
+ Le = k;
1274
1274
  },
1275
1275
  canAddTab: o,
1276
1276
  initial: r,
@@ -1282,26 +1282,26 @@ const Ae = () => {
1282
1282
  removeCache: j,
1283
1283
  getTab: u,
1284
1284
  addTab: i,
1285
- removeTab: k,
1286
- removeAllTabs: S,
1285
+ removeTab: y,
1286
+ removeAllTabs: O,
1287
1287
  removeLeftTabs: I,
1288
- removeRightTabs: _,
1288
+ removeRightTabs: T,
1289
1289
  removeOtherTabs: B,
1290
1290
  hasTab: s,
1291
- addPage: c,
1292
- addComponent: v,
1293
- getComponent: E,
1294
- removeComponent: a,
1291
+ addPage: a,
1292
+ addComponent: g,
1293
+ getComponent: x,
1294
+ removeComponent: c,
1295
1295
  markDeletableCache: p,
1296
- removeDeletableCache: m,
1297
- refreshTab: T,
1298
- refreshAllTabs: y,
1296
+ removeDeletableCache: v,
1297
+ refreshTab: w,
1298
+ refreshAllTabs: _,
1299
1299
  addPageScroller: d,
1300
- setGlobalScroll: (w) => {
1301
- At = w;
1300
+ setGlobalScroll: (k) => {
1301
+ At = k;
1302
1302
  }
1303
1303
  };
1304
- }, Er = { class: "stack-tab__contextmenu-item" }, se = /* @__PURE__ */ J({
1304
+ }, Er = { class: "stack-tab__contextmenu-item" }, se = /* @__PURE__ */ Y({
1305
1305
  __name: "ContextMenuItem",
1306
1306
  props: {
1307
1307
  icon: {},
@@ -1322,7 +1322,7 @@ const Ae = () => {
1322
1322
  }), Ar = {
1323
1323
  key: 0,
1324
1324
  class: "divider div-transparent"
1325
- }, Ir = /* @__PURE__ */ J({
1325
+ }, Ir = /* @__PURE__ */ Y({
1326
1326
  __name: "index",
1327
1327
  props: {
1328
1328
  index: {},
@@ -1333,76 +1333,76 @@ const Ae = () => {
1333
1333
  max: {}
1334
1334
  },
1335
1335
  setup(e) {
1336
- const t = e, { t: n } = qe(), r = $(), s = Se({
1336
+ const t = e, { t: n } = qe(), r = R(), s = Se({
1337
1337
  left: t.left,
1338
1338
  top: t.top
1339
1339
  }), {
1340
1340
  removeTab: o,
1341
1341
  removeAllTabs: i,
1342
1342
  removeLeftTabs: u,
1343
- removeRightTabs: c,
1343
+ removeRightTabs: a,
1344
1344
  refreshTab: l,
1345
1345
  refreshAllTabs: h,
1346
1346
  removeOtherTabs: f
1347
1347
  } = Ae();
1348
1348
  return Ue(() => {
1349
- const d = r.value ? r.value.clientWidth : 0, k = window.innerWidth;
1350
- s.left + d > k && (s.left = k - d - 5);
1351
- }), (d, k) => (z(), P("div", {
1349
+ const d = r.value ? r.value.clientWidth : 0, y = window.innerWidth;
1350
+ s.left + d > y && (s.left = y - d - 5);
1351
+ }), (d, y) => (z(), P("div", {
1352
1352
  ref_key: "contextmenu",
1353
1353
  ref: r,
1354
1354
  class: "stack-tab__contextmenu",
1355
1355
  style: ot({
1356
1356
  left: `${s.left}px`,
1357
1357
  top: `${s.top}px`,
1358
- "z-index": x(nn)(".stack-tab,.stack-tab *")
1358
+ "z-index": S(nn)(".stack-tab,.stack-tab *")
1359
1359
  })
1360
1360
  }, [
1361
1361
  N(se, {
1362
1362
  icon: "stack-tab__icon-reload svg-mask",
1363
- title: x(n)("VueStackTab.reload"),
1364
- onClick: k[0] || (k[0] = (S) => x(l)(d.tabItem.id))
1363
+ title: S(n)("VueStackTab.reload"),
1364
+ onClick: y[0] || (y[0] = (O) => S(l)(d.tabItem.id))
1365
1365
  }, null, 8, ["title"]),
1366
1366
  N(se, {
1367
1367
  icon: "stack-tab__icon-reload-all svg-mask",
1368
- title: x(n)("VueStackTab.reloadAll"),
1369
- onClick: x(h)
1368
+ title: S(n)("VueStackTab.reloadAll"),
1369
+ onClick: S(h)
1370
1370
  }, null, 8, ["title", "onClick"]),
1371
1371
  N(se, {
1372
1372
  icon: "stack-tab__icon-close svg-mask",
1373
- title: x(n)("VueStackTab.close"),
1373
+ title: S(n)("VueStackTab.close"),
1374
1374
  disabled: d.tabItem.closable ? null : "disabled",
1375
- onClick: k[1] || (k[1] = (S) => x(o)(d.tabItem.id))
1375
+ onClick: y[1] || (y[1] = (O) => S(o)(d.tabItem.id))
1376
1376
  }, null, 8, ["title", "disabled"]),
1377
1377
  N(se, {
1378
1378
  icon: "stack-tab__icon-close-lefts svg-mask",
1379
- title: x(n)("VueStackTab.closeLeft"),
1379
+ title: S(n)("VueStackTab.closeLeft"),
1380
1380
  disabled: d.index <= 0 ? "disabled" : null,
1381
- onClick: k[2] || (k[2] = (S) => x(u)(d.tabItem.id))
1381
+ onClick: y[2] || (y[2] = (O) => S(u)(d.tabItem.id))
1382
1382
  }, null, 8, ["title", "disabled"]),
1383
1383
  N(se, {
1384
1384
  icon: "stack-tab__icon-close-rights svg-mask",
1385
- title: x(n)("VueStackTab.closeRight"),
1385
+ title: S(n)("VueStackTab.closeRight"),
1386
1386
  disabled: d.index >= d.max - 1 ? "disabled" : null,
1387
- onClick: k[3] || (k[3] = (S) => x(c)(d.tabItem.id))
1387
+ onClick: y[3] || (y[3] = (O) => S(a)(d.tabItem.id))
1388
1388
  }, null, 8, ["title", "disabled"]),
1389
1389
  N(se, {
1390
1390
  icon: "stack-tab__icon-close-others svg-mask",
1391
- title: x(n)("VueStackTab.closeOthers"),
1392
- onClick: k[4] || (k[4] = (S) => x(f)(d.tabItem.id))
1391
+ title: S(n)("VueStackTab.closeOthers"),
1392
+ onClick: y[4] || (y[4] = (O) => S(f)(d.tabItem.id))
1393
1393
  }, null, 8, ["title"]),
1394
1394
  N(se, {
1395
1395
  icon: "stack-tab__icon-close-all svg-mask",
1396
- title: x(n)("VueStackTab.closeAll"),
1397
- onClick: x(i)
1396
+ title: S(n)("VueStackTab.closeAll"),
1397
+ onClick: S(i)
1398
1398
  }, null, 8, ["title", "onClick"]),
1399
- d.contextMenu !== void 0 && d.contextMenu.length > 0 ? (z(), P("div", Ar)) : Y("", !0),
1400
- (z(!0), P(Fe, null, it(d.contextMenu, (S, B) => (z(), ae(se, {
1399
+ d.contextMenu !== void 0 && d.contextMenu.length > 0 ? (z(), P("div", Ar)) : ee("", !0),
1400
+ (z(!0), P(Fe, null, it(d.contextMenu, (O, B) => (z(), de(se, {
1401
1401
  key: B,
1402
- icon: S.icon,
1403
- title: S.title,
1404
- disabled: S.disabled(d.tabItem) ? "disabled" : null,
1405
- onClick: (I) => !S.disabled && S.callback(d.tabItem.id)
1402
+ icon: O.icon,
1403
+ title: O.title,
1404
+ disabled: O.disabled(d.tabItem) ? "disabled" : null,
1405
+ onClick: (I) => !O.disabled && O.callback(d.tabItem.id)
1406
1406
  }, null, 8, ["icon", "title", "disabled", "onClick"]))), 128))
1407
1407
  ], 4));
1408
1408
  }
@@ -1418,7 +1418,7 @@ const Ae = () => {
1418
1418
  left: 0,
1419
1419
  top: 0,
1420
1420
  max: 0
1421
- }), t = $(!1);
1421
+ }), t = R(!1);
1422
1422
  Ue(() => {
1423
1423
  document.addEventListener("click", r);
1424
1424
  }), Ve(() => {
@@ -1426,8 +1426,8 @@ const Ae = () => {
1426
1426
  });
1427
1427
  const n = async (s, o, i, u) => {
1428
1428
  t.value = !1, await Ht(() => {
1429
- const { clientY: c, clientX: l } = s;
1430
- t.value = !0, Object.assign(e, { item: o, index: i, top: c, left: l, max: u });
1429
+ const { clientY: a, clientX: l } = s;
1430
+ t.value = !0, Object.assign(e, { item: o, index: i, top: a, left: l, max: u });
1431
1431
  });
1432
1432
  }, r = (s) => {
1433
1433
  s.target.classList.contains("stack-tab__contextmenu") || (t.value = !1);
@@ -1437,18 +1437,18 @@ const Ae = () => {
1437
1437
  contextMenuData: e,
1438
1438
  showContextMenu: n
1439
1439
  };
1440
- }, Lr = { class: "stack-tab__item-title" }, zr = ["title"], $r = ["title"], Rr = /* @__PURE__ */ J({
1440
+ }, Lr = { class: "stack-tab__item-title" }, zr = ["title"], $r = ["title"], Rr = /* @__PURE__ */ Y({
1441
1441
  __name: "TabHeaderItem",
1442
1442
  props: {
1443
1443
  item: {}
1444
1444
  },
1445
1445
  emits: ["close", "active"],
1446
1446
  setup(e, { emit: t }) {
1447
- const n = t, r = Ee(), { t: s } = qe(), o = $(), i = e;
1447
+ const n = t, r = Ee(), { t: s } = qe(), o = R(), i = e;
1448
1448
  r.on(V.TAB_ACTIVE, ({ id: h, isRoute: f }) => {
1449
1449
  i.item.id === h && l(f);
1450
1450
  });
1451
- const u = pe(() => i.item.title || s("undefined")), c = () => {
1451
+ const u = pe(() => i.item.title || s("undefined")), a = () => {
1452
1452
  n("close", i.item);
1453
1453
  }, l = (h = !0) => {
1454
1454
  n("active", i.item, o, h);
@@ -1471,18 +1471,18 @@ const Ae = () => {
1471
1471
  h.item.closable ? (z(), P("div", {
1472
1472
  key: 0,
1473
1473
  class: "stack-tab__icon-close-fill stack-tab__item-button",
1474
- title: x(s)("VueStackTab.close"),
1475
- onClick: ve(c, ["stop"])
1476
- }, null, 8, $r)) : Y("", !0)
1474
+ title: S(s)("VueStackTab.close"),
1475
+ onClick: ve(a, ["stop"])
1476
+ }, null, 8, $r)) : ee("", !0)
1477
1477
  ], 2));
1478
1478
  }
1479
1479
  });
1480
- var fe = [], Nr = function() {
1481
- return fe.some(function(e) {
1480
+ var ue = [], Nr = function() {
1481
+ return ue.some(function(e) {
1482
1482
  return e.activeTargets.length > 0;
1483
1483
  });
1484
1484
  }, Pr = function() {
1485
- return fe.some(function(e) {
1485
+ return ue.some(function(e) {
1486
1486
  return e.skippedTargets.length > 0;
1487
1487
  });
1488
1488
  }, It = "ResizeObserver loop completed with undelivered notifications.", Dr = function() {
@@ -1494,20 +1494,20 @@ var fe = [], Nr = function() {
1494
1494
  (function(e) {
1495
1495
  e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
1496
1496
  })(Oe || (Oe = {}));
1497
- var de = function(e) {
1497
+ var fe = function(e) {
1498
1498
  return Object.freeze(e);
1499
1499
  }, jr = /* @__PURE__ */ function() {
1500
1500
  function e(t, n) {
1501
- this.inlineSize = t, this.blockSize = n, de(this);
1501
+ this.inlineSize = t, this.blockSize = n, fe(this);
1502
1502
  }
1503
1503
  return e;
1504
1504
  }(), fn = function() {
1505
1505
  function e(t, n, r, s) {
1506
- return this.x = t, this.y = n, this.width = r, this.height = s, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, de(this);
1506
+ return this.x = t, this.y = n, this.width = r, this.height = s, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, fe(this);
1507
1507
  }
1508
1508
  return e.prototype.toJSON = function() {
1509
- var t = this, n = t.x, r = t.y, s = t.top, o = t.right, i = t.bottom, u = t.left, c = t.width, l = t.height;
1510
- return { x: n, y: r, top: s, right: o, bottom: i, left: u, width: c, height: l };
1509
+ var t = this, n = t.x, r = t.y, s = t.top, o = t.right, i = t.bottom, u = t.left, a = t.width, l = t.height;
1510
+ return { x: n, y: r, top: s, right: o, bottom: i, left: u, width: a, height: l };
1511
1511
  }, e.fromRect = function(t) {
1512
1512
  return new e(t.x, t.y, t.width, t.height);
1513
1513
  }, e;
@@ -1545,7 +1545,7 @@ var de = function(e) {
1545
1545
  return parseFloat(e || "0");
1546
1546
  }, be = function(e, t, n) {
1547
1547
  return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new jr((n ? t : e) || 0, (n ? e : t) || 0);
1548
- }, Mt = de({
1548
+ }, Mt = fe({
1549
1549
  devicePixelContentBoxSize: be(),
1550
1550
  borderBoxSize: be(),
1551
1551
  contentBoxSize: be(),
@@ -1555,11 +1555,11 @@ var de = function(e) {
1555
1555
  return ze.get(e);
1556
1556
  if (dn(e))
1557
1557
  return ze.set(e, Mt), Mt;
1558
- var n = getComputedStyle(e), r = ht(e) && e.ownerSVGElement && e.getBBox(), s = !Vr && n.boxSizing === "border-box", o = Ur.test(n.writingMode || ""), i = !r && Ct.test(n.overflowY || ""), u = !r && Ct.test(n.overflowX || ""), c = r ? 0 : H(n.paddingTop), l = r ? 0 : H(n.paddingRight), h = r ? 0 : H(n.paddingBottom), f = r ? 0 : H(n.paddingLeft), d = r ? 0 : H(n.borderTopWidth), k = r ? 0 : H(n.borderRightWidth), S = r ? 0 : H(n.borderBottomWidth), B = r ? 0 : H(n.borderLeftWidth), I = f + l, _ = c + h, T = B + k, y = d + S, v = u ? e.offsetHeight - y - e.clientHeight : 0, E = i ? e.offsetWidth - T - e.clientWidth : 0, a = s ? I + T : 0, p = s ? _ + y : 0, m = r ? r.width : H(n.width) - a - E, j = r ? r.height : H(n.height) - p - v, F = m + I + E + T, q = j + _ + v + y, A = de({
1559
- devicePixelContentBoxSize: be(Math.round(m * devicePixelRatio), Math.round(j * devicePixelRatio), o),
1558
+ var n = getComputedStyle(e), r = ht(e) && e.ownerSVGElement && e.getBBox(), s = !Vr && n.boxSizing === "border-box", o = Ur.test(n.writingMode || ""), i = !r && Ct.test(n.overflowY || ""), u = !r && Ct.test(n.overflowX || ""), a = r ? 0 : H(n.paddingTop), l = r ? 0 : H(n.paddingRight), h = r ? 0 : H(n.paddingBottom), f = r ? 0 : H(n.paddingLeft), d = r ? 0 : H(n.borderTopWidth), y = r ? 0 : H(n.borderRightWidth), O = r ? 0 : H(n.borderBottomWidth), B = r ? 0 : H(n.borderLeftWidth), I = f + l, T = a + h, w = B + y, _ = d + O, g = u ? e.offsetHeight - _ - e.clientHeight : 0, x = i ? e.offsetWidth - w - e.clientWidth : 0, c = s ? I + w : 0, p = s ? T + _ : 0, v = r ? r.width : H(n.width) - c - x, j = r ? r.height : H(n.height) - p - g, F = v + I + x + w, q = j + T + g + _, A = fe({
1559
+ devicePixelContentBoxSize: be(Math.round(v * devicePixelRatio), Math.round(j * devicePixelRatio), o),
1560
1560
  borderBoxSize: be(F, q, o),
1561
- contentBoxSize: be(m, j, o),
1562
- contentRect: new fn(f, c, m, j)
1561
+ contentBoxSize: be(v, j, o),
1562
+ contentRect: new fn(f, a, v, j)
1563
1563
  });
1564
1564
  return ze.set(e, A), A;
1565
1565
  }, pn = function(e, t, n) {
@@ -1575,7 +1575,7 @@ var de = function(e) {
1575
1575
  }, Fr = /* @__PURE__ */ function() {
1576
1576
  function e(t) {
1577
1577
  var n = hn(t);
1578
- this.target = t, this.contentRect = n.contentRect, this.borderBoxSize = de([n.borderBoxSize]), this.contentBoxSize = de([n.contentBoxSize]), this.devicePixelContentBoxSize = de([n.devicePixelContentBoxSize]);
1578
+ this.target = t, this.contentRect = n.contentRect, this.borderBoxSize = fe([n.borderBoxSize]), this.contentBoxSize = fe([n.contentBoxSize]), this.devicePixelContentBoxSize = fe([n.devicePixelContentBoxSize]);
1579
1579
  }
1580
1580
  return e;
1581
1581
  }(), bn = function(e) {
@@ -1586,7 +1586,7 @@ var de = function(e) {
1586
1586
  return t;
1587
1587
  }, qr = function() {
1588
1588
  var e = 1 / 0, t = [];
1589
- fe.forEach(function(i) {
1589
+ ue.forEach(function(i) {
1590
1590
  if (i.activeTargets.length !== 0) {
1591
1591
  var u = [];
1592
1592
  i.activeTargets.forEach(function(l) {
@@ -1603,7 +1603,7 @@ var de = function(e) {
1603
1603
  }
1604
1604
  return e;
1605
1605
  }, Lt = function(e) {
1606
- fe.forEach(function(n) {
1606
+ ue.forEach(function(n) {
1607
1607
  n.activeTargets.splice(0, n.activeTargets.length), n.skippedTargets.splice(0, n.skippedTargets.length), n.observationTargets.forEach(function(s) {
1608
1608
  s.isActive() && (bn(s.target) > e ? n.activeTargets.push(s) : n.skippedTargets.push(s));
1609
1609
  });
@@ -1724,10 +1724,10 @@ var de = function(e) {
1724
1724
  $e.set(t, r);
1725
1725
  }, e.observe = function(t, n, r) {
1726
1726
  var s = $e.get(t), o = s.observationTargets.length === 0;
1727
- Nt(s.observationTargets, n) < 0 && (o && fe.push(s), s.observationTargets.push(new ts(n, r && r.box)), Rt(1), nt.schedule());
1727
+ Nt(s.observationTargets, n) < 0 && (o && ue.push(s), s.observationTargets.push(new ts(n, r && r.box)), Rt(1), nt.schedule());
1728
1728
  }, e.unobserve = function(t, n) {
1729
1729
  var r = $e.get(t), s = Nt(r.observationTargets, n), o = r.observationTargets.length === 1;
1730
- s >= 0 && (o && fe.splice(fe.indexOf(r), 1), r.observationTargets.splice(s, 1), Rt(-1));
1730
+ s >= 0 && (o && ue.splice(ue.indexOf(r), 1), r.observationTargets.splice(s, 1), Rt(-1));
1731
1731
  }, e.disconnect = function(t) {
1732
1732
  var n = this, r = $e.get(t);
1733
1733
  r.observationTargets.slice().forEach(function(s) {
@@ -1763,7 +1763,7 @@ var de = function(e) {
1763
1763
  const rs = ["disabled", "title"], ss = {
1764
1764
  key: 1,
1765
1765
  class: "stack-tab__button"
1766
- }, rt = /* @__PURE__ */ J({
1766
+ }, rt = /* @__PURE__ */ Y({
1767
1767
  __name: "TabHeaderButton",
1768
1768
  props: {
1769
1769
  disabled: { type: Boolean, default: !1 },
@@ -1780,16 +1780,16 @@ const rs = ["disabled", "title"], ss = {
1780
1780
  disabled: t.disabled ? "disabled" : null,
1781
1781
  title: t.title
1782
1782
  }, [
1783
- "icon" in t.$slots ? Y("", !0) : (z(), P("div", {
1783
+ "icon" in t.$slots ? ee("", !0) : (z(), P("div", {
1784
1784
  key: 0,
1785
1785
  class: ie(["stack-tab__mask-button", t.iconClass])
1786
1786
  }, null, 2)),
1787
1787
  "icon" in t.$slots ? (z(), P("div", ss, [
1788
1788
  me(t.$slots, "icon")
1789
- ])) : Y("", !0)
1789
+ ])) : ee("", !0)
1790
1790
  ], 10, rs));
1791
1791
  }
1792
- }), os = /* @__PURE__ */ J({
1792
+ }), os = /* @__PURE__ */ Y({
1793
1793
  __name: "TabHeaderScroll",
1794
1794
  props: {
1795
1795
  space: { default: 300 },
@@ -1797,7 +1797,7 @@ const rs = ["disabled", "title"], ss = {
1797
1797
  isScrollButton: { type: Boolean, default: !0 }
1798
1798
  },
1799
1799
  setup(e, { expose: t }) {
1800
- const n = $(null), r = $(null), s = $(null), o = $(!1), i = $(!1), u = $(!1), c = $(!0), l = $(), h = e, f = Se({
1800
+ const n = R(null), r = R(null), s = R(null), o = R(!1), i = R(!1), u = R(!1), a = R(!0), l = R(), h = e, f = Se({
1801
1801
  clientWidth: 0,
1802
1802
  scrollWidth: 0,
1803
1803
  scrollLeft: 0
@@ -1808,44 +1808,44 @@ const rs = ["disabled", "title"], ss = {
1808
1808
  startPageX: 0
1809
1809
  });
1810
1810
  Sn(f, (A) => {
1811
- k(A);
1811
+ y(A);
1812
1812
  });
1813
- const k = (A) => {
1814
- i.value = A.scrollLeft <= 10, u.value = A.clientWidth + A.scrollLeft - A.scrollWidth >= -10, c.value = A.scrollWidth !== A.clientWidth;
1815
- }, S = pe(() => f.scrollWidth > f.clientWidth), B = pe(() => {
1816
- if (!S.value)
1813
+ const y = (A) => {
1814
+ i.value = A.scrollLeft <= 10, u.value = A.clientWidth + A.scrollLeft - A.scrollWidth >= -10, a.value = A.scrollWidth !== A.clientWidth;
1815
+ }, O = pe(() => f.scrollWidth > f.clientWidth), B = pe(() => {
1816
+ if (!O.value)
1817
1817
  return 0;
1818
1818
  const { clientWidth: A, scrollWidth: L } = f;
1819
1819
  return A / L * A;
1820
1820
  }), I = pe(() => {
1821
- if (!S.value)
1821
+ if (!O.value)
1822
1822
  return 0;
1823
1823
  const { clientWidth: A, scrollWidth: L, scrollLeft: U } = f;
1824
1824
  return (A - B.value) * (U / (L - A));
1825
- }), _ = () => {
1825
+ }), T = () => {
1826
1826
  if (n.value === null || n.value === void 0)
1827
1827
  return;
1828
1828
  const { clientWidth: A, scrollWidth: L, scrollLeft: U } = n.value;
1829
1829
  Object.assign(f, { clientWidth: A, scrollWidth: L, scrollLeft: U });
1830
- }, T = new Pt(() => {
1830
+ }, w = new Pt(() => {
1831
1831
  var L;
1832
- _();
1832
+ T();
1833
1833
  const A = (L = n.value) == null ? void 0 : L.querySelector(".stack-tab__item.is-active");
1834
1834
  A && (q(A) || F(A));
1835
- }), y = new Pt(() => {
1835
+ }), _ = new Pt(() => {
1836
1836
  var A;
1837
- if (!S.value) {
1837
+ if (!O.value) {
1838
1838
  const L = (A = n.value) == null ? void 0 : A.querySelector(".stack-tab__item.is-active");
1839
1839
  L && (q(L) || F(L));
1840
1840
  }
1841
- _();
1842
- }), v = (A, L = !0) => {
1841
+ T();
1842
+ }), g = (A, L = !0) => {
1843
1843
  tn({ wrap: n.value, left: A, smooth: L });
1844
- }, E = (A) => {
1845
- v(n.value.scrollLeft + A);
1846
- }, a = (A) => {
1844
+ }, x = (A) => {
1845
+ g(n.value.scrollLeft + A);
1846
+ }, c = (A) => {
1847
1847
  const L = A.deltaY < 0;
1848
- v(n.value.scrollLeft + (L ? -h.space : h.space));
1848
+ g(n.value.scrollLeft + (L ? -h.space : h.space));
1849
1849
  }, p = (A) => {
1850
1850
  var L;
1851
1851
  Object.assign(d, {
@@ -1853,43 +1853,43 @@ const rs = ["disabled", "title"], ss = {
1853
1853
  startScrollLeft: (L = n.value) == null ? void 0 : L.scrollLeft,
1854
1854
  startThumbLeft: I.value,
1855
1855
  thumbLeft: I.value
1856
- }), o.value = !0, document.addEventListener("mousemove", m), document.addEventListener("mouseup", j);
1857
- }, m = (A) => {
1856
+ }), o.value = !0, document.addEventListener("mousemove", v), document.addEventListener("mouseup", j);
1857
+ }, v = (A) => {
1858
1858
  const { clientWidth: L, scrollWidth: U } = f;
1859
- let ce = d.startThumbLeft + A.pageX - d.startPageX;
1859
+ let ae = d.startThumbLeft + A.pageX - d.startPageX;
1860
1860
  const Ge = L - B.value;
1861
- ce < 0 ? ce = 0 : ce > Ge && (ce = Ge), d.thumbLeft = ce, v(ce * (U - L) / (L - B.value), !1), A.preventDefault();
1861
+ ae < 0 ? ae = 0 : ae > Ge && (ae = Ge), d.thumbLeft = ae, g(ae * (U - L) / (L - B.value), !1), A.preventDefault();
1862
1862
  }, j = (A) => {
1863
- o.value = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", j), A.preventDefault();
1863
+ o.value = !1, document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", j), A.preventDefault();
1864
1864
  };
1865
1865
  Ue(() => {
1866
1866
  var L;
1867
- T.observe(l.value);
1867
+ w.observe(l.value);
1868
1868
  const A = (L = n.value) == null ? void 0 : L.querySelector(".stack-tab__nav");
1869
- y.observe(A);
1869
+ _.observe(A);
1870
1870
  }), Ve(() => {
1871
- T.disconnect(), y.disconnect();
1871
+ w.disconnect(), _.disconnect();
1872
1872
  });
1873
1873
  const F = (A) => {
1874
1874
  Zn({ el: A, wrap: n, block: "end", inline: "center" });
1875
1875
  }, q = (A) => {
1876
- if (!S.value)
1876
+ if (!O.value)
1877
1877
  return !0;
1878
1878
  const L = A.offsetLeft, U = n.value.scrollLeft;
1879
1879
  return !(L < U || L + A.clientWidth > U + n.value.clientWidth);
1880
1880
  };
1881
1881
  return t({ scrollIntoView: F, isInView: q }), (A, L) => (z(), P(Fe, null, [
1882
- c.value ? (z(), ae(rt, {
1882
+ a.value ? (z(), de(rt, {
1883
1883
  key: 0,
1884
1884
  "icon-class": "stack-tab__icon-left-arrow",
1885
1885
  disabled: i.value,
1886
- onClick: L[0] || (L[0] = (U) => !i.value && E(-1 * A.space))
1887
- }, null, 8, ["disabled"])) : Y("", !0),
1886
+ onClick: L[0] || (L[0] = (U) => !i.value && x(-1 * A.space))
1887
+ }, null, 8, ["disabled"])) : ee("", !0),
1888
1888
  X("div", {
1889
1889
  ref_key: "headerScroll",
1890
1890
  ref: l,
1891
1891
  class: "stack-tab__scroll",
1892
- onWheel: ve(a, ["prevent"])
1892
+ onWheel: ve(c, ["prevent"])
1893
1893
  }, [
1894
1894
  X("div", {
1895
1895
  ref_key: "container",
@@ -1899,7 +1899,7 @@ const rs = ["disabled", "title"], ss = {
1899
1899
  "stack-tab__shadow-inset-right": !u.value && i.value,
1900
1900
  "stack-tab__shadow-inset-all": !i.value && !u.value
1901
1901
  }]),
1902
- onScrollPassive: _
1902
+ onScrollPassive: T
1903
1903
  }, [
1904
1904
  me(A.$slots, "default")
1905
1905
  ], 34),
@@ -1919,22 +1919,22 @@ const rs = ["disabled", "title"], ss = {
1919
1919
  onMousedown: ve(p, ["prevent"])
1920
1920
  }, null, 38)
1921
1921
  ], 2), [
1922
- [Xt, S.value]
1922
+ [Xt, O.value]
1923
1923
  ])
1924
1924
  ], 544),
1925
- c.value ? (z(), ae(rt, {
1925
+ a.value ? (z(), de(rt, {
1926
1926
  key: 1,
1927
1927
  "icon-class": "stack-tab__icon-right-arrow",
1928
1928
  disabled: u.value,
1929
- onClick: L[1] || (L[1] = (U) => !u.value && E(A.space))
1930
- }, null, 8, ["disabled"])) : Y("", !0)
1929
+ onClick: L[1] || (L[1] = (U) => !u.value && x(A.space))
1930
+ }, null, 8, ["disabled"])) : ee("", !0)
1931
1931
  ], 64));
1932
1932
  }
1933
- }), is = { class: "stack-tab__header" }, as = /* @__PURE__ */ J({
1933
+ }), is = { class: "stack-tab__header" }, as = /* @__PURE__ */ Y({
1934
1934
  __name: "index",
1935
1935
  props: {
1936
1936
  space: {},
1937
- tabScrollMode: { default: ue.BOTH },
1937
+ tabScrollMode: { default: le.BOTH },
1938
1938
  tabTransition: { default: () => ({
1939
1939
  name: "stack-tab-zoom"
1940
1940
  }) },
@@ -1943,46 +1943,46 @@ const rs = ["disabled", "title"], ss = {
1943
1943
  },
1944
1944
  emits: ["active"],
1945
1945
  setup(e, { emit: t }) {
1946
- const { t: n } = qe(), r = st("maximum"), s = t, o = $(), { shown: i, contextMenuData: u, showContextMenu: c } = Mr(), l = e, { removeTab: h, active: f, tabs: d } = Ae(), k = pe(() => typeof l.tabTransition == "string" ? {
1946
+ const { t: n } = qe(), r = st("maximum"), s = t, o = R(), { shown: i, contextMenuData: u, showContextMenu: a } = Mr(), l = e, { removeTab: h, active: f, tabs: d } = Ae(), y = pe(() => typeof l.tabTransition == "string" ? {
1947
1947
  name: l.tabTransition
1948
- } : l.tabTransition), S = pe(() => l.tabScrollMode === ue.BOTH || l.tabScrollMode === ue.BUTTON), B = l.tabScrollMode === ue.BOTH || l.tabScrollMode === ue.WHEEL, I = (T) => {
1949
- if (T.closable) {
1950
- const y = h(T.id);
1951
- s("active", y);
1948
+ } : l.tabTransition), O = pe(() => l.tabScrollMode === le.BOTH || l.tabScrollMode === le.BUTTON), B = l.tabScrollMode === le.BOTH || l.tabScrollMode === le.WHEEL, I = (w) => {
1949
+ if (w.closable) {
1950
+ const _ = h(w.id);
1951
+ s("active", _);
1952
1952
  }
1953
1953
  i.value = !1;
1954
- }, _ = (T, y, v) => {
1954
+ }, T = (w, _, g) => {
1955
1955
  o.value && (Ht(() => {
1956
- o.value.isInView(y.value) || o.value.scrollIntoView(y.value);
1957
- }), f(T.id, v), s("active", T.id));
1956
+ o.value.isInView(_.value) || o.value.scrollIntoView(_.value);
1957
+ }), f(w.id, g), s("active", w.id));
1958
1958
  };
1959
- return (T, y) => (z(), P("div", is, [
1960
- me(T.$slots, "leftButton"),
1959
+ return (w, _) => (z(), P("div", is, [
1960
+ me(w.$slots, "leftButton"),
1961
1961
  N(os, {
1962
1962
  ref_key: "scroll",
1963
1963
  ref: o,
1964
- space: T.space,
1965
- "is-scroll-wheel": x(B),
1966
- "is-scroll-button": S.value
1964
+ space: w.space,
1965
+ "is-scroll-wheel": S(B),
1966
+ "is-scroll-button": O.value
1967
1967
  }, {
1968
1968
  default: oe(() => [
1969
1969
  N(Yt, On({
1970
1970
  key: "tabItemTrans",
1971
1971
  tag: "ul",
1972
1972
  class: "stack-tab__nav"
1973
- }, k.value, { appear: "" }), {
1973
+ }, y.value, { appear: "" }), {
1974
1974
  default: oe(() => [
1975
- (z(!0), P(Fe, null, it(x(d), (v, E) => (z(), ae(Rr, {
1976
- key: v.id,
1977
- contextmenu: T.contextmenu,
1978
- item: v,
1975
+ (z(!0), P(Fe, null, it(S(d), (g, x) => (z(), de(Rr, {
1976
+ key: g.id,
1977
+ contextmenu: w.contextmenu,
1978
+ item: g,
1979
1979
  onContextmenu: ve(
1980
- (a) => x(c)(a, v, E, x(d).length),
1980
+ (c) => S(a)(c, g, x, S(d).length),
1981
1981
  ["prevent"]
1982
1982
  ),
1983
- onMouseup: ve((a) => I(v), ["middle", "prevent"]),
1983
+ onMouseup: ve((c) => I(g), ["middle", "prevent"]),
1984
1984
  onClose: I,
1985
- onActive: _
1985
+ onActive: T
1986
1986
  }, null, 8, ["contextmenu", "item", "onContextmenu", "onMouseup"]))), 128))
1987
1987
  ]),
1988
1988
  _: 1
@@ -1990,25 +1990,25 @@ const rs = ["disabled", "title"], ss = {
1990
1990
  ]),
1991
1991
  _: 1
1992
1992
  }, 8, ["space", "is-scroll-wheel", "is-scroll-button"]),
1993
- me(T.$slots, "rightButton"),
1993
+ me(w.$slots, "rightButton"),
1994
1994
  N(rt, {
1995
- "icon-class": x(r) ? "stack-tab__icon-restore" : "stack-tab__icon-fullscreen",
1996
- title: x(n)("VueStackTab.maximum"),
1997
- onClick: y[0] || (y[0] = (v) => r.value = !x(r))
1995
+ "icon-class": S(r) ? "stack-tab__icon-restore" : "stack-tab__icon-fullscreen",
1996
+ title: S(n)("VueStackTab.maximum"),
1997
+ onClick: _[0] || (_[0] = (g) => r.value = !S(r))
1998
1998
  }, null, 8, ["icon-class", "title"]),
1999
1999
  N(Jt, {
2000
2000
  name: "stack-tab-zoom",
2001
2001
  appear: ""
2002
2002
  }, {
2003
2003
  default: oe(() => [
2004
- x(i) ? (z(), ae(Cr, {
2004
+ S(i) ? (z(), de(Cr, {
2005
2005
  key: "tabMenuTrans",
2006
- left: x(u).left,
2007
- top: x(u).top,
2008
- "tab-item": x(u).item,
2009
- max: x(u).max,
2010
- index: x(u).index
2011
- }, null, 8, ["left", "top", "tab-item", "max", "index"])) : Y("", !0)
2006
+ left: S(u).left,
2007
+ top: S(u).top,
2008
+ "tab-item": S(u).item,
2009
+ max: S(u).max,
2010
+ index: S(u).index
2011
+ }, null, 8, ["left", "top", "tab-item", "max", "index"])) : ee("", !0)
2012
2012
  ]),
2013
2013
  _: 1
2014
2014
  })
@@ -2075,51 +2075,51 @@ var Ke = function() {
2075
2075
  return mn.Date.now();
2076
2076
  }, Bs = "Expected a function", Cs = Math.max, Ms = Math.min;
2077
2077
  function Ls(e, t, n) {
2078
- var r, s, o, i, u, c, l = 0, h = !1, f = !1, d = !0;
2078
+ var r, s, o, i, u, a, l = 0, h = !1, f = !1, d = !0;
2079
2079
  if (typeof e != "function")
2080
2080
  throw new TypeError(Bs);
2081
2081
  t = Wt(t) || 0, We(n) && (h = !!n.leading, f = "maxWait" in n, o = f ? Cs(Wt(n.maxWait) || 0, t) : o, d = "trailing" in n ? !!n.trailing : d);
2082
- function k(a) {
2083
- var p = r, m = s;
2084
- return r = s = void 0, l = a, i = e.apply(m, p), i;
2082
+ function y(c) {
2083
+ var p = r, v = s;
2084
+ return r = s = void 0, l = c, i = e.apply(v, p), i;
2085
2085
  }
2086
- function S(a) {
2087
- return l = a, u = setTimeout(_, t), h ? k(a) : i;
2086
+ function O(c) {
2087
+ return l = c, u = setTimeout(T, t), h ? y(c) : i;
2088
2088
  }
2089
- function B(a) {
2090
- var p = a - c, m = a - l, j = t - p;
2091
- return f ? Ms(j, o - m) : j;
2089
+ function B(c) {
2090
+ var p = c - a, v = c - l, j = t - p;
2091
+ return f ? Ms(j, o - v) : j;
2092
2092
  }
2093
- function I(a) {
2094
- var p = a - c, m = a - l;
2095
- return c === void 0 || p >= t || p < 0 || f && m >= o;
2093
+ function I(c) {
2094
+ var p = c - a, v = c - l;
2095
+ return a === void 0 || p >= t || p < 0 || f && v >= o;
2096
2096
  }
2097
- function _() {
2098
- var a = Ke();
2099
- if (I(a))
2100
- return T(a);
2101
- u = setTimeout(_, B(a));
2097
+ function T() {
2098
+ var c = Ke();
2099
+ if (I(c))
2100
+ return w(c);
2101
+ u = setTimeout(T, B(c));
2102
2102
  }
2103
- function T(a) {
2104
- return u = void 0, d && r ? k(a) : (r = s = void 0, i);
2103
+ function w(c) {
2104
+ return u = void 0, d && r ? y(c) : (r = s = void 0, i);
2105
2105
  }
2106
- function y() {
2107
- u !== void 0 && clearTimeout(u), l = 0, r = c = s = u = void 0;
2106
+ function _() {
2107
+ u !== void 0 && clearTimeout(u), l = 0, r = a = s = u = void 0;
2108
2108
  }
2109
- function v() {
2110
- return u === void 0 ? i : T(Ke());
2109
+ function g() {
2110
+ return u === void 0 ? i : w(Ke());
2111
2111
  }
2112
- function E() {
2113
- var a = Ke(), p = I(a);
2114
- if (r = arguments, s = this, c = a, p) {
2112
+ function x() {
2113
+ var c = Ke(), p = I(c);
2114
+ if (r = arguments, s = this, a = c, p) {
2115
2115
  if (u === void 0)
2116
- return S(c);
2116
+ return O(a);
2117
2117
  if (f)
2118
- return clearTimeout(u), u = setTimeout(_, t), k(c);
2118
+ return clearTimeout(u), u = setTimeout(T, t), y(a);
2119
2119
  }
2120
- return u === void 0 && (u = setTimeout(_, t)), i;
2120
+ return u === void 0 && (u = setTimeout(T, t)), i;
2121
2121
  }
2122
- return E.cancel = y, E.flush = v, E;
2122
+ return x.cancel = _, x.flush = g, x;
2123
2123
  }
2124
2124
  var zs = "Expected a function";
2125
2125
  function $s(e, t, n) {
@@ -2139,40 +2139,40 @@ const Rs = () => {
2139
2139
  d();
2140
2140
  return;
2141
2141
  }
2142
- const k = ee(h, { refreshable: !0, closable: !0, iframe: !1 });
2143
- if (n(k.id)) {
2144
- i.emit(V.TAB_ACTIVE, { id: k.id }), f(k.id);
2142
+ const y = Q(h, { refreshable: !0, closable: !0, iframe: !1 });
2143
+ if (n(y.id)) {
2144
+ i.emit(V.TAB_ACTIVE, { id: y.id }), f(y.id);
2145
2145
  return;
2146
2146
  }
2147
- if (k.id || (k.id = sn()), !o()) {
2147
+ if (y.id || (y.id = sn()), !o()) {
2148
2148
  d("Max Size");
2149
2149
  return;
2150
2150
  }
2151
- c(h, k), f(k.id);
2152
- }), 500), c = (h, f) => {
2151
+ a(h, y), f(y.id);
2152
+ }), 500), a = (h, f) => {
2153
2153
  const d = un(f);
2154
- let k = ee(
2154
+ let y = Q(
2155
2155
  {
2156
2156
  __tab: d
2157
2157
  },
2158
2158
  h.query
2159
- ), S;
2159
+ ), O;
2160
2160
  if (h.iframe) {
2161
2161
  const B = encodeURIComponent(h.path);
2162
- S = Ut, k.__src = B;
2162
+ O = Ut, y.__src = B;
2163
2163
  } else {
2164
2164
  const B = dt(h.path);
2165
- S = B.path, k = ee(B.query, k);
2165
+ O = B.path, y = Q(B.query, y);
2166
2166
  }
2167
2167
  e.push({
2168
- path: S,
2169
- query: k
2168
+ path: O,
2169
+ query: y
2170
2170
  });
2171
2171
  };
2172
2172
  return { openNewTab: u, setIFramePath: (h) => {
2173
2173
  Ut = h;
2174
2174
  }, active: t, reset: s };
2175
- }, Ns = { class: "stack-tab__container" }, Ps = ["src"], Ds = /* @__PURE__ */ J({
2175
+ }, Ns = { class: "stack-tab__container" }, Ps = ["src"], Ds = /* @__PURE__ */ Y({
2176
2176
  __name: "StackTabs",
2177
2177
  props: {
2178
2178
  defaultTabs: { default: () => [] },
@@ -2181,7 +2181,7 @@ const Rs = () => {
2181
2181
  contextmenu: { type: [Boolean, Object], default: !0 },
2182
2182
  pageTransition: { default: "stack-tab-swap" },
2183
2183
  tabTransition: { default: "stack-tab-zoom" },
2184
- tabScrollMode: { default: ue.BOTH },
2184
+ tabScrollMode: { default: le.BOTH },
2185
2185
  width: { default: "100%" },
2186
2186
  height: { default: "100%" },
2187
2187
  i18n: { default: "zh-CN" },
@@ -2191,78 +2191,78 @@ const Rs = () => {
2191
2191
  },
2192
2192
  emits: ["onActive", "onPageLoaded"],
2193
2193
  setup(e, { emit: t }) {
2194
- const { tabs: n, pageShown: r, caches: s, destroy: o, addPage: i, initial: u, setMaxSize: c, setGlobalScroll: l } = Ae(), h = t, f = e, d = $(!1), { changeLocale: k } = qe(), S = $(!1);
2195
- En("maximum", S);
2196
- const { setIFramePath: B } = Rs();
2197
- B(f.iframePath), l(f.globalScroll), k(f.i18n), An(() => {
2194
+ const { tabs: n, pageShown: r, caches: s, destroy: o, addPage: i, initial: u, setMaxSize: a, setGlobalScroll: l } = Ae(), h = t, f = e, { changeLocale: d } = qe(), y = R(!1);
2195
+ En("maximum", y);
2196
+ const { setIFramePath: O } = Rs();
2197
+ O(f.iframePath), l(f.globalScroll), d(f.i18n), An(() => {
2198
2198
  u(f.defaultTabs);
2199
2199
  });
2200
- const I = (y, v) => i(y, v), _ = (y) => {
2201
- h("onActive", y);
2200
+ const B = (w, _) => i(w, _), I = (w) => {
2201
+ h("onActive", w);
2202
2202
  };
2203
- c(f.max), In(() => {
2204
- window.console.log("StackTabs unmounted"), d.value = !0, o();
2203
+ a(f.max), In(() => {
2204
+ o();
2205
2205
  });
2206
2206
  const T = () => {
2207
2207
  h("onPageLoaded");
2208
2208
  };
2209
- return (y, v) => {
2210
- const E = qt("router-view");
2209
+ return (w, _) => {
2210
+ const g = qt("router-view");
2211
2211
  return z(), P("div", {
2212
- class: ie(["stack-tab", { "stack-tab__maximum": S.value }]),
2212
+ class: ie(["stack-tab", { "stack-tab__maximum": y.value }]),
2213
2213
  style: ot({
2214
- width: y.width,
2215
- height: y.height,
2216
- "z-index": S.value ? x(nn)("body *:not(.stack-tab,.stack-tab *)") : void 0
2214
+ width: w.width,
2215
+ height: w.height,
2216
+ "z-index": y.value ? S(nn)("body *:not(.stack-tab,.stack-tab *)") : void 0
2217
2217
  })
2218
2218
  }, [
2219
2219
  N(as, {
2220
- space: y.space,
2221
- onActive: _,
2222
- "tab-transition": y.tabTransition,
2223
- max: y.max
2220
+ space: w.space,
2221
+ onActive: I,
2222
+ "tab-transition": w.tabTransition,
2223
+ max: w.max
2224
2224
  }, {
2225
2225
  leftButton: oe(() => [
2226
- me(y.$slots, "leftButton")
2226
+ me(w.$slots, "leftButton")
2227
2227
  ]),
2228
2228
  rightButton: oe(() => [
2229
- me(y.$slots, "rightButton")
2229
+ me(w.$slots, "rightButton")
2230
2230
  ]),
2231
2231
  _: 3
2232
2232
  }, 8, ["space", "tab-transition", "max"]),
2233
2233
  X("div", Ns, [
2234
- d.value ? Y("", !0) : (z(), ae(E, { key: 0 }, {
2235
- default: oe(({ Component: a, route: p }) => [
2234
+ N(g, null, {
2235
+ default: oe(({ Component: x, route: c }) => [
2236
2236
  N(Jt, {
2237
- name: y.pageTransition,
2238
- onAfterLeave: v[0] || (v[0] = (m) => r.value = !0),
2237
+ name: w.pageTransition,
2238
+ onAfterLeave: _[0] || (_[0] = (p) => r.value = !0),
2239
2239
  mode: "out-in"
2240
2240
  }, {
2241
2241
  default: oe(() => [
2242
- (z(), ae(Bn, { include: x(s) }, [
2243
- x(r) ? (z(), ae(Cn(I(p, a)), {
2244
- key: p.fullPath,
2242
+ (z(), de(Bn, { include: S(s) }, [
2243
+ S(r) ? (z(), de(Cn(B(c, x)), {
2244
+ key: c.fullPath,
2245
2245
  onOnLoaded: T
2246
- }, null, 32)) : Y("", !0)
2246
+ }, null, 32)) : ee("", !0)
2247
2247
  ], 1032, ["include"]))
2248
2248
  ]),
2249
2249
  _: 2
2250
2250
  }, 1032, ["name"])
2251
2251
  ]),
2252
2252
  _: 1
2253
- })),
2253
+ }),
2254
2254
  N(Yt, {
2255
- name: y.pageTransition,
2255
+ name: w.pageTransition,
2256
2256
  appear: ""
2257
2257
  }, {
2258
2258
  default: oe(() => [
2259
- (z(!0), P(Fe, null, it(x(n).filter((a) => a.iframe), (a) => Zt((z(), P("iframe", {
2260
- key: a.id,
2259
+ (z(!0), P(Fe, null, it(S(n).filter((x) => x.iframe), (x) => Zt((z(), P("iframe", {
2260
+ key: x.id,
2261
2261
  class: "stack-tab__iframe",
2262
- src: /^(javascript|data):/i.test(a.url ?? "") ? "about:blank" : a.url,
2262
+ src: /^(javascript|data):/i.test(x.url ?? "") ? "about:blank" : x.url,
2263
2263
  frameborder: "0"
2264
2264
  }, null, 8, Ps)), [
2265
- [Xt, a.active && x(r)]
2265
+ [Xt, x.active && S(r)]
2266
2266
  ])), 128))
2267
2267
  ]),
2268
2268
  _: 1
@@ -2309,14 +2309,14 @@ const Ws = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
2309
2309
  u + `background-image: url(${i});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`
2310
2310
  );
2311
2311
  }, Xs = () => {
2312
- const { attrs: e, props: t } = Kt(), { pageShown: n, getTab: r, markDeletableCache: s, removeComponent: o, getComponent: i, addPageScroller: u } = Ae(), c = Mn(), l = at();
2312
+ const { attrs: e, props: t } = Kt(), { pageShown: n, getTab: r, markDeletableCache: s, removeComponent: o, getComponent: i, addPageScroller: u } = Ae(), a = Mn(), l = at();
2313
2313
  let h = "", f = "";
2314
2314
  h = e.tId || t.tId;
2315
2315
  const d = e.pId || t.pId;
2316
- return f = c.query.__tab, {
2316
+ return f = a.query.__tab, {
2317
2317
  forward: (I) => {
2318
2318
  n.value = !1;
2319
- const _ = ee(
2319
+ const T = Q(
2320
2320
  {
2321
2321
  __tab: f
2322
2322
  },
@@ -2324,52 +2324,52 @@ const Ws = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
2324
2324
  );
2325
2325
  l.push({
2326
2326
  path: I.path,
2327
- query: _
2327
+ query: T
2328
2328
  });
2329
2329
  },
2330
- backward: (I, _) => {
2330
+ backward: (I, T) => {
2331
2331
  n.value = !1;
2332
- const T = r(h);
2333
- if (!T)
2332
+ const w = r(h);
2333
+ if (!w)
2334
2334
  return;
2335
- const y = T.pages;
2336
- let v = 0;
2335
+ const _ = w.pages;
2336
+ let g = 0;
2337
2337
  if (typeof I == "number")
2338
- v = Math.abs(I);
2338
+ g = Math.abs(I);
2339
2339
  else {
2340
- let p = 1, m = !1;
2341
- const j = y.list(), F = dt(I);
2342
- _ = ee(F.query, _);
2343
- for (let q = y.size() - 2; q >= 0; q--) {
2340
+ let p = 1, v = !1;
2341
+ const j = _.list(), F = dt(I);
2342
+ T = Q(F.query, T);
2343
+ for (let q = _.size() - 2; q >= 0; q--) {
2344
2344
  if (j[q].path === F.path) {
2345
- m = !0;
2345
+ v = !0;
2346
2346
  break;
2347
2347
  }
2348
2348
  p += 1;
2349
2349
  }
2350
- m && (v = p);
2350
+ v && (g = p);
2351
2351
  }
2352
- if (v === 0 || y.size() <= v)
2352
+ if (g === 0 || _.size() <= g)
2353
2353
  return;
2354
- for (let p = 0; p < v; p++) {
2355
- const m = y.pop();
2356
- o(m.id), s(m.id);
2354
+ for (let p = 0; p < g; p++) {
2355
+ const v = _.pop();
2356
+ o(v.id), s(v.id);
2357
2357
  }
2358
- const E = y == null ? void 0 : y.peek(), a = i(E.id);
2359
- if (a != null) {
2360
- const p = a.components.DynamicComponent;
2361
- p.props = ee(_, p.props);
2358
+ const x = _ == null ? void 0 : _.peek(), c = i(x.id);
2359
+ if (c != null) {
2360
+ const p = c.components.DynamicComponent;
2361
+ p.props = Q(T, p.props);
2362
2362
  }
2363
2363
  l.push({
2364
- path: E.path,
2365
- query: E.query
2364
+ path: x.path,
2365
+ query: x.query
2366
2366
  });
2367
2367
  },
2368
2368
  addScroller: (...I) => {
2369
2369
  u(d, ...I);
2370
2370
  }
2371
2371
  };
2372
- }, Qs = /* @__PURE__ */ J({
2372
+ }, Qs = /* @__PURE__ */ Y({
2373
2373
  __name: "iframe",
2374
2374
  setup(e) {
2375
2375
  return Xs(), (t, n) => (z(), P("div"));
@@ -2387,7 +2387,7 @@ const Ws = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
2387
2387
  return { openTabLoading: n, closeTabLoading: r };
2388
2388
  }, to = {
2389
2389
  install(e, t) {
2390
- Zs("0.1.25"), e.component("VueStackTabs", Ds).use(_r).use(Hn().getI18n(t));
2390
+ Zs("0.1.26"), e.component("VueStackTabs", Ds).use(_r).use(Hn().getI18n(t));
2391
2391
  }
2392
2392
  };
2393
2393
  export {
@@ -2395,7 +2395,7 @@ export {
2395
2395
  He as Stack,
2396
2396
  Ds as StackTab,
2397
2397
  rt as TabHeaderButton,
2398
- ue as TabScrollMode,
2398
+ le as TabScrollMode,
2399
2399
  to as default,
2400
2400
  Rs as useStackTab,
2401
2401
  eo as useTabLoading,