@hadoku/watchparty-ui 0.45.96 → 0.45.98
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/chunks/{AdminPanel-CTd54UdK.js → AdminPanel-Qzm0HZdt.js} +7 -7
- package/dist/chunks/{AdminPanel-CTd54UdK.js.map → AdminPanel-Qzm0HZdt.js.map} +1 -1
- package/dist/chunks/{MediaDrawer-Bn1Vtxcm.js → MediaDrawer-Bme1mHSR.js} +1048 -797
- package/dist/chunks/MediaDrawer-Bme1mHSR.js.map +1 -0
- package/dist/chunks/{PlaylistPanel-Bw1Md4iM.js → PlaylistPanel-Cvbya5b8.js} +9 -9
- package/dist/chunks/{PlaylistPanel-Bw1Md4iM.js.map → PlaylistPanel-Cvbya5b8.js.map} +1 -1
- package/dist/chunks/{Room-B0Zl13Bx.js → Room-DICwz_k7.js} +390 -387
- package/dist/chunks/Room-DICwz_k7.js.map +1 -0
- package/dist/chunks/{index-Blg73T3D.js → index-D9KGxXrK.js} +520 -502
- package/dist/chunks/index-D9KGxXrK.js.map +1 -0
- package/dist/chunks/{submissionsApi-yh1hPhDC.js → submissionsApi-B9vCk8Pa.js} +16 -16
- package/dist/chunks/{submissionsApi-yh1hPhDC.js.map → submissionsApi-B9vCk8Pa.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/room-chrome.js +299 -280
- package/dist/room-chrome.js.map +1 -1
- package/dist/watchparty-ui.css +1 -1
- package/package.json +3 -3
- package/dist/chunks/MediaDrawer-Bn1Vtxcm.js.map +0 -1
- package/dist/chunks/Room-B0Zl13Bx.js.map +0 -1
- package/dist/chunks/index-Blg73T3D.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as d, jsxs as k, Fragment as ye } from "react/jsx-runtime";
|
|
2
|
-
import Ke, { useState as $, useRef as L, useEffect as N, useCallback as j, useMemo as Me, Component as
|
|
3
|
-
import { k as
|
|
2
|
+
import Ke, { useState as $, useRef as L, useEffect as N, useCallback as j, useMemo as Me, Component as Ss, useContext as Zn, createContext as er, useId as ws, useEffectEvent as ue } from "react";
|
|
3
|
+
import { k as Es, M as xs, m as Ms, f as ks, a as _s, C as mt, g as rn, i as As, S as Ts, b as Is, r as At, d as E, e as ee, u as x, c as Cs, h as Rs, A as vt, j as Ns, l as st, n as tr, o as nr, D as dt, w as I, p as Fs, q as Ls, s as rr, t as sr, v as ar, x as $s, L as Ps, y as Ds, z as sn, B as Bs, E as Os, F as Hs, G as ir, H as an, I as or, J as cr, K as Us, N as js, O as Ne, P as Sn, T as Lt, Q as Gs, R as lr, U as Ws, V as Ks, W as Vs, X as dr, Y as zs, Z as Y, _ as Js, $ as ur, a0 as fr, a1 as tt, a2 as Qs, a3 as qs, a4 as Ys, a5 as Xs, a6 as Zs, a7 as wn, a8 as Qe, a9 as ea, aa as En, ab as ta, ac as na, ad as xn, ae as ra, af as sa, ag as aa, ah as ia, ai as oa, aj as Mn, ak as kn, al as ca, am as hr, an as _n, ao as la, ap as xt, aq as da, ar as ua, as as fa, at as ha, au as pa, av as ma, aw as ga, ax as ba, ay as ya, az as va, aA as Sa } from "./index-D9KGxXrK.js";
|
|
4
4
|
import { createPortal as It } from "react-dom";
|
|
5
|
-
import { Icon as gt, THEMES as
|
|
6
|
-
import { HadokuThemePicker as
|
|
7
|
-
import { createRoot as
|
|
8
|
-
function
|
|
5
|
+
import { Icon as gt, THEMES as wa, useHadokuThemeOptional as Ea } from "@wolffm/themes";
|
|
6
|
+
import { HadokuThemePicker as xa, ConnectedSettings as Ma } from "@wolffm/task-ui-components";
|
|
7
|
+
import { createRoot as ka } from "react-dom/client";
|
|
8
|
+
function _a(t) {
|
|
9
9
|
return t.kind === "file";
|
|
10
10
|
}
|
|
11
11
|
class pr extends Error {
|
|
@@ -33,42 +33,42 @@ function _t(t) {
|
|
|
33
33
|
return "Image upload failed";
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
function _a(t) {
|
|
37
|
-
return t instanceof mt ? _t(t.reason) : t instanceof pr ? t.message : "Image upload failed";
|
|
38
|
-
}
|
|
39
36
|
function Aa(t) {
|
|
40
|
-
|
|
41
|
-
return e && ws(e) !== "image" ? _t("unsupported-type") : t.size > Es.image ? _t("too-large") : t.size === 0 ? _t("invalid") : null;
|
|
37
|
+
return t instanceof mt ? _t(t.reason) : t instanceof pr ? t.message : "Image upload failed";
|
|
42
38
|
}
|
|
43
39
|
function Ta(t) {
|
|
44
|
-
|
|
40
|
+
const e = t.type.toLowerCase().split(";")[0].trim();
|
|
41
|
+
return e && Es(e) !== "image" ? _t("unsupported-type") : t.size > xs.image ? _t("too-large") : t.size === 0 ? _t("invalid") : null;
|
|
45
42
|
}
|
|
46
43
|
function Ia(t) {
|
|
47
44
|
return ks(t);
|
|
48
45
|
}
|
|
49
|
-
|
|
50
|
-
|
|
46
|
+
function Ca(t) {
|
|
47
|
+
return _s(t);
|
|
48
|
+
}
|
|
49
|
+
async function Ra(t) {
|
|
50
|
+
const e = await Ms(t);
|
|
51
51
|
return { w: e?.width ?? 0, h: e?.height ?? 0 };
|
|
52
52
|
}
|
|
53
|
-
async function
|
|
53
|
+
async function Na(t, e = {}) {
|
|
54
54
|
const n = await rn().upload(t, { signal: e.signal });
|
|
55
|
-
if (!
|
|
55
|
+
if (!As(n.key))
|
|
56
56
|
throw new pr("Image upload returned an unusable key");
|
|
57
57
|
return { key: n.key, deduplicated: n.deduplicated === !0 };
|
|
58
58
|
}
|
|
59
|
-
async function
|
|
59
|
+
async function Fa(t, e = {}) {
|
|
60
60
|
const n = [];
|
|
61
61
|
for (const r of t) {
|
|
62
62
|
if (r.kind === "remote") {
|
|
63
63
|
n.push({ key: r.key, w: r.w, h: r.h, ...r.title ? { title: r.title } : {} });
|
|
64
64
|
continue;
|
|
65
65
|
}
|
|
66
|
-
const { key: s } = await
|
|
66
|
+
const { key: s } = await Na(r.file, e);
|
|
67
67
|
n.push({ key: s, w: r.w, h: r.h });
|
|
68
68
|
}
|
|
69
69
|
return n;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function La(t) {
|
|
72
72
|
return {
|
|
73
73
|
error: t instanceof Error ? t.message : String(t),
|
|
74
74
|
name: t instanceof Error ? t.name : typeof t,
|
|
@@ -76,14 +76,14 @@ function Fa(t) {
|
|
|
76
76
|
status: t instanceof mt ? t.status : void 0
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function $a(t) {
|
|
80
80
|
const e = L(t);
|
|
81
81
|
return N(() => {
|
|
82
82
|
e.current = t;
|
|
83
83
|
}), [e, `${t.cdnBase}|${t.uploadPath}`];
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
const { limit: s, debounceMs: i =
|
|
85
|
+
function Pa(t, e, n, r = {}) {
|
|
86
|
+
const { limit: s, debounceMs: i = Ts } = r, [a, l] = $a(t), [o, c] = $([]), [u, f] = $(null), [p, g] = $(!1), [b, h] = $(null), [v, S] = $(0), A = L(null);
|
|
87
87
|
N(() => {
|
|
88
88
|
S(0), f(null);
|
|
89
89
|
}, [n, e]), N(() => {
|
|
@@ -130,7 +130,7 @@ function $a(t, e, n, r = {}) {
|
|
|
130
130
|
function Ve(t) {
|
|
131
131
|
return t.key === "Escape" || t.key === "GoBack" || t.key === "BrowserBack" || t.key === "XF86Back" || t.keyCode === 461 || t.keyCode === 10009;
|
|
132
132
|
}
|
|
133
|
-
const
|
|
133
|
+
const Da = /* @__PURE__ */ new Set([
|
|
134
134
|
"Enter",
|
|
135
135
|
" ",
|
|
136
136
|
"ArrowLeft",
|
|
@@ -140,15 +140,15 @@ const Pa = /* @__PURE__ */ new Set([
|
|
|
140
140
|
"MediaPlayPause",
|
|
141
141
|
"Select"
|
|
142
142
|
]);
|
|
143
|
-
function
|
|
143
|
+
function Ba(t) {
|
|
144
144
|
const { key: e, back: n, modifier: r, barVisible: s, focus: i } = t;
|
|
145
145
|
if (r || i === "text") return "ignore";
|
|
146
146
|
if (i === "elsewhere") return n ? "ignore" : "show";
|
|
147
147
|
if (n) return i === "bar" && s ? "leave-bar" : "ignore";
|
|
148
|
-
const a =
|
|
148
|
+
const a = Da.has(e);
|
|
149
149
|
return i === "bar" ? !s && a ? "wake" : "show" : a ? "enter-bar" : "show";
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Oa(t, e, n = !1, r = { atStart: !1, atEnd: !1 }) {
|
|
152
152
|
const s = t === "ArrowLeft" ? -1 : t === "ArrowRight" ? 1 : null, i = t === "ArrowUp" ? -1 : t === "ArrowDown" ? 1 : null;
|
|
153
153
|
switch (e) {
|
|
154
154
|
case "range":
|
|
@@ -169,9 +169,9 @@ const et = "data-remote-engaged";
|
|
|
169
169
|
function mr(t) {
|
|
170
170
|
return t instanceof HTMLSelectElement ? "select" : t instanceof HTMLInputElement ? t.type === "range" ? "range" : "text" : t instanceof HTMLTextAreaElement ? "text" : "button";
|
|
171
171
|
}
|
|
172
|
-
const
|
|
172
|
+
const Ha = 'button:not([disabled]), input:not([disabled]), select:not([disabled]), a[href], [tabindex]:not([tabindex="-1"])';
|
|
173
173
|
function gr(t) {
|
|
174
|
-
return Array.from(t.querySelectorAll(
|
|
174
|
+
return Array.from(t.querySelectorAll(Ha)).filter((e) => e.tabIndex >= 0 && e.getClientRects().length > 0);
|
|
175
175
|
}
|
|
176
176
|
function br(t) {
|
|
177
177
|
const e = gr(t);
|
|
@@ -180,17 +180,17 @@ function br(t) {
|
|
|
180
180
|
function yr(t) {
|
|
181
181
|
return t ? t instanceof HTMLTextAreaElement ? !0 : t instanceof HTMLInputElement ? !["range", "checkbox", "radio", "button", "submit"].includes(t.type) : t.isContentEditable === !0 : !1;
|
|
182
182
|
}
|
|
183
|
-
const qt = 240, je = 8,
|
|
184
|
-
function
|
|
183
|
+
const qt = 240, je = 8, Ua = 28, vr = 240;
|
|
184
|
+
function ja(t, e, n) {
|
|
185
185
|
let r = e.left - qt - je;
|
|
186
186
|
r < je && (r = e.right + je), r = Math.min(r, n.width - qt - je), r = Math.max(je, r);
|
|
187
|
-
const s = vr +
|
|
187
|
+
const s = vr + Ua;
|
|
188
188
|
let i = t.top + t.height / 2 - s / 2;
|
|
189
189
|
return i = Math.min(i, n.height - s - je), i = Math.max(je, i), { left: r, top: i };
|
|
190
190
|
}
|
|
191
|
-
const Sr = "/dataplatform/api/memes",
|
|
192
|
-
function
|
|
193
|
-
const [r, s] = $(""), i = L(null), a = L(null), l = rn(), { items: o, loading: c, error: u, hasMore: f, loadMore: p } =
|
|
191
|
+
const Sr = "/dataplatform/api/memes", Ga = 120;
|
|
192
|
+
function Wa({ onClose: t, onPick: e, onUnavailable: n }) {
|
|
193
|
+
const [r, s] = $(""), i = L(null), a = L(null), l = rn(), { items: o, loading: c, error: u, hasMore: f, loadMore: p } = Pa(
|
|
194
194
|
l,
|
|
195
195
|
Sr,
|
|
196
196
|
r.trim()
|
|
@@ -207,12 +207,12 @@ function Ga({ onClose: t, onPick: e, onUnavailable: n }) {
|
|
|
207
207
|
if (!P) return;
|
|
208
208
|
const O = () => v({
|
|
209
209
|
item: y,
|
|
210
|
-
...
|
|
210
|
+
...ja(w.getBoundingClientRect(), P.getBoundingClientRect(), {
|
|
211
211
|
width: window.innerWidth,
|
|
212
212
|
height: window.innerHeight
|
|
213
213
|
})
|
|
214
214
|
});
|
|
215
|
-
A(), C ? O() : S.current = window.setTimeout(O,
|
|
215
|
+
A(), C ? O() : S.current = window.setTimeout(O, Ga);
|
|
216
216
|
},
|
|
217
217
|
[A]
|
|
218
218
|
);
|
|
@@ -270,7 +270,7 @@ function Ga({ onClose: t, onPick: e, onUnavailable: n }) {
|
|
|
270
270
|
"data-reason": g,
|
|
271
271
|
children: g === "unauthenticated" ? /* @__PURE__ */ k(ye, { children: [
|
|
272
272
|
"Sign in to browse memes · ",
|
|
273
|
-
/* @__PURE__ */ d(
|
|
273
|
+
/* @__PURE__ */ d(Is, { className: "underline text-on-danger-bg" })
|
|
274
274
|
] }) : g === "forbidden" ? "Your account can't browse the meme library" : "Meme library is unavailable"
|
|
275
275
|
}
|
|
276
276
|
),
|
|
@@ -358,18 +358,18 @@ function Ga({ onClose: t, onPick: e, onUnavailable: n }) {
|
|
|
358
358
|
);
|
|
359
359
|
}
|
|
360
360
|
function wr({ open: t, ...e }) {
|
|
361
|
-
return t ? /* @__PURE__ */ d(
|
|
361
|
+
return t ? /* @__PURE__ */ d(Wa, { ...e }) : null;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function Ka(t) {
|
|
364
364
|
return typeof t == "object" && t !== null && typeof t.mount == "function";
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Va(t) {
|
|
367
367
|
if (typeof t != "object" || t === null)
|
|
368
368
|
return !1;
|
|
369
369
|
const e = t;
|
|
370
370
|
return typeof e.unmount == "function" && typeof e.update == "function" && (e.mountSettings === void 0 || typeof e.mountSettings == "function");
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function za(t) {
|
|
373
373
|
if (!t.startsWith("/") || t.startsWith("//") || /[\\\s]/.test(t) || [...t].some((e) => e.charCodeAt(0) < 32 || e.charCodeAt(0) === 127))
|
|
374
374
|
return !1;
|
|
375
375
|
try {
|
|
@@ -378,21 +378,21 @@ function Va(t) {
|
|
|
378
378
|
return !1;
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
if (!
|
|
381
|
+
function Ja(t, e) {
|
|
382
|
+
if (!za(t))
|
|
383
383
|
return null;
|
|
384
384
|
const n = new URL(t, e);
|
|
385
385
|
return n.origin === e ? n.href : null;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
388
|
-
const n =
|
|
387
|
+
function Qa(t, e) {
|
|
388
|
+
const n = Ja(t.url, e);
|
|
389
389
|
return { id: t.id, name: t.name, load: n ? () => import(
|
|
390
390
|
/* @vite-ignore */
|
|
391
391
|
n
|
|
392
392
|
) : null };
|
|
393
393
|
}
|
|
394
394
|
const qe = (t) => t instanceof Error ? t.message : String(t);
|
|
395
|
-
function
|
|
395
|
+
function qa(t) {
|
|
396
396
|
let e = t.ctx, n = null, r = !1, s = !1;
|
|
397
397
|
const i = /* @__PURE__ */ new Set(), a = (p, g) => t.onSettingsError?.(p, g), l = (p) => {
|
|
398
398
|
if (i.delete(p))
|
|
@@ -436,7 +436,7 @@ function Qa(t) {
|
|
|
436
436
|
}
|
|
437
437
|
if (r)
|
|
438
438
|
return;
|
|
439
|
-
if (!
|
|
439
|
+
if (!Ka(p)) {
|
|
440
440
|
u("the game module does not export mount()");
|
|
441
441
|
return;
|
|
442
442
|
}
|
|
@@ -448,7 +448,7 @@ function Qa(t) {
|
|
|
448
448
|
u(`the game failed to start: ${qe(h)}`, h);
|
|
449
449
|
return;
|
|
450
450
|
}
|
|
451
|
-
if (!
|
|
451
|
+
if (!Va(b)) {
|
|
452
452
|
u("the game's mount() did not return { unmount, update }");
|
|
453
453
|
return;
|
|
454
454
|
}
|
|
@@ -483,7 +483,7 @@ const Yt = "watchparty:open-media-drawer";
|
|
|
483
483
|
function Er(t) {
|
|
484
484
|
E("navigation", `Select Media clicked (${t})`), window.dispatchEvent(new CustomEvent(Yt));
|
|
485
485
|
}
|
|
486
|
-
class xr extends
|
|
486
|
+
class xr extends Ss {
|
|
487
487
|
state = { hasError: !1 };
|
|
488
488
|
static getDerivedStateFromError() {
|
|
489
489
|
return { hasError: !0 };
|
|
@@ -517,7 +517,7 @@ function St() {
|
|
|
517
517
|
function Ct(t) {
|
|
518
518
|
return t.hasMedia && (t.chatCollapsed || t.isFullscreen);
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Ya(t, e) {
|
|
521
521
|
return t && Ct(e);
|
|
522
522
|
}
|
|
523
523
|
function on(t) {
|
|
@@ -526,7 +526,7 @@ function on(t) {
|
|
|
526
526
|
function Mr(t) {
|
|
527
527
|
return t.hasMedia ? t.gameOverlay && !t.isFullscreen ? "room-corner" : "control-bar" : "none";
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function Xa(t, e) {
|
|
530
530
|
if (e.clientId) {
|
|
531
531
|
const n = t[e.clientId];
|
|
532
532
|
if (n && (!e.author || !n.author || n.author === e.author)) return n;
|
|
@@ -536,7 +536,7 @@ function Ya(t, e) {
|
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
function kr(t, e, n) {
|
|
539
|
-
const r =
|
|
539
|
+
const r = Xa(t, e);
|
|
540
540
|
return r ? {
|
|
541
541
|
name: r.name || n.name,
|
|
542
542
|
// A connection briefly without a character (a reconnect waiting for one to
|
|
@@ -547,18 +547,18 @@ function kr(t, e, n) {
|
|
|
547
547
|
here: !0
|
|
548
548
|
} : { name: n.name, sprite: n.sprite, pictureUrl: n.pictureUrl, here: !1 };
|
|
549
549
|
}
|
|
550
|
-
function
|
|
551
|
-
return !e || !n.here ? t : e.split(
|
|
550
|
+
function Za(t, e, n) {
|
|
551
|
+
return !e || !n.here ? t : e.split(Cs).join(n.name);
|
|
552
552
|
}
|
|
553
553
|
function _r(t, e) {
|
|
554
554
|
const n = x((r) => JSON.stringify(kr(r.roster, t, e)));
|
|
555
555
|
return Me(() => JSON.parse(n), [n]);
|
|
556
556
|
}
|
|
557
|
-
const
|
|
557
|
+
const ei = er(!0);
|
|
558
558
|
function Ar() {
|
|
559
|
-
const t = Zn(
|
|
559
|
+
const t = Zn(ei);
|
|
560
560
|
N(() => {
|
|
561
|
-
t &&
|
|
561
|
+
t && Rs();
|
|
562
562
|
}, [t]);
|
|
563
563
|
}
|
|
564
564
|
function Tr(t) {
|
|
@@ -570,7 +570,7 @@ const bt = Ke.memo(
|
|
|
570
570
|
},
|
|
571
571
|
(t, e) => t.html === e.html && t.as === e.as && t.className === e.className && JSON.stringify(t.style) === JSON.stringify(e.style)
|
|
572
572
|
);
|
|
573
|
-
function
|
|
573
|
+
function ti(t, e) {
|
|
574
574
|
N(() => {
|
|
575
575
|
const n = t.current;
|
|
576
576
|
if (!n || !e || typeof IntersectionObserver > "u") return;
|
|
@@ -594,24 +594,24 @@ function Ir({ sprite: t, url: e, alt: n, worn: r }) {
|
|
|
594
594
|
fallback: /* @__PURE__ */ d("span", { className: "inline-block w-8 h-8 bg-bg-alt/50 rounded-full flex-shrink-0" })
|
|
595
595
|
}
|
|
596
596
|
) }),
|
|
597
|
-
r?.overlay && /* @__PURE__ */ d(bt, { html:
|
|
597
|
+
r?.overlay && /* @__PURE__ */ d(bt, { html: Ns(r), style: { display: "contents" } })
|
|
598
598
|
] });
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function ni(t) {
|
|
601
601
|
return !(t.button !== 0 || t.ctrlKey || t.metaKey || t.shiftKey || t.altKey);
|
|
602
602
|
}
|
|
603
|
-
const
|
|
604
|
-
function
|
|
605
|
-
return Zn(
|
|
603
|
+
const ri = er(null);
|
|
604
|
+
function si() {
|
|
605
|
+
return Zn(ri);
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function ai({ src: t, title: e, onClose: n }) {
|
|
608
608
|
N(() => {
|
|
609
609
|
const i = (a) => {
|
|
610
610
|
Ve(a) && (a.stopPropagation(), n());
|
|
611
611
|
};
|
|
612
612
|
return document.addEventListener("keydown", i, !0), () => document.removeEventListener("keydown", i, !0);
|
|
613
613
|
}, [n]);
|
|
614
|
-
const r =
|
|
614
|
+
const r = si(), s = typeof document > "u" ? null : document.fullscreenElement ?? r ?? document.body;
|
|
615
615
|
return s ? It(
|
|
616
616
|
/* @__PURE__ */ k(
|
|
617
617
|
"div",
|
|
@@ -650,11 +650,11 @@ function si({ src: t, title: e, onClose: n }) {
|
|
|
650
650
|
s
|
|
651
651
|
) : null;
|
|
652
652
|
}
|
|
653
|
-
const $t = 240,
|
|
654
|
-
function
|
|
653
|
+
const $t = 240, ii = 320;
|
|
654
|
+
function oi({ image: t }) {
|
|
655
655
|
const [e, n] = $(!1), r = At(t.key);
|
|
656
656
|
if (!r) return null;
|
|
657
|
-
const s = t.w > 0 && t.h > 0, i = s ? Math.min(1,
|
|
657
|
+
const s = t.w > 0 && t.h > 0, i = s ? Math.min(1, ii / t.w, $t / t.h) : 1;
|
|
658
658
|
return /* @__PURE__ */ k(ye, { children: [
|
|
659
659
|
/* @__PURE__ */ d(
|
|
660
660
|
"a",
|
|
@@ -665,7 +665,7 @@ function ii({ image: t }) {
|
|
|
665
665
|
className: "block max-w-full cursor-zoom-in",
|
|
666
666
|
"data-testid": "chat-image",
|
|
667
667
|
onClick: (a) => {
|
|
668
|
-
|
|
668
|
+
ni(a) && (a.preventDefault(), n(!0));
|
|
669
669
|
},
|
|
670
670
|
children: /* @__PURE__ */ d(
|
|
671
671
|
"img",
|
|
@@ -683,7 +683,7 @@ function ii({ image: t }) {
|
|
|
683
683
|
}
|
|
684
684
|
),
|
|
685
685
|
e && /* @__PURE__ */ d(
|
|
686
|
-
|
|
686
|
+
ai,
|
|
687
687
|
{
|
|
688
688
|
src: r,
|
|
689
689
|
title: t.title,
|
|
@@ -693,20 +693,20 @@ function ii({ image: t }) {
|
|
|
693
693
|
] });
|
|
694
694
|
}
|
|
695
695
|
function Cr({ images: t }) {
|
|
696
|
-
return t?.length ? /* @__PURE__ */ d("div", { className: "flex flex-wrap gap-1 mt-1", "data-testid": "chat-images", children: t.map((e, n) => /* @__PURE__ */ d(
|
|
696
|
+
return t?.length ? /* @__PURE__ */ d("div", { className: "flex flex-wrap gap-1 mt-1", "data-testid": "chat-images", children: t.map((e, n) => /* @__PURE__ */ d(oi, { image: e }, `${e.key}-${n}`)) }) : null;
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function ci(t, e) {
|
|
699
699
|
return t.author && e.author ? t.author === e.author : !!e.clientId && t.clientId === e.clientId;
|
|
700
700
|
}
|
|
701
701
|
function Pt(t) {
|
|
702
702
|
return new Date(t).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
|
|
703
703
|
}
|
|
704
|
-
const
|
|
705
|
-
const n = x((u) => u.me.clientId), r = x((u) => u.me.clientId ? u.roster[u.me.clientId]?.author : void 0), s =
|
|
704
|
+
const li = Ke.memo(function({ message: e }) {
|
|
705
|
+
const n = x((u) => u.me.clientId), r = x((u) => u.me.clientId ? u.roster[u.me.clientId]?.author : void 0), s = ci(e, { clientId: n, author: r }), i = _r(
|
|
706
706
|
{ clientId: e.clientId, author: e.author },
|
|
707
707
|
{ name: e.name, sprite: e.sprite }
|
|
708
708
|
), a = st(i.sprite, i.pictureUrl), l = e.isSystem ? void 0 : i.cosmetics, o = L(null);
|
|
709
|
-
|
|
709
|
+
ti(o, !!l);
|
|
710
710
|
const [c] = $(
|
|
711
711
|
() => e.live && e.text ? tr(e.text, l) : null
|
|
712
712
|
);
|
|
@@ -717,7 +717,7 @@ const ci = Ke.memo(function({ message: e }) {
|
|
|
717
717
|
] }),
|
|
718
718
|
/* @__PURE__ */ d("p", { className: "text-[13px] text-text-secondary leading-relaxed whitespace-pre-wrap break-words", children: e.text })
|
|
719
719
|
] }) }) : e.isSystem ? /* @__PURE__ */ k("div", { className: "px-2 py-0.5 text-[11px] text-text-muted italic text-center leading-tight", children: [
|
|
720
|
-
|
|
720
|
+
Za(e.text, e.template, i),
|
|
721
721
|
/* @__PURE__ */ d("span", { className: "ml-1 text-[10px] opacity-50", children: Pt(e.ts) })
|
|
722
722
|
] }) : /* @__PURE__ */ k("div", { ref: o, style: Tr(a), className: `flex items-start gap-2 px-2 py-1 hover:bg-bg-card/20 ${s ? "bg-bg-card/30" : ""}`, children: [
|
|
723
723
|
/* @__PURE__ */ d(Ir, { sprite: i.sprite, url: i.pictureUrl, alt: i.name, worn: l }),
|
|
@@ -729,7 +729,7 @@ const ci = Ke.memo(function({ message: e }) {
|
|
|
729
729
|
] })
|
|
730
730
|
] });
|
|
731
731
|
});
|
|
732
|
-
function
|
|
732
|
+
function di() {
|
|
733
733
|
Ar();
|
|
734
734
|
const t = x((s) => s.chat), e = L(null), n = L(!1), r = j(() => {
|
|
735
735
|
const s = e.current;
|
|
@@ -754,7 +754,7 @@ function li() {
|
|
|
754
754
|
/* @__PURE__ */ d("span", { className: "text-[10px] text-text-muted whitespace-nowrap", children: new Date(s.ts).toLocaleDateString([], { weekday: "short", month: "short", day: "numeric" }) }),
|
|
755
755
|
/* @__PURE__ */ d("div", { className: "flex-1 h-px bg-border" })
|
|
756
756
|
] }),
|
|
757
|
-
/* @__PURE__ */ d(
|
|
757
|
+
/* @__PURE__ */ d(li, { message: s })
|
|
758
758
|
] }, s.id);
|
|
759
759
|
}) })
|
|
760
760
|
}
|
|
@@ -781,12 +781,12 @@ const cn = [
|
|
|
781
781
|
scope: "local"
|
|
782
782
|
}
|
|
783
783
|
], rt = "/";
|
|
784
|
-
function
|
|
784
|
+
function ui(t) {
|
|
785
785
|
if (!t.startsWith(rt)) return null;
|
|
786
786
|
const e = t.slice(rt.length);
|
|
787
787
|
return /\s/.test(e) ? null : e.toLowerCase();
|
|
788
788
|
}
|
|
789
|
-
function
|
|
789
|
+
function fi(t, e = cn) {
|
|
790
790
|
const n = t.toLowerCase();
|
|
791
791
|
if (!n) return [...e].sort((s, i) => s.name.localeCompare(i.name));
|
|
792
792
|
const r = [];
|
|
@@ -796,23 +796,23 @@ function ui(t, e = cn) {
|
|
|
796
796
|
}
|
|
797
797
|
return r.sort((s, i) => s.rank - i.rank || s.cmd.name.localeCompare(i.cmd.name)).map((s) => s.cmd);
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function hi(t) {
|
|
800
800
|
return `${rt}${t.name} `;
|
|
801
801
|
}
|
|
802
802
|
function Dt(t, e) {
|
|
803
803
|
return e <= 0 ? 0 : (t % e + e) % e;
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function pi(t, e = cn) {
|
|
806
806
|
const n = t.trim();
|
|
807
807
|
if (!n) return null;
|
|
808
808
|
if (!n.startsWith(rt)) return { kind: "chat", text: n };
|
|
809
809
|
const r = n.slice(rt.length), s = r.search(/\s/), i = (s === -1 ? r : r.slice(0, s)).toLowerCase(), a = s === -1 ? "" : r.slice(s).trim(), l = e.find((o) => o.name.toLowerCase() === i);
|
|
810
810
|
return l ? { kind: "command", command: l, args: a } : { kind: "chat", text: n };
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function mi(t, e) {
|
|
813
813
|
return t.requiresMedia && !e.hasMedia ? `${rt}${t.name} needs an episode loaded.` : null;
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function gi({
|
|
816
816
|
commands: t,
|
|
817
817
|
activeIndex: e,
|
|
818
818
|
hasMedia: n,
|
|
@@ -888,17 +888,17 @@ function Nr() {
|
|
|
888
888
|
i.current.clear();
|
|
889
889
|
}, []);
|
|
890
890
|
const a = j((h) => {
|
|
891
|
-
|
|
891
|
+
_a(h) && (URL.revokeObjectURL(h.previewUrl), i.current.delete(h.previewUrl));
|
|
892
892
|
}, []), l = j(async (h) => {
|
|
893
893
|
if (!h.length) return;
|
|
894
894
|
const v = [];
|
|
895
895
|
for (const S of h) {
|
|
896
|
-
const A =
|
|
896
|
+
const A = Ta(S);
|
|
897
897
|
if (A) {
|
|
898
898
|
s("error", A);
|
|
899
899
|
continue;
|
|
900
900
|
}
|
|
901
|
-
const { w: R, h: _ } = await
|
|
901
|
+
const { w: R, h: _ } = await Ra(S), m = URL.createObjectURL(S);
|
|
902
902
|
i.current.add(m), v.push({
|
|
903
903
|
kind: "file",
|
|
904
904
|
id: `${Date.now()}-${Math.random().toString(36).slice(2, 8)}`,
|
|
@@ -945,10 +945,10 @@ function Nr() {
|
|
|
945
945
|
return [];
|
|
946
946
|
});
|
|
947
947
|
}, [a]), f = j((h) => {
|
|
948
|
-
const v =
|
|
948
|
+
const v = Ia(h.clipboardData);
|
|
949
949
|
v.length && (h.preventDefault(), l(v));
|
|
950
950
|
}, [l]), p = j((h) => {
|
|
951
|
-
const v =
|
|
951
|
+
const v = Ca(h.dataTransfer);
|
|
952
952
|
v.length && (h.preventDefault(), l(v));
|
|
953
953
|
}, [l]), g = j((h) => {
|
|
954
954
|
h.dataTransfer?.types?.includes("Files") && h.preventDefault();
|
|
@@ -956,9 +956,9 @@ function Nr() {
|
|
|
956
956
|
if (!t.length) return [];
|
|
957
957
|
r(!0);
|
|
958
958
|
try {
|
|
959
|
-
return await
|
|
959
|
+
return await Fa(t);
|
|
960
960
|
} catch (h) {
|
|
961
|
-
return I("chat", "Image upload failed",
|
|
961
|
+
return I("chat", "Image upload failed", La(h)), s("error", Aa(h)), null;
|
|
962
962
|
} finally {
|
|
963
963
|
r(!1);
|
|
964
964
|
}
|
|
@@ -976,16 +976,16 @@ function Nr() {
|
|
|
976
976
|
onDragOver: g
|
|
977
977
|
};
|
|
978
978
|
}
|
|
979
|
-
const An = ar,
|
|
980
|
-
function
|
|
981
|
-
const [e, n] = $(""), [r, s] = $(!1), [i, a] = $({ q: null, i: 0 }), [l, o] = $(!1), c = L(null), u =
|
|
982
|
-
() => _ === null ? [] :
|
|
979
|
+
const An = ar, bi = sr;
|
|
980
|
+
function yi({ commands: t = cn }) {
|
|
981
|
+
const [e, n] = $(""), [r, s] = $(!1), [i, a] = $({ q: null, i: 0 }), [l, o] = $(!1), c = L(null), u = ws(), [f, p] = $(!1), [g, b] = $(!1), h = Nr(), v = x((D) => D.snapshot.mediaId), S = x((D) => D.pushToast), A = x((D) => D.setTierlistOpen), R = !!v, _ = ui(e), m = Me(
|
|
982
|
+
() => _ === null ? [] : fi(_, t),
|
|
983
983
|
[_, t]
|
|
984
984
|
), T = _ !== null && !l && m.length > 0, F = i.q === _ ? Dt(i.i, m.length) : 0, y = j(
|
|
985
985
|
(D) => a({ q: _, i: D }),
|
|
986
986
|
[_]
|
|
987
987
|
), w = j((D, W) => {
|
|
988
|
-
const X =
|
|
988
|
+
const X = mi(D, { hasMedia: R });
|
|
989
989
|
if (X) {
|
|
990
990
|
S("info", X);
|
|
991
991
|
return;
|
|
@@ -995,19 +995,19 @@ function bi({ commands: t = cn }) {
|
|
|
995
995
|
S("info", t.map((U) => U.usage).join(" "));
|
|
996
996
|
break;
|
|
997
997
|
case "recap":
|
|
998
|
-
|
|
998
|
+
Ls();
|
|
999
999
|
break;
|
|
1000
1000
|
case "tierlist":
|
|
1001
|
-
|
|
1001
|
+
Fs(), A(!0);
|
|
1002
1002
|
break;
|
|
1003
1003
|
default:
|
|
1004
1004
|
S("info", `${D.usage} is not implemented yet.`);
|
|
1005
1005
|
}
|
|
1006
1006
|
}, [R, S, t, A]), C = j((D) => {
|
|
1007
|
-
n(
|
|
1007
|
+
n(hi(D)), o(!1), c.current?.focus();
|
|
1008
1008
|
}, []), P = j(async (D) => {
|
|
1009
1009
|
if (D.preventDefault(), r || h.uploading) return;
|
|
1010
|
-
const W =
|
|
1010
|
+
const W = pi(e, t);
|
|
1011
1011
|
if (!W && !h.pending.length) return;
|
|
1012
1012
|
if (W?.kind === "command" && h.pending.length) {
|
|
1013
1013
|
S("info", "Send images on their own, not with a command.");
|
|
@@ -1018,7 +1018,7 @@ function bi({ commands: t = cn }) {
|
|
|
1018
1018
|
return;
|
|
1019
1019
|
}
|
|
1020
1020
|
const X = await h.uploadPending();
|
|
1021
|
-
X !== null && (rr(W?.text ?? "", X), n(""), h.clear(), s(!0), setTimeout(() => s(!1),
|
|
1021
|
+
X !== null && (rr(W?.text ?? "", X), n(""), h.clear(), s(!0), setTimeout(() => s(!1), bi), !document.hidden && document.hasFocus() && c.current?.focus());
|
|
1022
1022
|
}, [e, r, w, h, S, t]), O = j((D) => {
|
|
1023
1023
|
if (D.key === "Escape" && T) {
|
|
1024
1024
|
D.preventDefault(), o(!0);
|
|
@@ -1061,7 +1061,7 @@ function bi({ commands: t = cn }) {
|
|
|
1061
1061
|
/* @__PURE__ */ d(Rr, { pending: h.pending, uploading: h.uploading, onRemove: h.remove }),
|
|
1062
1062
|
/* @__PURE__ */ k("div", { className: "relative", children: [
|
|
1063
1063
|
T && /* @__PURE__ */ d(
|
|
1064
|
-
|
|
1064
|
+
gi,
|
|
1065
1065
|
{
|
|
1066
1066
|
commands: m,
|
|
1067
1067
|
activeIndex: F,
|
|
@@ -1125,11 +1125,11 @@ function bi({ commands: t = cn }) {
|
|
|
1125
1125
|
}
|
|
1126
1126
|
);
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1128
|
+
function vi() {
|
|
1129
1129
|
const t = x((n) => n.roster), e = Object.values(t);
|
|
1130
|
-
return e.length ? /* @__PURE__ */ d("div", { className: "flex flex-col gap-1", children: e.map((n) => /* @__PURE__ */ d(
|
|
1130
|
+
return e.length ? /* @__PURE__ */ d("div", { className: "flex flex-col gap-1", children: e.map((n) => /* @__PURE__ */ d(Si, { u: n }, n.clientId)) }) : /* @__PURE__ */ d("div", { className: "text-xs text-text-muted", children: "No users online" });
|
|
1131
1131
|
}
|
|
1132
|
-
function
|
|
1132
|
+
function Si({ u: t }) {
|
|
1133
1133
|
const e = st(t.sprite, t.avatarUrl);
|
|
1134
1134
|
return /* @__PURE__ */ k("div", { className: "flex items-center gap-2 py-0.5", children: [
|
|
1135
1135
|
/* @__PURE__ */ d(
|
|
@@ -1146,7 +1146,7 @@ function vi({ u: t }) {
|
|
|
1146
1146
|
t.isLeader && /* @__PURE__ */ d("span", { className: "ml-auto px-1.5 py-0.5 rounded text-[9px] font-medium bg-success/20 text-success", children: "Leader" })
|
|
1147
1147
|
] });
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1149
|
+
function wi() {
|
|
1150
1150
|
const t = x((i) => Object.keys(i.roster).length), [e, n] = $(!1), r = L(null), s = L(null);
|
|
1151
1151
|
return N(() => {
|
|
1152
1152
|
if (!e) return;
|
|
@@ -1182,20 +1182,20 @@ function Si() {
|
|
|
1182
1182
|
t,
|
|
1183
1183
|
" online"
|
|
1184
1184
|
] }),
|
|
1185
|
-
/* @__PURE__ */ d(
|
|
1185
|
+
/* @__PURE__ */ d(vi, {})
|
|
1186
1186
|
] })
|
|
1187
1187
|
] });
|
|
1188
1188
|
}
|
|
1189
|
-
function
|
|
1189
|
+
function Ei({ leaderId: t, clientId: e, keyType: n }) {
|
|
1190
1190
|
return t !== null ? t === e : n === "leader";
|
|
1191
1191
|
}
|
|
1192
|
-
const
|
|
1193
|
-
function
|
|
1194
|
-
return t &&
|
|
1192
|
+
const xi = /-[0-9a-fA-F]{16}$/;
|
|
1193
|
+
function Mi(t) {
|
|
1194
|
+
return t && xi.test(t) ? "leader" : null;
|
|
1195
1195
|
}
|
|
1196
|
-
const
|
|
1197
|
-
function
|
|
1198
|
-
const e = t ?
|
|
1196
|
+
const ki = /\/room\/([^/]+)\/?$/;
|
|
1197
|
+
function _i(t) {
|
|
1198
|
+
const e = t ? ki.exec(t) : null;
|
|
1199
1199
|
if (!e) return null;
|
|
1200
1200
|
try {
|
|
1201
1201
|
return decodeURIComponent(e[1]);
|
|
@@ -1203,39 +1203,39 @@ function ki(t) {
|
|
|
1203
1203
|
return e[1];
|
|
1204
1204
|
}
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1207
|
-
return t && e?.roomKey === t ? e.type :
|
|
1206
|
+
function Ai(t, e) {
|
|
1207
|
+
return t && e?.roomKey === t ? e.type : Mi(t);
|
|
1208
1208
|
}
|
|
1209
1209
|
function ze() {
|
|
1210
1210
|
return x((t) => !!t.snapshot.leaderId && t.snapshot.leaderId === t.me.clientId);
|
|
1211
1211
|
}
|
|
1212
1212
|
function Rt() {
|
|
1213
|
-
const t = x((n) => n.activeGameId), e =
|
|
1213
|
+
const t = x((n) => n.activeGameId), e = $s();
|
|
1214
1214
|
return t ? e.find((n) => n.id === t) ?? null : null;
|
|
1215
1215
|
}
|
|
1216
1216
|
function ln() {
|
|
1217
|
-
return x((t) =>
|
|
1217
|
+
return x((t) => Ei({
|
|
1218
1218
|
leaderId: t.snapshot.leaderId,
|
|
1219
1219
|
clientId: t.me.clientId,
|
|
1220
|
-
keyType: _i(
|
|
1220
|
+
keyType: Ai(_i(globalThis.location?.pathname), t.roomKeyType)
|
|
1221
1221
|
}));
|
|
1222
1222
|
}
|
|
1223
1223
|
function Fr() {
|
|
1224
1224
|
return x((t) => t.readiness);
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1226
|
+
function Ti() {
|
|
1227
1227
|
return x((t) => t.snapshot);
|
|
1228
1228
|
}
|
|
1229
|
-
const
|
|
1229
|
+
const Ii = 3e4;
|
|
1230
1230
|
function Lr() {
|
|
1231
1231
|
const t = Fr(), [e, n] = $(!1), [r, s] = $({ mediaId: t.mediaId, ready: t.ready });
|
|
1232
1232
|
return (r.mediaId !== t.mediaId || r.ready !== t.ready) && (s({ mediaId: t.mediaId, ready: t.ready }), n(!1)), N(() => {
|
|
1233
1233
|
if (t.ready) return;
|
|
1234
|
-
const i = setTimeout(() => n(!0),
|
|
1234
|
+
const i = setTimeout(() => n(!0), Ii);
|
|
1235
1235
|
return () => clearTimeout(i);
|
|
1236
1236
|
}, [t.mediaId, t.ready]), e;
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1238
|
+
function Ci({ draw: t }) {
|
|
1239
1239
|
const e = L(null);
|
|
1240
1240
|
return N(() => {
|
|
1241
1241
|
const n = e.current;
|
|
@@ -1243,8 +1243,8 @@ function Ii({ draw: t }) {
|
|
|
1243
1243
|
return t(n) ?? void 0;
|
|
1244
1244
|
}, [t]), /* @__PURE__ */ d("div", { ref: e, "data-testid": "game-settings" });
|
|
1245
1245
|
}
|
|
1246
|
-
const
|
|
1247
|
-
function
|
|
1246
|
+
const Ri = sn(() => import("./AdminPanel-Qzm0HZdt.js")), Ni = sn(() => import("./PlaylistPanel-Cvbya5b8.js"));
|
|
1247
|
+
function Fi() {
|
|
1248
1248
|
const t = x((p) => p.chatCollapsed), e = St(), n = x((p) => p.sidebarTab), r = x((p) => p.setSidebarTab), s = x((p) => p.healthSnapshot?.clients.length ?? 0), i = x((p) => !!p.playlist), a = ze(), l = ln(), o = x((p) => p.gameSettings), c = x((p) => p.snapshot.mediaId), u = Rt() !== null;
|
|
1249
1249
|
if (Ct({ hasMedia: !!c, chatCollapsed: t, isFullscreen: e }))
|
|
1250
1250
|
return null;
|
|
@@ -1252,14 +1252,14 @@ function Ni() {
|
|
|
1252
1252
|
return /* @__PURE__ */ k("aside", { className: "wp-chat-panel w-80 self-stretch border-l border-border flex flex-col bg-bg relative z-10", children: [
|
|
1253
1253
|
/* @__PURE__ */ k("div", { className: "chat-toolbar relative flex items-center gap-1 px-2 py-1.5 border-b border-border", children: [
|
|
1254
1254
|
/* @__PURE__ */ d(
|
|
1255
|
-
|
|
1255
|
+
Ps,
|
|
1256
1256
|
{
|
|
1257
1257
|
to: "/",
|
|
1258
1258
|
className: "p-1.5 rounded text-text-secondary hover:text-white hover:bg-bg-alt transition-colors cursor-pointer",
|
|
1259
1259
|
title: "Home",
|
|
1260
1260
|
"aria-label": "Home",
|
|
1261
1261
|
onClick: () => {
|
|
1262
|
-
E("navigation", "Home button clicked (chat toolbar)"),
|
|
1262
|
+
E("navigation", "Home button clicked (chat toolbar)"), Ds();
|
|
1263
1263
|
},
|
|
1264
1264
|
children: /* @__PURE__ */ d("svg", { className: "w-4 h-4", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2, children: /* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" }) })
|
|
1265
1265
|
}
|
|
@@ -1274,9 +1274,9 @@ function Ni() {
|
|
|
1274
1274
|
children: /* @__PURE__ */ d("svg", { className: "w-4 h-4", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2, children: /* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M7 4v16M17 4v16M3 8h4m10 0h4M3 12h18M3 16h4m10 0h4M4 4h16a1 1 0 011 1v14a1 1 0 01-1 1H4a1 1 0 01-1-1V5a1 1 0 011-1z" }) })
|
|
1275
1275
|
}
|
|
1276
1276
|
),
|
|
1277
|
-
/* @__PURE__ */ d(
|
|
1278
|
-
/* @__PURE__ */ d(
|
|
1279
|
-
/* @__PURE__ */ d(
|
|
1277
|
+
/* @__PURE__ */ d(xa, {}),
|
|
1278
|
+
/* @__PURE__ */ d(Ma, { children: o ? /* @__PURE__ */ d(Ci, { draw: o }) : null }),
|
|
1279
|
+
/* @__PURE__ */ d(wi, {})
|
|
1280
1280
|
] }),
|
|
1281
1281
|
(a || i) && /* @__PURE__ */ k("div", { role: "tablist", "aria-label": "Sidebar", className: "flex border-b border-border shrink-0", children: [
|
|
1282
1282
|
/* @__PURE__ */ d(
|
|
@@ -1313,23 +1313,23 @@ function Ni() {
|
|
|
1313
1313
|
}
|
|
1314
1314
|
)
|
|
1315
1315
|
] }),
|
|
1316
|
-
f === "health" ? /* @__PURE__ */ d(Ke.Suspense, { fallback: /* @__PURE__ */ d("div", { className: "p-4 text-xs text-text-muted", children: "Loading..." }), children: /* @__PURE__ */ d(
|
|
1317
|
-
/* @__PURE__ */ d(
|
|
1318
|
-
/* @__PURE__ */ d(
|
|
1316
|
+
f === "health" ? /* @__PURE__ */ d(Ke.Suspense, { fallback: /* @__PURE__ */ d("div", { className: "p-4 text-xs text-text-muted", children: "Loading..." }), children: /* @__PURE__ */ d(Ri, {}) }) : f === "playlist" ? /* @__PURE__ */ d(Ke.Suspense, { fallback: /* @__PURE__ */ d("div", { className: "p-4 text-xs text-text-muted", children: "Loading..." }), children: /* @__PURE__ */ d(Ni, {}) }) : /* @__PURE__ */ k(ye, { children: [
|
|
1317
|
+
/* @__PURE__ */ d(di, {}),
|
|
1318
|
+
/* @__PURE__ */ d(yi, {})
|
|
1319
1319
|
] })
|
|
1320
1320
|
] });
|
|
1321
1321
|
}
|
|
1322
|
-
const Tn = (t) => typeof t == "string" &&
|
|
1323
|
-
function
|
|
1322
|
+
const Tn = (t) => typeof t == "string" && wa.includes(t);
|
|
1323
|
+
function Li(t, e, n) {
|
|
1324
1324
|
return Tn(e) ? e : Tn(n) ? n : "dark";
|
|
1325
1325
|
}
|
|
1326
1326
|
function In({ activity: t, roomKey: e, layer: n }) {
|
|
1327
|
-
const r = L(null), s = L(null), [i, a] = $(null), [l, o] = $(!1), c = x((_) => _.snapshot.leaderId), u = x((_) => _.me.clientId), f = !!c && c === u, p = x((_) => _.name), g =
|
|
1327
|
+
const r = L(null), s = L(null), [i, a] = $(null), [l, o] = $(!1), c = x((_) => _.snapshot.leaderId), u = x((_) => _.me.clientId), f = !!c && c === u, p = x((_) => _.name), g = Ea()?.theme, b = Li(void 0, g, Bs().theme), h = Me(() => ({
|
|
1328
1328
|
roomKey: e,
|
|
1329
1329
|
identity: {
|
|
1330
1330
|
// The registry userId — what RoomChrome's `userId` prop is.
|
|
1331
|
-
userId:
|
|
1332
|
-
userType:
|
|
1331
|
+
userId: Hs(),
|
|
1332
|
+
userType: Os(),
|
|
1333
1333
|
name: p || null
|
|
1334
1334
|
},
|
|
1335
1335
|
theme: b,
|
|
@@ -1346,7 +1346,7 @@ function In({ activity: t, roomKey: e, layer: n }) {
|
|
|
1346
1346
|
const _ = r.current, m = t.load;
|
|
1347
1347
|
if (!_ || !m || l) return;
|
|
1348
1348
|
E("game", "bundle mount", { gameId: t.id });
|
|
1349
|
-
const { setGameSettings: T } = x.getState(), F = (w) => y.mountSettings(w), y =
|
|
1349
|
+
const { setGameSettings: T } = x.getState(), F = (w) => y.mountSettings(w), y = qa({
|
|
1350
1350
|
load: m,
|
|
1351
1351
|
el: _,
|
|
1352
1352
|
ctx: v(),
|
|
@@ -1384,8 +1384,71 @@ function In({ activity: t, roomKey: e, layer: n }) {
|
|
|
1384
1384
|
}
|
|
1385
1385
|
);
|
|
1386
1386
|
}
|
|
1387
|
-
|
|
1388
|
-
|
|
1387
|
+
function hl({ className: t = "w-5 h-5" }) {
|
|
1388
|
+
return /* @__PURE__ */ d("svg", { className: t, fill: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ d("path", { d: "M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" }) });
|
|
1389
|
+
}
|
|
1390
|
+
function $i({ className: t = "w-5 h-5" }) {
|
|
1391
|
+
return /* @__PURE__ */ d("svg", { className: t, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ d("path", { d: "M8 5v14l11-7z" }) });
|
|
1392
|
+
}
|
|
1393
|
+
function Pi({ className: t = "w-5 h-5" }) {
|
|
1394
|
+
return /* @__PURE__ */ d("svg", { className: t, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ d("path", { d: "M6 19h4V5H6v14zm8-14v14h4V5h-4z" }) });
|
|
1395
|
+
}
|
|
1396
|
+
function Di({ className: t = "w-5 h-5" }) {
|
|
1397
|
+
return /* @__PURE__ */ k("svg", { className: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: [
|
|
1398
|
+
/* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z" }),
|
|
1399
|
+
/* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M17 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2" })
|
|
1400
|
+
] });
|
|
1401
|
+
}
|
|
1402
|
+
function Bi({ className: t = "w-5 h-5" }) {
|
|
1403
|
+
return /* @__PURE__ */ k("svg", { className: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: [
|
|
1404
|
+
/* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z" }),
|
|
1405
|
+
/* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.536 8.464a5 5 0 010 7.072" })
|
|
1406
|
+
] });
|
|
1407
|
+
}
|
|
1408
|
+
function Oi({ className: t = "w-5 h-5" }) {
|
|
1409
|
+
return /* @__PURE__ */ k("svg", { className: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: [
|
|
1410
|
+
/* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z" }),
|
|
1411
|
+
/* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.536 8.464a5 5 0 010 7.072M18.364 5.636a9 9 0 010 12.728" })
|
|
1412
|
+
] });
|
|
1413
|
+
}
|
|
1414
|
+
function Hi({ className: t = "w-5 h-5" }) {
|
|
1415
|
+
return /* @__PURE__ */ d("svg", { className: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: /* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4" }) });
|
|
1416
|
+
}
|
|
1417
|
+
function Ui({ className: t = "w-5 h-5" }) {
|
|
1418
|
+
return /* @__PURE__ */ d("svg", { className: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: /* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 9V4H4m0 0l5 5M9 15v5H4m0 0l5-5M15 9V4h5m0 0l-5 5M15 15v5h5m0 0l-5-5" }) });
|
|
1419
|
+
}
|
|
1420
|
+
function ji({ className: t = "w-5 h-5" }) {
|
|
1421
|
+
return /* @__PURE__ */ d("svg", { className: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, children: /* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15 19l-7-7 7-7" }) });
|
|
1422
|
+
}
|
|
1423
|
+
function Gi({ className: t = "w-5 h-5" }) {
|
|
1424
|
+
return /* @__PURE__ */ d("svg", { className: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, children: /* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5l7 7-7 7" }) });
|
|
1425
|
+
}
|
|
1426
|
+
function $r({ className: t = "w-4 h-4" }) {
|
|
1427
|
+
return /* @__PURE__ */ k("svg", { className: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: [
|
|
1428
|
+
/* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4 4v16" }),
|
|
1429
|
+
/* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15 12l-5 4v-8l5 4z" })
|
|
1430
|
+
] });
|
|
1431
|
+
}
|
|
1432
|
+
function Wi({ className: t = "w-4 h-4" }) {
|
|
1433
|
+
return /* @__PURE__ */ k("svg", { className: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: [
|
|
1434
|
+
/* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M20 4v16" }),
|
|
1435
|
+
/* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 12l5 4v-8l-5 4z" })
|
|
1436
|
+
] });
|
|
1437
|
+
}
|
|
1438
|
+
function Ki({ className: t = "w-5 h-5" }) {
|
|
1439
|
+
return /* @__PURE__ */ d("svg", { className: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: /* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 6l12 12M18 6L6 18" }) });
|
|
1440
|
+
}
|
|
1441
|
+
function Vi({ className: t = "w-5 h-5" }) {
|
|
1442
|
+
return /* @__PURE__ */ k("svg", { className: t, viewBox: "0 0 24 24", fill: "currentColor", children: [
|
|
1443
|
+
/* @__PURE__ */ d("path", { d: "M12 5l8 11H4z" }),
|
|
1444
|
+
/* @__PURE__ */ d("rect", { x: "4", y: "17", width: "16", height: "3", rx: "0.5" })
|
|
1445
|
+
] });
|
|
1446
|
+
}
|
|
1447
|
+
function zi({ className: t = "w-5 h-5" }) {
|
|
1448
|
+
return /* @__PURE__ */ d("svg", { className: t, fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2, children: /* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M7 4v16M17 4v16M3 8h4m10 0h4M3 12h18M3 16h4m10 0h4M4 4h16a1 1 0 011 1v14a1 1 0 01-1 1H4a1 1 0 01-1-1V5a1 1 0 011-1z" }) });
|
|
1449
|
+
}
|
|
1450
|
+
const pl = "drawer-btn", Ji = "drawer-icon-btn";
|
|
1451
|
+
function Qi({ open: t, onClose: e, header: n, footer: r, children: s }) {
|
|
1389
1452
|
const i = L(null);
|
|
1390
1453
|
return N(() => {
|
|
1391
1454
|
if (!t) return;
|
|
@@ -1404,11 +1467,11 @@ function $i({ open: t, onClose: e, header: n, footer: r, children: s }) {
|
|
|
1404
1467
|
{
|
|
1405
1468
|
role: "dialog",
|
|
1406
1469
|
"aria-modal": "true",
|
|
1407
|
-
className: "w-[
|
|
1470
|
+
className: "w-[480px] max-w-full h-full bg-bg border-l border-border flex flex-col",
|
|
1408
1471
|
onClick: (a) => a.stopPropagation(),
|
|
1409
1472
|
children: [
|
|
1410
|
-
/* @__PURE__ */ k("div", { className: "
|
|
1411
|
-
/* @__PURE__ */ d("button", { ref: i, onClick: e, className:
|
|
1473
|
+
/* @__PURE__ */ k("div", { className: "px-3 py-2 border-b border-border flex items-center gap-2 text-sm min-w-0", children: [
|
|
1474
|
+
/* @__PURE__ */ d("button", { ref: i, onClick: e, className: Ji, "aria-label": "Close", title: "Close", children: /* @__PURE__ */ d($r, { className: "w-4 h-4" }) }),
|
|
1412
1475
|
n
|
|
1413
1476
|
] }),
|
|
1414
1477
|
s,
|
|
@@ -1417,10 +1480,10 @@ function $i({ open: t, onClose: e, header: n, footer: r, children: s }) {
|
|
|
1417
1480
|
}
|
|
1418
1481
|
) }) : null;
|
|
1419
1482
|
}
|
|
1420
|
-
function
|
|
1421
|
-
return /* @__PURE__ */ d(
|
|
1483
|
+
function qi({ open: t, onClose: e }) {
|
|
1484
|
+
return /* @__PURE__ */ d(Qi, { open: t, onClose: e, children: /* @__PURE__ */ d("div", { className: "px-4 py-3 text-xs text-text-muted", children: "Loading…" }) });
|
|
1422
1485
|
}
|
|
1423
|
-
const
|
|
1486
|
+
const Pr = 9e3, Cn = 1500, Yi = {
|
|
1424
1487
|
classic: "[text-shadow:_-1px_-1px_0_#000,_1px_-1px_0_#000,_-1px_1px_0_#000,_1px_1px_0_#000,_0_-1px_0_#000,_0_1px_0_#000,_-1px_0_0_#000,_1px_0_0_#000]",
|
|
1425
1488
|
cinema: "drop-shadow-[0_2px_4px_rgba(0,0,0,0.9)]",
|
|
1426
1489
|
minimal: "drop-shadow-[0_2px_4px_rgba(0,0,0,0.9)] drop-shadow-[0_0_8px_rgba(0,0,0,0.7)]",
|
|
@@ -1429,11 +1492,11 @@ const $r = 9e3, Cn = 1500, Di = {
|
|
|
1429
1492
|
textShadow: "none",
|
|
1430
1493
|
filter: "drop-shadow(0 0 1px black) drop-shadow(0 0 1px black)"
|
|
1431
1494
|
};
|
|
1432
|
-
function
|
|
1433
|
-
const r =
|
|
1495
|
+
function Xi({ message: t, age: e, ccStyle: n }) {
|
|
1496
|
+
const r = Pr - Cn;
|
|
1434
1497
|
let s = 1;
|
|
1435
1498
|
e > r && (s = Math.max(0, 1 - (e - r) / Cn));
|
|
1436
|
-
const i =
|
|
1499
|
+
const i = Yi[n], a = _r(
|
|
1437
1500
|
{ clientId: t.clientId, author: t.author },
|
|
1438
1501
|
{ name: t.name, sprite: t.sprite }
|
|
1439
1502
|
), l = st(a.sprite, a.pictureUrl), o = a.cosmetics, [c] = $(
|
|
@@ -1455,7 +1518,7 @@ function Bi({ message: t, age: e, ccStyle: n }) {
|
|
|
1455
1518
|
}
|
|
1456
1519
|
);
|
|
1457
1520
|
}
|
|
1458
|
-
function
|
|
1521
|
+
function Zi({ shown: t, className: e }) {
|
|
1459
1522
|
Ar();
|
|
1460
1523
|
const n = x((o) => o.chat), r = x((o) => o.mediaPrefs.subtitleStyle), [s, i] = $(() => Date.now()), a = n.length > 0;
|
|
1461
1524
|
N(() => {
|
|
@@ -1465,7 +1528,7 @@ function Oi({ shown: t, className: e }) {
|
|
|
1465
1528
|
return () => clearInterval(o);
|
|
1466
1529
|
}, [a]);
|
|
1467
1530
|
const l = Me(() => {
|
|
1468
|
-
const o = s -
|
|
1531
|
+
const o = s - Pr;
|
|
1469
1532
|
return n.filter((c) => !c.isSystem && c.ts > o).slice(-12);
|
|
1470
1533
|
}, [n, s]);
|
|
1471
1534
|
return !t || l.length === 0 ? null : /* @__PURE__ */ d(
|
|
@@ -1474,7 +1537,7 @@ function Oi({ shown: t, className: e }) {
|
|
|
1474
1537
|
className: `wp-floating-chat pointer-events-none flex flex-col ${e}`,
|
|
1475
1538
|
"data-testid": "floating-chat",
|
|
1476
1539
|
children: l.map((o) => /* @__PURE__ */ d(
|
|
1477
|
-
|
|
1540
|
+
Xi,
|
|
1478
1541
|
{
|
|
1479
1542
|
message: o,
|
|
1480
1543
|
age: s - o.ts,
|
|
@@ -1485,18 +1548,18 @@ function Oi({ shown: t, className: e }) {
|
|
|
1485
1548
|
}
|
|
1486
1549
|
);
|
|
1487
1550
|
}
|
|
1488
|
-
const
|
|
1489
|
-
function
|
|
1551
|
+
const eo = 2;
|
|
1552
|
+
function Dr(t) {
|
|
1490
1553
|
return t.duration_ms > 0 && t.duration_ms - t.playhead_ms <= an;
|
|
1491
1554
|
}
|
|
1492
|
-
function
|
|
1555
|
+
function Br(t) {
|
|
1493
1556
|
const e = t.video_ready_state ?? -1;
|
|
1494
|
-
return e < 0 ? !0 : !(e <=
|
|
1557
|
+
return e < 0 ? !0 : !(e <= eo && t.buffered_ahead_ms > an);
|
|
1495
1558
|
}
|
|
1496
|
-
function
|
|
1497
|
-
return t.playhead_ms === 0 && !t.is_buffering && t.buffered_ahead_ms === 0 ? "idle" : t.is_buffering ? "buffering" :
|
|
1559
|
+
function ml(t) {
|
|
1560
|
+
return t.playhead_ms === 0 && !t.is_buffering && t.buffered_ahead_ms === 0 ? "idle" : t.is_buffering ? "buffering" : Dr(t) ? "healthy" : !Br(t) || t.buffered_ahead_ms <= or ? "critical" : t.buffered_ahead_ms <= an ? "warning" : "healthy";
|
|
1498
1561
|
}
|
|
1499
|
-
const
|
|
1562
|
+
const gl = {
|
|
1500
1563
|
idle: "Idle",
|
|
1501
1564
|
buffering: "Buffering",
|
|
1502
1565
|
critical: "Critical",
|
|
@@ -1504,7 +1567,7 @@ const pl = {
|
|
|
1504
1567
|
healthy: "Healthy"
|
|
1505
1568
|
};
|
|
1506
1569
|
let Mt = null;
|
|
1507
|
-
function
|
|
1570
|
+
function Or() {
|
|
1508
1571
|
if (Mt) return Mt;
|
|
1509
1572
|
try {
|
|
1510
1573
|
const t = window.AudioContext ?? window.webkitAudioContext;
|
|
@@ -1513,47 +1576,47 @@ function Br() {
|
|
|
1513
1576
|
}
|
|
1514
1577
|
return Mt;
|
|
1515
1578
|
}
|
|
1516
|
-
function
|
|
1579
|
+
function Hr(t) {
|
|
1517
1580
|
t.state === "suspended" && t.resume().catch(() => {
|
|
1518
1581
|
});
|
|
1519
1582
|
}
|
|
1520
|
-
function
|
|
1583
|
+
function Ur(t, e, n, r) {
|
|
1521
1584
|
t.gain.setValueAtTime(0, e), t.gain.linearRampToValueAtTime(n, e + 5e-3), t.gain.exponentialRampToValueAtTime(1e-4, e + r);
|
|
1522
1585
|
}
|
|
1523
1586
|
function We(t, e, n = 0.15, r = 0) {
|
|
1524
|
-
const s =
|
|
1587
|
+
const s = Or();
|
|
1525
1588
|
if (!s) return;
|
|
1526
|
-
|
|
1589
|
+
Hr(s);
|
|
1527
1590
|
const i = s.currentTime + r, a = s.createOscillator(), l = s.createGain();
|
|
1528
|
-
a.type = "sine", a.frequency.value = t,
|
|
1591
|
+
a.type = "sine", a.frequency.value = t, Ur(l, i, n, e / 1e3), a.connect(l).connect(s.destination), a.start(i), a.stop(i + e / 1e3 + 0.05);
|
|
1529
1592
|
}
|
|
1530
1593
|
function Bt(t, e, n, r, s = 0.15, i = 0) {
|
|
1531
|
-
const a =
|
|
1594
|
+
const a = Or();
|
|
1532
1595
|
if (!a) return;
|
|
1533
|
-
|
|
1596
|
+
Hr(a);
|
|
1534
1597
|
const l = a.currentTime + i, o = a.createOscillator(), c = a.createOscillator(), u = a.createGain(), f = a.createGain();
|
|
1535
|
-
o.type = "sine", o.frequency.value = t, c.type = "sine", c.frequency.value = e, u.gain.value = n * e, c.connect(u).connect(o.frequency),
|
|
1598
|
+
o.type = "sine", o.frequency.value = t, c.type = "sine", c.frequency.value = e, u.gain.value = n * e, c.connect(u).connect(o.frequency), Ur(f, l, s, r / 1e3), o.connect(f).connect(a.destination), o.start(l), o.stop(l + r / 1e3 + 0.05), c.start(l), c.stop(l + r / 1e3 + 0.05);
|
|
1536
1599
|
}
|
|
1537
|
-
function
|
|
1600
|
+
function jr() {
|
|
1538
1601
|
We(700, 60, 0.14, 0), We(700, 60, 0.14, 0.1), We(932, 120, 0.17, 0.2);
|
|
1539
1602
|
}
|
|
1540
|
-
function
|
|
1603
|
+
function Gr() {
|
|
1541
1604
|
We(784, 45, 0.07, 0), We(1047, 60, 0.07, 0.045);
|
|
1542
1605
|
}
|
|
1543
|
-
function
|
|
1606
|
+
function Wr() {
|
|
1544
1607
|
We(659, 45, 0.06, 0), We(494, 70, 0.06, 0.045);
|
|
1545
1608
|
}
|
|
1546
|
-
function
|
|
1609
|
+
function Kr() {
|
|
1547
1610
|
Bt(587, 1174, 3, 320, 0.12, 0), Bt(880, 1760, 3, 320, 0.12, 0.06), Bt(884, 1768, 3, 320, 0.08, 0.06);
|
|
1548
1611
|
}
|
|
1549
1612
|
cr("__WP_SOUNDS__", {
|
|
1550
|
-
start:
|
|
1551
|
-
finish:
|
|
1552
|
-
on:
|
|
1553
|
-
off:
|
|
1613
|
+
start: jr,
|
|
1614
|
+
finish: Kr,
|
|
1615
|
+
on: Gr,
|
|
1616
|
+
off: Wr
|
|
1554
1617
|
});
|
|
1555
1618
|
const Fn = { on: 0, off: 0 };
|
|
1556
|
-
function
|
|
1619
|
+
function to(t, e, n, r) {
|
|
1557
1620
|
if (!n || !r) return Fn;
|
|
1558
1621
|
const s = new Set(t), i = new Set(e);
|
|
1559
1622
|
let a = 0;
|
|
@@ -1562,15 +1625,15 @@ function Ui(t, e, n, r) {
|
|
|
1562
1625
|
for (const o of s) i.has(o) || l++;
|
|
1563
1626
|
return a === 0 && l === 0 ? Fn : { on: a, off: l };
|
|
1564
1627
|
}
|
|
1565
|
-
const
|
|
1566
|
-
function
|
|
1567
|
-
return
|
|
1628
|
+
const no = 1200, be = 52, Tt = 4, Xt = (be - Tt) / 2, Ln = 2 * Math.PI * Xt, De = be - Tt * 2 - 4;
|
|
1629
|
+
function ro(t) {
|
|
1630
|
+
return Dr(t) ? !0 : Br(t) ? t.buffered_ahead_ms >= Ne : !1;
|
|
1568
1631
|
}
|
|
1569
|
-
function
|
|
1632
|
+
function so(t) {
|
|
1570
1633
|
return `hsl(${Math.round(t * 120)}, 90%, 55%)`;
|
|
1571
1634
|
}
|
|
1572
|
-
function
|
|
1573
|
-
const s = Math.min(1, t.buffered_ahead_ms / Ne), i = Ln * (1 - s), a =
|
|
1635
|
+
function ao({ client: t, look: e, fading: n, onFadeEnd: r }) {
|
|
1636
|
+
const s = Math.min(1, t.buffered_ahead_ms / Ne), i = Ln * (1 - s), a = so(s), l = st(e.sprite, e.pictureUrl);
|
|
1574
1637
|
return /* @__PURE__ */ k(
|
|
1575
1638
|
"div",
|
|
1576
1639
|
{
|
|
@@ -1578,7 +1641,7 @@ function Ki({ client: t, look: e, fading: n, onFadeEnd: r }) {
|
|
|
1578
1641
|
"data-client-id": t.client_id,
|
|
1579
1642
|
className: "flex flex-col items-center gap-1",
|
|
1580
1643
|
style: n ? {
|
|
1581
|
-
animation: `bufferFadeOut ${
|
|
1644
|
+
animation: `bufferFadeOut ${no}ms ease forwards`
|
|
1582
1645
|
} : void 0,
|
|
1583
1646
|
onAnimationEnd: n ? r : void 0,
|
|
1584
1647
|
children: [
|
|
@@ -1657,7 +1720,7 @@ function Ki({ client: t, look: e, fading: n, onFadeEnd: r }) {
|
|
|
1657
1720
|
}
|
|
1658
1721
|
);
|
|
1659
1722
|
}
|
|
1660
|
-
function
|
|
1723
|
+
function io({ clientId: t, sprite: e, pictureUrl: n, name: r, isReady: s, isSelf: i, onToggle: a }) {
|
|
1661
1724
|
const l = st(e, n), o = s ? "success" : "neutral", c = s ? /* @__PURE__ */ d(gt, { name: "tick" }) : /* @__PURE__ */ d(gt, { name: "hourglass" });
|
|
1662
1725
|
return /* @__PURE__ */ k(
|
|
1663
1726
|
"button",
|
|
@@ -1729,18 +1792,18 @@ function Vi({ clientId: t, sprite: e, pictureUrl: n, name: r, isReady: s, isSelf
|
|
|
1729
1792
|
}
|
|
1730
1793
|
);
|
|
1731
1794
|
}
|
|
1732
|
-
const
|
|
1795
|
+
const oo = { status: null, entries: [], completed: /* @__PURE__ */ new Set(), below: /* @__PURE__ */ new Set() };
|
|
1733
1796
|
function $n(t, e) {
|
|
1734
1797
|
if (!e || e.clients.length === 0) return { ...t, status: e, entries: [] };
|
|
1735
1798
|
const n = new Set(t.completed), r = new Set(t.below), s = [];
|
|
1736
1799
|
for (const i of e.clients) {
|
|
1737
1800
|
const a = i.client_id;
|
|
1738
|
-
|
|
1801
|
+
ro(i) ? r.has(a) && !n.has(a) ? (n.add(a), s.push({ client: i, completed: !0 })) : n.has(a) && s.push({ client: i, completed: !0 }) : (n.delete(a), r.add(a), s.push({ client: i, completed: !1 }));
|
|
1739
1802
|
}
|
|
1740
1803
|
return { status: e, entries: s, completed: n, below: r };
|
|
1741
1804
|
}
|
|
1742
|
-
function
|
|
1743
|
-
const t = x((m) => m.bufferStatus), e = x((m) => m.readyCheck), n = x((m) => m.roster), r = x((m) => m.me.clientId), s = x((m) => m.snapshot.playing), i = ze(), [a, l] = $(() => $n(
|
|
1805
|
+
function co() {
|
|
1806
|
+
const t = x((m) => m.bufferStatus), e = x((m) => m.readyCheck), n = x((m) => m.roster), r = x((m) => m.me.clientId), s = x((m) => m.snapshot.playing), i = ze(), [a, l] = $(() => $n(oo, t));
|
|
1744
1807
|
a.status !== t && l($n(a, t));
|
|
1745
1808
|
const o = a.entries, c = (m) => {
|
|
1746
1809
|
l((T) => {
|
|
@@ -1749,19 +1812,19 @@ function Ji() {
|
|
|
1749
1812
|
});
|
|
1750
1813
|
}, u = new Set(e.ready), f = Object.values(n), p = !!r && u.has(r), g = e.active && f.length > 0 && e.ready.length >= f.length, b = L(e.active), h = L(g);
|
|
1751
1814
|
N(() => {
|
|
1752
|
-
!b.current && e.active &&
|
|
1815
|
+
!b.current && e.active && jr(), b.current = e.active;
|
|
1753
1816
|
}, [e.active]), N(() => {
|
|
1754
|
-
!h.current && g &&
|
|
1817
|
+
!h.current && g && Kr(), h.current = g;
|
|
1755
1818
|
}, [g]);
|
|
1756
1819
|
const v = L(e.ready), S = L(e.active);
|
|
1757
1820
|
N(() => {
|
|
1758
|
-
const { on: m, off: T } =
|
|
1821
|
+
const { on: m, off: T } = to(
|
|
1759
1822
|
v.current,
|
|
1760
1823
|
e.ready,
|
|
1761
1824
|
S.current,
|
|
1762
1825
|
e.active
|
|
1763
1826
|
);
|
|
1764
|
-
m > 0 &&
|
|
1827
|
+
m > 0 && Gr(), T > 0 && Wr(), v.current = e.ready, S.current = e.active;
|
|
1765
1828
|
}, [e.ready, e.active]);
|
|
1766
1829
|
const A = e.active, R = !A && o.length > 0, _ = !A && !R && i && f.length > 0 && !s;
|
|
1767
1830
|
return !A && !R && !_ ? null : /* @__PURE__ */ k(ye, { children: [
|
|
@@ -1794,7 +1857,7 @@ function Ji() {
|
|
|
1794
1857
|
}
|
|
1795
1858
|
),
|
|
1796
1859
|
/* @__PURE__ */ d("div", { className: "flex flex-col gap-3", children: f.map((m) => /* @__PURE__ */ d(
|
|
1797
|
-
|
|
1860
|
+
io,
|
|
1798
1861
|
{
|
|
1799
1862
|
clientId: m.clientId,
|
|
1800
1863
|
sprite: m.sprite,
|
|
@@ -1802,13 +1865,13 @@ function Ji() {
|
|
|
1802
1865
|
name: m.name || "Anon",
|
|
1803
1866
|
isReady: u.has(m.clientId),
|
|
1804
1867
|
isSelf: m.clientId === r,
|
|
1805
|
-
onToggle: () =>
|
|
1868
|
+
onToggle: () => Us(!p)
|
|
1806
1869
|
},
|
|
1807
1870
|
m.clientId
|
|
1808
1871
|
)) })
|
|
1809
1872
|
] }),
|
|
1810
1873
|
R && o.map(({ client: m, completed: T }) => /* @__PURE__ */ d(
|
|
1811
|
-
|
|
1874
|
+
ao,
|
|
1812
1875
|
{
|
|
1813
1876
|
client: m,
|
|
1814
1877
|
look: kr(n, { clientId: m.client_id }, { name: m.name, sprite: m.sprite_id ?? null }),
|
|
@@ -1822,7 +1885,7 @@ function Ji() {
|
|
|
1822
1885
|
{
|
|
1823
1886
|
type: "button",
|
|
1824
1887
|
"data-testid": "start-ready-check",
|
|
1825
|
-
onClick: () =>
|
|
1888
|
+
onClick: () => js(),
|
|
1826
1889
|
className: "px-2.5 py-1 rounded bg-black/55 text-xs font-semibold tracking-wide hover:bg-black/75 transition-colors",
|
|
1827
1890
|
style: { color: "#fff", pointerEvents: "auto" },
|
|
1828
1891
|
title: "Ask everyone if they're ready",
|
|
@@ -1842,7 +1905,7 @@ const Zt = {
|
|
|
1842
1905
|
D: "var(--color-tier-d)",
|
|
1843
1906
|
F: "var(--color-tier-f)"
|
|
1844
1907
|
}, Ge = "unranked";
|
|
1845
|
-
function
|
|
1908
|
+
function Vr(t) {
|
|
1846
1909
|
t?.complete && t.naturalWidth > 0 && (t.dataset.loaded = "true");
|
|
1847
1910
|
}
|
|
1848
1911
|
function Pn({
|
|
@@ -1877,7 +1940,7 @@ function Pn({
|
|
|
1877
1940
|
loading: "eager",
|
|
1878
1941
|
decoding: "async",
|
|
1879
1942
|
draggable: !1,
|
|
1880
|
-
ref:
|
|
1943
|
+
ref: Vr,
|
|
1881
1944
|
onLoad: (i) => {
|
|
1882
1945
|
i.currentTarget.dataset.loaded = "true";
|
|
1883
1946
|
},
|
|
@@ -1892,7 +1955,7 @@ function Pn({
|
|
|
1892
1955
|
}
|
|
1893
1956
|
);
|
|
1894
1957
|
}
|
|
1895
|
-
function
|
|
1958
|
+
function lo({ sprite: t, url: e }) {
|
|
1896
1959
|
const n = st(t, e);
|
|
1897
1960
|
return /* @__PURE__ */ d(
|
|
1898
1961
|
vt,
|
|
@@ -1905,7 +1968,7 @@ function Qi({ sprite: t, url: e }) {
|
|
|
1905
1968
|
}
|
|
1906
1969
|
);
|
|
1907
1970
|
}
|
|
1908
|
-
function
|
|
1971
|
+
function uo({
|
|
1909
1972
|
anchor: t,
|
|
1910
1973
|
itemId: e,
|
|
1911
1974
|
snap: n
|
|
@@ -1932,7 +1995,7 @@ function qi({
|
|
|
1932
1995
|
children: [
|
|
1933
1996
|
/* @__PURE__ */ d("div", { className: "text-[11px] font-semibold text-text leading-snug pb-1.5 mb-1.5 border-b border-border", children: l }),
|
|
1934
1997
|
Object.entries(a.votes).map(([o, c]) => /* @__PURE__ */ k("div", { className: "flex items-center gap-2 py-0.5", children: [
|
|
1935
|
-
/* @__PURE__ */ d(
|
|
1998
|
+
/* @__PURE__ */ d(lo, { sprite: n.sprites[o], url: n.pictures?.[o] }),
|
|
1936
1999
|
/* @__PURE__ */ d("span", { className: "flex-1 text-[11px] text-text-secondary truncate", children: n.names[o] ?? "viewer" }),
|
|
1937
2000
|
/* @__PURE__ */ d(
|
|
1938
2001
|
"span",
|
|
@@ -1949,7 +2012,7 @@ function qi({
|
|
|
1949
2012
|
document.body
|
|
1950
2013
|
);
|
|
1951
2014
|
}
|
|
1952
|
-
function
|
|
2015
|
+
function fo() {
|
|
1953
2016
|
const t = x((y) => y.tierlistOpen), e = x((y) => y.setTierlistOpen), n = x((y) => y.tierlist), r = x((y) => y.tierlistDraft), s = x((y) => y.tierlistSaving), i = x((y) => y.moveTierlistItem), [a, l] = $(null), [o, c] = $(null), [u, f] = $(null), [p, g] = $(null), [b, h] = $("mine");
|
|
1954
2017
|
N(() => {
|
|
1955
2018
|
Sn(!0);
|
|
@@ -1993,7 +2056,7 @@ function Yi() {
|
|
|
1993
2056
|
a && (i(a, y === Ge ? null : y), l(null));
|
|
1994
2057
|
}
|
|
1995
2058
|
}), _ = j(async () => {
|
|
1996
|
-
await
|
|
2059
|
+
await Gs(x.getState().tierlistDraft) && g(Date.now());
|
|
1997
2060
|
}, []);
|
|
1998
2061
|
if (N(() => {
|
|
1999
2062
|
if (p === null) return;
|
|
@@ -2122,7 +2185,7 @@ function Yi() {
|
|
|
2122
2185
|
alt: "",
|
|
2123
2186
|
loading: "eager",
|
|
2124
2187
|
decoding: "async",
|
|
2125
|
-
ref:
|
|
2188
|
+
ref: Vr,
|
|
2126
2189
|
onLoad: (O) => {
|
|
2127
2190
|
O.currentTarget.dataset.loaded = "true";
|
|
2128
2191
|
},
|
|
@@ -2148,84 +2211,21 @@ function Yi() {
|
|
|
2148
2211
|
]
|
|
2149
2212
|
}
|
|
2150
2213
|
),
|
|
2151
|
-
u && n && /* @__PURE__ */ d(
|
|
2214
|
+
u && n && /* @__PURE__ */ d(uo, { anchor: u.anchor, itemId: u.itemId, snap: n })
|
|
2152
2215
|
]
|
|
2153
2216
|
}
|
|
2154
2217
|
),
|
|
2155
2218
|
document.body
|
|
2156
2219
|
);
|
|
2157
2220
|
}
|
|
2158
|
-
function
|
|
2221
|
+
function ho({ children: t }) {
|
|
2159
2222
|
const [e, n] = $(null);
|
|
2160
2223
|
return N(() => {
|
|
2161
2224
|
const r = () => n(document.fullscreenElement);
|
|
2162
2225
|
return r(), document.addEventListener("fullscreenchange", r), () => document.removeEventListener("fullscreenchange", r);
|
|
2163
2226
|
}, []), e ? It(t, e) : /* @__PURE__ */ d(ye, { children: t });
|
|
2164
2227
|
}
|
|
2165
|
-
function
|
|
2166
|
-
return /* @__PURE__ */ d("svg", { className: t, fill: "currentColor", viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ d("path", { d: "M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" }) });
|
|
2167
|
-
}
|
|
2168
|
-
function Zi({ className: t = "w-5 h-5" }) {
|
|
2169
|
-
return /* @__PURE__ */ d("svg", { className: t, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ d("path", { d: "M8 5v14l11-7z" }) });
|
|
2170
|
-
}
|
|
2171
|
-
function eo({ className: t = "w-5 h-5" }) {
|
|
2172
|
-
return /* @__PURE__ */ d("svg", { className: t, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ d("path", { d: "M6 19h4V5H6v14zm8-14v14h4V5h-4z" }) });
|
|
2173
|
-
}
|
|
2174
|
-
function to({ className: t = "w-5 h-5" }) {
|
|
2175
|
-
return /* @__PURE__ */ k("svg", { className: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: [
|
|
2176
|
-
/* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z" }),
|
|
2177
|
-
/* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M17 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2" })
|
|
2178
|
-
] });
|
|
2179
|
-
}
|
|
2180
|
-
function no({ className: t = "w-5 h-5" }) {
|
|
2181
|
-
return /* @__PURE__ */ k("svg", { className: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: [
|
|
2182
|
-
/* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z" }),
|
|
2183
|
-
/* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.536 8.464a5 5 0 010 7.072" })
|
|
2184
|
-
] });
|
|
2185
|
-
}
|
|
2186
|
-
function ro({ className: t = "w-5 h-5" }) {
|
|
2187
|
-
return /* @__PURE__ */ k("svg", { className: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: [
|
|
2188
|
-
/* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z" }),
|
|
2189
|
-
/* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.536 8.464a5 5 0 010 7.072M18.364 5.636a9 9 0 010 12.728" })
|
|
2190
|
-
] });
|
|
2191
|
-
}
|
|
2192
|
-
function so({ className: t = "w-5 h-5" }) {
|
|
2193
|
-
return /* @__PURE__ */ d("svg", { className: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: /* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4" }) });
|
|
2194
|
-
}
|
|
2195
|
-
function ao({ className: t = "w-5 h-5" }) {
|
|
2196
|
-
return /* @__PURE__ */ d("svg", { className: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: /* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 9V4H4m0 0l5 5M9 15v5H4m0 0l5-5M15 9V4h5m0 0l-5 5M15 15v5h5m0 0l-5-5" }) });
|
|
2197
|
-
}
|
|
2198
|
-
function io({ className: t = "w-5 h-5" }) {
|
|
2199
|
-
return /* @__PURE__ */ d("svg", { className: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, children: /* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15 19l-7-7 7-7" }) });
|
|
2200
|
-
}
|
|
2201
|
-
function oo({ className: t = "w-5 h-5" }) {
|
|
2202
|
-
return /* @__PURE__ */ d("svg", { className: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, children: /* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5l7 7-7 7" }) });
|
|
2203
|
-
}
|
|
2204
|
-
function co({ className: t = "w-4 h-4" }) {
|
|
2205
|
-
return /* @__PURE__ */ k("svg", { className: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: [
|
|
2206
|
-
/* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4 4v16" }),
|
|
2207
|
-
/* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15 12l-5 4v-8l5 4z" })
|
|
2208
|
-
] });
|
|
2209
|
-
}
|
|
2210
|
-
function lo({ className: t = "w-4 h-4" }) {
|
|
2211
|
-
return /* @__PURE__ */ k("svg", { className: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: [
|
|
2212
|
-
/* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M20 4v16" }),
|
|
2213
|
-
/* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 12l5 4v-8l-5 4z" })
|
|
2214
|
-
] });
|
|
2215
|
-
}
|
|
2216
|
-
function uo({ className: t = "w-5 h-5" }) {
|
|
2217
|
-
return /* @__PURE__ */ d("svg", { className: t, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: /* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 6l12 12M18 6L6 18" }) });
|
|
2218
|
-
}
|
|
2219
|
-
function fo({ className: t = "w-5 h-5" }) {
|
|
2220
|
-
return /* @__PURE__ */ k("svg", { className: t, viewBox: "0 0 24 24", fill: "currentColor", children: [
|
|
2221
|
-
/* @__PURE__ */ d("path", { d: "M12 5l8 11H4z" }),
|
|
2222
|
-
/* @__PURE__ */ d("rect", { x: "4", y: "17", width: "16", height: "3", rx: "0.5" })
|
|
2223
|
-
] });
|
|
2224
|
-
}
|
|
2225
|
-
function ho({ className: t = "w-5 h-5" }) {
|
|
2226
|
-
return /* @__PURE__ */ d("svg", { className: t, fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 2, children: /* @__PURE__ */ d("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M7 4v16M17 4v16M3 8h4m10 0h4M3 12h18M3 16h4m10 0h4M4 4h16a1 1 0 011 1v14a1 1 0 01-1 1H4a1 1 0 01-1-1V5a1 1 0 011-1z" }) });
|
|
2227
|
-
}
|
|
2228
|
-
function Vr({ site: t = "control bar", className: e = "ctr-btn" }) {
|
|
2228
|
+
function zr({ site: t = "control bar", className: e = "ctr-btn" }) {
|
|
2229
2229
|
return /* @__PURE__ */ d(
|
|
2230
2230
|
"button",
|
|
2231
2231
|
{
|
|
@@ -2233,7 +2233,7 @@ function Vr({ site: t = "control bar", className: e = "ctr-btn" }) {
|
|
|
2233
2233
|
className: e,
|
|
2234
2234
|
title: "Select Media",
|
|
2235
2235
|
"aria-label": "Select Media",
|
|
2236
|
-
children: /* @__PURE__ */ d(
|
|
2236
|
+
children: /* @__PURE__ */ d(zi, {})
|
|
2237
2237
|
}
|
|
2238
2238
|
);
|
|
2239
2239
|
}
|
|
@@ -2249,7 +2249,7 @@ function po() {
|
|
|
2249
2249
|
});
|
|
2250
2250
|
} };
|
|
2251
2251
|
}
|
|
2252
|
-
function
|
|
2252
|
+
function Jr({ className: t }) {
|
|
2253
2253
|
const { panelHidden: e, toggle: n } = po(), r = e ? "Show chat" : "Hide chat";
|
|
2254
2254
|
return /* @__PURE__ */ d(
|
|
2255
2255
|
"button",
|
|
@@ -2260,7 +2260,7 @@ function zr({ className: t }) {
|
|
|
2260
2260
|
title: r,
|
|
2261
2261
|
"aria-label": r,
|
|
2262
2262
|
"aria-expanded": !e,
|
|
2263
|
-
children: e ? /* @__PURE__ */ d(
|
|
2263
|
+
children: e ? /* @__PURE__ */ d(Wi, { className: "w-5 h-5" }) : /* @__PURE__ */ d($r, { className: "w-5 h-5" })
|
|
2264
2264
|
}
|
|
2265
2265
|
);
|
|
2266
2266
|
}
|
|
@@ -2273,11 +2273,11 @@ function mo() {
|
|
|
2273
2273
|
gameOverlay: r !== null
|
|
2274
2274
|
}) === "room-corner", l = s && r !== null && !n, o = Mr({ hasMedia: e, isFullscreen: n, gameOverlay: r !== null }) === "room-corner";
|
|
2275
2275
|
return !a && !l && !o ? null : /* @__PURE__ */ k("div", { className: "absolute top-2 right-2 z-40 flex items-center gap-2", "data-testid": "room-corner-controls", children: [
|
|
2276
|
-
a && /* @__PURE__ */ d(
|
|
2276
|
+
a && /* @__PURE__ */ d(zr, { site: "room corner", className: "corner-btn" }),
|
|
2277
2277
|
l && /* @__PURE__ */ d("button", { type: "button", onClick: () => {
|
|
2278
2278
|
E("game", "game_select", { gameId: null, source: "room corner" }), ir(null);
|
|
2279
|
-
}, className: "corner-btn", title: "Stop game", "aria-label": "Stop game", children: /* @__PURE__ */ d(
|
|
2280
|
-
o && /* @__PURE__ */ d(
|
|
2279
|
+
}, className: "corner-btn", title: "Stop game", "aria-label": "Stop game", children: /* @__PURE__ */ d(Ki, {}) }),
|
|
2280
|
+
o && /* @__PURE__ */ d(Jr, { className: "corner-btn" })
|
|
2281
2281
|
] });
|
|
2282
2282
|
}
|
|
2283
2283
|
const en = "hadoku:avatar", tn = "hadoku:name", go = "hadoku:identity", kt = /* @__PURE__ */ Symbol.for("hadoku:identity-relay"), Dn = /* @__PURE__ */ Symbol.for("hadoku:identity-relayed");
|
|
@@ -2322,23 +2322,23 @@ function vo(t = typeof window > "u" ? void 0 : window, e = bo) {
|
|
|
2322
2322
|
}
|
|
2323
2323
|
function So() {
|
|
2324
2324
|
N(() => {
|
|
2325
|
-
const t = vo(), e =
|
|
2326
|
-
const i =
|
|
2325
|
+
const t = vo(), e = Ws((r, s) => {
|
|
2326
|
+
const i = Vs(s);
|
|
2327
2327
|
E("avatar", "Avatar changed in the settings popout", { sprite: i, source: s.avatar?.source }), dr(i);
|
|
2328
|
-
}), n =
|
|
2329
|
-
E("avatar", "Renamed in the settings popout", { name: r }),
|
|
2328
|
+
}), n = Ks((r) => {
|
|
2329
|
+
E("avatar", "Renamed in the settings popout", { name: r }), zs(r);
|
|
2330
2330
|
});
|
|
2331
2331
|
return () => {
|
|
2332
2332
|
e(), n(), t();
|
|
2333
2333
|
};
|
|
2334
2334
|
}, []);
|
|
2335
2335
|
}
|
|
2336
|
-
const
|
|
2336
|
+
const Qr = [];
|
|
2337
2337
|
function On(t) {
|
|
2338
|
-
|
|
2338
|
+
Qr.push(t);
|
|
2339
2339
|
}
|
|
2340
2340
|
function Ye() {
|
|
2341
|
-
const t =
|
|
2341
|
+
const t = Qr.splice(0);
|
|
2342
2342
|
for (const e of t)
|
|
2343
2343
|
try {
|
|
2344
2344
|
e();
|
|
@@ -2372,7 +2372,7 @@ function _o(t) {
|
|
|
2372
2372
|
return t === "leader" || t === "viewer" ? t : null;
|
|
2373
2373
|
}
|
|
2374
2374
|
async function Ao(t) {
|
|
2375
|
-
const e =
|
|
2375
|
+
const e = Js(), n = await fetch(`${e}/api/rooms/validate/${encodeURIComponent(t)}`);
|
|
2376
2376
|
if (n.status === 404) return null;
|
|
2377
2377
|
if (!n.ok) throw new Error(`validate returned ${n.status}`);
|
|
2378
2378
|
const r = await n.json();
|
|
@@ -2396,14 +2396,14 @@ function Fe(t, e) {
|
|
|
2396
2396
|
const r = x.getState().allocateClientSeq(), s = { kind: t, client_seq: r, ...e || {} };
|
|
2397
2397
|
return ur().emit(fr.CONTROL, s), r;
|
|
2398
2398
|
}
|
|
2399
|
-
function
|
|
2399
|
+
function bl(t) {
|
|
2400
2400
|
return Fe("load", { media_id: t });
|
|
2401
2401
|
}
|
|
2402
2402
|
function Io() {
|
|
2403
2403
|
return Fe("home");
|
|
2404
2404
|
}
|
|
2405
2405
|
function Co() {
|
|
2406
|
-
const t =
|
|
2406
|
+
const t = Ti(), e = Fr(), n = ze(), r = Lr(), s = n && r && !e.ready, i = !e.ready && !s;
|
|
2407
2407
|
return /* @__PURE__ */ d(
|
|
2408
2408
|
"button",
|
|
2409
2409
|
{
|
|
@@ -2424,7 +2424,7 @@ function Co() {
|
|
|
2424
2424
|
className: "ctr-btn",
|
|
2425
2425
|
title: s ? "Some viewers still loading — play anyway" : i ? "Waiting for sync..." : n ? t.playing ? "Pause" : "Play" : "Only the leader can control playback",
|
|
2426
2426
|
"data-active": !i && n && t.playing ? "1" : "0",
|
|
2427
|
-
children: t.playing ? /* @__PURE__ */ d(
|
|
2427
|
+
children: t.playing ? /* @__PURE__ */ d(Pi, {}) : /* @__PURE__ */ d($i, {})
|
|
2428
2428
|
}
|
|
2429
2429
|
);
|
|
2430
2430
|
}
|
|
@@ -2440,7 +2440,7 @@ function Ro() {
|
|
|
2440
2440
|
title: "Unload episode (return to lobby)",
|
|
2441
2441
|
"data-remote-destructive": "",
|
|
2442
2442
|
"aria-label": "Unload episode",
|
|
2443
|
-
children: /* @__PURE__ */ d(
|
|
2443
|
+
children: /* @__PURE__ */ d(Vi, {})
|
|
2444
2444
|
}
|
|
2445
2445
|
);
|
|
2446
2446
|
}
|
|
@@ -2574,7 +2574,7 @@ function Bo({ videoRef: t }) {
|
|
|
2574
2574
|
r(f), f > 0 && n && s(!1);
|
|
2575
2575
|
}, a = () => {
|
|
2576
2576
|
s(!n);
|
|
2577
|
-
}, l = () => n || e === 0 ? /* @__PURE__ */ d(
|
|
2577
|
+
}, l = () => n || e === 0 ? /* @__PURE__ */ d(Di, {}) : e < 0.5 ? /* @__PURE__ */ d(Bi, {}) : /* @__PURE__ */ d(Oi, {}), o = n ? 0 : e, c = Math.round(o * 100);
|
|
2578
2578
|
return /* @__PURE__ */ k("div", { className: "flex items-center gap-2", children: [
|
|
2579
2579
|
/* @__PURE__ */ d(
|
|
2580
2580
|
"button",
|
|
@@ -2720,7 +2720,7 @@ function Go({ videoRef: t }) {
|
|
|
2720
2720
|
},
|
|
2721
2721
|
className: "ctr-btn",
|
|
2722
2722
|
title: e ? "Exit Fullscreen" : "Enter Fullscreen",
|
|
2723
|
-
children: e ? /* @__PURE__ */ d(
|
|
2723
|
+
children: e ? /* @__PURE__ */ d(Ui, {}) : /* @__PURE__ */ d(Hi, {})
|
|
2724
2724
|
}
|
|
2725
2725
|
);
|
|
2726
2726
|
}
|
|
@@ -2800,7 +2800,7 @@ function Wo({
|
|
|
2800
2800
|
/* @__PURE__ */ k("div", { ref: w, className: it, children: [
|
|
2801
2801
|
S && /* @__PURE__ */ k("div", { className: "cluster", children: [
|
|
2802
2802
|
/* @__PURE__ */ d(Co, {}),
|
|
2803
|
-
T && /* @__PURE__ */ d(
|
|
2803
|
+
T && /* @__PURE__ */ d(zr, {}),
|
|
2804
2804
|
/* @__PURE__ */ d(Ro, {})
|
|
2805
2805
|
] }),
|
|
2806
2806
|
/* @__PURE__ */ d("div", { className: "cluster-seek", children: /* @__PURE__ */ d(Do, { durationMs: n, displayPlayheadMs: b }) }),
|
|
@@ -2893,7 +2893,7 @@ function Wo({
|
|
|
2893
2893
|
}
|
|
2894
2894
|
),
|
|
2895
2895
|
/* @__PURE__ */ k("div", { className: "cluster cluster-tight", children: [
|
|
2896
|
-
F && /* @__PURE__ */ d(
|
|
2896
|
+
F && /* @__PURE__ */ d(Jr, { className: "ctr-btn" }),
|
|
2897
2897
|
/* @__PURE__ */ d(Go, { videoRef: t })
|
|
2898
2898
|
] })
|
|
2899
2899
|
] }),
|
|
@@ -2905,7 +2905,7 @@ function Wo({
|
|
|
2905
2905
|
onClick: () => wt("left"),
|
|
2906
2906
|
tabIndex: -1,
|
|
2907
2907
|
"aria-label": "Scroll left",
|
|
2908
|
-
children: /* @__PURE__ */ d(
|
|
2908
|
+
children: /* @__PURE__ */ d(ji, {})
|
|
2909
2909
|
}
|
|
2910
2910
|
),
|
|
2911
2911
|
/* @__PURE__ */ d(
|
|
@@ -2915,7 +2915,7 @@ function Wo({
|
|
|
2915
2915
|
onClick: () => wt("right"),
|
|
2916
2916
|
tabIndex: -1,
|
|
2917
2917
|
"aria-label": "Scroll right",
|
|
2918
|
-
children: /* @__PURE__ */ d(
|
|
2918
|
+
children: /* @__PURE__ */ d(Gi, {})
|
|
2919
2919
|
}
|
|
2920
2920
|
)
|
|
2921
2921
|
] })
|
|
@@ -2939,7 +2939,7 @@ function Qo(t) {
|
|
|
2939
2939
|
function qo(t, e, n) {
|
|
2940
2940
|
return t.playheadMs + (t.playing ? Math.max(0, n - e) : 0);
|
|
2941
2941
|
}
|
|
2942
|
-
function
|
|
2942
|
+
function qr(t) {
|
|
2943
2943
|
const e = t.split("/").filter(Boolean);
|
|
2944
2944
|
return e.length >= 2 ? e.slice(-2).join(" ") : e[e.length - 1] || t;
|
|
2945
2945
|
}
|
|
@@ -2948,7 +2948,7 @@ function Yo(t) {
|
|
|
2948
2948
|
return e.length >= 2 && n.push(`${e.slice(0, -1).join("/")}/poster.jpg`), n;
|
|
2949
2949
|
}
|
|
2950
2950
|
function Xo({ mediaId: t, visible: e }) {
|
|
2951
|
-
return t ? /* @__PURE__ */ d("div", { className: `media-title ${e ? "show" : ""}`, children:
|
|
2951
|
+
return t ? /* @__PURE__ */ d("div", { className: `media-title ${e ? "show" : ""}`, children: qr(t) }) : null;
|
|
2952
2952
|
}
|
|
2953
2953
|
const Xe = 3, Zo = 1e3, ec = 15e3;
|
|
2954
2954
|
function xe(t) {
|
|
@@ -3733,7 +3733,7 @@ class nt {
|
|
|
3733
3733
|
// timing, and APPEND-HOLD reason counts. Read by emitInitDigest() which warns
|
|
3734
3734
|
// once at gate-pass time so the load shape is visible in session logs without
|
|
3735
3735
|
// wp:reportLogs=true.
|
|
3736
|
-
static INIT_TRACK_FRAGS =
|
|
3736
|
+
static INIT_TRACK_FRAGS = Qs;
|
|
3737
3737
|
loadStartTs = 0;
|
|
3738
3738
|
initFetchStart = 0;
|
|
3739
3739
|
initFetchEnd = 0;
|
|
@@ -3808,8 +3808,8 @@ class nt {
|
|
|
3808
3808
|
* `fragment-route.realmedia.test.ts`; this is the client-side backstop.
|
|
3809
3809
|
*/
|
|
3810
3810
|
async tryFragmentRoute(e, n, r) {
|
|
3811
|
-
if (this.fragmentRouteDisabled || !this.delivery || !
|
|
3812
|
-
const s =
|
|
3811
|
+
if (this.fragmentRouteDisabled || !this.delivery || !qs()) return null;
|
|
3812
|
+
const s = Ys(this.delivery, e);
|
|
3813
3813
|
if (!s)
|
|
3814
3814
|
return this.disableFragmentRoute(e, "could not build a URL for this config"), null;
|
|
3815
3815
|
try {
|
|
@@ -3936,14 +3936,14 @@ class nt {
|
|
|
3936
3936
|
}
|
|
3937
3937
|
this.initAppendDone = performance.now(), this.initState = "loaded", this.initRetryCount = 0, E("buffer", `INIT-LOADED sbRanges=[${ge(this.sourceBuffer?.buffered).join(", ")}]`), this.processAppendQueue();
|
|
3938
3938
|
} catch (l) {
|
|
3939
|
-
ee("buffer", "Init segment fetch/append failed", { error: l.message }), a() || (this.initState = "pending", this.initRetryCount += 1, this.initRetryCount >=
|
|
3939
|
+
ee("buffer", "Init segment fetch/append failed", { error: l.message }), a() || (this.initState = "pending", this.initRetryCount += 1, this.initRetryCount >= Xs ? (this.initFailed = !0, I("buffer", "INIT-GIVE-UP — init segment failed repeatedly; rejecting waiters for fast recovery", {
|
|
3940
3940
|
attempts: this.initRetryCount,
|
|
3941
3941
|
error: l.message
|
|
3942
3942
|
}), this.rejectAllWaiters(new Error("init segment failed after repeated retries"))) : this.disposed || setTimeout(() => {
|
|
3943
3943
|
!this.disposed && this.initState === "pending" && this.fetchInit().catch((o) => {
|
|
3944
3944
|
ee("buffer", "INIT-RETRY failed", Y(o));
|
|
3945
3945
|
});
|
|
3946
|
-
},
|
|
3946
|
+
}, Zs));
|
|
3947
3947
|
}
|
|
3948
3948
|
}
|
|
3949
3949
|
/** Runs inside updateend after an append completes. Decides whether MSE
|
|
@@ -4470,7 +4470,7 @@ class nt {
|
|
|
4470
4470
|
if (this.appendHold?.index !== e)
|
|
4471
4471
|
return this.appendHold = { index: e, since: r }, !1;
|
|
4472
4472
|
const s = r - this.appendHold.since;
|
|
4473
|
-
if (s <
|
|
4473
|
+
if (s < ea) return !1;
|
|
4474
4474
|
I("buffer", `APPEND-HOLD-BREAK #${e} held ${s}ms behind ${n.length} pending fetch(es) — declaring them dead so the queue can drain`, {
|
|
4475
4475
|
headIndex: e,
|
|
4476
4476
|
heldMs: s,
|
|
@@ -4534,7 +4534,7 @@ class nt {
|
|
|
4534
4534
|
if (this.disposed || !this.sourceBuffer || (this.currentPlayheadMs = e, this.currentJobs.size >= Qe)) return;
|
|
4535
4535
|
const n = Re(this.fragments, e), r = Math.min(this.fragments.length - 1, Re(this.fragments, e + tt)), s = Date.now();
|
|
4536
4536
|
for (let a = n; a <= r; a++)
|
|
4537
|
-
this.fragmentStates.get(a) === "error" && s - (this.errorTimestamps.get(a) ?? 0) >=
|
|
4537
|
+
this.fragmentStates.get(a) === "error" && s - (this.errorTimestamps.get(a) ?? 0) >= ta && ((this.fetchErrorCycles.get(a) ?? 0) >= En ? E("buffer", `PREFETCH-DEAD #${a} cycles=${this.fetchErrorCycles.get(a)} not resetting`) : (this.fragmentStates.set(a, "pending"), this.errorTimestamps.delete(a)));
|
|
4538
4538
|
let i = 0;
|
|
4539
4539
|
for (let a = n; a <= r && i < Qe - this.currentJobs.size; a++) {
|
|
4540
4540
|
const l = this.fragmentStates.get(a);
|
|
@@ -4787,7 +4787,7 @@ class nt {
|
|
|
4787
4787
|
if (this.eosRetryTimer) return;
|
|
4788
4788
|
this.eosRetryTimer = setTimeout(() => {
|
|
4789
4789
|
this.eosRetryTimer = null, this.tryEndOfStream();
|
|
4790
|
-
},
|
|
4790
|
+
}, na);
|
|
4791
4791
|
return;
|
|
4792
4792
|
}
|
|
4793
4793
|
try {
|
|
@@ -4806,11 +4806,11 @@ function wc(t, e) {
|
|
|
4806
4806
|
function Ec(t) {
|
|
4807
4807
|
return t.override !== null ? t.override : t.globalEnabled || wc(t.selectedAudioLang, t.hasEngSub);
|
|
4808
4808
|
}
|
|
4809
|
-
const
|
|
4809
|
+
const Yr = "wp_reload_history", un = "wp_phantom_reload", Xr = 5 * 6e4, Vn = 3;
|
|
4810
4810
|
function xc() {
|
|
4811
4811
|
try {
|
|
4812
|
-
const t = sessionStorage.getItem(
|
|
4813
|
-
return (t ? JSON.parse(t) : []).filter((n) => Date.now() - n <
|
|
4812
|
+
const t = sessionStorage.getItem(Yr);
|
|
4813
|
+
return (t ? JSON.parse(t) : []).filter((n) => Date.now() - n < Xr);
|
|
4814
4814
|
} catch {
|
|
4815
4815
|
return [];
|
|
4816
4816
|
}
|
|
@@ -4821,7 +4821,7 @@ function nn(t, e) {
|
|
|
4821
4821
|
xn(
|
|
4822
4822
|
"error",
|
|
4823
4823
|
"buffer",
|
|
4824
|
-
`AUTO-RELOAD SUPPRESSED reason=${t} — ${n.length} reloads in ${
|
|
4824
|
+
`AUTO-RELOAD SUPPRESSED reason=${t} — ${n.length} reloads in ${Xr / 6e4}m, giving up (connection looks unstable)`,
|
|
4825
4825
|
e
|
|
4826
4826
|
);
|
|
4827
4827
|
try {
|
|
@@ -4834,7 +4834,7 @@ function nn(t, e) {
|
|
|
4834
4834
|
return !1;
|
|
4835
4835
|
}
|
|
4836
4836
|
try {
|
|
4837
|
-
n.push(Date.now()), sessionStorage.setItem(
|
|
4837
|
+
n.push(Date.now()), sessionStorage.setItem(Yr, JSON.stringify(n)), sessionStorage.setItem(un, String(Date.now()));
|
|
4838
4838
|
} catch {
|
|
4839
4839
|
}
|
|
4840
4840
|
xn("error", "buffer", `AUTO-RELOAD reason=${t} attempt=${n.length}/${Vn}`, e);
|
|
@@ -4869,7 +4869,7 @@ function kc() {
|
|
|
4869
4869
|
function _c(t, e) {
|
|
4870
4870
|
return t === "disallowed" ? "deferred" : e ? "user-muted" : t === "allowed-muted" ? "muted-bridge" : "audible";
|
|
4871
4871
|
}
|
|
4872
|
-
function
|
|
4872
|
+
function Zr(t, e) {
|
|
4873
4873
|
const n = kc(), r = _c(n, e.userWantsMuted);
|
|
4874
4874
|
E(e.label, "autoplay plan", { policy: n ?? "unknown", plan: r, userWantsMuted: e.userWantsMuted });
|
|
4875
4875
|
const s = () => {
|
|
@@ -4891,7 +4891,7 @@ const yt = {
|
|
|
4891
4891
|
/** Room-level seeks from snapshot changes — highest priority. */
|
|
4892
4892
|
SEEK_EFFECT: 3
|
|
4893
4893
|
};
|
|
4894
|
-
function
|
|
4894
|
+
function es(t, e = 3e3) {
|
|
4895
4895
|
return new Promise((n) => {
|
|
4896
4896
|
if (!t.seeking) {
|
|
4897
4897
|
n();
|
|
@@ -4989,7 +4989,7 @@ class Ac {
|
|
|
4989
4989
|
} else
|
|
4990
4990
|
E("seek-coord", `ALREADY BUFFERED [${s}] target=${Math.round(r)}ms`);
|
|
4991
4991
|
const p = r / 1e3;
|
|
4992
|
-
a.currentTime = p, await
|
|
4992
|
+
a.currentTime = p, await es(a), this._checkAborted(n);
|
|
4993
4993
|
const g = a.currentTime * 1e3, b = Math.round(performance.now() - o);
|
|
4994
4994
|
I("seek-coord", `SEEK-DIGEST [${s}] route=${this._lastSeekRoute} ${b}ms`, {
|
|
4995
4995
|
targetMs: Math.round(r),
|
|
@@ -5093,7 +5093,7 @@ class Ac {
|
|
|
5093
5093
|
}
|
|
5094
5094
|
_resume(e) {
|
|
5095
5095
|
const n = x.getState();
|
|
5096
|
-
|
|
5096
|
+
Zr(e, {
|
|
5097
5097
|
userWantsMuted: n.mediaPrefs.muted,
|
|
5098
5098
|
onMutedBridge: () => x.getState().setMutedForAutoplay(!0),
|
|
5099
5099
|
onUnmuted: () => x.getState().setMutedForAutoplay(!1),
|
|
@@ -5103,7 +5103,7 @@ class Ac {
|
|
|
5103
5103
|
}
|
|
5104
5104
|
let pt = null;
|
|
5105
5105
|
function Tc() {
|
|
5106
|
-
pt === null && (E("health", "Starting health reporting"), Jn(), pt = window.setInterval(Jn,
|
|
5106
|
+
pt === null && (E("health", "Starting health reporting"), Jn(), pt = window.setInterval(Jn, ra));
|
|
5107
5107
|
}
|
|
5108
5108
|
function Ic() {
|
|
5109
5109
|
pt !== null && (E("health", "Stopping health reporting"), window.clearInterval(pt), pt = null);
|
|
@@ -5139,9 +5139,9 @@ function Jn() {
|
|
|
5139
5139
|
fragments_error: i.fragmentStates.error || 0,
|
|
5140
5140
|
video_ready_state: r?.readyState ?? -1,
|
|
5141
5141
|
duration_ms: n.getMediaEndMs(),
|
|
5142
|
-
delivery_arm:
|
|
5142
|
+
delivery_arm: aa(),
|
|
5143
5143
|
...Cc(r),
|
|
5144
|
-
pong_age_ms:
|
|
5144
|
+
pong_age_ms: sa(),
|
|
5145
5145
|
reported_at: Date.now()
|
|
5146
5146
|
});
|
|
5147
5147
|
}
|
|
@@ -5179,23 +5179,23 @@ function Nc() {
|
|
|
5179
5179
|
};
|
|
5180
5180
|
}, [i]), { controlsVisible: t, showControls: i, hideControls: a, setControlsHeld: l };
|
|
5181
5181
|
}
|
|
5182
|
-
const
|
|
5183
|
-
fragments:
|
|
5182
|
+
const ts = [], ns = [], Fc = {
|
|
5183
|
+
fragments: ts,
|
|
5184
5184
|
durationMs: null,
|
|
5185
5185
|
mseCodec: null,
|
|
5186
5186
|
initSegment: void 0,
|
|
5187
|
-
audioTracks:
|
|
5187
|
+
audioTracks: ns,
|
|
5188
5188
|
contentToken: null
|
|
5189
5189
|
};
|
|
5190
5190
|
function Lc(t, e) {
|
|
5191
5191
|
if (!t || t.url !== e) return Fc;
|
|
5192
5192
|
const n = t.data;
|
|
5193
5193
|
return {
|
|
5194
|
-
fragments: n.fragments ||
|
|
5194
|
+
fragments: n.fragments || ts,
|
|
5195
5195
|
durationMs: n.duration_ms || null,
|
|
5196
5196
|
mseCodec: n.mse_codec || null,
|
|
5197
5197
|
initSegment: n.init_segment || void 0,
|
|
5198
|
-
audioTracks: n.audio_tracks ||
|
|
5198
|
+
audioTracks: n.audio_tracks || ns,
|
|
5199
5199
|
contentToken: n.content_token || null
|
|
5200
5200
|
};
|
|
5201
5201
|
}
|
|
@@ -5279,9 +5279,9 @@ const zt = {
|
|
|
5279
5279
|
selectedSubtitleIndex: 0
|
|
5280
5280
|
};
|
|
5281
5281
|
function Pc(t) {
|
|
5282
|
-
const [e, n] = $(zt), r =
|
|
5282
|
+
const [e, n] = $(zt), r = ia(), s = x((u) => u.mediaPrefs.preferredAudioLang), [i, a] = $(t);
|
|
5283
5283
|
i !== t && (a(t), t && n(zt));
|
|
5284
|
-
const l = ue(() => ({ origin:
|
|
5284
|
+
const l = ue(() => ({ origin: oa(r), preferredAudioLang: s }));
|
|
5285
5285
|
N(() => {
|
|
5286
5286
|
if (!t) return;
|
|
5287
5287
|
const u = new AbortController(), { origin: f, preferredAudioLang: p } = l();
|
|
@@ -5556,7 +5556,7 @@ function Gc(t, e, n, r, s, i) {
|
|
|
5556
5556
|
const f = t.current;
|
|
5557
5557
|
if (!f || !r) return;
|
|
5558
5558
|
const p = a.playheadMs, g = n.current, b = l !== o.current;
|
|
5559
|
-
o.current = l, !(!b && Math.abs(p - g) <=
|
|
5559
|
+
o.current = l, !(!b && Math.abs(p - g) <= ca) && (E("buffer", "Seek triggered", {
|
|
5560
5560
|
targetMs: p,
|
|
5561
5561
|
lastApplied: g,
|
|
5562
5562
|
delta: Math.round(p - g),
|
|
@@ -5737,14 +5737,14 @@ function zc(t, e, n, r, s, i) {
|
|
|
5737
5737
|
if (!u || typeof navigator > "u" || !("mediaSession" in navigator)) return;
|
|
5738
5738
|
const f = navigator.mediaSession;
|
|
5739
5739
|
let p = !1;
|
|
5740
|
-
const g =
|
|
5740
|
+
const g = qr(n), b = (_) => {
|
|
5741
5741
|
p || typeof MediaMetadata > "u" || (f.metadata = new MediaMetadata({
|
|
5742
5742
|
title: g,
|
|
5743
5743
|
artist: "Watch Party",
|
|
5744
5744
|
artwork: _ ? [{ src: _ }] : []
|
|
5745
5745
|
}));
|
|
5746
5746
|
};
|
|
5747
|
-
b(null), Vc(Yo(n).map(
|
|
5747
|
+
b(null), Vc(Yo(n).map(la)).then(b);
|
|
5748
5748
|
const h = (_) => () => {
|
|
5749
5749
|
const m = x.getState(), T = zo(_, { isLeader: Kc(), roomPlaying: m.snapshot.playing });
|
|
5750
5750
|
switch (E(Ce, "media session press", { action: _, result: T.kind }), _ === "pause" && (l.current = Date.now()), T.kind) {
|
|
@@ -5824,7 +5824,7 @@ function Jc(t, e, n, r) {
|
|
|
5824
5824
|
const s = ue((a) => {
|
|
5825
5825
|
const l = t.current;
|
|
5826
5826
|
if (!l) return;
|
|
5827
|
-
const o = l.querySelector(Yn), c = document.activeElement, u = yr(c) ? "text" : o && c && o.contains(c) ? "bar" : !c || c === document.body || c === l ? "idle" : "elsewhere", f =
|
|
5827
|
+
const o = l.querySelector(Yn), c = document.activeElement, u = yr(c) ? "text" : o && c && o.contains(c) ? "bar" : !c || c === document.body || c === l ? "idle" : "elsewhere", f = Ba({
|
|
5828
5828
|
key: a.key,
|
|
5829
5829
|
back: Ve(a),
|
|
5830
5830
|
modifier: a.ctrlKey || a.metaKey || a.altKey,
|
|
@@ -5875,7 +5875,7 @@ function Jc(t, e, n, r) {
|
|
|
5875
5875
|
}, [t]);
|
|
5876
5876
|
}
|
|
5877
5877
|
function Xn(t, e, n) {
|
|
5878
|
-
const r = n instanceof HTMLInputElement && n.type !== "range" ? n : null, s = r ? { atStart: (r.selectionEnd ?? 0) === 0, atEnd: (r.selectionStart ?? 0) === r.value.length } : void 0, i =
|
|
5878
|
+
const r = n instanceof HTMLInputElement && n.type !== "range" ? n : null, s = r ? { atStart: (r.selectionEnd ?? 0) === 0, atEnd: (r.selectionStart ?? 0) === r.value.length } : void 0, i = Oa(t.key, mr(n), n.hasAttribute(et), s);
|
|
5879
5879
|
if (i === null) return;
|
|
5880
5880
|
t.preventDefault();
|
|
5881
5881
|
const a = gr(e), l = a.indexOf(n);
|
|
@@ -5902,7 +5902,7 @@ function Xc({ mediaUrl: t, indexUrl: e, mediaId: n }) {
|
|
|
5902
5902
|
if (!A) return null;
|
|
5903
5903
|
const B = t.replace(new RegExp(`/${xt.replace(/\./g, "\\.")}$`), "");
|
|
5904
5904
|
return B === t ? null : { baseUrl: B, token: A, trackId: M };
|
|
5905
|
-
}, [A, t]), m = h !== null && S.length > 0, T = x((M) => M.readiness), F =
|
|
5905
|
+
}, [A, t]), m = h !== null && S.length > 0, T = x((M) => M.readiness), F = da(), y = ze();
|
|
5906
5906
|
N(() => {
|
|
5907
5907
|
const M = s.current;
|
|
5908
5908
|
if (!M) return;
|
|
@@ -5917,18 +5917,18 @@ function Xc({ mediaUrl: t, indexUrl: e, mediaId: n }) {
|
|
|
5917
5917
|
selectedAudioIndex: te,
|
|
5918
5918
|
setSelectedAudioIndex: we,
|
|
5919
5919
|
selectedSubtitleIndex: ot,
|
|
5920
|
-
setSelectedSubtitleIndex:
|
|
5921
|
-
} = Pc(n), fn = x((M) => M.mediaPrefs),
|
|
5922
|
-
override:
|
|
5923
|
-
globalEnabled:
|
|
5924
|
-
selectedAudioLang:
|
|
5925
|
-
hasEngSub:
|
|
5926
|
-
}),
|
|
5920
|
+
setSelectedSubtitleIndex: rs
|
|
5921
|
+
} = Pc(n), fn = x((M) => M.mediaPrefs), ss = x((M) => M.mutedForAutoplay), as = x((M) => M.setMutedForAutoplay), hn = x((M) => M.setSubtitlesEnabled), is = x((M) => M.setSubtitleStyle), Nt = x((M) => M.setPreferredAudioLang), os = fn.subtitlesEnabled, pn = fn.subtitleStyle, cs = Be[te]?.lang, ls = z.some((M) => M.lang === "eng"), [ds, mn] = $(null), ct = Ec({
|
|
5922
|
+
override: ds,
|
|
5923
|
+
globalEnabled: os,
|
|
5924
|
+
selectedAudioLang: cs,
|
|
5925
|
+
hasEngSub: ls
|
|
5926
|
+
}), us = j(() => {
|
|
5927
5927
|
const M = !ct;
|
|
5928
5928
|
mn(M), hn(M);
|
|
5929
5929
|
}, [ct, hn]), Et = j((M) => {
|
|
5930
5930
|
const B = x.getState();
|
|
5931
|
-
|
|
5931
|
+
Zr(M, {
|
|
5932
5932
|
userWantsMuted: B.mediaPrefs.muted,
|
|
5933
5933
|
onMutedBridge: () => B.setMutedForAutoplay(!0),
|
|
5934
5934
|
onUnmuted: () => B.setMutedForAutoplay(!1),
|
|
@@ -5936,8 +5936,8 @@ function Xc({ mediaUrl: t, indexUrl: e, mediaId: n }) {
|
|
|
5936
5936
|
});
|
|
5937
5937
|
}, []), gn = j((M) => {
|
|
5938
5938
|
M.pause();
|
|
5939
|
-
}, []), [
|
|
5940
|
-
|
|
5939
|
+
}, []), [fs, bn] = $(0), [hs, ps] = $(n);
|
|
5940
|
+
hs !== n && (ps(n), mn(null), bn(0)), N(() => {
|
|
5941
5941
|
const M = r.current;
|
|
5942
5942
|
if (!M) return;
|
|
5943
5943
|
const B = () => {
|
|
@@ -5972,7 +5972,7 @@ function Xc({ mediaUrl: t, indexUrl: e, mediaId: n }) {
|
|
|
5972
5972
|
})
|
|
5973
5973
|
);
|
|
5974
5974
|
if (await M.ensureBuffered(V, "initial"), M.isDisposed) return;
|
|
5975
|
-
const re =
|
|
5975
|
+
const re = ua;
|
|
5976
5976
|
await Promise.allSettled(ne);
|
|
5977
5977
|
const Q = le.map(
|
|
5978
5978
|
(K) => K.waitForBuffered(V + Ne, re)
|
|
@@ -5998,7 +5998,7 @@ function Xc({ mediaUrl: t, indexUrl: e, mediaId: n }) {
|
|
|
5998
5998
|
totalMs: Oe
|
|
5999
5999
|
});
|
|
6000
6000
|
const Ae = Ee ? "gate-pass" : "gate-timeout";
|
|
6001
|
-
M.emitInitDigest("video", Ae), le.forEach((K, se) => K.emitInitDigest(`audio:${se}`, Ae)), w.current || (w.current = !0,
|
|
6001
|
+
M.emitInitDigest("video", Ae), le.forEach((K, se) => K.emitInitDigest(`audio:${se}`, Ae)), w.current || (w.current = !0, fa(n));
|
|
6002
6002
|
let q = V;
|
|
6003
6003
|
if (B && q > 0) {
|
|
6004
6004
|
const K = B.buffered;
|
|
@@ -6006,7 +6006,7 @@ function Xc({ mediaUrl: t, indexUrl: e, mediaId: n }) {
|
|
|
6006
6006
|
const se = q / 1e3, ae = K.start(0);
|
|
6007
6007
|
se < ae && ae - se < 1 && (q = ae * 1e3);
|
|
6008
6008
|
}
|
|
6009
|
-
B.currentTime = q / 1e3, await
|
|
6009
|
+
B.currentTime = q / 1e3, await es(B, 3e3);
|
|
6010
6010
|
}
|
|
6011
6011
|
at.current = q, a(!0), C.current = !0, G.current = 0, zn() && I("buffer", "RECOVERY-SUCCESS — playback initialized after an auto-reload", { mediaId: n }), Mc(), E("buffer", "initializePlayback complete", {
|
|
6012
6012
|
mediaId: n,
|
|
@@ -6089,7 +6089,7 @@ function Xc({ mediaUrl: t, indexUrl: e, mediaId: n }) {
|
|
|
6089
6089
|
}
|
|
6090
6090
|
}
|
|
6091
6091
|
}
|
|
6092
|
-
const
|
|
6092
|
+
const ms = ue(() => ({
|
|
6093
6093
|
useMseAudio: m,
|
|
6094
6094
|
selectedAudioIndex: te,
|
|
6095
6095
|
mseAudioTracks: S,
|
|
@@ -6106,7 +6106,7 @@ function Xc({ mediaUrl: t, indexUrl: e, mediaId: n }) {
|
|
|
6106
6106
|
fragments: V,
|
|
6107
6107
|
deliveryFor: ce,
|
|
6108
6108
|
initializePlayback: le
|
|
6109
|
-
} =
|
|
6109
|
+
} = ms();
|
|
6110
6110
|
D.current !== n && (D.current = n, J.current = 0, G.current = 0);
|
|
6111
6111
|
const ne = zn();
|
|
6112
6112
|
ne && I("buffer", "POST-AUTO-RELOAD — this load follows an auto-reload recovery", {
|
|
@@ -6210,7 +6210,7 @@ function Xc({ mediaUrl: t, indexUrl: e, mediaId: n }) {
|
|
|
6210
6210
|
Je.current?.(), C.current = !1, w.current = !1, P.current = null, a(!1);
|
|
6211
6211
|
};
|
|
6212
6212
|
}, [t, n, h, v, lt, W]);
|
|
6213
|
-
const
|
|
6213
|
+
const gs = ue(() => {
|
|
6214
6214
|
const M = H.current, B = _e.current;
|
|
6215
6215
|
if (O.current?.readyState === "open" && P.current && g.length && M) {
|
|
6216
6216
|
if (M.hasIndex && M.epoch === B) return;
|
|
@@ -6231,7 +6231,7 @@ function Xc({ mediaUrl: t, indexUrl: e, mediaId: n }) {
|
|
|
6231
6231
|
}
|
|
6232
6232
|
});
|
|
6233
6233
|
N(() => {
|
|
6234
|
-
|
|
6234
|
+
gs();
|
|
6235
6235
|
}, [g, t, v, S]), N(() => {
|
|
6236
6236
|
const M = () => {
|
|
6237
6237
|
H.current?.abortStaleJobs("socket-reconnect");
|
|
@@ -6314,12 +6314,12 @@ function Xc({ mediaUrl: t, indexUrl: e, mediaId: n }) {
|
|
|
6314
6314
|
Wc(H), N(() => {
|
|
6315
6315
|
Je.current = vn;
|
|
6316
6316
|
}, [vn]);
|
|
6317
|
-
const
|
|
6317
|
+
const bs = j(() => {
|
|
6318
6318
|
const M = r.current?.parentElement;
|
|
6319
6319
|
M && (document.fullscreenElement ? document.exitFullscreen().catch((B) => I("ui", "exitFullscreen failed", Y(B))) : M.requestFullscreen().catch((B) => I("ui", "requestFullscreen failed", Y(B))));
|
|
6320
|
-
}, []),
|
|
6320
|
+
}, []), ys = j((M) => {
|
|
6321
6321
|
M.preventDefault();
|
|
6322
|
-
}, []),
|
|
6322
|
+
}, []), vs = ct && z[ot] ? z[ot].url : null;
|
|
6323
6323
|
return /* @__PURE__ */ k(
|
|
6324
6324
|
"div",
|
|
6325
6325
|
{
|
|
@@ -6337,14 +6337,14 @@ function Xc({ mediaUrl: t, indexUrl: e, mediaId: n }) {
|
|
|
6337
6337
|
ref: r,
|
|
6338
6338
|
className: "w-full h-full",
|
|
6339
6339
|
playsInline: !0,
|
|
6340
|
-
onDoubleClick:
|
|
6341
|
-
onContextMenu:
|
|
6340
|
+
onDoubleClick: bs,
|
|
6341
|
+
onContextMenu: ys
|
|
6342
6342
|
}
|
|
6343
6343
|
),
|
|
6344
6344
|
/* @__PURE__ */ d(
|
|
6345
6345
|
dc,
|
|
6346
6346
|
{
|
|
6347
|
-
subtitleUrl:
|
|
6347
|
+
subtitleUrl: vs,
|
|
6348
6348
|
videoRef: r,
|
|
6349
6349
|
style: pn,
|
|
6350
6350
|
enabled: ct
|
|
@@ -6358,7 +6358,7 @@ function Xc({ mediaUrl: t, indexUrl: e, mediaId: n }) {
|
|
|
6358
6358
|
mediaId: n,
|
|
6359
6359
|
durationMs: b || void 0,
|
|
6360
6360
|
visible: c,
|
|
6361
|
-
displayPlayheadMs:
|
|
6361
|
+
displayPlayheadMs: fs,
|
|
6362
6362
|
audioTracks: Be,
|
|
6363
6363
|
selectedAudioIndex: te,
|
|
6364
6364
|
onAudioSelect: (M) => {
|
|
@@ -6368,22 +6368,22 @@ function Xc({ mediaUrl: t, indexUrl: e, mediaId: n }) {
|
|
|
6368
6368
|
},
|
|
6369
6369
|
subtitleTracks: z,
|
|
6370
6370
|
selectedSubtitleIndex: ot,
|
|
6371
|
-
onSubtitleSelect:
|
|
6371
|
+
onSubtitleSelect: rs,
|
|
6372
6372
|
subtitlesEnabled: ct,
|
|
6373
|
-
onSubtitlesToggle:
|
|
6373
|
+
onSubtitlesToggle: us,
|
|
6374
6374
|
subtitleStyle: pn,
|
|
6375
|
-
onSubtitleStyleChange:
|
|
6375
|
+
onSubtitleStyleChange: is,
|
|
6376
6376
|
onChatActivity: () => u(5e3),
|
|
6377
6377
|
onMenuHeld: p
|
|
6378
6378
|
}
|
|
6379
6379
|
),
|
|
6380
|
-
|
|
6380
|
+
ss && /* @__PURE__ */ k(
|
|
6381
6381
|
"button",
|
|
6382
6382
|
{
|
|
6383
6383
|
type: "button",
|
|
6384
6384
|
onClick: () => {
|
|
6385
6385
|
const M = r.current;
|
|
6386
|
-
M && (M.muted = !1),
|
|
6386
|
+
M && (M.muted = !1), as(!1);
|
|
6387
6387
|
},
|
|
6388
6388
|
className: "autoplay-sound-badge",
|
|
6389
6389
|
children: [
|
|
@@ -6402,12 +6402,12 @@ function Xc({ mediaUrl: t, indexUrl: e, mediaId: n }) {
|
|
|
6402
6402
|
}
|
|
6403
6403
|
function Zc() {
|
|
6404
6404
|
const t = x((n) => n.snapshot.mediaId), e = Me(() => t ? { mediaId: t, ...hr(t) } : null, [t]);
|
|
6405
|
-
return e ? /* @__PURE__ */ d(xr, { children: /* @__PURE__ */ d(Xc, { mediaUrl: e.mediaUrl, indexUrl: e.indexUrl, mediaId: e.mediaId }) }) : /* @__PURE__ */ d(
|
|
6405
|
+
return e ? /* @__PURE__ */ d(xr, { children: /* @__PURE__ */ d(Xc, { mediaUrl: e.mediaUrl, indexUrl: e.indexUrl, mediaId: e.mediaId }) }) : /* @__PURE__ */ d(ma, {});
|
|
6406
6406
|
}
|
|
6407
6407
|
const el = (t) => {
|
|
6408
|
-
const e =
|
|
6408
|
+
const e = ka(t);
|
|
6409
6409
|
return e.render(
|
|
6410
|
-
/* @__PURE__ */ d(
|
|
6410
|
+
/* @__PURE__ */ d(ha.Provider, { value: pa(), children: /* @__PURE__ */ d(Zc, {}) })
|
|
6411
6411
|
), {
|
|
6412
6412
|
update() {
|
|
6413
6413
|
},
|
|
@@ -6425,12 +6425,12 @@ const el = (t) => {
|
|
|
6425
6425
|
id: "player",
|
|
6426
6426
|
name: "Media player",
|
|
6427
6427
|
load: () => Promise.resolve(tl)
|
|
6428
|
-
}, rl = sn(() => import("./MediaDrawer-
|
|
6428
|
+
}, rl = sn(() => import("./MediaDrawer-Bme1mHSR.js"));
|
|
6429
6429
|
function sl() {
|
|
6430
6430
|
const t = x((u) => u.snapshot), e = x((u) => u.ensureAutoIdentity), n = Rt(), r = Me(
|
|
6431
|
-
() => n ?
|
|
6431
|
+
() => n ? Qa(n, window.location.origin) : null,
|
|
6432
6432
|
[n]
|
|
6433
|
-
), s =
|
|
6433
|
+
), s = ga(), i = L(!1), [a, l] = $(!1), o = s.roomKey || null;
|
|
6434
6434
|
So(), N(() => wo(), []), N(() => Mo(), []), N(() => {
|
|
6435
6435
|
o && To(o);
|
|
6436
6436
|
}, [o]), N(() => {
|
|
@@ -6444,9 +6444,9 @@ function sl() {
|
|
|
6444
6444
|
try {
|
|
6445
6445
|
await Promise.race([
|
|
6446
6446
|
Promise.all([
|
|
6447
|
-
ga(),
|
|
6448
6447
|
ba(),
|
|
6449
|
-
ya()
|
|
6448
|
+
ya(),
|
|
6449
|
+
va().then(dr)
|
|
6450
6450
|
]),
|
|
6451
6451
|
new Promise((b) => setTimeout(b, f))
|
|
6452
6452
|
]);
|
|
@@ -6457,7 +6457,7 @@ function sl() {
|
|
|
6457
6457
|
const p = x.getState();
|
|
6458
6458
|
E("room", "Joining room", { roomKey: o, name: p.name, sprite: p.sprite }), e();
|
|
6459
6459
|
const g = x.getState();
|
|
6460
|
-
|
|
6460
|
+
Sa({
|
|
6461
6461
|
room_key: o,
|
|
6462
6462
|
name: g.name || void 0,
|
|
6463
6463
|
sprite: g.sprite || void 0
|
|
@@ -6473,15 +6473,15 @@ function sl() {
|
|
|
6473
6473
|
/* @__PURE__ */ k("div", { className: "flex-1 relative bg-black overflow-hidden min-w-0", children: [
|
|
6474
6474
|
/* @__PURE__ */ d(In, { activity: nl, roomKey: t.roomId ?? "", layer: "base" }),
|
|
6475
6475
|
r && t.roomId && /* @__PURE__ */ d(xr, { children: /* @__PURE__ */ d(In, { activity: r, roomKey: t.roomId, layer: "overlay" }, r.id) }),
|
|
6476
|
-
/* @__PURE__ */ k(
|
|
6476
|
+
/* @__PURE__ */ k(ho, { children: [
|
|
6477
6477
|
/* @__PURE__ */ d(al, {}),
|
|
6478
|
-
/* @__PURE__ */ d(
|
|
6478
|
+
/* @__PURE__ */ d(co, {}),
|
|
6479
6479
|
/* @__PURE__ */ d(mo, {}),
|
|
6480
|
-
/* @__PURE__ */ d(
|
|
6480
|
+
/* @__PURE__ */ d(fo, {})
|
|
6481
6481
|
] })
|
|
6482
6482
|
] }),
|
|
6483
|
-
/* @__PURE__ */ d(
|
|
6484
|
-
/* @__PURE__ */ d(Ke.Suspense, { fallback: /* @__PURE__ */ d(
|
|
6483
|
+
/* @__PURE__ */ d(Fi, {}),
|
|
6484
|
+
/* @__PURE__ */ d(Ke.Suspense, { fallback: /* @__PURE__ */ d(qi, { open: a, onClose: c }), children: /* @__PURE__ */ d(rl, { open: a, onClose: c }) })
|
|
6485
6485
|
] }) : (I("room", "No room key provided"), /* @__PURE__ */ d("div", { className: "flex-1 flex items-center justify-center p-6", children: /* @__PURE__ */ k("div", { className: "text-text-secondary", children: [
|
|
6486
6486
|
"No room key provided. Go to the ",
|
|
6487
6487
|
/* @__PURE__ */ d("a", { href: "/", className: "underline", children: "home page" }),
|
|
@@ -6491,29 +6491,32 @@ function sl() {
|
|
|
6491
6491
|
function al() {
|
|
6492
6492
|
const t = x((s) => s.floatingChatEnabled), e = x((s) => s.chatCollapsed), n = x((s) => !!s.snapshot.mediaId), r = St();
|
|
6493
6493
|
return /* @__PURE__ */ d(
|
|
6494
|
-
|
|
6494
|
+
Zi,
|
|
6495
6495
|
{
|
|
6496
|
-
shown:
|
|
6496
|
+
shown: Ya(t, { hasMedia: n, chatCollapsed: e, isFullscreen: r }),
|
|
6497
6497
|
className: "absolute right-4 bottom-[35%] w-80 z-20"
|
|
6498
6498
|
}
|
|
6499
6499
|
);
|
|
6500
6500
|
}
|
|
6501
|
-
const
|
|
6501
|
+
const yl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6502
6502
|
__proto__: null,
|
|
6503
6503
|
default: sl
|
|
6504
6504
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6505
6505
|
export {
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6506
|
+
gl as B,
|
|
6507
|
+
Gi as C,
|
|
6508
|
+
Qi as D,
|
|
6509
|
+
Vi as E,
|
|
6510
|
+
yl as R,
|
|
6511
|
+
hl as S,
|
|
6512
|
+
Ji as a,
|
|
6513
|
+
pl as b,
|
|
6514
|
+
Io as c,
|
|
6515
|
+
ml as d,
|
|
6516
|
+
ze as e,
|
|
6514
6517
|
Ve as i,
|
|
6515
6518
|
kr as p,
|
|
6516
|
-
|
|
6519
|
+
bl as s,
|
|
6517
6520
|
ln as u
|
|
6518
6521
|
};
|
|
6519
|
-
//# sourceMappingURL=Room-
|
|
6522
|
+
//# sourceMappingURL=Room-DICwz_k7.js.map
|