@aigamo/hydrangean-diva 0.0.1-alpha.14 → 0.0.1-alpha.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/features/common/helpers/bottomBarHeight.d.ts +1 -0
- package/dist/features/common/helpers/miniPlayerSize.d.ts +4 -0
- package/dist/features/media-player.play-queue/components/{HydrangeanDiva.d.ts → PlayQueue.d.ts} +2 -2
- package/dist/features/media-player.play-queue/components/index.d.ts +1 -1
- package/dist/features/media-player.player/components/BottomBar.d.ts +0 -1
- package/dist/features/media-player.player/components/BottomBarRightControls.d.ts +3 -1
- package/dist/features/media-player.player/components/MiniPlayer.d.ts +0 -4
- package/dist/features/media-player.player/interfaces/IPlayerStore.d.ts +3 -1
- package/dist/features/media-player.player/stores/PlayerStore.d.ts +3 -1
- package/dist/features/media-player.playlists/components/CreatePlaylistButton.d.ts +3 -2
- package/dist/index.cjs.js +12 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +819 -818
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
- /package/dist/features/common/{constants → helpers}/videoServiceIcons.d.ts +0 -0
- /package/dist/features/{media-player → media-player.header}/components/Header.d.ts +0 -0
- /package/dist/features/{common/helpers/clients.d.ts → media-player.playlists/helpers/mediaPlayerPlaylistsApi.d.ts} +0 -0
package/dist/index.es.js
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { makeObservable as
|
|
1
|
+
var Sr = Object.defineProperty;
|
|
2
|
+
var Pr = (t, e, n) => e in t ? Sr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var B = (t, e, n) => Pr(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { makeObservable as wr, action as y, computed as A, observable as Z, reaction as Or } from "mobx";
|
|
5
5
|
import * as te from "react";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useNostalgicDiva as
|
|
9
|
-
import {
|
|
10
|
-
import { AddRegular as
|
|
11
|
-
import { observer as
|
|
12
|
-
import { useRouter as bn } from "@tanstack/react-router";
|
|
6
|
+
import Dt, { forwardRef as _r, useContext as ot, memo as me, useState as q, useCallback as D, useMemo as at, createContext as zt, useEffect as Ar, useLayoutEffect as kr } from "react";
|
|
7
|
+
import Mr from "@emotion/cache";
|
|
8
|
+
import { useNostalgicDiva as ne, findVideoService as Fr, NostalgicDiva as jr, nullPlayerController as Nr } from "@aigamo/nostalgic-diva";
|
|
9
|
+
import { EuiButton as re, useGeneratedHtmlId as $r, EuiModalHeaderTitle as Dr, EuiModalHeader as zr, EuiForm as Lr, EuiFormRow as et, EuiFieldText as Rt, EuiModalBody as Vr, EuiModalFooter as Yr, EuiButtonEmpty as Lt, EuiModal as Br, useEuiTheme as Vt, EuiCheckbox as Yt, EuiTableHeaderCellCheckbox as Wr, EuiTableHeader as Ur, EuiTableRowCell as tt, EuiTableRowCellCheckbox as qr, EuiLink as Gr, EuiTableRow as Hr, EuiTable as Jr, EuiButtonIcon as H, EuiPopover as st, EuiIcon as G, EuiContextMenu as Bt, EuiTableHeaderCell as Ke, EuiCodeBlock as Kr, EuiFlyout as Xr, EuiFlexGroup as se, EuiFlexItem as J, EuiSpacer as Wt, EuiEmptyPrompt as Zr, EuiRange as Ut, EuiBottomBar as Qr, EuiPageTemplate as en } from "@elastic/eui";
|
|
10
|
+
import { AddRegular as lt, PlayRegular as tn, DismissRegular as ct, MoreHorizontalFilled as qt, ArrowUploadRegular as rn, ArrowDownloadRegular as nn, WindowDevToolsRegular as on, DeleteRegular as an, ArrowRepeat1Filled as sn, ArrowRepeatAllFilled as ln, ArrowRepeatAllOffFilled as cn, ArrowShuffleFilled as un, ArrowShuffleOffFilled as dn, PreviousFilled as fn, PauseFilled as mn, PlayFilled as hn, NextFilled as vn, Speaker2Regular as Gt, TopSpeedRegular as pn, SkipBack10Regular as yn, SkipForward30Regular as gn, NavigationPlayRegular as bn } from "@fluentui/react-icons";
|
|
11
|
+
import { observer as N } from "mobx-react-lite";
|
|
13
12
|
import { ReactSortable as En } from "react-sortablejs";
|
|
14
|
-
import { pull as
|
|
13
|
+
import { pull as St } from "lodash-es";
|
|
15
14
|
import Tn from "ajv";
|
|
16
|
-
class
|
|
15
|
+
class Ht {
|
|
17
16
|
makeObservable(e, n) {
|
|
18
|
-
return
|
|
17
|
+
return wr(e, n);
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
|
-
class
|
|
20
|
+
class Ai {
|
|
22
21
|
makeObservable(e, n) {
|
|
23
22
|
return e;
|
|
24
23
|
}
|
|
@@ -33,21 +32,21 @@ var $e = { exports: {} }, xe = {};
|
|
|
33
32
|
* This source code is licensed under the MIT license found in the
|
|
34
33
|
* LICENSE file in the root directory of this source tree.
|
|
35
34
|
*/
|
|
36
|
-
var
|
|
35
|
+
var Pt;
|
|
37
36
|
function xn() {
|
|
38
|
-
if (
|
|
39
|
-
|
|
40
|
-
var t =
|
|
41
|
-
function
|
|
42
|
-
var E,
|
|
43
|
-
|
|
44
|
-
for (E in
|
|
45
|
-
if (h && h.defaultProps) for (E in
|
|
46
|
-
return { $$typeof: e, type: h, key:
|
|
47
|
-
}
|
|
48
|
-
return xe.Fragment = n, xe.jsx =
|
|
37
|
+
if (Pt) return xe;
|
|
38
|
+
Pt = 1;
|
|
39
|
+
var t = Dt, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
40
|
+
function d(h, m, p) {
|
|
41
|
+
var E, S = {}, I = null, $ = null;
|
|
42
|
+
p !== void 0 && (I = "" + p), m.key !== void 0 && (I = "" + m.key), m.ref !== void 0 && ($ = m.ref);
|
|
43
|
+
for (E in m) i.call(m, E) && !l.hasOwnProperty(E) && (S[E] = m[E]);
|
|
44
|
+
if (h && h.defaultProps) for (E in m = h.defaultProps, m) S[E] === void 0 && (S[E] = m[E]);
|
|
45
|
+
return { $$typeof: e, type: h, key: I, ref: $, props: S, _owner: a.current };
|
|
46
|
+
}
|
|
47
|
+
return xe.Fragment = n, xe.jsx = d, xe.jsxs = d, xe;
|
|
49
48
|
}
|
|
50
|
-
var
|
|
49
|
+
var Ce = {};
|
|
51
50
|
/**
|
|
52
51
|
* @license React
|
|
53
52
|
* react-jsx-runtime.development.js
|
|
@@ -57,47 +56,47 @@ var Se = {};
|
|
|
57
56
|
* This source code is licensed under the MIT license found in the
|
|
58
57
|
* LICENSE file in the root directory of this source tree.
|
|
59
58
|
*/
|
|
60
|
-
var
|
|
61
|
-
function
|
|
62
|
-
return
|
|
63
|
-
var t =
|
|
64
|
-
function
|
|
59
|
+
var wt;
|
|
60
|
+
function Cn() {
|
|
61
|
+
return wt || (wt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
62
|
+
var t = Dt, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), h = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), k = Symbol.iterator, W = "@@iterator";
|
|
63
|
+
function Q(r) {
|
|
65
64
|
if (r === null || typeof r != "object")
|
|
66
65
|
return null;
|
|
67
|
-
var s =
|
|
66
|
+
var s = k && r[k] || r[W];
|
|
68
67
|
return typeof s == "function" ? s : null;
|
|
69
68
|
}
|
|
70
69
|
var L = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
71
|
-
function
|
|
70
|
+
function P(r) {
|
|
72
71
|
{
|
|
73
|
-
for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0),
|
|
74
|
-
u[
|
|
75
|
-
|
|
72
|
+
for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0), v = 1; v < s; v++)
|
|
73
|
+
u[v - 1] = arguments[v];
|
|
74
|
+
M("error", r, u);
|
|
76
75
|
}
|
|
77
76
|
}
|
|
78
|
-
function
|
|
77
|
+
function M(r, s, u) {
|
|
79
78
|
{
|
|
80
|
-
var
|
|
79
|
+
var v = L.ReactDebugCurrentFrame, T = v.getStackAddendum();
|
|
81
80
|
T !== "" && (s += "%s", u = u.concat([T]));
|
|
82
|
-
var
|
|
81
|
+
var R = u.map(function(b) {
|
|
83
82
|
return String(b);
|
|
84
83
|
});
|
|
85
|
-
|
|
84
|
+
R.unshift("Warning: " + s), Function.prototype.apply.call(console[r], console, R);
|
|
86
85
|
}
|
|
87
86
|
}
|
|
88
|
-
var
|
|
87
|
+
var O = !1, c = !1, V = !1, he = !1, Pe = !1, we;
|
|
89
88
|
we = Symbol.for("react.module.reference");
|
|
90
|
-
function
|
|
91
|
-
return !!(typeof r == "string" || typeof r == "function" || r === i || r === l || Pe || r === a || r ===
|
|
89
|
+
function Le(r) {
|
|
90
|
+
return !!(typeof r == "string" || typeof r == "function" || r === i || r === l || Pe || r === a || r === p || r === E || he || r === $ || O || c || V || typeof r == "object" && r !== null && (r.$$typeof === I || r.$$typeof === S || r.$$typeof === d || r.$$typeof === h || r.$$typeof === m || // This needs to include all possible module reference object
|
|
92
91
|
// types supported by any Flight configuration anywhere since
|
|
93
92
|
// we don't know which Flight build this will end up being used
|
|
94
93
|
// with.
|
|
95
94
|
r.$$typeof === we || r.getModuleId !== void 0));
|
|
96
95
|
}
|
|
97
|
-
function
|
|
98
|
-
var
|
|
99
|
-
if (
|
|
100
|
-
return
|
|
96
|
+
function Ve(r, s, u) {
|
|
97
|
+
var v = r.displayName;
|
|
98
|
+
if (v)
|
|
99
|
+
return v;
|
|
101
100
|
var T = s.displayName || s.name || "";
|
|
102
101
|
return T !== "" ? u + "(" + T + ")" : u;
|
|
103
102
|
}
|
|
@@ -107,7 +106,7 @@ function Sn() {
|
|
|
107
106
|
function K(r) {
|
|
108
107
|
if (r == null)
|
|
109
108
|
return null;
|
|
110
|
-
if (typeof r.tag == "number" &&
|
|
109
|
+
if (typeof r.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
|
111
110
|
return r.displayName || r.name || null;
|
|
112
111
|
if (typeof r == "string")
|
|
113
112
|
return r;
|
|
@@ -120,7 +119,7 @@ function Sn() {
|
|
|
120
119
|
return "Profiler";
|
|
121
120
|
case a:
|
|
122
121
|
return "StrictMode";
|
|
123
|
-
case
|
|
122
|
+
case p:
|
|
124
123
|
return "Suspense";
|
|
125
124
|
case E:
|
|
126
125
|
return "SuspenseList";
|
|
@@ -130,18 +129,18 @@ function Sn() {
|
|
|
130
129
|
case h:
|
|
131
130
|
var s = r;
|
|
132
131
|
return Oe(s) + ".Consumer";
|
|
133
|
-
case
|
|
132
|
+
case d:
|
|
134
133
|
var u = r;
|
|
135
134
|
return Oe(u._context) + ".Provider";
|
|
136
|
-
case
|
|
137
|
-
return
|
|
138
|
-
case
|
|
139
|
-
var
|
|
140
|
-
return
|
|
141
|
-
case
|
|
142
|
-
var T = r,
|
|
135
|
+
case m:
|
|
136
|
+
return Ve(r, r.render, "ForwardRef");
|
|
137
|
+
case S:
|
|
138
|
+
var v = r.displayName || null;
|
|
139
|
+
return v !== null ? v : K(r.type) || "Memo";
|
|
140
|
+
case I: {
|
|
141
|
+
var T = r, R = T._payload, b = T._init;
|
|
143
142
|
try {
|
|
144
|
-
return K(b(
|
|
143
|
+
return K(b(R));
|
|
145
144
|
} catch {
|
|
146
145
|
return null;
|
|
147
146
|
}
|
|
@@ -149,13 +148,13 @@ function Sn() {
|
|
|
149
148
|
}
|
|
150
149
|
return null;
|
|
151
150
|
}
|
|
152
|
-
var
|
|
151
|
+
var ee = Object.assign, ie = 0, _e, Ae, ve, ke, pe, Me, Fe;
|
|
153
152
|
function je() {
|
|
154
153
|
}
|
|
155
154
|
je.__reactDisabledLog = !0;
|
|
156
|
-
function
|
|
155
|
+
function Ye() {
|
|
157
156
|
{
|
|
158
|
-
if (
|
|
157
|
+
if (ie === 0) {
|
|
159
158
|
_e = console.log, Ae = console.info, ve = console.warn, ke = console.error, pe = console.group, Me = console.groupCollapsed, Fe = console.groupEnd;
|
|
160
159
|
var r = {
|
|
161
160
|
configurable: !0,
|
|
@@ -173,77 +172,77 @@ function Sn() {
|
|
|
173
172
|
groupEnd: r
|
|
174
173
|
});
|
|
175
174
|
}
|
|
176
|
-
|
|
175
|
+
ie++;
|
|
177
176
|
}
|
|
178
177
|
}
|
|
179
|
-
function
|
|
178
|
+
function Be() {
|
|
180
179
|
{
|
|
181
|
-
if (
|
|
180
|
+
if (ie--, ie === 0) {
|
|
182
181
|
var r = {
|
|
183
182
|
configurable: !0,
|
|
184
183
|
enumerable: !0,
|
|
185
184
|
writable: !0
|
|
186
185
|
};
|
|
187
186
|
Object.defineProperties(console, {
|
|
188
|
-
log:
|
|
187
|
+
log: ee({}, r, {
|
|
189
188
|
value: _e
|
|
190
189
|
}),
|
|
191
|
-
info:
|
|
190
|
+
info: ee({}, r, {
|
|
192
191
|
value: Ae
|
|
193
192
|
}),
|
|
194
|
-
warn:
|
|
193
|
+
warn: ee({}, r, {
|
|
195
194
|
value: ve
|
|
196
195
|
}),
|
|
197
|
-
error:
|
|
196
|
+
error: ee({}, r, {
|
|
198
197
|
value: ke
|
|
199
198
|
}),
|
|
200
|
-
group:
|
|
199
|
+
group: ee({}, r, {
|
|
201
200
|
value: pe
|
|
202
201
|
}),
|
|
203
|
-
groupCollapsed:
|
|
202
|
+
groupCollapsed: ee({}, r, {
|
|
204
203
|
value: Me
|
|
205
204
|
}),
|
|
206
|
-
groupEnd:
|
|
205
|
+
groupEnd: ee({}, r, {
|
|
207
206
|
value: Fe
|
|
208
207
|
})
|
|
209
208
|
});
|
|
210
209
|
}
|
|
211
|
-
|
|
210
|
+
ie < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
212
211
|
}
|
|
213
212
|
}
|
|
214
213
|
var ye = L.ReactCurrentDispatcher, ge;
|
|
215
|
-
function
|
|
214
|
+
function le(r, s, u) {
|
|
216
215
|
{
|
|
217
216
|
if (ge === void 0)
|
|
218
217
|
try {
|
|
219
218
|
throw Error();
|
|
220
219
|
} catch (T) {
|
|
221
|
-
var
|
|
222
|
-
ge =
|
|
220
|
+
var v = T.stack.trim().match(/\n( *(at )?)/);
|
|
221
|
+
ge = v && v[1] || "";
|
|
223
222
|
}
|
|
224
223
|
return `
|
|
225
224
|
` + ge + r;
|
|
226
225
|
}
|
|
227
226
|
}
|
|
228
|
-
var be = !1,
|
|
227
|
+
var be = !1, ce;
|
|
229
228
|
{
|
|
230
|
-
var
|
|
231
|
-
|
|
229
|
+
var We = typeof WeakMap == "function" ? WeakMap : Map;
|
|
230
|
+
ce = new We();
|
|
232
231
|
}
|
|
233
|
-
function
|
|
232
|
+
function f(r, s) {
|
|
234
233
|
if (!r || be)
|
|
235
234
|
return "";
|
|
236
235
|
{
|
|
237
|
-
var u =
|
|
236
|
+
var u = ce.get(r);
|
|
238
237
|
if (u !== void 0)
|
|
239
238
|
return u;
|
|
240
239
|
}
|
|
241
|
-
var
|
|
240
|
+
var v;
|
|
242
241
|
be = !0;
|
|
243
242
|
var T = Error.prepareStackTrace;
|
|
244
243
|
Error.prepareStackTrace = void 0;
|
|
245
|
-
var
|
|
246
|
-
|
|
244
|
+
var R;
|
|
245
|
+
R = ye.current, ye.current = null, Ye();
|
|
247
246
|
try {
|
|
248
247
|
if (s) {
|
|
249
248
|
var b = function() {
|
|
@@ -257,14 +256,14 @@ function Sn() {
|
|
|
257
256
|
try {
|
|
258
257
|
Reflect.construct(b, []);
|
|
259
258
|
} catch (Y) {
|
|
260
|
-
|
|
259
|
+
v = Y;
|
|
261
260
|
}
|
|
262
261
|
Reflect.construct(r, [], b);
|
|
263
262
|
} else {
|
|
264
263
|
try {
|
|
265
264
|
b.call();
|
|
266
265
|
} catch (Y) {
|
|
267
|
-
|
|
266
|
+
v = Y;
|
|
268
267
|
}
|
|
269
268
|
r.call(b.prototype);
|
|
270
269
|
}
|
|
@@ -272,129 +271,129 @@ function Sn() {
|
|
|
272
271
|
try {
|
|
273
272
|
throw Error();
|
|
274
273
|
} catch (Y) {
|
|
275
|
-
|
|
274
|
+
v = Y;
|
|
276
275
|
}
|
|
277
276
|
r();
|
|
278
277
|
}
|
|
279
278
|
} catch (Y) {
|
|
280
|
-
if (Y &&
|
|
279
|
+
if (Y && v && typeof Y.stack == "string") {
|
|
281
280
|
for (var g = Y.stack.split(`
|
|
282
|
-
`),
|
|
283
|
-
`),
|
|
284
|
-
|
|
285
|
-
for (;
|
|
286
|
-
if (g[
|
|
287
|
-
if (
|
|
281
|
+
`), z = v.stack.split(`
|
|
282
|
+
`), _ = g.length - 1, F = z.length - 1; _ >= 1 && F >= 0 && g[_] !== z[F]; )
|
|
283
|
+
F--;
|
|
284
|
+
for (; _ >= 1 && F >= 0; _--, F--)
|
|
285
|
+
if (g[_] !== z[F]) {
|
|
286
|
+
if (_ !== 1 || F !== 1)
|
|
288
287
|
do
|
|
289
|
-
if (
|
|
290
|
-
var
|
|
291
|
-
` + g[
|
|
292
|
-
return r.displayName &&
|
|
288
|
+
if (_--, F--, F < 0 || g[_] !== z[F]) {
|
|
289
|
+
var U = `
|
|
290
|
+
` + g[_].replace(" at new ", " at ");
|
|
291
|
+
return r.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", r.displayName)), typeof r == "function" && ce.set(r, U), U;
|
|
293
292
|
}
|
|
294
|
-
while (
|
|
293
|
+
while (_ >= 1 && F >= 0);
|
|
295
294
|
break;
|
|
296
295
|
}
|
|
297
296
|
}
|
|
298
297
|
} finally {
|
|
299
|
-
be = !1, ye.current =
|
|
298
|
+
be = !1, ye.current = R, Be(), Error.prepareStackTrace = T;
|
|
300
299
|
}
|
|
301
|
-
var
|
|
302
|
-
return typeof r == "function" &&
|
|
300
|
+
var fe = r ? r.displayName || r.name : "", ae = fe ? le(fe) : "";
|
|
301
|
+
return typeof r == "function" && ce.set(r, ae), ae;
|
|
303
302
|
}
|
|
304
303
|
function Ee(r, s, u) {
|
|
305
|
-
return
|
|
304
|
+
return f(r, !1);
|
|
306
305
|
}
|
|
307
|
-
function
|
|
306
|
+
function ue(r) {
|
|
308
307
|
var s = r.prototype;
|
|
309
308
|
return !!(s && s.isReactComponent);
|
|
310
309
|
}
|
|
311
|
-
function
|
|
310
|
+
function oe(r, s, u) {
|
|
312
311
|
if (r == null)
|
|
313
312
|
return "";
|
|
314
313
|
if (typeof r == "function")
|
|
315
|
-
return
|
|
314
|
+
return f(r, ue(r));
|
|
316
315
|
if (typeof r == "string")
|
|
317
|
-
return
|
|
316
|
+
return le(r);
|
|
318
317
|
switch (r) {
|
|
319
|
-
case
|
|
320
|
-
return
|
|
318
|
+
case p:
|
|
319
|
+
return le("Suspense");
|
|
321
320
|
case E:
|
|
322
|
-
return
|
|
321
|
+
return le("SuspenseList");
|
|
323
322
|
}
|
|
324
323
|
if (typeof r == "object")
|
|
325
324
|
switch (r.$$typeof) {
|
|
326
|
-
case
|
|
325
|
+
case m:
|
|
327
326
|
return Ee(r.render);
|
|
328
|
-
case
|
|
329
|
-
return
|
|
330
|
-
case
|
|
331
|
-
var
|
|
327
|
+
case S:
|
|
328
|
+
return oe(r.type, s, u);
|
|
329
|
+
case I: {
|
|
330
|
+
var v = r, T = v._payload, R = v._init;
|
|
332
331
|
try {
|
|
333
|
-
return
|
|
332
|
+
return oe(R(T), s, u);
|
|
334
333
|
} catch {
|
|
335
334
|
}
|
|
336
335
|
}
|
|
337
336
|
}
|
|
338
337
|
return "";
|
|
339
338
|
}
|
|
340
|
-
var Te = Object.prototype.hasOwnProperty, dt = {},
|
|
339
|
+
var Te = Object.prototype.hasOwnProperty, dt = {}, ft = L.ReactDebugCurrentFrame;
|
|
341
340
|
function Ne(r) {
|
|
342
341
|
if (r) {
|
|
343
|
-
var s = r._owner, u =
|
|
344
|
-
|
|
342
|
+
var s = r._owner, u = oe(r.type, r._source, s ? s.type : null);
|
|
343
|
+
ft.setExtraStackFrame(u);
|
|
345
344
|
} else
|
|
346
|
-
|
|
345
|
+
ft.setExtraStackFrame(null);
|
|
347
346
|
}
|
|
348
|
-
function
|
|
347
|
+
function ir(r, s, u, v, T) {
|
|
349
348
|
{
|
|
350
|
-
var
|
|
349
|
+
var R = Function.call.bind(Te);
|
|
351
350
|
for (var b in r)
|
|
352
|
-
if (
|
|
351
|
+
if (R(r, b)) {
|
|
353
352
|
var g = void 0;
|
|
354
353
|
try {
|
|
355
354
|
if (typeof r[b] != "function") {
|
|
356
|
-
var
|
|
357
|
-
throw
|
|
355
|
+
var z = Error((v || "React class") + ": " + u + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
356
|
+
throw z.name = "Invariant Violation", z;
|
|
358
357
|
}
|
|
359
|
-
g = r[b](s, b,
|
|
360
|
-
} catch (
|
|
361
|
-
g =
|
|
358
|
+
g = r[b](s, b, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
359
|
+
} catch (_) {
|
|
360
|
+
g = _;
|
|
362
361
|
}
|
|
363
|
-
g && !(g instanceof Error) && (Ne(T),
|
|
362
|
+
g && !(g instanceof Error) && (Ne(T), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", u, b, typeof g), Ne(null)), g instanceof Error && !(g.message in dt) && (dt[g.message] = !0, Ne(T), P("Failed %s type: %s", u, g.message), Ne(null));
|
|
364
363
|
}
|
|
365
364
|
}
|
|
366
365
|
}
|
|
367
|
-
var
|
|
368
|
-
function
|
|
369
|
-
return
|
|
366
|
+
var or = Array.isArray;
|
|
367
|
+
function Ue(r) {
|
|
368
|
+
return or(r);
|
|
370
369
|
}
|
|
371
|
-
function
|
|
370
|
+
function ar(r) {
|
|
372
371
|
{
|
|
373
372
|
var s = typeof Symbol == "function" && Symbol.toStringTag, u = s && r[Symbol.toStringTag] || r.constructor.name || "Object";
|
|
374
373
|
return u;
|
|
375
374
|
}
|
|
376
375
|
}
|
|
377
|
-
function
|
|
376
|
+
function sr(r) {
|
|
378
377
|
try {
|
|
379
|
-
return
|
|
378
|
+
return mt(r), !1;
|
|
380
379
|
} catch {
|
|
381
380
|
return !0;
|
|
382
381
|
}
|
|
383
382
|
}
|
|
384
|
-
function
|
|
383
|
+
function mt(r) {
|
|
385
384
|
return "" + r;
|
|
386
385
|
}
|
|
387
|
-
function
|
|
388
|
-
if (
|
|
389
|
-
return
|
|
386
|
+
function ht(r) {
|
|
387
|
+
if (sr(r))
|
|
388
|
+
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ar(r)), mt(r);
|
|
390
389
|
}
|
|
391
|
-
var
|
|
390
|
+
var vt = L.ReactCurrentOwner, lr = {
|
|
392
391
|
key: !0,
|
|
393
392
|
ref: !0,
|
|
394
393
|
__self: !0,
|
|
395
394
|
__source: !0
|
|
396
|
-
},
|
|
397
|
-
function
|
|
395
|
+
}, pt, yt;
|
|
396
|
+
function cr(r) {
|
|
398
397
|
if (Te.call(r, "ref")) {
|
|
399
398
|
var s = Object.getOwnPropertyDescriptor(r, "ref").get;
|
|
400
399
|
if (s && s.isReactWarning)
|
|
@@ -402,7 +401,7 @@ function Sn() {
|
|
|
402
401
|
}
|
|
403
402
|
return r.ref !== void 0;
|
|
404
403
|
}
|
|
405
|
-
function
|
|
404
|
+
function ur(r) {
|
|
406
405
|
if (Te.call(r, "key")) {
|
|
407
406
|
var s = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
408
407
|
if (s && s.isReactWarning)
|
|
@@ -411,12 +410,12 @@ function Sn() {
|
|
|
411
410
|
return r.key !== void 0;
|
|
412
411
|
}
|
|
413
412
|
function dr(r, s) {
|
|
414
|
-
typeof r.ref == "string" &&
|
|
413
|
+
typeof r.ref == "string" && vt.current;
|
|
415
414
|
}
|
|
416
|
-
function
|
|
415
|
+
function fr(r, s) {
|
|
417
416
|
{
|
|
418
417
|
var u = function() {
|
|
419
|
-
|
|
418
|
+
pt || (pt = !0, P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
|
|
420
419
|
};
|
|
421
420
|
u.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
422
421
|
get: u,
|
|
@@ -424,10 +423,10 @@ function Sn() {
|
|
|
424
423
|
});
|
|
425
424
|
}
|
|
426
425
|
}
|
|
427
|
-
function
|
|
426
|
+
function mr(r, s) {
|
|
428
427
|
{
|
|
429
428
|
var u = function() {
|
|
430
|
-
|
|
429
|
+
yt || (yt = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
|
|
431
430
|
};
|
|
432
431
|
u.isReactWarning = !0, Object.defineProperty(r, "ref", {
|
|
433
432
|
get: u,
|
|
@@ -435,7 +434,7 @@ function Sn() {
|
|
|
435
434
|
});
|
|
436
435
|
}
|
|
437
436
|
}
|
|
438
|
-
var
|
|
437
|
+
var hr = function(r, s, u, v, T, R, b) {
|
|
439
438
|
var g = {
|
|
440
439
|
// This tag allows us to uniquely identify this as a React Element
|
|
441
440
|
$$typeof: e,
|
|
@@ -445,7 +444,7 @@ function Sn() {
|
|
|
445
444
|
ref: u,
|
|
446
445
|
props: b,
|
|
447
446
|
// Record the component responsible for creating this element.
|
|
448
|
-
_owner:
|
|
447
|
+
_owner: R
|
|
449
448
|
};
|
|
450
449
|
return g._store = {}, Object.defineProperty(g._store, "validated", {
|
|
451
450
|
configurable: !1,
|
|
@@ -456,7 +455,7 @@ function Sn() {
|
|
|
456
455
|
configurable: !1,
|
|
457
456
|
enumerable: !1,
|
|
458
457
|
writable: !1,
|
|
459
|
-
value:
|
|
458
|
+
value: v
|
|
460
459
|
}), Object.defineProperty(g, "_source", {
|
|
461
460
|
configurable: !1,
|
|
462
461
|
enumerable: !1,
|
|
@@ -464,41 +463,41 @@ function Sn() {
|
|
|
464
463
|
value: T
|
|
465
464
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
466
465
|
};
|
|
467
|
-
function
|
|
466
|
+
function vr(r, s, u, v, T) {
|
|
468
467
|
{
|
|
469
|
-
var
|
|
470
|
-
u !== void 0 && (
|
|
471
|
-
for (
|
|
472
|
-
Te.call(s,
|
|
468
|
+
var R, b = {}, g = null, z = null;
|
|
469
|
+
u !== void 0 && (ht(u), g = "" + u), ur(s) && (ht(s.key), g = "" + s.key), cr(s) && (z = s.ref, dr(s, T));
|
|
470
|
+
for (R in s)
|
|
471
|
+
Te.call(s, R) && !lr.hasOwnProperty(R) && (b[R] = s[R]);
|
|
473
472
|
if (r && r.defaultProps) {
|
|
474
|
-
var
|
|
475
|
-
for (
|
|
476
|
-
b[
|
|
473
|
+
var _ = r.defaultProps;
|
|
474
|
+
for (R in _)
|
|
475
|
+
b[R] === void 0 && (b[R] = _[R]);
|
|
477
476
|
}
|
|
478
|
-
if (g ||
|
|
479
|
-
var
|
|
480
|
-
g &&
|
|
477
|
+
if (g || z) {
|
|
478
|
+
var F = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
479
|
+
g && fr(b, F), z && mr(b, F);
|
|
481
480
|
}
|
|
482
|
-
return
|
|
481
|
+
return hr(r, g, z, T, v, vt.current, b);
|
|
483
482
|
}
|
|
484
483
|
}
|
|
485
|
-
var
|
|
484
|
+
var qe = L.ReactCurrentOwner, gt = L.ReactDebugCurrentFrame;
|
|
486
485
|
function de(r) {
|
|
487
486
|
if (r) {
|
|
488
|
-
var s = r._owner, u =
|
|
489
|
-
|
|
487
|
+
var s = r._owner, u = oe(r.type, r._source, s ? s.type : null);
|
|
488
|
+
gt.setExtraStackFrame(u);
|
|
490
489
|
} else
|
|
491
|
-
|
|
490
|
+
gt.setExtraStackFrame(null);
|
|
492
491
|
}
|
|
493
492
|
var Ge;
|
|
494
493
|
Ge = !1;
|
|
495
|
-
function
|
|
494
|
+
function He(r) {
|
|
496
495
|
return typeof r == "object" && r !== null && r.$$typeof === e;
|
|
497
496
|
}
|
|
498
|
-
function
|
|
497
|
+
function bt() {
|
|
499
498
|
{
|
|
500
|
-
if (
|
|
501
|
-
var r = K(
|
|
499
|
+
if (qe.current) {
|
|
500
|
+
var r = K(qe.current.type);
|
|
502
501
|
if (r)
|
|
503
502
|
return `
|
|
504
503
|
|
|
@@ -507,13 +506,13 @@ Check the render method of \`` + r + "`.";
|
|
|
507
506
|
return "";
|
|
508
507
|
}
|
|
509
508
|
}
|
|
510
|
-
function
|
|
509
|
+
function pr(r) {
|
|
511
510
|
return "";
|
|
512
511
|
}
|
|
513
|
-
var
|
|
514
|
-
function
|
|
512
|
+
var Et = {};
|
|
513
|
+
function yr(r) {
|
|
515
514
|
{
|
|
516
|
-
var s =
|
|
515
|
+
var s = bt();
|
|
517
516
|
if (!s) {
|
|
518
517
|
var u = typeof r == "string" ? r : r.displayName || r.name;
|
|
519
518
|
u && (s = `
|
|
@@ -523,39 +522,39 @@ Check the top-level render call using <` + u + ">.");
|
|
|
523
522
|
return s;
|
|
524
523
|
}
|
|
525
524
|
}
|
|
526
|
-
function
|
|
525
|
+
function Tt(r, s) {
|
|
527
526
|
{
|
|
528
527
|
if (!r._store || r._store.validated || r.key != null)
|
|
529
528
|
return;
|
|
530
529
|
r._store.validated = !0;
|
|
531
|
-
var u =
|
|
532
|
-
if (
|
|
530
|
+
var u = yr(s);
|
|
531
|
+
if (Et[u])
|
|
533
532
|
return;
|
|
534
|
-
|
|
535
|
-
var
|
|
536
|
-
r && r._owner && r._owner !==
|
|
533
|
+
Et[u] = !0;
|
|
534
|
+
var v = "";
|
|
535
|
+
r && r._owner && r._owner !== qe.current && (v = " It was passed a child from " + K(r._owner.type) + "."), de(r), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), de(null);
|
|
537
536
|
}
|
|
538
537
|
}
|
|
539
|
-
function
|
|
538
|
+
function xt(r, s) {
|
|
540
539
|
{
|
|
541
540
|
if (typeof r != "object")
|
|
542
541
|
return;
|
|
543
|
-
if (
|
|
542
|
+
if (Ue(r))
|
|
544
543
|
for (var u = 0; u < r.length; u++) {
|
|
545
|
-
var
|
|
546
|
-
|
|
544
|
+
var v = r[u];
|
|
545
|
+
He(v) && Tt(v, s);
|
|
547
546
|
}
|
|
548
|
-
else if (
|
|
547
|
+
else if (He(r))
|
|
549
548
|
r._store && (r._store.validated = !0);
|
|
550
549
|
else if (r) {
|
|
551
|
-
var T =
|
|
550
|
+
var T = Q(r);
|
|
552
551
|
if (typeof T == "function" && T !== r.entries)
|
|
553
|
-
for (var
|
|
554
|
-
|
|
552
|
+
for (var R = T.call(r), b; !(b = R.next()).done; )
|
|
553
|
+
He(b.value) && Tt(b.value, s);
|
|
555
554
|
}
|
|
556
555
|
}
|
|
557
556
|
}
|
|
558
|
-
function
|
|
557
|
+
function gr(r) {
|
|
559
558
|
{
|
|
560
559
|
var s = r.type;
|
|
561
560
|
if (s == null || typeof s == "string")
|
|
@@ -563,95 +562,95 @@ Check the top-level render call using <` + u + ">.");
|
|
|
563
562
|
var u;
|
|
564
563
|
if (typeof s == "function")
|
|
565
564
|
u = s.propTypes;
|
|
566
|
-
else if (typeof s == "object" && (s.$$typeof ===
|
|
565
|
+
else if (typeof s == "object" && (s.$$typeof === m || // Note: Memo only checks outer props here.
|
|
567
566
|
// Inner props are checked in the reconciler.
|
|
568
|
-
s.$$typeof ===
|
|
567
|
+
s.$$typeof === S))
|
|
569
568
|
u = s.propTypes;
|
|
570
569
|
else
|
|
571
570
|
return;
|
|
572
571
|
if (u) {
|
|
573
|
-
var
|
|
574
|
-
|
|
572
|
+
var v = K(s);
|
|
573
|
+
ir(u, r.props, "prop", v, r);
|
|
575
574
|
} else if (s.PropTypes !== void 0 && !Ge) {
|
|
576
575
|
Ge = !0;
|
|
577
576
|
var T = K(s);
|
|
578
|
-
|
|
577
|
+
P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
|
|
579
578
|
}
|
|
580
|
-
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved &&
|
|
579
|
+
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
581
580
|
}
|
|
582
581
|
}
|
|
583
|
-
function
|
|
582
|
+
function br(r) {
|
|
584
583
|
{
|
|
585
584
|
for (var s = Object.keys(r.props), u = 0; u < s.length; u++) {
|
|
586
|
-
var
|
|
587
|
-
if (
|
|
588
|
-
de(r),
|
|
585
|
+
var v = s[u];
|
|
586
|
+
if (v !== "children" && v !== "key") {
|
|
587
|
+
de(r), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), de(null);
|
|
589
588
|
break;
|
|
590
589
|
}
|
|
591
590
|
}
|
|
592
|
-
r.ref !== null && (de(r),
|
|
591
|
+
r.ref !== null && (de(r), P("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
|
|
593
592
|
}
|
|
594
593
|
}
|
|
595
|
-
var
|
|
596
|
-
function
|
|
594
|
+
var Ct = {};
|
|
595
|
+
function It(r, s, u, v, T, R) {
|
|
597
596
|
{
|
|
598
|
-
var b =
|
|
597
|
+
var b = Le(r);
|
|
599
598
|
if (!b) {
|
|
600
599
|
var g = "";
|
|
601
600
|
(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.");
|
|
602
|
-
var
|
|
603
|
-
|
|
604
|
-
var
|
|
605
|
-
r === null ?
|
|
601
|
+
var z = pr();
|
|
602
|
+
z ? g += z : g += bt();
|
|
603
|
+
var _;
|
|
604
|
+
r === null ? _ = "null" : Ue(r) ? _ = "array" : r !== void 0 && r.$$typeof === e ? (_ = "<" + (K(r.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof r, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, g);
|
|
606
605
|
}
|
|
607
|
-
var
|
|
608
|
-
if (
|
|
609
|
-
return
|
|
606
|
+
var F = vr(r, s, u, T, R);
|
|
607
|
+
if (F == null)
|
|
608
|
+
return F;
|
|
610
609
|
if (b) {
|
|
611
|
-
var
|
|
612
|
-
if (
|
|
613
|
-
if (
|
|
614
|
-
if (
|
|
615
|
-
for (var
|
|
616
|
-
|
|
617
|
-
Object.freeze && Object.freeze(
|
|
610
|
+
var U = s.children;
|
|
611
|
+
if (U !== void 0)
|
|
612
|
+
if (v)
|
|
613
|
+
if (Ue(U)) {
|
|
614
|
+
for (var fe = 0; fe < U.length; fe++)
|
|
615
|
+
xt(U[fe], r);
|
|
616
|
+
Object.freeze && Object.freeze(U);
|
|
618
617
|
} else
|
|
619
|
-
|
|
618
|
+
P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
620
619
|
else
|
|
621
|
-
|
|
620
|
+
xt(U, r);
|
|
622
621
|
}
|
|
623
622
|
if (Te.call(s, "key")) {
|
|
624
|
-
var
|
|
623
|
+
var ae = K(r), Y = Object.keys(s).filter(function(Rr) {
|
|
625
624
|
return Rr !== "key";
|
|
626
|
-
}),
|
|
627
|
-
if (!
|
|
628
|
-
var
|
|
629
|
-
|
|
625
|
+
}), Je = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
626
|
+
if (!Ct[ae + Je]) {
|
|
627
|
+
var Ir = Y.length > 0 ? "{" + Y.join(": ..., ") + ": ...}" : "{}";
|
|
628
|
+
P(`A props object containing a "key" prop is being spread into JSX:
|
|
630
629
|
let props = %s;
|
|
631
630
|
<%s {...props} />
|
|
632
631
|
React keys must be passed directly to JSX without using spread:
|
|
633
632
|
let props = %s;
|
|
634
|
-
<%s key={someKey} {...props} />`,
|
|
633
|
+
<%s key={someKey} {...props} />`, Je, ae, Ir, ae), Ct[ae + Je] = !0;
|
|
635
634
|
}
|
|
636
635
|
}
|
|
637
|
-
return r === i ?
|
|
636
|
+
return r === i ? br(F) : gr(F), F;
|
|
638
637
|
}
|
|
639
638
|
}
|
|
640
|
-
function
|
|
641
|
-
return
|
|
639
|
+
function Er(r, s, u) {
|
|
640
|
+
return It(r, s, u, !0);
|
|
642
641
|
}
|
|
643
|
-
function
|
|
644
|
-
return
|
|
642
|
+
function Tr(r, s, u) {
|
|
643
|
+
return It(r, s, u, !1);
|
|
645
644
|
}
|
|
646
|
-
var
|
|
647
|
-
|
|
648
|
-
})()),
|
|
645
|
+
var xr = Tr, Cr = Er;
|
|
646
|
+
Ce.Fragment = i, Ce.jsx = xr, Ce.jsxs = Cr;
|
|
647
|
+
})()), Ce;
|
|
649
648
|
}
|
|
650
|
-
var
|
|
649
|
+
var Ot;
|
|
651
650
|
function In() {
|
|
652
|
-
return
|
|
651
|
+
return Ot || (Ot = 1, process.env.NODE_ENV === "production" ? $e.exports = xn() : $e.exports = Cn()), $e.exports;
|
|
653
652
|
}
|
|
654
|
-
var
|
|
653
|
+
var Re = In(), De = { exports: {} }, x = {};
|
|
655
654
|
/** @license React v16.13.1
|
|
656
655
|
* react-is.production.min.js
|
|
657
656
|
*
|
|
@@ -660,31 +659,31 @@ var Ce = In(), De = { exports: {} }, x = {};
|
|
|
660
659
|
* This source code is licensed under the MIT license found in the
|
|
661
660
|
* LICENSE file in the root directory of this source tree.
|
|
662
661
|
*/
|
|
663
|
-
var
|
|
664
|
-
function
|
|
665
|
-
if (
|
|
666
|
-
|
|
667
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, l = t ? Symbol.for("react.profiler") : 60114,
|
|
668
|
-
function
|
|
662
|
+
var _t;
|
|
663
|
+
function Rn() {
|
|
664
|
+
if (_t) return x;
|
|
665
|
+
_t = 1;
|
|
666
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, l = t ? Symbol.for("react.profiler") : 60114, d = t ? Symbol.for("react.provider") : 60109, h = t ? Symbol.for("react.context") : 60110, m = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, E = t ? Symbol.for("react.forward_ref") : 60112, S = t ? Symbol.for("react.suspense") : 60113, I = t ? Symbol.for("react.suspense_list") : 60120, $ = t ? Symbol.for("react.memo") : 60115, k = t ? Symbol.for("react.lazy") : 60116, W = t ? Symbol.for("react.block") : 60121, Q = t ? Symbol.for("react.fundamental") : 60117, L = t ? Symbol.for("react.responder") : 60118, P = t ? Symbol.for("react.scope") : 60119;
|
|
667
|
+
function M(c) {
|
|
669
668
|
if (typeof c == "object" && c !== null) {
|
|
670
669
|
var V = c.$$typeof;
|
|
671
670
|
switch (V) {
|
|
672
671
|
case e:
|
|
673
672
|
switch (c = c.type, c) {
|
|
674
|
-
case v:
|
|
675
673
|
case m:
|
|
674
|
+
case p:
|
|
676
675
|
case i:
|
|
677
676
|
case l:
|
|
678
677
|
case a:
|
|
679
|
-
case
|
|
678
|
+
case S:
|
|
680
679
|
return c;
|
|
681
680
|
default:
|
|
682
681
|
switch (c = c && c.$$typeof, c) {
|
|
683
682
|
case h:
|
|
684
683
|
case E:
|
|
685
|
-
case
|
|
686
|
-
case
|
|
687
|
-
case
|
|
684
|
+
case k:
|
|
685
|
+
case $:
|
|
686
|
+
case d:
|
|
688
687
|
return c;
|
|
689
688
|
default:
|
|
690
689
|
return V;
|
|
@@ -695,38 +694,38 @@ function Cn() {
|
|
|
695
694
|
}
|
|
696
695
|
}
|
|
697
696
|
}
|
|
698
|
-
function
|
|
699
|
-
return
|
|
697
|
+
function O(c) {
|
|
698
|
+
return M(c) === p;
|
|
700
699
|
}
|
|
701
|
-
return x.AsyncMode =
|
|
702
|
-
return
|
|
703
|
-
}, x.isConcurrentMode =
|
|
704
|
-
return
|
|
700
|
+
return x.AsyncMode = m, x.ConcurrentMode = p, x.ContextConsumer = h, x.ContextProvider = d, x.Element = e, x.ForwardRef = E, x.Fragment = i, x.Lazy = k, x.Memo = $, x.Portal = n, x.Profiler = l, x.StrictMode = a, x.Suspense = S, x.isAsyncMode = function(c) {
|
|
701
|
+
return O(c) || M(c) === m;
|
|
702
|
+
}, x.isConcurrentMode = O, x.isContextConsumer = function(c) {
|
|
703
|
+
return M(c) === h;
|
|
705
704
|
}, x.isContextProvider = function(c) {
|
|
706
|
-
return
|
|
705
|
+
return M(c) === d;
|
|
707
706
|
}, x.isElement = function(c) {
|
|
708
707
|
return typeof c == "object" && c !== null && c.$$typeof === e;
|
|
709
708
|
}, x.isForwardRef = function(c) {
|
|
710
|
-
return
|
|
709
|
+
return M(c) === E;
|
|
711
710
|
}, x.isFragment = function(c) {
|
|
712
|
-
return
|
|
711
|
+
return M(c) === i;
|
|
713
712
|
}, x.isLazy = function(c) {
|
|
714
|
-
return
|
|
713
|
+
return M(c) === k;
|
|
715
714
|
}, x.isMemo = function(c) {
|
|
716
|
-
return
|
|
715
|
+
return M(c) === $;
|
|
717
716
|
}, x.isPortal = function(c) {
|
|
718
|
-
return
|
|
717
|
+
return M(c) === n;
|
|
719
718
|
}, x.isProfiler = function(c) {
|
|
720
|
-
return
|
|
719
|
+
return M(c) === l;
|
|
721
720
|
}, x.isStrictMode = function(c) {
|
|
722
|
-
return
|
|
721
|
+
return M(c) === a;
|
|
723
722
|
}, x.isSuspense = function(c) {
|
|
724
|
-
return
|
|
723
|
+
return M(c) === S;
|
|
725
724
|
}, x.isValidElementType = function(c) {
|
|
726
|
-
return typeof c == "string" || typeof c == "function" || c === i || c ===
|
|
727
|
-
}, x.typeOf =
|
|
725
|
+
return typeof c == "string" || typeof c == "function" || c === i || c === p || c === l || c === a || c === S || c === I || typeof c == "object" && c !== null && (c.$$typeof === k || c.$$typeof === $ || c.$$typeof === d || c.$$typeof === h || c.$$typeof === E || c.$$typeof === Q || c.$$typeof === L || c.$$typeof === P || c.$$typeof === W);
|
|
726
|
+
}, x.typeOf = M, x;
|
|
728
727
|
}
|
|
729
|
-
var
|
|
728
|
+
var C = {};
|
|
730
729
|
/** @license React v16.13.1
|
|
731
730
|
* react-is.development.js
|
|
732
731
|
*
|
|
@@ -735,37 +734,37 @@ var S = {};
|
|
|
735
734
|
* This source code is licensed under the MIT license found in the
|
|
736
735
|
* LICENSE file in the root directory of this source tree.
|
|
737
736
|
*/
|
|
738
|
-
var
|
|
739
|
-
function
|
|
740
|
-
return
|
|
741
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, l = t ? Symbol.for("react.profiler") : 60114,
|
|
742
|
-
function
|
|
743
|
-
return typeof
|
|
744
|
-
|
|
745
|
-
}
|
|
746
|
-
function
|
|
747
|
-
if (typeof
|
|
748
|
-
var Ee =
|
|
737
|
+
var At;
|
|
738
|
+
function Sn() {
|
|
739
|
+
return At || (At = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
740
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, l = t ? Symbol.for("react.profiler") : 60114, d = t ? Symbol.for("react.provider") : 60109, h = t ? Symbol.for("react.context") : 60110, m = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, E = t ? Symbol.for("react.forward_ref") : 60112, S = t ? Symbol.for("react.suspense") : 60113, I = t ? Symbol.for("react.suspense_list") : 60120, $ = t ? Symbol.for("react.memo") : 60115, k = t ? Symbol.for("react.lazy") : 60116, W = t ? Symbol.for("react.block") : 60121, Q = t ? Symbol.for("react.fundamental") : 60117, L = t ? Symbol.for("react.responder") : 60118, P = t ? Symbol.for("react.scope") : 60119;
|
|
741
|
+
function M(f) {
|
|
742
|
+
return typeof f == "string" || typeof f == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
743
|
+
f === i || f === p || f === l || f === a || f === S || f === I || typeof f == "object" && f !== null && (f.$$typeof === k || f.$$typeof === $ || f.$$typeof === d || f.$$typeof === h || f.$$typeof === E || f.$$typeof === Q || f.$$typeof === L || f.$$typeof === P || f.$$typeof === W);
|
|
744
|
+
}
|
|
745
|
+
function O(f) {
|
|
746
|
+
if (typeof f == "object" && f !== null) {
|
|
747
|
+
var Ee = f.$$typeof;
|
|
749
748
|
switch (Ee) {
|
|
750
749
|
case e:
|
|
751
|
-
var
|
|
752
|
-
switch (
|
|
753
|
-
case v:
|
|
750
|
+
var ue = f.type;
|
|
751
|
+
switch (ue) {
|
|
754
752
|
case m:
|
|
753
|
+
case p:
|
|
755
754
|
case i:
|
|
756
755
|
case l:
|
|
757
756
|
case a:
|
|
758
|
-
case
|
|
759
|
-
return
|
|
757
|
+
case S:
|
|
758
|
+
return ue;
|
|
760
759
|
default:
|
|
761
|
-
var
|
|
762
|
-
switch (
|
|
760
|
+
var oe = ue && ue.$$typeof;
|
|
761
|
+
switch (oe) {
|
|
763
762
|
case h:
|
|
764
763
|
case E:
|
|
765
|
-
case
|
|
766
|
-
case
|
|
767
|
-
case
|
|
768
|
-
return
|
|
764
|
+
case k:
|
|
765
|
+
case $:
|
|
766
|
+
case d:
|
|
767
|
+
return oe;
|
|
769
768
|
default:
|
|
770
769
|
return Ee;
|
|
771
770
|
}
|
|
@@ -775,57 +774,57 @@ function Rn() {
|
|
|
775
774
|
}
|
|
776
775
|
}
|
|
777
776
|
}
|
|
778
|
-
var c =
|
|
779
|
-
function ke(
|
|
780
|
-
return ve || (ve = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), pe(
|
|
777
|
+
var c = m, V = p, he = h, Pe = d, we = e, Le = E, Ve = i, Oe = k, K = $, ee = n, ie = l, _e = a, Ae = S, ve = !1;
|
|
778
|
+
function ke(f) {
|
|
779
|
+
return ve || (ve = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), pe(f) || O(f) === m;
|
|
781
780
|
}
|
|
782
|
-
function pe(
|
|
783
|
-
return
|
|
781
|
+
function pe(f) {
|
|
782
|
+
return O(f) === p;
|
|
784
783
|
}
|
|
785
|
-
function Me(
|
|
786
|
-
return
|
|
784
|
+
function Me(f) {
|
|
785
|
+
return O(f) === h;
|
|
787
786
|
}
|
|
788
|
-
function Fe(
|
|
789
|
-
return
|
|
787
|
+
function Fe(f) {
|
|
788
|
+
return O(f) === d;
|
|
790
789
|
}
|
|
791
|
-
function je(
|
|
792
|
-
return typeof
|
|
790
|
+
function je(f) {
|
|
791
|
+
return typeof f == "object" && f !== null && f.$$typeof === e;
|
|
793
792
|
}
|
|
794
|
-
function
|
|
795
|
-
return
|
|
793
|
+
function Ye(f) {
|
|
794
|
+
return O(f) === E;
|
|
796
795
|
}
|
|
797
|
-
function
|
|
798
|
-
return
|
|
796
|
+
function Be(f) {
|
|
797
|
+
return O(f) === i;
|
|
799
798
|
}
|
|
800
|
-
function ye(
|
|
801
|
-
return
|
|
799
|
+
function ye(f) {
|
|
800
|
+
return O(f) === k;
|
|
802
801
|
}
|
|
803
|
-
function ge(
|
|
804
|
-
return
|
|
802
|
+
function ge(f) {
|
|
803
|
+
return O(f) === $;
|
|
805
804
|
}
|
|
806
|
-
function
|
|
807
|
-
return
|
|
805
|
+
function le(f) {
|
|
806
|
+
return O(f) === n;
|
|
808
807
|
}
|
|
809
|
-
function be(
|
|
810
|
-
return
|
|
808
|
+
function be(f) {
|
|
809
|
+
return O(f) === l;
|
|
811
810
|
}
|
|
812
|
-
function
|
|
813
|
-
return
|
|
811
|
+
function ce(f) {
|
|
812
|
+
return O(f) === a;
|
|
814
813
|
}
|
|
815
|
-
function
|
|
816
|
-
return
|
|
814
|
+
function We(f) {
|
|
815
|
+
return O(f) === S;
|
|
817
816
|
}
|
|
818
|
-
|
|
819
|
-
})()),
|
|
817
|
+
C.AsyncMode = c, C.ConcurrentMode = V, C.ContextConsumer = he, C.ContextProvider = Pe, C.Element = we, C.ForwardRef = Le, C.Fragment = Ve, C.Lazy = Oe, C.Memo = K, C.Portal = ee, C.Profiler = ie, C.StrictMode = _e, C.Suspense = Ae, C.isAsyncMode = ke, C.isConcurrentMode = pe, C.isContextConsumer = Me, C.isContextProvider = Fe, C.isElement = je, C.isForwardRef = Ye, C.isFragment = Be, C.isLazy = ye, C.isMemo = ge, C.isPortal = le, C.isProfiler = be, C.isStrictMode = ce, C.isSuspense = We, C.isValidElementType = M, C.typeOf = O;
|
|
818
|
+
})()), C;
|
|
820
819
|
}
|
|
821
|
-
var
|
|
820
|
+
var kt;
|
|
822
821
|
function Pn() {
|
|
823
|
-
return
|
|
822
|
+
return kt || (kt = 1, process.env.NODE_ENV === "production" ? De.exports = Rn() : De.exports = Sn()), De.exports;
|
|
824
823
|
}
|
|
825
|
-
var
|
|
824
|
+
var Xe, Mt;
|
|
826
825
|
function wn() {
|
|
827
|
-
if (
|
|
828
|
-
|
|
826
|
+
if (Mt) return Xe;
|
|
827
|
+
Mt = 1;
|
|
829
828
|
var t = Pn(), e = {
|
|
830
829
|
childContextTypes: !0,
|
|
831
830
|
contextType: !0,
|
|
@@ -861,32 +860,32 @@ function wn() {
|
|
|
861
860
|
type: !0
|
|
862
861
|
}, l = {};
|
|
863
862
|
l[t.ForwardRef] = i, l[t.Memo] = a;
|
|
864
|
-
function
|
|
865
|
-
return t.isMemo(
|
|
866
|
-
}
|
|
867
|
-
var h = Object.defineProperty,
|
|
868
|
-
function
|
|
869
|
-
if (typeof
|
|
870
|
-
if (
|
|
871
|
-
var L =
|
|
872
|
-
L && L !==
|
|
863
|
+
function d(k) {
|
|
864
|
+
return t.isMemo(k) ? a : l[k.$$typeof] || e;
|
|
865
|
+
}
|
|
866
|
+
var h = Object.defineProperty, m = Object.getOwnPropertyNames, p = Object.getOwnPropertySymbols, E = Object.getOwnPropertyDescriptor, S = Object.getPrototypeOf, I = Object.prototype;
|
|
867
|
+
function $(k, W, Q) {
|
|
868
|
+
if (typeof W != "string") {
|
|
869
|
+
if (I) {
|
|
870
|
+
var L = S(W);
|
|
871
|
+
L && L !== I && $(k, L, Q);
|
|
873
872
|
}
|
|
874
|
-
var
|
|
875
|
-
|
|
876
|
-
for (var
|
|
877
|
-
var V =
|
|
878
|
-
if (!n[V] && !(
|
|
879
|
-
var he = E(
|
|
873
|
+
var P = m(W);
|
|
874
|
+
p && (P = P.concat(p(W)));
|
|
875
|
+
for (var M = d(k), O = d(W), c = 0; c < P.length; ++c) {
|
|
876
|
+
var V = P[c];
|
|
877
|
+
if (!n[V] && !(Q && Q[V]) && !(O && O[V]) && !(M && M[V])) {
|
|
878
|
+
var he = E(W, V);
|
|
880
879
|
try {
|
|
881
|
-
h(
|
|
880
|
+
h(k, V, he);
|
|
882
881
|
} catch {
|
|
883
882
|
}
|
|
884
883
|
}
|
|
885
884
|
}
|
|
886
885
|
}
|
|
887
|
-
return
|
|
886
|
+
return k;
|
|
888
887
|
}
|
|
889
|
-
return
|
|
888
|
+
return Xe = $, Xe;
|
|
890
889
|
}
|
|
891
890
|
wn();
|
|
892
891
|
var On = !0;
|
|
@@ -896,7 +895,7 @@ function _n(t, e, n) {
|
|
|
896
895
|
t[a] !== void 0 ? e.push(t[a] + ";") : a && (i += a + " ");
|
|
897
896
|
}), i;
|
|
898
897
|
}
|
|
899
|
-
var
|
|
898
|
+
var Jt = function(e, n, i) {
|
|
900
899
|
var a = e.key + "-" + n.name;
|
|
901
900
|
// we only need to add the styles to the registered cache if the
|
|
902
901
|
// class name could be used further down
|
|
@@ -909,7 +908,7 @@ var Kt = function(e, n, i) {
|
|
|
909
908
|
// also, note that this check will be dead code eliminated in the browser
|
|
910
909
|
On === !1) && e.registered[a] === void 0 && (e.registered[a] = n.styles);
|
|
911
910
|
}, An = function(e, n, i) {
|
|
912
|
-
|
|
911
|
+
Jt(e, n, i);
|
|
913
912
|
var a = e.key + "-" + n.name;
|
|
914
913
|
if (e.inserted[n.name] === void 0) {
|
|
915
914
|
var l = n;
|
|
@@ -993,13 +992,13 @@ function Fn(t) {
|
|
|
993
992
|
return e[n] === void 0 && (e[n] = t(n)), e[n];
|
|
994
993
|
};
|
|
995
994
|
}
|
|
996
|
-
var jn = /[A-Z]|^ms/g, Nn = /_EMO_([^_]+?)_([^]*?)_EMO_/g,
|
|
995
|
+
var jn = /[A-Z]|^ms/g, Nn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Kt = function(e) {
|
|
997
996
|
return e.charCodeAt(1) === 45;
|
|
998
|
-
},
|
|
997
|
+
}, Ft = function(e) {
|
|
999
998
|
return e != null && typeof e != "boolean";
|
|
1000
|
-
},
|
|
1001
|
-
return
|
|
1002
|
-
}),
|
|
999
|
+
}, Ze = /* @__PURE__ */ Fn(function(t) {
|
|
1000
|
+
return Kt(t) ? t : t.replace(jn, "-$&").toLowerCase();
|
|
1001
|
+
}), jt = function(e, n) {
|
|
1003
1002
|
switch (e) {
|
|
1004
1003
|
case "animation":
|
|
1005
1004
|
case "animationName":
|
|
@@ -1012,9 +1011,9 @@ var jn = /[A-Z]|^ms/g, Nn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Xt = function(e) {
|
|
|
1012
1011
|
}, a;
|
|
1013
1012
|
});
|
|
1014
1013
|
}
|
|
1015
|
-
return Mn[e] !== 1 && !
|
|
1014
|
+
return Mn[e] !== 1 && !Kt(e) && typeof n == "number" && n !== 0 ? n + "px" : n;
|
|
1016
1015
|
};
|
|
1017
|
-
function
|
|
1016
|
+
function Se(t, e, n) {
|
|
1018
1017
|
if (n == null)
|
|
1019
1018
|
return "";
|
|
1020
1019
|
var i = n;
|
|
@@ -1033,14 +1032,14 @@ function Re(t, e, n) {
|
|
|
1033
1032
|
}, a.name;
|
|
1034
1033
|
var l = n;
|
|
1035
1034
|
if (l.styles !== void 0) {
|
|
1036
|
-
var
|
|
1037
|
-
if (
|
|
1038
|
-
for (;
|
|
1035
|
+
var d = l.next;
|
|
1036
|
+
if (d !== void 0)
|
|
1037
|
+
for (; d !== void 0; )
|
|
1039
1038
|
X = {
|
|
1040
|
-
name:
|
|
1041
|
-
styles:
|
|
1039
|
+
name: d.name,
|
|
1040
|
+
styles: d.styles,
|
|
1042
1041
|
next: X
|
|
1043
|
-
},
|
|
1042
|
+
}, d = d.next;
|
|
1044
1043
|
var h = l.styles + ";";
|
|
1045
1044
|
return h;
|
|
1046
1045
|
}
|
|
@@ -1048,8 +1047,8 @@ function Re(t, e, n) {
|
|
|
1048
1047
|
}
|
|
1049
1048
|
case "function": {
|
|
1050
1049
|
if (t !== void 0) {
|
|
1051
|
-
var
|
|
1052
|
-
return X =
|
|
1050
|
+
var m = X, p = n(t);
|
|
1051
|
+
return X = m, Se(t, e, p);
|
|
1053
1052
|
}
|
|
1054
1053
|
break;
|
|
1055
1054
|
}
|
|
@@ -1061,32 +1060,32 @@ function $n(t, e, n) {
|
|
|
1061
1060
|
var i = "";
|
|
1062
1061
|
if (Array.isArray(n))
|
|
1063
1062
|
for (var a = 0; a < n.length; a++)
|
|
1064
|
-
i +=
|
|
1063
|
+
i += Se(t, e, n[a]) + ";";
|
|
1065
1064
|
else
|
|
1066
1065
|
for (var l in n) {
|
|
1067
|
-
var
|
|
1068
|
-
if (typeof
|
|
1069
|
-
var h =
|
|
1070
|
-
|
|
1071
|
-
} else if (Array.isArray(
|
|
1072
|
-
for (var
|
|
1073
|
-
|
|
1066
|
+
var d = n[l];
|
|
1067
|
+
if (typeof d != "object") {
|
|
1068
|
+
var h = d;
|
|
1069
|
+
Ft(h) && (i += Ze(l) + ":" + jt(l, h) + ";");
|
|
1070
|
+
} else if (Array.isArray(d) && typeof d[0] == "string" && e == null)
|
|
1071
|
+
for (var m = 0; m < d.length; m++)
|
|
1072
|
+
Ft(d[m]) && (i += Ze(l) + ":" + jt(l, d[m]) + ";");
|
|
1074
1073
|
else {
|
|
1075
|
-
var
|
|
1074
|
+
var p = Se(t, e, d);
|
|
1076
1075
|
switch (l) {
|
|
1077
1076
|
case "animation":
|
|
1078
1077
|
case "animationName": {
|
|
1079
|
-
i +=
|
|
1078
|
+
i += Ze(l) + ":" + p + ";";
|
|
1080
1079
|
break;
|
|
1081
1080
|
}
|
|
1082
1081
|
default:
|
|
1083
|
-
i += l + "{" +
|
|
1082
|
+
i += l + "{" + p + "}";
|
|
1084
1083
|
}
|
|
1085
1084
|
}
|
|
1086
1085
|
}
|
|
1087
1086
|
return i;
|
|
1088
1087
|
}
|
|
1089
|
-
var
|
|
1088
|
+
var Nt = /label:\s*([^\s;{]+)\s*(;|$)/g, X;
|
|
1090
1089
|
function Dn(t, e, n) {
|
|
1091
1090
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
1092
1091
|
return t[0];
|
|
@@ -1094,149 +1093,117 @@ function Dn(t, e, n) {
|
|
|
1094
1093
|
X = void 0;
|
|
1095
1094
|
var l = t[0];
|
|
1096
1095
|
if (l == null || l.raw === void 0)
|
|
1097
|
-
i = !1, a +=
|
|
1096
|
+
i = !1, a += Se(n, e, l);
|
|
1098
1097
|
else {
|
|
1099
|
-
var
|
|
1100
|
-
a +=
|
|
1098
|
+
var d = l;
|
|
1099
|
+
a += d[0];
|
|
1101
1100
|
}
|
|
1102
1101
|
for (var h = 1; h < t.length; h++)
|
|
1103
|
-
if (a +=
|
|
1104
|
-
var
|
|
1105
|
-
a +=
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
for (var
|
|
1109
|
-
|
|
1110
|
-
var
|
|
1102
|
+
if (a += Se(n, e, t[h]), i) {
|
|
1103
|
+
var m = l;
|
|
1104
|
+
a += m[h];
|
|
1105
|
+
}
|
|
1106
|
+
Nt.lastIndex = 0;
|
|
1107
|
+
for (var p = "", E; (E = Nt.exec(a)) !== null; )
|
|
1108
|
+
p += "-" + E[1];
|
|
1109
|
+
var S = kn(a) + p;
|
|
1111
1110
|
return {
|
|
1112
|
-
name:
|
|
1111
|
+
name: S,
|
|
1113
1112
|
styles: a,
|
|
1114
1113
|
next: X
|
|
1115
1114
|
};
|
|
1116
1115
|
}
|
|
1117
1116
|
var zn = function(e) {
|
|
1118
1117
|
return e();
|
|
1119
|
-
}, Ln = te.useInsertionEffect ? te.useInsertionEffect : !1, Vn = Ln || zn,
|
|
1118
|
+
}, Ln = te.useInsertionEffect ? te.useInsertionEffect : !1, Vn = Ln || zn, Xt = /* @__PURE__ */ te.createContext(
|
|
1120
1119
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1121
1120
|
// because this module is primarily intended for the browser and node
|
|
1122
1121
|
// but it's also required in react native and similar environments sometimes
|
|
1123
1122
|
// and we could have a special build just for that
|
|
1124
1123
|
// but this is much easier and the native packages
|
|
1125
1124
|
// might use a different theme context in the future anyway
|
|
1126
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */
|
|
1125
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ Mr({
|
|
1127
1126
|
key: "css"
|
|
1128
1127
|
}) : null
|
|
1129
1128
|
);
|
|
1130
|
-
|
|
1129
|
+
Xt.Provider;
|
|
1131
1130
|
var Yn = function(e) {
|
|
1132
|
-
return /* @__PURE__ */
|
|
1133
|
-
var a =
|
|
1131
|
+
return /* @__PURE__ */ _r(function(n, i) {
|
|
1132
|
+
var a = ot(Xt);
|
|
1134
1133
|
return e(n, a, i);
|
|
1135
1134
|
});
|
|
1136
|
-
}, Bn = /* @__PURE__ */ te.createContext({}), ze = {}.hasOwnProperty,
|
|
1135
|
+
}, Bn = /* @__PURE__ */ te.createContext({}), ze = {}.hasOwnProperty, rt = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Zt = function(e, n) {
|
|
1137
1136
|
var i = {};
|
|
1138
1137
|
for (var a in n)
|
|
1139
1138
|
ze.call(n, a) && (i[a] = n[a]);
|
|
1140
|
-
return i[
|
|
1139
|
+
return i[rt] = e, i;
|
|
1141
1140
|
}, Wn = function(e) {
|
|
1142
1141
|
var n = e.cache, i = e.serialized, a = e.isStringTag;
|
|
1143
|
-
return
|
|
1142
|
+
return Jt(n, i, a), Vn(function() {
|
|
1144
1143
|
return An(n, i, a);
|
|
1145
1144
|
}), null;
|
|
1146
1145
|
}, Un = /* @__PURE__ */ Yn(function(t, e, n) {
|
|
1147
1146
|
var i = t.css;
|
|
1148
1147
|
typeof i == "string" && e.registered[i] !== void 0 && (i = e.registered[i]);
|
|
1149
|
-
var a = t[
|
|
1150
|
-
typeof t.className == "string" ?
|
|
1148
|
+
var a = t[rt], l = [i], d = "";
|
|
1149
|
+
typeof t.className == "string" ? d = _n(e.registered, l, t.className) : t.className != null && (d = t.className + " ");
|
|
1151
1150
|
var h = Dn(l, void 0, te.useContext(Bn));
|
|
1152
|
-
|
|
1153
|
-
var
|
|
1154
|
-
for (var
|
|
1155
|
-
ze.call(t,
|
|
1156
|
-
return
|
|
1151
|
+
d += e.key + "-" + h.name;
|
|
1152
|
+
var m = {};
|
|
1153
|
+
for (var p in t)
|
|
1154
|
+
ze.call(t, p) && p !== "css" && p !== rt && (m[p] = t[p]);
|
|
1155
|
+
return m.className = d, n && (m.ref = n), /* @__PURE__ */ te.createElement(te.Fragment, null, /* @__PURE__ */ te.createElement(Wn, {
|
|
1157
1156
|
cache: e,
|
|
1158
1157
|
serialized: h,
|
|
1159
1158
|
isStringTag: typeof a == "string"
|
|
1160
|
-
}), /* @__PURE__ */ te.createElement(a,
|
|
1161
|
-
}),
|
|
1162
|
-
return ze.call(n, "css") ?
|
|
1163
|
-
},
|
|
1164
|
-
return ze.call(n, "css") ?
|
|
1159
|
+
}), /* @__PURE__ */ te.createElement(a, m));
|
|
1160
|
+
}), Qt = Un, ut = Re.Fragment, o = function(e, n, i) {
|
|
1161
|
+
return ze.call(n, "css") ? Re.jsx(Qt, Zt(e, n), i) : Re.jsx(e, n, i);
|
|
1162
|
+
}, j = function(e, n, i) {
|
|
1163
|
+
return ze.call(n, "css") ? Re.jsxs(Qt, Zt(e, n), i) : Re.jsxs(e, n, i);
|
|
1165
1164
|
};
|
|
1166
1165
|
const qn = ({
|
|
1167
|
-
breadcrumbs: t,
|
|
1168
|
-
tabs: e,
|
|
1169
|
-
...n
|
|
1170
|
-
}) => {
|
|
1171
|
-
const i = bn();
|
|
1172
|
-
return /* @__PURE__ */ o(
|
|
1173
|
-
lt.Header,
|
|
1174
|
-
{
|
|
1175
|
-
...n,
|
|
1176
|
-
breadcrumbs: t == null ? void 0 : t.map(({ linkProps: a, ...l }) => ({
|
|
1177
|
-
...l,
|
|
1178
|
-
href: a === void 0 ? void 0 : i.buildLocation(
|
|
1179
|
-
a
|
|
1180
|
-
/* FIXME */
|
|
1181
|
-
).href,
|
|
1182
|
-
onClick: a === void 0 ? void 0 : async (f) => {
|
|
1183
|
-
f.preventDefault(), await i.navigate(a);
|
|
1184
|
-
}
|
|
1185
|
-
})),
|
|
1186
|
-
tabs: e == null ? void 0 : e.map(({ linkProps: a, ...l }) => ({
|
|
1187
|
-
...l,
|
|
1188
|
-
href: a === void 0 ? void 0 : i.buildLocation(
|
|
1189
|
-
a
|
|
1190
|
-
/* FIXME */
|
|
1191
|
-
).href,
|
|
1192
|
-
onClick: a === void 0 ? void 0 : async (f) => {
|
|
1193
|
-
f.preventDefault(), await i.navigate(a);
|
|
1194
|
-
}
|
|
1195
|
-
}))
|
|
1196
|
-
}
|
|
1197
|
-
);
|
|
1198
|
-
}, Hn = ({
|
|
1199
1166
|
onCancel: t,
|
|
1200
1167
|
onSave: e
|
|
1201
1168
|
}) => {
|
|
1202
|
-
const n = $r({ prefix: "modalForm" }), [i, a] = q(""), [l,
|
|
1203
|
-
return /* @__PURE__ */
|
|
1169
|
+
const n = $r({ prefix: "modalForm" }), [i, a] = q(""), [l, d] = q(""), [h, m] = q(!1);
|
|
1170
|
+
return /* @__PURE__ */ j(Br, { onClose: t, initialFocus: "[name=url]", children: [
|
|
1204
1171
|
/* @__PURE__ */ o(zr, { children: /* @__PURE__ */ o(Dr, { children: "Add video" }) }),
|
|
1205
|
-
/* @__PURE__ */ o(Vr, { children: /* @__PURE__ */
|
|
1172
|
+
/* @__PURE__ */ o(Vr, { children: /* @__PURE__ */ j(
|
|
1206
1173
|
Lr,
|
|
1207
1174
|
{
|
|
1208
1175
|
id: n,
|
|
1209
1176
|
component: "form",
|
|
1210
|
-
onSubmit: async (
|
|
1211
|
-
|
|
1177
|
+
onSubmit: async (p) => {
|
|
1178
|
+
p.preventDefault();
|
|
1212
1179
|
try {
|
|
1213
|
-
|
|
1180
|
+
m(!0), await e({ url: i, title: l });
|
|
1214
1181
|
} finally {
|
|
1215
|
-
|
|
1182
|
+
m(!1);
|
|
1216
1183
|
}
|
|
1217
1184
|
},
|
|
1218
1185
|
children: [
|
|
1219
|
-
/* @__PURE__ */ o(
|
|
1186
|
+
/* @__PURE__ */ o(et, { label: "URL", children: /* @__PURE__ */ o(
|
|
1220
1187
|
Rt,
|
|
1221
1188
|
{
|
|
1222
1189
|
name: "url",
|
|
1223
1190
|
value: i,
|
|
1224
|
-
onChange: (
|
|
1191
|
+
onChange: (p) => a(p.target.value)
|
|
1225
1192
|
}
|
|
1226
1193
|
) }),
|
|
1227
|
-
/* @__PURE__ */ o(
|
|
1194
|
+
/* @__PURE__ */ o(et, { label: "Title", children: /* @__PURE__ */ o(
|
|
1228
1195
|
Rt,
|
|
1229
1196
|
{
|
|
1230
1197
|
name: "title",
|
|
1231
1198
|
value: l,
|
|
1232
|
-
onChange: (
|
|
1199
|
+
onChange: (p) => d(p.target.value)
|
|
1233
1200
|
}
|
|
1234
1201
|
) })
|
|
1235
1202
|
]
|
|
1236
1203
|
}
|
|
1237
1204
|
) }),
|
|
1238
|
-
/* @__PURE__ */
|
|
1239
|
-
/* @__PURE__ */ o(
|
|
1205
|
+
/* @__PURE__ */ j(Yr, { children: [
|
|
1206
|
+
/* @__PURE__ */ o(Lt, { onClick: t, children: "Cancel" }),
|
|
1240
1207
|
/* @__PURE__ */ o(
|
|
1241
1208
|
re,
|
|
1242
1209
|
{
|
|
@@ -1250,26 +1217,26 @@ const qn = ({
|
|
|
1250
1217
|
)
|
|
1251
1218
|
] })
|
|
1252
1219
|
] });
|
|
1253
|
-
},
|
|
1220
|
+
}, $t = me(
|
|
1254
1221
|
({ onSave: t }) => {
|
|
1255
|
-
const [e, n] = q(!1), i =
|
|
1222
|
+
const [e, n] = q(!1), i = D(
|
|
1256
1223
|
async (a) => {
|
|
1257
1224
|
await t(a), n(!1);
|
|
1258
1225
|
},
|
|
1259
1226
|
[t]
|
|
1260
1227
|
);
|
|
1261
|
-
return /* @__PURE__ */
|
|
1228
|
+
return /* @__PURE__ */ j(ut, { children: [
|
|
1262
1229
|
/* @__PURE__ */ o(
|
|
1263
1230
|
re,
|
|
1264
1231
|
{
|
|
1265
1232
|
onClick: () => n(!0),
|
|
1266
|
-
iconType:
|
|
1233
|
+
iconType: lt,
|
|
1267
1234
|
color: "primary",
|
|
1268
1235
|
children: "Add video"
|
|
1269
1236
|
}
|
|
1270
1237
|
),
|
|
1271
1238
|
e && /* @__PURE__ */ o(
|
|
1272
|
-
|
|
1239
|
+
qn,
|
|
1273
1240
|
{
|
|
1274
1241
|
onCancel: () => n(!1),
|
|
1275
1242
|
onSave: i
|
|
@@ -1277,7 +1244,7 @@ const qn = ({
|
|
|
1277
1244
|
)
|
|
1278
1245
|
] });
|
|
1279
1246
|
}
|
|
1280
|
-
),
|
|
1247
|
+
), er = {
|
|
1281
1248
|
Audio: "",
|
|
1282
1249
|
Dailymotion: "https://www.dailymotion.com/favicon.ico",
|
|
1283
1250
|
Niconico: "https://www.nicovideo.jp/favicon.ico",
|
|
@@ -1285,10 +1252,10 @@ const qn = ({
|
|
|
1285
1252
|
Twitch: "https://www.twitch.tv/favicon.ico",
|
|
1286
1253
|
Vimeo: "https://vimeo.com/favicon.ico",
|
|
1287
1254
|
YouTube: "https://www.youtube.com/favicon.ico"
|
|
1288
|
-
}, Gn =
|
|
1255
|
+
}, Gn = N(
|
|
1289
1256
|
({ playQueueStore: t }) => {
|
|
1290
|
-
const { euiTheme: e } =
|
|
1291
|
-
return /* @__PURE__ */
|
|
1257
|
+
const { euiTheme: e } = Vt();
|
|
1258
|
+
return /* @__PURE__ */ j(
|
|
1292
1259
|
Ur,
|
|
1293
1260
|
{
|
|
1294
1261
|
style: {
|
|
@@ -1299,7 +1266,7 @@ const qn = ({
|
|
|
1299
1266
|
},
|
|
1300
1267
|
children: [
|
|
1301
1268
|
/* @__PURE__ */ o(Wr, { children: /* @__PURE__ */ o(
|
|
1302
|
-
|
|
1269
|
+
Yt,
|
|
1303
1270
|
{
|
|
1304
1271
|
id: "",
|
|
1305
1272
|
checked: t.allItemsSelected,
|
|
@@ -1308,40 +1275,40 @@ const qn = ({
|
|
|
1308
1275
|
}
|
|
1309
1276
|
}
|
|
1310
1277
|
) }),
|
|
1311
|
-
/* @__PURE__ */ o(
|
|
1312
|
-
/* @__PURE__ */ o(
|
|
1313
|
-
/* @__PURE__ */ o(
|
|
1278
|
+
/* @__PURE__ */ o(Ke, { width: 24 }),
|
|
1279
|
+
/* @__PURE__ */ o(Ke, { children: "Title" }),
|
|
1280
|
+
/* @__PURE__ */ o(Ke, {})
|
|
1314
1281
|
]
|
|
1315
1282
|
}
|
|
1316
1283
|
);
|
|
1317
1284
|
}
|
|
1318
|
-
),
|
|
1285
|
+
), Hn = me(
|
|
1319
1286
|
({
|
|
1320
1287
|
item: t,
|
|
1321
1288
|
closePopover: e
|
|
1322
1289
|
}) => {
|
|
1323
|
-
const n =
|
|
1290
|
+
const n = at(
|
|
1324
1291
|
() => [
|
|
1325
1292
|
{
|
|
1326
1293
|
id: 0,
|
|
1327
1294
|
items: [
|
|
1328
1295
|
{
|
|
1329
1296
|
name: "Play first",
|
|
1330
|
-
icon: /* @__PURE__ */ o(
|
|
1297
|
+
icon: /* @__PURE__ */ o(G, { type: "" }),
|
|
1331
1298
|
onClick: async () => {
|
|
1332
1299
|
e(), await t.playFirst();
|
|
1333
1300
|
}
|
|
1334
1301
|
},
|
|
1335
1302
|
{
|
|
1336
1303
|
name: "Play next",
|
|
1337
|
-
icon: /* @__PURE__ */ o(
|
|
1304
|
+
icon: /* @__PURE__ */ o(G, { type: "" }),
|
|
1338
1305
|
onClick: async () => {
|
|
1339
1306
|
e(), await t.playNext();
|
|
1340
1307
|
}
|
|
1341
1308
|
},
|
|
1342
1309
|
{
|
|
1343
1310
|
name: "Add to play queue",
|
|
1344
|
-
icon: /* @__PURE__ */ o(
|
|
1311
|
+
icon: /* @__PURE__ */ o(G, { type: lt }),
|
|
1345
1312
|
onClick: async () => {
|
|
1346
1313
|
e(), await t.addToPlayQueue();
|
|
1347
1314
|
}
|
|
@@ -1351,7 +1318,7 @@ const qn = ({
|
|
|
1351
1318
|
},
|
|
1352
1319
|
{
|
|
1353
1320
|
name: "Move to the top",
|
|
1354
|
-
icon: /* @__PURE__ */ o(
|
|
1321
|
+
icon: /* @__PURE__ */ o(G, { type: rn }),
|
|
1355
1322
|
onClick: async () => {
|
|
1356
1323
|
e(), t.moveToTop();
|
|
1357
1324
|
},
|
|
@@ -1359,7 +1326,7 @@ const qn = ({
|
|
|
1359
1326
|
},
|
|
1360
1327
|
{
|
|
1361
1328
|
name: "Move to the bottom",
|
|
1362
|
-
icon: /* @__PURE__ */ o(
|
|
1329
|
+
icon: /* @__PURE__ */ o(G, { type: nn }),
|
|
1363
1330
|
onClick: async () => {
|
|
1364
1331
|
e(), t.moveToBottom();
|
|
1365
1332
|
},
|
|
@@ -1370,7 +1337,7 @@ const qn = ({
|
|
|
1370
1337
|
},
|
|
1371
1338
|
{
|
|
1372
1339
|
name: "Remove to the top",
|
|
1373
|
-
icon: /* @__PURE__ */ o(
|
|
1340
|
+
icon: /* @__PURE__ */ o(G, { type: "" }),
|
|
1374
1341
|
onClick: async () => {
|
|
1375
1342
|
e(), await t.removeToTop();
|
|
1376
1343
|
},
|
|
@@ -1378,7 +1345,7 @@ const qn = ({
|
|
|
1378
1345
|
},
|
|
1379
1346
|
{
|
|
1380
1347
|
name: "Remove others",
|
|
1381
|
-
icon: /* @__PURE__ */ o(
|
|
1348
|
+
icon: /* @__PURE__ */ o(G, { type: "" }),
|
|
1382
1349
|
onClick: async () => {
|
|
1383
1350
|
e(), await t.removeOthers();
|
|
1384
1351
|
},
|
|
@@ -1389,20 +1356,20 @@ const qn = ({
|
|
|
1389
1356
|
],
|
|
1390
1357
|
[e, t]
|
|
1391
1358
|
);
|
|
1392
|
-
return /* @__PURE__ */ o(
|
|
1359
|
+
return /* @__PURE__ */ o(Bt, { initialPanelId: 0, panels: n });
|
|
1393
1360
|
}
|
|
1394
|
-
),
|
|
1361
|
+
), Jn = me(
|
|
1395
1362
|
({ item: t }) => {
|
|
1396
|
-
const [e, n] = q(!1), i =
|
|
1363
|
+
const [e, n] = q(!1), i = D(() => n(!e), [e]), a = D(() => n(!1), []);
|
|
1397
1364
|
return /* @__PURE__ */ o(
|
|
1398
|
-
|
|
1365
|
+
st,
|
|
1399
1366
|
{
|
|
1400
1367
|
button: /* @__PURE__ */ o(
|
|
1401
|
-
|
|
1368
|
+
H,
|
|
1402
1369
|
{
|
|
1403
1370
|
title: "More options",
|
|
1404
1371
|
"aria-label": "More options",
|
|
1405
|
-
iconType:
|
|
1372
|
+
iconType: qt,
|
|
1406
1373
|
size: "s",
|
|
1407
1374
|
color: "text",
|
|
1408
1375
|
onClick: i
|
|
@@ -1413,7 +1380,7 @@ const qn = ({
|
|
|
1413
1380
|
panelPaddingSize: "none",
|
|
1414
1381
|
anchorPosition: "leftCenter",
|
|
1415
1382
|
children: /* @__PURE__ */ o(
|
|
1416
|
-
|
|
1383
|
+
Hn,
|
|
1417
1384
|
{
|
|
1418
1385
|
item: t,
|
|
1419
1386
|
closePopover: a
|
|
@@ -1422,14 +1389,14 @@ const qn = ({
|
|
|
1422
1389
|
}
|
|
1423
1390
|
);
|
|
1424
1391
|
}
|
|
1425
|
-
),
|
|
1392
|
+
), Kn = N(
|
|
1426
1393
|
({ item: t }) => {
|
|
1427
|
-
const e =
|
|
1428
|
-
return /* @__PURE__ */
|
|
1394
|
+
const e = ne();
|
|
1395
|
+
return /* @__PURE__ */ j(tt, { textOnly: !1, hasActions: !0, align: "right", children: [
|
|
1429
1396
|
/* @__PURE__ */ o(
|
|
1430
1397
|
re,
|
|
1431
1398
|
{
|
|
1432
|
-
iconType:
|
|
1399
|
+
iconType: tn,
|
|
1433
1400
|
size: "s",
|
|
1434
1401
|
onClick: async () => {
|
|
1435
1402
|
t.isCurrent ? await e.setCurrentTime(0) : t.play();
|
|
@@ -1440,38 +1407,38 @@ const qn = ({
|
|
|
1440
1407
|
/* @__PURE__ */ o(
|
|
1441
1408
|
re,
|
|
1442
1409
|
{
|
|
1443
|
-
iconType:
|
|
1410
|
+
iconType: ct,
|
|
1444
1411
|
size: "s",
|
|
1445
1412
|
onClick: t.remove,
|
|
1446
1413
|
children: "Remove"
|
|
1447
1414
|
}
|
|
1448
1415
|
),
|
|
1449
|
-
/* @__PURE__ */ o(
|
|
1416
|
+
/* @__PURE__ */ o(Jn, { item: t })
|
|
1450
1417
|
] });
|
|
1451
1418
|
}
|
|
1452
|
-
),
|
|
1419
|
+
), Xn = N(
|
|
1453
1420
|
({ item: t }) => {
|
|
1454
|
-
const e =
|
|
1455
|
-
return /* @__PURE__ */
|
|
1421
|
+
const e = ne();
|
|
1422
|
+
return /* @__PURE__ */ j(Hr, { isSelected: t.isCurrent, children: [
|
|
1456
1423
|
/* @__PURE__ */ o(qr, { children: /* @__PURE__ */ o(
|
|
1457
|
-
|
|
1424
|
+
Yt,
|
|
1458
1425
|
{
|
|
1459
1426
|
id: t.id.toString(),
|
|
1460
1427
|
checked: t.isSelected,
|
|
1461
1428
|
onChange: t.toggleSelected
|
|
1462
1429
|
}
|
|
1463
1430
|
) }),
|
|
1464
|
-
/* @__PURE__ */ o(
|
|
1431
|
+
/* @__PURE__ */ o(tt, { textOnly: !1, children: /* @__PURE__ */ o(
|
|
1465
1432
|
"img",
|
|
1466
1433
|
{
|
|
1467
|
-
src:
|
|
1434
|
+
src: er[t.type],
|
|
1468
1435
|
width: 16,
|
|
1469
1436
|
height: 16,
|
|
1470
1437
|
alt: t.type
|
|
1471
1438
|
}
|
|
1472
1439
|
) }),
|
|
1473
|
-
/* @__PURE__ */ o(
|
|
1474
|
-
|
|
1440
|
+
/* @__PURE__ */ o(tt, { children: /* @__PURE__ */ o(
|
|
1441
|
+
Gr,
|
|
1475
1442
|
{
|
|
1476
1443
|
href: t.url,
|
|
1477
1444
|
target: "_blank",
|
|
@@ -1480,43 +1447,43 @@ const qn = ({
|
|
|
1480
1447
|
children: t.title
|
|
1481
1448
|
}
|
|
1482
1449
|
) }),
|
|
1483
|
-
/* @__PURE__ */ o(
|
|
1450
|
+
/* @__PURE__ */ o(Kn, { item: t })
|
|
1484
1451
|
] }, t.id);
|
|
1485
1452
|
}
|
|
1486
|
-
),
|
|
1453
|
+
), Zn = N(
|
|
1487
1454
|
({ playQueueStore: t }) => /* @__PURE__ */ o(
|
|
1488
1455
|
En,
|
|
1489
1456
|
{
|
|
1490
1457
|
tag: "tbody",
|
|
1491
1458
|
list: t.items,
|
|
1492
1459
|
setList: (e) => t.setItems(e),
|
|
1493
|
-
children: t.items.map((e) => /* @__PURE__ */ o(
|
|
1460
|
+
children: t.items.map((e) => /* @__PURE__ */ o(Xn, { item: e }, e.id))
|
|
1494
1461
|
}
|
|
1495
1462
|
)
|
|
1496
|
-
),
|
|
1497
|
-
({ playQueueStore: t }) => /* @__PURE__ */
|
|
1463
|
+
), Qn = N(
|
|
1464
|
+
({ playQueueStore: t }) => /* @__PURE__ */ j(Jr, { children: [
|
|
1498
1465
|
/* @__PURE__ */ o(Gn, { playQueueStore: t }),
|
|
1499
|
-
/* @__PURE__ */ o(
|
|
1466
|
+
/* @__PURE__ */ o(Zn, { playQueueStore: t })
|
|
1500
1467
|
] })
|
|
1501
1468
|
);
|
|
1502
|
-
function
|
|
1469
|
+
function ei(t) {
|
|
1503
1470
|
return t !== null && typeof t == "object" && "title" in t && typeof t.title == "string";
|
|
1504
1471
|
}
|
|
1505
|
-
const
|
|
1472
|
+
const ti = N(
|
|
1506
1473
|
({ playQueueStore: t }) => /* @__PURE__ */ o(
|
|
1507
1474
|
re,
|
|
1508
1475
|
{
|
|
1509
|
-
iconType:
|
|
1476
|
+
iconType: lt,
|
|
1510
1477
|
onClick: t.addSelectedItems,
|
|
1511
1478
|
disabled: t.isEmpty || t.selectedItems.length === 0,
|
|
1512
1479
|
children: "Add to play queue"
|
|
1513
1480
|
}
|
|
1514
1481
|
)
|
|
1515
1482
|
);
|
|
1516
|
-
|
|
1483
|
+
N(
|
|
1517
1484
|
({ playQueueStore: t }) => {
|
|
1518
1485
|
const [e, n] = q(!1);
|
|
1519
|
-
return /* @__PURE__ */
|
|
1486
|
+
return /* @__PURE__ */ j(ut, { children: [
|
|
1520
1487
|
e && /* @__PURE__ */ o(
|
|
1521
1488
|
Xr,
|
|
1522
1489
|
{
|
|
@@ -1543,18 +1510,18 @@ D(
|
|
|
1543
1510
|
re,
|
|
1544
1511
|
{
|
|
1545
1512
|
onClick: () => n((i) => !i),
|
|
1546
|
-
iconType:
|
|
1513
|
+
iconType: on,
|
|
1547
1514
|
children: "Developer tools"
|
|
1548
1515
|
}
|
|
1549
1516
|
)
|
|
1550
1517
|
] });
|
|
1551
1518
|
}
|
|
1552
1519
|
);
|
|
1553
|
-
const
|
|
1520
|
+
const ki = N(
|
|
1554
1521
|
({ playQueueStore: t }) => {
|
|
1555
|
-
const { euiTheme: e } =
|
|
1522
|
+
const { euiTheme: e } = Vt(), n = D(
|
|
1556
1523
|
async (i) => {
|
|
1557
|
-
const a =
|
|
1524
|
+
const a = Fr(i.url);
|
|
1558
1525
|
if (a !== void 0) {
|
|
1559
1526
|
const l = a.extractVideoId(i.url);
|
|
1560
1527
|
if (l !== void 0) {
|
|
@@ -1568,7 +1535,7 @@ const ni = D(
|
|
|
1568
1535
|
url: i.url,
|
|
1569
1536
|
type: a.type,
|
|
1570
1537
|
videoId: l,
|
|
1571
|
-
title: i.title || (
|
|
1538
|
+
title: i.title || (ei(h) ? h.title : l)
|
|
1572
1539
|
})
|
|
1573
1540
|
]);
|
|
1574
1541
|
}
|
|
@@ -1576,9 +1543,9 @@ const ni = D(
|
|
|
1576
1543
|
},
|
|
1577
1544
|
[t]
|
|
1578
1545
|
);
|
|
1579
|
-
return /* @__PURE__ */
|
|
1580
|
-
/* @__PURE__ */
|
|
1581
|
-
|
|
1546
|
+
return /* @__PURE__ */ j(ut, { children: [
|
|
1547
|
+
/* @__PURE__ */ j(
|
|
1548
|
+
se,
|
|
1582
1549
|
{
|
|
1583
1550
|
alignItems: "center",
|
|
1584
1551
|
gutterSize: "m",
|
|
@@ -1597,11 +1564,11 @@ const ni = D(
|
|
|
1597
1564
|
children: "Play next"
|
|
1598
1565
|
}
|
|
1599
1566
|
) }),
|
|
1600
|
-
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
|
|
1567
|
+
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(ti, { playQueueStore: t }) }),
|
|
1601
1568
|
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
|
|
1602
1569
|
re,
|
|
1603
1570
|
{
|
|
1604
|
-
iconType:
|
|
1571
|
+
iconType: ct,
|
|
1605
1572
|
onClick: t.removeSelectedItems,
|
|
1606
1573
|
disabled: t.isEmpty || t.selectedItems.length === 0,
|
|
1607
1574
|
children: "Remove"
|
|
@@ -1610,22 +1577,22 @@ const ni = D(
|
|
|
1610
1577
|
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
|
|
1611
1578
|
re,
|
|
1612
1579
|
{
|
|
1613
|
-
iconType:
|
|
1580
|
+
iconType: an,
|
|
1614
1581
|
onClick: t.clear,
|
|
1615
1582
|
disabled: t.isEmpty,
|
|
1616
1583
|
children: "Clear"
|
|
1617
1584
|
}
|
|
1618
1585
|
) }),
|
|
1619
1586
|
/* @__PURE__ */ o(J, { grow: !0 }),
|
|
1620
|
-
/* @__PURE__ */
|
|
1587
|
+
/* @__PURE__ */ j(J, { grow: !1, children: [
|
|
1621
1588
|
!1,
|
|
1622
|
-
/* @__PURE__ */ o(
|
|
1589
|
+
/* @__PURE__ */ o($t, { onSave: n })
|
|
1623
1590
|
] })
|
|
1624
1591
|
]
|
|
1625
1592
|
}
|
|
1626
1593
|
),
|
|
1627
1594
|
/* @__PURE__ */ o(
|
|
1628
|
-
|
|
1595
|
+
Wt,
|
|
1629
1596
|
{
|
|
1630
1597
|
size: "l",
|
|
1631
1598
|
style: {
|
|
@@ -1641,28 +1608,17 @@ const ni = D(
|
|
|
1641
1608
|
{
|
|
1642
1609
|
title: /* @__PURE__ */ o("h2", { children: "We couldn't find any videos" }),
|
|
1643
1610
|
body: /* @__PURE__ */ o("p", { children: "Your video library doesn't contain any video content." }),
|
|
1644
|
-
actions: /* @__PURE__ */ o(
|
|
1611
|
+
actions: /* @__PURE__ */ o($t, { onSave: n })
|
|
1645
1612
|
}
|
|
1646
|
-
) : /* @__PURE__ */ o(
|
|
1613
|
+
) : /* @__PURE__ */ o(Qn, { playQueueStore: t })
|
|
1647
1614
|
] });
|
|
1648
1615
|
}
|
|
1649
|
-
),
|
|
1650
|
-
({ playQueueStore: t }) => /* @__PURE__ */ F(Le, { children: [
|
|
1651
|
-
/* @__PURE__ */ o(
|
|
1652
|
-
qn,
|
|
1653
|
-
{
|
|
1654
|
-
pageTitle: "Play queue",
|
|
1655
|
-
rightSideItems: []
|
|
1656
|
-
}
|
|
1657
|
-
),
|
|
1658
|
-
/* @__PURE__ */ o(lt.Section, { children: /* @__PURE__ */ o(ni, { playQueueStore: t }) })
|
|
1659
|
-
] })
|
|
1660
|
-
), et = new Tn({
|
|
1616
|
+
), Qe = new Tn({
|
|
1661
1617
|
coerceTypes: !0
|
|
1662
1618
|
});
|
|
1663
|
-
function
|
|
1619
|
+
function ri(t, e) {
|
|
1664
1620
|
let n;
|
|
1665
|
-
if (n =
|
|
1621
|
+
if (n = Qe.getSchema(e), n === void 0 && (Qe.addSchema(t, e), n = Qe.getSchema(e)), n === void 0 || n.schema !== t)
|
|
1666
1622
|
throw new Error(
|
|
1667
1623
|
`Invalid schema. Expected: '${JSON.stringify(
|
|
1668
1624
|
t
|
|
@@ -1670,7 +1626,7 @@ function ii(t, e) {
|
|
|
1670
1626
|
);
|
|
1671
1627
|
return n;
|
|
1672
1628
|
}
|
|
1673
|
-
const
|
|
1629
|
+
const ni = {
|
|
1674
1630
|
type: "object",
|
|
1675
1631
|
properties: {
|
|
1676
1632
|
url: {
|
|
@@ -1688,8 +1644,8 @@ const oi = {
|
|
|
1688
1644
|
},
|
|
1689
1645
|
required: ["url", "type", "videoId", "title"]
|
|
1690
1646
|
};
|
|
1691
|
-
var
|
|
1692
|
-
const
|
|
1647
|
+
var w = /* @__PURE__ */ ((t) => (t.Off = "Off", t.All = "All", t.One = "One", t))(w || {});
|
|
1648
|
+
const ii = {
|
|
1693
1649
|
type: "object",
|
|
1694
1650
|
properties: {
|
|
1695
1651
|
version: {
|
|
@@ -1698,7 +1654,7 @@ const ai = {
|
|
|
1698
1654
|
},
|
|
1699
1655
|
repeat: {
|
|
1700
1656
|
type: "string",
|
|
1701
|
-
enum: Object.values(
|
|
1657
|
+
enum: Object.values(w),
|
|
1702
1658
|
nullable: !0
|
|
1703
1659
|
},
|
|
1704
1660
|
shuffle: {
|
|
@@ -1708,7 +1664,7 @@ const ai = {
|
|
|
1708
1664
|
items: {
|
|
1709
1665
|
type: "array",
|
|
1710
1666
|
nullable: !0,
|
|
1711
|
-
items:
|
|
1667
|
+
items: ni
|
|
1712
1668
|
},
|
|
1713
1669
|
currentIndex: {
|
|
1714
1670
|
type: "integer",
|
|
@@ -1717,18 +1673,18 @@ const ai = {
|
|
|
1717
1673
|
}
|
|
1718
1674
|
}, Ie = class Ie {
|
|
1719
1675
|
constructor(e, n, i) {
|
|
1720
|
-
|
|
1721
|
-
|
|
1676
|
+
B(this, "id");
|
|
1677
|
+
B(this, "isSelected", !1);
|
|
1722
1678
|
this.observableStateProvider = e, this.playQueueStore = n, this.dto = i, this.id = Ie.nextId++, e.makeObservable(this, {
|
|
1723
|
-
isSelected:
|
|
1724
|
-
isCurrent:
|
|
1725
|
-
index:
|
|
1726
|
-
isFirst:
|
|
1727
|
-
isLast:
|
|
1728
|
-
canMoveToTop:
|
|
1729
|
-
canMoveToBottom:
|
|
1730
|
-
canRemoveToTop:
|
|
1731
|
-
canRemoveOthers:
|
|
1679
|
+
isSelected: Z,
|
|
1680
|
+
isCurrent: A,
|
|
1681
|
+
index: A,
|
|
1682
|
+
isFirst: A,
|
|
1683
|
+
isLast: A,
|
|
1684
|
+
canMoveToTop: A,
|
|
1685
|
+
canMoveToBottom: A,
|
|
1686
|
+
canRemoveToTop: A,
|
|
1687
|
+
canRemoveOthers: A,
|
|
1732
1688
|
unselect: y,
|
|
1733
1689
|
toggleSelected: y.bound,
|
|
1734
1690
|
play: y,
|
|
@@ -1825,34 +1781,34 @@ const ai = {
|
|
|
1825
1781
|
return this.playQueueStore.removeOtherItems(this);
|
|
1826
1782
|
}
|
|
1827
1783
|
};
|
|
1828
|
-
|
|
1829
|
-
let
|
|
1830
|
-
class
|
|
1784
|
+
B(Ie, "nextId", 1);
|
|
1785
|
+
let nt = Ie;
|
|
1786
|
+
class oi {
|
|
1831
1787
|
constructor(e) {
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1788
|
+
B(this, "interacted", !1);
|
|
1789
|
+
B(this, "items", []);
|
|
1790
|
+
B(this, "currentId");
|
|
1791
|
+
B(this, "repeat", w.Off);
|
|
1792
|
+
B(this, "shuffle", !1);
|
|
1837
1793
|
this.observableStateProvider = e, e.makeObservable(this, {
|
|
1838
|
-
interacted:
|
|
1839
|
-
items:
|
|
1840
|
-
currentId:
|
|
1841
|
-
repeat:
|
|
1842
|
-
shuffle:
|
|
1843
|
-
localStorageState:
|
|
1844
|
-
isEmpty:
|
|
1845
|
-
currentItem:
|
|
1846
|
-
canPlay:
|
|
1847
|
-
canPause:
|
|
1848
|
-
hasMultipleItems:
|
|
1849
|
-
currentIndex:
|
|
1850
|
-
hasPreviousItem:
|
|
1851
|
-
hasNextItem:
|
|
1852
|
-
isLastItem:
|
|
1853
|
-
selectedItems:
|
|
1854
|
-
allItemsSelected:
|
|
1855
|
-
selectedItemsOrAllItems:
|
|
1794
|
+
interacted: Z,
|
|
1795
|
+
items: Z,
|
|
1796
|
+
currentId: Z,
|
|
1797
|
+
repeat: Z,
|
|
1798
|
+
shuffle: Z,
|
|
1799
|
+
localStorageState: A.struct,
|
|
1800
|
+
isEmpty: A,
|
|
1801
|
+
currentItem: A,
|
|
1802
|
+
canPlay: A,
|
|
1803
|
+
canPause: A,
|
|
1804
|
+
hasMultipleItems: A,
|
|
1805
|
+
currentIndex: A,
|
|
1806
|
+
hasPreviousItem: A,
|
|
1807
|
+
hasNextItem: A,
|
|
1808
|
+
isLastItem: A,
|
|
1809
|
+
selectedItems: A,
|
|
1810
|
+
allItemsSelected: A,
|
|
1811
|
+
selectedItemsOrAllItems: A,
|
|
1856
1812
|
setItems: y,
|
|
1857
1813
|
interact: y,
|
|
1858
1814
|
clear: y.bound,
|
|
@@ -1878,7 +1834,7 @@ class si {
|
|
|
1878
1834
|
});
|
|
1879
1835
|
}
|
|
1880
1836
|
createItem(e) {
|
|
1881
|
-
return
|
|
1837
|
+
return nt.fromDto(
|
|
1882
1838
|
this.observableStateProvider,
|
|
1883
1839
|
this,
|
|
1884
1840
|
e
|
|
@@ -1895,11 +1851,11 @@ class si {
|
|
|
1895
1851
|
}
|
|
1896
1852
|
set localStorageState(e) {
|
|
1897
1853
|
var n;
|
|
1898
|
-
this.repeat = e.repeat ??
|
|
1854
|
+
this.repeat = e.repeat ?? w.Off, this.shuffle = e.shuffle ?? !1, this.items = ((n = e.items) == null ? void 0 : n.map((i) => this.createItem(i))) ?? [], this.currentIndex = e.currentIndex;
|
|
1899
1855
|
}
|
|
1900
1856
|
validateLocalStorageState(e) {
|
|
1901
|
-
return
|
|
1902
|
-
|
|
1857
|
+
return ri(
|
|
1858
|
+
ii,
|
|
1903
1859
|
"PlayQueueDto"
|
|
1904
1860
|
)(e);
|
|
1905
1861
|
}
|
|
@@ -2007,9 +1963,9 @@ class si {
|
|
|
2007
1963
|
}
|
|
2008
1964
|
async removeItems(e) {
|
|
2009
1965
|
const { currentItem: n } = this;
|
|
2010
|
-
|
|
1966
|
+
St(this.items, ...e.filter((l) => l !== n));
|
|
2011
1967
|
const { currentIndex: i, isLastItem: a } = this;
|
|
2012
|
-
|
|
1968
|
+
St(
|
|
2013
1969
|
this.items,
|
|
2014
1970
|
e.find((l) => l === n)
|
|
2015
1971
|
), this.currentItem !== n && (this.interact(), a ? await this.goToFirst() : this.currentIndex = i);
|
|
@@ -2031,14 +1987,14 @@ class si {
|
|
|
2031
1987
|
}
|
|
2032
1988
|
toggleRepeat() {
|
|
2033
1989
|
switch (this.repeat) {
|
|
2034
|
-
case
|
|
2035
|
-
this.repeat =
|
|
1990
|
+
case w.Off:
|
|
1991
|
+
this.repeat = w.All;
|
|
2036
1992
|
break;
|
|
2037
|
-
case
|
|
2038
|
-
this.repeat =
|
|
1993
|
+
case w.All:
|
|
1994
|
+
this.repeat = w.One;
|
|
2039
1995
|
break;
|
|
2040
|
-
case
|
|
2041
|
-
this.repeat =
|
|
1996
|
+
case w.One:
|
|
1997
|
+
this.repeat = w.Off;
|
|
2042
1998
|
break;
|
|
2043
1999
|
}
|
|
2044
2000
|
}
|
|
@@ -2055,36 +2011,36 @@ class si {
|
|
|
2055
2011
|
this.currentIndex !== void 0 && (this.currentIndex = 0);
|
|
2056
2012
|
}
|
|
2057
2013
|
}
|
|
2058
|
-
const
|
|
2014
|
+
const tr = zt(void 0), Mi = ({
|
|
2059
2015
|
children: t
|
|
2060
2016
|
}) => {
|
|
2061
2017
|
const [e] = q(
|
|
2062
|
-
() => new
|
|
2063
|
-
), n =
|
|
2064
|
-
return
|
|
2018
|
+
() => new oi(new Ht())
|
|
2019
|
+
), n = ne();
|
|
2020
|
+
return Ar(() => Or(
|
|
2065
2021
|
() => e.currentItem,
|
|
2066
2022
|
async (i, a) => {
|
|
2067
2023
|
i === void 0 || a === void 0 || i.type === a.type && i.videoId === a.videoId && await n.setCurrentTime(0);
|
|
2068
2024
|
}
|
|
2069
|
-
), [e, n]), /* @__PURE__ */ o(
|
|
2070
|
-
},
|
|
2071
|
-
[
|
|
2072
|
-
[
|
|
2073
|
-
[
|
|
2074
|
-
},
|
|
2025
|
+
), [e, n]), /* @__PURE__ */ o(tr.Provider, { value: e, children: t });
|
|
2026
|
+
}, ai = () => ot(tr), si = {
|
|
2027
|
+
[w.Off]: cn,
|
|
2028
|
+
[w.All]: ln,
|
|
2029
|
+
[w.One]: sn
|
|
2030
|
+
}, li = N(
|
|
2075
2031
|
({
|
|
2076
2032
|
playerStore: t,
|
|
2077
2033
|
playQueueStore: e
|
|
2078
2034
|
}) => {
|
|
2079
|
-
const n =
|
|
2035
|
+
const n = ne(), i = D(async () => {
|
|
2080
2036
|
if (e.hasPreviousItem) {
|
|
2081
2037
|
const a = await n.getCurrentTime();
|
|
2082
2038
|
a === void 0 || a < 5 ? await e.previous() : await n.setCurrentTime(0);
|
|
2083
2039
|
} else
|
|
2084
2040
|
await n.setCurrentTime(0);
|
|
2085
2041
|
}, [e, n]);
|
|
2086
|
-
return /* @__PURE__ */
|
|
2087
|
-
|
|
2042
|
+
return /* @__PURE__ */ j(
|
|
2043
|
+
se,
|
|
2088
2044
|
{
|
|
2089
2045
|
responsive: !1,
|
|
2090
2046
|
gutterSize: "s",
|
|
@@ -2092,11 +2048,11 @@ const rr = Lt(void 0), ji = ({
|
|
|
2092
2048
|
alignItems: "center",
|
|
2093
2049
|
children: [
|
|
2094
2050
|
/* @__PURE__ */ o(
|
|
2095
|
-
|
|
2051
|
+
H,
|
|
2096
2052
|
{
|
|
2097
2053
|
title: `Shuffle: ${e.shuffle ? "On" : "Off"}`,
|
|
2098
2054
|
"aria-label": `Shuffle: ${e.shuffle ? "On" : "Off"}`,
|
|
2099
|
-
iconType: e.shuffle ?
|
|
2055
|
+
iconType: e.shuffle ? un : dn,
|
|
2100
2056
|
size: "s",
|
|
2101
2057
|
iconSize: "l",
|
|
2102
2058
|
onClick: e.toggleShuffle,
|
|
@@ -2104,7 +2060,7 @@ const rr = Lt(void 0), ji = ({
|
|
|
2104
2060
|
}
|
|
2105
2061
|
),
|
|
2106
2062
|
/* @__PURE__ */ o(
|
|
2107
|
-
|
|
2063
|
+
H,
|
|
2108
2064
|
{
|
|
2109
2065
|
title: "Previous",
|
|
2110
2066
|
"aria-label": "Previous",
|
|
@@ -2116,34 +2072,34 @@ const rr = Lt(void 0), ji = ({
|
|
|
2116
2072
|
}
|
|
2117
2073
|
),
|
|
2118
2074
|
t.playing ? /* @__PURE__ */ o(
|
|
2119
|
-
|
|
2075
|
+
H,
|
|
2120
2076
|
{
|
|
2121
2077
|
title: "Pause",
|
|
2122
2078
|
"aria-label": "Pause",
|
|
2123
|
-
iconType:
|
|
2079
|
+
iconType: mn,
|
|
2124
2080
|
size: "s",
|
|
2125
2081
|
iconSize: "l",
|
|
2126
2082
|
onClick: () => n.pause(),
|
|
2127
|
-
disabled: !e.canPause
|
|
2083
|
+
disabled: !e.canPause || !t.controller.supports("pause")
|
|
2128
2084
|
}
|
|
2129
2085
|
) : /* @__PURE__ */ o(
|
|
2130
|
-
|
|
2086
|
+
H,
|
|
2131
2087
|
{
|
|
2132
2088
|
title: "Play",
|
|
2133
2089
|
"aria-label": "Play",
|
|
2134
|
-
iconType:
|
|
2090
|
+
iconType: hn,
|
|
2135
2091
|
size: "s",
|
|
2136
2092
|
iconSize: "l",
|
|
2137
2093
|
onClick: () => n.play(),
|
|
2138
|
-
disabled: !e.canPlay
|
|
2094
|
+
disabled: !e.canPlay || !t.controller.supports("play")
|
|
2139
2095
|
}
|
|
2140
2096
|
),
|
|
2141
2097
|
/* @__PURE__ */ o(
|
|
2142
|
-
|
|
2098
|
+
H,
|
|
2143
2099
|
{
|
|
2144
2100
|
title: "Next",
|
|
2145
2101
|
"aria-label": "Next",
|
|
2146
|
-
iconType:
|
|
2102
|
+
iconType: vn,
|
|
2147
2103
|
size: "s",
|
|
2148
2104
|
iconSize: "l",
|
|
2149
2105
|
onClick: e.next,
|
|
@@ -2151,11 +2107,11 @@ const rr = Lt(void 0), ji = ({
|
|
|
2151
2107
|
}
|
|
2152
2108
|
),
|
|
2153
2109
|
/* @__PURE__ */ o(
|
|
2154
|
-
|
|
2110
|
+
H,
|
|
2155
2111
|
{
|
|
2156
|
-
title: `Repeat: ${e.repeat ===
|
|
2157
|
-
"aria-label": `Repeat: ${e.repeat ===
|
|
2158
|
-
iconType:
|
|
2112
|
+
title: `Repeat: ${e.repeat === w.All ? "All" : e.repeat === w.One ? "One" : "Off"}`,
|
|
2113
|
+
"aria-label": `Repeat: ${e.repeat === w.All ? "All" : e.repeat === w.One ? "One" : "Off"}`,
|
|
2114
|
+
iconType: si[e.repeat],
|
|
2159
2115
|
size: "s",
|
|
2160
2116
|
iconSize: "l",
|
|
2161
2117
|
onClick: e.toggleRepeat
|
|
@@ -2165,22 +2121,22 @@ const rr = Lt(void 0), ji = ({
|
|
|
2165
2121
|
}
|
|
2166
2122
|
);
|
|
2167
2123
|
}
|
|
2168
|
-
),
|
|
2124
|
+
), ci = N(
|
|
2169
2125
|
({ playQueueStore: t }) => {
|
|
2170
|
-
const e =
|
|
2126
|
+
const e = ne();
|
|
2171
2127
|
return /* @__PURE__ */ o(
|
|
2172
|
-
|
|
2128
|
+
se,
|
|
2173
2129
|
{
|
|
2174
2130
|
responsive: !1,
|
|
2175
2131
|
gutterSize: "s",
|
|
2176
2132
|
justifyContent: "flexStart",
|
|
2177
2133
|
alignItems: "center",
|
|
2178
2134
|
children: t.currentItem && /* @__PURE__ */ o(
|
|
2179
|
-
|
|
2135
|
+
Lt,
|
|
2180
2136
|
{
|
|
2181
2137
|
href: t.currentItem.url,
|
|
2182
2138
|
target: "_blank",
|
|
2183
|
-
iconType:
|
|
2139
|
+
iconType: er[t.currentItem.type],
|
|
2184
2140
|
size: "s",
|
|
2185
2141
|
onClick: () => e.pause(),
|
|
2186
2142
|
children: t.currentItem.title
|
|
@@ -2189,54 +2145,63 @@ const rr = Lt(void 0), ji = ({
|
|
|
2189
2145
|
}
|
|
2190
2146
|
);
|
|
2191
2147
|
}
|
|
2192
|
-
),
|
|
2193
|
-
({
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2148
|
+
), ui = N(
|
|
2149
|
+
({ playerStore: t }) => /* @__PURE__ */ o(
|
|
2150
|
+
H,
|
|
2151
|
+
{
|
|
2152
|
+
title: "Mute",
|
|
2153
|
+
"aria-label": "Mute",
|
|
2154
|
+
iconType: Gt,
|
|
2155
|
+
size: "s",
|
|
2156
|
+
iconSize: "l",
|
|
2157
|
+
disabled: !t.controller.supports("setMuted")
|
|
2158
|
+
}
|
|
2159
|
+
)
|
|
2160
|
+
), di = N(
|
|
2161
|
+
({
|
|
2162
|
+
playerStore: t,
|
|
2163
|
+
button: e,
|
|
2164
|
+
isOpen: n,
|
|
2165
|
+
closePopover: i
|
|
2166
|
+
}) => {
|
|
2167
|
+
const [a, l] = q("0"), d = ne();
|
|
2168
|
+
kr(() => {
|
|
2169
|
+
n && d.getVolume().then((m) => {
|
|
2170
|
+
m !== void 0 && l(Math.floor(m * 100).toString());
|
|
2198
2171
|
});
|
|
2199
|
-
}, [
|
|
2200
|
-
const
|
|
2201
|
-
async (
|
|
2202
|
-
|
|
2172
|
+
}, [n, d]);
|
|
2173
|
+
const h = D(
|
|
2174
|
+
async (m) => {
|
|
2175
|
+
l(m.currentTarget.value), await d.setVolume(Number(m.currentTarget.value) / 100);
|
|
2203
2176
|
},
|
|
2204
|
-
[
|
|
2177
|
+
[d]
|
|
2205
2178
|
);
|
|
2206
2179
|
return /* @__PURE__ */ o(
|
|
2207
|
-
|
|
2180
|
+
st,
|
|
2208
2181
|
{
|
|
2209
|
-
button:
|
|
2210
|
-
isOpen:
|
|
2211
|
-
closePopover:
|
|
2182
|
+
button: e,
|
|
2183
|
+
isOpen: n,
|
|
2184
|
+
closePopover: i,
|
|
2212
2185
|
anchorPosition: "upRight",
|
|
2213
|
-
children: /* @__PURE__ */ o(
|
|
2214
|
-
|
|
2186
|
+
children: /* @__PURE__ */ o(et, { children: /* @__PURE__ */ j(
|
|
2187
|
+
se,
|
|
2215
2188
|
{
|
|
2216
2189
|
responsive: !1,
|
|
2217
2190
|
gutterSize: "s",
|
|
2218
2191
|
justifyContent: "center",
|
|
2219
2192
|
alignItems: "center",
|
|
2220
2193
|
children: [
|
|
2194
|
+
/* @__PURE__ */ o(ui, { playerStore: t }),
|
|
2221
2195
|
/* @__PURE__ */ o(
|
|
2222
|
-
|
|
2223
|
-
{
|
|
2224
|
-
title: "Mute",
|
|
2225
|
-
"aria-label": "Mute",
|
|
2226
|
-
iconType: Gt,
|
|
2227
|
-
size: "s",
|
|
2228
|
-
iconSize: "l"
|
|
2229
|
-
}
|
|
2230
|
-
),
|
|
2231
|
-
/* @__PURE__ */ o(
|
|
2232
|
-
qt,
|
|
2196
|
+
Ut,
|
|
2233
2197
|
{
|
|
2234
2198
|
min: 0,
|
|
2235
2199
|
max: 100,
|
|
2236
2200
|
step: 1,
|
|
2237
|
-
value:
|
|
2238
|
-
onChange:
|
|
2239
|
-
css: { blockSize: 32 }
|
|
2201
|
+
value: a,
|
|
2202
|
+
onChange: h,
|
|
2203
|
+
css: { blockSize: 32 },
|
|
2204
|
+
disabled: !t.controller.supports("setVolume")
|
|
2240
2205
|
}
|
|
2241
2206
|
)
|
|
2242
2207
|
]
|
|
@@ -2245,88 +2210,103 @@ const rr = Lt(void 0), ji = ({
|
|
|
2245
2210
|
}
|
|
2246
2211
|
);
|
|
2247
2212
|
}
|
|
2248
|
-
),
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2213
|
+
), fi = N(
|
|
2214
|
+
({ playerStore: t }) => {
|
|
2215
|
+
const [e, n] = q(!1);
|
|
2216
|
+
return /* @__PURE__ */ o(
|
|
2217
|
+
di,
|
|
2218
|
+
{
|
|
2219
|
+
playerStore: t,
|
|
2220
|
+
button: /* @__PURE__ */ o(
|
|
2221
|
+
H,
|
|
2222
|
+
{
|
|
2223
|
+
title: "Volume",
|
|
2224
|
+
"aria-label": "Volume",
|
|
2225
|
+
iconType: Gt,
|
|
2226
|
+
size: "s",
|
|
2227
|
+
iconSize: "l",
|
|
2228
|
+
onClick: () => n(!e),
|
|
2229
|
+
disabled: !t.controller.supports("getVolume")
|
|
2230
|
+
}
|
|
2231
|
+
),
|
|
2232
|
+
isOpen: e,
|
|
2233
|
+
closePopover: () => n(!1)
|
|
2234
|
+
}
|
|
2235
|
+
);
|
|
2236
|
+
}
|
|
2237
|
+
), mi = ({
|
|
2269
2238
|
onClickPlayQueueButton: t
|
|
2270
2239
|
}) => /* @__PURE__ */ o(
|
|
2271
|
-
|
|
2240
|
+
H,
|
|
2272
2241
|
{
|
|
2273
2242
|
title: "Play queue",
|
|
2274
2243
|
"aria-label": "Play queue",
|
|
2275
|
-
iconType:
|
|
2244
|
+
iconType: bn,
|
|
2276
2245
|
size: "s",
|
|
2277
2246
|
iconSize: "l",
|
|
2278
2247
|
onClick: t
|
|
2279
2248
|
}
|
|
2280
|
-
),
|
|
2249
|
+
), hi = N(
|
|
2281
2250
|
({
|
|
2282
|
-
|
|
2283
|
-
|
|
2251
|
+
playerStore: t,
|
|
2252
|
+
playQueueStore: e,
|
|
2253
|
+
closePopover: n
|
|
2284
2254
|
}) => {
|
|
2285
|
-
const
|
|
2286
|
-
const
|
|
2287
|
-
|
|
2288
|
-
}, [
|
|
2289
|
-
const
|
|
2290
|
-
|
|
2291
|
-
}, [
|
|
2292
|
-
async (
|
|
2293
|
-
await
|
|
2255
|
+
const i = ne(), a = D(async () => {
|
|
2256
|
+
const I = await i.getCurrentTime();
|
|
2257
|
+
I !== void 0 && await i.setCurrentTime(I - 10), n();
|
|
2258
|
+
}, [i, n]), l = D(async () => {
|
|
2259
|
+
const I = await i.getCurrentTime();
|
|
2260
|
+
I !== void 0 && await i.setCurrentTime(I + 30), n();
|
|
2261
|
+
}, [i, n]), d = D(
|
|
2262
|
+
async (I) => {
|
|
2263
|
+
await i.setPlaybackRate(I), n();
|
|
2294
2264
|
},
|
|
2295
|
-
[
|
|
2296
|
-
),
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
]),
|
|
2300
|
-
}, [
|
|
2265
|
+
[i, n]
|
|
2266
|
+
), h = D(async () => {
|
|
2267
|
+
e.currentItem !== void 0 && await e.removeItems([
|
|
2268
|
+
e.currentItem
|
|
2269
|
+
]), n();
|
|
2270
|
+
}, [e, n]), [m, p] = q(), E = D(async () => {
|
|
2271
|
+
await t.controller.getPlaybackRate().then((I) => p(I));
|
|
2272
|
+
}, [t]), S = at(
|
|
2301
2273
|
() => [
|
|
2302
2274
|
{
|
|
2303
2275
|
id: 0,
|
|
2304
2276
|
items: [
|
|
2305
2277
|
{
|
|
2306
2278
|
name: "Speed",
|
|
2307
|
-
icon: /* @__PURE__ */ o(
|
|
2308
|
-
panel: 1
|
|
2279
|
+
icon: /* @__PURE__ */ o(G, { type: pn }),
|
|
2280
|
+
panel: 1,
|
|
2281
|
+
onClick: E,
|
|
2282
|
+
disabled: !t.controller.supports(
|
|
2283
|
+
"getPlaybackRate"
|
|
2284
|
+
)
|
|
2309
2285
|
},
|
|
2310
2286
|
{
|
|
2311
2287
|
name: "Skip back 10 seconds",
|
|
2312
|
-
icon: /* @__PURE__ */ o(
|
|
2313
|
-
onClick:
|
|
2314
|
-
disabled: t.
|
|
2288
|
+
icon: /* @__PURE__ */ o(G, { type: yn }),
|
|
2289
|
+
onClick: a,
|
|
2290
|
+
disabled: e.isEmpty || !t.controller.supports(
|
|
2291
|
+
"setCurrentTime"
|
|
2292
|
+
)
|
|
2315
2293
|
},
|
|
2316
2294
|
{
|
|
2317
2295
|
name: "Skip forward 30 seconds",
|
|
2318
|
-
icon: /* @__PURE__ */ o(
|
|
2319
|
-
onClick:
|
|
2320
|
-
disabled: t.
|
|
2296
|
+
icon: /* @__PURE__ */ o(G, { type: gn }),
|
|
2297
|
+
onClick: l,
|
|
2298
|
+
disabled: e.isEmpty || !t.controller.supports(
|
|
2299
|
+
"setCurrentTime"
|
|
2300
|
+
)
|
|
2321
2301
|
},
|
|
2322
2302
|
{
|
|
2323
2303
|
isSeparator: !0
|
|
2324
2304
|
},
|
|
2325
2305
|
{
|
|
2326
2306
|
name: "Remove from play queue",
|
|
2327
|
-
icon: /* @__PURE__ */ o(
|
|
2328
|
-
onClick:
|
|
2329
|
-
disabled:
|
|
2307
|
+
icon: /* @__PURE__ */ o(G, { type: ct }),
|
|
2308
|
+
onClick: h,
|
|
2309
|
+
disabled: e.isEmpty
|
|
2330
2310
|
}
|
|
2331
2311
|
]
|
|
2332
2312
|
},
|
|
@@ -2334,120 +2314,135 @@ const rr = Lt(void 0), ji = ({
|
|
|
2334
2314
|
id: 1,
|
|
2335
2315
|
title: "Speed",
|
|
2336
2316
|
items: [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2].map(
|
|
2337
|
-
(
|
|
2338
|
-
name:
|
|
2339
|
-
onClick: () =>
|
|
2340
|
-
icon:
|
|
2317
|
+
(I) => ({
|
|
2318
|
+
name: I.toString(),
|
|
2319
|
+
onClick: () => d(I),
|
|
2320
|
+
icon: I === m ? "check" : "empty",
|
|
2321
|
+
disabled: !t.controller.supports(
|
|
2322
|
+
"setPlaybackRate"
|
|
2323
|
+
)
|
|
2341
2324
|
})
|
|
2342
2325
|
)
|
|
2343
2326
|
}
|
|
2344
2327
|
],
|
|
2345
2328
|
[
|
|
2346
2329
|
t,
|
|
2347
|
-
|
|
2330
|
+
e,
|
|
2331
|
+
E,
|
|
2348
2332
|
a,
|
|
2349
|
-
f,
|
|
2350
2333
|
l,
|
|
2351
|
-
h
|
|
2334
|
+
h,
|
|
2335
|
+
d,
|
|
2336
|
+
m
|
|
2352
2337
|
]
|
|
2353
2338
|
);
|
|
2354
|
-
return /* @__PURE__ */ o(
|
|
2339
|
+
return /* @__PURE__ */ o(Bt, { initialPanelId: 0, panels: S });
|
|
2355
2340
|
}
|
|
2356
|
-
),
|
|
2341
|
+
), vi = me(
|
|
2357
2342
|
({
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2343
|
+
playerStore: t,
|
|
2344
|
+
playQueueStore: e,
|
|
2345
|
+
button: n,
|
|
2346
|
+
isOpen: i,
|
|
2347
|
+
closePopover: a
|
|
2362
2348
|
}) => /* @__PURE__ */ o(
|
|
2363
|
-
|
|
2349
|
+
st,
|
|
2364
2350
|
{
|
|
2365
|
-
button:
|
|
2366
|
-
isOpen:
|
|
2367
|
-
closePopover:
|
|
2351
|
+
button: n,
|
|
2352
|
+
isOpen: i,
|
|
2353
|
+
closePopover: a,
|
|
2368
2354
|
panelPaddingSize: "none",
|
|
2369
2355
|
anchorPosition: "upRight",
|
|
2370
2356
|
children: /* @__PURE__ */ o(
|
|
2371
|
-
|
|
2357
|
+
hi,
|
|
2372
2358
|
{
|
|
2373
|
-
|
|
2374
|
-
|
|
2359
|
+
playerStore: t,
|
|
2360
|
+
playQueueStore: e,
|
|
2361
|
+
closePopover: a
|
|
2375
2362
|
}
|
|
2376
2363
|
)
|
|
2377
2364
|
}
|
|
2378
2365
|
)
|
|
2379
|
-
),
|
|
2380
|
-
({
|
|
2381
|
-
const [
|
|
2366
|
+
), pi = me(
|
|
2367
|
+
({ playerStore: t, playQueueStore: e }) => {
|
|
2368
|
+
const [n, i] = q(!1);
|
|
2382
2369
|
return /* @__PURE__ */ o(
|
|
2383
|
-
|
|
2370
|
+
vi,
|
|
2384
2371
|
{
|
|
2385
|
-
|
|
2372
|
+
playerStore: t,
|
|
2373
|
+
playQueueStore: e,
|
|
2386
2374
|
button: /* @__PURE__ */ o(
|
|
2387
|
-
|
|
2375
|
+
H,
|
|
2388
2376
|
{
|
|
2389
2377
|
title: "More options",
|
|
2390
2378
|
"aria-label": "More options",
|
|
2391
|
-
iconType:
|
|
2379
|
+
iconType: qt,
|
|
2392
2380
|
size: "s",
|
|
2393
2381
|
iconSize: "l",
|
|
2394
|
-
onClick: () =>
|
|
2382
|
+
onClick: () => i(!n)
|
|
2395
2383
|
}
|
|
2396
2384
|
),
|
|
2397
|
-
isOpen:
|
|
2398
|
-
closePopover: () =>
|
|
2385
|
+
isOpen: n,
|
|
2386
|
+
closePopover: () => i(!1)
|
|
2399
2387
|
}
|
|
2400
2388
|
);
|
|
2401
2389
|
}
|
|
2402
|
-
),
|
|
2390
|
+
), yi = me(
|
|
2403
2391
|
({
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2392
|
+
playerStore: t,
|
|
2393
|
+
playQueueStore: e,
|
|
2394
|
+
onClickPlayQueueButton: n
|
|
2395
|
+
}) => /* @__PURE__ */ j(
|
|
2396
|
+
se,
|
|
2408
2397
|
{
|
|
2409
2398
|
responsive: !1,
|
|
2410
2399
|
gutterSize: "s",
|
|
2411
2400
|
justifyContent: "flexEnd",
|
|
2412
2401
|
alignItems: "center",
|
|
2413
2402
|
children: [
|
|
2414
|
-
/* @__PURE__ */ o(
|
|
2415
|
-
|
|
2416
|
-
|
|
2403
|
+
/* @__PURE__ */ o(fi, { playerStore: t }),
|
|
2404
|
+
n && /* @__PURE__ */ o(
|
|
2405
|
+
mi,
|
|
2417
2406
|
{
|
|
2418
|
-
onClickPlayQueueButton:
|
|
2407
|
+
onClickPlayQueueButton: n
|
|
2419
2408
|
}
|
|
2420
2409
|
),
|
|
2421
|
-
/* @__PURE__ */ o(
|
|
2410
|
+
/* @__PURE__ */ o(
|
|
2411
|
+
pi,
|
|
2412
|
+
{
|
|
2413
|
+
playerStore: t,
|
|
2414
|
+
playQueueStore: e
|
|
2415
|
+
}
|
|
2416
|
+
)
|
|
2422
2417
|
]
|
|
2423
2418
|
}
|
|
2424
2419
|
)
|
|
2425
|
-
),
|
|
2420
|
+
), gi = N(
|
|
2426
2421
|
({ playerStore: t, playQueueStore: e }) => {
|
|
2427
|
-
const n =
|
|
2428
|
-
(
|
|
2429
|
-
const h = Number(
|
|
2422
|
+
const n = ne(), i = D(
|
|
2423
|
+
(d) => {
|
|
2424
|
+
const h = Number(d.currentTarget.value) / 100;
|
|
2430
2425
|
t.setPercent(h);
|
|
2431
2426
|
},
|
|
2432
2427
|
[t]
|
|
2433
|
-
), a =
|
|
2434
|
-
(
|
|
2435
|
-
|
|
2428
|
+
), a = D(
|
|
2429
|
+
(d) => {
|
|
2430
|
+
d.button === 0 && t.setSeeking(!0);
|
|
2436
2431
|
},
|
|
2437
2432
|
[t]
|
|
2438
|
-
), l =
|
|
2439
|
-
async (
|
|
2440
|
-
if (
|
|
2441
|
-
const h = Number(
|
|
2433
|
+
), l = D(
|
|
2434
|
+
async (d) => {
|
|
2435
|
+
if (d.button === 0) {
|
|
2436
|
+
const h = Number(d.currentTarget.value) / 100;
|
|
2442
2437
|
t.setSeeking(!1);
|
|
2443
|
-
const
|
|
2444
|
-
|
|
2438
|
+
const m = await n.getDuration();
|
|
2439
|
+
m !== void 0 && await n.setCurrentTime(m * h);
|
|
2445
2440
|
}
|
|
2446
2441
|
},
|
|
2447
2442
|
[t, n]
|
|
2448
2443
|
);
|
|
2449
2444
|
return /* @__PURE__ */ o(
|
|
2450
|
-
|
|
2445
|
+
Ut,
|
|
2451
2446
|
{
|
|
2452
2447
|
min: 0,
|
|
2453
2448
|
max: 100,
|
|
@@ -2463,62 +2458,80 @@ const rr = Lt(void 0), ji = ({
|
|
|
2463
2458
|
}
|
|
2464
2459
|
);
|
|
2465
2460
|
}
|
|
2466
|
-
),
|
|
2461
|
+
), Fi = N(
|
|
2467
2462
|
({
|
|
2468
2463
|
playerStore: t,
|
|
2469
2464
|
playQueueStore: e,
|
|
2470
2465
|
onClickPlayQueueButton: n
|
|
2471
|
-
}) => /* @__PURE__ */ o(Qr, { paddingSize: "s", children: /* @__PURE__ */
|
|
2466
|
+
}) => /* @__PURE__ */ o(Qr, { paddingSize: "s", children: /* @__PURE__ */ j(se, { direction: "column", gutterSize: "none", children: [
|
|
2472
2467
|
/* @__PURE__ */ o(J, { children: /* @__PURE__ */ o(
|
|
2473
|
-
|
|
2468
|
+
gi,
|
|
2474
2469
|
{
|
|
2475
2470
|
playerStore: t,
|
|
2476
2471
|
playQueueStore: e
|
|
2477
2472
|
}
|
|
2478
2473
|
) }),
|
|
2479
|
-
/* @__PURE__ */ o(J, { children: /* @__PURE__ */
|
|
2474
|
+
/* @__PURE__ */ o(J, { children: /* @__PURE__ */ j(se, { responsive: !1, children: [
|
|
2480
2475
|
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
2481
|
-
|
|
2476
|
+
ci,
|
|
2482
2477
|
{
|
|
2483
2478
|
playQueueStore: e
|
|
2484
2479
|
}
|
|
2485
2480
|
) }),
|
|
2486
2481
|
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
2487
|
-
|
|
2482
|
+
li,
|
|
2488
2483
|
{
|
|
2489
2484
|
playerStore: t,
|
|
2490
2485
|
playQueueStore: e
|
|
2491
2486
|
}
|
|
2492
2487
|
) }),
|
|
2493
2488
|
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
2494
|
-
|
|
2489
|
+
yi,
|
|
2495
2490
|
{
|
|
2491
|
+
playerStore: t,
|
|
2496
2492
|
playQueueStore: e,
|
|
2497
2493
|
onClickPlayQueueButton: n
|
|
2498
2494
|
}
|
|
2499
2495
|
) })
|
|
2500
2496
|
] }) })
|
|
2501
2497
|
] }) })
|
|
2502
|
-
),
|
|
2498
|
+
), rr = 81, it = {
|
|
2503
2499
|
width: 400,
|
|
2504
2500
|
height: 225
|
|
2505
|
-
},
|
|
2501
|
+
}, ji = N(
|
|
2502
|
+
({ children: t }) => {
|
|
2503
|
+
const e = ai();
|
|
2504
|
+
return /* @__PURE__ */ j(
|
|
2505
|
+
en,
|
|
2506
|
+
{
|
|
2507
|
+
panelled: !0,
|
|
2508
|
+
style: {
|
|
2509
|
+
minBlockSize: `max(460px, 100vh - ${rr}px)`
|
|
2510
|
+
},
|
|
2511
|
+
children: [
|
|
2512
|
+
t,
|
|
2513
|
+
!e.isEmpty && /* @__PURE__ */ o(Wt, { style: { blockSize: it.height } })
|
|
2514
|
+
]
|
|
2515
|
+
}
|
|
2516
|
+
);
|
|
2517
|
+
}
|
|
2518
|
+
), Ni = N(
|
|
2506
2519
|
({ playerStore: t, playQueueStore: e }) => {
|
|
2507
|
-
const n =
|
|
2520
|
+
const n = ne(), i = D(async () => {
|
|
2508
2521
|
e.interacted && await n.play();
|
|
2509
|
-
}, [e, n]), a =
|
|
2522
|
+
}, [e, n]), a = D(async () => {
|
|
2510
2523
|
switch (e.repeat) {
|
|
2511
|
-
case
|
|
2524
|
+
case w.One:
|
|
2512
2525
|
await n.setCurrentTime(0);
|
|
2513
2526
|
break;
|
|
2514
|
-
case
|
|
2515
|
-
case
|
|
2527
|
+
case w.Off:
|
|
2528
|
+
case w.All:
|
|
2516
2529
|
if (e.isLastItem)
|
|
2517
2530
|
switch (e.repeat) {
|
|
2518
|
-
case
|
|
2531
|
+
case w.Off:
|
|
2519
2532
|
t.onEnded();
|
|
2520
2533
|
break;
|
|
2521
|
-
case
|
|
2534
|
+
case w.All:
|
|
2522
2535
|
e.hasMultipleItems ? await e.goToFirst() : await n.setCurrentTime(0);
|
|
2523
2536
|
break;
|
|
2524
2537
|
}
|
|
@@ -2526,7 +2539,7 @@ const rr = Lt(void 0), ji = ({
|
|
|
2526
2539
|
await e.next();
|
|
2527
2540
|
break;
|
|
2528
2541
|
}
|
|
2529
|
-
}, [e, t, n]), l =
|
|
2542
|
+
}, [e, t, n]), l = at(
|
|
2530
2543
|
() => ({
|
|
2531
2544
|
onLoaded: i,
|
|
2532
2545
|
onPlay: t.onPlay,
|
|
@@ -2542,54 +2555,41 @@ const rr = Lt(void 0), ji = ({
|
|
|
2542
2555
|
css: {
|
|
2543
2556
|
position: "fixed",
|
|
2544
2557
|
right: 0,
|
|
2545
|
-
bottom:
|
|
2546
|
-
width:
|
|
2547
|
-
height:
|
|
2558
|
+
bottom: rr,
|
|
2559
|
+
width: it.width,
|
|
2560
|
+
height: it.height,
|
|
2548
2561
|
zIndex: 998,
|
|
2549
2562
|
backgroundColor: "rgb(39, 39, 39)",
|
|
2550
2563
|
display: "flex",
|
|
2551
2564
|
flexDirection: "column"
|
|
2552
2565
|
},
|
|
2553
2566
|
children: /* @__PURE__ */ o("div", { css: { flexGrow: 1, backgroundColor: "black" }, children: e.currentItem && /* @__PURE__ */ o(
|
|
2554
|
-
|
|
2567
|
+
jr,
|
|
2555
2568
|
{
|
|
2556
2569
|
src: e.currentItem.url,
|
|
2557
|
-
options: l
|
|
2570
|
+
options: l,
|
|
2571
|
+
onControllerChange: t.onControllerChange
|
|
2558
2572
|
}
|
|
2559
2573
|
) })
|
|
2560
2574
|
}
|
|
2561
2575
|
);
|
|
2562
2576
|
}
|
|
2563
|
-
), Di = D(
|
|
2564
|
-
({ children: t }) => {
|
|
2565
|
-
const e = li();
|
|
2566
|
-
return /* @__PURE__ */ F(
|
|
2567
|
-
lt,
|
|
2568
|
-
{
|
|
2569
|
-
panelled: !0,
|
|
2570
|
-
style: {
|
|
2571
|
-
minBlockSize: `max(460px, 100vh - ${nr}px)`
|
|
2572
|
-
},
|
|
2573
|
-
children: [
|
|
2574
|
-
t,
|
|
2575
|
-
!e.isEmpty && /* @__PURE__ */ o(Ut, { style: { blockSize: ot.height } })
|
|
2576
|
-
]
|
|
2577
|
-
}
|
|
2578
|
-
);
|
|
2579
|
-
}
|
|
2580
2577
|
);
|
|
2581
|
-
class
|
|
2578
|
+
class bi {
|
|
2582
2579
|
constructor(e) {
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2580
|
+
B(this, "controller", Nr);
|
|
2581
|
+
B(this, "playing", !1);
|
|
2582
|
+
B(this, "percent", 0);
|
|
2583
|
+
B(this, "seeking", !1);
|
|
2586
2584
|
e.makeObservable(this, {
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2585
|
+
controller: Z,
|
|
2586
|
+
playing: Z,
|
|
2587
|
+
percent: Z,
|
|
2588
|
+
seeking: Z,
|
|
2590
2589
|
setPlaying: y,
|
|
2591
2590
|
setPercent: y,
|
|
2592
2591
|
setSeeking: y,
|
|
2592
|
+
onControllerChange: y.bound,
|
|
2593
2593
|
onPlay: y.bound,
|
|
2594
2594
|
onPause: y.bound,
|
|
2595
2595
|
onEnded: y.bound,
|
|
@@ -2605,6 +2605,9 @@ class Ei {
|
|
|
2605
2605
|
setSeeking(e) {
|
|
2606
2606
|
this.seeking = e;
|
|
2607
2607
|
}
|
|
2608
|
+
onControllerChange(e) {
|
|
2609
|
+
this.controller = e;
|
|
2610
|
+
}
|
|
2608
2611
|
onPlay() {
|
|
2609
2612
|
this.playing = !0;
|
|
2610
2613
|
}
|
|
@@ -2618,27 +2621,25 @@ class Ei {
|
|
|
2618
2621
|
e !== void 0 && (this.seeking || (this.percent = e));
|
|
2619
2622
|
}
|
|
2620
2623
|
}
|
|
2621
|
-
const
|
|
2624
|
+
const nr = zt(void 0), $i = ({
|
|
2622
2625
|
children: t
|
|
2623
2626
|
}) => {
|
|
2624
2627
|
const [e] = q(
|
|
2625
|
-
() => new
|
|
2628
|
+
() => new bi(new Ht())
|
|
2626
2629
|
);
|
|
2627
|
-
return /* @__PURE__ */ o(
|
|
2628
|
-
},
|
|
2630
|
+
return /* @__PURE__ */ o(nr.Provider, { value: e, children: t });
|
|
2631
|
+
}, Di = () => ot(nr);
|
|
2629
2632
|
export {
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
li as usePlayQueueStore,
|
|
2642
|
-
Li as usePlayerStore
|
|
2633
|
+
Fi as BottomBar,
|
|
2634
|
+
ji as MediaPlayerLayout,
|
|
2635
|
+
Ni as MiniPlayer,
|
|
2636
|
+
Ht as MobXObservableStateProvider,
|
|
2637
|
+
Ai as ObservableStateProvider,
|
|
2638
|
+
ki as PlayQueue,
|
|
2639
|
+
Mi as PlayQueueStoreProvider,
|
|
2640
|
+
$i as PlayerStoreProvider,
|
|
2641
|
+
w as RepeatMode,
|
|
2642
|
+
ai as usePlayQueueStore,
|
|
2643
|
+
Di as usePlayerStore
|
|
2643
2644
|
};
|
|
2644
2645
|
//# sourceMappingURL=index.es.js.map
|