vue-stack-tabs 0.1.26 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var kn = Object.defineProperty;
|
|
2
2
|
var wn = (e, t, n) => t in e ? kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var vt = (e, t, n) => (wn(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { inject as st, ref as R, reactive as
|
|
4
|
+
import { inject as st, ref as R, reactive as Oe, readonly as mt, toRaw as _n, defineComponent as Y, openBlock as z, createElementBlock as P, createCommentVNode as ee, createElementVNode as X, unref as S, onMounted as Ue, onDeactivated as Tn, onActivated as xn, onUnmounted as Ve, createVNode as N, resolveComponent as qt, normalizeClass as ie, withModifiers as ve, toDisplayString as Gt, normalizeStyle as ot, Fragment as Fe, renderList as it, createBlock as de, nextTick as Ht, computed as pe, renderSlot as me, watch as Sn, withDirectives as Zt, vShow as Xt, withCtx as oe, TransitionGroup as Yt, mergeProps as On, Transition as Jt, provide as En, onBeforeMount as An, onBeforeUnmount as In, KeepAlive as Bn, resolveDynamicComponent as Cn, getCurrentInstance as Kt } from "vue";
|
|
5
5
|
import { useRouter as at, useRoute as Mn } from "vue-router";
|
|
6
6
|
const Ln = {
|
|
7
7
|
VueStackTab: {
|
|
@@ -106,7 +106,7 @@ function qe() {
|
|
|
106
106
|
return st(en);
|
|
107
107
|
}
|
|
108
108
|
function Gn(e) {
|
|
109
|
-
const t = Object.assign({ locale: "en", fallbackLocale: "en", messages: {} }, e), n = R(t.locale), r =
|
|
109
|
+
const t = Object.assign({ locale: "en", fallbackLocale: "en", messages: {} }, e), n = R(t.locale), r = Oe({});
|
|
110
110
|
return Object.entries(t.messages).forEach(([s, o]) => {
|
|
111
111
|
r[s] = o;
|
|
112
112
|
}), {
|
|
@@ -334,7 +334,7 @@ caused by: ${G.fullStack(n)}` : t.stack;
|
|
|
334
334
|
return this.message && (t = `${t}: ${this.message}`), t;
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
const rn = "0123456789ABCDEFGHJKMNPQRSTVWXYZ",
|
|
337
|
+
const rn = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Te = 32, yt = 281474976710655, Jn = 10, Kn = 16, we = Object.freeze({
|
|
338
338
|
source: "ulid"
|
|
339
339
|
});
|
|
340
340
|
function Qn(e) {
|
|
@@ -349,7 +349,7 @@ function Qn(e) {
|
|
|
349
349
|
throw new G({
|
|
350
350
|
info: {
|
|
351
351
|
code: "PRNG_DETECT",
|
|
352
|
-
...
|
|
352
|
+
...we
|
|
353
353
|
}
|
|
354
354
|
}, "Failed to find a reliable PRNG");
|
|
355
355
|
}
|
|
@@ -367,41 +367,41 @@ function nr(e, t) {
|
|
|
367
367
|
throw new G({
|
|
368
368
|
info: {
|
|
369
369
|
code: "ENC_TIME_NAN",
|
|
370
|
-
...
|
|
370
|
+
...we
|
|
371
371
|
}
|
|
372
372
|
}, `Time must be a number: ${e}`);
|
|
373
373
|
if (e > yt)
|
|
374
374
|
throw new G({
|
|
375
375
|
info: {
|
|
376
376
|
code: "ENC_TIME_SIZE_EXCEED",
|
|
377
|
-
...
|
|
377
|
+
...we
|
|
378
378
|
}
|
|
379
379
|
}, `Cannot encode a time larger than ${yt}: ${e}`);
|
|
380
380
|
if (e < 0)
|
|
381
381
|
throw new G({
|
|
382
382
|
info: {
|
|
383
383
|
code: "ENC_TIME_NEG",
|
|
384
|
-
...
|
|
384
|
+
...we
|
|
385
385
|
}
|
|
386
386
|
}, `Time must be positive: ${e}`);
|
|
387
387
|
if (Number.isInteger(e) === !1)
|
|
388
388
|
throw new G({
|
|
389
389
|
info: {
|
|
390
390
|
code: "ENC_TIME_TYPE",
|
|
391
|
-
...
|
|
391
|
+
...we
|
|
392
392
|
}
|
|
393
393
|
}, `Time must be an integer: ${e}`);
|
|
394
394
|
let n, r = "";
|
|
395
395
|
for (let s = t; s > 0; s--)
|
|
396
|
-
n = e %
|
|
396
|
+
n = e % Te, r = rn.charAt(n) + r, e = (e - n) / Te;
|
|
397
397
|
return r;
|
|
398
398
|
}
|
|
399
399
|
function rr() {
|
|
400
400
|
return typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope;
|
|
401
401
|
}
|
|
402
402
|
function sr(e) {
|
|
403
|
-
let t = Math.floor(e() *
|
|
404
|
-
return t ===
|
|
403
|
+
let t = Math.floor(e() * Te);
|
|
404
|
+
return t === Te && (t = Te - 1), rn.charAt(t);
|
|
405
405
|
}
|
|
406
406
|
function sn(e, t) {
|
|
407
407
|
const n = t || Qn(), r = isNaN(e) ? Date.now() : e;
|
|
@@ -640,7 +640,7 @@ const or = new TextEncoder(), ir = new TextDecoder("utf-8", { ignoreBOM: !0 }),
|
|
|
640
640
|
decodeStr: (e) => kt.decode(Qe.decode(e)),
|
|
641
641
|
is: cr
|
|
642
642
|
};
|
|
643
|
-
function
|
|
643
|
+
function xe(e) {
|
|
644
644
|
if (!Number.isSafeInteger(e) || e < 0)
|
|
645
645
|
throw new Error(`Wrong positive integer: ${e}`);
|
|
646
646
|
}
|
|
@@ -699,7 +699,7 @@ function br(e) {
|
|
|
699
699
|
}
|
|
700
700
|
class vr extends pr {
|
|
701
701
|
constructor(t, n, r = {}, s, o, i) {
|
|
702
|
-
if (super(), this.blockLen = t, this.outputLen = n, this.length = 0, this.pos = 0, this.finished = !1, this.destroyed = !1,
|
|
702
|
+
if (super(), this.blockLen = t, this.outputLen = n, this.length = 0, this.pos = 0, this.finished = !1, this.destroyed = !1, xe(t), xe(n), xe(s), n < 0 || n > s)
|
|
703
703
|
throw new Error("outputLen bigger than keyLen");
|
|
704
704
|
if (r.key !== void 0 && (r.key.length < 1 || r.key.length > s))
|
|
705
705
|
throw new Error(`key must be up 1..${s} byte long or undefined`);
|
|
@@ -766,7 +766,7 @@ const xt = /* @__PURE__ */ (() => {
|
|
|
766
766
|
})();
|
|
767
767
|
class ft extends vr {
|
|
768
768
|
constructor(t = {}, n = 0) {
|
|
769
|
-
if (super(64, t.dkLen === void 0 ? 32 : t.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 = t.dkLen === void 0 ? 32 : t.dkLen,
|
|
769
|
+
if (super(64, t.dkLen === void 0 ? 32 : t.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 = t.dkLen === void 0 ? 32 : t.dkLen, xe(this.outputLen), t.key !== void 0 && t.context !== void 0)
|
|
770
770
|
throw new Error("Blake3: only key or context can be specified at same time");
|
|
771
771
|
if (t.key !== void 0) {
|
|
772
772
|
const r = ut(t.key).slice();
|
|
@@ -843,7 +843,7 @@ class ft extends vr {
|
|
|
843
843
|
return this.writeInto(t);
|
|
844
844
|
}
|
|
845
845
|
xof(t) {
|
|
846
|
-
return
|
|
846
|
+
return xe(t), this.xofInto(new Uint8Array(t));
|
|
847
847
|
}
|
|
848
848
|
digestInto(t) {
|
|
849
849
|
if (ln(t, this), this.finished)
|
|
@@ -948,7 +948,7 @@ const wr = kr(), _r = {
|
|
|
948
948
|
install(e) {
|
|
949
949
|
e.provide("tabEmitter", wr);
|
|
950
950
|
}
|
|
951
|
-
},
|
|
951
|
+
}, Ae = () => st("tabEmitter");
|
|
952
952
|
var V = /* @__PURE__ */ ((e) => (e.PAGE_LOADING = "PAGE_LOADING", e.TAB_ACTIVE = "TAB_ACTIVE", e))(V || {});
|
|
953
953
|
const Tr = {
|
|
954
954
|
key: 0,
|
|
@@ -961,16 +961,16 @@ const Tr = {
|
|
|
961
961
|
tId: {}
|
|
962
962
|
},
|
|
963
963
|
setup(e) {
|
|
964
|
-
const t = e, n =
|
|
964
|
+
const t = e, n = Ae(), r = R(!1);
|
|
965
965
|
return n.on(V.PAGE_LOADING, ({ tId: s, value: o }) => {
|
|
966
966
|
s === t.tId && (r.value = o);
|
|
967
967
|
}), (s, o) => r.value ? (z(), P("div", Tr, Sr)) : ee("", !0);
|
|
968
968
|
}
|
|
969
|
-
}), M = R([]), Ce = [], $ = R([]), re = /* @__PURE__ */ new Map(),
|
|
969
|
+
}), M = R([]), Ce = [], $ = R([]), re = /* @__PURE__ */ new Map(), ye = /* @__PURE__ */ new Set(), Me = R(!0), Ot = "stacktab-active-tab", ce = /* @__PURE__ */ new Map();
|
|
970
970
|
let Et = !1, Le = 0, At = !1;
|
|
971
|
-
const
|
|
972
|
-
const e = at(), t =
|
|
973
|
-
Ce.splice(0), $.value.splice(0),
|
|
971
|
+
const Ie = () => {
|
|
972
|
+
const e = at(), t = Ae(), n = () => M.value.length, r = (k) => {
|
|
973
|
+
Ce.splice(0), $.value.splice(0), ye.clear(), re.clear();
|
|
974
974
|
for (const E of k) {
|
|
975
975
|
const m = Q(E, {
|
|
976
976
|
id: sn()
|
|
@@ -985,8 +985,8 @@ const Ae = () => {
|
|
|
985
985
|
query: Q(D.query, {
|
|
986
986
|
__tab: C
|
|
987
987
|
})
|
|
988
|
-
},
|
|
989
|
-
|
|
988
|
+
}, ge = new He();
|
|
989
|
+
ge.push(J);
|
|
990
990
|
const bt = {
|
|
991
991
|
id: m.id,
|
|
992
992
|
title: W.title,
|
|
@@ -994,7 +994,7 @@ const Ae = () => {
|
|
|
994
994
|
refreshable: W.refreshable,
|
|
995
995
|
iframe: W.iframe,
|
|
996
996
|
active: !1,
|
|
997
|
-
pages:
|
|
997
|
+
pages: ge
|
|
998
998
|
};
|
|
999
999
|
Ce.push(bt), M.value.push(bt), $.value.push(he);
|
|
1000
1000
|
}
|
|
@@ -1061,13 +1061,13 @@ const Ae = () => {
|
|
|
1061
1061
|
emits: {
|
|
1062
1062
|
onLoaded: null
|
|
1063
1063
|
},
|
|
1064
|
-
setup(J,
|
|
1064
|
+
setup(J, ge) {
|
|
1065
1065
|
return Ue(() => {
|
|
1066
|
-
|
|
1066
|
+
ge.emit("onLoaded"), d(C, ".cache-page-wrapper");
|
|
1067
1067
|
}), Tn(() => {
|
|
1068
1068
|
h(C);
|
|
1069
1069
|
}), xn(() => {
|
|
1070
|
-
l(C), v(), b.props = null;
|
|
1070
|
+
ge.emit("onLoaded"), l(C), v(), b.props = null;
|
|
1071
1071
|
}), Ve(() => {
|
|
1072
1072
|
f(C);
|
|
1073
1073
|
}), () => N("div", {
|
|
@@ -1228,11 +1228,11 @@ const Ae = () => {
|
|
|
1228
1228
|
}, x = (k) => re.get(k), c = (k) => {
|
|
1229
1229
|
re.delete(k);
|
|
1230
1230
|
}, p = (k) => {
|
|
1231
|
-
|
|
1231
|
+
ye.add(k);
|
|
1232
1232
|
}, v = () => {
|
|
1233
1233
|
for (let k = $.value.length - 1; k >= 0; k--)
|
|
1234
|
-
|
|
1235
|
-
|
|
1234
|
+
ye.has($.value[k]) && S($).splice(k, 1);
|
|
1235
|
+
ye.clear();
|
|
1236
1236
|
}, j = (k) => {
|
|
1237
1237
|
for (let b = $.value.length - 1; b >= 0; b--)
|
|
1238
1238
|
k === $.value[b] && S($).splice(b, 1);
|
|
@@ -1262,7 +1262,7 @@ const Ae = () => {
|
|
|
1262
1262
|
id: Ce[0].id
|
|
1263
1263
|
});
|
|
1264
1264
|
}, U = () => {
|
|
1265
|
-
S(M).splice(0), re.clear(),
|
|
1265
|
+
S(M).splice(0), re.clear(), ye.clear(), S($).splice(0);
|
|
1266
1266
|
};
|
|
1267
1267
|
return {
|
|
1268
1268
|
tabs: M,
|
|
@@ -1333,7 +1333,7 @@ const Ae = () => {
|
|
|
1333
1333
|
max: {}
|
|
1334
1334
|
},
|
|
1335
1335
|
setup(e) {
|
|
1336
|
-
const t = e, { t: n } = qe(), r = R(), s =
|
|
1336
|
+
const t = e, { t: n } = qe(), r = R(), s = Oe({
|
|
1337
1337
|
left: t.left,
|
|
1338
1338
|
top: t.top
|
|
1339
1339
|
}), {
|
|
@@ -1344,7 +1344,7 @@ const Ae = () => {
|
|
|
1344
1344
|
refreshTab: l,
|
|
1345
1345
|
refreshAllTabs: h,
|
|
1346
1346
|
removeOtherTabs: f
|
|
1347
|
-
} =
|
|
1347
|
+
} = Ie();
|
|
1348
1348
|
return Ue(() => {
|
|
1349
1349
|
const d = r.value ? r.value.clientWidth : 0, y = window.innerWidth;
|
|
1350
1350
|
s.left + d > y && (s.left = y - d - 5);
|
|
@@ -1412,7 +1412,7 @@ const Ae = () => {
|
|
|
1412
1412
|
n[r] = s;
|
|
1413
1413
|
return n;
|
|
1414
1414
|
}, Cr = /* @__PURE__ */ Br(Ir, [["__scopeId", "data-v-d598be6e"]]), Mr = () => {
|
|
1415
|
-
const e =
|
|
1415
|
+
const e = Oe({
|
|
1416
1416
|
item: {},
|
|
1417
1417
|
index: -1,
|
|
1418
1418
|
left: 0,
|
|
@@ -1444,7 +1444,7 @@ const Ae = () => {
|
|
|
1444
1444
|
},
|
|
1445
1445
|
emits: ["close", "active"],
|
|
1446
1446
|
setup(e, { emit: t }) {
|
|
1447
|
-
const n = t, r =
|
|
1447
|
+
const n = t, r = Ae(), { t: s } = qe(), o = R(), i = e;
|
|
1448
1448
|
r.on(V.TAB_ACTIVE, ({ id: h, isRoute: f }) => {
|
|
1449
1449
|
i.item.id === h && l(f);
|
|
1450
1450
|
});
|
|
@@ -1490,10 +1490,10 @@ var ue = [], Nr = function() {
|
|
|
1490
1490
|
typeof ErrorEvent == "function" ? e = new ErrorEvent("error", {
|
|
1491
1491
|
message: It
|
|
1492
1492
|
}) : (e = document.createEvent("Event"), e.initEvent("error", !1, !1), e.message = It), window.dispatchEvent(e);
|
|
1493
|
-
},
|
|
1493
|
+
}, Ee;
|
|
1494
1494
|
(function(e) {
|
|
1495
1495
|
e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
1496
|
-
})(
|
|
1496
|
+
})(Ee || (Ee = {}));
|
|
1497
1497
|
var fe = function(e) {
|
|
1498
1498
|
return Object.freeze(e);
|
|
1499
1499
|
}, jr = /* @__PURE__ */ function() {
|
|
@@ -1541,7 +1541,7 @@ var fe = function(e) {
|
|
|
1541
1541
|
return !0;
|
|
1542
1542
|
}
|
|
1543
1543
|
return !1;
|
|
1544
|
-
},
|
|
1544
|
+
}, Se = typeof window < "u" ? window : {}, ze = /* @__PURE__ */ new WeakMap(), Ct = /auto|scroll/, Ur = /^tb|vertical/, Vr = /msie|trident/i.test(Se.navigator && Se.navigator.userAgent), H = function(e) {
|
|
1545
1545
|
return parseFloat(e || "0");
|
|
1546
1546
|
}, be = function(e, t, n) {
|
|
1547
1547
|
return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new jr((n ? t : e) || 0, (n ? e : t) || 0);
|
|
@@ -1565,9 +1565,9 @@ var fe = function(e) {
|
|
|
1565
1565
|
}, pn = function(e, t, n) {
|
|
1566
1566
|
var r = hn(e, n), s = r.borderBoxSize, o = r.contentBoxSize, i = r.devicePixelContentBoxSize;
|
|
1567
1567
|
switch (t) {
|
|
1568
|
-
case
|
|
1568
|
+
case Ee.DEVICE_PIXEL_CONTENT_BOX:
|
|
1569
1569
|
return i;
|
|
1570
|
-
case
|
|
1570
|
+
case Ee.BORDER_BOX:
|
|
1571
1571
|
return s;
|
|
1572
1572
|
default:
|
|
1573
1573
|
return o;
|
|
@@ -1679,16 +1679,16 @@ var fe = function(e) {
|
|
|
1679
1679
|
var t = this, n = function() {
|
|
1680
1680
|
return t.observer && t.observer.observe(document.body, Kr);
|
|
1681
1681
|
};
|
|
1682
|
-
document.body ? n() :
|
|
1682
|
+
document.body ? n() : Se.addEventListener("DOMContentLoaded", n);
|
|
1683
1683
|
}, e.prototype.start = function() {
|
|
1684
1684
|
var t = this;
|
|
1685
1685
|
this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), zt.forEach(function(n) {
|
|
1686
|
-
return
|
|
1686
|
+
return Se.addEventListener(n, t.listener, !0);
|
|
1687
1687
|
}));
|
|
1688
1688
|
}, e.prototype.stop = function() {
|
|
1689
1689
|
var t = this;
|
|
1690
1690
|
this.stopped || (this.observer && this.observer.disconnect(), zt.forEach(function(n) {
|
|
1691
|
-
return
|
|
1691
|
+
return Se.removeEventListener(n, t.listener, !0);
|
|
1692
1692
|
}), this.stopped = !0);
|
|
1693
1693
|
}, e;
|
|
1694
1694
|
}(), nt = new Qr(), Rt = function(e) {
|
|
@@ -1697,7 +1697,7 @@ var fe = function(e) {
|
|
|
1697
1697
|
return !ht(e) && !Wr(e) && getComputedStyle(e).display === "inline";
|
|
1698
1698
|
}, ts = function() {
|
|
1699
1699
|
function e(t, n) {
|
|
1700
|
-
this.target = t, this.observedBox = n ||
|
|
1700
|
+
this.target = t, this.observedBox = n || Ee.CONTENT_BOX, this.lastReportedSize = {
|
|
1701
1701
|
inlineSize: 0,
|
|
1702
1702
|
blockSize: 0
|
|
1703
1703
|
};
|
|
@@ -1797,11 +1797,11 @@ const rs = ["disabled", "title"], ss = {
|
|
|
1797
1797
|
isScrollButton: { type: Boolean, default: !0 }
|
|
1798
1798
|
},
|
|
1799
1799
|
setup(e, { expose: t }) {
|
|
1800
|
-
const n = R(null), r = R(null), s = R(null), o = R(!1), i = R(!1), u = R(!1), a = R(!0), l = R(), h = e, f =
|
|
1800
|
+
const n = R(null), r = R(null), s = R(null), o = R(!1), i = R(!1), u = R(!1), a = R(!0), l = R(), h = e, f = Oe({
|
|
1801
1801
|
clientWidth: 0,
|
|
1802
1802
|
scrollWidth: 0,
|
|
1803
1803
|
scrollLeft: 0
|
|
1804
|
-
}), d =
|
|
1804
|
+
}), d = Oe({
|
|
1805
1805
|
thumbLeft: 0,
|
|
1806
1806
|
startScrollLeft: 0,
|
|
1807
1807
|
startThumbLeft: 0,
|
|
@@ -1943,7 +1943,7 @@ const rs = ["disabled", "title"], ss = {
|
|
|
1943
1943
|
},
|
|
1944
1944
|
emits: ["active"],
|
|
1945
1945
|
setup(e, { emit: t }) {
|
|
1946
|
-
const { t: n } = qe(), r = st("maximum"), s = t, o = R(), { shown: i, contextMenuData: u, showContextMenu: a } = Mr(), l = e, { removeTab: h, active: f, tabs: d } =
|
|
1946
|
+
const { t: n } = qe(), r = st("maximum"), s = t, o = R(), { shown: i, contextMenuData: u, showContextMenu: a } = Mr(), l = e, { removeTab: h, active: f, tabs: d } = Ie(), y = pe(() => typeof l.tabTransition == "string" ? {
|
|
1947
1947
|
name: l.tabTransition
|
|
1948
1948
|
} : l.tabTransition), O = pe(() => l.tabScrollMode === le.BOTH || l.tabScrollMode === le.BUTTON), B = l.tabScrollMode === le.BOTH || l.tabScrollMode === le.WHEEL, I = (w) => {
|
|
1949
1949
|
if (w.closable) {
|
|
@@ -2015,16 +2015,16 @@ const rs = ["disabled", "title"], ss = {
|
|
|
2015
2015
|
]));
|
|
2016
2016
|
}
|
|
2017
2017
|
});
|
|
2018
|
-
var cs = typeof global == "object" && global && global.Object === Object && global, ls = typeof self == "object" && self && self.Object === Object && self, mn = cs || ls || Function("return this")(), je = mn.Symbol, gn = Object.prototype, us = gn.hasOwnProperty, fs = gn.toString,
|
|
2018
|
+
var cs = typeof global == "object" && global && global.Object === Object && global, ls = typeof self == "object" && self && self.Object === Object && self, mn = cs || ls || Function("return this")(), je = mn.Symbol, gn = Object.prototype, us = gn.hasOwnProperty, fs = gn.toString, ke = je ? je.toStringTag : void 0;
|
|
2019
2019
|
function ds(e) {
|
|
2020
|
-
var t = us.call(e,
|
|
2020
|
+
var t = us.call(e, ke), n = e[ke];
|
|
2021
2021
|
try {
|
|
2022
|
-
e[
|
|
2022
|
+
e[ke] = void 0;
|
|
2023
2023
|
var r = !0;
|
|
2024
2024
|
} catch {
|
|
2025
2025
|
}
|
|
2026
2026
|
var s = fs.call(e);
|
|
2027
|
-
return r && (t ? e[
|
|
2027
|
+
return r && (t ? e[ke] = n : delete e[ke]), s;
|
|
2028
2028
|
}
|
|
2029
2029
|
var hs = Object.prototype, ps = hs.toString;
|
|
2030
2030
|
function bs(e) {
|
|
@@ -2134,7 +2134,7 @@ function $s(e, t, n) {
|
|
|
2134
2134
|
}
|
|
2135
2135
|
let Ut;
|
|
2136
2136
|
const Rs = () => {
|
|
2137
|
-
const e = at(), { active: t, hasTab: n, pageShown: r, reset: s, canAddTab: o } =
|
|
2137
|
+
const e = at(), { active: t, hasTab: n, pageShown: r, reset: s, canAddTab: o } = Ie(), i = Ae(), u = $s((h) => new Promise((f, d) => {
|
|
2138
2138
|
if (!r.value) {
|
|
2139
2139
|
d();
|
|
2140
2140
|
return;
|
|
@@ -2191,7 +2191,7 @@ const Rs = () => {
|
|
|
2191
2191
|
},
|
|
2192
2192
|
emits: ["onActive", "onPageLoaded"],
|
|
2193
2193
|
setup(e, { emit: t }) {
|
|
2194
|
-
const { tabs: n, pageShown: r, caches: s, destroy: o, addPage: i, initial: u, setMaxSize: a, setGlobalScroll: l } =
|
|
2194
|
+
const { tabs: n, pageShown: r, caches: s, destroy: o, addPage: i, initial: u, setMaxSize: a, setGlobalScroll: l } = Ie(), h = t, f = e, { changeLocale: d } = qe(), y = R(!1);
|
|
2195
2195
|
En("maximum", y);
|
|
2196
2196
|
const { setIFramePath: O } = Rs();
|
|
2197
2197
|
O(f.iframePath), l(f.globalScroll), d(f.i18n), An(() => {
|
|
@@ -2273,11 +2273,11 @@ const Rs = () => {
|
|
|
2273
2273
|
}
|
|
2274
2274
|
}), pt = typeof Buffer == "function";
|
|
2275
2275
|
typeof TextDecoder == "function" && new TextDecoder();
|
|
2276
|
-
const Vt = typeof TextEncoder == "function" ? new TextEncoder() : void 0, js = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
|
2276
|
+
const Vt = typeof TextEncoder == "function" ? new TextEncoder() : void 0, js = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", _e = Array.prototype.slice.call(js);
|
|
2277
2277
|
((e) => {
|
|
2278
2278
|
let t = {};
|
|
2279
2279
|
return e.forEach((n, r) => t[n] = r), t;
|
|
2280
|
-
})(
|
|
2280
|
+
})(_e);
|
|
2281
2281
|
const Z = String.fromCharCode.bind(String);
|
|
2282
2282
|
typeof Uint8Array.from == "function" && Uint8Array.from.bind(Uint8Array);
|
|
2283
2283
|
const Ws = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : "_"), Us = (e) => {
|
|
@@ -2286,7 +2286,7 @@ const Ws = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
|
|
|
2286
2286
|
for (let u = 0; u < e.length; ) {
|
|
2287
2287
|
if ((n = e.charCodeAt(u++)) > 255 || (r = e.charCodeAt(u++)) > 255 || (s = e.charCodeAt(u++)) > 255)
|
|
2288
2288
|
throw new TypeError("invalid character found");
|
|
2289
|
-
t = n << 16 | r << 8 | s, o +=
|
|
2289
|
+
t = n << 16 | r << 8 | s, o += _e[t >> 18 & 63] + _e[t >> 12 & 63] + _e[t >> 6 & 63] + _e[t & 63];
|
|
2290
2290
|
}
|
|
2291
2291
|
return i ? o.slice(0, i - 3) + "===".substring(i) : o;
|
|
2292
2292
|
}, yn = typeof btoa == "function" ? (e) => btoa(e) : pt ? (e) => Buffer.from(e, "binary").toString("base64") : Us, Vs = pt ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
@@ -2309,7 +2309,7 @@ const Ws = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
|
|
|
2309
2309
|
u + `background-image: url(${i});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`
|
|
2310
2310
|
);
|
|
2311
2311
|
}, Xs = () => {
|
|
2312
|
-
const { attrs: e, props: t } = Kt(), { pageShown: n, getTab: r, markDeletableCache: s, removeComponent: o, getComponent: i, addPageScroller: u } =
|
|
2312
|
+
const { attrs: e, props: t } = Kt(), { pageShown: n, getTab: r, markDeletableCache: s, removeComponent: o, getComponent: i, addPageScroller: u } = Ie(), a = Mn(), l = at();
|
|
2313
2313
|
let h = "", f = "";
|
|
2314
2314
|
h = e.tId || t.tId;
|
|
2315
2315
|
const d = e.pId || t.pId;
|
|
@@ -2375,7 +2375,7 @@ const Ws = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
|
|
|
2375
2375
|
return Xs(), (t, n) => (z(), P("div"));
|
|
2376
2376
|
}
|
|
2377
2377
|
}), eo = () => {
|
|
2378
|
-
const e =
|
|
2378
|
+
const e = Ae(), { attrs: t } = Kt();
|
|
2379
2379
|
Ve(() => {
|
|
2380
2380
|
r();
|
|
2381
2381
|
});
|
|
@@ -2387,7 +2387,7 @@ const Ws = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
|
|
|
2387
2387
|
return { openTabLoading: n, closeTabLoading: r };
|
|
2388
2388
|
}, to = {
|
|
2389
2389
|
install(e, t) {
|
|
2390
|
-
Zs("0.1.
|
|
2390
|
+
Zs("0.1.27"), e.component("VueStackTabs", Ds).use(_r).use(Hn().getI18n(t));
|
|
2391
2391
|
}
|
|
2392
2392
|
};
|
|
2393
2393
|
export {
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* vue-i18n-lite v1.0.2
|
|
3
3
|
* (c) 2021 Erik Pham
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/const Yt=["__proto__","prototype","constructor"];function Jt(e){const t=typeof e;return e!==null&&(t==="object"||t==="function")}function Kt(e){return!(Array.isArray(e)?e.length:Object.keys(e).length)}function Qt(e){return!e.some(t=>Yt.indexOf(t)!==-1)}function en(e){const t=e.split("."),n=[];for(let o=0;o<t.length;o++){let s=t[o];for(;s[s.length-1]==="\\"&&t[o+1]!==void 0;)s=s.slice(0,-1)+".",s+=t[++o];n.push(s)}return Qt(n)?n:[]}function Ye(e,t){if(!Jt(e))return"";const n=en(t);if(n.length===0)return"";let o=Object.assign({},e);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 tn(e,t){if(Array.isArray(t)){const n={},o=[...e.matchAll(/{(.+?)}/g)];return o&&o.forEach((s,i)=>{t[i]&&(n[s[1]]=t[i])}),n}return t}function nn(e,t){for(const n in t)e=e.replace(`{${n}}`,String(t[n]));return e}function Je(e,t){return Object.keys(t).forEach(n=>{t[n]instanceof Object&&n in e&&(t[n]={...t[n],...Je(e[n],t[n])})}),{...e||{},...t}}const rn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Ke=(e=>rn?Symbol(e):"_vt_"+e)("i18n");function
|
|
6
|
-
caused by: ${D.fullStack(n)}`:t.stack}static info(t){Le(t);const n={},o=D.cause(t);return o&&Object.assign(n,D.info(o)),t._info&&Object.assign(n,t._info),n}cause(){return D.cause(this)}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}const tt="0123456789ABCDEFGHJKMNPQRSTVWXYZ",ae=32,nt=0xffffffffffff,fn=10,un=16,ce=Object.freeze({source:"ulid"});function dn(e){const t=e||hn(),n=t&&(t.crypto||t.msCrypto)||null;if(typeof(n==null?void 0:n.getRandomValues)=="function")return()=>{const o=new Uint8Array(1);return n.getRandomValues(o),o[0]/255};if(typeof(n==null?void 0:n.randomBytes)=="function")return()=>n.randomBytes(1).readUInt8()/255;throw new D({info:{code:"PRNG_DETECT",...ce}},"Failed to find a reliable PRNG")}function hn(){return mn()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function pn(e,t){let n="";for(;e>0;e--)n=gn(t)+n;return n}function bn(e,t){if(isNaN(e))throw new D({info:{code:"ENC_TIME_NAN",...ce}},`Time must be a number: ${e}`);if(e>nt)throw new D({info:{code:"ENC_TIME_SIZE_EXCEED",...ce}},`Cannot encode a time larger than ${nt}: ${e}`);if(e<0)throw new D({info:{code:"ENC_TIME_NEG",...ce}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new D({info:{code:"ENC_TIME_TYPE",...ce}},`Time must be an integer: ${e}`);let n,o="";for(let s=t;s>0;s--)n=e%ae,o=tt.charAt(n)+o,e=(e-n)/ae;return o}function mn(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function gn(e){let t=Math.floor(e()*ae);return t===ae&&(t=ae-1),tt.charAt(t)}function rt(e,t){const n=t||dn(),o=isNaN(e)?Date.now():e;return bn(o,fn)+pn(un,n)}var ze={exports:{}};ze.exports,function(e){var t=function(){var n=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function a(c,f){if(!i[c]){i[c]={};for(var p=0;p<c.length;p++)i[c][c.charAt(p)]=p}return i[c][f]}var u={compressToBase64:function(c){if(c==null)return"";var f=u._compress(c,6,function(p){return o.charAt(p)});switch(f.length%4){default:case 0:return f;case 1:return f+"===";case 2:return f+"==";case 3:return f+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:u._decompress(c.length,32,function(f){return a(o,c.charAt(f))})},compressToUTF16:function(c){return c==null?"":u._compress(c,15,function(f){return n(f+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:u._decompress(c.length,16384,function(f){return c.charCodeAt(f)-32})},compressToUint8Array:function(c){for(var f=u.compress(c),p=new Uint8Array(f.length*2),d=0,h=f.length;d<h;d++){var w=f.charCodeAt(d);p[d*2]=w>>>8,p[d*2+1]=w%256}return p},decompressFromUint8Array:function(c){if(c==null)return u.decompress(c);for(var f=new Array(c.length/2),p=0,d=f.length;p<d;p++)f[p]=c[p*2]*256+c[p*2+1];var h=[];return f.forEach(function(w){h.push(n(w))}),u.decompress(h.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":u._compress(c,6,function(f){return s.charAt(f)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),u._decompress(c.length,32,function(f){return a(s,c.charAt(f))}))},compress:function(c){return u._compress(c,16,function(f){return n(f)})},_compress:function(c,f,p){if(c==null)return"";var d,h,w={},E={},C="",A="",x="",T=2,v=3,k=2,S=[],l=0,b=0,g;for(g=0;g<c.length;g+=1)if(C=c.charAt(g),Object.prototype.hasOwnProperty.call(w,C)||(w[C]=v++,E[C]=!0),A=x+C,Object.prototype.hasOwnProperty.call(w,A))x=A;else{if(Object.prototype.hasOwnProperty.call(E,x)){if(x.charCodeAt(0)<256){for(d=0;d<k;d++)l=l<<1,b==f-1?(b=0,S.push(p(l)),l=0):b++;for(h=x.charCodeAt(0),d=0;d<8;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1}else{for(h=1,d=0;d<k;d++)l=l<<1|h,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=0;for(h=x.charCodeAt(0),d=0;d<16;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1}T--,T==0&&(T=Math.pow(2,k),k++),delete E[x]}else for(h=w[x],d=0;d<k;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1;T--,T==0&&(T=Math.pow(2,k),k++),w[A]=v++,x=String(C)}if(x!==""){if(Object.prototype.hasOwnProperty.call(E,x)){if(x.charCodeAt(0)<256){for(d=0;d<k;d++)l=l<<1,b==f-1?(b=0,S.push(p(l)),l=0):b++;for(h=x.charCodeAt(0),d=0;d<8;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1}else{for(h=1,d=0;d<k;d++)l=l<<1|h,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=0;for(h=x.charCodeAt(0),d=0;d<16;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1}T--,T==0&&(T=Math.pow(2,k),k++),delete E[x]}else for(h=w[x],d=0;d<k;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1;T--,T==0&&(T=Math.pow(2,k),k++)}for(h=2,d=0;d<k;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1;for(;;)if(l=l<<1,b==f-1){S.push(p(l));break}else b++;return S.join("")},decompress:function(c){return c==null?"":c==""?null:u._decompress(c.length,32768,function(f){return c.charCodeAt(f)})},_decompress:function(c,f,p){var d=[],h=4,w=4,E=3,C="",A=[],x,T,v,k,S,l,b,g={val:p(0),position:f,index:1};for(x=0;x<3;x+=1)d[x]=x;for(v=0,S=Math.pow(2,2),l=1;l!=S;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;switch(v){case 0:for(v=0,S=Math.pow(2,8),l=1;l!=S;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;b=n(v);break;case 1:for(v=0,S=Math.pow(2,16),l=1;l!=S;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;b=n(v);break;case 2:return""}for(d[3]=b,T=b,A.push(b);;){if(g.index>c)return"";for(v=0,S=Math.pow(2,E),l=1;l!=S;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;switch(b=v){case 0:for(v=0,S=Math.pow(2,8),l=1;l!=S;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;d[w++]=n(v),b=w-1,h--;break;case 1:for(v=0,S=Math.pow(2,16),l=1;l!=S;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;d[w++]=n(v),b=w-1,h--;break;case 2:return A.join("")}if(h==0&&(h=Math.pow(2,E),E++),d[b])C=d[b];else if(b===w)C=T+T.charAt(0);else return null;A.push(C),d[w++]=T+C.charAt(0),h--,T=C,h==0&&(h=Math.pow(2,E),E++)}}};return u}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(ze);var ot=ze.exports;const yn=new TextEncoder,kn=new TextDecoder("utf-8",{ignoreBOM:!0}),st={encode:e=>yn.encode(e),decode:e=>kn.decode(e)},it=(()=>{const t=[..."0123456789abcdef"],n=new Array(256);for(let o=0;o<256;o++)n[o]=`${t[o>>>4&15]}${t[o&15]}`;return n})(),wn=(()=>{const e={};for(let t=0;t<256;t++){const n=it[t],o=n[0],s=o.toUpperCase(),i=n[1],a=i.toUpperCase();e[n]=t,e[`${o}${a}`]=t,e[`${s}${i}`]=t,e[`${s}${a}`]=t}return e})(),$e={encode:e=>{let t="";for(let n=0,o=e.length;n<o;n++)t+=it[e[n]];return t},encodeStr:e=>$e.encode(st.encode(e)),decode:e=>{const t=e.length/2,n=new Uint8Array(t);for(let o=0;o<t;o++)n[o]=wn[e.slice(o*2,o*2+2)];return n},decodeStr:e=>st.decode($e.decode(e)),is:e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e))};function le(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function _n(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function at(e,...t){if(!_n(e))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function Re(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function ct(e,t){at(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const ke=BigInt(2**32-1),lt=BigInt(32);function ft(e,t=!1){return t?{h:Number(e&ke),l:Number(e>>lt&ke)}:{h:Number(e>>lt&ke)|0,l:Number(e&ke)|0}}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Tn=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),we=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));function vn(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}const _e=(e,t)=>e<<32-t|e>>>t;if(!(new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68))throw new Error("Non little-endian hardware is not supported");function xn(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Ve(e){if(typeof e=="string"&&(e=xn(e)),!vn(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}class Sn{clone(){return this._cloneInto()}}function En(e){const t=(o,s)=>e(s).update(Ve(o)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=o=>e(o),t}class On extends Sn{constructor(t,n,o={},s,i,a){if(super(),this.blockLen=t,this.outputLen=n,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,le(t),le(n),le(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=we(this.buffer=new Uint8Array(t))}update(t){Re(this);const{blockLen:n,buffer:o,buffer32:s}=this;t=Ve(t);const i=t.length,a=t.byteOffset,u=t.buffer;for(let c=0;c<i;){this.pos===n&&(this.compress(s,0,!1),this.pos=0);const f=Math.min(n-this.pos,i-c),p=a+c;if(f===n&&!(p%4)&&c+f<i){const d=new Uint32Array(u,p,Math.floor((i-c)/4));for(let h=0;c+n<i;h+=s.length,c+=n)this.length+=n,this.compress(d,h,!1);continue}o.set(t.subarray(c,c+f),this.pos),this.pos+=f,this.length+=f,c+=f}return this}digestInto(t){Re(this),ct(t,this);const{pos:n,buffer32:o}=this;this.finished=!0,this.buffer.subarray(n).fill(0),this.compress(o,0,!0);const s=we(t);this.get().forEach((i,a)=>s[a]=i)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const o=t.slice(0,n);return this.destroy(),o}_cloneInto(t){const{buffer:n,length:o,finished:s,destroyed:i,outputLen:a,pos:u}=this;return t||(t=new this.constructor({dkLen:a})),t.set(...this.get()),t.length=o,t.finished=s,t.destroyed=i,t.outputLen=a,t.buffer.set(n),t.pos=u,t}}const H=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function J(e,t,n,o,s){return e=e+t+s|0,o=_e(o^e,16),n=n+o|0,t=_e(t^n,12),{a:e,b:t,c:n,d:o}}function K(e,t,n,o,s){return e=e+t+s|0,o=_e(o^e,8),n=n+o|0,t=_e(t^n,7),{a:e,b:t,c:n,d:o}}function ut(e,t,n,o,s,i,a,u,c,f,p,d,h,w,E,C,A,x,T,v){let k=0;for(let S=0;S<o;S++)({a:s,b:c,c:h,d:A}=J(s,c,h,A,n[t+e[k++]])),{a:s,b:c,c:h,d:A}=K(s,c,h,A,n[t+e[k++]]),{a:i,b:f,c:w,d:x}=J(i,f,w,x,n[t+e[k++]]),{a:i,b:f,c:w,d:x}=K(i,f,w,x,n[t+e[k++]]),{a,b:p,c:E,d:T}=J(a,p,E,T,n[t+e[k++]]),{a,b:p,c:E,d:T}=K(a,p,E,T,n[t+e[k++]]),{a:u,b:d,c:C,d:v}=J(u,d,C,v,n[t+e[k++]]),{a:u,b:d,c:C,d:v}=K(u,d,C,v,n[t+e[k++]]),{a:s,b:f,c:E,d:v}=J(s,f,E,v,n[t+e[k++]]),{a:s,b:f,c:E,d:v}=K(s,f,E,v,n[t+e[k++]]),{a:i,b:p,c:C,d:A}=J(i,p,C,A,n[t+e[k++]]),{a:i,b:p,c:C,d:A}=K(i,p,C,A,n[t+e[k++]]),{a,b:d,c:h,d:x}=J(a,d,h,x,n[t+e[k++]]),{a,b:d,c:h,d:x}=K(a,d,h,x,n[t+e[k++]]),{a:u,b:c,c:w,d:T}=J(u,c,w,T,n[t+e[k++]]),{a:u,b:c,c:w,d:T}=K(u,c,w,T,n[t+e[k++]]);return{v0:s,v1:i,v2:a,v3:u,v4:c,v5:f,v6:p,v7:d,v8:h,v9:w,v10:E,v11:C,v12:A,v13:x,v14:T,v15:v}}const dt=(()=>{const e=Array.from({length:16},(o,s)=>s),t=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=e;o<7;o++,s=t(s))n.push(...s);return Uint8Array.from(n)})();class Pe extends On{constructor(t={},n=0){if(super(64,t.dkLen===void 0?32:t.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=t.dkLen===void 0?32:t.dkLen,le(this.outputLen),t.key!==void 0&&t.context!==void 0)throw new Error("Blake3: only key or context can be specified at same time");if(t.key!==void 0){const o=Ve(t.key).slice();if(o.length!==32)throw new Error("Blake3: key should be 32 byte");this.IV=we(o),this.flags=n|16}else if(t.context!==void 0){const o=new Pe({dkLen:32},32).update(t.context).digest();this.IV=we(o),this.flags=n|64}else this.IV=H.slice(),this.flags=n;this.state=this.IV.slice(),this.bufferOut=Tn(this.bufferOut32)}get(){return[]}set(){}b2Compress(t,n,o,s=0){const{state:i,pos:a}=this,{h:u,l:c}=ft(BigInt(t),!0),{v0:f,v1:p,v2:d,v3:h,v4:w,v5:E,v6:C,v7:A,v8:x,v9:T,v10:v,v11:k,v12:S,v13:l,v14:b,v15:g}=ut(dt,s,o,7,i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],H[0],H[1],H[2],H[3],u,c,a,n);i[0]=f^x,i[1]=p^T,i[2]=d^v,i[3]=h^k,i[4]=w^S,i[5]=E^l,i[6]=C^b,i[7]=A^g}compress(t,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,t,n),this.chunkPos+=1,this.chunkPos===16||o){let i=this.state;this.state=this.IV.slice();for(let a,u=this.chunksDone+1;(o||!(u&1))&&(a=this.stack.pop());u>>=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(t){t=super._cloneInto(t);const{IV:n,flags:o,state:s,chunkPos:i,posOut:a,chunkOut:u,stack:c,chunksDone:f}=this;return t.state.set(s.slice()),t.stack=c.map(p=>Uint32Array.from(p)),t.IV.set(n),t.flags=o,t.chunkPos=i,t.chunksDone=f,t.posOut=a,t.chunkOut=u,t.enableXOF=this.enableXOF,t.bufferOut32.set(this.bufferOut32),t}destroy(){this.destroyed=!0,this.state.fill(0),this.buffer32.fill(0),this.IV.fill(0),this.bufferOut32.fill(0);for(let t of this.stack)t.fill(0)}b2CompressOut(){const{state:t,pos:n,flags:o,buffer32:s,bufferOut32:i}=this,{h:a,l:u}=ft(BigInt(this.chunkOut++)),{v0:c,v1:f,v2:p,v3:d,v4:h,v5:w,v6:E,v7:C,v8:A,v9:x,v10:T,v11:v,v12:k,v13:S,v14:l,v15:b}=ut(dt,0,s,7,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],H[0],H[1],H[2],H[3],u,a,n,o);i[0]=c^A,i[1]=f^x,i[2]=p^T,i[3]=d^v,i[4]=h^k,i[5]=w^S,i[6]=E^l,i[7]=C^b,i[8]=t[0]^A,i[9]=t[1]^x,i[10]=t[2]^T,i[11]=t[3]^v,i[12]=t[4]^k,i[13]=t[5]^S,i[14]=t[6]^l,i[15]=t[7]^b,this.posOut=0}finish(){if(this.finished)return;this.finished=!0,this.buffer.fill(0,this.pos);let t=this.flags|8;this.stack.length?(t|=4,this.compress(this.buffer32,0,!0),this.chunksDone=0,this.pos=this.blockLen):t|=(this.chunkPos?0:1)|2,this.flags=t,this.b2CompressOut()}writeInto(t){Re(this,!1),at(t),this.finish();const{blockLen:n,bufferOut:o}=this;for(let s=0,i=t.length;s<i;){this.posOut>=n&&this.b2CompressOut();const a=Math.min(n-this.posOut,i-s);t.set(o.subarray(this.posOut,this.posOut+a),s),this.posOut+=a,s+=a}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible after digest call");return this.writeInto(t)}xof(t){return le(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(ct(t,this),this.finished)throw new Error("digest() was already called");return this.enableXOF=!1,this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}}const Bn=En(e=>new Pe(e)),ht=e=>{const t=`${e.id}|${e.title}|${e.iframe?"Y":"N"}|${e.closable?"Y":"N"}|${e.refreshable?"Y":"N"}`;return ot.compressToEncodedURIComponent(t)},An=e=>{const n=ot.decompressFromEncodedURIComponent(e).split("|");return{id:n[0],title:n[1],iframe:n[2]==="Y",closable:n[3]==="Y",refreshable:n[4]==="Y"}},pt=(e,t,n)=>{const o=[];for(const i in n)i.startsWith("__")||o.push({key:i,value:n[i]});o.sort((i,a)=>{let u=0;return i.key>a.key?u=1:i.key<a.key&&(u=-1),u});const s=Bn(`${e}|${t}|${JSON.stringify(o)}`);return $e.encode(s)};function je(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function De(e,t,n=".",o){if(!je(t))return De(e,{},n,o);const s=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const a=e[i];a!=null&&(o&&o(s,i,a,n)||(Array.isArray(a)&&Array.isArray(s[i])?s[i]=[...a,...s[i]]:je(a)&&je(s[i])?s[i]=De(a,s[i],(n?`${n}.`:"")+i.toString(),o):s[i]=a))}return s}function Cn(e){return(...t)=>t.reduce((n,o)=>De(n,o,"",e),{})}const Z=Cn(),Ue=e=>{const t=e.split("?");if(t.length<=1)return{path:t[0],query:{}};{const n=t[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:t[0],query:o}}};function In(e){return{all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map(function(s){s(n)}),(o=e.get("*"))&&o.slice().map(function(s){s(t,n)})}}}const Mn=In(),Ln={install(e){e.provide("tabEmitter",Mn)}},fe=()=>r.inject("tabEmitter");var P=(e=>(e.PAGE_LOADING="PAGE_LOADING",e.TAB_ACTIVE="TAB_ACTIVE",e))(P||{});const Nn={key:0,class:"stack-tab-loading-mask"},zn=[r.createElementVNode("div",{class:"stack-tab-loading--spin turn"},null,-1)],$n=r.defineComponent({__name:"PageLoading",props:{tId:{}},setup(e){const t=e,n=fe(),o=r.ref(!1);return n.on(P.PAGE_LOADING,({tId:s,value:i})=>{s===t.tId&&(o.value=i)}),(s,i)=>o.value?(r.openBlock(),r.createElementBlock("div",Nn,zn)):r.createCommentVNode("",!0)}}),M=r.ref([]),Te=[],z=r.ref([]),Q=new Map,ue=new Set,ve=r.ref(!0),bt="stacktab-active-tab",te=new Map;let mt=!1,xe=0,gt=!1;const de=()=>{const e=F.useRouter(),t=fe(),n=()=>M.value.length,o=_=>{Te.splice(0),z.value.splice(0),ue.clear(),Q.clear();for(const O of _){const y=Z(O,{id:rt()}),I=ht(y),$=Ue(y.path),V=Z(y,{closable:!0,refreshable:!0,iframe:!1}),ie=pt(y.id,$.path,$.query),X={id:ie,tabId:y.id,path:$.path,query:Z($.query,{__tab:I})},Me=new ye;Me.push(X);const Gt={id:y.id,title:V.title,closable:V.closable,refreshable:V.refreshable,iframe:V.iframe,active:!1,pages:Me};Te.push(Gt),M.value.push(Gt),z.value.push(ie)}const m=window.sessionStorage.getItem(bt);if(m!=null){const O=JSON.parse(m,(I,$)=>I==="pages"?new ye($):$);let y=!1;for(const I of M.value)if(I.id===O.id){y=!0;break}y||M.value.push(O)}mt=!0},s=_=>{for(const m of M.value)if(m.id===_)return!0;return!1},i=()=>xe<=0||xe>0&&xe>M.value.length,a=_=>new Promise(m=>{M.value.push(_),m(!0)}),u=_=>{for(const m of M.value)if(m.id===_)return m;return null},c=(_,m)=>{let O;const y=An(_.query.__tab),I=pt(y.id,_.path,_.query.valueOf()),$=_.query.__src;let V=null;for(const X of r.unref(M))X.active=!1,X.id===y.id&&(V=X);const ie={id:I,tabId:y.id,path:_.path,query:_.query};if(V===null){const X=new ye;X.push(ie),V={id:y.id,title:y.title,closable:y.closable,refreshable:y.refreshable,iframe:y.iframe,url:decodeURIComponent($),active:!0,pages:X},a(V).then(()=>{t.emit(P.TAB_ACTIVE,{id:y.id,isRoute:!1})})}else V.active=!0,(V.pages.isEmpty()||V.pages.peek().id!==ie.id)&&V.pages.push(ie);return B(V),Q.has(I)?O=Q.get(I):(O=r.defineComponent({name:I,components:{DynamicComponent:m},emits:{onLoaded:null},setup(X,Me){return r.onMounted(()=>{Me.emit("onLoaded"),h(I,".cache-page-wrapper")}),r.onDeactivated(()=>{p(I)}),r.onActivated(()=>{f(I),g(),m.props=null}),r.onUnmounted(()=>{d(I)}),()=>r.createVNode("div",{class:"cache-page-wrapper",id:"W-"+y.id,style:[gt?"overflow:auto":"overflow:hidden"]},[r.createVNode(r.resolveComponent("dynamic-component"),{tId:y.id,pId:I},null),r.createVNode($n,{tId:y.id},null)])}}),Q.set(I,O)),U(I),O},f=_=>{const m=te.get(_);if(m){for(const O of m.keys())if(document.querySelector(O)){const y=m.get(O);document.querySelector(O).scrollTop=y.top,document.querySelector(O).scrollLeft=y.left}}},p=_=>{var O,y;const m=te.get(_);if(m)for(const I of m.keys()){const $={top:((O=document.querySelector(I))==null?void 0:O.scrollTop)??0,left:((y=document.querySelector(I))==null?void 0:y.scrollLeft)??0};m.set(I,$)}},d=_=>{const m=te.get(_);m&&(m.clear(),te.delete(_))},h=(_,...m)=>{te.has(_)||te.set(_,new Map);const O=te.get(_);for(const y of m)O.set(y,{top:0,left:0})},w=_=>{let m="";for(let O=M.value.length-1;O>=0;O--)if(_===r.unref(M)[O].id){if(!r.unref(M)[O].closable)return _;for(const y of r.unref(M)[O].pages.list())l(y.id),b(y.id);r.unref(M)[O].pages.clear(),M.value.length>1&&r.unref(M)[O].active&&(O===0?m=r.unref(M)[O+1].id:m=r.unref(M)[O-1].id),r.unref(M).splice(O,1);break}return m!==""&&t.emit(P.TAB_ACTIVE,{id:m}),g(),m},E=()=>{const _=r.unref(M);for(let m=_.length-1;m>=0;m--)if(_[m].closable){for(const O of _[m].pages.list())l(O.id),b(O.id);r.unref(M)[m].pages.clear(),r.unref(M).splice(m,1)}for(const m of _)if(m.active){g();return}t.emit(P.TAB_ACTIVE,{id:_[_.length-1].id})},C=_=>{const m=r.unref(M);let O;for(let y=m.length-1;y>=0;y--)if(m[y].id===_)O=m[y];else if(m[y].closable&&m[y].id!==_){for(const I of m[y].pages.list())l(I.id),b(I.id);r.unref(M)[y].pages.clear(),r.unref(M).splice(y,1)}O.active?g():t.emit(P.TAB_ACTIVE,{id:_})},A=_=>{let m=-1;const O=r.unref(M);for(let y=0;y<O.length;y++)if(O[y].id===_){m=y-1;break}for(let y=m;y>=0;y--)if(O[y].closable){for(const I of O[y].pages.list())l(I.id),b(I.id);r.unref(M)[y].pages.clear(),r.unref(M).splice(y,1)}for(const y of O)if(y.active){g();return}t.emit(P.TAB_ACTIVE,{id:O[0].id})},x=_=>{const m=r.unref(M);let O=m.length;for(let y=0;y<m.length;y++)if(m[y].id===_){O=y+1;break}for(let y=m.length-1;y>=O;y--)if(m[y].closable){for(const I of m[y].pages.list())l(I.id),b(I.id);r.unref(M)[y].pages.clear(),r.unref(M).splice(y,1)}for(const y of m)if(y.active){g();return}t.emit(P.TAB_ACTIVE,{id:m[m.length-1].id})},T=_=>{var m;for(const O of r.unref(M))if(O.id===_){const y=(m=O.pages.peek())==null?void 0:m.id;for(let I=z.value.length-1;I>=0;I--)if(z.value[I]===y){z.value.splice(I,1),O.active&&(ve.value=!1);break}break}},v=()=>{const _=new Set;M.value.forEach(m=>{_.add(m.pages.peek().id)});for(let m=z.value.length-1;m>=0;m--){const O=z.value[m];_.has(O)&&z.value.splice(m,1)}ve.value=!1},k=(_,m)=>{Q.set(_,m)},S=_=>Q.get(_),l=_=>{Q.delete(_)},b=_=>{ue.add(_)},g=()=>{for(let _=z.value.length-1;_>=0;_--)ue.has(z.value[_])&&r.unref(z).splice(_,1);ue.clear()},R=_=>{for(let m=z.value.length-1;m>=0;m--)_===z.value[m]&&r.unref(z).splice(m,1)},U=_=>{new Set(z.value).has(_)||z.value.push(_)},W=(_,m=!0)=>new Promise(O=>{for(let y=M.value.length-1;y>=0;y--){const I=M.value[y];if(I.id===_){if(I.active)break;if(I.active=!0,ve.value=!1,B(I),m){const $=I.pages.peek();e.push({path:$.path,query:$.query})}}else M.value[y].active=!1}O(!0)}),B=_=>{window.sessionStorage.setItem(bt,JSON.stringify(_))},L=()=>{j(),r.unref(M).push(...Te),t.emit(P.TAB_ACTIVE,{id:Te[0].id})},j=()=>{r.unref(M).splice(0),Q.clear(),ue.clear(),r.unref(z).splice(0)};return{tabs:M,caches:z,pageShown:ve,initialed:mt,setMaxSize:_=>{xe=_},canAddTab:i,initial:o,size:n,active:W,destroy:j,reset:L,addCache:U,removeCache:R,getTab:u,addTab:a,removeTab:w,removeAllTabs:E,removeLeftTabs:A,removeRightTabs:x,removeOtherTabs:C,hasTab:s,addPage:c,addComponent:k,getComponent:S,removeComponent:l,markDeletableCache:b,removeDeletableCache:g,refreshTab:T,refreshAllTabs:v,addPageScroller:h,setGlobalScroll:_=>{gt=_}}},Rn={class:"stack-tab__contextmenu-item"},ee=r.defineComponent({__name:"ContextMenuItem",props:{icon:{},title:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",Rn,[r.createElementVNode("div",{class:r.normalizeClass(["stack-tab__contextmenu-icon",t.icon])},null,2),r.createElementVNode("div",{style:{"margin-left":"8px"},onContextmenu:n[0]||(n[0]=r.withModifiers(()=>{},["prevent"]))},r.toDisplayString(t.title),33)]))}}),Vn={key:0,class:"divider div-transparent"},Pn=((e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n})(r.defineComponent({__name:"index",props:{index:{},left:{default:0},top:{default:0},contextMenu:{},tabItem:{},max:{}},setup(e){const t=e,{t:n}=ge(),o=r.ref(),s=r.reactive({left:t.left,top:t.top}),{removeTab:i,removeAllTabs:a,removeLeftTabs:u,removeRightTabs:c,refreshTab:f,refreshAllTabs:p,removeOtherTabs:d}=de();return r.onMounted(()=>{const h=o.value?o.value.clientWidth:0,w=window.innerWidth;s.left+h>w&&(s.left=w-h-5)}),(h,w)=>(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(et)(".stack-tab,.stack-tab *")})},[r.createVNode(ee,{icon:"stack-tab__icon-reload svg-mask",title:r.unref(n)("VueStackTab.reload"),onClick:w[0]||(w[0]=E=>r.unref(f)(h.tabItem.id))},null,8,["title"]),r.createVNode(ee,{icon:"stack-tab__icon-reload-all svg-mask",title:r.unref(n)("VueStackTab.reloadAll"),onClick:r.unref(p)},null,8,["title","onClick"]),r.createVNode(ee,{icon:"stack-tab__icon-close svg-mask",title:r.unref(n)("VueStackTab.close"),disabled:h.tabItem.closable?null:"disabled",onClick:w[1]||(w[1]=E=>r.unref(i)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(ee,{icon:"stack-tab__icon-close-lefts svg-mask",title:r.unref(n)("VueStackTab.closeLeft"),disabled:h.index<=0?"disabled":null,onClick:w[2]||(w[2]=E=>r.unref(u)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(ee,{icon:"stack-tab__icon-close-rights svg-mask",title:r.unref(n)("VueStackTab.closeRight"),disabled:h.index>=h.max-1?"disabled":null,onClick:w[3]||(w[3]=E=>r.unref(c)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(ee,{icon:"stack-tab__icon-close-others svg-mask",title:r.unref(n)("VueStackTab.closeOthers"),onClick:w[4]||(w[4]=E=>r.unref(d)(h.tabItem.id))},null,8,["title"]),r.createVNode(ee,{icon:"stack-tab__icon-close-all svg-mask",title:r.unref(n)("VueStackTab.closeAll"),onClick:r.unref(a)},null,8,["title","onClick"]),h.contextMenu!==void 0&&h.contextMenu.length>0?(r.openBlock(),r.createElementBlock("div",Vn)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.contextMenu,(E,C)=>(r.openBlock(),r.createBlock(ee,{key:C,icon:E.icon,title:E.title,disabled:E.disabled(h.tabItem)?"disabled":null,onClick:A=>!E.disabled&&E.callback(h.tabItem.id)},null,8,["icon","title","disabled","onClick"]))),128))],4))}}),[["__scopeId","data-v-d598be6e"]]),jn=()=>{const e=r.reactive({item:{},index:-1,left:0,top:0,max:0}),t=r.ref(!1);r.onMounted(()=>{document.addEventListener("click",o)}),r.onUnmounted(()=>{document.removeEventListener("click",o)});const n=async(s,i,a,u)=>{t.value=!1,await r.nextTick(()=>{const{clientY:c,clientX:f}=s;t.value=!0,Object.assign(e,{item:i,index:a,top:c,left:f,max:u})})},o=s=>{s.target.classList.contains("stack-tab__contextmenu")||(t.value=!1)};return{shown:t,contextMenuData:e,showContextMenu:n}},Dn={class:"stack-tab__item-title"},Un=["title"],Wn=["title"],Fn=r.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(e,{emit:t}){const n=t,o=fe(),{t:s}=ge(),i=r.ref(),a=e;o.on(P.TAB_ACTIVE,({id:p,isRoute:d})=>{a.item.id===p&&f(d)});const u=r.computed(()=>a.item.title||s("undefined")),c=()=>{n("close",a.item)},f=(p=!0)=>{n("active",a.item,i,p)};return(p,d)=>(r.openBlock(),r.createElementBlock("li",{ref_key:"curtab",ref:i,class:r.normalizeClass(["stack-tab__item",{"is-active":p.item.active,"is-icon":p.item.closable}]),onClick:d[0]||(d[0]=h=>f(!0))},[r.createElementVNode("div",Dn,[r.createElementVNode("div",{class:"stack-tab__item-title-content",title:u.value},r.toDisplayString(u.value),9,Un)]),p.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,Wn)):r.createCommentVNode("",!0)],2))}});var ne=[],qn=function(){return ne.some(function(e){return e.activeTargets.length>0})},Gn=function(){return ne.some(function(e){return e.skippedTargets.length>0})},yt="ResizeObserver loop completed with undelivered notifications.",Hn=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:yt}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=yt),window.dispatchEvent(e)},he;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(he||(he={}));var re=function(e){return Object.freeze(e)},Zn=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,re(this)}return e}(),kt=function(){function e(t,n,o,s){return this.x=t,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,re(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,o=t.y,s=t.top,i=t.right,a=t.bottom,u=t.left,c=t.width,f=t.height;return{x:n,y:o,top:s,right:i,bottom:a,left:u,width:c,height:f}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),We=function(e){return e instanceof SVGElement&&"getBBox"in e},wt=function(e){if(We(e)){var t=e.getBBox(),n=t.width,o=t.height;return!n&&!o}var s=e,i=s.offsetWidth,a=s.offsetHeight;return!(i||a||e.getClientRects().length)},_t=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Xn=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},pe=typeof window<"u"?window:{},Se=new WeakMap,Tt=/auto|scroll/,Yn=/^tb|vertical/,Jn=/msie|trident/i.test(pe.navigator&&pe.navigator.userAgent),q=function(e){return parseFloat(e||"0")},se=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Zn((n?t:e)||0,(n?e:t)||0)},vt=re({devicePixelContentBoxSize:se(),borderBoxSize:se(),contentBoxSize:se(),contentRect:new kt(0,0,0,0)}),xt=function(e,t){if(t===void 0&&(t=!1),Se.has(e)&&!t)return Se.get(e);if(wt(e))return Se.set(e,vt),vt;var n=getComputedStyle(e),o=We(e)&&e.ownerSVGElement&&e.getBBox(),s=!Jn&&n.boxSizing==="border-box",i=Yn.test(n.writingMode||""),a=!o&&Tt.test(n.overflowY||""),u=!o&&Tt.test(n.overflowX||""),c=o?0:q(n.paddingTop),f=o?0:q(n.paddingRight),p=o?0:q(n.paddingBottom),d=o?0:q(n.paddingLeft),h=o?0:q(n.borderTopWidth),w=o?0:q(n.borderRightWidth),E=o?0:q(n.borderBottomWidth),C=o?0:q(n.borderLeftWidth),A=d+f,x=c+p,T=C+w,v=h+E,k=u?e.offsetHeight-v-e.clientHeight:0,S=a?e.offsetWidth-T-e.clientWidth:0,l=s?A+T:0,b=s?x+v:0,g=o?o.width:q(n.width)-l-S,R=o?o.height:q(n.height)-b-k,U=g+A+S+T,W=R+x+k+v,B=re({devicePixelContentBoxSize:se(Math.round(g*devicePixelRatio),Math.round(R*devicePixelRatio),i),borderBoxSize:se(U,W,i),contentBoxSize:se(g,R,i),contentRect:new kt(d,c,g,R)});return Se.set(e,B),B},St=function(e,t,n){var o=xt(e,n),s=o.borderBoxSize,i=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(t){case he.DEVICE_PIXEL_CONTENT_BOX:return a;case he.BORDER_BOX:return s;default:return i}},Kn=function(){function e(t){var n=xt(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=re([n.borderBoxSize]),this.contentBoxSize=re([n.contentBoxSize]),this.devicePixelContentBoxSize=re([n.devicePixelContentBoxSize])}return e}(),Et=function(e){if(wt(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Qn=function(){var e=1/0,t=[];ne.forEach(function(a){if(a.activeTargets.length!==0){var u=[];a.activeTargets.forEach(function(f){var p=new Kn(f.target),d=Et(f.target);u.push(p),f.lastReportedSize=St(f.target,f.observedBox),d<e&&(e=d)}),t.push(function(){a.callback.call(a.observer,u,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,o=t;n<o.length;n++){var s=o[n];s()}return e},Ot=function(e){ne.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(Et(s.target)>e?n.activeTargets.push(s):n.skippedTargets.push(s))})})},er=function(){var e=0;for(Ot(e);qn();)e=Qn(),Ot(e);return Gn()&&Hn(),e>0},Fe,Bt=[],tr=function(){return Bt.splice(0).forEach(function(e){return e()})},nr=function(e){if(!Fe){var t=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return tr()}).observe(n,o),Fe=function(){n.textContent="".concat(t?t--:t++)}}Bt.push(e),Fe()},rr=function(e){nr(function(){requestAnimationFrame(e)})},Ee=0,or=function(){return!!Ee},sr=250,ir={attributes:!0,characterData:!0,childList:!0,subtree:!0},At=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ct=function(e){return e===void 0&&(e=0),Date.now()+e},qe=!1,ar=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=sr),!qe){qe=!0;var o=Ct(t);rr(function(){var s=!1;try{s=er()}finally{if(qe=!1,t=o-Ct(),!or())return;s?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,ir)};document.body?n():pe.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),At.forEach(function(n){return pe.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),At.forEach(function(n){return pe.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Ge=new ar,It=function(e){!Ee&&e>0&&Ge.start(),Ee+=e,!Ee&&Ge.stop()},cr=function(e){return!We(e)&&!Xn(e)&&getComputedStyle(e).display==="inline"},lr=function(){function e(t,n){this.target=t,this.observedBox=n||he.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=St(this.target,this.observedBox,!0);return cr(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),fr=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Oe=new WeakMap,Mt=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Be=function(){function e(){}return e.connect=function(t,n){var o=new fr(t,n);Oe.set(t,o)},e.observe=function(t,n,o){var s=Oe.get(t),i=s.observationTargets.length===0;Mt(s.observationTargets,n)<0&&(i&&ne.push(s),s.observationTargets.push(new lr(n,o&&o.box)),It(1),Ge.schedule())},e.unobserve=function(t,n){var o=Oe.get(t),s=Mt(o.observationTargets,n),i=o.observationTargets.length===1;s>=0&&(i&&ne.splice(ne.indexOf(o),1),o.observationTargets.splice(s,1),It(-1))},e.disconnect=function(t){var n=this,o=Oe.get(t);o.observationTargets.slice().forEach(function(s){return n.unobserve(t,s.target)}),o.activeTargets.splice(0,o.activeTargets.length)},e}(),Lt=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Be.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!_t(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Be.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!_t(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Be.unobserve(this,t)},e.prototype.disconnect=function(){Be.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const ur=["disabled","title"],dr={key:1,class:"stack-tab__button"},Ae=r.defineComponent({__name:"TabHeaderButton",props:{disabled:{type:Boolean,default:!1},shadow:{default:null},iconClass:{default:""},title:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["stack-tab__header-button",{"stack-tab__shadow-right":t.shadow==="right","stack-tab__shadow-left":t.shadow==="left"}]),disabled:t.disabled?"disabled":null,title:t.title},["icon"in t.$slots?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["stack-tab__mask-button",t.iconClass])},null,2)),"icon"in t.$slots?(r.openBlock(),r.createElementBlock("div",dr,[r.renderSlot(t.$slots,"icon")])):r.createCommentVNode("",!0)],10,ur))}}),hr=r.defineComponent({__name:"TabHeaderScroll",props:{space:{default:300},isScrollWheel:{type:Boolean,default:!0},isScrollButton:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=r.ref(null),o=r.ref(null),s=r.ref(null),i=r.ref(!1),a=r.ref(!1),u=r.ref(!1),c=r.ref(!0),f=r.ref(),p=e,d=r.reactive({clientWidth:0,scrollWidth:0,scrollLeft:0}),h=r.reactive({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});r.watch(d,B=>{w(B)});const w=B=>{a.value=B.scrollLeft<=10,u.value=B.clientWidth+B.scrollLeft-B.scrollWidth>=-10,c.value=B.scrollWidth!==B.clientWidth},E=r.computed(()=>d.scrollWidth>d.clientWidth),C=r.computed(()=>{if(!E.value)return 0;const{clientWidth:B,scrollWidth:L}=d;return B/L*B}),A=r.computed(()=>{if(!E.value)return 0;const{clientWidth:B,scrollWidth:L,scrollLeft:j}=d;return(B-C.value)*(j/(L-B))}),x=()=>{if(n.value===null||n.value===void 0)return;const{clientWidth:B,scrollWidth:L,scrollLeft:j}=n.value;Object.assign(d,{clientWidth:B,scrollWidth:L,scrollLeft:j})},T=new Lt(()=>{var L;x();const B=(L=n.value)==null?void 0:L.querySelector(".stack-tab__item.is-active");B&&(W(B)||U(B))}),v=new Lt(()=>{var B;if(!E.value){const L=(B=n.value)==null?void 0:B.querySelector(".stack-tab__item.is-active");L&&(W(L)||U(L))}x()}),k=(B,L=!0)=>{Qe({wrap:n.value,left:B,smooth:L})},S=B=>{k(n.value.scrollLeft+B)},l=B=>{const L=B.deltaY<0;k(n.value.scrollLeft+(L?-p.space:p.space))},b=B=>{var L;Object.assign(h,{startPageX:B.pageX,startScrollLeft:(L=n.value)==null?void 0:L.scrollLeft,startThumbLeft:A.value,thumbLeft:A.value}),i.value=!0,document.addEventListener("mousemove",g),document.addEventListener("mouseup",R)},g=B=>{const{clientWidth:L,scrollWidth:j}=d;let oe=h.startThumbLeft+B.pageX-h.startPageX;const Xe=L-C.value;oe<0?oe=0:oe>Xe&&(oe=Xe),h.thumbLeft=oe,k(oe*(j-L)/(L-C.value),!1),B.preventDefault()},R=B=>{i.value=!1,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",R),B.preventDefault()};r.onMounted(()=>{var L;T.observe(f.value);const B=(L=n.value)==null?void 0:L.querySelector(".stack-tab__nav");v.observe(B)}),r.onUnmounted(()=>{T.disconnect(),v.disconnect()});const U=B=>{an({el:B,wrap:n,block:"end",inline:"center"})},W=B=>{if(!E.value)return!0;const L=B.offsetLeft,j=n.value.scrollLeft;return!(L<j||L+B.clientWidth>j+n.value.clientWidth)};return t({scrollIntoView:U,isInView:W}),(B,L)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[c.value?(r.openBlock(),r.createBlock(Ae,{key:0,"icon-class":"stack-tab__icon-left-arrow",disabled:a.value,onClick:L[0]||(L[0]=j=>!a.value&&S(-1*B.space))},null,8,["disabled"])):r.createCommentVNode("",!0),r.createElementVNode("div",{ref_key:"headerScroll",ref:f,class:"stack-tab__scroll",onWheel:r.withModifiers(l,["prevent"])},[r.createElementVNode("div",{ref_key:"container",ref:n,class:r.normalizeClass(["stack-tab__scroll-container",{"stack-tab__shadow-inset-left":!a.value&&u.value,"stack-tab__shadow-inset-right":!u.value&&a.value,"stack-tab__shadow-inset-all":!a.value&&!u.value}]),onScrollPassive:x},[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:`${C.value}px`,transform:`translateX(${A.value}px)`}),onMousedown:r.withModifiers(b,["prevent"])},null,38)],2),[[r.vShow,E.value]])],544),c.value?(r.openBlock(),r.createBlock(Ae,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:u.value,onClick:L[1]||(L[1]=j=>!u.value&&S(B.space))},null,8,["disabled"])):r.createCommentVNode("",!0)],64))}}),pr={class:"stack-tab__header"},br=r.defineComponent({__name:"index",props:{space:{},tabScrollMode:{default:Y.BOTH},tabTransition:{default:()=>({name:"stack-tab-zoom"})},contextmenu:{type:[Boolean,Object],default:!0},max:{default:20}},emits:["active"],setup(e,{emit:t}){const{t:n}=ge(),o=r.inject("maximum"),s=t,i=r.ref(),{shown:a,contextMenuData:u,showContextMenu:c}=jn(),f=e,{removeTab:p,active:d,tabs:h}=de(),w=r.computed(()=>typeof f.tabTransition=="string"?{name:f.tabTransition}:f.tabTransition),E=r.computed(()=>f.tabScrollMode===Y.BOTH||f.tabScrollMode===Y.BUTTON),C=f.tabScrollMode===Y.BOTH||f.tabScrollMode===Y.WHEEL,A=T=>{if(T.closable){const v=p(T.id);s("active",v)}a.value=!1},x=(T,v,k)=>{i.value&&(r.nextTick(()=>{i.value.isInView(v.value)||i.value.scrollIntoView(v.value)}),d(T.id,k),s("active",T.id))};return(T,v)=>(r.openBlock(),r.createElementBlock("div",pr,[r.renderSlot(T.$slots,"leftButton"),r.createVNode(hr,{ref_key:"scroll",ref:i,space:T.space,"is-scroll-wheel":r.unref(C),"is-scroll-button":E.value},{default:r.withCtx(()=>[r.createVNode(r.TransitionGroup,r.mergeProps({key:"tabItemTrans",tag:"ul",class:"stack-tab__nav"},w.value,{appear:""}),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(h),(k,S)=>(r.openBlock(),r.createBlock(Fn,{key:k.id,contextmenu:T.contextmenu,item:k,onContextmenu:r.withModifiers(l=>r.unref(c)(l,k,S,r.unref(h).length),["prevent"]),onMouseup:r.withModifiers(l=>A(k),["middle","prevent"]),onClose:A,onActive:x},null,8,["contextmenu","item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),r.renderSlot(T.$slots,"rightButton"),r.createVNode(Ae,{"icon-class":r.unref(o)?"stack-tab__icon-restore":"stack-tab__icon-fullscreen",title:r.unref(n)("VueStackTab.maximum"),onClick:v[0]||(v[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(Pn,{key:"tabMenuTrans",left:r.unref(u).left,top:r.unref(u).top,"tab-item":r.unref(u).item,max:r.unref(u).max,index:r.unref(u).index},null,8,["left","top","tab-item","max","index"])):r.createCommentVNode("",!0)]),_:1})]))}});var mr=typeof global=="object"&&global&&global.Object===Object&&global,gr=typeof self=="object"&&self&&self.Object===Object&&self,Nt=mr||gr||Function("return this")(),Ce=Nt.Symbol,zt=Object.prototype,yr=zt.hasOwnProperty,kr=zt.toString,be=Ce?Ce.toStringTag:void 0;function wr(e){var t=yr.call(e,be),n=e[be];try{e[be]=void 0;var o=!0}catch{}var s=kr.call(e);return o&&(t?e[be]=n:delete e[be]),s}var _r=Object.prototype,Tr=_r.toString;function vr(e){return Tr.call(e)}var xr="[object Null]",Sr="[object Undefined]",$t=Ce?Ce.toStringTag:void 0;function Er(e){return e==null?e===void 0?Sr:xr:$t&&$t in Object(e)?wr(e):vr(e)}function Or(e){return e!=null&&typeof e=="object"}var Br="[object Symbol]";function Ar(e){return typeof e=="symbol"||Or(e)&&Er(e)==Br}var Cr=/\s/;function Ir(e){for(var t=e.length;t--&&Cr.test(e.charAt(t)););return t}var Mr=/^\s+/;function Lr(e){return e&&e.slice(0,Ir(e)+1).replace(Mr,"")}function Ie(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Rt=NaN,Nr=/^[-+]0x[0-9a-f]+$/i,zr=/^0b[01]+$/i,$r=/^0o[0-7]+$/i,Rr=parseInt;function Vt(e){if(typeof e=="number")return e;if(Ar(e))return Rt;if(Ie(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ie(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Lr(e);var n=zr.test(e);return n||$r.test(e)?Rr(e.slice(2),n?2:8):Nr.test(e)?Rt:+e}var He=function(){return Nt.Date.now()},Vr="Expected a function",Pr=Math.max,jr=Math.min;function Dr(e,t,n){var o,s,i,a,u,c,f=0,p=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(Vr);t=Vt(t)||0,Ie(n)&&(p=!!n.leading,d="maxWait"in n,i=d?Pr(Vt(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function w(l){var b=o,g=s;return o=s=void 0,f=l,a=e.apply(g,b),a}function E(l){return f=l,u=setTimeout(x,t),p?w(l):a}function C(l){var b=l-c,g=l-f,R=t-b;return d?jr(R,i-g):R}function A(l){var b=l-c,g=l-f;return c===void 0||b>=t||b<0||d&&g>=i}function x(){var l=He();if(A(l))return T(l);u=setTimeout(x,C(l))}function T(l){return u=void 0,h&&o?w(l):(o=s=void 0,a)}function v(){u!==void 0&&clearTimeout(u),f=0,o=c=s=u=void 0}function k(){return u===void 0?a:T(He())}function S(){var l=He(),b=A(l);if(o=arguments,s=this,c=l,b){if(u===void 0)return E(c);if(d)return clearTimeout(u),u=setTimeout(x,t),w(c)}return u===void 0&&(u=setTimeout(x,t)),a}return S.cancel=v,S.flush=k,S}var Ur="Expected a function";function Wr(e,t,n){var o=!0,s=!0;if(typeof e!="function")throw new TypeError(Ur);return Ie(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),Dr(e,t,{leading:o,maxWait:t,trailing:s})}let Pt;const jt=()=>{const e=F.useRouter(),{active:t,hasTab:n,pageShown:o,reset:s,canAddTab:i}=de(),a=fe(),u=Wr(p=>new Promise((d,h)=>{if(!o.value){h();return}const w=Z(p,{refreshable:!0,closable:!0,iframe:!1});if(n(w.id)){a.emit(P.TAB_ACTIVE,{id:w.id}),d(w.id);return}if(w.id||(w.id=rt()),!i()){h("Max Size");return}c(p,w),d(w.id)}),500),c=(p,d)=>{const h=ht(d);let w=Z({__tab:h},p.query),E;if(p.iframe){const C=encodeURIComponent(p.path);E=Pt,w.__src=C}else{const C=Ue(p.path);E=C.path,w=Z(C.query,w)}e.push({path:E,query:w})};return{openNewTab:u,setIFramePath:p=>{Pt=p},active:t,reset:s}},Fr={class:"stack-tab__container"},qr=["src"],Dt=r.defineComponent({__name:"StackTabs",props:{defaultTabs:{default:()=>[]},max:{default:20},append:{default:"last"},contextmenu:{type:[Boolean,Object],default:!0},pageTransition:{default:"stack-tab-swap"},tabTransition:{default:"stack-tab-zoom"},tabScrollMode:{default:Y.BOTH},width:{default:"100%"},height:{default:"100%"},i18n:{default:"zh-CN"},space:{default:300},globalScroll:{type:Boolean,default:!1},iframePath:{}},emits:["onActive","onPageLoaded"],setup(e,{emit:t}){const{tabs:n,pageShown:o,caches:s,destroy:i,addPage:a,initial:u,setMaxSize:c,setGlobalScroll:f}=de(),p=t,d=e,{changeLocale:h}=ge(),w=r.ref(!1);r.provide("maximum",w);const{setIFramePath:E}=jt();E(d.iframePath),f(d.globalScroll),h(d.i18n),r.onBeforeMount(()=>{u(d.defaultTabs)});const C=(T,v)=>a(T,v),A=T=>{p("onActive",T)};c(d.max),r.onBeforeUnmount(()=>{i()});const x=()=>{p("onPageLoaded")};return(T,v)=>{const k=r.resolveComponent("router-view");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["stack-tab",{"stack-tab__maximum":w.value}]),style:r.normalizeStyle({width:T.width,height:T.height,"z-index":w.value?r.unref(et)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[r.createVNode(br,{space:T.space,onActive:A,"tab-transition":T.tabTransition,max:T.max},{leftButton:r.withCtx(()=>[r.renderSlot(T.$slots,"leftButton")]),rightButton:r.withCtx(()=>[r.renderSlot(T.$slots,"rightButton")]),_:3},8,["space","tab-transition","max"]),r.createElementVNode("div",Fr,[r.createVNode(k,null,{default:r.withCtx(({Component:S,route:l})=>[r.createVNode(r.Transition,{name:T.pageTransition,onAfterLeave:v[0]||(v[0]=b=>o.value=!0),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(C(l,S)),{key:l.fullPath,onOnLoaded:x},null,32)):r.createCommentVNode("",!0)],1032,["include"]))]),_:2},1032,["name"])]),_:1}),r.createVNode(r.TransitionGroup,{name:T.pageTransition,appear:""},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(n).filter(S=>S.iframe),S=>r.withDirectives((r.openBlock(),r.createElementBlock("iframe",{key:S.id,class:"stack-tab__iframe",src:/^(javascript|data):/i.test(S.url??"")?"about:blank":S.url,frameborder:"0"},null,8,qr)),[[r.vShow,S.active&&r.unref(o)]])),128))]),_:1},8,["name"])])],6)}}}),Ze=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Ut=typeof TextEncoder=="function"?new TextEncoder:void 0,me=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(e=>{let t={};return e.forEach((n,o)=>t[n]=o),t})(me);const G=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const Gr=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Wt=typeof btoa=="function"?e=>btoa(e):Ze?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,o,s,i="";const a=e.length%3;for(let u=0;u<e.length;){if((n=e.charCodeAt(u++))>255||(o=e.charCodeAt(u++))>255||(s=e.charCodeAt(u++))>255)throw new TypeError("invalid character found");t=n<<16|o<<8|s,i+=me[t>>18&63]+me[t>>12&63]+me[t>>6&63]+me[t&63]}return a?i.slice(0,a-3)+"===".substring(a):i},Hr=Ze?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let o=0,s=e.length;o<s;o+=4096)n.push(G.apply(null,e.subarray(o,o+4096)));return Wt(n.join(""))},Zr=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?G(192|t>>>6)+G(128|t&63):G(224|t>>>12&15)+G(128|t>>>6&63)+G(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return G(240|t>>>18&7)+G(128|t>>>12&63)+G(128|t>>>6&63)+G(128|t&63)}},Xr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Yr=e=>e.replace(Xr,Zr),Ft=Ze?e=>Buffer.from(e,"utf8").toString("base64"):Ut?e=>Hr(Ut.encode(e)):e=>Wt(Yr(e)),Jr=(e,t=!1)=>t?Gr(Ft(e)):Ft(e),Kr=e=>{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: ${e}</tspan></text></g></svg>`,a="data:image/svg+xml;base64,"+Jr(o),u="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+",u+`background-image: url(${a});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`)},qt=()=>{const{attrs:e,props:t}=r.getCurrentInstance(),{pageShown:n,getTab:o,markDeletableCache:s,removeComponent:i,getComponent:a,addPageScroller:u}=de(),c=F.useRoute(),f=F.useRouter();let p="",d="";p=e.tId||t.tId;const h=e.pId||t.pId;return d=c.query.__tab,{forward:A=>{n.value=!1;const x=Z({__tab:d},A.query);f.push({path:A.path,query:x})},backward:(A,x)=>{n.value=!1;const T=o(p);if(!T)return;const v=T.pages;let k=0;if(typeof A=="number")k=Math.abs(A);else{let b=1,g=!1;const R=v.list(),U=Ue(A);x=Z(U.query,x);for(let W=v.size()-2;W>=0;W--){if(R[W].path===U.path){g=!0;break}b+=1}g&&(k=b)}if(k===0||v.size()<=k)return;for(let b=0;b<k;b++){const g=v.pop();i(g.id),s(g.id)}const S=v==null?void 0:v.peek(),l=a(S.id);if(l!=null){const b=l.components.DynamicComponent;b.props=Z(x,b.props)}f.push({path:S.path,query:S.query})},addScroller:(...A)=>{u(h,...A)}}},Qr=r.defineComponent({__name:"iframe",setup(e){return qt(),(t,n)=>(r.openBlock(),r.createElementBlock("div"))}}),eo=()=>{const e=fe(),{attrs:t}=r.getCurrentInstance();r.onUnmounted(()=>{o()});const n=()=>{e.emit(P.PAGE_LOADING,{tId:t.tId,value:!0})},o=()=>{e.emit(P.PAGE_LOADING,{tId:t.tId,value:!1})};return{openTabLoading:n,closeTabLoading:o}},to={install(e,t){Kr("0.1.26"),e.component("VueStackTabs",Dt).use(Ln).use(sn().getI18n(t))}};N.IFrame=Qr,N.Stack=ye,N.StackTab=Dt,N.TabHeaderButton=Ae,N.TabScrollMode=Y,N.default=to,N.useStackTab=jt,N.useTabLoading=eo,N.useTabRouter=qt,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
*/const Yt=["__proto__","prototype","constructor"];function Jt(e){const t=typeof e;return e!==null&&(t==="object"||t==="function")}function Kt(e){return!(Array.isArray(e)?e.length:Object.keys(e).length)}function Qt(e){return!e.some(t=>Yt.indexOf(t)!==-1)}function en(e){const t=e.split("."),n=[];for(let o=0;o<t.length;o++){let s=t[o];for(;s[s.length-1]==="\\"&&t[o+1]!==void 0;)s=s.slice(0,-1)+".",s+=t[++o];n.push(s)}return Qt(n)?n:[]}function Ye(e,t){if(!Jt(e))return"";const n=en(t);if(n.length===0)return"";let o=Object.assign({},e);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 tn(e,t){if(Array.isArray(t)){const n={},o=[...e.matchAll(/{(.+?)}/g)];return o&&o.forEach((s,i)=>{t[i]&&(n[s[1]]=t[i])}),n}return t}function nn(e,t){for(const n in t)e=e.replace(`{${n}}`,String(t[n]));return e}function Je(e,t){return Object.keys(t).forEach(n=>{t[n]instanceof Object&&n in e&&(t[n]={...t[n],...Je(e[n],t[n])})}),{...e||{},...t}}const rn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Ke=(e=>rn?Symbol(e):"_vt_"+e)("i18n");function ye(){return r.inject(Ke)}function on(e){const t=Object.assign({locale:"en",fallbackLocale:"en",messages:{}},e),n=r.ref(t.locale),o=r.reactive({});return Object.entries(t.messages).forEach(([s,i])=>{o[s]=i}),{t(s,i){if(!s)return"";const a=typeof i=="string"&&i?i:n.value;let u=Ye(o[a],s)||Ye(o[t.fallbackLocale],s);if(i&&typeof i!="string"){const c=tn(u,i);Kt(c)||(u=nn(u,c))}return u||s},current:r.readonly(n),options:r.readonly(e||{}),install(s){const i=this;s.config.globalProperties.$t=i.t,s.provide(Ke,i)},changeLocale(s){n.value=s},setLocaleMessage(s,i){o[s]=Je(r.toRaw(o[s]||{}),i)},getLocaleMessage(s){return o[s]||{}}}}const sn=()=>{const e=Object.assign({"./lang/en.ts":Zt,"./lang/zh-CN.ts":Xt});function t(s,i){for(const a in s)if(s[a].default){const u=a.substring(a.lastIndexOf("/")+1,a.lastIndexOf("."));i[u]?i[u]={...s[u],...s[a].default}:i[u]=s[a].default}}const n=()=>{const s={};return t(e,s),s};return{getI18n:s=>{const i={...n()};if(s)for(const a of s)i[a.locale]=a.messages;return on({locale:"zh-CN",fallbackLocale:"en",messages:i})}}},Qe=({wrap:e,left:t=0,top:n=0,smooth:o=!0})=>{e&&(e.scrollTo?e.scrollTo({left:t,top:n,behavior:o?"smooth":"auto"}):(e.scrollLeft=t,e.scrollTop=n))};function an({el:e,wrap:t,block:n="start",inline:o="nearest"}){if(!(!e||!t))if(e.scrollIntoView)e.scrollIntoView({behavior:"smooth",block:n,inline:o});else{const{offsetLeft:s,offsetTop:i}=e;let a,u;n==="center"?u=i+(e.clientHeight-t.clientHeight)/2:u=i,o==="center"?a=s+(e.clientWidth-t.clientWidth)/2:a=s,Qe({wrap:t,left:a,top:u})}}const et=(e=".stack-tab__container *")=>{const t=Array.from(document.querySelectorAll(e)).map(n=>+window.getComputedStyle(n).zIndex||0);return t.length?Math.max(...t.filter(n=>n<9e4))+1:1};var Y=(e=>(e.WHEEL="wheel",e.BUTTON="button",e.BOTH="both",e))(Y||{});class ke{constructor(t){Ht(this,"items");if(this.items=new Map,t)for(const n of t)this.push(n)}push(t){this.items.set(this.items.size,t)}pop(){if(this.isEmpty())return;const t=this.items.get(this.items.size-1);return this.items.delete(this.items.size-1),t}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 t="";return this.items.forEach((n,o)=>{t=`${t}${o===0?"":", "}${n}`}),t}toJSON(){return Array.from(this.items.values())}}function Le(e){if(!Ne(e))throw new Error("Parameter was not an error")}function Ne(e){return cn(e)==="[object Error]"||e instanceof Error}function cn(e){return Object.prototype.toString.call(e)}function ln(e){let t,n="";if(e.length===0)t={};else if(Ne(e[0]))t={cause:e[0]},n=e.slice(1).join(" ")||"";else if(e[0]&&typeof e[0]=="object")t=Object.assign({},e[0]),n=e.slice(1).join(" ")||"";else if(typeof e[0]=="string")t={},n=n=e.join(" ")||"";else throw new Error("Invalid arguments passed to Layerr");return{options:t,shortMessage:n}}class D extends Error{constructor(t,n){const o=[...arguments],{options:s,shortMessage:i}=ln(o);let a=i;if(s.cause&&(a=`${a}: ${s.cause.message}`),super(a),this.message=a,s.name&&typeof s.name=="string"?this.name=s.name:this.name="Layerr",s.cause&&Object.defineProperty(this,"_cause",{value:s.cause}),Object.defineProperty(this,"_info",{value:{}}),s.info&&typeof s.info=="object"&&Object.assign(this._info,s.info),Error.captureStackTrace){const u=s.constructorOpt||this.constructor;Error.captureStackTrace(this,u)}}static cause(t){return Le(t),t._cause&&Ne(t._cause)?t._cause:null}static fullStack(t){Le(t);const n=D.cause(t);return n?`${t.stack}
|
|
6
|
+
caused by: ${D.fullStack(n)}`:t.stack}static info(t){Le(t);const n={},o=D.cause(t);return o&&Object.assign(n,D.info(o)),t._info&&Object.assign(n,t._info),n}cause(){return D.cause(this)}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}const tt="0123456789ABCDEFGHJKMNPQRSTVWXYZ",ae=32,nt=0xffffffffffff,fn=10,un=16,ce=Object.freeze({source:"ulid"});function dn(e){const t=e||hn(),n=t&&(t.crypto||t.msCrypto)||null;if(typeof(n==null?void 0:n.getRandomValues)=="function")return()=>{const o=new Uint8Array(1);return n.getRandomValues(o),o[0]/255};if(typeof(n==null?void 0:n.randomBytes)=="function")return()=>n.randomBytes(1).readUInt8()/255;throw new D({info:{code:"PRNG_DETECT",...ce}},"Failed to find a reliable PRNG")}function hn(){return mn()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function pn(e,t){let n="";for(;e>0;e--)n=gn(t)+n;return n}function bn(e,t){if(isNaN(e))throw new D({info:{code:"ENC_TIME_NAN",...ce}},`Time must be a number: ${e}`);if(e>nt)throw new D({info:{code:"ENC_TIME_SIZE_EXCEED",...ce}},`Cannot encode a time larger than ${nt}: ${e}`);if(e<0)throw new D({info:{code:"ENC_TIME_NEG",...ce}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new D({info:{code:"ENC_TIME_TYPE",...ce}},`Time must be an integer: ${e}`);let n,o="";for(let s=t;s>0;s--)n=e%ae,o=tt.charAt(n)+o,e=(e-n)/ae;return o}function mn(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function gn(e){let t=Math.floor(e()*ae);return t===ae&&(t=ae-1),tt.charAt(t)}function rt(e,t){const n=t||dn(),o=isNaN(e)?Date.now():e;return bn(o,fn)+pn(un,n)}var ze={exports:{}};ze.exports,function(e){var t=function(){var n=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function a(c,f){if(!i[c]){i[c]={};for(var p=0;p<c.length;p++)i[c][c.charAt(p)]=p}return i[c][f]}var u={compressToBase64:function(c){if(c==null)return"";var f=u._compress(c,6,function(p){return o.charAt(p)});switch(f.length%4){default:case 0:return f;case 1:return f+"===";case 2:return f+"==";case 3:return f+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:u._decompress(c.length,32,function(f){return a(o,c.charAt(f))})},compressToUTF16:function(c){return c==null?"":u._compress(c,15,function(f){return n(f+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:u._decompress(c.length,16384,function(f){return c.charCodeAt(f)-32})},compressToUint8Array:function(c){for(var f=u.compress(c),p=new Uint8Array(f.length*2),d=0,h=f.length;d<h;d++){var w=f.charCodeAt(d);p[d*2]=w>>>8,p[d*2+1]=w%256}return p},decompressFromUint8Array:function(c){if(c==null)return u.decompress(c);for(var f=new Array(c.length/2),p=0,d=f.length;p<d;p++)f[p]=c[p*2]*256+c[p*2+1];var h=[];return f.forEach(function(w){h.push(n(w))}),u.decompress(h.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":u._compress(c,6,function(f){return s.charAt(f)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),u._decompress(c.length,32,function(f){return a(s,c.charAt(f))}))},compress:function(c){return u._compress(c,16,function(f){return n(f)})},_compress:function(c,f,p){if(c==null)return"";var d,h,w={},E={},C="",A="",x="",T=2,v=3,k=2,S=[],l=0,b=0,g;for(g=0;g<c.length;g+=1)if(C=c.charAt(g),Object.prototype.hasOwnProperty.call(w,C)||(w[C]=v++,E[C]=!0),A=x+C,Object.prototype.hasOwnProperty.call(w,A))x=A;else{if(Object.prototype.hasOwnProperty.call(E,x)){if(x.charCodeAt(0)<256){for(d=0;d<k;d++)l=l<<1,b==f-1?(b=0,S.push(p(l)),l=0):b++;for(h=x.charCodeAt(0),d=0;d<8;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1}else{for(h=1,d=0;d<k;d++)l=l<<1|h,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=0;for(h=x.charCodeAt(0),d=0;d<16;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1}T--,T==0&&(T=Math.pow(2,k),k++),delete E[x]}else for(h=w[x],d=0;d<k;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1;T--,T==0&&(T=Math.pow(2,k),k++),w[A]=v++,x=String(C)}if(x!==""){if(Object.prototype.hasOwnProperty.call(E,x)){if(x.charCodeAt(0)<256){for(d=0;d<k;d++)l=l<<1,b==f-1?(b=0,S.push(p(l)),l=0):b++;for(h=x.charCodeAt(0),d=0;d<8;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1}else{for(h=1,d=0;d<k;d++)l=l<<1|h,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=0;for(h=x.charCodeAt(0),d=0;d<16;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1}T--,T==0&&(T=Math.pow(2,k),k++),delete E[x]}else for(h=w[x],d=0;d<k;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1;T--,T==0&&(T=Math.pow(2,k),k++)}for(h=2,d=0;d<k;d++)l=l<<1|h&1,b==f-1?(b=0,S.push(p(l)),l=0):b++,h=h>>1;for(;;)if(l=l<<1,b==f-1){S.push(p(l));break}else b++;return S.join("")},decompress:function(c){return c==null?"":c==""?null:u._decompress(c.length,32768,function(f){return c.charCodeAt(f)})},_decompress:function(c,f,p){var d=[],h=4,w=4,E=3,C="",A=[],x,T,v,k,S,l,b,g={val:p(0),position:f,index:1};for(x=0;x<3;x+=1)d[x]=x;for(v=0,S=Math.pow(2,2),l=1;l!=S;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;switch(v){case 0:for(v=0,S=Math.pow(2,8),l=1;l!=S;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;b=n(v);break;case 1:for(v=0,S=Math.pow(2,16),l=1;l!=S;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;b=n(v);break;case 2:return""}for(d[3]=b,T=b,A.push(b);;){if(g.index>c)return"";for(v=0,S=Math.pow(2,E),l=1;l!=S;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;switch(b=v){case 0:for(v=0,S=Math.pow(2,8),l=1;l!=S;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;d[w++]=n(v),b=w-1,h--;break;case 1:for(v=0,S=Math.pow(2,16),l=1;l!=S;)k=g.val&g.position,g.position>>=1,g.position==0&&(g.position=f,g.val=p(g.index++)),v|=(k>0?1:0)*l,l<<=1;d[w++]=n(v),b=w-1,h--;break;case 2:return A.join("")}if(h==0&&(h=Math.pow(2,E),E++),d[b])C=d[b];else if(b===w)C=T+T.charAt(0);else return null;A.push(C),d[w++]=T+C.charAt(0),h--,T=C,h==0&&(h=Math.pow(2,E),E++)}}};return u}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(ze);var ot=ze.exports;const yn=new TextEncoder,kn=new TextDecoder("utf-8",{ignoreBOM:!0}),st={encode:e=>yn.encode(e),decode:e=>kn.decode(e)},it=(()=>{const t=[..."0123456789abcdef"],n=new Array(256);for(let o=0;o<256;o++)n[o]=`${t[o>>>4&15]}${t[o&15]}`;return n})(),wn=(()=>{const e={};for(let t=0;t<256;t++){const n=it[t],o=n[0],s=o.toUpperCase(),i=n[1],a=i.toUpperCase();e[n]=t,e[`${o}${a}`]=t,e[`${s}${i}`]=t,e[`${s}${a}`]=t}return e})(),$e={encode:e=>{let t="";for(let n=0,o=e.length;n<o;n++)t+=it[e[n]];return t},encodeStr:e=>$e.encode(st.encode(e)),decode:e=>{const t=e.length/2,n=new Uint8Array(t);for(let o=0;o<t;o++)n[o]=wn[e.slice(o*2,o*2+2)];return n},decodeStr:e=>st.decode($e.decode(e)),is:e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e))};function le(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function _n(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function at(e,...t){if(!_n(e))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function Re(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function ct(e,t){at(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const we=BigInt(2**32-1),lt=BigInt(32);function ft(e,t=!1){return t?{h:Number(e&we),l:Number(e>>lt&we)}:{h:Number(e>>lt&we)|0,l:Number(e&we)|0}}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Tn=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),_e=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));function vn(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}const Te=(e,t)=>e<<32-t|e>>>t;if(!(new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68))throw new Error("Non little-endian hardware is not supported");function xn(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Ve(e){if(typeof e=="string"&&(e=xn(e)),!vn(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}class Sn{clone(){return this._cloneInto()}}function En(e){const t=(o,s)=>e(s).update(Ve(o)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=o=>e(o),t}class On extends Sn{constructor(t,n,o={},s,i,a){if(super(),this.blockLen=t,this.outputLen=n,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,le(t),le(n),le(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=_e(this.buffer=new Uint8Array(t))}update(t){Re(this);const{blockLen:n,buffer:o,buffer32:s}=this;t=Ve(t);const i=t.length,a=t.byteOffset,u=t.buffer;for(let c=0;c<i;){this.pos===n&&(this.compress(s,0,!1),this.pos=0);const f=Math.min(n-this.pos,i-c),p=a+c;if(f===n&&!(p%4)&&c+f<i){const d=new Uint32Array(u,p,Math.floor((i-c)/4));for(let h=0;c+n<i;h+=s.length,c+=n)this.length+=n,this.compress(d,h,!1);continue}o.set(t.subarray(c,c+f),this.pos),this.pos+=f,this.length+=f,c+=f}return this}digestInto(t){Re(this),ct(t,this);const{pos:n,buffer32:o}=this;this.finished=!0,this.buffer.subarray(n).fill(0),this.compress(o,0,!0);const s=_e(t);this.get().forEach((i,a)=>s[a]=i)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const o=t.slice(0,n);return this.destroy(),o}_cloneInto(t){const{buffer:n,length:o,finished:s,destroyed:i,outputLen:a,pos:u}=this;return t||(t=new this.constructor({dkLen:a})),t.set(...this.get()),t.length=o,t.finished=s,t.destroyed=i,t.outputLen=a,t.buffer.set(n),t.pos=u,t}}const H=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function J(e,t,n,o,s){return e=e+t+s|0,o=Te(o^e,16),n=n+o|0,t=Te(t^n,12),{a:e,b:t,c:n,d:o}}function K(e,t,n,o,s){return e=e+t+s|0,o=Te(o^e,8),n=n+o|0,t=Te(t^n,7),{a:e,b:t,c:n,d:o}}function ut(e,t,n,o,s,i,a,u,c,f,p,d,h,w,E,C,A,x,T,v){let k=0;for(let S=0;S<o;S++)({a:s,b:c,c:h,d:A}=J(s,c,h,A,n[t+e[k++]])),{a:s,b:c,c:h,d:A}=K(s,c,h,A,n[t+e[k++]]),{a:i,b:f,c:w,d:x}=J(i,f,w,x,n[t+e[k++]]),{a:i,b:f,c:w,d:x}=K(i,f,w,x,n[t+e[k++]]),{a,b:p,c:E,d:T}=J(a,p,E,T,n[t+e[k++]]),{a,b:p,c:E,d:T}=K(a,p,E,T,n[t+e[k++]]),{a:u,b:d,c:C,d:v}=J(u,d,C,v,n[t+e[k++]]),{a:u,b:d,c:C,d:v}=K(u,d,C,v,n[t+e[k++]]),{a:s,b:f,c:E,d:v}=J(s,f,E,v,n[t+e[k++]]),{a:s,b:f,c:E,d:v}=K(s,f,E,v,n[t+e[k++]]),{a:i,b:p,c:C,d:A}=J(i,p,C,A,n[t+e[k++]]),{a:i,b:p,c:C,d:A}=K(i,p,C,A,n[t+e[k++]]),{a,b:d,c:h,d:x}=J(a,d,h,x,n[t+e[k++]]),{a,b:d,c:h,d:x}=K(a,d,h,x,n[t+e[k++]]),{a:u,b:c,c:w,d:T}=J(u,c,w,T,n[t+e[k++]]),{a:u,b:c,c:w,d:T}=K(u,c,w,T,n[t+e[k++]]);return{v0:s,v1:i,v2:a,v3:u,v4:c,v5:f,v6:p,v7:d,v8:h,v9:w,v10:E,v11:C,v12:A,v13:x,v14:T,v15:v}}const dt=(()=>{const e=Array.from({length:16},(o,s)=>s),t=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=e;o<7;o++,s=t(s))n.push(...s);return Uint8Array.from(n)})();class Pe extends On{constructor(t={},n=0){if(super(64,t.dkLen===void 0?32:t.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=t.dkLen===void 0?32:t.dkLen,le(this.outputLen),t.key!==void 0&&t.context!==void 0)throw new Error("Blake3: only key or context can be specified at same time");if(t.key!==void 0){const o=Ve(t.key).slice();if(o.length!==32)throw new Error("Blake3: key should be 32 byte");this.IV=_e(o),this.flags=n|16}else if(t.context!==void 0){const o=new Pe({dkLen:32},32).update(t.context).digest();this.IV=_e(o),this.flags=n|64}else this.IV=H.slice(),this.flags=n;this.state=this.IV.slice(),this.bufferOut=Tn(this.bufferOut32)}get(){return[]}set(){}b2Compress(t,n,o,s=0){const{state:i,pos:a}=this,{h:u,l:c}=ft(BigInt(t),!0),{v0:f,v1:p,v2:d,v3:h,v4:w,v5:E,v6:C,v7:A,v8:x,v9:T,v10:v,v11:k,v12:S,v13:l,v14:b,v15:g}=ut(dt,s,o,7,i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],H[0],H[1],H[2],H[3],u,c,a,n);i[0]=f^x,i[1]=p^T,i[2]=d^v,i[3]=h^k,i[4]=w^S,i[5]=E^l,i[6]=C^b,i[7]=A^g}compress(t,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,t,n),this.chunkPos+=1,this.chunkPos===16||o){let i=this.state;this.state=this.IV.slice();for(let a,u=this.chunksDone+1;(o||!(u&1))&&(a=this.stack.pop());u>>=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(t){t=super._cloneInto(t);const{IV:n,flags:o,state:s,chunkPos:i,posOut:a,chunkOut:u,stack:c,chunksDone:f}=this;return t.state.set(s.slice()),t.stack=c.map(p=>Uint32Array.from(p)),t.IV.set(n),t.flags=o,t.chunkPos=i,t.chunksDone=f,t.posOut=a,t.chunkOut=u,t.enableXOF=this.enableXOF,t.bufferOut32.set(this.bufferOut32),t}destroy(){this.destroyed=!0,this.state.fill(0),this.buffer32.fill(0),this.IV.fill(0),this.bufferOut32.fill(0);for(let t of this.stack)t.fill(0)}b2CompressOut(){const{state:t,pos:n,flags:o,buffer32:s,bufferOut32:i}=this,{h:a,l:u}=ft(BigInt(this.chunkOut++)),{v0:c,v1:f,v2:p,v3:d,v4:h,v5:w,v6:E,v7:C,v8:A,v9:x,v10:T,v11:v,v12:k,v13:S,v14:l,v15:b}=ut(dt,0,s,7,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],H[0],H[1],H[2],H[3],u,a,n,o);i[0]=c^A,i[1]=f^x,i[2]=p^T,i[3]=d^v,i[4]=h^k,i[5]=w^S,i[6]=E^l,i[7]=C^b,i[8]=t[0]^A,i[9]=t[1]^x,i[10]=t[2]^T,i[11]=t[3]^v,i[12]=t[4]^k,i[13]=t[5]^S,i[14]=t[6]^l,i[15]=t[7]^b,this.posOut=0}finish(){if(this.finished)return;this.finished=!0,this.buffer.fill(0,this.pos);let t=this.flags|8;this.stack.length?(t|=4,this.compress(this.buffer32,0,!0),this.chunksDone=0,this.pos=this.blockLen):t|=(this.chunkPos?0:1)|2,this.flags=t,this.b2CompressOut()}writeInto(t){Re(this,!1),at(t),this.finish();const{blockLen:n,bufferOut:o}=this;for(let s=0,i=t.length;s<i;){this.posOut>=n&&this.b2CompressOut();const a=Math.min(n-this.posOut,i-s);t.set(o.subarray(this.posOut,this.posOut+a),s),this.posOut+=a,s+=a}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible after digest call");return this.writeInto(t)}xof(t){return le(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(ct(t,this),this.finished)throw new Error("digest() was already called");return this.enableXOF=!1,this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}}const Bn=En(e=>new Pe(e)),ht=e=>{const t=`${e.id}|${e.title}|${e.iframe?"Y":"N"}|${e.closable?"Y":"N"}|${e.refreshable?"Y":"N"}`;return ot.compressToEncodedURIComponent(t)},An=e=>{const n=ot.decompressFromEncodedURIComponent(e).split("|");return{id:n[0],title:n[1],iframe:n[2]==="Y",closable:n[3]==="Y",refreshable:n[4]==="Y"}},pt=(e,t,n)=>{const o=[];for(const i in n)i.startsWith("__")||o.push({key:i,value:n[i]});o.sort((i,a)=>{let u=0;return i.key>a.key?u=1:i.key<a.key&&(u=-1),u});const s=Bn(`${e}|${t}|${JSON.stringify(o)}`);return $e.encode(s)};function je(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function De(e,t,n=".",o){if(!je(t))return De(e,{},n,o);const s=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const a=e[i];a!=null&&(o&&o(s,i,a,n)||(Array.isArray(a)&&Array.isArray(s[i])?s[i]=[...a,...s[i]]:je(a)&&je(s[i])?s[i]=De(a,s[i],(n?`${n}.`:"")+i.toString(),o):s[i]=a))}return s}function Cn(e){return(...t)=>t.reduce((n,o)=>De(n,o,"",e),{})}const Z=Cn(),Ue=e=>{const t=e.split("?");if(t.length<=1)return{path:t[0],query:{}};{const n=t[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:t[0],query:o}}};function In(e){return{all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map(function(s){s(n)}),(o=e.get("*"))&&o.slice().map(function(s){s(t,n)})}}}const Mn=In(),Ln={install(e){e.provide("tabEmitter",Mn)}},fe=()=>r.inject("tabEmitter");var P=(e=>(e.PAGE_LOADING="PAGE_LOADING",e.TAB_ACTIVE="TAB_ACTIVE",e))(P||{});const Nn={key:0,class:"stack-tab-loading-mask"},zn=[r.createElementVNode("div",{class:"stack-tab-loading--spin turn"},null,-1)],$n=r.defineComponent({__name:"PageLoading",props:{tId:{}},setup(e){const t=e,n=fe(),o=r.ref(!1);return n.on(P.PAGE_LOADING,({tId:s,value:i})=>{s===t.tId&&(o.value=i)}),(s,i)=>o.value?(r.openBlock(),r.createElementBlock("div",Nn,zn)):r.createCommentVNode("",!0)}}),M=r.ref([]),ve=[],z=r.ref([]),Q=new Map,ue=new Set,xe=r.ref(!0),bt="stacktab-active-tab",te=new Map;let mt=!1,Se=0,gt=!1;const de=()=>{const e=F.useRouter(),t=fe(),n=()=>M.value.length,o=_=>{ve.splice(0),z.value.splice(0),ue.clear(),Q.clear();for(const O of _){const y=Z(O,{id:rt()}),I=ht(y),$=Ue(y.path),V=Z(y,{closable:!0,refreshable:!0,iframe:!1}),ie=pt(y.id,$.path,$.query),X={id:ie,tabId:y.id,path:$.path,query:Z($.query,{__tab:I})},ge=new ke;ge.push(X);const Gt={id:y.id,title:V.title,closable:V.closable,refreshable:V.refreshable,iframe:V.iframe,active:!1,pages:ge};ve.push(Gt),M.value.push(Gt),z.value.push(ie)}const m=window.sessionStorage.getItem(bt);if(m!=null){const O=JSON.parse(m,(I,$)=>I==="pages"?new ke($):$);let y=!1;for(const I of M.value)if(I.id===O.id){y=!0;break}y||M.value.push(O)}mt=!0},s=_=>{for(const m of M.value)if(m.id===_)return!0;return!1},i=()=>Se<=0||Se>0&&Se>M.value.length,a=_=>new Promise(m=>{M.value.push(_),m(!0)}),u=_=>{for(const m of M.value)if(m.id===_)return m;return null},c=(_,m)=>{let O;const y=An(_.query.__tab),I=pt(y.id,_.path,_.query.valueOf()),$=_.query.__src;let V=null;for(const X of r.unref(M))X.active=!1,X.id===y.id&&(V=X);const ie={id:I,tabId:y.id,path:_.path,query:_.query};if(V===null){const X=new ke;X.push(ie),V={id:y.id,title:y.title,closable:y.closable,refreshable:y.refreshable,iframe:y.iframe,url:decodeURIComponent($),active:!0,pages:X},a(V).then(()=>{t.emit(P.TAB_ACTIVE,{id:y.id,isRoute:!1})})}else V.active=!0,(V.pages.isEmpty()||V.pages.peek().id!==ie.id)&&V.pages.push(ie);return B(V),Q.has(I)?O=Q.get(I):(O=r.defineComponent({name:I,components:{DynamicComponent:m},emits:{onLoaded:null},setup(X,ge){return r.onMounted(()=>{ge.emit("onLoaded"),h(I,".cache-page-wrapper")}),r.onDeactivated(()=>{p(I)}),r.onActivated(()=>{ge.emit("onLoaded"),f(I),g(),m.props=null}),r.onUnmounted(()=>{d(I)}),()=>r.createVNode("div",{class:"cache-page-wrapper",id:"W-"+y.id,style:[gt?"overflow:auto":"overflow:hidden"]},[r.createVNode(r.resolveComponent("dynamic-component"),{tId:y.id,pId:I},null),r.createVNode($n,{tId:y.id},null)])}}),Q.set(I,O)),U(I),O},f=_=>{const m=te.get(_);if(m){for(const O of m.keys())if(document.querySelector(O)){const y=m.get(O);document.querySelector(O).scrollTop=y.top,document.querySelector(O).scrollLeft=y.left}}},p=_=>{var O,y;const m=te.get(_);if(m)for(const I of m.keys()){const $={top:((O=document.querySelector(I))==null?void 0:O.scrollTop)??0,left:((y=document.querySelector(I))==null?void 0:y.scrollLeft)??0};m.set(I,$)}},d=_=>{const m=te.get(_);m&&(m.clear(),te.delete(_))},h=(_,...m)=>{te.has(_)||te.set(_,new Map);const O=te.get(_);for(const y of m)O.set(y,{top:0,left:0})},w=_=>{let m="";for(let O=M.value.length-1;O>=0;O--)if(_===r.unref(M)[O].id){if(!r.unref(M)[O].closable)return _;for(const y of r.unref(M)[O].pages.list())l(y.id),b(y.id);r.unref(M)[O].pages.clear(),M.value.length>1&&r.unref(M)[O].active&&(O===0?m=r.unref(M)[O+1].id:m=r.unref(M)[O-1].id),r.unref(M).splice(O,1);break}return m!==""&&t.emit(P.TAB_ACTIVE,{id:m}),g(),m},E=()=>{const _=r.unref(M);for(let m=_.length-1;m>=0;m--)if(_[m].closable){for(const O of _[m].pages.list())l(O.id),b(O.id);r.unref(M)[m].pages.clear(),r.unref(M).splice(m,1)}for(const m of _)if(m.active){g();return}t.emit(P.TAB_ACTIVE,{id:_[_.length-1].id})},C=_=>{const m=r.unref(M);let O;for(let y=m.length-1;y>=0;y--)if(m[y].id===_)O=m[y];else if(m[y].closable&&m[y].id!==_){for(const I of m[y].pages.list())l(I.id),b(I.id);r.unref(M)[y].pages.clear(),r.unref(M).splice(y,1)}O.active?g():t.emit(P.TAB_ACTIVE,{id:_})},A=_=>{let m=-1;const O=r.unref(M);for(let y=0;y<O.length;y++)if(O[y].id===_){m=y-1;break}for(let y=m;y>=0;y--)if(O[y].closable){for(const I of O[y].pages.list())l(I.id),b(I.id);r.unref(M)[y].pages.clear(),r.unref(M).splice(y,1)}for(const y of O)if(y.active){g();return}t.emit(P.TAB_ACTIVE,{id:O[0].id})},x=_=>{const m=r.unref(M);let O=m.length;for(let y=0;y<m.length;y++)if(m[y].id===_){O=y+1;break}for(let y=m.length-1;y>=O;y--)if(m[y].closable){for(const I of m[y].pages.list())l(I.id),b(I.id);r.unref(M)[y].pages.clear(),r.unref(M).splice(y,1)}for(const y of m)if(y.active){g();return}t.emit(P.TAB_ACTIVE,{id:m[m.length-1].id})},T=_=>{var m;for(const O of r.unref(M))if(O.id===_){const y=(m=O.pages.peek())==null?void 0:m.id;for(let I=z.value.length-1;I>=0;I--)if(z.value[I]===y){z.value.splice(I,1),O.active&&(xe.value=!1);break}break}},v=()=>{const _=new Set;M.value.forEach(m=>{_.add(m.pages.peek().id)});for(let m=z.value.length-1;m>=0;m--){const O=z.value[m];_.has(O)&&z.value.splice(m,1)}xe.value=!1},k=(_,m)=>{Q.set(_,m)},S=_=>Q.get(_),l=_=>{Q.delete(_)},b=_=>{ue.add(_)},g=()=>{for(let _=z.value.length-1;_>=0;_--)ue.has(z.value[_])&&r.unref(z).splice(_,1);ue.clear()},R=_=>{for(let m=z.value.length-1;m>=0;m--)_===z.value[m]&&r.unref(z).splice(m,1)},U=_=>{new Set(z.value).has(_)||z.value.push(_)},W=(_,m=!0)=>new Promise(O=>{for(let y=M.value.length-1;y>=0;y--){const I=M.value[y];if(I.id===_){if(I.active)break;if(I.active=!0,xe.value=!1,B(I),m){const $=I.pages.peek();e.push({path:$.path,query:$.query})}}else M.value[y].active=!1}O(!0)}),B=_=>{window.sessionStorage.setItem(bt,JSON.stringify(_))},L=()=>{j(),r.unref(M).push(...ve),t.emit(P.TAB_ACTIVE,{id:ve[0].id})},j=()=>{r.unref(M).splice(0),Q.clear(),ue.clear(),r.unref(z).splice(0)};return{tabs:M,caches:z,pageShown:xe,initialed:mt,setMaxSize:_=>{Se=_},canAddTab:i,initial:o,size:n,active:W,destroy:j,reset:L,addCache:U,removeCache:R,getTab:u,addTab:a,removeTab:w,removeAllTabs:E,removeLeftTabs:A,removeRightTabs:x,removeOtherTabs:C,hasTab:s,addPage:c,addComponent:k,getComponent:S,removeComponent:l,markDeletableCache:b,removeDeletableCache:g,refreshTab:T,refreshAllTabs:v,addPageScroller:h,setGlobalScroll:_=>{gt=_}}},Rn={class:"stack-tab__contextmenu-item"},ee=r.defineComponent({__name:"ContextMenuItem",props:{icon:{},title:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",Rn,[r.createElementVNode("div",{class:r.normalizeClass(["stack-tab__contextmenu-icon",t.icon])},null,2),r.createElementVNode("div",{style:{"margin-left":"8px"},onContextmenu:n[0]||(n[0]=r.withModifiers(()=>{},["prevent"]))},r.toDisplayString(t.title),33)]))}}),Vn={key:0,class:"divider div-transparent"},Pn=((e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n})(r.defineComponent({__name:"index",props:{index:{},left:{default:0},top:{default:0},contextMenu:{},tabItem:{},max:{}},setup(e){const t=e,{t:n}=ye(),o=r.ref(),s=r.reactive({left:t.left,top:t.top}),{removeTab:i,removeAllTabs:a,removeLeftTabs:u,removeRightTabs:c,refreshTab:f,refreshAllTabs:p,removeOtherTabs:d}=de();return r.onMounted(()=>{const h=o.value?o.value.clientWidth:0,w=window.innerWidth;s.left+h>w&&(s.left=w-h-5)}),(h,w)=>(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(et)(".stack-tab,.stack-tab *")})},[r.createVNode(ee,{icon:"stack-tab__icon-reload svg-mask",title:r.unref(n)("VueStackTab.reload"),onClick:w[0]||(w[0]=E=>r.unref(f)(h.tabItem.id))},null,8,["title"]),r.createVNode(ee,{icon:"stack-tab__icon-reload-all svg-mask",title:r.unref(n)("VueStackTab.reloadAll"),onClick:r.unref(p)},null,8,["title","onClick"]),r.createVNode(ee,{icon:"stack-tab__icon-close svg-mask",title:r.unref(n)("VueStackTab.close"),disabled:h.tabItem.closable?null:"disabled",onClick:w[1]||(w[1]=E=>r.unref(i)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(ee,{icon:"stack-tab__icon-close-lefts svg-mask",title:r.unref(n)("VueStackTab.closeLeft"),disabled:h.index<=0?"disabled":null,onClick:w[2]||(w[2]=E=>r.unref(u)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(ee,{icon:"stack-tab__icon-close-rights svg-mask",title:r.unref(n)("VueStackTab.closeRight"),disabled:h.index>=h.max-1?"disabled":null,onClick:w[3]||(w[3]=E=>r.unref(c)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(ee,{icon:"stack-tab__icon-close-others svg-mask",title:r.unref(n)("VueStackTab.closeOthers"),onClick:w[4]||(w[4]=E=>r.unref(d)(h.tabItem.id))},null,8,["title"]),r.createVNode(ee,{icon:"stack-tab__icon-close-all svg-mask",title:r.unref(n)("VueStackTab.closeAll"),onClick:r.unref(a)},null,8,["title","onClick"]),h.contextMenu!==void 0&&h.contextMenu.length>0?(r.openBlock(),r.createElementBlock("div",Vn)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.contextMenu,(E,C)=>(r.openBlock(),r.createBlock(ee,{key:C,icon:E.icon,title:E.title,disabled:E.disabled(h.tabItem)?"disabled":null,onClick:A=>!E.disabled&&E.callback(h.tabItem.id)},null,8,["icon","title","disabled","onClick"]))),128))],4))}}),[["__scopeId","data-v-d598be6e"]]),jn=()=>{const e=r.reactive({item:{},index:-1,left:0,top:0,max:0}),t=r.ref(!1);r.onMounted(()=>{document.addEventListener("click",o)}),r.onUnmounted(()=>{document.removeEventListener("click",o)});const n=async(s,i,a,u)=>{t.value=!1,await r.nextTick(()=>{const{clientY:c,clientX:f}=s;t.value=!0,Object.assign(e,{item:i,index:a,top:c,left:f,max:u})})},o=s=>{s.target.classList.contains("stack-tab__contextmenu")||(t.value=!1)};return{shown:t,contextMenuData:e,showContextMenu:n}},Dn={class:"stack-tab__item-title"},Un=["title"],Wn=["title"],Fn=r.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(e,{emit:t}){const n=t,o=fe(),{t:s}=ye(),i=r.ref(),a=e;o.on(P.TAB_ACTIVE,({id:p,isRoute:d})=>{a.item.id===p&&f(d)});const u=r.computed(()=>a.item.title||s("undefined")),c=()=>{n("close",a.item)},f=(p=!0)=>{n("active",a.item,i,p)};return(p,d)=>(r.openBlock(),r.createElementBlock("li",{ref_key:"curtab",ref:i,class:r.normalizeClass(["stack-tab__item",{"is-active":p.item.active,"is-icon":p.item.closable}]),onClick:d[0]||(d[0]=h=>f(!0))},[r.createElementVNode("div",Dn,[r.createElementVNode("div",{class:"stack-tab__item-title-content",title:u.value},r.toDisplayString(u.value),9,Un)]),p.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,Wn)):r.createCommentVNode("",!0)],2))}});var ne=[],qn=function(){return ne.some(function(e){return e.activeTargets.length>0})},Gn=function(){return ne.some(function(e){return e.skippedTargets.length>0})},yt="ResizeObserver loop completed with undelivered notifications.",Hn=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:yt}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=yt),window.dispatchEvent(e)},he;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(he||(he={}));var re=function(e){return Object.freeze(e)},Zn=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,re(this)}return e}(),kt=function(){function e(t,n,o,s){return this.x=t,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,re(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,o=t.y,s=t.top,i=t.right,a=t.bottom,u=t.left,c=t.width,f=t.height;return{x:n,y:o,top:s,right:i,bottom:a,left:u,width:c,height:f}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),We=function(e){return e instanceof SVGElement&&"getBBox"in e},wt=function(e){if(We(e)){var t=e.getBBox(),n=t.width,o=t.height;return!n&&!o}var s=e,i=s.offsetWidth,a=s.offsetHeight;return!(i||a||e.getClientRects().length)},_t=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Xn=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},pe=typeof window<"u"?window:{},Ee=new WeakMap,Tt=/auto|scroll/,Yn=/^tb|vertical/,Jn=/msie|trident/i.test(pe.navigator&&pe.navigator.userAgent),q=function(e){return parseFloat(e||"0")},se=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Zn((n?t:e)||0,(n?e:t)||0)},vt=re({devicePixelContentBoxSize:se(),borderBoxSize:se(),contentBoxSize:se(),contentRect:new kt(0,0,0,0)}),xt=function(e,t){if(t===void 0&&(t=!1),Ee.has(e)&&!t)return Ee.get(e);if(wt(e))return Ee.set(e,vt),vt;var n=getComputedStyle(e),o=We(e)&&e.ownerSVGElement&&e.getBBox(),s=!Jn&&n.boxSizing==="border-box",i=Yn.test(n.writingMode||""),a=!o&&Tt.test(n.overflowY||""),u=!o&&Tt.test(n.overflowX||""),c=o?0:q(n.paddingTop),f=o?0:q(n.paddingRight),p=o?0:q(n.paddingBottom),d=o?0:q(n.paddingLeft),h=o?0:q(n.borderTopWidth),w=o?0:q(n.borderRightWidth),E=o?0:q(n.borderBottomWidth),C=o?0:q(n.borderLeftWidth),A=d+f,x=c+p,T=C+w,v=h+E,k=u?e.offsetHeight-v-e.clientHeight:0,S=a?e.offsetWidth-T-e.clientWidth:0,l=s?A+T:0,b=s?x+v:0,g=o?o.width:q(n.width)-l-S,R=o?o.height:q(n.height)-b-k,U=g+A+S+T,W=R+x+k+v,B=re({devicePixelContentBoxSize:se(Math.round(g*devicePixelRatio),Math.round(R*devicePixelRatio),i),borderBoxSize:se(U,W,i),contentBoxSize:se(g,R,i),contentRect:new kt(d,c,g,R)});return Ee.set(e,B),B},St=function(e,t,n){var o=xt(e,n),s=o.borderBoxSize,i=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(t){case he.DEVICE_PIXEL_CONTENT_BOX:return a;case he.BORDER_BOX:return s;default:return i}},Kn=function(){function e(t){var n=xt(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=re([n.borderBoxSize]),this.contentBoxSize=re([n.contentBoxSize]),this.devicePixelContentBoxSize=re([n.devicePixelContentBoxSize])}return e}(),Et=function(e){if(wt(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Qn=function(){var e=1/0,t=[];ne.forEach(function(a){if(a.activeTargets.length!==0){var u=[];a.activeTargets.forEach(function(f){var p=new Kn(f.target),d=Et(f.target);u.push(p),f.lastReportedSize=St(f.target,f.observedBox),d<e&&(e=d)}),t.push(function(){a.callback.call(a.observer,u,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,o=t;n<o.length;n++){var s=o[n];s()}return e},Ot=function(e){ne.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(Et(s.target)>e?n.activeTargets.push(s):n.skippedTargets.push(s))})})},er=function(){var e=0;for(Ot(e);qn();)e=Qn(),Ot(e);return Gn()&&Hn(),e>0},Fe,Bt=[],tr=function(){return Bt.splice(0).forEach(function(e){return e()})},nr=function(e){if(!Fe){var t=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return tr()}).observe(n,o),Fe=function(){n.textContent="".concat(t?t--:t++)}}Bt.push(e),Fe()},rr=function(e){nr(function(){requestAnimationFrame(e)})},Oe=0,or=function(){return!!Oe},sr=250,ir={attributes:!0,characterData:!0,childList:!0,subtree:!0},At=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ct=function(e){return e===void 0&&(e=0),Date.now()+e},qe=!1,ar=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=sr),!qe){qe=!0;var o=Ct(t);rr(function(){var s=!1;try{s=er()}finally{if(qe=!1,t=o-Ct(),!or())return;s?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,ir)};document.body?n():pe.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),At.forEach(function(n){return pe.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),At.forEach(function(n){return pe.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Ge=new ar,It=function(e){!Oe&&e>0&&Ge.start(),Oe+=e,!Oe&&Ge.stop()},cr=function(e){return!We(e)&&!Xn(e)&&getComputedStyle(e).display==="inline"},lr=function(){function e(t,n){this.target=t,this.observedBox=n||he.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=St(this.target,this.observedBox,!0);return cr(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),fr=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Be=new WeakMap,Mt=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Ae=function(){function e(){}return e.connect=function(t,n){var o=new fr(t,n);Be.set(t,o)},e.observe=function(t,n,o){var s=Be.get(t),i=s.observationTargets.length===0;Mt(s.observationTargets,n)<0&&(i&&ne.push(s),s.observationTargets.push(new lr(n,o&&o.box)),It(1),Ge.schedule())},e.unobserve=function(t,n){var o=Be.get(t),s=Mt(o.observationTargets,n),i=o.observationTargets.length===1;s>=0&&(i&&ne.splice(ne.indexOf(o),1),o.observationTargets.splice(s,1),It(-1))},e.disconnect=function(t){var n=this,o=Be.get(t);o.observationTargets.slice().forEach(function(s){return n.unobserve(t,s.target)}),o.activeTargets.splice(0,o.activeTargets.length)},e}(),Lt=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Ae.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!_t(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ae.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!_t(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ae.unobserve(this,t)},e.prototype.disconnect=function(){Ae.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const ur=["disabled","title"],dr={key:1,class:"stack-tab__button"},Ce=r.defineComponent({__name:"TabHeaderButton",props:{disabled:{type:Boolean,default:!1},shadow:{default:null},iconClass:{default:""},title:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["stack-tab__header-button",{"stack-tab__shadow-right":t.shadow==="right","stack-tab__shadow-left":t.shadow==="left"}]),disabled:t.disabled?"disabled":null,title:t.title},["icon"in t.$slots?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["stack-tab__mask-button",t.iconClass])},null,2)),"icon"in t.$slots?(r.openBlock(),r.createElementBlock("div",dr,[r.renderSlot(t.$slots,"icon")])):r.createCommentVNode("",!0)],10,ur))}}),hr=r.defineComponent({__name:"TabHeaderScroll",props:{space:{default:300},isScrollWheel:{type:Boolean,default:!0},isScrollButton:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=r.ref(null),o=r.ref(null),s=r.ref(null),i=r.ref(!1),a=r.ref(!1),u=r.ref(!1),c=r.ref(!0),f=r.ref(),p=e,d=r.reactive({clientWidth:0,scrollWidth:0,scrollLeft:0}),h=r.reactive({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});r.watch(d,B=>{w(B)});const w=B=>{a.value=B.scrollLeft<=10,u.value=B.clientWidth+B.scrollLeft-B.scrollWidth>=-10,c.value=B.scrollWidth!==B.clientWidth},E=r.computed(()=>d.scrollWidth>d.clientWidth),C=r.computed(()=>{if(!E.value)return 0;const{clientWidth:B,scrollWidth:L}=d;return B/L*B}),A=r.computed(()=>{if(!E.value)return 0;const{clientWidth:B,scrollWidth:L,scrollLeft:j}=d;return(B-C.value)*(j/(L-B))}),x=()=>{if(n.value===null||n.value===void 0)return;const{clientWidth:B,scrollWidth:L,scrollLeft:j}=n.value;Object.assign(d,{clientWidth:B,scrollWidth:L,scrollLeft:j})},T=new Lt(()=>{var L;x();const B=(L=n.value)==null?void 0:L.querySelector(".stack-tab__item.is-active");B&&(W(B)||U(B))}),v=new Lt(()=>{var B;if(!E.value){const L=(B=n.value)==null?void 0:B.querySelector(".stack-tab__item.is-active");L&&(W(L)||U(L))}x()}),k=(B,L=!0)=>{Qe({wrap:n.value,left:B,smooth:L})},S=B=>{k(n.value.scrollLeft+B)},l=B=>{const L=B.deltaY<0;k(n.value.scrollLeft+(L?-p.space:p.space))},b=B=>{var L;Object.assign(h,{startPageX:B.pageX,startScrollLeft:(L=n.value)==null?void 0:L.scrollLeft,startThumbLeft:A.value,thumbLeft:A.value}),i.value=!0,document.addEventListener("mousemove",g),document.addEventListener("mouseup",R)},g=B=>{const{clientWidth:L,scrollWidth:j}=d;let oe=h.startThumbLeft+B.pageX-h.startPageX;const Xe=L-C.value;oe<0?oe=0:oe>Xe&&(oe=Xe),h.thumbLeft=oe,k(oe*(j-L)/(L-C.value),!1),B.preventDefault()},R=B=>{i.value=!1,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",R),B.preventDefault()};r.onMounted(()=>{var L;T.observe(f.value);const B=(L=n.value)==null?void 0:L.querySelector(".stack-tab__nav");v.observe(B)}),r.onUnmounted(()=>{T.disconnect(),v.disconnect()});const U=B=>{an({el:B,wrap:n,block:"end",inline:"center"})},W=B=>{if(!E.value)return!0;const L=B.offsetLeft,j=n.value.scrollLeft;return!(L<j||L+B.clientWidth>j+n.value.clientWidth)};return t({scrollIntoView:U,isInView:W}),(B,L)=>(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:L[0]||(L[0]=j=>!a.value&&S(-1*B.space))},null,8,["disabled"])):r.createCommentVNode("",!0),r.createElementVNode("div",{ref_key:"headerScroll",ref:f,class:"stack-tab__scroll",onWheel:r.withModifiers(l,["prevent"])},[r.createElementVNode("div",{ref_key:"container",ref:n,class:r.normalizeClass(["stack-tab__scroll-container",{"stack-tab__shadow-inset-left":!a.value&&u.value,"stack-tab__shadow-inset-right":!u.value&&a.value,"stack-tab__shadow-inset-all":!a.value&&!u.value}]),onScrollPassive:x},[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:`${C.value}px`,transform:`translateX(${A.value}px)`}),onMousedown:r.withModifiers(b,["prevent"])},null,38)],2),[[r.vShow,E.value]])],544),c.value?(r.openBlock(),r.createBlock(Ce,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:u.value,onClick:L[1]||(L[1]=j=>!u.value&&S(B.space))},null,8,["disabled"])):r.createCommentVNode("",!0)],64))}}),pr={class:"stack-tab__header"},br=r.defineComponent({__name:"index",props:{space:{},tabScrollMode:{default:Y.BOTH},tabTransition:{default:()=>({name:"stack-tab-zoom"})},contextmenu:{type:[Boolean,Object],default:!0},max:{default:20}},emits:["active"],setup(e,{emit:t}){const{t:n}=ye(),o=r.inject("maximum"),s=t,i=r.ref(),{shown:a,contextMenuData:u,showContextMenu:c}=jn(),f=e,{removeTab:p,active:d,tabs:h}=de(),w=r.computed(()=>typeof f.tabTransition=="string"?{name:f.tabTransition}:f.tabTransition),E=r.computed(()=>f.tabScrollMode===Y.BOTH||f.tabScrollMode===Y.BUTTON),C=f.tabScrollMode===Y.BOTH||f.tabScrollMode===Y.WHEEL,A=T=>{if(T.closable){const v=p(T.id);s("active",v)}a.value=!1},x=(T,v,k)=>{i.value&&(r.nextTick(()=>{i.value.isInView(v.value)||i.value.scrollIntoView(v.value)}),d(T.id,k),s("active",T.id))};return(T,v)=>(r.openBlock(),r.createElementBlock("div",pr,[r.renderSlot(T.$slots,"leftButton"),r.createVNode(hr,{ref_key:"scroll",ref:i,space:T.space,"is-scroll-wheel":r.unref(C),"is-scroll-button":E.value},{default:r.withCtx(()=>[r.createVNode(r.TransitionGroup,r.mergeProps({key:"tabItemTrans",tag:"ul",class:"stack-tab__nav"},w.value,{appear:""}),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(h),(k,S)=>(r.openBlock(),r.createBlock(Fn,{key:k.id,contextmenu:T.contextmenu,item:k,onContextmenu:r.withModifiers(l=>r.unref(c)(l,k,S,r.unref(h).length),["prevent"]),onMouseup:r.withModifiers(l=>A(k),["middle","prevent"]),onClose:A,onActive:x},null,8,["contextmenu","item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),r.renderSlot(T.$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:v[0]||(v[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(Pn,{key:"tabMenuTrans",left:r.unref(u).left,top:r.unref(u).top,"tab-item":r.unref(u).item,max:r.unref(u).max,index:r.unref(u).index},null,8,["left","top","tab-item","max","index"])):r.createCommentVNode("",!0)]),_:1})]))}});var mr=typeof global=="object"&&global&&global.Object===Object&&global,gr=typeof self=="object"&&self&&self.Object===Object&&self,Nt=mr||gr||Function("return this")(),Ie=Nt.Symbol,zt=Object.prototype,yr=zt.hasOwnProperty,kr=zt.toString,be=Ie?Ie.toStringTag:void 0;function wr(e){var t=yr.call(e,be),n=e[be];try{e[be]=void 0;var o=!0}catch{}var s=kr.call(e);return o&&(t?e[be]=n:delete e[be]),s}var _r=Object.prototype,Tr=_r.toString;function vr(e){return Tr.call(e)}var xr="[object Null]",Sr="[object Undefined]",$t=Ie?Ie.toStringTag:void 0;function Er(e){return e==null?e===void 0?Sr:xr:$t&&$t in Object(e)?wr(e):vr(e)}function Or(e){return e!=null&&typeof e=="object"}var Br="[object Symbol]";function Ar(e){return typeof e=="symbol"||Or(e)&&Er(e)==Br}var Cr=/\s/;function Ir(e){for(var t=e.length;t--&&Cr.test(e.charAt(t)););return t}var Mr=/^\s+/;function Lr(e){return e&&e.slice(0,Ir(e)+1).replace(Mr,"")}function Me(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Rt=NaN,Nr=/^[-+]0x[0-9a-f]+$/i,zr=/^0b[01]+$/i,$r=/^0o[0-7]+$/i,Rr=parseInt;function Vt(e){if(typeof e=="number")return e;if(Ar(e))return Rt;if(Me(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Me(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Lr(e);var n=zr.test(e);return n||$r.test(e)?Rr(e.slice(2),n?2:8):Nr.test(e)?Rt:+e}var He=function(){return Nt.Date.now()},Vr="Expected a function",Pr=Math.max,jr=Math.min;function Dr(e,t,n){var o,s,i,a,u,c,f=0,p=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(Vr);t=Vt(t)||0,Me(n)&&(p=!!n.leading,d="maxWait"in n,i=d?Pr(Vt(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function w(l){var b=o,g=s;return o=s=void 0,f=l,a=e.apply(g,b),a}function E(l){return f=l,u=setTimeout(x,t),p?w(l):a}function C(l){var b=l-c,g=l-f,R=t-b;return d?jr(R,i-g):R}function A(l){var b=l-c,g=l-f;return c===void 0||b>=t||b<0||d&&g>=i}function x(){var l=He();if(A(l))return T(l);u=setTimeout(x,C(l))}function T(l){return u=void 0,h&&o?w(l):(o=s=void 0,a)}function v(){u!==void 0&&clearTimeout(u),f=0,o=c=s=u=void 0}function k(){return u===void 0?a:T(He())}function S(){var l=He(),b=A(l);if(o=arguments,s=this,c=l,b){if(u===void 0)return E(c);if(d)return clearTimeout(u),u=setTimeout(x,t),w(c)}return u===void 0&&(u=setTimeout(x,t)),a}return S.cancel=v,S.flush=k,S}var Ur="Expected a function";function Wr(e,t,n){var o=!0,s=!0;if(typeof e!="function")throw new TypeError(Ur);return Me(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),Dr(e,t,{leading:o,maxWait:t,trailing:s})}let Pt;const jt=()=>{const e=F.useRouter(),{active:t,hasTab:n,pageShown:o,reset:s,canAddTab:i}=de(),a=fe(),u=Wr(p=>new Promise((d,h)=>{if(!o.value){h();return}const w=Z(p,{refreshable:!0,closable:!0,iframe:!1});if(n(w.id)){a.emit(P.TAB_ACTIVE,{id:w.id}),d(w.id);return}if(w.id||(w.id=rt()),!i()){h("Max Size");return}c(p,w),d(w.id)}),500),c=(p,d)=>{const h=ht(d);let w=Z({__tab:h},p.query),E;if(p.iframe){const C=encodeURIComponent(p.path);E=Pt,w.__src=C}else{const C=Ue(p.path);E=C.path,w=Z(C.query,w)}e.push({path:E,query:w})};return{openNewTab:u,setIFramePath:p=>{Pt=p},active:t,reset:s}},Fr={class:"stack-tab__container"},qr=["src"],Dt=r.defineComponent({__name:"StackTabs",props:{defaultTabs:{default:()=>[]},max:{default:20},append:{default:"last"},contextmenu:{type:[Boolean,Object],default:!0},pageTransition:{default:"stack-tab-swap"},tabTransition:{default:"stack-tab-zoom"},tabScrollMode:{default:Y.BOTH},width:{default:"100%"},height:{default:"100%"},i18n:{default:"zh-CN"},space:{default:300},globalScroll:{type:Boolean,default:!1},iframePath:{}},emits:["onActive","onPageLoaded"],setup(e,{emit:t}){const{tabs:n,pageShown:o,caches:s,destroy:i,addPage:a,initial:u,setMaxSize:c,setGlobalScroll:f}=de(),p=t,d=e,{changeLocale:h}=ye(),w=r.ref(!1);r.provide("maximum",w);const{setIFramePath:E}=jt();E(d.iframePath),f(d.globalScroll),h(d.i18n),r.onBeforeMount(()=>{u(d.defaultTabs)});const C=(T,v)=>a(T,v),A=T=>{p("onActive",T)};c(d.max),r.onBeforeUnmount(()=>{i()});const x=()=>{p("onPageLoaded")};return(T,v)=>{const k=r.resolveComponent("router-view");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["stack-tab",{"stack-tab__maximum":w.value}]),style:r.normalizeStyle({width:T.width,height:T.height,"z-index":w.value?r.unref(et)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[r.createVNode(br,{space:T.space,onActive:A,"tab-transition":T.tabTransition,max:T.max},{leftButton:r.withCtx(()=>[r.renderSlot(T.$slots,"leftButton")]),rightButton:r.withCtx(()=>[r.renderSlot(T.$slots,"rightButton")]),_:3},8,["space","tab-transition","max"]),r.createElementVNode("div",Fr,[r.createVNode(k,null,{default:r.withCtx(({Component:S,route:l})=>[r.createVNode(r.Transition,{name:T.pageTransition,onAfterLeave:v[0]||(v[0]=b=>o.value=!0),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(C(l,S)),{key:l.fullPath,onOnLoaded:x},null,32)):r.createCommentVNode("",!0)],1032,["include"]))]),_:2},1032,["name"])]),_:1}),r.createVNode(r.TransitionGroup,{name:T.pageTransition,appear:""},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(n).filter(S=>S.iframe),S=>r.withDirectives((r.openBlock(),r.createElementBlock("iframe",{key:S.id,class:"stack-tab__iframe",src:/^(javascript|data):/i.test(S.url??"")?"about:blank":S.url,frameborder:"0"},null,8,qr)),[[r.vShow,S.active&&r.unref(o)]])),128))]),_:1},8,["name"])])],6)}}}),Ze=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Ut=typeof TextEncoder=="function"?new TextEncoder:void 0,me=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(e=>{let t={};return e.forEach((n,o)=>t[n]=o),t})(me);const G=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const Gr=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Wt=typeof btoa=="function"?e=>btoa(e):Ze?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,o,s,i="";const a=e.length%3;for(let u=0;u<e.length;){if((n=e.charCodeAt(u++))>255||(o=e.charCodeAt(u++))>255||(s=e.charCodeAt(u++))>255)throw new TypeError("invalid character found");t=n<<16|o<<8|s,i+=me[t>>18&63]+me[t>>12&63]+me[t>>6&63]+me[t&63]}return a?i.slice(0,a-3)+"===".substring(a):i},Hr=Ze?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let o=0,s=e.length;o<s;o+=4096)n.push(G.apply(null,e.subarray(o,o+4096)));return Wt(n.join(""))},Zr=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?G(192|t>>>6)+G(128|t&63):G(224|t>>>12&15)+G(128|t>>>6&63)+G(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return G(240|t>>>18&7)+G(128|t>>>12&63)+G(128|t>>>6&63)+G(128|t&63)}},Xr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Yr=e=>e.replace(Xr,Zr),Ft=Ze?e=>Buffer.from(e,"utf8").toString("base64"):Ut?e=>Hr(Ut.encode(e)):e=>Wt(Yr(e)),Jr=(e,t=!1)=>t?Gr(Ft(e)):Ft(e),Kr=e=>{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: ${e}</tspan></text></g></svg>`,a="data:image/svg+xml;base64,"+Jr(o),u="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+",u+`background-image: url(${a});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`)},qt=()=>{const{attrs:e,props:t}=r.getCurrentInstance(),{pageShown:n,getTab:o,markDeletableCache:s,removeComponent:i,getComponent:a,addPageScroller:u}=de(),c=F.useRoute(),f=F.useRouter();let p="",d="";p=e.tId||t.tId;const h=e.pId||t.pId;return d=c.query.__tab,{forward:A=>{n.value=!1;const x=Z({__tab:d},A.query);f.push({path:A.path,query:x})},backward:(A,x)=>{n.value=!1;const T=o(p);if(!T)return;const v=T.pages;let k=0;if(typeof A=="number")k=Math.abs(A);else{let b=1,g=!1;const R=v.list(),U=Ue(A);x=Z(U.query,x);for(let W=v.size()-2;W>=0;W--){if(R[W].path===U.path){g=!0;break}b+=1}g&&(k=b)}if(k===0||v.size()<=k)return;for(let b=0;b<k;b++){const g=v.pop();i(g.id),s(g.id)}const S=v==null?void 0:v.peek(),l=a(S.id);if(l!=null){const b=l.components.DynamicComponent;b.props=Z(x,b.props)}f.push({path:S.path,query:S.query})},addScroller:(...A)=>{u(h,...A)}}},Qr=r.defineComponent({__name:"iframe",setup(e){return qt(),(t,n)=>(r.openBlock(),r.createElementBlock("div"))}}),eo=()=>{const e=fe(),{attrs:t}=r.getCurrentInstance();r.onUnmounted(()=>{o()});const n=()=>{e.emit(P.PAGE_LOADING,{tId:t.tId,value:!0})},o=()=>{e.emit(P.PAGE_LOADING,{tId:t.tId,value:!1})};return{openTabLoading:n,closeTabLoading:o}},to={install(e,t){Kr("0.1.27"),e.component("VueStackTabs",Dt).use(Ln).use(sn().getI18n(t))}};N.IFrame=Qr,N.Stack=ke,N.StackTab=Dt,N.TabHeaderButton=Ce,N.TabScrollMode=Y,N.default=to,N.useStackTab=jt,N.useTabLoading=eo,N.useTabRouter=qt,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED