vue-stack-tabs 0.1.51 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +717 -3
- package/dist/index.d.ts +3 -0
- package/dist/src/lib/StackTabs.vue.d.ts +33 -161
- package/dist/src/lib/components/ContextMenu/ContextMenuItem.vue.d.ts +6 -6
- package/dist/src/lib/components/ContextMenu/index.vue.d.ts +14 -14
- package/dist/src/lib/components/PageLoading.vue.d.ts +5 -5
- package/dist/src/lib/components/TabHeader/TabHeaderButton.vue.d.ts +24 -15
- package/dist/src/lib/components/TabHeader/TabHeaderItem.vue.d.ts +10 -8
- package/dist/src/lib/components/TabHeader/TabHeaderScroll.vue.d.ts +31 -13
- package/dist/src/lib/components/TabHeader/index.vue.d.ts +172 -20
- package/dist/src/lib/hooks/tabPanel/evict.d.ts +24 -0
- package/dist/src/lib/hooks/tabPanel/evict.spec.d.ts +1 -0
- package/dist/src/lib/hooks/tabPanel/scroll.d.ts +8 -0
- package/dist/src/lib/hooks/tabPanel/session.d.ts +9 -0
- package/dist/src/lib/hooks/tabPanel/state.d.ts +77 -0
- package/dist/src/lib/hooks/useContextMenu.d.ts +6 -1
- package/dist/src/lib/hooks/useTabActions.d.ts +68 -0
- package/dist/src/lib/hooks/{useTabMitt.d.ts → useTabEventBus.d.ts} +4 -3
- package/dist/src/lib/hooks/useTabLoading.d.ts +6 -0
- package/dist/src/lib/hooks/{useTabpanel.d.ts → useTabPanel.d.ts} +20 -14
- package/dist/src/lib/hooks/useTabPanel.spec.d.ts +1 -0
- package/dist/src/lib/hooks/useTabRouter.d.ts +14 -5
- package/dist/src/lib/i18n/index.d.ts +1 -1
- package/dist/src/lib/i18n/lang/en.d.ts +1 -0
- package/dist/src/lib/i18n/lang/zh-CN.d.ts +1 -0
- package/dist/src/lib/index.d.ts +5 -4
- package/dist/src/lib/model/TabModel.d.ts +20 -3
- package/dist/src/lib/model/TabModel.spec.d.ts +1 -0
- package/dist/src/lib/utils/iframeBridge.d.ts +31 -0
- package/dist/src/lib/utils/iframeBridge.spec.d.ts +1 -0
- package/dist/src/lib/utils/scrollUtils.d.ts +28 -0
- package/dist/src/lib/utils/tabInfoEncoder.d.ts +19 -0
- package/dist/src/lib/utils/tabInfoEncoder.spec.d.ts +1 -0
- package/dist/src/lib/utils/urlParser.d.ts +19 -0
- package/dist/src/lib/utils/urlParser.spec.d.ts +1 -0
- package/dist/src/lib/versionLogger.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/vue-stack-tabs.css +1 -0
- package/dist/vue-stack-tabs.es.js +1795 -1679
- package/dist/vue-stack-tabs.umd.js +1 -5
- package/package.json +76 -39
- package/src/lib/StackTabs.vue +222 -47
- package/src/lib/assets/image/open.svg +1 -0
- package/src/lib/assets/style/common/var.scss +1 -1
- package/src/lib/assets/style/icon.scss +6 -0
- package/src/lib/assets/style/stackTab.scss +46 -3
- package/src/lib/assets/style/transition.scss +63 -62
- package/src/lib/components/ContextMenu/ContextMenuItem.vue +7 -0
- package/src/lib/components/ContextMenu/index.vue +50 -38
- package/src/lib/components/PageLoading.vue +30 -10
- package/src/lib/components/TabHeader/TabHeaderButton.vue +12 -3
- package/src/lib/components/TabHeader/TabHeaderItem.vue +31 -27
- package/src/lib/components/TabHeader/TabHeaderScroll.vue +83 -77
- package/src/lib/components/TabHeader/index.vue +45 -40
- package/src/lib/hooks/tabPanel/evict.spec.ts +85 -0
- package/src/lib/hooks/tabPanel/evict.ts +57 -0
- package/src/lib/hooks/tabPanel/scroll.ts +52 -0
- package/src/lib/hooks/tabPanel/session.ts +33 -0
- package/src/lib/hooks/tabPanel/state.ts +52 -0
- package/src/lib/hooks/useContextMenu.ts +22 -20
- package/src/lib/hooks/useTabActions.ts +148 -0
- package/src/lib/hooks/useTabEventBus.ts +31 -0
- package/src/lib/hooks/useTabLoading.ts +12 -4
- package/src/lib/hooks/useTabPanel.spec.ts +34 -0
- package/src/lib/hooks/useTabPanel.tsx +546 -0
- package/src/lib/hooks/useTabRouter.ts +114 -103
- package/src/lib/i18n/index.ts +14 -18
- package/src/lib/i18n/lang/en.ts +2 -1
- package/src/lib/i18n/lang/zh-CN.ts +2 -1
- package/src/lib/iframe.vue +6 -0
- package/src/lib/index.ts +27 -8
- package/src/lib/model/TabModel.spec.ts +40 -0
- package/src/lib/model/TabModel.ts +22 -9
- package/src/lib/nuxt/module.d.ts +19 -0
- package/src/lib/nuxt/module.ts +34 -0
- package/src/lib/nuxt/runtime/plugin.client.ts +11 -0
- package/src/lib/utils/iframeBridge.spec.ts +37 -0
- package/src/lib/utils/iframeBridge.ts +52 -0
- package/src/lib/utils/{TabScrollHelper.ts → scrollUtils.ts} +23 -29
- package/src/lib/utils/tabInfoEncoder.spec.ts +42 -0
- package/src/lib/utils/tabInfoEncoder.ts +65 -0
- package/src/lib/utils/urlParser.spec.ts +45 -0
- package/src/lib/utils/urlParser.ts +42 -0
- package/src/lib/{banner.ts → versionLogger.ts} +4 -5
- package/dist/src/lib/banner.d.ts +0 -2
- package/dist/src/lib/hooks/useStackTab.d.ts +0 -11
- package/dist/src/lib/utils/TabIdHelper.d.ts +0 -11
- package/dist/src/lib/utils/TabScrollHelper.d.ts +0 -33
- package/dist/src/lib/utils/UriHelper.d.ts +0 -4
- package/src/lib/hooks/useStackTab.ts +0 -119
- package/src/lib/hooks/useTabMitt.ts +0 -30
- package/src/lib/hooks/useTabpanel.tsx +0 -708
- package/src/lib/utils/TabIdHelper.ts +0 -70
- package/src/lib/utils/UriHelper.ts +0 -22
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { inject as at, ref as D, reactive as Ee, readonly as kt, toRaw as vn, defineComponent as Q, openBlock as R, createElementBlock as V, normalizeStyle as Fe, unref as T, createElementVNode as J, createCommentVNode as re, nextTick as ye, onMounted as He, onDeactivated as mn, onActivated as gn, onUnmounted as Ze, createVNode as N, resolveComponent as Zt, normalizeClass as ue, withModifiers as Ie, toDisplayString as jt, Fragment as je, renderList as ct, createBlock as ve, computed as we, renderSlot as _e, watch as yn, withDirectives as Xt, vShow as Gt, withCtx as le, TransitionGroup as Yt, mergeProps as wn, Transition as Kt, provide as kn, onBeforeMount as _n, onBeforeUnmount as _t, KeepAlive as xn, resolveDynamicComponent as Tn, getCurrentInstance as Jt } from "vue";
|
|
5
|
-
import { useRouter as lt, useRoute as Sn } from "vue-router";
|
|
6
|
-
const On = {
|
|
1
|
+
import { inject as mt, ref as D, reactive as ne, toRaw as Ln, readonly as Ct, defineComponent as q, onUnmounted as Ee, openBlock as B, createElementBlock as V, normalizeStyle as Ze, unref as C, createElementVNode as W, createCommentVNode as ie, onMounted as gt, onDeactivated as Bn, onActivated as zn, createVNode as $, resolveComponent as cn, normalizeClass as de, withModifiers as Le, toDisplayString as yt, createBlock as se, Fragment as Ke, renderList as Tt, nextTick as ot, computed as oe, renderSlot as _e, watch as rt, withDirectives as it, vShow as at, withCtx as te, TransitionGroup as ln, mergeProps as Dn, Transition as ct, provide as Nn, onBeforeMount as Pn, onBeforeUnmount as $n, KeepAlive as Vn, resolveDynamicComponent as Wn, getCurrentInstance as un } from "vue";
|
|
2
|
+
import { useRouter as wt, useRoute as Un } from "vue-router";
|
|
3
|
+
const Fn = {
|
|
7
4
|
VueStackTab: {
|
|
8
5
|
close: "close",
|
|
9
6
|
closeLeft: "close left",
|
|
@@ -15,12 +12,13 @@ const On = {
|
|
|
15
12
|
maximum: "maximum",
|
|
16
13
|
restore: "restore",
|
|
17
14
|
undefined: "undefined",
|
|
18
|
-
loading: "loading"
|
|
15
|
+
loading: "loading",
|
|
16
|
+
openInNewWindow: "Open in new window"
|
|
19
17
|
}
|
|
20
|
-
},
|
|
18
|
+
}, Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21
19
|
__proto__: null,
|
|
22
|
-
default:
|
|
23
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
20
|
+
default: Fn
|
|
21
|
+
}, Symbol.toStringTag, { value: "Module" })), Gn = {
|
|
24
22
|
VueStackTab: {
|
|
25
23
|
close: "关闭",
|
|
26
24
|
closeLeft: "关闭左侧",
|
|
@@ -32,190 +30,207 @@ const On = {
|
|
|
32
30
|
maximum: "最大化",
|
|
33
31
|
restore: "还原",
|
|
34
32
|
undefined: "未命名",
|
|
35
|
-
loading: "加载中"
|
|
33
|
+
loading: "加载中",
|
|
34
|
+
openInNewWindow: "在新窗口打开"
|
|
36
35
|
}
|
|
37
|
-
},
|
|
36
|
+
}, qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
38
37
|
__proto__: null,
|
|
39
|
-
default:
|
|
38
|
+
default: Gn
|
|
40
39
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
*/
|
|
46
|
-
const Bn = ["__proto__", "prototype", "constructor"];
|
|
47
|
-
function Mn(t) {
|
|
48
|
-
const e = typeof t;
|
|
49
|
-
return t !== null && (e === "object" || e === "function");
|
|
40
|
+
const jn = ["__proto__", "prototype", "constructor"];
|
|
41
|
+
function Zn(e) {
|
|
42
|
+
const t = typeof e;
|
|
43
|
+
return e !== null && (t === "object" || t === "function");
|
|
50
44
|
}
|
|
51
|
-
function
|
|
52
|
-
return !(Array.isArray(
|
|
45
|
+
function Kn(e) {
|
|
46
|
+
return !(Array.isArray(e) ? e.length : Object.keys(e).length);
|
|
53
47
|
}
|
|
54
|
-
function
|
|
55
|
-
return !
|
|
48
|
+
function Xn(e) {
|
|
49
|
+
return !e.some((t) => jn.indexOf(t) !== -1);
|
|
56
50
|
}
|
|
57
|
-
function
|
|
58
|
-
const
|
|
59
|
-
for (let s = 0; s <
|
|
60
|
-
let
|
|
61
|
-
for (;
|
|
62
|
-
|
|
63
|
-
n.push(
|
|
64
|
-
}
|
|
65
|
-
return
|
|
51
|
+
function Yn(e) {
|
|
52
|
+
const t = e.split("."), n = [];
|
|
53
|
+
for (let s = 0; s < t.length; s++) {
|
|
54
|
+
let o = t[s];
|
|
55
|
+
for (; o[o.length - 1] === "\\" && t[s + 1] !== void 0; )
|
|
56
|
+
o = o.slice(0, -1) + ".", o += t[++s];
|
|
57
|
+
n.push(o);
|
|
58
|
+
}
|
|
59
|
+
return Xn(n) ? n : [];
|
|
66
60
|
}
|
|
67
|
-
function
|
|
68
|
-
if (!
|
|
61
|
+
function Lt(e, t) {
|
|
62
|
+
if (!Zn(e))
|
|
69
63
|
return "";
|
|
70
|
-
const n =
|
|
64
|
+
const n = Yn(t);
|
|
71
65
|
if (n.length === 0)
|
|
72
66
|
return "";
|
|
73
|
-
let s = Object.assign({},
|
|
74
|
-
for (let
|
|
75
|
-
if (typeof s[n[
|
|
76
|
-
return s[n[
|
|
77
|
-
if (s = s[n[
|
|
78
|
-
if (
|
|
67
|
+
let s = Object.assign({}, e);
|
|
68
|
+
for (let o = 0; o < n.length; o++) {
|
|
69
|
+
if (typeof s[n[o]] == "string")
|
|
70
|
+
return s[n[o]];
|
|
71
|
+
if (s = s[n[o]], s == null) {
|
|
72
|
+
if (o !== n.length - 1)
|
|
79
73
|
return "";
|
|
80
74
|
break;
|
|
81
75
|
}
|
|
82
76
|
}
|
|
83
77
|
return "";
|
|
84
78
|
}
|
|
85
|
-
function
|
|
86
|
-
if (Array.isArray(
|
|
87
|
-
const n = {}, s = [...
|
|
88
|
-
return s && s.forEach((
|
|
89
|
-
|
|
79
|
+
function Jn(e, t) {
|
|
80
|
+
if (Array.isArray(t)) {
|
|
81
|
+
const n = {}, s = [...e.matchAll(/{(.+?)}/g)];
|
|
82
|
+
return s && s.forEach((o, r) => {
|
|
83
|
+
t[r] && (n[o[1]] = t[r]);
|
|
90
84
|
}), n;
|
|
91
85
|
}
|
|
92
|
-
return e;
|
|
93
|
-
}
|
|
94
|
-
function $n(t, e) {
|
|
95
|
-
for (const n in e)
|
|
96
|
-
t = t.replace(`{${n}}`, String(e[n]));
|
|
97
86
|
return t;
|
|
98
87
|
}
|
|
99
|
-
function
|
|
100
|
-
|
|
101
|
-
e
|
|
102
|
-
|
|
88
|
+
function Qn(e, t) {
|
|
89
|
+
for (const n in t)
|
|
90
|
+
e = e.replace(`{${n}}`, String(t[n]));
|
|
91
|
+
return e;
|
|
103
92
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
93
|
+
function fn(e, t) {
|
|
94
|
+
return Object.keys(t).forEach((n) => {
|
|
95
|
+
t[n] instanceof Object && n in e && (t[n] = { ...t[n], ...fn(e[n], t[n]) });
|
|
96
|
+
}), { ...e || {}, ...t };
|
|
107
97
|
}
|
|
108
|
-
function
|
|
109
|
-
|
|
110
|
-
return
|
|
111
|
-
|
|
98
|
+
const es = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", ts = (e) => es ? Symbol(e) : "_vt_" + e, dn = /* @__PURE__ */ ts("i18n");
|
|
99
|
+
function ze() {
|
|
100
|
+
return mt(dn);
|
|
101
|
+
}
|
|
102
|
+
function ns(e) {
|
|
103
|
+
const t = Object.assign({ locale: "en", fallbackLocale: "en", messages: {} }, e), n = D(t.locale), s = ne({});
|
|
104
|
+
return Object.entries(t.messages).forEach(([o, r]) => {
|
|
105
|
+
s[o] = r;
|
|
112
106
|
}), {
|
|
113
|
-
t(
|
|
114
|
-
if (!
|
|
107
|
+
t(o, r) {
|
|
108
|
+
if (!o)
|
|
115
109
|
return "";
|
|
116
|
-
const i = typeof
|
|
117
|
-
let
|
|
118
|
-
if (
|
|
119
|
-
const a =
|
|
120
|
-
|
|
110
|
+
const i = typeof r == "string" && r ? r : n.value;
|
|
111
|
+
let l = Lt(s[i], o) || Lt(s[t.fallbackLocale], o);
|
|
112
|
+
if (r && typeof r != "string") {
|
|
113
|
+
const a = Jn(l, r);
|
|
114
|
+
Kn(a) || (l = Qn(l, a));
|
|
121
115
|
}
|
|
122
|
-
return
|
|
116
|
+
return l || o;
|
|
123
117
|
},
|
|
124
|
-
current:
|
|
125
|
-
options:
|
|
126
|
-
install(
|
|
127
|
-
const
|
|
128
|
-
|
|
118
|
+
current: Ct(n),
|
|
119
|
+
options: Ct(e || {}),
|
|
120
|
+
install(o) {
|
|
121
|
+
const r = this;
|
|
122
|
+
o.config.globalProperties.$t = r.t, o.provide(dn, r);
|
|
129
123
|
},
|
|
130
|
-
changeLocale(
|
|
131
|
-
n.value =
|
|
124
|
+
changeLocale(o) {
|
|
125
|
+
n.value = o;
|
|
132
126
|
},
|
|
133
|
-
setLocaleMessage(
|
|
134
|
-
s[
|
|
127
|
+
setLocaleMessage(o, r) {
|
|
128
|
+
s[o] = fn(Ln(s[o] || {}), r);
|
|
135
129
|
},
|
|
136
|
-
getLocaleMessage(
|
|
137
|
-
return s[
|
|
130
|
+
getLocaleMessage(o) {
|
|
131
|
+
return s[o] || {};
|
|
138
132
|
}
|
|
139
133
|
};
|
|
140
134
|
}
|
|
141
|
-
const
|
|
142
|
-
const
|
|
143
|
-
function
|
|
144
|
-
for (const i in
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
...r[i].default
|
|
150
|
-
} : o[f] = r[i].default;
|
|
135
|
+
const ss = () => {
|
|
136
|
+
const e = /* @__PURE__ */ Object.assign({ "./lang/en.ts": Hn, "./lang/zh-CN.ts": qn });
|
|
137
|
+
function t(o, r) {
|
|
138
|
+
for (const i in o) {
|
|
139
|
+
const l = o[i];
|
|
140
|
+
if (l?.default) {
|
|
141
|
+
const a = i.substring(i.lastIndexOf("/") + 1, i.lastIndexOf(".")), c = r[a];
|
|
142
|
+
r[a] = c ? { ...c, ...l.default } : l.default;
|
|
151
143
|
}
|
|
144
|
+
}
|
|
152
145
|
}
|
|
153
146
|
const n = () => {
|
|
154
|
-
const
|
|
155
|
-
return e
|
|
147
|
+
const o = {};
|
|
148
|
+
return t(e, o), o;
|
|
156
149
|
};
|
|
157
150
|
return {
|
|
158
|
-
getI18n: (
|
|
159
|
-
const
|
|
160
|
-
if (
|
|
161
|
-
for (const i of
|
|
162
|
-
|
|
163
|
-
return
|
|
151
|
+
getI18n: (o) => {
|
|
152
|
+
const r = { ...n() };
|
|
153
|
+
if (o)
|
|
154
|
+
for (const i of o)
|
|
155
|
+
r[i.locale] = i.messages;
|
|
156
|
+
return ns({
|
|
164
157
|
locale: "zh-CN",
|
|
165
158
|
fallbackLocale: "en",
|
|
166
|
-
messages:
|
|
159
|
+
messages: r
|
|
167
160
|
});
|
|
168
161
|
}
|
|
169
162
|
};
|
|
170
|
-
},
|
|
171
|
-
wrap:
|
|
172
|
-
left:
|
|
163
|
+
}, hn = ({
|
|
164
|
+
wrap: e,
|
|
165
|
+
left: t = 0,
|
|
173
166
|
top: n = 0,
|
|
174
167
|
smooth: s = !0
|
|
175
168
|
}) => {
|
|
176
|
-
|
|
177
|
-
left:
|
|
169
|
+
e && (e.scrollTo ? e.scrollTo({
|
|
170
|
+
left: t,
|
|
178
171
|
top: n,
|
|
179
172
|
behavior: s ? "smooth" : "auto"
|
|
180
|
-
}) : (
|
|
173
|
+
}) : (e.scrollLeft = t, e.scrollTop = n));
|
|
181
174
|
};
|
|
182
|
-
function
|
|
183
|
-
el:
|
|
184
|
-
wrap:
|
|
175
|
+
function os({
|
|
176
|
+
el: e,
|
|
177
|
+
wrap: t,
|
|
185
178
|
block: n = "start",
|
|
186
179
|
inline: s = "nearest"
|
|
187
180
|
}) {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
181
|
+
const o = t && typeof t == "object" && "value" in t ? t.value : t;
|
|
182
|
+
if (!(!e || !o))
|
|
183
|
+
if (e.scrollIntoView)
|
|
184
|
+
e.scrollIntoView({ behavior: "smooth", block: n, inline: s });
|
|
191
185
|
else {
|
|
192
|
-
const { offsetLeft: r, offsetTop:
|
|
193
|
-
let
|
|
194
|
-
n === "center" ?
|
|
186
|
+
const { offsetLeft: r, offsetTop: i } = e;
|
|
187
|
+
let l, a;
|
|
188
|
+
n === "center" ? a = i + (e.clientHeight - o.clientHeight) / 2 : a = i, s === "center" ? l = r + (e.clientWidth - o.clientWidth) / 2 : l = r, hn({ wrap: o, left: l, top: a });
|
|
195
189
|
}
|
|
196
190
|
}
|
|
197
|
-
const
|
|
198
|
-
const
|
|
191
|
+
const xt = (e = ".stack-tab__container *") => {
|
|
192
|
+
const t = Array.from(document.querySelectorAll(e)).map(
|
|
199
193
|
(n) => +window.getComputedStyle(n).zIndex || 0
|
|
200
194
|
);
|
|
201
|
-
return
|
|
195
|
+
return t.length ? Math.max(...t.filter((n) => n < 9e4)) + 1 : 1;
|
|
202
196
|
};
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
197
|
+
function Bt(e) {
|
|
198
|
+
return !!(e && /^(javascript|data):/i.test(e));
|
|
199
|
+
}
|
|
200
|
+
function pn(e) {
|
|
201
|
+
if (!e || !/^https?:\/\//i.test(e)) return !1;
|
|
202
|
+
try {
|
|
203
|
+
const t = typeof window < "u" ? window.location : { origin: "http://localhost" };
|
|
204
|
+
return new URL(e, t.origin).origin !== t.origin;
|
|
205
|
+
} catch {
|
|
206
|
+
return !0;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
function _t(e) {
|
|
210
|
+
const [t, n] = e.split("?");
|
|
211
|
+
if (!n)
|
|
212
|
+
return { path: t ?? "", query: {} };
|
|
213
|
+
const s = {};
|
|
214
|
+
for (const o of n.split("&")) {
|
|
215
|
+
const [r, i] = o.split("=");
|
|
216
|
+
r != null && i != null && i !== "" && (s[r] = i);
|
|
217
|
+
}
|
|
218
|
+
return { path: t ?? "", query: s };
|
|
219
|
+
}
|
|
220
|
+
var be = /* @__PURE__ */ ((e) => (e.WHEEL = "wheel", e.BUTTON = "button", e.BOTH = "both", e))(be || {});
|
|
221
|
+
class lt {
|
|
222
|
+
items;
|
|
223
|
+
constructor(t) {
|
|
224
|
+
if (this.items = /* @__PURE__ */ new Map(), t)
|
|
225
|
+
for (const n of t)
|
|
211
226
|
this.push(n);
|
|
212
227
|
}
|
|
213
228
|
/**
|
|
214
229
|
* @description: 入栈
|
|
215
230
|
* @param {T} element 要入栈的元素
|
|
216
231
|
*/
|
|
217
|
-
push(
|
|
218
|
-
this.items.set(this.items.size,
|
|
232
|
+
push(t) {
|
|
233
|
+
this.items.set(this.items.size, t);
|
|
219
234
|
}
|
|
220
235
|
/**
|
|
221
236
|
* @description: 出栈
|
|
@@ -224,8 +239,8 @@ class Ge {
|
|
|
224
239
|
pop() {
|
|
225
240
|
if (this.isEmpty())
|
|
226
241
|
return;
|
|
227
|
-
const
|
|
228
|
-
return this.items.delete(this.items.size - 1),
|
|
242
|
+
const t = this.items.get(this.items.size - 1);
|
|
243
|
+
return this.items.delete(this.items.size - 1), t;
|
|
229
244
|
}
|
|
230
245
|
/**
|
|
231
246
|
* @description: 返回栈顶的元素
|
|
@@ -265,453 +280,536 @@ class Ge {
|
|
|
265
280
|
toString() {
|
|
266
281
|
if (this.isEmpty())
|
|
267
282
|
return "";
|
|
268
|
-
let
|
|
283
|
+
let t = "";
|
|
269
284
|
return this.items.forEach((n, s) => {
|
|
270
|
-
|
|
271
|
-
}),
|
|
285
|
+
t = `${t}${s === 0 ? "" : ", "}${n}`;
|
|
286
|
+
}), t;
|
|
272
287
|
}
|
|
273
288
|
toJSON() {
|
|
274
289
|
return Array.from(this.items.values());
|
|
275
290
|
}
|
|
276
291
|
}
|
|
277
|
-
function
|
|
278
|
-
var
|
|
279
|
-
|
|
292
|
+
function rs(e, t, n) {
|
|
293
|
+
var s = {}, o = s.noTrailing, r = o === void 0 ? !1 : o, i = s.noLeading, l = i === void 0 ? !1 : i, a = s.debounceMode, c = a === void 0 ? void 0 : a, b, d = !1, p = 0;
|
|
294
|
+
function O() {
|
|
295
|
+
b && clearTimeout(b);
|
|
296
|
+
}
|
|
297
|
+
function A(S) {
|
|
298
|
+
var m = S || {}, _ = m.upcomingOnly, k = _ === void 0 ? !1 : _;
|
|
299
|
+
O(), d = !k;
|
|
300
|
+
}
|
|
301
|
+
function I() {
|
|
302
|
+
for (var S = arguments.length, m = new Array(S), _ = 0; _ < S; _++)
|
|
303
|
+
m[_] = arguments[_];
|
|
304
|
+
var k = this, h = Date.now() - p;
|
|
305
|
+
if (d)
|
|
306
|
+
return;
|
|
307
|
+
function w() {
|
|
308
|
+
p = Date.now(), t.apply(k, m);
|
|
309
|
+
}
|
|
310
|
+
function u() {
|
|
311
|
+
b = void 0;
|
|
312
|
+
}
|
|
313
|
+
!l && c && !b && w(), O(), c === void 0 && h > e ? l ? (p = Date.now(), r || (b = setTimeout(c ? u : w, e))) : w() : r !== !0 && (b = setTimeout(c ? u : w, c === void 0 ? e - h : e));
|
|
314
|
+
}
|
|
315
|
+
return I.cancel = A, I;
|
|
280
316
|
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
317
|
+
function Qe(e) {
|
|
318
|
+
if (e === null || typeof e != "object")
|
|
319
|
+
return !1;
|
|
320
|
+
const t = Object.getPrototypeOf(e);
|
|
321
|
+
return t !== null && t !== Object.prototype && Object.getPrototypeOf(t) !== null || Symbol.iterator in e ? !1 : Symbol.toStringTag in e ? Object.prototype.toString.call(e) === "[object Module]" : !0;
|
|
285
322
|
}
|
|
286
|
-
function
|
|
287
|
-
if (
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
323
|
+
function ut(e, t, n = ".", s) {
|
|
324
|
+
if (!Qe(t))
|
|
325
|
+
return ut(e, {}, n, s);
|
|
326
|
+
const o = Object.assign({}, t);
|
|
327
|
+
for (const r in e) {
|
|
328
|
+
if (r === "__proto__" || r === "constructor")
|
|
329
|
+
continue;
|
|
330
|
+
const i = e[r];
|
|
331
|
+
i != null && (s && s(o, r, i, n) || (Array.isArray(i) && Array.isArray(o[r]) ? o[r] = [...i, ...o[r]] : Qe(i) && Qe(o[r]) ? o[r] = ut(
|
|
332
|
+
i,
|
|
333
|
+
o[r],
|
|
334
|
+
(n ? `${n}.` : "") + r.toString(),
|
|
335
|
+
s
|
|
336
|
+
) : o[r] = i));
|
|
337
|
+
}
|
|
338
|
+
return o;
|
|
298
339
|
}
|
|
299
|
-
function
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
340
|
+
function is(e) {
|
|
341
|
+
return (...t) => (
|
|
342
|
+
// eslint-disable-next-line unicorn/no-array-reduce
|
|
343
|
+
t.reduce((n, s) => ut(n, s, "", e), {})
|
|
344
|
+
);
|
|
303
345
|
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
};
|
|
313
|
-
try {
|
|
314
|
-
var s = require("crypto");
|
|
315
|
-
return function() {
|
|
316
|
-
return s.randomBytes(1).readUInt8() / 255;
|
|
317
|
-
};
|
|
318
|
-
} catch {
|
|
346
|
+
const re = is(), bn = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Ge = 32, as = 16, vn = 10, zt = 281474976710655;
|
|
347
|
+
var ve;
|
|
348
|
+
(function(e) {
|
|
349
|
+
e.Base32IncorrectEncoding = "B32_ENC_INVALID", e.DecodeTimeInvalidCharacter = "DEC_TIME_CHAR", e.DecodeTimeValueMalformed = "DEC_TIME_MALFORMED", e.EncodeTimeNegative = "ENC_TIME_NEG", e.EncodeTimeSizeExceeded = "ENC_TIME_SIZE_EXCEED", e.EncodeTimeValueMalformed = "ENC_TIME_MALFORMED", e.PRNGDetectFailure = "PRNG_DETECT", e.ULIDInvalid = "ULID_INVALID", e.Unexpected = "UNEXPECTED", e.UUIDInvalid = "UUID_INVALID";
|
|
350
|
+
})(ve || (ve = {}));
|
|
351
|
+
class Ie extends Error {
|
|
352
|
+
constructor(t, n) {
|
|
353
|
+
super(`${n} (${t})`), this.name = "ULIDError", this.code = t;
|
|
319
354
|
}
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
355
|
+
}
|
|
356
|
+
function cs(e) {
|
|
357
|
+
const t = Math.floor(e() * Ge) % Ge;
|
|
358
|
+
return bn.charAt(t);
|
|
359
|
+
}
|
|
360
|
+
function ls(e) {
|
|
361
|
+
const t = us(), n = t && (t.crypto || t.msCrypto) || null;
|
|
362
|
+
if (typeof n?.getRandomValues == "function")
|
|
363
|
+
return () => {
|
|
364
|
+
const s = new Uint8Array(1);
|
|
365
|
+
return n.getRandomValues(s), s[0] / 256;
|
|
326
366
|
};
|
|
327
|
-
|
|
328
|
-
|
|
367
|
+
if (typeof n?.randomBytes == "function")
|
|
368
|
+
return () => n.randomBytes(1).readUInt8() / 256;
|
|
369
|
+
throw new Ie(ve.PRNGDetectFailure, "Failed to find a reliable PRNG");
|
|
329
370
|
}
|
|
330
|
-
function
|
|
331
|
-
return
|
|
332
|
-
return isNaN(n) && (n = Date.now()), Hn(n, Un) + Zn(qn, t);
|
|
333
|
-
};
|
|
371
|
+
function us() {
|
|
372
|
+
return hs() ? self : typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : null;
|
|
334
373
|
}
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
(
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
return a == null ? "" : f._compress(a, 15, function(c) {
|
|
373
|
-
return n(c + 32);
|
|
374
|
-
}) + " ";
|
|
375
|
-
},
|
|
376
|
-
decompressFromUTF16: function(a) {
|
|
377
|
-
return a == null ? "" : a == "" ? null : f._decompress(a.length, 16384, function(c) {
|
|
378
|
-
return a.charCodeAt(c) - 32;
|
|
379
|
-
});
|
|
380
|
-
},
|
|
381
|
-
//compress into uint8array (UCS-2 big endian format)
|
|
382
|
-
compressToUint8Array: function(a) {
|
|
383
|
-
for (var c = f.compress(a), p = new Uint8Array(c.length * 2), u = 0, l = c.length; u < l; u++) {
|
|
384
|
-
var w = c.charCodeAt(u);
|
|
385
|
-
p[u * 2] = w >>> 8, p[u * 2 + 1] = w % 256;
|
|
374
|
+
function fs(e, t) {
|
|
375
|
+
let n = "";
|
|
376
|
+
for (; e > 0; e--)
|
|
377
|
+
n = cs(t) + n;
|
|
378
|
+
return n;
|
|
379
|
+
}
|
|
380
|
+
function ds(e, t = vn) {
|
|
381
|
+
if (isNaN(e))
|
|
382
|
+
throw new Ie(ve.EncodeTimeValueMalformed, `Time must be a number: ${e}`);
|
|
383
|
+
if (e > zt)
|
|
384
|
+
throw new Ie(ve.EncodeTimeSizeExceeded, `Cannot encode a time larger than ${zt}: ${e}`);
|
|
385
|
+
if (e < 0)
|
|
386
|
+
throw new Ie(ve.EncodeTimeNegative, `Time must be positive: ${e}`);
|
|
387
|
+
if (Number.isInteger(e) === !1)
|
|
388
|
+
throw new Ie(ve.EncodeTimeValueMalformed, `Time must be an integer: ${e}`);
|
|
389
|
+
let n, s = "";
|
|
390
|
+
for (let o = t; o > 0; o--)
|
|
391
|
+
n = e % Ge, s = bn.charAt(n) + s, e = (e - n) / Ge;
|
|
392
|
+
return s;
|
|
393
|
+
}
|
|
394
|
+
function hs() {
|
|
395
|
+
return typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope;
|
|
396
|
+
}
|
|
397
|
+
function We(e, t) {
|
|
398
|
+
const n = ls(), s = Date.now();
|
|
399
|
+
return ds(s, vn) + fs(as, n);
|
|
400
|
+
}
|
|
401
|
+
var et = { exports: {} }, Dt;
|
|
402
|
+
function ps() {
|
|
403
|
+
return Dt || (Dt = 1, (function(e) {
|
|
404
|
+
var t = (function() {
|
|
405
|
+
var n = String.fromCharCode, s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", r = {};
|
|
406
|
+
function i(a, c) {
|
|
407
|
+
if (!r[a]) {
|
|
408
|
+
r[a] = {};
|
|
409
|
+
for (var b = 0; b < a.length; b++)
|
|
410
|
+
r[a][a.charAt(b)] = b;
|
|
386
411
|
}
|
|
387
|
-
return
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
412
|
+
return r[a][c];
|
|
413
|
+
}
|
|
414
|
+
var l = {
|
|
415
|
+
compressToBase64: function(a) {
|
|
416
|
+
if (a == null) return "";
|
|
417
|
+
var c = l._compress(a, 6, function(b) {
|
|
418
|
+
return s.charAt(b);
|
|
419
|
+
});
|
|
420
|
+
switch (c.length % 4) {
|
|
421
|
+
// To produce valid Base64
|
|
422
|
+
default:
|
|
423
|
+
// When could this happen ?
|
|
424
|
+
case 0:
|
|
425
|
+
return c;
|
|
426
|
+
case 1:
|
|
427
|
+
return c + "===";
|
|
428
|
+
case 2:
|
|
429
|
+
return c + "==";
|
|
430
|
+
case 3:
|
|
431
|
+
return c + "=";
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
decompressFromBase64: function(a) {
|
|
435
|
+
return a == null ? "" : a == "" ? null : l._decompress(a.length, 32, function(c) {
|
|
436
|
+
return i(s, a.charAt(c));
|
|
437
|
+
});
|
|
438
|
+
},
|
|
439
|
+
compressToUTF16: function(a) {
|
|
440
|
+
return a == null ? "" : l._compress(a, 15, function(c) {
|
|
441
|
+
return n(c + 32);
|
|
442
|
+
}) + " ";
|
|
443
|
+
},
|
|
444
|
+
decompressFromUTF16: function(a) {
|
|
445
|
+
return a == null ? "" : a == "" ? null : l._decompress(a.length, 16384, function(c) {
|
|
446
|
+
return a.charCodeAt(c) - 32;
|
|
447
|
+
});
|
|
448
|
+
},
|
|
449
|
+
//compress into uint8array (UCS-2 big endian format)
|
|
450
|
+
compressToUint8Array: function(a) {
|
|
451
|
+
for (var c = l.compress(a), b = new Uint8Array(c.length * 2), d = 0, p = c.length; d < p; d++) {
|
|
452
|
+
var O = c.charCodeAt(d);
|
|
453
|
+
b[d * 2] = O >>> 8, b[d * 2 + 1] = O % 256;
|
|
454
|
+
}
|
|
455
|
+
return b;
|
|
456
|
+
},
|
|
457
|
+
//decompress from uint8array (UCS-2 big endian format)
|
|
458
|
+
decompressFromUint8Array: function(a) {
|
|
459
|
+
if (a == null)
|
|
460
|
+
return l.decompress(a);
|
|
461
|
+
for (var c = new Array(a.length / 2), b = 0, d = c.length; b < d; b++)
|
|
462
|
+
c[b] = a[b * 2] * 256 + a[b * 2 + 1];
|
|
463
|
+
var p = [];
|
|
464
|
+
return c.forEach(function(O) {
|
|
465
|
+
p.push(n(O));
|
|
466
|
+
}), l.decompress(p.join(""));
|
|
467
|
+
},
|
|
468
|
+
//compress into a string that is already URI encoded
|
|
469
|
+
compressToEncodedURIComponent: function(a) {
|
|
470
|
+
return a == null ? "" : l._compress(a, 6, function(c) {
|
|
471
|
+
return o.charAt(c);
|
|
472
|
+
});
|
|
473
|
+
},
|
|
474
|
+
//decompress from an output of compressToEncodedURIComponent
|
|
475
|
+
decompressFromEncodedURIComponent: function(a) {
|
|
476
|
+
return a == null ? "" : a == "" ? null : (a = a.replace(/ /g, "+"), l._decompress(a.length, 32, function(c) {
|
|
477
|
+
return i(o, a.charAt(c));
|
|
478
|
+
}));
|
|
479
|
+
},
|
|
480
|
+
compress: function(a) {
|
|
481
|
+
return l._compress(a, 16, function(c) {
|
|
482
|
+
return n(c);
|
|
483
|
+
});
|
|
484
|
+
},
|
|
485
|
+
_compress: function(a, c, b) {
|
|
486
|
+
if (a == null) return "";
|
|
487
|
+
var d, p, O = {}, A = {}, I = "", S = "", m = "", _ = 2, k = 3, h = 2, w = [], u = 0, T = 0, v;
|
|
488
|
+
for (v = 0; v < a.length; v += 1)
|
|
489
|
+
if (I = a.charAt(v), Object.prototype.hasOwnProperty.call(O, I) || (O[I] = k++, A[I] = !0), S = m + I, Object.prototype.hasOwnProperty.call(O, S))
|
|
490
|
+
m = S;
|
|
491
|
+
else {
|
|
492
|
+
if (Object.prototype.hasOwnProperty.call(A, m)) {
|
|
493
|
+
if (m.charCodeAt(0) < 256) {
|
|
494
|
+
for (d = 0; d < h; d++)
|
|
495
|
+
u = u << 1, T == c - 1 ? (T = 0, w.push(b(u)), u = 0) : T++;
|
|
496
|
+
for (p = m.charCodeAt(0), d = 0; d < 8; d++)
|
|
497
|
+
u = u << 1 | p & 1, T == c - 1 ? (T = 0, w.push(b(u)), u = 0) : T++, p = p >> 1;
|
|
498
|
+
} else {
|
|
499
|
+
for (p = 1, d = 0; d < h; d++)
|
|
500
|
+
u = u << 1 | p, T == c - 1 ? (T = 0, w.push(b(u)), u = 0) : T++, p = 0;
|
|
501
|
+
for (p = m.charCodeAt(0), d = 0; d < 16; d++)
|
|
502
|
+
u = u << 1 | p & 1, T == c - 1 ? (T = 0, w.push(b(u)), u = 0) : T++, p = p >> 1;
|
|
503
|
+
}
|
|
504
|
+
_--, _ == 0 && (_ = Math.pow(2, h), h++), delete A[m];
|
|
505
|
+
} else
|
|
506
|
+
for (p = O[m], d = 0; d < h; d++)
|
|
507
|
+
u = u << 1 | p & 1, T == c - 1 ? (T = 0, w.push(b(u)), u = 0) : T++, p = p >> 1;
|
|
508
|
+
_--, _ == 0 && (_ = Math.pow(2, h), h++), O[S] = k++, m = String(I);
|
|
509
|
+
}
|
|
510
|
+
if (m !== "") {
|
|
511
|
+
if (Object.prototype.hasOwnProperty.call(A, m)) {
|
|
512
|
+
if (m.charCodeAt(0) < 256) {
|
|
513
|
+
for (d = 0; d < h; d++)
|
|
514
|
+
u = u << 1, T == c - 1 ? (T = 0, w.push(b(u)), u = 0) : T++;
|
|
515
|
+
for (p = m.charCodeAt(0), d = 0; d < 8; d++)
|
|
516
|
+
u = u << 1 | p & 1, T == c - 1 ? (T = 0, w.push(b(u)), u = 0) : T++, p = p >> 1;
|
|
430
517
|
} else {
|
|
431
|
-
for (
|
|
432
|
-
|
|
433
|
-
for (
|
|
434
|
-
|
|
518
|
+
for (p = 1, d = 0; d < h; d++)
|
|
519
|
+
u = u << 1 | p, T == c - 1 ? (T = 0, w.push(b(u)), u = 0) : T++, p = 0;
|
|
520
|
+
for (p = m.charCodeAt(0), d = 0; d < 16; d++)
|
|
521
|
+
u = u << 1 | p & 1, T == c - 1 ? (T = 0, w.push(b(u)), u = 0) : T++, p = p >> 1;
|
|
435
522
|
}
|
|
436
|
-
|
|
523
|
+
_--, _ == 0 && (_ = Math.pow(2, h), h++), delete A[m];
|
|
437
524
|
} else
|
|
438
|
-
for (
|
|
439
|
-
|
|
440
|
-
|
|
525
|
+
for (p = O[m], d = 0; d < h; d++)
|
|
526
|
+
u = u << 1 | p & 1, T == c - 1 ? (T = 0, w.push(b(u)), u = 0) : T++, p = p >> 1;
|
|
527
|
+
_--, _ == 0 && (_ = Math.pow(2, h), h++);
|
|
441
528
|
}
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
for (; ; )
|
|
464
|
-
if (d = d << 1, k == c - 1) {
|
|
465
|
-
O.push(p(d));
|
|
466
|
-
break;
|
|
467
|
-
} else k++;
|
|
468
|
-
return O.join("");
|
|
469
|
-
},
|
|
470
|
-
decompress: function(a) {
|
|
471
|
-
return a == null ? "" : a == "" ? null : f._decompress(a.length, 32768, function(c) {
|
|
472
|
-
return a.charCodeAt(c);
|
|
473
|
-
});
|
|
474
|
-
},
|
|
475
|
-
_decompress: function(a, c, p) {
|
|
476
|
-
var u = [], l = 4, w = 4, x = 3, B = "", E = [], g, y, S, m, O, d, k, _ = { val: p(0), position: c, index: 1 };
|
|
477
|
-
for (g = 0; g < 3; g += 1)
|
|
478
|
-
u[g] = g;
|
|
479
|
-
for (S = 0, O = Math.pow(2, 2), d = 1; d != O; )
|
|
480
|
-
m = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = c, _.val = p(_.index++)), S |= (m > 0 ? 1 : 0) * d, d <<= 1;
|
|
481
|
-
switch (S) {
|
|
482
|
-
case 0:
|
|
483
|
-
for (S = 0, O = Math.pow(2, 8), d = 1; d != O; )
|
|
484
|
-
m = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = c, _.val = p(_.index++)), S |= (m > 0 ? 1 : 0) * d, d <<= 1;
|
|
485
|
-
k = n(S);
|
|
486
|
-
break;
|
|
487
|
-
case 1:
|
|
488
|
-
for (S = 0, O = Math.pow(2, 16), d = 1; d != O; )
|
|
489
|
-
m = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = c, _.val = p(_.index++)), S |= (m > 0 ? 1 : 0) * d, d <<= 1;
|
|
490
|
-
k = n(S);
|
|
491
|
-
break;
|
|
492
|
-
case 2:
|
|
493
|
-
return "";
|
|
494
|
-
}
|
|
495
|
-
for (u[3] = k, y = k, E.push(k); ; ) {
|
|
496
|
-
if (_.index > a)
|
|
497
|
-
return "";
|
|
498
|
-
for (S = 0, O = Math.pow(2, x), d = 1; d != O; )
|
|
499
|
-
m = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = c, _.val = p(_.index++)), S |= (m > 0 ? 1 : 0) * d, d <<= 1;
|
|
500
|
-
switch (k = S) {
|
|
529
|
+
for (p = 2, d = 0; d < h; d++)
|
|
530
|
+
u = u << 1 | p & 1, T == c - 1 ? (T = 0, w.push(b(u)), u = 0) : T++, p = p >> 1;
|
|
531
|
+
for (; ; )
|
|
532
|
+
if (u = u << 1, T == c - 1) {
|
|
533
|
+
w.push(b(u));
|
|
534
|
+
break;
|
|
535
|
+
} else T++;
|
|
536
|
+
return w.join("");
|
|
537
|
+
},
|
|
538
|
+
decompress: function(a) {
|
|
539
|
+
return a == null ? "" : a == "" ? null : l._decompress(a.length, 32768, function(c) {
|
|
540
|
+
return a.charCodeAt(c);
|
|
541
|
+
});
|
|
542
|
+
},
|
|
543
|
+
_decompress: function(a, c, b) {
|
|
544
|
+
var d = [], p = 4, O = 4, A = 3, I = "", S = [], m, _, k, h, w, u, T, v = { val: b(0), position: c, index: 1 };
|
|
545
|
+
for (m = 0; m < 3; m += 1)
|
|
546
|
+
d[m] = m;
|
|
547
|
+
for (k = 0, w = Math.pow(2, 2), u = 1; u != w; )
|
|
548
|
+
h = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = c, v.val = b(v.index++)), k |= (h > 0 ? 1 : 0) * u, u <<= 1;
|
|
549
|
+
switch (k) {
|
|
501
550
|
case 0:
|
|
502
|
-
for (
|
|
503
|
-
|
|
504
|
-
|
|
551
|
+
for (k = 0, w = Math.pow(2, 8), u = 1; u != w; )
|
|
552
|
+
h = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = c, v.val = b(v.index++)), k |= (h > 0 ? 1 : 0) * u, u <<= 1;
|
|
553
|
+
T = n(k);
|
|
505
554
|
break;
|
|
506
555
|
case 1:
|
|
507
|
-
for (
|
|
508
|
-
|
|
509
|
-
|
|
556
|
+
for (k = 0, w = Math.pow(2, 16), u = 1; u != w; )
|
|
557
|
+
h = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = c, v.val = b(v.index++)), k |= (h > 0 ? 1 : 0) * u, u <<= 1;
|
|
558
|
+
T = n(k);
|
|
510
559
|
break;
|
|
511
560
|
case 2:
|
|
512
|
-
return
|
|
561
|
+
return "";
|
|
562
|
+
}
|
|
563
|
+
for (d[3] = T, _ = T, S.push(T); ; ) {
|
|
564
|
+
if (v.index > a)
|
|
565
|
+
return "";
|
|
566
|
+
for (k = 0, w = Math.pow(2, A), u = 1; u != w; )
|
|
567
|
+
h = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = c, v.val = b(v.index++)), k |= (h > 0 ? 1 : 0) * u, u <<= 1;
|
|
568
|
+
switch (T = k) {
|
|
569
|
+
case 0:
|
|
570
|
+
for (k = 0, w = Math.pow(2, 8), u = 1; u != w; )
|
|
571
|
+
h = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = c, v.val = b(v.index++)), k |= (h > 0 ? 1 : 0) * u, u <<= 1;
|
|
572
|
+
d[O++] = n(k), T = O - 1, p--;
|
|
573
|
+
break;
|
|
574
|
+
case 1:
|
|
575
|
+
for (k = 0, w = Math.pow(2, 16), u = 1; u != w; )
|
|
576
|
+
h = v.val & v.position, v.position >>= 1, v.position == 0 && (v.position = c, v.val = b(v.index++)), k |= (h > 0 ? 1 : 0) * u, u <<= 1;
|
|
577
|
+
d[O++] = n(k), T = O - 1, p--;
|
|
578
|
+
break;
|
|
579
|
+
case 2:
|
|
580
|
+
return S.join("");
|
|
581
|
+
}
|
|
582
|
+
if (p == 0 && (p = Math.pow(2, A), A++), d[T])
|
|
583
|
+
I = d[T];
|
|
584
|
+
else if (T === O)
|
|
585
|
+
I = _ + _.charAt(0);
|
|
586
|
+
else
|
|
587
|
+
return null;
|
|
588
|
+
S.push(I), d[O++] = _ + I.charAt(0), p--, _ = I, p == 0 && (p = Math.pow(2, A), A++);
|
|
513
589
|
}
|
|
514
|
-
if (l == 0 && (l = Math.pow(2, x), x++), u[k])
|
|
515
|
-
B = u[k];
|
|
516
|
-
else if (k === w)
|
|
517
|
-
B = y + y.charAt(0);
|
|
518
|
-
else
|
|
519
|
-
return null;
|
|
520
|
-
E.push(B), u[w++] = y + B.charAt(0), l--, y = B, l == 0 && (l = Math.pow(2, x), x++);
|
|
521
590
|
}
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
});
|
|
529
|
-
}
|
|
530
|
-
var
|
|
531
|
-
const
|
|
591
|
+
};
|
|
592
|
+
return l;
|
|
593
|
+
})();
|
|
594
|
+
e != null ? e.exports = t : typeof angular < "u" && angular != null && angular.module("LZString", []).factory("LZString", function() {
|
|
595
|
+
return t;
|
|
596
|
+
});
|
|
597
|
+
})(et)), et.exports;
|
|
598
|
+
}
|
|
599
|
+
var mn = ps();
|
|
600
|
+
const bs = new TextEncoder(), vs = new TextDecoder("utf-8", { ignoreBOM: !0 }), Nt = {
|
|
532
601
|
/* API */
|
|
533
|
-
encode: (
|
|
534
|
-
decode: (
|
|
535
|
-
},
|
|
536
|
-
const
|
|
602
|
+
encode: (e) => bs.encode(e),
|
|
603
|
+
decode: (e) => vs.decode(e)
|
|
604
|
+
}, gn = (() => {
|
|
605
|
+
const t = [..."0123456789abcdef"], n = new Array(256);
|
|
537
606
|
for (let s = 0; s < 256; s++)
|
|
538
|
-
n[s] = `${
|
|
607
|
+
n[s] = `${t[s >>> 4 & 15]}${t[s & 15]}`;
|
|
539
608
|
return n;
|
|
540
|
-
})(),
|
|
541
|
-
const
|
|
542
|
-
for (let
|
|
543
|
-
const n =
|
|
544
|
-
|
|
609
|
+
})(), ms = (() => {
|
|
610
|
+
const e = {};
|
|
611
|
+
for (let t = 0; t < 256; t++) {
|
|
612
|
+
const n = gn[t], s = n[0], o = s.toUpperCase(), r = n[1], i = r.toUpperCase();
|
|
613
|
+
e[n] = t, e[`${s}${i}`] = t, e[`${o}${r}`] = t, e[`${o}${i}`] = t;
|
|
545
614
|
}
|
|
546
|
-
return
|
|
547
|
-
})(),
|
|
615
|
+
return e;
|
|
616
|
+
})(), gs = (e) => !(e.length % 2 || !/^[a-fA-F0-9]*$/.test(e)), ft = {
|
|
548
617
|
/* API */
|
|
549
|
-
encode: (
|
|
550
|
-
let
|
|
551
|
-
for (let n = 0, s =
|
|
552
|
-
|
|
553
|
-
return
|
|
618
|
+
encode: (e) => {
|
|
619
|
+
let t = "";
|
|
620
|
+
for (let n = 0, s = e.length; n < s; n++)
|
|
621
|
+
t += gn[e[n]];
|
|
622
|
+
return t;
|
|
554
623
|
},
|
|
555
|
-
encodeStr: (
|
|
556
|
-
decode: (
|
|
557
|
-
const
|
|
558
|
-
for (let s = 0; s <
|
|
559
|
-
n[s] =
|
|
624
|
+
encodeStr: (e) => ft.encode(Nt.encode(e)),
|
|
625
|
+
decode: (e) => {
|
|
626
|
+
const t = e.length / 2, n = new Uint8Array(t);
|
|
627
|
+
for (let s = 0; s < t; s++)
|
|
628
|
+
n[s] = ms[e.slice(s * 2, s * 2 + 2)];
|
|
560
629
|
return n;
|
|
561
630
|
},
|
|
562
|
-
decodeStr: (
|
|
563
|
-
is:
|
|
631
|
+
decodeStr: (e) => Nt.decode(ft.decode(e)),
|
|
632
|
+
is: gs
|
|
564
633
|
};
|
|
565
|
-
function
|
|
566
|
-
|
|
567
|
-
throw new Error(`positive integer expected, not ${t}`);
|
|
634
|
+
function ys(e) {
|
|
635
|
+
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
|
|
568
636
|
}
|
|
569
|
-
function
|
|
570
|
-
|
|
637
|
+
function dt(e, t = "") {
|
|
638
|
+
if (!Number.isSafeInteger(e) || e < 0) {
|
|
639
|
+
const n = t && `"${t}" `;
|
|
640
|
+
throw new Error(`${n}expected integer >= 0, got ${e}`);
|
|
641
|
+
}
|
|
571
642
|
}
|
|
572
|
-
function
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
throw new Error(
|
|
643
|
+
function Re(e, t, n = "") {
|
|
644
|
+
const s = ys(e), o = e?.length, r = t !== void 0;
|
|
645
|
+
if (!s || r && o !== t) {
|
|
646
|
+
const i = n && `"${n}" `, l = r ? ` of length ${t}` : "", a = s ? `length=${o}` : `type=${typeof e}`;
|
|
647
|
+
throw new Error(i + "expected Uint8Array" + l + ", got " + a);
|
|
648
|
+
}
|
|
649
|
+
return e;
|
|
577
650
|
}
|
|
578
|
-
function
|
|
579
|
-
if (
|
|
651
|
+
function ht(e, t = !0) {
|
|
652
|
+
if (e.destroyed)
|
|
580
653
|
throw new Error("Hash instance has been destroyed");
|
|
581
|
-
if (
|
|
654
|
+
if (t && e.finished)
|
|
582
655
|
throw new Error("Hash#digest() has already been called");
|
|
583
656
|
}
|
|
584
|
-
function
|
|
585
|
-
|
|
586
|
-
const n =
|
|
587
|
-
if (
|
|
588
|
-
throw new Error(
|
|
657
|
+
function yn(e, t) {
|
|
658
|
+
Re(e, void 0, "digestInto() output");
|
|
659
|
+
const n = t.outputLen;
|
|
660
|
+
if (e.length < n)
|
|
661
|
+
throw new Error('"digestInto() output" expected to be of length >=' + n);
|
|
589
662
|
}
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
return e ? { h: Number(t & ze), l: Number(t >> Ot & ze) } : { h: Number(t >> Ot & ze) | 0, l: Number(t & ze) | 0 };
|
|
663
|
+
function Ts(e) {
|
|
664
|
+
return new Uint8Array(e.buffer, e.byteOffset, e.byteLength);
|
|
593
665
|
}
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
function Z(t) {
|
|
597
|
-
for (let e = 0; e < t.length; e++)
|
|
598
|
-
t[e] = on(t[e]);
|
|
666
|
+
function qe(e) {
|
|
667
|
+
return new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4));
|
|
599
668
|
}
|
|
600
|
-
function
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
return new Uint8Array(new TextEncoder().encode(t));
|
|
669
|
+
function Ue(...e) {
|
|
670
|
+
for (let t = 0; t < e.length; t++)
|
|
671
|
+
e[t].fill(0);
|
|
604
672
|
}
|
|
605
|
-
function
|
|
606
|
-
return
|
|
673
|
+
function je(e, t) {
|
|
674
|
+
return e << 32 - t | e >>> t;
|
|
607
675
|
}
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
676
|
+
const Tn = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
677
|
+
function wn(e) {
|
|
678
|
+
return e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
|
|
679
|
+
}
|
|
680
|
+
const ws = Tn ? (e) => e : (e) => wn(e);
|
|
681
|
+
function xs(e) {
|
|
682
|
+
for (let t = 0; t < e.length; t++)
|
|
683
|
+
e[t] = wn(e[t]);
|
|
684
|
+
return e;
|
|
613
685
|
}
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
686
|
+
const U = Tn ? (e) => e : xs;
|
|
687
|
+
function _s(e, t = {}) {
|
|
688
|
+
const n = (o, r) => e(r).update(o).digest(), s = e(void 0);
|
|
689
|
+
return n.outputLen = s.outputLen, n.blockLen = s.blockLen, n.create = (o) => e(o), Object.assign(n, t), Object.freeze(n);
|
|
617
690
|
}
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
691
|
+
const ks = /* @__PURE__ */ Uint32Array.from([
|
|
692
|
+
1779033703,
|
|
693
|
+
3144134277,
|
|
694
|
+
1013904242,
|
|
695
|
+
2773480762,
|
|
696
|
+
1359893119,
|
|
697
|
+
2600822924,
|
|
698
|
+
528734635,
|
|
699
|
+
1541459225
|
|
700
|
+
]), Ne = /* @__PURE__ */ BigInt(2 ** 32 - 1), Pt = /* @__PURE__ */ BigInt(32);
|
|
701
|
+
function $t(e, t = !1) {
|
|
702
|
+
return t ? { h: Number(e & Ne), l: Number(e >> Pt & Ne) } : { h: Number(e >> Pt & Ne) | 0, l: Number(e & Ne) | 0 };
|
|
703
|
+
}
|
|
704
|
+
function ce(e, t, n, s, o) {
|
|
705
|
+
return e = e + t + o | 0, s = je(s ^ e, 16), n = n + s | 0, t = je(t ^ n, 12), { a: e, b: t, c: n, d: s };
|
|
706
|
+
}
|
|
707
|
+
function le(e, t, n, s, o) {
|
|
708
|
+
return e = e + t + o | 0, s = je(s ^ e, 8), n = n + s | 0, t = je(t ^ n, 7), { a: e, b: t, c: n, d: s };
|
|
709
|
+
}
|
|
710
|
+
class Es {
|
|
711
|
+
buffer;
|
|
712
|
+
buffer32;
|
|
713
|
+
finished = !1;
|
|
714
|
+
destroyed = !1;
|
|
715
|
+
length = 0;
|
|
716
|
+
pos = 0;
|
|
717
|
+
blockLen;
|
|
718
|
+
outputLen;
|
|
719
|
+
constructor(t, n) {
|
|
720
|
+
dt(t), dt(n), this.blockLen = t, this.outputLen = n, this.buffer = new Uint8Array(t), this.buffer32 = qe(this.buffer);
|
|
721
|
+
}
|
|
722
|
+
update(t) {
|
|
723
|
+
ht(this), Re(t);
|
|
724
|
+
const { blockLen: n, buffer: s, buffer32: o } = this, r = t.length, i = t.byteOffset, l = t.buffer;
|
|
725
|
+
for (let a = 0; a < r; ) {
|
|
726
|
+
this.pos === n && (U(o), this.compress(o, 0, !1), U(o), this.pos = 0);
|
|
727
|
+
const c = Math.min(n - this.pos, r - a), b = i + a;
|
|
728
|
+
if (c === n && !(b % 4) && a + c < r) {
|
|
729
|
+
const d = new Uint32Array(l, b, Math.floor((r - a) / 4));
|
|
730
|
+
U(d);
|
|
731
|
+
for (let p = 0; a + n < r; p += o.length, a += n)
|
|
732
|
+
this.length += n, this.compress(d, p, !1);
|
|
733
|
+
U(d);
|
|
644
734
|
continue;
|
|
645
735
|
}
|
|
646
|
-
s.set(
|
|
736
|
+
s.set(t.subarray(a, a + c), this.pos), this.pos += c, this.length += c, a += c;
|
|
647
737
|
}
|
|
648
738
|
return this;
|
|
649
739
|
}
|
|
650
|
-
digestInto(
|
|
651
|
-
|
|
740
|
+
digestInto(t) {
|
|
741
|
+
ht(this), yn(t, this);
|
|
652
742
|
const { pos: n, buffer32: s } = this;
|
|
653
|
-
this.finished = !0, this.buffer.subarray(n)
|
|
654
|
-
const
|
|
655
|
-
this.get().forEach((
|
|
743
|
+
this.finished = !0, Ue(this.buffer.subarray(n)), U(s), this.compress(s, 0, !0), U(s);
|
|
744
|
+
const o = qe(t);
|
|
745
|
+
this.get().forEach((r, i) => o[i] = ws(r));
|
|
656
746
|
}
|
|
657
747
|
digest() {
|
|
658
|
-
const { buffer:
|
|
659
|
-
this.digestInto(
|
|
660
|
-
const s =
|
|
748
|
+
const { buffer: t, outputLen: n } = this;
|
|
749
|
+
this.digestInto(t);
|
|
750
|
+
const s = t.slice(0, n);
|
|
661
751
|
return this.destroy(), s;
|
|
662
752
|
}
|
|
663
|
-
_cloneInto(
|
|
664
|
-
const { buffer: n, length: s, finished:
|
|
665
|
-
return
|
|
753
|
+
_cloneInto(t) {
|
|
754
|
+
const { buffer: n, length: s, finished: o, destroyed: r, outputLen: i, pos: l } = this;
|
|
755
|
+
return t ||= new this.constructor({ dkLen: i }), t.set(...this.get()), t.buffer.set(n), t.destroyed = r, t.finished = o, t.length = s, t.pos = l, t.outputLen = i, t;
|
|
756
|
+
}
|
|
757
|
+
clone() {
|
|
758
|
+
return this._cloneInto();
|
|
666
759
|
}
|
|
667
760
|
}
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
1359893119,
|
|
674
|
-
2600822924,
|
|
675
|
-
528734635,
|
|
676
|
-
1541459225
|
|
677
|
-
]);
|
|
678
|
-
function oe(t, e, n, s, r) {
|
|
679
|
-
return t = t + e + r | 0, s = qe(s ^ t, 16), n = n + s | 0, e = qe(e ^ n, 12), { a: t, b: e, c: n, d: s };
|
|
680
|
-
}
|
|
681
|
-
function ie(t, e, n, s, r) {
|
|
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
|
-
}
|
|
684
|
-
function Et(t, e, n, s, r, o, i, f, a, c, p, u, l, w, x, B, E, g, y, S) {
|
|
685
|
-
let m = 0;
|
|
686
|
-
for (let O = 0; O < s; O++)
|
|
687
|
-
({ a: r, b: a, c: l, d: E } = oe(r, a, l, E, n[e + t[m++]])), { a: r, b: a, c: l, d: E } = ie(r, a, l, E, n[e + t[m++]]), { a: o, b: c, c: w, d: g } = oe(o, c, w, g, n[e + t[m++]]), { a: o, b: c, c: w, d: g } = ie(o, c, w, g, n[e + t[m++]]), { a: i, b: p, c: x, d: y } = oe(i, p, x, y, n[e + t[m++]]), { a: i, b: p, c: x, d: y } = ie(i, p, x, y, n[e + t[m++]]), { a: f, b: u, c: B, d: S } = oe(f, u, B, S, n[e + t[m++]]), { a: f, b: u, c: B, d: S } = ie(f, u, B, S, n[e + t[m++]]), { a: r, b: c, c: x, d: S } = oe(r, c, x, S, n[e + t[m++]]), { a: r, b: c, c: x, d: S } = ie(r, c, x, S, n[e + t[m++]]), { a: o, b: p, c: B, d: E } = oe(o, p, B, E, n[e + t[m++]]), { a: o, b: p, c: B, d: E } = ie(o, p, B, E, n[e + t[m++]]), { a: i, b: u, c: l, d: g } = oe(i, u, l, g, n[e + t[m++]]), { a: i, b: u, c: l, d: g } = ie(i, u, l, g, n[e + t[m++]]), { a: f, b: a, c: w, d: y } = oe(f, a, w, y, n[e + t[m++]]), { a: f, b: a, c: w, d: y } = ie(f, a, w, y, n[e + t[m++]]);
|
|
688
|
-
return { v0: r, v1: o, v2: i, v3: f, v4: a, v5: c, v6: p, v7: u, v8: l, v9: w, v10: x, v11: B, v12: E, v13: g, v14: y, v15: S };
|
|
761
|
+
function Vt(e, t, n, s, o, r, i, l, a, c, b, d, p, O, A, I, S, m, _, k) {
|
|
762
|
+
let h = 0;
|
|
763
|
+
for (let w = 0; w < s; w++)
|
|
764
|
+
({ a: o, b: a, c: p, d: S } = ce(o, a, p, S, n[t + e[h++]])), { a: o, b: a, c: p, d: S } = le(o, a, p, S, n[t + e[h++]]), { a: r, b: c, c: O, d: m } = ce(r, c, O, m, n[t + e[h++]]), { a: r, b: c, c: O, d: m } = le(r, c, O, m, n[t + e[h++]]), { a: i, b, c: A, d: _ } = ce(i, b, A, _, n[t + e[h++]]), { a: i, b, c: A, d: _ } = le(i, b, A, _, n[t + e[h++]]), { a: l, b: d, c: I, d: k } = ce(l, d, I, k, n[t + e[h++]]), { a: l, b: d, c: I, d: k } = le(l, d, I, k, n[t + e[h++]]), { a: o, b: c, c: A, d: k } = ce(o, c, A, k, n[t + e[h++]]), { a: o, b: c, c: A, d: k } = le(o, c, A, k, n[t + e[h++]]), { a: r, b, c: I, d: S } = ce(r, b, I, S, n[t + e[h++]]), { a: r, b, c: I, d: S } = le(r, b, I, S, n[t + e[h++]]), { a: i, b: d, c: p, d: m } = ce(i, d, p, m, n[t + e[h++]]), { a: i, b: d, c: p, d: m } = le(i, d, p, m, n[t + e[h++]]), { a: l, b: a, c: O, d: _ } = ce(l, a, O, _, n[t + e[h++]]), { a: l, b: a, c: O, d: _ } = le(l, a, O, _, n[t + e[h++]]);
|
|
765
|
+
return { v0: o, v1: r, v2: i, v3: l, v4: a, v5: c, v6: b, v7: d, v8: p, v9: O, v10: A, v11: I, v12: S, v13: m, v14: _, v15: k };
|
|
689
766
|
}
|
|
690
|
-
const
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
767
|
+
const Z = {
|
|
768
|
+
CHUNK_START: 1,
|
|
769
|
+
CHUNK_END: 2,
|
|
770
|
+
PARENT: 4,
|
|
771
|
+
ROOT: 8,
|
|
772
|
+
KEYED_HASH: 16,
|
|
773
|
+
DERIVE_KEY_CONTEXT: 32,
|
|
774
|
+
DERIVE_KEY_MATERIAL: 64
|
|
775
|
+
}, Y = /* @__PURE__ */ ks.slice(), Wt = /* @__PURE__ */ (() => {
|
|
776
|
+
const e = Array.from({ length: 16 }, (s, o) => o), t = (s) => [2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8].map((o) => s[o]), n = [];
|
|
777
|
+
for (let s = 0, o = e; s < 7; s++, o = t(o))
|
|
778
|
+
n.push(...o);
|
|
694
779
|
return Uint8Array.from(n);
|
|
695
780
|
})();
|
|
696
|
-
class
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
781
|
+
class kt extends Es {
|
|
782
|
+
chunkPos = 0;
|
|
783
|
+
// Position of current block in chunk
|
|
784
|
+
chunksDone = 0;
|
|
785
|
+
// How many chunks we already have
|
|
786
|
+
flags = 0;
|
|
787
|
+
IV;
|
|
788
|
+
state;
|
|
789
|
+
stack = [];
|
|
790
|
+
// Output
|
|
791
|
+
posOut = 0;
|
|
792
|
+
bufferOut32 = new Uint32Array(16);
|
|
793
|
+
bufferOut;
|
|
794
|
+
chunkOut = 0;
|
|
795
|
+
// index of output chunk
|
|
796
|
+
enableXOF = !0;
|
|
797
|
+
constructor(t = {}, n = 0) {
|
|
798
|
+
super(64, t.dkLen === void 0 ? 32 : t.dkLen);
|
|
799
|
+
const { key: s, context: o } = t, r = o !== void 0;
|
|
800
|
+
if (s !== void 0) {
|
|
801
|
+
if (r)
|
|
802
|
+
throw new Error('Only "key" or "context" can be specified at same time');
|
|
803
|
+
Re(s, 32, "key");
|
|
804
|
+
const i = s.slice();
|
|
805
|
+
this.IV = qe(i), U(this.IV), this.flags = n | Z.KEYED_HASH;
|
|
806
|
+
} else if (r) {
|
|
807
|
+
Re(o, void 0, "context");
|
|
808
|
+
const i = o, l = new kt({ dkLen: 32 }, Z.DERIVE_KEY_CONTEXT).update(i).digest();
|
|
809
|
+
this.IV = qe(l), U(this.IV), this.flags = n | Z.DERIVE_KEY_MATERIAL;
|
|
712
810
|
} else
|
|
713
|
-
this.IV =
|
|
714
|
-
this.state = this.IV.slice(), this.bufferOut =
|
|
811
|
+
this.IV = Y.slice(), this.flags = n;
|
|
812
|
+
this.state = this.IV.slice(), this.bufferOut = Ts(this.bufferOut32);
|
|
715
813
|
}
|
|
716
814
|
// Unused
|
|
717
815
|
get() {
|
|
@@ -719,789 +817,789 @@ class bt extends os {
|
|
|
719
817
|
}
|
|
720
818
|
set() {
|
|
721
819
|
}
|
|
722
|
-
b2Compress(
|
|
723
|
-
const { state:
|
|
724
|
-
|
|
820
|
+
b2Compress(t, n, s, o = 0) {
|
|
821
|
+
const { state: r, pos: i } = this, { h: l, l: a } = $t(BigInt(t), !0), { v0: c, v1: b, v2: d, v3: p, v4: O, v5: A, v6: I, v7: S, v8: m, v9: _, v10: k, v11: h, v12: w, v13: u, v14: T, v15: v } = Vt(Wt, o, s, 7, r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7], Y[0], Y[1], Y[2], Y[3], l, a, i, n);
|
|
822
|
+
r[0] = c ^ m, r[1] = b ^ _, r[2] = d ^ k, r[3] = p ^ h, r[4] = O ^ w, r[5] = A ^ u, r[6] = I ^ T, r[7] = S ^ v;
|
|
725
823
|
}
|
|
726
|
-
compress(
|
|
727
|
-
let
|
|
728
|
-
if (this.chunkPos || (
|
|
729
|
-
let
|
|
824
|
+
compress(t, n = 0, s = !1) {
|
|
825
|
+
let o = this.flags;
|
|
826
|
+
if (this.chunkPos || (o |= Z.CHUNK_START), (this.chunkPos === 15 || s) && (o |= Z.CHUNK_END), s || (this.pos = this.blockLen), this.b2Compress(this.chunksDone, o, t, n), this.chunkPos += 1, this.chunkPos === 16 || s) {
|
|
827
|
+
let r = this.state;
|
|
730
828
|
this.state = this.IV.slice();
|
|
731
|
-
for (let i,
|
|
732
|
-
this.buffer32.set(i, 0), this.buffer32.set(
|
|
733
|
-
this.chunksDone++, this.chunkPos = 0, this.stack.push(
|
|
829
|
+
for (let i, l = this.chunksDone + 1; (s || !(l & 1)) && (i = this.stack.pop()); l >>= 1)
|
|
830
|
+
this.buffer32.set(i, 0), this.buffer32.set(r, 8), this.pos = this.blockLen, this.b2Compress(0, this.flags | Z.PARENT, this.buffer32, 0), r = this.state, this.state = this.IV.slice();
|
|
831
|
+
this.chunksDone++, this.chunkPos = 0, this.stack.push(r);
|
|
734
832
|
}
|
|
735
833
|
this.pos = 0;
|
|
736
834
|
}
|
|
737
|
-
_cloneInto(
|
|
738
|
-
|
|
739
|
-
const { IV: n, flags: s, state:
|
|
740
|
-
return
|
|
835
|
+
_cloneInto(t) {
|
|
836
|
+
t = super._cloneInto(t);
|
|
837
|
+
const { IV: n, flags: s, state: o, chunkPos: r, posOut: i, chunkOut: l, stack: a, chunksDone: c } = this;
|
|
838
|
+
return t.state.set(o.slice()), t.stack = a.map((b) => Uint32Array.from(b)), t.IV.set(n), t.flags = s, t.chunkPos = r, t.chunksDone = c, t.posOut = i, t.chunkOut = l, t.enableXOF = this.enableXOF, t.bufferOut32.set(this.bufferOut32), t;
|
|
741
839
|
}
|
|
742
840
|
destroy() {
|
|
743
|
-
this.destroyed = !0, this.state
|
|
744
|
-
for (let e of this.stack)
|
|
745
|
-
e.fill(0);
|
|
841
|
+
this.destroyed = !0, Ue(this.state, this.buffer32, this.IV, this.bufferOut32), Ue(...this.stack);
|
|
746
842
|
}
|
|
747
843
|
// Same as b2Compress, but doesn't modify state and returns 16 u32 array (instead of 8)
|
|
748
844
|
b2CompressOut() {
|
|
749
|
-
const { state:
|
|
750
|
-
|
|
751
|
-
const { v0: a, v1: c, v2:
|
|
752
|
-
|
|
845
|
+
const { state: t, pos: n, flags: s, buffer32: o, bufferOut32: r } = this, { h: i, l } = $t(BigInt(this.chunkOut++));
|
|
846
|
+
U(o);
|
|
847
|
+
const { v0: a, v1: c, v2: b, v3: d, v4: p, v5: O, v6: A, v7: I, v8: S, v9: m, v10: _, v11: k, v12: h, v13: w, v14: u, v15: T } = Vt(Wt, 0, o, 7, t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7], Y[0], Y[1], Y[2], Y[3], l, i, n, s);
|
|
848
|
+
r[0] = a ^ S, r[1] = c ^ m, r[2] = b ^ _, r[3] = d ^ k, r[4] = p ^ h, r[5] = O ^ w, r[6] = A ^ u, r[7] = I ^ T, r[8] = t[0] ^ S, r[9] = t[1] ^ m, r[10] = t[2] ^ _, r[11] = t[3] ^ k, r[12] = t[4] ^ h, r[13] = t[5] ^ w, r[14] = t[6] ^ u, r[15] = t[7] ^ T, U(o), U(r), this.posOut = 0;
|
|
753
849
|
}
|
|
754
850
|
finish() {
|
|
755
851
|
if (this.finished)
|
|
756
852
|
return;
|
|
757
|
-
this.finished = !0, this.buffer.
|
|
758
|
-
let
|
|
759
|
-
this.stack.length ? (
|
|
853
|
+
this.finished = !0, Ue(this.buffer.subarray(this.pos));
|
|
854
|
+
let t = this.flags | Z.ROOT;
|
|
855
|
+
this.stack.length ? (t |= Z.PARENT, U(this.buffer32), this.compress(this.buffer32, 0, !0), U(this.buffer32), this.chunksDone = 0, this.pos = this.blockLen) : t |= (this.chunkPos ? 0 : Z.CHUNK_START) | Z.CHUNK_END, this.flags = t, this.b2CompressOut();
|
|
760
856
|
}
|
|
761
|
-
writeInto(
|
|
762
|
-
|
|
857
|
+
writeInto(t) {
|
|
858
|
+
ht(this, !1), Re(t), this.finish();
|
|
763
859
|
const { blockLen: n, bufferOut: s } = this;
|
|
764
|
-
for (let
|
|
860
|
+
for (let o = 0, r = t.length; o < r; ) {
|
|
765
861
|
this.posOut >= n && this.b2CompressOut();
|
|
766
|
-
const i = Math.min(n - this.posOut,
|
|
767
|
-
|
|
862
|
+
const i = Math.min(n - this.posOut, r - o);
|
|
863
|
+
t.set(s.subarray(this.posOut, this.posOut + i), o), this.posOut += i, o += i;
|
|
768
864
|
}
|
|
769
|
-
return
|
|
865
|
+
return t;
|
|
770
866
|
}
|
|
771
|
-
xofInto(
|
|
867
|
+
xofInto(t) {
|
|
772
868
|
if (!this.enableXOF)
|
|
773
869
|
throw new Error("XOF is not possible after digest call");
|
|
774
|
-
return this.writeInto(
|
|
870
|
+
return this.writeInto(t);
|
|
775
871
|
}
|
|
776
|
-
xof(
|
|
777
|
-
return
|
|
872
|
+
xof(t) {
|
|
873
|
+
return dt(t), this.xofInto(new Uint8Array(t));
|
|
778
874
|
}
|
|
779
|
-
digestInto(
|
|
780
|
-
if (
|
|
875
|
+
digestInto(t) {
|
|
876
|
+
if (yn(t, this), this.finished)
|
|
781
877
|
throw new Error("digest() was already called");
|
|
782
|
-
return this.enableXOF = !1, this.writeInto(
|
|
878
|
+
return this.enableXOF = !1, this.writeInto(t), this.destroy(), t;
|
|
783
879
|
}
|
|
784
880
|
digest() {
|
|
785
881
|
return this.digestInto(new Uint8Array(this.outputLen));
|
|
786
882
|
}
|
|
787
883
|
}
|
|
788
|
-
const
|
|
789
|
-
const e = `${
|
|
790
|
-
return
|
|
791
|
-
},
|
|
792
|
-
const n =
|
|
884
|
+
const Ss = /* @__PURE__ */ _s((e = {}) => new kt(e)), pt = (e) => {
|
|
885
|
+
const t = e.iframeRefreshMode === "reload" ? "R" : "P", n = `${e.id}|${e.title}|${e.iframe ? "Y" : "N"}|${e.closable ? "Y" : "N"}|${e.refreshable ? "Y" : "N"}|${t}`;
|
|
886
|
+
return mn.compressToEncodedURIComponent(n);
|
|
887
|
+
}, As = (e) => {
|
|
888
|
+
const n = mn.decompressFromEncodedURIComponent(e).split("|"), s = n[5] === "R" ? "reload" : "postMessage";
|
|
793
889
|
return {
|
|
794
|
-
id: n[0],
|
|
795
|
-
title: n[1],
|
|
890
|
+
id: n[0] ?? "",
|
|
891
|
+
title: n[1] ?? "",
|
|
796
892
|
iframe: n[2] === "Y",
|
|
797
893
|
closable: n[3] === "Y",
|
|
798
|
-
refreshable: n[4] === "Y"
|
|
894
|
+
refreshable: n[4] === "Y",
|
|
895
|
+
iframeRefreshMode: s
|
|
799
896
|
};
|
|
800
|
-
},
|
|
897
|
+
}, Ut = (e, t, n) => {
|
|
801
898
|
const s = [];
|
|
802
|
-
for (const
|
|
803
|
-
|
|
804
|
-
key:
|
|
805
|
-
value: n[
|
|
899
|
+
for (const i in n)
|
|
900
|
+
i.startsWith("__") || s.push({
|
|
901
|
+
key: i,
|
|
902
|
+
value: n[i]
|
|
806
903
|
});
|
|
807
|
-
s.sort((
|
|
808
|
-
let
|
|
809
|
-
return
|
|
904
|
+
s.sort((i, l) => {
|
|
905
|
+
let a = 0;
|
|
906
|
+
return i.key > l.key ? a = 1 : i.key < l.key && (a = -1), a;
|
|
810
907
|
});
|
|
811
|
-
const
|
|
812
|
-
return
|
|
908
|
+
const o = new TextEncoder().encode(`${e}|${t}|${JSON.stringify(s)}`), r = Ss(o);
|
|
909
|
+
return ft.encode(r);
|
|
813
910
|
};
|
|
814
|
-
function
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
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]] : Ye(i) && Ye(r[o]) ? r[o] = rt(
|
|
829
|
-
i,
|
|
830
|
-
r[o],
|
|
831
|
-
(n ? `${n}.` : "") + o.toString(),
|
|
832
|
-
s
|
|
833
|
-
) : r[o] = i));
|
|
834
|
-
}
|
|
835
|
-
return r;
|
|
836
|
-
}
|
|
837
|
-
function cs(t) {
|
|
838
|
-
return (...e) => (
|
|
839
|
-
// eslint-disable-next-line unicorn/no-array-reduce
|
|
840
|
-
e.reduce((n, s) => rt(n, s, "", t), {})
|
|
841
|
-
);
|
|
842
|
-
}
|
|
843
|
-
const se = cs(), vt = (t) => {
|
|
844
|
-
const e = t.split("?");
|
|
845
|
-
if (e.length <= 1)
|
|
846
|
-
return {
|
|
847
|
-
path: e[0],
|
|
848
|
-
query: {}
|
|
849
|
-
};
|
|
850
|
-
{
|
|
851
|
-
const n = e[1].split("&"), s = {};
|
|
852
|
-
for (const r of n) {
|
|
853
|
-
const o = r.split("=");
|
|
854
|
-
o[1] !== null && o[1] !== void 0 && o[1] !== "" && (s[o[0]] = o[1]);
|
|
855
|
-
}
|
|
856
|
-
return {
|
|
857
|
-
path: e[0],
|
|
858
|
-
query: s
|
|
859
|
-
};
|
|
860
|
-
}
|
|
861
|
-
};
|
|
862
|
-
function ls(t) {
|
|
863
|
-
return { all: t = t || /* @__PURE__ */ new Map(), on: function(e, n) {
|
|
864
|
-
var s = t.get(e);
|
|
865
|
-
s ? s.push(n) : t.set(e, [n]);
|
|
866
|
-
}, off: function(e, n) {
|
|
867
|
-
var s = t.get(e);
|
|
868
|
-
s && (n ? s.splice(s.indexOf(n) >>> 0, 1) : t.set(e, []));
|
|
869
|
-
}, emit: function(e, n) {
|
|
870
|
-
var s = t.get(e);
|
|
871
|
-
s && s.slice().map(function(r) {
|
|
872
|
-
r(n);
|
|
873
|
-
}), (s = t.get("*")) && s.slice().map(function(r) {
|
|
874
|
-
r(e, n);
|
|
911
|
+
function Os(e) {
|
|
912
|
+
return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, n) {
|
|
913
|
+
var s = e.get(t);
|
|
914
|
+
s ? s.push(n) : e.set(t, [n]);
|
|
915
|
+
}, off: function(t, n) {
|
|
916
|
+
var s = e.get(t);
|
|
917
|
+
s && (n ? s.splice(s.indexOf(n) >>> 0, 1) : e.set(t, []));
|
|
918
|
+
}, emit: function(t, n) {
|
|
919
|
+
var s = e.get(t);
|
|
920
|
+
s && s.slice().map(function(o) {
|
|
921
|
+
o(n);
|
|
922
|
+
}), (s = e.get("*")) && s.slice().map(function(o) {
|
|
923
|
+
o(t, n);
|
|
875
924
|
});
|
|
876
925
|
} };
|
|
877
926
|
}
|
|
878
|
-
const
|
|
879
|
-
install(
|
|
880
|
-
|
|
927
|
+
const Is = Os(), Ms = {
|
|
928
|
+
install(e) {
|
|
929
|
+
e.provide("tabEmitter", Is);
|
|
881
930
|
}
|
|
882
|
-
},
|
|
883
|
-
var
|
|
884
|
-
const
|
|
931
|
+
}, Te = () => mt("tabEmitter");
|
|
932
|
+
var H = /* @__PURE__ */ ((e) => (e.PAGE_LOADING = "PAGE_LOADING", e.TAB_ACTIVE = "TAB_ACTIVE", e))(H || {});
|
|
933
|
+
const Rs = /* @__PURE__ */ q({
|
|
885
934
|
__name: "PageLoading",
|
|
886
935
|
props: {
|
|
887
|
-
|
|
936
|
+
tabId: {}
|
|
888
937
|
},
|
|
889
|
-
setup(
|
|
890
|
-
const
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
938
|
+
setup(e) {
|
|
939
|
+
const t = e, n = Te(), s = D(!1), o = (i) => {
|
|
940
|
+
i.tId === t.tabId && (s.value = i.value);
|
|
941
|
+
}, r = H.PAGE_LOADING;
|
|
942
|
+
return n.on(r, o), Ee(() => {
|
|
943
|
+
n.off(r, o);
|
|
944
|
+
}), (i, l) => s.value ? (B(), V("div", {
|
|
894
945
|
key: 0,
|
|
895
946
|
class: "stack-tab-loading-mask",
|
|
896
|
-
style:
|
|
897
|
-
},
|
|
898
|
-
|
|
899
|
-
]), 4)) :
|
|
900
|
-
}
|
|
901
|
-
}),
|
|
902
|
-
let
|
|
903
|
-
const
|
|
904
|
-
|
|
947
|
+
style: Ze({ zIndex: C(xt)(".cache-page-wrapper *") })
|
|
948
|
+
}, [...l[0] || (l[0] = [
|
|
949
|
+
W("div", { class: "stack-tab-loading--spin turn" }, null, -1)
|
|
950
|
+
])], 4)) : ie("", !0);
|
|
951
|
+
}
|
|
952
|
+
}), N = D([]), ke = D([]), Q = /* @__PURE__ */ new Map(), he = /* @__PURE__ */ new Set(), ee = /* @__PURE__ */ new Set(), tt = D(0), pe = D([]), me = /* @__PURE__ */ new Map(), Ft = D(!1), Cs = "stacktab-active-tab", ue = D({});
|
|
953
|
+
let Fe = 0, xn = !1, _n = "";
|
|
954
|
+
const Ls = (e) => {
|
|
955
|
+
Fe = e;
|
|
956
|
+
}, Bs = (e) => {
|
|
957
|
+
xn = e;
|
|
958
|
+
}, zs = (e) => {
|
|
959
|
+
_n = e;
|
|
960
|
+
}, Et = (e) => {
|
|
961
|
+
he.add(e);
|
|
962
|
+
}, Ae = (e) => {
|
|
963
|
+
for (const t of e.pages.list()) Et(t.id);
|
|
964
|
+
ee.add(e.id);
|
|
965
|
+
}, Ds = (e) => {
|
|
966
|
+
for (const t of e.pages.list()) Et(t.id);
|
|
967
|
+
}, Oe = (e) => {
|
|
968
|
+
ke.value.includes(e) || ke.value.push(e);
|
|
969
|
+
}, kn = (e) => {
|
|
970
|
+
const t = ke.value.indexOf(e);
|
|
971
|
+
t >= 0 && ke.value.splice(t, 1);
|
|
972
|
+
}, Ns = (e) => {
|
|
973
|
+
e && (he.delete(e), kn(e), Q.delete(e));
|
|
974
|
+
}, fe = () => {
|
|
975
|
+
if (he.size > 0) {
|
|
976
|
+
for (const e of [...he])
|
|
977
|
+
Ns(e);
|
|
978
|
+
he.clear();
|
|
979
|
+
}
|
|
980
|
+
}, Ps = (e) => {
|
|
981
|
+
const t = me.get(e);
|
|
982
|
+
if (t)
|
|
983
|
+
for (const [n, s] of t) {
|
|
984
|
+
const o = document.querySelector(n);
|
|
985
|
+
o && (o.scrollTop = s.top, o.scrollLeft = s.left);
|
|
986
|
+
}
|
|
987
|
+
}, $s = (e) => {
|
|
988
|
+
const t = me.get(e);
|
|
989
|
+
if (t)
|
|
990
|
+
for (const n of t.keys()) {
|
|
991
|
+
const s = document.querySelector(n);
|
|
992
|
+
t.set(n, {
|
|
993
|
+
top: s?.scrollTop ?? 0,
|
|
994
|
+
left: s?.scrollLeft ?? 0
|
|
995
|
+
});
|
|
996
|
+
}
|
|
997
|
+
}, Vs = (e) => {
|
|
998
|
+
const t = me.get(e);
|
|
999
|
+
t && (t.clear(), me.delete(e));
|
|
1000
|
+
}, Ht = (e, ...t) => {
|
|
1001
|
+
me.has(e) || me.set(e, /* @__PURE__ */ new Map());
|
|
1002
|
+
const n = me.get(e);
|
|
1003
|
+
for (const s of t)
|
|
1004
|
+
n.set(s, { top: 0, left: 0 });
|
|
1005
|
+
}, St = () => _n + Cs, Gt = (e) => {
|
|
1006
|
+
e.id && window.sessionStorage.setItem(St(), JSON.stringify(e));
|
|
1007
|
+
}, qt = () => {
|
|
1008
|
+
window.sessionStorage.removeItem(St());
|
|
1009
|
+
}, Ws = (e) => e == null ? null : JSON.parse(
|
|
1010
|
+
e,
|
|
1011
|
+
(t, n) => t === "pages" ? new lt(n) : n
|
|
1012
|
+
), jt = /* @__PURE__ */ q({
|
|
1013
|
+
name: "StackTabEmptyPlaceholder",
|
|
1014
|
+
setup() {
|
|
1015
|
+
return () => null;
|
|
1016
|
+
}
|
|
1017
|
+
}), Us = (e) => {
|
|
1018
|
+
const n = e.matched[e.matched.length - 1]?.path ?? e.path, s = e.path.endsWith("/") ? e.path.slice(0, -1) : e.path;
|
|
1019
|
+
return n === s ? s : e.path;
|
|
1020
|
+
}, Xe = () => {
|
|
1021
|
+
const e = wt(), t = Te(), {
|
|
905
1022
|
t: n
|
|
906
|
-
} =
|
|
907
|
-
for (const
|
|
908
|
-
const
|
|
909
|
-
id:
|
|
1023
|
+
} = ze(), s = () => N.value.length, o = (y) => {
|
|
1024
|
+
for (const x of y) {
|
|
1025
|
+
const E = re(x, {
|
|
1026
|
+
id: We(),
|
|
910
1027
|
refreshable: !0,
|
|
911
1028
|
closable: !0,
|
|
912
1029
|
iframe: !1
|
|
913
|
-
}),
|
|
1030
|
+
}), R = E.id ?? We();
|
|
1031
|
+
E.id = R;
|
|
1032
|
+
const z = _t(E.path), G = re(E, {
|
|
914
1033
|
closable: !0,
|
|
915
1034
|
refreshable: !0,
|
|
916
1035
|
iframe: !1
|
|
917
|
-
}),
|
|
918
|
-
id:
|
|
919
|
-
tabId:
|
|
920
|
-
path:
|
|
921
|
-
query:
|
|
922
|
-
__tab:
|
|
1036
|
+
}), De = Ut(R, z.path, z.query), Ye = {
|
|
1037
|
+
id: De,
|
|
1038
|
+
tabId: R,
|
|
1039
|
+
path: z.path,
|
|
1040
|
+
query: re(z.query, {
|
|
1041
|
+
__tab: pt(E)
|
|
923
1042
|
})
|
|
924
|
-
},
|
|
925
|
-
|
|
926
|
-
const
|
|
927
|
-
id:
|
|
928
|
-
title:
|
|
929
|
-
closable:
|
|
930
|
-
refreshable:
|
|
931
|
-
iframe:
|
|
1043
|
+
}, we = new lt();
|
|
1044
|
+
we.push(Ye);
|
|
1045
|
+
const Je = {
|
|
1046
|
+
id: R,
|
|
1047
|
+
title: G.title ?? "",
|
|
1048
|
+
closable: G.closable,
|
|
1049
|
+
refreshable: G.refreshable,
|
|
1050
|
+
iframe: G.iframe,
|
|
1051
|
+
iframeRefreshMode: G.iframeRefreshMode === "reload" ? "reload" : "postMessage",
|
|
932
1052
|
active: !1,
|
|
933
|
-
pages:
|
|
1053
|
+
pages: we
|
|
934
1054
|
};
|
|
935
|
-
|
|
936
|
-
...
|
|
1055
|
+
Oe(De), N.value.push({
|
|
1056
|
+
...Je
|
|
937
1057
|
});
|
|
938
1058
|
}
|
|
939
|
-
const
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
h = !0;
|
|
946
|
-
break;
|
|
947
|
-
}
|
|
948
|
-
h || M.value.push(I);
|
|
949
|
-
}
|
|
950
|
-
Mt.value = !0;
|
|
951
|
-
}, o = (b) => {
|
|
952
|
-
for (const v of M.value)
|
|
953
|
-
if (v.id === b)
|
|
954
|
-
return !0;
|
|
955
|
-
return !1;
|
|
956
|
-
}, i = () => Re <= 0 || Re > 0 && Re > M.value.length, f = (b) => new Promise((v) => {
|
|
957
|
-
M.value.push(b), v(!0);
|
|
958
|
-
}), a = (b) => {
|
|
959
|
-
for (const v of M.value)
|
|
960
|
-
if (v.id === b)
|
|
961
|
-
return v;
|
|
962
|
-
return null;
|
|
963
|
-
}, c = (b, v) => {
|
|
964
|
-
let I, h;
|
|
965
|
-
if (b.query.__tab ? h = as(b.query.__tab) : (h = {
|
|
966
|
-
id: et(),
|
|
1059
|
+
const g = sessionStorage.getItem(St()), f = Ws(g);
|
|
1060
|
+
f && !N.value.some((x) => x.id === f.id) && (f.iframe && f.url && f.iframeRefreshMode === void 0 && (f.iframeRefreshMode = pn(f.url) ? "reload" : "postMessage"), N.value.push(f)), Ft.value = !0;
|
|
1061
|
+
}, r = (y) => N.value.some((g) => g.id === y), i = () => Fe <= 0 || Fe > 0 && Fe > N.value.length, l = (y) => (N.value.push(y), Promise.resolve(!0)), a = (y) => N.value.find((g) => g.id === y) ?? null, c = (y) => {
|
|
1062
|
+
if (y.query.__tab) return As(y.query.__tab);
|
|
1063
|
+
const g = {
|
|
1064
|
+
id: We(),
|
|
967
1065
|
title: n("VueStackTab.undefined"),
|
|
968
1066
|
closable: !0,
|
|
969
1067
|
refreshable: !0,
|
|
970
1068
|
iframe: !1
|
|
971
|
-
}, b.query.__tab = st(h)), H.has(h.id) || !v)
|
|
972
|
-
return;
|
|
973
|
-
const L = b.matched[b.matched.length - 1].path, F = b.path.endsWith("/") ? b.path.substring(0, b.path.length - 1) : b.path, P = Bt(h.id, L === F ? F : b.path, b.query.valueOf());
|
|
974
|
-
if (fe.has(P))
|
|
975
|
-
return ae.get(P);
|
|
976
|
-
const Le = b.query.__src;
|
|
977
|
-
let G = null;
|
|
978
|
-
for (const te of T(M))
|
|
979
|
-
te.active = !1, te.id === h.id && (G = te);
|
|
980
|
-
const ge = {
|
|
981
|
-
id: P,
|
|
982
|
-
tabId: h.id,
|
|
983
|
-
path: b.path,
|
|
984
|
-
query: b.query
|
|
985
1069
|
};
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
1070
|
+
return y.query.__tab = pt(g), g;
|
|
1071
|
+
}, b = (y, g, f, x) => {
|
|
1072
|
+
let E = null;
|
|
1073
|
+
for (const R of N.value)
|
|
1074
|
+
R.active = !1, R.id === y.id && (E = R);
|
|
1075
|
+
if (E === null) {
|
|
1076
|
+
const R = new lt();
|
|
1077
|
+
R.push(x);
|
|
1078
|
+
const z = g.query.__src;
|
|
1079
|
+
E = {
|
|
1080
|
+
id: y.id,
|
|
1081
|
+
title: y.title,
|
|
1082
|
+
closable: y.closable,
|
|
1083
|
+
refreshable: y.refreshable,
|
|
1084
|
+
iframe: y.iframe,
|
|
1085
|
+
iframeRefreshMode: y.iframeRefreshMode ?? "postMessage",
|
|
1086
|
+
url: decodeURIComponent(z),
|
|
995
1087
|
active: !0,
|
|
996
|
-
pages:
|
|
997
|
-
},
|
|
998
|
-
|
|
999
|
-
id:
|
|
1088
|
+
pages: R
|
|
1089
|
+
}, l(E).then(() => {
|
|
1090
|
+
t.emit(H.TAB_ACTIVE, {
|
|
1091
|
+
id: y.id,
|
|
1000
1092
|
isRoute: !1
|
|
1001
1093
|
});
|
|
1002
1094
|
});
|
|
1003
1095
|
} else
|
|
1004
|
-
|
|
1005
|
-
return
|
|
1006
|
-
|
|
1096
|
+
E.active = !0, (E.pages.isEmpty() || E.pages.peek().id !== x.id) && E.pages.push(x);
|
|
1097
|
+
return E;
|
|
1098
|
+
}, d = (y) => {
|
|
1099
|
+
const g = c(y);
|
|
1100
|
+
if (ee.has(g.id)) return {
|
|
1101
|
+
empty: !0
|
|
1102
|
+
};
|
|
1103
|
+
const f = Us(y), x = Ut(g.id, f, y.query.valueOf());
|
|
1104
|
+
if (he.has(x)) {
|
|
1105
|
+
he.delete(x);
|
|
1106
|
+
const z = Q.get(x);
|
|
1107
|
+
if (z) return {
|
|
1108
|
+
recovered: z,
|
|
1109
|
+
cacheName: x
|
|
1110
|
+
};
|
|
1111
|
+
}
|
|
1112
|
+
const E = {
|
|
1113
|
+
id: x,
|
|
1114
|
+
tabId: g.id,
|
|
1115
|
+
path: y.path,
|
|
1116
|
+
query: y.query
|
|
1117
|
+
}, R = b(g, y, x, E);
|
|
1118
|
+
return Gt(R), {
|
|
1119
|
+
cacheName: x,
|
|
1120
|
+
tabInfo: g,
|
|
1121
|
+
targetTab: R
|
|
1122
|
+
};
|
|
1123
|
+
}, p = (y, g) => {
|
|
1124
|
+
const {
|
|
1125
|
+
cacheName: f,
|
|
1126
|
+
tabInfo: x
|
|
1127
|
+
} = y;
|
|
1128
|
+
if (Q.has(f))
|
|
1129
|
+
return Oe(f), Q.get(f);
|
|
1130
|
+
const E = /* @__PURE__ */ q({
|
|
1131
|
+
name: f,
|
|
1007
1132
|
components: {
|
|
1008
|
-
DynamicComponent:
|
|
1009
|
-
},
|
|
1010
|
-
emits: {
|
|
1011
|
-
onLoaded: null
|
|
1133
|
+
DynamicComponent: g
|
|
1012
1134
|
},
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
}), Ze(() => {
|
|
1021
|
-
l(P);
|
|
1022
|
-
}), () => N("div", {
|
|
1135
|
+
emits: ["onLoaded"],
|
|
1136
|
+
setup(R, z) {
|
|
1137
|
+
return gt(() => {
|
|
1138
|
+
z.emit("onLoaded"), Ht(f, ".cache-page-wrapper");
|
|
1139
|
+
}), Bn(() => $s(f)), zn(() => {
|
|
1140
|
+
z.emit("onLoaded"), Ps(f), fe(), ee.clear(), O(f), g.props = null;
|
|
1141
|
+
}), Ee(() => Vs(f)), () => $("div", {
|
|
1023
1142
|
class: "cache-page-wrapper",
|
|
1024
|
-
id: "W-" +
|
|
1025
|
-
style: [
|
|
1026
|
-
}, [
|
|
1027
|
-
tId:
|
|
1028
|
-
pId:
|
|
1029
|
-
}, null),
|
|
1030
|
-
|
|
1143
|
+
id: "W-" + x.id,
|
|
1144
|
+
style: [xn ? "overflow:auto" : "overflow:hidden"]
|
|
1145
|
+
}, [$(cn("dynamic-component"), {
|
|
1146
|
+
tId: x.id,
|
|
1147
|
+
pId: f
|
|
1148
|
+
}, null), $(Rs, {
|
|
1149
|
+
tabId: x.id
|
|
1031
1150
|
}, null)]);
|
|
1032
1151
|
}
|
|
1033
|
-
})
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1152
|
+
});
|
|
1153
|
+
return Q.set(f, E), Oe(f), E;
|
|
1154
|
+
}, O = (y) => {
|
|
1155
|
+
pe.value = pe.value.filter((g) => g !== y);
|
|
1156
|
+
}, A = (y, g) => {
|
|
1157
|
+
if (!g) return jt;
|
|
1158
|
+
const f = d(y);
|
|
1159
|
+
return "empty" in f ? jt : "recovered" in f ? (Oe(f.cacheName), f.recovered) : p(f, g);
|
|
1160
|
+
}, I = (y) => {
|
|
1161
|
+
const g = a(y.id);
|
|
1162
|
+
g && (Ds(g), fe(), g.pages.clear());
|
|
1163
|
+
}, S = (y) => {
|
|
1164
|
+
let g = "";
|
|
1165
|
+
const f = a(y), x = N.value, E = x.findIndex((z) => z?.id === y);
|
|
1166
|
+
if (E < 0) return "";
|
|
1167
|
+
const R = x[E];
|
|
1168
|
+
return R.closable ? (Ae(R), R.pages.clear(), x.length > 1 && R.active && (g = (E === 0 ? x[1] : x[E - 1])?.id ?? ""), x.splice(E, 1), g && t.emit(H.TAB_ACTIVE, {
|
|
1169
|
+
id: g
|
|
1170
|
+
}), f?.active || (fe(), ee.clear()), g) : y;
|
|
1171
|
+
}, m = () => {
|
|
1172
|
+
const y = N.value;
|
|
1173
|
+
for (let x = y.length - 1; x >= 0; x--) {
|
|
1174
|
+
const E = y[x];
|
|
1175
|
+
E?.closable && (Ae(E), E.pages.clear(), y.splice(x, 1));
|
|
1042
1176
|
}
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
if (!T(M)[h].closable)
|
|
1076
|
-
return b;
|
|
1077
|
-
for (const L of T(M)[h].pages.list())
|
|
1078
|
-
$(L.id), H.add(T(M)[h].id);
|
|
1079
|
-
T(M)[h].pages.clear(), M.value.length > 1 && T(M)[h].active && (h === 0 ? v = T(M)[h + 1].id : v = T(M)[h - 1].id), T(M).splice(h, 1);
|
|
1080
|
-
break;
|
|
1177
|
+
if (y.some((x) => x.active)) {
|
|
1178
|
+
fe(), ee.clear();
|
|
1179
|
+
return;
|
|
1180
|
+
}
|
|
1181
|
+
const f = y[y.length - 1];
|
|
1182
|
+
f && t.emit(H.TAB_ACTIVE, {
|
|
1183
|
+
id: f.id
|
|
1184
|
+
});
|
|
1185
|
+
};
|
|
1186
|
+
return {
|
|
1187
|
+
tabs: N,
|
|
1188
|
+
caches: ke,
|
|
1189
|
+
refreshKey: tt,
|
|
1190
|
+
excludedCacheIdsForRefresh: pe,
|
|
1191
|
+
isInitialized: Ft,
|
|
1192
|
+
setMaxSize: Ls,
|
|
1193
|
+
canAddTab: i,
|
|
1194
|
+
initialize: o,
|
|
1195
|
+
size: s,
|
|
1196
|
+
active: (y, g = !0) => {
|
|
1197
|
+
t.emit("FORWARD");
|
|
1198
|
+
const f = a(y);
|
|
1199
|
+
if (f && !f.active) {
|
|
1200
|
+
for (const x of N.value)
|
|
1201
|
+
x.active = x.id === y;
|
|
1202
|
+
if (Gt(f), N.value = N.value.slice(), g) {
|
|
1203
|
+
const x = f.pages.peek();
|
|
1204
|
+
x && e.push({
|
|
1205
|
+
path: x.path,
|
|
1206
|
+
query: x.query
|
|
1207
|
+
});
|
|
1208
|
+
}
|
|
1081
1209
|
}
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1210
|
+
},
|
|
1211
|
+
destroy: () => {
|
|
1212
|
+
N.value.length = 0, he.clear(), ee.clear(), ue.value = {}, ke.value.length = 0, Q.clear(), qt();
|
|
1213
|
+
},
|
|
1214
|
+
reset: () => m(),
|
|
1215
|
+
addCache: Oe,
|
|
1216
|
+
removeCache: kn,
|
|
1217
|
+
getTab: a,
|
|
1218
|
+
addTab: l,
|
|
1219
|
+
removeTab: S,
|
|
1220
|
+
removeAllTabs: m,
|
|
1221
|
+
removeLeftTabs: (y) => {
|
|
1222
|
+
const g = N.value, f = g.findIndex((E) => E?.id === y);
|
|
1223
|
+
if (f <= 0) return;
|
|
1224
|
+
for (let E = f - 1; E >= 0; E--) {
|
|
1225
|
+
const R = g[E];
|
|
1226
|
+
R?.closable && (Ae(R), R.pages.clear(), g.splice(E, 1));
|
|
1092
1227
|
}
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
z(), H.clear();
|
|
1228
|
+
if (g.some((E) => E.active)) {
|
|
1229
|
+
fe(), ee.clear();
|
|
1096
1230
|
return;
|
|
1097
1231
|
}
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
if (
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
$(L.id), H.add(v[h].id);
|
|
1110
|
-
T(M)[h].pages.clear(), T(M).splice(h, 1);
|
|
1111
|
-
}
|
|
1112
|
-
I.active ? (z(), H.clear()) : e.emit(X.TAB_ACTIVE, {
|
|
1113
|
-
id: b
|
|
1114
|
-
});
|
|
1115
|
-
}, y = (b) => {
|
|
1116
|
-
let v = -1;
|
|
1117
|
-
const I = T(M);
|
|
1118
|
-
for (let h = 0; h < I.length; h++)
|
|
1119
|
-
if (I[h].id === b) {
|
|
1120
|
-
v = h - 1;
|
|
1121
|
-
break;
|
|
1122
|
-
}
|
|
1123
|
-
for (let h = v; h >= 0; h--)
|
|
1124
|
-
if (I[h].closable) {
|
|
1125
|
-
for (const L of I[h].pages.list())
|
|
1126
|
-
$(L.id), H.add(I[h].id);
|
|
1127
|
-
T(M)[h].pages.clear(), T(M).splice(h, 1);
|
|
1232
|
+
const x = g[0];
|
|
1233
|
+
x && t.emit(H.TAB_ACTIVE, {
|
|
1234
|
+
id: x.id
|
|
1235
|
+
});
|
|
1236
|
+
},
|
|
1237
|
+
removeRightTabs: (y) => {
|
|
1238
|
+
const g = N.value, f = g.findIndex((E) => E?.id === y);
|
|
1239
|
+
if (f < 0 || f >= g.length - 1) return;
|
|
1240
|
+
for (let E = g.length - 1; E > f; E--) {
|
|
1241
|
+
const R = g[E];
|
|
1242
|
+
R?.closable && (Ae(R), R.pages.clear(), g.splice(E, 1));
|
|
1128
1243
|
}
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
z(), H.clear();
|
|
1244
|
+
if (g.some((E) => E.active)) {
|
|
1245
|
+
fe(), ee.clear();
|
|
1132
1246
|
return;
|
|
1133
1247
|
}
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
for (let h = v.length - 1; h >= I; h--)
|
|
1146
|
-
if (v[h].closable) {
|
|
1147
|
-
for (const L of v[h].pages.list())
|
|
1148
|
-
$(L.id), H.add(v[h].id);
|
|
1149
|
-
T(M)[h].pages.clear(), T(M).splice(h, 1);
|
|
1248
|
+
const x = g[g.length - 1];
|
|
1249
|
+
x && t.emit(H.TAB_ACTIVE, {
|
|
1250
|
+
id: x.id
|
|
1251
|
+
});
|
|
1252
|
+
},
|
|
1253
|
+
removeOtherTabs: (y) => {
|
|
1254
|
+
const g = N.value;
|
|
1255
|
+
let f;
|
|
1256
|
+
for (let x = g.length - 1; x >= 0; x--) {
|
|
1257
|
+
const E = g[x];
|
|
1258
|
+
E && (E.id === y ? f = E : E.closable && (Ae(E), E.pages.clear(), g.splice(x, 1)));
|
|
1150
1259
|
}
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1260
|
+
f && !f.active ? t.emit(H.TAB_ACTIVE, {
|
|
1261
|
+
id: y
|
|
1262
|
+
}) : (fe(), ee.clear());
|
|
1263
|
+
},
|
|
1264
|
+
hasTab: r,
|
|
1265
|
+
renewTab: I,
|
|
1266
|
+
addPage: A,
|
|
1267
|
+
addComponent: (y, g) => Q.set(y, g),
|
|
1268
|
+
getComponent: (y) => Q.get(y),
|
|
1269
|
+
removeComponent: (y) => Q.delete(y),
|
|
1270
|
+
markCacheForEviction: Et,
|
|
1271
|
+
evictMarkedCaches: fe,
|
|
1272
|
+
refreshTab: (y) => {
|
|
1273
|
+
const g = a(y);
|
|
1274
|
+
if (!g?.refreshable) return;
|
|
1275
|
+
if (g.iframe) {
|
|
1276
|
+
g.iframeRefreshMode === "reload" ? ue.value = {
|
|
1277
|
+
...ue.value,
|
|
1278
|
+
[y]: (ue.value[y] ?? 0) + 1
|
|
1279
|
+
} : t.emit("REFRESH_IFRAME_POSTMESSAGE", y);
|
|
1154
1280
|
return;
|
|
1155
1281
|
}
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1282
|
+
const f = g.pages.peek()?.id;
|
|
1283
|
+
f && (pe.value = [...pe.value, f], g.active && tt.value++);
|
|
1284
|
+
},
|
|
1285
|
+
refreshAllTabs: () => {
|
|
1286
|
+
const y = [];
|
|
1287
|
+
for (const g of N.value)
|
|
1288
|
+
if (g?.refreshable)
|
|
1289
|
+
if (g.iframe)
|
|
1290
|
+
g.iframeRefreshMode === "reload" ? ue.value = {
|
|
1291
|
+
...ue.value,
|
|
1292
|
+
[g.id]: (ue.value[g.id] ?? 0) + 1
|
|
1293
|
+
} : t.emit("REFRESH_IFRAME_POSTMESSAGE", g.id);
|
|
1294
|
+
else {
|
|
1295
|
+
const f = g.pages.peek()?.id;
|
|
1296
|
+
f && y.push(f);
|
|
1170
1297
|
}
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1298
|
+
y.length > 0 && (pe.value = [...pe.value, ...y], tt.value++);
|
|
1299
|
+
},
|
|
1300
|
+
iframeRefreshKeys: ue,
|
|
1301
|
+
addPageScroller: Ht,
|
|
1302
|
+
setGlobalScroll: Bs,
|
|
1303
|
+
clearSession: qt,
|
|
1304
|
+
setSessionPrefix: zs
|
|
1305
|
+
};
|
|
1306
|
+
};
|
|
1307
|
+
let Zt;
|
|
1308
|
+
function At() {
|
|
1309
|
+
const e = wt(), t = Te(), {
|
|
1310
|
+
active: n,
|
|
1311
|
+
hasTab: s,
|
|
1312
|
+
refreshKey: o,
|
|
1313
|
+
reset: r,
|
|
1314
|
+
canAddTab: i,
|
|
1315
|
+
renewTab: l,
|
|
1316
|
+
getTab: a,
|
|
1317
|
+
tabs: c,
|
|
1318
|
+
removeTab: b,
|
|
1319
|
+
removeAllTabs: d,
|
|
1320
|
+
refreshTab: p,
|
|
1321
|
+
refreshAllTabs: O
|
|
1322
|
+
} = Xe(), A = (h) => {
|
|
1323
|
+
const w = {
|
|
1324
|
+
refreshable: !0,
|
|
1325
|
+
closable: !0,
|
|
1326
|
+
iframe: !1
|
|
1327
|
+
};
|
|
1328
|
+
h.iframe && h.iframeRefreshMode === void 0 ? w.iframeRefreshMode = pn(h.path ?? "") ? "reload" : "postMessage" : h.iframe && (w.iframeRefreshMode = h.iframeRefreshMode ?? "postMessage");
|
|
1329
|
+
const u = re(h, w);
|
|
1330
|
+
return u.id || (u.id = We()), u;
|
|
1331
|
+
}, I = rs(500, (h, w = !1) => new Promise((u, T) => {
|
|
1332
|
+
const v = A(h);
|
|
1333
|
+
if (s(v.id) && !w) {
|
|
1334
|
+
t.emit(H.TAB_ACTIVE, { id: v.id }), u(v.id);
|
|
1335
|
+
return;
|
|
1181
1336
|
}
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
xe.value = !0;
|
|
1186
|
-
}, 300);
|
|
1187
|
-
});
|
|
1188
|
-
});
|
|
1189
|
-
}, d = (b, v) => {
|
|
1190
|
-
ae.set(b, v);
|
|
1191
|
-
}, k = (b) => ae.get(b), _ = (b) => {
|
|
1192
|
-
ae.delete(b);
|
|
1193
|
-
}, $ = (b) => {
|
|
1194
|
-
fe.add(b);
|
|
1195
|
-
}, z = () => {
|
|
1196
|
-
if (fe.size > 0) {
|
|
1197
|
-
for (let b = W.value.length - 1; b >= 0; b--)
|
|
1198
|
-
fe.has(W.value[b]) && T(W).splice(b, 1);
|
|
1199
|
-
for (const b of fe)
|
|
1200
|
-
_(b);
|
|
1201
|
-
fe.clear();
|
|
1337
|
+
if (v.id && w && s(v.id) && (l(h), a(h.id)?.active && o.value++), !i()) {
|
|
1338
|
+
T(new Error("Max Size"));
|
|
1339
|
+
return;
|
|
1202
1340
|
}
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
if (h.id === b) {
|
|
1213
|
-
if (h.active)
|
|
1214
|
-
break;
|
|
1215
|
-
if (h.active = !0, q(h), v) {
|
|
1216
|
-
const L = h.pages.peek();
|
|
1217
|
-
t.push({
|
|
1218
|
-
path: L.path,
|
|
1219
|
-
query: L.query
|
|
1220
|
-
});
|
|
1221
|
-
}
|
|
1222
|
-
} else
|
|
1223
|
-
M.value[I].active = !1;
|
|
1341
|
+
S(h, v), u(v.id);
|
|
1342
|
+
})), S = (h, w) => {
|
|
1343
|
+
const u = pt(w);
|
|
1344
|
+
let T = re({ __tab: u }, h.query), v;
|
|
1345
|
+
if (h.iframe)
|
|
1346
|
+
T.__src = encodeURIComponent(h.path), v = Zt;
|
|
1347
|
+
else {
|
|
1348
|
+
const P = _t(h.path);
|
|
1349
|
+
v = P.path, T = re(P.query, T);
|
|
1224
1350
|
}
|
|
1225
|
-
|
|
1226
|
-
window.sessionStorage.setItem($e + Ke, JSON.stringify(b));
|
|
1227
|
-
}, ee = () => {
|
|
1228
|
-
window.sessionStorage.removeItem($e + Ke);
|
|
1351
|
+
e.push({ path: v, query: T });
|
|
1229
1352
|
};
|
|
1230
1353
|
return {
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
canAddTab: i,
|
|
1239
|
-
initial: r,
|
|
1240
|
-
size: s,
|
|
1241
|
-
active: C,
|
|
1242
|
-
destroy: () => {
|
|
1243
|
-
T(M).splice(0), fe.clear(), H.clear(), T(W).splice(0), ae.clear(), ee();
|
|
1244
|
-
},
|
|
1245
|
-
reset: () => {
|
|
1246
|
-
E();
|
|
1247
|
-
},
|
|
1248
|
-
addCache: A,
|
|
1249
|
-
removeCache: U,
|
|
1250
|
-
getTab: a,
|
|
1251
|
-
addTab: f,
|
|
1252
|
-
removeTab: B,
|
|
1253
|
-
removeAllTabs: E,
|
|
1254
|
-
removeLeftTabs: y,
|
|
1255
|
-
removeRightTabs: S,
|
|
1256
|
-
removeOtherTabs: g,
|
|
1257
|
-
hasTab: o,
|
|
1258
|
-
renewTab: x,
|
|
1259
|
-
addPage: c,
|
|
1260
|
-
addComponent: d,
|
|
1261
|
-
getComponent: k,
|
|
1262
|
-
removeComponent: _,
|
|
1263
|
-
markDeletableCache: $,
|
|
1264
|
-
removeDeletableCache: z,
|
|
1265
|
-
refreshTab: m,
|
|
1354
|
+
// 打开
|
|
1355
|
+
openTab: I,
|
|
1356
|
+
// 关闭
|
|
1357
|
+
closeTab: b,
|
|
1358
|
+
closeAllTabs: d,
|
|
1359
|
+
// 刷新
|
|
1360
|
+
refreshTab: p,
|
|
1266
1361
|
refreshAllTabs: O,
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1362
|
+
// 激活与重置
|
|
1363
|
+
activeTab: n,
|
|
1364
|
+
reset: r,
|
|
1365
|
+
// 数据与配置
|
|
1366
|
+
tabs: c,
|
|
1367
|
+
setIFramePath: (h) => {
|
|
1368
|
+
Zt = h;
|
|
1270
1369
|
},
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1370
|
+
getWrapper: () => document.getElementsByClassName("cache-page-wrapper")[0],
|
|
1371
|
+
openInNewWindow: (h) => {
|
|
1372
|
+
const w = a(h);
|
|
1373
|
+
w?.iframe && w.url && window.open(w.url, "_blank", "noopener,noreferrer");
|
|
1274
1374
|
}
|
|
1275
1375
|
};
|
|
1276
|
-
}
|
|
1376
|
+
}
|
|
1377
|
+
const Fs = { class: "stack-tab__contextmenu-item" }, J = /* @__PURE__ */ q({
|
|
1277
1378
|
__name: "ContextMenuItem",
|
|
1278
1379
|
props: {
|
|
1279
1380
|
icon: {},
|
|
1280
1381
|
title: {}
|
|
1281
1382
|
},
|
|
1282
|
-
setup(
|
|
1283
|
-
return (
|
|
1284
|
-
|
|
1285
|
-
class:
|
|
1383
|
+
setup(e) {
|
|
1384
|
+
return (t, n) => (B(), V("div", Fs, [
|
|
1385
|
+
W("div", {
|
|
1386
|
+
class: de(["stack-tab__contextmenu-icon", e.icon])
|
|
1286
1387
|
}, null, 2),
|
|
1287
|
-
|
|
1388
|
+
W("div", {
|
|
1288
1389
|
style: { "margin-left": "8px" },
|
|
1289
|
-
onContextmenu: n[0] || (n[0] =
|
|
1390
|
+
onContextmenu: n[0] || (n[0] = Le(() => {
|
|
1290
1391
|
}, ["prevent"]))
|
|
1291
|
-
},
|
|
1392
|
+
}, yt(e.title), 33)
|
|
1292
1393
|
]));
|
|
1293
1394
|
}
|
|
1294
|
-
}),
|
|
1295
|
-
key:
|
|
1395
|
+
}), Hs = {
|
|
1396
|
+
key: 1,
|
|
1296
1397
|
class: "divider div-transparent"
|
|
1297
|
-
},
|
|
1398
|
+
}, Gs = /* @__PURE__ */ q({
|
|
1298
1399
|
__name: "index",
|
|
1299
1400
|
props: {
|
|
1300
1401
|
index: {},
|
|
1301
1402
|
left: { default: 0 },
|
|
1302
1403
|
top: { default: 0 },
|
|
1303
|
-
contextMenu: {},
|
|
1404
|
+
contextMenu: { default: () => [] },
|
|
1304
1405
|
tabItem: {},
|
|
1305
1406
|
max: {}
|
|
1306
1407
|
},
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
}
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
removeOtherTabs: u
|
|
1319
|
-
} = Ce();
|
|
1320
|
-
return He(() => {
|
|
1321
|
-
const l = s.value ? s.value.clientWidth : 0, w = window.innerWidth;
|
|
1322
|
-
r.left + l > w && (r.left = w - l - 5);
|
|
1323
|
-
}), (l, w) => (R(), V("div", {
|
|
1324
|
-
ref_key: "contextmenu",
|
|
1325
|
-
ref: s,
|
|
1408
|
+
emits: ["close"],
|
|
1409
|
+
setup(e, { emit: t }) {
|
|
1410
|
+
const n = e, s = t, { t: o } = ze(), r = D(), i = ne({ left: n.left, top: n.top }), { closeTab: l, closeAllTabs: a, refreshTab: c, refreshAllTabs: b, openInNewWindow: d } = At(), { removeLeftTabs: p, removeRightTabs: O, removeOtherTabs: A } = Xe(), I = (S) => {
|
|
1411
|
+
S?.(), s("close");
|
|
1412
|
+
};
|
|
1413
|
+
return gt(() => {
|
|
1414
|
+
const S = r.value?.clientWidth ?? 0;
|
|
1415
|
+
i.left + S > window.innerWidth && (i.left = window.innerWidth - S - 5);
|
|
1416
|
+
}), (S, m) => (B(), V("div", {
|
|
1417
|
+
ref_key: "menuElementRef",
|
|
1418
|
+
ref: r,
|
|
1326
1419
|
class: "stack-tab__contextmenu",
|
|
1327
|
-
style:
|
|
1328
|
-
left: `${
|
|
1329
|
-
top: `${
|
|
1330
|
-
"z-index":
|
|
1420
|
+
style: Ze({
|
|
1421
|
+
left: `${i.left}px`,
|
|
1422
|
+
top: `${i.top}px`,
|
|
1423
|
+
"z-index": C(xt)(".stack-tab,.stack-tab *")
|
|
1331
1424
|
})
|
|
1332
1425
|
}, [
|
|
1333
|
-
|
|
1426
|
+
$(J, {
|
|
1334
1427
|
icon: "stack-tab__icon-reload svg-mask",
|
|
1335
|
-
title:
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1428
|
+
title: C(o)("VueStackTab.reload"),
|
|
1429
|
+
disabled: e.tabItem.refreshable ? null : "disabled",
|
|
1430
|
+
onClick: m[0] || (m[0] = (_) => I(() => C(c)(e.tabItem.id)))
|
|
1431
|
+
}, null, 8, ["title", "disabled"]),
|
|
1432
|
+
$(J, {
|
|
1339
1433
|
icon: "stack-tab__icon-reload-all svg-mask",
|
|
1340
|
-
title:
|
|
1341
|
-
onClick:
|
|
1342
|
-
}, null, 8, ["title"
|
|
1343
|
-
|
|
1434
|
+
title: C(o)("VueStackTab.reloadAll"),
|
|
1435
|
+
onClick: m[1] || (m[1] = (_) => I(C(b)))
|
|
1436
|
+
}, null, 8, ["title"]),
|
|
1437
|
+
$(J, {
|
|
1344
1438
|
icon: "stack-tab__icon-close svg-mask",
|
|
1345
|
-
title:
|
|
1346
|
-
disabled:
|
|
1347
|
-
onClick:
|
|
1439
|
+
title: C(o)("VueStackTab.close"),
|
|
1440
|
+
disabled: e.tabItem.closable ? null : "disabled",
|
|
1441
|
+
onClick: m[2] || (m[2] = (_) => I(() => C(l)(e.tabItem.id)))
|
|
1348
1442
|
}, null, 8, ["title", "disabled"]),
|
|
1349
|
-
|
|
1443
|
+
$(J, {
|
|
1350
1444
|
icon: "stack-tab__icon-close-lefts svg-mask",
|
|
1351
|
-
title:
|
|
1352
|
-
disabled:
|
|
1353
|
-
onClick:
|
|
1445
|
+
title: C(o)("VueStackTab.closeLeft"),
|
|
1446
|
+
disabled: e.index <= 0 ? "disabled" : null,
|
|
1447
|
+
onClick: m[3] || (m[3] = (_) => I(() => C(p)(e.tabItem.id)))
|
|
1354
1448
|
}, null, 8, ["title", "disabled"]),
|
|
1355
|
-
|
|
1449
|
+
$(J, {
|
|
1356
1450
|
icon: "stack-tab__icon-close-rights svg-mask",
|
|
1357
|
-
title:
|
|
1358
|
-
disabled:
|
|
1359
|
-
onClick:
|
|
1451
|
+
title: C(o)("VueStackTab.closeRight"),
|
|
1452
|
+
disabled: e.index >= e.max - 1 ? "disabled" : null,
|
|
1453
|
+
onClick: m[4] || (m[4] = (_) => I(() => C(O)(e.tabItem.id)))
|
|
1360
1454
|
}, null, 8, ["title", "disabled"]),
|
|
1361
|
-
|
|
1455
|
+
$(J, {
|
|
1362
1456
|
icon: "stack-tab__icon-close-others svg-mask",
|
|
1363
|
-
title:
|
|
1364
|
-
onClick:
|
|
1457
|
+
title: C(o)("VueStackTab.closeOthers"),
|
|
1458
|
+
onClick: m[5] || (m[5] = (_) => I(() => C(A)(e.tabItem.id)))
|
|
1365
1459
|
}, null, 8, ["title"]),
|
|
1366
|
-
|
|
1460
|
+
$(J, {
|
|
1367
1461
|
icon: "stack-tab__icon-close-all svg-mask",
|
|
1368
|
-
title:
|
|
1369
|
-
onClick:
|
|
1370
|
-
}, null, 8, ["title"
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1462
|
+
title: C(o)("VueStackTab.closeAll"),
|
|
1463
|
+
onClick: m[6] || (m[6] = (_) => I(C(a)))
|
|
1464
|
+
}, null, 8, ["title"]),
|
|
1465
|
+
e.tabItem.iframe && e.tabItem.url ? (B(), se(J, {
|
|
1466
|
+
key: 0,
|
|
1467
|
+
icon: "stack-tab__icon-open svg-mask",
|
|
1468
|
+
title: C(o)("VueStackTab.openInNewWindow"),
|
|
1469
|
+
onClick: m[7] || (m[7] = (_) => I(() => C(d)(e.tabItem.id)))
|
|
1470
|
+
}, null, 8, ["title"])) : ie("", !0),
|
|
1471
|
+
e.contextMenu !== void 0 && e.contextMenu.length > 0 ? (B(), V("div", Hs)) : ie("", !0),
|
|
1472
|
+
(B(!0), V(Ke, null, Tt(e.contextMenu, (_, k) => (B(), se(J, {
|
|
1473
|
+
key: k,
|
|
1474
|
+
icon: _.icon,
|
|
1475
|
+
title: _.title,
|
|
1476
|
+
disabled: _.disabled(e.tabItem) ? "disabled" : null,
|
|
1477
|
+
onClick: (h) => I(() => !_.disabled(e.tabItem) && _.callback(e.tabItem.id))
|
|
1378
1478
|
}, null, 8, ["icon", "title", "disabled", "onClick"]))), 128))
|
|
1379
1479
|
], 4));
|
|
1380
1480
|
}
|
|
1381
|
-
}),
|
|
1382
|
-
const n =
|
|
1383
|
-
for (const [s,
|
|
1384
|
-
n[s] =
|
|
1481
|
+
}), qs = (e, t) => {
|
|
1482
|
+
const n = e.__vccOpts || e;
|
|
1483
|
+
for (const [s, o] of t)
|
|
1484
|
+
n[s] = o;
|
|
1385
1485
|
return n;
|
|
1386
|
-
},
|
|
1387
|
-
const
|
|
1486
|
+
}, js = /* @__PURE__ */ qs(Gs, [["__scopeId", "data-v-6f704637"]]), Zs = () => {
|
|
1487
|
+
const e = ne({
|
|
1388
1488
|
item: {},
|
|
1389
1489
|
index: -1,
|
|
1390
1490
|
left: 0,
|
|
1391
1491
|
top: 0,
|
|
1392
1492
|
max: 0
|
|
1393
|
-
}),
|
|
1394
|
-
|
|
1395
|
-
document.addEventListener("click", s);
|
|
1396
|
-
}), Ze(() => {
|
|
1397
|
-
document.removeEventListener("click", s);
|
|
1398
|
-
});
|
|
1399
|
-
const n = async (r, o, i, f) => {
|
|
1400
|
-
e.value = !1, await ye(() => {
|
|
1401
|
-
const { clientY: a, clientX: c } = r;
|
|
1402
|
-
e.value = !0, Object.assign(t, { item: o, index: i, top: a, left: c, max: f });
|
|
1403
|
-
});
|
|
1404
|
-
}, s = (r) => {
|
|
1405
|
-
r.target.classList.contains("stack-tab__contextmenu") || (e.value = !1);
|
|
1493
|
+
}), t = D(!1), n = (o) => {
|
|
1494
|
+
o.target.closest?.(".stack-tab__contextmenu") || (t.value = !1, document.removeEventListener("click", n));
|
|
1406
1495
|
};
|
|
1407
|
-
return {
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1496
|
+
return Ee(() => {
|
|
1497
|
+
document.removeEventListener("click", n);
|
|
1498
|
+
}), {
|
|
1499
|
+
shown: t,
|
|
1500
|
+
contextMenuData: e,
|
|
1501
|
+
showContextMenu: async (o, r, i, l) => {
|
|
1502
|
+
t.value = !1, document.removeEventListener("click", n), await ot(() => {
|
|
1503
|
+
const { clientY: a, clientX: c } = o;
|
|
1504
|
+
t.value = !0, Object.assign(e, { item: r, index: i, top: a, left: c, max: l }), ot(() => document.addEventListener("click", n));
|
|
1505
|
+
});
|
|
1506
|
+
}
|
|
1411
1507
|
};
|
|
1412
|
-
},
|
|
1508
|
+
}, Ks = { class: "stack-tab__item-title" }, Xs = ["title"], Ys = ["title"], Js = /* @__PURE__ */ q({
|
|
1413
1509
|
__name: "TabHeaderItem",
|
|
1414
1510
|
props: {
|
|
1415
1511
|
item: {}
|
|
1416
1512
|
},
|
|
1417
1513
|
emits: ["close", "active"],
|
|
1418
|
-
setup(
|
|
1419
|
-
const n =
|
|
1420
|
-
|
|
1421
|
-
|
|
1514
|
+
setup(e, { emit: t }) {
|
|
1515
|
+
const n = t, s = Te(), { t: o } = ze(), r = D(), i = e, l = (p) => {
|
|
1516
|
+
i.item.id === p.id && d(p.isRoute ?? !0);
|
|
1517
|
+
}, a = H.TAB_ACTIVE;
|
|
1518
|
+
s.on(a, l), Ee(() => {
|
|
1519
|
+
s.off(a, l);
|
|
1422
1520
|
});
|
|
1423
|
-
const
|
|
1521
|
+
const c = oe(() => i.item.title || o("undefined")), b = () => {
|
|
1424
1522
|
n("close", i.item);
|
|
1425
|
-
},
|
|
1426
|
-
n("active", i.item,
|
|
1523
|
+
}, d = (p = !0) => {
|
|
1524
|
+
n("active", i.item, r.value, p);
|
|
1427
1525
|
};
|
|
1428
|
-
return (p,
|
|
1429
|
-
ref_key: "
|
|
1430
|
-
ref:
|
|
1431
|
-
class:
|
|
1432
|
-
"is-active":
|
|
1433
|
-
"is-icon":
|
|
1526
|
+
return (p, O) => (B(), V("li", {
|
|
1527
|
+
ref_key: "tabElementRef",
|
|
1528
|
+
ref: r,
|
|
1529
|
+
class: de(["stack-tab__item", {
|
|
1530
|
+
"is-active": e.item.active,
|
|
1531
|
+
"is-icon": e.item.closable
|
|
1434
1532
|
}]),
|
|
1435
|
-
onClick:
|
|
1533
|
+
onClick: O[0] || (O[0] = (A) => d(!0))
|
|
1436
1534
|
}, [
|
|
1437
|
-
|
|
1438
|
-
|
|
1535
|
+
W("div", Ks, [
|
|
1536
|
+
W("div", {
|
|
1439
1537
|
class: "stack-tab__item-title-content",
|
|
1440
|
-
title:
|
|
1441
|
-
},
|
|
1538
|
+
title: c.value
|
|
1539
|
+
}, yt(c.value), 9, Xs)
|
|
1442
1540
|
]),
|
|
1443
|
-
|
|
1541
|
+
e.item.closable ? (B(), V("div", {
|
|
1444
1542
|
key: 0,
|
|
1445
1543
|
class: "stack-tab__icon-close-fill stack-tab__item-button",
|
|
1446
|
-
title:
|
|
1447
|
-
onClick:
|
|
1448
|
-
}, null, 8,
|
|
1544
|
+
title: C(o)("VueStackTab.close"),
|
|
1545
|
+
onClick: Le(b, ["stop"])
|
|
1546
|
+
}, null, 8, Ys)) : ie("", !0)
|
|
1449
1547
|
], 2));
|
|
1450
1548
|
}
|
|
1451
1549
|
});
|
|
1452
|
-
var
|
|
1453
|
-
return
|
|
1454
|
-
return
|
|
1550
|
+
var ge = [], Qs = function() {
|
|
1551
|
+
return ge.some(function(e) {
|
|
1552
|
+
return e.activeTargets.length > 0;
|
|
1455
1553
|
});
|
|
1456
|
-
},
|
|
1457
|
-
return
|
|
1458
|
-
return
|
|
1554
|
+
}, eo = function() {
|
|
1555
|
+
return ge.some(function(e) {
|
|
1556
|
+
return e.skippedTargets.length > 0;
|
|
1459
1557
|
});
|
|
1460
|
-
},
|
|
1461
|
-
var
|
|
1462
|
-
typeof ErrorEvent == "function" ?
|
|
1463
|
-
message:
|
|
1464
|
-
}) : (
|
|
1558
|
+
}, Kt = "ResizeObserver loop completed with undelivered notifications.", to = function() {
|
|
1559
|
+
var e;
|
|
1560
|
+
typeof ErrorEvent == "function" ? e = new ErrorEvent("error", {
|
|
1561
|
+
message: Kt
|
|
1562
|
+
}) : (e = document.createEvent("Event"), e.initEvent("error", !1, !1), e.message = Kt), window.dispatchEvent(e);
|
|
1465
1563
|
}, Be;
|
|
1466
|
-
(function(
|
|
1467
|
-
|
|
1564
|
+
(function(e) {
|
|
1565
|
+
e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
1468
1566
|
})(Be || (Be = {}));
|
|
1469
|
-
var
|
|
1470
|
-
return Object.freeze(
|
|
1471
|
-
},
|
|
1472
|
-
function t
|
|
1473
|
-
this.inlineSize =
|
|
1567
|
+
var ye = function(e) {
|
|
1568
|
+
return Object.freeze(e);
|
|
1569
|
+
}, no = /* @__PURE__ */ (function() {
|
|
1570
|
+
function e(t, n) {
|
|
1571
|
+
this.inlineSize = t, this.blockSize = n, ye(this);
|
|
1474
1572
|
}
|
|
1475
|
-
return
|
|
1476
|
-
}(),
|
|
1477
|
-
function t
|
|
1478
|
-
return this.x =
|
|
1479
|
-
}
|
|
1480
|
-
return
|
|
1481
|
-
var
|
|
1482
|
-
return { x: n, y: s, top:
|
|
1483
|
-
},
|
|
1484
|
-
return new t
|
|
1485
|
-
},
|
|
1486
|
-
}(),
|
|
1487
|
-
return
|
|
1488
|
-
},
|
|
1489
|
-
if (
|
|
1490
|
-
var
|
|
1573
|
+
return e;
|
|
1574
|
+
})(), En = (function() {
|
|
1575
|
+
function e(t, n, s, o) {
|
|
1576
|
+
return this.x = t, this.y = n, this.width = s, this.height = o, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, ye(this);
|
|
1577
|
+
}
|
|
1578
|
+
return e.prototype.toJSON = function() {
|
|
1579
|
+
var t = this, n = t.x, s = t.y, o = t.top, r = t.right, i = t.bottom, l = t.left, a = t.width, c = t.height;
|
|
1580
|
+
return { x: n, y: s, top: o, right: r, bottom: i, left: l, width: a, height: c };
|
|
1581
|
+
}, e.fromRect = function(t) {
|
|
1582
|
+
return new e(t.x, t.y, t.width, t.height);
|
|
1583
|
+
}, e;
|
|
1584
|
+
})(), Ot = function(e) {
|
|
1585
|
+
return e instanceof SVGElement && "getBBox" in e;
|
|
1586
|
+
}, Sn = function(e) {
|
|
1587
|
+
if (Ot(e)) {
|
|
1588
|
+
var t = e.getBBox(), n = t.width, s = t.height;
|
|
1491
1589
|
return !n && !s;
|
|
1492
1590
|
}
|
|
1493
|
-
var
|
|
1494
|
-
return !(
|
|
1495
|
-
},
|
|
1496
|
-
var
|
|
1497
|
-
if (
|
|
1591
|
+
var o = e, r = o.offsetWidth, i = o.offsetHeight;
|
|
1592
|
+
return !(r || i || e.getClientRects().length);
|
|
1593
|
+
}, Xt = function(e) {
|
|
1594
|
+
var t;
|
|
1595
|
+
if (e instanceof Element)
|
|
1498
1596
|
return !0;
|
|
1499
|
-
var n = (
|
|
1500
|
-
return !!(n &&
|
|
1501
|
-
},
|
|
1502
|
-
switch (
|
|
1597
|
+
var n = (t = e?.ownerDocument) === null || t === void 0 ? void 0 : t.defaultView;
|
|
1598
|
+
return !!(n && e instanceof n.Element);
|
|
1599
|
+
}, so = function(e) {
|
|
1600
|
+
switch (e.tagName) {
|
|
1503
1601
|
case "INPUT":
|
|
1504
|
-
if (
|
|
1602
|
+
if (e.type !== "image")
|
|
1505
1603
|
break;
|
|
1506
1604
|
case "VIDEO":
|
|
1507
1605
|
case "AUDIO":
|
|
@@ -1513,99 +1611,99 @@ var be = function(t) {
|
|
|
1513
1611
|
return !0;
|
|
1514
1612
|
}
|
|
1515
1613
|
return !1;
|
|
1516
|
-
},
|
|
1517
|
-
return parseFloat(
|
|
1518
|
-
},
|
|
1519
|
-
return
|
|
1520
|
-
},
|
|
1521
|
-
devicePixelContentBoxSize:
|
|
1522
|
-
borderBoxSize:
|
|
1523
|
-
contentBoxSize:
|
|
1524
|
-
contentRect: new
|
|
1525
|
-
}),
|
|
1526
|
-
if (
|
|
1527
|
-
return
|
|
1528
|
-
if (
|
|
1529
|
-
return
|
|
1530
|
-
var n = getComputedStyle(
|
|
1531
|
-
devicePixelContentBoxSize:
|
|
1532
|
-
borderBoxSize:
|
|
1533
|
-
contentBoxSize:
|
|
1534
|
-
contentRect: new
|
|
1614
|
+
}, Ce = typeof window < "u" ? window : {}, Pe = /* @__PURE__ */ new WeakMap(), Yt = /auto|scroll/, oo = /^tb|vertical/, ro = /msie|trident/i.test(Ce.navigator && Ce.navigator.userAgent), K = function(e) {
|
|
1615
|
+
return parseFloat(e || "0");
|
|
1616
|
+
}, xe = function(e, t, n) {
|
|
1617
|
+
return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new no((n ? t : e) || 0, (n ? e : t) || 0);
|
|
1618
|
+
}, Jt = ye({
|
|
1619
|
+
devicePixelContentBoxSize: xe(),
|
|
1620
|
+
borderBoxSize: xe(),
|
|
1621
|
+
contentBoxSize: xe(),
|
|
1622
|
+
contentRect: new En(0, 0, 0, 0)
|
|
1623
|
+
}), An = function(e, t) {
|
|
1624
|
+
if (t === void 0 && (t = !1), Pe.has(e) && !t)
|
|
1625
|
+
return Pe.get(e);
|
|
1626
|
+
if (Sn(e))
|
|
1627
|
+
return Pe.set(e, Jt), Jt;
|
|
1628
|
+
var n = getComputedStyle(e), s = Ot(e) && e.ownerSVGElement && e.getBBox(), o = !ro && n.boxSizing === "border-box", r = oo.test(n.writingMode || ""), i = !s && Yt.test(n.overflowY || ""), l = !s && Yt.test(n.overflowX || ""), a = s ? 0 : K(n.paddingTop), c = s ? 0 : K(n.paddingRight), b = s ? 0 : K(n.paddingBottom), d = s ? 0 : K(n.paddingLeft), p = s ? 0 : K(n.borderTopWidth), O = s ? 0 : K(n.borderRightWidth), A = s ? 0 : K(n.borderBottomWidth), I = s ? 0 : K(n.borderLeftWidth), S = d + c, m = a + b, _ = I + O, k = p + A, h = l ? e.offsetHeight - k - e.clientHeight : 0, w = i ? e.offsetWidth - _ - e.clientWidth : 0, u = o ? S + _ : 0, T = o ? m + k : 0, v = s ? s.width : K(n.width) - u - w, P = s ? s.height : K(n.height) - T - h, F = v + S + w + _, y = P + m + h + k, g = ye({
|
|
1629
|
+
devicePixelContentBoxSize: xe(Math.round(v * devicePixelRatio), Math.round(P * devicePixelRatio), r),
|
|
1630
|
+
borderBoxSize: xe(F, y, r),
|
|
1631
|
+
contentBoxSize: xe(v, P, r),
|
|
1632
|
+
contentRect: new En(d, a, v, P)
|
|
1535
1633
|
});
|
|
1536
|
-
return
|
|
1537
|
-
},
|
|
1538
|
-
var s =
|
|
1539
|
-
switch (
|
|
1634
|
+
return Pe.set(e, g), g;
|
|
1635
|
+
}, On = function(e, t, n) {
|
|
1636
|
+
var s = An(e, n), o = s.borderBoxSize, r = s.contentBoxSize, i = s.devicePixelContentBoxSize;
|
|
1637
|
+
switch (t) {
|
|
1540
1638
|
case Be.DEVICE_PIXEL_CONTENT_BOX:
|
|
1541
1639
|
return i;
|
|
1542
1640
|
case Be.BORDER_BOX:
|
|
1543
|
-
return r;
|
|
1544
|
-
default:
|
|
1545
1641
|
return o;
|
|
1642
|
+
default:
|
|
1643
|
+
return r;
|
|
1546
1644
|
}
|
|
1547
|
-
},
|
|
1548
|
-
function t
|
|
1549
|
-
var n =
|
|
1550
|
-
this.target =
|
|
1645
|
+
}, io = /* @__PURE__ */ (function() {
|
|
1646
|
+
function e(t) {
|
|
1647
|
+
var n = An(t);
|
|
1648
|
+
this.target = t, this.contentRect = n.contentRect, this.borderBoxSize = ye([n.borderBoxSize]), this.contentBoxSize = ye([n.contentBoxSize]), this.devicePixelContentBoxSize = ye([n.devicePixelContentBoxSize]);
|
|
1551
1649
|
}
|
|
1552
|
-
return t;
|
|
1553
|
-
}(), fn = function(t) {
|
|
1554
|
-
if (cn(t))
|
|
1555
|
-
return 1 / 0;
|
|
1556
|
-
for (var e = 0, n = t.parentNode; n; )
|
|
1557
|
-
e += 1, n = n.parentNode;
|
|
1558
1650
|
return e;
|
|
1559
|
-
},
|
|
1560
|
-
|
|
1561
|
-
|
|
1651
|
+
})(), In = function(e) {
|
|
1652
|
+
if (Sn(e))
|
|
1653
|
+
return 1 / 0;
|
|
1654
|
+
for (var t = 0, n = e.parentNode; n; )
|
|
1655
|
+
t += 1, n = n.parentNode;
|
|
1656
|
+
return t;
|
|
1657
|
+
}, ao = function() {
|
|
1658
|
+
var e = 1 / 0, t = [];
|
|
1659
|
+
ge.forEach(function(i) {
|
|
1562
1660
|
if (i.activeTargets.length !== 0) {
|
|
1563
|
-
var
|
|
1661
|
+
var l = [];
|
|
1564
1662
|
i.activeTargets.forEach(function(c) {
|
|
1565
|
-
var
|
|
1566
|
-
|
|
1567
|
-
}),
|
|
1568
|
-
i.callback.call(i.observer,
|
|
1663
|
+
var b = new io(c.target), d = In(c.target);
|
|
1664
|
+
l.push(b), c.lastReportedSize = On(c.target, c.observedBox), d < e && (e = d);
|
|
1665
|
+
}), t.push(function() {
|
|
1666
|
+
i.callback.call(i.observer, l, i.observer);
|
|
1569
1667
|
}), i.activeTargets.splice(0, i.activeTargets.length);
|
|
1570
1668
|
}
|
|
1571
1669
|
});
|
|
1572
|
-
for (var n = 0, s =
|
|
1573
|
-
var
|
|
1574
|
-
|
|
1670
|
+
for (var n = 0, s = t; n < s.length; n++) {
|
|
1671
|
+
var o = s[n];
|
|
1672
|
+
o();
|
|
1575
1673
|
}
|
|
1576
|
-
return
|
|
1577
|
-
},
|
|
1578
|
-
|
|
1579
|
-
n.activeTargets.splice(0, n.activeTargets.length), n.skippedTargets.splice(0, n.skippedTargets.length), n.observationTargets.forEach(function(
|
|
1580
|
-
|
|
1674
|
+
return e;
|
|
1675
|
+
}, Qt = function(e) {
|
|
1676
|
+
ge.forEach(function(n) {
|
|
1677
|
+
n.activeTargets.splice(0, n.activeTargets.length), n.skippedTargets.splice(0, n.skippedTargets.length), n.observationTargets.forEach(function(o) {
|
|
1678
|
+
o.isActive() && (In(o.target) > e ? n.activeTargets.push(o) : n.skippedTargets.push(o));
|
|
1581
1679
|
});
|
|
1582
1680
|
});
|
|
1583
|
-
},
|
|
1584
|
-
var
|
|
1585
|
-
for (
|
|
1586
|
-
|
|
1587
|
-
return
|
|
1588
|
-
},
|
|
1589
|
-
return
|
|
1590
|
-
return
|
|
1681
|
+
}, co = function() {
|
|
1682
|
+
var e = 0;
|
|
1683
|
+
for (Qt(e); Qs(); )
|
|
1684
|
+
e = ao(), Qt(e);
|
|
1685
|
+
return eo() && to(), e > 0;
|
|
1686
|
+
}, nt, Mn = [], lo = function() {
|
|
1687
|
+
return Mn.splice(0).forEach(function(e) {
|
|
1688
|
+
return e();
|
|
1591
1689
|
});
|
|
1592
|
-
},
|
|
1593
|
-
if (!
|
|
1594
|
-
var
|
|
1690
|
+
}, uo = function(e) {
|
|
1691
|
+
if (!nt) {
|
|
1692
|
+
var t = 0, n = document.createTextNode(""), s = { characterData: !0 };
|
|
1595
1693
|
new MutationObserver(function() {
|
|
1596
|
-
return
|
|
1597
|
-
}).observe(n, s),
|
|
1598
|
-
n.textContent = "".concat(
|
|
1694
|
+
return lo();
|
|
1695
|
+
}).observe(n, s), nt = function() {
|
|
1696
|
+
n.textContent = "".concat(t ? t-- : t++);
|
|
1599
1697
|
};
|
|
1600
1698
|
}
|
|
1601
|
-
|
|
1602
|
-
},
|
|
1603
|
-
|
|
1604
|
-
requestAnimationFrame(
|
|
1699
|
+
Mn.push(e), nt();
|
|
1700
|
+
}, fo = function(e) {
|
|
1701
|
+
uo(function() {
|
|
1702
|
+
requestAnimationFrame(e);
|
|
1605
1703
|
});
|
|
1606
|
-
},
|
|
1607
|
-
return !!
|
|
1608
|
-
},
|
|
1704
|
+
}, He = 0, ho = function() {
|
|
1705
|
+
return !!He;
|
|
1706
|
+
}, po = 250, bo = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, en = [
|
|
1609
1707
|
"resize",
|
|
1610
1708
|
"load",
|
|
1611
1709
|
"transitionend",
|
|
@@ -1620,291 +1718,283 @@ var be = function(t) {
|
|
|
1620
1718
|
"mouseout",
|
|
1621
1719
|
"blur",
|
|
1622
1720
|
"focus"
|
|
1623
|
-
],
|
|
1624
|
-
return
|
|
1625
|
-
},
|
|
1626
|
-
function
|
|
1627
|
-
var
|
|
1721
|
+
], tn = function(e) {
|
|
1722
|
+
return e === void 0 && (e = 0), Date.now() + e;
|
|
1723
|
+
}, st = !1, vo = (function() {
|
|
1724
|
+
function e() {
|
|
1725
|
+
var t = this;
|
|
1628
1726
|
this.stopped = !0, this.listener = function() {
|
|
1629
|
-
return
|
|
1727
|
+
return t.schedule();
|
|
1630
1728
|
};
|
|
1631
1729
|
}
|
|
1632
|
-
return
|
|
1730
|
+
return e.prototype.run = function(t) {
|
|
1633
1731
|
var n = this;
|
|
1634
|
-
if (
|
|
1635
|
-
|
|
1636
|
-
var s =
|
|
1637
|
-
|
|
1638
|
-
var
|
|
1732
|
+
if (t === void 0 && (t = po), !st) {
|
|
1733
|
+
st = !0;
|
|
1734
|
+
var s = tn(t);
|
|
1735
|
+
fo(function() {
|
|
1736
|
+
var o = !1;
|
|
1639
1737
|
try {
|
|
1640
|
-
|
|
1738
|
+
o = co();
|
|
1641
1739
|
} finally {
|
|
1642
|
-
if (
|
|
1740
|
+
if (st = !1, t = s - tn(), !ho())
|
|
1643
1741
|
return;
|
|
1644
|
-
|
|
1742
|
+
o ? n.run(1e3) : t > 0 ? n.run(t) : n.start();
|
|
1645
1743
|
}
|
|
1646
1744
|
});
|
|
1647
1745
|
}
|
|
1648
|
-
},
|
|
1746
|
+
}, e.prototype.schedule = function() {
|
|
1649
1747
|
this.stop(), this.run();
|
|
1650
|
-
},
|
|
1651
|
-
var
|
|
1652
|
-
return
|
|
1748
|
+
}, e.prototype.observe = function() {
|
|
1749
|
+
var t = this, n = function() {
|
|
1750
|
+
return t.observer && t.observer.observe(document.body, bo);
|
|
1653
1751
|
};
|
|
1654
|
-
document.body ? n() :
|
|
1655
|
-
},
|
|
1656
|
-
var
|
|
1657
|
-
this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(),
|
|
1658
|
-
return
|
|
1752
|
+
document.body ? n() : Ce.addEventListener("DOMContentLoaded", n);
|
|
1753
|
+
}, e.prototype.start = function() {
|
|
1754
|
+
var t = this;
|
|
1755
|
+
this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), en.forEach(function(n) {
|
|
1756
|
+
return Ce.addEventListener(n, t.listener, !0);
|
|
1659
1757
|
}));
|
|
1660
|
-
},
|
|
1661
|
-
var
|
|
1662
|
-
this.stopped || (this.observer && this.observer.disconnect(),
|
|
1663
|
-
return
|
|
1758
|
+
}, e.prototype.stop = function() {
|
|
1759
|
+
var t = this;
|
|
1760
|
+
this.stopped || (this.observer && this.observer.disconnect(), en.forEach(function(n) {
|
|
1761
|
+
return Ce.removeEventListener(n, t.listener, !0);
|
|
1664
1762
|
}), this.stopped = !0);
|
|
1665
|
-
},
|
|
1666
|
-
}(),
|
|
1667
|
-
!
|
|
1668
|
-
},
|
|
1669
|
-
return !
|
|
1670
|
-
},
|
|
1671
|
-
function t
|
|
1672
|
-
this.target =
|
|
1763
|
+
}, e;
|
|
1764
|
+
})(), bt = new vo(), nn = function(e) {
|
|
1765
|
+
!He && e > 0 && bt.start(), He += e, !He && bt.stop();
|
|
1766
|
+
}, mo = function(e) {
|
|
1767
|
+
return !Ot(e) && !so(e) && getComputedStyle(e).display === "inline";
|
|
1768
|
+
}, go = (function() {
|
|
1769
|
+
function e(t, n) {
|
|
1770
|
+
this.target = t, this.observedBox = n || Be.CONTENT_BOX, this.lastReportedSize = {
|
|
1673
1771
|
inlineSize: 0,
|
|
1674
1772
|
blockSize: 0
|
|
1675
1773
|
};
|
|
1676
1774
|
}
|
|
1677
|
-
return
|
|
1678
|
-
var
|
|
1679
|
-
return
|
|
1680
|
-
},
|
|
1681
|
-
}(),
|
|
1682
|
-
function t
|
|
1683
|
-
this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer =
|
|
1775
|
+
return e.prototype.isActive = function() {
|
|
1776
|
+
var t = On(this.target, this.observedBox, !0);
|
|
1777
|
+
return mo(this.target) && (this.lastReportedSize = t), this.lastReportedSize.inlineSize !== t.inlineSize || this.lastReportedSize.blockSize !== t.blockSize;
|
|
1778
|
+
}, e;
|
|
1779
|
+
})(), yo = /* @__PURE__ */ (function() {
|
|
1780
|
+
function e(t, n) {
|
|
1781
|
+
this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = t, this.callback = n;
|
|
1684
1782
|
}
|
|
1685
|
-
return
|
|
1686
|
-
}(),
|
|
1687
|
-
for (var n = 0; n <
|
|
1688
|
-
if (
|
|
1783
|
+
return e;
|
|
1784
|
+
})(), $e = /* @__PURE__ */ new WeakMap(), sn = function(e, t) {
|
|
1785
|
+
for (var n = 0; n < e.length; n += 1)
|
|
1786
|
+
if (e[n].target === t)
|
|
1689
1787
|
return n;
|
|
1690
1788
|
return -1;
|
|
1691
|
-
},
|
|
1692
|
-
function
|
|
1693
|
-
}
|
|
1694
|
-
return
|
|
1695
|
-
var s = new
|
|
1696
|
-
|
|
1697
|
-
},
|
|
1698
|
-
var
|
|
1699
|
-
|
|
1700
|
-
},
|
|
1701
|
-
var s =
|
|
1702
|
-
|
|
1703
|
-
},
|
|
1704
|
-
var n = this, s =
|
|
1705
|
-
s.observationTargets.slice().forEach(function(
|
|
1706
|
-
return n.unobserve(
|
|
1789
|
+
}, Ve = (function() {
|
|
1790
|
+
function e() {
|
|
1791
|
+
}
|
|
1792
|
+
return e.connect = function(t, n) {
|
|
1793
|
+
var s = new yo(t, n);
|
|
1794
|
+
$e.set(t, s);
|
|
1795
|
+
}, e.observe = function(t, n, s) {
|
|
1796
|
+
var o = $e.get(t), r = o.observationTargets.length === 0;
|
|
1797
|
+
sn(o.observationTargets, n) < 0 && (r && ge.push(o), o.observationTargets.push(new go(n, s && s.box)), nn(1), bt.schedule());
|
|
1798
|
+
}, e.unobserve = function(t, n) {
|
|
1799
|
+
var s = $e.get(t), o = sn(s.observationTargets, n), r = s.observationTargets.length === 1;
|
|
1800
|
+
o >= 0 && (r && ge.splice(ge.indexOf(s), 1), s.observationTargets.splice(o, 1), nn(-1));
|
|
1801
|
+
}, e.disconnect = function(t) {
|
|
1802
|
+
var n = this, s = $e.get(t);
|
|
1803
|
+
s.observationTargets.slice().forEach(function(o) {
|
|
1804
|
+
return n.unobserve(t, o.target);
|
|
1707
1805
|
}), s.activeTargets.splice(0, s.activeTargets.length);
|
|
1708
|
-
},
|
|
1709
|
-
}(),
|
|
1710
|
-
function t
|
|
1806
|
+
}, e;
|
|
1807
|
+
})(), on = (function() {
|
|
1808
|
+
function e(t) {
|
|
1711
1809
|
if (arguments.length === 0)
|
|
1712
1810
|
throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1713
|
-
if (typeof
|
|
1811
|
+
if (typeof t != "function")
|
|
1714
1812
|
throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");
|
|
1715
|
-
|
|
1813
|
+
Ve.connect(this, t);
|
|
1716
1814
|
}
|
|
1717
|
-
return
|
|
1815
|
+
return e.prototype.observe = function(t, n) {
|
|
1718
1816
|
if (arguments.length === 0)
|
|
1719
1817
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1720
|
-
if (!
|
|
1818
|
+
if (!Xt(t))
|
|
1721
1819
|
throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
1722
|
-
|
|
1723
|
-
},
|
|
1820
|
+
Ve.observe(this, t, n);
|
|
1821
|
+
}, e.prototype.unobserve = function(t) {
|
|
1724
1822
|
if (arguments.length === 0)
|
|
1725
1823
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
1726
|
-
if (!
|
|
1824
|
+
if (!Xt(t))
|
|
1727
1825
|
throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");
|
|
1728
|
-
|
|
1729
|
-
},
|
|
1730
|
-
|
|
1731
|
-
},
|
|
1826
|
+
Ve.unobserve(this, t);
|
|
1827
|
+
}, e.prototype.disconnect = function() {
|
|
1828
|
+
Ve.disconnect(this);
|
|
1829
|
+
}, e.toString = function() {
|
|
1732
1830
|
return "function ResizeObserver () { [polyfill code] }";
|
|
1733
|
-
},
|
|
1734
|
-
}();
|
|
1735
|
-
const
|
|
1831
|
+
}, e;
|
|
1832
|
+
})();
|
|
1833
|
+
const To = ["disabled", "title"], wo = {
|
|
1736
1834
|
key: 1,
|
|
1737
1835
|
class: "stack-tab__button"
|
|
1738
|
-
},
|
|
1836
|
+
}, vt = /* @__PURE__ */ q({
|
|
1739
1837
|
__name: "TabHeaderButton",
|
|
1740
1838
|
props: {
|
|
1741
1839
|
disabled: { type: Boolean, default: !1 },
|
|
1742
1840
|
shadow: { default: null },
|
|
1743
1841
|
iconClass: { default: "" },
|
|
1744
|
-
title: {}
|
|
1842
|
+
title: { default: "" }
|
|
1745
1843
|
},
|
|
1746
|
-
setup(
|
|
1747
|
-
return (
|
|
1748
|
-
class:
|
|
1844
|
+
setup(e) {
|
|
1845
|
+
return (t, n) => (B(), V("div", {
|
|
1846
|
+
class: de(["stack-tab__header-button", {
|
|
1749
1847
|
"stack-tab__shadow-right": e.shadow === "right",
|
|
1750
1848
|
"stack-tab__shadow-left": e.shadow === "left"
|
|
1751
1849
|
}]),
|
|
1752
1850
|
disabled: e.disabled ? "disabled" : null,
|
|
1753
1851
|
title: e.title
|
|
1754
1852
|
}, [
|
|
1755
|
-
"icon" in
|
|
1853
|
+
"icon" in t.$slots ? ie("", !0) : (B(), V("div", {
|
|
1756
1854
|
key: 0,
|
|
1757
|
-
class:
|
|
1855
|
+
class: de(["stack-tab__mask-button", e.iconClass])
|
|
1758
1856
|
}, null, 2)),
|
|
1759
|
-
"icon" in
|
|
1760
|
-
_e(
|
|
1761
|
-
])) :
|
|
1762
|
-
], 10,
|
|
1857
|
+
"icon" in t.$slots ? (B(), V("div", wo, [
|
|
1858
|
+
_e(t.$slots, "icon")
|
|
1859
|
+
])) : ie("", !0)
|
|
1860
|
+
], 10, To));
|
|
1763
1861
|
}
|
|
1764
|
-
}),
|
|
1862
|
+
}), xo = /* @__PURE__ */ q({
|
|
1765
1863
|
__name: "TabHeaderScroll",
|
|
1766
1864
|
props: {
|
|
1767
1865
|
space: { default: 300 },
|
|
1768
1866
|
isScrollWheel: { type: Boolean, default: !0 },
|
|
1769
1867
|
isScrollButton: { type: Boolean, default: !0 }
|
|
1770
1868
|
},
|
|
1771
|
-
setup(
|
|
1772
|
-
const n = D(null), s = D(null),
|
|
1869
|
+
setup(e, { expose: t }) {
|
|
1870
|
+
const n = D(null), s = D(null), o = D(null), r = D(!1), i = D(!1), l = D(!1), a = D(!0), c = D(), b = e, d = ne({
|
|
1773
1871
|
clientWidth: 0,
|
|
1774
1872
|
scrollWidth: 0,
|
|
1775
1873
|
scrollLeft: 0
|
|
1776
|
-
}),
|
|
1874
|
+
}), p = ne({
|
|
1777
1875
|
thumbLeft: 0,
|
|
1778
1876
|
startScrollLeft: 0,
|
|
1779
1877
|
startThumbLeft: 0,
|
|
1780
1878
|
startPageX: 0
|
|
1781
1879
|
});
|
|
1782
|
-
|
|
1783
|
-
|
|
1880
|
+
rt(d, (f) => {
|
|
1881
|
+
O(f);
|
|
1784
1882
|
});
|
|
1785
|
-
const
|
|
1786
|
-
i.value =
|
|
1787
|
-
},
|
|
1788
|
-
if (!
|
|
1789
|
-
const { clientWidth:
|
|
1790
|
-
return
|
|
1791
|
-
}),
|
|
1792
|
-
if (!
|
|
1793
|
-
const { clientWidth:
|
|
1794
|
-
return (
|
|
1795
|
-
}),
|
|
1796
|
-
if (n.value
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
}, _ = (A) => {
|
|
1828
|
-
const { clientWidth: C, scrollWidth: q } = u;
|
|
1829
|
-
let ee = l.startThumbLeft + A.pageX - l.startPageX;
|
|
1830
|
-
const Xe = C - B.value;
|
|
1831
|
-
ee < 0 ? ee = 0 : ee > Xe && (ee = Xe), l.thumbLeft = ee, m(ee * (q - C) / (C - B.value), !1), A.preventDefault();
|
|
1832
|
-
}, $ = (A) => {
|
|
1833
|
-
o.value = !1, document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", $), A.preventDefault();
|
|
1883
|
+
const O = (f) => {
|
|
1884
|
+
i.value = f.scrollLeft <= 10, l.value = f.clientWidth + f.scrollLeft - f.scrollWidth >= -10, a.value = f.scrollWidth !== f.clientWidth;
|
|
1885
|
+
}, A = oe(() => d.scrollWidth > d.clientWidth), I = oe(() => {
|
|
1886
|
+
if (!A.value) return 0;
|
|
1887
|
+
const { clientWidth: f, scrollWidth: x } = d;
|
|
1888
|
+
return f / x * f;
|
|
1889
|
+
}), S = oe(() => {
|
|
1890
|
+
if (!A.value) return 0;
|
|
1891
|
+
const { clientWidth: f, scrollWidth: x, scrollLeft: E } = d;
|
|
1892
|
+
return (f - I.value) * (E / (x - f));
|
|
1893
|
+
}), m = () => {
|
|
1894
|
+
if (!n.value) return;
|
|
1895
|
+
const { clientWidth: f, scrollWidth: x, scrollLeft: E } = n.value;
|
|
1896
|
+
Object.assign(d, { clientWidth: f, scrollWidth: x, scrollLeft: E });
|
|
1897
|
+
}, _ = () => {
|
|
1898
|
+
const f = n.value?.querySelector(".stack-tab__item.is-active");
|
|
1899
|
+
f && !g(f) && y(f);
|
|
1900
|
+
}, k = new on(() => {
|
|
1901
|
+
m(), _();
|
|
1902
|
+
}), h = new on(() => {
|
|
1903
|
+
A.value || _(), m();
|
|
1904
|
+
}), w = (f, x = !0) => {
|
|
1905
|
+
hn({ wrap: n.value, left: f, top: 0, smooth: x });
|
|
1906
|
+
}, u = (f) => {
|
|
1907
|
+
w(n.value.scrollLeft + f);
|
|
1908
|
+
}, T = (f) => {
|
|
1909
|
+
const x = f.deltaY < 0;
|
|
1910
|
+
w(n.value.scrollLeft + (x ? -b.space : b.space));
|
|
1911
|
+
}, v = (f) => {
|
|
1912
|
+
Object.assign(p, {
|
|
1913
|
+
startPageX: f.pageX,
|
|
1914
|
+
startScrollLeft: n.value?.scrollLeft,
|
|
1915
|
+
startThumbLeft: S.value,
|
|
1916
|
+
thumbLeft: S.value
|
|
1917
|
+
}), r.value = !0, document.addEventListener("mousemove", P), document.addEventListener("mouseup", F);
|
|
1918
|
+
}, P = (f) => {
|
|
1919
|
+
const { clientWidth: x, scrollWidth: E } = d;
|
|
1920
|
+
let R = p.startThumbLeft + f.pageX - p.startPageX;
|
|
1921
|
+
const z = x - I.value;
|
|
1922
|
+
R < 0 ? R = 0 : R > z && (R = z), p.thumbLeft = R, w(R * (E - x) / (x - I.value), !1), f.preventDefault();
|
|
1923
|
+
}, F = () => {
|
|
1924
|
+
r.value = !1, document.removeEventListener("mousemove", P), document.removeEventListener("mouseup", F);
|
|
1834
1925
|
};
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
y.disconnect(), S.disconnect();
|
|
1926
|
+
gt(() => {
|
|
1927
|
+
k.observe(c.value);
|
|
1928
|
+
const f = n.value?.querySelector(".stack-tab__nav");
|
|
1929
|
+
h.observe(f);
|
|
1930
|
+
}), Ee(() => {
|
|
1931
|
+
k.disconnect(), h.disconnect();
|
|
1842
1932
|
});
|
|
1843
|
-
const
|
|
1844
|
-
|
|
1845
|
-
},
|
|
1846
|
-
if (!
|
|
1933
|
+
const y = (f) => {
|
|
1934
|
+
os({ el: f, wrap: n.value, block: "end", inline: "center" });
|
|
1935
|
+
}, g = (f) => {
|
|
1936
|
+
if (!A.value)
|
|
1847
1937
|
return !0;
|
|
1848
|
-
const
|
|
1849
|
-
return !(
|
|
1938
|
+
const x = f.offsetLeft, E = n.value.scrollLeft;
|
|
1939
|
+
return !(x < E || x + f.clientWidth > E + n.value.clientWidth);
|
|
1850
1940
|
};
|
|
1851
|
-
return
|
|
1852
|
-
a.value ? (
|
|
1941
|
+
return t({ scrollIntoView: y, isInView: g }), (f, x) => (B(), V(Ke, null, [
|
|
1942
|
+
a.value ? (B(), se(vt, {
|
|
1853
1943
|
key: 0,
|
|
1854
1944
|
"icon-class": "stack-tab__icon-left-arrow",
|
|
1855
1945
|
disabled: i.value,
|
|
1856
|
-
onClick:
|
|
1857
|
-
}, null, 8, ["disabled"])) :
|
|
1858
|
-
|
|
1946
|
+
onClick: x[0] || (x[0] = (E) => !i.value && u(-1 * e.space))
|
|
1947
|
+
}, null, 8, ["disabled"])) : ie("", !0),
|
|
1948
|
+
W("div", {
|
|
1859
1949
|
ref_key: "headerScroll",
|
|
1860
1950
|
ref: c,
|
|
1861
1951
|
class: "stack-tab__scroll",
|
|
1862
|
-
onWheelPassive:
|
|
1952
|
+
onWheelPassive: T
|
|
1863
1953
|
}, [
|
|
1864
|
-
|
|
1954
|
+
W("div", {
|
|
1865
1955
|
ref_key: "container",
|
|
1866
1956
|
ref: n,
|
|
1867
|
-
class:
|
|
1868
|
-
"stack-tab__shadow-inset-left": !i.value &&
|
|
1869
|
-
"stack-tab__shadow-inset-right": !
|
|
1870
|
-
"stack-tab__shadow-inset-all": !i.value && !
|
|
1957
|
+
class: de(["stack-tab__scroll-container", {
|
|
1958
|
+
"stack-tab__shadow-inset-left": !i.value && l.value,
|
|
1959
|
+
"stack-tab__shadow-inset-right": !l.value && i.value,
|
|
1960
|
+
"stack-tab__shadow-inset-all": !i.value && !l.value
|
|
1871
1961
|
}]),
|
|
1872
|
-
onScrollPassive:
|
|
1962
|
+
onScrollPassive: m
|
|
1873
1963
|
}, [
|
|
1874
|
-
_e(
|
|
1964
|
+
_e(f.$slots, "default")
|
|
1875
1965
|
], 34),
|
|
1876
|
-
|
|
1966
|
+
it(W("div", {
|
|
1877
1967
|
ref_key: "bar",
|
|
1878
1968
|
ref: s,
|
|
1879
|
-
class:
|
|
1969
|
+
class: de(["stack-tab__scrollbar", { "is-dragging": r.value }])
|
|
1880
1970
|
}, [
|
|
1881
|
-
|
|
1971
|
+
W("div", {
|
|
1882
1972
|
ref_key: "thumb",
|
|
1883
|
-
ref:
|
|
1884
|
-
class:
|
|
1885
|
-
style:
|
|
1886
|
-
width: `${
|
|
1887
|
-
transform: `translateX(${
|
|
1973
|
+
ref: o,
|
|
1974
|
+
class: de(["stack-tab__scrollbar-thumb", { "is-dragging": r.value }]),
|
|
1975
|
+
style: Ze({
|
|
1976
|
+
width: `${I.value}px`,
|
|
1977
|
+
transform: `translateX(${S.value}px)`
|
|
1888
1978
|
}),
|
|
1889
|
-
onMousedown:
|
|
1979
|
+
onMousedown: Le(v, ["prevent"])
|
|
1890
1980
|
}, null, 38)
|
|
1891
1981
|
], 2), [
|
|
1892
|
-
[
|
|
1982
|
+
[at, A.value]
|
|
1893
1983
|
])
|
|
1894
1984
|
], 544),
|
|
1895
|
-
a.value ? (
|
|
1985
|
+
a.value ? (B(), se(vt, {
|
|
1896
1986
|
key: 1,
|
|
1897
1987
|
"icon-class": "stack-tab__icon-right-arrow",
|
|
1898
|
-
disabled:
|
|
1899
|
-
onClick:
|
|
1900
|
-
}, null, 8, ["disabled"])) :
|
|
1988
|
+
disabled: l.value,
|
|
1989
|
+
onClick: x[1] || (x[1] = (E) => !l.value && u(e.space))
|
|
1990
|
+
}, null, 8, ["disabled"])) : ie("", !0)
|
|
1901
1991
|
], 64));
|
|
1902
1992
|
}
|
|
1903
|
-
}),
|
|
1993
|
+
}), _o = { class: "stack-tab__header" }, ko = /* @__PURE__ */ q({
|
|
1904
1994
|
__name: "index",
|
|
1905
1995
|
props: {
|
|
1906
1996
|
space: {},
|
|
1907
|
-
tabScrollMode: { default:
|
|
1997
|
+
tabScrollMode: { default: be.BOTH },
|
|
1908
1998
|
tabTransition: { default: () => ({
|
|
1909
1999
|
name: "stack-tab-zoom"
|
|
1910
2000
|
}) },
|
|
@@ -1912,43 +2002,45 @@ const qs = ["disabled", "title"], Fs = {
|
|
|
1912
2002
|
max: { default: 20 }
|
|
1913
2003
|
},
|
|
1914
2004
|
emits: ["active"],
|
|
1915
|
-
setup(
|
|
1916
|
-
const { t: n } =
|
|
1917
|
-
|
|
1918
|
-
}
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
2005
|
+
setup(e, { emit: t }) {
|
|
2006
|
+
const { t: n } = ze(), s = mt("maximum"), o = t, r = D(), { shown: i, contextMenuData: l, showContextMenu: a } = Zs(), c = () => {
|
|
2007
|
+
i.value = !1;
|
|
2008
|
+
}, b = e, { closeTab: d, activeTab: p, tabs: O } = At(), A = oe(
|
|
2009
|
+
() => typeof b.tabTransition == "string" ? { name: b.tabTransition } : b.tabTransition
|
|
2010
|
+
), I = oe(() => b.tabScrollMode === be.BOTH || b.tabScrollMode === be.BUTTON), S = b.tabScrollMode === be.BOTH || b.tabScrollMode === be.WHEEL, m = (k) => {
|
|
2011
|
+
k.closable && d(k.id), i.value = !1;
|
|
2012
|
+
}, _ = (k, h, w) => {
|
|
2013
|
+
r.value && h && ot(() => {
|
|
2014
|
+
r.value.isInView(h) || r.value.scrollIntoView(h);
|
|
2015
|
+
}), p(k.id, w), o("active", k.id);
|
|
1924
2016
|
};
|
|
1925
|
-
return (
|
|
1926
|
-
_e(
|
|
1927
|
-
|
|
1928
|
-
ref_key: "
|
|
1929
|
-
ref:
|
|
1930
|
-
space:
|
|
1931
|
-
"is-scroll-wheel":
|
|
1932
|
-
"is-scroll-button":
|
|
2017
|
+
return (k, h) => (B(), V("div", _o, [
|
|
2018
|
+
_e(k.$slots, "leftButton"),
|
|
2019
|
+
$(xo, {
|
|
2020
|
+
ref_key: "scrollContainerRef",
|
|
2021
|
+
ref: r,
|
|
2022
|
+
space: e.space,
|
|
2023
|
+
"is-scroll-wheel": C(S),
|
|
2024
|
+
"is-scroll-button": I.value
|
|
1933
2025
|
}, {
|
|
1934
|
-
default:
|
|
1935
|
-
|
|
1936
|
-
key: "
|
|
2026
|
+
default: te(() => [
|
|
2027
|
+
$(ln, Dn({
|
|
2028
|
+
key: "tab-list-transition",
|
|
1937
2029
|
tag: "ul",
|
|
1938
2030
|
class: "stack-tab__nav"
|
|
1939
|
-
},
|
|
1940
|
-
default:
|
|
1941
|
-
(
|
|
1942
|
-
key:
|
|
1943
|
-
contextmenu:
|
|
1944
|
-
item:
|
|
1945
|
-
onContextmenu:
|
|
1946
|
-
(
|
|
2031
|
+
}, A.value, { appear: "" }), {
|
|
2032
|
+
default: te(() => [
|
|
2033
|
+
(B(!0), V(Ke, null, Tt(C(O), (w, u) => (B(), se(Js, {
|
|
2034
|
+
key: w.id,
|
|
2035
|
+
contextmenu: e.contextmenu,
|
|
2036
|
+
item: w,
|
|
2037
|
+
onContextmenu: Le(
|
|
2038
|
+
(T) => C(a)(T, w, u, C(O).length),
|
|
1947
2039
|
["prevent"]
|
|
1948
2040
|
),
|
|
1949
|
-
onMouseup:
|
|
1950
|
-
onClose:
|
|
1951
|
-
onActive:
|
|
2041
|
+
onMouseup: Le((T) => m(w), ["middle", "prevent"]),
|
|
2042
|
+
onClose: m,
|
|
2043
|
+
onActive: _
|
|
1952
2044
|
}, null, 8, ["contextmenu", "item", "onContextmenu", "onMouseup"]))), 128))
|
|
1953
2045
|
]),
|
|
1954
2046
|
_: 1
|
|
@@ -1956,207 +2048,224 @@ const qs = ["disabled", "title"], Fs = {
|
|
|
1956
2048
|
]),
|
|
1957
2049
|
_: 1
|
|
1958
2050
|
}, 8, ["space", "is-scroll-wheel", "is-scroll-button"]),
|
|
1959
|
-
_e(
|
|
1960
|
-
|
|
1961
|
-
"icon-class":
|
|
1962
|
-
title:
|
|
1963
|
-
onClick:
|
|
2051
|
+
_e(k.$slots, "rightButton"),
|
|
2052
|
+
$(vt, {
|
|
2053
|
+
"icon-class": C(s) ? "stack-tab__icon-restore" : "stack-tab__icon-fullscreen",
|
|
2054
|
+
title: C(n)("VueStackTab.maximum"),
|
|
2055
|
+
onClick: h[0] || (h[0] = (w) => s.value = !C(s))
|
|
1964
2056
|
}, null, 8, ["icon-class", "title"]),
|
|
1965
|
-
|
|
2057
|
+
$(ct, {
|
|
1966
2058
|
name: "stack-tab-zoom",
|
|
1967
2059
|
appear: ""
|
|
1968
2060
|
}, {
|
|
1969
|
-
default:
|
|
1970
|
-
|
|
1971
|
-
key: "
|
|
1972
|
-
left:
|
|
1973
|
-
top:
|
|
1974
|
-
"tab-item":
|
|
1975
|
-
max:
|
|
1976
|
-
index:
|
|
1977
|
-
|
|
2061
|
+
default: te(() => [
|
|
2062
|
+
C(i) ? (B(), se(js, {
|
|
2063
|
+
key: "context-menu-transition",
|
|
2064
|
+
left: C(l).left,
|
|
2065
|
+
top: C(l).top,
|
|
2066
|
+
"tab-item": C(l).item,
|
|
2067
|
+
max: C(l).max,
|
|
2068
|
+
index: C(l).index,
|
|
2069
|
+
onClose: c
|
|
2070
|
+
}, null, 8, ["left", "top", "tab-item", "max", "index"])) : ie("", !0)
|
|
1978
2071
|
]),
|
|
1979
2072
|
_: 1
|
|
1980
2073
|
})
|
|
1981
2074
|
]));
|
|
1982
2075
|
}
|
|
1983
|
-
})
|
|
1984
|
-
function Xs(t, e, n) {
|
|
1985
|
-
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;
|
|
1986
|
-
function w() {
|
|
1987
|
-
p && clearTimeout(p);
|
|
1988
|
-
}
|
|
1989
|
-
function x(E) {
|
|
1990
|
-
var g = E || {}, y = g.upcomingOnly, S = y === void 0 ? !1 : y;
|
|
1991
|
-
w(), u = !S;
|
|
1992
|
-
}
|
|
1993
|
-
function B() {
|
|
1994
|
-
for (var E = arguments.length, g = new Array(E), y = 0; y < E; y++)
|
|
1995
|
-
g[y] = arguments[y];
|
|
1996
|
-
var S = this, m = Date.now() - l;
|
|
1997
|
-
if (u)
|
|
1998
|
-
return;
|
|
1999
|
-
function O() {
|
|
2000
|
-
l = Date.now(), e.apply(S, g);
|
|
2001
|
-
}
|
|
2002
|
-
function d() {
|
|
2003
|
-
p = void 0;
|
|
2004
|
-
}
|
|
2005
|
-
!f && c && !p && O(), w(), c === void 0 && m > t ? f ? (l = Date.now(), o || (p = setTimeout(c ? d : O, t))) : O() : o !== !0 && (p = setTimeout(c ? d : O, c === void 0 ? t - m : t));
|
|
2006
|
-
}
|
|
2007
|
-
return B.cancel = x, B;
|
|
2008
|
-
}
|
|
2009
|
-
let qt;
|
|
2010
|
-
const Gs = () => {
|
|
2011
|
-
const t = lt(), { active: e, hasTab: n, pageShown: s, reset: r, canAddTab: o, renewTab: i, getTab: f } = Ce(), a = me(), c = Xs(500, (w, x = !1) => new Promise((B, E) => {
|
|
2012
|
-
if (!s.value) {
|
|
2013
|
-
E();
|
|
2014
|
-
return;
|
|
2015
|
-
}
|
|
2016
|
-
const g = se(w, {
|
|
2017
|
-
refreshable: !0,
|
|
2018
|
-
closable: !0,
|
|
2019
|
-
iframe: !1
|
|
2020
|
-
});
|
|
2021
|
-
if (g.id && x && n(g.id)) {
|
|
2022
|
-
i(w);
|
|
2023
|
-
const y = f(w.id);
|
|
2024
|
-
y != null && y.active && (s.value = !1, ye(() => {
|
|
2025
|
-
s.value = !0;
|
|
2026
|
-
}));
|
|
2027
|
-
}
|
|
2028
|
-
if (n(g.id) && !x) {
|
|
2029
|
-
a.emit(X.TAB_ACTIVE, { id: g.id }), B(g.id);
|
|
2030
|
-
return;
|
|
2031
|
-
}
|
|
2032
|
-
if (g.id || (g.id = et()), !o()) {
|
|
2033
|
-
E("Max Size");
|
|
2034
|
-
return;
|
|
2035
|
-
}
|
|
2036
|
-
p(w, g), B(g.id);
|
|
2037
|
-
})), p = (w, x) => {
|
|
2038
|
-
const B = st(x);
|
|
2039
|
-
let E = se(
|
|
2040
|
-
{
|
|
2041
|
-
__tab: B
|
|
2042
|
-
},
|
|
2043
|
-
w.query
|
|
2044
|
-
), g;
|
|
2045
|
-
if (w.iframe) {
|
|
2046
|
-
const y = encodeURIComponent(w.path);
|
|
2047
|
-
g = qt, E.__src = y;
|
|
2048
|
-
} else {
|
|
2049
|
-
const y = vt(w.path);
|
|
2050
|
-
g = y.path, E = se(y.query, E);
|
|
2051
|
-
}
|
|
2052
|
-
t.push({
|
|
2053
|
-
path: g,
|
|
2054
|
-
query: E
|
|
2055
|
-
});
|
|
2056
|
-
};
|
|
2057
|
-
return { openNewTab: c, setIFramePath: (w) => {
|
|
2058
|
-
qt = w;
|
|
2059
|
-
}, active: e, reset: r, getWrapper: () => document.getElementsByClassName("cache-page-wrapper")[0] };
|
|
2060
|
-
}, Ys = { class: "stack-tab__container" }, Ks = ["src"], Js = /* @__PURE__ */ Q({
|
|
2076
|
+
}), Eo = { class: "stack-tab__container" }, So = { class: "stack-tab__iframe-wrapper" }, Ao = { class: "stack-tab__iframe-loading" }, Oo = { class: "stack-tab__iframe-loading-text" }, Io = ["src", "onLoad"], Mo = 5e3, Ro = /* @__PURE__ */ q({
|
|
2061
2077
|
__name: "StackTabs",
|
|
2062
2078
|
props: {
|
|
2063
2079
|
defaultTabs: { default: () => [] },
|
|
2064
2080
|
max: { default: 20 },
|
|
2065
|
-
append: { default: "last" },
|
|
2066
2081
|
contextmenu: { type: [Boolean, Object], default: !0 },
|
|
2067
2082
|
pageTransition: { default: "stack-tab-swap" },
|
|
2068
2083
|
pageTransitionBack: { default: "stack-tab-swap-back" },
|
|
2069
2084
|
tabTransition: { default: "stack-tab-zoom" },
|
|
2070
|
-
tabScrollMode: { default:
|
|
2085
|
+
tabScrollMode: { default: be.BOTH },
|
|
2071
2086
|
width: { default: "100%" },
|
|
2072
2087
|
height: { default: "100%" },
|
|
2073
2088
|
i18n: { default: "zh-CN" },
|
|
2074
2089
|
space: { default: 300 },
|
|
2075
2090
|
globalScroll: { type: Boolean, default: !1 },
|
|
2076
2091
|
iframePath: {},
|
|
2077
|
-
sessionPrefix: { default: "" }
|
|
2092
|
+
sessionPrefix: { default: "" },
|
|
2093
|
+
iframeAllowedOrigins: { default: () => [] }
|
|
2078
2094
|
},
|
|
2079
2095
|
emits: ["onActive", "onPageLoaded"],
|
|
2080
|
-
setup(
|
|
2081
|
-
const {
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2096
|
+
setup(e, { emit: t }) {
|
|
2097
|
+
const {
|
|
2098
|
+
tabs: n,
|
|
2099
|
+
caches: s,
|
|
2100
|
+
refreshKey: o,
|
|
2101
|
+
excludedCacheIdsForRefresh: r,
|
|
2102
|
+
iframeRefreshKeys: i,
|
|
2103
|
+
destroy: l,
|
|
2104
|
+
addPage: a,
|
|
2105
|
+
initialize: c,
|
|
2106
|
+
setMaxSize: b,
|
|
2107
|
+
setGlobalScroll: d,
|
|
2108
|
+
setSessionPrefix: p
|
|
2109
|
+
} = Xe(), O = t, A = e, { changeLocale: I, t: S } = ze(), m = D(!1);
|
|
2110
|
+
Nn("maximum", m);
|
|
2111
|
+
const { setIFramePath: _, openTab: k } = At();
|
|
2112
|
+
_(A.iframePath), d(A.globalScroll), I(A.i18n);
|
|
2113
|
+
const h = (M, L) => a(M, L), w = (M) => {
|
|
2114
|
+
O("onActive", M);
|
|
2089
2115
|
};
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
},
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2116
|
+
b(A.max);
|
|
2117
|
+
const u = () => {
|
|
2118
|
+
O("onPageLoaded");
|
|
2119
|
+
}, T = D(A.pageTransition), v = Te(), P = () => {
|
|
2120
|
+
T.value = A.pageTransition;
|
|
2121
|
+
}, F = () => {
|
|
2122
|
+
T.value = A.pageTransitionBack;
|
|
2123
|
+
};
|
|
2124
|
+
v.on("FORWARD", P), v.on("BACKWARD", F);
|
|
2125
|
+
const y = oe(() => n.value.filter((M) => M.iframe)), g = ne({}), f = oe(
|
|
2126
|
+
() => y.value.filter((M) => M.active && (M.url ?? "") && !Bt(M.url ?? ""))
|
|
2127
|
+
);
|
|
2128
|
+
rt(
|
|
2129
|
+
f,
|
|
2130
|
+
(M) => {
|
|
2131
|
+
for (const L of M) g[L.id] = !0;
|
|
2132
|
+
},
|
|
2133
|
+
{ immediate: !0, deep: !0 }
|
|
2134
|
+
);
|
|
2135
|
+
const x = (M) => {
|
|
2136
|
+
const L = M.url ?? "";
|
|
2137
|
+
return Bt(L) ? "about:blank" : g[M.id] ? L : "about:blank";
|
|
2138
|
+
}, E = (M) => M.iframeRefreshMode === "reload" ? `${M.id}-${i.value[M.id] ?? 0}` : M.id, R = ne({}), z = ne({}), G = /* @__PURE__ */ new Map(), De = (M) => {
|
|
2139
|
+
const L = G.get(M);
|
|
2140
|
+
L && (clearTimeout(L), G.delete(M)), R[M] = !0, z[M] = !1;
|
|
2141
|
+
}, Ye = (M) => {
|
|
2142
|
+
if (R[M]) return;
|
|
2143
|
+
z[M] = !0;
|
|
2144
|
+
const L = G.get(M);
|
|
2145
|
+
L && clearTimeout(L), G.set(
|
|
2146
|
+
M,
|
|
2147
|
+
setTimeout(() => {
|
|
2148
|
+
G.delete(M), z[M] = !1;
|
|
2149
|
+
}, Mo)
|
|
2150
|
+
);
|
|
2151
|
+
};
|
|
2152
|
+
rt(
|
|
2153
|
+
f,
|
|
2154
|
+
(M) => {
|
|
2155
|
+
for (const L of M) Ye(L.id);
|
|
2156
|
+
},
|
|
2157
|
+
{ immediate: !0, deep: !0 }
|
|
2158
|
+
);
|
|
2159
|
+
const we = ne({}), Je = (M, L) => {
|
|
2160
|
+
L ? we[M] = L : delete we[M];
|
|
2161
|
+
}, Mt = (M) => {
|
|
2162
|
+
const j = we[M];
|
|
2163
|
+
if (j?.contentWindow)
|
|
2164
|
+
try {
|
|
2165
|
+
j.contentWindow.postMessage({ type: "vue-stack-tabs:refresh" }, "*");
|
|
2166
|
+
} catch {
|
|
2167
|
+
}
|
|
2168
|
+
}, Cn = oe(() => {
|
|
2169
|
+
const M = typeof window < "u" ? window.location.origin : "", L = A.iframeAllowedOrigins ?? [];
|
|
2170
|
+
return [M, ...L].filter(Boolean);
|
|
2171
|
+
}), Rt = (M) => {
|
|
2172
|
+
if (!Cn.value.includes(M.origin)) return;
|
|
2173
|
+
const L = M.data;
|
|
2174
|
+
if (!L || typeof L != "object" || L.type !== "vue-stack-tabs:openTab") return;
|
|
2175
|
+
const j = L.payload;
|
|
2176
|
+
j && typeof j == "object" && j.title && j.path && k(j);
|
|
2177
|
+
};
|
|
2178
|
+
return v.on(
|
|
2179
|
+
"REFRESH_IFRAME_POSTMESSAGE",
|
|
2180
|
+
Mt
|
|
2181
|
+
), Pn(() => {
|
|
2182
|
+
p(A.sessionPrefix), c(A.defaultTabs), window.addEventListener("message", Rt);
|
|
2183
|
+
}), $n(() => {
|
|
2184
|
+
window.removeEventListener("message", Rt), v.off(
|
|
2185
|
+
"REFRESH_IFRAME_POSTMESSAGE",
|
|
2186
|
+
Mt
|
|
2187
|
+
), v.off("FORWARD", P), v.off("BACKWARD", F), l();
|
|
2188
|
+
}), (M, L) => {
|
|
2189
|
+
const j = cn("router-view");
|
|
2190
|
+
return B(), V("div", {
|
|
2191
|
+
class: de(["stack-tab", { "stack-tab__maximum": m.value }]),
|
|
2192
|
+
style: Ze({
|
|
2193
|
+
width: e.width,
|
|
2194
|
+
height: e.height,
|
|
2195
|
+
"z-index": m.value ? C(xt)("body *:not(.stack-tab,.stack-tab *)") : void 0
|
|
2110
2196
|
})
|
|
2111
2197
|
}, [
|
|
2112
|
-
|
|
2113
|
-
space:
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2198
|
+
$(ko, {
|
|
2199
|
+
space: e.space,
|
|
2200
|
+
"tab-transition": e.tabTransition,
|
|
2201
|
+
max: e.max,
|
|
2202
|
+
onActive: w
|
|
2117
2203
|
}, {
|
|
2118
|
-
leftButton:
|
|
2119
|
-
_e(
|
|
2204
|
+
leftButton: te(() => [
|
|
2205
|
+
_e(M.$slots, "leftButton")
|
|
2120
2206
|
]),
|
|
2121
|
-
rightButton:
|
|
2122
|
-
_e(
|
|
2207
|
+
rightButton: te(() => [
|
|
2208
|
+
_e(M.$slots, "rightButton")
|
|
2123
2209
|
]),
|
|
2124
2210
|
_: 3
|
|
2125
2211
|
}, 8, ["space", "tab-transition", "max"]),
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
default:
|
|
2129
|
-
|
|
2130
|
-
name:
|
|
2212
|
+
W("div", Eo, [
|
|
2213
|
+
$(j, null, {
|
|
2214
|
+
default: te(({ Component: ae, route: Se }) => [
|
|
2215
|
+
$(ct, {
|
|
2216
|
+
name: T.value,
|
|
2131
2217
|
appear: "",
|
|
2132
2218
|
mode: "out-in"
|
|
2133
2219
|
}, {
|
|
2134
|
-
default:
|
|
2135
|
-
(
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2220
|
+
default: te(() => [
|
|
2221
|
+
(B(), se(Vn, {
|
|
2222
|
+
include: C(s),
|
|
2223
|
+
exclude: C(r)
|
|
2224
|
+
}, [
|
|
2225
|
+
(B(), se(Wn(h(Se, ae)), {
|
|
2226
|
+
key: `${Se.fullPath}_${C(o)}`,
|
|
2227
|
+
onOnLoaded: u
|
|
2228
|
+
}, null, 32))
|
|
2229
|
+
], 1032, ["include", "exclude"]))
|
|
2141
2230
|
]),
|
|
2142
2231
|
_: 2
|
|
2143
2232
|
}, 1032, ["name"])
|
|
2144
2233
|
]),
|
|
2145
2234
|
_: 1
|
|
2146
2235
|
}),
|
|
2147
|
-
|
|
2148
|
-
name:
|
|
2236
|
+
$(ln, {
|
|
2237
|
+
name: e.pageTransition,
|
|
2238
|
+
tag: "div",
|
|
2239
|
+
class: "stack-tab__iframes",
|
|
2149
2240
|
appear: ""
|
|
2150
2241
|
}, {
|
|
2151
|
-
default:
|
|
2152
|
-
(
|
|
2153
|
-
key:
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2242
|
+
default: te(() => [
|
|
2243
|
+
(B(!0), V(Ke, null, Tt(y.value, (ae) => (B(), se(ct, {
|
|
2244
|
+
key: E(ae),
|
|
2245
|
+
name: e.pageTransition,
|
|
2246
|
+
appear: ""
|
|
2247
|
+
}, {
|
|
2248
|
+
default: te(() => [
|
|
2249
|
+
it(W("div", So, [
|
|
2250
|
+
it(W("div", Ao, [
|
|
2251
|
+
W("span", Oo, yt(C(S)("VueStackTab.loading")), 1)
|
|
2252
|
+
], 512), [
|
|
2253
|
+
[at, z[ae.id] !== !1]
|
|
2254
|
+
]),
|
|
2255
|
+
W("iframe", {
|
|
2256
|
+
ref_for: !0,
|
|
2257
|
+
ref: (Se) => Je(ae.id, Se),
|
|
2258
|
+
class: "stack-tab__iframe",
|
|
2259
|
+
src: x(ae),
|
|
2260
|
+
frameborder: "0",
|
|
2261
|
+
onLoad: (Se) => De(ae.id)
|
|
2262
|
+
}, null, 40, Io)
|
|
2263
|
+
], 512), [
|
|
2264
|
+
[at, ae.active]
|
|
2265
|
+
])
|
|
2266
|
+
]),
|
|
2267
|
+
_: 2
|
|
2268
|
+
}, 1032, ["name"]))), 128))
|
|
2160
2269
|
]),
|
|
2161
2270
|
_: 1
|
|
2162
2271
|
}, 8, ["name"])
|
|
@@ -2164,132 +2273,139 @@ const Gs = () => {
|
|
|
2164
2273
|
], 6);
|
|
2165
2274
|
};
|
|
2166
2275
|
}
|
|
2167
|
-
}),
|
|
2276
|
+
}), It = typeof Buffer == "function";
|
|
2168
2277
|
typeof TextDecoder == "function" && new TextDecoder();
|
|
2169
|
-
const
|
|
2170
|
-
((
|
|
2171
|
-
let
|
|
2172
|
-
return
|
|
2173
|
-
})(
|
|
2174
|
-
const
|
|
2278
|
+
const rn = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Co = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Me = Array.prototype.slice.call(Co);
|
|
2279
|
+
((e) => {
|
|
2280
|
+
let t = {};
|
|
2281
|
+
return e.forEach((n, s) => t[n] = s), t;
|
|
2282
|
+
})(Me);
|
|
2283
|
+
const X = String.fromCharCode.bind(String);
|
|
2175
2284
|
typeof Uint8Array.from == "function" && Uint8Array.from.bind(Uint8Array);
|
|
2176
|
-
const
|
|
2177
|
-
let
|
|
2178
|
-
const i =
|
|
2179
|
-
for (let
|
|
2180
|
-
if ((n =
|
|
2285
|
+
const Lo = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : "_"), Bo = (e) => {
|
|
2286
|
+
let t, n, s, o, r = "";
|
|
2287
|
+
const i = e.length % 3;
|
|
2288
|
+
for (let l = 0; l < e.length; ) {
|
|
2289
|
+
if ((n = e.charCodeAt(l++)) > 255 || (s = e.charCodeAt(l++)) > 255 || (o = e.charCodeAt(l++)) > 255)
|
|
2181
2290
|
throw new TypeError("invalid character found");
|
|
2182
|
-
|
|
2291
|
+
t = n << 16 | s << 8 | o, r += Me[t >> 18 & 63] + Me[t >> 12 & 63] + Me[t >> 6 & 63] + Me[t & 63];
|
|
2183
2292
|
}
|
|
2184
|
-
return i ?
|
|
2185
|
-
},
|
|
2293
|
+
return i ? r.slice(0, i - 3) + "===".substring(i) : r;
|
|
2294
|
+
}, Rn = typeof btoa == "function" ? (e) => btoa(e) : It ? (e) => Buffer.from(e, "binary").toString("base64") : Bo, zo = It ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
2186
2295
|
let n = [];
|
|
2187
|
-
for (let s = 0,
|
|
2188
|
-
n.push(
|
|
2189
|
-
return
|
|
2190
|
-
},
|
|
2191
|
-
if (
|
|
2192
|
-
var
|
|
2193
|
-
return
|
|
2296
|
+
for (let s = 0, o = e.length; s < o; s += 4096)
|
|
2297
|
+
n.push(X.apply(null, e.subarray(s, s + 4096)));
|
|
2298
|
+
return Rn(n.join(""));
|
|
2299
|
+
}, Do = (e) => {
|
|
2300
|
+
if (e.length < 2) {
|
|
2301
|
+
var t = e.charCodeAt(0);
|
|
2302
|
+
return t < 128 ? e : t < 2048 ? X(192 | t >>> 6) + X(128 | t & 63) : X(224 | t >>> 12 & 15) + X(128 | t >>> 6 & 63) + X(128 | t & 63);
|
|
2194
2303
|
} else {
|
|
2195
|
-
var
|
|
2196
|
-
return
|
|
2304
|
+
var t = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
|
|
2305
|
+
return X(240 | t >>> 18 & 7) + X(128 | t >>> 12 & 63) + X(128 | t >>> 6 & 63) + X(128 | t & 63);
|
|
2197
2306
|
}
|
|
2198
|
-
},
|
|
2199
|
-
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," + ir(s), f = "font-size: 1px; padding: " + Math.floor(100 / 4) + "px " + Math.floor(580 / 2) + "px; line-height: " + Math.floor(100 / 2) + "px;";
|
|
2307
|
+
}, No = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, Po = (e) => e.replace(No, Do), an = It ? (e) => Buffer.from(e, "utf8").toString("base64") : rn ? (e) => zo(rn.encode(e)) : (e) => Rn(Po(e)), $o = (e, t = !1) => t ? Lo(an(e)) : an(e), Vo = (e) => {
|
|
2308
|
+
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: ${e}</tspan></text></g></svg>`, i = "data:image/svg+xml;base64," + $o(s), l = "font-size: 1px; padding: " + Math.floor(100 / 4) + "px " + Math.floor(580 / 2) + "px; line-height: " + Math.floor(100 / 2) + "px;";
|
|
2200
2309
|
window.console.log(
|
|
2201
2310
|
"%c+",
|
|
2202
|
-
|
|
2311
|
+
l + `background-image: url(${i});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`
|
|
2203
2312
|
);
|
|
2204
|
-
},
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
const y = se(
|
|
2212
|
-
{
|
|
2213
|
-
__tab: l
|
|
2214
|
-
},
|
|
2215
|
-
g.query
|
|
2216
|
-
);
|
|
2217
|
-
p.emit("FORWARD"), c.push({
|
|
2218
|
-
path: g.path,
|
|
2219
|
-
query: y
|
|
2220
|
-
});
|
|
2313
|
+
}, Wo = "FORWARD", Uo = "BACKWARD";
|
|
2314
|
+
function Fo() {
|
|
2315
|
+
const e = un(), { attrs: t, props: n } = e, s = t.tId ?? n.tId, o = t.pId ?? n.pId, r = Un(), i = wt(), l = Te(), { getTab: a, markCacheForEviction: c, getComponent: b, addPageScroller: d } = Xe(), p = r.query.__tab;
|
|
2316
|
+
return {
|
|
2317
|
+
forward: (S) => {
|
|
2318
|
+
const m = re({ __tab: p }, S.query);
|
|
2319
|
+
l.emit(Wo), i.push({ path: S.path, query: m });
|
|
2221
2320
|
},
|
|
2222
|
-
backward: (
|
|
2223
|
-
const
|
|
2224
|
-
if (!
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
O = Math.abs(g);
|
|
2321
|
+
backward: (S, m) => {
|
|
2322
|
+
const _ = a(s);
|
|
2323
|
+
if (!_) return;
|
|
2324
|
+
const k = _.pages;
|
|
2325
|
+
let h = 0;
|
|
2326
|
+
if (typeof S == "number")
|
|
2327
|
+
h = Math.abs(S);
|
|
2230
2328
|
else {
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2329
|
+
const T = _t(S);
|
|
2330
|
+
m = re(T.query, m);
|
|
2331
|
+
const v = k.list();
|
|
2332
|
+
let P = !1;
|
|
2333
|
+
for (let F = k.size() - 2; F >= 0; F--)
|
|
2334
|
+
if (h++, v[F]?.path === T.path) {
|
|
2335
|
+
P = !0;
|
|
2237
2336
|
break;
|
|
2238
2337
|
}
|
|
2239
|
-
|
|
2240
|
-
}
|
|
2241
|
-
$ && (O = _);
|
|
2338
|
+
if (!P) return;
|
|
2242
2339
|
}
|
|
2243
|
-
if (
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
r($.id);
|
|
2340
|
+
if (h <= 0 || k.size() <= h) return;
|
|
2341
|
+
for (let T = 0; T < h; T++) {
|
|
2342
|
+
const v = k.pop();
|
|
2343
|
+
v && c(v.id);
|
|
2248
2344
|
}
|
|
2249
|
-
const
|
|
2250
|
-
if (
|
|
2251
|
-
|
|
2252
|
-
|
|
2345
|
+
const w = k.peek();
|
|
2346
|
+
if (!w) return;
|
|
2347
|
+
const u = b(w.id);
|
|
2348
|
+
if (u && m) {
|
|
2349
|
+
const v = u.components?.DynamicComponent;
|
|
2350
|
+
v?.props && (v.props = re(m, v.props));
|
|
2253
2351
|
}
|
|
2254
|
-
|
|
2255
|
-
path: d.path,
|
|
2256
|
-
query: d.query
|
|
2257
|
-
});
|
|
2352
|
+
l.emit(Uo), i.push({ path: w.path, query: w.query });
|
|
2258
2353
|
},
|
|
2259
|
-
|
|
2260
|
-
|
|
2354
|
+
addScrollTarget: (...S) => {
|
|
2355
|
+
d(o, ...S);
|
|
2261
2356
|
}
|
|
2262
2357
|
};
|
|
2263
|
-
}
|
|
2358
|
+
}
|
|
2359
|
+
const Zo = /* @__PURE__ */ q({
|
|
2264
2360
|
__name: "iframe",
|
|
2265
|
-
setup(
|
|
2266
|
-
return
|
|
2361
|
+
setup(e) {
|
|
2362
|
+
return Fo(), () => {
|
|
2267
2363
|
};
|
|
2268
2364
|
}
|
|
2269
|
-
}),
|
|
2270
|
-
const
|
|
2271
|
-
|
|
2365
|
+
}), Ko = () => {
|
|
2366
|
+
const e = Te(), { attrs: t } = un();
|
|
2367
|
+
Ee(() => {
|
|
2272
2368
|
s();
|
|
2273
2369
|
});
|
|
2274
2370
|
const n = () => {
|
|
2275
|
-
|
|
2371
|
+
e.emit(H.PAGE_LOADING, { tId: t.tId, value: !0 });
|
|
2276
2372
|
}, s = () => {
|
|
2277
|
-
|
|
2373
|
+
e.emit(H.PAGE_LOADING, { tId: t.tId, value: !1 });
|
|
2278
2374
|
};
|
|
2279
2375
|
return { openTabLoading: n, closeTabLoading: s };
|
|
2280
|
-
},
|
|
2281
|
-
|
|
2282
|
-
|
|
2376
|
+
}, Ho = "vue-stack-tabs:refresh", Go = "vue-stack-tabs:openTab";
|
|
2377
|
+
function Xo(e) {
|
|
2378
|
+
typeof window > "u" || !window.parent || window.parent.postMessage(
|
|
2379
|
+
{ type: Go, payload: e },
|
|
2380
|
+
"*"
|
|
2381
|
+
// 父窗口可校验 origin,此处用 * 便于跨子域
|
|
2382
|
+
);
|
|
2383
|
+
}
|
|
2384
|
+
function Yo(e = () => window.location.reload()) {
|
|
2385
|
+
if (typeof window > "u") return () => {
|
|
2386
|
+
};
|
|
2387
|
+
const t = (n) => {
|
|
2388
|
+
n.data?.type === Ho && e();
|
|
2389
|
+
};
|
|
2390
|
+
return window.addEventListener("message", t), () => window.removeEventListener("message", t);
|
|
2391
|
+
}
|
|
2392
|
+
const Jo = {
|
|
2393
|
+
install(e, t) {
|
|
2394
|
+
Vo("1.0.0"), e.component("VueStackTabs", Ro).use(Ms).use(ss().getI18n(t));
|
|
2283
2395
|
}
|
|
2284
2396
|
};
|
|
2285
2397
|
export {
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2398
|
+
Zo as IFrame,
|
|
2399
|
+
Go as MSG_OPEN_TAB,
|
|
2400
|
+
Ho as MSG_REFRESH,
|
|
2401
|
+
lt as Stack,
|
|
2402
|
+
Ro as StackTab,
|
|
2403
|
+
vt as TabHeaderButton,
|
|
2404
|
+
be as TabScrollMode,
|
|
2405
|
+
Jo as default,
|
|
2406
|
+
Yo as onRefreshRequest,
|
|
2407
|
+
Xo as postOpenTab,
|
|
2408
|
+
At as useTabActions,
|
|
2409
|
+
Ko as useTabLoading,
|
|
2410
|
+
Fo as useTabRouter
|
|
2295
2411
|
};
|