vue-stack-tabs 0.1.47 → 0.1.48

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
- var vn = Object.defineProperty;
2
- var mn = (t, e, n) => e in t ? vn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var _t = (t, e, n) => mn(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { inject as ct, ref as D, reactive as Ee, readonly as xt, toRaw as gn, defineComponent as ee, openBlock as R, createElementBlock as V, normalizeStyle as Fe, unref as x, createElementVNode as Q, createCommentVNode as se, nextTick as le, onMounted as He, onDeactivated as yn, onActivated as wn, onUnmounted as Ze, createVNode as N, resolveComponent as Xt, normalizeClass as fe, withModifiers as Ie, toDisplayString as Gt, Fragment as je, renderList as lt, createBlock as ge, computed as ke, renderSlot as xe, watch as kn, withDirectives as Yt, vShow as Kt, withCtx as ue, TransitionGroup as Jt, mergeProps as _n, Transition as Qt, provide as xn, onBeforeMount as Tn, onBeforeUnmount as Tt, KeepAlive as Sn, resolveDynamicComponent as On, getCurrentInstance as en } from "vue";
1
+ var bn = Object.defineProperty;
2
+ var vn = (t, e, n) => e in t ? bn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var _t = (t, e, n) => vn(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { inject as ct, ref as D, reactive as Ee, readonly as xt, toRaw as mn, defineComponent as ee, openBlock as R, createElementBlock as V, normalizeStyle as Fe, unref as x, createElementVNode as Q, createCommentVNode as se, nextTick as le, onMounted as He, onDeactivated as gn, onActivated as yn, onUnmounted as Ze, createVNode as N, resolveComponent as jt, normalizeClass as fe, withModifiers as Ie, toDisplayString as Xt, Fragment as je, renderList as lt, createBlock as ge, computed as ke, renderSlot as xe, watch as wn, withDirectives as Gt, vShow as Yt, withCtx as ue, TransitionGroup as Kt, mergeProps as kn, Transition as Jt, provide as _n, onBeforeMount as xn, onBeforeUnmount as Tn, KeepAlive as Sn, resolveDynamicComponent as On, getCurrentInstance as Qt } from "vue";
5
5
  import { useRouter as ut, useRoute as An } from "vue-router";
6
6
  const En = {
7
7
  VueStackTab: {
@@ -64,7 +64,7 @@ function $n(t) {
64
64
  }
65
65
  return Rn(n) ? n : [];
66
66
  }
67
- function St(t, e) {
67
+ function Tt(t, e) {
68
68
  if (!Ln(t))
69
69
  return "";
70
70
  const n = $n(e);
@@ -96,14 +96,14 @@ function Pn(t, e) {
96
96
  t = t.replace(`{${n}}`, String(e[n]));
97
97
  return t;
98
98
  }
99
- function tn(t, e) {
99
+ function en(t, e) {
100
100
  return Object.keys(e).forEach((n) => {
101
- e[n] instanceof Object && n in t && (e[n] = { ...e[n], ...tn(t[n], e[n]) });
101
+ e[n] instanceof Object && n in t && (e[n] = { ...e[n], ...en(t[n], e[n]) });
102
102
  }), { ...t || {}, ...e };
103
103
  }
104
- const Nn = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", Wn = (t) => Nn ? Symbol(t) : "_vt_" + t, nn = /* @__PURE__ */ Wn("i18n");
104
+ const Nn = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", Wn = (t) => Nn ? Symbol(t) : "_vt_" + t, tn = /* @__PURE__ */ Wn("i18n");
105
105
  function Me() {
106
- return ct(nn);
106
+ return ct(tn);
107
107
  }
108
108
  function Vn(t) {
109
109
  const e = Object.assign({ locale: "en", fallbackLocale: "en", messages: {} }, t), n = D(e.locale), s = Ee({});
@@ -114,7 +114,7 @@ function Vn(t) {
114
114
  if (!r)
115
115
  return "";
116
116
  const i = typeof o == "string" && o ? o : n.value;
117
- let d = St(s[i], r) || St(s[e.fallbackLocale], r);
117
+ let d = Tt(s[i], r) || Tt(s[e.fallbackLocale], r);
118
118
  if (o && typeof o != "string") {
119
119
  const a = Dn(d, o);
120
120
  zn(a) || (d = Pn(d, a));
@@ -125,13 +125,13 @@ function Vn(t) {
125
125
  options: xt(t || {}),
126
126
  install(r) {
127
127
  const o = this;
128
- r.config.globalProperties.$t = o.t, r.provide(nn, o);
128
+ r.config.globalProperties.$t = o.t, r.provide(tn, o);
129
129
  },
130
130
  changeLocale(r) {
131
131
  n.value = r;
132
132
  },
133
133
  setLocaleMessage(r, o) {
134
- s[r] = tn(gn(s[r] || {}), o);
134
+ s[r] = en(mn(s[r] || {}), o);
135
135
  },
136
136
  getLocaleMessage(r) {
137
137
  return s[r] || {};
@@ -167,7 +167,7 @@ const Un = () => {
167
167
  });
168
168
  }
169
169
  };
170
- }, sn = ({
170
+ }, nn = ({
171
171
  wrap: t,
172
172
  left: e = 0,
173
173
  top: n = 0,
@@ -191,7 +191,7 @@ function qn({
191
191
  else {
192
192
  const { offsetLeft: r, offsetTop: o } = t;
193
193
  let i, d;
194
- n === "center" ? d = o + (t.clientHeight - e.clientHeight) / 2 : d = o, s === "center" ? i = r + (t.clientWidth - e.clientWidth) / 2 : i = r, sn({ wrap: e, left: i, top: d });
194
+ n === "center" ? d = o + (t.clientHeight - e.clientHeight) / 2 : d = o, s === "center" ? i = r + (t.clientWidth - e.clientWidth) / 2 : i = r, nn({ wrap: e, left: i, top: d });
195
195
  }
196
196
  }
197
197
  const ft = (t = ".stack-tab__container *") => {
@@ -278,7 +278,7 @@ function We(t) {
278
278
  var e = new Error(t);
279
279
  return e.source = "ulid", e;
280
280
  }
281
- var dt = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Se = dt.length, Ot = Math.pow(2, 48) - 1, Fn = 10, Hn = 16;
281
+ var dt = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Se = dt.length, St = Math.pow(2, 48) - 1, Fn = 10, Hn = 16;
282
282
  function Zn(t) {
283
283
  var e = Math.floor(t() * Se);
284
284
  return e === Se && (e = Se - 1), dt.charAt(e);
@@ -286,8 +286,8 @@ function Zn(t) {
286
286
  function jn(t, e) {
287
287
  if (isNaN(t))
288
288
  throw new Error(t + " must be a number");
289
- if (t > Ot)
290
- throw We("cannot encode time greater than " + Ot);
289
+ if (t > St)
290
+ throw We("cannot encode time greater than " + St);
291
291
  if (t < 0)
292
292
  throw We("time must be positive");
293
293
  if (Number.isInteger(t) === !1)
@@ -527,12 +527,12 @@ ht.exports;
527
527
  return e;
528
528
  });
529
529
  })(ht);
530
- var rn = ht.exports;
531
- const Kn = new TextEncoder(), Jn = new TextDecoder("utf-8", { ignoreBOM: !0 }), At = {
530
+ var sn = ht.exports;
531
+ const Kn = new TextEncoder(), Jn = new TextDecoder("utf-8", { ignoreBOM: !0 }), Ot = {
532
532
  /* API */
533
533
  encode: (t) => Kn.encode(t),
534
534
  decode: (t) => Jn.decode(t)
535
- }, on = (() => {
535
+ }, rn = (() => {
536
536
  const e = [..."0123456789abcdef"], n = new Array(256);
537
537
  for (let s = 0; s < 256; s++)
538
538
  n[s] = `${e[s >>> 4 & 15]}${e[s & 15]}`;
@@ -540,7 +540,7 @@ const Kn = new TextEncoder(), Jn = new TextDecoder("utf-8", { ignoreBOM: !0 }),
540
540
  })(), Qn = (() => {
541
541
  const t = {};
542
542
  for (let e = 0; e < 256; e++) {
543
- const n = on[e], s = n[0], r = s.toUpperCase(), o = n[1], i = o.toUpperCase();
543
+ const n = rn[e], s = n[0], r = s.toUpperCase(), o = n[1], i = o.toUpperCase();
544
544
  t[n] = e, t[`${s}${i}`] = e, t[`${r}${o}`] = e, t[`${r}${i}`] = e;
545
545
  }
546
546
  return t;
@@ -549,17 +549,17 @@ const Kn = new TextEncoder(), Jn = new TextDecoder("utf-8", { ignoreBOM: !0 }),
549
549
  encode: (t) => {
550
550
  let e = "";
551
551
  for (let n = 0, s = t.length; n < s; n++)
552
- e += on[t[n]];
552
+ e += rn[t[n]];
553
553
  return e;
554
554
  },
555
- encodeStr: (t) => nt.encode(At.encode(t)),
555
+ encodeStr: (t) => nt.encode(Ot.encode(t)),
556
556
  decode: (t) => {
557
557
  const e = t.length / 2, n = new Uint8Array(e);
558
558
  for (let s = 0; s < e; s++)
559
559
  n[s] = Qn[t.slice(s * 2, s * 2 + 2)];
560
560
  return n;
561
561
  },
562
- decodeStr: (t) => At.decode(nt.decode(t)),
562
+ decodeStr: (t) => Ot.decode(nt.decode(t)),
563
563
  is: es
564
564
  };
565
565
  function Oe(t) {
@@ -581,21 +581,21 @@ function st(t, e = !0) {
581
581
  if (e && t.finished)
582
582
  throw new Error("Hash#digest() has already been called");
583
583
  }
584
- function an(t, e) {
584
+ function on(t, e) {
585
585
  pt(t);
586
586
  const n = e.outputLen;
587
587
  if (t.length < n)
588
588
  throw new Error(`digestInto() expects output buffer of length at least ${n}`);
589
589
  }
590
- const Re = /* @__PURE__ */ BigInt(2 ** 32 - 1), Et = /* @__PURE__ */ BigInt(32);
591
- function It(t, e = !1) {
592
- return e ? { h: Number(t & Re), l: Number(t >> Et & Re) } : { h: Number(t >> Et & Re) | 0, l: Number(t & Re) | 0 };
590
+ const Re = /* @__PURE__ */ BigInt(2 ** 32 - 1), At = /* @__PURE__ */ BigInt(32);
591
+ function Et(t, e = !1) {
592
+ return e ? { h: Number(t & Re), l: Number(t >> At & Re) } : { h: Number(t >> At & Re) | 0, l: Number(t & Re) | 0 };
593
593
  }
594
594
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
595
- const ns = (t) => new Uint8Array(t.buffer, t.byteOffset, t.byteLength), Ue = (t) => new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4)), qe = (t, e) => t << 32 - e | t >>> e, j = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68, cn = (t) => t << 24 & 4278190080 | t << 8 & 16711680 | t >>> 8 & 65280 | t >>> 24 & 255, ss = j ? (t) => t : (t) => cn(t);
595
+ const ns = (t) => new Uint8Array(t.buffer, t.byteOffset, t.byteLength), Ue = (t) => new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4)), qe = (t, e) => t << 32 - e | t >>> e, j = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68, an = (t) => t << 24 & 4278190080 | t << 8 & 16711680 | t >>> 8 & 65280 | t >>> 24 & 255, ss = j ? (t) => t : (t) => an(t);
596
596
  function H(t) {
597
597
  for (let e = 0; e < t.length; e++)
598
- t[e] = cn(t[e]);
598
+ t[e] = an(t[e]);
599
599
  }
600
600
  function rs(t) {
601
601
  if (typeof t != "string")
@@ -648,7 +648,7 @@ class as extends os {
648
648
  return this;
649
649
  }
650
650
  digestInto(e) {
651
- st(this), an(e, this);
651
+ st(this), on(e, this);
652
652
  const { pos: n, buffer32: s } = this;
653
653
  this.finished = !0, this.buffer.subarray(n).fill(0), j || H(s), this.compress(s, 0, !0), j || H(s);
654
654
  const r = Ue(e);
@@ -681,13 +681,13 @@ function oe(t, e, n, s, r) {
681
681
  function ie(t, e, n, s, r) {
682
682
  return t = t + e + r | 0, s = qe(s ^ t, 8), n = n + s | 0, e = qe(e ^ n, 7), { a: t, b: e, c: n, d: s };
683
683
  }
684
- function Bt(t, e, n, s, r, o, i, d, a, c, p, f, l, m, S, E, I, y, w, T) {
684
+ function It(t, e, n, s, r, o, i, d, a, c, p, f, l, m, S, E, I, y, w, T) {
685
685
  let g = 0;
686
686
  for (let O = 0; O < s; O++)
687
687
  ({ a: r, b: a, c: l, d: I } = oe(r, a, l, I, n[e + t[g++]])), { a: r, b: a, c: l, d: I } = ie(r, a, l, I, n[e + t[g++]]), { a: o, b: c, c: m, d: y } = oe(o, c, m, y, n[e + t[g++]]), { a: o, b: c, c: m, d: y } = ie(o, c, m, y, n[e + t[g++]]), { a: i, b: p, c: S, d: w } = oe(i, p, S, w, n[e + t[g++]]), { a: i, b: p, c: S, d: w } = ie(i, p, S, w, n[e + t[g++]]), { a: d, b: f, c: E, d: T } = oe(d, f, E, T, n[e + t[g++]]), { a: d, b: f, c: E, d: T } = ie(d, f, E, T, n[e + t[g++]]), { a: r, b: c, c: S, d: T } = oe(r, c, S, T, n[e + t[g++]]), { a: r, b: c, c: S, d: T } = ie(r, c, S, T, n[e + t[g++]]), { a: o, b: p, c: E, d: I } = oe(o, p, E, I, n[e + t[g++]]), { a: o, b: p, c: E, d: I } = ie(o, p, E, I, n[e + t[g++]]), { a: i, b: f, c: l, d: y } = oe(i, f, l, y, n[e + t[g++]]), { a: i, b: f, c: l, d: y } = ie(i, f, l, y, n[e + t[g++]]), { a: d, b: a, c: m, d: w } = oe(d, a, m, w, n[e + t[g++]]), { a: d, b: a, c: m, d: w } = ie(d, a, m, w, n[e + t[g++]]);
688
688
  return { v0: r, v1: o, v2: i, v3: d, v4: a, v5: c, v6: p, v7: f, v8: l, v9: m, v10: S, v11: E, v12: I, v13: y, v14: w, v15: T };
689
689
  }
690
- const Mt = /* @__PURE__ */ (() => {
690
+ const Bt = /* @__PURE__ */ (() => {
691
691
  const t = Array.from({ length: 16 }, (s, r) => r), e = (s) => [2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8].map((r) => s[r]), n = [];
692
692
  for (let s = 0, r = t; s < 7; s++, r = e(r))
693
693
  n.push(...r);
@@ -720,7 +720,7 @@ class vt extends as {
720
720
  set() {
721
721
  }
722
722
  b2Compress(e, n, s, r = 0) {
723
- const { state: o, pos: i } = this, { h: d, l: a } = It(BigInt(e), !0), { v0: c, v1: p, v2: f, v3: l, v4: m, v5: S, v6: E, v7: I, v8: y, v9: w, v10: T, v11: g, v12: O, v13: u, v14: _, v15: k } = Bt(Mt, r, s, 7, o[0], o[1], o[2], o[3], o[4], o[5], o[6], o[7], te[0], te[1], te[2], te[3], d, a, i, n);
723
+ const { state: o, pos: i } = this, { h: d, l: a } = Et(BigInt(e), !0), { v0: c, v1: p, v2: f, v3: l, v4: m, v5: S, v6: E, v7: I, v8: y, v9: w, v10: T, v11: g, v12: O, v13: u, v14: _, v15: k } = It(Bt, r, s, 7, o[0], o[1], o[2], o[3], o[4], o[5], o[6], o[7], te[0], te[1], te[2], te[3], d, a, i, n);
724
724
  o[0] = c ^ y, o[1] = p ^ w, o[2] = f ^ T, o[3] = l ^ g, o[4] = m ^ O, o[5] = S ^ u, o[6] = E ^ _, o[7] = I ^ k;
725
725
  }
726
726
  compress(e, n = 0, s = !1) {
@@ -746,9 +746,9 @@ class vt extends as {
746
746
  }
747
747
  // Same as b2Compress, but doesn't modify state and returns 16 u32 array (instead of 8)
748
748
  b2CompressOut() {
749
- const { state: e, pos: n, flags: s, buffer32: r, bufferOut32: o } = this, { h: i, l: d } = It(BigInt(this.chunkOut++));
749
+ const { state: e, pos: n, flags: s, buffer32: r, bufferOut32: o } = this, { h: i, l: d } = Et(BigInt(this.chunkOut++));
750
750
  j || H(r);
751
- const { v0: a, v1: c, v2: p, v3: f, v4: l, v5: m, v6: S, v7: E, v8: I, v9: y, v10: w, v11: T, v12: g, v13: O, v14: u, v15: _ } = Bt(Mt, 0, r, 7, e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], te[0], te[1], te[2], te[3], d, i, n, s);
751
+ const { v0: a, v1: c, v2: p, v3: f, v4: l, v5: m, v6: S, v7: E, v8: I, v9: y, v10: w, v11: T, v12: g, v13: O, v14: u, v15: _ } = It(Bt, 0, r, 7, e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], te[0], te[1], te[2], te[3], d, i, n, s);
752
752
  o[0] = a ^ I, o[1] = c ^ y, o[2] = p ^ w, o[3] = f ^ T, o[4] = l ^ g, o[5] = m ^ O, o[6] = S ^ u, o[7] = E ^ _, o[8] = e[0] ^ I, o[9] = e[1] ^ y, o[10] = e[2] ^ w, o[11] = e[3] ^ T, o[12] = e[4] ^ g, o[13] = e[5] ^ O, o[14] = e[6] ^ u, o[15] = e[7] ^ _, j || (H(r), H(o)), this.posOut = 0;
753
753
  }
754
754
  finish() {
@@ -777,7 +777,7 @@ class vt extends as {
777
777
  return Oe(e), this.xofInto(new Uint8Array(e));
778
778
  }
779
779
  digestInto(e) {
780
- if (an(e, this), this.finished)
780
+ if (on(e, this), this.finished)
781
781
  throw new Error("digest() was already called");
782
782
  return this.enableXOF = !1, this.writeInto(e), this.destroy(), e;
783
783
  }
@@ -787,9 +787,9 @@ class vt extends as {
787
787
  }
788
788
  const cs = /* @__PURE__ */ is((t) => new vt(t)), rt = (t) => {
789
789
  const e = `${t.id}|${t.title}|${t.iframe ? "Y" : "N"}|${t.closable ? "Y" : "N"}|${t.refreshable ? "Y" : "N"}`;
790
- return rn.compressToEncodedURIComponent(e);
790
+ return sn.compressToEncodedURIComponent(e);
791
791
  }, ls = (t) => {
792
- const n = rn.decompressFromEncodedURIComponent(t).split("|");
792
+ const n = sn.decompressFromEncodedURIComponent(t).split("|");
793
793
  return {
794
794
  id: n[0],
795
795
  title: n[1],
@@ -797,7 +797,7 @@ const cs = /* @__PURE__ */ is((t) => new vt(t)), rt = (t) => {
797
797
  closable: n[3] === "Y",
798
798
  refreshable: n[4] === "Y"
799
799
  };
800
- }, Ct = (t, e, n) => {
800
+ }, Mt = (t, e, n) => {
801
801
  const s = [];
802
802
  for (const o in n)
803
803
  o.startsWith("__") || s.push({
@@ -899,7 +899,7 @@ const ps = /* @__PURE__ */ ee({
899
899
  ]), 4)) : se("", !0);
900
900
  }
901
901
  }), M = D([]), Ye = [], W = D([]), ae = /* @__PURE__ */ new Map(), de = /* @__PURE__ */ new Set(), F = /* @__PURE__ */ new Set(), he = D(!0), Ke = "stacktab-active-tab", pe = /* @__PURE__ */ new Map();
902
- let Lt = !1, $e = 0, zt = !1, Je = "";
902
+ let Ct = !1, $e = 0, Lt = !1, Je = "";
903
903
  const Ce = () => {
904
904
  const t = ut(), e = ye(), {
905
905
  t: n
@@ -914,7 +914,7 @@ const Ce = () => {
914
914
  closable: !0,
915
915
  refreshable: !0,
916
916
  iframe: !1
917
- }), ze = Ct(h.id, q.path, q.query), X = {
917
+ }), ze = Mt(h.id, q.path, q.query), X = {
918
918
  id: ze,
919
919
  tabId: h.id,
920
920
  path: q.path,
@@ -947,7 +947,7 @@ const Ce = () => {
947
947
  }
948
948
  h || M.value.push(B);
949
949
  }
950
- Lt = !0;
950
+ Ct = !0;
951
951
  }, o = (b) => {
952
952
  for (const v of M.value)
953
953
  if (v.id === b)
@@ -970,7 +970,7 @@ const Ce = () => {
970
970
  iframe: !1
971
971
  }, b.query.__tab = rt(h)), F.has(h.id) || !v)
972
972
  return;
973
- const z = b.matched[b.matched.length - 1].path, q = b.path.endsWith("/") ? b.path.substring(0, b.path.length - 1) : b.path, P = Ct(h.id, z === q ? q : b.path, b.query.valueOf());
973
+ const z = b.matched[b.matched.length - 1].path, q = b.path.endsWith("/") ? b.path.substring(0, b.path.length - 1) : b.path, P = Mt(h.id, z === q ? q : b.path, b.query.valueOf());
974
974
  if (de.has(P))
975
975
  return ae.get(P);
976
976
  const ze = b.query.__src;
@@ -1013,17 +1013,17 @@ const Ce = () => {
1013
1013
  setup(Y, kt) {
1014
1014
  return He(() => {
1015
1015
  kt.emit("onLoaded"), m(P, ".cache-page-wrapper");
1016
- }), yn(() => {
1016
+ }), gn(() => {
1017
1017
  f(P);
1018
- }), wn(() => {
1018
+ }), yn(() => {
1019
1019
  kt.emit("onLoaded"), p(P), $(), F.clear(), v.props = null;
1020
1020
  }), Ze(() => {
1021
1021
  l(P);
1022
1022
  }), () => N("div", {
1023
1023
  class: "cache-page-wrapper",
1024
1024
  id: "W-" + h.id,
1025
- style: [zt ? "overflow:auto" : "overflow:hidden"]
1026
- }, [N(Xt("dynamic-component"), {
1025
+ style: [Lt ? "overflow:auto" : "overflow:hidden"]
1026
+ }, [N(jt("dynamic-component"), {
1027
1027
  tId: h.id,
1028
1028
  pId: P
1029
1029
  }, null), N(ps, {
@@ -1241,7 +1241,7 @@ const Ce = () => {
1241
1241
  tabs: M,
1242
1242
  caches: W,
1243
1243
  pageShown: he,
1244
- initialed: Lt,
1244
+ initialed: Ct,
1245
1245
  setMaxSize: (b) => {
1246
1246
  $e = b;
1247
1247
  },
@@ -1272,7 +1272,7 @@ const Ce = () => {
1272
1272
  refreshAllTabs: O,
1273
1273
  addPageScroller: m,
1274
1274
  setGlobalScroll: (b) => {
1275
- zt = b;
1275
+ Lt = b;
1276
1276
  },
1277
1277
  clearSession: re,
1278
1278
  setSessionPrefix: (b) => {
@@ -1294,7 +1294,7 @@ const Ce = () => {
1294
1294
  style: { "margin-left": "8px" },
1295
1295
  onContextmenu: n[0] || (n[0] = Ie(() => {
1296
1296
  }, ["prevent"]))
1297
- }, Gt(e.title), 33)
1297
+ }, Xt(e.title), 33)
1298
1298
  ]));
1299
1299
  }
1300
1300
  }), vs = {
@@ -1444,7 +1444,7 @@ const Ce = () => {
1444
1444
  Q("div", {
1445
1445
  class: "stack-tab__item-title-content",
1446
1446
  title: d.value
1447
- }, Gt(d.value), 9, _s)
1447
+ }, Xt(d.value), 9, _s)
1448
1448
  ]),
1449
1449
  p.item.closable ? (R(), V("div", {
1450
1450
  key: 0,
@@ -1463,11 +1463,11 @@ var ve = [], Ss = function() {
1463
1463
  return ve.some(function(t) {
1464
1464
  return t.skippedTargets.length > 0;
1465
1465
  });
1466
- }, Rt = "ResizeObserver loop completed with undelivered notifications.", As = function() {
1466
+ }, zt = "ResizeObserver loop completed with undelivered notifications.", As = function() {
1467
1467
  var t;
1468
1468
  typeof ErrorEvent == "function" ? t = new ErrorEvent("error", {
1469
- message: Rt
1470
- }) : (t = document.createEvent("Event"), t.initEvent("error", !1, !1), t.message = Rt), window.dispatchEvent(t);
1469
+ message: zt
1470
+ }) : (t = document.createEvent("Event"), t.initEvent("error", !1, !1), t.message = zt), window.dispatchEvent(t);
1471
1471
  }, Be;
1472
1472
  (function(t) {
1473
1473
  t.BORDER_BOX = "border-box", t.CONTENT_BOX = "content-box", t.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
@@ -1479,7 +1479,7 @@ var me = function(t) {
1479
1479
  this.inlineSize = e, this.blockSize = n, me(this);
1480
1480
  }
1481
1481
  return t;
1482
- }(), ln = function() {
1482
+ }(), cn = function() {
1483
1483
  function t(e, n, s, r) {
1484
1484
  return this.x = e, this.y = n, this.width = s, this.height = r, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, me(this);
1485
1485
  }
@@ -1491,14 +1491,14 @@ var me = function(t) {
1491
1491
  }, t;
1492
1492
  }(), gt = function(t) {
1493
1493
  return t instanceof SVGElement && "getBBox" in t;
1494
- }, un = function(t) {
1494
+ }, ln = function(t) {
1495
1495
  if (gt(t)) {
1496
1496
  var e = t.getBBox(), n = e.width, s = e.height;
1497
1497
  return !n && !s;
1498
1498
  }
1499
1499
  var r = t, o = r.offsetWidth, i = r.offsetHeight;
1500
1500
  return !(o || i || t.getClientRects().length);
1501
- }, $t = function(t) {
1501
+ }, Rt = function(t) {
1502
1502
  var e;
1503
1503
  if (t instanceof Element)
1504
1504
  return !0;
@@ -1519,29 +1519,29 @@ var me = function(t) {
1519
1519
  return !0;
1520
1520
  }
1521
1521
  return !1;
1522
- }, Ae = typeof window < "u" ? window : {}, De = /* @__PURE__ */ new WeakMap(), Dt = /auto|scroll/, Bs = /^tb|vertical/, Ms = /msie|trident/i.test(Ae.navigator && Ae.navigator.userAgent), K = function(t) {
1522
+ }, Ae = typeof window < "u" ? window : {}, De = /* @__PURE__ */ new WeakMap(), $t = /auto|scroll/, Bs = /^tb|vertical/, Ms = /msie|trident/i.test(Ae.navigator && Ae.navigator.userAgent), K = function(t) {
1523
1523
  return parseFloat(t || "0");
1524
1524
  }, _e = function(t, e, n) {
1525
1525
  return t === void 0 && (t = 0), e === void 0 && (e = 0), n === void 0 && (n = !1), new Es((n ? e : t) || 0, (n ? t : e) || 0);
1526
- }, Pt = me({
1526
+ }, Dt = me({
1527
1527
  devicePixelContentBoxSize: _e(),
1528
1528
  borderBoxSize: _e(),
1529
1529
  contentBoxSize: _e(),
1530
- contentRect: new ln(0, 0, 0, 0)
1531
- }), fn = function(t, e) {
1530
+ contentRect: new cn(0, 0, 0, 0)
1531
+ }), un = function(t, e) {
1532
1532
  if (e === void 0 && (e = !1), De.has(t) && !e)
1533
1533
  return De.get(t);
1534
- if (un(t))
1535
- return De.set(t, Pt), Pt;
1536
- var n = getComputedStyle(t), s = gt(t) && t.ownerSVGElement && t.getBBox(), r = !Ms && n.boxSizing === "border-box", o = Bs.test(n.writingMode || ""), i = !s && Dt.test(n.overflowY || ""), d = !s && Dt.test(n.overflowX || ""), a = s ? 0 : K(n.paddingTop), c = s ? 0 : K(n.paddingRight), p = s ? 0 : K(n.paddingBottom), f = s ? 0 : K(n.paddingLeft), l = s ? 0 : K(n.borderTopWidth), m = s ? 0 : K(n.borderRightWidth), S = s ? 0 : K(n.borderBottomWidth), E = s ? 0 : K(n.borderLeftWidth), I = f + c, y = a + p, w = E + m, T = l + S, g = d ? t.offsetHeight - T - t.clientHeight : 0, O = i ? t.offsetWidth - w - t.clientWidth : 0, u = r ? I + w : 0, _ = r ? y + T : 0, k = s ? s.width : K(n.width) - u - O, L = s ? s.height : K(n.height) - _ - g, $ = k + I + O + w, G = L + y + g + T, A = me({
1534
+ if (ln(t))
1535
+ return De.set(t, Dt), Dt;
1536
+ var n = getComputedStyle(t), s = gt(t) && t.ownerSVGElement && t.getBBox(), r = !Ms && n.boxSizing === "border-box", o = Bs.test(n.writingMode || ""), i = !s && $t.test(n.overflowY || ""), d = !s && $t.test(n.overflowX || ""), a = s ? 0 : K(n.paddingTop), c = s ? 0 : K(n.paddingRight), p = s ? 0 : K(n.paddingBottom), f = s ? 0 : K(n.paddingLeft), l = s ? 0 : K(n.borderTopWidth), m = s ? 0 : K(n.borderRightWidth), S = s ? 0 : K(n.borderBottomWidth), E = s ? 0 : K(n.borderLeftWidth), I = f + c, y = a + p, w = E + m, T = l + S, g = d ? t.offsetHeight - T - t.clientHeight : 0, O = i ? t.offsetWidth - w - t.clientWidth : 0, u = r ? I + w : 0, _ = r ? y + T : 0, k = s ? s.width : K(n.width) - u - O, L = s ? s.height : K(n.height) - _ - g, $ = k + I + O + w, G = L + y + g + T, A = me({
1537
1537
  devicePixelContentBoxSize: _e(Math.round(k * devicePixelRatio), Math.round(L * devicePixelRatio), o),
1538
1538
  borderBoxSize: _e($, G, o),
1539
1539
  contentBoxSize: _e(k, L, o),
1540
- contentRect: new ln(f, a, k, L)
1540
+ contentRect: new cn(f, a, k, L)
1541
1541
  });
1542
1542
  return De.set(t, A), A;
1543
- }, dn = function(t, e, n) {
1544
- var s = fn(t, n), r = s.borderBoxSize, o = s.contentBoxSize, i = s.devicePixelContentBoxSize;
1543
+ }, fn = function(t, e, n) {
1544
+ var s = un(t, n), r = s.borderBoxSize, o = s.contentBoxSize, i = s.devicePixelContentBoxSize;
1545
1545
  switch (e) {
1546
1546
  case Be.DEVICE_PIXEL_CONTENT_BOX:
1547
1547
  return i;
@@ -1552,12 +1552,12 @@ var me = function(t) {
1552
1552
  }
1553
1553
  }, Cs = /* @__PURE__ */ function() {
1554
1554
  function t(e) {
1555
- var n = fn(e);
1555
+ var n = un(e);
1556
1556
  this.target = e, this.contentRect = n.contentRect, this.borderBoxSize = me([n.borderBoxSize]), this.contentBoxSize = me([n.contentBoxSize]), this.devicePixelContentBoxSize = me([n.devicePixelContentBoxSize]);
1557
1557
  }
1558
1558
  return t;
1559
- }(), hn = function(t) {
1560
- if (un(t))
1559
+ }(), dn = function(t) {
1560
+ if (ln(t))
1561
1561
  return 1 / 0;
1562
1562
  for (var e = 0, n = t.parentNode; n; )
1563
1563
  e += 1, n = n.parentNode;
@@ -1568,8 +1568,8 @@ var me = function(t) {
1568
1568
  if (i.activeTargets.length !== 0) {
1569
1569
  var d = [];
1570
1570
  i.activeTargets.forEach(function(c) {
1571
- var p = new Cs(c.target), f = hn(c.target);
1572
- d.push(p), c.lastReportedSize = dn(c.target, c.observedBox), f < t && (t = f);
1571
+ var p = new Cs(c.target), f = dn(c.target);
1572
+ d.push(p), c.lastReportedSize = fn(c.target, c.observedBox), f < t && (t = f);
1573
1573
  }), e.push(function() {
1574
1574
  i.callback.call(i.observer, d, i.observer);
1575
1575
  }), i.activeTargets.splice(0, i.activeTargets.length);
@@ -1580,19 +1580,19 @@ var me = function(t) {
1580
1580
  r();
1581
1581
  }
1582
1582
  return t;
1583
- }, Nt = function(t) {
1583
+ }, Pt = function(t) {
1584
1584
  ve.forEach(function(n) {
1585
1585
  n.activeTargets.splice(0, n.activeTargets.length), n.skippedTargets.splice(0, n.skippedTargets.length), n.observationTargets.forEach(function(r) {
1586
- r.isActive() && (hn(r.target) > t ? n.activeTargets.push(r) : n.skippedTargets.push(r));
1586
+ r.isActive() && (dn(r.target) > t ? n.activeTargets.push(r) : n.skippedTargets.push(r));
1587
1587
  });
1588
1588
  });
1589
1589
  }, zs = function() {
1590
1590
  var t = 0;
1591
- for (Nt(t); Ss(); )
1592
- t = Ls(), Nt(t);
1591
+ for (Pt(t); Ss(); )
1592
+ t = Ls(), Pt(t);
1593
1593
  return Os() && As(), t > 0;
1594
- }, Qe, pn = [], Rs = function() {
1595
- return pn.splice(0).forEach(function(t) {
1594
+ }, Qe, hn = [], Rs = function() {
1595
+ return hn.splice(0).forEach(function(t) {
1596
1596
  return t();
1597
1597
  });
1598
1598
  }, $s = function(t) {
@@ -1604,14 +1604,14 @@ var me = function(t) {
1604
1604
  n.textContent = "".concat(e ? e-- : e++);
1605
1605
  };
1606
1606
  }
1607
- pn.push(t), Qe();
1607
+ hn.push(t), Qe();
1608
1608
  }, Ds = function(t) {
1609
1609
  $s(function() {
1610
1610
  requestAnimationFrame(t);
1611
1611
  });
1612
1612
  }, Ve = 0, Ps = function() {
1613
1613
  return !!Ve;
1614
- }, Ns = 250, Ws = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, Wt = [
1614
+ }, Ns = 250, Ws = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, Nt = [
1615
1615
  "resize",
1616
1616
  "load",
1617
1617
  "transitionend",
@@ -1626,7 +1626,7 @@ var me = function(t) {
1626
1626
  "mouseout",
1627
1627
  "blur",
1628
1628
  "focus"
1629
- ], Vt = function(t) {
1629
+ ], Wt = function(t) {
1630
1630
  return t === void 0 && (t = 0), Date.now() + t;
1631
1631
  }, et = !1, Vs = function() {
1632
1632
  function t() {
@@ -1639,13 +1639,13 @@ var me = function(t) {
1639
1639
  var n = this;
1640
1640
  if (e === void 0 && (e = Ns), !et) {
1641
1641
  et = !0;
1642
- var s = Vt(e);
1642
+ var s = Wt(e);
1643
1643
  Ds(function() {
1644
1644
  var r = !1;
1645
1645
  try {
1646
1646
  r = zs();
1647
1647
  } finally {
1648
- if (et = !1, e = s - Vt(), !Ps())
1648
+ if (et = !1, e = s - Wt(), !Ps())
1649
1649
  return;
1650
1650
  r ? n.run(1e3) : e > 0 ? n.run(e) : n.start();
1651
1651
  }
@@ -1660,16 +1660,16 @@ var me = function(t) {
1660
1660
  document.body ? n() : Ae.addEventListener("DOMContentLoaded", n);
1661
1661
  }, t.prototype.start = function() {
1662
1662
  var e = this;
1663
- this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), Wt.forEach(function(n) {
1663
+ this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), Nt.forEach(function(n) {
1664
1664
  return Ae.addEventListener(n, e.listener, !0);
1665
1665
  }));
1666
1666
  }, t.prototype.stop = function() {
1667
1667
  var e = this;
1668
- this.stopped || (this.observer && this.observer.disconnect(), Wt.forEach(function(n) {
1668
+ this.stopped || (this.observer && this.observer.disconnect(), Nt.forEach(function(n) {
1669
1669
  return Ae.removeEventListener(n, e.listener, !0);
1670
1670
  }), this.stopped = !0);
1671
1671
  }, t;
1672
- }(), it = new Vs(), Ut = function(t) {
1672
+ }(), it = new Vs(), Vt = function(t) {
1673
1673
  !Ve && t > 0 && it.start(), Ve += t, !Ve && it.stop();
1674
1674
  }, Us = function(t) {
1675
1675
  return !gt(t) && !Is(t) && getComputedStyle(t).display === "inline";
@@ -1681,7 +1681,7 @@ var me = function(t) {
1681
1681
  };
1682
1682
  }
1683
1683
  return t.prototype.isActive = function() {
1684
- var e = dn(this.target, this.observedBox, !0);
1684
+ var e = fn(this.target, this.observedBox, !0);
1685
1685
  return Us(this.target) && (this.lastReportedSize = e), this.lastReportedSize.inlineSize !== e.inlineSize || this.lastReportedSize.blockSize !== e.blockSize;
1686
1686
  }, t;
1687
1687
  }(), Fs = /* @__PURE__ */ function() {
@@ -1689,7 +1689,7 @@ var me = function(t) {
1689
1689
  this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = e, this.callback = n;
1690
1690
  }
1691
1691
  return t;
1692
- }(), Pe = /* @__PURE__ */ new WeakMap(), qt = function(t, e) {
1692
+ }(), Pe = /* @__PURE__ */ new WeakMap(), Ut = function(t, e) {
1693
1693
  for (var n = 0; n < t.length; n += 1)
1694
1694
  if (t[n].target === e)
1695
1695
  return n;
@@ -1702,17 +1702,17 @@ var me = function(t) {
1702
1702
  Pe.set(e, s);
1703
1703
  }, t.observe = function(e, n, s) {
1704
1704
  var r = Pe.get(e), o = r.observationTargets.length === 0;
1705
- qt(r.observationTargets, n) < 0 && (o && ve.push(r), r.observationTargets.push(new qs(n, s && s.box)), Ut(1), it.schedule());
1705
+ Ut(r.observationTargets, n) < 0 && (o && ve.push(r), r.observationTargets.push(new qs(n, s && s.box)), Vt(1), it.schedule());
1706
1706
  }, t.unobserve = function(e, n) {
1707
- var s = Pe.get(e), r = qt(s.observationTargets, n), o = s.observationTargets.length === 1;
1708
- r >= 0 && (o && ve.splice(ve.indexOf(s), 1), s.observationTargets.splice(r, 1), Ut(-1));
1707
+ var s = Pe.get(e), r = Ut(s.observationTargets, n), o = s.observationTargets.length === 1;
1708
+ r >= 0 && (o && ve.splice(ve.indexOf(s), 1), s.observationTargets.splice(r, 1), Vt(-1));
1709
1709
  }, t.disconnect = function(e) {
1710
1710
  var n = this, s = Pe.get(e);
1711
1711
  s.observationTargets.slice().forEach(function(r) {
1712
1712
  return n.unobserve(e, r.target);
1713
1713
  }), s.activeTargets.splice(0, s.activeTargets.length);
1714
1714
  }, t;
1715
- }(), Ft = function() {
1715
+ }(), qt = function() {
1716
1716
  function t(e) {
1717
1717
  if (arguments.length === 0)
1718
1718
  throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
@@ -1723,13 +1723,13 @@ var me = function(t) {
1723
1723
  return t.prototype.observe = function(e, n) {
1724
1724
  if (arguments.length === 0)
1725
1725
  throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
1726
- if (!$t(e))
1726
+ if (!Rt(e))
1727
1727
  throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
1728
1728
  Ne.observe(this, e, n);
1729
1729
  }, t.prototype.unobserve = function(e) {
1730
1730
  if (arguments.length === 0)
1731
1731
  throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
1732
- if (!$t(e))
1732
+ if (!Rt(e))
1733
1733
  throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
1734
1734
  Ne.unobserve(this, e);
1735
1735
  }, t.prototype.disconnect = function() {
@@ -1785,7 +1785,7 @@ const Hs = ["disabled", "title"], Zs = {
1785
1785
  startThumbLeft: 0,
1786
1786
  startPageX: 0
1787
1787
  });
1788
- kn(f, (A) => {
1788
+ wn(f, (A) => {
1789
1789
  m(A);
1790
1790
  });
1791
1791
  const m = (A) => {
@@ -1803,12 +1803,12 @@ const Hs = ["disabled", "title"], Zs = {
1803
1803
  return;
1804
1804
  const { clientWidth: A, scrollWidth: C, scrollLeft: U } = n.value;
1805
1805
  Object.assign(f, { clientWidth: A, scrollWidth: C, scrollLeft: U });
1806
- }, w = new Ft(() => {
1806
+ }, w = new qt(() => {
1807
1807
  var C;
1808
1808
  y();
1809
1809
  const A = (C = n.value) == null ? void 0 : C.querySelector(".stack-tab__item.is-active");
1810
1810
  A && (G(A) || $(A));
1811
- }), T = new Ft(() => {
1811
+ }), T = new qt(() => {
1812
1812
  var A;
1813
1813
  if (!S.value) {
1814
1814
  const C = (A = n.value) == null ? void 0 : A.querySelector(".stack-tab__item.is-active");
@@ -1816,7 +1816,7 @@ const Hs = ["disabled", "title"], Zs = {
1816
1816
  }
1817
1817
  y();
1818
1818
  }), g = (A, C = !0) => {
1819
- sn({ wrap: n.value, left: A, smooth: C });
1819
+ nn({ wrap: n.value, left: A, smooth: C });
1820
1820
  }, O = (A) => {
1821
1821
  g(n.value.scrollLeft + A);
1822
1822
  }, u = (A) => {
@@ -1879,7 +1879,7 @@ const Hs = ["disabled", "title"], Zs = {
1879
1879
  }, [
1880
1880
  xe(A.$slots, "default")
1881
1881
  ], 34),
1882
- Yt(Q("div", {
1882
+ Gt(Q("div", {
1883
1883
  ref_key: "bar",
1884
1884
  ref: s,
1885
1885
  class: fe(["stack-tab__scrollbar", { "is-dragging": o.value }])
@@ -1895,7 +1895,7 @@ const Hs = ["disabled", "title"], Zs = {
1895
1895
  onMousedown: Ie(_, ["prevent"])
1896
1896
  }, null, 38)
1897
1897
  ], 2), [
1898
- [Kt, S.value]
1898
+ [Yt, S.value]
1899
1899
  ])
1900
1900
  ], 544),
1901
1901
  a.value ? (R(), ge(at, {
@@ -1938,7 +1938,7 @@ const Hs = ["disabled", "title"], Zs = {
1938
1938
  "is-scroll-button": S.value
1939
1939
  }, {
1940
1940
  default: ue(() => [
1941
- N(Jt, _n({
1941
+ N(Kt, kn({
1942
1942
  key: "tabItemTrans",
1943
1943
  tag: "ul",
1944
1944
  class: "stack-tab__nav"
@@ -1968,7 +1968,7 @@ const Hs = ["disabled", "title"], Zs = {
1968
1968
  title: x(n)("VueStackTab.maximum"),
1969
1969
  onClick: T[0] || (T[0] = (g) => s.value = !x(s))
1970
1970
  }, null, 8, ["icon-class", "title"]),
1971
- N(Qt, {
1971
+ N(Jt, {
1972
1972
  name: "stack-tab-zoom",
1973
1973
  appear: ""
1974
1974
  }, {
@@ -2012,7 +2012,7 @@ function Ys(t, e, n) {
2012
2012
  }
2013
2013
  return E.cancel = S, E;
2014
2014
  }
2015
- let Ht;
2015
+ let Ft;
2016
2016
  const Ks = () => {
2017
2017
  const t = ut(), { active: e, hasTab: n, pageShown: s, reset: r, canAddTab: o, renewTab: i, getTab: d } = Ce(), a = ye(), c = Ys(500, (m, S = !1) => new Promise((E, I) => {
2018
2018
  if (!s.value) {
@@ -2050,7 +2050,7 @@ const Ks = () => {
2050
2050
  ), y;
2051
2051
  if (m.iframe) {
2052
2052
  const w = encodeURIComponent(m.path);
2053
- y = Ht, I.__src = w;
2053
+ y = Ft, I.__src = w;
2054
2054
  } else {
2055
2055
  const w = mt(m.path);
2056
2056
  y = w.path, I = ne(w.query, I);
@@ -2061,7 +2061,7 @@ const Ks = () => {
2061
2061
  });
2062
2062
  };
2063
2063
  return { openNewTab: c, setIFramePath: (m) => {
2064
- Ht = m;
2064
+ Ft = m;
2065
2065
  }, active: e, reset: r, getWrapper: () => document.getElementsByClassName("cache-page-wrapper")[0] };
2066
2066
  }, Js = { class: "stack-tab__container" }, Qs = ["src"], er = /* @__PURE__ */ ee({
2067
2067
  __name: "StackTabs",
@@ -2085,15 +2085,15 @@ const Ks = () => {
2085
2085
  emits: ["onActive", "onPageLoaded"],
2086
2086
  setup(t, { emit: e }) {
2087
2087
  const { tabs: n, pageShown: s, caches: r, destroy: o, addPage: i, initial: d, setMaxSize: a, setGlobalScroll: c, clearSession: p, setSessionPrefix: f } = Ce(), l = e, m = t, { changeLocale: S } = Me(), E = D(!1);
2088
- xn("maximum", E);
2088
+ _n("maximum", E);
2089
2089
  const { setIFramePath: I } = Ks();
2090
- I(m.iframePath), c(m.globalScroll), S(m.i18n), Tn(() => {
2090
+ I(m.iframePath), c(m.globalScroll), S(m.i18n), xn(() => {
2091
2091
  d(m.defaultTabs), f(m.sessionPrefix);
2092
2092
  });
2093
2093
  const y = (u, _) => i(u, _), w = (u) => {
2094
2094
  l("onActive", u);
2095
2095
  };
2096
- a(m.max), Tt(() => {
2096
+ a(m.max), Tn(() => {
2097
2097
  o();
2098
2098
  });
2099
2099
  const T = () => {
@@ -2103,10 +2103,8 @@ const Ks = () => {
2103
2103
  g.value = m.pageTransition;
2104
2104
  }), O.on("BACKWARD", () => {
2105
2105
  g.value = m.pageTransitionBack;
2106
- }), Tt(() => {
2107
- p();
2108
2106
  }), (u, _) => {
2109
- const k = Xt("router-view");
2107
+ const k = jt("router-view");
2110
2108
  return R(), V("div", {
2111
2109
  class: fe(["stack-tab", { "stack-tab__maximum": E.value }]),
2112
2110
  style: Fe({
@@ -2132,7 +2130,7 @@ const Ks = () => {
2132
2130
  Q("div", Js, [
2133
2131
  N(k, null, {
2134
2132
  default: ue(({ Component: L, route: $ }) => [
2135
- N(Qt, {
2133
+ N(Jt, {
2136
2134
  name: g.value,
2137
2135
  appear: "",
2138
2136
  mode: "out-in"
@@ -2150,18 +2148,18 @@ const Ks = () => {
2150
2148
  ]),
2151
2149
  _: 1
2152
2150
  }),
2153
- N(Jt, {
2151
+ N(Kt, {
2154
2152
  name: u.pageTransition,
2155
2153
  appear: ""
2156
2154
  }, {
2157
2155
  default: ue(() => [
2158
- (R(!0), V(je, null, lt(x(n).filter((L) => L.iframe), (L) => Yt((R(), V("iframe", {
2156
+ (R(!0), V(je, null, lt(x(n).filter((L) => L.iframe), (L) => Gt((R(), V("iframe", {
2159
2157
  key: L.id,
2160
2158
  class: "stack-tab__iframe",
2161
2159
  src: /^(javascript|data):/i.test(L.url ?? "") ? "about:blank" : L.url,
2162
2160
  frameborder: "0"
2163
2161
  }, null, 8, Qs)), [
2164
- [Kt, L.active]
2162
+ [Yt, L.active]
2165
2163
  ])), 128))
2166
2164
  ]),
2167
2165
  _: 1
@@ -2172,7 +2170,7 @@ const Ks = () => {
2172
2170
  }
2173
2171
  }), yt = typeof Buffer == "function";
2174
2172
  typeof TextDecoder == "function" && new TextDecoder();
2175
- const Zt = typeof TextEncoder == "function" ? new TextEncoder() : void 0, tr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Te = Array.prototype.slice.call(tr);
2173
+ const Ht = typeof TextEncoder == "function" ? new TextEncoder() : void 0, tr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Te = Array.prototype.slice.call(tr);
2176
2174
  ((t) => {
2177
2175
  let e = {};
2178
2176
  return t.forEach((n, s) => e[n] = s), e;
@@ -2188,11 +2186,11 @@ const nr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" :
2188
2186
  e = n << 16 | s << 8 | r, o += Te[e >> 18 & 63] + Te[e >> 12 & 63] + Te[e >> 6 & 63] + Te[e & 63];
2189
2187
  }
2190
2188
  return i ? o.slice(0, i - 3) + "===".substring(i) : o;
2191
- }, bn = typeof btoa == "function" ? (t) => btoa(t) : yt ? (t) => Buffer.from(t, "binary").toString("base64") : sr, rr = yt ? (t) => Buffer.from(t).toString("base64") : (t) => {
2189
+ }, pn = typeof btoa == "function" ? (t) => btoa(t) : yt ? (t) => Buffer.from(t, "binary").toString("base64") : sr, rr = yt ? (t) => Buffer.from(t).toString("base64") : (t) => {
2192
2190
  let n = [];
2193
2191
  for (let s = 0, r = t.length; s < r; s += 4096)
2194
2192
  n.push(J.apply(null, t.subarray(s, s + 4096)));
2195
- return bn(n.join(""));
2193
+ return pn(n.join(""));
2196
2194
  }, or = (t) => {
2197
2195
  if (t.length < 2) {
2198
2196
  var e = t.charCodeAt(0);
@@ -2201,14 +2199,14 @@ const nr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" :
2201
2199
  var e = 65536 + (t.charCodeAt(0) - 55296) * 1024 + (t.charCodeAt(1) - 56320);
2202
2200
  return J(240 | e >>> 18 & 7) + J(128 | e >>> 12 & 63) + J(128 | e >>> 6 & 63) + J(128 | e & 63);
2203
2201
  }
2204
- }, ir = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, ar = (t) => t.replace(ir, or), jt = yt ? (t) => Buffer.from(t, "utf8").toString("base64") : Zt ? (t) => rr(Zt.encode(t)) : (t) => bn(ar(t)), cr = (t, e = !1) => e ? nr(jt(t)) : jt(t), lr = (t) => {
2202
+ }, ir = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, ar = (t) => t.replace(ir, or), Zt = yt ? (t) => Buffer.from(t, "utf8").toString("base64") : Ht ? (t) => rr(Ht.encode(t)) : (t) => pn(ar(t)), cr = (t, e = !1) => e ? nr(Zt(t)) : Zt(t), lr = (t) => {
2205
2203
  const s = `<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1167.06 237.75"><path d="M79.24,19.73h108.91v29.7h-108.91v-29.7Z" style="fill:#79a7ff; stroke-width:0px;"/><path d="M179.24,199.67H20.26c-11.21-.07-20.26-9.17-20.26-20.38V20.39C0,9.18,9.05.07,20.26,0h59.49c3.51.07,6.34,2.9,6.41,6.42v44.36c0,3.54-2.87,6.41-6.41,6.41s-6.41-2.86-6.42-6.4V12.36H20.25c-4.13.07-7.44,3.44-7.44,7.56v159.41c0,4.13,3.31,7.49,7.44,7.56h158.98c4.13-.07,7.44-3.44,7.44-7.56V51.84c0-3.54,2.87-6.41,6.41-6.42,3.55,0,6.42,2.87,6.42,6.42v127.45c0,11.21-9.05,20.32-20.26,20.39h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M192.8,60.77c-3.66-.07-6.61-3.02-6.68-6.68v-18.23c.09-4.29-3.32-7.83-7.6-7.92h-96.43c-3.69,0-6.69-2.99-6.69-6.69s2.99-6.69,6.69-6.69h96.27c11.69.08,21.13,9.58,21.13,21.27v18.25c0,3.69-2.99,6.68-6.68,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M193.08,58.67H10.15c-3.61-.08-6.48-3.07-6.41-6.68-.08-3.62,2.79-6.61,6.4-6.69,0,0,0,0,0,0h182.93c3.62.08,6.48,3.08,6.41,6.69.07,3.61-2.79,6.6-6.41,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M137.2,58.67c-3.42.24-6.4-2.32-6.68-5.74v-28.15c.55-3.69,4-6.24,7.69-5.69,2.94.44,5.24,2.75,5.69,5.69v28.15c-.28,3.42-3.26,5.98-6.68,5.74h-.02Z" style="fill:#377dff; stroke-width:0px;"/><path d="M99.78,100.48l-12.83-22.22h-18.39l31.22,54.05,31.22-54.05h-18.39l-12.83,22.22Z" style="fill:#00d797; stroke-width:0px;"/><path d="M135.28,78.26l-35.49,61.43-35.44-61.43h-20.11l55.55,96.2,55.55-96.2s-20.06,0-20.06,0ZM313.33,59.95c0,.52-.67,1.84-2,3.95s-3.3,5.2-5.9,9.28-5.75,9.28-9.46,15.61c-3.7,6.33-7.52,13.34-11.45,21.04-4.51,8.85-7.76,15.8-9.76,20.86s-2.99,9.41-2.99,13.05c0,2.89,1.53,5.44,4.6,7.63,3.7-2.89,7.34-6.33,10.93-10.32,3.58-3.99,7.13-8.44,10.63-13.36s7.55-11.13,12.14-18.65c4.6-7.52,8.69-14.43,12.27-20.73-.17-.52-.36-1.04-.56-1.56s-.3-.95-.3-1.3c0-2.72.55-5.26,1.65-7.63,1.1-2.37,2.47-4.68,4.12-6.94s4.12-5.44,7.42-9.54c.87-1.1,1.94-1.65,3.21-1.65,2.08,0,3.12,1.33,3.12,3.99s-1.08,6.84-3.25,12.53c-2.17,5.7-5.37,12.39-9.59,20.08s-9.47,16.29-15.74,25.81c-6.28,9.51-13.37,19.45-21.3,29.8-8.04,10.47-13.79,15.7-17.26,15.7-1.97,0-4.19-1.08-6.68-3.25s-4.63-5.13-6.42-8.89-2.69-7.78-2.69-12.06c0-2.54.53-5.81,1.6-9.8s2.75-8.78,5.03-14.36,4.87-11.09,7.76-16.53c3.01-5.72,5.65-10.47,7.94-14.23,2.28-3.76,4.87-7.94,7.76-12.53,2.89-4.6,4.34-7.1,4.34-7.5,0-.87-.58-1.3-1.73-1.3-3.35,0-7.82,1.71-13.4,5.12s-12.85,8.59-21.82,15.53c-3.41,2.66-5.57,4.38-6.46,5.16s-1.34,1.43-1.34,1.95c0,.69.55,1.04,1.65,1.04.46,0,2.02-.17,4.68-.52s4.77-.52,6.33-.52c2.6,0,3.9.46,3.9,1.39,0,.81-.54,1.45-1.61,1.91-1.07.46-2.54.93-4.42,1.39s-4.44,1.1-7.68,1.91c-3.47.93-7.16,2.25-11.06,3.99-3.9,1.73-6.14,2.6-6.72,2.6-1.1,0-1.78-.4-2.04-1.21s-.39-2.14-.39-3.99c0-8.21,1.36-14.56,4.08-19.04s7.58-9.15,14.57-14.01c7.98-5.55,15.61-10.16,22.9-13.84,7.29-3.67,13.58-6.36,18.87-8.07s9.18-2.56,11.67-2.56,4.84,1.56,7.24,4.68,3.6,6.42,3.6,9.89h0ZM366.34,124.75c-8.39,11.1-14.76,19-19.13,23.68s-7.94,7.03-10.71,7.03c-2.2,0-4.22-.91-6.07-2.73-1.85-1.82-3.28-4.28-4.29-7.37s-1.52-6.4-1.52-9.93c0-2.31.22-4.39.65-6.25.43-1.85,1.26-3.89,2.47-6.12s2.82-4.64,4.81-7.24c2-2.6,4.44-5.55,7.33-8.85,1.73-2.02,3.19-3.73,4.38-5.12,1.18-1.39,2.34-2.33,3.47-2.82s2.96-.74,5.51-.74c1.85,0,3.61.25,5.29.74,1.68.49,2.52,1,2.52,1.52,0,1.04-.85,2.92-2.56,5.64s-4.45,6.03-8.24,9.93c-3.79,3.9-8.17,7.74-13.14,11.49-1.1,3.41-1.65,6.01-1.65,7.81,0,2.49.95,3.73,2.86,3.73.69,0,1.85-.59,3.47-1.78,1.62-1.18,4.35-3.47,8.2-6.85,3.84-3.38,7.3-6.38,10.37-8.98,2.25-1.97,4.87-4.9,7.85-8.8s5.39-6.84,7.24-8.8c4.28-4.51,7.2-7.44,8.76-8.8s3.06-2.04,4.51-2.04,2.33.43,2.82,1.3c.49.87.74,2.63.74,5.29,0,1.21-.12,2.2-.35,2.95s-.71,1.72-1.43,2.91-2.18,3.37-4.38,6.55-4.8,6.94-7.81,11.28c-1.66,2.38-3.09,4.93-4.25,7.59-1.21,2.75-1.82,4.81-1.82,6.2,0,3.01,1.18,4.51,3.56,4.51,1.96,0,4.25-.81,6.85-2.43s6.59-4.54,11.97-8.76v5.81c-6.77,6.25-11.77,10.79-15.01,13.62s-6.04,4.97-8.41,6.42-4.63,2.17-6.77,2.17c-4.86,0-7.29-2.89-7.29-8.67,0-2.2.72-5.16,2.17-8.89,1.44-3.73,3.79-9.12,7.03-16.18v-.02Z" style="fill:#306fff; stroke-width:0px;"/><path d="M407.71,133.77v2.17c0,3.41.84,6.07,2.52,7.98,1.68,1.91,3.87,2.86,6.59,2.86s5.77-.66,8.8-2c3.04-1.33,6.06-3.09,9.07-5.29s6.68-5.15,11.02-8.85v5.29c-6.54,7.87-12.67,13.89-18.39,18.09-5.72,4.19-11.54,6.29-17.44,6.29-5.15,0-9.22-2-12.23-5.99s-4.51-9.46-4.51-16.39c0-6.07,1.42-11.58,4.25-16.52s7.46-10.16,13.88-15.66c4.39-3.76,8.76-6.59,13.1-8.5s8.21-2.86,11.62-2.86c2.72,0,4.87.62,6.46,1.86s2.39,3.11,2.39,5.59c0,3.64-1.36,7.27-4.08,10.89s-6.87,7.2-12.45,10.76c-5.58,3.56-12.45,6.98-20.6,10.28h0ZM408.58,128.13c5.2-2.02,9.66-4.54,13.36-7.55,3.7-3.01,6.43-5.88,8.2-8.63,1.76-2.75,2.65-4.76,2.65-6.03s-.61-2-1.82-2c-1.04,0-2.73.67-5.07,2s-4.71,3.07-7.11,5.21-4.55,4.66-6.46,7.55c-1.9,2.86-3.17,6.08-3.73,9.46h-.02ZM585.37,132.9c-1.45-2.66-3.61-5.06-6.51-7.2-2.89-2.14-6.15-3.86-9.76-5.16s-7.39-2.27-11.32-2.91c-11.68-1.74-22.58-5.52-32.7-11.36-.87-.46-1.79-1.44-2.78-2.95-.98-1.5-1.47-2.95-1.47-4.34,0-5.09.85-10.19,2.56-15.31,1.71-5.12,3.89-9.12,6.55-12.01,4.28-4.8,11.98-8.99,23.12-12.58,11.13-3.58,23.67-5.38,37.6-5.38,8.33,0,14.76.64,19.3,1.91s6.81,3.24,6.81,5.9c0,4.34-.59,7.69-1.78,10.06s-2.46,3.95-3.82,4.73c-1.36.78-3.75,1.84-7.16,3.17-3.64,1.27-6.81,2.6-9.5,3.99s-4.99,2.72-6.9,3.99c-1.91,1.27-3.09,1.91-3.56,1.91-.58,0-.87-.23-.87-.69,0-.98,1.03-2.47,3.08-4.47s4.58-3.74,7.59-5.25c3.18-1.68,4.77-2.75,4.77-3.21,0-.75-1.76-1.13-5.29-1.13-10.7,0-20.59.95-29.67,2.86s-16.24,4.42-21.47,7.55c-5.23,3.12-7.85,6.3-7.85,9.54,0,2.02,1.08,3.46,3.25,4.29,2.17.84,6.95,2.24,14.36,4.21,7.4,1.97,14.02,4.22,19.86,6.77,8.38,3.59,14.6,7.32,18.65,11.19,4.05,3.88,6.07,8.21,6.07,13.01,0,3.3-.8,6.61-2.39,9.93-1.59,3.33-3.92,6.38-6.98,9.15-3.07,2.78-6.59,5.06-10.58,6.85-3.41,1.45-7.71,2.8-12.88,4.08-5.18,1.27-10.79,2.27-16.83,2.99-6.04.72-11.81,1.08-17.31,1.08-10.12,0-18.26-.95-24.42-2.86s-9.24-4.8-9.24-8.67c0-1.74,1.04-4.44,3.12-8.11s4.54-6.14,7.37-7.42c2.49-.98,4.89-1.55,7.2-1.69,2.31-.14,3.47.13,3.47.82,0,.17-.09.35-.26.52s-.38.32-.61.43c-.23.12-.46.23-.69.35-1.16.46-2.1.82-2.82,1.08-.72.26-1.3.52-1.74.78-.43.26-.65.62-.65,1.08,0,1.21,5.99,1.82,17.96,1.82,10.41,0,18.94-.38,25.59-1.13s12.52-2.11,17.61-4.08c5.09-1.97,9.71-4.68,13.88-8.15l.04.02ZM640.8,85.63h3.73c3.06-5.49,5.84-9.38,8.33-11.67,2.49-2.28,5.32-3.43,8.5-3.43s4.77.72,4.77,2.17c0,.69-1.24,2.57-3.73,5.64s-4.37,5.64-5.64,7.72c1.96.23,3.71.43,5.25.61,1.53.17,2.73.32,3.6.43-3.3,6.13-7.43,12.4-12.4,18.82l-4.08-.3c-1.1-.09-2.21-.17-3.34-.26s-2.5-.19-4.12-.3c-3.12,5.03-5.74,9.53-7.85,13.49s-3.73,7.59-4.86,10.89-1.69,6.42-1.69,9.37c0,3.99,1.59,5.99,4.77,5.99,2.2,0,5.07-1.17,8.63-3.51s8.31-5.94,14.27-10.8v5.81c-15.61,16.95-27.15,25.42-34.61,25.42-2.6,0-4.7-1.01-6.29-3.04-1.59-2.02-2.38-4.63-2.38-7.81,0-2.14.45-4.68,1.34-7.63.9-2.95,2.5-7.4,4.81-13.36-.81.69-1.58,1.37-2.3,2.04s-1.39,1.27-2,1.82-1.26,1.13-1.95,1.73c-.69.61-1.39,1.23-2.08,1.87v-5.99c6.07-5.09,13.42-14.02,22.03-26.8-.87-.06-1.68-.1-2.43-.13s-1.65-.04-2.69-.04c-3.41,0-5.96.23-7.63.69-.69.17-1.34.36-1.95.56s-1.03.3-1.26.3-.35-.17-.35-.52c0-1.91,1.18-4.77,3.56-8.59,1.91-3.24,3.72-5.64,5.42-7.2,1.71-1.56,3.79-2.62,6.25-3.17,2.46-.55,5.91-.82,10.37-.82h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M664.91,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM706.46,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M779.07,130.82v5.81c-6.19,6.07-11.23,10.79-15.14,14.14-3.9,3.35-7.55,5.96-10.93,7.81-3.38,1.85-6.69,2.78-9.93,2.78s-6.1-1.26-8.76-3.77c-2.66-2.52-4.74-5.81-6.25-9.89-1.5-4.08-2.26-8.4-2.26-12.97,0-3.93.87-7.43,2.6-10.5,1.74-3.07,5.09-7.03,10.06-11.88,5.9-5.78,11.38-10.25,16.44-13.4s9.04-4.73,11.93-4.73c2.08,0,3.85.72,5.29,2.17s2.17,3.27,2.17,5.46c0,1.85-.95,4.48-2.86,7.89-1.91,3.41-4.05,6.38-6.42,8.89-2.37,2.52-4.25,3.77-5.64,3.77-1.5,0-2.25-.81-2.25-2.43.06-.46.1-.9.13-1.3s.04-.81.04-1.21c0-.69-.25-1.08-.74-1.17s-1.08.13-1.78.65c-5.78,4.05-9.75,6.9-11.88,8.54-2.14,1.65-3.83,3.31-5.07,4.99s-1.87,3.44-1.87,5.29c0,3.41,1.1,6.19,3.3,8.33s5.06,3.21,8.59,3.21,8.02-1.4,13.14-4.21c5.12-2.8,11.15-6.9,18.09-12.27h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M844.13,130.65v5.81c-6.48,7.58-11.91,13.32-16.31,17.22s-8.07,5.86-11.02,5.86-5.39-.84-7.68-2.52c-2.29-1.68-4.34-3.99-6.16-6.94-1.82-2.95-3.98-7.05-6.46-12.32-2.95,3.64-5.61,7.04-7.98,10.19-2.37,3.15-4.02,5.25-4.94,6.29-.93,1.04-1.77,1.56-2.52,1.56-1.56,0-2.69-1-3.38-2.99-.69-2-1.04-4.9-1.04-8.72,0-5.21.62-10.22,1.87-15.05,1.24-4.83,3.04-9.53,5.38-14.1s5.35-9.5,9.02-14.79c3.67-5.29,7.79-10.83,12.36-16.61,6.3-7.98,11.74-14.5,16.31-19.56,4.57-5.06,8.54-8.88,11.93-11.45,3.38-2.57,6.2-3.86,8.46-3.86,2.78,0,4.16,1.24,4.16,3.73,0,2.14-5.12,9.85-15.35,23.12-10.24,13.27-25.16,31.39-44.76,54.35v7.46c13.13-14.05,23.69-24.49,31.71-31.31,8.01-6.82,14.21-10.24,18.61-10.24,1.79,0,3.18,1.06,4.16,3.17s1.47,4.55,1.47,7.33c0,5.67-2.43,10.92-7.29,15.74-4.86,4.83-12.32,10.37-22.38,16.61,1.74,2.6,3.27,4.5,4.6,5.68,1.33,1.19,3.01,1.78,5.03,1.78,1.79,0,3.73-.61,5.81-1.82s4.21-2.75,6.38-4.6,5.51-4.86,10.02-9.02h-.01ZM809.86,135.07c2.2-1.45,4.93-3.69,8.2-6.72,3.27-3.04,6.06-6.19,8.37-9.46s3.47-6,3.47-8.2c0-.92-.41-1.39-1.21-1.39-2.2,0-5.97,2.11-11.32,6.33-5.35,4.22-10.57,9.63-15.66,16.22,2.2,0,4.92,1.07,8.15,3.21h0ZM951.78,140.71l2.86,2.17c-.75,1.62-1.47,3.04-2.17,4.25-.69,1.21-1.53,2.69-2.52,4.42-.98,1.73-1.73,3.04-2.25,3.9-4.34,7.58-8.41,11.36-12.23,11.36-1.62,0-3.01-.64-4.16-1.91-1.16-1.27-1.73-3.01-1.73-5.2,0-3.12,1.11-7.4,3.34-12.84,2.23-5.43,5.67-12.13,10.32-20.08s10.51-16.96,17.57-27.02c7.05-10.06,15.01-20.67,23.85-31.84-5.09-.75-11.13-1.13-18.13-1.13-8.04,0-16.99.9-26.85,2.69s-18.45,3.86-25.76,6.2c-7.32,2.34-10.97,4.06-10.97,5.16,0,.41.14.68.43.82.29.15.77.26,1.43.35s1.52.19,2.56.3c6.77.93,10.15,1.97,10.15,3.12,0,.58-1.47.85-4.42.82s-6.51-.04-10.67-.04c-3.3,0-5.68-.13-7.16-.39s-2.46-.75-2.95-1.47-.74-1.84-.74-3.34c0-.98.29-3.12.87-6.42,1.1-6.13,2.79-11.04,5.07-14.75,2.28-3.7,5.78-6.72,10.5-9.06,4.71-2.34,11.2-4.21,19.47-5.59,13.88-2.37,25.36-3.56,34.44-3.56,6.71,0,12,.27,15.88.82,3.87.55,6.72,1.34,8.54,2.39,1.82,1.04,2.98,2.07,3.47,3.08s1.14,2.76,1.95,5.25l2.69,7.98c.17.52.32.94.43,1.26.12.32.22.65.3,1,.09.35.13.67.13.95,0,2.26-.51,4.28-1.52,6.07s-2.86,4.48-5.55,8.07-4.67,6.39-5.94,8.41c-14.92,24.23-25.1,42.16-30.53,53.78v.02ZM991.94,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM1033.49,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1111.3,130.82v5.64c-6.02,3.82-10.76,5.72-14.23,5.72-1.91,0-3.93-.32-6.07-.95-5.2,6.59-9.67,11.42-13.4,14.49s-7.47,4.6-11.23,4.6c-4.34,0-7.68-2.29-10.02-6.85-2.34-4.57-3.51-10.24-3.51-17,0-9.2,2.78-19.21,8.33-30.06,5.56-10.85,12.29-21.07,20.08-30.45,7.84-9.46,15.43-17.28,22.77-23.46,7.34-6.19,12.32-9.28,14.92-9.28s3.73,1.71,3.73,5.12c0,15.15-19.43,41.58-58.29,79.29-.12,1.04-.17,3.09-.17,6.16,0,7.98,2.14,11.97,6.42,11.97,1.68,0,3.37-.68,5.07-2.04,1.71-1.36,4.32-3.95,7.85-7.76-1.39-3.12-2.08-5.44-2.08-6.94,0-3.18,1.3-6.62,3.9-10.32s5.57-6.9,8.89-9.59c3.33-2.69,5.74-4.03,7.24-4.03,2.37,0,3.56,1.71,3.56,5.12,0,2.6-.68,5.72-2.04,9.37-1.36,3.64-3.34,7.81-5.94,12.49.98.81,1.76,1.4,2.34,1.78s1.45.56,2.6.56c2.66,0,5.75-1.18,9.28-3.56v-.02ZM1067.24,117.81c3.01-2.6,6.03-5.68,9.06-9.24s7.47-9.01,13.32-16.35c5.61-7.05,10.02-12.94,13.23-17.65s5.62-8.63,7.24-11.75c1.62-3.12,2.43-5.26,2.43-6.42,0-.87-.23-1.3-.69-1.3-1.27,0-3.92,2.1-7.94,6.29-4.02,4.19-8.6,9.93-13.75,17.22-7.11,10.06-12.26,17.64-15.44,22.73-3.18,5.09-5.67,10.58-7.46,16.48h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1110.96,133.08v-2.08c14.92-15.73,25.18-26.75,30.79-33.05,1.27-7.11,4.34-10.67,9.19-10.67,1.21,0,2.52.35,3.9,1.04l.52,1.65c-.23.69-.35,1.68-.35,2.95,0,1.1.42,3.14,1.26,6.12s1.49,5.48,1.95,7.5.69,4.31.69,6.85c0,3.82-.87,7.48-2.6,10.97-1.73,3.5-4.25,6.85-7.55,10.06-3.3,3.21-7.55,6.49-12.75,9.85,2.08.35,3.73.52,4.94.52,2.37,0,4.93-.59,7.68-1.78,2.75-1.18,5.55-2.78,8.41-4.77,2.86-2,6.2-4.58,10.02-7.76v5.81c-7.4,7.23-14.02,12.71-19.86,16.44s-10.87,5.59-15.09,5.59c-5.44,0-10.47-2.31-15.09-6.94-2.72-2.78-4.41-5.43-5.08-7.98-.67-2.54-1-5.99-1-10.32h.02ZM1143.31,119.8l-1.56-12.66c-3.59,4.05-11.25,11.83-22.99,23.33,3.47.75,5.84,1.76,7.11,3.04,1.27,1.27,3.06,3.73,5.38,7.37,3.93-1.62,6.95-3.83,9.07-6.64,2.11-2.8,3.17-6.64,3.17-11.49,0-.58-.01-1.1-.04-1.56s-.07-.92-.13-1.39h0Z" style="fill:#306fff; stroke-width:0px;"/><g style="isolation:isolate;"><text transform="translate(943.45 229.96)" style="fill:#00d797; font-family:ArialMT, Arial; font-size:24px; isolation:isolate;"><tspan x="0" y="0">version: ${t}</tspan></text></g></svg>`, i = "data:image/svg+xml;base64," + cr(s), d = "font-size: 1px; padding: " + Math.floor(100 / 4) + "px " + Math.floor(580 / 2) + "px; line-height: " + Math.floor(100 / 2) + "px;";
2206
2204
  window.console.log(
2207
2205
  "%c+",
2208
2206
  d + `background-image: url(${i});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`
2209
2207
  );
2210
2208
  }, ur = () => {
2211
- const { attrs: t, props: e } = en(), { pageShown: n, getTab: s, markDeletableCache: r, removeComponent: o, getComponent: i, addPageScroller: d } = Ce(), a = An(), c = ut(), p = ye();
2209
+ const { attrs: t, props: e } = Qt(), { pageShown: n, getTab: s, markDeletableCache: r, removeComponent: o, getComponent: i, addPageScroller: d } = Ce(), a = An(), c = ut(), p = ye();
2212
2210
  let f = "", l = "";
2213
2211
  f = t.tId || e.tId;
2214
2212
  const m = t.pId || e.pId;
@@ -2273,7 +2271,7 @@ const nr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" :
2273
2271
  };
2274
2272
  }
2275
2273
  }), gr = () => {
2276
- const t = ye(), { attrs: e } = en();
2274
+ const t = ye(), { attrs: e } = Qt();
2277
2275
  Ze(() => {
2278
2276
  s();
2279
2277
  });
@@ -2285,7 +2283,7 @@ const nr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" :
2285
2283
  return { openTabLoading: n, closeTabLoading: s };
2286
2284
  }, yr = {
2287
2285
  install(t, e) {
2288
- lr("0.1.47"), t.component("VueStackTabs", er).use(hs).use(Un().getI18n(e));
2286
+ lr("0.1.48"), t.component("VueStackTabs", er).use(hs).use(Un().getI18n(e));
2289
2287
  }
2290
2288
  };
2291
2289
  export {
@@ -1,5 +1,5 @@
1
- (function(N,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],r):(N=typeof globalThis<"u"?globalThis:N||self,r(N["vue-stack-tabs"]={},N.Vue,N.vueRouter))})(this,function(N,r,Y){"use strict";var kr=Object.defineProperty;var wr=(N,r,Y)=>r in N?kr(N,r,{enumerable:!0,configurable:!0,writable:!0,value:Y}):N[r]=Y;var Wt=(N,r,Y)=>wr(N,typeof r!="symbol"?r+"":r,Y);const qt=Object.freeze(Object.defineProperty({__proto__:null,default:{VueStackTab:{close:"close",closeLeft:"close left",closeRight:"close right",closeOthers:"close others",closeAll:"close all",reload:"reload",reloadAll:"reload all",maximum:"maximum",restore:"restore",undefined:"undefined",loading:"loading"}}},Symbol.toStringTag,{value:"Module"})),Ft=Object.freeze(Object.defineProperty({__proto__:null,default:{VueStackTab:{close:"关闭",closeLeft:"关闭左侧",closeRight:"关闭右侧",closeOthers:"关闭其他",closeAll:"关闭所有",reload:"刷新",reloadAll:"刷新所有",maximum:"最大化",restore:"还原",undefined:"未命名",loading:"加载中"}}},Symbol.toStringTag,{value:"Module"}));/*!
1
+ (function(N,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],r):(N=typeof globalThis<"u"?globalThis:N||self,r(N["vue-stack-tabs"]={},N.Vue,N.vueRouter))})(this,function(N,r,Y){"use strict";var kr=Object.defineProperty;var wr=(N,r,Y)=>r in N?kr(N,r,{enumerable:!0,configurable:!0,writable:!0,value:Y}):N[r]=Y;var Ut=(N,r,Y)=>wr(N,typeof r!="symbol"?r+"":r,Y);const qt=Object.freeze(Object.defineProperty({__proto__:null,default:{VueStackTab:{close:"close",closeLeft:"close left",closeRight:"close right",closeOthers:"close others",closeAll:"close all",reload:"reload",reloadAll:"reload all",maximum:"maximum",restore:"restore",undefined:"undefined",loading:"loading"}}},Symbol.toStringTag,{value:"Module"})),Ft=Object.freeze(Object.defineProperty({__proto__:null,default:{VueStackTab:{close:"关闭",closeLeft:"关闭左侧",closeRight:"关闭右侧",closeOthers:"关闭其他",closeAll:"关闭所有",reload:"刷新",reloadAll:"刷新所有",maximum:"最大化",restore:"还原",undefined:"未命名",loading:"加载中"}}},Symbol.toStringTag,{value:"Module"}));/*!
2
2
  * vue-i18n-lite v1.0.2
3
3
  * (c) 2021 Erik Pham
4
4
  * @license MIT
5
- */const jt=["__proto__","prototype","constructor"];function Ht(t){const e=typeof t;return t!==null&&(e==="object"||e==="function")}function Zt(t){return!(Array.isArray(t)?t.length:Object.keys(t).length)}function Xt(t){return!t.some(e=>jt.indexOf(e)!==-1)}function Gt(t){const e=t.split("."),n=[];for(let o=0;o<e.length;o++){let s=e[o];for(;s[s.length-1]==="\\"&&e[o+1]!==void 0;)s=s.slice(0,-1)+".",s+=e[++o];n.push(s)}return Xt(n)?n:[]}function et(t,e){if(!Ht(t))return"";const n=Gt(e);if(n.length===0)return"";let o=Object.assign({},t);for(let s=0;s<n.length;s++){if(typeof o[n[s]]=="string")return o[n[s]];if(o=o[n[s]],o==null){if(s!==n.length-1)return"";break}}return""}function Yt(t,e){if(Array.isArray(e)){const n={},o=[...t.matchAll(/{(.+?)}/g)];return o&&o.forEach((s,i)=>{e[i]&&(n[s[1]]=e[i])}),n}return e}function Kt(t,e){for(const n in e)t=t.replace(`{${n}}`,String(e[n]));return t}function tt(t,e){return Object.keys(e).forEach(n=>{e[n]instanceof Object&&n in t&&(e[n]={...e[n],...tt(t[n],e[n])})}),{...t||{},...e}}const Jt=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",nt=(t=>Jt?Symbol(t):"_vt_"+t)("i18n");function he(){return r.inject(nt)}function Qt(t){const e=Object.assign({locale:"en",fallbackLocale:"en",messages:{}},t),n=r.ref(e.locale),o=r.reactive({});return Object.entries(e.messages).forEach(([s,i])=>{o[s]=i}),{t(s,i){if(!s)return"";const a=typeof i=="string"&&i?i:n.value;let h=et(o[a],s)||et(o[e.fallbackLocale],s);if(i&&typeof i!="string"){const c=Yt(h,i);Zt(c)||(h=Kt(h,c))}return h||s},current:r.readonly(n),options:r.readonly(t||{}),install(s){const i=this;s.config.globalProperties.$t=i.t,s.provide(nt,i)},changeLocale(s){n.value=s},setLocaleMessage(s,i){o[s]=tt(r.toRaw(o[s]||{}),i)},getLocaleMessage(s){return o[s]||{}}}}const en=()=>{const t=Object.assign({"./lang/en.ts":qt,"./lang/zh-CN.ts":Ft});function e(s,i){for(const a in s)if(s[a].default){const h=a.substring(a.lastIndexOf("/")+1,a.lastIndexOf("."));i[h]?i[h]={...s[h],...s[a].default}:i[h]=s[a].default}}const n=()=>{const s={};return e(t,s),s};return{getI18n:s=>{const i={...n()};if(s)for(const a of s)i[a.locale]=a.messages;return Qt({locale:"zh-CN",fallbackLocale:"en",messages:i})}}},rt=({wrap:t,left:e=0,top:n=0,smooth:o=!0})=>{t&&(t.scrollTo?t.scrollTo({left:e,top:n,behavior:o?"smooth":"auto"}):(t.scrollLeft=e,t.scrollTop=n))};function tn({el:t,wrap:e,block:n="start",inline:o="nearest"}){if(!(!t||!e))if(t.scrollIntoView)t.scrollIntoView({behavior:"smooth",block:n,inline:o});else{const{offsetLeft:s,offsetTop:i}=t;let a,h;n==="center"?h=i+(t.clientHeight-e.clientHeight)/2:h=i,o==="center"?a=s+(t.clientWidth-e.clientWidth)/2:a=s,rt({wrap:e,left:a,top:h})}}const ze=(t=".stack-tab__container *")=>{const e=Array.from(document.querySelectorAll(t)).map(n=>+window.getComputedStyle(n).zIndex||0);return e.length?Math.max(...e.filter(n=>n<9e4))+1:1};var Q=(t=>(t.WHEEL="wheel",t.BUTTON="button",t.BOTH="both",t))(Q||{});class we{constructor(e){Wt(this,"items");if(this.items=new Map,e)for(const n of e)this.push(n)}push(e){this.items.set(this.items.size,e)}pop(){if(this.isEmpty())return;const e=this.items.get(this.items.size-1);return this.items.delete(this.items.size-1),e}peek(){if(!this.isEmpty())return this.items.get(this.items.size-1)}isEmpty(){return this.items.size===0}size(){return this.items.size}clear(){this.items.clear()}list(){return Array.from(this.items.values())}toString(){if(this.isEmpty())return"";let e="";return this.items.forEach((n,o)=>{e=`${e}${o===0?"":", "}${n}`}),e}toJSON(){return Array.from(this.items.values())}}function ve(t){var e=new Error(t);return e.source="ulid",e}var Le="0123456789ABCDEFGHJKMNPQRSTVWXYZ",pe=Le.length,ot=Math.pow(2,48)-1,nn=10,rn=16;function on(t){var e=Math.floor(t()*pe);return e===pe&&(e=pe-1),Le.charAt(e)}function sn(t,e){if(isNaN(t))throw new Error(t+" must be a number");if(t>ot)throw ve("cannot encode time greater than "+ot);if(t<0)throw ve("time must be positive");if(Number.isInteger(t)===!1)throw ve("time must be an integer");for(var n=void 0,o="";e>0;e--)n=t%pe,o=Le.charAt(n)+o,t=(t-n)/pe;return o}function an(t,e){for(var n="";t>0;t--)n=on(e)+n;return n}function cn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=arguments[1];e||(e=typeof window<"u"?window:null);var n=e&&(e.crypto||e.msCrypto);if(n)return function(){var s=new Uint8Array(1);return n.getRandomValues(s),s[0]/255};try{var o=require("crypto");return function(){return o.randomBytes(1).readUInt8()/255}}catch{}if(t){try{}catch{}return function(){return Math.random()}}throw ve("secure crypto unusable, insecure Math.random not allowed")}function ln(t){return t||(t=cn()),function(n){return isNaN(n)&&(n=Date.now()),sn(n,nn)+an(rn,t)}}var Ne=ln(),Ve={exports:{}};Ve.exports,function(t){var e=function(){var n=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function a(c,l){if(!i[c]){i[c]={};for(var b=0;b<c.length;b++)i[c][c.charAt(b)]=b}return i[c][l]}var h={compressToBase64:function(c){if(c==null)return"";var l=h._compress(c,6,function(b){return o.charAt(b)});switch(l.length%4){default:case 0:return l;case 1:return l+"===";case 2:return l+"==";case 3:return l+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:h._decompress(c.length,32,function(l){return a(o,c.charAt(l))})},compressToUTF16:function(c){return c==null?"":h._compress(c,15,function(l){return n(l+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:h._decompress(c.length,16384,function(l){return c.charCodeAt(l)-32})},compressToUint8Array:function(c){for(var l=h.compress(c),b=new Uint8Array(l.length*2),d=0,f=l.length;d<f;d++){var y=l.charCodeAt(d);b[d*2]=y>>>8,b[d*2+1]=y%256}return b},decompressFromUint8Array:function(c){if(c==null)return h.decompress(c);for(var l=new Array(c.length/2),b=0,d=l.length;b<d;b++)l[b]=c[b*2]*256+c[b*2+1];var f=[];return l.forEach(function(y){f.push(n(y))}),h.decompress(f.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":h._compress(c,6,function(l){return s.charAt(l)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),h._decompress(c.length,32,function(l){return a(s,c.charAt(l))}))},compress:function(c){return h._compress(c,16,function(l){return n(l)})},_compress:function(c,l,b){if(c==null)return"";var d,f,y={},S={},O="",A="",w="",v=2,T=3,k=2,E=[],u=0,x=0,_;for(_=0;_<c.length;_+=1)if(O=c.charAt(_),Object.prototype.hasOwnProperty.call(y,O)||(y[O]=T++,S[O]=!0),A=w+O,Object.prototype.hasOwnProperty.call(y,A))w=A;else{if(Object.prototype.hasOwnProperty.call(S,w)){if(w.charCodeAt(0)<256){for(d=0;d<k;d++)u=u<<1,x==l-1?(x=0,E.push(b(u)),u=0):x++;for(f=w.charCodeAt(0),d=0;d<8;d++)u=u<<1|f&1,x==l-1?(x=0,E.push(b(u)),u=0):x++,f=f>>1}else{for(f=1,d=0;d<k;d++)u=u<<1|f,x==l-1?(x=0,E.push(b(u)),u=0):x++,f=0;for(f=w.charCodeAt(0),d=0;d<16;d++)u=u<<1|f&1,x==l-1?(x=0,E.push(b(u)),u=0):x++,f=f>>1}v--,v==0&&(v=Math.pow(2,k),k++),delete S[w]}else for(f=y[w],d=0;d<k;d++)u=u<<1|f&1,x==l-1?(x=0,E.push(b(u)),u=0):x++,f=f>>1;v--,v==0&&(v=Math.pow(2,k),k++),y[A]=T++,w=String(O)}if(w!==""){if(Object.prototype.hasOwnProperty.call(S,w)){if(w.charCodeAt(0)<256){for(d=0;d<k;d++)u=u<<1,x==l-1?(x=0,E.push(b(u)),u=0):x++;for(f=w.charCodeAt(0),d=0;d<8;d++)u=u<<1|f&1,x==l-1?(x=0,E.push(b(u)),u=0):x++,f=f>>1}else{for(f=1,d=0;d<k;d++)u=u<<1|f,x==l-1?(x=0,E.push(b(u)),u=0):x++,f=0;for(f=w.charCodeAt(0),d=0;d<16;d++)u=u<<1|f&1,x==l-1?(x=0,E.push(b(u)),u=0):x++,f=f>>1}v--,v==0&&(v=Math.pow(2,k),k++),delete S[w]}else for(f=y[w],d=0;d<k;d++)u=u<<1|f&1,x==l-1?(x=0,E.push(b(u)),u=0):x++,f=f>>1;v--,v==0&&(v=Math.pow(2,k),k++)}for(f=2,d=0;d<k;d++)u=u<<1|f&1,x==l-1?(x=0,E.push(b(u)),u=0):x++,f=f>>1;for(;;)if(u=u<<1,x==l-1){E.push(b(u));break}else x++;return E.join("")},decompress:function(c){return c==null?"":c==""?null:h._decompress(c.length,32768,function(l){return c.charCodeAt(l)})},_decompress:function(c,l,b){var d=[],f=4,y=4,S=3,O="",A=[],w,v,T,k,E,u,x,_={val:b(0),position:l,index:1};for(w=0;w<3;w+=1)d[w]=w;for(T=0,E=Math.pow(2,2),u=1;u!=E;)k=_.val&_.position,_.position>>=1,_.position==0&&(_.position=l,_.val=b(_.index++)),T|=(k>0?1:0)*u,u<<=1;switch(T){case 0:for(T=0,E=Math.pow(2,8),u=1;u!=E;)k=_.val&_.position,_.position>>=1,_.position==0&&(_.position=l,_.val=b(_.index++)),T|=(k>0?1:0)*u,u<<=1;x=n(T);break;case 1:for(T=0,E=Math.pow(2,16),u=1;u!=E;)k=_.val&_.position,_.position>>=1,_.position==0&&(_.position=l,_.val=b(_.index++)),T|=(k>0?1:0)*u,u<<=1;x=n(T);break;case 2:return""}for(d[3]=x,v=x,A.push(x);;){if(_.index>c)return"";for(T=0,E=Math.pow(2,S),u=1;u!=E;)k=_.val&_.position,_.position>>=1,_.position==0&&(_.position=l,_.val=b(_.index++)),T|=(k>0?1:0)*u,u<<=1;switch(x=T){case 0:for(T=0,E=Math.pow(2,8),u=1;u!=E;)k=_.val&_.position,_.position>>=1,_.position==0&&(_.position=l,_.val=b(_.index++)),T|=(k>0?1:0)*u,u<<=1;d[y++]=n(T),x=y-1,f--;break;case 1:for(T=0,E=Math.pow(2,16),u=1;u!=E;)k=_.val&_.position,_.position>>=1,_.position==0&&(_.position=l,_.val=b(_.index++)),T|=(k>0?1:0)*u,u<<=1;d[y++]=n(T),x=y-1,f--;break;case 2:return A.join("")}if(f==0&&(f=Math.pow(2,S),S++),d[x])O=d[x];else if(x===y)O=v+v.charAt(0);else return null;A.push(O),d[y++]=v+O.charAt(0),f--,v=O,f==0&&(f=Math.pow(2,S),S++)}}};return h}();t!=null?t.exports=e:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})}(Ve);var st=Ve.exports;const fn=new TextEncoder,un=new TextDecoder("utf-8",{ignoreBOM:!0}),it={encode:t=>fn.encode(t),decode:t=>un.decode(t)},at=(()=>{const e=[..."0123456789abcdef"],n=new Array(256);for(let o=0;o<256;o++)n[o]=`${e[o>>>4&15]}${e[o&15]}`;return n})(),dn=(()=>{const t={};for(let e=0;e<256;e++){const n=at[e],o=n[0],s=o.toUpperCase(),i=n[1],a=i.toUpperCase();t[n]=e,t[`${o}${a}`]=e,t[`${s}${i}`]=e,t[`${s}${a}`]=e}return t})(),Re={encode:t=>{let e="";for(let n=0,o=t.length;n<o;n++)e+=at[t[n]];return e},encodeStr:t=>Re.encode(it.encode(t)),decode:t=>{const e=t.length/2,n=new Uint8Array(e);for(let o=0;o<e;o++)n[o]=dn[t.slice(o*2,o*2+2)];return n},decodeStr:t=>it.decode(Re.decode(t)),is:t=>!(t.length%2||!/^[a-fA-F0-9]*$/.test(t))};function be(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`positive integer expected, not ${t}`)}function hn(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function De(t,...e){if(!hn(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}function $e(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function ct(t,e){De(t);const n=e.outputLen;if(t.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const _e=BigInt(2**32-1),lt=BigInt(32);function ft(t,e=!1){return e?{h:Number(t&_e),l:Number(t>>lt&_e)}:{h:Number(t>>lt&_e)|0,l:Number(t&_e)|0}}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const pn=t=>new Uint8Array(t.buffer,t.byteOffset,t.byteLength),xe=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),Te=(t,e)=>t<<32-e|t>>>e,$=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,ut=t=>t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255,bn=$?t=>t:t=>ut(t);function P(t){for(let e=0;e<t.length;e++)t[e]=ut(t[e])}function mn(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Pe(t){return typeof t=="string"&&(t=mn(t)),De(t),t}class gn{clone(){return this._cloneInto()}}function yn(t){const e=(o,s)=>t(s).update(Pe(o)).digest(),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=o=>t(o),e}class kn extends gn{constructor(e,n,o={},s,i,a){if(super(),this.blockLen=e,this.outputLen=n,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,be(e),be(n),be(s),n<0||n>s)throw new Error("outputLen bigger than keyLen");if(o.key!==void 0&&(o.key.length<1||o.key.length>s))throw new Error(`key must be up 1..${s} byte long or undefined`);if(o.salt!==void 0&&o.salt.length!==i)throw new Error(`salt must be ${i} byte long or undefined`);if(o.personalization!==void 0&&o.personalization.length!==a)throw new Error(`personalization must be ${a} byte long or undefined`);this.buffer32=xe(this.buffer=new Uint8Array(e))}update(e){$e(this);const{blockLen:n,buffer:o,buffer32:s}=this;e=Pe(e);const i=e.length,a=e.byteOffset,h=e.buffer;for(let c=0;c<i;){this.pos===n&&($||P(s),this.compress(s,0,!1),$||P(s),this.pos=0);const l=Math.min(n-this.pos,i-c),b=a+c;if(l===n&&!(b%4)&&c+l<i){const d=new Uint32Array(h,b,Math.floor((i-c)/4));$||P(d);for(let f=0;c+n<i;f+=s.length,c+=n)this.length+=n,this.compress(d,f,!1);$||P(d);continue}o.set(e.subarray(c,c+l),this.pos),this.pos+=l,this.length+=l,c+=l}return this}digestInto(e){$e(this),ct(e,this);const{pos:n,buffer32:o}=this;this.finished=!0,this.buffer.subarray(n).fill(0),$||P(o),this.compress(o,0,!0),$||P(o);const s=xe(e);this.get().forEach((i,a)=>s[a]=bn(i))}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const o=e.slice(0,n);return this.destroy(),o}_cloneInto(e){const{buffer:n,length:o,finished:s,destroyed:i,outputLen:a,pos:h}=this;return e||(e=new this.constructor({dkLen:a})),e.set(...this.get()),e.length=o,e.finished=s,e.destroyed=i,e.outputLen=a,e.buffer.set(n),e.pos=h,e}}const K=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function ee(t,e,n,o,s){return t=t+e+s|0,o=Te(o^t,16),n=n+o|0,e=Te(e^n,12),{a:t,b:e,c:n,d:o}}function te(t,e,n,o,s){return t=t+e+s|0,o=Te(o^t,8),n=n+o|0,e=Te(e^n,7),{a:t,b:e,c:n,d:o}}function dt(t,e,n,o,s,i,a,h,c,l,b,d,f,y,S,O,A,w,v,T){let k=0;for(let E=0;E<o;E++)({a:s,b:c,c:f,d:A}=ee(s,c,f,A,n[e+t[k++]])),{a:s,b:c,c:f,d:A}=te(s,c,f,A,n[e+t[k++]]),{a:i,b:l,c:y,d:w}=ee(i,l,y,w,n[e+t[k++]]),{a:i,b:l,c:y,d:w}=te(i,l,y,w,n[e+t[k++]]),{a,b,c:S,d:v}=ee(a,b,S,v,n[e+t[k++]]),{a,b,c:S,d:v}=te(a,b,S,v,n[e+t[k++]]),{a:h,b:d,c:O,d:T}=ee(h,d,O,T,n[e+t[k++]]),{a:h,b:d,c:O,d:T}=te(h,d,O,T,n[e+t[k++]]),{a:s,b:l,c:S,d:T}=ee(s,l,S,T,n[e+t[k++]]),{a:s,b:l,c:S,d:T}=te(s,l,S,T,n[e+t[k++]]),{a:i,b,c:O,d:A}=ee(i,b,O,A,n[e+t[k++]]),{a:i,b,c:O,d:A}=te(i,b,O,A,n[e+t[k++]]),{a,b:d,c:f,d:w}=ee(a,d,f,w,n[e+t[k++]]),{a,b:d,c:f,d:w}=te(a,d,f,w,n[e+t[k++]]),{a:h,b:c,c:y,d:v}=ee(h,c,y,v,n[e+t[k++]]),{a:h,b:c,c:y,d:v}=te(h,c,y,v,n[e+t[k++]]);return{v0:s,v1:i,v2:a,v3:h,v4:c,v5:l,v6:b,v7:d,v8:f,v9:y,v10:S,v11:O,v12:A,v13:w,v14:v,v15:T}}const ht=(()=>{const t=Array.from({length:16},(o,s)=>s),e=o=>[2,6,3,10,7,0,4,13,1,11,12,5,9,14,15,8].map(s=>o[s]),n=[];for(let o=0,s=t;o<7;o++,s=e(s))n.push(...s);return Uint8Array.from(n)})();class Ue extends kn{constructor(e={},n=0){if(super(64,e.dkLen===void 0?32:e.dkLen,{},Number.MAX_SAFE_INTEGER,0,0),this.flags=0,this.chunkPos=0,this.chunksDone=0,this.stack=[],this.posOut=0,this.bufferOut32=new Uint32Array(16),this.chunkOut=0,this.enableXOF=!0,this.outputLen=e.dkLen===void 0?32:e.dkLen,be(this.outputLen),e.key!==void 0&&e.context!==void 0)throw new Error("Blake3: only key or context can be specified at same time");if(e.key!==void 0){const o=Pe(e.key).slice();if(o.length!==32)throw new Error("Blake3: key should be 32 byte");this.IV=xe(o),$||P(this.IV),this.flags=n|16}else if(e.context!==void 0){const o=new Ue({dkLen:32},32).update(e.context).digest();this.IV=xe(o),$||P(this.IV),this.flags=n|64}else this.IV=K.slice(),this.flags=n;this.state=this.IV.slice(),this.bufferOut=pn(this.bufferOut32)}get(){return[]}set(){}b2Compress(e,n,o,s=0){const{state:i,pos:a}=this,{h,l:c}=ft(BigInt(e),!0),{v0:l,v1:b,v2:d,v3:f,v4:y,v5:S,v6:O,v7:A,v8:w,v9:v,v10:T,v11:k,v12:E,v13:u,v14:x,v15:_}=dt(ht,s,o,7,i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],K[0],K[1],K[2],K[3],h,c,a,n);i[0]=l^w,i[1]=b^v,i[2]=d^T,i[3]=f^k,i[4]=y^E,i[5]=S^u,i[6]=O^x,i[7]=A^_}compress(e,n=0,o=!1){let s=this.flags;if(this.chunkPos||(s|=1),(this.chunkPos===15||o)&&(s|=2),o||(this.pos=this.blockLen),this.b2Compress(this.chunksDone,s,e,n),this.chunkPos+=1,this.chunkPos===16||o){let i=this.state;this.state=this.IV.slice();for(let a,h=this.chunksDone+1;(o||!(h&1))&&(a=this.stack.pop());h>>=1)this.buffer32.set(a,0),this.buffer32.set(i,8),this.pos=this.blockLen,this.b2Compress(0,this.flags|4,this.buffer32,0),i=this.state,this.state=this.IV.slice();this.chunksDone++,this.chunkPos=0,this.stack.push(i)}this.pos=0}_cloneInto(e){e=super._cloneInto(e);const{IV:n,flags:o,state:s,chunkPos:i,posOut:a,chunkOut:h,stack:c,chunksDone:l}=this;return e.state.set(s.slice()),e.stack=c.map(b=>Uint32Array.from(b)),e.IV.set(n),e.flags=o,e.chunkPos=i,e.chunksDone=l,e.posOut=a,e.chunkOut=h,e.enableXOF=this.enableXOF,e.bufferOut32.set(this.bufferOut32),e}destroy(){this.destroyed=!0,this.state.fill(0),this.buffer32.fill(0),this.IV.fill(0),this.bufferOut32.fill(0);for(let e of this.stack)e.fill(0)}b2CompressOut(){const{state:e,pos:n,flags:o,buffer32:s,bufferOut32:i}=this,{h:a,l:h}=ft(BigInt(this.chunkOut++));$||P(s);const{v0:c,v1:l,v2:b,v3:d,v4:f,v5:y,v6:S,v7:O,v8:A,v9:w,v10:v,v11:T,v12:k,v13:E,v14:u,v15:x}=dt(ht,0,s,7,e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],K[0],K[1],K[2],K[3],h,a,n,o);i[0]=c^A,i[1]=l^w,i[2]=b^v,i[3]=d^T,i[4]=f^k,i[5]=y^E,i[6]=S^u,i[7]=O^x,i[8]=e[0]^A,i[9]=e[1]^w,i[10]=e[2]^v,i[11]=e[3]^T,i[12]=e[4]^k,i[13]=e[5]^E,i[14]=e[6]^u,i[15]=e[7]^x,$||(P(s),P(i)),this.posOut=0}finish(){if(this.finished)return;this.finished=!0,this.buffer.fill(0,this.pos);let e=this.flags|8;this.stack.length?(e|=4,$||P(this.buffer32),this.compress(this.buffer32,0,!0),$||P(this.buffer32),this.chunksDone=0,this.pos=this.blockLen):e|=(this.chunkPos?0:1)|2,this.flags=e,this.b2CompressOut()}writeInto(e){$e(this,!1),De(e),this.finish();const{blockLen:n,bufferOut:o}=this;for(let s=0,i=e.length;s<i;){this.posOut>=n&&this.b2CompressOut();const a=Math.min(n-this.posOut,i-s);e.set(o.subarray(this.posOut,this.posOut+a),s),this.posOut+=a,s+=a}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible after digest call");return this.writeInto(e)}xof(e){return be(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(ct(e,this),this.finished)throw new Error("digest() was already called");return this.enableXOF=!1,this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}}const wn=yn(t=>new Ue(t)),We=t=>{const e=`${t.id}|${t.title}|${t.iframe?"Y":"N"}|${t.closable?"Y":"N"}|${t.refreshable?"Y":"N"}`;return st.compressToEncodedURIComponent(e)},vn=t=>{const n=st.decompressFromEncodedURIComponent(t).split("|");return{id:n[0],title:n[1],iframe:n[2]==="Y",closable:n[3]==="Y",refreshable:n[4]==="Y"}},pt=(t,e,n)=>{const o=[];for(const i in n)i.startsWith("__")||o.push({key:i,value:n[i]});o.sort((i,a)=>{let h=0;return i.key>a.key?h=1:i.key<a.key&&(h=-1),h});const s=wn(`${t}|${e}|${JSON.stringify(o)}`);return Re.encode(s)};function qe(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function Fe(t,e,n=".",o){if(!qe(e))return Fe(t,{},n,o);const s=Object.assign({},e);for(const i in t){if(i==="__proto__"||i==="constructor")continue;const a=t[i];a!=null&&(o&&o(s,i,a,n)||(Array.isArray(a)&&Array.isArray(s[i])?s[i]=[...a,...s[i]]:qe(a)&&qe(s[i])?s[i]=Fe(a,s[i],(n?`${n}.`:"")+i.toString(),o):s[i]=a))}return s}function _n(t){return(...e)=>e.reduce((n,o)=>Fe(n,o,"",t),{})}const J=_n(),je=t=>{const e=t.split("?");if(e.length<=1)return{path:e[0],query:{}};{const n=e[1].split("&"),o={};for(const s of n){const i=s.split("=");i[1]!==null&&i[1]!==void 0&&i[1]!==""&&(o[i[0]]=i[1])}return{path:e[0],query:o}}};function xn(t){return{all:t=t||new Map,on:function(e,n){var o=t.get(e);o?o.push(n):t.set(e,[n])},off:function(e,n){var o=t.get(e);o&&(n?o.splice(o.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var o=t.get(e);o&&o.slice().map(function(s){s(n)}),(o=t.get("*"))&&o.slice().map(function(s){s(e,n)})}}}const Tn=xn(),Sn={install(t){t.provide("tabEmitter",Tn)}},se=()=>r.inject("tabEmitter");var U=(t=>(t.PAGE_LOADING="PAGE_LOADING",t.TAB_ACTIVE="TAB_ACTIVE",t))(U||{});const En=r.defineComponent({__name:"PageLoading",props:{tId:{}},setup(t){const e=t,n=se(),o=r.ref(!1);return n.on(U.PAGE_LOADING,({tId:s,value:i})=>{s===e.tId&&(o.value=i)}),(s,i)=>o.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:"stack-tab-loading-mask",style:r.normalizeStyle({zIndex:r.unref(ze)(".cache-page-wrapper *")})},i[0]||(i[0]=[r.createElementVNode("div",{class:"stack-tab-loading--spin turn"},null,-1)]),4)):r.createCommentVNode("",!0)}}),I=r.ref([]),He=[],D=r.ref([]),ne=new Map,ie=new Set,W=new Set,ae=r.ref(!0),Ze="stacktab-active-tab",ce=new Map;let bt=!1,Se=0,mt=!1,Xe="";const me=()=>{const t=Y.useRouter(),e=se(),{t:n}=he(),o=()=>I.value.length,s=m=>{for(const C of m){const p=J(C,{id:Ne(),refreshable:!0,closable:!0,iframe:!1}),L=We(p),F=je(p.path),R=J(p,{closable:!0,refreshable:!0,iframe:!1}),Me=pt(p.id,F.path,F.query),j={id:Me,tabId:p.id,path:F.path,query:J(F.query,{__tab:L})},de=new we;de.push(j);const G={id:p.id,title:R.title,closable:R.closable,refreshable:R.refreshable,iframe:R.iframe,active:!1,pages:de};D.value.push(Me),He.push(G),I.value.push({...G})}const g=window.sessionStorage.getItem(Ze);if(g!=null){const C=JSON.parse(g,(L,F)=>L==="pages"?new we(F):F);let p=!1;for(const L of I.value)if(L.id===C.id){p=!0;break}p||I.value.push(C)}bt=!0},i=m=>{for(const g of I.value)if(g.id===m)return!0;return!1},a=()=>Se<=0||Se>0&&Se>I.value.length,h=m=>new Promise(g=>{I.value.push(m),g(!0)}),c=m=>{for(const g of I.value)if(g.id===m)return g;return null},l=(m,g)=>{let C,p;if(m.query.__tab?p=vn(m.query.__tab):(p={id:Ne(),title:n("VueStackTab.undefined"),closable:!0,refreshable:!0,iframe:!1},m.query.__tab=We(p)),W.has(p.id)||!g)return;const L=m.matched[m.matched.length-1].path,F=m.path.endsWith("/")?m.path.substring(0,m.path.length-1):m.path,R=pt(p.id,L===F?F:m.path,m.query.valueOf());if(ie.has(R))return ne.get(R);const Me=m.query.__src;let j=null;for(const G of r.unref(I))G.active=!1,G.id===p.id&&(j=G);const de={id:R,tabId:p.id,path:m.path,query:m.query};if(j===null){const G=new we;G.push(de),j={id:p.id,title:p.title,closable:p.closable,refreshable:p.refreshable,iframe:p.iframe,url:decodeURIComponent(Me),active:!0,pages:G},h(j).then(()=>{e.emit(U.TAB_ACTIVE,{id:p.id,isRoute:!1})})}else j.active=!0,(j.pages.isEmpty()||j.pages.peek().id!==de.id)&&j.pages.push(de);return q(j),ne.has(R)?C=ne.get(R):(C=r.defineComponent({name:R,components:{DynamicComponent:g},emits:{onLoaded:null},setup(G,Ut){return r.onMounted(()=>{Ut.emit("onLoaded"),y(R,".cache-page-wrapper")}),r.onDeactivated(()=>{d(R)}),r.onActivated(()=>{Ut.emit("onLoaded"),b(R),V(),W.clear(),g.props=null}),r.onUnmounted(()=>{f(R)}),()=>r.createVNode("div",{class:"cache-page-wrapper",id:"W-"+p.id,style:[mt?"overflow:auto":"overflow:hidden"]},[r.createVNode(r.resolveComponent("dynamic-component"),{tId:p.id,pId:R},null),r.createVNode(En,{tId:p.id},null)])}}),ne.set(R,C)),B(R),C},b=m=>{const g=ce.get(m);if(g){for(const C of g.keys())if(document.querySelector(C)){const p=g.get(C);document.querySelector(C).scrollTop=p.top,document.querySelector(C).scrollLeft=p.left}}},d=m=>{var C,p;const g=ce.get(m);if(g)for(const L of g.keys()){const F={top:((C=document.querySelector(L))==null?void 0:C.scrollTop)??0,left:((p=document.querySelector(L))==null?void 0:p.scrollLeft)??0};g.set(L,F)}},f=m=>{const g=ce.get(m);g&&(g.clear(),ce.delete(m))},y=(m,...g)=>{ce.has(m)||ce.set(m,new Map);const C=ce.get(m);for(const p of g)C.set(p,{top:0,left:0})},S=m=>{const g=c(m.id);for(const C of g.pages.list())z(C.id);V(),g.pages.clear()},O=m=>{let g="";const C=c(m);for(let p=I.value.length-1;p>=0;p--)if(m===r.unref(I)[p].id){if(!r.unref(I)[p].closable)return m;for(const L of r.unref(I)[p].pages.list())z(L.id),W.add(r.unref(I)[p].id);r.unref(I)[p].pages.clear(),I.value.length>1&&r.unref(I)[p].active&&(p===0?g=r.unref(I)[p+1].id:g=r.unref(I)[p-1].id),r.unref(I).splice(p,1);break}return g!==""&&e.emit(U.TAB_ACTIVE,{id:g}),C!=null&&C.active||(V(),W.clear()),g},A=()=>{const m=r.unref(I);for(let g=m.length-1;g>=0;g--)if(m[g].closable){for(const C of m[g].pages.list())z(C.id),W.add(m[g].id);r.unref(I)[g].pages.clear(),r.unref(I).splice(g,1)}for(const g of m)if(g.active){V(),W.clear();return}e.emit(U.TAB_ACTIVE,{id:m[m.length-1].id})},w=m=>{const g=r.unref(I);let C;for(let p=g.length-1;p>=0;p--)if(g[p].id===m)C=g[p];else if(g[p].closable&&g[p].id!==m){for(const L of g[p].pages.list())z(L.id),W.add(g[p].id);r.unref(I)[p].pages.clear(),r.unref(I).splice(p,1)}C.active?(V(),W.clear()):e.emit(U.TAB_ACTIVE,{id:m})},v=m=>{let g=-1;const C=r.unref(I);for(let p=0;p<C.length;p++)if(C[p].id===m){g=p-1;break}for(let p=g;p>=0;p--)if(C[p].closable){for(const L of C[p].pages.list())z(L.id),W.add(C[p].id);r.unref(I)[p].pages.clear(),r.unref(I).splice(p,1)}for(const p of C)if(p.active){V(),W.clear();return}e.emit(U.TAB_ACTIVE,{id:C[0].id})},T=m=>{const g=r.unref(I);let C=g.length;for(let p=0;p<g.length;p++)if(g[p].id===m){C=p+1;break}for(let p=g.length-1;p>=C;p--)if(g[p].closable){for(const L of g[p].pages.list())z(L.id),W.add(g[p].id);r.unref(I)[p].pages.clear(),r.unref(I).splice(p,1)}for(const p of g)if(p.active){V(),W.clear();return}e.emit(U.TAB_ACTIVE,{id:g[g.length-1].id})},k=m=>{var g;for(const C of r.unref(I))if(C.id===m){const p=(g=C.pages.peek())==null?void 0:g.id;for(let L=D.value.length-1;L>=0;L--)if(D.value[L]===p){D.value.splice(L,1),C.active&&(ae.value=!1,r.nextTick(()=>{ae.value=!0}));break}break}},E=()=>{const m=new Set;I.value.forEach(g=>{m.add(g.pages.peek().id)});for(let g=D.value.length-1;g>=0;g--){const C=D.value[g];m.has(C)&&D.value.splice(g,1)}r.nextTick(()=>{ae.value=!1,r.nextTick(()=>{setTimeout(()=>{ae.value=!0},300)})})},u=(m,g)=>{ne.set(m,g)},x=m=>ne.get(m),_=m=>{ne.delete(m)},z=m=>{ie.add(m)},V=()=>{if(ie.size>0){for(let m=D.value.length-1;m>=0;m--)ie.has(D.value[m])&&r.unref(D).splice(m,1);for(const m of ie)_(m);ie.clear()}},X=m=>{for(let g=D.value.length-1;g>=0;g--)m===D.value[g]&&r.unref(D).splice(g,1)},B=m=>{new Set(D.value).has(m)||D.value.push(m)},M=(m,g=!0)=>{e.emit("FORWARD");for(let C=I.value.length-1;C>=0;C--){const p=I.value[C];if(p.id===m){if(p.active)break;if(p.active=!0,q(p),g){const L=p.pages.peek();t.push({path:L.path,query:L.query})}}else I.value[C].active=!1}},q=m=>{window.sessionStorage.setItem(Xe+Ze,JSON.stringify(m))},oe=()=>{window.sessionStorage.removeItem(Xe+Ze)},Ie=()=>{ae.value=!1,Pt(),r.nextTick(()=>{r.unref(I).push(...He),e.emit(U.TAB_ACTIVE,{id:He[0].id}),r.nextTick(()=>{ae.value=!0})})},Pt=()=>{r.unref(I).splice(0),ne.clear(),ie.clear(),W.clear(),r.unref(D).splice(0)};return{tabs:I,caches:D,pageShown:ae,initialed:bt,setMaxSize:m=>{Se=m},canAddTab:a,initial:s,size:o,active:M,destroy:Pt,reset:Ie,addCache:B,removeCache:X,getTab:c,addTab:h,removeTab:O,removeAllTabs:A,removeLeftTabs:v,removeRightTabs:T,removeOtherTabs:w,hasTab:i,renewTab:S,addPage:l,addComponent:u,getComponent:x,removeComponent:_,markDeletableCache:z,removeDeletableCache:V,refreshTab:k,refreshAllTabs:E,addPageScroller:y,setGlobalScroll:m=>{mt=m},clearSession:oe,setSessionPrefix:m=>{Xe=m}}},Bn={class:"stack-tab__contextmenu-item"},re=r.defineComponent({__name:"ContextMenuItem",props:{icon:{},title:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",Bn,[r.createElementVNode("div",{class:r.normalizeClass(["stack-tab__contextmenu-icon",e.icon])},null,2),r.createElementVNode("div",{style:{"margin-left":"8px"},onContextmenu:n[0]||(n[0]=r.withModifiers(()=>{},["prevent"]))},r.toDisplayString(e.title),33)]))}}),On={key:0,class:"divider div-transparent"},An=((t,e)=>{const n=t.__vccOpts||t;for(const[o,s]of e)n[o]=s;return n})(r.defineComponent({__name:"index",props:{index:{},left:{default:0},top:{default:0},contextMenu:{},tabItem:{},max:{}},setup(t){const e=t,{t:n}=he(),o=r.ref(),s=r.reactive({left:e.left,top:e.top}),{removeTab:i,removeAllTabs:a,removeLeftTabs:h,removeRightTabs:c,refreshTab:l,refreshAllTabs:b,removeOtherTabs:d}=me();return r.onMounted(()=>{const f=o.value?o.value.clientWidth:0,y=window.innerWidth;s.left+f>y&&(s.left=y-f-5)}),(f,y)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"contextmenu",ref:o,class:"stack-tab__contextmenu",style:r.normalizeStyle({left:`${s.left}px`,top:`${s.top}px`,"z-index":r.unref(ze)(".stack-tab,.stack-tab *")})},[r.createVNode(re,{icon:"stack-tab__icon-reload svg-mask",title:r.unref(n)("VueStackTab.reload"),onClick:y[0]||(y[0]=S=>r.unref(l)(f.tabItem.id))},null,8,["title"]),r.createVNode(re,{icon:"stack-tab__icon-reload-all svg-mask",title:r.unref(n)("VueStackTab.reloadAll"),onClick:r.unref(b)},null,8,["title","onClick"]),r.createVNode(re,{icon:"stack-tab__icon-close svg-mask",title:r.unref(n)("VueStackTab.close"),disabled:f.tabItem.closable?null:"disabled",onClick:y[1]||(y[1]=S=>r.unref(i)(f.tabItem.id))},null,8,["title","disabled"]),r.createVNode(re,{icon:"stack-tab__icon-close-lefts svg-mask",title:r.unref(n)("VueStackTab.closeLeft"),disabled:f.index<=0?"disabled":null,onClick:y[2]||(y[2]=S=>r.unref(h)(f.tabItem.id))},null,8,["title","disabled"]),r.createVNode(re,{icon:"stack-tab__icon-close-rights svg-mask",title:r.unref(n)("VueStackTab.closeRight"),disabled:f.index>=f.max-1?"disabled":null,onClick:y[3]||(y[3]=S=>r.unref(c)(f.tabItem.id))},null,8,["title","disabled"]),r.createVNode(re,{icon:"stack-tab__icon-close-others svg-mask",title:r.unref(n)("VueStackTab.closeOthers"),onClick:y[4]||(y[4]=S=>r.unref(d)(f.tabItem.id))},null,8,["title"]),r.createVNode(re,{icon:"stack-tab__icon-close-all svg-mask",title:r.unref(n)("VueStackTab.closeAll"),onClick:r.unref(a)},null,8,["title","onClick"]),f.contextMenu!==void 0&&f.contextMenu.length>0?(r.openBlock(),r.createElementBlock("div",On)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.contextMenu,(S,O)=>(r.openBlock(),r.createBlock(re,{key:O,icon:S.icon,title:S.title,disabled:S.disabled(f.tabItem)?"disabled":null,onClick:A=>!S.disabled&&S.callback(f.tabItem.id)},null,8,["icon","title","disabled","onClick"]))),128))],4))}}),[["__scopeId","data-v-d598be6e"]]),Cn=()=>{const t=r.reactive({item:{},index:-1,left:0,top:0,max:0}),e=r.ref(!1);r.onMounted(()=>{document.addEventListener("click",o)}),r.onUnmounted(()=>{document.removeEventListener("click",o)});const n=async(s,i,a,h)=>{e.value=!1,await r.nextTick(()=>{const{clientY:c,clientX:l}=s;e.value=!0,Object.assign(t,{item:i,index:a,top:c,left:l,max:h})})},o=s=>{s.target.classList.contains("stack-tab__contextmenu")||(e.value=!1)};return{shown:e,contextMenuData:t,showContextMenu:n}},In={class:"stack-tab__item-title"},Mn=["title"],zn=["title"],Ln=r.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(t,{emit:e}){const n=e,o=se(),{t:s}=he(),i=r.ref(),a=t;o.on(U.TAB_ACTIVE,({id:b,isRoute:d})=>{a.item.id===b&&l(d)});const h=r.computed(()=>a.item.title||s("undefined")),c=()=>{n("close",a.item)},l=(b=!0)=>{n("active",a.item,i,b)};return(b,d)=>(r.openBlock(),r.createElementBlock("li",{ref_key:"curtab",ref:i,class:r.normalizeClass(["stack-tab__item",{"is-active":b.item.active,"is-icon":b.item.closable}]),onClick:d[0]||(d[0]=f=>l(!0))},[r.createElementVNode("div",In,[r.createElementVNode("div",{class:"stack-tab__item-title-content",title:h.value},r.toDisplayString(h.value),9,Mn)]),b.item.closable?(r.openBlock(),r.createElementBlock("div",{key:0,class:"stack-tab__icon-close-fill stack-tab__item-button",title:r.unref(s)("VueStackTab.close"),onClick:r.withModifiers(c,["stop"])},null,8,zn)):r.createCommentVNode("",!0)],2))}});var le=[],Nn=function(){return le.some(function(t){return t.activeTargets.length>0})},Vn=function(){return le.some(function(t){return t.skippedTargets.length>0})},gt="ResizeObserver loop completed with undelivered notifications.",Rn=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:gt}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=gt),window.dispatchEvent(t)},ge;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ge||(ge={}));var fe=function(t){return Object.freeze(t)},Dn=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,fe(this)}return t}(),yt=function(){function t(e,n,o,s){return this.x=e,this.y=n,this.width=o,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)}return t.prototype.toJSON=function(){var e=this,n=e.x,o=e.y,s=e.top,i=e.right,a=e.bottom,h=e.left,c=e.width,l=e.height;return{x:n,y:o,top:s,right:i,bottom:a,left:h,width:c,height:l}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Ge=function(t){return t instanceof SVGElement&&"getBBox"in t},kt=function(t){if(Ge(t)){var e=t.getBBox(),n=e.width,o=e.height;return!n&&!o}var s=t,i=s.offsetWidth,a=s.offsetHeight;return!(i||a||t.getClientRects().length)},wt=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},$n=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},ye=typeof window<"u"?window:{},Ee=new WeakMap,vt=/auto|scroll/,Pn=/^tb|vertical/,Un=/msie|trident/i.test(ye.navigator&&ye.navigator.userAgent),H=function(t){return parseFloat(t||"0")},ue=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new Dn((n?e:t)||0,(n?t:e)||0)},_t=fe({devicePixelContentBoxSize:ue(),borderBoxSize:ue(),contentBoxSize:ue(),contentRect:new yt(0,0,0,0)}),xt=function(t,e){if(e===void 0&&(e=!1),Ee.has(t)&&!e)return Ee.get(t);if(kt(t))return Ee.set(t,_t),_t;var n=getComputedStyle(t),o=Ge(t)&&t.ownerSVGElement&&t.getBBox(),s=!Un&&n.boxSizing==="border-box",i=Pn.test(n.writingMode||""),a=!o&&vt.test(n.overflowY||""),h=!o&&vt.test(n.overflowX||""),c=o?0:H(n.paddingTop),l=o?0:H(n.paddingRight),b=o?0:H(n.paddingBottom),d=o?0:H(n.paddingLeft),f=o?0:H(n.borderTopWidth),y=o?0:H(n.borderRightWidth),S=o?0:H(n.borderBottomWidth),O=o?0:H(n.borderLeftWidth),A=d+l,w=c+b,v=O+y,T=f+S,k=h?t.offsetHeight-T-t.clientHeight:0,E=a?t.offsetWidth-v-t.clientWidth:0,u=s?A+v:0,x=s?w+T:0,_=o?o.width:H(n.width)-u-E,z=o?o.height:H(n.height)-x-k,V=_+A+E+v,X=z+w+k+T,B=fe({devicePixelContentBoxSize:ue(Math.round(_*devicePixelRatio),Math.round(z*devicePixelRatio),i),borderBoxSize:ue(V,X,i),contentBoxSize:ue(_,z,i),contentRect:new yt(d,c,_,z)});return Ee.set(t,B),B},Tt=function(t,e,n){var o=xt(t,n),s=o.borderBoxSize,i=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(e){case ge.DEVICE_PIXEL_CONTENT_BOX:return a;case ge.BORDER_BOX:return s;default:return i}},Wn=function(){function t(e){var n=xt(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=fe([n.borderBoxSize]),this.contentBoxSize=fe([n.contentBoxSize]),this.devicePixelContentBoxSize=fe([n.devicePixelContentBoxSize])}return t}(),St=function(t){if(kt(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},qn=function(){var t=1/0,e=[];le.forEach(function(a){if(a.activeTargets.length!==0){var h=[];a.activeTargets.forEach(function(l){var b=new Wn(l.target),d=St(l.target);h.push(b),l.lastReportedSize=Tt(l.target,l.observedBox),d<t&&(t=d)}),e.push(function(){a.callback.call(a.observer,h,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,o=e;n<o.length;n++){var s=o[n];s()}return t},Et=function(t){le.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(St(s.target)>t?n.activeTargets.push(s):n.skippedTargets.push(s))})})},Fn=function(){var t=0;for(Et(t);Nn();)t=qn(),Et(t);return Vn()&&Rn(),t>0},Ye,Bt=[],jn=function(){return Bt.splice(0).forEach(function(t){return t()})},Hn=function(t){if(!Ye){var e=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return jn()}).observe(n,o),Ye=function(){n.textContent="".concat(e?e--:e++)}}Bt.push(t),Ye()},Zn=function(t){Hn(function(){requestAnimationFrame(t)})},Be=0,Xn=function(){return!!Be},Gn=250,Yn={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ot=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],At=function(t){return t===void 0&&(t=0),Date.now()+t},Ke=!1,Kn=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=Gn),!Ke){Ke=!0;var o=At(e);Zn(function(){var s=!1;try{s=Fn()}finally{if(Ke=!1,e=o-At(),!Xn())return;s?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,Yn)};document.body?n():ye.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ot.forEach(function(n){return ye.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Ot.forEach(function(n){return ye.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),Je=new Kn,Ct=function(t){!Be&&t>0&&Je.start(),Be+=t,!Be&&Je.stop()},Jn=function(t){return!Ge(t)&&!$n(t)&&getComputedStyle(t).display==="inline"},Qn=function(){function t(e,n){this.target=e,this.observedBox=n||ge.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=Tt(this.target,this.observedBox,!0);return Jn(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),er=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),Oe=new WeakMap,It=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},Ae=function(){function t(){}return t.connect=function(e,n){var o=new er(e,n);Oe.set(e,o)},t.observe=function(e,n,o){var s=Oe.get(e),i=s.observationTargets.length===0;It(s.observationTargets,n)<0&&(i&&le.push(s),s.observationTargets.push(new Qn(n,o&&o.box)),Ct(1),Je.schedule())},t.unobserve=function(e,n){var o=Oe.get(e),s=It(o.observationTargets,n),i=o.observationTargets.length===1;s>=0&&(i&&le.splice(le.indexOf(o),1),o.observationTargets.splice(s,1),Ct(-1))},t.disconnect=function(e){var n=this,o=Oe.get(e);o.observationTargets.slice().forEach(function(s){return n.unobserve(e,s.target)}),o.activeTargets.splice(0,o.activeTargets.length)},t}(),Mt=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Ae.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!wt(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ae.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!wt(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ae.unobserve(this,e)},t.prototype.disconnect=function(){Ae.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const tr=["disabled","title"],nr={key:1,class:"stack-tab__button"},Ce=r.defineComponent({__name:"TabHeaderButton",props:{disabled:{type:Boolean,default:!1},shadow:{default:null},iconClass:{default:""},title:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["stack-tab__header-button",{"stack-tab__shadow-right":e.shadow==="right","stack-tab__shadow-left":e.shadow==="left"}]),disabled:e.disabled?"disabled":null,title:e.title},["icon"in e.$slots?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["stack-tab__mask-button",e.iconClass])},null,2)),"icon"in e.$slots?(r.openBlock(),r.createElementBlock("div",nr,[r.renderSlot(e.$slots,"icon")])):r.createCommentVNode("",!0)],10,tr))}}),rr=r.defineComponent({__name:"TabHeaderScroll",props:{space:{default:300},isScrollWheel:{type:Boolean,default:!0},isScrollButton:{type:Boolean,default:!0}},setup(t,{expose:e}){const n=r.ref(null),o=r.ref(null),s=r.ref(null),i=r.ref(!1),a=r.ref(!1),h=r.ref(!1),c=r.ref(!0),l=r.ref(),b=t,d=r.reactive({clientWidth:0,scrollWidth:0,scrollLeft:0}),f=r.reactive({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});r.watch(d,B=>{y(B)});const y=B=>{a.value=B.scrollLeft<=10,h.value=B.clientWidth+B.scrollLeft-B.scrollWidth>=-10,c.value=B.scrollWidth!==B.clientWidth},S=r.computed(()=>d.scrollWidth>d.clientWidth),O=r.computed(()=>{if(!S.value)return 0;const{clientWidth:B,scrollWidth:M}=d;return B/M*B}),A=r.computed(()=>{if(!S.value)return 0;const{clientWidth:B,scrollWidth:M,scrollLeft:q}=d;return(B-O.value)*(q/(M-B))}),w=()=>{if(n.value===null||n.value===void 0)return;const{clientWidth:B,scrollWidth:M,scrollLeft:q}=n.value;Object.assign(d,{clientWidth:B,scrollWidth:M,scrollLeft:q})},v=new Mt(()=>{var M;w();const B=(M=n.value)==null?void 0:M.querySelector(".stack-tab__item.is-active");B&&(X(B)||V(B))}),T=new Mt(()=>{var B;if(!S.value){const M=(B=n.value)==null?void 0:B.querySelector(".stack-tab__item.is-active");M&&(X(M)||V(M))}w()}),k=(B,M=!0)=>{rt({wrap:n.value,left:B,smooth:M})},E=B=>{k(n.value.scrollLeft+B)},u=B=>{const M=B.deltaY<0;k(n.value.scrollLeft+(M?-b.space:b.space))},x=B=>{var M;Object.assign(f,{startPageX:B.pageX,startScrollLeft:(M=n.value)==null?void 0:M.scrollLeft,startThumbLeft:A.value,thumbLeft:A.value}),i.value=!0,document.addEventListener("mousemove",_),document.addEventListener("mouseup",z)},_=B=>{const{clientWidth:M,scrollWidth:q}=d;let oe=f.startThumbLeft+B.pageX-f.startPageX;const Ie=M-O.value;oe<0?oe=0:oe>Ie&&(oe=Ie),f.thumbLeft=oe,k(oe*(q-M)/(M-O.value),!1),B.preventDefault()},z=B=>{i.value=!1,document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",z),B.preventDefault()};r.onMounted(()=>{var M;v.observe(l.value);const B=(M=n.value)==null?void 0:M.querySelector(".stack-tab__nav");T.observe(B)}),r.onUnmounted(()=>{v.disconnect(),T.disconnect()});const V=B=>{tn({el:B,wrap:n,block:"end",inline:"center"})},X=B=>{if(!S.value)return!0;const M=B.offsetLeft,q=n.value.scrollLeft;return!(M<q||M+B.clientWidth>q+n.value.clientWidth)};return e({scrollIntoView:V,isInView:X}),(B,M)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[c.value?(r.openBlock(),r.createBlock(Ce,{key:0,"icon-class":"stack-tab__icon-left-arrow",disabled:a.value,onClick:M[0]||(M[0]=q=>!a.value&&E(-1*B.space))},null,8,["disabled"])):r.createCommentVNode("",!0),r.createElementVNode("div",{ref_key:"headerScroll",ref:l,class:"stack-tab__scroll",onWheelPassive:u},[r.createElementVNode("div",{ref_key:"container",ref:n,class:r.normalizeClass(["stack-tab__scroll-container",{"stack-tab__shadow-inset-left":!a.value&&h.value,"stack-tab__shadow-inset-right":!h.value&&a.value,"stack-tab__shadow-inset-all":!a.value&&!h.value}]),onScrollPassive:w},[r.renderSlot(B.$slots,"default")],34),r.withDirectives(r.createElementVNode("div",{ref_key:"bar",ref:o,class:r.normalizeClass(["stack-tab__scrollbar",{"is-dragging":i.value}])},[r.createElementVNode("div",{ref_key:"thumb",ref:s,class:r.normalizeClass(["stack-tab__scrollbar-thumb",{"is-dragging":i.value}]),style:r.normalizeStyle({width:`${O.value}px`,transform:`translateX(${A.value}px)`}),onMousedown:r.withModifiers(x,["prevent"])},null,38)],2),[[r.vShow,S.value]])],544),c.value?(r.openBlock(),r.createBlock(Ce,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:h.value,onClick:M[1]||(M[1]=q=>!h.value&&E(B.space))},null,8,["disabled"])):r.createCommentVNode("",!0)],64))}}),or={class:"stack-tab__header"},sr=r.defineComponent({__name:"index",props:{space:{},tabScrollMode:{default:Q.BOTH},tabTransition:{default:()=>({name:"stack-tab-zoom"})},contextmenu:{type:[Boolean,Object],default:!0},max:{default:20}},emits:["active"],setup(t,{emit:e}){const{t:n}=he(),o=r.inject("maximum"),s=e,i=r.ref(),{shown:a,contextMenuData:h,showContextMenu:c}=Cn(),l=t,{removeTab:b,active:d,tabs:f}=me(),y=r.computed(()=>typeof l.tabTransition=="string"?{name:l.tabTransition}:l.tabTransition),S=r.computed(()=>l.tabScrollMode===Q.BOTH||l.tabScrollMode===Q.BUTTON),O=l.tabScrollMode===Q.BOTH||l.tabScrollMode===Q.WHEEL,A=v=>{v.closable&&b(v.id),a.value=!1},w=(v,T,k)=>{i.value&&(r.nextTick(()=>{i.value.isInView(T.value)||i.value.scrollIntoView(T.value)}),d(v.id,k),s("active",v.id))};return(v,T)=>(r.openBlock(),r.createElementBlock("div",or,[r.renderSlot(v.$slots,"leftButton"),r.createVNode(rr,{ref_key:"scroll",ref:i,space:v.space,"is-scroll-wheel":r.unref(O),"is-scroll-button":S.value},{default:r.withCtx(()=>[r.createVNode(r.TransitionGroup,r.mergeProps({key:"tabItemTrans",tag:"ul",class:"stack-tab__nav"},y.value,{appear:""}),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(f),(k,E)=>(r.openBlock(),r.createBlock(Ln,{key:k.id,contextmenu:v.contextmenu,item:k,onContextmenu:r.withModifiers(u=>r.unref(c)(u,k,E,r.unref(f).length),["prevent"]),onMouseup:r.withModifiers(u=>A(k),["middle","prevent"]),onClose:A,onActive:w},null,8,["contextmenu","item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),r.renderSlot(v.$slots,"rightButton"),r.createVNode(Ce,{"icon-class":r.unref(o)?"stack-tab__icon-restore":"stack-tab__icon-fullscreen",title:r.unref(n)("VueStackTab.maximum"),onClick:T[0]||(T[0]=k=>o.value=!r.unref(o))},null,8,["icon-class","title"]),r.createVNode(r.Transition,{name:"stack-tab-zoom",appear:""},{default:r.withCtx(()=>[r.unref(a)?(r.openBlock(),r.createBlock(An,{key:"tabMenuTrans",left:r.unref(h).left,top:r.unref(h).top,"tab-item":r.unref(h).item,max:r.unref(h).max,index:r.unref(h).index},null,8,["left","top","tab-item","max","index"])):r.createCommentVNode("",!0)]),_:1})]))}});function ir(t,e,n){var o={},s=o.noTrailing,i=s===void 0?!1:s,a=o.noLeading,h=a===void 0?!1:a,c=o.debounceMode,l=c===void 0?void 0:c,b,d=!1,f=0;function y(){b&&clearTimeout(b)}function S(A){var w=A||{},v=w.upcomingOnly,T=v===void 0?!1:v;y(),d=!T}function O(){for(var A=arguments.length,w=new Array(A),v=0;v<A;v++)w[v]=arguments[v];var T=this,k=Date.now()-f;if(d)return;function E(){f=Date.now(),e.apply(T,w)}function u(){b=void 0}!h&&l&&!b&&E(),y(),l===void 0&&k>t?h?(f=Date.now(),i||(b=setTimeout(l?u:E,t))):E():i!==!0&&(b=setTimeout(l?u:E,l===void 0?t-k:t))}return O.cancel=S,O}let zt;const Lt=()=>{const t=Y.useRouter(),{active:e,hasTab:n,pageShown:o,reset:s,canAddTab:i,renewTab:a,getTab:h}=me(),c=se(),l=ir(500,(y,S=!1)=>new Promise((O,A)=>{if(!o.value){A();return}const w=J(y,{refreshable:!0,closable:!0,iframe:!1});if(w.id&&S&&n(w.id)){a(y);const v=h(y.id);v!=null&&v.active&&(o.value=!1,r.nextTick(()=>{o.value=!0}))}if(n(w.id)&&!S){c.emit(U.TAB_ACTIVE,{id:w.id}),O(w.id);return}if(w.id||(w.id=Ne()),!i()){A("Max Size");return}b(y,w),O(w.id)})),b=(y,S)=>{const O=We(S);let A=J({__tab:O},y.query),w;if(y.iframe){const v=encodeURIComponent(y.path);w=zt,A.__src=v}else{const v=je(y.path);w=v.path,A=J(v.query,A)}t.push({path:w,query:A})};return{openNewTab:l,setIFramePath:y=>{zt=y},active:e,reset:s,getWrapper:()=>document.getElementsByClassName("cache-page-wrapper")[0]}},ar={class:"stack-tab__container"},cr=["src"],Nt=r.defineComponent({__name:"StackTabs",props:{defaultTabs:{default:()=>[]},max:{default:20},append:{default:"last"},contextmenu:{type:[Boolean,Object],default:!0},pageTransition:{default:"stack-tab-swap"},pageTransitionBack:{default:"stack-tab-swap-back"},tabTransition:{default:"stack-tab-zoom"},tabScrollMode:{default:Q.BOTH},width:{default:"100%"},height:{default:"100%"},i18n:{default:"zh-CN"},space:{default:300},globalScroll:{type:Boolean,default:!1},iframePath:{},sessionPrefix:{default:""}},emits:["onActive","onPageLoaded"],setup(t,{emit:e}){const{tabs:n,pageShown:o,caches:s,destroy:i,addPage:a,initial:h,setMaxSize:c,setGlobalScroll:l,clearSession:b,setSessionPrefix:d}=me(),f=e,y=t,{changeLocale:S}=he(),O=r.ref(!1);r.provide("maximum",O);const{setIFramePath:A}=Lt();A(y.iframePath),l(y.globalScroll),S(y.i18n),r.onBeforeMount(()=>{h(y.defaultTabs),d(y.sessionPrefix)});const w=(u,x)=>a(u,x),v=u=>{f("onActive",u)};c(y.max),r.onBeforeUnmount(()=>{i()});const T=()=>{f("onPageLoaded")},k=r.ref(y.pageTransition),E=se();return E.on("FORWARD",()=>{k.value=y.pageTransition}),E.on("BACKWARD",()=>{k.value=y.pageTransitionBack}),r.onBeforeUnmount(()=>{b()}),(u,x)=>{const _=r.resolveComponent("router-view");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["stack-tab",{"stack-tab__maximum":O.value}]),style:r.normalizeStyle({width:u.width,height:u.height,"z-index":O.value?r.unref(ze)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[r.createVNode(sr,{space:u.space,onActive:v,"tab-transition":u.tabTransition,max:u.max},{leftButton:r.withCtx(()=>[r.renderSlot(u.$slots,"leftButton")]),rightButton:r.withCtx(()=>[r.renderSlot(u.$slots,"rightButton")]),_:3},8,["space","tab-transition","max"]),r.createElementVNode("div",ar,[r.createVNode(_,null,{default:r.withCtx(({Component:z,route:V})=>[r.createVNode(r.Transition,{name:k.value,appear:"",mode:"out-in"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.KeepAlive,{include:r.unref(s)},[r.unref(o)?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(w(V,z)),{key:`${V.name}_${V.fullPath}`,onOnLoaded:T},null,32)):r.createCommentVNode("",!0)],1032,["include"]))]),_:2},1032,["name"])]),_:1}),r.createVNode(r.TransitionGroup,{name:u.pageTransition,appear:""},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(n).filter(z=>z.iframe),z=>r.withDirectives((r.openBlock(),r.createElementBlock("iframe",{key:z.id,class:"stack-tab__iframe",src:/^(javascript|data):/i.test(z.url??"")?"about:blank":z.url,frameborder:"0"},null,8,cr)),[[r.vShow,z.active]])),128))]),_:1},8,["name"])])],6)}}}),Qe=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Vt=typeof TextEncoder=="function"?new TextEncoder:void 0,ke=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(t=>{let e={};return t.forEach((n,o)=>e[n]=o),e})(ke);const Z=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const lr=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),Rt=typeof btoa=="function"?t=>btoa(t):Qe?t=>Buffer.from(t,"binary").toString("base64"):t=>{let e,n,o,s,i="";const a=t.length%3;for(let h=0;h<t.length;){if((n=t.charCodeAt(h++))>255||(o=t.charCodeAt(h++))>255||(s=t.charCodeAt(h++))>255)throw new TypeError("invalid character found");e=n<<16|o<<8|s,i+=ke[e>>18&63]+ke[e>>12&63]+ke[e>>6&63]+ke[e&63]}return a?i.slice(0,a-3)+"===".substring(a):i},fr=Qe?t=>Buffer.from(t).toString("base64"):t=>{let n=[];for(let o=0,s=t.length;o<s;o+=4096)n.push(Z.apply(null,t.subarray(o,o+4096)));return Rt(n.join(""))},ur=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?Z(192|e>>>6)+Z(128|e&63):Z(224|e>>>12&15)+Z(128|e>>>6&63)+Z(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return Z(240|e>>>18&7)+Z(128|e>>>12&63)+Z(128|e>>>6&63)+Z(128|e&63)}},dr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,hr=t=>t.replace(dr,ur),Dt=Qe?t=>Buffer.from(t,"utf8").toString("base64"):Vt?t=>fr(Vt.encode(t)):t=>Rt(hr(t)),pr=(t,e=!1)=>e?lr(Dt(t)):Dt(t),br=t=>{const o=`<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1167.06 237.75"><path d="M79.24,19.73h108.91v29.7h-108.91v-29.7Z" style="fill:#79a7ff; stroke-width:0px;"/><path d="M179.24,199.67H20.26c-11.21-.07-20.26-9.17-20.26-20.38V20.39C0,9.18,9.05.07,20.26,0h59.49c3.51.07,6.34,2.9,6.41,6.42v44.36c0,3.54-2.87,6.41-6.41,6.41s-6.41-2.86-6.42-6.4V12.36H20.25c-4.13.07-7.44,3.44-7.44,7.56v159.41c0,4.13,3.31,7.49,7.44,7.56h158.98c4.13-.07,7.44-3.44,7.44-7.56V51.84c0-3.54,2.87-6.41,6.41-6.42,3.55,0,6.42,2.87,6.42,6.42v127.45c0,11.21-9.05,20.32-20.26,20.39h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M192.8,60.77c-3.66-.07-6.61-3.02-6.68-6.68v-18.23c.09-4.29-3.32-7.83-7.6-7.92h-96.43c-3.69,0-6.69-2.99-6.69-6.69s2.99-6.69,6.69-6.69h96.27c11.69.08,21.13,9.58,21.13,21.27v18.25c0,3.69-2.99,6.68-6.68,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M193.08,58.67H10.15c-3.61-.08-6.48-3.07-6.41-6.68-.08-3.62,2.79-6.61,6.4-6.69,0,0,0,0,0,0h182.93c3.62.08,6.48,3.08,6.41,6.69.07,3.61-2.79,6.6-6.41,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M137.2,58.67c-3.42.24-6.4-2.32-6.68-5.74v-28.15c.55-3.69,4-6.24,7.69-5.69,2.94.44,5.24,2.75,5.69,5.69v28.15c-.28,3.42-3.26,5.98-6.68,5.74h-.02Z" style="fill:#377dff; stroke-width:0px;"/><path d="M99.78,100.48l-12.83-22.22h-18.39l31.22,54.05,31.22-54.05h-18.39l-12.83,22.22Z" style="fill:#00d797; stroke-width:0px;"/><path d="M135.28,78.26l-35.49,61.43-35.44-61.43h-20.11l55.55,96.2,55.55-96.2s-20.06,0-20.06,0ZM313.33,59.95c0,.52-.67,1.84-2,3.95s-3.3,5.2-5.9,9.28-5.75,9.28-9.46,15.61c-3.7,6.33-7.52,13.34-11.45,21.04-4.51,8.85-7.76,15.8-9.76,20.86s-2.99,9.41-2.99,13.05c0,2.89,1.53,5.44,4.6,7.63,3.7-2.89,7.34-6.33,10.93-10.32,3.58-3.99,7.13-8.44,10.63-13.36s7.55-11.13,12.14-18.65c4.6-7.52,8.69-14.43,12.27-20.73-.17-.52-.36-1.04-.56-1.56s-.3-.95-.3-1.3c0-2.72.55-5.26,1.65-7.63,1.1-2.37,2.47-4.68,4.12-6.94s4.12-5.44,7.42-9.54c.87-1.1,1.94-1.65,3.21-1.65,2.08,0,3.12,1.33,3.12,3.99s-1.08,6.84-3.25,12.53c-2.17,5.7-5.37,12.39-9.59,20.08s-9.47,16.29-15.74,25.81c-6.28,9.51-13.37,19.45-21.3,29.8-8.04,10.47-13.79,15.7-17.26,15.7-1.97,0-4.19-1.08-6.68-3.25s-4.63-5.13-6.42-8.89-2.69-7.78-2.69-12.06c0-2.54.53-5.81,1.6-9.8s2.75-8.78,5.03-14.36,4.87-11.09,7.76-16.53c3.01-5.72,5.65-10.47,7.94-14.23,2.28-3.76,4.87-7.94,7.76-12.53,2.89-4.6,4.34-7.1,4.34-7.5,0-.87-.58-1.3-1.73-1.3-3.35,0-7.82,1.71-13.4,5.12s-12.85,8.59-21.82,15.53c-3.41,2.66-5.57,4.38-6.46,5.16s-1.34,1.43-1.34,1.95c0,.69.55,1.04,1.65,1.04.46,0,2.02-.17,4.68-.52s4.77-.52,6.33-.52c2.6,0,3.9.46,3.9,1.39,0,.81-.54,1.45-1.61,1.91-1.07.46-2.54.93-4.42,1.39s-4.44,1.1-7.68,1.91c-3.47.93-7.16,2.25-11.06,3.99-3.9,1.73-6.14,2.6-6.72,2.6-1.1,0-1.78-.4-2.04-1.21s-.39-2.14-.39-3.99c0-8.21,1.36-14.56,4.08-19.04s7.58-9.15,14.57-14.01c7.98-5.55,15.61-10.16,22.9-13.84,7.29-3.67,13.58-6.36,18.87-8.07s9.18-2.56,11.67-2.56,4.84,1.56,7.24,4.68,3.6,6.42,3.6,9.89h0ZM366.34,124.75c-8.39,11.1-14.76,19-19.13,23.68s-7.94,7.03-10.71,7.03c-2.2,0-4.22-.91-6.07-2.73-1.85-1.82-3.28-4.28-4.29-7.37s-1.52-6.4-1.52-9.93c0-2.31.22-4.39.65-6.25.43-1.85,1.26-3.89,2.47-6.12s2.82-4.64,4.81-7.24c2-2.6,4.44-5.55,7.33-8.85,1.73-2.02,3.19-3.73,4.38-5.12,1.18-1.39,2.34-2.33,3.47-2.82s2.96-.74,5.51-.74c1.85,0,3.61.25,5.29.74,1.68.49,2.52,1,2.52,1.52,0,1.04-.85,2.92-2.56,5.64s-4.45,6.03-8.24,9.93c-3.79,3.9-8.17,7.74-13.14,11.49-1.1,3.41-1.65,6.01-1.65,7.81,0,2.49.95,3.73,2.86,3.73.69,0,1.85-.59,3.47-1.78,1.62-1.18,4.35-3.47,8.2-6.85,3.84-3.38,7.3-6.38,10.37-8.98,2.25-1.97,4.87-4.9,7.85-8.8s5.39-6.84,7.24-8.8c4.28-4.51,7.2-7.44,8.76-8.8s3.06-2.04,4.51-2.04,2.33.43,2.82,1.3c.49.87.74,2.63.74,5.29,0,1.21-.12,2.2-.35,2.95s-.71,1.72-1.43,2.91-2.18,3.37-4.38,6.55-4.8,6.94-7.81,11.28c-1.66,2.38-3.09,4.93-4.25,7.59-1.21,2.75-1.82,4.81-1.82,6.2,0,3.01,1.18,4.51,3.56,4.51,1.96,0,4.25-.81,6.85-2.43s6.59-4.54,11.97-8.76v5.81c-6.77,6.25-11.77,10.79-15.01,13.62s-6.04,4.97-8.41,6.42-4.63,2.17-6.77,2.17c-4.86,0-7.29-2.89-7.29-8.67,0-2.2.72-5.16,2.17-8.89,1.44-3.73,3.79-9.12,7.03-16.18v-.02Z" style="fill:#306fff; stroke-width:0px;"/><path d="M407.71,133.77v2.17c0,3.41.84,6.07,2.52,7.98,1.68,1.91,3.87,2.86,6.59,2.86s5.77-.66,8.8-2c3.04-1.33,6.06-3.09,9.07-5.29s6.68-5.15,11.02-8.85v5.29c-6.54,7.87-12.67,13.89-18.39,18.09-5.72,4.19-11.54,6.29-17.44,6.29-5.15,0-9.22-2-12.23-5.99s-4.51-9.46-4.51-16.39c0-6.07,1.42-11.58,4.25-16.52s7.46-10.16,13.88-15.66c4.39-3.76,8.76-6.59,13.1-8.5s8.21-2.86,11.62-2.86c2.72,0,4.87.62,6.46,1.86s2.39,3.11,2.39,5.59c0,3.64-1.36,7.27-4.08,10.89s-6.87,7.2-12.45,10.76c-5.58,3.56-12.45,6.98-20.6,10.28h0ZM408.58,128.13c5.2-2.02,9.66-4.54,13.36-7.55,3.7-3.01,6.43-5.88,8.2-8.63,1.76-2.75,2.65-4.76,2.65-6.03s-.61-2-1.82-2c-1.04,0-2.73.67-5.07,2s-4.71,3.07-7.11,5.21-4.55,4.66-6.46,7.55c-1.9,2.86-3.17,6.08-3.73,9.46h-.02ZM585.37,132.9c-1.45-2.66-3.61-5.06-6.51-7.2-2.89-2.14-6.15-3.86-9.76-5.16s-7.39-2.27-11.32-2.91c-11.68-1.74-22.58-5.52-32.7-11.36-.87-.46-1.79-1.44-2.78-2.95-.98-1.5-1.47-2.95-1.47-4.34,0-5.09.85-10.19,2.56-15.31,1.71-5.12,3.89-9.12,6.55-12.01,4.28-4.8,11.98-8.99,23.12-12.58,11.13-3.58,23.67-5.38,37.6-5.38,8.33,0,14.76.64,19.3,1.91s6.81,3.24,6.81,5.9c0,4.34-.59,7.69-1.78,10.06s-2.46,3.95-3.82,4.73c-1.36.78-3.75,1.84-7.16,3.17-3.64,1.27-6.81,2.6-9.5,3.99s-4.99,2.72-6.9,3.99c-1.91,1.27-3.09,1.91-3.56,1.91-.58,0-.87-.23-.87-.69,0-.98,1.03-2.47,3.08-4.47s4.58-3.74,7.59-5.25c3.18-1.68,4.77-2.75,4.77-3.21,0-.75-1.76-1.13-5.29-1.13-10.7,0-20.59.95-29.67,2.86s-16.24,4.42-21.47,7.55c-5.23,3.12-7.85,6.3-7.85,9.54,0,2.02,1.08,3.46,3.25,4.29,2.17.84,6.95,2.24,14.36,4.21,7.4,1.97,14.02,4.22,19.86,6.77,8.38,3.59,14.6,7.32,18.65,11.19,4.05,3.88,6.07,8.21,6.07,13.01,0,3.3-.8,6.61-2.39,9.93-1.59,3.33-3.92,6.38-6.98,9.15-3.07,2.78-6.59,5.06-10.58,6.85-3.41,1.45-7.71,2.8-12.88,4.08-5.18,1.27-10.79,2.27-16.83,2.99-6.04.72-11.81,1.08-17.31,1.08-10.12,0-18.26-.95-24.42-2.86s-9.24-4.8-9.24-8.67c0-1.74,1.04-4.44,3.12-8.11s4.54-6.14,7.37-7.42c2.49-.98,4.89-1.55,7.2-1.69,2.31-.14,3.47.13,3.47.82,0,.17-.09.35-.26.52s-.38.32-.61.43c-.23.12-.46.23-.69.35-1.16.46-2.1.82-2.82,1.08-.72.26-1.3.52-1.74.78-.43.26-.65.62-.65,1.08,0,1.21,5.99,1.82,17.96,1.82,10.41,0,18.94-.38,25.59-1.13s12.52-2.11,17.61-4.08c5.09-1.97,9.71-4.68,13.88-8.15l.04.02ZM640.8,85.63h3.73c3.06-5.49,5.84-9.38,8.33-11.67,2.49-2.28,5.32-3.43,8.5-3.43s4.77.72,4.77,2.17c0,.69-1.24,2.57-3.73,5.64s-4.37,5.64-5.64,7.72c1.96.23,3.71.43,5.25.61,1.53.17,2.73.32,3.6.43-3.3,6.13-7.43,12.4-12.4,18.82l-4.08-.3c-1.1-.09-2.21-.17-3.34-.26s-2.5-.19-4.12-.3c-3.12,5.03-5.74,9.53-7.85,13.49s-3.73,7.59-4.86,10.89-1.69,6.42-1.69,9.37c0,3.99,1.59,5.99,4.77,5.99,2.2,0,5.07-1.17,8.63-3.51s8.31-5.94,14.27-10.8v5.81c-15.61,16.95-27.15,25.42-34.61,25.42-2.6,0-4.7-1.01-6.29-3.04-1.59-2.02-2.38-4.63-2.38-7.81,0-2.14.45-4.68,1.34-7.63.9-2.95,2.5-7.4,4.81-13.36-.81.69-1.58,1.37-2.3,2.04s-1.39,1.27-2,1.82-1.26,1.13-1.95,1.73c-.69.61-1.39,1.23-2.08,1.87v-5.99c6.07-5.09,13.42-14.02,22.03-26.8-.87-.06-1.68-.1-2.43-.13s-1.65-.04-2.69-.04c-3.41,0-5.96.23-7.63.69-.69.17-1.34.36-1.95.56s-1.03.3-1.26.3-.35-.17-.35-.52c0-1.91,1.18-4.77,3.56-8.59,1.91-3.24,3.72-5.64,5.42-7.2,1.71-1.56,3.79-2.62,6.25-3.17,2.46-.55,5.91-.82,10.37-.82h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M664.91,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM706.46,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M779.07,130.82v5.81c-6.19,6.07-11.23,10.79-15.14,14.14-3.9,3.35-7.55,5.96-10.93,7.81-3.38,1.85-6.69,2.78-9.93,2.78s-6.1-1.26-8.76-3.77c-2.66-2.52-4.74-5.81-6.25-9.89-1.5-4.08-2.26-8.4-2.26-12.97,0-3.93.87-7.43,2.6-10.5,1.74-3.07,5.09-7.03,10.06-11.88,5.9-5.78,11.38-10.25,16.44-13.4s9.04-4.73,11.93-4.73c2.08,0,3.85.72,5.29,2.17s2.17,3.27,2.17,5.46c0,1.85-.95,4.48-2.86,7.89-1.91,3.41-4.05,6.38-6.42,8.89-2.37,2.52-4.25,3.77-5.64,3.77-1.5,0-2.25-.81-2.25-2.43.06-.46.1-.9.13-1.3s.04-.81.04-1.21c0-.69-.25-1.08-.74-1.17s-1.08.13-1.78.65c-5.78,4.05-9.75,6.9-11.88,8.54-2.14,1.65-3.83,3.31-5.07,4.99s-1.87,3.44-1.87,5.29c0,3.41,1.1,6.19,3.3,8.33s5.06,3.21,8.59,3.21,8.02-1.4,13.14-4.21c5.12-2.8,11.15-6.9,18.09-12.27h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M844.13,130.65v5.81c-6.48,7.58-11.91,13.32-16.31,17.22s-8.07,5.86-11.02,5.86-5.39-.84-7.68-2.52c-2.29-1.68-4.34-3.99-6.16-6.94-1.82-2.95-3.98-7.05-6.46-12.32-2.95,3.64-5.61,7.04-7.98,10.19-2.37,3.15-4.02,5.25-4.94,6.29-.93,1.04-1.77,1.56-2.52,1.56-1.56,0-2.69-1-3.38-2.99-.69-2-1.04-4.9-1.04-8.72,0-5.21.62-10.22,1.87-15.05,1.24-4.83,3.04-9.53,5.38-14.1s5.35-9.5,9.02-14.79c3.67-5.29,7.79-10.83,12.36-16.61,6.3-7.98,11.74-14.5,16.31-19.56,4.57-5.06,8.54-8.88,11.93-11.45,3.38-2.57,6.2-3.86,8.46-3.86,2.78,0,4.16,1.24,4.16,3.73,0,2.14-5.12,9.85-15.35,23.12-10.24,13.27-25.16,31.39-44.76,54.35v7.46c13.13-14.05,23.69-24.49,31.71-31.31,8.01-6.82,14.21-10.24,18.61-10.24,1.79,0,3.18,1.06,4.16,3.17s1.47,4.55,1.47,7.33c0,5.67-2.43,10.92-7.29,15.74-4.86,4.83-12.32,10.37-22.38,16.61,1.74,2.6,3.27,4.5,4.6,5.68,1.33,1.19,3.01,1.78,5.03,1.78,1.79,0,3.73-.61,5.81-1.82s4.21-2.75,6.38-4.6,5.51-4.86,10.02-9.02h-.01ZM809.86,135.07c2.2-1.45,4.93-3.69,8.2-6.72,3.27-3.04,6.06-6.19,8.37-9.46s3.47-6,3.47-8.2c0-.92-.41-1.39-1.21-1.39-2.2,0-5.97,2.11-11.32,6.33-5.35,4.22-10.57,9.63-15.66,16.22,2.2,0,4.92,1.07,8.15,3.21h0ZM951.78,140.71l2.86,2.17c-.75,1.62-1.47,3.04-2.17,4.25-.69,1.21-1.53,2.69-2.52,4.42-.98,1.73-1.73,3.04-2.25,3.9-4.34,7.58-8.41,11.36-12.23,11.36-1.62,0-3.01-.64-4.16-1.91-1.16-1.27-1.73-3.01-1.73-5.2,0-3.12,1.11-7.4,3.34-12.84,2.23-5.43,5.67-12.13,10.32-20.08s10.51-16.96,17.57-27.02c7.05-10.06,15.01-20.67,23.85-31.84-5.09-.75-11.13-1.13-18.13-1.13-8.04,0-16.99.9-26.85,2.69s-18.45,3.86-25.76,6.2c-7.32,2.34-10.97,4.06-10.97,5.16,0,.41.14.68.43.82.29.15.77.26,1.43.35s1.52.19,2.56.3c6.77.93,10.15,1.97,10.15,3.12,0,.58-1.47.85-4.42.82s-6.51-.04-10.67-.04c-3.3,0-5.68-.13-7.16-.39s-2.46-.75-2.95-1.47-.74-1.84-.74-3.34c0-.98.29-3.12.87-6.42,1.1-6.13,2.79-11.04,5.07-14.75,2.28-3.7,5.78-6.72,10.5-9.06,4.71-2.34,11.2-4.21,19.47-5.59,13.88-2.37,25.36-3.56,34.44-3.56,6.71,0,12,.27,15.88.82,3.87.55,6.72,1.34,8.54,2.39,1.82,1.04,2.98,2.07,3.47,3.08s1.14,2.76,1.95,5.25l2.69,7.98c.17.52.32.94.43,1.26.12.32.22.65.3,1,.09.35.13.67.13.95,0,2.26-.51,4.28-1.52,6.07s-2.86,4.48-5.55,8.07-4.67,6.39-5.94,8.41c-14.92,24.23-25.1,42.16-30.53,53.78v.02ZM991.94,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM1033.49,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1111.3,130.82v5.64c-6.02,3.82-10.76,5.72-14.23,5.72-1.91,0-3.93-.32-6.07-.95-5.2,6.59-9.67,11.42-13.4,14.49s-7.47,4.6-11.23,4.6c-4.34,0-7.68-2.29-10.02-6.85-2.34-4.57-3.51-10.24-3.51-17,0-9.2,2.78-19.21,8.33-30.06,5.56-10.85,12.29-21.07,20.08-30.45,7.84-9.46,15.43-17.28,22.77-23.46,7.34-6.19,12.32-9.28,14.92-9.28s3.73,1.71,3.73,5.12c0,15.15-19.43,41.58-58.29,79.29-.12,1.04-.17,3.09-.17,6.16,0,7.98,2.14,11.97,6.42,11.97,1.68,0,3.37-.68,5.07-2.04,1.71-1.36,4.32-3.95,7.85-7.76-1.39-3.12-2.08-5.44-2.08-6.94,0-3.18,1.3-6.62,3.9-10.32s5.57-6.9,8.89-9.59c3.33-2.69,5.74-4.03,7.24-4.03,2.37,0,3.56,1.71,3.56,5.12,0,2.6-.68,5.72-2.04,9.37-1.36,3.64-3.34,7.81-5.94,12.49.98.81,1.76,1.4,2.34,1.78s1.45.56,2.6.56c2.66,0,5.75-1.18,9.28-3.56v-.02ZM1067.24,117.81c3.01-2.6,6.03-5.68,9.06-9.24s7.47-9.01,13.32-16.35c5.61-7.05,10.02-12.94,13.23-17.65s5.62-8.63,7.24-11.75c1.62-3.12,2.43-5.26,2.43-6.42,0-.87-.23-1.3-.69-1.3-1.27,0-3.92,2.1-7.94,6.29-4.02,4.19-8.6,9.93-13.75,17.22-7.11,10.06-12.26,17.64-15.44,22.73-3.18,5.09-5.67,10.58-7.46,16.48h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1110.96,133.08v-2.08c14.92-15.73,25.18-26.75,30.79-33.05,1.27-7.11,4.34-10.67,9.19-10.67,1.21,0,2.52.35,3.9,1.04l.52,1.65c-.23.69-.35,1.68-.35,2.95,0,1.1.42,3.14,1.26,6.12s1.49,5.48,1.95,7.5.69,4.31.69,6.85c0,3.82-.87,7.48-2.6,10.97-1.73,3.5-4.25,6.85-7.55,10.06-3.3,3.21-7.55,6.49-12.75,9.85,2.08.35,3.73.52,4.94.52,2.37,0,4.93-.59,7.68-1.78,2.75-1.18,5.55-2.78,8.41-4.77,2.86-2,6.2-4.58,10.02-7.76v5.81c-7.4,7.23-14.02,12.71-19.86,16.44s-10.87,5.59-15.09,5.59c-5.44,0-10.47-2.31-15.09-6.94-2.72-2.78-4.41-5.43-5.08-7.98-.67-2.54-1-5.99-1-10.32h.02ZM1143.31,119.8l-1.56-12.66c-3.59,4.05-11.25,11.83-22.99,23.33,3.47.75,5.84,1.76,7.11,3.04,1.27,1.27,3.06,3.73,5.38,7.37,3.93-1.62,6.95-3.83,9.07-6.64,2.11-2.8,3.17-6.64,3.17-11.49,0-.58-.01-1.1-.04-1.56s-.07-.92-.13-1.39h0Z" style="fill:#306fff; stroke-width:0px;"/><g style="isolation:isolate;"><text transform="translate(943.45 229.96)" style="fill:#00d797; font-family:ArialMT, Arial; font-size:24px; isolation:isolate;"><tspan x="0" y="0">version: ${t}</tspan></text></g></svg>`,a="data:image/svg+xml;base64,"+pr(o),h="font-size: 1px; padding: "+Math.floor(100/4)+"px "+Math.floor(580/2)+"px; line-height: "+Math.floor(100/2)+"px;";window.console.log("%c+",h+`background-image: url(${a});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`)},$t=()=>{const{attrs:t,props:e}=r.getCurrentInstance(),{pageShown:n,getTab:o,markDeletableCache:s,removeComponent:i,getComponent:a,addPageScroller:h}=me(),c=Y.useRoute(),l=Y.useRouter(),b=se();let d="",f="";d=t.tId||e.tId;const y=t.pId||e.pId;return f=c.query.__tab,{forward:w=>{const v=J({__tab:f},w.query);b.emit("FORWARD"),l.push({path:w.path,query:v})},backward:(w,v)=>{const T=o(d);if(!T)return;const k=T.pages;let E=0;if(typeof w=="number")E=Math.abs(w);else{let _=1,z=!1;const V=k.list(),X=je(w);v=J(X.query,v);for(let B=k.size()-2;B>=0;B--){if(V[B].path===X.path){z=!0;break}_+=1}z&&(E=_)}if(E===0||k.size()<=E)return;for(let _=0;_<E;_++){const z=k.pop();s(z.id)}const u=k==null?void 0:k.peek(),x=a(u.id);if(x!=null){const _=x.components.DynamicComponent;_.props=J(v,_.props)}b.emit("BACKWARD"),l.push({path:u.path,query:u.query})},addScroller:(...w)=>{h(y,...w)}}},mr=r.defineComponent({__name:"iframe",setup(t){return $t(),()=>{}}}),gr=()=>{const t=se(),{attrs:e}=r.getCurrentInstance();r.onUnmounted(()=>{o()});const n=()=>{t.emit(U.PAGE_LOADING,{tId:e.tId,value:!0})},o=()=>{t.emit(U.PAGE_LOADING,{tId:e.tId,value:!1})};return{openTabLoading:n,closeTabLoading:o}},yr={install(t,e){br("0.1.47"),t.component("VueStackTabs",Nt).use(Sn).use(en().getI18n(e))}};N.IFrame=mr,N.Stack=we,N.StackTab=Nt,N.TabHeaderButton=Ce,N.TabScrollMode=Q,N.default=yr,N.useStackTab=Lt,N.useTabLoading=gr,N.useTabRouter=$t,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ */const jt=["__proto__","prototype","constructor"];function Ht(t){const e=typeof t;return t!==null&&(e==="object"||e==="function")}function Zt(t){return!(Array.isArray(t)?t.length:Object.keys(t).length)}function Xt(t){return!t.some(e=>jt.indexOf(e)!==-1)}function Gt(t){const e=t.split("."),n=[];for(let o=0;o<e.length;o++){let s=e[o];for(;s[s.length-1]==="\\"&&e[o+1]!==void 0;)s=s.slice(0,-1)+".",s+=e[++o];n.push(s)}return Xt(n)?n:[]}function et(t,e){if(!Ht(t))return"";const n=Gt(e);if(n.length===0)return"";let o=Object.assign({},t);for(let s=0;s<n.length;s++){if(typeof o[n[s]]=="string")return o[n[s]];if(o=o[n[s]],o==null){if(s!==n.length-1)return"";break}}return""}function Yt(t,e){if(Array.isArray(e)){const n={},o=[...t.matchAll(/{(.+?)}/g)];return o&&o.forEach((s,i)=>{e[i]&&(n[s[1]]=e[i])}),n}return e}function Kt(t,e){for(const n in e)t=t.replace(`{${n}}`,String(e[n]));return t}function tt(t,e){return Object.keys(e).forEach(n=>{e[n]instanceof Object&&n in t&&(e[n]={...e[n],...tt(t[n],e[n])})}),{...t||{},...e}}const Jt=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",nt=(t=>Jt?Symbol(t):"_vt_"+t)("i18n");function he(){return r.inject(nt)}function Qt(t){const e=Object.assign({locale:"en",fallbackLocale:"en",messages:{}},t),n=r.ref(e.locale),o=r.reactive({});return Object.entries(e.messages).forEach(([s,i])=>{o[s]=i}),{t(s,i){if(!s)return"";const a=typeof i=="string"&&i?i:n.value;let h=et(o[a],s)||et(o[e.fallbackLocale],s);if(i&&typeof i!="string"){const c=Yt(h,i);Zt(c)||(h=Kt(h,c))}return h||s},current:r.readonly(n),options:r.readonly(t||{}),install(s){const i=this;s.config.globalProperties.$t=i.t,s.provide(nt,i)},changeLocale(s){n.value=s},setLocaleMessage(s,i){o[s]=tt(r.toRaw(o[s]||{}),i)},getLocaleMessage(s){return o[s]||{}}}}const en=()=>{const t=Object.assign({"./lang/en.ts":qt,"./lang/zh-CN.ts":Ft});function e(s,i){for(const a in s)if(s[a].default){const h=a.substring(a.lastIndexOf("/")+1,a.lastIndexOf("."));i[h]?i[h]={...s[h],...s[a].default}:i[h]=s[a].default}}const n=()=>{const s={};return e(t,s),s};return{getI18n:s=>{const i={...n()};if(s)for(const a of s)i[a.locale]=a.messages;return Qt({locale:"zh-CN",fallbackLocale:"en",messages:i})}}},rt=({wrap:t,left:e=0,top:n=0,smooth:o=!0})=>{t&&(t.scrollTo?t.scrollTo({left:e,top:n,behavior:o?"smooth":"auto"}):(t.scrollLeft=e,t.scrollTop=n))};function tn({el:t,wrap:e,block:n="start",inline:o="nearest"}){if(!(!t||!e))if(t.scrollIntoView)t.scrollIntoView({behavior:"smooth",block:n,inline:o});else{const{offsetLeft:s,offsetTop:i}=t;let a,h;n==="center"?h=i+(t.clientHeight-e.clientHeight)/2:h=i,o==="center"?a=s+(t.clientWidth-e.clientWidth)/2:a=s,rt({wrap:e,left:a,top:h})}}const ze=(t=".stack-tab__container *")=>{const e=Array.from(document.querySelectorAll(t)).map(n=>+window.getComputedStyle(n).zIndex||0);return e.length?Math.max(...e.filter(n=>n<9e4))+1:1};var Q=(t=>(t.WHEEL="wheel",t.BUTTON="button",t.BOTH="both",t))(Q||{});class we{constructor(e){Ut(this,"items");if(this.items=new Map,e)for(const n of e)this.push(n)}push(e){this.items.set(this.items.size,e)}pop(){if(this.isEmpty())return;const e=this.items.get(this.items.size-1);return this.items.delete(this.items.size-1),e}peek(){if(!this.isEmpty())return this.items.get(this.items.size-1)}isEmpty(){return this.items.size===0}size(){return this.items.size}clear(){this.items.clear()}list(){return Array.from(this.items.values())}toString(){if(this.isEmpty())return"";let e="";return this.items.forEach((n,o)=>{e=`${e}${o===0?"":", "}${n}`}),e}toJSON(){return Array.from(this.items.values())}}function ve(t){var e=new Error(t);return e.source="ulid",e}var Le="0123456789ABCDEFGHJKMNPQRSTVWXYZ",pe=Le.length,ot=Math.pow(2,48)-1,nn=10,rn=16;function on(t){var e=Math.floor(t()*pe);return e===pe&&(e=pe-1),Le.charAt(e)}function sn(t,e){if(isNaN(t))throw new Error(t+" must be a number");if(t>ot)throw ve("cannot encode time greater than "+ot);if(t<0)throw ve("time must be positive");if(Number.isInteger(t)===!1)throw ve("time must be an integer");for(var n=void 0,o="";e>0;e--)n=t%pe,o=Le.charAt(n)+o,t=(t-n)/pe;return o}function an(t,e){for(var n="";t>0;t--)n=on(e)+n;return n}function cn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=arguments[1];e||(e=typeof window<"u"?window:null);var n=e&&(e.crypto||e.msCrypto);if(n)return function(){var s=new Uint8Array(1);return n.getRandomValues(s),s[0]/255};try{var o=require("crypto");return function(){return o.randomBytes(1).readUInt8()/255}}catch{}if(t){try{}catch{}return function(){return Math.random()}}throw ve("secure crypto unusable, insecure Math.random not allowed")}function ln(t){return t||(t=cn()),function(n){return isNaN(n)&&(n=Date.now()),sn(n,nn)+an(rn,t)}}var Ne=ln(),Ve={exports:{}};Ve.exports,function(t){var e=function(){var n=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function a(c,l){if(!i[c]){i[c]={};for(var b=0;b<c.length;b++)i[c][c.charAt(b)]=b}return i[c][l]}var h={compressToBase64:function(c){if(c==null)return"";var l=h._compress(c,6,function(b){return o.charAt(b)});switch(l.length%4){default:case 0:return l;case 1:return l+"===";case 2:return l+"==";case 3:return l+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:h._decompress(c.length,32,function(l){return a(o,c.charAt(l))})},compressToUTF16:function(c){return c==null?"":h._compress(c,15,function(l){return n(l+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:h._decompress(c.length,16384,function(l){return c.charCodeAt(l)-32})},compressToUint8Array:function(c){for(var l=h.compress(c),b=new Uint8Array(l.length*2),d=0,f=l.length;d<f;d++){var y=l.charCodeAt(d);b[d*2]=y>>>8,b[d*2+1]=y%256}return b},decompressFromUint8Array:function(c){if(c==null)return h.decompress(c);for(var l=new Array(c.length/2),b=0,d=l.length;b<d;b++)l[b]=c[b*2]*256+c[b*2+1];var f=[];return l.forEach(function(y){f.push(n(y))}),h.decompress(f.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":h._compress(c,6,function(l){return s.charAt(l)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),h._decompress(c.length,32,function(l){return a(s,c.charAt(l))}))},compress:function(c){return h._compress(c,16,function(l){return n(l)})},_compress:function(c,l,b){if(c==null)return"";var d,f,y={},S={},O="",A="",w="",v=2,T=3,k=2,E=[],u=0,x=0,_;for(_=0;_<c.length;_+=1)if(O=c.charAt(_),Object.prototype.hasOwnProperty.call(y,O)||(y[O]=T++,S[O]=!0),A=w+O,Object.prototype.hasOwnProperty.call(y,A))w=A;else{if(Object.prototype.hasOwnProperty.call(S,w)){if(w.charCodeAt(0)<256){for(d=0;d<k;d++)u=u<<1,x==l-1?(x=0,E.push(b(u)),u=0):x++;for(f=w.charCodeAt(0),d=0;d<8;d++)u=u<<1|f&1,x==l-1?(x=0,E.push(b(u)),u=0):x++,f=f>>1}else{for(f=1,d=0;d<k;d++)u=u<<1|f,x==l-1?(x=0,E.push(b(u)),u=0):x++,f=0;for(f=w.charCodeAt(0),d=0;d<16;d++)u=u<<1|f&1,x==l-1?(x=0,E.push(b(u)),u=0):x++,f=f>>1}v--,v==0&&(v=Math.pow(2,k),k++),delete S[w]}else for(f=y[w],d=0;d<k;d++)u=u<<1|f&1,x==l-1?(x=0,E.push(b(u)),u=0):x++,f=f>>1;v--,v==0&&(v=Math.pow(2,k),k++),y[A]=T++,w=String(O)}if(w!==""){if(Object.prototype.hasOwnProperty.call(S,w)){if(w.charCodeAt(0)<256){for(d=0;d<k;d++)u=u<<1,x==l-1?(x=0,E.push(b(u)),u=0):x++;for(f=w.charCodeAt(0),d=0;d<8;d++)u=u<<1|f&1,x==l-1?(x=0,E.push(b(u)),u=0):x++,f=f>>1}else{for(f=1,d=0;d<k;d++)u=u<<1|f,x==l-1?(x=0,E.push(b(u)),u=0):x++,f=0;for(f=w.charCodeAt(0),d=0;d<16;d++)u=u<<1|f&1,x==l-1?(x=0,E.push(b(u)),u=0):x++,f=f>>1}v--,v==0&&(v=Math.pow(2,k),k++),delete S[w]}else for(f=y[w],d=0;d<k;d++)u=u<<1|f&1,x==l-1?(x=0,E.push(b(u)),u=0):x++,f=f>>1;v--,v==0&&(v=Math.pow(2,k),k++)}for(f=2,d=0;d<k;d++)u=u<<1|f&1,x==l-1?(x=0,E.push(b(u)),u=0):x++,f=f>>1;for(;;)if(u=u<<1,x==l-1){E.push(b(u));break}else x++;return E.join("")},decompress:function(c){return c==null?"":c==""?null:h._decompress(c.length,32768,function(l){return c.charCodeAt(l)})},_decompress:function(c,l,b){var d=[],f=4,y=4,S=3,O="",A=[],w,v,T,k,E,u,x,_={val:b(0),position:l,index:1};for(w=0;w<3;w+=1)d[w]=w;for(T=0,E=Math.pow(2,2),u=1;u!=E;)k=_.val&_.position,_.position>>=1,_.position==0&&(_.position=l,_.val=b(_.index++)),T|=(k>0?1:0)*u,u<<=1;switch(T){case 0:for(T=0,E=Math.pow(2,8),u=1;u!=E;)k=_.val&_.position,_.position>>=1,_.position==0&&(_.position=l,_.val=b(_.index++)),T|=(k>0?1:0)*u,u<<=1;x=n(T);break;case 1:for(T=0,E=Math.pow(2,16),u=1;u!=E;)k=_.val&_.position,_.position>>=1,_.position==0&&(_.position=l,_.val=b(_.index++)),T|=(k>0?1:0)*u,u<<=1;x=n(T);break;case 2:return""}for(d[3]=x,v=x,A.push(x);;){if(_.index>c)return"";for(T=0,E=Math.pow(2,S),u=1;u!=E;)k=_.val&_.position,_.position>>=1,_.position==0&&(_.position=l,_.val=b(_.index++)),T|=(k>0?1:0)*u,u<<=1;switch(x=T){case 0:for(T=0,E=Math.pow(2,8),u=1;u!=E;)k=_.val&_.position,_.position>>=1,_.position==0&&(_.position=l,_.val=b(_.index++)),T|=(k>0?1:0)*u,u<<=1;d[y++]=n(T),x=y-1,f--;break;case 1:for(T=0,E=Math.pow(2,16),u=1;u!=E;)k=_.val&_.position,_.position>>=1,_.position==0&&(_.position=l,_.val=b(_.index++)),T|=(k>0?1:0)*u,u<<=1;d[y++]=n(T),x=y-1,f--;break;case 2:return A.join("")}if(f==0&&(f=Math.pow(2,S),S++),d[x])O=d[x];else if(x===y)O=v+v.charAt(0);else return null;A.push(O),d[y++]=v+O.charAt(0),f--,v=O,f==0&&(f=Math.pow(2,S),S++)}}};return h}();t!=null?t.exports=e:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return e})}(Ve);var st=Ve.exports;const fn=new TextEncoder,un=new TextDecoder("utf-8",{ignoreBOM:!0}),it={encode:t=>fn.encode(t),decode:t=>un.decode(t)},at=(()=>{const e=[..."0123456789abcdef"],n=new Array(256);for(let o=0;o<256;o++)n[o]=`${e[o>>>4&15]}${e[o&15]}`;return n})(),dn=(()=>{const t={};for(let e=0;e<256;e++){const n=at[e],o=n[0],s=o.toUpperCase(),i=n[1],a=i.toUpperCase();t[n]=e,t[`${o}${a}`]=e,t[`${s}${i}`]=e,t[`${s}${a}`]=e}return t})(),Re={encode:t=>{let e="";for(let n=0,o=t.length;n<o;n++)e+=at[t[n]];return e},encodeStr:t=>Re.encode(it.encode(t)),decode:t=>{const e=t.length/2,n=new Uint8Array(e);for(let o=0;o<e;o++)n[o]=dn[t.slice(o*2,o*2+2)];return n},decodeStr:t=>it.decode(Re.decode(t)),is:t=>!(t.length%2||!/^[a-fA-F0-9]*$/.test(t))};function be(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`positive integer expected, not ${t}`)}function hn(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function De(t,...e){if(!hn(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}function $e(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function ct(t,e){De(t);const n=e.outputLen;if(t.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const _e=BigInt(2**32-1),lt=BigInt(32);function ft(t,e=!1){return e?{h:Number(t&_e),l:Number(t>>lt&_e)}:{h:Number(t>>lt&_e)|0,l:Number(t&_e)|0}}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const pn=t=>new Uint8Array(t.buffer,t.byteOffset,t.byteLength),xe=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),Te=(t,e)=>t<<32-e|t>>>e,$=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,ut=t=>t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255,bn=$?t=>t:t=>ut(t);function P(t){for(let e=0;e<t.length;e++)t[e]=ut(t[e])}function mn(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Pe(t){return typeof t=="string"&&(t=mn(t)),De(t),t}class gn{clone(){return this._cloneInto()}}function yn(t){const e=(o,s)=>t(s).update(Pe(o)).digest(),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=o=>t(o),e}class kn extends gn{constructor(e,n,o={},s,i,a){if(super(),this.blockLen=e,this.outputLen=n,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,be(e),be(n),be(s),n<0||n>s)throw new Error("outputLen bigger than keyLen");if(o.key!==void 0&&(o.key.length<1||o.key.length>s))throw new Error(`key must be up 1..${s} byte long or undefined`);if(o.salt!==void 0&&o.salt.length!==i)throw new Error(`salt must be ${i} byte long or undefined`);if(o.personalization!==void 0&&o.personalization.length!==a)throw new Error(`personalization must be ${a} byte long or undefined`);this.buffer32=xe(this.buffer=new Uint8Array(e))}update(e){$e(this);const{blockLen:n,buffer:o,buffer32:s}=this;e=Pe(e);const i=e.length,a=e.byteOffset,h=e.buffer;for(let c=0;c<i;){this.pos===n&&($||P(s),this.compress(s,0,!1),$||P(s),this.pos=0);const l=Math.min(n-this.pos,i-c),b=a+c;if(l===n&&!(b%4)&&c+l<i){const d=new Uint32Array(h,b,Math.floor((i-c)/4));$||P(d);for(let f=0;c+n<i;f+=s.length,c+=n)this.length+=n,this.compress(d,f,!1);$||P(d);continue}o.set(e.subarray(c,c+l),this.pos),this.pos+=l,this.length+=l,c+=l}return this}digestInto(e){$e(this),ct(e,this);const{pos:n,buffer32:o}=this;this.finished=!0,this.buffer.subarray(n).fill(0),$||P(o),this.compress(o,0,!0),$||P(o);const s=xe(e);this.get().forEach((i,a)=>s[a]=bn(i))}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const o=e.slice(0,n);return this.destroy(),o}_cloneInto(e){const{buffer:n,length:o,finished:s,destroyed:i,outputLen:a,pos:h}=this;return e||(e=new this.constructor({dkLen:a})),e.set(...this.get()),e.length=o,e.finished=s,e.destroyed=i,e.outputLen=a,e.buffer.set(n),e.pos=h,e}}const K=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function ee(t,e,n,o,s){return t=t+e+s|0,o=Te(o^t,16),n=n+o|0,e=Te(e^n,12),{a:t,b:e,c:n,d:o}}function te(t,e,n,o,s){return t=t+e+s|0,o=Te(o^t,8),n=n+o|0,e=Te(e^n,7),{a:t,b:e,c:n,d:o}}function dt(t,e,n,o,s,i,a,h,c,l,b,d,f,y,S,O,A,w,v,T){let k=0;for(let E=0;E<o;E++)({a:s,b:c,c:f,d:A}=ee(s,c,f,A,n[e+t[k++]])),{a:s,b:c,c:f,d:A}=te(s,c,f,A,n[e+t[k++]]),{a:i,b:l,c:y,d:w}=ee(i,l,y,w,n[e+t[k++]]),{a:i,b:l,c:y,d:w}=te(i,l,y,w,n[e+t[k++]]),{a,b,c:S,d:v}=ee(a,b,S,v,n[e+t[k++]]),{a,b,c:S,d:v}=te(a,b,S,v,n[e+t[k++]]),{a:h,b:d,c:O,d:T}=ee(h,d,O,T,n[e+t[k++]]),{a:h,b:d,c:O,d:T}=te(h,d,O,T,n[e+t[k++]]),{a:s,b:l,c:S,d:T}=ee(s,l,S,T,n[e+t[k++]]),{a:s,b:l,c:S,d:T}=te(s,l,S,T,n[e+t[k++]]),{a:i,b,c:O,d:A}=ee(i,b,O,A,n[e+t[k++]]),{a:i,b,c:O,d:A}=te(i,b,O,A,n[e+t[k++]]),{a,b:d,c:f,d:w}=ee(a,d,f,w,n[e+t[k++]]),{a,b:d,c:f,d:w}=te(a,d,f,w,n[e+t[k++]]),{a:h,b:c,c:y,d:v}=ee(h,c,y,v,n[e+t[k++]]),{a:h,b:c,c:y,d:v}=te(h,c,y,v,n[e+t[k++]]);return{v0:s,v1:i,v2:a,v3:h,v4:c,v5:l,v6:b,v7:d,v8:f,v9:y,v10:S,v11:O,v12:A,v13:w,v14:v,v15:T}}const ht=(()=>{const t=Array.from({length:16},(o,s)=>s),e=o=>[2,6,3,10,7,0,4,13,1,11,12,5,9,14,15,8].map(s=>o[s]),n=[];for(let o=0,s=t;o<7;o++,s=e(s))n.push(...s);return Uint8Array.from(n)})();class We extends kn{constructor(e={},n=0){if(super(64,e.dkLen===void 0?32:e.dkLen,{},Number.MAX_SAFE_INTEGER,0,0),this.flags=0,this.chunkPos=0,this.chunksDone=0,this.stack=[],this.posOut=0,this.bufferOut32=new Uint32Array(16),this.chunkOut=0,this.enableXOF=!0,this.outputLen=e.dkLen===void 0?32:e.dkLen,be(this.outputLen),e.key!==void 0&&e.context!==void 0)throw new Error("Blake3: only key or context can be specified at same time");if(e.key!==void 0){const o=Pe(e.key).slice();if(o.length!==32)throw new Error("Blake3: key should be 32 byte");this.IV=xe(o),$||P(this.IV),this.flags=n|16}else if(e.context!==void 0){const o=new We({dkLen:32},32).update(e.context).digest();this.IV=xe(o),$||P(this.IV),this.flags=n|64}else this.IV=K.slice(),this.flags=n;this.state=this.IV.slice(),this.bufferOut=pn(this.bufferOut32)}get(){return[]}set(){}b2Compress(e,n,o,s=0){const{state:i,pos:a}=this,{h,l:c}=ft(BigInt(e),!0),{v0:l,v1:b,v2:d,v3:f,v4:y,v5:S,v6:O,v7:A,v8:w,v9:v,v10:T,v11:k,v12:E,v13:u,v14:x,v15:_}=dt(ht,s,o,7,i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],K[0],K[1],K[2],K[3],h,c,a,n);i[0]=l^w,i[1]=b^v,i[2]=d^T,i[3]=f^k,i[4]=y^E,i[5]=S^u,i[6]=O^x,i[7]=A^_}compress(e,n=0,o=!1){let s=this.flags;if(this.chunkPos||(s|=1),(this.chunkPos===15||o)&&(s|=2),o||(this.pos=this.blockLen),this.b2Compress(this.chunksDone,s,e,n),this.chunkPos+=1,this.chunkPos===16||o){let i=this.state;this.state=this.IV.slice();for(let a,h=this.chunksDone+1;(o||!(h&1))&&(a=this.stack.pop());h>>=1)this.buffer32.set(a,0),this.buffer32.set(i,8),this.pos=this.blockLen,this.b2Compress(0,this.flags|4,this.buffer32,0),i=this.state,this.state=this.IV.slice();this.chunksDone++,this.chunkPos=0,this.stack.push(i)}this.pos=0}_cloneInto(e){e=super._cloneInto(e);const{IV:n,flags:o,state:s,chunkPos:i,posOut:a,chunkOut:h,stack:c,chunksDone:l}=this;return e.state.set(s.slice()),e.stack=c.map(b=>Uint32Array.from(b)),e.IV.set(n),e.flags=o,e.chunkPos=i,e.chunksDone=l,e.posOut=a,e.chunkOut=h,e.enableXOF=this.enableXOF,e.bufferOut32.set(this.bufferOut32),e}destroy(){this.destroyed=!0,this.state.fill(0),this.buffer32.fill(0),this.IV.fill(0),this.bufferOut32.fill(0);for(let e of this.stack)e.fill(0)}b2CompressOut(){const{state:e,pos:n,flags:o,buffer32:s,bufferOut32:i}=this,{h:a,l:h}=ft(BigInt(this.chunkOut++));$||P(s);const{v0:c,v1:l,v2:b,v3:d,v4:f,v5:y,v6:S,v7:O,v8:A,v9:w,v10:v,v11:T,v12:k,v13:E,v14:u,v15:x}=dt(ht,0,s,7,e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],K[0],K[1],K[2],K[3],h,a,n,o);i[0]=c^A,i[1]=l^w,i[2]=b^v,i[3]=d^T,i[4]=f^k,i[5]=y^E,i[6]=S^u,i[7]=O^x,i[8]=e[0]^A,i[9]=e[1]^w,i[10]=e[2]^v,i[11]=e[3]^T,i[12]=e[4]^k,i[13]=e[5]^E,i[14]=e[6]^u,i[15]=e[7]^x,$||(P(s),P(i)),this.posOut=0}finish(){if(this.finished)return;this.finished=!0,this.buffer.fill(0,this.pos);let e=this.flags|8;this.stack.length?(e|=4,$||P(this.buffer32),this.compress(this.buffer32,0,!0),$||P(this.buffer32),this.chunksDone=0,this.pos=this.blockLen):e|=(this.chunkPos?0:1)|2,this.flags=e,this.b2CompressOut()}writeInto(e){$e(this,!1),De(e),this.finish();const{blockLen:n,bufferOut:o}=this;for(let s=0,i=e.length;s<i;){this.posOut>=n&&this.b2CompressOut();const a=Math.min(n-this.posOut,i-s);e.set(o.subarray(this.posOut,this.posOut+a),s),this.posOut+=a,s+=a}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible after digest call");return this.writeInto(e)}xof(e){return be(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(ct(e,this),this.finished)throw new Error("digest() was already called");return this.enableXOF=!1,this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}}const wn=yn(t=>new We(t)),Ue=t=>{const e=`${t.id}|${t.title}|${t.iframe?"Y":"N"}|${t.closable?"Y":"N"}|${t.refreshable?"Y":"N"}`;return st.compressToEncodedURIComponent(e)},vn=t=>{const n=st.decompressFromEncodedURIComponent(t).split("|");return{id:n[0],title:n[1],iframe:n[2]==="Y",closable:n[3]==="Y",refreshable:n[4]==="Y"}},pt=(t,e,n)=>{const o=[];for(const i in n)i.startsWith("__")||o.push({key:i,value:n[i]});o.sort((i,a)=>{let h=0;return i.key>a.key?h=1:i.key<a.key&&(h=-1),h});const s=wn(`${t}|${e}|${JSON.stringify(o)}`);return Re.encode(s)};function qe(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function Fe(t,e,n=".",o){if(!qe(e))return Fe(t,{},n,o);const s=Object.assign({},e);for(const i in t){if(i==="__proto__"||i==="constructor")continue;const a=t[i];a!=null&&(o&&o(s,i,a,n)||(Array.isArray(a)&&Array.isArray(s[i])?s[i]=[...a,...s[i]]:qe(a)&&qe(s[i])?s[i]=Fe(a,s[i],(n?`${n}.`:"")+i.toString(),o):s[i]=a))}return s}function _n(t){return(...e)=>e.reduce((n,o)=>Fe(n,o,"",t),{})}const J=_n(),je=t=>{const e=t.split("?");if(e.length<=1)return{path:e[0],query:{}};{const n=e[1].split("&"),o={};for(const s of n){const i=s.split("=");i[1]!==null&&i[1]!==void 0&&i[1]!==""&&(o[i[0]]=i[1])}return{path:e[0],query:o}}};function xn(t){return{all:t=t||new Map,on:function(e,n){var o=t.get(e);o?o.push(n):t.set(e,[n])},off:function(e,n){var o=t.get(e);o&&(n?o.splice(o.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var o=t.get(e);o&&o.slice().map(function(s){s(n)}),(o=t.get("*"))&&o.slice().map(function(s){s(e,n)})}}}const Tn=xn(),Sn={install(t){t.provide("tabEmitter",Tn)}},se=()=>r.inject("tabEmitter");var W=(t=>(t.PAGE_LOADING="PAGE_LOADING",t.TAB_ACTIVE="TAB_ACTIVE",t))(W||{});const En=r.defineComponent({__name:"PageLoading",props:{tId:{}},setup(t){const e=t,n=se(),o=r.ref(!1);return n.on(W.PAGE_LOADING,({tId:s,value:i})=>{s===e.tId&&(o.value=i)}),(s,i)=>o.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:"stack-tab-loading-mask",style:r.normalizeStyle({zIndex:r.unref(ze)(".cache-page-wrapper *")})},i[0]||(i[0]=[r.createElementVNode("div",{class:"stack-tab-loading--spin turn"},null,-1)]),4)):r.createCommentVNode("",!0)}}),I=r.ref([]),He=[],D=r.ref([]),ne=new Map,ie=new Set,U=new Set,ae=r.ref(!0),Ze="stacktab-active-tab",ce=new Map;let bt=!1,Se=0,mt=!1,Xe="";const me=()=>{const t=Y.useRouter(),e=se(),{t:n}=he(),o=()=>I.value.length,s=m=>{for(const C of m){const p=J(C,{id:Ne(),refreshable:!0,closable:!0,iframe:!1}),L=Ue(p),F=je(p.path),R=J(p,{closable:!0,refreshable:!0,iframe:!1}),Me=pt(p.id,F.path,F.query),j={id:Me,tabId:p.id,path:F.path,query:J(F.query,{__tab:L})},de=new we;de.push(j);const G={id:p.id,title:R.title,closable:R.closable,refreshable:R.refreshable,iframe:R.iframe,active:!1,pages:de};D.value.push(Me),He.push(G),I.value.push({...G})}const g=window.sessionStorage.getItem(Ze);if(g!=null){const C=JSON.parse(g,(L,F)=>L==="pages"?new we(F):F);let p=!1;for(const L of I.value)if(L.id===C.id){p=!0;break}p||I.value.push(C)}bt=!0},i=m=>{for(const g of I.value)if(g.id===m)return!0;return!1},a=()=>Se<=0||Se>0&&Se>I.value.length,h=m=>new Promise(g=>{I.value.push(m),g(!0)}),c=m=>{for(const g of I.value)if(g.id===m)return g;return null},l=(m,g)=>{let C,p;if(m.query.__tab?p=vn(m.query.__tab):(p={id:Ne(),title:n("VueStackTab.undefined"),closable:!0,refreshable:!0,iframe:!1},m.query.__tab=Ue(p)),U.has(p.id)||!g)return;const L=m.matched[m.matched.length-1].path,F=m.path.endsWith("/")?m.path.substring(0,m.path.length-1):m.path,R=pt(p.id,L===F?F:m.path,m.query.valueOf());if(ie.has(R))return ne.get(R);const Me=m.query.__src;let j=null;for(const G of r.unref(I))G.active=!1,G.id===p.id&&(j=G);const de={id:R,tabId:p.id,path:m.path,query:m.query};if(j===null){const G=new we;G.push(de),j={id:p.id,title:p.title,closable:p.closable,refreshable:p.refreshable,iframe:p.iframe,url:decodeURIComponent(Me),active:!0,pages:G},h(j).then(()=>{e.emit(W.TAB_ACTIVE,{id:p.id,isRoute:!1})})}else j.active=!0,(j.pages.isEmpty()||j.pages.peek().id!==de.id)&&j.pages.push(de);return q(j),ne.has(R)?C=ne.get(R):(C=r.defineComponent({name:R,components:{DynamicComponent:g},emits:{onLoaded:null},setup(G,Wt){return r.onMounted(()=>{Wt.emit("onLoaded"),y(R,".cache-page-wrapper")}),r.onDeactivated(()=>{d(R)}),r.onActivated(()=>{Wt.emit("onLoaded"),b(R),V(),U.clear(),g.props=null}),r.onUnmounted(()=>{f(R)}),()=>r.createVNode("div",{class:"cache-page-wrapper",id:"W-"+p.id,style:[mt?"overflow:auto":"overflow:hidden"]},[r.createVNode(r.resolveComponent("dynamic-component"),{tId:p.id,pId:R},null),r.createVNode(En,{tId:p.id},null)])}}),ne.set(R,C)),B(R),C},b=m=>{const g=ce.get(m);if(g){for(const C of g.keys())if(document.querySelector(C)){const p=g.get(C);document.querySelector(C).scrollTop=p.top,document.querySelector(C).scrollLeft=p.left}}},d=m=>{var C,p;const g=ce.get(m);if(g)for(const L of g.keys()){const F={top:((C=document.querySelector(L))==null?void 0:C.scrollTop)??0,left:((p=document.querySelector(L))==null?void 0:p.scrollLeft)??0};g.set(L,F)}},f=m=>{const g=ce.get(m);g&&(g.clear(),ce.delete(m))},y=(m,...g)=>{ce.has(m)||ce.set(m,new Map);const C=ce.get(m);for(const p of g)C.set(p,{top:0,left:0})},S=m=>{const g=c(m.id);for(const C of g.pages.list())z(C.id);V(),g.pages.clear()},O=m=>{let g="";const C=c(m);for(let p=I.value.length-1;p>=0;p--)if(m===r.unref(I)[p].id){if(!r.unref(I)[p].closable)return m;for(const L of r.unref(I)[p].pages.list())z(L.id),U.add(r.unref(I)[p].id);r.unref(I)[p].pages.clear(),I.value.length>1&&r.unref(I)[p].active&&(p===0?g=r.unref(I)[p+1].id:g=r.unref(I)[p-1].id),r.unref(I).splice(p,1);break}return g!==""&&e.emit(W.TAB_ACTIVE,{id:g}),C!=null&&C.active||(V(),U.clear()),g},A=()=>{const m=r.unref(I);for(let g=m.length-1;g>=0;g--)if(m[g].closable){for(const C of m[g].pages.list())z(C.id),U.add(m[g].id);r.unref(I)[g].pages.clear(),r.unref(I).splice(g,1)}for(const g of m)if(g.active){V(),U.clear();return}e.emit(W.TAB_ACTIVE,{id:m[m.length-1].id})},w=m=>{const g=r.unref(I);let C;for(let p=g.length-1;p>=0;p--)if(g[p].id===m)C=g[p];else if(g[p].closable&&g[p].id!==m){for(const L of g[p].pages.list())z(L.id),U.add(g[p].id);r.unref(I)[p].pages.clear(),r.unref(I).splice(p,1)}C.active?(V(),U.clear()):e.emit(W.TAB_ACTIVE,{id:m})},v=m=>{let g=-1;const C=r.unref(I);for(let p=0;p<C.length;p++)if(C[p].id===m){g=p-1;break}for(let p=g;p>=0;p--)if(C[p].closable){for(const L of C[p].pages.list())z(L.id),U.add(C[p].id);r.unref(I)[p].pages.clear(),r.unref(I).splice(p,1)}for(const p of C)if(p.active){V(),U.clear();return}e.emit(W.TAB_ACTIVE,{id:C[0].id})},T=m=>{const g=r.unref(I);let C=g.length;for(let p=0;p<g.length;p++)if(g[p].id===m){C=p+1;break}for(let p=g.length-1;p>=C;p--)if(g[p].closable){for(const L of g[p].pages.list())z(L.id),U.add(g[p].id);r.unref(I)[p].pages.clear(),r.unref(I).splice(p,1)}for(const p of g)if(p.active){V(),U.clear();return}e.emit(W.TAB_ACTIVE,{id:g[g.length-1].id})},k=m=>{var g;for(const C of r.unref(I))if(C.id===m){const p=(g=C.pages.peek())==null?void 0:g.id;for(let L=D.value.length-1;L>=0;L--)if(D.value[L]===p){D.value.splice(L,1),C.active&&(ae.value=!1,r.nextTick(()=>{ae.value=!0}));break}break}},E=()=>{const m=new Set;I.value.forEach(g=>{m.add(g.pages.peek().id)});for(let g=D.value.length-1;g>=0;g--){const C=D.value[g];m.has(C)&&D.value.splice(g,1)}r.nextTick(()=>{ae.value=!1,r.nextTick(()=>{setTimeout(()=>{ae.value=!0},300)})})},u=(m,g)=>{ne.set(m,g)},x=m=>ne.get(m),_=m=>{ne.delete(m)},z=m=>{ie.add(m)},V=()=>{if(ie.size>0){for(let m=D.value.length-1;m>=0;m--)ie.has(D.value[m])&&r.unref(D).splice(m,1);for(const m of ie)_(m);ie.clear()}},X=m=>{for(let g=D.value.length-1;g>=0;g--)m===D.value[g]&&r.unref(D).splice(g,1)},B=m=>{new Set(D.value).has(m)||D.value.push(m)},M=(m,g=!0)=>{e.emit("FORWARD");for(let C=I.value.length-1;C>=0;C--){const p=I.value[C];if(p.id===m){if(p.active)break;if(p.active=!0,q(p),g){const L=p.pages.peek();t.push({path:L.path,query:L.query})}}else I.value[C].active=!1}},q=m=>{window.sessionStorage.setItem(Xe+Ze,JSON.stringify(m))},oe=()=>{window.sessionStorage.removeItem(Xe+Ze)},Ie=()=>{ae.value=!1,Pt(),r.nextTick(()=>{r.unref(I).push(...He),e.emit(W.TAB_ACTIVE,{id:He[0].id}),r.nextTick(()=>{ae.value=!0})})},Pt=()=>{r.unref(I).splice(0),ne.clear(),ie.clear(),U.clear(),r.unref(D).splice(0)};return{tabs:I,caches:D,pageShown:ae,initialed:bt,setMaxSize:m=>{Se=m},canAddTab:a,initial:s,size:o,active:M,destroy:Pt,reset:Ie,addCache:B,removeCache:X,getTab:c,addTab:h,removeTab:O,removeAllTabs:A,removeLeftTabs:v,removeRightTabs:T,removeOtherTabs:w,hasTab:i,renewTab:S,addPage:l,addComponent:u,getComponent:x,removeComponent:_,markDeletableCache:z,removeDeletableCache:V,refreshTab:k,refreshAllTabs:E,addPageScroller:y,setGlobalScroll:m=>{mt=m},clearSession:oe,setSessionPrefix:m=>{Xe=m}}},Bn={class:"stack-tab__contextmenu-item"},re=r.defineComponent({__name:"ContextMenuItem",props:{icon:{},title:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",Bn,[r.createElementVNode("div",{class:r.normalizeClass(["stack-tab__contextmenu-icon",e.icon])},null,2),r.createElementVNode("div",{style:{"margin-left":"8px"},onContextmenu:n[0]||(n[0]=r.withModifiers(()=>{},["prevent"]))},r.toDisplayString(e.title),33)]))}}),On={key:0,class:"divider div-transparent"},An=((t,e)=>{const n=t.__vccOpts||t;for(const[o,s]of e)n[o]=s;return n})(r.defineComponent({__name:"index",props:{index:{},left:{default:0},top:{default:0},contextMenu:{},tabItem:{},max:{}},setup(t){const e=t,{t:n}=he(),o=r.ref(),s=r.reactive({left:e.left,top:e.top}),{removeTab:i,removeAllTabs:a,removeLeftTabs:h,removeRightTabs:c,refreshTab:l,refreshAllTabs:b,removeOtherTabs:d}=me();return r.onMounted(()=>{const f=o.value?o.value.clientWidth:0,y=window.innerWidth;s.left+f>y&&(s.left=y-f-5)}),(f,y)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"contextmenu",ref:o,class:"stack-tab__contextmenu",style:r.normalizeStyle({left:`${s.left}px`,top:`${s.top}px`,"z-index":r.unref(ze)(".stack-tab,.stack-tab *")})},[r.createVNode(re,{icon:"stack-tab__icon-reload svg-mask",title:r.unref(n)("VueStackTab.reload"),onClick:y[0]||(y[0]=S=>r.unref(l)(f.tabItem.id))},null,8,["title"]),r.createVNode(re,{icon:"stack-tab__icon-reload-all svg-mask",title:r.unref(n)("VueStackTab.reloadAll"),onClick:r.unref(b)},null,8,["title","onClick"]),r.createVNode(re,{icon:"stack-tab__icon-close svg-mask",title:r.unref(n)("VueStackTab.close"),disabled:f.tabItem.closable?null:"disabled",onClick:y[1]||(y[1]=S=>r.unref(i)(f.tabItem.id))},null,8,["title","disabled"]),r.createVNode(re,{icon:"stack-tab__icon-close-lefts svg-mask",title:r.unref(n)("VueStackTab.closeLeft"),disabled:f.index<=0?"disabled":null,onClick:y[2]||(y[2]=S=>r.unref(h)(f.tabItem.id))},null,8,["title","disabled"]),r.createVNode(re,{icon:"stack-tab__icon-close-rights svg-mask",title:r.unref(n)("VueStackTab.closeRight"),disabled:f.index>=f.max-1?"disabled":null,onClick:y[3]||(y[3]=S=>r.unref(c)(f.tabItem.id))},null,8,["title","disabled"]),r.createVNode(re,{icon:"stack-tab__icon-close-others svg-mask",title:r.unref(n)("VueStackTab.closeOthers"),onClick:y[4]||(y[4]=S=>r.unref(d)(f.tabItem.id))},null,8,["title"]),r.createVNode(re,{icon:"stack-tab__icon-close-all svg-mask",title:r.unref(n)("VueStackTab.closeAll"),onClick:r.unref(a)},null,8,["title","onClick"]),f.contextMenu!==void 0&&f.contextMenu.length>0?(r.openBlock(),r.createElementBlock("div",On)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.contextMenu,(S,O)=>(r.openBlock(),r.createBlock(re,{key:O,icon:S.icon,title:S.title,disabled:S.disabled(f.tabItem)?"disabled":null,onClick:A=>!S.disabled&&S.callback(f.tabItem.id)},null,8,["icon","title","disabled","onClick"]))),128))],4))}}),[["__scopeId","data-v-d598be6e"]]),Cn=()=>{const t=r.reactive({item:{},index:-1,left:0,top:0,max:0}),e=r.ref(!1);r.onMounted(()=>{document.addEventListener("click",o)}),r.onUnmounted(()=>{document.removeEventListener("click",o)});const n=async(s,i,a,h)=>{e.value=!1,await r.nextTick(()=>{const{clientY:c,clientX:l}=s;e.value=!0,Object.assign(t,{item:i,index:a,top:c,left:l,max:h})})},o=s=>{s.target.classList.contains("stack-tab__contextmenu")||(e.value=!1)};return{shown:e,contextMenuData:t,showContextMenu:n}},In={class:"stack-tab__item-title"},Mn=["title"],zn=["title"],Ln=r.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(t,{emit:e}){const n=e,o=se(),{t:s}=he(),i=r.ref(),a=t;o.on(W.TAB_ACTIVE,({id:b,isRoute:d})=>{a.item.id===b&&l(d)});const h=r.computed(()=>a.item.title||s("undefined")),c=()=>{n("close",a.item)},l=(b=!0)=>{n("active",a.item,i,b)};return(b,d)=>(r.openBlock(),r.createElementBlock("li",{ref_key:"curtab",ref:i,class:r.normalizeClass(["stack-tab__item",{"is-active":b.item.active,"is-icon":b.item.closable}]),onClick:d[0]||(d[0]=f=>l(!0))},[r.createElementVNode("div",In,[r.createElementVNode("div",{class:"stack-tab__item-title-content",title:h.value},r.toDisplayString(h.value),9,Mn)]),b.item.closable?(r.openBlock(),r.createElementBlock("div",{key:0,class:"stack-tab__icon-close-fill stack-tab__item-button",title:r.unref(s)("VueStackTab.close"),onClick:r.withModifiers(c,["stop"])},null,8,zn)):r.createCommentVNode("",!0)],2))}});var le=[],Nn=function(){return le.some(function(t){return t.activeTargets.length>0})},Vn=function(){return le.some(function(t){return t.skippedTargets.length>0})},gt="ResizeObserver loop completed with undelivered notifications.",Rn=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:gt}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=gt),window.dispatchEvent(t)},ge;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ge||(ge={}));var fe=function(t){return Object.freeze(t)},Dn=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,fe(this)}return t}(),yt=function(){function t(e,n,o,s){return this.x=e,this.y=n,this.width=o,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)}return t.prototype.toJSON=function(){var e=this,n=e.x,o=e.y,s=e.top,i=e.right,a=e.bottom,h=e.left,c=e.width,l=e.height;return{x:n,y:o,top:s,right:i,bottom:a,left:h,width:c,height:l}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Ge=function(t){return t instanceof SVGElement&&"getBBox"in t},kt=function(t){if(Ge(t)){var e=t.getBBox(),n=e.width,o=e.height;return!n&&!o}var s=t,i=s.offsetWidth,a=s.offsetHeight;return!(i||a||t.getClientRects().length)},wt=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},$n=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},ye=typeof window<"u"?window:{},Ee=new WeakMap,vt=/auto|scroll/,Pn=/^tb|vertical/,Wn=/msie|trident/i.test(ye.navigator&&ye.navigator.userAgent),H=function(t){return parseFloat(t||"0")},ue=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new Dn((n?e:t)||0,(n?t:e)||0)},_t=fe({devicePixelContentBoxSize:ue(),borderBoxSize:ue(),contentBoxSize:ue(),contentRect:new yt(0,0,0,0)}),xt=function(t,e){if(e===void 0&&(e=!1),Ee.has(t)&&!e)return Ee.get(t);if(kt(t))return Ee.set(t,_t),_t;var n=getComputedStyle(t),o=Ge(t)&&t.ownerSVGElement&&t.getBBox(),s=!Wn&&n.boxSizing==="border-box",i=Pn.test(n.writingMode||""),a=!o&&vt.test(n.overflowY||""),h=!o&&vt.test(n.overflowX||""),c=o?0:H(n.paddingTop),l=o?0:H(n.paddingRight),b=o?0:H(n.paddingBottom),d=o?0:H(n.paddingLeft),f=o?0:H(n.borderTopWidth),y=o?0:H(n.borderRightWidth),S=o?0:H(n.borderBottomWidth),O=o?0:H(n.borderLeftWidth),A=d+l,w=c+b,v=O+y,T=f+S,k=h?t.offsetHeight-T-t.clientHeight:0,E=a?t.offsetWidth-v-t.clientWidth:0,u=s?A+v:0,x=s?w+T:0,_=o?o.width:H(n.width)-u-E,z=o?o.height:H(n.height)-x-k,V=_+A+E+v,X=z+w+k+T,B=fe({devicePixelContentBoxSize:ue(Math.round(_*devicePixelRatio),Math.round(z*devicePixelRatio),i),borderBoxSize:ue(V,X,i),contentBoxSize:ue(_,z,i),contentRect:new yt(d,c,_,z)});return Ee.set(t,B),B},Tt=function(t,e,n){var o=xt(t,n),s=o.borderBoxSize,i=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(e){case ge.DEVICE_PIXEL_CONTENT_BOX:return a;case ge.BORDER_BOX:return s;default:return i}},Un=function(){function t(e){var n=xt(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=fe([n.borderBoxSize]),this.contentBoxSize=fe([n.contentBoxSize]),this.devicePixelContentBoxSize=fe([n.devicePixelContentBoxSize])}return t}(),St=function(t){if(kt(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},qn=function(){var t=1/0,e=[];le.forEach(function(a){if(a.activeTargets.length!==0){var h=[];a.activeTargets.forEach(function(l){var b=new Un(l.target),d=St(l.target);h.push(b),l.lastReportedSize=Tt(l.target,l.observedBox),d<t&&(t=d)}),e.push(function(){a.callback.call(a.observer,h,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,o=e;n<o.length;n++){var s=o[n];s()}return t},Et=function(t){le.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(St(s.target)>t?n.activeTargets.push(s):n.skippedTargets.push(s))})})},Fn=function(){var t=0;for(Et(t);Nn();)t=qn(),Et(t);return Vn()&&Rn(),t>0},Ye,Bt=[],jn=function(){return Bt.splice(0).forEach(function(t){return t()})},Hn=function(t){if(!Ye){var e=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return jn()}).observe(n,o),Ye=function(){n.textContent="".concat(e?e--:e++)}}Bt.push(t),Ye()},Zn=function(t){Hn(function(){requestAnimationFrame(t)})},Be=0,Xn=function(){return!!Be},Gn=250,Yn={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ot=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],At=function(t){return t===void 0&&(t=0),Date.now()+t},Ke=!1,Kn=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=Gn),!Ke){Ke=!0;var o=At(e);Zn(function(){var s=!1;try{s=Fn()}finally{if(Ke=!1,e=o-At(),!Xn())return;s?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,Yn)};document.body?n():ye.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ot.forEach(function(n){return ye.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Ot.forEach(function(n){return ye.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),Je=new Kn,Ct=function(t){!Be&&t>0&&Je.start(),Be+=t,!Be&&Je.stop()},Jn=function(t){return!Ge(t)&&!$n(t)&&getComputedStyle(t).display==="inline"},Qn=function(){function t(e,n){this.target=e,this.observedBox=n||ge.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=Tt(this.target,this.observedBox,!0);return Jn(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),er=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),Oe=new WeakMap,It=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},Ae=function(){function t(){}return t.connect=function(e,n){var o=new er(e,n);Oe.set(e,o)},t.observe=function(e,n,o){var s=Oe.get(e),i=s.observationTargets.length===0;It(s.observationTargets,n)<0&&(i&&le.push(s),s.observationTargets.push(new Qn(n,o&&o.box)),Ct(1),Je.schedule())},t.unobserve=function(e,n){var o=Oe.get(e),s=It(o.observationTargets,n),i=o.observationTargets.length===1;s>=0&&(i&&le.splice(le.indexOf(o),1),o.observationTargets.splice(s,1),Ct(-1))},t.disconnect=function(e){var n=this,o=Oe.get(e);o.observationTargets.slice().forEach(function(s){return n.unobserve(e,s.target)}),o.activeTargets.splice(0,o.activeTargets.length)},t}(),Mt=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Ae.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!wt(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ae.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!wt(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ae.unobserve(this,e)},t.prototype.disconnect=function(){Ae.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const tr=["disabled","title"],nr={key:1,class:"stack-tab__button"},Ce=r.defineComponent({__name:"TabHeaderButton",props:{disabled:{type:Boolean,default:!1},shadow:{default:null},iconClass:{default:""},title:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["stack-tab__header-button",{"stack-tab__shadow-right":e.shadow==="right","stack-tab__shadow-left":e.shadow==="left"}]),disabled:e.disabled?"disabled":null,title:e.title},["icon"in e.$slots?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["stack-tab__mask-button",e.iconClass])},null,2)),"icon"in e.$slots?(r.openBlock(),r.createElementBlock("div",nr,[r.renderSlot(e.$slots,"icon")])):r.createCommentVNode("",!0)],10,tr))}}),rr=r.defineComponent({__name:"TabHeaderScroll",props:{space:{default:300},isScrollWheel:{type:Boolean,default:!0},isScrollButton:{type:Boolean,default:!0}},setup(t,{expose:e}){const n=r.ref(null),o=r.ref(null),s=r.ref(null),i=r.ref(!1),a=r.ref(!1),h=r.ref(!1),c=r.ref(!0),l=r.ref(),b=t,d=r.reactive({clientWidth:0,scrollWidth:0,scrollLeft:0}),f=r.reactive({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});r.watch(d,B=>{y(B)});const y=B=>{a.value=B.scrollLeft<=10,h.value=B.clientWidth+B.scrollLeft-B.scrollWidth>=-10,c.value=B.scrollWidth!==B.clientWidth},S=r.computed(()=>d.scrollWidth>d.clientWidth),O=r.computed(()=>{if(!S.value)return 0;const{clientWidth:B,scrollWidth:M}=d;return B/M*B}),A=r.computed(()=>{if(!S.value)return 0;const{clientWidth:B,scrollWidth:M,scrollLeft:q}=d;return(B-O.value)*(q/(M-B))}),w=()=>{if(n.value===null||n.value===void 0)return;const{clientWidth:B,scrollWidth:M,scrollLeft:q}=n.value;Object.assign(d,{clientWidth:B,scrollWidth:M,scrollLeft:q})},v=new Mt(()=>{var M;w();const B=(M=n.value)==null?void 0:M.querySelector(".stack-tab__item.is-active");B&&(X(B)||V(B))}),T=new Mt(()=>{var B;if(!S.value){const M=(B=n.value)==null?void 0:B.querySelector(".stack-tab__item.is-active");M&&(X(M)||V(M))}w()}),k=(B,M=!0)=>{rt({wrap:n.value,left:B,smooth:M})},E=B=>{k(n.value.scrollLeft+B)},u=B=>{const M=B.deltaY<0;k(n.value.scrollLeft+(M?-b.space:b.space))},x=B=>{var M;Object.assign(f,{startPageX:B.pageX,startScrollLeft:(M=n.value)==null?void 0:M.scrollLeft,startThumbLeft:A.value,thumbLeft:A.value}),i.value=!0,document.addEventListener("mousemove",_),document.addEventListener("mouseup",z)},_=B=>{const{clientWidth:M,scrollWidth:q}=d;let oe=f.startThumbLeft+B.pageX-f.startPageX;const Ie=M-O.value;oe<0?oe=0:oe>Ie&&(oe=Ie),f.thumbLeft=oe,k(oe*(q-M)/(M-O.value),!1),B.preventDefault()},z=B=>{i.value=!1,document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",z),B.preventDefault()};r.onMounted(()=>{var M;v.observe(l.value);const B=(M=n.value)==null?void 0:M.querySelector(".stack-tab__nav");T.observe(B)}),r.onUnmounted(()=>{v.disconnect(),T.disconnect()});const V=B=>{tn({el:B,wrap:n,block:"end",inline:"center"})},X=B=>{if(!S.value)return!0;const M=B.offsetLeft,q=n.value.scrollLeft;return!(M<q||M+B.clientWidth>q+n.value.clientWidth)};return e({scrollIntoView:V,isInView:X}),(B,M)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[c.value?(r.openBlock(),r.createBlock(Ce,{key:0,"icon-class":"stack-tab__icon-left-arrow",disabled:a.value,onClick:M[0]||(M[0]=q=>!a.value&&E(-1*B.space))},null,8,["disabled"])):r.createCommentVNode("",!0),r.createElementVNode("div",{ref_key:"headerScroll",ref:l,class:"stack-tab__scroll",onWheelPassive:u},[r.createElementVNode("div",{ref_key:"container",ref:n,class:r.normalizeClass(["stack-tab__scroll-container",{"stack-tab__shadow-inset-left":!a.value&&h.value,"stack-tab__shadow-inset-right":!h.value&&a.value,"stack-tab__shadow-inset-all":!a.value&&!h.value}]),onScrollPassive:w},[r.renderSlot(B.$slots,"default")],34),r.withDirectives(r.createElementVNode("div",{ref_key:"bar",ref:o,class:r.normalizeClass(["stack-tab__scrollbar",{"is-dragging":i.value}])},[r.createElementVNode("div",{ref_key:"thumb",ref:s,class:r.normalizeClass(["stack-tab__scrollbar-thumb",{"is-dragging":i.value}]),style:r.normalizeStyle({width:`${O.value}px`,transform:`translateX(${A.value}px)`}),onMousedown:r.withModifiers(x,["prevent"])},null,38)],2),[[r.vShow,S.value]])],544),c.value?(r.openBlock(),r.createBlock(Ce,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:h.value,onClick:M[1]||(M[1]=q=>!h.value&&E(B.space))},null,8,["disabled"])):r.createCommentVNode("",!0)],64))}}),or={class:"stack-tab__header"},sr=r.defineComponent({__name:"index",props:{space:{},tabScrollMode:{default:Q.BOTH},tabTransition:{default:()=>({name:"stack-tab-zoom"})},contextmenu:{type:[Boolean,Object],default:!0},max:{default:20}},emits:["active"],setup(t,{emit:e}){const{t:n}=he(),o=r.inject("maximum"),s=e,i=r.ref(),{shown:a,contextMenuData:h,showContextMenu:c}=Cn(),l=t,{removeTab:b,active:d,tabs:f}=me(),y=r.computed(()=>typeof l.tabTransition=="string"?{name:l.tabTransition}:l.tabTransition),S=r.computed(()=>l.tabScrollMode===Q.BOTH||l.tabScrollMode===Q.BUTTON),O=l.tabScrollMode===Q.BOTH||l.tabScrollMode===Q.WHEEL,A=v=>{v.closable&&b(v.id),a.value=!1},w=(v,T,k)=>{i.value&&(r.nextTick(()=>{i.value.isInView(T.value)||i.value.scrollIntoView(T.value)}),d(v.id,k),s("active",v.id))};return(v,T)=>(r.openBlock(),r.createElementBlock("div",or,[r.renderSlot(v.$slots,"leftButton"),r.createVNode(rr,{ref_key:"scroll",ref:i,space:v.space,"is-scroll-wheel":r.unref(O),"is-scroll-button":S.value},{default:r.withCtx(()=>[r.createVNode(r.TransitionGroup,r.mergeProps({key:"tabItemTrans",tag:"ul",class:"stack-tab__nav"},y.value,{appear:""}),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(f),(k,E)=>(r.openBlock(),r.createBlock(Ln,{key:k.id,contextmenu:v.contextmenu,item:k,onContextmenu:r.withModifiers(u=>r.unref(c)(u,k,E,r.unref(f).length),["prevent"]),onMouseup:r.withModifiers(u=>A(k),["middle","prevent"]),onClose:A,onActive:w},null,8,["contextmenu","item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),r.renderSlot(v.$slots,"rightButton"),r.createVNode(Ce,{"icon-class":r.unref(o)?"stack-tab__icon-restore":"stack-tab__icon-fullscreen",title:r.unref(n)("VueStackTab.maximum"),onClick:T[0]||(T[0]=k=>o.value=!r.unref(o))},null,8,["icon-class","title"]),r.createVNode(r.Transition,{name:"stack-tab-zoom",appear:""},{default:r.withCtx(()=>[r.unref(a)?(r.openBlock(),r.createBlock(An,{key:"tabMenuTrans",left:r.unref(h).left,top:r.unref(h).top,"tab-item":r.unref(h).item,max:r.unref(h).max,index:r.unref(h).index},null,8,["left","top","tab-item","max","index"])):r.createCommentVNode("",!0)]),_:1})]))}});function ir(t,e,n){var o={},s=o.noTrailing,i=s===void 0?!1:s,a=o.noLeading,h=a===void 0?!1:a,c=o.debounceMode,l=c===void 0?void 0:c,b,d=!1,f=0;function y(){b&&clearTimeout(b)}function S(A){var w=A||{},v=w.upcomingOnly,T=v===void 0?!1:v;y(),d=!T}function O(){for(var A=arguments.length,w=new Array(A),v=0;v<A;v++)w[v]=arguments[v];var T=this,k=Date.now()-f;if(d)return;function E(){f=Date.now(),e.apply(T,w)}function u(){b=void 0}!h&&l&&!b&&E(),y(),l===void 0&&k>t?h?(f=Date.now(),i||(b=setTimeout(l?u:E,t))):E():i!==!0&&(b=setTimeout(l?u:E,l===void 0?t-k:t))}return O.cancel=S,O}let zt;const Lt=()=>{const t=Y.useRouter(),{active:e,hasTab:n,pageShown:o,reset:s,canAddTab:i,renewTab:a,getTab:h}=me(),c=se(),l=ir(500,(y,S=!1)=>new Promise((O,A)=>{if(!o.value){A();return}const w=J(y,{refreshable:!0,closable:!0,iframe:!1});if(w.id&&S&&n(w.id)){a(y);const v=h(y.id);v!=null&&v.active&&(o.value=!1,r.nextTick(()=>{o.value=!0}))}if(n(w.id)&&!S){c.emit(W.TAB_ACTIVE,{id:w.id}),O(w.id);return}if(w.id||(w.id=Ne()),!i()){A("Max Size");return}b(y,w),O(w.id)})),b=(y,S)=>{const O=Ue(S);let A=J({__tab:O},y.query),w;if(y.iframe){const v=encodeURIComponent(y.path);w=zt,A.__src=v}else{const v=je(y.path);w=v.path,A=J(v.query,A)}t.push({path:w,query:A})};return{openNewTab:l,setIFramePath:y=>{zt=y},active:e,reset:s,getWrapper:()=>document.getElementsByClassName("cache-page-wrapper")[0]}},ar={class:"stack-tab__container"},cr=["src"],Nt=r.defineComponent({__name:"StackTabs",props:{defaultTabs:{default:()=>[]},max:{default:20},append:{default:"last"},contextmenu:{type:[Boolean,Object],default:!0},pageTransition:{default:"stack-tab-swap"},pageTransitionBack:{default:"stack-tab-swap-back"},tabTransition:{default:"stack-tab-zoom"},tabScrollMode:{default:Q.BOTH},width:{default:"100%"},height:{default:"100%"},i18n:{default:"zh-CN"},space:{default:300},globalScroll:{type:Boolean,default:!1},iframePath:{},sessionPrefix:{default:""}},emits:["onActive","onPageLoaded"],setup(t,{emit:e}){const{tabs:n,pageShown:o,caches:s,destroy:i,addPage:a,initial:h,setMaxSize:c,setGlobalScroll:l,clearSession:b,setSessionPrefix:d}=me(),f=e,y=t,{changeLocale:S}=he(),O=r.ref(!1);r.provide("maximum",O);const{setIFramePath:A}=Lt();A(y.iframePath),l(y.globalScroll),S(y.i18n),r.onBeforeMount(()=>{h(y.defaultTabs),d(y.sessionPrefix)});const w=(u,x)=>a(u,x),v=u=>{f("onActive",u)};c(y.max),r.onBeforeUnmount(()=>{i()});const T=()=>{f("onPageLoaded")},k=r.ref(y.pageTransition),E=se();return E.on("FORWARD",()=>{k.value=y.pageTransition}),E.on("BACKWARD",()=>{k.value=y.pageTransitionBack}),(u,x)=>{const _=r.resolveComponent("router-view");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["stack-tab",{"stack-tab__maximum":O.value}]),style:r.normalizeStyle({width:u.width,height:u.height,"z-index":O.value?r.unref(ze)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[r.createVNode(sr,{space:u.space,onActive:v,"tab-transition":u.tabTransition,max:u.max},{leftButton:r.withCtx(()=>[r.renderSlot(u.$slots,"leftButton")]),rightButton:r.withCtx(()=>[r.renderSlot(u.$slots,"rightButton")]),_:3},8,["space","tab-transition","max"]),r.createElementVNode("div",ar,[r.createVNode(_,null,{default:r.withCtx(({Component:z,route:V})=>[r.createVNode(r.Transition,{name:k.value,appear:"",mode:"out-in"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.KeepAlive,{include:r.unref(s)},[r.unref(o)?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(w(V,z)),{key:`${V.name}_${V.fullPath}`,onOnLoaded:T},null,32)):r.createCommentVNode("",!0)],1032,["include"]))]),_:2},1032,["name"])]),_:1}),r.createVNode(r.TransitionGroup,{name:u.pageTransition,appear:""},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(n).filter(z=>z.iframe),z=>r.withDirectives((r.openBlock(),r.createElementBlock("iframe",{key:z.id,class:"stack-tab__iframe",src:/^(javascript|data):/i.test(z.url??"")?"about:blank":z.url,frameborder:"0"},null,8,cr)),[[r.vShow,z.active]])),128))]),_:1},8,["name"])])],6)}}}),Qe=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Vt=typeof TextEncoder=="function"?new TextEncoder:void 0,ke=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(t=>{let e={};return t.forEach((n,o)=>e[n]=o),e})(ke);const Z=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const lr=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),Rt=typeof btoa=="function"?t=>btoa(t):Qe?t=>Buffer.from(t,"binary").toString("base64"):t=>{let e,n,o,s,i="";const a=t.length%3;for(let h=0;h<t.length;){if((n=t.charCodeAt(h++))>255||(o=t.charCodeAt(h++))>255||(s=t.charCodeAt(h++))>255)throw new TypeError("invalid character found");e=n<<16|o<<8|s,i+=ke[e>>18&63]+ke[e>>12&63]+ke[e>>6&63]+ke[e&63]}return a?i.slice(0,a-3)+"===".substring(a):i},fr=Qe?t=>Buffer.from(t).toString("base64"):t=>{let n=[];for(let o=0,s=t.length;o<s;o+=4096)n.push(Z.apply(null,t.subarray(o,o+4096)));return Rt(n.join(""))},ur=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?Z(192|e>>>6)+Z(128|e&63):Z(224|e>>>12&15)+Z(128|e>>>6&63)+Z(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return Z(240|e>>>18&7)+Z(128|e>>>12&63)+Z(128|e>>>6&63)+Z(128|e&63)}},dr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,hr=t=>t.replace(dr,ur),Dt=Qe?t=>Buffer.from(t,"utf8").toString("base64"):Vt?t=>fr(Vt.encode(t)):t=>Rt(hr(t)),pr=(t,e=!1)=>e?lr(Dt(t)):Dt(t),br=t=>{const o=`<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1167.06 237.75"><path d="M79.24,19.73h108.91v29.7h-108.91v-29.7Z" style="fill:#79a7ff; stroke-width:0px;"/><path d="M179.24,199.67H20.26c-11.21-.07-20.26-9.17-20.26-20.38V20.39C0,9.18,9.05.07,20.26,0h59.49c3.51.07,6.34,2.9,6.41,6.42v44.36c0,3.54-2.87,6.41-6.41,6.41s-6.41-2.86-6.42-6.4V12.36H20.25c-4.13.07-7.44,3.44-7.44,7.56v159.41c0,4.13,3.31,7.49,7.44,7.56h158.98c4.13-.07,7.44-3.44,7.44-7.56V51.84c0-3.54,2.87-6.41,6.41-6.42,3.55,0,6.42,2.87,6.42,6.42v127.45c0,11.21-9.05,20.32-20.26,20.39h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M192.8,60.77c-3.66-.07-6.61-3.02-6.68-6.68v-18.23c.09-4.29-3.32-7.83-7.6-7.92h-96.43c-3.69,0-6.69-2.99-6.69-6.69s2.99-6.69,6.69-6.69h96.27c11.69.08,21.13,9.58,21.13,21.27v18.25c0,3.69-2.99,6.68-6.68,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M193.08,58.67H10.15c-3.61-.08-6.48-3.07-6.41-6.68-.08-3.62,2.79-6.61,6.4-6.69,0,0,0,0,0,0h182.93c3.62.08,6.48,3.08,6.41,6.69.07,3.61-2.79,6.6-6.41,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M137.2,58.67c-3.42.24-6.4-2.32-6.68-5.74v-28.15c.55-3.69,4-6.24,7.69-5.69,2.94.44,5.24,2.75,5.69,5.69v28.15c-.28,3.42-3.26,5.98-6.68,5.74h-.02Z" style="fill:#377dff; stroke-width:0px;"/><path d="M99.78,100.48l-12.83-22.22h-18.39l31.22,54.05,31.22-54.05h-18.39l-12.83,22.22Z" style="fill:#00d797; stroke-width:0px;"/><path d="M135.28,78.26l-35.49,61.43-35.44-61.43h-20.11l55.55,96.2,55.55-96.2s-20.06,0-20.06,0ZM313.33,59.95c0,.52-.67,1.84-2,3.95s-3.3,5.2-5.9,9.28-5.75,9.28-9.46,15.61c-3.7,6.33-7.52,13.34-11.45,21.04-4.51,8.85-7.76,15.8-9.76,20.86s-2.99,9.41-2.99,13.05c0,2.89,1.53,5.44,4.6,7.63,3.7-2.89,7.34-6.33,10.93-10.32,3.58-3.99,7.13-8.44,10.63-13.36s7.55-11.13,12.14-18.65c4.6-7.52,8.69-14.43,12.27-20.73-.17-.52-.36-1.04-.56-1.56s-.3-.95-.3-1.3c0-2.72.55-5.26,1.65-7.63,1.1-2.37,2.47-4.68,4.12-6.94s4.12-5.44,7.42-9.54c.87-1.1,1.94-1.65,3.21-1.65,2.08,0,3.12,1.33,3.12,3.99s-1.08,6.84-3.25,12.53c-2.17,5.7-5.37,12.39-9.59,20.08s-9.47,16.29-15.74,25.81c-6.28,9.51-13.37,19.45-21.3,29.8-8.04,10.47-13.79,15.7-17.26,15.7-1.97,0-4.19-1.08-6.68-3.25s-4.63-5.13-6.42-8.89-2.69-7.78-2.69-12.06c0-2.54.53-5.81,1.6-9.8s2.75-8.78,5.03-14.36,4.87-11.09,7.76-16.53c3.01-5.72,5.65-10.47,7.94-14.23,2.28-3.76,4.87-7.94,7.76-12.53,2.89-4.6,4.34-7.1,4.34-7.5,0-.87-.58-1.3-1.73-1.3-3.35,0-7.82,1.71-13.4,5.12s-12.85,8.59-21.82,15.53c-3.41,2.66-5.57,4.38-6.46,5.16s-1.34,1.43-1.34,1.95c0,.69.55,1.04,1.65,1.04.46,0,2.02-.17,4.68-.52s4.77-.52,6.33-.52c2.6,0,3.9.46,3.9,1.39,0,.81-.54,1.45-1.61,1.91-1.07.46-2.54.93-4.42,1.39s-4.44,1.1-7.68,1.91c-3.47.93-7.16,2.25-11.06,3.99-3.9,1.73-6.14,2.6-6.72,2.6-1.1,0-1.78-.4-2.04-1.21s-.39-2.14-.39-3.99c0-8.21,1.36-14.56,4.08-19.04s7.58-9.15,14.57-14.01c7.98-5.55,15.61-10.16,22.9-13.84,7.29-3.67,13.58-6.36,18.87-8.07s9.18-2.56,11.67-2.56,4.84,1.56,7.24,4.68,3.6,6.42,3.6,9.89h0ZM366.34,124.75c-8.39,11.1-14.76,19-19.13,23.68s-7.94,7.03-10.71,7.03c-2.2,0-4.22-.91-6.07-2.73-1.85-1.82-3.28-4.28-4.29-7.37s-1.52-6.4-1.52-9.93c0-2.31.22-4.39.65-6.25.43-1.85,1.26-3.89,2.47-6.12s2.82-4.64,4.81-7.24c2-2.6,4.44-5.55,7.33-8.85,1.73-2.02,3.19-3.73,4.38-5.12,1.18-1.39,2.34-2.33,3.47-2.82s2.96-.74,5.51-.74c1.85,0,3.61.25,5.29.74,1.68.49,2.52,1,2.52,1.52,0,1.04-.85,2.92-2.56,5.64s-4.45,6.03-8.24,9.93c-3.79,3.9-8.17,7.74-13.14,11.49-1.1,3.41-1.65,6.01-1.65,7.81,0,2.49.95,3.73,2.86,3.73.69,0,1.85-.59,3.47-1.78,1.62-1.18,4.35-3.47,8.2-6.85,3.84-3.38,7.3-6.38,10.37-8.98,2.25-1.97,4.87-4.9,7.85-8.8s5.39-6.84,7.24-8.8c4.28-4.51,7.2-7.44,8.76-8.8s3.06-2.04,4.51-2.04,2.33.43,2.82,1.3c.49.87.74,2.63.74,5.29,0,1.21-.12,2.2-.35,2.95s-.71,1.72-1.43,2.91-2.18,3.37-4.38,6.55-4.8,6.94-7.81,11.28c-1.66,2.38-3.09,4.93-4.25,7.59-1.21,2.75-1.82,4.81-1.82,6.2,0,3.01,1.18,4.51,3.56,4.51,1.96,0,4.25-.81,6.85-2.43s6.59-4.54,11.97-8.76v5.81c-6.77,6.25-11.77,10.79-15.01,13.62s-6.04,4.97-8.41,6.42-4.63,2.17-6.77,2.17c-4.86,0-7.29-2.89-7.29-8.67,0-2.2.72-5.16,2.17-8.89,1.44-3.73,3.79-9.12,7.03-16.18v-.02Z" style="fill:#306fff; stroke-width:0px;"/><path d="M407.71,133.77v2.17c0,3.41.84,6.07,2.52,7.98,1.68,1.91,3.87,2.86,6.59,2.86s5.77-.66,8.8-2c3.04-1.33,6.06-3.09,9.07-5.29s6.68-5.15,11.02-8.85v5.29c-6.54,7.87-12.67,13.89-18.39,18.09-5.72,4.19-11.54,6.29-17.44,6.29-5.15,0-9.22-2-12.23-5.99s-4.51-9.46-4.51-16.39c0-6.07,1.42-11.58,4.25-16.52s7.46-10.16,13.88-15.66c4.39-3.76,8.76-6.59,13.1-8.5s8.21-2.86,11.62-2.86c2.72,0,4.87.62,6.46,1.86s2.39,3.11,2.39,5.59c0,3.64-1.36,7.27-4.08,10.89s-6.87,7.2-12.45,10.76c-5.58,3.56-12.45,6.98-20.6,10.28h0ZM408.58,128.13c5.2-2.02,9.66-4.54,13.36-7.55,3.7-3.01,6.43-5.88,8.2-8.63,1.76-2.75,2.65-4.76,2.65-6.03s-.61-2-1.82-2c-1.04,0-2.73.67-5.07,2s-4.71,3.07-7.11,5.21-4.55,4.66-6.46,7.55c-1.9,2.86-3.17,6.08-3.73,9.46h-.02ZM585.37,132.9c-1.45-2.66-3.61-5.06-6.51-7.2-2.89-2.14-6.15-3.86-9.76-5.16s-7.39-2.27-11.32-2.91c-11.68-1.74-22.58-5.52-32.7-11.36-.87-.46-1.79-1.44-2.78-2.95-.98-1.5-1.47-2.95-1.47-4.34,0-5.09.85-10.19,2.56-15.31,1.71-5.12,3.89-9.12,6.55-12.01,4.28-4.8,11.98-8.99,23.12-12.58,11.13-3.58,23.67-5.38,37.6-5.38,8.33,0,14.76.64,19.3,1.91s6.81,3.24,6.81,5.9c0,4.34-.59,7.69-1.78,10.06s-2.46,3.95-3.82,4.73c-1.36.78-3.75,1.84-7.16,3.17-3.64,1.27-6.81,2.6-9.5,3.99s-4.99,2.72-6.9,3.99c-1.91,1.27-3.09,1.91-3.56,1.91-.58,0-.87-.23-.87-.69,0-.98,1.03-2.47,3.08-4.47s4.58-3.74,7.59-5.25c3.18-1.68,4.77-2.75,4.77-3.21,0-.75-1.76-1.13-5.29-1.13-10.7,0-20.59.95-29.67,2.86s-16.24,4.42-21.47,7.55c-5.23,3.12-7.85,6.3-7.85,9.54,0,2.02,1.08,3.46,3.25,4.29,2.17.84,6.95,2.24,14.36,4.21,7.4,1.97,14.02,4.22,19.86,6.77,8.38,3.59,14.6,7.32,18.65,11.19,4.05,3.88,6.07,8.21,6.07,13.01,0,3.3-.8,6.61-2.39,9.93-1.59,3.33-3.92,6.38-6.98,9.15-3.07,2.78-6.59,5.06-10.58,6.85-3.41,1.45-7.71,2.8-12.88,4.08-5.18,1.27-10.79,2.27-16.83,2.99-6.04.72-11.81,1.08-17.31,1.08-10.12,0-18.26-.95-24.42-2.86s-9.24-4.8-9.24-8.67c0-1.74,1.04-4.44,3.12-8.11s4.54-6.14,7.37-7.42c2.49-.98,4.89-1.55,7.2-1.69,2.31-.14,3.47.13,3.47.82,0,.17-.09.35-.26.52s-.38.32-.61.43c-.23.12-.46.23-.69.35-1.16.46-2.1.82-2.82,1.08-.72.26-1.3.52-1.74.78-.43.26-.65.62-.65,1.08,0,1.21,5.99,1.82,17.96,1.82,10.41,0,18.94-.38,25.59-1.13s12.52-2.11,17.61-4.08c5.09-1.97,9.71-4.68,13.88-8.15l.04.02ZM640.8,85.63h3.73c3.06-5.49,5.84-9.38,8.33-11.67,2.49-2.28,5.32-3.43,8.5-3.43s4.77.72,4.77,2.17c0,.69-1.24,2.57-3.73,5.64s-4.37,5.64-5.64,7.72c1.96.23,3.71.43,5.25.61,1.53.17,2.73.32,3.6.43-3.3,6.13-7.43,12.4-12.4,18.82l-4.08-.3c-1.1-.09-2.21-.17-3.34-.26s-2.5-.19-4.12-.3c-3.12,5.03-5.74,9.53-7.85,13.49s-3.73,7.59-4.86,10.89-1.69,6.42-1.69,9.37c0,3.99,1.59,5.99,4.77,5.99,2.2,0,5.07-1.17,8.63-3.51s8.31-5.94,14.27-10.8v5.81c-15.61,16.95-27.15,25.42-34.61,25.42-2.6,0-4.7-1.01-6.29-3.04-1.59-2.02-2.38-4.63-2.38-7.81,0-2.14.45-4.68,1.34-7.63.9-2.95,2.5-7.4,4.81-13.36-.81.69-1.58,1.37-2.3,2.04s-1.39,1.27-2,1.82-1.26,1.13-1.95,1.73c-.69.61-1.39,1.23-2.08,1.87v-5.99c6.07-5.09,13.42-14.02,22.03-26.8-.87-.06-1.68-.1-2.43-.13s-1.65-.04-2.69-.04c-3.41,0-5.96.23-7.63.69-.69.17-1.34.36-1.95.56s-1.03.3-1.26.3-.35-.17-.35-.52c0-1.91,1.18-4.77,3.56-8.59,1.91-3.24,3.72-5.64,5.42-7.2,1.71-1.56,3.79-2.62,6.25-3.17,2.46-.55,5.91-.82,10.37-.82h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M664.91,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM706.46,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M779.07,130.82v5.81c-6.19,6.07-11.23,10.79-15.14,14.14-3.9,3.35-7.55,5.96-10.93,7.81-3.38,1.85-6.69,2.78-9.93,2.78s-6.1-1.26-8.76-3.77c-2.66-2.52-4.74-5.81-6.25-9.89-1.5-4.08-2.26-8.4-2.26-12.97,0-3.93.87-7.43,2.6-10.5,1.74-3.07,5.09-7.03,10.06-11.88,5.9-5.78,11.38-10.25,16.44-13.4s9.04-4.73,11.93-4.73c2.08,0,3.85.72,5.29,2.17s2.17,3.27,2.17,5.46c0,1.85-.95,4.48-2.86,7.89-1.91,3.41-4.05,6.38-6.42,8.89-2.37,2.52-4.25,3.77-5.64,3.77-1.5,0-2.25-.81-2.25-2.43.06-.46.1-.9.13-1.3s.04-.81.04-1.21c0-.69-.25-1.08-.74-1.17s-1.08.13-1.78.65c-5.78,4.05-9.75,6.9-11.88,8.54-2.14,1.65-3.83,3.31-5.07,4.99s-1.87,3.44-1.87,5.29c0,3.41,1.1,6.19,3.3,8.33s5.06,3.21,8.59,3.21,8.02-1.4,13.14-4.21c5.12-2.8,11.15-6.9,18.09-12.27h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M844.13,130.65v5.81c-6.48,7.58-11.91,13.32-16.31,17.22s-8.07,5.86-11.02,5.86-5.39-.84-7.68-2.52c-2.29-1.68-4.34-3.99-6.16-6.94-1.82-2.95-3.98-7.05-6.46-12.32-2.95,3.64-5.61,7.04-7.98,10.19-2.37,3.15-4.02,5.25-4.94,6.29-.93,1.04-1.77,1.56-2.52,1.56-1.56,0-2.69-1-3.38-2.99-.69-2-1.04-4.9-1.04-8.72,0-5.21.62-10.22,1.87-15.05,1.24-4.83,3.04-9.53,5.38-14.1s5.35-9.5,9.02-14.79c3.67-5.29,7.79-10.83,12.36-16.61,6.3-7.98,11.74-14.5,16.31-19.56,4.57-5.06,8.54-8.88,11.93-11.45,3.38-2.57,6.2-3.86,8.46-3.86,2.78,0,4.16,1.24,4.16,3.73,0,2.14-5.12,9.85-15.35,23.12-10.24,13.27-25.16,31.39-44.76,54.35v7.46c13.13-14.05,23.69-24.49,31.71-31.31,8.01-6.82,14.21-10.24,18.61-10.24,1.79,0,3.18,1.06,4.16,3.17s1.47,4.55,1.47,7.33c0,5.67-2.43,10.92-7.29,15.74-4.86,4.83-12.32,10.37-22.38,16.61,1.74,2.6,3.27,4.5,4.6,5.68,1.33,1.19,3.01,1.78,5.03,1.78,1.79,0,3.73-.61,5.81-1.82s4.21-2.75,6.38-4.6,5.51-4.86,10.02-9.02h-.01ZM809.86,135.07c2.2-1.45,4.93-3.69,8.2-6.72,3.27-3.04,6.06-6.19,8.37-9.46s3.47-6,3.47-8.2c0-.92-.41-1.39-1.21-1.39-2.2,0-5.97,2.11-11.32,6.33-5.35,4.22-10.57,9.63-15.66,16.22,2.2,0,4.92,1.07,8.15,3.21h0ZM951.78,140.71l2.86,2.17c-.75,1.62-1.47,3.04-2.17,4.25-.69,1.21-1.53,2.69-2.52,4.42-.98,1.73-1.73,3.04-2.25,3.9-4.34,7.58-8.41,11.36-12.23,11.36-1.62,0-3.01-.64-4.16-1.91-1.16-1.27-1.73-3.01-1.73-5.2,0-3.12,1.11-7.4,3.34-12.84,2.23-5.43,5.67-12.13,10.32-20.08s10.51-16.96,17.57-27.02c7.05-10.06,15.01-20.67,23.85-31.84-5.09-.75-11.13-1.13-18.13-1.13-8.04,0-16.99.9-26.85,2.69s-18.45,3.86-25.76,6.2c-7.32,2.34-10.97,4.06-10.97,5.16,0,.41.14.68.43.82.29.15.77.26,1.43.35s1.52.19,2.56.3c6.77.93,10.15,1.97,10.15,3.12,0,.58-1.47.85-4.42.82s-6.51-.04-10.67-.04c-3.3,0-5.68-.13-7.16-.39s-2.46-.75-2.95-1.47-.74-1.84-.74-3.34c0-.98.29-3.12.87-6.42,1.1-6.13,2.79-11.04,5.07-14.75,2.28-3.7,5.78-6.72,10.5-9.06,4.71-2.34,11.2-4.21,19.47-5.59,13.88-2.37,25.36-3.56,34.44-3.56,6.71,0,12,.27,15.88.82,3.87.55,6.72,1.34,8.54,2.39,1.82,1.04,2.98,2.07,3.47,3.08s1.14,2.76,1.95,5.25l2.69,7.98c.17.52.32.94.43,1.26.12.32.22.65.3,1,.09.35.13.67.13.95,0,2.26-.51,4.28-1.52,6.07s-2.86,4.48-5.55,8.07-4.67,6.39-5.94,8.41c-14.92,24.23-25.1,42.16-30.53,53.78v.02ZM991.94,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM1033.49,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1111.3,130.82v5.64c-6.02,3.82-10.76,5.72-14.23,5.72-1.91,0-3.93-.32-6.07-.95-5.2,6.59-9.67,11.42-13.4,14.49s-7.47,4.6-11.23,4.6c-4.34,0-7.68-2.29-10.02-6.85-2.34-4.57-3.51-10.24-3.51-17,0-9.2,2.78-19.21,8.33-30.06,5.56-10.85,12.29-21.07,20.08-30.45,7.84-9.46,15.43-17.28,22.77-23.46,7.34-6.19,12.32-9.28,14.92-9.28s3.73,1.71,3.73,5.12c0,15.15-19.43,41.58-58.29,79.29-.12,1.04-.17,3.09-.17,6.16,0,7.98,2.14,11.97,6.42,11.97,1.68,0,3.37-.68,5.07-2.04,1.71-1.36,4.32-3.95,7.85-7.76-1.39-3.12-2.08-5.44-2.08-6.94,0-3.18,1.3-6.62,3.9-10.32s5.57-6.9,8.89-9.59c3.33-2.69,5.74-4.03,7.24-4.03,2.37,0,3.56,1.71,3.56,5.12,0,2.6-.68,5.72-2.04,9.37-1.36,3.64-3.34,7.81-5.94,12.49.98.81,1.76,1.4,2.34,1.78s1.45.56,2.6.56c2.66,0,5.75-1.18,9.28-3.56v-.02ZM1067.24,117.81c3.01-2.6,6.03-5.68,9.06-9.24s7.47-9.01,13.32-16.35c5.61-7.05,10.02-12.94,13.23-17.65s5.62-8.63,7.24-11.75c1.62-3.12,2.43-5.26,2.43-6.42,0-.87-.23-1.3-.69-1.3-1.27,0-3.92,2.1-7.94,6.29-4.02,4.19-8.6,9.93-13.75,17.22-7.11,10.06-12.26,17.64-15.44,22.73-3.18,5.09-5.67,10.58-7.46,16.48h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1110.96,133.08v-2.08c14.92-15.73,25.18-26.75,30.79-33.05,1.27-7.11,4.34-10.67,9.19-10.67,1.21,0,2.52.35,3.9,1.04l.52,1.65c-.23.69-.35,1.68-.35,2.95,0,1.1.42,3.14,1.26,6.12s1.49,5.48,1.95,7.5.69,4.31.69,6.85c0,3.82-.87,7.48-2.6,10.97-1.73,3.5-4.25,6.85-7.55,10.06-3.3,3.21-7.55,6.49-12.75,9.85,2.08.35,3.73.52,4.94.52,2.37,0,4.93-.59,7.68-1.78,2.75-1.18,5.55-2.78,8.41-4.77,2.86-2,6.2-4.58,10.02-7.76v5.81c-7.4,7.23-14.02,12.71-19.86,16.44s-10.87,5.59-15.09,5.59c-5.44,0-10.47-2.31-15.09-6.94-2.72-2.78-4.41-5.43-5.08-7.98-.67-2.54-1-5.99-1-10.32h.02ZM1143.31,119.8l-1.56-12.66c-3.59,4.05-11.25,11.83-22.99,23.33,3.47.75,5.84,1.76,7.11,3.04,1.27,1.27,3.06,3.73,5.38,7.37,3.93-1.62,6.95-3.83,9.07-6.64,2.11-2.8,3.17-6.64,3.17-11.49,0-.58-.01-1.1-.04-1.56s-.07-.92-.13-1.39h0Z" style="fill:#306fff; stroke-width:0px;"/><g style="isolation:isolate;"><text transform="translate(943.45 229.96)" style="fill:#00d797; font-family:ArialMT, Arial; font-size:24px; isolation:isolate;"><tspan x="0" y="0">version: ${t}</tspan></text></g></svg>`,a="data:image/svg+xml;base64,"+pr(o),h="font-size: 1px; padding: "+Math.floor(100/4)+"px "+Math.floor(580/2)+"px; line-height: "+Math.floor(100/2)+"px;";window.console.log("%c+",h+`background-image: url(${a});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`)},$t=()=>{const{attrs:t,props:e}=r.getCurrentInstance(),{pageShown:n,getTab:o,markDeletableCache:s,removeComponent:i,getComponent:a,addPageScroller:h}=me(),c=Y.useRoute(),l=Y.useRouter(),b=se();let d="",f="";d=t.tId||e.tId;const y=t.pId||e.pId;return f=c.query.__tab,{forward:w=>{const v=J({__tab:f},w.query);b.emit("FORWARD"),l.push({path:w.path,query:v})},backward:(w,v)=>{const T=o(d);if(!T)return;const k=T.pages;let E=0;if(typeof w=="number")E=Math.abs(w);else{let _=1,z=!1;const V=k.list(),X=je(w);v=J(X.query,v);for(let B=k.size()-2;B>=0;B--){if(V[B].path===X.path){z=!0;break}_+=1}z&&(E=_)}if(E===0||k.size()<=E)return;for(let _=0;_<E;_++){const z=k.pop();s(z.id)}const u=k==null?void 0:k.peek(),x=a(u.id);if(x!=null){const _=x.components.DynamicComponent;_.props=J(v,_.props)}b.emit("BACKWARD"),l.push({path:u.path,query:u.query})},addScroller:(...w)=>{h(y,...w)}}},mr=r.defineComponent({__name:"iframe",setup(t){return $t(),()=>{}}}),gr=()=>{const t=se(),{attrs:e}=r.getCurrentInstance();r.onUnmounted(()=>{o()});const n=()=>{t.emit(W.PAGE_LOADING,{tId:e.tId,value:!0})},o=()=>{t.emit(W.PAGE_LOADING,{tId:e.tId,value:!1})};return{openTabLoading:n,closeTabLoading:o}},yr={install(t,e){br("0.1.48"),t.component("VueStackTabs",Nt).use(Sn).use(en().getI18n(e))}};N.IFrame=mr,N.Stack=we,N.StackTab=Nt,N.TabHeaderButton=Ce,N.TabScrollMode=Q,N.default=yr,N.useStackTab=Lt,N.useTabLoading=gr,N.useTabRouter=$t,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-stack-tabs",
3
- "version": "0.1.47",
3
+ "version": "0.1.48",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -90,9 +90,9 @@ emitter.on('FORWARD', () => {
90
90
  emitter.on('BACKWARD', () => {
91
91
  pageSwitch.value = props.pageTransitionBack
92
92
  })
93
- onBeforeUnmount(() => {
94
- clearSession()
95
- })
93
+ // onBeforeUnmount(() => {
94
+ // clearSession()
95
+ // })
96
96
  </script>
97
97
  <template>
98
98
  <div