@aigamo/hydrangean-diva 0.0.1-alpha.19 → 0.0.1-alpha.20
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.cjs.js +7 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +946 -861
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
import { makeObservable as
|
|
2
|
-
import * as
|
|
3
|
-
import Dt, { forwardRef as
|
|
4
|
-
import
|
|
5
|
-
import { useNostalgicDiva as
|
|
6
|
-
import { EuiButton as
|
|
7
|
-
import { AddRegular as ct, PlayRegular as
|
|
8
|
-
import { observer as
|
|
1
|
+
import { makeObservable as wr, action as y, computed as A, observable as Z, reaction as Or } from "mobx";
|
|
2
|
+
import * as te from "react";
|
|
3
|
+
import Dt, { forwardRef as _r, useContext as at, memo as ne, useState as W, useCallback as N, useMemo as De, createContext as zt, useEffect as kr, useLayoutEffect as Ar } from "react";
|
|
4
|
+
import Mr from "@emotion/cache";
|
|
5
|
+
import { useNostalgicDiva as U, findVideoService as Fr, NostalgicDivaProvider as jr, NostalgicDiva as Nr, nullPlayerController as $r } from "@aigamo/nostalgic-diva";
|
|
6
|
+
import { EuiButton as re, useGeneratedHtmlId as Dr, EuiModalHeaderTitle as zr, EuiModalHeader as Br, EuiForm as Lr, EuiFormRow as rt, EuiFieldText as St, EuiModalBody as Vr, EuiModalFooter as Yr, EuiButtonEmpty as Bt, EuiModal as Wr, useEuiTheme as Lt, EuiCheckbox as Vt, EuiTableHeaderCellCheckbox as Ur, EuiTableHeader as qr, EuiTableRowCell as nt, EuiTableRowCellCheckbox as Hr, EuiLink as Gr, EuiTableRow as Jr, EuiTable as Kr, EuiButtonIcon as q, EuiPopover as ze, EuiIcon as Y, EuiContextMenu as st, EuiTableHeaderCell as Ze, EuiCodeBlock as Xr, EuiFlyout as Zr, EuiFlexGroup as se, EuiFlexItem as J, EuiSpacer as Yt, EuiEmptyPrompt as Qr, EuiPageTemplate as lt, EuiRange as Wt, EuiBottomBar as en } from "@elastic/eui";
|
|
7
|
+
import { AddRegular as ct, PlayRegular as tn, DismissRegular as ut, MoreHorizontalFilled as Ut, ArrowUploadRegular as rn, ArrowDownloadRegular as nn, WindowDevToolsRegular as on, DeleteRegular as an, ArrowShuffleFilled as sn, ArrowShuffleOffFilled as ln, PreviousFilled as cn, SkipBack10Regular as qt, PauseFilled as un, PlayFilled as dn, SkipForward30Regular as Ht, NextFilled as fn, ArrowRepeat1Filled as mn, ArrowRepeatAllFilled as hn, ArrowRepeatAllOffFilled as vn, OpenRegular as pn, Speaker2Regular as Gt, TopSpeedRegular as yn, NavigationPlayRegular as gn } from "@fluentui/react-icons";
|
|
8
|
+
import { observer as P } from "mobx-react-lite";
|
|
9
9
|
import { ReactSortable as bn } from "react-sortablejs";
|
|
10
10
|
import { pull as Pt } from "lodash-es";
|
|
11
|
-
import
|
|
12
|
-
import { useRouter as
|
|
13
|
-
const
|
|
14
|
-
class
|
|
15
|
-
makeObservable(
|
|
16
|
-
return
|
|
11
|
+
import Tn from "ajv";
|
|
12
|
+
import { useRouter as En } from "@tanstack/react-router";
|
|
13
|
+
const Jt = 81;
|
|
14
|
+
class Kt {
|
|
15
|
+
makeObservable(t, n) {
|
|
16
|
+
return wr(t, n);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
class
|
|
20
|
-
makeObservable(
|
|
21
|
-
return
|
|
19
|
+
class Vi {
|
|
20
|
+
makeObservable(t, n) {
|
|
21
|
+
return t;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
var je = { exports: {} },
|
|
24
|
+
var je = { exports: {} }, Ee = {};
|
|
25
25
|
var Rt;
|
|
26
26
|
function Cn() {
|
|
27
|
-
if (Rt) return
|
|
27
|
+
if (Rt) return Ee;
|
|
28
28
|
Rt = 1;
|
|
29
|
-
var
|
|
29
|
+
var e = Dt, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
30
30
|
function d(h, m, p) {
|
|
31
|
-
var
|
|
31
|
+
var T, R = {}, I = null, D = null;
|
|
32
32
|
p !== void 0 && (I = "" + p), m.key !== void 0 && (I = "" + m.key), m.ref !== void 0 && (D = m.ref);
|
|
33
|
-
for (
|
|
34
|
-
if (h && h.defaultProps) for (
|
|
35
|
-
return { $$typeof:
|
|
33
|
+
for (T in m) i.call(m, T) && !l.hasOwnProperty(T) && (R[T] = m[T]);
|
|
34
|
+
if (h && h.defaultProps) for (T in m = h.defaultProps, m) R[T] === void 0 && (R[T] = m[T]);
|
|
35
|
+
return { $$typeof: t, type: h, key: I, ref: D, props: R, _owner: a.current };
|
|
36
36
|
}
|
|
37
|
-
return
|
|
37
|
+
return Ee.Fragment = n, Ee.jsx = d, Ee.jsxs = d, Ee;
|
|
38
38
|
}
|
|
39
39
|
var Ce = {};
|
|
40
40
|
var wt;
|
|
41
41
|
function xn() {
|
|
42
42
|
return wt || (wt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
43
|
-
var
|
|
44
|
-
function
|
|
43
|
+
var e = Dt, t = 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"), T = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), M = Symbol.iterator, H = "@@iterator";
|
|
44
|
+
function Q(r) {
|
|
45
45
|
if (r === null || typeof r != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var s =
|
|
47
|
+
var s = M && r[M] || r[H];
|
|
48
48
|
return typeof s == "function" ? s : null;
|
|
49
49
|
}
|
|
50
|
-
var
|
|
51
|
-
function
|
|
50
|
+
var B = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function w(r) {
|
|
52
52
|
{
|
|
53
53
|
for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0), v = 1; v < s; v++)
|
|
54
54
|
u[v - 1] = arguments[v];
|
|
55
|
-
|
|
55
|
+
F("error", r, u);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function F(r, s, u) {
|
|
59
59
|
{
|
|
60
|
-
var v =
|
|
61
|
-
|
|
60
|
+
var v = B.ReactDebugCurrentFrame, E = v.getStackAddendum();
|
|
61
|
+
E !== "" && (s += "%s", u = u.concat([E]));
|
|
62
62
|
var S = u.map(function(b) {
|
|
63
63
|
return String(b);
|
|
64
64
|
});
|
|
65
65
|
S.unshift("Warning: " + s), Function.prototype.apply.call(console[r], console, S);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var
|
|
68
|
+
var _ = !1, c = !1, L = !1, me = !1, Se = !1, Pe;
|
|
69
69
|
Pe = Symbol.for("react.module.reference");
|
|
70
|
-
function
|
|
71
|
-
return !!(typeof r == "string" || typeof r == "function" || r === i || r === l || Se || r === a || r === p || r ===
|
|
70
|
+
function Ve(r) {
|
|
71
|
+
return !!(typeof r == "string" || typeof r == "function" || r === i || r === l || Se || r === a || r === p || r === T || me || r === D || _ || c || L || 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
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
75
75
|
r.$$typeof === Pe || r.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Ye(r, s, u) {
|
|
78
78
|
var v = r.displayName;
|
|
79
79
|
if (v)
|
|
80
80
|
return v;
|
|
81
|
-
var
|
|
82
|
-
return
|
|
81
|
+
var E = s.displayName || s.name || "";
|
|
82
|
+
return E !== "" ? u + "(" + E + ")" : u;
|
|
83
83
|
}
|
|
84
84
|
function Re(r) {
|
|
85
85
|
return r.displayName || "Context";
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function K(r) {
|
|
88
88
|
if (r == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof r.tag == "number" &&
|
|
90
|
+
if (typeof r.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
|
91
91
|
return r.displayName || r.name || null;
|
|
92
92
|
if (typeof r == "string")
|
|
93
93
|
return r;
|
|
@@ -102,7 +102,7 @@ function xn() {
|
|
|
102
102
|
return "StrictMode";
|
|
103
103
|
case p:
|
|
104
104
|
return "Suspense";
|
|
105
|
-
case
|
|
105
|
+
case T:
|
|
106
106
|
return "SuspenseList";
|
|
107
107
|
}
|
|
108
108
|
if (typeof r == "object")
|
|
@@ -114,14 +114,14 @@ function xn() {
|
|
|
114
114
|
var u = r;
|
|
115
115
|
return Re(u._context) + ".Provider";
|
|
116
116
|
case m:
|
|
117
|
-
return
|
|
118
|
-
case
|
|
117
|
+
return Ye(r, r.render, "ForwardRef");
|
|
118
|
+
case R:
|
|
119
119
|
var v = r.displayName || null;
|
|
120
|
-
return v !== null ? v :
|
|
120
|
+
return v !== null ? v : K(r.type) || "Memo";
|
|
121
121
|
case I: {
|
|
122
|
-
var
|
|
122
|
+
var E = r, S = E._payload, b = E._init;
|
|
123
123
|
try {
|
|
124
|
-
return
|
|
124
|
+
return K(b(S));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,14 +129,14 @@ function xn() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var
|
|
132
|
+
var ee = Object.assign, ie = 0, we, Oe, he, _e, ve, ke, Ae;
|
|
133
133
|
function Me() {
|
|
134
134
|
}
|
|
135
135
|
Me.__reactDisabledLog = !0;
|
|
136
136
|
function We() {
|
|
137
137
|
{
|
|
138
138
|
if (ie === 0) {
|
|
139
|
-
we = console.log, Oe = console.info, he = console.warn, _e = console.error, ve = console.group,
|
|
139
|
+
we = console.log, Oe = console.info, he = console.warn, _e = console.error, ve = console.group, ke = console.groupCollapsed, Ae = console.groupEnd;
|
|
140
140
|
var r = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
@@ -165,40 +165,40 @@ function xn() {
|
|
|
165
165
|
writable: !0
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
|
-
log:
|
|
168
|
+
log: ee({}, r, {
|
|
169
169
|
value: we
|
|
170
170
|
}),
|
|
171
|
-
info:
|
|
171
|
+
info: ee({}, r, {
|
|
172
172
|
value: Oe
|
|
173
173
|
}),
|
|
174
|
-
warn:
|
|
174
|
+
warn: ee({}, r, {
|
|
175
175
|
value: he
|
|
176
176
|
}),
|
|
177
|
-
error:
|
|
177
|
+
error: ee({}, r, {
|
|
178
178
|
value: _e
|
|
179
179
|
}),
|
|
180
|
-
group:
|
|
180
|
+
group: ee({}, r, {
|
|
181
181
|
value: ve
|
|
182
182
|
}),
|
|
183
|
-
groupCollapsed:
|
|
184
|
-
value: Ae
|
|
185
|
-
}),
|
|
186
|
-
groupEnd: Q({}, r, {
|
|
183
|
+
groupCollapsed: ee({}, r, {
|
|
187
184
|
value: ke
|
|
185
|
+
}),
|
|
186
|
+
groupEnd: ee({}, r, {
|
|
187
|
+
value: Ae
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
ie < 0 &&
|
|
191
|
+
ie < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
var pe =
|
|
194
|
+
var pe = B.ReactCurrentDispatcher, ye;
|
|
195
195
|
function le(r, s, u) {
|
|
196
196
|
{
|
|
197
197
|
if (ye === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var v =
|
|
200
|
+
} catch (E) {
|
|
201
|
+
var v = E.stack.trim().match(/\n( *(at )?)/);
|
|
202
202
|
ye = v && v[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
@@ -220,7 +220,7 @@ function xn() {
|
|
|
220
220
|
}
|
|
221
221
|
var v;
|
|
222
222
|
ge = !0;
|
|
223
|
-
var
|
|
223
|
+
var E = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
225
|
var S;
|
|
226
226
|
S = pe.current, pe.current = null, We();
|
|
@@ -236,47 +236,47 @@ function xn() {
|
|
|
236
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
237
|
try {
|
|
238
238
|
Reflect.construct(b, []);
|
|
239
|
-
} catch (
|
|
240
|
-
v =
|
|
239
|
+
} catch (V) {
|
|
240
|
+
v = V;
|
|
241
241
|
}
|
|
242
242
|
Reflect.construct(r, [], b);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
245
|
b.call();
|
|
246
|
-
} catch (
|
|
247
|
-
v =
|
|
246
|
+
} catch (V) {
|
|
247
|
+
v = V;
|
|
248
248
|
}
|
|
249
249
|
r.call(b.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
253
253
|
throw Error();
|
|
254
|
-
} catch (
|
|
255
|
-
v =
|
|
254
|
+
} catch (V) {
|
|
255
|
+
v = V;
|
|
256
256
|
}
|
|
257
257
|
r();
|
|
258
258
|
}
|
|
259
|
-
} catch (
|
|
260
|
-
if (
|
|
261
|
-
for (var g =
|
|
259
|
+
} catch (V) {
|
|
260
|
+
if (V && v && typeof V.stack == "string") {
|
|
261
|
+
for (var g = V.stack.split(`
|
|
262
262
|
`), z = v.stack.split(`
|
|
263
|
-
`),
|
|
264
|
-
|
|
265
|
-
for (;
|
|
266
|
-
if (g[
|
|
267
|
-
if (
|
|
263
|
+
`), k = g.length - 1, j = z.length - 1; k >= 1 && j >= 0 && g[k] !== z[j]; )
|
|
264
|
+
j--;
|
|
265
|
+
for (; k >= 1 && j >= 0; k--, j--)
|
|
266
|
+
if (g[k] !== z[j]) {
|
|
267
|
+
if (k !== 1 || j !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (
|
|
270
|
-
var
|
|
271
|
-
` + g[
|
|
272
|
-
return r.displayName &&
|
|
269
|
+
if (k--, j--, j < 0 || g[k] !== z[j]) {
|
|
270
|
+
var G = `
|
|
271
|
+
` + g[k].replace(" at new ", " at ");
|
|
272
|
+
return r.displayName && G.includes("<anonymous>") && (G = G.replace("<anonymous>", r.displayName)), typeof r == "function" && ce.set(r, G), G;
|
|
273
273
|
}
|
|
274
|
-
while (
|
|
274
|
+
while (k >= 1 && j >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
ge = !1, pe.current = S, Ue(), Error.prepareStackTrace =
|
|
279
|
+
ge = !1, pe.current = S, Ue(), Error.prepareStackTrace = E;
|
|
280
280
|
}
|
|
281
281
|
var fe = r ? r.displayName || r.name : "", ae = fe ? le(fe) : "";
|
|
282
282
|
return typeof r == "function" && ce.set(r, ae), ae;
|
|
@@ -298,26 +298,26 @@ function xn() {
|
|
|
298
298
|
switch (r) {
|
|
299
299
|
case p:
|
|
300
300
|
return le("Suspense");
|
|
301
|
-
case
|
|
301
|
+
case T:
|
|
302
302
|
return le("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof r == "object")
|
|
305
305
|
switch (r.$$typeof) {
|
|
306
306
|
case m:
|
|
307
307
|
return be(r.render);
|
|
308
|
-
case
|
|
308
|
+
case R:
|
|
309
309
|
return oe(r.type, s, u);
|
|
310
310
|
case I: {
|
|
311
|
-
var v = r,
|
|
311
|
+
var v = r, E = v._payload, S = v._init;
|
|
312
312
|
try {
|
|
313
|
-
return oe(S(
|
|
313
|
+
return oe(S(E), s, u);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var
|
|
320
|
+
var Te = Object.prototype.hasOwnProperty, dt = {}, ft = B.ReactDebugCurrentFrame;
|
|
321
321
|
function Fe(r) {
|
|
322
322
|
if (r) {
|
|
323
323
|
var s = r._owner, u = oe(r.type, r._source, s ? s.type : null);
|
|
@@ -325,9 +325,9 @@ function xn() {
|
|
|
325
325
|
} else
|
|
326
326
|
ft.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function ar(r, s, u, v, E) {
|
|
329
329
|
{
|
|
330
|
-
var S = Function.call.bind(
|
|
330
|
+
var S = Function.call.bind(Te);
|
|
331
331
|
for (var b in r)
|
|
332
332
|
if (S(r, b)) {
|
|
333
333
|
var g = void 0;
|
|
@@ -337,24 +337,24 @@ function xn() {
|
|
|
337
337
|
throw z.name = "Invariant Violation", z;
|
|
338
338
|
}
|
|
339
339
|
g = r[b](s, b, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
-
} catch (
|
|
341
|
-
g =
|
|
340
|
+
} catch (k) {
|
|
341
|
+
g = k;
|
|
342
342
|
}
|
|
343
|
-
g && !(g instanceof Error) && (Fe(
|
|
343
|
+
g && !(g instanceof Error) && (Fe(E), w("%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), Fe(null)), g instanceof Error && !(g.message in dt) && (dt[g.message] = !0, Fe(E), w("Failed %s type: %s", u, g.message), Fe(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
var
|
|
347
|
+
var sr = Array.isArray;
|
|
348
348
|
function He(r) {
|
|
349
|
-
return
|
|
349
|
+
return sr(r);
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function lr(r) {
|
|
352
352
|
{
|
|
353
353
|
var s = typeof Symbol == "function" && Symbol.toStringTag, u = s && r[Symbol.toStringTag] || r.constructor.name || "Object";
|
|
354
354
|
return u;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function cr(r) {
|
|
358
358
|
try {
|
|
359
359
|
return mt(r), !1;
|
|
360
360
|
} catch {
|
|
@@ -365,38 +365,38 @@ function xn() {
|
|
|
365
365
|
return "" + r;
|
|
366
366
|
}
|
|
367
367
|
function ht(r) {
|
|
368
|
-
if (
|
|
369
|
-
return
|
|
368
|
+
if (cr(r))
|
|
369
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", lr(r)), mt(r);
|
|
370
370
|
}
|
|
371
|
-
var vt =
|
|
371
|
+
var vt = B.ReactCurrentOwner, ur = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
376
|
}, pt, yt;
|
|
377
|
-
function
|
|
378
|
-
if (
|
|
377
|
+
function dr(r) {
|
|
378
|
+
if (Te.call(r, "ref")) {
|
|
379
379
|
var s = Object.getOwnPropertyDescriptor(r, "ref").get;
|
|
380
380
|
if (s && s.isReactWarning)
|
|
381
381
|
return !1;
|
|
382
382
|
}
|
|
383
383
|
return r.ref !== void 0;
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
if (
|
|
385
|
+
function fr(r) {
|
|
386
|
+
if (Te.call(r, "key")) {
|
|
387
387
|
var s = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
388
388
|
if (s && s.isReactWarning)
|
|
389
389
|
return !1;
|
|
390
390
|
}
|
|
391
391
|
return r.key !== void 0;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function mr(r, s) {
|
|
394
394
|
typeof r.ref == "string" && vt.current;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function hr(r, s) {
|
|
397
397
|
{
|
|
398
398
|
var u = function() {
|
|
399
|
-
pt || (pt = !0,
|
|
399
|
+
pt || (pt = !0, w("%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));
|
|
400
400
|
};
|
|
401
401
|
u.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
402
402
|
get: u,
|
|
@@ -404,10 +404,10 @@ function xn() {
|
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function vr(r, s) {
|
|
408
408
|
{
|
|
409
409
|
var u = function() {
|
|
410
|
-
yt || (yt = !0,
|
|
410
|
+
yt || (yt = !0, w("%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));
|
|
411
411
|
};
|
|
412
412
|
u.isReactWarning = !0, Object.defineProperty(r, "ref", {
|
|
413
413
|
get: u,
|
|
@@ -415,10 +415,10 @@ function xn() {
|
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
var
|
|
418
|
+
var pr = function(r, s, u, v, E, S, b) {
|
|
419
419
|
var g = {
|
|
420
420
|
// This tag allows us to uniquely identify this as a React Element
|
|
421
|
-
$$typeof:
|
|
421
|
+
$$typeof: t,
|
|
422
422
|
// Built-in properties that belong on the element
|
|
423
423
|
type: r,
|
|
424
424
|
key: s,
|
|
@@ -441,28 +441,28 @@ function xn() {
|
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
443
443
|
writable: !1,
|
|
444
|
-
value:
|
|
444
|
+
value: E
|
|
445
445
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
446
446
|
};
|
|
447
|
-
function
|
|
447
|
+
function yr(r, s, u, v, E) {
|
|
448
448
|
{
|
|
449
449
|
var S, b = {}, g = null, z = null;
|
|
450
|
-
u !== void 0 && (ht(u), g = "" + u),
|
|
450
|
+
u !== void 0 && (ht(u), g = "" + u), fr(s) && (ht(s.key), g = "" + s.key), dr(s) && (z = s.ref, mr(s, E));
|
|
451
451
|
for (S in s)
|
|
452
|
-
|
|
452
|
+
Te.call(s, S) && !ur.hasOwnProperty(S) && (b[S] = s[S]);
|
|
453
453
|
if (r && r.defaultProps) {
|
|
454
|
-
var
|
|
455
|
-
for (S in
|
|
456
|
-
b[S] === void 0 && (b[S] =
|
|
454
|
+
var k = r.defaultProps;
|
|
455
|
+
for (S in k)
|
|
456
|
+
b[S] === void 0 && (b[S] = k[S]);
|
|
457
457
|
}
|
|
458
458
|
if (g || z) {
|
|
459
|
-
var
|
|
460
|
-
g &&
|
|
459
|
+
var j = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
460
|
+
g && hr(b, j), z && vr(b, j);
|
|
461
461
|
}
|
|
462
|
-
return
|
|
462
|
+
return pr(r, g, z, E, v, vt.current, b);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
var Ge =
|
|
465
|
+
var Ge = B.ReactCurrentOwner, gt = B.ReactDebugCurrentFrame;
|
|
466
466
|
function de(r) {
|
|
467
467
|
if (r) {
|
|
468
468
|
var s = r._owner, u = oe(r.type, r._source, s ? s.type : null);
|
|
@@ -473,12 +473,12 @@ function xn() {
|
|
|
473
473
|
var Je;
|
|
474
474
|
Je = !1;
|
|
475
475
|
function Ke(r) {
|
|
476
|
-
return typeof r == "object" && r !== null && r.$$typeof ===
|
|
476
|
+
return typeof r == "object" && r !== null && r.$$typeof === t;
|
|
477
477
|
}
|
|
478
478
|
function bt() {
|
|
479
479
|
{
|
|
480
480
|
if (Ge.current) {
|
|
481
|
-
var r =
|
|
481
|
+
var r = K(Ge.current.type);
|
|
482
482
|
if (r)
|
|
483
483
|
return `
|
|
484
484
|
|
|
@@ -487,11 +487,11 @@ Check the render method of \`` + r + "`.";
|
|
|
487
487
|
return "";
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function gr(r) {
|
|
491
491
|
return "";
|
|
492
492
|
}
|
|
493
|
-
var
|
|
494
|
-
function
|
|
493
|
+
var Tt = {};
|
|
494
|
+
function br(r) {
|
|
495
495
|
{
|
|
496
496
|
var s = bt();
|
|
497
497
|
if (!s) {
|
|
@@ -503,17 +503,17 @@ Check the top-level render call using <` + u + ">.");
|
|
|
503
503
|
return s;
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function Et(r, s) {
|
|
507
507
|
{
|
|
508
508
|
if (!r._store || r._store.validated || r.key != null)
|
|
509
509
|
return;
|
|
510
510
|
r._store.validated = !0;
|
|
511
|
-
var u =
|
|
512
|
-
if (
|
|
511
|
+
var u = br(s);
|
|
512
|
+
if (Tt[u])
|
|
513
513
|
return;
|
|
514
|
-
|
|
514
|
+
Tt[u] = !0;
|
|
515
515
|
var v = "";
|
|
516
|
-
r && r._owner && r._owner !== Ge.current && (v = " It was passed a child from " +
|
|
516
|
+
r && r._owner && r._owner !== Ge.current && (v = " It was passed a child from " + K(r._owner.type) + "."), de(r), w('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);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
function Ct(r, s) {
|
|
@@ -523,19 +523,19 @@ Check the top-level render call using <` + u + ">.");
|
|
|
523
523
|
if (He(r))
|
|
524
524
|
for (var u = 0; u < r.length; u++) {
|
|
525
525
|
var v = r[u];
|
|
526
|
-
Ke(v) &&
|
|
526
|
+
Ke(v) && Et(v, s);
|
|
527
527
|
}
|
|
528
528
|
else if (Ke(r))
|
|
529
529
|
r._store && (r._store.validated = !0);
|
|
530
530
|
else if (r) {
|
|
531
|
-
var
|
|
532
|
-
if (typeof
|
|
533
|
-
for (var S =
|
|
534
|
-
Ke(b.value) &&
|
|
531
|
+
var E = Q(r);
|
|
532
|
+
if (typeof E == "function" && E !== r.entries)
|
|
533
|
+
for (var S = E.call(r), b; !(b = S.next()).done; )
|
|
534
|
+
Ke(b.value) && Et(b.value, s);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Tr(r) {
|
|
539
539
|
{
|
|
540
540
|
var s = r.type;
|
|
541
541
|
if (s == null || typeof s == "string")
|
|
@@ -545,86 +545,86 @@ Check the top-level render call using <` + u + ">.");
|
|
|
545
545
|
u = s.propTypes;
|
|
546
546
|
else if (typeof s == "object" && (s.$$typeof === m || // Note: Memo only checks outer props here.
|
|
547
547
|
// Inner props are checked in the reconciler.
|
|
548
|
-
s.$$typeof ===
|
|
548
|
+
s.$$typeof === R))
|
|
549
549
|
u = s.propTypes;
|
|
550
550
|
else
|
|
551
551
|
return;
|
|
552
552
|
if (u) {
|
|
553
|
-
var v =
|
|
554
|
-
|
|
553
|
+
var v = K(s);
|
|
554
|
+
ar(u, r.props, "prop", v, r);
|
|
555
555
|
} else if (s.PropTypes !== void 0 && !Je) {
|
|
556
556
|
Je = !0;
|
|
557
|
-
var
|
|
558
|
-
|
|
557
|
+
var E = K(s);
|
|
558
|
+
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
|
|
559
559
|
}
|
|
560
|
-
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved &&
|
|
560
|
+
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function Er(r) {
|
|
564
564
|
{
|
|
565
565
|
for (var s = Object.keys(r.props), u = 0; u < s.length; u++) {
|
|
566
566
|
var v = s[u];
|
|
567
567
|
if (v !== "children" && v !== "key") {
|
|
568
|
-
de(r),
|
|
568
|
+
de(r), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), de(null);
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
r.ref !== null && (de(r),
|
|
572
|
+
r.ref !== null && (de(r), w("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
var xt = {};
|
|
576
|
-
function It(r, s, u, v,
|
|
576
|
+
function It(r, s, u, v, E, S) {
|
|
577
577
|
{
|
|
578
|
-
var b =
|
|
578
|
+
var b = Ve(r);
|
|
579
579
|
if (!b) {
|
|
580
580
|
var g = "";
|
|
581
581
|
(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.");
|
|
582
|
-
var z =
|
|
582
|
+
var z = gr();
|
|
583
583
|
z ? g += z : g += bt();
|
|
584
|
-
var
|
|
585
|
-
r === null ?
|
|
584
|
+
var k;
|
|
585
|
+
r === null ? k = "null" : He(r) ? k = "array" : r !== void 0 && r.$$typeof === t ? (k = "<" + (K(r.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : k = typeof r, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", k, g);
|
|
586
586
|
}
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
589
|
-
return
|
|
587
|
+
var j = yr(r, s, u, E, S);
|
|
588
|
+
if (j == null)
|
|
589
|
+
return j;
|
|
590
590
|
if (b) {
|
|
591
|
-
var
|
|
592
|
-
if (
|
|
591
|
+
var G = s.children;
|
|
592
|
+
if (G !== void 0)
|
|
593
593
|
if (v)
|
|
594
|
-
if (He(
|
|
595
|
-
for (var fe = 0; fe <
|
|
596
|
-
Ct(
|
|
597
|
-
Object.freeze && Object.freeze(
|
|
594
|
+
if (He(G)) {
|
|
595
|
+
for (var fe = 0; fe < G.length; fe++)
|
|
596
|
+
Ct(G[fe], r);
|
|
597
|
+
Object.freeze && Object.freeze(G);
|
|
598
598
|
} else
|
|
599
|
-
|
|
599
|
+
w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
600
600
|
else
|
|
601
|
-
Ct(
|
|
601
|
+
Ct(G, r);
|
|
602
602
|
}
|
|
603
|
-
if (
|
|
604
|
-
var ae =
|
|
605
|
-
return
|
|
606
|
-
}), Xe =
|
|
603
|
+
if (Te.call(s, "key")) {
|
|
604
|
+
var ae = K(r), V = Object.keys(s).filter(function(Rr) {
|
|
605
|
+
return Rr !== "key";
|
|
606
|
+
}), Xe = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
607
|
if (!xt[ae + Xe]) {
|
|
608
|
-
var
|
|
609
|
-
|
|
608
|
+
var Pr = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
|
|
609
|
+
w(`A props object containing a "key" prop is being spread into JSX:
|
|
610
610
|
let props = %s;
|
|
611
611
|
<%s {...props} />
|
|
612
612
|
React keys must be passed directly to JSX without using spread:
|
|
613
613
|
let props = %s;
|
|
614
|
-
<%s key={someKey} {...props} />`, Xe, ae,
|
|
614
|
+
<%s key={someKey} {...props} />`, Xe, ae, Pr, ae), xt[ae + Xe] = !0;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
return r === i ?
|
|
617
|
+
return r === i ? Er(j) : Tr(j), j;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function Cr(r, s, u) {
|
|
621
621
|
return It(r, s, u, !0);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function xr(r, s, u) {
|
|
624
624
|
return It(r, s, u, !1);
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
Ce.Fragment = i, Ce.jsx =
|
|
626
|
+
var Ir = xr, Sr = Cr;
|
|
627
|
+
Ce.Fragment = i, Ce.jsx = Ir, Ce.jsxs = Sr;
|
|
628
628
|
})()), Ce;
|
|
629
629
|
}
|
|
630
630
|
var Ot;
|
|
@@ -636,82 +636,82 @@ var _t;
|
|
|
636
636
|
function Sn() {
|
|
637
637
|
if (_t) return C;
|
|
638
638
|
_t = 1;
|
|
639
|
-
var
|
|
640
|
-
function
|
|
639
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, h = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, T = e ? Symbol.for("react.forward_ref") : 60112, R = e ? Symbol.for("react.suspense") : 60113, I = e ? Symbol.for("react.suspense_list") : 60120, D = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, H = e ? Symbol.for("react.block") : 60121, Q = e ? Symbol.for("react.fundamental") : 60117, B = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
|
|
640
|
+
function F(c) {
|
|
641
641
|
if (typeof c == "object" && c !== null) {
|
|
642
|
-
var
|
|
643
|
-
switch (
|
|
644
|
-
case
|
|
642
|
+
var L = c.$$typeof;
|
|
643
|
+
switch (L) {
|
|
644
|
+
case t:
|
|
645
645
|
switch (c = c.type, c) {
|
|
646
646
|
case m:
|
|
647
647
|
case p:
|
|
648
648
|
case i:
|
|
649
649
|
case l:
|
|
650
650
|
case a:
|
|
651
|
-
case
|
|
651
|
+
case R:
|
|
652
652
|
return c;
|
|
653
653
|
default:
|
|
654
654
|
switch (c = c && c.$$typeof, c) {
|
|
655
655
|
case h:
|
|
656
|
-
case
|
|
657
|
-
case
|
|
656
|
+
case T:
|
|
657
|
+
case M:
|
|
658
658
|
case D:
|
|
659
659
|
case d:
|
|
660
660
|
return c;
|
|
661
661
|
default:
|
|
662
|
-
return
|
|
662
|
+
return L;
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
case n:
|
|
666
|
-
return
|
|
666
|
+
return L;
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
|
-
function
|
|
671
|
-
return
|
|
670
|
+
function _(c) {
|
|
671
|
+
return F(c) === p;
|
|
672
672
|
}
|
|
673
|
-
return C.AsyncMode = m, C.ConcurrentMode = p, C.ContextConsumer = h, C.ContextProvider = d, C.Element =
|
|
674
|
-
return
|
|
675
|
-
}, C.isConcurrentMode =
|
|
676
|
-
return
|
|
673
|
+
return C.AsyncMode = m, C.ConcurrentMode = p, C.ContextConsumer = h, C.ContextProvider = d, C.Element = t, C.ForwardRef = T, C.Fragment = i, C.Lazy = M, C.Memo = D, C.Portal = n, C.Profiler = l, C.StrictMode = a, C.Suspense = R, C.isAsyncMode = function(c) {
|
|
674
|
+
return _(c) || F(c) === m;
|
|
675
|
+
}, C.isConcurrentMode = _, C.isContextConsumer = function(c) {
|
|
676
|
+
return F(c) === h;
|
|
677
677
|
}, C.isContextProvider = function(c) {
|
|
678
|
-
return
|
|
678
|
+
return F(c) === d;
|
|
679
679
|
}, C.isElement = function(c) {
|
|
680
|
-
return typeof c == "object" && c !== null && c.$$typeof ===
|
|
680
|
+
return typeof c == "object" && c !== null && c.$$typeof === t;
|
|
681
681
|
}, C.isForwardRef = function(c) {
|
|
682
|
-
return
|
|
682
|
+
return F(c) === T;
|
|
683
683
|
}, C.isFragment = function(c) {
|
|
684
|
-
return
|
|
684
|
+
return F(c) === i;
|
|
685
685
|
}, C.isLazy = function(c) {
|
|
686
|
-
return
|
|
686
|
+
return F(c) === M;
|
|
687
687
|
}, C.isMemo = function(c) {
|
|
688
|
-
return
|
|
688
|
+
return F(c) === D;
|
|
689
689
|
}, C.isPortal = function(c) {
|
|
690
|
-
return
|
|
690
|
+
return F(c) === n;
|
|
691
691
|
}, C.isProfiler = function(c) {
|
|
692
|
-
return
|
|
692
|
+
return F(c) === l;
|
|
693
693
|
}, C.isStrictMode = function(c) {
|
|
694
|
-
return
|
|
694
|
+
return F(c) === a;
|
|
695
695
|
}, C.isSuspense = function(c) {
|
|
696
|
-
return
|
|
696
|
+
return F(c) === R;
|
|
697
697
|
}, C.isValidElementType = function(c) {
|
|
698
|
-
return typeof c == "string" || typeof c == "function" || c === i || c === p || c === l || c === a || c ===
|
|
699
|
-
}, C.typeOf =
|
|
698
|
+
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 === M || c.$$typeof === D || c.$$typeof === d || c.$$typeof === h || c.$$typeof === T || c.$$typeof === Q || c.$$typeof === B || c.$$typeof === w || c.$$typeof === H);
|
|
699
|
+
}, C.typeOf = F, C;
|
|
700
700
|
}
|
|
701
701
|
var x = {};
|
|
702
|
-
var
|
|
702
|
+
var kt;
|
|
703
703
|
function Pn() {
|
|
704
|
-
return
|
|
705
|
-
var
|
|
706
|
-
function
|
|
704
|
+
return kt || (kt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
705
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, h = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, T = e ? Symbol.for("react.forward_ref") : 60112, R = e ? Symbol.for("react.suspense") : 60113, I = e ? Symbol.for("react.suspense_list") : 60120, D = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, H = e ? Symbol.for("react.block") : 60121, Q = e ? Symbol.for("react.fundamental") : 60117, B = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
|
|
706
|
+
function F(f) {
|
|
707
707
|
return typeof f == "string" || typeof f == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
708
|
-
f === i || f === p || f === l || f === a || f ===
|
|
708
|
+
f === i || f === p || f === l || f === a || f === R || f === I || typeof f == "object" && f !== null && (f.$$typeof === M || f.$$typeof === D || f.$$typeof === d || f.$$typeof === h || f.$$typeof === T || f.$$typeof === Q || f.$$typeof === B || f.$$typeof === w || f.$$typeof === H);
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function _(f) {
|
|
711
711
|
if (typeof f == "object" && f !== null) {
|
|
712
712
|
var be = f.$$typeof;
|
|
713
713
|
switch (be) {
|
|
714
|
-
case
|
|
714
|
+
case t:
|
|
715
715
|
var ue = f.type;
|
|
716
716
|
switch (ue) {
|
|
717
717
|
case m:
|
|
@@ -719,14 +719,14 @@ function Pn() {
|
|
|
719
719
|
case i:
|
|
720
720
|
case l:
|
|
721
721
|
case a:
|
|
722
|
-
case
|
|
722
|
+
case R:
|
|
723
723
|
return ue;
|
|
724
724
|
default:
|
|
725
725
|
var oe = ue && ue.$$typeof;
|
|
726
726
|
switch (oe) {
|
|
727
727
|
case h:
|
|
728
|
-
case
|
|
729
|
-
case
|
|
728
|
+
case T:
|
|
729
|
+
case M:
|
|
730
730
|
case D:
|
|
731
731
|
case d:
|
|
732
732
|
return oe;
|
|
@@ -739,58 +739,58 @@ function Pn() {
|
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
|
-
var c = m,
|
|
742
|
+
var c = m, L = p, me = h, Se = d, Pe = t, Ve = T, Ye = i, Re = M, K = D, ee = n, ie = l, we = a, Oe = R, he = !1;
|
|
743
743
|
function _e(f) {
|
|
744
|
-
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(f) ||
|
|
744
|
+
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(f) || _(f) === m;
|
|
745
745
|
}
|
|
746
746
|
function ve(f) {
|
|
747
|
-
return
|
|
748
|
-
}
|
|
749
|
-
function Ae(f) {
|
|
750
|
-
return O(f) === h;
|
|
747
|
+
return _(f) === p;
|
|
751
748
|
}
|
|
752
749
|
function ke(f) {
|
|
753
|
-
return
|
|
750
|
+
return _(f) === h;
|
|
751
|
+
}
|
|
752
|
+
function Ae(f) {
|
|
753
|
+
return _(f) === d;
|
|
754
754
|
}
|
|
755
755
|
function Me(f) {
|
|
756
|
-
return typeof f == "object" && f !== null && f.$$typeof ===
|
|
756
|
+
return typeof f == "object" && f !== null && f.$$typeof === t;
|
|
757
757
|
}
|
|
758
758
|
function We(f) {
|
|
759
|
-
return
|
|
759
|
+
return _(f) === T;
|
|
760
760
|
}
|
|
761
761
|
function Ue(f) {
|
|
762
|
-
return
|
|
762
|
+
return _(f) === i;
|
|
763
763
|
}
|
|
764
764
|
function pe(f) {
|
|
765
|
-
return
|
|
765
|
+
return _(f) === M;
|
|
766
766
|
}
|
|
767
767
|
function ye(f) {
|
|
768
|
-
return
|
|
768
|
+
return _(f) === D;
|
|
769
769
|
}
|
|
770
770
|
function le(f) {
|
|
771
|
-
return
|
|
771
|
+
return _(f) === n;
|
|
772
772
|
}
|
|
773
773
|
function ge(f) {
|
|
774
|
-
return
|
|
774
|
+
return _(f) === l;
|
|
775
775
|
}
|
|
776
776
|
function ce(f) {
|
|
777
|
-
return
|
|
777
|
+
return _(f) === a;
|
|
778
778
|
}
|
|
779
779
|
function qe(f) {
|
|
780
|
-
return
|
|
780
|
+
return _(f) === R;
|
|
781
781
|
}
|
|
782
|
-
x.AsyncMode = c, x.ConcurrentMode =
|
|
782
|
+
x.AsyncMode = c, x.ConcurrentMode = L, x.ContextConsumer = me, x.ContextProvider = Se, x.Element = Pe, x.ForwardRef = Ve, x.Fragment = Ye, x.Lazy = Re, x.Memo = K, x.Portal = ee, x.Profiler = ie, x.StrictMode = we, x.Suspense = Oe, x.isAsyncMode = _e, x.isConcurrentMode = ve, x.isContextConsumer = ke, x.isContextProvider = Ae, x.isElement = Me, x.isForwardRef = We, x.isFragment = Ue, x.isLazy = pe, x.isMemo = ye, x.isPortal = le, x.isProfiler = ge, x.isStrictMode = ce, x.isSuspense = qe, x.isValidElementType = F, x.typeOf = _;
|
|
783
783
|
})()), x;
|
|
784
784
|
}
|
|
785
|
-
var
|
|
785
|
+
var At;
|
|
786
786
|
function Rn() {
|
|
787
|
-
return
|
|
787
|
+
return At || (At = 1, process.env.NODE_ENV === "production" ? Ne.exports = Sn() : Ne.exports = Pn()), Ne.exports;
|
|
788
788
|
}
|
|
789
789
|
var Qe, Mt;
|
|
790
790
|
function wn() {
|
|
791
791
|
if (Mt) return Qe;
|
|
792
792
|
Mt = 1;
|
|
793
|
-
var
|
|
793
|
+
var e = Rn(), t = {
|
|
794
794
|
childContextTypes: !0,
|
|
795
795
|
contextType: !0,
|
|
796
796
|
contextTypes: !0,
|
|
@@ -824,44 +824,44 @@ function wn() {
|
|
|
824
824
|
propTypes: !0,
|
|
825
825
|
type: !0
|
|
826
826
|
}, l = {};
|
|
827
|
-
l[
|
|
828
|
-
function d(
|
|
829
|
-
return
|
|
827
|
+
l[e.ForwardRef] = i, l[e.Memo] = a;
|
|
828
|
+
function d(M) {
|
|
829
|
+
return e.isMemo(M) ? a : l[M.$$typeof] || t;
|
|
830
830
|
}
|
|
831
|
-
var h = Object.defineProperty, m = Object.getOwnPropertyNames, p = Object.getOwnPropertySymbols,
|
|
832
|
-
function D(
|
|
833
|
-
if (typeof
|
|
831
|
+
var h = Object.defineProperty, m = Object.getOwnPropertyNames, p = Object.getOwnPropertySymbols, T = Object.getOwnPropertyDescriptor, R = Object.getPrototypeOf, I = Object.prototype;
|
|
832
|
+
function D(M, H, Q) {
|
|
833
|
+
if (typeof H != "string") {
|
|
834
834
|
if (I) {
|
|
835
|
-
var
|
|
836
|
-
|
|
835
|
+
var B = R(H);
|
|
836
|
+
B && B !== I && D(M, B, Q);
|
|
837
837
|
}
|
|
838
|
-
var
|
|
839
|
-
p && (
|
|
840
|
-
for (var
|
|
841
|
-
var
|
|
842
|
-
if (!n[
|
|
843
|
-
var me =
|
|
838
|
+
var w = m(H);
|
|
839
|
+
p && (w = w.concat(p(H)));
|
|
840
|
+
for (var F = d(M), _ = d(H), c = 0; c < w.length; ++c) {
|
|
841
|
+
var L = w[c];
|
|
842
|
+
if (!n[L] && !(Q && Q[L]) && !(_ && _[L]) && !(F && F[L])) {
|
|
843
|
+
var me = T(H, L);
|
|
844
844
|
try {
|
|
845
|
-
h(
|
|
845
|
+
h(M, L, me);
|
|
846
846
|
} catch {
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
|
-
return
|
|
851
|
+
return M;
|
|
852
852
|
}
|
|
853
853
|
return Qe = D, Qe;
|
|
854
854
|
}
|
|
855
855
|
wn();
|
|
856
856
|
var On = !0;
|
|
857
|
-
function _n(
|
|
857
|
+
function _n(e, t, n) {
|
|
858
858
|
var i = "";
|
|
859
859
|
return n.split(" ").forEach(function(a) {
|
|
860
|
-
|
|
860
|
+
e[a] !== void 0 ? t.push(e[a] + ";") : a && (i += a + " ");
|
|
861
861
|
}), i;
|
|
862
862
|
}
|
|
863
|
-
var
|
|
864
|
-
var a =
|
|
863
|
+
var Xt = function(t, n, i) {
|
|
864
|
+
var a = t.key + "-" + n.name;
|
|
865
865
|
// we only need to add the styles to the registered cache if the
|
|
866
866
|
// class name could be used further down
|
|
867
867
|
// the tree but if it's a string tag, we know it won't
|
|
@@ -871,35 +871,35 @@ var Jt = function(e, n, i) {
|
|
|
871
871
|
// in node since emotion-server relies on whether a style is in
|
|
872
872
|
// the registered cache to know whether a style is global or not
|
|
873
873
|
// also, note that this check will be dead code eliminated in the browser
|
|
874
|
-
On === !1) &&
|
|
875
|
-
},
|
|
876
|
-
|
|
877
|
-
var a =
|
|
878
|
-
if (
|
|
874
|
+
On === !1) && t.registered[a] === void 0 && (t.registered[a] = n.styles);
|
|
875
|
+
}, kn = function(t, n, i) {
|
|
876
|
+
Xt(t, n, i);
|
|
877
|
+
var a = t.key + "-" + n.name;
|
|
878
|
+
if (t.inserted[n.name] === void 0) {
|
|
879
879
|
var l = n;
|
|
880
880
|
do
|
|
881
|
-
|
|
881
|
+
t.insert(n === l ? "." + a : "", l, t.sheet, !0), l = l.next;
|
|
882
882
|
while (l !== void 0);
|
|
883
883
|
}
|
|
884
884
|
};
|
|
885
|
-
function
|
|
886
|
-
for (var
|
|
887
|
-
n =
|
|
885
|
+
function An(e) {
|
|
886
|
+
for (var t = 0, n, i = 0, a = e.length; a >= 4; ++i, a -= 4)
|
|
887
|
+
n = e.charCodeAt(i) & 255 | (e.charCodeAt(++i) & 255) << 8 | (e.charCodeAt(++i) & 255) << 16 | (e.charCodeAt(++i) & 255) << 24, n = /* Math.imul(k, m): */
|
|
888
888
|
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
|
|
889
|
-
n >>> 24,
|
|
889
|
+
n >>> 24, t = /* Math.imul(k, m): */
|
|
890
890
|
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
891
|
-
(
|
|
891
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
892
892
|
switch (a) {
|
|
893
893
|
case 3:
|
|
894
|
-
|
|
894
|
+
t ^= (e.charCodeAt(i + 2) & 255) << 16;
|
|
895
895
|
case 2:
|
|
896
|
-
|
|
896
|
+
t ^= (e.charCodeAt(i + 1) & 255) << 8;
|
|
897
897
|
case 1:
|
|
898
|
-
|
|
899
|
-
(
|
|
898
|
+
t ^= e.charCodeAt(i) & 255, t = /* Math.imul(h, m): */
|
|
899
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
900
900
|
}
|
|
901
|
-
return
|
|
902
|
-
(
|
|
901
|
+
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
902
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
903
903
|
}
|
|
904
904
|
var Mn = {
|
|
905
905
|
animationIterationCount: 1,
|
|
@@ -951,34 +951,34 @@ var Mn = {
|
|
|
951
951
|
strokeOpacity: 1,
|
|
952
952
|
strokeWidth: 1
|
|
953
953
|
};
|
|
954
|
-
function Fn(
|
|
955
|
-
var
|
|
954
|
+
function Fn(e) {
|
|
955
|
+
var t = /* @__PURE__ */ Object.create(null);
|
|
956
956
|
return function(n) {
|
|
957
|
-
return
|
|
957
|
+
return t[n] === void 0 && (t[n] = e(n)), t[n];
|
|
958
958
|
};
|
|
959
959
|
}
|
|
960
|
-
var jn = /[A-Z]|^ms/g, Nn = /_EMO_([^_]+?)_([^]*?)_EMO_/g,
|
|
961
|
-
return
|
|
962
|
-
}, Ft = function(
|
|
963
|
-
return
|
|
964
|
-
}, et = /* @__PURE__ */ Fn(function(
|
|
965
|
-
return
|
|
966
|
-
}), jt = function(
|
|
967
|
-
switch (
|
|
960
|
+
var jn = /[A-Z]|^ms/g, Nn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Zt = function(t) {
|
|
961
|
+
return t.charCodeAt(1) === 45;
|
|
962
|
+
}, Ft = function(t) {
|
|
963
|
+
return t != null && typeof t != "boolean";
|
|
964
|
+
}, et = /* @__PURE__ */ Fn(function(e) {
|
|
965
|
+
return Zt(e) ? e : e.replace(jn, "-$&").toLowerCase();
|
|
966
|
+
}), jt = function(t, n) {
|
|
967
|
+
switch (t) {
|
|
968
968
|
case "animation":
|
|
969
969
|
case "animationName":
|
|
970
970
|
if (typeof n == "string")
|
|
971
971
|
return n.replace(Nn, function(i, a, l) {
|
|
972
|
-
return
|
|
972
|
+
return X = {
|
|
973
973
|
name: a,
|
|
974
974
|
styles: l,
|
|
975
|
-
next:
|
|
975
|
+
next: X
|
|
976
976
|
}, a;
|
|
977
977
|
});
|
|
978
978
|
}
|
|
979
|
-
return Mn[
|
|
979
|
+
return Mn[t] !== 1 && !Zt(t) && typeof n == "number" && n !== 0 ? n + "px" : n;
|
|
980
980
|
};
|
|
981
|
-
function Ie(
|
|
981
|
+
function Ie(e, t, n) {
|
|
982
982
|
if (n == null)
|
|
983
983
|
return "";
|
|
984
984
|
var i = n;
|
|
@@ -990,53 +990,53 @@ function Ie(t, e, n) {
|
|
|
990
990
|
case "object": {
|
|
991
991
|
var a = n;
|
|
992
992
|
if (a.anim === 1)
|
|
993
|
-
return
|
|
993
|
+
return X = {
|
|
994
994
|
name: a.name,
|
|
995
995
|
styles: a.styles,
|
|
996
|
-
next:
|
|
996
|
+
next: X
|
|
997
997
|
}, a.name;
|
|
998
998
|
var l = n;
|
|
999
999
|
if (l.styles !== void 0) {
|
|
1000
1000
|
var d = l.next;
|
|
1001
1001
|
if (d !== void 0)
|
|
1002
1002
|
for (; d !== void 0; )
|
|
1003
|
-
|
|
1003
|
+
X = {
|
|
1004
1004
|
name: d.name,
|
|
1005
1005
|
styles: d.styles,
|
|
1006
|
-
next:
|
|
1006
|
+
next: X
|
|
1007
1007
|
}, d = d.next;
|
|
1008
1008
|
var h = l.styles + ";";
|
|
1009
1009
|
return h;
|
|
1010
1010
|
}
|
|
1011
|
-
return $n(
|
|
1011
|
+
return $n(e, t, n);
|
|
1012
1012
|
}
|
|
1013
1013
|
case "function": {
|
|
1014
|
-
if (
|
|
1015
|
-
var m =
|
|
1016
|
-
return
|
|
1014
|
+
if (e !== void 0) {
|
|
1015
|
+
var m = X, p = n(e);
|
|
1016
|
+
return X = m, Ie(e, t, p);
|
|
1017
1017
|
}
|
|
1018
1018
|
break;
|
|
1019
1019
|
}
|
|
1020
1020
|
}
|
|
1021
|
-
var
|
|
1022
|
-
return
|
|
1021
|
+
var T = n;
|
|
1022
|
+
return T;
|
|
1023
1023
|
}
|
|
1024
|
-
function $n(
|
|
1024
|
+
function $n(e, t, n) {
|
|
1025
1025
|
var i = "";
|
|
1026
1026
|
if (Array.isArray(n))
|
|
1027
1027
|
for (var a = 0; a < n.length; a++)
|
|
1028
|
-
i += Ie(
|
|
1028
|
+
i += Ie(e, t, n[a]) + ";";
|
|
1029
1029
|
else
|
|
1030
1030
|
for (var l in n) {
|
|
1031
1031
|
var d = n[l];
|
|
1032
1032
|
if (typeof d != "object") {
|
|
1033
1033
|
var h = d;
|
|
1034
1034
|
Ft(h) && (i += et(l) + ":" + jt(l, h) + ";");
|
|
1035
|
-
} else if (Array.isArray(d) && typeof d[0] == "string" &&
|
|
1035
|
+
} else if (Array.isArray(d) && typeof d[0] == "string" && t == null)
|
|
1036
1036
|
for (var m = 0; m < d.length; m++)
|
|
1037
1037
|
Ft(d[m]) && (i += et(l) + ":" + jt(l, d[m]) + ";");
|
|
1038
1038
|
else {
|
|
1039
|
-
var p = Ie(
|
|
1039
|
+
var p = Ie(e, t, d);
|
|
1040
1040
|
switch (l) {
|
|
1041
1041
|
case "animation":
|
|
1042
1042
|
case "animationName": {
|
|
@@ -1050,99 +1050,99 @@ function $n(t, e, n) {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
return i;
|
|
1052
1052
|
}
|
|
1053
|
-
var Nt = /label:\s*([^\s;{]+)\s*(;|$)/g,
|
|
1054
|
-
function Dn(
|
|
1055
|
-
if (
|
|
1056
|
-
return
|
|
1053
|
+
var Nt = /label:\s*([^\s;{]+)\s*(;|$)/g, X;
|
|
1054
|
+
function Dn(e, t, n) {
|
|
1055
|
+
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1056
|
+
return e[0];
|
|
1057
1057
|
var i = !0, a = "";
|
|
1058
|
-
|
|
1059
|
-
var l =
|
|
1058
|
+
X = void 0;
|
|
1059
|
+
var l = e[0];
|
|
1060
1060
|
if (l == null || l.raw === void 0)
|
|
1061
|
-
i = !1, a += Ie(n,
|
|
1061
|
+
i = !1, a += Ie(n, t, l);
|
|
1062
1062
|
else {
|
|
1063
1063
|
var d = l;
|
|
1064
1064
|
a += d[0];
|
|
1065
1065
|
}
|
|
1066
|
-
for (var h = 1; h <
|
|
1067
|
-
if (a += Ie(n,
|
|
1066
|
+
for (var h = 1; h < e.length; h++)
|
|
1067
|
+
if (a += Ie(n, t, e[h]), i) {
|
|
1068
1068
|
var m = l;
|
|
1069
1069
|
a += m[h];
|
|
1070
1070
|
}
|
|
1071
1071
|
Nt.lastIndex = 0;
|
|
1072
|
-
for (var p = "",
|
|
1073
|
-
p += "-" +
|
|
1074
|
-
var
|
|
1072
|
+
for (var p = "", T; (T = Nt.exec(a)) !== null; )
|
|
1073
|
+
p += "-" + T[1];
|
|
1074
|
+
var R = An(a) + p;
|
|
1075
1075
|
return {
|
|
1076
|
-
name:
|
|
1076
|
+
name: R,
|
|
1077
1077
|
styles: a,
|
|
1078
|
-
next:
|
|
1078
|
+
next: X
|
|
1079
1079
|
};
|
|
1080
1080
|
}
|
|
1081
|
-
var zn = function(
|
|
1082
|
-
return
|
|
1083
|
-
},
|
|
1081
|
+
var zn = function(t) {
|
|
1082
|
+
return t();
|
|
1083
|
+
}, Bn = te.useInsertionEffect ? te.useInsertionEffect : !1, Ln = Bn || zn, Qt = /* @__PURE__ */ te.createContext(
|
|
1084
1084
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1085
1085
|
// because this module is primarily intended for the browser and node
|
|
1086
1086
|
// but it's also required in react native and similar environments sometimes
|
|
1087
1087
|
// and we could have a special build just for that
|
|
1088
1088
|
// but this is much easier and the native packages
|
|
1089
1089
|
// might use a different theme context in the future anyway
|
|
1090
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */
|
|
1090
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ Mr({
|
|
1091
1091
|
key: "css"
|
|
1092
1092
|
}) : null
|
|
1093
1093
|
);
|
|
1094
|
-
|
|
1095
|
-
var
|
|
1096
|
-
return /* @__PURE__ */
|
|
1097
|
-
var a = at(
|
|
1098
|
-
return
|
|
1094
|
+
Qt.Provider;
|
|
1095
|
+
var Vn = function(t) {
|
|
1096
|
+
return /* @__PURE__ */ _r(function(n, i) {
|
|
1097
|
+
var a = at(Qt);
|
|
1098
|
+
return t(n, a, i);
|
|
1099
1099
|
});
|
|
1100
|
-
},
|
|
1100
|
+
}, Yn = /* @__PURE__ */ te.createContext({}), Be = {}.hasOwnProperty, it = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", er = function(t, n) {
|
|
1101
1101
|
var i = {};
|
|
1102
1102
|
for (var a in n)
|
|
1103
|
-
|
|
1104
|
-
return i[it] =
|
|
1105
|
-
}, Wn = function(
|
|
1106
|
-
var n =
|
|
1107
|
-
return
|
|
1108
|
-
return
|
|
1103
|
+
Be.call(n, a) && (i[a] = n[a]);
|
|
1104
|
+
return i[it] = t, i;
|
|
1105
|
+
}, Wn = function(t) {
|
|
1106
|
+
var n = t.cache, i = t.serialized, a = t.isStringTag;
|
|
1107
|
+
return Xt(n, i, a), Ln(function() {
|
|
1108
|
+
return kn(n, i, a);
|
|
1109
1109
|
}), null;
|
|
1110
|
-
}, Un = /* @__PURE__ */
|
|
1111
|
-
var i =
|
|
1112
|
-
typeof i == "string" &&
|
|
1113
|
-
var a =
|
|
1114
|
-
typeof
|
|
1115
|
-
var h = Dn(l, void 0,
|
|
1116
|
-
d +=
|
|
1110
|
+
}, Un = /* @__PURE__ */ Vn(function(e, t, n) {
|
|
1111
|
+
var i = e.css;
|
|
1112
|
+
typeof i == "string" && t.registered[i] !== void 0 && (i = t.registered[i]);
|
|
1113
|
+
var a = e[it], l = [i], d = "";
|
|
1114
|
+
typeof e.className == "string" ? d = _n(t.registered, l, e.className) : e.className != null && (d = e.className + " ");
|
|
1115
|
+
var h = Dn(l, void 0, te.useContext(Yn));
|
|
1116
|
+
d += t.key + "-" + h.name;
|
|
1117
1117
|
var m = {};
|
|
1118
|
-
for (var p in
|
|
1119
|
-
|
|
1120
|
-
return m.className = d, n && (m.ref = n), /* @__PURE__ */
|
|
1121
|
-
cache:
|
|
1118
|
+
for (var p in e)
|
|
1119
|
+
Be.call(e, p) && p !== "css" && p !== it && (m[p] = e[p]);
|
|
1120
|
+
return m.className = d, n && (m.ref = n), /* @__PURE__ */ te.createElement(te.Fragment, null, /* @__PURE__ */ te.createElement(Wn, {
|
|
1121
|
+
cache: t,
|
|
1122
1122
|
serialized: h,
|
|
1123
1123
|
isStringTag: typeof a == "string"
|
|
1124
|
-
}), /* @__PURE__ */
|
|
1125
|
-
}),
|
|
1126
|
-
return
|
|
1127
|
-
},
|
|
1128
|
-
return
|
|
1124
|
+
}), /* @__PURE__ */ te.createElement(a, m));
|
|
1125
|
+
}), tr = Un, Le = xe.Fragment, o = function(t, n, i) {
|
|
1126
|
+
return Be.call(n, "css") ? xe.jsx(tr, er(t, n), i) : xe.jsx(t, n, i);
|
|
1127
|
+
}, $ = function(t, n, i) {
|
|
1128
|
+
return Be.call(n, "css") ? xe.jsxs(tr, er(t, n), i) : xe.jsxs(t, n, i);
|
|
1129
1129
|
};
|
|
1130
1130
|
const qn = ({
|
|
1131
|
-
onCancel:
|
|
1132
|
-
onSave:
|
|
1131
|
+
onCancel: e,
|
|
1132
|
+
onSave: t
|
|
1133
1133
|
}) => {
|
|
1134
|
-
const n =
|
|
1135
|
-
return /* @__PURE__ */
|
|
1136
|
-
/* @__PURE__ */ o(
|
|
1137
|
-
/* @__PURE__ */ o(
|
|
1138
|
-
|
|
1134
|
+
const n = Dr({ prefix: "modalForm" }), [i, a] = W(""), [l, d] = W(""), [h, m] = W(!1);
|
|
1135
|
+
return /* @__PURE__ */ $(Wr, { onClose: e, initialFocus: "[name=url]", children: [
|
|
1136
|
+
/* @__PURE__ */ o(Br, { children: /* @__PURE__ */ o(zr, { children: "Add video" }) }),
|
|
1137
|
+
/* @__PURE__ */ o(Vr, { children: /* @__PURE__ */ $(
|
|
1138
|
+
Lr,
|
|
1139
1139
|
{
|
|
1140
1140
|
id: n,
|
|
1141
1141
|
component: "form",
|
|
1142
1142
|
onSubmit: async (p) => {
|
|
1143
1143
|
p.preventDefault();
|
|
1144
1144
|
try {
|
|
1145
|
-
m(!0), await
|
|
1145
|
+
m(!0), await t({ url: i, title: l });
|
|
1146
1146
|
} finally {
|
|
1147
1147
|
m(!1);
|
|
1148
1148
|
}
|
|
@@ -1167,10 +1167,10 @@ const qn = ({
|
|
|
1167
1167
|
]
|
|
1168
1168
|
}
|
|
1169
1169
|
) }),
|
|
1170
|
-
/* @__PURE__ */
|
|
1171
|
-
/* @__PURE__ */ o(
|
|
1170
|
+
/* @__PURE__ */ $(Yr, { children: [
|
|
1171
|
+
/* @__PURE__ */ o(Bt, { onClick: e, children: "Cancel" }),
|
|
1172
1172
|
/* @__PURE__ */ o(
|
|
1173
|
-
|
|
1173
|
+
re,
|
|
1174
1174
|
{
|
|
1175
1175
|
type: "submit",
|
|
1176
1176
|
form: n,
|
|
@@ -1183,16 +1183,16 @@ const qn = ({
|
|
|
1183
1183
|
] })
|
|
1184
1184
|
] });
|
|
1185
1185
|
}, $t = ne(
|
|
1186
|
-
({ onSave:
|
|
1187
|
-
const [
|
|
1186
|
+
({ onSave: e }) => {
|
|
1187
|
+
const [t, n] = W(!1), i = N(
|
|
1188
1188
|
async (a) => {
|
|
1189
|
-
await
|
|
1189
|
+
await e(a), n(!1);
|
|
1190
1190
|
},
|
|
1191
|
-
[
|
|
1191
|
+
[e]
|
|
1192
1192
|
);
|
|
1193
|
-
return /* @__PURE__ */
|
|
1193
|
+
return /* @__PURE__ */ $(Le, { children: [
|
|
1194
1194
|
/* @__PURE__ */ o(
|
|
1195
|
-
|
|
1195
|
+
re,
|
|
1196
1196
|
{
|
|
1197
1197
|
onClick: () => n(!0),
|
|
1198
1198
|
iconType: ct,
|
|
@@ -1200,7 +1200,7 @@ const qn = ({
|
|
|
1200
1200
|
children: "Add video"
|
|
1201
1201
|
}
|
|
1202
1202
|
),
|
|
1203
|
-
|
|
1203
|
+
t && /* @__PURE__ */ o(
|
|
1204
1204
|
qn,
|
|
1205
1205
|
{
|
|
1206
1206
|
onCancel: () => n(!1),
|
|
@@ -1209,7 +1209,7 @@ const qn = ({
|
|
|
1209
1209
|
)
|
|
1210
1210
|
] });
|
|
1211
1211
|
}
|
|
1212
|
-
),
|
|
1212
|
+
), rr = {
|
|
1213
1213
|
Audio: "",
|
|
1214
1214
|
Dailymotion: "https://www.dailymotion.com/favicon.ico",
|
|
1215
1215
|
Niconico: "https://www.nicovideo.jp/favicon.ico",
|
|
@@ -1217,26 +1217,26 @@ const qn = ({
|
|
|
1217
1217
|
Twitch: "https://www.twitch.tv/favicon.ico",
|
|
1218
1218
|
Vimeo: "https://vimeo.com/favicon.ico",
|
|
1219
1219
|
YouTube: "https://www.youtube.com/favicon.ico"
|
|
1220
|
-
}, Hn =
|
|
1221
|
-
({ playQueueStore:
|
|
1222
|
-
const { euiTheme:
|
|
1223
|
-
return /* @__PURE__ */
|
|
1224
|
-
|
|
1220
|
+
}, Hn = P(
|
|
1221
|
+
({ playQueueStore: e }) => {
|
|
1222
|
+
const { euiTheme: t } = Lt();
|
|
1223
|
+
return /* @__PURE__ */ $(
|
|
1224
|
+
qr,
|
|
1225
1225
|
{
|
|
1226
1226
|
style: {
|
|
1227
1227
|
position: "sticky",
|
|
1228
1228
|
top: 112,
|
|
1229
1229
|
zIndex: 998,
|
|
1230
|
-
background:
|
|
1230
|
+
background: t.colors.backgroundBasePlain
|
|
1231
1231
|
},
|
|
1232
1232
|
children: [
|
|
1233
|
-
/* @__PURE__ */ o(
|
|
1234
|
-
|
|
1233
|
+
/* @__PURE__ */ o(Ur, { children: /* @__PURE__ */ o(
|
|
1234
|
+
Vt,
|
|
1235
1235
|
{
|
|
1236
1236
|
id: "",
|
|
1237
|
-
checked:
|
|
1237
|
+
checked: e.allItemsSelected,
|
|
1238
1238
|
onChange: (n) => {
|
|
1239
|
-
|
|
1239
|
+
e.allItemsSelected = n.target.checked;
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
1242
|
) }),
|
|
@@ -1249,8 +1249,8 @@ const qn = ({
|
|
|
1249
1249
|
}
|
|
1250
1250
|
), Gn = ne(
|
|
1251
1251
|
({
|
|
1252
|
-
item:
|
|
1253
|
-
closePopover:
|
|
1252
|
+
item: e,
|
|
1253
|
+
closePopover: t
|
|
1254
1254
|
}) => {
|
|
1255
1255
|
const n = De(
|
|
1256
1256
|
() => [
|
|
@@ -1259,23 +1259,23 @@ const qn = ({
|
|
|
1259
1259
|
items: [
|
|
1260
1260
|
{
|
|
1261
1261
|
name: "Play first",
|
|
1262
|
-
icon: /* @__PURE__ */ o(
|
|
1262
|
+
icon: /* @__PURE__ */ o(Y, { type: "" }),
|
|
1263
1263
|
onClick: async () => {
|
|
1264
|
-
|
|
1264
|
+
t(), await e.playFirst();
|
|
1265
1265
|
}
|
|
1266
1266
|
},
|
|
1267
1267
|
{
|
|
1268
1268
|
name: "Play next",
|
|
1269
|
-
icon: /* @__PURE__ */ o(
|
|
1269
|
+
icon: /* @__PURE__ */ o(Y, { type: "" }),
|
|
1270
1270
|
onClick: async () => {
|
|
1271
|
-
|
|
1271
|
+
t(), await e.playNext();
|
|
1272
1272
|
}
|
|
1273
1273
|
},
|
|
1274
1274
|
{
|
|
1275
1275
|
name: "Add to play queue",
|
|
1276
|
-
icon: /* @__PURE__ */ o(
|
|
1276
|
+
icon: /* @__PURE__ */ o(Y, { type: ct }),
|
|
1277
1277
|
onClick: async () => {
|
|
1278
|
-
|
|
1278
|
+
t(), await e.addToPlayQueue();
|
|
1279
1279
|
}
|
|
1280
1280
|
},
|
|
1281
1281
|
{
|
|
@@ -1283,54 +1283,54 @@ const qn = ({
|
|
|
1283
1283
|
},
|
|
1284
1284
|
{
|
|
1285
1285
|
name: "Move to the top",
|
|
1286
|
-
icon: /* @__PURE__ */ o(
|
|
1286
|
+
icon: /* @__PURE__ */ o(Y, { type: rn }),
|
|
1287
1287
|
onClick: async () => {
|
|
1288
|
-
|
|
1288
|
+
t(), e.moveToTop();
|
|
1289
1289
|
},
|
|
1290
|
-
disabled: !
|
|
1290
|
+
disabled: !e.canMoveToTop
|
|
1291
1291
|
},
|
|
1292
1292
|
{
|
|
1293
1293
|
name: "Move to the bottom",
|
|
1294
|
-
icon: /* @__PURE__ */ o(
|
|
1294
|
+
icon: /* @__PURE__ */ o(Y, { type: nn }),
|
|
1295
1295
|
onClick: async () => {
|
|
1296
|
-
|
|
1296
|
+
t(), e.moveToBottom();
|
|
1297
1297
|
},
|
|
1298
|
-
disabled: !
|
|
1298
|
+
disabled: !e.canMoveToBottom
|
|
1299
1299
|
},
|
|
1300
1300
|
{
|
|
1301
1301
|
isSeparator: !0
|
|
1302
1302
|
},
|
|
1303
1303
|
{
|
|
1304
1304
|
name: "Remove to the top",
|
|
1305
|
-
icon: /* @__PURE__ */ o(
|
|
1305
|
+
icon: /* @__PURE__ */ o(Y, { type: "" }),
|
|
1306
1306
|
onClick: async () => {
|
|
1307
|
-
|
|
1307
|
+
t(), await e.removeToTop();
|
|
1308
1308
|
},
|
|
1309
|
-
disabled: !
|
|
1309
|
+
disabled: !e.canRemoveToTop
|
|
1310
1310
|
},
|
|
1311
1311
|
{
|
|
1312
1312
|
name: "Remove others",
|
|
1313
|
-
icon: /* @__PURE__ */ o(
|
|
1313
|
+
icon: /* @__PURE__ */ o(Y, { type: "" }),
|
|
1314
1314
|
onClick: async () => {
|
|
1315
|
-
|
|
1315
|
+
t(), await e.removeOthers();
|
|
1316
1316
|
},
|
|
1317
|
-
disabled: !
|
|
1317
|
+
disabled: !e.canRemoveOthers
|
|
1318
1318
|
}
|
|
1319
1319
|
]
|
|
1320
1320
|
}
|
|
1321
1321
|
],
|
|
1322
|
-
[
|
|
1322
|
+
[t, e]
|
|
1323
1323
|
);
|
|
1324
1324
|
return /* @__PURE__ */ o(st, { initialPanelId: 0, panels: n });
|
|
1325
1325
|
}
|
|
1326
1326
|
), Jn = ne(
|
|
1327
|
-
({ item:
|
|
1328
|
-
const [
|
|
1327
|
+
({ item: e }) => {
|
|
1328
|
+
const [t, n] = W(!1), i = N(() => n(!t), [t]), a = N(() => n(!1), []);
|
|
1329
1329
|
return /* @__PURE__ */ o(
|
|
1330
1330
|
ze,
|
|
1331
1331
|
{
|
|
1332
1332
|
button: /* @__PURE__ */ o(
|
|
1333
|
-
|
|
1333
|
+
q,
|
|
1334
1334
|
{
|
|
1335
1335
|
title: "More options",
|
|
1336
1336
|
"aria-label": "More options",
|
|
@@ -1340,130 +1340,130 @@ const qn = ({
|
|
|
1340
1340
|
onClick: i
|
|
1341
1341
|
}
|
|
1342
1342
|
),
|
|
1343
|
-
isOpen:
|
|
1343
|
+
isOpen: t,
|
|
1344
1344
|
closePopover: a,
|
|
1345
1345
|
panelPaddingSize: "none",
|
|
1346
1346
|
anchorPosition: "leftCenter",
|
|
1347
1347
|
children: /* @__PURE__ */ o(
|
|
1348
1348
|
Gn,
|
|
1349
1349
|
{
|
|
1350
|
-
item:
|
|
1350
|
+
item: e,
|
|
1351
1351
|
closePopover: a
|
|
1352
1352
|
}
|
|
1353
1353
|
)
|
|
1354
1354
|
}
|
|
1355
1355
|
);
|
|
1356
1356
|
}
|
|
1357
|
-
), Kn =
|
|
1358
|
-
({ item:
|
|
1359
|
-
const
|
|
1360
|
-
return /* @__PURE__ */
|
|
1357
|
+
), Kn = P(
|
|
1358
|
+
({ item: e }) => {
|
|
1359
|
+
const t = U();
|
|
1360
|
+
return /* @__PURE__ */ $(nt, { textOnly: !1, hasActions: !0, align: "right", children: [
|
|
1361
1361
|
/* @__PURE__ */ o(
|
|
1362
|
-
|
|
1362
|
+
re,
|
|
1363
1363
|
{
|
|
1364
|
-
iconType:
|
|
1364
|
+
iconType: tn,
|
|
1365
1365
|
size: "s",
|
|
1366
1366
|
onClick: async () => {
|
|
1367
|
-
|
|
1367
|
+
e.isCurrent ? await t.setCurrentTime(0) : e.play();
|
|
1368
1368
|
},
|
|
1369
1369
|
children: "Play"
|
|
1370
1370
|
}
|
|
1371
1371
|
),
|
|
1372
1372
|
/* @__PURE__ */ o(
|
|
1373
|
-
|
|
1373
|
+
re,
|
|
1374
1374
|
{
|
|
1375
1375
|
iconType: ut,
|
|
1376
1376
|
size: "s",
|
|
1377
|
-
onClick:
|
|
1377
|
+
onClick: e.remove,
|
|
1378
1378
|
children: "Remove"
|
|
1379
1379
|
}
|
|
1380
1380
|
),
|
|
1381
|
-
/* @__PURE__ */ o(Jn, { item:
|
|
1381
|
+
/* @__PURE__ */ o(Jn, { item: e })
|
|
1382
1382
|
] });
|
|
1383
1383
|
}
|
|
1384
|
-
), Xn =
|
|
1385
|
-
({ item:
|
|
1386
|
-
const
|
|
1387
|
-
return /* @__PURE__ */
|
|
1388
|
-
/* @__PURE__ */ o(
|
|
1389
|
-
|
|
1384
|
+
), Xn = P(
|
|
1385
|
+
({ item: e }) => {
|
|
1386
|
+
const t = U();
|
|
1387
|
+
return /* @__PURE__ */ $(Jr, { isSelected: e.isCurrent, children: [
|
|
1388
|
+
/* @__PURE__ */ o(Hr, { children: /* @__PURE__ */ o(
|
|
1389
|
+
Vt,
|
|
1390
1390
|
{
|
|
1391
|
-
id:
|
|
1392
|
-
checked:
|
|
1393
|
-
onChange:
|
|
1391
|
+
id: e.id.toString(),
|
|
1392
|
+
checked: e.isSelected,
|
|
1393
|
+
onChange: e.toggleSelected
|
|
1394
1394
|
}
|
|
1395
1395
|
) }),
|
|
1396
1396
|
/* @__PURE__ */ o(nt, { textOnly: !1, children: /* @__PURE__ */ o(
|
|
1397
1397
|
"img",
|
|
1398
1398
|
{
|
|
1399
|
-
src:
|
|
1399
|
+
src: rr[e.type],
|
|
1400
1400
|
width: 16,
|
|
1401
1401
|
height: 16,
|
|
1402
|
-
alt:
|
|
1402
|
+
alt: e.type
|
|
1403
1403
|
}
|
|
1404
1404
|
) }),
|
|
1405
1405
|
/* @__PURE__ */ o(nt, { children: /* @__PURE__ */ o(
|
|
1406
|
-
|
|
1406
|
+
Gr,
|
|
1407
1407
|
{
|
|
1408
|
-
href:
|
|
1408
|
+
href: e.url,
|
|
1409
1409
|
target: "_blank",
|
|
1410
1410
|
external: !0,
|
|
1411
|
-
onClick: () =>
|
|
1412
|
-
children:
|
|
1411
|
+
onClick: () => t.pause(),
|
|
1412
|
+
children: e.title
|
|
1413
1413
|
}
|
|
1414
1414
|
) }),
|
|
1415
|
-
/* @__PURE__ */ o(Kn, { item:
|
|
1416
|
-
] },
|
|
1415
|
+
/* @__PURE__ */ o(Kn, { item: e })
|
|
1416
|
+
] }, e.id);
|
|
1417
1417
|
}
|
|
1418
|
-
), Zn =
|
|
1419
|
-
({ playQueueStore:
|
|
1418
|
+
), Zn = P(
|
|
1419
|
+
({ playQueueStore: e }) => /* @__PURE__ */ o(
|
|
1420
1420
|
bn,
|
|
1421
1421
|
{
|
|
1422
1422
|
tag: "tbody",
|
|
1423
|
-
list:
|
|
1424
|
-
setList: (
|
|
1425
|
-
children:
|
|
1423
|
+
list: e.items,
|
|
1424
|
+
setList: (t) => e.setItems(t),
|
|
1425
|
+
children: e.items.map((t) => /* @__PURE__ */ o(Xn, { item: t }, t.id))
|
|
1426
1426
|
}
|
|
1427
1427
|
)
|
|
1428
|
-
), Qn =
|
|
1429
|
-
({ playQueueStore:
|
|
1430
|
-
/* @__PURE__ */ o(Hn, { playQueueStore:
|
|
1431
|
-
/* @__PURE__ */ o(Zn, { playQueueStore:
|
|
1428
|
+
), Qn = P(
|
|
1429
|
+
({ playQueueStore: e }) => /* @__PURE__ */ $(Kr, { children: [
|
|
1430
|
+
/* @__PURE__ */ o(Hn, { playQueueStore: e }),
|
|
1431
|
+
/* @__PURE__ */ o(Zn, { playQueueStore: e })
|
|
1432
1432
|
] })
|
|
1433
1433
|
);
|
|
1434
|
-
function ei(
|
|
1435
|
-
return
|
|
1434
|
+
function ei(e) {
|
|
1435
|
+
return e !== null && typeof e == "object" && "title" in e && typeof e.title == "string";
|
|
1436
1436
|
}
|
|
1437
|
-
const ti =
|
|
1438
|
-
({ playQueueStore:
|
|
1439
|
-
|
|
1437
|
+
const ti = P(
|
|
1438
|
+
({ playQueueStore: e }) => /* @__PURE__ */ o(
|
|
1439
|
+
re,
|
|
1440
1440
|
{
|
|
1441
1441
|
iconType: ct,
|
|
1442
|
-
onClick:
|
|
1443
|
-
disabled:
|
|
1442
|
+
onClick: e.addSelectedItems,
|
|
1443
|
+
disabled: e.isEmpty || e.selectedItems.length === 0,
|
|
1444
1444
|
children: "Add to play queue"
|
|
1445
1445
|
}
|
|
1446
1446
|
)
|
|
1447
1447
|
);
|
|
1448
|
-
|
|
1449
|
-
({ playQueueStore:
|
|
1450
|
-
const [
|
|
1451
|
-
return /* @__PURE__ */
|
|
1452
|
-
|
|
1453
|
-
|
|
1448
|
+
P(
|
|
1449
|
+
({ playQueueStore: e }) => {
|
|
1450
|
+
const [t, n] = W(!1);
|
|
1451
|
+
return /* @__PURE__ */ $(Le, { children: [
|
|
1452
|
+
t && /* @__PURE__ */ o(
|
|
1453
|
+
Zr,
|
|
1454
1454
|
{
|
|
1455
1455
|
type: "push",
|
|
1456
1456
|
size: "s",
|
|
1457
1457
|
onClose: () => n(!1),
|
|
1458
1458
|
children: /* @__PURE__ */ o("div", { style: { blockSize: "100%" }, children: /* @__PURE__ */ o(
|
|
1459
|
-
|
|
1459
|
+
Xr,
|
|
1460
1460
|
{
|
|
1461
1461
|
language: "json",
|
|
1462
1462
|
overflowHeight: "100%",
|
|
1463
1463
|
isCopyable: !0,
|
|
1464
1464
|
isVirtualized: !0,
|
|
1465
1465
|
children: JSON.stringify(
|
|
1466
|
-
|
|
1466
|
+
e.localStorageState,
|
|
1467
1467
|
void 0,
|
|
1468
1468
|
2
|
|
1469
1469
|
)
|
|
@@ -1472,21 +1472,21 @@ $(
|
|
|
1472
1472
|
}
|
|
1473
1473
|
),
|
|
1474
1474
|
/* @__PURE__ */ o(
|
|
1475
|
-
|
|
1475
|
+
re,
|
|
1476
1476
|
{
|
|
1477
1477
|
onClick: () => n((i) => !i),
|
|
1478
|
-
iconType:
|
|
1478
|
+
iconType: on,
|
|
1479
1479
|
children: "Developer tools"
|
|
1480
1480
|
}
|
|
1481
1481
|
)
|
|
1482
1482
|
] });
|
|
1483
1483
|
}
|
|
1484
1484
|
);
|
|
1485
|
-
const ri =
|
|
1486
|
-
({ playQueueStore:
|
|
1487
|
-
const { euiTheme:
|
|
1485
|
+
const ri = P(
|
|
1486
|
+
({ playQueueStore: e }) => {
|
|
1487
|
+
const { euiTheme: t } = Lt(), n = N(
|
|
1488
1488
|
async (i) => {
|
|
1489
|
-
const a =
|
|
1489
|
+
const a = Fr(i.url);
|
|
1490
1490
|
if (a !== void 0) {
|
|
1491
1491
|
const l = a.extractVideoId(i.url);
|
|
1492
1492
|
if (l !== void 0) {
|
|
@@ -1495,8 +1495,8 @@ const ri = $(
|
|
|
1495
1495
|
i.url
|
|
1496
1496
|
)}`
|
|
1497
1497
|
)).json();
|
|
1498
|
-
await
|
|
1499
|
-
|
|
1498
|
+
await e.addItems([
|
|
1499
|
+
e.createItem({
|
|
1500
1500
|
url: i.url,
|
|
1501
1501
|
type: a.type,
|
|
1502
1502
|
videoId: l,
|
|
@@ -1506,10 +1506,10 @@ const ri = $(
|
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
1508
1508
|
},
|
|
1509
|
-
[
|
|
1509
|
+
[e]
|
|
1510
1510
|
);
|
|
1511
|
-
return /* @__PURE__ */
|
|
1512
|
-
/* @__PURE__ */
|
|
1511
|
+
return /* @__PURE__ */ $(Le, { children: [
|
|
1512
|
+
/* @__PURE__ */ $(
|
|
1513
1513
|
se,
|
|
1514
1514
|
{
|
|
1515
1515
|
alignItems: "center",
|
|
@@ -1518,38 +1518,38 @@ const ri = $(
|
|
|
1518
1518
|
position: "sticky",
|
|
1519
1519
|
top: 48,
|
|
1520
1520
|
zIndex: 998,
|
|
1521
|
-
background:
|
|
1521
|
+
background: t.colors.backgroundBasePlain
|
|
1522
1522
|
},
|
|
1523
1523
|
children: [
|
|
1524
|
-
/* @__PURE__ */ o(
|
|
1525
|
-
|
|
1524
|
+
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
|
|
1525
|
+
re,
|
|
1526
1526
|
{
|
|
1527
|
-
disabled:
|
|
1528
|
-
onClick:
|
|
1527
|
+
disabled: e.isEmpty || e.selectedItems.length === 0,
|
|
1528
|
+
onClick: e.playSelectedItemsNext,
|
|
1529
1529
|
children: "Play next"
|
|
1530
1530
|
}
|
|
1531
1531
|
) }),
|
|
1532
|
-
/* @__PURE__ */ o(
|
|
1533
|
-
/* @__PURE__ */ o(
|
|
1534
|
-
|
|
1532
|
+
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(ti, { playQueueStore: e }) }),
|
|
1533
|
+
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
|
|
1534
|
+
re,
|
|
1535
1535
|
{
|
|
1536
1536
|
iconType: ut,
|
|
1537
|
-
onClick:
|
|
1538
|
-
disabled:
|
|
1537
|
+
onClick: e.removeSelectedItems,
|
|
1538
|
+
disabled: e.isEmpty || e.selectedItems.length === 0,
|
|
1539
1539
|
children: "Remove"
|
|
1540
1540
|
}
|
|
1541
1541
|
) }),
|
|
1542
|
-
/* @__PURE__ */ o(
|
|
1543
|
-
|
|
1542
|
+
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
|
|
1543
|
+
re,
|
|
1544
1544
|
{
|
|
1545
|
-
iconType:
|
|
1546
|
-
onClick:
|
|
1547
|
-
disabled:
|
|
1545
|
+
iconType: an,
|
|
1546
|
+
onClick: e.clear,
|
|
1547
|
+
disabled: e.isEmpty,
|
|
1548
1548
|
children: "Clear"
|
|
1549
1549
|
}
|
|
1550
1550
|
) }),
|
|
1551
|
-
/* @__PURE__ */ o(
|
|
1552
|
-
/* @__PURE__ */
|
|
1551
|
+
/* @__PURE__ */ o(J, { grow: !0 }),
|
|
1552
|
+
/* @__PURE__ */ $(J, { grow: !1, children: [
|
|
1553
1553
|
!1,
|
|
1554
1554
|
/* @__PURE__ */ o($t, { onSave: n })
|
|
1555
1555
|
] })
|
|
@@ -1557,36 +1557,36 @@ const ri = $(
|
|
|
1557
1557
|
}
|
|
1558
1558
|
),
|
|
1559
1559
|
/* @__PURE__ */ o(
|
|
1560
|
-
|
|
1560
|
+
Yt,
|
|
1561
1561
|
{
|
|
1562
1562
|
size: "l",
|
|
1563
1563
|
style: {
|
|
1564
1564
|
position: "sticky",
|
|
1565
1565
|
top: 88,
|
|
1566
1566
|
zIndex: 998,
|
|
1567
|
-
background:
|
|
1567
|
+
background: t.colors.backgroundBasePlain
|
|
1568
1568
|
}
|
|
1569
1569
|
}
|
|
1570
1570
|
),
|
|
1571
|
-
|
|
1572
|
-
|
|
1571
|
+
e.isEmpty ? /* @__PURE__ */ o(
|
|
1572
|
+
Qr,
|
|
1573
1573
|
{
|
|
1574
1574
|
title: /* @__PURE__ */ o("h2", { children: "We couldn't find any videos" }),
|
|
1575
1575
|
body: /* @__PURE__ */ o("p", { children: "Your video library doesn't contain any video content." }),
|
|
1576
1576
|
actions: /* @__PURE__ */ o($t, { onSave: n })
|
|
1577
1577
|
}
|
|
1578
|
-
) : /* @__PURE__ */ o(Qn, { playQueueStore:
|
|
1578
|
+
) : /* @__PURE__ */ o(Qn, { playQueueStore: e })
|
|
1579
1579
|
] });
|
|
1580
1580
|
}
|
|
1581
|
-
), tt = new
|
|
1581
|
+
), tt = new Tn({
|
|
1582
1582
|
coerceTypes: !0
|
|
1583
1583
|
});
|
|
1584
|
-
function ni(
|
|
1584
|
+
function ni(e, t) {
|
|
1585
1585
|
let n;
|
|
1586
|
-
if (n = tt.getSchema(
|
|
1586
|
+
if (n = tt.getSchema(t), n === void 0 && (tt.addSchema(e, t), n = tt.getSchema(t)), n === void 0 || n.schema !== e)
|
|
1587
1587
|
throw new Error(
|
|
1588
1588
|
`Invalid schema. Expected: '${JSON.stringify(
|
|
1589
|
-
|
|
1589
|
+
e
|
|
1590
1590
|
)}', but got '${JSON.stringify(n?.schema)}'.`
|
|
1591
1591
|
);
|
|
1592
1592
|
return n;
|
|
@@ -1609,7 +1609,7 @@ const ii = {
|
|
|
1609
1609
|
},
|
|
1610
1610
|
required: ["url", "type", "videoId", "title"]
|
|
1611
1611
|
};
|
|
1612
|
-
var
|
|
1612
|
+
var O = /* @__PURE__ */ ((e) => (e.Off = "Off", e.All = "All", e.One = "One", e))(O || {});
|
|
1613
1613
|
const oi = {
|
|
1614
1614
|
type: "object",
|
|
1615
1615
|
properties: {
|
|
@@ -1619,7 +1619,7 @@ const oi = {
|
|
|
1619
1619
|
},
|
|
1620
1620
|
repeat: {
|
|
1621
1621
|
type: "string",
|
|
1622
|
-
enum: Object.values(
|
|
1622
|
+
enum: Object.values(O),
|
|
1623
1623
|
nullable: !0
|
|
1624
1624
|
},
|
|
1625
1625
|
shuffle: {
|
|
@@ -1638,9 +1638,9 @@ const oi = {
|
|
|
1638
1638
|
}
|
|
1639
1639
|
};
|
|
1640
1640
|
class $e {
|
|
1641
|
-
constructor(
|
|
1642
|
-
this.observableStateProvider =
|
|
1643
|
-
isSelected:
|
|
1641
|
+
constructor(t, n, i) {
|
|
1642
|
+
this.observableStateProvider = t, this.playQueueStore = n, this.dto = i, this.id = $e.nextId++, t.makeObservable(this, {
|
|
1643
|
+
isSelected: Z,
|
|
1644
1644
|
isCurrent: A,
|
|
1645
1645
|
index: A,
|
|
1646
1646
|
isFirst: A,
|
|
@@ -1665,9 +1665,9 @@ class $e {
|
|
|
1665
1665
|
static nextId = 1;
|
|
1666
1666
|
id;
|
|
1667
1667
|
isSelected = !1;
|
|
1668
|
-
static fromDto(
|
|
1668
|
+
static fromDto(t, n, i) {
|
|
1669
1669
|
return new $e(
|
|
1670
|
-
|
|
1670
|
+
t,
|
|
1671
1671
|
n,
|
|
1672
1672
|
i
|
|
1673
1673
|
);
|
|
@@ -1749,13 +1749,13 @@ class $e {
|
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
1751
|
class ai {
|
|
1752
|
-
constructor(
|
|
1753
|
-
this.observableStateProvider =
|
|
1754
|
-
interacted:
|
|
1755
|
-
items:
|
|
1756
|
-
currentId:
|
|
1757
|
-
repeat:
|
|
1758
|
-
shuffle:
|
|
1752
|
+
constructor(t) {
|
|
1753
|
+
this.observableStateProvider = t, t.makeObservable(this, {
|
|
1754
|
+
interacted: Z,
|
|
1755
|
+
items: Z,
|
|
1756
|
+
currentId: Z,
|
|
1757
|
+
repeat: Z,
|
|
1758
|
+
shuffle: Z,
|
|
1759
1759
|
localStorageState: A.struct,
|
|
1760
1760
|
isEmpty: A,
|
|
1761
1761
|
currentItem: A,
|
|
@@ -1796,13 +1796,13 @@ class ai {
|
|
|
1796
1796
|
interacted = !1;
|
|
1797
1797
|
items = [];
|
|
1798
1798
|
currentId;
|
|
1799
|
-
repeat =
|
|
1799
|
+
repeat = O.Off;
|
|
1800
1800
|
shuffle = !1;
|
|
1801
|
-
createItem(
|
|
1801
|
+
createItem(t) {
|
|
1802
1802
|
return $e.fromDto(
|
|
1803
1803
|
this.observableStateProvider,
|
|
1804
1804
|
this,
|
|
1805
|
-
|
|
1805
|
+
t
|
|
1806
1806
|
);
|
|
1807
1807
|
}
|
|
1808
1808
|
get localStorageState() {
|
|
@@ -1810,24 +1810,24 @@ class ai {
|
|
|
1810
1810
|
version: "1.0",
|
|
1811
1811
|
repeat: this.repeat,
|
|
1812
1812
|
shuffle: this.shuffle,
|
|
1813
|
-
items: this.items.map((
|
|
1813
|
+
items: this.items.map((t) => t.dto),
|
|
1814
1814
|
currentIndex: this.currentIndex
|
|
1815
1815
|
};
|
|
1816
1816
|
}
|
|
1817
|
-
set localStorageState(
|
|
1818
|
-
this.repeat =
|
|
1817
|
+
set localStorageState(t) {
|
|
1818
|
+
this.repeat = t.repeat ?? O.Off, this.shuffle = t.shuffle ?? !1, this.items = t.items?.map((n) => this.createItem(n)) ?? [], this.currentIndex = t.currentIndex;
|
|
1819
1819
|
}
|
|
1820
|
-
validateLocalStorageState(
|
|
1820
|
+
validateLocalStorageState(t) {
|
|
1821
1821
|
return ni(
|
|
1822
1822
|
oi,
|
|
1823
1823
|
"PlayQueueDto"
|
|
1824
|
-
)(
|
|
1824
|
+
)(t);
|
|
1825
1825
|
}
|
|
1826
1826
|
get isEmpty() {
|
|
1827
1827
|
return this.items.length === 0;
|
|
1828
1828
|
}
|
|
1829
1829
|
get currentItem() {
|
|
1830
|
-
return this.items.find((
|
|
1830
|
+
return this.items.find((t) => t.id === this.currentId);
|
|
1831
1831
|
}
|
|
1832
1832
|
get canPlay() {
|
|
1833
1833
|
return this.currentItem !== void 0;
|
|
@@ -1839,10 +1839,10 @@ class ai {
|
|
|
1839
1839
|
return this.items.length > 1;
|
|
1840
1840
|
}
|
|
1841
1841
|
get currentIndex() {
|
|
1842
|
-
return this.currentId !== void 0 ? this.items.findIndex((
|
|
1842
|
+
return this.currentId !== void 0 ? this.items.findIndex((t) => t.id === this.currentId) : void 0;
|
|
1843
1843
|
}
|
|
1844
|
-
set currentIndex(
|
|
1845
|
-
this.currentId =
|
|
1844
|
+
set currentIndex(t) {
|
|
1845
|
+
this.currentId = t !== void 0 ? this.items.at(t)?.id : void 0;
|
|
1846
1846
|
}
|
|
1847
1847
|
get hasPreviousItem() {
|
|
1848
1848
|
return this.hasMultipleItems && this.currentIndex !== void 0 && this.currentIndex > 0;
|
|
@@ -1854,20 +1854,20 @@ class ai {
|
|
|
1854
1854
|
return this.currentIndex !== void 0 && this.currentIndex === this.items.length - 1;
|
|
1855
1855
|
}
|
|
1856
1856
|
get selectedItems() {
|
|
1857
|
-
return this.items.filter((
|
|
1857
|
+
return this.items.filter((t) => t.isSelected);
|
|
1858
1858
|
}
|
|
1859
1859
|
get allItemsSelected() {
|
|
1860
1860
|
return this.selectedItems.length === this.items.length;
|
|
1861
1861
|
}
|
|
1862
|
-
set allItemsSelected(
|
|
1862
|
+
set allItemsSelected(t) {
|
|
1863
1863
|
for (const n of this.items)
|
|
1864
|
-
n.isSelected =
|
|
1864
|
+
n.isSelected = t;
|
|
1865
1865
|
}
|
|
1866
1866
|
get selectedItemsOrAllItems() {
|
|
1867
1867
|
return this.selectedItems.length > 0 ? this.selectedItems : this.items;
|
|
1868
1868
|
}
|
|
1869
|
-
setItems(
|
|
1870
|
-
this.items =
|
|
1869
|
+
setItems(t) {
|
|
1870
|
+
this.items = t;
|
|
1871
1871
|
}
|
|
1872
1872
|
interact() {
|
|
1873
1873
|
this.interacted = !0;
|
|
@@ -1876,88 +1876,88 @@ class ai {
|
|
|
1876
1876
|
this.interact(), this.currentIndex = void 0, this.items = [];
|
|
1877
1877
|
}
|
|
1878
1878
|
unselectAll() {
|
|
1879
|
-
for (const
|
|
1880
|
-
|
|
1879
|
+
for (const t of this.items)
|
|
1880
|
+
t.unselect();
|
|
1881
1881
|
}
|
|
1882
|
-
setCurrentItem(
|
|
1883
|
-
this.interact(), this.currentId =
|
|
1882
|
+
setCurrentItem(t) {
|
|
1883
|
+
this.interact(), this.currentId = t?.id;
|
|
1884
1884
|
}
|
|
1885
|
-
setNextItems(
|
|
1886
|
-
this.currentIndex !== void 0 && this.items.splice(this.currentIndex + 1, 0, ...
|
|
1885
|
+
setNextItems(t) {
|
|
1886
|
+
this.currentIndex !== void 0 && this.items.splice(this.currentIndex + 1, 0, ...t);
|
|
1887
1887
|
}
|
|
1888
|
-
clearAndSetItems(
|
|
1889
|
-
this.clear(), this.setCurrentItem(
|
|
1888
|
+
clearAndSetItems(t) {
|
|
1889
|
+
this.clear(), this.setCurrentItem(t[0]), this.setNextItems(t);
|
|
1890
1890
|
}
|
|
1891
|
-
async playNext(
|
|
1891
|
+
async playNext(t) {
|
|
1892
1892
|
if (this.isEmpty) {
|
|
1893
|
-
this.clearAndSetItems(
|
|
1893
|
+
this.clearAndSetItems(t);
|
|
1894
1894
|
return;
|
|
1895
1895
|
}
|
|
1896
|
-
this.setNextItems(
|
|
1896
|
+
this.setNextItems(t);
|
|
1897
1897
|
}
|
|
1898
1898
|
async playSelectedItemsNext() {
|
|
1899
1899
|
await this.playNext(
|
|
1900
|
-
this.selectedItemsOrAllItems.map((
|
|
1900
|
+
this.selectedItemsOrAllItems.map((t) => t.clone())
|
|
1901
1901
|
), this.unselectAll();
|
|
1902
1902
|
}
|
|
1903
|
-
async addItems(
|
|
1903
|
+
async addItems(t) {
|
|
1904
1904
|
if (this.isEmpty) {
|
|
1905
|
-
this.clearAndSetItems(
|
|
1905
|
+
this.clearAndSetItems(t);
|
|
1906
1906
|
return;
|
|
1907
1907
|
}
|
|
1908
|
-
this.items.push(...
|
|
1908
|
+
this.items.push(...t);
|
|
1909
1909
|
}
|
|
1910
1910
|
async addSelectedItems() {
|
|
1911
1911
|
await this.addItems(
|
|
1912
|
-
this.selectedItemsOrAllItems.map((
|
|
1912
|
+
this.selectedItemsOrAllItems.map((t) => t.clone())
|
|
1913
1913
|
), this.unselectAll();
|
|
1914
1914
|
}
|
|
1915
|
-
async playFirst(
|
|
1915
|
+
async playFirst(t) {
|
|
1916
1916
|
if (this.isEmpty) {
|
|
1917
|
-
this.clearAndSetItems(
|
|
1917
|
+
this.clearAndSetItems(t);
|
|
1918
1918
|
return;
|
|
1919
1919
|
}
|
|
1920
1920
|
const { currentIndex: n } = this;
|
|
1921
|
-
n !== void 0 && (this.interact(), this.items.splice(n, 0, ...
|
|
1921
|
+
n !== void 0 && (this.interact(), this.items.splice(n, 0, ...t), this.currentIndex = n);
|
|
1922
1922
|
}
|
|
1923
|
-
moveItem(
|
|
1924
|
-
const i = this.items.splice(this.items.indexOf(
|
|
1923
|
+
moveItem(t, n) {
|
|
1924
|
+
const i = this.items.splice(this.items.indexOf(t), 1)[0];
|
|
1925
1925
|
this.items.splice(n, 0, i);
|
|
1926
1926
|
}
|
|
1927
|
-
async removeItems(
|
|
1927
|
+
async removeItems(t) {
|
|
1928
1928
|
const { currentItem: n } = this;
|
|
1929
|
-
Pt(this.items, ...
|
|
1929
|
+
Pt(this.items, ...t.filter((l) => l !== n));
|
|
1930
1930
|
const { currentIndex: i, isLastItem: a } = this;
|
|
1931
1931
|
Pt(
|
|
1932
1932
|
this.items,
|
|
1933
|
-
|
|
1933
|
+
t.find((l) => l === n)
|
|
1934
1934
|
), this.currentItem !== n && (this.interact(), a ? await this.goToFirst() : this.currentIndex = i);
|
|
1935
1935
|
}
|
|
1936
1936
|
async removeSelectedItems() {
|
|
1937
1937
|
await this.removeItems(this.selectedItemsOrAllItems), this.unselectAll();
|
|
1938
1938
|
}
|
|
1939
|
-
async removeOtherItems(
|
|
1940
|
-
const n =
|
|
1939
|
+
async removeOtherItems(t) {
|
|
1940
|
+
const n = t.id;
|
|
1941
1941
|
return this.removeItems(
|
|
1942
1942
|
this.items.filter((i) => i.id !== n)
|
|
1943
1943
|
);
|
|
1944
1944
|
}
|
|
1945
|
-
async removeItemsAbove(
|
|
1946
|
-
const n = this.items.indexOf(
|
|
1945
|
+
async removeItemsAbove(t) {
|
|
1946
|
+
const n = this.items.indexOf(t);
|
|
1947
1947
|
return this.removeItems(
|
|
1948
1948
|
this.items.filter((i, a) => a < n)
|
|
1949
1949
|
);
|
|
1950
1950
|
}
|
|
1951
1951
|
toggleRepeat() {
|
|
1952
1952
|
switch (this.repeat) {
|
|
1953
|
-
case
|
|
1954
|
-
this.repeat =
|
|
1953
|
+
case O.Off:
|
|
1954
|
+
this.repeat = O.All;
|
|
1955
1955
|
break;
|
|
1956
|
-
case
|
|
1957
|
-
this.repeat =
|
|
1956
|
+
case O.All:
|
|
1957
|
+
this.repeat = O.One;
|
|
1958
1958
|
break;
|
|
1959
|
-
case
|
|
1960
|
-
this.repeat =
|
|
1959
|
+
case O.One:
|
|
1960
|
+
this.repeat = O.Off;
|
|
1961
1961
|
break;
|
|
1962
1962
|
}
|
|
1963
1963
|
}
|
|
@@ -1974,29 +1974,29 @@ class ai {
|
|
|
1974
1974
|
this.currentIndex !== void 0 && (this.currentIndex = 0);
|
|
1975
1975
|
}
|
|
1976
1976
|
}
|
|
1977
|
-
const
|
|
1978
|
-
children:
|
|
1977
|
+
const nr = zt(void 0), Yi = ({
|
|
1978
|
+
children: e
|
|
1979
1979
|
}) => {
|
|
1980
|
-
const [
|
|
1981
|
-
() => new ai(new
|
|
1982
|
-
), n =
|
|
1983
|
-
return
|
|
1984
|
-
() =>
|
|
1980
|
+
const [t] = W(
|
|
1981
|
+
() => new ai(new Kt())
|
|
1982
|
+
), n = U();
|
|
1983
|
+
return kr(() => Or(
|
|
1984
|
+
() => t.currentItem,
|
|
1985
1985
|
async (i, a) => {
|
|
1986
1986
|
i === void 0 || a === void 0 || i.type === a.type && i.videoId === a.videoId && await n.setCurrentTime(0);
|
|
1987
1987
|
}
|
|
1988
|
-
), [
|
|
1989
|
-
},
|
|
1990
|
-
breadcrumbs:
|
|
1991
|
-
tabs:
|
|
1988
|
+
), [t, n]), /* @__PURE__ */ o(nr.Provider, { value: t, children: e });
|
|
1989
|
+
}, ir = () => at(nr), si = ({
|
|
1990
|
+
breadcrumbs: e,
|
|
1991
|
+
tabs: t,
|
|
1992
1992
|
...n
|
|
1993
1993
|
}) => {
|
|
1994
|
-
const i =
|
|
1994
|
+
const i = En();
|
|
1995
1995
|
return /* @__PURE__ */ o(
|
|
1996
1996
|
lt.Header,
|
|
1997
1997
|
{
|
|
1998
1998
|
...n,
|
|
1999
|
-
breadcrumbs:
|
|
1999
|
+
breadcrumbs: e?.map(({ linkProps: a, ...l }) => ({
|
|
2000
2000
|
...l,
|
|
2001
2001
|
href: a === void 0 ? void 0 : i.buildLocation(
|
|
2002
2002
|
a
|
|
@@ -2006,7 +2006,7 @@ const tr = zt(void 0), ji = ({
|
|
|
2006
2006
|
d.preventDefault(), await i.navigate(a);
|
|
2007
2007
|
}
|
|
2008
2008
|
})),
|
|
2009
|
-
tabs:
|
|
2009
|
+
tabs: t?.map(({ linkProps: a, ...l }) => ({
|
|
2010
2010
|
...l,
|
|
2011
2011
|
href: a === void 0 ? void 0 : i.buildLocation(
|
|
2012
2012
|
a
|
|
@@ -2018,9 +2018,9 @@ const tr = zt(void 0), ji = ({
|
|
|
2018
2018
|
}))
|
|
2019
2019
|
}
|
|
2020
2020
|
);
|
|
2021
|
-
},
|
|
2022
|
-
const
|
|
2023
|
-
return /* @__PURE__ */
|
|
2021
|
+
}, Wi = () => {
|
|
2022
|
+
const e = ir();
|
|
2023
|
+
return /* @__PURE__ */ $(Le, { children: [
|
|
2024
2024
|
/* @__PURE__ */ o(
|
|
2025
2025
|
si,
|
|
2026
2026
|
{
|
|
@@ -2028,206 +2028,291 @@ const tr = zt(void 0), ji = ({
|
|
|
2028
2028
|
rightSideItems: []
|
|
2029
2029
|
}
|
|
2030
2030
|
),
|
|
2031
|
-
/* @__PURE__ */ o(lt.Section, { children: /* @__PURE__ */ o(ri, { playQueueStore:
|
|
2031
|
+
/* @__PURE__ */ o(lt.Section, { children: /* @__PURE__ */ o(ri, { playQueueStore: e }) })
|
|
2032
2032
|
] });
|
|
2033
|
-
}, li =
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2033
|
+
}, li = P(
|
|
2034
|
+
({ playQueueStore: e }) => /* @__PURE__ */ o(
|
|
2035
|
+
q,
|
|
2036
|
+
{
|
|
2037
|
+
title: `Shuffle: ${e.shuffle ? "On" : "Off"}`,
|
|
2038
|
+
"aria-label": `Shuffle: ${e.shuffle ? "On" : "Off"}`,
|
|
2039
|
+
iconType: e.shuffle ? sn : ln,
|
|
2040
|
+
size: "s",
|
|
2041
|
+
iconSize: "l",
|
|
2042
|
+
onClick: e.toggleShuffle,
|
|
2043
|
+
disabled: !0
|
|
2044
|
+
}
|
|
2045
|
+
)
|
|
2046
|
+
), ci = P(
|
|
2047
|
+
({ playQueueStore: e }) => {
|
|
2048
|
+
const t = U(), n = N(async () => {
|
|
2043
2049
|
if (e.hasPreviousItem) {
|
|
2044
|
-
const
|
|
2045
|
-
|
|
2050
|
+
const i = await t.getCurrentTime();
|
|
2051
|
+
i === void 0 || i < 5 ? await e.previous() : await t.setCurrentTime(0);
|
|
2046
2052
|
} else
|
|
2047
|
-
await
|
|
2048
|
-
}, [e,
|
|
2049
|
-
return /* @__PURE__ */
|
|
2050
|
-
|
|
2053
|
+
await t.setCurrentTime(0);
|
|
2054
|
+
}, [e, t]);
|
|
2055
|
+
return /* @__PURE__ */ o(
|
|
2056
|
+
q,
|
|
2051
2057
|
{
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
{
|
|
2095
|
-
title: "Play",
|
|
2096
|
-
"aria-label": "Play",
|
|
2097
|
-
iconType: fn,
|
|
2098
|
-
size: "s",
|
|
2099
|
-
iconSize: "l",
|
|
2100
|
-
onClick: () => n.play(),
|
|
2101
|
-
disabled: !e.canPlay || !t.controller.supports("play")
|
|
2102
|
-
}
|
|
2103
|
-
),
|
|
2104
|
-
/* @__PURE__ */ o(
|
|
2105
|
-
H,
|
|
2106
|
-
{
|
|
2107
|
-
title: "Next",
|
|
2108
|
-
"aria-label": "Next",
|
|
2109
|
-
iconType: mn,
|
|
2110
|
-
size: "s",
|
|
2111
|
-
iconSize: "l",
|
|
2112
|
-
onClick: e.next,
|
|
2113
|
-
disabled: !e.hasNextItem
|
|
2114
|
-
}
|
|
2115
|
-
),
|
|
2116
|
-
/* @__PURE__ */ o(
|
|
2117
|
-
H,
|
|
2118
|
-
{
|
|
2119
|
-
title: `Repeat: ${e.repeat === w.All ? "All" : e.repeat === w.One ? "One" : "Off"}`,
|
|
2120
|
-
"aria-label": `Repeat: ${e.repeat === w.All ? "All" : e.repeat === w.One ? "One" : "Off"}`,
|
|
2121
|
-
iconType: li[e.repeat],
|
|
2122
|
-
size: "s",
|
|
2123
|
-
iconSize: "l",
|
|
2124
|
-
onClick: e.toggleRepeat
|
|
2125
|
-
}
|
|
2126
|
-
)
|
|
2127
|
-
]
|
|
2058
|
+
title: "Previous",
|
|
2059
|
+
"aria-label": "Previous",
|
|
2060
|
+
iconType: cn,
|
|
2061
|
+
size: "s",
|
|
2062
|
+
iconSize: "l",
|
|
2063
|
+
onClick: n,
|
|
2064
|
+
disabled: e.isEmpty
|
|
2065
|
+
}
|
|
2066
|
+
);
|
|
2067
|
+
}
|
|
2068
|
+
), ui = P(
|
|
2069
|
+
({ playerStore: e, playQueueStore: t }) => {
|
|
2070
|
+
const n = U(), i = N(async () => {
|
|
2071
|
+
const a = await n.getCurrentTime();
|
|
2072
|
+
a !== void 0 && await n.setCurrentTime(a - 10);
|
|
2073
|
+
}, [n]);
|
|
2074
|
+
return /* @__PURE__ */ o(
|
|
2075
|
+
q,
|
|
2076
|
+
{
|
|
2077
|
+
title: "Skip back 10 seconds",
|
|
2078
|
+
"aria-label": "Skip back 10 seconds",
|
|
2079
|
+
iconType: qt,
|
|
2080
|
+
size: "s",
|
|
2081
|
+
iconSize: "l",
|
|
2082
|
+
onClick: i,
|
|
2083
|
+
disabled: t.isEmpty || !e.controller.supports("setCurrentTime")
|
|
2084
|
+
}
|
|
2085
|
+
);
|
|
2086
|
+
}
|
|
2087
|
+
), di = P(
|
|
2088
|
+
({ playerStore: e, playQueueStore: t }) => {
|
|
2089
|
+
const n = U();
|
|
2090
|
+
return /* @__PURE__ */ o(
|
|
2091
|
+
q,
|
|
2092
|
+
{
|
|
2093
|
+
title: "Pause",
|
|
2094
|
+
"aria-label": "Pause",
|
|
2095
|
+
iconType: un,
|
|
2096
|
+
size: "s",
|
|
2097
|
+
iconSize: "l",
|
|
2098
|
+
onClick: () => n.pause(),
|
|
2099
|
+
disabled: !t.canPause || !e.controller.supports("pause")
|
|
2128
2100
|
}
|
|
2129
2101
|
);
|
|
2130
2102
|
}
|
|
2131
|
-
),
|
|
2132
|
-
({
|
|
2133
|
-
const n =
|
|
2103
|
+
), fi = P(
|
|
2104
|
+
({ playerStore: e, playQueueStore: t }) => {
|
|
2105
|
+
const n = U();
|
|
2106
|
+
return /* @__PURE__ */ o(
|
|
2107
|
+
q,
|
|
2108
|
+
{
|
|
2109
|
+
title: "Play",
|
|
2110
|
+
"aria-label": "Play",
|
|
2111
|
+
iconType: dn,
|
|
2112
|
+
size: "s",
|
|
2113
|
+
iconSize: "l",
|
|
2114
|
+
onClick: () => n.play(),
|
|
2115
|
+
disabled: !t.canPlay || !e.controller.supports("play")
|
|
2116
|
+
}
|
|
2117
|
+
);
|
|
2118
|
+
}
|
|
2119
|
+
), mi = P(
|
|
2120
|
+
({
|
|
2121
|
+
playerStore: e,
|
|
2122
|
+
playQueueStore: t
|
|
2123
|
+
}) => {
|
|
2124
|
+
const n = U(), i = N(async () => {
|
|
2125
|
+
const a = await n.getCurrentTime();
|
|
2126
|
+
a !== void 0 && await n.setCurrentTime(a + 30);
|
|
2127
|
+
}, [n]);
|
|
2128
|
+
return /* @__PURE__ */ o(
|
|
2129
|
+
q,
|
|
2130
|
+
{
|
|
2131
|
+
title: "Skip forward 30 seconds",
|
|
2132
|
+
"aria-label": "Skip forward 30 seconds",
|
|
2133
|
+
iconType: Ht,
|
|
2134
|
+
size: "s",
|
|
2135
|
+
iconSize: "l",
|
|
2136
|
+
onClick: i,
|
|
2137
|
+
disabled: t.isEmpty || !e.controller.supports("setCurrentTime")
|
|
2138
|
+
}
|
|
2139
|
+
);
|
|
2140
|
+
}
|
|
2141
|
+
), hi = P(
|
|
2142
|
+
({ playQueueStore: e }) => /* @__PURE__ */ o(
|
|
2143
|
+
q,
|
|
2144
|
+
{
|
|
2145
|
+
title: "Next",
|
|
2146
|
+
"aria-label": "Next",
|
|
2147
|
+
iconType: fn,
|
|
2148
|
+
size: "s",
|
|
2149
|
+
iconSize: "l",
|
|
2150
|
+
onClick: e.next,
|
|
2151
|
+
disabled: !e.hasNextItem
|
|
2152
|
+
}
|
|
2153
|
+
)
|
|
2154
|
+
), vi = {
|
|
2155
|
+
[O.Off]: vn,
|
|
2156
|
+
[O.All]: hn,
|
|
2157
|
+
[O.One]: mn
|
|
2158
|
+
}, pi = P(
|
|
2159
|
+
({ playQueueStore: e }) => /* @__PURE__ */ o(
|
|
2160
|
+
q,
|
|
2161
|
+
{
|
|
2162
|
+
title: `Repeat: ${e.repeat === O.All ? "All" : e.repeat === O.One ? "One" : "Off"}`,
|
|
2163
|
+
"aria-label": `Repeat: ${e.repeat === O.All ? "All" : e.repeat === O.One ? "One" : "Off"}`,
|
|
2164
|
+
iconType: vi[e.repeat],
|
|
2165
|
+
size: "s",
|
|
2166
|
+
iconSize: "l",
|
|
2167
|
+
onClick: e.toggleRepeat
|
|
2168
|
+
}
|
|
2169
|
+
)
|
|
2170
|
+
), yi = P(
|
|
2171
|
+
({
|
|
2172
|
+
playerStore: e,
|
|
2173
|
+
playQueueStore: t
|
|
2174
|
+
}) => /* @__PURE__ */ $(
|
|
2175
|
+
se,
|
|
2176
|
+
{
|
|
2177
|
+
responsive: !1,
|
|
2178
|
+
gutterSize: "s",
|
|
2179
|
+
justifyContent: "center",
|
|
2180
|
+
alignItems: "center",
|
|
2181
|
+
children: [
|
|
2182
|
+
/* @__PURE__ */ o(li, { playQueueStore: t }),
|
|
2183
|
+
/* @__PURE__ */ o(ci, { playQueueStore: t }),
|
|
2184
|
+
/* @__PURE__ */ o(
|
|
2185
|
+
ui,
|
|
2186
|
+
{
|
|
2187
|
+
playerStore: e,
|
|
2188
|
+
playQueueStore: t
|
|
2189
|
+
}
|
|
2190
|
+
),
|
|
2191
|
+
e.playing ? /* @__PURE__ */ o(
|
|
2192
|
+
di,
|
|
2193
|
+
{
|
|
2194
|
+
playerStore: e,
|
|
2195
|
+
playQueueStore: t
|
|
2196
|
+
}
|
|
2197
|
+
) : /* @__PURE__ */ o(
|
|
2198
|
+
fi,
|
|
2199
|
+
{
|
|
2200
|
+
playerStore: e,
|
|
2201
|
+
playQueueStore: t
|
|
2202
|
+
}
|
|
2203
|
+
),
|
|
2204
|
+
/* @__PURE__ */ o(
|
|
2205
|
+
mi,
|
|
2206
|
+
{
|
|
2207
|
+
playerStore: e,
|
|
2208
|
+
playQueueStore: t
|
|
2209
|
+
}
|
|
2210
|
+
),
|
|
2211
|
+
/* @__PURE__ */ o(hi, { playQueueStore: t }),
|
|
2212
|
+
/* @__PURE__ */ o(pi, { playQueueStore: t })
|
|
2213
|
+
]
|
|
2214
|
+
}
|
|
2215
|
+
)
|
|
2216
|
+
), gi = ne(
|
|
2217
|
+
({ item: e, closePopover: t }) => {
|
|
2218
|
+
const n = U(), i = De(
|
|
2134
2219
|
() => [
|
|
2135
2220
|
{
|
|
2136
2221
|
id: 0,
|
|
2137
2222
|
items: [
|
|
2138
2223
|
{
|
|
2139
2224
|
name: "Open in new tab",
|
|
2140
|
-
icon: /* @__PURE__ */ o(
|
|
2225
|
+
icon: /* @__PURE__ */ o(Y, { type: pn }),
|
|
2141
2226
|
onClick: async () => {
|
|
2142
|
-
|
|
2227
|
+
t(), await n.pause(), window.open(e.dto.url, "_blank");
|
|
2143
2228
|
}
|
|
2144
2229
|
},
|
|
2145
2230
|
{
|
|
2146
2231
|
name: "Copy link address",
|
|
2147
|
-
icon: /* @__PURE__ */ o(
|
|
2232
|
+
icon: /* @__PURE__ */ o(Y, { type: "" }),
|
|
2148
2233
|
onClick: async () => {
|
|
2149
|
-
|
|
2150
|
-
|
|
2234
|
+
t(), await navigator.clipboard.writeText(
|
|
2235
|
+
e.dto.url
|
|
2151
2236
|
);
|
|
2152
2237
|
}
|
|
2153
2238
|
},
|
|
2154
2239
|
{
|
|
2155
2240
|
name: "Copy link text",
|
|
2156
|
-
icon: /* @__PURE__ */ o(
|
|
2241
|
+
icon: /* @__PURE__ */ o(Y, { type: "" }),
|
|
2157
2242
|
onClick: async () => {
|
|
2158
|
-
|
|
2159
|
-
|
|
2243
|
+
t(), await navigator.clipboard.writeText(
|
|
2244
|
+
e.dto.title
|
|
2160
2245
|
);
|
|
2161
2246
|
}
|
|
2162
2247
|
}
|
|
2163
2248
|
]
|
|
2164
2249
|
}
|
|
2165
2250
|
],
|
|
2166
|
-
[
|
|
2251
|
+
[t, n, e]
|
|
2167
2252
|
);
|
|
2168
2253
|
return /* @__PURE__ */ o(st, { initialPanelId: 0, panels: i });
|
|
2169
2254
|
}
|
|
2170
|
-
),
|
|
2171
|
-
({ item:
|
|
2172
|
-
const [
|
|
2255
|
+
), bi = ne(
|
|
2256
|
+
({ item: e }) => {
|
|
2257
|
+
const [t, n] = W(!1), i = N(() => n(!t), [t]), a = N(() => n(!1), []);
|
|
2173
2258
|
return /* @__PURE__ */ o(
|
|
2174
2259
|
ze,
|
|
2175
2260
|
{
|
|
2176
2261
|
button: /* @__PURE__ */ o(
|
|
2177
|
-
|
|
2262
|
+
Bt,
|
|
2178
2263
|
{
|
|
2179
|
-
iconType:
|
|
2264
|
+
iconType: rr[e.type],
|
|
2180
2265
|
size: "s",
|
|
2181
2266
|
onClick: i,
|
|
2182
|
-
children:
|
|
2267
|
+
children: e.title
|
|
2183
2268
|
}
|
|
2184
2269
|
),
|
|
2185
|
-
isOpen:
|
|
2270
|
+
isOpen: t,
|
|
2186
2271
|
closePopover: a,
|
|
2187
2272
|
panelPaddingSize: "none",
|
|
2188
2273
|
anchorPosition: "upLeft",
|
|
2189
2274
|
children: /* @__PURE__ */ o(
|
|
2190
|
-
|
|
2275
|
+
gi,
|
|
2191
2276
|
{
|
|
2192
|
-
item:
|
|
2277
|
+
item: e,
|
|
2193
2278
|
closePopover: a
|
|
2194
2279
|
}
|
|
2195
2280
|
)
|
|
2196
2281
|
}
|
|
2197
2282
|
);
|
|
2198
2283
|
}
|
|
2199
|
-
),
|
|
2200
|
-
({ playQueueStore:
|
|
2284
|
+
), Ti = P(
|
|
2285
|
+
({ playQueueStore: e }) => /* @__PURE__ */ o(
|
|
2201
2286
|
se,
|
|
2202
2287
|
{
|
|
2203
2288
|
responsive: !1,
|
|
2204
2289
|
gutterSize: "s",
|
|
2205
2290
|
justifyContent: "flexStart",
|
|
2206
2291
|
alignItems: "center",
|
|
2207
|
-
children:
|
|
2292
|
+
children: e.currentItem && /* @__PURE__ */ o(bi, { item: e.currentItem })
|
|
2208
2293
|
}
|
|
2209
2294
|
)
|
|
2210
|
-
),
|
|
2211
|
-
({ playerStore:
|
|
2212
|
-
|
|
2295
|
+
), Ei = P(
|
|
2296
|
+
({ playerStore: e }) => /* @__PURE__ */ o(
|
|
2297
|
+
q,
|
|
2213
2298
|
{
|
|
2214
2299
|
title: "Mute",
|
|
2215
2300
|
"aria-label": "Mute",
|
|
2216
|
-
iconType:
|
|
2301
|
+
iconType: Gt,
|
|
2217
2302
|
size: "s",
|
|
2218
2303
|
iconSize: "l",
|
|
2219
|
-
disabled: !
|
|
2304
|
+
disabled: !e.controller.supports("setMuted")
|
|
2220
2305
|
}
|
|
2221
2306
|
)
|
|
2222
|
-
),
|
|
2307
|
+
), Ci = P(
|
|
2223
2308
|
({
|
|
2224
|
-
playerStore:
|
|
2225
|
-
button:
|
|
2309
|
+
playerStore: e,
|
|
2310
|
+
button: t,
|
|
2226
2311
|
isOpen: n,
|
|
2227
2312
|
closePopover: i
|
|
2228
2313
|
}) => {
|
|
2229
|
-
const [a, l] = W("0"), d =
|
|
2230
|
-
|
|
2314
|
+
const [a, l] = W("0"), d = U();
|
|
2315
|
+
Ar(() => {
|
|
2231
2316
|
n && d.getVolume().then((m) => {
|
|
2232
2317
|
m !== void 0 && l(Math.floor(m * 100).toString());
|
|
2233
2318
|
});
|
|
@@ -2241,11 +2326,11 @@ const tr = zt(void 0), ji = ({
|
|
|
2241
2326
|
return /* @__PURE__ */ o(
|
|
2242
2327
|
ze,
|
|
2243
2328
|
{
|
|
2244
|
-
button:
|
|
2329
|
+
button: t,
|
|
2245
2330
|
isOpen: n,
|
|
2246
2331
|
closePopover: i,
|
|
2247
2332
|
anchorPosition: "upRight",
|
|
2248
|
-
children: /* @__PURE__ */ o(rt, { children: /* @__PURE__ */
|
|
2333
|
+
children: /* @__PURE__ */ o(rt, { children: /* @__PURE__ */ $(
|
|
2249
2334
|
se,
|
|
2250
2335
|
{
|
|
2251
2336
|
responsive: !1,
|
|
@@ -2253,7 +2338,7 @@ const tr = zt(void 0), ji = ({
|
|
|
2253
2338
|
justifyContent: "center",
|
|
2254
2339
|
alignItems: "center",
|
|
2255
2340
|
children: [
|
|
2256
|
-
/* @__PURE__ */ o(
|
|
2341
|
+
/* @__PURE__ */ o(Ei, { playerStore: e }),
|
|
2257
2342
|
/* @__PURE__ */ o(
|
|
2258
2343
|
Wt,
|
|
2259
2344
|
{
|
|
@@ -2263,7 +2348,7 @@ const tr = zt(void 0), ji = ({
|
|
|
2263
2348
|
value: a,
|
|
2264
2349
|
onChange: h,
|
|
2265
2350
|
css: { blockSize: 32 },
|
|
2266
|
-
disabled: !
|
|
2351
|
+
disabled: !e.controller.supports("setVolume")
|
|
2267
2352
|
}
|
|
2268
2353
|
)
|
|
2269
2354
|
]
|
|
@@ -2272,49 +2357,49 @@ const tr = zt(void 0), ji = ({
|
|
|
2272
2357
|
}
|
|
2273
2358
|
);
|
|
2274
2359
|
}
|
|
2275
|
-
),
|
|
2276
|
-
({ playerStore:
|
|
2277
|
-
const [
|
|
2360
|
+
), xi = P(
|
|
2361
|
+
({ playerStore: e }) => {
|
|
2362
|
+
const [t, n] = W(!1);
|
|
2278
2363
|
return /* @__PURE__ */ o(
|
|
2279
|
-
|
|
2364
|
+
Ci,
|
|
2280
2365
|
{
|
|
2281
|
-
playerStore:
|
|
2366
|
+
playerStore: e,
|
|
2282
2367
|
button: /* @__PURE__ */ o(
|
|
2283
|
-
|
|
2368
|
+
q,
|
|
2284
2369
|
{
|
|
2285
2370
|
title: "Volume",
|
|
2286
2371
|
"aria-label": "Volume",
|
|
2287
|
-
iconType:
|
|
2372
|
+
iconType: Gt,
|
|
2288
2373
|
size: "s",
|
|
2289
2374
|
iconSize: "l",
|
|
2290
|
-
onClick: () => n(!
|
|
2291
|
-
disabled: !
|
|
2375
|
+
onClick: () => n(!t),
|
|
2376
|
+
disabled: !e.controller.supports("getVolume")
|
|
2292
2377
|
}
|
|
2293
2378
|
),
|
|
2294
|
-
isOpen:
|
|
2379
|
+
isOpen: t,
|
|
2295
2380
|
closePopover: () => n(!1)
|
|
2296
2381
|
}
|
|
2297
2382
|
);
|
|
2298
2383
|
}
|
|
2299
|
-
),
|
|
2300
|
-
onClickPlayQueueButton:
|
|
2384
|
+
), Ii = ({
|
|
2385
|
+
onClickPlayQueueButton: e
|
|
2301
2386
|
}) => /* @__PURE__ */ o(
|
|
2302
|
-
|
|
2387
|
+
q,
|
|
2303
2388
|
{
|
|
2304
2389
|
title: "Play queue",
|
|
2305
2390
|
"aria-label": "Play queue",
|
|
2306
2391
|
iconType: gn,
|
|
2307
2392
|
size: "s",
|
|
2308
2393
|
iconSize: "l",
|
|
2309
|
-
onClick:
|
|
2394
|
+
onClick: e
|
|
2310
2395
|
}
|
|
2311
|
-
),
|
|
2396
|
+
), Si = P(
|
|
2312
2397
|
({
|
|
2313
|
-
playerStore:
|
|
2314
|
-
playQueueStore:
|
|
2398
|
+
playerStore: e,
|
|
2399
|
+
playQueueStore: t,
|
|
2315
2400
|
closePopover: n
|
|
2316
2401
|
}) => {
|
|
2317
|
-
const i =
|
|
2402
|
+
const i = U(), a = N(async () => {
|
|
2318
2403
|
const I = await i.getCurrentTime();
|
|
2319
2404
|
I !== void 0 && await i.setCurrentTime(I - 10), n();
|
|
2320
2405
|
}, [i, n]), l = N(async () => {
|
|
@@ -2326,38 +2411,38 @@ const tr = zt(void 0), ji = ({
|
|
|
2326
2411
|
},
|
|
2327
2412
|
[i, n]
|
|
2328
2413
|
), h = N(async () => {
|
|
2329
|
-
|
|
2330
|
-
|
|
2414
|
+
t.currentItem !== void 0 && await t.removeItems([
|
|
2415
|
+
t.currentItem
|
|
2331
2416
|
]), n();
|
|
2332
|
-
}, [
|
|
2333
|
-
await
|
|
2334
|
-
}, [
|
|
2417
|
+
}, [t, n]), [m, p] = W(), T = N(async () => {
|
|
2418
|
+
await e.controller.getPlaybackRate().then((I) => p(I));
|
|
2419
|
+
}, [e]), R = De(
|
|
2335
2420
|
() => [
|
|
2336
2421
|
{
|
|
2337
2422
|
id: 0,
|
|
2338
2423
|
items: [
|
|
2339
2424
|
{
|
|
2340
2425
|
name: "Speed",
|
|
2341
|
-
icon: /* @__PURE__ */ o(
|
|
2426
|
+
icon: /* @__PURE__ */ o(Y, { type: yn }),
|
|
2342
2427
|
panel: 1,
|
|
2343
|
-
onClick:
|
|
2344
|
-
disabled: !
|
|
2428
|
+
onClick: T,
|
|
2429
|
+
disabled: !e.controller.supports(
|
|
2345
2430
|
"getPlaybackRate"
|
|
2346
2431
|
)
|
|
2347
2432
|
},
|
|
2348
2433
|
{
|
|
2349
2434
|
name: "Skip back 10 seconds",
|
|
2350
|
-
icon: /* @__PURE__ */ o(
|
|
2435
|
+
icon: /* @__PURE__ */ o(Y, { type: qt }),
|
|
2351
2436
|
onClick: a,
|
|
2352
|
-
disabled:
|
|
2437
|
+
disabled: t.isEmpty || !e.controller.supports(
|
|
2353
2438
|
"setCurrentTime"
|
|
2354
2439
|
)
|
|
2355
2440
|
},
|
|
2356
2441
|
{
|
|
2357
2442
|
name: "Skip forward 30 seconds",
|
|
2358
|
-
icon: /* @__PURE__ */ o(
|
|
2443
|
+
icon: /* @__PURE__ */ o(Y, { type: Ht }),
|
|
2359
2444
|
onClick: l,
|
|
2360
|
-
disabled:
|
|
2445
|
+
disabled: t.isEmpty || !e.controller.supports(
|
|
2361
2446
|
"setCurrentTime"
|
|
2362
2447
|
)
|
|
2363
2448
|
},
|
|
@@ -2366,9 +2451,9 @@ const tr = zt(void 0), ji = ({
|
|
|
2366
2451
|
},
|
|
2367
2452
|
{
|
|
2368
2453
|
name: "Remove from play queue",
|
|
2369
|
-
icon: /* @__PURE__ */ o(
|
|
2454
|
+
icon: /* @__PURE__ */ o(Y, { type: ut }),
|
|
2370
2455
|
onClick: h,
|
|
2371
|
-
disabled:
|
|
2456
|
+
disabled: t.isEmpty
|
|
2372
2457
|
}
|
|
2373
2458
|
]
|
|
2374
2459
|
},
|
|
@@ -2380,7 +2465,7 @@ const tr = zt(void 0), ji = ({
|
|
|
2380
2465
|
name: I.toString(),
|
|
2381
2466
|
onClick: () => d(I),
|
|
2382
2467
|
icon: I === m ? "check" : "empty",
|
|
2383
|
-
disabled: !
|
|
2468
|
+
disabled: !e.controller.supports(
|
|
2384
2469
|
"setPlaybackRate"
|
|
2385
2470
|
)
|
|
2386
2471
|
})
|
|
@@ -2388,9 +2473,9 @@ const tr = zt(void 0), ji = ({
|
|
|
2388
2473
|
}
|
|
2389
2474
|
],
|
|
2390
2475
|
[
|
|
2391
|
-
t,
|
|
2392
2476
|
e,
|
|
2393
|
-
|
|
2477
|
+
t,
|
|
2478
|
+
T,
|
|
2394
2479
|
a,
|
|
2395
2480
|
l,
|
|
2396
2481
|
h,
|
|
@@ -2398,12 +2483,12 @@ const tr = zt(void 0), ji = ({
|
|
|
2398
2483
|
m
|
|
2399
2484
|
]
|
|
2400
2485
|
);
|
|
2401
|
-
return /* @__PURE__ */ o(st, { initialPanelId: 0, panels:
|
|
2486
|
+
return /* @__PURE__ */ o(st, { initialPanelId: 0, panels: R });
|
|
2402
2487
|
}
|
|
2403
|
-
),
|
|
2488
|
+
), Pi = ne(
|
|
2404
2489
|
({
|
|
2405
|
-
playerStore:
|
|
2406
|
-
playQueueStore:
|
|
2490
|
+
playerStore: e,
|
|
2491
|
+
playQueueStore: t,
|
|
2407
2492
|
button: n,
|
|
2408
2493
|
isOpen: i,
|
|
2409
2494
|
closePopover: a
|
|
@@ -2416,25 +2501,25 @@ const tr = zt(void 0), ji = ({
|
|
|
2416
2501
|
panelPaddingSize: "none",
|
|
2417
2502
|
anchorPosition: "upRight",
|
|
2418
2503
|
children: /* @__PURE__ */ o(
|
|
2419
|
-
|
|
2504
|
+
Si,
|
|
2420
2505
|
{
|
|
2421
|
-
playerStore:
|
|
2422
|
-
playQueueStore:
|
|
2506
|
+
playerStore: e,
|
|
2507
|
+
playQueueStore: t,
|
|
2423
2508
|
closePopover: a
|
|
2424
2509
|
}
|
|
2425
2510
|
)
|
|
2426
2511
|
}
|
|
2427
2512
|
)
|
|
2428
|
-
),
|
|
2429
|
-
({ playerStore:
|
|
2513
|
+
), Ri = ne(
|
|
2514
|
+
({ playerStore: e, playQueueStore: t }) => {
|
|
2430
2515
|
const [n, i] = W(!1);
|
|
2431
2516
|
return /* @__PURE__ */ o(
|
|
2432
|
-
|
|
2517
|
+
Pi,
|
|
2433
2518
|
{
|
|
2434
|
-
playerStore:
|
|
2435
|
-
playQueueStore:
|
|
2519
|
+
playerStore: e,
|
|
2520
|
+
playQueueStore: t,
|
|
2436
2521
|
button: /* @__PURE__ */ o(
|
|
2437
|
-
|
|
2522
|
+
q,
|
|
2438
2523
|
{
|
|
2439
2524
|
title: "More options",
|
|
2440
2525
|
"aria-label": "More options",
|
|
@@ -2449,12 +2534,12 @@ const tr = zt(void 0), ji = ({
|
|
|
2449
2534
|
}
|
|
2450
2535
|
);
|
|
2451
2536
|
}
|
|
2452
|
-
),
|
|
2537
|
+
), wi = ne(
|
|
2453
2538
|
({
|
|
2454
|
-
playerStore:
|
|
2455
|
-
playQueueStore:
|
|
2539
|
+
playerStore: e,
|
|
2540
|
+
playQueueStore: t,
|
|
2456
2541
|
onClickPlayQueueButton: n
|
|
2457
|
-
}) => /* @__PURE__ */
|
|
2542
|
+
}) => /* @__PURE__ */ $(
|
|
2458
2543
|
se,
|
|
2459
2544
|
{
|
|
2460
2545
|
responsive: !1,
|
|
@@ -2462,46 +2547,46 @@ const tr = zt(void 0), ji = ({
|
|
|
2462
2547
|
justifyContent: "flexEnd",
|
|
2463
2548
|
alignItems: "center",
|
|
2464
2549
|
children: [
|
|
2465
|
-
/* @__PURE__ */ o(
|
|
2550
|
+
/* @__PURE__ */ o(xi, { playerStore: e }),
|
|
2466
2551
|
n && /* @__PURE__ */ o(
|
|
2467
|
-
|
|
2552
|
+
Ii,
|
|
2468
2553
|
{
|
|
2469
2554
|
onClickPlayQueueButton: n
|
|
2470
2555
|
}
|
|
2471
2556
|
),
|
|
2472
2557
|
/* @__PURE__ */ o(
|
|
2473
|
-
|
|
2558
|
+
Ri,
|
|
2474
2559
|
{
|
|
2475
|
-
playerStore:
|
|
2476
|
-
playQueueStore:
|
|
2560
|
+
playerStore: e,
|
|
2561
|
+
playQueueStore: t
|
|
2477
2562
|
}
|
|
2478
2563
|
)
|
|
2479
2564
|
]
|
|
2480
2565
|
}
|
|
2481
2566
|
)
|
|
2482
|
-
),
|
|
2483
|
-
({ playerStore:
|
|
2484
|
-
const n =
|
|
2567
|
+
), Oi = P(
|
|
2568
|
+
({ playerStore: e, playQueueStore: t }) => {
|
|
2569
|
+
const n = U(), i = N(
|
|
2485
2570
|
(d) => {
|
|
2486
2571
|
const h = Number(d.currentTarget.value) / 100;
|
|
2487
|
-
|
|
2572
|
+
e.setPercent(h);
|
|
2488
2573
|
},
|
|
2489
|
-
[
|
|
2574
|
+
[e]
|
|
2490
2575
|
), a = N(
|
|
2491
2576
|
(d) => {
|
|
2492
|
-
d.button === 0 &&
|
|
2577
|
+
d.button === 0 && e.setSeeking(!0);
|
|
2493
2578
|
},
|
|
2494
|
-
[
|
|
2579
|
+
[e]
|
|
2495
2580
|
), l = N(
|
|
2496
2581
|
async (d) => {
|
|
2497
2582
|
if (d.button === 0) {
|
|
2498
2583
|
const h = Number(d.currentTarget.value) / 100;
|
|
2499
|
-
|
|
2584
|
+
e.setSeeking(!1);
|
|
2500
2585
|
const m = await n.getDuration();
|
|
2501
2586
|
m !== void 0 && await n.setCurrentTime(m * h);
|
|
2502
2587
|
}
|
|
2503
2588
|
},
|
|
2504
|
-
[
|
|
2589
|
+
[e, n]
|
|
2505
2590
|
);
|
|
2506
2591
|
return /* @__PURE__ */ o(
|
|
2507
2592
|
Wt,
|
|
@@ -2509,107 +2594,107 @@ const tr = zt(void 0), ji = ({
|
|
|
2509
2594
|
min: 0,
|
|
2510
2595
|
max: 100,
|
|
2511
2596
|
step: 1e-7,
|
|
2512
|
-
value:
|
|
2597
|
+
value: e.percent * 100,
|
|
2513
2598
|
onChange: i,
|
|
2514
2599
|
onMouseDown: a,
|
|
2515
2600
|
onMouseUp: l,
|
|
2516
2601
|
fullWidth: !0,
|
|
2517
2602
|
showRange: !0,
|
|
2518
2603
|
css: { blockSize: 32 },
|
|
2519
|
-
disabled:
|
|
2604
|
+
disabled: t.isEmpty
|
|
2520
2605
|
}
|
|
2521
2606
|
);
|
|
2522
2607
|
}
|
|
2523
|
-
),
|
|
2608
|
+
), Ui = P(
|
|
2524
2609
|
({
|
|
2525
|
-
playerStore:
|
|
2526
|
-
playQueueStore:
|
|
2610
|
+
playerStore: e,
|
|
2611
|
+
playQueueStore: t,
|
|
2527
2612
|
onClickPlayQueueButton: n
|
|
2528
|
-
}) => /* @__PURE__ */ o(
|
|
2529
|
-
/* @__PURE__ */ o(
|
|
2530
|
-
|
|
2613
|
+
}) => /* @__PURE__ */ o(en, { paddingSize: "s", children: /* @__PURE__ */ $(se, { direction: "column", gutterSize: "none", children: [
|
|
2614
|
+
/* @__PURE__ */ o(J, { children: /* @__PURE__ */ o(
|
|
2615
|
+
Oi,
|
|
2531
2616
|
{
|
|
2532
|
-
playerStore:
|
|
2533
|
-
playQueueStore:
|
|
2617
|
+
playerStore: e,
|
|
2618
|
+
playQueueStore: t
|
|
2534
2619
|
}
|
|
2535
2620
|
) }),
|
|
2536
|
-
/* @__PURE__ */ o(
|
|
2537
|
-
/* @__PURE__ */ o(
|
|
2538
|
-
|
|
2621
|
+
/* @__PURE__ */ o(J, { children: /* @__PURE__ */ $(se, { responsive: !1, children: [
|
|
2622
|
+
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
2623
|
+
Ti,
|
|
2539
2624
|
{
|
|
2540
|
-
playQueueStore:
|
|
2625
|
+
playQueueStore: t
|
|
2541
2626
|
}
|
|
2542
2627
|
) }),
|
|
2543
|
-
/* @__PURE__ */ o(
|
|
2544
|
-
|
|
2628
|
+
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
2629
|
+
yi,
|
|
2545
2630
|
{
|
|
2546
|
-
playerStore:
|
|
2547
|
-
playQueueStore:
|
|
2631
|
+
playerStore: e,
|
|
2632
|
+
playQueueStore: t
|
|
2548
2633
|
}
|
|
2549
2634
|
) }),
|
|
2550
|
-
/* @__PURE__ */ o(
|
|
2551
|
-
|
|
2635
|
+
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
2636
|
+
wi,
|
|
2552
2637
|
{
|
|
2553
|
-
playerStore:
|
|
2554
|
-
playQueueStore:
|
|
2638
|
+
playerStore: e,
|
|
2639
|
+
playQueueStore: t,
|
|
2555
2640
|
onClickPlayQueueButton: n
|
|
2556
2641
|
}
|
|
2557
2642
|
) })
|
|
2558
2643
|
] }) })
|
|
2559
2644
|
] }) })
|
|
2560
|
-
),
|
|
2645
|
+
), qi = (e) => /* @__PURE__ */ o(jr, { ...e }), ot = {
|
|
2561
2646
|
width: 400,
|
|
2562
2647
|
height: 225
|
|
2563
|
-
},
|
|
2564
|
-
({ children:
|
|
2565
|
-
const
|
|
2566
|
-
return /* @__PURE__ */
|
|
2648
|
+
}, Hi = P(
|
|
2649
|
+
({ children: e }) => {
|
|
2650
|
+
const t = ir();
|
|
2651
|
+
return /* @__PURE__ */ $(
|
|
2567
2652
|
lt,
|
|
2568
2653
|
{
|
|
2569
2654
|
panelled: !0,
|
|
2570
2655
|
style: {
|
|
2571
|
-
minBlockSize: `max(460px, 100vh - ${
|
|
2656
|
+
minBlockSize: `max(460px, 100vh - ${Jt}px)`
|
|
2572
2657
|
},
|
|
2573
2658
|
children: [
|
|
2574
|
-
|
|
2575
|
-
!
|
|
2659
|
+
e,
|
|
2660
|
+
!t.isEmpty && /* @__PURE__ */ o(Yt, { style: { blockSize: ot.height } })
|
|
2576
2661
|
]
|
|
2577
2662
|
}
|
|
2578
2663
|
);
|
|
2579
2664
|
}
|
|
2580
|
-
),
|
|
2581
|
-
({ playerStore:
|
|
2582
|
-
const n =
|
|
2583
|
-
|
|
2584
|
-
}, [
|
|
2585
|
-
switch (
|
|
2586
|
-
case
|
|
2665
|
+
), Gi = P(
|
|
2666
|
+
({ playerStore: e, playQueueStore: t }) => {
|
|
2667
|
+
const n = U(), i = N(async () => {
|
|
2668
|
+
t.interacted && await n.play();
|
|
2669
|
+
}, [t, n]), a = N(async () => {
|
|
2670
|
+
switch (t.repeat) {
|
|
2671
|
+
case O.One:
|
|
2587
2672
|
await n.setCurrentTime(0);
|
|
2588
2673
|
break;
|
|
2589
|
-
case
|
|
2590
|
-
case
|
|
2591
|
-
if (
|
|
2592
|
-
switch (
|
|
2593
|
-
case
|
|
2594
|
-
|
|
2674
|
+
case O.Off:
|
|
2675
|
+
case O.All:
|
|
2676
|
+
if (t.isLastItem)
|
|
2677
|
+
switch (t.repeat) {
|
|
2678
|
+
case O.Off:
|
|
2679
|
+
e.onEnded();
|
|
2595
2680
|
break;
|
|
2596
|
-
case
|
|
2597
|
-
|
|
2681
|
+
case O.All:
|
|
2682
|
+
t.hasMultipleItems ? await t.goToFirst() : await n.setCurrentTime(0);
|
|
2598
2683
|
break;
|
|
2599
2684
|
}
|
|
2600
2685
|
else
|
|
2601
|
-
await
|
|
2686
|
+
await t.next();
|
|
2602
2687
|
break;
|
|
2603
2688
|
}
|
|
2604
|
-
}, [
|
|
2689
|
+
}, [t, e, n]), l = De(
|
|
2605
2690
|
() => ({
|
|
2606
2691
|
onLoaded: i,
|
|
2607
|
-
onPlay:
|
|
2608
|
-
onPause:
|
|
2692
|
+
onPlay: e.onPlay,
|
|
2693
|
+
onPause: e.onPause,
|
|
2609
2694
|
onEnded: a,
|
|
2610
|
-
onTimeUpdate:
|
|
2695
|
+
onTimeUpdate: e.onTimeUpdate
|
|
2611
2696
|
}),
|
|
2612
|
-
[
|
|
2697
|
+
[e, i, a]
|
|
2613
2698
|
);
|
|
2614
2699
|
return /* @__PURE__ */ o(
|
|
2615
2700
|
"div",
|
|
@@ -2617,7 +2702,7 @@ const tr = zt(void 0), ji = ({
|
|
|
2617
2702
|
css: {
|
|
2618
2703
|
position: "fixed",
|
|
2619
2704
|
right: 0,
|
|
2620
|
-
bottom:
|
|
2705
|
+
bottom: Jt,
|
|
2621
2706
|
width: ot.width,
|
|
2622
2707
|
height: ot.height,
|
|
2623
2708
|
zIndex: 998,
|
|
@@ -2625,29 +2710,29 @@ const tr = zt(void 0), ji = ({
|
|
|
2625
2710
|
display: "flex",
|
|
2626
2711
|
flexDirection: "column"
|
|
2627
2712
|
},
|
|
2628
|
-
children: /* @__PURE__ */ o("div", { css: { flexGrow: 1, backgroundColor: "black" }, children:
|
|
2629
|
-
|
|
2713
|
+
children: /* @__PURE__ */ o("div", { css: { flexGrow: 1, backgroundColor: "black" }, children: t.currentItem && /* @__PURE__ */ o(
|
|
2714
|
+
Nr,
|
|
2630
2715
|
{
|
|
2631
|
-
src:
|
|
2716
|
+
src: t.currentItem.url,
|
|
2632
2717
|
options: l,
|
|
2633
|
-
onControllerChange:
|
|
2718
|
+
onControllerChange: e.onControllerChange
|
|
2634
2719
|
}
|
|
2635
2720
|
) })
|
|
2636
2721
|
}
|
|
2637
2722
|
);
|
|
2638
2723
|
}
|
|
2639
2724
|
);
|
|
2640
|
-
class
|
|
2641
|
-
controller =
|
|
2725
|
+
class _i {
|
|
2726
|
+
controller = $r;
|
|
2642
2727
|
playing = !1;
|
|
2643
2728
|
percent = 0;
|
|
2644
2729
|
seeking = !1;
|
|
2645
|
-
constructor(
|
|
2646
|
-
|
|
2647
|
-
controller:
|
|
2648
|
-
playing:
|
|
2649
|
-
percent:
|
|
2650
|
-
seeking:
|
|
2730
|
+
constructor(t) {
|
|
2731
|
+
t.makeObservable(this, {
|
|
2732
|
+
controller: Z,
|
|
2733
|
+
playing: Z,
|
|
2734
|
+
percent: Z,
|
|
2735
|
+
seeking: Z,
|
|
2651
2736
|
setPlaying: y,
|
|
2652
2737
|
setPercent: y,
|
|
2653
2738
|
setSeeking: y,
|
|
@@ -2658,17 +2743,17 @@ class Ci {
|
|
|
2658
2743
|
onTimeUpdate: y.bound
|
|
2659
2744
|
});
|
|
2660
2745
|
}
|
|
2661
|
-
setPlaying(
|
|
2662
|
-
this.playing =
|
|
2746
|
+
setPlaying(t) {
|
|
2747
|
+
this.playing = t;
|
|
2663
2748
|
}
|
|
2664
|
-
setPercent(
|
|
2665
|
-
this.percent =
|
|
2749
|
+
setPercent(t) {
|
|
2750
|
+
this.percent = t;
|
|
2666
2751
|
}
|
|
2667
|
-
setSeeking(
|
|
2668
|
-
this.seeking =
|
|
2752
|
+
setSeeking(t) {
|
|
2753
|
+
this.seeking = t;
|
|
2669
2754
|
}
|
|
2670
|
-
onControllerChange(
|
|
2671
|
-
this.controller =
|
|
2755
|
+
onControllerChange(t) {
|
|
2756
|
+
this.controller = t;
|
|
2672
2757
|
}
|
|
2673
2758
|
onPlay() {
|
|
2674
2759
|
this.playing = !0;
|
|
@@ -2679,32 +2764,32 @@ class Ci {
|
|
|
2679
2764
|
onEnded() {
|
|
2680
2765
|
this.playing = !1;
|
|
2681
2766
|
}
|
|
2682
|
-
onTimeUpdate({ percent:
|
|
2683
|
-
|
|
2767
|
+
onTimeUpdate({ percent: t }) {
|
|
2768
|
+
t !== void 0 && (this.seeking || (this.percent = t));
|
|
2684
2769
|
}
|
|
2685
2770
|
}
|
|
2686
|
-
const
|
|
2687
|
-
children:
|
|
2771
|
+
const or = zt(void 0), Ji = ({
|
|
2772
|
+
children: e
|
|
2688
2773
|
}) => {
|
|
2689
|
-
const [
|
|
2690
|
-
() => new
|
|
2774
|
+
const [t] = W(
|
|
2775
|
+
() => new _i(new Kt())
|
|
2691
2776
|
);
|
|
2692
|
-
return /* @__PURE__ */ o(
|
|
2693
|
-
},
|
|
2777
|
+
return /* @__PURE__ */ o(or.Provider, { value: t, children: e });
|
|
2778
|
+
}, Ki = () => at(or);
|
|
2694
2779
|
export {
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2780
|
+
Ui as BottomBar,
|
|
2781
|
+
qi as HydrangeanDivaProvider,
|
|
2782
|
+
Hi as MediaPlayerLayout,
|
|
2783
|
+
Gi as MiniPlayer,
|
|
2784
|
+
Kt as MobXObservableStateProvider,
|
|
2785
|
+
Vi as ObservableStateProvider,
|
|
2701
2786
|
ri as PlayQueue,
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2787
|
+
Wi as PlayQueuePage,
|
|
2788
|
+
Yi as PlayQueueStoreProvider,
|
|
2789
|
+
Ji as PlayerStoreProvider,
|
|
2790
|
+
O as RepeatMode,
|
|
2791
|
+
Jt as bottomBarHeight,
|
|
2792
|
+
ir as usePlayQueueStore,
|
|
2793
|
+
Ki as usePlayerStore
|
|
2709
2794
|
};
|
|
2710
2795
|
//# sourceMappingURL=index.es.js.map
|