@aigamo/hydrangean-diva 0.0.1-alpha.15 → 0.0.1-alpha.17
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/features/common/helpers/index.d.ts +1 -0
- package/dist/features/common/index.d.ts +1 -0
- package/dist/features/media-player.play-queue/index.d.ts +1 -0
- package/dist/features/media-player.play-queue/pages/index.d.ts +1 -0
- package/dist/features/media-player.player/components/HydrangeanDivaProvider.d.ts +4 -0
- package/dist/features/media-player.player/components/index.d.ts +1 -0
- package/dist/index.cjs.js +11 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +474 -425
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var B = (t, e, n) =>
|
|
4
|
-
import { makeObservable as
|
|
1
|
+
var wr = Object.defineProperty;
|
|
2
|
+
var Or = (t, e, n) => e in t ? wr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var B = (t, e, n) => Or(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { makeObservable as _r, action as y, computed as A, observable as Z, reaction as Ar } from "mobx";
|
|
5
5
|
import * as te from "react";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useNostalgicDiva as ne, findVideoService as
|
|
9
|
-
import { EuiButton as re, useGeneratedHtmlId as
|
|
10
|
-
import { AddRegular as
|
|
6
|
+
import zt, { forwardRef as kr, useContext as at, memo as me, useState as q, useCallback as D, useMemo as st, createContext as Lt, useEffect as Mr, useLayoutEffect as Fr } from "react";
|
|
7
|
+
import jr from "@emotion/cache";
|
|
8
|
+
import { useNostalgicDiva as ne, findVideoService as Nr, NostalgicDivaProvider as $r, NostalgicDiva as Dr, nullPlayerController as zr } from "@aigamo/nostalgic-diva";
|
|
9
|
+
import { EuiButton as re, useGeneratedHtmlId as Lr, EuiModalHeaderTitle as Vr, EuiModalHeader as Yr, EuiForm as Br, EuiFormRow as tt, EuiFieldText as Rt, EuiModalBody as Wr, EuiModalFooter as Ur, EuiButtonEmpty as Vt, EuiModal as qr, useEuiTheme as Yt, EuiCheckbox as Bt, EuiTableHeaderCellCheckbox as Hr, EuiTableHeader as Gr, EuiTableRowCell as rt, EuiTableRowCellCheckbox as Jr, EuiLink as Kr, EuiTableRow as Xr, EuiTable as Zr, EuiButtonIcon as G, EuiPopover as lt, EuiIcon as H, EuiContextMenu as Wt, EuiTableHeaderCell as Xe, EuiCodeBlock as Qr, EuiFlyout as en, EuiFlexGroup as se, EuiFlexItem as J, EuiSpacer as Ut, EuiEmptyPrompt as tn, EuiPageTemplate as ct, EuiRange as qt, EuiBottomBar as rn } from "@elastic/eui";
|
|
10
|
+
import { AddRegular as ut, PlayRegular as nn, DismissRegular as dt, MoreHorizontalFilled as Ht, ArrowUploadRegular as on, ArrowDownloadRegular as an, WindowDevToolsRegular as sn, DeleteRegular as ln, ArrowRepeat1Filled as cn, ArrowRepeatAllFilled as un, ArrowRepeatAllOffFilled as dn, ArrowShuffleFilled as fn, ArrowShuffleOffFilled as mn, PreviousFilled as hn, PauseFilled as vn, PlayFilled as pn, NextFilled as yn, Speaker2Regular as Gt, TopSpeedRegular as gn, SkipBack10Regular as bn, SkipForward30Regular as En, NavigationPlayRegular as Tn } from "@fluentui/react-icons";
|
|
11
11
|
import { observer as N } from "mobx-react-lite";
|
|
12
|
-
import { ReactSortable as
|
|
13
|
-
import { pull as
|
|
14
|
-
import
|
|
15
|
-
|
|
12
|
+
import { ReactSortable as Cn } from "react-sortablejs";
|
|
13
|
+
import { pull as Pt } from "lodash-es";
|
|
14
|
+
import xn from "ajv";
|
|
15
|
+
import { useRouter as In } from "@tanstack/react-router";
|
|
16
|
+
const Jt = 81;
|
|
17
|
+
class Kt {
|
|
16
18
|
makeObservable(e, n) {
|
|
17
|
-
return
|
|
19
|
+
return _r(e, n);
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
|
-
class
|
|
22
|
+
class Ni {
|
|
21
23
|
makeObservable(e, n) {
|
|
22
24
|
return e;
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
|
-
var $e = { exports: {} },
|
|
27
|
+
var $e = { exports: {} }, Ce = {};
|
|
26
28
|
/**
|
|
27
29
|
* @license React
|
|
28
30
|
* react-jsx-runtime.production.min.js
|
|
@@ -32,21 +34,21 @@ var $e = { exports: {} }, xe = {};
|
|
|
32
34
|
* This source code is licensed under the MIT license found in the
|
|
33
35
|
* LICENSE file in the root directory of this source tree.
|
|
34
36
|
*/
|
|
35
|
-
var
|
|
36
|
-
function
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
var t =
|
|
37
|
+
var wt;
|
|
38
|
+
function Sn() {
|
|
39
|
+
if (wt) return Ce;
|
|
40
|
+
wt = 1;
|
|
41
|
+
var t = zt, 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 };
|
|
40
42
|
function d(h, m, p) {
|
|
41
|
-
var E,
|
|
43
|
+
var E, R = {}, I = null, $ = null;
|
|
42
44
|
p !== void 0 && (I = "" + p), m.key !== void 0 && (I = "" + m.key), m.ref !== void 0 && ($ = m.ref);
|
|
43
|
-
for (E in m) i.call(m, E) && !l.hasOwnProperty(E) && (
|
|
44
|
-
if (h && h.defaultProps) for (E in m = h.defaultProps, m)
|
|
45
|
-
return { $$typeof: e, type: h, key: I, ref: $, props:
|
|
45
|
+
for (E in m) i.call(m, E) && !l.hasOwnProperty(E) && (R[E] = m[E]);
|
|
46
|
+
if (h && h.defaultProps) for (E in m = h.defaultProps, m) R[E] === void 0 && (R[E] = m[E]);
|
|
47
|
+
return { $$typeof: e, type: h, key: I, ref: $, props: R, _owner: a.current };
|
|
46
48
|
}
|
|
47
|
-
return
|
|
49
|
+
return Ce.Fragment = n, Ce.jsx = d, Ce.jsxs = d, Ce;
|
|
48
50
|
}
|
|
49
|
-
var
|
|
51
|
+
var xe = {};
|
|
50
52
|
/**
|
|
51
53
|
* @license React
|
|
52
54
|
* react-jsx-runtime.development.js
|
|
@@ -56,10 +58,10 @@ var Ce = {};
|
|
|
56
58
|
* This source code is licensed under the MIT license found in the
|
|
57
59
|
* LICENSE file in the root directory of this source tree.
|
|
58
60
|
*/
|
|
59
|
-
var
|
|
60
|
-
function
|
|
61
|
-
return
|
|
62
|
-
var t =
|
|
61
|
+
var Ot;
|
|
62
|
+
function Rn() {
|
|
63
|
+
return Ot || (Ot = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
64
|
+
var t = zt, 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"), d = Symbol.for("react.provider"), h = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), k = Symbol.iterator, W = "@@iterator";
|
|
63
65
|
function Q(r) {
|
|
64
66
|
if (r === null || typeof r != "object")
|
|
65
67
|
return null;
|
|
@@ -78,22 +80,22 @@ function Cn() {
|
|
|
78
80
|
{
|
|
79
81
|
var v = L.ReactDebugCurrentFrame, T = v.getStackAddendum();
|
|
80
82
|
T !== "" && (s += "%s", u = u.concat([T]));
|
|
81
|
-
var
|
|
83
|
+
var S = u.map(function(b) {
|
|
82
84
|
return String(b);
|
|
83
85
|
});
|
|
84
|
-
|
|
86
|
+
S.unshift("Warning: " + s), Function.prototype.apply.call(console[r], console, S);
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
var O = !1, c = !1, V = !1, he = !1, Pe = !1, we;
|
|
88
90
|
we = Symbol.for("react.module.reference");
|
|
89
|
-
function
|
|
90
|
-
return !!(typeof r == "string" || typeof r == "function" || r === i || r === l || Pe || r === a || r === p || r === E || he || r === $ || O || c || V || typeof r == "object" && r !== null && (r.$$typeof === I || r.$$typeof ===
|
|
91
|
+
function Ve(r) {
|
|
92
|
+
return !!(typeof r == "string" || typeof r == "function" || r === i || r === l || Pe || r === a || r === p || r === E || he || r === $ || O || c || V || typeof r == "object" && r !== null && (r.$$typeof === I || r.$$typeof === R || r.$$typeof === d || r.$$typeof === h || r.$$typeof === m || // This needs to include all possible module reference object
|
|
91
93
|
// types supported by any Flight configuration anywhere since
|
|
92
94
|
// we don't know which Flight build this will end up being used
|
|
93
95
|
// with.
|
|
94
96
|
r.$$typeof === we || r.getModuleId !== void 0));
|
|
95
97
|
}
|
|
96
|
-
function
|
|
98
|
+
function Ye(r, s, u) {
|
|
97
99
|
var v = r.displayName;
|
|
98
100
|
if (v)
|
|
99
101
|
return v;
|
|
@@ -133,14 +135,14 @@ function Cn() {
|
|
|
133
135
|
var u = r;
|
|
134
136
|
return Oe(u._context) + ".Provider";
|
|
135
137
|
case m:
|
|
136
|
-
return
|
|
137
|
-
case
|
|
138
|
+
return Ye(r, r.render, "ForwardRef");
|
|
139
|
+
case R:
|
|
138
140
|
var v = r.displayName || null;
|
|
139
141
|
return v !== null ? v : K(r.type) || "Memo";
|
|
140
142
|
case I: {
|
|
141
|
-
var T = r,
|
|
143
|
+
var T = r, S = T._payload, b = T._init;
|
|
142
144
|
try {
|
|
143
|
-
return K(b(
|
|
145
|
+
return K(b(S));
|
|
144
146
|
} catch {
|
|
145
147
|
return null;
|
|
146
148
|
}
|
|
@@ -152,7 +154,7 @@ function Cn() {
|
|
|
152
154
|
function je() {
|
|
153
155
|
}
|
|
154
156
|
je.__reactDisabledLog = !0;
|
|
155
|
-
function
|
|
157
|
+
function Be() {
|
|
156
158
|
{
|
|
157
159
|
if (ie === 0) {
|
|
158
160
|
_e = console.log, Ae = console.info, ve = console.warn, ke = console.error, pe = console.group, Me = console.groupCollapsed, Fe = console.groupEnd;
|
|
@@ -175,7 +177,7 @@ function Cn() {
|
|
|
175
177
|
ie++;
|
|
176
178
|
}
|
|
177
179
|
}
|
|
178
|
-
function
|
|
180
|
+
function We() {
|
|
179
181
|
{
|
|
180
182
|
if (ie--, ie === 0) {
|
|
181
183
|
var r = {
|
|
@@ -226,8 +228,8 @@ function Cn() {
|
|
|
226
228
|
}
|
|
227
229
|
var be = !1, ce;
|
|
228
230
|
{
|
|
229
|
-
var
|
|
230
|
-
ce = new
|
|
231
|
+
var Ue = typeof WeakMap == "function" ? WeakMap : Map;
|
|
232
|
+
ce = new Ue();
|
|
231
233
|
}
|
|
232
234
|
function f(r, s) {
|
|
233
235
|
if (!r || be)
|
|
@@ -241,8 +243,8 @@ function Cn() {
|
|
|
241
243
|
be = !0;
|
|
242
244
|
var T = Error.prepareStackTrace;
|
|
243
245
|
Error.prepareStackTrace = void 0;
|
|
244
|
-
var
|
|
245
|
-
|
|
246
|
+
var S;
|
|
247
|
+
S = ye.current, ye.current = null, Be();
|
|
246
248
|
try {
|
|
247
249
|
if (s) {
|
|
248
250
|
var b = function() {
|
|
@@ -295,7 +297,7 @@ function Cn() {
|
|
|
295
297
|
}
|
|
296
298
|
}
|
|
297
299
|
} finally {
|
|
298
|
-
be = !1, ye.current =
|
|
300
|
+
be = !1, ye.current = S, We(), Error.prepareStackTrace = T;
|
|
299
301
|
}
|
|
300
302
|
var fe = r ? r.displayName || r.name : "", ae = fe ? le(fe) : "";
|
|
301
303
|
return typeof r == "function" && ce.set(r, ae), ae;
|
|
@@ -324,31 +326,31 @@ function Cn() {
|
|
|
324
326
|
switch (r.$$typeof) {
|
|
325
327
|
case m:
|
|
326
328
|
return Ee(r.render);
|
|
327
|
-
case
|
|
329
|
+
case R:
|
|
328
330
|
return oe(r.type, s, u);
|
|
329
331
|
case I: {
|
|
330
|
-
var v = r, T = v._payload,
|
|
332
|
+
var v = r, T = v._payload, S = v._init;
|
|
331
333
|
try {
|
|
332
|
-
return oe(
|
|
334
|
+
return oe(S(T), s, u);
|
|
333
335
|
} catch {
|
|
334
336
|
}
|
|
335
337
|
}
|
|
336
338
|
}
|
|
337
339
|
return "";
|
|
338
340
|
}
|
|
339
|
-
var Te = Object.prototype.hasOwnProperty,
|
|
341
|
+
var Te = Object.prototype.hasOwnProperty, ft = {}, mt = L.ReactDebugCurrentFrame;
|
|
340
342
|
function Ne(r) {
|
|
341
343
|
if (r) {
|
|
342
344
|
var s = r._owner, u = oe(r.type, r._source, s ? s.type : null);
|
|
343
|
-
|
|
345
|
+
mt.setExtraStackFrame(u);
|
|
344
346
|
} else
|
|
345
|
-
|
|
347
|
+
mt.setExtraStackFrame(null);
|
|
346
348
|
}
|
|
347
|
-
function
|
|
349
|
+
function ar(r, s, u, v, T) {
|
|
348
350
|
{
|
|
349
|
-
var
|
|
351
|
+
var S = Function.call.bind(Te);
|
|
350
352
|
for (var b in r)
|
|
351
|
-
if (
|
|
353
|
+
if (S(r, b)) {
|
|
352
354
|
var g = void 0;
|
|
353
355
|
try {
|
|
354
356
|
if (typeof r[b] != "function") {
|
|
@@ -359,41 +361,41 @@ function Cn() {
|
|
|
359
361
|
} catch (_) {
|
|
360
362
|
g = _;
|
|
361
363
|
}
|
|
362
|
-
g && !(g instanceof Error) && (Ne(T), P("%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", u, b, typeof g), Ne(null)), g instanceof Error && !(g.message in
|
|
364
|
+
g && !(g instanceof Error) && (Ne(T), P("%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", u, b, typeof g), Ne(null)), g instanceof Error && !(g.message in ft) && (ft[g.message] = !0, Ne(T), P("Failed %s type: %s", u, g.message), Ne(null));
|
|
363
365
|
}
|
|
364
366
|
}
|
|
365
367
|
}
|
|
366
|
-
var
|
|
367
|
-
function
|
|
368
|
-
return
|
|
368
|
+
var sr = Array.isArray;
|
|
369
|
+
function qe(r) {
|
|
370
|
+
return sr(r);
|
|
369
371
|
}
|
|
370
|
-
function
|
|
372
|
+
function lr(r) {
|
|
371
373
|
{
|
|
372
374
|
var s = typeof Symbol == "function" && Symbol.toStringTag, u = s && r[Symbol.toStringTag] || r.constructor.name || "Object";
|
|
373
375
|
return u;
|
|
374
376
|
}
|
|
375
377
|
}
|
|
376
|
-
function
|
|
378
|
+
function cr(r) {
|
|
377
379
|
try {
|
|
378
|
-
return
|
|
380
|
+
return ht(r), !1;
|
|
379
381
|
} catch {
|
|
380
382
|
return !0;
|
|
381
383
|
}
|
|
382
384
|
}
|
|
383
|
-
function
|
|
385
|
+
function ht(r) {
|
|
384
386
|
return "" + r;
|
|
385
387
|
}
|
|
386
|
-
function
|
|
387
|
-
if (
|
|
388
|
-
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
388
|
+
function vt(r) {
|
|
389
|
+
if (cr(r))
|
|
390
|
+
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", lr(r)), ht(r);
|
|
389
391
|
}
|
|
390
|
-
var
|
|
392
|
+
var pt = L.ReactCurrentOwner, ur = {
|
|
391
393
|
key: !0,
|
|
392
394
|
ref: !0,
|
|
393
395
|
__self: !0,
|
|
394
396
|
__source: !0
|
|
395
|
-
},
|
|
396
|
-
function
|
|
397
|
+
}, yt, gt;
|
|
398
|
+
function dr(r) {
|
|
397
399
|
if (Te.call(r, "ref")) {
|
|
398
400
|
var s = Object.getOwnPropertyDescriptor(r, "ref").get;
|
|
399
401
|
if (s && s.isReactWarning)
|
|
@@ -401,7 +403,7 @@ function Cn() {
|
|
|
401
403
|
}
|
|
402
404
|
return r.ref !== void 0;
|
|
403
405
|
}
|
|
404
|
-
function
|
|
406
|
+
function fr(r) {
|
|
405
407
|
if (Te.call(r, "key")) {
|
|
406
408
|
var s = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
407
409
|
if (s && s.isReactWarning)
|
|
@@ -409,13 +411,13 @@ function Cn() {
|
|
|
409
411
|
}
|
|
410
412
|
return r.key !== void 0;
|
|
411
413
|
}
|
|
412
|
-
function
|
|
413
|
-
typeof r.ref == "string" &&
|
|
414
|
+
function mr(r, s) {
|
|
415
|
+
typeof r.ref == "string" && pt.current;
|
|
414
416
|
}
|
|
415
|
-
function
|
|
417
|
+
function hr(r, s) {
|
|
416
418
|
{
|
|
417
419
|
var u = function() {
|
|
418
|
-
|
|
420
|
+
yt || (yt = !0, P("%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));
|
|
419
421
|
};
|
|
420
422
|
u.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
421
423
|
get: u,
|
|
@@ -423,10 +425,10 @@ function Cn() {
|
|
|
423
425
|
});
|
|
424
426
|
}
|
|
425
427
|
}
|
|
426
|
-
function
|
|
428
|
+
function vr(r, s) {
|
|
427
429
|
{
|
|
428
430
|
var u = function() {
|
|
429
|
-
|
|
431
|
+
gt || (gt = !0, P("%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));
|
|
430
432
|
};
|
|
431
433
|
u.isReactWarning = !0, Object.defineProperty(r, "ref", {
|
|
432
434
|
get: u,
|
|
@@ -434,7 +436,7 @@ function Cn() {
|
|
|
434
436
|
});
|
|
435
437
|
}
|
|
436
438
|
}
|
|
437
|
-
var
|
|
439
|
+
var pr = function(r, s, u, v, T, S, b) {
|
|
438
440
|
var g = {
|
|
439
441
|
// This tag allows us to uniquely identify this as a React Element
|
|
440
442
|
$$typeof: e,
|
|
@@ -444,7 +446,7 @@ function Cn() {
|
|
|
444
446
|
ref: u,
|
|
445
447
|
props: b,
|
|
446
448
|
// Record the component responsible for creating this element.
|
|
447
|
-
_owner:
|
|
449
|
+
_owner: S
|
|
448
450
|
};
|
|
449
451
|
return g._store = {}, Object.defineProperty(g._store, "validated", {
|
|
450
452
|
configurable: !1,
|
|
@@ -463,41 +465,41 @@ function Cn() {
|
|
|
463
465
|
value: T
|
|
464
466
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
465
467
|
};
|
|
466
|
-
function
|
|
468
|
+
function yr(r, s, u, v, T) {
|
|
467
469
|
{
|
|
468
|
-
var
|
|
469
|
-
u !== void 0 && (
|
|
470
|
-
for (
|
|
471
|
-
Te.call(s,
|
|
470
|
+
var S, b = {}, g = null, z = null;
|
|
471
|
+
u !== void 0 && (vt(u), g = "" + u), fr(s) && (vt(s.key), g = "" + s.key), dr(s) && (z = s.ref, mr(s, T));
|
|
472
|
+
for (S in s)
|
|
473
|
+
Te.call(s, S) && !ur.hasOwnProperty(S) && (b[S] = s[S]);
|
|
472
474
|
if (r && r.defaultProps) {
|
|
473
475
|
var _ = r.defaultProps;
|
|
474
|
-
for (
|
|
475
|
-
b[
|
|
476
|
+
for (S in _)
|
|
477
|
+
b[S] === void 0 && (b[S] = _[S]);
|
|
476
478
|
}
|
|
477
479
|
if (g || z) {
|
|
478
480
|
var F = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
479
|
-
g &&
|
|
481
|
+
g && hr(b, F), z && vr(b, F);
|
|
480
482
|
}
|
|
481
|
-
return
|
|
483
|
+
return pr(r, g, z, T, v, pt.current, b);
|
|
482
484
|
}
|
|
483
485
|
}
|
|
484
|
-
var
|
|
486
|
+
var He = L.ReactCurrentOwner, bt = L.ReactDebugCurrentFrame;
|
|
485
487
|
function de(r) {
|
|
486
488
|
if (r) {
|
|
487
489
|
var s = r._owner, u = oe(r.type, r._source, s ? s.type : null);
|
|
488
|
-
|
|
490
|
+
bt.setExtraStackFrame(u);
|
|
489
491
|
} else
|
|
490
|
-
|
|
492
|
+
bt.setExtraStackFrame(null);
|
|
491
493
|
}
|
|
492
494
|
var Ge;
|
|
493
495
|
Ge = !1;
|
|
494
|
-
function
|
|
496
|
+
function Je(r) {
|
|
495
497
|
return typeof r == "object" && r !== null && r.$$typeof === e;
|
|
496
498
|
}
|
|
497
|
-
function
|
|
499
|
+
function Et() {
|
|
498
500
|
{
|
|
499
|
-
if (
|
|
500
|
-
var r = K(
|
|
501
|
+
if (He.current) {
|
|
502
|
+
var r = K(He.current.type);
|
|
501
503
|
if (r)
|
|
502
504
|
return `
|
|
503
505
|
|
|
@@ -506,13 +508,13 @@ Check the render method of \`` + r + "`.";
|
|
|
506
508
|
return "";
|
|
507
509
|
}
|
|
508
510
|
}
|
|
509
|
-
function
|
|
511
|
+
function gr(r) {
|
|
510
512
|
return "";
|
|
511
513
|
}
|
|
512
|
-
var
|
|
513
|
-
function
|
|
514
|
+
var Tt = {};
|
|
515
|
+
function br(r) {
|
|
514
516
|
{
|
|
515
|
-
var s =
|
|
517
|
+
var s = Et();
|
|
516
518
|
if (!s) {
|
|
517
519
|
var u = typeof r == "string" ? r : r.displayName || r.name;
|
|
518
520
|
u && (s = `
|
|
@@ -522,39 +524,39 @@ Check the top-level render call using <` + u + ">.");
|
|
|
522
524
|
return s;
|
|
523
525
|
}
|
|
524
526
|
}
|
|
525
|
-
function
|
|
527
|
+
function Ct(r, s) {
|
|
526
528
|
{
|
|
527
529
|
if (!r._store || r._store.validated || r.key != null)
|
|
528
530
|
return;
|
|
529
531
|
r._store.validated = !0;
|
|
530
|
-
var u =
|
|
531
|
-
if (
|
|
532
|
+
var u = br(s);
|
|
533
|
+
if (Tt[u])
|
|
532
534
|
return;
|
|
533
|
-
|
|
535
|
+
Tt[u] = !0;
|
|
534
536
|
var v = "";
|
|
535
|
-
r && r._owner && r._owner !==
|
|
537
|
+
r && r._owner && r._owner !== He.current && (v = " It was passed a child from " + K(r._owner.type) + "."), de(r), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), de(null);
|
|
536
538
|
}
|
|
537
539
|
}
|
|
538
540
|
function xt(r, s) {
|
|
539
541
|
{
|
|
540
542
|
if (typeof r != "object")
|
|
541
543
|
return;
|
|
542
|
-
if (
|
|
544
|
+
if (qe(r))
|
|
543
545
|
for (var u = 0; u < r.length; u++) {
|
|
544
546
|
var v = r[u];
|
|
545
|
-
|
|
547
|
+
Je(v) && Ct(v, s);
|
|
546
548
|
}
|
|
547
|
-
else if (
|
|
549
|
+
else if (Je(r))
|
|
548
550
|
r._store && (r._store.validated = !0);
|
|
549
551
|
else if (r) {
|
|
550
552
|
var T = Q(r);
|
|
551
553
|
if (typeof T == "function" && T !== r.entries)
|
|
552
|
-
for (var
|
|
553
|
-
|
|
554
|
+
for (var S = T.call(r), b; !(b = S.next()).done; )
|
|
555
|
+
Je(b.value) && Ct(b.value, s);
|
|
554
556
|
}
|
|
555
557
|
}
|
|
556
558
|
}
|
|
557
|
-
function
|
|
559
|
+
function Er(r) {
|
|
558
560
|
{
|
|
559
561
|
var s = r.type;
|
|
560
562
|
if (s == null || typeof s == "string")
|
|
@@ -564,13 +566,13 @@ Check the top-level render call using <` + u + ">.");
|
|
|
564
566
|
u = s.propTypes;
|
|
565
567
|
else if (typeof s == "object" && (s.$$typeof === m || // Note: Memo only checks outer props here.
|
|
566
568
|
// Inner props are checked in the reconciler.
|
|
567
|
-
s.$$typeof ===
|
|
569
|
+
s.$$typeof === R))
|
|
568
570
|
u = s.propTypes;
|
|
569
571
|
else
|
|
570
572
|
return;
|
|
571
573
|
if (u) {
|
|
572
574
|
var v = K(s);
|
|
573
|
-
|
|
575
|
+
ar(u, r.props, "prop", v, r);
|
|
574
576
|
} else if (s.PropTypes !== void 0 && !Ge) {
|
|
575
577
|
Ge = !0;
|
|
576
578
|
var T = K(s);
|
|
@@ -579,7 +581,7 @@ Check the top-level render call using <` + u + ">.");
|
|
|
579
581
|
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
580
582
|
}
|
|
581
583
|
}
|
|
582
|
-
function
|
|
584
|
+
function Tr(r) {
|
|
583
585
|
{
|
|
584
586
|
for (var s = Object.keys(r.props), u = 0; u < s.length; u++) {
|
|
585
587
|
var v = s[u];
|
|
@@ -591,26 +593,26 @@ Check the top-level render call using <` + u + ">.");
|
|
|
591
593
|
r.ref !== null && (de(r), P("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
|
|
592
594
|
}
|
|
593
595
|
}
|
|
594
|
-
var
|
|
595
|
-
function
|
|
596
|
+
var It = {};
|
|
597
|
+
function St(r, s, u, v, T, S) {
|
|
596
598
|
{
|
|
597
|
-
var b =
|
|
599
|
+
var b = Ve(r);
|
|
598
600
|
if (!b) {
|
|
599
601
|
var g = "";
|
|
600
602
|
(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.");
|
|
601
|
-
var z =
|
|
602
|
-
z ? g += z : g +=
|
|
603
|
+
var z = gr();
|
|
604
|
+
z ? g += z : g += Et();
|
|
603
605
|
var _;
|
|
604
|
-
r === null ? _ = "null" :
|
|
606
|
+
r === null ? _ = "null" : qe(r) ? _ = "array" : r !== void 0 && r.$$typeof === e ? (_ = "<" + (K(r.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof r, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, g);
|
|
605
607
|
}
|
|
606
|
-
var F =
|
|
608
|
+
var F = yr(r, s, u, T, S);
|
|
607
609
|
if (F == null)
|
|
608
610
|
return F;
|
|
609
611
|
if (b) {
|
|
610
612
|
var U = s.children;
|
|
611
613
|
if (U !== void 0)
|
|
612
614
|
if (v)
|
|
613
|
-
if (
|
|
615
|
+
if (qe(U)) {
|
|
614
616
|
for (var fe = 0; fe < U.length; fe++)
|
|
615
617
|
xt(U[fe], r);
|
|
616
618
|
Object.freeze && Object.freeze(U);
|
|
@@ -620,37 +622,37 @@ Check the top-level render call using <` + u + ">.");
|
|
|
620
622
|
xt(U, r);
|
|
621
623
|
}
|
|
622
624
|
if (Te.call(s, "key")) {
|
|
623
|
-
var ae = K(r), Y = Object.keys(s).filter(function(
|
|
624
|
-
return
|
|
625
|
-
}),
|
|
626
|
-
if (!
|
|
627
|
-
var
|
|
625
|
+
var ae = K(r), Y = Object.keys(s).filter(function(Pr) {
|
|
626
|
+
return Pr !== "key";
|
|
627
|
+
}), Ke = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
628
|
+
if (!It[ae + Ke]) {
|
|
629
|
+
var Rr = Y.length > 0 ? "{" + Y.join(": ..., ") + ": ...}" : "{}";
|
|
628
630
|
P(`A props object containing a "key" prop is being spread into JSX:
|
|
629
631
|
let props = %s;
|
|
630
632
|
<%s {...props} />
|
|
631
633
|
React keys must be passed directly to JSX without using spread:
|
|
632
634
|
let props = %s;
|
|
633
|
-
<%s key={someKey} {...props} />`,
|
|
635
|
+
<%s key={someKey} {...props} />`, Ke, ae, Rr, ae), It[ae + Ke] = !0;
|
|
634
636
|
}
|
|
635
637
|
}
|
|
636
|
-
return r === i ?
|
|
638
|
+
return r === i ? Tr(F) : Er(F), F;
|
|
637
639
|
}
|
|
638
640
|
}
|
|
639
|
-
function
|
|
640
|
-
return
|
|
641
|
+
function Cr(r, s, u) {
|
|
642
|
+
return St(r, s, u, !0);
|
|
641
643
|
}
|
|
642
|
-
function
|
|
643
|
-
return
|
|
644
|
+
function xr(r, s, u) {
|
|
645
|
+
return St(r, s, u, !1);
|
|
644
646
|
}
|
|
645
|
-
var
|
|
646
|
-
|
|
647
|
-
})()),
|
|
647
|
+
var Ir = xr, Sr = Cr;
|
|
648
|
+
xe.Fragment = i, xe.jsx = Ir, xe.jsxs = Sr;
|
|
649
|
+
})()), xe;
|
|
648
650
|
}
|
|
649
|
-
var
|
|
650
|
-
function
|
|
651
|
-
return
|
|
651
|
+
var _t;
|
|
652
|
+
function Pn() {
|
|
653
|
+
return _t || (_t = 1, process.env.NODE_ENV === "production" ? $e.exports = Sn() : $e.exports = Rn()), $e.exports;
|
|
652
654
|
}
|
|
653
|
-
var
|
|
655
|
+
var Se = Pn(), De = { exports: {} }, C = {};
|
|
654
656
|
/** @license React v16.13.1
|
|
655
657
|
* react-is.production.min.js
|
|
656
658
|
*
|
|
@@ -659,11 +661,11 @@ var Re = In(), De = { exports: {} }, x = {};
|
|
|
659
661
|
* This source code is licensed under the MIT license found in the
|
|
660
662
|
* LICENSE file in the root directory of this source tree.
|
|
661
663
|
*/
|
|
662
|
-
var
|
|
663
|
-
function
|
|
664
|
-
if (
|
|
665
|
-
|
|
666
|
-
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, d = t ? Symbol.for("react.provider") : 60109, h = t ? Symbol.for("react.context") : 60110, m = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, E = t ? Symbol.for("react.forward_ref") : 60112,
|
|
664
|
+
var At;
|
|
665
|
+
function wn() {
|
|
666
|
+
if (At) return C;
|
|
667
|
+
At = 1;
|
|
668
|
+
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, d = t ? Symbol.for("react.provider") : 60109, h = t ? Symbol.for("react.context") : 60110, m = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, E = t ? Symbol.for("react.forward_ref") : 60112, R = t ? Symbol.for("react.suspense") : 60113, I = t ? Symbol.for("react.suspense_list") : 60120, $ = t ? Symbol.for("react.memo") : 60115, k = t ? Symbol.for("react.lazy") : 60116, W = t ? Symbol.for("react.block") : 60121, Q = t ? Symbol.for("react.fundamental") : 60117, L = t ? Symbol.for("react.responder") : 60118, P = t ? Symbol.for("react.scope") : 60119;
|
|
667
669
|
function M(c) {
|
|
668
670
|
if (typeof c == "object" && c !== null) {
|
|
669
671
|
var V = c.$$typeof;
|
|
@@ -675,7 +677,7 @@ function Rn() {
|
|
|
675
677
|
case i:
|
|
676
678
|
case l:
|
|
677
679
|
case a:
|
|
678
|
-
case
|
|
680
|
+
case R:
|
|
679
681
|
return c;
|
|
680
682
|
default:
|
|
681
683
|
switch (c = c && c.$$typeof, c) {
|
|
@@ -697,35 +699,35 @@ function Rn() {
|
|
|
697
699
|
function O(c) {
|
|
698
700
|
return M(c) === p;
|
|
699
701
|
}
|
|
700
|
-
return
|
|
702
|
+
return C.AsyncMode = m, C.ConcurrentMode = p, C.ContextConsumer = h, C.ContextProvider = d, C.Element = e, C.ForwardRef = E, C.Fragment = i, C.Lazy = k, C.Memo = $, C.Portal = n, C.Profiler = l, C.StrictMode = a, C.Suspense = R, C.isAsyncMode = function(c) {
|
|
701
703
|
return O(c) || M(c) === m;
|
|
702
|
-
},
|
|
704
|
+
}, C.isConcurrentMode = O, C.isContextConsumer = function(c) {
|
|
703
705
|
return M(c) === h;
|
|
704
|
-
},
|
|
706
|
+
}, C.isContextProvider = function(c) {
|
|
705
707
|
return M(c) === d;
|
|
706
|
-
},
|
|
708
|
+
}, C.isElement = function(c) {
|
|
707
709
|
return typeof c == "object" && c !== null && c.$$typeof === e;
|
|
708
|
-
},
|
|
710
|
+
}, C.isForwardRef = function(c) {
|
|
709
711
|
return M(c) === E;
|
|
710
|
-
},
|
|
712
|
+
}, C.isFragment = function(c) {
|
|
711
713
|
return M(c) === i;
|
|
712
|
-
},
|
|
714
|
+
}, C.isLazy = function(c) {
|
|
713
715
|
return M(c) === k;
|
|
714
|
-
},
|
|
716
|
+
}, C.isMemo = function(c) {
|
|
715
717
|
return M(c) === $;
|
|
716
|
-
},
|
|
718
|
+
}, C.isPortal = function(c) {
|
|
717
719
|
return M(c) === n;
|
|
718
|
-
},
|
|
720
|
+
}, C.isProfiler = function(c) {
|
|
719
721
|
return M(c) === l;
|
|
720
|
-
},
|
|
722
|
+
}, C.isStrictMode = function(c) {
|
|
721
723
|
return M(c) === a;
|
|
722
|
-
},
|
|
723
|
-
return M(c) ===
|
|
724
|
-
},
|
|
725
|
-
return typeof c == "string" || typeof c == "function" || c === i || c === p || c === l || c === a || c ===
|
|
726
|
-
},
|
|
724
|
+
}, C.isSuspense = function(c) {
|
|
725
|
+
return M(c) === R;
|
|
726
|
+
}, C.isValidElementType = function(c) {
|
|
727
|
+
return typeof c == "string" || typeof c == "function" || c === i || c === p || c === l || c === a || c === R || c === I || typeof c == "object" && c !== null && (c.$$typeof === k || c.$$typeof === $ || c.$$typeof === d || c.$$typeof === h || c.$$typeof === E || c.$$typeof === Q || c.$$typeof === L || c.$$typeof === P || c.$$typeof === W);
|
|
728
|
+
}, C.typeOf = M, C;
|
|
727
729
|
}
|
|
728
|
-
var
|
|
730
|
+
var x = {};
|
|
729
731
|
/** @license React v16.13.1
|
|
730
732
|
* react-is.development.js
|
|
731
733
|
*
|
|
@@ -734,13 +736,13 @@ var C = {};
|
|
|
734
736
|
* This source code is licensed under the MIT license found in the
|
|
735
737
|
* LICENSE file in the root directory of this source tree.
|
|
736
738
|
*/
|
|
737
|
-
var
|
|
738
|
-
function
|
|
739
|
-
return
|
|
740
|
-
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, d = t ? Symbol.for("react.provider") : 60109, h = t ? Symbol.for("react.context") : 60110, m = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, E = t ? Symbol.for("react.forward_ref") : 60112,
|
|
739
|
+
var kt;
|
|
740
|
+
function On() {
|
|
741
|
+
return kt || (kt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
742
|
+
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, d = t ? Symbol.for("react.provider") : 60109, h = t ? Symbol.for("react.context") : 60110, m = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, E = t ? Symbol.for("react.forward_ref") : 60112, R = t ? Symbol.for("react.suspense") : 60113, I = t ? Symbol.for("react.suspense_list") : 60120, $ = t ? Symbol.for("react.memo") : 60115, k = t ? Symbol.for("react.lazy") : 60116, W = t ? Symbol.for("react.block") : 60121, Q = t ? Symbol.for("react.fundamental") : 60117, L = t ? Symbol.for("react.responder") : 60118, P = t ? Symbol.for("react.scope") : 60119;
|
|
741
743
|
function M(f) {
|
|
742
744
|
return typeof f == "string" || typeof f == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
743
|
-
f === i || f === p || f === l || f === a || f ===
|
|
745
|
+
f === i || f === p || f === l || f === a || f === R || f === I || typeof f == "object" && f !== null && (f.$$typeof === k || f.$$typeof === $ || f.$$typeof === d || f.$$typeof === h || f.$$typeof === E || f.$$typeof === Q || f.$$typeof === L || f.$$typeof === P || f.$$typeof === W);
|
|
744
746
|
}
|
|
745
747
|
function O(f) {
|
|
746
748
|
if (typeof f == "object" && f !== null) {
|
|
@@ -754,7 +756,7 @@ function Sn() {
|
|
|
754
756
|
case i:
|
|
755
757
|
case l:
|
|
756
758
|
case a:
|
|
757
|
-
case
|
|
759
|
+
case R:
|
|
758
760
|
return ue;
|
|
759
761
|
default:
|
|
760
762
|
var oe = ue && ue.$$typeof;
|
|
@@ -774,7 +776,7 @@ function Sn() {
|
|
|
774
776
|
}
|
|
775
777
|
}
|
|
776
778
|
}
|
|
777
|
-
var c = m, V = p, he = h, Pe = d, we = e,
|
|
779
|
+
var c = m, V = p, he = h, Pe = d, we = e, Ve = E, Ye = i, Oe = k, K = $, ee = n, ie = l, _e = a, Ae = R, ve = !1;
|
|
778
780
|
function ke(f) {
|
|
779
781
|
return ve || (ve = !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.")), pe(f) || O(f) === m;
|
|
780
782
|
}
|
|
@@ -790,10 +792,10 @@ function Sn() {
|
|
|
790
792
|
function je(f) {
|
|
791
793
|
return typeof f == "object" && f !== null && f.$$typeof === e;
|
|
792
794
|
}
|
|
793
|
-
function
|
|
795
|
+
function Be(f) {
|
|
794
796
|
return O(f) === E;
|
|
795
797
|
}
|
|
796
|
-
function
|
|
798
|
+
function We(f) {
|
|
797
799
|
return O(f) === i;
|
|
798
800
|
}
|
|
799
801
|
function ye(f) {
|
|
@@ -811,21 +813,21 @@ function Sn() {
|
|
|
811
813
|
function ce(f) {
|
|
812
814
|
return O(f) === a;
|
|
813
815
|
}
|
|
814
|
-
function
|
|
815
|
-
return O(f) ===
|
|
816
|
+
function Ue(f) {
|
|
817
|
+
return O(f) === R;
|
|
816
818
|
}
|
|
817
|
-
|
|
818
|
-
})()),
|
|
819
|
+
x.AsyncMode = c, x.ConcurrentMode = V, x.ContextConsumer = he, x.ContextProvider = Pe, x.Element = we, x.ForwardRef = Ve, x.Fragment = Ye, x.Lazy = Oe, x.Memo = K, x.Portal = ee, x.Profiler = ie, x.StrictMode = _e, x.Suspense = Ae, x.isAsyncMode = ke, x.isConcurrentMode = pe, x.isContextConsumer = Me, x.isContextProvider = Fe, x.isElement = je, x.isForwardRef = Be, x.isFragment = We, x.isLazy = ye, x.isMemo = ge, x.isPortal = le, x.isProfiler = be, x.isStrictMode = ce, x.isSuspense = Ue, x.isValidElementType = M, x.typeOf = O;
|
|
820
|
+
})()), x;
|
|
819
821
|
}
|
|
820
|
-
var
|
|
821
|
-
function
|
|
822
|
-
return
|
|
822
|
+
var Mt;
|
|
823
|
+
function _n() {
|
|
824
|
+
return Mt || (Mt = 1, process.env.NODE_ENV === "production" ? De.exports = wn() : De.exports = On()), De.exports;
|
|
823
825
|
}
|
|
824
|
-
var
|
|
825
|
-
function
|
|
826
|
-
if (
|
|
827
|
-
|
|
828
|
-
var t =
|
|
826
|
+
var Ze, Ft;
|
|
827
|
+
function An() {
|
|
828
|
+
if (Ft) return Ze;
|
|
829
|
+
Ft = 1;
|
|
830
|
+
var t = _n(), e = {
|
|
829
831
|
childContextTypes: !0,
|
|
830
832
|
contextType: !0,
|
|
831
833
|
contextTypes: !0,
|
|
@@ -863,11 +865,11 @@ function wn() {
|
|
|
863
865
|
function d(k) {
|
|
864
866
|
return t.isMemo(k) ? a : l[k.$$typeof] || e;
|
|
865
867
|
}
|
|
866
|
-
var h = Object.defineProperty, m = Object.getOwnPropertyNames, p = Object.getOwnPropertySymbols, E = Object.getOwnPropertyDescriptor,
|
|
868
|
+
var h = Object.defineProperty, m = Object.getOwnPropertyNames, p = Object.getOwnPropertySymbols, E = Object.getOwnPropertyDescriptor, R = Object.getPrototypeOf, I = Object.prototype;
|
|
867
869
|
function $(k, W, Q) {
|
|
868
870
|
if (typeof W != "string") {
|
|
869
871
|
if (I) {
|
|
870
|
-
var L =
|
|
872
|
+
var L = R(W);
|
|
871
873
|
L && L !== I && $(k, L, Q);
|
|
872
874
|
}
|
|
873
875
|
var P = m(W);
|
|
@@ -885,17 +887,17 @@ function wn() {
|
|
|
885
887
|
}
|
|
886
888
|
return k;
|
|
887
889
|
}
|
|
888
|
-
return
|
|
890
|
+
return Ze = $, Ze;
|
|
889
891
|
}
|
|
890
|
-
|
|
891
|
-
var
|
|
892
|
-
function
|
|
892
|
+
An();
|
|
893
|
+
var kn = !0;
|
|
894
|
+
function Mn(t, e, n) {
|
|
893
895
|
var i = "";
|
|
894
896
|
return n.split(" ").forEach(function(a) {
|
|
895
897
|
t[a] !== void 0 ? e.push(t[a] + ";") : a && (i += a + " ");
|
|
896
898
|
}), i;
|
|
897
899
|
}
|
|
898
|
-
var
|
|
900
|
+
var Xt = function(e, n, i) {
|
|
899
901
|
var a = e.key + "-" + n.name;
|
|
900
902
|
// we only need to add the styles to the registered cache if the
|
|
901
903
|
// class name could be used further down
|
|
@@ -906,9 +908,9 @@ var Jt = function(e, n, i) {
|
|
|
906
908
|
// in node since emotion-server relies on whether a style is in
|
|
907
909
|
// the registered cache to know whether a style is global or not
|
|
908
910
|
// also, note that this check will be dead code eliminated in the browser
|
|
909
|
-
|
|
910
|
-
},
|
|
911
|
-
|
|
911
|
+
kn === !1) && e.registered[a] === void 0 && (e.registered[a] = n.styles);
|
|
912
|
+
}, Fn = function(e, n, i) {
|
|
913
|
+
Xt(e, n, i);
|
|
912
914
|
var a = e.key + "-" + n.name;
|
|
913
915
|
if (e.inserted[n.name] === void 0) {
|
|
914
916
|
var l = n;
|
|
@@ -917,7 +919,7 @@ var Jt = function(e, n, i) {
|
|
|
917
919
|
while (l !== void 0);
|
|
918
920
|
}
|
|
919
921
|
};
|
|
920
|
-
function
|
|
922
|
+
function jn(t) {
|
|
921
923
|
for (var e = 0, n, i = 0, a = t.length; a >= 4; ++i, a -= 4)
|
|
922
924
|
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): */
|
|
923
925
|
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
|
|
@@ -936,7 +938,7 @@ function kn(t) {
|
|
|
936
938
|
return e ^= e >>> 13, e = /* Math.imul(h, m): */
|
|
937
939
|
(e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
|
|
938
940
|
}
|
|
939
|
-
var
|
|
941
|
+
var Nn = {
|
|
940
942
|
animationIterationCount: 1,
|
|
941
943
|
aspectRatio: 1,
|
|
942
944
|
borderImageOutset: 1,
|
|
@@ -986,24 +988,24 @@ var Mn = {
|
|
|
986
988
|
strokeOpacity: 1,
|
|
987
989
|
strokeWidth: 1
|
|
988
990
|
};
|
|
989
|
-
function
|
|
991
|
+
function $n(t) {
|
|
990
992
|
var e = /* @__PURE__ */ Object.create(null);
|
|
991
993
|
return function(n) {
|
|
992
994
|
return e[n] === void 0 && (e[n] = t(n)), e[n];
|
|
993
995
|
};
|
|
994
996
|
}
|
|
995
|
-
var
|
|
997
|
+
var Dn = /[A-Z]|^ms/g, zn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Zt = function(e) {
|
|
996
998
|
return e.charCodeAt(1) === 45;
|
|
997
|
-
},
|
|
999
|
+
}, jt = function(e) {
|
|
998
1000
|
return e != null && typeof e != "boolean";
|
|
999
|
-
},
|
|
1000
|
-
return
|
|
1001
|
-
}),
|
|
1001
|
+
}, Qe = /* @__PURE__ */ $n(function(t) {
|
|
1002
|
+
return Zt(t) ? t : t.replace(Dn, "-$&").toLowerCase();
|
|
1003
|
+
}), Nt = function(e, n) {
|
|
1002
1004
|
switch (e) {
|
|
1003
1005
|
case "animation":
|
|
1004
1006
|
case "animationName":
|
|
1005
1007
|
if (typeof n == "string")
|
|
1006
|
-
return n.replace(
|
|
1008
|
+
return n.replace(zn, function(i, a, l) {
|
|
1007
1009
|
return X = {
|
|
1008
1010
|
name: a,
|
|
1009
1011
|
styles: l,
|
|
@@ -1011,9 +1013,9 @@ var jn = /[A-Z]|^ms/g, Nn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Kt = function(e) {
|
|
|
1011
1013
|
}, a;
|
|
1012
1014
|
});
|
|
1013
1015
|
}
|
|
1014
|
-
return
|
|
1016
|
+
return Nn[e] !== 1 && !Zt(e) && typeof n == "number" && n !== 0 ? n + "px" : n;
|
|
1015
1017
|
};
|
|
1016
|
-
function
|
|
1018
|
+
function Re(t, e, n) {
|
|
1017
1019
|
if (n == null)
|
|
1018
1020
|
return "";
|
|
1019
1021
|
var i = n;
|
|
@@ -1043,12 +1045,12 @@ function Se(t, e, n) {
|
|
|
1043
1045
|
var h = l.styles + ";";
|
|
1044
1046
|
return h;
|
|
1045
1047
|
}
|
|
1046
|
-
return
|
|
1048
|
+
return Ln(t, e, n);
|
|
1047
1049
|
}
|
|
1048
1050
|
case "function": {
|
|
1049
1051
|
if (t !== void 0) {
|
|
1050
1052
|
var m = X, p = n(t);
|
|
1051
|
-
return X = m,
|
|
1053
|
+
return X = m, Re(t, e, p);
|
|
1052
1054
|
}
|
|
1053
1055
|
break;
|
|
1054
1056
|
}
|
|
@@ -1056,26 +1058,26 @@ function Se(t, e, n) {
|
|
|
1056
1058
|
var E = n;
|
|
1057
1059
|
return E;
|
|
1058
1060
|
}
|
|
1059
|
-
function
|
|
1061
|
+
function Ln(t, e, n) {
|
|
1060
1062
|
var i = "";
|
|
1061
1063
|
if (Array.isArray(n))
|
|
1062
1064
|
for (var a = 0; a < n.length; a++)
|
|
1063
|
-
i +=
|
|
1065
|
+
i += Re(t, e, n[a]) + ";";
|
|
1064
1066
|
else
|
|
1065
1067
|
for (var l in n) {
|
|
1066
1068
|
var d = n[l];
|
|
1067
1069
|
if (typeof d != "object") {
|
|
1068
1070
|
var h = d;
|
|
1069
|
-
|
|
1071
|
+
jt(h) && (i += Qe(l) + ":" + Nt(l, h) + ";");
|
|
1070
1072
|
} else if (Array.isArray(d) && typeof d[0] == "string" && e == null)
|
|
1071
1073
|
for (var m = 0; m < d.length; m++)
|
|
1072
|
-
|
|
1074
|
+
jt(d[m]) && (i += Qe(l) + ":" + Nt(l, d[m]) + ";");
|
|
1073
1075
|
else {
|
|
1074
|
-
var p =
|
|
1076
|
+
var p = Re(t, e, d);
|
|
1075
1077
|
switch (l) {
|
|
1076
1078
|
case "animation":
|
|
1077
1079
|
case "animationName": {
|
|
1078
|
-
i +=
|
|
1080
|
+
i += Qe(l) + ":" + p + ";";
|
|
1079
1081
|
break;
|
|
1080
1082
|
}
|
|
1081
1083
|
default:
|
|
@@ -1085,92 +1087,92 @@ function $n(t, e, n) {
|
|
|
1085
1087
|
}
|
|
1086
1088
|
return i;
|
|
1087
1089
|
}
|
|
1088
|
-
var
|
|
1089
|
-
function
|
|
1090
|
+
var $t = /label:\s*([^\s;{]+)\s*(;|$)/g, X;
|
|
1091
|
+
function Vn(t, e, n) {
|
|
1090
1092
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
1091
1093
|
return t[0];
|
|
1092
1094
|
var i = !0, a = "";
|
|
1093
1095
|
X = void 0;
|
|
1094
1096
|
var l = t[0];
|
|
1095
1097
|
if (l == null || l.raw === void 0)
|
|
1096
|
-
i = !1, a +=
|
|
1098
|
+
i = !1, a += Re(n, e, l);
|
|
1097
1099
|
else {
|
|
1098
1100
|
var d = l;
|
|
1099
1101
|
a += d[0];
|
|
1100
1102
|
}
|
|
1101
1103
|
for (var h = 1; h < t.length; h++)
|
|
1102
|
-
if (a +=
|
|
1104
|
+
if (a += Re(n, e, t[h]), i) {
|
|
1103
1105
|
var m = l;
|
|
1104
1106
|
a += m[h];
|
|
1105
1107
|
}
|
|
1106
|
-
|
|
1107
|
-
for (var p = "", E; (E =
|
|
1108
|
+
$t.lastIndex = 0;
|
|
1109
|
+
for (var p = "", E; (E = $t.exec(a)) !== null; )
|
|
1108
1110
|
p += "-" + E[1];
|
|
1109
|
-
var
|
|
1111
|
+
var R = jn(a) + p;
|
|
1110
1112
|
return {
|
|
1111
|
-
name:
|
|
1113
|
+
name: R,
|
|
1112
1114
|
styles: a,
|
|
1113
1115
|
next: X
|
|
1114
1116
|
};
|
|
1115
1117
|
}
|
|
1116
|
-
var
|
|
1118
|
+
var Yn = function(e) {
|
|
1117
1119
|
return e();
|
|
1118
|
-
},
|
|
1120
|
+
}, Bn = te.useInsertionEffect ? te.useInsertionEffect : !1, Wn = Bn || Yn, Qt = /* @__PURE__ */ te.createContext(
|
|
1119
1121
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1120
1122
|
// because this module is primarily intended for the browser and node
|
|
1121
1123
|
// but it's also required in react native and similar environments sometimes
|
|
1122
1124
|
// and we could have a special build just for that
|
|
1123
1125
|
// but this is much easier and the native packages
|
|
1124
1126
|
// might use a different theme context in the future anyway
|
|
1125
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */
|
|
1127
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ jr({
|
|
1126
1128
|
key: "css"
|
|
1127
1129
|
}) : null
|
|
1128
1130
|
);
|
|
1129
|
-
|
|
1130
|
-
var
|
|
1131
|
-
return /* @__PURE__ */
|
|
1132
|
-
var a =
|
|
1131
|
+
Qt.Provider;
|
|
1132
|
+
var Un = function(e) {
|
|
1133
|
+
return /* @__PURE__ */ kr(function(n, i) {
|
|
1134
|
+
var a = at(Qt);
|
|
1133
1135
|
return e(n, a, i);
|
|
1134
1136
|
});
|
|
1135
|
-
},
|
|
1137
|
+
}, qn = /* @__PURE__ */ te.createContext({}), ze = {}.hasOwnProperty, nt = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", er = function(e, n) {
|
|
1136
1138
|
var i = {};
|
|
1137
1139
|
for (var a in n)
|
|
1138
1140
|
ze.call(n, a) && (i[a] = n[a]);
|
|
1139
|
-
return i[
|
|
1140
|
-
},
|
|
1141
|
+
return i[nt] = e, i;
|
|
1142
|
+
}, Hn = function(e) {
|
|
1141
1143
|
var n = e.cache, i = e.serialized, a = e.isStringTag;
|
|
1142
|
-
return
|
|
1143
|
-
return
|
|
1144
|
+
return Xt(n, i, a), Wn(function() {
|
|
1145
|
+
return Fn(n, i, a);
|
|
1144
1146
|
}), null;
|
|
1145
|
-
},
|
|
1147
|
+
}, Gn = /* @__PURE__ */ Un(function(t, e, n) {
|
|
1146
1148
|
var i = t.css;
|
|
1147
1149
|
typeof i == "string" && e.registered[i] !== void 0 && (i = e.registered[i]);
|
|
1148
|
-
var a = t[
|
|
1149
|
-
typeof t.className == "string" ? d =
|
|
1150
|
-
var h =
|
|
1150
|
+
var a = t[nt], l = [i], d = "";
|
|
1151
|
+
typeof t.className == "string" ? d = Mn(e.registered, l, t.className) : t.className != null && (d = t.className + " ");
|
|
1152
|
+
var h = Vn(l, void 0, te.useContext(qn));
|
|
1151
1153
|
d += e.key + "-" + h.name;
|
|
1152
1154
|
var m = {};
|
|
1153
1155
|
for (var p in t)
|
|
1154
|
-
ze.call(t, p) && p !== "css" && p !==
|
|
1155
|
-
return m.className = d, n && (m.ref = n), /* @__PURE__ */ te.createElement(te.Fragment, null, /* @__PURE__ */ te.createElement(
|
|
1156
|
+
ze.call(t, p) && p !== "css" && p !== nt && (m[p] = t[p]);
|
|
1157
|
+
return m.className = d, n && (m.ref = n), /* @__PURE__ */ te.createElement(te.Fragment, null, /* @__PURE__ */ te.createElement(Hn, {
|
|
1156
1158
|
cache: e,
|
|
1157
1159
|
serialized: h,
|
|
1158
1160
|
isStringTag: typeof a == "string"
|
|
1159
1161
|
}), /* @__PURE__ */ te.createElement(a, m));
|
|
1160
|
-
}),
|
|
1161
|
-
return ze.call(n, "css") ?
|
|
1162
|
+
}), tr = Gn, Le = Se.Fragment, o = function(e, n, i) {
|
|
1163
|
+
return ze.call(n, "css") ? Se.jsx(tr, er(e, n), i) : Se.jsx(e, n, i);
|
|
1162
1164
|
}, j = function(e, n, i) {
|
|
1163
|
-
return ze.call(n, "css") ?
|
|
1165
|
+
return ze.call(n, "css") ? Se.jsxs(tr, er(e, n), i) : Se.jsxs(e, n, i);
|
|
1164
1166
|
};
|
|
1165
|
-
const
|
|
1167
|
+
const Jn = ({
|
|
1166
1168
|
onCancel: t,
|
|
1167
1169
|
onSave: e
|
|
1168
1170
|
}) => {
|
|
1169
|
-
const n =
|
|
1170
|
-
return /* @__PURE__ */ j(
|
|
1171
|
-
/* @__PURE__ */ o(
|
|
1172
|
-
/* @__PURE__ */ o(
|
|
1173
|
-
|
|
1171
|
+
const n = Lr({ prefix: "modalForm" }), [i, a] = q(""), [l, d] = q(""), [h, m] = q(!1);
|
|
1172
|
+
return /* @__PURE__ */ j(qr, { onClose: t, initialFocus: "[name=url]", children: [
|
|
1173
|
+
/* @__PURE__ */ o(Yr, { children: /* @__PURE__ */ o(Vr, { children: "Add video" }) }),
|
|
1174
|
+
/* @__PURE__ */ o(Wr, { children: /* @__PURE__ */ j(
|
|
1175
|
+
Br,
|
|
1174
1176
|
{
|
|
1175
1177
|
id: n,
|
|
1176
1178
|
component: "form",
|
|
@@ -1183,7 +1185,7 @@ const qn = ({
|
|
|
1183
1185
|
}
|
|
1184
1186
|
},
|
|
1185
1187
|
children: [
|
|
1186
|
-
/* @__PURE__ */ o(
|
|
1188
|
+
/* @__PURE__ */ o(tt, { label: "URL", children: /* @__PURE__ */ o(
|
|
1187
1189
|
Rt,
|
|
1188
1190
|
{
|
|
1189
1191
|
name: "url",
|
|
@@ -1191,7 +1193,7 @@ const qn = ({
|
|
|
1191
1193
|
onChange: (p) => a(p.target.value)
|
|
1192
1194
|
}
|
|
1193
1195
|
) }),
|
|
1194
|
-
/* @__PURE__ */ o(
|
|
1196
|
+
/* @__PURE__ */ o(tt, { label: "Title", children: /* @__PURE__ */ o(
|
|
1195
1197
|
Rt,
|
|
1196
1198
|
{
|
|
1197
1199
|
name: "title",
|
|
@@ -1202,8 +1204,8 @@ const qn = ({
|
|
|
1202
1204
|
]
|
|
1203
1205
|
}
|
|
1204
1206
|
) }),
|
|
1205
|
-
/* @__PURE__ */ j(
|
|
1206
|
-
/* @__PURE__ */ o(
|
|
1207
|
+
/* @__PURE__ */ j(Ur, { children: [
|
|
1208
|
+
/* @__PURE__ */ o(Vt, { onClick: t, children: "Cancel" }),
|
|
1207
1209
|
/* @__PURE__ */ o(
|
|
1208
1210
|
re,
|
|
1209
1211
|
{
|
|
@@ -1217,7 +1219,7 @@ const qn = ({
|
|
|
1217
1219
|
)
|
|
1218
1220
|
] })
|
|
1219
1221
|
] });
|
|
1220
|
-
},
|
|
1222
|
+
}, Dt = me(
|
|
1221
1223
|
({ onSave: t }) => {
|
|
1222
1224
|
const [e, n] = q(!1), i = D(
|
|
1223
1225
|
async (a) => {
|
|
@@ -1225,18 +1227,18 @@ const qn = ({
|
|
|
1225
1227
|
},
|
|
1226
1228
|
[t]
|
|
1227
1229
|
);
|
|
1228
|
-
return /* @__PURE__ */ j(
|
|
1230
|
+
return /* @__PURE__ */ j(Le, { children: [
|
|
1229
1231
|
/* @__PURE__ */ o(
|
|
1230
1232
|
re,
|
|
1231
1233
|
{
|
|
1232
1234
|
onClick: () => n(!0),
|
|
1233
|
-
iconType:
|
|
1235
|
+
iconType: ut,
|
|
1234
1236
|
color: "primary",
|
|
1235
1237
|
children: "Add video"
|
|
1236
1238
|
}
|
|
1237
1239
|
),
|
|
1238
1240
|
e && /* @__PURE__ */ o(
|
|
1239
|
-
|
|
1241
|
+
Jn,
|
|
1240
1242
|
{
|
|
1241
1243
|
onCancel: () => n(!1),
|
|
1242
1244
|
onSave: i
|
|
@@ -1244,7 +1246,7 @@ const qn = ({
|
|
|
1244
1246
|
)
|
|
1245
1247
|
] });
|
|
1246
1248
|
}
|
|
1247
|
-
),
|
|
1249
|
+
), rr = {
|
|
1248
1250
|
Audio: "",
|
|
1249
1251
|
Dailymotion: "https://www.dailymotion.com/favicon.ico",
|
|
1250
1252
|
Niconico: "https://www.nicovideo.jp/favicon.ico",
|
|
@@ -1252,11 +1254,11 @@ const qn = ({
|
|
|
1252
1254
|
Twitch: "https://www.twitch.tv/favicon.ico",
|
|
1253
1255
|
Vimeo: "https://vimeo.com/favicon.ico",
|
|
1254
1256
|
YouTube: "https://www.youtube.com/favicon.ico"
|
|
1255
|
-
},
|
|
1257
|
+
}, Kn = N(
|
|
1256
1258
|
({ playQueueStore: t }) => {
|
|
1257
|
-
const { euiTheme: e } =
|
|
1259
|
+
const { euiTheme: e } = Yt();
|
|
1258
1260
|
return /* @__PURE__ */ j(
|
|
1259
|
-
|
|
1261
|
+
Gr,
|
|
1260
1262
|
{
|
|
1261
1263
|
style: {
|
|
1262
1264
|
position: "sticky",
|
|
@@ -1265,8 +1267,8 @@ const qn = ({
|
|
|
1265
1267
|
background: e.colors.backgroundBasePlain
|
|
1266
1268
|
},
|
|
1267
1269
|
children: [
|
|
1268
|
-
/* @__PURE__ */ o(
|
|
1269
|
-
|
|
1270
|
+
/* @__PURE__ */ o(Hr, { children: /* @__PURE__ */ o(
|
|
1271
|
+
Bt,
|
|
1270
1272
|
{
|
|
1271
1273
|
id: "",
|
|
1272
1274
|
checked: t.allItemsSelected,
|
|
@@ -1275,40 +1277,40 @@ const qn = ({
|
|
|
1275
1277
|
}
|
|
1276
1278
|
}
|
|
1277
1279
|
) }),
|
|
1278
|
-
/* @__PURE__ */ o(
|
|
1279
|
-
/* @__PURE__ */ o(
|
|
1280
|
-
/* @__PURE__ */ o(
|
|
1280
|
+
/* @__PURE__ */ o(Xe, { width: 24 }),
|
|
1281
|
+
/* @__PURE__ */ o(Xe, { children: "Title" }),
|
|
1282
|
+
/* @__PURE__ */ o(Xe, {})
|
|
1281
1283
|
]
|
|
1282
1284
|
}
|
|
1283
1285
|
);
|
|
1284
1286
|
}
|
|
1285
|
-
),
|
|
1287
|
+
), Xn = me(
|
|
1286
1288
|
({
|
|
1287
1289
|
item: t,
|
|
1288
1290
|
closePopover: e
|
|
1289
1291
|
}) => {
|
|
1290
|
-
const n =
|
|
1292
|
+
const n = st(
|
|
1291
1293
|
() => [
|
|
1292
1294
|
{
|
|
1293
1295
|
id: 0,
|
|
1294
1296
|
items: [
|
|
1295
1297
|
{
|
|
1296
1298
|
name: "Play first",
|
|
1297
|
-
icon: /* @__PURE__ */ o(
|
|
1299
|
+
icon: /* @__PURE__ */ o(H, { type: "" }),
|
|
1298
1300
|
onClick: async () => {
|
|
1299
1301
|
e(), await t.playFirst();
|
|
1300
1302
|
}
|
|
1301
1303
|
},
|
|
1302
1304
|
{
|
|
1303
1305
|
name: "Play next",
|
|
1304
|
-
icon: /* @__PURE__ */ o(
|
|
1306
|
+
icon: /* @__PURE__ */ o(H, { type: "" }),
|
|
1305
1307
|
onClick: async () => {
|
|
1306
1308
|
e(), await t.playNext();
|
|
1307
1309
|
}
|
|
1308
1310
|
},
|
|
1309
1311
|
{
|
|
1310
1312
|
name: "Add to play queue",
|
|
1311
|
-
icon: /* @__PURE__ */ o(
|
|
1313
|
+
icon: /* @__PURE__ */ o(H, { type: ut }),
|
|
1312
1314
|
onClick: async () => {
|
|
1313
1315
|
e(), await t.addToPlayQueue();
|
|
1314
1316
|
}
|
|
@@ -1318,7 +1320,7 @@ const qn = ({
|
|
|
1318
1320
|
},
|
|
1319
1321
|
{
|
|
1320
1322
|
name: "Move to the top",
|
|
1321
|
-
icon: /* @__PURE__ */ o(
|
|
1323
|
+
icon: /* @__PURE__ */ o(H, { type: on }),
|
|
1322
1324
|
onClick: async () => {
|
|
1323
1325
|
e(), t.moveToTop();
|
|
1324
1326
|
},
|
|
@@ -1326,7 +1328,7 @@ const qn = ({
|
|
|
1326
1328
|
},
|
|
1327
1329
|
{
|
|
1328
1330
|
name: "Move to the bottom",
|
|
1329
|
-
icon: /* @__PURE__ */ o(
|
|
1331
|
+
icon: /* @__PURE__ */ o(H, { type: an }),
|
|
1330
1332
|
onClick: async () => {
|
|
1331
1333
|
e(), t.moveToBottom();
|
|
1332
1334
|
},
|
|
@@ -1337,7 +1339,7 @@ const qn = ({
|
|
|
1337
1339
|
},
|
|
1338
1340
|
{
|
|
1339
1341
|
name: "Remove to the top",
|
|
1340
|
-
icon: /* @__PURE__ */ o(
|
|
1342
|
+
icon: /* @__PURE__ */ o(H, { type: "" }),
|
|
1341
1343
|
onClick: async () => {
|
|
1342
1344
|
e(), await t.removeToTop();
|
|
1343
1345
|
},
|
|
@@ -1345,7 +1347,7 @@ const qn = ({
|
|
|
1345
1347
|
},
|
|
1346
1348
|
{
|
|
1347
1349
|
name: "Remove others",
|
|
1348
|
-
icon: /* @__PURE__ */ o(
|
|
1350
|
+
icon: /* @__PURE__ */ o(H, { type: "" }),
|
|
1349
1351
|
onClick: async () => {
|
|
1350
1352
|
e(), await t.removeOthers();
|
|
1351
1353
|
},
|
|
@@ -1356,20 +1358,20 @@ const qn = ({
|
|
|
1356
1358
|
],
|
|
1357
1359
|
[e, t]
|
|
1358
1360
|
);
|
|
1359
|
-
return /* @__PURE__ */ o(
|
|
1361
|
+
return /* @__PURE__ */ o(Wt, { initialPanelId: 0, panels: n });
|
|
1360
1362
|
}
|
|
1361
|
-
),
|
|
1363
|
+
), Zn = me(
|
|
1362
1364
|
({ item: t }) => {
|
|
1363
1365
|
const [e, n] = q(!1), i = D(() => n(!e), [e]), a = D(() => n(!1), []);
|
|
1364
1366
|
return /* @__PURE__ */ o(
|
|
1365
|
-
|
|
1367
|
+
lt,
|
|
1366
1368
|
{
|
|
1367
1369
|
button: /* @__PURE__ */ o(
|
|
1368
|
-
|
|
1370
|
+
G,
|
|
1369
1371
|
{
|
|
1370
1372
|
title: "More options",
|
|
1371
1373
|
"aria-label": "More options",
|
|
1372
|
-
iconType:
|
|
1374
|
+
iconType: Ht,
|
|
1373
1375
|
size: "s",
|
|
1374
1376
|
color: "text",
|
|
1375
1377
|
onClick: i
|
|
@@ -1380,7 +1382,7 @@ const qn = ({
|
|
|
1380
1382
|
panelPaddingSize: "none",
|
|
1381
1383
|
anchorPosition: "leftCenter",
|
|
1382
1384
|
children: /* @__PURE__ */ o(
|
|
1383
|
-
|
|
1385
|
+
Xn,
|
|
1384
1386
|
{
|
|
1385
1387
|
item: t,
|
|
1386
1388
|
closePopover: a
|
|
@@ -1389,14 +1391,14 @@ const qn = ({
|
|
|
1389
1391
|
}
|
|
1390
1392
|
);
|
|
1391
1393
|
}
|
|
1392
|
-
),
|
|
1394
|
+
), Qn = N(
|
|
1393
1395
|
({ item: t }) => {
|
|
1394
1396
|
const e = ne();
|
|
1395
|
-
return /* @__PURE__ */ j(
|
|
1397
|
+
return /* @__PURE__ */ j(rt, { textOnly: !1, hasActions: !0, align: "right", children: [
|
|
1396
1398
|
/* @__PURE__ */ o(
|
|
1397
1399
|
re,
|
|
1398
1400
|
{
|
|
1399
|
-
iconType:
|
|
1401
|
+
iconType: nn,
|
|
1400
1402
|
size: "s",
|
|
1401
1403
|
onClick: async () => {
|
|
1402
1404
|
t.isCurrent ? await e.setCurrentTime(0) : t.play();
|
|
@@ -1407,38 +1409,38 @@ const qn = ({
|
|
|
1407
1409
|
/* @__PURE__ */ o(
|
|
1408
1410
|
re,
|
|
1409
1411
|
{
|
|
1410
|
-
iconType:
|
|
1412
|
+
iconType: dt,
|
|
1411
1413
|
size: "s",
|
|
1412
1414
|
onClick: t.remove,
|
|
1413
1415
|
children: "Remove"
|
|
1414
1416
|
}
|
|
1415
1417
|
),
|
|
1416
|
-
/* @__PURE__ */ o(
|
|
1418
|
+
/* @__PURE__ */ o(Zn, { item: t })
|
|
1417
1419
|
] });
|
|
1418
1420
|
}
|
|
1419
|
-
),
|
|
1421
|
+
), ei = N(
|
|
1420
1422
|
({ item: t }) => {
|
|
1421
1423
|
const e = ne();
|
|
1422
|
-
return /* @__PURE__ */ j(
|
|
1423
|
-
/* @__PURE__ */ o(
|
|
1424
|
-
|
|
1424
|
+
return /* @__PURE__ */ j(Xr, { isSelected: t.isCurrent, children: [
|
|
1425
|
+
/* @__PURE__ */ o(Jr, { children: /* @__PURE__ */ o(
|
|
1426
|
+
Bt,
|
|
1425
1427
|
{
|
|
1426
1428
|
id: t.id.toString(),
|
|
1427
1429
|
checked: t.isSelected,
|
|
1428
1430
|
onChange: t.toggleSelected
|
|
1429
1431
|
}
|
|
1430
1432
|
) }),
|
|
1431
|
-
/* @__PURE__ */ o(
|
|
1433
|
+
/* @__PURE__ */ o(rt, { textOnly: !1, children: /* @__PURE__ */ o(
|
|
1432
1434
|
"img",
|
|
1433
1435
|
{
|
|
1434
|
-
src:
|
|
1436
|
+
src: rr[t.type],
|
|
1435
1437
|
width: 16,
|
|
1436
1438
|
height: 16,
|
|
1437
1439
|
alt: t.type
|
|
1438
1440
|
}
|
|
1439
1441
|
) }),
|
|
1440
|
-
/* @__PURE__ */ o(
|
|
1441
|
-
|
|
1442
|
+
/* @__PURE__ */ o(rt, { children: /* @__PURE__ */ o(
|
|
1443
|
+
Kr,
|
|
1442
1444
|
{
|
|
1443
1445
|
href: t.url,
|
|
1444
1446
|
target: "_blank",
|
|
@@ -1447,33 +1449,33 @@ const qn = ({
|
|
|
1447
1449
|
children: t.title
|
|
1448
1450
|
}
|
|
1449
1451
|
) }),
|
|
1450
|
-
/* @__PURE__ */ o(
|
|
1452
|
+
/* @__PURE__ */ o(Qn, { item: t })
|
|
1451
1453
|
] }, t.id);
|
|
1452
1454
|
}
|
|
1453
|
-
),
|
|
1455
|
+
), ti = N(
|
|
1454
1456
|
({ playQueueStore: t }) => /* @__PURE__ */ o(
|
|
1455
|
-
|
|
1457
|
+
Cn,
|
|
1456
1458
|
{
|
|
1457
1459
|
tag: "tbody",
|
|
1458
1460
|
list: t.items,
|
|
1459
1461
|
setList: (e) => t.setItems(e),
|
|
1460
|
-
children: t.items.map((e) => /* @__PURE__ */ o(
|
|
1462
|
+
children: t.items.map((e) => /* @__PURE__ */ o(ei, { item: e }, e.id))
|
|
1461
1463
|
}
|
|
1462
1464
|
)
|
|
1463
|
-
),
|
|
1464
|
-
({ playQueueStore: t }) => /* @__PURE__ */ j(
|
|
1465
|
-
/* @__PURE__ */ o(
|
|
1466
|
-
/* @__PURE__ */ o(
|
|
1465
|
+
), ri = N(
|
|
1466
|
+
({ playQueueStore: t }) => /* @__PURE__ */ j(Zr, { children: [
|
|
1467
|
+
/* @__PURE__ */ o(Kn, { playQueueStore: t }),
|
|
1468
|
+
/* @__PURE__ */ o(ti, { playQueueStore: t })
|
|
1467
1469
|
] })
|
|
1468
1470
|
);
|
|
1469
|
-
function
|
|
1471
|
+
function ni(t) {
|
|
1470
1472
|
return t !== null && typeof t == "object" && "title" in t && typeof t.title == "string";
|
|
1471
1473
|
}
|
|
1472
|
-
const
|
|
1474
|
+
const ii = N(
|
|
1473
1475
|
({ playQueueStore: t }) => /* @__PURE__ */ o(
|
|
1474
1476
|
re,
|
|
1475
1477
|
{
|
|
1476
|
-
iconType:
|
|
1478
|
+
iconType: ut,
|
|
1477
1479
|
onClick: t.addSelectedItems,
|
|
1478
1480
|
disabled: t.isEmpty || t.selectedItems.length === 0,
|
|
1479
1481
|
children: "Add to play queue"
|
|
@@ -1483,15 +1485,15 @@ const ti = N(
|
|
|
1483
1485
|
N(
|
|
1484
1486
|
({ playQueueStore: t }) => {
|
|
1485
1487
|
const [e, n] = q(!1);
|
|
1486
|
-
return /* @__PURE__ */ j(
|
|
1488
|
+
return /* @__PURE__ */ j(Le, { children: [
|
|
1487
1489
|
e && /* @__PURE__ */ o(
|
|
1488
|
-
|
|
1490
|
+
en,
|
|
1489
1491
|
{
|
|
1490
1492
|
type: "push",
|
|
1491
1493
|
size: "s",
|
|
1492
1494
|
onClose: () => n(!1),
|
|
1493
1495
|
children: /* @__PURE__ */ o("div", { style: { blockSize: "100%" }, children: /* @__PURE__ */ o(
|
|
1494
|
-
|
|
1496
|
+
Qr,
|
|
1495
1497
|
{
|
|
1496
1498
|
language: "json",
|
|
1497
1499
|
overflowHeight: "100%",
|
|
@@ -1510,18 +1512,18 @@ N(
|
|
|
1510
1512
|
re,
|
|
1511
1513
|
{
|
|
1512
1514
|
onClick: () => n((i) => !i),
|
|
1513
|
-
iconType:
|
|
1515
|
+
iconType: sn,
|
|
1514
1516
|
children: "Developer tools"
|
|
1515
1517
|
}
|
|
1516
1518
|
)
|
|
1517
1519
|
] });
|
|
1518
1520
|
}
|
|
1519
1521
|
);
|
|
1520
|
-
const
|
|
1522
|
+
const oi = N(
|
|
1521
1523
|
({ playQueueStore: t }) => {
|
|
1522
|
-
const { euiTheme: e } =
|
|
1524
|
+
const { euiTheme: e } = Yt(), n = D(
|
|
1523
1525
|
async (i) => {
|
|
1524
|
-
const a =
|
|
1526
|
+
const a = Nr(i.url);
|
|
1525
1527
|
if (a !== void 0) {
|
|
1526
1528
|
const l = a.extractVideoId(i.url);
|
|
1527
1529
|
if (l !== void 0) {
|
|
@@ -1535,7 +1537,7 @@ const ki = N(
|
|
|
1535
1537
|
url: i.url,
|
|
1536
1538
|
type: a.type,
|
|
1537
1539
|
videoId: l,
|
|
1538
|
-
title: i.title || (
|
|
1540
|
+
title: i.title || (ni(h) ? h.title : l)
|
|
1539
1541
|
})
|
|
1540
1542
|
]);
|
|
1541
1543
|
}
|
|
@@ -1543,7 +1545,7 @@ const ki = N(
|
|
|
1543
1545
|
},
|
|
1544
1546
|
[t]
|
|
1545
1547
|
);
|
|
1546
|
-
return /* @__PURE__ */ j(
|
|
1548
|
+
return /* @__PURE__ */ j(Le, { children: [
|
|
1547
1549
|
/* @__PURE__ */ j(
|
|
1548
1550
|
se,
|
|
1549
1551
|
{
|
|
@@ -1564,11 +1566,11 @@ const ki = N(
|
|
|
1564
1566
|
children: "Play next"
|
|
1565
1567
|
}
|
|
1566
1568
|
) }),
|
|
1567
|
-
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
|
|
1569
|
+
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(ii, { playQueueStore: t }) }),
|
|
1568
1570
|
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
|
|
1569
1571
|
re,
|
|
1570
1572
|
{
|
|
1571
|
-
iconType:
|
|
1573
|
+
iconType: dt,
|
|
1572
1574
|
onClick: t.removeSelectedItems,
|
|
1573
1575
|
disabled: t.isEmpty || t.selectedItems.length === 0,
|
|
1574
1576
|
children: "Remove"
|
|
@@ -1577,7 +1579,7 @@ const ki = N(
|
|
|
1577
1579
|
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
|
|
1578
1580
|
re,
|
|
1579
1581
|
{
|
|
1580
|
-
iconType:
|
|
1582
|
+
iconType: ln,
|
|
1581
1583
|
onClick: t.clear,
|
|
1582
1584
|
disabled: t.isEmpty,
|
|
1583
1585
|
children: "Clear"
|
|
@@ -1586,13 +1588,13 @@ const ki = N(
|
|
|
1586
1588
|
/* @__PURE__ */ o(J, { grow: !0 }),
|
|
1587
1589
|
/* @__PURE__ */ j(J, { grow: !1, children: [
|
|
1588
1590
|
!1,
|
|
1589
|
-
/* @__PURE__ */ o(
|
|
1591
|
+
/* @__PURE__ */ o(Dt, { onSave: n })
|
|
1590
1592
|
] })
|
|
1591
1593
|
]
|
|
1592
1594
|
}
|
|
1593
1595
|
),
|
|
1594
1596
|
/* @__PURE__ */ o(
|
|
1595
|
-
|
|
1597
|
+
Ut,
|
|
1596
1598
|
{
|
|
1597
1599
|
size: "l",
|
|
1598
1600
|
style: {
|
|
@@ -1604,21 +1606,21 @@ const ki = N(
|
|
|
1604
1606
|
}
|
|
1605
1607
|
),
|
|
1606
1608
|
t.isEmpty ? /* @__PURE__ */ o(
|
|
1607
|
-
|
|
1609
|
+
tn,
|
|
1608
1610
|
{
|
|
1609
1611
|
title: /* @__PURE__ */ o("h2", { children: "We couldn't find any videos" }),
|
|
1610
1612
|
body: /* @__PURE__ */ o("p", { children: "Your video library doesn't contain any video content." }),
|
|
1611
|
-
actions: /* @__PURE__ */ o(
|
|
1613
|
+
actions: /* @__PURE__ */ o(Dt, { onSave: n })
|
|
1612
1614
|
}
|
|
1613
|
-
) : /* @__PURE__ */ o(
|
|
1615
|
+
) : /* @__PURE__ */ o(ri, { playQueueStore: t })
|
|
1614
1616
|
] });
|
|
1615
1617
|
}
|
|
1616
|
-
),
|
|
1618
|
+
), et = new xn({
|
|
1617
1619
|
coerceTypes: !0
|
|
1618
1620
|
});
|
|
1619
|
-
function
|
|
1621
|
+
function ai(t, e) {
|
|
1620
1622
|
let n;
|
|
1621
|
-
if (n =
|
|
1623
|
+
if (n = et.getSchema(e), n === void 0 && (et.addSchema(t, e), n = et.getSchema(e)), n === void 0 || n.schema !== t)
|
|
1622
1624
|
throw new Error(
|
|
1623
1625
|
`Invalid schema. Expected: '${JSON.stringify(
|
|
1624
1626
|
t
|
|
@@ -1626,7 +1628,7 @@ function ri(t, e) {
|
|
|
1626
1628
|
);
|
|
1627
1629
|
return n;
|
|
1628
1630
|
}
|
|
1629
|
-
const
|
|
1631
|
+
const si = {
|
|
1630
1632
|
type: "object",
|
|
1631
1633
|
properties: {
|
|
1632
1634
|
url: {
|
|
@@ -1645,7 +1647,7 @@ const ni = {
|
|
|
1645
1647
|
required: ["url", "type", "videoId", "title"]
|
|
1646
1648
|
};
|
|
1647
1649
|
var w = /* @__PURE__ */ ((t) => (t.Off = "Off", t.All = "All", t.One = "One", t))(w || {});
|
|
1648
|
-
const
|
|
1650
|
+
const li = {
|
|
1649
1651
|
type: "object",
|
|
1650
1652
|
properties: {
|
|
1651
1653
|
version: {
|
|
@@ -1664,7 +1666,7 @@ const ii = {
|
|
|
1664
1666
|
items: {
|
|
1665
1667
|
type: "array",
|
|
1666
1668
|
nullable: !0,
|
|
1667
|
-
items:
|
|
1669
|
+
items: si
|
|
1668
1670
|
},
|
|
1669
1671
|
currentIndex: {
|
|
1670
1672
|
type: "integer",
|
|
@@ -1782,8 +1784,8 @@ const ii = {
|
|
|
1782
1784
|
}
|
|
1783
1785
|
};
|
|
1784
1786
|
B(Ie, "nextId", 1);
|
|
1785
|
-
let
|
|
1786
|
-
class
|
|
1787
|
+
let it = Ie;
|
|
1788
|
+
class ci {
|
|
1787
1789
|
constructor(e) {
|
|
1788
1790
|
B(this, "interacted", !1);
|
|
1789
1791
|
B(this, "items", []);
|
|
@@ -1834,7 +1836,7 @@ class oi {
|
|
|
1834
1836
|
});
|
|
1835
1837
|
}
|
|
1836
1838
|
createItem(e) {
|
|
1837
|
-
return
|
|
1839
|
+
return it.fromDto(
|
|
1838
1840
|
this.observableStateProvider,
|
|
1839
1841
|
this,
|
|
1840
1842
|
e
|
|
@@ -1854,8 +1856,8 @@ class oi {
|
|
|
1854
1856
|
this.repeat = e.repeat ?? w.Off, this.shuffle = e.shuffle ?? !1, this.items = ((n = e.items) == null ? void 0 : n.map((i) => this.createItem(i))) ?? [], this.currentIndex = e.currentIndex;
|
|
1855
1857
|
}
|
|
1856
1858
|
validateLocalStorageState(e) {
|
|
1857
|
-
return
|
|
1858
|
-
|
|
1859
|
+
return ai(
|
|
1860
|
+
li,
|
|
1859
1861
|
"PlayQueueDto"
|
|
1860
1862
|
)(e);
|
|
1861
1863
|
}
|
|
@@ -1963,9 +1965,9 @@ class oi {
|
|
|
1963
1965
|
}
|
|
1964
1966
|
async removeItems(e) {
|
|
1965
1967
|
const { currentItem: n } = this;
|
|
1966
|
-
|
|
1968
|
+
Pt(this.items, ...e.filter((l) => l !== n));
|
|
1967
1969
|
const { currentIndex: i, isLastItem: a } = this;
|
|
1968
|
-
|
|
1970
|
+
Pt(
|
|
1969
1971
|
this.items,
|
|
1970
1972
|
e.find((l) => l === n)
|
|
1971
1973
|
), this.currentItem !== n && (this.interact(), a ? await this.goToFirst() : this.currentIndex = i);
|
|
@@ -2011,23 +2013,67 @@ class oi {
|
|
|
2011
2013
|
this.currentIndex !== void 0 && (this.currentIndex = 0);
|
|
2012
2014
|
}
|
|
2013
2015
|
}
|
|
2014
|
-
const
|
|
2016
|
+
const nr = Lt(void 0), $i = ({
|
|
2015
2017
|
children: t
|
|
2016
2018
|
}) => {
|
|
2017
2019
|
const [e] = q(
|
|
2018
|
-
() => new
|
|
2020
|
+
() => new ci(new Kt())
|
|
2019
2021
|
), n = ne();
|
|
2020
|
-
return
|
|
2022
|
+
return Mr(() => Ar(
|
|
2021
2023
|
() => e.currentItem,
|
|
2022
2024
|
async (i, a) => {
|
|
2023
2025
|
i === void 0 || a === void 0 || i.type === a.type && i.videoId === a.videoId && await n.setCurrentTime(0);
|
|
2024
2026
|
}
|
|
2025
|
-
), [e, n]), /* @__PURE__ */ o(
|
|
2026
|
-
},
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
}
|
|
2027
|
+
), [e, n]), /* @__PURE__ */ o(nr.Provider, { value: e, children: t });
|
|
2028
|
+
}, ir = () => at(nr), ui = ({
|
|
2029
|
+
breadcrumbs: t,
|
|
2030
|
+
tabs: e,
|
|
2031
|
+
...n
|
|
2032
|
+
}) => {
|
|
2033
|
+
const i = In();
|
|
2034
|
+
return /* @__PURE__ */ o(
|
|
2035
|
+
ct.Header,
|
|
2036
|
+
{
|
|
2037
|
+
...n,
|
|
2038
|
+
breadcrumbs: t == null ? void 0 : t.map(({ linkProps: a, ...l }) => ({
|
|
2039
|
+
...l,
|
|
2040
|
+
href: a === void 0 ? void 0 : i.buildLocation(
|
|
2041
|
+
a
|
|
2042
|
+
/* FIXME */
|
|
2043
|
+
).href,
|
|
2044
|
+
onClick: a === void 0 ? void 0 : async (d) => {
|
|
2045
|
+
d.preventDefault(), await i.navigate(a);
|
|
2046
|
+
}
|
|
2047
|
+
})),
|
|
2048
|
+
tabs: e == null ? void 0 : e.map(({ linkProps: a, ...l }) => ({
|
|
2049
|
+
...l,
|
|
2050
|
+
href: a === void 0 ? void 0 : i.buildLocation(
|
|
2051
|
+
a
|
|
2052
|
+
/* FIXME */
|
|
2053
|
+
).href,
|
|
2054
|
+
onClick: a === void 0 ? void 0 : async (d) => {
|
|
2055
|
+
d.preventDefault(), await i.navigate(a);
|
|
2056
|
+
}
|
|
2057
|
+
}))
|
|
2058
|
+
}
|
|
2059
|
+
);
|
|
2060
|
+
}, Di = () => {
|
|
2061
|
+
const t = ir();
|
|
2062
|
+
return /* @__PURE__ */ j(Le, { children: [
|
|
2063
|
+
/* @__PURE__ */ o(
|
|
2064
|
+
ui,
|
|
2065
|
+
{
|
|
2066
|
+
pageTitle: "Play queue",
|
|
2067
|
+
rightSideItems: []
|
|
2068
|
+
}
|
|
2069
|
+
),
|
|
2070
|
+
/* @__PURE__ */ o(ct.Section, { children: /* @__PURE__ */ o(oi, { playQueueStore: t }) })
|
|
2071
|
+
] });
|
|
2072
|
+
}, di = {
|
|
2073
|
+
[w.Off]: dn,
|
|
2074
|
+
[w.All]: un,
|
|
2075
|
+
[w.One]: cn
|
|
2076
|
+
}, fi = N(
|
|
2031
2077
|
({
|
|
2032
2078
|
playerStore: t,
|
|
2033
2079
|
playQueueStore: e
|
|
@@ -2048,11 +2094,11 @@ const tr = zt(void 0), Mi = ({
|
|
|
2048
2094
|
alignItems: "center",
|
|
2049
2095
|
children: [
|
|
2050
2096
|
/* @__PURE__ */ o(
|
|
2051
|
-
|
|
2097
|
+
G,
|
|
2052
2098
|
{
|
|
2053
2099
|
title: `Shuffle: ${e.shuffle ? "On" : "Off"}`,
|
|
2054
2100
|
"aria-label": `Shuffle: ${e.shuffle ? "On" : "Off"}`,
|
|
2055
|
-
iconType: e.shuffle ?
|
|
2101
|
+
iconType: e.shuffle ? fn : mn,
|
|
2056
2102
|
size: "s",
|
|
2057
2103
|
iconSize: "l",
|
|
2058
2104
|
onClick: e.toggleShuffle,
|
|
@@ -2060,11 +2106,11 @@ const tr = zt(void 0), Mi = ({
|
|
|
2060
2106
|
}
|
|
2061
2107
|
),
|
|
2062
2108
|
/* @__PURE__ */ o(
|
|
2063
|
-
|
|
2109
|
+
G,
|
|
2064
2110
|
{
|
|
2065
2111
|
title: "Previous",
|
|
2066
2112
|
"aria-label": "Previous",
|
|
2067
|
-
iconType:
|
|
2113
|
+
iconType: hn,
|
|
2068
2114
|
size: "s",
|
|
2069
2115
|
iconSize: "l",
|
|
2070
2116
|
onClick: i,
|
|
@@ -2072,22 +2118,22 @@ const tr = zt(void 0), Mi = ({
|
|
|
2072
2118
|
}
|
|
2073
2119
|
),
|
|
2074
2120
|
t.playing ? /* @__PURE__ */ o(
|
|
2075
|
-
|
|
2121
|
+
G,
|
|
2076
2122
|
{
|
|
2077
2123
|
title: "Pause",
|
|
2078
2124
|
"aria-label": "Pause",
|
|
2079
|
-
iconType:
|
|
2125
|
+
iconType: vn,
|
|
2080
2126
|
size: "s",
|
|
2081
2127
|
iconSize: "l",
|
|
2082
2128
|
onClick: () => n.pause(),
|
|
2083
2129
|
disabled: !e.canPause || !t.controller.supports("pause")
|
|
2084
2130
|
}
|
|
2085
2131
|
) : /* @__PURE__ */ o(
|
|
2086
|
-
|
|
2132
|
+
G,
|
|
2087
2133
|
{
|
|
2088
2134
|
title: "Play",
|
|
2089
2135
|
"aria-label": "Play",
|
|
2090
|
-
iconType:
|
|
2136
|
+
iconType: pn,
|
|
2091
2137
|
size: "s",
|
|
2092
2138
|
iconSize: "l",
|
|
2093
2139
|
onClick: () => n.play(),
|
|
@@ -2095,11 +2141,11 @@ const tr = zt(void 0), Mi = ({
|
|
|
2095
2141
|
}
|
|
2096
2142
|
),
|
|
2097
2143
|
/* @__PURE__ */ o(
|
|
2098
|
-
|
|
2144
|
+
G,
|
|
2099
2145
|
{
|
|
2100
2146
|
title: "Next",
|
|
2101
2147
|
"aria-label": "Next",
|
|
2102
|
-
iconType:
|
|
2148
|
+
iconType: yn,
|
|
2103
2149
|
size: "s",
|
|
2104
2150
|
iconSize: "l",
|
|
2105
2151
|
onClick: e.next,
|
|
@@ -2107,11 +2153,11 @@ const tr = zt(void 0), Mi = ({
|
|
|
2107
2153
|
}
|
|
2108
2154
|
),
|
|
2109
2155
|
/* @__PURE__ */ o(
|
|
2110
|
-
|
|
2156
|
+
G,
|
|
2111
2157
|
{
|
|
2112
2158
|
title: `Repeat: ${e.repeat === w.All ? "All" : e.repeat === w.One ? "One" : "Off"}`,
|
|
2113
2159
|
"aria-label": `Repeat: ${e.repeat === w.All ? "All" : e.repeat === w.One ? "One" : "Off"}`,
|
|
2114
|
-
iconType:
|
|
2160
|
+
iconType: di[e.repeat],
|
|
2115
2161
|
size: "s",
|
|
2116
2162
|
iconSize: "l",
|
|
2117
2163
|
onClick: e.toggleRepeat
|
|
@@ -2121,7 +2167,7 @@ const tr = zt(void 0), Mi = ({
|
|
|
2121
2167
|
}
|
|
2122
2168
|
);
|
|
2123
2169
|
}
|
|
2124
|
-
),
|
|
2170
|
+
), mi = N(
|
|
2125
2171
|
({ playQueueStore: t }) => {
|
|
2126
2172
|
const e = ne();
|
|
2127
2173
|
return /* @__PURE__ */ o(
|
|
@@ -2132,11 +2178,11 @@ const tr = zt(void 0), Mi = ({
|
|
|
2132
2178
|
justifyContent: "flexStart",
|
|
2133
2179
|
alignItems: "center",
|
|
2134
2180
|
children: t.currentItem && /* @__PURE__ */ o(
|
|
2135
|
-
|
|
2181
|
+
Vt,
|
|
2136
2182
|
{
|
|
2137
2183
|
href: t.currentItem.url,
|
|
2138
2184
|
target: "_blank",
|
|
2139
|
-
iconType:
|
|
2185
|
+
iconType: rr[t.currentItem.type],
|
|
2140
2186
|
size: "s",
|
|
2141
2187
|
onClick: () => e.pause(),
|
|
2142
2188
|
children: t.currentItem.title
|
|
@@ -2145,9 +2191,9 @@ const tr = zt(void 0), Mi = ({
|
|
|
2145
2191
|
}
|
|
2146
2192
|
);
|
|
2147
2193
|
}
|
|
2148
|
-
),
|
|
2194
|
+
), hi = N(
|
|
2149
2195
|
({ playerStore: t }) => /* @__PURE__ */ o(
|
|
2150
|
-
|
|
2196
|
+
G,
|
|
2151
2197
|
{
|
|
2152
2198
|
title: "Mute",
|
|
2153
2199
|
"aria-label": "Mute",
|
|
@@ -2157,7 +2203,7 @@ const tr = zt(void 0), Mi = ({
|
|
|
2157
2203
|
disabled: !t.controller.supports("setMuted")
|
|
2158
2204
|
}
|
|
2159
2205
|
)
|
|
2160
|
-
),
|
|
2206
|
+
), vi = N(
|
|
2161
2207
|
({
|
|
2162
2208
|
playerStore: t,
|
|
2163
2209
|
button: e,
|
|
@@ -2165,7 +2211,7 @@ const tr = zt(void 0), Mi = ({
|
|
|
2165
2211
|
closePopover: i
|
|
2166
2212
|
}) => {
|
|
2167
2213
|
const [a, l] = q("0"), d = ne();
|
|
2168
|
-
|
|
2214
|
+
Fr(() => {
|
|
2169
2215
|
n && d.getVolume().then((m) => {
|
|
2170
2216
|
m !== void 0 && l(Math.floor(m * 100).toString());
|
|
2171
2217
|
});
|
|
@@ -2177,13 +2223,13 @@ const tr = zt(void 0), Mi = ({
|
|
|
2177
2223
|
[d]
|
|
2178
2224
|
);
|
|
2179
2225
|
return /* @__PURE__ */ o(
|
|
2180
|
-
|
|
2226
|
+
lt,
|
|
2181
2227
|
{
|
|
2182
2228
|
button: e,
|
|
2183
2229
|
isOpen: n,
|
|
2184
2230
|
closePopover: i,
|
|
2185
2231
|
anchorPosition: "upRight",
|
|
2186
|
-
children: /* @__PURE__ */ o(
|
|
2232
|
+
children: /* @__PURE__ */ o(tt, { children: /* @__PURE__ */ j(
|
|
2187
2233
|
se,
|
|
2188
2234
|
{
|
|
2189
2235
|
responsive: !1,
|
|
@@ -2191,9 +2237,9 @@ const tr = zt(void 0), Mi = ({
|
|
|
2191
2237
|
justifyContent: "center",
|
|
2192
2238
|
alignItems: "center",
|
|
2193
2239
|
children: [
|
|
2194
|
-
/* @__PURE__ */ o(
|
|
2240
|
+
/* @__PURE__ */ o(hi, { playerStore: t }),
|
|
2195
2241
|
/* @__PURE__ */ o(
|
|
2196
|
-
|
|
2242
|
+
qt,
|
|
2197
2243
|
{
|
|
2198
2244
|
min: 0,
|
|
2199
2245
|
max: 100,
|
|
@@ -2210,15 +2256,15 @@ const tr = zt(void 0), Mi = ({
|
|
|
2210
2256
|
}
|
|
2211
2257
|
);
|
|
2212
2258
|
}
|
|
2213
|
-
),
|
|
2259
|
+
), pi = N(
|
|
2214
2260
|
({ playerStore: t }) => {
|
|
2215
2261
|
const [e, n] = q(!1);
|
|
2216
2262
|
return /* @__PURE__ */ o(
|
|
2217
|
-
|
|
2263
|
+
vi,
|
|
2218
2264
|
{
|
|
2219
2265
|
playerStore: t,
|
|
2220
2266
|
button: /* @__PURE__ */ o(
|
|
2221
|
-
|
|
2267
|
+
G,
|
|
2222
2268
|
{
|
|
2223
2269
|
title: "Volume",
|
|
2224
2270
|
"aria-label": "Volume",
|
|
@@ -2234,19 +2280,19 @@ const tr = zt(void 0), Mi = ({
|
|
|
2234
2280
|
}
|
|
2235
2281
|
);
|
|
2236
2282
|
}
|
|
2237
|
-
),
|
|
2283
|
+
), yi = ({
|
|
2238
2284
|
onClickPlayQueueButton: t
|
|
2239
2285
|
}) => /* @__PURE__ */ o(
|
|
2240
|
-
|
|
2286
|
+
G,
|
|
2241
2287
|
{
|
|
2242
2288
|
title: "Play queue",
|
|
2243
2289
|
"aria-label": "Play queue",
|
|
2244
|
-
iconType:
|
|
2290
|
+
iconType: Tn,
|
|
2245
2291
|
size: "s",
|
|
2246
2292
|
iconSize: "l",
|
|
2247
2293
|
onClick: t
|
|
2248
2294
|
}
|
|
2249
|
-
),
|
|
2295
|
+
), gi = N(
|
|
2250
2296
|
({
|
|
2251
2297
|
playerStore: t,
|
|
2252
2298
|
playQueueStore: e,
|
|
@@ -2269,14 +2315,14 @@ const tr = zt(void 0), Mi = ({
|
|
|
2269
2315
|
]), n();
|
|
2270
2316
|
}, [e, n]), [m, p] = q(), E = D(async () => {
|
|
2271
2317
|
await t.controller.getPlaybackRate().then((I) => p(I));
|
|
2272
|
-
}, [t]),
|
|
2318
|
+
}, [t]), R = st(
|
|
2273
2319
|
() => [
|
|
2274
2320
|
{
|
|
2275
2321
|
id: 0,
|
|
2276
2322
|
items: [
|
|
2277
2323
|
{
|
|
2278
2324
|
name: "Speed",
|
|
2279
|
-
icon: /* @__PURE__ */ o(
|
|
2325
|
+
icon: /* @__PURE__ */ o(H, { type: gn }),
|
|
2280
2326
|
panel: 1,
|
|
2281
2327
|
onClick: E,
|
|
2282
2328
|
disabled: !t.controller.supports(
|
|
@@ -2285,7 +2331,7 @@ const tr = zt(void 0), Mi = ({
|
|
|
2285
2331
|
},
|
|
2286
2332
|
{
|
|
2287
2333
|
name: "Skip back 10 seconds",
|
|
2288
|
-
icon: /* @__PURE__ */ o(
|
|
2334
|
+
icon: /* @__PURE__ */ o(H, { type: bn }),
|
|
2289
2335
|
onClick: a,
|
|
2290
2336
|
disabled: e.isEmpty || !t.controller.supports(
|
|
2291
2337
|
"setCurrentTime"
|
|
@@ -2293,7 +2339,7 @@ const tr = zt(void 0), Mi = ({
|
|
|
2293
2339
|
},
|
|
2294
2340
|
{
|
|
2295
2341
|
name: "Skip forward 30 seconds",
|
|
2296
|
-
icon: /* @__PURE__ */ o(
|
|
2342
|
+
icon: /* @__PURE__ */ o(H, { type: En }),
|
|
2297
2343
|
onClick: l,
|
|
2298
2344
|
disabled: e.isEmpty || !t.controller.supports(
|
|
2299
2345
|
"setCurrentTime"
|
|
@@ -2304,7 +2350,7 @@ const tr = zt(void 0), Mi = ({
|
|
|
2304
2350
|
},
|
|
2305
2351
|
{
|
|
2306
2352
|
name: "Remove from play queue",
|
|
2307
|
-
icon: /* @__PURE__ */ o(
|
|
2353
|
+
icon: /* @__PURE__ */ o(H, { type: dt }),
|
|
2308
2354
|
onClick: h,
|
|
2309
2355
|
disabled: e.isEmpty
|
|
2310
2356
|
}
|
|
@@ -2336,9 +2382,9 @@ const tr = zt(void 0), Mi = ({
|
|
|
2336
2382
|
m
|
|
2337
2383
|
]
|
|
2338
2384
|
);
|
|
2339
|
-
return /* @__PURE__ */ o(
|
|
2385
|
+
return /* @__PURE__ */ o(Wt, { initialPanelId: 0, panels: R });
|
|
2340
2386
|
}
|
|
2341
|
-
),
|
|
2387
|
+
), bi = me(
|
|
2342
2388
|
({
|
|
2343
2389
|
playerStore: t,
|
|
2344
2390
|
playQueueStore: e,
|
|
@@ -2346,7 +2392,7 @@ const tr = zt(void 0), Mi = ({
|
|
|
2346
2392
|
isOpen: i,
|
|
2347
2393
|
closePopover: a
|
|
2348
2394
|
}) => /* @__PURE__ */ o(
|
|
2349
|
-
|
|
2395
|
+
lt,
|
|
2350
2396
|
{
|
|
2351
2397
|
button: n,
|
|
2352
2398
|
isOpen: i,
|
|
@@ -2354,7 +2400,7 @@ const tr = zt(void 0), Mi = ({
|
|
|
2354
2400
|
panelPaddingSize: "none",
|
|
2355
2401
|
anchorPosition: "upRight",
|
|
2356
2402
|
children: /* @__PURE__ */ o(
|
|
2357
|
-
|
|
2403
|
+
gi,
|
|
2358
2404
|
{
|
|
2359
2405
|
playerStore: t,
|
|
2360
2406
|
playQueueStore: e,
|
|
@@ -2363,20 +2409,20 @@ const tr = zt(void 0), Mi = ({
|
|
|
2363
2409
|
)
|
|
2364
2410
|
}
|
|
2365
2411
|
)
|
|
2366
|
-
),
|
|
2412
|
+
), Ei = me(
|
|
2367
2413
|
({ playerStore: t, playQueueStore: e }) => {
|
|
2368
2414
|
const [n, i] = q(!1);
|
|
2369
2415
|
return /* @__PURE__ */ o(
|
|
2370
|
-
|
|
2416
|
+
bi,
|
|
2371
2417
|
{
|
|
2372
2418
|
playerStore: t,
|
|
2373
2419
|
playQueueStore: e,
|
|
2374
2420
|
button: /* @__PURE__ */ o(
|
|
2375
|
-
|
|
2421
|
+
G,
|
|
2376
2422
|
{
|
|
2377
2423
|
title: "More options",
|
|
2378
2424
|
"aria-label": "More options",
|
|
2379
|
-
iconType:
|
|
2425
|
+
iconType: Ht,
|
|
2380
2426
|
size: "s",
|
|
2381
2427
|
iconSize: "l",
|
|
2382
2428
|
onClick: () => i(!n)
|
|
@@ -2387,7 +2433,7 @@ const tr = zt(void 0), Mi = ({
|
|
|
2387
2433
|
}
|
|
2388
2434
|
);
|
|
2389
2435
|
}
|
|
2390
|
-
),
|
|
2436
|
+
), Ti = me(
|
|
2391
2437
|
({
|
|
2392
2438
|
playerStore: t,
|
|
2393
2439
|
playQueueStore: e,
|
|
@@ -2400,15 +2446,15 @@ const tr = zt(void 0), Mi = ({
|
|
|
2400
2446
|
justifyContent: "flexEnd",
|
|
2401
2447
|
alignItems: "center",
|
|
2402
2448
|
children: [
|
|
2403
|
-
/* @__PURE__ */ o(
|
|
2449
|
+
/* @__PURE__ */ o(pi, { playerStore: t }),
|
|
2404
2450
|
n && /* @__PURE__ */ o(
|
|
2405
|
-
|
|
2451
|
+
yi,
|
|
2406
2452
|
{
|
|
2407
2453
|
onClickPlayQueueButton: n
|
|
2408
2454
|
}
|
|
2409
2455
|
),
|
|
2410
2456
|
/* @__PURE__ */ o(
|
|
2411
|
-
|
|
2457
|
+
Ei,
|
|
2412
2458
|
{
|
|
2413
2459
|
playerStore: t,
|
|
2414
2460
|
playQueueStore: e
|
|
@@ -2417,7 +2463,7 @@ const tr = zt(void 0), Mi = ({
|
|
|
2417
2463
|
]
|
|
2418
2464
|
}
|
|
2419
2465
|
)
|
|
2420
|
-
),
|
|
2466
|
+
), Ci = N(
|
|
2421
2467
|
({ playerStore: t, playQueueStore: e }) => {
|
|
2422
2468
|
const n = ne(), i = D(
|
|
2423
2469
|
(d) => {
|
|
@@ -2442,7 +2488,7 @@ const tr = zt(void 0), Mi = ({
|
|
|
2442
2488
|
[t, n]
|
|
2443
2489
|
);
|
|
2444
2490
|
return /* @__PURE__ */ o(
|
|
2445
|
-
|
|
2491
|
+
qt,
|
|
2446
2492
|
{
|
|
2447
2493
|
min: 0,
|
|
2448
2494
|
max: 100,
|
|
@@ -2458,14 +2504,14 @@ const tr = zt(void 0), Mi = ({
|
|
|
2458
2504
|
}
|
|
2459
2505
|
);
|
|
2460
2506
|
}
|
|
2461
|
-
),
|
|
2507
|
+
), zi = N(
|
|
2462
2508
|
({
|
|
2463
2509
|
playerStore: t,
|
|
2464
2510
|
playQueueStore: e,
|
|
2465
2511
|
onClickPlayQueueButton: n
|
|
2466
|
-
}) => /* @__PURE__ */ o(
|
|
2512
|
+
}) => /* @__PURE__ */ o(rn, { paddingSize: "s", children: /* @__PURE__ */ j(se, { direction: "column", gutterSize: "none", children: [
|
|
2467
2513
|
/* @__PURE__ */ o(J, { children: /* @__PURE__ */ o(
|
|
2468
|
-
|
|
2514
|
+
Ci,
|
|
2469
2515
|
{
|
|
2470
2516
|
playerStore: t,
|
|
2471
2517
|
playQueueStore: e
|
|
@@ -2473,20 +2519,20 @@ const tr = zt(void 0), Mi = ({
|
|
|
2473
2519
|
) }),
|
|
2474
2520
|
/* @__PURE__ */ o(J, { children: /* @__PURE__ */ j(se, { responsive: !1, children: [
|
|
2475
2521
|
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
2476
|
-
|
|
2522
|
+
mi,
|
|
2477
2523
|
{
|
|
2478
2524
|
playQueueStore: e
|
|
2479
2525
|
}
|
|
2480
2526
|
) }),
|
|
2481
2527
|
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
2482
|
-
|
|
2528
|
+
fi,
|
|
2483
2529
|
{
|
|
2484
2530
|
playerStore: t,
|
|
2485
2531
|
playQueueStore: e
|
|
2486
2532
|
}
|
|
2487
2533
|
) }),
|
|
2488
2534
|
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
2489
|
-
|
|
2535
|
+
Ti,
|
|
2490
2536
|
{
|
|
2491
2537
|
playerStore: t,
|
|
2492
2538
|
playQueueStore: e,
|
|
@@ -2495,27 +2541,27 @@ const tr = zt(void 0), Mi = ({
|
|
|
2495
2541
|
) })
|
|
2496
2542
|
] }) })
|
|
2497
2543
|
] }) })
|
|
2498
|
-
),
|
|
2544
|
+
), Li = (t) => /* @__PURE__ */ o($r, { ...t }), ot = {
|
|
2499
2545
|
width: 400,
|
|
2500
2546
|
height: 225
|
|
2501
|
-
},
|
|
2547
|
+
}, Vi = N(
|
|
2502
2548
|
({ children: t }) => {
|
|
2503
|
-
const e =
|
|
2549
|
+
const e = ir();
|
|
2504
2550
|
return /* @__PURE__ */ j(
|
|
2505
|
-
|
|
2551
|
+
ct,
|
|
2506
2552
|
{
|
|
2507
2553
|
panelled: !0,
|
|
2508
2554
|
style: {
|
|
2509
|
-
minBlockSize: `max(460px, 100vh - ${
|
|
2555
|
+
minBlockSize: `max(460px, 100vh - ${Jt}px)`
|
|
2510
2556
|
},
|
|
2511
2557
|
children: [
|
|
2512
2558
|
t,
|
|
2513
|
-
!e.isEmpty && /* @__PURE__ */ o(
|
|
2559
|
+
!e.isEmpty && /* @__PURE__ */ o(Ut, { style: { blockSize: ot.height } })
|
|
2514
2560
|
]
|
|
2515
2561
|
}
|
|
2516
2562
|
);
|
|
2517
2563
|
}
|
|
2518
|
-
),
|
|
2564
|
+
), Yi = N(
|
|
2519
2565
|
({ playerStore: t, playQueueStore: e }) => {
|
|
2520
2566
|
const n = ne(), i = D(async () => {
|
|
2521
2567
|
e.interacted && await n.play();
|
|
@@ -2539,7 +2585,7 @@ const tr = zt(void 0), Mi = ({
|
|
|
2539
2585
|
await e.next();
|
|
2540
2586
|
break;
|
|
2541
2587
|
}
|
|
2542
|
-
}, [e, t, n]), l =
|
|
2588
|
+
}, [e, t, n]), l = st(
|
|
2543
2589
|
() => ({
|
|
2544
2590
|
onLoaded: i,
|
|
2545
2591
|
onPlay: t.onPlay,
|
|
@@ -2555,16 +2601,16 @@ const tr = zt(void 0), Mi = ({
|
|
|
2555
2601
|
css: {
|
|
2556
2602
|
position: "fixed",
|
|
2557
2603
|
right: 0,
|
|
2558
|
-
bottom:
|
|
2559
|
-
width:
|
|
2560
|
-
height:
|
|
2604
|
+
bottom: Jt,
|
|
2605
|
+
width: ot.width,
|
|
2606
|
+
height: ot.height,
|
|
2561
2607
|
zIndex: 998,
|
|
2562
2608
|
backgroundColor: "rgb(39, 39, 39)",
|
|
2563
2609
|
display: "flex",
|
|
2564
2610
|
flexDirection: "column"
|
|
2565
2611
|
},
|
|
2566
2612
|
children: /* @__PURE__ */ o("div", { css: { flexGrow: 1, backgroundColor: "black" }, children: e.currentItem && /* @__PURE__ */ o(
|
|
2567
|
-
|
|
2613
|
+
Dr,
|
|
2568
2614
|
{
|
|
2569
2615
|
src: e.currentItem.url,
|
|
2570
2616
|
options: l,
|
|
@@ -2575,9 +2621,9 @@ const tr = zt(void 0), Mi = ({
|
|
|
2575
2621
|
);
|
|
2576
2622
|
}
|
|
2577
2623
|
);
|
|
2578
|
-
class
|
|
2624
|
+
class xi {
|
|
2579
2625
|
constructor(e) {
|
|
2580
|
-
B(this, "controller",
|
|
2626
|
+
B(this, "controller", zr);
|
|
2581
2627
|
B(this, "playing", !1);
|
|
2582
2628
|
B(this, "percent", 0);
|
|
2583
2629
|
B(this, "seeking", !1);
|
|
@@ -2621,25 +2667,28 @@ class bi {
|
|
|
2621
2667
|
e !== void 0 && (this.seeking || (this.percent = e));
|
|
2622
2668
|
}
|
|
2623
2669
|
}
|
|
2624
|
-
const
|
|
2670
|
+
const or = Lt(void 0), Bi = ({
|
|
2625
2671
|
children: t
|
|
2626
2672
|
}) => {
|
|
2627
2673
|
const [e] = q(
|
|
2628
|
-
() => new
|
|
2674
|
+
() => new xi(new Kt())
|
|
2629
2675
|
);
|
|
2630
|
-
return /* @__PURE__ */ o(
|
|
2631
|
-
},
|
|
2676
|
+
return /* @__PURE__ */ o(or.Provider, { value: e, children: t });
|
|
2677
|
+
}, Wi = () => at(or);
|
|
2632
2678
|
export {
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2679
|
+
zi as BottomBar,
|
|
2680
|
+
Li as HydrangeanDivaProvider,
|
|
2681
|
+
Vi as MediaPlayerLayout,
|
|
2682
|
+
Yi as MiniPlayer,
|
|
2683
|
+
Kt as MobXObservableStateProvider,
|
|
2684
|
+
Ni as ObservableStateProvider,
|
|
2685
|
+
oi as PlayQueue,
|
|
2686
|
+
Di as PlayQueuePage,
|
|
2687
|
+
$i as PlayQueueStoreProvider,
|
|
2688
|
+
Bi as PlayerStoreProvider,
|
|
2641
2689
|
w as RepeatMode,
|
|
2642
|
-
|
|
2643
|
-
|
|
2690
|
+
Jt as bottomBarHeight,
|
|
2691
|
+
ir as usePlayQueueStore,
|
|
2692
|
+
Wi as usePlayerStore
|
|
2644
2693
|
};
|
|
2645
2694
|
//# sourceMappingURL=index.es.js.map
|