vue-stack-tabs 0.1.36 → 0.1.38

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