@mjsz-vbr-elements/core 2.21.1 → 2.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{TimezoneSelector-C9LgL7ma.js → TimezoneSelector-C580t5lo.js} +6 -6
- package/dist/columns.js +1 -1
- package/dist/components.js +2 -2
- package/dist/composables.js +4 -4
- package/dist/constants.js +1 -1
- package/dist/{datetime-K_d-hEsO.js → datetime-Djnl319m.js} +3 -3
- package/dist/{errors-CONPaUL0.js → errors-BHWrTPiE.js} +2 -2
- package/dist/index.iife.js +4 -4
- package/dist/index.iife.js.br +0 -0
- package/dist/index.iife.js.gz +0 -0
- package/dist/index.js +5 -5
- package/dist/useSort-Dxgp5PGu.js +821 -0
- package/dist/utils.js +4 -4
- package/package.json +4 -4
- package/dist/useSort-Day5AwW-.js +0 -803
|
@@ -0,0 +1,821 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* name: @mjsz-vbr-elements/core
|
|
3
|
+
* version: v2.22.0 - 12/03/2025, 15:38:00
|
|
4
|
+
* (c) 2025
|
|
5
|
+
* description: Data visualization for MJSZ VBR
|
|
6
|
+
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
|
+
*/
|
|
8
|
+
import { ref as R, watch as O, unref as I, reactive as me, defineComponent as ke, h as De, computed as j, provide as ye, inject as he, onErrorCaptured as Le, shallowRef as C, readonly as oe, nextTick as K, getCurrentScope as Ne, onScopeDispose as _e, toValue as A, toRef as Fe, customRef as Be, isRef as We } from "vue";
|
|
9
|
+
import { _ as G, w as Me, x as $e, z as Z, A as Ue, B as ze, C as ve, D as M, E as ge, F as Ke, G as ue, H as F, I as B, J as Ge, K as qe, u as He } from "./datetime-Djnl319m.js";
|
|
10
|
+
import { SORT_STATE_ORIGINAL as $, SORT_STATE_DESCEND as V, SORT_STATE_ASCEND as z } from "./constants.js";
|
|
11
|
+
function Je(e) {
|
|
12
|
+
var t = Object.prototype.toString.call(e);
|
|
13
|
+
return t === "[object Uint8ClampedArray]" || t === "[object Int8Array]" || t === "[object Uint8Array]" || t === "[object Int16Array]" || t === "[object Uint16Array]" || t === "[object Int32Array]" || t === "[object Uint32Array]" || t === "[object Float32Array]" || t === "[object Float64Array]" || t === "[object BigInt64Array]" || t === "[object BigUint64Array]";
|
|
14
|
+
}
|
|
15
|
+
var Qe = /* @__PURE__ */ G(function(t) {
|
|
16
|
+
return t != null && typeof t["fantasy-land/empty"] == "function" ? t["fantasy-land/empty"]() : t != null && t.constructor != null && typeof t.constructor["fantasy-land/empty"] == "function" ? t.constructor["fantasy-land/empty"]() : t != null && typeof t.empty == "function" ? t.empty() : t != null && t.constructor != null && typeof t.constructor.empty == "function" ? t.constructor.empty() : Me(t) ? [] : $e(t) ? "" : Z(t) ? {} : Ue(t) ? /* @__PURE__ */ function() {
|
|
17
|
+
return arguments;
|
|
18
|
+
}() : Je(t) ? t.constructor.from("") : void 0;
|
|
19
|
+
}), Ve = /* @__PURE__ */ G(function(t) {
|
|
20
|
+
return t != null && ze(t, Qe(t));
|
|
21
|
+
}), Xe = /* @__PURE__ */ ve(function(t, r, n) {
|
|
22
|
+
var i = {}, o;
|
|
23
|
+
r = r || {}, n = n || {};
|
|
24
|
+
for (o in r)
|
|
25
|
+
M(o, r) && (i[o] = M(o, n) ? t(o, r[o], n[o]) : r[o]);
|
|
26
|
+
for (o in n)
|
|
27
|
+
M(o, n) && !M(o, i) && (i[o] = n[o]);
|
|
28
|
+
return i;
|
|
29
|
+
}), Ye = /* @__PURE__ */ ve(function e(t, r, n) {
|
|
30
|
+
return Xe(function(i, o, u) {
|
|
31
|
+
return Z(o) && Z(u) ? e(t, o, u) : t(i, o, u);
|
|
32
|
+
}, r, n);
|
|
33
|
+
}), Ze = /* @__PURE__ */ ge(function(t, r) {
|
|
34
|
+
return Ye(function(n, i, o) {
|
|
35
|
+
return o;
|
|
36
|
+
}, t, r);
|
|
37
|
+
}), et = /* @__PURE__ */ ge(function(t, r) {
|
|
38
|
+
for (var n = {}, i = {}, o = 0, u = t.length; o < u; )
|
|
39
|
+
i[t[o]] = 1, o += 1;
|
|
40
|
+
for (var s in r)
|
|
41
|
+
i.hasOwnProperty(s) || (n[s] = r[s]);
|
|
42
|
+
return n;
|
|
43
|
+
}), N = `
|
|
44
|
+
\v\f\r \u2028\u2029\uFEFF`, tt = "", nt = typeof String.prototype.trim == "function", q = !nt || /* @__PURE__ */ N.trim() || !/* @__PURE__ */ tt.trim() ? /* @__PURE__ */ G(function(t) {
|
|
45
|
+
var r = new RegExp("^[" + N + "][" + N + "]*"), n = new RegExp("[" + N + "][" + N + "]*$");
|
|
46
|
+
return t.replace(r, "").replace(n, "");
|
|
47
|
+
}) : /* @__PURE__ */ G(function(t) {
|
|
48
|
+
return t.trim();
|
|
49
|
+
});
|
|
50
|
+
function Ct(e, t, r, n) {
|
|
51
|
+
const i = R(""), o = R(!1), u = (s) => {
|
|
52
|
+
const a = Ke(ue(t), s), d = a.length > 0;
|
|
53
|
+
if (o.value = d, !d)
|
|
54
|
+
return i.value = "";
|
|
55
|
+
const l = a.map((p) => ({
|
|
56
|
+
team: p.team.longName,
|
|
57
|
+
points: Math.abs(ue(t, p))
|
|
58
|
+
})).map((p) => r(`additionalText.${t}.content`, p)).join(", ");
|
|
59
|
+
i.value = [
|
|
60
|
+
r(`additionalText.${t}.prependix`),
|
|
61
|
+
l,
|
|
62
|
+
...r(`additionalText.${t}.appendix`) && [r(`additionalText.${t}.appendix`)]
|
|
63
|
+
].join(" ");
|
|
64
|
+
};
|
|
65
|
+
return O(e, u, { immediate: !0 }), O(
|
|
66
|
+
() => I(n),
|
|
67
|
+
() => u(I(e))
|
|
68
|
+
), {
|
|
69
|
+
text: i,
|
|
70
|
+
isVisible: o
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
const be = Symbol("I18nContext"), T = me({
|
|
74
|
+
messages: {},
|
|
75
|
+
locale: "",
|
|
76
|
+
fallbackLocale: ""
|
|
77
|
+
});
|
|
78
|
+
function jt({ messages: e = {}, locale: t = "", fallbackLocale: r = "" }) {
|
|
79
|
+
T.messages = Ze(T.messages, e), T.locale = t, T.fallbackLocale = r;
|
|
80
|
+
const n = (a, d = {}) => {
|
|
81
|
+
const m = !Ve(d), l = F(q, B(".", a));
|
|
82
|
+
return j(() => {
|
|
83
|
+
const y = we(l);
|
|
84
|
+
return m ? it(y, d) : y;
|
|
85
|
+
}).value;
|
|
86
|
+
}, i = (a) => {
|
|
87
|
+
const d = F(q, B(".", a));
|
|
88
|
+
return !!ee(T.locale, d, T.messages);
|
|
89
|
+
}, o = (a) => {
|
|
90
|
+
T.locale = a;
|
|
91
|
+
}, s = {
|
|
92
|
+
locale: j({
|
|
93
|
+
get() {
|
|
94
|
+
return T.locale;
|
|
95
|
+
},
|
|
96
|
+
set(a) {
|
|
97
|
+
T.locale = a;
|
|
98
|
+
}
|
|
99
|
+
}),
|
|
100
|
+
setLocale: o,
|
|
101
|
+
translate: n,
|
|
102
|
+
hasTranslation: i
|
|
103
|
+
};
|
|
104
|
+
return ye(be, s), {
|
|
105
|
+
translate: n
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function rt(e) {
|
|
109
|
+
e && (T.messages = e.messages, T.locale = e.locale, T.fallbackLocale = e.fallbackLocale);
|
|
110
|
+
const t = ot();
|
|
111
|
+
return {
|
|
112
|
+
locale: t.locale,
|
|
113
|
+
t: t.translate,
|
|
114
|
+
setLocale: t.setLocale,
|
|
115
|
+
hasTranslation: t.hasTranslation
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function ot() {
|
|
119
|
+
const e = he(be, null);
|
|
120
|
+
if (e === null)
|
|
121
|
+
throw new Error("Provider is missing a parent component.");
|
|
122
|
+
return e;
|
|
123
|
+
}
|
|
124
|
+
function we(e = []) {
|
|
125
|
+
let t = ee(T.locale, e, T.messages);
|
|
126
|
+
return !t && T.fallbackLocale && (t = ee(T.fallbackLocale, e, T.messages)), t || e.join(".");
|
|
127
|
+
}
|
|
128
|
+
function ee(e, t, r) {
|
|
129
|
+
return Ge([e, ...t], r);
|
|
130
|
+
}
|
|
131
|
+
function it(e, t) {
|
|
132
|
+
return e.replace(/\{(\w+)\}/g, (r, n) => t[n]);
|
|
133
|
+
}
|
|
134
|
+
const kt = ke({
|
|
135
|
+
props: {
|
|
136
|
+
tag: {
|
|
137
|
+
type: String,
|
|
138
|
+
default: "div"
|
|
139
|
+
},
|
|
140
|
+
path: {
|
|
141
|
+
type: String,
|
|
142
|
+
defult: ""
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
setup(e, { slots: t }) {
|
|
146
|
+
const r = F(q, B(".", e.path)), n = we(r), i = B(/\{|\}/, n), o = Object.keys(t).map((u) => {
|
|
147
|
+
const s = i.indexOf(u);
|
|
148
|
+
return s > -1 && (i[s] = t[u]()[0]), i;
|
|
149
|
+
});
|
|
150
|
+
return () => De(e.tag, o);
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
function Dt(e, t = "", r = {}) {
|
|
154
|
+
const n = R(""), { t: i } = rt(), o = j(() => {
|
|
155
|
+
if (I(t))
|
|
156
|
+
try {
|
|
157
|
+
const a = at(I(e), I(t));
|
|
158
|
+
return et(a, I(e));
|
|
159
|
+
} catch (a) {
|
|
160
|
+
n.value = a;
|
|
161
|
+
}
|
|
162
|
+
return I(e);
|
|
163
|
+
}), u = (a) => ({
|
|
164
|
+
...a,
|
|
165
|
+
...a.label && { label: i(a.label ?? "", I(r)) },
|
|
166
|
+
...a.tooltip && { tooltip: i(a.tooltip ?? "") }
|
|
167
|
+
});
|
|
168
|
+
return {
|
|
169
|
+
columns: j(() => F(u, o.value)),
|
|
170
|
+
error: n
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
function at(e, t = "") {
|
|
174
|
+
const r = F(q, B(",", t)), n = qe(e);
|
|
175
|
+
if (r[0] === "")
|
|
176
|
+
return [];
|
|
177
|
+
const i = r.findIndex((o) => !n.includes(o));
|
|
178
|
+
if (i > -1)
|
|
179
|
+
throw r[i];
|
|
180
|
+
return r;
|
|
181
|
+
}
|
|
182
|
+
const Te = Symbol("ErrorProviderContext");
|
|
183
|
+
function Lt() {
|
|
184
|
+
const e = R(""), t = R({}), r = (o) => {
|
|
185
|
+
console.error({ error: o }), e.value = o.message || o.error.message, t.value = {
|
|
186
|
+
message: o.message,
|
|
187
|
+
key: o.key || He(o.message),
|
|
188
|
+
cause: o.cause
|
|
189
|
+
};
|
|
190
|
+
}, n = () => {
|
|
191
|
+
e.value = "", t.value = {};
|
|
192
|
+
};
|
|
193
|
+
return ye(Te, {
|
|
194
|
+
onError: r,
|
|
195
|
+
reset: n
|
|
196
|
+
}), window.onerror = (o) => {
|
|
197
|
+
console.error("WINDOW_ONERROR:", o);
|
|
198
|
+
}, Le((o, u, s) => {
|
|
199
|
+
console.error("onErrorCaptured:", o, u, s);
|
|
200
|
+
}), {
|
|
201
|
+
hasError: j(() => e.value.length > 0),
|
|
202
|
+
message: e,
|
|
203
|
+
error: t,
|
|
204
|
+
reset: n,
|
|
205
|
+
onError: r
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
function Nt() {
|
|
209
|
+
const e = st();
|
|
210
|
+
return {
|
|
211
|
+
onError: e.onError,
|
|
212
|
+
reset: e.reset
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
function st() {
|
|
216
|
+
const e = he(Te, null);
|
|
217
|
+
if (e === null)
|
|
218
|
+
throw new Error("Provider is missing a parent component.");
|
|
219
|
+
return e;
|
|
220
|
+
}
|
|
221
|
+
function Ae(e) {
|
|
222
|
+
return Ne() ? (_e(e), !0) : !1;
|
|
223
|
+
}
|
|
224
|
+
const H = typeof window < "u" && typeof document < "u";
|
|
225
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
226
|
+
const ut = Object.prototype.toString, ct = (e) => ut.call(e) === "[object Object]", x = () => {
|
|
227
|
+
}, lt = /* @__PURE__ */ ft();
|
|
228
|
+
function ft() {
|
|
229
|
+
var e, t;
|
|
230
|
+
return H && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
231
|
+
}
|
|
232
|
+
function dt(...e) {
|
|
233
|
+
if (e.length !== 1)
|
|
234
|
+
return Fe(...e);
|
|
235
|
+
const t = e[0];
|
|
236
|
+
return typeof t == "function" ? oe(Be(() => ({ get: t, set: x }))) : R(t);
|
|
237
|
+
}
|
|
238
|
+
function pt(e, t) {
|
|
239
|
+
function r(...n) {
|
|
240
|
+
return new Promise((i, o) => {
|
|
241
|
+
Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(i).catch(o);
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
return r;
|
|
245
|
+
}
|
|
246
|
+
const Ee = (e) => e();
|
|
247
|
+
function mt(e = Ee, t = {}) {
|
|
248
|
+
const {
|
|
249
|
+
initialState: r = "active"
|
|
250
|
+
} = t, n = dt(r === "active");
|
|
251
|
+
function i() {
|
|
252
|
+
n.value = !1;
|
|
253
|
+
}
|
|
254
|
+
function o() {
|
|
255
|
+
n.value = !0;
|
|
256
|
+
}
|
|
257
|
+
const u = (...s) => {
|
|
258
|
+
n.value && e(...s);
|
|
259
|
+
};
|
|
260
|
+
return { isActive: oe(n), pause: i, resume: o, eventFilter: u };
|
|
261
|
+
}
|
|
262
|
+
function te(e, t = !1, r = "Timeout") {
|
|
263
|
+
return new Promise((n, i) => {
|
|
264
|
+
setTimeout(t ? () => i(r) : n, e);
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
function X(e) {
|
|
268
|
+
return Array.isArray(e) ? e : [e];
|
|
269
|
+
}
|
|
270
|
+
function yt(e, t, r = {}) {
|
|
271
|
+
const {
|
|
272
|
+
eventFilter: n = Ee,
|
|
273
|
+
...i
|
|
274
|
+
} = r;
|
|
275
|
+
return O(
|
|
276
|
+
e,
|
|
277
|
+
pt(
|
|
278
|
+
n,
|
|
279
|
+
t
|
|
280
|
+
),
|
|
281
|
+
i
|
|
282
|
+
);
|
|
283
|
+
}
|
|
284
|
+
function _t(e, t, r = {}) {
|
|
285
|
+
const {
|
|
286
|
+
eventFilter: n,
|
|
287
|
+
initialState: i = "active",
|
|
288
|
+
...o
|
|
289
|
+
} = r, { eventFilter: u, pause: s, resume: a, isActive: d } = mt(n, { initialState: i });
|
|
290
|
+
return { stop: yt(
|
|
291
|
+
e,
|
|
292
|
+
t,
|
|
293
|
+
{
|
|
294
|
+
...o,
|
|
295
|
+
eventFilter: u
|
|
296
|
+
}
|
|
297
|
+
), pause: s, resume: a, isActive: d };
|
|
298
|
+
}
|
|
299
|
+
function ne(e, t = !1) {
|
|
300
|
+
function r(l, { flush: p = "sync", deep: y = !1, timeout: v, throwOnTimeout: w } = {}) {
|
|
301
|
+
let c = null;
|
|
302
|
+
const h = [new Promise((E) => {
|
|
303
|
+
c = O(
|
|
304
|
+
e,
|
|
305
|
+
(g) => {
|
|
306
|
+
l(g) !== t && (c ? c() : K(() => c == null ? void 0 : c()), E(g));
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
flush: p,
|
|
310
|
+
deep: y,
|
|
311
|
+
immediate: !0
|
|
312
|
+
}
|
|
313
|
+
);
|
|
314
|
+
})];
|
|
315
|
+
return v != null && h.push(
|
|
316
|
+
te(v, w).then(() => A(e)).finally(() => c == null ? void 0 : c())
|
|
317
|
+
), Promise.race(h);
|
|
318
|
+
}
|
|
319
|
+
function n(l, p) {
|
|
320
|
+
if (!We(l))
|
|
321
|
+
return r((g) => g === l, p);
|
|
322
|
+
const { flush: y = "sync", deep: v = !1, timeout: w, throwOnTimeout: c } = p ?? {};
|
|
323
|
+
let f = null;
|
|
324
|
+
const E = [new Promise((g) => {
|
|
325
|
+
f = O(
|
|
326
|
+
[e, l],
|
|
327
|
+
([L, W]) => {
|
|
328
|
+
t !== (L === W) && (f ? f() : K(() => f == null ? void 0 : f()), g(L));
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
flush: y,
|
|
332
|
+
deep: v,
|
|
333
|
+
immediate: !0
|
|
334
|
+
}
|
|
335
|
+
);
|
|
336
|
+
})];
|
|
337
|
+
return w != null && E.push(
|
|
338
|
+
te(w, c).then(() => A(e)).finally(() => (f == null || f(), A(e)))
|
|
339
|
+
), Promise.race(E);
|
|
340
|
+
}
|
|
341
|
+
function i(l) {
|
|
342
|
+
return r((p) => !!p, l);
|
|
343
|
+
}
|
|
344
|
+
function o(l) {
|
|
345
|
+
return n(null, l);
|
|
346
|
+
}
|
|
347
|
+
function u(l) {
|
|
348
|
+
return n(void 0, l);
|
|
349
|
+
}
|
|
350
|
+
function s(l) {
|
|
351
|
+
return r(Number.isNaN, l);
|
|
352
|
+
}
|
|
353
|
+
function a(l, p) {
|
|
354
|
+
return r((y) => {
|
|
355
|
+
const v = Array.from(y);
|
|
356
|
+
return v.includes(l) || v.includes(A(l));
|
|
357
|
+
}, p);
|
|
358
|
+
}
|
|
359
|
+
function d(l) {
|
|
360
|
+
return m(1, l);
|
|
361
|
+
}
|
|
362
|
+
function m(l = 1, p) {
|
|
363
|
+
let y = -1;
|
|
364
|
+
return r(() => (y += 1, y >= l), p);
|
|
365
|
+
}
|
|
366
|
+
return Array.isArray(A(e)) ? {
|
|
367
|
+
toMatch: r,
|
|
368
|
+
toContains: a,
|
|
369
|
+
changed: d,
|
|
370
|
+
changedTimes: m,
|
|
371
|
+
get not() {
|
|
372
|
+
return ne(e, !t);
|
|
373
|
+
}
|
|
374
|
+
} : {
|
|
375
|
+
toMatch: r,
|
|
376
|
+
toBe: n,
|
|
377
|
+
toBeTruthy: i,
|
|
378
|
+
toBeNull: o,
|
|
379
|
+
toBeNaN: s,
|
|
380
|
+
toBeUndefined: u,
|
|
381
|
+
changed: d,
|
|
382
|
+
changedTimes: m,
|
|
383
|
+
get not() {
|
|
384
|
+
return ne(e, !t);
|
|
385
|
+
}
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
function ht(e) {
|
|
389
|
+
return ne(e);
|
|
390
|
+
}
|
|
391
|
+
function vt(e, t, r = {}) {
|
|
392
|
+
const {
|
|
393
|
+
immediate: n = !0,
|
|
394
|
+
immediateCallback: i = !1
|
|
395
|
+
} = r, o = C(!1);
|
|
396
|
+
let u = null;
|
|
397
|
+
function s() {
|
|
398
|
+
u && (clearTimeout(u), u = null);
|
|
399
|
+
}
|
|
400
|
+
function a() {
|
|
401
|
+
o.value = !1, s();
|
|
402
|
+
}
|
|
403
|
+
function d(...m) {
|
|
404
|
+
i && e(), s(), o.value = !0, u = setTimeout(() => {
|
|
405
|
+
o.value = !1, u = null, e(...m);
|
|
406
|
+
}, A(t));
|
|
407
|
+
}
|
|
408
|
+
return n && (o.value = !0, H && d()), Ae(a), {
|
|
409
|
+
isPending: oe(o),
|
|
410
|
+
start: d,
|
|
411
|
+
stop: a
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
function gt(e, t, r) {
|
|
415
|
+
return O(
|
|
416
|
+
e,
|
|
417
|
+
t,
|
|
418
|
+
{
|
|
419
|
+
...r,
|
|
420
|
+
immediate: !0
|
|
421
|
+
}
|
|
422
|
+
);
|
|
423
|
+
}
|
|
424
|
+
function Ft(e, t, r) {
|
|
425
|
+
const n = O(e, (...i) => (K(() => n()), t(...i)), r);
|
|
426
|
+
return n;
|
|
427
|
+
}
|
|
428
|
+
function Bt(e, t, r) {
|
|
429
|
+
const n = O(
|
|
430
|
+
e,
|
|
431
|
+
(i, o, u) => {
|
|
432
|
+
i && (r != null && r.once && K(() => n()), t(i, o, u));
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
...r,
|
|
436
|
+
once: !1
|
|
437
|
+
}
|
|
438
|
+
);
|
|
439
|
+
return n;
|
|
440
|
+
}
|
|
441
|
+
const Ie = H ? window : void 0, bt = H ? window.document : void 0;
|
|
442
|
+
function _(e) {
|
|
443
|
+
var t;
|
|
444
|
+
const r = A(e);
|
|
445
|
+
return (t = r == null ? void 0 : r.$el) != null ? t : r;
|
|
446
|
+
}
|
|
447
|
+
function D(...e) {
|
|
448
|
+
const t = [], r = () => {
|
|
449
|
+
t.forEach((s) => s()), t.length = 0;
|
|
450
|
+
}, n = (s, a, d, m) => (s.addEventListener(a, d, m), () => s.removeEventListener(a, d, m)), i = j(() => {
|
|
451
|
+
const s = X(A(e[0])).filter((a) => a != null);
|
|
452
|
+
return s.every((a) => typeof a != "string") ? s : void 0;
|
|
453
|
+
}), o = gt(
|
|
454
|
+
() => {
|
|
455
|
+
var s, a;
|
|
456
|
+
return [
|
|
457
|
+
(a = (s = i.value) == null ? void 0 : s.map((d) => _(d))) != null ? a : [Ie].filter((d) => d != null),
|
|
458
|
+
X(A(i.value ? e[1] : e[0])),
|
|
459
|
+
X(I(i.value ? e[2] : e[1])),
|
|
460
|
+
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
461
|
+
A(i.value ? e[3] : e[2])
|
|
462
|
+
];
|
|
463
|
+
},
|
|
464
|
+
([s, a, d, m]) => {
|
|
465
|
+
if (r(), !(s != null && s.length) || !(a != null && a.length) || !(d != null && d.length))
|
|
466
|
+
return;
|
|
467
|
+
const l = ct(m) ? { ...m } : m;
|
|
468
|
+
t.push(
|
|
469
|
+
...s.flatMap(
|
|
470
|
+
(p) => a.flatMap(
|
|
471
|
+
(y) => d.map((v) => n(p, y, v, l))
|
|
472
|
+
)
|
|
473
|
+
)
|
|
474
|
+
);
|
|
475
|
+
},
|
|
476
|
+
{ flush: "post" }
|
|
477
|
+
), u = () => {
|
|
478
|
+
o(), r();
|
|
479
|
+
};
|
|
480
|
+
return Ae(r), u;
|
|
481
|
+
}
|
|
482
|
+
let ce = !1;
|
|
483
|
+
function Wt(e, t, r = {}) {
|
|
484
|
+
const { window: n = Ie, ignore: i = [], capture: o = !0, detectIframe: u = !1, controls: s = !1 } = r;
|
|
485
|
+
if (!n)
|
|
486
|
+
return s ? { stop: x, cancel: x, trigger: x } : x;
|
|
487
|
+
if (lt && !ce) {
|
|
488
|
+
ce = !0;
|
|
489
|
+
const c = { passive: !0 };
|
|
490
|
+
Array.from(n.document.body.children).forEach((f) => D(f, "click", x, c)), D(n.document.documentElement, "click", x, c);
|
|
491
|
+
}
|
|
492
|
+
let a = !0;
|
|
493
|
+
const d = (c) => A(i).some((f) => {
|
|
494
|
+
if (typeof f == "string")
|
|
495
|
+
return Array.from(n.document.querySelectorAll(f)).some((h) => h === c.target || c.composedPath().includes(h));
|
|
496
|
+
{
|
|
497
|
+
const h = _(f);
|
|
498
|
+
return h && (c.target === h || c.composedPath().includes(h));
|
|
499
|
+
}
|
|
500
|
+
});
|
|
501
|
+
function m(c) {
|
|
502
|
+
const f = A(c);
|
|
503
|
+
return f && f.$.subTree.shapeFlag === 16;
|
|
504
|
+
}
|
|
505
|
+
function l(c, f) {
|
|
506
|
+
const h = A(c), E = h.$.subTree && h.$.subTree.children;
|
|
507
|
+
return E == null || !Array.isArray(E) ? !1 : E.some((g) => g.el === f.target || f.composedPath().includes(g.el));
|
|
508
|
+
}
|
|
509
|
+
const p = (c) => {
|
|
510
|
+
const f = _(e);
|
|
511
|
+
if (c.target != null && !(!(f instanceof Element) && m(e) && l(e, c)) && !(!f || f === c.target || c.composedPath().includes(f))) {
|
|
512
|
+
if ("detail" in c && c.detail === 0 && (a = !d(c)), !a) {
|
|
513
|
+
a = !0;
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
516
|
+
t(c);
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
let y = !1;
|
|
520
|
+
const v = [
|
|
521
|
+
D(n, "click", (c) => {
|
|
522
|
+
y || (y = !0, setTimeout(() => {
|
|
523
|
+
y = !1;
|
|
524
|
+
}, 0), p(c));
|
|
525
|
+
}, { passive: !0, capture: o }),
|
|
526
|
+
D(n, "pointerdown", (c) => {
|
|
527
|
+
const f = _(e);
|
|
528
|
+
a = !d(c) && !!(f && !c.composedPath().includes(f));
|
|
529
|
+
}, { passive: !0 }),
|
|
530
|
+
u && D(n, "blur", (c) => {
|
|
531
|
+
setTimeout(() => {
|
|
532
|
+
var f;
|
|
533
|
+
const h = _(e);
|
|
534
|
+
((f = n.document.activeElement) == null ? void 0 : f.tagName) === "IFRAME" && !(h != null && h.contains(n.document.activeElement)) && t(c);
|
|
535
|
+
}, 0);
|
|
536
|
+
}, { passive: !0 })
|
|
537
|
+
].filter(Boolean), w = () => v.forEach((c) => c());
|
|
538
|
+
return s ? {
|
|
539
|
+
stop: w,
|
|
540
|
+
cancel: () => {
|
|
541
|
+
a = !1;
|
|
542
|
+
},
|
|
543
|
+
trigger: (c) => {
|
|
544
|
+
a = !0, p(c), a = !1;
|
|
545
|
+
}
|
|
546
|
+
} : w;
|
|
547
|
+
}
|
|
548
|
+
function wt(e, t, r) {
|
|
549
|
+
const {
|
|
550
|
+
immediate: n = !0,
|
|
551
|
+
delay: i = 0,
|
|
552
|
+
onError: o = x,
|
|
553
|
+
onSuccess: u = x,
|
|
554
|
+
resetOnExecute: s = !0,
|
|
555
|
+
shallow: a = !0,
|
|
556
|
+
throwError: d
|
|
557
|
+
} = r ?? {}, m = a ? C(t) : R(t), l = C(!1), p = C(!1), y = C(void 0);
|
|
558
|
+
async function v(f = 0, ...h) {
|
|
559
|
+
s && (m.value = t), y.value = void 0, l.value = !1, p.value = !0, f > 0 && await te(f);
|
|
560
|
+
const E = typeof e == "function" ? e(...h) : e;
|
|
561
|
+
try {
|
|
562
|
+
const g = await E;
|
|
563
|
+
m.value = g, l.value = !0, u(g);
|
|
564
|
+
} catch (g) {
|
|
565
|
+
if (y.value = g, o(g), d)
|
|
566
|
+
throw g;
|
|
567
|
+
} finally {
|
|
568
|
+
p.value = !1;
|
|
569
|
+
}
|
|
570
|
+
return m.value;
|
|
571
|
+
}
|
|
572
|
+
n && v(i);
|
|
573
|
+
const w = {
|
|
574
|
+
state: m,
|
|
575
|
+
isReady: l,
|
|
576
|
+
isLoading: p,
|
|
577
|
+
error: y,
|
|
578
|
+
execute: v
|
|
579
|
+
};
|
|
580
|
+
function c() {
|
|
581
|
+
return new Promise((f, h) => {
|
|
582
|
+
ht(p).toBe(!1).then(() => f(w)).catch(h);
|
|
583
|
+
});
|
|
584
|
+
}
|
|
585
|
+
return {
|
|
586
|
+
...w,
|
|
587
|
+
then(f, h) {
|
|
588
|
+
return c().then(f, h);
|
|
589
|
+
}
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
function Mt(e = {}) {
|
|
593
|
+
const { document: t = bt } = e;
|
|
594
|
+
if (!t)
|
|
595
|
+
return C("visible");
|
|
596
|
+
const r = C(t.visibilityState);
|
|
597
|
+
return D(t, "visibilitychange", () => {
|
|
598
|
+
r.value = t.visibilityState;
|
|
599
|
+
}, { passive: !0 }), r;
|
|
600
|
+
}
|
|
601
|
+
async function Tt(e) {
|
|
602
|
+
return new Promise((t, r) => {
|
|
603
|
+
const n = new Image(), { src: i, srcset: o, sizes: u, class: s, loading: a, crossorigin: d, referrerPolicy: m, width: l, height: p, decoding: y, fetchPriority: v, ismap: w, usemap: c } = e;
|
|
604
|
+
n.src = i, o != null && (n.srcset = o), u != null && (n.sizes = u), s != null && (n.className = s), a != null && (n.loading = a), d != null && (n.crossOrigin = d), m != null && (n.referrerPolicy = m), l != null && (n.width = l), p != null && (n.height = p), y != null && (n.decoding = y), v != null && (n.fetchPriority = v), w != null && (n.isMap = w), c != null && (n.useMap = c), n.onload = () => t(n), n.onerror = r;
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
function $t(e, t = {}) {
|
|
608
|
+
const r = wt(
|
|
609
|
+
() => Tt(A(e)),
|
|
610
|
+
void 0,
|
|
611
|
+
{
|
|
612
|
+
resetOnExecute: !0,
|
|
613
|
+
...t
|
|
614
|
+
}
|
|
615
|
+
);
|
|
616
|
+
return O(
|
|
617
|
+
() => A(e),
|
|
618
|
+
() => r.execute(t.delay),
|
|
619
|
+
{ deep: !0 }
|
|
620
|
+
), r;
|
|
621
|
+
}
|
|
622
|
+
function Ut(e = [], t = {}) {
|
|
623
|
+
const { delay: r = 0 } = t, n = R(!1), i = j(() => {
|
|
624
|
+
const s = I(e);
|
|
625
|
+
return Array.isArray(s) ? s.map((a) => I(a)).some(Boolean) : s;
|
|
626
|
+
}), { start: o, stop: u } = vt(() => {
|
|
627
|
+
n.value = !0;
|
|
628
|
+
}, r);
|
|
629
|
+
return O(
|
|
630
|
+
i,
|
|
631
|
+
(s) => {
|
|
632
|
+
if (s)
|
|
633
|
+
return o();
|
|
634
|
+
u(), n.value = !1;
|
|
635
|
+
},
|
|
636
|
+
{ immediate: !0, deep: !0 }
|
|
637
|
+
), n;
|
|
638
|
+
}
|
|
639
|
+
/*! *****************************************************************************
|
|
640
|
+
Copyright (c) Microsoft Corporation.
|
|
641
|
+
|
|
642
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
643
|
+
purpose with or without fee is hereby granted.
|
|
644
|
+
|
|
645
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
646
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
647
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
648
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
649
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
650
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
651
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
652
|
+
***************************************************************************** */
|
|
653
|
+
function Y(e, t) {
|
|
654
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
655
|
+
if (!r) return e;
|
|
656
|
+
var n, i, o = r.call(e), u = [];
|
|
657
|
+
try {
|
|
658
|
+
for (; (t === void 0 || t-- > 0) && !(n = o.next()).done; ) u.push(n.value);
|
|
659
|
+
} catch (s) {
|
|
660
|
+
i = { error: s };
|
|
661
|
+
} finally {
|
|
662
|
+
try {
|
|
663
|
+
n && !n.done && (r = o.return) && r.call(o);
|
|
664
|
+
} finally {
|
|
665
|
+
if (i) throw i.error;
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
return u;
|
|
669
|
+
}
|
|
670
|
+
var le;
|
|
671
|
+
(function(e) {
|
|
672
|
+
e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped";
|
|
673
|
+
})(le || (le = {}));
|
|
674
|
+
var At = { type: "xstate.init" };
|
|
675
|
+
function U(e) {
|
|
676
|
+
return e === void 0 ? [] : [].concat(e);
|
|
677
|
+
}
|
|
678
|
+
function fe(e, t) {
|
|
679
|
+
return typeof (e = typeof e == "string" && t && t[e] ? t[e] : e) == "string" ? { type: e } : typeof e == "function" ? { type: e.name, exec: e } : e;
|
|
680
|
+
}
|
|
681
|
+
function re(e) {
|
|
682
|
+
return function(t) {
|
|
683
|
+
return e === t;
|
|
684
|
+
};
|
|
685
|
+
}
|
|
686
|
+
function Et(e) {
|
|
687
|
+
return typeof e == "string" ? { type: e } : e;
|
|
688
|
+
}
|
|
689
|
+
function de(e, t) {
|
|
690
|
+
return { value: e, context: t, actions: [], changed: !1, matches: re(e) };
|
|
691
|
+
}
|
|
692
|
+
function pe(e, t, r) {
|
|
693
|
+
var n = t, i = !1;
|
|
694
|
+
return [e.filter(function(o) {
|
|
695
|
+
if (o.type === "xstate.assign") {
|
|
696
|
+
i = !0;
|
|
697
|
+
var u = Object.assign({}, n);
|
|
698
|
+
return typeof o.assignment == "function" ? u = o.assignment(n, r) : Object.keys(o.assignment).forEach(function(s) {
|
|
699
|
+
u[s] = typeof o.assignment[s] == "function" ? o.assignment[s](n, r) : o.assignment[s];
|
|
700
|
+
}), n = u, !1;
|
|
701
|
+
}
|
|
702
|
+
return !0;
|
|
703
|
+
}), n, i];
|
|
704
|
+
}
|
|
705
|
+
function It(e, t) {
|
|
706
|
+
t === void 0 && (t = {});
|
|
707
|
+
var r = Y(pe(U(e.states[e.initial].entry).map(function(u) {
|
|
708
|
+
return fe(u, t.actions);
|
|
709
|
+
}), e.context, At), 2), n = r[0], i = r[1], o = { config: e, _options: t, initialState: { value: e.initial, actions: n, context: i, matches: re(e.initial) }, transition: function(u, s) {
|
|
710
|
+
var a, d, m = typeof u == "string" ? { value: u, context: e.context } : u, l = m.value, p = m.context, y = Et(s), v = e.states[l];
|
|
711
|
+
if (v.on) {
|
|
712
|
+
var w = U(v.on[y.type]);
|
|
713
|
+
"*" in v.on && w.push.apply(w, function(b, S, Q) {
|
|
714
|
+
if (arguments.length === 2) for (var P, k = 0, je = S.length; k < je; k++) !P && k in S || (P || (P = Array.prototype.slice.call(S, 0, k)), P[k] = S[k]);
|
|
715
|
+
return b.concat(P || Array.prototype.slice.call(S));
|
|
716
|
+
}([], Y(U(v.on["*"])), !1));
|
|
717
|
+
try {
|
|
718
|
+
for (var c = function(b) {
|
|
719
|
+
var S = typeof Symbol == "function" && Symbol.iterator, Q = S && b[S], P = 0;
|
|
720
|
+
if (Q) return Q.call(b);
|
|
721
|
+
if (b && typeof b.length == "number") return { next: function() {
|
|
722
|
+
return b && P >= b.length && (b = void 0), { value: b && b[P++], done: !b };
|
|
723
|
+
} };
|
|
724
|
+
throw new TypeError(S ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
725
|
+
}(w), f = c.next(); !f.done; f = c.next()) {
|
|
726
|
+
var h = f.value;
|
|
727
|
+
if (h === void 0) return de(l, p);
|
|
728
|
+
var E = typeof h == "string" ? { target: h } : h, g = E.target, L = E.actions, W = L === void 0 ? [] : L, ie = E.cond, Oe = ie === void 0 ? function() {
|
|
729
|
+
return !0;
|
|
730
|
+
} : ie, Se = g === void 0, xe = g ?? l, Pe = e.states[xe];
|
|
731
|
+
if (Oe(p, y)) {
|
|
732
|
+
var J = Y(pe((Se ? U(W) : [].concat(v.exit, W, Pe.entry).filter(function(b) {
|
|
733
|
+
return b;
|
|
734
|
+
})).map(function(b) {
|
|
735
|
+
return fe(b, o._options.actions);
|
|
736
|
+
}), p, y), 3), ae = J[0], Re = J[1], Ce = J[2], se = g ?? l;
|
|
737
|
+
return { value: se, context: Re, actions: ae, changed: g !== l || ae.length > 0 || Ce, matches: re(se) };
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
} catch (b) {
|
|
741
|
+
a = { error: b };
|
|
742
|
+
} finally {
|
|
743
|
+
try {
|
|
744
|
+
f && !f.done && (d = c.return) && d.call(c);
|
|
745
|
+
} finally {
|
|
746
|
+
if (a) throw a.error;
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
return de(l, p);
|
|
751
|
+
} };
|
|
752
|
+
return o;
|
|
753
|
+
}
|
|
754
|
+
const Ot = It({
|
|
755
|
+
id: "sort",
|
|
756
|
+
initial: $,
|
|
757
|
+
states: {
|
|
758
|
+
[$]: {
|
|
759
|
+
on: {
|
|
760
|
+
DIRECTION1: V,
|
|
761
|
+
DIRECTION2: z
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
[V]: {
|
|
765
|
+
on: {
|
|
766
|
+
DIRECTION1: z,
|
|
767
|
+
DIRECTION2: $
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
[z]: {
|
|
771
|
+
on: {
|
|
772
|
+
DIRECTION1: $,
|
|
773
|
+
DIRECTION2: V
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
});
|
|
778
|
+
function St(e, t) {
|
|
779
|
+
const r = t === z ? "DIRECTION2" : "DIRECTION1";
|
|
780
|
+
return Ot.transition(e, r).value;
|
|
781
|
+
}
|
|
782
|
+
function zt(e = {}) {
|
|
783
|
+
const { sortTarget: t = null, orders: r = [] } = e, n = me({ sortTarget: t, orders: r });
|
|
784
|
+
return {
|
|
785
|
+
sort: n,
|
|
786
|
+
change: ({ target: o, orders: u }) => {
|
|
787
|
+
if (n.sortTarget !== o) {
|
|
788
|
+
n.sortTarget = o, n.orders = u;
|
|
789
|
+
return;
|
|
790
|
+
}
|
|
791
|
+
const s = u.map((a, d) => ({
|
|
792
|
+
...a,
|
|
793
|
+
direction: St(n.orders[d].direction, a.direction)
|
|
794
|
+
}));
|
|
795
|
+
n.sortTarget = o, n.orders = s;
|
|
796
|
+
}
|
|
797
|
+
};
|
|
798
|
+
}
|
|
799
|
+
export {
|
|
800
|
+
Dt as a,
|
|
801
|
+
Lt as b,
|
|
802
|
+
Nt as c,
|
|
803
|
+
jt as d,
|
|
804
|
+
rt as e,
|
|
805
|
+
Ut as f,
|
|
806
|
+
zt as g,
|
|
807
|
+
$t as h,
|
|
808
|
+
kt as i,
|
|
809
|
+
Ve as j,
|
|
810
|
+
Ft as k,
|
|
811
|
+
_t as l,
|
|
812
|
+
Ze as m,
|
|
813
|
+
x as n,
|
|
814
|
+
Wt as o,
|
|
815
|
+
_ as p,
|
|
816
|
+
wt as q,
|
|
817
|
+
Mt as r,
|
|
818
|
+
Ct as u,
|
|
819
|
+
at as v,
|
|
820
|
+
Bt as w
|
|
821
|
+
};
|