@everymatrix/mini-games-hub 0.1.20 → 0.1.21

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.
@@ -0,0 +1,1296 @@
1
+ var It = Object.defineProperty, Dt = Object.defineProperties;
2
+ var Gt = Object.getOwnPropertyDescriptors;
3
+ var nt = Object.getOwnPropertySymbols;
4
+ var Xt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable;
5
+ var at = (w, p, i) => p in w ? It(w, p, { enumerable: !0, configurable: !0, writable: !0, value: i }) : w[p] = i, rt = (w, p) => {
6
+ for (var i in p || (p = {}))
7
+ Xt.call(p, i) && at(w, i, p[i]);
8
+ if (nt)
9
+ for (var i of nt(p))
10
+ Kt.call(p, i) && at(w, i, p[i]);
11
+ return w;
12
+ }, st = (w, p) => Dt(w, Gt(p));
13
+ var me = (w, p, i) => new Promise((Ye, fe) => {
14
+ var x = (R) => {
15
+ try {
16
+ L(i.next(R));
17
+ } catch (F) {
18
+ fe(F);
19
+ }
20
+ }, K = (R) => {
21
+ try {
22
+ L(i.throw(R));
23
+ } catch (F) {
24
+ fe(F);
25
+ }
26
+ }, L = (R) => R.done ? Ye(R.value) : Promise.resolve(R.value).then(x, K);
27
+ L((i = i.apply(w, p)).next());
28
+ });
29
+ import { d as Ot, c as Ft, a as At, p as Q, o as Ht, i as B, g as ot, m as ee, k as X, s as E, r as te, e as y, f as S, j as it, n as Ce, b as Re, h as Ut, l as Me, u as $t } from "./WheelOfFortuneWheel-CDjrztMA.js";
30
+ import { G as Zt, aM as z, aC as je, W as Wt, a0 as t, au as o, aO as c, ah as P, L as Nt, aX as ne, aT as m, aP as Vt, aQ as qt, aG as ae, aR as Jt, b5 as Qt, aU as en, aV as tn, aN as de, aW as d, b1 as nn } from "./utils-BJHloM10.js";
31
+ import { j as an } from "./constants-Q_kcdbM6.js";
32
+ import { c as rn } from "./countdown-DmWNNDzv.js";
33
+ import { c as sn, f as on } from "./remaining-times-Dexper1E.js";
34
+ import { D as ln } from "./DrawResult-FwuHCP-y.js";
35
+ import { G as cn } from "./GameHistory-BmChILXB.js";
36
+ import { G as pn } from "./GameRules-lzdMrQZY.js";
37
+ import { B as mn } from "./BackButton-DWyr6ELs.js";
38
+ import { b as dn } from "./mystery-chest-bg-CGT-JTBW.js";
39
+ import { c as fn } from "./mystery-chest-locked-CIxpYU3v.js";
40
+ import { c as yn } from "./mystery-chest-empty-D7bbrCHH.js";
41
+ import { c as gn } from "./mystery-chest-win-D1NYItcd.js";
42
+ import { k as lt } from "./key-D1g9LqMU.js";
43
+ var hn = S('<span class="mystery-chest__particle svelte-1af7gxu"></span>'), un = S('<button role="tab" type="button"> </button>'), xn = S('<span class="mystery-chest__rays svelte-1af7gxu" aria-hidden="true"></span> <span class="mystery-chest__shockwave svelte-1af7gxu" aria-hidden="true"></span> <span class="mystery-chest__opening-glow svelte-1af7gxu" aria-hidden="true"></span>', 1), vn = Me('<path class="mystery-chest__keyhole-solid svelte-1af7gxu"></path>'), bn = Me('<path class="mystery-chest__keyhole-dots svelte-1af7gxu"></path><path class="mystery-chest__keyhole-light svelte-1af7gxu" pathLength="100"></path>', 1), _n = Me('<svg viewBox="0 0 100 150" aria-hidden="true"><path class="mystery-chest__keyhole-fill svelte-1af7gxu"></path><!></svg>'), wn = S('<span class="mystery-chest__lock-flash svelte-1af7gxu"></span>'), kn = S('<div><img class="mystery-chest__key-img svelte-1af7gxu" alt="" draggable="false"/></div>'), zn = S('<img alt="" aria-hidden="true" draggable="false"/>'), Cn = S('<div class="mystery-chest__badge svelte-1af7gxu"><p class="mystery-chest__badge-title svelte-1af7gxu"> </p> <p class="mystery-chest__badge-body svelte-1af7gxu"> </p> <button class="mystery-chest__badge-close svelte-1af7gxu" type="button"> </button></div>'), Yn = S('<div class="mystery-chest__badge svelte-1af7gxu"><p class="mystery-chest__badge-title svelte-1af7gxu"> </p> <p class="mystery-chest__badge-countdown svelte-1af7gxu"> </p></div>'), Tn = S('<span class="mystery-chest__flips-loader svelte-1af7gxu"></span>'), Bn = S('<p class="mystery-chest__hint svelte-1af7gxu"> </p> <p class="mystery-chest__flips svelte-1af7gxu"> <span class="mystery-chest__flips-count svelte-1af7gxu"><svg class="mystery-chest__flips-icon svelte-1af7gxu" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M10 6H10.0067M10 10C12.2091 10 14 8.20914 14 6C14 3.79086 12.2091 2 10 2C7.79086 2 6 3.79086 6 6C6 6.18245 6.01222 6.36205 6.03587 6.53802C6.07478 6.82745 6.09424 6.97217 6.08114 7.06373C6.0675 7.1591 6.05013 7.2105 6.00313 7.2946C5.958 7.37533 5.87847 7.45486 5.71942 7.61391L2.31242 11.0209C2.19712 11.1362 2.13947 11.1939 2.09824 11.2611C2.06169 11.3208 2.03475 11.3858 2.01842 11.4538C2 11.5306 2 11.6121 2 11.7752V12.9333C2 13.3067 2 13.4934 2.07266 13.636C2.13658 13.7614 2.23856 13.8634 2.36401 13.9273C2.50661 14 2.6933 14 3.06667 14H4.22484C4.3879 14 4.46943 14 4.54615 13.9816C4.61418 13.9652 4.67921 13.9383 4.73886 13.9018C4.80613 13.8605 4.86378 13.8029 4.97909 13.6876L8.38609 10.2806C8.54514 10.1215 8.62467 10.042 8.7054 9.99687C8.7895 9.94987 8.8409 9.9325 8.93627 9.91886C9.02783 9.90576 9.17255 9.92522 9.46198 9.96413C9.63795 9.98778 9.81755 10 10 10Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" class="svelte-1af7gxu"></path></svg> <!></span></p>', 1), En = S('<div class="mystery-chest__play svelte-1af7gxu"><div><!> <img class="mystery-chest__chest-img svelte-1af7gxu" alt="" draggable="false"/> <!> <!></div> <!> <!> <!></div> <!> <button class="mystery-chest__cta svelte-1af7gxu" type="button"> </button>', 1), Pn = S('<div><div class="mystery-chest__scene svelte-1af7gxu" aria-hidden="true"><img class="mystery-chest__scene-img svelte-1af7gxu" alt="" draggable="false"/> <!></div> <!> <div class="mystery-chest__heading svelte-1af7gxu"><h3 class="mystery-chest__title svelte-1af7gxu"> </h3> <p class="mystery-chest__subtitle svelte-1af7gxu"> </p></div> <div class="mystery-chest__tabs svelte-1af7gxu" role="tablist"><div class="mystery-chest__tab-indicator svelte-1af7gxu"></div> <!></div> <!></div>');
44
+ const Sn = {
45
+ hash: "svelte-1af7gxu",
46
+ code: `@keyframes svelte-1af7gxu-game-bob {
47
+ 0%, 100% {
48
+ transform: translateY(0);
49
+ }
50
+ 50% {
51
+ transform: translateY(-10px);
52
+ }
53
+ }
54
+ @keyframes svelte-1af7gxu-game-bg-drift {
55
+ 0%, 100% {
56
+ transform: scale(1.06) translate(0, 0);
57
+ }
58
+ 50% {
59
+ transform: scale(1.12) translate(-1.5%, -1%);
60
+ }
61
+ }
62
+ @keyframes svelte-1af7gxu-game-cta-glow {
63
+ 0%, 100% {
64
+ transform: scale(1);
65
+ filter: brightness(1);
66
+ box-shadow: 0 9px 13px rgba(0, 0, 0, 0.3), 0 0 22px rgba(255, 204, 0, 0.48), 0 0 38px rgba(255, 183, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
67
+ }
68
+ 50% {
69
+ transform: scale(1.065);
70
+ filter: brightness(1.08);
71
+ box-shadow: 0 12px 18px rgba(0, 0, 0, 0.34), 0 0 24px rgba(255, 204, 0, 0.62), 0 0 44px rgba(255, 183, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.46);
72
+ }
73
+ }
74
+ @keyframes svelte-1af7gxu-mc-loader-spin {
75
+ to {
76
+ transform: rotate(360deg);
77
+ }
78
+ }
79
+ @keyframes svelte-1af7gxu-mc-float-up {
80
+ 0% {
81
+ transform: translateY(0);
82
+ opacity: 0;
83
+ }
84
+ 15% {
85
+ opacity: 1;
86
+ }
87
+ 100% {
88
+ transform: translateY(-420px);
89
+ opacity: 0;
90
+ }
91
+ }
92
+ @keyframes svelte-1af7gxu-mc-dot-march {
93
+ to {
94
+ stroke-dashoffset: -9;
95
+ }
96
+ }
97
+ @keyframes svelte-1af7gxu-mc-light-run {
98
+ to {
99
+ stroke-dashoffset: -100;
100
+ }
101
+ }
102
+ @keyframes svelte-1af7gxu-mc-key-halo-pulse {
103
+ 0%, 100% {
104
+ border-color: rgba(255, 236, 150, 0.55);
105
+ box-shadow: 0 0 12px rgba(255, 204, 0, 0.25), inset 0 0 8px rgba(255, 204, 0, 0.15);
106
+ }
107
+ 50% {
108
+ border-color: rgba(255, 236, 150, 0.95);
109
+ box-shadow: 0 0 24px rgba(255, 204, 0, 0.55), inset 0 0 14px rgba(255, 204, 0, 0.3);
110
+ }
111
+ }
112
+ @keyframes svelte-1af7gxu-mc-lock-jolt {
113
+ 0% {
114
+ transform: translateY(0) rotate(0);
115
+ }
116
+ 20% {
117
+ transform: translateY(2px) rotate(-1.5deg);
118
+ }
119
+ 45% {
120
+ transform: translateY(-3px) rotate(1.2deg);
121
+ }
122
+ 70% {
123
+ transform: translateY(1px) rotate(-0.5deg);
124
+ }
125
+ 100% {
126
+ transform: translateY(0) rotate(0);
127
+ }
128
+ }
129
+ @keyframes svelte-1af7gxu-mc-lock-flash {
130
+ 0% {
131
+ opacity: 0;
132
+ transform: translate(-50%, -50%) scale(0.3);
133
+ }
134
+ 35% {
135
+ opacity: 1;
136
+ }
137
+ 100% {
138
+ opacity: 0;
139
+ transform: translate(-50%, -50%) scale(1.8);
140
+ }
141
+ }
142
+ @keyframes svelte-1af7gxu-mc-ray-spin {
143
+ from {
144
+ transform: translate(-50%, -50%) rotate(0deg);
145
+ }
146
+ to {
147
+ transform: translate(-50%, -50%) rotate(360deg);
148
+ }
149
+ }
150
+ @keyframes svelte-1af7gxu-mc-ray-in {
151
+ 0% {
152
+ opacity: 0;
153
+ }
154
+ 60% {
155
+ opacity: 0.9;
156
+ }
157
+ 100% {
158
+ opacity: 0.75;
159
+ }
160
+ }
161
+ @keyframes svelte-1af7gxu-mc-shockwave {
162
+ 0% {
163
+ transform: translate(-50%, -50%) scale(0.2);
164
+ opacity: 0.8;
165
+ }
166
+ 100% {
167
+ transform: translate(-50%, -50%) scale(2.6);
168
+ opacity: 0;
169
+ }
170
+ }
171
+ @keyframes svelte-1af7gxu-mc-opening-glow {
172
+ 0%, 100% {
173
+ transform: translate(-50%, -50%) scale(1);
174
+ opacity: 0.55;
175
+ }
176
+ 50% {
177
+ transform: translate(-50%, -50%) scale(1.08);
178
+ opacity: 0.9;
179
+ }
180
+ }
181
+ @keyframes svelte-1af7gxu-mc-chest-shake {
182
+ 0%, 100% {
183
+ transform: translate(0, 0) rotate(0deg);
184
+ }
185
+ 20% {
186
+ transform: translate(-5px, 1px) rotate(-2.5deg);
187
+ }
188
+ 40% {
189
+ transform: translate(5px, -1px) rotate(2.5deg);
190
+ }
191
+ 60% {
192
+ transform: translate(-4px, 2px) rotate(-2deg);
193
+ }
194
+ 80% {
195
+ transform: translate(4px, -2px) rotate(2deg);
196
+ }
197
+ }
198
+ @keyframes svelte-1af7gxu-mc-chest-burst {
199
+ 0% {
200
+ transform: scale(1);
201
+ }
202
+ 40% {
203
+ transform: scale(0.92) translateY(6px);
204
+ }
205
+ 70% {
206
+ transform: scale(1.12) translateY(-14px);
207
+ }
208
+ 100% {
209
+ transform: scale(1) translateY(0);
210
+ }
211
+ }
212
+ @keyframes svelte-1af7gxu-mc-dust-puff {
213
+ 0% {
214
+ transform: translate(0, 0) scale(0.4);
215
+ opacity: 0;
216
+ }
217
+ 30% {
218
+ opacity: 0.6;
219
+ }
220
+ 100% {
221
+ transform: translate(var(--dust-dx, 0), var(--dust-dy, -80px)) scale(1.6);
222
+ opacity: 0;
223
+ }
224
+ } .mystery-chest {--yellow: var(--color-text-brand, #ffcc00);--white: var(--color-text-default, rgba(238, 246, 255, 0.96));--ease: cubic-bezier(0.22, 0.61, 0.32, 1);--mc-bob: 5000ms;--mc-stage-h: max(820px, min(100dvh, 900px));--mc-bg-w: calc(var(--mc-stage-h) * 1.013);container-type:inline-size;position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;width:100%;margin:0 auto;gap:clamp(6px, 2vw, 12px);padding-bottom:clamp(20px, 15vw, 50px);min-height:calc(var(--game-stage-size, clamp(276px, 100vw, 430px)) + 400px);flex-shrink:0;overflow:hidden;color:var(--white);background:transparent;} .mystery-chest *,
225
+ .mystery-chest *::before,
226
+ .mystery-chest *::after {box-sizing:border-box;} .mystery-chest.mystery-chest--plain .mystery-chest__scene {opacity:0;transition:none;} .mystery-chest.mystery-chest--plain .mystery-chest__scene-img,
227
+ .mystery-chest.mystery-chest--plain .mystery-chest__particle {animation-play-state:paused;} .mystery-chest.mystery-chest--result .mystery-chest__heading,
228
+ .mystery-chest.mystery-chest--result .mystery-chest__tabs {display:none;} .mystery-chest.mystery-chest--busy .game-back-button,
229
+ .mystery-chest.mystery-chest--busy .mystery-chest__tabs,
230
+ .mystery-chest.mystery-chest--busy .mystery-chest__cta {pointer-events:none;} .mystery-chest.mystery-chest--opening .game-back-button,
231
+ .mystery-chest.mystery-chest--opening .mystery-chest__heading,
232
+ .mystery-chest.mystery-chest--opening .mystery-chest__tabs,
233
+ .mystery-chest.mystery-chest--opening .mystery-chest__hint,
234
+ .mystery-chest.mystery-chest--opening .mystery-chest__flips,
235
+ .mystery-chest.mystery-chest--opening .mystery-chest__cta,
236
+ .mystery-chest.mystery-chest--opening .mystery-chest__key {opacity:0;filter:blur(4px);pointer-events:none;transition:opacity 0.4s ease, filter 0.4s ease;} .mystery-chest.mystery-chest--opening .mystery-chest__scene-img {opacity:0.25;transition:opacity 0.4s ease;} .mystery-chest.mystery-chest--opening .mystery-chest__particle {opacity:0;transition:opacity 0.4s ease;} .mystery-chest__scene {position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;transition:opacity 1s ease;-webkit-mask-image:linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);mask-image:linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);} .mystery-chest__scene-img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 68%;opacity:0.3;} .mystery-chest:not(.mystery-chest--result, .mystery-chest--lite) .mystery-chest__scene-img {
237
+ animation: svelte-1af7gxu-game-bg-drift 26s ease-in-out infinite;} .mystery-chest__particle {position:absolute;bottom:96px;border-radius:50%;background:#ffe680;box-shadow:0 0 8px 2px rgba(255, 204, 0, 0.7);opacity:0;
238
+ animation: svelte-1af7gxu-mc-float-up linear infinite;}
239
+ @container (min-width: 600px) { .mystery-chest__scene {left:50%;right:auto;width:min(var(--mc-bg-w), 100cqw);transform:translateX(-50%);-webkit-mask-image:linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);mask-image:linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);}
240
+ } .mystery-chest__heading {position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;gap:6px;} .mystery-chest__title {margin:0;text-align:center;font-size:clamp(20px, 5.5vw, 28px);font-weight:900;line-height:1.05;color:var(--yellow);} .mystery-chest--no-back .mystery-chest__title {padding-top:16px;} .mystery-chest__subtitle {margin:0 0 clamp(10px, 3vw, 16px);text-align:center;font-size:clamp(11px, 3vw, 14px);font-weight:500;line-height:1.25;color:var(--white);} .mystery-chest__tabs {position:relative;z-index:2;display:flex;justify-content:center;width:90%;margin-bottom:12px;padding:6px;border-radius:50px;background-color:var(--color-tabs, rgba(251, 251, 251, 0.1019607843));} .mystery-chest__tab-indicator {position:absolute;top:6px;bottom:6px;left:6px;width:calc((100% - 12px) / 3);border-radius:50px;background-color:var(--color-tabs-selected, rgba(251, 251, 251, 0.2));transition:transform 0.32s var(--ease);pointer-events:none;} .mystery-chest__tab {position:relative;z-index:1;width:100%;padding:5px;border:none;border-radius:50px;background-color:transparent;color:var(--color-text-default, #ffffff);cursor:pointer;} .mystery-chest__play {position:relative;z-index:3;display:flex;flex-direction:column;align-items:center;width:var(--game-stage-size, clamp(276px, 100vw, 430px));} .mystery-chest__chest {position:relative;width:min(260px, 100%);
241
+ animation: svelte-1af7gxu-game-bob var(--mc-bob) ease-in-out infinite;will-change:transform;}
242
+ @media (min-width: 768px) { .mystery-chest__chest {width:360px;}
243
+ } .mystery-chest__chest--still {
244
+ animation: none;} .mystery-chest__chest--locked {
245
+ animation: none;} .mystery-chest__chest--locked .mystery-chest__chest-img {filter:blur(3px) drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));opacity:0.75;pointer-events:none;} .mystery-chest__chest--filling {
246
+ animation: svelte-1af7gxu-mc-lock-jolt 0.5s ease-out both;} .mystery-chest__chest--opening {
247
+ animation: none;} .mystery-chest__chest--opening .mystery-chest__chest-img {
248
+ animation: svelte-1af7gxu-mc-chest-shake 0.5s ease-in-out 0.4s 2, svelte-1af7gxu-mc-chest-burst 0.7s ease-out 1.4s forwards;} .mystery-chest__chest--opening .mystery-chest__keyhole {opacity:0;transition:opacity 0.2s ease;} .mystery-chest__rays {position:absolute;top:50%;left:50%;z-index:0;width:clamp(380px, 110vw, 620px);aspect-ratio:1;border-radius:50%;pointer-events:none;transform:translate(-50%, -50%);background:conic-gradient(from 0deg, rgba(255, 255, 255, 0) 0deg, rgba(255, 236, 150, 0.55) 12deg, rgba(255, 255, 255, 0) 24deg, rgba(255, 236, 150, 0.55) 36deg, rgba(255, 255, 255, 0) 48deg, rgba(255, 236, 150, 0.55) 60deg, rgba(255, 255, 255, 0) 72deg, rgba(255, 236, 150, 0.55) 84deg, rgba(255, 255, 255, 0) 96deg, rgba(255, 236, 150, 0.55) 108deg, rgba(255, 255, 255, 0) 120deg);-webkit-mask-image:radial-gradient(circle, transparent 22%, black 30%, transparent 72%);mask-image:radial-gradient(circle, transparent 22%, black 30%, transparent 72%);
249
+ animation: svelte-1af7gxu-mc-ray-spin 6s linear infinite, svelte-1af7gxu-mc-ray-in 0.8s ease-out both;} .mystery-chest__shockwave {position:absolute;top:50%;left:50%;z-index:1;width:280px;height:280px;border-radius:50%;border:2px solid #ffe680;pointer-events:none;transform:translate(-50%, -50%) scale(0.2);opacity:0;
250
+ animation: svelte-1af7gxu-mc-shockwave 1.1s ease-out 0.9s forwards;} .mystery-chest__opening-glow {position:absolute;top:50%;left:50%;z-index:1;width:320px;height:320px;border-radius:50%;pointer-events:none;transform:translate(-50%, -50%);background:radial-gradient(circle, rgba(255, 236, 150, 0.55), transparent 65%);filter:blur(10px);
251
+ animation: svelte-1af7gxu-mc-opening-glow 0.8s ease-in-out infinite;} .mystery-chest__chest--opening .mystery-chest__chest-img {position:relative;z-index:2;} .mystery-chest__chest-img {display:block;width:100%;height:auto;user-select:none;filter:drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));} .mystery-chest__keyhole {position:absolute;height:auto;overflow:visible;transform:translate(-55%, -50%);scale:0.9;filter:drop-shadow(0 0 5px rgba(0, 0, 0, 0.6));transition:scale 0.2s var(--ease), filter 0.2s var(--ease);pointer-events:none;} .mystery-chest__keyhole--active {scale:0.95;filter:drop-shadow(0 0 5px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 14px rgba(255, 204, 0, 0.95));} .mystery-chest__keyhole--active .mystery-chest__keyhole-dots {stroke:#ffcc00;} .mystery-chest__keyhole-fill {fill:rgba(1, 12, 30, 0.5);} .mystery-chest__keyhole-dots {fill:none;stroke:rgba(255, 255, 255, 0.9);stroke-width:3;stroke-dasharray:1 8;stroke-linecap:round;
252
+ animation: svelte-1af7gxu-mc-dot-march 1.4s linear infinite;} .mystery-chest__keyhole-light {fill:none;stroke:#fff2b0;stroke-width:4;stroke-linecap:round;stroke-dasharray:10 90;opacity:0.95;filter:drop-shadow(0 0 6px rgba(255, 204, 0, 0.95));
253
+ animation: svelte-1af7gxu-mc-light-run 1.8s linear infinite;} .mystery-chest__keyhole--filling {scale:1;filter:drop-shadow(0 0 10px rgba(255, 204, 0, 0.95));} .mystery-chest__keyhole-solid {fill:none;stroke:#ffcc00;stroke-width:4;stroke-linejoin:round;filter:drop-shadow(0 0 6px rgba(255, 204, 0, 0.95));} .mystery-chest__lock-flash {position:absolute;width:90px;height:90px;border-radius:50%;pointer-events:none;transform:translate(-50%, -50%);background:radial-gradient(circle, rgba(255, 236, 150, 0.9), rgba(255, 204, 0, 0.3) 45%, transparent 70%);
254
+ animation: svelte-1af7gxu-mc-lock-flash 0.7s ease-out both;} .mystery-chest__key {position:relative;z-index:3;width:92px;touch-action:none;user-select:none;cursor:grab;transition:transform 0.2s var(--ease);} .mystery-chest__key::before {content:"";position:absolute;top:50%;left:50%;width:160px;height:60px;border-radius:50%;background:linear-gradient(-45deg, rgba(255, 255, 255, 0.9), rgba(79, 169, 255, 0.6));filter:blur(32px);transform:translate(-50%, -50%);pointer-events:none;z-index:-1;} .mystery-chest__key--dragging::before {opacity:0;} .mystery-chest__key--dragging {cursor:grabbing;transition:none;} .mystery-chest__key-img {display:block;width:100%;height:auto;pointer-events:none;filter:drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
255
+ animation: svelte-1af7gxu-game-bob var(--mc-bob) ease-in-out calc(var(--mc-bob) / -2) infinite;will-change:transform;} .mystery-chest__key--dragging .mystery-chest__key-img {animation-play-state:paused;} .mystery-chest__key--hidden {visibility:hidden;} .mystery-chest__key-fly {position:fixed;top:0;left:0;z-index:50;width:92px;pointer-events:none;filter:drop-shadow(0 8px 12px rgba(0, 0, 0, 0.6));will-change:transform, left, top;} .mystery-chest__key-fly--flying {transition:left 0.55s cubic-bezier(0.3, 0.7, 0.3, 1), top 0.55s cubic-bezier(0.3, 0.7, 0.3, 1), transform 0.55s ease-out;} .mystery-chest__key-fly--inserting {transition:left 0.3s ease-in, top 0.3s ease-in, transform 0.3s ease-in;} .mystery-chest__key-fly--fading {opacity:0;transition:opacity 0.3s ease-out;} .mystery-chest--lite {--mc-bob: 3200ms;} .mystery-chest__hint {position:relative;z-index:2;margin:0;font-size:clamp(11px, 3vw, 13px);color:var(--white);opacity:0.85;} .mystery-chest__flips {position:relative;z-index:2;display:flex;align-items:center;gap:8px;margin:0;font-size:clamp(12px, 3.4vw, 14px);font-weight:400;color:var(--white);} .mystery-chest__flips-count {display:flex;align-items:center;gap:6px;font-size:clamp(14px, 4vw, 16px);font-weight:900;color:var(--yellow);} .mystery-chest__flips-icon {width:16px;height:16px;color:var(--color-text-brand, #ffcc00);flex-shrink:0;} .mystery-chest__cta {position:relative;z-index:2;min-width:clamp(161px, 46vw, 216px);min-height:clamp(43px, 11vw, 52px);border:none;border-radius:999px;font:inherit;font-size:clamp(15px, 4.2vw, 20px);font-weight:900;color:var(--color-text-on-color, #111922);background:linear-gradient(180deg, var(--color-button-primary, #ffd91c) 0%, var(--color-button-primary-hover, #ffbf00) 100%);box-shadow:0 9px 13px rgba(0, 0, 0, 0.3), 0 0 22px rgba(255, 204, 0, 0.48), 0 0 38px rgba(255, 183, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);cursor:pointer;
256
+ animation: svelte-1af7gxu-game-cta-glow 1800ms ease-in-out infinite;transform-origin:50% 50%;transition:transform 0.15s ease, filter 0.15s ease;} .mystery-chest__cta:active {transform:translateY(2px) scale(0.98);animation-play-state:paused;} .mystery-chest__cta:disabled {
257
+ animation: none;filter:grayscale(0.5) brightness(0.75);box-shadow:none;cursor:default;} .mystery-chest__flips-loader {display:inline-block;width:14px;height:14px;border:2px solid transparent;border-top-color:currentColor;border-right-color:currentColor;border-radius:50%;
258
+ animation: svelte-1af7gxu-mc-loader-spin 600ms linear infinite;} .draw-result-dust {position:absolute;inset:0;pointer-events:none;display:flex;align-items:center;justify-content:center;z-index:0;} .draw-result-dust__puff {position:absolute;border-radius:50%;background:#cdbfae;filter:blur(2px);opacity:0;
259
+ animation: svelte-1af7gxu-mc-dust-puff 2s ease-out infinite;} .mystery-chest .draw-result-stack .draw-result-image-wrap {position:relative;isolation:isolate;width:min(260px, 100%);max-width:none;}
260
+ @media (min-width: 768px) { .mystery-chest .draw-result-stack .draw-result-image-wrap {width:360px;}
261
+ } .draw-result-image-wrap::before {content:"";position:absolute;top:50%;left:50%;z-index:-1;width:230px;height:230px;border-radius:50%;background:linear-gradient(-45deg, rgba(255, 255, 255, 0.9), rgba(79, 169, 255, 0.6));filter:blur(42px);transform:translate(-50%, -50%);pointer-events:none;} .draw-result-stack .draw-result-image-wrap img {display:block;width:100%;max-width:none;
262
+ animation: svelte-1af7gxu-game-bob var(--mc-bob) ease-in-out infinite;will-change:transform;} .mystery-chest .draw-result-stack {transform:none;} .mystery-chest .draw-result-panel {place-items:start center;} .mystery-chest__badge {position:absolute;top:60%;left:50%;transform:translate(-50%, -50%);z-index:8;width:58%;padding:10px 12px;border-radius:10px;text-align:center;background:rgba(4, 18, 43, 0.86);border:1px solid rgba(255, 255, 255, 0.14);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);} .mystery-chest__badge-title {margin:0;color:#ffffff;font-size:12px;font-weight:700;letter-spacing:0.2px;} .mystery-chest__badge-body {margin:0;color:var(--color-text-subtle, rgba(244, 248, 255, 0.75));font-size:10px;line-height:1.45;} .mystery-chest__badge-countdown {margin:0;color:var(--color-text-subtle, rgba(244, 248, 255, 0.75));font-size:clamp(13px, 3.8vw, 18px);font-variant-numeric:tabular-nums;} .mystery-chest__badge-close {margin-top:8px;padding:4px 14px;border-radius:6px;border:1px solid rgba(255, 255, 255, 0.22);background:rgba(255, 255, 255, 0.12);color:#ffffff;font-size:11px;font-weight:600;cursor:pointer;transition:background 150ms ease;} .mystery-chest__badge-close:hover {background:rgba(255, 255, 255, 0.2);}
263
+ @keyframes svelte-1af7gxu-stageFloat {
264
+ 0%, 100% {
265
+ transform: translate3d(0, 0, 0) rotate(-0.12deg) scale(1);
266
+ }
267
+ 42% {
268
+ transform: translate3d(0, -4px, 0) rotate(0.16deg) scale(1.002);
269
+ }
270
+ 72% {
271
+ transform: translate3d(0, 2px, 0) rotate(-0.04deg) scale(0.999);
272
+ }
273
+ }
274
+ @keyframes svelte-1af7gxu-stageGlow {
275
+ 0%, 100% {
276
+ opacity: 0.46;
277
+ transform: scale(0.94);
278
+ filter: blur(27px);
279
+ }
280
+ 50% {
281
+ opacity: 0.68;
282
+ transform: scale(1.02);
283
+ filter: blur(31px);
284
+ }
285
+ }
286
+ @keyframes svelte-1af7gxu-glowOrbit {
287
+ 0%, 100% {
288
+ opacity: 0.13;
289
+ transform: scale(0.88) rotate(-8deg);
290
+ }
291
+ 50% {
292
+ opacity: 0.24;
293
+ transform: scale(0.95) rotate(5deg);
294
+ }
295
+ }
296
+ @keyframes svelte-1af7gxu-frameGlowBreath {
297
+ 0%, 100% {
298
+ opacity: 0.58;
299
+ transform: scale(0.94);
300
+ filter: blur(30px);
301
+ }
302
+ 48% {
303
+ opacity: 0.82;
304
+ transform: scale(1.03);
305
+ filter: blur(34px);
306
+ }
307
+ }
308
+ @keyframes svelte-1af7gxu-wheelDrop {
309
+ 0% {
310
+ transform: translateY(-60vh) scale(0.961) rotate(-9deg);
311
+ opacity: 0;
312
+ }
313
+ 70% {
314
+ transform: translateY(-20px) scale(1.012) rotate(2deg);
315
+ opacity: 1;
316
+ }
317
+ 86% {
318
+ transform: translateY(0px) scale(0.997) rotate(-0.6deg);
319
+ }
320
+ 100% {
321
+ transform: translateY(0) scale(1) rotate(0);
322
+ opacity: 1;
323
+ }
324
+ }
325
+ @keyframes svelte-1af7gxu-spinGlowPop {
326
+ 0% {
327
+ opacity: 0.56;
328
+ transform: scale(0.96);
329
+ filter: blur(25px);
330
+ }
331
+ 32% {
332
+ opacity: 0.92;
333
+ transform: scale(1.08);
334
+ filter: blur(31px);
335
+ }
336
+ 100% {
337
+ opacity: 0.58;
338
+ transform: scale(0.98);
339
+ filter: blur(27px);
340
+ }
341
+ }
342
+ @keyframes svelte-1af7gxu-glowPulse {
343
+ 0%, 100% {
344
+ opacity: 0.72;
345
+ transform: scale(0.95);
346
+ }
347
+ 50% {
348
+ opacity: 1;
349
+ transform: scale(1.12);
350
+ }
351
+ }
352
+ @keyframes svelte-1af7gxu-glowRing {
353
+ 0%, 100% {
354
+ opacity: 0.42;
355
+ transform: scale(0.92);
356
+ }
357
+ 50% {
358
+ opacity: 0.88;
359
+ transform: scale(1.18);
360
+ }
361
+ }
362
+ @keyframes svelte-1af7gxu-centerButtonSpinBreath {
363
+ 0%, 100% {
364
+ transform: scale(1);
365
+ filter: drop-shadow(0 9px 13px rgba(0, 0, 0, 0.34)) brightness(1);
366
+ }
367
+ 45% {
368
+ transform: scale(1.032);
369
+ filter: drop-shadow(0 11px 18px rgba(0, 0, 0, 0.36)) brightness(1.07);
370
+ }
371
+ }
372
+ @keyframes svelte-1af7gxu-middleButtonIdleZoomGlow {
373
+ 0%, 100% {
374
+ transform: scale(1);
375
+ filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.34)) drop-shadow(0 0 10px rgba(255, 212, 46, 0.22)) brightness(1);
376
+ }
377
+ 50% {
378
+ transform: scale(1.045);
379
+ filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.36)) drop-shadow(0 0 18px rgba(255, 212, 46, 0.42)) brightness(1.08);
380
+ }
381
+ }
382
+ @keyframes svelte-1af7gxu-middleButtonPress {
383
+ 0% {
384
+ transform: scale(1);
385
+ filter: drop-shadow(0 9px 13px rgba(0, 0, 0, 0.34)) brightness(1);
386
+ }
387
+ 28% {
388
+ transform: scale(0.91);
389
+ filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.36)) brightness(0.98);
390
+ }
391
+ 68% {
392
+ transform: scale(1.045);
393
+ filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.36)) brightness(1.08);
394
+ }
395
+ 100% {
396
+ transform: scale(1);
397
+ filter: drop-shadow(0 9px 13px rgba(0, 0, 0, 0.34)) brightness(1);
398
+ }
399
+ }
400
+ @keyframes svelte-1af7gxu-prizeStageGlow {
401
+ 0% {
402
+ opacity: 0.54;
403
+ transform: scale(0.96);
404
+ filter: blur(26px);
405
+ }
406
+ 22% {
407
+ opacity: 0.94;
408
+ transform: scale(1.06);
409
+ filter: blur(20px);
410
+ }
411
+ 100% {
412
+ opacity: 0.54;
413
+ transform: scale(0.96);
414
+ filter: blur(26px);
415
+ }
416
+ }
417
+ @keyframes svelte-1af7gxu-prizeFillGlow {
418
+ 0% {
419
+ opacity: 0;
420
+ transform: scale(0.982);
421
+ }
422
+ 8% {
423
+ opacity: 0.94;
424
+ transform: scale(1.008);
425
+ }
426
+ 24% {
427
+ opacity: 0.62;
428
+ transform: scale(0.997);
429
+ }
430
+ 42% {
431
+ opacity: 0.8;
432
+ transform: scale(1.006);
433
+ }
434
+ 60% {
435
+ opacity: 0.55;
436
+ transform: scale(0.999);
437
+ }
438
+ 78% {
439
+ opacity: 0.72;
440
+ transform: scale(1.004);
441
+ }
442
+ 100% {
443
+ opacity: 0;
444
+ transform: scale(0.99);
445
+ }
446
+ }
447
+ @keyframes svelte-1af7gxu-prizeEdgePulse {
448
+ 0% {
449
+ opacity: 0;
450
+ stroke-width: 0.035;
451
+ }
452
+ 8% {
453
+ opacity: 1;
454
+ stroke-width: 0.025;
455
+ }
456
+ 24% {
457
+ opacity: 0.88;
458
+ stroke-width: 0.035;
459
+ }
460
+ 42% {
461
+ opacity: 1;
462
+ stroke-width: 0.025;
463
+ }
464
+ 60% {
465
+ opacity: 0.85;
466
+ stroke-width: 0.035;
467
+ }
468
+ 78% {
469
+ opacity: 1;
470
+ stroke-width: 0.025;
471
+ }
472
+ 100% {
473
+ opacity: 0.85;
474
+ stroke-width: 0.035;
475
+ }
476
+ }
477
+ @keyframes svelte-1af7gxu-prizeDashDance {
478
+ 0% {
479
+ opacity: 0;
480
+ stroke-dashoffset: 12;
481
+ }
482
+ 10% {
483
+ opacity: 0.94;
484
+ }
485
+ 48% {
486
+ opacity: 0.78;
487
+ }
488
+ 82% {
489
+ opacity: 0.66;
490
+ }
491
+ 100% {
492
+ opacity: 0;
493
+ stroke-dashoffset: -26;
494
+ }
495
+ }
496
+ @keyframes svelte-1af7gxu-prizeSheenSweep {
497
+ 0% {
498
+ opacity: 0;
499
+ transform: translateX(-7px) scale(0.98);
500
+ }
501
+ 12% {
502
+ opacity: 0.58;
503
+ transform: translateX(-1px) scale(1.01);
504
+ }
505
+ 36% {
506
+ opacity: 0.22;
507
+ transform: translateX(3px) scale(1);
508
+ }
509
+ 62% {
510
+ opacity: 0.42;
511
+ transform: translateX(1px) scale(1.008);
512
+ }
513
+ 100% {
514
+ opacity: 0;
515
+ transform: translateX(8px) scale(0.99);
516
+ }
517
+ }
518
+ @keyframes svelte-1af7gxu-superPrizeStageGlow {
519
+ 0% {
520
+ transform: scale(0.96);
521
+ opacity: 0.2;
522
+ filter: blur(8px);
523
+ }
524
+ 45% {
525
+ transform: scale(1.13);
526
+ opacity: 0.86;
527
+ filter: blur(13px);
528
+ }
529
+ 100% {
530
+ transform: scale(1.03);
531
+ opacity: 0.45;
532
+ filter: blur(10px);
533
+ }
534
+ }
535
+ @keyframes svelte-1af7gxu-superPrizeFillGlow {
536
+ 0% {
537
+ opacity: 0.2;
538
+ transform: scale(0.96);
539
+ }
540
+ 32% {
541
+ opacity: 1;
542
+ transform: scale(1.045);
543
+ }
544
+ 66% {
545
+ opacity: 0.72;
546
+ transform: scale(1.015);
547
+ }
548
+ 100% {
549
+ opacity: 0.58;
550
+ transform: scale(1);
551
+ }
552
+ }
553
+ @keyframes svelte-1af7gxu-superPrizeSheenSweep {
554
+ 0% {
555
+ opacity: 0;
556
+ transform: scale(0.88) rotate(-5deg);
557
+ }
558
+ 34% {
559
+ opacity: 0.95;
560
+ transform: scale(1.08) rotate(2deg);
561
+ }
562
+ 100% {
563
+ opacity: 0.2;
564
+ transform: scale(1.16) rotate(7deg);
565
+ }
566
+ }
567
+ @keyframes svelte-1af7gxu-superPrizeEdgePulse {
568
+ 0% {
569
+ opacity: 0.4;
570
+ transform: scale(0.97);
571
+ }
572
+ 38% {
573
+ opacity: 1;
574
+ transform: scale(1.055);
575
+ }
576
+ 70% {
577
+ opacity: 0.86;
578
+ transform: scale(1.018);
579
+ }
580
+ 100% {
581
+ opacity: 0.72;
582
+ transform: scale(1);
583
+ }
584
+ }
585
+ @keyframes svelte-1af7gxu-superPrizeDashDance {
586
+ 0% {
587
+ opacity: 0;
588
+ stroke-dashoffset: 20;
589
+ transform: scale(0.95);
590
+ }
591
+ 18% {
592
+ opacity: 1;
593
+ }
594
+ 100% {
595
+ opacity: 0.76;
596
+ stroke-dashoffset: -42;
597
+ transform: scale(1.04);
598
+ }
599
+ }
600
+ @keyframes svelte-1af7gxu-buttonBreath {
601
+ 0%, 100% {
602
+ transform: scale(1);
603
+ }
604
+ 50% {
605
+ transform: scale(1.035);
606
+ }
607
+ }
608
+ @keyframes svelte-1af7gxu-buttonAura {
609
+ 0%, 100% {
610
+ filter: brightness(1) saturate(1);
611
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -1px 0 rgba(83, 0, 18, 0.22), 0 4px 0 #710014, 0 13px 20px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 226, 135, 0.1);
612
+ }
613
+ 50% {
614
+ filter: brightness(1.035) saturate(1.04);
615
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(83, 0, 18, 0.18), 0 4px 0 #710014, 0 15px 24px rgba(0, 0, 0, 0.24), 0 0 18px rgba(255, 183, 36, 0.13);
616
+ }
617
+ }
618
+ @keyframes svelte-1af7gxu-buttonSheen {
619
+ 0%, 58%, 100% {
620
+ transform: translateX(-120%);
621
+ opacity: 0.22;
622
+ }
623
+ 72% {
624
+ transform: translateX(120%);
625
+ opacity: 0.42;
626
+ }
627
+ }
628
+ @keyframes svelte-1af7gxu-buttonPop {
629
+ 0% {
630
+ transform: translateY(2px) scale(0.985);
631
+ }
632
+ 48% {
633
+ transform: translateY(-2px) scale(1.018);
634
+ }
635
+ 100% {
636
+ transform: translateY(0) scale(1);
637
+ }
638
+ }
639
+ @keyframes svelte-1af7gxu-confettiFirework {
640
+ 0% {
641
+ opacity: 0;
642
+ transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
643
+ }
644
+ 9% {
645
+ opacity: 1;
646
+ transform: translate(calc(-50% + var(--tx) * 0.42), calc(-50% + var(--ty) * 0.42)) scale(1.18) rotate(calc(var(--rot) + var(--spin) * 0.24));
647
+ }
648
+ 28% {
649
+ opacity: 0.98;
650
+ transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1) rotate(calc(var(--rot) + var(--spin) * 0.56));
651
+ }
652
+ 72% {
653
+ opacity: 0.78;
654
+ transform: translate(calc(-50% + var(--tx) * 1.08), calc(-50% + var(--ty) + var(--fall) * 0.62)) scale(0.88) rotate(calc(var(--rot) + var(--spin) * 0.86));
655
+ }
656
+ 100% {
657
+ opacity: 0;
658
+ transform: translate(calc(-50% + var(--tx) * 1.14), calc(-50% + var(--ty) + var(--fall))) scale(0.62) rotate(calc(var(--rot) + var(--spin)));
659
+ }
660
+ }
661
+ @keyframes svelte-1af7gxu-swipeHandAcross {
662
+ 0%, 100% {
663
+ transform: translateX(-70px) rotate(-22deg);
664
+ opacity: 0.65;
665
+ }
666
+ 50% {
667
+ transform: translateX(70px) rotate(22deg);
668
+ opacity: 0.65;
669
+ }
670
+ 25%, 75% {
671
+ opacity: 1;
672
+ }
673
+ }
674
+ @keyframes svelte-1af7gxu-wofSpinnerFadeIn {
675
+ to {
676
+ opacity: 1;
677
+ }
678
+ }
679
+ @keyframes svelte-1af7gxu-wofSpinnerRotate {
680
+ to {
681
+ transform: rotate(360deg);
682
+ }
683
+ }
684
+ @keyframes svelte-1af7gxu-titleSparkle {
685
+ 0% {
686
+ opacity: 0;
687
+ transform: scale(0.2) rotate(0deg);
688
+ }
689
+ 40% {
690
+ opacity: 1;
691
+ transform: scale(1.4) rotate(35deg);
692
+ }
693
+ 100% {
694
+ opacity: 0;
695
+ transform: scale(0.6) translateY(-20px) rotate(75deg);
696
+ }
697
+ }
698
+ @keyframes svelte-1af7gxu-drawResultPop {
699
+ 0% {
700
+ opacity: 0;
701
+ transform: scale(0.92) translateY(8px);
702
+ }
703
+ 62% {
704
+ opacity: 1;
705
+ transform: scale(1.016) translateY(-2px);
706
+ }
707
+ 100% {
708
+ opacity: 1;
709
+ transform: scale(1) translateY(0);
710
+ }
711
+ }
712
+ @keyframes svelte-1af7gxu-successElementIn {
713
+ 0% {
714
+ opacity: 0;
715
+ transform: translate3d(0, 18px, 0) scale(0.98);
716
+ filter: blur(3px);
717
+ }
718
+ 70% {
719
+ opacity: 1;
720
+ transform: translate3d(0, -2px, 0) scale(1.01);
721
+ filter: blur(0);
722
+ }
723
+ 100% {
724
+ opacity: 1;
725
+ transform: translate3d(0, 0, 0) scale(1);
726
+ filter: blur(0);
727
+ }
728
+ }
729
+ @keyframes svelte-1af7gxu-successConfettiFall {
730
+ 0% {
731
+ opacity: 0;
732
+ transform: translate3d(-50%, -18px, 0) rotate(var(--rot)) scale(0.62);
733
+ }
734
+ 9% {
735
+ opacity: 1;
736
+ }
737
+ 46% {
738
+ opacity: 0.96;
739
+ transform: translate3d(calc(-50% + var(--tx) * 0.55), 48vh, 0) rotate(calc(var(--rot) + var(--spin) * 0.52)) scale(1);
740
+ }
741
+ 100% {
742
+ opacity: 0;
743
+ transform: translate3d(calc(-50% + var(--tx)), 108vh, 0) rotate(calc(var(--rot) + var(--spin))) scale(0.86);
744
+ }
745
+ }
746
+ @keyframes svelte-1af7gxu-prizeCoinFloatZoom {
747
+ 0%, 100% {
748
+ transform: translate3d(0, 0, 0) scale(1);
749
+ }
750
+ 50% {
751
+ transform: translate3d(0, -8px, 0) scale(1.065);
752
+ }
753
+ }
754
+ @media (prefers-reduced-motion: reduce) { .wheel-wrapper,
755
+ .wheel-wrapper::before,
756
+ .wheel-wrapper::after,
757
+ .drop-wrap,
758
+ .wheel-disc,
759
+ .center-button,
760
+ .button-glow,
761
+ .spin-button {
762
+ animation: none !important;}
763
+ } .draw-result-panel {flex:1;z-index:20;display:grid;place-items:center;padding:20px;text-align:center;overflow:hidden;width:100%;background:transparent;
764
+ animation: svelte-1af7gxu-drawResultPop 420ms cubic-bezier(0.16, 0.92, 0.22, 1.04) both;} .draw-result-confetti-layer {position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;} .success-confetti-piece {--x: 50%;--tx: 0px;--rot: 0deg;--spin: 360deg;--hue: #ffd23e;--w: 8px;--h: 12px;--d: 1800ms;position:absolute;left:var(--x);top:-24px;width:var(--w);height:var(--h);border-radius:3px;background:var(--hue);filter:drop-shadow(0 0 5px rgba(255, 218, 74, 0.24));transform-origin:center;
765
+ animation: svelte-1af7gxu-successConfettiFall var(--d) cubic-bezier(0.16, 0.68, 0.2, 1) forwards;} .success-confetti-piece.is-diamond {border-radius:2px;transform:rotate(45deg);} .success-confetti-piece.is-ribbon {border-radius:8px 2px;} .draw-result-stack {width:100%;display:grid;justify-items:center;position:relative;z-index:2;transform:translateY(clamp(16px, 5vw, 30px));} .draw-result-stack img {width:60%;max-width:300px;} .draw-result-stack img.lose {filter:saturate(0%);} .draw-result-stack .draw-result-image-wrap {width:70%;max-width:350px;} .draw-result-stack .draw-result-image-wrap img {width:100%;max-width:none;} .coin {width:clamp(140px, 38vw, 196px);height:clamp(142px, 38.5vw, 198px);display:grid;place-items:center;border-radius:0;opacity:0;transform:translate3d(0, 18px, 0) scale(0.98);will-change:opacity, transform;
766
+ animation: svelte-1af7gxu-successElementIn 620ms cubic-bezier(0.16, 0.92, 0.22, 1) 90ms both;} .coin svg,
767
+ .coin img {width:100%;height:100%;object-fit:contain;transform-origin:50% 54%;
768
+ animation: svelte-1af7gxu-prizeCoinFloatZoom 1800ms ease-in-out infinite;} .draw-result-title {position:relative;margin:clamp(18px, 5vw, 26px) 0 clamp(14px, 4vw, 20px);color:var(--color-text-brand, #ffcc00);font-size:clamp(26px, 7.5vw, 36px);line-height:1.05;font-weight:900;opacity:0;transform:translate3d(0, 18px, 0) scale(0.98);
769
+ animation: svelte-1af7gxu-successElementIn 560ms cubic-bezier(0.16, 0.92, 0.22, 1) 250ms both;} .draw-result-sparkle {position:absolute;color:var(--color-text-brand, #ffcc00);filter:drop-shadow(0 0 5px rgba(255, 204, 0, 0.9));opacity:0;pointer-events:none;
770
+ animation: svelte-1af7gxu-titleSparkle 900ms ease-out forwards;} .draw-result-description {margin:0;color:var(--color-text-default, #ffffff);font-size:clamp(14px, 3.8vw, 17px);line-height:1.55;opacity:0;transform:translate3d(0, 18px, 0) scale(0.98);
771
+ animation: svelte-1af7gxu-successElementIn 560ms cubic-bezier(0.16, 0.92, 0.22, 1) 390ms both;} .draw-result-description span {font-size:clamp(15px, 4.1vw, 19px);font-weight:900;} .draw-result-error-image {max-width:170px;} .draw-result-description--error {margin:0 20px;} .draw-result-actions {display:grid;justify-items:center;gap:12px;margin-top:clamp(16px, 4.5vw, 26px);opacity:0;transform:translate3d(0, 18px, 0) scale(0.98);
772
+ animation: svelte-1af7gxu-successElementIn 560ms cubic-bezier(0.16, 0.92, 0.22, 1) 560ms both;} .button-spinner {position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px;width:18px;height:18px;border:2px solid transparent;border-top-color:currentColor;border-right-color:currentColor;border-radius:50%;
773
+ animation: svelte-1af7gxu-wofSpinnerRotate 600ms linear infinite;} .primary-cta {position:relative;min-width:clamp(148px, 42vw, 210px);min-height:clamp(42px, 10.5vw, 50px);border:none;border-radius:999px;color:var(--color-text-button-primary, #261d00);background:linear-gradient(180deg, var(--color-button-primary, #ffd91c) 0%, var(--color-button-primary-hover, #ffbf00) 100%);box-shadow:0 9px 13px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);font:inherit;font-size:clamp(15px, 4vw, 19px);font-weight:900;cursor:pointer;padding:0 20px;transition:transform 160ms ease, filter 160ms ease;} .primary-cta:hover {filter:brightness(1.06);transform:translateY(-1px);} .primary-cta:active {transform:translateY(2px) scale(0.98);} .secondary-cta {position:relative;background-color:var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843));color:var(--color-text-subtle, rgba(238, 246, 255, 0.8196078431));font:inherit;font-size:clamp(13px, 3.4vw, 15px);font-weight:750;cursor:pointer;border:1px solid var(--color-text-subtle, rgba(238, 246, 255, 0.8196078431));border-radius:999px;padding:10px 20px;} .confirm-modal-content {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:10;width:70%;height:85%;max-height:500px;padding:10px 12px;background:rgba(8, 4, 0, 0.95);backdrop-filter:blur(16px);border:1px solid rgba(255, 255, 255, 0.1);border-radius:10px;text-align:center;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;} .confirm-modal-title {color:#ffffff;font-size:26px;font-weight:700;letter-spacing:0.2px;margin:0 0 4px;} .confirm-modal-body {color:rgba(255, 255, 255, 0.6509803922);font-size:14px;line-height:1.45;margin:0 0 10px;} .confirm-modal-actions {display:flex;flex-direction:column;gap:8px;justify-content:center;align-items:center;} .confirm-modal-actions button {width:fit-content;}
774
+ @media (prefers-reduced-motion: reduce) { .coin,
775
+ .draw-result-title,
776
+ .draw-result-description,
777
+ .draw-result-actions {opacity:1;transform:none;filter:none;} .coin svg,
778
+ .coin img {
779
+ animation: none;} .success-confetti-piece {
780
+ animation: none;}
781
+ } .game-back-button {position:relative;z-index:2;display:flex;align-items:center;justify-content:start;gap:10px;width:100%;max-width:700px;height:52px;flex-shrink:0;margin:0 auto;padding:10px;line-height:20px;border-radius:6px;background:transparent;border:none;color:var(--white);cursor:pointer;font-size:16px;} .game-back-button--hidden {display:none;} .game-back-button__icon {width:25px;height:25px;padding:7px;border-radius:50%;background:var(--color-overlay-neutral-2, rgba(255, 255, 255, 0.14));box-sizing:border-box;transition:transform 0.12s ease;} .game-back-button:active .game-back-button__icon {transform:scale(0.92);} .game-back-button__label {margin:0;}
782
+ @media (max-width: 767px) { .game-back-button {display:grid;grid-template-columns:40px 1fr 40px;align-items:center;gap:0;align-self:stretch;width:auto;height:44px;margin:12px 2px;padding:4px 8px;font-size:16px;line-height:24px;background-color:var(--color-bg-surface-level-3, var(--color-overlay-neutral-1, rgba(251, 251, 251, 0.1019607843)));} .game-back-button__icon {justify-self:start;width:24px;height:24px;margin-left:6px;padding:4px;background:var(--color-overlay-neutral-2, rgba(251, 251, 251, 0.2));} .game-back-button__label {overflow:hidden;font-weight:500;text-align:center;text-overflow:ellipsis;white-space:nowrap;}
783
+ }`
784
+ };
785
+ function Ln(w, p) {
786
+ Zt(p, !0), At(w, Sn);
787
+ const i = () => Vt(qt, "$_", Ye), [Ye, fe] = Jt(), x = Q(p, "program", 7, null), K = Q(p, "endpoint", 7, null), L = Q(p, "session", 7, null), R = Q(p, "language", 7, "en"), F = Q(p, "showBackButton", 7, !0), re = Q(p, "liteMode", 7, !1), $ = ["history", "play", "rules"], j = { x: 0.38, y: 0.61, width: 0.22, ratio: 1.5 }, ct = [
788
+ { left: 17.34, size: 7.02, duration: 8.3, delay: 0.82 },
789
+ { left: 17.65, size: 7.04, duration: 5.23, delay: 0.87 },
790
+ { left: 22.05, size: 6.06, duration: 8.1, delay: 4.14 },
791
+ { left: 32.98, size: 3.94, duration: 8.5, delay: 5.97 },
792
+ { left: 33.48, size: 4.65, duration: 5.54, delay: 2.22 },
793
+ { left: 86.92, size: 5.49, duration: 6.98, delay: 5.13 },
794
+ { left: 69.3, size: 4.59, duration: 9.94, delay: 4.69 },
795
+ { left: 59.41, size: 6.79, duration: 7.18, delay: 2.33 },
796
+ { left: 88.73, size: 4.55, duration: 8.69, delay: 2.98 },
797
+ { left: 83.45, size: 6.33, duration: 9.85, delay: 4.96 },
798
+ { left: 38.41, size: 6.88, duration: 8.47, delay: 2.86 },
799
+ { left: 68.36, size: 5.33, duration: 5.15, delay: 2.17 },
800
+ { left: 87.64, size: 4.64, duration: 5.11, delay: 5.7 },
801
+ { left: 34.09, size: 7.96, duration: 8.16, delay: 2.01 }
802
+ ], ye = "M50 18 C33 18 20 31 20 48 C20 60 27 69 37 73 L29 128 C28 133 32 137 37 137 L63 137 C68 137 72 133 71 128 L63 73 C73 69 80 60 80 48 C80 31 67 18 50 18 Z";
803
+ let A = z(je($[1])), Z = z(null), W = z(!1), se = z(!1), ge = z(!1), g = z("drag"), M = z(null);
804
+ const Ie = ne(() => {
805
+ var e, n;
806
+ return !!K() && !!x() && ((n = (e = x()) == null ? void 0 : e.remainingTimes) != null ? n : 0) > 0;
807
+ }), oe = ne(() => {
808
+ var e, n;
809
+ return !!x() && ((n = (e = x()) == null ? void 0 : e.remainingTimes) != null ? n : 0) <= 0;
810
+ }), Te = ne(() => t(Ie) && !t(W) && !t(se) && !t(ge)), N = (e) => new Promise((n) => setTimeout(n, e));
811
+ let ie = z(je({}));
812
+ Wt(() => {
813
+ if (t(oe))
814
+ return rn({
815
+ getTarget: () => {
816
+ var e, n;
817
+ return (n = (e = x()) == null ? void 0 : e.next) == null ? void 0 : n.startTime;
818
+ },
819
+ onTick: (e) => o(ie, e, !0),
820
+ // Hub refetches programs and re-targets activeGame to the live one.
821
+ onElapsed: () => window.postMessage({ type: "PrizeGameCountdownElapsed" }, window.location.href)
822
+ });
823
+ });
824
+ const pt = () => window.postMessage({ type: "CloseMiniGame" }, window.location.href), mt = (e) => {
825
+ e === t(A) || t(W) || o(A, e, !0);
826
+ }, dt = (e) => me(this, null, function* () {
827
+ var h;
828
+ const n = new URL(`${K()}/v1/wof/draw/${(h = x()) == null ? void 0 : h.id}`), a = new Headers();
829
+ return L() && a.append("X-SessionId", L()), a.append("Content-Type", "application/json"), (yield fetch(n, {
830
+ method: "PUT",
831
+ headers: a,
832
+ cache: "no-store",
833
+ body: JSON.stringify({ action: 1, guid: e })
834
+ })).json();
835
+ }), ft = () => {
836
+ if (t(he)) {
837
+ const n = t(he).getBoundingClientRect();
838
+ return { x: n.left + n.width / 2, y: n.top + n.height / 2 };
839
+ }
840
+ if (!t(V)) return null;
841
+ const e = t(V).getBoundingClientRect();
842
+ return {
843
+ x: e.left + e.width * j.x,
844
+ y: e.top + e.height * j.y
845
+ };
846
+ }, De = () => {
847
+ o(g, "drag"), o(M, null);
848
+ }, yt = (e, n) => me(this, null, function* () {
849
+ const a = ft();
850
+ a && (o(g, "flying"), o(M, { x: e, y: n, scale: 1, rot: 0 }, !0), yield N(30), o(M, { x: a.x - 80, y: a.y, scale: 1, rot: 0 }, !0), yield N(570), o(g, "inserting"), o(M, { x: a.x, y: a.y - 15, scale: 1, rot: 0 }, !0), yield N(350), o(g, "fading"), yield N(300), o(g, "filling"), o(M, null), yield N(700));
851
+ }), gt = () => me(this, null, function* () {
852
+ o(g, "opening"), o(M, null), yield N(2400);
853
+ }), Ge = (e, n) => me(this, null, function* () {
854
+ var H, I, U;
855
+ if (!t(Te)) return;
856
+ if (o(W, !0), o(se, !1), e === void 0 || n === void 0) {
857
+ const v = (H = t(le)) == null ? void 0 : H.getBoundingClientRect();
858
+ e = v ? v.left + v.width / 2 : window.innerWidth / 2, n = v ? v.top + v.height / 2 : window.innerHeight / 2;
859
+ }
860
+ let a = !1;
861
+ const f = setTimeout(
862
+ () => {
863
+ a || (a = !0, o(se, !0), o(W, !1), De());
864
+ },
865
+ an
866
+ ), h = en(), Y = dt(h).catch((v) => (console.log(v), null));
867
+ yield yt(e, n), yield gt();
868
+ const J = yield Y;
869
+ if (!a) {
870
+ if (a = !0, clearTimeout(f), J) {
871
+ const v = tn(J, "draw");
872
+ o(
873
+ Z,
874
+ st(rt({}, v), {
875
+ guid: h,
876
+ lotteryProgramID: (U = v.lotteryProgramID) != null ? U : (I = x()) == null ? void 0 : I.id
877
+ }),
878
+ !0
879
+ );
880
+ }
881
+ o(W, !1), De();
882
+ }
883
+ }), ht = () => o(se, !1);
884
+ let V = z(void 0), le = z(void 0), he = z(void 0), q = z(!1), ue = z(je({ x: 0, y: 0 })), xe = z(!1), Be = { x: 0, y: 0 }, Ee = { x: 0, y: 0 };
885
+ const ut = () => {
886
+ if (!t(V) || !t(le)) return !1;
887
+ const e = t(V).getBoundingClientRect(), n = t(le).getBoundingClientRect(), a = e.width * j.width, f = a * j.ratio, h = e.left + e.width * j.x - a / 2, Y = e.top + e.height * j.y - f / 2;
888
+ return n.left < h + a && n.right > h && n.top < Y + f && n.bottom > Y;
889
+ }, xt = (e) => {
890
+ !t(Te) || t(q) || (o(q, !0), Be = { x: e.clientX, y: e.clientY }, Ee = { x: e.clientX, y: e.clientY });
891
+ }, Xe = (e) => {
892
+ t(q) && (o(ue, { x: e.clientX - Be.x, y: e.clientY - Be.y }, !0), Ee = { x: e.clientX, y: e.clientY }, o(xe, ut(), !0));
893
+ }, Ke = (e) => {
894
+ if (!t(q)) return;
895
+ const n = e && t(xe), a = Ee;
896
+ o(q, !1), o(xe, !1), o(ue, { x: 0, y: 0 }, !0), n && Ge(a.x, a.y);
897
+ }, Oe = () => Ke(!0), Fe = () => Ke(!1), Ae = () => on({
898
+ endpoint: K(),
899
+ session: L(),
900
+ program: Qt(x())
901
+ }).finally(() => {
902
+ o(ge, !1);
903
+ }), He = sn({
904
+ onReset: () => o(Z, null),
905
+ onSkipFetch: () => o(ge, !0),
906
+ refetch: Ae
907
+ });
908
+ Ht(() => (window.addEventListener("message", He), window.addEventListener("pointermove", Xe), window.addEventListener("pointerup", Oe), window.addEventListener("pointercancel", Fe), () => {
909
+ window.removeEventListener("message", He), window.removeEventListener("pointermove", Xe), window.removeEventListener("pointerup", Oe), window.removeEventListener("pointercancel", Fe);
910
+ }));
911
+ var vt = {
912
+ get program() {
913
+ return x();
914
+ },
915
+ set program(e = null) {
916
+ x(e), ae();
917
+ },
918
+ get endpoint() {
919
+ return K();
920
+ },
921
+ set endpoint(e = null) {
922
+ K(e), ae();
923
+ },
924
+ get session() {
925
+ return L();
926
+ },
927
+ set session(e = null) {
928
+ L(e), ae();
929
+ },
930
+ get language() {
931
+ return R();
932
+ },
933
+ set language(e = "en") {
934
+ R(e), ae();
935
+ },
936
+ get showBackButton() {
937
+ return F();
938
+ },
939
+ set showBackButton(e = !0) {
940
+ F(e), ae();
941
+ },
942
+ get liteMode() {
943
+ return re();
944
+ },
945
+ set liteMode(e = !1) {
946
+ re(e), ae();
947
+ }
948
+ }, ve = Pn();
949
+ let Ue;
950
+ var Pe = m(ve), $e = m(Pe), bt = c($e, 2);
951
+ {
952
+ var _t = (e) => {
953
+ var n = it(), a = de(n);
954
+ {
955
+ var f = (h) => {
956
+ var Y = it(), J = de(Y);
957
+ ot(J, 17, () => ct, Ut, (H, I) => {
958
+ var U = hn();
959
+ let v;
960
+ P(() => {
961
+ var _e, ce, we, pe, ke;
962
+ return v = te(U, "", v, {
963
+ left: `${(_e = t(I).left) != null ? _e : ""}%`,
964
+ width: `${(ce = t(I).size) != null ? ce : ""}px`,
965
+ height: `${(we = t(I).size) != null ? we : ""}px`,
966
+ "animation-duration": `${(pe = t(I).duration) != null ? pe : ""}s`,
967
+ "animation-delay": `${(ke = t(I).delay) != null ? ke : ""}s`
968
+ });
969
+ }), y(H, U);
970
+ }), y(h, Y);
971
+ };
972
+ B(a, (h) => {
973
+ re() || h(f);
974
+ });
975
+ }
976
+ y(e, n);
977
+ };
978
+ B(bt, (e) => {
979
+ t(Z) || e(_t);
980
+ });
981
+ }
982
+ d(Pe);
983
+ var Ze = c(Pe, 2);
984
+ {
985
+ let e = ne(() => !F());
986
+ mn(Ze, {
987
+ onClick: pt,
988
+ get hidden() {
989
+ return t(e);
990
+ }
991
+ });
992
+ }
993
+ var Se = c(Ze, 2), Le = m(Se), wt = m(Le, !0);
994
+ d(Le);
995
+ var We = c(Le, 2), kt = m(We, !0);
996
+ d(We), d(Se);
997
+ var be = c(Se, 2), Ne = m(be);
998
+ let Ve;
999
+ var zt = c(Ne, 2);
1000
+ ot(zt, 16, () => $, (e) => e, (e, n) => {
1001
+ var a = un();
1002
+ let f;
1003
+ var h = m(a, !0);
1004
+ d(a), P(
1005
+ (Y) => {
1006
+ f = ee(a, 1, "mystery-chest__tab svelte-1af7gxu", null, f, { "mystery-chest__tab--active": t(A) === n }), X(a, "aria-selected", t(A) === n), E(h, Y);
1007
+ },
1008
+ [() => i()(n)]
1009
+ ), Ce("click", a, () => mt(n)), y(e, a);
1010
+ }), d(be);
1011
+ var Ct = c(be, 2);
1012
+ {
1013
+ var Yt = (e) => {
1014
+ {
1015
+ let n = ne(() => ({ noPrize: yn, win: gn }));
1016
+ ln(e, {
1017
+ get result() {
1018
+ return t(Z);
1019
+ },
1020
+ get endpoint() {
1021
+ return K();
1022
+ },
1023
+ get session() {
1024
+ return L();
1025
+ },
1026
+ get liteMode() {
1027
+ return re();
1028
+ },
1029
+ get images() {
1030
+ return t(n);
1031
+ },
1032
+ noPrizeDust: !0,
1033
+ onFetchRemainingTimes: Ae
1034
+ });
1035
+ }
1036
+ }, Tt = (e) => {
1037
+ var n = En(), a = de(n), f = m(a);
1038
+ let h;
1039
+ var Y = m(f);
1040
+ {
1041
+ var J = (s) => {
1042
+ var r = xn();
1043
+ nn(4), y(s, r);
1044
+ };
1045
+ B(Y, (s) => {
1046
+ t(g) === "opening" && s(J);
1047
+ });
1048
+ }
1049
+ var H = c(Y, 2), I = c(H, 2);
1050
+ {
1051
+ var U = (s) => {
1052
+ var r = _n();
1053
+ let l, k;
1054
+ var u = m(r);
1055
+ X(u, "d", ye);
1056
+ var b = c(u);
1057
+ {
1058
+ var _ = (T) => {
1059
+ var O = vn();
1060
+ X(O, "d", ye), y(T, O);
1061
+ }, D = (T) => {
1062
+ var O = bn(), C = de(O);
1063
+ X(C, "d", ye);
1064
+ var G = c(C);
1065
+ X(G, "d", ye), y(T, O);
1066
+ };
1067
+ B(b, (T) => {
1068
+ t(g) === "filling" ? T(_) : T(D, -1);
1069
+ });
1070
+ }
1071
+ d(r), Re(r, (T) => o(he, T), () => t(he)), P(() => {
1072
+ l = ee(r, 0, "mystery-chest__keyhole svelte-1af7gxu", null, l, {
1073
+ "mystery-chest__keyhole--active": t(xe),
1074
+ "mystery-chest__keyhole--filling": t(g) === "filling"
1075
+ }), k = te(r, "", k, {
1076
+ left: `${j.x * 100}%`,
1077
+ top: `${j.y * 100}%`,
1078
+ width: `${j.width * 100}%`
1079
+ });
1080
+ }), y(s, r);
1081
+ };
1082
+ B(I, (s) => {
1083
+ t(oe) || s(U);
1084
+ });
1085
+ }
1086
+ var v = c(I, 2);
1087
+ {
1088
+ var _e = (s) => {
1089
+ var r = wn();
1090
+ let l;
1091
+ P(() => l = te(r, "", l, { left: `${j.x * 100}%`, top: `${j.y * 100}%` })), y(s, r);
1092
+ };
1093
+ B(v, (s) => {
1094
+ t(g) === "filling" && s(_e);
1095
+ });
1096
+ }
1097
+ d(f), Re(f, (s) => o(V, s), () => t(V));
1098
+ var ce = c(f, 2);
1099
+ {
1100
+ var we = (s) => {
1101
+ var r = kn();
1102
+ let l, k;
1103
+ var u = m(r);
1104
+ d(r), Re(r, (b) => o(le, b), () => t(le)), P(() => {
1105
+ var b, _;
1106
+ l = ee(r, 1, "mystery-chest__key svelte-1af7gxu", null, l, {
1107
+ "mystery-chest__key--dragging": t(q),
1108
+ "mystery-chest__key--hidden": t(g) !== "drag"
1109
+ }), k = te(r, "", k, {
1110
+ transform: `translate3d(${(b = t(ue).x) != null ? b : ""}px, ${(_ = t(ue).y) != null ? _ : ""}px, 0)`
1111
+ }), X(u, "src", lt);
1112
+ }), Ce("pointerdown", r, xt), y(s, r);
1113
+ };
1114
+ B(ce, (s) => {
1115
+ t(oe) || s(we);
1116
+ });
1117
+ }
1118
+ var pe = c(ce, 2);
1119
+ {
1120
+ var ke = (s) => {
1121
+ var r = zn();
1122
+ let l;
1123
+ P(() => {
1124
+ var k, u, b, _, D;
1125
+ ee(r, 1, `mystery-chest__key-fly mystery-chest__key-fly--${(k = t(g)) != null ? k : ""}`, "svelte-1af7gxu"), X(r, "src", lt), l = te(r, "", l, {
1126
+ left: `${(u = t(M).x) != null ? u : ""}px`,
1127
+ top: `${(b = t(M).y) != null ? b : ""}px`,
1128
+ transform: `translate(-50%, -50%) rotate(${(_ = t(M).rot) != null ? _ : ""}deg) scale(${(D = t(M).scale) != null ? D : ""})`
1129
+ });
1130
+ }), y(s, r);
1131
+ };
1132
+ B(pe, (s) => {
1133
+ t(M) && s(ke);
1134
+ });
1135
+ }
1136
+ var St = c(pe, 2);
1137
+ {
1138
+ var Lt = (s) => {
1139
+ var r = Cn(), l = m(r), k = m(l, !0);
1140
+ d(l);
1141
+ var u = c(l, 2), b = m(u, !0);
1142
+ d(u);
1143
+ var _ = c(u, 2), D = m(_, !0);
1144
+ d(_), d(r), P(
1145
+ (T, O, C) => {
1146
+ E(k, T), E(b, O), E(D, C);
1147
+ },
1148
+ [
1149
+ () => i()("timeoutTitle"),
1150
+ () => i()("timeoutDescription"),
1151
+ () => i()("close")
1152
+ ]
1153
+ ), Ce("click", _, ht), y(s, r);
1154
+ }, Rt = (s) => {
1155
+ var r = Yn(), l = m(r), k = m(l, !0);
1156
+ d(l);
1157
+ var u = c(l, 2), b = m(u, !0);
1158
+ d(u), d(r), P(
1159
+ (_, D) => {
1160
+ E(k, _), E(b, D);
1161
+ },
1162
+ [
1163
+ () => i()("nextAvailable"),
1164
+ () => i()("countdown", {
1165
+ values: {
1166
+ days: t(ie).days,
1167
+ hours: t(ie).hours,
1168
+ minutes: t(ie).minutes,
1169
+ seconds: t(ie).seconds
1170
+ }
1171
+ })
1172
+ ]
1173
+ ), y(s, r);
1174
+ };
1175
+ B(St, (s) => {
1176
+ t(se) ? s(Lt) : t(oe) && s(Rt, 1);
1177
+ });
1178
+ }
1179
+ d(a);
1180
+ var qe = c(a, 2);
1181
+ {
1182
+ var jt = (s) => {
1183
+ var r = Bn(), l = de(r), k = m(l, !0);
1184
+ d(l);
1185
+ var u = c(l, 2), b = m(u), _ = c(b), D = c(m(_), 2);
1186
+ {
1187
+ var T = (C) => {
1188
+ var G = Tn();
1189
+ y(C, G);
1190
+ }, O = (C) => {
1191
+ var G = $t();
1192
+ P(() => {
1193
+ var Je, Qe, et, tt;
1194
+ return E(G, (tt = (Qe = (Je = x()) == null ? void 0 : Je.current) == null ? void 0 : Qe.remainingTimes) != null ? tt : (et = x()) == null ? void 0 : et.remainingTimes);
1195
+ }), y(C, G);
1196
+ };
1197
+ B(D, (C) => {
1198
+ t(ge) ? C(T) : C(O, -1);
1199
+ });
1200
+ }
1201
+ d(_), d(u), P(
1202
+ (C, G) => {
1203
+ E(k, C), E(b, `${G != null ? G : ""} `);
1204
+ },
1205
+ [() => i()("dragKeyToKeyhole"), () => i()("remainingKeys")]
1206
+ ), y(s, r);
1207
+ };
1208
+ B(qe, (s) => {
1209
+ t(Ie) && s(jt);
1210
+ });
1211
+ }
1212
+ var ze = c(qe, 2), Mt = m(ze, !0);
1213
+ d(ze), P(
1214
+ (s) => {
1215
+ h = ee(f, 1, "mystery-chest__chest svelte-1af7gxu", null, h, {
1216
+ "mystery-chest__chest--still": t(g) === "flying" || t(g) === "inserting",
1217
+ "mystery-chest__chest--filling": t(g) === "filling",
1218
+ "mystery-chest__chest--opening": t(g) === "opening",
1219
+ "mystery-chest__chest--locked": t(oe)
1220
+ }), X(H, "src", fn), ze.disabled = !t(Te), E(Mt, s);
1221
+ },
1222
+ [() => i()("openChest")]
1223
+ ), Ce("click", ze, () => Ge()), y(e, n);
1224
+ }, Bt = (e) => {
1225
+ {
1226
+ let n = ne(() => {
1227
+ var a;
1228
+ return (a = x()) == null ? void 0 : a.id;
1229
+ });
1230
+ cn(e, {
1231
+ get programId() {
1232
+ return t(n);
1233
+ },
1234
+ get endpoint() {
1235
+ return K();
1236
+ },
1237
+ get session() {
1238
+ return L();
1239
+ }
1240
+ });
1241
+ }
1242
+ }, Et = (e) => {
1243
+ pn(e, {
1244
+ get program() {
1245
+ return x();
1246
+ },
1247
+ get language() {
1248
+ return R();
1249
+ }
1250
+ });
1251
+ };
1252
+ B(Ct, (e) => {
1253
+ t(Z) ? e(Yt) : t(A) === $[1] ? e(Tt, 1) : t(A) === $[0] ? e(Bt, 2) : e(Et, -1);
1254
+ });
1255
+ }
1256
+ d(ve), P(
1257
+ (e, n, a, f) => {
1258
+ Ue = ee(ve, 1, "mystery-chest svelte-1af7gxu", null, Ue, {
1259
+ "mystery-chest--lite": re(),
1260
+ "mystery-chest--result": !!t(Z),
1261
+ "mystery-chest--plain": t(A) !== $[1],
1262
+ "mystery-chest--busy": t(W),
1263
+ "mystery-chest--opening": t(g) === "opening",
1264
+ "mystery-chest--no-back": !F()
1265
+ }), X($e, "src", dn), E(wt, e), E(kt, n), X(be, "aria-label", a), Ve = te(Ne, "", Ve, f);
1266
+ },
1267
+ [
1268
+ () => i()("mysteryChestTitle"),
1269
+ () => i()("wofSubtitle"),
1270
+ () => i()("mysteryChestTitle"),
1271
+ () => ({
1272
+ transform: `translateX(${$.indexOf(t(A)) * 100}%)`
1273
+ })
1274
+ ]
1275
+ ), y(w, ve);
1276
+ var Pt = Nt(vt);
1277
+ return fe(), Pt;
1278
+ }
1279
+ Ot(["click", "pointerdown"]);
1280
+ Ft(
1281
+ Ln,
1282
+ {
1283
+ program: {},
1284
+ endpoint: {},
1285
+ session: {},
1286
+ language: {},
1287
+ showBackButton: {},
1288
+ liteMode: {}
1289
+ },
1290
+ [],
1291
+ [],
1292
+ { mode: "open" }
1293
+ );
1294
+ export {
1295
+ Ln as M
1296
+ };