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