@everymatrix/tournament-details-page 0.0.4 → 0.0.6
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/components/TournamentDetails-BwBvr-th.cjs +7 -0
- package/components/{TournamentDetails-glnpe9gf.js → TournamentDetails-DIfQFrc8.js} +1656 -1655
- package/components/{TournamentDetails-CIK1Vnx8.js → TournamentDetails-wSkU01Xy.js} +1921 -1920
- package/components/{TournamentDetailsPage-D6daHDII.js → TournamentDetailsPage-9QiBj_5p.js} +176 -176
- package/components/{TournamentDetailsPage-85B_WTCl.cjs → TournamentDetailsPage-du8_rjJX.cjs} +6 -6
- package/components/{TournamentDetailsPage-DCB9anwm.js → TournamentDetailsPage-rE5SsAXj.js} +128 -128
- package/components/TournamentGames-Dxvil6j2.js +383 -0
- package/components/TournamentGames-EuHRBJf0.js +355 -0
- package/components/TournamentGames-o7mTC32n.cjs +27 -0
- package/components/TournamentLeaderboard-BgywP9Jb.js +788 -0
- package/components/TournamentLeaderboard-m4CZolTW.cjs +30 -0
- package/components/TournamentLeaderboard-ncHvraaw.js +804 -0
- package/es2015/tournament-details-page.cjs +1 -1
- package/es2015/tournament-details-page.js +1 -1
- package/esnext/tournament-details-page.js +1 -1
- package/package.json +1 -1
- package/components/TournamentDetails-AYkmST0l.cjs +0 -7
- package/components/TournamentGames-0RUJ48Xu.js +0 -362
- package/components/TournamentGames-3qu_5rFn.cjs +0 -26
- package/components/TournamentGames-CDfNoeoq.js +0 -335
- package/components/TournamentLeaderboard-5oGHOpP6.js +0 -794
- package/components/TournamentLeaderboard-BUiKtCk5.cjs +0 -36
- package/components/TournamentLeaderboard-CF-QWN1C.js +0 -810
|
@@ -1,810 +0,0 @@
|
|
|
1
|
-
import { a as nr, $ as or, M as sr, m as ir, e as lr, p as De, u as dr, o as vr, g as W, i as _e, n as v, s as he, q as g, r as A, y as ue, h as L, j as cr, k as hr, L as Ye, w as q, l as Fe, I as We, x as Oe, J as Ze, C as ur, E as R, K as rr, t as fr, v as pr, F as gr, B as f, N as mr, A as tr } from "./TournamentDetails-CIK1Vnx8.js";
|
|
2
|
-
function yr(ie, V) {
|
|
3
|
-
nr(ie, V);
|
|
4
|
-
}
|
|
5
|
-
function br(ie) {
|
|
6
|
-
or.set(ie);
|
|
7
|
-
}
|
|
8
|
-
const ar = {
|
|
9
|
-
en: {
|
|
10
|
-
rank: "Rank",
|
|
11
|
-
user: "User",
|
|
12
|
-
points: "Points",
|
|
13
|
-
prize: "Prize",
|
|
14
|
-
notEnrolledRank: "You are currently not enrolled in this torunament",
|
|
15
|
-
myRanking: "My Ranking",
|
|
16
|
-
showMore: "Show More",
|
|
17
|
-
showLess: "Show Less",
|
|
18
|
-
emptyLeaderboard: "Currently there are no players enrolled in this tournament",
|
|
19
|
-
joinButton: "Join",
|
|
20
|
-
previousButton: "Previous",
|
|
21
|
-
nextButton: "Next"
|
|
22
|
-
},
|
|
23
|
-
tr: {
|
|
24
|
-
rank: "Sıralama",
|
|
25
|
-
user: "Kullanıcı",
|
|
26
|
-
points: "Puanlar",
|
|
27
|
-
prize: "Ödül",
|
|
28
|
-
notEnrolledRank: "Şu anda bu turnuvaya kayıtlı değilsiniz",
|
|
29
|
-
myRanking: "Sıralamam",
|
|
30
|
-
showMore: "Daha Fazla Göster",
|
|
31
|
-
showLess: "Daha Az Göster",
|
|
32
|
-
emptyLeaderboard: "Currently there are no players enrolled in this tournament",
|
|
33
|
-
joinButton: "Join",
|
|
34
|
-
previousButton: "Previous",
|
|
35
|
-
nextButton: "Next"
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
var er = { exports: {} };
|
|
39
|
-
/** @license
|
|
40
|
-
* eventsource.js
|
|
41
|
-
* Available under MIT License (MIT)
|
|
42
|
-
* https://github.com/Yaffle/EventSource/
|
|
43
|
-
*/
|
|
44
|
-
(function(ie, V) {
|
|
45
|
-
(function(w) {
|
|
46
|
-
var J = w.setTimeout, le = w.clearTimeout, k = w.XMLHttpRequest, ae = w.XDomainRequest, K = w.ActiveXObject, G = w.EventSource, F = w.document, Ge = w.Promise, O = w.fetch, fe = w.Response, Q = w.TextDecoder, xe = w.TextEncoder, Y = w.AbortController;
|
|
47
|
-
if (typeof window != "undefined" && typeof F != "undefined" && !("readyState" in F) && F.body == null && (F.readyState = "loading", window.addEventListener("load", function(e) {
|
|
48
|
-
F.readyState = "complete";
|
|
49
|
-
}, !1)), k == null && K != null && (k = function() {
|
|
50
|
-
return new K("Microsoft.XMLHTTP");
|
|
51
|
-
}), Object.create == null && (Object.create = function(e) {
|
|
52
|
-
function n() {
|
|
53
|
-
}
|
|
54
|
-
return n.prototype = e, new n();
|
|
55
|
-
}), Date.now || (Date.now = function() {
|
|
56
|
-
return (/* @__PURE__ */ new Date()).getTime();
|
|
57
|
-
}), Y == null) {
|
|
58
|
-
var z = O;
|
|
59
|
-
O = function(e, n) {
|
|
60
|
-
var s = n.signal;
|
|
61
|
-
return z(e, { headers: n.headers, credentials: n.credentials, cache: n.cache }).then(function(a) {
|
|
62
|
-
var c = a.body.getReader();
|
|
63
|
-
return s._reader = c, s._aborted && s._reader.cancel(), {
|
|
64
|
-
status: a.status,
|
|
65
|
-
statusText: a.statusText,
|
|
66
|
-
headers: a.headers,
|
|
67
|
-
body: {
|
|
68
|
-
getReader: function() {
|
|
69
|
-
return c;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
});
|
|
74
|
-
}, Y = function() {
|
|
75
|
-
this.signal = {
|
|
76
|
-
_reader: null,
|
|
77
|
-
_aborted: !1
|
|
78
|
-
}, this.abort = function() {
|
|
79
|
-
this.signal._reader != null && this.signal._reader.cancel(), this.signal._aborted = !0;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
function I() {
|
|
84
|
-
this.bitsNeeded = 0, this.codePoint = 0;
|
|
85
|
-
}
|
|
86
|
-
I.prototype.decode = function(e) {
|
|
87
|
-
function n(d, h, o) {
|
|
88
|
-
if (o === 1)
|
|
89
|
-
return d >= 128 >> h && d << h <= 2047;
|
|
90
|
-
if (o === 2)
|
|
91
|
-
return d >= 2048 >> h && d << h <= 55295 || d >= 57344 >> h && d << h <= 65535;
|
|
92
|
-
if (o === 3)
|
|
93
|
-
return d >= 65536 >> h && d << h <= 1114111;
|
|
94
|
-
throw new Error();
|
|
95
|
-
}
|
|
96
|
-
function s(d, h) {
|
|
97
|
-
if (d === 6 * 1)
|
|
98
|
-
return h >> 6 > 15 ? 3 : h > 31 ? 2 : 1;
|
|
99
|
-
if (d === 6 * 2)
|
|
100
|
-
return h > 15 ? 3 : 2;
|
|
101
|
-
if (d === 6 * 3)
|
|
102
|
-
return 3;
|
|
103
|
-
throw new Error();
|
|
104
|
-
}
|
|
105
|
-
for (var a = 65533, c = "", l = this.bitsNeeded, r = this.codePoint, i = 0; i < e.length; i += 1) {
|
|
106
|
-
var t = e[i];
|
|
107
|
-
l !== 0 && (t < 128 || t > 191 || !n(r << 6 | t & 63, l - 6, s(l, r))) && (l = 0, r = a, c += String.fromCharCode(r)), l === 0 ? (t >= 0 && t <= 127 ? (l = 0, r = t) : t >= 192 && t <= 223 ? (l = 6 * 1, r = t & 31) : t >= 224 && t <= 239 ? (l = 6 * 2, r = t & 15) : t >= 240 && t <= 247 ? (l = 6 * 3, r = t & 7) : (l = 0, r = a), l !== 0 && !n(r, l, s(l, r)) && (l = 0, r = a)) : (l -= 6, r = r << 6 | t & 63), l === 0 && (r <= 65535 ? c += String.fromCharCode(r) : (c += String.fromCharCode(55296 + (r - 65535 - 1 >> 10)), c += String.fromCharCode(56320 + (r - 65535 - 1 & 1023))));
|
|
108
|
-
}
|
|
109
|
-
return this.bitsNeeded = l, this.codePoint = r, c;
|
|
110
|
-
};
|
|
111
|
-
var pe = function() {
|
|
112
|
-
try {
|
|
113
|
-
return new Q().decode(new xe().encode("test"), { stream: !0 }) === "test";
|
|
114
|
-
} catch (e) {
|
|
115
|
-
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + e);
|
|
116
|
-
}
|
|
117
|
-
return !1;
|
|
118
|
-
};
|
|
119
|
-
(Q == null || xe == null || !pe()) && (Q = I);
|
|
120
|
-
var N = function() {
|
|
121
|
-
};
|
|
122
|
-
function U(e) {
|
|
123
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = N, this.onload = N, this.onerror = N, this.onreadystatechange = N, this._contentType = "", this._xhr = e, this._sendTimeout = 0, this._abort = N;
|
|
124
|
-
}
|
|
125
|
-
U.prototype.open = function(e, n) {
|
|
126
|
-
this._abort(!0);
|
|
127
|
-
var s = this, a = this._xhr, c = 1, l = 0;
|
|
128
|
-
this._abort = function(o) {
|
|
129
|
-
s._sendTimeout !== 0 && (le(s._sendTimeout), s._sendTimeout = 0), (c === 1 || c === 2 || c === 3) && (c = 4, a.onload = N, a.onerror = N, a.onabort = N, a.onprogress = N, a.onreadystatechange = N, a.abort(), l !== 0 && (le(l), l = 0), o || (s.readyState = 4, s.onabort(null), s.onreadystatechange())), c = 0;
|
|
130
|
-
};
|
|
131
|
-
var r = function() {
|
|
132
|
-
if (c === 1) {
|
|
133
|
-
var o = 0, u = "", b = void 0;
|
|
134
|
-
if ("contentType" in a)
|
|
135
|
-
o = 200, u = "OK", b = a.contentType;
|
|
136
|
-
else
|
|
137
|
-
try {
|
|
138
|
-
o = a.status, u = a.statusText, b = a.getResponseHeader("Content-Type");
|
|
139
|
-
} catch (x) {
|
|
140
|
-
o = 0, u = "", b = void 0;
|
|
141
|
-
}
|
|
142
|
-
o !== 0 && (c = 2, s.readyState = 2, s.status = o, s.statusText = u, s._contentType = b, s.onreadystatechange());
|
|
143
|
-
}
|
|
144
|
-
}, i = function() {
|
|
145
|
-
if (r(), c === 2 || c === 3) {
|
|
146
|
-
c = 3;
|
|
147
|
-
var o = "";
|
|
148
|
-
try {
|
|
149
|
-
o = a.responseText;
|
|
150
|
-
} catch (u) {
|
|
151
|
-
}
|
|
152
|
-
s.readyState = 3, s.responseText = o, s.onprogress();
|
|
153
|
-
}
|
|
154
|
-
}, t = function(o, u) {
|
|
155
|
-
if ((u == null || u.preventDefault == null) && (u = {
|
|
156
|
-
preventDefault: N
|
|
157
|
-
}), i(), c === 1 || c === 2 || c === 3) {
|
|
158
|
-
if (c = 4, l !== 0 && (le(l), l = 0), s.readyState = 4, o === "load")
|
|
159
|
-
s.onload(u);
|
|
160
|
-
else if (o === "error")
|
|
161
|
-
s.onerror(u);
|
|
162
|
-
else if (o === "abort")
|
|
163
|
-
s.onabort(u);
|
|
164
|
-
else
|
|
165
|
-
throw new TypeError();
|
|
166
|
-
s.onreadystatechange();
|
|
167
|
-
}
|
|
168
|
-
}, d = function(o) {
|
|
169
|
-
a != null && (a.readyState === 4 ? (!("onload" in a) || !("onerror" in a) || !("onabort" in a)) && t(a.responseText === "" ? "error" : "load", o) : a.readyState === 3 ? "onprogress" in a || i() : a.readyState === 2 && r());
|
|
170
|
-
}, h = function() {
|
|
171
|
-
l = J(function() {
|
|
172
|
-
h();
|
|
173
|
-
}, 500), a.readyState === 3 && i();
|
|
174
|
-
};
|
|
175
|
-
"onload" in a && (a.onload = function(o) {
|
|
176
|
-
t("load", o);
|
|
177
|
-
}), "onerror" in a && (a.onerror = function(o) {
|
|
178
|
-
t("error", o);
|
|
179
|
-
}), "onabort" in a && (a.onabort = function(o) {
|
|
180
|
-
t("abort", o);
|
|
181
|
-
}), "onprogress" in a && (a.onprogress = i), "onreadystatechange" in a && (a.onreadystatechange = function(o) {
|
|
182
|
-
d(o);
|
|
183
|
-
}), ("contentType" in a || !("ontimeout" in k.prototype)) && (n += (n.indexOf("?") === -1 ? "?" : "&") + "padding=true"), a.open(e, n, !0), "readyState" in a && (l = J(function() {
|
|
184
|
-
h();
|
|
185
|
-
}, 0));
|
|
186
|
-
}, U.prototype.abort = function() {
|
|
187
|
-
this._abort(!1);
|
|
188
|
-
}, U.prototype.getResponseHeader = function(e) {
|
|
189
|
-
return this._contentType;
|
|
190
|
-
}, U.prototype.setRequestHeader = function(e, n) {
|
|
191
|
-
var s = this._xhr;
|
|
192
|
-
"setRequestHeader" in s && s.setRequestHeader(e, n);
|
|
193
|
-
}, U.prototype.getAllResponseHeaders = function() {
|
|
194
|
-
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
195
|
-
}, U.prototype.send = function() {
|
|
196
|
-
if ((!("ontimeout" in k.prototype) || !("sendAsBinary" in k.prototype) && !("mozAnon" in k.prototype)) && F != null && F.readyState != null && F.readyState !== "complete") {
|
|
197
|
-
var e = this;
|
|
198
|
-
e._sendTimeout = J(function() {
|
|
199
|
-
e._sendTimeout = 0, e.send();
|
|
200
|
-
}, 4);
|
|
201
|
-
return;
|
|
202
|
-
}
|
|
203
|
-
var n = this._xhr;
|
|
204
|
-
"withCredentials" in n && (n.withCredentials = this.withCredentials);
|
|
205
|
-
try {
|
|
206
|
-
n.send(void 0);
|
|
207
|
-
} catch (s) {
|
|
208
|
-
throw s;
|
|
209
|
-
}
|
|
210
|
-
};
|
|
211
|
-
function Be(e) {
|
|
212
|
-
return e.replace(/[A-Z]/g, function(n) {
|
|
213
|
-
return String.fromCharCode(n.charCodeAt(0) + 32);
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
function ge(e) {
|
|
217
|
-
for (var n = /* @__PURE__ */ Object.create(null), s = e.split(`\r
|
|
218
|
-
`), a = 0; a < s.length; a += 1) {
|
|
219
|
-
var c = s[a], l = c.split(": "), r = l.shift(), i = l.join(": ");
|
|
220
|
-
n[Be(r)] = i;
|
|
221
|
-
}
|
|
222
|
-
this._map = n;
|
|
223
|
-
}
|
|
224
|
-
ge.prototype.get = function(e) {
|
|
225
|
-
return this._map[Be(e)];
|
|
226
|
-
}, k != null && k.HEADERS_RECEIVED == null && (k.HEADERS_RECEIVED = 2);
|
|
227
|
-
function Ie() {
|
|
228
|
-
}
|
|
229
|
-
Ie.prototype.open = function(e, n, s, a, c, l, r) {
|
|
230
|
-
e.open("GET", c);
|
|
231
|
-
var i = 0;
|
|
232
|
-
e.onprogress = function() {
|
|
233
|
-
var d = e.responseText, h = d.slice(i);
|
|
234
|
-
i += h.length, s(h);
|
|
235
|
-
}, e.onerror = function(d) {
|
|
236
|
-
d.preventDefault(), a(new Error("NetworkError"));
|
|
237
|
-
}, e.onload = function() {
|
|
238
|
-
a(null);
|
|
239
|
-
}, e.onabort = function() {
|
|
240
|
-
a(null);
|
|
241
|
-
}, e.onreadystatechange = function() {
|
|
242
|
-
if (e.readyState === k.HEADERS_RECEIVED) {
|
|
243
|
-
var d = e.status, h = e.statusText, o = e.getResponseHeader("Content-Type"), u = e.getAllResponseHeaders();
|
|
244
|
-
n(d, h, o, new ge(u));
|
|
245
|
-
}
|
|
246
|
-
}, e.withCredentials = l;
|
|
247
|
-
for (var t in r)
|
|
248
|
-
Object.prototype.hasOwnProperty.call(r, t) && e.setRequestHeader(t, r[t]);
|
|
249
|
-
return e.send(), e;
|
|
250
|
-
};
|
|
251
|
-
function He(e) {
|
|
252
|
-
this._headers = e;
|
|
253
|
-
}
|
|
254
|
-
He.prototype.get = function(e) {
|
|
255
|
-
return this._headers.get(e);
|
|
256
|
-
};
|
|
257
|
-
function Me() {
|
|
258
|
-
}
|
|
259
|
-
Me.prototype.open = function(e, n, s, a, c, l, r) {
|
|
260
|
-
var i = null, t = new Y(), d = t.signal, h = new Q();
|
|
261
|
-
return O(c, {
|
|
262
|
-
headers: r,
|
|
263
|
-
credentials: l ? "include" : "same-origin",
|
|
264
|
-
signal: d,
|
|
265
|
-
cache: "no-store"
|
|
266
|
-
}).then(function(o) {
|
|
267
|
-
return i = o.body.getReader(), n(o.status, o.statusText, o.headers.get("Content-Type"), new He(o.headers)), new Ge(function(u, b) {
|
|
268
|
-
var x = function() {
|
|
269
|
-
i.read().then(function(p) {
|
|
270
|
-
if (p.done)
|
|
271
|
-
u(void 0);
|
|
272
|
-
else {
|
|
273
|
-
var m = h.decode(p.value, { stream: !0 });
|
|
274
|
-
s(m), x();
|
|
275
|
-
}
|
|
276
|
-
}).catch(function(p) {
|
|
277
|
-
b(p);
|
|
278
|
-
});
|
|
279
|
-
};
|
|
280
|
-
x();
|
|
281
|
-
});
|
|
282
|
-
}).catch(function(o) {
|
|
283
|
-
if (o.name !== "AbortError")
|
|
284
|
-
return o;
|
|
285
|
-
}).then(function(o) {
|
|
286
|
-
a(o);
|
|
287
|
-
}), {
|
|
288
|
-
abort: function() {
|
|
289
|
-
i != null && i.cancel(), t.abort();
|
|
290
|
-
}
|
|
291
|
-
};
|
|
292
|
-
};
|
|
293
|
-
function me() {
|
|
294
|
-
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
295
|
-
}
|
|
296
|
-
function $e(e) {
|
|
297
|
-
J(function() {
|
|
298
|
-
throw e;
|
|
299
|
-
}, 0);
|
|
300
|
-
}
|
|
301
|
-
me.prototype.dispatchEvent = function(e) {
|
|
302
|
-
e.target = this;
|
|
303
|
-
var n = this._listeners[e.type];
|
|
304
|
-
if (n != null)
|
|
305
|
-
for (var s = n.length, a = 0; a < s; a += 1) {
|
|
306
|
-
var c = n[a];
|
|
307
|
-
try {
|
|
308
|
-
typeof c.handleEvent == "function" ? c.handleEvent(e) : c.call(this, e);
|
|
309
|
-
} catch (l) {
|
|
310
|
-
$e(l);
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}, me.prototype.addEventListener = function(e, n) {
|
|
314
|
-
e = String(e);
|
|
315
|
-
var s = this._listeners, a = s[e];
|
|
316
|
-
a == null && (a = [], s[e] = a);
|
|
317
|
-
for (var c = !1, l = 0; l < a.length; l += 1)
|
|
318
|
-
a[l] === n && (c = !0);
|
|
319
|
-
c || a.push(n);
|
|
320
|
-
}, me.prototype.removeEventListener = function(e, n) {
|
|
321
|
-
e = String(e);
|
|
322
|
-
var s = this._listeners, a = s[e];
|
|
323
|
-
if (a != null) {
|
|
324
|
-
for (var c = [], l = 0; l < a.length; l += 1)
|
|
325
|
-
a[l] !== n && c.push(a[l]);
|
|
326
|
-
c.length === 0 ? delete s[e] : s[e] = c;
|
|
327
|
-
}
|
|
328
|
-
};
|
|
329
|
-
function de(e) {
|
|
330
|
-
this.type = e, this.target = void 0;
|
|
331
|
-
}
|
|
332
|
-
function ye(e, n) {
|
|
333
|
-
de.call(this, e), this.data = n.data, this.lastEventId = n.lastEventId;
|
|
334
|
-
}
|
|
335
|
-
ye.prototype = Object.create(de.prototype);
|
|
336
|
-
function be(e, n) {
|
|
337
|
-
de.call(this, e), this.status = n.status, this.statusText = n.statusText, this.headers = n.headers;
|
|
338
|
-
}
|
|
339
|
-
be.prototype = Object.create(de.prototype);
|
|
340
|
-
function ze(e, n) {
|
|
341
|
-
de.call(this, e), this.error = n.error;
|
|
342
|
-
}
|
|
343
|
-
ze.prototype = Object.create(de.prototype);
|
|
344
|
-
var Pe = -1, Z = 0, ee = 1, ve = 2, Re = -1, re = 0, we = 1, Se = 2, Ue = 3, Te = /^text\/event\-stream(;.*)?$/i, Ve = 1e3, Ce = 18e6, Ae = function(e, n) {
|
|
345
|
-
var s = e == null ? n : parseInt(e, 10);
|
|
346
|
-
return s !== s && (s = n), je(s);
|
|
347
|
-
}, je = function(e) {
|
|
348
|
-
return Math.min(Math.max(e, Ve), Ce);
|
|
349
|
-
}, ce = function(e, n, s) {
|
|
350
|
-
try {
|
|
351
|
-
typeof n == "function" && n.call(e, s);
|
|
352
|
-
} catch (a) {
|
|
353
|
-
$e(a);
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
function B(e, n) {
|
|
357
|
-
me.call(this), n = n || {}, 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, Ke(this, e, n);
|
|
358
|
-
}
|
|
359
|
-
function Je() {
|
|
360
|
-
return k != null && "withCredentials" in k.prototype || ae == null ? new k() : new ae();
|
|
361
|
-
}
|
|
362
|
-
var Xe = O != null && fe != null && "body" in fe.prototype;
|
|
363
|
-
function Ke(e, n, s) {
|
|
364
|
-
n = String(n);
|
|
365
|
-
var a = !!s.withCredentials, c = s.lastEventIdQueryParameterName || "lastEventId", l = je(1e3), r = Ae(s.heartbeatTimeout, 45e3), i = "", t = l, d = !1, h = 0, o = s.headers || {}, u = s.Transport, b = Xe && u == null ? void 0 : new U(u != null ? new u() : Je()), x = u != null && typeof u != "string" ? new u() : b == null ? new Me() : new Ie(), p = void 0, m = 0, S = Pe, X = "", j = "", y = "", E = "", _ = re, te = 0, $ = 0, ne = function(T, P, H, M) {
|
|
366
|
-
if (S === Z)
|
|
367
|
-
if (T === 200 && H != null && Te.test(H)) {
|
|
368
|
-
S = ee, d = Date.now(), t = l, e.readyState = ee;
|
|
369
|
-
var D = new be("open", {
|
|
370
|
-
status: T,
|
|
371
|
-
statusText: P,
|
|
372
|
-
headers: M
|
|
373
|
-
});
|
|
374
|
-
e.dispatchEvent(D), ce(e, e.onopen, D);
|
|
375
|
-
} else {
|
|
376
|
-
var C = "";
|
|
377
|
-
T !== 200 ? (P && (P = P.replace(/\s+/g, " ")), C = "EventSource's response has a status " + T + " " + P + " that is not 200. Aborting the connection.") : C = "EventSource's response has a Content-Type specifying an unsupported type: " + (H == null ? "-" : H.replace(/\s+/g, " ")) + ". Aborting the connection.", Qe();
|
|
378
|
-
var D = new be("error", {
|
|
379
|
-
status: T,
|
|
380
|
-
statusText: P,
|
|
381
|
-
headers: M
|
|
382
|
-
});
|
|
383
|
-
e.dispatchEvent(D), ce(e, e.onerror, D), console.error(C);
|
|
384
|
-
}
|
|
385
|
-
}, ke = function(T) {
|
|
386
|
-
if (S === ee) {
|
|
387
|
-
for (var P = -1, H = 0; H < T.length; H += 1) {
|
|
388
|
-
var M = T.charCodeAt(H);
|
|
389
|
-
(M === 10 || M === 13) && (P = H);
|
|
390
|
-
}
|
|
391
|
-
var D = (P !== -1 ? E : "") + T.slice(0, P + 1);
|
|
392
|
-
E = (P === -1 ? E : "") + T.slice(P + 1), T !== "" && (d = Date.now(), h += T.length);
|
|
393
|
-
for (var C = 0; C < D.length; C += 1) {
|
|
394
|
-
var M = D.charCodeAt(C);
|
|
395
|
-
if (_ === Re && M === 10)
|
|
396
|
-
_ = re;
|
|
397
|
-
else if (_ === Re && (_ = re), M === 13 || M === 10) {
|
|
398
|
-
if (_ !== re) {
|
|
399
|
-
_ === we && ($ = C + 1);
|
|
400
|
-
var oe = D.slice(te, $ - 1), se = D.slice($ + ($ < C && D.charCodeAt($) === 32 ? 1 : 0), C);
|
|
401
|
-
oe === "data" ? (X += `
|
|
402
|
-
`, X += se) : oe === "id" ? j = se : oe === "event" ? y = se : oe === "retry" ? (l = Ae(se, l), t = l) : oe === "heartbeatTimeout" && (r = Ae(se, r), m !== 0 && (le(m), m = J(function() {
|
|
403
|
-
Ne();
|
|
404
|
-
}, r)));
|
|
405
|
-
}
|
|
406
|
-
if (_ === re) {
|
|
407
|
-
if (X !== "") {
|
|
408
|
-
i = j, y === "" && (y = "message");
|
|
409
|
-
var Ee = new ye(y, {
|
|
410
|
-
data: X.slice(1),
|
|
411
|
-
lastEventId: j
|
|
412
|
-
});
|
|
413
|
-
if (e.dispatchEvent(Ee), y === "open" ? ce(e, e.onopen, Ee) : y === "message" ? ce(e, e.onmessage, Ee) : y === "error" && ce(e, e.onerror, Ee), S === ve)
|
|
414
|
-
return;
|
|
415
|
-
}
|
|
416
|
-
X = "", y = "";
|
|
417
|
-
}
|
|
418
|
-
_ = M === 13 ? Re : re;
|
|
419
|
-
} else
|
|
420
|
-
_ === re && (te = C, _ = we), _ === we ? M === 58 && ($ = C + 1, _ = Se) : _ === Se && (_ = Ue);
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
}, Le = function(T) {
|
|
424
|
-
if (S === ee || S === Z) {
|
|
425
|
-
S = Pe, m !== 0 && (le(m), m = 0), m = J(function() {
|
|
426
|
-
Ne();
|
|
427
|
-
}, t), t = je(Math.min(l * 16, t * 2)), e.readyState = Z;
|
|
428
|
-
var P = new ze("error", { error: T });
|
|
429
|
-
e.dispatchEvent(P), ce(e, e.onerror, P), T != null && console.error(T);
|
|
430
|
-
}
|
|
431
|
-
}, Qe = function() {
|
|
432
|
-
S = ve, p != null && (p.abort(), p = void 0), m !== 0 && (le(m), m = 0), e.readyState = ve;
|
|
433
|
-
}, Ne = function() {
|
|
434
|
-
if (m = 0, S !== Pe) {
|
|
435
|
-
if (!d && p != null)
|
|
436
|
-
Le(new Error("No activity within " + r + " milliseconds. " + (S === Z ? "No response received." : h + " chars received.") + " Reconnecting.")), p != null && (p.abort(), p = void 0);
|
|
437
|
-
else {
|
|
438
|
-
var T = Math.max((d || Date.now()) + r - Date.now(), 1);
|
|
439
|
-
d = !1, m = J(function() {
|
|
440
|
-
Ne();
|
|
441
|
-
}, T);
|
|
442
|
-
}
|
|
443
|
-
return;
|
|
444
|
-
}
|
|
445
|
-
d = !1, h = 0, m = J(function() {
|
|
446
|
-
Ne();
|
|
447
|
-
}, r), S = Z, X = "", y = "", j = i, E = "", te = 0, $ = 0, _ = re;
|
|
448
|
-
var P = n;
|
|
449
|
-
if (n.slice(0, 5) !== "data:" && n.slice(0, 5) !== "blob:" && i !== "") {
|
|
450
|
-
var H = n.indexOf("?");
|
|
451
|
-
P = H === -1 ? n : n.slice(0, H + 1) + n.slice(H + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(se, Ee) {
|
|
452
|
-
return Ee === c ? "" : se;
|
|
453
|
-
}), P += (n.indexOf("?") === -1 ? "?" : "&") + c + "=" + encodeURIComponent(i);
|
|
454
|
-
}
|
|
455
|
-
var M = e.withCredentials, D = {};
|
|
456
|
-
D.Accept = "text/event-stream";
|
|
457
|
-
var C = e.headers;
|
|
458
|
-
if (C != null)
|
|
459
|
-
for (var oe in C)
|
|
460
|
-
Object.prototype.hasOwnProperty.call(C, oe) && (D[oe] = C[oe]);
|
|
461
|
-
try {
|
|
462
|
-
p = x.open(b, ne, ke, Le, P, M, D);
|
|
463
|
-
} catch (se) {
|
|
464
|
-
throw Qe(), se;
|
|
465
|
-
}
|
|
466
|
-
};
|
|
467
|
-
e.url = n, e.readyState = Z, e.withCredentials = a, e.headers = o, e._close = Qe, Ne();
|
|
468
|
-
}
|
|
469
|
-
B.prototype = Object.create(me.prototype), B.prototype.CONNECTING = Z, B.prototype.OPEN = ee, B.prototype.CLOSED = ve, B.prototype.close = function() {
|
|
470
|
-
this._close();
|
|
471
|
-
}, B.CONNECTING = Z, B.OPEN = ee, B.CLOSED = ve, B.prototype.withCredentials = void 0;
|
|
472
|
-
var qe = G;
|
|
473
|
-
k != null && (G == null || !("withCredentials" in G.prototype)) && (qe = B), function(e) {
|
|
474
|
-
{
|
|
475
|
-
var n = e(V);
|
|
476
|
-
n !== void 0 && (ie.exports = n);
|
|
477
|
-
}
|
|
478
|
-
}(function(e) {
|
|
479
|
-
e.EventSourcePolyfill = B, e.NativeEventSource = G, e.EventSource = qe;
|
|
480
|
-
});
|
|
481
|
-
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : sr : globalThis);
|
|
482
|
-
})(er, er.exports);
|
|
483
|
-
var wr = er.exports, jr = W('<span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh"> </span>', 1), _r = W('<p class="svelte-75jgrh"> </p>'), xr = W('<div class="PlayerRankWrapper svelte-75jgrh"><div class="PlayerRankLabels svelte-75jgrh"><span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh"> </span> <span class="svelte-75jgrh"> </span></div> <div class="PlayerRankData svelte-75jgrh"><!></div></div>'), Sr = W('<div class="PlayerRankSkeletonWrapper svelte-75jgrh"><div class="PlayerRankSkeleton svelte-75jgrh"><div class="SkeletonShimmer svelte-75jgrh"></div></div> <div class="PlayerRankSkeleton svelte-75jgrh"><div class="SkeletonShimmer svelte-75jgrh"></div></div></div>'), kr = W('<tr class="SkeletonRow svelte-75jgrh"><td class="Skeleton svelte-75jgrh"><div class="svelte-75jgrh"></div></td><td class="Skeleton svelte-75jgrh"><div class="svelte-75jgrh"></div></td><td class="Skeleton svelte-75jgrh"><div class="svelte-75jgrh"></div></td><td class="Skeleton svelte-75jgrh"><div class="svelte-75jgrh"></div></td></tr>'), Er = W('<tr><td class="svelte-75jgrh"> </td><td class="svelte-75jgrh"> </td><td class="svelte-75jgrh"> </td><td class="svelte-75jgrh"> </td></tr>'), Pr = W('<tr class="svelte-75jgrh"><td colspan="4" class="svelte-75jgrh"><div class="EmptyLeaderboard svelte-75jgrh"><p class="svelte-75jgrh"> </p></div></td></tr>'), Rr = W('<span class="PaginationButton Elipsis svelte-75jgrh">...</span>'), Tr = W("<button> </button>"), Cr = W('<div class="PaginationWrapper svelte-75jgrh"><button class="PaginationButton svelte-75jgrh"> </button> <div class="PageNumberWrapper svelte-75jgrh"></div> <button class="PaginationButton svelte-75jgrh"> </button></div>'), Ar = W('<div class="PaginationSkeleton svelte-75jgrh"><div class="PaginationSkeletonButton svelte-75jgrh"><div class="SkeletonShimmer svelte-75jgrh"></div></div> <div class="PaginationNumberSkeleton svelte-75jgrh"><div class="SkeletonShimmer svelte-75jgrh"></div></div> <div class="PaginationNumberSkeleton svelte-75jgrh"><div class="SkeletonShimmer svelte-75jgrh"></div></div> <div class="PaginationNumberSkeleton svelte-75jgrh"><div class="SkeletonShimmer svelte-75jgrh"></div></div> <div class="PaginationNumberSkeleton svelte-75jgrh"><div class="SkeletonShimmer svelte-75jgrh"></div></div> <div class="PaginationNumberSkeleton svelte-75jgrh"><div class="SkeletonShimmer svelte-75jgrh"></div></div> <div class="PaginationSkeletonButton svelte-75jgrh"><div class="SkeletonShimmer svelte-75jgrh"></div></div></div>'), Lr = W('<div class="LeaderboardWrapper svelte-75jgrh"><!> <table class="LeaderboardTable svelte-75jgrh"><thead class="LeaderboardTableHeader svelte-75jgrh"><tr class="svelte-75jgrh"><th class="svelte-75jgrh"> </th><th class="svelte-75jgrh"> </th><th class="svelte-75jgrh"> </th><th class="svelte-75jgrh"> </th></tr></thead><tbody class="LeaderboardTableBody svelte-75jgrh"><!></tbody></table> <!> <!></div>');
|
|
484
|
-
const Nr = {
|
|
485
|
-
hash: "svelte-75jgrh",
|
|
486
|
-
code: `.svelte-75jgrh,
|
|
487
|
-
.svelte-75jgrh::before,
|
|
488
|
-
.svelte-75jgrh::after {margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit;}.LeaderboardWrapper.svelte-75jgrh {background-color:var(--emw-color-bg-secondary, #333232);border-radius:6px;padding:16px;overflow:hidden;}.PlayerRankWrapper.svelte-75jgrh {display:flex;flex-direction:column;gap:5px;margin-top:20px;.PlayerRankLabels:where(.svelte-75jgrh), .PlayerRankData:where(.svelte-75jgrh) {display:grid;grid-template-columns:1fr 1fr 2fr;padding:6px;color:var(--emw-color-typography-secondary, #bdbdbd);font-size:14px;font-weight:400;& > span:where(.svelte-75jgrh):last-child{justify-self:end;}p:where(.svelte-75jgrh) {width:max-content;}}.PlayerRankData:where(.svelte-75jgrh) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;padding:12px;}}.PaginationWrapper.svelte-75jgrh {display:flex;justify-content:space-between;.PageNumberWrapper:where(.svelte-75jgrh) {display:flex;gap:6px;}.PaginationButton:where(.svelte-75jgrh) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography, #ffffff);border-radius:6px;border:none;outline:none;padding:10px;width:auto;cursor:pointer;&.Number {background-color:transparent;min-width:0;padding:0 10px;}&:hover {background-color:var(--emw-color-bg-elements, #4A4A4A);cursor:pointer;}&:active {transform:scale(0.9);}&:disabled {opacity:60%;pointer-events:none;}&.Active {background-color:var(--emw-color-bg-elements, #4A4A4A);}&.Elipsis {pointer-events:none;background-color:transparent;min-width:0;padding:0;align-self:center;}}}.LeaderboardTable.svelte-75jgrh {border-collapse:separate;border-spacing:0 12px;width:100%;table-layout:fixed;.PlayerRow:where(.svelte-75jgrh) {color:#F9C408;}thead:where(.svelte-75jgrh) th:where(.svelte-75jgrh) {background:transparent;padding:6px 16px;text-align:center;font-weight:400;color:var(--emw-color-typography-secondary, #bdbdbd);font-size:14px;}tbody:where(.svelte-75jgrh) tr:where(.svelte-75jgrh) {background-color:var(--emw-color-bg-section, #434343);color:var(--emw-color-typography-secondary, #bdbdbd);font-size:14px;font-weight:500;&:last-child{justify-self:end;}}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh) {padding:12px;background-color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):first-child {border-top-left-radius:8px;border-bottom-left-radius:8px;width:15%;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):nth-child(2) {width:35%;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):nth-child(3) {width:20%;}tbody:where(.svelte-75jgrh) td:where(.svelte-75jgrh):last-child {border-top-right-radius:8px;border-bottom-right-radius:8px;width:30%;}th:where(.svelte-75jgrh), td:where(.svelte-75jgrh) {text-align:center;vertical-align:middle;}tbody:where(.svelte-75jgrh) tr.Gold:where(.svelte-75jgrh){background:linear-gradient(to right, #a2851a, color-mix(in srgb, #a2851a 50%, var(--emw-color-bg-secondary, #434343) 50%), var(--emw-color-bg-secondary, #434343));}tbody:where(.svelte-75jgrh) tr.Silver:where(.svelte-75jgrh) {background:linear-gradient(to right, #b0aeae, color-mix(in srgb, #b0aeae, var(--emw-color-bg-secondary, #434343)), var(--emw-color-bg-secondary, #434343));}tbody:where(.svelte-75jgrh) tr.Bronze:where(.svelte-75jgrh) {background:linear-gradient(to right, #ac763c, color-mix(in srgb, #ac763c, var(--emw-color-bg-secondary, #434343)), var(--emw-color-bg-secondary, #434343));}}.EmptyLeaderboard.svelte-75jgrh {background-color:var(--emw-color-bg-secondary, #333232);color:var(--emw-color-typography-secondary, #bdbdbd);width:100%;border-radius:8px;margin:10px 0;text-align:center;padding:10px 0;}.SkeletonRow.svelte-75jgrh {height:41px;background:linear-gradient(
|
|
489
|
-
90deg,
|
|
490
|
-
transparent 25%,
|
|
491
|
-
var(--emw-color-skeleton, #333232) 50%,
|
|
492
|
-
transparent 75%
|
|
493
|
-
);background-size:200% 100%;
|
|
494
|
-
animation: svelte-75jgrh-loading 1.5s infinite;border-radius:4px;}.PlayerRankSkeletonWrapper.svelte-75jgrh {display:flex;justify-content:space-between;width:100%;gap:6px;flex-direction:column;.PlayerRankSkeleton:where(.svelte-75jgrh) {width:100%;height:40px;border-radius:6px;background-color:var(--emw-color-bg-secondary, #333232);border-radius:6px;}}.PaginationSkeleton.svelte-75jgrh {display:flex;justify-content:space-between;gap:6px;}.PaginationSkeletonButton.svelte-75jgrh {width:80px;height:40px;border-radius:6px;background-color:var(--emw-color-skeleton, #333232);overflow:hidden;position:relative;}.PaginationNumberSkeleton.svelte-75jgrh {width:40px;height:40px;border-radius:6px;background-color:var(--emw-color-skeleton, #333232);overflow:hidden;position:relative;}.SkeletonShimmer.svelte-75jgrh {width:100%;height:100%;background:linear-gradient(
|
|
495
|
-
90deg,
|
|
496
|
-
transparent 0%,
|
|
497
|
-
var(--emw-color-skeleton, #333232) 50%,
|
|
498
|
-
transparent 100%
|
|
499
|
-
);
|
|
500
|
-
animation: svelte-75jgrh-loading 1.5s infinite;transform:translateX(-100%);}
|
|
501
|
-
|
|
502
|
-
@keyframes svelte-75jgrh-loading {
|
|
503
|
-
0% {
|
|
504
|
-
transform: translateX(-100%);
|
|
505
|
-
}
|
|
506
|
-
100% {
|
|
507
|
-
transform: translateX(100%);
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
@media (min-width: 1000px) {.ShowPlayersButton.svelte-75jgrh {display:block;width:300px;margin:auto;background-color:var(--emw-color-bg-primary, #212121);}
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
@media (min-width: 750px) {.PaginationWrapper.svelte-75jgrh, .PaginationSkeleton.svelte-75jgrh {justify-content:end;gap:10px;}.PaginationButton.svelte-75jgrh {min-width:75px;}
|
|
515
|
-
}`
|
|
516
|
-
};
|
|
517
|
-
function Dr(ie, V) {
|
|
518
|
-
ir(V, !0), lr(ie, Nr);
|
|
519
|
-
const w = () => ur(gr, "$_", J), [J, le] = hr(), k = De(V, "endpoint"), ae = De(V, "language", 7, "en"), K = De(V, "session"), G = De(V, "tournamentid"), F = De(V, "platform");
|
|
520
|
-
Object.keys(ar).forEach((r) => {
|
|
521
|
-
yr(r, ar[r]);
|
|
522
|
-
});
|
|
523
|
-
const Ge = () => {
|
|
524
|
-
br(ae());
|
|
525
|
-
};
|
|
526
|
-
dr(() => {
|
|
527
|
-
Ge();
|
|
528
|
-
});
|
|
529
|
-
let O = null, fe = he(void 0), Q = he(!1), xe = he(!1), Y = he(void 0), z = he(0), I = he(10), pe = he(void 0), N = he(void 0);
|
|
530
|
-
const U = () => {
|
|
531
|
-
if (be.has(v(ye)))
|
|
532
|
-
return;
|
|
533
|
-
q(Q, !0);
|
|
534
|
-
const r = new URL(`${k()}/v1/tournaments/${G()}/leaderboard`), i = new Headers();
|
|
535
|
-
K() && i.append("X-SessionId", K()), r.searchParams.append("language", ae()), r.searchParams.append("platform", F()), r.searchParams.append("pagination", `offset=${v(z)},limit=${v(I)}`), fetch(r).then((t) => t.json()).then((t) => {
|
|
536
|
-
q(fe, t == null ? void 0 : t.items, !0), q(pe, t == null ? void 0 : t.pages, !0), q(N, t == null ? void 0 : t.total, !0), be.set(v(ye), v(fe));
|
|
537
|
-
}).catch((t) => console.log(t)).finally(() => q(Q, !1));
|
|
538
|
-
}, Be = (r) => {
|
|
539
|
-
const i = JSON.parse(r.data);
|
|
540
|
-
i && i.messageType === "LeaderBoardUpdate" && q(fe, i == null ? void 0 : i.items, !0);
|
|
541
|
-
}, ge = () => {
|
|
542
|
-
O && (O.close(), O = null);
|
|
543
|
-
const r = new URL(`${k()}/v1/tournaments/${G()}/leaderboard/updates`);
|
|
544
|
-
r.searchParams.append("HeartBeat", "false"), r.searchParams.append("language", ae()), r.searchParams.append("filter", "includeUnqualifiedPlayer=true"), r.searchParams.append("pagination", `offset=${v(z)},limit=${v(I)}`), r.searchParams.append("platform", F()), O = new wr.EventSourcePolyfill(r, {
|
|
545
|
-
headers: { accept: "text/event-stream", "X-SessionId": K() }
|
|
546
|
-
}), O.onmessage = Be;
|
|
547
|
-
}, Ie = () => {
|
|
548
|
-
q(xe, !0);
|
|
549
|
-
const r = new URL(`${k()}/v1/tournaments/leaderboard/player`), i = new Headers();
|
|
550
|
-
r.searchParams.append("language", ae()), r.searchParams.append("platform", F()), r.searchParams.append("filter", "includeUnqualifiedPlayer=false"), K() && i.append("X-SessionId", K()), fetch(r, { method: "GET", headers: i }).then((d) => d.json()).then((d) => {
|
|
551
|
-
var o;
|
|
552
|
-
const h = (o = d == null ? void 0 : d.items) == null ? void 0 : o.find((u) => {
|
|
553
|
-
var b;
|
|
554
|
-
return ((b = u == null ? void 0 : u.tournament) == null ? void 0 : b.id) === G();
|
|
555
|
-
});
|
|
556
|
-
q(Y, h == null ? void 0 : h.leaderBoard, !0), console.log(h, G(), d.items, "--- bla");
|
|
557
|
-
}).catch((d) => {
|
|
558
|
-
console.log(d);
|
|
559
|
-
}).finally(() => q(xe, !1));
|
|
560
|
-
}, He = () => {
|
|
561
|
-
var r;
|
|
562
|
-
(r = v(pe)) != null && r.next && (q(z, v(z) + v(I)), U(), ge());
|
|
563
|
-
}, Me = () => {
|
|
564
|
-
var r;
|
|
565
|
-
(r = v(pe)) != null && r.previous && v(z) !== 0 && (q(z, v(z) - v(I)), U(), ge());
|
|
566
|
-
}, me = (r) => {
|
|
567
|
-
q(z, (r - 1) * v(I)), U(), ge();
|
|
568
|
-
}, de = Ye(() => {
|
|
569
|
-
const r = Math.ceil(v(N) / v(I)), i = Math.floor(v(z) / v(I)) + 1;
|
|
570
|
-
if (r <= 5)
|
|
571
|
-
return Array.from({ length: r }, (d, h) => h + 1);
|
|
572
|
-
const t = [];
|
|
573
|
-
return t.push(1), i <= 3 ? (t.push(2, 3), t.push("..."), t.push(r)) : i >= r - 2 ? (t.push("..."), t.push(r - 2, r - 1, r)) : (t.push("..."), t.push(i - 1, i, i + 1), t.push("..."), t.push(r)), t;
|
|
574
|
-
}), ye = Ye(() => Math.floor(v(z) / v(I)) + 1);
|
|
575
|
-
let be = /* @__PURE__ */ new Map(), ze = Ye(() => {
|
|
576
|
-
var r;
|
|
577
|
-
return (r = be.get(v(ye))) != null ? r : [];
|
|
578
|
-
});
|
|
579
|
-
const Pe = (r, i) => {
|
|
580
|
-
const t = [];
|
|
581
|
-
return i && t.push("PlayerRow"), r === 1 && t.push("Gold"), r === 2 && t.push("Silver"), r === 3 && t.push("Bronze"), t.join(" ");
|
|
582
|
-
};
|
|
583
|
-
vr(() => (U(), Ie(), ge(), () => {
|
|
584
|
-
O == null || O.close(), O = null;
|
|
585
|
-
}));
|
|
586
|
-
var Z = {
|
|
587
|
-
get endpoint() {
|
|
588
|
-
return k();
|
|
589
|
-
},
|
|
590
|
-
set endpoint(r) {
|
|
591
|
-
k(r), Fe();
|
|
592
|
-
},
|
|
593
|
-
get language() {
|
|
594
|
-
return ae();
|
|
595
|
-
},
|
|
596
|
-
set language(r = "en") {
|
|
597
|
-
ae(r), Fe();
|
|
598
|
-
},
|
|
599
|
-
get session() {
|
|
600
|
-
return K();
|
|
601
|
-
},
|
|
602
|
-
set session(r) {
|
|
603
|
-
K(r), Fe();
|
|
604
|
-
},
|
|
605
|
-
get tournamentid() {
|
|
606
|
-
return G();
|
|
607
|
-
},
|
|
608
|
-
set tournamentid(r) {
|
|
609
|
-
G(r), Fe();
|
|
610
|
-
},
|
|
611
|
-
get platform() {
|
|
612
|
-
return F();
|
|
613
|
-
},
|
|
614
|
-
set platform(r) {
|
|
615
|
-
F(r), Fe();
|
|
616
|
-
}
|
|
617
|
-
}, ee = Lr(), ve = g(ee);
|
|
618
|
-
{
|
|
619
|
-
var Re = (r) => {
|
|
620
|
-
var i = xr(), t = g(i), d = g(t), h = g(d, !0);
|
|
621
|
-
f(d);
|
|
622
|
-
var o = A(d, 2), u = g(o, !0);
|
|
623
|
-
f(o);
|
|
624
|
-
var b = A(o, 2), x = g(b, !0);
|
|
625
|
-
f(b), f(t);
|
|
626
|
-
var p = A(t, 2), m = g(p);
|
|
627
|
-
{
|
|
628
|
-
var S = (j) => {
|
|
629
|
-
var y = jr(), E = Oe(y), _ = g(E);
|
|
630
|
-
f(E);
|
|
631
|
-
var te = A(E, 2), $ = g(te, !0);
|
|
632
|
-
f(te);
|
|
633
|
-
var ne = A(te, 2), ke = g(ne, !0);
|
|
634
|
-
f(ne), ue(() => {
|
|
635
|
-
var Le;
|
|
636
|
-
R(_, `${(Le = v(Y).rank) != null ? Le : ""}.`), R($, v(Y).score), R(ke, v(Y).prizeName || "-");
|
|
637
|
-
}), L(j, y);
|
|
638
|
-
}, X = (j) => {
|
|
639
|
-
var y = _r(), E = g(y, !0);
|
|
640
|
-
f(y), ue((_) => R(E, _), [() => w()("notEnrolledRank")]), L(j, y);
|
|
641
|
-
};
|
|
642
|
-
_e(m, (j) => {
|
|
643
|
-
v(Y) ? j(S) : j(X, !1);
|
|
644
|
-
});
|
|
645
|
-
}
|
|
646
|
-
f(p), f(i), ue(
|
|
647
|
-
(j, y, E) => {
|
|
648
|
-
R(h, j), R(u, y), R(x, E);
|
|
649
|
-
},
|
|
650
|
-
[
|
|
651
|
-
() => w()("myRanking"),
|
|
652
|
-
() => w()("points"),
|
|
653
|
-
() => w()("prize")
|
|
654
|
-
]
|
|
655
|
-
), L(r, i);
|
|
656
|
-
}, re = (r) => {
|
|
657
|
-
var i = Sr();
|
|
658
|
-
L(r, i);
|
|
659
|
-
};
|
|
660
|
-
_e(ve, (r) => {
|
|
661
|
-
v(xe) ? r(re, !1) : r(Re);
|
|
662
|
-
});
|
|
663
|
-
}
|
|
664
|
-
var we = A(ve, 2), Se = g(we), Ue = g(Se), Te = g(Ue), Ve = g(Te, !0);
|
|
665
|
-
f(Te);
|
|
666
|
-
var Ce = A(Te), Ae = g(Ce, !0);
|
|
667
|
-
f(Ce);
|
|
668
|
-
var je = A(Ce), ce = g(je, !0);
|
|
669
|
-
f(je);
|
|
670
|
-
var B = A(je), Je = g(B, !0);
|
|
671
|
-
f(B), f(Ue), f(Se);
|
|
672
|
-
var Xe = A(Se), Ke = g(Xe);
|
|
673
|
-
{
|
|
674
|
-
var qe = (r) => {
|
|
675
|
-
var i = We(), t = Oe(i);
|
|
676
|
-
Ze(t, 17, () => Array(v(I)), rr, (d, h, o, u) => {
|
|
677
|
-
var b = kr();
|
|
678
|
-
L(d, b);
|
|
679
|
-
}), L(r, i);
|
|
680
|
-
}, e = (r) => {
|
|
681
|
-
var i = We(), t = Oe(i);
|
|
682
|
-
{
|
|
683
|
-
var d = (o) => {
|
|
684
|
-
var u = We(), b = Oe(u);
|
|
685
|
-
Ze(b, 17, () => v(ze), (x) => x.rank, (x, p) => {
|
|
686
|
-
var m = Er(), S = g(m), X = g(S);
|
|
687
|
-
f(S);
|
|
688
|
-
var j = A(S), y = g(j, !0);
|
|
689
|
-
f(j);
|
|
690
|
-
var E = A(j), _ = g(E, !0);
|
|
691
|
-
f(E);
|
|
692
|
-
var te = A(E), $ = g(te, !0);
|
|
693
|
-
f(te), f(m), ue(
|
|
694
|
-
(ne) => {
|
|
695
|
-
var ke;
|
|
696
|
-
tr(m, 1, ne, "svelte-75jgrh"), R(X, `${(ke = v(p).rank) != null ? ke : ""}.`), R(y, v(p).shortName || "-"), R(_, v(p).score || "-"), R($, v(p).prizeName || "-");
|
|
697
|
-
},
|
|
698
|
-
[
|
|
699
|
-
() => {
|
|
700
|
-
var ne;
|
|
701
|
-
return mr(Pe(v(p).rank, v(p).rank === ((ne = v(Y)) == null ? void 0 : ne.rank)));
|
|
702
|
-
}
|
|
703
|
-
]
|
|
704
|
-
), L(x, m);
|
|
705
|
-
}), L(o, u);
|
|
706
|
-
}, h = (o) => {
|
|
707
|
-
var u = Pr(), b = g(u), x = g(b), p = g(x), m = g(p, !0);
|
|
708
|
-
f(p), f(x), f(b), f(u), ue((S) => R(m, S), [() => w()("emptyLeaderboard")]), L(o, u);
|
|
709
|
-
};
|
|
710
|
-
_e(
|
|
711
|
-
t,
|
|
712
|
-
(o) => {
|
|
713
|
-
var u;
|
|
714
|
-
((u = v(fe)) == null ? void 0 : u.length) > 0 ? o(d) : o(h, !1);
|
|
715
|
-
},
|
|
716
|
-
!0
|
|
717
|
-
);
|
|
718
|
-
}
|
|
719
|
-
L(r, i);
|
|
720
|
-
};
|
|
721
|
-
_e(Ke, (r) => {
|
|
722
|
-
v(Q) ? r(qe) : r(e, !1);
|
|
723
|
-
});
|
|
724
|
-
}
|
|
725
|
-
f(Xe), f(we);
|
|
726
|
-
var n = A(we, 2);
|
|
727
|
-
{
|
|
728
|
-
var s = (r) => {
|
|
729
|
-
var i = Cr(), t = g(i);
|
|
730
|
-
t.__click = Me;
|
|
731
|
-
var d = g(t, !0);
|
|
732
|
-
f(t);
|
|
733
|
-
var h = A(t, 2);
|
|
734
|
-
Ze(h, 21, () => v(de), rr, (b, x) => {
|
|
735
|
-
var p = We(), m = Oe(p);
|
|
736
|
-
{
|
|
737
|
-
var S = (j) => {
|
|
738
|
-
var y = Rr();
|
|
739
|
-
L(j, y);
|
|
740
|
-
}, X = (j) => {
|
|
741
|
-
var y = Tr();
|
|
742
|
-
let E;
|
|
743
|
-
y.__click = () => me(v(x));
|
|
744
|
-
var _ = g(y, !0);
|
|
745
|
-
f(y), ue(() => {
|
|
746
|
-
E = tr(y, 1, "PaginationButton Number svelte-75jgrh", null, E, { Active: v(x) === v(ye) }), R(_, v(x));
|
|
747
|
-
}), L(j, y);
|
|
748
|
-
};
|
|
749
|
-
_e(m, (j) => {
|
|
750
|
-
typeof v(x) != "number" ? j(S) : j(X, !1);
|
|
751
|
-
});
|
|
752
|
-
}
|
|
753
|
-
L(b, p);
|
|
754
|
-
}), f(h);
|
|
755
|
-
var o = A(h, 2);
|
|
756
|
-
o.__click = He;
|
|
757
|
-
var u = g(o, !0);
|
|
758
|
-
f(o), f(i), ue(
|
|
759
|
-
(b, x) => {
|
|
760
|
-
var p, m;
|
|
761
|
-
t.disabled = !((p = v(pe)) != null && p.previous), R(d, b), o.disabled = !((m = v(pe)) != null && m.next), R(u, x);
|
|
762
|
-
},
|
|
763
|
-
[() => w()("previousButton"), () => w()("nextButton")]
|
|
764
|
-
), L(r, i);
|
|
765
|
-
};
|
|
766
|
-
_e(n, (r) => {
|
|
767
|
-
!v(Q) && v(N) > v(I) && r(s);
|
|
768
|
-
});
|
|
769
|
-
}
|
|
770
|
-
var a = A(n, 2);
|
|
771
|
-
{
|
|
772
|
-
var c = (r) => {
|
|
773
|
-
var i = Ar();
|
|
774
|
-
L(r, i);
|
|
775
|
-
};
|
|
776
|
-
_e(a, (r) => {
|
|
777
|
-
v(Q) && r(c);
|
|
778
|
-
});
|
|
779
|
-
}
|
|
780
|
-
f(ee), ue(
|
|
781
|
-
(r, i, t, d) => {
|
|
782
|
-
R(Ve, r), R(Ae, i), R(ce, t), R(Je, d);
|
|
783
|
-
},
|
|
784
|
-
[
|
|
785
|
-
() => w()("rank"),
|
|
786
|
-
() => w()("user"),
|
|
787
|
-
() => w()("points"),
|
|
788
|
-
() => w()("prize")
|
|
789
|
-
]
|
|
790
|
-
), L(ie, ee);
|
|
791
|
-
var l = cr(Z);
|
|
792
|
-
return le(), l;
|
|
793
|
-
}
|
|
794
|
-
fr(["click"]);
|
|
795
|
-
customElements.define("tournament-leaderboard", pr(
|
|
796
|
-
Dr,
|
|
797
|
-
{
|
|
798
|
-
endpoint: {},
|
|
799
|
-
language: {},
|
|
800
|
-
session: {},
|
|
801
|
-
tournamentid: {},
|
|
802
|
-
platform: {}
|
|
803
|
-
},
|
|
804
|
-
[],
|
|
805
|
-
[],
|
|
806
|
-
!1
|
|
807
|
-
));
|
|
808
|
-
export {
|
|
809
|
-
Dr as default
|
|
810
|
-
};
|