vue-stack-tabs 0.1.43 → 0.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue-stack-tabs.es.js +143 -143
- package/dist/vue-stack-tabs.umd.js +1 -1
- package/package.json +1 -1
- package/src/lib/hooks/useTabpanel.tsx +5 -5
|
@@ -416,10 +416,10 @@ dt.exports;
|
|
|
416
416
|
},
|
|
417
417
|
_compress: function(a, c, p) {
|
|
418
418
|
if (a == null) return "";
|
|
419
|
-
var f, l, m = {}, S = {},
|
|
419
|
+
var f, l, m = {}, S = {}, E = "", I = "", y = "", w = 2, T = 3, g = 2, O = [], u = 0, _ = 0, k;
|
|
420
420
|
for (k = 0; k < a.length; k += 1)
|
|
421
|
-
if (
|
|
422
|
-
y =
|
|
421
|
+
if (E = a.charAt(k), Object.prototype.hasOwnProperty.call(m, E) || (m[E] = T++, S[E] = !0), I = y + E, Object.prototype.hasOwnProperty.call(m, I))
|
|
422
|
+
y = I;
|
|
423
423
|
else {
|
|
424
424
|
if (Object.prototype.hasOwnProperty.call(S, y)) {
|
|
425
425
|
if (y.charCodeAt(0) < 256) {
|
|
@@ -437,7 +437,7 @@ dt.exports;
|
|
|
437
437
|
} else
|
|
438
438
|
for (l = m[y], f = 0; f < g; f++)
|
|
439
439
|
u = u << 1 | l & 1, _ == c - 1 ? (_ = 0, O.push(p(u)), u = 0) : _++, l = l >> 1;
|
|
440
|
-
w--, w == 0 && (w = Math.pow(2, g), g++), m[
|
|
440
|
+
w--, w == 0 && (w = Math.pow(2, g), g++), m[I] = T++, y = String(E);
|
|
441
441
|
}
|
|
442
442
|
if (y !== "") {
|
|
443
443
|
if (Object.prototype.hasOwnProperty.call(S, y)) {
|
|
@@ -473,7 +473,7 @@ dt.exports;
|
|
|
473
473
|
});
|
|
474
474
|
},
|
|
475
475
|
_decompress: function(a, c, p) {
|
|
476
|
-
var f = [], l = 4, m = 4, S = 3,
|
|
476
|
+
var f = [], l = 4, m = 4, S = 3, E = "", I = [], y, w, T, g, O, u, _, k = { val: p(0), position: c, index: 1 };
|
|
477
477
|
for (y = 0; y < 3; y += 1)
|
|
478
478
|
f[y] = y;
|
|
479
479
|
for (T = 0, O = Math.pow(2, 2), u = 1; u != O; )
|
|
@@ -492,7 +492,7 @@ dt.exports;
|
|
|
492
492
|
case 2:
|
|
493
493
|
return "";
|
|
494
494
|
}
|
|
495
|
-
for (f[3] = _, w = _,
|
|
495
|
+
for (f[3] = _, w = _, I.push(_); ; ) {
|
|
496
496
|
if (k.index > a)
|
|
497
497
|
return "";
|
|
498
498
|
for (T = 0, O = Math.pow(2, S), u = 1; u != O; )
|
|
@@ -509,15 +509,15 @@ dt.exports;
|
|
|
509
509
|
f[m++] = n(T), _ = m - 1, l--;
|
|
510
510
|
break;
|
|
511
511
|
case 2:
|
|
512
|
-
return
|
|
512
|
+
return I.join("");
|
|
513
513
|
}
|
|
514
514
|
if (l == 0 && (l = Math.pow(2, S), S++), f[_])
|
|
515
|
-
|
|
515
|
+
E = f[_];
|
|
516
516
|
else if (_ === m)
|
|
517
|
-
|
|
517
|
+
E = w + w.charAt(0);
|
|
518
518
|
else
|
|
519
519
|
return null;
|
|
520
|
-
|
|
520
|
+
I.push(E), f[m++] = w + E.charAt(0), l--, w = E, l == 0 && (l = Math.pow(2, S), S++);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
};
|
|
@@ -681,11 +681,11 @@ 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 It(t, e, n, s, r, o, i, d, a, c, p, f, l, m, S,
|
|
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
|
-
({ a: r, b: a, c: l, d:
|
|
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:
|
|
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
|
+
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
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 = [];
|
|
@@ -720,8 +720,8 @@ class bt 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 } = Et(BigInt(e), !0), { v0: c, v1: p, v2: f, v3: l, v4: m, v5: S, v6:
|
|
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] =
|
|
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
|
+
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) {
|
|
727
727
|
let r = this.flags;
|
|
@@ -748,8 +748,8 @@ class bt extends as {
|
|
|
748
748
|
b2CompressOut() {
|
|
749
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:
|
|
752
|
-
o[0] = a ^
|
|
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
|
+
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() {
|
|
755
755
|
if (this.finished)
|
|
@@ -903,13 +903,13 @@ const Ce = () => {
|
|
|
903
903
|
const t = ut(), e = ge(), {
|
|
904
904
|
t: n
|
|
905
905
|
} = Me(), s = () => M.value.length, r = (b) => {
|
|
906
|
-
for (const
|
|
907
|
-
const h = ne(
|
|
906
|
+
for (const B of b) {
|
|
907
|
+
const h = ne(B, {
|
|
908
908
|
id: et(),
|
|
909
909
|
refreshable: !0,
|
|
910
910
|
closable: !0,
|
|
911
911
|
iframe: !1
|
|
912
|
-
}),
|
|
912
|
+
}), z = st(h), q = vt(h.path), P = ne(h, {
|
|
913
913
|
closable: !0,
|
|
914
914
|
refreshable: !0,
|
|
915
915
|
iframe: !1
|
|
@@ -918,7 +918,7 @@ const Ce = () => {
|
|
|
918
918
|
tabId: h.id,
|
|
919
919
|
path: q.path,
|
|
920
920
|
query: ne(q.query, {
|
|
921
|
-
__tab:
|
|
921
|
+
__tab: z
|
|
922
922
|
})
|
|
923
923
|
}, ye = new je();
|
|
924
924
|
ye.push(X);
|
|
@@ -937,14 +937,14 @@ const Ce = () => {
|
|
|
937
937
|
}
|
|
938
938
|
const v = window.sessionStorage.getItem(Ye);
|
|
939
939
|
if (v != null) {
|
|
940
|
-
const
|
|
940
|
+
const B = JSON.parse(v, (z, q) => z === "pages" ? new je(q) : q);
|
|
941
941
|
let h = !1;
|
|
942
|
-
for (const
|
|
943
|
-
if (
|
|
942
|
+
for (const z of M.value)
|
|
943
|
+
if (z.id === B.id) {
|
|
944
944
|
h = !0;
|
|
945
945
|
break;
|
|
946
946
|
}
|
|
947
|
-
h || M.value.push(
|
|
947
|
+
h || M.value.push(B);
|
|
948
948
|
}
|
|
949
949
|
Ct = !0;
|
|
950
950
|
}, o = (b) => {
|
|
@@ -960,7 +960,7 @@ const Ce = () => {
|
|
|
960
960
|
return v;
|
|
961
961
|
return null;
|
|
962
962
|
}, c = (b, v) => {
|
|
963
|
-
let
|
|
963
|
+
let B, h;
|
|
964
964
|
if (b.query.__tab ? h = ls(b.query.__tab) : (h = {
|
|
965
965
|
id: et(),
|
|
966
966
|
title: n("VueStackTab.undefined"),
|
|
@@ -969,7 +969,7 @@ const Ce = () => {
|
|
|
969
969
|
iframe: !1
|
|
970
970
|
}, b.query.__tab = st(h)), F.has(h.id) || !v)
|
|
971
971
|
return;
|
|
972
|
-
const
|
|
972
|
+
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());
|
|
973
973
|
if (Te.has(P))
|
|
974
974
|
return ae.get(P);
|
|
975
975
|
const ze = b.query.__src;
|
|
@@ -1001,7 +1001,7 @@ const Ce = () => {
|
|
|
1001
1001
|
});
|
|
1002
1002
|
} else
|
|
1003
1003
|
X.active = !0, (X.pages.isEmpty() || X.pages.peek().id !== ye.id) && X.pages.push(ye);
|
|
1004
|
-
return U(X), ae.has(P) ?
|
|
1004
|
+
return U(X), ae.has(P) ? B = ae.get(P) : (B = /* @__PURE__ */ ee({
|
|
1005
1005
|
name: P,
|
|
1006
1006
|
components: {
|
|
1007
1007
|
DynamicComponent: v
|
|
@@ -1029,64 +1029,64 @@ const Ce = () => {
|
|
|
1029
1029
|
tId: h.id
|
|
1030
1030
|
}, null)]);
|
|
1031
1031
|
}
|
|
1032
|
-
}), ae.set(P,
|
|
1032
|
+
}), ae.set(P, B)), A(P), B;
|
|
1033
1033
|
}, p = (b) => {
|
|
1034
1034
|
const v = he.get(b);
|
|
1035
1035
|
if (v) {
|
|
1036
|
-
for (const
|
|
1037
|
-
if (document.querySelector(
|
|
1038
|
-
const h = v.get(
|
|
1039
|
-
document.querySelector(
|
|
1036
|
+
for (const B of v.keys())
|
|
1037
|
+
if (document.querySelector(B)) {
|
|
1038
|
+
const h = v.get(B);
|
|
1039
|
+
document.querySelector(B).scrollTop = h.top, document.querySelector(B).scrollLeft = h.left;
|
|
1040
1040
|
}
|
|
1041
1041
|
}
|
|
1042
1042
|
}, f = (b) => {
|
|
1043
|
-
var
|
|
1043
|
+
var B, h;
|
|
1044
1044
|
const v = he.get(b);
|
|
1045
1045
|
if (v)
|
|
1046
|
-
for (const
|
|
1046
|
+
for (const z of v.keys()) {
|
|
1047
1047
|
const q = {
|
|
1048
|
-
top: ((
|
|
1049
|
-
left: ((h = document.querySelector(
|
|
1048
|
+
top: ((B = document.querySelector(z)) == null ? void 0 : B.scrollTop) ?? 0,
|
|
1049
|
+
left: ((h = document.querySelector(z)) == null ? void 0 : h.scrollLeft) ?? 0
|
|
1050
1050
|
};
|
|
1051
|
-
v.set(
|
|
1051
|
+
v.set(z, q);
|
|
1052
1052
|
}
|
|
1053
1053
|
}, l = (b) => {
|
|
1054
1054
|
const v = he.get(b);
|
|
1055
1055
|
v && (v.clear(), he.delete(b));
|
|
1056
1056
|
}, m = (b, ...v) => {
|
|
1057
1057
|
he.has(b) || he.set(b, /* @__PURE__ */ new Map());
|
|
1058
|
-
const
|
|
1058
|
+
const B = he.get(b);
|
|
1059
1059
|
for (const h of v)
|
|
1060
|
-
|
|
1060
|
+
B.set(h, {
|
|
1061
1061
|
top: 0,
|
|
1062
1062
|
left: 0
|
|
1063
1063
|
});
|
|
1064
1064
|
}, S = (b) => {
|
|
1065
1065
|
const v = a(b.id);
|
|
1066
|
-
for (const
|
|
1067
|
-
|
|
1066
|
+
for (const B of v.pages.list())
|
|
1067
|
+
L(B.id);
|
|
1068
1068
|
D(), v.pages.clear();
|
|
1069
|
-
},
|
|
1069
|
+
}, E = (b) => {
|
|
1070
1070
|
let v = "";
|
|
1071
|
-
const
|
|
1071
|
+
const B = a(b);
|
|
1072
1072
|
for (let h = M.value.length - 1; h >= 0; h--)
|
|
1073
1073
|
if (b === x(M)[h].id) {
|
|
1074
1074
|
if (!x(M)[h].closable)
|
|
1075
1075
|
return b;
|
|
1076
|
-
for (const
|
|
1077
|
-
|
|
1076
|
+
for (const z of x(M)[h].pages.list())
|
|
1077
|
+
L(z.id), F.add(x(M)[h].id);
|
|
1078
1078
|
x(M)[h].pages.clear(), M.value.length > 1 && x(M)[h].active && (h === 0 ? v = x(M)[h + 1].id : v = x(M)[h - 1].id), x(M).splice(h, 1);
|
|
1079
1079
|
break;
|
|
1080
1080
|
}
|
|
1081
1081
|
return v !== "" && e.emit(Z.TAB_ACTIVE, {
|
|
1082
1082
|
id: v
|
|
1083
|
-
}),
|
|
1084
|
-
},
|
|
1083
|
+
}), B != null && B.active || (D(), F.clear()), v;
|
|
1084
|
+
}, I = () => {
|
|
1085
1085
|
const b = x(M);
|
|
1086
1086
|
for (let v = b.length - 1; v >= 0; v--)
|
|
1087
1087
|
if (b[v].closable) {
|
|
1088
|
-
for (const
|
|
1089
|
-
|
|
1088
|
+
for (const B of b[v].pages.list())
|
|
1089
|
+
L(B.id), F.add(b[v].id);
|
|
1090
1090
|
x(M)[v].pages.clear(), x(M).splice(v, 1);
|
|
1091
1091
|
}
|
|
1092
1092
|
for (const v of b)
|
|
@@ -1099,52 +1099,52 @@ const Ce = () => {
|
|
|
1099
1099
|
});
|
|
1100
1100
|
}, y = (b) => {
|
|
1101
1101
|
const v = x(M);
|
|
1102
|
-
let
|
|
1102
|
+
let B;
|
|
1103
1103
|
for (let h = v.length - 1; h >= 0; h--)
|
|
1104
1104
|
if (v[h].id === b)
|
|
1105
|
-
|
|
1105
|
+
B = v[h];
|
|
1106
1106
|
else if (v[h].closable && v[h].id !== b) {
|
|
1107
|
-
for (const
|
|
1108
|
-
|
|
1107
|
+
for (const z of v[h].pages.list())
|
|
1108
|
+
L(z.id), F.add(v[h].id);
|
|
1109
1109
|
x(M)[h].pages.clear(), x(M).splice(h, 1);
|
|
1110
1110
|
}
|
|
1111
|
-
|
|
1111
|
+
B.active ? (D(), F.clear()) : e.emit(Z.TAB_ACTIVE, {
|
|
1112
1112
|
id: b
|
|
1113
1113
|
});
|
|
1114
1114
|
}, w = (b) => {
|
|
1115
1115
|
let v = -1;
|
|
1116
|
-
const
|
|
1117
|
-
for (let h = 0; h <
|
|
1118
|
-
if (
|
|
1116
|
+
const B = x(M);
|
|
1117
|
+
for (let h = 0; h < B.length; h++)
|
|
1118
|
+
if (B[h].id === b) {
|
|
1119
1119
|
v = h - 1;
|
|
1120
1120
|
break;
|
|
1121
1121
|
}
|
|
1122
1122
|
for (let h = v; h >= 0; h--)
|
|
1123
|
-
if (
|
|
1124
|
-
for (const
|
|
1125
|
-
|
|
1123
|
+
if (B[h].closable) {
|
|
1124
|
+
for (const z of B[h].pages.list())
|
|
1125
|
+
L(z.id), F.add(B[h].id);
|
|
1126
1126
|
x(M)[h].pages.clear(), x(M).splice(h, 1);
|
|
1127
1127
|
}
|
|
1128
|
-
for (const h of
|
|
1128
|
+
for (const h of B)
|
|
1129
1129
|
if (h.active) {
|
|
1130
1130
|
D(), F.clear();
|
|
1131
1131
|
return;
|
|
1132
1132
|
}
|
|
1133
1133
|
e.emit(Z.TAB_ACTIVE, {
|
|
1134
|
-
id:
|
|
1134
|
+
id: B[0].id
|
|
1135
1135
|
});
|
|
1136
1136
|
}, T = (b) => {
|
|
1137
1137
|
const v = x(M);
|
|
1138
|
-
let
|
|
1138
|
+
let B = v.length;
|
|
1139
1139
|
for (let h = 0; h < v.length; h++)
|
|
1140
1140
|
if (v[h].id === b) {
|
|
1141
|
-
|
|
1141
|
+
B = h + 1;
|
|
1142
1142
|
break;
|
|
1143
1143
|
}
|
|
1144
|
-
for (let h = v.length - 1; h >=
|
|
1144
|
+
for (let h = v.length - 1; h >= B; h--)
|
|
1145
1145
|
if (v[h].closable) {
|
|
1146
|
-
for (const
|
|
1147
|
-
|
|
1146
|
+
for (const z of v[h].pages.list())
|
|
1147
|
+
L(z.id), F.add(v[h].id);
|
|
1148
1148
|
x(M)[h].pages.clear(), x(M).splice(h, 1);
|
|
1149
1149
|
}
|
|
1150
1150
|
for (const h of v)
|
|
@@ -1157,12 +1157,12 @@ const Ce = () => {
|
|
|
1157
1157
|
});
|
|
1158
1158
|
}, g = (b) => {
|
|
1159
1159
|
var v;
|
|
1160
|
-
for (const
|
|
1161
|
-
if (
|
|
1162
|
-
const h = (v =
|
|
1163
|
-
for (let
|
|
1164
|
-
if (N.value[
|
|
1165
|
-
N.value.splice(
|
|
1160
|
+
for (const B of x(M))
|
|
1161
|
+
if (B.id === b) {
|
|
1162
|
+
const h = (v = B.pages.peek()) == null ? void 0 : v.id;
|
|
1163
|
+
for (let z = N.value.length - 1; z >= 0; z--)
|
|
1164
|
+
if (N.value[z] === h) {
|
|
1165
|
+
N.value.splice(z, 1), B.active && (de.value = !1, le(() => {
|
|
1166
1166
|
de.value = !0;
|
|
1167
1167
|
}));
|
|
1168
1168
|
break;
|
|
@@ -1175,8 +1175,8 @@ const Ce = () => {
|
|
|
1175
1175
|
b.add(v.pages.peek().id);
|
|
1176
1176
|
});
|
|
1177
1177
|
for (let v = N.value.length - 1; v >= 0; v--) {
|
|
1178
|
-
const
|
|
1179
|
-
b.has(
|
|
1178
|
+
const B = N.value[v];
|
|
1179
|
+
b.has(B) && N.value.splice(v, 1);
|
|
1180
1180
|
}
|
|
1181
1181
|
le(() => {
|
|
1182
1182
|
de.value = !1, le(() => {
|
|
@@ -1189,7 +1189,7 @@ const Ce = () => {
|
|
|
1189
1189
|
ae.set(b, v);
|
|
1190
1190
|
}, _ = (b) => ae.get(b), k = (b) => {
|
|
1191
1191
|
ae.delete(b);
|
|
1192
|
-
},
|
|
1192
|
+
}, L = (b) => {
|
|
1193
1193
|
Te.add(b);
|
|
1194
1194
|
}, D = () => {
|
|
1195
1195
|
for (let b = N.value.length - 1; b >= 0; b--)
|
|
@@ -1202,20 +1202,20 @@ const Ce = () => {
|
|
|
1202
1202
|
new Set(N.value).has(b) || N.value.push(b);
|
|
1203
1203
|
}, C = (b, v = !0) => {
|
|
1204
1204
|
e.emit("FORWARD");
|
|
1205
|
-
for (let
|
|
1206
|
-
const h = M.value[
|
|
1205
|
+
for (let B = M.value.length - 1; B >= 0; B--) {
|
|
1206
|
+
const h = M.value[B];
|
|
1207
1207
|
if (h.id === b) {
|
|
1208
1208
|
if (h.active)
|
|
1209
1209
|
break;
|
|
1210
1210
|
if (h.active = !0, U(h), v) {
|
|
1211
|
-
const
|
|
1211
|
+
const z = h.pages.peek();
|
|
1212
1212
|
t.push({
|
|
1213
|
-
path:
|
|
1214
|
-
query:
|
|
1213
|
+
path: z.path,
|
|
1214
|
+
query: z.query
|
|
1215
1215
|
});
|
|
1216
1216
|
}
|
|
1217
1217
|
} else
|
|
1218
|
-
M.value[
|
|
1218
|
+
M.value[B].active = !1;
|
|
1219
1219
|
}
|
|
1220
1220
|
}, U = (b) => {
|
|
1221
1221
|
window.sessionStorage.setItem(Ke + Ye, JSON.stringify(b));
|
|
@@ -1250,8 +1250,8 @@ const Ce = () => {
|
|
|
1250
1250
|
removeCache: G,
|
|
1251
1251
|
getTab: a,
|
|
1252
1252
|
addTab: d,
|
|
1253
|
-
removeTab:
|
|
1254
|
-
removeAllTabs:
|
|
1253
|
+
removeTab: E,
|
|
1254
|
+
removeAllTabs: I,
|
|
1255
1255
|
removeLeftTabs: w,
|
|
1256
1256
|
removeRightTabs: T,
|
|
1257
1257
|
removeOtherTabs: y,
|
|
@@ -1261,7 +1261,7 @@ const Ce = () => {
|
|
|
1261
1261
|
addComponent: u,
|
|
1262
1262
|
getComponent: _,
|
|
1263
1263
|
removeComponent: k,
|
|
1264
|
-
markDeletableCache:
|
|
1264
|
+
markDeletableCache: L,
|
|
1265
1265
|
removeDeletableCache: D,
|
|
1266
1266
|
refreshTab: g,
|
|
1267
1267
|
refreshAllTabs: O,
|
|
@@ -1370,12 +1370,12 @@ const Ce = () => {
|
|
|
1370
1370
|
onClick: x(i)
|
|
1371
1371
|
}, null, 8, ["title", "onClick"]),
|
|
1372
1372
|
l.contextMenu !== void 0 && l.contextMenu.length > 0 ? (R(), V("div", ms)) : se("", !0),
|
|
1373
|
-
(R(!0), V(Ze, null, lt(l.contextMenu, (S,
|
|
1374
|
-
key:
|
|
1373
|
+
(R(!0), V(Ze, null, lt(l.contextMenu, (S, E) => (R(), me(ce, {
|
|
1374
|
+
key: E,
|
|
1375
1375
|
icon: S.icon,
|
|
1376
1376
|
title: S.title,
|
|
1377
1377
|
disabled: S.disabled(l.tabItem) ? "disabled" : null,
|
|
1378
|
-
onClick: (
|
|
1378
|
+
onClick: (I) => !S.disabled && S.callback(l.tabItem.id)
|
|
1379
1379
|
}, null, 8, ["icon", "title", "disabled", "onClick"]))), 128))
|
|
1380
1380
|
], 4));
|
|
1381
1381
|
}
|
|
@@ -1528,11 +1528,11 @@ var ve = function(t) {
|
|
|
1528
1528
|
return $e.get(t);
|
|
1529
1529
|
if (un(t))
|
|
1530
1530
|
return $e.set(t, $t), $t;
|
|
1531
|
-
var n = getComputedStyle(t), s = mt(t) && t.ownerSVGElement && t.getBBox(), r = !Cs && n.boxSizing === "border-box", o = Ms.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),
|
|
1532
|
-
devicePixelContentBoxSize: ke(Math.round(k * devicePixelRatio), Math.round(
|
|
1531
|
+
var n = getComputedStyle(t), s = mt(t) && t.ownerSVGElement && t.getBBox(), r = !Cs && n.boxSizing === "border-box", o = Ms.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, D = k + I + O + w, G = L + y + g + T, A = ve({
|
|
1532
|
+
devicePixelContentBoxSize: ke(Math.round(k * devicePixelRatio), Math.round(L * devicePixelRatio), o),
|
|
1533
1533
|
borderBoxSize: ke(D, G, o),
|
|
1534
|
-
contentBoxSize: ke(k,
|
|
1535
|
-
contentRect: new ln(f, a, k,
|
|
1534
|
+
contentBoxSize: ke(k, L, o),
|
|
1535
|
+
contentRect: new ln(f, a, k, L)
|
|
1536
1536
|
});
|
|
1537
1537
|
return $e.set(t, A), A;
|
|
1538
1538
|
}, dn = function(t, e, n) {
|
|
@@ -1785,14 +1785,14 @@ const Zs = ["disabled", "title"], js = {
|
|
|
1785
1785
|
});
|
|
1786
1786
|
const m = (A) => {
|
|
1787
1787
|
i.value = A.scrollLeft <= 10, d.value = A.clientWidth + A.scrollLeft - A.scrollWidth >= -10, a.value = A.scrollWidth !== A.clientWidth;
|
|
1788
|
-
}, S = we(() => f.scrollWidth > f.clientWidth),
|
|
1788
|
+
}, S = we(() => f.scrollWidth > f.clientWidth), E = we(() => {
|
|
1789
1789
|
if (!S.value) return 0;
|
|
1790
1790
|
const { clientWidth: A, scrollWidth: C } = f;
|
|
1791
1791
|
return A / C * A;
|
|
1792
|
-
}),
|
|
1792
|
+
}), I = we(() => {
|
|
1793
1793
|
if (!S.value) return 0;
|
|
1794
1794
|
const { clientWidth: A, scrollWidth: C, scrollLeft: U } = f;
|
|
1795
|
-
return (A -
|
|
1795
|
+
return (A - E.value) * (U / (C - A));
|
|
1796
1796
|
}), y = () => {
|
|
1797
1797
|
if (n.value === null || n.value === void 0)
|
|
1798
1798
|
return;
|
|
@@ -1822,16 +1822,16 @@ const Zs = ["disabled", "title"], js = {
|
|
|
1822
1822
|
Object.assign(l, {
|
|
1823
1823
|
startPageX: A.pageX,
|
|
1824
1824
|
startScrollLeft: (C = n.value) == null ? void 0 : C.scrollLeft,
|
|
1825
|
-
startThumbLeft:
|
|
1826
|
-
thumbLeft:
|
|
1827
|
-
}), o.value = !0, document.addEventListener("mousemove", k), document.addEventListener("mouseup",
|
|
1825
|
+
startThumbLeft: I.value,
|
|
1826
|
+
thumbLeft: I.value
|
|
1827
|
+
}), o.value = !0, document.addEventListener("mousemove", k), document.addEventListener("mouseup", L);
|
|
1828
1828
|
}, k = (A) => {
|
|
1829
1829
|
const { clientWidth: C, scrollWidth: U } = f;
|
|
1830
1830
|
let re = l.startThumbLeft + A.pageX - l.startPageX;
|
|
1831
|
-
const Le = C -
|
|
1832
|
-
re < 0 ? re = 0 : re > Le && (re = Le), l.thumbLeft = re, g(re * (U - C) / (C -
|
|
1833
|
-
},
|
|
1834
|
-
o.value = !1, document.removeEventListener("mousemove", k), document.removeEventListener("mouseup",
|
|
1831
|
+
const Le = C - E.value;
|
|
1832
|
+
re < 0 ? re = 0 : re > Le && (re = Le), l.thumbLeft = re, g(re * (U - C) / (C - E.value), !1), A.preventDefault();
|
|
1833
|
+
}, L = (A) => {
|
|
1834
|
+
o.value = !1, document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", L), A.preventDefault();
|
|
1835
1835
|
};
|
|
1836
1836
|
Fe(() => {
|
|
1837
1837
|
var C;
|
|
@@ -1884,8 +1884,8 @@ const Zs = ["disabled", "title"], js = {
|
|
|
1884
1884
|
ref: r,
|
|
1885
1885
|
class: fe(["stack-tab__scrollbar-thumb", { "is-dragging": o.value }]),
|
|
1886
1886
|
style: ct({
|
|
1887
|
-
width: `${
|
|
1888
|
-
transform: `translateX(${
|
|
1887
|
+
width: `${E.value}px`,
|
|
1888
|
+
transform: `translateX(${I.value}px)`
|
|
1889
1889
|
}),
|
|
1890
1890
|
onMousedown: _e(_, ["prevent"])
|
|
1891
1891
|
}, null, 38)
|
|
@@ -1916,7 +1916,7 @@ const Zs = ["disabled", "title"], js = {
|
|
|
1916
1916
|
setup(t, { emit: e }) {
|
|
1917
1917
|
const { t: n } = Me(), s = at("maximum"), r = e, o = $(), { shown: i, contextMenuData: d, showContextMenu: a } = ks(), c = t, { removeTab: p, active: f, tabs: l } = Ce(), m = we(() => typeof c.tabTransition == "string" ? {
|
|
1918
1918
|
name: c.tabTransition
|
|
1919
|
-
} : c.tabTransition), S = we(() => c.tabScrollMode === pe.BOTH || c.tabScrollMode === pe.BUTTON),
|
|
1919
|
+
} : c.tabTransition), S = we(() => c.tabScrollMode === pe.BOTH || c.tabScrollMode === pe.BUTTON), E = c.tabScrollMode === pe.BOTH || c.tabScrollMode === pe.WHEEL, I = (w) => {
|
|
1920
1920
|
w.closable && p(w.id), i.value = !1;
|
|
1921
1921
|
}, y = (w, T, g) => {
|
|
1922
1922
|
o.value && (le(() => {
|
|
@@ -1929,7 +1929,7 @@ const Zs = ["disabled", "title"], js = {
|
|
|
1929
1929
|
ref_key: "scroll",
|
|
1930
1930
|
ref: o,
|
|
1931
1931
|
space: w.space,
|
|
1932
|
-
"is-scroll-wheel": x(
|
|
1932
|
+
"is-scroll-wheel": x(E),
|
|
1933
1933
|
"is-scroll-button": S.value
|
|
1934
1934
|
}, {
|
|
1935
1935
|
default: ue(() => [
|
|
@@ -1947,8 +1947,8 @@ const Zs = ["disabled", "title"], js = {
|
|
|
1947
1947
|
(u) => x(a)(u, g, O, x(l).length),
|
|
1948
1948
|
["prevent"]
|
|
1949
1949
|
),
|
|
1950
|
-
onMouseup: _e((u) =>
|
|
1951
|
-
onClose:
|
|
1950
|
+
onMouseup: _e((u) => I(g), ["middle", "prevent"]),
|
|
1951
|
+
onClose: I,
|
|
1952
1952
|
onActive: y
|
|
1953
1953
|
}, null, 8, ["contextmenu", "item", "onContextmenu", "onMouseup"]))), 128))
|
|
1954
1954
|
]),
|
|
@@ -1987,12 +1987,12 @@ function Ks(t, e, n) {
|
|
|
1987
1987
|
function m() {
|
|
1988
1988
|
p && clearTimeout(p);
|
|
1989
1989
|
}
|
|
1990
|
-
function S(
|
|
1991
|
-
var y =
|
|
1990
|
+
function S(I) {
|
|
1991
|
+
var y = I || {}, w = y.upcomingOnly, T = w === void 0 ? !1 : w;
|
|
1992
1992
|
m(), f = !T;
|
|
1993
1993
|
}
|
|
1994
|
-
function
|
|
1995
|
-
for (var
|
|
1994
|
+
function E() {
|
|
1995
|
+
for (var I = arguments.length, y = new Array(I), w = 0; w < I; w++)
|
|
1996
1996
|
y[w] = arguments[w];
|
|
1997
1997
|
var T = this, g = Date.now() - l;
|
|
1998
1998
|
if (f)
|
|
@@ -2005,13 +2005,13 @@ function Ks(t, e, n) {
|
|
|
2005
2005
|
}
|
|
2006
2006
|
!d && c && !p && O(), m(), c === void 0 && g > t ? d ? (l = Date.now(), o || (p = setTimeout(c ? u : O, t))) : O() : o !== !0 && (p = setTimeout(c ? u : O, c === void 0 ? t - g : t));
|
|
2007
2007
|
}
|
|
2008
|
-
return
|
|
2008
|
+
return E.cancel = S, E;
|
|
2009
2009
|
}
|
|
2010
2010
|
let Ft;
|
|
2011
2011
|
const Js = () => {
|
|
2012
|
-
const t = ut(), { active: e, hasTab: n, pageShown: s, reset: r, canAddTab: o, renewTab: i, getTab: d } = Ce(), a = ge(), c = Ks(500, (m, S = !1) => new Promise((
|
|
2012
|
+
const t = ut(), { active: e, hasTab: n, pageShown: s, reset: r, canAddTab: o, renewTab: i, getTab: d } = Ce(), a = ge(), c = Ks(500, (m, S = !1) => new Promise((E, I) => {
|
|
2013
2013
|
if (!s.value) {
|
|
2014
|
-
|
|
2014
|
+
I();
|
|
2015
2015
|
return;
|
|
2016
2016
|
}
|
|
2017
2017
|
const y = ne(m, {
|
|
@@ -2027,32 +2027,32 @@ const Js = () => {
|
|
|
2027
2027
|
}));
|
|
2028
2028
|
}
|
|
2029
2029
|
if (n(y.id) && !S) {
|
|
2030
|
-
a.emit(Z.TAB_ACTIVE, { id: y.id }),
|
|
2030
|
+
a.emit(Z.TAB_ACTIVE, { id: y.id }), E(y.id);
|
|
2031
2031
|
return;
|
|
2032
2032
|
}
|
|
2033
2033
|
if (y.id || (y.id = et()), !o()) {
|
|
2034
|
-
|
|
2034
|
+
I("Max Size");
|
|
2035
2035
|
return;
|
|
2036
2036
|
}
|
|
2037
|
-
p(m, y),
|
|
2037
|
+
p(m, y), E(y.id);
|
|
2038
2038
|
})), p = (m, S) => {
|
|
2039
|
-
const
|
|
2040
|
-
let
|
|
2039
|
+
const E = st(S);
|
|
2040
|
+
let I = ne(
|
|
2041
2041
|
{
|
|
2042
|
-
__tab:
|
|
2042
|
+
__tab: E
|
|
2043
2043
|
},
|
|
2044
2044
|
m.query
|
|
2045
2045
|
), y;
|
|
2046
2046
|
if (m.iframe) {
|
|
2047
2047
|
const w = encodeURIComponent(m.path);
|
|
2048
|
-
y = Ft,
|
|
2048
|
+
y = Ft, I.__src = w;
|
|
2049
2049
|
} else {
|
|
2050
2050
|
const w = vt(m.path);
|
|
2051
|
-
y = w.path,
|
|
2051
|
+
y = w.path, I = ne(w.query, I);
|
|
2052
2052
|
}
|
|
2053
2053
|
t.push({
|
|
2054
2054
|
path: y,
|
|
2055
|
-
query:
|
|
2055
|
+
query: I
|
|
2056
2056
|
});
|
|
2057
2057
|
};
|
|
2058
2058
|
return { openNewTab: c, setIFramePath: (m) => {
|
|
@@ -2079,10 +2079,10 @@ const Js = () => {
|
|
|
2079
2079
|
},
|
|
2080
2080
|
emits: ["onActive", "onPageLoaded"],
|
|
2081
2081
|
setup(t, { emit: e }) {
|
|
2082
|
-
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(),
|
|
2083
|
-
xn("maximum",
|
|
2084
|
-
const { setIFramePath:
|
|
2085
|
-
|
|
2082
|
+
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 = $(!1);
|
|
2083
|
+
xn("maximum", E);
|
|
2084
|
+
const { setIFramePath: I } = Js();
|
|
2085
|
+
I(m.iframePath), c(m.globalScroll), S(m.i18n), Tn(() => {
|
|
2086
2086
|
d(m.defaultTabs), f(m.sessionPrefix);
|
|
2087
2087
|
});
|
|
2088
2088
|
const y = (u, _) => i(u, _), w = (u) => {
|
|
@@ -2103,11 +2103,11 @@ const Js = () => {
|
|
|
2103
2103
|
}), (u, _) => {
|
|
2104
2104
|
const k = jt("router-view");
|
|
2105
2105
|
return R(), V("div", {
|
|
2106
|
-
class: fe(["stack-tab", { "stack-tab__maximum":
|
|
2106
|
+
class: fe(["stack-tab", { "stack-tab__maximum": E.value }]),
|
|
2107
2107
|
style: ct({
|
|
2108
2108
|
width: u.width,
|
|
2109
2109
|
height: u.height,
|
|
2110
|
-
"z-index":
|
|
2110
|
+
"z-index": E.value ? x(sn)("body *:not(.stack-tab,.stack-tab *)") : void 0
|
|
2111
2111
|
})
|
|
2112
2112
|
}, [
|
|
2113
2113
|
W(Ys, {
|
|
@@ -2126,7 +2126,7 @@ const Js = () => {
|
|
|
2126
2126
|
}, 8, ["space", "tab-transition", "max"]),
|
|
2127
2127
|
Q("div", Qs, [
|
|
2128
2128
|
W(k, null, {
|
|
2129
|
-
default: ue(({ Component:
|
|
2129
|
+
default: ue(({ Component: L, route: D }) => [
|
|
2130
2130
|
W(Jt, {
|
|
2131
2131
|
name: g.value,
|
|
2132
2132
|
appear: "",
|
|
@@ -2134,7 +2134,7 @@ const Js = () => {
|
|
|
2134
2134
|
}, {
|
|
2135
2135
|
default: ue(() => [
|
|
2136
2136
|
(R(), me(Sn, { include: x(r) }, [
|
|
2137
|
-
x(s) ? (R(), me(On(y(D,
|
|
2137
|
+
x(s) ? (R(), me(On(y(D, L)), {
|
|
2138
2138
|
key: D.fullPath,
|
|
2139
2139
|
onOnLoaded: T
|
|
2140
2140
|
}, null, 32)) : se("", !0)
|
|
@@ -2150,13 +2150,13 @@ const Js = () => {
|
|
|
2150
2150
|
appear: ""
|
|
2151
2151
|
}, {
|
|
2152
2152
|
default: ue(() => [
|
|
2153
|
-
(R(!0), V(Ze, null, lt(x(n).filter((
|
|
2154
|
-
key:
|
|
2153
|
+
(R(!0), V(Ze, null, lt(x(n).filter((L) => L.iframe), (L) => Gt((R(), V("iframe", {
|
|
2154
|
+
key: L.id,
|
|
2155
2155
|
class: "stack-tab__iframe",
|
|
2156
|
-
src: /^(javascript|data):/i.test(
|
|
2156
|
+
src: /^(javascript|data):/i.test(L.url ?? "") ? "about:blank" : L.url,
|
|
2157
2157
|
frameborder: "0"
|
|
2158
2158
|
}, null, 8, er)), [
|
|
2159
|
-
[Yt,
|
|
2159
|
+
[Yt, L.active]
|
|
2160
2160
|
])), 128))
|
|
2161
2161
|
]),
|
|
2162
2162
|
_: 1
|
|
@@ -2229,23 +2229,23 @@ const sr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" :
|
|
|
2229
2229
|
if (typeof y == "number")
|
|
2230
2230
|
O = Math.abs(y);
|
|
2231
2231
|
else {
|
|
2232
|
-
let k = 1,
|
|
2232
|
+
let k = 1, L = !1;
|
|
2233
2233
|
const D = g.list(), G = vt(y);
|
|
2234
2234
|
w = ne(G.query, w);
|
|
2235
2235
|
for (let A = g.size() - 2; A >= 0; A--) {
|
|
2236
2236
|
if (D[A].path === G.path) {
|
|
2237
|
-
|
|
2237
|
+
L = !0;
|
|
2238
2238
|
break;
|
|
2239
2239
|
}
|
|
2240
2240
|
k += 1;
|
|
2241
2241
|
}
|
|
2242
|
-
|
|
2242
|
+
L && (O = k);
|
|
2243
2243
|
}
|
|
2244
2244
|
if (O === 0 || g.size() <= O)
|
|
2245
2245
|
return;
|
|
2246
2246
|
for (let k = 0; k < O; k++) {
|
|
2247
|
-
const
|
|
2248
|
-
r(
|
|
2247
|
+
const L = g.pop();
|
|
2248
|
+
r(L.id);
|
|
2249
2249
|
}
|
|
2250
2250
|
const u = g == null ? void 0 : g.peek(), _ = i(u.id);
|
|
2251
2251
|
if (_ != null) {
|
|
@@ -2280,7 +2280,7 @@ const sr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" :
|
|
|
2280
2280
|
return { openTabLoading: n, closeTabLoading: s };
|
|
2281
2281
|
}, wr = {
|
|
2282
2282
|
install(t, e) {
|
|
2283
|
-
ur("0.1.
|
|
2283
|
+
ur("0.1.44"), t.component("VueStackTabs", tr).use(hs).use(Un().getI18n(e));
|
|
2284
2284
|
}
|
|
2285
2285
|
};
|
|
2286
2286
|
export {
|
|
@@ -2,4 +2,4 @@
|
|
|
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 Qe(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 et(t,e){return Object.keys(e).forEach(n=>{e[n]instanceof Object&&n in t&&(e[n]={...e[n],...et(t[n],e[n])})}),{...t||{},...e}}const Jt=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",tt=(t=>Jt?Symbol(t):"_vt_"+t)("i18n");function de(){return r.inject(tt)}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=Qe(o[a],s)||Qe(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(tt,i)},changeLocale(s){n.value=s},setLocaleMessage(s,i){o[s]=et(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})}}},nt=({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,nt({wrap:e,left:a,top:h})}}const rt=(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",he=Le.length,ot=Math.pow(2,48)-1,nn=10,rn=16;function on(t){var e=Math.floor(t()*he);return e===he&&(e=he-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%he,o=Le.charAt(n)+o,t=(t-n)/he;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 ze=ln(),Ne={exports:{}};Ne.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={},A="",C="",w="",v=2,T=3,k=2,E=[],u=0,x=0,_;for(_=0;_<c.length;_+=1)if(A=c.charAt(_),Object.prototype.hasOwnProperty.call(y,A)||(y[A]=T++,S[A]=!0),C=w+A,Object.prototype.hasOwnProperty.call(y,C))w=C;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[C]=T++,w=String(A)}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,A="",C=[],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,C.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 C.join("")}if(f==0&&(f=Math.pow(2,S),S++),d[x])A=d[x];else if(x===y)A=v+v.charAt(0);else return null;C.push(A),d[y++]=v+A.charAt(0),f--,v=A,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})}(Ne);var st=Ne.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})(),Ve={encode:t=>{let e="";for(let n=0,o=t.length;n<o;n++)e+=at[t[n]];return e},encodeStr:t=>Ve.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(Ve.decode(t)),is:t=>!(t.length%2||!/^[a-fA-F0-9]*$/.test(t))};function pe(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 Re(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 De(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){Re(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 $e(t){return typeof t=="string"&&(t=mn(t)),Re(t),t}class gn{clone(){return this._cloneInto()}}function yn(t){const e=(o,s)=>t(s).update($e(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,pe(e),pe(n),pe(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){De(this);const{blockLen:n,buffer:o,buffer32:s}=this;e=$e(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){De(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,A,C,w,v,T){let k=0;for(let E=0;E<o;E++)({a:s,b:c,c:f,d:C}=ee(s,c,f,C,n[e+t[k++]])),{a:s,b:c,c:f,d:C}=te(s,c,f,C,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:A,d:T}=ee(h,d,A,T,n[e+t[k++]]),{a:h,b:d,c:A,d:T}=te(h,d,A,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:A,d:C}=ee(i,b,A,C,n[e+t[k++]]),{a:i,b,c:A,d:C}=te(i,b,A,C,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:A,v12:C,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 Pe 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,pe(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=$e(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 Pe({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:A,v7:C,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]=A^x,i[7]=C^_}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:A,v8:C,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^C,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]=A^x,i[8]=e[0]^C,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){De(this,!1),Re(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 pe(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 Pe(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 Ve.encode(s)};function We(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 qe(t,e,n=".",o){if(!We(e))return qe(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]]:We(a)&&We(s[i])?s[i]=qe(a,s[i],(n?`${n}.`:"")+i.toString(),o):s[i]=a))}return s}function _n(t){return(...e)=>e.reduce((n,o)=>qe(n,o,"",t),{})}const J=_n(),Fe=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={key:0,class:"stack-tab-loading-mask"},Bn=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",En,i[0]||(i[0]=[r.createElementVNode("div",{class:"stack-tab-loading--spin turn"},null,-1)]))):r.createCommentVNode("",!0)}}),I=r.ref([]),je=[],R=r.ref([]),ne=new Map,be=new Set,W=new Set,ie=r.ref(!0),He="stacktab-active-tab",ae=new Map;let bt=!1,Se=0,mt=!1,Ze="";const me=()=>{const t=Y.useRouter(),e=se(),{t:n}=de(),o=()=>I.value.length,s=m=>{for(const O of m){const p=J(O,{id:ze(),refreshable:!0,closable:!0,iframe:!1}),L=Ue(p),F=Fe(p.path),D=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})},ue=new we;ue.push(j);const G={id:p.id,title:D.title,closable:D.closable,refreshable:D.refreshable,iframe:D.iframe,active:!1,pages:ue};R.value.push(Me),je.push(G),I.value.push({...G})}const g=window.sessionStorage.getItem(He);if(g!=null){const O=JSON.parse(g,(L,F)=>L==="pages"?new we(F):F);let p=!1;for(const L of I.value)if(L.id===O.id){p=!0;break}p||I.value.push(O)}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 O,p;if(m.query.__tab?p=vn(m.query.__tab):(p={id:ze(),title:n("VueStackTab.undefined"),closable:!0,refreshable:!0,iframe:!1},m.query.__tab=Ue(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,D=pt(p.id,L===F?F:m.path,m.query.valueOf());if(be.has(D))return ne.get(D);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 ue={id:D,tabId:p.id,path:m.path,query:m.query};if(j===null){const G=new we;G.push(ue),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!==ue.id)&&j.pages.push(ue);return q(j),ne.has(D)?O=ne.get(D):(O=r.defineComponent({name:D,components:{DynamicComponent:g},emits:{onLoaded:null},setup(G,Ut){return r.onMounted(()=>{Ut.emit("onLoaded"),y(D,".cache-page-wrapper")}),r.onDeactivated(()=>{d(D)}),r.onActivated(()=>{Ut.emit("onLoaded"),b(D),V(),W.clear(),g.props=null}),r.onUnmounted(()=>{f(D)}),()=>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:D},null),r.createVNode(Bn,{tId:p.id},null)])}}),ne.set(D,O)),B(D),O},b=m=>{const g=ae.get(m);if(g){for(const O of g.keys())if(document.querySelector(O)){const p=g.get(O);document.querySelector(O).scrollTop=p.top,document.querySelector(O).scrollLeft=p.left}}},d=m=>{var O,p;const g=ae.get(m);if(g)for(const L of g.keys()){const F={top:((O=document.querySelector(L))==null?void 0:O.scrollTop)??0,left:((p=document.querySelector(L))==null?void 0:p.scrollLeft)??0};g.set(L,F)}},f=m=>{const g=ae.get(m);g&&(g.clear(),ae.delete(m))},y=(m,...g)=>{ae.has(m)||ae.set(m,new Map);const O=ae.get(m);for(const p of g)O.set(p,{top:0,left:0})},S=m=>{const g=c(m.id);for(const O of g.pages.list())z(O.id);V(),g.pages.clear()},A=m=>{let g="";const O=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())_(L.id),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}),O!=null&&O.active||(V(),W.clear()),g},C=()=>{const m=r.unref(I);for(let g=m.length-1;g>=0;g--)if(m[g].closable){for(const O of m[g].pages.list())_(O.id),z(O.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 O;for(let p=g.length-1;p>=0;p--)if(g[p].id===m)O=g[p];else if(g[p].closable&&g[p].id!==m){for(const L of g[p].pages.list())_(L.id),z(L.id),W.add(g[p].id);r.unref(I)[p].pages.clear(),r.unref(I).splice(p,1)}O.active?(V(),W.clear()):e.emit(U.TAB_ACTIVE,{id:m})},v=m=>{let g=-1;const O=r.unref(I);for(let p=0;p<O.length;p++)if(O[p].id===m){g=p-1;break}for(let p=g;p>=0;p--)if(O[p].closable){for(const L of O[p].pages.list())_(L.id),z(L.id),W.add(O[p].id);r.unref(I)[p].pages.clear(),r.unref(I).splice(p,1)}for(const p of O)if(p.active){V(),W.clear();return}e.emit(U.TAB_ACTIVE,{id:O[0].id})},T=m=>{const g=r.unref(I);let O=g.length;for(let p=0;p<g.length;p++)if(g[p].id===m){O=p+1;break}for(let p=g.length-1;p>=O;p--)if(g[p].closable){for(const L of g[p].pages.list())_(L.id),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 O of r.unref(I))if(O.id===m){const p=(g=O.pages.peek())==null?void 0:g.id;for(let L=R.value.length-1;L>=0;L--)if(R.value[L]===p){R.value.splice(L,1),O.active&&(ie.value=!1,r.nextTick(()=>{ie.value=!0}));break}break}},E=()=>{const m=new Set;I.value.forEach(g=>{m.add(g.pages.peek().id)});for(let g=R.value.length-1;g>=0;g--){const O=R.value[g];m.has(O)&&R.value.splice(g,1)}r.nextTick(()=>{ie.value=!1,r.nextTick(()=>{setTimeout(()=>{ie.value=!0},300)})})},u=(m,g)=>{ne.set(m,g)},x=m=>ne.get(m),_=m=>{ne.delete(m)},z=m=>{be.add(m)},V=()=>{for(let m=R.value.length-1;m>=0;m--)be.has(R.value[m])&&(r.unref(R).splice(m,1),_(R.value[m]));be.clear()},X=m=>{for(let g=R.value.length-1;g>=0;g--)m===R.value[g]&&r.unref(R).splice(g,1)},B=m=>{new Set(R.value).has(m)||R.value.push(m)},M=(m,g=!0)=>{e.emit("FORWARD");for(let O=I.value.length-1;O>=0;O--){const p=I.value[O];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[O].active=!1}},q=m=>{window.sessionStorage.setItem(Ze+He,JSON.stringify(m))},oe=()=>{window.sessionStorage.removeItem(Ze+He)},Ie=()=>{ie.value=!1,Pt(),r.nextTick(()=>{r.unref(I).push(...je),e.emit(U.TAB_ACTIVE,{id:je[0].id}),r.nextTick(()=>{ie.value=!0})})},Pt=()=>{r.unref(I).splice(0),ne.clear(),be.clear(),W.clear(),r.unref(R).splice(0)};return{tabs:I,caches:R,pageShown:ie,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:A,removeAllTabs:C,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=>{Ze=m}}},On={class:"stack-tab__contextmenu-item"},re=r.defineComponent({__name:"ContextMenuItem",props:{icon:{},title:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",On,[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)]))}}),An={key:0,class:"divider div-transparent"},Cn=((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}=de(),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(rt)(".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",An)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(f.contextMenu,(S,A)=>(r.openBlock(),r.createBlock(re,{key:A,icon:S.icon,title:S.title,disabled:S.disabled(f.tabItem)?"disabled":null,onClick:C=>!S.disabled&&S.callback(f.tabItem.id)},null,8,["icon","title","disabled","onClick"]))),128))],4))}}),[["__scopeId","data-v-d598be6e"]]),In=()=>{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}},Mn={class:"stack-tab__item-title"},Ln=["title"],zn=["title"],Nn=r.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(t,{emit:e}){const n=e,o=se(),{t:s}=de(),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",Mn,[r.createElementVNode("div",{class:"stack-tab__item-title-content",title:h.value},r.toDisplayString(h.value),9,Ln)]),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 ce=[],Vn=function(){return ce.some(function(t){return t.activeTargets.length>0})},Rn=function(){return ce.some(function(t){return t.skippedTargets.length>0})},gt="ResizeObserver loop completed with undelivered notifications.",Dn=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 le=function(t){return Object.freeze(t)},$n=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,le(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,le(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}(),Xe=function(t){return t instanceof SVGElement&&"getBBox"in t},kt=function(t){if(Xe(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)},Pn=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/,Un=/^tb|vertical/,Wn=/msie|trident/i.test(ye.navigator&&ye.navigator.userAgent),H=function(t){return parseFloat(t||"0")},fe=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new $n((n?e:t)||0,(n?t:e)||0)},_t=le({devicePixelContentBoxSize:fe(),borderBoxSize:fe(),contentBoxSize:fe(),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=Xe(t)&&t.ownerSVGElement&&t.getBBox(),s=!Wn&&n.boxSizing==="border-box",i=Un.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),A=o?0:H(n.borderLeftWidth),C=d+l,w=c+b,v=A+y,T=f+S,k=h?t.offsetHeight-T-t.clientHeight:0,E=a?t.offsetWidth-v-t.clientWidth:0,u=s?C+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=_+C+E+v,X=z+w+k+T,B=le({devicePixelContentBoxSize:fe(Math.round(_*devicePixelRatio),Math.round(z*devicePixelRatio),i),borderBoxSize:fe(V,X,i),contentBoxSize:fe(_,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}},qn=function(){function t(e){var n=xt(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=le([n.borderBoxSize]),this.contentBoxSize=le([n.contentBoxSize]),this.devicePixelContentBoxSize=le([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},Fn=function(){var t=1/0,e=[];ce.forEach(function(a){if(a.activeTargets.length!==0){var h=[];a.activeTargets.forEach(function(l){var b=new qn(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){ce.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))})})},jn=function(){var t=0;for(Et(t);Vn();)t=Fn(),Et(t);return Rn()&&Dn(),t>0},Ge,Bt=[],Hn=function(){return Bt.splice(0).forEach(function(t){return t()})},Zn=function(t){if(!Ge){var e=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return Hn()}).observe(n,o),Ge=function(){n.textContent="".concat(e?e--:e++)}}Bt.push(t),Ge()},Xn=function(t){Zn(function(){requestAnimationFrame(t)})},Be=0,Gn=function(){return!!Be},Yn=250,Kn={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},Ye=!1,Jn=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=Yn),!Ye){Ye=!0;var o=At(e);Xn(function(){var s=!1;try{s=jn()}finally{if(Ye=!1,e=o-At(),!Gn())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,Kn)};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}(),Ke=new Jn,Ct=function(t){!Be&&t>0&&Ke.start(),Be+=t,!Be&&Ke.stop()},Qn=function(t){return!Xe(t)&&!Pn(t)&&getComputedStyle(t).display==="inline"},er=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 Qn(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),tr=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 tr(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&&ce.push(s),s.observationTargets.push(new er(n,o&&o.box)),Ct(1),Ke.schedule())},t.unobserve=function(e,n){var o=Oe.get(e),s=It(o.observationTargets,n),i=o.observationTargets.length===1;s>=0&&(i&&ce.splice(ce.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 nr=["disabled","title"],rr={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",rr,[r.renderSlot(e.$slots,"icon")])):r.createCommentVNode("",!0)],10,nr))}}),or=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),A=r.computed(()=>{if(!S.value)return 0;const{clientWidth:B,scrollWidth:M}=d;return B/M*B}),C=r.computed(()=>{if(!S.value)return 0;const{clientWidth:B,scrollWidth:M,scrollLeft:q}=d;return(B-A.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)=>{nt({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:C.value,thumbLeft:C.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-A.value;oe<0?oe=0:oe>Ie&&(oe=Ie),f.thumbLeft=oe,k(oe*(q-M)/(M-A.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:r.withModifiers(u,["prevent"])},[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:`${A.value}px`,transform:`translateX(${C.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))}}),sr={class:"stack-tab__header"},ir=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}=de(),o=r.inject("maximum"),s=e,i=r.ref(),{shown:a,contextMenuData:h,showContextMenu:c}=In(),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),A=l.tabScrollMode===Q.BOTH||l.tabScrollMode===Q.WHEEL,C=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",sr,[r.renderSlot(v.$slots,"leftButton"),r.createVNode(or,{ref_key:"scroll",ref:i,space:v.space,"is-scroll-wheel":r.unref(A),"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(Nn,{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=>C(k),["middle","prevent"]),onClose:C,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(Cn,{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 ar(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(C){var w=C||{},v=w.upcomingOnly,T=v===void 0?!1:v;y(),d=!T}function A(){for(var C=arguments.length,w=new Array(C),v=0;v<C;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 A.cancel=S,A}let Lt;const zt=()=>{const t=Y.useRouter(),{active:e,hasTab:n,pageShown:o,reset:s,canAddTab:i,renewTab:a,getTab:h}=me(),c=se(),l=ar(500,(y,S=!1)=>new Promise((A,C)=>{if(!o.value){C();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}),A(w.id);return}if(w.id||(w.id=ze()),!i()){C("Max Size");return}b(y,w),A(w.id)})),b=(y,S)=>{const A=Ue(S);let C=J({__tab:A},y.query),w;if(y.iframe){const v=encodeURIComponent(y.path);w=Lt,C.__src=v}else{const v=Fe(y.path);w=v.path,C=J(v.query,C)}t.push({path:w,query:C})};return{openNewTab:l,setIFramePath:y=>{Lt=y},active:e,reset:s,getWrapper:()=>document.getElementsByClassName("cache-page-wrapper")[0]}},cr={class:"stack-tab__container"},lr=["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}=de(),A=r.ref(!1);r.provide("maximum",A);const{setIFramePath:C}=zt();C(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":A.value}]),style:r.normalizeStyle({width:u.width,height:u.height,"z-index":A.value?r.unref(rt)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[r.createVNode(ir,{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",cr,[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.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,lr)),[[r.vShow,z.active]])),128))]),_:1},8,["name"])])],6)}}}),Je=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 fr=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),Rt=typeof btoa=="function"?t=>btoa(t):Je?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},ur=Je?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(""))},dr=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)}},hr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,pr=t=>t.replace(hr,dr),Dt=Je?t=>Buffer.from(t,"utf8").toString("base64"):Vt?t=>ur(Vt.encode(t)):t=>Rt(pr(t)),br=(t,e=!1)=>e?fr(Dt(t)):Dt(t),mr=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,"+br(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=Fe(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)}}},gr=r.defineComponent({__name:"iframe",setup(t){return $t(),()=>{}}}),yr=()=>{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}},kr={install(t,e){mr("0.1.43"),t.component("VueStackTabs",Nt).use(Sn).use(en().getI18n(e))}};N.IFrame=gr,N.Stack=we,N.StackTab=Nt,N.TabHeaderButton=Ce,N.TabScrollMode=Q,N.default=kr,N.useStackTab=zt,N.useTabLoading=yr,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 Qe(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 et(t,e){return Object.keys(e).forEach(n=>{e[n]instanceof Object&&n in t&&(e[n]={...e[n],...et(t[n],e[n])})}),{...t||{},...e}}const Jt=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",tt=(t=>Jt?Symbol(t):"_vt_"+t)("i18n");function de(){return r.inject(tt)}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=Qe(o[a],s)||Qe(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(tt,i)},changeLocale(s){n.value=s},setLocaleMessage(s,i){o[s]=et(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})}}},nt=({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,nt({wrap:e,left:a,top:h})}}const rt=(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",he=Le.length,ot=Math.pow(2,48)-1,nn=10,rn=16;function on(t){var e=Math.floor(t()*he);return e===he&&(e=he-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%he,o=Le.charAt(n)+o,t=(t-n)/he;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 ze=ln(),Ne={exports:{}};Ne.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})}(Ne);var st=Ne.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})(),Ve={encode:t=>{let e="";for(let n=0,o=t.length;n<o;n++)e+=at[t[n]];return e},encodeStr:t=>Ve.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(Ve.decode(t)),is:t=>!(t.length%2||!/^[a-fA-F0-9]*$/.test(t))};function pe(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 Re(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 De(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){Re(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 $e(t){return typeof t=="string"&&(t=mn(t)),Re(t),t}class gn{clone(){return this._cloneInto()}}function yn(t){const e=(o,s)=>t(s).update($e(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,pe(e),pe(n),pe(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){De(this);const{blockLen:n,buffer:o,buffer32:s}=this;e=$e(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){De(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 Pe 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,pe(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=$e(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 Pe({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){De(this,!1),Re(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 pe(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 Pe(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 Ve.encode(s)};function We(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 qe(t,e,n=".",o){if(!We(e))return qe(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]]:We(a)&&We(s[i])?s[i]=qe(a,s[i],(n?`${n}.`:"")+i.toString(),o):s[i]=a))}return s}function _n(t){return(...e)=>e.reduce((n,o)=>qe(n,o,"",t),{})}const J=_n(),Fe=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={key:0,class:"stack-tab-loading-mask"},Bn=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",En,i[0]||(i[0]=[r.createElementVNode("div",{class:"stack-tab-loading--spin turn"},null,-1)]))):r.createCommentVNode("",!0)}}),I=r.ref([]),je=[],R=r.ref([]),ne=new Map,be=new Set,W=new Set,ie=r.ref(!0),He="stacktab-active-tab",ae=new Map;let bt=!1,Se=0,mt=!1,Ze="";const me=()=>{const t=Y.useRouter(),e=se(),{t:n}=de(),o=()=>I.value.length,s=m=>{for(const C of m){const p=J(C,{id:ze(),refreshable:!0,closable:!0,iframe:!1}),z=Ue(p),F=Fe(p.path),D=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:z})},ue=new we;ue.push(j);const G={id:p.id,title:D.title,closable:D.closable,refreshable:D.refreshable,iframe:D.iframe,active:!1,pages:ue};R.value.push(Me),je.push(G),I.value.push({...G})}const g=window.sessionStorage.getItem(He);if(g!=null){const C=JSON.parse(g,(z,F)=>z==="pages"?new we(F):F);let p=!1;for(const z of I.value)if(z.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:ze(),title:n("VueStackTab.undefined"),closable:!0,refreshable:!0,iframe:!1},m.query.__tab=Ue(p)),W.has(p.id)||!g)return;const z=m.matched[m.matched.length-1].path,F=m.path.endsWith("/")?m.path.substring(0,m.path.length-1):m.path,D=pt(p.id,z===F?F:m.path,m.query.valueOf());if(be.has(D))return ne.get(D);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 ue={id:D,tabId:p.id,path:m.path,query:m.query};if(j===null){const G=new we;G.push(ue),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!==ue.id)&&j.pages.push(ue);return q(j),ne.has(D)?C=ne.get(D):(C=r.defineComponent({name:D,components:{DynamicComponent:g},emits:{onLoaded:null},setup(G,Ut){return r.onMounted(()=>{Ut.emit("onLoaded"),y(D,".cache-page-wrapper")}),r.onDeactivated(()=>{d(D)}),r.onActivated(()=>{Ut.emit("onLoaded"),b(D),V(),W.clear(),g.props=null}),r.onUnmounted(()=>{f(D)}),()=>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:D},null),r.createVNode(Bn,{tId:p.id},null)])}}),ne.set(D,C)),B(D),C},b=m=>{const g=ae.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=ae.get(m);if(g)for(const z of g.keys()){const F={top:((C=document.querySelector(z))==null?void 0:C.scrollTop)??0,left:((p=document.querySelector(z))==null?void 0:p.scrollLeft)??0};g.set(z,F)}},f=m=>{const g=ae.get(m);g&&(g.clear(),ae.delete(m))},y=(m,...g)=>{ae.has(m)||ae.set(m,new Map);const C=ae.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())L(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 z of r.unref(I)[p].pages.list())L(z.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())L(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 z of g[p].pages.list())L(z.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 z of C[p].pages.list())L(z.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 z of g[p].pages.list())L(z.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 z=R.value.length-1;z>=0;z--)if(R.value[z]===p){R.value.splice(z,1),C.active&&(ie.value=!1,r.nextTick(()=>{ie.value=!0}));break}break}},E=()=>{const m=new Set;I.value.forEach(g=>{m.add(g.pages.peek().id)});for(let g=R.value.length-1;g>=0;g--){const C=R.value[g];m.has(C)&&R.value.splice(g,1)}r.nextTick(()=>{ie.value=!1,r.nextTick(()=>{setTimeout(()=>{ie.value=!0},300)})})},u=(m,g)=>{ne.set(m,g)},x=m=>ne.get(m),_=m=>{ne.delete(m)},L=m=>{be.add(m)},V=()=>{for(let m=R.value.length-1;m>=0;m--)be.has(R.value[m])&&(r.unref(R).splice(m,1),_(R.value[m]));be.clear()},X=m=>{for(let g=R.value.length-1;g>=0;g--)m===R.value[g]&&r.unref(R).splice(g,1)},B=m=>{new Set(R.value).has(m)||R.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 z=p.pages.peek();t.push({path:z.path,query:z.query})}}else I.value[C].active=!1}},q=m=>{window.sessionStorage.setItem(Ze+He,JSON.stringify(m))},oe=()=>{window.sessionStorage.removeItem(Ze+He)},Ie=()=>{ie.value=!1,Pt(),r.nextTick(()=>{r.unref(I).push(...je),e.emit(U.TAB_ACTIVE,{id:je[0].id}),r.nextTick(()=>{ie.value=!0})})},Pt=()=>{r.unref(I).splice(0),ne.clear(),be.clear(),W.clear(),r.unref(R).splice(0)};return{tabs:I,caches:R,pageShown:ie,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:L,removeDeletableCache:V,refreshTab:k,refreshAllTabs:E,addPageScroller:y,setGlobalScroll:m=>{mt=m},clearSession:oe,setSessionPrefix:m=>{Ze=m}}},On={class:"stack-tab__contextmenu-item"},re=r.defineComponent({__name:"ContextMenuItem",props:{icon:{},title:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",On,[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)]))}}),An={key:0,class:"divider div-transparent"},Cn=((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}=de(),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(rt)(".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",An)):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"]]),In=()=>{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}},Mn={class:"stack-tab__item-title"},Ln=["title"],zn=["title"],Nn=r.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(t,{emit:e}){const n=e,o=se(),{t:s}=de(),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",Mn,[r.createElementVNode("div",{class:"stack-tab__item-title-content",title:h.value},r.toDisplayString(h.value),9,Ln)]),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 ce=[],Vn=function(){return ce.some(function(t){return t.activeTargets.length>0})},Rn=function(){return ce.some(function(t){return t.skippedTargets.length>0})},gt="ResizeObserver loop completed with undelivered notifications.",Dn=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 le=function(t){return Object.freeze(t)},$n=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,le(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,le(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}(),Xe=function(t){return t instanceof SVGElement&&"getBBox"in t},kt=function(t){if(Xe(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)},Pn=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/,Un=/^tb|vertical/,Wn=/msie|trident/i.test(ye.navigator&&ye.navigator.userAgent),H=function(t){return parseFloat(t||"0")},fe=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new $n((n?e:t)||0,(n?t:e)||0)},_t=le({devicePixelContentBoxSize:fe(),borderBoxSize:fe(),contentBoxSize:fe(),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=Xe(t)&&t.ownerSVGElement&&t.getBBox(),s=!Wn&&n.boxSizing==="border-box",i=Un.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,L=o?o.height:H(n.height)-x-k,V=_+A+E+v,X=L+w+k+T,B=le({devicePixelContentBoxSize:fe(Math.round(_*devicePixelRatio),Math.round(L*devicePixelRatio),i),borderBoxSize:fe(V,X,i),contentBoxSize:fe(_,L,i),contentRect:new yt(d,c,_,L)});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}},qn=function(){function t(e){var n=xt(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=le([n.borderBoxSize]),this.contentBoxSize=le([n.contentBoxSize]),this.devicePixelContentBoxSize=le([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},Fn=function(){var t=1/0,e=[];ce.forEach(function(a){if(a.activeTargets.length!==0){var h=[];a.activeTargets.forEach(function(l){var b=new qn(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){ce.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))})})},jn=function(){var t=0;for(Et(t);Vn();)t=Fn(),Et(t);return Rn()&&Dn(),t>0},Ge,Bt=[],Hn=function(){return Bt.splice(0).forEach(function(t){return t()})},Zn=function(t){if(!Ge){var e=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return Hn()}).observe(n,o),Ge=function(){n.textContent="".concat(e?e--:e++)}}Bt.push(t),Ge()},Xn=function(t){Zn(function(){requestAnimationFrame(t)})},Be=0,Gn=function(){return!!Be},Yn=250,Kn={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},Ye=!1,Jn=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=Yn),!Ye){Ye=!0;var o=At(e);Xn(function(){var s=!1;try{s=jn()}finally{if(Ye=!1,e=o-At(),!Gn())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,Kn)};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}(),Ke=new Jn,Ct=function(t){!Be&&t>0&&Ke.start(),Be+=t,!Be&&Ke.stop()},Qn=function(t){return!Xe(t)&&!Pn(t)&&getComputedStyle(t).display==="inline"},er=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 Qn(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),tr=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 tr(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&&ce.push(s),s.observationTargets.push(new er(n,o&&o.box)),Ct(1),Ke.schedule())},t.unobserve=function(e,n){var o=Oe.get(e),s=It(o.observationTargets,n),i=o.observationTargets.length===1;s>=0&&(i&&ce.splice(ce.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 nr=["disabled","title"],rr={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",rr,[r.renderSlot(e.$slots,"icon")])):r.createCommentVNode("",!0)],10,nr))}}),or=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)=>{nt({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",L)},_=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()},L=B=>{i.value=!1,document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",L),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:r.withModifiers(u,["prevent"])},[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))}}),sr={class:"stack-tab__header"},ir=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}=de(),o=r.inject("maximum"),s=e,i=r.ref(),{shown:a,contextMenuData:h,showContextMenu:c}=In(),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",sr,[r.renderSlot(v.$slots,"leftButton"),r.createVNode(or,{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(Nn,{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(Cn,{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 ar(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 Lt;const zt=()=>{const t=Y.useRouter(),{active:e,hasTab:n,pageShown:o,reset:s,canAddTab:i,renewTab:a,getTab:h}=me(),c=se(),l=ar(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=ze()),!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=Lt,A.__src=v}else{const v=Fe(y.path);w=v.path,A=J(v.query,A)}t.push({path:w,query:A})};return{openNewTab:l,setIFramePath:y=>{Lt=y},active:e,reset:s,getWrapper:()=>document.getElementsByClassName("cache-page-wrapper")[0]}},cr={class:"stack-tab__container"},lr=["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}=de(),O=r.ref(!1);r.provide("maximum",O);const{setIFramePath:A}=zt();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(rt)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[r.createVNode(ir,{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",cr,[r.createVNode(_,null,{default:r.withCtx(({Component:L,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,L)),{key: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(L=>L.iframe),L=>r.withDirectives((r.openBlock(),r.createElementBlock("iframe",{key:L.id,class:"stack-tab__iframe",src:/^(javascript|data):/i.test(L.url??"")?"about:blank":L.url,frameborder:"0"},null,8,lr)),[[r.vShow,L.active]])),128))]),_:1},8,["name"])])],6)}}}),Je=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 fr=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),Rt=typeof btoa=="function"?t=>btoa(t):Je?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},ur=Je?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(""))},dr=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)}},hr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,pr=t=>t.replace(hr,dr),Dt=Je?t=>Buffer.from(t,"utf8").toString("base64"):Vt?t=>ur(Vt.encode(t)):t=>Rt(pr(t)),br=(t,e=!1)=>e?fr(Dt(t)):Dt(t),mr=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,"+br(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,L=!1;const V=k.list(),X=Fe(w);v=J(X.query,v);for(let B=k.size()-2;B>=0;B--){if(V[B].path===X.path){L=!0;break}_+=1}L&&(E=_)}if(E===0||k.size()<=E)return;for(let _=0;_<E;_++){const L=k.pop();s(L.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)}}},gr=r.defineComponent({__name:"iframe",setup(t){return $t(),()=>{}}}),yr=()=>{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}},kr={install(t,e){mr("0.1.44"),t.component("VueStackTabs",Nt).use(Sn).use(en().getI18n(e))}};N.IFrame=gr,N.Stack=we,N.StackTab=Nt,N.TabHeaderButton=Ce,N.TabScrollMode=Q,N.default=kr,N.useStackTab=zt,N.useTabLoading=yr,N.useTabRouter=$t,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -343,7 +343,7 @@ export default () => {
|
|
|
343
343
|
return id
|
|
344
344
|
}
|
|
345
345
|
for (const item of unref(tabs)[i].pages.list()) {
|
|
346
|
-
removeComponent(item.id)
|
|
346
|
+
// removeComponent(item.id)
|
|
347
347
|
markDeletableCache(item.id)
|
|
348
348
|
deletableTab.add(unref(tabs)[i].id)
|
|
349
349
|
}
|
|
@@ -380,7 +380,7 @@ export default () => {
|
|
|
380
380
|
for (let i = uTabs.length - 1; i >= 0; i--) {
|
|
381
381
|
if (uTabs[i].closable) {
|
|
382
382
|
for (const item of uTabs[i].pages.list()) {
|
|
383
|
-
removeComponent(item.id)
|
|
383
|
+
// removeComponent(item.id)
|
|
384
384
|
markDeletableCache(item.id)
|
|
385
385
|
deletableTab.add(uTabs[i].id)
|
|
386
386
|
}
|
|
@@ -408,7 +408,7 @@ export default () => {
|
|
|
408
408
|
activeTab = uTabs[i]
|
|
409
409
|
} else if (uTabs[i].closable && uTabs[i].id !== id) {
|
|
410
410
|
for (const item of uTabs[i].pages.list()) {
|
|
411
|
-
removeComponent(item.id)
|
|
411
|
+
// removeComponent(item.id)
|
|
412
412
|
markDeletableCache(item.id)
|
|
413
413
|
deletableTab.add(uTabs[i].id)
|
|
414
414
|
}
|
|
@@ -440,7 +440,7 @@ export default () => {
|
|
|
440
440
|
for (let i = startIndex; i >= 0; i--) {
|
|
441
441
|
if (uTabs[i].closable) {
|
|
442
442
|
for (const item of uTabs[i].pages.list()) {
|
|
443
|
-
removeComponent(item.id)
|
|
443
|
+
// removeComponent(item.id)
|
|
444
444
|
markDeletableCache(item.id)
|
|
445
445
|
deletableTab.add(uTabs[i].id)
|
|
446
446
|
}
|
|
@@ -476,7 +476,7 @@ export default () => {
|
|
|
476
476
|
for (let i = uTabs.length - 1; i >= startIndex; i--) {
|
|
477
477
|
if (uTabs[i].closable) {
|
|
478
478
|
for (const item of uTabs[i].pages.list()) {
|
|
479
|
-
removeComponent(item.id)
|
|
479
|
+
// removeComponent(item.id)
|
|
480
480
|
markDeletableCache(item.id)
|
|
481
481
|
deletableTab.add(uTabs[i].id)
|
|
482
482
|
}
|