@mblinkov/whats-missing 20.0.54 → 20.0.55
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/dist/Game.d.ts +1 -0
- package/dist/themes.d.ts +1 -1
- package/dist/whats-missing.cjs.js +3 -3
- package/dist/whats-missing.es.js +625 -377
- package/package.json +42 -42
package/dist/whats-missing.es.js
CHANGED
|
@@ -1,92 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
const
|
|
4
|
-
src: `${oi}${g}/${s.replace(/\s/g, "%20")}.png`,
|
|
5
|
-
name: s,
|
|
6
|
-
aliases: b?.length ? b : void 0
|
|
7
|
-
})), ri = [
|
|
8
|
-
["apple", "apple"],
|
|
9
|
-
["banana", "banana"],
|
|
10
|
-
["bread", "bread"],
|
|
11
|
-
["burger", "burger"],
|
|
12
|
-
["cake", "cake"],
|
|
13
|
-
["carrot", "carrot"],
|
|
14
|
-
["cheese", "cheese"],
|
|
15
|
-
["chicken", "chicken"],
|
|
16
|
-
["chocolate", "chocolate"],
|
|
17
|
-
["corn", "corn"],
|
|
18
|
-
["donut", "donut"],
|
|
19
|
-
["fish", "fish"],
|
|
20
|
-
["fries", "fries"],
|
|
21
|
-
["grapes", "grapes"],
|
|
22
|
-
["ice_cream", "ice cream"],
|
|
23
|
-
["milk", "milk"],
|
|
24
|
-
["orange", "orange"],
|
|
25
|
-
["pear", "pear"],
|
|
26
|
-
["pizza", "pizza"],
|
|
27
|
-
["rice", "rice"],
|
|
28
|
-
["sandwich", "sandwich"],
|
|
29
|
-
["soup", "soup"],
|
|
30
|
-
["strawberry", "strawberry"],
|
|
31
|
-
["tomato", "tomato"],
|
|
32
|
-
["watermelon", "watermelon"]
|
|
33
|
-
], hi = [
|
|
34
|
-
["bear", "bear"],
|
|
35
|
-
["cat", "cat"],
|
|
36
|
-
["crocodile", "crocodile", "alligator"],
|
|
37
|
-
["dolphin", "dolphin"],
|
|
38
|
-
["elephant", "elephant"],
|
|
39
|
-
["fox", "fox"],
|
|
40
|
-
["giraffe", "giraffe"],
|
|
41
|
-
["horse", "horse"],
|
|
42
|
-
["kangaroo", "kangaroo"],
|
|
43
|
-
["lion", "lion"],
|
|
44
|
-
["monkey", "monkey"],
|
|
45
|
-
["owl", "owl"],
|
|
46
|
-
["panda", "panda"],
|
|
47
|
-
["penguin", "penguin"],
|
|
48
|
-
["squirrel", "squirrel"],
|
|
49
|
-
["tiger", "tiger"],
|
|
50
|
-
["tortoise", "tortoise", "turtle"],
|
|
51
|
-
["wolf", "wolf"],
|
|
52
|
-
["zebra", "zebra"]
|
|
53
|
-
], si = [
|
|
54
|
-
["ball", "ball"],
|
|
55
|
-
["balloon", "balloon"],
|
|
56
|
-
["blocks", "blocks"],
|
|
57
|
-
["car", "car"],
|
|
58
|
-
["doll", "doll"],
|
|
59
|
-
["drum", "drum"],
|
|
60
|
-
["guitar", "guitar"],
|
|
61
|
-
["jump_rope", "jump rope"],
|
|
62
|
-
["kite", "kite"],
|
|
63
|
-
["paints", "paints"],
|
|
64
|
-
["plane", "plane"],
|
|
65
|
-
["puzzle", "puzzle"],
|
|
66
|
-
["rocket", "rocket"],
|
|
67
|
-
["scooter", "scooter"],
|
|
68
|
-
["skateboard", "skateboard"],
|
|
69
|
-
["slide", "slide"],
|
|
70
|
-
["teddy_bear", "teddy bear"],
|
|
71
|
-
["yo-yo", "yo-yo"],
|
|
72
|
-
["crayons", "crayons"]
|
|
73
|
-
], K = {
|
|
74
|
-
food: gn(ri, "food"),
|
|
75
|
-
animals: gn(hi, "animals"),
|
|
76
|
-
toys: gn(si, "toys")
|
|
77
|
-
}, gi = `
|
|
1
|
+
import { jsx as w, jsxs as p, Fragment as Ln } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as U, useEffect as q, useState as h, useMemo as ri } from "react";
|
|
3
|
+
const hi = `
|
|
78
4
|
@keyframes spin {
|
|
79
5
|
from { transform: rotate(0deg); }
|
|
80
6
|
to { transform: rotate(360deg); }
|
|
81
7
|
}
|
|
82
8
|
`;
|
|
83
9
|
if (typeof document < "u" && !document.getElementById("spin-keyframes")) {
|
|
84
|
-
const
|
|
85
|
-
|
|
10
|
+
const d = document.createElement("style");
|
|
11
|
+
d.id = "spin-keyframes", d.innerHTML = hi, document.head.appendChild(d);
|
|
86
12
|
}
|
|
87
|
-
const
|
|
13
|
+
const si = {
|
|
88
14
|
animation: "spin 1.4s linear infinite"
|
|
89
|
-
},
|
|
15
|
+
}, o = {
|
|
90
16
|
gmCenterScreen: {
|
|
91
17
|
position: "relative",
|
|
92
18
|
zIndex: 1,
|
|
@@ -219,11 +145,188 @@ const ai = {
|
|
|
219
145
|
},
|
|
220
146
|
gmHourglass: {
|
|
221
147
|
fontSize: "42px",
|
|
222
|
-
...
|
|
148
|
+
...si
|
|
223
149
|
}
|
|
224
|
-
},
|
|
225
|
-
|
|
226
|
-
|
|
150
|
+
}, ai = window.origin + "/cloud/speakid/games/whatsmissing/", L = (d, a) => d.map(([g, s, ...b]) => ({
|
|
151
|
+
src: `${ai}${a}/${s.replace(/\s/g, "%20")}.png`,
|
|
152
|
+
name: s,
|
|
153
|
+
aliases: b?.length ? b : void 0
|
|
154
|
+
})), gi = [
|
|
155
|
+
["apple", "apple"],
|
|
156
|
+
["banana", "banana"],
|
|
157
|
+
["bread", "bread"],
|
|
158
|
+
["burger", "burger"],
|
|
159
|
+
["cake", "cake"],
|
|
160
|
+
["carrot", "carrot"],
|
|
161
|
+
["cheese", "cheese"],
|
|
162
|
+
["chicken", "chicken"],
|
|
163
|
+
["chocolate", "chocolate"],
|
|
164
|
+
["corn", "corn"],
|
|
165
|
+
["donut", "donut"],
|
|
166
|
+
["fish", "fish"],
|
|
167
|
+
["fries", "fries"],
|
|
168
|
+
["grapes", "grapes"],
|
|
169
|
+
["ice_cream", "ice cream"],
|
|
170
|
+
["milk", "milk"],
|
|
171
|
+
["orange", "orange"],
|
|
172
|
+
["pear", "pear"],
|
|
173
|
+
["pizza", "pizza"],
|
|
174
|
+
["rice", "rice"],
|
|
175
|
+
["sandwich", "sandwich"],
|
|
176
|
+
["soup", "soup"],
|
|
177
|
+
["strawberry", "strawberry"],
|
|
178
|
+
["tomato", "tomato"],
|
|
179
|
+
["watermelon", "watermelon"]
|
|
180
|
+
], pi = [
|
|
181
|
+
["bear", "bear"],
|
|
182
|
+
["cat", "cat"],
|
|
183
|
+
["crocodile", "crocodile", "alligator"],
|
|
184
|
+
["dolphin", "dolphin"],
|
|
185
|
+
["elephant", "elephant"],
|
|
186
|
+
["fox", "fox"],
|
|
187
|
+
["giraffe", "giraffe"],
|
|
188
|
+
["horse", "horse"],
|
|
189
|
+
["kangaroo", "kangaroo"],
|
|
190
|
+
["lion", "lion"],
|
|
191
|
+
["monkey", "monkey"],
|
|
192
|
+
["owl", "owl"],
|
|
193
|
+
["panda", "panda"],
|
|
194
|
+
["penguin", "penguin"],
|
|
195
|
+
["squirrel", "squirrel"],
|
|
196
|
+
["tiger", "tiger"],
|
|
197
|
+
["tortoise", "tortoise", "turtle"],
|
|
198
|
+
["wolf", "wolf"],
|
|
199
|
+
["zebra", "zebra"]
|
|
200
|
+
], li = [
|
|
201
|
+
["ball", "ball"],
|
|
202
|
+
["balloon", "balloon"],
|
|
203
|
+
["blocks", "blocks"],
|
|
204
|
+
["car", "car"],
|
|
205
|
+
["doll", "doll"],
|
|
206
|
+
["drum", "drum"],
|
|
207
|
+
["guitar", "guitar"],
|
|
208
|
+
["jump_rope", "jump rope"],
|
|
209
|
+
["kite", "kite"],
|
|
210
|
+
["paints", "paints"],
|
|
211
|
+
["plane", "plane"],
|
|
212
|
+
["puzzle", "puzzle"],
|
|
213
|
+
["rocket", "rocket"],
|
|
214
|
+
["scooter", "scooter"],
|
|
215
|
+
["skateboard", "skateboard"],
|
|
216
|
+
["slide", "slide"],
|
|
217
|
+
["teddy_bear", "teddy bear"],
|
|
218
|
+
["yo-yo", "yo-yo"],
|
|
219
|
+
["crayons", "crayons"]
|
|
220
|
+
], ci = [
|
|
221
|
+
["t-shirt", "T-shirt"],
|
|
222
|
+
["dress", "dress"],
|
|
223
|
+
["hat", "hat"],
|
|
224
|
+
["shoes", "shoes"],
|
|
225
|
+
["socks", "socks"],
|
|
226
|
+
["coat", "coat"],
|
|
227
|
+
["skirt", "skirt"],
|
|
228
|
+
["trousers", "trousers"],
|
|
229
|
+
["jacket", "jacket"],
|
|
230
|
+
["scarf", "scarf"],
|
|
231
|
+
["gloves", "gloves"],
|
|
232
|
+
["shorts", "shorts"],
|
|
233
|
+
["cap", "cap"],
|
|
234
|
+
["boots", "boots"],
|
|
235
|
+
["pyjamas", "pyjamas"]
|
|
236
|
+
], xi = [
|
|
237
|
+
["car", "car"],
|
|
238
|
+
["bus", "bus"],
|
|
239
|
+
["bike", "bike"],
|
|
240
|
+
["train", "train"],
|
|
241
|
+
["plane", "plane"],
|
|
242
|
+
["boat", "boat"],
|
|
243
|
+
["ship", "ship"],
|
|
244
|
+
["helicopter", "helicopter"],
|
|
245
|
+
["lorry", "lorry", "truck"],
|
|
246
|
+
["taxi", "taxi"],
|
|
247
|
+
["rocket", "rocket"],
|
|
248
|
+
["van", "van"],
|
|
249
|
+
["motorbike", "motorbike"],
|
|
250
|
+
["tram", "tram"],
|
|
251
|
+
["submarine", "submarine"]
|
|
252
|
+
], Hi = [
|
|
253
|
+
["sun", "sun"],
|
|
254
|
+
["cloud", "cloud"],
|
|
255
|
+
["rain", "rain"],
|
|
256
|
+
["tree", "tree"],
|
|
257
|
+
["flower", "flower"],
|
|
258
|
+
["grass", "grass"],
|
|
259
|
+
["star", "star"],
|
|
260
|
+
["moon", "moon"],
|
|
261
|
+
["mountain", "mountain"],
|
|
262
|
+
["river", "river"],
|
|
263
|
+
["rainbow", "rainbow"],
|
|
264
|
+
["snowman", "snowman"],
|
|
265
|
+
["snow", "snow"],
|
|
266
|
+
["butterfly", "butterfly"],
|
|
267
|
+
["bird", "bird"]
|
|
268
|
+
], Wi = [
|
|
269
|
+
["bed", "bed"],
|
|
270
|
+
["table", "table"],
|
|
271
|
+
["chair", "chair"],
|
|
272
|
+
["door", "door"],
|
|
273
|
+
["window", "window"],
|
|
274
|
+
["lamp", "lamp"],
|
|
275
|
+
["sofa", "sofa"],
|
|
276
|
+
["clock", "clock"],
|
|
277
|
+
["key", "key"],
|
|
278
|
+
["phone", "phone"],
|
|
279
|
+
["tv", "TV"],
|
|
280
|
+
["cup", "cup"],
|
|
281
|
+
["plate", "plate"],
|
|
282
|
+
["mirror", "mirror"],
|
|
283
|
+
["book", "book"]
|
|
284
|
+
], mi = [
|
|
285
|
+
["book", "book"],
|
|
286
|
+
["pen", "pen"],
|
|
287
|
+
["pencil", "pencil"],
|
|
288
|
+
["bag", "bag"],
|
|
289
|
+
["ruler", "ruler"],
|
|
290
|
+
["rubber", "rubber", "eraser"],
|
|
291
|
+
["desk", "desk"],
|
|
292
|
+
["board", "board"],
|
|
293
|
+
["crayon", "crayon"],
|
|
294
|
+
["glue", "glue"],
|
|
295
|
+
["scissors", "scissors"],
|
|
296
|
+
["notebook", "notebook"],
|
|
297
|
+
["pencil_case", "pencil case"],
|
|
298
|
+
["paintbrush", "paintbrush"],
|
|
299
|
+
["backpack", "backpack"]
|
|
300
|
+
], K = {
|
|
301
|
+
food: L(gi, "food"),
|
|
302
|
+
animals: L(pi, "animals"),
|
|
303
|
+
toys: L(li, "toys"),
|
|
304
|
+
clothes: L(ci, "clothes"),
|
|
305
|
+
transport: L(xi, "transport"),
|
|
306
|
+
nature: L(Hi, "nature"),
|
|
307
|
+
home: L(Wi, "home"),
|
|
308
|
+
school: L(mi, "school")
|
|
309
|
+
}, ui = [
|
|
310
|
+
"animals",
|
|
311
|
+
"food",
|
|
312
|
+
"toys",
|
|
313
|
+
"clothes",
|
|
314
|
+
"transport",
|
|
315
|
+
"nature",
|
|
316
|
+
"home",
|
|
317
|
+
"school"
|
|
318
|
+
], fi = {
|
|
319
|
+
animals: "🐶 Animals",
|
|
320
|
+
food: "🍎 Food",
|
|
321
|
+
toys: "🧸 Toys",
|
|
322
|
+
clothes: "👕 Clothes",
|
|
323
|
+
transport: "🚗 Transport",
|
|
324
|
+
nature: "🌳 Nature",
|
|
325
|
+
home: "🏠 Home",
|
|
326
|
+
school: "📚 School"
|
|
327
|
+
}, yi = () => {
|
|
328
|
+
const d = document.createElement("style");
|
|
329
|
+
d.id = "whats-missing-reset", d.textContent = `
|
|
227
330
|
#whats-missing-root, #whats-missing-root * {
|
|
228
331
|
box-sizing: border-box;
|
|
229
332
|
font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
|
|
@@ -250,12 +353,12 @@ const ai = {
|
|
|
250
353
|
overflow: hidden !important;
|
|
251
354
|
}
|
|
252
355
|
`;
|
|
253
|
-
const
|
|
254
|
-
|
|
356
|
+
const a = document.getElementById("whats-missing-reset");
|
|
357
|
+
a && a.remove(), document.head.appendChild(d);
|
|
255
358
|
};
|
|
256
|
-
class
|
|
257
|
-
constructor(
|
|
258
|
-
this.seed =
|
|
359
|
+
class bi {
|
|
360
|
+
constructor(a) {
|
|
361
|
+
this.seed = a;
|
|
259
362
|
}
|
|
260
363
|
// Linear Congruential Generator (LCG)
|
|
261
364
|
// Используем параметры из Numerical Recipes
|
|
@@ -263,169 +366,181 @@ class li {
|
|
|
263
366
|
return this.seed = (this.seed * 1664525 + 1013904223) % Math.pow(2, 32), this.seed / Math.pow(2, 32);
|
|
264
367
|
}
|
|
265
368
|
// Генерирует случайное число от 0 до max (не включая max)
|
|
266
|
-
nextInt(
|
|
267
|
-
return Math.floor(this.next() *
|
|
369
|
+
nextInt(a) {
|
|
370
|
+
return Math.floor(this.next() * a);
|
|
268
371
|
}
|
|
269
372
|
}
|
|
270
|
-
const
|
|
271
|
-
const
|
|
272
|
-
for (let s = 0; s <=
|
|
273
|
-
for (let s = 0; s <=
|
|
274
|
-
for (let s = 1; s <=
|
|
275
|
-
for (let b = 1; b <=
|
|
276
|
-
|
|
277
|
-
return
|
|
278
|
-
},
|
|
279
|
-
const
|
|
280
|
-
|
|
281
|
-
}),
|
|
282
|
-
const
|
|
283
|
-
const
|
|
284
|
-
|
|
373
|
+
const ki = (d, a) => {
|
|
374
|
+
const g = Array.from({ length: d.length + 1 }, () => Array(a.length + 1).fill(0));
|
|
375
|
+
for (let s = 0; s <= d.length; s++) g[s][0] = s;
|
|
376
|
+
for (let s = 0; s <= a.length; s++) g[0][s] = s;
|
|
377
|
+
for (let s = 1; s <= d.length; s++)
|
|
378
|
+
for (let b = 1; b <= a.length; b++)
|
|
379
|
+
g[s][b] = d[s - 1] === a[b - 1] ? g[s - 1][b - 1] : Math.min(g[s - 1][b - 1], g[s][b - 1], g[s - 1][b]) + 1;
|
|
380
|
+
return g[d.length][a.length];
|
|
381
|
+
}, Ii = (d) => new Promise((a) => {
|
|
382
|
+
const g = new Image();
|
|
383
|
+
g.onload = () => a(g), g.onerror = () => a(g), g.src = d;
|
|
384
|
+
}), pn = async (d, a) => {
|
|
385
|
+
const g = /* @__PURE__ */ new Map(), s = d.map(async (b) => {
|
|
386
|
+
const S = await Ii(b);
|
|
387
|
+
g.set(b, S);
|
|
285
388
|
});
|
|
286
|
-
return await Promise.allSettled(s),
|
|
389
|
+
return await Promise.allSettled(s), g;
|
|
287
390
|
};
|
|
288
|
-
function
|
|
289
|
-
gameCubeSize:
|
|
290
|
-
screenHeight:
|
|
291
|
-
screenWidth:
|
|
391
|
+
function Ti({
|
|
392
|
+
gameCubeSize: d,
|
|
393
|
+
screenHeight: a,
|
|
394
|
+
screenWidth: g,
|
|
292
395
|
seed: s
|
|
293
396
|
}) {
|
|
294
|
-
const b =
|
|
295
|
-
q(() => (
|
|
397
|
+
const b = U(null);
|
|
398
|
+
q(() => (yi(), () => {
|
|
296
399
|
document.documentElement.style.overflow = "", document.body.style.overflow = "";
|
|
297
400
|
const i = document.getElementById("whats-missing-reset");
|
|
298
|
-
i && i.remove(),
|
|
401
|
+
i && i.remove(), T.current && T.current.abort();
|
|
299
402
|
}), []);
|
|
300
|
-
const [
|
|
403
|
+
const [S, ln] = h(null), [B, cn] = h([]), [D, Bn] = h(4), [xn, J] = h(1), [A, Hn] = h(!1), [Y, Wn] = h(1), [P, Cn] = h(null), [v, _] = h("ready"), [mn, un] = h(10), [Q, X] = h(10), [nn, fn] = h(20), [An, en] = h(0), [$, tn] = h(!1), [N, yn] = h(""), [E, on] = h(!1), [wn, bn] = h(!1), [kn, G] = h(null), [En, dn] = h([]), [jn, In] = h([]), [n, Dn] = h(!1), [Gn, V] = h(1), [Sn, O] = h(null), [I, Fn] = h(!1), [l, Un] = h(!1), [c, Yn] = h(!1), [x, _n] = h(!1), [H, $n] = h(!1), [W, Nn] = h(!1), [m, Vn] = h(!1), [u, On] = h(!1), [f, Zn] = h(!1), [rn, qn] = h(!1), [z, Kn] = h(!1), hn = U(/* @__PURE__ */ new Set()), Z = U(/* @__PURE__ */ new Map()), T = U(null), j = U(null);
|
|
301
404
|
q(() => {
|
|
302
|
-
s !== void 0 ?
|
|
405
|
+
s !== void 0 ? j.current = new bi(s) : j.current = null;
|
|
303
406
|
}, [s]);
|
|
304
|
-
const
|
|
407
|
+
const Jn = () => j.current ? j.current.next() : Math.random(), vn = (i) => j.current ? j.current.nextInt(i) : Math.floor(Math.random() * i);
|
|
305
408
|
q(() => {
|
|
306
409
|
const i = () => {
|
|
307
|
-
const e =
|
|
308
|
-
|
|
309
|
-
const
|
|
410
|
+
const e = g ?? window.innerWidth, t = a ?? window.innerHeight, r = e < 768 || e === 926 && t === 428 || e === 932 && t === 430, y = t < 700, R = e / t > 1.8, k = e === 768 && t === 1024, an = e === 1024 && t === 768, F = e === 820 && t === 1180, M = e === 1180 && t === 820, C = e === 540 && t === 720, zn = e === 720 && t === 540, Rn = e === 1024 && t === 1366, Mn = e === 1366 && t === 1024, ti = e >= 1200 && t >= 600 && !r;
|
|
411
|
+
Fn(ti), Un(k), Yn(an), _n(F), $n(M), Nn(C), Vn(zn), On(Rn), Zn(Mn), Kn(R);
|
|
412
|
+
const oi = r && e > t || r || // ✅ ВСЕ мобильные устройства (включая portrait)
|
|
310
413
|
t < 700 || R || // ✅ Широкие экраны
|
|
311
|
-
e === 1366 && t === 766 || e === 1366 && t === 768 || e === 1280 && t === 720 || e === 1440 && t === 900 ||
|
|
312
|
-
if (
|
|
313
|
-
|
|
414
|
+
e === 1366 && t === 766 || e === 1366 && t === 768 || e === 1280 && t === 720 || e === 1440 && t === 900 || k || an || F || M || C || zn || Rn || Mn || I;
|
|
415
|
+
if (qn(oi), Dn(r), r)
|
|
416
|
+
O(d && d >= 320 ? d : null), V(1);
|
|
314
417
|
else if (y)
|
|
315
|
-
|
|
418
|
+
O(d && d >= 400 ? d : null), V(1);
|
|
316
419
|
else if (R) {
|
|
317
|
-
const
|
|
318
|
-
|
|
420
|
+
const gn = d ? Math.max(400, Math.min(1200, d)) : Math.min(1e3, Math.min(e, t) * 0.9);
|
|
421
|
+
O(gn), V(0.85);
|
|
319
422
|
} else {
|
|
320
|
-
const
|
|
321
|
-
|
|
423
|
+
const gn = d ? Math.max(400, Math.min(1200, d)) : Math.min(1e3, Math.min(e, t) * 0.9);
|
|
424
|
+
O(gn), V(1);
|
|
322
425
|
}
|
|
323
426
|
};
|
|
324
427
|
return i(), window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
|
|
325
|
-
}, [
|
|
326
|
-
const
|
|
327
|
-
|
|
428
|
+
}, [g, a, d]);
|
|
429
|
+
const sn = (i) => [...i].sort(() => Jn() - 0.5).slice(0, 6), Qn = (i) => {
|
|
430
|
+
T.current && T.current.abort(), T.current = new AbortController();
|
|
328
431
|
const t = K[i].map((r) => r.src);
|
|
329
|
-
|
|
432
|
+
pn(t, T.current.signal).then((r) => {
|
|
330
433
|
t.forEach((y) => {
|
|
331
|
-
|
|
434
|
+
hn.current.add(y), r.has(y) && Z.current.set(y, r.get(y));
|
|
332
435
|
});
|
|
333
436
|
}).catch(() => {
|
|
334
437
|
});
|
|
335
|
-
},
|
|
336
|
-
if (!
|
|
337
|
-
const i =
|
|
338
|
-
|
|
438
|
+
}, Tn = () => {
|
|
439
|
+
if (!S) return;
|
|
440
|
+
const i = sn(K[S]);
|
|
441
|
+
cn(i), Hn(!0), tn(!1), Wn(1), en(0), dn([]), In([]);
|
|
339
442
|
const e = i.map((t) => t.src);
|
|
340
|
-
|
|
443
|
+
pn(e, T.current?.signal).then((t) => {
|
|
341
444
|
e.forEach((r) => {
|
|
342
|
-
|
|
445
|
+
hn.current.add(r), t.has(r) && Z.current.set(r, t.get(r));
|
|
343
446
|
});
|
|
344
447
|
}).catch(() => {
|
|
345
448
|
}), Pn(i, [], !0);
|
|
346
|
-
}, Pn = (i =
|
|
347
|
-
const r =
|
|
348
|
-
let y =
|
|
349
|
-
for (; e.includes(R) &&
|
|
350
|
-
y =
|
|
351
|
-
if (
|
|
352
|
-
const
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
449
|
+
}, Pn = (i = B, e = jn, t = !1) => {
|
|
450
|
+
const r = sn(i.length ? i : K[S]);
|
|
451
|
+
let y = vn(r.length), R = r[y].name, k = 0;
|
|
452
|
+
for (; e.includes(R) && k < 20; )
|
|
453
|
+
y = vn(r.length), R = r[y].name, k++;
|
|
454
|
+
if (cn(r), Cn(y), In([...e, R]), on(!1), yn(""), fn(20), G(null), S && !t) {
|
|
455
|
+
const F = sn(K[S].filter((M) => !e.includes(M.name))).map((M) => M.src);
|
|
456
|
+
pn(F, T.current?.signal).then((M) => {
|
|
457
|
+
F.forEach((C) => {
|
|
458
|
+
hn.current.add(C), M.has(C) && Z.current.set(C, M.get(C));
|
|
356
459
|
});
|
|
357
460
|
}).catch(() => {
|
|
358
461
|
});
|
|
359
462
|
}
|
|
360
|
-
t ? (
|
|
463
|
+
t ? (_("ready"), un(10), X(10)) : (_("memorize"), X(10));
|
|
361
464
|
};
|
|
362
465
|
q(() => {
|
|
363
|
-
if (!(!
|
|
364
|
-
if (
|
|
365
|
-
if (
|
|
466
|
+
if (!(!A || $ || E)) {
|
|
467
|
+
if (v === "ready")
|
|
468
|
+
if (mn <= 0) _("memorize");
|
|
366
469
|
else {
|
|
367
|
-
const i = setTimeout(() =>
|
|
470
|
+
const i = setTimeout(() => un((e) => e - 1), 1e3);
|
|
368
471
|
return () => clearTimeout(i);
|
|
369
472
|
}
|
|
370
|
-
if (
|
|
371
|
-
if (
|
|
473
|
+
if (v === "memorize")
|
|
474
|
+
if (Q <= 0) _("guess");
|
|
372
475
|
else {
|
|
373
|
-
const i = setTimeout(() =>
|
|
476
|
+
const i = setTimeout(() => X((e) => e - 1), 1e3);
|
|
374
477
|
return () => clearTimeout(i);
|
|
375
478
|
}
|
|
376
|
-
if (
|
|
377
|
-
if (
|
|
378
|
-
|
|
379
|
-
const e =
|
|
380
|
-
|
|
479
|
+
if (v === "guess") {
|
|
480
|
+
if (nn <= 0) {
|
|
481
|
+
on(!0), G("wrong");
|
|
482
|
+
const e = B[P].name, t = B[P].aliases, r = [e, ...t || []].join(", ");
|
|
483
|
+
dn((y) => [
|
|
381
484
|
...y,
|
|
382
|
-
{ round:
|
|
485
|
+
{ round: Y, answer: N, correct: r, result: "wrong" }
|
|
383
486
|
]);
|
|
384
487
|
return;
|
|
385
488
|
}
|
|
386
|
-
const i = setTimeout(() =>
|
|
489
|
+
const i = setTimeout(() => fn((e) => e - 1), 1e3);
|
|
387
490
|
return () => clearTimeout(i);
|
|
388
491
|
}
|
|
389
492
|
}
|
|
390
|
-
}, [
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
493
|
+
}, [
|
|
494
|
+
v,
|
|
495
|
+
mn,
|
|
496
|
+
Q,
|
|
497
|
+
nn,
|
|
498
|
+
A,
|
|
499
|
+
$,
|
|
500
|
+
E,
|
|
501
|
+
B,
|
|
502
|
+
P,
|
|
503
|
+
Y,
|
|
504
|
+
N
|
|
505
|
+
]);
|
|
506
|
+
const Xn = () => {
|
|
507
|
+
if (P === null || wn) return;
|
|
508
|
+
const i = B[P].name, e = B[P].aliases, t = N.toLowerCase().trim();
|
|
394
509
|
let r = "wrong";
|
|
395
|
-
const y = [i, ...e || []].map((
|
|
396
|
-
y.includes(t) ? (
|
|
397
|
-
|
|
510
|
+
const y = [i, ...e || []].map((k) => k.toLowerCase()), R = [i, ...e || []].join(", ");
|
|
511
|
+
y.includes(t) ? (en((k) => k + 1), G("correct"), r = "correct") : y.some((k) => ki(t, k) === 1) ? (en((k) => k + 0.5), G("almost"), r = "almost") : (G("wrong"), r = "wrong"), dn((k) => [
|
|
512
|
+
...k,
|
|
513
|
+
{ round: Y, answer: t, correct: R, result: r }
|
|
514
|
+
]), bn(!0), setTimeout(() => {
|
|
515
|
+
bn(!1), on(!0);
|
|
398
516
|
}, 600);
|
|
399
|
-
},
|
|
400
|
-
|
|
401
|
-
},
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
/* @__PURE__ */
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
[n, a, g]
|
|
427
|
-
);
|
|
428
|
-
return /* @__PURE__ */ d(
|
|
517
|
+
}, ni = () => Y < D ? (Wn((i) => i + 1), Pn()) : tn(!0), ii = () => {
|
|
518
|
+
T.current && T.current.abort(), Hn(!1), tn(!1), ln(null), J(2);
|
|
519
|
+
}, ei = ri(() => {
|
|
520
|
+
const i = g ?? window.innerWidth, e = a ?? window.innerHeight, t = !n && i >= 1200 && i <= 1400;
|
|
521
|
+
return n && i > e || e < 700 && !t ? null : (
|
|
522
|
+
// ensure logo is positioned inside the square container
|
|
523
|
+
/* @__PURE__ */ w("div", { style: { ...o.gmLogoFixed, position: "absolute", top: 16, left: 16, zIndex: 30 }, children: /* @__PURE__ */ p("picture", { children: [
|
|
524
|
+
/* @__PURE__ */ w(
|
|
525
|
+
"source",
|
|
526
|
+
{
|
|
527
|
+
srcSet: window.origin + "/cloud/speakid/games/whatsmissing/logo.svg",
|
|
528
|
+
type: "image/svg+xml"
|
|
529
|
+
}
|
|
530
|
+
),
|
|
531
|
+
/* @__PURE__ */ w(
|
|
532
|
+
"img",
|
|
533
|
+
{
|
|
534
|
+
src: window.origin + "/cloud/speakid/games/whatsmissing/logo.png",
|
|
535
|
+
alt: "SPEAKID Logo",
|
|
536
|
+
style: o.gmLogoImg,
|
|
537
|
+
loading: "lazy"
|
|
538
|
+
}
|
|
539
|
+
)
|
|
540
|
+
] }) })
|
|
541
|
+
);
|
|
542
|
+
}, [n, g, a]);
|
|
543
|
+
return /* @__PURE__ */ w(
|
|
429
544
|
"div",
|
|
430
545
|
{
|
|
431
546
|
ref: b,
|
|
@@ -444,12 +559,12 @@ function mi({
|
|
|
444
559
|
right: 0,
|
|
445
560
|
bottom: 0
|
|
446
561
|
},
|
|
447
|
-
children: /* @__PURE__ */
|
|
562
|
+
children: /* @__PURE__ */ w(
|
|
448
563
|
"div",
|
|
449
564
|
{
|
|
450
565
|
style: {
|
|
451
|
-
width: n ? "100%" :
|
|
452
|
-
height: n ? "100%" :
|
|
566
|
+
width: n ? "100%" : Sn || d || 1e3,
|
|
567
|
+
height: n ? "100%" : Sn || d || 1e3,
|
|
453
568
|
display: "flex",
|
|
454
569
|
justifyContent: "center",
|
|
455
570
|
alignItems: "center",
|
|
@@ -460,10 +575,10 @@ function mi({
|
|
|
460
575
|
margin: n ? "0 auto" : "unset",
|
|
461
576
|
position: "relative",
|
|
462
577
|
// needed so absolute logo is inside the square
|
|
463
|
-
transform: `scale(${
|
|
578
|
+
transform: `scale(${Gn})`
|
|
464
579
|
// ✅ Применяем масштаб для широких экранов
|
|
465
580
|
},
|
|
466
|
-
children: /* @__PURE__ */
|
|
581
|
+
children: /* @__PURE__ */ w(
|
|
467
582
|
"div",
|
|
468
583
|
{
|
|
469
584
|
style: {
|
|
@@ -475,161 +590,275 @@ function mi({
|
|
|
475
590
|
alignItems: "center"
|
|
476
591
|
},
|
|
477
592
|
children: /* @__PURE__ */ p("div", { id: "whats-missing-root", children: [
|
|
478
|
-
!n &&
|
|
479
|
-
!
|
|
480
|
-
/* @__PURE__ */
|
|
481
|
-
/* @__PURE__ */ d("p", { style: w.gmBodyM, children: "Select a theme:" }),
|
|
482
|
-
/* @__PURE__ */ d("div", { style: { display: "flex", gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px" : "16px" }, children: ["animals", "food", "toys"].map((i) => /* @__PURE__ */ d("button", { style: {
|
|
483
|
-
...w.gmButton,
|
|
484
|
-
padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 12px" : "12px 24px",
|
|
485
|
-
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
|
|
486
|
-
minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "70px" : "auto"
|
|
487
|
-
}, onClick: () => {
|
|
488
|
-
pn(i), On(i);
|
|
489
|
-
}, children: i === "animals" ? "🐶 Animals" : i === "food" ? "🍎 Food" : "🧸 Toys" }, i)) }),
|
|
593
|
+
!n && ei,
|
|
594
|
+
!S && !A && xn === 1 && /* @__PURE__ */ p("div", { style: o.gmCenterScreen, children: [
|
|
595
|
+
/* @__PURE__ */ w("h1", { style: o.gmHeadline1, children: "WHAT'S MISSING?" }),
|
|
490
596
|
/* @__PURE__ */ p("div", { style: { marginTop: 24 }, children: [
|
|
491
|
-
/* @__PURE__ */
|
|
492
|
-
/* @__PURE__ */
|
|
493
|
-
"
|
|
597
|
+
/* @__PURE__ */ w("p", { style: o.gmBodyS, children: "Choose number of rounds:" }),
|
|
598
|
+
/* @__PURE__ */ w(
|
|
599
|
+
"div",
|
|
494
600
|
{
|
|
495
601
|
style: {
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
|
|
500
|
-
minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "40px" : "auto"
|
|
602
|
+
display: "flex",
|
|
603
|
+
gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px" : "12px",
|
|
604
|
+
marginTop: 8
|
|
501
605
|
},
|
|
502
|
-
|
|
503
|
-
|
|
606
|
+
children: [3, 4, 5].map((i) => /* @__PURE__ */ w(
|
|
607
|
+
"button",
|
|
608
|
+
{
|
|
609
|
+
style: {
|
|
610
|
+
...o.gmButton,
|
|
611
|
+
...D === i ? o.gmButtonActive : {},
|
|
612
|
+
padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
|
|
613
|
+
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
|
|
614
|
+
minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "40px" : "auto"
|
|
615
|
+
},
|
|
616
|
+
onClick: () => Bn(i),
|
|
617
|
+
children: i
|
|
618
|
+
},
|
|
619
|
+
i
|
|
620
|
+
))
|
|
621
|
+
}
|
|
622
|
+
)
|
|
623
|
+
] }),
|
|
624
|
+
/* @__PURE__ */ w(
|
|
625
|
+
"button",
|
|
626
|
+
{
|
|
627
|
+
style: {
|
|
628
|
+
...o.gmButton,
|
|
629
|
+
marginTop: 24,
|
|
630
|
+
padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 16px" : "12px 24px",
|
|
631
|
+
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "14px" : "16px",
|
|
632
|
+
minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "120px" : "auto"
|
|
504
633
|
},
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
634
|
+
onClick: () => J(2),
|
|
635
|
+
children: "Play"
|
|
636
|
+
}
|
|
637
|
+
)
|
|
508
638
|
] }),
|
|
509
|
-
|
|
510
|
-
/* @__PURE__ */
|
|
511
|
-
|
|
512
|
-
v
|
|
513
|
-
] }),
|
|
514
|
-
/* @__PURE__ */ p("p", { style: w.gmBodyM, children: [
|
|
639
|
+
!S && !A && xn === 2 && /* @__PURE__ */ p("div", { style: o.gmCenterScreen, children: [
|
|
640
|
+
/* @__PURE__ */ w("p", { style: o.gmBodyM, children: "Select a theme:" }),
|
|
641
|
+
/* @__PURE__ */ p("p", { style: o.gmBodyS, children: [
|
|
515
642
|
"Rounds: ",
|
|
516
|
-
|
|
643
|
+
D
|
|
517
644
|
] }),
|
|
518
|
-
/* @__PURE__ */
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
645
|
+
/* @__PURE__ */ w(
|
|
646
|
+
"div",
|
|
647
|
+
{
|
|
648
|
+
style: {
|
|
649
|
+
display: "grid",
|
|
650
|
+
gridTemplateColumns: n ? "repeat(2, 1fr)" : "repeat(4, 1fr)",
|
|
651
|
+
gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px" : "12px",
|
|
652
|
+
maxWidth: n ? 280 : 420,
|
|
653
|
+
margin: "0 auto"
|
|
654
|
+
},
|
|
655
|
+
children: ui.map((i) => /* @__PURE__ */ w(
|
|
656
|
+
"button",
|
|
657
|
+
{
|
|
658
|
+
style: {
|
|
659
|
+
...o.gmButton,
|
|
660
|
+
padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 12px" : "10px 16px",
|
|
661
|
+
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "14px"
|
|
662
|
+
},
|
|
663
|
+
onClick: () => {
|
|
664
|
+
ln(i), Qn(i);
|
|
665
|
+
},
|
|
666
|
+
children: fi[i]
|
|
667
|
+
},
|
|
668
|
+
i
|
|
669
|
+
))
|
|
670
|
+
}
|
|
671
|
+
),
|
|
672
|
+
/* @__PURE__ */ w(
|
|
673
|
+
"button",
|
|
674
|
+
{
|
|
675
|
+
style: {
|
|
676
|
+
...o.gmButton,
|
|
677
|
+
marginTop: 24,
|
|
678
|
+
padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 16px" : "12px 24px",
|
|
679
|
+
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "14px" : "16px",
|
|
680
|
+
minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "120px" : "auto"
|
|
681
|
+
},
|
|
682
|
+
onClick: () => J(1),
|
|
683
|
+
children: "Back"
|
|
684
|
+
}
|
|
685
|
+
)
|
|
524
686
|
] }),
|
|
525
|
-
|
|
526
|
-
/* @__PURE__ */
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "2px" : w.gmHeadline1.marginBottom
|
|
530
|
-
}, children: "Results" }),
|
|
531
|
-
/* @__PURE__ */ p("h2", { style: {
|
|
532
|
-
...w.gmHeadline3,
|
|
533
|
-
marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "0px" : w.gmHeadline3.marginTop,
|
|
534
|
-
marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "2px" : w.gmHeadline3.marginBottom
|
|
535
|
-
}, children: [
|
|
536
|
-
"Your score: ",
|
|
537
|
-
Bn,
|
|
538
|
-
" / ",
|
|
539
|
-
F
|
|
687
|
+
S && !A && /* @__PURE__ */ p("div", { style: o.gmCenterScreen, children: [
|
|
688
|
+
/* @__PURE__ */ p("h1", { style: o.gmHeadline1, children: [
|
|
689
|
+
"Theme selected: ",
|
|
690
|
+
S
|
|
540
691
|
] }),
|
|
541
|
-
/* @__PURE__ */
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "0px" : "12px",
|
|
545
|
-
marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "2px" : w.gmBodyM.marginBottom
|
|
546
|
-
}, children: "Yahoo! You did it! 🍬✨" }),
|
|
547
|
-
/* @__PURE__ */ p("table", { style: {
|
|
548
|
-
...w.gmTable,
|
|
549
|
-
marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "0px" : "20px",
|
|
550
|
-
marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "4px" : "32px"
|
|
551
|
-
}, children: [
|
|
552
|
-
/* @__PURE__ */ d("thead", { children: /* @__PURE__ */ p("tr", { children: [
|
|
553
|
-
/* @__PURE__ */ d("th", { children: "Round" }),
|
|
554
|
-
/* @__PURE__ */ d("th", { children: "Your Answer" }),
|
|
555
|
-
/* @__PURE__ */ d("th", { children: "Correct" }),
|
|
556
|
-
/* @__PURE__ */ d("th", { children: "Result" })
|
|
557
|
-
] }) }),
|
|
558
|
-
/* @__PURE__ */ d("tbody", { children: Cn.map((i, e) => /* @__PURE__ */ p("tr", { children: [
|
|
559
|
-
/* @__PURE__ */ d("td", { style: w.gmTableCell, children: i.round }),
|
|
560
|
-
/* @__PURE__ */ d("td", { style: w.gmTableCell, children: i.answer || "—" }),
|
|
561
|
-
/* @__PURE__ */ d("td", { style: w.gmTableCell, children: i.correct }),
|
|
562
|
-
/* @__PURE__ */ d("td", { style: w.gmTableCell, children: i.result === "correct" ? "✔ Correct" : i.result === "almost" ? "◐ Almost (0.5)" : "✘ Wrong" })
|
|
563
|
-
] }, e)) })
|
|
692
|
+
/* @__PURE__ */ p("p", { style: o.gmBodyM, children: [
|
|
693
|
+
"Rounds: ",
|
|
694
|
+
D
|
|
564
695
|
] }),
|
|
565
|
-
/* @__PURE__ */
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
|
|
579
|
-
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
|
|
580
|
-
minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "80px" : "auto"
|
|
581
|
-
}, onClick: Xn, children: "⬅️ Choose theme" })
|
|
582
|
-
] })
|
|
696
|
+
/* @__PURE__ */ w(
|
|
697
|
+
"button",
|
|
698
|
+
{
|
|
699
|
+
style: {
|
|
700
|
+
...o.gmButton,
|
|
701
|
+
padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "8px 16px" : "12px 24px",
|
|
702
|
+
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "14px" : "16px",
|
|
703
|
+
minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "120px" : "auto"
|
|
704
|
+
},
|
|
705
|
+
onClick: Tn,
|
|
706
|
+
children: "▶ Start game"
|
|
707
|
+
}
|
|
708
|
+
)
|
|
583
709
|
] }),
|
|
584
|
-
|
|
710
|
+
$ && /* @__PURE__ */ p("div", { style: o.gmCenterScreen, children: [
|
|
711
|
+
/* @__PURE__ */ w(
|
|
712
|
+
"h1",
|
|
713
|
+
{
|
|
714
|
+
style: {
|
|
715
|
+
...o.gmHeadline1,
|
|
716
|
+
marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "0px" : o.gmHeadline1.marginTop,
|
|
717
|
+
marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "2px" : o.gmHeadline1.marginBottom
|
|
718
|
+
},
|
|
719
|
+
children: "Results"
|
|
720
|
+
}
|
|
721
|
+
),
|
|
722
|
+
/* @__PURE__ */ p(
|
|
723
|
+
"h2",
|
|
724
|
+
{
|
|
725
|
+
style: {
|
|
726
|
+
...o.gmHeadline3,
|
|
727
|
+
marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "0px" : o.gmHeadline3.marginTop,
|
|
728
|
+
marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "2px" : o.gmHeadline3.marginBottom
|
|
729
|
+
},
|
|
730
|
+
children: [
|
|
731
|
+
"Your score: ",
|
|
732
|
+
An,
|
|
733
|
+
" / ",
|
|
734
|
+
D
|
|
735
|
+
]
|
|
736
|
+
}
|
|
737
|
+
),
|
|
738
|
+
/* @__PURE__ */ w(
|
|
739
|
+
"p",
|
|
740
|
+
{
|
|
741
|
+
style: {
|
|
742
|
+
...o.gmBodyM,
|
|
743
|
+
color: "#10b981",
|
|
744
|
+
marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "0px" : "12px",
|
|
745
|
+
marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "2px" : o.gmBodyM.marginBottom
|
|
746
|
+
},
|
|
747
|
+
children: "Yahoo! You did it! 🍬✨"
|
|
748
|
+
}
|
|
749
|
+
),
|
|
750
|
+
/* @__PURE__ */ p(
|
|
751
|
+
"table",
|
|
752
|
+
{
|
|
753
|
+
style: {
|
|
754
|
+
...o.gmTable,
|
|
755
|
+
marginTop: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "0px" : "20px",
|
|
756
|
+
marginBottom: n && window.innerWidth > window.innerHeight || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 || l || c || x || H || W || m || u || f ? "4px" : "32px"
|
|
757
|
+
},
|
|
758
|
+
children: [
|
|
759
|
+
/* @__PURE__ */ w("thead", { children: /* @__PURE__ */ p("tr", { children: [
|
|
760
|
+
/* @__PURE__ */ w("th", { children: "Round" }),
|
|
761
|
+
/* @__PURE__ */ w("th", { children: "Your Answer" }),
|
|
762
|
+
/* @__PURE__ */ w("th", { children: "Correct" }),
|
|
763
|
+
/* @__PURE__ */ w("th", { children: "Result" })
|
|
764
|
+
] }) }),
|
|
765
|
+
/* @__PURE__ */ w("tbody", { children: En.map((i, e) => /* @__PURE__ */ p("tr", { children: [
|
|
766
|
+
/* @__PURE__ */ w("td", { style: o.gmTableCell, children: i.round }),
|
|
767
|
+
/* @__PURE__ */ w("td", { style: o.gmTableCell, children: i.answer || "—" }),
|
|
768
|
+
/* @__PURE__ */ w("td", { style: o.gmTableCell, children: i.correct }),
|
|
769
|
+
/* @__PURE__ */ w("td", { style: o.gmTableCell, children: i.result === "correct" ? "✔ Correct" : i.result === "almost" ? "◐ Almost (0.5)" : "✘ Wrong" })
|
|
770
|
+
] }, e)) })
|
|
771
|
+
]
|
|
772
|
+
}
|
|
773
|
+
),
|
|
774
|
+
/* @__PURE__ */ p(
|
|
775
|
+
"div",
|
|
776
|
+
{
|
|
777
|
+
style: {
|
|
778
|
+
display: "flex",
|
|
779
|
+
gap: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px" : "12px",
|
|
780
|
+
marginTop: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "2px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I ? "12px" : "24px"
|
|
781
|
+
},
|
|
782
|
+
children: [
|
|
783
|
+
/* @__PURE__ */ w(
|
|
784
|
+
"button",
|
|
785
|
+
{
|
|
786
|
+
style: {
|
|
787
|
+
...o.gmButton,
|
|
788
|
+
padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
|
|
789
|
+
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
|
|
790
|
+
minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "80px" : "auto"
|
|
791
|
+
},
|
|
792
|
+
onClick: Tn,
|
|
793
|
+
children: "🔁 Play again"
|
|
794
|
+
}
|
|
795
|
+
),
|
|
796
|
+
/* @__PURE__ */ w(
|
|
797
|
+
"button",
|
|
798
|
+
{
|
|
799
|
+
style: {
|
|
800
|
+
...o.gmButton,
|
|
801
|
+
padding: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "6px 10px" : "12px 24px",
|
|
802
|
+
fontSize: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "12px" : "16px",
|
|
803
|
+
minWidth: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || window.innerWidth === 932 && window.innerHeight === 430 ? "80px" : "auto"
|
|
804
|
+
},
|
|
805
|
+
onClick: ii,
|
|
806
|
+
children: "⬅️ Choose theme"
|
|
807
|
+
}
|
|
808
|
+
)
|
|
809
|
+
]
|
|
810
|
+
}
|
|
811
|
+
)
|
|
812
|
+
] }),
|
|
813
|
+
A && !$ && /* @__PURE__ */ p("div", { style: o.gmGameLayout, children: [
|
|
585
814
|
/* @__PURE__ */ p(
|
|
586
815
|
"div",
|
|
587
816
|
{
|
|
588
817
|
style: {
|
|
589
|
-
minHeight: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "45px" :
|
|
818
|
+
minHeight: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "45px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "50px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "60px" : "160px",
|
|
590
819
|
display: "flex",
|
|
591
820
|
flexDirection: "column",
|
|
592
821
|
justifyContent: "center",
|
|
593
822
|
alignItems: "center",
|
|
594
|
-
paddingTop: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ||
|
|
823
|
+
paddingTop: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 || z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "8px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "15px" : "40px"
|
|
595
824
|
},
|
|
596
825
|
children: [
|
|
597
|
-
|
|
598
|
-
/* @__PURE__ */
|
|
599
|
-
/* @__PURE__ */
|
|
826
|
+
v === "ready" && /* @__PURE__ */ p(Ln, { children: [
|
|
827
|
+
/* @__PURE__ */ w("h1", { style: { ...o.gmHeadline1, color: "#ec4c44" }, children: "GET READY" }),
|
|
828
|
+
/* @__PURE__ */ w("div", { style: o.gmHourglass, children: "⏳" })
|
|
600
829
|
] }),
|
|
601
|
-
|
|
830
|
+
v === "memorize" && /* @__PURE__ */ p("p", { style: { ...o.gmBodyM, color: "#10b981" }, children: [
|
|
602
831
|
"MEMORIZE (",
|
|
603
|
-
|
|
832
|
+
Q,
|
|
604
833
|
")"
|
|
605
834
|
] }),
|
|
606
|
-
|
|
835
|
+
v === "guess" && !E && /* @__PURE__ */ p("p", { style: o.gmBodyM, children: [
|
|
607
836
|
"⏳ Time left: ",
|
|
608
|
-
|
|
837
|
+
nn,
|
|
609
838
|
"s"
|
|
610
839
|
] })
|
|
611
840
|
]
|
|
612
841
|
}
|
|
613
842
|
),
|
|
614
|
-
|
|
843
|
+
v !== "ready" && /* @__PURE__ */ w(
|
|
615
844
|
"div",
|
|
616
845
|
{
|
|
617
846
|
style: {
|
|
618
|
-
...
|
|
619
|
-
...
|
|
847
|
+
...o.gmGrid,
|
|
848
|
+
...z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? { width: "100%" } : {},
|
|
620
849
|
// ✅ Широкие экраны: полная ширина грида
|
|
621
|
-
gridTemplateColumns: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "repeat(3, 1fr)" : n ? "repeat(2, 1fr)" : window.innerHeight < 700 ? "repeat(3, 1fr)" : typeof window < "u" && window.innerWidth === 1280 && window.innerHeight === 720 ? "repeat(3, 130px)" :
|
|
850
|
+
gridTemplateColumns: n && window.innerWidth > window.innerHeight || n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "repeat(3, 1fr)" : n ? "repeat(2, 1fr)" : window.innerHeight < 700 ? "repeat(3, 1fr)" : typeof window < "u" && window.innerWidth === 1280 && window.innerHeight === 720 ? "repeat(3, 130px)" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "repeat(3, 150px)" : "repeat(3, 210px)",
|
|
622
851
|
// desktop: 3 колонки фиксированного размера
|
|
623
|
-
gridAutoRows: n && window.innerWidth > window.innerHeight ? "120px" : n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "100px" : n ? "150px" : window.innerHeight < 700 ? "140px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "240px" : typeof window < "u" && window.innerWidth === 1280 && window.innerHeight === 720 ? "130px" :
|
|
852
|
+
gridAutoRows: n && window.innerWidth > window.innerHeight ? "120px" : n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "100px" : n ? "150px" : window.innerHeight < 700 ? "140px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "240px" : typeof window < "u" && window.innerWidth === 1280 && window.innerHeight === 720 ? "130px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "150px" : "210px",
|
|
624
853
|
// desktop: стандартная высота
|
|
625
|
-
gap: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "12px" : n || window.innerHeight < 700 ? "8px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "24px" :
|
|
854
|
+
gap: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "12px" : n || window.innerHeight < 700 ? "8px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "24px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "12px" : "20px",
|
|
626
855
|
justifyItems: "center",
|
|
627
856
|
maxWidth: n && window.innerWidth > window.innerHeight ? "90%" : n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "95%" : "100%",
|
|
628
|
-
padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "8px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "20px" :
|
|
857
|
+
padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "8px" : typeof window < "u" && window.devicePixelRatio >= 1.25 && window.devicePixelRatio <= 1.5 ? "20px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 ? "10px" : "16px"
|
|
629
858
|
},
|
|
630
|
-
children:
|
|
631
|
-
const t =
|
|
632
|
-
return /* @__PURE__ */
|
|
859
|
+
children: B.map((i, e) => {
|
|
860
|
+
const t = P === e && v === "guess" && !E;
|
|
861
|
+
return /* @__PURE__ */ w(
|
|
633
862
|
"div",
|
|
634
863
|
{
|
|
635
864
|
style: {
|
|
@@ -640,18 +869,18 @@ function mi({
|
|
|
640
869
|
boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 1px 4px rgba(0,0,0,0.1)" : "0 4px 12px rgba(0,0,0,0.15)",
|
|
641
870
|
transition: "all 0.3s ease",
|
|
642
871
|
cursor: "pointer",
|
|
643
|
-
...
|
|
872
|
+
...kn === "correct" && P === e ? {
|
|
644
873
|
boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 0 15px #10b981" : "0 0 20px #10b981",
|
|
645
874
|
transform: "scale(1.03)"
|
|
646
875
|
} : {},
|
|
647
|
-
...
|
|
876
|
+
...kn === "wrong" && P === e ? {
|
|
648
877
|
boxShadow: n && window.innerWidth <= 375 && window.innerHeight <= 667 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "0 0 15px #ef4444" : "0 0 20px #ef4444",
|
|
649
878
|
transform: "scale(1.03)"
|
|
650
879
|
} : {}
|
|
651
880
|
},
|
|
652
881
|
children: !t && (() => {
|
|
653
|
-
const r =
|
|
654
|
-
return /* @__PURE__ */
|
|
882
|
+
const r = Z.current.get(i.src), y = r?.complete && r.src ? r.src : i.src;
|
|
883
|
+
return /* @__PURE__ */ w(
|
|
655
884
|
"img",
|
|
656
885
|
{
|
|
657
886
|
src: y,
|
|
@@ -674,58 +903,77 @@ function mi({
|
|
|
674
903
|
})
|
|
675
904
|
}
|
|
676
905
|
),
|
|
677
|
-
/* @__PURE__ */ p(
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
906
|
+
/* @__PURE__ */ p(
|
|
907
|
+
"div",
|
|
908
|
+
{
|
|
909
|
+
style: {
|
|
910
|
+
marginTop: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "1px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "4px" : "16px",
|
|
911
|
+
height: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "40px" : z || typeof window < "u" && window.innerWidth / window.innerHeight > 1.8 || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "50px" : "80px"
|
|
912
|
+
},
|
|
913
|
+
children: [
|
|
914
|
+
v === "guess" && !E && /* @__PURE__ */ w(
|
|
915
|
+
"div",
|
|
916
|
+
{
|
|
917
|
+
style: {
|
|
918
|
+
display: "flex",
|
|
919
|
+
flexDirection: rn ? "row" : "column",
|
|
920
|
+
gap: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "3px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f ? "8px" : n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "6px" : "12px",
|
|
921
|
+
alignItems: "center",
|
|
922
|
+
justifyContent: "center",
|
|
923
|
+
width: "100%",
|
|
924
|
+
maxWidth: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "270px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "400px" : "300px"
|
|
925
|
+
},
|
|
926
|
+
children: /* @__PURE__ */ p(Ln, { children: [
|
|
927
|
+
/* @__PURE__ */ w(
|
|
928
|
+
"input",
|
|
929
|
+
{
|
|
930
|
+
type: "text",
|
|
931
|
+
placeholder: "Type the missing word",
|
|
932
|
+
value: N,
|
|
933
|
+
onChange: (i) => yn(i.target.value),
|
|
934
|
+
style: {
|
|
935
|
+
...o.gmInput,
|
|
936
|
+
width: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "170px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "250px" : "auto",
|
|
937
|
+
padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "5px 6px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 12px" : "12px 16px",
|
|
938
|
+
fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 || n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 ? "10px" : window.innerWidth === 896 && window.innerHeight === 414 ? "11px" : window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px",
|
|
939
|
+
flex: rn ? "1" : "none"
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
),
|
|
943
|
+
/* @__PURE__ */ w(
|
|
944
|
+
"button",
|
|
945
|
+
{
|
|
946
|
+
style: {
|
|
947
|
+
...o.gmButton,
|
|
948
|
+
marginLeft: rn ? "8px" : "0",
|
|
949
|
+
padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "5px 8px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "6px 10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 16px" : "12px 24px",
|
|
950
|
+
fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "10px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "11px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px",
|
|
951
|
+
minWidth: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "45px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "55px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "80px" : "100px",
|
|
952
|
+
flexShrink: 0
|
|
953
|
+
},
|
|
954
|
+
onClick: Xn,
|
|
955
|
+
disabled: wn,
|
|
956
|
+
children: wn ? "..." : "Check"
|
|
957
|
+
}
|
|
958
|
+
)
|
|
959
|
+
] })
|
|
703
960
|
}
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
}
|
|
721
|
-
)
|
|
722
|
-
] }) }),
|
|
723
|
-
C && /* @__PURE__ */ d("button", { style: {
|
|
724
|
-
...w.gmButton,
|
|
725
|
-
padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "5px 8px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "6px 10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || S || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 16px" : "12px 24px",
|
|
726
|
-
fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "10px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "11px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || S || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px"
|
|
727
|
-
}, onClick: Qn, children: "Next round" })
|
|
728
|
-
] })
|
|
961
|
+
),
|
|
962
|
+
E && /* @__PURE__ */ w(
|
|
963
|
+
"button",
|
|
964
|
+
{
|
|
965
|
+
style: {
|
|
966
|
+
...o.gmButton,
|
|
967
|
+
padding: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "5px 8px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "6px 10px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "10px 16px" : "12px 24px",
|
|
968
|
+
fontSize: n && window.innerWidth <= 375 && window.innerHeight <= 667 ? "10px" : n && window.innerWidth > window.innerHeight && window.innerHeight <= 428 || window.innerWidth === 896 && window.innerHeight === 414 || window.innerWidth === 844 && window.innerHeight === 390 || window.innerWidth === 926 && window.innerHeight === 428 ? "11px" : window.innerWidth === 1366 && window.innerHeight === 766 || window.innerWidth === 1366 && window.innerHeight === 768 || window.innerWidth === 1280 && window.innerHeight === 720 || window.innerWidth === 1440 && window.innerHeight === 900 || I || l || c || x || H || W || m || u || f || n && window.innerWidth > window.innerHeight || window.innerHeight < 700 ? "14px" : "16px"
|
|
969
|
+
},
|
|
970
|
+
onClick: ni,
|
|
971
|
+
children: "Next round"
|
|
972
|
+
}
|
|
973
|
+
)
|
|
974
|
+
]
|
|
975
|
+
}
|
|
976
|
+
)
|
|
729
977
|
] })
|
|
730
978
|
] })
|
|
731
979
|
}
|
|
@@ -736,6 +984,6 @@ function mi({
|
|
|
736
984
|
);
|
|
737
985
|
}
|
|
738
986
|
export {
|
|
739
|
-
|
|
987
|
+
Ti as Game,
|
|
740
988
|
K as themes
|
|
741
989
|
};
|