vue-stack-tabs 0.1.39 → 0.1.40
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 Ee, 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 ce, onMounted as Fe, onDeactivated as gn, onActivated as yn, onUnmounted as He, createVNode as $, resolveComponent as Zt, normalizeClass as ue, 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 le, 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,22 +91,22 @@ 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
|
|
105
|
-
function
|
|
106
|
-
return
|
|
104
|
+
const Nn = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", Pn = (t) => Nn ? Symbol(t) : "_vt_" + t, en = /* @__PURE__ */ Pn("i18n");
|
|
105
|
+
function Be() {
|
|
106
|
+
return it(en);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
const e = Object.assign({ locale: "en", fallbackLocale: "en", messages: {} }, t), n = D(e.locale), s =
|
|
108
|
+
function Wn(t) {
|
|
109
|
+
const e = Object.assign({ locale: "en", fallbackLocale: "en", messages: {} }, t), n = D(e.locale), s = Ee({});
|
|
110
110
|
return Object.entries(e.messages).forEach(([r, o]) => {
|
|
111
111
|
s[r] = o;
|
|
112
112
|
}), {
|
|
@@ -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
|
|
283
|
-
var e = Math.floor(t() *
|
|
284
|
-
return e ===
|
|
281
|
+
var ut = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Se = ut.length, Tt = Math.pow(2, 48) - 1, qn = 10, Fn = 16;
|
|
282
|
+
function Hn(t) {
|
|
283
|
+
var e = Math.floor(t() * Se);
|
|
284
|
+
return e === Se && (e = Se - 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 %
|
|
296
|
+
n = t % Se, s = ut.charAt(n) + s, t = (t - n) / Se;
|
|
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,98 +526,98 @@ 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
|
-
function
|
|
565
|
+
function Oe(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 ze = /* @__PURE__ */ BigInt(2 ** 32 - 1),
|
|
591
|
-
function
|
|
592
|
-
return e ? { h: Number(t & ze), l: Number(t >>
|
|
590
|
+
const ze = /* @__PURE__ */ BigInt(2 ** 32 - 1), Ot = /* @__PURE__ */ BigInt(32);
|
|
591
|
+
function At(t, e = !1) {
|
|
592
|
+
return e ? { h: Number(t & ze), l: Number(t >> Ot & ze) } : { h: Number(t >> Ot & ze) | 0, l: Number(t & ze) | 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
|
-
if (super(), this.blockLen = e, this.outputLen = n, this.length = 0, this.pos = 0, this.finished = !1, this.destroyed = !1,
|
|
620
|
+
if (super(), this.blockLen = e, this.outputLen = n, this.length = 0, this.pos = 0, this.finished = !1, this.destroyed = !1, Oe(e), Oe(n), Oe(r), n < 0 || n > r)
|
|
621
621
|
throw new Error("outputLen bigger than keyLen");
|
|
622
622
|
if (s.key !== void 0 && (s.key.length < 1 || s.key.length > r))
|
|
623
623
|
throw new Error(`key must be up 1..${r} byte long or undefined`);
|
|
@@ -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
|
-
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,
|
|
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, Oe(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();
|
|
@@ -774,10 +774,10 @@ class ht extends os {
|
|
|
774
774
|
return this.writeInto(e);
|
|
775
775
|
}
|
|
776
776
|
xof(e) {
|
|
777
|
-
return
|
|
777
|
+
return Oe(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([]), fe = /* @__PURE__ */ new Map(), Re = /* @__PURE__ */ new Set(), F = /* @__PURE__ */ new Set(), de = D(!0),
|
|
901
|
-
let
|
|
902
|
-
const
|
|
903
|
-
const t =
|
|
900
|
+
}), M = D([]), Ge = [], N = D([]), fe = /* @__PURE__ */ new Map(), Re = /* @__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
|
+
const Me = () => {
|
|
903
|
+
const t = lt(), e = ge(), {
|
|
904
904
|
t: n
|
|
905
|
-
} =
|
|
906
|
-
for (const E of
|
|
907
|
-
const
|
|
908
|
-
id:
|
|
905
|
+
} = Be(), 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), W = ne(h, {
|
|
913
913
|
closable: !0,
|
|
914
914
|
refreshable: !0,
|
|
915
915
|
iframe: !1
|
|
916
|
-
}), Le =
|
|
916
|
+
}), Le = Bt(h.id, q.path, q.query), X = {
|
|
917
917
|
id: Le,
|
|
918
|
-
tabId:
|
|
918
|
+
tabId: h.id,
|
|
919
919
|
path: q.path,
|
|
920
920
|
query: ne(q.query, {
|
|
921
921
|
__tab: L
|
|
@@ -923,7 +923,7 @@ const Ce = () => {
|
|
|
923
923
|
}, ye = new je();
|
|
924
924
|
ye.push(X);
|
|
925
925
|
const Y = {
|
|
926
|
-
id:
|
|
926
|
+
id: h.id,
|
|
927
927
|
title: W.title,
|
|
928
928
|
closable: W.closable,
|
|
929
929
|
refreshable: W.refreshable,
|
|
@@ -935,64 +935,64 @@ const Ce = () => {
|
|
|
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, W = Bt(h.id, L === q ? q : v.path, v.query.valueOf()), Le = v.query.__src;
|
|
973
973
|
let X = null;
|
|
974
|
-
for (const Y of
|
|
975
|
-
Y.active = !1, Y.id ===
|
|
974
|
+
for (const Y of S(M))
|
|
975
|
+
Y.active = !1, Y.id === h.id && (X = Y);
|
|
976
976
|
const ye = {
|
|
977
977
|
id: W,
|
|
978
|
-
tabId:
|
|
979
|
-
path:
|
|
980
|
-
query:
|
|
978
|
+
tabId: h.id,
|
|
979
|
+
path: v.path,
|
|
980
|
+
query: v.query
|
|
981
981
|
};
|
|
982
982
|
if (X === null) {
|
|
983
983
|
const Y = new je();
|
|
984
984
|
Y.push(ye), X = {
|
|
985
|
-
id:
|
|
986
|
-
title:
|
|
987
|
-
closable:
|
|
988
|
-
refreshable:
|
|
989
|
-
iframe:
|
|
985
|
+
id: h.id,
|
|
986
|
+
title: h.title,
|
|
987
|
+
closable: h.closable,
|
|
988
|
+
refreshable: h.refreshable,
|
|
989
|
+
iframe: h.iframe,
|
|
990
990
|
url: decodeURIComponent(Le),
|
|
991
991
|
active: !0,
|
|
992
992
|
pages: Y
|
|
993
993
|
}, f(X).then(() => {
|
|
994
994
|
e.emit(Z.TAB_ACTIVE, {
|
|
995
|
-
id:
|
|
995
|
+
id: h.id,
|
|
996
996
|
isRoute: !1
|
|
997
997
|
});
|
|
998
998
|
});
|
|
@@ -1001,164 +1001,164 @@ const Ce = () => {
|
|
|
1001
1001
|
return U(X), fe.has(W) ? E = fe.get(W) : (E = /* @__PURE__ */ ee({
|
|
1002
1002
|
name: W,
|
|
1003
1003
|
components: {
|
|
1004
|
-
DynamicComponent:
|
|
1004
|
+
DynamicComponent: b
|
|
1005
1005
|
},
|
|
1006
1006
|
emits: {
|
|
1007
1007
|
onLoaded: null
|
|
1008
1008
|
},
|
|
1009
|
-
setup(Y,
|
|
1009
|
+
setup(Y, yt) {
|
|
1010
1010
|
return Fe(() => {
|
|
1011
|
-
|
|
1012
|
-
}),
|
|
1013
|
-
l(W);
|
|
1014
|
-
}), mn(() => {
|
|
1015
|
-
mt.emit("onLoaded"), p(W), P(), F.clear(), v.props = null;
|
|
1016
|
-
}), He(() => {
|
|
1011
|
+
yt.emit("onLoaded"), k(W, ".cache-page-wrapper");
|
|
1012
|
+
}), gn(() => {
|
|
1017
1013
|
u(W);
|
|
1014
|
+
}), yn(() => {
|
|
1015
|
+
yt.emit("onLoaded"), p(W), P(), F.clear(), b.props = null;
|
|
1016
|
+
}), He(() => {
|
|
1017
|
+
l(W);
|
|
1018
1018
|
}), () => $("div", {
|
|
1019
1019
|
class: "cache-page-wrapper",
|
|
1020
|
-
id: "W-" +
|
|
1021
|
-
style: [
|
|
1022
|
-
}, [$(
|
|
1023
|
-
tId:
|
|
1020
|
+
id: "W-" + h.id,
|
|
1021
|
+
style: [Ct ? "overflow:auto" : "overflow:hidden"]
|
|
1022
|
+
}, [$(Zt("dynamic-component"), {
|
|
1023
|
+
tId: h.id,
|
|
1024
1024
|
pId: W
|
|
1025
|
-
}, null), $(
|
|
1026
|
-
tId:
|
|
1025
|
+
}, null), $(ps, {
|
|
1026
|
+
tId: h.id
|
|
1027
1027
|
}, null)]);
|
|
1028
1028
|
}
|
|
1029
1029
|
}), fe.set(W, E)), A(W), E;
|
|
1030
|
-
}, p = (
|
|
1031
|
-
const
|
|
1032
|
-
if (
|
|
1033
|
-
for (const E of
|
|
1030
|
+
}, p = (v) => {
|
|
1031
|
+
const b = he.get(v);
|
|
1032
|
+
if (b) {
|
|
1033
|
+
for (const E of b.keys())
|
|
1034
1034
|
if (document.querySelector(E)) {
|
|
1035
|
-
const
|
|
1036
|
-
document.querySelector(E).scrollTop =
|
|
1035
|
+
const h = b.get(E);
|
|
1036
|
+
document.querySelector(E).scrollTop = h.top, document.querySelector(E).scrollLeft = h.left;
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
|
-
},
|
|
1040
|
-
var E,
|
|
1041
|
-
const
|
|
1042
|
-
if (
|
|
1043
|
-
for (const L of
|
|
1039
|
+
}, u = (v) => {
|
|
1040
|
+
var E, h;
|
|
1041
|
+
const b = he.get(v);
|
|
1042
|
+
if (b)
|
|
1043
|
+
for (const L of b.keys()) {
|
|
1044
1044
|
const q = {
|
|
1045
1045
|
top: ((E = document.querySelector(L)) == null ? void 0 : E.scrollTop) ?? 0,
|
|
1046
|
-
left: ((
|
|
1046
|
+
left: ((h = document.querySelector(L)) == null ? void 0 : h.scrollLeft) ?? 0
|
|
1047
1047
|
};
|
|
1048
|
-
|
|
1048
|
+
b.set(L, q);
|
|
1049
1049
|
}
|
|
1050
|
-
},
|
|
1051
|
-
const
|
|
1052
|
-
|
|
1053
|
-
}, k = (
|
|
1054
|
-
he.has(
|
|
1055
|
-
const E = he.get(
|
|
1056
|
-
for (const
|
|
1057
|
-
E.set(
|
|
1050
|
+
}, l = (v) => {
|
|
1051
|
+
const b = he.get(v);
|
|
1052
|
+
b && (b.clear(), he.delete(v));
|
|
1053
|
+
}, k = (v, ...b) => {
|
|
1054
|
+
he.has(v) || he.set(v, /* @__PURE__ */ new Map());
|
|
1055
|
+
const E = he.get(v);
|
|
1056
|
+
for (const h of b)
|
|
1057
|
+
E.set(h, {
|
|
1058
1058
|
top: 0,
|
|
1059
1059
|
left: 0
|
|
1060
1060
|
});
|
|
1061
|
-
},
|
|
1062
|
-
const
|
|
1063
|
-
for (const E of
|
|
1064
|
-
|
|
1065
|
-
P(),
|
|
1066
|
-
}, B = (
|
|
1067
|
-
let
|
|
1068
|
-
const E = a(
|
|
1069
|
-
for (let
|
|
1070
|
-
if (
|
|
1071
|
-
if (!
|
|
1072
|
-
return
|
|
1073
|
-
for (const L of
|
|
1074
|
-
|
|
1075
|
-
|
|
1061
|
+
}, O = (v) => {
|
|
1062
|
+
const b = a(v.id);
|
|
1063
|
+
for (const E of b.pages.list())
|
|
1064
|
+
m(E.id), z(E.id);
|
|
1065
|
+
P(), b.pages.clear();
|
|
1066
|
+
}, B = (v) => {
|
|
1067
|
+
let b = "";
|
|
1068
|
+
const E = a(v);
|
|
1069
|
+
for (let h = M.value.length - 1; h >= 0; h--)
|
|
1070
|
+
if (v === S(M)[h].id) {
|
|
1071
|
+
if (!S(M)[h].closable)
|
|
1072
|
+
return v;
|
|
1073
|
+
for (const L of S(M)[h].pages.list())
|
|
1074
|
+
m(L.id), z(L.id), F.add(S(M)[h].id);
|
|
1075
|
+
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
1076
|
break;
|
|
1077
1077
|
}
|
|
1078
|
-
return
|
|
1079
|
-
id:
|
|
1080
|
-
}), E != null && E.active || (P(), F.clear()),
|
|
1078
|
+
return b !== "" && e.emit(Z.TAB_ACTIVE, {
|
|
1079
|
+
id: b
|
|
1080
|
+
}), E != null && E.active || (P(), F.clear()), b;
|
|
1081
1081
|
}, I = () => {
|
|
1082
|
-
const
|
|
1083
|
-
for (let
|
|
1084
|
-
if (
|
|
1085
|
-
for (const E of
|
|
1086
|
-
|
|
1087
|
-
|
|
1082
|
+
const v = S(M);
|
|
1083
|
+
for (let b = v.length - 1; b >= 0; b--)
|
|
1084
|
+
if (v[b].closable) {
|
|
1085
|
+
for (const E of v[b].pages.list())
|
|
1086
|
+
m(E.id), z(E.id), F.add(v[b].id);
|
|
1087
|
+
S(M)[b].pages.clear(), S(M).splice(b, 1);
|
|
1088
1088
|
}
|
|
1089
|
-
for (const
|
|
1090
|
-
if (
|
|
1089
|
+
for (const b of v)
|
|
1090
|
+
if (b.active) {
|
|
1091
1091
|
P(), F.clear();
|
|
1092
1092
|
return;
|
|
1093
1093
|
}
|
|
1094
1094
|
e.emit(Z.TAB_ACTIVE, {
|
|
1095
|
-
id:
|
|
1095
|
+
id: v[v.length - 1].id
|
|
1096
1096
|
});
|
|
1097
|
-
}, y = (
|
|
1098
|
-
const
|
|
1097
|
+
}, y = (v) => {
|
|
1098
|
+
const b = S(M);
|
|
1099
1099
|
let E;
|
|
1100
|
-
for (let
|
|
1101
|
-
if (
|
|
1102
|
-
E =
|
|
1103
|
-
else if (
|
|
1104
|
-
for (const L of
|
|
1105
|
-
|
|
1106
|
-
|
|
1100
|
+
for (let h = b.length - 1; h >= 0; h--)
|
|
1101
|
+
if (b[h].id === v)
|
|
1102
|
+
E = b[h];
|
|
1103
|
+
else if (b[h].closable && b[h].id !== v) {
|
|
1104
|
+
for (const L of b[h].pages.list())
|
|
1105
|
+
m(L.id), z(L.id), F.add(b[h].id);
|
|
1106
|
+
S(M)[h].pages.clear(), S(M).splice(h, 1);
|
|
1107
1107
|
}
|
|
1108
1108
|
E.active ? (P(), F.clear()) : e.emit(Z.TAB_ACTIVE, {
|
|
1109
|
-
id:
|
|
1109
|
+
id: v
|
|
1110
1110
|
});
|
|
1111
|
-
},
|
|
1112
|
-
let
|
|
1113
|
-
const E =
|
|
1114
|
-
for (let
|
|
1115
|
-
if (E[
|
|
1116
|
-
|
|
1111
|
+
}, w = (v) => {
|
|
1112
|
+
let b = -1;
|
|
1113
|
+
const E = S(M);
|
|
1114
|
+
for (let h = 0; h < E.length; h++)
|
|
1115
|
+
if (E[h].id === v) {
|
|
1116
|
+
b = h - 1;
|
|
1117
1117
|
break;
|
|
1118
1118
|
}
|
|
1119
|
-
for (let
|
|
1120
|
-
if (E[
|
|
1121
|
-
for (const L of E[
|
|
1122
|
-
|
|
1123
|
-
|
|
1119
|
+
for (let h = b; h >= 0; h--)
|
|
1120
|
+
if (E[h].closable) {
|
|
1121
|
+
for (const L of E[h].pages.list())
|
|
1122
|
+
m(L.id), z(L.id), F.add(E[h].id);
|
|
1123
|
+
S(M)[h].pages.clear(), S(M).splice(h, 1);
|
|
1124
1124
|
}
|
|
1125
|
-
for (const
|
|
1126
|
-
if (
|
|
1125
|
+
for (const h of E)
|
|
1126
|
+
if (h.active) {
|
|
1127
1127
|
P(), F.clear();
|
|
1128
1128
|
return;
|
|
1129
1129
|
}
|
|
1130
1130
|
e.emit(Z.TAB_ACTIVE, {
|
|
1131
1131
|
id: E[0].id
|
|
1132
1132
|
});
|
|
1133
|
-
},
|
|
1134
|
-
const
|
|
1135
|
-
let E =
|
|
1136
|
-
for (let
|
|
1137
|
-
if (
|
|
1138
|
-
E =
|
|
1133
|
+
}, T = (v) => {
|
|
1134
|
+
const b = S(M);
|
|
1135
|
+
let E = b.length;
|
|
1136
|
+
for (let h = 0; h < b.length; h++)
|
|
1137
|
+
if (b[h].id === v) {
|
|
1138
|
+
E = h + 1;
|
|
1139
1139
|
break;
|
|
1140
1140
|
}
|
|
1141
|
-
for (let
|
|
1142
|
-
if (
|
|
1143
|
-
for (const L of
|
|
1144
|
-
|
|
1145
|
-
|
|
1141
|
+
for (let h = b.length - 1; h >= E; h--)
|
|
1142
|
+
if (b[h].closable) {
|
|
1143
|
+
for (const L of b[h].pages.list())
|
|
1144
|
+
m(L.id), z(L.id), F.add(b[h].id);
|
|
1145
|
+
S(M)[h].pages.clear(), S(M).splice(h, 1);
|
|
1146
1146
|
}
|
|
1147
|
-
for (const
|
|
1148
|
-
if (
|
|
1147
|
+
for (const h of b)
|
|
1148
|
+
if (h.active) {
|
|
1149
1149
|
P(), F.clear();
|
|
1150
1150
|
return;
|
|
1151
1151
|
}
|
|
1152
1152
|
e.emit(Z.TAB_ACTIVE, {
|
|
1153
|
-
id:
|
|
1153
|
+
id: b[b.length - 1].id
|
|
1154
1154
|
});
|
|
1155
|
-
},
|
|
1156
|
-
var
|
|
1157
|
-
for (const E of
|
|
1158
|
-
if (E.id ===
|
|
1159
|
-
const
|
|
1155
|
+
}, g = (v) => {
|
|
1156
|
+
var b;
|
|
1157
|
+
for (const E of S(M))
|
|
1158
|
+
if (E.id === v) {
|
|
1159
|
+
const h = (b = E.pages.peek()) == null ? void 0 : b.id;
|
|
1160
1160
|
for (let L = N.value.length - 1; L >= 0; L--)
|
|
1161
|
-
if (N.value[L] ===
|
|
1161
|
+
if (N.value[L] === h) {
|
|
1162
1162
|
N.value.splice(L, 1), E.active && (de.value = !1, ce(() => {
|
|
1163
1163
|
de.value = !0;
|
|
1164
1164
|
}));
|
|
@@ -1166,14 +1166,14 @@ const Ce = () => {
|
|
|
1166
1166
|
}
|
|
1167
1167
|
break;
|
|
1168
1168
|
}
|
|
1169
|
-
},
|
|
1170
|
-
const
|
|
1171
|
-
M.value.forEach((
|
|
1172
|
-
|
|
1169
|
+
}, _ = () => {
|
|
1170
|
+
const v = /* @__PURE__ */ new Set();
|
|
1171
|
+
M.value.forEach((b) => {
|
|
1172
|
+
v.add(b.pages.peek().id);
|
|
1173
1173
|
});
|
|
1174
|
-
for (let
|
|
1175
|
-
const E = N.value[
|
|
1176
|
-
|
|
1174
|
+
for (let b = N.value.length - 1; b >= 0; b--) {
|
|
1175
|
+
const E = N.value[b];
|
|
1176
|
+
v.has(E) && N.value.splice(b, 1);
|
|
1177
1177
|
}
|
|
1178
1178
|
ce(() => {
|
|
1179
1179
|
de.value = !1, ce(() => {
|
|
@@ -1182,30 +1182,30 @@ const Ce = () => {
|
|
|
1182
1182
|
}, 300);
|
|
1183
1183
|
});
|
|
1184
1184
|
});
|
|
1185
|
-
},
|
|
1186
|
-
fe.set(
|
|
1187
|
-
},
|
|
1188
|
-
fe.delete(
|
|
1189
|
-
},
|
|
1190
|
-
Re.add(
|
|
1185
|
+
}, d = (v, b) => {
|
|
1186
|
+
fe.set(v, b);
|
|
1187
|
+
}, x = (v) => fe.get(v), m = (v) => {
|
|
1188
|
+
fe.delete(v);
|
|
1189
|
+
}, z = (v) => {
|
|
1190
|
+
Re.add(v);
|
|
1191
1191
|
}, P = () => {
|
|
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) => {
|
|
1196
1192
|
for (let v = N.value.length - 1; v >= 0; v--)
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1193
|
+
Re.has(N.value[v]) && S(N).splice(v, 1);
|
|
1194
|
+
Re.clear();
|
|
1195
|
+
}, G = (v) => {
|
|
1196
|
+
for (let b = N.value.length - 1; b >= 0; b--)
|
|
1197
|
+
v === N.value[b] && S(N).splice(b, 1);
|
|
1198
|
+
}, A = (v) => {
|
|
1199
|
+
new Set(N.value).has(v) || N.value.push(v);
|
|
1200
|
+
}, C = (v, b = !0) => {
|
|
1201
1201
|
e.emit("FORWARD");
|
|
1202
1202
|
for (let E = M.value.length - 1; E >= 0; E--) {
|
|
1203
|
-
const
|
|
1204
|
-
if (
|
|
1205
|
-
if (
|
|
1203
|
+
const h = M.value[E];
|
|
1204
|
+
if (h.id === v) {
|
|
1205
|
+
if (h.active)
|
|
1206
1206
|
break;
|
|
1207
|
-
if (
|
|
1208
|
-
const L =
|
|
1207
|
+
if (h.active = !0, U(h), b) {
|
|
1208
|
+
const L = h.pages.peek();
|
|
1209
1209
|
t.push({
|
|
1210
1210
|
path: L.path,
|
|
1211
1211
|
query: L.query
|
|
@@ -1214,65 +1214,68 @@ const Ce = () => {
|
|
|
1214
1214
|
} else
|
|
1215
1215
|
M.value[E].active = !1;
|
|
1216
1216
|
}
|
|
1217
|
-
}, U = (
|
|
1218
|
-
window.sessionStorage.setItem(
|
|
1217
|
+
}, U = (v) => {
|
|
1218
|
+
window.sessionStorage.setItem(Ye, JSON.stringify(v));
|
|
1219
1219
|
}, re = () => {
|
|
1220
|
-
|
|
1221
|
-
|
|
1220
|
+
window.sessionStorage.removeItem(Ye);
|
|
1221
|
+
}, Ce = () => {
|
|
1222
|
+
de.value = !1, gt(), ce(() => {
|
|
1223
|
+
S(M).push(...Ge), e.emit(Z.TAB_ACTIVE, {
|
|
1222
1224
|
id: Ge[0].id
|
|
1223
1225
|
}), ce(() => {
|
|
1224
1226
|
de.value = !0;
|
|
1225
1227
|
});
|
|
1226
1228
|
});
|
|
1227
|
-
},
|
|
1228
|
-
|
|
1229
|
+
}, gt = () => {
|
|
1230
|
+
S(M).splice(0), fe.clear(), Re.clear(), F.clear(), S(N).splice(0);
|
|
1229
1231
|
};
|
|
1230
1232
|
return {
|
|
1231
1233
|
tabs: M,
|
|
1232
1234
|
caches: N,
|
|
1233
1235
|
pageShown: de,
|
|
1234
|
-
initialed:
|
|
1235
|
-
setMaxSize: (
|
|
1236
|
-
De =
|
|
1236
|
+
initialed: Mt,
|
|
1237
|
+
setMaxSize: (v) => {
|
|
1238
|
+
De = v;
|
|
1237
1239
|
},
|
|
1238
1240
|
canAddTab: i,
|
|
1239
1241
|
initial: r,
|
|
1240
1242
|
size: s,
|
|
1241
1243
|
active: C,
|
|
1242
|
-
destroy:
|
|
1243
|
-
reset:
|
|
1244
|
+
destroy: gt,
|
|
1245
|
+
reset: Ce,
|
|
1244
1246
|
addCache: A,
|
|
1245
1247
|
removeCache: G,
|
|
1246
1248
|
getTab: a,
|
|
1247
1249
|
addTab: f,
|
|
1248
1250
|
removeTab: B,
|
|
1249
1251
|
removeAllTabs: I,
|
|
1250
|
-
removeLeftTabs:
|
|
1251
|
-
removeRightTabs:
|
|
1252
|
+
removeLeftTabs: w,
|
|
1253
|
+
removeRightTabs: T,
|
|
1252
1254
|
removeOtherTabs: y,
|
|
1253
1255
|
hasTab: o,
|
|
1254
|
-
renewTab:
|
|
1256
|
+
renewTab: O,
|
|
1255
1257
|
addPage: c,
|
|
1256
|
-
addComponent:
|
|
1257
|
-
getComponent:
|
|
1258
|
-
removeComponent:
|
|
1259
|
-
markDeletableCache:
|
|
1258
|
+
addComponent: d,
|
|
1259
|
+
getComponent: x,
|
|
1260
|
+
removeComponent: m,
|
|
1261
|
+
markDeletableCache: z,
|
|
1260
1262
|
removeDeletableCache: P,
|
|
1261
|
-
refreshTab:
|
|
1262
|
-
refreshAllTabs:
|
|
1263
|
+
refreshTab: g,
|
|
1264
|
+
refreshAllTabs: _,
|
|
1263
1265
|
addPageScroller: k,
|
|
1264
|
-
setGlobalScroll: (
|
|
1265
|
-
|
|
1266
|
-
}
|
|
1266
|
+
setGlobalScroll: (v) => {
|
|
1267
|
+
Ct = v;
|
|
1268
|
+
},
|
|
1269
|
+
clearSession: re
|
|
1267
1270
|
};
|
|
1268
|
-
},
|
|
1271
|
+
}, bs = { class: "stack-tab__contextmenu-item" }, ae = /* @__PURE__ */ ee({
|
|
1269
1272
|
__name: "ContextMenuItem",
|
|
1270
1273
|
props: {
|
|
1271
1274
|
icon: {},
|
|
1272
1275
|
title: {}
|
|
1273
1276
|
},
|
|
1274
1277
|
setup(t) {
|
|
1275
|
-
return (e, n) => (
|
|
1278
|
+
return (e, n) => (R(), V("div", bs, [
|
|
1276
1279
|
Q("div", {
|
|
1277
1280
|
class: ue(["stack-tab__contextmenu-icon", e.icon])
|
|
1278
1281
|
}, null, 2),
|
|
@@ -1280,13 +1283,13 @@ const Ce = () => {
|
|
|
1280
1283
|
style: { "margin-left": "8px" },
|
|
1281
1284
|
onContextmenu: n[0] || (n[0] = _e(() => {
|
|
1282
1285
|
}, ["prevent"]))
|
|
1283
|
-
},
|
|
1286
|
+
}, jt(e.title), 33)
|
|
1284
1287
|
]));
|
|
1285
1288
|
}
|
|
1286
|
-
}),
|
|
1289
|
+
}), vs = {
|
|
1287
1290
|
key: 0,
|
|
1288
1291
|
class: "divider div-transparent"
|
|
1289
|
-
},
|
|
1292
|
+
}, ms = /* @__PURE__ */ ee({
|
|
1290
1293
|
__name: "index",
|
|
1291
1294
|
props: {
|
|
1292
1295
|
index: {},
|
|
@@ -1297,7 +1300,7 @@ const Ce = () => {
|
|
|
1297
1300
|
max: {}
|
|
1298
1301
|
},
|
|
1299
1302
|
setup(t) {
|
|
1300
|
-
const e = t, { t: n } =
|
|
1303
|
+
const e = t, { t: n } = Be(), s = D(), r = Ee({
|
|
1301
1304
|
left: e.left,
|
|
1302
1305
|
top: e.top
|
|
1303
1306
|
}), {
|
|
@@ -1307,76 +1310,76 @@ const Ce = () => {
|
|
|
1307
1310
|
removeRightTabs: a,
|
|
1308
1311
|
refreshTab: c,
|
|
1309
1312
|
refreshAllTabs: p,
|
|
1310
|
-
removeOtherTabs:
|
|
1311
|
-
} =
|
|
1313
|
+
removeOtherTabs: u
|
|
1314
|
+
} = Me();
|
|
1312
1315
|
return Fe(() => {
|
|
1313
|
-
const
|
|
1314
|
-
r.left +
|
|
1315
|
-
}), (
|
|
1316
|
+
const l = s.value ? s.value.clientWidth : 0, k = window.innerWidth;
|
|
1317
|
+
r.left + l > k && (r.left = k - l - 5);
|
|
1318
|
+
}), (l, k) => (R(), V("div", {
|
|
1316
1319
|
ref_key: "contextmenu",
|
|
1317
1320
|
ref: s,
|
|
1318
1321
|
class: "stack-tab__contextmenu",
|
|
1319
|
-
style:
|
|
1322
|
+
style: at({
|
|
1320
1323
|
left: `${r.left}px`,
|
|
1321
1324
|
top: `${r.top}px`,
|
|
1322
|
-
"z-index":
|
|
1325
|
+
"z-index": S(nn)(".stack-tab,.stack-tab *")
|
|
1323
1326
|
})
|
|
1324
1327
|
}, [
|
|
1325
1328
|
$(ae, {
|
|
1326
1329
|
icon: "stack-tab__icon-reload svg-mask",
|
|
1327
|
-
title:
|
|
1328
|
-
onClick: k[0] || (k[0] = (
|
|
1330
|
+
title: S(n)("VueStackTab.reload"),
|
|
1331
|
+
onClick: k[0] || (k[0] = (O) => S(c)(l.tabItem.id))
|
|
1329
1332
|
}, null, 8, ["title"]),
|
|
1330
1333
|
$(ae, {
|
|
1331
1334
|
icon: "stack-tab__icon-reload-all svg-mask",
|
|
1332
|
-
title:
|
|
1333
|
-
onClick:
|
|
1335
|
+
title: S(n)("VueStackTab.reloadAll"),
|
|
1336
|
+
onClick: S(p)
|
|
1334
1337
|
}, null, 8, ["title", "onClick"]),
|
|
1335
1338
|
$(ae, {
|
|
1336
1339
|
icon: "stack-tab__icon-close svg-mask",
|
|
1337
|
-
title:
|
|
1338
|
-
disabled:
|
|
1339
|
-
onClick: k[1] || (k[1] = (
|
|
1340
|
+
title: S(n)("VueStackTab.close"),
|
|
1341
|
+
disabled: l.tabItem.closable ? null : "disabled",
|
|
1342
|
+
onClick: k[1] || (k[1] = (O) => S(o)(l.tabItem.id))
|
|
1340
1343
|
}, null, 8, ["title", "disabled"]),
|
|
1341
1344
|
$(ae, {
|
|
1342
1345
|
icon: "stack-tab__icon-close-lefts svg-mask",
|
|
1343
|
-
title:
|
|
1344
|
-
disabled:
|
|
1345
|
-
onClick: k[2] || (k[2] = (
|
|
1346
|
+
title: S(n)("VueStackTab.closeLeft"),
|
|
1347
|
+
disabled: l.index <= 0 ? "disabled" : null,
|
|
1348
|
+
onClick: k[2] || (k[2] = (O) => S(f)(l.tabItem.id))
|
|
1346
1349
|
}, null, 8, ["title", "disabled"]),
|
|
1347
1350
|
$(ae, {
|
|
1348
1351
|
icon: "stack-tab__icon-close-rights svg-mask",
|
|
1349
|
-
title:
|
|
1350
|
-
disabled:
|
|
1351
|
-
onClick: k[3] || (k[3] = (
|
|
1352
|
+
title: S(n)("VueStackTab.closeRight"),
|
|
1353
|
+
disabled: l.index >= l.max - 1 ? "disabled" : null,
|
|
1354
|
+
onClick: k[3] || (k[3] = (O) => S(a)(l.tabItem.id))
|
|
1352
1355
|
}, null, 8, ["title", "disabled"]),
|
|
1353
1356
|
$(ae, {
|
|
1354
1357
|
icon: "stack-tab__icon-close-others svg-mask",
|
|
1355
|
-
title:
|
|
1356
|
-
onClick: k[4] || (k[4] = (
|
|
1358
|
+
title: S(n)("VueStackTab.closeOthers"),
|
|
1359
|
+
onClick: k[4] || (k[4] = (O) => S(u)(l.tabItem.id))
|
|
1357
1360
|
}, null, 8, ["title"]),
|
|
1358
1361
|
$(ae, {
|
|
1359
1362
|
icon: "stack-tab__icon-close-all svg-mask",
|
|
1360
|
-
title:
|
|
1361
|
-
onClick:
|
|
1363
|
+
title: S(n)("VueStackTab.closeAll"),
|
|
1364
|
+
onClick: S(i)
|
|
1362
1365
|
}, null, 8, ["title", "onClick"]),
|
|
1363
|
-
|
|
1364
|
-
(
|
|
1366
|
+
l.contextMenu !== void 0 && l.contextMenu.length > 0 ? (R(), V("div", vs)) : se("", !0),
|
|
1367
|
+
(R(!0), V(Ze, null, ct(l.contextMenu, (O, B) => (R(), me(ae, {
|
|
1365
1368
|
key: B,
|
|
1366
|
-
icon:
|
|
1367
|
-
title:
|
|
1368
|
-
disabled:
|
|
1369
|
-
onClick: (I) => !
|
|
1369
|
+
icon: O.icon,
|
|
1370
|
+
title: O.title,
|
|
1371
|
+
disabled: O.disabled(l.tabItem) ? "disabled" : null,
|
|
1372
|
+
onClick: (I) => !O.disabled && O.callback(l.tabItem.id)
|
|
1370
1373
|
}, null, 8, ["icon", "title", "disabled", "onClick"]))), 128))
|
|
1371
1374
|
], 4));
|
|
1372
1375
|
}
|
|
1373
|
-
}),
|
|
1376
|
+
}), gs = (t, e) => {
|
|
1374
1377
|
const n = t.__vccOpts || t;
|
|
1375
1378
|
for (const [s, r] of e)
|
|
1376
1379
|
n[s] = r;
|
|
1377
1380
|
return n;
|
|
1378
|
-
},
|
|
1379
|
-
const t =
|
|
1381
|
+
}, ys = /* @__PURE__ */ gs(ms, [["__scopeId", "data-v-d598be6e"]]), ws = () => {
|
|
1382
|
+
const t = Ee({
|
|
1380
1383
|
item: {},
|
|
1381
1384
|
index: -1,
|
|
1382
1385
|
left: 0,
|
|
@@ -1401,71 +1404,71 @@ const Ce = () => {
|
|
|
1401
1404
|
contextMenuData: t,
|
|
1402
1405
|
showContextMenu: n
|
|
1403
1406
|
};
|
|
1404
|
-
},
|
|
1407
|
+
}, ks = { class: "stack-tab__item-title" }, _s = ["title"], xs = ["title"], Ts = /* @__PURE__ */ ee({
|
|
1405
1408
|
__name: "TabHeaderItem",
|
|
1406
1409
|
props: {
|
|
1407
1410
|
item: {}
|
|
1408
1411
|
},
|
|
1409
1412
|
emits: ["close", "active"],
|
|
1410
1413
|
setup(t, { emit: e }) {
|
|
1411
|
-
const n = e, s = ge(), { t: r } =
|
|
1412
|
-
s.on(Z.TAB_ACTIVE, ({ id: p, isRoute:
|
|
1413
|
-
i.item.id === p && c(
|
|
1414
|
+
const n = e, s = ge(), { t: r } = Be(), o = D(), i = t;
|
|
1415
|
+
s.on(Z.TAB_ACTIVE, ({ id: p, isRoute: u }) => {
|
|
1416
|
+
i.item.id === p && c(u);
|
|
1414
1417
|
});
|
|
1415
1418
|
const f = we(() => i.item.title || r("undefined")), a = () => {
|
|
1416
1419
|
n("close", i.item);
|
|
1417
1420
|
}, c = (p = !0) => {
|
|
1418
1421
|
n("active", i.item, o, p);
|
|
1419
1422
|
};
|
|
1420
|
-
return (p,
|
|
1423
|
+
return (p, u) => (R(), V("li", {
|
|
1421
1424
|
ref_key: "curtab",
|
|
1422
1425
|
ref: o,
|
|
1423
1426
|
class: ue(["stack-tab__item", {
|
|
1424
1427
|
"is-active": p.item.active,
|
|
1425
1428
|
"is-icon": p.item.closable
|
|
1426
1429
|
}]),
|
|
1427
|
-
onClick:
|
|
1430
|
+
onClick: u[0] || (u[0] = (l) => c(!0))
|
|
1428
1431
|
}, [
|
|
1429
|
-
Q("div",
|
|
1432
|
+
Q("div", ks, [
|
|
1430
1433
|
Q("div", {
|
|
1431
1434
|
class: "stack-tab__item-title-content",
|
|
1432
1435
|
title: f.value
|
|
1433
|
-
},
|
|
1436
|
+
}, jt(f.value), 9, _s)
|
|
1434
1437
|
]),
|
|
1435
|
-
p.item.closable ? (
|
|
1438
|
+
p.item.closable ? (R(), V("div", {
|
|
1436
1439
|
key: 0,
|
|
1437
1440
|
class: "stack-tab__icon-close-fill stack-tab__item-button",
|
|
1438
|
-
title:
|
|
1441
|
+
title: S(r)("VueStackTab.close"),
|
|
1439
1442
|
onClick: _e(a, ["stop"])
|
|
1440
|
-
}, null, 8,
|
|
1443
|
+
}, null, 8, xs)) : se("", !0)
|
|
1441
1444
|
], 2));
|
|
1442
1445
|
}
|
|
1443
1446
|
});
|
|
1444
|
-
var be = [],
|
|
1447
|
+
var be = [], Ss = function() {
|
|
1445
1448
|
return be.some(function(t) {
|
|
1446
1449
|
return t.activeTargets.length > 0;
|
|
1447
1450
|
});
|
|
1448
|
-
},
|
|
1451
|
+
}, Os = function() {
|
|
1449
1452
|
return be.some(function(t) {
|
|
1450
1453
|
return t.skippedTargets.length > 0;
|
|
1451
1454
|
});
|
|
1452
|
-
},
|
|
1455
|
+
}, Lt = "ResizeObserver loop completed with undelivered notifications.", As = function() {
|
|
1453
1456
|
var t;
|
|
1454
1457
|
typeof ErrorEvent == "function" ? t = new ErrorEvent("error", {
|
|
1455
|
-
message:
|
|
1456
|
-
}) : (t = document.createEvent("Event"), t.initEvent("error", !1, !1), t.message =
|
|
1457
|
-
},
|
|
1458
|
+
message: Lt
|
|
1459
|
+
}) : (t = document.createEvent("Event"), t.initEvent("error", !1, !1), t.message = Lt), window.dispatchEvent(t);
|
|
1460
|
+
}, Ie;
|
|
1458
1461
|
(function(t) {
|
|
1459
1462
|
t.BORDER_BOX = "border-box", t.CONTENT_BOX = "content-box", t.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
1460
|
-
})(
|
|
1463
|
+
})(Ie || (Ie = {}));
|
|
1461
1464
|
var ve = function(t) {
|
|
1462
1465
|
return Object.freeze(t);
|
|
1463
|
-
},
|
|
1466
|
+
}, Es = /* @__PURE__ */ function() {
|
|
1464
1467
|
function t(e, n) {
|
|
1465
1468
|
this.inlineSize = e, this.blockSize = n, ve(this);
|
|
1466
1469
|
}
|
|
1467
1470
|
return t;
|
|
1468
|
-
}(),
|
|
1471
|
+
}(), cn = function() {
|
|
1469
1472
|
function t(e, n, s, r) {
|
|
1470
1473
|
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
1474
|
}
|
|
@@ -1475,22 +1478,22 @@ var ve = function(t) {
|
|
|
1475
1478
|
}, t.fromRect = function(e) {
|
|
1476
1479
|
return new t(e.x, e.y, e.width, e.height);
|
|
1477
1480
|
}, t;
|
|
1478
|
-
}(),
|
|
1481
|
+
}(), vt = function(t) {
|
|
1479
1482
|
return t instanceof SVGElement && "getBBox" in t;
|
|
1480
|
-
},
|
|
1481
|
-
if (
|
|
1483
|
+
}, ln = function(t) {
|
|
1484
|
+
if (vt(t)) {
|
|
1482
1485
|
var e = t.getBBox(), n = e.width, s = e.height;
|
|
1483
1486
|
return !n && !s;
|
|
1484
1487
|
}
|
|
1485
1488
|
var r = t, o = r.offsetWidth, i = r.offsetHeight;
|
|
1486
1489
|
return !(o || i || t.getClientRects().length);
|
|
1487
|
-
},
|
|
1490
|
+
}, zt = function(t) {
|
|
1488
1491
|
var e;
|
|
1489
1492
|
if (t instanceof Element)
|
|
1490
1493
|
return !0;
|
|
1491
1494
|
var n = (e = t == null ? void 0 : t.ownerDocument) === null || e === void 0 ? void 0 : e.defaultView;
|
|
1492
1495
|
return !!(n && t instanceof n.Element);
|
|
1493
|
-
},
|
|
1496
|
+
}, Is = function(t) {
|
|
1494
1497
|
switch (t.tagName) {
|
|
1495
1498
|
case "INPUT":
|
|
1496
1499
|
if (t.type !== "image")
|
|
@@ -1505,57 +1508,57 @@ var ve = function(t) {
|
|
|
1505
1508
|
return !0;
|
|
1506
1509
|
}
|
|
1507
1510
|
return !1;
|
|
1508
|
-
},
|
|
1511
|
+
}, Ae = typeof window < "u" ? window : {}, $e = /* @__PURE__ */ new WeakMap(), Rt = /auto|scroll/, Bs = /^tb|vertical/, Ms = /msie|trident/i.test(Ae.navigator && Ae.navigator.userAgent), K = function(t) {
|
|
1509
1512
|
return parseFloat(t || "0");
|
|
1510
1513
|
}, ke = function(t, e, n) {
|
|
1511
|
-
return t === void 0 && (t = 0), e === void 0 && (e = 0), n === void 0 && (n = !1), new
|
|
1512
|
-
},
|
|
1514
|
+
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);
|
|
1515
|
+
}, Dt = ve({
|
|
1513
1516
|
devicePixelContentBoxSize: ke(),
|
|
1514
1517
|
borderBoxSize: ke(),
|
|
1515
1518
|
contentBoxSize: ke(),
|
|
1516
|
-
contentRect: new
|
|
1517
|
-
}),
|
|
1519
|
+
contentRect: new cn(0, 0, 0, 0)
|
|
1520
|
+
}), un = function(t, e) {
|
|
1518
1521
|
if (e === void 0 && (e = !1), $e.has(t) && !e)
|
|
1519
1522
|
return $e.get(t);
|
|
1520
|
-
if (
|
|
1521
|
-
return $e.set(t,
|
|
1522
|
-
var n = getComputedStyle(t), s =
|
|
1523
|
-
devicePixelContentBoxSize: ke(Math.round(
|
|
1523
|
+
if (ln(t))
|
|
1524
|
+
return $e.set(t, Dt), Dt;
|
|
1525
|
+
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, P = m + I + _ + w, G = z + y + g + T, A = ve({
|
|
1526
|
+
devicePixelContentBoxSize: ke(Math.round(m * devicePixelRatio), Math.round(z * devicePixelRatio), o),
|
|
1524
1527
|
borderBoxSize: ke(P, G, o),
|
|
1525
|
-
contentBoxSize: ke(
|
|
1526
|
-
contentRect: new
|
|
1528
|
+
contentBoxSize: ke(m, z, o),
|
|
1529
|
+
contentRect: new cn(u, a, m, z)
|
|
1527
1530
|
});
|
|
1528
1531
|
return $e.set(t, A), A;
|
|
1529
|
-
},
|
|
1530
|
-
var s =
|
|
1532
|
+
}, fn = function(t, e, n) {
|
|
1533
|
+
var s = un(t, n), r = s.borderBoxSize, o = s.contentBoxSize, i = s.devicePixelContentBoxSize;
|
|
1531
1534
|
switch (e) {
|
|
1532
|
-
case
|
|
1535
|
+
case Ie.DEVICE_PIXEL_CONTENT_BOX:
|
|
1533
1536
|
return i;
|
|
1534
|
-
case
|
|
1537
|
+
case Ie.BORDER_BOX:
|
|
1535
1538
|
return r;
|
|
1536
1539
|
default:
|
|
1537
1540
|
return o;
|
|
1538
1541
|
}
|
|
1539
|
-
},
|
|
1542
|
+
}, Cs = /* @__PURE__ */ function() {
|
|
1540
1543
|
function t(e) {
|
|
1541
|
-
var n =
|
|
1544
|
+
var n = un(e);
|
|
1542
1545
|
this.target = e, this.contentRect = n.contentRect, this.borderBoxSize = ve([n.borderBoxSize]), this.contentBoxSize = ve([n.contentBoxSize]), this.devicePixelContentBoxSize = ve([n.devicePixelContentBoxSize]);
|
|
1543
1546
|
}
|
|
1544
1547
|
return t;
|
|
1545
|
-
}(),
|
|
1546
|
-
if (
|
|
1548
|
+
}(), dn = function(t) {
|
|
1549
|
+
if (ln(t))
|
|
1547
1550
|
return 1 / 0;
|
|
1548
1551
|
for (var e = 0, n = t.parentNode; n; )
|
|
1549
1552
|
e += 1, n = n.parentNode;
|
|
1550
1553
|
return e;
|
|
1551
|
-
},
|
|
1554
|
+
}, Ls = function() {
|
|
1552
1555
|
var t = 1 / 0, e = [];
|
|
1553
1556
|
be.forEach(function(i) {
|
|
1554
1557
|
if (i.activeTargets.length !== 0) {
|
|
1555
1558
|
var f = [];
|
|
1556
1559
|
i.activeTargets.forEach(function(c) {
|
|
1557
|
-
var p = new
|
|
1558
|
-
f.push(p), c.lastReportedSize =
|
|
1560
|
+
var p = new Cs(c.target), u = dn(c.target);
|
|
1561
|
+
f.push(p), c.lastReportedSize = fn(c.target, c.observedBox), u < t && (t = u);
|
|
1559
1562
|
}), e.push(function() {
|
|
1560
1563
|
i.callback.call(i.observer, f, i.observer);
|
|
1561
1564
|
}), i.activeTargets.splice(0, i.activeTargets.length);
|
|
@@ -1566,38 +1569,38 @@ var ve = function(t) {
|
|
|
1566
1569
|
r();
|
|
1567
1570
|
}
|
|
1568
1571
|
return t;
|
|
1569
|
-
},
|
|
1572
|
+
}, $t = function(t) {
|
|
1570
1573
|
be.forEach(function(n) {
|
|
1571
1574
|
n.activeTargets.splice(0, n.activeTargets.length), n.skippedTargets.splice(0, n.skippedTargets.length), n.observationTargets.forEach(function(r) {
|
|
1572
|
-
r.isActive() && (
|
|
1575
|
+
r.isActive() && (dn(r.target) > t ? n.activeTargets.push(r) : n.skippedTargets.push(r));
|
|
1573
1576
|
});
|
|
1574
1577
|
});
|
|
1575
|
-
},
|
|
1578
|
+
}, zs = function() {
|
|
1576
1579
|
var t = 0;
|
|
1577
|
-
for (
|
|
1578
|
-
t =
|
|
1579
|
-
return
|
|
1580
|
-
},
|
|
1581
|
-
return
|
|
1580
|
+
for ($t(t); Ss(); )
|
|
1581
|
+
t = Ls(), $t(t);
|
|
1582
|
+
return Os() && As(), t > 0;
|
|
1583
|
+
}, Ke, hn = [], Rs = function() {
|
|
1584
|
+
return hn.splice(0).forEach(function(t) {
|
|
1582
1585
|
return t();
|
|
1583
1586
|
});
|
|
1584
|
-
},
|
|
1585
|
-
if (!
|
|
1587
|
+
}, Ds = function(t) {
|
|
1588
|
+
if (!Ke) {
|
|
1586
1589
|
var e = 0, n = document.createTextNode(""), s = { characterData: !0 };
|
|
1587
1590
|
new MutationObserver(function() {
|
|
1588
|
-
return
|
|
1589
|
-
}).observe(n, s),
|
|
1591
|
+
return Rs();
|
|
1592
|
+
}).observe(n, s), Ke = function() {
|
|
1590
1593
|
n.textContent = "".concat(e ? e-- : e++);
|
|
1591
1594
|
};
|
|
1592
1595
|
}
|
|
1593
|
-
|
|
1594
|
-
},
|
|
1595
|
-
|
|
1596
|
+
hn.push(t), Ke();
|
|
1597
|
+
}, $s = function(t) {
|
|
1598
|
+
Ds(function() {
|
|
1596
1599
|
requestAnimationFrame(t);
|
|
1597
1600
|
});
|
|
1598
|
-
}, Ve = 0,
|
|
1601
|
+
}, Ve = 0, Ns = function() {
|
|
1599
1602
|
return !!Ve;
|
|
1600
|
-
},
|
|
1603
|
+
}, Ps = 250, Ws = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, Nt = [
|
|
1601
1604
|
"resize",
|
|
1602
1605
|
"load",
|
|
1603
1606
|
"transitionend",
|
|
@@ -1612,9 +1615,9 @@ var ve = function(t) {
|
|
|
1612
1615
|
"mouseout",
|
|
1613
1616
|
"blur",
|
|
1614
1617
|
"focus"
|
|
1615
|
-
],
|
|
1618
|
+
], Pt = function(t) {
|
|
1616
1619
|
return t === void 0 && (t = 0), Date.now() + t;
|
|
1617
|
-
},
|
|
1620
|
+
}, Je = !1, Vs = function() {
|
|
1618
1621
|
function t() {
|
|
1619
1622
|
var e = this;
|
|
1620
1623
|
this.stopped = !0, this.listener = function() {
|
|
@@ -1623,15 +1626,15 @@ var ve = function(t) {
|
|
|
1623
1626
|
}
|
|
1624
1627
|
return t.prototype.run = function(e) {
|
|
1625
1628
|
var n = this;
|
|
1626
|
-
if (e === void 0 && (e =
|
|
1627
|
-
|
|
1628
|
-
var s =
|
|
1629
|
-
|
|
1629
|
+
if (e === void 0 && (e = Ps), !Je) {
|
|
1630
|
+
Je = !0;
|
|
1631
|
+
var s = Pt(e);
|
|
1632
|
+
$s(function() {
|
|
1630
1633
|
var r = !1;
|
|
1631
1634
|
try {
|
|
1632
|
-
r =
|
|
1635
|
+
r = zs();
|
|
1633
1636
|
} finally {
|
|
1634
|
-
if (
|
|
1637
|
+
if (Je = !1, e = s - Pt(), !Ns())
|
|
1635
1638
|
return;
|
|
1636
1639
|
r ? n.run(1e3) : e > 0 ? n.run(e) : n.start();
|
|
1637
1640
|
}
|
|
@@ -1641,41 +1644,41 @@ var ve = function(t) {
|
|
|
1641
1644
|
this.stop(), this.run();
|
|
1642
1645
|
}, t.prototype.observe = function() {
|
|
1643
1646
|
var e = this, n = function() {
|
|
1644
|
-
return e.observer && e.observer.observe(document.body,
|
|
1647
|
+
return e.observer && e.observer.observe(document.body, Ws);
|
|
1645
1648
|
};
|
|
1646
|
-
document.body ? n() :
|
|
1649
|
+
document.body ? n() : Ae.addEventListener("DOMContentLoaded", n);
|
|
1647
1650
|
}, t.prototype.start = function() {
|
|
1648
1651
|
var e = this;
|
|
1649
|
-
this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(),
|
|
1650
|
-
return
|
|
1652
|
+
this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), Nt.forEach(function(n) {
|
|
1653
|
+
return Ae.addEventListener(n, e.listener, !0);
|
|
1651
1654
|
}));
|
|
1652
1655
|
}, t.prototype.stop = function() {
|
|
1653
1656
|
var e = this;
|
|
1654
|
-
this.stopped || (this.observer && this.observer.disconnect(),
|
|
1655
|
-
return
|
|
1657
|
+
this.stopped || (this.observer && this.observer.disconnect(), Nt.forEach(function(n) {
|
|
1658
|
+
return Ae.removeEventListener(n, e.listener, !0);
|
|
1656
1659
|
}), this.stopped = !0);
|
|
1657
1660
|
}, t;
|
|
1658
|
-
}(),
|
|
1659
|
-
!Ve && t > 0 &&
|
|
1660
|
-
},
|
|
1661
|
-
return !
|
|
1662
|
-
},
|
|
1661
|
+
}(), rt = new Vs(), Wt = function(t) {
|
|
1662
|
+
!Ve && t > 0 && rt.start(), Ve += t, !Ve && rt.stop();
|
|
1663
|
+
}, Us = function(t) {
|
|
1664
|
+
return !vt(t) && !Is(t) && getComputedStyle(t).display === "inline";
|
|
1665
|
+
}, qs = function() {
|
|
1663
1666
|
function t(e, n) {
|
|
1664
|
-
this.target = e, this.observedBox = n ||
|
|
1667
|
+
this.target = e, this.observedBox = n || Ie.CONTENT_BOX, this.lastReportedSize = {
|
|
1665
1668
|
inlineSize: 0,
|
|
1666
1669
|
blockSize: 0
|
|
1667
1670
|
};
|
|
1668
1671
|
}
|
|
1669
1672
|
return t.prototype.isActive = function() {
|
|
1670
|
-
var e =
|
|
1671
|
-
return
|
|
1673
|
+
var e = fn(this.target, this.observedBox, !0);
|
|
1674
|
+
return Us(this.target) && (this.lastReportedSize = e), this.lastReportedSize.inlineSize !== e.inlineSize || this.lastReportedSize.blockSize !== e.blockSize;
|
|
1672
1675
|
}, t;
|
|
1673
|
-
}(),
|
|
1676
|
+
}(), Fs = /* @__PURE__ */ function() {
|
|
1674
1677
|
function t(e, n) {
|
|
1675
1678
|
this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = e, this.callback = n;
|
|
1676
1679
|
}
|
|
1677
1680
|
return t;
|
|
1678
|
-
}(), Ne = /* @__PURE__ */ new WeakMap(),
|
|
1681
|
+
}(), Ne = /* @__PURE__ */ new WeakMap(), Vt = function(t, e) {
|
|
1679
1682
|
for (var n = 0; n < t.length; n += 1)
|
|
1680
1683
|
if (t[n].target === e)
|
|
1681
1684
|
return n;
|
|
@@ -1684,21 +1687,21 @@ var ve = function(t) {
|
|
|
1684
1687
|
function t() {
|
|
1685
1688
|
}
|
|
1686
1689
|
return t.connect = function(e, n) {
|
|
1687
|
-
var s = new
|
|
1690
|
+
var s = new Fs(e, n);
|
|
1688
1691
|
Ne.set(e, s);
|
|
1689
1692
|
}, t.observe = function(e, n, s) {
|
|
1690
1693
|
var r = Ne.get(e), o = r.observationTargets.length === 0;
|
|
1691
|
-
|
|
1694
|
+
Vt(r.observationTargets, n) < 0 && (o && be.push(r), r.observationTargets.push(new qs(n, s && s.box)), Wt(1), rt.schedule());
|
|
1692
1695
|
}, 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),
|
|
1696
|
+
var s = Ne.get(e), r = Vt(s.observationTargets, n), o = s.observationTargets.length === 1;
|
|
1697
|
+
r >= 0 && (o && be.splice(be.indexOf(s), 1), s.observationTargets.splice(r, 1), Wt(-1));
|
|
1695
1698
|
}, t.disconnect = function(e) {
|
|
1696
1699
|
var n = this, s = Ne.get(e);
|
|
1697
1700
|
s.observationTargets.slice().forEach(function(r) {
|
|
1698
1701
|
return n.unobserve(e, r.target);
|
|
1699
1702
|
}), s.activeTargets.splice(0, s.activeTargets.length);
|
|
1700
1703
|
}, t;
|
|
1701
|
-
}(),
|
|
1704
|
+
}(), Ut = function() {
|
|
1702
1705
|
function t(e) {
|
|
1703
1706
|
if (arguments.length === 0)
|
|
1704
1707
|
throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
@@ -1709,13 +1712,13 @@ var ve = function(t) {
|
|
|
1709
1712
|
return t.prototype.observe = function(e, n) {
|
|
1710
1713
|
if (arguments.length === 0)
|
|
1711
1714
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1712
|
-
if (!
|
|
1715
|
+
if (!zt(e))
|
|
1713
1716
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
1714
1717
|
Pe.observe(this, e, n);
|
|
1715
1718
|
}, t.prototype.unobserve = function(e) {
|
|
1716
1719
|
if (arguments.length === 0)
|
|
1717
1720
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1718
|
-
if (!
|
|
1721
|
+
if (!zt(e))
|
|
1719
1722
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
1720
1723
|
Pe.unobserve(this, e);
|
|
1721
1724
|
}, t.prototype.disconnect = function() {
|
|
@@ -1724,10 +1727,10 @@ var ve = function(t) {
|
|
|
1724
1727
|
return "function ResizeObserver () { [polyfill code] }";
|
|
1725
1728
|
}, t;
|
|
1726
1729
|
}();
|
|
1727
|
-
const
|
|
1730
|
+
const Hs = ["disabled", "title"], Zs = {
|
|
1728
1731
|
key: 1,
|
|
1729
1732
|
class: "stack-tab__button"
|
|
1730
|
-
},
|
|
1733
|
+
}, ot = /* @__PURE__ */ ee({
|
|
1731
1734
|
__name: "TabHeaderButton",
|
|
1732
1735
|
props: {
|
|
1733
1736
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -1736,7 +1739,7 @@ const Fs = ["disabled", "title"], Hs = {
|
|
|
1736
1739
|
title: {}
|
|
1737
1740
|
},
|
|
1738
1741
|
setup(t) {
|
|
1739
|
-
return (e, n) => (
|
|
1742
|
+
return (e, n) => (R(), V("div", {
|
|
1740
1743
|
class: ue(["stack-tab__header-button", {
|
|
1741
1744
|
"stack-tab__shadow-right": e.shadow === "right",
|
|
1742
1745
|
"stack-tab__shadow-left": e.shadow === "left"
|
|
@@ -1744,16 +1747,16 @@ const Fs = ["disabled", "title"], Hs = {
|
|
|
1744
1747
|
disabled: e.disabled ? "disabled" : null,
|
|
1745
1748
|
title: e.title
|
|
1746
1749
|
}, [
|
|
1747
|
-
"icon" in e.$slots ? se("", !0) : (
|
|
1750
|
+
"icon" in e.$slots ? se("", !0) : (R(), V("div", {
|
|
1748
1751
|
key: 0,
|
|
1749
1752
|
class: ue(["stack-tab__mask-button", e.iconClass])
|
|
1750
1753
|
}, null, 2)),
|
|
1751
|
-
"icon" in e.$slots ? (
|
|
1754
|
+
"icon" in e.$slots ? (R(), V("div", Zs, [
|
|
1752
1755
|
xe(e.$slots, "icon")
|
|
1753
1756
|
])) : se("", !0)
|
|
1754
|
-
], 10,
|
|
1757
|
+
], 10, Hs));
|
|
1755
1758
|
}
|
|
1756
|
-
}),
|
|
1759
|
+
}), js = /* @__PURE__ */ ee({
|
|
1757
1760
|
__name: "TabHeaderScroll",
|
|
1758
1761
|
props: {
|
|
1759
1762
|
space: { default: 300 },
|
|
@@ -1761,97 +1764,97 @@ const Fs = ["disabled", "title"], Hs = {
|
|
|
1761
1764
|
isScrollButton: { type: Boolean, default: !0 }
|
|
1762
1765
|
},
|
|
1763
1766
|
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,
|
|
1767
|
+
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 = Ee({
|
|
1765
1768
|
clientWidth: 0,
|
|
1766
1769
|
scrollWidth: 0,
|
|
1767
1770
|
scrollLeft: 0
|
|
1768
|
-
}),
|
|
1771
|
+
}), l = Ee({
|
|
1769
1772
|
thumbLeft: 0,
|
|
1770
1773
|
startScrollLeft: 0,
|
|
1771
1774
|
startThumbLeft: 0,
|
|
1772
1775
|
startPageX: 0
|
|
1773
1776
|
});
|
|
1774
|
-
|
|
1777
|
+
wn(u, (A) => {
|
|
1775
1778
|
k(A);
|
|
1776
1779
|
});
|
|
1777
1780
|
const k = (A) => {
|
|
1778
1781
|
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 } =
|
|
1782
|
+
}, O = we(() => u.scrollWidth > u.clientWidth), B = we(() => {
|
|
1783
|
+
if (!O.value) return 0;
|
|
1784
|
+
const { clientWidth: A, scrollWidth: C } = u;
|
|
1782
1785
|
return A / C * A;
|
|
1783
1786
|
}), I = we(() => {
|
|
1784
|
-
if (!
|
|
1785
|
-
const { clientWidth: A, scrollWidth: C, scrollLeft: U } =
|
|
1787
|
+
if (!O.value) return 0;
|
|
1788
|
+
const { clientWidth: A, scrollWidth: C, scrollLeft: U } = u;
|
|
1786
1789
|
return (A - B.value) * (U / (C - A));
|
|
1787
1790
|
}), y = () => {
|
|
1788
1791
|
if (n.value === null || n.value === void 0)
|
|
1789
1792
|
return;
|
|
1790
1793
|
const { clientWidth: A, scrollWidth: C, scrollLeft: U } = n.value;
|
|
1791
|
-
Object.assign(
|
|
1792
|
-
},
|
|
1794
|
+
Object.assign(u, { clientWidth: A, scrollWidth: C, scrollLeft: U });
|
|
1795
|
+
}, w = new Ut(() => {
|
|
1793
1796
|
var C;
|
|
1794
1797
|
y();
|
|
1795
1798
|
const A = (C = n.value) == null ? void 0 : C.querySelector(".stack-tab__item.is-active");
|
|
1796
1799
|
A && (G(A) || P(A));
|
|
1797
|
-
}),
|
|
1800
|
+
}), T = new Ut(() => {
|
|
1798
1801
|
var A;
|
|
1799
|
-
if (!
|
|
1802
|
+
if (!O.value) {
|
|
1800
1803
|
const C = (A = n.value) == null ? void 0 : A.querySelector(".stack-tab__item.is-active");
|
|
1801
1804
|
C && (G(C) || P(C));
|
|
1802
1805
|
}
|
|
1803
1806
|
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));
|
|
1807
|
+
}), g = (A, C = !0) => {
|
|
1808
|
+
tn({ wrap: n.value, left: A, smooth: C });
|
|
1811
1809
|
}, _ = (A) => {
|
|
1810
|
+
g(n.value.scrollLeft + A);
|
|
1811
|
+
}, d = (A) => {
|
|
1812
|
+
const C = A.deltaY < 0;
|
|
1813
|
+
g(n.value.scrollLeft + (C ? -p.space : p.space));
|
|
1814
|
+
}, x = (A) => {
|
|
1812
1815
|
var C;
|
|
1813
|
-
Object.assign(
|
|
1816
|
+
Object.assign(l, {
|
|
1814
1817
|
startPageX: A.pageX,
|
|
1815
1818
|
startScrollLeft: (C = n.value) == null ? void 0 : C.scrollLeft,
|
|
1816
1819
|
startThumbLeft: I.value,
|
|
1817
1820
|
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",
|
|
1821
|
+
}), o.value = !0, document.addEventListener("mousemove", m), document.addEventListener("mouseup", z);
|
|
1822
|
+
}, m = (A) => {
|
|
1823
|
+
const { clientWidth: C, scrollWidth: U } = u;
|
|
1824
|
+
let re = l.startThumbLeft + A.pageX - l.startPageX;
|
|
1825
|
+
const Ce = C - B.value;
|
|
1826
|
+
re < 0 ? re = 0 : re > Ce && (re = Ce), l.thumbLeft = re, g(re * (U - C) / (C - B.value), !1), A.preventDefault();
|
|
1827
|
+
}, z = (A) => {
|
|
1828
|
+
o.value = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", z), A.preventDefault();
|
|
1826
1829
|
};
|
|
1827
1830
|
Fe(() => {
|
|
1828
1831
|
var C;
|
|
1829
|
-
|
|
1832
|
+
w.observe(c.value);
|
|
1830
1833
|
const A = (C = n.value) == null ? void 0 : C.querySelector(".stack-tab__nav");
|
|
1831
|
-
|
|
1834
|
+
T.observe(A);
|
|
1832
1835
|
}), He(() => {
|
|
1833
|
-
|
|
1836
|
+
w.disconnect(), T.disconnect();
|
|
1834
1837
|
});
|
|
1835
1838
|
const P = (A) => {
|
|
1836
|
-
|
|
1839
|
+
Un({ el: A, wrap: n, block: "end", inline: "center" });
|
|
1837
1840
|
}, G = (A) => {
|
|
1838
|
-
if (!
|
|
1841
|
+
if (!O.value)
|
|
1839
1842
|
return !0;
|
|
1840
1843
|
const C = A.offsetLeft, U = n.value.scrollLeft;
|
|
1841
1844
|
return !(C < U || C + A.clientWidth > U + n.value.clientWidth);
|
|
1842
1845
|
};
|
|
1843
|
-
return e({ scrollIntoView: P, isInView: G }), (A, C) => (
|
|
1844
|
-
a.value ? (
|
|
1846
|
+
return e({ scrollIntoView: P, isInView: G }), (A, C) => (R(), V(Ze, null, [
|
|
1847
|
+
a.value ? (R(), me(ot, {
|
|
1845
1848
|
key: 0,
|
|
1846
1849
|
"icon-class": "stack-tab__icon-left-arrow",
|
|
1847
1850
|
disabled: i.value,
|
|
1848
|
-
onClick: C[0] || (C[0] = (U) => !i.value &&
|
|
1851
|
+
onClick: C[0] || (C[0] = (U) => !i.value && _(-1 * A.space))
|
|
1849
1852
|
}, null, 8, ["disabled"])) : se("", !0),
|
|
1850
1853
|
Q("div", {
|
|
1851
1854
|
ref_key: "headerScroll",
|
|
1852
1855
|
ref: c,
|
|
1853
1856
|
class: "stack-tab__scroll",
|
|
1854
|
-
onWheel: _e(
|
|
1857
|
+
onWheel: _e(d, ["prevent"])
|
|
1855
1858
|
}, [
|
|
1856
1859
|
Q("div", {
|
|
1857
1860
|
ref_key: "container",
|
|
@@ -1865,7 +1868,7 @@ const Fs = ["disabled", "title"], Hs = {
|
|
|
1865
1868
|
}, [
|
|
1866
1869
|
xe(A.$slots, "default")
|
|
1867
1870
|
], 34),
|
|
1868
|
-
|
|
1871
|
+
Xt(Q("div", {
|
|
1869
1872
|
ref_key: "bar",
|
|
1870
1873
|
ref: s,
|
|
1871
1874
|
class: ue(["stack-tab__scrollbar", { "is-dragging": o.value }])
|
|
@@ -1874,25 +1877,25 @@ const Fs = ["disabled", "title"], Hs = {
|
|
|
1874
1877
|
ref_key: "thumb",
|
|
1875
1878
|
ref: r,
|
|
1876
1879
|
class: ue(["stack-tab__scrollbar-thumb", { "is-dragging": o.value }]),
|
|
1877
|
-
style:
|
|
1880
|
+
style: at({
|
|
1878
1881
|
width: `${B.value}px`,
|
|
1879
1882
|
transform: `translateX(${I.value}px)`
|
|
1880
1883
|
}),
|
|
1881
|
-
onMousedown: _e(
|
|
1884
|
+
onMousedown: _e(x, ["prevent"])
|
|
1882
1885
|
}, null, 38)
|
|
1883
1886
|
], 2), [
|
|
1884
|
-
[
|
|
1887
|
+
[Gt, O.value]
|
|
1885
1888
|
])
|
|
1886
1889
|
], 544),
|
|
1887
|
-
a.value ? (
|
|
1890
|
+
a.value ? (R(), me(ot, {
|
|
1888
1891
|
key: 1,
|
|
1889
1892
|
"icon-class": "stack-tab__icon-right-arrow",
|
|
1890
1893
|
disabled: f.value,
|
|
1891
|
-
onClick: C[1] || (C[1] = (U) => !f.value &&
|
|
1894
|
+
onClick: C[1] || (C[1] = (U) => !f.value && _(A.space))
|
|
1892
1895
|
}, null, 8, ["disabled"])) : se("", !0)
|
|
1893
1896
|
], 64));
|
|
1894
1897
|
}
|
|
1895
|
-
}),
|
|
1898
|
+
}), Xs = { class: "stack-tab__header" }, Gs = /* @__PURE__ */ ee({
|
|
1896
1899
|
__name: "index",
|
|
1897
1900
|
props: {
|
|
1898
1901
|
space: {},
|
|
@@ -1905,40 +1908,40 @@ const Fs = ["disabled", "title"], Hs = {
|
|
|
1905
1908
|
},
|
|
1906
1909
|
emits: ["active"],
|
|
1907
1910
|
setup(t, { emit: e }) {
|
|
1908
|
-
const { t: n } =
|
|
1911
|
+
const { t: n } = Be(), s = it("maximum"), r = e, o = D(), { shown: i, contextMenuData: f, showContextMenu: a } = ws(), c = t, { removeTab: p, active: u, tabs: l } = Me(), k = we(() => typeof c.tabTransition == "string" ? {
|
|
1909
1912
|
name: c.tabTransition
|
|
1910
|
-
} : c.tabTransition),
|
|
1911
|
-
|
|
1912
|
-
}, y = (
|
|
1913
|
+
} : c.tabTransition), O = we(() => c.tabScrollMode === pe.BOTH || c.tabScrollMode === pe.BUTTON), B = c.tabScrollMode === pe.BOTH || c.tabScrollMode === pe.WHEEL, I = (w) => {
|
|
1914
|
+
w.closable && p(w.id), i.value = !1;
|
|
1915
|
+
}, y = (w, T, g) => {
|
|
1913
1916
|
o.value && (ce(() => {
|
|
1914
|
-
o.value.isInView(
|
|
1915
|
-
}),
|
|
1917
|
+
o.value.isInView(T.value) || o.value.scrollIntoView(T.value);
|
|
1918
|
+
}), u(w.id, g), r("active", w.id));
|
|
1916
1919
|
};
|
|
1917
|
-
return (
|
|
1918
|
-
xe(
|
|
1919
|
-
$(
|
|
1920
|
+
return (w, T) => (R(), V("div", Xs, [
|
|
1921
|
+
xe(w.$slots, "leftButton"),
|
|
1922
|
+
$(js, {
|
|
1920
1923
|
ref_key: "scroll",
|
|
1921
1924
|
ref: o,
|
|
1922
|
-
space:
|
|
1923
|
-
"is-scroll-wheel":
|
|
1924
|
-
"is-scroll-button":
|
|
1925
|
+
space: w.space,
|
|
1926
|
+
"is-scroll-wheel": S(B),
|
|
1927
|
+
"is-scroll-button": O.value
|
|
1925
1928
|
}, {
|
|
1926
1929
|
default: le(() => [
|
|
1927
|
-
$(
|
|
1930
|
+
$(Yt, kn({
|
|
1928
1931
|
key: "tabItemTrans",
|
|
1929
1932
|
tag: "ul",
|
|
1930
1933
|
class: "stack-tab__nav"
|
|
1931
1934
|
}, k.value, { appear: "" }), {
|
|
1932
1935
|
default: le(() => [
|
|
1933
|
-
(
|
|
1934
|
-
key:
|
|
1935
|
-
contextmenu:
|
|
1936
|
-
item:
|
|
1936
|
+
(R(!0), V(Ze, null, ct(S(l), (g, _) => (R(), me(Ts, {
|
|
1937
|
+
key: g.id,
|
|
1938
|
+
contextmenu: w.contextmenu,
|
|
1939
|
+
item: g,
|
|
1937
1940
|
onContextmenu: _e(
|
|
1938
|
-
(
|
|
1941
|
+
(d) => S(a)(d, g, _, S(l).length),
|
|
1939
1942
|
["prevent"]
|
|
1940
1943
|
),
|
|
1941
|
-
onMouseup: _e((
|
|
1944
|
+
onMouseup: _e((d) => I(g), ["middle", "prevent"]),
|
|
1942
1945
|
onClose: I,
|
|
1943
1946
|
onActive: y
|
|
1944
1947
|
}, null, 8, ["contextmenu", "item", "onContextmenu", "onMouseup"]))), 128))
|
|
@@ -1948,24 +1951,24 @@ const Fs = ["disabled", "title"], Hs = {
|
|
|
1948
1951
|
]),
|
|
1949
1952
|
_: 1
|
|
1950
1953
|
}, 8, ["space", "is-scroll-wheel", "is-scroll-button"]),
|
|
1951
|
-
xe(
|
|
1952
|
-
$(
|
|
1953
|
-
"icon-class":
|
|
1954
|
-
title:
|
|
1955
|
-
onClick:
|
|
1954
|
+
xe(w.$slots, "rightButton"),
|
|
1955
|
+
$(ot, {
|
|
1956
|
+
"icon-class": S(s) ? "stack-tab__icon-restore" : "stack-tab__icon-fullscreen",
|
|
1957
|
+
title: S(n)("VueStackTab.maximum"),
|
|
1958
|
+
onClick: T[0] || (T[0] = (g) => s.value = !S(s))
|
|
1956
1959
|
}, null, 8, ["icon-class", "title"]),
|
|
1957
|
-
$(
|
|
1960
|
+
$(Kt, {
|
|
1958
1961
|
name: "stack-tab-zoom",
|
|
1959
1962
|
appear: ""
|
|
1960
1963
|
}, {
|
|
1961
1964
|
default: le(() => [
|
|
1962
|
-
|
|
1965
|
+
S(i) ? (R(), me(ys, {
|
|
1963
1966
|
key: "tabMenuTrans",
|
|
1964
|
-
left:
|
|
1965
|
-
top:
|
|
1966
|
-
"tab-item":
|
|
1967
|
-
max:
|
|
1968
|
-
index:
|
|
1967
|
+
left: S(f).left,
|
|
1968
|
+
top: S(f).top,
|
|
1969
|
+
"tab-item": S(f).item,
|
|
1970
|
+
max: S(f).max,
|
|
1971
|
+
index: S(f).index
|
|
1969
1972
|
}, null, 8, ["left", "top", "tab-item", "max", "index"])) : se("", !0)
|
|
1970
1973
|
]),
|
|
1971
1974
|
_: 1
|
|
@@ -1973,34 +1976,34 @@ const Fs = ["disabled", "title"], Hs = {
|
|
|
1973
1976
|
]));
|
|
1974
1977
|
}
|
|
1975
1978
|
});
|
|
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,
|
|
1979
|
+
function Ys(t, e, n) {
|
|
1980
|
+
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
1981
|
function k() {
|
|
1979
1982
|
p && clearTimeout(p);
|
|
1980
1983
|
}
|
|
1981
|
-
function
|
|
1982
|
-
var y = I || {},
|
|
1983
|
-
k(),
|
|
1984
|
+
function O(I) {
|
|
1985
|
+
var y = I || {}, w = y.upcomingOnly, T = w === void 0 ? !1 : w;
|
|
1986
|
+
k(), u = !T;
|
|
1984
1987
|
}
|
|
1985
1988
|
function B() {
|
|
1986
|
-
for (var I = arguments.length, y = new Array(I),
|
|
1987
|
-
y[
|
|
1988
|
-
var
|
|
1989
|
-
if (
|
|
1989
|
+
for (var I = arguments.length, y = new Array(I), w = 0; w < I; w++)
|
|
1990
|
+
y[w] = arguments[w];
|
|
1991
|
+
var T = this, g = Date.now() - l;
|
|
1992
|
+
if (u)
|
|
1990
1993
|
return;
|
|
1991
|
-
function
|
|
1992
|
-
|
|
1994
|
+
function _() {
|
|
1995
|
+
l = Date.now(), e.apply(T, y);
|
|
1993
1996
|
}
|
|
1994
|
-
function
|
|
1997
|
+
function d() {
|
|
1995
1998
|
p = void 0;
|
|
1996
1999
|
}
|
|
1997
|
-
!f && c && !p &&
|
|
2000
|
+
!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
2001
|
}
|
|
1999
|
-
return B.cancel =
|
|
2002
|
+
return B.cancel = O, B;
|
|
2000
2003
|
}
|
|
2001
|
-
let
|
|
2002
|
-
const
|
|
2003
|
-
const t =
|
|
2004
|
+
let qt;
|
|
2005
|
+
const Ks = () => {
|
|
2006
|
+
const t = lt(), { active: e, hasTab: n, pageShown: s, reset: r, canAddTab: o, renewTab: i, getTab: f } = Me(), a = ge(), c = Ys(500, (k, O = !1) => new Promise((B, I) => {
|
|
2004
2007
|
if (!s.value) {
|
|
2005
2008
|
I();
|
|
2006
2009
|
return;
|
|
@@ -2010,24 +2013,24 @@ const Ys = () => {
|
|
|
2010
2013
|
closable: !0,
|
|
2011
2014
|
iframe: !1
|
|
2012
2015
|
});
|
|
2013
|
-
if (y.id &&
|
|
2016
|
+
if (y.id && O && n(y.id)) {
|
|
2014
2017
|
i(k);
|
|
2015
|
-
const
|
|
2016
|
-
|
|
2018
|
+
const w = f(k.id);
|
|
2019
|
+
w != null && w.active && (s.value = !1, ce(() => {
|
|
2017
2020
|
s.value = !0;
|
|
2018
2021
|
}));
|
|
2019
2022
|
}
|
|
2020
|
-
if (n(y.id) && !
|
|
2023
|
+
if (n(y.id) && !O) {
|
|
2021
2024
|
a.emit(Z.TAB_ACTIVE, { id: y.id }), B(y.id);
|
|
2022
2025
|
return;
|
|
2023
2026
|
}
|
|
2024
|
-
if (y.id || (y.id =
|
|
2027
|
+
if (y.id || (y.id = Qe()), !o()) {
|
|
2025
2028
|
I("Max Size");
|
|
2026
2029
|
return;
|
|
2027
2030
|
}
|
|
2028
2031
|
p(k, y), B(y.id);
|
|
2029
|
-
})), p = (k,
|
|
2030
|
-
const B =
|
|
2032
|
+
})), p = (k, O) => {
|
|
2033
|
+
const B = nt(O);
|
|
2031
2034
|
let I = ne(
|
|
2032
2035
|
{
|
|
2033
2036
|
__tab: B
|
|
@@ -2035,11 +2038,11 @@ const Ys = () => {
|
|
|
2035
2038
|
k.query
|
|
2036
2039
|
), y;
|
|
2037
2040
|
if (k.iframe) {
|
|
2038
|
-
const
|
|
2039
|
-
y =
|
|
2041
|
+
const w = encodeURIComponent(k.path);
|
|
2042
|
+
y = qt, I.__src = w;
|
|
2040
2043
|
} else {
|
|
2041
|
-
const
|
|
2042
|
-
y =
|
|
2044
|
+
const w = bt(k.path);
|
|
2045
|
+
y = w.path, I = ne(w.query, I);
|
|
2043
2046
|
}
|
|
2044
2047
|
t.push({
|
|
2045
2048
|
path: y,
|
|
@@ -2047,9 +2050,9 @@ const Ys = () => {
|
|
|
2047
2050
|
});
|
|
2048
2051
|
};
|
|
2049
2052
|
return { openNewTab: c, setIFramePath: (k) => {
|
|
2050
|
-
|
|
2053
|
+
qt = k;
|
|
2051
2054
|
}, active: e, reset: r, getWrapper: () => document.getElementsByClassName("cache-page-wrapper")[0] };
|
|
2052
|
-
},
|
|
2055
|
+
}, Js = { class: "stack-tab__container" }, Qs = ["src"], er = /* @__PURE__ */ ee({
|
|
2053
2056
|
__name: "StackTabs",
|
|
2054
2057
|
props: {
|
|
2055
2058
|
defaultTabs: { default: () => [] },
|
|
@@ -2069,62 +2072,64 @@ const Ys = () => {
|
|
|
2069
2072
|
},
|
|
2070
2073
|
emits: ["onActive", "onPageLoaded"],
|
|
2071
2074
|
setup(t, { emit: e }) {
|
|
2072
|
-
const { tabs: n, pageShown: s, caches: r, destroy: o, addPage: i, initial: f, setMaxSize: a, setGlobalScroll: c } =
|
|
2073
|
-
|
|
2074
|
-
const { setIFramePath:
|
|
2075
|
-
|
|
2075
|
+
const { tabs: n, pageShown: s, caches: r, destroy: o, addPage: i, initial: f, setMaxSize: a, setGlobalScroll: c, clearSession: p } = Me(), u = e, l = t, { changeLocale: k } = Be(), O = D(!1);
|
|
2076
|
+
_n("maximum", O);
|
|
2077
|
+
const { setIFramePath: B } = Ks();
|
|
2078
|
+
B(l.iframePath), c(l.globalScroll), k(l.i18n), xn(() => {
|
|
2076
2079
|
f(l.defaultTabs);
|
|
2077
2080
|
});
|
|
2078
|
-
const
|
|
2079
|
-
|
|
2081
|
+
const I = (_, d) => i(_, d), y = (_) => {
|
|
2082
|
+
u("onActive", _);
|
|
2080
2083
|
};
|
|
2081
|
-
a(l.max),
|
|
2084
|
+
a(l.max), _t(() => {
|
|
2082
2085
|
o();
|
|
2083
2086
|
});
|
|
2084
|
-
const
|
|
2085
|
-
|
|
2086
|
-
},
|
|
2087
|
-
return
|
|
2088
|
-
|
|
2089
|
-
}),
|
|
2090
|
-
|
|
2091
|
-
}), (
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2087
|
+
const w = () => {
|
|
2088
|
+
u("onPageLoaded");
|
|
2089
|
+
}, T = D(l.pageTransition), g = ge();
|
|
2090
|
+
return g.on("FORWARD", () => {
|
|
2091
|
+
T.value = l.pageTransition;
|
|
2092
|
+
}), g.on("BACKWARD", () => {
|
|
2093
|
+
T.value = l.pageTransitionBack;
|
|
2094
|
+
}), _t(() => {
|
|
2095
|
+
p();
|
|
2096
|
+
}), (_, d) => {
|
|
2097
|
+
const x = Zt("router-view");
|
|
2098
|
+
return R(), V("div", {
|
|
2099
|
+
class: ue(["stack-tab", { "stack-tab__maximum": O.value }]),
|
|
2100
|
+
style: at({
|
|
2101
|
+
width: _.width,
|
|
2102
|
+
height: _.height,
|
|
2103
|
+
"z-index": O.value ? S(nn)("body *:not(.stack-tab,.stack-tab *)") : void 0
|
|
2099
2104
|
})
|
|
2100
2105
|
}, [
|
|
2101
|
-
$(
|
|
2102
|
-
space:
|
|
2103
|
-
onActive:
|
|
2104
|
-
"tab-transition":
|
|
2105
|
-
max:
|
|
2106
|
+
$(Gs, {
|
|
2107
|
+
space: _.space,
|
|
2108
|
+
onActive: y,
|
|
2109
|
+
"tab-transition": _.tabTransition,
|
|
2110
|
+
max: _.max
|
|
2106
2111
|
}, {
|
|
2107
2112
|
leftButton: le(() => [
|
|
2108
|
-
xe(
|
|
2113
|
+
xe(_.$slots, "leftButton")
|
|
2109
2114
|
]),
|
|
2110
2115
|
rightButton: le(() => [
|
|
2111
|
-
xe(
|
|
2116
|
+
xe(_.$slots, "rightButton")
|
|
2112
2117
|
]),
|
|
2113
2118
|
_: 3
|
|
2114
2119
|
}, 8, ["space", "tab-transition", "max"]),
|
|
2115
|
-
Q("div",
|
|
2116
|
-
$(
|
|
2117
|
-
default: le(({ Component:
|
|
2118
|
-
$(
|
|
2119
|
-
name:
|
|
2120
|
+
Q("div", Js, [
|
|
2121
|
+
$(x, null, {
|
|
2122
|
+
default: le(({ Component: m, route: z }) => [
|
|
2123
|
+
$(Kt, {
|
|
2124
|
+
name: T.value,
|
|
2120
2125
|
appear: "",
|
|
2121
2126
|
mode: "out-in"
|
|
2122
2127
|
}, {
|
|
2123
2128
|
default: le(() => [
|
|
2124
|
-
(
|
|
2125
|
-
|
|
2126
|
-
key:
|
|
2127
|
-
onOnLoaded:
|
|
2129
|
+
(R(), me(Tn, { include: S(r) }, [
|
|
2130
|
+
S(s) ? (R(), me(Sn(I(z, m)), {
|
|
2131
|
+
key: z.fullPath,
|
|
2132
|
+
onOnLoaded: w
|
|
2128
2133
|
}, null, 32)) : se("", !0)
|
|
2129
2134
|
], 1032, ["include"]))
|
|
2130
2135
|
]),
|
|
@@ -2133,18 +2138,18 @@ const Ys = () => {
|
|
|
2133
2138
|
]),
|
|
2134
2139
|
_: 1
|
|
2135
2140
|
}),
|
|
2136
|
-
$(
|
|
2137
|
-
name:
|
|
2141
|
+
$(Yt, {
|
|
2142
|
+
name: _.pageTransition,
|
|
2138
2143
|
appear: ""
|
|
2139
2144
|
}, {
|
|
2140
2145
|
default: le(() => [
|
|
2141
|
-
(
|
|
2142
|
-
key:
|
|
2146
|
+
(R(!0), V(Ze, null, ct(S(n).filter((m) => m.iframe), (m) => Xt((R(), V("iframe", {
|
|
2147
|
+
key: m.id,
|
|
2143
2148
|
class: "stack-tab__iframe",
|
|
2144
|
-
src: /^(javascript|data):/i.test(
|
|
2149
|
+
src: /^(javascript|data):/i.test(m.url ?? "") ? "about:blank" : m.url,
|
|
2145
2150
|
frameborder: "0"
|
|
2146
|
-
}, null, 8,
|
|
2147
|
-
[
|
|
2151
|
+
}, null, 8, Qs)), [
|
|
2152
|
+
[Gt, m.active]
|
|
2148
2153
|
])), 128))
|
|
2149
2154
|
]),
|
|
2150
2155
|
_: 1
|
|
@@ -2153,30 +2158,30 @@ const Ys = () => {
|
|
|
2153
2158
|
], 6);
|
|
2154
2159
|
};
|
|
2155
2160
|
}
|
|
2156
|
-
}),
|
|
2161
|
+
}), mt = typeof Buffer == "function";
|
|
2157
2162
|
typeof TextDecoder == "function" && new TextDecoder();
|
|
2158
|
-
const
|
|
2163
|
+
const Ft = typeof TextEncoder == "function" ? new TextEncoder() : void 0, tr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Te = Array.prototype.slice.call(tr);
|
|
2159
2164
|
((t) => {
|
|
2160
2165
|
let e = {};
|
|
2161
2166
|
return t.forEach((n, s) => e[n] = s), e;
|
|
2162
|
-
})(
|
|
2167
|
+
})(Te);
|
|
2163
2168
|
const J = String.fromCharCode.bind(String);
|
|
2164
2169
|
typeof Uint8Array.from == "function" && Uint8Array.from.bind(Uint8Array);
|
|
2165
|
-
const
|
|
2170
|
+
const nr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" : "_"), sr = (t) => {
|
|
2166
2171
|
let e, n, s, r, o = "";
|
|
2167
2172
|
const i = t.length % 3;
|
|
2168
2173
|
for (let f = 0; f < t.length; ) {
|
|
2169
2174
|
if ((n = t.charCodeAt(f++)) > 255 || (s = t.charCodeAt(f++)) > 255 || (r = t.charCodeAt(f++)) > 255)
|
|
2170
2175
|
throw new TypeError("invalid character found");
|
|
2171
|
-
e = n << 16 | s << 8 | r, o +=
|
|
2176
|
+
e = n << 16 | s << 8 | r, o += Te[e >> 18 & 63] + Te[e >> 12 & 63] + Te[e >> 6 & 63] + Te[e & 63];
|
|
2172
2177
|
}
|
|
2173
2178
|
return i ? o.slice(0, i - 3) + "===".substring(i) : o;
|
|
2174
|
-
},
|
|
2179
|
+
}, 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
2180
|
let n = [];
|
|
2176
2181
|
for (let s = 0, r = t.length; s < r; s += 4096)
|
|
2177
2182
|
n.push(J.apply(null, t.subarray(s, s + 4096)));
|
|
2178
|
-
return
|
|
2179
|
-
},
|
|
2183
|
+
return pn(n.join(""));
|
|
2184
|
+
}, or = (t) => {
|
|
2180
2185
|
if (t.length < 2) {
|
|
2181
2186
|
var e = t.charCodeAt(0);
|
|
2182
2187
|
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 +2189,79 @@ const tr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" :
|
|
|
2184
2189
|
var e = 65536 + (t.charCodeAt(0) - 55296) * 1024 + (t.charCodeAt(1) - 56320);
|
|
2185
2190
|
return J(240 | e >>> 18 & 7) + J(128 | e >>> 12 & 63) + J(128 | e >>> 6 & 63) + J(128 | e & 63);
|
|
2186
2191
|
}
|
|
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;";
|
|
2192
|
+
}, 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) => {
|
|
2193
|
+
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
2194
|
window.console.log(
|
|
2190
2195
|
"%c+",
|
|
2191
2196
|
f + `background-image: url(${i});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`
|
|
2192
2197
|
);
|
|
2193
|
-
},
|
|
2194
|
-
const { attrs: t, props: e } =
|
|
2195
|
-
let
|
|
2196
|
-
|
|
2198
|
+
}, ur = () => {
|
|
2199
|
+
const { attrs: t, props: e } = Jt(), { pageShown: n, getTab: s, markDeletableCache: r, removeComponent: o, getComponent: i, addPageScroller: f } = Me(), a = On(), c = lt(), p = ge();
|
|
2200
|
+
let u = "", l = "";
|
|
2201
|
+
u = t.tId || e.tId;
|
|
2197
2202
|
const k = t.pId || e.pId;
|
|
2198
|
-
return
|
|
2203
|
+
return l = a.query.__tab, {
|
|
2199
2204
|
forward: (y) => {
|
|
2200
|
-
const
|
|
2205
|
+
const w = ne(
|
|
2201
2206
|
{
|
|
2202
|
-
__tab:
|
|
2207
|
+
__tab: l
|
|
2203
2208
|
},
|
|
2204
2209
|
y.query
|
|
2205
2210
|
);
|
|
2206
2211
|
p.emit("FORWARD"), c.push({
|
|
2207
2212
|
path: y.path,
|
|
2208
|
-
query:
|
|
2213
|
+
query: w
|
|
2209
2214
|
});
|
|
2210
2215
|
},
|
|
2211
|
-
backward: (y,
|
|
2212
|
-
const
|
|
2213
|
-
if (!
|
|
2216
|
+
backward: (y, w) => {
|
|
2217
|
+
const T = s(u);
|
|
2218
|
+
if (!T)
|
|
2214
2219
|
return;
|
|
2215
|
-
const
|
|
2216
|
-
let
|
|
2220
|
+
const g = T.pages;
|
|
2221
|
+
let _ = 0;
|
|
2217
2222
|
if (typeof y == "number")
|
|
2218
|
-
|
|
2223
|
+
_ = Math.abs(y);
|
|
2219
2224
|
else {
|
|
2220
|
-
let
|
|
2221
|
-
const P =
|
|
2222
|
-
|
|
2223
|
-
for (let A =
|
|
2225
|
+
let m = 1, z = !1;
|
|
2226
|
+
const P = g.list(), G = bt(y);
|
|
2227
|
+
w = ne(G.query, w);
|
|
2228
|
+
for (let A = g.size() - 2; A >= 0; A--) {
|
|
2224
2229
|
if (P[A].path === G.path) {
|
|
2225
|
-
|
|
2230
|
+
z = !0;
|
|
2226
2231
|
break;
|
|
2227
2232
|
}
|
|
2228
|
-
|
|
2233
|
+
m += 1;
|
|
2229
2234
|
}
|
|
2230
|
-
|
|
2235
|
+
z && (_ = m);
|
|
2231
2236
|
}
|
|
2232
|
-
if (
|
|
2237
|
+
if (_ === 0 || g.size() <= _)
|
|
2233
2238
|
return;
|
|
2234
|
-
for (let
|
|
2235
|
-
const
|
|
2236
|
-
o(
|
|
2239
|
+
for (let m = 0; m < _; m++) {
|
|
2240
|
+
const z = g.pop();
|
|
2241
|
+
o(z.id), r(z.id);
|
|
2237
2242
|
}
|
|
2238
|
-
const
|
|
2239
|
-
if (
|
|
2240
|
-
const
|
|
2241
|
-
|
|
2243
|
+
const d = g == null ? void 0 : g.peek(), x = i(d.id);
|
|
2244
|
+
if (x != null) {
|
|
2245
|
+
const m = x.components.DynamicComponent;
|
|
2246
|
+
m.props = ne(w, m.props);
|
|
2242
2247
|
}
|
|
2243
2248
|
p.emit("BACKWARD"), c.push({
|
|
2244
|
-
path:
|
|
2245
|
-
query:
|
|
2249
|
+
path: d.path,
|
|
2250
|
+
query: d.query
|
|
2246
2251
|
});
|
|
2247
2252
|
},
|
|
2248
2253
|
addScroller: (...y) => {
|
|
2249
2254
|
f(k, ...y);
|
|
2250
2255
|
}
|
|
2251
2256
|
};
|
|
2252
|
-
},
|
|
2257
|
+
}, vr = /* @__PURE__ */ ee({
|
|
2253
2258
|
__name: "iframe",
|
|
2254
2259
|
setup(t) {
|
|
2255
|
-
return
|
|
2260
|
+
return ur(), () => {
|
|
2256
2261
|
};
|
|
2257
2262
|
}
|
|
2258
|
-
}),
|
|
2259
|
-
const t = ge(), { attrs: e } =
|
|
2263
|
+
}), mr = () => {
|
|
2264
|
+
const t = ge(), { attrs: e } = Jt();
|
|
2260
2265
|
He(() => {
|
|
2261
2266
|
s();
|
|
2262
2267
|
});
|
|
@@ -2266,19 +2271,19 @@ const tr = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" :
|
|
|
2266
2271
|
t.emit(Z.PAGE_LOADING, { tId: e.tId, value: !1 });
|
|
2267
2272
|
};
|
|
2268
2273
|
return { openTabLoading: n, closeTabLoading: s };
|
|
2269
|
-
},
|
|
2274
|
+
}, gr = {
|
|
2270
2275
|
install(t, e) {
|
|
2271
|
-
|
|
2276
|
+
lr("0.1.40"), t.component("VueStackTabs", er).use(ds).use(Vn().getI18n(e));
|
|
2272
2277
|
}
|
|
2273
2278
|
};
|
|
2274
2279
|
export {
|
|
2275
|
-
|
|
2280
|
+
vr as IFrame,
|
|
2276
2281
|
je as Stack,
|
|
2277
|
-
|
|
2278
|
-
|
|
2282
|
+
er as StackTab,
|
|
2283
|
+
ot as TabHeaderButton,
|
|
2279
2284
|
pe as TabScrollMode,
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2285
|
+
gr as default,
|
|
2286
|
+
Ks as useStackTab,
|
|
2287
|
+
mr as useTabLoading,
|
|
2288
|
+
ur as useTabRouter
|
|
2284
2289
|
};
|