@everymatrix/casino-coinroyale-container 0.1.0

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.
Files changed (27) hide show
  1. package/components/CasinoCoinroyaleContainer-BLspXTRo.js +4887 -0
  2. package/components/CasinoCoinroyaleContainer-CDSLISi8.js +4838 -0
  3. package/components/CasinoCoinroyaleContainer-Wu1C3yaQ.cjs +18 -0
  4. package/components/CasinoCoinroyaleDetails-2m3ZUdsq.js +512 -0
  5. package/components/CasinoCoinroyaleDetails-B3bF6Jb_.js +470 -0
  6. package/components/CasinoCoinroyaleDetails-DSFr5Thp.cjs +2 -0
  7. package/components/CasinoCoinroyaleList-BNb0xfAE.cjs +1 -0
  8. package/components/CasinoCoinroyaleList-C-5Ll4e-.js +2157 -0
  9. package/components/CasinoCoinroyaleList-qoWjRLUh.js +2200 -0
  10. package/components/CasinoMysteryChestModal-D40dUO7j.js +85 -0
  11. package/components/CasinoMysteryChestModal-Dclq8PTT.cjs +1 -0
  12. package/components/CasinoMysteryChestModal-DnvpZmOU.js +85 -0
  13. package/es2015/casino-coinroyale-container.cjs +1 -0
  14. package/es2015/casino-coinroyale-container.js +16 -0
  15. package/esnext/casino-coinroyale-container.js +14 -0
  16. package/package.json +25 -0
  17. package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
  18. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
  19. package/stencil/index-b2193545-BeKKnKhR.js +519 -0
  20. package/stencil/index-b2193545-HC0t7mHa.js +503 -0
  21. package/stencil/index-b2193545-YW9b062G.cjs +1 -0
  22. package/stencil/ui-skeleton-BL4789dS.cjs +1 -0
  23. package/stencil/ui-skeleton-Ca5rz3Hv.js +29 -0
  24. package/stencil/ui-skeleton-ae35c6f2-BDBUiN3S.js +155 -0
  25. package/stencil/ui-skeleton-ae35c6f2-Cn0ZM_hs.js +155 -0
  26. package/stencil/ui-skeleton-ae35c6f2-xLf3HyeB.cjs +55 -0
  27. package/stencil/ui-skeleton-hI4GeaLk.js +11 -0
@@ -0,0 +1,2157 @@
1
+ import { a as Xe, $ as Ve, S as Ze, i as Je, f as $, s as Ke, w as $e, b as et, n as xe, d as R, r as tt, c as O, y as se, e as q, g as s, l as J, h as p, j as _, t as P, k as h, m as nt, p as rt, o as at, q as it, z as ke, A as ce, B as Ce, v as ve, x as ot } from "./CasinoCoinroyaleContainer-CDSLISi8.js";
2
+ import { s as st, a as lt, b as ut } from "./CasinoCoinroyaleDetails-B3bF6Jb_.js";
3
+ import "../stencil/ui-skeleton-hI4GeaLk.js";
4
+ const Te = (n) => window.postMessage(n, window.location.href), ct = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.5384%203.18261L14.3222%200.9673C13.3202%20-0.0332963%2011.7009%20-0.26734%209.75715%200.310586C7.83938%200.880634%205.79092%202.18711%203.98901%203.98902C2.18711%205.79092%200.88063%207.83939%200.310582%209.75716C-0.26688%2011.7%20-0.0337635%2013.3211%200.965442%2014.3194C0.980736%2014.3361%200.99742%2014.3491%201.01967%2014.362L3.1826%2016.5384C3.83422%2017.1891%204.73749%2017.4996%205.78675%2017.4996C8.0382%2017.4996%2010.9621%2016.0703%2013.5167%2013.5167C17.2605%209.77199%2018.5878%205.23292%2016.5384%203.18261ZM13.2979%205.31681C12.764%206.90692%2011.6378%208.61521%2010.127%2010.1261C8.6152%2011.6369%206.90738%2012.764%205.31681%2013.2979C3.8991%2013.7744%202.71173%2013.7188%202.14169%2013.1469C1.57118%2012.5768%201.5151%2011.3904%201.99153%209.9722C2.52589%208.38209%203.65254%206.67426%205.1634%205.16341C6.67426%203.65209%208.38255%202.52589%209.97312%201.99153C10.6118%201.77649%2011.2031%201.67036%2011.7129%201.67036C12.3349%201.67036%2012.8345%201.8284%2013.1478%202.14169C13.7178%202.7122%2013.7744%203.89911%2013.2979%205.31681ZM12.3423%2012.3414C9.09859%2015.5846%205.53231%2016.5375%204.35699%2015.3622L4.23696%2015.2426C6.4481%2014.9914%209.06753%2013.5343%2011.3014%2011.3014C13.5343%209.06754%2014.9914%206.4481%2015.2426%204.23696L15.3622%204.357C16.5365%205.53093%2015.5846%209.09859%2012.3423%2012.3414Z'%20fill='url(%23paint0_linear_875_137)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_875_137'%20x1='0'%20y1='8.7498'%20x2='17.5'%20y2='8.7498'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", Me = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.96967%203.96967C4.26256%203.67678%204.73744%203.67678%205.03033%203.96967L9%207.93934L12.9697%203.96967C13.2626%203.67678%2013.7374%203.67678%2014.0303%203.96967C14.3232%204.26256%2014.3232%204.73744%2014.0303%205.03033L10.0607%209L14.0303%2012.9697C14.3232%2013.2626%2014.3232%2013.7374%2014.0303%2014.0303C13.7374%2014.3232%2013.2626%2014.3232%2012.9697%2014.0303L9%2010.0607L5.03033%2014.0303C4.73744%2014.3232%204.26256%2014.3232%203.96967%2014.0303C3.67678%2013.7374%203.67678%2013.2626%203.96967%2012.9697L7.93934%209L3.96967%205.03033C3.67678%204.73744%203.67678%204.26256%203.96967%203.96967Z'%20fill='%23FF9B59'/%3e%3c/svg%3e", Oe = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M15.1724%204.72381C15.4708%205.02223%2015.4708%205.50607%2015.1724%205.80449L7.70071%2013.2762C7.40229%2013.5746%206.91846%2013.5746%206.62004%2013.2762L3.22381%209.87996C2.9254%209.58154%202.9254%209.09771%203.22381%208.79929C3.52223%208.50087%204.00607%208.50087%204.30449%208.79929L7.16038%2011.6552L14.0917%204.72381C14.3902%204.4254%2014.874%204.4254%2015.1724%204.72381Z'%20fill='%2358DB4A'/%3e%3c/svg%3e", dt = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.9124%204.83736C11.1402%205.06516%2011.1402%205.43451%2010.9124%205.66232L7.41243%209.16232C7.18462%209.39012%206.81528%209.39012%206.58747%209.16232L3.08747%205.66232C2.85966%205.43451%202.85966%205.06516%203.08747%204.83736C3.31528%204.60955%203.68462%204.60955%203.91243%204.83736L6.99995%207.92488L10.0875%204.83736C10.3153%204.60955%2010.6846%204.60955%2010.9124%204.83736Z'%20fill='url(%23paint0_linear_738_1669)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_738_1669'%20x1='6.99995'%20y1='4.6665'%20x2='6.99995'%20y2='9.33317'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
5
+ function pe(n) {
6
+ "@babel/helpers - typeof";
7
+ return pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
8
+ return typeof e;
9
+ } : function(e) {
10
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
11
+ }, pe(n);
12
+ }
13
+ function oe(n) {
14
+ if (n === null || n === !0 || n === !1)
15
+ return NaN;
16
+ var e = Number(n);
17
+ return isNaN(e) ? e : e < 0 ? Math.ceil(e) : Math.floor(e);
18
+ }
19
+ function H(n, e) {
20
+ if (e.length < n)
21
+ throw new TypeError(n + " argument" + (n > 1 ? "s" : "") + " required, but only " + e.length + " present");
22
+ }
23
+ function X(n) {
24
+ H(1, arguments);
25
+ var e = Object.prototype.toString.call(n);
26
+ return n instanceof Date || pe(n) === "object" && e === "[object Date]" ? new Date(n.getTime()) : typeof n == "number" || e === "[object Number]" ? new Date(n) : ((typeof n == "string" || e === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
27
+ }
28
+ function ft(n, e) {
29
+ H(2, arguments);
30
+ var t = X(n).getTime(), r = oe(e);
31
+ return new Date(t + r);
32
+ }
33
+ var mt = {};
34
+ function _e() {
35
+ return mt;
36
+ }
37
+ function ht(n) {
38
+ var e = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()));
39
+ return e.setUTCFullYear(n.getFullYear()), n.getTime() - e.getTime();
40
+ }
41
+ function gt(n) {
42
+ return H(1, arguments), n instanceof Date || pe(n) === "object" && Object.prototype.toString.call(n) === "[object Date]";
43
+ }
44
+ function vt(n) {
45
+ if (H(1, arguments), !gt(n) && typeof n != "number")
46
+ return !1;
47
+ var e = X(n);
48
+ return !isNaN(Number(e));
49
+ }
50
+ function pt(n, e) {
51
+ H(2, arguments);
52
+ var t = oe(e);
53
+ return ft(n, -t);
54
+ }
55
+ var bt = 864e5;
56
+ function wt(n) {
57
+ H(1, arguments);
58
+ var e = X(n), t = e.getTime();
59
+ e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
60
+ var r = e.getTime(), a = t - r;
61
+ return Math.floor(a / bt) + 1;
62
+ }
63
+ function be(n) {
64
+ H(1, arguments);
65
+ var e = 1, t = X(n), r = t.getUTCDay(), a = (r < e ? 7 : 0) + r - e;
66
+ return t.setUTCDate(t.getUTCDate() - a), t.setUTCHours(0, 0, 0, 0), t;
67
+ }
68
+ function Ie(n) {
69
+ H(1, arguments);
70
+ var e = X(n), t = e.getUTCFullYear(), r = /* @__PURE__ */ new Date(0);
71
+ r.setUTCFullYear(t + 1, 0, 4), r.setUTCHours(0, 0, 0, 0);
72
+ var a = be(r), i = /* @__PURE__ */ new Date(0);
73
+ i.setUTCFullYear(t, 0, 4), i.setUTCHours(0, 0, 0, 0);
74
+ var o = be(i);
75
+ return e.getTime() >= a.getTime() ? t + 1 : e.getTime() >= o.getTime() ? t : t - 1;
76
+ }
77
+ function _t(n) {
78
+ H(1, arguments);
79
+ var e = Ie(n), t = /* @__PURE__ */ new Date(0);
80
+ t.setUTCFullYear(e, 0, 4), t.setUTCHours(0, 0, 0, 0);
81
+ var r = be(t);
82
+ return r;
83
+ }
84
+ var yt = 6048e5;
85
+ function xt(n) {
86
+ H(1, arguments);
87
+ var e = X(n), t = be(e).getTime() - _t(e).getTime();
88
+ return Math.round(t / yt) + 1;
89
+ }
90
+ function we(n, e) {
91
+ var t, r, a, i, o, l, m, d;
92
+ H(1, arguments);
93
+ var f = _e(), u = oe((t = (r = (a = (i = e?.weekStartsOn) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (l = o.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && a !== void 0 ? a : f.weekStartsOn) !== null && r !== void 0 ? r : (m = f.locale) === null || m === void 0 || (d = m.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && t !== void 0 ? t : 0);
94
+ if (!(u >= 0 && u <= 6))
95
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
96
+ var g = X(n), v = g.getUTCDay(), b = (v < u ? 7 : 0) + v - u;
97
+ return g.setUTCDate(g.getUTCDate() - b), g.setUTCHours(0, 0, 0, 0), g;
98
+ }
99
+ function Ge(n, e) {
100
+ var t, r, a, i, o, l, m, d;
101
+ H(1, arguments);
102
+ var f = X(n), u = f.getUTCFullYear(), g = _e(), v = oe((t = (r = (a = (i = e?.firstWeekContainsDate) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (l = o.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && a !== void 0 ? a : g.firstWeekContainsDate) !== null && r !== void 0 ? r : (m = g.locale) === null || m === void 0 || (d = m.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
103
+ if (!(v >= 1 && v <= 7))
104
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
105
+ var b = /* @__PURE__ */ new Date(0);
106
+ b.setUTCFullYear(u + 1, 0, v), b.setUTCHours(0, 0, 0, 0);
107
+ var k = we(b, e), y = /* @__PURE__ */ new Date(0);
108
+ y.setUTCFullYear(u, 0, v), y.setUTCHours(0, 0, 0, 0);
109
+ var C = we(y, e);
110
+ return f.getTime() >= k.getTime() ? u + 1 : f.getTime() >= C.getTime() ? u : u - 1;
111
+ }
112
+ function kt(n, e) {
113
+ var t, r, a, i, o, l, m, d;
114
+ H(1, arguments);
115
+ var f = _e(), u = oe((t = (r = (a = (i = e?.firstWeekContainsDate) !== null && i !== void 0 ? i : e == null || (o = e.locale) === null || o === void 0 || (l = o.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && a !== void 0 ? a : f.firstWeekContainsDate) !== null && r !== void 0 ? r : (m = f.locale) === null || m === void 0 || (d = m.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), g = Ge(n, e), v = /* @__PURE__ */ new Date(0);
116
+ v.setUTCFullYear(g, 0, u), v.setUTCHours(0, 0, 0, 0);
117
+ var b = we(v, e);
118
+ return b;
119
+ }
120
+ var Ct = 6048e5;
121
+ function Tt(n, e) {
122
+ H(1, arguments);
123
+ var t = X(n), r = we(t, e).getTime() - kt(t, e).getTime();
124
+ return Math.round(r / Ct) + 1;
125
+ }
126
+ function x(n, e) {
127
+ for (var t = n < 0 ? "-" : "", r = Math.abs(n).toString(); r.length < e; )
128
+ r = "0" + r;
129
+ return t + r;
130
+ }
131
+ var ee = {
132
+ // Year
133
+ y: function(e, t) {
134
+ var r = e.getUTCFullYear(), a = r > 0 ? r : 1 - r;
135
+ return x(t === "yy" ? a % 100 : a, t.length);
136
+ },
137
+ // Month
138
+ M: function(e, t) {
139
+ var r = e.getUTCMonth();
140
+ return t === "M" ? String(r + 1) : x(r + 1, 2);
141
+ },
142
+ // Day of the month
143
+ d: function(e, t) {
144
+ return x(e.getUTCDate(), t.length);
145
+ },
146
+ // AM or PM
147
+ a: function(e, t) {
148
+ var r = e.getUTCHours() / 12 >= 1 ? "pm" : "am";
149
+ switch (t) {
150
+ case "a":
151
+ case "aa":
152
+ return r.toUpperCase();
153
+ case "aaa":
154
+ return r;
155
+ case "aaaaa":
156
+ return r[0];
157
+ case "aaaa":
158
+ default:
159
+ return r === "am" ? "a.m." : "p.m.";
160
+ }
161
+ },
162
+ // Hour [1-12]
163
+ h: function(e, t) {
164
+ return x(e.getUTCHours() % 12 || 12, t.length);
165
+ },
166
+ // Hour [0-23]
167
+ H: function(e, t) {
168
+ return x(e.getUTCHours(), t.length);
169
+ },
170
+ // Minute
171
+ m: function(e, t) {
172
+ return x(e.getUTCMinutes(), t.length);
173
+ },
174
+ // Second
175
+ s: function(e, t) {
176
+ return x(e.getUTCSeconds(), t.length);
177
+ },
178
+ // Fraction of second
179
+ S: function(e, t) {
180
+ var r = t.length, a = e.getUTCMilliseconds(), i = Math.floor(a * Math.pow(10, r - 3));
181
+ return x(i, t.length);
182
+ }
183
+ }, le = {
184
+ midnight: "midnight",
185
+ noon: "noon",
186
+ morning: "morning",
187
+ afternoon: "afternoon",
188
+ evening: "evening",
189
+ night: "night"
190
+ }, Mt = {
191
+ // Era
192
+ G: function(e, t, r) {
193
+ var a = e.getUTCFullYear() > 0 ? 1 : 0;
194
+ switch (t) {
195
+ case "G":
196
+ case "GG":
197
+ case "GGG":
198
+ return r.era(a, {
199
+ width: "abbreviated"
200
+ });
201
+ case "GGGGG":
202
+ return r.era(a, {
203
+ width: "narrow"
204
+ });
205
+ case "GGGG":
206
+ default:
207
+ return r.era(a, {
208
+ width: "wide"
209
+ });
210
+ }
211
+ },
212
+ // Year
213
+ y: function(e, t, r) {
214
+ if (t === "yo") {
215
+ var a = e.getUTCFullYear(), i = a > 0 ? a : 1 - a;
216
+ return r.ordinalNumber(i, {
217
+ unit: "year"
218
+ });
219
+ }
220
+ return ee.y(e, t);
221
+ },
222
+ // Local week-numbering year
223
+ Y: function(e, t, r, a) {
224
+ var i = Ge(e, a), o = i > 0 ? i : 1 - i;
225
+ if (t === "YY") {
226
+ var l = o % 100;
227
+ return x(l, 2);
228
+ }
229
+ return t === "Yo" ? r.ordinalNumber(o, {
230
+ unit: "year"
231
+ }) : x(o, t.length);
232
+ },
233
+ // ISO week-numbering year
234
+ R: function(e, t) {
235
+ var r = Ie(e);
236
+ return x(r, t.length);
237
+ },
238
+ // Extended year. This is a single number designating the year of this calendar system.
239
+ // The main difference between `y` and `u` localizers are B.C. years:
240
+ // | Year | `y` | `u` |
241
+ // |------|-----|-----|
242
+ // | AC 1 | 1 | 1 |
243
+ // | BC 1 | 1 | 0 |
244
+ // | BC 2 | 2 | -1 |
245
+ // Also `yy` always returns the last two digits of a year,
246
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
247
+ u: function(e, t) {
248
+ var r = e.getUTCFullYear();
249
+ return x(r, t.length);
250
+ },
251
+ // Quarter
252
+ Q: function(e, t, r) {
253
+ var a = Math.ceil((e.getUTCMonth() + 1) / 3);
254
+ switch (t) {
255
+ case "Q":
256
+ return String(a);
257
+ case "QQ":
258
+ return x(a, 2);
259
+ case "Qo":
260
+ return r.ordinalNumber(a, {
261
+ unit: "quarter"
262
+ });
263
+ case "QQQ":
264
+ return r.quarter(a, {
265
+ width: "abbreviated",
266
+ context: "formatting"
267
+ });
268
+ case "QQQQQ":
269
+ return r.quarter(a, {
270
+ width: "narrow",
271
+ context: "formatting"
272
+ });
273
+ case "QQQQ":
274
+ default:
275
+ return r.quarter(a, {
276
+ width: "wide",
277
+ context: "formatting"
278
+ });
279
+ }
280
+ },
281
+ // Stand-alone quarter
282
+ q: function(e, t, r) {
283
+ var a = Math.ceil((e.getUTCMonth() + 1) / 3);
284
+ switch (t) {
285
+ case "q":
286
+ return String(a);
287
+ case "qq":
288
+ return x(a, 2);
289
+ case "qo":
290
+ return r.ordinalNumber(a, {
291
+ unit: "quarter"
292
+ });
293
+ case "qqq":
294
+ return r.quarter(a, {
295
+ width: "abbreviated",
296
+ context: "standalone"
297
+ });
298
+ case "qqqqq":
299
+ return r.quarter(a, {
300
+ width: "narrow",
301
+ context: "standalone"
302
+ });
303
+ case "qqqq":
304
+ default:
305
+ return r.quarter(a, {
306
+ width: "wide",
307
+ context: "standalone"
308
+ });
309
+ }
310
+ },
311
+ // Month
312
+ M: function(e, t, r) {
313
+ var a = e.getUTCMonth();
314
+ switch (t) {
315
+ case "M":
316
+ case "MM":
317
+ return ee.M(e, t);
318
+ case "Mo":
319
+ return r.ordinalNumber(a + 1, {
320
+ unit: "month"
321
+ });
322
+ case "MMM":
323
+ return r.month(a, {
324
+ width: "abbreviated",
325
+ context: "formatting"
326
+ });
327
+ case "MMMMM":
328
+ return r.month(a, {
329
+ width: "narrow",
330
+ context: "formatting"
331
+ });
332
+ case "MMMM":
333
+ default:
334
+ return r.month(a, {
335
+ width: "wide",
336
+ context: "formatting"
337
+ });
338
+ }
339
+ },
340
+ // Stand-alone month
341
+ L: function(e, t, r) {
342
+ var a = e.getUTCMonth();
343
+ switch (t) {
344
+ case "L":
345
+ return String(a + 1);
346
+ case "LL":
347
+ return x(a + 1, 2);
348
+ case "Lo":
349
+ return r.ordinalNumber(a + 1, {
350
+ unit: "month"
351
+ });
352
+ case "LLL":
353
+ return r.month(a, {
354
+ width: "abbreviated",
355
+ context: "standalone"
356
+ });
357
+ case "LLLLL":
358
+ return r.month(a, {
359
+ width: "narrow",
360
+ context: "standalone"
361
+ });
362
+ case "LLLL":
363
+ default:
364
+ return r.month(a, {
365
+ width: "wide",
366
+ context: "standalone"
367
+ });
368
+ }
369
+ },
370
+ // Local week of year
371
+ w: function(e, t, r, a) {
372
+ var i = Tt(e, a);
373
+ return t === "wo" ? r.ordinalNumber(i, {
374
+ unit: "week"
375
+ }) : x(i, t.length);
376
+ },
377
+ // ISO week of year
378
+ I: function(e, t, r) {
379
+ var a = xt(e);
380
+ return t === "Io" ? r.ordinalNumber(a, {
381
+ unit: "week"
382
+ }) : x(a, t.length);
383
+ },
384
+ // Day of the month
385
+ d: function(e, t, r) {
386
+ return t === "do" ? r.ordinalNumber(e.getUTCDate(), {
387
+ unit: "date"
388
+ }) : ee.d(e, t);
389
+ },
390
+ // Day of year
391
+ D: function(e, t, r) {
392
+ var a = wt(e);
393
+ return t === "Do" ? r.ordinalNumber(a, {
394
+ unit: "dayOfYear"
395
+ }) : x(a, t.length);
396
+ },
397
+ // Day of week
398
+ E: function(e, t, r) {
399
+ var a = e.getUTCDay();
400
+ switch (t) {
401
+ case "E":
402
+ case "EE":
403
+ case "EEE":
404
+ return r.day(a, {
405
+ width: "abbreviated",
406
+ context: "formatting"
407
+ });
408
+ case "EEEEE":
409
+ return r.day(a, {
410
+ width: "narrow",
411
+ context: "formatting"
412
+ });
413
+ case "EEEEEE":
414
+ return r.day(a, {
415
+ width: "short",
416
+ context: "formatting"
417
+ });
418
+ case "EEEE":
419
+ default:
420
+ return r.day(a, {
421
+ width: "wide",
422
+ context: "formatting"
423
+ });
424
+ }
425
+ },
426
+ // Local day of week
427
+ e: function(e, t, r, a) {
428
+ var i = e.getUTCDay(), o = (i - a.weekStartsOn + 8) % 7 || 7;
429
+ switch (t) {
430
+ case "e":
431
+ return String(o);
432
+ case "ee":
433
+ return x(o, 2);
434
+ case "eo":
435
+ return r.ordinalNumber(o, {
436
+ unit: "day"
437
+ });
438
+ case "eee":
439
+ return r.day(i, {
440
+ width: "abbreviated",
441
+ context: "formatting"
442
+ });
443
+ case "eeeee":
444
+ return r.day(i, {
445
+ width: "narrow",
446
+ context: "formatting"
447
+ });
448
+ case "eeeeee":
449
+ return r.day(i, {
450
+ width: "short",
451
+ context: "formatting"
452
+ });
453
+ case "eeee":
454
+ default:
455
+ return r.day(i, {
456
+ width: "wide",
457
+ context: "formatting"
458
+ });
459
+ }
460
+ },
461
+ // Stand-alone local day of week
462
+ c: function(e, t, r, a) {
463
+ var i = e.getUTCDay(), o = (i - a.weekStartsOn + 8) % 7 || 7;
464
+ switch (t) {
465
+ case "c":
466
+ return String(o);
467
+ case "cc":
468
+ return x(o, t.length);
469
+ case "co":
470
+ return r.ordinalNumber(o, {
471
+ unit: "day"
472
+ });
473
+ case "ccc":
474
+ return r.day(i, {
475
+ width: "abbreviated",
476
+ context: "standalone"
477
+ });
478
+ case "ccccc":
479
+ return r.day(i, {
480
+ width: "narrow",
481
+ context: "standalone"
482
+ });
483
+ case "cccccc":
484
+ return r.day(i, {
485
+ width: "short",
486
+ context: "standalone"
487
+ });
488
+ case "cccc":
489
+ default:
490
+ return r.day(i, {
491
+ width: "wide",
492
+ context: "standalone"
493
+ });
494
+ }
495
+ },
496
+ // ISO day of week
497
+ i: function(e, t, r) {
498
+ var a = e.getUTCDay(), i = a === 0 ? 7 : a;
499
+ switch (t) {
500
+ case "i":
501
+ return String(i);
502
+ case "ii":
503
+ return x(i, t.length);
504
+ case "io":
505
+ return r.ordinalNumber(i, {
506
+ unit: "day"
507
+ });
508
+ case "iii":
509
+ return r.day(a, {
510
+ width: "abbreviated",
511
+ context: "formatting"
512
+ });
513
+ case "iiiii":
514
+ return r.day(a, {
515
+ width: "narrow",
516
+ context: "formatting"
517
+ });
518
+ case "iiiiii":
519
+ return r.day(a, {
520
+ width: "short",
521
+ context: "formatting"
522
+ });
523
+ case "iiii":
524
+ default:
525
+ return r.day(a, {
526
+ width: "wide",
527
+ context: "formatting"
528
+ });
529
+ }
530
+ },
531
+ // AM or PM
532
+ a: function(e, t, r) {
533
+ var a = e.getUTCHours(), i = a / 12 >= 1 ? "pm" : "am";
534
+ switch (t) {
535
+ case "a":
536
+ case "aa":
537
+ return r.dayPeriod(i, {
538
+ width: "abbreviated",
539
+ context: "formatting"
540
+ });
541
+ case "aaa":
542
+ return r.dayPeriod(i, {
543
+ width: "abbreviated",
544
+ context: "formatting"
545
+ }).toLowerCase();
546
+ case "aaaaa":
547
+ return r.dayPeriod(i, {
548
+ width: "narrow",
549
+ context: "formatting"
550
+ });
551
+ case "aaaa":
552
+ default:
553
+ return r.dayPeriod(i, {
554
+ width: "wide",
555
+ context: "formatting"
556
+ });
557
+ }
558
+ },
559
+ // AM, PM, midnight, noon
560
+ b: function(e, t, r) {
561
+ var a = e.getUTCHours(), i;
562
+ switch (a === 12 ? i = le.noon : a === 0 ? i = le.midnight : i = a / 12 >= 1 ? "pm" : "am", t) {
563
+ case "b":
564
+ case "bb":
565
+ return r.dayPeriod(i, {
566
+ width: "abbreviated",
567
+ context: "formatting"
568
+ });
569
+ case "bbb":
570
+ return r.dayPeriod(i, {
571
+ width: "abbreviated",
572
+ context: "formatting"
573
+ }).toLowerCase();
574
+ case "bbbbb":
575
+ return r.dayPeriod(i, {
576
+ width: "narrow",
577
+ context: "formatting"
578
+ });
579
+ case "bbbb":
580
+ default:
581
+ return r.dayPeriod(i, {
582
+ width: "wide",
583
+ context: "formatting"
584
+ });
585
+ }
586
+ },
587
+ // in the morning, in the afternoon, in the evening, at night
588
+ B: function(e, t, r) {
589
+ var a = e.getUTCHours(), i;
590
+ switch (a >= 17 ? i = le.evening : a >= 12 ? i = le.afternoon : a >= 4 ? i = le.morning : i = le.night, t) {
591
+ case "B":
592
+ case "BB":
593
+ case "BBB":
594
+ return r.dayPeriod(i, {
595
+ width: "abbreviated",
596
+ context: "formatting"
597
+ });
598
+ case "BBBBB":
599
+ return r.dayPeriod(i, {
600
+ width: "narrow",
601
+ context: "formatting"
602
+ });
603
+ case "BBBB":
604
+ default:
605
+ return r.dayPeriod(i, {
606
+ width: "wide",
607
+ context: "formatting"
608
+ });
609
+ }
610
+ },
611
+ // Hour [1-12]
612
+ h: function(e, t, r) {
613
+ if (t === "ho") {
614
+ var a = e.getUTCHours() % 12;
615
+ return a === 0 && (a = 12), r.ordinalNumber(a, {
616
+ unit: "hour"
617
+ });
618
+ }
619
+ return ee.h(e, t);
620
+ },
621
+ // Hour [0-23]
622
+ H: function(e, t, r) {
623
+ return t === "Ho" ? r.ordinalNumber(e.getUTCHours(), {
624
+ unit: "hour"
625
+ }) : ee.H(e, t);
626
+ },
627
+ // Hour [0-11]
628
+ K: function(e, t, r) {
629
+ var a = e.getUTCHours() % 12;
630
+ return t === "Ko" ? r.ordinalNumber(a, {
631
+ unit: "hour"
632
+ }) : x(a, t.length);
633
+ },
634
+ // Hour [1-24]
635
+ k: function(e, t, r) {
636
+ var a = e.getUTCHours();
637
+ return a === 0 && (a = 24), t === "ko" ? r.ordinalNumber(a, {
638
+ unit: "hour"
639
+ }) : x(a, t.length);
640
+ },
641
+ // Minute
642
+ m: function(e, t, r) {
643
+ return t === "mo" ? r.ordinalNumber(e.getUTCMinutes(), {
644
+ unit: "minute"
645
+ }) : ee.m(e, t);
646
+ },
647
+ // Second
648
+ s: function(e, t, r) {
649
+ return t === "so" ? r.ordinalNumber(e.getUTCSeconds(), {
650
+ unit: "second"
651
+ }) : ee.s(e, t);
652
+ },
653
+ // Fraction of second
654
+ S: function(e, t) {
655
+ return ee.S(e, t);
656
+ },
657
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
658
+ X: function(e, t, r, a) {
659
+ var i = a._originalDate || e, o = i.getTimezoneOffset();
660
+ if (o === 0)
661
+ return "Z";
662
+ switch (t) {
663
+ case "X":
664
+ return De(o);
665
+ case "XXXX":
666
+ case "XX":
667
+ return ie(o);
668
+ case "XXXXX":
669
+ case "XXX":
670
+ default:
671
+ return ie(o, ":");
672
+ }
673
+ },
674
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
675
+ x: function(e, t, r, a) {
676
+ var i = a._originalDate || e, o = i.getTimezoneOffset();
677
+ switch (t) {
678
+ case "x":
679
+ return De(o);
680
+ case "xxxx":
681
+ case "xx":
682
+ return ie(o);
683
+ case "xxxxx":
684
+ case "xxx":
685
+ default:
686
+ return ie(o, ":");
687
+ }
688
+ },
689
+ // Timezone (GMT)
690
+ O: function(e, t, r, a) {
691
+ var i = a._originalDate || e, o = i.getTimezoneOffset();
692
+ switch (t) {
693
+ case "O":
694
+ case "OO":
695
+ case "OOO":
696
+ return "GMT" + Pe(o, ":");
697
+ case "OOOO":
698
+ default:
699
+ return "GMT" + ie(o, ":");
700
+ }
701
+ },
702
+ // Timezone (specific non-location)
703
+ z: function(e, t, r, a) {
704
+ var i = a._originalDate || e, o = i.getTimezoneOffset();
705
+ switch (t) {
706
+ case "z":
707
+ case "zz":
708
+ case "zzz":
709
+ return "GMT" + Pe(o, ":");
710
+ case "zzzz":
711
+ default:
712
+ return "GMT" + ie(o, ":");
713
+ }
714
+ },
715
+ // Seconds timestamp
716
+ t: function(e, t, r, a) {
717
+ var i = a._originalDate || e, o = Math.floor(i.getTime() / 1e3);
718
+ return x(o, t.length);
719
+ },
720
+ // Milliseconds timestamp
721
+ T: function(e, t, r, a) {
722
+ var i = a._originalDate || e, o = i.getTime();
723
+ return x(o, t.length);
724
+ }
725
+ };
726
+ function Pe(n, e) {
727
+ var t = n > 0 ? "-" : "+", r = Math.abs(n), a = Math.floor(r / 60), i = r % 60;
728
+ if (i === 0)
729
+ return t + String(a);
730
+ var o = e;
731
+ return t + String(a) + o + x(i, 2);
732
+ }
733
+ function De(n, e) {
734
+ if (n % 60 === 0) {
735
+ var t = n > 0 ? "-" : "+";
736
+ return t + x(Math.abs(n) / 60, 2);
737
+ }
738
+ return ie(n, e);
739
+ }
740
+ function ie(n, e) {
741
+ var t = e || "", r = n > 0 ? "-" : "+", a = Math.abs(n), i = x(Math.floor(a / 60), 2), o = x(a % 60, 2);
742
+ return r + i + t + o;
743
+ }
744
+ var Se = function(e, t) {
745
+ switch (e) {
746
+ case "P":
747
+ return t.date({
748
+ width: "short"
749
+ });
750
+ case "PP":
751
+ return t.date({
752
+ width: "medium"
753
+ });
754
+ case "PPP":
755
+ return t.date({
756
+ width: "long"
757
+ });
758
+ case "PPPP":
759
+ default:
760
+ return t.date({
761
+ width: "full"
762
+ });
763
+ }
764
+ }, Qe = function(e, t) {
765
+ switch (e) {
766
+ case "p":
767
+ return t.time({
768
+ width: "short"
769
+ });
770
+ case "pp":
771
+ return t.time({
772
+ width: "medium"
773
+ });
774
+ case "ppp":
775
+ return t.time({
776
+ width: "long"
777
+ });
778
+ case "pppp":
779
+ default:
780
+ return t.time({
781
+ width: "full"
782
+ });
783
+ }
784
+ }, Ot = function(e, t) {
785
+ var r = e.match(/(P+)(p+)?/) || [], a = r[1], i = r[2];
786
+ if (!i)
787
+ return Se(e, t);
788
+ var o;
789
+ switch (a) {
790
+ case "P":
791
+ o = t.dateTime({
792
+ width: "short"
793
+ });
794
+ break;
795
+ case "PP":
796
+ o = t.dateTime({
797
+ width: "medium"
798
+ });
799
+ break;
800
+ case "PPP":
801
+ o = t.dateTime({
802
+ width: "long"
803
+ });
804
+ break;
805
+ case "PPPP":
806
+ default:
807
+ o = t.dateTime({
808
+ width: "full"
809
+ });
810
+ break;
811
+ }
812
+ return o.replace("{{date}}", Se(a, t)).replace("{{time}}", Qe(i, t));
813
+ }, Pt = {
814
+ p: Qe,
815
+ P: Ot
816
+ }, Dt = ["D", "DD"], St = ["YY", "YYYY"];
817
+ function Wt(n) {
818
+ return Dt.indexOf(n) !== -1;
819
+ }
820
+ function Ut(n) {
821
+ return St.indexOf(n) !== -1;
822
+ }
823
+ function We(n, e, t) {
824
+ if (n === "YYYY")
825
+ throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
826
+ if (n === "YY")
827
+ throw new RangeError("Use `yy` instead of `YY` (in `".concat(e, "`) for formatting years to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
828
+ if (n === "D")
829
+ throw new RangeError("Use `d` instead of `D` (in `".concat(e, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
830
+ if (n === "DD")
831
+ throw new RangeError("Use `dd` instead of `DD` (in `".concat(e, "`) for formatting days of the month to the input `").concat(t, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
832
+ }
833
+ var Yt = {
834
+ lessThanXSeconds: {
835
+ one: "less than a second",
836
+ other: "less than {{count}} seconds"
837
+ },
838
+ xSeconds: {
839
+ one: "1 second",
840
+ other: "{{count}} seconds"
841
+ },
842
+ halfAMinute: "half a minute",
843
+ lessThanXMinutes: {
844
+ one: "less than a minute",
845
+ other: "less than {{count}} minutes"
846
+ },
847
+ xMinutes: {
848
+ one: "1 minute",
849
+ other: "{{count}} minutes"
850
+ },
851
+ aboutXHours: {
852
+ one: "about 1 hour",
853
+ other: "about {{count}} hours"
854
+ },
855
+ xHours: {
856
+ one: "1 hour",
857
+ other: "{{count}} hours"
858
+ },
859
+ xDays: {
860
+ one: "1 day",
861
+ other: "{{count}} days"
862
+ },
863
+ aboutXWeeks: {
864
+ one: "about 1 week",
865
+ other: "about {{count}} weeks"
866
+ },
867
+ xWeeks: {
868
+ one: "1 week",
869
+ other: "{{count}} weeks"
870
+ },
871
+ aboutXMonths: {
872
+ one: "about 1 month",
873
+ other: "about {{count}} months"
874
+ },
875
+ xMonths: {
876
+ one: "1 month",
877
+ other: "{{count}} months"
878
+ },
879
+ aboutXYears: {
880
+ one: "about 1 year",
881
+ other: "about {{count}} years"
882
+ },
883
+ xYears: {
884
+ one: "1 year",
885
+ other: "{{count}} years"
886
+ },
887
+ overXYears: {
888
+ one: "over 1 year",
889
+ other: "over {{count}} years"
890
+ },
891
+ almostXYears: {
892
+ one: "almost 1 year",
893
+ other: "almost {{count}} years"
894
+ }
895
+ }, zt = function(e, t, r) {
896
+ var a, i = Yt[e];
897
+ return typeof i == "string" ? a = i : t === 1 ? a = i.one : a = i.other.replace("{{count}}", t.toString()), r != null && r.addSuffix ? r.comparison && r.comparison > 0 ? "in " + a : a + " ago" : a;
898
+ };
899
+ function ye(n) {
900
+ return function() {
901
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.width ? String(e.width) : n.defaultWidth, r = n.formats[t] || n.formats[n.defaultWidth];
902
+ return r;
903
+ };
904
+ }
905
+ var Et = {
906
+ full: "EEEE, MMMM do, y",
907
+ long: "MMMM do, y",
908
+ medium: "MMM d, y",
909
+ short: "MM/dd/yyyy"
910
+ }, Lt = {
911
+ full: "h:mm:ss a zzzz",
912
+ long: "h:mm:ss a z",
913
+ medium: "h:mm:ss a",
914
+ short: "h:mm a"
915
+ }, Ft = {
916
+ full: "{{date}} 'at' {{time}}",
917
+ long: "{{date}} 'at' {{time}}",
918
+ medium: "{{date}}, {{time}}",
919
+ short: "{{date}}, {{time}}"
920
+ }, Nt = {
921
+ date: ye({
922
+ formats: Et,
923
+ defaultWidth: "full"
924
+ }),
925
+ time: ye({
926
+ formats: Lt,
927
+ defaultWidth: "full"
928
+ }),
929
+ dateTime: ye({
930
+ formats: Ft,
931
+ defaultWidth: "full"
932
+ })
933
+ }, Rt = {
934
+ lastWeek: "'last' eeee 'at' p",
935
+ yesterday: "'yesterday at' p",
936
+ today: "'today at' p",
937
+ tomorrow: "'tomorrow at' p",
938
+ nextWeek: "eeee 'at' p",
939
+ other: "P"
940
+ }, qt = function(e, t, r, a) {
941
+ return Rt[e];
942
+ };
943
+ function fe(n) {
944
+ return function(e, t) {
945
+ var r = t != null && t.context ? String(t.context) : "standalone", a;
946
+ if (r === "formatting" && n.formattingValues) {
947
+ var i = n.defaultFormattingWidth || n.defaultWidth, o = t != null && t.width ? String(t.width) : i;
948
+ a = n.formattingValues[o] || n.formattingValues[i];
949
+ } else {
950
+ var l = n.defaultWidth, m = t != null && t.width ? String(t.width) : n.defaultWidth;
951
+ a = n.values[m] || n.values[l];
952
+ }
953
+ var d = n.argumentCallback ? n.argumentCallback(e) : e;
954
+ return a[d];
955
+ };
956
+ }
957
+ var Ht = {
958
+ narrow: ["B", "A"],
959
+ abbreviated: ["BC", "AD"],
960
+ wide: ["Before Christ", "Anno Domini"]
961
+ }, Bt = {
962
+ narrow: ["1", "2", "3", "4"],
963
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
964
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
965
+ }, At = {
966
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
967
+ abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
968
+ wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
969
+ }, jt = {
970
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
971
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
972
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
973
+ wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
974
+ }, It = {
975
+ narrow: {
976
+ am: "a",
977
+ pm: "p",
978
+ midnight: "mi",
979
+ noon: "n",
980
+ morning: "morning",
981
+ afternoon: "afternoon",
982
+ evening: "evening",
983
+ night: "night"
984
+ },
985
+ abbreviated: {
986
+ am: "AM",
987
+ pm: "PM",
988
+ midnight: "midnight",
989
+ noon: "noon",
990
+ morning: "morning",
991
+ afternoon: "afternoon",
992
+ evening: "evening",
993
+ night: "night"
994
+ },
995
+ wide: {
996
+ am: "a.m.",
997
+ pm: "p.m.",
998
+ midnight: "midnight",
999
+ noon: "noon",
1000
+ morning: "morning",
1001
+ afternoon: "afternoon",
1002
+ evening: "evening",
1003
+ night: "night"
1004
+ }
1005
+ }, Gt = {
1006
+ narrow: {
1007
+ am: "a",
1008
+ pm: "p",
1009
+ midnight: "mi",
1010
+ noon: "n",
1011
+ morning: "in the morning",
1012
+ afternoon: "in the afternoon",
1013
+ evening: "in the evening",
1014
+ night: "at night"
1015
+ },
1016
+ abbreviated: {
1017
+ am: "AM",
1018
+ pm: "PM",
1019
+ midnight: "midnight",
1020
+ noon: "noon",
1021
+ morning: "in the morning",
1022
+ afternoon: "in the afternoon",
1023
+ evening: "in the evening",
1024
+ night: "at night"
1025
+ },
1026
+ wide: {
1027
+ am: "a.m.",
1028
+ pm: "p.m.",
1029
+ midnight: "midnight",
1030
+ noon: "noon",
1031
+ morning: "in the morning",
1032
+ afternoon: "in the afternoon",
1033
+ evening: "in the evening",
1034
+ night: "at night"
1035
+ }
1036
+ }, Qt = function(e, t) {
1037
+ var r = Number(e), a = r % 100;
1038
+ if (a > 20 || a < 10)
1039
+ switch (a % 10) {
1040
+ case 1:
1041
+ return r + "st";
1042
+ case 2:
1043
+ return r + "nd";
1044
+ case 3:
1045
+ return r + "rd";
1046
+ }
1047
+ return r + "th";
1048
+ }, Xt = {
1049
+ ordinalNumber: Qt,
1050
+ era: fe({
1051
+ values: Ht,
1052
+ defaultWidth: "wide"
1053
+ }),
1054
+ quarter: fe({
1055
+ values: Bt,
1056
+ defaultWidth: "wide",
1057
+ argumentCallback: function(e) {
1058
+ return e - 1;
1059
+ }
1060
+ }),
1061
+ month: fe({
1062
+ values: At,
1063
+ defaultWidth: "wide"
1064
+ }),
1065
+ day: fe({
1066
+ values: jt,
1067
+ defaultWidth: "wide"
1068
+ }),
1069
+ dayPeriod: fe({
1070
+ values: It,
1071
+ defaultWidth: "wide",
1072
+ formattingValues: Gt,
1073
+ defaultFormattingWidth: "wide"
1074
+ })
1075
+ };
1076
+ function me(n) {
1077
+ return function(e) {
1078
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.width, a = r && n.matchPatterns[r] || n.matchPatterns[n.defaultMatchWidth], i = e.match(a);
1079
+ if (!i)
1080
+ return null;
1081
+ var o = i[0], l = r && n.parsePatterns[r] || n.parsePatterns[n.defaultParseWidth], m = Array.isArray(l) ? Zt(l, function(u) {
1082
+ return u.test(o);
1083
+ }) : Vt(l, function(u) {
1084
+ return u.test(o);
1085
+ }), d;
1086
+ d = n.valueCallback ? n.valueCallback(m) : m, d = t.valueCallback ? t.valueCallback(d) : d;
1087
+ var f = e.slice(o.length);
1088
+ return {
1089
+ value: d,
1090
+ rest: f
1091
+ };
1092
+ };
1093
+ }
1094
+ function Vt(n, e) {
1095
+ for (var t in n)
1096
+ if (n.hasOwnProperty(t) && e(n[t]))
1097
+ return t;
1098
+ }
1099
+ function Zt(n, e) {
1100
+ for (var t = 0; t < n.length; t++)
1101
+ if (e(n[t]))
1102
+ return t;
1103
+ }
1104
+ function Jt(n) {
1105
+ return function(e) {
1106
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = e.match(n.matchPattern);
1107
+ if (!r)
1108
+ return null;
1109
+ var a = r[0], i = e.match(n.parsePattern);
1110
+ if (!i)
1111
+ return null;
1112
+ var o = n.valueCallback ? n.valueCallback(i[0]) : i[0];
1113
+ o = t.valueCallback ? t.valueCallback(o) : o;
1114
+ var l = e.slice(a.length);
1115
+ return {
1116
+ value: o,
1117
+ rest: l
1118
+ };
1119
+ };
1120
+ }
1121
+ var Kt = /^(\d+)(th|st|nd|rd)?/i, $t = /\d+/i, en = {
1122
+ narrow: /^(b|a)/i,
1123
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1124
+ wide: /^(before christ|before common era|anno domini|common era)/i
1125
+ }, tn = {
1126
+ any: [/^b/i, /^(a|c)/i]
1127
+ }, nn = {
1128
+ narrow: /^[1234]/i,
1129
+ abbreviated: /^q[1234]/i,
1130
+ wide: /^[1234](th|st|nd|rd)? quarter/i
1131
+ }, rn = {
1132
+ any: [/1/i, /2/i, /3/i, /4/i]
1133
+ }, an = {
1134
+ narrow: /^[jfmasond]/i,
1135
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1136
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1137
+ }, on = {
1138
+ narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
1139
+ any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
1140
+ }, sn = {
1141
+ narrow: /^[smtwf]/i,
1142
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
1143
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1144
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1145
+ }, ln = {
1146
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1147
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1148
+ }, un = {
1149
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1150
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1151
+ }, cn = {
1152
+ any: {
1153
+ am: /^a/i,
1154
+ pm: /^p/i,
1155
+ midnight: /^mi/i,
1156
+ noon: /^no/i,
1157
+ morning: /morning/i,
1158
+ afternoon: /afternoon/i,
1159
+ evening: /evening/i,
1160
+ night: /night/i
1161
+ }
1162
+ }, dn = {
1163
+ ordinalNumber: Jt({
1164
+ matchPattern: Kt,
1165
+ parsePattern: $t,
1166
+ valueCallback: function(e) {
1167
+ return parseInt(e, 10);
1168
+ }
1169
+ }),
1170
+ era: me({
1171
+ matchPatterns: en,
1172
+ defaultMatchWidth: "wide",
1173
+ parsePatterns: tn,
1174
+ defaultParseWidth: "any"
1175
+ }),
1176
+ quarter: me({
1177
+ matchPatterns: nn,
1178
+ defaultMatchWidth: "wide",
1179
+ parsePatterns: rn,
1180
+ defaultParseWidth: "any",
1181
+ valueCallback: function(e) {
1182
+ return e + 1;
1183
+ }
1184
+ }),
1185
+ month: me({
1186
+ matchPatterns: an,
1187
+ defaultMatchWidth: "wide",
1188
+ parsePatterns: on,
1189
+ defaultParseWidth: "any"
1190
+ }),
1191
+ day: me({
1192
+ matchPatterns: sn,
1193
+ defaultMatchWidth: "wide",
1194
+ parsePatterns: ln,
1195
+ defaultParseWidth: "any"
1196
+ }),
1197
+ dayPeriod: me({
1198
+ matchPatterns: un,
1199
+ defaultMatchWidth: "any",
1200
+ parsePatterns: cn,
1201
+ defaultParseWidth: "any"
1202
+ })
1203
+ }, fn = {
1204
+ code: "en-US",
1205
+ formatDistance: zt,
1206
+ formatLong: Nt,
1207
+ formatRelative: qt,
1208
+ localize: Xt,
1209
+ match: dn,
1210
+ options: {
1211
+ weekStartsOn: 0,
1212
+ firstWeekContainsDate: 1
1213
+ }
1214
+ }, mn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, hn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, gn = /^'([^]*?)'?$/, vn = /''/g, pn = /[a-zA-Z]/;
1215
+ function bn(n, e, t) {
1216
+ var r, a, i, o, l, m, d, f, u, g, v, b, k, y;
1217
+ H(2, arguments);
1218
+ var C = String(e), S = _e(), W = (r = (a = void 0) !== null && a !== void 0 ? a : S.locale) !== null && r !== void 0 ? r : fn, I = oe((i = (o = (l = (m = void 0) !== null && m !== void 0 ? m : void 0) !== null && l !== void 0 ? l : S.firstWeekContainsDate) !== null && o !== void 0 ? o : (d = S.locale) === null || d === void 0 || (f = d.options) === null || f === void 0 ? void 0 : f.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
1219
+ if (!(I >= 1 && I <= 7))
1220
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1221
+ var T = oe((u = (g = (v = (b = void 0) !== null && b !== void 0 ? b : void 0) !== null && v !== void 0 ? v : S.weekStartsOn) !== null && g !== void 0 ? g : (k = S.locale) === null || k === void 0 || (y = k.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && u !== void 0 ? u : 0);
1222
+ if (!(T >= 0 && T <= 6))
1223
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1224
+ if (!W.localize)
1225
+ throw new RangeError("locale must contain localize property");
1226
+ if (!W.formatLong)
1227
+ throw new RangeError("locale must contain formatLong property");
1228
+ var E = X(n);
1229
+ if (!vt(E))
1230
+ throw new RangeError("Invalid time value");
1231
+ var G = ht(E), V = pt(E, G), U = {
1232
+ firstWeekContainsDate: I,
1233
+ weekStartsOn: T,
1234
+ locale: W,
1235
+ _originalDate: E
1236
+ }, B = C.match(hn).map(function(M) {
1237
+ var L = M[0];
1238
+ if (L === "p" || L === "P") {
1239
+ var N = Pt[L];
1240
+ return N(M, W.formatLong);
1241
+ }
1242
+ return M;
1243
+ }).join("").match(mn).map(function(M) {
1244
+ if (M === "''")
1245
+ return "'";
1246
+ var L = M[0];
1247
+ if (L === "'")
1248
+ return wn(M);
1249
+ var N = Mt[L];
1250
+ if (N)
1251
+ return Ut(M) && We(M, e, String(n)), Wt(M) && We(M, e, String(n)), N(V, M, W.localize, U);
1252
+ if (L.match(pn))
1253
+ throw new RangeError("Format string contains an unescaped latin alphabet character `" + L + "`");
1254
+ return M;
1255
+ }).join("");
1256
+ return B;
1257
+ }
1258
+ function wn(n) {
1259
+ var e = n.match(gn);
1260
+ return e ? e[1].replace(vn, "'") : n;
1261
+ }
1262
+ var he = /* @__PURE__ */ ((n) => (n.lotteries = "lotteries", n.outcome = "outcome", n.draw = "draw", n))(he || {}), ue = /* @__PURE__ */ ((n) => (n.en = "en", n.default = "*", n))(ue || {});
1263
+ const _n = async (n) => {
1264
+ const { path: e, params: t = {}, options: r = {} } = n, a = new URL(e);
1265
+ return Object.keys(t).map((i) => {
1266
+ a.searchParams.append(i, t[i]);
1267
+ }), await yn(a, r);
1268
+ }, yn = async (n, e = {}) => {
1269
+ let t;
1270
+ try {
1271
+ t = await fetch(n, e), t = await t.text(), t = JSON.parse(t);
1272
+ } catch (r) {
1273
+ throw new Error(r.message);
1274
+ }
1275
+ return t;
1276
+ }, Ue = async (n, e, t) => {
1277
+ const { session: r } = t, a = {
1278
+ headers: {
1279
+ "Content-Type": "application/json",
1280
+ accept: "text/plain",
1281
+ ...r ? { "x-SessionId": r } : {}
1282
+ }
1283
+ }, o = {
1284
+ [he.lotteries]: () => ({
1285
+ path: "/wof/lotteries",
1286
+ params: {
1287
+ filter: "Types[]=flipCoin"
1288
+ },
1289
+ options: a
1290
+ }),
1291
+ [he.outcome]: () => {
1292
+ const { id: l } = t;
1293
+ return {
1294
+ path: `/wof/outcome/${l}`,
1295
+ params: {
1296
+ filter: "Types[]=flipCoin"
1297
+ },
1298
+ options: a
1299
+ };
1300
+ }
1301
+ }[n]();
1302
+ return o.path = e + "/v1" + o.path, await _n(o);
1303
+ }, Ye = {
1304
+ lotteries: async (n, e) => (await Ue(he.lotteries, n, { session: e }))?.items || [],
1305
+ outcome: async (n, e, t) => await Ue(he.outcome, n, { session: e, id: t })
1306
+ }, xn = (n) => n?.current?.remainingTimes > 0 && n?.next;
1307
+ function ze(n, e) {
1308
+ Xe(n, e);
1309
+ }
1310
+ function kn(n) {
1311
+ Ve.set(n);
1312
+ }
1313
+ const Ee = {
1314
+ en: {
1315
+ headerTitle: "Coin Royales",
1316
+ infoTooltip: "Flip a virtual coin and take a chance to win!",
1317
+ play: "Play",
1318
+ history: "History",
1319
+ rules: "Rules",
1320
+ noCoinYet: "There are no available Coin Royale",
1321
+ noHistoryYet: "There is no history yet",
1322
+ more: "More",
1323
+ rulesDescription: "Coin Royale is a particularly interesting game, will bring you a lot of surprises; When you obtained the Coin Royale, means you got a chance to flip the Coin, and if you are lucky, you can get the surprise prize.",
1324
+ terms: "Terms&Conditions link",
1325
+ prizeAgenda: "Prize agenda",
1326
+ tournamentTicket: "Tournament ticket",
1327
+ freeSpins: "Free spins",
1328
+ bonusMoney: "Bonus Money",
1329
+ loyaltyPoints: "Loyalty Points&Coins",
1330
+ luckyWheel: "LuckyWheel",
1331
+ mysteryChest: "Mystery Chest",
1332
+ coinRoyale: "Coin Royale",
1333
+ customRewards: "Custom Rewards"
1334
+ }
1335
+ };
1336
+ function Cn(n) {
1337
+ et(n, "svelte-rd1kop", `.main::-webkit-scrollbar{width:0.25rem}.main::-webkit-scrollbar-track{background:#1e1e24}.main::-webkit-scrollbar-thumb{color:#93CAED}.mobile.drawer{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile .tooltip-backdrop{padding:60px 20px 0;border-top-left-radius:28px;border-top-right-radius:28px}.mobile .tooltip-backdrop .tooltip{padding:20px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .icon-button{width:24px;height:24px}.mobile .coins-header__title{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500);line-height:14px}.mobile .coins-tabs{margin:20px 0}.mobile .coins-tabs__container{border-bottom:1px solid var(--emw--color-secondary, #729787)}.mobile .coins-tabs__tab{font-size:var(--emw--font-size-x-small, 12px);line-height:15px}.mobile .coins-tabs__tab.active{border-bottom:1px solid}.mobile .coins-list{gap:16px}.mobile .coins-list__item{font-weight:var(--emw--font-weight-normal, 400);padding:20px;font-size:var(--emw--font-size-x-small, 12px);line-height:15px;border-radius:var(--emw--border-radius-large, 16px);height:56px}.mobile .coins-list__item__keys{gap:5px;font-size:var(--emw--font-size-medium, 16px)}.mobile .coins-rules{gap:24px}.mobile .coins-rules__description{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-rules__terms{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px)}.mobile .coins-rules__prize-title{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-rules__list{padding-inline-start:15px;margin:5px 0 0}.mobile .coins-rules__list__item{margin-bottom:5px;font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .coins-empty{margin-top:50px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .coins-history__title{font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .coins-history__list{margin-bottom:32px}.mobile .coins-history__list__item{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .coins-history__list__item .name img{width:14px;height:14px}.drawer{position:fixed;left:50%;transform:translateX(-50%);background:linear-gradient(180deg, var(--emw--color-background, #213841) 0%, var(--emw--color-background-secondary, #0c1a1c) 100%);box-sizing:border-box;z-index:100;bottom:0;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;padding:40px 80px}.overlay{border:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--emw--color-gray-transparency-20, rgba(21, 43, 48, 0.5019607843));z-index:0;bottom:0;opacity:1;transition:opacity 0.5s ease-in-out}.icon-button{width:30px;height:30px;border:0px;cursor:pointer}.icon-button.help{background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.708 4.583a7.125 7.125 0 1 0 0 14.25 7.125 7.125 0 0 0 0-14.25ZM3 11.708a8.708 8.708 0 1 1 17.417 0 8.708 8.708 0 0 1-17.417 0Zm8.913-3.147a1.583 1.583 0 0 0-1.762 1.035.792.792 0 0 1-1.493-.525 3.167 3.167 0 0 1 6.154 1.055c0 1.211-.899 2.011-1.54 2.439a6.37 6.37 0 0 1-1.335.672l-.028.01-.008.002-.003.001h-.002l-.251-.75.25.751a.792.792 0 0 1-.5-1.502l.011-.004.06-.022a4.778 4.778 0 0 0 .928-.476c.545-.363.834-.75.834-1.122v-.001a1.583 1.583 0 0 0-1.315-1.563Zm-.996 7.106c0-.438.354-.792.791-.792h.008a.792.792 0 1 1 0 1.583h-.008a.792.792 0 0 1-.791-.791Z" fill="%23729787"/></svg>')}.icon-button.close{background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18 6 6 18M6 6l12 12" stroke="%23729787" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')}.tooltip-backdrop{box-sizing:border-box;z-index:200;position:absolute;width:100%;height:100%;inset:0;background-color:rgba(0, 0, 0, 0.5);padding:90px 30px 0;border-top-left-radius:72px;border-top-right-radius:72px}.tooltip-backdrop .tooltip{border:1px solid var(--emw--button-border-color, #75ffe9);background:var(--emw--color-background, #213841);border-radius:var(--emw--border-radius-large, 8px);line-height:24px;color:var(--emw--color-secondary, #bbb9c3);position:relative;padding:32px;font-size:var(--emw--font-size-medium, 16px)}.tooltip-backdrop .tooltip .icon-button{top:12px;right:12px;position:absolute}.coins-header{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 8px}.coins-header__title{color:var(--emw--color-primary, #d3ffed);font-size:var(--emw--font-size-large, 22px);font-weight:var(--emw--font-weight-bold, 700);line-height:25px}.coins-loader{border-radius:var(--emw--border-radius-large, 16px);overflow:hidden}.coins-tabs{margin:28px 0}.coins-tabs__container{display:flex;position:relative;border-bottom:2px solid var(--emw--color-secondary, #729787)}.coins-tabs__tab{padding:8px 10px;font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-gray-300, #729787);cursor:pointer;flex-grow:1;text-align:center;background:transparent;border:none;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-tabs__tab.active{color:var(--emw--color-typography, #fff);border-image-source:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);border-image-slice:1;margin-bottom:-2px;border-bottom:2px solid}.coins-list{max-height:85%;overflow:auto;gap:24px;display:flex;flex-wrap:wrap}.coins-list__item{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-large, 22px);line-height:25px;padding:35px 48px;border-radius:var(--emw--border-radius-large, 28px);height:110px;color:var(--emw--color-primary, #d3ffed);width:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;background:var(--emw--color-background-secondary, #233e42);border:1px solid var(--emw--button-border-color-secondary, #244346);cursor:pointer}.coins-list__item__keys{display:flex;align-items:center;font-weight:var(--emw--font-weight-bold, 700);background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;font-size:var(--emw--font-size-large, 22px);gap:7px}.coins-rules{display:flex;flex-flow:column;gap:40px;color:var(--emw--color-primary-variant, #a9ccbe)}.coins-rules__description{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:32px}.coins-rules__terms{display:flex;gap:5px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);border:none;padding:0;cursor:pointer;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.coins-rules__terms .arrow-icon{width:14px;height:14px;background:center/100% no-repeat;background-image:url('data:image/svg+xml,<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.41 7.744a.833.833 0 0 0 0 1.179l5 5a.833.833 0 0 0 1.18 0l5-5a.833.833 0 1 0-1.18-1.179L10 12.154l-4.41-4.41a.833.833 0 0 0-1.18 0Z" fill="url(%23a)"/><defs><linearGradient id="a" x1="10" y1="7.5" x2="10" y2="14.167" gradientUnits="userSpaceOnUse"><stop stop-color="%2375FFE9"/><stop offset="1" stop-color="%23B2FF6D"/></linearGradient></defs></svg>') no-repeat}.coins-rules__prize-title{color:#ffffff;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-rules__list{padding-inline-start:25px;margin:15px 0 0}.coins-rules__list__item{font-weight:var(--emw--font-weight-normal, 400);margin-bottom:12px;font-size:var(--emw--font-size-medium, 16px);line-height:32px}.coins-empty{text-align:center;color:var(--emw--color-primary-variant, #a9ccbe);font-weight:var(--emw--font-weight-normal, 400);line-height:24px;margin-top:75px;font-size:var(--emw--font-size-medium, 16px)}.coins-history__title{font-weight:var(--emw--font-weight-bold, 700);color:#ffffff;font-size:var(--emw--font-size-medium, 16px);line-height:18px;margin-bottom:16px}.coins-history__more{border:none;display:flex;gap:4px;padding:0;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;cursor:pointer;font-weight:var(--emw--font-weight-medium, 500);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.coins-history__list{margin-bottom:40px;overflow:auto;max-height:215px}.coins-history__list__item{display:flex;color:var(--emw--color-primary-variant, #a9ccbe);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:16px;margin-bottom:16px}.coins-history__list__item .index{margin-right:20px}.coins-history__list__item .name{flex-grow:1;margin:0;display:flex;gap:6px}.coins-history__list__item .name img{width:18px;height:18px}`);
1338
+ }
1339
+ function Le(n, e, t) {
1340
+ const r = n.slice();
1341
+ return r[36] = e[t], r;
1342
+ }
1343
+ function Fe(n, e, t) {
1344
+ const r = n.slice();
1345
+ return r[39] = e[t], r[41] = t, r;
1346
+ }
1347
+ function Ne(n, e, t) {
1348
+ const r = n.slice();
1349
+ return r[33] = e[t], r[35] = t, r;
1350
+ }
1351
+ function Re(n) {
1352
+ let e, t, r, a, i, o = (
1353
+ /*$_*/
1354
+ n[10]("infoTooltip") + ""
1355
+ ), l, m, d;
1356
+ return {
1357
+ c() {
1358
+ e = p("div"), t = p("div"), r = p("button"), a = _(), i = p("span"), l = P(o), h(r, "class", "icon-button close"), h(t, "class", "tooltip"), h(e, "class", "tooltip-backdrop");
1359
+ },
1360
+ m(f, u) {
1361
+ q(f, e, u), s(e, t), s(t, r), s(t, a), s(t, i), s(i, l), m || (d = J(
1362
+ r,
1363
+ "click",
1364
+ /*showHideToolip*/
1365
+ n[13]
1366
+ ), m = !0);
1367
+ },
1368
+ p(f, u) {
1369
+ u[0] & /*$_*/
1370
+ 1024 && o !== (o = /*$_*/
1371
+ f[10]("infoTooltip") + "") && O(l, o);
1372
+ },
1373
+ d(f) {
1374
+ f && R(e), m = !1, d();
1375
+ }
1376
+ };
1377
+ }
1378
+ function Tn(n) {
1379
+ let e, t, r = (
1380
+ /*$_*/
1381
+ n[10]("rulesDescription") + ""
1382
+ ), a, i, o, l, m, d = (
1383
+ /*$_*/
1384
+ n[10]("prizeAgenda") + ""
1385
+ ), f, u, g, v, b = (
1386
+ /*$_*/
1387
+ n[10]("tournamentTicket") + ""
1388
+ ), k, y, C, S = (
1389
+ /*$_*/
1390
+ n[10]("freeSpins") + ""
1391
+ ), W, I, T, E = (
1392
+ /*$_*/
1393
+ n[10]("bonusMoney") + ""
1394
+ ), G, V, U, B = (
1395
+ /*$_*/
1396
+ n[10]("loyaltyPoints") + ""
1397
+ ), M, L, N, Z = (
1398
+ /*$_*/
1399
+ n[10]("luckyWheel") + ""
1400
+ ), D, te, Q, Y = (
1401
+ /*$_*/
1402
+ n[10]("mysteryChest") + ""
1403
+ ), c, w, A, ne = (
1404
+ /*$_*/
1405
+ n[10]("coinRoyale") + ""
1406
+ ), ge, re, K, ae = (
1407
+ /*$_*/
1408
+ n[10]("customRewards") + ""
1409
+ ), de, F = (
1410
+ /*hasUrl*/
1411
+ n[8] && qe(n)
1412
+ );
1413
+ return {
1414
+ c() {
1415
+ e = p("div"), t = p("span"), a = P(r), i = _(), F && F.c(), o = _(), l = p("section"), m = p("span"), f = P(d), u = _(), g = p("ul"), v = p("li"), k = P(b), y = _(), C = p("li"), W = P(S), I = _(), T = p("li"), G = P(E), V = _(), U = p("li"), M = P(B), L = _(), N = p("li"), D = P(Z), te = _(), Q = p("li"), c = P(Y), w = _(), A = p("li"), ge = P(ne), re = _(), K = p("li"), de = P(ae), h(t, "class", "coins-rules__description"), h(m, "class", "coins-rules__prize-title"), h(v, "class", "coins-rules__list__item"), h(C, "class", "coins-rules__list__item"), h(T, "class", "coins-rules__list__item"), h(U, "class", "coins-rules__list__item"), h(N, "class", "coins-rules__list__item"), h(Q, "class", "coins-rules__list__item"), h(A, "class", "coins-rules__list__item"), h(K, "class", "coins-rules__list__item"), h(g, "class", "coins-rules__list"), h(e, "class", "coins-rules");
1416
+ },
1417
+ m(z, j) {
1418
+ q(z, e, j), s(e, t), s(t, a), s(e, i), F && F.m(e, null), s(e, o), s(e, l), s(l, m), s(m, f), s(l, u), s(l, g), s(g, v), s(v, k), s(g, y), s(g, C), s(C, W), s(g, I), s(g, T), s(T, G), s(g, V), s(g, U), s(U, M), s(g, L), s(g, N), s(N, D), s(g, te), s(g, Q), s(Q, c), s(g, w), s(g, A), s(A, ge), s(g, re), s(g, K), s(K, de);
1419
+ },
1420
+ p(z, j) {
1421
+ j[0] & /*$_*/
1422
+ 1024 && r !== (r = /*$_*/
1423
+ z[10]("rulesDescription") + "") && O(a, r), /*hasUrl*/
1424
+ z[8] ? F ? F.p(z, j) : (F = qe(z), F.c(), F.m(e, o)) : F && (F.d(1), F = null), j[0] & /*$_*/
1425
+ 1024 && d !== (d = /*$_*/
1426
+ z[10]("prizeAgenda") + "") && O(f, d), j[0] & /*$_*/
1427
+ 1024 && b !== (b = /*$_*/
1428
+ z[10]("tournamentTicket") + "") && O(k, b), j[0] & /*$_*/
1429
+ 1024 && S !== (S = /*$_*/
1430
+ z[10]("freeSpins") + "") && O(W, S), j[0] & /*$_*/
1431
+ 1024 && E !== (E = /*$_*/
1432
+ z[10]("bonusMoney") + "") && O(G, E), j[0] & /*$_*/
1433
+ 1024 && B !== (B = /*$_*/
1434
+ z[10]("loyaltyPoints") + "") && O(M, B), j[0] & /*$_*/
1435
+ 1024 && Z !== (Z = /*$_*/
1436
+ z[10]("luckyWheel") + "") && O(D, Z), j[0] & /*$_*/
1437
+ 1024 && Y !== (Y = /*$_*/
1438
+ z[10]("mysteryChest") + "") && O(c, Y), j[0] & /*$_*/
1439
+ 1024 && ne !== (ne = /*$_*/
1440
+ z[10]("coinRoyale") + "") && O(ge, ne), j[0] & /*$_*/
1441
+ 1024 && ae !== (ae = /*$_*/
1442
+ z[10]("customRewards") + "") && O(de, ae);
1443
+ },
1444
+ d(z) {
1445
+ z && R(e), F && F.d();
1446
+ }
1447
+ };
1448
+ }
1449
+ function Mn(n) {
1450
+ let e;
1451
+ function t(i, o) {
1452
+ return (
1453
+ /*coinRoyalesHistory*/
1454
+ i[9].length > 0 ? Sn : Dn
1455
+ );
1456
+ }
1457
+ let r = t(n), a = r(n);
1458
+ return {
1459
+ c() {
1460
+ a.c(), e = ke();
1461
+ },
1462
+ m(i, o) {
1463
+ a.m(i, o), q(i, e, o);
1464
+ },
1465
+ p(i, o) {
1466
+ r === (r = t(i)) && a ? a.p(i, o) : (a.d(1), a = r(i), a && (a.c(), a.m(e.parentNode, e)));
1467
+ },
1468
+ d(i) {
1469
+ i && R(e), a.d(i);
1470
+ }
1471
+ };
1472
+ }
1473
+ function On(n) {
1474
+ let e;
1475
+ function t(i, o) {
1476
+ return (
1477
+ /*coinRoyales*/
1478
+ i[6].length > 0 ? Un : Wn
1479
+ );
1480
+ }
1481
+ let r = t(n), a = r(n);
1482
+ return {
1483
+ c() {
1484
+ a.c(), e = ke();
1485
+ },
1486
+ m(i, o) {
1487
+ a.m(i, o), q(i, e, o);
1488
+ },
1489
+ p(i, o) {
1490
+ r === (r = t(i)) && a ? a.p(i, o) : (a.d(1), a = r(i), a && (a.c(), a.m(e.parentNode, e)));
1491
+ },
1492
+ d(i) {
1493
+ i && R(e), a.d(i);
1494
+ }
1495
+ };
1496
+ }
1497
+ function Pn(n) {
1498
+ let e;
1499
+ return {
1500
+ c() {
1501
+ e = p("div"), e.innerHTML = '<ui-skeleton structure="rectangle" width="100%" height="110px"></ui-skeleton>', h(e, "class", "coins-loader");
1502
+ },
1503
+ m(t, r) {
1504
+ q(t, e, r);
1505
+ },
1506
+ p: xe,
1507
+ d(t) {
1508
+ t && R(e);
1509
+ }
1510
+ };
1511
+ }
1512
+ function qe(n) {
1513
+ let e, t, r = (
1514
+ /*$_*/
1515
+ n[10]("terms") + ""
1516
+ ), a, i, o;
1517
+ return {
1518
+ c() {
1519
+ e = p("a"), t = p("span"), a = P(r), i = _(), o = p("span"), h(o, "class", "arrow-icon"), h(e, "class", "coins-rules__terms"), h(
1520
+ e,
1521
+ "href",
1522
+ /*terms*/
1523
+ n[0]
1524
+ ), h(e, "target", "_blank");
1525
+ },
1526
+ m(l, m) {
1527
+ q(l, e, m), s(e, t), s(t, a), s(e, i), s(e, o);
1528
+ },
1529
+ p(l, m) {
1530
+ m[0] & /*$_*/
1531
+ 1024 && r !== (r = /*$_*/
1532
+ l[10]("terms") + "") && O(a, r), m[0] & /*terms*/
1533
+ 1 && h(
1534
+ e,
1535
+ "href",
1536
+ /*terms*/
1537
+ l[0]
1538
+ );
1539
+ },
1540
+ d(l) {
1541
+ l && R(e);
1542
+ }
1543
+ };
1544
+ }
1545
+ function Dn(n) {
1546
+ let e, t = (
1547
+ /*$_*/
1548
+ n[10]("noHistoryYet") + ""
1549
+ ), r;
1550
+ return {
1551
+ c() {
1552
+ e = p("div"), r = P(t), h(e, "class", "coins-empty");
1553
+ },
1554
+ m(a, i) {
1555
+ q(a, e, i), s(e, r);
1556
+ },
1557
+ p(a, i) {
1558
+ i[0] & /*$_*/
1559
+ 1024 && t !== (t = /*$_*/
1560
+ a[10]("noHistoryYet") + "") && O(r, t);
1561
+ },
1562
+ d(a) {
1563
+ a && R(e);
1564
+ }
1565
+ };
1566
+ }
1567
+ function Sn(n) {
1568
+ let e, t = ce(
1569
+ /*coinRoyalesHistory*/
1570
+ n[9]
1571
+ ), r = [];
1572
+ for (let a = 0; a < t.length; a += 1)
1573
+ r[a] = Ae(Le(n, t, a));
1574
+ return {
1575
+ c() {
1576
+ for (let a = 0; a < r.length; a += 1)
1577
+ r[a].c();
1578
+ e = ke();
1579
+ },
1580
+ m(a, i) {
1581
+ for (let o = 0; o < r.length; o += 1)
1582
+ r[o] && r[o].m(a, i);
1583
+ q(a, e, i);
1584
+ },
1585
+ p(a, i) {
1586
+ if (i[0] & /*showMore, coinRoyalesHistory, $_*/
1587
+ 17920) {
1588
+ t = ce(
1589
+ /*coinRoyalesHistory*/
1590
+ a[9]
1591
+ );
1592
+ let o;
1593
+ for (o = 0; o < t.length; o += 1) {
1594
+ const l = Le(a, t, o);
1595
+ r[o] ? r[o].p(l, i) : (r[o] = Ae(l), r[o].c(), r[o].m(e.parentNode, e));
1596
+ }
1597
+ for (; o < r.length; o += 1)
1598
+ r[o].d(1);
1599
+ r.length = t.length;
1600
+ }
1601
+ },
1602
+ d(a) {
1603
+ a && R(e), Ce(r, a);
1604
+ }
1605
+ };
1606
+ }
1607
+ function He(n) {
1608
+ let e, t, r, a, i = (
1609
+ /*outcome*/
1610
+ n[39]?.name + ""
1611
+ ), o, l, m, d, f, u, g = (
1612
+ /*outcome*/
1613
+ n[39]?.date + ""
1614
+ ), v;
1615
+ return {
1616
+ c() {
1617
+ e = p("div"), t = p("span"), t.textContent = `${/*index*/
1618
+ n[41] + 1}`, r = _(), a = p("p"), o = P(i), l = _(), m = p("img"), f = _(), u = p("span"), v = P(g), h(t, "class", "index"), ve(m.src, d = /*outcome*/
1619
+ n[39]?.state ? Oe : Me) || h(m, "src", d), h(m, "alt", ""), h(a, "class", "name"), h(u, "class", "time"), h(e, "class", "coins-history__list__item");
1620
+ },
1621
+ m(b, k) {
1622
+ q(b, e, k), s(e, t), s(e, r), s(e, a), s(a, o), s(a, l), s(a, m), s(e, f), s(e, u), s(u, v);
1623
+ },
1624
+ p(b, k) {
1625
+ k[0] & /*coinRoyalesHistory*/
1626
+ 512 && i !== (i = /*outcome*/
1627
+ b[39]?.name + "") && O(o, i), k[0] & /*coinRoyalesHistory*/
1628
+ 512 && !ve(m.src, d = /*outcome*/
1629
+ b[39]?.state ? Oe : Me) && h(m, "src", d), k[0] & /*coinRoyalesHistory*/
1630
+ 512 && g !== (g = /*outcome*/
1631
+ b[39]?.date + "") && O(v, g);
1632
+ },
1633
+ d(b) {
1634
+ b && R(e);
1635
+ }
1636
+ };
1637
+ }
1638
+ function Be(n) {
1639
+ let e, t = (
1640
+ /*$_*/
1641
+ n[10]("more") + ""
1642
+ ), r, a, i, o, l, m;
1643
+ function d() {
1644
+ return (
1645
+ /*click_handler_1*/
1646
+ n[24](
1647
+ /*history*/
1648
+ n[36]
1649
+ )
1650
+ );
1651
+ }
1652
+ return {
1653
+ c() {
1654
+ e = p("button"), r = P(t), a = _(), i = p("img"), ve(i.src, o = dt) || h(i, "src", o), h(i, "alt", "More"), h(e, "class", "coins-history__more");
1655
+ },
1656
+ m(f, u) {
1657
+ q(f, e, u), s(e, r), s(e, a), s(e, i), l || (m = J(e, "click", d), l = !0);
1658
+ },
1659
+ p(f, u) {
1660
+ n = f, u[0] & /*$_*/
1661
+ 1024 && t !== (t = /*$_*/
1662
+ n[10]("more") + "") && O(r, t);
1663
+ },
1664
+ d(f) {
1665
+ f && R(e), l = !1, m();
1666
+ }
1667
+ };
1668
+ }
1669
+ function Ae(n) {
1670
+ let e, t, r = (
1671
+ /*history*/
1672
+ n[36].name + ""
1673
+ ), a, i, o, l, m = ce(
1674
+ /*history*/
1675
+ n[36].outcomes.slice(
1676
+ 0,
1677
+ /*history*/
1678
+ n[36].endPos
1679
+ )
1680
+ ), d = [];
1681
+ for (let u = 0; u < m.length; u += 1)
1682
+ d[u] = He(Fe(n, m, u));
1683
+ let f = (
1684
+ /*history*/
1685
+ n[36].outcomes?.length > 3 && /*history*/
1686
+ n[36].endPos === 3 && Be(n)
1687
+ );
1688
+ return {
1689
+ c() {
1690
+ e = p("div"), t = p("div"), a = P(r), i = _();
1691
+ for (let u = 0; u < d.length; u += 1)
1692
+ d[u].c();
1693
+ o = _(), f && f.c(), l = _(), h(t, "class", "coins-history__title"), h(e, "class", "coins-history__list");
1694
+ },
1695
+ m(u, g) {
1696
+ q(u, e, g), s(e, t), s(t, a), s(e, i);
1697
+ for (let v = 0; v < d.length; v += 1)
1698
+ d[v] && d[v].m(e, null);
1699
+ s(e, o), f && f.m(e, null), s(e, l);
1700
+ },
1701
+ p(u, g) {
1702
+ if (g[0] & /*coinRoyalesHistory*/
1703
+ 512 && r !== (r = /*history*/
1704
+ u[36].name + "") && O(a, r), g[0] & /*coinRoyalesHistory*/
1705
+ 512) {
1706
+ m = ce(
1707
+ /*history*/
1708
+ u[36].outcomes.slice(
1709
+ 0,
1710
+ /*history*/
1711
+ u[36].endPos
1712
+ )
1713
+ );
1714
+ let v;
1715
+ for (v = 0; v < m.length; v += 1) {
1716
+ const b = Fe(u, m, v);
1717
+ d[v] ? d[v].p(b, g) : (d[v] = He(b), d[v].c(), d[v].m(e, o));
1718
+ }
1719
+ for (; v < d.length; v += 1)
1720
+ d[v].d(1);
1721
+ d.length = m.length;
1722
+ }
1723
+ /*history*/
1724
+ u[36].outcomes?.length > 3 && /*history*/
1725
+ u[36].endPos === 3 ? f ? f.p(u, g) : (f = Be(u), f.c(), f.m(e, l)) : f && (f.d(1), f = null);
1726
+ },
1727
+ d(u) {
1728
+ u && R(e), Ce(d, u), f && f.d();
1729
+ }
1730
+ };
1731
+ }
1732
+ function Wn(n) {
1733
+ let e, t = (
1734
+ /*$_*/
1735
+ n[10]("noCoinYet") + ""
1736
+ ), r;
1737
+ return {
1738
+ c() {
1739
+ e = p("div"), r = P(t), h(e, "class", "coins-empty");
1740
+ },
1741
+ m(a, i) {
1742
+ q(a, e, i), s(e, r);
1743
+ },
1744
+ p(a, i) {
1745
+ i[0] & /*$_*/
1746
+ 1024 && t !== (t = /*$_*/
1747
+ a[10]("noCoinYet") + "") && O(r, t);
1748
+ },
1749
+ d(a) {
1750
+ a && R(e);
1751
+ }
1752
+ };
1753
+ }
1754
+ function Un(n) {
1755
+ let e, t = ce(
1756
+ /*coinRoyales*/
1757
+ n[6]
1758
+ ), r = [];
1759
+ for (let a = 0; a < t.length; a += 1)
1760
+ r[a] = je(Ne(n, t, a));
1761
+ return {
1762
+ c() {
1763
+ e = p("div");
1764
+ for (let a = 0; a < r.length; a += 1)
1765
+ r[a].c();
1766
+ h(e, "class", "coins-list");
1767
+ },
1768
+ m(a, i) {
1769
+ q(a, e, i);
1770
+ for (let o = 0; o < r.length; o += 1)
1771
+ r[o] && r[o].m(e, null);
1772
+ },
1773
+ p(a, i) {
1774
+ if (i[0] & /*openCoinDetails, coinRoyales, lang*/
1775
+ 65602) {
1776
+ t = ce(
1777
+ /*coinRoyales*/
1778
+ a[6]
1779
+ );
1780
+ let o;
1781
+ for (o = 0; o < t.length; o += 1) {
1782
+ const l = Ne(a, t, o);
1783
+ r[o] ? r[o].p(l, i) : (r[o] = je(l), r[o].c(), r[o].m(e, null));
1784
+ }
1785
+ for (; o < r.length; o += 1)
1786
+ r[o].d(1);
1787
+ r.length = t.length;
1788
+ }
1789
+ },
1790
+ d(a) {
1791
+ a && R(e), Ce(r, a);
1792
+ }
1793
+ };
1794
+ }
1795
+ function je(n) {
1796
+ let e, t = (
1797
+ /*coin*/
1798
+ (n[33].program.name[
1799
+ /*lang*/
1800
+ n[1]
1801
+ ] || /*coin*/
1802
+ n[33].program.name[ue.default]) + ""
1803
+ ), r, a, i, o, l, m, d, f = (
1804
+ /*coin*/
1805
+ n[33]?.current?.remainingTimes + ""
1806
+ ), u, g, v, b;
1807
+ function k() {
1808
+ return (
1809
+ /*click_handler*/
1810
+ n[23](
1811
+ /*coin*/
1812
+ n[33]
1813
+ )
1814
+ );
1815
+ }
1816
+ return {
1817
+ c() {
1818
+ e = p("button"), r = P(t), a = _(), i = p("div"), o = p("img"), m = _(), d = p("span"), u = P(f), g = _(), ve(o.src, l = ct) || h(o, "src", l), h(o, "alt", "Key"), h(i, "class", "coins-list__item__keys"), h(e, "class", "coins-list__item");
1819
+ },
1820
+ m(y, C) {
1821
+ q(y, e, C), s(e, r), s(e, a), s(e, i), s(i, o), s(i, m), s(i, d), s(d, u), s(e, g), v || (b = J(e, "click", k), v = !0);
1822
+ },
1823
+ p(y, C) {
1824
+ n = y, C[0] & /*coinRoyales, lang*/
1825
+ 66 && t !== (t = /*coin*/
1826
+ (n[33].program.name[
1827
+ /*lang*/
1828
+ n[1]
1829
+ ] || /*coin*/
1830
+ n[33].program.name[ue.default]) + "") && O(r, t), C[0] & /*coinRoyales*/
1831
+ 64 && f !== (f = /*coin*/
1832
+ n[33]?.current?.remainingTimes + "") && O(u, f);
1833
+ },
1834
+ d(y) {
1835
+ y && R(e), v = !1, b();
1836
+ }
1837
+ };
1838
+ }
1839
+ function Yn(n) {
1840
+ let e, t, r, a, i, o, l, m, d, f = (
1841
+ /*$_*/
1842
+ n[10]("headerTitle") + ""
1843
+ ), u, g, v, b, k, y, C, S = (
1844
+ /*$_*/
1845
+ n[10]("play") + ""
1846
+ ), W, I, T, E = (
1847
+ /*$_*/
1848
+ n[10]("history") + ""
1849
+ ), G, V, U, B = (
1850
+ /*$_*/
1851
+ n[10]("rules") + ""
1852
+ ), M, L, N, Z, D = (
1853
+ /*tooltip*/
1854
+ n[7] && Re(n)
1855
+ );
1856
+ function te(c, w) {
1857
+ return (
1858
+ /*coinsLoading*/
1859
+ c[5] || /*historyLoading*/
1860
+ c[4] ? Pn : (
1861
+ /*activeTab*/
1862
+ c[3] === 1 ? On : (
1863
+ /*activeTab*/
1864
+ c[3] === 2 ? Mn : Tn
1865
+ )
1866
+ )
1867
+ );
1868
+ }
1869
+ let Q = te(n), Y = Q(n);
1870
+ return {
1871
+ c() {
1872
+ e = p("div"), t = p("button"), r = _(), a = p("div"), D && D.c(), i = _(), o = p("div"), l = p("button"), m = _(), d = p("div"), u = P(f), g = _(), v = p("button"), b = _(), k = p("div"), y = p("div"), C = p("button"), W = P(S), I = _(), T = p("button"), G = P(E), V = _(), U = p("button"), M = P(B), L = _(), Y.c(), h(t, "class", "overlay"), h(l, "class", "icon-button help"), h(d, "class", "coins-header__title"), h(v, "class", "icon-button close"), h(o, "class", "coins-header"), h(C, "data-index", "1"), h(C, "class", "coins-tabs__tab"), se(
1873
+ C,
1874
+ "active",
1875
+ /*activeTab*/
1876
+ n[3] === 1
1877
+ ), h(T, "data-index", "2"), h(T, "class", "coins-tabs__tab"), se(
1878
+ T,
1879
+ "active",
1880
+ /*activeTab*/
1881
+ n[3] === 2
1882
+ ), h(U, "data-index", "3"), h(U, "class", "coins-tabs__tab"), se(
1883
+ U,
1884
+ "active",
1885
+ /*activeTab*/
1886
+ n[3] === 3
1887
+ ), h(y, "class", "coins-tabs__container"), h(k, "class", "coins-tabs"), h(a, "class", "drawer " + /*mobileView*/
1888
+ (n[11] ? "mobile" : "")), h(e, "part", "CustomStylingContainer");
1889
+ },
1890
+ m(c, w) {
1891
+ q(c, e, w), s(e, t), s(e, r), s(e, a), D && D.m(a, null), s(a, i), s(a, o), s(o, l), s(o, m), s(o, d), s(d, u), s(o, g), s(o, v), s(a, b), s(a, k), s(k, y), s(y, C), s(C, W), s(y, I), s(y, T), s(T, G), s(y, V), s(y, U), s(U, M), s(a, L), Y.m(a, null), n[25](e), N || (Z = [
1892
+ J(
1893
+ t,
1894
+ "click",
1895
+ /*onClose*/
1896
+ n[12]
1897
+ ),
1898
+ J(
1899
+ l,
1900
+ "click",
1901
+ /*showHideToolip*/
1902
+ n[13]
1903
+ ),
1904
+ J(
1905
+ v,
1906
+ "click",
1907
+ /*onClose*/
1908
+ n[12]
1909
+ ),
1910
+ J(
1911
+ C,
1912
+ "click",
1913
+ /*handleTabChange*/
1914
+ n[15]
1915
+ ),
1916
+ J(
1917
+ T,
1918
+ "click",
1919
+ /*handleTabChange*/
1920
+ n[15]
1921
+ ),
1922
+ J(
1923
+ U,
1924
+ "click",
1925
+ /*handleTabChange*/
1926
+ n[15]
1927
+ )
1928
+ ], N = !0);
1929
+ },
1930
+ p(c, w) {
1931
+ /*tooltip*/
1932
+ c[7] ? D ? D.p(c, w) : (D = Re(c), D.c(), D.m(a, i)) : D && (D.d(1), D = null), w[0] & /*$_*/
1933
+ 1024 && f !== (f = /*$_*/
1934
+ c[10]("headerTitle") + "") && O(u, f), w[0] & /*$_*/
1935
+ 1024 && S !== (S = /*$_*/
1936
+ c[10]("play") + "") && O(W, S), w[0] & /*activeTab*/
1937
+ 8 && se(
1938
+ C,
1939
+ "active",
1940
+ /*activeTab*/
1941
+ c[3] === 1
1942
+ ), w[0] & /*$_*/
1943
+ 1024 && E !== (E = /*$_*/
1944
+ c[10]("history") + "") && O(G, E), w[0] & /*activeTab*/
1945
+ 8 && se(
1946
+ T,
1947
+ "active",
1948
+ /*activeTab*/
1949
+ c[3] === 2
1950
+ ), w[0] & /*$_*/
1951
+ 1024 && B !== (B = /*$_*/
1952
+ c[10]("rules") + "") && O(M, B), w[0] & /*activeTab*/
1953
+ 8 && se(
1954
+ U,
1955
+ "active",
1956
+ /*activeTab*/
1957
+ c[3] === 3
1958
+ ), Q === (Q = te(c)) && Y ? Y.p(c, w) : (Y.d(1), Y = Q(c), Y && (Y.c(), Y.m(a, null)));
1959
+ },
1960
+ i: xe,
1961
+ o: xe,
1962
+ d(c) {
1963
+ c && R(e), D && D.d(), Y.d(), n[25](null), N = !1, tt(Z);
1964
+ }
1965
+ };
1966
+ }
1967
+ function zn(n, e, t) {
1968
+ let r;
1969
+ nt(n, ot, (c) => t(10, r = c));
1970
+ let { terms: a = "" } = e, { lang: i = ue.en } = e, { endpoint: o = "" } = e, { session: l = "" } = e, { clientstyling: m = "" } = e, { clientstylingurl: d = "" } = e, { translationurl: f = "" } = e, { mbsource: u } = e, g = window.navigator.userAgent, v = rt(g), b, k = 1, y = !1, C = !1, S = [], W = !1, I = !1, T;
1971
+ const E = (c) => /(https?:\/\/[^\s]+)/g.test(c), G = () => {
1972
+ Te({ type: "CloseCoinRoyaleDrawer" });
1973
+ }, V = () => {
1974
+ t(7, W = !W);
1975
+ }, U = async () => {
1976
+ t(4, y = !0);
1977
+ let c = S.map((w) => ({
1978
+ id: w.program.id,
1979
+ name: w.program.name[i] || w.program.name[ue.default],
1980
+ partitions: w.program.wheelOfFortune.partitions,
1981
+ endPos: 0,
1982
+ outcomes: []
1983
+ }));
1984
+ if (c.length > 0) {
1985
+ const w = c.map(async (A, ne) => {
1986
+ const re = (await Ye.outcome(o, l, A?.id)).items || [];
1987
+ if (re.length === 0) {
1988
+ c[ne] = null;
1989
+ return;
1990
+ }
1991
+ c[ne] = {
1992
+ ...A,
1993
+ endPos: re.length > 3 ? 3 : re.length,
1994
+ outcomes: re.map((K) => {
1995
+ const ae = A.partitions[K.draw.result.wheelOfFortunePartitionIndex]?.name || {}, de = K.draw.state === "fulfilled", F = bn(new Date(K.draw.time), "LLL d, yyyy HH:mm:ss");
1996
+ return {
1997
+ name: ae[i] || ae[ue.default],
1998
+ state: de,
1999
+ date: F
2000
+ };
2001
+ })
2002
+ };
2003
+ });
2004
+ await Promise.all(w);
2005
+ }
2006
+ t(9, T = c.filter((w) => !!w)), t(4, y = !1);
2007
+ }, B = async () => {
2008
+ t(5, C = !0);
2009
+ const c = await Ye.lotteries(o, l);
2010
+ t(6, S = c.filter((w) => xn(w))), t(5, C = !1);
2011
+ }, M = (c) => {
2012
+ const w = T.findIndex((A) => A.id === c);
2013
+ t(9, T[w].endPos = T[w].outcomes?.length, T);
2014
+ }, L = async (c) => {
2015
+ t(3, k = +c.target.getAttribute("data-index")), k === 2 && await U();
2016
+ }, N = () => {
2017
+ fetch(f).then((w) => w.json()).then((w) => {
2018
+ Object.keys(w).forEach((A) => {
2019
+ ze(A, w[A]);
2020
+ });
2021
+ });
2022
+ };
2023
+ Object.keys(Ee).forEach((c) => {
2024
+ ze(c, Ee[c]);
2025
+ });
2026
+ const Z = () => {
2027
+ kn(i);
2028
+ }, D = (c) => {
2029
+ Te({
2030
+ type: "OpenCoinRoyaleDetails",
2031
+ data: c
2032
+ });
2033
+ };
2034
+ at(() => {
2035
+ t(8, I = E(a)), B();
2036
+ });
2037
+ const te = (c) => {
2038
+ D(c);
2039
+ }, Q = (c) => M(c.id);
2040
+ function Y(c) {
2041
+ it[c ? "unshift" : "push"](() => {
2042
+ b = c, t(2, b);
2043
+ });
2044
+ }
2045
+ return n.$$set = (c) => {
2046
+ "terms" in c && t(0, a = c.terms), "lang" in c && t(1, i = c.lang), "endpoint" in c && t(17, o = c.endpoint), "session" in c && t(18, l = c.session), "clientstyling" in c && t(19, m = c.clientstyling), "clientstylingurl" in c && t(20, d = c.clientstylingurl), "translationurl" in c && t(21, f = c.translationurl), "mbsource" in c && t(22, u = c.mbsource);
2047
+ }, n.$$.update = () => {
2048
+ n.$$.dirty[0] & /*lang*/
2049
+ 2 && i && Z(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
2050
+ 524292 && m && b && st(b, m), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
2051
+ 1048580 && d && b && lt(b, d), n.$$.dirty[0] & /*translationurl*/
2052
+ 2097152 && f && N(), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
2053
+ 4194308 && u && b && ut(b, `${u}.Style`);
2054
+ }, [
2055
+ a,
2056
+ i,
2057
+ b,
2058
+ k,
2059
+ y,
2060
+ C,
2061
+ S,
2062
+ W,
2063
+ I,
2064
+ T,
2065
+ r,
2066
+ v,
2067
+ G,
2068
+ V,
2069
+ M,
2070
+ L,
2071
+ D,
2072
+ o,
2073
+ l,
2074
+ m,
2075
+ d,
2076
+ f,
2077
+ u,
2078
+ te,
2079
+ Q,
2080
+ Y
2081
+ ];
2082
+ }
2083
+ class En extends Ze {
2084
+ constructor(e) {
2085
+ super(), Je(
2086
+ this,
2087
+ e,
2088
+ zn,
2089
+ Yn,
2090
+ Ke,
2091
+ {
2092
+ terms: 0,
2093
+ lang: 1,
2094
+ endpoint: 17,
2095
+ session: 18,
2096
+ clientstyling: 19,
2097
+ clientstylingurl: 20,
2098
+ translationurl: 21,
2099
+ mbsource: 22
2100
+ },
2101
+ Cn,
2102
+ [-1, -1]
2103
+ );
2104
+ }
2105
+ get terms() {
2106
+ return this.$$.ctx[0];
2107
+ }
2108
+ set terms(e) {
2109
+ this.$$set({ terms: e }), $();
2110
+ }
2111
+ get lang() {
2112
+ return this.$$.ctx[1];
2113
+ }
2114
+ set lang(e) {
2115
+ this.$$set({ lang: e }), $();
2116
+ }
2117
+ get endpoint() {
2118
+ return this.$$.ctx[17];
2119
+ }
2120
+ set endpoint(e) {
2121
+ this.$$set({ endpoint: e }), $();
2122
+ }
2123
+ get session() {
2124
+ return this.$$.ctx[18];
2125
+ }
2126
+ set session(e) {
2127
+ this.$$set({ session: e }), $();
2128
+ }
2129
+ get clientstyling() {
2130
+ return this.$$.ctx[19];
2131
+ }
2132
+ set clientstyling(e) {
2133
+ this.$$set({ clientstyling: e }), $();
2134
+ }
2135
+ get clientstylingurl() {
2136
+ return this.$$.ctx[20];
2137
+ }
2138
+ set clientstylingurl(e) {
2139
+ this.$$set({ clientstylingurl: e }), $();
2140
+ }
2141
+ get translationurl() {
2142
+ return this.$$.ctx[21];
2143
+ }
2144
+ set translationurl(e) {
2145
+ this.$$set({ translationurl: e }), $();
2146
+ }
2147
+ get mbsource() {
2148
+ return this.$$.ctx[22];
2149
+ }
2150
+ set mbsource(e) {
2151
+ this.$$set({ mbsource: e }), $();
2152
+ }
2153
+ }
2154
+ $e(En, { terms: {}, lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
2155
+ export {
2156
+ En as default
2157
+ };