vue-stack-tabs 0.1.34 → 0.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/favicon.svg +9 -9
- package/dist/vue-stack-tabs.es.js +34 -34
- package/dist/vue-stack-tabs.umd.js +1 -1
- package/package.json +1 -1
- package/src/lib/hooks/useStackTab.ts +103 -103
- package/src/lib/hooks/useTabpanel.tsx +684 -684
- package/src/lib/utils/TabIdHelper.ts +70 -70
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# Vue Stack Tabs
|
|
2
|
-
|
|
1
|
+
# Vue Stack Tabs
|
|
2
|
+
|
|
3
3
|
Vue.js tab components, based on Vue Router.
|
package/dist/favicon.svg
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg id="_图层_1" data-name="图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 199.49 199.67">
|
|
3
|
-
<path d="M79.24,19.73h108.91v29.7h-108.91v-29.7Z" style="fill: #79a7ff; stroke-width: 0px;"/>
|
|
4
|
-
<path d="M179.24,199.67H20.26C9.05,199.6,0,190.5,0,179.29V20.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.41-3.54,0-6.41-2.86-6.42-6.4,0,0,0,0,0,0V12.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.54,0,6.42,2.87,6.42,6.42h0v127.45c0,11.21-9.05,20.32-20.26,20.39h0Z" style="fill: #377dff; stroke-width: 0px;"/>
|
|
5
|
-
<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.92-.05,0-.11,0-.16,0h-96.27c-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.68,0,0,0,0,0,0h0Z" style="fill: #377dff; stroke-width: 0px;"/>
|
|
6
|
-
<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.41-6.69h182.93c3.62.08,6.48,3.08,6.41,6.69.07,3.61-2.79,6.6-6.41,6.68Z" style="fill: #377dff; stroke-width: 0px;"/>
|
|
7
|
-
<path d="M137.2,58.67c-3.42.24-6.4-2.32-6.68-5.74v-28.15c.55-3.69,3.99-6.24,7.69-5.69,2.94.44,5.25,2.75,5.69,5.69v28.15c-.28,3.42-3.26,5.98-6.68,5.74h0Z" style="fill: #377dff; stroke-width: 0px;"/>
|
|
8
|
-
<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;"/>
|
|
9
|
-
<path d="M135.28,78.26l-35.49,61.43-35.44-61.43h-20.11l55.55,96.2,55.55-96.2h-20.05Z" style="fill: #306fff; stroke-width: 0px;"/>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg id="_图层_1" data-name="图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 199.49 199.67">
|
|
3
|
+
<path d="M79.24,19.73h108.91v29.7h-108.91v-29.7Z" style="fill: #79a7ff; stroke-width: 0px;"/>
|
|
4
|
+
<path d="M179.24,199.67H20.26C9.05,199.6,0,190.5,0,179.29V20.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.41-3.54,0-6.41-2.86-6.42-6.4,0,0,0,0,0,0V12.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.54,0,6.42,2.87,6.42,6.42h0v127.45c0,11.21-9.05,20.32-20.26,20.39h0Z" style="fill: #377dff; stroke-width: 0px;"/>
|
|
5
|
+
<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.92-.05,0-.11,0-.16,0h-96.27c-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.68,0,0,0,0,0,0h0Z" style="fill: #377dff; stroke-width: 0px;"/>
|
|
6
|
+
<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.41-6.69h182.93c3.62.08,6.48,3.08,6.41,6.69.07,3.61-2.79,6.6-6.41,6.68Z" style="fill: #377dff; stroke-width: 0px;"/>
|
|
7
|
+
<path d="M137.2,58.67c-3.42.24-6.4-2.32-6.68-5.74v-28.15c.55-3.69,3.99-6.24,7.69-5.69,2.94.44,5.25,2.75,5.69,5.69v28.15c-.28,3.42-3.26,5.98-6.68,5.74h0Z" style="fill: #377dff; stroke-width: 0px;"/>
|
|
8
|
+
<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;"/>
|
|
9
|
+
<path d="M135.28,78.26l-35.49,61.43-35.44-61.43h-20.11l55.55,96.2,55.55-96.2h-20.05Z" style="fill: #306fff; stroke-width: 0px;"/>
|
|
10
10
|
</svg>
|
|
@@ -966,7 +966,7 @@ const Sr = {
|
|
|
966
966
|
s === t.tId && (r.value = o);
|
|
967
967
|
}), (s, o) => r.value ? (z(), W("div", Sr, Er)) : ne("", !0);
|
|
968
968
|
}
|
|
969
|
-
}), C = R([]), Ke = [],
|
|
969
|
+
}), C = R([]), Ke = [], D = R([]), le = /* @__PURE__ */ new Map(), Re = /* @__PURE__ */ new Set(), F = /* @__PURE__ */ new Set(), ue = R(!0), Ct = "stacktab-active-tab", fe = /* @__PURE__ */ new Map();
|
|
970
970
|
let Mt = !1, Ne = 0, Lt = !1;
|
|
971
971
|
const Le = () => {
|
|
972
972
|
const e = dt(), t = Me(), {
|
|
@@ -1000,7 +1000,7 @@ const Le = () => {
|
|
|
1000
1000
|
active: !1,
|
|
1001
1001
|
pages: ve
|
|
1002
1002
|
};
|
|
1003
|
-
|
|
1003
|
+
D.value.push(ze), Ke.push(X), C.value.push({
|
|
1004
1004
|
...X
|
|
1005
1005
|
});
|
|
1006
1006
|
}
|
|
@@ -1081,7 +1081,7 @@ const Le = () => {
|
|
|
1081
1081
|
}), Sn(() => {
|
|
1082
1082
|
l(j);
|
|
1083
1083
|
}), On(() => {
|
|
1084
|
-
_t.emit("onLoaded"), b(j),
|
|
1084
|
+
_t.emit("onLoaded"), b(j), P(), F.clear(), p.props = null;
|
|
1085
1085
|
}), He(() => {
|
|
1086
1086
|
d(j);
|
|
1087
1087
|
}), () => N("div", {
|
|
@@ -1131,7 +1131,7 @@ const Le = () => {
|
|
|
1131
1131
|
const p = a(m.id);
|
|
1132
1132
|
for (const I of p.pages.list())
|
|
1133
1133
|
v(I.id), $(I.id);
|
|
1134
|
-
p.pages.clear();
|
|
1134
|
+
P(), p.pages.clear();
|
|
1135
1135
|
}, E = (m) => {
|
|
1136
1136
|
let p = "";
|
|
1137
1137
|
const I = a(m);
|
|
@@ -1146,7 +1146,7 @@ const Le = () => {
|
|
|
1146
1146
|
}
|
|
1147
1147
|
return p !== "" && t.emit(q.TAB_ACTIVE, {
|
|
1148
1148
|
id: p
|
|
1149
|
-
}), I != null && I.active || (
|
|
1149
|
+
}), I != null && I.active || (P(), F.clear()), p;
|
|
1150
1150
|
}, A = () => {
|
|
1151
1151
|
const m = O(C);
|
|
1152
1152
|
for (let p = m.length - 1; p >= 0; p--)
|
|
@@ -1157,7 +1157,7 @@ const Le = () => {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
for (const p of m)
|
|
1159
1159
|
if (p.active) {
|
|
1160
|
-
|
|
1160
|
+
P(), F.clear();
|
|
1161
1161
|
return;
|
|
1162
1162
|
}
|
|
1163
1163
|
t.emit(q.TAB_ACTIVE, {
|
|
@@ -1174,7 +1174,7 @@ const Le = () => {
|
|
|
1174
1174
|
v(L.id), $(L.id), F.add(p[h].id);
|
|
1175
1175
|
O(C)[h].pages.clear(), O(C).splice(h, 1);
|
|
1176
1176
|
}
|
|
1177
|
-
I.active ? (
|
|
1177
|
+
I.active ? (P(), F.clear()) : t.emit(q.TAB_ACTIVE, {
|
|
1178
1178
|
id: m
|
|
1179
1179
|
});
|
|
1180
1180
|
}, _ = (m) => {
|
|
@@ -1193,7 +1193,7 @@ const Le = () => {
|
|
|
1193
1193
|
}
|
|
1194
1194
|
for (const h of I)
|
|
1195
1195
|
if (h.active) {
|
|
1196
|
-
|
|
1196
|
+
P(), F.clear();
|
|
1197
1197
|
return;
|
|
1198
1198
|
}
|
|
1199
1199
|
t.emit(q.TAB_ACTIVE, {
|
|
@@ -1215,7 +1215,7 @@ const Le = () => {
|
|
|
1215
1215
|
}
|
|
1216
1216
|
for (const h of p)
|
|
1217
1217
|
if (h.active) {
|
|
1218
|
-
|
|
1218
|
+
P(), F.clear();
|
|
1219
1219
|
return;
|
|
1220
1220
|
}
|
|
1221
1221
|
t.emit(q.TAB_ACTIVE, {
|
|
@@ -1226,9 +1226,9 @@ const Le = () => {
|
|
|
1226
1226
|
for (const I of O(C))
|
|
1227
1227
|
if (I.id === m) {
|
|
1228
1228
|
const h = (p = I.pages.peek()) == null ? void 0 : p.id;
|
|
1229
|
-
for (let L =
|
|
1230
|
-
if (
|
|
1231
|
-
|
|
1229
|
+
for (let L = D.value.length - 1; L >= 0; L--)
|
|
1230
|
+
if (D.value[L] === h) {
|
|
1231
|
+
D.value.splice(L, 1), I.active && (ue.value = !1, de(() => {
|
|
1232
1232
|
ue.value = !0;
|
|
1233
1233
|
}));
|
|
1234
1234
|
break;
|
|
@@ -1240,9 +1240,9 @@ const Le = () => {
|
|
|
1240
1240
|
C.value.forEach((p) => {
|
|
1241
1241
|
m.add(p.pages.peek().id);
|
|
1242
1242
|
});
|
|
1243
|
-
for (let p =
|
|
1244
|
-
const I =
|
|
1245
|
-
m.has(I) &&
|
|
1243
|
+
for (let p = D.value.length - 1; p >= 0; p--) {
|
|
1244
|
+
const I = D.value[p];
|
|
1245
|
+
m.has(I) && D.value.splice(p, 1);
|
|
1246
1246
|
}
|
|
1247
1247
|
de(() => {
|
|
1248
1248
|
ue.value = !1, de(() => {
|
|
@@ -1257,15 +1257,15 @@ const Le = () => {
|
|
|
1257
1257
|
le.delete(m);
|
|
1258
1258
|
}, $ = (m) => {
|
|
1259
1259
|
Re.add(m);
|
|
1260
|
-
},
|
|
1261
|
-
for (let m =
|
|
1262
|
-
Re.has(
|
|
1260
|
+
}, P = () => {
|
|
1261
|
+
for (let m = D.value.length - 1; m >= 0; m--)
|
|
1262
|
+
Re.has(D.value[m]) && O(D).splice(m, 1);
|
|
1263
1263
|
Re.clear();
|
|
1264
1264
|
}, G = (m) => {
|
|
1265
|
-
for (let p =
|
|
1266
|
-
m ===
|
|
1265
|
+
for (let p = D.value.length - 1; p >= 0; p--)
|
|
1266
|
+
m === D.value[p] && O(D).splice(p, 1);
|
|
1267
1267
|
}, B = (m) => {
|
|
1268
|
-
new Set(
|
|
1268
|
+
new Set(D.value).has(m) || D.value.push(m);
|
|
1269
1269
|
}, M = (m, p = !0) => {
|
|
1270
1270
|
for (let I = C.value.length - 1; I >= 0; I--) {
|
|
1271
1271
|
const h = C.value[I];
|
|
@@ -1293,11 +1293,11 @@ const Le = () => {
|
|
|
1293
1293
|
});
|
|
1294
1294
|
});
|
|
1295
1295
|
}, we = () => {
|
|
1296
|
-
O(C).splice(0), le.clear(), Re.clear(), F.clear(), O(
|
|
1296
|
+
O(C).splice(0), le.clear(), Re.clear(), F.clear(), O(D).splice(0);
|
|
1297
1297
|
};
|
|
1298
1298
|
return {
|
|
1299
1299
|
tabs: C,
|
|
1300
|
-
caches:
|
|
1300
|
+
caches: D,
|
|
1301
1301
|
pageShown: ue,
|
|
1302
1302
|
initialed: Mt,
|
|
1303
1303
|
setMaxSize: (m) => {
|
|
@@ -1325,7 +1325,7 @@ const Le = () => {
|
|
|
1325
1325
|
getComponent: y,
|
|
1326
1326
|
removeComponent: v,
|
|
1327
1327
|
markDeletableCache: $,
|
|
1328
|
-
removeDeletableCache:
|
|
1328
|
+
removeDeletableCache: P,
|
|
1329
1329
|
refreshTab: g,
|
|
1330
1330
|
refreshAllTabs: S,
|
|
1331
1331
|
addPageScroller: k,
|
|
@@ -1587,9 +1587,9 @@ var be = function(e) {
|
|
|
1587
1587
|
return Pe.get(e);
|
|
1588
1588
|
if (pn(e))
|
|
1589
1589
|
return Pe.set(e, Nt), Nt;
|
|
1590
|
-
var n = getComputedStyle(e), r = gt(e) && e.ownerSVGElement && e.getBBox(), s = !qr && n.boxSizing === "border-box", o = Fr.test(n.writingMode || ""), i = !r && Rt.test(n.overflowY || ""), f = !r && Rt.test(n.overflowX || ""), a = r ? 0 : Y(n.paddingTop), c = r ? 0 : Y(n.paddingRight), b = r ? 0 : Y(n.paddingBottom), l = r ? 0 : Y(n.paddingLeft), d = r ? 0 : Y(n.borderTopWidth), k = r ? 0 : Y(n.borderRightWidth), T = r ? 0 : Y(n.borderBottomWidth), E = r ? 0 : Y(n.borderLeftWidth), A = l + c, x = a + b, _ = E + k, w = d + T, g = f ? e.offsetHeight - w - e.clientHeight : 0, S = i ? e.offsetWidth - _ - e.clientWidth : 0, u = s ? A + _ : 0, y = s ? x + w : 0, v = r ? r.width : Y(n.width) - u - S, $ = r ? r.height : Y(n.height) - y - g,
|
|
1590
|
+
var n = getComputedStyle(e), r = gt(e) && e.ownerSVGElement && e.getBBox(), s = !qr && n.boxSizing === "border-box", o = Fr.test(n.writingMode || ""), i = !r && Rt.test(n.overflowY || ""), f = !r && Rt.test(n.overflowX || ""), a = r ? 0 : Y(n.paddingTop), c = r ? 0 : Y(n.paddingRight), b = r ? 0 : Y(n.paddingBottom), l = r ? 0 : Y(n.paddingLeft), d = r ? 0 : Y(n.borderTopWidth), k = r ? 0 : Y(n.borderRightWidth), T = r ? 0 : Y(n.borderBottomWidth), E = r ? 0 : Y(n.borderLeftWidth), A = l + c, x = a + b, _ = E + k, w = d + T, g = f ? e.offsetHeight - w - e.clientHeight : 0, S = i ? e.offsetWidth - _ - e.clientWidth : 0, u = s ? A + _ : 0, y = s ? x + w : 0, v = r ? r.width : Y(n.width) - u - S, $ = r ? r.height : Y(n.height) - y - g, P = v + A + S + _, G = $ + x + g + w, B = be({
|
|
1591
1591
|
devicePixelContentBoxSize: ye(Math.round(v * devicePixelRatio), Math.round($ * devicePixelRatio), o),
|
|
1592
|
-
borderBoxSize: ye(
|
|
1592
|
+
borderBoxSize: ye(P, G, o),
|
|
1593
1593
|
contentBoxSize: ye(v, $, o),
|
|
1594
1594
|
contentRect: new hn(l, a, v, $)
|
|
1595
1595
|
});
|
|
@@ -1863,12 +1863,12 @@ const os = ["disabled", "title"], is = {
|
|
|
1863
1863
|
var M;
|
|
1864
1864
|
x();
|
|
1865
1865
|
const B = (M = n.value) == null ? void 0 : M.querySelector(".stack-tab__item.is-active");
|
|
1866
|
-
B && (G(B) ||
|
|
1866
|
+
B && (G(B) || P(B));
|
|
1867
1867
|
}), w = new Vt(() => {
|
|
1868
1868
|
var B;
|
|
1869
1869
|
if (!T.value) {
|
|
1870
1870
|
const M = (B = n.value) == null ? void 0 : B.querySelector(".stack-tab__item.is-active");
|
|
1871
|
-
M && (G(M) ||
|
|
1871
|
+
M && (G(M) || P(M));
|
|
1872
1872
|
}
|
|
1873
1873
|
x();
|
|
1874
1874
|
}), g = (B, M = !0) => {
|
|
@@ -1902,7 +1902,7 @@ const os = ["disabled", "title"], is = {
|
|
|
1902
1902
|
}), He(() => {
|
|
1903
1903
|
_.disconnect(), w.disconnect();
|
|
1904
1904
|
});
|
|
1905
|
-
const
|
|
1905
|
+
const P = (B) => {
|
|
1906
1906
|
Yn({ el: B, wrap: n, block: "end", inline: "center" });
|
|
1907
1907
|
}, G = (B) => {
|
|
1908
1908
|
if (!T.value)
|
|
@@ -1910,7 +1910,7 @@ const os = ["disabled", "title"], is = {
|
|
|
1910
1910
|
const M = B.offsetLeft, U = n.value.scrollLeft;
|
|
1911
1911
|
return !(M < U || M + B.clientWidth > U + n.value.clientWidth);
|
|
1912
1912
|
};
|
|
1913
|
-
return t({ scrollIntoView:
|
|
1913
|
+
return t({ scrollIntoView: P, isInView: G }), (B, M) => (z(), W(Ze, null, [
|
|
1914
1914
|
a.value ? (z(), me(ct, {
|
|
1915
1915
|
key: 0,
|
|
1916
1916
|
"icon-class": "stack-tab__icon-left-arrow",
|
|
@@ -2364,10 +2364,10 @@ const Vs = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
|
|
|
2364
2364
|
g = Math.abs(A);
|
|
2365
2365
|
else {
|
|
2366
2366
|
let y = 1, v = !1;
|
|
2367
|
-
const $ = w.list(),
|
|
2368
|
-
x = te(
|
|
2367
|
+
const $ = w.list(), P = vt(A);
|
|
2368
|
+
x = te(P.query, x);
|
|
2369
2369
|
for (let G = w.size() - 2; G >= 0; G--) {
|
|
2370
|
-
if ($[G].path ===
|
|
2370
|
+
if ($[G].path === P.path) {
|
|
2371
2371
|
v = !0;
|
|
2372
2372
|
break;
|
|
2373
2373
|
}
|
|
@@ -2414,7 +2414,7 @@ const Vs = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
|
|
|
2414
2414
|
return { openTabLoading: n, closeTabLoading: r };
|
|
2415
2415
|
}, oo = {
|
|
2416
2416
|
install(e, t) {
|
|
2417
|
-
Ys("0.1.
|
|
2417
|
+
Ys("0.1.35"), e.component("VueStackTabs", Ws).use(xr).use(Xn().getI18n(t));
|
|
2418
2418
|
}
|
|
2419
2419
|
};
|
|
2420
2420
|
export {
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* (c) 2021 Erik Pham
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/const Kt=["__proto__","prototype","constructor"];function Qt(e){const t=typeof e;return e!==null&&(t==="object"||t==="function")}function en(e){return!(Array.isArray(e)?e.length:Object.keys(e).length)}function tn(e){return!e.some(t=>Kt.indexOf(t)!==-1)}function nn(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 tn(n)?n:[]}function et(e,t){if(!Qt(e))return"";const n=nn(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 rn(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 on(e,t){for(const n in t)e=e.replace(`{${n}}`,String(t[n]));return e}function tt(e,t){return Object.keys(t).forEach(n=>{t[n]instanceof Object&&n in e&&(t[n]={...t[n],...tt(e[n],t[n])})}),{...e||{},...t}}const sn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",nt=(e=>sn?Symbol(e):"_vt_"+e)("i18n");function fe(){return r.inject(nt)}function an(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 d=et(o[a],s)||et(o[t.fallbackLocale],s);if(i&&typeof i!="string"){const c=rn(d,i);en(c)||(d=on(d,c))}return d||s},current:r.readonly(n),options:r.readonly(e||{}),install(s){const i=this;s.config.globalProperties.$t=i.t,s.provide(nt,i)},changeLocale(s){n.value=s},setLocaleMessage(s,i){o[s]=tt(r.toRaw(o[s]||{}),i)},getLocaleMessage(s){return o[s]||{}}}}const cn=()=>{const e=Object.assign({"./lang/en.ts":Yt,"./lang/zh-CN.ts":Jt});function t(s,i){for(const a in s)if(s[a].default){const d=a.substring(a.lastIndexOf("/")+1,a.lastIndexOf("."));i[d]?i[d]={...s[d],...s[a].default}:i[d]=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 an({locale:"zh-CN",fallbackLocale:"en",messages:i})}}},rt=({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 ln({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,d;n==="center"?d=i+(e.clientHeight-t.clientHeight)/2:d=i,o==="center"?a=s+(e.clientWidth-t.clientWidth)/2:a=s,rt({wrap:t,left:a,top:d})}}const ot=(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 K=(e=>(e.WHEEL="wheel",e.BUTTON="button",e.BOTH="both",e))(K||{});class _e{constructor(t){Xt(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 ze(e){if(!$e(e))throw new Error("Parameter was not an error")}function $e(e){return fn(e)==="[object Error]"||e instanceof Error}function fn(e){return Object.prototype.toString.call(e)}function un(e){let t,n="";if(e.length===0)t={};else if($e(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 W extends Error{constructor(t,n){const o=[...arguments],{options:s,shortMessage:i}=un(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 d=s.constructorOpt||this.constructor;Error.captureStackTrace(this,d)}}static cause(t){return ze(t),t._cause&&$e(t._cause)?t._cause:null}static fullStack(t){ze(t);const n=W.cause(t);return n?`${t.stack}
|
|
6
|
-
caused by: ${W.fullStack(n)}`:t.stack}static info(t){ze(t);const n={},o=W.cause(t);return o&&Object.assign(n,W.info(o)),t._info&&Object.assign(n,t._info),n}cause(){return W.cause(this)}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}const st="0123456789ABCDEFGHJKMNPQRSTVWXYZ",ue=32,it=0xffffffffffff,dn=10,hn=16,de=Object.freeze({source:"ulid"});function pn(e){const t=e||bn(),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 W({info:{code:"PRNG_DETECT",...de}},"Failed to find a reliable PRNG")}function bn(){return yn()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function mn(e,t){let n="";for(;e>0;e--)n=kn(t)+n;return n}function gn(e,t){if(isNaN(e))throw new W({info:{code:"ENC_TIME_NAN",...de}},`Time must be a number: ${e}`);if(e>it)throw new W({info:{code:"ENC_TIME_SIZE_EXCEED",...de}},`Cannot encode a time larger than ${it}: ${e}`);if(e<0)throw new W({info:{code:"ENC_TIME_NEG",...de}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new W({info:{code:"ENC_TIME_TYPE",...de}},`Time must be an integer: ${e}`);let n,o="";for(let s=t;s>0;s--)n=e%ue,o=st.charAt(n)+o,e=(e-n)/ue;return o}function yn(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function kn(e){let t=Math.floor(e()*ue);return t===ue&&(t=ue-1),st.charAt(t)}function Re(e,t){const n=t||pn(),o=isNaN(e)?Date.now():e;return gn(o,dn)+mn(hn,n)}var Ve={exports:{}};Ve.exports,function(e){var t=function(){var n=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function a(c,l){if(!i[c]){i[c]={};for(var m=0;m<c.length;m++)i[c][c.charAt(m)]=m}return i[c][l]}var d={compressToBase64:function(c){if(c==null)return"";var l=d._compress(c,6,function(m){return o.charAt(m)});switch(l.length%4){default:case 0:return l;case 1:return l+"===";case 2:return l+"==";case 3:return l+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:d._decompress(c.length,32,function(l){return a(o,c.charAt(l))})},compressToUTF16:function(c){return c==null?"":d._compress(c,15,function(l){return n(l+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:d._decompress(c.length,16384,function(l){return c.charCodeAt(l)-32})},compressToUint8Array:function(c){for(var l=d.compress(c),m=new Uint8Array(l.length*2),f=0,h=l.length;f<h;f++){var T=l.charCodeAt(f);m[f*2]=T>>>8,m[f*2+1]=T%256}return m},decompressFromUint8Array:function(c){if(c==null)return d.decompress(c);for(var l=new Array(c.length/2),m=0,f=l.length;m<f;m++)l[m]=c[m*2]*256+c[m*2+1];var h=[];return l.forEach(function(T){h.push(n(T))}),d.decompress(h.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":d._compress(c,6,function(l){return s.charAt(l)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),d._decompress(c.length,32,function(l){return a(s,c.charAt(l))}))},compress:function(c){return d._compress(c,16,function(l){return n(l)})},_compress:function(c,l,m){if(c==null)return"";var f,h,T={},v={},O="",B="",S="",_=2,x=3,k=2,E=[],u=0,w=0,y;for(y=0;y<c.length;y+=1)if(O=c.charAt(y),Object.prototype.hasOwnProperty.call(T,O)||(T[O]=x++,v[O]=!0),B=S+O,Object.prototype.hasOwnProperty.call(T,B))S=B;else{if(Object.prototype.hasOwnProperty.call(v,S)){if(S.charCodeAt(0)<256){for(f=0;f<k;f++)u=u<<1,w==l-1?(w=0,E.push(m(u)),u=0):w++;for(h=S.charCodeAt(0),f=0;f<8;f++)u=u<<1|h&1,w==l-1?(w=0,E.push(m(u)),u=0):w++,h=h>>1}else{for(h=1,f=0;f<k;f++)u=u<<1|h,w==l-1?(w=0,E.push(m(u)),u=0):w++,h=0;for(h=S.charCodeAt(0),f=0;f<16;f++)u=u<<1|h&1,w==l-1?(w=0,E.push(m(u)),u=0):w++,h=h>>1}_--,_==0&&(_=Math.pow(2,k),k++),delete v[S]}else for(h=T[S],f=0;f<k;f++)u=u<<1|h&1,w==l-1?(w=0,E.push(m(u)),u=0):w++,h=h>>1;_--,_==0&&(_=Math.pow(2,k),k++),T[B]=x++,S=String(O)}if(S!==""){if(Object.prototype.hasOwnProperty.call(v,S)){if(S.charCodeAt(0)<256){for(f=0;f<k;f++)u=u<<1,w==l-1?(w=0,E.push(m(u)),u=0):w++;for(h=S.charCodeAt(0),f=0;f<8;f++)u=u<<1|h&1,w==l-1?(w=0,E.push(m(u)),u=0):w++,h=h>>1}else{for(h=1,f=0;f<k;f++)u=u<<1|h,w==l-1?(w=0,E.push(m(u)),u=0):w++,h=0;for(h=S.charCodeAt(0),f=0;f<16;f++)u=u<<1|h&1,w==l-1?(w=0,E.push(m(u)),u=0):w++,h=h>>1}_--,_==0&&(_=Math.pow(2,k),k++),delete v[S]}else for(h=T[S],f=0;f<k;f++)u=u<<1|h&1,w==l-1?(w=0,E.push(m(u)),u=0):w++,h=h>>1;_--,_==0&&(_=Math.pow(2,k),k++)}for(h=2,f=0;f<k;f++)u=u<<1|h&1,w==l-1?(w=0,E.push(m(u)),u=0):w++,h=h>>1;for(;;)if(u=u<<1,w==l-1){E.push(m(u));break}else w++;return E.join("")},decompress:function(c){return c==null?"":c==""?null:d._decompress(c.length,32768,function(l){return c.charCodeAt(l)})},_decompress:function(c,l,m){var f=[],h=4,T=4,v=3,O="",B=[],S,_,x,k,E,u,w,y={val:m(0),position:l,index:1};for(S=0;S<3;S+=1)f[S]=S;for(x=0,E=Math.pow(2,2),u=1;u!=E;)k=y.val&y.position,y.position>>=1,y.position==0&&(y.position=l,y.val=m(y.index++)),x|=(k>0?1:0)*u,u<<=1;switch(x){case 0:for(x=0,E=Math.pow(2,8),u=1;u!=E;)k=y.val&y.position,y.position>>=1,y.position==0&&(y.position=l,y.val=m(y.index++)),x|=(k>0?1:0)*u,u<<=1;w=n(x);break;case 1:for(x=0,E=Math.pow(2,16),u=1;u!=E;)k=y.val&y.position,y.position>>=1,y.position==0&&(y.position=l,y.val=m(y.index++)),x|=(k>0?1:0)*u,u<<=1;w=n(x);break;case 2:return""}for(f[3]=w,_=w,B.push(w);;){if(y.index>c)return"";for(x=0,E=Math.pow(2,v),u=1;u!=E;)k=y.val&y.position,y.position>>=1,y.position==0&&(y.position=l,y.val=m(y.index++)),x|=(k>0?1:0)*u,u<<=1;switch(w=x){case 0:for(x=0,E=Math.pow(2,8),u=1;u!=E;)k=y.val&y.position,y.position>>=1,y.position==0&&(y.position=l,y.val=m(y.index++)),x|=(k>0?1:0)*u,u<<=1;f[T++]=n(x),w=T-1,h--;break;case 1:for(x=0,E=Math.pow(2,16),u=1;u!=E;)k=y.val&y.position,y.position>>=1,y.position==0&&(y.position=l,y.val=m(y.index++)),x|=(k>0?1:0)*u,u<<=1;f[T++]=n(x),w=T-1,h--;break;case 2:return B.join("")}if(h==0&&(h=Math.pow(2,v),v++),f[w])O=f[w];else if(w===T)O=_+_.charAt(0);else return null;B.push(O),f[T++]=_+O.charAt(0),h--,_=O,h==0&&(h=Math.pow(2,v),v++)}}};return d}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(Ve);var at=Ve.exports;const wn=new TextEncoder,_n=new TextDecoder("utf-8",{ignoreBOM:!0}),ct={encode:e=>wn.encode(e),decode:e=>_n.decode(e)},lt=(()=>{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})(),Tn=(()=>{const e={};for(let t=0;t<256;t++){const n=lt[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})(),Pe={encode:e=>{let t="";for(let n=0,o=e.length;n<o;n++)t+=lt[e[n]];return t},encodeStr:e=>Pe.encode(ct.encode(e)),decode:e=>{const t=e.length/2,n=new Uint8Array(t);for(let o=0;o<t;o++)n[o]=Tn[e.slice(o*2,o*2+2)];return n},decodeStr:e=>ct.decode(Pe.decode(e)),is:e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e))};function he(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function xn(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function ft(e,...t){if(!xn(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 je(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 ut(e,t){ft(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const Te=BigInt(2**32-1),dt=BigInt(32);function ht(e,t=!1){return t?{h:Number(e&Te),l:Number(e>>dt&Te)}:{h:Number(e>>dt&Te)|0,l:Number(e&Te)|0}}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const vn=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),xe=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));function Sn(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}const ve=(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 En(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function De(e){if(typeof e=="string"&&(e=En(e)),!Sn(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}class On{clone(){return this._cloneInto()}}function Bn(e){const t=(o,s)=>e(s).update(De(o)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=o=>e(o),t}class An extends On{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,he(t),he(n),he(s),n<0||n>s)throw new Error("outputLen bigger than keyLen");if(o.key!==void 0&&(o.key.length<1||o.key.length>s))throw new Error(`key must be up 1..${s} byte long or undefined`);if(o.salt!==void 0&&o.salt.length!==i)throw new Error(`salt must be ${i} byte long or undefined`);if(o.personalization!==void 0&&o.personalization.length!==a)throw new Error(`personalization must be ${a} byte long or undefined`);this.buffer32=xe(this.buffer=new Uint8Array(t))}update(t){je(this);const{blockLen:n,buffer:o,buffer32:s}=this;t=De(t);const i=t.length,a=t.byteOffset,d=t.buffer;for(let c=0;c<i;){this.pos===n&&(this.compress(s,0,!1),this.pos=0);const l=Math.min(n-this.pos,i-c),m=a+c;if(l===n&&!(m%4)&&c+l<i){const f=new Uint32Array(d,m,Math.floor((i-c)/4));for(let h=0;c+n<i;h+=s.length,c+=n)this.length+=n,this.compress(f,h,!1);continue}o.set(t.subarray(c,c+l),this.pos),this.pos+=l,this.length+=l,c+=l}return this}digestInto(t){je(this),ut(t,this);const{pos:n,buffer32:o}=this;this.finished=!0,this.buffer.subarray(n).fill(0),this.compress(o,0,!0);const s=xe(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:d}=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=d,t}}const Y=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function Q(e,t,n,o,s){return e=e+t+s|0,o=ve(o^e,16),n=n+o|0,t=ve(t^n,12),{a:e,b:t,c:n,d:o}}function ee(e,t,n,o,s){return e=e+t+s|0,o=ve(o^e,8),n=n+o|0,t=ve(t^n,7),{a:e,b:t,c:n,d:o}}function pt(e,t,n,o,s,i,a,d,c,l,m,f,h,T,v,O,B,S,_,x){let k=0;for(let E=0;E<o;E++)({a:s,b:c,c:h,d:B}=Q(s,c,h,B,n[t+e[k++]])),{a:s,b:c,c:h,d:B}=ee(s,c,h,B,n[t+e[k++]]),{a:i,b:l,c:T,d:S}=Q(i,l,T,S,n[t+e[k++]]),{a:i,b:l,c:T,d:S}=ee(i,l,T,S,n[t+e[k++]]),{a,b:m,c:v,d:_}=Q(a,m,v,_,n[t+e[k++]]),{a,b:m,c:v,d:_}=ee(a,m,v,_,n[t+e[k++]]),{a:d,b:f,c:O,d:x}=Q(d,f,O,x,n[t+e[k++]]),{a:d,b:f,c:O,d:x}=ee(d,f,O,x,n[t+e[k++]]),{a:s,b:l,c:v,d:x}=Q(s,l,v,x,n[t+e[k++]]),{a:s,b:l,c:v,d:x}=ee(s,l,v,x,n[t+e[k++]]),{a:i,b:m,c:O,d:B}=Q(i,m,O,B,n[t+e[k++]]),{a:i,b:m,c:O,d:B}=ee(i,m,O,B,n[t+e[k++]]),{a,b:f,c:h,d:S}=Q(a,f,h,S,n[t+e[k++]]),{a,b:f,c:h,d:S}=ee(a,f,h,S,n[t+e[k++]]),{a:d,b:c,c:T,d:_}=Q(d,c,T,_,n[t+e[k++]]),{a:d,b:c,c:T,d:_}=ee(d,c,T,_,n[t+e[k++]]);return{v0:s,v1:i,v2:a,v3:d,v4:c,v5:l,v6:m,v7:f,v8:h,v9:T,v10:v,v11:O,v12:B,v13:S,v14:_,v15:x}}const bt=(()=>{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 Ue extends An{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,he(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=De(t.key).slice();if(o.length!==32)throw new Error("Blake3: key should be 32 byte");this.IV=xe(o),this.flags=n|16}else if(t.context!==void 0){const o=new Ue({dkLen:32},32).update(t.context).digest();this.IV=xe(o),this.flags=n|64}else this.IV=Y.slice(),this.flags=n;this.state=this.IV.slice(),this.bufferOut=vn(this.bufferOut32)}get(){return[]}set(){}b2Compress(t,n,o,s=0){const{state:i,pos:a}=this,{h:d,l:c}=ht(BigInt(t),!0),{v0:l,v1:m,v2:f,v3:h,v4:T,v5:v,v6:O,v7:B,v8:S,v9:_,v10:x,v11:k,v12:E,v13:u,v14:w,v15:y}=pt(bt,s,o,7,i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],Y[0],Y[1],Y[2],Y[3],d,c,a,n);i[0]=l^S,i[1]=m^_,i[2]=f^x,i[3]=h^k,i[4]=T^E,i[5]=v^u,i[6]=O^w,i[7]=B^y}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,d=this.chunksDone+1;(o||!(d&1))&&(a=this.stack.pop());d>>=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:d,stack:c,chunksDone:l}=this;return t.state.set(s.slice()),t.stack=c.map(m=>Uint32Array.from(m)),t.IV.set(n),t.flags=o,t.chunkPos=i,t.chunksDone=l,t.posOut=a,t.chunkOut=d,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:d}=ht(BigInt(this.chunkOut++)),{v0:c,v1:l,v2:m,v3:f,v4:h,v5:T,v6:v,v7:O,v8:B,v9:S,v10:_,v11:x,v12:k,v13:E,v14:u,v15:w}=pt(bt,0,s,7,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],Y[0],Y[1],Y[2],Y[3],d,a,n,o);i[0]=c^B,i[1]=l^S,i[2]=m^_,i[3]=f^x,i[4]=h^k,i[5]=T^E,i[6]=v^u,i[7]=O^w,i[8]=t[0]^B,i[9]=t[1]^S,i[10]=t[2]^_,i[11]=t[3]^x,i[12]=t[4]^k,i[13]=t[5]^E,i[14]=t[6]^u,i[15]=t[7]^w,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){je(this,!1),ft(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 he(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(ut(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 Cn=Bn(e=>new Ue(e)),We=e=>{const t=`${e.id}|${e.title}|${e.iframe?"Y":"N"}|${e.closable?"Y":"N"}|${e.refreshable?"Y":"N"}`;return at.compressToEncodedURIComponent(t)},In=e=>{const n=at.decompressFromEncodedURIComponent(e).split("|");return{id:n[0],title:n[1],iframe:n[2]==="Y",closable:n[3]==="Y",refreshable:n[4]==="Y"}},mt=(e,t,n)=>{const o=[];for(const i in n)i.startsWith("__")||o.push({key:i,value:n[i]});o.sort((i,a)=>{let d=0;return i.key>a.key?d=1:i.key<a.key&&(d=-1),d});const s=Cn(`${e}|${t}|${JSON.stringify(o)}`);return Pe.encode(s)};function Fe(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 qe(e,t,n=".",o){if(!Fe(t))return qe(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]]:Fe(a)&&Fe(s[i])?s[i]=qe(a,s[i],(n?`${n}.`:"")+i.toString(),o):s[i]=a))}return s}function Mn(e){return(...t)=>t.reduce((n,o)=>qe(n,o,"",e),{})}const J=Mn(),Ge=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 Ln(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 Nn=Ln(),zn={install(e){e.provide("tabEmitter",Nn)}},pe=()=>r.inject("tabEmitter");var P=(e=>(e.PAGE_LOADING="PAGE_LOADING",e.TAB_ACTIVE="TAB_ACTIVE",e))(P||{});const $n={key:0,class:"stack-tab-loading-mask"},Rn=[r.createElementVNode("div",{class:"stack-tab-loading--spin turn"},null,-1)],Vn=r.defineComponent({__name:"PageLoading",props:{tId:{}},setup(e){const t=e,n=pe(),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",$n,Rn)):r.createCommentVNode("",!0)}}),I=r.ref([]),He=[],$=r.ref([]),re=new Map,Se=new Set,j=new Set,oe=r.ref(!0),gt="stacktab-active-tab",se=new Map;let yt=!1,Ee=0,kt=!1;const be=()=>{const e=G.useRouter(),t=pe(),{t:n}=fe(),o=()=>I.value.length,s=g=>{for(const A of g){const p=J(A,{id:Re(),refreshable:!0,closable:!0,iframe:!1}),L=We(p),U=Ge(p.path),V=J(p,{closable:!0,refreshable:!0,iframe:!1}),Ne=mt(p.id,U.path,U.query),q={id:Ne,tabId:p.id,path:U.path,query:J(U.query,{__tab:L})},le=new _e;le.push(q);const X={id:p.id,title:V.title,closable:V.closable,refreshable:V.refreshable,iframe:V.iframe,active:!1,pages:le};$.value.push(Ne),He.push(X),I.value.push({...X})}const b=window.sessionStorage.getItem(gt);if(b!=null){const A=JSON.parse(b,(L,U)=>L==="pages"?new _e(U):U);let p=!1;for(const L of I.value)if(L.id===A.id){p=!0;break}p||I.value.push(A)}yt=!0},i=g=>{for(const b of I.value)if(b.id===g)return!0;return!1},a=()=>Ee<=0||Ee>0&&Ee>I.value.length,d=g=>new Promise(b=>{I.value.push(g),b(!0)}),c=g=>{for(const b of I.value)if(b.id===g)return b;return null},l=(g,b)=>{let A,p;if(g.query.__tab?p=In(g.query.__tab):(p={id:Re(),title:n("VueStackTab.undefined"),closable:!0,refreshable:!0,iframe:!1},g.query.__tab=We(p)),j.has(p.id)||!b)return;const L=g.matched[g.matched.length-1].path,U=g.path.endsWith("/")?g.path.substring(0,g.path.length-1):g.path,V=mt(p.id,L===U?U:g.path,g.query.valueOf()),Ne=g.query.__src;let q=null;for(const X of r.unref(I))X.active=!1,X.id===p.id&&(q=X);const le={id:V,tabId:p.id,path:g.path,query:g.query};if(q===null){const X=new _e;X.push(le),q={id:p.id,title:p.title,closable:p.closable,refreshable:p.refreshable,iframe:p.iframe,url:decodeURIComponent(Ne),active:!0,pages:X},d(q).then(()=>{t.emit(P.TAB_ACTIVE,{id:p.id,isRoute:!1})})}else q.active=!0,(q.pages.isEmpty()||q.pages.peek().id!==le.id)&&q.pages.push(le);return D(q),re.has(V)?A=re.get(V):(A=r.defineComponent({name:V,components:{DynamicComponent:b},emits:{onLoaded:null},setup(X,Zt){return r.onMounted(()=>{Zt.emit("onLoaded"),T(V,".cache-page-wrapper")}),r.onDeactivated(()=>{f(V)}),r.onActivated(()=>{Zt.emit("onLoaded"),m(V),R(),j.clear(),b.props=null}),r.onUnmounted(()=>{h(V)}),()=>r.createVNode("div",{class:"cache-page-wrapper",id:"W-"+p.id,style:[kt?"overflow:auto":"overflow:hidden"]},[r.createVNode(r.resolveComponent("dynamic-component"),{tId:p.id,pId:V},null),r.createVNode(Vn,{tId:p.id},null)])}}),re.set(V,A)),C(V),A},m=g=>{const b=se.get(g);if(b){for(const A of b.keys())if(document.querySelector(A)){const p=b.get(A);document.querySelector(A).scrollTop=p.top,document.querySelector(A).scrollLeft=p.left}}},f=g=>{var A,p;const b=se.get(g);if(b)for(const L of b.keys()){const U={top:((A=document.querySelector(L))==null?void 0:A.scrollTop)??0,left:((p=document.querySelector(L))==null?void 0:p.scrollLeft)??0};b.set(L,U)}},h=g=>{const b=se.get(g);b&&(b.clear(),se.delete(g))},T=(g,...b)=>{se.has(g)||se.set(g,new Map);const A=se.get(g);for(const p of b)A.set(p,{top:0,left:0})},v=g=>{const b=c(g.id);for(const A of b.pages.list())y(A.id),z(A.id);b.pages.clear()},O=g=>{let b="";const A=c(g);for(let p=I.value.length-1;p>=0;p--)if(g===r.unref(I)[p].id){if(!r.unref(I)[p].closable)return g;for(const L of r.unref(I)[p].pages.list())y(L.id),z(L.id),j.add(r.unref(I)[p].id);r.unref(I)[p].pages.clear(),I.value.length>1&&r.unref(I)[p].active&&(p===0?b=r.unref(I)[p+1].id:b=r.unref(I)[p-1].id),r.unref(I).splice(p,1);break}return b!==""&&t.emit(P.TAB_ACTIVE,{id:b}),A!=null&&A.active||(R(),j.clear()),b},B=()=>{const g=r.unref(I);for(let b=g.length-1;b>=0;b--)if(g[b].closable){for(const A of g[b].pages.list())y(A.id),z(A.id),j.add(g[b].id);r.unref(I)[b].pages.clear(),r.unref(I).splice(b,1)}for(const b of g)if(b.active){R(),j.clear();return}t.emit(P.TAB_ACTIVE,{id:g[g.length-1].id})},S=g=>{const b=r.unref(I);let A;for(let p=b.length-1;p>=0;p--)if(b[p].id===g)A=b[p];else if(b[p].closable&&b[p].id!==g){for(const L of b[p].pages.list())y(L.id),z(L.id),j.add(b[p].id);r.unref(I)[p].pages.clear(),r.unref(I).splice(p,1)}A.active?(R(),j.clear()):t.emit(P.TAB_ACTIVE,{id:g})},_=g=>{let b=-1;const A=r.unref(I);for(let p=0;p<A.length;p++)if(A[p].id===g){b=p-1;break}for(let p=b;p>=0;p--)if(A[p].closable){for(const L of A[p].pages.list())y(L.id),z(L.id),j.add(A[p].id);r.unref(I)[p].pages.clear(),r.unref(I).splice(p,1)}for(const p of A)if(p.active){R(),j.clear();return}t.emit(P.TAB_ACTIVE,{id:A[0].id})},x=g=>{const b=r.unref(I);let A=b.length;for(let p=0;p<b.length;p++)if(b[p].id===g){A=p+1;break}for(let p=b.length-1;p>=A;p--)if(b[p].closable){for(const L of b[p].pages.list())y(L.id),z(L.id),j.add(b[p].id);r.unref(I)[p].pages.clear(),r.unref(I).splice(p,1)}for(const p of b)if(p.active){R(),j.clear();return}t.emit(P.TAB_ACTIVE,{id:b[b.length-1].id})},k=g=>{var b;for(const A of r.unref(I))if(A.id===g){const p=(b=A.pages.peek())==null?void 0:b.id;for(let L=$.value.length-1;L>=0;L--)if($.value[L]===p){$.value.splice(L,1),A.active&&(oe.value=!1,r.nextTick(()=>{oe.value=!0}));break}break}},E=()=>{const g=new Set;I.value.forEach(b=>{g.add(b.pages.peek().id)});for(let b=$.value.length-1;b>=0;b--){const A=$.value[b];g.has(A)&&$.value.splice(b,1)}r.nextTick(()=>{oe.value=!1,r.nextTick(()=>{setTimeout(()=>{oe.value=!0},300)})})},u=(g,b)=>{re.set(g,b)},w=g=>re.get(g),y=g=>{re.delete(g)},z=g=>{Se.add(g)},R=()=>{for(let g=$.value.length-1;g>=0;g--)Se.has($.value[g])&&r.unref($).splice(g,1);Se.clear()},F=g=>{for(let b=$.value.length-1;b>=0;b--)g===$.value[b]&&r.unref($).splice(b,1)},C=g=>{new Set($.value).has(g)||$.value.push(g)},M=(g,b=!0)=>{for(let A=I.value.length-1;A>=0;A--){const p=I.value[A];if(p.id===g){if(p.active)break;if(p.active=!0,D(p),b){const L=p.pages.peek();e.push({path:L.path,query:L.query})}}else I.value[A].active=!1}},D=g=>{window.sessionStorage.setItem(gt,JSON.stringify(g))},ne=()=>{oe.value=!1,we(),r.nextTick(()=>{r.unref(I).push(...He),t.emit(P.TAB_ACTIVE,{id:He[0].id}),r.nextTick(()=>{oe.value=!0})})},we=()=>{r.unref(I).splice(0),re.clear(),Se.clear(),j.clear(),r.unref($).splice(0)};return{tabs:I,caches:$,pageShown:oe,initialed:yt,setMaxSize:g=>{Ee=g},canAddTab:a,initial:s,size:o,active:M,destroy:we,reset:ne,addCache:C,removeCache:F,getTab:c,addTab:d,removeTab:O,removeAllTabs:B,removeLeftTabs:_,removeRightTabs:x,removeOtherTabs:S,hasTab:i,renewTab:v,addPage:l,addComponent:u,getComponent:w,removeComponent:y,markDeletableCache:z,removeDeletableCache:R,refreshTab:k,refreshAllTabs:E,addPageScroller:T,setGlobalScroll:g=>{kt=g}}},Pn={class:"stack-tab__contextmenu-item"},te=r.defineComponent({__name:"ContextMenuItem",props:{icon:{},title:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",Pn,[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)]))}}),jn={key:0,class:"divider div-transparent"},Dn=((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}=fe(),o=r.ref(),s=r.reactive({left:t.left,top:t.top}),{removeTab:i,removeAllTabs:a,removeLeftTabs:d,removeRightTabs:c,refreshTab:l,refreshAllTabs:m,removeOtherTabs:f}=be();return r.onMounted(()=>{const h=o.value?o.value.clientWidth:0,T=window.innerWidth;s.left+h>T&&(s.left=T-h-5)}),(h,T)=>(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(ot)(".stack-tab,.stack-tab *")})},[r.createVNode(te,{icon:"stack-tab__icon-reload svg-mask",title:r.unref(n)("VueStackTab.reload"),onClick:T[0]||(T[0]=v=>r.unref(l)(h.tabItem.id))},null,8,["title"]),r.createVNode(te,{icon:"stack-tab__icon-reload-all svg-mask",title:r.unref(n)("VueStackTab.reloadAll"),onClick:r.unref(m)},null,8,["title","onClick"]),r.createVNode(te,{icon:"stack-tab__icon-close svg-mask",title:r.unref(n)("VueStackTab.close"),disabled:h.tabItem.closable?null:"disabled",onClick:T[1]||(T[1]=v=>r.unref(i)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(te,{icon:"stack-tab__icon-close-lefts svg-mask",title:r.unref(n)("VueStackTab.closeLeft"),disabled:h.index<=0?"disabled":null,onClick:T[2]||(T[2]=v=>r.unref(d)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(te,{icon:"stack-tab__icon-close-rights svg-mask",title:r.unref(n)("VueStackTab.closeRight"),disabled:h.index>=h.max-1?"disabled":null,onClick:T[3]||(T[3]=v=>r.unref(c)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(te,{icon:"stack-tab__icon-close-others svg-mask",title:r.unref(n)("VueStackTab.closeOthers"),onClick:T[4]||(T[4]=v=>r.unref(f)(h.tabItem.id))},null,8,["title"]),r.createVNode(te,{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",jn)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.contextMenu,(v,O)=>(r.openBlock(),r.createBlock(te,{key:O,icon:v.icon,title:v.title,disabled:v.disabled(h.tabItem)?"disabled":null,onClick:B=>!v.disabled&&v.callback(h.tabItem.id)},null,8,["icon","title","disabled","onClick"]))),128))],4))}}),[["__scopeId","data-v-d598be6e"]]),Un=()=>{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,d)=>{t.value=!1,await r.nextTick(()=>{const{clientY:c,clientX:l}=s;t.value=!0,Object.assign(e,{item:i,index:a,top:c,left:l,max:d})})},o=s=>{s.target.classList.contains("stack-tab__contextmenu")||(t.value=!1)};return{shown:t,contextMenuData:e,showContextMenu:n}},Wn={class:"stack-tab__item-title"},Fn=["title"],qn=["title"],Gn=r.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(e,{emit:t}){const n=t,o=pe(),{t:s}=fe(),i=r.ref(),a=e;o.on(P.TAB_ACTIVE,({id:m,isRoute:f})=>{a.item.id===m&&l(f)});const d=r.computed(()=>a.item.title||s("undefined")),c=()=>{n("close",a.item)},l=(m=!0)=>{n("active",a.item,i,m)};return(m,f)=>(r.openBlock(),r.createElementBlock("li",{ref_key:"curtab",ref:i,class:r.normalizeClass(["stack-tab__item",{"is-active":m.item.active,"is-icon":m.item.closable}]),onClick:f[0]||(f[0]=h=>l(!0))},[r.createElementVNode("div",Wn,[r.createElementVNode("div",{class:"stack-tab__item-title-content",title:d.value},r.toDisplayString(d.value),9,Fn)]),m.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,qn)):r.createCommentVNode("",!0)],2))}});var ie=[],Hn=function(){return ie.some(function(e){return e.activeTargets.length>0})},Zn=function(){return ie.some(function(e){return e.skippedTargets.length>0})},wt="ResizeObserver loop completed with undelivered notifications.",Xn=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:wt}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=wt),window.dispatchEvent(e)},me;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(me||(me={}));var ae=function(e){return Object.freeze(e)},Yn=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,ae(this)}return e}(),_t=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,ae(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,o=t.y,s=t.top,i=t.right,a=t.bottom,d=t.left,c=t.width,l=t.height;return{x:n,y:o,top:s,right:i,bottom:a,left:d,width:c,height:l}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Ze=function(e){return e instanceof SVGElement&&"getBBox"in e},Tt=function(e){if(Ze(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)},xt=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)},Jn=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},ge=typeof window<"u"?window:{},Oe=new WeakMap,vt=/auto|scroll/,Kn=/^tb|vertical/,Qn=/msie|trident/i.test(ge.navigator&&ge.navigator.userAgent),H=function(e){return parseFloat(e||"0")},ce=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Yn((n?t:e)||0,(n?e:t)||0)},St=ae({devicePixelContentBoxSize:ce(),borderBoxSize:ce(),contentBoxSize:ce(),contentRect:new _t(0,0,0,0)}),Et=function(e,t){if(t===void 0&&(t=!1),Oe.has(e)&&!t)return Oe.get(e);if(Tt(e))return Oe.set(e,St),St;var n=getComputedStyle(e),o=Ze(e)&&e.ownerSVGElement&&e.getBBox(),s=!Qn&&n.boxSizing==="border-box",i=Kn.test(n.writingMode||""),a=!o&&vt.test(n.overflowY||""),d=!o&&vt.test(n.overflowX||""),c=o?0:H(n.paddingTop),l=o?0:H(n.paddingRight),m=o?0:H(n.paddingBottom),f=o?0:H(n.paddingLeft),h=o?0:H(n.borderTopWidth),T=o?0:H(n.borderRightWidth),v=o?0:H(n.borderBottomWidth),O=o?0:H(n.borderLeftWidth),B=f+l,S=c+m,_=O+T,x=h+v,k=d?e.offsetHeight-x-e.clientHeight:0,E=a?e.offsetWidth-_-e.clientWidth:0,u=s?B+_:0,w=s?S+x:0,y=o?o.width:H(n.width)-u-E,z=o?o.height:H(n.height)-w-k,R=y+B+E+_,F=z+S+k+x,C=ae({devicePixelContentBoxSize:ce(Math.round(y*devicePixelRatio),Math.round(z*devicePixelRatio),i),borderBoxSize:ce(R,F,i),contentBoxSize:ce(y,z,i),contentRect:new _t(f,c,y,z)});return Oe.set(e,C),C},Ot=function(e,t,n){var o=Et(e,n),s=o.borderBoxSize,i=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(t){case me.DEVICE_PIXEL_CONTENT_BOX:return a;case me.BORDER_BOX:return s;default:return i}},er=function(){function e(t){var n=Et(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=ae([n.borderBoxSize]),this.contentBoxSize=ae([n.contentBoxSize]),this.devicePixelContentBoxSize=ae([n.devicePixelContentBoxSize])}return e}(),Bt=function(e){if(Tt(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},tr=function(){var e=1/0,t=[];ie.forEach(function(a){if(a.activeTargets.length!==0){var d=[];a.activeTargets.forEach(function(l){var m=new er(l.target),f=Bt(l.target);d.push(m),l.lastReportedSize=Ot(l.target,l.observedBox),f<e&&(e=f)}),t.push(function(){a.callback.call(a.observer,d,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},At=function(e){ie.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(Bt(s.target)>e?n.activeTargets.push(s):n.skippedTargets.push(s))})})},nr=function(){var e=0;for(At(e);Hn();)e=tr(),At(e);return Zn()&&Xn(),e>0},Xe,Ct=[],rr=function(){return Ct.splice(0).forEach(function(e){return e()})},or=function(e){if(!Xe){var t=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return rr()}).observe(n,o),Xe=function(){n.textContent="".concat(t?t--:t++)}}Ct.push(e),Xe()},sr=function(e){or(function(){requestAnimationFrame(e)})},Be=0,ir=function(){return!!Be},ar=250,cr={attributes:!0,characterData:!0,childList:!0,subtree:!0},It=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Mt=function(e){return e===void 0&&(e=0),Date.now()+e},Ye=!1,lr=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=ar),!Ye){Ye=!0;var o=Mt(t);sr(function(){var s=!1;try{s=nr()}finally{if(Ye=!1,t=o-Mt(),!ir())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,cr)};document.body?n():ge.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),It.forEach(function(n){return ge.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),It.forEach(function(n){return ge.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Je=new lr,Lt=function(e){!Be&&e>0&&Je.start(),Be+=e,!Be&&Je.stop()},fr=function(e){return!Ze(e)&&!Jn(e)&&getComputedStyle(e).display==="inline"},ur=function(){function e(t,n){this.target=t,this.observedBox=n||me.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Ot(this.target,this.observedBox,!0);return fr(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),dr=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Ae=new WeakMap,Nt=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Ce=function(){function e(){}return e.connect=function(t,n){var o=new dr(t,n);Ae.set(t,o)},e.observe=function(t,n,o){var s=Ae.get(t),i=s.observationTargets.length===0;Nt(s.observationTargets,n)<0&&(i&&ie.push(s),s.observationTargets.push(new ur(n,o&&o.box)),Lt(1),Je.schedule())},e.unobserve=function(t,n){var o=Ae.get(t),s=Nt(o.observationTargets,n),i=o.observationTargets.length===1;s>=0&&(i&&ie.splice(ie.indexOf(o),1),o.observationTargets.splice(s,1),Lt(-1))},e.disconnect=function(t){var n=this,o=Ae.get(t);o.observationTargets.slice().forEach(function(s){return n.unobserve(t,s.target)}),o.activeTargets.splice(0,o.activeTargets.length)},e}(),zt=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.");Ce.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(!xt(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ce.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(!xt(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ce.unobserve(this,t)},e.prototype.disconnect=function(){Ce.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const hr=["disabled","title"],pr={key:1,class:"stack-tab__button"},Ie=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",pr,[r.renderSlot(t.$slots,"icon")])):r.createCommentVNode("",!0)],10,hr))}}),br=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),d=r.ref(!1),c=r.ref(!0),l=r.ref(),m=e,f=r.reactive({clientWidth:0,scrollWidth:0,scrollLeft:0}),h=r.reactive({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});r.watch(f,C=>{T(C)});const T=C=>{a.value=C.scrollLeft<=10,d.value=C.clientWidth+C.scrollLeft-C.scrollWidth>=-10,c.value=C.scrollWidth!==C.clientWidth},v=r.computed(()=>f.scrollWidth>f.clientWidth),O=r.computed(()=>{if(!v.value)return 0;const{clientWidth:C,scrollWidth:M}=f;return C/M*C}),B=r.computed(()=>{if(!v.value)return 0;const{clientWidth:C,scrollWidth:M,scrollLeft:D}=f;return(C-O.value)*(D/(M-C))}),S=()=>{if(n.value===null||n.value===void 0)return;const{clientWidth:C,scrollWidth:M,scrollLeft:D}=n.value;Object.assign(f,{clientWidth:C,scrollWidth:M,scrollLeft:D})},_=new zt(()=>{var M;S();const C=(M=n.value)==null?void 0:M.querySelector(".stack-tab__item.is-active");C&&(F(C)||R(C))}),x=new zt(()=>{var C;if(!v.value){const M=(C=n.value)==null?void 0:C.querySelector(".stack-tab__item.is-active");M&&(F(M)||R(M))}S()}),k=(C,M=!0)=>{rt({wrap:n.value,left:C,smooth:M})},E=C=>{k(n.value.scrollLeft+C)},u=C=>{const M=C.deltaY<0;k(n.value.scrollLeft+(M?-m.space:m.space))},w=C=>{var M;Object.assign(h,{startPageX:C.pageX,startScrollLeft:(M=n.value)==null?void 0:M.scrollLeft,startThumbLeft:B.value,thumbLeft:B.value}),i.value=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",z)},y=C=>{const{clientWidth:M,scrollWidth:D}=f;let ne=h.startThumbLeft+C.pageX-h.startPageX;const we=M-O.value;ne<0?ne=0:ne>we&&(ne=we),h.thumbLeft=ne,k(ne*(D-M)/(M-O.value),!1),C.preventDefault()},z=C=>{i.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",z),C.preventDefault()};r.onMounted(()=>{var M;_.observe(l.value);const C=(M=n.value)==null?void 0:M.querySelector(".stack-tab__nav");x.observe(C)}),r.onUnmounted(()=>{_.disconnect(),x.disconnect()});const R=C=>{ln({el:C,wrap:n,block:"end",inline:"center"})},F=C=>{if(!v.value)return!0;const M=C.offsetLeft,D=n.value.scrollLeft;return!(M<D||M+C.clientWidth>D+n.value.clientWidth)};return t({scrollIntoView:R,isInView:F}),(C,M)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[c.value?(r.openBlock(),r.createBlock(Ie,{key:0,"icon-class":"stack-tab__icon-left-arrow",disabled:a.value,onClick:M[0]||(M[0]=D=>!a.value&&E(-1*C.space))},null,8,["disabled"])):r.createCommentVNode("",!0),r.createElementVNode("div",{ref_key:"headerScroll",ref:l,class:"stack-tab__scroll",onWheel:r.withModifiers(u,["prevent"])},[r.createElementVNode("div",{ref_key:"container",ref:n,class:r.normalizeClass(["stack-tab__scroll-container",{"stack-tab__shadow-inset-left":!a.value&&d.value,"stack-tab__shadow-inset-right":!d.value&&a.value,"stack-tab__shadow-inset-all":!a.value&&!d.value}]),onScrollPassive:S},[r.renderSlot(C.$slots,"default")],34),r.withDirectives(r.createElementVNode("div",{ref_key:"bar",ref:o,class:r.normalizeClass(["stack-tab__scrollbar",{"is-dragging":i.value}])},[r.createElementVNode("div",{ref_key:"thumb",ref:s,class:r.normalizeClass(["stack-tab__scrollbar-thumb",{"is-dragging":i.value}]),style:r.normalizeStyle({width:`${O.value}px`,transform:`translateX(${B.value}px)`}),onMousedown:r.withModifiers(w,["prevent"])},null,38)],2),[[r.vShow,v.value]])],544),c.value?(r.openBlock(),r.createBlock(Ie,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:d.value,onClick:M[1]||(M[1]=D=>!d.value&&E(C.space))},null,8,["disabled"])):r.createCommentVNode("",!0)],64))}}),mr={class:"stack-tab__header"},gr=r.defineComponent({__name:"index",props:{space:{},tabScrollMode:{default:K.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}=fe(),o=r.inject("maximum"),s=t,i=r.ref(),{shown:a,contextMenuData:d,showContextMenu:c}=Un(),l=e,{removeTab:m,active:f,tabs:h}=be(),T=r.computed(()=>typeof l.tabTransition=="string"?{name:l.tabTransition}:l.tabTransition),v=r.computed(()=>l.tabScrollMode===K.BOTH||l.tabScrollMode===K.BUTTON),O=l.tabScrollMode===K.BOTH||l.tabScrollMode===K.WHEEL,B=_=>{_.closable&&m(_.id),a.value=!1},S=(_,x,k)=>{i.value&&(r.nextTick(()=>{i.value.isInView(x.value)||i.value.scrollIntoView(x.value)}),f(_.id,k),s("active",_.id))};return(_,x)=>(r.openBlock(),r.createElementBlock("div",mr,[r.renderSlot(_.$slots,"leftButton"),r.createVNode(br,{ref_key:"scroll",ref:i,space:_.space,"is-scroll-wheel":r.unref(O),"is-scroll-button":v.value},{default:r.withCtx(()=>[r.createVNode(r.TransitionGroup,r.mergeProps({key:"tabItemTrans",tag:"ul",class:"stack-tab__nav"},T.value,{appear:""}),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(h),(k,E)=>(r.openBlock(),r.createBlock(Gn,{key:k.id,contextmenu:_.contextmenu,item:k,onContextmenu:r.withModifiers(u=>r.unref(c)(u,k,E,r.unref(h).length),["prevent"]),onMouseup:r.withModifiers(u=>B(k),["middle","prevent"]),onClose:B,onActive:S},null,8,["contextmenu","item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),r.renderSlot(_.$slots,"rightButton"),r.createVNode(Ie,{"icon-class":r.unref(o)?"stack-tab__icon-restore":"stack-tab__icon-fullscreen",title:r.unref(n)("VueStackTab.maximum"),onClick:x[0]||(x[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(Dn,{key:"tabMenuTrans",left:r.unref(d).left,top:r.unref(d).top,"tab-item":r.unref(d).item,max:r.unref(d).max,index:r.unref(d).index},null,8,["left","top","tab-item","max","index"])):r.createCommentVNode("",!0)]),_:1})]))}});var yr=typeof global=="object"&&global&&global.Object===Object&&global,kr=typeof self=="object"&&self&&self.Object===Object&&self,$t=yr||kr||Function("return this")(),Me=$t.Symbol,Rt=Object.prototype,wr=Rt.hasOwnProperty,_r=Rt.toString,ye=Me?Me.toStringTag:void 0;function Tr(e){var t=wr.call(e,ye),n=e[ye];try{e[ye]=void 0;var o=!0}catch{}var s=_r.call(e);return o&&(t?e[ye]=n:delete e[ye]),s}var xr=Object.prototype,vr=xr.toString;function Sr(e){return vr.call(e)}var Er="[object Null]",Or="[object Undefined]",Vt=Me?Me.toStringTag:void 0;function Br(e){return e==null?e===void 0?Or:Er:Vt&&Vt in Object(e)?Tr(e):Sr(e)}function Ar(e){return e!=null&&typeof e=="object"}var Cr="[object Symbol]";function Ir(e){return typeof e=="symbol"||Ar(e)&&Br(e)==Cr}var Mr=/\s/;function Lr(e){for(var t=e.length;t--&&Mr.test(e.charAt(t)););return t}var Nr=/^\s+/;function zr(e){return e&&e.slice(0,Lr(e)+1).replace(Nr,"")}function Le(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Pt=NaN,$r=/^[-+]0x[0-9a-f]+$/i,Rr=/^0b[01]+$/i,Vr=/^0o[0-7]+$/i,Pr=parseInt;function jt(e){if(typeof e=="number")return e;if(Ir(e))return Pt;if(Le(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Le(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=zr(e);var n=Rr.test(e);return n||Vr.test(e)?Pr(e.slice(2),n?2:8):$r.test(e)?Pt:+e}var Ke=function(){return $t.Date.now()},jr="Expected a function",Dr=Math.max,Ur=Math.min;function Wr(e,t,n){var o,s,i,a,d,c,l=0,m=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(jr);t=jt(t)||0,Le(n)&&(m=!!n.leading,f="maxWait"in n,i=f?Dr(jt(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function T(u){var w=o,y=s;return o=s=void 0,l=u,a=e.apply(y,w),a}function v(u){return l=u,d=setTimeout(S,t),m?T(u):a}function O(u){var w=u-c,y=u-l,z=t-w;return f?Ur(z,i-y):z}function B(u){var w=u-c,y=u-l;return c===void 0||w>=t||w<0||f&&y>=i}function S(){var u=Ke();if(B(u))return _(u);d=setTimeout(S,O(u))}function _(u){return d=void 0,h&&o?T(u):(o=s=void 0,a)}function x(){d!==void 0&&clearTimeout(d),l=0,o=c=s=d=void 0}function k(){return d===void 0?a:_(Ke())}function E(){var u=Ke(),w=B(u);if(o=arguments,s=this,c=u,w){if(d===void 0)return v(c);if(f)return clearTimeout(d),d=setTimeout(S,t),T(c)}return d===void 0&&(d=setTimeout(S,t)),a}return E.cancel=x,E.flush=k,E}var Fr="Expected a function";function qr(e,t,n){var o=!0,s=!0;if(typeof e!="function")throw new TypeError(Fr);return Le(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),Wr(e,t,{leading:o,maxWait:t,trailing:s})}let Dt;const Ut=()=>{const e=G.useRouter(),{active:t,hasTab:n,pageShown:o,reset:s,canAddTab:i,renewTab:a}=be(),d=pe(),c=qr((f,h=!1)=>new Promise((T,v)=>{if(!o.value){v();return}const O=J(f,{refreshable:!0,closable:!0,iframe:!1});if(O.id&&h&&n(O.id)&&a(f),n(O.id)&&!h){d.emit(P.TAB_ACTIVE,{id:O.id}),T(O.id);return}if(O.id||(O.id=Re()),!i()){v("Max Size");return}l(f,O),T(O.id)}),500),l=(f,h)=>{const T=We(h);let v=J({__tab:T},f.query),O;if(f.iframe){const B=encodeURIComponent(f.path);O=Dt,v.__src=B}else{const B=Ge(f.path);O=B.path,v=J(B.query,v)}e.push({path:O,query:v})};return{openNewTab:c,setIFramePath:f=>{Dt=f},active:t,reset:s}},Gr={class:"stack-tab__container"},Hr=["src"],Wt=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:K.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:d,setMaxSize:c,setGlobalScroll:l}=be(),m=t,f=e,{changeLocale:h}=fe(),T=r.ref(!1);r.provide("maximum",T);const{setIFramePath:v}=Ut();v(f.iframePath),l(f.globalScroll),h(f.i18n),r.onBeforeMount(()=>{d(f.defaultTabs)});const O=(_,x)=>a(_,x),B=_=>{m("onActive",_)};c(f.max),r.onBeforeUnmount(()=>{i()});const S=()=>{m("onPageLoaded")};return(_,x)=>{const k=r.resolveComponent("router-view");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["stack-tab",{"stack-tab__maximum":T.value}]),style:r.normalizeStyle({width:_.width,height:_.height,"z-index":T.value?r.unref(ot)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[r.createVNode(gr,{space:_.space,onActive:B,"tab-transition":_.tabTransition,max:_.max},{leftButton:r.withCtx(()=>[r.renderSlot(_.$slots,"leftButton")]),rightButton:r.withCtx(()=>[r.renderSlot(_.$slots,"rightButton")]),_:3},8,["space","tab-transition","max"]),r.createElementVNode("div",Gr,[r.createVNode(k,null,{default:r.withCtx(({Component:E,route:u})=>[r.createVNode(r.Transition,{name:_.pageTransition,appear:"",mode:"out-in"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.KeepAlive,{include:r.unref(s)},[r.unref(o)?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(O(u,E)),{key:u.fullPath,onOnLoaded:S},null,32)):r.createCommentVNode("",!0)],1032,["include"]))]),_:2},1032,["name"])]),_:1}),r.createVNode(r.TransitionGroup,{name:_.pageTransition,appear:""},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(n).filter(E=>E.iframe),E=>r.withDirectives((r.openBlock(),r.createElementBlock("iframe",{key:E.id,class:"stack-tab__iframe",src:/^(javascript|data):/i.test(E.url??"")?"about:blank":E.url,frameborder:"0"},null,8,Hr)),[[r.vShow,E.active]])),128))]),_:1},8,["name"])])],6)}}}),Qe=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Ft=typeof TextEncoder=="function"?new TextEncoder:void 0,ke=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(e=>{let t={};return e.forEach((n,o)=>t[n]=o),t})(ke);const Z=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const Zr=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),qt=typeof btoa=="function"?e=>btoa(e):Qe?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,o,s,i="";const a=e.length%3;for(let d=0;d<e.length;){if((n=e.charCodeAt(d++))>255||(o=e.charCodeAt(d++))>255||(s=e.charCodeAt(d++))>255)throw new TypeError("invalid character found");t=n<<16|o<<8|s,i+=ke[t>>18&63]+ke[t>>12&63]+ke[t>>6&63]+ke[t&63]}return a?i.slice(0,a-3)+"===".substring(a):i},Xr=Qe?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let o=0,s=e.length;o<s;o+=4096)n.push(Z.apply(null,e.subarray(o,o+4096)));return qt(n.join(""))},Yr=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Z(192|t>>>6)+Z(128|t&63):Z(224|t>>>12&15)+Z(128|t>>>6&63)+Z(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Z(240|t>>>18&7)+Z(128|t>>>12&63)+Z(128|t>>>6&63)+Z(128|t&63)}},Jr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Kr=e=>e.replace(Jr,Yr),Gt=Qe?e=>Buffer.from(e,"utf8").toString("base64"):Ft?e=>Xr(Ft.encode(e)):e=>qt(Kr(e)),Qr=(e,t=!1)=>t?Zr(Gt(e)):Gt(e),eo=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,"+Qr(o),d="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+",d+`background-image: url(${a});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`)},Ht=()=>{const{attrs:e,props:t}=r.getCurrentInstance(),{pageShown:n,getTab:o,markDeletableCache:s,removeComponent:i,getComponent:a,addPageScroller:d}=be(),c=G.useRoute(),l=G.useRouter();let m="",f="";m=e.tId||t.tId;const h=e.pId||t.pId;return f=c.query.__tab,{forward:B=>{const S=J({__tab:f},B.query);l.push({path:B.path,query:S})},backward:(B,S)=>{const _=o(m);if(!_)return;const x=_.pages;let k=0;if(typeof B=="number")k=Math.abs(B);else{let w=1,y=!1;const z=x.list(),R=Ge(B);S=J(R.query,S);for(let F=x.size()-2;F>=0;F--){if(z[F].path===R.path){y=!0;break}w+=1}y&&(k=w)}if(k===0||x.size()<=k)return;for(let w=0;w<k;w++){const y=x.pop();i(y.id),s(y.id)}const E=x==null?void 0:x.peek(),u=a(E.id);if(u!=null){const w=u.components.DynamicComponent;w.props=J(S,w.props)}l.push({path:E.path,query:E.query})},addScroller:(...B)=>{d(h,...B)}}},to=r.defineComponent({__name:"iframe",setup(e){return Ht(),()=>{}}}),no=()=>{const e=pe(),{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}},ro={install(e,t){eo("0.1.34"),e.component("VueStackTabs",Wt).use(zn).use(cn().getI18n(t))}};N.IFrame=to,N.Stack=_e,N.StackTab=Wt,N.TabHeaderButton=Ie,N.TabScrollMode=K,N.default=ro,N.useStackTab=Ut,N.useTabLoading=no,N.useTabRouter=Ht,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
6
|
+
caused by: ${W.fullStack(n)}`:t.stack}static info(t){ze(t);const n={},o=W.cause(t);return o&&Object.assign(n,W.info(o)),t._info&&Object.assign(n,t._info),n}cause(){return W.cause(this)}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}const st="0123456789ABCDEFGHJKMNPQRSTVWXYZ",ue=32,it=0xffffffffffff,dn=10,hn=16,de=Object.freeze({source:"ulid"});function pn(e){const t=e||bn(),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 W({info:{code:"PRNG_DETECT",...de}},"Failed to find a reliable PRNG")}function bn(){return yn()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function mn(e,t){let n="";for(;e>0;e--)n=kn(t)+n;return n}function gn(e,t){if(isNaN(e))throw new W({info:{code:"ENC_TIME_NAN",...de}},`Time must be a number: ${e}`);if(e>it)throw new W({info:{code:"ENC_TIME_SIZE_EXCEED",...de}},`Cannot encode a time larger than ${it}: ${e}`);if(e<0)throw new W({info:{code:"ENC_TIME_NEG",...de}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new W({info:{code:"ENC_TIME_TYPE",...de}},`Time must be an integer: ${e}`);let n,o="";for(let s=t;s>0;s--)n=e%ue,o=st.charAt(n)+o,e=(e-n)/ue;return o}function yn(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function kn(e){let t=Math.floor(e()*ue);return t===ue&&(t=ue-1),st.charAt(t)}function Re(e,t){const n=t||pn(),o=isNaN(e)?Date.now():e;return gn(o,dn)+mn(hn,n)}var Ve={exports:{}};Ve.exports,function(e){var t=function(){var n=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function a(c,l){if(!i[c]){i[c]={};for(var m=0;m<c.length;m++)i[c][c.charAt(m)]=m}return i[c][l]}var d={compressToBase64:function(c){if(c==null)return"";var l=d._compress(c,6,function(m){return o.charAt(m)});switch(l.length%4){default:case 0:return l;case 1:return l+"===";case 2:return l+"==";case 3:return l+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:d._decompress(c.length,32,function(l){return a(o,c.charAt(l))})},compressToUTF16:function(c){return c==null?"":d._compress(c,15,function(l){return n(l+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:d._decompress(c.length,16384,function(l){return c.charCodeAt(l)-32})},compressToUint8Array:function(c){for(var l=d.compress(c),m=new Uint8Array(l.length*2),f=0,h=l.length;f<h;f++){var T=l.charCodeAt(f);m[f*2]=T>>>8,m[f*2+1]=T%256}return m},decompressFromUint8Array:function(c){if(c==null)return d.decompress(c);for(var l=new Array(c.length/2),m=0,f=l.length;m<f;m++)l[m]=c[m*2]*256+c[m*2+1];var h=[];return l.forEach(function(T){h.push(n(T))}),d.decompress(h.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":d._compress(c,6,function(l){return s.charAt(l)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),d._decompress(c.length,32,function(l){return a(s,c.charAt(l))}))},compress:function(c){return d._compress(c,16,function(l){return n(l)})},_compress:function(c,l,m){if(c==null)return"";var f,h,T={},v={},O="",B="",S="",_=2,x=3,k=2,E=[],u=0,w=0,y;for(y=0;y<c.length;y+=1)if(O=c.charAt(y),Object.prototype.hasOwnProperty.call(T,O)||(T[O]=x++,v[O]=!0),B=S+O,Object.prototype.hasOwnProperty.call(T,B))S=B;else{if(Object.prototype.hasOwnProperty.call(v,S)){if(S.charCodeAt(0)<256){for(f=0;f<k;f++)u=u<<1,w==l-1?(w=0,E.push(m(u)),u=0):w++;for(h=S.charCodeAt(0),f=0;f<8;f++)u=u<<1|h&1,w==l-1?(w=0,E.push(m(u)),u=0):w++,h=h>>1}else{for(h=1,f=0;f<k;f++)u=u<<1|h,w==l-1?(w=0,E.push(m(u)),u=0):w++,h=0;for(h=S.charCodeAt(0),f=0;f<16;f++)u=u<<1|h&1,w==l-1?(w=0,E.push(m(u)),u=0):w++,h=h>>1}_--,_==0&&(_=Math.pow(2,k),k++),delete v[S]}else for(h=T[S],f=0;f<k;f++)u=u<<1|h&1,w==l-1?(w=0,E.push(m(u)),u=0):w++,h=h>>1;_--,_==0&&(_=Math.pow(2,k),k++),T[B]=x++,S=String(O)}if(S!==""){if(Object.prototype.hasOwnProperty.call(v,S)){if(S.charCodeAt(0)<256){for(f=0;f<k;f++)u=u<<1,w==l-1?(w=0,E.push(m(u)),u=0):w++;for(h=S.charCodeAt(0),f=0;f<8;f++)u=u<<1|h&1,w==l-1?(w=0,E.push(m(u)),u=0):w++,h=h>>1}else{for(h=1,f=0;f<k;f++)u=u<<1|h,w==l-1?(w=0,E.push(m(u)),u=0):w++,h=0;for(h=S.charCodeAt(0),f=0;f<16;f++)u=u<<1|h&1,w==l-1?(w=0,E.push(m(u)),u=0):w++,h=h>>1}_--,_==0&&(_=Math.pow(2,k),k++),delete v[S]}else for(h=T[S],f=0;f<k;f++)u=u<<1|h&1,w==l-1?(w=0,E.push(m(u)),u=0):w++,h=h>>1;_--,_==0&&(_=Math.pow(2,k),k++)}for(h=2,f=0;f<k;f++)u=u<<1|h&1,w==l-1?(w=0,E.push(m(u)),u=0):w++,h=h>>1;for(;;)if(u=u<<1,w==l-1){E.push(m(u));break}else w++;return E.join("")},decompress:function(c){return c==null?"":c==""?null:d._decompress(c.length,32768,function(l){return c.charCodeAt(l)})},_decompress:function(c,l,m){var f=[],h=4,T=4,v=3,O="",B=[],S,_,x,k,E,u,w,y={val:m(0),position:l,index:1};for(S=0;S<3;S+=1)f[S]=S;for(x=0,E=Math.pow(2,2),u=1;u!=E;)k=y.val&y.position,y.position>>=1,y.position==0&&(y.position=l,y.val=m(y.index++)),x|=(k>0?1:0)*u,u<<=1;switch(x){case 0:for(x=0,E=Math.pow(2,8),u=1;u!=E;)k=y.val&y.position,y.position>>=1,y.position==0&&(y.position=l,y.val=m(y.index++)),x|=(k>0?1:0)*u,u<<=1;w=n(x);break;case 1:for(x=0,E=Math.pow(2,16),u=1;u!=E;)k=y.val&y.position,y.position>>=1,y.position==0&&(y.position=l,y.val=m(y.index++)),x|=(k>0?1:0)*u,u<<=1;w=n(x);break;case 2:return""}for(f[3]=w,_=w,B.push(w);;){if(y.index>c)return"";for(x=0,E=Math.pow(2,v),u=1;u!=E;)k=y.val&y.position,y.position>>=1,y.position==0&&(y.position=l,y.val=m(y.index++)),x|=(k>0?1:0)*u,u<<=1;switch(w=x){case 0:for(x=0,E=Math.pow(2,8),u=1;u!=E;)k=y.val&y.position,y.position>>=1,y.position==0&&(y.position=l,y.val=m(y.index++)),x|=(k>0?1:0)*u,u<<=1;f[T++]=n(x),w=T-1,h--;break;case 1:for(x=0,E=Math.pow(2,16),u=1;u!=E;)k=y.val&y.position,y.position>>=1,y.position==0&&(y.position=l,y.val=m(y.index++)),x|=(k>0?1:0)*u,u<<=1;f[T++]=n(x),w=T-1,h--;break;case 2:return B.join("")}if(h==0&&(h=Math.pow(2,v),v++),f[w])O=f[w];else if(w===T)O=_+_.charAt(0);else return null;B.push(O),f[T++]=_+O.charAt(0),h--,_=O,h==0&&(h=Math.pow(2,v),v++)}}};return d}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(Ve);var at=Ve.exports;const wn=new TextEncoder,_n=new TextDecoder("utf-8",{ignoreBOM:!0}),ct={encode:e=>wn.encode(e),decode:e=>_n.decode(e)},lt=(()=>{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})(),Tn=(()=>{const e={};for(let t=0;t<256;t++){const n=lt[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})(),Pe={encode:e=>{let t="";for(let n=0,o=e.length;n<o;n++)t+=lt[e[n]];return t},encodeStr:e=>Pe.encode(ct.encode(e)),decode:e=>{const t=e.length/2,n=new Uint8Array(t);for(let o=0;o<t;o++)n[o]=Tn[e.slice(o*2,o*2+2)];return n},decodeStr:e=>ct.decode(Pe.decode(e)),is:e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e))};function he(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function xn(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function ft(e,...t){if(!xn(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 je(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 ut(e,t){ft(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const Te=BigInt(2**32-1),dt=BigInt(32);function ht(e,t=!1){return t?{h:Number(e&Te),l:Number(e>>dt&Te)}:{h:Number(e>>dt&Te)|0,l:Number(e&Te)|0}}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const vn=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),xe=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));function Sn(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}const ve=(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 En(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function De(e){if(typeof e=="string"&&(e=En(e)),!Sn(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}class On{clone(){return this._cloneInto()}}function Bn(e){const t=(o,s)=>e(s).update(De(o)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=o=>e(o),t}class An extends On{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,he(t),he(n),he(s),n<0||n>s)throw new Error("outputLen bigger than keyLen");if(o.key!==void 0&&(o.key.length<1||o.key.length>s))throw new Error(`key must be up 1..${s} byte long or undefined`);if(o.salt!==void 0&&o.salt.length!==i)throw new Error(`salt must be ${i} byte long or undefined`);if(o.personalization!==void 0&&o.personalization.length!==a)throw new Error(`personalization must be ${a} byte long or undefined`);this.buffer32=xe(this.buffer=new Uint8Array(t))}update(t){je(this);const{blockLen:n,buffer:o,buffer32:s}=this;t=De(t);const i=t.length,a=t.byteOffset,d=t.buffer;for(let c=0;c<i;){this.pos===n&&(this.compress(s,0,!1),this.pos=0);const l=Math.min(n-this.pos,i-c),m=a+c;if(l===n&&!(m%4)&&c+l<i){const f=new Uint32Array(d,m,Math.floor((i-c)/4));for(let h=0;c+n<i;h+=s.length,c+=n)this.length+=n,this.compress(f,h,!1);continue}o.set(t.subarray(c,c+l),this.pos),this.pos+=l,this.length+=l,c+=l}return this}digestInto(t){je(this),ut(t,this);const{pos:n,buffer32:o}=this;this.finished=!0,this.buffer.subarray(n).fill(0),this.compress(o,0,!0);const s=xe(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:d}=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=d,t}}const Y=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function Q(e,t,n,o,s){return e=e+t+s|0,o=ve(o^e,16),n=n+o|0,t=ve(t^n,12),{a:e,b:t,c:n,d:o}}function ee(e,t,n,o,s){return e=e+t+s|0,o=ve(o^e,8),n=n+o|0,t=ve(t^n,7),{a:e,b:t,c:n,d:o}}function pt(e,t,n,o,s,i,a,d,c,l,m,f,h,T,v,O,B,S,_,x){let k=0;for(let E=0;E<o;E++)({a:s,b:c,c:h,d:B}=Q(s,c,h,B,n[t+e[k++]])),{a:s,b:c,c:h,d:B}=ee(s,c,h,B,n[t+e[k++]]),{a:i,b:l,c:T,d:S}=Q(i,l,T,S,n[t+e[k++]]),{a:i,b:l,c:T,d:S}=ee(i,l,T,S,n[t+e[k++]]),{a,b:m,c:v,d:_}=Q(a,m,v,_,n[t+e[k++]]),{a,b:m,c:v,d:_}=ee(a,m,v,_,n[t+e[k++]]),{a:d,b:f,c:O,d:x}=Q(d,f,O,x,n[t+e[k++]]),{a:d,b:f,c:O,d:x}=ee(d,f,O,x,n[t+e[k++]]),{a:s,b:l,c:v,d:x}=Q(s,l,v,x,n[t+e[k++]]),{a:s,b:l,c:v,d:x}=ee(s,l,v,x,n[t+e[k++]]),{a:i,b:m,c:O,d:B}=Q(i,m,O,B,n[t+e[k++]]),{a:i,b:m,c:O,d:B}=ee(i,m,O,B,n[t+e[k++]]),{a,b:f,c:h,d:S}=Q(a,f,h,S,n[t+e[k++]]),{a,b:f,c:h,d:S}=ee(a,f,h,S,n[t+e[k++]]),{a:d,b:c,c:T,d:_}=Q(d,c,T,_,n[t+e[k++]]),{a:d,b:c,c:T,d:_}=ee(d,c,T,_,n[t+e[k++]]);return{v0:s,v1:i,v2:a,v3:d,v4:c,v5:l,v6:m,v7:f,v8:h,v9:T,v10:v,v11:O,v12:B,v13:S,v14:_,v15:x}}const bt=(()=>{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 Ue extends An{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,he(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=De(t.key).slice();if(o.length!==32)throw new Error("Blake3: key should be 32 byte");this.IV=xe(o),this.flags=n|16}else if(t.context!==void 0){const o=new Ue({dkLen:32},32).update(t.context).digest();this.IV=xe(o),this.flags=n|64}else this.IV=Y.slice(),this.flags=n;this.state=this.IV.slice(),this.bufferOut=vn(this.bufferOut32)}get(){return[]}set(){}b2Compress(t,n,o,s=0){const{state:i,pos:a}=this,{h:d,l:c}=ht(BigInt(t),!0),{v0:l,v1:m,v2:f,v3:h,v4:T,v5:v,v6:O,v7:B,v8:S,v9:_,v10:x,v11:k,v12:E,v13:u,v14:w,v15:y}=pt(bt,s,o,7,i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],Y[0],Y[1],Y[2],Y[3],d,c,a,n);i[0]=l^S,i[1]=m^_,i[2]=f^x,i[3]=h^k,i[4]=T^E,i[5]=v^u,i[6]=O^w,i[7]=B^y}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,d=this.chunksDone+1;(o||!(d&1))&&(a=this.stack.pop());d>>=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:d,stack:c,chunksDone:l}=this;return t.state.set(s.slice()),t.stack=c.map(m=>Uint32Array.from(m)),t.IV.set(n),t.flags=o,t.chunkPos=i,t.chunksDone=l,t.posOut=a,t.chunkOut=d,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:d}=ht(BigInt(this.chunkOut++)),{v0:c,v1:l,v2:m,v3:f,v4:h,v5:T,v6:v,v7:O,v8:B,v9:S,v10:_,v11:x,v12:k,v13:E,v14:u,v15:w}=pt(bt,0,s,7,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],Y[0],Y[1],Y[2],Y[3],d,a,n,o);i[0]=c^B,i[1]=l^S,i[2]=m^_,i[3]=f^x,i[4]=h^k,i[5]=T^E,i[6]=v^u,i[7]=O^w,i[8]=t[0]^B,i[9]=t[1]^S,i[10]=t[2]^_,i[11]=t[3]^x,i[12]=t[4]^k,i[13]=t[5]^E,i[14]=t[6]^u,i[15]=t[7]^w,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){je(this,!1),ft(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 he(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(ut(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 Cn=Bn(e=>new Ue(e)),We=e=>{const t=`${e.id}|${e.title}|${e.iframe?"Y":"N"}|${e.closable?"Y":"N"}|${e.refreshable?"Y":"N"}`;return at.compressToEncodedURIComponent(t)},In=e=>{const n=at.decompressFromEncodedURIComponent(e).split("|");return{id:n[0],title:n[1],iframe:n[2]==="Y",closable:n[3]==="Y",refreshable:n[4]==="Y"}},mt=(e,t,n)=>{const o=[];for(const i in n)i.startsWith("__")||o.push({key:i,value:n[i]});o.sort((i,a)=>{let d=0;return i.key>a.key?d=1:i.key<a.key&&(d=-1),d});const s=Cn(`${e}|${t}|${JSON.stringify(o)}`);return Pe.encode(s)};function Fe(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 qe(e,t,n=".",o){if(!Fe(t))return qe(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]]:Fe(a)&&Fe(s[i])?s[i]=qe(a,s[i],(n?`${n}.`:"")+i.toString(),o):s[i]=a))}return s}function Mn(e){return(...t)=>t.reduce((n,o)=>qe(n,o,"",e),{})}const J=Mn(),Ge=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 Ln(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 Nn=Ln(),zn={install(e){e.provide("tabEmitter",Nn)}},pe=()=>r.inject("tabEmitter");var P=(e=>(e.PAGE_LOADING="PAGE_LOADING",e.TAB_ACTIVE="TAB_ACTIVE",e))(P||{});const $n={key:0,class:"stack-tab-loading-mask"},Rn=[r.createElementVNode("div",{class:"stack-tab-loading--spin turn"},null,-1)],Vn=r.defineComponent({__name:"PageLoading",props:{tId:{}},setup(e){const t=e,n=pe(),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",$n,Rn)):r.createCommentVNode("",!0)}}),I=r.ref([]),He=[],$=r.ref([]),re=new Map,Se=new Set,j=new Set,oe=r.ref(!0),gt="stacktab-active-tab",se=new Map;let yt=!1,Ee=0,kt=!1;const be=()=>{const e=G.useRouter(),t=pe(),{t:n}=fe(),o=()=>I.value.length,s=g=>{for(const A of g){const p=J(A,{id:Re(),refreshable:!0,closable:!0,iframe:!1}),L=We(p),U=Ge(p.path),V=J(p,{closable:!0,refreshable:!0,iframe:!1}),Ne=mt(p.id,U.path,U.query),q={id:Ne,tabId:p.id,path:U.path,query:J(U.query,{__tab:L})},le=new _e;le.push(q);const X={id:p.id,title:V.title,closable:V.closable,refreshable:V.refreshable,iframe:V.iframe,active:!1,pages:le};$.value.push(Ne),He.push(X),I.value.push({...X})}const b=window.sessionStorage.getItem(gt);if(b!=null){const A=JSON.parse(b,(L,U)=>L==="pages"?new _e(U):U);let p=!1;for(const L of I.value)if(L.id===A.id){p=!0;break}p||I.value.push(A)}yt=!0},i=g=>{for(const b of I.value)if(b.id===g)return!0;return!1},a=()=>Ee<=0||Ee>0&&Ee>I.value.length,d=g=>new Promise(b=>{I.value.push(g),b(!0)}),c=g=>{for(const b of I.value)if(b.id===g)return b;return null},l=(g,b)=>{let A,p;if(g.query.__tab?p=In(g.query.__tab):(p={id:Re(),title:n("VueStackTab.undefined"),closable:!0,refreshable:!0,iframe:!1},g.query.__tab=We(p)),j.has(p.id)||!b)return;const L=g.matched[g.matched.length-1].path,U=g.path.endsWith("/")?g.path.substring(0,g.path.length-1):g.path,V=mt(p.id,L===U?U:g.path,g.query.valueOf()),Ne=g.query.__src;let q=null;for(const X of r.unref(I))X.active=!1,X.id===p.id&&(q=X);const le={id:V,tabId:p.id,path:g.path,query:g.query};if(q===null){const X=new _e;X.push(le),q={id:p.id,title:p.title,closable:p.closable,refreshable:p.refreshable,iframe:p.iframe,url:decodeURIComponent(Ne),active:!0,pages:X},d(q).then(()=>{t.emit(P.TAB_ACTIVE,{id:p.id,isRoute:!1})})}else q.active=!0,(q.pages.isEmpty()||q.pages.peek().id!==le.id)&&q.pages.push(le);return D(q),re.has(V)?A=re.get(V):(A=r.defineComponent({name:V,components:{DynamicComponent:b},emits:{onLoaded:null},setup(X,Zt){return r.onMounted(()=>{Zt.emit("onLoaded"),T(V,".cache-page-wrapper")}),r.onDeactivated(()=>{f(V)}),r.onActivated(()=>{Zt.emit("onLoaded"),m(V),R(),j.clear(),b.props=null}),r.onUnmounted(()=>{h(V)}),()=>r.createVNode("div",{class:"cache-page-wrapper",id:"W-"+p.id,style:[kt?"overflow:auto":"overflow:hidden"]},[r.createVNode(r.resolveComponent("dynamic-component"),{tId:p.id,pId:V},null),r.createVNode(Vn,{tId:p.id},null)])}}),re.set(V,A)),C(V),A},m=g=>{const b=se.get(g);if(b){for(const A of b.keys())if(document.querySelector(A)){const p=b.get(A);document.querySelector(A).scrollTop=p.top,document.querySelector(A).scrollLeft=p.left}}},f=g=>{var A,p;const b=se.get(g);if(b)for(const L of b.keys()){const U={top:((A=document.querySelector(L))==null?void 0:A.scrollTop)??0,left:((p=document.querySelector(L))==null?void 0:p.scrollLeft)??0};b.set(L,U)}},h=g=>{const b=se.get(g);b&&(b.clear(),se.delete(g))},T=(g,...b)=>{se.has(g)||se.set(g,new Map);const A=se.get(g);for(const p of b)A.set(p,{top:0,left:0})},v=g=>{const b=c(g.id);for(const A of b.pages.list())y(A.id),z(A.id);R(),b.pages.clear()},O=g=>{let b="";const A=c(g);for(let p=I.value.length-1;p>=0;p--)if(g===r.unref(I)[p].id){if(!r.unref(I)[p].closable)return g;for(const L of r.unref(I)[p].pages.list())y(L.id),z(L.id),j.add(r.unref(I)[p].id);r.unref(I)[p].pages.clear(),I.value.length>1&&r.unref(I)[p].active&&(p===0?b=r.unref(I)[p+1].id:b=r.unref(I)[p-1].id),r.unref(I).splice(p,1);break}return b!==""&&t.emit(P.TAB_ACTIVE,{id:b}),A!=null&&A.active||(R(),j.clear()),b},B=()=>{const g=r.unref(I);for(let b=g.length-1;b>=0;b--)if(g[b].closable){for(const A of g[b].pages.list())y(A.id),z(A.id),j.add(g[b].id);r.unref(I)[b].pages.clear(),r.unref(I).splice(b,1)}for(const b of g)if(b.active){R(),j.clear();return}t.emit(P.TAB_ACTIVE,{id:g[g.length-1].id})},S=g=>{const b=r.unref(I);let A;for(let p=b.length-1;p>=0;p--)if(b[p].id===g)A=b[p];else if(b[p].closable&&b[p].id!==g){for(const L of b[p].pages.list())y(L.id),z(L.id),j.add(b[p].id);r.unref(I)[p].pages.clear(),r.unref(I).splice(p,1)}A.active?(R(),j.clear()):t.emit(P.TAB_ACTIVE,{id:g})},_=g=>{let b=-1;const A=r.unref(I);for(let p=0;p<A.length;p++)if(A[p].id===g){b=p-1;break}for(let p=b;p>=0;p--)if(A[p].closable){for(const L of A[p].pages.list())y(L.id),z(L.id),j.add(A[p].id);r.unref(I)[p].pages.clear(),r.unref(I).splice(p,1)}for(const p of A)if(p.active){R(),j.clear();return}t.emit(P.TAB_ACTIVE,{id:A[0].id})},x=g=>{const b=r.unref(I);let A=b.length;for(let p=0;p<b.length;p++)if(b[p].id===g){A=p+1;break}for(let p=b.length-1;p>=A;p--)if(b[p].closable){for(const L of b[p].pages.list())y(L.id),z(L.id),j.add(b[p].id);r.unref(I)[p].pages.clear(),r.unref(I).splice(p,1)}for(const p of b)if(p.active){R(),j.clear();return}t.emit(P.TAB_ACTIVE,{id:b[b.length-1].id})},k=g=>{var b;for(const A of r.unref(I))if(A.id===g){const p=(b=A.pages.peek())==null?void 0:b.id;for(let L=$.value.length-1;L>=0;L--)if($.value[L]===p){$.value.splice(L,1),A.active&&(oe.value=!1,r.nextTick(()=>{oe.value=!0}));break}break}},E=()=>{const g=new Set;I.value.forEach(b=>{g.add(b.pages.peek().id)});for(let b=$.value.length-1;b>=0;b--){const A=$.value[b];g.has(A)&&$.value.splice(b,1)}r.nextTick(()=>{oe.value=!1,r.nextTick(()=>{setTimeout(()=>{oe.value=!0},300)})})},u=(g,b)=>{re.set(g,b)},w=g=>re.get(g),y=g=>{re.delete(g)},z=g=>{Se.add(g)},R=()=>{for(let g=$.value.length-1;g>=0;g--)Se.has($.value[g])&&r.unref($).splice(g,1);Se.clear()},F=g=>{for(let b=$.value.length-1;b>=0;b--)g===$.value[b]&&r.unref($).splice(b,1)},C=g=>{new Set($.value).has(g)||$.value.push(g)},M=(g,b=!0)=>{for(let A=I.value.length-1;A>=0;A--){const p=I.value[A];if(p.id===g){if(p.active)break;if(p.active=!0,D(p),b){const L=p.pages.peek();e.push({path:L.path,query:L.query})}}else I.value[A].active=!1}},D=g=>{window.sessionStorage.setItem(gt,JSON.stringify(g))},ne=()=>{oe.value=!1,we(),r.nextTick(()=>{r.unref(I).push(...He),t.emit(P.TAB_ACTIVE,{id:He[0].id}),r.nextTick(()=>{oe.value=!0})})},we=()=>{r.unref(I).splice(0),re.clear(),Se.clear(),j.clear(),r.unref($).splice(0)};return{tabs:I,caches:$,pageShown:oe,initialed:yt,setMaxSize:g=>{Ee=g},canAddTab:a,initial:s,size:o,active:M,destroy:we,reset:ne,addCache:C,removeCache:F,getTab:c,addTab:d,removeTab:O,removeAllTabs:B,removeLeftTabs:_,removeRightTabs:x,removeOtherTabs:S,hasTab:i,renewTab:v,addPage:l,addComponent:u,getComponent:w,removeComponent:y,markDeletableCache:z,removeDeletableCache:R,refreshTab:k,refreshAllTabs:E,addPageScroller:T,setGlobalScroll:g=>{kt=g}}},Pn={class:"stack-tab__contextmenu-item"},te=r.defineComponent({__name:"ContextMenuItem",props:{icon:{},title:{}},setup(e){return(t,n)=>(r.openBlock(),r.createElementBlock("div",Pn,[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)]))}}),jn={key:0,class:"divider div-transparent"},Dn=((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}=fe(),o=r.ref(),s=r.reactive({left:t.left,top:t.top}),{removeTab:i,removeAllTabs:a,removeLeftTabs:d,removeRightTabs:c,refreshTab:l,refreshAllTabs:m,removeOtherTabs:f}=be();return r.onMounted(()=>{const h=o.value?o.value.clientWidth:0,T=window.innerWidth;s.left+h>T&&(s.left=T-h-5)}),(h,T)=>(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(ot)(".stack-tab,.stack-tab *")})},[r.createVNode(te,{icon:"stack-tab__icon-reload svg-mask",title:r.unref(n)("VueStackTab.reload"),onClick:T[0]||(T[0]=v=>r.unref(l)(h.tabItem.id))},null,8,["title"]),r.createVNode(te,{icon:"stack-tab__icon-reload-all svg-mask",title:r.unref(n)("VueStackTab.reloadAll"),onClick:r.unref(m)},null,8,["title","onClick"]),r.createVNode(te,{icon:"stack-tab__icon-close svg-mask",title:r.unref(n)("VueStackTab.close"),disabled:h.tabItem.closable?null:"disabled",onClick:T[1]||(T[1]=v=>r.unref(i)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(te,{icon:"stack-tab__icon-close-lefts svg-mask",title:r.unref(n)("VueStackTab.closeLeft"),disabled:h.index<=0?"disabled":null,onClick:T[2]||(T[2]=v=>r.unref(d)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(te,{icon:"stack-tab__icon-close-rights svg-mask",title:r.unref(n)("VueStackTab.closeRight"),disabled:h.index>=h.max-1?"disabled":null,onClick:T[3]||(T[3]=v=>r.unref(c)(h.tabItem.id))},null,8,["title","disabled"]),r.createVNode(te,{icon:"stack-tab__icon-close-others svg-mask",title:r.unref(n)("VueStackTab.closeOthers"),onClick:T[4]||(T[4]=v=>r.unref(f)(h.tabItem.id))},null,8,["title"]),r.createVNode(te,{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",jn)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.contextMenu,(v,O)=>(r.openBlock(),r.createBlock(te,{key:O,icon:v.icon,title:v.title,disabled:v.disabled(h.tabItem)?"disabled":null,onClick:B=>!v.disabled&&v.callback(h.tabItem.id)},null,8,["icon","title","disabled","onClick"]))),128))],4))}}),[["__scopeId","data-v-d598be6e"]]),Un=()=>{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,d)=>{t.value=!1,await r.nextTick(()=>{const{clientY:c,clientX:l}=s;t.value=!0,Object.assign(e,{item:i,index:a,top:c,left:l,max:d})})},o=s=>{s.target.classList.contains("stack-tab__contextmenu")||(t.value=!1)};return{shown:t,contextMenuData:e,showContextMenu:n}},Wn={class:"stack-tab__item-title"},Fn=["title"],qn=["title"],Gn=r.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(e,{emit:t}){const n=t,o=pe(),{t:s}=fe(),i=r.ref(),a=e;o.on(P.TAB_ACTIVE,({id:m,isRoute:f})=>{a.item.id===m&&l(f)});const d=r.computed(()=>a.item.title||s("undefined")),c=()=>{n("close",a.item)},l=(m=!0)=>{n("active",a.item,i,m)};return(m,f)=>(r.openBlock(),r.createElementBlock("li",{ref_key:"curtab",ref:i,class:r.normalizeClass(["stack-tab__item",{"is-active":m.item.active,"is-icon":m.item.closable}]),onClick:f[0]||(f[0]=h=>l(!0))},[r.createElementVNode("div",Wn,[r.createElementVNode("div",{class:"stack-tab__item-title-content",title:d.value},r.toDisplayString(d.value),9,Fn)]),m.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,qn)):r.createCommentVNode("",!0)],2))}});var ie=[],Hn=function(){return ie.some(function(e){return e.activeTargets.length>0})},Zn=function(){return ie.some(function(e){return e.skippedTargets.length>0})},wt="ResizeObserver loop completed with undelivered notifications.",Xn=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:wt}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=wt),window.dispatchEvent(e)},me;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(me||(me={}));var ae=function(e){return Object.freeze(e)},Yn=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,ae(this)}return e}(),_t=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,ae(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,o=t.y,s=t.top,i=t.right,a=t.bottom,d=t.left,c=t.width,l=t.height;return{x:n,y:o,top:s,right:i,bottom:a,left:d,width:c,height:l}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Ze=function(e){return e instanceof SVGElement&&"getBBox"in e},Tt=function(e){if(Ze(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)},xt=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)},Jn=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},ge=typeof window<"u"?window:{},Oe=new WeakMap,vt=/auto|scroll/,Kn=/^tb|vertical/,Qn=/msie|trident/i.test(ge.navigator&&ge.navigator.userAgent),H=function(e){return parseFloat(e||"0")},ce=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new Yn((n?t:e)||0,(n?e:t)||0)},St=ae({devicePixelContentBoxSize:ce(),borderBoxSize:ce(),contentBoxSize:ce(),contentRect:new _t(0,0,0,0)}),Et=function(e,t){if(t===void 0&&(t=!1),Oe.has(e)&&!t)return Oe.get(e);if(Tt(e))return Oe.set(e,St),St;var n=getComputedStyle(e),o=Ze(e)&&e.ownerSVGElement&&e.getBBox(),s=!Qn&&n.boxSizing==="border-box",i=Kn.test(n.writingMode||""),a=!o&&vt.test(n.overflowY||""),d=!o&&vt.test(n.overflowX||""),c=o?0:H(n.paddingTop),l=o?0:H(n.paddingRight),m=o?0:H(n.paddingBottom),f=o?0:H(n.paddingLeft),h=o?0:H(n.borderTopWidth),T=o?0:H(n.borderRightWidth),v=o?0:H(n.borderBottomWidth),O=o?0:H(n.borderLeftWidth),B=f+l,S=c+m,_=O+T,x=h+v,k=d?e.offsetHeight-x-e.clientHeight:0,E=a?e.offsetWidth-_-e.clientWidth:0,u=s?B+_:0,w=s?S+x:0,y=o?o.width:H(n.width)-u-E,z=o?o.height:H(n.height)-w-k,R=y+B+E+_,F=z+S+k+x,C=ae({devicePixelContentBoxSize:ce(Math.round(y*devicePixelRatio),Math.round(z*devicePixelRatio),i),borderBoxSize:ce(R,F,i),contentBoxSize:ce(y,z,i),contentRect:new _t(f,c,y,z)});return Oe.set(e,C),C},Ot=function(e,t,n){var o=Et(e,n),s=o.borderBoxSize,i=o.contentBoxSize,a=o.devicePixelContentBoxSize;switch(t){case me.DEVICE_PIXEL_CONTENT_BOX:return a;case me.BORDER_BOX:return s;default:return i}},er=function(){function e(t){var n=Et(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=ae([n.borderBoxSize]),this.contentBoxSize=ae([n.contentBoxSize]),this.devicePixelContentBoxSize=ae([n.devicePixelContentBoxSize])}return e}(),Bt=function(e){if(Tt(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},tr=function(){var e=1/0,t=[];ie.forEach(function(a){if(a.activeTargets.length!==0){var d=[];a.activeTargets.forEach(function(l){var m=new er(l.target),f=Bt(l.target);d.push(m),l.lastReportedSize=Ot(l.target,l.observedBox),f<e&&(e=f)}),t.push(function(){a.callback.call(a.observer,d,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},At=function(e){ie.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(Bt(s.target)>e?n.activeTargets.push(s):n.skippedTargets.push(s))})})},nr=function(){var e=0;for(At(e);Hn();)e=tr(),At(e);return Zn()&&Xn(),e>0},Xe,Ct=[],rr=function(){return Ct.splice(0).forEach(function(e){return e()})},or=function(e){if(!Xe){var t=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return rr()}).observe(n,o),Xe=function(){n.textContent="".concat(t?t--:t++)}}Ct.push(e),Xe()},sr=function(e){or(function(){requestAnimationFrame(e)})},Be=0,ir=function(){return!!Be},ar=250,cr={attributes:!0,characterData:!0,childList:!0,subtree:!0},It=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Mt=function(e){return e===void 0&&(e=0),Date.now()+e},Ye=!1,lr=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=ar),!Ye){Ye=!0;var o=Mt(t);sr(function(){var s=!1;try{s=nr()}finally{if(Ye=!1,t=o-Mt(),!ir())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,cr)};document.body?n():ge.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),It.forEach(function(n){return ge.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),It.forEach(function(n){return ge.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Je=new lr,Lt=function(e){!Be&&e>0&&Je.start(),Be+=e,!Be&&Je.stop()},fr=function(e){return!Ze(e)&&!Jn(e)&&getComputedStyle(e).display==="inline"},ur=function(){function e(t,n){this.target=t,this.observedBox=n||me.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Ot(this.target,this.observedBox,!0);return fr(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),dr=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Ae=new WeakMap,Nt=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Ce=function(){function e(){}return e.connect=function(t,n){var o=new dr(t,n);Ae.set(t,o)},e.observe=function(t,n,o){var s=Ae.get(t),i=s.observationTargets.length===0;Nt(s.observationTargets,n)<0&&(i&&ie.push(s),s.observationTargets.push(new ur(n,o&&o.box)),Lt(1),Je.schedule())},e.unobserve=function(t,n){var o=Ae.get(t),s=Nt(o.observationTargets,n),i=o.observationTargets.length===1;s>=0&&(i&&ie.splice(ie.indexOf(o),1),o.observationTargets.splice(s,1),Lt(-1))},e.disconnect=function(t){var n=this,o=Ae.get(t);o.observationTargets.slice().forEach(function(s){return n.unobserve(t,s.target)}),o.activeTargets.splice(0,o.activeTargets.length)},e}(),zt=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.");Ce.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(!xt(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ce.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(!xt(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ce.unobserve(this,t)},e.prototype.disconnect=function(){Ce.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const hr=["disabled","title"],pr={key:1,class:"stack-tab__button"},Ie=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",pr,[r.renderSlot(t.$slots,"icon")])):r.createCommentVNode("",!0)],10,hr))}}),br=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),d=r.ref(!1),c=r.ref(!0),l=r.ref(),m=e,f=r.reactive({clientWidth:0,scrollWidth:0,scrollLeft:0}),h=r.reactive({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});r.watch(f,C=>{T(C)});const T=C=>{a.value=C.scrollLeft<=10,d.value=C.clientWidth+C.scrollLeft-C.scrollWidth>=-10,c.value=C.scrollWidth!==C.clientWidth},v=r.computed(()=>f.scrollWidth>f.clientWidth),O=r.computed(()=>{if(!v.value)return 0;const{clientWidth:C,scrollWidth:M}=f;return C/M*C}),B=r.computed(()=>{if(!v.value)return 0;const{clientWidth:C,scrollWidth:M,scrollLeft:D}=f;return(C-O.value)*(D/(M-C))}),S=()=>{if(n.value===null||n.value===void 0)return;const{clientWidth:C,scrollWidth:M,scrollLeft:D}=n.value;Object.assign(f,{clientWidth:C,scrollWidth:M,scrollLeft:D})},_=new zt(()=>{var M;S();const C=(M=n.value)==null?void 0:M.querySelector(".stack-tab__item.is-active");C&&(F(C)||R(C))}),x=new zt(()=>{var C;if(!v.value){const M=(C=n.value)==null?void 0:C.querySelector(".stack-tab__item.is-active");M&&(F(M)||R(M))}S()}),k=(C,M=!0)=>{rt({wrap:n.value,left:C,smooth:M})},E=C=>{k(n.value.scrollLeft+C)},u=C=>{const M=C.deltaY<0;k(n.value.scrollLeft+(M?-m.space:m.space))},w=C=>{var M;Object.assign(h,{startPageX:C.pageX,startScrollLeft:(M=n.value)==null?void 0:M.scrollLeft,startThumbLeft:B.value,thumbLeft:B.value}),i.value=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",z)},y=C=>{const{clientWidth:M,scrollWidth:D}=f;let ne=h.startThumbLeft+C.pageX-h.startPageX;const we=M-O.value;ne<0?ne=0:ne>we&&(ne=we),h.thumbLeft=ne,k(ne*(D-M)/(M-O.value),!1),C.preventDefault()},z=C=>{i.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",z),C.preventDefault()};r.onMounted(()=>{var M;_.observe(l.value);const C=(M=n.value)==null?void 0:M.querySelector(".stack-tab__nav");x.observe(C)}),r.onUnmounted(()=>{_.disconnect(),x.disconnect()});const R=C=>{ln({el:C,wrap:n,block:"end",inline:"center"})},F=C=>{if(!v.value)return!0;const M=C.offsetLeft,D=n.value.scrollLeft;return!(M<D||M+C.clientWidth>D+n.value.clientWidth)};return t({scrollIntoView:R,isInView:F}),(C,M)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[c.value?(r.openBlock(),r.createBlock(Ie,{key:0,"icon-class":"stack-tab__icon-left-arrow",disabled:a.value,onClick:M[0]||(M[0]=D=>!a.value&&E(-1*C.space))},null,8,["disabled"])):r.createCommentVNode("",!0),r.createElementVNode("div",{ref_key:"headerScroll",ref:l,class:"stack-tab__scroll",onWheel:r.withModifiers(u,["prevent"])},[r.createElementVNode("div",{ref_key:"container",ref:n,class:r.normalizeClass(["stack-tab__scroll-container",{"stack-tab__shadow-inset-left":!a.value&&d.value,"stack-tab__shadow-inset-right":!d.value&&a.value,"stack-tab__shadow-inset-all":!a.value&&!d.value}]),onScrollPassive:S},[r.renderSlot(C.$slots,"default")],34),r.withDirectives(r.createElementVNode("div",{ref_key:"bar",ref:o,class:r.normalizeClass(["stack-tab__scrollbar",{"is-dragging":i.value}])},[r.createElementVNode("div",{ref_key:"thumb",ref:s,class:r.normalizeClass(["stack-tab__scrollbar-thumb",{"is-dragging":i.value}]),style:r.normalizeStyle({width:`${O.value}px`,transform:`translateX(${B.value}px)`}),onMousedown:r.withModifiers(w,["prevent"])},null,38)],2),[[r.vShow,v.value]])],544),c.value?(r.openBlock(),r.createBlock(Ie,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:d.value,onClick:M[1]||(M[1]=D=>!d.value&&E(C.space))},null,8,["disabled"])):r.createCommentVNode("",!0)],64))}}),mr={class:"stack-tab__header"},gr=r.defineComponent({__name:"index",props:{space:{},tabScrollMode:{default:K.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}=fe(),o=r.inject("maximum"),s=t,i=r.ref(),{shown:a,contextMenuData:d,showContextMenu:c}=Un(),l=e,{removeTab:m,active:f,tabs:h}=be(),T=r.computed(()=>typeof l.tabTransition=="string"?{name:l.tabTransition}:l.tabTransition),v=r.computed(()=>l.tabScrollMode===K.BOTH||l.tabScrollMode===K.BUTTON),O=l.tabScrollMode===K.BOTH||l.tabScrollMode===K.WHEEL,B=_=>{_.closable&&m(_.id),a.value=!1},S=(_,x,k)=>{i.value&&(r.nextTick(()=>{i.value.isInView(x.value)||i.value.scrollIntoView(x.value)}),f(_.id,k),s("active",_.id))};return(_,x)=>(r.openBlock(),r.createElementBlock("div",mr,[r.renderSlot(_.$slots,"leftButton"),r.createVNode(br,{ref_key:"scroll",ref:i,space:_.space,"is-scroll-wheel":r.unref(O),"is-scroll-button":v.value},{default:r.withCtx(()=>[r.createVNode(r.TransitionGroup,r.mergeProps({key:"tabItemTrans",tag:"ul",class:"stack-tab__nav"},T.value,{appear:""}),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(h),(k,E)=>(r.openBlock(),r.createBlock(Gn,{key:k.id,contextmenu:_.contextmenu,item:k,onContextmenu:r.withModifiers(u=>r.unref(c)(u,k,E,r.unref(h).length),["prevent"]),onMouseup:r.withModifiers(u=>B(k),["middle","prevent"]),onClose:B,onActive:S},null,8,["contextmenu","item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),r.renderSlot(_.$slots,"rightButton"),r.createVNode(Ie,{"icon-class":r.unref(o)?"stack-tab__icon-restore":"stack-tab__icon-fullscreen",title:r.unref(n)("VueStackTab.maximum"),onClick:x[0]||(x[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(Dn,{key:"tabMenuTrans",left:r.unref(d).left,top:r.unref(d).top,"tab-item":r.unref(d).item,max:r.unref(d).max,index:r.unref(d).index},null,8,["left","top","tab-item","max","index"])):r.createCommentVNode("",!0)]),_:1})]))}});var yr=typeof global=="object"&&global&&global.Object===Object&&global,kr=typeof self=="object"&&self&&self.Object===Object&&self,$t=yr||kr||Function("return this")(),Me=$t.Symbol,Rt=Object.prototype,wr=Rt.hasOwnProperty,_r=Rt.toString,ye=Me?Me.toStringTag:void 0;function Tr(e){var t=wr.call(e,ye),n=e[ye];try{e[ye]=void 0;var o=!0}catch{}var s=_r.call(e);return o&&(t?e[ye]=n:delete e[ye]),s}var xr=Object.prototype,vr=xr.toString;function Sr(e){return vr.call(e)}var Er="[object Null]",Or="[object Undefined]",Vt=Me?Me.toStringTag:void 0;function Br(e){return e==null?e===void 0?Or:Er:Vt&&Vt in Object(e)?Tr(e):Sr(e)}function Ar(e){return e!=null&&typeof e=="object"}var Cr="[object Symbol]";function Ir(e){return typeof e=="symbol"||Ar(e)&&Br(e)==Cr}var Mr=/\s/;function Lr(e){for(var t=e.length;t--&&Mr.test(e.charAt(t)););return t}var Nr=/^\s+/;function zr(e){return e&&e.slice(0,Lr(e)+1).replace(Nr,"")}function Le(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Pt=NaN,$r=/^[-+]0x[0-9a-f]+$/i,Rr=/^0b[01]+$/i,Vr=/^0o[0-7]+$/i,Pr=parseInt;function jt(e){if(typeof e=="number")return e;if(Ir(e))return Pt;if(Le(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Le(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=zr(e);var n=Rr.test(e);return n||Vr.test(e)?Pr(e.slice(2),n?2:8):$r.test(e)?Pt:+e}var Ke=function(){return $t.Date.now()},jr="Expected a function",Dr=Math.max,Ur=Math.min;function Wr(e,t,n){var o,s,i,a,d,c,l=0,m=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(jr);t=jt(t)||0,Le(n)&&(m=!!n.leading,f="maxWait"in n,i=f?Dr(jt(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function T(u){var w=o,y=s;return o=s=void 0,l=u,a=e.apply(y,w),a}function v(u){return l=u,d=setTimeout(S,t),m?T(u):a}function O(u){var w=u-c,y=u-l,z=t-w;return f?Ur(z,i-y):z}function B(u){var w=u-c,y=u-l;return c===void 0||w>=t||w<0||f&&y>=i}function S(){var u=Ke();if(B(u))return _(u);d=setTimeout(S,O(u))}function _(u){return d=void 0,h&&o?T(u):(o=s=void 0,a)}function x(){d!==void 0&&clearTimeout(d),l=0,o=c=s=d=void 0}function k(){return d===void 0?a:_(Ke())}function E(){var u=Ke(),w=B(u);if(o=arguments,s=this,c=u,w){if(d===void 0)return v(c);if(f)return clearTimeout(d),d=setTimeout(S,t),T(c)}return d===void 0&&(d=setTimeout(S,t)),a}return E.cancel=x,E.flush=k,E}var Fr="Expected a function";function qr(e,t,n){var o=!0,s=!0;if(typeof e!="function")throw new TypeError(Fr);return Le(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),Wr(e,t,{leading:o,maxWait:t,trailing:s})}let Dt;const Ut=()=>{const e=G.useRouter(),{active:t,hasTab:n,pageShown:o,reset:s,canAddTab:i,renewTab:a}=be(),d=pe(),c=qr((f,h=!1)=>new Promise((T,v)=>{if(!o.value){v();return}const O=J(f,{refreshable:!0,closable:!0,iframe:!1});if(O.id&&h&&n(O.id)&&a(f),n(O.id)&&!h){d.emit(P.TAB_ACTIVE,{id:O.id}),T(O.id);return}if(O.id||(O.id=Re()),!i()){v("Max Size");return}l(f,O),T(O.id)}),500),l=(f,h)=>{const T=We(h);let v=J({__tab:T},f.query),O;if(f.iframe){const B=encodeURIComponent(f.path);O=Dt,v.__src=B}else{const B=Ge(f.path);O=B.path,v=J(B.query,v)}e.push({path:O,query:v})};return{openNewTab:c,setIFramePath:f=>{Dt=f},active:t,reset:s}},Gr={class:"stack-tab__container"},Hr=["src"],Wt=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:K.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:d,setMaxSize:c,setGlobalScroll:l}=be(),m=t,f=e,{changeLocale:h}=fe(),T=r.ref(!1);r.provide("maximum",T);const{setIFramePath:v}=Ut();v(f.iframePath),l(f.globalScroll),h(f.i18n),r.onBeforeMount(()=>{d(f.defaultTabs)});const O=(_,x)=>a(_,x),B=_=>{m("onActive",_)};c(f.max),r.onBeforeUnmount(()=>{i()});const S=()=>{m("onPageLoaded")};return(_,x)=>{const k=r.resolveComponent("router-view");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["stack-tab",{"stack-tab__maximum":T.value}]),style:r.normalizeStyle({width:_.width,height:_.height,"z-index":T.value?r.unref(ot)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[r.createVNode(gr,{space:_.space,onActive:B,"tab-transition":_.tabTransition,max:_.max},{leftButton:r.withCtx(()=>[r.renderSlot(_.$slots,"leftButton")]),rightButton:r.withCtx(()=>[r.renderSlot(_.$slots,"rightButton")]),_:3},8,["space","tab-transition","max"]),r.createElementVNode("div",Gr,[r.createVNode(k,null,{default:r.withCtx(({Component:E,route:u})=>[r.createVNode(r.Transition,{name:_.pageTransition,appear:"",mode:"out-in"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.KeepAlive,{include:r.unref(s)},[r.unref(o)?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(O(u,E)),{key:u.fullPath,onOnLoaded:S},null,32)):r.createCommentVNode("",!0)],1032,["include"]))]),_:2},1032,["name"])]),_:1}),r.createVNode(r.TransitionGroup,{name:_.pageTransition,appear:""},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(n).filter(E=>E.iframe),E=>r.withDirectives((r.openBlock(),r.createElementBlock("iframe",{key:E.id,class:"stack-tab__iframe",src:/^(javascript|data):/i.test(E.url??"")?"about:blank":E.url,frameborder:"0"},null,8,Hr)),[[r.vShow,E.active]])),128))]),_:1},8,["name"])])],6)}}}),Qe=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Ft=typeof TextEncoder=="function"?new TextEncoder:void 0,ke=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(e=>{let t={};return e.forEach((n,o)=>t[n]=o),t})(ke);const Z=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const Zr=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),qt=typeof btoa=="function"?e=>btoa(e):Qe?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,o,s,i="";const a=e.length%3;for(let d=0;d<e.length;){if((n=e.charCodeAt(d++))>255||(o=e.charCodeAt(d++))>255||(s=e.charCodeAt(d++))>255)throw new TypeError("invalid character found");t=n<<16|o<<8|s,i+=ke[t>>18&63]+ke[t>>12&63]+ke[t>>6&63]+ke[t&63]}return a?i.slice(0,a-3)+"===".substring(a):i},Xr=Qe?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let o=0,s=e.length;o<s;o+=4096)n.push(Z.apply(null,e.subarray(o,o+4096)));return qt(n.join(""))},Yr=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Z(192|t>>>6)+Z(128|t&63):Z(224|t>>>12&15)+Z(128|t>>>6&63)+Z(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Z(240|t>>>18&7)+Z(128|t>>>12&63)+Z(128|t>>>6&63)+Z(128|t&63)}},Jr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Kr=e=>e.replace(Jr,Yr),Gt=Qe?e=>Buffer.from(e,"utf8").toString("base64"):Ft?e=>Xr(Ft.encode(e)):e=>qt(Kr(e)),Qr=(e,t=!1)=>t?Zr(Gt(e)):Gt(e),eo=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,"+Qr(o),d="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+",d+`background-image: url(${a});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`)},Ht=()=>{const{attrs:e,props:t}=r.getCurrentInstance(),{pageShown:n,getTab:o,markDeletableCache:s,removeComponent:i,getComponent:a,addPageScroller:d}=be(),c=G.useRoute(),l=G.useRouter();let m="",f="";m=e.tId||t.tId;const h=e.pId||t.pId;return f=c.query.__tab,{forward:B=>{const S=J({__tab:f},B.query);l.push({path:B.path,query:S})},backward:(B,S)=>{const _=o(m);if(!_)return;const x=_.pages;let k=0;if(typeof B=="number")k=Math.abs(B);else{let w=1,y=!1;const z=x.list(),R=Ge(B);S=J(R.query,S);for(let F=x.size()-2;F>=0;F--){if(z[F].path===R.path){y=!0;break}w+=1}y&&(k=w)}if(k===0||x.size()<=k)return;for(let w=0;w<k;w++){const y=x.pop();i(y.id),s(y.id)}const E=x==null?void 0:x.peek(),u=a(E.id);if(u!=null){const w=u.components.DynamicComponent;w.props=J(S,w.props)}l.push({path:E.path,query:E.query})},addScroller:(...B)=>{d(h,...B)}}},to=r.defineComponent({__name:"iframe",setup(e){return Ht(),()=>{}}}),no=()=>{const e=pe(),{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}},ro={install(e,t){eo("0.1.35"),e.component("VueStackTabs",Wt).use(zn).use(cn().getI18n(t))}};N.IFrame=to,N.Stack=_e,N.StackTab=Wt,N.TabHeaderButton=Ie,N.TabScrollMode=K,N.default=ro,N.useStackTab=Ut,N.useTabLoading=no,N.useTabRouter=Ht,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|