@mjsz-vbr-elements/core 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AdditionalStandingsText-DlP-tdH1.js → AdditionalStandingsText-Cj3Q7dcW.js} +303 -288
- package/dist/columns.js +1 -1
- package/dist/components.js +2 -2
- package/dist/composables.js +10 -16
- package/dist/constants.js +1 -1
- package/dist/{convert-BUiKPu9l.js → convert-PUna7fen.js} +29 -33
- package/dist/{datetime-Df9jKQTx.js → datetime-BzdN4htO.js} +318 -349
- 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 +8 -11
- package/dist/{useAdditionalText-Bi2CUi4-.js → useAdditionalText-D1LaWU-i.js} +216 -229
- package/dist/utils.js +4 -4
- package/package.json +10 -10
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.4.
|
|
3
|
+
* version: v2.4.1 - 10/08/2024, 13:04:39
|
|
4
4
|
* (c) 2024
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
|
-
import { ref as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { SORT_STATE_ORIGINAL as B, SORT_STATE_DESCEND as H, SORT_STATE_ASCEND as
|
|
11
|
-
|
|
12
|
-
const Ae = (t) => (zt.VITE_CSS_CLASS_PREFIX || "mjsz-vbr-") + t;
|
|
8
|
+
import { ref as A, readonly as ut, watch as S, nextTick as lt, getCurrentScope as St, onScopeDispose as Ct, unref as I, isRef as Pt, shallowRef as nt, computed as j, reactive as ft, defineComponent as Rt, h as jt, provide as dt, inject as pt, onErrorCaptured as _t } from "vue";
|
|
9
|
+
import { _ as U, w as Lt, x as Nt, z as Dt, A as Ft, B as kt, C as Bt, D, E as F, F as Wt, u as zt, G as Mt, H as Ut, I as rt } from "./datetime-BzdN4htO.js";
|
|
10
|
+
import { SORT_STATE_ORIGINAL as B, SORT_STATE_DESCEND as H, SORT_STATE_ASCEND as z } from "./constants.js";
|
|
11
|
+
const Ae = (t) => "mjsz-vbr-" + t;
|
|
13
12
|
function mt(t) {
|
|
14
|
-
return
|
|
13
|
+
return St() ? (Ct(t), !0) : !1;
|
|
15
14
|
}
|
|
16
15
|
function O(t) {
|
|
17
16
|
return typeof t == "function" ? t() : I(t);
|
|
18
17
|
}
|
|
19
|
-
const
|
|
18
|
+
const G = typeof window < "u" && typeof document < "u";
|
|
20
19
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
21
|
-
const $t = Object.prototype.toString, Gt = (t) => $t.call(t) === "[object Object]",
|
|
22
|
-
},
|
|
23
|
-
function
|
|
20
|
+
const $t = Object.prototype.toString, Gt = (t) => $t.call(t) === "[object Object]", R = () => {
|
|
21
|
+
}, Vt = /* @__PURE__ */ qt();
|
|
22
|
+
function qt() {
|
|
24
23
|
var t, e;
|
|
25
|
-
return
|
|
24
|
+
return G && ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
26
25
|
}
|
|
27
|
-
function
|
|
26
|
+
function Ht(t, e) {
|
|
28
27
|
function r(...n) {
|
|
29
28
|
return new Promise((i, o) => {
|
|
30
29
|
Promise.resolve(t(() => e.apply(this, n), { fn: e, thisArg: this, args: n })).then(i).catch(o);
|
|
@@ -32,9 +31,9 @@ function Kt(t, e) {
|
|
|
32
31
|
}
|
|
33
32
|
return r;
|
|
34
33
|
}
|
|
35
|
-
const
|
|
36
|
-
function
|
|
37
|
-
const e =
|
|
34
|
+
const yt = (t) => t();
|
|
35
|
+
function Kt(t = yt) {
|
|
36
|
+
const e = A(!0);
|
|
38
37
|
function r() {
|
|
39
38
|
e.value = !1;
|
|
40
39
|
}
|
|
@@ -46,19 +45,19 @@ function Xt(t = vt) {
|
|
|
46
45
|
};
|
|
47
46
|
return { isActive: ut(e), pause: r, resume: n, eventFilter: i };
|
|
48
47
|
}
|
|
49
|
-
function
|
|
48
|
+
function J(t, e = !1, r = "Timeout") {
|
|
50
49
|
return new Promise((n, i) => {
|
|
51
50
|
setTimeout(e ? () => i(r) : n, t);
|
|
52
51
|
});
|
|
53
52
|
}
|
|
54
|
-
function
|
|
53
|
+
function Jt(t, e, r = {}) {
|
|
55
54
|
const {
|
|
56
|
-
eventFilter: n =
|
|
55
|
+
eventFilter: n = yt,
|
|
57
56
|
...i
|
|
58
57
|
} = r;
|
|
59
|
-
return
|
|
58
|
+
return S(
|
|
60
59
|
t,
|
|
61
|
-
|
|
60
|
+
Ht(
|
|
62
61
|
n,
|
|
63
62
|
e
|
|
64
63
|
),
|
|
@@ -69,8 +68,8 @@ function Te(t, e, r = {}) {
|
|
|
69
68
|
const {
|
|
70
69
|
eventFilter: n,
|
|
71
70
|
...i
|
|
72
|
-
} = r, { eventFilter: o, pause: s, resume: c, isActive: u } =
|
|
73
|
-
return { stop:
|
|
71
|
+
} = r, { eventFilter: o, pause: s, resume: c, isActive: u } = Kt(n);
|
|
72
|
+
return { stop: Jt(
|
|
74
73
|
t,
|
|
75
74
|
e,
|
|
76
75
|
{
|
|
@@ -79,14 +78,14 @@ function Te(t, e, r = {}) {
|
|
|
79
78
|
}
|
|
80
79
|
), pause: s, resume: c, isActive: u };
|
|
81
80
|
}
|
|
82
|
-
function
|
|
83
|
-
function r(l, { flush: a = "sync", deep: f = !1, timeout: d, throwOnTimeout:
|
|
81
|
+
function Q(t, e = !1) {
|
|
82
|
+
function r(l, { flush: a = "sync", deep: f = !1, timeout: d, throwOnTimeout: T } = {}) {
|
|
84
83
|
let w = null;
|
|
85
|
-
const
|
|
86
|
-
w =
|
|
84
|
+
const b = [new Promise((E) => {
|
|
85
|
+
w = S(
|
|
87
86
|
t,
|
|
88
|
-
(
|
|
89
|
-
l(
|
|
87
|
+
(y) => {
|
|
88
|
+
l(y) !== e && (w == null || w(), E(y));
|
|
90
89
|
},
|
|
91
90
|
{
|
|
92
91
|
flush: a,
|
|
@@ -95,20 +94,20 @@ function Y(t, e = !1) {
|
|
|
95
94
|
}
|
|
96
95
|
);
|
|
97
96
|
})];
|
|
98
|
-
return d != null &&
|
|
99
|
-
|
|
100
|
-
), Promise.race(
|
|
97
|
+
return d != null && b.push(
|
|
98
|
+
J(d, T).then(() => O(t)).finally(() => w == null ? void 0 : w())
|
|
99
|
+
), Promise.race(b);
|
|
101
100
|
}
|
|
102
101
|
function n(l, a) {
|
|
103
|
-
if (!
|
|
104
|
-
return r((
|
|
105
|
-
const { flush: f = "sync", deep: d = !1, timeout:
|
|
106
|
-
let
|
|
107
|
-
const
|
|
108
|
-
|
|
102
|
+
if (!Pt(l))
|
|
103
|
+
return r((y) => y === l, a);
|
|
104
|
+
const { flush: f = "sync", deep: d = !1, timeout: T, throwOnTimeout: w } = a ?? {};
|
|
105
|
+
let v = null;
|
|
106
|
+
const E = [new Promise((y) => {
|
|
107
|
+
v = S(
|
|
109
108
|
[t, l],
|
|
110
|
-
([
|
|
111
|
-
e !== (
|
|
109
|
+
([_, k]) => {
|
|
110
|
+
e !== (_ === k) && (v == null || v(), y(_));
|
|
112
111
|
},
|
|
113
112
|
{
|
|
114
113
|
flush: f,
|
|
@@ -117,9 +116,9 @@ function Y(t, e = !1) {
|
|
|
117
116
|
}
|
|
118
117
|
);
|
|
119
118
|
})];
|
|
120
|
-
return
|
|
121
|
-
|
|
122
|
-
), Promise.race(
|
|
119
|
+
return T != null && E.push(
|
|
120
|
+
J(T, w).then(() => O(t)).finally(() => (v == null || v(), O(t)))
|
|
121
|
+
), Promise.race(E);
|
|
123
122
|
}
|
|
124
123
|
function i(l) {
|
|
125
124
|
return r((a) => !!a, l);
|
|
@@ -152,7 +151,7 @@ function Y(t, e = !1) {
|
|
|
152
151
|
changed: p,
|
|
153
152
|
changedTimes: m,
|
|
154
153
|
get not() {
|
|
155
|
-
return
|
|
154
|
+
return Q(t, !e);
|
|
156
155
|
}
|
|
157
156
|
} : {
|
|
158
157
|
toMatch: r,
|
|
@@ -164,17 +163,17 @@ function Y(t, e = !1) {
|
|
|
164
163
|
changed: p,
|
|
165
164
|
changedTimes: m,
|
|
166
165
|
get not() {
|
|
167
|
-
return
|
|
166
|
+
return Q(t, !e);
|
|
168
167
|
}
|
|
169
168
|
};
|
|
170
169
|
}
|
|
171
|
-
function
|
|
172
|
-
return
|
|
170
|
+
function Qt(t) {
|
|
171
|
+
return Q(t);
|
|
173
172
|
}
|
|
174
|
-
function
|
|
173
|
+
function Xt(t, e, r = {}) {
|
|
175
174
|
const {
|
|
176
175
|
immediate: n = !0
|
|
177
|
-
} = r, i =
|
|
176
|
+
} = r, i = A(!1);
|
|
178
177
|
let o = null;
|
|
179
178
|
function s() {
|
|
180
179
|
o && (clearTimeout(o), o = null);
|
|
@@ -187,18 +186,18 @@ function Qt(t, e, r = {}) {
|
|
|
187
186
|
i.value = !1, o = null, t(...p);
|
|
188
187
|
}, O(e));
|
|
189
188
|
}
|
|
190
|
-
return n && (i.value = !0,
|
|
189
|
+
return n && (i.value = !0, G && u()), mt(c), {
|
|
191
190
|
isPending: ut(i),
|
|
192
191
|
start: u,
|
|
193
192
|
stop: c
|
|
194
193
|
};
|
|
195
194
|
}
|
|
196
|
-
function
|
|
197
|
-
const n =
|
|
195
|
+
function Yt(t, e, r) {
|
|
196
|
+
const n = S(t, (...i) => (lt(() => n()), e(...i)), r);
|
|
198
197
|
return n;
|
|
199
198
|
}
|
|
200
|
-
function
|
|
201
|
-
const n =
|
|
199
|
+
function Ee(t, e, r) {
|
|
200
|
+
const n = S(
|
|
202
201
|
t,
|
|
203
202
|
(i, o, s) => {
|
|
204
203
|
i && (r != null && r.once && lt(() => n()), e(i, o, s));
|
|
@@ -215,15 +214,15 @@ function N(t) {
|
|
|
215
214
|
const r = O(t);
|
|
216
215
|
return (e = r == null ? void 0 : r.$el) != null ? e : r;
|
|
217
216
|
}
|
|
218
|
-
const
|
|
219
|
-
function
|
|
217
|
+
const vt = G ? window : void 0, Zt = G ? window.document : void 0;
|
|
218
|
+
function M(...t) {
|
|
220
219
|
let e, r, n, i;
|
|
221
|
-
if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([r, n, i] = t, e =
|
|
222
|
-
return
|
|
220
|
+
if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([r, n, i] = t, e = vt) : [e, r, n, i] = t, !e)
|
|
221
|
+
return R;
|
|
223
222
|
Array.isArray(r) || (r = [r]), Array.isArray(n) || (n = [n]);
|
|
224
223
|
const o = [], s = () => {
|
|
225
224
|
o.forEach((m) => m()), o.length = 0;
|
|
226
|
-
}, c = (m, l, a, f) => (m.addEventListener(l, a, f), () => m.removeEventListener(l, a, f)), u =
|
|
225
|
+
}, c = (m, l, a, f) => (m.addEventListener(l, a, f), () => m.removeEventListener(l, a, f)), u = S(
|
|
227
226
|
() => [N(e), O(i)],
|
|
228
227
|
([m, l]) => {
|
|
229
228
|
if (s(), !m)
|
|
@@ -240,11 +239,11 @@ function W(...t) {
|
|
|
240
239
|
return mt(p), p;
|
|
241
240
|
}
|
|
242
241
|
let ot = !1;
|
|
243
|
-
function
|
|
244
|
-
const { window: n =
|
|
242
|
+
function Ie(t, e, r = {}) {
|
|
243
|
+
const { window: n = vt, ignore: i = [], capture: o = !0, detectIframe: s = !1 } = r;
|
|
245
244
|
if (!n)
|
|
246
|
-
return
|
|
247
|
-
|
|
245
|
+
return R;
|
|
246
|
+
Vt && !ot && (ot = !0, Array.from(n.document.body.children).forEach((a) => a.addEventListener("click", R)), n.document.documentElement.addEventListener("click", R));
|
|
248
247
|
let c = !0;
|
|
249
248
|
const u = (a) => i.some((f) => {
|
|
250
249
|
if (typeof f == "string")
|
|
@@ -254,7 +253,7 @@ function Oe(t, e, r = {}) {
|
|
|
254
253
|
return d && (a.target === d || a.composedPath().includes(d));
|
|
255
254
|
}
|
|
256
255
|
}), m = [
|
|
257
|
-
|
|
256
|
+
M(n, "click", (a) => {
|
|
258
257
|
const f = N(t);
|
|
259
258
|
if (!(!f || f === a.target || a.composedPath().includes(f))) {
|
|
260
259
|
if (a.detail === 0 && (c = !u(a)), !c) {
|
|
@@ -264,11 +263,11 @@ function Oe(t, e, r = {}) {
|
|
|
264
263
|
e(a);
|
|
265
264
|
}
|
|
266
265
|
}, { passive: !0, capture: o }),
|
|
267
|
-
|
|
266
|
+
M(n, "pointerdown", (a) => {
|
|
268
267
|
const f = N(t);
|
|
269
268
|
c = !u(a) && !!(f && !a.composedPath().includes(f));
|
|
270
269
|
}, { passive: !0 }),
|
|
271
|
-
s &&
|
|
270
|
+
s && M(n, "blur", (a) => {
|
|
272
271
|
setTimeout(() => {
|
|
273
272
|
var f;
|
|
274
273
|
const d = N(t);
|
|
@@ -278,32 +277,32 @@ function Oe(t, e, r = {}) {
|
|
|
278
277
|
].filter(Boolean);
|
|
279
278
|
return () => m.forEach((a) => a());
|
|
280
279
|
}
|
|
281
|
-
function
|
|
280
|
+
function te(t, e, r) {
|
|
282
281
|
const {
|
|
283
282
|
immediate: n = !0,
|
|
284
283
|
delay: i = 0,
|
|
285
|
-
onError: o =
|
|
286
|
-
onSuccess: s =
|
|
284
|
+
onError: o = R,
|
|
285
|
+
onSuccess: s = R,
|
|
287
286
|
resetOnExecute: c = !0,
|
|
288
287
|
shallow: u = !0,
|
|
289
288
|
throwError: p
|
|
290
|
-
} = r ?? {}, m = u ? nt(e) :
|
|
291
|
-
async function d(
|
|
292
|
-
c && (m.value = e), f.value = void 0, l.value = !1, a.value = !0,
|
|
293
|
-
const
|
|
289
|
+
} = r ?? {}, m = u ? nt(e) : A(e), l = A(!1), a = A(!1), f = nt(void 0);
|
|
290
|
+
async function d(v = 0, ...b) {
|
|
291
|
+
c && (m.value = e), f.value = void 0, l.value = !1, a.value = !0, v > 0 && await J(v);
|
|
292
|
+
const E = typeof t == "function" ? t(...b) : t;
|
|
294
293
|
try {
|
|
295
|
-
const
|
|
296
|
-
m.value =
|
|
297
|
-
} catch (
|
|
298
|
-
if (f.value =
|
|
299
|
-
throw
|
|
294
|
+
const y = await E;
|
|
295
|
+
m.value = y, l.value = !0, s(y);
|
|
296
|
+
} catch (y) {
|
|
297
|
+
if (f.value = y, o(y), p)
|
|
298
|
+
throw y;
|
|
300
299
|
} finally {
|
|
301
300
|
a.value = !1;
|
|
302
301
|
}
|
|
303
302
|
return m.value;
|
|
304
303
|
}
|
|
305
304
|
n && d(i);
|
|
306
|
-
const
|
|
305
|
+
const T = {
|
|
307
306
|
state: m,
|
|
308
307
|
isReady: l,
|
|
309
308
|
isLoading: a,
|
|
@@ -311,146 +310,145 @@ function ee(t, e, r) {
|
|
|
311
310
|
execute: d
|
|
312
311
|
};
|
|
313
312
|
function w() {
|
|
314
|
-
return new Promise((
|
|
315
|
-
|
|
313
|
+
return new Promise((v, b) => {
|
|
314
|
+
Qt(a).toBe(!1).then(() => v(T)).catch(b);
|
|
316
315
|
});
|
|
317
316
|
}
|
|
318
317
|
return {
|
|
319
|
-
...
|
|
320
|
-
then(
|
|
321
|
-
return w().then(
|
|
318
|
+
...T,
|
|
319
|
+
then(v, b) {
|
|
320
|
+
return w().then(v, b);
|
|
322
321
|
}
|
|
323
322
|
};
|
|
324
323
|
}
|
|
325
|
-
function
|
|
326
|
-
const { document: e =
|
|
324
|
+
function Oe(t = {}) {
|
|
325
|
+
const { document: e = Zt } = t;
|
|
327
326
|
if (!e)
|
|
328
|
-
return
|
|
329
|
-
const r =
|
|
330
|
-
return
|
|
327
|
+
return A("visible");
|
|
328
|
+
const r = A(e.visibilityState);
|
|
329
|
+
return M(e, "visibilitychange", () => {
|
|
331
330
|
r.value = e.visibilityState;
|
|
332
331
|
}), r;
|
|
333
332
|
}
|
|
334
|
-
async function
|
|
333
|
+
async function ee(t) {
|
|
335
334
|
return new Promise((e, r) => {
|
|
336
335
|
const n = new Image(), { src: i, srcset: o, sizes: s, class: c, loading: u, crossorigin: p, referrerPolicy: m } = t;
|
|
337
336
|
n.src = i, o && (n.srcset = o), s && (n.sizes = s), c && (n.className = c), u && (n.loading = u), p && (n.crossOrigin = p), m && (n.referrerPolicy = m), n.onload = () => e(n), n.onerror = r;
|
|
338
337
|
});
|
|
339
338
|
}
|
|
340
|
-
function
|
|
341
|
-
const r =
|
|
342
|
-
() =>
|
|
339
|
+
function xe(t, e = {}) {
|
|
340
|
+
const r = te(
|
|
341
|
+
() => ee(O(t)),
|
|
343
342
|
void 0,
|
|
344
343
|
{
|
|
345
344
|
resetOnExecute: !0,
|
|
346
345
|
...e
|
|
347
346
|
}
|
|
348
347
|
);
|
|
349
|
-
return
|
|
348
|
+
return S(
|
|
350
349
|
() => O(t),
|
|
351
350
|
() => r.execute(e.delay),
|
|
352
351
|
{ deep: !0 }
|
|
353
352
|
), r;
|
|
354
353
|
}
|
|
355
|
-
function
|
|
356
|
-
const { delay: r = 0 } = e, n =
|
|
354
|
+
function Se(t = [], e = {}) {
|
|
355
|
+
const { delay: r = 0 } = e, n = A(!1), i = j(() => {
|
|
357
356
|
const c = I(t);
|
|
358
357
|
return Array.isArray(c) ? c.map((u) => I(u)).some(Boolean) : c;
|
|
359
|
-
}), { start: o, stop: s } =
|
|
358
|
+
}), { start: o, stop: s } = Xt(() => {
|
|
360
359
|
n.value = !0;
|
|
361
360
|
}, r);
|
|
362
|
-
return
|
|
361
|
+
return S(
|
|
363
362
|
i,
|
|
364
363
|
(c) => {
|
|
365
|
-
if (c)
|
|
366
|
-
return o();
|
|
364
|
+
if (c) return o();
|
|
367
365
|
s(), n.value = !1;
|
|
368
366
|
},
|
|
369
367
|
{ immediate: !0, deep: !0 }
|
|
370
368
|
), n;
|
|
371
369
|
}
|
|
372
|
-
function
|
|
370
|
+
function ne(t) {
|
|
373
371
|
var e = Object.prototype.toString.call(t);
|
|
374
372
|
return e === "[object Uint8ClampedArray]" || e === "[object Int8Array]" || e === "[object Uint8Array]" || e === "[object Int16Array]" || e === "[object Uint16Array]" || e === "[object Int32Array]" || e === "[object Uint32Array]" || e === "[object Float32Array]" || e === "[object Float64Array]" || e === "[object BigInt64Array]" || e === "[object BigUint64Array]";
|
|
375
373
|
}
|
|
376
|
-
var
|
|
377
|
-
return e != null && typeof e["fantasy-land/empty"] == "function" ? e["fantasy-land/empty"]() : e != null && e.constructor != null && typeof e.constructor["fantasy-land/empty"] == "function" ? e.constructor["fantasy-land/empty"]() : e != null && typeof e.empty == "function" ? e.empty() : e != null && e.constructor != null && typeof e.constructor.empty == "function" ? e.constructor.empty() :
|
|
374
|
+
var re = /* @__PURE__ */ U(function(e) {
|
|
375
|
+
return e != null && typeof e["fantasy-land/empty"] == "function" ? e["fantasy-land/empty"]() : e != null && e.constructor != null && typeof e.constructor["fantasy-land/empty"] == "function" ? e.constructor["fantasy-land/empty"]() : e != null && typeof e.empty == "function" ? e.empty() : e != null && e.constructor != null && typeof e.constructor.empty == "function" ? e.constructor.empty() : Lt(e) ? [] : Nt(e) ? "" : Dt(e) ? {} : Ft(e) ? /* @__PURE__ */ function() {
|
|
378
376
|
return arguments;
|
|
379
|
-
}() :
|
|
380
|
-
}),
|
|
381
|
-
return e != null && kt(e,
|
|
382
|
-
}),
|
|
377
|
+
}() : ne(e) ? e.constructor.from("") : void 0;
|
|
378
|
+
}), oe = /* @__PURE__ */ U(function(e) {
|
|
379
|
+
return e != null && kt(e, re(e));
|
|
380
|
+
}), ie = /* @__PURE__ */ Bt(function(e, r) {
|
|
383
381
|
for (var n = {}, i = {}, o = 0, s = e.length; o < s; )
|
|
384
382
|
i[e[o]] = 1, o += 1;
|
|
385
383
|
for (var c in r)
|
|
386
384
|
i.hasOwnProperty(c) || (n[c] = r[c]);
|
|
387
385
|
return n;
|
|
388
|
-
}),
|
|
389
|
-
\v\f\r \u2028\u2029\uFEFF`,
|
|
390
|
-
var r = new RegExp("^[" +
|
|
386
|
+
}), L = `
|
|
387
|
+
\v\f\r \u2028\u2029\uFEFF`, ae = "", se = typeof String.prototype.trim == "function", $ = !se || /* @__PURE__ */ L.trim() || !/* @__PURE__ */ ae.trim() ? /* @__PURE__ */ U(function(e) {
|
|
388
|
+
var r = new RegExp("^[" + L + "][" + L + "]*"), n = new RegExp("[" + L + "][" + L + "]*$");
|
|
391
389
|
return e.replace(r, "").replace(n, "");
|
|
392
|
-
}) : /* @__PURE__ */
|
|
390
|
+
}) : /* @__PURE__ */ U(function(e) {
|
|
393
391
|
return e.trim();
|
|
394
392
|
});
|
|
395
|
-
const
|
|
393
|
+
const gt = Symbol("I18nContext"), h = ft({
|
|
396
394
|
messages: {},
|
|
397
395
|
locale: "",
|
|
398
396
|
fallbackLocale: ""
|
|
399
397
|
}), Ce = ({ messages: t = {}, locale: e = "", fallbackLocale: r = "" }) => {
|
|
400
|
-
|
|
398
|
+
h.messages = t, h.locale = e, h.fallbackLocale = r;
|
|
401
399
|
const n = (u, p = {}) => {
|
|
402
|
-
const m = !
|
|
403
|
-
return
|
|
404
|
-
const f =
|
|
405
|
-
return m ?
|
|
400
|
+
const m = !oe(p), l = D($, F(".", u));
|
|
401
|
+
return j(() => {
|
|
402
|
+
const f = ht(l);
|
|
403
|
+
return m ? le(f, p) : f;
|
|
406
404
|
}).value;
|
|
407
405
|
}, i = (u) => {
|
|
408
|
-
const p = D(
|
|
409
|
-
return !!
|
|
406
|
+
const p = D($, F(".", u));
|
|
407
|
+
return !!X(h.locale, p, h.messages);
|
|
410
408
|
}, o = (u) => {
|
|
411
|
-
|
|
409
|
+
h.locale = u;
|
|
412
410
|
}, c = {
|
|
413
|
-
locale:
|
|
411
|
+
locale: j({
|
|
414
412
|
get() {
|
|
415
|
-
return
|
|
413
|
+
return h.locale;
|
|
416
414
|
},
|
|
417
415
|
set(u) {
|
|
418
|
-
|
|
416
|
+
h.locale = u;
|
|
419
417
|
}
|
|
420
418
|
}),
|
|
421
419
|
setLocale: o,
|
|
422
420
|
translate: n,
|
|
423
421
|
hasTranslation: i
|
|
424
422
|
};
|
|
425
|
-
return dt(
|
|
423
|
+
return dt(gt, c), {
|
|
426
424
|
translate: n
|
|
427
425
|
};
|
|
428
|
-
},
|
|
429
|
-
t && (
|
|
430
|
-
const e =
|
|
426
|
+
}, ce = (t) => {
|
|
427
|
+
t && (h.messages = t.messages, h.locale = t.locale, h.fallbackLocale = t.fallbackLocale);
|
|
428
|
+
const e = ue();
|
|
431
429
|
return {
|
|
432
430
|
locale: e.locale,
|
|
433
431
|
t: e.translate,
|
|
434
432
|
setLocale: e.setLocale,
|
|
435
433
|
hasTranslation: e.hasTranslation
|
|
436
434
|
};
|
|
437
|
-
},
|
|
438
|
-
const t = pt(
|
|
435
|
+
}, ue = () => {
|
|
436
|
+
const t = pt(gt, null);
|
|
439
437
|
if (t === null)
|
|
440
438
|
throw new Error("Privider is missing a parent component.");
|
|
441
439
|
return t;
|
|
442
|
-
},
|
|
443
|
-
let e =
|
|
444
|
-
return !e &&
|
|
440
|
+
}, ht = (t = []) => {
|
|
441
|
+
let e = X(h.locale, t, h.messages);
|
|
442
|
+
return !e && h.fallbackLocale && (e = X(h.fallbackLocale, t, h.messages)), e || t.join(".");
|
|
445
443
|
};
|
|
446
|
-
function
|
|
447
|
-
return
|
|
444
|
+
function X(t, e, r) {
|
|
445
|
+
return Wt([t, ...e], r);
|
|
448
446
|
}
|
|
449
|
-
const
|
|
447
|
+
const le = function(t, e) {
|
|
450
448
|
return t.replace(/\{(\w+)\}/g, function(r, n) {
|
|
451
449
|
return e[n];
|
|
452
450
|
});
|
|
453
|
-
}, Pe =
|
|
451
|
+
}, Pe = Rt({
|
|
454
452
|
props: {
|
|
455
453
|
tag: {
|
|
456
454
|
type: String,
|
|
@@ -462,17 +460,17 @@ const fe = function(t, e) {
|
|
|
462
460
|
}
|
|
463
461
|
},
|
|
464
462
|
setup(t, { slots: e }) {
|
|
465
|
-
const r = D(
|
|
463
|
+
const r = D($, F(".", t.path)), n = ht(r), i = F(/{|}/, n), o = Object.keys(e).map((s) => {
|
|
466
464
|
const c = i.indexOf(s);
|
|
467
465
|
return c > -1 && (i[c] = e[s]()[0]), i;
|
|
468
466
|
});
|
|
469
|
-
return () =>
|
|
467
|
+
return () => jt(t.tag, o);
|
|
470
468
|
}
|
|
471
469
|
}), wt = Symbol("ErrorProviderContext"), Re = () => {
|
|
472
|
-
const t =
|
|
470
|
+
const t = A(""), e = A({}), r = (o) => {
|
|
473
471
|
console.error({ error: o }), t.value = o.message || o.error.message, e.value = {
|
|
474
472
|
message: o.message,
|
|
475
|
-
key: o.key ||
|
|
473
|
+
key: o.key || zt(o.message),
|
|
476
474
|
cause: o.cause
|
|
477
475
|
};
|
|
478
476
|
};
|
|
@@ -483,31 +481,31 @@ const fe = function(t, e) {
|
|
|
483
481
|
}
|
|
484
482
|
}), window.onerror = (o) => {
|
|
485
483
|
console.error("WINDOW_ONERROR:", o);
|
|
486
|
-
},
|
|
484
|
+
}, _t((o, s, c) => {
|
|
487
485
|
console.error("onErrorCaptured:", o, s, c);
|
|
488
486
|
}), {
|
|
489
|
-
hasError:
|
|
487
|
+
hasError: j(() => t.value.length > 0),
|
|
490
488
|
message: t,
|
|
491
489
|
error: e,
|
|
492
490
|
onError: r
|
|
493
491
|
};
|
|
494
|
-
},
|
|
495
|
-
const t =
|
|
492
|
+
}, je = () => {
|
|
493
|
+
const t = fe();
|
|
496
494
|
return {
|
|
497
495
|
onError: t.onError,
|
|
498
496
|
reset: t.reset
|
|
499
497
|
};
|
|
500
|
-
},
|
|
498
|
+
}, fe = () => {
|
|
501
499
|
const t = pt(wt, null);
|
|
502
500
|
if (t === null)
|
|
503
501
|
throw new Error("Privider is missing a parent component.");
|
|
504
502
|
return t;
|
|
505
|
-
},
|
|
506
|
-
const n =
|
|
503
|
+
}, _e = (t, e = "", r = {}) => {
|
|
504
|
+
const n = A(""), { t: i } = ce(), o = j(() => {
|
|
507
505
|
if (I(e))
|
|
508
506
|
try {
|
|
509
|
-
const u =
|
|
510
|
-
return
|
|
507
|
+
const u = de(I(t), I(e));
|
|
508
|
+
return ie(u, I(t));
|
|
511
509
|
} catch (u) {
|
|
512
510
|
n.value = u;
|
|
513
511
|
}
|
|
@@ -518,13 +516,12 @@ const fe = function(t, e) {
|
|
|
518
516
|
...u.tooltip && { tooltip: i(u.tooltip ?? "") }
|
|
519
517
|
});
|
|
520
518
|
return {
|
|
521
|
-
columns:
|
|
519
|
+
columns: j(() => D(s, o.value)),
|
|
522
520
|
error: n
|
|
523
521
|
};
|
|
524
|
-
},
|
|
525
|
-
const r = D(
|
|
526
|
-
if (r[0] === "")
|
|
527
|
-
return resolve([]);
|
|
522
|
+
}, de = (t, e = "") => {
|
|
523
|
+
const r = D($, F(",", e)), n = Mt(t);
|
|
524
|
+
if (r[0] === "") return resolve([]);
|
|
528
525
|
const i = r.findIndex((o) => !n.includes(o));
|
|
529
526
|
if (i > -1)
|
|
530
527
|
throw r[i];
|
|
@@ -546,20 +543,17 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
546
543
|
***************************************************************************** */
|
|
547
544
|
function K(t, e) {
|
|
548
545
|
var r = typeof Symbol == "function" && t[Symbol.iterator];
|
|
549
|
-
if (!r)
|
|
550
|
-
return t;
|
|
546
|
+
if (!r) return t;
|
|
551
547
|
var n, i, o = r.call(t), s = [];
|
|
552
548
|
try {
|
|
553
|
-
for (; (e === void 0 || e-- > 0) && !(n = o.next()).done; )
|
|
554
|
-
s.push(n.value);
|
|
549
|
+
for (; (e === void 0 || e-- > 0) && !(n = o.next()).done; ) s.push(n.value);
|
|
555
550
|
} catch (c) {
|
|
556
551
|
i = { error: c };
|
|
557
552
|
} finally {
|
|
558
553
|
try {
|
|
559
554
|
n && !n.done && (r = o.return) && r.call(o);
|
|
560
555
|
} finally {
|
|
561
|
-
if (i)
|
|
562
|
-
throw i.error;
|
|
556
|
+
if (i) throw i.error;
|
|
563
557
|
}
|
|
564
558
|
}
|
|
565
559
|
return s;
|
|
@@ -568,23 +562,23 @@ var it;
|
|
|
568
562
|
(function(t) {
|
|
569
563
|
t[t.NotStarted = 0] = "NotStarted", t[t.Running = 1] = "Running", t[t.Stopped = 2] = "Stopped";
|
|
570
564
|
})(it || (it = {}));
|
|
571
|
-
var
|
|
572
|
-
function
|
|
565
|
+
var pe = { type: "xstate.init" };
|
|
566
|
+
function W(t) {
|
|
573
567
|
return t === void 0 ? [] : [].concat(t);
|
|
574
568
|
}
|
|
575
569
|
function at(t, e) {
|
|
576
570
|
return typeof (t = typeof t == "string" && e && e[t] ? e[t] : t) == "string" ? { type: t } : typeof t == "function" ? { type: t.name, exec: t } : t;
|
|
577
571
|
}
|
|
578
|
-
function
|
|
572
|
+
function Y(t) {
|
|
579
573
|
return function(e) {
|
|
580
574
|
return t === e;
|
|
581
575
|
};
|
|
582
576
|
}
|
|
583
|
-
function
|
|
577
|
+
function me(t) {
|
|
584
578
|
return typeof t == "string" ? { type: t } : t;
|
|
585
579
|
}
|
|
586
580
|
function st(t, e) {
|
|
587
|
-
return { value: t, context: e, actions: [], changed: !1, matches:
|
|
581
|
+
return { value: t, context: e, actions: [], changed: !1, matches: Y(t) };
|
|
588
582
|
}
|
|
589
583
|
function ct(t, e, r) {
|
|
590
584
|
var n = e, i = !1;
|
|
@@ -601,52 +595,46 @@ function ct(t, e, r) {
|
|
|
601
595
|
}
|
|
602
596
|
function ye(t, e) {
|
|
603
597
|
e === void 0 && (e = {});
|
|
604
|
-
var r = K(ct(
|
|
598
|
+
var r = K(ct(W(t.states[t.initial].entry).map(function(s) {
|
|
605
599
|
return at(s, e.actions);
|
|
606
|
-
}), t.context,
|
|
607
|
-
var u, p, m = typeof s == "string" ? { value: s, context: t.context } : s, l = m.value, a = m.context, f =
|
|
600
|
+
}), t.context, pe), 2), n = r[0], i = r[1], o = { config: t, _options: e, initialState: { value: t.initial, actions: n, context: i, matches: Y(t.initial) }, transition: function(s, c) {
|
|
601
|
+
var u, p, m = typeof s == "string" ? { value: s, context: t.context } : s, l = m.value, a = m.context, f = me(c), d = t.states[l];
|
|
608
602
|
if (d.on) {
|
|
609
|
-
var
|
|
610
|
-
"*" in d.on &&
|
|
611
|
-
if (arguments.length === 2)
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
return h.concat(x || Array.prototype.slice.call(S));
|
|
615
|
-
}([], K(U(d.on["*"])), !1));
|
|
603
|
+
var T = W(d.on[f.type]);
|
|
604
|
+
"*" in d.on && T.push.apply(T, function(g, x, q) {
|
|
605
|
+
if (arguments.length === 2) for (var C, P = 0, xt = x.length; P < xt; P++) !C && P in x || (C || (C = Array.prototype.slice.call(x, 0, P)), C[P] = x[P]);
|
|
606
|
+
return g.concat(C || Array.prototype.slice.call(x));
|
|
607
|
+
}([], K(W(d.on["*"])), !1));
|
|
616
608
|
try {
|
|
617
|
-
for (var w = function(
|
|
618
|
-
var
|
|
619
|
-
if (q)
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
var E = y.
|
|
628
|
-
if (E === void 0)
|
|
629
|
-
return st(l, a);
|
|
630
|
-
var T = typeof E == "string" ? { target: E } : E, v = T.target, L = T.actions, k = L === void 0 ? [] : L, Z = T.cond, Et = Z === void 0 ? function() {
|
|
609
|
+
for (var w = function(g) {
|
|
610
|
+
var x = typeof Symbol == "function" && Symbol.iterator, q = x && g[x], C = 0;
|
|
611
|
+
if (q) return q.call(g);
|
|
612
|
+
if (g && typeof g.length == "number") return { next: function() {
|
|
613
|
+
return g && C >= g.length && (g = void 0), { value: g && g[C++], done: !g };
|
|
614
|
+
} };
|
|
615
|
+
throw new TypeError(x ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
616
|
+
}(T), v = w.next(); !v.done; v = w.next()) {
|
|
617
|
+
var b = v.value;
|
|
618
|
+
if (b === void 0) return st(l, a);
|
|
619
|
+
var E = typeof b == "string" ? { target: b } : b, y = E.target, _ = E.actions, k = _ === void 0 ? [] : _, Z = E.cond, bt = Z === void 0 ? function() {
|
|
631
620
|
return !0;
|
|
632
|
-
} : Z,
|
|
633
|
-
if (
|
|
634
|
-
var
|
|
635
|
-
return
|
|
636
|
-
})).map(function(
|
|
637
|
-
return at(
|
|
638
|
-
}), a, f), 3), tt =
|
|
639
|
-
return { value: et, context: It, actions: tt, changed:
|
|
621
|
+
} : Z, At = y === void 0, Tt = y ?? l, Et = t.states[Tt];
|
|
622
|
+
if (bt(a, f)) {
|
|
623
|
+
var V = K(ct((At ? W(k) : [].concat(d.exit, k, Et.entry).filter(function(g) {
|
|
624
|
+
return g;
|
|
625
|
+
})).map(function(g) {
|
|
626
|
+
return at(g, o._options.actions);
|
|
627
|
+
}), a, f), 3), tt = V[0], It = V[1], Ot = V[2], et = y ?? l;
|
|
628
|
+
return { value: et, context: It, actions: tt, changed: y !== l || tt.length > 0 || Ot, matches: Y(et) };
|
|
640
629
|
}
|
|
641
630
|
}
|
|
642
|
-
} catch (
|
|
643
|
-
u = { error:
|
|
631
|
+
} catch (g) {
|
|
632
|
+
u = { error: g };
|
|
644
633
|
} finally {
|
|
645
634
|
try {
|
|
646
|
-
|
|
635
|
+
v && !v.done && (p = w.return) && p.call(w);
|
|
647
636
|
} finally {
|
|
648
|
-
if (u)
|
|
649
|
-
throw u.error;
|
|
637
|
+
if (u) throw u.error;
|
|
650
638
|
}
|
|
651
639
|
}
|
|
652
640
|
}
|
|
@@ -654,23 +642,23 @@ function ye(t, e) {
|
|
|
654
642
|
} };
|
|
655
643
|
return o;
|
|
656
644
|
}
|
|
657
|
-
const
|
|
645
|
+
const ve = ye({
|
|
658
646
|
id: "sort",
|
|
659
647
|
initial: B,
|
|
660
648
|
states: {
|
|
661
649
|
[B]: {
|
|
662
650
|
on: {
|
|
663
651
|
DIRECTION1: H,
|
|
664
|
-
DIRECTION2:
|
|
652
|
+
DIRECTION2: z
|
|
665
653
|
}
|
|
666
654
|
},
|
|
667
655
|
[H]: {
|
|
668
656
|
on: {
|
|
669
|
-
DIRECTION1:
|
|
657
|
+
DIRECTION1: z,
|
|
670
658
|
DIRECTION2: B
|
|
671
659
|
}
|
|
672
660
|
},
|
|
673
|
-
[
|
|
661
|
+
[z]: {
|
|
674
662
|
on: {
|
|
675
663
|
DIRECTION1: B,
|
|
676
664
|
DIRECTION2: H
|
|
@@ -678,10 +666,10 @@ const he = ye({
|
|
|
678
666
|
}
|
|
679
667
|
}
|
|
680
668
|
}), ge = (t, e) => {
|
|
681
|
-
const r = e ===
|
|
682
|
-
return
|
|
669
|
+
const r = e === z ? "DIRECTION2" : "DIRECTION1";
|
|
670
|
+
return ve.transition(t, r).value;
|
|
683
671
|
};
|
|
684
|
-
function
|
|
672
|
+
function Le(t = {}) {
|
|
685
673
|
const { sortTarget: e = null, orders: r = [] } = t, n = ft({ sortTarget: e, orders: r });
|
|
686
674
|
return {
|
|
687
675
|
sort: n,
|
|
@@ -698,11 +686,10 @@ function Ne(t = {}) {
|
|
|
698
686
|
}
|
|
699
687
|
};
|
|
700
688
|
}
|
|
701
|
-
function
|
|
702
|
-
const i =
|
|
703
|
-
const u =
|
|
704
|
-
if (o.value = p, !p)
|
|
705
|
-
return i.value = "";
|
|
689
|
+
function Ne(t, e, r, n) {
|
|
690
|
+
const i = A(""), o = A(!1), s = (c) => {
|
|
691
|
+
const u = Ut(rt(e), c), p = u.length > 0;
|
|
692
|
+
if (o.value = p, !p) return i.value = "";
|
|
706
693
|
const l = u.map((a) => ({
|
|
707
694
|
team: a.team.longName,
|
|
708
695
|
points: Math.abs(rt(e, a))
|
|
@@ -713,30 +700,30 @@ function De(t, e, r, n) {
|
|
|
713
700
|
...r(`additionalText.${e}.appendix`) && [r(`additionalText.${e}.appendix`)]
|
|
714
701
|
].join(" ");
|
|
715
702
|
};
|
|
716
|
-
return
|
|
703
|
+
return Yt(t, s), S(n, () => s(I(t))), {
|
|
717
704
|
text: i,
|
|
718
705
|
isVisible: o
|
|
719
706
|
};
|
|
720
707
|
}
|
|
721
708
|
export {
|
|
722
709
|
Re as a,
|
|
723
|
-
|
|
710
|
+
je as b,
|
|
724
711
|
Ce as c,
|
|
725
|
-
|
|
726
|
-
|
|
712
|
+
ce as d,
|
|
713
|
+
Se as e,
|
|
727
714
|
Ae as f,
|
|
728
|
-
|
|
729
|
-
|
|
715
|
+
Le as g,
|
|
716
|
+
Ne as h,
|
|
730
717
|
Pe as i,
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
718
|
+
xe as j,
|
|
719
|
+
Yt as k,
|
|
720
|
+
te as l,
|
|
721
|
+
Oe as m,
|
|
722
|
+
R as n,
|
|
723
|
+
Ie as o,
|
|
737
724
|
Te as p,
|
|
738
725
|
N as q,
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
726
|
+
_e as u,
|
|
727
|
+
de as v,
|
|
728
|
+
Ee as w
|
|
742
729
|
};
|