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