@everymatrix/casino-game-overlay 0.3.0 → 0.3.2

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/{CasinoGameOverlay-CeB06Elh.js → CasinoGameOverlay-CJSg_ntR.js} +163 -159
  2. package/components/{CasinoGameOverlay-D1dEKiq2.js → CasinoGameOverlay-DKopaQRU.js} +95 -91
  3. package/components/CasinoGameOverlay-DR1oqDXs.cjs +1 -0
  4. package/components/{CasinoMysteryChestContainer-DCBUT7zS.js → CasinoMysteryChestContainer-BIgK6ijU.js} +296 -277
  5. package/components/{CasinoMysteryChestContainer-v1IIWz59.js → CasinoMysteryChestContainer-CUoGUFPg.js} +296 -277
  6. package/components/CasinoMysteryChestContainer-Ddbg98Ct.cjs +18 -0
  7. package/components/{CasinoMysteryChestDetails-BSMg5eU-.js → CasinoMysteryChestDetails-5tVMLmT2.js} +237 -207
  8. package/components/{CasinoMysteryChestDetails-DUyyptxv.cjs → CasinoMysteryChestDetails-DN8YGjwq.cjs} +2 -2
  9. package/components/{CasinoMysteryChestDetails-BEr1Rp8m.js → CasinoMysteryChestDetails-DaiN1W80.js} +205 -175
  10. package/components/{CasinoMysteryChestModal-5uEhnWBG.cjs → CasinoMysteryChestModal-B1Mw0qsq.cjs} +1 -1
  11. package/components/{CasinoMysteryChestModal-N1xv3jqj.js → CasinoMysteryChestModal-CXYSF5U2.js} +1 -1
  12. package/components/{CasinoMysteryChestModal-Jx6JQPCo.js → CasinoMysteryChestModal-i0bC573h.js} +1 -1
  13. package/components/CasinoMysteryChestsList-2XtvNi53.cjs +1 -0
  14. package/components/CasinoMysteryChestsList-D9xdlIE1.js +2188 -0
  15. package/components/CasinoMysteryChestsList-DcBJTIcn.js +2231 -0
  16. package/components/{GeneralAnimationLoading-CdoLjCX9.cjs → GeneralAnimationLoading-B9pSQQ65.cjs} +1 -1
  17. package/components/{GeneralAnimationLoading-CwTM1J-d.js → GeneralAnimationLoading-BCuCGkFp.js} +4 -4
  18. package/components/{GeneralAnimationLoading-Bk4H8-6u.js → GeneralAnimationLoading-D3Y1CIhc.js} +4 -4
  19. package/es2015/casino-game-overlay.cjs +1 -1
  20. package/es2015/casino-game-overlay.js +1 -1
  21. package/esnext/casino-game-overlay.js +1 -1
  22. package/package.json +1 -1
  23. package/components/CasinoGameOverlay-phrgNy9_.cjs +0 -1
  24. package/components/CasinoMysteryChestContainer-BQEpj230.cjs +0 -18
  25. package/components/CasinoMysteryChestsList-C52ouShH.js +0 -2085
  26. package/components/CasinoMysteryChestsList-E6KZquZz.cjs +0 -3
  27. package/components/CasinoMysteryChestsList-HpAoj4RL.js +0 -2042
@@ -1,2042 +0,0 @@
1
- import { S as Be, b as je, s as Ie, f as j, d as Ge, n as Z, e as U, r as Ae, x as Q, g as L, p as f, q as z, l as w, h as T, m as p, o as Qe, w as Xe, k as ae, j as me, y as J, z as he, u as ee, v as te, t as fe, c as Ve } from "./CasinoGameOverlay-CeB06Elh.js";
2
- import { $ as Ze, a as Je, i as Ke } from "./CasinoMysteryChestContainer-DCBUT7zS.js";
3
- const ce = (n) => window.postMessage(n, window.location.href), $e = "data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.1978%2013.2348C12.1978%209.60751%2015.1383%206.66699%2018.7656%206.66699C22.3929%206.66699%2025.3334%209.60751%2025.3334%2013.2348C25.3334%2016.8621%2022.3929%2019.8026%2018.7656%2019.8026C18.467%2019.8026%2018.1725%2019.7826%2017.8835%2019.7438C17.6825%2019.7168%2017.557%2019.7001%2017.4658%2019.6909C17.4218%2019.7326%2017.3626%2019.7916%2017.2673%2019.8869L12.5565%2024.5977C12.5457%2024.6085%2012.5344%2024.6198%2012.5229%2024.6315C12.4009%2024.7542%2012.2356%2024.9205%2012.0329%2025.0448C11.8576%2025.1522%2011.6665%2025.2313%2011.4666%2025.2793C11.2354%2025.3348%2011.001%2025.3341%2010.8279%2025.3335C10.8115%2025.3335%2010.7956%2025.3334%2010.7803%2025.3334L9.14719%2025.3334C8.91663%2025.3335%208.68571%2025.3335%208.48899%2025.3174C8.27114%2025.2996%208.00565%2025.2571%207.7365%2025.1199C7.36793%2024.9321%207.06826%2024.6325%206.88046%2024.2639C6.74332%2023.9948%206.70076%2023.7293%206.68297%2023.5114C6.66689%2023.3147%206.66693%2023.0838%206.66696%2022.8532L6.66696%2021.2201C6.66696%2021.2049%206.66691%2021.189%206.66686%2021.1725C6.66631%2020.9994%206.66557%2020.765%206.72109%2020.5338C6.76907%2020.3339%206.84822%2020.1428%206.95562%2019.9676C7.07986%2019.7648%207.24617%2019.5995%207.36894%2019.4776C7.3806%2019.466%207.39188%2019.4548%207.40268%2019.4439L12.1135%2014.7331C12.2088%2014.6378%2012.2678%2014.5786%2012.3095%2014.5346C12.3003%2014.4434%2012.2836%2014.3179%2012.2566%2014.1169C12.2178%2013.8279%2012.1978%2013.5334%2012.1978%2013.2348ZM18.7656%208.74104C16.2837%208.74104%2014.2718%2010.753%2014.2718%2013.2348C14.2718%2013.4408%2014.2856%2013.6429%2014.3122%2013.8406L14.3146%2013.8585C14.3394%2014.0432%2014.3618%2014.2097%2014.3749%2014.3451C14.3874%2014.4747%2014.4011%2014.6598%2014.3736%2014.8525C14.3367%2015.1105%2014.2715%2015.3033%2014.1443%2015.5308C14.0078%2015.7751%2013.7931%2015.9881%2013.629%2016.151C13.6121%2016.1678%2013.5958%2016.184%2013.5801%2016.1997L8.86926%2020.9105C8.82845%2020.9513%208.79718%2020.9826%208.77036%2021.0099C8.75929%2021.0212%208.74992%2021.0308%208.74194%2021.0392C8.7417%2021.0507%208.74151%2021.0641%208.74137%2021.0799C8.74102%2021.1182%208.74101%2021.1624%208.74101%2021.2201V22.8215C8.74101%2023.0268%208.74146%2023.1591%208.74514%2023.2553C8.84132%2023.2589%208.97362%2023.2594%209.17887%2023.2594H10.7803C10.838%2023.2594%2010.8822%2023.2594%2010.9205%2023.259C10.9363%2023.2589%2010.9497%2023.2587%2010.9613%2023.2585C10.9696%2023.2505%2010.9792%2023.2411%2010.9905%2023.2301C11.0178%2023.2032%2011.0491%2023.172%2011.0899%2023.1312L15.8007%2018.4203C15.8164%2018.4046%2015.8327%2018.3883%2015.8494%2018.3714C16.0123%2018.2073%2016.2253%2017.9926%2016.4696%2017.8561C16.6971%2017.7289%2016.8899%2017.6638%2017.1479%2017.6268C17.3406%2017.5993%2017.5257%2017.613%2017.6553%2017.6255C17.7907%2017.6386%2017.9572%2017.661%2018.1419%2017.6858L18.1598%2017.6882C18.3575%2017.7148%2018.5597%2017.7286%2018.7656%2017.7286C21.2474%2017.7286%2023.2594%2015.7167%2023.2594%2013.2348C23.2594%2010.753%2021.2474%208.74104%2018.7656%208.74104ZM17.7286%2013.2348C17.7286%2012.6621%2018.1929%2012.1978%2018.7656%2012.1978H18.7748C19.3475%2012.1978%2019.8118%2012.6621%2019.8118%2013.2348C19.8118%2013.8076%2019.3475%2014.2718%2018.7748%2014.2718H18.7656C18.1929%2014.2718%2017.7286%2013.8076%2017.7286%2013.2348Z'%20fill='url(%23paint0_linear_714_605)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_714_605'%20x1='6.66675'%20y1='16.0003'%20x2='25.3334'%20y2='16.0003'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2375FFE9'/%3e%3cstop%20offset='1'%20stop-color='%23B2FF6D'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", pe = "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", we = "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", et = "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";
4
- function ie(n) {
5
- "@babel/helpers - typeof";
6
- return ie = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
7
- return typeof e;
8
- } : function(e) {
9
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
10
- }, ie(n);
11
- }
12
- function G(n) {
13
- if (n === null || n === !0 || n === !1)
14
- return NaN;
15
- var e = Number(n);
16
- return isNaN(e) ? e : e < 0 ? Math.ceil(e) : Math.floor(e);
17
- }
18
- function S(n, e) {
19
- if (e.length < n)
20
- throw new TypeError(n + " argument" + (n > 1 ? "s" : "") + " required, but only " + e.length + " present");
21
- }
22
- function Y(n) {
23
- S(1, arguments);
24
- var e = Object.prototype.toString.call(n);
25
- return n instanceof Date || ie(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));
26
- }
27
- function tt(n, e) {
28
- S(2, arguments);
29
- var t = Y(n).getTime(), r = G(e);
30
- return new Date(t + r);
31
- }
32
- var nt = {};
33
- function le() {
34
- return nt;
35
- }
36
- function rt(n) {
37
- var e = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()));
38
- return e.setUTCFullYear(n.getFullYear()), n.getTime() - e.getTime();
39
- }
40
- function at(n) {
41
- return S(1, arguments), n instanceof Date || ie(n) === "object" && Object.prototype.toString.call(n) === "[object Date]";
42
- }
43
- function it(n) {
44
- if (S(1, arguments), !at(n) && typeof n != "number")
45
- return !1;
46
- var e = Y(n);
47
- return !isNaN(Number(e));
48
- }
49
- function ot(n, e) {
50
- S(2, arguments);
51
- var t = G(e);
52
- return tt(n, -t);
53
- }
54
- var st = 864e5;
55
- function lt(n) {
56
- S(1, arguments);
57
- var e = Y(n), t = e.getTime();
58
- e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
59
- var r = e.getTime(), a = t - r;
60
- return Math.floor(a / st) + 1;
61
- }
62
- function oe(n) {
63
- S(1, arguments);
64
- var e = 1, t = Y(n), r = t.getUTCDay(), a = (r < e ? 7 : 0) + r - e;
65
- return t.setUTCDate(t.getUTCDate() - a), t.setUTCHours(0, 0, 0, 0), t;
66
- }
67
- function Le(n) {
68
- S(1, arguments);
69
- var e = Y(n), t = e.getUTCFullYear(), r = /* @__PURE__ */ new Date(0);
70
- r.setUTCFullYear(t + 1, 0, 4), r.setUTCHours(0, 0, 0, 0);
71
- var a = oe(r), i = /* @__PURE__ */ new Date(0);
72
- i.setUTCFullYear(t, 0, 4), i.setUTCHours(0, 0, 0, 0);
73
- var o = oe(i);
74
- return e.getTime() >= a.getTime() ? t + 1 : e.getTime() >= o.getTime() ? t : t - 1;
75
- }
76
- function ut(n) {
77
- S(1, arguments);
78
- var e = Le(n), t = /* @__PURE__ */ new Date(0);
79
- t.setUTCFullYear(e, 0, 4), t.setUTCHours(0, 0, 0, 0);
80
- var r = oe(t);
81
- return r;
82
- }
83
- var ct = 6048e5;
84
- function dt(n) {
85
- S(1, arguments);
86
- var e = Y(n), t = oe(e).getTime() - ut(e).getTime();
87
- return Math.round(t / ct) + 1;
88
- }
89
- function se(n, e) {
90
- var t, r, a, i, o, l, c, s;
91
- S(1, arguments);
92
- var m = le(), u = G((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 : m.weekStartsOn) !== null && r !== void 0 ? r : (c = m.locale) === null || c === void 0 || (s = c.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && t !== void 0 ? t : 0);
93
- if (!(u >= 0 && u <= 6))
94
- throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
95
- var g = Y(n), d = g.getUTCDay(), v = (d < u ? 7 : 0) + d - u;
96
- return g.setUTCDate(g.getUTCDate() - v), g.setUTCHours(0, 0, 0, 0), g;
97
- }
98
- function Ee(n, e) {
99
- var t, r, a, i, o, l, c, s;
100
- S(1, arguments);
101
- var m = Y(n), u = m.getUTCFullYear(), g = le(), d = G((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 : (c = g.locale) === null || c === void 0 || (s = c.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
102
- if (!(d >= 1 && d <= 7))
103
- throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
104
- var v = /* @__PURE__ */ new Date(0);
105
- v.setUTCFullYear(u + 1, 0, d), v.setUTCHours(0, 0, 0, 0);
106
- var _ = se(v, e), k = /* @__PURE__ */ new Date(0);
107
- k.setUTCFullYear(u, 0, d), k.setUTCHours(0, 0, 0, 0);
108
- var x = se(k, e);
109
- return m.getTime() >= _.getTime() ? u + 1 : m.getTime() >= x.getTime() ? u : u - 1;
110
- }
111
- function ft(n, e) {
112
- var t, r, a, i, o, l, c, s;
113
- S(1, arguments);
114
- var m = le(), u = G((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 : m.firstWeekContainsDate) !== null && r !== void 0 ? r : (c = m.locale) === null || c === void 0 || (s = c.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), g = Ee(n, e), d = /* @__PURE__ */ new Date(0);
115
- d.setUTCFullYear(g, 0, u), d.setUTCHours(0, 0, 0, 0);
116
- var v = se(d, e);
117
- return v;
118
- }
119
- var mt = 6048e5;
120
- function ht(n, e) {
121
- S(1, arguments);
122
- var t = Y(n), r = se(t, e).getTime() - ft(t, e).getTime();
123
- return Math.round(r / mt) + 1;
124
- }
125
- function y(n, e) {
126
- for (var t = n < 0 ? "-" : "", r = Math.abs(n).toString(); r.length < e; )
127
- r = "0" + r;
128
- return t + r;
129
- }
130
- var R = {
131
- // Year
132
- y: function(e, t) {
133
- var r = e.getUTCFullYear(), a = r > 0 ? r : 1 - r;
134
- return y(t === "yy" ? a % 100 : a, t.length);
135
- },
136
- // Month
137
- M: function(e, t) {
138
- var r = e.getUTCMonth();
139
- return t === "M" ? String(r + 1) : y(r + 1, 2);
140
- },
141
- // Day of the month
142
- d: function(e, t) {
143
- return y(e.getUTCDate(), t.length);
144
- },
145
- // AM or PM
146
- a: function(e, t) {
147
- var r = e.getUTCHours() / 12 >= 1 ? "pm" : "am";
148
- switch (t) {
149
- case "a":
150
- case "aa":
151
- return r.toUpperCase();
152
- case "aaa":
153
- return r;
154
- case "aaaaa":
155
- return r[0];
156
- case "aaaa":
157
- default:
158
- return r === "am" ? "a.m." : "p.m.";
159
- }
160
- },
161
- // Hour [1-12]
162
- h: function(e, t) {
163
- return y(e.getUTCHours() % 12 || 12, t.length);
164
- },
165
- // Hour [0-23]
166
- H: function(e, t) {
167
- return y(e.getUTCHours(), t.length);
168
- },
169
- // Minute
170
- m: function(e, t) {
171
- return y(e.getUTCMinutes(), t.length);
172
- },
173
- // Second
174
- s: function(e, t) {
175
- return y(e.getUTCSeconds(), t.length);
176
- },
177
- // Fraction of second
178
- S: function(e, t) {
179
- var r = t.length, a = e.getUTCMilliseconds(), i = Math.floor(a * Math.pow(10, r - 3));
180
- return y(i, t.length);
181
- }
182
- }, X = {
183
- midnight: "midnight",
184
- noon: "noon",
185
- morning: "morning",
186
- afternoon: "afternoon",
187
- evening: "evening",
188
- night: "night"
189
- }, gt = {
190
- // Era
191
- G: function(e, t, r) {
192
- var a = e.getUTCFullYear() > 0 ? 1 : 0;
193
- switch (t) {
194
- case "G":
195
- case "GG":
196
- case "GGG":
197
- return r.era(a, {
198
- width: "abbreviated"
199
- });
200
- case "GGGGG":
201
- return r.era(a, {
202
- width: "narrow"
203
- });
204
- case "GGGG":
205
- default:
206
- return r.era(a, {
207
- width: "wide"
208
- });
209
- }
210
- },
211
- // Year
212
- y: function(e, t, r) {
213
- if (t === "yo") {
214
- var a = e.getUTCFullYear(), i = a > 0 ? a : 1 - a;
215
- return r.ordinalNumber(i, {
216
- unit: "year"
217
- });
218
- }
219
- return R.y(e, t);
220
- },
221
- // Local week-numbering year
222
- Y: function(e, t, r, a) {
223
- var i = Ee(e, a), o = i > 0 ? i : 1 - i;
224
- if (t === "YY") {
225
- var l = o % 100;
226
- return y(l, 2);
227
- }
228
- return t === "Yo" ? r.ordinalNumber(o, {
229
- unit: "year"
230
- }) : y(o, t.length);
231
- },
232
- // ISO week-numbering year
233
- R: function(e, t) {
234
- var r = Le(e);
235
- return y(r, t.length);
236
- },
237
- // Extended year. This is a single number designating the year of this calendar system.
238
- // The main difference between `y` and `u` localizers are B.C. years:
239
- // | Year | `y` | `u` |
240
- // |------|-----|-----|
241
- // | AC 1 | 1 | 1 |
242
- // | BC 1 | 1 | 0 |
243
- // | BC 2 | 2 | -1 |
244
- // Also `yy` always returns the last two digits of a year,
245
- // while `uu` pads single digit years to 2 characters and returns other years unchanged.
246
- u: function(e, t) {
247
- var r = e.getUTCFullYear();
248
- return y(r, t.length);
249
- },
250
- // Quarter
251
- Q: function(e, t, r) {
252
- var a = Math.ceil((e.getUTCMonth() + 1) / 3);
253
- switch (t) {
254
- case "Q":
255
- return String(a);
256
- case "QQ":
257
- return y(a, 2);
258
- case "Qo":
259
- return r.ordinalNumber(a, {
260
- unit: "quarter"
261
- });
262
- case "QQQ":
263
- return r.quarter(a, {
264
- width: "abbreviated",
265
- context: "formatting"
266
- });
267
- case "QQQQQ":
268
- return r.quarter(a, {
269
- width: "narrow",
270
- context: "formatting"
271
- });
272
- case "QQQQ":
273
- default:
274
- return r.quarter(a, {
275
- width: "wide",
276
- context: "formatting"
277
- });
278
- }
279
- },
280
- // Stand-alone quarter
281
- q: function(e, t, r) {
282
- var a = Math.ceil((e.getUTCMonth() + 1) / 3);
283
- switch (t) {
284
- case "q":
285
- return String(a);
286
- case "qq":
287
- return y(a, 2);
288
- case "qo":
289
- return r.ordinalNumber(a, {
290
- unit: "quarter"
291
- });
292
- case "qqq":
293
- return r.quarter(a, {
294
- width: "abbreviated",
295
- context: "standalone"
296
- });
297
- case "qqqqq":
298
- return r.quarter(a, {
299
- width: "narrow",
300
- context: "standalone"
301
- });
302
- case "qqqq":
303
- default:
304
- return r.quarter(a, {
305
- width: "wide",
306
- context: "standalone"
307
- });
308
- }
309
- },
310
- // Month
311
- M: function(e, t, r) {
312
- var a = e.getUTCMonth();
313
- switch (t) {
314
- case "M":
315
- case "MM":
316
- return R.M(e, t);
317
- case "Mo":
318
- return r.ordinalNumber(a + 1, {
319
- unit: "month"
320
- });
321
- case "MMM":
322
- return r.month(a, {
323
- width: "abbreviated",
324
- context: "formatting"
325
- });
326
- case "MMMMM":
327
- return r.month(a, {
328
- width: "narrow",
329
- context: "formatting"
330
- });
331
- case "MMMM":
332
- default:
333
- return r.month(a, {
334
- width: "wide",
335
- context: "formatting"
336
- });
337
- }
338
- },
339
- // Stand-alone month
340
- L: function(e, t, r) {
341
- var a = e.getUTCMonth();
342
- switch (t) {
343
- case "L":
344
- return String(a + 1);
345
- case "LL":
346
- return y(a + 1, 2);
347
- case "Lo":
348
- return r.ordinalNumber(a + 1, {
349
- unit: "month"
350
- });
351
- case "LLL":
352
- return r.month(a, {
353
- width: "abbreviated",
354
- context: "standalone"
355
- });
356
- case "LLLLL":
357
- return r.month(a, {
358
- width: "narrow",
359
- context: "standalone"
360
- });
361
- case "LLLL":
362
- default:
363
- return r.month(a, {
364
- width: "wide",
365
- context: "standalone"
366
- });
367
- }
368
- },
369
- // Local week of year
370
- w: function(e, t, r, a) {
371
- var i = ht(e, a);
372
- return t === "wo" ? r.ordinalNumber(i, {
373
- unit: "week"
374
- }) : y(i, t.length);
375
- },
376
- // ISO week of year
377
- I: function(e, t, r) {
378
- var a = dt(e);
379
- return t === "Io" ? r.ordinalNumber(a, {
380
- unit: "week"
381
- }) : y(a, t.length);
382
- },
383
- // Day of the month
384
- d: function(e, t, r) {
385
- return t === "do" ? r.ordinalNumber(e.getUTCDate(), {
386
- unit: "date"
387
- }) : R.d(e, t);
388
- },
389
- // Day of year
390
- D: function(e, t, r) {
391
- var a = lt(e);
392
- return t === "Do" ? r.ordinalNumber(a, {
393
- unit: "dayOfYear"
394
- }) : y(a, t.length);
395
- },
396
- // Day of week
397
- E: function(e, t, r) {
398
- var a = e.getUTCDay();
399
- switch (t) {
400
- case "E":
401
- case "EE":
402
- case "EEE":
403
- return r.day(a, {
404
- width: "abbreviated",
405
- context: "formatting"
406
- });
407
- case "EEEEE":
408
- return r.day(a, {
409
- width: "narrow",
410
- context: "formatting"
411
- });
412
- case "EEEEEE":
413
- return r.day(a, {
414
- width: "short",
415
- context: "formatting"
416
- });
417
- case "EEEE":
418
- default:
419
- return r.day(a, {
420
- width: "wide",
421
- context: "formatting"
422
- });
423
- }
424
- },
425
- // Local day of week
426
- e: function(e, t, r, a) {
427
- var i = e.getUTCDay(), o = (i - a.weekStartsOn + 8) % 7 || 7;
428
- switch (t) {
429
- case "e":
430
- return String(o);
431
- case "ee":
432
- return y(o, 2);
433
- case "eo":
434
- return r.ordinalNumber(o, {
435
- unit: "day"
436
- });
437
- case "eee":
438
- return r.day(i, {
439
- width: "abbreviated",
440
- context: "formatting"
441
- });
442
- case "eeeee":
443
- return r.day(i, {
444
- width: "narrow",
445
- context: "formatting"
446
- });
447
- case "eeeeee":
448
- return r.day(i, {
449
- width: "short",
450
- context: "formatting"
451
- });
452
- case "eeee":
453
- default:
454
- return r.day(i, {
455
- width: "wide",
456
- context: "formatting"
457
- });
458
- }
459
- },
460
- // Stand-alone local day of week
461
- c: function(e, t, r, a) {
462
- var i = e.getUTCDay(), o = (i - a.weekStartsOn + 8) % 7 || 7;
463
- switch (t) {
464
- case "c":
465
- return String(o);
466
- case "cc":
467
- return y(o, t.length);
468
- case "co":
469
- return r.ordinalNumber(o, {
470
- unit: "day"
471
- });
472
- case "ccc":
473
- return r.day(i, {
474
- width: "abbreviated",
475
- context: "standalone"
476
- });
477
- case "ccccc":
478
- return r.day(i, {
479
- width: "narrow",
480
- context: "standalone"
481
- });
482
- case "cccccc":
483
- return r.day(i, {
484
- width: "short",
485
- context: "standalone"
486
- });
487
- case "cccc":
488
- default:
489
- return r.day(i, {
490
- width: "wide",
491
- context: "standalone"
492
- });
493
- }
494
- },
495
- // ISO day of week
496
- i: function(e, t, r) {
497
- var a = e.getUTCDay(), i = a === 0 ? 7 : a;
498
- switch (t) {
499
- case "i":
500
- return String(i);
501
- case "ii":
502
- return y(i, t.length);
503
- case "io":
504
- return r.ordinalNumber(i, {
505
- unit: "day"
506
- });
507
- case "iii":
508
- return r.day(a, {
509
- width: "abbreviated",
510
- context: "formatting"
511
- });
512
- case "iiiii":
513
- return r.day(a, {
514
- width: "narrow",
515
- context: "formatting"
516
- });
517
- case "iiiiii":
518
- return r.day(a, {
519
- width: "short",
520
- context: "formatting"
521
- });
522
- case "iiii":
523
- default:
524
- return r.day(a, {
525
- width: "wide",
526
- context: "formatting"
527
- });
528
- }
529
- },
530
- // AM or PM
531
- a: function(e, t, r) {
532
- var a = e.getUTCHours(), i = a / 12 >= 1 ? "pm" : "am";
533
- switch (t) {
534
- case "a":
535
- case "aa":
536
- return r.dayPeriod(i, {
537
- width: "abbreviated",
538
- context: "formatting"
539
- });
540
- case "aaa":
541
- return r.dayPeriod(i, {
542
- width: "abbreviated",
543
- context: "formatting"
544
- }).toLowerCase();
545
- case "aaaaa":
546
- return r.dayPeriod(i, {
547
- width: "narrow",
548
- context: "formatting"
549
- });
550
- case "aaaa":
551
- default:
552
- return r.dayPeriod(i, {
553
- width: "wide",
554
- context: "formatting"
555
- });
556
- }
557
- },
558
- // AM, PM, midnight, noon
559
- b: function(e, t, r) {
560
- var a = e.getUTCHours(), i;
561
- switch (a === 12 ? i = X.noon : a === 0 ? i = X.midnight : i = a / 12 >= 1 ? "pm" : "am", t) {
562
- case "b":
563
- case "bb":
564
- return r.dayPeriod(i, {
565
- width: "abbreviated",
566
- context: "formatting"
567
- });
568
- case "bbb":
569
- return r.dayPeriod(i, {
570
- width: "abbreviated",
571
- context: "formatting"
572
- }).toLowerCase();
573
- case "bbbbb":
574
- return r.dayPeriod(i, {
575
- width: "narrow",
576
- context: "formatting"
577
- });
578
- case "bbbb":
579
- default:
580
- return r.dayPeriod(i, {
581
- width: "wide",
582
- context: "formatting"
583
- });
584
- }
585
- },
586
- // in the morning, in the afternoon, in the evening, at night
587
- B: function(e, t, r) {
588
- var a = e.getUTCHours(), i;
589
- switch (a >= 17 ? i = X.evening : a >= 12 ? i = X.afternoon : a >= 4 ? i = X.morning : i = X.night, t) {
590
- case "B":
591
- case "BB":
592
- case "BBB":
593
- return r.dayPeriod(i, {
594
- width: "abbreviated",
595
- context: "formatting"
596
- });
597
- case "BBBBB":
598
- return r.dayPeriod(i, {
599
- width: "narrow",
600
- context: "formatting"
601
- });
602
- case "BBBB":
603
- default:
604
- return r.dayPeriod(i, {
605
- width: "wide",
606
- context: "formatting"
607
- });
608
- }
609
- },
610
- // Hour [1-12]
611
- h: function(e, t, r) {
612
- if (t === "ho") {
613
- var a = e.getUTCHours() % 12;
614
- return a === 0 && (a = 12), r.ordinalNumber(a, {
615
- unit: "hour"
616
- });
617
- }
618
- return R.h(e, t);
619
- },
620
- // Hour [0-23]
621
- H: function(e, t, r) {
622
- return t === "Ho" ? r.ordinalNumber(e.getUTCHours(), {
623
- unit: "hour"
624
- }) : R.H(e, t);
625
- },
626
- // Hour [0-11]
627
- K: function(e, t, r) {
628
- var a = e.getUTCHours() % 12;
629
- return t === "Ko" ? r.ordinalNumber(a, {
630
- unit: "hour"
631
- }) : y(a, t.length);
632
- },
633
- // Hour [1-24]
634
- k: function(e, t, r) {
635
- var a = e.getUTCHours();
636
- return a === 0 && (a = 24), t === "ko" ? r.ordinalNumber(a, {
637
- unit: "hour"
638
- }) : y(a, t.length);
639
- },
640
- // Minute
641
- m: function(e, t, r) {
642
- return t === "mo" ? r.ordinalNumber(e.getUTCMinutes(), {
643
- unit: "minute"
644
- }) : R.m(e, t);
645
- },
646
- // Second
647
- s: function(e, t, r) {
648
- return t === "so" ? r.ordinalNumber(e.getUTCSeconds(), {
649
- unit: "second"
650
- }) : R.s(e, t);
651
- },
652
- // Fraction of second
653
- S: function(e, t) {
654
- return R.S(e, t);
655
- },
656
- // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
657
- X: function(e, t, r, a) {
658
- var i = a._originalDate || e, o = i.getTimezoneOffset();
659
- if (o === 0)
660
- return "Z";
661
- switch (t) {
662
- case "X":
663
- return ye(o);
664
- case "XXXX":
665
- case "XX":
666
- return I(o);
667
- case "XXXXX":
668
- case "XXX":
669
- default:
670
- return I(o, ":");
671
- }
672
- },
673
- // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
674
- x: function(e, t, r, a) {
675
- var i = a._originalDate || e, o = i.getTimezoneOffset();
676
- switch (t) {
677
- case "x":
678
- return ye(o);
679
- case "xxxx":
680
- case "xx":
681
- return I(o);
682
- case "xxxxx":
683
- case "xxx":
684
- default:
685
- return I(o, ":");
686
- }
687
- },
688
- // Timezone (GMT)
689
- O: function(e, t, r, a) {
690
- var i = a._originalDate || e, o = i.getTimezoneOffset();
691
- switch (t) {
692
- case "O":
693
- case "OO":
694
- case "OOO":
695
- return "GMT" + be(o, ":");
696
- case "OOOO":
697
- default:
698
- return "GMT" + I(o, ":");
699
- }
700
- },
701
- // Timezone (specific non-location)
702
- z: function(e, t, r, a) {
703
- var i = a._originalDate || e, o = i.getTimezoneOffset();
704
- switch (t) {
705
- case "z":
706
- case "zz":
707
- case "zzz":
708
- return "GMT" + be(o, ":");
709
- case "zzzz":
710
- default:
711
- return "GMT" + I(o, ":");
712
- }
713
- },
714
- // Seconds timestamp
715
- t: function(e, t, r, a) {
716
- var i = a._originalDate || e, o = Math.floor(i.getTime() / 1e3);
717
- return y(o, t.length);
718
- },
719
- // Milliseconds timestamp
720
- T: function(e, t, r, a) {
721
- var i = a._originalDate || e, o = i.getTime();
722
- return y(o, t.length);
723
- }
724
- };
725
- function be(n, e) {
726
- var t = n > 0 ? "-" : "+", r = Math.abs(n), a = Math.floor(r / 60), i = r % 60;
727
- if (i === 0)
728
- return t + String(a);
729
- var o = e;
730
- return t + String(a) + o + y(i, 2);
731
- }
732
- function ye(n, e) {
733
- if (n % 60 === 0) {
734
- var t = n > 0 ? "-" : "+";
735
- return t + y(Math.abs(n) / 60, 2);
736
- }
737
- return I(n, e);
738
- }
739
- function I(n, e) {
740
- var t = e || "", r = n > 0 ? "-" : "+", a = Math.abs(n), i = y(Math.floor(a / 60), 2), o = y(a % 60, 2);
741
- return r + i + t + o;
742
- }
743
- var _e = function(e, t) {
744
- switch (e) {
745
- case "P":
746
- return t.date({
747
- width: "short"
748
- });
749
- case "PP":
750
- return t.date({
751
- width: "medium"
752
- });
753
- case "PPP":
754
- return t.date({
755
- width: "long"
756
- });
757
- case "PPPP":
758
- default:
759
- return t.date({
760
- width: "full"
761
- });
762
- }
763
- }, ze = function(e, t) {
764
- switch (e) {
765
- case "p":
766
- return t.time({
767
- width: "short"
768
- });
769
- case "pp":
770
- return t.time({
771
- width: "medium"
772
- });
773
- case "ppp":
774
- return t.time({
775
- width: "long"
776
- });
777
- case "pppp":
778
- default:
779
- return t.time({
780
- width: "full"
781
- });
782
- }
783
- }, vt = function(e, t) {
784
- var r = e.match(/(P+)(p+)?/) || [], a = r[1], i = r[2];
785
- if (!i)
786
- return _e(e, t);
787
- var o;
788
- switch (a) {
789
- case "P":
790
- o = t.dateTime({
791
- width: "short"
792
- });
793
- break;
794
- case "PP":
795
- o = t.dateTime({
796
- width: "medium"
797
- });
798
- break;
799
- case "PPP":
800
- o = t.dateTime({
801
- width: "long"
802
- });
803
- break;
804
- case "PPPP":
805
- default:
806
- o = t.dateTime({
807
- width: "full"
808
- });
809
- break;
810
- }
811
- return o.replace("{{date}}", _e(a, t)).replace("{{time}}", ze(i, t));
812
- }, pt = {
813
- p: ze,
814
- P: vt
815
- }, wt = ["D", "DD"], bt = ["YY", "YYYY"];
816
- function yt(n) {
817
- return wt.indexOf(n) !== -1;
818
- }
819
- function _t(n) {
820
- return bt.indexOf(n) !== -1;
821
- }
822
- function xe(n, e, t) {
823
- if (n === "YYYY")
824
- 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"));
825
- if (n === "YY")
826
- 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"));
827
- if (n === "D")
828
- 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"));
829
- if (n === "DD")
830
- 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"));
831
- }
832
- var xt = {
833
- lessThanXSeconds: {
834
- one: "less than a second",
835
- other: "less than {{count}} seconds"
836
- },
837
- xSeconds: {
838
- one: "1 second",
839
- other: "{{count}} seconds"
840
- },
841
- halfAMinute: "half a minute",
842
- lessThanXMinutes: {
843
- one: "less than a minute",
844
- other: "less than {{count}} minutes"
845
- },
846
- xMinutes: {
847
- one: "1 minute",
848
- other: "{{count}} minutes"
849
- },
850
- aboutXHours: {
851
- one: "about 1 hour",
852
- other: "about {{count}} hours"
853
- },
854
- xHours: {
855
- one: "1 hour",
856
- other: "{{count}} hours"
857
- },
858
- xDays: {
859
- one: "1 day",
860
- other: "{{count}} days"
861
- },
862
- aboutXWeeks: {
863
- one: "about 1 week",
864
- other: "about {{count}} weeks"
865
- },
866
- xWeeks: {
867
- one: "1 week",
868
- other: "{{count}} weeks"
869
- },
870
- aboutXMonths: {
871
- one: "about 1 month",
872
- other: "about {{count}} months"
873
- },
874
- xMonths: {
875
- one: "1 month",
876
- other: "{{count}} months"
877
- },
878
- aboutXYears: {
879
- one: "about 1 year",
880
- other: "about {{count}} years"
881
- },
882
- xYears: {
883
- one: "1 year",
884
- other: "{{count}} years"
885
- },
886
- overXYears: {
887
- one: "over 1 year",
888
- other: "over {{count}} years"
889
- },
890
- almostXYears: {
891
- one: "almost 1 year",
892
- other: "almost {{count}} years"
893
- }
894
- }, Ct = function(e, t, r) {
895
- var a, i = xt[e];
896
- 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;
897
- };
898
- function de(n) {
899
- return function() {
900
- 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];
901
- return r;
902
- };
903
- }
904
- var kt = {
905
- full: "EEEE, MMMM do, y",
906
- long: "MMMM do, y",
907
- medium: "MMM d, y",
908
- short: "MM/dd/yyyy"
909
- }, Tt = {
910
- full: "h:mm:ss a zzzz",
911
- long: "h:mm:ss a z",
912
- medium: "h:mm:ss a",
913
- short: "h:mm a"
914
- }, Mt = {
915
- full: "{{date}} 'at' {{time}}",
916
- long: "{{date}} 'at' {{time}}",
917
- medium: "{{date}}, {{time}}",
918
- short: "{{date}}, {{time}}"
919
- }, Ot = {
920
- date: de({
921
- formats: kt,
922
- defaultWidth: "full"
923
- }),
924
- time: de({
925
- formats: Tt,
926
- defaultWidth: "full"
927
- }),
928
- dateTime: de({
929
- formats: Mt,
930
- defaultWidth: "full"
931
- })
932
- }, Pt = {
933
- lastWeek: "'last' eeee 'at' p",
934
- yesterday: "'yesterday at' p",
935
- today: "'today at' p",
936
- tomorrow: "'tomorrow at' p",
937
- nextWeek: "eeee 'at' p",
938
- other: "P"
939
- }, Dt = function(e, t, r, a) {
940
- return Pt[e];
941
- };
942
- function K(n) {
943
- return function(e, t) {
944
- var r = t != null && t.context ? String(t.context) : "standalone", a;
945
- if (r === "formatting" && n.formattingValues) {
946
- var i = n.defaultFormattingWidth || n.defaultWidth, o = t != null && t.width ? String(t.width) : i;
947
- a = n.formattingValues[o] || n.formattingValues[i];
948
- } else {
949
- var l = n.defaultWidth, c = t != null && t.width ? String(t.width) : n.defaultWidth;
950
- a = n.values[c] || n.values[l];
951
- }
952
- var s = n.argumentCallback ? n.argumentCallback(e) : e;
953
- return a[s];
954
- };
955
- }
956
- var St = {
957
- narrow: ["B", "A"],
958
- abbreviated: ["BC", "AD"],
959
- wide: ["Before Christ", "Anno Domini"]
960
- }, Wt = {
961
- narrow: ["1", "2", "3", "4"],
962
- abbreviated: ["Q1", "Q2", "Q3", "Q4"],
963
- wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
964
- }, Ut = {
965
- narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
966
- abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
967
- wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
968
- }, Lt = {
969
- narrow: ["S", "M", "T", "W", "T", "F", "S"],
970
- short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
971
- abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
972
- wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
973
- }, Et = {
974
- narrow: {
975
- am: "a",
976
- pm: "p",
977
- midnight: "mi",
978
- noon: "n",
979
- morning: "morning",
980
- afternoon: "afternoon",
981
- evening: "evening",
982
- night: "night"
983
- },
984
- abbreviated: {
985
- am: "AM",
986
- pm: "PM",
987
- midnight: "midnight",
988
- noon: "noon",
989
- morning: "morning",
990
- afternoon: "afternoon",
991
- evening: "evening",
992
- night: "night"
993
- },
994
- wide: {
995
- am: "a.m.",
996
- pm: "p.m.",
997
- midnight: "midnight",
998
- noon: "noon",
999
- morning: "morning",
1000
- afternoon: "afternoon",
1001
- evening: "evening",
1002
- night: "night"
1003
- }
1004
- }, zt = {
1005
- narrow: {
1006
- am: "a",
1007
- pm: "p",
1008
- midnight: "mi",
1009
- noon: "n",
1010
- morning: "in the morning",
1011
- afternoon: "in the afternoon",
1012
- evening: "in the evening",
1013
- night: "at night"
1014
- },
1015
- abbreviated: {
1016
- am: "AM",
1017
- pm: "PM",
1018
- midnight: "midnight",
1019
- noon: "noon",
1020
- morning: "in the morning",
1021
- afternoon: "in the afternoon",
1022
- evening: "in the evening",
1023
- night: "at night"
1024
- },
1025
- wide: {
1026
- am: "a.m.",
1027
- pm: "p.m.",
1028
- midnight: "midnight",
1029
- noon: "noon",
1030
- morning: "in the morning",
1031
- afternoon: "in the afternoon",
1032
- evening: "in the evening",
1033
- night: "at night"
1034
- }
1035
- }, Yt = function(e, t) {
1036
- var r = Number(e), a = r % 100;
1037
- if (a > 20 || a < 10)
1038
- switch (a % 10) {
1039
- case 1:
1040
- return r + "st";
1041
- case 2:
1042
- return r + "nd";
1043
- case 3:
1044
- return r + "rd";
1045
- }
1046
- return r + "th";
1047
- }, Ft = {
1048
- ordinalNumber: Yt,
1049
- era: K({
1050
- values: St,
1051
- defaultWidth: "wide"
1052
- }),
1053
- quarter: K({
1054
- values: Wt,
1055
- defaultWidth: "wide",
1056
- argumentCallback: function(e) {
1057
- return e - 1;
1058
- }
1059
- }),
1060
- month: K({
1061
- values: Ut,
1062
- defaultWidth: "wide"
1063
- }),
1064
- day: K({
1065
- values: Lt,
1066
- defaultWidth: "wide"
1067
- }),
1068
- dayPeriod: K({
1069
- values: Et,
1070
- defaultWidth: "wide",
1071
- formattingValues: zt,
1072
- defaultFormattingWidth: "wide"
1073
- })
1074
- };
1075
- function $(n) {
1076
- return function(e) {
1077
- 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);
1078
- if (!i)
1079
- return null;
1080
- var o = i[0], l = r && n.parsePatterns[r] || n.parsePatterns[n.defaultParseWidth], c = Array.isArray(l) ? Ht(l, function(u) {
1081
- return u.test(o);
1082
- }) : Nt(l, function(u) {
1083
- return u.test(o);
1084
- }), s;
1085
- s = n.valueCallback ? n.valueCallback(c) : c, s = t.valueCallback ? t.valueCallback(s) : s;
1086
- var m = e.slice(o.length);
1087
- return {
1088
- value: s,
1089
- rest: m
1090
- };
1091
- };
1092
- }
1093
- function Nt(n, e) {
1094
- for (var t in n)
1095
- if (n.hasOwnProperty(t) && e(n[t]))
1096
- return t;
1097
- }
1098
- function Ht(n, e) {
1099
- for (var t = 0; t < n.length; t++)
1100
- if (e(n[t]))
1101
- return t;
1102
- }
1103
- function qt(n) {
1104
- return function(e) {
1105
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = e.match(n.matchPattern);
1106
- if (!r)
1107
- return null;
1108
- var a = r[0], i = e.match(n.parsePattern);
1109
- if (!i)
1110
- return null;
1111
- var o = n.valueCallback ? n.valueCallback(i[0]) : i[0];
1112
- o = t.valueCallback ? t.valueCallback(o) : o;
1113
- var l = e.slice(a.length);
1114
- return {
1115
- value: o,
1116
- rest: l
1117
- };
1118
- };
1119
- }
1120
- var Rt = /^(\d+)(th|st|nd|rd)?/i, Bt = /\d+/i, jt = {
1121
- narrow: /^(b|a)/i,
1122
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1123
- wide: /^(before christ|before common era|anno domini|common era)/i
1124
- }, It = {
1125
- any: [/^b/i, /^(a|c)/i]
1126
- }, Gt = {
1127
- narrow: /^[1234]/i,
1128
- abbreviated: /^q[1234]/i,
1129
- wide: /^[1234](th|st|nd|rd)? quarter/i
1130
- }, At = {
1131
- any: [/1/i, /2/i, /3/i, /4/i]
1132
- }, Qt = {
1133
- narrow: /^[jfmasond]/i,
1134
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1135
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1136
- }, Xt = {
1137
- 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],
1138
- 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]
1139
- }, Vt = {
1140
- narrow: /^[smtwf]/i,
1141
- short: /^(su|mo|tu|we|th|fr|sa)/i,
1142
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1143
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1144
- }, Zt = {
1145
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1146
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1147
- }, Jt = {
1148
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1149
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1150
- }, Kt = {
1151
- any: {
1152
- am: /^a/i,
1153
- pm: /^p/i,
1154
- midnight: /^mi/i,
1155
- noon: /^no/i,
1156
- morning: /morning/i,
1157
- afternoon: /afternoon/i,
1158
- evening: /evening/i,
1159
- night: /night/i
1160
- }
1161
- }, $t = {
1162
- ordinalNumber: qt({
1163
- matchPattern: Rt,
1164
- parsePattern: Bt,
1165
- valueCallback: function(e) {
1166
- return parseInt(e, 10);
1167
- }
1168
- }),
1169
- era: $({
1170
- matchPatterns: jt,
1171
- defaultMatchWidth: "wide",
1172
- parsePatterns: It,
1173
- defaultParseWidth: "any"
1174
- }),
1175
- quarter: $({
1176
- matchPatterns: Gt,
1177
- defaultMatchWidth: "wide",
1178
- parsePatterns: At,
1179
- defaultParseWidth: "any",
1180
- valueCallback: function(e) {
1181
- return e + 1;
1182
- }
1183
- }),
1184
- month: $({
1185
- matchPatterns: Qt,
1186
- defaultMatchWidth: "wide",
1187
- parsePatterns: Xt,
1188
- defaultParseWidth: "any"
1189
- }),
1190
- day: $({
1191
- matchPatterns: Vt,
1192
- defaultMatchWidth: "wide",
1193
- parsePatterns: Zt,
1194
- defaultParseWidth: "any"
1195
- }),
1196
- dayPeriod: $({
1197
- matchPatterns: Jt,
1198
- defaultMatchWidth: "any",
1199
- parsePatterns: Kt,
1200
- defaultParseWidth: "any"
1201
- })
1202
- }, en = {
1203
- code: "en-US",
1204
- formatDistance: Ct,
1205
- formatLong: Ot,
1206
- formatRelative: Dt,
1207
- localize: Ft,
1208
- match: $t,
1209
- options: {
1210
- weekStartsOn: 0,
1211
- firstWeekContainsDate: 1
1212
- }
1213
- }, tn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, nn = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, rn = /^'([^]*?)'?$/, an = /''/g, on = /[a-zA-Z]/;
1214
- function sn(n, e, t) {
1215
- var r, a, i, o, l, c, s, m, u, g, d, v, _, k;
1216
- S(2, arguments);
1217
- var x = String(e), D = le(), P = (r = (a = void 0) !== null && a !== void 0 ? a : D.locale) !== null && r !== void 0 ? r : en, H = G((i = (o = (l = (c = void 0) !== null && c !== void 0 ? c : void 0) !== null && l !== void 0 ? l : D.firstWeekContainsDate) !== null && o !== void 0 ? o : (s = D.locale) === null || s === void 0 || (m = s.options) === null || m === void 0 ? void 0 : m.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
1218
- if (!(H >= 1 && H <= 7))
1219
- throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
1220
- var F = G((u = (g = (d = (v = void 0) !== null && v !== void 0 ? v : void 0) !== null && d !== void 0 ? d : D.weekStartsOn) !== null && g !== void 0 ? g : (_ = D.locale) === null || _ === void 0 || (k = _.options) === null || k === void 0 ? void 0 : k.weekStartsOn) !== null && u !== void 0 ? u : 0);
1221
- if (!(F >= 0 && F <= 6))
1222
- throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
1223
- if (!P.localize)
1224
- throw new RangeError("locale must contain localize property");
1225
- if (!P.formatLong)
1226
- throw new RangeError("locale must contain formatLong property");
1227
- var N = Y(n);
1228
- if (!it(N))
1229
- throw new RangeError("Invalid time value");
1230
- var M = rt(N), A = ot(N, M), q = {
1231
- firstWeekContainsDate: H,
1232
- weekStartsOn: F,
1233
- locale: P,
1234
- _originalDate: N
1235
- }, W = x.match(nn).map(function(b) {
1236
- var O = b[0];
1237
- if (O === "p" || O === "P") {
1238
- var B = pt[O];
1239
- return B(b, P.formatLong);
1240
- }
1241
- return b;
1242
- }).join("").match(tn).map(function(b) {
1243
- if (b === "''")
1244
- return "'";
1245
- var O = b[0];
1246
- if (O === "'")
1247
- return ln(b);
1248
- var B = gt[O];
1249
- if (B)
1250
- return _t(b) && xe(b, e, String(n)), yt(b) && xe(b, e, String(n)), B(A, b, P.localize, q);
1251
- if (O.match(on))
1252
- throw new RangeError("Format string contains an unescaped latin alphabet character `" + O + "`");
1253
- return b;
1254
- }).join("");
1255
- return W;
1256
- }
1257
- function ln(n) {
1258
- var e = n.match(rn);
1259
- return e ? e[1].replace(an, "'") : n;
1260
- }
1261
- var ne = /* @__PURE__ */ ((n) => (n.lotteries = "lotteries", n.outcome = "outcome", n.draw = "draw", n))(ne || {}), V = /* @__PURE__ */ ((n) => (n.en = "en", n.default = "*", n))(V || {});
1262
- const un = async (n) => {
1263
- const { path: e, params: t = {}, options: r = {} } = n, a = new URL(e);
1264
- return Object.keys(t).map((i) => {
1265
- a.searchParams.append(i, t[i]);
1266
- }), await cn(a, r);
1267
- }, cn = async (n, e = {}) => {
1268
- let t;
1269
- try {
1270
- t = await fetch(n, e), t = await t.text(), t = JSON.parse(t);
1271
- } catch (r) {
1272
- throw new Error(r.message);
1273
- }
1274
- return t;
1275
- }, Ce = async (n, e, t) => {
1276
- const { session: r } = t, a = {
1277
- headers: {
1278
- "Content-Type": "application/json",
1279
- accept: "text/plain",
1280
- ...r ? { "x-SessionId": r } : {}
1281
- }
1282
- }, o = {
1283
- [ne.lotteries]: () => ({
1284
- path: "/wof/lotteries",
1285
- params: {
1286
- filter: "Types[]=mysteryChest"
1287
- },
1288
- options: a
1289
- }),
1290
- [ne.outcome]: () => {
1291
- const { id: l } = t;
1292
- return {
1293
- path: `/wof/outcome/${l}`,
1294
- params: {
1295
- filter: "Types[]=mysteryChest"
1296
- },
1297
- options: a
1298
- };
1299
- }
1300
- }[n]();
1301
- return o.path = e + "/v1" + o.path, await un(o);
1302
- }, ke = {
1303
- lotteries: async (n, e) => (await Ce(ne.lotteries, n, { session: e }))?.items || [],
1304
- outcome: async (n, e, t) => await Ce(ne.outcome, n, { session: e, id: t })
1305
- }, dn = (n) => n?.current?.remainingTimes > 0 && n?.next;
1306
- function fn(n, e) {
1307
- Je(n, e);
1308
- }
1309
- function mn(n) {
1310
- Ze.set(n);
1311
- }
1312
- if (typeof window < "u") {
1313
- let n = function(e) {
1314
- return function(...t) {
1315
- try {
1316
- return e.apply(this, t);
1317
- } catch (r) {
1318
- if (r instanceof DOMException && r.message.includes("has already been used with this registry") || r.message.includes("Cannot define multiple custom elements with the same tag name"))
1319
- return !1;
1320
- throw r;
1321
- }
1322
- };
1323
- };
1324
- customElements.define = n(customElements.define), import("./GeneralAnimationLoading-CwTM1J-d.js").then(({ default: e }) => {
1325
- !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", e.element);
1326
- });
1327
- }
1328
- function hn(n) {
1329
- Ge(n, "svelte-1h0tjui", `.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 .chests-header__title{font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500);line-height:14px}.mobile .chests-tabs{margin:20px 0}.mobile .chests-tabs__container{border-bottom:1px solid var(--emw--color-secondary, #729787)}.mobile .chests-tabs__tab{font-size:var(--emw--font-size-x-small, 12px);line-height:15px}.mobile .chests-tabs__tab.active{border-bottom:1px solid}.mobile .chests-list{gap:16px}.mobile .chests-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:16px;height:56px}.mobile .chests-list__item__keys{gap:5px;font-size:var(--emw--font-size-medium, 16px)}.mobile .chests-rules{gap:24px}.mobile .chests-rules__description{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .chests-rules__terms{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-x-small, 12px)}.mobile .chests-rules__prize-title{font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .chests-rules__list{padding-inline-start:15px;margin:5px 0 0}.mobile .chests-rules__list__item{margin-bottom:5px;font-size:var(--emw--font-size-x-small, 12px);line-height:24px}.mobile .chests-empty{margin-top:50px;font-size:var(--emw--font-size-x-small, 12px)}.mobile .chests-history__title{font-size:var(--emw--font-size-x-small, 12px);line-height:14px;margin-bottom:12px}.mobile .chests-history__list{margin-bottom:32px}.mobile .chests-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 .chests-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% 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>') no-repeat}.icon-button.close{background:center/100% 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>') no-repeat}.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}.chests-header{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 8px}.chests-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}.chests-tabs{margin:28px 0}.chests-tabs__container{display:flex;position:relative;border-bottom:2px solid var(--emw--color-secondary, #729787)}.chests-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}.chests-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}.chests-list{max-height:85%;overflow:auto;gap:24px;display:flex;flex-wrap:wrap}.chests-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: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}.chests-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}.chests-rules{display:flex;flex-flow:column;gap:40px;color:var(--emw--color-primary-variant, #a9ccbe)}.chests-rules__description{font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-medium, 16px);line-height:32px}.chests-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}.chests-rules__terms .arrow-icon{width:14px;height:14px;background:center/100% 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}.chests-rules__prize-title{color:#ffffff;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-medium, 16px);line-height:18px}.chests-rules__list{padding-inline-start:25px;margin:15px 0 0}.chests-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}.chests-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)}.chests-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}.chests-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}.chests-history__list{margin-bottom:40px}.chests-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}.chests-history__list__item .index{margin-right:20px}.chests-history__list__item .name{flex-grow:1;margin:0;display:flex;gap:6px}.chests-history__list__item .name img{width:18px;height:18px}`);
1330
- }
1331
- function Te(n, e, t) {
1332
- const r = n.slice();
1333
- return r[34] = e[t], r;
1334
- }
1335
- function Me(n, e, t) {
1336
- const r = n.slice();
1337
- return r[37] = e[t], r[39] = t, r;
1338
- }
1339
- function Oe(n, e, t) {
1340
- const r = n.slice();
1341
- return r[31] = e[t], r[33] = t, r;
1342
- }
1343
- function Pe(n) {
1344
- let e, t, r, a, i, o, l;
1345
- return {
1346
- c() {
1347
- e = w("div"), t = w("div"), r = w("button"), a = T(), i = w("span"), i.textContent = "Open Mystery Chest and find your reward!", p(r, "class", "icon-button close"), p(t, "class", "tooltip"), p(e, "class", "tooltip-backdrop");
1348
- },
1349
- m(c, s) {
1350
- L(c, e, s), f(e, t), f(t, r), f(t, a), f(t, i), o || (l = z(
1351
- r,
1352
- "click",
1353
- /*showHideToolip*/
1354
- n[12]
1355
- ), o = !0);
1356
- },
1357
- p: Z,
1358
- d(c) {
1359
- c && U(e), o = !1, l();
1360
- }
1361
- };
1362
- }
1363
- function gn(n) {
1364
- let e, t, r, a, i, o, l, c;
1365
- return {
1366
- c() {
1367
- e = w("div"), t = w("span"), t.textContent = `Mystery Chest is a particularly interesting game, will bring you a lot of surprises; When you obtained the
1368
- Mystery Chest, means you got a key to open the Chest, and if you are lucky, you can get the surprise prize.`, r = T(), a = w("button"), a.innerHTML = '<span>Terms&amp;Conditions link</span> <span class="arrow-icon"></span>', i = T(), o = w("section"), o.innerHTML = '<span class="chests-rules__prize-title">Prize agenda</span> <ul class="chests-rules__list"><li class="chests-rules__list__item">Tournament ticket</li> <li class="chests-rules__list__item">Free Spins</li> <li class="chests-rules__list__item">Bonus Money</li> <li class="chests-rules__list__item">Loyalty Points&amp;Coins</li> <li class="chests-rules__list__item">LuckyWheel</li> <li class="chests-rules__list__item">Mystery Chest</li> <li class="chests-rules__list__item">Custom Rewards</li></ul>', p(t, "class", "chests-rules__description"), p(a, "class", "chests-rules__terms"), p(e, "class", "chests-rules");
1369
- },
1370
- m(s, m) {
1371
- L(s, e, m), f(e, t), f(e, r), f(e, a), f(e, i), f(e, o), l || (c = z(
1372
- a,
1373
- "click",
1374
- /*openTermsAndCondidionsLink*/
1375
- n[16]
1376
- ), l = !0);
1377
- },
1378
- p: Z,
1379
- d(s) {
1380
- s && U(e), l = !1, c();
1381
- }
1382
- };
1383
- }
1384
- function vn(n) {
1385
- let e;
1386
- function t(i, o) {
1387
- return (
1388
- /*mysteryChestsHistory*/
1389
- i[9].length > 0 ? yn : bn
1390
- );
1391
- }
1392
- let r = t(n), a = r(n);
1393
- return {
1394
- c() {
1395
- a.c(), e = me();
1396
- },
1397
- m(i, o) {
1398
- a.m(i, o), L(i, e, o);
1399
- },
1400
- p(i, o) {
1401
- r === (r = t(i)) && a ? a.p(i, o) : (a.d(1), a = r(i), a && (a.c(), a.m(e.parentNode, e)));
1402
- },
1403
- d(i) {
1404
- i && U(e), a.d(i);
1405
- }
1406
- };
1407
- }
1408
- function pn(n) {
1409
- let e;
1410
- function t(i, o) {
1411
- return (
1412
- /*mysteryChests*/
1413
- i[7].length > 0 ? xn : _n
1414
- );
1415
- }
1416
- let r = t(n), a = r(n);
1417
- return {
1418
- c() {
1419
- a.c(), e = me();
1420
- },
1421
- m(i, o) {
1422
- a.m(i, o), L(i, e, o);
1423
- },
1424
- p(i, o) {
1425
- r === (r = t(i)) && a ? a.p(i, o) : (a.d(1), a = r(i), a && (a.c(), a.m(e.parentNode, e)));
1426
- },
1427
- d(i) {
1428
- i && U(e), a.d(i);
1429
- }
1430
- };
1431
- }
1432
- function wn(n) {
1433
- let e;
1434
- return {
1435
- c() {
1436
- e = w("general-animation-loading"), ae(
1437
- e,
1438
- "clientstyling",
1439
- /*clientstyling*/
1440
- n[1]
1441
- ), ae(
1442
- e,
1443
- "clientstylingurl",
1444
- /*clientstylingurl*/
1445
- n[2]
1446
- );
1447
- },
1448
- m(t, r) {
1449
- L(t, e, r);
1450
- },
1451
- p(t, r) {
1452
- r[0] & /*clientstyling*/
1453
- 2 && ae(
1454
- e,
1455
- "clientstyling",
1456
- /*clientstyling*/
1457
- t[1]
1458
- ), r[0] & /*clientstylingurl*/
1459
- 4 && ae(
1460
- e,
1461
- "clientstylingurl",
1462
- /*clientstylingurl*/
1463
- t[2]
1464
- );
1465
- },
1466
- d(t) {
1467
- t && U(e);
1468
- }
1469
- };
1470
- }
1471
- function bn(n) {
1472
- let e;
1473
- return {
1474
- c() {
1475
- e = w("div"), e.textContent = "There is no history yet", p(e, "class", "chests-empty");
1476
- },
1477
- m(t, r) {
1478
- L(t, e, r);
1479
- },
1480
- p: Z,
1481
- d(t) {
1482
- t && U(e);
1483
- }
1484
- };
1485
- }
1486
- function yn(n) {
1487
- let e, t = J(
1488
- /*mysteryChestsHistory*/
1489
- n[9]
1490
- ), r = [];
1491
- for (let a = 0; a < t.length; a += 1)
1492
- r[a] = We(Te(n, t, a));
1493
- return {
1494
- c() {
1495
- for (let a = 0; a < r.length; a += 1)
1496
- r[a].c();
1497
- e = me();
1498
- },
1499
- m(a, i) {
1500
- for (let o = 0; o < r.length; o += 1)
1501
- r[o] && r[o].m(a, i);
1502
- L(a, e, i);
1503
- },
1504
- p(a, i) {
1505
- if (i[0] & /*showMore, mysteryChestsHistory*/
1506
- 8704) {
1507
- t = J(
1508
- /*mysteryChestsHistory*/
1509
- a[9]
1510
- );
1511
- let o;
1512
- for (o = 0; o < t.length; o += 1) {
1513
- const l = Te(a, t, o);
1514
- r[o] ? r[o].p(l, i) : (r[o] = We(l), r[o].c(), r[o].m(e.parentNode, e));
1515
- }
1516
- for (; o < r.length; o += 1)
1517
- r[o].d(1);
1518
- r.length = t.length;
1519
- }
1520
- },
1521
- d(a) {
1522
- a && U(e), he(r, a);
1523
- }
1524
- };
1525
- }
1526
- function De(n) {
1527
- let e, t, r, a, i = (
1528
- /*outcome*/
1529
- n[37]?.name + ""
1530
- ), o, l, c, s, m, u, g = (
1531
- /*outcome*/
1532
- n[37]?.date + ""
1533
- ), d;
1534
- return {
1535
- c() {
1536
- e = w("div"), t = w("span"), t.textContent = `${/*index*/
1537
- n[39] + 1}`, r = T(), a = w("p"), o = te(i), l = T(), c = w("img"), m = T(), u = w("span"), d = te(g), p(t, "class", "index"), fe(c.src, s = /*outcome*/
1538
- n[37]?.state ? we : pe) || p(c, "src", s), p(c, "alt", ""), p(a, "class", "name"), p(u, "class", "time"), p(e, "class", "chests-history__list__item");
1539
- },
1540
- m(v, _) {
1541
- L(v, e, _), f(e, t), f(e, r), f(e, a), f(a, o), f(a, l), f(a, c), f(e, m), f(e, u), f(u, d);
1542
- },
1543
- p(v, _) {
1544
- _[0] & /*mysteryChestsHistory*/
1545
- 512 && i !== (i = /*outcome*/
1546
- v[37]?.name + "") && ee(o, i), _[0] & /*mysteryChestsHistory*/
1547
- 512 && !fe(c.src, s = /*outcome*/
1548
- v[37]?.state ? we : pe) && p(c, "src", s), _[0] & /*mysteryChestsHistory*/
1549
- 512 && g !== (g = /*outcome*/
1550
- v[37]?.date + "") && ee(d, g);
1551
- },
1552
- d(v) {
1553
- v && U(e);
1554
- }
1555
- };
1556
- }
1557
- function Se(n) {
1558
- let e, t, r;
1559
- function a() {
1560
- return (
1561
- /*click_handler_1*/
1562
- n[22](
1563
- /*history*/
1564
- n[34]
1565
- )
1566
- );
1567
- }
1568
- return {
1569
- c() {
1570
- e = w("button"), e.innerHTML = `More
1571
- <img src="${et}" alt="More"/>`, p(e, "class", "chests-history__more");
1572
- },
1573
- m(i, o) {
1574
- L(i, e, o), t || (r = z(e, "click", a), t = !0);
1575
- },
1576
- p(i, o) {
1577
- n = i;
1578
- },
1579
- d(i) {
1580
- i && U(e), t = !1, r();
1581
- }
1582
- };
1583
- }
1584
- function We(n) {
1585
- let e, t, r = (
1586
- /*history*/
1587
- n[34].name + ""
1588
- ), a, i, o, l, c = J(
1589
- /*history*/
1590
- n[34].outcomes.slice(
1591
- 0,
1592
- /*history*/
1593
- n[34].endPos
1594
- )
1595
- ), s = [];
1596
- for (let u = 0; u < c.length; u += 1)
1597
- s[u] = De(Me(n, c, u));
1598
- let m = (
1599
- /*history*/
1600
- n[34].outcomes?.length > 3 && /*history*/
1601
- n[34].endPos === 3 && Se(n)
1602
- );
1603
- return {
1604
- c() {
1605
- e = w("div"), t = w("div"), a = te(r), i = T();
1606
- for (let u = 0; u < s.length; u += 1)
1607
- s[u].c();
1608
- o = T(), m && m.c(), l = T(), p(t, "class", "chests-history__title"), p(e, "class", "chests-history__list");
1609
- },
1610
- m(u, g) {
1611
- L(u, e, g), f(e, t), f(t, a), f(e, i);
1612
- for (let d = 0; d < s.length; d += 1)
1613
- s[d] && s[d].m(e, null);
1614
- f(e, o), m && m.m(e, null), f(e, l);
1615
- },
1616
- p(u, g) {
1617
- if (g[0] & /*mysteryChestsHistory*/
1618
- 512 && r !== (r = /*history*/
1619
- u[34].name + "") && ee(a, r), g[0] & /*mysteryChestsHistory*/
1620
- 512) {
1621
- c = J(
1622
- /*history*/
1623
- u[34].outcomes.slice(
1624
- 0,
1625
- /*history*/
1626
- u[34].endPos
1627
- )
1628
- );
1629
- let d;
1630
- for (d = 0; d < c.length; d += 1) {
1631
- const v = Me(u, c, d);
1632
- s[d] ? s[d].p(v, g) : (s[d] = De(v), s[d].c(), s[d].m(e, o));
1633
- }
1634
- for (; d < s.length; d += 1)
1635
- s[d].d(1);
1636
- s.length = c.length;
1637
- }
1638
- /*history*/
1639
- u[34].outcomes?.length > 3 && /*history*/
1640
- u[34].endPos === 3 ? m ? m.p(u, g) : (m = Se(u), m.c(), m.m(e, l)) : m && (m.d(1), m = null);
1641
- },
1642
- d(u) {
1643
- u && U(e), he(s, u), m && m.d();
1644
- }
1645
- };
1646
- }
1647
- function _n(n) {
1648
- let e;
1649
- return {
1650
- c() {
1651
- e = w("div"), e.textContent = "There are no available Chests", p(e, "class", "chests-empty");
1652
- },
1653
- m(t, r) {
1654
- L(t, e, r);
1655
- },
1656
- p: Z,
1657
- d(t) {
1658
- t && U(e);
1659
- }
1660
- };
1661
- }
1662
- function xn(n) {
1663
- let e, t = J(
1664
- /*mysteryChests*/
1665
- n[7]
1666
- ), r = [];
1667
- for (let a = 0; a < t.length; a += 1)
1668
- r[a] = Ue(Oe(n, t, a));
1669
- return {
1670
- c() {
1671
- e = w("div");
1672
- for (let a = 0; a < r.length; a += 1)
1673
- r[a].c();
1674
- p(e, "class", "chests-list");
1675
- },
1676
- m(a, i) {
1677
- L(a, e, i);
1678
- for (let o = 0; o < r.length; o += 1)
1679
- r[o] && r[o].m(e, null);
1680
- },
1681
- p(a, i) {
1682
- if (i[0] & /*openChestDetails, mysteryChests, lang*/
1683
- 32897) {
1684
- t = J(
1685
- /*mysteryChests*/
1686
- a[7]
1687
- );
1688
- let o;
1689
- for (o = 0; o < t.length; o += 1) {
1690
- const l = Oe(a, t, o);
1691
- r[o] ? r[o].p(l, i) : (r[o] = Ue(l), r[o].c(), r[o].m(e, null));
1692
- }
1693
- for (; o < r.length; o += 1)
1694
- r[o].d(1);
1695
- r.length = t.length;
1696
- }
1697
- },
1698
- d(a) {
1699
- a && U(e), he(r, a);
1700
- }
1701
- };
1702
- }
1703
- function Ue(n) {
1704
- let e, t = (
1705
- /*chest*/
1706
- (n[31].program.name[
1707
- /*lang*/
1708
- n[0]
1709
- ] || /*chest*/
1710
- n[31].program.name[V.default]) + ""
1711
- ), r, a, i, o, l, c, s, m = (
1712
- /*chest*/
1713
- n[31]?.current?.remainingTimes + ""
1714
- ), u, g, d, v;
1715
- function _() {
1716
- return (
1717
- /*click_handler*/
1718
- n[21](
1719
- /*chest*/
1720
- n[31]
1721
- )
1722
- );
1723
- }
1724
- return {
1725
- c() {
1726
- e = w("button"), r = te(t), a = T(), i = w("div"), o = w("img"), c = T(), s = w("span"), u = te(m), g = T(), fe(o.src, l = $e) || p(o, "src", l), p(o, "alt", "Key"), p(i, "class", "chests-list__item__keys"), p(e, "class", "chests-list__item");
1727
- },
1728
- m(k, x) {
1729
- L(k, e, x), f(e, r), f(e, a), f(e, i), f(i, o), f(i, c), f(i, s), f(s, u), f(e, g), d || (v = z(e, "click", _), d = !0);
1730
- },
1731
- p(k, x) {
1732
- n = k, x[0] & /*mysteryChests, lang*/
1733
- 129 && t !== (t = /*chest*/
1734
- (n[31].program.name[
1735
- /*lang*/
1736
- n[0]
1737
- ] || /*chest*/
1738
- n[31].program.name[V.default]) + "") && ee(r, t), x[0] & /*mysteryChests*/
1739
- 128 && m !== (m = /*chest*/
1740
- n[31]?.current?.remainingTimes + "") && ee(u, m);
1741
- },
1742
- d(k) {
1743
- k && U(e), d = !1, v();
1744
- }
1745
- };
1746
- }
1747
- function Cn(n) {
1748
- let e, t, r, a, i, o, l, c, s, m, u, g, d, v, _, k, x, D, P, H, F, N, M = (
1749
- /*tooltip*/
1750
- n[8] && Pe(n)
1751
- );
1752
- function A(b, O) {
1753
- return (
1754
- /*chestsLoading*/
1755
- b[6] || /*historyLoading*/
1756
- b[5] ? wn : (
1757
- /*activeTab*/
1758
- b[4] === 1 ? pn : (
1759
- /*activeTab*/
1760
- b[4] === 2 ? vn : gn
1761
- )
1762
- )
1763
- );
1764
- }
1765
- let q = A(n), W = q(n);
1766
- return {
1767
- c() {
1768
- e = w("div"), t = w("button"), r = T(), a = w("div"), M && M.c(), i = T(), o = w("div"), l = w("button"), c = T(), s = w("div"), s.textContent = "Mystery Chests", m = T(), u = w("button"), g = T(), d = w("div"), v = w("div"), _ = w("button"), _.textContent = "Play", k = T(), x = w("button"), x.textContent = "History", D = T(), P = w("button"), P.textContent = "Rules", H = T(), W.c(), p(t, "class", "overlay"), p(l, "class", "icon-button help"), p(s, "class", "chests-header__title"), p(u, "class", "icon-button close"), p(o, "class", "chests-header"), p(_, "data-index", "1"), p(_, "class", "chests-tabs__tab"), Q(
1769
- _,
1770
- "active",
1771
- /*activeTab*/
1772
- n[4] === 1
1773
- ), p(x, "data-index", "2"), p(x, "class", "chests-tabs__tab"), Q(
1774
- x,
1775
- "active",
1776
- /*activeTab*/
1777
- n[4] === 2
1778
- ), p(P, "data-index", "3"), p(P, "class", "chests-tabs__tab"), Q(
1779
- P,
1780
- "active",
1781
- /*activeTab*/
1782
- n[4] === 3
1783
- ), p(v, "class", "chests-tabs__container"), p(d, "class", "chests-tabs"), p(a, "class", "drawer " + /*mobileView*/
1784
- (n[10] ? "mobile" : "")), p(e, "part", "CustomStylingContainer");
1785
- },
1786
- m(b, O) {
1787
- L(b, e, O), f(e, t), f(e, r), f(e, a), M && M.m(a, null), f(a, i), f(a, o), f(o, l), f(o, c), f(o, s), f(o, m), f(o, u), f(a, g), f(a, d), f(d, v), f(v, _), f(v, k), f(v, x), f(v, D), f(v, P), f(a, H), W.m(a, null), n[23](e), F || (N = [
1788
- z(
1789
- t,
1790
- "click",
1791
- /*onClose*/
1792
- n[11]
1793
- ),
1794
- z(
1795
- l,
1796
- "click",
1797
- /*showHideToolip*/
1798
- n[12]
1799
- ),
1800
- z(
1801
- u,
1802
- "click",
1803
- /*onClose*/
1804
- n[11]
1805
- ),
1806
- z(
1807
- _,
1808
- "click",
1809
- /*handleTabChange*/
1810
- n[14]
1811
- ),
1812
- z(
1813
- x,
1814
- "click",
1815
- /*handleTabChange*/
1816
- n[14]
1817
- ),
1818
- z(
1819
- P,
1820
- "click",
1821
- /*handleTabChange*/
1822
- n[14]
1823
- )
1824
- ], F = !0);
1825
- },
1826
- p(b, O) {
1827
- /*tooltip*/
1828
- b[8] ? M ? M.p(b, O) : (M = Pe(b), M.c(), M.m(a, i)) : M && (M.d(1), M = null), O[0] & /*activeTab*/
1829
- 16 && Q(
1830
- _,
1831
- "active",
1832
- /*activeTab*/
1833
- b[4] === 1
1834
- ), O[0] & /*activeTab*/
1835
- 16 && Q(
1836
- x,
1837
- "active",
1838
- /*activeTab*/
1839
- b[4] === 2
1840
- ), O[0] & /*activeTab*/
1841
- 16 && Q(
1842
- P,
1843
- "active",
1844
- /*activeTab*/
1845
- b[4] === 3
1846
- ), q === (q = A(b)) && W ? W.p(b, O) : (W.d(1), W = q(b), W && (W.c(), W.m(a, null)));
1847
- },
1848
- i: Z,
1849
- o: Z,
1850
- d(b) {
1851
- b && U(e), M && M.d(), W.d(), n[23](null), F = !1, Ae(N);
1852
- }
1853
- };
1854
- }
1855
- function kn(n, e, t) {
1856
- let { terms: r = "" } = e, { lang: a = V.en } = e, { endpoint: i = "" } = e, { session: o = "" } = e, { clientstyling: l = "" } = e, { clientstylingurl: c = "" } = e, { translationurl: s = "" } = e, m = window.navigator.userAgent, u = Ke(m), g, d = 1, v = !1, _ = !1, k = [], x = !1, D;
1857
- const P = () => {
1858
- ce({ type: "CloseMysteryChestDrawer" });
1859
- }, H = () => {
1860
- t(8, x = !x);
1861
- }, F = async () => {
1862
- t(5, v = !0);
1863
- let h = k.map((C) => ({
1864
- id: C.program.id,
1865
- name: C.program.name[a] || C.program.name[V.default],
1866
- partitions: C.program.wheelOfFortune.partitions,
1867
- endPos: 0,
1868
- outcomes: []
1869
- }));
1870
- if (h.length > 0) {
1871
- const C = h.map(async (E, ge) => {
1872
- const re = (await ke.outcome(i, o, E?.id)).items || [];
1873
- if (re.length === 0) {
1874
- h[ge] = null;
1875
- return;
1876
- }
1877
- h[ge] = {
1878
- ...E,
1879
- endPos: re.length > 3 ? 3 : re.length,
1880
- outcomes: re.map((ue) => {
1881
- const ve = E.partitions[ue.draw.result.wheelOfFortunePartitionIndex]?.name || {}, qe = ue.draw.state === "fulfilled", Re = sn(new Date(ue.draw.time), "LLL d, yyyy HH:mm:ss");
1882
- return {
1883
- name: ve[a] || ve[V.default],
1884
- state: qe,
1885
- date: Re
1886
- };
1887
- })
1888
- };
1889
- });
1890
- await Promise.all(C);
1891
- }
1892
- t(9, D = h.filter((C) => !!C)), t(5, v = !1);
1893
- }, N = async () => {
1894
- t(6, _ = !0);
1895
- const h = await ke.lotteries(i, o);
1896
- t(7, k = h.filter((C) => dn(C))), t(6, _ = !1);
1897
- }, M = (h) => {
1898
- const C = D.findIndex((E) => E.id === h);
1899
- t(9, D[C].endPos = D[C].outcomes?.length, D);
1900
- }, A = async (h) => {
1901
- t(4, d = +h.target.getAttribute("data-index")), d === 2 && await F();
1902
- }, q = () => {
1903
- let h = document.createElement("style");
1904
- h.innerHTML = l, g.appendChild(h);
1905
- }, W = () => {
1906
- let h = new URL(c), C = document.createElement("style");
1907
- fetch(h.href).then((E) => E.text()).then((E) => {
1908
- C.innerHTML = E, setTimeout(
1909
- () => {
1910
- g.appendChild(C);
1911
- },
1912
- 1
1913
- );
1914
- });
1915
- }, b = () => {
1916
- fetch(s).then((C) => C.json()).then((C) => {
1917
- Object.keys(C).forEach((E) => {
1918
- fn(E, C[E]);
1919
- });
1920
- });
1921
- }, O = () => {
1922
- mn(a);
1923
- }, B = (h) => {
1924
- ce({
1925
- type: "OpenMysteryChestDetails",
1926
- data: h
1927
- });
1928
- }, Ye = () => {
1929
- ce({ type: "OpenTermsAndCondidionsLink" });
1930
- };
1931
- Qe(() => N());
1932
- const Fe = (h) => {
1933
- B(h);
1934
- }, Ne = (h) => M(h.id);
1935
- function He(h) {
1936
- Xe[h ? "unshift" : "push"](() => {
1937
- g = h, t(3, g);
1938
- });
1939
- }
1940
- return n.$$set = (h) => {
1941
- "terms" in h && t(17, r = h.terms), "lang" in h && t(0, a = h.lang), "endpoint" in h && t(18, i = h.endpoint), "session" in h && t(19, o = h.session), "clientstyling" in h && t(1, l = h.clientstyling), "clientstylingurl" in h && t(2, c = h.clientstylingurl), "translationurl" in h && t(20, s = h.translationurl);
1942
- }, n.$$.update = () => {
1943
- n.$$.dirty[0] & /*lang*/
1944
- 1 && a && O(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1945
- 10 && l && g && q(), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1946
- 12 && c && g && W(), n.$$.dirty[0] & /*translationurl*/
1947
- 1048576 && s && b();
1948
- }, [
1949
- a,
1950
- l,
1951
- c,
1952
- g,
1953
- d,
1954
- v,
1955
- _,
1956
- k,
1957
- x,
1958
- D,
1959
- u,
1960
- P,
1961
- H,
1962
- M,
1963
- A,
1964
- B,
1965
- Ye,
1966
- r,
1967
- i,
1968
- o,
1969
- s,
1970
- Fe,
1971
- Ne,
1972
- He
1973
- ];
1974
- }
1975
- class Tn extends Be {
1976
- constructor(e) {
1977
- super(), je(
1978
- this,
1979
- e,
1980
- kn,
1981
- Cn,
1982
- Ie,
1983
- {
1984
- terms: 17,
1985
- lang: 0,
1986
- endpoint: 18,
1987
- session: 19,
1988
- clientstyling: 1,
1989
- clientstylingurl: 2,
1990
- translationurl: 20
1991
- },
1992
- hn,
1993
- [-1, -1]
1994
- );
1995
- }
1996
- get terms() {
1997
- return this.$$.ctx[17];
1998
- }
1999
- set terms(e) {
2000
- this.$$set({ terms: e }), j();
2001
- }
2002
- get lang() {
2003
- return this.$$.ctx[0];
2004
- }
2005
- set lang(e) {
2006
- this.$$set({ lang: e }), j();
2007
- }
2008
- get endpoint() {
2009
- return this.$$.ctx[18];
2010
- }
2011
- set endpoint(e) {
2012
- this.$$set({ endpoint: e }), j();
2013
- }
2014
- get session() {
2015
- return this.$$.ctx[19];
2016
- }
2017
- set session(e) {
2018
- this.$$set({ session: e }), j();
2019
- }
2020
- get clientstyling() {
2021
- return this.$$.ctx[1];
2022
- }
2023
- set clientstyling(e) {
2024
- this.$$set({ clientstyling: e }), j();
2025
- }
2026
- get clientstylingurl() {
2027
- return this.$$.ctx[2];
2028
- }
2029
- set clientstylingurl(e) {
2030
- this.$$set({ clientstylingurl: e }), j();
2031
- }
2032
- get translationurl() {
2033
- return this.$$.ctx[20];
2034
- }
2035
- set translationurl(e) {
2036
- this.$$set({ translationurl: e }), j();
2037
- }
2038
- }
2039
- Ve(Tn, { terms: {}, lang: {}, endpoint: {}, session: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
2040
- export {
2041
- Tn as default
2042
- };