@aigamo/hydrangean-diva 0.0.1-alpha.5 → 0.0.1-alpha.7

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/index.es.js CHANGED
@@ -1,158 +1,1244 @@
1
- var Q = Object.defineProperty;
2
- var ee = (n, e, i) => e in n ? Q(n, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[e] = i;
3
- var p = (n, e, i) => ee(n, typeof e != "symbol" ? e + "" : e, i);
4
- import { useNostalgicDiva as C, findVideoService as te, NostalgicDiva as ne } from "@aigamo/nostalgic-diva";
5
- import { EuiRange as j, EuiPopover as F, EuiFormRow as O, EuiFlexGroup as k, EuiButtonIcon as I, EuiIcon as E, EuiContextMenu as ie, EuiBottomBar as se, EuiFlexItem as v, EuiButton as x, EuiModal as re, EuiModalHeader as le, EuiModalHeaderTitle as ae, EuiModalBody as oe, EuiForm as ce, EuiFieldText as V, EuiModalFooter as me, EuiButtonEmpty as de, useEuiTheme as H, EuiTableHeader as ue, EuiTableHeaderCellCheckbox as he, EuiCheckbox as U, EuiTableHeaderCell as P, EuiContextMenuItem as pe, EuiContextMenuPanel as ge, EuiHorizontalRule as L, EuiTableRowCell as A, EuiTableRow as fe, EuiTableRowCellCheckbox as Ee, EuiLink as ve, EuiTable as Ie, EuiFlyout as ye, EuiCodeBlock as be, EuiSpacer as $, EuiPageTemplate as z } from "@elastic/eui";
6
- import { Speaker2Regular as q, TopSpeedRegular as Te, SkipBack10Regular as xe, SkipForward30Regular as Ce, DismissRegular as B, ArrowRepeat1Filled as ke, ArrowRepeatAllFilled as we, ArrowRepeatAllOffFilled as Pe, ArrowShuffleFilled as Se, ArrowShuffleOffFilled as Oe, PreviousFilled as Ae, PauseFilled as ze, PlayFilled as Me, NextFilled as Re, MoreHorizontalFilled as J, AddRegular as N, ArrowUploadRegular as Fe, ArrowDownloadRegular as Be, PlayRegular as Ne, DeleteRegular as Ve } from "@fluentui/react-icons";
7
- import { observer as h } from "mobx-react-lite";
8
- import t, { useCallback as u, memo as y, useState as g, useLayoutEffect as Le, useMemo as G, createContext as W, useContext as X, useEffect as De } from "react";
9
- import { ReactSortable as je } from "react-sortablejs";
10
- import { makeObservable as He, action as r, computed as c, observable as b, reaction as Ue } from "mobx";
11
- import { pull as D } from "lodash-es";
12
- import $e from "ajv";
13
- var o = /* @__PURE__ */ ((n) => (n.Off = "Off", n.All = "All", n.One = "One", n))(o || {});
14
- const Y = 80, qe = h(({ playerStore: n }) => {
15
- const e = C(), i = u(
16
- (a) => {
17
- const m = Number(a.currentTarget.value) / 100;
18
- n.setPercent(m);
1
+ var Tr = Object.defineProperty;
2
+ var Cr = (t, e, n) => e in t ? Tr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var V = (t, e, n) => Cr(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import * as Z from "react";
5
+ import Ft, { forwardRef as Sr, useContext as at, useCallback as $, memo as K, useState as Y, useLayoutEffect as Ir, useMemo as $t, createContext as jt, useEffect as Rr } from "react";
6
+ import Pr from "@emotion/cache";
7
+ import { useNostalgicDiva as te, findVideoService as wr, NostalgicDiva as _r } from "@aigamo/nostalgic-diva";
8
+ import { EuiRange as Nt, EuiButtonIcon as G, EuiFlexGroup as de, EuiFlexItem as U, EuiBottomBar as Or, EuiFormRow as Ze, EuiPopover as st, EuiIcon as W, EuiContextMenu as Ar, EuiButton as ee, EuiModalHeaderTitle as kr, EuiModalHeader as Mr, EuiForm as Fr, EuiFieldText as St, EuiModalBody as $r, EuiModalFooter as jr, EuiButtonEmpty as Nr, EuiModal as Dr, useEuiTheme as Dt, EuiCheckbox as zt, EuiTableHeaderCellCheckbox as zr, EuiTableHeaderCell as Je, EuiTableHeader as Lr, EuiContextMenuItem as Vr, EuiHorizontalRule as It, EuiContextMenuPanel as Yr, EuiTableRowCell as Qe, EuiTableRowCellCheckbox as Br, EuiLink as Wr, EuiTableRow as Ur, EuiTable as qr, EuiCodeBlock as Hr, EuiFlyout as Gr, EuiSpacer as Lt, EuiPageTemplate as et } from "@elastic/eui";
9
+ import { ArrowRepeat1Filled as Jr, ArrowRepeatAllFilled as Kr, ArrowRepeatAllOffFilled as Xr, ArrowShuffleFilled as Zr, ArrowShuffleOffFilled as Qr, PreviousFilled as en, PauseFilled as tn, PlayFilled as rn, NextFilled as nn, Speaker2Regular as Vt, MoreHorizontalFilled as Yt, TopSpeedRegular as on, SkipBack10Regular as an, SkipForward30Regular as sn, DismissRegular as lt, AddRegular as ct, ArrowUploadRegular as ln, ArrowDownloadRegular as cn, PlayRegular as un, DeleteRegular as dn } from "@fluentui/react-icons";
10
+ import { observer as D } from "mobx-react-lite";
11
+ import { ReactSortable as fn } from "react-sortablejs";
12
+ import { makeObservable as mn, action as y, computed as w, observable as Q, reaction as hn } from "mobx";
13
+ import { pull as Rt } from "lodash-es";
14
+ import vn from "ajv";
15
+ var tt = { exports: {} }, xe = {};
16
+ /**
17
+ * @license React
18
+ * react-jsx-runtime.production.min.js
19
+ *
20
+ * Copyright (c) Facebook, Inc. and its affiliates.
21
+ *
22
+ * This source code is licensed under the MIT license found in the
23
+ * LICENSE file in the root directory of this source tree.
24
+ */
25
+ var Pt;
26
+ function pn() {
27
+ if (Pt) return xe;
28
+ Pt = 1;
29
+ var t = Ft, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
30
+ function f(m, h, p) {
31
+ var C, R = {}, B = null, j = null;
32
+ p !== void 0 && (B = "" + p), h.key !== void 0 && (B = "" + h.key), h.ref !== void 0 && (j = h.ref);
33
+ for (C in h) i.call(h, C) && !l.hasOwnProperty(C) && (R[C] = h[C]);
34
+ if (m && m.defaultProps) for (C in h = m.defaultProps, h) R[C] === void 0 && (R[C] = h[C]);
35
+ return { $$typeof: e, type: m, key: B, ref: j, props: R, _owner: a.current };
36
+ }
37
+ return xe.Fragment = n, xe.jsx = f, xe.jsxs = f, xe;
38
+ }
39
+ var Te = {};
40
+ /**
41
+ * @license React
42
+ * react-jsx-runtime.development.js
43
+ *
44
+ * Copyright (c) Facebook, Inc. and its affiliates.
45
+ *
46
+ * This source code is licensed under the MIT license found in the
47
+ * LICENSE file in the root directory of this source tree.
48
+ */
49
+ var wt;
50
+ function yn() {
51
+ return wt || (wt = 1, process.env.NODE_ENV !== "production" && function() {
52
+ var t = Ft, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), m = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), z = Symbol.iterator, fe = "@@iterator";
53
+ function me(r) {
54
+ if (r === null || typeof r != "object")
55
+ return null;
56
+ var s = z && r[z] || r[fe];
57
+ return typeof s == "function" ? s : null;
58
+ }
59
+ var q = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
60
+ function A(r) {
61
+ {
62
+ for (var s = arguments.length, c = new Array(s > 1 ? s - 1 : 0), v = 1; v < s; v++)
63
+ c[v - 1] = arguments[v];
64
+ M("error", r, c);
65
+ }
66
+ }
67
+ function M(r, s, c) {
68
+ {
69
+ var v = q.ReactDebugCurrentFrame, E = v.getStackAddendum();
70
+ E !== "" && (s += "%s", c = c.concat([E]));
71
+ var S = c.map(function(b) {
72
+ return String(b);
73
+ });
74
+ S.unshift("Warning: " + s), Function.prototype.apply.call(console[r], console, S);
75
+ }
76
+ }
77
+ var k = !1, u = !1, re = !1, Ne = !1, De = !1, Pe;
78
+ Pe = Symbol.for("react.module.reference");
79
+ function ze(r) {
80
+ return !!(typeof r == "string" || typeof r == "function" || r === i || r === l || De || r === a || r === p || r === C || Ne || r === j || k || u || re || typeof r == "object" && r !== null && (r.$$typeof === B || r.$$typeof === R || r.$$typeof === f || r.$$typeof === m || r.$$typeof === h || // This needs to include all possible module reference object
81
+ // types supported by any Flight configuration anywhere since
82
+ // we don't know which Flight build this will end up being used
83
+ // with.
84
+ r.$$typeof === Pe || r.getModuleId !== void 0));
85
+ }
86
+ function Le(r, s, c) {
87
+ var v = r.displayName;
88
+ if (v)
89
+ return v;
90
+ var E = s.displayName || s.name || "";
91
+ return E !== "" ? c + "(" + E + ")" : c;
92
+ }
93
+ function we(r) {
94
+ return r.displayName || "Context";
95
+ }
96
+ function H(r) {
97
+ if (r == null)
98
+ return null;
99
+ if (typeof r.tag == "number" && A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
100
+ return r.displayName || r.name || null;
101
+ if (typeof r == "string")
102
+ return r;
103
+ switch (r) {
104
+ case i:
105
+ return "Fragment";
106
+ case n:
107
+ return "Portal";
108
+ case l:
109
+ return "Profiler";
110
+ case a:
111
+ return "StrictMode";
112
+ case p:
113
+ return "Suspense";
114
+ case C:
115
+ return "SuspenseList";
116
+ }
117
+ if (typeof r == "object")
118
+ switch (r.$$typeof) {
119
+ case m:
120
+ var s = r;
121
+ return we(s) + ".Consumer";
122
+ case f:
123
+ var c = r;
124
+ return we(c._context) + ".Provider";
125
+ case h:
126
+ return Le(r, r.render, "ForwardRef");
127
+ case R:
128
+ var v = r.displayName || null;
129
+ return v !== null ? v : H(r.type) || "Memo";
130
+ case B: {
131
+ var E = r, S = E._payload, b = E._init;
132
+ try {
133
+ return H(b(S));
134
+ } catch {
135
+ return null;
136
+ }
137
+ }
138
+ }
139
+ return null;
140
+ }
141
+ var X = Object.assign, ne = 0, _e, Oe, he, Ae, ve, ke, Me;
142
+ function Fe() {
143
+ }
144
+ Fe.__reactDisabledLog = !0;
145
+ function Ve() {
146
+ {
147
+ if (ne === 0) {
148
+ _e = console.log, Oe = console.info, he = console.warn, Ae = console.error, ve = console.group, ke = console.groupCollapsed, Me = console.groupEnd;
149
+ var r = {
150
+ configurable: !0,
151
+ enumerable: !0,
152
+ value: Fe,
153
+ writable: !0
154
+ };
155
+ Object.defineProperties(console, {
156
+ info: r,
157
+ log: r,
158
+ warn: r,
159
+ error: r,
160
+ group: r,
161
+ groupCollapsed: r,
162
+ groupEnd: r
163
+ });
164
+ }
165
+ ne++;
166
+ }
167
+ }
168
+ function Ye() {
169
+ {
170
+ if (ne--, ne === 0) {
171
+ var r = {
172
+ configurable: !0,
173
+ enumerable: !0,
174
+ writable: !0
175
+ };
176
+ Object.defineProperties(console, {
177
+ log: X({}, r, {
178
+ value: _e
179
+ }),
180
+ info: X({}, r, {
181
+ value: Oe
182
+ }),
183
+ warn: X({}, r, {
184
+ value: he
185
+ }),
186
+ error: X({}, r, {
187
+ value: Ae
188
+ }),
189
+ group: X({}, r, {
190
+ value: ve
191
+ }),
192
+ groupCollapsed: X({}, r, {
193
+ value: ke
194
+ }),
195
+ groupEnd: X({}, r, {
196
+ value: Me
197
+ })
198
+ });
199
+ }
200
+ ne < 0 && A("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
201
+ }
202
+ }
203
+ var pe = q.ReactCurrentDispatcher, ye;
204
+ function ae(r, s, c) {
205
+ {
206
+ if (ye === void 0)
207
+ try {
208
+ throw Error();
209
+ } catch (E) {
210
+ var v = E.stack.trim().match(/\n( *(at )?)/);
211
+ ye = v && v[1] || "";
212
+ }
213
+ return `
214
+ ` + ye + r;
215
+ }
216
+ }
217
+ var ge = !1, se;
218
+ {
219
+ var Be = typeof WeakMap == "function" ? WeakMap : Map;
220
+ se = new Be();
221
+ }
222
+ function d(r, s) {
223
+ if (!r || ge)
224
+ return "";
225
+ {
226
+ var c = se.get(r);
227
+ if (c !== void 0)
228
+ return c;
229
+ }
230
+ var v;
231
+ ge = !0;
232
+ var E = Error.prepareStackTrace;
233
+ Error.prepareStackTrace = void 0;
234
+ var S;
235
+ S = pe.current, pe.current = null, Ve();
236
+ try {
237
+ if (s) {
238
+ var b = function() {
239
+ throw Error();
240
+ };
241
+ if (Object.defineProperty(b.prototype, "props", {
242
+ set: function() {
243
+ throw Error();
244
+ }
245
+ }), typeof Reflect == "object" && Reflect.construct) {
246
+ try {
247
+ Reflect.construct(b, []);
248
+ } catch (N) {
249
+ v = N;
250
+ }
251
+ Reflect.construct(r, [], b);
252
+ } else {
253
+ try {
254
+ b.call();
255
+ } catch (N) {
256
+ v = N;
257
+ }
258
+ r.call(b.prototype);
259
+ }
260
+ } else {
261
+ try {
262
+ throw Error();
263
+ } catch (N) {
264
+ v = N;
265
+ }
266
+ r();
267
+ }
268
+ } catch (N) {
269
+ if (N && v && typeof N.stack == "string") {
270
+ for (var g = N.stack.split(`
271
+ `), F = v.stack.split(`
272
+ `), P = g.length - 1, _ = F.length - 1; P >= 1 && _ >= 0 && g[P] !== F[_]; )
273
+ _--;
274
+ for (; P >= 1 && _ >= 0; P--, _--)
275
+ if (g[P] !== F[_]) {
276
+ if (P !== 1 || _ !== 1)
277
+ do
278
+ if (P--, _--, _ < 0 || g[P] !== F[_]) {
279
+ var L = `
280
+ ` + g[P].replace(" at new ", " at ");
281
+ return r.displayName && L.includes("<anonymous>") && (L = L.replace("<anonymous>", r.displayName)), typeof r == "function" && se.set(r, L), L;
282
+ }
283
+ while (P >= 1 && _ >= 0);
284
+ break;
285
+ }
286
+ }
287
+ } finally {
288
+ ge = !1, pe.current = S, Ye(), Error.prepareStackTrace = E;
289
+ }
290
+ var ue = r ? r.displayName || r.name : "", oe = ue ? ae(ue) : "";
291
+ return typeof r == "function" && se.set(r, oe), oe;
292
+ }
293
+ function be(r, s, c) {
294
+ return d(r, !1);
295
+ }
296
+ function le(r) {
297
+ var s = r.prototype;
298
+ return !!(s && s.isReactComponent);
299
+ }
300
+ function ie(r, s, c) {
301
+ if (r == null)
302
+ return "";
303
+ if (typeof r == "function")
304
+ return d(r, le(r));
305
+ if (typeof r == "string")
306
+ return ae(r);
307
+ switch (r) {
308
+ case p:
309
+ return ae("Suspense");
310
+ case C:
311
+ return ae("SuspenseList");
312
+ }
313
+ if (typeof r == "object")
314
+ switch (r.$$typeof) {
315
+ case h:
316
+ return be(r.render);
317
+ case R:
318
+ return ie(r.type, s, c);
319
+ case B: {
320
+ var v = r, E = v._payload, S = v._init;
321
+ try {
322
+ return ie(S(E), s, c);
323
+ } catch {
324
+ }
325
+ }
326
+ }
327
+ return "";
328
+ }
329
+ var Ee = Object.prototype.hasOwnProperty, ut = {}, dt = q.ReactDebugCurrentFrame;
330
+ function $e(r) {
331
+ if (r) {
332
+ var s = r._owner, c = ie(r.type, r._source, s ? s.type : null);
333
+ dt.setExtraStackFrame(c);
334
+ } else
335
+ dt.setExtraStackFrame(null);
336
+ }
337
+ function er(r, s, c, v, E) {
338
+ {
339
+ var S = Function.call.bind(Ee);
340
+ for (var b in r)
341
+ if (S(r, b)) {
342
+ var g = void 0;
343
+ try {
344
+ if (typeof r[b] != "function") {
345
+ var F = Error((v || "React class") + ": " + c + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
346
+ throw F.name = "Invariant Violation", F;
347
+ }
348
+ g = r[b](s, b, v, c, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
349
+ } catch (P) {
350
+ g = P;
351
+ }
352
+ g && !(g instanceof Error) && ($e(E), A("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", c, b, typeof g), $e(null)), g instanceof Error && !(g.message in ut) && (ut[g.message] = !0, $e(E), A("Failed %s type: %s", c, g.message), $e(null));
353
+ }
354
+ }
355
+ }
356
+ var tr = Array.isArray;
357
+ function We(r) {
358
+ return tr(r);
359
+ }
360
+ function rr(r) {
361
+ {
362
+ var s = typeof Symbol == "function" && Symbol.toStringTag, c = s && r[Symbol.toStringTag] || r.constructor.name || "Object";
363
+ return c;
364
+ }
365
+ }
366
+ function nr(r) {
367
+ try {
368
+ return ft(r), !1;
369
+ } catch {
370
+ return !0;
371
+ }
372
+ }
373
+ function ft(r) {
374
+ return "" + r;
375
+ }
376
+ function mt(r) {
377
+ if (nr(r))
378
+ return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rr(r)), ft(r);
379
+ }
380
+ var ht = q.ReactCurrentOwner, ir = {
381
+ key: !0,
382
+ ref: !0,
383
+ __self: !0,
384
+ __source: !0
385
+ }, vt, pt;
386
+ function or(r) {
387
+ if (Ee.call(r, "ref")) {
388
+ var s = Object.getOwnPropertyDescriptor(r, "ref").get;
389
+ if (s && s.isReactWarning)
390
+ return !1;
391
+ }
392
+ return r.ref !== void 0;
393
+ }
394
+ function ar(r) {
395
+ if (Ee.call(r, "key")) {
396
+ var s = Object.getOwnPropertyDescriptor(r, "key").get;
397
+ if (s && s.isReactWarning)
398
+ return !1;
399
+ }
400
+ return r.key !== void 0;
401
+ }
402
+ function sr(r, s) {
403
+ typeof r.ref == "string" && ht.current;
404
+ }
405
+ function lr(r, s) {
406
+ {
407
+ var c = function() {
408
+ vt || (vt = !0, A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
409
+ };
410
+ c.isReactWarning = !0, Object.defineProperty(r, "key", {
411
+ get: c,
412
+ configurable: !0
413
+ });
414
+ }
415
+ }
416
+ function cr(r, s) {
417
+ {
418
+ var c = function() {
419
+ pt || (pt = !0, A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
420
+ };
421
+ c.isReactWarning = !0, Object.defineProperty(r, "ref", {
422
+ get: c,
423
+ configurable: !0
424
+ });
425
+ }
426
+ }
427
+ var ur = function(r, s, c, v, E, S, b) {
428
+ var g = {
429
+ // This tag allows us to uniquely identify this as a React Element
430
+ $$typeof: e,
431
+ // Built-in properties that belong on the element
432
+ type: r,
433
+ key: s,
434
+ ref: c,
435
+ props: b,
436
+ // Record the component responsible for creating this element.
437
+ _owner: S
438
+ };
439
+ return g._store = {}, Object.defineProperty(g._store, "validated", {
440
+ configurable: !1,
441
+ enumerable: !1,
442
+ writable: !0,
443
+ value: !1
444
+ }), Object.defineProperty(g, "_self", {
445
+ configurable: !1,
446
+ enumerable: !1,
447
+ writable: !1,
448
+ value: v
449
+ }), Object.defineProperty(g, "_source", {
450
+ configurable: !1,
451
+ enumerable: !1,
452
+ writable: !1,
453
+ value: E
454
+ }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
455
+ };
456
+ function dr(r, s, c, v, E) {
457
+ {
458
+ var S, b = {}, g = null, F = null;
459
+ c !== void 0 && (mt(c), g = "" + c), ar(s) && (mt(s.key), g = "" + s.key), or(s) && (F = s.ref, sr(s, E));
460
+ for (S in s)
461
+ Ee.call(s, S) && !ir.hasOwnProperty(S) && (b[S] = s[S]);
462
+ if (r && r.defaultProps) {
463
+ var P = r.defaultProps;
464
+ for (S in P)
465
+ b[S] === void 0 && (b[S] = P[S]);
466
+ }
467
+ if (g || F) {
468
+ var _ = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
469
+ g && lr(b, _), F && cr(b, _);
470
+ }
471
+ return ur(r, g, F, E, v, ht.current, b);
472
+ }
473
+ }
474
+ var Ue = q.ReactCurrentOwner, yt = q.ReactDebugCurrentFrame;
475
+ function ce(r) {
476
+ if (r) {
477
+ var s = r._owner, c = ie(r.type, r._source, s ? s.type : null);
478
+ yt.setExtraStackFrame(c);
479
+ } else
480
+ yt.setExtraStackFrame(null);
481
+ }
482
+ var qe;
483
+ qe = !1;
484
+ function He(r) {
485
+ return typeof r == "object" && r !== null && r.$$typeof === e;
486
+ }
487
+ function gt() {
488
+ {
489
+ if (Ue.current) {
490
+ var r = H(Ue.current.type);
491
+ if (r)
492
+ return `
493
+
494
+ Check the render method of \`` + r + "`.";
495
+ }
496
+ return "";
497
+ }
498
+ }
499
+ function fr(r) {
500
+ return "";
501
+ }
502
+ var bt = {};
503
+ function mr(r) {
504
+ {
505
+ var s = gt();
506
+ if (!s) {
507
+ var c = typeof r == "string" ? r : r.displayName || r.name;
508
+ c && (s = `
509
+
510
+ Check the top-level render call using <` + c + ">.");
511
+ }
512
+ return s;
513
+ }
514
+ }
515
+ function Et(r, s) {
516
+ {
517
+ if (!r._store || r._store.validated || r.key != null)
518
+ return;
519
+ r._store.validated = !0;
520
+ var c = mr(s);
521
+ if (bt[c])
522
+ return;
523
+ bt[c] = !0;
524
+ var v = "";
525
+ r && r._owner && r._owner !== Ue.current && (v = " It was passed a child from " + H(r._owner.type) + "."), ce(r), A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', c, v), ce(null);
526
+ }
527
+ }
528
+ function xt(r, s) {
529
+ {
530
+ if (typeof r != "object")
531
+ return;
532
+ if (We(r))
533
+ for (var c = 0; c < r.length; c++) {
534
+ var v = r[c];
535
+ He(v) && Et(v, s);
536
+ }
537
+ else if (He(r))
538
+ r._store && (r._store.validated = !0);
539
+ else if (r) {
540
+ var E = me(r);
541
+ if (typeof E == "function" && E !== r.entries)
542
+ for (var S = E.call(r), b; !(b = S.next()).done; )
543
+ He(b.value) && Et(b.value, s);
544
+ }
545
+ }
546
+ }
547
+ function hr(r) {
548
+ {
549
+ var s = r.type;
550
+ if (s == null || typeof s == "string")
551
+ return;
552
+ var c;
553
+ if (typeof s == "function")
554
+ c = s.propTypes;
555
+ else if (typeof s == "object" && (s.$$typeof === h || // Note: Memo only checks outer props here.
556
+ // Inner props are checked in the reconciler.
557
+ s.$$typeof === R))
558
+ c = s.propTypes;
559
+ else
560
+ return;
561
+ if (c) {
562
+ var v = H(s);
563
+ er(c, r.props, "prop", v, r);
564
+ } else if (s.PropTypes !== void 0 && !qe) {
565
+ qe = !0;
566
+ var E = H(s);
567
+ A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
568
+ }
569
+ typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
570
+ }
571
+ }
572
+ function vr(r) {
573
+ {
574
+ for (var s = Object.keys(r.props), c = 0; c < s.length; c++) {
575
+ var v = s[c];
576
+ if (v !== "children" && v !== "key") {
577
+ ce(r), A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), ce(null);
578
+ break;
579
+ }
580
+ }
581
+ r.ref !== null && (ce(r), A("Invalid attribute `ref` supplied to `React.Fragment`."), ce(null));
582
+ }
583
+ }
584
+ var Tt = {};
585
+ function Ct(r, s, c, v, E, S) {
586
+ {
587
+ var b = ze(r);
588
+ if (!b) {
589
+ var g = "";
590
+ (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
591
+ var F = fr();
592
+ F ? g += F : g += gt();
593
+ var P;
594
+ r === null ? P = "null" : We(r) ? P = "array" : r !== void 0 && r.$$typeof === e ? (P = "<" + (H(r.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : P = typeof r, A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", P, g);
595
+ }
596
+ var _ = dr(r, s, c, E, S);
597
+ if (_ == null)
598
+ return _;
599
+ if (b) {
600
+ var L = s.children;
601
+ if (L !== void 0)
602
+ if (v)
603
+ if (We(L)) {
604
+ for (var ue = 0; ue < L.length; ue++)
605
+ xt(L[ue], r);
606
+ Object.freeze && Object.freeze(L);
607
+ } else
608
+ A("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
609
+ else
610
+ xt(L, r);
611
+ }
612
+ if (Ee.call(s, "key")) {
613
+ var oe = H(r), N = Object.keys(s).filter(function(xr) {
614
+ return xr !== "key";
615
+ }), Ge = N.length > 0 ? "{key: someKey, " + N.join(": ..., ") + ": ...}" : "{key: someKey}";
616
+ if (!Tt[oe + Ge]) {
617
+ var Er = N.length > 0 ? "{" + N.join(": ..., ") + ": ...}" : "{}";
618
+ A(`A props object containing a "key" prop is being spread into JSX:
619
+ let props = %s;
620
+ <%s {...props} />
621
+ React keys must be passed directly to JSX without using spread:
622
+ let props = %s;
623
+ <%s key={someKey} {...props} />`, Ge, oe, Er, oe), Tt[oe + Ge] = !0;
624
+ }
625
+ }
626
+ return r === i ? vr(_) : hr(_), _;
627
+ }
628
+ }
629
+ function pr(r, s, c) {
630
+ return Ct(r, s, c, !0);
631
+ }
632
+ function yr(r, s, c) {
633
+ return Ct(r, s, c, !1);
634
+ }
635
+ var gr = yr, br = pr;
636
+ Te.Fragment = i, Te.jsx = gr, Te.jsxs = br;
637
+ }()), Te;
638
+ }
639
+ process.env.NODE_ENV === "production" ? tt.exports = pn() : tt.exports = yn();
640
+ var Se = tt.exports, rt = { exports: {} }, x = {};
641
+ /** @license React v16.13.1
642
+ * react-is.production.min.js
643
+ *
644
+ * Copyright (c) Facebook, Inc. and its affiliates.
645
+ *
646
+ * This source code is licensed under the MIT license found in the
647
+ * LICENSE file in the root directory of this source tree.
648
+ */
649
+ var _t;
650
+ function gn() {
651
+ if (_t) return x;
652
+ _t = 1;
653
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, l = t ? Symbol.for("react.profiler") : 60114, f = t ? Symbol.for("react.provider") : 60109, m = t ? Symbol.for("react.context") : 60110, h = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, C = t ? Symbol.for("react.forward_ref") : 60112, R = t ? Symbol.for("react.suspense") : 60113, B = t ? Symbol.for("react.suspense_list") : 60120, j = t ? Symbol.for("react.memo") : 60115, z = t ? Symbol.for("react.lazy") : 60116, fe = t ? Symbol.for("react.block") : 60121, me = t ? Symbol.for("react.fundamental") : 60117, q = t ? Symbol.for("react.responder") : 60118, A = t ? Symbol.for("react.scope") : 60119;
654
+ function M(u) {
655
+ if (typeof u == "object" && u !== null) {
656
+ var re = u.$$typeof;
657
+ switch (re) {
658
+ case e:
659
+ switch (u = u.type, u) {
660
+ case h:
661
+ case p:
662
+ case i:
663
+ case l:
664
+ case a:
665
+ case R:
666
+ return u;
667
+ default:
668
+ switch (u = u && u.$$typeof, u) {
669
+ case m:
670
+ case C:
671
+ case z:
672
+ case j:
673
+ case f:
674
+ return u;
675
+ default:
676
+ return re;
677
+ }
678
+ }
679
+ case n:
680
+ return re;
681
+ }
682
+ }
683
+ }
684
+ function k(u) {
685
+ return M(u) === p;
686
+ }
687
+ return x.AsyncMode = h, x.ConcurrentMode = p, x.ContextConsumer = m, x.ContextProvider = f, x.Element = e, x.ForwardRef = C, x.Fragment = i, x.Lazy = z, x.Memo = j, x.Portal = n, x.Profiler = l, x.StrictMode = a, x.Suspense = R, x.isAsyncMode = function(u) {
688
+ return k(u) || M(u) === h;
689
+ }, x.isConcurrentMode = k, x.isContextConsumer = function(u) {
690
+ return M(u) === m;
691
+ }, x.isContextProvider = function(u) {
692
+ return M(u) === f;
693
+ }, x.isElement = function(u) {
694
+ return typeof u == "object" && u !== null && u.$$typeof === e;
695
+ }, x.isForwardRef = function(u) {
696
+ return M(u) === C;
697
+ }, x.isFragment = function(u) {
698
+ return M(u) === i;
699
+ }, x.isLazy = function(u) {
700
+ return M(u) === z;
701
+ }, x.isMemo = function(u) {
702
+ return M(u) === j;
703
+ }, x.isPortal = function(u) {
704
+ return M(u) === n;
705
+ }, x.isProfiler = function(u) {
706
+ return M(u) === l;
707
+ }, x.isStrictMode = function(u) {
708
+ return M(u) === a;
709
+ }, x.isSuspense = function(u) {
710
+ return M(u) === R;
711
+ }, x.isValidElementType = function(u) {
712
+ return typeof u == "string" || typeof u == "function" || u === i || u === p || u === l || u === a || u === R || u === B || typeof u == "object" && u !== null && (u.$$typeof === z || u.$$typeof === j || u.$$typeof === f || u.$$typeof === m || u.$$typeof === C || u.$$typeof === me || u.$$typeof === q || u.$$typeof === A || u.$$typeof === fe);
713
+ }, x.typeOf = M, x;
714
+ }
715
+ var T = {};
716
+ /** @license React v16.13.1
717
+ * react-is.development.js
718
+ *
719
+ * Copyright (c) Facebook, Inc. and its affiliates.
720
+ *
721
+ * This source code is licensed under the MIT license found in the
722
+ * LICENSE file in the root directory of this source tree.
723
+ */
724
+ var Ot;
725
+ function bn() {
726
+ return Ot || (Ot = 1, process.env.NODE_ENV !== "production" && function() {
727
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, l = t ? Symbol.for("react.profiler") : 60114, f = t ? Symbol.for("react.provider") : 60109, m = t ? Symbol.for("react.context") : 60110, h = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, C = t ? Symbol.for("react.forward_ref") : 60112, R = t ? Symbol.for("react.suspense") : 60113, B = t ? Symbol.for("react.suspense_list") : 60120, j = t ? Symbol.for("react.memo") : 60115, z = t ? Symbol.for("react.lazy") : 60116, fe = t ? Symbol.for("react.block") : 60121, me = t ? Symbol.for("react.fundamental") : 60117, q = t ? Symbol.for("react.responder") : 60118, A = t ? Symbol.for("react.scope") : 60119;
728
+ function M(d) {
729
+ return typeof d == "string" || typeof d == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
730
+ d === i || d === p || d === l || d === a || d === R || d === B || typeof d == "object" && d !== null && (d.$$typeof === z || d.$$typeof === j || d.$$typeof === f || d.$$typeof === m || d.$$typeof === C || d.$$typeof === me || d.$$typeof === q || d.$$typeof === A || d.$$typeof === fe);
731
+ }
732
+ function k(d) {
733
+ if (typeof d == "object" && d !== null) {
734
+ var be = d.$$typeof;
735
+ switch (be) {
736
+ case e:
737
+ var le = d.type;
738
+ switch (le) {
739
+ case h:
740
+ case p:
741
+ case i:
742
+ case l:
743
+ case a:
744
+ case R:
745
+ return le;
746
+ default:
747
+ var ie = le && le.$$typeof;
748
+ switch (ie) {
749
+ case m:
750
+ case C:
751
+ case z:
752
+ case j:
753
+ case f:
754
+ return ie;
755
+ default:
756
+ return be;
757
+ }
758
+ }
759
+ case n:
760
+ return be;
761
+ }
762
+ }
763
+ }
764
+ var u = h, re = p, Ne = m, De = f, Pe = e, ze = C, Le = i, we = z, H = j, X = n, ne = l, _e = a, Oe = R, he = !1;
765
+ function Ae(d) {
766
+ return he || (he = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ve(d) || k(d) === h;
767
+ }
768
+ function ve(d) {
769
+ return k(d) === p;
770
+ }
771
+ function ke(d) {
772
+ return k(d) === m;
773
+ }
774
+ function Me(d) {
775
+ return k(d) === f;
776
+ }
777
+ function Fe(d) {
778
+ return typeof d == "object" && d !== null && d.$$typeof === e;
779
+ }
780
+ function Ve(d) {
781
+ return k(d) === C;
782
+ }
783
+ function Ye(d) {
784
+ return k(d) === i;
785
+ }
786
+ function pe(d) {
787
+ return k(d) === z;
788
+ }
789
+ function ye(d) {
790
+ return k(d) === j;
791
+ }
792
+ function ae(d) {
793
+ return k(d) === n;
794
+ }
795
+ function ge(d) {
796
+ return k(d) === l;
797
+ }
798
+ function se(d) {
799
+ return k(d) === a;
800
+ }
801
+ function Be(d) {
802
+ return k(d) === R;
803
+ }
804
+ T.AsyncMode = u, T.ConcurrentMode = re, T.ContextConsumer = Ne, T.ContextProvider = De, T.Element = Pe, T.ForwardRef = ze, T.Fragment = Le, T.Lazy = we, T.Memo = H, T.Portal = X, T.Profiler = ne, T.StrictMode = _e, T.Suspense = Oe, T.isAsyncMode = Ae, T.isConcurrentMode = ve, T.isContextConsumer = ke, T.isContextProvider = Me, T.isElement = Fe, T.isForwardRef = Ve, T.isFragment = Ye, T.isLazy = pe, T.isMemo = ye, T.isPortal = ae, T.isProfiler = ge, T.isStrictMode = se, T.isSuspense = Be, T.isValidElementType = M, T.typeOf = k;
805
+ }()), T;
806
+ }
807
+ process.env.NODE_ENV === "production" ? rt.exports = gn() : rt.exports = bn();
808
+ var En = rt.exports, Bt = En, xn = {
809
+ $$typeof: !0,
810
+ render: !0,
811
+ defaultProps: !0,
812
+ displayName: !0,
813
+ propTypes: !0
814
+ }, Tn = {
815
+ $$typeof: !0,
816
+ compare: !0,
817
+ defaultProps: !0,
818
+ displayName: !0,
819
+ propTypes: !0,
820
+ type: !0
821
+ }, Wt = {};
822
+ Wt[Bt.ForwardRef] = xn;
823
+ Wt[Bt.Memo] = Tn;
824
+ var Cn = !0;
825
+ function Sn(t, e, n) {
826
+ var i = "";
827
+ return n.split(" ").forEach(function(a) {
828
+ t[a] !== void 0 ? e.push(t[a] + ";") : a && (i += a + " ");
829
+ }), i;
830
+ }
831
+ var Ut = function(e, n, i) {
832
+ var a = e.key + "-" + n.name;
833
+ // we only need to add the styles to the registered cache if the
834
+ // class name could be used further down
835
+ // the tree but if it's a string tag, we know it won't
836
+ // so we don't have to add it to registered cache.
837
+ // this improves memory usage since we can avoid storing the whole style string
838
+ (i === !1 || // we need to always store it if we're in compat mode and
839
+ // in node since emotion-server relies on whether a style is in
840
+ // the registered cache to know whether a style is global or not
841
+ // also, note that this check will be dead code eliminated in the browser
842
+ Cn === !1) && e.registered[a] === void 0 && (e.registered[a] = n.styles);
843
+ }, In = function(e, n, i) {
844
+ Ut(e, n, i);
845
+ var a = e.key + "-" + n.name;
846
+ if (e.inserted[n.name] === void 0) {
847
+ var l = n;
848
+ do
849
+ e.insert(n === l ? "." + a : "", l, e.sheet, !0), l = l.next;
850
+ while (l !== void 0);
851
+ }
852
+ };
853
+ function Rn(t) {
854
+ for (var e = 0, n, i = 0, a = t.length; a >= 4; ++i, a -= 4)
855
+ n = t.charCodeAt(i) & 255 | (t.charCodeAt(++i) & 255) << 8 | (t.charCodeAt(++i) & 255) << 16 | (t.charCodeAt(++i) & 255) << 24, n = /* Math.imul(k, m): */
856
+ (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
857
+ n >>> 24, e = /* Math.imul(k, m): */
858
+ (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
859
+ (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
860
+ switch (a) {
861
+ case 3:
862
+ e ^= (t.charCodeAt(i + 2) & 255) << 16;
863
+ case 2:
864
+ e ^= (t.charCodeAt(i + 1) & 255) << 8;
865
+ case 1:
866
+ e ^= t.charCodeAt(i) & 255, e = /* Math.imul(h, m): */
867
+ (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
868
+ }
869
+ return e ^= e >>> 13, e = /* Math.imul(h, m): */
870
+ (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
871
+ }
872
+ var Pn = {
873
+ animationIterationCount: 1,
874
+ aspectRatio: 1,
875
+ borderImageOutset: 1,
876
+ borderImageSlice: 1,
877
+ borderImageWidth: 1,
878
+ boxFlex: 1,
879
+ boxFlexGroup: 1,
880
+ boxOrdinalGroup: 1,
881
+ columnCount: 1,
882
+ columns: 1,
883
+ flex: 1,
884
+ flexGrow: 1,
885
+ flexPositive: 1,
886
+ flexShrink: 1,
887
+ flexNegative: 1,
888
+ flexOrder: 1,
889
+ gridRow: 1,
890
+ gridRowEnd: 1,
891
+ gridRowSpan: 1,
892
+ gridRowStart: 1,
893
+ gridColumn: 1,
894
+ gridColumnEnd: 1,
895
+ gridColumnSpan: 1,
896
+ gridColumnStart: 1,
897
+ msGridRow: 1,
898
+ msGridRowSpan: 1,
899
+ msGridColumn: 1,
900
+ msGridColumnSpan: 1,
901
+ fontWeight: 1,
902
+ lineHeight: 1,
903
+ opacity: 1,
904
+ order: 1,
905
+ orphans: 1,
906
+ scale: 1,
907
+ tabSize: 1,
908
+ widows: 1,
909
+ zIndex: 1,
910
+ zoom: 1,
911
+ WebkitLineClamp: 1,
912
+ // SVG-related properties
913
+ fillOpacity: 1,
914
+ floodOpacity: 1,
915
+ stopOpacity: 1,
916
+ strokeDasharray: 1,
917
+ strokeDashoffset: 1,
918
+ strokeMiterlimit: 1,
919
+ strokeOpacity: 1,
920
+ strokeWidth: 1
921
+ };
922
+ function wn(t) {
923
+ var e = /* @__PURE__ */ Object.create(null);
924
+ return function(n) {
925
+ return e[n] === void 0 && (e[n] = t(n)), e[n];
926
+ };
927
+ }
928
+ var _n = /[A-Z]|^ms/g, On = /_EMO_([^_]+?)_([^]*?)_EMO_/g, qt = function(e) {
929
+ return e.charCodeAt(1) === 45;
930
+ }, At = function(e) {
931
+ return e != null && typeof e != "boolean";
932
+ }, Ke = /* @__PURE__ */ wn(function(t) {
933
+ return qt(t) ? t : t.replace(_n, "-$&").toLowerCase();
934
+ }), kt = function(e, n) {
935
+ switch (e) {
936
+ case "animation":
937
+ case "animationName":
938
+ if (typeof n == "string")
939
+ return n.replace(On, function(i, a, l) {
940
+ return J = {
941
+ name: a,
942
+ styles: l,
943
+ next: J
944
+ }, a;
945
+ });
946
+ }
947
+ return Pn[e] !== 1 && !qt(e) && typeof n == "number" && n !== 0 ? n + "px" : n;
948
+ };
949
+ function Ie(t, e, n) {
950
+ if (n == null)
951
+ return "";
952
+ var i = n;
953
+ if (i.__emotion_styles !== void 0)
954
+ return i;
955
+ switch (typeof n) {
956
+ case "boolean":
957
+ return "";
958
+ case "object": {
959
+ var a = n;
960
+ if (a.anim === 1)
961
+ return J = {
962
+ name: a.name,
963
+ styles: a.styles,
964
+ next: J
965
+ }, a.name;
966
+ var l = n;
967
+ if (l.styles !== void 0) {
968
+ var f = l.next;
969
+ if (f !== void 0)
970
+ for (; f !== void 0; )
971
+ J = {
972
+ name: f.name,
973
+ styles: f.styles,
974
+ next: J
975
+ }, f = f.next;
976
+ var m = l.styles + ";";
977
+ return m;
978
+ }
979
+ return An(t, e, n);
980
+ }
981
+ case "function": {
982
+ if (t !== void 0) {
983
+ var h = J, p = n(t);
984
+ return J = h, Ie(t, e, p);
985
+ }
986
+ break;
987
+ }
988
+ }
989
+ var C = n;
990
+ return C;
991
+ }
992
+ function An(t, e, n) {
993
+ var i = "";
994
+ if (Array.isArray(n))
995
+ for (var a = 0; a < n.length; a++)
996
+ i += Ie(t, e, n[a]) + ";";
997
+ else
998
+ for (var l in n) {
999
+ var f = n[l];
1000
+ if (typeof f != "object") {
1001
+ var m = f;
1002
+ At(m) && (i += Ke(l) + ":" + kt(l, m) + ";");
1003
+ } else if (Array.isArray(f) && typeof f[0] == "string" && e == null)
1004
+ for (var h = 0; h < f.length; h++)
1005
+ At(f[h]) && (i += Ke(l) + ":" + kt(l, f[h]) + ";");
1006
+ else {
1007
+ var p = Ie(t, e, f);
1008
+ switch (l) {
1009
+ case "animation":
1010
+ case "animationName": {
1011
+ i += Ke(l) + ":" + p + ";";
1012
+ break;
1013
+ }
1014
+ default:
1015
+ i += l + "{" + p + "}";
1016
+ }
1017
+ }
1018
+ }
1019
+ return i;
1020
+ }
1021
+ var Mt = /label:\s*([^\s;{]+)\s*(;|$)/g, J;
1022
+ function kn(t, e, n) {
1023
+ if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
1024
+ return t[0];
1025
+ var i = !0, a = "";
1026
+ J = void 0;
1027
+ var l = t[0];
1028
+ if (l == null || l.raw === void 0)
1029
+ i = !1, a += Ie(n, e, l);
1030
+ else {
1031
+ var f = l;
1032
+ a += f[0];
1033
+ }
1034
+ for (var m = 1; m < t.length; m++)
1035
+ if (a += Ie(n, e, t[m]), i) {
1036
+ var h = l;
1037
+ a += h[m];
1038
+ }
1039
+ Mt.lastIndex = 0;
1040
+ for (var p = "", C; (C = Mt.exec(a)) !== null; )
1041
+ p += "-" + C[1];
1042
+ var R = Rn(a) + p;
1043
+ return {
1044
+ name: R,
1045
+ styles: a,
1046
+ next: J
1047
+ };
1048
+ }
1049
+ var Mn = function(e) {
1050
+ return e();
1051
+ }, Fn = Z.useInsertionEffect ? Z.useInsertionEffect : !1, $n = Fn || Mn, Ht = /* @__PURE__ */ Z.createContext(
1052
+ // we're doing this to avoid preconstruct's dead code elimination in this one case
1053
+ // because this module is primarily intended for the browser and node
1054
+ // but it's also required in react native and similar environments sometimes
1055
+ // and we could have a special build just for that
1056
+ // but this is much easier and the native packages
1057
+ // might use a different theme context in the future anyway
1058
+ typeof HTMLElement < "u" ? /* @__PURE__ */ Pr({
1059
+ key: "css"
1060
+ }) : null
1061
+ );
1062
+ Ht.Provider;
1063
+ var jn = function(e) {
1064
+ return /* @__PURE__ */ Sr(function(n, i) {
1065
+ var a = at(Ht);
1066
+ return e(n, a, i);
1067
+ });
1068
+ }, Nn = /* @__PURE__ */ Z.createContext({}), je = {}.hasOwnProperty, nt = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Gt = function(e, n) {
1069
+ var i = {};
1070
+ for (var a in n)
1071
+ je.call(n, a) && (i[a] = n[a]);
1072
+ return i[nt] = e, i;
1073
+ }, Dn = function(e) {
1074
+ var n = e.cache, i = e.serialized, a = e.isStringTag;
1075
+ return Ut(n, i, a), $n(function() {
1076
+ return In(n, i, a);
1077
+ }), null;
1078
+ }, zn = /* @__PURE__ */ jn(function(t, e, n) {
1079
+ var i = t.css;
1080
+ typeof i == "string" && e.registered[i] !== void 0 && (i = e.registered[i]);
1081
+ var a = t[nt], l = [i], f = "";
1082
+ typeof t.className == "string" ? f = Sn(e.registered, l, t.className) : t.className != null && (f = t.className + " ");
1083
+ var m = kn(l, void 0, Z.useContext(Nn));
1084
+ f += e.key + "-" + m.name;
1085
+ var h = {};
1086
+ for (var p in t)
1087
+ je.call(t, p) && p !== "css" && p !== nt && (h[p] = t[p]);
1088
+ return h.className = f, n && (h.ref = n), /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement(Dn, {
1089
+ cache: e,
1090
+ serialized: m,
1091
+ isStringTag: typeof a == "string"
1092
+ }), /* @__PURE__ */ Z.createElement(a, h));
1093
+ }), Jt = zn, Re = Se.Fragment, o = function(e, n, i) {
1094
+ return je.call(n, "css") ? Se.jsx(Jt, Gt(e, n), i) : Se.jsx(e, n, i);
1095
+ }, O = function(e, n, i) {
1096
+ return je.call(n, "css") ? Se.jsxs(Jt, Gt(e, n), i) : Se.jsxs(e, n, i);
1097
+ }, I = /* @__PURE__ */ ((t) => (t.Off = "Off", t.All = "All", t.One = "One", t))(I || {});
1098
+ const Kt = 80, Ln = D(({ playerStore: t }) => {
1099
+ const e = te(), n = $(
1100
+ (l) => {
1101
+ const f = Number(l.currentTarget.value) / 100;
1102
+ t.setPercent(f);
19
1103
  },
20
- [n]
21
- ), s = u(
22
- (a) => {
23
- a.button === 0 && n.setSeeking(!0);
1104
+ [t]
1105
+ ), i = $(
1106
+ (l) => {
1107
+ l.button === 0 && t.setSeeking(!0);
24
1108
  },
25
- [n]
26
- ), l = u(
27
- async (a) => {
28
- if (a.button === 0) {
29
- const m = Number(a.currentTarget.value) / 100;
30
- n.setSeeking(!1);
31
- const d = await e.getDuration();
32
- d !== void 0 && await e.setCurrentTime(d * m);
1109
+ [t]
1110
+ ), a = $(
1111
+ async (l) => {
1112
+ if (l.button === 0) {
1113
+ const f = Number(l.currentTarget.value) / 100;
1114
+ t.setSeeking(!1);
1115
+ const m = await e.getDuration();
1116
+ m !== void 0 && await e.setCurrentTime(m * f);
33
1117
  }
34
1118
  },
35
- [n, e]
1119
+ [t, e]
36
1120
  );
37
- return /* @__PURE__ */ t.createElement(
38
- j,
1121
+ return /* @__PURE__ */ o(
1122
+ Nt,
39
1123
  {
40
1124
  min: 0,
41
1125
  max: 100,
42
1126
  step: 1e-7,
43
- value: n.percent * 100,
44
- onChange: i,
45
- onMouseDown: s,
46
- onMouseUp: l,
1127
+ value: t.percent * 100,
1128
+ onChange: n,
1129
+ onMouseDown: i,
1130
+ onMouseUp: a,
47
1131
  fullWidth: !0,
48
1132
  showRange: !0,
49
1133
  css: { blockSize: 32 }
50
1134
  }
51
1135
  );
52
- }), Je = y(
53
- ({ button: n, isOpen: e, closePopover: i }) => {
54
- const [s, l] = g("0"), a = C();
55
- Le(() => {
56
- e && a.getVolume().then((d) => {
57
- d !== void 0 && l(Math.floor(d * 100).toString());
1136
+ }), Vn = K(
1137
+ ({ button: t, isOpen: e, closePopover: n }) => {
1138
+ const [i, a] = Y("0"), l = te();
1139
+ Ir(() => {
1140
+ e && l.getVolume().then((m) => {
1141
+ m !== void 0 && a(Math.floor(m * 100).toString());
58
1142
  });
59
- }, [e, a]);
60
- const m = u(
61
- async (d) => {
62
- l(d.currentTarget.value), await a.setVolume(Number(d.currentTarget.value) / 100);
1143
+ }, [e, l]);
1144
+ const f = $(
1145
+ async (m) => {
1146
+ a(m.currentTarget.value), await l.setVolume(Number(m.currentTarget.value) / 100);
63
1147
  },
64
- [a]
1148
+ [l]
65
1149
  );
66
- return /* @__PURE__ */ t.createElement(
67
- F,
1150
+ return /* @__PURE__ */ o(
1151
+ st,
68
1152
  {
69
- button: n,
1153
+ button: t,
70
1154
  isOpen: e,
71
- closePopover: i,
72
- anchorPosition: "upRight"
73
- },
74
- /* @__PURE__ */ t.createElement(O, null, /* @__PURE__ */ t.createElement(
75
- k,
76
- {
77
- responsive: !1,
78
- gutterSize: "s",
79
- justifyContent: "center",
80
- alignItems: "center"
81
- },
82
- /* @__PURE__ */ t.createElement(
83
- I,
84
- {
85
- title: "Mute",
86
- "aria-label": "Mute",
87
- iconType: q,
88
- size: "s",
89
- iconSize: "l"
90
- }
91
- ),
92
- /* @__PURE__ */ t.createElement(
93
- j,
1155
+ closePopover: n,
1156
+ anchorPosition: "upRight",
1157
+ children: /* @__PURE__ */ o(Ze, { children: /* @__PURE__ */ O(
1158
+ de,
94
1159
  {
95
- min: 0,
96
- max: 100,
97
- step: 1,
98
- value: s,
99
- onChange: m,
100
- css: { blockSize: 32 }
1160
+ responsive: !1,
1161
+ gutterSize: "s",
1162
+ justifyContent: "center",
1163
+ alignItems: "center",
1164
+ children: [
1165
+ /* @__PURE__ */ o(
1166
+ G,
1167
+ {
1168
+ title: "Mute",
1169
+ "aria-label": "Mute",
1170
+ iconType: Vt,
1171
+ size: "s",
1172
+ iconSize: "l"
1173
+ }
1174
+ ),
1175
+ /* @__PURE__ */ o(
1176
+ Nt,
1177
+ {
1178
+ min: 0,
1179
+ max: 100,
1180
+ step: 1,
1181
+ value: i,
1182
+ onChange: f,
1183
+ css: { blockSize: 32 }
1184
+ }
1185
+ )
1186
+ ]
101
1187
  }
102
- )
103
- ))
1188
+ ) })
1189
+ }
104
1190
  );
105
1191
  }
106
- ), Ge = y(
1192
+ ), Yn = K(
107
1193
  ({
108
- playQueueStore: n,
1194
+ playQueueStore: t,
109
1195
  closePopover: e
110
1196
  }) => {
111
- const i = C(), s = u(async () => {
112
- const f = await i.getCurrentTime();
113
- f !== void 0 && await i.setCurrentTime(f - 10), e();
114
- }, [i, e]), l = u(async () => {
115
- const f = await i.getCurrentTime();
116
- f !== void 0 && await i.setCurrentTime(f + 30), e();
117
- }, [i, e]), a = u(
118
- async (f) => {
119
- await i.setPlaybackRate(f), e();
1197
+ const n = te(), i = $(async () => {
1198
+ const p = await n.getCurrentTime();
1199
+ p !== void 0 && await n.setCurrentTime(p - 10), e();
1200
+ }, [n, e]), a = $(async () => {
1201
+ const p = await n.getCurrentTime();
1202
+ p !== void 0 && await n.setCurrentTime(p + 30), e();
1203
+ }, [n, e]), l = $(
1204
+ async (p) => {
1205
+ await n.setPlaybackRate(p), e();
120
1206
  },
121
- [i, e]
122
- ), m = u(async () => {
123
- n.currentItem !== void 0 && await n.removeItems([
124
- n.currentItem
1207
+ [n, e]
1208
+ ), f = $(async () => {
1209
+ t.currentItem !== void 0 && await t.removeItems([
1210
+ t.currentItem
125
1211
  ]), e();
126
- }, [n, e]), [d] = g(), T = G(
1212
+ }, [t, e]), [m] = Y(), h = $t(
127
1213
  () => [
128
1214
  {
129
1215
  id: 0,
130
1216
  items: [
131
1217
  {
132
1218
  name: "Speed",
133
- icon: /* @__PURE__ */ t.createElement(E, { type: Te, size: "m" }),
1219
+ icon: /* @__PURE__ */ o(W, { type: on, size: "m" }),
134
1220
  panel: 1
135
1221
  },
136
1222
  {
137
1223
  name: "Skip back 10 seconds",
138
- icon: /* @__PURE__ */ t.createElement(E, { type: xe, size: "m" }),
139
- onClick: s,
140
- disabled: n.isEmpty
1224
+ icon: /* @__PURE__ */ o(W, { type: an, size: "m" }),
1225
+ onClick: i,
1226
+ disabled: t.isEmpty
141
1227
  },
142
1228
  {
143
1229
  name: "Skip forward 30 seconds",
144
- icon: /* @__PURE__ */ t.createElement(E, { type: Ce, size: "m" }),
145
- onClick: l,
146
- disabled: n.isEmpty
1230
+ icon: /* @__PURE__ */ o(W, { type: sn, size: "m" }),
1231
+ onClick: a,
1232
+ disabled: t.isEmpty
147
1233
  },
148
1234
  {
149
1235
  isSeparator: !0
150
1236
  },
151
1237
  {
152
1238
  name: "Remove from play queue",
153
- icon: /* @__PURE__ */ t.createElement(E, { type: B, size: "m" }),
154
- onClick: m,
155
- disabled: n.isEmpty
1239
+ icon: /* @__PURE__ */ o(W, { type: lt, size: "m" }),
1240
+ onClick: f,
1241
+ disabled: t.isEmpty
156
1242
  }
157
1243
  ]
158
1244
  },
@@ -160,452 +1246,492 @@ const Y = 80, qe = h(({ playerStore: n }) => {
160
1246
  id: 1,
161
1247
  title: "Speed",
162
1248
  items: [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2].map(
163
- (f) => ({
164
- name: f.toString(),
165
- onClick: () => a(f),
166
- icon: f === d ? "check" : "empty"
1249
+ (p) => ({
1250
+ name: p.toString(),
1251
+ onClick: () => l(p),
1252
+ icon: p === m ? "check" : "empty"
167
1253
  })
168
1254
  )
169
1255
  }
170
1256
  ],
171
1257
  [
172
- n,
173
- s,
174
- l,
175
- m,
1258
+ t,
1259
+ i,
176
1260
  a,
177
- d
1261
+ f,
1262
+ l,
1263
+ m
178
1264
  ]
179
1265
  );
180
- return /* @__PURE__ */ t.createElement(ie, { initialPanelId: 0, panels: T });
1266
+ return /* @__PURE__ */ o(Ar, { initialPanelId: 0, panels: h });
181
1267
  }
182
- ), We = y(
1268
+ ), Bn = K(
183
1269
  ({
184
- playQueueStore: n,
1270
+ playQueueStore: t,
185
1271
  button: e,
186
- isOpen: i,
187
- closePopover: s
188
- }) => /* @__PURE__ */ t.createElement(
189
- F,
1272
+ isOpen: n,
1273
+ closePopover: i
1274
+ }) => /* @__PURE__ */ o(
1275
+ st,
190
1276
  {
191
1277
  button: e,
192
- isOpen: i,
193
- closePopover: s,
1278
+ isOpen: n,
1279
+ closePopover: i,
194
1280
  panelPaddingSize: "none",
195
- anchorPosition: "upRight"
196
- },
197
- /* @__PURE__ */ t.createElement(
198
- Ge,
199
- {
200
- playQueueStore: n,
201
- closePopover: s
202
- }
203
- )
1281
+ anchorPosition: "upRight",
1282
+ children: /* @__PURE__ */ o(
1283
+ Yn,
1284
+ {
1285
+ playQueueStore: t,
1286
+ closePopover: i
1287
+ }
1288
+ )
1289
+ }
204
1290
  )
205
- ), Xe = {
206
- [o.Off]: Pe,
207
- [o.All]: we,
208
- [o.One]: ke
209
- }, Ye = h(
1291
+ ), Wn = {
1292
+ [I.Off]: Xr,
1293
+ [I.All]: Kr,
1294
+ [I.One]: Jr
1295
+ }, Un = D(
210
1296
  ({
211
- playerStore: n,
1297
+ playerStore: t,
212
1298
  playQueueStore: e
213
1299
  }) => {
214
- const i = C(), s = u(async () => {
1300
+ const n = te(), i = $(async () => {
215
1301
  if (e.hasPreviousItem) {
216
- const l = await i.getCurrentTime();
217
- l === void 0 || l < 5 ? await e.previous() : await i.setCurrentTime(0);
1302
+ const a = await n.getCurrentTime();
1303
+ a === void 0 || a < 5 ? await e.previous() : await n.setCurrentTime(0);
218
1304
  } else
219
- await i.setCurrentTime(0);
220
- }, [e, i]);
221
- return /* @__PURE__ */ t.createElement(
222
- k,
1305
+ await n.setCurrentTime(0);
1306
+ }, [e, n]);
1307
+ return /* @__PURE__ */ O(
1308
+ de,
223
1309
  {
224
1310
  responsive: !1,
225
1311
  gutterSize: "s",
226
1312
  justifyContent: "center",
227
- alignItems: "center"
228
- },
229
- /* @__PURE__ */ t.createElement(
230
- I,
231
- {
232
- title: `Shuffle: ${e.shuffle ? "On" : "Off"}`,
233
- "aria-label": `Shuffle: ${e.shuffle ? "On" : "Off"}`,
234
- iconType: e.shuffle ? Se : Oe,
235
- size: "s",
236
- iconSize: "l",
237
- onClick: e.toggleShuffle,
238
- disabled: !0
239
- }
240
- ),
241
- /* @__PURE__ */ t.createElement(
242
- I,
243
- {
244
- title: "Previous",
245
- "aria-label": "Previous",
246
- iconType: Ae,
247
- size: "s",
248
- iconSize: "l",
249
- onClick: s,
250
- disabled: e.isEmpty
251
- }
252
- ),
253
- n.playing ? /* @__PURE__ */ t.createElement(
254
- I,
255
- {
256
- title: "Pause",
257
- "aria-label": "Pause",
258
- iconType: ze,
259
- size: "s",
260
- iconSize: "l",
261
- onClick: () => i.pause(),
262
- disabled: !e.canPlay
263
- }
264
- ) : /* @__PURE__ */ t.createElement(
265
- I,
266
- {
267
- title: "Play",
268
- "aria-label": "Play",
269
- iconType: Me,
270
- size: "s",
271
- iconSize: "l",
272
- onClick: () => i.play(),
273
- disabled: !e.canPlay
274
- }
275
- ),
276
- /* @__PURE__ */ t.createElement(
277
- I,
278
- {
279
- title: "Next",
280
- "aria-label": "Next",
281
- iconType: Re,
282
- size: "s",
283
- iconSize: "l",
284
- onClick: e.next,
285
- disabled: !e.hasNextItem
286
- }
287
- ),
288
- /* @__PURE__ */ t.createElement(
289
- I,
290
- {
291
- title: `Repeat: ${e.repeat === o.All ? "All" : e.repeat === o.One ? "One" : "Off"}`,
292
- "aria-label": `Repeat: ${e.repeat === o.All ? "All" : e.repeat === o.One ? "One" : "Off"}`,
293
- iconType: Xe[e.repeat],
294
- size: "s",
295
- iconSize: "l",
296
- onClick: e.toggleRepeat
297
- }
298
- )
1313
+ alignItems: "center",
1314
+ children: [
1315
+ /* @__PURE__ */ o(
1316
+ G,
1317
+ {
1318
+ title: `Shuffle: ${e.shuffle ? "On" : "Off"}`,
1319
+ "aria-label": `Shuffle: ${e.shuffle ? "On" : "Off"}`,
1320
+ iconType: e.shuffle ? Zr : Qr,
1321
+ size: "s",
1322
+ iconSize: "l",
1323
+ onClick: e.toggleShuffle,
1324
+ disabled: !0
1325
+ }
1326
+ ),
1327
+ /* @__PURE__ */ o(
1328
+ G,
1329
+ {
1330
+ title: "Previous",
1331
+ "aria-label": "Previous",
1332
+ iconType: en,
1333
+ size: "s",
1334
+ iconSize: "l",
1335
+ onClick: i,
1336
+ disabled: e.isEmpty
1337
+ }
1338
+ ),
1339
+ t.playing ? /* @__PURE__ */ o(
1340
+ G,
1341
+ {
1342
+ title: "Pause",
1343
+ "aria-label": "Pause",
1344
+ iconType: tn,
1345
+ size: "s",
1346
+ iconSize: "l",
1347
+ onClick: () => n.pause(),
1348
+ disabled: !e.canPlay
1349
+ }
1350
+ ) : /* @__PURE__ */ o(
1351
+ G,
1352
+ {
1353
+ title: "Play",
1354
+ "aria-label": "Play",
1355
+ iconType: rn,
1356
+ size: "s",
1357
+ iconSize: "l",
1358
+ onClick: () => n.play(),
1359
+ disabled: !e.canPlay
1360
+ }
1361
+ ),
1362
+ /* @__PURE__ */ o(
1363
+ G,
1364
+ {
1365
+ title: "Next",
1366
+ "aria-label": "Next",
1367
+ iconType: nn,
1368
+ size: "s",
1369
+ iconSize: "l",
1370
+ onClick: e.next,
1371
+ disabled: !e.hasNextItem
1372
+ }
1373
+ ),
1374
+ /* @__PURE__ */ o(
1375
+ G,
1376
+ {
1377
+ title: `Repeat: ${e.repeat === I.All ? "All" : e.repeat === I.One ? "One" : "Off"}`,
1378
+ "aria-label": `Repeat: ${e.repeat === I.All ? "All" : e.repeat === I.One ? "One" : "Off"}`,
1379
+ iconType: Wn[e.repeat],
1380
+ size: "s",
1381
+ iconSize: "l",
1382
+ onClick: e.toggleRepeat
1383
+ }
1384
+ )
1385
+ ]
1386
+ }
299
1387
  );
300
1388
  }
301
- ), Ke = y(() => {
302
- const [n, e] = g(!1), i = () => e(!n);
303
- return /* @__PURE__ */ t.createElement(
304
- Je,
1389
+ ), qn = K(() => {
1390
+ const [t, e] = Y(!1);
1391
+ return /* @__PURE__ */ o(
1392
+ Vn,
305
1393
  {
306
- button: /* @__PURE__ */ t.createElement(
307
- I,
1394
+ button: /* @__PURE__ */ o(
1395
+ G,
308
1396
  {
309
1397
  title: "Volume",
310
1398
  "aria-label": "Volume",
311
- iconType: q,
1399
+ iconType: Vt,
312
1400
  size: "s",
313
1401
  iconSize: "l",
314
- onClick: i
1402
+ onClick: () => e(!t)
315
1403
  }
316
1404
  ),
317
- isOpen: n,
1405
+ isOpen: t,
318
1406
  closePopover: () => e(!1)
319
1407
  }
320
1408
  );
321
- }), Ze = y(
322
- ({ playQueueStore: n }) => {
323
- const [e, i] = g(!1), s = () => i(!e);
324
- return /* @__PURE__ */ t.createElement(
325
- We,
1409
+ }), Hn = K(
1410
+ ({ playQueueStore: t }) => {
1411
+ const [e, n] = Y(!1);
1412
+ return /* @__PURE__ */ o(
1413
+ Bn,
326
1414
  {
327
- playQueueStore: n,
328
- button: /* @__PURE__ */ t.createElement(
329
- I,
1415
+ playQueueStore: t,
1416
+ button: /* @__PURE__ */ o(
1417
+ G,
330
1418
  {
331
1419
  title: "More options",
332
1420
  "aria-label": "More options",
333
- iconType: J,
1421
+ iconType: Yt,
334
1422
  size: "s",
335
1423
  iconSize: "l",
336
- onClick: s
1424
+ onClick: () => n(!e)
337
1425
  }
338
1426
  ),
339
1427
  isOpen: e,
340
- closePopover: () => i(!1)
1428
+ closePopover: () => n(!1)
341
1429
  }
342
1430
  );
343
1431
  }
344
- ), _e = y(
345
- ({ playQueueStore: n }) => /* @__PURE__ */ t.createElement(
346
- k,
1432
+ ), Gn = K(
1433
+ ({ playQueueStore: t }) => /* @__PURE__ */ O(
1434
+ de,
347
1435
  {
348
1436
  responsive: !1,
349
1437
  gutterSize: "s",
350
1438
  justifyContent: "flexEnd",
351
- alignItems: "center"
352
- },
353
- /* @__PURE__ */ t.createElement(Ke, null),
354
- /* @__PURE__ */ t.createElement(Ze, { playQueueStore: n })
355
- )
356
- ), St = h(
357
- ({ playerStore: n, playQueueStore: e }) => /* @__PURE__ */ t.createElement(se, { paddingSize: "s" }, /* @__PURE__ */ t.createElement(k, { direction: "column", gutterSize: "none" }, /* @__PURE__ */ t.createElement(v, null, /* @__PURE__ */ t.createElement(qe, { playerStore: n })), /* @__PURE__ */ t.createElement(v, null, /* @__PURE__ */ t.createElement(k, { responsive: !1 }, /* @__PURE__ */ t.createElement(v, { css: { width: "calc(100% / 3)" } }), /* @__PURE__ */ t.createElement(v, { css: { width: "calc(100% / 3)" } }, /* @__PURE__ */ t.createElement(
358
- Ye,
359
- {
360
- playerStore: n,
361
- playQueueStore: e
362
- }
363
- )), /* @__PURE__ */ t.createElement(v, { css: { width: "calc(100% / 3)" } }, /* @__PURE__ */ t.createElement(
364
- _e,
365
- {
366
- playQueueStore: e
1439
+ alignItems: "center",
1440
+ children: [
1441
+ /* @__PURE__ */ o(qn, {}),
1442
+ /* @__PURE__ */ o(Hn, { playQueueStore: t })
1443
+ ]
367
1444
  }
368
- ))))))
369
- ), Qe = ({
370
- onCancel: n,
1445
+ )
1446
+ ), Ii = D(
1447
+ ({ playerStore: t, playQueueStore: e }) => /* @__PURE__ */ o(Or, { paddingSize: "s", children: /* @__PURE__ */ O(de, { direction: "column", gutterSize: "none", children: [
1448
+ /* @__PURE__ */ o(U, { children: /* @__PURE__ */ o(Ln, { playerStore: t }) }),
1449
+ /* @__PURE__ */ o(U, { children: /* @__PURE__ */ O(de, { responsive: !1, children: [
1450
+ /* @__PURE__ */ o(U, { css: { width: "calc(100% / 3)" } }),
1451
+ /* @__PURE__ */ o(U, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
1452
+ Un,
1453
+ {
1454
+ playerStore: t,
1455
+ playQueueStore: e
1456
+ }
1457
+ ) }),
1458
+ /* @__PURE__ */ o(U, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
1459
+ Gn,
1460
+ {
1461
+ playQueueStore: e
1462
+ }
1463
+ ) })
1464
+ ] }) })
1465
+ ] }) })
1466
+ ), Jn = ({
1467
+ onCancel: t,
371
1468
  onSave: e
372
1469
  }) => {
373
- const [i, s] = g(""), [l, a] = g(""), [m, d] = g(!1);
374
- return /* @__PURE__ */ t.createElement(re, { onClose: n, initialFocus: "[name=url]" }, /* @__PURE__ */ t.createElement(le, null, /* @__PURE__ */ t.createElement(ae, null, "Add video")), /* @__PURE__ */ t.createElement(oe, null, /* @__PURE__ */ t.createElement(ce, { component: "form" }, /* @__PURE__ */ t.createElement(O, { label: "URL" }, /* @__PURE__ */ t.createElement(
375
- V,
376
- {
377
- name: "url",
378
- value: i,
379
- onChange: (T) => s(T.target.value)
380
- }
381
- )), /* @__PURE__ */ t.createElement(O, { label: "Title" }, /* @__PURE__ */ t.createElement(
382
- V,
383
- {
384
- name: "title",
385
- value: l,
386
- onChange: (T) => a(T.target.value)
387
- }
388
- )))), /* @__PURE__ */ t.createElement(me, null, /* @__PURE__ */ t.createElement(de, { onClick: n }, "Cancel"), /* @__PURE__ */ t.createElement(
389
- x,
390
- {
391
- type: "submit",
392
- onClick: async () => {
393
- try {
394
- d(!0), await e({ url: i, title: l });
395
- } finally {
396
- d(!1);
1470
+ const [n, i] = Y(""), [a, l] = Y(""), [f, m] = Y(!1);
1471
+ return /* @__PURE__ */ O(Dr, { onClose: t, initialFocus: "[name=url]", children: [
1472
+ /* @__PURE__ */ o(Mr, { children: /* @__PURE__ */ o(kr, { children: "Add video" }) }),
1473
+ /* @__PURE__ */ o($r, { children: /* @__PURE__ */ O(Fr, { component: "form", children: [
1474
+ /* @__PURE__ */ o(Ze, { label: "URL", children: /* @__PURE__ */ o(
1475
+ St,
1476
+ {
1477
+ name: "url",
1478
+ value: n,
1479
+ onChange: (h) => i(h.target.value)
397
1480
  }
398
- },
399
- fill: !0,
400
- disabled: i.trim().length === 0,
401
- isLoading: m
402
- },
403
- "Save"
404
- )));
1481
+ ) }),
1482
+ /* @__PURE__ */ o(Ze, { label: "Title", children: /* @__PURE__ */ o(
1483
+ St,
1484
+ {
1485
+ name: "title",
1486
+ value: a,
1487
+ onChange: (h) => l(h.target.value)
1488
+ }
1489
+ ) })
1490
+ ] }) }),
1491
+ /* @__PURE__ */ O(jr, { children: [
1492
+ /* @__PURE__ */ o(Nr, { onClick: t, children: "Cancel" }),
1493
+ /* @__PURE__ */ o(
1494
+ ee,
1495
+ {
1496
+ type: "submit",
1497
+ onClick: async () => {
1498
+ try {
1499
+ m(!0), await e({ url: n, title: a });
1500
+ } finally {
1501
+ m(!1);
1502
+ }
1503
+ },
1504
+ fill: !0,
1505
+ disabled: n.trim().length === 0,
1506
+ isLoading: f,
1507
+ children: "Save"
1508
+ }
1509
+ )
1510
+ ] })
1511
+ ] });
405
1512
  };
406
- function et(n) {
407
- return n !== null && typeof n == "object" && "title" in n && typeof n.title == "string";
1513
+ function Kn(t) {
1514
+ return t !== null && typeof t == "object" && "title" in t && typeof t.title == "string";
408
1515
  }
409
- const tt = y(
410
- ({ playQueueStore: n }) => {
411
- const [e, i] = g(!1), s = u(
412
- async (l) => {
413
- const a = te(l.url);
414
- if (a !== void 0) {
415
- const m = a.extractVideoId(l.url);
416
- if (m !== void 0) {
417
- const T = await (await fetch(
1516
+ const Xn = K(
1517
+ ({ playQueueStore: t }) => {
1518
+ const [e, n] = Y(!1), i = $(
1519
+ async (a) => {
1520
+ const l = wr(a.url);
1521
+ if (l !== void 0) {
1522
+ const f = l.extractVideoId(a.url);
1523
+ if (f !== void 0) {
1524
+ const h = await (await fetch(
418
1525
  `https://noembed.com/embed?url=${encodeURIComponent(
419
- l.url
1526
+ a.url
420
1527
  )}`
421
1528
  )).json();
422
- await n.addItems([
423
- n.createItem({
424
- url: l.url,
425
- type: a.type,
426
- videoId: m,
427
- title: l.title || (et(T) ? T.title : m)
1529
+ await t.addItems([
1530
+ t.createItem({
1531
+ url: a.url,
1532
+ type: l.type,
1533
+ videoId: f,
1534
+ title: a.title || (Kn(h) ? h.title : f)
428
1535
  })
429
1536
  ]);
430
1537
  }
431
1538
  }
432
- i(!1);
1539
+ n(!1);
433
1540
  },
434
- [n]
1541
+ [t]
435
1542
  );
436
- return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
437
- x,
438
- {
439
- onClick: () => i(!0),
440
- iconType: N,
441
- color: "primary"
442
- },
443
- "Add video"
444
- ), e && /* @__PURE__ */ t.createElement(
445
- Qe,
446
- {
447
- onCancel: () => i(!1),
448
- onSave: s
449
- }
450
- ));
1543
+ return /* @__PURE__ */ O(Re, { children: [
1544
+ /* @__PURE__ */ o(
1545
+ ee,
1546
+ {
1547
+ onClick: () => n(!0),
1548
+ iconType: ct,
1549
+ color: "primary",
1550
+ children: "Add video"
1551
+ }
1552
+ ),
1553
+ e && /* @__PURE__ */ o(
1554
+ Jn,
1555
+ {
1556
+ onCancel: () => n(!1),
1557
+ onSave: i
1558
+ }
1559
+ )
1560
+ ] });
451
1561
  }
452
- ), nt = h(
453
- ({ playQueueStore: n }) => {
454
- const { euiTheme: e } = H();
455
- return /* @__PURE__ */ t.createElement(
456
- ue,
1562
+ ), Zn = D(
1563
+ ({ playQueueStore: t }) => {
1564
+ const { euiTheme: e } = Dt();
1565
+ return /* @__PURE__ */ O(
1566
+ Lr,
457
1567
  {
458
1568
  style: {
459
1569
  position: "sticky",
460
1570
  top: 112,
461
1571
  zIndex: 998,
462
1572
  background: e.colors.backgroundBasePlain
463
- }
464
- },
465
- /* @__PURE__ */ t.createElement(he, null, /* @__PURE__ */ t.createElement(
466
- U,
467
- {
468
- id: "",
469
- checked: n.allItemsSelected,
470
- onChange: (i) => {
471
- n.allItemsSelected = i.target.checked;
472
- }
473
- }
474
- )),
475
- /* @__PURE__ */ t.createElement(P, { width: 24 }),
476
- /* @__PURE__ */ t.createElement(P, null, "Title"),
477
- /* @__PURE__ */ t.createElement(P, null)
1573
+ },
1574
+ children: [
1575
+ /* @__PURE__ */ o(zr, { children: /* @__PURE__ */ o(
1576
+ zt,
1577
+ {
1578
+ id: "",
1579
+ checked: t.allItemsSelected,
1580
+ onChange: (n) => {
1581
+ t.allItemsSelected = n.target.checked;
1582
+ }
1583
+ }
1584
+ ) }),
1585
+ /* @__PURE__ */ o(Je, { width: 24 }),
1586
+ /* @__PURE__ */ o(Je, { children: "Title" }),
1587
+ /* @__PURE__ */ o(Je, {})
1588
+ ]
1589
+ }
478
1590
  );
479
1591
  }
480
- ), it = y(
1592
+ ), Qn = K(
481
1593
  ({
482
- item: n,
1594
+ item: t,
483
1595
  closePopover: e
484
1596
  }) => {
485
- const i = y(
1597
+ const n = K(
486
1598
  ({
487
- onClick: s,
488
- ...l
1599
+ onClick: i,
1600
+ ...a
489
1601
  }) => {
490
- const a = u(
491
- (m) => {
492
- e(), s == null || s(m);
1602
+ const l = $(
1603
+ (f) => {
1604
+ e(), i == null || i(f);
493
1605
  },
494
- [s]
1606
+ [i]
495
1607
  );
496
- return /* @__PURE__ */ t.createElement(pe, { ...l, onClick: a });
1608
+ return /* @__PURE__ */ o(Vr, { ...a, onClick: l });
497
1609
  }
498
1610
  );
499
- return /* @__PURE__ */ t.createElement(ge, null, /* @__PURE__ */ t.createElement(
500
- i,
501
- {
502
- icon: /* @__PURE__ */ t.createElement(E, { type: "" }),
503
- onClick: n.playFirst
504
- },
505
- "Play first"
506
- ), /* @__PURE__ */ t.createElement(
507
- i,
508
- {
509
- icon: /* @__PURE__ */ t.createElement(E, { type: "" }),
510
- onClick: n.playNext
511
- },
512
- "Play next"
513
- ), /* @__PURE__ */ t.createElement(
514
- i,
515
- {
516
- icon: /* @__PURE__ */ t.createElement(E, { type: N }),
517
- onClick: n.addToPlayQueue
518
- },
519
- "Add to play queue"
520
- ), /* @__PURE__ */ t.createElement(L, { margin: "none" }), /* @__PURE__ */ t.createElement(
521
- i,
522
- {
523
- icon: /* @__PURE__ */ t.createElement(E, { type: Fe }),
524
- onClick: n.moveToTop,
525
- disabled: !n.canMoveToTop
526
- },
527
- "Move to the top"
528
- ), /* @__PURE__ */ t.createElement(
529
- i,
530
- {
531
- icon: /* @__PURE__ */ t.createElement(E, { type: Be }),
532
- onClick: n.moveToBottom,
533
- disabled: !n.canMoveToBottom
534
- },
535
- "Move to the bottom"
536
- ), /* @__PURE__ */ t.createElement(L, { margin: "none" }), /* @__PURE__ */ t.createElement(
537
- i,
538
- {
539
- icon: /* @__PURE__ */ t.createElement(E, { type: "" }),
540
- onClick: n.removeToTop,
541
- disabled: !n.canRemoveToTop
542
- },
543
- "Remove to the top"
544
- ), /* @__PURE__ */ t.createElement(
545
- i,
546
- {
547
- icon: /* @__PURE__ */ t.createElement(E, { type: "" }),
548
- onClick: n.removeOthers,
549
- disabled: !n.canRemoveOthers
550
- },
551
- "Remove others"
552
- ));
553
- }
554
- ), st = y(
555
- ({ item: n }) => {
556
- const [e, i] = g(!1), s = u(() => i(!e), [e]), l = u(() => i(!1), []);
557
- return /* @__PURE__ */ t.createElement(
558
- F,
1611
+ return /* @__PURE__ */ O(Yr, { children: [
1612
+ /* @__PURE__ */ o(
1613
+ n,
1614
+ {
1615
+ icon: /* @__PURE__ */ o(W, { type: "" }),
1616
+ onClick: t.playFirst,
1617
+ children: "Play first"
1618
+ }
1619
+ ),
1620
+ /* @__PURE__ */ o(
1621
+ n,
1622
+ {
1623
+ icon: /* @__PURE__ */ o(W, { type: "" }),
1624
+ onClick: t.playNext,
1625
+ children: "Play next"
1626
+ }
1627
+ ),
1628
+ /* @__PURE__ */ o(
1629
+ n,
1630
+ {
1631
+ icon: /* @__PURE__ */ o(W, { type: ct }),
1632
+ onClick: t.addToPlayQueue,
1633
+ children: "Add to play queue"
1634
+ }
1635
+ ),
1636
+ /* @__PURE__ */ o(It, { margin: "none" }),
1637
+ /* @__PURE__ */ o(
1638
+ n,
1639
+ {
1640
+ icon: /* @__PURE__ */ o(W, { type: ln }),
1641
+ onClick: t.moveToTop,
1642
+ disabled: !t.canMoveToTop,
1643
+ children: "Move to the top"
1644
+ }
1645
+ ),
1646
+ /* @__PURE__ */ o(
1647
+ n,
1648
+ {
1649
+ icon: /* @__PURE__ */ o(W, { type: cn }),
1650
+ onClick: t.moveToBottom,
1651
+ disabled: !t.canMoveToBottom,
1652
+ children: "Move to the bottom"
1653
+ }
1654
+ ),
1655
+ /* @__PURE__ */ o(It, { margin: "none" }),
1656
+ /* @__PURE__ */ o(
1657
+ n,
1658
+ {
1659
+ icon: /* @__PURE__ */ o(W, { type: "" }),
1660
+ onClick: t.removeToTop,
1661
+ disabled: !t.canRemoveToTop,
1662
+ children: "Remove to the top"
1663
+ }
1664
+ ),
1665
+ /* @__PURE__ */ o(
1666
+ n,
1667
+ {
1668
+ icon: /* @__PURE__ */ o(W, { type: "" }),
1669
+ onClick: t.removeOthers,
1670
+ disabled: !t.canRemoveOthers,
1671
+ children: "Remove others"
1672
+ }
1673
+ )
1674
+ ] });
1675
+ }
1676
+ ), ei = K(
1677
+ ({ item: t }) => {
1678
+ const [e, n] = Y(!1), i = $(() => n(!e), [e]), a = $(() => n(!1), []);
1679
+ return /* @__PURE__ */ o(
1680
+ st,
559
1681
  {
560
- button: /* @__PURE__ */ t.createElement(
561
- I,
1682
+ button: /* @__PURE__ */ o(
1683
+ G,
562
1684
  {
563
1685
  title: "More options",
564
1686
  "aria-label": "More options",
565
- iconType: J,
1687
+ iconType: Yt,
566
1688
  size: "s",
567
1689
  color: "text",
568
- onClick: s
1690
+ onClick: i
569
1691
  }
570
1692
  ),
571
1693
  isOpen: e,
572
- closePopover: l,
1694
+ closePopover: a,
573
1695
  panelPaddingSize: "none",
574
- anchorPosition: "leftCenter"
575
- },
576
- /* @__PURE__ */ t.createElement(
577
- it,
578
- {
579
- item: n,
580
- closePopover: l
581
- }
582
- )
1696
+ anchorPosition: "leftCenter",
1697
+ children: /* @__PURE__ */ o(
1698
+ Qn,
1699
+ {
1700
+ item: t,
1701
+ closePopover: a
1702
+ }
1703
+ )
1704
+ }
583
1705
  );
584
1706
  }
585
- ), rt = h(
586
- ({ item: n }) => {
587
- const e = C();
588
- return /* @__PURE__ */ t.createElement(A, { textOnly: !1, hasActions: !0, align: "right" }, /* @__PURE__ */ t.createElement(
589
- x,
590
- {
591
- iconType: Ne,
592
- size: "s",
593
- onClick: async () => {
594
- n.isCurrent ? await e.setCurrentTime(0) : n.play();
1707
+ ), ti = D(
1708
+ ({ item: t }) => {
1709
+ const e = te();
1710
+ return /* @__PURE__ */ O(Qe, { textOnly: !1, hasActions: !0, align: "right", children: [
1711
+ /* @__PURE__ */ o(
1712
+ ee,
1713
+ {
1714
+ iconType: un,
1715
+ size: "s",
1716
+ onClick: async () => {
1717
+ t.isCurrent ? await e.setCurrentTime(0) : t.play();
1718
+ },
1719
+ children: "Play"
595
1720
  }
596
- },
597
- "Play"
598
- ), /* @__PURE__ */ t.createElement(
599
- x,
600
- {
601
- iconType: B,
602
- size: "s",
603
- onClick: n.remove
604
- },
605
- "Remove"
606
- ), /* @__PURE__ */ t.createElement(st, { item: n }));
1721
+ ),
1722
+ /* @__PURE__ */ o(
1723
+ ee,
1724
+ {
1725
+ iconType: lt,
1726
+ size: "s",
1727
+ onClick: t.remove,
1728
+ children: "Remove"
1729
+ }
1730
+ ),
1731
+ /* @__PURE__ */ o(ei, { item: t })
1732
+ ] });
607
1733
  }
608
- ), lt = {
1734
+ ), ri = {
609
1735
  Audio: "",
610
1736
  Dailymotion: "https://www.dailymotion.com/favicon.ico",
611
1737
  Niconico: "https://www.nicovideo.jp/favicon.ico",
@@ -613,251 +1739,273 @@ const tt = y(
613
1739
  Twitch: "https://www.twitch.tv/favicon.ico",
614
1740
  Vimeo: "https://vimeo.com/favicon.ico",
615
1741
  YouTube: "https://www.youtube.com/favicon.ico"
616
- }, at = h(
617
- ({ item: n }) => {
618
- const e = C();
619
- return /* @__PURE__ */ t.createElement(fe, { key: n.id, isSelected: n.isCurrent }, /* @__PURE__ */ t.createElement(Ee, null, /* @__PURE__ */ t.createElement(
620
- U,
621
- {
622
- id: n.id.toString(),
623
- checked: n.isSelected,
624
- onChange: n.toggleSelected
625
- }
626
- )), /* @__PURE__ */ t.createElement(A, { textOnly: !1 }, /* @__PURE__ */ t.createElement(
627
- "img",
628
- {
629
- src: lt[n.type],
630
- width: 16,
631
- height: 16,
632
- alt: n.type
633
- }
634
- )), /* @__PURE__ */ t.createElement(A, null, /* @__PURE__ */ t.createElement(
635
- ve,
636
- {
637
- href: n.url,
638
- target: "_blank",
639
- external: !0,
640
- onClick: () => e.pause()
641
- },
642
- n.title
643
- )), /* @__PURE__ */ t.createElement(rt, { item: n }));
1742
+ }, ni = D(
1743
+ ({ item: t }) => {
1744
+ const e = te();
1745
+ return /* @__PURE__ */ O(Ur, { isSelected: t.isCurrent, children: [
1746
+ /* @__PURE__ */ o(Br, { children: /* @__PURE__ */ o(
1747
+ zt,
1748
+ {
1749
+ id: t.id.toString(),
1750
+ checked: t.isSelected,
1751
+ onChange: t.toggleSelected
1752
+ }
1753
+ ) }),
1754
+ /* @__PURE__ */ o(Qe, { textOnly: !1, children: /* @__PURE__ */ o(
1755
+ "img",
1756
+ {
1757
+ src: ri[t.type],
1758
+ width: 16,
1759
+ height: 16,
1760
+ alt: t.type
1761
+ }
1762
+ ) }),
1763
+ /* @__PURE__ */ o(Qe, { children: /* @__PURE__ */ o(
1764
+ Wr,
1765
+ {
1766
+ href: t.url,
1767
+ target: "_blank",
1768
+ external: !0,
1769
+ onClick: () => e.pause(),
1770
+ children: t.title
1771
+ }
1772
+ ) }),
1773
+ /* @__PURE__ */ o(ti, { item: t })
1774
+ ] }, t.id);
644
1775
  }
645
- ), ot = h(
646
- ({ playQueueStore: n }) => /* @__PURE__ */ t.createElement(
647
- je,
1776
+ ), ii = D(
1777
+ ({ playQueueStore: t }) => /* @__PURE__ */ o(
1778
+ fn,
648
1779
  {
649
1780
  tag: "tbody",
650
- list: n.items,
651
- setList: (e) => n.setItems(e)
652
- },
653
- n.items.map((e) => /* @__PURE__ */ t.createElement(at, { key: e.id, item: e }))
1781
+ list: t.items,
1782
+ setList: (e) => t.setItems(e),
1783
+ children: t.items.map((e) => /* @__PURE__ */ o(ni, { item: e }, e.id))
1784
+ }
654
1785
  )
655
- ), ct = h(
656
- ({ playQueueStore: n }) => /* @__PURE__ */ t.createElement(Ie, null, /* @__PURE__ */ t.createElement(nt, { playQueueStore: n }), /* @__PURE__ */ t.createElement(ot, { playQueueStore: n }))
657
- ), mt = h(
658
- ({ playQueueStore: n }) => {
659
- const [e, i] = g(!1);
660
- return /* @__PURE__ */ t.createElement(t.Fragment, null, e && /* @__PURE__ */ t.createElement(
661
- ye,
662
- {
663
- type: "push",
664
- size: "s",
665
- onClose: () => i(!1)
666
- },
667
- /* @__PURE__ */ t.createElement("div", { style: { blockSize: "100%" } }, /* @__PURE__ */ t.createElement(
668
- be,
1786
+ ), oi = D(
1787
+ ({ playQueueStore: t }) => /* @__PURE__ */ O(qr, { children: [
1788
+ /* @__PURE__ */ o(Zn, { playQueueStore: t }),
1789
+ /* @__PURE__ */ o(ii, { playQueueStore: t })
1790
+ ] })
1791
+ ), ai = D(
1792
+ ({ playQueueStore: t }) => {
1793
+ const [e, n] = Y(!1);
1794
+ return /* @__PURE__ */ O(Re, { children: [
1795
+ e && /* @__PURE__ */ o(
1796
+ Gr,
669
1797
  {
670
- language: "json",
671
- overflowHeight: "100%",
672
- isCopyable: !0,
673
- isVirtualized: !0
674
- },
675
- JSON.stringify(
676
- n.localStorageState,
677
- void 0,
678
- 2
679
- )
680
- ))
681
- ), /* @__PURE__ */ t.createElement(tt, { playQueueStore: n }));
682
- }
683
- ), dt = h(
684
- ({ playerStore: n, playQueueStore: e }) => {
685
- const { euiTheme: i } = H();
686
- return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
687
- k,
688
- {
689
- alignItems: "center",
690
- gutterSize: "m",
691
- style: {
692
- position: "sticky",
693
- top: 48,
694
- zIndex: 998,
695
- background: i.colors.backgroundBasePlain
1798
+ type: "push",
1799
+ size: "s",
1800
+ onClose: () => n(!1),
1801
+ children: /* @__PURE__ */ o("div", { style: { blockSize: "100%" }, children: /* @__PURE__ */ o(
1802
+ Hr,
1803
+ {
1804
+ language: "json",
1805
+ overflowHeight: "100%",
1806
+ isCopyable: !0,
1807
+ isVirtualized: !0,
1808
+ children: JSON.stringify(
1809
+ t.localStorageState,
1810
+ void 0,
1811
+ 2
1812
+ )
1813
+ }
1814
+ ) })
696
1815
  }
697
- },
698
- /* @__PURE__ */ t.createElement(v, { grow: !1 }, /* @__PURE__ */ t.createElement(
699
- x,
700
- {
701
- disabled: e.isEmpty || e.selectedItems.length === 0,
702
- onClick: e.playSelectedItemsNext
703
- },
704
- "Play next"
705
- )),
706
- /* @__PURE__ */ t.createElement(v, { grow: !1 }, /* @__PURE__ */ t.createElement(
707
- x,
708
- {
709
- iconType: N,
710
- onClick: e.addSelectedItems,
711
- disabled: e.isEmpty || e.selectedItems.length === 0
712
- },
713
- "Add to play queue"
714
- )),
715
- /* @__PURE__ */ t.createElement(v, { grow: !1 }, /* @__PURE__ */ t.createElement(
716
- x,
717
- {
718
- iconType: B,
719
- onClick: e.removeSelectedItems,
720
- disabled: e.isEmpty || e.selectedItems.length === 0
721
- },
722
- "Remove"
723
- )),
724
- /* @__PURE__ */ t.createElement(v, { grow: !1 }, /* @__PURE__ */ t.createElement(
725
- x,
1816
+ ),
1817
+ /* @__PURE__ */ o(Xn, { playQueueStore: t })
1818
+ ] });
1819
+ }
1820
+ ), si = D(
1821
+ ({ playerStore: t, playQueueStore: e }) => {
1822
+ const { euiTheme: n } = Dt();
1823
+ return /* @__PURE__ */ O(Re, { children: [
1824
+ /* @__PURE__ */ O(
1825
+ de,
726
1826
  {
727
- iconType: Ve,
728
- onClick: e.clear,
729
- disabled: e.isEmpty
730
- },
731
- "Clear"
732
- )),
733
- /* @__PURE__ */ t.createElement(v, { grow: !0 }),
734
- /* @__PURE__ */ t.createElement(v, { grow: !1 }, /* @__PURE__ */ t.createElement(mt, { playQueueStore: e }))
735
- ), !e.isEmpty && /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
736
- $,
737
- {
738
- size: "l",
739
- style: {
740
- position: "sticky",
741
- top: 88,
742
- zIndex: 998,
743
- background: i.colors.backgroundBasePlain
1827
+ alignItems: "center",
1828
+ gutterSize: "m",
1829
+ style: {
1830
+ position: "sticky",
1831
+ top: 48,
1832
+ zIndex: 998,
1833
+ background: n.colors.backgroundBasePlain
1834
+ },
1835
+ children: [
1836
+ /* @__PURE__ */ o(U, { grow: !1, children: /* @__PURE__ */ o(
1837
+ ee,
1838
+ {
1839
+ disabled: e.isEmpty || e.selectedItems.length === 0,
1840
+ onClick: e.playSelectedItemsNext,
1841
+ children: "Play next"
1842
+ }
1843
+ ) }),
1844
+ /* @__PURE__ */ o(U, { grow: !1, children: /* @__PURE__ */ o(
1845
+ ee,
1846
+ {
1847
+ iconType: ct,
1848
+ onClick: e.addSelectedItems,
1849
+ disabled: e.isEmpty || e.selectedItems.length === 0,
1850
+ children: "Add to play queue"
1851
+ }
1852
+ ) }),
1853
+ /* @__PURE__ */ o(U, { grow: !1, children: /* @__PURE__ */ o(
1854
+ ee,
1855
+ {
1856
+ iconType: lt,
1857
+ onClick: e.removeSelectedItems,
1858
+ disabled: e.isEmpty || e.selectedItems.length === 0,
1859
+ children: "Remove"
1860
+ }
1861
+ ) }),
1862
+ /* @__PURE__ */ o(U, { grow: !1, children: /* @__PURE__ */ o(
1863
+ ee,
1864
+ {
1865
+ iconType: dn,
1866
+ onClick: e.clear,
1867
+ disabled: e.isEmpty,
1868
+ children: "Clear"
1869
+ }
1870
+ ) }),
1871
+ /* @__PURE__ */ o(U, { grow: !0 }),
1872
+ /* @__PURE__ */ o(U, { grow: !1, children: /* @__PURE__ */ o(ai, { playQueueStore: e }) })
1873
+ ]
744
1874
  }
1875
+ ),
1876
+ !e.isEmpty && /* @__PURE__ */ O(Re, { children: [
1877
+ /* @__PURE__ */ o(
1878
+ Lt,
1879
+ {
1880
+ size: "l",
1881
+ style: {
1882
+ position: "sticky",
1883
+ top: 88,
1884
+ zIndex: 998,
1885
+ background: n.colors.backgroundBasePlain
1886
+ }
1887
+ }
1888
+ ),
1889
+ /* @__PURE__ */ o(oi, { playQueueStore: e })
1890
+ ] })
1891
+ ] });
1892
+ }
1893
+ ), Ri = D(
1894
+ ({ playerStore: t, playQueueStore: e }) => /* @__PURE__ */ O(Re, { children: [
1895
+ /* @__PURE__ */ o(
1896
+ et.Header,
1897
+ {
1898
+ pageTitle: "Play queue",
1899
+ rightSideItems: []
745
1900
  }
746
- ), /* @__PURE__ */ t.createElement(ct, { playQueueStore: e })));
747
- }
748
- ), Ot = h(
749
- ({ playerStore: n, playQueueStore: e }) => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
750
- z.Header,
751
- {
752
- pageTitle: "Play queue",
753
- rightSideItems: []
754
- }
755
- ), /* @__PURE__ */ t.createElement(z.Section, null, /* @__PURE__ */ t.createElement(
756
- dt,
757
- {
758
- playerStore: n,
759
- playQueueStore: e
760
- }
761
- )))
762
- ), M = {
1901
+ ),
1902
+ /* @__PURE__ */ o(et.Section, { children: /* @__PURE__ */ o(
1903
+ si,
1904
+ {
1905
+ playerStore: t,
1906
+ playQueueStore: e
1907
+ }
1908
+ ) })
1909
+ ] })
1910
+ ), it = {
763
1911
  width: 16 * 25,
764
1912
  height: 9 * 25
765
- }, At = h(
766
- ({ playerStore: n, playQueueStore: e }) => {
767
- const i = C(), s = u(async () => {
768
- e.interacted && await i.play();
769
- }, [e, i]), l = u(async () => {
1913
+ }, Pi = D(
1914
+ ({ playerStore: t, playQueueStore: e }) => {
1915
+ const n = te(), i = $(async () => {
1916
+ e.interacted && await n.play();
1917
+ }, [e, n]), a = $(async () => {
770
1918
  switch (e.repeat) {
771
- case o.One:
772
- await i.setCurrentTime(0);
1919
+ case I.One:
1920
+ await n.setCurrentTime(0);
773
1921
  break;
774
- case o.Off:
775
- case o.All:
1922
+ case I.Off:
1923
+ case I.All:
776
1924
  if (e.isLastItem)
777
1925
  switch (e.repeat) {
778
- case o.Off:
779
- n.onEnded();
1926
+ case I.Off:
1927
+ t.onEnded();
780
1928
  break;
781
- case o.All:
782
- e.hasMultipleItems ? await e.goToFirst() : await i.setCurrentTime(0);
1929
+ case I.All:
1930
+ e.hasMultipleItems ? await e.goToFirst() : await n.setCurrentTime(0);
783
1931
  break;
784
1932
  }
785
1933
  else
786
1934
  await e.next();
787
1935
  break;
788
1936
  }
789
- }, [e, n, i]), a = G(
1937
+ }, [e, t, n]), l = $t(
790
1938
  () => ({
791
- onLoaded: s,
792
- onPlay: n.onPlay,
793
- onPause: n.onPause,
794
- onEnded: l,
795
- onTimeUpdate: n.onTimeUpdate
1939
+ onLoaded: i,
1940
+ onPlay: t.onPlay,
1941
+ onPause: t.onPause,
1942
+ onEnded: a,
1943
+ onTimeUpdate: t.onTimeUpdate
796
1944
  }),
797
- [n, s, l]
1945
+ [t, i, a]
798
1946
  );
799
- return /* @__PURE__ */ t.createElement(
1947
+ return /* @__PURE__ */ o(
800
1948
  "div",
801
1949
  {
802
1950
  css: {
803
1951
  position: "fixed",
804
1952
  right: 0,
805
- bottom: Y,
806
- width: M.width,
807
- height: M.height,
1953
+ bottom: Kt,
1954
+ width: it.width,
1955
+ height: it.height,
808
1956
  zIndex: 998,
809
1957
  backgroundColor: "rgb(39, 39, 39)",
810
1958
  display: "flex",
811
1959
  flexDirection: "column"
812
- }
813
- },
814
- /* @__PURE__ */ t.createElement("div", { css: { flexGrow: 1, backgroundColor: "black" } }, e.currentItem && /* @__PURE__ */ t.createElement(
815
- ne,
816
- {
817
- src: e.currentItem.url,
818
- options: a
819
- }
820
- ))
1960
+ },
1961
+ children: /* @__PURE__ */ o("div", { css: { flexGrow: 1, backgroundColor: "black" }, children: e.currentItem && /* @__PURE__ */ o(
1962
+ _r,
1963
+ {
1964
+ src: e.currentItem.url,
1965
+ options: l
1966
+ }
1967
+ ) })
1968
+ }
821
1969
  );
822
1970
  }
823
1971
  );
824
- class K {
825
- makeObservable(e, i) {
826
- return He(e, i);
1972
+ class Xt {
1973
+ makeObservable(e, n) {
1974
+ return mn(e, n);
827
1975
  }
828
1976
  }
829
- const w = class w {
830
- constructor(e, i, s) {
831
- p(this, "id");
832
- p(this, "isSelected", !1);
833
- this.observableStateProvider = e, this.playQueueStore = i, this.dto = s, this.id = w.nextId++, e.makeObservable(this, {
834
- isSelected: b,
835
- isCurrent: c,
836
- index: c,
837
- isFirst: c,
838
- isLast: c,
839
- canMoveToTop: c,
840
- canMoveToBottom: c,
841
- canRemoveToTop: c,
842
- canRemoveOthers: c,
843
- unselect: r,
844
- toggleSelected: r.bound,
845
- play: r,
846
- remove: r.bound,
847
- playFirst: r.bound,
848
- playNext: r.bound,
849
- addToPlayQueue: r.bound,
850
- moveToTop: r.bound,
851
- moveToBottom: r.bound,
852
- removeToTop: r.bound,
853
- removeOthers: r.bound
1977
+ const Ce = class Ce {
1978
+ constructor(e, n, i) {
1979
+ V(this, "id");
1980
+ V(this, "isSelected", !1);
1981
+ this.observableStateProvider = e, this.playQueueStore = n, this.dto = i, this.id = Ce.nextId++, e.makeObservable(this, {
1982
+ isSelected: Q,
1983
+ isCurrent: w,
1984
+ index: w,
1985
+ isFirst: w,
1986
+ isLast: w,
1987
+ canMoveToTop: w,
1988
+ canMoveToBottom: w,
1989
+ canRemoveToTop: w,
1990
+ canRemoveOthers: w,
1991
+ unselect: y,
1992
+ toggleSelected: y.bound,
1993
+ play: y,
1994
+ remove: y.bound,
1995
+ playFirst: y.bound,
1996
+ playNext: y.bound,
1997
+ addToPlayQueue: y.bound,
1998
+ moveToTop: y.bound,
1999
+ moveToBottom: y.bound,
2000
+ removeToTop: y.bound,
2001
+ removeOthers: y.bound
854
2002
  });
855
2003
  }
856
- static fromDto(e, i, s) {
857
- return new w(
2004
+ static fromDto(e, n, i) {
2005
+ return new Ce(
858
2006
  e,
859
- i,
860
- s
2007
+ n,
2008
+ i
861
2009
  );
862
2010
  }
863
2011
  get url() {
@@ -936,22 +2084,22 @@ const w = class w {
936
2084
  return this.playQueueStore.removeOtherItems(this);
937
2085
  }
938
2086
  };
939
- p(w, "nextId", 1);
940
- let R = w;
941
- const S = new $e({
2087
+ V(Ce, "nextId", 1);
2088
+ let ot = Ce;
2089
+ const Xe = new vn({
942
2090
  coerceTypes: !0
943
2091
  });
944
- function ut(n, e) {
945
- let i;
946
- if (i = S.getSchema(e), i === void 0 && (S.addSchema(n, e), i = S.getSchema(e)), i === void 0 || i.schema !== n)
2092
+ function li(t, e) {
2093
+ let n;
2094
+ if (n = Xe.getSchema(e), n === void 0 && (Xe.addSchema(t, e), n = Xe.getSchema(e)), n === void 0 || n.schema !== t)
947
2095
  throw new Error(
948
2096
  `Invalid schema. Expected: '${JSON.stringify(
949
- n
950
- )}', but got '${JSON.stringify(i == null ? void 0 : i.schema)}'.`
2097
+ t
2098
+ )}', but got '${JSON.stringify(n == null ? void 0 : n.schema)}'.`
951
2099
  );
952
- return i;
2100
+ return n;
953
2101
  }
954
- const ht = {
2102
+ const ci = {
955
2103
  type: "object",
956
2104
  properties: {
957
2105
  version: {
@@ -960,7 +2108,7 @@ const ht = {
960
2108
  },
961
2109
  repeat: {
962
2110
  type: "string",
963
- enum: Object.values(o),
2111
+ enum: Object.values(I),
964
2112
  nullable: !0
965
2113
  },
966
2114
  shuffle: {
@@ -994,62 +2142,62 @@ const ht = {
994
2142
  nullable: !0
995
2143
  }
996
2144
  }
997
- }, pt = ut(
998
- ht,
2145
+ }, ui = li(
2146
+ ci,
999
2147
  "PlayQueueStore"
1000
2148
  );
1001
- class gt {
2149
+ class di {
1002
2150
  constructor(e) {
1003
- p(this, "interacted", !1);
1004
- p(this, "items", []);
1005
- p(this, "currentId");
1006
- p(this, "repeat", o.Off);
1007
- p(this, "shuffle", !1);
2151
+ V(this, "interacted", !1);
2152
+ V(this, "items", []);
2153
+ V(this, "currentId");
2154
+ V(this, "repeat", I.Off);
2155
+ V(this, "shuffle", !1);
1008
2156
  this.observableStateProvider = e, e.makeObservable(this, {
1009
- interacted: b,
1010
- items: b,
1011
- currentId: b,
1012
- repeat: b,
1013
- shuffle: b,
1014
- localStorageState: c.struct,
1015
- isEmpty: c,
1016
- currentItem: c,
1017
- canPlay: c,
1018
- canPause: c,
1019
- hasMultipleItems: c,
1020
- currentIndex: c,
1021
- hasPreviousItem: c,
1022
- hasNextItem: c,
1023
- isLastItem: c,
1024
- selectedItems: c,
1025
- allItemsSelected: c,
1026
- selectedItemsOrAllItems: c,
1027
- setItems: r,
1028
- interact: r,
1029
- clear: r.bound,
1030
- unselectAll: r,
1031
- setCurrentItem: r,
1032
- setNextItems: r,
1033
- clearAndSetItems: r,
1034
- playNext: r,
1035
- playSelectedItemsNext: r.bound,
1036
- addItems: r,
1037
- addSelectedItems: r.bound,
1038
- playFirst: r,
1039
- moveItem: r,
1040
- removeItems: r,
1041
- removeSelectedItems: r.bound,
1042
- removeOtherItems: r,
1043
- removeItemsAbove: r,
1044
- toggleRepeat: r.bound,
1045
- toggleShuffle: r.bound,
1046
- previous: r,
1047
- next: r.bound,
1048
- goToFirst: r
2157
+ interacted: Q,
2158
+ items: Q,
2159
+ currentId: Q,
2160
+ repeat: Q,
2161
+ shuffle: Q,
2162
+ localStorageState: w.struct,
2163
+ isEmpty: w,
2164
+ currentItem: w,
2165
+ canPlay: w,
2166
+ canPause: w,
2167
+ hasMultipleItems: w,
2168
+ currentIndex: w,
2169
+ hasPreviousItem: w,
2170
+ hasNextItem: w,
2171
+ isLastItem: w,
2172
+ selectedItems: w,
2173
+ allItemsSelected: w,
2174
+ selectedItemsOrAllItems: w,
2175
+ setItems: y,
2176
+ interact: y,
2177
+ clear: y.bound,
2178
+ unselectAll: y,
2179
+ setCurrentItem: y,
2180
+ setNextItems: y,
2181
+ clearAndSetItems: y,
2182
+ playNext: y,
2183
+ playSelectedItemsNext: y.bound,
2184
+ addItems: y,
2185
+ addSelectedItems: y.bound,
2186
+ playFirst: y,
2187
+ moveItem: y,
2188
+ removeItems: y,
2189
+ removeSelectedItems: y.bound,
2190
+ removeOtherItems: y,
2191
+ removeItemsAbove: y,
2192
+ toggleRepeat: y.bound,
2193
+ toggleShuffle: y.bound,
2194
+ previous: y,
2195
+ next: y.bound,
2196
+ goToFirst: y
1049
2197
  });
1050
2198
  }
1051
2199
  createItem(e) {
1052
- return R.fromDto(
2200
+ return ot.fromDto(
1053
2201
  this.observableStateProvider,
1054
2202
  this,
1055
2203
  e
@@ -1065,11 +2213,11 @@ class gt {
1065
2213
  };
1066
2214
  }
1067
2215
  set localStorageState(e) {
1068
- var i;
1069
- this.repeat = e.repeat ?? o.Off, this.shuffle = e.shuffle ?? !1, this.items = ((i = e.items) == null ? void 0 : i.map((s) => this.createItem(s))) ?? [], this.currentIndex = e.currentIndex;
2216
+ var n;
2217
+ this.repeat = e.repeat ?? I.Off, this.shuffle = e.shuffle ?? !1, this.items = ((n = e.items) == null ? void 0 : n.map((i) => this.createItem(i))) ?? [], this.currentIndex = e.currentIndex;
1070
2218
  }
1071
2219
  validateLocalStorageState(e) {
1072
- return pt(e);
2220
+ return ui(e);
1073
2221
  }
1074
2222
  get isEmpty() {
1075
2223
  return this.items.length === 0;
@@ -1090,8 +2238,8 @@ class gt {
1090
2238
  return this.currentId !== void 0 ? this.items.findIndex((e) => e.id === this.currentId) : void 0;
1091
2239
  }
1092
2240
  set currentIndex(e) {
1093
- var i;
1094
- this.currentId = e !== void 0 ? (i = this.items.at(e)) == null ? void 0 : i.id : void 0;
2241
+ var n;
2242
+ this.currentId = e !== void 0 ? (n = this.items.at(e)) == null ? void 0 : n.id : void 0;
1095
2243
  }
1096
2244
  get hasPreviousItem() {
1097
2245
  return this.hasMultipleItems && this.currentIndex !== void 0 && this.currentIndex > 0;
@@ -1109,8 +2257,8 @@ class gt {
1109
2257
  return this.selectedItems.length === this.items.length;
1110
2258
  }
1111
2259
  set allItemsSelected(e) {
1112
- for (const i of this.items)
1113
- i.isSelected = e;
2260
+ for (const n of this.items)
2261
+ n.isSelected = e;
1114
2262
  }
1115
2263
  get selectedItemsOrAllItems() {
1116
2264
  return this.selectedItems.length > 0 ? this.selectedItems : this.items;
@@ -1166,47 +2314,47 @@ class gt {
1166
2314
  this.clearAndSetItems(e);
1167
2315
  return;
1168
2316
  }
1169
- const { currentIndex: i } = this;
1170
- i !== void 0 && (this.interact(), this.items.splice(i, 0, ...e), this.currentIndex = i);
2317
+ const { currentIndex: n } = this;
2318
+ n !== void 0 && (this.interact(), this.items.splice(n, 0, ...e), this.currentIndex = n);
1171
2319
  }
1172
- moveItem(e, i) {
1173
- const s = this.items.splice(this.items.indexOf(e), 1)[0];
1174
- this.items.splice(i, 0, s);
2320
+ moveItem(e, n) {
2321
+ const i = this.items.splice(this.items.indexOf(e), 1)[0];
2322
+ this.items.splice(n, 0, i);
1175
2323
  }
1176
2324
  async removeItems(e) {
1177
- const { currentItem: i } = this;
1178
- D(this.items, ...e.filter((a) => a !== i));
1179
- const { currentIndex: s, isLastItem: l } = this;
1180
- D(
2325
+ const { currentItem: n } = this;
2326
+ Rt(this.items, ...e.filter((l) => l !== n));
2327
+ const { currentIndex: i, isLastItem: a } = this;
2328
+ Rt(
1181
2329
  this.items,
1182
- e.find((a) => a === i)
1183
- ), this.currentItem !== i && (this.interact(), l ? await this.goToFirst() : this.currentIndex = s);
2330
+ e.find((l) => l === n)
2331
+ ), this.currentItem !== n && (this.interact(), a ? await this.goToFirst() : this.currentIndex = i);
1184
2332
  }
1185
2333
  async removeSelectedItems() {
1186
2334
  await this.removeItems(this.selectedItemsOrAllItems), this.unselectAll();
1187
2335
  }
1188
2336
  async removeOtherItems(e) {
1189
- const i = e.id;
2337
+ const n = e.id;
1190
2338
  return this.removeItems(
1191
- this.items.filter((s) => s.id !== i)
2339
+ this.items.filter((i) => i.id !== n)
1192
2340
  );
1193
2341
  }
1194
2342
  async removeItemsAbove(e) {
1195
- const i = this.items.indexOf(e);
2343
+ const n = this.items.indexOf(e);
1196
2344
  return this.removeItems(
1197
- this.items.filter((s, l) => l < i)
2345
+ this.items.filter((i, a) => a < n)
1198
2346
  );
1199
2347
  }
1200
2348
  toggleRepeat() {
1201
2349
  switch (this.repeat) {
1202
- case o.Off:
1203
- this.repeat = o.All;
2350
+ case I.Off:
2351
+ this.repeat = I.All;
1204
2352
  break;
1205
- case o.All:
1206
- this.repeat = o.One;
2353
+ case I.All:
2354
+ this.repeat = I.One;
1207
2355
  break;
1208
- case o.One:
1209
- this.repeat = o.Off;
2356
+ case I.One:
2357
+ this.repeat = I.Off;
1210
2358
  break;
1211
2359
  }
1212
2360
  }
@@ -1223,50 +2371,52 @@ class gt {
1223
2371
  this.currentIndex !== void 0 && (this.currentIndex = 0);
1224
2372
  }
1225
2373
  }
1226
- const Z = W(void 0), zt = ({
1227
- children: n
2374
+ const Zt = jt(void 0), wi = ({
2375
+ children: t
1228
2376
  }) => {
1229
- const [e] = g(
1230
- () => new gt(new K())
1231
- ), i = C();
1232
- return De(() => Ue(
2377
+ const [e] = Y(
2378
+ () => new di(new Xt())
2379
+ ), n = te();
2380
+ return Rr(() => hn(
1233
2381
  () => e.currentItem,
1234
- async (s, l) => {
1235
- s === void 0 || l === void 0 || s.type === l.type && s.videoId === l.videoId && await i.setCurrentTime(0);
1236
- }
1237
- ), [e, i]), /* @__PURE__ */ t.createElement(Z.Provider, { value: e }, n);
1238
- }, ft = () => X(Z), Mt = h(
1239
- ({ children: n }) => {
1240
- const e = ft();
1241
- return /* @__PURE__ */ t.createElement(
1242
- z,
2382
+ async (i, a) => {
2383
+ i === void 0 || a === void 0 || i.type === a.type && i.videoId === a.videoId && await n.setCurrentTime(0);
2384
+ }
2385
+ ), [e, n]), /* @__PURE__ */ o(Zt.Provider, { value: e, children: t });
2386
+ }, fi = () => at(Zt), _i = D(
2387
+ ({ children: t }) => {
2388
+ const e = fi();
2389
+ return /* @__PURE__ */ O(
2390
+ et,
1243
2391
  {
1244
2392
  panelled: !0,
1245
2393
  style: {
1246
- minBlockSize: `max(460px, 100vh - ${Y}px)`
1247
- }
1248
- },
1249
- n,
1250
- !e.isEmpty && /* @__PURE__ */ t.createElement($, { style: { blockSize: M.height } })
2394
+ minBlockSize: `max(460px, 100vh - ${Kt}px)`
2395
+ },
2396
+ children: [
2397
+ t,
2398
+ !e.isEmpty && /* @__PURE__ */ o(Lt, { style: { blockSize: it.height } })
2399
+ ]
2400
+ }
1251
2401
  );
1252
2402
  }
1253
2403
  );
1254
- class Et {
2404
+ class mi {
1255
2405
  constructor(e) {
1256
- p(this, "playing", !1);
1257
- p(this, "percent", 0);
1258
- p(this, "seeking", !1);
2406
+ V(this, "playing", !1);
2407
+ V(this, "percent", 0);
2408
+ V(this, "seeking", !1);
1259
2409
  e.makeObservable(this, {
1260
- playing: b,
1261
- percent: b,
1262
- seeking: b,
1263
- setPlaying: r,
1264
- setPercent: r,
1265
- setSeeking: r,
1266
- onPlay: r.bound,
1267
- onPause: r.bound,
1268
- onEnded: r.bound,
1269
- onTimeUpdate: r.bound
2410
+ playing: Q,
2411
+ percent: Q,
2412
+ seeking: Q,
2413
+ setPlaying: y,
2414
+ setPercent: y,
2415
+ setSeeking: y,
2416
+ onPlay: y.bound,
2417
+ onPause: y.bound,
2418
+ onEnded: y.bound,
2419
+ onTimeUpdate: y.bound
1270
2420
  });
1271
2421
  }
1272
2422
  setPlaying(e) {
@@ -1291,32 +2441,32 @@ class Et {
1291
2441
  e !== void 0 && (this.seeking || (this.percent = e));
1292
2442
  }
1293
2443
  }
1294
- const _ = W(void 0), Rt = ({
1295
- children: n
2444
+ const Qt = jt(void 0), Oi = ({
2445
+ children: t
1296
2446
  }) => {
1297
- const [e] = g(
1298
- () => new Et(new K())
2447
+ const [e] = Y(
2448
+ () => new mi(new Xt())
1299
2449
  );
1300
- return /* @__PURE__ */ t.createElement(_.Provider, { value: e }, n);
1301
- }, Ft = () => X(_);
1302
- class Bt {
1303
- makeObservable(e, i) {
2450
+ return /* @__PURE__ */ o(Qt.Provider, { value: e, children: t });
2451
+ }, Ai = () => at(Qt);
2452
+ class ki {
2453
+ makeObservable(e, n) {
1304
2454
  return e;
1305
2455
  }
1306
2456
  }
1307
2457
  export {
1308
- St as BottomBar,
1309
- Ot as HydrangeanDiva,
1310
- Mt as MediaPlayerLayout,
1311
- At as MiniPlayer,
1312
- K as MobXObservableStateProvider,
1313
- Bt as ObservableStateProvider,
1314
- zt as PlayQueueStoreProvider,
1315
- Rt as PlayerStoreProvider,
1316
- o as RepeatMode,
1317
- Y as bottomBarHeight,
1318
- M as miniPlayerSize,
1319
- ft as usePlayQueueStore,
1320
- Ft as usePlayerStore
2458
+ Ii as BottomBar,
2459
+ Ri as HydrangeanDiva,
2460
+ _i as MediaPlayerLayout,
2461
+ Pi as MiniPlayer,
2462
+ Xt as MobXObservableStateProvider,
2463
+ ki as ObservableStateProvider,
2464
+ wi as PlayQueueStoreProvider,
2465
+ Oi as PlayerStoreProvider,
2466
+ I as RepeatMode,
2467
+ Kt as bottomBarHeight,
2468
+ it as miniPlayerSize,
2469
+ fi as usePlayQueueStore,
2470
+ Ai as usePlayerStore
1321
2471
  };
1322
2472
  //# sourceMappingURL=index.es.js.map