vue-stack-tabs 0.1.39 → 0.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { inject as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
const
|
|
1
|
+
var bn = Object.defineProperty;
|
|
2
|
+
var vn = (t, e, n) => e in t ? bn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var wt = (t, e, n) => vn(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { inject as it, ref as D, reactive as Ie, readonly as kt, toRaw as mn, defineComponent as ee, openBlock as R, createElementBlock as V, createElementVNode as Q, createCommentVNode as se, unref as S, nextTick as le, onMounted as Fe, onDeactivated as gn, onActivated as yn, onUnmounted as He, createVNode as P, resolveComponent as Zt, normalizeClass as fe, withModifiers as _e, toDisplayString as jt, normalizeStyle as at, Fragment as Ze, renderList as ct, createBlock as me, computed as we, renderSlot as xe, watch as wn, withDirectives as Xt, vShow as Gt, withCtx as ue, TransitionGroup as Yt, mergeProps as kn, Transition as Kt, provide as _n, onBeforeMount as xn, onBeforeUnmount as _t, KeepAlive as Tn, resolveDynamicComponent as Sn, getCurrentInstance as Jt } from "vue";
|
|
5
|
+
import { useRouter as lt, useRoute as On } from "vue-router";
|
|
6
|
+
const An = {
|
|
7
7
|
VueStackTab: {
|
|
8
8
|
close: "close",
|
|
9
9
|
closeLeft: "close left",
|
|
@@ -17,10 +17,10 @@ const On = {
|
|
|
17
17
|
undefined: "undefined",
|
|
18
18
|
loading: "loading"
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21
21
|
__proto__: null,
|
|
22
|
-
default:
|
|
23
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
22
|
+
default: An
|
|
23
|
+
}, Symbol.toStringTag, { value: "Module" })), In = {
|
|
24
24
|
VueStackTab: {
|
|
25
25
|
close: "关闭",
|
|
26
26
|
closeLeft: "关闭左侧",
|
|
@@ -34,27 +34,27 @@ const On = {
|
|
|
34
34
|
undefined: "未命名",
|
|
35
35
|
loading: "加载中"
|
|
36
36
|
}
|
|
37
|
-
},
|
|
37
|
+
}, Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
38
38
|
__proto__: null,
|
|
39
|
-
default:
|
|
39
|
+
default: In
|
|
40
40
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
41
41
|
/*!
|
|
42
42
|
* vue-i18n-lite v1.0.2
|
|
43
43
|
* (c) 2021 Erik Pham
|
|
44
44
|
* @license MIT
|
|
45
45
|
*/
|
|
46
|
-
const
|
|
47
|
-
function
|
|
46
|
+
const Mn = ["__proto__", "prototype", "constructor"];
|
|
47
|
+
function Cn(t) {
|
|
48
48
|
const e = typeof t;
|
|
49
49
|
return t !== null && (e === "object" || e === "function");
|
|
50
50
|
}
|
|
51
|
-
function Cn(t) {
|
|
52
|
-
return !(Array.isArray(t) ? t.length : Object.keys(t).length);
|
|
53
|
-
}
|
|
54
51
|
function Ln(t) {
|
|
55
|
-
return !
|
|
52
|
+
return !(Array.isArray(t) ? t.length : Object.keys(t).length);
|
|
56
53
|
}
|
|
57
54
|
function zn(t) {
|
|
55
|
+
return !t.some((e) => Mn.indexOf(e) !== -1);
|
|
56
|
+
}
|
|
57
|
+
function Rn(t) {
|
|
58
58
|
const e = t.split("."), n = [];
|
|
59
59
|
for (let s = 0; s < e.length; s++) {
|
|
60
60
|
let r = e[s];
|
|
@@ -62,12 +62,12 @@ function zn(t) {
|
|
|
62
62
|
r = r.slice(0, -1) + ".", r += e[++s];
|
|
63
63
|
n.push(r);
|
|
64
64
|
}
|
|
65
|
-
return
|
|
65
|
+
return zn(n) ? n : [];
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
if (!
|
|
67
|
+
function xt(t, e) {
|
|
68
|
+
if (!Cn(t))
|
|
69
69
|
return "";
|
|
70
|
-
const n =
|
|
70
|
+
const n = Rn(e);
|
|
71
71
|
if (n.length === 0)
|
|
72
72
|
return "";
|
|
73
73
|
let s = Object.assign({}, t);
|
|
@@ -82,7 +82,7 @@ function wt(t, e) {
|
|
|
82
82
|
}
|
|
83
83
|
return "";
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Dn(t, e) {
|
|
86
86
|
if (Array.isArray(e)) {
|
|
87
87
|
const n = {}, s = [...t.matchAll(/{(.+?)}/g)];
|
|
88
88
|
return s && s.forEach((r, o) => {
|
|
@@ -91,21 +91,21 @@ function Rn(t, e) {
|
|
|
91
91
|
}
|
|
92
92
|
return e;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function $n(t, e) {
|
|
95
95
|
for (const n in e)
|
|
96
96
|
t = t.replace(`{${n}}`, String(e[n]));
|
|
97
97
|
return t;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Qt(t, e) {
|
|
100
100
|
return Object.keys(e).forEach((n) => {
|
|
101
|
-
e[n] instanceof Object && n in t && (e[n] = { ...e[n], ...
|
|
101
|
+
e[n] instanceof Object && n in t && (e[n] = { ...e[n], ...Qt(t[n], e[n]) });
|
|
102
102
|
}), { ...t || {}, ...e };
|
|
103
103
|
}
|
|
104
|
-
const
|
|
104
|
+
const Nn = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", Pn = (t) => Nn ? Symbol(t) : "_vt_" + t, en = /* @__PURE__ */ Pn("i18n");
|
|
105
105
|
function Me() {
|
|
106
|
-
return
|
|
106
|
+
return it(en);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Wn(t) {
|
|
109
109
|
const e = Object.assign({ locale: "en", fallbackLocale: "en", messages: {} }, t), n = D(e.locale), s = Ie({});
|
|
110
110
|
return Object.entries(e.messages).forEach(([r, o]) => {
|
|
111
111
|
s[r] = o;
|
|
@@ -114,32 +114,32 @@ function Pn(t) {
|
|
|
114
114
|
if (!r)
|
|
115
115
|
return "";
|
|
116
116
|
const i = typeof o == "string" && o ? o : n.value;
|
|
117
|
-
let f =
|
|
117
|
+
let f = xt(s[i], r) || xt(s[e.fallbackLocale], r);
|
|
118
118
|
if (o && typeof o != "string") {
|
|
119
|
-
const a =
|
|
120
|
-
|
|
119
|
+
const a = Dn(f, o);
|
|
120
|
+
Ln(a) || (f = $n(f, a));
|
|
121
121
|
}
|
|
122
122
|
return f || r;
|
|
123
123
|
},
|
|
124
|
-
current:
|
|
125
|
-
options:
|
|
124
|
+
current: kt(n),
|
|
125
|
+
options: kt(t || {}),
|
|
126
126
|
install(r) {
|
|
127
127
|
const o = this;
|
|
128
|
-
r.config.globalProperties.$t = o.t, r.provide(
|
|
128
|
+
r.config.globalProperties.$t = o.t, r.provide(en, o);
|
|
129
129
|
},
|
|
130
130
|
changeLocale(r) {
|
|
131
131
|
n.value = r;
|
|
132
132
|
},
|
|
133
133
|
setLocaleMessage(r, o) {
|
|
134
|
-
s[r] =
|
|
134
|
+
s[r] = Qt(mn(s[r] || {}), o);
|
|
135
135
|
},
|
|
136
136
|
getLocaleMessage(r) {
|
|
137
137
|
return s[r] || {};
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
-
const
|
|
142
|
-
const t = /* @__PURE__ */ Object.assign({ "./lang/en.ts":
|
|
141
|
+
const Vn = () => {
|
|
142
|
+
const t = /* @__PURE__ */ Object.assign({ "./lang/en.ts": En, "./lang/zh-CN.ts": Bn });
|
|
143
143
|
function e(r, o) {
|
|
144
144
|
for (const i in r)
|
|
145
145
|
if (r[i].default) {
|
|
@@ -160,14 +160,14 @@ const Wn = () => {
|
|
|
160
160
|
if (r)
|
|
161
161
|
for (const i of r)
|
|
162
162
|
o[i.locale] = i.messages;
|
|
163
|
-
return
|
|
163
|
+
return Wn({
|
|
164
164
|
locale: "zh-CN",
|
|
165
165
|
fallbackLocale: "en",
|
|
166
166
|
messages: o
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
};
|
|
170
|
-
},
|
|
170
|
+
}, tn = ({
|
|
171
171
|
wrap: t,
|
|
172
172
|
left: e = 0,
|
|
173
173
|
top: n = 0,
|
|
@@ -179,7 +179,7 @@ const Wn = () => {
|
|
|
179
179
|
behavior: s ? "smooth" : "auto"
|
|
180
180
|
}) : (t.scrollLeft = e, t.scrollTop = n));
|
|
181
181
|
};
|
|
182
|
-
function
|
|
182
|
+
function Un({
|
|
183
183
|
el: t,
|
|
184
184
|
wrap: e,
|
|
185
185
|
block: n = "start",
|
|
@@ -191,10 +191,10 @@ function Vn({
|
|
|
191
191
|
else {
|
|
192
192
|
const { offsetLeft: r, offsetTop: o } = t;
|
|
193
193
|
let i, f;
|
|
194
|
-
n === "center" ? f = o + (t.clientHeight - e.clientHeight) / 2 : f = o, s === "center" ? i = r + (t.clientWidth - e.clientWidth) / 2 : i = r,
|
|
194
|
+
n === "center" ? f = o + (t.clientHeight - e.clientHeight) / 2 : f = o, s === "center" ? i = r + (t.clientWidth - e.clientWidth) / 2 : i = r, tn({ wrap: e, left: i, top: f });
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
const
|
|
197
|
+
const nn = (t = ".stack-tab__container *") => {
|
|
198
198
|
const e = Array.from(document.querySelectorAll(t)).map(
|
|
199
199
|
(n) => +window.getComputedStyle(n).zIndex || 0
|
|
200
200
|
);
|
|
@@ -205,7 +205,7 @@ class je {
|
|
|
205
205
|
//
|
|
206
206
|
constructor(e) {
|
|
207
207
|
// 存储的Map
|
|
208
|
-
|
|
208
|
+
wt(this, "items");
|
|
209
209
|
if (this.items = /* @__PURE__ */ new Map(), e)
|
|
210
210
|
for (const n of e)
|
|
211
211
|
this.push(n);
|
|
@@ -278,30 +278,30 @@ function We(t) {
|
|
|
278
278
|
var e = new Error(t);
|
|
279
279
|
return e.source = "ulid", e;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
282
|
-
function
|
|
281
|
+
var ut = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Oe = ut.length, Tt = Math.pow(2, 48) - 1, qn = 10, Fn = 16;
|
|
282
|
+
function Hn(t) {
|
|
283
283
|
var e = Math.floor(t() * Oe);
|
|
284
|
-
return e === Oe && (e = Oe - 1),
|
|
284
|
+
return e === Oe && (e = Oe - 1), ut.charAt(e);
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function Zn(t, e) {
|
|
287
287
|
if (isNaN(t))
|
|
288
288
|
throw new Error(t + " must be a number");
|
|
289
|
-
if (t >
|
|
290
|
-
throw We("cannot encode time greater than " +
|
|
289
|
+
if (t > Tt)
|
|
290
|
+
throw We("cannot encode time greater than " + Tt);
|
|
291
291
|
if (t < 0)
|
|
292
292
|
throw We("time must be positive");
|
|
293
293
|
if (Number.isInteger(t) === !1)
|
|
294
294
|
throw We("time must be an integer");
|
|
295
295
|
for (var n = void 0, s = ""; e > 0; e--)
|
|
296
|
-
n = t % Oe, s =
|
|
296
|
+
n = t % Oe, s = ut.charAt(n) + s, t = (t - n) / Oe;
|
|
297
297
|
return s;
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function jn(t, e) {
|
|
300
300
|
for (var n = ""; t > 0; t--)
|
|
301
|
-
n =
|
|
301
|
+
n = Hn(e) + n;
|
|
302
302
|
return n;
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function Xn() {
|
|
305
305
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, e = arguments[1];
|
|
306
306
|
e || (e = typeof window < "u" ? window : null);
|
|
307
307
|
var n = e && (e.crypto || e.msCrypto);
|
|
@@ -327,13 +327,13 @@ function jn() {
|
|
|
327
327
|
}
|
|
328
328
|
throw We("secure crypto unusable, insecure Math.random not allowed");
|
|
329
329
|
}
|
|
330
|
-
function
|
|
331
|
-
return t || (t =
|
|
332
|
-
return isNaN(n) && (n = Date.now()),
|
|
330
|
+
function Gn(t) {
|
|
331
|
+
return t || (t = Xn()), function(n) {
|
|
332
|
+
return isNaN(n) && (n = Date.now()), Zn(n, qn) + jn(Fn, t);
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
|
-
var
|
|
336
|
-
|
|
335
|
+
var Qe = Gn(), ft = { exports: {} };
|
|
336
|
+
ft.exports;
|
|
337
337
|
(function(t) {
|
|
338
338
|
var e = function() {
|
|
339
339
|
var n = String.fromCharCode, s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", o = {};
|
|
@@ -380,9 +380,9 @@ ut.exports;
|
|
|
380
380
|
},
|
|
381
381
|
//compress into uint8array (UCS-2 big endian format)
|
|
382
382
|
compressToUint8Array: function(a) {
|
|
383
|
-
for (var c = f.compress(a), p = new Uint8Array(c.length * 2),
|
|
384
|
-
var k = c.charCodeAt(
|
|
385
|
-
p[
|
|
383
|
+
for (var c = f.compress(a), p = new Uint8Array(c.length * 2), u = 0, l = c.length; u < l; u++) {
|
|
384
|
+
var k = c.charCodeAt(u);
|
|
385
|
+
p[u * 2] = k >>> 8, p[u * 2 + 1] = k % 256;
|
|
386
386
|
}
|
|
387
387
|
return p;
|
|
388
388
|
},
|
|
@@ -390,12 +390,12 @@ ut.exports;
|
|
|
390
390
|
decompressFromUint8Array: function(a) {
|
|
391
391
|
if (a == null)
|
|
392
392
|
return f.decompress(a);
|
|
393
|
-
for (var c = new Array(a.length / 2), p = 0,
|
|
393
|
+
for (var c = new Array(a.length / 2), p = 0, u = c.length; p < u; p++)
|
|
394
394
|
c[p] = a[p * 2] * 256 + a[p * 2 + 1];
|
|
395
|
-
var
|
|
395
|
+
var l = [];
|
|
396
396
|
return c.forEach(function(k) {
|
|
397
|
-
|
|
398
|
-
}), f.decompress(
|
|
397
|
+
l.push(n(k));
|
|
398
|
+
}), f.decompress(l.join(""));
|
|
399
399
|
},
|
|
400
400
|
//compress into a string that is already URI encoded
|
|
401
401
|
compressToEncodedURIComponent: function(a) {
|
|
@@ -416,56 +416,56 @@ ut.exports;
|
|
|
416
416
|
},
|
|
417
417
|
_compress: function(a, c, p) {
|
|
418
418
|
if (a == null) return "";
|
|
419
|
-
var
|
|
420
|
-
for (
|
|
421
|
-
if (B = a.charAt(
|
|
419
|
+
var u, l, k = {}, O = {}, B = "", I = "", y = "", w = 2, T = 3, g = 2, _ = [], d = 0, x = 0, m;
|
|
420
|
+
for (m = 0; m < a.length; m += 1)
|
|
421
|
+
if (B = a.charAt(m), Object.prototype.hasOwnProperty.call(k, B) || (k[B] = T++, O[B] = !0), I = y + B, Object.prototype.hasOwnProperty.call(k, I))
|
|
422
422
|
y = I;
|
|
423
423
|
else {
|
|
424
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
424
|
+
if (Object.prototype.hasOwnProperty.call(O, y)) {
|
|
425
425
|
if (y.charCodeAt(0) < 256) {
|
|
426
|
-
for (
|
|
427
|
-
|
|
428
|
-
for (
|
|
429
|
-
|
|
426
|
+
for (u = 0; u < g; u++)
|
|
427
|
+
d = d << 1, x == c - 1 ? (x = 0, _.push(p(d)), d = 0) : x++;
|
|
428
|
+
for (l = y.charCodeAt(0), u = 0; u < 8; u++)
|
|
429
|
+
d = d << 1 | l & 1, x == c - 1 ? (x = 0, _.push(p(d)), d = 0) : x++, l = l >> 1;
|
|
430
430
|
} else {
|
|
431
|
-
for (
|
|
432
|
-
|
|
433
|
-
for (
|
|
434
|
-
|
|
431
|
+
for (l = 1, u = 0; u < g; u++)
|
|
432
|
+
d = d << 1 | l, x == c - 1 ? (x = 0, _.push(p(d)), d = 0) : x++, l = 0;
|
|
433
|
+
for (l = y.charCodeAt(0), u = 0; u < 16; u++)
|
|
434
|
+
d = d << 1 | l & 1, x == c - 1 ? (x = 0, _.push(p(d)), d = 0) : x++, l = l >> 1;
|
|
435
435
|
}
|
|
436
|
-
|
|
436
|
+
w--, w == 0 && (w = Math.pow(2, g), g++), delete O[y];
|
|
437
437
|
} else
|
|
438
|
-
for (
|
|
439
|
-
|
|
440
|
-
|
|
438
|
+
for (l = k[y], u = 0; u < g; u++)
|
|
439
|
+
d = d << 1 | l & 1, x == c - 1 ? (x = 0, _.push(p(d)), d = 0) : x++, l = l >> 1;
|
|
440
|
+
w--, w == 0 && (w = Math.pow(2, g), g++), k[I] = T++, y = String(B);
|
|
441
441
|
}
|
|
442
442
|
if (y !== "") {
|
|
443
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
443
|
+
if (Object.prototype.hasOwnProperty.call(O, y)) {
|
|
444
444
|
if (y.charCodeAt(0) < 256) {
|
|
445
|
-
for (
|
|
446
|
-
|
|
447
|
-
for (
|
|
448
|
-
|
|
445
|
+
for (u = 0; u < g; u++)
|
|
446
|
+
d = d << 1, x == c - 1 ? (x = 0, _.push(p(d)), d = 0) : x++;
|
|
447
|
+
for (l = y.charCodeAt(0), u = 0; u < 8; u++)
|
|
448
|
+
d = d << 1 | l & 1, x == c - 1 ? (x = 0, _.push(p(d)), d = 0) : x++, l = l >> 1;
|
|
449
449
|
} else {
|
|
450
|
-
for (
|
|
451
|
-
|
|
452
|
-
for (
|
|
453
|
-
|
|
450
|
+
for (l = 1, u = 0; u < g; u++)
|
|
451
|
+
d = d << 1 | l, x == c - 1 ? (x = 0, _.push(p(d)), d = 0) : x++, l = 0;
|
|
452
|
+
for (l = y.charCodeAt(0), u = 0; u < 16; u++)
|
|
453
|
+
d = d << 1 | l & 1, x == c - 1 ? (x = 0, _.push(p(d)), d = 0) : x++, l = l >> 1;
|
|
454
454
|
}
|
|
455
|
-
|
|
455
|
+
w--, w == 0 && (w = Math.pow(2, g), g++), delete O[y];
|
|
456
456
|
} else
|
|
457
|
-
for (
|
|
458
|
-
|
|
459
|
-
|
|
457
|
+
for (l = k[y], u = 0; u < g; u++)
|
|
458
|
+
d = d << 1 | l & 1, x == c - 1 ? (x = 0, _.push(p(d)), d = 0) : x++, l = l >> 1;
|
|
459
|
+
w--, w == 0 && (w = Math.pow(2, g), g++);
|
|
460
460
|
}
|
|
461
|
-
for (
|
|
462
|
-
|
|
461
|
+
for (l = 2, u = 0; u < g; u++)
|
|
462
|
+
d = d << 1 | l & 1, x == c - 1 ? (x = 0, _.push(p(d)), d = 0) : x++, l = l >> 1;
|
|
463
463
|
for (; ; )
|
|
464
|
-
if (
|
|
465
|
-
|
|
464
|
+
if (d = d << 1, x == c - 1) {
|
|
465
|
+
_.push(p(d));
|
|
466
466
|
break;
|
|
467
|
-
} else
|
|
468
|
-
return
|
|
467
|
+
} else x++;
|
|
468
|
+
return _.join("");
|
|
469
469
|
},
|
|
470
470
|
decompress: function(a) {
|
|
471
471
|
return a == null ? "" : a == "" ? null : f._decompress(a.length, 32768, function(c) {
|
|
@@ -473,51 +473,51 @@ ut.exports;
|
|
|
473
473
|
});
|
|
474
474
|
},
|
|
475
475
|
_decompress: function(a, c, p) {
|
|
476
|
-
var
|
|
476
|
+
var u = [], l = 4, k = 4, O = 3, B = "", I = [], y, w, T, g, _, d, x, m = { val: p(0), position: c, index: 1 };
|
|
477
477
|
for (y = 0; y < 3; y += 1)
|
|
478
|
-
|
|
479
|
-
for (
|
|
480
|
-
|
|
481
|
-
switch (
|
|
478
|
+
u[y] = y;
|
|
479
|
+
for (T = 0, _ = Math.pow(2, 2), d = 1; d != _; )
|
|
480
|
+
g = m.val & m.position, m.position >>= 1, m.position == 0 && (m.position = c, m.val = p(m.index++)), T |= (g > 0 ? 1 : 0) * d, d <<= 1;
|
|
481
|
+
switch (T) {
|
|
482
482
|
case 0:
|
|
483
|
-
for (
|
|
484
|
-
|
|
485
|
-
|
|
483
|
+
for (T = 0, _ = Math.pow(2, 8), d = 1; d != _; )
|
|
484
|
+
g = m.val & m.position, m.position >>= 1, m.position == 0 && (m.position = c, m.val = p(m.index++)), T |= (g > 0 ? 1 : 0) * d, d <<= 1;
|
|
485
|
+
x = n(T);
|
|
486
486
|
break;
|
|
487
487
|
case 1:
|
|
488
|
-
for (
|
|
489
|
-
|
|
490
|
-
|
|
488
|
+
for (T = 0, _ = Math.pow(2, 16), d = 1; d != _; )
|
|
489
|
+
g = m.val & m.position, m.position >>= 1, m.position == 0 && (m.position = c, m.val = p(m.index++)), T |= (g > 0 ? 1 : 0) * d, d <<= 1;
|
|
490
|
+
x = n(T);
|
|
491
491
|
break;
|
|
492
492
|
case 2:
|
|
493
493
|
return "";
|
|
494
494
|
}
|
|
495
|
-
for (
|
|
496
|
-
if (
|
|
495
|
+
for (u[3] = x, w = x, I.push(x); ; ) {
|
|
496
|
+
if (m.index > a)
|
|
497
497
|
return "";
|
|
498
|
-
for (
|
|
499
|
-
|
|
500
|
-
switch (
|
|
498
|
+
for (T = 0, _ = Math.pow(2, O), d = 1; d != _; )
|
|
499
|
+
g = m.val & m.position, m.position >>= 1, m.position == 0 && (m.position = c, m.val = p(m.index++)), T |= (g > 0 ? 1 : 0) * d, d <<= 1;
|
|
500
|
+
switch (x = T) {
|
|
501
501
|
case 0:
|
|
502
|
-
for (
|
|
503
|
-
|
|
504
|
-
|
|
502
|
+
for (T = 0, _ = Math.pow(2, 8), d = 1; d != _; )
|
|
503
|
+
g = m.val & m.position, m.position >>= 1, m.position == 0 && (m.position = c, m.val = p(m.index++)), T |= (g > 0 ? 1 : 0) * d, d <<= 1;
|
|
504
|
+
u[k++] = n(T), x = k - 1, l--;
|
|
505
505
|
break;
|
|
506
506
|
case 1:
|
|
507
|
-
for (
|
|
508
|
-
|
|
509
|
-
|
|
507
|
+
for (T = 0, _ = Math.pow(2, 16), d = 1; d != _; )
|
|
508
|
+
g = m.val & m.position, m.position >>= 1, m.position == 0 && (m.position = c, m.val = p(m.index++)), T |= (g > 0 ? 1 : 0) * d, d <<= 1;
|
|
509
|
+
u[k++] = n(T), x = k - 1, l--;
|
|
510
510
|
break;
|
|
511
511
|
case 2:
|
|
512
512
|
return I.join("");
|
|
513
513
|
}
|
|
514
|
-
if (
|
|
515
|
-
B =
|
|
516
|
-
else if (
|
|
517
|
-
B =
|
|
514
|
+
if (l == 0 && (l = Math.pow(2, O), O++), u[x])
|
|
515
|
+
B = u[x];
|
|
516
|
+
else if (x === k)
|
|
517
|
+
B = w + w.charAt(0);
|
|
518
518
|
else
|
|
519
519
|
return null;
|
|
520
|
-
I.push(B),
|
|
520
|
+
I.push(B), u[k++] = w + B.charAt(0), l--, w = B, l == 0 && (l = Math.pow(2, O), O++);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
};
|
|
@@ -526,96 +526,96 @@ ut.exports;
|
|
|
526
526
|
t != null ? t.exports = e : typeof angular < "u" && angular != null && angular.module("LZString", []).factory("LZString", function() {
|
|
527
527
|
return e;
|
|
528
528
|
});
|
|
529
|
-
})(
|
|
530
|
-
var
|
|
531
|
-
const
|
|
529
|
+
})(ft);
|
|
530
|
+
var sn = ft.exports;
|
|
531
|
+
const Yn = new TextEncoder(), Kn = new TextDecoder("utf-8", { ignoreBOM: !0 }), St = {
|
|
532
532
|
/* API */
|
|
533
|
-
encode: (t) =>
|
|
534
|
-
decode: (t) =>
|
|
535
|
-
},
|
|
533
|
+
encode: (t) => Yn.encode(t),
|
|
534
|
+
decode: (t) => Kn.decode(t)
|
|
535
|
+
}, rn = (() => {
|
|
536
536
|
const e = [..."0123456789abcdef"], n = new Array(256);
|
|
537
537
|
for (let s = 0; s < 256; s++)
|
|
538
538
|
n[s] = `${e[s >>> 4 & 15]}${e[s & 15]}`;
|
|
539
539
|
return n;
|
|
540
|
-
})(),
|
|
540
|
+
})(), Jn = (() => {
|
|
541
541
|
const t = {};
|
|
542
542
|
for (let e = 0; e < 256; e++) {
|
|
543
|
-
const n =
|
|
543
|
+
const n = rn[e], s = n[0], r = s.toUpperCase(), o = n[1], i = o.toUpperCase();
|
|
544
544
|
t[n] = e, t[`${s}${i}`] = e, t[`${r}${o}`] = e, t[`${r}${i}`] = e;
|
|
545
545
|
}
|
|
546
546
|
return t;
|
|
547
|
-
})(),
|
|
547
|
+
})(), Qn = (t) => !(t.length % 2 || !/^[a-fA-F0-9]*$/.test(t)), et = {
|
|
548
548
|
/* API */
|
|
549
549
|
encode: (t) => {
|
|
550
550
|
let e = "";
|
|
551
551
|
for (let n = 0, s = t.length; n < s; n++)
|
|
552
|
-
e +=
|
|
552
|
+
e += rn[t[n]];
|
|
553
553
|
return e;
|
|
554
554
|
},
|
|
555
|
-
encodeStr: (t) =>
|
|
555
|
+
encodeStr: (t) => et.encode(St.encode(t)),
|
|
556
556
|
decode: (t) => {
|
|
557
557
|
const e = t.length / 2, n = new Uint8Array(e);
|
|
558
558
|
for (let s = 0; s < e; s++)
|
|
559
|
-
n[s] =
|
|
559
|
+
n[s] = Jn[t.slice(s * 2, s * 2 + 2)];
|
|
560
560
|
return n;
|
|
561
561
|
},
|
|
562
|
-
decodeStr: (t) =>
|
|
563
|
-
is:
|
|
562
|
+
decodeStr: (t) => St.decode(et.decode(t)),
|
|
563
|
+
is: Qn
|
|
564
564
|
};
|
|
565
565
|
function Ae(t) {
|
|
566
566
|
if (!Number.isSafeInteger(t) || t < 0)
|
|
567
567
|
throw new Error(`positive integer expected, not ${t}`);
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function es(t) {
|
|
570
570
|
return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array";
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
if (!
|
|
572
|
+
function dt(t, ...e) {
|
|
573
|
+
if (!es(t))
|
|
574
574
|
throw new Error("Uint8Array expected");
|
|
575
575
|
if (e.length > 0 && !e.includes(t.length))
|
|
576
576
|
throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`);
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function tt(t, e = !0) {
|
|
579
579
|
if (t.destroyed)
|
|
580
580
|
throw new Error("Hash instance has been destroyed");
|
|
581
581
|
if (e && t.finished)
|
|
582
582
|
throw new Error("Hash#digest() has already been called");
|
|
583
583
|
}
|
|
584
|
-
function
|
|
585
|
-
|
|
584
|
+
function on(t, e) {
|
|
585
|
+
dt(t);
|
|
586
586
|
const n = e.outputLen;
|
|
587
587
|
if (t.length < n)
|
|
588
588
|
throw new Error(`digestInto() expects output buffer of length at least ${n}`);
|
|
589
589
|
}
|
|
590
|
-
const
|
|
591
|
-
function
|
|
592
|
-
return e ? { h: Number(t &
|
|
590
|
+
const Re = /* @__PURE__ */ BigInt(2 ** 32 - 1), Ot = /* @__PURE__ */ BigInt(32);
|
|
591
|
+
function At(t, e = !1) {
|
|
592
|
+
return e ? { h: Number(t & Re), l: Number(t >> Ot & Re) } : { h: Number(t >> Ot & Re) | 0, l: Number(t & Re) | 0 };
|
|
593
593
|
}
|
|
594
594
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
595
|
-
const
|
|
595
|
+
const ts = (t) => new Uint8Array(t.buffer, t.byteOffset, t.byteLength), Ue = (t) => new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4)), qe = (t, e) => t << 32 - e | t >>> e, j = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68, an = (t) => t << 24 & 4278190080 | t << 8 & 16711680 | t >>> 8 & 65280 | t >>> 24 & 255, ns = j ? (t) => t : (t) => an(t);
|
|
596
596
|
function H(t) {
|
|
597
597
|
for (let e = 0; e < t.length; e++)
|
|
598
|
-
t[e] =
|
|
598
|
+
t[e] = an(t[e]);
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function ss(t) {
|
|
601
601
|
if (typeof t != "string")
|
|
602
602
|
throw new Error(`utf8ToBytes expected string, got ${typeof t}`);
|
|
603
603
|
return new Uint8Array(new TextEncoder().encode(t));
|
|
604
604
|
}
|
|
605
|
-
function
|
|
606
|
-
return typeof t == "string" && (t =
|
|
605
|
+
function ht(t) {
|
|
606
|
+
return typeof t == "string" && (t = ss(t)), dt(t), t;
|
|
607
607
|
}
|
|
608
|
-
class
|
|
608
|
+
class rs {
|
|
609
609
|
// Safe version that clones internal state
|
|
610
610
|
clone() {
|
|
611
611
|
return this._cloneInto();
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
function
|
|
615
|
-
const e = (s, r) => t(r).update(
|
|
614
|
+
function os(t) {
|
|
615
|
+
const e = (s, r) => t(r).update(ht(s)).digest(), n = t({});
|
|
616
616
|
return e.outputLen = n.outputLen, e.blockLen = n.blockLen, e.create = (s) => t(s), e;
|
|
617
617
|
}
|
|
618
|
-
class
|
|
618
|
+
class is extends rs {
|
|
619
619
|
constructor(e, n, s = {}, r, o, i) {
|
|
620
620
|
if (super(), this.blockLen = e, this.outputLen = n, this.length = 0, this.pos = 0, this.finished = !1, this.destroyed = !1, Ae(e), Ae(n), Ae(r), n < 0 || n > r)
|
|
621
621
|
throw new Error("outputLen bigger than keyLen");
|
|
@@ -628,19 +628,19 @@ class os extends ss {
|
|
|
628
628
|
this.buffer32 = Ue(this.buffer = new Uint8Array(e));
|
|
629
629
|
}
|
|
630
630
|
update(e) {
|
|
631
|
-
|
|
631
|
+
tt(this);
|
|
632
632
|
const { blockLen: n, buffer: s, buffer32: r } = this;
|
|
633
|
-
e =
|
|
633
|
+
e = ht(e);
|
|
634
634
|
const o = e.length, i = e.byteOffset, f = e.buffer;
|
|
635
635
|
for (let a = 0; a < o; ) {
|
|
636
636
|
this.pos === n && (j || H(r), this.compress(r, 0, !1), j || H(r), this.pos = 0);
|
|
637
637
|
const c = Math.min(n - this.pos, o - a), p = i + a;
|
|
638
638
|
if (c === n && !(p % 4) && a + c < o) {
|
|
639
|
-
const
|
|
640
|
-
j || H(
|
|
641
|
-
for (let
|
|
642
|
-
this.length += n, this.compress(
|
|
643
|
-
j || H(
|
|
639
|
+
const u = new Uint32Array(f, p, Math.floor((o - a) / 4));
|
|
640
|
+
j || H(u);
|
|
641
|
+
for (let l = 0; a + n < o; l += r.length, a += n)
|
|
642
|
+
this.length += n, this.compress(u, l, !1);
|
|
643
|
+
j || H(u);
|
|
644
644
|
continue;
|
|
645
645
|
}
|
|
646
646
|
s.set(e.subarray(a, a + c), this.pos), this.pos += c, this.length += c, a += c;
|
|
@@ -648,11 +648,11 @@ class os extends ss {
|
|
|
648
648
|
return this;
|
|
649
649
|
}
|
|
650
650
|
digestInto(e) {
|
|
651
|
-
|
|
651
|
+
tt(this), on(e, this);
|
|
652
652
|
const { pos: n, buffer32: s } = this;
|
|
653
653
|
this.finished = !0, this.buffer.subarray(n).fill(0), j || H(s), this.compress(s, 0, !0), j || H(s);
|
|
654
654
|
const r = Ue(e);
|
|
655
|
-
this.get().forEach((o, i) => r[i] =
|
|
655
|
+
this.get().forEach((o, i) => r[i] = ns(o));
|
|
656
656
|
}
|
|
657
657
|
digest() {
|
|
658
658
|
const { buffer: e, outputLen: n } = this;
|
|
@@ -681,29 +681,29 @@ function oe(t, e, n, s, r) {
|
|
|
681
681
|
function ie(t, e, n, s, r) {
|
|
682
682
|
return t = t + e + r | 0, s = qe(s ^ t, 8), n = n + s | 0, e = qe(e ^ n, 7), { a: t, b: e, c: n, d: s };
|
|
683
683
|
}
|
|
684
|
-
function
|
|
685
|
-
let
|
|
686
|
-
for (let
|
|
687
|
-
({ a: r, b: a, c:
|
|
688
|
-
return { v0: r, v1: o, v2: i, v3: f, v4: a, v5: c, v6: p, v7:
|
|
684
|
+
function Et(t, e, n, s, r, o, i, f, a, c, p, u, l, k, O, B, I, y, w, T) {
|
|
685
|
+
let g = 0;
|
|
686
|
+
for (let _ = 0; _ < s; _++)
|
|
687
|
+
({ a: r, b: a, c: l, d: I } = oe(r, a, l, I, n[e + t[g++]])), { a: r, b: a, c: l, d: I } = ie(r, a, l, I, n[e + t[g++]]), { a: o, b: c, c: k, d: y } = oe(o, c, k, y, n[e + t[g++]]), { a: o, b: c, c: k, d: y } = ie(o, c, k, y, n[e + t[g++]]), { a: i, b: p, c: O, d: w } = oe(i, p, O, w, n[e + t[g++]]), { a: i, b: p, c: O, d: w } = ie(i, p, O, w, n[e + t[g++]]), { a: f, b: u, c: B, d: T } = oe(f, u, B, T, n[e + t[g++]]), { a: f, b: u, c: B, d: T } = ie(f, u, B, T, n[e + t[g++]]), { a: r, b: c, c: O, d: T } = oe(r, c, O, T, n[e + t[g++]]), { a: r, b: c, c: O, d: T } = ie(r, c, O, T, n[e + t[g++]]), { a: o, b: p, c: B, d: I } = oe(o, p, B, I, n[e + t[g++]]), { a: o, b: p, c: B, d: I } = ie(o, p, B, I, n[e + t[g++]]), { a: i, b: u, c: l, d: y } = oe(i, u, l, y, n[e + t[g++]]), { a: i, b: u, c: l, d: y } = ie(i, u, l, y, n[e + t[g++]]), { a: f, b: a, c: k, d: w } = oe(f, a, k, w, n[e + t[g++]]), { a: f, b: a, c: k, d: w } = ie(f, a, k, w, n[e + t[g++]]);
|
|
688
|
+
return { v0: r, v1: o, v2: i, v3: f, v4: a, v5: c, v6: p, v7: u, v8: l, v9: k, v10: O, v11: B, v12: I, v13: y, v14: w, v15: T };
|
|
689
689
|
}
|
|
690
|
-
const
|
|
690
|
+
const It = /* @__PURE__ */ (() => {
|
|
691
691
|
const t = Array.from({ length: 16 }, (s, r) => r), e = (s) => [2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8].map((r) => s[r]), n = [];
|
|
692
692
|
for (let s = 0, r = t; s < 7; s++, r = e(r))
|
|
693
693
|
n.push(...r);
|
|
694
694
|
return Uint8Array.from(n);
|
|
695
695
|
})();
|
|
696
|
-
class
|
|
696
|
+
class pt extends is {
|
|
697
697
|
constructor(e = {}, n = 0) {
|
|
698
698
|
if (super(64, e.dkLen === void 0 ? 32 : e.dkLen, {}, Number.MAX_SAFE_INTEGER, 0, 0), this.flags = 0, this.chunkPos = 0, this.chunksDone = 0, this.stack = [], this.posOut = 0, this.bufferOut32 = new Uint32Array(16), this.chunkOut = 0, this.enableXOF = !0, this.outputLen = e.dkLen === void 0 ? 32 : e.dkLen, Ae(this.outputLen), e.key !== void 0 && e.context !== void 0)
|
|
699
699
|
throw new Error("Blake3: only key or context can be specified at same time");
|
|
700
700
|
if (e.key !== void 0) {
|
|
701
|
-
const s =
|
|
701
|
+
const s = ht(e.key).slice();
|
|
702
702
|
if (s.length !== 32)
|
|
703
703
|
throw new Error("Blake3: key should be 32 byte");
|
|
704
704
|
this.IV = Ue(s), j || H(this.IV), this.flags = n | 16;
|
|
705
705
|
} else if (e.context !== void 0) {
|
|
706
|
-
const s = new
|
|
706
|
+
const s = new pt(
|
|
707
707
|
{ dkLen: 32 },
|
|
708
708
|
32
|
|
709
709
|
/* B3_Flags.DERIVE_KEY_CONTEXT */
|
|
@@ -711,7 +711,7 @@ class ht extends os {
|
|
|
711
711
|
this.IV = Ue(s), j || H(this.IV), this.flags = n | 64;
|
|
712
712
|
} else
|
|
713
713
|
this.IV = te.slice(), this.flags = n;
|
|
714
|
-
this.state = this.IV.slice(), this.bufferOut =
|
|
714
|
+
this.state = this.IV.slice(), this.bufferOut = ts(this.bufferOut32);
|
|
715
715
|
}
|
|
716
716
|
// Unused
|
|
717
717
|
get() {
|
|
@@ -720,8 +720,8 @@ class ht extends os {
|
|
|
720
720
|
set() {
|
|
721
721
|
}
|
|
722
722
|
b2Compress(e, n, s, r = 0) {
|
|
723
|
-
const { state: o, pos: i } = this, { h: f, l: a } =
|
|
724
|
-
o[0] = c ^ y, o[1] = p ^
|
|
723
|
+
const { state: o, pos: i } = this, { h: f, l: a } = At(BigInt(e), !0), { v0: c, v1: p, v2: u, v3: l, v4: k, v5: O, v6: B, v7: I, v8: y, v9: w, v10: T, v11: g, v12: _, v13: d, v14: x, v15: m } = Et(It, r, s, 7, o[0], o[1], o[2], o[3], o[4], o[5], o[6], o[7], te[0], te[1], te[2], te[3], f, a, i, n);
|
|
724
|
+
o[0] = c ^ y, o[1] = p ^ w, o[2] = u ^ T, o[3] = l ^ g, o[4] = k ^ _, o[5] = O ^ d, o[6] = B ^ x, o[7] = I ^ m;
|
|
725
725
|
}
|
|
726
726
|
compress(e, n = 0, s = !1) {
|
|
727
727
|
let r = this.flags;
|
|
@@ -746,10 +746,10 @@ class ht extends os {
|
|
|
746
746
|
}
|
|
747
747
|
// Same as b2Compress, but doesn't modify state and returns 16 u32 array (instead of 8)
|
|
748
748
|
b2CompressOut() {
|
|
749
|
-
const { state: e, pos: n, flags: s, buffer32: r, bufferOut32: o } = this, { h: i, l: f } =
|
|
749
|
+
const { state: e, pos: n, flags: s, buffer32: r, bufferOut32: o } = this, { h: i, l: f } = At(BigInt(this.chunkOut++));
|
|
750
750
|
j || H(r);
|
|
751
|
-
const { v0: a, v1: c, v2: p, v3:
|
|
752
|
-
o[0] = a ^ I, o[1] = c ^ y, o[2] = p ^
|
|
751
|
+
const { v0: a, v1: c, v2: p, v3: u, v4: l, v5: k, v6: O, v7: B, v8: I, v9: y, v10: w, v11: T, v12: g, v13: _, v14: d, v15: x } = Et(It, 0, r, 7, e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], te[0], te[1], te[2], te[3], f, i, n, s);
|
|
752
|
+
o[0] = a ^ I, o[1] = c ^ y, o[2] = p ^ w, o[3] = u ^ T, o[4] = l ^ g, o[5] = k ^ _, o[6] = O ^ d, o[7] = B ^ x, o[8] = e[0] ^ I, o[9] = e[1] ^ y, o[10] = e[2] ^ w, o[11] = e[3] ^ T, o[12] = e[4] ^ g, o[13] = e[5] ^ _, o[14] = e[6] ^ d, o[15] = e[7] ^ x, j || (H(r), H(o)), this.posOut = 0;
|
|
753
753
|
}
|
|
754
754
|
finish() {
|
|
755
755
|
if (this.finished)
|
|
@@ -759,7 +759,7 @@ class ht extends os {
|
|
|
759
759
|
this.stack.length ? (e |= 4, j || H(this.buffer32), this.compress(this.buffer32, 0, !0), j || H(this.buffer32), this.chunksDone = 0, this.pos = this.blockLen) : e |= (this.chunkPos ? 0 : 1) | 2, this.flags = e, this.b2CompressOut();
|
|
760
760
|
}
|
|
761
761
|
writeInto(e) {
|
|
762
|
-
|
|
762
|
+
tt(this, !1), dt(e), this.finish();
|
|
763
763
|
const { blockLen: n, bufferOut: s } = this;
|
|
764
764
|
for (let r = 0, o = e.length; r < o; ) {
|
|
765
765
|
this.posOut >= n && this.b2CompressOut();
|
|
@@ -777,7 +777,7 @@ class ht extends os {
|
|
|
777
777
|
return Ae(e), this.xofInto(new Uint8Array(e));
|
|
778
778
|
}
|
|
779
779
|
digestInto(e) {
|
|
780
|
-
if (
|
|
780
|
+
if (on(e, this), this.finished)
|
|
781
781
|
throw new Error("digest() was already called");
|
|
782
782
|
return this.enableXOF = !1, this.writeInto(e), this.destroy(), e;
|
|
783
783
|
}
|
|
@@ -785,11 +785,11 @@ class ht extends os {
|
|
|
785
785
|
return this.digestInto(new Uint8Array(this.outputLen));
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
|
-
const
|
|
788
|
+
const as = /* @__PURE__ */ os((t) => new pt(t)), nt = (t) => {
|
|
789
789
|
const e = `${t.id}|${t.title}|${t.iframe ? "Y" : "N"}|${t.closable ? "Y" : "N"}|${t.refreshable ? "Y" : "N"}`;
|
|
790
|
-
return
|
|
791
|
-
},
|
|
792
|
-
const n =
|
|
790
|
+
return sn.compressToEncodedURIComponent(e);
|
|
791
|
+
}, cs = (t) => {
|
|
792
|
+
const n = sn.decompressFromEncodedURIComponent(t).split("|");
|
|
793
793
|
return {
|
|
794
794
|
id: n[0],
|
|
795
795
|
title: n[1],
|
|
@@ -797,7 +797,7 @@ const is = /* @__PURE__ */ rs((t) => new ht(t)), tt = (t) => {
|
|
|
797
797
|
closable: n[3] === "Y",
|
|
798
798
|
refreshable: n[4] === "Y"
|
|
799
799
|
};
|
|
800
|
-
},
|
|
800
|
+
}, Bt = (t, e, n) => {
|
|
801
801
|
const s = [];
|
|
802
802
|
for (const o in n)
|
|
803
803
|
o.startsWith("__") || s.push({
|
|
@@ -808,8 +808,8 @@ const is = /* @__PURE__ */ rs((t) => new ht(t)), tt = (t) => {
|
|
|
808
808
|
let f = 0;
|
|
809
809
|
return o.key > i.key ? f = 1 : o.key < i.key && (f = -1), f;
|
|
810
810
|
});
|
|
811
|
-
const r =
|
|
812
|
-
return
|
|
811
|
+
const r = as(`${t}|${e}|${JSON.stringify(s)}`);
|
|
812
|
+
return et.encode(r);
|
|
813
813
|
};
|
|
814
814
|
function Xe(t) {
|
|
815
815
|
if (t === null || typeof t != "object")
|
|
@@ -817,15 +817,15 @@ function Xe(t) {
|
|
|
817
817
|
const e = Object.getPrototypeOf(t);
|
|
818
818
|
return e !== null && e !== Object.prototype && Object.getPrototypeOf(e) !== null || Symbol.iterator in t ? !1 : Symbol.toStringTag in t ? Object.prototype.toString.call(t) === "[object Module]" : !0;
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function st(t, e, n = ".", s) {
|
|
821
821
|
if (!Xe(e))
|
|
822
|
-
return
|
|
822
|
+
return st(t, {}, n, s);
|
|
823
823
|
const r = Object.assign({}, e);
|
|
824
824
|
for (const o in t) {
|
|
825
825
|
if (o === "__proto__" || o === "constructor")
|
|
826
826
|
continue;
|
|
827
827
|
const i = t[o];
|
|
828
|
-
i != null && (s && s(r, o, i, n) || (Array.isArray(i) && Array.isArray(r[o]) ? r[o] = [...i, ...r[o]] : Xe(i) && Xe(r[o]) ? r[o] =
|
|
828
|
+
i != null && (s && s(r, o, i, n) || (Array.isArray(i) && Array.isArray(r[o]) ? r[o] = [...i, ...r[o]] : Xe(i) && Xe(r[o]) ? r[o] = st(
|
|
829
829
|
i,
|
|
830
830
|
r[o],
|
|
831
831
|
(n ? `${n}.` : "") + o.toString(),
|
|
@@ -834,13 +834,13 @@ function nt(t, e, n = ".", s) {
|
|
|
834
834
|
}
|
|
835
835
|
return r;
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function ls(t) {
|
|
838
838
|
return (...e) => (
|
|
839
839
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
840
|
-
e.reduce((n, s) =>
|
|
840
|
+
e.reduce((n, s) => st(n, s, "", t), {})
|
|
841
841
|
);
|
|
842
842
|
}
|
|
843
|
-
const ne =
|
|
843
|
+
const ne = ls(), bt = (t) => {
|
|
844
844
|
const e = t.split("?");
|
|
845
845
|
if (e.length <= 1)
|
|
846
846
|
return {
|
|
@@ -859,7 +859,7 @@ const ne = cs(), pt = (t) => {
|
|
|
859
859
|
};
|
|
860
860
|
}
|
|
861
861
|
};
|
|
862
|
-
function
|
|
862
|
+
function us(t) {
|
|
863
863
|
return { all: t = t || /* @__PURE__ */ new Map(), on: function(e, n) {
|
|
864
864
|
var s = t.get(e);
|
|
865
865
|
s ? s.push(n) : t.set(e, [n]);
|
|
@@ -875,16 +875,16 @@ function ls(t) {
|
|
|
875
875
|
});
|
|
876
876
|
} };
|
|
877
877
|
}
|
|
878
|
-
const
|
|
878
|
+
const fs = us(), ds = {
|
|
879
879
|
install(t) {
|
|
880
|
-
t.provide("tabEmitter",
|
|
880
|
+
t.provide("tabEmitter", fs);
|
|
881
881
|
}
|
|
882
|
-
}, ge = () =>
|
|
882
|
+
}, ge = () => it("tabEmitter");
|
|
883
883
|
var Z = /* @__PURE__ */ ((t) => (t.PAGE_LOADING = "PAGE_LOADING", t.TAB_ACTIVE = "TAB_ACTIVE", t))(Z || {});
|
|
884
|
-
const
|
|
884
|
+
const hs = {
|
|
885
885
|
key: 0,
|
|
886
886
|
class: "stack-tab-loading-mask"
|
|
887
|
-
},
|
|
887
|
+
}, ps = /* @__PURE__ */ ee({
|
|
888
888
|
__name: "PageLoading",
|
|
889
889
|
props: {
|
|
890
890
|
tId: {}
|
|
@@ -893,29 +893,29 @@ const ds = {
|
|
|
893
893
|
const e = t, n = ge(), s = D(!1);
|
|
894
894
|
return n.on(Z.PAGE_LOADING, ({ tId: r, value: o }) => {
|
|
895
895
|
r === e.tId && (s.value = o);
|
|
896
|
-
}), (r, o) => s.value ? (
|
|
896
|
+
}), (r, o) => s.value ? (R(), V("div", hs, o[0] || (o[0] = [
|
|
897
897
|
Q("div", { class: "stack-tab-loading--spin turn" }, null, -1)
|
|
898
898
|
]))) : se("", !0);
|
|
899
899
|
}
|
|
900
|
-
}), M = D([]), Ge = [], N = D([]),
|
|
901
|
-
let
|
|
900
|
+
}), M = D([]), Ge = [], N = D([]), ae = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Set(), F = /* @__PURE__ */ new Set(), de = D(!0), Ye = "stacktab-active-tab", he = /* @__PURE__ */ new Map();
|
|
901
|
+
let Mt = !1, De = 0, Ct = !1;
|
|
902
902
|
const Ce = () => {
|
|
903
|
-
const t =
|
|
903
|
+
const t = lt(), e = ge(), {
|
|
904
904
|
t: n
|
|
905
|
-
} = Me(), s = () => M.value.length, r = (
|
|
906
|
-
for (const E of
|
|
907
|
-
const
|
|
908
|
-
id:
|
|
905
|
+
} = Me(), s = () => M.value.length, r = (v) => {
|
|
906
|
+
for (const E of v) {
|
|
907
|
+
const h = ne(E, {
|
|
908
|
+
id: Qe(),
|
|
909
909
|
refreshable: !0,
|
|
910
910
|
closable: !0,
|
|
911
911
|
iframe: !1
|
|
912
|
-
}), L =
|
|
912
|
+
}), L = nt(h), q = bt(h.path), $ = ne(h, {
|
|
913
913
|
closable: !0,
|
|
914
914
|
refreshable: !0,
|
|
915
915
|
iframe: !1
|
|
916
|
-
}),
|
|
917
|
-
id:
|
|
918
|
-
tabId:
|
|
916
|
+
}), ze = Bt(h.id, q.path, q.query), X = {
|
|
917
|
+
id: ze,
|
|
918
|
+
tabId: h.id,
|
|
919
919
|
path: q.path,
|
|
920
920
|
query: ne(q.query, {
|
|
921
921
|
__tab: L
|
|
@@ -923,289 +923,292 @@ const Ce = () => {
|
|
|
923
923
|
}, ye = new je();
|
|
924
924
|
ye.push(X);
|
|
925
925
|
const Y = {
|
|
926
|
-
id:
|
|
927
|
-
title:
|
|
928
|
-
closable:
|
|
929
|
-
refreshable:
|
|
930
|
-
iframe:
|
|
926
|
+
id: h.id,
|
|
927
|
+
title: $.title,
|
|
928
|
+
closable: $.closable,
|
|
929
|
+
refreshable: $.refreshable,
|
|
930
|
+
iframe: $.iframe,
|
|
931
931
|
active: !1,
|
|
932
932
|
pages: ye
|
|
933
933
|
};
|
|
934
|
-
N.value.push(
|
|
934
|
+
N.value.push(ze), Ge.push(Y), M.value.push({
|
|
935
935
|
...Y
|
|
936
936
|
});
|
|
937
937
|
}
|
|
938
|
-
const
|
|
939
|
-
if (
|
|
940
|
-
const E = JSON.parse(
|
|
941
|
-
let
|
|
938
|
+
const b = window.sessionStorage.getItem(Ye);
|
|
939
|
+
if (b != null) {
|
|
940
|
+
const E = JSON.parse(b, (L, q) => L === "pages" ? new je(q) : q);
|
|
941
|
+
let h = !1;
|
|
942
942
|
for (const L of M.value)
|
|
943
943
|
if (L.id === E.id) {
|
|
944
|
-
|
|
944
|
+
h = !0;
|
|
945
945
|
break;
|
|
946
946
|
}
|
|
947
|
-
|
|
947
|
+
h || M.value.push(E);
|
|
948
948
|
}
|
|
949
|
-
|
|
950
|
-
}, o = (
|
|
951
|
-
for (const
|
|
952
|
-
if (
|
|
949
|
+
Mt = !0;
|
|
950
|
+
}, o = (v) => {
|
|
951
|
+
for (const b of M.value)
|
|
952
|
+
if (b.id === v)
|
|
953
953
|
return !0;
|
|
954
954
|
return !1;
|
|
955
|
-
}, i = () => De <= 0 || De > 0 && De > M.value.length, f = (
|
|
956
|
-
M.value.push(
|
|
957
|
-
}), a = (
|
|
958
|
-
for (const
|
|
959
|
-
if (
|
|
960
|
-
return
|
|
955
|
+
}, i = () => De <= 0 || De > 0 && De > M.value.length, f = (v) => new Promise((b) => {
|
|
956
|
+
M.value.push(v), b(!0);
|
|
957
|
+
}), a = (v) => {
|
|
958
|
+
for (const b of M.value)
|
|
959
|
+
if (b.id === v)
|
|
960
|
+
return b;
|
|
961
961
|
return null;
|
|
962
|
-
}, c = (
|
|
963
|
-
let E,
|
|
964
|
-
if (
|
|
965
|
-
id:
|
|
962
|
+
}, c = (v, b) => {
|
|
963
|
+
let E, h;
|
|
964
|
+
if (v.query.__tab ? h = cs(v.query.__tab) : (h = {
|
|
965
|
+
id: Qe(),
|
|
966
966
|
title: n("VueStackTab.undefined"),
|
|
967
967
|
closable: !0,
|
|
968
968
|
refreshable: !0,
|
|
969
969
|
iframe: !1
|
|
970
|
-
},
|
|
970
|
+
}, v.query.__tab = nt(h)), F.has(h.id) || !b)
|
|
971
971
|
return;
|
|
972
|
-
const L =
|
|
972
|
+
const L = v.matched[v.matched.length - 1].path, q = v.path.endsWith("/") ? v.path.substring(0, v.path.length - 1) : v.path, $ = Bt(h.id, L === q ? q : v.path, v.query.valueOf());
|
|
973
|
+
if (Te.has($))
|
|
974
|
+
return ae.get($);
|
|
975
|
+
const ze = v.query.__src;
|
|
973
976
|
let X = null;
|
|
974
|
-
for (const Y of
|
|
975
|
-
Y.active = !1, Y.id ===
|
|
977
|
+
for (const Y of S(M))
|
|
978
|
+
Y.active = !1, Y.id === h.id && (X = Y);
|
|
976
979
|
const ye = {
|
|
977
|
-
id:
|
|
978
|
-
tabId:
|
|
979
|
-
path:
|
|
980
|
-
query:
|
|
980
|
+
id: $,
|
|
981
|
+
tabId: h.id,
|
|
982
|
+
path: v.path,
|
|
983
|
+
query: v.query
|
|
981
984
|
};
|
|
982
985
|
if (X === null) {
|
|
983
986
|
const Y = new je();
|
|
984
987
|
Y.push(ye), X = {
|
|
985
|
-
id:
|
|
986
|
-
title:
|
|
987
|
-
closable:
|
|
988
|
-
refreshable:
|
|
989
|
-
iframe:
|
|
990
|
-
url: decodeURIComponent(
|
|
988
|
+
id: h.id,
|
|
989
|
+
title: h.title,
|
|
990
|
+
closable: h.closable,
|
|
991
|
+
refreshable: h.refreshable,
|
|
992
|
+
iframe: h.iframe,
|
|
993
|
+
url: decodeURIComponent(ze),
|
|
991
994
|
active: !0,
|
|
992
995
|
pages: Y
|
|
993
996
|
}, f(X).then(() => {
|
|
994
997
|
e.emit(Z.TAB_ACTIVE, {
|
|
995
|
-
id:
|
|
998
|
+
id: h.id,
|
|
996
999
|
isRoute: !1
|
|
997
1000
|
});
|
|
998
1001
|
});
|
|
999
1002
|
} else
|
|
1000
1003
|
X.active = !0, (X.pages.isEmpty() || X.pages.peek().id !== ye.id) && X.pages.push(ye);
|
|
1001
|
-
return U(X),
|
|
1002
|
-
name:
|
|
1004
|
+
return U(X), ae.has($) ? E = ae.get($) : (E = /* @__PURE__ */ ee({
|
|
1005
|
+
name: $,
|
|
1003
1006
|
components: {
|
|
1004
|
-
DynamicComponent:
|
|
1007
|
+
DynamicComponent: b
|
|
1005
1008
|
},
|
|
1006
1009
|
emits: {
|
|
1007
1010
|
onLoaded: null
|
|
1008
1011
|
},
|
|
1009
|
-
setup(Y,
|
|
1012
|
+
setup(Y, yt) {
|
|
1010
1013
|
return Fe(() => {
|
|
1011
|
-
|
|
1012
|
-
}),
|
|
1013
|
-
|
|
1014
|
-
}),
|
|
1015
|
-
|
|
1014
|
+
yt.emit("onLoaded"), k($, ".cache-page-wrapper");
|
|
1015
|
+
}), gn(() => {
|
|
1016
|
+
u($);
|
|
1017
|
+
}), yn(() => {
|
|
1018
|
+
yt.emit("onLoaded"), p($), W(), F.clear(), b.props = null;
|
|
1016
1019
|
}), He(() => {
|
|
1017
|
-
|
|
1018
|
-
}), () =>
|
|
1020
|
+
l($);
|
|
1021
|
+
}), () => P("div", {
|
|
1019
1022
|
class: "cache-page-wrapper",
|
|
1020
|
-
id: "W-" +
|
|
1021
|
-
style: [
|
|
1022
|
-
}, [
|
|
1023
|
-
tId:
|
|
1024
|
-
pId:
|
|
1025
|
-
}, null),
|
|
1026
|
-
tId:
|
|
1023
|
+
id: "W-" + h.id,
|
|
1024
|
+
style: [Ct ? "overflow:auto" : "overflow:hidden"]
|
|
1025
|
+
}, [P(Zt("dynamic-component"), {
|
|
1026
|
+
tId: h.id,
|
|
1027
|
+
pId: $
|
|
1028
|
+
}, null), P(ps, {
|
|
1029
|
+
tId: h.id
|
|
1027
1030
|
}, null)]);
|
|
1028
1031
|
}
|
|
1029
|
-
}),
|
|
1030
|
-
}, p = (
|
|
1031
|
-
const
|
|
1032
|
-
if (
|
|
1033
|
-
for (const E of
|
|
1032
|
+
}), ae.set($, E)), A($), E;
|
|
1033
|
+
}, p = (v) => {
|
|
1034
|
+
const b = he.get(v);
|
|
1035
|
+
if (b) {
|
|
1036
|
+
for (const E of b.keys())
|
|
1034
1037
|
if (document.querySelector(E)) {
|
|
1035
|
-
const
|
|
1036
|
-
document.querySelector(E).scrollTop =
|
|
1038
|
+
const h = b.get(E);
|
|
1039
|
+
document.querySelector(E).scrollTop = h.top, document.querySelector(E).scrollLeft = h.left;
|
|
1037
1040
|
}
|
|
1038
1041
|
}
|
|
1039
|
-
},
|
|
1040
|
-
var E,
|
|
1041
|
-
const
|
|
1042
|
-
if (
|
|
1043
|
-
for (const L of
|
|
1042
|
+
}, u = (v) => {
|
|
1043
|
+
var E, h;
|
|
1044
|
+
const b = he.get(v);
|
|
1045
|
+
if (b)
|
|
1046
|
+
for (const L of b.keys()) {
|
|
1044
1047
|
const q = {
|
|
1045
1048
|
top: ((E = document.querySelector(L)) == null ? void 0 : E.scrollTop) ?? 0,
|
|
1046
|
-
left: ((
|
|
1049
|
+
left: ((h = document.querySelector(L)) == null ? void 0 : h.scrollLeft) ?? 0
|
|
1047
1050
|
};
|
|
1048
|
-
|
|
1051
|
+
b.set(L, q);
|
|
1049
1052
|
}
|
|
1050
|
-
},
|
|
1051
|
-
const
|
|
1052
|
-
|
|
1053
|
-
}, k = (
|
|
1054
|
-
he.has(
|
|
1055
|
-
const E = he.get(
|
|
1056
|
-
for (const
|
|
1057
|
-
E.set(
|
|
1053
|
+
}, l = (v) => {
|
|
1054
|
+
const b = he.get(v);
|
|
1055
|
+
b && (b.clear(), he.delete(v));
|
|
1056
|
+
}, k = (v, ...b) => {
|
|
1057
|
+
he.has(v) || he.set(v, /* @__PURE__ */ new Map());
|
|
1058
|
+
const E = he.get(v);
|
|
1059
|
+
for (const h of b)
|
|
1060
|
+
E.set(h, {
|
|
1058
1061
|
top: 0,
|
|
1059
1062
|
left: 0
|
|
1060
1063
|
});
|
|
1061
|
-
},
|
|
1062
|
-
const
|
|
1063
|
-
for (const E of
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
}, B = (
|
|
1067
|
-
let
|
|
1068
|
-
const E = a(
|
|
1069
|
-
for (let
|
|
1070
|
-
if (
|
|
1071
|
-
if (!
|
|
1072
|
-
return
|
|
1073
|
-
for (const L of
|
|
1074
|
-
|
|
1075
|
-
|
|
1064
|
+
}, O = (v) => {
|
|
1065
|
+
const b = a(v.id);
|
|
1066
|
+
for (const E of b.pages.list())
|
|
1067
|
+
m(E.id), z(E.id);
|
|
1068
|
+
W(), b.pages.clear();
|
|
1069
|
+
}, B = (v) => {
|
|
1070
|
+
let b = "";
|
|
1071
|
+
const E = a(v);
|
|
1072
|
+
for (let h = M.value.length - 1; h >= 0; h--)
|
|
1073
|
+
if (v === S(M)[h].id) {
|
|
1074
|
+
if (!S(M)[h].closable)
|
|
1075
|
+
return v;
|
|
1076
|
+
for (const L of S(M)[h].pages.list())
|
|
1077
|
+
m(L.id), z(L.id), F.add(S(M)[h].id);
|
|
1078
|
+
S(M)[h].pages.clear(), M.value.length > 1 && S(M)[h].active && (h === 0 ? b = S(M)[h + 1].id : b = S(M)[h - 1].id), S(M).splice(h, 1);
|
|
1076
1079
|
break;
|
|
1077
1080
|
}
|
|
1078
|
-
return
|
|
1079
|
-
id:
|
|
1080
|
-
}), E != null && E.active || (
|
|
1081
|
+
return b !== "" && e.emit(Z.TAB_ACTIVE, {
|
|
1082
|
+
id: b
|
|
1083
|
+
}), E != null && E.active || (W(), F.clear()), b;
|
|
1081
1084
|
}, I = () => {
|
|
1082
|
-
const
|
|
1083
|
-
for (let
|
|
1084
|
-
if (
|
|
1085
|
-
for (const E of
|
|
1086
|
-
|
|
1087
|
-
|
|
1085
|
+
const v = S(M);
|
|
1086
|
+
for (let b = v.length - 1; b >= 0; b--)
|
|
1087
|
+
if (v[b].closable) {
|
|
1088
|
+
for (const E of v[b].pages.list())
|
|
1089
|
+
m(E.id), z(E.id), F.add(v[b].id);
|
|
1090
|
+
S(M)[b].pages.clear(), S(M).splice(b, 1);
|
|
1088
1091
|
}
|
|
1089
|
-
for (const
|
|
1090
|
-
if (
|
|
1091
|
-
|
|
1092
|
+
for (const b of v)
|
|
1093
|
+
if (b.active) {
|
|
1094
|
+
W(), F.clear();
|
|
1092
1095
|
return;
|
|
1093
1096
|
}
|
|
1094
1097
|
e.emit(Z.TAB_ACTIVE, {
|
|
1095
|
-
id:
|
|
1098
|
+
id: v[v.length - 1].id
|
|
1096
1099
|
});
|
|
1097
|
-
}, y = (
|
|
1098
|
-
const
|
|
1100
|
+
}, y = (v) => {
|
|
1101
|
+
const b = S(M);
|
|
1099
1102
|
let E;
|
|
1100
|
-
for (let
|
|
1101
|
-
if (
|
|
1102
|
-
E =
|
|
1103
|
-
else if (
|
|
1104
|
-
for (const L of
|
|
1105
|
-
|
|
1106
|
-
|
|
1103
|
+
for (let h = b.length - 1; h >= 0; h--)
|
|
1104
|
+
if (b[h].id === v)
|
|
1105
|
+
E = b[h];
|
|
1106
|
+
else if (b[h].closable && b[h].id !== v) {
|
|
1107
|
+
for (const L of b[h].pages.list())
|
|
1108
|
+
m(L.id), z(L.id), F.add(b[h].id);
|
|
1109
|
+
S(M)[h].pages.clear(), S(M).splice(h, 1);
|
|
1107
1110
|
}
|
|
1108
|
-
E.active ? (
|
|
1109
|
-
id:
|
|
1111
|
+
E.active ? (W(), F.clear()) : e.emit(Z.TAB_ACTIVE, {
|
|
1112
|
+
id: v
|
|
1110
1113
|
});
|
|
1111
|
-
},
|
|
1112
|
-
let
|
|
1113
|
-
const E =
|
|
1114
|
-
for (let
|
|
1115
|
-
if (E[
|
|
1116
|
-
|
|
1114
|
+
}, w = (v) => {
|
|
1115
|
+
let b = -1;
|
|
1116
|
+
const E = S(M);
|
|
1117
|
+
for (let h = 0; h < E.length; h++)
|
|
1118
|
+
if (E[h].id === v) {
|
|
1119
|
+
b = h - 1;
|
|
1117
1120
|
break;
|
|
1118
1121
|
}
|
|
1119
|
-
for (let
|
|
1120
|
-
if (E[
|
|
1121
|
-
for (const L of E[
|
|
1122
|
-
|
|
1123
|
-
|
|
1122
|
+
for (let h = b; h >= 0; h--)
|
|
1123
|
+
if (E[h].closable) {
|
|
1124
|
+
for (const L of E[h].pages.list())
|
|
1125
|
+
m(L.id), z(L.id), F.add(E[h].id);
|
|
1126
|
+
S(M)[h].pages.clear(), S(M).splice(h, 1);
|
|
1124
1127
|
}
|
|
1125
|
-
for (const
|
|
1126
|
-
if (
|
|
1127
|
-
|
|
1128
|
+
for (const h of E)
|
|
1129
|
+
if (h.active) {
|
|
1130
|
+
W(), F.clear();
|
|
1128
1131
|
return;
|
|
1129
1132
|
}
|
|
1130
1133
|
e.emit(Z.TAB_ACTIVE, {
|
|
1131
1134
|
id: E[0].id
|
|
1132
1135
|
});
|
|
1133
|
-
},
|
|
1134
|
-
const
|
|
1135
|
-
let E =
|
|
1136
|
-
for (let
|
|
1137
|
-
if (
|
|
1138
|
-
E =
|
|
1136
|
+
}, T = (v) => {
|
|
1137
|
+
const b = S(M);
|
|
1138
|
+
let E = b.length;
|
|
1139
|
+
for (let h = 0; h < b.length; h++)
|
|
1140
|
+
if (b[h].id === v) {
|
|
1141
|
+
E = h + 1;
|
|
1139
1142
|
break;
|
|
1140
1143
|
}
|
|
1141
|
-
for (let
|
|
1142
|
-
if (
|
|
1143
|
-
for (const L of
|
|
1144
|
-
|
|
1145
|
-
|
|
1144
|
+
for (let h = b.length - 1; h >= E; h--)
|
|
1145
|
+
if (b[h].closable) {
|
|
1146
|
+
for (const L of b[h].pages.list())
|
|
1147
|
+
m(L.id), z(L.id), F.add(b[h].id);
|
|
1148
|
+
S(M)[h].pages.clear(), S(M).splice(h, 1);
|
|
1146
1149
|
}
|
|
1147
|
-
for (const
|
|
1148
|
-
if (
|
|
1149
|
-
|
|
1150
|
+
for (const h of b)
|
|
1151
|
+
if (h.active) {
|
|
1152
|
+
W(), F.clear();
|
|
1150
1153
|
return;
|
|
1151
1154
|
}
|
|
1152
1155
|
e.emit(Z.TAB_ACTIVE, {
|
|
1153
|
-
id:
|
|
1156
|
+
id: b[b.length - 1].id
|
|
1154
1157
|
});
|
|
1155
|
-
},
|
|
1156
|
-
var
|
|
1157
|
-
for (const E of
|
|
1158
|
-
if (E.id ===
|
|
1159
|
-
const
|
|
1158
|
+
}, g = (v) => {
|
|
1159
|
+
var b;
|
|
1160
|
+
for (const E of S(M))
|
|
1161
|
+
if (E.id === v) {
|
|
1162
|
+
const h = (b = E.pages.peek()) == null ? void 0 : b.id;
|
|
1160
1163
|
for (let L = N.value.length - 1; L >= 0; L--)
|
|
1161
|
-
if (N.value[L] ===
|
|
1162
|
-
N.value.splice(L, 1), E.active && (de.value = !1,
|
|
1164
|
+
if (N.value[L] === h) {
|
|
1165
|
+
N.value.splice(L, 1), E.active && (de.value = !1, le(() => {
|
|
1163
1166
|
de.value = !0;
|
|
1164
1167
|
}));
|
|
1165
1168
|
break;
|
|
1166
1169
|
}
|
|
1167
1170
|
break;
|
|
1168
1171
|
}
|
|
1169
|
-
},
|
|
1170
|
-
const
|
|
1171
|
-
M.value.forEach((
|
|
1172
|
-
|
|
1172
|
+
}, _ = () => {
|
|
1173
|
+
const v = /* @__PURE__ */ new Set();
|
|
1174
|
+
M.value.forEach((b) => {
|
|
1175
|
+
v.add(b.pages.peek().id);
|
|
1173
1176
|
});
|
|
1174
|
-
for (let
|
|
1175
|
-
const E = N.value[
|
|
1176
|
-
|
|
1177
|
+
for (let b = N.value.length - 1; b >= 0; b--) {
|
|
1178
|
+
const E = N.value[b];
|
|
1179
|
+
v.has(E) && N.value.splice(b, 1);
|
|
1177
1180
|
}
|
|
1178
|
-
|
|
1179
|
-
de.value = !1,
|
|
1181
|
+
le(() => {
|
|
1182
|
+
de.value = !1, le(() => {
|
|
1180
1183
|
setTimeout(() => {
|
|
1181
1184
|
de.value = !0;
|
|
1182
1185
|
}, 300);
|
|
1183
1186
|
});
|
|
1184
1187
|
});
|
|
1185
|
-
},
|
|
1186
|
-
|
|
1187
|
-
},
|
|
1188
|
-
|
|
1189
|
-
},
|
|
1190
|
-
|
|
1191
|
-
},
|
|
1192
|
-
for (let m = N.value.length - 1; m >= 0; m--)
|
|
1193
|
-
Re.has(N.value[m]) && T(N).splice(m, 1);
|
|
1194
|
-
Re.clear();
|
|
1195
|
-
}, G = (m) => {
|
|
1188
|
+
}, d = (v, b) => {
|
|
1189
|
+
ae.set(v, b);
|
|
1190
|
+
}, x = (v) => ae.get(v), m = (v) => {
|
|
1191
|
+
ae.delete(v);
|
|
1192
|
+
}, z = (v) => {
|
|
1193
|
+
Te.add(v);
|
|
1194
|
+
}, W = () => {
|
|
1196
1195
|
for (let v = N.value.length - 1; v >= 0; v--)
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1196
|
+
Te.has(N.value[v]) && (S(N).splice(v, 1), m(N.value[v]));
|
|
1197
|
+
Te.clear();
|
|
1198
|
+
}, G = (v) => {
|
|
1199
|
+
for (let b = N.value.length - 1; b >= 0; b--)
|
|
1200
|
+
v === N.value[b] && S(N).splice(b, 1);
|
|
1201
|
+
}, A = (v) => {
|
|
1202
|
+
new Set(N.value).has(v) || N.value.push(v);
|
|
1203
|
+
}, C = (v, b = !0) => {
|
|
1201
1204
|
e.emit("FORWARD");
|
|
1202
1205
|
for (let E = M.value.length - 1; E >= 0; E--) {
|
|
1203
|
-
const
|
|
1204
|
-
if (
|
|
1205
|
-
if (
|
|
1206
|
+
const h = M.value[E];
|
|
1207
|
+
if (h.id === v) {
|
|
1208
|
+
if (h.active)
|
|
1206
1209
|
break;
|
|
1207
|
-
if (
|
|
1208
|
-
const L =
|
|
1210
|
+
if (h.active = !0, U(h), b) {
|
|
1211
|
+
const L = h.pages.peek();
|
|
1209
1212
|
t.push({
|
|
1210
1213
|
path: L.path,
|
|
1211
1214
|
query: L.query
|
|
@@ -1214,79 +1217,82 @@ const Ce = () => {
|
|
|
1214
1217
|
} else
|
|
1215
1218
|
M.value[E].active = !1;
|
|
1216
1219
|
}
|
|
1217
|
-
}, U = (
|
|
1218
|
-
window.sessionStorage.setItem(
|
|
1220
|
+
}, U = (v) => {
|
|
1221
|
+
window.sessionStorage.setItem(Ye, JSON.stringify(v));
|
|
1219
1222
|
}, re = () => {
|
|
1220
|
-
|
|
1221
|
-
|
|
1223
|
+
window.sessionStorage.removeItem(Ye);
|
|
1224
|
+
}, Le = () => {
|
|
1225
|
+
de.value = !1, gt(), le(() => {
|
|
1226
|
+
S(M).push(...Ge), e.emit(Z.TAB_ACTIVE, {
|
|
1222
1227
|
id: Ge[0].id
|
|
1223
|
-
}),
|
|
1228
|
+
}), le(() => {
|
|
1224
1229
|
de.value = !0;
|
|
1225
1230
|
});
|
|
1226
1231
|
});
|
|
1227
|
-
},
|
|
1228
|
-
|
|
1232
|
+
}, gt = () => {
|
|
1233
|
+
S(M).splice(0), ae.clear(), Te.clear(), F.clear(), S(N).splice(0);
|
|
1229
1234
|
};
|
|
1230
1235
|
return {
|
|
1231
1236
|
tabs: M,
|
|
1232
1237
|
caches: N,
|
|
1233
1238
|
pageShown: de,
|
|
1234
|
-
initialed:
|
|
1235
|
-
setMaxSize: (
|
|
1236
|
-
De =
|
|
1239
|
+
initialed: Mt,
|
|
1240
|
+
setMaxSize: (v) => {
|
|
1241
|
+
De = v;
|
|
1237
1242
|
},
|
|
1238
1243
|
canAddTab: i,
|
|
1239
1244
|
initial: r,
|
|
1240
1245
|
size: s,
|
|
1241
1246
|
active: C,
|
|
1242
|
-
destroy:
|
|
1243
|
-
reset:
|
|
1247
|
+
destroy: gt,
|
|
1248
|
+
reset: Le,
|
|
1244
1249
|
addCache: A,
|
|
1245
1250
|
removeCache: G,
|
|
1246
1251
|
getTab: a,
|
|
1247
1252
|
addTab: f,
|
|
1248
1253
|
removeTab: B,
|
|
1249
1254
|
removeAllTabs: I,
|
|
1250
|
-
removeLeftTabs:
|
|
1251
|
-
removeRightTabs:
|
|
1255
|
+
removeLeftTabs: w,
|
|
1256
|
+
removeRightTabs: T,
|
|
1252
1257
|
removeOtherTabs: y,
|
|
1253
1258
|
hasTab: o,
|
|
1254
|
-
renewTab:
|
|
1259
|
+
renewTab: O,
|
|
1255
1260
|
addPage: c,
|
|
1256
|
-
addComponent:
|
|
1257
|
-
getComponent:
|
|
1258
|
-
removeComponent:
|
|
1259
|
-
markDeletableCache:
|
|
1260
|
-
removeDeletableCache:
|
|
1261
|
-
refreshTab:
|
|
1262
|
-
refreshAllTabs:
|
|
1261
|
+
addComponent: d,
|
|
1262
|
+
getComponent: x,
|
|
1263
|
+
removeComponent: m,
|
|
1264
|
+
markDeletableCache: z,
|
|
1265
|
+
removeDeletableCache: W,
|
|
1266
|
+
refreshTab: g,
|
|
1267
|
+
refreshAllTabs: _,
|
|
1263
1268
|
addPageScroller: k,
|
|
1264
|
-
setGlobalScroll: (
|
|
1265
|
-
|
|
1266
|
-
}
|
|
1269
|
+
setGlobalScroll: (v) => {
|
|
1270
|
+
Ct = v;
|
|
1271
|
+
},
|
|
1272
|
+
clearSession: re
|
|
1267
1273
|
};
|
|
1268
|
-
},
|
|
1274
|
+
}, bs = { class: "stack-tab__contextmenu-item" }, ce = /* @__PURE__ */ ee({
|
|
1269
1275
|
__name: "ContextMenuItem",
|
|
1270
1276
|
props: {
|
|
1271
1277
|
icon: {},
|
|
1272
1278
|
title: {}
|
|
1273
1279
|
},
|
|
1274
1280
|
setup(t) {
|
|
1275
|
-
return (e, n) => (
|
|
1281
|
+
return (e, n) => (R(), V("div", bs, [
|
|
1276
1282
|
Q("div", {
|
|
1277
|
-
class:
|
|
1283
|
+
class: fe(["stack-tab__contextmenu-icon", e.icon])
|
|
1278
1284
|
}, null, 2),
|
|
1279
1285
|
Q("div", {
|
|
1280
1286
|
style: { "margin-left": "8px" },
|
|
1281
1287
|
onContextmenu: n[0] || (n[0] = _e(() => {
|
|
1282
1288
|
}, ["prevent"]))
|
|
1283
|
-
},
|
|
1289
|
+
}, jt(e.title), 33)
|
|
1284
1290
|
]));
|
|
1285
1291
|
}
|
|
1286
|
-
}),
|
|
1292
|
+
}), vs = {
|
|
1287
1293
|
key: 0,
|
|
1288
1294
|
class: "divider div-transparent"
|
|
1289
|
-
},
|
|
1295
|
+
}, ms = /* @__PURE__ */ ee({
|
|
1290
1296
|
__name: "index",
|
|
1291
1297
|
props: {
|
|
1292
1298
|
index: {},
|
|
@@ -1307,75 +1313,75 @@ const Ce = () => {
|
|
|
1307
1313
|
removeRightTabs: a,
|
|
1308
1314
|
refreshTab: c,
|
|
1309
1315
|
refreshAllTabs: p,
|
|
1310
|
-
removeOtherTabs:
|
|
1316
|
+
removeOtherTabs: u
|
|
1311
1317
|
} = Ce();
|
|
1312
1318
|
return Fe(() => {
|
|
1313
|
-
const
|
|
1314
|
-
r.left +
|
|
1315
|
-
}), (
|
|
1319
|
+
const l = s.value ? s.value.clientWidth : 0, k = window.innerWidth;
|
|
1320
|
+
r.left + l > k && (r.left = k - l - 5);
|
|
1321
|
+
}), (l, k) => (R(), V("div", {
|
|
1316
1322
|
ref_key: "contextmenu",
|
|
1317
1323
|
ref: s,
|
|
1318
1324
|
class: "stack-tab__contextmenu",
|
|
1319
|
-
style:
|
|
1325
|
+
style: at({
|
|
1320
1326
|
left: `${r.left}px`,
|
|
1321
1327
|
top: `${r.top}px`,
|
|
1322
|
-
"z-index":
|
|
1328
|
+
"z-index": S(nn)(".stack-tab,.stack-tab *")
|
|
1323
1329
|
})
|
|
1324
1330
|
}, [
|
|
1325
|
-
|
|
1331
|
+
P(ce, {
|
|
1326
1332
|
icon: "stack-tab__icon-reload svg-mask",
|
|
1327
|
-
title:
|
|
1328
|
-
onClick: k[0] || (k[0] = (
|
|
1333
|
+
title: S(n)("VueStackTab.reload"),
|
|
1334
|
+
onClick: k[0] || (k[0] = (O) => S(c)(l.tabItem.id))
|
|
1329
1335
|
}, null, 8, ["title"]),
|
|
1330
|
-
|
|
1336
|
+
P(ce, {
|
|
1331
1337
|
icon: "stack-tab__icon-reload-all svg-mask",
|
|
1332
|
-
title:
|
|
1333
|
-
onClick:
|
|
1338
|
+
title: S(n)("VueStackTab.reloadAll"),
|
|
1339
|
+
onClick: S(p)
|
|
1334
1340
|
}, null, 8, ["title", "onClick"]),
|
|
1335
|
-
|
|
1341
|
+
P(ce, {
|
|
1336
1342
|
icon: "stack-tab__icon-close svg-mask",
|
|
1337
|
-
title:
|
|
1338
|
-
disabled:
|
|
1339
|
-
onClick: k[1] || (k[1] = (
|
|
1343
|
+
title: S(n)("VueStackTab.close"),
|
|
1344
|
+
disabled: l.tabItem.closable ? null : "disabled",
|
|
1345
|
+
onClick: k[1] || (k[1] = (O) => S(o)(l.tabItem.id))
|
|
1340
1346
|
}, null, 8, ["title", "disabled"]),
|
|
1341
|
-
|
|
1347
|
+
P(ce, {
|
|
1342
1348
|
icon: "stack-tab__icon-close-lefts svg-mask",
|
|
1343
|
-
title:
|
|
1344
|
-
disabled:
|
|
1345
|
-
onClick: k[2] || (k[2] = (
|
|
1349
|
+
title: S(n)("VueStackTab.closeLeft"),
|
|
1350
|
+
disabled: l.index <= 0 ? "disabled" : null,
|
|
1351
|
+
onClick: k[2] || (k[2] = (O) => S(f)(l.tabItem.id))
|
|
1346
1352
|
}, null, 8, ["title", "disabled"]),
|
|
1347
|
-
|
|
1353
|
+
P(ce, {
|
|
1348
1354
|
icon: "stack-tab__icon-close-rights svg-mask",
|
|
1349
|
-
title:
|
|
1350
|
-
disabled:
|
|
1351
|
-
onClick: k[3] || (k[3] = (
|
|
1355
|
+
title: S(n)("VueStackTab.closeRight"),
|
|
1356
|
+
disabled: l.index >= l.max - 1 ? "disabled" : null,
|
|
1357
|
+
onClick: k[3] || (k[3] = (O) => S(a)(l.tabItem.id))
|
|
1352
1358
|
}, null, 8, ["title", "disabled"]),
|
|
1353
|
-
|
|
1359
|
+
P(ce, {
|
|
1354
1360
|
icon: "stack-tab__icon-close-others svg-mask",
|
|
1355
|
-
title:
|
|
1356
|
-
onClick: k[4] || (k[4] = (
|
|
1361
|
+
title: S(n)("VueStackTab.closeOthers"),
|
|
1362
|
+
onClick: k[4] || (k[4] = (O) => S(u)(l.tabItem.id))
|
|
1357
1363
|
}, null, 8, ["title"]),
|
|
1358
|
-
|
|
1364
|
+
P(ce, {
|
|
1359
1365
|
icon: "stack-tab__icon-close-all svg-mask",
|
|
1360
|
-
title:
|
|
1361
|
-
onClick:
|
|
1366
|
+
title: S(n)("VueStackTab.closeAll"),
|
|
1367
|
+
onClick: S(i)
|
|
1362
1368
|
}, null, 8, ["title", "onClick"]),
|
|
1363
|
-
|
|
1364
|
-
(
|
|
1369
|
+
l.contextMenu !== void 0 && l.contextMenu.length > 0 ? (R(), V("div", vs)) : se("", !0),
|
|
1370
|
+
(R(!0), V(Ze, null, ct(l.contextMenu, (O, B) => (R(), me(ce, {
|
|
1365
1371
|
key: B,
|
|
1366
|
-
icon:
|
|
1367
|
-
title:
|
|
1368
|
-
disabled:
|
|
1369
|
-
onClick: (I) => !
|
|
1372
|
+
icon: O.icon,
|
|
1373
|
+
title: O.title,
|
|
1374
|
+
disabled: O.disabled(l.tabItem) ? "disabled" : null,
|
|
1375
|
+
onClick: (I) => !O.disabled && O.callback(l.tabItem.id)
|
|
1370
1376
|
}, null, 8, ["icon", "title", "disabled", "onClick"]))), 128))
|
|
1371
1377
|
], 4));
|
|
1372
1378
|
}
|
|
1373
|
-
}),
|
|
1379
|
+
}), gs = (t, e) => {
|
|
1374
1380
|
const n = t.__vccOpts || t;
|
|
1375
1381
|
for (const [s, r] of e)
|
|
1376
1382
|
n[s] = r;
|
|
1377
1383
|
return n;
|
|
1378
|
-
},
|
|
1384
|
+
}, ys = /* @__PURE__ */ gs(ms, [["__scopeId", "data-v-d598be6e"]]), ws = () => {
|
|
1379
1385
|
const t = Ie({
|
|
1380
1386
|
item: {},
|
|
1381
1387
|
index: -1,
|
|
@@ -1389,7 +1395,7 @@ const Ce = () => {
|
|
|
1389
1395
|
document.removeEventListener("click", s);
|
|
1390
1396
|
});
|
|
1391
1397
|
const n = async (r, o, i, f) => {
|
|
1392
|
-
e.value = !1, await
|
|
1398
|
+
e.value = !1, await le(() => {
|
|
1393
1399
|
const { clientY: a, clientX: c } = r;
|
|
1394
1400
|
e.value = !0, Object.assign(t, { item: o, index: i, top: a, left: c, max: f });
|
|
1395
1401
|
});
|
|
@@ -1401,7 +1407,7 @@ const Ce = () => {
|
|
|
1401
1407
|
contextMenuData: t,
|
|
1402
1408
|
showContextMenu: n
|
|
1403
1409
|
};
|
|
1404
|
-
},
|
|
1410
|
+
}, ks = { class: "stack-tab__item-title" }, _s = ["title"], xs = ["title"], Ts = /* @__PURE__ */ ee({
|
|
1405
1411
|
__name: "TabHeaderItem",
|
|
1406
1412
|
props: {
|
|
1407
1413
|
item: {}
|
|
@@ -1409,63 +1415,63 @@ const Ce = () => {
|
|
|
1409
1415
|
emits: ["close", "active"],
|
|
1410
1416
|
setup(t, { emit: e }) {
|
|
1411
1417
|
const n = e, s = ge(), { t: r } = Me(), o = D(), i = t;
|
|
1412
|
-
s.on(Z.TAB_ACTIVE, ({ id: p, isRoute:
|
|
1413
|
-
i.item.id === p && c(
|
|
1418
|
+
s.on(Z.TAB_ACTIVE, ({ id: p, isRoute: u }) => {
|
|
1419
|
+
i.item.id === p && c(u);
|
|
1414
1420
|
});
|
|
1415
1421
|
const f = we(() => i.item.title || r("undefined")), a = () => {
|
|
1416
1422
|
n("close", i.item);
|
|
1417
1423
|
}, c = (p = !0) => {
|
|
1418
1424
|
n("active", i.item, o, p);
|
|
1419
1425
|
};
|
|
1420
|
-
return (p,
|
|
1426
|
+
return (p, u) => (R(), V("li", {
|
|
1421
1427
|
ref_key: "curtab",
|
|
1422
1428
|
ref: o,
|
|
1423
|
-
class:
|
|
1429
|
+
class: fe(["stack-tab__item", {
|
|
1424
1430
|
"is-active": p.item.active,
|
|
1425
1431
|
"is-icon": p.item.closable
|
|
1426
1432
|
}]),
|
|
1427
|
-
onClick:
|
|
1433
|
+
onClick: u[0] || (u[0] = (l) => c(!0))
|
|
1428
1434
|
}, [
|
|
1429
|
-
Q("div",
|
|
1435
|
+
Q("div", ks, [
|
|
1430
1436
|
Q("div", {
|
|
1431
1437
|
class: "stack-tab__item-title-content",
|
|
1432
1438
|
title: f.value
|
|
1433
|
-
},
|
|
1439
|
+
}, jt(f.value), 9, _s)
|
|
1434
1440
|
]),
|
|
1435
|
-
p.item.closable ? (
|
|
1441
|
+
p.item.closable ? (R(), V("div", {
|
|
1436
1442
|
key: 0,
|
|
1437
1443
|
class: "stack-tab__icon-close-fill stack-tab__item-button",
|
|
1438
|
-
title:
|
|
1444
|
+
title: S(r)("VueStackTab.close"),
|
|
1439
1445
|
onClick: _e(a, ["stop"])
|
|
1440
|
-
}, null, 8,
|
|
1446
|
+
}, null, 8, xs)) : se("", !0)
|
|
1441
1447
|
], 2));
|
|
1442
1448
|
}
|
|
1443
1449
|
});
|
|
1444
|
-
var be = [],
|
|
1450
|
+
var be = [], Ss = function() {
|
|
1445
1451
|
return be.some(function(t) {
|
|
1446
1452
|
return t.activeTargets.length > 0;
|
|
1447
1453
|
});
|
|
1448
|
-
},
|
|
1454
|
+
}, Os = function() {
|
|
1449
1455
|
return be.some(function(t) {
|
|
1450
1456
|
return t.skippedTargets.length > 0;
|
|
1451
1457
|
});
|
|
1452
|
-
},
|
|
1458
|
+
}, Lt = "ResizeObserver loop completed with undelivered notifications.", As = function() {
|
|
1453
1459
|
var t;
|
|
1454
1460
|
typeof ErrorEvent == "function" ? t = new ErrorEvent("error", {
|
|
1455
|
-
message:
|
|
1456
|
-
}) : (t = document.createEvent("Event"), t.initEvent("error", !1, !1), t.message =
|
|
1461
|
+
message: Lt
|
|
1462
|
+
}) : (t = document.createEvent("Event"), t.initEvent("error", !1, !1), t.message = Lt), window.dispatchEvent(t);
|
|
1457
1463
|
}, Be;
|
|
1458
1464
|
(function(t) {
|
|
1459
1465
|
t.BORDER_BOX = "border-box", t.CONTENT_BOX = "content-box", t.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
1460
1466
|
})(Be || (Be = {}));
|
|
1461
1467
|
var ve = function(t) {
|
|
1462
1468
|
return Object.freeze(t);
|
|
1463
|
-
},
|
|
1469
|
+
}, Es = /* @__PURE__ */ function() {
|
|
1464
1470
|
function t(e, n) {
|
|
1465
1471
|
this.inlineSize = e, this.blockSize = n, ve(this);
|
|
1466
1472
|
}
|
|
1467
1473
|
return t;
|
|
1468
|
-
}(),
|
|
1474
|
+
}(), cn = function() {
|
|
1469
1475
|
function t(e, n, s, r) {
|
|
1470
1476
|
return this.x = e, this.y = n, this.width = s, this.height = r, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, ve(this);
|
|
1471
1477
|
}
|
|
@@ -1475,22 +1481,22 @@ var ve = function(t) {
|
|
|
1475
1481
|
}, t.fromRect = function(e) {
|
|
1476
1482
|
return new t(e.x, e.y, e.width, e.height);
|
|
1477
1483
|
}, t;
|
|
1478
|
-
}(),
|
|
1484
|
+
}(), vt = function(t) {
|
|
1479
1485
|
return t instanceof SVGElement && "getBBox" in t;
|
|
1480
|
-
},
|
|
1481
|
-
if (
|
|
1486
|
+
}, ln = function(t) {
|
|
1487
|
+
if (vt(t)) {
|
|
1482
1488
|
var e = t.getBBox(), n = e.width, s = e.height;
|
|
1483
1489
|
return !n && !s;
|
|
1484
1490
|
}
|
|
1485
1491
|
var r = t, o = r.offsetWidth, i = r.offsetHeight;
|
|
1486
1492
|
return !(o || i || t.getClientRects().length);
|
|
1487
|
-
},
|
|
1493
|
+
}, zt = function(t) {
|
|
1488
1494
|
var e;
|
|
1489
1495
|
if (t instanceof Element)
|
|
1490
1496
|
return !0;
|
|
1491
1497
|
var n = (e = t == null ? void 0 : t.ownerDocument) === null || e === void 0 ? void 0 : e.defaultView;
|
|
1492
1498
|
return !!(n && t instanceof n.Element);
|
|
1493
|
-
},
|
|
1499
|
+
}, Is = function(t) {
|
|
1494
1500
|
switch (t.tagName) {
|
|
1495
1501
|
case "INPUT":
|
|
1496
1502
|
if (t.type !== "image")
|
|
@@ -1505,29 +1511,29 @@ var ve = function(t) {
|
|
|
1505
1511
|
return !0;
|
|
1506
1512
|
}
|
|
1507
1513
|
return !1;
|
|
1508
|
-
}, Ee = typeof window < "u" ? window : {}, $e = /* @__PURE__ */ new WeakMap(),
|
|
1514
|
+
}, Ee = typeof window < "u" ? window : {}, $e = /* @__PURE__ */ new WeakMap(), Rt = /auto|scroll/, Bs = /^tb|vertical/, Ms = /msie|trident/i.test(Ee.navigator && Ee.navigator.userAgent), K = function(t) {
|
|
1509
1515
|
return parseFloat(t || "0");
|
|
1510
1516
|
}, ke = function(t, e, n) {
|
|
1511
|
-
return t === void 0 && (t = 0), e === void 0 && (e = 0), n === void 0 && (n = !1), new
|
|
1512
|
-
},
|
|
1517
|
+
return t === void 0 && (t = 0), e === void 0 && (e = 0), n === void 0 && (n = !1), new Es((n ? e : t) || 0, (n ? t : e) || 0);
|
|
1518
|
+
}, Dt = ve({
|
|
1513
1519
|
devicePixelContentBoxSize: ke(),
|
|
1514
1520
|
borderBoxSize: ke(),
|
|
1515
1521
|
contentBoxSize: ke(),
|
|
1516
|
-
contentRect: new
|
|
1517
|
-
}),
|
|
1522
|
+
contentRect: new cn(0, 0, 0, 0)
|
|
1523
|
+
}), un = function(t, e) {
|
|
1518
1524
|
if (e === void 0 && (e = !1), $e.has(t) && !e)
|
|
1519
1525
|
return $e.get(t);
|
|
1520
|
-
if (
|
|
1521
|
-
return $e.set(t,
|
|
1522
|
-
var n = getComputedStyle(t), s =
|
|
1523
|
-
devicePixelContentBoxSize: ke(Math.round(
|
|
1524
|
-
borderBoxSize: ke(
|
|
1525
|
-
contentBoxSize: ke(
|
|
1526
|
-
contentRect: new
|
|
1526
|
+
if (ln(t))
|
|
1527
|
+
return $e.set(t, Dt), Dt;
|
|
1528
|
+
var n = getComputedStyle(t), s = vt(t) && t.ownerSVGElement && t.getBBox(), r = !Ms && n.boxSizing === "border-box", o = Bs.test(n.writingMode || ""), i = !s && Rt.test(n.overflowY || ""), f = !s && Rt.test(n.overflowX || ""), a = s ? 0 : K(n.paddingTop), c = s ? 0 : K(n.paddingRight), p = s ? 0 : K(n.paddingBottom), u = s ? 0 : K(n.paddingLeft), l = s ? 0 : K(n.borderTopWidth), k = s ? 0 : K(n.borderRightWidth), O = s ? 0 : K(n.borderBottomWidth), B = s ? 0 : K(n.borderLeftWidth), I = u + c, y = a + p, w = B + k, T = l + O, g = f ? t.offsetHeight - T - t.clientHeight : 0, _ = i ? t.offsetWidth - w - t.clientWidth : 0, d = r ? I + w : 0, x = r ? y + T : 0, m = s ? s.width : K(n.width) - d - _, z = s ? s.height : K(n.height) - x - g, W = m + I + _ + w, G = z + y + g + T, A = ve({
|
|
1529
|
+
devicePixelContentBoxSize: ke(Math.round(m * devicePixelRatio), Math.round(z * devicePixelRatio), o),
|
|
1530
|
+
borderBoxSize: ke(W, G, o),
|
|
1531
|
+
contentBoxSize: ke(m, z, o),
|
|
1532
|
+
contentRect: new cn(u, a, m, z)
|
|
1527
1533
|
});
|
|
1528
1534
|
return $e.set(t, A), A;
|
|
1529
|
-
},
|
|
1530
|
-
var s =
|
|
1535
|
+
}, fn = function(t, e, n) {
|
|
1536
|
+
var s = un(t, n), r = s.borderBoxSize, o = s.contentBoxSize, i = s.devicePixelContentBoxSize;
|
|
1531
1537
|
switch (e) {
|
|
1532
1538
|
case Be.DEVICE_PIXEL_CONTENT_BOX:
|
|
1533
1539
|
return i;
|
|
@@ -1536,26 +1542,26 @@ var ve = function(t) {
|
|
|
1536
1542
|
default:
|
|
1537
1543
|
return o;
|
|
1538
1544
|
}
|
|
1539
|
-
},
|
|
1545
|
+
}, Cs = /* @__PURE__ */ function() {
|
|
1540
1546
|
function t(e) {
|
|
1541
|
-
var n =
|
|
1547
|
+
var n = un(e);
|
|
1542
1548
|
this.target = e, this.contentRect = n.contentRect, this.borderBoxSize = ve([n.borderBoxSize]), this.contentBoxSize = ve([n.contentBoxSize]), this.devicePixelContentBoxSize = ve([n.devicePixelContentBoxSize]);
|
|
1543
1549
|
}
|
|
1544
1550
|
return t;
|
|
1545
|
-
}(),
|
|
1546
|
-
if (
|
|
1551
|
+
}(), dn = function(t) {
|
|
1552
|
+
if (ln(t))
|
|
1547
1553
|
return 1 / 0;
|
|
1548
1554
|
for (var e = 0, n = t.parentNode; n; )
|
|
1549
1555
|
e += 1, n = n.parentNode;
|
|
1550
1556
|
return e;
|
|
1551
|
-
},
|
|
1557
|
+
}, Ls = function() {
|
|
1552
1558
|
var t = 1 / 0, e = [];
|
|
1553
1559
|
be.forEach(function(i) {
|
|
1554
1560
|
if (i.activeTargets.length !== 0) {
|
|
1555
1561
|
var f = [];
|
|
1556
1562
|
i.activeTargets.forEach(function(c) {
|
|
1557
|
-
var p = new
|
|
1558
|
-
f.push(p), c.lastReportedSize =
|
|
1563
|
+
var p = new Cs(c.target), u = dn(c.target);
|
|
1564
|
+
f.push(p), c.lastReportedSize = fn(c.target, c.observedBox), u < t && (t = u);
|
|
1559
1565
|
}), e.push(function() {
|
|
1560
1566
|
i.callback.call(i.observer, f, i.observer);
|
|
1561
1567
|
}), i.activeTargets.splice(0, i.activeTargets.length);
|
|
@@ -1566,38 +1572,38 @@ var ve = function(t) {
|
|
|
1566
1572
|
r();
|
|
1567
1573
|
}
|
|
1568
1574
|
return t;
|
|
1569
|
-
},
|
|
1575
|
+
}, $t = function(t) {
|
|
1570
1576
|
be.forEach(function(n) {
|
|
1571
1577
|
n.activeTargets.splice(0, n.activeTargets.length), n.skippedTargets.splice(0, n.skippedTargets.length), n.observationTargets.forEach(function(r) {
|
|
1572
|
-
r.isActive() && (
|
|
1578
|
+
r.isActive() && (dn(r.target) > t ? n.activeTargets.push(r) : n.skippedTargets.push(r));
|
|
1573
1579
|
});
|
|
1574
1580
|
});
|
|
1575
|
-
},
|
|
1581
|
+
}, zs = function() {
|
|
1576
1582
|
var t = 0;
|
|
1577
|
-
for (
|
|
1578
|
-
t =
|
|
1579
|
-
return
|
|
1580
|
-
},
|
|
1581
|
-
return
|
|
1583
|
+
for ($t(t); Ss(); )
|
|
1584
|
+
t = Ls(), $t(t);
|
|
1585
|
+
return Os() && As(), t > 0;
|
|
1586
|
+
}, Ke, hn = [], Rs = function() {
|
|
1587
|
+
return hn.splice(0).forEach(function(t) {
|
|
1582
1588
|
return t();
|
|
1583
1589
|
});
|
|
1584
|
-
},
|
|
1585
|
-
if (!
|
|
1590
|
+
}, Ds = function(t) {
|
|
1591
|
+
if (!Ke) {
|
|
1586
1592
|
var e = 0, n = document.createTextNode(""), s = { characterData: !0 };
|
|
1587
1593
|
new MutationObserver(function() {
|
|
1588
|
-
return
|
|
1589
|
-
}).observe(n, s),
|
|
1594
|
+
return Rs();
|
|
1595
|
+
}).observe(n, s), Ke = function() {
|
|
1590
1596
|
n.textContent = "".concat(e ? e-- : e++);
|
|
1591
1597
|
};
|
|
1592
1598
|
}
|
|
1593
|
-
|
|
1594
|
-
},
|
|
1595
|
-
|
|
1599
|
+
hn.push(t), Ke();
|
|
1600
|
+
}, $s = function(t) {
|
|
1601
|
+
Ds(function() {
|
|
1596
1602
|
requestAnimationFrame(t);
|
|
1597
1603
|
});
|
|
1598
|
-
}, Ve = 0,
|
|
1604
|
+
}, Ve = 0, Ns = function() {
|
|
1599
1605
|
return !!Ve;
|
|
1600
|
-
},
|
|
1606
|
+
}, Ps = 250, Ws = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, Nt = [
|
|
1601
1607
|
"resize",
|
|
1602
1608
|
"load",
|
|
1603
1609
|
"transitionend",
|
|
@@ -1612,9 +1618,9 @@ var ve = function(t) {
|
|
|
1612
1618
|
"mouseout",
|
|
1613
1619
|
"blur",
|
|
1614
1620
|
"focus"
|
|
1615
|
-
],
|
|
1621
|
+
], Pt = function(t) {
|
|
1616
1622
|
return t === void 0 && (t = 0), Date.now() + t;
|
|
1617
|
-
},
|
|
1623
|
+
}, Je = !1, Vs = function() {
|
|
1618
1624
|
function t() {
|
|
1619
1625
|
var e = this;
|
|
1620
1626
|
this.stopped = !0, this.listener = function() {
|
|
@@ -1623,15 +1629,15 @@ var ve = function(t) {
|
|
|
1623
1629
|
}
|
|
1624
1630
|
return t.prototype.run = function(e) {
|
|
1625
1631
|
var n = this;
|
|
1626
|
-
if (e === void 0 && (e =
|
|
1627
|
-
|
|
1628
|
-
var s =
|
|
1629
|
-
|
|
1632
|
+
if (e === void 0 && (e = Ps), !Je) {
|
|
1633
|
+
Je = !0;
|
|
1634
|
+
var s = Pt(e);
|
|
1635
|
+
$s(function() {
|
|
1630
1636
|
var r = !1;
|
|
1631
1637
|
try {
|
|
1632
|
-
r =
|
|
1638
|
+
r = zs();
|
|
1633
1639
|
} finally {
|
|
1634
|
-
if (
|
|
1640
|
+
if (Je = !1, e = s - Pt(), !Ns())
|
|
1635
1641
|
return;
|
|
1636
1642
|
r ? n.run(1e3) : e > 0 ? n.run(e) : n.start();
|
|
1637
1643
|
}
|
|
@@ -1641,25 +1647,25 @@ var ve = function(t) {
|
|
|
1641
1647
|
this.stop(), this.run();
|
|
1642
1648
|
}, t.prototype.observe = function() {
|
|
1643
1649
|
var e = this, n = function() {
|
|
1644
|
-
return e.observer && e.observer.observe(document.body,
|
|
1650
|
+
return e.observer && e.observer.observe(document.body, Ws);
|
|
1645
1651
|
};
|
|
1646
1652
|
document.body ? n() : Ee.addEventListener("DOMContentLoaded", n);
|
|
1647
1653
|
}, t.prototype.start = function() {
|
|
1648
1654
|
var e = this;
|
|
1649
|
-
this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(),
|
|
1655
|
+
this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), Nt.forEach(function(n) {
|
|
1650
1656
|
return Ee.addEventListener(n, e.listener, !0);
|
|
1651
1657
|
}));
|
|
1652
1658
|
}, t.prototype.stop = function() {
|
|
1653
1659
|
var e = this;
|
|
1654
|
-
this.stopped || (this.observer && this.observer.disconnect(),
|
|
1660
|
+
this.stopped || (this.observer && this.observer.disconnect(), Nt.forEach(function(n) {
|
|
1655
1661
|
return Ee.removeEventListener(n, e.listener, !0);
|
|
1656
1662
|
}), this.stopped = !0);
|
|
1657
1663
|
}, t;
|
|
1658
|
-
}(),
|
|
1659
|
-
!Ve && t > 0 &&
|
|
1660
|
-
},
|
|
1661
|
-
return !
|
|
1662
|
-
},
|
|
1664
|
+
}(), rt = new Vs(), Wt = function(t) {
|
|
1665
|
+
!Ve && t > 0 && rt.start(), Ve += t, !Ve && rt.stop();
|
|
1666
|
+
}, Us = function(t) {
|
|
1667
|
+
return !vt(t) && !Is(t) && getComputedStyle(t).display === "inline";
|
|
1668
|
+
}, qs = function() {
|
|
1663
1669
|
function t(e, n) {
|
|
1664
1670
|
this.target = e, this.observedBox = n || Be.CONTENT_BOX, this.lastReportedSize = {
|
|
1665
1671
|
inlineSize: 0,
|
|
@@ -1667,15 +1673,15 @@ var ve = function(t) {
|
|
|
1667
1673
|
};
|
|
1668
1674
|
}
|
|
1669
1675
|
return t.prototype.isActive = function() {
|
|
1670
|
-
var e =
|
|
1671
|
-
return
|
|
1676
|
+
var e = fn(this.target, this.observedBox, !0);
|
|
1677
|
+
return Us(this.target) && (this.lastReportedSize = e), this.lastReportedSize.inlineSize !== e.inlineSize || this.lastReportedSize.blockSize !== e.blockSize;
|
|
1672
1678
|
}, t;
|
|
1673
|
-
}(),
|
|
1679
|
+
}(), Fs = /* @__PURE__ */ function() {
|
|
1674
1680
|
function t(e, n) {
|
|
1675
1681
|
this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = e, this.callback = n;
|
|
1676
1682
|
}
|
|
1677
1683
|
return t;
|
|
1678
|
-
}(), Ne = /* @__PURE__ */ new WeakMap(),
|
|
1684
|
+
}(), Ne = /* @__PURE__ */ new WeakMap(), Vt = function(t, e) {
|
|
1679
1685
|
for (var n = 0; n < t.length; n += 1)
|
|
1680
1686
|
if (t[n].target === e)
|
|
1681
1687
|
return n;
|
|
@@ -1684,21 +1690,21 @@ var ve = function(t) {
|
|
|
1684
1690
|
function t() {
|
|
1685
1691
|
}
|
|
1686
1692
|
return t.connect = function(e, n) {
|
|
1687
|
-
var s = new
|
|
1693
|
+
var s = new Fs(e, n);
|
|
1688
1694
|
Ne.set(e, s);
|
|
1689
1695
|
}, t.observe = function(e, n, s) {
|
|
1690
1696
|
var r = Ne.get(e), o = r.observationTargets.length === 0;
|
|
1691
|
-
|
|
1697
|
+
Vt(r.observationTargets, n) < 0 && (o && be.push(r), r.observationTargets.push(new qs(n, s && s.box)), Wt(1), rt.schedule());
|
|
1692
1698
|
}, t.unobserve = function(e, n) {
|
|
1693
|
-
var s = Ne.get(e), r =
|
|
1694
|
-
r >= 0 && (o && be.splice(be.indexOf(s), 1), s.observationTargets.splice(r, 1),
|
|
1699
|
+
var s = Ne.get(e), r = Vt(s.observationTargets, n), o = s.observationTargets.length === 1;
|
|
1700
|
+
r >= 0 && (o && be.splice(be.indexOf(s), 1), s.observationTargets.splice(r, 1), Wt(-1));
|
|
1695
1701
|
}, t.disconnect = function(e) {
|
|
1696
1702
|
var n = this, s = Ne.get(e);
|
|
1697
1703
|
s.observationTargets.slice().forEach(function(r) {
|
|
1698
1704
|
return n.unobserve(e, r.target);
|
|
1699
1705
|
}), s.activeTargets.splice(0, s.activeTargets.length);
|
|
1700
1706
|
}, t;
|
|
1701
|
-
}(),
|
|
1707
|
+
}(), Ut = function() {
|
|
1702
1708
|
function t(e) {
|
|
1703
1709
|
if (arguments.length === 0)
|
|
1704
1710
|
throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
@@ -1709,13 +1715,13 @@ var ve = function(t) {
|
|
|
1709
1715
|
return t.prototype.observe = function(e, n) {
|
|
1710
1716
|
if (arguments.length === 0)
|
|
1711
1717
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1712
|
-
if (!
|
|
1718
|
+
if (!zt(e))
|
|
1713
1719
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
1714
1720
|
Pe.observe(this, e, n);
|
|
1715
1721
|
}, t.prototype.unobserve = function(e) {
|
|
1716
1722
|
if (arguments.length === 0)
|
|
1717
1723
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1718
|
-
if (!
|
|
1724
|
+
if (!zt(e))
|
|
1719
1725
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
1720
1726
|
Pe.unobserve(this, e);
|
|
1721
1727
|
}, t.prototype.disconnect = function() {
|
|
@@ -1724,10 +1730,10 @@ var ve = function(t) {
|
|
|
1724
1730
|
return "function ResizeObserver () { [polyfill code] }";
|
|
1725
1731
|
}, t;
|
|
1726
1732
|
}();
|
|
1727
|
-
const
|
|
1733
|
+
const Hs = ["disabled", "title"], Zs = {
|
|
1728
1734
|
key: 1,
|
|
1729
1735
|
class: "stack-tab__button"
|
|
1730
|
-
},
|
|
1736
|
+
}, ot = /* @__PURE__ */ ee({
|
|
1731
1737
|
__name: "TabHeaderButton",
|
|
1732
1738
|
props: {
|
|
1733
1739
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -1736,24 +1742,24 @@ const Fs = ["disabled", "title"], Hs = {
|
|
|
1736
1742
|
title: {}
|
|
1737
1743
|
},
|
|
1738
1744
|
setup(t) {
|
|
1739
|
-
return (e, n) => (
|
|
1740
|
-
class:
|
|
1745
|
+
return (e, n) => (R(), V("div", {
|
|
1746
|
+
class: fe(["stack-tab__header-button", {
|
|
1741
1747
|
"stack-tab__shadow-right": e.shadow === "right",
|
|
1742
1748
|
"stack-tab__shadow-left": e.shadow === "left"
|
|
1743
1749
|
}]),
|
|
1744
1750
|
disabled: e.disabled ? "disabled" : null,
|
|
1745
1751
|
title: e.title
|
|
1746
1752
|
}, [
|
|
1747
|
-
"icon" in e.$slots ? se("", !0) : (
|
|
1753
|
+
"icon" in e.$slots ? se("", !0) : (R(), V("div", {
|
|
1748
1754
|
key: 0,
|
|
1749
|
-
class:
|
|
1755
|
+
class: fe(["stack-tab__mask-button", e.iconClass])
|
|
1750
1756
|
}, null, 2)),
|
|
1751
|
-
"icon" in e.$slots ? (
|
|
1757
|
+
"icon" in e.$slots ? (R(), V("div", Zs, [
|
|
1752
1758
|
xe(e.$slots, "icon")
|
|
1753
1759
|
])) : se("", !0)
|
|
1754
|
-
], 10,
|
|
1760
|
+
], 10, Hs));
|
|
1755
1761
|
}
|
|
1756
|
-
}),
|
|
1762
|
+
}), js = /* @__PURE__ */ ee({
|
|
1757
1763
|
__name: "TabHeaderScroll",
|
|
1758
1764
|
props: {
|
|
1759
1765
|
space: { default: 300 },
|
|
@@ -1761,102 +1767,102 @@ const Fs = ["disabled", "title"], Hs = {
|
|
|
1761
1767
|
isScrollButton: { type: Boolean, default: !0 }
|
|
1762
1768
|
},
|
|
1763
1769
|
setup(t, { expose: e }) {
|
|
1764
|
-
const n = D(null), s = D(null), r = D(null), o = D(!1), i = D(!1), f = D(!1), a = D(!0), c = D(), p = t,
|
|
1770
|
+
const n = D(null), s = D(null), r = D(null), o = D(!1), i = D(!1), f = D(!1), a = D(!0), c = D(), p = t, u = Ie({
|
|
1765
1771
|
clientWidth: 0,
|
|
1766
1772
|
scrollWidth: 0,
|
|
1767
1773
|
scrollLeft: 0
|
|
1768
|
-
}),
|
|
1774
|
+
}), l = Ie({
|
|
1769
1775
|
thumbLeft: 0,
|
|
1770
1776
|
startScrollLeft: 0,
|
|
1771
1777
|
startThumbLeft: 0,
|
|
1772
1778
|
startPageX: 0
|
|
1773
1779
|
});
|
|
1774
|
-
|
|
1780
|
+
wn(u, (A) => {
|
|
1775
1781
|
k(A);
|
|
1776
1782
|
});
|
|
1777
1783
|
const k = (A) => {
|
|
1778
1784
|
i.value = A.scrollLeft <= 10, f.value = A.clientWidth + A.scrollLeft - A.scrollWidth >= -10, a.value = A.scrollWidth !== A.clientWidth;
|
|
1779
|
-
},
|
|
1780
|
-
if (!
|
|
1781
|
-
const { clientWidth: A, scrollWidth: C } =
|
|
1785
|
+
}, O = we(() => u.scrollWidth > u.clientWidth), B = we(() => {
|
|
1786
|
+
if (!O.value) return 0;
|
|
1787
|
+
const { clientWidth: A, scrollWidth: C } = u;
|
|
1782
1788
|
return A / C * A;
|
|
1783
1789
|
}), I = we(() => {
|
|
1784
|
-
if (!
|
|
1785
|
-
const { clientWidth: A, scrollWidth: C, scrollLeft: U } =
|
|
1790
|
+
if (!O.value) return 0;
|
|
1791
|
+
const { clientWidth: A, scrollWidth: C, scrollLeft: U } = u;
|
|
1786
1792
|
return (A - B.value) * (U / (C - A));
|
|
1787
1793
|
}), y = () => {
|
|
1788
1794
|
if (n.value === null || n.value === void 0)
|
|
1789
1795
|
return;
|
|
1790
1796
|
const { clientWidth: A, scrollWidth: C, scrollLeft: U } = n.value;
|
|
1791
|
-
Object.assign(
|
|
1792
|
-
},
|
|
1797
|
+
Object.assign(u, { clientWidth: A, scrollWidth: C, scrollLeft: U });
|
|
1798
|
+
}, w = new Ut(() => {
|
|
1793
1799
|
var C;
|
|
1794
1800
|
y();
|
|
1795
1801
|
const A = (C = n.value) == null ? void 0 : C.querySelector(".stack-tab__item.is-active");
|
|
1796
|
-
A && (G(A) ||
|
|
1797
|
-
}),
|
|
1802
|
+
A && (G(A) || W(A));
|
|
1803
|
+
}), T = new Ut(() => {
|
|
1798
1804
|
var A;
|
|
1799
|
-
if (!
|
|
1805
|
+
if (!O.value) {
|
|
1800
1806
|
const C = (A = n.value) == null ? void 0 : A.querySelector(".stack-tab__item.is-active");
|
|
1801
|
-
C && (G(C) ||
|
|
1807
|
+
C && (G(C) || W(C));
|
|
1802
1808
|
}
|
|
1803
1809
|
y();
|
|
1804
|
-
}),
|
|
1805
|
-
|
|
1806
|
-
}, O = (A) => {
|
|
1807
|
-
b(n.value.scrollLeft + A);
|
|
1808
|
-
}, h = (A) => {
|
|
1809
|
-
const C = A.deltaY < 0;
|
|
1810
|
-
b(n.value.scrollLeft + (C ? -p.space : p.space));
|
|
1810
|
+
}), g = (A, C = !0) => {
|
|
1811
|
+
tn({ wrap: n.value, left: A, smooth: C });
|
|
1811
1812
|
}, _ = (A) => {
|
|
1813
|
+
g(n.value.scrollLeft + A);
|
|
1814
|
+
}, d = (A) => {
|
|
1815
|
+
const C = A.deltaY < 0;
|
|
1816
|
+
g(n.value.scrollLeft + (C ? -p.space : p.space));
|
|
1817
|
+
}, x = (A) => {
|
|
1812
1818
|
var C;
|
|
1813
|
-
Object.assign(
|
|
1819
|
+
Object.assign(l, {
|
|
1814
1820
|
startPageX: A.pageX,
|
|
1815
1821
|
startScrollLeft: (C = n.value) == null ? void 0 : C.scrollLeft,
|
|
1816
1822
|
startThumbLeft: I.value,
|
|
1817
1823
|
thumbLeft: I.value
|
|
1818
|
-
}), o.value = !0, document.addEventListener("mousemove",
|
|
1819
|
-
},
|
|
1820
|
-
const { clientWidth: C, scrollWidth: U } =
|
|
1821
|
-
let re =
|
|
1822
|
-
const
|
|
1823
|
-
re < 0 ? re = 0 : re >
|
|
1824
|
-
},
|
|
1825
|
-
o.value = !1, document.removeEventListener("mousemove",
|
|
1824
|
+
}), o.value = !0, document.addEventListener("mousemove", m), document.addEventListener("mouseup", z);
|
|
1825
|
+
}, m = (A) => {
|
|
1826
|
+
const { clientWidth: C, scrollWidth: U } = u;
|
|
1827
|
+
let re = l.startThumbLeft + A.pageX - l.startPageX;
|
|
1828
|
+
const Le = C - B.value;
|
|
1829
|
+
re < 0 ? re = 0 : re > Le && (re = Le), l.thumbLeft = re, g(re * (U - C) / (C - B.value), !1), A.preventDefault();
|
|
1830
|
+
}, z = (A) => {
|
|
1831
|
+
o.value = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", z), A.preventDefault();
|
|
1826
1832
|
};
|
|
1827
1833
|
Fe(() => {
|
|
1828
1834
|
var C;
|
|
1829
|
-
|
|
1835
|
+
w.observe(c.value);
|
|
1830
1836
|
const A = (C = n.value) == null ? void 0 : C.querySelector(".stack-tab__nav");
|
|
1831
|
-
|
|
1837
|
+
T.observe(A);
|
|
1832
1838
|
}), He(() => {
|
|
1833
|
-
|
|
1839
|
+
w.disconnect(), T.disconnect();
|
|
1834
1840
|
});
|
|
1835
|
-
const
|
|
1836
|
-
|
|
1841
|
+
const W = (A) => {
|
|
1842
|
+
Un({ el: A, wrap: n, block: "end", inline: "center" });
|
|
1837
1843
|
}, G = (A) => {
|
|
1838
|
-
if (!
|
|
1844
|
+
if (!O.value)
|
|
1839
1845
|
return !0;
|
|
1840
1846
|
const C = A.offsetLeft, U = n.value.scrollLeft;
|
|
1841
1847
|
return !(C < U || C + A.clientWidth > U + n.value.clientWidth);
|
|
1842
1848
|
};
|
|
1843
|
-
return e({ scrollIntoView:
|
|
1844
|
-
a.value ? (
|
|
1849
|
+
return e({ scrollIntoView: W, isInView: G }), (A, C) => (R(), V(Ze, null, [
|
|
1850
|
+
a.value ? (R(), me(ot, {
|
|
1845
1851
|
key: 0,
|
|
1846
1852
|
"icon-class": "stack-tab__icon-left-arrow",
|
|
1847
1853
|
disabled: i.value,
|
|
1848
|
-
onClick: C[0] || (C[0] = (U) => !i.value &&
|
|
1854
|
+
onClick: C[0] || (C[0] = (U) => !i.value && _(-1 * A.space))
|
|
1849
1855
|
}, null, 8, ["disabled"])) : se("", !0),
|
|
1850
1856
|
Q("div", {
|
|
1851
1857
|
ref_key: "headerScroll",
|
|
1852
1858
|
ref: c,
|
|
1853
1859
|
class: "stack-tab__scroll",
|
|
1854
|
-
onWheel: _e(
|
|
1860
|
+
onWheel: _e(d, ["prevent"])
|
|
1855
1861
|
}, [
|
|
1856
1862
|
Q("div", {
|
|
1857
1863
|
ref_key: "container",
|
|
1858
1864
|
ref: n,
|
|
1859
|
-
class:
|
|
1865
|
+
class: fe(["stack-tab__scroll-container", {
|
|
1860
1866
|
"stack-tab__shadow-inset-left": !i.value && f.value,
|
|
1861
1867
|
"stack-tab__shadow-inset-right": !f.value && i.value,
|
|
1862
1868
|
"stack-tab__shadow-inset-all": !i.value && !f.value
|
|
@@ -1865,34 +1871,34 @@ const Fs = ["disabled", "title"], Hs = {
|
|
|
1865
1871
|
}, [
|
|
1866
1872
|
xe(A.$slots, "default")
|
|
1867
1873
|
], 34),
|
|
1868
|
-
|
|
1874
|
+
Xt(Q("div", {
|
|
1869
1875
|
ref_key: "bar",
|
|
1870
1876
|
ref: s,
|
|
1871
|
-
class:
|
|
1877
|
+
class: fe(["stack-tab__scrollbar", { "is-dragging": o.value }])
|
|
1872
1878
|
}, [
|
|
1873
1879
|
Q("div", {
|
|
1874
1880
|
ref_key: "thumb",
|
|
1875
1881
|
ref: r,
|
|
1876
|
-
class:
|
|
1877
|
-
style:
|
|
1882
|
+
class: fe(["stack-tab__scrollbar-thumb", { "is-dragging": o.value }]),
|
|
1883
|
+
style: at({
|
|
1878
1884
|
width: `${B.value}px`,
|
|
1879
1885
|
transform: `translateX(${I.value}px)`
|
|
1880
1886
|
}),
|
|
1881
|
-
onMousedown: _e(
|
|
1887
|
+
onMousedown: _e(x, ["prevent"])
|
|
1882
1888
|
}, null, 38)
|
|
1883
1889
|
], 2), [
|
|
1884
|
-
[
|
|
1890
|
+
[Gt, O.value]
|
|
1885
1891
|
])
|
|
1886
1892
|
], 544),
|
|
1887
|
-
a.value ? (
|
|
1893
|
+
a.value ? (R(), me(ot, {
|
|
1888
1894
|
key: 1,
|
|
1889
1895
|
"icon-class": "stack-tab__icon-right-arrow",
|
|
1890
1896
|
disabled: f.value,
|
|
1891
|
-
onClick: C[1] || (C[1] = (U) => !f.value &&
|
|
1897
|
+
onClick: C[1] || (C[1] = (U) => !f.value && _(A.space))
|
|
1892
1898
|
}, null, 8, ["disabled"])) : se("", !0)
|
|
1893
1899
|
], 64));
|
|
1894
1900
|
}
|
|
1895
|
-
}),
|
|
1901
|
+
}), Xs = { class: "stack-tab__header" }, Gs = /* @__PURE__ */ ee({
|
|
1896
1902
|
__name: "index",
|
|
1897
1903
|
props: {
|
|
1898
1904
|
space: {},
|
|
@@ -1905,40 +1911,40 @@ const Fs = ["disabled", "title"], Hs = {
|
|
|
1905
1911
|
},
|
|
1906
1912
|
emits: ["active"],
|
|
1907
1913
|
setup(t, { emit: e }) {
|
|
1908
|
-
const { t: n } = Me(), s =
|
|
1914
|
+
const { t: n } = Me(), s = it("maximum"), r = e, o = D(), { shown: i, contextMenuData: f, showContextMenu: a } = ws(), c = t, { removeTab: p, active: u, tabs: l } = Ce(), k = we(() => typeof c.tabTransition == "string" ? {
|
|
1909
1915
|
name: c.tabTransition
|
|
1910
|
-
} : c.tabTransition),
|
|
1911
|
-
|
|
1912
|
-
}, y = (
|
|
1913
|
-
o.value && (
|
|
1914
|
-
o.value.isInView(
|
|
1915
|
-
}),
|
|
1916
|
+
} : c.tabTransition), O = we(() => c.tabScrollMode === pe.BOTH || c.tabScrollMode === pe.BUTTON), B = c.tabScrollMode === pe.BOTH || c.tabScrollMode === pe.WHEEL, I = (w) => {
|
|
1917
|
+
w.closable && p(w.id), i.value = !1;
|
|
1918
|
+
}, y = (w, T, g) => {
|
|
1919
|
+
o.value && (le(() => {
|
|
1920
|
+
o.value.isInView(T.value) || o.value.scrollIntoView(T.value);
|
|
1921
|
+
}), u(w.id, g), r("active", w.id));
|
|
1916
1922
|
};
|
|
1917
|
-
return (
|
|
1918
|
-
xe(
|
|
1919
|
-
|
|
1923
|
+
return (w, T) => (R(), V("div", Xs, [
|
|
1924
|
+
xe(w.$slots, "leftButton"),
|
|
1925
|
+
P(js, {
|
|
1920
1926
|
ref_key: "scroll",
|
|
1921
1927
|
ref: o,
|
|
1922
|
-
space:
|
|
1923
|
-
"is-scroll-wheel":
|
|
1924
|
-
"is-scroll-button":
|
|
1928
|
+
space: w.space,
|
|
1929
|
+
"is-scroll-wheel": S(B),
|
|
1930
|
+
"is-scroll-button": O.value
|
|
1925
1931
|
}, {
|
|
1926
|
-
default:
|
|
1927
|
-
|
|
1932
|
+
default: ue(() => [
|
|
1933
|
+
P(Yt, kn({
|
|
1928
1934
|
key: "tabItemTrans",
|
|
1929
1935
|
tag: "ul",
|
|
1930
1936
|
class: "stack-tab__nav"
|
|
1931
1937
|
}, k.value, { appear: "" }), {
|
|
1932
|
-
default:
|
|
1933
|
-
(
|
|
1934
|
-
key:
|
|
1935
|
-
contextmenu:
|
|
1936
|
-
item:
|
|
1938
|
+
default: ue(() => [
|
|
1939
|
+
(R(!0), V(Ze, null, ct(S(l), (g, _) => (R(), me(Ts, {
|
|
1940
|
+
key: g.id,
|
|
1941
|
+
contextmenu: w.contextmenu,
|
|
1942
|
+
item: g,
|
|
1937
1943
|
onContextmenu: _e(
|
|
1938
|
-
(
|
|
1944
|
+
(d) => S(a)(d, g, _, S(l).length),
|
|
1939
1945
|
["prevent"]
|
|
1940
1946
|
),
|
|
1941
|
-
onMouseup: _e((
|
|
1947
|
+
onMouseup: _e((d) => I(g), ["middle", "prevent"]),
|
|
1942
1948
|
onClose: I,
|
|
1943
1949
|
onActive: y
|
|
1944
1950
|
}, null, 8, ["contextmenu", "item", "onContextmenu", "onMouseup"]))), 128))
|
|
@@ -1948,24 +1954,24 @@ const Fs = ["disabled", "title"], Hs = {
|
|
|
1948
1954
|
]),
|
|
1949
1955
|
_: 1
|
|
1950
1956
|
}, 8, ["space", "is-scroll-wheel", "is-scroll-button"]),
|
|
1951
|
-
xe(
|
|
1952
|
-
|
|
1953
|
-
"icon-class":
|
|
1954
|
-
title:
|
|
1955
|
-
onClick:
|
|
1957
|
+
xe(w.$slots, "rightButton"),
|
|
1958
|
+
P(ot, {
|
|
1959
|
+
"icon-class": S(s) ? "stack-tab__icon-restore" : "stack-tab__icon-fullscreen",
|
|
1960
|
+
title: S(n)("VueStackTab.maximum"),
|
|
1961
|
+
onClick: T[0] || (T[0] = (g) => s.value = !S(s))
|
|
1956
1962
|
}, null, 8, ["icon-class", "title"]),
|
|
1957
|
-
|
|
1963
|
+
P(Kt, {
|
|
1958
1964
|
name: "stack-tab-zoom",
|
|
1959
1965
|
appear: ""
|
|
1960
1966
|
}, {
|
|
1961
|
-
default:
|
|
1962
|
-
|
|
1967
|
+
default: ue(() => [
|
|
1968
|
+
S(i) ? (R(), me(ys, {
|
|
1963
1969
|
key: "tabMenuTrans",
|
|
1964
|
-
left:
|
|
1965
|
-
top:
|
|
1966
|
-
"tab-item":
|
|
1967
|
-
max:
|
|
1968
|
-
index:
|
|
1970
|
+
left: S(f).left,
|
|
1971
|
+
top: S(f).top,
|
|
1972
|
+
"tab-item": S(f).item,
|
|
1973
|
+
max: S(f).max,
|
|
1974
|
+
index: S(f).index
|
|
1969
1975
|
}, null, 8, ["left", "top", "tab-item", "max", "index"])) : se("", !0)
|
|
1970
1976
|
]),
|
|
1971
1977
|
_: 1
|
|
@@ -1973,34 +1979,34 @@ const Fs = ["disabled", "title"], Hs = {
|
|
|
1973
1979
|
]));
|
|
1974
1980
|
}
|
|
1975
1981
|
});
|
|
1976
|
-
function
|
|
1977
|
-
var s = {}, r = s.noTrailing, o = r === void 0 ? !1 : r, i = s.noLeading, f = i === void 0 ? !1 : i, a = s.debounceMode, c = a === void 0 ? void 0 : a, p,
|
|
1982
|
+
function Ys(t, e, n) {
|
|
1983
|
+
var s = {}, r = s.noTrailing, o = r === void 0 ? !1 : r, i = s.noLeading, f = i === void 0 ? !1 : i, a = s.debounceMode, c = a === void 0 ? void 0 : a, p, u = !1, l = 0;
|
|
1978
1984
|
function k() {
|
|
1979
1985
|
p && clearTimeout(p);
|
|
1980
1986
|
}
|
|
1981
|
-
function
|
|
1982
|
-
var y = I || {},
|
|
1983
|
-
k(),
|
|
1987
|
+
function O(I) {
|
|
1988
|
+
var y = I || {}, w = y.upcomingOnly, T = w === void 0 ? !1 : w;
|
|
1989
|
+
k(), u = !T;
|
|
1984
1990
|
}
|
|
1985
1991
|
function B() {
|
|
1986
|
-
for (var I = arguments.length, y = new Array(I),
|
|
1987
|
-
y[
|
|
1988
|
-
var
|
|
1989
|
-
if (
|
|
1992
|
+
for (var I = arguments.length, y = new Array(I), w = 0; w < I; w++)
|
|
1993
|
+
y[w] = arguments[w];
|
|
1994
|
+
var T = this, g = Date.now() - l;
|
|
1995
|
+
if (u)
|
|
1990
1996
|
return;
|
|
1991
|
-
function
|
|
1992
|
-
|
|
1997
|
+
function _() {
|
|
1998
|
+
l = Date.now(), e.apply(T, y);
|
|
1993
1999
|
}
|
|
1994
|
-
function
|
|
2000
|
+
function d() {
|
|
1995
2001
|
p = void 0;
|
|
1996
2002
|
}
|
|
1997
|
-
!f && c && !p &&
|
|
2003
|
+
!f && c && !p && _(), k(), c === void 0 && g > t ? f ? (l = Date.now(), o || (p = setTimeout(c ? d : _, t))) : _() : o !== !0 && (p = setTimeout(c ? d : _, c === void 0 ? t - g : t));
|
|
1998
2004
|
}
|
|
1999
|
-
return B.cancel =
|
|
2005
|
+
return B.cancel = O, B;
|
|
2000
2006
|
}
|
|
2001
|
-
let
|
|
2002
|
-
const
|
|
2003
|
-
const t =
|
|
2007
|
+
let qt;
|
|
2008
|
+
const Ks = () => {
|
|
2009
|
+
const t = lt(), { active: e, hasTab: n, pageShown: s, reset: r, canAddTab: o, renewTab: i, getTab: f } = Ce(), a = ge(), c = Ys(500, (k, O = !1) => new Promise((B, I) => {
|
|
2004
2010
|
if (!s.value) {
|
|
2005
2011
|
I();
|
|
2006
2012
|
return;
|
|
@@ -2010,24 +2016,24 @@ const Ys = () => {
|
|
|
2010
2016
|
closable: !0,
|
|
2011
2017
|
iframe: !1
|
|
2012
2018
|
});
|
|
2013
|
-
if (y.id &&
|
|
2019
|
+
if (y.id && O && n(y.id)) {
|
|
2014
2020
|
i(k);
|
|
2015
|
-
const
|
|
2016
|
-
|
|
2021
|
+
const w = f(k.id);
|
|
2022
|
+
w != null && w.active && (s.value = !1, le(() => {
|
|
2017
2023
|
s.value = !0;
|
|
2018
2024
|
}));
|
|
2019
2025
|
}
|
|
2020
|
-
if (n(y.id) && !
|
|
2026
|
+
if (n(y.id) && !O) {
|
|
2021
2027
|
a.emit(Z.TAB_ACTIVE, { id: y.id }), B(y.id);
|
|
2022
2028
|
return;
|
|
2023
2029
|
}
|
|
2024
|
-
if (y.id || (y.id =
|
|
2030
|
+
if (y.id || (y.id = Qe()), !o()) {
|
|
2025
2031
|
I("Max Size");
|
|
2026
2032
|
return;
|
|
2027
2033
|
}
|
|
2028
2034
|
p(k, y), B(y.id);
|
|
2029
|
-
})), p = (k,
|
|
2030
|
-
const B =
|
|
2035
|
+
})), p = (k, O) => {
|
|
2036
|
+
const B = nt(O);
|
|
2031
2037
|
let I = ne(
|
|
2032
2038
|
{
|
|
2033
2039
|
__tab: B
|
|
@@ -2035,11 +2041,11 @@ const Ys = () => {
|
|
|
2035
2041
|
k.query
|
|
2036
2042
|
), y;
|
|
2037
2043
|
if (k.iframe) {
|
|
2038
|
-
const
|
|
2039
|
-
y =
|
|
2044
|
+
const w = encodeURIComponent(k.path);
|
|
2045
|
+
y = qt, I.__src = w;
|
|
2040
2046
|
} else {
|
|
2041
|
-
const
|
|
2042
|
-
y =
|
|
2047
|
+
const w = bt(k.path);
|
|
2048
|
+
y = w.path, I = ne(w.query, I);
|
|
2043
2049
|
}
|
|
2044
2050
|
t.push({
|
|
2045
2051
|
path: y,
|
|
@@ -2047,9 +2053,9 @@ const Ys = () => {
|
|
|
2047
2053
|
});
|
|
2048
2054
|
};
|
|
2049
2055
|
return { openNewTab: c, setIFramePath: (k) => {
|
|
2050
|
-
|
|
2056
|
+
qt = k;
|
|
2051
2057
|
}, active: e, reset: r, getWrapper: () => document.getElementsByClassName("cache-page-wrapper")[0] };
|
|
2052
|
-
},
|
|
2058
|
+
}, Js = { class: "stack-tab__container" }, Qs = ["src"], er = /* @__PURE__ */ ee({
|
|
2053
2059
|
__name: "StackTabs",
|
|
2054
2060
|
props: {
|
|
2055
2061
|
defaultTabs: { default: () => [] },
|
|
@@ -2069,62 +2075,64 @@ const Ys = () => {
|
|
|
2069
2075
|
},
|
|
2070
2076
|
emits: ["onActive", "onPageLoaded"],
|
|
2071
2077
|
setup(t, { emit: e }) {
|
|
2072
|
-
const { tabs: n, pageShown: s, caches: r, destroy: o, addPage: i, initial: f, setMaxSize: a, setGlobalScroll: c } = Ce(),
|
|
2073
|
-
|
|
2074
|
-
const { setIFramePath:
|
|
2075
|
-
|
|
2078
|
+
const { tabs: n, pageShown: s, caches: r, destroy: o, addPage: i, initial: f, setMaxSize: a, setGlobalScroll: c, clearSession: p } = Ce(), u = e, l = t, { changeLocale: k } = Me(), O = D(!1);
|
|
2079
|
+
_n("maximum", O);
|
|
2080
|
+
const { setIFramePath: B } = Ks();
|
|
2081
|
+
B(l.iframePath), c(l.globalScroll), k(l.i18n), xn(() => {
|
|
2076
2082
|
f(l.defaultTabs);
|
|
2077
2083
|
});
|
|
2078
|
-
const
|
|
2079
|
-
|
|
2084
|
+
const I = (_, d) => i(_, d), y = (_) => {
|
|
2085
|
+
u("onActive", _);
|
|
2080
2086
|
};
|
|
2081
|
-
a(l.max),
|
|
2087
|
+
a(l.max), _t(() => {
|
|
2082
2088
|
o();
|
|
2083
2089
|
});
|
|
2084
|
-
const
|
|
2085
|
-
|
|
2086
|
-
},
|
|
2087
|
-
return
|
|
2088
|
-
|
|
2089
|
-
}),
|
|
2090
|
-
|
|
2091
|
-
}), (
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2090
|
+
const w = () => {
|
|
2091
|
+
u("onPageLoaded");
|
|
2092
|
+
}, T = D(l.pageTransition), g = ge();
|
|
2093
|
+
return g.on("FORWARD", () => {
|
|
2094
|
+
T.value = l.pageTransition;
|
|
2095
|
+
}), g.on("BACKWARD", () => {
|
|
2096
|
+
T.value = l.pageTransitionBack;
|
|
2097
|
+
}), _t(() => {
|
|
2098
|
+
p();
|
|
2099
|
+
}), (_, d) => {
|
|
2100
|
+
const x = Zt("router-view");
|
|
2101
|
+
return R(), V("div", {
|
|
2102
|
+
class: fe(["stack-tab", { "stack-tab__maximum": O.value }]),
|
|
2103
|
+
style: at({
|
|
2104
|
+
width: _.width,
|
|
2105
|
+
height: _.height,
|
|
2106
|
+
"z-index": O.value ? S(nn)("body *:not(.stack-tab,.stack-tab *)") : void 0
|
|
2099
2107
|
})
|
|
2100
2108
|
}, [
|
|
2101
|
-
|
|
2102
|
-
space:
|
|
2103
|
-
onActive:
|
|
2104
|
-
"tab-transition":
|
|
2105
|
-
max:
|
|
2109
|
+
P(Gs, {
|
|
2110
|
+
space: _.space,
|
|
2111
|
+
onActive: y,
|
|
2112
|
+
"tab-transition": _.tabTransition,
|
|
2113
|
+
max: _.max
|
|
2106
2114
|
}, {
|
|
2107
|
-
leftButton:
|
|
2108
|
-
xe(
|
|
2115
|
+
leftButton: ue(() => [
|
|
2116
|
+
xe(_.$slots, "leftButton")
|
|
2109
2117
|
]),
|
|
2110
|
-
rightButton:
|
|
2111
|
-
xe(
|
|
2118
|
+
rightButton: ue(() => [
|
|
2119
|
+
xe(_.$slots, "rightButton")
|
|
2112
2120
|
]),
|
|
2113
2121
|
_: 3
|
|
2114
2122
|
}, 8, ["space", "tab-transition", "max"]),
|
|
2115
|
-
Q("div",
|
|
2116
|
-
|
|
2117
|
-
default:
|
|
2118
|
-
|
|
2119
|
-
name:
|
|
2123
|
+
Q("div", Js, [
|
|
2124
|
+
P(x, null, {
|
|
2125
|
+
default: ue(({ Component: m, route: z }) => [
|
|
2126
|
+
P(Kt, {
|
|
2127
|
+
name: T.value,
|
|
2120
2128
|
appear: "",
|
|
2121
2129
|
mode: "out-in"
|
|
2122
2130
|
}, {
|
|
2123
|
-
default:
|
|
2124
|
-
(
|
|
2125
|
-
|
|
2126
|
-
key:
|
|
2127
|
-
onOnLoaded:
|
|
2131
|
+
default: ue(() => [
|
|
2132
|
+
(R(), me(Tn, { include: S(r) }, [
|
|
2133
|
+
S(s) ? (R(), me(Sn(I(z, m)), {
|
|
2134
|
+
key: z.fullPath,
|
|
2135
|
+
onOnLoaded: w
|
|
2128
2136
|
}, null, 32)) : se("", !0)
|
|
2129
2137
|
], 1032, ["include"]))
|
|
2130
2138
|
]),
|
|
@@ -2133,18 +2141,18 @@ const Ys = () => {
|
|
|
2133
2141
|
]),
|
|
2134
2142
|
_: 1
|
|
2135
2143
|
}),
|
|
2136
|
-
|
|
2137
|
-
name:
|
|
2144
|
+
P(Yt, {
|
|
2145
|
+
name: _.pageTransition,
|
|
2138
2146
|
appear: ""
|
|
2139
2147
|
}, {
|
|
2140
|
-
default:
|
|
2141
|
-
(
|
|
2142
|
-
key:
|
|
2148
|
+
default: ue(() => [
|
|
2149
|
+
(R(!0), V(Ze, null, ct(S(n).filter((m) => m.iframe), (m) => Xt((R(), V("iframe", {
|
|
2150
|
+
key: m.id,
|
|
2143
2151
|
class: "stack-tab__iframe",
|
|
2144
|
-
src: /^(javascript|data):/i.test(
|
|
2152
|
+
src: /^(javascript|data):/i.test(m.url ?? "") ? "about:blank" : m.url,
|
|
2145
2153
|
frameborder: "0"
|
|
2146
|
-
}, null, 8,
|
|
2147
|
-
[
|
|
2154
|
+
}, null, 8, Qs)), [
|
|
2155
|
+
[Gt, m.active]
|
|
2148
2156
|
])), 128))
|
|
2149
2157
|
]),
|
|
2150
2158
|
_: 1
|
|
@@ -2153,16 +2161,16 @@ const Ys = () => {
|
|
|
2153
2161
|
], 6);
|
|
2154
2162
|
};
|
|
2155
2163
|
}
|
|
2156
|
-
}),
|
|
2164
|
+
}), mt = typeof Buffer == "function";
|
|
2157
2165
|
typeof TextDecoder == "function" && new TextDecoder();
|
|
2158
|
-
const
|
|
2166
|
+
const Ft = typeof TextEncoder == "function" ? new TextEncoder() : void 0, tr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Se = Array.prototype.slice.call(tr);
|
|
2159
2167
|
((t) => {
|
|
2160
2168
|
let e = {};
|
|
2161
2169
|
return t.forEach((n, s) => e[n] = s), e;
|
|
2162
2170
|
})(Se);
|
|
2163
2171
|
const J = String.fromCharCode.bind(String);
|
|
2164
2172
|
typeof Uint8Array.from == "function" && Uint8Array.from.bind(Uint8Array);
|
|
2165
|
-
const
|
|
2173
|
+
const nr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" : "_"), sr = (t) => {
|
|
2166
2174
|
let e, n, s, r, o = "";
|
|
2167
2175
|
const i = t.length % 3;
|
|
2168
2176
|
for (let f = 0; f < t.length; ) {
|
|
@@ -2171,12 +2179,12 @@ const tr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" :
|
|
|
2171
2179
|
e = n << 16 | s << 8 | r, o += Se[e >> 18 & 63] + Se[e >> 12 & 63] + Se[e >> 6 & 63] + Se[e & 63];
|
|
2172
2180
|
}
|
|
2173
2181
|
return i ? o.slice(0, i - 3) + "===".substring(i) : o;
|
|
2174
|
-
},
|
|
2182
|
+
}, pn = typeof btoa == "function" ? (t) => btoa(t) : mt ? (t) => Buffer.from(t, "binary").toString("base64") : sr, rr = mt ? (t) => Buffer.from(t).toString("base64") : (t) => {
|
|
2175
2183
|
let n = [];
|
|
2176
2184
|
for (let s = 0, r = t.length; s < r; s += 4096)
|
|
2177
2185
|
n.push(J.apply(null, t.subarray(s, s + 4096)));
|
|
2178
|
-
return
|
|
2179
|
-
},
|
|
2186
|
+
return pn(n.join(""));
|
|
2187
|
+
}, or = (t) => {
|
|
2180
2188
|
if (t.length < 2) {
|
|
2181
2189
|
var e = t.charCodeAt(0);
|
|
2182
2190
|
return e < 128 ? t : e < 2048 ? J(192 | e >>> 6) + J(128 | e & 63) : J(224 | e >>> 12 & 15) + J(128 | e >>> 6 & 63) + J(128 | e & 63);
|
|
@@ -2184,79 +2192,79 @@ const tr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" :
|
|
|
2184
2192
|
var e = 65536 + (t.charCodeAt(0) - 55296) * 1024 + (t.charCodeAt(1) - 56320);
|
|
2185
2193
|
return J(240 | e >>> 18 & 7) + J(128 | e >>> 12 & 63) + J(128 | e >>> 6 & 63) + J(128 | e & 63);
|
|
2186
2194
|
}
|
|
2187
|
-
},
|
|
2188
|
-
const s = `<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1167.06 237.75"><path d="M79.24,19.73h108.91v29.7h-108.91v-29.7Z" style="fill:#79a7ff; stroke-width:0px;"/><path d="M179.24,199.67H20.26c-11.21-.07-20.26-9.17-20.26-20.38V20.39C0,9.18,9.05.07,20.26,0h59.49c3.51.07,6.34,2.9,6.41,6.42v44.36c0,3.54-2.87,6.41-6.41,6.41s-6.41-2.86-6.42-6.4V12.36H20.25c-4.13.07-7.44,3.44-7.44,7.56v159.41c0,4.13,3.31,7.49,7.44,7.56h158.98c4.13-.07,7.44-3.44,7.44-7.56V51.84c0-3.54,2.87-6.41,6.41-6.42,3.55,0,6.42,2.87,6.42,6.42v127.45c0,11.21-9.05,20.32-20.26,20.39h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M192.8,60.77c-3.66-.07-6.61-3.02-6.68-6.68v-18.23c.09-4.29-3.32-7.83-7.6-7.92h-96.43c-3.69,0-6.69-2.99-6.69-6.69s2.99-6.69,6.69-6.69h96.27c11.69.08,21.13,9.58,21.13,21.27v18.25c0,3.69-2.99,6.68-6.68,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M193.08,58.67H10.15c-3.61-.08-6.48-3.07-6.41-6.68-.08-3.62,2.79-6.61,6.4-6.69,0,0,0,0,0,0h182.93c3.62.08,6.48,3.08,6.41,6.69.07,3.61-2.79,6.6-6.41,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M137.2,58.67c-3.42.24-6.4-2.32-6.68-5.74v-28.15c.55-3.69,4-6.24,7.69-5.69,2.94.44,5.24,2.75,5.69,5.69v28.15c-.28,3.42-3.26,5.98-6.68,5.74h-.02Z" style="fill:#377dff; stroke-width:0px;"/><path d="M99.78,100.48l-12.83-22.22h-18.39l31.22,54.05,31.22-54.05h-18.39l-12.83,22.22Z" style="fill:#00d797; stroke-width:0px;"/><path d="M135.28,78.26l-35.49,61.43-35.44-61.43h-20.11l55.55,96.2,55.55-96.2s-20.06,0-20.06,0ZM313.33,59.95c0,.52-.67,1.84-2,3.95s-3.3,5.2-5.9,9.28-5.75,9.28-9.46,15.61c-3.7,6.33-7.52,13.34-11.45,21.04-4.51,8.85-7.76,15.8-9.76,20.86s-2.99,9.41-2.99,13.05c0,2.89,1.53,5.44,4.6,7.63,3.7-2.89,7.34-6.33,10.93-10.32,3.58-3.99,7.13-8.44,10.63-13.36s7.55-11.13,12.14-18.65c4.6-7.52,8.69-14.43,12.27-20.73-.17-.52-.36-1.04-.56-1.56s-.3-.95-.3-1.3c0-2.72.55-5.26,1.65-7.63,1.1-2.37,2.47-4.68,4.12-6.94s4.12-5.44,7.42-9.54c.87-1.1,1.94-1.65,3.21-1.65,2.08,0,3.12,1.33,3.12,3.99s-1.08,6.84-3.25,12.53c-2.17,5.7-5.37,12.39-9.59,20.08s-9.47,16.29-15.74,25.81c-6.28,9.51-13.37,19.45-21.3,29.8-8.04,10.47-13.79,15.7-17.26,15.7-1.97,0-4.19-1.08-6.68-3.25s-4.63-5.13-6.42-8.89-2.69-7.78-2.69-12.06c0-2.54.53-5.81,1.6-9.8s2.75-8.78,5.03-14.36,4.87-11.09,7.76-16.53c3.01-5.72,5.65-10.47,7.94-14.23,2.28-3.76,4.87-7.94,7.76-12.53,2.89-4.6,4.34-7.1,4.34-7.5,0-.87-.58-1.3-1.73-1.3-3.35,0-7.82,1.71-13.4,5.12s-12.85,8.59-21.82,15.53c-3.41,2.66-5.57,4.38-6.46,5.16s-1.34,1.43-1.34,1.95c0,.69.55,1.04,1.65,1.04.46,0,2.02-.17,4.68-.52s4.77-.52,6.33-.52c2.6,0,3.9.46,3.9,1.39,0,.81-.54,1.45-1.61,1.91-1.07.46-2.54.93-4.42,1.39s-4.44,1.1-7.68,1.91c-3.47.93-7.16,2.25-11.06,3.99-3.9,1.73-6.14,2.6-6.72,2.6-1.1,0-1.78-.4-2.04-1.21s-.39-2.14-.39-3.99c0-8.21,1.36-14.56,4.08-19.04s7.58-9.15,14.57-14.01c7.98-5.55,15.61-10.16,22.9-13.84,7.29-3.67,13.58-6.36,18.87-8.07s9.18-2.56,11.67-2.56,4.84,1.56,7.24,4.68,3.6,6.42,3.6,9.89h0ZM366.34,124.75c-8.39,11.1-14.76,19-19.13,23.68s-7.94,7.03-10.71,7.03c-2.2,0-4.22-.91-6.07-2.73-1.85-1.82-3.28-4.28-4.29-7.37s-1.52-6.4-1.52-9.93c0-2.31.22-4.39.65-6.25.43-1.85,1.26-3.89,2.47-6.12s2.82-4.64,4.81-7.24c2-2.6,4.44-5.55,7.33-8.85,1.73-2.02,3.19-3.73,4.38-5.12,1.18-1.39,2.34-2.33,3.47-2.82s2.96-.74,5.51-.74c1.85,0,3.61.25,5.29.74,1.68.49,2.52,1,2.52,1.52,0,1.04-.85,2.92-2.56,5.64s-4.45,6.03-8.24,9.93c-3.79,3.9-8.17,7.74-13.14,11.49-1.1,3.41-1.65,6.01-1.65,7.81,0,2.49.95,3.73,2.86,3.73.69,0,1.85-.59,3.47-1.78,1.62-1.18,4.35-3.47,8.2-6.85,3.84-3.38,7.3-6.38,10.37-8.98,2.25-1.97,4.87-4.9,7.85-8.8s5.39-6.84,7.24-8.8c4.28-4.51,7.2-7.44,8.76-8.8s3.06-2.04,4.51-2.04,2.33.43,2.82,1.3c.49.87.74,2.63.74,5.29,0,1.21-.12,2.2-.35,2.95s-.71,1.72-1.43,2.91-2.18,3.37-4.38,6.55-4.8,6.94-7.81,11.28c-1.66,2.38-3.09,4.93-4.25,7.59-1.21,2.75-1.82,4.81-1.82,6.2,0,3.01,1.18,4.51,3.56,4.51,1.96,0,4.25-.81,6.85-2.43s6.59-4.54,11.97-8.76v5.81c-6.77,6.25-11.77,10.79-15.01,13.62s-6.04,4.97-8.41,6.42-4.63,2.17-6.77,2.17c-4.86,0-7.29-2.89-7.29-8.67,0-2.2.72-5.16,2.17-8.89,1.44-3.73,3.79-9.12,7.03-16.18v-.02Z" style="fill:#306fff; stroke-width:0px;"/><path d="M407.71,133.77v2.17c0,3.41.84,6.07,2.52,7.98,1.68,1.91,3.87,2.86,6.59,2.86s5.77-.66,8.8-2c3.04-1.33,6.06-3.09,9.07-5.29s6.68-5.15,11.02-8.85v5.29c-6.54,7.87-12.67,13.89-18.39,18.09-5.72,4.19-11.54,6.29-17.44,6.29-5.15,0-9.22-2-12.23-5.99s-4.51-9.46-4.51-16.39c0-6.07,1.42-11.58,4.25-16.52s7.46-10.16,13.88-15.66c4.39-3.76,8.76-6.59,13.1-8.5s8.21-2.86,11.62-2.86c2.72,0,4.87.62,6.46,1.86s2.39,3.11,2.39,5.59c0,3.64-1.36,7.27-4.08,10.89s-6.87,7.2-12.45,10.76c-5.58,3.56-12.45,6.98-20.6,10.28h0ZM408.58,128.13c5.2-2.02,9.66-4.54,13.36-7.55,3.7-3.01,6.43-5.88,8.2-8.63,1.76-2.75,2.65-4.76,2.65-6.03s-.61-2-1.82-2c-1.04,0-2.73.67-5.07,2s-4.71,3.07-7.11,5.21-4.55,4.66-6.46,7.55c-1.9,2.86-3.17,6.08-3.73,9.46h-.02ZM585.37,132.9c-1.45-2.66-3.61-5.06-6.51-7.2-2.89-2.14-6.15-3.86-9.76-5.16s-7.39-2.27-11.32-2.91c-11.68-1.74-22.58-5.52-32.7-11.36-.87-.46-1.79-1.44-2.78-2.95-.98-1.5-1.47-2.95-1.47-4.34,0-5.09.85-10.19,2.56-15.31,1.71-5.12,3.89-9.12,6.55-12.01,4.28-4.8,11.98-8.99,23.12-12.58,11.13-3.58,23.67-5.38,37.6-5.38,8.33,0,14.76.64,19.3,1.91s6.81,3.24,6.81,5.9c0,4.34-.59,7.69-1.78,10.06s-2.46,3.95-3.82,4.73c-1.36.78-3.75,1.84-7.16,3.17-3.64,1.27-6.81,2.6-9.5,3.99s-4.99,2.72-6.9,3.99c-1.91,1.27-3.09,1.91-3.56,1.91-.58,0-.87-.23-.87-.69,0-.98,1.03-2.47,3.08-4.47s4.58-3.74,7.59-5.25c3.18-1.68,4.77-2.75,4.77-3.21,0-.75-1.76-1.13-5.29-1.13-10.7,0-20.59.95-29.67,2.86s-16.24,4.42-21.47,7.55c-5.23,3.12-7.85,6.3-7.85,9.54,0,2.02,1.08,3.46,3.25,4.29,2.17.84,6.95,2.24,14.36,4.21,7.4,1.97,14.02,4.22,19.86,6.77,8.38,3.59,14.6,7.32,18.65,11.19,4.05,3.88,6.07,8.21,6.07,13.01,0,3.3-.8,6.61-2.39,9.93-1.59,3.33-3.92,6.38-6.98,9.15-3.07,2.78-6.59,5.06-10.58,6.85-3.41,1.45-7.71,2.8-12.88,4.08-5.18,1.27-10.79,2.27-16.83,2.99-6.04.72-11.81,1.08-17.31,1.08-10.12,0-18.26-.95-24.42-2.86s-9.24-4.8-9.24-8.67c0-1.74,1.04-4.44,3.12-8.11s4.54-6.14,7.37-7.42c2.49-.98,4.89-1.55,7.2-1.69,2.31-.14,3.47.13,3.47.82,0,.17-.09.35-.26.52s-.38.32-.61.43c-.23.12-.46.23-.69.35-1.16.46-2.1.82-2.82,1.08-.72.26-1.3.52-1.74.78-.43.26-.65.62-.65,1.08,0,1.21,5.99,1.82,17.96,1.82,10.41,0,18.94-.38,25.59-1.13s12.52-2.11,17.61-4.08c5.09-1.97,9.71-4.68,13.88-8.15l.04.02ZM640.8,85.63h3.73c3.06-5.49,5.84-9.38,8.33-11.67,2.49-2.28,5.32-3.43,8.5-3.43s4.77.72,4.77,2.17c0,.69-1.24,2.57-3.73,5.64s-4.37,5.64-5.64,7.72c1.96.23,3.71.43,5.25.61,1.53.17,2.73.32,3.6.43-3.3,6.13-7.43,12.4-12.4,18.82l-4.08-.3c-1.1-.09-2.21-.17-3.34-.26s-2.5-.19-4.12-.3c-3.12,5.03-5.74,9.53-7.85,13.49s-3.73,7.59-4.86,10.89-1.69,6.42-1.69,9.37c0,3.99,1.59,5.99,4.77,5.99,2.2,0,5.07-1.17,8.63-3.51s8.31-5.94,14.27-10.8v5.81c-15.61,16.95-27.15,25.42-34.61,25.42-2.6,0-4.7-1.01-6.29-3.04-1.59-2.02-2.38-4.63-2.38-7.81,0-2.14.45-4.68,1.34-7.63.9-2.95,2.5-7.4,4.81-13.36-.81.69-1.58,1.37-2.3,2.04s-1.39,1.27-2,1.82-1.26,1.13-1.95,1.73c-.69.61-1.39,1.23-2.08,1.87v-5.99c6.07-5.09,13.42-14.02,22.03-26.8-.87-.06-1.68-.1-2.43-.13s-1.65-.04-2.69-.04c-3.41,0-5.96.23-7.63.69-.69.17-1.34.36-1.95.56s-1.03.3-1.26.3-.35-.17-.35-.52c0-1.91,1.18-4.77,3.56-8.59,1.91-3.24,3.72-5.64,5.42-7.2,1.71-1.56,3.79-2.62,6.25-3.17,2.46-.55,5.91-.82,10.37-.82h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M664.91,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM706.46,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M779.07,130.82v5.81c-6.19,6.07-11.23,10.79-15.14,14.14-3.9,3.35-7.55,5.96-10.93,7.81-3.38,1.85-6.69,2.78-9.93,2.78s-6.1-1.26-8.76-3.77c-2.66-2.52-4.74-5.81-6.25-9.89-1.5-4.08-2.26-8.4-2.26-12.97,0-3.93.87-7.43,2.6-10.5,1.74-3.07,5.09-7.03,10.06-11.88,5.9-5.78,11.38-10.25,16.44-13.4s9.04-4.73,11.93-4.73c2.08,0,3.85.72,5.29,2.17s2.17,3.27,2.17,5.46c0,1.85-.95,4.48-2.86,7.89-1.91,3.41-4.05,6.38-6.42,8.89-2.37,2.52-4.25,3.77-5.64,3.77-1.5,0-2.25-.81-2.25-2.43.06-.46.1-.9.13-1.3s.04-.81.04-1.21c0-.69-.25-1.08-.74-1.17s-1.08.13-1.78.65c-5.78,4.05-9.75,6.9-11.88,8.54-2.14,1.65-3.83,3.31-5.07,4.99s-1.87,3.44-1.87,5.29c0,3.41,1.1,6.19,3.3,8.33s5.06,3.21,8.59,3.21,8.02-1.4,13.14-4.21c5.12-2.8,11.15-6.9,18.09-12.27h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M844.13,130.65v5.81c-6.48,7.58-11.91,13.32-16.31,17.22s-8.07,5.86-11.02,5.86-5.39-.84-7.68-2.52c-2.29-1.68-4.34-3.99-6.16-6.94-1.82-2.95-3.98-7.05-6.46-12.32-2.95,3.64-5.61,7.04-7.98,10.19-2.37,3.15-4.02,5.25-4.94,6.29-.93,1.04-1.77,1.56-2.52,1.56-1.56,0-2.69-1-3.38-2.99-.69-2-1.04-4.9-1.04-8.72,0-5.21.62-10.22,1.87-15.05,1.24-4.83,3.04-9.53,5.38-14.1s5.35-9.5,9.02-14.79c3.67-5.29,7.79-10.83,12.36-16.61,6.3-7.98,11.74-14.5,16.31-19.56,4.57-5.06,8.54-8.88,11.93-11.45,3.38-2.57,6.2-3.86,8.46-3.86,2.78,0,4.16,1.24,4.16,3.73,0,2.14-5.12,9.85-15.35,23.12-10.24,13.27-25.16,31.39-44.76,54.35v7.46c13.13-14.05,23.69-24.49,31.71-31.31,8.01-6.82,14.21-10.24,18.61-10.24,1.79,0,3.18,1.06,4.16,3.17s1.47,4.55,1.47,7.33c0,5.67-2.43,10.92-7.29,15.74-4.86,4.83-12.32,10.37-22.38,16.61,1.74,2.6,3.27,4.5,4.6,5.68,1.33,1.19,3.01,1.78,5.03,1.78,1.79,0,3.73-.61,5.81-1.82s4.21-2.75,6.38-4.6,5.51-4.86,10.02-9.02h-.01ZM809.86,135.07c2.2-1.45,4.93-3.69,8.2-6.72,3.27-3.04,6.06-6.19,8.37-9.46s3.47-6,3.47-8.2c0-.92-.41-1.39-1.21-1.39-2.2,0-5.97,2.11-11.32,6.33-5.35,4.22-10.57,9.63-15.66,16.22,2.2,0,4.92,1.07,8.15,3.21h0ZM951.78,140.71l2.86,2.17c-.75,1.62-1.47,3.04-2.17,4.25-.69,1.21-1.53,2.69-2.52,4.42-.98,1.73-1.73,3.04-2.25,3.9-4.34,7.58-8.41,11.36-12.23,11.36-1.62,0-3.01-.64-4.16-1.91-1.16-1.27-1.73-3.01-1.73-5.2,0-3.12,1.11-7.4,3.34-12.84,2.23-5.43,5.67-12.13,10.32-20.08s10.51-16.96,17.57-27.02c7.05-10.06,15.01-20.67,23.85-31.84-5.09-.75-11.13-1.13-18.13-1.13-8.04,0-16.99.9-26.85,2.69s-18.45,3.86-25.76,6.2c-7.32,2.34-10.97,4.06-10.97,5.16,0,.41.14.68.43.82.29.15.77.26,1.43.35s1.52.19,2.56.3c6.77.93,10.15,1.97,10.15,3.12,0,.58-1.47.85-4.42.82s-6.51-.04-10.67-.04c-3.3,0-5.68-.13-7.16-.39s-2.46-.75-2.95-1.47-.74-1.84-.74-3.34c0-.98.29-3.12.87-6.42,1.1-6.13,2.79-11.04,5.07-14.75,2.28-3.7,5.78-6.72,10.5-9.06,4.71-2.34,11.2-4.21,19.47-5.59,13.88-2.37,25.36-3.56,34.44-3.56,6.71,0,12,.27,15.88.82,3.87.55,6.72,1.34,8.54,2.39,1.82,1.04,2.98,2.07,3.47,3.08s1.14,2.76,1.95,5.25l2.69,7.98c.17.52.32.94.43,1.26.12.32.22.65.3,1,.09.35.13.67.13.95,0,2.26-.51,4.28-1.52,6.07s-2.86,4.48-5.55,8.07-4.67,6.39-5.94,8.41c-14.92,24.23-25.1,42.16-30.53,53.78v.02ZM991.94,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM1033.49,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1111.3,130.82v5.64c-6.02,3.82-10.76,5.72-14.23,5.72-1.91,0-3.93-.32-6.07-.95-5.2,6.59-9.67,11.42-13.4,14.49s-7.47,4.6-11.23,4.6c-4.34,0-7.68-2.29-10.02-6.85-2.34-4.57-3.51-10.24-3.51-17,0-9.2,2.78-19.21,8.33-30.06,5.56-10.85,12.29-21.07,20.08-30.45,7.84-9.46,15.43-17.28,22.77-23.46,7.34-6.19,12.32-9.28,14.92-9.28s3.73,1.71,3.73,5.12c0,15.15-19.43,41.58-58.29,79.29-.12,1.04-.17,3.09-.17,6.16,0,7.98,2.14,11.97,6.42,11.97,1.68,0,3.37-.68,5.07-2.04,1.71-1.36,4.32-3.95,7.85-7.76-1.39-3.12-2.08-5.44-2.08-6.94,0-3.18,1.3-6.62,3.9-10.32s5.57-6.9,8.89-9.59c3.33-2.69,5.74-4.03,7.24-4.03,2.37,0,3.56,1.71,3.56,5.12,0,2.6-.68,5.72-2.04,9.37-1.36,3.64-3.34,7.81-5.94,12.49.98.81,1.76,1.4,2.34,1.78s1.45.56,2.6.56c2.66,0,5.75-1.18,9.28-3.56v-.02ZM1067.24,117.81c3.01-2.6,6.03-5.68,9.06-9.24s7.47-9.01,13.32-16.35c5.61-7.05,10.02-12.94,13.23-17.65s5.62-8.63,7.24-11.75c1.62-3.12,2.43-5.26,2.43-6.42,0-.87-.23-1.3-.69-1.3-1.27,0-3.92,2.1-7.94,6.29-4.02,4.19-8.6,9.93-13.75,17.22-7.11,10.06-12.26,17.64-15.44,22.73-3.18,5.09-5.67,10.58-7.46,16.48h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1110.96,133.08v-2.08c14.92-15.73,25.18-26.75,30.79-33.05,1.27-7.11,4.34-10.67,9.19-10.67,1.21,0,2.52.35,3.9,1.04l.52,1.65c-.23.69-.35,1.68-.35,2.95,0,1.1.42,3.14,1.26,6.12s1.49,5.48,1.95,7.5.69,4.31.69,6.85c0,3.82-.87,7.48-2.6,10.97-1.73,3.5-4.25,6.85-7.55,10.06-3.3,3.21-7.55,6.49-12.75,9.85,2.08.35,3.73.52,4.94.52,2.37,0,4.93-.59,7.68-1.78,2.75-1.18,5.55-2.78,8.41-4.77,2.86-2,6.2-4.58,10.02-7.76v5.81c-7.4,7.23-14.02,12.71-19.86,16.44s-10.87,5.59-15.09,5.59c-5.44,0-10.47-2.31-15.09-6.94-2.72-2.78-4.41-5.43-5.08-7.98-.67-2.54-1-5.99-1-10.32h.02ZM1143.31,119.8l-1.56-12.66c-3.59,4.05-11.25,11.83-22.99,23.33,3.47.75,5.84,1.76,7.11,3.04,1.27,1.27,3.06,3.73,5.38,7.37,3.93-1.62,6.95-3.83,9.07-6.64,2.11-2.8,3.17-6.64,3.17-11.49,0-.58-.01-1.1-.04-1.56s-.07-.92-.13-1.39h0Z" style="fill:#306fff; stroke-width:0px;"/><g style="isolation:isolate;"><text transform="translate(943.45 229.96)" style="fill:#00d797; font-family:ArialMT, Arial; font-size:24px; isolation:isolate;"><tspan x="0" y="0">version: ${t}</tspan></text></g></svg>`, i = "data:image/svg+xml;base64," + ar(s), f = "font-size: 1px; padding: " + Math.floor(100 / 4) + "px " + Math.floor(580 / 2) + "px; line-height: " + Math.floor(100 / 2) + "px;";
|
|
2195
|
+
}, ir = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, ar = (t) => t.replace(ir, or), Ht = mt ? (t) => Buffer.from(t, "utf8").toString("base64") : Ft ? (t) => rr(Ft.encode(t)) : (t) => pn(ar(t)), cr = (t, e = !1) => e ? nr(Ht(t)) : Ht(t), lr = (t) => {
|
|
2196
|
+
const s = `<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1167.06 237.75"><path d="M79.24,19.73h108.91v29.7h-108.91v-29.7Z" style="fill:#79a7ff; stroke-width:0px;"/><path d="M179.24,199.67H20.26c-11.21-.07-20.26-9.17-20.26-20.38V20.39C0,9.18,9.05.07,20.26,0h59.49c3.51.07,6.34,2.9,6.41,6.42v44.36c0,3.54-2.87,6.41-6.41,6.41s-6.41-2.86-6.42-6.4V12.36H20.25c-4.13.07-7.44,3.44-7.44,7.56v159.41c0,4.13,3.31,7.49,7.44,7.56h158.98c4.13-.07,7.44-3.44,7.44-7.56V51.84c0-3.54,2.87-6.41,6.41-6.42,3.55,0,6.42,2.87,6.42,6.42v127.45c0,11.21-9.05,20.32-20.26,20.39h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M192.8,60.77c-3.66-.07-6.61-3.02-6.68-6.68v-18.23c.09-4.29-3.32-7.83-7.6-7.92h-96.43c-3.69,0-6.69-2.99-6.69-6.69s2.99-6.69,6.69-6.69h96.27c11.69.08,21.13,9.58,21.13,21.27v18.25c0,3.69-2.99,6.68-6.68,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M193.08,58.67H10.15c-3.61-.08-6.48-3.07-6.41-6.68-.08-3.62,2.79-6.61,6.4-6.69,0,0,0,0,0,0h182.93c3.62.08,6.48,3.08,6.41,6.69.07,3.61-2.79,6.6-6.41,6.68h0Z" style="fill:#377dff; stroke-width:0px;"/><path d="M137.2,58.67c-3.42.24-6.4-2.32-6.68-5.74v-28.15c.55-3.69,4-6.24,7.69-5.69,2.94.44,5.24,2.75,5.69,5.69v28.15c-.28,3.42-3.26,5.98-6.68,5.74h-.02Z" style="fill:#377dff; stroke-width:0px;"/><path d="M99.78,100.48l-12.83-22.22h-18.39l31.22,54.05,31.22-54.05h-18.39l-12.83,22.22Z" style="fill:#00d797; stroke-width:0px;"/><path d="M135.28,78.26l-35.49,61.43-35.44-61.43h-20.11l55.55,96.2,55.55-96.2s-20.06,0-20.06,0ZM313.33,59.95c0,.52-.67,1.84-2,3.95s-3.3,5.2-5.9,9.28-5.75,9.28-9.46,15.61c-3.7,6.33-7.52,13.34-11.45,21.04-4.51,8.85-7.76,15.8-9.76,20.86s-2.99,9.41-2.99,13.05c0,2.89,1.53,5.44,4.6,7.63,3.7-2.89,7.34-6.33,10.93-10.32,3.58-3.99,7.13-8.44,10.63-13.36s7.55-11.13,12.14-18.65c4.6-7.52,8.69-14.43,12.27-20.73-.17-.52-.36-1.04-.56-1.56s-.3-.95-.3-1.3c0-2.72.55-5.26,1.65-7.63,1.1-2.37,2.47-4.68,4.12-6.94s4.12-5.44,7.42-9.54c.87-1.1,1.94-1.65,3.21-1.65,2.08,0,3.12,1.33,3.12,3.99s-1.08,6.84-3.25,12.53c-2.17,5.7-5.37,12.39-9.59,20.08s-9.47,16.29-15.74,25.81c-6.28,9.51-13.37,19.45-21.3,29.8-8.04,10.47-13.79,15.7-17.26,15.7-1.97,0-4.19-1.08-6.68-3.25s-4.63-5.13-6.42-8.89-2.69-7.78-2.69-12.06c0-2.54.53-5.81,1.6-9.8s2.75-8.78,5.03-14.36,4.87-11.09,7.76-16.53c3.01-5.72,5.65-10.47,7.94-14.23,2.28-3.76,4.87-7.94,7.76-12.53,2.89-4.6,4.34-7.1,4.34-7.5,0-.87-.58-1.3-1.73-1.3-3.35,0-7.82,1.71-13.4,5.12s-12.85,8.59-21.82,15.53c-3.41,2.66-5.57,4.38-6.46,5.16s-1.34,1.43-1.34,1.95c0,.69.55,1.04,1.65,1.04.46,0,2.02-.17,4.68-.52s4.77-.52,6.33-.52c2.6,0,3.9.46,3.9,1.39,0,.81-.54,1.45-1.61,1.91-1.07.46-2.54.93-4.42,1.39s-4.44,1.1-7.68,1.91c-3.47.93-7.16,2.25-11.06,3.99-3.9,1.73-6.14,2.6-6.72,2.6-1.1,0-1.78-.4-2.04-1.21s-.39-2.14-.39-3.99c0-8.21,1.36-14.56,4.08-19.04s7.58-9.15,14.57-14.01c7.98-5.55,15.61-10.16,22.9-13.84,7.29-3.67,13.58-6.36,18.87-8.07s9.18-2.56,11.67-2.56,4.84,1.56,7.24,4.68,3.6,6.42,3.6,9.89h0ZM366.34,124.75c-8.39,11.1-14.76,19-19.13,23.68s-7.94,7.03-10.71,7.03c-2.2,0-4.22-.91-6.07-2.73-1.85-1.82-3.28-4.28-4.29-7.37s-1.52-6.4-1.52-9.93c0-2.31.22-4.39.65-6.25.43-1.85,1.26-3.89,2.47-6.12s2.82-4.64,4.81-7.24c2-2.6,4.44-5.55,7.33-8.85,1.73-2.02,3.19-3.73,4.38-5.12,1.18-1.39,2.34-2.33,3.47-2.82s2.96-.74,5.51-.74c1.85,0,3.61.25,5.29.74,1.68.49,2.52,1,2.52,1.52,0,1.04-.85,2.92-2.56,5.64s-4.45,6.03-8.24,9.93c-3.79,3.9-8.17,7.74-13.14,11.49-1.1,3.41-1.65,6.01-1.65,7.81,0,2.49.95,3.73,2.86,3.73.69,0,1.85-.59,3.47-1.78,1.62-1.18,4.35-3.47,8.2-6.85,3.84-3.38,7.3-6.38,10.37-8.98,2.25-1.97,4.87-4.9,7.85-8.8s5.39-6.84,7.24-8.8c4.28-4.51,7.2-7.44,8.76-8.8s3.06-2.04,4.51-2.04,2.33.43,2.82,1.3c.49.87.74,2.63.74,5.29,0,1.21-.12,2.2-.35,2.95s-.71,1.72-1.43,2.91-2.18,3.37-4.38,6.55-4.8,6.94-7.81,11.28c-1.66,2.38-3.09,4.93-4.25,7.59-1.21,2.75-1.82,4.81-1.82,6.2,0,3.01,1.18,4.51,3.56,4.51,1.96,0,4.25-.81,6.85-2.43s6.59-4.54,11.97-8.76v5.81c-6.77,6.25-11.77,10.79-15.01,13.62s-6.04,4.97-8.41,6.42-4.63,2.17-6.77,2.17c-4.86,0-7.29-2.89-7.29-8.67,0-2.2.72-5.16,2.17-8.89,1.44-3.73,3.79-9.12,7.03-16.18v-.02Z" style="fill:#306fff; stroke-width:0px;"/><path d="M407.71,133.77v2.17c0,3.41.84,6.07,2.52,7.98,1.68,1.91,3.87,2.86,6.59,2.86s5.77-.66,8.8-2c3.04-1.33,6.06-3.09,9.07-5.29s6.68-5.15,11.02-8.85v5.29c-6.54,7.87-12.67,13.89-18.39,18.09-5.72,4.19-11.54,6.29-17.44,6.29-5.15,0-9.22-2-12.23-5.99s-4.51-9.46-4.51-16.39c0-6.07,1.42-11.58,4.25-16.52s7.46-10.16,13.88-15.66c4.39-3.76,8.76-6.59,13.1-8.5s8.21-2.86,11.62-2.86c2.72,0,4.87.62,6.46,1.86s2.39,3.11,2.39,5.59c0,3.64-1.36,7.27-4.08,10.89s-6.87,7.2-12.45,10.76c-5.58,3.56-12.45,6.98-20.6,10.28h0ZM408.58,128.13c5.2-2.02,9.66-4.54,13.36-7.55,3.7-3.01,6.43-5.88,8.2-8.63,1.76-2.75,2.65-4.76,2.65-6.03s-.61-2-1.82-2c-1.04,0-2.73.67-5.07,2s-4.71,3.07-7.11,5.21-4.55,4.66-6.46,7.55c-1.9,2.86-3.17,6.08-3.73,9.46h-.02ZM585.37,132.9c-1.45-2.66-3.61-5.06-6.51-7.2-2.89-2.14-6.15-3.86-9.76-5.16s-7.39-2.27-11.32-2.91c-11.68-1.74-22.58-5.52-32.7-11.36-.87-.46-1.79-1.44-2.78-2.95-.98-1.5-1.47-2.95-1.47-4.34,0-5.09.85-10.19,2.56-15.31,1.71-5.12,3.89-9.12,6.55-12.01,4.28-4.8,11.98-8.99,23.12-12.58,11.13-3.58,23.67-5.38,37.6-5.38,8.33,0,14.76.64,19.3,1.91s6.81,3.24,6.81,5.9c0,4.34-.59,7.69-1.78,10.06s-2.46,3.95-3.82,4.73c-1.36.78-3.75,1.84-7.16,3.17-3.64,1.27-6.81,2.6-9.5,3.99s-4.99,2.72-6.9,3.99c-1.91,1.27-3.09,1.91-3.56,1.91-.58,0-.87-.23-.87-.69,0-.98,1.03-2.47,3.08-4.47s4.58-3.74,7.59-5.25c3.18-1.68,4.77-2.75,4.77-3.21,0-.75-1.76-1.13-5.29-1.13-10.7,0-20.59.95-29.67,2.86s-16.24,4.42-21.47,7.55c-5.23,3.12-7.85,6.3-7.85,9.54,0,2.02,1.08,3.46,3.25,4.29,2.17.84,6.95,2.24,14.36,4.21,7.4,1.97,14.02,4.22,19.86,6.77,8.38,3.59,14.6,7.32,18.65,11.19,4.05,3.88,6.07,8.21,6.07,13.01,0,3.3-.8,6.61-2.39,9.93-1.59,3.33-3.92,6.38-6.98,9.15-3.07,2.78-6.59,5.06-10.58,6.85-3.41,1.45-7.71,2.8-12.88,4.08-5.18,1.27-10.79,2.27-16.83,2.99-6.04.72-11.81,1.08-17.31,1.08-10.12,0-18.26-.95-24.42-2.86s-9.24-4.8-9.24-8.67c0-1.74,1.04-4.44,3.12-8.11s4.54-6.14,7.37-7.42c2.49-.98,4.89-1.55,7.2-1.69,2.31-.14,3.47.13,3.47.82,0,.17-.09.35-.26.52s-.38.32-.61.43c-.23.12-.46.23-.69.35-1.16.46-2.1.82-2.82,1.08-.72.26-1.3.52-1.74.78-.43.26-.65.62-.65,1.08,0,1.21,5.99,1.82,17.96,1.82,10.41,0,18.94-.38,25.59-1.13s12.52-2.11,17.61-4.08c5.09-1.97,9.71-4.68,13.88-8.15l.04.02ZM640.8,85.63h3.73c3.06-5.49,5.84-9.38,8.33-11.67,2.49-2.28,5.32-3.43,8.5-3.43s4.77.72,4.77,2.17c0,.69-1.24,2.57-3.73,5.64s-4.37,5.64-5.64,7.72c1.96.23,3.71.43,5.25.61,1.53.17,2.73.32,3.6.43-3.3,6.13-7.43,12.4-12.4,18.82l-4.08-.3c-1.1-.09-2.21-.17-3.34-.26s-2.5-.19-4.12-.3c-3.12,5.03-5.74,9.53-7.85,13.49s-3.73,7.59-4.86,10.89-1.69,6.42-1.69,9.37c0,3.99,1.59,5.99,4.77,5.99,2.2,0,5.07-1.17,8.63-3.51s8.31-5.94,14.27-10.8v5.81c-15.61,16.95-27.15,25.42-34.61,25.42-2.6,0-4.7-1.01-6.29-3.04-1.59-2.02-2.38-4.63-2.38-7.81,0-2.14.45-4.68,1.34-7.63.9-2.95,2.5-7.4,4.81-13.36-.81.69-1.58,1.37-2.3,2.04s-1.39,1.27-2,1.82-1.26,1.13-1.95,1.73c-.69.61-1.39,1.23-2.08,1.87v-5.99c6.07-5.09,13.42-14.02,22.03-26.8-.87-.06-1.68-.1-2.43-.13s-1.65-.04-2.69-.04c-3.41,0-5.96.23-7.63.69-.69.17-1.34.36-1.95.56s-1.03.3-1.26.3-.35-.17-.35-.52c0-1.91,1.18-4.77,3.56-8.59,1.91-3.24,3.72-5.64,5.42-7.2,1.71-1.56,3.79-2.62,6.25-3.17,2.46-.55,5.91-.82,10.37-.82h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M664.91,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM706.46,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M779.07,130.82v5.81c-6.19,6.07-11.23,10.79-15.14,14.14-3.9,3.35-7.55,5.96-10.93,7.81-3.38,1.85-6.69,2.78-9.93,2.78s-6.1-1.26-8.76-3.77c-2.66-2.52-4.74-5.81-6.25-9.89-1.5-4.08-2.26-8.4-2.26-12.97,0-3.93.87-7.43,2.6-10.5,1.74-3.07,5.09-7.03,10.06-11.88,5.9-5.78,11.38-10.25,16.44-13.4s9.04-4.73,11.93-4.73c2.08,0,3.85.72,5.29,2.17s2.17,3.27,2.17,5.46c0,1.85-.95,4.48-2.86,7.89-1.91,3.41-4.05,6.38-6.42,8.89-2.37,2.52-4.25,3.77-5.64,3.77-1.5,0-2.25-.81-2.25-2.43.06-.46.1-.9.13-1.3s.04-.81.04-1.21c0-.69-.25-1.08-.74-1.17s-1.08.13-1.78.65c-5.78,4.05-9.75,6.9-11.88,8.54-2.14,1.65-3.83,3.31-5.07,4.99s-1.87,3.44-1.87,5.29c0,3.41,1.1,6.19,3.3,8.33s5.06,3.21,8.59,3.21,8.02-1.4,13.14-4.21c5.12-2.8,11.15-6.9,18.09-12.27h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M844.13,130.65v5.81c-6.48,7.58-11.91,13.32-16.31,17.22s-8.07,5.86-11.02,5.86-5.39-.84-7.68-2.52c-2.29-1.68-4.34-3.99-6.16-6.94-1.82-2.95-3.98-7.05-6.46-12.32-2.95,3.64-5.61,7.04-7.98,10.19-2.37,3.15-4.02,5.25-4.94,6.29-.93,1.04-1.77,1.56-2.52,1.56-1.56,0-2.69-1-3.38-2.99-.69-2-1.04-4.9-1.04-8.72,0-5.21.62-10.22,1.87-15.05,1.24-4.83,3.04-9.53,5.38-14.1s5.35-9.5,9.02-14.79c3.67-5.29,7.79-10.83,12.36-16.61,6.3-7.98,11.74-14.5,16.31-19.56,4.57-5.06,8.54-8.88,11.93-11.45,3.38-2.57,6.2-3.86,8.46-3.86,2.78,0,4.16,1.24,4.16,3.73,0,2.14-5.12,9.85-15.35,23.12-10.24,13.27-25.16,31.39-44.76,54.35v7.46c13.13-14.05,23.69-24.49,31.71-31.31,8.01-6.82,14.21-10.24,18.61-10.24,1.79,0,3.18,1.06,4.16,3.17s1.47,4.55,1.47,7.33c0,5.67-2.43,10.92-7.29,15.74-4.86,4.83-12.32,10.37-22.38,16.61,1.74,2.6,3.27,4.5,4.6,5.68,1.33,1.19,3.01,1.78,5.03,1.78,1.79,0,3.73-.61,5.81-1.82s4.21-2.75,6.38-4.6,5.51-4.86,10.02-9.02h-.01ZM809.86,135.07c2.2-1.45,4.93-3.69,8.2-6.72,3.27-3.04,6.06-6.19,8.37-9.46s3.47-6,3.47-8.2c0-.92-.41-1.39-1.21-1.39-2.2,0-5.97,2.11-11.32,6.33-5.35,4.22-10.57,9.63-15.66,16.22,2.2,0,4.92,1.07,8.15,3.21h0ZM951.78,140.71l2.86,2.17c-.75,1.62-1.47,3.04-2.17,4.25-.69,1.21-1.53,2.69-2.52,4.42-.98,1.73-1.73,3.04-2.25,3.9-4.34,7.58-8.41,11.36-12.23,11.36-1.62,0-3.01-.64-4.16-1.91-1.16-1.27-1.73-3.01-1.73-5.2,0-3.12,1.11-7.4,3.34-12.84,2.23-5.43,5.67-12.13,10.32-20.08s10.51-16.96,17.57-27.02c7.05-10.06,15.01-20.67,23.85-31.84-5.09-.75-11.13-1.13-18.13-1.13-8.04,0-16.99.9-26.85,2.69s-18.45,3.86-25.76,6.2c-7.32,2.34-10.97,4.06-10.97,5.16,0,.41.14.68.43.82.29.15.77.26,1.43.35s1.52.19,2.56.3c6.77.93,10.15,1.97,10.15,3.12,0,.58-1.47.85-4.42.82s-6.51-.04-10.67-.04c-3.3,0-5.68-.13-7.16-.39s-2.46-.75-2.95-1.47-.74-1.84-.74-3.34c0-.98.29-3.12.87-6.42,1.1-6.13,2.79-11.04,5.07-14.75,2.28-3.7,5.78-6.72,10.5-9.06,4.71-2.34,11.2-4.21,19.47-5.59,13.88-2.37,25.36-3.56,34.44-3.56,6.71,0,12,.27,15.88.82,3.87.55,6.72,1.34,8.54,2.39,1.82,1.04,2.98,2.07,3.47,3.08s1.14,2.76,1.95,5.25l2.69,7.98c.17.52.32.94.43,1.26.12.32.22.65.3,1,.09.35.13.67.13.95,0,2.26-.51,4.28-1.52,6.07s-2.86,4.48-5.55,8.07-4.67,6.39-5.94,8.41c-14.92,24.23-25.1,42.16-30.53,53.78v.02ZM991.94,115.12c8.79-7.98,17.32-13.91,25.59-17.78s14.66-5.81,19.17-5.81c1.21,0,2.34.51,3.38,1.52,1.04,1,1.88,2.19,2.47,3.51.61,1.33.91,2.31.91,2.95,0,1.04-.41,1.81-1.21,2.3-.81.49-2.23,1.08-4.25,1.78.4.93.92,2.11,1.56,3.56s1.13,2.62,1.47,3.51c.35.9.52,1.69.52,2.39,0,1.39-1.4,3.98-4.21,7.76-2.81,3.79-4.77,6.58-5.9,8.37-1.13,1.79-1.69,3.99-1.69,6.59,0,4.28,1.96,6.42,5.9,6.42s10.38-3.79,19-11.36v5.29c-14.63,16.25-25.1,24.38-31.4,24.38-2.26,0-3.86-.74-4.81-2.21s-1.43-3.66-1.43-6.55c0-4.57,1.65-11.19,4.94-19.86-8.44,9.37-14.72,16.03-18.82,20-4.11,3.96-7.49,5.94-10.15,5.94-1.27,0-2.86-1.1-4.77-3.3-1.91-2.2-3.6-5.04-5.07-8.54-1.47-3.5-2.21-7.13-2.21-10.89,0-2.72.26-4.99.78-6.81s1.53-3.69,3.04-5.59c1.5-1.91,3.9-4.42,7.2-7.55v-.02ZM1033.49,105.58c-15.04,6.88-25.75,12.72-32.14,17.52s-9.59,9.75-9.59,14.83c0,1.85.32,3.37.95,4.55.64,1.19,1.5,1.78,2.6,1.78.64,0,1.76-.4,3.38-1.21,6.07-3.58,11.62-8.25,16.66-14.01,5.03-5.75,11.07-13.58,18.13-23.46h.01Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1111.3,130.82v5.64c-6.02,3.82-10.76,5.72-14.23,5.72-1.91,0-3.93-.32-6.07-.95-5.2,6.59-9.67,11.42-13.4,14.49s-7.47,4.6-11.23,4.6c-4.34,0-7.68-2.29-10.02-6.85-2.34-4.57-3.51-10.24-3.51-17,0-9.2,2.78-19.21,8.33-30.06,5.56-10.85,12.29-21.07,20.08-30.45,7.84-9.46,15.43-17.28,22.77-23.46,7.34-6.19,12.32-9.28,14.92-9.28s3.73,1.71,3.73,5.12c0,15.15-19.43,41.58-58.29,79.29-.12,1.04-.17,3.09-.17,6.16,0,7.98,2.14,11.97,6.42,11.97,1.68,0,3.37-.68,5.07-2.04,1.71-1.36,4.32-3.95,7.85-7.76-1.39-3.12-2.08-5.44-2.08-6.94,0-3.18,1.3-6.62,3.9-10.32s5.57-6.9,8.89-9.59c3.33-2.69,5.74-4.03,7.24-4.03,2.37,0,3.56,1.71,3.56,5.12,0,2.6-.68,5.72-2.04,9.37-1.36,3.64-3.34,7.81-5.94,12.49.98.81,1.76,1.4,2.34,1.78s1.45.56,2.6.56c2.66,0,5.75-1.18,9.28-3.56v-.02ZM1067.24,117.81c3.01-2.6,6.03-5.68,9.06-9.24s7.47-9.01,13.32-16.35c5.61-7.05,10.02-12.94,13.23-17.65s5.62-8.63,7.24-11.75c1.62-3.12,2.43-5.26,2.43-6.42,0-.87-.23-1.3-.69-1.3-1.27,0-3.92,2.1-7.94,6.29-4.02,4.19-8.6,9.93-13.75,17.22-7.11,10.06-12.26,17.64-15.44,22.73-3.18,5.09-5.67,10.58-7.46,16.48h0Z" style="fill:#306fff; stroke-width:0px;"/><path d="M1110.96,133.08v-2.08c14.92-15.73,25.18-26.75,30.79-33.05,1.27-7.11,4.34-10.67,9.19-10.67,1.21,0,2.52.35,3.9,1.04l.52,1.65c-.23.69-.35,1.68-.35,2.95,0,1.1.42,3.14,1.26,6.12s1.49,5.48,1.95,7.5.69,4.31.69,6.85c0,3.82-.87,7.48-2.6,10.97-1.73,3.5-4.25,6.85-7.55,10.06-3.3,3.21-7.55,6.49-12.75,9.85,2.08.35,3.73.52,4.94.52,2.37,0,4.93-.59,7.68-1.78,2.75-1.18,5.55-2.78,8.41-4.77,2.86-2,6.2-4.58,10.02-7.76v5.81c-7.4,7.23-14.02,12.71-19.86,16.44s-10.87,5.59-15.09,5.59c-5.44,0-10.47-2.31-15.09-6.94-2.72-2.78-4.41-5.43-5.08-7.98-.67-2.54-1-5.99-1-10.32h.02ZM1143.31,119.8l-1.56-12.66c-3.59,4.05-11.25,11.83-22.99,23.33,3.47.75,5.84,1.76,7.11,3.04,1.27,1.27,3.06,3.73,5.38,7.37,3.93-1.62,6.95-3.83,9.07-6.64,2.11-2.8,3.17-6.64,3.17-11.49,0-.58-.01-1.1-.04-1.56s-.07-.92-.13-1.39h0Z" style="fill:#306fff; stroke-width:0px;"/><g style="isolation:isolate;"><text transform="translate(943.45 229.96)" style="fill:#00d797; font-family:ArialMT, Arial; font-size:24px; isolation:isolate;"><tspan x="0" y="0">version: ${t}</tspan></text></g></svg>`, i = "data:image/svg+xml;base64," + cr(s), f = "font-size: 1px; padding: " + Math.floor(100 / 4) + "px " + Math.floor(580 / 2) + "px; line-height: " + Math.floor(100 / 2) + "px;";
|
|
2189
2197
|
window.console.log(
|
|
2190
2198
|
"%c+",
|
|
2191
2199
|
f + `background-image: url(${i});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`
|
|
2192
2200
|
);
|
|
2193
|
-
},
|
|
2194
|
-
const { attrs: t, props: e } =
|
|
2195
|
-
let
|
|
2196
|
-
|
|
2201
|
+
}, ur = () => {
|
|
2202
|
+
const { attrs: t, props: e } = Jt(), { pageShown: n, getTab: s, markDeletableCache: r, removeComponent: o, getComponent: i, addPageScroller: f } = Ce(), a = On(), c = lt(), p = ge();
|
|
2203
|
+
let u = "", l = "";
|
|
2204
|
+
u = t.tId || e.tId;
|
|
2197
2205
|
const k = t.pId || e.pId;
|
|
2198
|
-
return
|
|
2206
|
+
return l = a.query.__tab, {
|
|
2199
2207
|
forward: (y) => {
|
|
2200
|
-
const
|
|
2208
|
+
const w = ne(
|
|
2201
2209
|
{
|
|
2202
|
-
__tab:
|
|
2210
|
+
__tab: l
|
|
2203
2211
|
},
|
|
2204
2212
|
y.query
|
|
2205
2213
|
);
|
|
2206
2214
|
p.emit("FORWARD"), c.push({
|
|
2207
2215
|
path: y.path,
|
|
2208
|
-
query:
|
|
2216
|
+
query: w
|
|
2209
2217
|
});
|
|
2210
2218
|
},
|
|
2211
|
-
backward: (y,
|
|
2212
|
-
const
|
|
2213
|
-
if (!
|
|
2219
|
+
backward: (y, w) => {
|
|
2220
|
+
const T = s(u);
|
|
2221
|
+
if (!T)
|
|
2214
2222
|
return;
|
|
2215
|
-
const
|
|
2216
|
-
let
|
|
2223
|
+
const g = T.pages;
|
|
2224
|
+
let _ = 0;
|
|
2217
2225
|
if (typeof y == "number")
|
|
2218
|
-
|
|
2226
|
+
_ = Math.abs(y);
|
|
2219
2227
|
else {
|
|
2220
|
-
let
|
|
2221
|
-
const
|
|
2222
|
-
|
|
2223
|
-
for (let A =
|
|
2224
|
-
if (
|
|
2225
|
-
|
|
2228
|
+
let m = 1, z = !1;
|
|
2229
|
+
const W = g.list(), G = bt(y);
|
|
2230
|
+
w = ne(G.query, w);
|
|
2231
|
+
for (let A = g.size() - 2; A >= 0; A--) {
|
|
2232
|
+
if (W[A].path === G.path) {
|
|
2233
|
+
z = !0;
|
|
2226
2234
|
break;
|
|
2227
2235
|
}
|
|
2228
|
-
|
|
2236
|
+
m += 1;
|
|
2229
2237
|
}
|
|
2230
|
-
|
|
2238
|
+
z && (_ = m);
|
|
2231
2239
|
}
|
|
2232
|
-
if (
|
|
2240
|
+
if (_ === 0 || g.size() <= _)
|
|
2233
2241
|
return;
|
|
2234
|
-
for (let
|
|
2235
|
-
const
|
|
2236
|
-
|
|
2242
|
+
for (let m = 0; m < _; m++) {
|
|
2243
|
+
const z = g.pop();
|
|
2244
|
+
r(z.id);
|
|
2237
2245
|
}
|
|
2238
|
-
const
|
|
2239
|
-
if (
|
|
2240
|
-
const
|
|
2241
|
-
|
|
2246
|
+
const d = g == null ? void 0 : g.peek(), x = i(d.id);
|
|
2247
|
+
if (x != null) {
|
|
2248
|
+
const m = x.components.DynamicComponent;
|
|
2249
|
+
m.props = ne(w, m.props);
|
|
2242
2250
|
}
|
|
2243
2251
|
p.emit("BACKWARD"), c.push({
|
|
2244
|
-
path:
|
|
2245
|
-
query:
|
|
2252
|
+
path: d.path,
|
|
2253
|
+
query: d.query
|
|
2246
2254
|
});
|
|
2247
2255
|
},
|
|
2248
2256
|
addScroller: (...y) => {
|
|
2249
2257
|
f(k, ...y);
|
|
2250
2258
|
}
|
|
2251
2259
|
};
|
|
2252
|
-
},
|
|
2260
|
+
}, vr = /* @__PURE__ */ ee({
|
|
2253
2261
|
__name: "iframe",
|
|
2254
2262
|
setup(t) {
|
|
2255
|
-
return
|
|
2263
|
+
return ur(), () => {
|
|
2256
2264
|
};
|
|
2257
2265
|
}
|
|
2258
|
-
}),
|
|
2259
|
-
const t = ge(), { attrs: e } =
|
|
2266
|
+
}), mr = () => {
|
|
2267
|
+
const t = ge(), { attrs: e } = Jt();
|
|
2260
2268
|
He(() => {
|
|
2261
2269
|
s();
|
|
2262
2270
|
});
|
|
@@ -2266,19 +2274,19 @@ const tr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" :
|
|
|
2266
2274
|
t.emit(Z.PAGE_LOADING, { tId: e.tId, value: !1 });
|
|
2267
2275
|
};
|
|
2268
2276
|
return { openTabLoading: n, closeTabLoading: s };
|
|
2269
|
-
},
|
|
2277
|
+
}, gr = {
|
|
2270
2278
|
install(t, e) {
|
|
2271
|
-
|
|
2279
|
+
lr("0.1.41"), t.component("VueStackTabs", er).use(ds).use(Vn().getI18n(e));
|
|
2272
2280
|
}
|
|
2273
2281
|
};
|
|
2274
2282
|
export {
|
|
2275
|
-
|
|
2283
|
+
vr as IFrame,
|
|
2276
2284
|
je as Stack,
|
|
2277
|
-
|
|
2278
|
-
|
|
2285
|
+
er as StackTab,
|
|
2286
|
+
ot as TabHeaderButton,
|
|
2279
2287
|
pe as TabScrollMode,
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2288
|
+
gr as default,
|
|
2289
|
+
Ks as useStackTab,
|
|
2290
|
+
mr as useTabLoading,
|
|
2291
|
+
ur as useTabRouter
|
|
2284
2292
|
};
|