@aigamo/hydrangean-diva 0.0.1-alpha.18 → 0.0.1-alpha.20

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