@everymatrix/casino-tournaments-slider-controller 1.87.26 → 1.87.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,982 +0,0 @@
1
- var At = Object.defineProperty, Ct = Object.defineProperties;
2
- var Et = Object.getOwnPropertyDescriptors;
3
- var ut = Object.getOwnPropertySymbols;
4
- var Rt = Object.prototype.hasOwnProperty, zt = Object.prototype.propertyIsEnumerable;
5
- var tt = (e, t, n) => t in e ? At(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ft = (e, t) => {
6
- for (var n in t || (t = {}))
7
- Rt.call(t, n) && tt(e, n, t[n]);
8
- if (ut)
9
- for (var n of ut(t))
10
- zt.call(t, n) && tt(e, n, t[n]);
11
- return e;
12
- }, ht = (e, t) => Ct(e, Et(t));
13
- var E = (e, t, n) => (tt(e, typeof t != "symbol" ? t + "" : t, n), n);
14
- var dt = (e, t, n) => new Promise((i, o) => {
15
- var r = (s) => {
16
- try {
17
- c(n.next(s));
18
- } catch (a) {
19
- o(a);
20
- }
21
- }, l = (s) => {
22
- try {
23
- c(n.throw(s));
24
- } catch (a) {
25
- o(a);
26
- }
27
- }, c = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(r, l);
28
- c((n = n.apply(e, t)).next());
29
- });
30
- function T() {
31
- }
32
- const Lt = (e) => e;
33
- function yt(e) {
34
- return e();
35
- }
36
- function gt() {
37
- return /* @__PURE__ */ Object.create(null);
38
- }
39
- function O(e) {
40
- e.forEach(yt);
41
- }
42
- function ot(e) {
43
- return typeof e == "function";
44
- }
45
- function Pt(e, t) {
46
- return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
47
- }
48
- let V;
49
- function mt(e, t) {
50
- return e === t ? !0 : (V || (V = document.createElement("a")), V.href = t, e === V.href);
51
- }
52
- function Mt(e) {
53
- return Object.keys(e).length === 0;
54
- }
55
- function Tt(e, ...t) {
56
- if (e == null) {
57
- for (const i of t)
58
- i(void 0);
59
- return T;
60
- }
61
- const n = e.subscribe(...t);
62
- return n.unsubscribe ? () => n.unsubscribe() : n;
63
- }
64
- function pe(e, t, n) {
65
- e.$$.on_destroy.push(Tt(t, n));
66
- }
67
- const bt = typeof window != "undefined";
68
- let It = bt ? () => window.performance.now() : () => Date.now(), ct = bt ? (e) => requestAnimationFrame(e) : T;
69
- const j = /* @__PURE__ */ new Set();
70
- function kt(e) {
71
- j.forEach((t) => {
72
- t.c(e) || (j.delete(t), t.f());
73
- }), j.size !== 0 && ct(kt);
74
- }
75
- function Ut(e) {
76
- let t;
77
- return j.size === 0 && ct(kt), {
78
- promise: new Promise((n) => {
79
- j.add(t = { c: e, f: n });
80
- }),
81
- abort() {
82
- j.delete(t);
83
- }
84
- };
85
- }
86
- function x(e, t) {
87
- e.appendChild(t);
88
- }
89
- function jt(e, t, n) {
90
- const i = lt(e);
91
- if (!i.getElementById(t)) {
92
- const o = R("style");
93
- o.id = t, o.textContent = n, xt(i, o);
94
- }
95
- }
96
- function lt(e) {
97
- if (!e)
98
- return document;
99
- const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
100
- return t && /** @type {ShadowRoot} */
101
- t.host ? (
102
- /** @type {ShadowRoot} */
103
- t
104
- ) : e.ownerDocument;
105
- }
106
- function Ht(e) {
107
- const t = R("style");
108
- return t.textContent = "/* empty */", xt(lt(e), t), t.sheet;
109
- }
110
- function xt(e, t) {
111
- return x(
112
- /** @type {Document} */
113
- e.head || e,
114
- t
115
- ), t.sheet;
116
- }
117
- function Y(e, t, n) {
118
- e.insertBefore(t, n || null);
119
- }
120
- function D(e) {
121
- e.parentNode && e.parentNode.removeChild(e);
122
- }
123
- function _e(e, t) {
124
- for (let n = 0; n < e.length; n += 1)
125
- e[n] && e[n].d(t);
126
- }
127
- function R(e) {
128
- return document.createElement(e);
129
- }
130
- function we(e) {
131
- return document.createElementNS("http://www.w3.org/2000/svg", e);
132
- }
133
- function Z(e) {
134
- return document.createTextNode(e);
135
- }
136
- function N() {
137
- return Z(" ");
138
- }
139
- function ye(e, t, n, i) {
140
- return e.addEventListener(t, n, i), () => e.removeEventListener(t, n, i);
141
- }
142
- function h(e, t, n) {
143
- n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
144
- }
145
- function be(e, t, n) {
146
- const i = t.toLowerCase();
147
- i in e ? e[i] = typeof e[i] == "boolean" && n === "" ? !0 : n : t in e ? e[t] = typeof e[t] == "boolean" && n === "" ? !0 : n : h(e, t, n);
148
- }
149
- function ke(e, t, n) {
150
- e.setAttributeNS("http://www.w3.org/1999/xlink", t, n);
151
- }
152
- function Ot(e) {
153
- return Array.from(e.childNodes);
154
- }
155
- function et(e, t) {
156
- t = "" + t, e.data !== t && (e.data = /** @type {string} */
157
- t);
158
- }
159
- function xe(e, t, n, i) {
160
- e.style.setProperty(t, n, "");
161
- }
162
- function Dt(e, t, { bubbles: n = !1, cancelable: i = !1 } = {}) {
163
- return new CustomEvent(e, { detail: t, bubbles: n, cancelable: i });
164
- }
165
- function Nt(e) {
166
- const t = {};
167
- return e.childNodes.forEach(
168
- /** @param {Element} node */
169
- (n) => {
170
- t[n.slot || "default"] = !0;
171
- }
172
- ), t;
173
- }
174
- const Q = /* @__PURE__ */ new Map();
175
- let W = 0;
176
- function Bt(e) {
177
- let t = 5381, n = e.length;
178
- for (; n--; )
179
- t = (t << 5) - t ^ e.charCodeAt(n);
180
- return t >>> 0;
181
- }
182
- function qt(e, t) {
183
- const n = { stylesheet: Ht(t), rules: {} };
184
- return Q.set(e, n), n;
185
- }
186
- function $t(e, t, n, i, o, r, l, c = 0) {
187
- const s = 16.666 / i;
188
- let a = `{
189
- `;
190
- for (let g = 0; g <= 1; g += s) {
191
- const v = t + (n - t) * r(g);
192
- a += g * 100 + `%{${l(v, 1 - v)}}
193
- `;
194
- }
195
- const $ = a + `100% {${l(n, 1 - n)}}
196
- }`, d = `__svelte_${Bt($)}_${c}`, m = lt(e), { stylesheet: w, rules: u } = Q.get(m) || qt(m, e);
197
- u[d] || (u[d] = !0, w.insertRule(`@keyframes ${d} ${$}`, w.cssRules.length));
198
- const _ = e.style.animation || "";
199
- return e.style.animation = `${_ ? `${_}, ` : ""}${d} ${i}ms linear ${o}ms 1 both`, W += 1, d;
200
- }
201
- function Ft(e, t) {
202
- const n = (e.style.animation || "").split(", "), i = n.filter(
203
- t ? (r) => r.indexOf(t) < 0 : (r) => r.indexOf("__svelte") === -1
204
- // remove all Svelte animations
205
- ), o = n.length - i.length;
206
- o && (e.style.animation = i.join(", "), W -= o, W || Jt());
207
- }
208
- function Jt() {
209
- ct(() => {
210
- W || (Q.forEach((e) => {
211
- const { ownerNode: t } = e.stylesheet;
212
- t && D(t);
213
- }), Q.clear());
214
- });
215
- }
216
- let F;
217
- function q(e) {
218
- F = e;
219
- }
220
- function Vt() {
221
- if (!F)
222
- throw new Error("Function called outside component initialization");
223
- return F;
224
- }
225
- function Zt(e) {
226
- Vt().$$.on_mount.push(e);
227
- }
228
- const U = [], st = [];
229
- let H = [];
230
- const pt = [], Gt = /* @__PURE__ */ Promise.resolve();
231
- let rt = !1;
232
- function Kt() {
233
- rt || (rt = !0, Gt.then(S));
234
- }
235
- function X(e) {
236
- H.push(e);
237
- }
238
- const nt = /* @__PURE__ */ new Set();
239
- let I = 0;
240
- function S() {
241
- if (I !== 0)
242
- return;
243
- const e = F;
244
- do {
245
- try {
246
- for (; I < U.length; ) {
247
- const t = U[I];
248
- I++, q(t), Qt(t.$$);
249
- }
250
- } catch (t) {
251
- throw U.length = 0, I = 0, t;
252
- }
253
- for (q(null), U.length = 0, I = 0; st.length; )
254
- st.pop()();
255
- for (let t = 0; t < H.length; t += 1) {
256
- const n = H[t];
257
- nt.has(n) || (nt.add(n), n());
258
- }
259
- H.length = 0;
260
- } while (U.length);
261
- for (; pt.length; )
262
- pt.pop()();
263
- rt = !1, nt.clear(), q(e);
264
- }
265
- function Qt(e) {
266
- if (e.fragment !== null) {
267
- e.update(), O(e.before_update);
268
- const t = e.dirty;
269
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(X);
270
- }
271
- }
272
- function Wt(e) {
273
- const t = [], n = [];
274
- H.forEach((i) => e.indexOf(i) === -1 ? t.push(i) : n.push(i)), n.forEach((i) => i()), H = t;
275
- }
276
- let B;
277
- function Xt() {
278
- return B || (B = Promise.resolve(), B.then(() => {
279
- B = null;
280
- })), B;
281
- }
282
- function it(e, t, n) {
283
- e.dispatchEvent(Dt(`${t ? "intro" : "outro"}${n}`));
284
- }
285
- const G = /* @__PURE__ */ new Set();
286
- let M;
287
- function ve() {
288
- M = {
289
- r: 0,
290
- c: [],
291
- p: M
292
- // parent group
293
- };
294
- }
295
- function Se() {
296
- M.r || O(M.c), M = M.p;
297
- }
298
- function Yt(e, t) {
299
- e && e.i && (G.delete(e), e.i(t));
300
- }
301
- function Ae(e, t, n, i) {
302
- if (e && e.o) {
303
- if (G.has(e))
304
- return;
305
- G.add(e), M.c.push(() => {
306
- G.delete(e), i && (n && e.d(1), i());
307
- }), e.o(t);
308
- } else
309
- i && i();
310
- }
311
- const te = { duration: 0 };
312
- function Ce(e, t, n, i) {
313
- let r = t(e, n, { direction: "both" }), l = i ? 0 : 1, c = null, s = null, a = null, $;
314
- function d() {
315
- a && Ft(e, a);
316
- }
317
- function m(u, _) {
318
- const g = (
319
- /** @type {Program['d']} */
320
- u.b - l
321
- );
322
- return _ *= Math.abs(g), {
323
- a: l,
324
- b: u.b,
325
- d: g,
326
- duration: _,
327
- start: u.start,
328
- end: u.start + _,
329
- group: u.group
330
- };
331
- }
332
- function w(u) {
333
- const {
334
- delay: _ = 0,
335
- duration: g = 300,
336
- easing: v = Lt,
337
- tick: A = T,
338
- css: L
339
- } = r || te, z = {
340
- start: It() + _,
341
- b: u
342
- };
343
- u || (z.group = M, M.r += 1), "inert" in e && (u ? $ !== void 0 && (e.inert = $) : ($ = /** @type {HTMLElement} */
344
- e.inert, e.inert = !0)), c || s ? s = z : (L && (d(), a = $t(e, l, u, g, _, v, L)), u && A(0, 1), c = m(z, g), X(() => it(e, u, "start")), Ut((y) => {
345
- if (s && y > s.start && (c = m(s, g), s = null, it(e, c.b, "start"), L && (d(), a = $t(
346
- e,
347
- l,
348
- c.b,
349
- c.duration,
350
- 0,
351
- v,
352
- r.css
353
- ))), c) {
354
- if (y >= c.end)
355
- A(l = c.b, 1 - l), it(e, c.b, "end"), s || (c.b ? d() : --c.group.r || O(c.group.c)), c = null;
356
- else if (y >= c.start) {
357
- const P = y - c.start;
358
- l = c.a + c.d * v(P / c.duration), A(l, 1 - l);
359
- }
360
- }
361
- return !!(c || s);
362
- }));
363
- }
364
- return {
365
- run(u) {
366
- ot(r) ? Xt().then(() => {
367
- r = r({ direction: u ? "in" : "out" }), w(u);
368
- }) : w(u);
369
- },
370
- end() {
371
- d(), c = s = null;
372
- }
373
- };
374
- }
375
- function Ee(e) {
376
- return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
377
- }
378
- function ee(e, t, n) {
379
- const { fragment: i, after_update: o } = e.$$;
380
- i && i.m(t, n), X(() => {
381
- const r = e.$$.on_mount.map(yt).filter(ot);
382
- e.$$.on_destroy ? e.$$.on_destroy.push(...r) : O(r), e.$$.on_mount = [];
383
- }), o.forEach(X);
384
- }
385
- function ne(e, t) {
386
- const n = e.$$;
387
- n.fragment !== null && (Wt(n.after_update), O(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
388
- }
389
- function ie(e, t) {
390
- e.$$.dirty[0] === -1 && (U.push(e), Kt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
391
- }
392
- function se(e, t, n, i, o, r, l = null, c = [-1]) {
393
- const s = F;
394
- q(e);
395
- const a = e.$$ = {
396
- fragment: null,
397
- ctx: [],
398
- // state
399
- props: r,
400
- update: T,
401
- not_equal: o,
402
- bound: gt(),
403
- // lifecycle
404
- on_mount: [],
405
- on_destroy: [],
406
- on_disconnect: [],
407
- before_update: [],
408
- after_update: [],
409
- context: new Map(t.context || (s ? s.$$.context : [])),
410
- // everything else
411
- callbacks: gt(),
412
- dirty: c,
413
- skip_bound: !1,
414
- root: t.target || s.$$.root
415
- };
416
- l && l(a.root);
417
- let $ = !1;
418
- if (a.ctx = n ? n(e, t.props || {}, (d, m, ...w) => {
419
- const u = w.length ? w[0] : m;
420
- return a.ctx && o(a.ctx[d], a.ctx[d] = u) && (!a.skip_bound && a.bound[d] && a.bound[d](u), $ && ie(e, d)), m;
421
- }) : [], a.update(), $ = !0, O(a.before_update), a.fragment = i ? i(a.ctx) : !1, t.target) {
422
- if (t.hydrate) {
423
- const d = Ot(t.target);
424
- a.fragment && a.fragment.l(d), d.forEach(D);
425
- } else
426
- a.fragment && a.fragment.c();
427
- t.intro && Yt(e.$$.fragment), ee(e, t.target, t.anchor), S();
428
- }
429
- q(s);
430
- }
431
- let vt;
432
- typeof HTMLElement == "function" && (vt = class extends HTMLElement {
433
- constructor(t, n, i) {
434
- super();
435
- /** The Svelte component constructor */
436
- E(this, "$$ctor");
437
- /** Slots */
438
- E(this, "$$s");
439
- /** The Svelte component instance */
440
- E(this, "$$c");
441
- /** Whether or not the custom element is connected */
442
- E(this, "$$cn", !1);
443
- /** Component props data */
444
- E(this, "$$d", {});
445
- /** `true` if currently in the process of reflecting component props back to attributes */
446
- E(this, "$$r", !1);
447
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
448
- E(this, "$$p_d", {});
449
- /** @type {Record<string, Function[]>} Event listeners */
450
- E(this, "$$l", {});
451
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
452
- E(this, "$$l_u", /* @__PURE__ */ new Map());
453
- this.$$ctor = t, this.$$s = n, i && this.attachShadow({ mode: "open" });
454
- }
455
- addEventListener(t, n, i) {
456
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
457
- const o = this.$$c.$on(t, n);
458
- this.$$l_u.set(n, o);
459
- }
460
- super.addEventListener(t, n, i);
461
- }
462
- removeEventListener(t, n, i) {
463
- if (super.removeEventListener(t, n, i), this.$$c) {
464
- const o = this.$$l_u.get(n);
465
- o && (o(), this.$$l_u.delete(n));
466
- }
467
- }
468
- connectedCallback() {
469
- return dt(this, null, function* () {
470
- if (this.$$cn = !0, !this.$$c) {
471
- let t = function(r) {
472
- return () => {
473
- let l;
474
- return {
475
- c: function() {
476
- l = R("slot"), r !== "default" && h(l, "name", r);
477
- },
478
- /**
479
- * @param {HTMLElement} target
480
- * @param {HTMLElement} [anchor]
481
- */
482
- m: function(a, $) {
483
- Y(a, l, $);
484
- },
485
- d: function(a) {
486
- a && D(l);
487
- }
488
- };
489
- };
490
- };
491
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
492
- return;
493
- const n = {}, i = Nt(this);
494
- for (const r of this.$$s)
495
- r in i && (n[r] = [t(r)]);
496
- for (const r of this.attributes) {
497
- const l = this.$$g_p(r.name);
498
- l in this.$$d || (this.$$d[l] = K(l, r.value, this.$$p_d, "toProp"));
499
- }
500
- for (const r in this.$$p_d)
501
- !(r in this.$$d) && this[r] !== void 0 && (this.$$d[r] = this[r], delete this[r]);
502
- this.$$c = new this.$$ctor({
503
- target: this.shadowRoot || this,
504
- props: ht(ft({}, this.$$d), {
505
- $$slots: n,
506
- $$scope: {
507
- ctx: []
508
- }
509
- })
510
- });
511
- const o = () => {
512
- this.$$r = !0;
513
- for (const r in this.$$p_d)
514
- if (this.$$d[r] = this.$$c.$$.ctx[this.$$c.$$.props[r]], this.$$p_d[r].reflect) {
515
- const l = K(
516
- r,
517
- this.$$d[r],
518
- this.$$p_d,
519
- "toAttribute"
520
- );
521
- l == null ? this.removeAttribute(this.$$p_d[r].attribute || r) : this.setAttribute(this.$$p_d[r].attribute || r, l);
522
- }
523
- this.$$r = !1;
524
- };
525
- this.$$c.$$.after_update.push(o), o();
526
- for (const r in this.$$l)
527
- for (const l of this.$$l[r]) {
528
- const c = this.$$c.$on(r, l);
529
- this.$$l_u.set(l, c);
530
- }
531
- this.$$l = {};
532
- }
533
- });
534
- }
535
- // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
536
- // and setting attributes through setAttribute etc, this is helpful
537
- attributeChangedCallback(t, n, i) {
538
- var o;
539
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = K(t, i, this.$$p_d, "toProp"), (o = this.$$c) == null || o.$set({ [t]: this.$$d[t] }));
540
- }
541
- disconnectedCallback() {
542
- this.$$cn = !1, Promise.resolve().then(() => {
543
- !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
544
- });
545
- }
546
- $$g_p(t) {
547
- return Object.keys(this.$$p_d).find(
548
- (n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
549
- ) || t;
550
- }
551
- });
552
- function K(e, t, n, i) {
553
- var r;
554
- const o = (r = n[e]) == null ? void 0 : r.type;
555
- if (t = o === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !n[e])
556
- return t;
557
- if (i === "toAttribute")
558
- switch (o) {
559
- case "Object":
560
- case "Array":
561
- return t == null ? null : JSON.stringify(t);
562
- case "Boolean":
563
- return t ? "" : null;
564
- case "Number":
565
- return t == null ? null : t;
566
- default:
567
- return t;
568
- }
569
- else
570
- switch (o) {
571
- case "Object":
572
- case "Array":
573
- return t && JSON.parse(t);
574
- case "Boolean":
575
- return t;
576
- case "Number":
577
- return t != null ? +t : t;
578
- default:
579
- return t;
580
- }
581
- }
582
- function re(e, t, n, i, o, r) {
583
- let l = class extends vt {
584
- constructor() {
585
- super(e, n, o), this.$$p_d = t;
586
- }
587
- static get observedAttributes() {
588
- return Object.keys(t).map(
589
- (c) => (t[c].attribute || c).toLowerCase()
590
- );
591
- }
592
- };
593
- return Object.keys(t).forEach((c) => {
594
- Object.defineProperty(l.prototype, c, {
595
- get() {
596
- return this.$$c && c in this.$$c ? this.$$c[c] : this.$$d[c];
597
- },
598
- set(s) {
599
- var a;
600
- s = K(c, s, t), this.$$d[c] = s, (a = this.$$c) == null || a.$set({ [c]: s });
601
- }
602
- });
603
- }), i.forEach((c) => {
604
- Object.defineProperty(l.prototype, c, {
605
- get() {
606
- var s;
607
- return (s = this.$$c) == null ? void 0 : s[c];
608
- }
609
- });
610
- }), e.element = /** @type {any} */
611
- l, l;
612
- }
613
- class oe {
614
- constructor() {
615
- /**
616
- * ### PRIVATE API
617
- *
618
- * Do not use, may change at any time
619
- *
620
- * @type {any}
621
- */
622
- E(this, "$$");
623
- /**
624
- * ### PRIVATE API
625
- *
626
- * Do not use, may change at any time
627
- *
628
- * @type {any}
629
- */
630
- E(this, "$$set");
631
- }
632
- /** @returns {void} */
633
- $destroy() {
634
- ne(this, 1), this.$destroy = T;
635
- }
636
- /**
637
- * @template {Extract<keyof Events, string>} K
638
- * @param {K} type
639
- * @param {((e: Events[K]) => void) | null | undefined} callback
640
- * @returns {() => void}
641
- */
642
- $on(t, n) {
643
- if (!ot(n))
644
- return T;
645
- const i = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
646
- return i.push(n), () => {
647
- const o = i.indexOf(n);
648
- o !== -1 && i.splice(o, 1);
649
- };
650
- }
651
- /**
652
- * @param {Partial<Props>} props
653
- * @returns {void}
654
- */
655
- $set(t) {
656
- this.$$set && !Mt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
657
- }
658
- }
659
- const ce = "4";
660
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ce);
661
- function le(e, t) {
662
- if (e) {
663
- const n = document.createElement("style");
664
- n.innerHTML = t, e.appendChild(n);
665
- }
666
- }
667
- function ae(e, t) {
668
- if (!e || !t)
669
- return;
670
- const n = new URL(t);
671
- fetch(n.href).then((i) => i.text()).then((i) => {
672
- const o = document.createElement("style");
673
- o.innerHTML = i, e && e.appendChild(o);
674
- }).catch((i) => {
675
- console.error("There was an error while trying to load client styling from URL", i);
676
- });
677
- }
678
- function ue(e, t, n) {
679
- if (window.emMessageBus) {
680
- const i = document.createElement("style");
681
- window.emMessageBus.subscribe(t, (o) => {
682
- i.innerHTML = o, e && e.appendChild(i);
683
- });
684
- }
685
- }
686
- const fe = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='4.9999'%20cy='4.9999'%20r='4.9999'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1149)'%3e%3cline%20x1='4.93332'%20y1='4'%20x2='4.93332'%20y2='7.99992'%20stroke='%2359CA00'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%202L7.59699%204.99994H2.40094L4.99896%202Z'%20fill='%2359CA00'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1149'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='translate(1.99902%202)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", he = "data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20r='4.9999'%20transform='matrix(1%200%200%20-1%204.9999%205.0001)'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1154)'%3e%3cline%20y1='-0.933315'%20x2='3.99992'%20y2='-0.933315'%20transform='matrix(0%20-1%20-1%200%204%206)'%20stroke='%23CA0000'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%208L7.59699%205.00006H2.40094L4.99896%208Z'%20fill='%23CA0000'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1154'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='matrix(1%200%200%20-1%201.99902%208)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
687
- function de(e) {
688
- jt(e, "svelte-1njm5xr", ".row{display:flex}.row .RankSec,.row .PrizeSec{width:49%}.col{display:inline-block}.RankSec,.PrizeSec{background-color:#c4c4c4;display:flex;padding:5px;margin:5px}.RankSec span,.PrizeSec span{text-align:center}.casino-tournaments-rank{background:transparent;min-height:22px;width:100%}.Icon{width:22px;height:22px;display:flex;border-right:2px solid;margin-right:5px;padding-right:3px}.Icon svg{width:15px;height:15px;margin:auto}.RankInfo{vertical-align:middle;line-height:22px;font-weight:bold;padding-left:5px;padding-right:10px}.svg.Arrow.Up,.svg.Arrow.Down{position:absolute;width:15px;height:15px;vertical-align:bottom;padding-left:3px;display:none;padding:3px;padding:3px}.svg.Arrow.Up.Show,.svg.Arrow.Down.Show{display:inline-flex}.svg.Arrow.Up.Hidden,.svg.Arrow.Down.Hidden{display:none}svg.Arrow.Up,svg.Arrow.Down,.svg.Arrow.Up,.svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}");
689
- }
690
- function _t(e) {
691
- let t;
692
- return {
693
- c() {
694
- t = R("span"), t.innerHTML = '<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="user" class="svg-inline--fa fa-user" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224 256c70.7 0 128-57.31 128-128s-57.3-128-128-128C153.3 0 96 57.31 96 128S153.3 256 224 256zM274.7 304H173.3C77.61 304 0 381.6 0 477.3c0 19.14 15.52 34.67 34.66 34.67h378.7C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304z"></path></svg>', h(t, "class", "Icon UserIcon"), h(t, "part", "Icon UserIcon");
695
- },
696
- m(n, i) {
697
- Y(n, t, i);
698
- },
699
- d(n) {
700
- n && D(t);
701
- }
702
- };
703
- }
704
- function wt(e) {
705
- let t;
706
- return {
707
- c() {
708
- t = R("span"), t.innerHTML = '<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="award" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" class="svg-inline--fa fa-award fa-w-12 fa-3x"><path fill="currentColor" d="M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z" class=""></path></svg>', h(t, "class", "Icon PrizeIcon"), h(t, "part", "Icon PrizeIcon");
709
- },
710
- m(n, i) {
711
- Y(n, t, i);
712
- },
713
- d(n) {
714
- n && D(t);
715
- }
716
- };
717
- }
718
- function ge(e) {
719
- let t, n, i, o, r, l, c, s, a, $, d, m, w, u, _, g, v, A, L, z, y, P, b = (
720
- /*showicon*/
721
- e[2] == "true" && _t()
722
- ), k = (
723
- /*showicon*/
724
- e[2] == "true" && wt()
725
- );
726
- return {
727
- c() {
728
- t = R("div"), n = R("div"), b && b.c(), i = N(), o = R("span"), r = Z(
729
- /*rankprefix*/
730
- e[1]
731
- ), l = Z(
732
- /*rankinfo*/
733
- e[7]
734
- ), c = N(), s = R("img"), d = N(), m = R("img"), _ = N(), g = R("div"), k && k.c(), v = N(), A = R("span"), L = Z(
735
- /*prize*/
736
- e[0]
737
- ), h(s, "part", "Rank_Arror_UP"), h(s, "alt", "Rank Up"), mt(s.src, a = fe) || h(s, "src", a), h(s, "width", "20"), h(s, "height", "20"), h(s, "class", $ = "svg Arrow Up " + /*userRankChanged*/
738
- (e[5] && /*isRankingUp*/
739
- e[6] ? "Show" : "Hidden")), h(m, "part", "Rank_Arror_Down"), h(m, "alt", "Rank Down"), mt(m.src, w = he) || h(m, "src", w), h(m, "width", "10"), h(m, "height", "10"), h(m, "class", u = "svg Arrow Down " + /*userRankChanged*/
740
- (e[5] && !/*isRankingUp*/
741
- e[6] ? "Show" : "Hidden")), h(o, "class", "RankInfo"), h(o, "part", "RankText"), h(n, "class", "RankSec"), h(n, "part", "Rank"), h(A, "class", "RankInfo UserPrize"), h(A, "part", "PrizeText"), h(g, "class", z = /*displayin*/
742
- e[3] + " PrizeSec"), h(g, "part", "Prize"), h(t, "class", y = /*displayin*/
743
- e[3] + " casino-tournaments-rank"), h(t, "part", P = /*displayin*/
744
- e[3] + " casino-tournaments-rank");
745
- },
746
- m(p, C) {
747
- Y(p, t, C), x(t, n), b && b.m(n, null), x(n, i), x(n, o), x(o, r), x(o, l), x(o, c), x(o, s), x(o, d), x(o, m), x(t, _), x(t, g), k && k.m(g, null), x(g, v), x(g, A), x(A, L), e[15](t);
748
- },
749
- p(p, [C]) {
750
- /*showicon*/
751
- p[2] == "true" ? b || (b = _t(), b.c(), b.m(n, i)) : b && (b.d(1), b = null), C & /*rankprefix*/
752
- 2 && et(
753
- r,
754
- /*rankprefix*/
755
- p[1]
756
- ), C & /*rankinfo*/
757
- 128 && et(
758
- l,
759
- /*rankinfo*/
760
- p[7]
761
- ), C & /*userRankChanged, isRankingUp*/
762
- 96 && $ !== ($ = "svg Arrow Up " + /*userRankChanged*/
763
- (p[5] && /*isRankingUp*/
764
- p[6] ? "Show" : "Hidden")) && h(s, "class", $), C & /*userRankChanged, isRankingUp*/
765
- 96 && u !== (u = "svg Arrow Down " + /*userRankChanged*/
766
- (p[5] && !/*isRankingUp*/
767
- p[6] ? "Show" : "Hidden")) && h(m, "class", u), /*showicon*/
768
- p[2] == "true" ? k || (k = wt(), k.c(), k.m(g, v)) : k && (k.d(1), k = null), C & /*prize*/
769
- 1 && et(
770
- L,
771
- /*prize*/
772
- p[0]
773
- ), C & /*displayin*/
774
- 8 && z !== (z = /*displayin*/
775
- p[3] + " PrizeSec") && h(g, "class", z), C & /*displayin*/
776
- 8 && y !== (y = /*displayin*/
777
- p[3] + " casino-tournaments-rank") && h(t, "class", y), C & /*displayin*/
778
- 8 && P !== (P = /*displayin*/
779
- p[3] + " casino-tournaments-rank") && h(t, "part", P);
780
- },
781
- i: T,
782
- o: T,
783
- d(p) {
784
- p && D(t), b && b.d(), k && k.d(), e[15](null);
785
- }
786
- };
787
- }
788
- function me(e, t, n) {
789
- let { rankprefix: i = "#" } = t, { showicon: o = "true" } = t, { tournamentid: r = "" } = t, { overallrank: l = "0" } = t, { showoverallrank: c = "true" } = t, { userrank: s = "0" } = t, { prize: a = "PrizeName" } = t, { mbsource: $ } = t, { displayin: d = "row" } = t, { clientstyling: m = "" } = t, { clientstylingurl: w = "" } = t, u, _, g = !1, v = !0, A, L, z, y, P = "";
790
- const b = (f) => {
791
- f.data && f.data.type == `TournamentRankInfo_${r}` && (k(f.data.rankInfo), p());
792
- }, k = (f) => {
793
- let at = (J) => {
794
- n(9, s = J.rank), n(8, l = J.overallRank), n(0, a = J.prize);
795
- };
796
- if (!y) {
797
- y = _, at(f);
798
- return;
799
- }
800
- _ && (n(5, g = y != f.rank), n(6, v = y > f.rank), A = (/* @__PURE__ */ new Date()).getTime(), z = setTimeout(
801
- () => {
802
- L = (/* @__PURE__ */ new Date()).getTime(), (L - A) / 1e3 > 4 && n(5, g = !1), y = _;
803
- },
804
- 5e3
805
- ), at(f));
806
- }, p = () => {
807
- n(7, P = c == "true" ? `${+s == 0 ? "-" : s || "-"}/${+l == 0 ? "-" : l}` : s);
808
- };
809
- Zt(() => (_ = s == null ? void 0 : parseInt(s), y = _, n(9, s = s == null ? "-" : s), window.addEventListener("message", b, !0), p(), () => {
810
- window.removeEventListener("message", b), clearTimeout(z);
811
- }));
812
- function C(f) {
813
- st[f ? "unshift" : "push"](() => {
814
- u = f, n(4, u);
815
- });
816
- }
817
- return e.$$set = (f) => {
818
- "rankprefix" in f && n(1, i = f.rankprefix), "showicon" in f && n(2, o = f.showicon), "tournamentid" in f && n(10, r = f.tournamentid), "overallrank" in f && n(8, l = f.overallrank), "showoverallrank" in f && n(11, c = f.showoverallrank), "userrank" in f && n(9, s = f.userrank), "prize" in f && n(0, a = f.prize), "mbsource" in f && n(12, $ = f.mbsource), "displayin" in f && n(3, d = f.displayin), "clientstyling" in f && n(13, m = f.clientstyling), "clientstylingurl" in f && n(14, w = f.clientstylingurl);
819
- }, e.$$.update = () => {
820
- e.$$.dirty & /*clientstyling, customStylingContainer*/
821
- 8208 && m && u && le(u, m), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
822
- 16400 && w && u && ae(u, w), e.$$.dirty & /*mbsource, customStylingContainer*/
823
- 4112 && $ && u && ue(u, `${$}.Style`), e.$$.dirty & /*userrank*/
824
- 512 && (_ = parseInt(s)), e.$$.dirty & /*userrank*/
825
- 512 && s && p(), e.$$.dirty & /*overallrank*/
826
- 256 && l && p();
827
- }, [
828
- a,
829
- i,
830
- o,
831
- d,
832
- u,
833
- g,
834
- v,
835
- P,
836
- l,
837
- s,
838
- r,
839
- c,
840
- $,
841
- m,
842
- w,
843
- C
844
- ];
845
- }
846
- class St extends oe {
847
- constructor(t) {
848
- super(), se(
849
- this,
850
- t,
851
- me,
852
- ge,
853
- Pt,
854
- {
855
- rankprefix: 1,
856
- showicon: 2,
857
- tournamentid: 10,
858
- overallrank: 8,
859
- showoverallrank: 11,
860
- userrank: 9,
861
- prize: 0,
862
- mbsource: 12,
863
- displayin: 3,
864
- clientstyling: 13,
865
- clientstylingurl: 14
866
- },
867
- de
868
- );
869
- }
870
- get rankprefix() {
871
- return this.$$.ctx[1];
872
- }
873
- set rankprefix(t) {
874
- this.$$set({ rankprefix: t }), S();
875
- }
876
- get showicon() {
877
- return this.$$.ctx[2];
878
- }
879
- set showicon(t) {
880
- this.$$set({ showicon: t }), S();
881
- }
882
- get tournamentid() {
883
- return this.$$.ctx[10];
884
- }
885
- set tournamentid(t) {
886
- this.$$set({ tournamentid: t }), S();
887
- }
888
- get overallrank() {
889
- return this.$$.ctx[8];
890
- }
891
- set overallrank(t) {
892
- this.$$set({ overallrank: t }), S();
893
- }
894
- get showoverallrank() {
895
- return this.$$.ctx[11];
896
- }
897
- set showoverallrank(t) {
898
- this.$$set({ showoverallrank: t }), S();
899
- }
900
- get userrank() {
901
- return this.$$.ctx[9];
902
- }
903
- set userrank(t) {
904
- this.$$set({ userrank: t }), S();
905
- }
906
- get prize() {
907
- return this.$$.ctx[0];
908
- }
909
- set prize(t) {
910
- this.$$set({ prize: t }), S();
911
- }
912
- get mbsource() {
913
- return this.$$.ctx[12];
914
- }
915
- set mbsource(t) {
916
- this.$$set({ mbsource: t }), S();
917
- }
918
- get displayin() {
919
- return this.$$.ctx[3];
920
- }
921
- set displayin(t) {
922
- this.$$set({ displayin: t }), S();
923
- }
924
- get clientstyling() {
925
- return this.$$.ctx[13];
926
- }
927
- set clientstyling(t) {
928
- this.$$set({ clientstyling: t }), S();
929
- }
930
- get clientstylingurl() {
931
- return this.$$.ctx[14];
932
- }
933
- set clientstylingurl(t) {
934
- this.$$set({ clientstylingurl: t }), S();
935
- }
936
- }
937
- re(St, { rankprefix: {}, showicon: {}, tournamentid: {}, overallrank: {}, showoverallrank: {}, userrank: {}, prize: {}, mbsource: {}, displayin: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
938
- const Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
939
- __proto__: null,
940
- default: St
941
- }, Symbol.toStringTag, { value: "Module" }));
942
- export {
943
- Z as A,
944
- xe as B,
945
- Ee as C,
946
- _e as D,
947
- Ce as E,
948
- X as F,
949
- st as G,
950
- ve as H,
951
- le as I,
952
- ae as J,
953
- ue as K,
954
- Re as L,
955
- oe as S,
956
- Tt as a,
957
- ot as b,
958
- se as c,
959
- re as d,
960
- jt as e,
961
- S as f,
962
- D as g,
963
- Yt as h,
964
- Lt as i,
965
- h as j,
966
- Se as k,
967
- Y as l,
968
- x as m,
969
- T as n,
970
- ye as o,
971
- R as p,
972
- we as q,
973
- O as r,
974
- Pt as s,
975
- Ae as t,
976
- N as u,
977
- pe as v,
978
- Zt as w,
979
- ke as x,
980
- et as y,
981
- be as z
982
- };