@aigamo/hydrangean-diva 0.0.1-alpha.22 → 0.0.1-alpha.24
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/api/apis/MediaPlayerPlaylistsApi.d.ts +3 -3
- package/dist/api/models/HydrangeanDivaMediaPlayerContractsPlaylistsDtosListTracksResponseDto.d.ts +22 -0
- package/dist/api/models/HydrangeanDivaMediaPlayerContractsPlaylistsDtosTrackDto.d.ts +56 -0
- package/dist/api/models/index.d.ts +2 -0
- package/dist/features/common/stores/MobXObservableStateProvider.d.ts +1 -1
- package/dist/features/common/stores/ObservableStateProvider.d.ts +1 -1
- package/dist/features/media-player.play-queue/components/AddToSelectablePopover.d.ts +8 -0
- package/dist/features/media-player.play-queue/components/PlayQueue.d.ts +1 -1
- package/dist/features/media-player.play-queue/components/{PlayQueueStoreContext.d.ts → PlayQueueStoreProvider.d.ts} +0 -2
- package/dist/features/media-player.play-queue/components/PlayQueueTable.d.ts +1 -1
- package/dist/features/media-player.play-queue/components/index.d.ts +1 -1
- package/dist/features/media-player.play-queue/helpers/mediaPlayerPlaylistsApi.d.ts +2 -0
- package/dist/features/media-player.play-queue/index.d.ts +0 -1
- package/dist/features/media-player.play-queue/stores/PlayQueueItemStore.d.ts +4 -4
- package/dist/features/media-player.play-queue/stores/PlayQueueStore.d.ts +7 -7
- package/dist/features/media-player.play-queue.abstractions/contexts/PlayQueueStoreContext.d.ts +3 -0
- package/dist/features/media-player.play-queue.abstractions/contexts/index.d.ts +1 -0
- package/dist/features/media-player.play-queue.abstractions/index.d.ts +2 -0
- package/dist/features/{media-player.play-queue → media-player.play-queue.abstractions}/interfaces/IPlayQueueStore.d.ts +3 -1
- package/dist/features/media-player.player/components/MiniPlayer.d.ts +3 -5
- package/dist/features/media-player.player/components/PlayerStoreContext.d.ts +1 -1
- package/dist/features/media-player.player/components/bottom-bar/BottomBar.d.ts +10 -0
- package/dist/features/media-player.player/components/bottom-bar/BottomBarCenterControls.d.ts +9 -0
- package/dist/features/media-player.player/components/bottom-bar/BottomBarLeftControls.d.ts +9 -0
- package/dist/features/media-player.player/components/bottom-bar/BottomBarRightControls.d.ts +8 -0
- package/dist/features/media-player.player/components/bottom-bar/SeekBar.d.ts +9 -0
- package/dist/features/media-player.player/components/index.d.ts +1 -1
- package/dist/features/media-player.player/interfaces/IBottomBarStore.d.ts +27 -0
- package/dist/features/media-player.player/interfaces/IMiniPlayerStore.d.ts +11 -0
- package/dist/features/media-player.player/stores/BottomBarStore.d.ts +32 -0
- package/dist/features/media-player.player/stores/MiniPlayerStore.d.ts +18 -0
- package/dist/features/media-player.player/stores/PlayerStore.d.ts +1 -1
- package/dist/features/media-player.playlists/components/PlaylistTable.d.ts +9 -0
- package/dist/features/media-player.playlists/pages/PlaylistDetailsPage.d.ts +6 -2
- package/dist/features/media-player.playlists/stores/PlaylistItemStore.d.ts +20 -0
- package/dist/features/media-player.playlists/stores/PlaylistListStore.d.ts +1 -1
- package/dist/features/media-player.playlists/stores/PlaylistStore.d.ts +32 -0
- package/dist/index.cjs.js +8 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +1742 -1360
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
- package/dist/features/media-player.player/components/BottomBar.d.ts +0 -12
- package/dist/features/media-player.player/components/BottomBarCenterControls.d.ts +0 -11
- package/dist/features/media-player.player/components/BottomBarLeftControls.d.ts +0 -9
- package/dist/features/media-player.player/components/BottomBarRightControls.d.ts +0 -10
- package/dist/features/media-player.player/components/SeekBar.d.ts +0 -11
- package/dist/features/{media-player.play-queue → media-player.play-queue.abstractions}/interfaces/IPlayQueueItemStore.d.ts +1 -1
- package/dist/features/{media-player.play-queue → media-player.play-queue.abstractions}/interfaces/PlayQueueDto.d.ts +1 -1
- /package/dist/features/{media-player.play-queue → media-player.play-queue.abstractions}/interfaces/PlayQueueItemDto.d.ts +0 -0
- /package/dist/features/{media-player.play-queue → media-player.play-queue.abstractions}/interfaces/RepeatMode.d.ts +0 -0
- /package/dist/features/{media-player.play-queue → media-player.play-queue.abstractions}/interfaces/index.d.ts +0 -0
package/dist/index.es.js
CHANGED
|
@@ -1,127 +1,128 @@
|
|
|
1
|
-
import { makeObservable as
|
|
1
|
+
import { makeObservable as Nr, action as v, computed as _, observable as X, reaction as $r } from "mobx";
|
|
2
2
|
import * as te from "react";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { observer as
|
|
9
|
-
import { ReactSortable as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useRouter as
|
|
13
|
-
const
|
|
14
|
-
class
|
|
15
|
-
makeObservable(t,
|
|
16
|
-
return
|
|
3
|
+
import Lt, { createContext as Vt, useContext as ct, forwardRef as jr, useState as z, useEffect as Ut, memo as re, useCallback as $, useMemo as Ve, useLayoutEffect as zr } from "react";
|
|
4
|
+
import qr from "@emotion/cache";
|
|
5
|
+
import { EuiSelectable as Lr, EuiPopoverTitle as Vr, EuiPopoverFooter as Ur, EuiButton as Q, EuiPopover as xe, useGeneratedHtmlId as Yr, EuiModalHeaderTitle as Wr, EuiModalHeader as Hr, EuiForm as Gr, EuiFormRow as at, EuiFieldText as xt, EuiModalBody as Jr, EuiModalFooter as Qr, EuiButtonEmpty as Yt, EuiModal as Kr, useEuiTheme as Wt, EuiCheckbox as Ht, EuiTableHeaderCellCheckbox as Br, EuiTableHeader as Xr, EuiTableRowCell as st, EuiTableRowCellCheckbox as Zr, EuiLink as en, EuiTableRow as tn, EuiTable as rn, EuiButtonIcon as W, EuiIcon as Y, EuiContextMenu as ut, EuiTableHeaderCell as tt, EuiCodeBlock as nn, EuiFlyout as an, EuiFlexGroup as oe, EuiFlexItem as J, EuiSpacer as Gt, EuiEmptyPrompt as sn, EuiPageTemplate as dt, EuiRange as Jt, EuiBottomBar as on } from "@elastic/eui";
|
|
6
|
+
import { AddRegular as Te, PlayRegular as ln, DismissRegular as ft, MoreHorizontalFilled as Qt, ArrowUploadRegular as cn, ArrowDownloadRegular as un, WindowDevToolsRegular as dn, DeleteRegular as fn, ArrowShuffleFilled as pn, ArrowShuffleOffFilled as yn, PreviousFilled as hn, SkipBack10Regular as Kt, PauseFilled as mn, PlayFilled as vn, SkipForward30Regular as Bt, NextFilled as gn, ArrowRepeat1Filled as Pn, ArrowRepeatAllFilled as bn, ArrowRepeatAllOffFilled as wn, OpenRegular as Sn, Speaker2Regular as Xt, TopSpeedRegular as En, NavigationPlayRegular as Rn } from "@fluentui/react-icons";
|
|
7
|
+
import { useNostalgicDiva as le, findVideoService as Tn, NostalgicDivaProvider as Cn, NostalgicDiva as In, nullPlayerController as xn } from "@aigamo/nostalgic-diva";
|
|
8
|
+
import { observer as C } from "mobx-react-lite";
|
|
9
|
+
import { ReactSortable as On } from "react-sortablejs";
|
|
10
|
+
import _n from "ajv";
|
|
11
|
+
import { pull as Ot } from "lodash-es";
|
|
12
|
+
import { useRouter as kn } from "@tanstack/react-router";
|
|
13
|
+
const Zt = 81;
|
|
14
|
+
class er {
|
|
15
|
+
makeObservable(t, r) {
|
|
16
|
+
return Nr(t, r);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
class
|
|
20
|
-
makeObservable(t,
|
|
19
|
+
class Sa {
|
|
20
|
+
makeObservable(t, r) {
|
|
21
21
|
return t;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
24
|
+
const tr = Vt(void 0), rr = () => ct(tr);
|
|
25
|
+
var N = /* @__PURE__ */ ((e) => (e.Off = "Off", e.All = "All", e.One = "One", e))(N || {}), ze = { exports: {} }, Se = {};
|
|
26
|
+
var _t;
|
|
27
|
+
function An() {
|
|
28
|
+
if (_t) return Se;
|
|
29
|
+
_t = 1;
|
|
30
|
+
var e = Lt, t = /* @__PURE__ */ Symbol.for("react.element"), r = /* @__PURE__ */ Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
31
|
+
function c(f, p, m) {
|
|
32
|
+
var P, w = {}, q = null, F = null;
|
|
33
|
+
m !== void 0 && (q = "" + m), p.key !== void 0 && (q = "" + p.key), p.ref !== void 0 && (F = p.ref);
|
|
34
|
+
for (P in p) i.call(p, P) && !o.hasOwnProperty(P) && (w[P] = p[P]);
|
|
35
|
+
if (f && f.defaultProps) for (P in p = f.defaultProps, p) w[P] === void 0 && (w[P] = p[P]);
|
|
36
|
+
return { $$typeof: t, type: f, key: q, ref: F, props: w, _owner: a.current };
|
|
37
|
+
}
|
|
38
|
+
return Se.Fragment = r, Se.jsx = c, Se.jsxs = c, Se;
|
|
38
39
|
}
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
function
|
|
42
|
-
return
|
|
43
|
-
var e =
|
|
44
|
-
function
|
|
45
|
-
if (
|
|
40
|
+
var Ee = {};
|
|
41
|
+
var kt;
|
|
42
|
+
function Dn() {
|
|
43
|
+
return kt || (kt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
44
|
+
var e = Lt, t = /* @__PURE__ */ Symbol.for("react.element"), r = /* @__PURE__ */ Symbol.for("react.portal"), i = /* @__PURE__ */ Symbol.for("react.fragment"), a = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), c = /* @__PURE__ */ Symbol.for("react.provider"), f = /* @__PURE__ */ Symbol.for("react.context"), p = /* @__PURE__ */ Symbol.for("react.forward_ref"), m = /* @__PURE__ */ Symbol.for("react.suspense"), P = /* @__PURE__ */ Symbol.for("react.suspense_list"), w = /* @__PURE__ */ Symbol.for("react.memo"), q = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.offscreen"), k = Symbol.iterator, H = "@@iterator";
|
|
45
|
+
function Z(n) {
|
|
46
|
+
if (n === null || typeof n != "object")
|
|
46
47
|
return null;
|
|
47
|
-
var
|
|
48
|
-
return typeof
|
|
48
|
+
var l = k && n[k] || n[H];
|
|
49
|
+
return typeof l == "function" ? l : null;
|
|
49
50
|
}
|
|
50
|
-
var
|
|
51
|
-
function
|
|
51
|
+
var L = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
+
function I(n) {
|
|
52
53
|
{
|
|
53
|
-
for (var
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), h = 1; h < l; h++)
|
|
55
|
+
d[h - 1] = arguments[h];
|
|
56
|
+
A("error", n, d);
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
+
function A(n, l, d) {
|
|
59
60
|
{
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
var
|
|
61
|
+
var h = L.ReactDebugCurrentFrame, S = h.getStackAddendum();
|
|
62
|
+
S !== "" && (l += "%s", d = d.concat([S]));
|
|
63
|
+
var T = d.map(function(b) {
|
|
63
64
|
return String(b);
|
|
64
65
|
});
|
|
65
|
-
|
|
66
|
+
T.unshift("Warning: " + l), Function.prototype.apply.call(console[n], console, T);
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
|
-
var
|
|
69
|
-
|
|
70
|
-
function
|
|
71
|
-
return !!(typeof
|
|
69
|
+
var x = !1, u = !1, V = !1, ye = !1, Oe = !1, _e;
|
|
70
|
+
_e = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
71
|
+
function We(n) {
|
|
72
|
+
return !!(typeof n == "string" || typeof n == "function" || n === i || n === o || Oe || n === a || n === m || n === P || ye || n === F || x || u || V || typeof n == "object" && n !== null && (n.$$typeof === q || n.$$typeof === w || n.$$typeof === c || n.$$typeof === f || n.$$typeof === p || // This needs to include all possible module reference object
|
|
72
73
|
// types supported by any Flight configuration anywhere since
|
|
73
74
|
// we don't know which Flight build this will end up being used
|
|
74
75
|
// with.
|
|
75
|
-
|
|
76
|
+
n.$$typeof === _e || n.getModuleId !== void 0));
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
-
var
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
81
|
-
var
|
|
82
|
-
return
|
|
78
|
+
function He(n, l, d) {
|
|
79
|
+
var h = n.displayName;
|
|
80
|
+
if (h)
|
|
81
|
+
return h;
|
|
82
|
+
var S = l.displayName || l.name || "";
|
|
83
|
+
return S !== "" ? d + "(" + S + ")" : d;
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
85
|
+
function ke(n) {
|
|
86
|
+
return n.displayName || "Context";
|
|
86
87
|
}
|
|
87
|
-
function K(
|
|
88
|
-
if (
|
|
88
|
+
function K(n) {
|
|
89
|
+
if (n == null)
|
|
89
90
|
return null;
|
|
90
|
-
if (typeof
|
|
91
|
-
return
|
|
92
|
-
if (typeof
|
|
93
|
-
return
|
|
94
|
-
switch (
|
|
91
|
+
if (typeof n.tag == "number" && I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
92
|
+
return n.displayName || n.name || null;
|
|
93
|
+
if (typeof n == "string")
|
|
94
|
+
return n;
|
|
95
|
+
switch (n) {
|
|
95
96
|
case i:
|
|
96
97
|
return "Fragment";
|
|
97
|
-
case
|
|
98
|
+
case r:
|
|
98
99
|
return "Portal";
|
|
99
|
-
case
|
|
100
|
+
case o:
|
|
100
101
|
return "Profiler";
|
|
101
102
|
case a:
|
|
102
103
|
return "StrictMode";
|
|
103
|
-
case
|
|
104
|
+
case m:
|
|
104
105
|
return "Suspense";
|
|
105
|
-
case
|
|
106
|
+
case P:
|
|
106
107
|
return "SuspenseList";
|
|
107
108
|
}
|
|
108
|
-
if (typeof
|
|
109
|
-
switch (
|
|
110
|
-
case
|
|
111
|
-
var
|
|
112
|
-
return
|
|
113
|
-
case
|
|
114
|
-
var
|
|
115
|
-
return
|
|
116
|
-
case
|
|
117
|
-
return
|
|
118
|
-
case
|
|
119
|
-
var
|
|
120
|
-
return
|
|
121
|
-
case
|
|
122
|
-
var
|
|
109
|
+
if (typeof n == "object")
|
|
110
|
+
switch (n.$$typeof) {
|
|
111
|
+
case f:
|
|
112
|
+
var l = n;
|
|
113
|
+
return ke(l) + ".Consumer";
|
|
114
|
+
case c:
|
|
115
|
+
var d = n;
|
|
116
|
+
return ke(d._context) + ".Provider";
|
|
117
|
+
case p:
|
|
118
|
+
return He(n, n.render, "ForwardRef");
|
|
119
|
+
case w:
|
|
120
|
+
var h = n.displayName || null;
|
|
121
|
+
return h !== null ? h : K(n.type) || "Memo";
|
|
122
|
+
case q: {
|
|
123
|
+
var S = n, T = S._payload, b = S._init;
|
|
123
124
|
try {
|
|
124
|
-
return K(b(
|
|
125
|
+
return K(b(T));
|
|
125
126
|
} catch {
|
|
126
127
|
return null;
|
|
127
128
|
}
|
|
@@ -129,103 +130,103 @@ function xn() {
|
|
|
129
130
|
}
|
|
130
131
|
return null;
|
|
131
132
|
}
|
|
132
|
-
var ee = Object.assign,
|
|
133
|
-
function
|
|
133
|
+
var ee = Object.assign, ne = 0, Ae, De, he, Me, me, Fe, Ne;
|
|
134
|
+
function $e() {
|
|
134
135
|
}
|
|
135
|
-
|
|
136
|
-
function
|
|
136
|
+
$e.__reactDisabledLog = !0;
|
|
137
|
+
function Ge() {
|
|
137
138
|
{
|
|
138
|
-
if (
|
|
139
|
-
|
|
140
|
-
var
|
|
139
|
+
if (ne === 0) {
|
|
140
|
+
Ae = console.log, De = console.info, he = console.warn, Me = console.error, me = console.group, Fe = console.groupCollapsed, Ne = console.groupEnd;
|
|
141
|
+
var n = {
|
|
141
142
|
configurable: !0,
|
|
142
143
|
enumerable: !0,
|
|
143
|
-
value:
|
|
144
|
+
value: $e,
|
|
144
145
|
writable: !0
|
|
145
146
|
};
|
|
146
147
|
Object.defineProperties(console, {
|
|
147
|
-
info:
|
|
148
|
-
log:
|
|
149
|
-
warn:
|
|
150
|
-
error:
|
|
151
|
-
group:
|
|
152
|
-
groupCollapsed:
|
|
153
|
-
groupEnd:
|
|
148
|
+
info: n,
|
|
149
|
+
log: n,
|
|
150
|
+
warn: n,
|
|
151
|
+
error: n,
|
|
152
|
+
group: n,
|
|
153
|
+
groupCollapsed: n,
|
|
154
|
+
groupEnd: n
|
|
154
155
|
});
|
|
155
156
|
}
|
|
156
|
-
|
|
157
|
+
ne++;
|
|
157
158
|
}
|
|
158
159
|
}
|
|
159
|
-
function
|
|
160
|
+
function Je() {
|
|
160
161
|
{
|
|
161
|
-
if (
|
|
162
|
-
var
|
|
162
|
+
if (ne--, ne === 0) {
|
|
163
|
+
var n = {
|
|
163
164
|
configurable: !0,
|
|
164
165
|
enumerable: !0,
|
|
165
166
|
writable: !0
|
|
166
167
|
};
|
|
167
168
|
Object.defineProperties(console, {
|
|
168
|
-
log: ee({},
|
|
169
|
-
value:
|
|
169
|
+
log: ee({}, n, {
|
|
170
|
+
value: Ae
|
|
170
171
|
}),
|
|
171
|
-
info: ee({},
|
|
172
|
-
value:
|
|
172
|
+
info: ee({}, n, {
|
|
173
|
+
value: De
|
|
173
174
|
}),
|
|
174
|
-
warn: ee({},
|
|
175
|
+
warn: ee({}, n, {
|
|
175
176
|
value: he
|
|
176
177
|
}),
|
|
177
|
-
error: ee({},
|
|
178
|
-
value:
|
|
178
|
+
error: ee({}, n, {
|
|
179
|
+
value: Me
|
|
179
180
|
}),
|
|
180
|
-
group: ee({},
|
|
181
|
-
value:
|
|
181
|
+
group: ee({}, n, {
|
|
182
|
+
value: me
|
|
182
183
|
}),
|
|
183
|
-
groupCollapsed: ee({},
|
|
184
|
-
value:
|
|
184
|
+
groupCollapsed: ee({}, n, {
|
|
185
|
+
value: Fe
|
|
185
186
|
}),
|
|
186
|
-
groupEnd: ee({},
|
|
187
|
-
value:
|
|
187
|
+
groupEnd: ee({}, n, {
|
|
188
|
+
value: Ne
|
|
188
189
|
})
|
|
189
190
|
});
|
|
190
191
|
}
|
|
191
|
-
|
|
192
|
+
ne < 0 && I("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
|
-
var
|
|
195
|
-
function
|
|
195
|
+
var ve = L.ReactCurrentDispatcher, ge;
|
|
196
|
+
function ce(n, l, d) {
|
|
196
197
|
{
|
|
197
|
-
if (
|
|
198
|
+
if (ge === void 0)
|
|
198
199
|
try {
|
|
199
200
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var
|
|
202
|
-
|
|
201
|
+
} catch (S) {
|
|
202
|
+
var h = S.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
+
ge = h && h[1] || "";
|
|
203
204
|
}
|
|
204
205
|
return `
|
|
205
|
-
` +
|
|
206
|
+
` + ge + n;
|
|
206
207
|
}
|
|
207
208
|
}
|
|
208
|
-
var
|
|
209
|
+
var Pe = !1, ue;
|
|
209
210
|
{
|
|
210
|
-
var
|
|
211
|
-
|
|
211
|
+
var Qe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
+
ue = new Qe();
|
|
212
213
|
}
|
|
213
|
-
function
|
|
214
|
-
if (!
|
|
214
|
+
function y(n, l) {
|
|
215
|
+
if (!n || Pe)
|
|
215
216
|
return "";
|
|
216
217
|
{
|
|
217
|
-
var
|
|
218
|
-
if (
|
|
219
|
-
return
|
|
218
|
+
var d = ue.get(n);
|
|
219
|
+
if (d !== void 0)
|
|
220
|
+
return d;
|
|
220
221
|
}
|
|
221
|
-
var
|
|
222
|
-
|
|
223
|
-
var
|
|
222
|
+
var h;
|
|
223
|
+
Pe = !0;
|
|
224
|
+
var S = Error.prepareStackTrace;
|
|
224
225
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
226
|
+
var T;
|
|
227
|
+
T = ve.current, ve.current = null, Ge();
|
|
227
228
|
try {
|
|
228
|
-
if (
|
|
229
|
+
if (l) {
|
|
229
230
|
var b = function() {
|
|
230
231
|
throw Error();
|
|
231
232
|
};
|
|
@@ -236,196 +237,196 @@ function xn() {
|
|
|
236
237
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
238
|
try {
|
|
238
239
|
Reflect.construct(b, []);
|
|
239
|
-
} catch (
|
|
240
|
-
|
|
240
|
+
} catch (U) {
|
|
241
|
+
h = U;
|
|
241
242
|
}
|
|
242
|
-
Reflect.construct(
|
|
243
|
+
Reflect.construct(n, [], b);
|
|
243
244
|
} else {
|
|
244
245
|
try {
|
|
245
246
|
b.call();
|
|
246
|
-
} catch (
|
|
247
|
-
|
|
247
|
+
} catch (U) {
|
|
248
|
+
h = U;
|
|
248
249
|
}
|
|
249
|
-
|
|
250
|
+
n.call(b.prototype);
|
|
250
251
|
}
|
|
251
252
|
} else {
|
|
252
253
|
try {
|
|
253
254
|
throw Error();
|
|
254
|
-
} catch (
|
|
255
|
-
|
|
255
|
+
} catch (U) {
|
|
256
|
+
h = U;
|
|
256
257
|
}
|
|
257
|
-
|
|
258
|
+
n();
|
|
258
259
|
}
|
|
259
|
-
} catch (
|
|
260
|
-
if (
|
|
261
|
-
for (var g =
|
|
262
|
-
`),
|
|
263
|
-
`),
|
|
264
|
-
|
|
265
|
-
for (;
|
|
266
|
-
if (g[
|
|
267
|
-
if (
|
|
260
|
+
} catch (U) {
|
|
261
|
+
if (U && h && typeof U.stack == "string") {
|
|
262
|
+
for (var g = U.stack.split(`
|
|
263
|
+
`), j = h.stack.split(`
|
|
264
|
+
`), O = g.length - 1, D = j.length - 1; O >= 1 && D >= 0 && g[O] !== j[D]; )
|
|
265
|
+
D--;
|
|
266
|
+
for (; O >= 1 && D >= 0; O--, D--)
|
|
267
|
+
if (g[O] !== j[D]) {
|
|
268
|
+
if (O !== 1 || D !== 1)
|
|
268
269
|
do
|
|
269
|
-
if (
|
|
270
|
+
if (O--, D--, D < 0 || g[O] !== j[D]) {
|
|
270
271
|
var G = `
|
|
271
|
-
` + g[
|
|
272
|
-
return
|
|
272
|
+
` + g[O].replace(" at new ", " at ");
|
|
273
|
+
return n.displayName && G.includes("<anonymous>") && (G = G.replace("<anonymous>", n.displayName)), typeof n == "function" && ue.set(n, G), G;
|
|
273
274
|
}
|
|
274
|
-
while (
|
|
275
|
+
while (O >= 1 && D >= 0);
|
|
275
276
|
break;
|
|
276
277
|
}
|
|
277
278
|
}
|
|
278
279
|
} finally {
|
|
279
|
-
|
|
280
|
+
Pe = !1, ve.current = T, Je(), Error.prepareStackTrace = S;
|
|
280
281
|
}
|
|
281
|
-
var
|
|
282
|
-
return typeof
|
|
282
|
+
var pe = n ? n.displayName || n.name : "", ae = pe ? ce(pe) : "";
|
|
283
|
+
return typeof n == "function" && ue.set(n, ae), ae;
|
|
283
284
|
}
|
|
284
|
-
function be(
|
|
285
|
-
return
|
|
285
|
+
function be(n, l, d) {
|
|
286
|
+
return y(n, !1);
|
|
286
287
|
}
|
|
287
|
-
function
|
|
288
|
-
var
|
|
289
|
-
return !!(
|
|
288
|
+
function de(n) {
|
|
289
|
+
var l = n.prototype;
|
|
290
|
+
return !!(l && l.isReactComponent);
|
|
290
291
|
}
|
|
291
|
-
function
|
|
292
|
-
if (
|
|
292
|
+
function ie(n, l, d) {
|
|
293
|
+
if (n == null)
|
|
293
294
|
return "";
|
|
294
|
-
if (typeof
|
|
295
|
-
return
|
|
296
|
-
if (typeof
|
|
297
|
-
return
|
|
298
|
-
switch (
|
|
299
|
-
case
|
|
300
|
-
return
|
|
301
|
-
case
|
|
302
|
-
return
|
|
295
|
+
if (typeof n == "function")
|
|
296
|
+
return y(n, de(n));
|
|
297
|
+
if (typeof n == "string")
|
|
298
|
+
return ce(n);
|
|
299
|
+
switch (n) {
|
|
300
|
+
case m:
|
|
301
|
+
return ce("Suspense");
|
|
302
|
+
case P:
|
|
303
|
+
return ce("SuspenseList");
|
|
303
304
|
}
|
|
304
|
-
if (typeof
|
|
305
|
-
switch (
|
|
306
|
-
case
|
|
307
|
-
return be(
|
|
308
|
-
case
|
|
309
|
-
return
|
|
310
|
-
case
|
|
311
|
-
var
|
|
305
|
+
if (typeof n == "object")
|
|
306
|
+
switch (n.$$typeof) {
|
|
307
|
+
case p:
|
|
308
|
+
return be(n.render);
|
|
309
|
+
case w:
|
|
310
|
+
return ie(n.type, l, d);
|
|
311
|
+
case q: {
|
|
312
|
+
var h = n, S = h._payload, T = h._init;
|
|
312
313
|
try {
|
|
313
|
-
return
|
|
314
|
+
return ie(T(S), l, d);
|
|
314
315
|
} catch {
|
|
315
316
|
}
|
|
316
317
|
}
|
|
317
318
|
}
|
|
318
319
|
return "";
|
|
319
320
|
}
|
|
320
|
-
var
|
|
321
|
-
function
|
|
322
|
-
if (
|
|
323
|
-
var
|
|
324
|
-
|
|
321
|
+
var we = Object.prototype.hasOwnProperty, yt = {}, ht = L.ReactDebugCurrentFrame;
|
|
322
|
+
function je(n) {
|
|
323
|
+
if (n) {
|
|
324
|
+
var l = n._owner, d = ie(n.type, n._source, l ? l.type : null);
|
|
325
|
+
ht.setExtraStackFrame(d);
|
|
325
326
|
} else
|
|
326
|
-
|
|
327
|
+
ht.setExtraStackFrame(null);
|
|
327
328
|
}
|
|
328
|
-
function
|
|
329
|
+
function yr(n, l, d, h, S) {
|
|
329
330
|
{
|
|
330
|
-
var
|
|
331
|
-
for (var b in
|
|
332
|
-
if (
|
|
331
|
+
var T = Function.call.bind(we);
|
|
332
|
+
for (var b in n)
|
|
333
|
+
if (T(n, b)) {
|
|
333
334
|
var g = void 0;
|
|
334
335
|
try {
|
|
335
|
-
if (typeof
|
|
336
|
-
var
|
|
337
|
-
throw
|
|
336
|
+
if (typeof n[b] != "function") {
|
|
337
|
+
var j = Error((h || "React class") + ": " + d + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
|
+
throw j.name = "Invariant Violation", j;
|
|
338
339
|
}
|
|
339
|
-
g =
|
|
340
|
-
} catch (
|
|
341
|
-
g =
|
|
340
|
+
g = n[b](l, b, h, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
+
} catch (O) {
|
|
342
|
+
g = O;
|
|
342
343
|
}
|
|
343
|
-
g && !(g instanceof Error) && (
|
|
344
|
+
g && !(g instanceof Error) && (je(S), I("%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).", h || "React class", d, b, typeof g), je(null)), g instanceof Error && !(g.message in yt) && (yt[g.message] = !0, je(S), I("Failed %s type: %s", d, g.message), je(null));
|
|
344
345
|
}
|
|
345
346
|
}
|
|
346
347
|
}
|
|
347
|
-
var
|
|
348
|
-
function
|
|
349
|
-
return
|
|
348
|
+
var hr = Array.isArray;
|
|
349
|
+
function Ke(n) {
|
|
350
|
+
return hr(n);
|
|
350
351
|
}
|
|
351
|
-
function
|
|
352
|
+
function mr(n) {
|
|
352
353
|
{
|
|
353
|
-
var
|
|
354
|
-
return
|
|
354
|
+
var l = typeof Symbol == "function" && Symbol.toStringTag, d = l && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
355
|
+
return d;
|
|
355
356
|
}
|
|
356
357
|
}
|
|
357
|
-
function
|
|
358
|
+
function vr(n) {
|
|
358
359
|
try {
|
|
359
|
-
return mt(
|
|
360
|
+
return mt(n), !1;
|
|
360
361
|
} catch {
|
|
361
362
|
return !0;
|
|
362
363
|
}
|
|
363
364
|
}
|
|
364
|
-
function mt(
|
|
365
|
-
return "" +
|
|
365
|
+
function mt(n) {
|
|
366
|
+
return "" + n;
|
|
366
367
|
}
|
|
367
|
-
function
|
|
368
|
-
if (
|
|
369
|
-
return
|
|
368
|
+
function vt(n) {
|
|
369
|
+
if (vr(n))
|
|
370
|
+
return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", mr(n)), mt(n);
|
|
370
371
|
}
|
|
371
|
-
var
|
|
372
|
+
var gt = L.ReactCurrentOwner, gr = {
|
|
372
373
|
key: !0,
|
|
373
374
|
ref: !0,
|
|
374
375
|
__self: !0,
|
|
375
376
|
__source: !0
|
|
376
|
-
},
|
|
377
|
-
function
|
|
378
|
-
if (
|
|
379
|
-
var
|
|
380
|
-
if (
|
|
377
|
+
}, Pt, bt;
|
|
378
|
+
function Pr(n) {
|
|
379
|
+
if (we.call(n, "ref")) {
|
|
380
|
+
var l = Object.getOwnPropertyDescriptor(n, "ref").get;
|
|
381
|
+
if (l && l.isReactWarning)
|
|
381
382
|
return !1;
|
|
382
383
|
}
|
|
383
|
-
return
|
|
384
|
+
return n.ref !== void 0;
|
|
384
385
|
}
|
|
385
|
-
function
|
|
386
|
-
if (
|
|
387
|
-
var
|
|
388
|
-
if (
|
|
386
|
+
function br(n) {
|
|
387
|
+
if (we.call(n, "key")) {
|
|
388
|
+
var l = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
389
|
+
if (l && l.isReactWarning)
|
|
389
390
|
return !1;
|
|
390
391
|
}
|
|
391
|
-
return
|
|
392
|
+
return n.key !== void 0;
|
|
392
393
|
}
|
|
393
|
-
function
|
|
394
|
-
typeof
|
|
394
|
+
function wr(n, l) {
|
|
395
|
+
typeof n.ref == "string" && gt.current;
|
|
395
396
|
}
|
|
396
|
-
function
|
|
397
|
+
function Sr(n, l) {
|
|
397
398
|
{
|
|
398
|
-
var
|
|
399
|
-
|
|
399
|
+
var d = function() {
|
|
400
|
+
Pt || (Pt = !0, I("%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)", l));
|
|
400
401
|
};
|
|
401
|
-
|
|
402
|
-
get:
|
|
402
|
+
d.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
403
|
+
get: d,
|
|
403
404
|
configurable: !0
|
|
404
405
|
});
|
|
405
406
|
}
|
|
406
407
|
}
|
|
407
|
-
function
|
|
408
|
+
function Er(n, l) {
|
|
408
409
|
{
|
|
409
|
-
var
|
|
410
|
-
|
|
410
|
+
var d = function() {
|
|
411
|
+
bt || (bt = !0, I("%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)", l));
|
|
411
412
|
};
|
|
412
|
-
|
|
413
|
-
get:
|
|
413
|
+
d.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
414
|
+
get: d,
|
|
414
415
|
configurable: !0
|
|
415
416
|
});
|
|
416
417
|
}
|
|
417
418
|
}
|
|
418
|
-
var
|
|
419
|
+
var Rr = function(n, l, d, h, S, T, b) {
|
|
419
420
|
var g = {
|
|
420
421
|
// This tag allows us to uniquely identify this as a React Element
|
|
421
422
|
$$typeof: t,
|
|
422
423
|
// Built-in properties that belong on the element
|
|
423
|
-
type:
|
|
424
|
-
key:
|
|
425
|
-
ref:
|
|
424
|
+
type: n,
|
|
425
|
+
key: l,
|
|
426
|
+
ref: d,
|
|
426
427
|
props: b,
|
|
427
428
|
// Record the component responsible for creating this element.
|
|
428
|
-
_owner:
|
|
429
|
+
_owner: T
|
|
429
430
|
};
|
|
430
431
|
return g._store = {}, Object.defineProperty(g._store, "validated", {
|
|
431
432
|
configurable: !1,
|
|
@@ -436,361 +437,361 @@ function xn() {
|
|
|
436
437
|
configurable: !1,
|
|
437
438
|
enumerable: !1,
|
|
438
439
|
writable: !1,
|
|
439
|
-
value:
|
|
440
|
+
value: h
|
|
440
441
|
}), Object.defineProperty(g, "_source", {
|
|
441
442
|
configurable: !1,
|
|
442
443
|
enumerable: !1,
|
|
443
444
|
writable: !1,
|
|
444
|
-
value:
|
|
445
|
+
value: S
|
|
445
446
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
446
447
|
};
|
|
447
|
-
function
|
|
448
|
+
function Tr(n, l, d, h, S) {
|
|
448
449
|
{
|
|
449
|
-
var
|
|
450
|
-
|
|
451
|
-
for (
|
|
452
|
-
|
|
453
|
-
if (
|
|
454
|
-
var
|
|
455
|
-
for (
|
|
456
|
-
b[
|
|
450
|
+
var T, b = {}, g = null, j = null;
|
|
451
|
+
d !== void 0 && (vt(d), g = "" + d), br(l) && (vt(l.key), g = "" + l.key), Pr(l) && (j = l.ref, wr(l, S));
|
|
452
|
+
for (T in l)
|
|
453
|
+
we.call(l, T) && !gr.hasOwnProperty(T) && (b[T] = l[T]);
|
|
454
|
+
if (n && n.defaultProps) {
|
|
455
|
+
var O = n.defaultProps;
|
|
456
|
+
for (T in O)
|
|
457
|
+
b[T] === void 0 && (b[T] = O[T]);
|
|
457
458
|
}
|
|
458
|
-
if (g ||
|
|
459
|
-
var
|
|
460
|
-
g &&
|
|
459
|
+
if (g || j) {
|
|
460
|
+
var D = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
461
|
+
g && Sr(b, D), j && Er(b, D);
|
|
461
462
|
}
|
|
462
|
-
return
|
|
463
|
+
return Rr(n, g, j, S, h, gt.current, b);
|
|
463
464
|
}
|
|
464
465
|
}
|
|
465
|
-
var
|
|
466
|
-
function
|
|
467
|
-
if (
|
|
468
|
-
var
|
|
469
|
-
|
|
466
|
+
var Be = L.ReactCurrentOwner, wt = L.ReactDebugCurrentFrame;
|
|
467
|
+
function fe(n) {
|
|
468
|
+
if (n) {
|
|
469
|
+
var l = n._owner, d = ie(n.type, n._source, l ? l.type : null);
|
|
470
|
+
wt.setExtraStackFrame(d);
|
|
470
471
|
} else
|
|
471
|
-
|
|
472
|
+
wt.setExtraStackFrame(null);
|
|
472
473
|
}
|
|
473
|
-
var
|
|
474
|
-
|
|
475
|
-
function
|
|
476
|
-
return typeof
|
|
474
|
+
var Xe;
|
|
475
|
+
Xe = !1;
|
|
476
|
+
function Ze(n) {
|
|
477
|
+
return typeof n == "object" && n !== null && n.$$typeof === t;
|
|
477
478
|
}
|
|
478
|
-
function
|
|
479
|
+
function St() {
|
|
479
480
|
{
|
|
480
|
-
if (
|
|
481
|
-
var
|
|
482
|
-
if (
|
|
481
|
+
if (Be.current) {
|
|
482
|
+
var n = K(Be.current.type);
|
|
483
|
+
if (n)
|
|
483
484
|
return `
|
|
484
485
|
|
|
485
|
-
Check the render method of \`` +
|
|
486
|
+
Check the render method of \`` + n + "`.";
|
|
486
487
|
}
|
|
487
488
|
return "";
|
|
488
489
|
}
|
|
489
490
|
}
|
|
490
|
-
function
|
|
491
|
+
function Cr(n) {
|
|
491
492
|
return "";
|
|
492
493
|
}
|
|
493
|
-
var
|
|
494
|
-
function
|
|
494
|
+
var Et = {};
|
|
495
|
+
function Ir(n) {
|
|
495
496
|
{
|
|
496
|
-
var
|
|
497
|
-
if (!
|
|
498
|
-
var
|
|
499
|
-
|
|
497
|
+
var l = St();
|
|
498
|
+
if (!l) {
|
|
499
|
+
var d = typeof n == "string" ? n : n.displayName || n.name;
|
|
500
|
+
d && (l = `
|
|
500
501
|
|
|
501
|
-
Check the top-level render call using <` +
|
|
502
|
+
Check the top-level render call using <` + d + ">.");
|
|
502
503
|
}
|
|
503
|
-
return
|
|
504
|
+
return l;
|
|
504
505
|
}
|
|
505
506
|
}
|
|
506
|
-
function
|
|
507
|
+
function Rt(n, l) {
|
|
507
508
|
{
|
|
508
|
-
if (!
|
|
509
|
+
if (!n._store || n._store.validated || n.key != null)
|
|
509
510
|
return;
|
|
510
|
-
|
|
511
|
-
var
|
|
512
|
-
if (
|
|
511
|
+
n._store.validated = !0;
|
|
512
|
+
var d = Ir(l);
|
|
513
|
+
if (Et[d])
|
|
513
514
|
return;
|
|
514
|
-
|
|
515
|
-
var
|
|
516
|
-
|
|
515
|
+
Et[d] = !0;
|
|
516
|
+
var h = "";
|
|
517
|
+
n && n._owner && n._owner !== Be.current && (h = " It was passed a child from " + K(n._owner.type) + "."), fe(n), I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, h), fe(null);
|
|
517
518
|
}
|
|
518
519
|
}
|
|
519
|
-
function
|
|
520
|
+
function Tt(n, l) {
|
|
520
521
|
{
|
|
521
|
-
if (typeof
|
|
522
|
+
if (typeof n != "object")
|
|
522
523
|
return;
|
|
523
|
-
if (
|
|
524
|
-
for (var
|
|
525
|
-
var
|
|
526
|
-
|
|
524
|
+
if (Ke(n))
|
|
525
|
+
for (var d = 0; d < n.length; d++) {
|
|
526
|
+
var h = n[d];
|
|
527
|
+
Ze(h) && Rt(h, l);
|
|
527
528
|
}
|
|
528
|
-
else if (
|
|
529
|
-
|
|
530
|
-
else if (
|
|
531
|
-
var
|
|
532
|
-
if (typeof
|
|
533
|
-
for (var
|
|
534
|
-
|
|
529
|
+
else if (Ze(n))
|
|
530
|
+
n._store && (n._store.validated = !0);
|
|
531
|
+
else if (n) {
|
|
532
|
+
var S = Z(n);
|
|
533
|
+
if (typeof S == "function" && S !== n.entries)
|
|
534
|
+
for (var T = S.call(n), b; !(b = T.next()).done; )
|
|
535
|
+
Ze(b.value) && Rt(b.value, l);
|
|
535
536
|
}
|
|
536
537
|
}
|
|
537
538
|
}
|
|
538
|
-
function
|
|
539
|
+
function xr(n) {
|
|
539
540
|
{
|
|
540
|
-
var
|
|
541
|
-
if (
|
|
541
|
+
var l = n.type;
|
|
542
|
+
if (l == null || typeof l == "string")
|
|
542
543
|
return;
|
|
543
|
-
var
|
|
544
|
-
if (typeof
|
|
545
|
-
|
|
546
|
-
else if (typeof
|
|
544
|
+
var d;
|
|
545
|
+
if (typeof l == "function")
|
|
546
|
+
d = l.propTypes;
|
|
547
|
+
else if (typeof l == "object" && (l.$$typeof === p || // Note: Memo only checks outer props here.
|
|
547
548
|
// Inner props are checked in the reconciler.
|
|
548
|
-
|
|
549
|
-
|
|
549
|
+
l.$$typeof === w))
|
|
550
|
+
d = l.propTypes;
|
|
550
551
|
else
|
|
551
552
|
return;
|
|
552
|
-
if (
|
|
553
|
-
var
|
|
554
|
-
|
|
555
|
-
} else if (
|
|
556
|
-
|
|
557
|
-
var
|
|
558
|
-
|
|
553
|
+
if (d) {
|
|
554
|
+
var h = K(l);
|
|
555
|
+
yr(d, n.props, "prop", h, n);
|
|
556
|
+
} else if (l.PropTypes !== void 0 && !Xe) {
|
|
557
|
+
Xe = !0;
|
|
558
|
+
var S = K(l);
|
|
559
|
+
I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
|
|
559
560
|
}
|
|
560
|
-
typeof
|
|
561
|
+
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
562
|
}
|
|
562
563
|
}
|
|
563
|
-
function
|
|
564
|
+
function Or(n) {
|
|
564
565
|
{
|
|
565
|
-
for (var
|
|
566
|
-
var
|
|
567
|
-
if (
|
|
568
|
-
|
|
566
|
+
for (var l = Object.keys(n.props), d = 0; d < l.length; d++) {
|
|
567
|
+
var h = l[d];
|
|
568
|
+
if (h !== "children" && h !== "key") {
|
|
569
|
+
fe(n), I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", h), fe(null);
|
|
569
570
|
break;
|
|
570
571
|
}
|
|
571
572
|
}
|
|
572
|
-
|
|
573
|
+
n.ref !== null && (fe(n), I("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
|
|
573
574
|
}
|
|
574
575
|
}
|
|
575
|
-
var
|
|
576
|
-
function It(
|
|
576
|
+
var Ct = {};
|
|
577
|
+
function It(n, l, d, h, S, T) {
|
|
577
578
|
{
|
|
578
|
-
var b =
|
|
579
|
+
var b = We(n);
|
|
579
580
|
if (!b) {
|
|
580
581
|
var g = "";
|
|
581
|
-
(
|
|
582
|
-
var
|
|
583
|
-
|
|
584
|
-
var
|
|
585
|
-
|
|
582
|
+
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).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.");
|
|
583
|
+
var j = Cr();
|
|
584
|
+
j ? g += j : g += St();
|
|
585
|
+
var O;
|
|
586
|
+
n === null ? O = "null" : Ke(n) ? O = "array" : n !== void 0 && n.$$typeof === t ? (O = "<" + (K(n.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : O = typeof n, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", O, g);
|
|
586
587
|
}
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
589
|
-
return
|
|
588
|
+
var D = Tr(n, l, d, S, T);
|
|
589
|
+
if (D == null)
|
|
590
|
+
return D;
|
|
590
591
|
if (b) {
|
|
591
|
-
var G =
|
|
592
|
+
var G = l.children;
|
|
592
593
|
if (G !== void 0)
|
|
593
|
-
if (
|
|
594
|
-
if (
|
|
595
|
-
for (var
|
|
596
|
-
|
|
594
|
+
if (h)
|
|
595
|
+
if (Ke(G)) {
|
|
596
|
+
for (var pe = 0; pe < G.length; pe++)
|
|
597
|
+
Tt(G[pe], n);
|
|
597
598
|
Object.freeze && Object.freeze(G);
|
|
598
599
|
} else
|
|
599
|
-
|
|
600
|
+
I("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
600
601
|
else
|
|
601
|
-
|
|
602
|
+
Tt(G, n);
|
|
602
603
|
}
|
|
603
|
-
if (
|
|
604
|
-
var ae = K(
|
|
605
|
-
return
|
|
606
|
-
}),
|
|
607
|
-
if (!
|
|
608
|
-
var
|
|
609
|
-
|
|
604
|
+
if (we.call(l, "key")) {
|
|
605
|
+
var ae = K(n), U = Object.keys(l).filter(function(Fr) {
|
|
606
|
+
return Fr !== "key";
|
|
607
|
+
}), et = U.length > 0 ? "{key: someKey, " + U.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
|
+
if (!Ct[ae + et]) {
|
|
609
|
+
var Mr = U.length > 0 ? "{" + U.join(": ..., ") + ": ...}" : "{}";
|
|
610
|
+
I(`A props object containing a "key" prop is being spread into JSX:
|
|
610
611
|
let props = %s;
|
|
611
612
|
<%s {...props} />
|
|
612
613
|
React keys must be passed directly to JSX without using spread:
|
|
613
614
|
let props = %s;
|
|
614
|
-
<%s key={someKey} {...props} />`,
|
|
615
|
+
<%s key={someKey} {...props} />`, et, ae, Mr, ae), Ct[ae + et] = !0;
|
|
615
616
|
}
|
|
616
617
|
}
|
|
617
|
-
return
|
|
618
|
+
return n === i ? Or(D) : xr(D), D;
|
|
618
619
|
}
|
|
619
620
|
}
|
|
620
|
-
function
|
|
621
|
-
return It(
|
|
621
|
+
function _r(n, l, d) {
|
|
622
|
+
return It(n, l, d, !0);
|
|
622
623
|
}
|
|
623
|
-
function
|
|
624
|
-
return It(
|
|
624
|
+
function kr(n, l, d) {
|
|
625
|
+
return It(n, l, d, !1);
|
|
625
626
|
}
|
|
626
|
-
var
|
|
627
|
-
|
|
628
|
-
})()),
|
|
627
|
+
var Ar = kr, Dr = _r;
|
|
628
|
+
Ee.Fragment = i, Ee.jsx = Ar, Ee.jsxs = Dr;
|
|
629
|
+
})()), Ee;
|
|
629
630
|
}
|
|
630
|
-
var
|
|
631
|
-
function
|
|
632
|
-
return
|
|
631
|
+
var At;
|
|
632
|
+
function Mn() {
|
|
633
|
+
return At || (At = 1, process.env.NODE_ENV === "production" ? ze.exports = An() : ze.exports = Dn()), ze.exports;
|
|
633
634
|
}
|
|
634
|
-
var
|
|
635
|
-
var
|
|
636
|
-
function
|
|
637
|
-
if (
|
|
638
|
-
|
|
639
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103,
|
|
640
|
-
function
|
|
641
|
-
if (typeof
|
|
642
|
-
var
|
|
643
|
-
switch (
|
|
635
|
+
var Ce = Mn(), qe = { exports: {} }, E = {};
|
|
636
|
+
var Dt;
|
|
637
|
+
function Fn() {
|
|
638
|
+
if (Dt) return E;
|
|
639
|
+
Dt = 1;
|
|
640
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, P = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, w = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, q = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, F = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, k = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, H = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, Z = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, L = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, I = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
641
|
+
function A(u) {
|
|
642
|
+
if (typeof u == "object" && u !== null) {
|
|
643
|
+
var V = u.$$typeof;
|
|
644
|
+
switch (V) {
|
|
644
645
|
case t:
|
|
645
|
-
switch (
|
|
646
|
-
case m:
|
|
646
|
+
switch (u = u.type, u) {
|
|
647
647
|
case p:
|
|
648
|
+
case m:
|
|
648
649
|
case i:
|
|
649
|
-
case
|
|
650
|
+
case o:
|
|
650
651
|
case a:
|
|
651
|
-
case
|
|
652
|
-
return
|
|
652
|
+
case w:
|
|
653
|
+
return u;
|
|
653
654
|
default:
|
|
654
|
-
switch (
|
|
655
|
-
case
|
|
656
|
-
case
|
|
657
|
-
case
|
|
658
|
-
case
|
|
659
|
-
case
|
|
660
|
-
return
|
|
655
|
+
switch (u = u && u.$$typeof, u) {
|
|
656
|
+
case f:
|
|
657
|
+
case P:
|
|
658
|
+
case k:
|
|
659
|
+
case F:
|
|
660
|
+
case c:
|
|
661
|
+
return u;
|
|
661
662
|
default:
|
|
662
|
-
return
|
|
663
|
+
return V;
|
|
663
664
|
}
|
|
664
665
|
}
|
|
665
|
-
case
|
|
666
|
-
return
|
|
666
|
+
case r:
|
|
667
|
+
return V;
|
|
667
668
|
}
|
|
668
669
|
}
|
|
669
670
|
}
|
|
670
|
-
function
|
|
671
|
-
return
|
|
672
|
-
}
|
|
673
|
-
return
|
|
674
|
-
return
|
|
675
|
-
},
|
|
676
|
-
return
|
|
677
|
-
},
|
|
678
|
-
return
|
|
679
|
-
},
|
|
680
|
-
return typeof
|
|
681
|
-
},
|
|
682
|
-
return
|
|
683
|
-
},
|
|
684
|
-
return
|
|
685
|
-
},
|
|
686
|
-
return
|
|
687
|
-
},
|
|
688
|
-
return
|
|
689
|
-
},
|
|
690
|
-
return
|
|
691
|
-
},
|
|
692
|
-
return
|
|
693
|
-
},
|
|
694
|
-
return
|
|
695
|
-
},
|
|
696
|
-
return
|
|
697
|
-
},
|
|
698
|
-
return typeof
|
|
699
|
-
},
|
|
671
|
+
function x(u) {
|
|
672
|
+
return A(u) === m;
|
|
673
|
+
}
|
|
674
|
+
return E.AsyncMode = p, E.ConcurrentMode = m, E.ContextConsumer = f, E.ContextProvider = c, E.Element = t, E.ForwardRef = P, E.Fragment = i, E.Lazy = k, E.Memo = F, E.Portal = r, E.Profiler = o, E.StrictMode = a, E.Suspense = w, E.isAsyncMode = function(u) {
|
|
675
|
+
return x(u) || A(u) === p;
|
|
676
|
+
}, E.isConcurrentMode = x, E.isContextConsumer = function(u) {
|
|
677
|
+
return A(u) === f;
|
|
678
|
+
}, E.isContextProvider = function(u) {
|
|
679
|
+
return A(u) === c;
|
|
680
|
+
}, E.isElement = function(u) {
|
|
681
|
+
return typeof u == "object" && u !== null && u.$$typeof === t;
|
|
682
|
+
}, E.isForwardRef = function(u) {
|
|
683
|
+
return A(u) === P;
|
|
684
|
+
}, E.isFragment = function(u) {
|
|
685
|
+
return A(u) === i;
|
|
686
|
+
}, E.isLazy = function(u) {
|
|
687
|
+
return A(u) === k;
|
|
688
|
+
}, E.isMemo = function(u) {
|
|
689
|
+
return A(u) === F;
|
|
690
|
+
}, E.isPortal = function(u) {
|
|
691
|
+
return A(u) === r;
|
|
692
|
+
}, E.isProfiler = function(u) {
|
|
693
|
+
return A(u) === o;
|
|
694
|
+
}, E.isStrictMode = function(u) {
|
|
695
|
+
return A(u) === a;
|
|
696
|
+
}, E.isSuspense = function(u) {
|
|
697
|
+
return A(u) === w;
|
|
698
|
+
}, E.isValidElementType = function(u) {
|
|
699
|
+
return typeof u == "string" || typeof u == "function" || u === i || u === m || u === o || u === a || u === w || u === q || typeof u == "object" && u !== null && (u.$$typeof === k || u.$$typeof === F || u.$$typeof === c || u.$$typeof === f || u.$$typeof === P || u.$$typeof === Z || u.$$typeof === L || u.$$typeof === I || u.$$typeof === H);
|
|
700
|
+
}, E.typeOf = A, E;
|
|
700
701
|
}
|
|
701
|
-
var
|
|
702
|
-
var
|
|
703
|
-
function
|
|
704
|
-
return
|
|
705
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103,
|
|
706
|
-
function
|
|
707
|
-
return typeof
|
|
708
|
-
|
|
709
|
-
}
|
|
710
|
-
function
|
|
711
|
-
if (typeof
|
|
712
|
-
var be =
|
|
702
|
+
var R = {};
|
|
703
|
+
var Mt;
|
|
704
|
+
function Nn() {
|
|
705
|
+
return Mt || (Mt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
706
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, P = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, w = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, q = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, F = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, k = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, H = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, Z = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, L = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, I = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
707
|
+
function A(y) {
|
|
708
|
+
return typeof y == "string" || typeof y == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
709
|
+
y === i || y === m || y === o || y === a || y === w || y === q || typeof y == "object" && y !== null && (y.$$typeof === k || y.$$typeof === F || y.$$typeof === c || y.$$typeof === f || y.$$typeof === P || y.$$typeof === Z || y.$$typeof === L || y.$$typeof === I || y.$$typeof === H);
|
|
710
|
+
}
|
|
711
|
+
function x(y) {
|
|
712
|
+
if (typeof y == "object" && y !== null) {
|
|
713
|
+
var be = y.$$typeof;
|
|
713
714
|
switch (be) {
|
|
714
715
|
case t:
|
|
715
|
-
var
|
|
716
|
-
switch (
|
|
717
|
-
case m:
|
|
716
|
+
var de = y.type;
|
|
717
|
+
switch (de) {
|
|
718
718
|
case p:
|
|
719
|
+
case m:
|
|
719
720
|
case i:
|
|
720
|
-
case
|
|
721
|
+
case o:
|
|
721
722
|
case a:
|
|
722
|
-
case
|
|
723
|
-
return
|
|
723
|
+
case w:
|
|
724
|
+
return de;
|
|
724
725
|
default:
|
|
725
|
-
var
|
|
726
|
-
switch (
|
|
727
|
-
case
|
|
728
|
-
case
|
|
729
|
-
case
|
|
730
|
-
case
|
|
731
|
-
case
|
|
732
|
-
return
|
|
726
|
+
var ie = de && de.$$typeof;
|
|
727
|
+
switch (ie) {
|
|
728
|
+
case f:
|
|
729
|
+
case P:
|
|
730
|
+
case k:
|
|
731
|
+
case F:
|
|
732
|
+
case c:
|
|
733
|
+
return ie;
|
|
733
734
|
default:
|
|
734
735
|
return be;
|
|
735
736
|
}
|
|
736
737
|
}
|
|
737
|
-
case
|
|
738
|
+
case r:
|
|
738
739
|
return be;
|
|
739
740
|
}
|
|
740
741
|
}
|
|
741
742
|
}
|
|
742
|
-
var
|
|
743
|
-
function
|
|
744
|
-
return he || (he = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
743
|
+
var u = p, V = m, ye = f, Oe = c, _e = t, We = P, He = i, ke = k, K = F, ee = r, ne = o, Ae = a, De = w, he = !1;
|
|
744
|
+
function Me(y) {
|
|
745
|
+
return he || (he = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), me(y) || x(y) === p;
|
|
745
746
|
}
|
|
746
|
-
function
|
|
747
|
-
return
|
|
747
|
+
function me(y) {
|
|
748
|
+
return x(y) === m;
|
|
748
749
|
}
|
|
749
|
-
function
|
|
750
|
-
return
|
|
750
|
+
function Fe(y) {
|
|
751
|
+
return x(y) === f;
|
|
751
752
|
}
|
|
752
|
-
function
|
|
753
|
-
return
|
|
753
|
+
function Ne(y) {
|
|
754
|
+
return x(y) === c;
|
|
754
755
|
}
|
|
755
|
-
function
|
|
756
|
-
return typeof
|
|
756
|
+
function $e(y) {
|
|
757
|
+
return typeof y == "object" && y !== null && y.$$typeof === t;
|
|
757
758
|
}
|
|
758
|
-
function
|
|
759
|
-
return
|
|
759
|
+
function Ge(y) {
|
|
760
|
+
return x(y) === P;
|
|
760
761
|
}
|
|
761
|
-
function
|
|
762
|
-
return
|
|
762
|
+
function Je(y) {
|
|
763
|
+
return x(y) === i;
|
|
763
764
|
}
|
|
764
|
-
function
|
|
765
|
-
return
|
|
765
|
+
function ve(y) {
|
|
766
|
+
return x(y) === k;
|
|
766
767
|
}
|
|
767
|
-
function
|
|
768
|
-
return
|
|
768
|
+
function ge(y) {
|
|
769
|
+
return x(y) === F;
|
|
769
770
|
}
|
|
770
|
-
function
|
|
771
|
-
return
|
|
771
|
+
function ce(y) {
|
|
772
|
+
return x(y) === r;
|
|
772
773
|
}
|
|
773
|
-
function
|
|
774
|
-
return
|
|
774
|
+
function Pe(y) {
|
|
775
|
+
return x(y) === o;
|
|
775
776
|
}
|
|
776
|
-
function
|
|
777
|
-
return
|
|
777
|
+
function ue(y) {
|
|
778
|
+
return x(y) === a;
|
|
778
779
|
}
|
|
779
|
-
function
|
|
780
|
-
return
|
|
780
|
+
function Qe(y) {
|
|
781
|
+
return x(y) === w;
|
|
781
782
|
}
|
|
782
|
-
|
|
783
|
-
})()),
|
|
783
|
+
R.AsyncMode = u, R.ConcurrentMode = V, R.ContextConsumer = ye, R.ContextProvider = Oe, R.Element = _e, R.ForwardRef = We, R.Fragment = He, R.Lazy = ke, R.Memo = K, R.Portal = ee, R.Profiler = ne, R.StrictMode = Ae, R.Suspense = De, R.isAsyncMode = Me, R.isConcurrentMode = me, R.isContextConsumer = Fe, R.isContextProvider = Ne, R.isElement = $e, R.isForwardRef = Ge, R.isFragment = Je, R.isLazy = ve, R.isMemo = ge, R.isPortal = ce, R.isProfiler = Pe, R.isStrictMode = ue, R.isSuspense = Qe, R.isValidElementType = A, R.typeOf = x;
|
|
784
|
+
})()), R;
|
|
784
785
|
}
|
|
785
|
-
var
|
|
786
|
-
function
|
|
787
|
-
return
|
|
786
|
+
var Ft;
|
|
787
|
+
function $n() {
|
|
788
|
+
return Ft || (Ft = 1, process.env.NODE_ENV === "production" ? qe.exports = Fn() : qe.exports = Nn()), qe.exports;
|
|
788
789
|
}
|
|
789
|
-
var
|
|
790
|
-
function
|
|
791
|
-
if (
|
|
792
|
-
|
|
793
|
-
var e =
|
|
790
|
+
var rt, Nt;
|
|
791
|
+
function jn() {
|
|
792
|
+
if (Nt) return rt;
|
|
793
|
+
Nt = 1;
|
|
794
|
+
var e = $n(), t = {
|
|
794
795
|
childContextTypes: !0,
|
|
795
796
|
contextType: !0,
|
|
796
797
|
contextTypes: !0,
|
|
@@ -802,7 +803,7 @@ function wn() {
|
|
|
802
803
|
mixins: !0,
|
|
803
804
|
propTypes: !0,
|
|
804
805
|
type: !0
|
|
805
|
-
},
|
|
806
|
+
}, r = {
|
|
806
807
|
name: !0,
|
|
807
808
|
length: !0,
|
|
808
809
|
prototype: !0,
|
|
@@ -823,45 +824,45 @@ function wn() {
|
|
|
823
824
|
displayName: !0,
|
|
824
825
|
propTypes: !0,
|
|
825
826
|
type: !0
|
|
826
|
-
},
|
|
827
|
-
|
|
828
|
-
function
|
|
829
|
-
return e.isMemo(
|
|
827
|
+
}, o = {};
|
|
828
|
+
o[e.ForwardRef] = i, o[e.Memo] = a;
|
|
829
|
+
function c(k) {
|
|
830
|
+
return e.isMemo(k) ? a : o[k.$$typeof] || t;
|
|
830
831
|
}
|
|
831
|
-
var
|
|
832
|
-
function
|
|
832
|
+
var f = Object.defineProperty, p = Object.getOwnPropertyNames, m = Object.getOwnPropertySymbols, P = Object.getOwnPropertyDescriptor, w = Object.getPrototypeOf, q = Object.prototype;
|
|
833
|
+
function F(k, H, Z) {
|
|
833
834
|
if (typeof H != "string") {
|
|
834
|
-
if (
|
|
835
|
-
var
|
|
836
|
-
|
|
835
|
+
if (q) {
|
|
836
|
+
var L = w(H);
|
|
837
|
+
L && L !== q && F(k, L, Z);
|
|
837
838
|
}
|
|
838
|
-
var
|
|
839
|
-
|
|
840
|
-
for (var
|
|
841
|
-
var
|
|
842
|
-
if (!
|
|
843
|
-
var
|
|
839
|
+
var I = p(H);
|
|
840
|
+
m && (I = I.concat(m(H)));
|
|
841
|
+
for (var A = c(k), x = c(H), u = 0; u < I.length; ++u) {
|
|
842
|
+
var V = I[u];
|
|
843
|
+
if (!r[V] && !(Z && Z[V]) && !(x && x[V]) && !(A && A[V])) {
|
|
844
|
+
var ye = P(H, V);
|
|
844
845
|
try {
|
|
845
|
-
|
|
846
|
+
f(k, V, ye);
|
|
846
847
|
} catch {
|
|
847
848
|
}
|
|
848
849
|
}
|
|
849
850
|
}
|
|
850
851
|
}
|
|
851
|
-
return
|
|
852
|
+
return k;
|
|
852
853
|
}
|
|
853
|
-
return
|
|
854
|
+
return rt = F, rt;
|
|
854
855
|
}
|
|
855
|
-
|
|
856
|
-
var
|
|
857
|
-
function
|
|
856
|
+
jn();
|
|
857
|
+
var zn = !0;
|
|
858
|
+
function qn(e, t, r) {
|
|
858
859
|
var i = "";
|
|
859
|
-
return
|
|
860
|
+
return r.split(" ").forEach(function(a) {
|
|
860
861
|
e[a] !== void 0 ? t.push(e[a] + ";") : a && (i += a + " ");
|
|
861
862
|
}), i;
|
|
862
863
|
}
|
|
863
|
-
var
|
|
864
|
-
var a = t.key + "-" +
|
|
864
|
+
var nr = function(t, r, i) {
|
|
865
|
+
var a = t.key + "-" + r.name;
|
|
865
866
|
// we only need to add the styles to the registered cache if the
|
|
866
867
|
// class name could be used further down
|
|
867
868
|
// the tree but if it's a string tag, we know it won't
|
|
@@ -871,23 +872,23 @@ var Xt = function(t, n, i) {
|
|
|
871
872
|
// in node since emotion-server relies on whether a style is in
|
|
872
873
|
// the registered cache to know whether a style is global or not
|
|
873
874
|
// also, note that this check will be dead code eliminated in the browser
|
|
874
|
-
|
|
875
|
-
},
|
|
876
|
-
|
|
877
|
-
var a = t.key + "-" +
|
|
878
|
-
if (t.inserted[
|
|
879
|
-
var
|
|
875
|
+
zn === !1) && t.registered[a] === void 0 && (t.registered[a] = r.styles);
|
|
876
|
+
}, Ln = function(t, r, i) {
|
|
877
|
+
nr(t, r, i);
|
|
878
|
+
var a = t.key + "-" + r.name;
|
|
879
|
+
if (t.inserted[r.name] === void 0) {
|
|
880
|
+
var o = r;
|
|
880
881
|
do
|
|
881
|
-
t.insert(
|
|
882
|
-
while (
|
|
882
|
+
t.insert(r === o ? "." + a : "", o, t.sheet, !0), o = o.next;
|
|
883
|
+
while (o !== void 0);
|
|
883
884
|
}
|
|
884
885
|
};
|
|
885
|
-
function
|
|
886
|
-
for (var t = 0,
|
|
887
|
-
|
|
888
|
-
(
|
|
889
|
-
|
|
890
|
-
(
|
|
886
|
+
function Vn(e) {
|
|
887
|
+
for (var t = 0, r, i = 0, a = e.length; a >= 4; ++i, a -= 4)
|
|
888
|
+
r = e.charCodeAt(i) & 255 | (e.charCodeAt(++i) & 255) << 8 | (e.charCodeAt(++i) & 255) << 16 | (e.charCodeAt(++i) & 255) << 24, r = /* Math.imul(k, m): */
|
|
889
|
+
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
|
|
890
|
+
r >>> 24, t = /* Math.imul(k, m): */
|
|
891
|
+
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
891
892
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
892
893
|
switch (a) {
|
|
893
894
|
case 3:
|
|
@@ -901,7 +902,7 @@ function An(e) {
|
|
|
901
902
|
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
902
903
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
903
904
|
}
|
|
904
|
-
var
|
|
905
|
+
var Un = {
|
|
905
906
|
animationIterationCount: 1,
|
|
906
907
|
aspectRatio: 1,
|
|
907
908
|
borderImageOutset: 1,
|
|
@@ -951,265 +952,739 @@ var Mn = {
|
|
|
951
952
|
strokeOpacity: 1,
|
|
952
953
|
strokeWidth: 1
|
|
953
954
|
};
|
|
954
|
-
function
|
|
955
|
+
function Yn(e) {
|
|
955
956
|
var t = /* @__PURE__ */ Object.create(null);
|
|
956
|
-
return function(
|
|
957
|
-
return t[
|
|
957
|
+
return function(r) {
|
|
958
|
+
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
958
959
|
};
|
|
959
960
|
}
|
|
960
|
-
var
|
|
961
|
+
var Wn = /[A-Z]|^ms/g, Hn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ir = function(t) {
|
|
961
962
|
return t.charCodeAt(1) === 45;
|
|
962
|
-
},
|
|
963
|
+
}, $t = function(t) {
|
|
963
964
|
return t != null && typeof t != "boolean";
|
|
964
|
-
},
|
|
965
|
-
return
|
|
966
|
-
}), jt = function(t,
|
|
965
|
+
}, nt = /* @__PURE__ */ Yn(function(e) {
|
|
966
|
+
return ir(e) ? e : e.replace(Wn, "-$&").toLowerCase();
|
|
967
|
+
}), jt = function(t, r) {
|
|
967
968
|
switch (t) {
|
|
968
969
|
case "animation":
|
|
969
970
|
case "animationName":
|
|
970
|
-
if (typeof
|
|
971
|
-
return
|
|
972
|
-
return
|
|
971
|
+
if (typeof r == "string")
|
|
972
|
+
return r.replace(Hn, function(i, a, o) {
|
|
973
|
+
return B = {
|
|
973
974
|
name: a,
|
|
974
|
-
styles:
|
|
975
|
-
next:
|
|
975
|
+
styles: o,
|
|
976
|
+
next: B
|
|
976
977
|
}, a;
|
|
977
978
|
});
|
|
978
979
|
}
|
|
979
|
-
return
|
|
980
|
+
return Un[t] !== 1 && !ir(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
|
|
980
981
|
};
|
|
981
|
-
function Ie(e, t,
|
|
982
|
-
if (
|
|
982
|
+
function Ie(e, t, r) {
|
|
983
|
+
if (r == null)
|
|
983
984
|
return "";
|
|
984
|
-
var i =
|
|
985
|
+
var i = r;
|
|
985
986
|
if (i.__emotion_styles !== void 0)
|
|
986
987
|
return i;
|
|
987
|
-
switch (typeof
|
|
988
|
+
switch (typeof r) {
|
|
988
989
|
case "boolean":
|
|
989
990
|
return "";
|
|
990
991
|
case "object": {
|
|
991
|
-
var a =
|
|
992
|
+
var a = r;
|
|
992
993
|
if (a.anim === 1)
|
|
993
|
-
return
|
|
994
|
+
return B = {
|
|
994
995
|
name: a.name,
|
|
995
996
|
styles: a.styles,
|
|
996
|
-
next:
|
|
997
|
+
next: B
|
|
997
998
|
}, a.name;
|
|
998
|
-
var
|
|
999
|
-
if (
|
|
1000
|
-
var
|
|
1001
|
-
if (
|
|
1002
|
-
for (;
|
|
1003
|
-
|
|
1004
|
-
name:
|
|
1005
|
-
styles:
|
|
1006
|
-
next:
|
|
1007
|
-
},
|
|
1008
|
-
var
|
|
1009
|
-
return
|
|
999
|
+
var o = r;
|
|
1000
|
+
if (o.styles !== void 0) {
|
|
1001
|
+
var c = o.next;
|
|
1002
|
+
if (c !== void 0)
|
|
1003
|
+
for (; c !== void 0; )
|
|
1004
|
+
B = {
|
|
1005
|
+
name: c.name,
|
|
1006
|
+
styles: c.styles,
|
|
1007
|
+
next: B
|
|
1008
|
+
}, c = c.next;
|
|
1009
|
+
var f = o.styles + ";";
|
|
1010
|
+
return f;
|
|
1010
1011
|
}
|
|
1011
|
-
return
|
|
1012
|
+
return Gn(e, t, r);
|
|
1012
1013
|
}
|
|
1013
1014
|
case "function": {
|
|
1014
1015
|
if (e !== void 0) {
|
|
1015
|
-
var
|
|
1016
|
-
return
|
|
1016
|
+
var p = B, m = r(e);
|
|
1017
|
+
return B = p, Ie(e, t, m);
|
|
1017
1018
|
}
|
|
1018
1019
|
break;
|
|
1019
1020
|
}
|
|
1020
1021
|
}
|
|
1021
|
-
var
|
|
1022
|
-
return
|
|
1022
|
+
var P = r;
|
|
1023
|
+
return P;
|
|
1023
1024
|
}
|
|
1024
|
-
function
|
|
1025
|
+
function Gn(e, t, r) {
|
|
1025
1026
|
var i = "";
|
|
1026
|
-
if (Array.isArray(
|
|
1027
|
-
for (var a = 0; a <
|
|
1028
|
-
i += Ie(e, t,
|
|
1027
|
+
if (Array.isArray(r))
|
|
1028
|
+
for (var a = 0; a < r.length; a++)
|
|
1029
|
+
i += Ie(e, t, r[a]) + ";";
|
|
1029
1030
|
else
|
|
1030
|
-
for (var
|
|
1031
|
-
var
|
|
1032
|
-
if (typeof
|
|
1033
|
-
var
|
|
1034
|
-
|
|
1035
|
-
} else if (Array.isArray(
|
|
1036
|
-
for (var
|
|
1037
|
-
|
|
1031
|
+
for (var o in r) {
|
|
1032
|
+
var c = r[o];
|
|
1033
|
+
if (typeof c != "object") {
|
|
1034
|
+
var f = c;
|
|
1035
|
+
$t(f) && (i += nt(o) + ":" + jt(o, f) + ";");
|
|
1036
|
+
} else if (Array.isArray(c) && typeof c[0] == "string" && t == null)
|
|
1037
|
+
for (var p = 0; p < c.length; p++)
|
|
1038
|
+
$t(c[p]) && (i += nt(o) + ":" + jt(o, c[p]) + ";");
|
|
1038
1039
|
else {
|
|
1039
|
-
var
|
|
1040
|
-
switch (
|
|
1040
|
+
var m = Ie(e, t, c);
|
|
1041
|
+
switch (o) {
|
|
1041
1042
|
case "animation":
|
|
1042
1043
|
case "animationName": {
|
|
1043
|
-
i +=
|
|
1044
|
+
i += nt(o) + ":" + m + ";";
|
|
1044
1045
|
break;
|
|
1045
1046
|
}
|
|
1046
1047
|
default:
|
|
1047
|
-
i +=
|
|
1048
|
+
i += o + "{" + m + "}";
|
|
1048
1049
|
}
|
|
1049
1050
|
}
|
|
1050
1051
|
}
|
|
1051
1052
|
return i;
|
|
1052
1053
|
}
|
|
1053
|
-
var
|
|
1054
|
-
function
|
|
1054
|
+
var zt = /label:\s*([^\s;{]+)\s*(;|$)/g, B;
|
|
1055
|
+
function Jn(e, t, r) {
|
|
1055
1056
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1056
1057
|
return e[0];
|
|
1057
1058
|
var i = !0, a = "";
|
|
1058
|
-
|
|
1059
|
-
var
|
|
1060
|
-
if (
|
|
1061
|
-
i = !1, a += Ie(
|
|
1059
|
+
B = void 0;
|
|
1060
|
+
var o = e[0];
|
|
1061
|
+
if (o == null || o.raw === void 0)
|
|
1062
|
+
i = !1, a += Ie(r, t, o);
|
|
1062
1063
|
else {
|
|
1063
|
-
var
|
|
1064
|
-
a +=
|
|
1065
|
-
}
|
|
1066
|
-
for (var
|
|
1067
|
-
if (a += Ie(
|
|
1068
|
-
var
|
|
1069
|
-
a +=
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
for (var
|
|
1073
|
-
|
|
1074
|
-
var
|
|
1064
|
+
var c = o;
|
|
1065
|
+
a += c[0];
|
|
1066
|
+
}
|
|
1067
|
+
for (var f = 1; f < e.length; f++)
|
|
1068
|
+
if (a += Ie(r, t, e[f]), i) {
|
|
1069
|
+
var p = o;
|
|
1070
|
+
a += p[f];
|
|
1071
|
+
}
|
|
1072
|
+
zt.lastIndex = 0;
|
|
1073
|
+
for (var m = "", P; (P = zt.exec(a)) !== null; )
|
|
1074
|
+
m += "-" + P[1];
|
|
1075
|
+
var w = Vn(a) + m;
|
|
1075
1076
|
return {
|
|
1076
|
-
name:
|
|
1077
|
+
name: w,
|
|
1077
1078
|
styles: a,
|
|
1078
|
-
next:
|
|
1079
|
+
next: B
|
|
1079
1080
|
};
|
|
1080
1081
|
}
|
|
1081
|
-
var
|
|
1082
|
+
var Qn = function(t) {
|
|
1082
1083
|
return t();
|
|
1083
|
-
},
|
|
1084
|
+
}, Kn = te.useInsertionEffect ? te.useInsertionEffect : !1, Bn = Kn || Qn, ar = /* @__PURE__ */ te.createContext(
|
|
1084
1085
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1085
1086
|
// because this module is primarily intended for the browser and node
|
|
1086
1087
|
// but it's also required in react native and similar environments sometimes
|
|
1087
1088
|
// and we could have a special build just for that
|
|
1088
1089
|
// but this is much easier and the native packages
|
|
1089
1090
|
// might use a different theme context in the future anyway
|
|
1090
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */
|
|
1091
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ qr({
|
|
1091
1092
|
key: "css"
|
|
1092
1093
|
}) : null
|
|
1093
1094
|
);
|
|
1094
|
-
|
|
1095
|
-
var
|
|
1096
|
-
return /* @__PURE__ */
|
|
1097
|
-
var a =
|
|
1098
|
-
return t(
|
|
1095
|
+
ar.Provider;
|
|
1096
|
+
var Xn = function(t) {
|
|
1097
|
+
return /* @__PURE__ */ jr(function(r, i) {
|
|
1098
|
+
var a = ct(ar);
|
|
1099
|
+
return t(r, a, i);
|
|
1099
1100
|
});
|
|
1100
|
-
},
|
|
1101
|
+
}, Zn = /* @__PURE__ */ te.createContext({}), Ue = {}.hasOwnProperty, ot = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", sr = function(t, r) {
|
|
1101
1102
|
var i = {};
|
|
1102
|
-
for (var a in
|
|
1103
|
-
|
|
1104
|
-
return i[
|
|
1105
|
-
},
|
|
1106
|
-
var
|
|
1107
|
-
return
|
|
1108
|
-
return
|
|
1103
|
+
for (var a in r)
|
|
1104
|
+
Ue.call(r, a) && (i[a] = r[a]);
|
|
1105
|
+
return i[ot] = t, i;
|
|
1106
|
+
}, ei = function(t) {
|
|
1107
|
+
var r = t.cache, i = t.serialized, a = t.isStringTag;
|
|
1108
|
+
return nr(r, i, a), Bn(function() {
|
|
1109
|
+
return Ln(r, i, a);
|
|
1109
1110
|
}), null;
|
|
1110
|
-
},
|
|
1111
|
+
}, ti = /* @__PURE__ */ Xn(function(e, t, r) {
|
|
1111
1112
|
var i = e.css;
|
|
1112
1113
|
typeof i == "string" && t.registered[i] !== void 0 && (i = t.registered[i]);
|
|
1113
|
-
var a = e[
|
|
1114
|
-
typeof e.className == "string" ?
|
|
1115
|
-
var
|
|
1116
|
-
|
|
1117
|
-
var
|
|
1118
|
-
for (var
|
|
1119
|
-
|
|
1120
|
-
return
|
|
1114
|
+
var a = e[ot], o = [i], c = "";
|
|
1115
|
+
typeof e.className == "string" ? c = qn(t.registered, o, e.className) : e.className != null && (c = e.className + " ");
|
|
1116
|
+
var f = Jn(o, void 0, te.useContext(Zn));
|
|
1117
|
+
c += t.key + "-" + f.name;
|
|
1118
|
+
var p = {};
|
|
1119
|
+
for (var m in e)
|
|
1120
|
+
Ue.call(e, m) && m !== "css" && m !== ot && (p[m] = e[m]);
|
|
1121
|
+
return p.className = c, r && (p.ref = r), /* @__PURE__ */ te.createElement(te.Fragment, null, /* @__PURE__ */ te.createElement(ei, {
|
|
1121
1122
|
cache: t,
|
|
1122
|
-
serialized:
|
|
1123
|
+
serialized: f,
|
|
1123
1124
|
isStringTag: typeof a == "string"
|
|
1124
|
-
}), /* @__PURE__ */ te.createElement(a,
|
|
1125
|
-
}),
|
|
1126
|
-
return
|
|
1127
|
-
},
|
|
1128
|
-
return
|
|
1125
|
+
}), /* @__PURE__ */ te.createElement(a, p));
|
|
1126
|
+
}), or = ti, Ye = Ce.Fragment, s = function(t, r, i) {
|
|
1127
|
+
return Ue.call(r, "css") ? Ce.jsx(or, sr(t, r), i) : Ce.jsx(t, r, i);
|
|
1128
|
+
}, M = function(t, r, i) {
|
|
1129
|
+
return Ue.call(r, "css") ? Ce.jsxs(or, sr(t, r), i) : Ce.jsxs(t, r, i);
|
|
1129
1130
|
};
|
|
1130
|
-
const
|
|
1131
|
+
const ri = {
|
|
1132
|
+
mediaPlayer: {
|
|
1133
|
+
enablePlaylists: process.env.NODE_ENV !== "production"
|
|
1134
|
+
}
|
|
1135
|
+
}, ni = "http://localhost".replace(/\/+$/, "");
|
|
1136
|
+
class lr {
|
|
1137
|
+
constructor(t = {}) {
|
|
1138
|
+
this.configuration = t;
|
|
1139
|
+
}
|
|
1140
|
+
set config(t) {
|
|
1141
|
+
this.configuration = t;
|
|
1142
|
+
}
|
|
1143
|
+
get basePath() {
|
|
1144
|
+
return this.configuration.basePath != null ? this.configuration.basePath : ni;
|
|
1145
|
+
}
|
|
1146
|
+
get fetchApi() {
|
|
1147
|
+
return this.configuration.fetchApi;
|
|
1148
|
+
}
|
|
1149
|
+
get middleware() {
|
|
1150
|
+
return this.configuration.middleware || [];
|
|
1151
|
+
}
|
|
1152
|
+
get queryParamsStringify() {
|
|
1153
|
+
return this.configuration.queryParamsStringify || cr;
|
|
1154
|
+
}
|
|
1155
|
+
get username() {
|
|
1156
|
+
return this.configuration.username;
|
|
1157
|
+
}
|
|
1158
|
+
get password() {
|
|
1159
|
+
return this.configuration.password;
|
|
1160
|
+
}
|
|
1161
|
+
get apiKey() {
|
|
1162
|
+
const t = this.configuration.apiKey;
|
|
1163
|
+
if (t)
|
|
1164
|
+
return typeof t == "function" ? t : () => t;
|
|
1165
|
+
}
|
|
1166
|
+
get accessToken() {
|
|
1167
|
+
const t = this.configuration.accessToken;
|
|
1168
|
+
if (t)
|
|
1169
|
+
return typeof t == "function" ? t : async () => t;
|
|
1170
|
+
}
|
|
1171
|
+
get headers() {
|
|
1172
|
+
return this.configuration.headers;
|
|
1173
|
+
}
|
|
1174
|
+
get credentials() {
|
|
1175
|
+
return this.configuration.credentials;
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
const ii = new lr();
|
|
1179
|
+
class pt {
|
|
1180
|
+
constructor(t = ii) {
|
|
1181
|
+
this.configuration = t, this.middleware = t.middleware;
|
|
1182
|
+
}
|
|
1183
|
+
static jsonRegex = new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$", "i");
|
|
1184
|
+
middleware;
|
|
1185
|
+
withMiddleware(...t) {
|
|
1186
|
+
const r = this.clone();
|
|
1187
|
+
return r.middleware = r.middleware.concat(...t), r;
|
|
1188
|
+
}
|
|
1189
|
+
withPreMiddleware(...t) {
|
|
1190
|
+
const r = t.map((i) => ({ pre: i }));
|
|
1191
|
+
return this.withMiddleware(...r);
|
|
1192
|
+
}
|
|
1193
|
+
withPostMiddleware(...t) {
|
|
1194
|
+
const r = t.map((i) => ({ post: i }));
|
|
1195
|
+
return this.withMiddleware(...r);
|
|
1196
|
+
}
|
|
1197
|
+
/**
|
|
1198
|
+
* Check if the given MIME is a JSON MIME.
|
|
1199
|
+
* JSON MIME examples:
|
|
1200
|
+
* application/json
|
|
1201
|
+
* application/json; charset=UTF8
|
|
1202
|
+
* APPLICATION/JSON
|
|
1203
|
+
* application/vnd.company+json
|
|
1204
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
1205
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
1206
|
+
*/
|
|
1207
|
+
isJsonMime(t) {
|
|
1208
|
+
return t ? pt.jsonRegex.test(t) : !1;
|
|
1209
|
+
}
|
|
1210
|
+
async request(t, r) {
|
|
1211
|
+
const { url: i, init: a } = await this.createFetchParams(t, r), o = await this.fetchApi(i, a);
|
|
1212
|
+
if (o && o.status >= 200 && o.status < 300)
|
|
1213
|
+
return o;
|
|
1214
|
+
throw new oi(o, "Response returned an error code");
|
|
1215
|
+
}
|
|
1216
|
+
async createFetchParams(t, r) {
|
|
1217
|
+
let i = this.configuration.basePath + t.path;
|
|
1218
|
+
t.query !== void 0 && Object.keys(t.query).length !== 0 && (i += "?" + this.configuration.queryParamsStringify(t.query));
|
|
1219
|
+
const a = Object.assign({}, this.configuration.headers, t.headers);
|
|
1220
|
+
Object.keys(a).forEach((P) => a[P] === void 0 ? delete a[P] : {});
|
|
1221
|
+
const o = typeof r == "function" ? r : async () => r, c = {
|
|
1222
|
+
method: t.method,
|
|
1223
|
+
headers: a,
|
|
1224
|
+
body: t.body,
|
|
1225
|
+
credentials: this.configuration.credentials
|
|
1226
|
+
}, f = {
|
|
1227
|
+
...c,
|
|
1228
|
+
...await o({
|
|
1229
|
+
init: c,
|
|
1230
|
+
context: t
|
|
1231
|
+
})
|
|
1232
|
+
};
|
|
1233
|
+
let p;
|
|
1234
|
+
si(f.body) || f.body instanceof URLSearchParams || ai(f.body) ? p = f.body : this.isJsonMime(a["Content-Type"]) ? p = JSON.stringify(f.body) : p = f.body;
|
|
1235
|
+
const m = {
|
|
1236
|
+
...f,
|
|
1237
|
+
body: p
|
|
1238
|
+
};
|
|
1239
|
+
return { url: i, init: m };
|
|
1240
|
+
}
|
|
1241
|
+
fetchApi = async (t, r) => {
|
|
1242
|
+
let i = { url: t, init: r };
|
|
1243
|
+
for (const o of this.middleware)
|
|
1244
|
+
o.pre && (i = await o.pre({
|
|
1245
|
+
fetch: this.fetchApi,
|
|
1246
|
+
...i
|
|
1247
|
+
}) || i);
|
|
1248
|
+
let a;
|
|
1249
|
+
try {
|
|
1250
|
+
a = await (this.configuration.fetchApi || fetch)(i.url, i.init);
|
|
1251
|
+
} catch (o) {
|
|
1252
|
+
for (const c of this.middleware)
|
|
1253
|
+
c.onError && (a = await c.onError({
|
|
1254
|
+
fetch: this.fetchApi,
|
|
1255
|
+
url: i.url,
|
|
1256
|
+
init: i.init,
|
|
1257
|
+
error: o,
|
|
1258
|
+
response: a ? a.clone() : void 0
|
|
1259
|
+
}) || a);
|
|
1260
|
+
if (a === void 0)
|
|
1261
|
+
throw o instanceof Error ? new li(o, "The request failed and the interceptors did not return an alternative response") : o;
|
|
1262
|
+
}
|
|
1263
|
+
for (const o of this.middleware)
|
|
1264
|
+
o.post && (a = await o.post({
|
|
1265
|
+
fetch: this.fetchApi,
|
|
1266
|
+
url: i.url,
|
|
1267
|
+
init: i.init,
|
|
1268
|
+
response: a.clone()
|
|
1269
|
+
}) || a);
|
|
1270
|
+
return a;
|
|
1271
|
+
};
|
|
1272
|
+
/**
|
|
1273
|
+
* Create a shallow clone of `this` by constructing a new instance
|
|
1274
|
+
* and then shallow cloning data members.
|
|
1275
|
+
*/
|
|
1276
|
+
clone() {
|
|
1277
|
+
const t = this.constructor, r = new t(this.configuration);
|
|
1278
|
+
return r.middleware = this.middleware.slice(), r;
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
function ai(e) {
|
|
1282
|
+
return typeof Blob < "u" && e instanceof Blob;
|
|
1283
|
+
}
|
|
1284
|
+
function si(e) {
|
|
1285
|
+
return typeof FormData < "u" && e instanceof FormData;
|
|
1286
|
+
}
|
|
1287
|
+
class oi extends Error {
|
|
1288
|
+
constructor(t, r) {
|
|
1289
|
+
super(r), this.response = t;
|
|
1290
|
+
}
|
|
1291
|
+
name = "ResponseError";
|
|
1292
|
+
}
|
|
1293
|
+
class li extends Error {
|
|
1294
|
+
constructor(t, r) {
|
|
1295
|
+
super(r), this.cause = t;
|
|
1296
|
+
}
|
|
1297
|
+
name = "FetchError";
|
|
1298
|
+
}
|
|
1299
|
+
class Re extends Error {
|
|
1300
|
+
constructor(t, r) {
|
|
1301
|
+
super(r), this.field = t;
|
|
1302
|
+
}
|
|
1303
|
+
name = "RequiredError";
|
|
1304
|
+
}
|
|
1305
|
+
function cr(e, t = "") {
|
|
1306
|
+
return Object.keys(e).map((r) => ur(r, e[r], t)).filter((r) => r.length > 0).join("&");
|
|
1307
|
+
}
|
|
1308
|
+
function ur(e, t, r = "") {
|
|
1309
|
+
const i = r + (r.length ? `[${e}]` : e);
|
|
1310
|
+
if (t instanceof Array) {
|
|
1311
|
+
const a = t.map((o) => encodeURIComponent(String(o))).join(`&${encodeURIComponent(i)}=`);
|
|
1312
|
+
return `${encodeURIComponent(i)}=${a}`;
|
|
1313
|
+
}
|
|
1314
|
+
if (t instanceof Set) {
|
|
1315
|
+
const a = Array.from(t);
|
|
1316
|
+
return ur(e, a, r);
|
|
1317
|
+
}
|
|
1318
|
+
return t instanceof Date ? `${encodeURIComponent(i)}=${encodeURIComponent(t.toISOString())}` : t instanceof Object ? cr(t, i) : `${encodeURIComponent(i)}=${encodeURIComponent(String(t))}`;
|
|
1319
|
+
}
|
|
1320
|
+
class se {
|
|
1321
|
+
constructor(t, r = (i) => i) {
|
|
1322
|
+
this.raw = t, this.transformer = r;
|
|
1323
|
+
}
|
|
1324
|
+
async value() {
|
|
1325
|
+
return this.transformer(await this.raw.json());
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
function dr(e) {
|
|
1329
|
+
return ci(e);
|
|
1330
|
+
}
|
|
1331
|
+
function ci(e, t) {
|
|
1332
|
+
return e == null ? e : {
|
|
1333
|
+
id: e.id,
|
|
1334
|
+
name: e.name
|
|
1335
|
+
};
|
|
1336
|
+
}
|
|
1337
|
+
function ui(e) {
|
|
1338
|
+
return di(e);
|
|
1339
|
+
}
|
|
1340
|
+
function di(e, t) {
|
|
1341
|
+
return e == null ? e : {
|
|
1342
|
+
playlist: dr(e.playlist)
|
|
1343
|
+
};
|
|
1344
|
+
}
|
|
1345
|
+
function fi(e) {
|
|
1346
|
+
return pi(e);
|
|
1347
|
+
}
|
|
1348
|
+
function pi(e, t) {
|
|
1349
|
+
return e == null ? e : {
|
|
1350
|
+
items: e.items.map(dr)
|
|
1351
|
+
};
|
|
1352
|
+
}
|
|
1353
|
+
function yi(e) {
|
|
1354
|
+
return hi(e);
|
|
1355
|
+
}
|
|
1356
|
+
function hi(e, t) {
|
|
1357
|
+
return e == null ? e : {
|
|
1358
|
+
id: e.id,
|
|
1359
|
+
url: e.url,
|
|
1360
|
+
type: e.type,
|
|
1361
|
+
videoId: e.videoId,
|
|
1362
|
+
title: e.title
|
|
1363
|
+
};
|
|
1364
|
+
}
|
|
1365
|
+
function mi(e) {
|
|
1366
|
+
return vi(e);
|
|
1367
|
+
}
|
|
1368
|
+
function vi(e, t) {
|
|
1369
|
+
return e == null ? e : {
|
|
1370
|
+
items: e.items.map(yi)
|
|
1371
|
+
};
|
|
1372
|
+
}
|
|
1373
|
+
function gi(e) {
|
|
1374
|
+
return Pi(e, !1);
|
|
1375
|
+
}
|
|
1376
|
+
function Pi(e, t = !1) {
|
|
1377
|
+
return e == null ? e : {
|
|
1378
|
+
name: e.name
|
|
1379
|
+
};
|
|
1380
|
+
}
|
|
1381
|
+
function bi(e) {
|
|
1382
|
+
return wi(e, !1);
|
|
1383
|
+
}
|
|
1384
|
+
function wi(e, t = !1) {
|
|
1385
|
+
return e == null ? e : {
|
|
1386
|
+
name: e.name
|
|
1387
|
+
};
|
|
1388
|
+
}
|
|
1389
|
+
class Si extends pt {
|
|
1390
|
+
/**
|
|
1391
|
+
*/
|
|
1392
|
+
async mediaPlayerPlaylistsGetRaw(t) {
|
|
1393
|
+
const r = {}, i = {}, o = await this.request({
|
|
1394
|
+
path: "/media-player/playlists",
|
|
1395
|
+
method: "GET",
|
|
1396
|
+
headers: i,
|
|
1397
|
+
query: r
|
|
1398
|
+
}, t);
|
|
1399
|
+
return new se(o, (c) => fi(c));
|
|
1400
|
+
}
|
|
1401
|
+
/**
|
|
1402
|
+
*/
|
|
1403
|
+
async mediaPlayerPlaylistsGet(t) {
|
|
1404
|
+
return await (await this.mediaPlayerPlaylistsGetRaw(t)).value();
|
|
1405
|
+
}
|
|
1406
|
+
/**
|
|
1407
|
+
*/
|
|
1408
|
+
async mediaPlayerPlaylistsIdDeleteRaw(t, r) {
|
|
1409
|
+
if (t.id == null)
|
|
1410
|
+
throw new Re(
|
|
1411
|
+
"id",
|
|
1412
|
+
'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdDelete().'
|
|
1413
|
+
);
|
|
1414
|
+
const i = {}, a = {};
|
|
1415
|
+
let o = "/media-player/playlists/{id}";
|
|
1416
|
+
o = o.replace("{id}", encodeURIComponent(String(t.id)));
|
|
1417
|
+
const c = await this.request({
|
|
1418
|
+
path: o,
|
|
1419
|
+
method: "DELETE",
|
|
1420
|
+
headers: a,
|
|
1421
|
+
query: i
|
|
1422
|
+
}, r);
|
|
1423
|
+
return new se(c);
|
|
1424
|
+
}
|
|
1425
|
+
/**
|
|
1426
|
+
*/
|
|
1427
|
+
async mediaPlayerPlaylistsIdDelete(t, r) {
|
|
1428
|
+
return await (await this.mediaPlayerPlaylistsIdDeleteRaw(t, r)).value();
|
|
1429
|
+
}
|
|
1430
|
+
/**
|
|
1431
|
+
*/
|
|
1432
|
+
async mediaPlayerPlaylistsIdGetRaw(t, r) {
|
|
1433
|
+
if (t.id == null)
|
|
1434
|
+
throw new Re(
|
|
1435
|
+
"id",
|
|
1436
|
+
'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdGet().'
|
|
1437
|
+
);
|
|
1438
|
+
const i = {}, a = {};
|
|
1439
|
+
let o = "/media-player/playlists/{id}";
|
|
1440
|
+
o = o.replace("{id}", encodeURIComponent(String(t.id)));
|
|
1441
|
+
const c = await this.request({
|
|
1442
|
+
path: o,
|
|
1443
|
+
method: "GET",
|
|
1444
|
+
headers: a,
|
|
1445
|
+
query: i
|
|
1446
|
+
}, r);
|
|
1447
|
+
return new se(c, (f) => ui(f));
|
|
1448
|
+
}
|
|
1449
|
+
/**
|
|
1450
|
+
*/
|
|
1451
|
+
async mediaPlayerPlaylistsIdGet(t, r) {
|
|
1452
|
+
return await (await this.mediaPlayerPlaylistsIdGetRaw(t, r)).value();
|
|
1453
|
+
}
|
|
1454
|
+
/**
|
|
1455
|
+
*/
|
|
1456
|
+
async mediaPlayerPlaylistsIdRenamePostRaw(t, r) {
|
|
1457
|
+
if (t.id == null)
|
|
1458
|
+
throw new Re(
|
|
1459
|
+
"id",
|
|
1460
|
+
'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdRenamePost().'
|
|
1461
|
+
);
|
|
1462
|
+
const i = {}, a = {};
|
|
1463
|
+
a["Content-Type"] = "application/json";
|
|
1464
|
+
let o = "/media-player/playlists/{id}:rename";
|
|
1465
|
+
o = o.replace("{id}", encodeURIComponent(String(t.id)));
|
|
1466
|
+
const c = await this.request({
|
|
1467
|
+
path: o,
|
|
1468
|
+
method: "POST",
|
|
1469
|
+
headers: a,
|
|
1470
|
+
query: i,
|
|
1471
|
+
body: bi(t.hydrangeanDivaMediaPlayerEndpointsPlaylistsRenamePlaylistRequest)
|
|
1472
|
+
}, r);
|
|
1473
|
+
return new se(c);
|
|
1474
|
+
}
|
|
1475
|
+
/**
|
|
1476
|
+
*/
|
|
1477
|
+
async mediaPlayerPlaylistsIdRenamePost(t, r) {
|
|
1478
|
+
return await (await this.mediaPlayerPlaylistsIdRenamePostRaw(t, r)).value();
|
|
1479
|
+
}
|
|
1480
|
+
/**
|
|
1481
|
+
*/
|
|
1482
|
+
async mediaPlayerPlaylistsIdTracksGetRaw(t, r) {
|
|
1483
|
+
if (t.id == null)
|
|
1484
|
+
throw new Re(
|
|
1485
|
+
"id",
|
|
1486
|
+
'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdTracksGet().'
|
|
1487
|
+
);
|
|
1488
|
+
const i = {}, a = {};
|
|
1489
|
+
let o = "/media-player/playlists/{id}/tracks";
|
|
1490
|
+
o = o.replace("{id}", encodeURIComponent(String(t.id)));
|
|
1491
|
+
const c = await this.request({
|
|
1492
|
+
path: o,
|
|
1493
|
+
method: "GET",
|
|
1494
|
+
headers: a,
|
|
1495
|
+
query: i
|
|
1496
|
+
}, r);
|
|
1497
|
+
return new se(c, (f) => mi(f));
|
|
1498
|
+
}
|
|
1499
|
+
/**
|
|
1500
|
+
*/
|
|
1501
|
+
async mediaPlayerPlaylistsIdTracksGet(t, r) {
|
|
1502
|
+
return await (await this.mediaPlayerPlaylistsIdTracksGetRaw(t, r)).value();
|
|
1503
|
+
}
|
|
1504
|
+
/**
|
|
1505
|
+
*/
|
|
1506
|
+
async mediaPlayerPlaylistsIdTracksPutRaw(t, r) {
|
|
1507
|
+
if (t.id == null)
|
|
1508
|
+
throw new Re(
|
|
1509
|
+
"id",
|
|
1510
|
+
'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdTracksPut().'
|
|
1511
|
+
);
|
|
1512
|
+
const i = {}, a = {};
|
|
1513
|
+
let o = "/media-player/playlists/{id}/tracks";
|
|
1514
|
+
o = o.replace("{id}", encodeURIComponent(String(t.id)));
|
|
1515
|
+
const c = await this.request({
|
|
1516
|
+
path: o,
|
|
1517
|
+
method: "PUT",
|
|
1518
|
+
headers: a,
|
|
1519
|
+
query: i
|
|
1520
|
+
}, r);
|
|
1521
|
+
return new se(c);
|
|
1522
|
+
}
|
|
1523
|
+
/**
|
|
1524
|
+
*/
|
|
1525
|
+
async mediaPlayerPlaylistsIdTracksPut(t, r) {
|
|
1526
|
+
return await (await this.mediaPlayerPlaylistsIdTracksPutRaw(t, r)).value();
|
|
1527
|
+
}
|
|
1528
|
+
/**
|
|
1529
|
+
*/
|
|
1530
|
+
async mediaPlayerPlaylistsPostRaw(t, r) {
|
|
1531
|
+
const i = {}, a = {};
|
|
1532
|
+
a["Content-Type"] = "application/json";
|
|
1533
|
+
const c = await this.request({
|
|
1534
|
+
path: "/media-player/playlists",
|
|
1535
|
+
method: "POST",
|
|
1536
|
+
headers: a,
|
|
1537
|
+
query: i,
|
|
1538
|
+
body: gi(t.hydrangeanDivaMediaPlayerEndpointsPlaylistsCreatePlaylistRequest)
|
|
1539
|
+
}, r);
|
|
1540
|
+
return new se(c);
|
|
1541
|
+
}
|
|
1542
|
+
/**
|
|
1543
|
+
*/
|
|
1544
|
+
async mediaPlayerPlaylistsPost(t = {}, r) {
|
|
1545
|
+
return await (await this.mediaPlayerPlaylistsPostRaw(t, r)).value();
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
const Ei = new lr({
|
|
1549
|
+
basePath: new URL("api", window.location.origin).toString()
|
|
1550
|
+
}), Ri = new Si(
|
|
1551
|
+
Ei
|
|
1552
|
+
), Ti = ({
|
|
1553
|
+
disabled: e,
|
|
1554
|
+
onAddToPlaylist: t
|
|
1555
|
+
}) => {
|
|
1556
|
+
const [r, i] = z(!1), [a, o] = z(
|
|
1557
|
+
"loading"
|
|
1558
|
+
);
|
|
1559
|
+
return Ut(() => {
|
|
1560
|
+
Ri.mediaPlayerPlaylistsGet().then(
|
|
1561
|
+
(c) => o(
|
|
1562
|
+
c.items.map((f) => ({
|
|
1563
|
+
key: f.id,
|
|
1564
|
+
label: f.name
|
|
1565
|
+
}))
|
|
1566
|
+
)
|
|
1567
|
+
);
|
|
1568
|
+
}, []), /* @__PURE__ */ s(
|
|
1569
|
+
xe,
|
|
1570
|
+
{
|
|
1571
|
+
panelPaddingSize: "none",
|
|
1572
|
+
button: /* @__PURE__ */ s(
|
|
1573
|
+
Q,
|
|
1574
|
+
{
|
|
1575
|
+
iconType: Te,
|
|
1576
|
+
onClick: () => i(!r),
|
|
1577
|
+
disabled: e,
|
|
1578
|
+
children: "Add to"
|
|
1579
|
+
}
|
|
1580
|
+
),
|
|
1581
|
+
isOpen: r,
|
|
1582
|
+
closePopover: () => i(!1),
|
|
1583
|
+
children: /* @__PURE__ */ s(
|
|
1584
|
+
Lr,
|
|
1585
|
+
{
|
|
1586
|
+
searchable: !0,
|
|
1587
|
+
searchProps: {
|
|
1588
|
+
compressed: !0
|
|
1589
|
+
},
|
|
1590
|
+
options: a === "loading" ? void 0 : a,
|
|
1591
|
+
isLoading: a === "loading",
|
|
1592
|
+
onChange: async (c, f, p) => {
|
|
1593
|
+
i(!1), await t(p);
|
|
1594
|
+
},
|
|
1595
|
+
singleSelection: !0,
|
|
1596
|
+
children: (c, f) => /* @__PURE__ */ M("div", { style: { width: 240 }, children: [
|
|
1597
|
+
/* @__PURE__ */ s(Vr, { paddingSize: "s", children: f }),
|
|
1598
|
+
c,
|
|
1599
|
+
/* @__PURE__ */ s(Ur, { paddingSize: "s", children: /* @__PURE__ */ s(Q, { size: "s", fullWidth: !0, iconType: Te, children: "New playlist" }) })
|
|
1600
|
+
] })
|
|
1601
|
+
}
|
|
1602
|
+
)
|
|
1603
|
+
}
|
|
1604
|
+
);
|
|
1605
|
+
}, Ci = ({
|
|
1131
1606
|
onCancel: e,
|
|
1132
1607
|
onSave: t
|
|
1133
1608
|
}) => {
|
|
1134
|
-
const
|
|
1135
|
-
return /* @__PURE__ */
|
|
1136
|
-
/* @__PURE__ */
|
|
1137
|
-
/* @__PURE__ */
|
|
1138
|
-
|
|
1609
|
+
const r = Yr({ prefix: "modalForm" }), [i, a] = z(""), [o, c] = z(""), [f, p] = z(!1);
|
|
1610
|
+
return /* @__PURE__ */ M(Kr, { onClose: e, initialFocus: "[name=url]", children: [
|
|
1611
|
+
/* @__PURE__ */ s(Hr, { children: /* @__PURE__ */ s(Wr, { children: "Add video" }) }),
|
|
1612
|
+
/* @__PURE__ */ s(Jr, { children: /* @__PURE__ */ M(
|
|
1613
|
+
Gr,
|
|
1139
1614
|
{
|
|
1140
|
-
id:
|
|
1615
|
+
id: r,
|
|
1141
1616
|
component: "form",
|
|
1142
|
-
onSubmit: async (
|
|
1143
|
-
|
|
1617
|
+
onSubmit: async (m) => {
|
|
1618
|
+
m.preventDefault();
|
|
1144
1619
|
try {
|
|
1145
|
-
|
|
1620
|
+
p(!0), await t({ url: i, title: o });
|
|
1146
1621
|
} finally {
|
|
1147
|
-
|
|
1622
|
+
p(!1);
|
|
1148
1623
|
}
|
|
1149
1624
|
},
|
|
1150
1625
|
children: [
|
|
1151
|
-
/* @__PURE__ */
|
|
1152
|
-
|
|
1626
|
+
/* @__PURE__ */ s(at, { label: "URL", children: /* @__PURE__ */ s(
|
|
1627
|
+
xt,
|
|
1153
1628
|
{
|
|
1154
1629
|
name: "url",
|
|
1155
1630
|
value: i,
|
|
1156
|
-
onChange: (
|
|
1631
|
+
onChange: (m) => a(m.target.value)
|
|
1157
1632
|
}
|
|
1158
1633
|
) }),
|
|
1159
|
-
/* @__PURE__ */
|
|
1160
|
-
|
|
1634
|
+
/* @__PURE__ */ s(at, { label: "Title", children: /* @__PURE__ */ s(
|
|
1635
|
+
xt,
|
|
1161
1636
|
{
|
|
1162
1637
|
name: "title",
|
|
1163
|
-
value:
|
|
1164
|
-
onChange: (
|
|
1638
|
+
value: o,
|
|
1639
|
+
onChange: (m) => c(m.target.value)
|
|
1165
1640
|
}
|
|
1166
1641
|
) })
|
|
1167
1642
|
]
|
|
1168
1643
|
}
|
|
1169
1644
|
) }),
|
|
1170
|
-
/* @__PURE__ */
|
|
1171
|
-
/* @__PURE__ */
|
|
1172
|
-
/* @__PURE__ */
|
|
1173
|
-
|
|
1645
|
+
/* @__PURE__ */ M(Qr, { children: [
|
|
1646
|
+
/* @__PURE__ */ s(Yt, { onClick: e, children: "Cancel" }),
|
|
1647
|
+
/* @__PURE__ */ s(
|
|
1648
|
+
Q,
|
|
1174
1649
|
{
|
|
1175
1650
|
type: "submit",
|
|
1176
|
-
form:
|
|
1651
|
+
form: r,
|
|
1177
1652
|
fill: !0,
|
|
1178
1653
|
disabled: i.trim().length === 0,
|
|
1179
|
-
isLoading:
|
|
1654
|
+
isLoading: f,
|
|
1180
1655
|
children: "Add video"
|
|
1181
1656
|
}
|
|
1182
1657
|
)
|
|
1183
1658
|
] })
|
|
1184
1659
|
] });
|
|
1185
|
-
},
|
|
1660
|
+
}, qt = re(
|
|
1186
1661
|
({ onSave: e }) => {
|
|
1187
|
-
const [t,
|
|
1662
|
+
const [t, r] = z(!1), i = $(
|
|
1188
1663
|
async (a) => {
|
|
1189
|
-
await e(a),
|
|
1664
|
+
await e(a), r(!1);
|
|
1190
1665
|
},
|
|
1191
1666
|
[e]
|
|
1192
1667
|
);
|
|
1193
|
-
return /* @__PURE__ */
|
|
1194
|
-
/* @__PURE__ */
|
|
1195
|
-
|
|
1668
|
+
return /* @__PURE__ */ M(Ye, { children: [
|
|
1669
|
+
/* @__PURE__ */ s(
|
|
1670
|
+
Q,
|
|
1196
1671
|
{
|
|
1197
|
-
onClick: () =>
|
|
1198
|
-
iconType:
|
|
1672
|
+
onClick: () => r(!0),
|
|
1673
|
+
iconType: Te,
|
|
1199
1674
|
color: "primary",
|
|
1200
1675
|
children: "Add video"
|
|
1201
1676
|
}
|
|
1202
1677
|
),
|
|
1203
|
-
t && /* @__PURE__ */
|
|
1204
|
-
|
|
1678
|
+
t && /* @__PURE__ */ s(
|
|
1679
|
+
Ci,
|
|
1205
1680
|
{
|
|
1206
|
-
onCancel: () =>
|
|
1681
|
+
onCancel: () => r(!1),
|
|
1207
1682
|
onSave: i
|
|
1208
1683
|
}
|
|
1209
1684
|
)
|
|
1210
1685
|
] });
|
|
1211
1686
|
}
|
|
1212
|
-
),
|
|
1687
|
+
), fr = {
|
|
1213
1688
|
Audio: "",
|
|
1214
1689
|
Dailymotion: "https://www.dailymotion.com/favicon.ico",
|
|
1215
1690
|
Niconico: "https://www.nicovideo.jp/favicon.ico",
|
|
@@ -1217,11 +1692,11 @@ const qn = ({
|
|
|
1217
1692
|
Twitch: "https://www.twitch.tv/favicon.ico",
|
|
1218
1693
|
Vimeo: "https://vimeo.com/favicon.ico",
|
|
1219
1694
|
YouTube: "https://www.youtube.com/favicon.ico"
|
|
1220
|
-
},
|
|
1695
|
+
}, Ii = C(
|
|
1221
1696
|
({ playQueueStore: e }) => {
|
|
1222
|
-
const { euiTheme: t } =
|
|
1223
|
-
return /* @__PURE__ */
|
|
1224
|
-
|
|
1697
|
+
const { euiTheme: t } = Wt();
|
|
1698
|
+
return /* @__PURE__ */ M(
|
|
1699
|
+
Xr,
|
|
1225
1700
|
{
|
|
1226
1701
|
style: {
|
|
1227
1702
|
position: "sticky",
|
|
@@ -1230,50 +1705,50 @@ const qn = ({
|
|
|
1230
1705
|
background: t.colors.backgroundBasePlain
|
|
1231
1706
|
},
|
|
1232
1707
|
children: [
|
|
1233
|
-
/* @__PURE__ */
|
|
1234
|
-
|
|
1708
|
+
/* @__PURE__ */ s(Br, { children: /* @__PURE__ */ s(
|
|
1709
|
+
Ht,
|
|
1235
1710
|
{
|
|
1236
1711
|
id: "",
|
|
1237
1712
|
checked: e.allItemsSelected,
|
|
1238
|
-
onChange: (
|
|
1239
|
-
e.allItemsSelected =
|
|
1713
|
+
onChange: (r) => {
|
|
1714
|
+
e.allItemsSelected = r.target.checked;
|
|
1240
1715
|
}
|
|
1241
1716
|
}
|
|
1242
1717
|
) }),
|
|
1243
|
-
/* @__PURE__ */
|
|
1244
|
-
/* @__PURE__ */
|
|
1245
|
-
/* @__PURE__ */
|
|
1718
|
+
/* @__PURE__ */ s(tt, { width: 24 }),
|
|
1719
|
+
/* @__PURE__ */ s(tt, { children: "Title" }),
|
|
1720
|
+
/* @__PURE__ */ s(tt, {})
|
|
1246
1721
|
]
|
|
1247
1722
|
}
|
|
1248
1723
|
);
|
|
1249
1724
|
}
|
|
1250
|
-
),
|
|
1725
|
+
), xi = re(
|
|
1251
1726
|
({
|
|
1252
1727
|
item: e,
|
|
1253
1728
|
closePopover: t
|
|
1254
1729
|
}) => {
|
|
1255
|
-
const
|
|
1730
|
+
const r = Ve(
|
|
1256
1731
|
() => [
|
|
1257
1732
|
{
|
|
1258
1733
|
id: 0,
|
|
1259
1734
|
items: [
|
|
1260
1735
|
{
|
|
1261
1736
|
name: "Play first",
|
|
1262
|
-
icon: /* @__PURE__ */
|
|
1737
|
+
icon: /* @__PURE__ */ s(Y, { type: "" }),
|
|
1263
1738
|
onClick: async () => {
|
|
1264
1739
|
t(), await e.playFirst();
|
|
1265
1740
|
}
|
|
1266
1741
|
},
|
|
1267
1742
|
{
|
|
1268
1743
|
name: "Play next",
|
|
1269
|
-
icon: /* @__PURE__ */
|
|
1744
|
+
icon: /* @__PURE__ */ s(Y, { type: "" }),
|
|
1270
1745
|
onClick: async () => {
|
|
1271
1746
|
t(), await e.playNext();
|
|
1272
1747
|
}
|
|
1273
1748
|
},
|
|
1274
1749
|
{
|
|
1275
1750
|
name: "Add to play queue",
|
|
1276
|
-
icon: /* @__PURE__ */
|
|
1751
|
+
icon: /* @__PURE__ */ s(Y, { type: Te }),
|
|
1277
1752
|
onClick: async () => {
|
|
1278
1753
|
t(), await e.addToPlayQueue();
|
|
1279
1754
|
}
|
|
@@ -1283,7 +1758,7 @@ const qn = ({
|
|
|
1283
1758
|
},
|
|
1284
1759
|
{
|
|
1285
1760
|
name: "Move to the top",
|
|
1286
|
-
icon: /* @__PURE__ */
|
|
1761
|
+
icon: /* @__PURE__ */ s(Y, { type: cn }),
|
|
1287
1762
|
onClick: async () => {
|
|
1288
1763
|
t(), e.moveToTop();
|
|
1289
1764
|
},
|
|
@@ -1291,7 +1766,7 @@ const qn = ({
|
|
|
1291
1766
|
},
|
|
1292
1767
|
{
|
|
1293
1768
|
name: "Move to the bottom",
|
|
1294
|
-
icon: /* @__PURE__ */
|
|
1769
|
+
icon: /* @__PURE__ */ s(Y, { type: un }),
|
|
1295
1770
|
onClick: async () => {
|
|
1296
1771
|
t(), e.moveToBottom();
|
|
1297
1772
|
},
|
|
@@ -1302,7 +1777,7 @@ const qn = ({
|
|
|
1302
1777
|
},
|
|
1303
1778
|
{
|
|
1304
1779
|
name: "Remove to the top",
|
|
1305
|
-
icon: /* @__PURE__ */
|
|
1780
|
+
icon: /* @__PURE__ */ s(Y, { type: "" }),
|
|
1306
1781
|
onClick: async () => {
|
|
1307
1782
|
t(), await e.removeToTop();
|
|
1308
1783
|
},
|
|
@@ -1310,7 +1785,7 @@ const qn = ({
|
|
|
1310
1785
|
},
|
|
1311
1786
|
{
|
|
1312
1787
|
name: "Remove others",
|
|
1313
|
-
icon: /* @__PURE__ */
|
|
1788
|
+
icon: /* @__PURE__ */ s(Y, { type: "" }),
|
|
1314
1789
|
onClick: async () => {
|
|
1315
1790
|
t(), await e.removeOthers();
|
|
1316
1791
|
},
|
|
@@ -1321,20 +1796,20 @@ const qn = ({
|
|
|
1321
1796
|
],
|
|
1322
1797
|
[t, e]
|
|
1323
1798
|
);
|
|
1324
|
-
return /* @__PURE__ */
|
|
1799
|
+
return /* @__PURE__ */ s(ut, { initialPanelId: 0, panels: r });
|
|
1325
1800
|
}
|
|
1326
|
-
),
|
|
1801
|
+
), Oi = re(
|
|
1327
1802
|
({ item: e }) => {
|
|
1328
|
-
const [t,
|
|
1329
|
-
return /* @__PURE__ */
|
|
1330
|
-
|
|
1803
|
+
const [t, r] = z(!1), i = $(() => r(!t), [t]), a = $(() => r(!1), []);
|
|
1804
|
+
return /* @__PURE__ */ s(
|
|
1805
|
+
xe,
|
|
1331
1806
|
{
|
|
1332
|
-
button: /* @__PURE__ */
|
|
1333
|
-
|
|
1807
|
+
button: /* @__PURE__ */ s(
|
|
1808
|
+
W,
|
|
1334
1809
|
{
|
|
1335
1810
|
title: "More options",
|
|
1336
1811
|
"aria-label": "More options",
|
|
1337
|
-
iconType:
|
|
1812
|
+
iconType: Qt,
|
|
1338
1813
|
size: "s",
|
|
1339
1814
|
color: "text",
|
|
1340
1815
|
onClick: i
|
|
@@ -1344,8 +1819,8 @@ const qn = ({
|
|
|
1344
1819
|
closePopover: a,
|
|
1345
1820
|
panelPaddingSize: "none",
|
|
1346
1821
|
anchorPosition: "leftCenter",
|
|
1347
|
-
children: /* @__PURE__ */
|
|
1348
|
-
|
|
1822
|
+
children: /* @__PURE__ */ s(
|
|
1823
|
+
xi,
|
|
1349
1824
|
{
|
|
1350
1825
|
item: e,
|
|
1351
1826
|
closePopover: a
|
|
@@ -1354,14 +1829,14 @@ const qn = ({
|
|
|
1354
1829
|
}
|
|
1355
1830
|
);
|
|
1356
1831
|
}
|
|
1357
|
-
),
|
|
1832
|
+
), _i = C(
|
|
1358
1833
|
({ item: e }) => {
|
|
1359
|
-
const t =
|
|
1360
|
-
return /* @__PURE__ */
|
|
1361
|
-
/* @__PURE__ */
|
|
1362
|
-
|
|
1834
|
+
const t = le();
|
|
1835
|
+
return /* @__PURE__ */ M(st, { textOnly: !1, hasActions: !0, align: "right", children: [
|
|
1836
|
+
/* @__PURE__ */ s(
|
|
1837
|
+
Q,
|
|
1363
1838
|
{
|
|
1364
|
-
iconType:
|
|
1839
|
+
iconType: ln,
|
|
1365
1840
|
size: "s",
|
|
1366
1841
|
onClick: async () => {
|
|
1367
1842
|
e.isCurrent ? await t.setCurrentTime(0) : e.play();
|
|
@@ -1369,41 +1844,41 @@ const qn = ({
|
|
|
1369
1844
|
children: "Play"
|
|
1370
1845
|
}
|
|
1371
1846
|
),
|
|
1372
|
-
/* @__PURE__ */
|
|
1373
|
-
|
|
1847
|
+
/* @__PURE__ */ s(
|
|
1848
|
+
Q,
|
|
1374
1849
|
{
|
|
1375
|
-
iconType:
|
|
1850
|
+
iconType: ft,
|
|
1376
1851
|
size: "s",
|
|
1377
1852
|
onClick: e.remove,
|
|
1378
1853
|
children: "Remove"
|
|
1379
1854
|
}
|
|
1380
1855
|
),
|
|
1381
|
-
/* @__PURE__ */
|
|
1856
|
+
/* @__PURE__ */ s(Oi, { item: e })
|
|
1382
1857
|
] });
|
|
1383
1858
|
}
|
|
1384
|
-
),
|
|
1859
|
+
), ki = C(
|
|
1385
1860
|
({ item: e }) => {
|
|
1386
|
-
const t =
|
|
1387
|
-
return /* @__PURE__ */
|
|
1388
|
-
/* @__PURE__ */
|
|
1389
|
-
|
|
1861
|
+
const t = le();
|
|
1862
|
+
return /* @__PURE__ */ M(tn, { isSelected: e.isCurrent, children: [
|
|
1863
|
+
/* @__PURE__ */ s(Zr, { children: /* @__PURE__ */ s(
|
|
1864
|
+
Ht,
|
|
1390
1865
|
{
|
|
1391
1866
|
id: e.id.toString(),
|
|
1392
1867
|
checked: e.isSelected,
|
|
1393
1868
|
onChange: e.toggleSelected
|
|
1394
1869
|
}
|
|
1395
1870
|
) }),
|
|
1396
|
-
/* @__PURE__ */
|
|
1871
|
+
/* @__PURE__ */ s(st, { textOnly: !1, children: /* @__PURE__ */ s(
|
|
1397
1872
|
"img",
|
|
1398
1873
|
{
|
|
1399
|
-
src:
|
|
1874
|
+
src: fr[e.type],
|
|
1400
1875
|
width: 16,
|
|
1401
1876
|
height: 16,
|
|
1402
1877
|
alt: e.type
|
|
1403
1878
|
}
|
|
1404
1879
|
) }),
|
|
1405
|
-
/* @__PURE__ */
|
|
1406
|
-
|
|
1880
|
+
/* @__PURE__ */ s(st, { children: /* @__PURE__ */ s(
|
|
1881
|
+
en,
|
|
1407
1882
|
{
|
|
1408
1883
|
href: e.url,
|
|
1409
1884
|
target: "_blank",
|
|
@@ -1412,51 +1887,51 @@ const qn = ({
|
|
|
1412
1887
|
children: e.title
|
|
1413
1888
|
}
|
|
1414
1889
|
) }),
|
|
1415
|
-
/* @__PURE__ */
|
|
1890
|
+
/* @__PURE__ */ s(_i, { item: e })
|
|
1416
1891
|
] }, e.id);
|
|
1417
1892
|
}
|
|
1418
|
-
),
|
|
1419
|
-
({ playQueueStore: e }) => /* @__PURE__ */
|
|
1420
|
-
|
|
1893
|
+
), Ai = C(
|
|
1894
|
+
({ playQueueStore: e }) => /* @__PURE__ */ s(
|
|
1895
|
+
On,
|
|
1421
1896
|
{
|
|
1422
1897
|
tag: "tbody",
|
|
1423
1898
|
list: e.items,
|
|
1424
1899
|
setList: (t) => e.setItems(t),
|
|
1425
|
-
children: e.items.map((t) => /* @__PURE__ */
|
|
1900
|
+
children: e.items.map((t) => /* @__PURE__ */ s(ki, { item: t }, t.id))
|
|
1426
1901
|
}
|
|
1427
1902
|
)
|
|
1428
|
-
),
|
|
1429
|
-
({ playQueueStore: e }) => /* @__PURE__ */
|
|
1430
|
-
/* @__PURE__ */
|
|
1431
|
-
/* @__PURE__ */
|
|
1903
|
+
), Di = C(
|
|
1904
|
+
({ playQueueStore: e }) => /* @__PURE__ */ M(rn, { children: [
|
|
1905
|
+
/* @__PURE__ */ s(Ii, { playQueueStore: e }),
|
|
1906
|
+
/* @__PURE__ */ s(Ai, { playQueueStore: e })
|
|
1432
1907
|
] })
|
|
1433
1908
|
);
|
|
1434
|
-
function
|
|
1909
|
+
function Mi(e) {
|
|
1435
1910
|
return e !== null && typeof e == "object" && "title" in e && typeof e.title == "string";
|
|
1436
1911
|
}
|
|
1437
|
-
const
|
|
1438
|
-
({ playQueueStore: e }) => /* @__PURE__ */
|
|
1439
|
-
|
|
1912
|
+
const Fi = C(
|
|
1913
|
+
({ playQueueStore: e }) => /* @__PURE__ */ s(
|
|
1914
|
+
Q,
|
|
1440
1915
|
{
|
|
1441
|
-
iconType:
|
|
1916
|
+
iconType: Te,
|
|
1442
1917
|
onClick: e.addSelectedItems,
|
|
1443
1918
|
disabled: e.isEmpty || e.selectedItems.length === 0,
|
|
1444
1919
|
children: "Add to play queue"
|
|
1445
1920
|
}
|
|
1446
1921
|
)
|
|
1447
1922
|
);
|
|
1448
|
-
|
|
1923
|
+
C(
|
|
1449
1924
|
({ playQueueStore: e }) => {
|
|
1450
|
-
const [t,
|
|
1451
|
-
return /* @__PURE__ */
|
|
1452
|
-
t && /* @__PURE__ */
|
|
1453
|
-
|
|
1925
|
+
const [t, r] = z(!1);
|
|
1926
|
+
return /* @__PURE__ */ M(Ye, { children: [
|
|
1927
|
+
t && /* @__PURE__ */ s(
|
|
1928
|
+
an,
|
|
1454
1929
|
{
|
|
1455
1930
|
type: "push",
|
|
1456
1931
|
size: "s",
|
|
1457
|
-
onClose: () =>
|
|
1458
|
-
children: /* @__PURE__ */
|
|
1459
|
-
|
|
1932
|
+
onClose: () => r(!1),
|
|
1933
|
+
children: /* @__PURE__ */ s("div", { style: { blockSize: "100%" }, children: /* @__PURE__ */ s(
|
|
1934
|
+
nn,
|
|
1460
1935
|
{
|
|
1461
1936
|
language: "json",
|
|
1462
1937
|
overflowHeight: "100%",
|
|
@@ -1471,36 +1946,37 @@ P(
|
|
|
1471
1946
|
) })
|
|
1472
1947
|
}
|
|
1473
1948
|
),
|
|
1474
|
-
/* @__PURE__ */
|
|
1475
|
-
|
|
1949
|
+
/* @__PURE__ */ s(
|
|
1950
|
+
Q,
|
|
1476
1951
|
{
|
|
1477
|
-
onClick: () =>
|
|
1478
|
-
iconType:
|
|
1952
|
+
onClick: () => r((i) => !i),
|
|
1953
|
+
iconType: dn,
|
|
1479
1954
|
children: "Developer tools"
|
|
1480
1955
|
}
|
|
1481
1956
|
)
|
|
1482
1957
|
] });
|
|
1483
1958
|
}
|
|
1484
1959
|
);
|
|
1485
|
-
const
|
|
1960
|
+
const Ni = C(
|
|
1486
1961
|
({ playQueueStore: e }) => {
|
|
1487
|
-
const { euiTheme: t } =
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1962
|
+
const { euiTheme: t } = Wt(), r = $(async () => {
|
|
1963
|
+
}, []), i = $(
|
|
1964
|
+
async (a) => {
|
|
1965
|
+
const o = Tn(a.url);
|
|
1966
|
+
if (o !== void 0) {
|
|
1967
|
+
const c = o.extractVideoId(a.url);
|
|
1968
|
+
if (c !== void 0) {
|
|
1969
|
+
const p = await (await fetch(
|
|
1494
1970
|
`https://noembed.com/embed?url=${encodeURIComponent(
|
|
1495
|
-
|
|
1971
|
+
a.url
|
|
1496
1972
|
)}`
|
|
1497
1973
|
)).json();
|
|
1498
1974
|
await e.addItems([
|
|
1499
1975
|
e.createItem({
|
|
1500
|
-
url:
|
|
1501
|
-
type:
|
|
1502
|
-
videoId:
|
|
1503
|
-
title:
|
|
1976
|
+
url: a.url,
|
|
1977
|
+
type: o.type,
|
|
1978
|
+
videoId: c,
|
|
1979
|
+
title: a.title || (Mi(p) ? p.title : c)
|
|
1504
1980
|
})
|
|
1505
1981
|
]);
|
|
1506
1982
|
}
|
|
@@ -1508,9 +1984,9 @@ const ri = P(
|
|
|
1508
1984
|
},
|
|
1509
1985
|
[e]
|
|
1510
1986
|
);
|
|
1511
|
-
return /* @__PURE__ */
|
|
1512
|
-
/* @__PURE__ */
|
|
1513
|
-
|
|
1987
|
+
return /* @__PURE__ */ M(Ye, { children: [
|
|
1988
|
+
/* @__PURE__ */ M(
|
|
1989
|
+
oe,
|
|
1514
1990
|
{
|
|
1515
1991
|
alignItems: "center",
|
|
1516
1992
|
gutterSize: "m",
|
|
@@ -1521,43 +1997,50 @@ const ri = P(
|
|
|
1521
1997
|
background: t.colors.backgroundBasePlain
|
|
1522
1998
|
},
|
|
1523
1999
|
children: [
|
|
1524
|
-
/* @__PURE__ */
|
|
1525
|
-
|
|
2000
|
+
/* @__PURE__ */ s(J, { grow: !1, children: /* @__PURE__ */ s(
|
|
2001
|
+
Q,
|
|
1526
2002
|
{
|
|
1527
2003
|
disabled: e.isEmpty || e.selectedItems.length === 0,
|
|
1528
2004
|
onClick: e.playSelectedItemsNext,
|
|
1529
2005
|
children: "Play next"
|
|
1530
2006
|
}
|
|
1531
2007
|
) }),
|
|
1532
|
-
/* @__PURE__ */
|
|
1533
|
-
/* @__PURE__ */
|
|
1534
|
-
|
|
2008
|
+
/* @__PURE__ */ s(J, { grow: !1, children: /* @__PURE__ */ s(Fi, { playQueueStore: e }) }),
|
|
2009
|
+
/* @__PURE__ */ s(J, { grow: !1, children: /* @__PURE__ */ s(
|
|
2010
|
+
Ti,
|
|
2011
|
+
{
|
|
2012
|
+
disabled: !ri.mediaPlayer.enablePlaylists,
|
|
2013
|
+
onAddToPlaylist: r
|
|
2014
|
+
}
|
|
2015
|
+
) }),
|
|
2016
|
+
/* @__PURE__ */ s(J, { grow: !1, children: /* @__PURE__ */ s(
|
|
2017
|
+
Q,
|
|
1535
2018
|
{
|
|
1536
|
-
iconType:
|
|
2019
|
+
iconType: ft,
|
|
1537
2020
|
onClick: e.removeSelectedItems,
|
|
1538
2021
|
disabled: e.isEmpty || e.selectedItems.length === 0,
|
|
1539
2022
|
children: "Remove"
|
|
1540
2023
|
}
|
|
1541
2024
|
) }),
|
|
1542
|
-
/* @__PURE__ */
|
|
1543
|
-
|
|
2025
|
+
/* @__PURE__ */ s(J, { grow: !1, children: /* @__PURE__ */ s(
|
|
2026
|
+
Q,
|
|
1544
2027
|
{
|
|
1545
|
-
iconType:
|
|
2028
|
+
iconType: fn,
|
|
1546
2029
|
onClick: e.clear,
|
|
1547
2030
|
disabled: e.isEmpty,
|
|
1548
2031
|
children: "Clear"
|
|
1549
2032
|
}
|
|
1550
2033
|
) }),
|
|
1551
|
-
/* @__PURE__ */
|
|
1552
|
-
/* @__PURE__ */
|
|
2034
|
+
/* @__PURE__ */ s(J, { grow: !0 }),
|
|
2035
|
+
/* @__PURE__ */ M(J, { grow: !1, children: [
|
|
1553
2036
|
!1,
|
|
1554
|
-
/* @__PURE__ */
|
|
2037
|
+
/* @__PURE__ */ s(qt, { onSave: i })
|
|
1555
2038
|
] })
|
|
1556
2039
|
]
|
|
1557
2040
|
}
|
|
1558
2041
|
),
|
|
1559
|
-
/* @__PURE__ */
|
|
1560
|
-
|
|
2042
|
+
/* @__PURE__ */ s(
|
|
2043
|
+
Gt,
|
|
1561
2044
|
{
|
|
1562
2045
|
size: "l",
|
|
1563
2046
|
style: {
|
|
@@ -1568,30 +2051,30 @@ const ri = P(
|
|
|
1568
2051
|
}
|
|
1569
2052
|
}
|
|
1570
2053
|
),
|
|
1571
|
-
e.isEmpty ? /* @__PURE__ */
|
|
1572
|
-
|
|
2054
|
+
e.isEmpty ? /* @__PURE__ */ s(
|
|
2055
|
+
sn,
|
|
1573
2056
|
{
|
|
1574
|
-
title: /* @__PURE__ */
|
|
1575
|
-
body: /* @__PURE__ */
|
|
1576
|
-
actions: /* @__PURE__ */
|
|
2057
|
+
title: /* @__PURE__ */ s("h2", { children: "We couldn't find any videos" }),
|
|
2058
|
+
body: /* @__PURE__ */ s("p", { children: "Your video library doesn't contain any video content." }),
|
|
2059
|
+
actions: /* @__PURE__ */ s(qt, { onSave: i })
|
|
1577
2060
|
}
|
|
1578
|
-
) : /* @__PURE__ */
|
|
2061
|
+
) : /* @__PURE__ */ s(Di, { playQueueStore: e })
|
|
1579
2062
|
] });
|
|
1580
2063
|
}
|
|
1581
|
-
),
|
|
2064
|
+
), it = new _n({
|
|
1582
2065
|
coerceTypes: !0
|
|
1583
2066
|
});
|
|
1584
|
-
function
|
|
1585
|
-
let
|
|
1586
|
-
if (
|
|
2067
|
+
function $i(e, t) {
|
|
2068
|
+
let r;
|
|
2069
|
+
if (r = it.getSchema(t), r === void 0 && (it.addSchema(e, t), r = it.getSchema(t)), r === void 0 || r.schema !== e)
|
|
1587
2070
|
throw new Error(
|
|
1588
2071
|
`Invalid schema. Expected: '${JSON.stringify(
|
|
1589
2072
|
e
|
|
1590
|
-
)}', but got '${JSON.stringify(
|
|
2073
|
+
)}', but got '${JSON.stringify(r?.schema)}'.`
|
|
1591
2074
|
);
|
|
1592
|
-
return
|
|
2075
|
+
return r;
|
|
1593
2076
|
}
|
|
1594
|
-
const
|
|
2077
|
+
const ji = {
|
|
1595
2078
|
type: "object",
|
|
1596
2079
|
properties: {
|
|
1597
2080
|
url: {
|
|
@@ -1608,9 +2091,7 @@ const ii = {
|
|
|
1608
2091
|
}
|
|
1609
2092
|
},
|
|
1610
2093
|
required: ["url", "type", "videoId", "title"]
|
|
1611
|
-
}
|
|
1612
|
-
var O = /* @__PURE__ */ ((e) => (e.Off = "Off", e.All = "All", e.One = "One", e))(O || {});
|
|
1613
|
-
const oi = {
|
|
2094
|
+
}, zi = {
|
|
1614
2095
|
type: "object",
|
|
1615
2096
|
properties: {
|
|
1616
2097
|
version: {
|
|
@@ -1619,7 +2100,7 @@ const oi = {
|
|
|
1619
2100
|
},
|
|
1620
2101
|
repeat: {
|
|
1621
2102
|
type: "string",
|
|
1622
|
-
enum: Object.values(
|
|
2103
|
+
enum: Object.values(N),
|
|
1623
2104
|
nullable: !0
|
|
1624
2105
|
},
|
|
1625
2106
|
shuffle: {
|
|
@@ -1629,7 +2110,7 @@ const oi = {
|
|
|
1629
2110
|
items: {
|
|
1630
2111
|
type: "array",
|
|
1631
2112
|
nullable: !0,
|
|
1632
|
-
items:
|
|
2113
|
+
items: ji
|
|
1633
2114
|
},
|
|
1634
2115
|
currentIndex: {
|
|
1635
2116
|
type: "integer",
|
|
@@ -1637,38 +2118,38 @@ const oi = {
|
|
|
1637
2118
|
}
|
|
1638
2119
|
}
|
|
1639
2120
|
};
|
|
1640
|
-
class
|
|
1641
|
-
constructor(t,
|
|
1642
|
-
this.observableStateProvider = t, this.playQueueStore =
|
|
1643
|
-
isSelected:
|
|
1644
|
-
isCurrent:
|
|
1645
|
-
index:
|
|
1646
|
-
isFirst:
|
|
1647
|
-
isLast:
|
|
1648
|
-
canMoveToTop:
|
|
1649
|
-
canMoveToBottom:
|
|
1650
|
-
canRemoveToTop:
|
|
1651
|
-
canRemoveOthers:
|
|
1652
|
-
unselect:
|
|
1653
|
-
toggleSelected:
|
|
1654
|
-
play:
|
|
1655
|
-
remove:
|
|
1656
|
-
playFirst:
|
|
1657
|
-
playNext:
|
|
1658
|
-
addToPlayQueue:
|
|
1659
|
-
moveToTop:
|
|
1660
|
-
moveToBottom:
|
|
1661
|
-
removeToTop:
|
|
1662
|
-
removeOthers:
|
|
2121
|
+
class Le {
|
|
2122
|
+
constructor(t, r, i) {
|
|
2123
|
+
this.observableStateProvider = t, this.playQueueStore = r, this.dto = i, this.id = Le.nextId++, t.makeObservable(this, {
|
|
2124
|
+
isSelected: X,
|
|
2125
|
+
isCurrent: _,
|
|
2126
|
+
index: _,
|
|
2127
|
+
isFirst: _,
|
|
2128
|
+
isLast: _,
|
|
2129
|
+
canMoveToTop: _,
|
|
2130
|
+
canMoveToBottom: _,
|
|
2131
|
+
canRemoveToTop: _,
|
|
2132
|
+
canRemoveOthers: _,
|
|
2133
|
+
unselect: v,
|
|
2134
|
+
toggleSelected: v.bound,
|
|
2135
|
+
play: v,
|
|
2136
|
+
remove: v.bound,
|
|
2137
|
+
playFirst: v.bound,
|
|
2138
|
+
playNext: v.bound,
|
|
2139
|
+
addToPlayQueue: v.bound,
|
|
2140
|
+
moveToTop: v.bound,
|
|
2141
|
+
moveToBottom: v.bound,
|
|
2142
|
+
removeToTop: v.bound,
|
|
2143
|
+
removeOthers: v.bound
|
|
1663
2144
|
});
|
|
1664
2145
|
}
|
|
1665
2146
|
static nextId = 1;
|
|
1666
2147
|
id;
|
|
1667
2148
|
isSelected = !1;
|
|
1668
|
-
static fromDto(t,
|
|
1669
|
-
return new
|
|
2149
|
+
static fromDto(t, r, i) {
|
|
2150
|
+
return new Le(
|
|
1670
2151
|
t,
|
|
1671
|
-
|
|
2152
|
+
r,
|
|
1672
2153
|
i
|
|
1673
2154
|
);
|
|
1674
2155
|
}
|
|
@@ -1748,62 +2229,63 @@ class $e {
|
|
|
1748
2229
|
return this.playQueueStore.removeOtherItems(this);
|
|
1749
2230
|
}
|
|
1750
2231
|
}
|
|
1751
|
-
class
|
|
2232
|
+
class qi {
|
|
1752
2233
|
constructor(t) {
|
|
1753
2234
|
this.observableStateProvider = t, t.makeObservable(this, {
|
|
1754
|
-
interacted:
|
|
1755
|
-
items:
|
|
1756
|
-
currentId:
|
|
1757
|
-
repeat:
|
|
1758
|
-
shuffle:
|
|
1759
|
-
localStorageState:
|
|
1760
|
-
isEmpty:
|
|
1761
|
-
currentItem:
|
|
1762
|
-
canPlay:
|
|
1763
|
-
canPause:
|
|
1764
|
-
hasMultipleItems:
|
|
1765
|
-
currentIndex:
|
|
1766
|
-
hasPreviousItem:
|
|
1767
|
-
hasNextItem:
|
|
1768
|
-
isLastItem:
|
|
1769
|
-
selectedItems:
|
|
1770
|
-
allItemsSelected:
|
|
1771
|
-
selectedItemsOrAllItems:
|
|
1772
|
-
setItems:
|
|
1773
|
-
interact:
|
|
1774
|
-
clear:
|
|
1775
|
-
unselectAll:
|
|
1776
|
-
setCurrentItem:
|
|
1777
|
-
setNextItems:
|
|
1778
|
-
clearAndSetItems:
|
|
1779
|
-
playNext:
|
|
1780
|
-
playSelectedItemsNext:
|
|
1781
|
-
addItems:
|
|
1782
|
-
addSelectedItems:
|
|
1783
|
-
playFirst:
|
|
1784
|
-
moveItem:
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
2235
|
+
interacted: X,
|
|
2236
|
+
items: X,
|
|
2237
|
+
currentId: X,
|
|
2238
|
+
repeat: X,
|
|
2239
|
+
shuffle: X,
|
|
2240
|
+
localStorageState: _.struct,
|
|
2241
|
+
isEmpty: _,
|
|
2242
|
+
currentItem: _,
|
|
2243
|
+
canPlay: _,
|
|
2244
|
+
canPause: _,
|
|
2245
|
+
hasMultipleItems: _,
|
|
2246
|
+
currentIndex: _,
|
|
2247
|
+
hasPreviousItem: _,
|
|
2248
|
+
hasNextItem: _,
|
|
2249
|
+
isLastItem: _,
|
|
2250
|
+
selectedItems: _,
|
|
2251
|
+
allItemsSelected: _,
|
|
2252
|
+
selectedItemsOrAllItems: _,
|
|
2253
|
+
setItems: v,
|
|
2254
|
+
interact: v,
|
|
2255
|
+
clear: v.bound,
|
|
2256
|
+
unselectAll: v,
|
|
2257
|
+
setCurrentItem: v,
|
|
2258
|
+
setNextItems: v,
|
|
2259
|
+
clearAndSetItems: v,
|
|
2260
|
+
playNext: v,
|
|
2261
|
+
playSelectedItemsNext: v.bound,
|
|
2262
|
+
addItems: v,
|
|
2263
|
+
addSelectedItems: v.bound,
|
|
2264
|
+
playFirst: v,
|
|
2265
|
+
moveItem: v,
|
|
2266
|
+
goToFirst: v,
|
|
2267
|
+
removeItems: v,
|
|
2268
|
+
removeSelectedItems: v.bound,
|
|
2269
|
+
removeOtherItems: v,
|
|
2270
|
+
removeItemsAbove: v,
|
|
2271
|
+
toggleRepeat: v.bound,
|
|
2272
|
+
toggleShuffle: v.bound,
|
|
2273
|
+
previous: v,
|
|
2274
|
+
next: v.bound
|
|
1794
2275
|
});
|
|
1795
2276
|
}
|
|
1796
2277
|
interacted = !1;
|
|
1797
2278
|
items = [];
|
|
1798
2279
|
currentId;
|
|
1799
|
-
repeat =
|
|
2280
|
+
repeat = N.Off;
|
|
1800
2281
|
shuffle = !1;
|
|
1801
2282
|
createItem(t) {
|
|
1802
|
-
return
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
t
|
|
1806
|
-
|
|
2283
|
+
return Le.fromDto(this.observableStateProvider, this, {
|
|
2284
|
+
url: t.url,
|
|
2285
|
+
type: t.type,
|
|
2286
|
+
videoId: t.videoId,
|
|
2287
|
+
title: t.title
|
|
2288
|
+
});
|
|
1807
2289
|
}
|
|
1808
2290
|
get localStorageState() {
|
|
1809
2291
|
return {
|
|
@@ -1815,11 +2297,11 @@ class ai {
|
|
|
1815
2297
|
};
|
|
1816
2298
|
}
|
|
1817
2299
|
set localStorageState(t) {
|
|
1818
|
-
this.repeat = t.repeat ??
|
|
2300
|
+
this.repeat = t.repeat ?? N.Off, this.shuffle = t.shuffle ?? !1, this.items = t.items?.map((r) => this.createItem(r)) ?? [], this.currentIndex = t.currentIndex;
|
|
1819
2301
|
}
|
|
1820
2302
|
validateLocalStorageState(t) {
|
|
1821
|
-
return
|
|
1822
|
-
|
|
2303
|
+
return $i(
|
|
2304
|
+
zi,
|
|
1823
2305
|
"PlayQueueDto"
|
|
1824
2306
|
)(t);
|
|
1825
2307
|
}
|
|
@@ -1860,8 +2342,8 @@ class ai {
|
|
|
1860
2342
|
return this.selectedItems.length === this.items.length;
|
|
1861
2343
|
}
|
|
1862
2344
|
set allItemsSelected(t) {
|
|
1863
|
-
for (const
|
|
1864
|
-
|
|
2345
|
+
for (const r of this.items)
|
|
2346
|
+
r.isSelected = t;
|
|
1865
2347
|
}
|
|
1866
2348
|
get selectedItemsOrAllItems() {
|
|
1867
2349
|
return this.selectedItems.length > 0 ? this.selectedItems : this.items;
|
|
@@ -1917,47 +2399,50 @@ class ai {
|
|
|
1917
2399
|
this.clearAndSetItems(t);
|
|
1918
2400
|
return;
|
|
1919
2401
|
}
|
|
1920
|
-
const { currentIndex:
|
|
1921
|
-
|
|
2402
|
+
const { currentIndex: r } = this;
|
|
2403
|
+
r !== void 0 && (this.interact(), this.items.splice(r, 0, ...t), this.currentIndex = r);
|
|
1922
2404
|
}
|
|
1923
|
-
moveItem(t,
|
|
2405
|
+
moveItem(t, r) {
|
|
1924
2406
|
const i = this.items.splice(this.items.indexOf(t), 1)[0];
|
|
1925
|
-
this.items.splice(
|
|
2407
|
+
this.items.splice(r, 0, i);
|
|
2408
|
+
}
|
|
2409
|
+
async goToFirst() {
|
|
2410
|
+
this.currentIndex !== void 0 && (this.currentIndex = 0);
|
|
1926
2411
|
}
|
|
1927
2412
|
async removeItems(t) {
|
|
1928
|
-
const { currentItem:
|
|
1929
|
-
|
|
2413
|
+
const { currentItem: r } = this;
|
|
2414
|
+
Ot(this.items, ...t.filter((o) => o !== r));
|
|
1930
2415
|
const { currentIndex: i, isLastItem: a } = this;
|
|
1931
|
-
|
|
2416
|
+
Ot(
|
|
1932
2417
|
this.items,
|
|
1933
|
-
t.find((
|
|
1934
|
-
), this.currentItem !==
|
|
2418
|
+
t.find((o) => o === r)
|
|
2419
|
+
), this.currentItem !== r && (this.interact(), a ? await this.goToFirst() : this.currentIndex = i);
|
|
1935
2420
|
}
|
|
1936
2421
|
async removeSelectedItems() {
|
|
1937
2422
|
await this.removeItems(this.selectedItemsOrAllItems), this.unselectAll();
|
|
1938
2423
|
}
|
|
1939
2424
|
async removeOtherItems(t) {
|
|
1940
|
-
const
|
|
2425
|
+
const r = t.id;
|
|
1941
2426
|
return this.removeItems(
|
|
1942
|
-
this.items.filter((i) => i.id !==
|
|
2427
|
+
this.items.filter((i) => i.id !== r)
|
|
1943
2428
|
);
|
|
1944
2429
|
}
|
|
1945
2430
|
async removeItemsAbove(t) {
|
|
1946
|
-
const
|
|
2431
|
+
const r = this.items.indexOf(t);
|
|
1947
2432
|
return this.removeItems(
|
|
1948
|
-
this.items.filter((i, a) => a <
|
|
2433
|
+
this.items.filter((i, a) => a < r)
|
|
1949
2434
|
);
|
|
1950
2435
|
}
|
|
1951
2436
|
toggleRepeat() {
|
|
1952
2437
|
switch (this.repeat) {
|
|
1953
|
-
case
|
|
1954
|
-
this.repeat =
|
|
2438
|
+
case N.Off:
|
|
2439
|
+
this.repeat = N.All;
|
|
1955
2440
|
break;
|
|
1956
|
-
case
|
|
1957
|
-
this.repeat =
|
|
2441
|
+
case N.All:
|
|
2442
|
+
this.repeat = N.One;
|
|
1958
2443
|
break;
|
|
1959
|
-
case
|
|
1960
|
-
this.repeat =
|
|
2444
|
+
case N.One:
|
|
2445
|
+
this.repeat = N.Off;
|
|
1961
2446
|
break;
|
|
1962
2447
|
}
|
|
1963
2448
|
}
|
|
@@ -1970,266 +2455,207 @@ class ai {
|
|
|
1970
2455
|
async next() {
|
|
1971
2456
|
this.currentIndex !== void 0 && this.hasNextItem && (this.interact(), this.currentIndex++);
|
|
1972
2457
|
}
|
|
1973
|
-
async goToFirst() {
|
|
1974
|
-
this.currentIndex !== void 0 && (this.currentIndex = 0);
|
|
1975
|
-
}
|
|
1976
2458
|
}
|
|
1977
|
-
const
|
|
2459
|
+
const Ea = ({
|
|
1978
2460
|
children: e
|
|
1979
2461
|
}) => {
|
|
1980
|
-
const [t] =
|
|
1981
|
-
() => new
|
|
1982
|
-
),
|
|
1983
|
-
return
|
|
2462
|
+
const [t] = z(
|
|
2463
|
+
() => new qi(new er())
|
|
2464
|
+
), r = le();
|
|
2465
|
+
return Ut(() => $r(
|
|
1984
2466
|
() => t.currentItem,
|
|
1985
2467
|
async (i, a) => {
|
|
1986
|
-
i === void 0 || a === void 0 || i.type === a.type && i.videoId === a.videoId && await
|
|
2468
|
+
i === void 0 || a === void 0 || i.type === a.type && i.videoId === a.videoId && await r.setCurrentTime(0);
|
|
1987
2469
|
}
|
|
1988
|
-
), [t,
|
|
1989
|
-
},
|
|
2470
|
+
), [t, r]), /* @__PURE__ */ s(tr.Provider, { value: t, children: e });
|
|
2471
|
+
}, Li = ({
|
|
1990
2472
|
breadcrumbs: e,
|
|
1991
2473
|
tabs: t,
|
|
1992
|
-
...
|
|
2474
|
+
...r
|
|
1993
2475
|
}) => {
|
|
1994
|
-
const i =
|
|
1995
|
-
return /* @__PURE__ */
|
|
1996
|
-
|
|
2476
|
+
const i = kn();
|
|
2477
|
+
return /* @__PURE__ */ s(
|
|
2478
|
+
dt.Header,
|
|
1997
2479
|
{
|
|
1998
|
-
...
|
|
1999
|
-
breadcrumbs: e?.map(({ linkProps: a, ...
|
|
2000
|
-
...
|
|
2480
|
+
...r,
|
|
2481
|
+
breadcrumbs: e?.map(({ linkProps: a, ...o }) => ({
|
|
2482
|
+
...o,
|
|
2001
2483
|
href: a === void 0 ? void 0 : i.buildLocation(
|
|
2002
2484
|
a
|
|
2003
2485
|
/* FIXME */
|
|
2004
2486
|
).href,
|
|
2005
|
-
onClick: a === void 0 ? void 0 : async (
|
|
2006
|
-
|
|
2487
|
+
onClick: a === void 0 ? void 0 : async (c) => {
|
|
2488
|
+
c.preventDefault(), await i.navigate(a);
|
|
2007
2489
|
}
|
|
2008
2490
|
})),
|
|
2009
|
-
tabs: t?.map(({ linkProps: a, ...
|
|
2010
|
-
...
|
|
2491
|
+
tabs: t?.map(({ linkProps: a, ...o }) => ({
|
|
2492
|
+
...o,
|
|
2011
2493
|
href: a === void 0 ? void 0 : i.buildLocation(
|
|
2012
2494
|
a
|
|
2013
2495
|
/* FIXME */
|
|
2014
2496
|
).href,
|
|
2015
|
-
onClick: a === void 0 ? void 0 : async (
|
|
2016
|
-
|
|
2497
|
+
onClick: a === void 0 ? void 0 : async (c) => {
|
|
2498
|
+
c.preventDefault(), await i.navigate(a);
|
|
2017
2499
|
}
|
|
2018
2500
|
}))
|
|
2019
2501
|
}
|
|
2020
2502
|
);
|
|
2021
|
-
},
|
|
2022
|
-
const e =
|
|
2023
|
-
return /* @__PURE__ */
|
|
2024
|
-
/* @__PURE__ */
|
|
2025
|
-
|
|
2503
|
+
}, Ra = () => {
|
|
2504
|
+
const e = rr();
|
|
2505
|
+
return /* @__PURE__ */ M(Ye, { children: [
|
|
2506
|
+
/* @__PURE__ */ s(
|
|
2507
|
+
Li,
|
|
2026
2508
|
{
|
|
2027
2509
|
pageTitle: "Play queue",
|
|
2028
2510
|
rightSideItems: []
|
|
2029
2511
|
}
|
|
2030
2512
|
),
|
|
2031
|
-
/* @__PURE__ */
|
|
2513
|
+
/* @__PURE__ */ s(dt.Section, { children: /* @__PURE__ */ s(Ni, { playQueueStore: e }) })
|
|
2032
2514
|
] });
|
|
2033
|
-
},
|
|
2034
|
-
({
|
|
2035
|
-
|
|
2515
|
+
}, Vi = C(
|
|
2516
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2517
|
+
W,
|
|
2036
2518
|
{
|
|
2037
2519
|
title: `Shuffle: ${e.shuffle ? "On" : "Off"}`,
|
|
2038
2520
|
"aria-label": `Shuffle: ${e.shuffle ? "On" : "Off"}`,
|
|
2039
|
-
iconType: e.shuffle ?
|
|
2521
|
+
iconType: e.shuffle ? pn : yn,
|
|
2040
2522
|
size: "s",
|
|
2041
2523
|
iconSize: "l",
|
|
2042
2524
|
onClick: e.toggleShuffle,
|
|
2043
|
-
disabled: !
|
|
2525
|
+
disabled: !e.canToggleShuffle
|
|
2044
2526
|
}
|
|
2045
2527
|
)
|
|
2046
|
-
),
|
|
2047
|
-
({
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
}
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
onClick: () => n.play(),
|
|
2115
|
-
disabled: !t.canPlay || !e.controller.supports("play")
|
|
2116
|
-
}
|
|
2117
|
-
);
|
|
2118
|
-
}
|
|
2119
|
-
), mi = P(
|
|
2120
|
-
({
|
|
2121
|
-
playerStore: e,
|
|
2122
|
-
playQueueStore: t
|
|
2123
|
-
}) => {
|
|
2124
|
-
const n = U(), i = N(async () => {
|
|
2125
|
-
const a = await n.getCurrentTime();
|
|
2126
|
-
a !== void 0 && await n.setCurrentTime(a + 30);
|
|
2127
|
-
}, [n]);
|
|
2128
|
-
return /* @__PURE__ */ o(
|
|
2129
|
-
q,
|
|
2130
|
-
{
|
|
2131
|
-
title: "Skip forward 30 seconds",
|
|
2132
|
-
"aria-label": "Skip forward 30 seconds",
|
|
2133
|
-
iconType: Ht,
|
|
2134
|
-
size: "s",
|
|
2135
|
-
iconSize: "l",
|
|
2136
|
-
onClick: i,
|
|
2137
|
-
disabled: t.isEmpty || !e.controller.supports("setCurrentTime")
|
|
2138
|
-
}
|
|
2139
|
-
);
|
|
2140
|
-
}
|
|
2141
|
-
), hi = P(
|
|
2142
|
-
({ playQueueStore: e }) => /* @__PURE__ */ o(
|
|
2143
|
-
q,
|
|
2528
|
+
), Ui = C(
|
|
2529
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2530
|
+
W,
|
|
2531
|
+
{
|
|
2532
|
+
title: "Previous",
|
|
2533
|
+
"aria-label": "Previous",
|
|
2534
|
+
iconType: hn,
|
|
2535
|
+
size: "s",
|
|
2536
|
+
iconSize: "l",
|
|
2537
|
+
onClick: e.previous,
|
|
2538
|
+
disabled: !e.canPrevious
|
|
2539
|
+
}
|
|
2540
|
+
)
|
|
2541
|
+
), Yi = C(
|
|
2542
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2543
|
+
W,
|
|
2544
|
+
{
|
|
2545
|
+
title: "Skip back 10 seconds",
|
|
2546
|
+
"aria-label": "Skip back 10 seconds",
|
|
2547
|
+
iconType: Kt,
|
|
2548
|
+
size: "s",
|
|
2549
|
+
iconSize: "l",
|
|
2550
|
+
onClick: e.skipBack10,
|
|
2551
|
+
disabled: !e.canSkipBack10
|
|
2552
|
+
}
|
|
2553
|
+
)
|
|
2554
|
+
), Wi = C(
|
|
2555
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2556
|
+
W,
|
|
2557
|
+
{
|
|
2558
|
+
title: "Pause",
|
|
2559
|
+
"aria-label": "Pause",
|
|
2560
|
+
iconType: mn,
|
|
2561
|
+
size: "s",
|
|
2562
|
+
iconSize: "l",
|
|
2563
|
+
onClick: e.pause,
|
|
2564
|
+
disabled: !e.canPause
|
|
2565
|
+
}
|
|
2566
|
+
)
|
|
2567
|
+
), Hi = C(
|
|
2568
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2569
|
+
W,
|
|
2570
|
+
{
|
|
2571
|
+
title: "Play",
|
|
2572
|
+
"aria-label": "Play",
|
|
2573
|
+
iconType: vn,
|
|
2574
|
+
size: "s",
|
|
2575
|
+
iconSize: "l",
|
|
2576
|
+
onClick: e.play,
|
|
2577
|
+
disabled: !e.canPlay
|
|
2578
|
+
}
|
|
2579
|
+
)
|
|
2580
|
+
), Gi = C(
|
|
2581
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2582
|
+
W,
|
|
2583
|
+
{
|
|
2584
|
+
title: "Skip forward 30 seconds",
|
|
2585
|
+
"aria-label": "Skip forward 30 seconds",
|
|
2586
|
+
iconType: Bt,
|
|
2587
|
+
size: "s",
|
|
2588
|
+
iconSize: "l",
|
|
2589
|
+
onClick: e.skipForward30,
|
|
2590
|
+
disabled: !e.canSkipForward30
|
|
2591
|
+
}
|
|
2592
|
+
)
|
|
2593
|
+
), Ji = C(
|
|
2594
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2595
|
+
W,
|
|
2144
2596
|
{
|
|
2145
2597
|
title: "Next",
|
|
2146
2598
|
"aria-label": "Next",
|
|
2147
|
-
iconType:
|
|
2599
|
+
iconType: gn,
|
|
2148
2600
|
size: "s",
|
|
2149
2601
|
iconSize: "l",
|
|
2150
2602
|
onClick: e.next,
|
|
2151
|
-
disabled: !e.
|
|
2603
|
+
disabled: !e.canNext
|
|
2152
2604
|
}
|
|
2153
2605
|
)
|
|
2154
|
-
),
|
|
2155
|
-
[
|
|
2156
|
-
[
|
|
2157
|
-
[
|
|
2158
|
-
},
|
|
2159
|
-
({
|
|
2160
|
-
|
|
2606
|
+
), Qi = {
|
|
2607
|
+
[N.Off]: wn,
|
|
2608
|
+
[N.All]: bn,
|
|
2609
|
+
[N.One]: Pn
|
|
2610
|
+
}, Ki = C(
|
|
2611
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2612
|
+
W,
|
|
2161
2613
|
{
|
|
2162
|
-
title: `Repeat: ${e.repeat ===
|
|
2163
|
-
"aria-label": `Repeat: ${e.repeat ===
|
|
2164
|
-
iconType:
|
|
2614
|
+
title: `Repeat: ${e.repeat === N.All ? "All" : e.repeat === N.One ? "One" : "Off"}`,
|
|
2615
|
+
"aria-label": `Repeat: ${e.repeat === N.All ? "All" : e.repeat === N.One ? "One" : "Off"}`,
|
|
2616
|
+
iconType: Qi[e.repeat],
|
|
2165
2617
|
size: "s",
|
|
2166
2618
|
iconSize: "l",
|
|
2167
|
-
onClick: e.toggleRepeat
|
|
2619
|
+
onClick: e.toggleRepeat,
|
|
2620
|
+
disabled: !e.canToggleRepeat
|
|
2168
2621
|
}
|
|
2169
2622
|
)
|
|
2170
|
-
),
|
|
2171
|
-
({
|
|
2172
|
-
|
|
2173
|
-
playQueueStore: t
|
|
2174
|
-
}) => /* @__PURE__ */ $(
|
|
2175
|
-
se,
|
|
2623
|
+
), Bi = C(
|
|
2624
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ M(
|
|
2625
|
+
oe,
|
|
2176
2626
|
{
|
|
2177
2627
|
responsive: !1,
|
|
2178
2628
|
gutterSize: "s",
|
|
2179
2629
|
justifyContent: "center",
|
|
2180
2630
|
alignItems: "center",
|
|
2181
2631
|
children: [
|
|
2182
|
-
/* @__PURE__ */
|
|
2183
|
-
/* @__PURE__ */
|
|
2184
|
-
/* @__PURE__ */
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
}
|
|
2190
|
-
),
|
|
2191
|
-
e.playing ? /* @__PURE__ */ o(
|
|
2192
|
-
di,
|
|
2193
|
-
{
|
|
2194
|
-
playerStore: e,
|
|
2195
|
-
playQueueStore: t
|
|
2196
|
-
}
|
|
2197
|
-
) : /* @__PURE__ */ o(
|
|
2198
|
-
fi,
|
|
2199
|
-
{
|
|
2200
|
-
playerStore: e,
|
|
2201
|
-
playQueueStore: t
|
|
2202
|
-
}
|
|
2203
|
-
),
|
|
2204
|
-
/* @__PURE__ */ o(
|
|
2205
|
-
mi,
|
|
2206
|
-
{
|
|
2207
|
-
playerStore: e,
|
|
2208
|
-
playQueueStore: t
|
|
2209
|
-
}
|
|
2210
|
-
),
|
|
2211
|
-
/* @__PURE__ */ o(hi, { playQueueStore: t }),
|
|
2212
|
-
/* @__PURE__ */ o(pi, { playQueueStore: t })
|
|
2632
|
+
/* @__PURE__ */ s(Vi, { bottomBarStore: e }),
|
|
2633
|
+
/* @__PURE__ */ s(Ui, { bottomBarStore: e }),
|
|
2634
|
+
/* @__PURE__ */ s(Yi, { bottomBarStore: e }),
|
|
2635
|
+
e.playing ? /* @__PURE__ */ s(Wi, { bottomBarStore: e }) : /* @__PURE__ */ s(Hi, { bottomBarStore: e }),
|
|
2636
|
+
/* @__PURE__ */ s(Gi, { bottomBarStore: e }),
|
|
2637
|
+
/* @__PURE__ */ s(Ji, { bottomBarStore: e }),
|
|
2638
|
+
/* @__PURE__ */ s(Ki, { bottomBarStore: e })
|
|
2213
2639
|
]
|
|
2214
2640
|
}
|
|
2215
2641
|
)
|
|
2216
|
-
),
|
|
2642
|
+
), Xi = re(
|
|
2217
2643
|
({ item: e, closePopover: t }) => {
|
|
2218
|
-
const
|
|
2644
|
+
const r = le(), i = Ve(
|
|
2219
2645
|
() => [
|
|
2220
2646
|
{
|
|
2221
2647
|
id: 0,
|
|
2222
2648
|
items: [
|
|
2223
2649
|
{
|
|
2224
2650
|
name: "Open in new tab",
|
|
2225
|
-
icon: /* @__PURE__ */
|
|
2651
|
+
icon: /* @__PURE__ */ s(Y, { type: Sn }),
|
|
2226
2652
|
onClick: async () => {
|
|
2227
|
-
t(), await
|
|
2653
|
+
t(), await r.pause(), window.open(e.dto.url, "_blank");
|
|
2228
2654
|
}
|
|
2229
2655
|
},
|
|
2230
2656
|
{
|
|
2231
2657
|
name: "Copy link address",
|
|
2232
|
-
icon: /* @__PURE__ */
|
|
2658
|
+
icon: /* @__PURE__ */ s(Y, { type: "" }),
|
|
2233
2659
|
onClick: async () => {
|
|
2234
2660
|
t(), await navigator.clipboard.writeText(
|
|
2235
2661
|
e.dto.url
|
|
@@ -2238,7 +2664,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2238
2664
|
},
|
|
2239
2665
|
{
|
|
2240
2666
|
name: "Copy link text",
|
|
2241
|
-
icon: /* @__PURE__ */
|
|
2667
|
+
icon: /* @__PURE__ */ s(Y, { type: "" }),
|
|
2242
2668
|
onClick: async () => {
|
|
2243
2669
|
t(), await navigator.clipboard.writeText(
|
|
2244
2670
|
e.dto.title
|
|
@@ -2248,20 +2674,20 @@ const nr = zt(void 0), Yi = ({
|
|
|
2248
2674
|
]
|
|
2249
2675
|
}
|
|
2250
2676
|
],
|
|
2251
|
-
[t,
|
|
2677
|
+
[t, r, e]
|
|
2252
2678
|
);
|
|
2253
|
-
return /* @__PURE__ */
|
|
2679
|
+
return /* @__PURE__ */ s(ut, { initialPanelId: 0, panels: i });
|
|
2254
2680
|
}
|
|
2255
|
-
),
|
|
2681
|
+
), Zi = re(
|
|
2256
2682
|
({ item: e }) => {
|
|
2257
|
-
const [t,
|
|
2258
|
-
return /* @__PURE__ */
|
|
2259
|
-
|
|
2683
|
+
const [t, r] = z(!1), i = $(() => r(!t), [t]), a = $(() => r(!1), []);
|
|
2684
|
+
return /* @__PURE__ */ s(
|
|
2685
|
+
xe,
|
|
2260
2686
|
{
|
|
2261
|
-
button: /* @__PURE__ */
|
|
2262
|
-
|
|
2687
|
+
button: /* @__PURE__ */ s(
|
|
2688
|
+
Yt,
|
|
2263
2689
|
{
|
|
2264
|
-
iconType:
|
|
2690
|
+
iconType: fr[e.type],
|
|
2265
2691
|
size: "s",
|
|
2266
2692
|
onClick: i,
|
|
2267
2693
|
children: e.title
|
|
@@ -2271,8 +2697,8 @@ const nr = zt(void 0), Yi = ({
|
|
|
2271
2697
|
closePopover: a,
|
|
2272
2698
|
panelPaddingSize: "none",
|
|
2273
2699
|
anchorPosition: "upLeft",
|
|
2274
|
-
children: /* @__PURE__ */
|
|
2275
|
-
|
|
2700
|
+
children: /* @__PURE__ */ s(
|
|
2701
|
+
Xi,
|
|
2276
2702
|
{
|
|
2277
2703
|
item: e,
|
|
2278
2704
|
closePopover: a
|
|
@@ -2281,74 +2707,76 @@ const nr = zt(void 0), Yi = ({
|
|
|
2281
2707
|
}
|
|
2282
2708
|
);
|
|
2283
2709
|
}
|
|
2284
|
-
),
|
|
2285
|
-
({
|
|
2286
|
-
|
|
2710
|
+
), ea = C(
|
|
2711
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2712
|
+
oe,
|
|
2287
2713
|
{
|
|
2288
2714
|
responsive: !1,
|
|
2289
2715
|
gutterSize: "s",
|
|
2290
2716
|
justifyContent: "flexStart",
|
|
2291
2717
|
alignItems: "center",
|
|
2292
|
-
children: e.currentItem && /* @__PURE__ */
|
|
2718
|
+
children: e.currentItem && /* @__PURE__ */ s(Zi, { item: e.currentItem })
|
|
2293
2719
|
}
|
|
2294
2720
|
)
|
|
2295
|
-
),
|
|
2296
|
-
({
|
|
2297
|
-
|
|
2721
|
+
), ta = C(
|
|
2722
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2723
|
+
W,
|
|
2298
2724
|
{
|
|
2299
2725
|
title: "Mute",
|
|
2300
2726
|
"aria-label": "Mute",
|
|
2301
|
-
iconType:
|
|
2727
|
+
iconType: Xt,
|
|
2302
2728
|
size: "s",
|
|
2303
2729
|
iconSize: "l",
|
|
2304
|
-
disabled: !e.controller.supports("setMuted")
|
|
2730
|
+
disabled: !e.playerStore.controller.supports("setMuted")
|
|
2305
2731
|
}
|
|
2306
2732
|
)
|
|
2307
|
-
),
|
|
2733
|
+
), ra = C(
|
|
2308
2734
|
({
|
|
2309
|
-
|
|
2735
|
+
bottomBarStore: e,
|
|
2310
2736
|
button: t,
|
|
2311
|
-
isOpen:
|
|
2737
|
+
isOpen: r,
|
|
2312
2738
|
closePopover: i
|
|
2313
2739
|
}) => {
|
|
2314
|
-
const [a,
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2740
|
+
const [a, o] = z("0"), c = le();
|
|
2741
|
+
zr(() => {
|
|
2742
|
+
r && c.getVolume().then((p) => {
|
|
2743
|
+
p !== void 0 && o(Math.floor(p * 100).toString());
|
|
2318
2744
|
});
|
|
2319
|
-
}, [
|
|
2320
|
-
const
|
|
2321
|
-
async (
|
|
2322
|
-
|
|
2745
|
+
}, [r, c]);
|
|
2746
|
+
const f = $(
|
|
2747
|
+
async (p) => {
|
|
2748
|
+
o(p.currentTarget.value), await c.setVolume(Number(p.currentTarget.value) / 100);
|
|
2323
2749
|
},
|
|
2324
|
-
[
|
|
2750
|
+
[c]
|
|
2325
2751
|
);
|
|
2326
|
-
return /* @__PURE__ */
|
|
2327
|
-
|
|
2752
|
+
return /* @__PURE__ */ s(
|
|
2753
|
+
xe,
|
|
2328
2754
|
{
|
|
2329
2755
|
button: t,
|
|
2330
|
-
isOpen:
|
|
2756
|
+
isOpen: r,
|
|
2331
2757
|
closePopover: i,
|
|
2332
2758
|
anchorPosition: "upRight",
|
|
2333
|
-
children: /* @__PURE__ */
|
|
2334
|
-
|
|
2759
|
+
children: /* @__PURE__ */ s(at, { children: /* @__PURE__ */ M(
|
|
2760
|
+
oe,
|
|
2335
2761
|
{
|
|
2336
2762
|
responsive: !1,
|
|
2337
2763
|
gutterSize: "s",
|
|
2338
2764
|
justifyContent: "center",
|
|
2339
2765
|
alignItems: "center",
|
|
2340
2766
|
children: [
|
|
2341
|
-
/* @__PURE__ */
|
|
2342
|
-
/* @__PURE__ */
|
|
2343
|
-
|
|
2767
|
+
/* @__PURE__ */ s(ta, { bottomBarStore: e }),
|
|
2768
|
+
/* @__PURE__ */ s(
|
|
2769
|
+
Jt,
|
|
2344
2770
|
{
|
|
2345
2771
|
min: 0,
|
|
2346
2772
|
max: 100,
|
|
2347
2773
|
step: 1,
|
|
2348
2774
|
value: a,
|
|
2349
|
-
onChange:
|
|
2775
|
+
onChange: f,
|
|
2350
2776
|
css: { blockSize: 32 },
|
|
2351
|
-
disabled: !e.controller.supports(
|
|
2777
|
+
disabled: !e.playerStore.controller.supports(
|
|
2778
|
+
"setVolume"
|
|
2779
|
+
)
|
|
2352
2780
|
}
|
|
2353
2781
|
)
|
|
2354
2782
|
]
|
|
@@ -2357,103 +2785,98 @@ const nr = zt(void 0), Yi = ({
|
|
|
2357
2785
|
}
|
|
2358
2786
|
);
|
|
2359
2787
|
}
|
|
2360
|
-
),
|
|
2361
|
-
({
|
|
2362
|
-
const [t,
|
|
2363
|
-
return /* @__PURE__ */
|
|
2364
|
-
|
|
2788
|
+
), na = C(
|
|
2789
|
+
({ bottomBarStore: e }) => {
|
|
2790
|
+
const [t, r] = z(!1);
|
|
2791
|
+
return /* @__PURE__ */ s(
|
|
2792
|
+
ra,
|
|
2365
2793
|
{
|
|
2366
|
-
|
|
2367
|
-
button: /* @__PURE__ */
|
|
2368
|
-
|
|
2794
|
+
bottomBarStore: e,
|
|
2795
|
+
button: /* @__PURE__ */ s(
|
|
2796
|
+
W,
|
|
2369
2797
|
{
|
|
2370
2798
|
title: "Volume",
|
|
2371
2799
|
"aria-label": "Volume",
|
|
2372
|
-
iconType:
|
|
2800
|
+
iconType: Xt,
|
|
2373
2801
|
size: "s",
|
|
2374
2802
|
iconSize: "l",
|
|
2375
|
-
onClick: () =>
|
|
2376
|
-
disabled: !e.controller.supports(
|
|
2803
|
+
onClick: () => r(!t),
|
|
2804
|
+
disabled: !e.playerStore.controller.supports(
|
|
2805
|
+
"getVolume"
|
|
2806
|
+
)
|
|
2377
2807
|
}
|
|
2378
2808
|
),
|
|
2379
2809
|
isOpen: t,
|
|
2380
|
-
closePopover: () =>
|
|
2810
|
+
closePopover: () => r(!1)
|
|
2381
2811
|
}
|
|
2382
2812
|
);
|
|
2383
2813
|
}
|
|
2384
|
-
),
|
|
2814
|
+
), ia = ({
|
|
2385
2815
|
onClickPlayQueueButton: e
|
|
2386
|
-
}) => /* @__PURE__ */
|
|
2387
|
-
|
|
2816
|
+
}) => /* @__PURE__ */ s(
|
|
2817
|
+
W,
|
|
2388
2818
|
{
|
|
2389
2819
|
title: "Play queue",
|
|
2390
2820
|
"aria-label": "Play queue",
|
|
2391
|
-
iconType:
|
|
2821
|
+
iconType: Rn,
|
|
2392
2822
|
size: "s",
|
|
2393
2823
|
iconSize: "l",
|
|
2394
2824
|
onClick: e
|
|
2395
2825
|
}
|
|
2396
|
-
),
|
|
2826
|
+
), aa = C(
|
|
2397
2827
|
({
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
closePopover: n
|
|
2828
|
+
bottomBarStore: e,
|
|
2829
|
+
closePopover: t
|
|
2401
2830
|
}) => {
|
|
2402
|
-
const
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
async (I) => {
|
|
2410
|
-
await i.setPlaybackRate(I), n();
|
|
2831
|
+
const r = le(), i = $(async () => {
|
|
2832
|
+
await e.skipBack10(), t();
|
|
2833
|
+
}, [e, t]), a = $(async () => {
|
|
2834
|
+
await e.skipForward30(), t();
|
|
2835
|
+
}, [e, t]), o = $(
|
|
2836
|
+
async (w) => {
|
|
2837
|
+
await r.setPlaybackRate(w), t();
|
|
2411
2838
|
},
|
|
2412
|
-
[
|
|
2413
|
-
),
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
]),
|
|
2417
|
-
}, [
|
|
2418
|
-
await e.controller.getPlaybackRate().then((
|
|
2419
|
-
}, [e]),
|
|
2839
|
+
[r, t]
|
|
2840
|
+
), c = $(async () => {
|
|
2841
|
+
e.currentItem !== void 0 && await e.playQueueStore.removeItems([
|
|
2842
|
+
e.currentItem
|
|
2843
|
+
]), t();
|
|
2844
|
+
}, [e, t]), [f, p] = z(), m = $(async () => {
|
|
2845
|
+
await e.playerStore.controller.getPlaybackRate().then((w) => p(w));
|
|
2846
|
+
}, [e]), P = Ve(
|
|
2420
2847
|
() => [
|
|
2421
2848
|
{
|
|
2422
2849
|
id: 0,
|
|
2423
2850
|
items: [
|
|
2424
2851
|
{
|
|
2425
2852
|
name: "Speed",
|
|
2426
|
-
icon: /* @__PURE__ */
|
|
2853
|
+
icon: /* @__PURE__ */ s(Y, { type: En }),
|
|
2427
2854
|
panel: 1,
|
|
2428
|
-
onClick:
|
|
2429
|
-
disabled: !e.controller.supports(
|
|
2855
|
+
onClick: m,
|
|
2856
|
+
disabled: !e.playerStore.controller.supports(
|
|
2430
2857
|
"getPlaybackRate"
|
|
2431
2858
|
)
|
|
2432
2859
|
},
|
|
2433
2860
|
{
|
|
2434
2861
|
name: "Skip back 10 seconds",
|
|
2435
|
-
icon: /* @__PURE__ */
|
|
2436
|
-
onClick:
|
|
2437
|
-
disabled:
|
|
2438
|
-
"setCurrentTime"
|
|
2439
|
-
)
|
|
2862
|
+
icon: /* @__PURE__ */ s(Y, { type: Kt }),
|
|
2863
|
+
onClick: i,
|
|
2864
|
+
disabled: !e.canSkipBack10
|
|
2440
2865
|
},
|
|
2441
2866
|
{
|
|
2442
2867
|
name: "Skip forward 30 seconds",
|
|
2443
|
-
icon: /* @__PURE__ */
|
|
2444
|
-
onClick:
|
|
2445
|
-
disabled:
|
|
2446
|
-
"setCurrentTime"
|
|
2447
|
-
)
|
|
2868
|
+
icon: /* @__PURE__ */ s(Y, { type: Bt }),
|
|
2869
|
+
onClick: a,
|
|
2870
|
+
disabled: !e.canSkipForward30
|
|
2448
2871
|
},
|
|
2449
2872
|
{
|
|
2450
2873
|
isSeparator: !0
|
|
2451
2874
|
},
|
|
2452
2875
|
{
|
|
2453
2876
|
name: "Remove from play queue",
|
|
2454
|
-
icon: /* @__PURE__ */
|
|
2455
|
-
onClick:
|
|
2456
|
-
disabled:
|
|
2877
|
+
icon: /* @__PURE__ */ s(Y, { type: ft }),
|
|
2878
|
+
onClick: c,
|
|
2879
|
+
disabled: e.playQueueStore.isEmpty
|
|
2457
2880
|
}
|
|
2458
2881
|
]
|
|
2459
2882
|
},
|
|
@@ -2461,11 +2884,11 @@ const nr = zt(void 0), Yi = ({
|
|
|
2461
2884
|
id: 1,
|
|
2462
2885
|
title: "Speed",
|
|
2463
2886
|
items: [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2].map(
|
|
2464
|
-
(
|
|
2465
|
-
name:
|
|
2466
|
-
onClick: () =>
|
|
2467
|
-
icon:
|
|
2468
|
-
disabled: !e.controller.supports(
|
|
2887
|
+
(w) => ({
|
|
2888
|
+
name: w.toString(),
|
|
2889
|
+
onClick: () => o(w),
|
|
2890
|
+
icon: w === f ? "check" : "empty",
|
|
2891
|
+
disabled: !e.playerStore.controller.supports(
|
|
2469
2892
|
"setPlaybackRate"
|
|
2470
2893
|
)
|
|
2471
2894
|
})
|
|
@@ -2474,247 +2897,205 @@ const nr = zt(void 0), Yi = ({
|
|
|
2474
2897
|
],
|
|
2475
2898
|
[
|
|
2476
2899
|
e,
|
|
2477
|
-
|
|
2478
|
-
|
|
2900
|
+
m,
|
|
2901
|
+
i,
|
|
2479
2902
|
a,
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
m
|
|
2903
|
+
c,
|
|
2904
|
+
o,
|
|
2905
|
+
f
|
|
2484
2906
|
]
|
|
2485
2907
|
);
|
|
2486
|
-
return /* @__PURE__ */
|
|
2908
|
+
return /* @__PURE__ */ s(ut, { initialPanelId: 0, panels: P });
|
|
2487
2909
|
}
|
|
2488
|
-
),
|
|
2910
|
+
), sa = re(
|
|
2489
2911
|
({
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
ze,
|
|
2912
|
+
bottomBarStore: e,
|
|
2913
|
+
button: t,
|
|
2914
|
+
isOpen: r,
|
|
2915
|
+
closePopover: i
|
|
2916
|
+
}) => /* @__PURE__ */ s(
|
|
2917
|
+
xe,
|
|
2497
2918
|
{
|
|
2498
|
-
button:
|
|
2499
|
-
isOpen:
|
|
2500
|
-
closePopover:
|
|
2919
|
+
button: t,
|
|
2920
|
+
isOpen: r,
|
|
2921
|
+
closePopover: i,
|
|
2501
2922
|
panelPaddingSize: "none",
|
|
2502
2923
|
anchorPosition: "upRight",
|
|
2503
|
-
children: /* @__PURE__ */
|
|
2504
|
-
|
|
2924
|
+
children: /* @__PURE__ */ s(
|
|
2925
|
+
aa,
|
|
2505
2926
|
{
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
closePopover: a
|
|
2927
|
+
bottomBarStore: e,
|
|
2928
|
+
closePopover: i
|
|
2509
2929
|
}
|
|
2510
2930
|
)
|
|
2511
2931
|
}
|
|
2512
2932
|
)
|
|
2513
|
-
),
|
|
2514
|
-
({
|
|
2515
|
-
const [
|
|
2516
|
-
return /* @__PURE__ */
|
|
2517
|
-
|
|
2933
|
+
), oa = re(
|
|
2934
|
+
({ bottomBarStore: e }) => {
|
|
2935
|
+
const [t, r] = z(!1);
|
|
2936
|
+
return /* @__PURE__ */ s(
|
|
2937
|
+
sa,
|
|
2518
2938
|
{
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
q,
|
|
2939
|
+
bottomBarStore: e,
|
|
2940
|
+
button: /* @__PURE__ */ s(
|
|
2941
|
+
W,
|
|
2523
2942
|
{
|
|
2524
2943
|
title: "More options",
|
|
2525
2944
|
"aria-label": "More options",
|
|
2526
|
-
iconType:
|
|
2945
|
+
iconType: Qt,
|
|
2527
2946
|
size: "s",
|
|
2528
2947
|
iconSize: "l",
|
|
2529
|
-
onClick: () =>
|
|
2948
|
+
onClick: () => r(!t)
|
|
2530
2949
|
}
|
|
2531
2950
|
),
|
|
2532
|
-
isOpen:
|
|
2533
|
-
closePopover: () =>
|
|
2951
|
+
isOpen: t,
|
|
2952
|
+
closePopover: () => r(!1)
|
|
2534
2953
|
}
|
|
2535
2954
|
);
|
|
2536
2955
|
}
|
|
2537
|
-
),
|
|
2956
|
+
), la = re(
|
|
2538
2957
|
({
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
se,
|
|
2958
|
+
bottomBarStore: e,
|
|
2959
|
+
onClickPlayQueueButton: t
|
|
2960
|
+
}) => /* @__PURE__ */ M(
|
|
2961
|
+
oe,
|
|
2544
2962
|
{
|
|
2545
2963
|
responsive: !1,
|
|
2546
2964
|
gutterSize: "s",
|
|
2547
2965
|
justifyContent: "flexEnd",
|
|
2548
2966
|
alignItems: "center",
|
|
2549
2967
|
children: [
|
|
2550
|
-
/* @__PURE__ */
|
|
2551
|
-
|
|
2552
|
-
|
|
2968
|
+
/* @__PURE__ */ s(na, { bottomBarStore: e }),
|
|
2969
|
+
t && /* @__PURE__ */ s(
|
|
2970
|
+
ia,
|
|
2553
2971
|
{
|
|
2554
|
-
onClickPlayQueueButton:
|
|
2972
|
+
onClickPlayQueueButton: t
|
|
2555
2973
|
}
|
|
2556
2974
|
),
|
|
2557
|
-
/* @__PURE__ */
|
|
2558
|
-
Ri,
|
|
2559
|
-
{
|
|
2560
|
-
playerStore: e,
|
|
2561
|
-
playQueueStore: t
|
|
2562
|
-
}
|
|
2563
|
-
)
|
|
2975
|
+
/* @__PURE__ */ s(oa, { bottomBarStore: e })
|
|
2564
2976
|
]
|
|
2565
2977
|
}
|
|
2566
2978
|
)
|
|
2567
|
-
),
|
|
2568
|
-
({
|
|
2569
|
-
const
|
|
2570
|
-
(
|
|
2571
|
-
const
|
|
2572
|
-
e.setPercent(
|
|
2979
|
+
), ca = C(
|
|
2980
|
+
({ bottomBarStore: e }) => {
|
|
2981
|
+
const t = le(), r = $(
|
|
2982
|
+
(o) => {
|
|
2983
|
+
const c = Number(o.currentTarget.value) / 100;
|
|
2984
|
+
e.playerStore.setPercent(c);
|
|
2573
2985
|
},
|
|
2574
2986
|
[e]
|
|
2575
|
-
),
|
|
2576
|
-
(
|
|
2577
|
-
|
|
2987
|
+
), i = $(
|
|
2988
|
+
(o) => {
|
|
2989
|
+
o.button === 0 && e.playerStore.setSeeking(!0);
|
|
2578
2990
|
},
|
|
2579
2991
|
[e]
|
|
2580
|
-
),
|
|
2581
|
-
async (
|
|
2582
|
-
if (
|
|
2583
|
-
const
|
|
2584
|
-
e.setSeeking(!1);
|
|
2585
|
-
const
|
|
2586
|
-
|
|
2992
|
+
), a = $(
|
|
2993
|
+
async (o) => {
|
|
2994
|
+
if (o.button === 0) {
|
|
2995
|
+
const c = Number(o.currentTarget.value) / 100;
|
|
2996
|
+
e.playerStore.setSeeking(!1);
|
|
2997
|
+
const f = await t.getDuration();
|
|
2998
|
+
f !== void 0 && await t.setCurrentTime(f * c);
|
|
2587
2999
|
}
|
|
2588
3000
|
},
|
|
2589
|
-
[e,
|
|
3001
|
+
[e, t]
|
|
2590
3002
|
);
|
|
2591
|
-
return /* @__PURE__ */
|
|
2592
|
-
|
|
3003
|
+
return /* @__PURE__ */ s(
|
|
3004
|
+
Jt,
|
|
2593
3005
|
{
|
|
2594
3006
|
min: 0,
|
|
2595
3007
|
max: 100,
|
|
2596
3008
|
step: 1e-7,
|
|
2597
|
-
value: e.percent * 100,
|
|
2598
|
-
onChange:
|
|
2599
|
-
onMouseDown:
|
|
2600
|
-
onMouseUp:
|
|
3009
|
+
value: e.playerStore.percent * 100,
|
|
3010
|
+
onChange: r,
|
|
3011
|
+
onMouseDown: i,
|
|
3012
|
+
onMouseUp: a,
|
|
2601
3013
|
fullWidth: !0,
|
|
2602
3014
|
showRange: !0,
|
|
2603
3015
|
css: { blockSize: 32 },
|
|
2604
|
-
disabled:
|
|
3016
|
+
disabled: e.playQueueStore.isEmpty
|
|
2605
3017
|
}
|
|
2606
3018
|
);
|
|
2607
3019
|
}
|
|
2608
|
-
),
|
|
3020
|
+
), Ta = C(
|
|
2609
3021
|
({
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
/* @__PURE__ */
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
playerStore: e,
|
|
2618
|
-
playQueueStore: t
|
|
2619
|
-
}
|
|
2620
|
-
) }),
|
|
2621
|
-
/* @__PURE__ */ o(J, { children: /* @__PURE__ */ $(se, { responsive: !1, children: [
|
|
2622
|
-
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
2623
|
-
Ti,
|
|
3022
|
+
bottomBarStore: e,
|
|
3023
|
+
onClickPlayQueueButton: t
|
|
3024
|
+
}) => /* @__PURE__ */ s(on, { paddingSize: "s", children: /* @__PURE__ */ M(oe, { direction: "column", gutterSize: "none", children: [
|
|
3025
|
+
/* @__PURE__ */ s(J, { children: /* @__PURE__ */ s(ca, { bottomBarStore: e }) }),
|
|
3026
|
+
/* @__PURE__ */ s(J, { children: /* @__PURE__ */ M(oe, { responsive: !1, children: [
|
|
3027
|
+
/* @__PURE__ */ s(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ s(
|
|
3028
|
+
ea,
|
|
2624
3029
|
{
|
|
2625
|
-
|
|
3030
|
+
bottomBarStore: e
|
|
2626
3031
|
}
|
|
2627
3032
|
) }),
|
|
2628
|
-
/* @__PURE__ */
|
|
2629
|
-
|
|
3033
|
+
/* @__PURE__ */ s(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ s(
|
|
3034
|
+
Bi,
|
|
2630
3035
|
{
|
|
2631
|
-
|
|
2632
|
-
playQueueStore: t
|
|
3036
|
+
bottomBarStore: e
|
|
2633
3037
|
}
|
|
2634
3038
|
) }),
|
|
2635
|
-
/* @__PURE__ */
|
|
2636
|
-
|
|
3039
|
+
/* @__PURE__ */ s(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ s(
|
|
3040
|
+
la,
|
|
2637
3041
|
{
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
onClickPlayQueueButton: n
|
|
3042
|
+
bottomBarStore: e,
|
|
3043
|
+
onClickPlayQueueButton: t
|
|
2641
3044
|
}
|
|
2642
3045
|
) })
|
|
2643
3046
|
] }) })
|
|
2644
3047
|
] }) })
|
|
2645
|
-
),
|
|
3048
|
+
), Ca = (e) => /* @__PURE__ */ s(Cn, { ...e }), lt = {
|
|
2646
3049
|
width: 400,
|
|
2647
3050
|
height: 225
|
|
2648
|
-
},
|
|
3051
|
+
}, Ia = C(
|
|
2649
3052
|
({ children: e }) => {
|
|
2650
|
-
const t =
|
|
2651
|
-
return /* @__PURE__ */
|
|
2652
|
-
|
|
3053
|
+
const t = rr();
|
|
3054
|
+
return /* @__PURE__ */ M(
|
|
3055
|
+
dt,
|
|
2653
3056
|
{
|
|
2654
3057
|
panelled: !0,
|
|
2655
3058
|
style: {
|
|
2656
|
-
minBlockSize: `max(460px, 100vh - ${
|
|
3059
|
+
minBlockSize: `max(460px, 100vh - ${Zt}px)`
|
|
2657
3060
|
},
|
|
2658
3061
|
children: [
|
|
2659
3062
|
e,
|
|
2660
|
-
!t.isEmpty && /* @__PURE__ */
|
|
3063
|
+
!t.isEmpty && /* @__PURE__ */ s(Gt, { style: { blockSize: lt.height } })
|
|
2661
3064
|
]
|
|
2662
3065
|
}
|
|
2663
3066
|
);
|
|
2664
3067
|
}
|
|
2665
|
-
),
|
|
2666
|
-
({
|
|
2667
|
-
const
|
|
2668
|
-
t.interacted && await n.play();
|
|
2669
|
-
}, [t, n]), a = N(async () => {
|
|
2670
|
-
switch (t.repeat) {
|
|
2671
|
-
case O.One:
|
|
2672
|
-
await n.setCurrentTime(0);
|
|
2673
|
-
break;
|
|
2674
|
-
case O.Off:
|
|
2675
|
-
case O.All:
|
|
2676
|
-
if (t.isLastItem)
|
|
2677
|
-
switch (t.repeat) {
|
|
2678
|
-
case O.Off:
|
|
2679
|
-
e.onEnded();
|
|
2680
|
-
break;
|
|
2681
|
-
case O.All:
|
|
2682
|
-
t.hasMultipleItems ? await t.goToFirst() : await n.setCurrentTime(0);
|
|
2683
|
-
break;
|
|
2684
|
-
}
|
|
2685
|
-
else
|
|
2686
|
-
await t.next();
|
|
2687
|
-
break;
|
|
2688
|
-
}
|
|
2689
|
-
}, [t, e, n]), l = De(
|
|
3068
|
+
), xa = C(
|
|
3069
|
+
({ miniPlayerStore: e }) => {
|
|
3070
|
+
const t = Ve(
|
|
2690
3071
|
() => ({
|
|
2691
|
-
onLoaded:
|
|
3072
|
+
onLoaded: e.onLoaded,
|
|
2692
3073
|
onPlay: e.onPlay,
|
|
2693
3074
|
onPause: e.onPause,
|
|
2694
|
-
onEnded:
|
|
3075
|
+
onEnded: e.onEnded,
|
|
2695
3076
|
onTimeUpdate: e.onTimeUpdate
|
|
2696
3077
|
}),
|
|
2697
|
-
[e
|
|
3078
|
+
[e]
|
|
2698
3079
|
);
|
|
2699
|
-
return /* @__PURE__ */
|
|
3080
|
+
return /* @__PURE__ */ s(
|
|
2700
3081
|
"div",
|
|
2701
3082
|
{
|
|
2702
3083
|
css: {
|
|
2703
3084
|
position: "fixed",
|
|
2704
3085
|
right: 0,
|
|
2705
|
-
bottom:
|
|
2706
|
-
width:
|
|
2707
|
-
height:
|
|
3086
|
+
bottom: Zt,
|
|
3087
|
+
width: lt.width,
|
|
3088
|
+
height: lt.height,
|
|
2708
3089
|
zIndex: 998,
|
|
2709
3090
|
backgroundColor: "rgb(39, 39, 39)",
|
|
2710
3091
|
display: "flex",
|
|
2711
3092
|
flexDirection: "column"
|
|
2712
3093
|
},
|
|
2713
|
-
children: /* @__PURE__ */
|
|
2714
|
-
|
|
3094
|
+
children: /* @__PURE__ */ s("div", { css: { flexGrow: 1, backgroundColor: "black" }, children: e.currentItem && /* @__PURE__ */ s(
|
|
3095
|
+
In,
|
|
2715
3096
|
{
|
|
2716
|
-
src:
|
|
2717
|
-
options:
|
|
3097
|
+
src: e.currentItem.url,
|
|
3098
|
+
options: t,
|
|
2718
3099
|
onControllerChange: e.onControllerChange
|
|
2719
3100
|
}
|
|
2720
3101
|
) })
|
|
@@ -2722,25 +3103,25 @@ const nr = zt(void 0), Yi = ({
|
|
|
2722
3103
|
);
|
|
2723
3104
|
}
|
|
2724
3105
|
);
|
|
2725
|
-
class
|
|
2726
|
-
controller =
|
|
3106
|
+
class ua {
|
|
3107
|
+
controller = xn;
|
|
2727
3108
|
playing = !1;
|
|
2728
3109
|
percent = 0;
|
|
2729
3110
|
seeking = !1;
|
|
2730
3111
|
constructor(t) {
|
|
2731
3112
|
t.makeObservable(this, {
|
|
2732
|
-
controller:
|
|
2733
|
-
playing:
|
|
2734
|
-
percent:
|
|
2735
|
-
seeking:
|
|
2736
|
-
setPlaying:
|
|
2737
|
-
setPercent:
|
|
2738
|
-
setSeeking:
|
|
2739
|
-
onControllerChange:
|
|
2740
|
-
onPlay:
|
|
2741
|
-
onPause:
|
|
2742
|
-
onEnded:
|
|
2743
|
-
onTimeUpdate:
|
|
3113
|
+
controller: X,
|
|
3114
|
+
playing: X,
|
|
3115
|
+
percent: X,
|
|
3116
|
+
seeking: X,
|
|
3117
|
+
setPlaying: v,
|
|
3118
|
+
setPercent: v,
|
|
3119
|
+
setSeeking: v,
|
|
3120
|
+
onControllerChange: v.bound,
|
|
3121
|
+
onPlay: v.bound,
|
|
3122
|
+
onPause: v.bound,
|
|
3123
|
+
onEnded: v.bound,
|
|
3124
|
+
onTimeUpdate: v.bound
|
|
2744
3125
|
});
|
|
2745
3126
|
}
|
|
2746
3127
|
setPlaying(t) {
|
|
@@ -2768,28 +3149,29 @@ class _i {
|
|
|
2768
3149
|
t !== void 0 && (this.seeking || (this.percent = t));
|
|
2769
3150
|
}
|
|
2770
3151
|
}
|
|
2771
|
-
const
|
|
3152
|
+
const pr = Vt(void 0), Oa = ({
|
|
2772
3153
|
children: e
|
|
2773
3154
|
}) => {
|
|
2774
|
-
const [t] =
|
|
2775
|
-
() => new
|
|
3155
|
+
const [t] = z(
|
|
3156
|
+
() => new ua(new er())
|
|
2776
3157
|
);
|
|
2777
|
-
return /* @__PURE__ */
|
|
2778
|
-
},
|
|
3158
|
+
return /* @__PURE__ */ s(pr.Provider, { value: t, children: e });
|
|
3159
|
+
}, _a = () => ct(pr);
|
|
2779
3160
|
export {
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
3161
|
+
Ta as BottomBar,
|
|
3162
|
+
Ca as HydrangeanDivaProvider,
|
|
3163
|
+
Ia as MediaPlayerLayout,
|
|
3164
|
+
xa as MiniPlayer,
|
|
3165
|
+
er as MobXObservableStateProvider,
|
|
3166
|
+
Sa as ObservableStateProvider,
|
|
3167
|
+
Ni as PlayQueue,
|
|
3168
|
+
Ra as PlayQueuePage,
|
|
3169
|
+
tr as PlayQueueStoreContext,
|
|
3170
|
+
Ea as PlayQueueStoreProvider,
|
|
3171
|
+
Oa as PlayerStoreProvider,
|
|
3172
|
+
N as RepeatMode,
|
|
3173
|
+
Zt as bottomBarHeight,
|
|
3174
|
+
rr as usePlayQueueStore,
|
|
3175
|
+
_a as usePlayerStore
|
|
2794
3176
|
};
|
|
2795
3177
|
//# sourceMappingURL=index.es.js.map
|