@everymatrix/tournaments-banner 0.2.1 → 0.2.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.
@@ -1,1785 +0,0 @@
1
- import { z as at, A as _t, B as Yt, c as St, g as Tt, a as Ht, p as re, C as jt, D as Nt, E as ut, F as kt, G as Ue, q as Ae, H as zt, m as ve, j as A, I as Ut, J as Wt, i as ct, b as Ie, d as Et, o as Fe, v as ne, K as Bt, L as Vt, h as lt, M as ft, r as We, N as Gt, s as Xt, e as Be, O as Re, f as je, t as dt, l as Ve, k as qt, P as Zt, $ as Qt } from "./StatusBadge-DLrMedBp.js";
2
- import { T as Jt } from "./TournamentImage-BamdCHr_.js";
3
- typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
4
- }, globalThis.customElements = { define() {
5
- }, get() {
6
- }, whenDefined() {
7
- } });
8
- const Kt = (r, t) => {
9
- window.postMessage(
10
- {
11
- ...t,
12
- type: r
13
- },
14
- window.location.href
15
- );
16
- }, er = (r, t) => {
17
- Kt(`Tournaments:${r}`, t);
18
- }, tr = (r, t) => {
19
- er("viewTournamentDetails", {
20
- tournamentId: r.id,
21
- tournamentName: r.nameOrTitle
22
- });
23
- }, rr = (r) => {
24
- const t = new Headers();
25
- return r && t.append("X-SessionId", r), t;
26
- }, nr = async (r) => {
27
- const t = new URL(`${r.endpoint}/v1/tournaments`);
28
- return t.searchParams.append("language", r.language), t.searchParams.append("sortField", r.sortField ?? "StartTime"), t.searchParams.append("sortOrder", r.sortOrder ?? "desc"), t.searchParams.append("platform", r.platform), (await (await fetch(t, { method: "GET", headers: rr(r.session) })).json())?.items ?? [];
29
- }, ir = async (r) => {
30
- const t = await nr(r), e = /* @__PURE__ */ new Date();
31
- return t.filter((n) => new Date(n.exhibitionEndTime) > e);
32
- };
33
- var ht = { exports: {} };
34
- /** @license
35
- * eventsource.js
36
- * Available under MIT License (MIT)
37
- * https://github.com/Yaffle/EventSource/
38
- */
39
- (function(r, t) {
40
- (function(e) {
41
- var n = e.setTimeout, a = e.clearTimeout, o = e.XMLHttpRequest, d = e.XDomainRequest, b = e.ActiveXObject, S = e.EventSource, P = e.document, C = e.Promise, j = e.fetch, Q = e.Response, z = e.TextDecoder, $ = e.TextEncoder, X = e.AbortController;
42
- if (typeof window < "u" && typeof P < "u" && !("readyState" in P) && P.body == null && (P.readyState = "loading", window.addEventListener("load", function(i) {
43
- P.readyState = "complete";
44
- }, !1)), o == null && b != null && (o = function() {
45
- return new b("Microsoft.XMLHTTP");
46
- }), Object.create == null && (Object.create = function(i) {
47
- function c() {
48
- }
49
- return c.prototype = i, new c();
50
- }), Date.now || (Date.now = function() {
51
- return (/* @__PURE__ */ new Date()).getTime();
52
- }), X == null) {
53
- var T = j;
54
- j = function(i, c) {
55
- var p = c.signal;
56
- return T(i, { headers: c.headers, credentials: c.credentials, cache: c.cache }).then(function(f) {
57
- var E = f.body.getReader();
58
- return p._reader = E, p._aborted && p._reader.cancel(), {
59
- status: f.status,
60
- statusText: f.statusText,
61
- headers: f.headers,
62
- body: {
63
- getReader: function() {
64
- return E;
65
- }
66
- }
67
- };
68
- });
69
- }, X = function() {
70
- this.signal = {
71
- _reader: null,
72
- _aborted: !1
73
- }, this.abort = function() {
74
- this.signal._reader != null && this.signal._reader.cancel(), this.signal._aborted = !0;
75
- };
76
- };
77
- }
78
- function M() {
79
- this.bitsNeeded = 0, this.codePoint = 0;
80
- }
81
- M.prototype.decode = function(i) {
82
- function c(k, G, D) {
83
- if (D === 1)
84
- return k >= 128 >> G && k << G <= 2047;
85
- if (D === 2)
86
- return k >= 2048 >> G && k << G <= 55295 || k >= 57344 >> G && k << G <= 65535;
87
- if (D === 3)
88
- return k >= 65536 >> G && k << G <= 1114111;
89
- throw new Error();
90
- }
91
- function p(k, G) {
92
- if (k === 6 * 1)
93
- return G >> 6 > 15 ? 3 : G > 31 ? 2 : 1;
94
- if (k === 6 * 2)
95
- return G > 15 ? 3 : 2;
96
- if (k === 6 * 3)
97
- return 3;
98
- throw new Error();
99
- }
100
- for (var f = 65533, E = "", _ = this.bitsNeeded, I = this.codePoint, J = 0; J < i.length; J += 1) {
101
- var Y = i[J];
102
- _ !== 0 && (Y < 128 || Y > 191 || !c(I << 6 | Y & 63, _ - 6, p(_, I))) && (_ = 0, I = f, E += String.fromCharCode(I)), _ === 0 ? (Y >= 0 && Y <= 127 ? (_ = 0, I = Y) : Y >= 192 && Y <= 223 ? (_ = 6 * 1, I = Y & 31) : Y >= 224 && Y <= 239 ? (_ = 6 * 2, I = Y & 15) : Y >= 240 && Y <= 247 ? (_ = 6 * 3, I = Y & 7) : (_ = 0, I = f), _ !== 0 && !c(I, _, p(_, I)) && (_ = 0, I = f)) : (_ -= 6, I = I << 6 | Y & 63), _ === 0 && (I <= 65535 ? E += String.fromCharCode(I) : (E += String.fromCharCode(55296 + (I - 65535 - 1 >> 10)), E += String.fromCharCode(56320 + (I - 65535 - 1 & 1023))));
103
- }
104
- return this.bitsNeeded = _, this.codePoint = I, E;
105
- };
106
- var N = function() {
107
- try {
108
- return new z().decode(new $().encode("test"), { stream: !0 }) === "test";
109
- } catch (i) {
110
- console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + i);
111
- }
112
- return !1;
113
- };
114
- (z == null || $ == null || !N()) && (z = M);
115
- var x = function() {
116
- };
117
- function U(i) {
118
- this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = x, this.onload = x, this.onerror = x, this.onreadystatechange = x, this._contentType = "", this._xhr = i, this._sendTimeout = 0, this._abort = x;
119
- }
120
- U.prototype.open = function(i, c) {
121
- this._abort(!0);
122
- var p = this, f = this._xhr, E = 1, _ = 0;
123
- this._abort = function(D) {
124
- p._sendTimeout !== 0 && (a(p._sendTimeout), p._sendTimeout = 0), (E === 1 || E === 2 || E === 3) && (E = 4, f.onload = x, f.onerror = x, f.onabort = x, f.onprogress = x, f.onreadystatechange = x, f.abort(), _ !== 0 && (a(_), _ = 0), D || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), E = 0;
125
- };
126
- var I = function() {
127
- if (E === 1) {
128
- var D = 0, K = "", xe = void 0;
129
- if ("contentType" in f)
130
- D = 200, K = "OK", xe = f.contentType;
131
- else
132
- try {
133
- D = f.status, K = f.statusText, xe = f.getResponseHeader("Content-Type");
134
- } catch {
135
- D = 0, K = "", xe = void 0;
136
- }
137
- D !== 0 && (E = 2, p.readyState = 2, p.status = D, p.statusText = K, p._contentType = xe, p.onreadystatechange());
138
- }
139
- }, J = function() {
140
- if (I(), E === 2 || E === 3) {
141
- E = 3;
142
- var D = "";
143
- try {
144
- D = f.responseText;
145
- } catch {
146
- }
147
- p.readyState = 3, p.responseText = D, p.onprogress();
148
- }
149
- }, Y = function(D, K) {
150
- if ((K == null || K.preventDefault == null) && (K = {
151
- preventDefault: x
152
- }), J(), E === 1 || E === 2 || E === 3) {
153
- if (E = 4, _ !== 0 && (a(_), _ = 0), p.readyState = 4, D === "load")
154
- p.onload(K);
155
- else if (D === "error")
156
- p.onerror(K);
157
- else if (D === "abort")
158
- p.onabort(K);
159
- else
160
- throw new TypeError();
161
- p.onreadystatechange();
162
- }
163
- }, k = function(D) {
164
- f != null && (f.readyState === 4 ? (!("onload" in f) || !("onerror" in f) || !("onabort" in f)) && Y(f.responseText === "" ? "error" : "load", D) : f.readyState === 3 ? "onprogress" in f || J() : f.readyState === 2 && I());
165
- }, G = function() {
166
- _ = n(function() {
167
- G();
168
- }, 500), f.readyState === 3 && J();
169
- };
170
- "onload" in f && (f.onload = function(D) {
171
- Y("load", D);
172
- }), "onerror" in f && (f.onerror = function(D) {
173
- Y("error", D);
174
- }), "onabort" in f && (f.onabort = function(D) {
175
- Y("abort", D);
176
- }), "onprogress" in f && (f.onprogress = J), "onreadystatechange" in f && (f.onreadystatechange = function(D) {
177
- k(D);
178
- }), ("contentType" in f || !("ontimeout" in o.prototype)) && (c += (c.indexOf("?") === -1 ? "?" : "&") + "padding=true"), f.open(i, c, !0), "readyState" in f && (_ = n(function() {
179
- G();
180
- }, 0));
181
- }, U.prototype.abort = function() {
182
- this._abort(!1);
183
- }, U.prototype.getResponseHeader = function(i) {
184
- return this._contentType;
185
- }, U.prototype.setRequestHeader = function(i, c) {
186
- var p = this._xhr;
187
- "setRequestHeader" in p && p.setRequestHeader(i, c);
188
- }, U.prototype.getAllResponseHeaders = function() {
189
- return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
190
- }, U.prototype.send = function() {
191
- if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && P != null && P.readyState != null && P.readyState !== "complete") {
192
- var i = this;
193
- i._sendTimeout = n(function() {
194
- i._sendTimeout = 0, i.send();
195
- }, 4);
196
- return;
197
- }
198
- var c = this._xhr;
199
- "withCredentials" in c && (c.withCredentials = this.withCredentials);
200
- try {
201
- c.send(void 0);
202
- } catch (p) {
203
- throw p;
204
- }
205
- };
206
- function ee(i) {
207
- return i.replace(/[A-Z]/g, function(c) {
208
- return String.fromCharCode(c.charCodeAt(0) + 32);
209
- });
210
- }
211
- function ie(i) {
212
- for (var c = /* @__PURE__ */ Object.create(null), p = i.split(`\r
213
- `), f = 0; f < p.length; f += 1) {
214
- var E = p[f], _ = E.split(": "), I = _.shift(), J = _.join(": ");
215
- c[ee(I)] = J;
216
- }
217
- this._map = c;
218
- }
219
- ie.prototype.get = function(i) {
220
- return this._map[ee(i)];
221
- }, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
222
- function ce() {
223
- }
224
- ce.prototype.open = function(i, c, p, f, E, _, I) {
225
- i.open("GET", E);
226
- var J = 0;
227
- i.onprogress = function() {
228
- var k = i.responseText, G = k.slice(J);
229
- J += G.length, p(G);
230
- }, i.onerror = function(k) {
231
- k.preventDefault(), f(new Error("NetworkError"));
232
- }, i.onload = function() {
233
- f(null);
234
- }, i.onabort = function() {
235
- f(null);
236
- }, i.onreadystatechange = function() {
237
- if (i.readyState === o.HEADERS_RECEIVED) {
238
- var k = i.status, G = i.statusText, D = i.getResponseHeader("Content-Type"), K = i.getAllResponseHeaders();
239
- c(k, G, D, new ie(K));
240
- }
241
- }, i.withCredentials = _;
242
- for (var Y in I)
243
- Object.prototype.hasOwnProperty.call(I, Y) && i.setRequestHeader(Y, I[Y]);
244
- return i.send(), i;
245
- };
246
- function ae(i) {
247
- this._headers = i;
248
- }
249
- ae.prototype.get = function(i) {
250
- return this._headers.get(i);
251
- };
252
- function oe() {
253
- }
254
- oe.prototype.open = function(i, c, p, f, E, _, I) {
255
- var J = null, Y = new X(), k = Y.signal, G = new z();
256
- return j(E, {
257
- headers: I,
258
- credentials: _ ? "include" : "same-origin",
259
- signal: k,
260
- cache: "no-store"
261
- }).then(function(D) {
262
- return J = D.body.getReader(), c(D.status, D.statusText, D.headers.get("Content-Type"), new ae(D.headers)), new C(function(K, xe) {
263
- var Ye = function() {
264
- J.read().then(function(_e) {
265
- if (_e.done)
266
- K(void 0);
267
- else {
268
- var ye = G.decode(_e.value, { stream: !0 });
269
- p(ye), Ye();
270
- }
271
- }).catch(function(_e) {
272
- xe(_e);
273
- });
274
- };
275
- Ye();
276
- });
277
- }).catch(function(D) {
278
- if (D.name !== "AbortError")
279
- return D;
280
- }).then(function(D) {
281
- f(D);
282
- }), {
283
- abort: function() {
284
- J?.cancel(), Y.abort();
285
- }
286
- };
287
- };
288
- function F() {
289
- this._listeners = /* @__PURE__ */ Object.create(null);
290
- }
291
- function O(i) {
292
- n(function() {
293
- throw i;
294
- }, 0);
295
- }
296
- F.prototype.dispatchEvent = function(i) {
297
- i.target = this;
298
- var c = this._listeners[i.type];
299
- if (c != null)
300
- for (var p = c.length, f = 0; f < p; f += 1) {
301
- var E = c[f];
302
- try {
303
- typeof E.handleEvent == "function" ? E.handleEvent(i) : E.call(this, i);
304
- } catch (_) {
305
- O(_);
306
- }
307
- }
308
- }, F.prototype.addEventListener = function(i, c) {
309
- i = String(i);
310
- var p = this._listeners, f = p[i];
311
- f == null && (f = [], p[i] = f);
312
- for (var E = !1, _ = 0; _ < f.length; _ += 1)
313
- f[_] === c && (E = !0);
314
- E || f.push(c);
315
- }, F.prototype.removeEventListener = function(i, c) {
316
- i = String(i);
317
- var p = this._listeners, f = p[i];
318
- if (f != null) {
319
- for (var E = [], _ = 0; _ < f.length; _ += 1)
320
- f[_] !== c && E.push(f[_]);
321
- E.length === 0 ? delete p[i] : p[i] = E;
322
- }
323
- };
324
- function q(i) {
325
- this.type = i, this.target = void 0;
326
- }
327
- function se(i, c) {
328
- q.call(this, i), this.data = c.data, this.lastEventId = c.lastEventId;
329
- }
330
- se.prototype = Object.create(q.prototype);
331
- function v(i, c) {
332
- q.call(this, i), this.status = c.status, this.statusText = c.statusText, this.headers = c.headers;
333
- }
334
- v.prototype = Object.create(q.prototype);
335
- function l(i, c) {
336
- q.call(this, i), this.error = c.error;
337
- }
338
- l.prototype = Object.create(q.prototype);
339
- var s = -1, h = 0, u = 1, y = 2, g = -1, w = 0, H = 1, W = 2, te = 3, le = /^text\/event\-stream(;.*)?$/i, m = 1e3, L = 18e6, V = function(i, c) {
340
- var p = i == null ? c : parseInt(i, 10);
341
- return p !== p && (p = c), fe(p);
342
- }, fe = function(i) {
343
- return Math.min(Math.max(i, m), L);
344
- }, B = function(i, c, p) {
345
- try {
346
- typeof c == "function" && c.call(i, p);
347
- } catch (f) {
348
- O(f);
349
- }
350
- };
351
- function R(i, c) {
352
- F.call(this), c = c || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, ge(this, i, c);
353
- }
354
- function Z() {
355
- return o != null && "withCredentials" in o.prototype || d == null ? new o() : new d();
356
- }
357
- var he = j != null && Q != null && "body" in Q.prototype;
358
- function ge(i, c, p) {
359
- c = String(c);
360
- var f = !!p.withCredentials, E = p.lastEventIdQueryParameterName || "lastEventId", _ = fe(1e3), I = V(p.heartbeatTimeout, 45e3), J = "", Y = _, k = !1, G = 0, D = p.headers || {}, K = p.Transport, xe = he && K == null ? void 0 : new U(K != null ? new K() : Z()), Ye = K != null && typeof K != "string" ? new K() : xe == null ? new oe() : new ce(), _e = void 0, ye = 0, Ee = s, Le = "", ke = "", De = "", ze = "", me = w, Qe = 0, $e = 0, Ft = function(de, ue, Se, Te) {
361
- if (Ee === h)
362
- if (de === 200 && Se != null && le.test(Se)) {
363
- Ee = u, k = Date.now(), Y = _, i.readyState = u;
364
- var be = new v("open", {
365
- status: de,
366
- statusText: ue,
367
- headers: Te
368
- });
369
- i.dispatchEvent(be), B(i, i.onopen, be);
370
- } else {
371
- var pe = "";
372
- de !== 200 ? (ue && (ue = ue.replace(/\s+/g, " ")), pe = "EventSource's response has a status " + de + " " + ue + " that is not 200. Aborting the connection.") : pe = "EventSource's response has a Content-Type specifying an unsupported type: " + (Se == null ? "-" : Se.replace(/\s+/g, " ")) + ". Aborting the connection.", Je();
373
- var be = new v("error", {
374
- status: de,
375
- statusText: ue,
376
- headers: Te
377
- });
378
- i.dispatchEvent(be), B(i, i.onerror, be), console.error(pe);
379
- }
380
- }, Rt = function(de) {
381
- if (Ee === u) {
382
- for (var ue = -1, Se = 0; Se < de.length; Se += 1) {
383
- var Te = de.charCodeAt(Se);
384
- (Te === 10 || Te === 13) && (ue = Se);
385
- }
386
- var be = (ue !== -1 ? ze : "") + de.slice(0, ue + 1);
387
- ze = (ue === -1 ? ze : "") + de.slice(ue + 1), de !== "" && (k = Date.now(), G += de.length);
388
- for (var pe = 0; pe < be.length; pe += 1) {
389
- var Te = be.charCodeAt(pe);
390
- if (me === g && Te === 10)
391
- me = w;
392
- else if (me === g && (me = w), Te === 13 || Te === 10) {
393
- if (me !== w) {
394
- me === H && ($e = pe + 1);
395
- var Me = be.slice(Qe, $e - 1), Oe = be.slice($e + ($e < pe && be.charCodeAt($e) === 32 ? 1 : 0), pe);
396
- Me === "data" ? (Le += `
397
- `, Le += Oe) : Me === "id" ? ke = Oe : Me === "event" ? De = Oe : Me === "retry" ? (_ = V(Oe, _), Y = _) : Me === "heartbeatTimeout" && (I = V(Oe, I), ye !== 0 && (a(ye), ye = n(function() {
398
- He();
399
- }, I)));
400
- }
401
- if (me === w) {
402
- if (Le !== "") {
403
- J = ke, De === "" && (De = "message");
404
- var Pe = new se(De, {
405
- data: Le.slice(1),
406
- lastEventId: ke
407
- });
408
- if (i.dispatchEvent(Pe), De === "open" ? B(i, i.onopen, Pe) : De === "message" ? B(i, i.onmessage, Pe) : De === "error" && B(i, i.onerror, Pe), Ee === y)
409
- return;
410
- }
411
- Le = "", De = "";
412
- }
413
- me = Te === 13 ? g : w;
414
- } else
415
- me === w && (Qe = pe, me = H), me === H ? Te === 58 && ($e = pe + 1, me = W) : me === W && (me = te);
416
- }
417
- }
418
- }, st = function(de) {
419
- if (Ee === u || Ee === h) {
420
- Ee = s, ye !== 0 && (a(ye), ye = 0), ye = n(function() {
421
- He();
422
- }, Y), Y = fe(Math.min(_ * 16, Y * 2)), i.readyState = h;
423
- var ue = new l("error", { error: de });
424
- i.dispatchEvent(ue), B(i, i.onerror, ue), de != null && console.error(de);
425
- }
426
- }, Je = function() {
427
- Ee = y, _e != null && (_e.abort(), _e = void 0), ye !== 0 && (a(ye), ye = 0), i.readyState = y;
428
- }, He = function() {
429
- if (ye = 0, Ee !== s) {
430
- if (!k && _e != null)
431
- st(new Error("No activity within " + I + " milliseconds. " + (Ee === h ? "No response received." : G + " chars received.") + " Reconnecting.")), _e != null && (_e.abort(), _e = void 0);
432
- else {
433
- var de = Math.max((k || Date.now()) + I - Date.now(), 1);
434
- k = !1, ye = n(function() {
435
- He();
436
- }, de);
437
- }
438
- return;
439
- }
440
- k = !1, G = 0, ye = n(function() {
441
- He();
442
- }, I), Ee = h, Le = "", De = "", ke = J, ze = "", Qe = 0, $e = 0, me = w;
443
- var ue = c;
444
- if (c.slice(0, 5) !== "data:" && c.slice(0, 5) !== "blob:" && J !== "") {
445
- var Se = c.indexOf("?");
446
- ue = Se === -1 ? c : c.slice(0, Se + 1) + c.slice(Se + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Oe, Pe) {
447
- return Pe === E ? "" : Oe;
448
- }), ue += (c.indexOf("?") === -1 ? "?" : "&") + E + "=" + encodeURIComponent(J);
449
- }
450
- var Te = i.withCredentials, be = {};
451
- be.Accept = "text/event-stream";
452
- var pe = i.headers;
453
- if (pe != null)
454
- for (var Me in pe)
455
- Object.prototype.hasOwnProperty.call(pe, Me) && (be[Me] = pe[Me]);
456
- try {
457
- _e = Ye.open(xe, Ft, Rt, st, ue, Te, be);
458
- } catch (Oe) {
459
- throw Je(), Oe;
460
- }
461
- };
462
- i.url = c, i.readyState = h, i.withCredentials = f, i.headers = D, i._close = Je, He();
463
- }
464
- R.prototype = Object.create(F.prototype), R.prototype.CONNECTING = h, R.prototype.OPEN = u, R.prototype.CLOSED = y, R.prototype.close = function() {
465
- this._close();
466
- }, R.CONNECTING = h, R.OPEN = u, R.CLOSED = y, R.prototype.withCredentials = void 0;
467
- var we = S;
468
- o != null && (S == null || !("withCredentials" in S.prototype)) && (we = R), function(i) {
469
- {
470
- var c = i(t);
471
- c !== void 0 && (r.exports = c);
472
- }
473
- }(function(i) {
474
- i.EventSourcePolyfill = R, i.NativeEventSource = S, i.EventSource = we;
475
- });
476
- })(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : at : globalThis);
477
- })(ht, ht.exports);
478
- var xt = { exports: {} };
479
- (function(r, t) {
480
- (function(e, n) {
481
- r.exports = n();
482
- })(at, function() {
483
- var e = 1e3, n = 6e4, a = 36e5, o = "millisecond", d = "second", b = "minute", S = "hour", P = "day", C = "week", j = "month", Q = "quarter", z = "year", $ = "date", X = "Invalid Date", T = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, M = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, N = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(v) {
484
- var l = ["th", "st", "nd", "rd"], s = v % 100;
485
- return "[" + v + (l[(s - 20) % 10] || l[s] || l[0]) + "]";
486
- } }, x = function(v, l, s) {
487
- var h = String(v);
488
- return !h || h.length >= l ? v : "" + Array(l + 1 - h.length).join(s) + v;
489
- }, U = { s: x, z: function(v) {
490
- var l = -v.utcOffset(), s = Math.abs(l), h = Math.floor(s / 60), u = s % 60;
491
- return (l <= 0 ? "+" : "-") + x(h, 2, "0") + ":" + x(u, 2, "0");
492
- }, m: function v(l, s) {
493
- if (l.date() < s.date()) return -v(s, l);
494
- var h = 12 * (s.year() - l.year()) + (s.month() - l.month()), u = l.clone().add(h, j), y = s - u < 0, g = l.clone().add(h + (y ? -1 : 1), j);
495
- return +(-(h + (s - u) / (y ? u - g : g - u)) || 0);
496
- }, a: function(v) {
497
- return v < 0 ? Math.ceil(v) || 0 : Math.floor(v);
498
- }, p: function(v) {
499
- return { M: j, y: z, w: C, d: P, D: $, h: S, m: b, s: d, ms: o, Q }[v] || String(v || "").toLowerCase().replace(/s$/, "");
500
- }, u: function(v) {
501
- return v === void 0;
502
- } }, ee = "en", ie = {};
503
- ie[ee] = N;
504
- var ce = "$isDayjsObject", ae = function(v) {
505
- return v instanceof q || !(!v || !v[ce]);
506
- }, oe = function v(l, s, h) {
507
- var u;
508
- if (!l) return ee;
509
- if (typeof l == "string") {
510
- var y = l.toLowerCase();
511
- ie[y] && (u = y), s && (ie[y] = s, u = y);
512
- var g = l.split("-");
513
- if (!u && g.length > 1) return v(g[0]);
514
- } else {
515
- var w = l.name;
516
- ie[w] = l, u = w;
517
- }
518
- return !h && u && (ee = u), u || !h && ee;
519
- }, F = function(v, l) {
520
- if (ae(v)) return v.clone();
521
- var s = typeof l == "object" ? l : {};
522
- return s.date = v, s.args = arguments, new q(s);
523
- }, O = U;
524
- O.l = oe, O.i = ae, O.w = function(v, l) {
525
- return F(v, { locale: l.$L, utc: l.$u, x: l.$x, $offset: l.$offset });
526
- };
527
- var q = function() {
528
- function v(s) {
529
- this.$L = oe(s.locale, null, !0), this.parse(s), this.$x = this.$x || s.x || {}, this[ce] = !0;
530
- }
531
- var l = v.prototype;
532
- return l.parse = function(s) {
533
- this.$d = function(h) {
534
- var u = h.date, y = h.utc;
535
- if (u === null) return /* @__PURE__ */ new Date(NaN);
536
- if (O.u(u)) return /* @__PURE__ */ new Date();
537
- if (u instanceof Date) return new Date(u);
538
- if (typeof u == "string" && !/Z$/i.test(u)) {
539
- var g = u.match(T);
540
- if (g) {
541
- var w = g[2] - 1 || 0, H = (g[7] || "0").substring(0, 3);
542
- return y ? new Date(Date.UTC(g[1], w, g[3] || 1, g[4] || 0, g[5] || 0, g[6] || 0, H)) : new Date(g[1], w, g[3] || 1, g[4] || 0, g[5] || 0, g[6] || 0, H);
543
- }
544
- }
545
- return new Date(u);
546
- }(s), this.init();
547
- }, l.init = function() {
548
- var s = this.$d;
549
- this.$y = s.getFullYear(), this.$M = s.getMonth(), this.$D = s.getDate(), this.$W = s.getDay(), this.$H = s.getHours(), this.$m = s.getMinutes(), this.$s = s.getSeconds(), this.$ms = s.getMilliseconds();
550
- }, l.$utils = function() {
551
- return O;
552
- }, l.isValid = function() {
553
- return this.$d.toString() !== X;
554
- }, l.isSame = function(s, h) {
555
- var u = F(s);
556
- return this.startOf(h) <= u && u <= this.endOf(h);
557
- }, l.isAfter = function(s, h) {
558
- return F(s) < this.startOf(h);
559
- }, l.isBefore = function(s, h) {
560
- return this.endOf(h) < F(s);
561
- }, l.$g = function(s, h, u) {
562
- return O.u(s) ? this[h] : this.set(u, s);
563
- }, l.unix = function() {
564
- return Math.floor(this.valueOf() / 1e3);
565
- }, l.valueOf = function() {
566
- return this.$d.getTime();
567
- }, l.startOf = function(s, h) {
568
- var u = this, y = !!O.u(h) || h, g = O.p(s), w = function(fe, B) {
569
- var R = O.w(u.$u ? Date.UTC(u.$y, B, fe) : new Date(u.$y, B, fe), u);
570
- return y ? R : R.endOf(P);
571
- }, H = function(fe, B) {
572
- return O.w(u.toDate()[fe].apply(u.toDate("s"), (y ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(B)), u);
573
- }, W = this.$W, te = this.$M, le = this.$D, m = "set" + (this.$u ? "UTC" : "");
574
- switch (g) {
575
- case z:
576
- return y ? w(1, 0) : w(31, 11);
577
- case j:
578
- return y ? w(1, te) : w(0, te + 1);
579
- case C:
580
- var L = this.$locale().weekStart || 0, V = (W < L ? W + 7 : W) - L;
581
- return w(y ? le - V : le + (6 - V), te);
582
- case P:
583
- case $:
584
- return H(m + "Hours", 0);
585
- case S:
586
- return H(m + "Minutes", 1);
587
- case b:
588
- return H(m + "Seconds", 2);
589
- case d:
590
- return H(m + "Milliseconds", 3);
591
- default:
592
- return this.clone();
593
- }
594
- }, l.endOf = function(s) {
595
- return this.startOf(s, !1);
596
- }, l.$set = function(s, h) {
597
- var u, y = O.p(s), g = "set" + (this.$u ? "UTC" : ""), w = (u = {}, u[P] = g + "Date", u[$] = g + "Date", u[j] = g + "Month", u[z] = g + "FullYear", u[S] = g + "Hours", u[b] = g + "Minutes", u[d] = g + "Seconds", u[o] = g + "Milliseconds", u)[y], H = y === P ? this.$D + (h - this.$W) : h;
598
- if (y === j || y === z) {
599
- var W = this.clone().set($, 1);
600
- W.$d[w](H), W.init(), this.$d = W.set($, Math.min(this.$D, W.daysInMonth())).$d;
601
- } else w && this.$d[w](H);
602
- return this.init(), this;
603
- }, l.set = function(s, h) {
604
- return this.clone().$set(s, h);
605
- }, l.get = function(s) {
606
- return this[O.p(s)]();
607
- }, l.add = function(s, h) {
608
- var u, y = this;
609
- s = Number(s);
610
- var g = O.p(h), w = function(te) {
611
- var le = F(y);
612
- return O.w(le.date(le.date() + Math.round(te * s)), y);
613
- };
614
- if (g === j) return this.set(j, this.$M + s);
615
- if (g === z) return this.set(z, this.$y + s);
616
- if (g === P) return w(1);
617
- if (g === C) return w(7);
618
- var H = (u = {}, u[b] = n, u[S] = a, u[d] = e, u)[g] || 1, W = this.$d.getTime() + s * H;
619
- return O.w(W, this);
620
- }, l.subtract = function(s, h) {
621
- return this.add(-1 * s, h);
622
- }, l.format = function(s) {
623
- var h = this, u = this.$locale();
624
- if (!this.isValid()) return u.invalidDate || X;
625
- var y = s || "YYYY-MM-DDTHH:mm:ssZ", g = O.z(this), w = this.$H, H = this.$m, W = this.$M, te = u.weekdays, le = u.months, m = u.meridiem, L = function(B, R, Z, he) {
626
- return B && (B[R] || B(h, y)) || Z[R].slice(0, he);
627
- }, V = function(B) {
628
- return O.s(w % 12 || 12, B, "0");
629
- }, fe = m || function(B, R, Z) {
630
- var he = B < 12 ? "AM" : "PM";
631
- return Z ? he.toLowerCase() : he;
632
- };
633
- return y.replace(M, function(B, R) {
634
- return R || function(Z) {
635
- switch (Z) {
636
- case "YY":
637
- return String(h.$y).slice(-2);
638
- case "YYYY":
639
- return O.s(h.$y, 4, "0");
640
- case "M":
641
- return W + 1;
642
- case "MM":
643
- return O.s(W + 1, 2, "0");
644
- case "MMM":
645
- return L(u.monthsShort, W, le, 3);
646
- case "MMMM":
647
- return L(le, W);
648
- case "D":
649
- return h.$D;
650
- case "DD":
651
- return O.s(h.$D, 2, "0");
652
- case "d":
653
- return String(h.$W);
654
- case "dd":
655
- return L(u.weekdaysMin, h.$W, te, 2);
656
- case "ddd":
657
- return L(u.weekdaysShort, h.$W, te, 3);
658
- case "dddd":
659
- return te[h.$W];
660
- case "H":
661
- return String(w);
662
- case "HH":
663
- return O.s(w, 2, "0");
664
- case "h":
665
- return V(1);
666
- case "hh":
667
- return V(2);
668
- case "a":
669
- return fe(w, H, !0);
670
- case "A":
671
- return fe(w, H, !1);
672
- case "m":
673
- return String(H);
674
- case "mm":
675
- return O.s(H, 2, "0");
676
- case "s":
677
- return String(h.$s);
678
- case "ss":
679
- return O.s(h.$s, 2, "0");
680
- case "SSS":
681
- return O.s(h.$ms, 3, "0");
682
- case "Z":
683
- return g;
684
- }
685
- return null;
686
- }(B) || g.replace(":", "");
687
- });
688
- }, l.utcOffset = function() {
689
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
690
- }, l.diff = function(s, h, u) {
691
- var y, g = this, w = O.p(h), H = F(s), W = (H.utcOffset() - this.utcOffset()) * n, te = this - H, le = function() {
692
- return O.m(g, H);
693
- };
694
- switch (w) {
695
- case z:
696
- y = le() / 12;
697
- break;
698
- case j:
699
- y = le();
700
- break;
701
- case Q:
702
- y = le() / 3;
703
- break;
704
- case C:
705
- y = (te - W) / 6048e5;
706
- break;
707
- case P:
708
- y = (te - W) / 864e5;
709
- break;
710
- case S:
711
- y = te / a;
712
- break;
713
- case b:
714
- y = te / n;
715
- break;
716
- case d:
717
- y = te / e;
718
- break;
719
- default:
720
- y = te;
721
- }
722
- return u ? y : O.a(y);
723
- }, l.daysInMonth = function() {
724
- return this.endOf(j).$D;
725
- }, l.$locale = function() {
726
- return ie[this.$L];
727
- }, l.locale = function(s, h) {
728
- if (!s) return this.$L;
729
- var u = this.clone(), y = oe(s, h, !0);
730
- return y && (u.$L = y), u;
731
- }, l.clone = function() {
732
- return O.w(this.$d, this);
733
- }, l.toDate = function() {
734
- return new Date(this.valueOf());
735
- }, l.toJSON = function() {
736
- return this.isValid() ? this.toISOString() : null;
737
- }, l.toISOString = function() {
738
- return this.$d.toISOString();
739
- }, l.toString = function() {
740
- return this.$d.toUTCString();
741
- }, v;
742
- }(), se = q.prototype;
743
- return F.prototype = se, [["$ms", o], ["$s", d], ["$m", b], ["$H", S], ["$W", P], ["$M", j], ["$y", z], ["$D", $]].forEach(function(v) {
744
- se[v[1]] = function(l) {
745
- return this.$g(l, v[0], v[1]);
746
- };
747
- }), F.extend = function(v, l) {
748
- return v.$i || (v(l, q, F), v.$i = !0), F;
749
- }, F.locale = oe, F.isDayjs = ae, F.unix = function(v) {
750
- return F(1e3 * v);
751
- }, F.en = ie[ee], F.Ls = ie, F.p = {}, F;
752
- });
753
- })(xt);
754
- var or = xt.exports;
755
- const ar = /* @__PURE__ */ _t(or);
756
- var Dt = { exports: {} };
757
- (function(r, t) {
758
- (function(e, n) {
759
- r.exports = n();
760
- })(at, function() {
761
- var e = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, n = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, a = /\d/, o = /\d\d/, d = /\d\d?/, b = /\d*[^-_:/,()\s\d]+/, S = {}, P = function(T) {
762
- return (T = +T) + (T > 68 ? 1900 : 2e3);
763
- }, C = function(T) {
764
- return function(M) {
765
- this[T] = +M;
766
- };
767
- }, j = [/[+-]\d\d:?(\d\d)?|Z/, function(T) {
768
- (this.zone || (this.zone = {})).offset = function(M) {
769
- if (!M || M === "Z") return 0;
770
- var N = M.match(/([+-]|\d\d)/g), x = 60 * N[1] + (+N[2] || 0);
771
- return x === 0 ? 0 : N[0] === "+" ? -x : x;
772
- }(T);
773
- }], Q = function(T) {
774
- var M = S[T];
775
- return M && (M.indexOf ? M : M.s.concat(M.f));
776
- }, z = function(T, M) {
777
- var N, x = S.meridiem;
778
- if (x) {
779
- for (var U = 1; U <= 24; U += 1) if (T.indexOf(x(U, 0, M)) > -1) {
780
- N = U > 12;
781
- break;
782
- }
783
- } else N = T === (M ? "pm" : "PM");
784
- return N;
785
- }, $ = { A: [b, function(T) {
786
- this.afternoon = z(T, !1);
787
- }], a: [b, function(T) {
788
- this.afternoon = z(T, !0);
789
- }], Q: [a, function(T) {
790
- this.month = 3 * (T - 1) + 1;
791
- }], S: [a, function(T) {
792
- this.milliseconds = 100 * +T;
793
- }], SS: [o, function(T) {
794
- this.milliseconds = 10 * +T;
795
- }], SSS: [/\d{3}/, function(T) {
796
- this.milliseconds = +T;
797
- }], s: [d, C("seconds")], ss: [d, C("seconds")], m: [d, C("minutes")], mm: [d, C("minutes")], H: [d, C("hours")], h: [d, C("hours")], HH: [d, C("hours")], hh: [d, C("hours")], D: [d, C("day")], DD: [o, C("day")], Do: [b, function(T) {
798
- var M = S.ordinal, N = T.match(/\d+/);
799
- if (this.day = N[0], M) for (var x = 1; x <= 31; x += 1) M(x).replace(/\[|\]/g, "") === T && (this.day = x);
800
- }], w: [d, C("week")], ww: [o, C("week")], M: [d, C("month")], MM: [o, C("month")], MMM: [b, function(T) {
801
- var M = Q("months"), N = (Q("monthsShort") || M.map(function(x) {
802
- return x.slice(0, 3);
803
- })).indexOf(T) + 1;
804
- if (N < 1) throw new Error();
805
- this.month = N % 12 || N;
806
- }], MMMM: [b, function(T) {
807
- var M = Q("months").indexOf(T) + 1;
808
- if (M < 1) throw new Error();
809
- this.month = M % 12 || M;
810
- }], Y: [/[+-]?\d+/, C("year")], YY: [o, function(T) {
811
- this.year = P(T);
812
- }], YYYY: [/\d{4}/, C("year")], Z: j, ZZ: j };
813
- function X(T) {
814
- var M, N;
815
- M = T, N = S && S.formats;
816
- for (var x = (T = M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(F, O, q) {
817
- var se = q && q.toUpperCase();
818
- return O || N[q] || e[q] || N[se].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(v, l, s) {
819
- return l || s.slice(1);
820
- });
821
- })).match(n), U = x.length, ee = 0; ee < U; ee += 1) {
822
- var ie = x[ee], ce = $[ie], ae = ce && ce[0], oe = ce && ce[1];
823
- x[ee] = oe ? { regex: ae, parser: oe } : ie.replace(/^\[|\]$/g, "");
824
- }
825
- return function(F) {
826
- for (var O = {}, q = 0, se = 0; q < U; q += 1) {
827
- var v = x[q];
828
- if (typeof v == "string") se += v.length;
829
- else {
830
- var l = v.regex, s = v.parser, h = F.slice(se), u = l.exec(h)[0];
831
- s.call(O, u), F = F.replace(u, "");
832
- }
833
- }
834
- return function(y) {
835
- var g = y.afternoon;
836
- if (g !== void 0) {
837
- var w = y.hours;
838
- g ? w < 12 && (y.hours += 12) : w === 12 && (y.hours = 0), delete y.afternoon;
839
- }
840
- }(O), O;
841
- };
842
- }
843
- return function(T, M, N) {
844
- N.p.customParseFormat = !0, T && T.parseTwoDigitYear && (P = T.parseTwoDigitYear);
845
- var x = M.prototype, U = x.parse;
846
- x.parse = function(ee) {
847
- var ie = ee.date, ce = ee.utc, ae = ee.args;
848
- this.$u = ce;
849
- var oe = ae[1];
850
- if (typeof oe == "string") {
851
- var F = ae[2] === !0, O = ae[3] === !0, q = F || O, se = ae[2];
852
- O && (se = ae[2]), S = this.$locale(), !F && se && (S = N.Ls[se]), this.$d = function(h, u, y, g) {
853
- try {
854
- if (["x", "X"].indexOf(u) > -1) return new Date((u === "X" ? 1e3 : 1) * h);
855
- var w = X(u)(h), H = w.year, W = w.month, te = w.day, le = w.hours, m = w.minutes, L = w.seconds, V = w.milliseconds, fe = w.zone, B = w.week, R = /* @__PURE__ */ new Date(), Z = te || (H || W ? 1 : R.getDate()), he = H || R.getFullYear(), ge = 0;
856
- H && !W || (ge = W > 0 ? W - 1 : R.getMonth());
857
- var we, i = le || 0, c = m || 0, p = L || 0, f = V || 0;
858
- return fe ? new Date(Date.UTC(he, ge, Z, i, c, p, f + 60 * fe.offset * 1e3)) : y ? new Date(Date.UTC(he, ge, Z, i, c, p, f)) : (we = new Date(he, ge, Z, i, c, p, f), B && (we = g(we).week(B).toDate()), we);
859
- } catch {
860
- return /* @__PURE__ */ new Date("");
861
- }
862
- }(ie, oe, ce, N), this.init(), se && se !== !0 && (this.$L = this.locale(se).$L), q && ie != this.format(oe) && (this.$d = /* @__PURE__ */ new Date("")), S = {};
863
- } else if (oe instanceof Array) for (var v = oe.length, l = 1; l <= v; l += 1) {
864
- ae[1] = oe[l - 1];
865
- var s = N.apply(this, ae);
866
- if (s.isValid()) {
867
- this.$d = s.$d, this.$L = s.$L, this.init();
868
- break;
869
- }
870
- l === v && (this.$d = /* @__PURE__ */ new Date(""));
871
- }
872
- else U.call(this, ee);
873
- };
874
- };
875
- });
876
- })(Dt);
877
- var sr = Dt.exports;
878
- const ur = /* @__PURE__ */ _t(sr);
879
- ar.extend(ur);
880
- const cr = () => typeof window > "u", Ge = (r, t = !1) => {
881
- if (typeof r == "boolean") return r;
882
- if (r == null) return t;
883
- if (typeof r == "number") return r !== 0;
884
- const e = String(r).trim().toLowerCase();
885
- return e === "" ? !0 : e !== "false" && e !== "0";
886
- }, lr = {
887
- en: {
888
- bannerSlideLabel: "Tournament {index} of {total}",
889
- bannerGoToSlide: "Go to tournament {index}"
890
- },
891
- tr: {
892
- bannerSlideLabel: "Turnuva {index} / {total}",
893
- bannerGoToSlide: "{index}. turnuvaya git"
894
- },
895
- da: {
896
- bannerSlideLabel: "Turnering {index} af {total}",
897
- bannerGoToSlide: "Gå til turnering {index}"
898
- }
899
- }, fr = 5e3, dr = 1e3, hr = !0, pr = !0, vr = !0, yr = !0;
900
- /*! *****************************************************************************
901
- Copyright (c) Microsoft Corporation.
902
-
903
- Permission to use, copy, modify, and/or distribute this software for any
904
- purpose with or without fee is hereby granted.
905
-
906
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
907
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
908
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
909
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
910
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
911
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
912
- PERFORMANCE OF THIS SOFTWARE.
913
- ***************************************************************************** */
914
- var et = function(r, t) {
915
- return et = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
916
- e.__proto__ = n;
917
- } || function(e, n) {
918
- for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
919
- }, et(r, t);
920
- };
921
- function Ne(r, t) {
922
- if (typeof t != "function" && t !== null)
923
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
924
- et(r, t);
925
- function e() {
926
- this.constructor = r;
927
- }
928
- r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
929
- }
930
- function tt(r) {
931
- var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], n = 0;
932
- if (e) return e.call(r);
933
- if (r && typeof r.length == "number") return {
934
- next: function() {
935
- return r && n >= r.length && (r = void 0), { value: r && r[n++], done: !r };
936
- }
937
- };
938
- throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
939
- }
940
- function rt(r, t) {
941
- var e = typeof Symbol == "function" && r[Symbol.iterator];
942
- if (!e) return r;
943
- var n = e.call(r), a, o = [], d;
944
- try {
945
- for (; (t === void 0 || t-- > 0) && !(a = n.next()).done; ) o.push(a.value);
946
- } catch (b) {
947
- d = { error: b };
948
- } finally {
949
- try {
950
- a && !a.done && (e = n.return) && e.call(n);
951
- } finally {
952
- if (d) throw d.error;
953
- }
954
- }
955
- return o;
956
- }
957
- function nt(r, t, e) {
958
- if (arguments.length === 2) for (var n = 0, a = t.length, o; n < a; n++)
959
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
960
- return r.concat(o || t);
961
- }
962
- function Ce(r) {
963
- return typeof r == "function";
964
- }
965
- function Mt(r) {
966
- var t = function(n) {
967
- Error.call(n), n.stack = new Error().stack;
968
- }, e = r(t);
969
- return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
970
- }
971
- var Ke = Mt(function(r) {
972
- return function(e) {
973
- r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
974
- ` + e.map(function(n, a) {
975
- return a + 1 + ") " + n.toString();
976
- }).join(`
977
- `) : "", this.name = "UnsubscriptionError", this.errors = e;
978
- };
979
- });
980
- function it(r, t) {
981
- if (r) {
982
- var e = r.indexOf(t);
983
- 0 <= e && r.splice(e, 1);
984
- }
985
- }
986
- var Ze = function() {
987
- function r(t) {
988
- this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
989
- }
990
- return r.prototype.unsubscribe = function() {
991
- var t, e, n, a, o;
992
- if (!this.closed) {
993
- this.closed = !0;
994
- var d = this._parentage;
995
- if (d)
996
- if (this._parentage = null, Array.isArray(d))
997
- try {
998
- for (var b = tt(d), S = b.next(); !S.done; S = b.next()) {
999
- var P = S.value;
1000
- P.remove(this);
1001
- }
1002
- } catch (X) {
1003
- t = { error: X };
1004
- } finally {
1005
- try {
1006
- S && !S.done && (e = b.return) && e.call(b);
1007
- } finally {
1008
- if (t) throw t.error;
1009
- }
1010
- }
1011
- else
1012
- d.remove(this);
1013
- var C = this.initialTeardown;
1014
- if (Ce(C))
1015
- try {
1016
- C();
1017
- } catch (X) {
1018
- o = X instanceof Ke ? X.errors : [X];
1019
- }
1020
- var j = this._finalizers;
1021
- if (j) {
1022
- this._finalizers = null;
1023
- try {
1024
- for (var Q = tt(j), z = Q.next(); !z.done; z = Q.next()) {
1025
- var $ = z.value;
1026
- try {
1027
- pt($);
1028
- } catch (X) {
1029
- o = o ?? [], X instanceof Ke ? o = nt(nt([], rt(o)), rt(X.errors)) : o.push(X);
1030
- }
1031
- }
1032
- } catch (X) {
1033
- n = { error: X };
1034
- } finally {
1035
- try {
1036
- z && !z.done && (a = Q.return) && a.call(Q);
1037
- } finally {
1038
- if (n) throw n.error;
1039
- }
1040
- }
1041
- }
1042
- if (o)
1043
- throw new Ke(o);
1044
- }
1045
- }, r.prototype.add = function(t) {
1046
- var e;
1047
- if (t && t !== this)
1048
- if (this.closed)
1049
- pt(t);
1050
- else {
1051
- if (t instanceof r) {
1052
- if (t.closed || t._hasParent(this))
1053
- return;
1054
- t._addParent(this);
1055
- }
1056
- (this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
1057
- }
1058
- }, r.prototype._hasParent = function(t) {
1059
- var e = this._parentage;
1060
- return e === t || Array.isArray(e) && e.includes(t);
1061
- }, r.prototype._addParent = function(t) {
1062
- var e = this._parentage;
1063
- this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
1064
- }, r.prototype._removeParent = function(t) {
1065
- var e = this._parentage;
1066
- e === t ? this._parentage = null : Array.isArray(e) && it(e, t);
1067
- }, r.prototype.remove = function(t) {
1068
- var e = this._finalizers;
1069
- e && it(e, t), t instanceof r && t._removeParent(this);
1070
- }, r.EMPTY = function() {
1071
- var t = new r();
1072
- return t.closed = !0, t;
1073
- }(), r;
1074
- }(), Ot = Ze.EMPTY;
1075
- function At(r) {
1076
- return r instanceof Ze || r && "closed" in r && Ce(r.remove) && Ce(r.add) && Ce(r.unsubscribe);
1077
- }
1078
- function pt(r) {
1079
- Ce(r) ? r() : r.unsubscribe();
1080
- }
1081
- var mr = {
1082
- Promise: void 0
1083
- }, br = {
1084
- setTimeout: function(r, t) {
1085
- for (var e = [], n = 2; n < arguments.length; n++)
1086
- e[n - 2] = arguments[n];
1087
- return setTimeout.apply(void 0, nt([r, t], rt(e)));
1088
- },
1089
- clearTimeout: function(r) {
1090
- return clearTimeout(r);
1091
- },
1092
- delegate: void 0
1093
- };
1094
- function gr(r) {
1095
- br.setTimeout(function() {
1096
- throw r;
1097
- });
1098
- }
1099
- function vt() {
1100
- }
1101
- function qe(r) {
1102
- r();
1103
- }
1104
- var Ct = function(r) {
1105
- Ne(t, r);
1106
- function t(e) {
1107
- var n = r.call(this) || this;
1108
- return n.isStopped = !1, e ? (n.destination = e, At(e) && e.add(n)) : n.destination = Sr, n;
1109
- }
1110
- return t.create = function(e, n, a) {
1111
- return new ot(e, n, a);
1112
- }, t.prototype.next = function(e) {
1113
- this.isStopped || this._next(e);
1114
- }, t.prototype.error = function(e) {
1115
- this.isStopped || (this.isStopped = !0, this._error(e));
1116
- }, t.prototype.complete = function() {
1117
- this.isStopped || (this.isStopped = !0, this._complete());
1118
- }, t.prototype.unsubscribe = function() {
1119
- this.closed || (this.isStopped = !0, r.prototype.unsubscribe.call(this), this.destination = null);
1120
- }, t.prototype._next = function(e) {
1121
- this.destination.next(e);
1122
- }, t.prototype._error = function(e) {
1123
- try {
1124
- this.destination.error(e);
1125
- } finally {
1126
- this.unsubscribe();
1127
- }
1128
- }, t.prototype._complete = function() {
1129
- try {
1130
- this.destination.complete();
1131
- } finally {
1132
- this.unsubscribe();
1133
- }
1134
- }, t;
1135
- }(Ze), wr = function() {
1136
- function r(t) {
1137
- this.partialObserver = t;
1138
- }
1139
- return r.prototype.next = function(t) {
1140
- var e = this.partialObserver;
1141
- if (e.next)
1142
- try {
1143
- e.next(t);
1144
- } catch (n) {
1145
- Xe(n);
1146
- }
1147
- }, r.prototype.error = function(t) {
1148
- var e = this.partialObserver;
1149
- if (e.error)
1150
- try {
1151
- e.error(t);
1152
- } catch (n) {
1153
- Xe(n);
1154
- }
1155
- else
1156
- Xe(t);
1157
- }, r.prototype.complete = function() {
1158
- var t = this.partialObserver;
1159
- if (t.complete)
1160
- try {
1161
- t.complete();
1162
- } catch (e) {
1163
- Xe(e);
1164
- }
1165
- }, r;
1166
- }(), ot = function(r) {
1167
- Ne(t, r);
1168
- function t(e, n, a) {
1169
- var o = r.call(this) || this, d;
1170
- return Ce(e) || !e ? d = {
1171
- next: e ?? void 0,
1172
- error: n ?? void 0,
1173
- complete: a ?? void 0
1174
- } : d = e, o.destination = new wr(d), o;
1175
- }
1176
- return t;
1177
- }(Ct);
1178
- function Xe(r) {
1179
- gr(r);
1180
- }
1181
- function _r(r) {
1182
- throw r;
1183
- }
1184
- var Sr = {
1185
- closed: !0,
1186
- next: vt,
1187
- error: _r,
1188
- complete: vt
1189
- }, Tr = function() {
1190
- return typeof Symbol == "function" && Symbol.observable || "@@observable";
1191
- }();
1192
- function Er(r) {
1193
- return r;
1194
- }
1195
- function xr(r) {
1196
- return r.length === 0 ? Er : r.length === 1 ? r[0] : function(e) {
1197
- return r.reduce(function(n, a) {
1198
- return a(n);
1199
- }, e);
1200
- };
1201
- }
1202
- var yt = function() {
1203
- function r(t) {
1204
- t && (this._subscribe = t);
1205
- }
1206
- return r.prototype.lift = function(t) {
1207
- var e = new r();
1208
- return e.source = this, e.operator = t, e;
1209
- }, r.prototype.subscribe = function(t, e, n) {
1210
- var a = this, o = Mr(t) ? t : new ot(t, e, n);
1211
- return qe(function() {
1212
- var d = a, b = d.operator, S = d.source;
1213
- o.add(b ? b.call(o, S) : S ? a._subscribe(o) : a._trySubscribe(o));
1214
- }), o;
1215
- }, r.prototype._trySubscribe = function(t) {
1216
- try {
1217
- return this._subscribe(t);
1218
- } catch (e) {
1219
- t.error(e);
1220
- }
1221
- }, r.prototype.forEach = function(t, e) {
1222
- var n = this;
1223
- return e = mt(e), new e(function(a, o) {
1224
- var d = new ot({
1225
- next: function(b) {
1226
- try {
1227
- t(b);
1228
- } catch (S) {
1229
- o(S), d.unsubscribe();
1230
- }
1231
- },
1232
- error: o,
1233
- complete: a
1234
- });
1235
- n.subscribe(d);
1236
- });
1237
- }, r.prototype._subscribe = function(t) {
1238
- var e;
1239
- return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
1240
- }, r.prototype[Tr] = function() {
1241
- return this;
1242
- }, r.prototype.pipe = function() {
1243
- for (var t = [], e = 0; e < arguments.length; e++)
1244
- t[e] = arguments[e];
1245
- return xr(t)(this);
1246
- }, r.prototype.toPromise = function(t) {
1247
- var e = this;
1248
- return t = mt(t), new t(function(n, a) {
1249
- var o;
1250
- e.subscribe(function(d) {
1251
- return o = d;
1252
- }, function(d) {
1253
- return a(d);
1254
- }, function() {
1255
- return n(o);
1256
- });
1257
- });
1258
- }, r.create = function(t) {
1259
- return new r(t);
1260
- }, r;
1261
- }();
1262
- function mt(r) {
1263
- var t;
1264
- return (t = r ?? mr.Promise) !== null && t !== void 0 ? t : Promise;
1265
- }
1266
- function Dr(r) {
1267
- return r && Ce(r.next) && Ce(r.error) && Ce(r.complete);
1268
- }
1269
- function Mr(r) {
1270
- return r && r instanceof Ct || Dr(r) && At(r);
1271
- }
1272
- var Or = Mt(function(r) {
1273
- return function() {
1274
- r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
1275
- };
1276
- }), $t = function(r) {
1277
- Ne(t, r);
1278
- function t() {
1279
- var e = r.call(this) || this;
1280
- return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
1281
- }
1282
- return t.prototype.lift = function(e) {
1283
- var n = new bt(this, this);
1284
- return n.operator = e, n;
1285
- }, t.prototype._throwIfClosed = function() {
1286
- if (this.closed)
1287
- throw new Or();
1288
- }, t.prototype.next = function(e) {
1289
- var n = this;
1290
- qe(function() {
1291
- var a, o;
1292
- if (n._throwIfClosed(), !n.isStopped) {
1293
- n.currentObservers || (n.currentObservers = Array.from(n.observers));
1294
- try {
1295
- for (var d = tt(n.currentObservers), b = d.next(); !b.done; b = d.next()) {
1296
- var S = b.value;
1297
- S.next(e);
1298
- }
1299
- } catch (P) {
1300
- a = { error: P };
1301
- } finally {
1302
- try {
1303
- b && !b.done && (o = d.return) && o.call(d);
1304
- } finally {
1305
- if (a) throw a.error;
1306
- }
1307
- }
1308
- }
1309
- });
1310
- }, t.prototype.error = function(e) {
1311
- var n = this;
1312
- qe(function() {
1313
- if (n._throwIfClosed(), !n.isStopped) {
1314
- n.hasError = n.isStopped = !0, n.thrownError = e;
1315
- for (var a = n.observers; a.length; )
1316
- a.shift().error(e);
1317
- }
1318
- });
1319
- }, t.prototype.complete = function() {
1320
- var e = this;
1321
- qe(function() {
1322
- if (e._throwIfClosed(), !e.isStopped) {
1323
- e.isStopped = !0;
1324
- for (var n = e.observers; n.length; )
1325
- n.shift().complete();
1326
- }
1327
- });
1328
- }, t.prototype.unsubscribe = function() {
1329
- this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
1330
- }, Object.defineProperty(t.prototype, "observed", {
1331
- get: function() {
1332
- var e;
1333
- return ((e = this.observers) === null || e === void 0 ? void 0 : e.length) > 0;
1334
- },
1335
- enumerable: !1,
1336
- configurable: !0
1337
- }), t.prototype._trySubscribe = function(e) {
1338
- return this._throwIfClosed(), r.prototype._trySubscribe.call(this, e);
1339
- }, t.prototype._subscribe = function(e) {
1340
- return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
1341
- }, t.prototype._innerSubscribe = function(e) {
1342
- var n = this, a = this, o = a.hasError, d = a.isStopped, b = a.observers;
1343
- return o || d ? Ot : (this.currentObservers = null, b.push(e), new Ze(function() {
1344
- n.currentObservers = null, it(b, e);
1345
- }));
1346
- }, t.prototype._checkFinalizedStatuses = function(e) {
1347
- var n = this, a = n.hasError, o = n.thrownError, d = n.isStopped;
1348
- a ? e.error(o) : d && e.complete();
1349
- }, t.prototype.asObservable = function() {
1350
- var e = new yt();
1351
- return e.source = this, e;
1352
- }, t.create = function(e, n) {
1353
- return new bt(e, n);
1354
- }, t;
1355
- }(yt), bt = function(r) {
1356
- Ne(t, r);
1357
- function t(e, n) {
1358
- var a = r.call(this) || this;
1359
- return a.destination = e, a.source = n, a;
1360
- }
1361
- return t.prototype.next = function(e) {
1362
- var n, a;
1363
- (a = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || a === void 0 || a.call(n, e);
1364
- }, t.prototype.error = function(e) {
1365
- var n, a;
1366
- (a = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || a === void 0 || a.call(n, e);
1367
- }, t.prototype.complete = function() {
1368
- var e, n;
1369
- (n = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || n === void 0 || n.call(e);
1370
- }, t.prototype._subscribe = function(e) {
1371
- var n, a;
1372
- return (a = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(e)) !== null && a !== void 0 ? a : Ot;
1373
- }, t;
1374
- }($t), Lt = {
1375
- now: function() {
1376
- return (Lt.delegate || Date).now();
1377
- },
1378
- delegate: void 0
1379
- }, Ar = function(r) {
1380
- Ne(t, r);
1381
- function t(e, n, a) {
1382
- e === void 0 && (e = 1 / 0), n === void 0 && (n = 1 / 0), a === void 0 && (a = Lt);
1383
- var o = r.call(this) || this;
1384
- return o._bufferSize = e, o._windowTime = n, o._timestampProvider = a, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, e), o._windowTime = Math.max(1, n), o;
1385
- }
1386
- return t.prototype.next = function(e) {
1387
- var n = this, a = n.isStopped, o = n._buffer, d = n._infiniteTimeWindow, b = n._timestampProvider, S = n._windowTime;
1388
- a || (o.push(e), !d && o.push(b.now() + S)), this._trimBuffer(), r.prototype.next.call(this, e);
1389
- }, t.prototype._subscribe = function(e) {
1390
- this._throwIfClosed(), this._trimBuffer();
1391
- for (var n = this._innerSubscribe(e), a = this, o = a._infiniteTimeWindow, d = a._buffer, b = d.slice(), S = 0; S < b.length && !e.closed; S += o ? 1 : 2)
1392
- e.next(b[S]);
1393
- return this._checkFinalizedStatuses(e), n;
1394
- }, t.prototype._trimBuffer = function() {
1395
- var e = this, n = e._bufferSize, a = e._timestampProvider, o = e._buffer, d = e._infiniteTimeWindow, b = (d ? 1 : 2) * n;
1396
- if (n < 1 / 0 && b < o.length && o.splice(0, o.length - b), !d) {
1397
- for (var S = a.now(), P = 0, C = 1; C < o.length && o[C] <= S; C += 2)
1398
- P = C;
1399
- P && o.splice(0, P + 1);
1400
- }
1401
- }, t;
1402
- }($t);
1403
- const gt = [], wt = {}, Cr = (r, t = 0) => {
1404
- if (gt.indexOf(r) == -1) {
1405
- const e = new Ar(t);
1406
- wt[r] = e, gt.push(r);
1407
- }
1408
- return wt[r];
1409
- };
1410
- typeof window < "u" && (window.emWidgets = { topic: Cr });
1411
- const $r = (r) => r.toLowerCase().match(/android/i) ? "Android" : r.toLowerCase().match(/iphone/i) ? "iPhone" : r.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
1412
- String(Number.MAX_SAFE_INTEGER).length;
1413
- var Lr = je('<div class="tournaments-banner svelte-h8hbcz"><div class="tournaments-banner__skeleton svelte-h8hbcz" aria-busy="true"></div></div>'), Pr = je('<a class="tournaments-banner__slide svelte-h8hbcz"><!></a>'), Ir = je('<button type="button"></button>'), Fr = je('<div class="tournaments-banner__dots svelte-h8hbcz"></div>'), Rr = je('<div class="tournaments-banner svelte-h8hbcz" role="region" aria-roledescription="carousel"><div class="tournaments-banner__track svelte-h8hbcz"></div> <!></div>');
1414
- const Yr = {
1415
- hash: "svelte-h8hbcz",
1416
- code: `.tournaments-banner.svelte-h8hbcz {display:flex;flex-direction:column;gap:8px;.tournaments-banner__track:where(.svelte-h8hbcz) {display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain;scrollbar-width:none;-ms-overflow-style:none;&::-webkit-scrollbar {display:none;}}.tournaments-banner__slide:where(.svelte-h8hbcz) {display:block;flex:0 0 100%;color:inherit;text-decoration:none;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;cursor:pointer;&:focus-visible {outline:2px solid var(--border-alert, rgba(255, 204, 0, 1));outline-offset:-2px;border-radius:13px;}}.tournaments-banner__skeleton:where(.svelte-h8hbcz) {height:308px;border-radius:13px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));
1417
- animation: svelte-h8hbcz-tournaments-banner-pulse 1.5s ease-in-out infinite;}.tournaments-banner__dots:where(.svelte-h8hbcz) {display:flex;justify-content:center;gap:8px;}.tournaments-banner__dot:where(.svelte-h8hbcz) {width:8px;height:8px;padding:0;border:0;border-radius:50%;background:var(--text-subtle, rgba(223, 227, 232, 1));opacity:0.8;cursor:pointer;&.active {background:var(--text-brand, rgba(255, 204, 0, 1));opacity:1;}&:focus-visible {outline:2px solid var(--border-alert, rgba(255, 204, 0, 1));outline-offset:2px;}}}
1418
-
1419
- @keyframes svelte-h8hbcz-tournaments-banner-pulse {
1420
- 50% {
1421
- opacity: 0.4;
1422
- }
1423
- }
1424
-
1425
- @media (max-width: 767px) {.tournaments-banner.svelte-h8hbcz .tournaments-banner__skeleton:where(.svelte-h8hbcz) {height:160px;}
1426
- }
1427
-
1428
- @media (prefers-reduced-motion: reduce) {.tournaments-banner.svelte-h8hbcz .tournaments-banner__track:where(.svelte-h8hbcz) {scroll-behavior:auto;}.tournaments-banner.svelte-h8hbcz .tournaments-banner__skeleton:where(.svelte-h8hbcz) {
1429
- animation: none;}
1430
- }`
1431
- };
1432
- function Pt(r, t) {
1433
- Tt(t, !0), Ht(r, Yr);
1434
- const e = () => Zt(Qt, "$_", n), [n, a] = Bt(), o = re(t, "endpoint"), d = re(t, "language", 7, "en"), b = re(t, "session"), S = re(t, "platformProp", 7, null), P = re(t, "translationurl"), C = re(t, "navigationhref", 7, ""), j = re(t, "enableautoplay", 7, void 0), Q = re(t, "autoplayinterval", 7, void 0), z = re(t, "pauseoninteraction", 7, void 0), $ = re(t, "loop", 7, void 0), X = re(t, "showdots", 7, void 0);
1435
- jt({ withLocale: "en", translations: {} }), Nt(lr), ut(d()), kt(() => {
1436
- P() && Vt(P());
1437
- }), Ue(() => {
1438
- ut(d());
1439
- });
1440
- const T = cr() ? S() ?? "dk" : $r(window.navigator.userAgent);
1441
- let M = Ae(zt([])), N = Ae(!0), x = Ae(0), U = Ae(null), ee = Ae(!1), ie = Ae(!1), ce = Ae(!1), ae = Ae(!1), oe = Ae(!1);
1442
- const F = Fe(() => Ge(j(), hr)), O = Fe(() => Ge(z(), pr)), q = Fe(() => Ge($(), vr)), se = Fe(() => Ge(X(), yr)), v = Fe(() => Number(Q()) > 0 ? Math.max(Number(Q()), dr) : fr), l = (m) => `${C().replace(/\/$/, "")}/${m.id}`;
1443
- Ue(() => {
1444
- const m = {
1445
- endpoint: o(),
1446
- language: d(),
1447
- session: b(),
1448
- platform: T
1449
- };
1450
- if (!m.endpoint)
1451
- return;
1452
- let L = !1;
1453
- return ve(N, !0), ir(m).then((V) => {
1454
- L || (ve(M, V, !0), ve(x, 0));
1455
- }).catch((V) => {
1456
- console.log(V), L || ve(M, [], !0);
1457
- }).finally(() => {
1458
- L || ve(N, !1);
1459
- }), () => {
1460
- L = !0;
1461
- };
1462
- }), Ue(() => {
1463
- const m = window.matchMedia("(prefers-reduced-motion: reduce)"), L = () => {
1464
- ve(oe, m.matches, !0);
1465
- }, V = () => {
1466
- ve(ae, document.visibilityState === "hidden");
1467
- };
1468
- return L(), V(), m.addEventListener("change", L), document.addEventListener("visibilitychange", V), () => {
1469
- m.removeEventListener("change", L), document.removeEventListener("visibilitychange", V);
1470
- };
1471
- }), Ue(() => {
1472
- const m = A(x), L = A(M).length, V = A(O) && (A(ee) || A(ie) || A(ce)), fe = m >= L - 1;
1473
- if (!A(F) || L < 2 || V || A(ae) || A(oe) || fe && !A(q))
1474
- return;
1475
- const B = setTimeout(() => h((m + 1) % L), A(v));
1476
- return () => clearTimeout(B);
1477
- });
1478
- const s = () => {
1479
- !A(U) || !A(U).clientWidth || ve(x, Math.round(A(U).scrollLeft / A(U).clientWidth), !0);
1480
- }, h = (m) => {
1481
- A(U)?.scrollTo({ left: m * A(U).clientWidth, behavior: "smooth" });
1482
- }, u = (m) => {
1483
- ve(ie, m.target.matches(":focus-visible"), !0);
1484
- }, y = (m, L) => {
1485
- C() || (m.preventDefault(), tr(L));
1486
- };
1487
- var g = {
1488
- get endpoint() {
1489
- return o();
1490
- },
1491
- set endpoint(m) {
1492
- o(m), ne();
1493
- },
1494
- get language() {
1495
- return d();
1496
- },
1497
- set language(m = "en") {
1498
- d(m), ne();
1499
- },
1500
- get session() {
1501
- return b();
1502
- },
1503
- set session(m) {
1504
- b(m), ne();
1505
- },
1506
- get platformProp() {
1507
- return S();
1508
- },
1509
- set platformProp(m = null) {
1510
- S(m), ne();
1511
- },
1512
- get translationurl() {
1513
- return P();
1514
- },
1515
- set translationurl(m) {
1516
- P(m), ne();
1517
- },
1518
- get navigationhref() {
1519
- return C();
1520
- },
1521
- set navigationhref(m = "") {
1522
- C(m), ne();
1523
- },
1524
- get enableautoplay() {
1525
- return j();
1526
- },
1527
- set enableautoplay(m = void 0) {
1528
- j(m), ne();
1529
- },
1530
- get autoplayinterval() {
1531
- return Q();
1532
- },
1533
- set autoplayinterval(m = void 0) {
1534
- Q(m), ne();
1535
- },
1536
- get pauseoninteraction() {
1537
- return z();
1538
- },
1539
- set pauseoninteraction(m = void 0) {
1540
- z(m), ne();
1541
- },
1542
- get loop() {
1543
- return $();
1544
- },
1545
- set loop(m = void 0) {
1546
- $(m), ne();
1547
- },
1548
- get showdots() {
1549
- return X();
1550
- },
1551
- set showdots(m = void 0) {
1552
- X(m), ne();
1553
- }
1554
- }, w = Ut(), H = Wt(w);
1555
- {
1556
- var W = (m) => {
1557
- var L = Lr();
1558
- Ie(m, L);
1559
- }, te = (m) => {
1560
- var L = Rr(), V = lt(L);
1561
- ft(V, 23, () => A(M), (R) => R.id, (R, Z, he) => {
1562
- var ge = Pr(), we = lt(ge);
1563
- {
1564
- let i = Fe(() => A(he) === 0);
1565
- Jt(we, {
1566
- variant: "banner",
1567
- get priority() {
1568
- return A(i);
1569
- },
1570
- get src() {
1571
- return A(Z).thumbnail;
1572
- },
1573
- get alt() {
1574
- return A(Z).nameOrTitle;
1575
- },
1576
- get state() {
1577
- return A(Z).state;
1578
- },
1579
- get startTime() {
1580
- return A(Z).startTime;
1581
- },
1582
- get endTime() {
1583
- return A(Z).endTime;
1584
- },
1585
- get language() {
1586
- return d();
1587
- }
1588
- });
1589
- }
1590
- We(ge), dt(
1591
- (i, c) => {
1592
- Ve(ge, "href", i), Ve(ge, "aria-label", c);
1593
- },
1594
- [
1595
- () => C() ? l(A(Z)) : "#",
1596
- () => `${A(Z).nameOrTitle} – ${e()("bannerSlideLabel", {
1597
- values: { index: A(he) + 1, total: A(M).length }
1598
- })}`
1599
- ]
1600
- ), Re("click", ge, (i) => y(i, A(Z))), Ie(R, ge);
1601
- }), We(V), Gt(V, (R) => ve(U, R), () => A(U));
1602
- var fe = Xt(V, 2);
1603
- {
1604
- var B = (R) => {
1605
- var Z = Fr();
1606
- ft(Z, 23, () => A(M), (he) => he.id, (he, ge, we) => {
1607
- var i = Ir();
1608
- let c;
1609
- dt(
1610
- (p) => {
1611
- c = qt(i, 1, "tournaments-banner__dot svelte-h8hbcz", null, c, { active: A(we) === A(x) }), Ve(i, "aria-label", p), Ve(i, "aria-current", A(we) === A(x) ? "true" : void 0);
1612
- },
1613
- [
1614
- () => e()("bannerGoToSlide", { values: { index: A(we) + 1 } })
1615
- ]
1616
- ), Re("click", i, () => h(A(we))), Ie(he, i);
1617
- }), We(Z), Ie(R, Z);
1618
- };
1619
- ct(fe, (R) => {
1620
- A(se) && A(M).length > 1 && R(B);
1621
- });
1622
- }
1623
- We(L), Be("mouseenter", L, () => ve(ee, !0)), Be("mouseleave", L, () => ve(ee, !1)), Re("focusin", L, u), Re("focusout", L, () => ve(ie, !1)), Re("touchstart", L, () => ve(ce, !0)), Re("touchend", L, () => ve(ce, !1)), Be("touchcancel", L, () => ve(ce, !1)), Be("scroll", V, s), Ie(m, L);
1624
- };
1625
- ct(H, (m) => {
1626
- A(N) ? m(W) : A(M).length && m(te, 1);
1627
- });
1628
- }
1629
- Ie(r, w);
1630
- var le = Et(g);
1631
- return a(), le;
1632
- }
1633
- Yt(["focusin", "focusout", "touchstart", "touchend", "click"]);
1634
- St(
1635
- Pt,
1636
- {
1637
- endpoint: {},
1638
- language: {},
1639
- session: {},
1640
- platformProp: {},
1641
- translationurl: {},
1642
- navigationhref: {},
1643
- enableautoplay: {},
1644
- autoplayinterval: {},
1645
- pauseoninteraction: {},
1646
- loop: {},
1647
- showdots: {}
1648
- },
1649
- [],
1650
- [],
1651
- { mode: "open" }
1652
- );
1653
- function It(r, t) {
1654
- Tt(t, !0);
1655
- let e = re(t, "endpoint"), n = re(t, "language", 7, "en"), a = re(t, "session"), o = re(t, "platformProp", 7, null), d = re(t, "translationurl"), b = re(t, "navigationhref"), S = re(t, "enableautoplay"), P = re(t, "autoplayinterval"), C = re(t, "pauseoninteraction"), j = re(t, "loop"), Q = re(t, "showdots");
1656
- var z = {
1657
- get endpoint() {
1658
- return e();
1659
- },
1660
- set endpoint($) {
1661
- e($), ne();
1662
- },
1663
- get language() {
1664
- return n();
1665
- },
1666
- set language($ = "en") {
1667
- n($), ne();
1668
- },
1669
- get session() {
1670
- return a();
1671
- },
1672
- set session($) {
1673
- a($), ne();
1674
- },
1675
- get platformProp() {
1676
- return o();
1677
- },
1678
- set platformProp($ = null) {
1679
- o($), ne();
1680
- },
1681
- get translationurl() {
1682
- return d();
1683
- },
1684
- set translationurl($) {
1685
- d($), ne();
1686
- },
1687
- get navigationhref() {
1688
- return b();
1689
- },
1690
- set navigationhref($) {
1691
- b($), ne();
1692
- },
1693
- get enableautoplay() {
1694
- return S();
1695
- },
1696
- set enableautoplay($) {
1697
- S($), ne();
1698
- },
1699
- get autoplayinterval() {
1700
- return P();
1701
- },
1702
- set autoplayinterval($) {
1703
- P($), ne();
1704
- },
1705
- get pauseoninteraction() {
1706
- return C();
1707
- },
1708
- set pauseoninteraction($) {
1709
- C($), ne();
1710
- },
1711
- get loop() {
1712
- return j();
1713
- },
1714
- set loop($) {
1715
- j($), ne();
1716
- },
1717
- get showdots() {
1718
- return Q();
1719
- },
1720
- set showdots($) {
1721
- Q($), ne();
1722
- }
1723
- };
1724
- return Pt(r, {
1725
- get endpoint() {
1726
- return e();
1727
- },
1728
- get language() {
1729
- return n();
1730
- },
1731
- get session() {
1732
- return a();
1733
- },
1734
- get platformProp() {
1735
- return o();
1736
- },
1737
- get translationurl() {
1738
- return d();
1739
- },
1740
- get navigationhref() {
1741
- return b();
1742
- },
1743
- get enableautoplay() {
1744
- return S();
1745
- },
1746
- get autoplayinterval() {
1747
- return P();
1748
- },
1749
- get pauseoninteraction() {
1750
- return C();
1751
- },
1752
- get loop() {
1753
- return j();
1754
- },
1755
- get showdots() {
1756
- return Q();
1757
- }
1758
- }), Et(z);
1759
- }
1760
- customElements.define("tournaments-banner", St(
1761
- It,
1762
- {
1763
- endpoint: {},
1764
- language: {},
1765
- session: {},
1766
- platformProp: {},
1767
- translationurl: {},
1768
- navigationhref: {},
1769
- enableautoplay: {},
1770
- autoplayinterval: {},
1771
- pauseoninteraction: {},
1772
- loop: {},
1773
- showdots: {}
1774
- },
1775
- [],
1776
- []
1777
- ));
1778
- const Nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1779
- __proto__: null,
1780
- default: It
1781
- }, Symbol.toStringTag, { value: "Module" }));
1782
- export {
1783
- Pt as T,
1784
- Nr as a
1785
- };