@everymatrix/tournament-details-page 0.2.3 → 0.2.5
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/{ChartIcon-CQ9xzPNv.cjs → ChartIcon-Befgjhbq.cjs} +1 -1
- package/components/{ChartIcon-Bpak0Ha5.js → ChartIcon-Cijyoj4D.js} +1 -1
- package/components/{ChartIcon-jHYM_pz4.cjs → ChartIcon-DHA4OiwS.cjs} +1 -1
- package/components/{ChartIcon-Bhz3dlNt.js → ChartIcon-R4lVwti5.js} +1 -1
- package/components/{CoinStackIcon-w0E7Vjou.cjs → CoinStackIcon-BJ5Cza44.cjs} +1 -1
- package/components/{CoinStackIcon-Ccp3qOAA.js → CoinStackIcon-C1F7M7aX.js} +1 -1
- package/components/{CoinStackIcon-6LCcPwql.js → CoinStackIcon-D3SYgfiW.js} +1 -1
- package/components/{CoinStackIcon-gHBgq0A7.cjs → CoinStackIcon-DaTufppr.cjs} +1 -1
- package/components/{DocumentsIcon-SkzMlDao.js → DocumentsIcon-B8czAvSb.js} +1 -1
- package/components/{DocumentsIcon-D7v18JHm.cjs → DocumentsIcon-C-xeVT_v.cjs} +1 -1
- package/components/{DocumentsIcon-CCY_TgTL.js → DocumentsIcon-DNlyMYIU.js} +1 -1
- package/components/{DocumentsIcon-TikJpiUM.cjs → DocumentsIcon-SuePRQNo.cjs} +1 -1
- package/components/{FootballIcon-BxC3qLd6.cjs → FootballIcon-B8X-AjbG.cjs} +1 -1
- package/components/{FootballIcon-2V3-bZP6.cjs → FootballIcon-C4eNGKY4.cjs} +1 -1
- package/components/{FootballIcon-DiVQPE5J.js → FootballIcon-DVZ96gIt.js} +1 -1
- package/components/{FootballIcon-CNGC-ysJ.js → FootballIcon-u7l6pKui.js} +1 -1
- package/components/{PeopleIcon-nbIehGXq.cjs → PeopleIcon-BflWZAxo.cjs} +1 -1
- package/components/{PeopleIcon-CeTcZT9N.js → PeopleIcon-DLW94oOG.js} +1 -1
- package/components/{PeopleIcon-CIePqv40.cjs → PeopleIcon-DciAxL_a.cjs} +1 -1
- package/components/{PeopleIcon-DE_VDpzu.js → PeopleIcon-s7Ccyi1V.js} +1 -1
- package/components/{RankArrowIcon-CwlkgpW2.js → RankArrowIcon-97fk5fg5.js} +1 -1
- package/components/{RankArrowIcon-DeVP6SqV.js → RankArrowIcon-FXyB2gGq.js} +1 -1
- package/components/{RankArrowIcon-N3Rja8qO.cjs → RankArrowIcon-SoYkNu_W.cjs} +1 -1
- package/components/{RankArrowIcon-Dfflx6jx.cjs → RankArrowIcon-hrpZ9ET-.cjs} +1 -1
- package/components/{SlotMachineIcon-BfZMN8W8.js → SlotMachineIcon-BNa44gB0.js} +1 -1
- package/components/{SlotMachineIcon-B8LXNyS_.cjs → SlotMachineIcon-CaTi0xrT.cjs} +1 -1
- package/components/{SlotMachineIcon-Bcda_Xmo.js → SlotMachineIcon-CpTV5Gjw.js} +1 -1
- package/components/{SlotMachineIcon-BB--rwxm.cjs → SlotMachineIcon-DyoJSpjm.cjs} +1 -1
- package/components/{StatusBadge-48pKkesj.js → StatusBadge-1cAE-BMW.js} +1 -1
- package/components/{StatusBadge-CiBujliJ.cjs → StatusBadge-CMV-2nkA.cjs} +1 -1
- package/components/{StatusBadge-Bi4UTGIK.cjs → StatusBadge-DYQwo1l2.cjs} +1 -1
- package/components/{StatusBadge-BUU_5AgK.js → StatusBadge-Dz7gL5NT.js} +1 -1
- package/components/{TournamentActions-CZGHUCTG.js → TournamentActions-B4XIKdGS.js} +3 -3
- package/components/{TournamentActions-DrwI70Qj.js → TournamentActions-CIe9g5tR.js} +3 -3
- package/components/{TournamentActions-DYS3Zas8.cjs → TournamentActions-D0kIKeFb.cjs} +1 -1
- package/components/{TournamentActions-yR_aN1JY.cjs → TournamentActions-DHAVf_xi.cjs} +1 -1
- package/components/{TournamentDetailsPage-DEpxQPEA.cjs → TournamentDetailsPage-5vGjPG32.cjs} +2 -2
- package/components/{TournamentDetailsPage-Bp60Uk-8.js → TournamentDetailsPage-CQdLNEwc.js} +10 -10
- package/components/{TournamentDetailsPage-BuiUVQhu.cjs → TournamentDetailsPage-CdsWSXuQ.cjs} +2 -2
- package/components/{TournamentDetailsPage-Dnv8IQ1B.js → TournamentDetailsPage-DdXVtbXN.js} +10 -10
- package/components/{TournamentDetailsSkeleton-B7Qc2qaP.cjs → TournamentDetailsSkeleton-Ck8yL46X.cjs} +3 -3
- package/components/{TournamentDetailsSkeleton-qTpuepan.js → TournamentDetailsSkeleton-DA318hry.js} +8 -8
- package/components/{TournamentDetailsSkeleton-CFgmljN6.cjs → TournamentDetailsSkeleton-DYzVvOUN.cjs} +3 -3
- package/components/{TournamentDetailsSkeleton-Dn6_fjHV.js → TournamentDetailsSkeleton-DthtZKyT.js} +8 -8
- package/components/TournamentGames-CM0_tj8g.cjs +19 -0
- package/components/TournamentGames-D4b31JLG.cjs +19 -0
- package/components/TournamentGames-VQKGwemr.js +325 -0
- package/components/TournamentGames-n4c8SvY_.js +303 -0
- package/components/{TournamentImage-B8k7urkf.js → TournamentImage-87bhDEnk.js} +1 -1
- package/components/{TournamentImage-DAfP40BM.js → TournamentImage-D0na0-p6.js} +1 -1
- package/components/{TournamentImage-By_eps51.cjs → TournamentImage-D6eLaW4m.cjs} +1 -1
- package/components/{TournamentImage-BxojXrGF.cjs → TournamentImage-DK1HgudW.cjs} +1 -1
- package/components/{TournamentLeaderboard-C1uFc5GZ.cjs → TournamentLeaderboard-C3iblI14.cjs} +9 -9
- package/components/{TournamentLeaderboard-Bk72WFe2.js → TournamentLeaderboard-Cc-xMiwP.js} +179 -179
- package/components/{TournamentLeaderboard-cnaAJbty.js → TournamentLeaderboard-DvvnA47t.js} +252 -252
- package/components/{TournamentLeaderboard-BHGPwbuz.cjs → TournamentLeaderboard-NEJ1wTBv.cjs} +2 -2
- package/components/TournamentRules-CyqSU5RQ.js +147 -0
- package/components/TournamentRules-D9R2cmXK.js +152 -0
- package/components/TournamentRules-DDlD1tXH.cjs +6 -0
- package/components/TournamentRules-OGoN3OYX.cjs +6 -0
- package/components/{TournamentSummary-DPIK4FyI.cjs → TournamentSummary-BY9YlM53.cjs} +1 -1
- package/components/{TournamentSummary-DRt9iIEz.js → TournamentSummary-CewShnfd.js} +6 -6
- package/components/{TournamentSummary-DAVQCaqt.js → TournamentSummary-D_DLGxO7.js} +6 -6
- package/components/{TournamentSummary-BvxGV6na.cjs → TournamentSummary-Dy6cHmly.cjs} +1 -1
- package/components/{TournamentTabs-D4lAhT6v.cjs → TournamentTabs-3OdZuIOf.cjs} +1 -1
- package/components/{TournamentTabs-C5mZ8N3x.cjs → TournamentTabs-BDsQomg2.cjs} +1 -1
- package/components/{TournamentTabs-DOIFHU3l.js → TournamentTabs-mlb4UDEZ.js} +2 -2
- package/components/{TournamentTabs-BVNuWoQ4.js → TournamentTabs-yOsQleAI.js} +2 -2
- package/components/{TrophyIcon-95ROc4Lc.cjs → TrophyIcon-CUdep5Qu.cjs} +1 -1
- package/components/{TrophyIcon-BqeMso6k.js → TrophyIcon-D6xEdEIW.js} +1 -1
- package/components/{TrophyIcon-BuT5Q6K0.cjs → TrophyIcon-DJDEDfa7.cjs} +1 -1
- package/components/{TrophyIcon-BolnMSK-.js → TrophyIcon-rK1Ad8lv.js} +1 -1
- package/components/{translations-CPDBBwzN.cjs → translations-B2zzqYUc.cjs} +1 -1
- package/components/{translations-CzV51BzW.js → translations-BPv4iAvC.js} +10 -7
- package/components/{translations-CoULEJN6.js → translations-BY4crXAR.js} +10 -7
- package/components/{translations-Bgd_tQSB.cjs → translations-CmWDttoq.cjs} +1 -1
- package/es2015/tournament-details-page.cjs +1 -1
- package/es2015/tournament-details-page.js +2 -2
- package/esnext/tournament-details-page.cjs +1 -1
- package/esnext/tournament-details-page.js +2 -2
- package/package.json +1 -1
- package/components/TournamentGames-BHzZyU1T.cjs +0 -19
- package/components/TournamentGames-BSbbbGfz.js +0 -313
- package/components/TournamentGames-D9NuiZl1.js +0 -291
- package/components/TournamentGames-Zkp7iS-3.cjs +0 -19
- package/components/TournamentRules-B392M3KD.js +0 -138
- package/components/TournamentRules-BpcwEy6C.cjs +0 -6
- package/components/TournamentRules-D8ePsXfz.js +0 -143
- package/components/TournamentRules-DRhqdG_B.cjs +0 -6
|
@@ -10,24 +10,24 @@ var ue = (A, e, r) => e in A ? ze(A, e, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
Te.call(e, r) && ue(A, r, e[r]);
|
|
11
11
|
return A;
|
|
12
12
|
}, ce = (A, e) => Se(A, Ee(e));
|
|
13
|
-
var CA = (A, e, r) => new Promise((f,
|
|
13
|
+
var CA = (A, e, r) => new Promise((f, g) => {
|
|
14
14
|
var y = (S) => {
|
|
15
15
|
try {
|
|
16
16
|
O(r.next(S));
|
|
17
17
|
} catch (Z) {
|
|
18
|
-
|
|
18
|
+
g(Z);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, B = (S) => {
|
|
21
21
|
try {
|
|
22
22
|
O(r.throw(S));
|
|
23
23
|
} catch (Z) {
|
|
24
|
-
|
|
24
|
+
g(Z);
|
|
25
25
|
}
|
|
26
|
-
}, O = (S) => S.done ? f(S.value) : Promise.resolve(S.value).then(y,
|
|
26
|
+
}, O = (S) => S.done ? f(S.value) : Promise.resolve(S.value).then(y, B);
|
|
27
27
|
O((r = r.apply(A, e)).next());
|
|
28
28
|
});
|
|
29
|
-
import { A as de, B as ye, C as Re, c as xe, g as Ne, a as
|
|
30
|
-
import { T as He } from "./translations-
|
|
29
|
+
import { A as de, B as ye, C as Re, c as xe, g as Ne, a as Be, p as HA, D as De, E as fe, F as We, G as qA, o as TA, H as Ze, i as KA, b as yA, d as Ge, f as WA, q as VA, I as Oe, J as ke, j as o, K as ae, m as X, L as je, h as XA, s as NA, r as LA, u as RA, M as BA, t as _A, N as DA, O as he, P as me, Q as te, R as ie, k as pe, l as $A, T as Fe, U as Ie, V as Le, $ as Pe, z as ve, W as oe, X as ge, Y as Qe } from "./StatusBadge-1cAE-BMW.js";
|
|
30
|
+
import { T as He } from "./translations-BPv4iAvC.js";
|
|
31
31
|
typeof globalThis.HTMLElement == "undefined" && (globalThis.HTMLElement = class {
|
|
32
32
|
}, globalThis.customElements = { define() {
|
|
33
33
|
}, get() {
|
|
@@ -46,13 +46,13 @@ const Ve = (A, e) => {
|
|
|
46
46
|
let r = !1;
|
|
47
47
|
const f = () => {
|
|
48
48
|
r || (r = !0, A());
|
|
49
|
-
},
|
|
49
|
+
}, g = () => {
|
|
50
50
|
r && (r = !1, e());
|
|
51
|
-
}, y = (
|
|
52
|
-
|
|
51
|
+
}, y = (B) => {
|
|
52
|
+
B.persisted && f();
|
|
53
53
|
};
|
|
54
|
-
return f(), window.addEventListener("pagehide",
|
|
55
|
-
window.removeEventListener("pagehide",
|
|
54
|
+
return f(), window.addEventListener("pagehide", g), window.addEventListener("pageshow", y), () => {
|
|
55
|
+
window.removeEventListener("pagehide", g), window.removeEventListener("pageshow", y), g();
|
|
56
56
|
};
|
|
57
57
|
}, Mt = (A, e, r = {}) => {
|
|
58
58
|
PA("DetailPageOpen", UA({
|
|
@@ -95,13 +95,13 @@ const Ve = (A, e) => {
|
|
|
95
95
|
errorMessage: r
|
|
96
96
|
});
|
|
97
97
|
}, Nt = (A, e, r) => {
|
|
98
|
-
var f,
|
|
98
|
+
var f, g;
|
|
99
99
|
PA("PlayGame", UA({
|
|
100
100
|
launchUrl: A.launchUrl,
|
|
101
101
|
id: A.gameId,
|
|
102
102
|
thumbnail: A.thumbnail,
|
|
103
103
|
name: A.name,
|
|
104
|
-
vendorName: ((f = A.vendor) == null ? void 0 : f.displayName) || ((
|
|
104
|
+
vendorName: ((f = A.vendor) == null ? void 0 : f.displayName) || ((g = A.vendor) == null ? void 0 : g.name),
|
|
105
105
|
gameType: A.type,
|
|
106
106
|
tournamentId: e == null ? void 0 : e.id,
|
|
107
107
|
tournamentName: e == null ? void 0 : e.nameOrTitle
|
|
@@ -109,10 +109,10 @@ const Ve = (A, e) => {
|
|
|
109
109
|
}, we = (A) => {
|
|
110
110
|
const e = new Headers();
|
|
111
111
|
return A && e.append("X-SessionId", A), e;
|
|
112
|
-
},
|
|
113
|
-
var
|
|
112
|
+
}, Bt = (A) => CA(void 0, null, function* () {
|
|
113
|
+
var g;
|
|
114
114
|
const e = new URL(`${A.endpoint}/v1/tournaments/${A.tournamentid}`);
|
|
115
|
-
A.filterById && e.searchParams.append("filter", `id=${A.tournamentid}`), e.searchParams.append("language", A.language), e.searchParams.append("expand", "games"), A.gamesLimit !== void 0 && e.searchParams.append("pagination", `games(limit=${A.gamesLimit},offset=${(
|
|
115
|
+
A.filterById && e.searchParams.append("filter", `id=${A.tournamentid}`), e.searchParams.append("language", A.language), e.searchParams.append("expand", "games"), A.gamesLimit !== void 0 && e.searchParams.append("pagination", `games(limit=${A.gamesLimit},offset=${(g = A.gamesOffset) != null ? g : 0})`), e.searchParams.append("platform", A.platform);
|
|
116
116
|
const f = yield (yield fetch(e, { method: "GET", headers: we(A.session) })).json();
|
|
117
117
|
return f == null ? void 0 : f.item;
|
|
118
118
|
});
|
|
@@ -124,7 +124,7 @@ var se = { exports: {} };
|
|
|
124
124
|
*/
|
|
125
125
|
(function(A, e) {
|
|
126
126
|
(function(r) {
|
|
127
|
-
var f = r.setTimeout,
|
|
127
|
+
var f = r.setTimeout, g = r.clearTimeout, y = r.XMLHttpRequest, B = r.XDomainRequest, O = r.ActiveXObject, S = r.EventSource, Z = r.document, N = r.Promise, I = r.fetch, wA = r.Response, lA = r.TextDecoder, Q = r.TextEncoder, aA = r.AbortController;
|
|
128
128
|
if (typeof window != "undefined" && typeof Z != "undefined" && !("readyState" in Z) && Z.body == null && (Z.readyState = "loading", window.addEventListener("load", function(t) {
|
|
129
129
|
Z.readyState = "complete";
|
|
130
130
|
}, !1)), y == null && O != null && (y = function() {
|
|
@@ -136,8 +136,8 @@ var se = { exports: {} };
|
|
|
136
136
|
}), Date.now || (Date.now = function() {
|
|
137
137
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
138
138
|
}), aA == null) {
|
|
139
|
-
var w =
|
|
140
|
-
|
|
139
|
+
var w = I;
|
|
140
|
+
I = function(t, c) {
|
|
141
141
|
var p = c.signal;
|
|
142
142
|
return w(t, { headers: c.headers, credentials: c.credentials, cache: c.cache }).then(function(u) {
|
|
143
143
|
var C = u.body.getReader();
|
|
@@ -191,23 +191,23 @@ var se = { exports: {} };
|
|
|
191
191
|
};
|
|
192
192
|
var j = function() {
|
|
193
193
|
try {
|
|
194
|
-
return new lA().decode(new
|
|
194
|
+
return new lA().decode(new Q().encode("test"), { stream: !0 }) === "test";
|
|
195
195
|
} catch (t) {
|
|
196
196
|
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + t);
|
|
197
197
|
}
|
|
198
198
|
return !1;
|
|
199
199
|
};
|
|
200
|
-
(lA == null ||
|
|
200
|
+
(lA == null || Q == null || !j()) && (lA = x);
|
|
201
201
|
var T = function() {
|
|
202
202
|
};
|
|
203
|
-
function
|
|
203
|
+
function H(t) {
|
|
204
204
|
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = T, this.onload = T, this.onerror = T, this.onreadystatechange = T, this._contentType = "", this._xhr = t, this._sendTimeout = 0, this._abort = T;
|
|
205
205
|
}
|
|
206
|
-
|
|
206
|
+
H.prototype.open = function(t, c) {
|
|
207
207
|
this._abort(!0);
|
|
208
208
|
var p = this, u = this._xhr, C = 1, M = 0;
|
|
209
209
|
this._abort = function(a) {
|
|
210
|
-
p._sendTimeout !== 0 && (
|
|
210
|
+
p._sendTimeout !== 0 && (g(p._sendTimeout), p._sendTimeout = 0), (C === 1 || C === 2 || C === 3) && (C = 4, u.onload = T, u.onerror = T, u.onabort = T, u.onprogress = T, u.onreadystatechange = T, u.abort(), M !== 0 && (g(M), M = 0), a || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), C = 0;
|
|
211
211
|
};
|
|
212
212
|
var W = function() {
|
|
213
213
|
if (C === 1) {
|
|
@@ -236,7 +236,7 @@ var se = { exports: {} };
|
|
|
236
236
|
if ((m == null || m.preventDefault == null) && (m = {
|
|
237
237
|
preventDefault: T
|
|
238
238
|
}), nA(), C === 1 || C === 2 || C === 3) {
|
|
239
|
-
if (C = 4, M !== 0 && (
|
|
239
|
+
if (C = 4, M !== 0 && (g(M), M = 0), p.readyState = 4, a === "load")
|
|
240
240
|
p.onload(m);
|
|
241
241
|
else if (a === "error")
|
|
242
242
|
p.onerror(m);
|
|
@@ -264,16 +264,16 @@ var se = { exports: {} };
|
|
|
264
264
|
}), ("contentType" in u || !("ontimeout" in y.prototype)) && (c += (c.indexOf("?") === -1 ? "?" : "&") + "padding=true"), u.open(t, c, !0), "readyState" in u && (M = f(function() {
|
|
265
265
|
s();
|
|
266
266
|
}, 0));
|
|
267
|
-
},
|
|
267
|
+
}, H.prototype.abort = function() {
|
|
268
268
|
this._abort(!1);
|
|
269
|
-
},
|
|
269
|
+
}, H.prototype.getResponseHeader = function(t) {
|
|
270
270
|
return this._contentType;
|
|
271
|
-
},
|
|
271
|
+
}, H.prototype.setRequestHeader = function(t, c) {
|
|
272
272
|
var p = this._xhr;
|
|
273
273
|
"setRequestHeader" in p && p.setRequestHeader(t, c);
|
|
274
|
-
},
|
|
274
|
+
}, H.prototype.getAllResponseHeaders = function() {
|
|
275
275
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
276
|
-
},
|
|
276
|
+
}, H.prototype.send = function() {
|
|
277
277
|
if ((!("ontimeout" in y.prototype) || !("sendAsBinary" in y.prototype) && !("mozAnon" in y.prototype)) && Z != null && Z.readyState != null && Z.readyState !== "complete") {
|
|
278
278
|
var t = this;
|
|
279
279
|
t._sendTimeout = f(function() {
|
|
@@ -339,23 +339,23 @@ var se = { exports: {} };
|
|
|
339
339
|
}
|
|
340
340
|
q.prototype.open = function(t, c, p, u, C, M, W) {
|
|
341
341
|
var nA = null, G = new aA(), n = G.signal, s = new lA();
|
|
342
|
-
return
|
|
342
|
+
return I(C, {
|
|
343
343
|
headers: W,
|
|
344
344
|
credentials: M ? "include" : "same-origin",
|
|
345
345
|
signal: n,
|
|
346
346
|
cache: "no-store"
|
|
347
347
|
}).then(function(a) {
|
|
348
|
-
return nA = a.body.getReader(), c(a.status, a.statusText, a.headers.get("Content-Type"), new J(a.headers)), new
|
|
348
|
+
return nA = a.body.getReader(), c(a.status, a.statusText, a.headers.get("Content-Type"), new J(a.headers)), new N(function(m, k) {
|
|
349
349
|
var K = function() {
|
|
350
|
-
nA.read().then(function(
|
|
351
|
-
if (
|
|
350
|
+
nA.read().then(function(P) {
|
|
351
|
+
if (P.done)
|
|
352
352
|
m(void 0);
|
|
353
353
|
else {
|
|
354
|
-
var R = s.decode(
|
|
354
|
+
var R = s.decode(P.value, { stream: !0 });
|
|
355
355
|
p(R), K();
|
|
356
356
|
}
|
|
357
|
-
}).catch(function(
|
|
358
|
-
k(
|
|
357
|
+
}).catch(function(P) {
|
|
358
|
+
k(P);
|
|
359
359
|
});
|
|
360
360
|
};
|
|
361
361
|
K();
|
|
@@ -371,7 +371,7 @@ var se = { exports: {} };
|
|
|
371
371
|
}
|
|
372
372
|
};
|
|
373
373
|
};
|
|
374
|
-
function
|
|
374
|
+
function D() {
|
|
375
375
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
376
376
|
}
|
|
377
377
|
function E(t) {
|
|
@@ -379,7 +379,7 @@ var se = { exports: {} };
|
|
|
379
379
|
throw t;
|
|
380
380
|
}, 0);
|
|
381
381
|
}
|
|
382
|
-
|
|
382
|
+
D.prototype.dispatchEvent = function(t) {
|
|
383
383
|
t.target = this;
|
|
384
384
|
var c = this._listeners[t.type];
|
|
385
385
|
if (c != null)
|
|
@@ -391,14 +391,14 @@ var se = { exports: {} };
|
|
|
391
391
|
E(M);
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
},
|
|
394
|
+
}, D.prototype.addEventListener = function(t, c) {
|
|
395
395
|
t = String(t);
|
|
396
396
|
var p = this._listeners, u = p[t];
|
|
397
397
|
u == null && (u = [], p[t] = u);
|
|
398
398
|
for (var C = !1, M = 0; M < u.length; M += 1)
|
|
399
399
|
u[M] === c && (C = !0);
|
|
400
400
|
C || u.push(c);
|
|
401
|
-
},
|
|
401
|
+
}, D.prototype.removeEventListener = function(t, c) {
|
|
402
402
|
t = String(t);
|
|
403
403
|
var p = this._listeners, u = p[t];
|
|
404
404
|
if (u != null) {
|
|
@@ -422,7 +422,7 @@ var se = { exports: {} };
|
|
|
422
422
|
_.call(this, t), this.error = c.error;
|
|
423
423
|
}
|
|
424
424
|
d.prototype = Object.create(_.prototype);
|
|
425
|
-
var i = -1, h = 0, l = 1,
|
|
425
|
+
var i = -1, h = 0, l = 1, b = 2, Y = -1, z = 0, L = 1, V = 2, tA = 3, hA = /^text\/event\-stream(;.*)?$/i, xA = 1e3, MA = 18e6, zA = function(t, c) {
|
|
426
426
|
var p = t == null ? c : parseInt(t, 10);
|
|
427
427
|
return p !== p && (p = c), vA(p);
|
|
428
428
|
}, vA = function(t) {
|
|
@@ -435,15 +435,15 @@ var se = { exports: {} };
|
|
|
435
435
|
}
|
|
436
436
|
};
|
|
437
437
|
function AA(t, c) {
|
|
438
|
-
|
|
438
|
+
D.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, ZA(this, t, c);
|
|
439
439
|
}
|
|
440
440
|
function mA() {
|
|
441
|
-
return y != null && "withCredentials" in y.prototype ||
|
|
441
|
+
return y != null && "withCredentials" in y.prototype || B == null ? new y() : new B();
|
|
442
442
|
}
|
|
443
|
-
var YA =
|
|
443
|
+
var YA = I != null && wA != null && "body" in wA.prototype;
|
|
444
444
|
function ZA(t, c, p) {
|
|
445
445
|
c = String(c);
|
|
446
|
-
var u = !!p.withCredentials, C = p.lastEventIdQueryParameterName || "lastEventId", M = vA(1e3), W = zA(p.heartbeatTimeout, 45e3), nA = "", G = M, n = !1, s = 0, a = p.headers || {}, m = p.Transport, k = YA && m == null ? void 0 : new
|
|
446
|
+
var u = !!p.withCredentials, C = p.lastEventIdQueryParameterName || "lastEventId", M = vA(1e3), W = zA(p.heartbeatTimeout, 45e3), nA = "", G = M, n = !1, s = 0, a = p.headers || {}, m = p.Transport, k = YA && m == null ? void 0 : new H(m != null ? new m() : mA()), K = m != null && typeof m != "string" ? new m() : k == null ? new q() : new sA(), P = void 0, R = 0, F = i, uA = "", cA = "", U = "", rA = "", iA = z, QA = 0, OA = 0, Ae = function(pA, fA, SA, EA) {
|
|
447
447
|
if (F === h)
|
|
448
448
|
if (pA === 200 && SA != null && hA.test(SA)) {
|
|
449
449
|
F = l, n = Date.now(), G = M, t.readyState = l;
|
|
@@ -477,10 +477,10 @@ var se = { exports: {} };
|
|
|
477
477
|
iA = z;
|
|
478
478
|
else if (iA === Y && (iA = z), EA === 13 || EA === 10) {
|
|
479
479
|
if (iA !== z) {
|
|
480
|
-
iA ===
|
|
480
|
+
iA === L && (OA = gA + 1);
|
|
481
481
|
var FA = bA.slice(QA, OA - 1), IA = bA.slice(OA + (OA < gA && bA.charCodeAt(OA) === 32 ? 1 : 0), gA);
|
|
482
482
|
FA === "data" ? (uA += `
|
|
483
|
-
`, uA += IA) : FA === "id" ? cA = IA : FA === "event" ? U = IA : FA === "retry" ? (M = zA(IA, M), G = M) : FA === "heartbeatTimeout" && (W = zA(IA, W), R !== 0 && (
|
|
483
|
+
`, uA += IA) : FA === "id" ? cA = IA : FA === "event" ? U = IA : FA === "retry" ? (M = zA(IA, M), G = M) : FA === "heartbeatTimeout" && (W = zA(IA, W), R !== 0 && (g(R), R = f(function() {
|
|
484
484
|
jA();
|
|
485
485
|
}, W)));
|
|
486
486
|
}
|
|
@@ -491,30 +491,30 @@ var se = { exports: {} };
|
|
|
491
491
|
data: uA.slice(1),
|
|
492
492
|
lastEventId: cA
|
|
493
493
|
});
|
|
494
|
-
if (t.dispatchEvent(JA), U === "open" ? $(t, t.onopen, JA) : U === "message" ? $(t, t.onmessage, JA) : U === "error" && $(t, t.onerror, JA), F ===
|
|
494
|
+
if (t.dispatchEvent(JA), U === "open" ? $(t, t.onopen, JA) : U === "message" ? $(t, t.onmessage, JA) : U === "error" && $(t, t.onerror, JA), F === b)
|
|
495
495
|
return;
|
|
496
496
|
}
|
|
497
497
|
uA = "", U = "";
|
|
498
498
|
}
|
|
499
499
|
iA = EA === 13 ? Y : z;
|
|
500
500
|
} else
|
|
501
|
-
iA === z && (QA = gA, iA =
|
|
501
|
+
iA === z && (QA = gA, iA = L), iA === L ? EA === 58 && (OA = gA + 1, iA = V) : iA === V && (iA = tA);
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
504
|
}, ee = function(pA) {
|
|
505
505
|
if (F === l || F === h) {
|
|
506
|
-
F = i, R !== 0 && (
|
|
506
|
+
F = i, R !== 0 && (g(R), R = 0), R = f(function() {
|
|
507
507
|
jA();
|
|
508
508
|
}, G), G = vA(Math.min(M * 16, G * 2)), t.readyState = h;
|
|
509
509
|
var fA = new d("error", { error: pA });
|
|
510
510
|
t.dispatchEvent(fA), $(t, t.onerror, fA), pA != null && console.error(pA);
|
|
511
511
|
}
|
|
512
512
|
}, kA = function() {
|
|
513
|
-
F =
|
|
513
|
+
F = b, P != null && (P.abort(), P = void 0), R !== 0 && (g(R), R = 0), t.readyState = b;
|
|
514
514
|
}, jA = function() {
|
|
515
515
|
if (R = 0, F !== i) {
|
|
516
|
-
if (!n &&
|
|
517
|
-
ee(new Error("No activity within " + W + " milliseconds. " + (F === h ? "No response received." : s + " chars received.") + " Reconnecting.")),
|
|
516
|
+
if (!n && P != null)
|
|
517
|
+
ee(new Error("No activity within " + W + " milliseconds. " + (F === h ? "No response received." : s + " chars received.") + " Reconnecting.")), P != null && (P.abort(), P = void 0);
|
|
518
518
|
else {
|
|
519
519
|
var pA = Math.max((n || Date.now()) + W - Date.now(), 1);
|
|
520
520
|
n = !1, R = f(function() {
|
|
@@ -540,16 +540,16 @@ var se = { exports: {} };
|
|
|
540
540
|
for (var FA in gA)
|
|
541
541
|
Object.prototype.hasOwnProperty.call(gA, FA) && (bA[FA] = gA[FA]);
|
|
542
542
|
try {
|
|
543
|
-
|
|
543
|
+
P = K.open(k, Ae, re, ee, fA, EA, bA);
|
|
544
544
|
} catch (IA) {
|
|
545
545
|
throw kA(), IA;
|
|
546
546
|
}
|
|
547
547
|
};
|
|
548
548
|
t.url = c, t.readyState = h, t.withCredentials = u, t.headers = a, t._close = kA, jA();
|
|
549
549
|
}
|
|
550
|
-
AA.prototype = Object.create(
|
|
550
|
+
AA.prototype = Object.create(D.prototype), AA.prototype.CONNECTING = h, AA.prototype.OPEN = l, AA.prototype.CLOSED = b, AA.prototype.close = function() {
|
|
551
551
|
this._close();
|
|
552
|
-
}, AA.CONNECTING = h, AA.OPEN = l, AA.CLOSED =
|
|
552
|
+
}, AA.CONNECTING = h, AA.OPEN = l, AA.CLOSED = b, AA.prototype.withCredentials = void 0;
|
|
553
553
|
var GA = S;
|
|
554
554
|
y != null && (S == null || !("withCredentials" in S.prototype)) && (GA = AA), function(t) {
|
|
555
555
|
{
|
|
@@ -568,17 +568,17 @@ const Je = (A) => CA(void 0, null, function* () {
|
|
|
568
568
|
const f = yield (yield fetch(e)).json();
|
|
569
569
|
return { items: f == null ? void 0 : f.items, total: f == null ? void 0 : f.total };
|
|
570
570
|
}), _e = (A) => CA(void 0, null, function* () {
|
|
571
|
-
var y,
|
|
571
|
+
var y, B, O, S, Z;
|
|
572
572
|
const e = new URL(`${A.endpoint}/v1/tournaments/leaderboard/player`);
|
|
573
573
|
e.searchParams.append("language", A.language), e.searchParams.append("platform", A.platform), e.searchParams.append("filter", `includeUnqualifiedPlayer=${(y = A.includeUnqualified) != null ? y : !1}`);
|
|
574
|
-
const f = yield (yield fetch(e, { method: "GET", headers: we(A.session) })).json(),
|
|
575
|
-
var
|
|
576
|
-
return ((
|
|
574
|
+
const f = yield (yield fetch(e, { method: "GET", headers: we(A.session) })).json(), g = (B = f == null ? void 0 : f.items) == null ? void 0 : B.find((N) => {
|
|
575
|
+
var I;
|
|
576
|
+
return ((I = N == null ? void 0 : N.tournament) == null ? void 0 : I.id) === A.tournamentid;
|
|
577
577
|
});
|
|
578
578
|
return {
|
|
579
|
-
playerData: (O =
|
|
580
|
-
endRank:
|
|
581
|
-
playerEnrolled: (
|
|
579
|
+
playerData: (S = g == null ? void 0 : g.leaderBoard) != null ? S : (O = g == null ? void 0 : g.tournament) == null ? void 0 : O.leaderBoard,
|
|
580
|
+
endRank: g == null ? void 0 : g.endRank,
|
|
581
|
+
playerEnrolled: (Z = g == null ? void 0 : g.tournament) == null ? void 0 : Z.playerEnrolled
|
|
582
582
|
};
|
|
583
583
|
}), Ue = (A, e) => {
|
|
584
584
|
const r = new URL(`${A.endpoint}/v1/tournaments/${A.tournamentid}/leaderboard/updates`);
|
|
@@ -586,8 +586,8 @@ const Je = (A) => CA(void 0, null, function* () {
|
|
|
586
586
|
const f = new Xe.EventSourcePolyfill(r, {
|
|
587
587
|
headers: { accept: "text/event-stream", "X-SessionId": A.session }
|
|
588
588
|
});
|
|
589
|
-
return f.onmessage = (
|
|
590
|
-
const y = JSON.parse(
|
|
589
|
+
return f.onmessage = (g) => {
|
|
590
|
+
const y = JSON.parse(g.data);
|
|
591
591
|
y && y.messageType === "LeaderBoardUpdate" && e(y == null ? void 0 : y.items);
|
|
592
592
|
}, f;
|
|
593
593
|
}, qe = (A) => CA(void 0, null, function* () {
|
|
@@ -608,7 +608,7 @@ const Je = (A) => CA(void 0, null, function* () {
|
|
|
608
608
|
"X-SessionID": A.session
|
|
609
609
|
}
|
|
610
610
|
})).json();
|
|
611
|
-
}),
|
|
611
|
+
}), Dt = (A) => CA(void 0, null, function* () {
|
|
612
612
|
var r;
|
|
613
613
|
const e = yield qe(A);
|
|
614
614
|
if (!e)
|
|
@@ -630,23 +630,23 @@ var Ye = { exports: {} };
|
|
|
630
630
|
(function(r, f) {
|
|
631
631
|
A.exports = f();
|
|
632
632
|
})(de, function() {
|
|
633
|
-
var r = 1e3, f = 6e4,
|
|
633
|
+
var r = 1e3, f = 6e4, g = 36e5, y = "millisecond", B = "second", O = "minute", S = "hour", Z = "day", N = "week", I = "month", wA = "quarter", lA = "year", Q = "date", aA = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, x = /\[([^\]]+)]|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, j = { 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) {
|
|
634
634
|
var d = ["th", "st", "nd", "rd"], i = v % 100;
|
|
635
635
|
return "[" + v + (d[(i - 20) % 10] || d[i] || d[0]) + "]";
|
|
636
636
|
} }, T = function(v, d, i) {
|
|
637
637
|
var h = String(v);
|
|
638
638
|
return !h || h.length >= d ? v : "" + Array(d + 1 - h.length).join(i) + v;
|
|
639
|
-
},
|
|
639
|
+
}, H = { s: T, z: function(v) {
|
|
640
640
|
var d = -v.utcOffset(), i = Math.abs(d), h = Math.floor(i / 60), l = i % 60;
|
|
641
641
|
return (d <= 0 ? "+" : "-") + T(h, 2, "0") + ":" + T(l, 2, "0");
|
|
642
642
|
}, m: function v(d, i) {
|
|
643
643
|
if (d.date() < i.date()) return -v(i, d);
|
|
644
|
-
var h = 12 * (i.year() - d.year()) + (i.month() - d.month()), l = d.clone().add(h,
|
|
645
|
-
return +(-(h + (i - l) / (
|
|
644
|
+
var h = 12 * (i.year() - d.year()) + (i.month() - d.month()), l = d.clone().add(h, I), b = i - l < 0, Y = d.clone().add(h + (b ? -1 : 1), I);
|
|
645
|
+
return +(-(h + (i - l) / (b ? l - Y : Y - l)) || 0);
|
|
646
646
|
}, a: function(v) {
|
|
647
647
|
return v < 0 ? Math.ceil(v) || 0 : Math.floor(v);
|
|
648
648
|
}, p: function(v) {
|
|
649
|
-
return { M:
|
|
649
|
+
return { M: I, y: lA, w: N, d: Z, D: Q, h: S, m: O, s: B, ms: y, Q: wA }[v] || String(v || "").toLowerCase().replace(/s$/, "");
|
|
650
650
|
}, u: function(v) {
|
|
651
651
|
return v === void 0;
|
|
652
652
|
} }, eA = "en", oA = {};
|
|
@@ -657,8 +657,8 @@ var Ye = { exports: {} };
|
|
|
657
657
|
var l;
|
|
658
658
|
if (!d) return eA;
|
|
659
659
|
if (typeof d == "string") {
|
|
660
|
-
var
|
|
661
|
-
oA[
|
|
660
|
+
var b = d.toLowerCase();
|
|
661
|
+
oA[b] && (l = b), i && (oA[b] = i, l = b);
|
|
662
662
|
var Y = d.split("-");
|
|
663
663
|
if (!l && Y.length > 1) return v(Y[0]);
|
|
664
664
|
} else {
|
|
@@ -666,13 +666,13 @@ var Ye = { exports: {} };
|
|
|
666
666
|
oA[z] = d, l = z;
|
|
667
667
|
}
|
|
668
668
|
return !h && l && (eA = l), l || !h && eA;
|
|
669
|
-
},
|
|
669
|
+
}, D = function(v, d) {
|
|
670
670
|
if (J(v)) return v.clone();
|
|
671
671
|
var i = typeof d == "object" ? d : {};
|
|
672
672
|
return i.date = v, i.args = arguments, new _(i);
|
|
673
|
-
}, E =
|
|
673
|
+
}, E = H;
|
|
674
674
|
E.l = q, E.i = J, E.w = function(v, d) {
|
|
675
|
-
return
|
|
675
|
+
return D(v, { locale: d.$L, utc: d.$u, x: d.$x, $offset: d.$offset });
|
|
676
676
|
};
|
|
677
677
|
var _ = function() {
|
|
678
678
|
function v(i) {
|
|
@@ -681,15 +681,15 @@ var Ye = { exports: {} };
|
|
|
681
681
|
var d = v.prototype;
|
|
682
682
|
return d.parse = function(i) {
|
|
683
683
|
this.$d = function(h) {
|
|
684
|
-
var l = h.date,
|
|
684
|
+
var l = h.date, b = h.utc;
|
|
685
685
|
if (l === null) return /* @__PURE__ */ new Date(NaN);
|
|
686
686
|
if (E.u(l)) return /* @__PURE__ */ new Date();
|
|
687
687
|
if (l instanceof Date) return new Date(l);
|
|
688
688
|
if (typeof l == "string" && !/Z$/i.test(l)) {
|
|
689
689
|
var Y = l.match(w);
|
|
690
690
|
if (Y) {
|
|
691
|
-
var z = Y[2] - 1 || 0,
|
|
692
|
-
return
|
|
691
|
+
var z = Y[2] - 1 || 0, L = (Y[7] || "0").substring(0, 3);
|
|
692
|
+
return b ? new Date(Date.UTC(Y[1], z, Y[3] || 1, Y[4] || 0, Y[5] || 0, Y[6] || 0, L)) : new Date(Y[1], z, Y[3] || 1, Y[4] || 0, Y[5] || 0, Y[6] || 0, L);
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
695
|
return new Date(l);
|
|
@@ -702,12 +702,12 @@ var Ye = { exports: {} };
|
|
|
702
702
|
}, d.isValid = function() {
|
|
703
703
|
return this.$d.toString() !== aA;
|
|
704
704
|
}, d.isSame = function(i, h) {
|
|
705
|
-
var l =
|
|
705
|
+
var l = D(i);
|
|
706
706
|
return this.startOf(h) <= l && l <= this.endOf(h);
|
|
707
707
|
}, d.isAfter = function(i, h) {
|
|
708
|
-
return
|
|
708
|
+
return D(i) < this.startOf(h);
|
|
709
709
|
}, d.isBefore = function(i, h) {
|
|
710
|
-
return this.endOf(h) <
|
|
710
|
+
return this.endOf(h) < D(i);
|
|
711
711
|
}, d.$g = function(i, h, l) {
|
|
712
712
|
return E.u(i) ? this[h] : this.set(l, i);
|
|
713
713
|
}, d.unix = function() {
|
|
@@ -715,72 +715,72 @@ var Ye = { exports: {} };
|
|
|
715
715
|
}, d.valueOf = function() {
|
|
716
716
|
return this.$d.getTime();
|
|
717
717
|
}, d.startOf = function(i, h) {
|
|
718
|
-
var l = this,
|
|
718
|
+
var l = this, b = !!E.u(h) || h, Y = E.p(i), z = function(vA, $) {
|
|
719
719
|
var AA = E.w(l.$u ? Date.UTC(l.$y, $, vA) : new Date(l.$y, $, vA), l);
|
|
720
|
-
return
|
|
721
|
-
},
|
|
722
|
-
return E.w(l.toDate()[vA].apply(l.toDate("s"), (
|
|
720
|
+
return b ? AA : AA.endOf(Z);
|
|
721
|
+
}, L = function(vA, $) {
|
|
722
|
+
return E.w(l.toDate()[vA].apply(l.toDate("s"), (b ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), l);
|
|
723
723
|
}, V = this.$W, tA = this.$M, hA = this.$D, xA = "set" + (this.$u ? "UTC" : "");
|
|
724
724
|
switch (Y) {
|
|
725
725
|
case lA:
|
|
726
|
-
return
|
|
727
|
-
case
|
|
728
|
-
return
|
|
729
|
-
case
|
|
726
|
+
return b ? z(1, 0) : z(31, 11);
|
|
727
|
+
case I:
|
|
728
|
+
return b ? z(1, tA) : z(0, tA + 1);
|
|
729
|
+
case N:
|
|
730
730
|
var MA = this.$locale().weekStart || 0, zA = (V < MA ? V + 7 : V) - MA;
|
|
731
|
-
return z(
|
|
731
|
+
return z(b ? hA - zA : hA + (6 - zA), tA);
|
|
732
732
|
case Z:
|
|
733
|
-
case
|
|
734
|
-
return
|
|
733
|
+
case Q:
|
|
734
|
+
return L(xA + "Hours", 0);
|
|
735
735
|
case S:
|
|
736
|
-
return
|
|
736
|
+
return L(xA + "Minutes", 1);
|
|
737
737
|
case O:
|
|
738
|
-
return
|
|
739
|
-
case
|
|
740
|
-
return
|
|
738
|
+
return L(xA + "Seconds", 2);
|
|
739
|
+
case B:
|
|
740
|
+
return L(xA + "Milliseconds", 3);
|
|
741
741
|
default:
|
|
742
742
|
return this.clone();
|
|
743
743
|
}
|
|
744
744
|
}, d.endOf = function(i) {
|
|
745
745
|
return this.startOf(i, !1);
|
|
746
746
|
}, d.$set = function(i, h) {
|
|
747
|
-
var l,
|
|
748
|
-
if (
|
|
749
|
-
var V = this.clone().set(
|
|
750
|
-
V.$d[z](
|
|
751
|
-
} else z && this.$d[z](
|
|
747
|
+
var l, b = E.p(i), Y = "set" + (this.$u ? "UTC" : ""), z = (l = {}, l[Z] = Y + "Date", l[Q] = Y + "Date", l[I] = Y + "Month", l[lA] = Y + "FullYear", l[S] = Y + "Hours", l[O] = Y + "Minutes", l[B] = Y + "Seconds", l[y] = Y + "Milliseconds", l)[b], L = b === Z ? this.$D + (h - this.$W) : h;
|
|
748
|
+
if (b === I || b === lA) {
|
|
749
|
+
var V = this.clone().set(Q, 1);
|
|
750
|
+
V.$d[z](L), V.init(), this.$d = V.set(Q, Math.min(this.$D, V.daysInMonth())).$d;
|
|
751
|
+
} else z && this.$d[z](L);
|
|
752
752
|
return this.init(), this;
|
|
753
753
|
}, d.set = function(i, h) {
|
|
754
754
|
return this.clone().$set(i, h);
|
|
755
755
|
}, d.get = function(i) {
|
|
756
756
|
return this[E.p(i)]();
|
|
757
757
|
}, d.add = function(i, h) {
|
|
758
|
-
var l,
|
|
758
|
+
var l, b = this;
|
|
759
759
|
i = Number(i);
|
|
760
760
|
var Y = E.p(h), z = function(tA) {
|
|
761
|
-
var hA =
|
|
762
|
-
return E.w(hA.date(hA.date() + Math.round(tA * i)),
|
|
761
|
+
var hA = D(b);
|
|
762
|
+
return E.w(hA.date(hA.date() + Math.round(tA * i)), b);
|
|
763
763
|
};
|
|
764
|
-
if (Y ===
|
|
764
|
+
if (Y === I) return this.set(I, this.$M + i);
|
|
765
765
|
if (Y === lA) return this.set(lA, this.$y + i);
|
|
766
766
|
if (Y === Z) return z(1);
|
|
767
|
-
if (Y ===
|
|
768
|
-
var
|
|
767
|
+
if (Y === N) return z(7);
|
|
768
|
+
var L = (l = {}, l[O] = f, l[S] = g, l[B] = r, l)[Y] || 1, V = this.$d.getTime() + i * L;
|
|
769
769
|
return E.w(V, this);
|
|
770
770
|
}, d.subtract = function(i, h) {
|
|
771
771
|
return this.add(-1 * i, h);
|
|
772
772
|
}, d.format = function(i) {
|
|
773
773
|
var h = this, l = this.$locale();
|
|
774
774
|
if (!this.isValid()) return l.invalidDate || aA;
|
|
775
|
-
var
|
|
776
|
-
return $ && ($[AA] || $(h,
|
|
775
|
+
var b = i || "YYYY-MM-DDTHH:mm:ssZ", Y = E.z(this), z = this.$H, L = this.$m, V = this.$M, tA = l.weekdays, hA = l.months, xA = l.meridiem, MA = function($, AA, mA, YA) {
|
|
776
|
+
return $ && ($[AA] || $(h, b)) || mA[AA].slice(0, YA);
|
|
777
777
|
}, zA = function($) {
|
|
778
778
|
return E.s(z % 12 || 12, $, "0");
|
|
779
779
|
}, vA = xA || function($, AA, mA) {
|
|
780
780
|
var YA = $ < 12 ? "AM" : "PM";
|
|
781
781
|
return mA ? YA.toLowerCase() : YA;
|
|
782
782
|
};
|
|
783
|
-
return
|
|
783
|
+
return b.replace(x, function($, AA) {
|
|
784
784
|
return AA || function(mA) {
|
|
785
785
|
switch (mA) {
|
|
786
786
|
case "YY":
|
|
@@ -816,13 +816,13 @@ var Ye = { exports: {} };
|
|
|
816
816
|
case "hh":
|
|
817
817
|
return zA(2);
|
|
818
818
|
case "a":
|
|
819
|
-
return vA(z,
|
|
819
|
+
return vA(z, L, !0);
|
|
820
820
|
case "A":
|
|
821
|
-
return vA(z,
|
|
821
|
+
return vA(z, L, !1);
|
|
822
822
|
case "m":
|
|
823
|
-
return String(
|
|
823
|
+
return String(L);
|
|
824
824
|
case "mm":
|
|
825
|
-
return E.s(
|
|
825
|
+
return E.s(L, 2, "0");
|
|
826
826
|
case "s":
|
|
827
827
|
return String(h.$s);
|
|
828
828
|
case "ss":
|
|
@@ -838,46 +838,46 @@ var Ye = { exports: {} };
|
|
|
838
838
|
}, d.utcOffset = function() {
|
|
839
839
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
840
840
|
}, d.diff = function(i, h, l) {
|
|
841
|
-
var
|
|
842
|
-
return E.m(Y,
|
|
841
|
+
var b, Y = this, z = E.p(h), L = D(i), V = (L.utcOffset() - this.utcOffset()) * f, tA = this - L, hA = function() {
|
|
842
|
+
return E.m(Y, L);
|
|
843
843
|
};
|
|
844
844
|
switch (z) {
|
|
845
845
|
case lA:
|
|
846
|
-
|
|
846
|
+
b = hA() / 12;
|
|
847
847
|
break;
|
|
848
|
-
case
|
|
849
|
-
|
|
848
|
+
case I:
|
|
849
|
+
b = hA();
|
|
850
850
|
break;
|
|
851
851
|
case wA:
|
|
852
|
-
|
|
852
|
+
b = hA() / 3;
|
|
853
853
|
break;
|
|
854
|
-
case
|
|
855
|
-
|
|
854
|
+
case N:
|
|
855
|
+
b = (tA - V) / 6048e5;
|
|
856
856
|
break;
|
|
857
857
|
case Z:
|
|
858
|
-
|
|
858
|
+
b = (tA - V) / 864e5;
|
|
859
859
|
break;
|
|
860
860
|
case S:
|
|
861
|
-
|
|
861
|
+
b = tA / g;
|
|
862
862
|
break;
|
|
863
863
|
case O:
|
|
864
|
-
|
|
864
|
+
b = tA / f;
|
|
865
865
|
break;
|
|
866
|
-
case
|
|
867
|
-
|
|
866
|
+
case B:
|
|
867
|
+
b = tA / r;
|
|
868
868
|
break;
|
|
869
869
|
default:
|
|
870
|
-
|
|
870
|
+
b = tA;
|
|
871
871
|
}
|
|
872
|
-
return l ?
|
|
872
|
+
return l ? b : E.a(b);
|
|
873
873
|
}, d.daysInMonth = function() {
|
|
874
|
-
return this.endOf(
|
|
874
|
+
return this.endOf(I).$D;
|
|
875
875
|
}, d.$locale = function() {
|
|
876
876
|
return oA[this.$L];
|
|
877
877
|
}, d.locale = function(i, h) {
|
|
878
878
|
if (!i) return this.$L;
|
|
879
|
-
var l = this.clone(),
|
|
880
|
-
return
|
|
879
|
+
var l = this.clone(), b = q(i, h, !0);
|
|
880
|
+
return b && (l.$L = b), l;
|
|
881
881
|
}, d.clone = function() {
|
|
882
882
|
return E.w(this.$d, this);
|
|
883
883
|
}, d.toDate = function() {
|
|
@@ -890,15 +890,15 @@ var Ye = { exports: {} };
|
|
|
890
890
|
return this.$d.toUTCString();
|
|
891
891
|
}, v;
|
|
892
892
|
}(), dA = _.prototype;
|
|
893
|
-
return
|
|
893
|
+
return D.prototype = dA, [["$ms", y], ["$s", B], ["$m", O], ["$H", S], ["$W", Z], ["$M", I], ["$y", lA], ["$D", Q]].forEach(function(v) {
|
|
894
894
|
dA[v[1]] = function(d) {
|
|
895
895
|
return this.$g(d, v[0], v[1]);
|
|
896
896
|
};
|
|
897
|
-
}),
|
|
898
|
-
return v.$i || (v(d, _,
|
|
899
|
-
},
|
|
900
|
-
return
|
|
901
|
-
},
|
|
897
|
+
}), D.extend = function(v, d) {
|
|
898
|
+
return v.$i || (v(d, _, D), v.$i = !0), D;
|
|
899
|
+
}, D.locale = q, D.isDayjs = J, D.unix = function(v) {
|
|
900
|
+
return D(1e3 * v);
|
|
901
|
+
}, D.en = oA[eA], D.Ls = oA, D.p = {}, D;
|
|
902
902
|
});
|
|
903
903
|
})(Ye);
|
|
904
904
|
var $e = Ye.exports;
|
|
@@ -908,13 +908,13 @@ var Me = { exports: {} };
|
|
|
908
908
|
(function(r, f) {
|
|
909
909
|
A.exports = f();
|
|
910
910
|
})(de, function() {
|
|
911
|
-
var r = { 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" }, f = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,
|
|
911
|
+
var r = { 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" }, f = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, g = /\d/, y = /\d\d/, B = /\d\d?/, O = /\d*[^-_:/,()\s\d]+/, S = {}, Z = function(w) {
|
|
912
912
|
return (w = +w) + (w > 68 ? 1900 : 2e3);
|
|
913
|
-
},
|
|
913
|
+
}, N = function(w) {
|
|
914
914
|
return function(x) {
|
|
915
915
|
this[w] = +x;
|
|
916
916
|
};
|
|
917
|
-
},
|
|
917
|
+
}, I = [/[+-]\d\d:?(\d\d)?|Z/, function(w) {
|
|
918
918
|
(this.zone || (this.zone = {})).offset = function(x) {
|
|
919
919
|
if (!x || x === "Z") return 0;
|
|
920
920
|
var j = x.match(/([+-]|\d\d)/g), T = 60 * j[1] + (+j[2] || 0);
|
|
@@ -926,28 +926,28 @@ var Me = { exports: {} };
|
|
|
926
926
|
}, lA = function(w, x) {
|
|
927
927
|
var j, T = S.meridiem;
|
|
928
928
|
if (T) {
|
|
929
|
-
for (var
|
|
930
|
-
j =
|
|
929
|
+
for (var H = 1; H <= 24; H += 1) if (w.indexOf(T(H, 0, x)) > -1) {
|
|
930
|
+
j = H > 12;
|
|
931
931
|
break;
|
|
932
932
|
}
|
|
933
933
|
} else j = w === (x ? "pm" : "PM");
|
|
934
934
|
return j;
|
|
935
|
-
},
|
|
935
|
+
}, Q = { A: [O, function(w) {
|
|
936
936
|
this.afternoon = lA(w, !1);
|
|
937
937
|
}], a: [O, function(w) {
|
|
938
938
|
this.afternoon = lA(w, !0);
|
|
939
|
-
}], Q: [
|
|
939
|
+
}], Q: [g, function(w) {
|
|
940
940
|
this.month = 3 * (w - 1) + 1;
|
|
941
|
-
}], S: [
|
|
941
|
+
}], S: [g, function(w) {
|
|
942
942
|
this.milliseconds = 100 * +w;
|
|
943
943
|
}], SS: [y, function(w) {
|
|
944
944
|
this.milliseconds = 10 * +w;
|
|
945
945
|
}], SSS: [/\d{3}/, function(w) {
|
|
946
946
|
this.milliseconds = +w;
|
|
947
|
-
}], s: [
|
|
947
|
+
}], s: [B, N("seconds")], ss: [B, N("seconds")], m: [B, N("minutes")], mm: [B, N("minutes")], H: [B, N("hours")], h: [B, N("hours")], HH: [B, N("hours")], hh: [B, N("hours")], D: [B, N("day")], DD: [y, N("day")], Do: [O, function(w) {
|
|
948
948
|
var x = S.ordinal, j = w.match(/\d+/);
|
|
949
949
|
if (this.day = j[0], x) for (var T = 1; T <= 31; T += 1) x(T).replace(/\[|\]/g, "") === w && (this.day = T);
|
|
950
|
-
}], w: [
|
|
950
|
+
}], w: [B, N("week")], ww: [y, N("week")], M: [B, N("month")], MM: [y, N("month")], MMM: [O, function(w) {
|
|
951
951
|
var x = wA("months"), j = (wA("monthsShort") || x.map(function(T) {
|
|
952
952
|
return T.slice(0, 3);
|
|
953
953
|
})).indexOf(w) + 1;
|
|
@@ -957,55 +957,55 @@ var Me = { exports: {} };
|
|
|
957
957
|
var x = wA("months").indexOf(w) + 1;
|
|
958
958
|
if (x < 1) throw new Error();
|
|
959
959
|
this.month = x % 12 || x;
|
|
960
|
-
}], Y: [/[+-]?\d+/,
|
|
960
|
+
}], Y: [/[+-]?\d+/, N("year")], YY: [y, function(w) {
|
|
961
961
|
this.year = Z(w);
|
|
962
|
-
}], YYYY: [/\d{4}/,
|
|
962
|
+
}], YYYY: [/\d{4}/, N("year")], Z: I, ZZ: I };
|
|
963
963
|
function aA(w) {
|
|
964
964
|
var x, j;
|
|
965
965
|
x = w, j = S && S.formats;
|
|
966
|
-
for (var T = (w = x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(
|
|
966
|
+
for (var T = (w = x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(D, E, _) {
|
|
967
967
|
var dA = _ && _.toUpperCase();
|
|
968
968
|
return E || j[_] || r[_] || j[dA].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(v, d, i) {
|
|
969
969
|
return d || i.slice(1);
|
|
970
970
|
});
|
|
971
|
-
})).match(f),
|
|
972
|
-
var oA = T[eA], sA =
|
|
971
|
+
})).match(f), H = T.length, eA = 0; eA < H; eA += 1) {
|
|
972
|
+
var oA = T[eA], sA = Q[oA], J = sA && sA[0], q = sA && sA[1];
|
|
973
973
|
T[eA] = q ? { regex: J, parser: q } : oA.replace(/^\[|\]$/g, "");
|
|
974
974
|
}
|
|
975
|
-
return function(
|
|
976
|
-
for (var E = {}, _ = 0, dA = 0; _ <
|
|
975
|
+
return function(D) {
|
|
976
|
+
for (var E = {}, _ = 0, dA = 0; _ < H; _ += 1) {
|
|
977
977
|
var v = T[_];
|
|
978
978
|
if (typeof v == "string") dA += v.length;
|
|
979
979
|
else {
|
|
980
|
-
var d = v.regex, i = v.parser, h =
|
|
981
|
-
i.call(E, l),
|
|
980
|
+
var d = v.regex, i = v.parser, h = D.slice(dA), l = d.exec(h)[0];
|
|
981
|
+
i.call(E, l), D = D.replace(l, "");
|
|
982
982
|
}
|
|
983
983
|
}
|
|
984
|
-
return function(
|
|
985
|
-
var Y =
|
|
984
|
+
return function(b) {
|
|
985
|
+
var Y = b.afternoon;
|
|
986
986
|
if (Y !== void 0) {
|
|
987
|
-
var z =
|
|
988
|
-
Y ? z < 12 && (
|
|
987
|
+
var z = b.hours;
|
|
988
|
+
Y ? z < 12 && (b.hours += 12) : z === 12 && (b.hours = 0), delete b.afternoon;
|
|
989
989
|
}
|
|
990
990
|
}(E), E;
|
|
991
991
|
};
|
|
992
992
|
}
|
|
993
993
|
return function(w, x, j) {
|
|
994
994
|
j.p.customParseFormat = !0, w && w.parseTwoDigitYear && (Z = w.parseTwoDigitYear);
|
|
995
|
-
var T = x.prototype,
|
|
995
|
+
var T = x.prototype, H = T.parse;
|
|
996
996
|
T.parse = function(eA) {
|
|
997
997
|
var oA = eA.date, sA = eA.utc, J = eA.args;
|
|
998
998
|
this.$u = sA;
|
|
999
999
|
var q = J[1];
|
|
1000
1000
|
if (typeof q == "string") {
|
|
1001
|
-
var
|
|
1002
|
-
E && (dA = J[2]), S = this.$locale(), !
|
|
1001
|
+
var D = J[2] === !0, E = J[3] === !0, _ = D || E, dA = J[2];
|
|
1002
|
+
E && (dA = J[2]), S = this.$locale(), !D && dA && (S = j.Ls[dA]), this.$d = function(h, l, b, Y) {
|
|
1003
1003
|
try {
|
|
1004
1004
|
if (["x", "X"].indexOf(l) > -1) return new Date((l === "X" ? 1e3 : 1) * h);
|
|
1005
|
-
var z = aA(l)(h),
|
|
1006
|
-
|
|
1005
|
+
var z = aA(l)(h), L = z.year, V = z.month, tA = z.day, hA = z.hours, xA = z.minutes, MA = z.seconds, zA = z.milliseconds, vA = z.zone, $ = z.week, AA = /* @__PURE__ */ new Date(), mA = tA || (L || V ? 1 : AA.getDate()), YA = L || AA.getFullYear(), ZA = 0;
|
|
1006
|
+
L && !V || (ZA = V > 0 ? V - 1 : AA.getMonth());
|
|
1007
1007
|
var GA, t = hA || 0, c = xA || 0, p = MA || 0, u = zA || 0;
|
|
1008
|
-
return vA ? new Date(Date.UTC(YA, ZA, mA, t, c, p, u + 60 * vA.offset * 1e3)) :
|
|
1008
|
+
return vA ? new Date(Date.UTC(YA, ZA, mA, t, c, p, u + 60 * vA.offset * 1e3)) : b ? new Date(Date.UTC(YA, ZA, mA, t, c, p, u)) : (GA = new Date(YA, ZA, mA, t, c, p, u), $ && (GA = Y(GA).week($).toDate()), GA);
|
|
1009
1009
|
} catch (C) {
|
|
1010
1010
|
return /* @__PURE__ */ new Date("");
|
|
1011
1011
|
}
|
|
@@ -1019,7 +1019,7 @@ var Me = { exports: {} };
|
|
|
1019
1019
|
}
|
|
1020
1020
|
d === v && (this.$d = /* @__PURE__ */ new Date(""));
|
|
1021
1021
|
}
|
|
1022
|
-
else
|
|
1022
|
+
else H.call(this, eA);
|
|
1023
1023
|
};
|
|
1024
1024
|
};
|
|
1025
1025
|
});
|
|
@@ -1038,46 +1038,46 @@ class Wt {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
static generateCasinoRule(e, r) {
|
|
1040
1040
|
var O, S;
|
|
1041
|
-
const f = ` ~ ${e("unlimited")}`,
|
|
1042
|
-
return e("casinoRuleMinMaxBet", { values: { minBet: y, maxBet:
|
|
1041
|
+
const f = ` ~ ${e("unlimited")}`, g = r.currency || "EUR", y = (O = r.minStake) != null && O.amount[g] ? `: ${r.minStake.amount[g]} ${g}` : f, B = (S = r.maxStake) != null && S.amount[g] ? `: ${r.maxStake.amount[g]} ${g}` : f;
|
|
1042
|
+
return e("casinoRuleMinMaxBet", { values: { minBet: y, maxBet: B } });
|
|
1043
1043
|
}
|
|
1044
1044
|
static generateSportsRule(e, r) {
|
|
1045
|
-
var oA, sA, J, q,
|
|
1046
|
-
const f = [],
|
|
1047
|
-
f.push(e("sportsRuleMinMaxBet", { values: { sportMinBet:
|
|
1045
|
+
var oA, sA, J, q, D, E, _, dA, v, d;
|
|
1046
|
+
const f = [], g = ` ~ ${e("unlimited")}`, y = r.currency || "EUR", B = (oA = r.minStake) != null && oA.amount[y] ? `: ${r.minStake.amount[y]} ${y}` : g, O = (sA = r.maxStake) != null && sA.amount[y] ? `: ${r.maxStake.amount[y]} ${y}` : g;
|
|
1047
|
+
f.push(e("sportsRuleMinMaxBet", { values: { sportMinBet: B, sportMaxBet: O } }));
|
|
1048
1048
|
const S = r.config.liveMatch === "true", Z = r.config.preLiveMatch === "true";
|
|
1049
1049
|
S && Z ? f.push(e("matchTypePreAndLive")) : S ? f.push(`${e("matchTypeLive")}`) : Z && f.push(`${e("matchTyppePre")}`);
|
|
1050
|
-
const
|
|
1051
|
-
|
|
1050
|
+
const N = r.combination, I = [];
|
|
1051
|
+
N.single.isEligible && I.push(e("betTypeSingle"));
|
|
1052
1052
|
const lA = {
|
|
1053
1053
|
null: e("typeOfSelectionAny"),
|
|
1054
1054
|
true: e("bankerOnly"),
|
|
1055
1055
|
false: e("nonBankerOnly")
|
|
1056
|
-
},
|
|
1056
|
+
}, Q = {
|
|
1057
1057
|
unspecific: e("typeOfSelectionAny"),
|
|
1058
1058
|
all: e("betBuilderOnly"),
|
|
1059
1059
|
none: e("notBuilderOnly")
|
|
1060
1060
|
};
|
|
1061
1061
|
let aA = "", w = "";
|
|
1062
|
-
const x = `${e("oddsPerSelection")}: ${r.config.minOdds || e("unlimited")} - ${r.config.maxOdds || e("unlimited")}`, j =
|
|
1062
|
+
const x = `${e("oddsPerSelection")}: ${r.config.minOdds || e("unlimited")} - ${r.config.maxOdds || e("unlimited")}`, j = N.system.isEligible, T = N.multiple.isEligible;
|
|
1063
1063
|
j && (aA = ` ${e("betTypeSystem")}
|
|
1064
1064
|
( ${e("typeOfSelection")}: ${lA[((q = (J = r.combination.system.banker) == null ? void 0 : J.include) == null ? void 0 : q.toString()) || "null"]},
|
|
1065
1065
|
${e("numberOfSelection")}:
|
|
1066
|
-
${((
|
|
1066
|
+
${((D = N.system.minSelection) == null ? void 0 : D.number) || e("unlimited")} - ${((E = N.system.maxSelection) == null ? void 0 : E.number) || e("unlimited")},
|
|
1067
1067
|
${x} ) `), T && (w = ` ${e("betTypeMultiple")}
|
|
1068
|
-
( ${e("typeOfSelection")}: ${
|
|
1068
|
+
( ${e("typeOfSelection")}: ${Q[((dA = (_ = r.combination.multiple.betBuilder) == null ? void 0 : _.mode) == null ? void 0 : dA.toString()) || "unspecific"]},
|
|
1069
1069
|
${e("numberOfSelection")}:
|
|
1070
|
-
${((v =
|
|
1071
|
-
${x} ) `), j && T ?
|
|
1072
|
-
const
|
|
1073
|
-
return f.push(`${e("sportsRuleMinMaxOdds", { values: { sportMinOdds:
|
|
1070
|
+
${((v = N.multiple.minSelection) == null ? void 0 : v.number) || e("unlimited")} - ${((d = N.multiple.maxSelection) == null ? void 0 : d.number) || e("unlimited")},
|
|
1071
|
+
${x} ) `), j && T ? I.push(w + e("and") + aA) : j ? I.push(aA) : T && I.push(w), f.push(I.join(", "));
|
|
1072
|
+
const H = r.config.minTotalOdds ? `: ${r.config.minTotalOdds}` : g, eA = r.config.maxTotalOdds ? `: ${r.config.maxTotalOdds}` : g;
|
|
1073
|
+
return f.push(`${e("sportsRuleMinMaxOdds", { values: { sportMinOdds: H, sportMaxOdds: eA } })}`), f;
|
|
1074
1074
|
}
|
|
1075
1075
|
}
|
|
1076
1076
|
const Zt = (A, e = 3) => {
|
|
1077
1077
|
var f;
|
|
1078
1078
|
const r = [];
|
|
1079
|
-
for (const
|
|
1080
|
-
const y = (f =
|
|
1079
|
+
for (const g of [...A != null ? A : []].sort((y, B) => y.rank - B.rank)) {
|
|
1080
|
+
const y = (f = g == null ? void 0 : g.name) == null ? void 0 : f.trim();
|
|
1081
1081
|
if (y && !r.includes(y) && r.push(y), r.length === e)
|
|
1082
1082
|
break;
|
|
1083
1083
|
}
|
|
@@ -1135,57 +1135,57 @@ const vt = {
|
|
|
1135
1135
|
}`
|
|
1136
1136
|
};
|
|
1137
1137
|
function gt(A, e) {
|
|
1138
|
-
Ne(e, !0),
|
|
1139
|
-
const r = () => Le(Pe, "$_", f), [f,
|
|
1138
|
+
Ne(e, !0), Be(A, vt);
|
|
1139
|
+
const r = () => Le(Pe, "$_", f), [f, g] = Oe(), y = (n, s = ve, a = ve) => {
|
|
1140
1140
|
var m = oe(), k = te(m);
|
|
1141
1141
|
{
|
|
1142
1142
|
var K = (R) => {
|
|
1143
|
-
var F = ot(), uA = XA(F), cA = NA(uA, 2), U =
|
|
1143
|
+
var F = ot(), uA = XA(F), cA = NA(uA, 2), U = BA(cA, !0);
|
|
1144
1144
|
LA(F), _A(
|
|
1145
1145
|
(rA) => {
|
|
1146
|
-
$A(uA, "src", nt),
|
|
1146
|
+
$A(uA, "src", nt), DA(U, rA);
|
|
1147
1147
|
},
|
|
1148
1148
|
[() => a() ? r()("notQualified") : s()]
|
|
1149
1149
|
), yA(R, F);
|
|
1150
|
-
},
|
|
1150
|
+
}, P = (R) => {
|
|
1151
1151
|
var F = st();
|
|
1152
1152
|
yA(R, F);
|
|
1153
1153
|
};
|
|
1154
1154
|
KA(k, (R) => {
|
|
1155
|
-
a() || s() ? R(K) : R(
|
|
1155
|
+
a() || s() ? R(K) : R(P, -1);
|
|
1156
1156
|
});
|
|
1157
1157
|
}
|
|
1158
1158
|
yA(n, m);
|
|
1159
|
-
},
|
|
1160
|
-
|
|
1159
|
+
}, B = HA(e, "endpoint", 7), O = HA(e, "language", 7, "en"), S = HA(e, "session", 7), Z = HA(e, "tournamentid", 7), N = HA(e, "platform", 7), I = HA(e, "translationurl", 7), wA = HA(e, "newlyEnrolled", 7);
|
|
1160
|
+
De(He), fe(O());
|
|
1161
1161
|
const lA = () => {
|
|
1162
1162
|
fe(O());
|
|
1163
1163
|
};
|
|
1164
1164
|
We(() => {
|
|
1165
|
-
|
|
1165
|
+
I() && ke(I());
|
|
1166
1166
|
}), qA(() => {
|
|
1167
1167
|
lA();
|
|
1168
1168
|
});
|
|
1169
|
-
let
|
|
1170
|
-
const
|
|
1169
|
+
let Q = TA(Ze([])), aA = TA(0), w = TA(0), x = TA(!0), j = TA(!1), T = TA(!1), H = TA(void 0), eA = TA(void 0), oA = TA(!1), sA = TA(!1), J = null, q = TA(null);
|
|
1170
|
+
const D = RA(() => o(aA) + o(Q).length), E = RA(() => o(D) < o(w)), _ = RA(() => o(aA) > 0), dA = RA(() => Math.max(o(w) - o(D), 0));
|
|
1171
1171
|
let v = TA(null);
|
|
1172
1172
|
qA(() => {
|
|
1173
|
-
!o(q) || !o(
|
|
1174
|
-
o(q) && o(
|
|
1173
|
+
!o(q) || !o(Q).length || ae().then(() => {
|
|
1174
|
+
o(q) && o(Q).length && X(v, (o(q).offsetHeight + 4) / o(Q).length);
|
|
1175
1175
|
});
|
|
1176
1176
|
});
|
|
1177
1177
|
const d = RA(() => {
|
|
1178
1178
|
var n, s;
|
|
1179
|
-
return (s = (n = o(
|
|
1179
|
+
return (s = (n = o(H)) == null ? void 0 : n.rank) != null ? s : o(eA);
|
|
1180
1180
|
});
|
|
1181
1181
|
let i = TA(null);
|
|
1182
|
-
const h = RA(() => o(i) === null ? 0 : Math.max(0, o(aA) + o(
|
|
1182
|
+
const h = RA(() => o(i) === null ? 0 : Math.max(0, o(aA) + o(Q).length - o(i))), l = RA(() => o(x) || o(i) === null ? "" : `${o(i)}:${Math.min(o(h), at)}`), b = RA(() => o(Q).find((n) => L(n))), Y = RA(() => {
|
|
1183
1183
|
var n;
|
|
1184
|
-
return (n = o(
|
|
1185
|
-
}), z = RA(() => !!(o(oA) && o(d))),
|
|
1186
|
-
endpoint:
|
|
1184
|
+
return (n = o(b)) != null ? n : o(H);
|
|
1185
|
+
}), z = RA(() => !!(o(oA) && o(d))), L = (n) => o(H) ? n.userID && o(H).userID ? n.userID === o(H).userID : n.rank === o(H).rank : !!o(eA) && n.rank === o(eA), V = (n) => n ? Number.isInteger(n) ? String(n) : n.toFixed(2) : "-", tA = (n, s) => Je({
|
|
1186
|
+
endpoint: B(),
|
|
1187
1187
|
language: O(),
|
|
1188
|
-
platform:
|
|
1188
|
+
platform: N(),
|
|
1189
1189
|
session: S(),
|
|
1190
1190
|
tournamentid: Z(),
|
|
1191
1191
|
offset: n,
|
|
@@ -1195,7 +1195,7 @@ function gt(A, e) {
|
|
|
1195
1195
|
X(x, !0);
|
|
1196
1196
|
try {
|
|
1197
1197
|
const m = yield tA(n, ne);
|
|
1198
|
-
X(
|
|
1198
|
+
X(Q, (s = m.items) != null ? s : [], !0), X(w, (a = m.total) != null ? a : 0, !0), X(aA, n, !0), X(i, n, !0);
|
|
1199
1199
|
} catch (m) {
|
|
1200
1200
|
console.log(m);
|
|
1201
1201
|
} finally {
|
|
@@ -1206,7 +1206,7 @@ function gt(A, e) {
|
|
|
1206
1206
|
X(x, !0);
|
|
1207
1207
|
try {
|
|
1208
1208
|
const [a] = yield Promise.all([tA(0, ne), ZA()]);
|
|
1209
|
-
X(
|
|
1209
|
+
X(Q, (n = a.items) != null ? n : [], !0), X(w, (s = a.total) != null ? s : 0, !0), X(aA, 0), X(i, 0);
|
|
1210
1210
|
} catch (a) {
|
|
1211
1211
|
console.log(a);
|
|
1212
1212
|
} finally {
|
|
@@ -1217,8 +1217,8 @@ function gt(A, e) {
|
|
|
1217
1217
|
if (!(!o(E) || o(j))) {
|
|
1218
1218
|
X(j, !0);
|
|
1219
1219
|
try {
|
|
1220
|
-
const a = yield tA(o(
|
|
1221
|
-
X(
|
|
1220
|
+
const a = yield tA(o(D), ne);
|
|
1221
|
+
X(Q, [...o(Q), ...(n = a.items) != null ? n : []], !0), X(w, (s = a.total) != null ? s : o(w), !0);
|
|
1222
1222
|
} catch (a) {
|
|
1223
1223
|
console.log(a);
|
|
1224
1224
|
} finally {
|
|
@@ -1243,10 +1243,10 @@ function gt(A, e) {
|
|
|
1243
1243
|
if (!(!o(_) || o(T))) {
|
|
1244
1244
|
X(T, !0);
|
|
1245
1245
|
try {
|
|
1246
|
-
const m = Math.max(0, o(aA) - ne), k = yield tA(m, o(aA) - m), K = (n = o(
|
|
1247
|
-
X(
|
|
1246
|
+
const m = Math.max(0, o(aA) - ne), k = yield tA(m, o(aA) - m), K = (n = o(Q)[0]) == null ? void 0 : n.rank, P = (s = vA(K)) == null ? void 0 : s.getBoundingClientRect().top;
|
|
1247
|
+
X(Q, [...(a = k.items) != null ? a : [], ...o(Q)], !0), X(aA, m, !0), yield ae();
|
|
1248
1248
|
const R = vA(K);
|
|
1249
|
-
R &&
|
|
1249
|
+
R && P !== void 0 && (zA(R).scrollTop += R.getBoundingClientRect().top - P);
|
|
1250
1250
|
} catch (m) {
|
|
1251
1251
|
console.log(m);
|
|
1252
1252
|
} finally {
|
|
@@ -1280,7 +1280,7 @@ function gt(A, e) {
|
|
|
1280
1280
|
let a = null;
|
|
1281
1281
|
const m = () => {
|
|
1282
1282
|
J = n, a = new IntersectionObserver((K) => {
|
|
1283
|
-
X(sA, K.some((
|
|
1283
|
+
X(sA, K.some((P) => P.isIntersecting), !0);
|
|
1284
1284
|
}), a.observe(n);
|
|
1285
1285
|
}, k = () => {
|
|
1286
1286
|
a == null || a.disconnect(), a = null, J === n && (J = null, X(sA, !1));
|
|
@@ -1294,14 +1294,14 @@ function gt(A, e) {
|
|
|
1294
1294
|
}, ZA = () => CA(this, null, function* () {
|
|
1295
1295
|
try {
|
|
1296
1296
|
const n = yield _e({
|
|
1297
|
-
endpoint:
|
|
1297
|
+
endpoint: B(),
|
|
1298
1298
|
language: O(),
|
|
1299
|
-
platform:
|
|
1299
|
+
platform: N(),
|
|
1300
1300
|
session: S(),
|
|
1301
1301
|
tournamentid: Z(),
|
|
1302
1302
|
includeUnqualified: !0
|
|
1303
1303
|
});
|
|
1304
|
-
X(
|
|
1304
|
+
X(H, n.playerData, !0), X(eA, n.endRank, !0), X(oA, !!n.playerEnrolled, !0);
|
|
1305
1305
|
} catch (n) {
|
|
1306
1306
|
console.log(n);
|
|
1307
1307
|
}
|
|
@@ -1311,9 +1311,9 @@ function gt(A, e) {
|
|
|
1311
1311
|
return;
|
|
1312
1312
|
const [n, s] = o(l).split(":").map(Number), a = Ue(
|
|
1313
1313
|
{
|
|
1314
|
-
endpoint:
|
|
1314
|
+
endpoint: B(),
|
|
1315
1315
|
language: O(),
|
|
1316
|
-
platform:
|
|
1316
|
+
platform: N(),
|
|
1317
1317
|
session: S(),
|
|
1318
1318
|
tournamentid: Z(),
|
|
1319
1319
|
offset: n,
|
|
@@ -1324,16 +1324,16 @@ function gt(A, e) {
|
|
|
1324
1324
|
if (!(m != null && m.length) || n !== o(i) || k < 0)
|
|
1325
1325
|
return;
|
|
1326
1326
|
X(
|
|
1327
|
-
|
|
1327
|
+
Q,
|
|
1328
1328
|
[
|
|
1329
|
-
...o(
|
|
1329
|
+
...o(Q).slice(0, k),
|
|
1330
1330
|
...m,
|
|
1331
|
-
...o(
|
|
1331
|
+
...o(Q).slice(k + m.length)
|
|
1332
1332
|
],
|
|
1333
1333
|
!0
|
|
1334
1334
|
);
|
|
1335
|
-
const K = o(
|
|
1336
|
-
K && X(
|
|
1335
|
+
const K = o(H) && m.find((P) => L(P));
|
|
1336
|
+
K && X(H, K, !0);
|
|
1337
1337
|
}
|
|
1338
1338
|
);
|
|
1339
1339
|
return () => a.close();
|
|
@@ -1346,10 +1346,10 @@ function gt(A, e) {
|
|
|
1346
1346
|
});
|
|
1347
1347
|
var GA = {
|
|
1348
1348
|
get endpoint() {
|
|
1349
|
-
return
|
|
1349
|
+
return B();
|
|
1350
1350
|
},
|
|
1351
1351
|
set endpoint(n) {
|
|
1352
|
-
|
|
1352
|
+
B(n), VA();
|
|
1353
1353
|
},
|
|
1354
1354
|
get language() {
|
|
1355
1355
|
return O();
|
|
@@ -1370,16 +1370,16 @@ function gt(A, e) {
|
|
|
1370
1370
|
Z(n), VA();
|
|
1371
1371
|
},
|
|
1372
1372
|
get platform() {
|
|
1373
|
-
return
|
|
1373
|
+
return N();
|
|
1374
1374
|
},
|
|
1375
1375
|
set platform(n) {
|
|
1376
|
-
|
|
1376
|
+
N(n), VA();
|
|
1377
1377
|
},
|
|
1378
1378
|
get translationurl() {
|
|
1379
|
-
return
|
|
1379
|
+
return I();
|
|
1380
1380
|
},
|
|
1381
1381
|
set translationurl(n) {
|
|
1382
|
-
|
|
1382
|
+
I(n), VA();
|
|
1383
1383
|
},
|
|
1384
1384
|
get newlyEnrolled() {
|
|
1385
1385
|
return wA();
|
|
@@ -1390,10 +1390,10 @@ function gt(A, e) {
|
|
|
1390
1390
|
}, t = pt(), c = XA(t);
|
|
1391
1391
|
{
|
|
1392
1392
|
var p = (n) => {
|
|
1393
|
-
var s = be(), a = XA(s), m =
|
|
1393
|
+
var s = be(), a = XA(s), m = BA(a, !0), k = NA(a, 2), K = BA(k, !0);
|
|
1394
1394
|
LA(s), _A(
|
|
1395
|
-
(
|
|
1396
|
-
|
|
1395
|
+
(P, R) => {
|
|
1396
|
+
DA(m, P), DA(K, R);
|
|
1397
1397
|
},
|
|
1398
1398
|
[
|
|
1399
1399
|
() => r()("leaderboardLoggedOutTitle"),
|
|
@@ -1403,14 +1403,14 @@ function gt(A, e) {
|
|
|
1403
1403
|
}, u = (n) => {
|
|
1404
1404
|
var s = lt();
|
|
1405
1405
|
he(s, 20, () => Array(8), me, (a, m, k, K) => {
|
|
1406
|
-
var
|
|
1407
|
-
yA(a,
|
|
1406
|
+
var P = dt();
|
|
1407
|
+
yA(a, P);
|
|
1408
1408
|
}), LA(s), yA(n, s);
|
|
1409
1409
|
}, C = (n) => {
|
|
1410
|
-
var s = be(), a = XA(s), m =
|
|
1410
|
+
var s = be(), a = XA(s), m = BA(a, !0), k = NA(a, 2), K = BA(k, !0);
|
|
1411
1411
|
LA(s), _A(
|
|
1412
|
-
(
|
|
1413
|
-
|
|
1412
|
+
(P, R) => {
|
|
1413
|
+
DA(m, P), DA(K, R);
|
|
1414
1414
|
},
|
|
1415
1415
|
[
|
|
1416
1416
|
() => r()("noLeaderboardTitle"),
|
|
@@ -1432,18 +1432,18 @@ function gt(A, e) {
|
|
|
1432
1432
|
});
|
|
1433
1433
|
}
|
|
1434
1434
|
var k = NA(a, 2);
|
|
1435
|
-
he(k, 21, () => o(
|
|
1436
|
-
const uA = RA(() =>
|
|
1435
|
+
he(k, 21, () => o(Q), me, (R, F) => {
|
|
1436
|
+
const uA = RA(() => L(o(F)));
|
|
1437
1437
|
var cA = ct();
|
|
1438
1438
|
let U;
|
|
1439
|
-
var rA = XA(cA), iA =
|
|
1439
|
+
var rA = XA(cA), iA = BA(rA, !0), QA = NA(rA, 2), OA = BA(QA, !0), Ae = NA(QA, 2), re = BA(Ae, !0), ee = NA(Ae, 2);
|
|
1440
1440
|
{
|
|
1441
1441
|
let kA = RA(() => o(uA) && !!o(F).unqualified);
|
|
1442
1442
|
y(ee, () => o(F).prizeName, () => o(kA));
|
|
1443
1443
|
}
|
|
1444
1444
|
LA(cA), ie(cA, (kA, jA) => YA == null ? void 0 : YA(kA, jA), () => o(uA)), _A(
|
|
1445
1445
|
(kA, jA) => {
|
|
1446
|
-
U = pe(cA, 1, "tournament-leaderboard__row svelte-1mz4he7", null, U, { "tournament-leaderboard__row--player": o(uA) }), $A(cA, "data-rank", o(F).rank),
|
|
1446
|
+
U = pe(cA, 1, "tournament-leaderboard__row svelte-1mz4he7", null, U, { "tournament-leaderboard__row--player": o(uA) }), $A(cA, "data-rank", o(F).rank), DA(iA, o(F).rank), DA(OA, kA), DA(re, jA);
|
|
1447
1447
|
},
|
|
1448
1448
|
[
|
|
1449
1449
|
() => o(uA) ? r()("youLabel") : o(F).shortName || "J.D",
|
|
@@ -1453,9 +1453,9 @@ function gt(A, e) {
|
|
|
1453
1453
|
}), LA(k), Fe(k, (R) => X(q, R), () => o(q));
|
|
1454
1454
|
var K = NA(k, 2);
|
|
1455
1455
|
{
|
|
1456
|
-
var
|
|
1456
|
+
var P = (R) => {
|
|
1457
1457
|
var F = oe(), uA = te(F);
|
|
1458
|
-
ge(uA, () => o(
|
|
1458
|
+
ge(uA, () => o(D), (cA) => {
|
|
1459
1459
|
var U = ft();
|
|
1460
1460
|
let rA;
|
|
1461
1461
|
ie(U, (iA, QA) => mA == null ? void 0 : mA(iA, QA), () => MA), _A(() => rA = Qe(U, "", rA, {
|
|
@@ -1465,13 +1465,13 @@ function gt(A, e) {
|
|
|
1465
1465
|
}), yA(R, F);
|
|
1466
1466
|
};
|
|
1467
1467
|
KA(K, (R) => {
|
|
1468
|
-
o(E) && R(
|
|
1468
|
+
o(E) && R(P);
|
|
1469
1469
|
});
|
|
1470
1470
|
}
|
|
1471
1471
|
yA(n, s);
|
|
1472
1472
|
};
|
|
1473
1473
|
KA(c, (n) => {
|
|
1474
|
-
S() ? o(x) ? n(u, 1) : o(
|
|
1474
|
+
S() ? o(x) ? n(u, 1) : o(Q).length === 0 ? n(C, 2) : n(M, -1) : n(p);
|
|
1475
1475
|
});
|
|
1476
1476
|
}
|
|
1477
1477
|
var W = NA(c, 2);
|
|
@@ -1479,7 +1479,7 @@ function gt(A, e) {
|
|
|
1479
1479
|
var nA = (n) => {
|
|
1480
1480
|
var s = mt();
|
|
1481
1481
|
let a;
|
|
1482
|
-
var m = XA(s), k = XA(m), K =
|
|
1482
|
+
var m = XA(s), k = XA(m), K = BA(k, !0), P = NA(k, 2), R = BA(P, !0), F = NA(P, 2), uA = BA(F, !0), cA = NA(F, 2);
|
|
1483
1483
|
{
|
|
1484
1484
|
let U = RA(() => {
|
|
1485
1485
|
var rA;
|
|
@@ -1494,7 +1494,7 @@ function gt(A, e) {
|
|
|
1494
1494
|
(U, rA, iA) => {
|
|
1495
1495
|
a = pe(s, 1, "tournament-leaderboard__sticky svelte-1mz4he7", null, a, {
|
|
1496
1496
|
"tournament-leaderboard__sticky--hidden": o(sA)
|
|
1497
|
-
}), $A(s, "aria-hidden", o(sA)), $A(m, "aria-label", U), $A(m, "tabindex", o(sA) ? -1 : 0),
|
|
1497
|
+
}), $A(s, "aria-hidden", o(sA)), $A(m, "aria-label", U), $A(m, "tabindex", o(sA) ? -1 : 0), DA(K, o(d)), DA(R, rA), DA(uA, iA);
|
|
1498
1498
|
},
|
|
1499
1499
|
[
|
|
1500
1500
|
() => r()("goToMyPosition"),
|
|
@@ -1512,7 +1512,7 @@ function gt(A, e) {
|
|
|
1512
1512
|
}
|
|
1513
1513
|
LA(t), yA(A, t);
|
|
1514
1514
|
var G = Ge(GA);
|
|
1515
|
-
return
|
|
1515
|
+
return g(), G;
|
|
1516
1516
|
}
|
|
1517
1517
|
Re(["click"]);
|
|
1518
1518
|
xe(
|
|
@@ -1540,7 +1540,7 @@ export {
|
|
|
1540
1540
|
Ot as c,
|
|
1541
1541
|
kt as d,
|
|
1542
1542
|
Pt as e,
|
|
1543
|
-
|
|
1543
|
+
Bt as f,
|
|
1544
1544
|
Zt as g,
|
|
1545
1545
|
Ht as h,
|
|
1546
1546
|
Vt as i,
|
|
@@ -1555,7 +1555,7 @@ export {
|
|
|
1555
1555
|
Et as r,
|
|
1556
1556
|
St as s,
|
|
1557
1557
|
Yt as t,
|
|
1558
|
-
|
|
1558
|
+
Dt as u,
|
|
1559
1559
|
Rt as v,
|
|
1560
1560
|
xt as w
|
|
1561
1561
|
};
|