@aigamo/hydrangean-diva 0.0.1-alpha.27 → 0.0.1-alpha.29

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.
Files changed (34) hide show
  1. package/dist/features/media-player.play-queue/components/DeveloperToolsButton.d.ts +2 -2
  2. package/dist/features/media-player.play-queue/components/PlayQueue.d.ts +2 -2
  3. package/dist/features/media-player.play-queue/components/PlayQueueProvider.d.ts +6 -0
  4. package/dist/features/media-player.play-queue/components/PlayQueueTable.d.ts +2 -2
  5. package/dist/features/media-player.play-queue.abstractions/contexts/PlayQueueContext.d.ts +3 -0
  6. package/dist/features/media-player.play-queue.abstractions/contexts/index.d.ts +1 -1
  7. package/dist/features/media-player.play-queue.abstractions/interfaces/IPlayQueueStore.d.ts +3 -1
  8. package/dist/features/media-player.player/components/PlayerProvider.d.ts +6 -0
  9. package/dist/features/media-player.player/components/bottom-bar/BottomBarCenterControls.d.ts +1 -6
  10. package/dist/features/media-player.player/components/bottom-bar/BottomBarLeftControls.d.ts +1 -6
  11. package/dist/features/media-player.player/components/bottom-bar/BottomBarProvider.d.ts +6 -0
  12. package/dist/features/media-player.player/components/bottom-bar/BottomBarRightControls.d.ts +1 -3
  13. package/dist/features/media-player.player/components/bottom-bar/SeekBar.d.ts +1 -6
  14. package/dist/features/media-player.player/components/mini-player/MiniPlayerProvider.d.ts +6 -0
  15. package/dist/features/media-player.player/contexts/BottomBarContext.d.ts +3 -0
  16. package/dist/features/media-player.player/contexts/MiniPlayerContext.d.ts +3 -0
  17. package/dist/features/media-player.player/contexts/PlayerContext.d.ts +3 -0
  18. package/dist/features/media-player.playlists/components/PlaylistTable.d.ts +2 -2
  19. package/dist/features/media-player.playlists/pages/PlaylistDetailsPage.d.ts +2 -4
  20. package/dist/features/media-player.playlists/stores/PlaylistItemStore.d.ts +2 -2
  21. package/dist/features/media-player.playlists/stores/PlaylistStore.d.ts +1 -1
  22. package/dist/index.cjs.js +8 -8
  23. package/dist/index.cjs.js.map +1 -1
  24. package/dist/index.es.js +1109 -1140
  25. package/dist/index.es.js.map +1 -1
  26. package/package.json +1 -1
  27. package/dist/features/media-player.play-queue/components/PlayQueueStoreProvider.d.ts +0 -6
  28. package/dist/features/media-player.play-queue.abstractions/contexts/PlayQueueStoreContext.d.ts +0 -3
  29. package/dist/features/media-player.player/components/PlayerStoreProvider.d.ts +0 -6
  30. package/dist/features/media-player.player/components/bottom-bar/BottomBarStoreProvider.d.ts +0 -6
  31. package/dist/features/media-player.player/components/mini-player/MiniPlayerStoreProvider.d.ts +0 -6
  32. package/dist/features/media-player.player/contexts/BottomBarStoreContext.d.ts +0 -3
  33. package/dist/features/media-player.player/contexts/MiniPlayerStoreContext.d.ts +0 -3
  34. package/dist/features/media-player.player/contexts/PlayerStoreContext.d.ts +0 -3
package/dist/index.es.js CHANGED
@@ -1,47 +1,47 @@
1
- import { makeObservable as zr, action as h, computed as g, observable as X, reaction as Lr } from "mobx";
2
- import * as te from "react";
3
- import Ut, { forwardRef as qr, useContext as xe, createContext as Ue, useState as $, useEffect as Yt, memo as re, useCallback as j, useMemo as Ye, useLayoutEffect as Qr } from "react";
1
+ import { makeObservable as zr, action as m, computed as g, observable as Z, reaction as Lr } from "mobx";
2
+ import * as re from "react";
3
+ import Ut, { forwardRef as qr, useContext as Oe, createContext as Ue, useState as $, useEffect as Yt, memo as ne, useCallback as B, useMemo as Ye, useLayoutEffect as Qr } from "react";
4
4
  import Vr from "@emotion/cache";
5
5
  import Ur from "ajv";
6
- import { pull as _t } from "lodash-es";
7
- import { useNostalgicDiva as le, nullPlayerController as Yr, NostalgicDivaProvider as Wr, findVideoService as Hr, NostalgicDiva as Gr } from "@aigamo/nostalgic-diva";
8
- import { EuiSelectable as Jr, EuiPopoverTitle as Br, EuiPopoverFooter as Kr, EuiButton as J, EuiPopover as Oe, useGeneratedHtmlId as Xr, EuiModalHeaderTitle as Zr, EuiModalHeader as en, EuiForm as tn, EuiFormRow as ct, EuiFieldText as At, EuiModalBody as rn, EuiModalFooter as nn, EuiButtonEmpty as Wt, EuiModal as an, EuiCodeBlock as sn, EuiFlyout as on, useEuiTheme as Ht, EuiCheckbox as Gt, EuiTableHeaderCellCheckbox as ln, EuiTableHeaderCell as at, EuiTableHeader as cn, EuiIcon as U, EuiContextMenu as pt, EuiButtonIcon as Y, EuiTableRowCell as ut, EuiTableRowCellCheckbox as un, EuiLink as dn, EuiTableRow as fn, EuiTable as pn, EuiFlexGroup as oe, EuiFlexItem as G, EuiSpacer as Jt, EuiEmptyPrompt as hn, EuiPageTemplate as ht, EuiRange as Bt, EuiBottomBar as yn } from "@elastic/eui";
9
- import { AddRegular as Ce, WindowDevToolsRegular as mn, ArrowUploadRegular as vn, ArrowDownloadRegular as gn, MoreHorizontalFilled as Kt, PlayRegular as Pn, DismissRegular as yt, DeleteRegular as bn, ArrowShuffleFilled as wn, ArrowShuffleOffFilled as Sn, PreviousFilled as Tn, SkipBack10Regular as Xt, PauseFilled as Rn, PlayFilled as Cn, SkipForward30Regular as Zt, NextFilled as En, ArrowRepeat1Filled as In, ArrowRepeatAllFilled as xn, ArrowRepeatAllOffFilled as On, OpenRegular as kn, Speaker2Regular as er, TopSpeedRegular as _n, NavigationPlayRegular as An } from "@fluentui/react-icons";
6
+ import { pull as At } from "lodash-es";
7
+ import { useNostalgicDiva as ce, nullPlayerController as Yr, NostalgicDivaProvider as Wr, findVideoService as Hr, NostalgicDiva as Gr } from "@aigamo/nostalgic-diva";
8
+ import { EuiSelectable as Jr, EuiPopoverTitle as Kr, EuiPopoverFooter as Xr, EuiButton as J, EuiPopover as ke, useGeneratedHtmlId as Zr, EuiModalHeaderTitle as en, EuiModalHeader as tn, EuiForm as rn, EuiFormRow as ut, EuiFieldText as Ft, EuiModalBody as nn, EuiModalFooter as an, EuiButtonEmpty as Wt, EuiModal as on, EuiCodeBlock as sn, EuiFlyout as ln, useEuiTheme as Ht, EuiCheckbox as Gt, EuiTableHeaderCellCheckbox as cn, EuiTableHeaderCell as ot, EuiTableHeader as un, EuiIcon as U, EuiContextMenu as mt, EuiButtonIcon as Y, EuiTableRowCell as dt, EuiTableRowCellCheckbox as dn, EuiLink as fn, EuiTableRow as pn, EuiTable as mn, EuiFlexGroup as le, EuiFlexItem as G, EuiSpacer as Jt, EuiEmptyPrompt as hn, EuiPageTemplate as ht, EuiRange as Kt, EuiBottomBar as yn } from "@elastic/eui";
9
+ import { AddRegular as Ee, WindowDevToolsRegular as vn, ArrowUploadRegular as gn, ArrowDownloadRegular as bn, MoreHorizontalFilled as Xt, PlayRegular as Pn, DismissRegular as yt, DeleteRegular as Sn, ArrowShuffleFilled as wn, ArrowShuffleOffFilled as Tn, PreviousFilled as Rn, SkipBack10Regular as Zt, PauseFilled as Cn, PlayFilled as En, SkipForward30Regular as er, NextFilled as In, ArrowRepeat1Filled as xn, ArrowRepeatAllFilled as On, ArrowRepeatAllOffFilled as kn, OpenRegular as _n, Speaker2Regular as tr, TopSpeedRegular as An, NavigationPlayRegular as Fn } from "@fluentui/react-icons";
10
10
  import { observer as I } from "mobx-react-lite";
11
- import { ReactSortable as Fn } from "react-sortablejs";
12
- import { useRouter as Mn } from "@tanstack/react-router";
13
- const tr = 81;
11
+ import { ReactSortable as Mn } from "react-sortablejs";
12
+ import { useRouter as Dn } from "@tanstack/react-router";
13
+ const rr = 81;
14
14
  class We {
15
15
  makeObservable(e, r) {
16
16
  return zr(e, r);
17
17
  }
18
18
  }
19
- class Ma {
19
+ class Mi {
20
20
  makeObservable(e, r) {
21
21
  return e;
22
22
  }
23
23
  }
24
- var qe = { exports: {} }, Se = {};
25
- var Ft;
26
- function Dn() {
27
- if (Ft) return Se;
28
- Ft = 1;
29
- var t = Ut, e = /* @__PURE__ */ Symbol.for("react.element"), r = /* @__PURE__ */ Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
30
- function c(f, p, m) {
31
- var b, S = {}, L = null, N = null;
32
- m !== void 0 && (L = "" + m), p.key !== void 0 && (L = "" + p.key), p.ref !== void 0 && (N = p.ref);
33
- for (b in p) i.call(p, b) && !o.hasOwnProperty(b) && (S[b] = p[b]);
34
- if (f && f.defaultProps) for (b in p = f.defaultProps, p) S[b] === void 0 && (S[b] = p[b]);
35
- return { $$typeof: e, type: f, key: L, ref: N, props: S, _owner: a.current };
36
- }
37
- return Se.Fragment = r, Se.jsx = c, Se.jsxs = c, Se;
38
- }
39
- var Te = {};
24
+ var qe = { exports: {} }, Te = {};
40
25
  var Mt;
41
26
  function Nn() {
42
- return Mt || (Mt = 1, process.env.NODE_ENV !== "production" && (function() {
43
- var t = Ut, e = /* @__PURE__ */ Symbol.for("react.element"), r = /* @__PURE__ */ Symbol.for("react.portal"), i = /* @__PURE__ */ Symbol.for("react.fragment"), a = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), c = /* @__PURE__ */ Symbol.for("react.provider"), f = /* @__PURE__ */ Symbol.for("react.context"), p = /* @__PURE__ */ Symbol.for("react.forward_ref"), m = /* @__PURE__ */ Symbol.for("react.suspense"), b = /* @__PURE__ */ Symbol.for("react.suspense_list"), S = /* @__PURE__ */ Symbol.for("react.memo"), L = /* @__PURE__ */ Symbol.for("react.lazy"), N = /* @__PURE__ */ Symbol.for("react.offscreen"), A = Symbol.iterator, W = "@@iterator";
44
- function Z(n) {
27
+ if (Mt) return Te;
28
+ Mt = 1;
29
+ var t = Ut, e = /* @__PURE__ */ Symbol.for("react.element"), r = /* @__PURE__ */ Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
30
+ function c(f, p, y) {
31
+ var P, w = {}, L = null, N = null;
32
+ y !== void 0 && (L = "" + y), p.key !== void 0 && (L = "" + p.key), p.ref !== void 0 && (N = p.ref);
33
+ for (P in p) a.call(p, P) && !s.hasOwnProperty(P) && (w[P] = p[P]);
34
+ if (f && f.defaultProps) for (P in p = f.defaultProps, p) w[P] === void 0 && (w[P] = p[P]);
35
+ return { $$typeof: e, type: f, key: L, ref: N, props: w, _owner: i.current };
36
+ }
37
+ return Te.Fragment = r, Te.jsx = c, Te.jsxs = c, Te;
38
+ }
39
+ var Re = {};
40
+ var Dt;
41
+ function $n() {
42
+ return Dt || (Dt = 1, process.env.NODE_ENV !== "production" && (function() {
43
+ var t = Ut, e = /* @__PURE__ */ Symbol.for("react.element"), r = /* @__PURE__ */ Symbol.for("react.portal"), a = /* @__PURE__ */ Symbol.for("react.fragment"), i = /* @__PURE__ */ Symbol.for("react.strict_mode"), s = /* @__PURE__ */ Symbol.for("react.profiler"), c = /* @__PURE__ */ Symbol.for("react.provider"), f = /* @__PURE__ */ Symbol.for("react.context"), p = /* @__PURE__ */ Symbol.for("react.forward_ref"), y = /* @__PURE__ */ Symbol.for("react.suspense"), P = /* @__PURE__ */ Symbol.for("react.suspense_list"), w = /* @__PURE__ */ Symbol.for("react.memo"), L = /* @__PURE__ */ Symbol.for("react.lazy"), N = /* @__PURE__ */ Symbol.for("react.offscreen"), A = Symbol.iterator, W = "@@iterator";
44
+ function ee(n) {
45
45
  if (n === null || typeof n != "object")
46
46
  return null;
47
47
  var l = A && n[A] || n[W];
@@ -59,32 +59,32 @@ function Nn() {
59
59
  {
60
60
  var v = q.ReactDebugCurrentFrame, T = v.getStackAddendum();
61
61
  T !== "" && (l += "%s", d = d.concat([T]));
62
- var E = d.map(function(w) {
63
- return String(w);
62
+ var E = d.map(function(S) {
63
+ return String(S);
64
64
  });
65
65
  E.unshift("Warning: " + l), Function.prototype.apply.call(console[n], console, E);
66
66
  }
67
67
  }
68
- var k = !1, u = !1, Q = !1, he = !1, _e = !1, Ae;
69
- Ae = /* @__PURE__ */ Symbol.for("react.module.reference");
68
+ var k = !1, u = !1, Q = !1, he = !1, Ae = !1, Fe;
69
+ Fe = /* @__PURE__ */ Symbol.for("react.module.reference");
70
70
  function Je(n) {
71
- return !!(typeof n == "string" || typeof n == "function" || n === i || n === o || _e || n === a || n === m || n === b || he || n === N || k || u || Q || typeof n == "object" && n !== null && (n.$$typeof === L || n.$$typeof === S || n.$$typeof === c || n.$$typeof === f || n.$$typeof === p || // This needs to include all possible module reference object
71
+ return !!(typeof n == "string" || typeof n == "function" || n === a || n === s || Ae || n === i || n === y || n === P || he || n === N || k || u || Q || typeof n == "object" && n !== null && (n.$$typeof === L || n.$$typeof === w || n.$$typeof === c || n.$$typeof === f || n.$$typeof === p || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
75
- n.$$typeof === Ae || n.getModuleId !== void 0));
75
+ n.$$typeof === Fe || n.getModuleId !== void 0));
76
76
  }
77
- function Be(n, l, d) {
77
+ function Ke(n, l, d) {
78
78
  var v = n.displayName;
79
79
  if (v)
80
80
  return v;
81
81
  var T = l.displayName || l.name || "";
82
82
  return T !== "" ? d + "(" + T + ")" : d;
83
83
  }
84
- function Fe(n) {
84
+ function Me(n) {
85
85
  return n.displayName || "Context";
86
86
  }
87
- function B(n) {
87
+ function K(n) {
88
88
  if (n == null)
89
89
  return null;
90
90
  if (typeof n.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
@@ -92,36 +92,36 @@ function Nn() {
92
92
  if (typeof n == "string")
93
93
  return n;
94
94
  switch (n) {
95
- case i:
95
+ case a:
96
96
  return "Fragment";
97
97
  case r:
98
98
  return "Portal";
99
- case o:
99
+ case s:
100
100
  return "Profiler";
101
- case a:
101
+ case i:
102
102
  return "StrictMode";
103
- case m:
103
+ case y:
104
104
  return "Suspense";
105
- case b:
105
+ case P:
106
106
  return "SuspenseList";
107
107
  }
108
108
  if (typeof n == "object")
109
109
  switch (n.$$typeof) {
110
110
  case f:
111
111
  var l = n;
112
- return Fe(l) + ".Consumer";
112
+ return Me(l) + ".Consumer";
113
113
  case c:
114
114
  var d = n;
115
- return Fe(d._context) + ".Provider";
115
+ return Me(d._context) + ".Provider";
116
116
  case p:
117
- return Be(n, n.render, "ForwardRef");
118
- case S:
117
+ return Ke(n, n.render, "ForwardRef");
118
+ case w:
119
119
  var v = n.displayName || null;
120
- return v !== null ? v : B(n.type) || "Memo";
120
+ return v !== null ? v : K(n.type) || "Memo";
121
121
  case L: {
122
- var T = n, E = T._payload, w = T._init;
122
+ var T = n, E = T._payload, S = T._init;
123
123
  try {
124
- return B(w(E));
124
+ return K(S(E));
125
125
  } catch {
126
126
  return null;
127
127
  }
@@ -129,14 +129,14 @@ function Nn() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var ee = Object.assign, ne = 0, Me, De, ye, Ne, me, $e, je;
132
+ var te = Object.assign, ae = 0, De, Ne, ye, $e, ve, Be, je;
133
133
  function ze() {
134
134
  }
135
135
  ze.__reactDisabledLog = !0;
136
- function Ke() {
136
+ function Xe() {
137
137
  {
138
- if (ne === 0) {
139
- Me = console.log, De = console.info, ye = console.warn, Ne = console.error, me = console.group, $e = console.groupCollapsed, je = console.groupEnd;
138
+ if (ae === 0) {
139
+ De = console.log, Ne = console.info, ye = console.warn, $e = console.error, ve = console.group, Be = console.groupCollapsed, je = console.groupEnd;
140
140
  var n = {
141
141
  configurable: !0,
142
142
  enumerable: !0,
@@ -153,68 +153,68 @@ function Nn() {
153
153
  groupEnd: n
154
154
  });
155
155
  }
156
- ne++;
156
+ ae++;
157
157
  }
158
158
  }
159
- function Xe() {
159
+ function Ze() {
160
160
  {
161
- if (ne--, ne === 0) {
161
+ if (ae--, ae === 0) {
162
162
  var n = {
163
163
  configurable: !0,
164
164
  enumerable: !0,
165
165
  writable: !0
166
166
  };
167
167
  Object.defineProperties(console, {
168
- log: ee({}, n, {
169
- value: Me
170
- }),
171
- info: ee({}, n, {
168
+ log: te({}, n, {
172
169
  value: De
173
170
  }),
174
- warn: ee({}, n, {
175
- value: ye
176
- }),
177
- error: ee({}, n, {
171
+ info: te({}, n, {
178
172
  value: Ne
179
173
  }),
180
- group: ee({}, n, {
181
- value: me
174
+ warn: te({}, n, {
175
+ value: ye
182
176
  }),
183
- groupCollapsed: ee({}, n, {
177
+ error: te({}, n, {
184
178
  value: $e
185
179
  }),
186
- groupEnd: ee({}, n, {
180
+ group: te({}, n, {
181
+ value: ve
182
+ }),
183
+ groupCollapsed: te({}, n, {
184
+ value: Be
185
+ }),
186
+ groupEnd: te({}, n, {
187
187
  value: je
188
188
  })
189
189
  });
190
190
  }
191
- ne < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ ae < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
- var ve = q.ReactCurrentDispatcher, ge;
195
- function ce(n, l, d) {
194
+ var ge = q.ReactCurrentDispatcher, be;
195
+ function ue(n, l, d) {
196
196
  {
197
- if (ge === void 0)
197
+ if (be === void 0)
198
198
  try {
199
199
  throw Error();
200
200
  } catch (T) {
201
201
  var v = T.stack.trim().match(/\n( *(at )?)/);
202
- ge = v && v[1] || "";
202
+ be = v && v[1] || "";
203
203
  }
204
204
  return `
205
- ` + ge + n;
205
+ ` + be + n;
206
206
  }
207
207
  }
208
- var Pe = !1, ue;
208
+ var Pe = !1, de;
209
209
  {
210
- var Ze = typeof WeakMap == "function" ? WeakMap : Map;
211
- ue = new Ze();
210
+ var et = typeof WeakMap == "function" ? WeakMap : Map;
211
+ de = new et();
212
212
  }
213
- function y(n, l) {
213
+ function h(n, l) {
214
214
  if (!n || Pe)
215
215
  return "";
216
216
  {
217
- var d = ue.get(n);
217
+ var d = de.get(n);
218
218
  if (d !== void 0)
219
219
  return d;
220
220
  }
@@ -223,30 +223,30 @@ function Nn() {
223
223
  var T = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
225
  var E;
226
- E = ve.current, ve.current = null, Ke();
226
+ E = ge.current, ge.current = null, Xe();
227
227
  try {
228
228
  if (l) {
229
- var w = function() {
229
+ var S = function() {
230
230
  throw Error();
231
231
  };
232
- if (Object.defineProperty(w.prototype, "props", {
232
+ if (Object.defineProperty(S.prototype, "props", {
233
233
  set: function() {
234
234
  throw Error();
235
235
  }
236
236
  }), typeof Reflect == "object" && Reflect.construct) {
237
237
  try {
238
- Reflect.construct(w, []);
238
+ Reflect.construct(S, []);
239
239
  } catch (V) {
240
240
  v = V;
241
241
  }
242
- Reflect.construct(n, [], w);
242
+ Reflect.construct(n, [], S);
243
243
  } else {
244
244
  try {
245
- w.call();
245
+ S.call();
246
246
  } catch (V) {
247
247
  v = V;
248
248
  }
249
- n.call(w.prototype);
249
+ n.call(S.prototype);
250
250
  }
251
251
  } else {
252
252
  try {
@@ -258,33 +258,33 @@ function Nn() {
258
258
  }
259
259
  } catch (V) {
260
260
  if (V && v && typeof V.stack == "string") {
261
- for (var P = V.stack.split(`
262
- `), z = v.stack.split(`
263
- `), _ = P.length - 1, M = z.length - 1; _ >= 1 && M >= 0 && P[_] !== z[M]; )
261
+ for (var b = V.stack.split(`
262
+ `), j = v.stack.split(`
263
+ `), _ = b.length - 1, M = j.length - 1; _ >= 1 && M >= 0 && b[_] !== j[M]; )
264
264
  M--;
265
265
  for (; _ >= 1 && M >= 0; _--, M--)
266
- if (P[_] !== z[M]) {
266
+ if (b[_] !== j[M]) {
267
267
  if (_ !== 1 || M !== 1)
268
268
  do
269
- if (_--, M--, M < 0 || P[_] !== z[M]) {
269
+ if (_--, M--, M < 0 || b[_] !== j[M]) {
270
270
  var H = `
271
- ` + P[_].replace(" at new ", " at ");
272
- return n.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", n.displayName)), typeof n == "function" && ue.set(n, H), H;
271
+ ` + b[_].replace(" at new ", " at ");
272
+ return n.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", n.displayName)), typeof n == "function" && de.set(n, H), H;
273
273
  }
274
274
  while (_ >= 1 && M >= 0);
275
275
  break;
276
276
  }
277
277
  }
278
278
  } finally {
279
- Pe = !1, ve.current = E, Xe(), Error.prepareStackTrace = T;
279
+ Pe = !1, ge.current = E, Ze(), Error.prepareStackTrace = T;
280
280
  }
281
- var pe = n ? n.displayName || n.name : "", ae = pe ? ce(pe) : "";
282
- return typeof n == "function" && ue.set(n, ae), ae;
281
+ var me = n ? n.displayName || n.name : "", oe = me ? ue(me) : "";
282
+ return typeof n == "function" && de.set(n, oe), oe;
283
283
  }
284
- function be(n, l, d) {
285
- return y(n, !1);
284
+ function Se(n, l, d) {
285
+ return h(n, !1);
286
286
  }
287
- function de(n) {
287
+ function fe(n) {
288
288
  var l = n.prototype;
289
289
  return !!(l && l.isReactComponent);
290
290
  }
@@ -292,20 +292,20 @@ function Nn() {
292
292
  if (n == null)
293
293
  return "";
294
294
  if (typeof n == "function")
295
- return y(n, de(n));
295
+ return h(n, fe(n));
296
296
  if (typeof n == "string")
297
- return ce(n);
297
+ return ue(n);
298
298
  switch (n) {
299
- case m:
300
- return ce("Suspense");
301
- case b:
302
- return ce("SuspenseList");
299
+ case y:
300
+ return ue("Suspense");
301
+ case P:
302
+ return ue("SuspenseList");
303
303
  }
304
304
  if (typeof n == "object")
305
305
  switch (n.$$typeof) {
306
306
  case p:
307
- return be(n.render);
308
- case S:
307
+ return Se(n.render);
308
+ case w:
309
309
  return ie(n.type, l, d);
310
310
  case L: {
311
311
  var v = n, T = v._payload, E = v._init;
@@ -317,36 +317,36 @@ function Nn() {
317
317
  }
318
318
  return "";
319
319
  }
320
- var we = Object.prototype.hasOwnProperty, vt = {}, gt = q.ReactDebugCurrentFrame;
320
+ var we = Object.prototype.hasOwnProperty, gt = {}, bt = q.ReactDebugCurrentFrame;
321
321
  function Le(n) {
322
322
  if (n) {
323
323
  var l = n._owner, d = ie(n.type, n._source, l ? l.type : null);
324
- gt.setExtraStackFrame(d);
324
+ bt.setExtraStackFrame(d);
325
325
  } else
326
- gt.setExtraStackFrame(null);
326
+ bt.setExtraStackFrame(null);
327
327
  }
328
- function vr(n, l, d, v, T) {
328
+ function gr(n, l, d, v, T) {
329
329
  {
330
330
  var E = Function.call.bind(we);
331
- for (var w in n)
332
- if (E(n, w)) {
333
- var P = void 0;
331
+ for (var S in n)
332
+ if (E(n, S)) {
333
+ var b = void 0;
334
334
  try {
335
- if (typeof n[w] != "function") {
336
- var z = Error((v || "React class") + ": " + d + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
- throw z.name = "Invariant Violation", z;
335
+ if (typeof n[S] != "function") {
336
+ var j = Error((v || "React class") + ": " + d + " type `" + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[S] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
+ throw j.name = "Invariant Violation", j;
338
338
  }
339
- P = n[w](l, w, v, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
339
+ b = n[S](l, S, v, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
340
  } catch (_) {
341
- P = _;
341
+ b = _;
342
342
  }
343
- P && !(P instanceof Error) && (Le(T), x("%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", d, w, typeof P), Le(null)), P instanceof Error && !(P.message in vt) && (vt[P.message] = !0, Le(T), x("Failed %s type: %s", d, P.message), Le(null));
343
+ b && !(b instanceof Error) && (Le(T), x("%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", d, S, typeof b), Le(null)), b instanceof Error && !(b.message in gt) && (gt[b.message] = !0, Le(T), x("Failed %s type: %s", d, b.message), Le(null));
344
344
  }
345
345
  }
346
346
  }
347
- var gr = Array.isArray;
348
- function et(n) {
349
- return gr(n);
347
+ var br = Array.isArray;
348
+ function tt(n) {
349
+ return br(n);
350
350
  }
351
351
  function Pr(n) {
352
352
  {
@@ -354,7 +354,7 @@ function Nn() {
354
354
  return d;
355
355
  }
356
356
  }
357
- function br(n) {
357
+ function Sr(n) {
358
358
  try {
359
359
  return Pt(n), !1;
360
360
  } catch {
@@ -364,8 +364,8 @@ function Nn() {
364
364
  function Pt(n) {
365
365
  return "" + n;
366
366
  }
367
- function bt(n) {
368
- if (br(n))
367
+ function St(n) {
368
+ if (Sr(n))
369
369
  return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Pr(n)), Pt(n);
370
370
  }
371
371
  var wt = q.ReactCurrentOwner, wr = {
@@ -373,8 +373,8 @@ function Nn() {
373
373
  ref: !0,
374
374
  __self: !0,
375
375
  __source: !0
376
- }, St, Tt;
377
- function Sr(n) {
376
+ }, Tt, Rt;
377
+ function Tr(n) {
378
378
  if (we.call(n, "ref")) {
379
379
  var l = Object.getOwnPropertyDescriptor(n, "ref").get;
380
380
  if (l && l.isReactWarning)
@@ -382,7 +382,7 @@ function Nn() {
382
382
  }
383
383
  return n.ref !== void 0;
384
384
  }
385
- function Tr(n) {
385
+ function Rr(n) {
386
386
  if (we.call(n, "key")) {
387
387
  var l = Object.getOwnPropertyDescriptor(n, "key").get;
388
388
  if (l && l.isReactWarning)
@@ -390,13 +390,13 @@ function Nn() {
390
390
  }
391
391
  return n.key !== void 0;
392
392
  }
393
- function Rr(n, l) {
393
+ function Cr(n, l) {
394
394
  typeof n.ref == "string" && wt.current;
395
395
  }
396
- function Cr(n, l) {
396
+ function Er(n, l) {
397
397
  {
398
398
  var d = function() {
399
- St || (St = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
399
+ Tt || (Tt = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
400
400
  };
401
401
  d.isReactWarning = !0, Object.defineProperty(n, "key", {
402
402
  get: d,
@@ -404,10 +404,10 @@ function Nn() {
404
404
  });
405
405
  }
406
406
  }
407
- function Er(n, l) {
407
+ function Ir(n, l) {
408
408
  {
409
409
  var d = function() {
410
- Tt || (Tt = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
410
+ Rt || (Rt = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
411
411
  };
412
412
  d.isReactWarning = !0, Object.defineProperty(n, "ref", {
413
413
  get: d,
@@ -415,70 +415,70 @@ function Nn() {
415
415
  });
416
416
  }
417
417
  }
418
- var Ir = function(n, l, d, v, T, E, w) {
419
- var P = {
418
+ var xr = function(n, l, d, v, T, E, S) {
419
+ var b = {
420
420
  // This tag allows us to uniquely identify this as a React Element
421
421
  $$typeof: e,
422
422
  // Built-in properties that belong on the element
423
423
  type: n,
424
424
  key: l,
425
425
  ref: d,
426
- props: w,
426
+ props: S,
427
427
  // Record the component responsible for creating this element.
428
428
  _owner: E
429
429
  };
430
- return P._store = {}, Object.defineProperty(P._store, "validated", {
430
+ return b._store = {}, Object.defineProperty(b._store, "validated", {
431
431
  configurable: !1,
432
432
  enumerable: !1,
433
433
  writable: !0,
434
434
  value: !1
435
- }), Object.defineProperty(P, "_self", {
435
+ }), Object.defineProperty(b, "_self", {
436
436
  configurable: !1,
437
437
  enumerable: !1,
438
438
  writable: !1,
439
439
  value: v
440
- }), Object.defineProperty(P, "_source", {
440
+ }), Object.defineProperty(b, "_source", {
441
441
  configurable: !1,
442
442
  enumerable: !1,
443
443
  writable: !1,
444
444
  value: T
445
- }), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P;
445
+ }), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
446
446
  };
447
- function xr(n, l, d, v, T) {
447
+ function Or(n, l, d, v, T) {
448
448
  {
449
- var E, w = {}, P = null, z = null;
450
- d !== void 0 && (bt(d), P = "" + d), Tr(l) && (bt(l.key), P = "" + l.key), Sr(l) && (z = l.ref, Rr(l, T));
449
+ var E, S = {}, b = null, j = null;
450
+ d !== void 0 && (St(d), b = "" + d), Rr(l) && (St(l.key), b = "" + l.key), Tr(l) && (j = l.ref, Cr(l, T));
451
451
  for (E in l)
452
- we.call(l, E) && !wr.hasOwnProperty(E) && (w[E] = l[E]);
452
+ we.call(l, E) && !wr.hasOwnProperty(E) && (S[E] = l[E]);
453
453
  if (n && n.defaultProps) {
454
454
  var _ = n.defaultProps;
455
455
  for (E in _)
456
- w[E] === void 0 && (w[E] = _[E]);
456
+ S[E] === void 0 && (S[E] = _[E]);
457
457
  }
458
- if (P || z) {
458
+ if (b || j) {
459
459
  var M = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
460
- P && Cr(w, M), z && Er(w, M);
460
+ b && Er(S, M), j && Ir(S, M);
461
461
  }
462
- return Ir(n, P, z, T, v, wt.current, w);
462
+ return xr(n, b, j, T, v, wt.current, S);
463
463
  }
464
464
  }
465
- var tt = q.ReactCurrentOwner, Rt = q.ReactDebugCurrentFrame;
466
- function fe(n) {
465
+ var rt = q.ReactCurrentOwner, Ct = q.ReactDebugCurrentFrame;
466
+ function pe(n) {
467
467
  if (n) {
468
468
  var l = n._owner, d = ie(n.type, n._source, l ? l.type : null);
469
- Rt.setExtraStackFrame(d);
469
+ Ct.setExtraStackFrame(d);
470
470
  } else
471
- Rt.setExtraStackFrame(null);
471
+ Ct.setExtraStackFrame(null);
472
472
  }
473
- var rt;
474
- rt = !1;
475
- function nt(n) {
473
+ var nt;
474
+ nt = !1;
475
+ function at(n) {
476
476
  return typeof n == "object" && n !== null && n.$$typeof === e;
477
477
  }
478
- function Ct() {
478
+ function Et() {
479
479
  {
480
- if (tt.current) {
481
- var n = B(tt.current.type);
480
+ if (rt.current) {
481
+ var n = K(rt.current.type);
482
482
  if (n)
483
483
  return `
484
484
 
@@ -487,13 +487,13 @@ Check the render method of \`` + n + "`.";
487
487
  return "";
488
488
  }
489
489
  }
490
- function Or(n) {
490
+ function kr(n) {
491
491
  return "";
492
492
  }
493
- var Et = {};
494
- function kr(n) {
493
+ var It = {};
494
+ function _r(n) {
495
495
  {
496
- var l = Ct();
496
+ var l = Et();
497
497
  if (!l) {
498
498
  var d = typeof n == "string" ? n : n.displayName || n.name;
499
499
  d && (l = `
@@ -503,39 +503,39 @@ Check the top-level render call using <` + d + ">.");
503
503
  return l;
504
504
  }
505
505
  }
506
- function It(n, l) {
506
+ function xt(n, l) {
507
507
  {
508
508
  if (!n._store || n._store.validated || n.key != null)
509
509
  return;
510
510
  n._store.validated = !0;
511
- var d = kr(l);
512
- if (Et[d])
511
+ var d = _r(l);
512
+ if (It[d])
513
513
  return;
514
- Et[d] = !0;
514
+ It[d] = !0;
515
515
  var v = "";
516
- n && n._owner && n._owner !== tt.current && (v = " It was passed a child from " + B(n._owner.type) + "."), fe(n), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, v), fe(null);
516
+ n && n._owner && n._owner !== rt.current && (v = " It was passed a child from " + K(n._owner.type) + "."), pe(n), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, v), pe(null);
517
517
  }
518
518
  }
519
- function xt(n, l) {
519
+ function Ot(n, l) {
520
520
  {
521
521
  if (typeof n != "object")
522
522
  return;
523
- if (et(n))
523
+ if (tt(n))
524
524
  for (var d = 0; d < n.length; d++) {
525
525
  var v = n[d];
526
- nt(v) && It(v, l);
526
+ at(v) && xt(v, l);
527
527
  }
528
- else if (nt(n))
528
+ else if (at(n))
529
529
  n._store && (n._store.validated = !0);
530
530
  else if (n) {
531
- var T = Z(n);
531
+ var T = ee(n);
532
532
  if (typeof T == "function" && T !== n.entries)
533
- for (var E = T.call(n), w; !(w = E.next()).done; )
534
- nt(w.value) && It(w.value, l);
533
+ for (var E = T.call(n), S; !(S = E.next()).done; )
534
+ at(S.value) && xt(S.value, l);
535
535
  }
536
536
  }
537
537
  }
538
- function _r(n) {
538
+ function Ar(n) {
539
539
  {
540
540
  var l = n.type;
541
541
  if (l == null || typeof l == "string")
@@ -545,98 +545,98 @@ Check the top-level render call using <` + d + ">.");
545
545
  d = l.propTypes;
546
546
  else if (typeof l == "object" && (l.$$typeof === p || // Note: Memo only checks outer props here.
547
547
  // Inner props are checked in the reconciler.
548
- l.$$typeof === S))
548
+ l.$$typeof === w))
549
549
  d = l.propTypes;
550
550
  else
551
551
  return;
552
552
  if (d) {
553
- var v = B(l);
554
- vr(d, n.props, "prop", v, n);
555
- } else if (l.PropTypes !== void 0 && !rt) {
556
- rt = !0;
557
- var T = B(l);
553
+ var v = K(l);
554
+ gr(d, n.props, "prop", v, n);
555
+ } else if (l.PropTypes !== void 0 && !nt) {
556
+ nt = !0;
557
+ var T = K(l);
558
558
  x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
559
559
  }
560
560
  typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
561
561
  }
562
562
  }
563
- function Ar(n) {
563
+ function Fr(n) {
564
564
  {
565
565
  for (var l = Object.keys(n.props), d = 0; d < l.length; d++) {
566
566
  var v = l[d];
567
567
  if (v !== "children" && v !== "key") {
568
- fe(n), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), fe(null);
568
+ pe(n), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), pe(null);
569
569
  break;
570
570
  }
571
571
  }
572
- n.ref !== null && (fe(n), x("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
572
+ n.ref !== null && (pe(n), x("Invalid attribute `ref` supplied to `React.Fragment`."), pe(null));
573
573
  }
574
574
  }
575
- var Ot = {};
576
- function kt(n, l, d, v, T, E) {
575
+ var kt = {};
576
+ function _t(n, l, d, v, T, E) {
577
577
  {
578
- var w = Je(n);
579
- if (!w) {
580
- var P = "";
581
- (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
582
- var z = Or();
583
- z ? P += z : P += Ct();
578
+ var S = Je(n);
579
+ if (!S) {
580
+ var b = "";
581
+ (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
582
+ var j = kr();
583
+ j ? b += j : b += Et();
584
584
  var _;
585
- n === null ? _ = "null" : et(n) ? _ = "array" : n !== void 0 && n.$$typeof === e ? (_ = "<" + (B(n.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof n, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, P);
585
+ n === null ? _ = "null" : tt(n) ? _ = "array" : n !== void 0 && n.$$typeof === e ? (_ = "<" + (K(n.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof n, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, b);
586
586
  }
587
- var M = xr(n, l, d, T, E);
587
+ var M = Or(n, l, d, T, E);
588
588
  if (M == null)
589
589
  return M;
590
- if (w) {
590
+ if (S) {
591
591
  var H = l.children;
592
592
  if (H !== void 0)
593
593
  if (v)
594
- if (et(H)) {
595
- for (var pe = 0; pe < H.length; pe++)
596
- xt(H[pe], n);
594
+ if (tt(H)) {
595
+ for (var me = 0; me < H.length; me++)
596
+ Ot(H[me], n);
597
597
  Object.freeze && Object.freeze(H);
598
598
  } else
599
599
  x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
600
600
  else
601
- xt(H, n);
601
+ Ot(H, n);
602
602
  }
603
603
  if (we.call(l, "key")) {
604
- var ae = B(n), V = Object.keys(l).filter(function(jr) {
604
+ var oe = K(n), V = Object.keys(l).filter(function(jr) {
605
605
  return jr !== "key";
606
606
  }), it = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
607
- if (!Ot[ae + it]) {
608
- var $r = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
607
+ if (!kt[oe + it]) {
608
+ var Br = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
609
609
  x(`A props object containing a "key" prop is being spread into JSX:
610
610
  let props = %s;
611
611
  <%s {...props} />
612
612
  React keys must be passed directly to JSX without using spread:
613
613
  let props = %s;
614
- <%s key={someKey} {...props} />`, it, ae, $r, ae), Ot[ae + it] = !0;
614
+ <%s key={someKey} {...props} />`, it, oe, Br, oe), kt[oe + it] = !0;
615
615
  }
616
616
  }
617
- return n === i ? Ar(M) : _r(M), M;
617
+ return n === a ? Fr(M) : Ar(M), M;
618
618
  }
619
619
  }
620
- function Fr(n, l, d) {
621
- return kt(n, l, d, !0);
622
- }
623
620
  function Mr(n, l, d) {
624
- return kt(n, l, d, !1);
621
+ return _t(n, l, d, !0);
625
622
  }
626
- var Dr = Mr, Nr = Fr;
627
- Te.Fragment = i, Te.jsx = Dr, Te.jsxs = Nr;
628
- })()), Te;
629
- }
630
- var Dt;
631
- function $n() {
632
- return Dt || (Dt = 1, process.env.NODE_ENV === "production" ? qe.exports = Dn() : qe.exports = Nn()), qe.exports;
623
+ function Dr(n, l, d) {
624
+ return _t(n, l, d, !1);
625
+ }
626
+ var Nr = Dr, $r = Mr;
627
+ Re.Fragment = a, Re.jsx = Nr, Re.jsxs = $r;
628
+ })()), Re;
633
629
  }
634
- var Ee = $n(), Qe = { exports: {} }, R = {};
635
630
  var Nt;
631
+ function Bn() {
632
+ return Nt || (Nt = 1, process.env.NODE_ENV === "production" ? qe.exports = Nn() : qe.exports = $n()), qe.exports;
633
+ }
634
+ var Ie = Bn(), Qe = { exports: {} }, R = {};
635
+ var $t;
636
636
  function jn() {
637
- if (Nt) return R;
638
- Nt = 1;
639
- var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, b = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, S = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, L = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, N = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, A = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, W = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, Z = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, q = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, x = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
637
+ if ($t) return R;
638
+ $t = 1;
639
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, a = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, s = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, y = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, P = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, w = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, L = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, N = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, A = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, W = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, ee = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, q = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, x = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
640
640
  function F(u) {
641
641
  if (typeof u == "object" && u !== null) {
642
642
  var Q = u.$$typeof;
@@ -644,16 +644,16 @@ function jn() {
644
644
  case e:
645
645
  switch (u = u.type, u) {
646
646
  case p:
647
- case m:
648
- case i:
649
- case o:
647
+ case y:
650
648
  case a:
651
- case S:
649
+ case s:
650
+ case i:
651
+ case w:
652
652
  return u;
653
653
  default:
654
654
  switch (u = u && u.$$typeof, u) {
655
655
  case f:
656
- case b:
656
+ case P:
657
657
  case A:
658
658
  case N:
659
659
  case c:
@@ -668,9 +668,9 @@ function jn() {
668
668
  }
669
669
  }
670
670
  function k(u) {
671
- return F(u) === m;
671
+ return F(u) === y;
672
672
  }
673
- return R.AsyncMode = p, R.ConcurrentMode = m, R.ContextConsumer = f, R.ContextProvider = c, R.Element = e, R.ForwardRef = b, R.Fragment = i, R.Lazy = A, R.Memo = N, R.Portal = r, R.Profiler = o, R.StrictMode = a, R.Suspense = S, R.isAsyncMode = function(u) {
673
+ return R.AsyncMode = p, R.ConcurrentMode = y, R.ContextConsumer = f, R.ContextProvider = c, R.Element = e, R.ForwardRef = P, R.Fragment = a, R.Lazy = A, R.Memo = N, R.Portal = r, R.Profiler = s, R.StrictMode = i, R.Suspense = w, R.isAsyncMode = function(u) {
674
674
  return k(u) || F(u) === p;
675
675
  }, R.isConcurrentMode = k, R.isContextConsumer = function(u) {
676
676
  return F(u) === f;
@@ -679,9 +679,9 @@ function jn() {
679
679
  }, R.isElement = function(u) {
680
680
  return typeof u == "object" && u !== null && u.$$typeof === e;
681
681
  }, R.isForwardRef = function(u) {
682
- return F(u) === b;
682
+ return F(u) === P;
683
683
  }, R.isFragment = function(u) {
684
- return F(u) === i;
684
+ return F(u) === a;
685
685
  }, R.isLazy = function(u) {
686
686
  return F(u) === A;
687
687
  }, R.isMemo = function(u) {
@@ -689,97 +689,97 @@ function jn() {
689
689
  }, R.isPortal = function(u) {
690
690
  return F(u) === r;
691
691
  }, R.isProfiler = function(u) {
692
- return F(u) === o;
692
+ return F(u) === s;
693
693
  }, R.isStrictMode = function(u) {
694
- return F(u) === a;
694
+ return F(u) === i;
695
695
  }, R.isSuspense = function(u) {
696
- return F(u) === S;
696
+ return F(u) === w;
697
697
  }, R.isValidElementType = function(u) {
698
- return typeof u == "string" || typeof u == "function" || u === i || u === m || u === o || u === a || u === S || u === L || typeof u == "object" && u !== null && (u.$$typeof === A || u.$$typeof === N || u.$$typeof === c || u.$$typeof === f || u.$$typeof === b || u.$$typeof === Z || u.$$typeof === q || u.$$typeof === x || u.$$typeof === W);
698
+ return typeof u == "string" || typeof u == "function" || u === a || u === y || u === s || u === i || u === w || u === L || typeof u == "object" && u !== null && (u.$$typeof === A || u.$$typeof === N || u.$$typeof === c || u.$$typeof === f || u.$$typeof === P || u.$$typeof === ee || u.$$typeof === q || u.$$typeof === x || u.$$typeof === W);
699
699
  }, R.typeOf = F, R;
700
700
  }
701
701
  var C = {};
702
- var $t;
702
+ var Bt;
703
703
  function zn() {
704
- return $t || ($t = 1, process.env.NODE_ENV !== "production" && (function() {
705
- var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, b = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, S = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, L = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, N = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, A = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, W = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, Z = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, q = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, x = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
706
- function F(y) {
707
- return typeof y == "string" || typeof y == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
708
- y === i || y === m || y === o || y === a || y === S || y === L || typeof y == "object" && y !== null && (y.$$typeof === A || y.$$typeof === N || y.$$typeof === c || y.$$typeof === f || y.$$typeof === b || y.$$typeof === Z || y.$$typeof === q || y.$$typeof === x || y.$$typeof === W);
709
- }
710
- function k(y) {
711
- if (typeof y == "object" && y !== null) {
712
- var be = y.$$typeof;
713
- switch (be) {
704
+ return Bt || (Bt = 1, process.env.NODE_ENV !== "production" && (function() {
705
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, a = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, s = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, y = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, P = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, w = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, L = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, N = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, A = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, W = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, ee = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, q = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, x = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
706
+ function F(h) {
707
+ return typeof h == "string" || typeof h == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
708
+ h === a || h === y || h === s || h === i || h === w || h === L || typeof h == "object" && h !== null && (h.$$typeof === A || h.$$typeof === N || h.$$typeof === c || h.$$typeof === f || h.$$typeof === P || h.$$typeof === ee || h.$$typeof === q || h.$$typeof === x || h.$$typeof === W);
709
+ }
710
+ function k(h) {
711
+ if (typeof h == "object" && h !== null) {
712
+ var Se = h.$$typeof;
713
+ switch (Se) {
714
714
  case e:
715
- var de = y.type;
716
- switch (de) {
715
+ var fe = h.type;
716
+ switch (fe) {
717
717
  case p:
718
- case m:
719
- case i:
720
- case o:
718
+ case y:
721
719
  case a:
722
- case S:
723
- return de;
720
+ case s:
721
+ case i:
722
+ case w:
723
+ return fe;
724
724
  default:
725
- var ie = de && de.$$typeof;
725
+ var ie = fe && fe.$$typeof;
726
726
  switch (ie) {
727
727
  case f:
728
- case b:
728
+ case P:
729
729
  case A:
730
730
  case N:
731
731
  case c:
732
732
  return ie;
733
733
  default:
734
- return be;
734
+ return Se;
735
735
  }
736
736
  }
737
737
  case r:
738
- return be;
738
+ return Se;
739
739
  }
740
740
  }
741
741
  }
742
- var u = p, Q = m, he = f, _e = c, Ae = e, Je = b, Be = i, Fe = A, B = N, ee = r, ne = o, Me = a, De = S, ye = !1;
743
- function Ne(y) {
744
- return ye || (ye = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), me(y) || k(y) === p;
742
+ var u = p, Q = y, he = f, Ae = c, Fe = e, Je = P, Ke = a, Me = A, K = N, te = r, ae = s, De = i, Ne = w, ye = !1;
743
+ function $e(h) {
744
+ return ye || (ye = !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(h) || k(h) === p;
745
745
  }
746
- function me(y) {
747
- return k(y) === m;
746
+ function ve(h) {
747
+ return k(h) === y;
748
748
  }
749
- function $e(y) {
750
- return k(y) === f;
749
+ function Be(h) {
750
+ return k(h) === f;
751
751
  }
752
- function je(y) {
753
- return k(y) === c;
752
+ function je(h) {
753
+ return k(h) === c;
754
754
  }
755
- function ze(y) {
756
- return typeof y == "object" && y !== null && y.$$typeof === e;
755
+ function ze(h) {
756
+ return typeof h == "object" && h !== null && h.$$typeof === e;
757
757
  }
758
- function Ke(y) {
759
- return k(y) === b;
758
+ function Xe(h) {
759
+ return k(h) === P;
760
760
  }
761
- function Xe(y) {
762
- return k(y) === i;
761
+ function Ze(h) {
762
+ return k(h) === a;
763
763
  }
764
- function ve(y) {
765
- return k(y) === A;
764
+ function ge(h) {
765
+ return k(h) === A;
766
766
  }
767
- function ge(y) {
768
- return k(y) === N;
767
+ function be(h) {
768
+ return k(h) === N;
769
769
  }
770
- function ce(y) {
771
- return k(y) === r;
770
+ function ue(h) {
771
+ return k(h) === r;
772
772
  }
773
- function Pe(y) {
774
- return k(y) === o;
773
+ function Pe(h) {
774
+ return k(h) === s;
775
775
  }
776
- function ue(y) {
777
- return k(y) === a;
776
+ function de(h) {
777
+ return k(h) === i;
778
778
  }
779
- function Ze(y) {
780
- return k(y) === S;
779
+ function et(h) {
780
+ return k(h) === w;
781
781
  }
782
- C.AsyncMode = u, C.ConcurrentMode = Q, C.ContextConsumer = he, C.ContextProvider = _e, C.Element = Ae, C.ForwardRef = Je, C.Fragment = Be, C.Lazy = Fe, C.Memo = B, C.Portal = ee, C.Profiler = ne, C.StrictMode = Me, C.Suspense = De, C.isAsyncMode = Ne, C.isConcurrentMode = me, C.isContextConsumer = $e, C.isContextProvider = je, C.isElement = ze, C.isForwardRef = Ke, C.isFragment = Xe, C.isLazy = ve, C.isMemo = ge, C.isPortal = ce, C.isProfiler = Pe, C.isStrictMode = ue, C.isSuspense = Ze, C.isValidElementType = F, C.typeOf = k;
782
+ C.AsyncMode = u, C.ConcurrentMode = Q, C.ContextConsumer = he, C.ContextProvider = Ae, C.Element = Fe, C.ForwardRef = Je, C.Fragment = Ke, C.Lazy = Me, C.Memo = K, C.Portal = te, C.Profiler = ae, C.StrictMode = De, C.Suspense = Ne, C.isAsyncMode = $e, C.isConcurrentMode = ve, C.isContextConsumer = Be, C.isContextProvider = je, C.isElement = ze, C.isForwardRef = Xe, C.isFragment = Ze, C.isLazy = ge, C.isMemo = be, C.isPortal = ue, C.isProfiler = Pe, C.isStrictMode = de, C.isSuspense = et, C.isValidElementType = F, C.typeOf = k;
783
783
  })()), C;
784
784
  }
785
785
  var jt;
@@ -810,37 +810,37 @@ function qn() {
810
810
  callee: !0,
811
811
  arguments: !0,
812
812
  arity: !0
813
- }, i = {
813
+ }, a = {
814
814
  $$typeof: !0,
815
815
  render: !0,
816
816
  defaultProps: !0,
817
817
  displayName: !0,
818
818
  propTypes: !0
819
- }, a = {
819
+ }, i = {
820
820
  $$typeof: !0,
821
821
  compare: !0,
822
822
  defaultProps: !0,
823
823
  displayName: !0,
824
824
  propTypes: !0,
825
825
  type: !0
826
- }, o = {};
827
- o[t.ForwardRef] = i, o[t.Memo] = a;
826
+ }, s = {};
827
+ s[t.ForwardRef] = a, s[t.Memo] = i;
828
828
  function c(A) {
829
- return t.isMemo(A) ? a : o[A.$$typeof] || e;
829
+ return t.isMemo(A) ? i : s[A.$$typeof] || e;
830
830
  }
831
- var f = Object.defineProperty, p = Object.getOwnPropertyNames, m = Object.getOwnPropertySymbols, b = Object.getOwnPropertyDescriptor, S = Object.getPrototypeOf, L = Object.prototype;
832
- function N(A, W, Z) {
831
+ var f = Object.defineProperty, p = Object.getOwnPropertyNames, y = Object.getOwnPropertySymbols, P = Object.getOwnPropertyDescriptor, w = Object.getPrototypeOf, L = Object.prototype;
832
+ function N(A, W, ee) {
833
833
  if (typeof W != "string") {
834
834
  if (L) {
835
- var q = S(W);
836
- q && q !== L && N(A, q, Z);
835
+ var q = w(W);
836
+ q && q !== L && N(A, q, ee);
837
837
  }
838
838
  var x = p(W);
839
- m && (x = x.concat(m(W)));
839
+ y && (x = x.concat(y(W)));
840
840
  for (var F = c(A), k = c(W), u = 0; u < x.length; ++u) {
841
841
  var Q = x[u];
842
- if (!r[Q] && !(Z && Z[Q]) && !(k && k[Q]) && !(F && F[Q])) {
843
- var he = b(W, Q);
842
+ if (!r[Q] && !(ee && ee[Q]) && !(k && k[Q]) && !(F && F[Q])) {
843
+ var he = P(W, Q);
844
844
  try {
845
845
  f(A, Q, he);
846
846
  } catch {
@@ -855,47 +855,47 @@ function qn() {
855
855
  qn();
856
856
  var Qn = !0;
857
857
  function Vn(t, e, r) {
858
- var i = "";
859
- return r.split(" ").forEach(function(a) {
860
- t[a] !== void 0 ? e.push(t[a] + ";") : a && (i += a + " ");
861
- }), i;
858
+ var a = "";
859
+ return r.split(" ").forEach(function(i) {
860
+ t[i] !== void 0 ? e.push(t[i] + ";") : i && (a += i + " ");
861
+ }), a;
862
862
  }
863
- var rr = function(e, r, i) {
864
- var a = e.key + "-" + r.name;
863
+ var nr = function(e, r, a) {
864
+ var i = e.key + "-" + r.name;
865
865
  // we only need to add the styles to the registered cache if the
866
866
  // class name could be used further down
867
867
  // the tree but if it's a string tag, we know it won't
868
868
  // so we don't have to add it to registered cache.
869
869
  // this improves memory usage since we can avoid storing the whole style string
870
- (i === !1 || // we need to always store it if we're in compat mode and
870
+ (a === !1 || // we need to always store it if we're in compat mode and
871
871
  // in node since emotion-server relies on whether a style is in
872
872
  // the registered cache to know whether a style is global or not
873
873
  // also, note that this check will be dead code eliminated in the browser
874
- Qn === !1) && e.registered[a] === void 0 && (e.registered[a] = r.styles);
875
- }, Un = function(e, r, i) {
876
- rr(e, r, i);
877
- var a = e.key + "-" + r.name;
874
+ Qn === !1) && e.registered[i] === void 0 && (e.registered[i] = r.styles);
875
+ }, Un = function(e, r, a) {
876
+ nr(e, r, a);
877
+ var i = e.key + "-" + r.name;
878
878
  if (e.inserted[r.name] === void 0) {
879
- var o = r;
879
+ var s = r;
880
880
  do
881
- e.insert(r === o ? "." + a : "", o, e.sheet, !0), o = o.next;
882
- while (o !== void 0);
881
+ e.insert(r === s ? "." + i : "", s, e.sheet, !0), s = s.next;
882
+ while (s !== void 0);
883
883
  }
884
884
  };
885
885
  function Yn(t) {
886
- for (var e = 0, r, i = 0, a = t.length; a >= 4; ++i, a -= 4)
887
- r = t.charCodeAt(i) & 255 | (t.charCodeAt(++i) & 255) << 8 | (t.charCodeAt(++i) & 255) << 16 | (t.charCodeAt(++i) & 255) << 24, r = /* Math.imul(k, m): */
886
+ for (var e = 0, r, a = 0, i = t.length; i >= 4; ++a, i -= 4)
887
+ r = t.charCodeAt(a) & 255 | (t.charCodeAt(++a) & 255) << 8 | (t.charCodeAt(++a) & 255) << 16 | (t.charCodeAt(++a) & 255) << 24, r = /* Math.imul(k, m): */
888
888
  (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
889
889
  r >>> 24, e = /* Math.imul(k, m): */
890
890
  (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
891
891
  (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
892
- switch (a) {
892
+ switch (i) {
893
893
  case 3:
894
- e ^= (t.charCodeAt(i + 2) & 255) << 16;
894
+ e ^= (t.charCodeAt(a + 2) & 255) << 16;
895
895
  case 2:
896
- e ^= (t.charCodeAt(i + 1) & 255) << 8;
896
+ e ^= (t.charCodeAt(a + 1) & 255) << 8;
897
897
  case 1:
898
- e ^= t.charCodeAt(i) & 255, e = /* Math.imul(h, m): */
898
+ e ^= t.charCodeAt(a) & 255, e = /* Math.imul(h, m): */
899
899
  (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
900
900
  }
901
901
  return e ^= e >>> 13, e = /* Math.imul(h, m): */
@@ -957,130 +957,130 @@ function Hn(t) {
957
957
  return e[r] === void 0 && (e[r] = t(r)), e[r];
958
958
  };
959
959
  }
960
- var Gn = /[A-Z]|^ms/g, Jn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, nr = function(e) {
960
+ var Gn = /[A-Z]|^ms/g, Jn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ar = function(e) {
961
961
  return e.charCodeAt(1) === 45;
962
962
  }, Lt = function(e) {
963
963
  return e != null && typeof e != "boolean";
964
- }, ot = /* @__PURE__ */ Hn(function(t) {
965
- return nr(t) ? t : t.replace(Gn, "-$&").toLowerCase();
964
+ }, lt = /* @__PURE__ */ Hn(function(t) {
965
+ return ar(t) ? t : t.replace(Gn, "-$&").toLowerCase();
966
966
  }), qt = function(e, r) {
967
967
  switch (e) {
968
968
  case "animation":
969
969
  case "animationName":
970
970
  if (typeof r == "string")
971
- return r.replace(Jn, function(i, a, o) {
972
- return K = {
973
- name: a,
974
- styles: o,
975
- next: K
976
- }, a;
971
+ return r.replace(Jn, function(a, i, s) {
972
+ return X = {
973
+ name: i,
974
+ styles: s,
975
+ next: X
976
+ }, i;
977
977
  });
978
978
  }
979
- return Wn[e] !== 1 && !nr(e) && typeof r == "number" && r !== 0 ? r + "px" : r;
979
+ return Wn[e] !== 1 && !ar(e) && typeof r == "number" && r !== 0 ? r + "px" : r;
980
980
  };
981
- function Ie(t, e, r) {
981
+ function xe(t, e, r) {
982
982
  if (r == null)
983
983
  return "";
984
- var i = r;
985
- if (i.__emotion_styles !== void 0)
986
- return i;
984
+ var a = r;
985
+ if (a.__emotion_styles !== void 0)
986
+ return a;
987
987
  switch (typeof r) {
988
988
  case "boolean":
989
989
  return "";
990
990
  case "object": {
991
- var a = r;
992
- if (a.anim === 1)
993
- return K = {
994
- name: a.name,
995
- styles: a.styles,
996
- next: K
997
- }, a.name;
998
- var o = r;
999
- if (o.styles !== void 0) {
1000
- var c = o.next;
991
+ var i = r;
992
+ if (i.anim === 1)
993
+ return X = {
994
+ name: i.name,
995
+ styles: i.styles,
996
+ next: X
997
+ }, i.name;
998
+ var s = r;
999
+ if (s.styles !== void 0) {
1000
+ var c = s.next;
1001
1001
  if (c !== void 0)
1002
1002
  for (; c !== void 0; )
1003
- K = {
1003
+ X = {
1004
1004
  name: c.name,
1005
1005
  styles: c.styles,
1006
- next: K
1006
+ next: X
1007
1007
  }, c = c.next;
1008
- var f = o.styles + ";";
1008
+ var f = s.styles + ";";
1009
1009
  return f;
1010
1010
  }
1011
- return Bn(t, e, r);
1011
+ return Kn(t, e, r);
1012
1012
  }
1013
1013
  case "function": {
1014
1014
  if (t !== void 0) {
1015
- var p = K, m = r(t);
1016
- return K = p, Ie(t, e, m);
1015
+ var p = X, y = r(t);
1016
+ return X = p, xe(t, e, y);
1017
1017
  }
1018
1018
  break;
1019
1019
  }
1020
1020
  }
1021
- var b = r;
1022
- return b;
1021
+ var P = r;
1022
+ return P;
1023
1023
  }
1024
- function Bn(t, e, r) {
1025
- var i = "";
1024
+ function Kn(t, e, r) {
1025
+ var a = "";
1026
1026
  if (Array.isArray(r))
1027
- for (var a = 0; a < r.length; a++)
1028
- i += Ie(t, e, r[a]) + ";";
1027
+ for (var i = 0; i < r.length; i++)
1028
+ a += xe(t, e, r[i]) + ";";
1029
1029
  else
1030
- for (var o in r) {
1031
- var c = r[o];
1030
+ for (var s in r) {
1031
+ var c = r[s];
1032
1032
  if (typeof c != "object") {
1033
1033
  var f = c;
1034
- Lt(f) && (i += ot(o) + ":" + qt(o, f) + ";");
1034
+ Lt(f) && (a += lt(s) + ":" + qt(s, f) + ";");
1035
1035
  } else if (Array.isArray(c) && typeof c[0] == "string" && e == null)
1036
1036
  for (var p = 0; p < c.length; p++)
1037
- Lt(c[p]) && (i += ot(o) + ":" + qt(o, c[p]) + ";");
1037
+ Lt(c[p]) && (a += lt(s) + ":" + qt(s, c[p]) + ";");
1038
1038
  else {
1039
- var m = Ie(t, e, c);
1040
- switch (o) {
1039
+ var y = xe(t, e, c);
1040
+ switch (s) {
1041
1041
  case "animation":
1042
1042
  case "animationName": {
1043
- i += ot(o) + ":" + m + ";";
1043
+ a += lt(s) + ":" + y + ";";
1044
1044
  break;
1045
1045
  }
1046
1046
  default:
1047
- i += o + "{" + m + "}";
1047
+ a += s + "{" + y + "}";
1048
1048
  }
1049
1049
  }
1050
1050
  }
1051
- return i;
1051
+ return a;
1052
1052
  }
1053
- var Qt = /label:\s*([^\s;{]+)\s*(;|$)/g, K;
1054
- function Kn(t, e, r) {
1053
+ var Qt = /label:\s*([^\s;{]+)\s*(;|$)/g, X;
1054
+ function Xn(t, e, r) {
1055
1055
  if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
1056
1056
  return t[0];
1057
- var i = !0, a = "";
1058
- K = void 0;
1059
- var o = t[0];
1060
- if (o == null || o.raw === void 0)
1061
- i = !1, a += Ie(r, e, o);
1057
+ var a = !0, i = "";
1058
+ X = void 0;
1059
+ var s = t[0];
1060
+ if (s == null || s.raw === void 0)
1061
+ a = !1, i += xe(r, e, s);
1062
1062
  else {
1063
- var c = o;
1064
- a += c[0];
1063
+ var c = s;
1064
+ i += c[0];
1065
1065
  }
1066
1066
  for (var f = 1; f < t.length; f++)
1067
- if (a += Ie(r, e, t[f]), i) {
1068
- var p = o;
1069
- a += p[f];
1067
+ if (i += xe(r, e, t[f]), a) {
1068
+ var p = s;
1069
+ i += p[f];
1070
1070
  }
1071
1071
  Qt.lastIndex = 0;
1072
- for (var m = "", b; (b = Qt.exec(a)) !== null; )
1073
- m += "-" + b[1];
1074
- var S = Yn(a) + m;
1072
+ for (var y = "", P; (P = Qt.exec(i)) !== null; )
1073
+ y += "-" + P[1];
1074
+ var w = Yn(i) + y;
1075
1075
  return {
1076
- name: S,
1077
- styles: a,
1078
- next: K
1076
+ name: w,
1077
+ styles: i,
1078
+ next: X
1079
1079
  };
1080
1080
  }
1081
- var Xn = function(e) {
1081
+ var Zn = function(e) {
1082
1082
  return e();
1083
- }, Zn = te.useInsertionEffect ? te.useInsertionEffect : !1, ei = Zn || Xn, ir = /* @__PURE__ */ te.createContext(
1083
+ }, ea = re.useInsertionEffect ? re.useInsertionEffect : !1, ta = ea || Zn, ir = /* @__PURE__ */ re.createContext(
1084
1084
  // we're doing this to avoid preconstruct's dead code elimination in this one case
1085
1085
  // because this module is primarily intended for the browser and node
1086
1086
  // but it's also required in react native and similar environments sometimes
@@ -1092,53 +1092,53 @@ var Xn = function(e) {
1092
1092
  }) : null
1093
1093
  );
1094
1094
  ir.Provider;
1095
- var ti = function(e) {
1096
- return /* @__PURE__ */ qr(function(r, i) {
1097
- var a = xe(ir);
1098
- return e(r, a, i);
1095
+ var ra = function(e) {
1096
+ return /* @__PURE__ */ qr(function(r, a) {
1097
+ var i = Oe(ir);
1098
+ return e(r, i, a);
1099
1099
  });
1100
- }, ri = /* @__PURE__ */ te.createContext({}), He = {}.hasOwnProperty, dt = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", ar = function(e, r) {
1101
- var i = {};
1102
- for (var a in r)
1103
- He.call(r, a) && (i[a] = r[a]);
1104
- return i[dt] = e, i;
1105
- }, ni = function(e) {
1106
- var r = e.cache, i = e.serialized, a = e.isStringTag;
1107
- return rr(r, i, a), ei(function() {
1108
- return Un(r, i, a);
1100
+ }, na = /* @__PURE__ */ re.createContext({}), He = {}.hasOwnProperty, ft = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", or = function(e, r) {
1101
+ var a = {};
1102
+ for (var i in r)
1103
+ He.call(r, i) && (a[i] = r[i]);
1104
+ return a[ft] = e, a;
1105
+ }, aa = function(e) {
1106
+ var r = e.cache, a = e.serialized, i = e.isStringTag;
1107
+ return nr(r, a, i), ta(function() {
1108
+ return Un(r, a, i);
1109
1109
  }), null;
1110
- }, ii = /* @__PURE__ */ ti(function(t, e, r) {
1111
- var i = t.css;
1112
- typeof i == "string" && e.registered[i] !== void 0 && (i = e.registered[i]);
1113
- var a = t[dt], o = [i], c = "";
1114
- typeof t.className == "string" ? c = Vn(e.registered, o, t.className) : t.className != null && (c = t.className + " ");
1115
- var f = Kn(o, void 0, te.useContext(ri));
1110
+ }, ia = /* @__PURE__ */ ra(function(t, e, r) {
1111
+ var a = t.css;
1112
+ typeof a == "string" && e.registered[a] !== void 0 && (a = e.registered[a]);
1113
+ var i = t[ft], s = [a], c = "";
1114
+ typeof t.className == "string" ? c = Vn(e.registered, s, t.className) : t.className != null && (c = t.className + " ");
1115
+ var f = Xn(s, void 0, re.useContext(na));
1116
1116
  c += e.key + "-" + f.name;
1117
1117
  var p = {};
1118
- for (var m in t)
1119
- He.call(t, m) && m !== "css" && m !== dt && (p[m] = t[m]);
1120
- return p.className = c, r && (p.ref = r), /* @__PURE__ */ te.createElement(te.Fragment, null, /* @__PURE__ */ te.createElement(ni, {
1118
+ for (var y in t)
1119
+ He.call(t, y) && y !== "css" && y !== ft && (p[y] = t[y]);
1120
+ return p.className = c, r && (p.ref = r), /* @__PURE__ */ re.createElement(re.Fragment, null, /* @__PURE__ */ re.createElement(aa, {
1121
1121
  cache: e,
1122
1122
  serialized: f,
1123
- isStringTag: typeof a == "string"
1124
- }), /* @__PURE__ */ te.createElement(a, p));
1125
- }), sr = ii, ke = Ee.Fragment, s = function(e, r, i) {
1126
- return He.call(r, "css") ? Ee.jsx(sr, ar(e, r), i) : Ee.jsx(e, r, i);
1127
- }, D = function(e, r, i) {
1128
- return He.call(r, "css") ? Ee.jsxs(sr, ar(e, r), i) : Ee.jsxs(e, r, i);
1123
+ isStringTag: typeof i == "string"
1124
+ }), /* @__PURE__ */ re.createElement(i, p));
1125
+ }), sr = ia, _e = Ie.Fragment, o = function(e, r, a) {
1126
+ return He.call(r, "css") ? Ie.jsx(sr, or(e, r), a) : Ie.jsx(e, r, a);
1127
+ }, D = function(e, r, a) {
1128
+ return He.call(r, "css") ? Ie.jsxs(sr, or(e, r), a) : Ie.jsxs(e, r, a);
1129
1129
  };
1130
- const ai = ({
1130
+ const oa = ({
1131
1131
  components: t = [],
1132
1132
  children: e
1133
- }) => /* @__PURE__ */ s(ke, { children: t.reduceRight(
1134
- (r, i) => /* @__PURE__ */ s(i, { children: r }),
1133
+ }) => /* @__PURE__ */ o(_e, { children: t.reduceRight(
1134
+ (r, a) => /* @__PURE__ */ o(a, { children: r }),
1135
1135
  e
1136
- ) }), or = Ue(void 0), Ge = () => xe(or), lt = new Ur({
1136
+ ) }), lr = Ue(void 0), Ge = () => Oe(lr), ct = new Ur({
1137
1137
  coerceTypes: !0
1138
1138
  });
1139
- function si(t, e) {
1139
+ function sa(t, e) {
1140
1140
  let r;
1141
- if (r = lt.getSchema(e), r === void 0 && (lt.addSchema(t, e), r = lt.getSchema(e)), r === void 0 || r.schema !== t)
1141
+ if (r = ct.getSchema(e), r === void 0 && (ct.addSchema(t, e), r = ct.getSchema(e)), r === void 0 || r.schema !== t)
1142
1142
  throw new Error(
1143
1143
  `Invalid schema. Expected: '${JSON.stringify(
1144
1144
  t
@@ -1146,7 +1146,7 @@ function si(t, e) {
1146
1146
  );
1147
1147
  return r;
1148
1148
  }
1149
- const oi = {
1149
+ const la = {
1150
1150
  type: "object",
1151
1151
  properties: {
1152
1152
  url: {
@@ -1165,7 +1165,7 @@ const oi = {
1165
1165
  required: ["url", "type", "videoId", "title"]
1166
1166
  };
1167
1167
  var O = /* @__PURE__ */ ((t) => (t.Off = "Off", t.All = "All", t.One = "One", t))(O || {});
1168
- const li = {
1168
+ const ca = {
1169
1169
  type: "object",
1170
1170
  properties: {
1171
1171
  version: {
@@ -1184,7 +1184,7 @@ const li = {
1184
1184
  items: {
1185
1185
  type: "array",
1186
1186
  nullable: !0,
1187
- items: oi
1187
+ items: la
1188
1188
  },
1189
1189
  currentIndex: {
1190
1190
  type: "integer",
@@ -1193,9 +1193,9 @@ const li = {
1193
1193
  }
1194
1194
  };
1195
1195
  class Ve {
1196
- constructor(e, r, i) {
1197
- this.observableStateProvider = e, this.playQueue = r, this.dto = i, this.id = Ve.nextId++, e.makeObservable(this, {
1198
- isSelected: X,
1196
+ constructor(e, r, a) {
1197
+ this.observableStateProvider = e, this.playQueue = r, this.dto = a, this.id = Ve.nextId++, e.makeObservable(this, {
1198
+ isSelected: Z,
1199
1199
  isCurrent: g,
1200
1200
  index: g,
1201
1201
  isFirst: g,
@@ -1204,25 +1204,25 @@ class Ve {
1204
1204
  canMoveToBottom: g,
1205
1205
  canRemoveToTop: g,
1206
1206
  canRemoveOthers: g,
1207
- unselect: h,
1208
- select: h,
1209
- toggleSelected: h.bound,
1210
- play: h,
1211
- remove: h.bound,
1212
- playFirst: h.bound,
1213
- playNext: h.bound,
1214
- addToPlayQueue: h.bound,
1215
- moveToTop: h.bound,
1216
- moveToBottom: h.bound,
1217
- removeToTop: h.bound,
1218
- removeOthers: h.bound
1207
+ unselect: m,
1208
+ select: m,
1209
+ toggleSelected: m.bound,
1210
+ play: m,
1211
+ remove: m.bound,
1212
+ playFirst: m.bound,
1213
+ playNext: m.bound,
1214
+ addToPlayQueue: m.bound,
1215
+ moveToTop: m.bound,
1216
+ moveToBottom: m.bound,
1217
+ removeToTop: m.bound,
1218
+ removeOthers: m.bound
1219
1219
  });
1220
1220
  }
1221
1221
  static nextId = 1;
1222
1222
  id;
1223
1223
  isSelected = !1;
1224
- static fromDto(e, r, i) {
1225
- return new Ve(e, r, i);
1224
+ static fromDto(e, r, a) {
1225
+ return new Ve(e, r, a);
1226
1226
  }
1227
1227
  get url() {
1228
1228
  return this.dto.url;
@@ -1300,14 +1300,14 @@ class Ve {
1300
1300
  return this.playQueue.removeOtherItems(this);
1301
1301
  }
1302
1302
  }
1303
- class ci {
1303
+ class ua {
1304
1304
  constructor(e) {
1305
1305
  this.observableStateProvider = e, e.makeObservable(this, {
1306
- interacted: X,
1307
- items: X,
1308
- currentId: X,
1309
- repeat: X,
1310
- shuffle: X,
1306
+ interacted: Z,
1307
+ items: Z,
1308
+ currentId: Z,
1309
+ repeat: Z,
1310
+ shuffle: Z,
1311
1311
  localStorageState: g.struct,
1312
1312
  isEmpty: g,
1313
1313
  canClear: g,
@@ -1326,29 +1326,29 @@ class ci {
1326
1326
  canAddSelectedItems: g,
1327
1327
  canPlaySelectedItemsNext: g,
1328
1328
  canRemoveSelectedItems: g,
1329
- setItems: h,
1330
- interact: h,
1331
- clear: h.bound,
1332
- unselectAll: h,
1333
- selectAll: h,
1334
- setCurrentItem: h,
1335
- setNextItems: h,
1336
- clearAndSetItems: h,
1337
- playNext: h,
1338
- playSelectedItemsNext: h.bound,
1339
- addItems: h,
1340
- addSelectedItems: h.bound,
1341
- playFirst: h,
1342
- moveItem: h,
1343
- goToFirst: h,
1344
- removeItems: h,
1345
- removeSelectedItems: h.bound,
1346
- removeOtherItems: h,
1347
- removeItemsAbove: h,
1348
- toggleRepeat: h.bound,
1349
- toggleShuffle: h.bound,
1350
- previous: h,
1351
- next: h.bound
1329
+ setItems: m,
1330
+ interact: m,
1331
+ clear: m.bound,
1332
+ unselectAll: m,
1333
+ selectAll: m,
1334
+ setCurrentItem: m,
1335
+ setNextItems: m,
1336
+ clearAndSetItems: m,
1337
+ playNext: m,
1338
+ playSelectedItemsNext: m.bound,
1339
+ addItems: m,
1340
+ addSelectedItems: m.bound,
1341
+ playFirst: m,
1342
+ moveItem: m,
1343
+ goToFirst: m,
1344
+ removeItems: m,
1345
+ removeSelectedItems: m.bound,
1346
+ removeOtherItems: m,
1347
+ removeItemsAbove: m,
1348
+ toggleRepeat: m.bound,
1349
+ toggleShuffle: m.bound,
1350
+ previous: m,
1351
+ next: m.bound
1352
1352
  });
1353
1353
  }
1354
1354
  interacted = !1;
@@ -1377,8 +1377,8 @@ class ci {
1377
1377
  this.repeat = e.repeat ?? O.Off, this.shuffle = e.shuffle ?? !1, this.items = e.items?.map((r) => this.createItem(r)) ?? [], this.currentIndex = e.currentIndex;
1378
1378
  }
1379
1379
  validateLocalStorageState(e) {
1380
- return si(
1381
- li,
1380
+ return sa(
1381
+ ca,
1382
1382
  "PlayQueueDto"
1383
1383
  )(e);
1384
1384
  }
@@ -1495,20 +1495,20 @@ class ci {
1495
1495
  r !== void 0 && (this.interact(), this.items.splice(r, 0, ...e), this.currentIndex = r);
1496
1496
  }
1497
1497
  moveItem(e, r) {
1498
- const i = this.items.splice(this.items.indexOf(e), 1)[0];
1499
- this.items.splice(r, 0, i);
1498
+ const a = this.items.splice(this.items.indexOf(e), 1)[0];
1499
+ this.items.splice(r, 0, a);
1500
1500
  }
1501
1501
  async goToFirst() {
1502
1502
  this.currentIndex !== void 0 && (this.currentIndex = 0);
1503
1503
  }
1504
1504
  async removeItems(e) {
1505
1505
  const { currentItem: r } = this;
1506
- _t(this.items, ...e.filter((o) => o !== r));
1507
- const { currentIndex: i, isLastItem: a } = this;
1508
- _t(
1506
+ At(this.items, ...e.filter((s) => s !== r));
1507
+ const { currentIndex: a, isLastItem: i } = this;
1508
+ At(
1509
1509
  this.items,
1510
- e.find((o) => o === r)
1511
- ), this.currentItem !== r && (this.interact(), a ? await this.goToFirst() : this.currentIndex = i);
1510
+ e.find((s) => s === r)
1511
+ ), this.currentItem !== r && (this.interact(), i ? await this.goToFirst() : this.currentIndex = a);
1512
1512
  }
1513
1513
  async removeSelectedItems() {
1514
1514
  await this.removeItems(this.selectedItemsOrAllItems), this.unselectAll();
@@ -1516,13 +1516,13 @@ class ci {
1516
1516
  async removeOtherItems(e) {
1517
1517
  const r = e.id;
1518
1518
  return this.removeItems(
1519
- this.items.filter((i) => i.id !== r)
1519
+ this.items.filter((a) => a.id !== r)
1520
1520
  );
1521
1521
  }
1522
1522
  async removeItemsAbove(e) {
1523
1523
  const r = this.items.indexOf(e);
1524
1524
  return this.removeItems(
1525
- this.items.filter((i, a) => a < r)
1525
+ this.items.filter((a, i) => i < r)
1526
1526
  );
1527
1527
  }
1528
1528
  toggleRepeat() {
@@ -1548,38 +1548,38 @@ class ci {
1548
1548
  this.currentIndex !== void 0 && this.hasNextItem && (this.interact(), this.currentIndex++);
1549
1549
  }
1550
1550
  }
1551
- const ui = ({
1551
+ const da = ({
1552
1552
  children: t
1553
1553
  }) => {
1554
1554
  const [e] = $(
1555
- () => new ci(new We())
1556
- ), r = le();
1555
+ () => new ua(new We())
1556
+ ), r = ce();
1557
1557
  return Yt(() => Lr(
1558
1558
  () => e.currentItem,
1559
- async (i, a) => {
1560
- i === void 0 || a === void 0 || i.type === a.type && i.videoId === a.videoId && await r.setCurrentTime(0);
1559
+ async (a, i) => {
1560
+ a === void 0 || i === void 0 || a.type === i.type && a.videoId === i.videoId && await r.setCurrentTime(0);
1561
1561
  }
1562
- ), [e, r]), /* @__PURE__ */ s(or.Provider, { value: e, children: t });
1563
- }, lr = Ue(void 0), cr = () => xe(lr);
1564
- class di {
1562
+ ), [e, r]), /* @__PURE__ */ o(lr.Provider, { value: e, children: t });
1563
+ }, cr = Ue(void 0), ur = () => Oe(cr);
1564
+ class fa {
1565
1565
  controller = Yr;
1566
1566
  playing = !1;
1567
1567
  percent = 0;
1568
1568
  seeking = !1;
1569
1569
  constructor(e) {
1570
1570
  e.makeObservable(this, {
1571
- controller: X,
1572
- playing: X,
1573
- percent: X,
1574
- seeking: X,
1575
- setPlaying: h,
1576
- setPercent: h,
1577
- setSeeking: h,
1578
- onControllerChange: h.bound,
1579
- onPlay: h.bound,
1580
- onPause: h.bound,
1581
- onEnded: h.bound,
1582
- onTimeUpdate: h.bound
1571
+ controller: Z,
1572
+ playing: Z,
1573
+ percent: Z,
1574
+ seeking: Z,
1575
+ setPlaying: m,
1576
+ setPercent: m,
1577
+ setSeeking: m,
1578
+ onControllerChange: m.bound,
1579
+ onPlay: m.bound,
1580
+ onPause: m.bound,
1581
+ onEnded: m.bound,
1582
+ onTimeUpdate: m.bound
1583
1583
  });
1584
1584
  }
1585
1585
  setPlaying(e) {
@@ -1607,17 +1607,17 @@ class di {
1607
1607
  e !== void 0 && (this.seeking || (this.percent = e));
1608
1608
  }
1609
1609
  }
1610
- const fi = ({
1610
+ const pa = ({
1611
1611
  children: t
1612
1612
  }) => {
1613
1613
  const [e] = $(
1614
- () => new di(new We())
1614
+ () => new fa(new We())
1615
1615
  );
1616
- return /* @__PURE__ */ s(lr.Provider, { value: e, children: t });
1617
- }, ur = Ue(void 0), pi = () => xe(ur);
1618
- class hi {
1619
- constructor(e, r, i) {
1620
- this.player = r, this.playQueue = i, e.makeObservable(this, {
1616
+ return /* @__PURE__ */ o(cr.Provider, { value: e, children: t });
1617
+ }, dr = Ue(void 0), z = () => Oe(dr);
1618
+ class ma {
1619
+ constructor(e, r, a) {
1620
+ this.player = r, this.playQueue = a, e.makeObservable(this, {
1621
1621
  controller: g,
1622
1622
  playing: g,
1623
1623
  percent: g,
@@ -1634,17 +1634,17 @@ class hi {
1634
1634
  canSkipBack10: g,
1635
1635
  canSkipForward30: g,
1636
1636
  canRemoveFromPlayQueue: g,
1637
- setPercent: h.bound,
1638
- setSeeking: h.bound,
1639
- toggleRepeat: h.bound,
1640
- toggleShuffle: h.bound,
1641
- play: h.bound,
1642
- pause: h.bound,
1643
- previous: h.bound,
1644
- next: h.bound,
1645
- skipBack10: h.bound,
1646
- skipForward30: h.bound,
1647
- removeFromPlayQueue: h.bound
1637
+ setPercent: m.bound,
1638
+ setSeeking: m.bound,
1639
+ toggleRepeat: m.bound,
1640
+ toggleShuffle: m.bound,
1641
+ play: m.bound,
1642
+ pause: m.bound,
1643
+ previous: m.bound,
1644
+ next: m.bound,
1645
+ skipBack10: m.bound,
1646
+ skipForward30: m.bound,
1647
+ removeFromPlayQueue: m.bound
1648
1648
  });
1649
1649
  }
1650
1650
  get controller() {
@@ -1735,31 +1735,29 @@ class hi {
1735
1735
  this.currentItem !== void 0 && await this.playQueue.removeItems([this.currentItem]);
1736
1736
  }
1737
1737
  }
1738
- const yi = ({
1738
+ const ha = ({
1739
1739
  children: t
1740
1740
  }) => {
1741
- const e = cr(), r = Ge(), [i] = $(
1742
- () => new hi(
1741
+ const e = ur(), r = Ge(), [a] = $(
1742
+ () => new ma(
1743
1743
  new We(),
1744
1744
  e,
1745
1745
  r
1746
1746
  )
1747
1747
  );
1748
- return /* @__PURE__ */ s(ur.Provider, { value: i, children: t });
1749
- }, dr = Ue(
1750
- void 0
1751
- ), mi = () => xe(dr);
1752
- class vi {
1753
- constructor(e, r, i) {
1754
- this.player = r, this.playQueue = i, e.makeObservable(this, {
1748
+ return /* @__PURE__ */ o(dr.Provider, { value: a, children: t });
1749
+ }, fr = Ue(void 0), ya = () => Oe(fr);
1750
+ class va {
1751
+ constructor(e, r, a) {
1752
+ this.player = r, this.playQueue = a, e.makeObservable(this, {
1755
1753
  controller: g,
1756
1754
  currentItem: g,
1757
- onLoaded: h.bound,
1758
- onPlay: h.bound,
1759
- onPause: h.bound,
1760
- onEnded: h.bound,
1761
- onTimeUpdate: h.bound,
1762
- onControllerChange: h.bound
1755
+ onLoaded: m.bound,
1756
+ onPlay: m.bound,
1757
+ onPause: m.bound,
1758
+ onEnded: m.bound,
1759
+ onTimeUpdate: m.bound,
1760
+ onControllerChange: m.bound
1763
1761
  });
1764
1762
  }
1765
1763
  get controller() {
@@ -1805,37 +1803,37 @@ class vi {
1805
1803
  this.player.onControllerChange(e);
1806
1804
  }
1807
1805
  }
1808
- const gi = ({
1806
+ const ga = ({
1809
1807
  children: t
1810
1808
  }) => {
1811
- const e = cr(), r = Ge(), [i] = $(
1812
- () => new vi(
1809
+ const e = ur(), r = Ge(), [a] = $(
1810
+ () => new va(
1813
1811
  new We(),
1814
1812
  e,
1815
1813
  r
1816
1814
  )
1817
1815
  );
1818
- return /* @__PURE__ */ s(dr.Provider, { value: i, children: t });
1819
- }, Da = ({
1816
+ return /* @__PURE__ */ o(fr.Provider, { value: a, children: t });
1817
+ }, Di = ({
1820
1818
  children: t,
1821
1819
  nostalgicDivaProps: e
1822
- }) => /* @__PURE__ */ s(Wr, { ...e, children: /* @__PURE__ */ s(
1823
- ai,
1820
+ }) => /* @__PURE__ */ o(Wr, { ...e, children: /* @__PURE__ */ o(
1821
+ oa,
1824
1822
  {
1825
1823
  components: [
1826
- fi,
1827
- ui,
1828
- gi,
1829
- yi
1824
+ pa,
1825
+ da,
1826
+ ga,
1827
+ ha
1830
1828
  ],
1831
1829
  children: t
1832
1830
  }
1833
- ) }), Pi = {
1831
+ ) }), ba = {
1834
1832
  mediaPlayer: {
1835
1833
  enablePlaylists: process.env.NODE_ENV !== "production"
1836
1834
  }
1837
- }, bi = "http://localhost".replace(/\/+$/, "");
1838
- class fr {
1835
+ }, Pa = "http://localhost".replace(/\/+$/, "");
1836
+ class pr {
1839
1837
  constructor(e = {}) {
1840
1838
  this.configuration = e;
1841
1839
  }
@@ -1843,7 +1841,7 @@ class fr {
1843
1841
  this.configuration = e;
1844
1842
  }
1845
1843
  get basePath() {
1846
- return this.configuration.basePath != null ? this.configuration.basePath : bi;
1844
+ return this.configuration.basePath != null ? this.configuration.basePath : Pa;
1847
1845
  }
1848
1846
  get fetchApi() {
1849
1847
  return this.configuration.fetchApi;
@@ -1852,7 +1850,7 @@ class fr {
1852
1850
  return this.configuration.middleware || [];
1853
1851
  }
1854
1852
  get queryParamsStringify() {
1855
- return this.configuration.queryParamsStringify || pr;
1853
+ return this.configuration.queryParamsStringify || mr;
1856
1854
  }
1857
1855
  get username() {
1858
1856
  return this.configuration.username;
@@ -1877,9 +1875,9 @@ class fr {
1877
1875
  return this.configuration.credentials;
1878
1876
  }
1879
1877
  }
1880
- const wi = new fr();
1881
- class mt {
1882
- constructor(e = wi) {
1878
+ const Sa = new pr();
1879
+ class vt {
1880
+ constructor(e = Sa) {
1883
1881
  this.configuration = e, this.middleware = e.middleware;
1884
1882
  }
1885
1883
  static jsonRegex = new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$", "i");
@@ -1889,11 +1887,11 @@ class mt {
1889
1887
  return r.middleware = r.middleware.concat(...e), r;
1890
1888
  }
1891
1889
  withPreMiddleware(...e) {
1892
- const r = e.map((i) => ({ pre: i }));
1890
+ const r = e.map((a) => ({ pre: a }));
1893
1891
  return this.withMiddleware(...r);
1894
1892
  }
1895
1893
  withPostMiddleware(...e) {
1896
- const r = e.map((i) => ({ post: i }));
1894
+ const r = e.map((a) => ({ post: a }));
1897
1895
  return this.withMiddleware(...r);
1898
1896
  }
1899
1897
  /**
@@ -1907,69 +1905,69 @@ class mt {
1907
1905
  * @return True if the given MIME is JSON, false otherwise.
1908
1906
  */
1909
1907
  isJsonMime(e) {
1910
- return e ? mt.jsonRegex.test(e) : !1;
1908
+ return e ? vt.jsonRegex.test(e) : !1;
1911
1909
  }
1912
1910
  async request(e, r) {
1913
- const { url: i, init: a } = await this.createFetchParams(e, r), o = await this.fetchApi(i, a);
1914
- if (o && o.status >= 200 && o.status < 300)
1915
- return o;
1916
- throw new Ri(o, "Response returned an error code");
1911
+ const { url: a, init: i } = await this.createFetchParams(e, r), s = await this.fetchApi(a, i);
1912
+ if (s && s.status >= 200 && s.status < 300)
1913
+ return s;
1914
+ throw new Ra(s, "Response returned an error code");
1917
1915
  }
1918
1916
  async createFetchParams(e, r) {
1919
- let i = this.configuration.basePath + e.path;
1920
- e.query !== void 0 && Object.keys(e.query).length !== 0 && (i += "?" + this.configuration.queryParamsStringify(e.query));
1921
- const a = Object.assign({}, this.configuration.headers, e.headers);
1922
- Object.keys(a).forEach((b) => a[b] === void 0 ? delete a[b] : {});
1923
- const o = typeof r == "function" ? r : async () => r, c = {
1917
+ let a = this.configuration.basePath + e.path;
1918
+ e.query !== void 0 && Object.keys(e.query).length !== 0 && (a += "?" + this.configuration.queryParamsStringify(e.query));
1919
+ const i = Object.assign({}, this.configuration.headers, e.headers);
1920
+ Object.keys(i).forEach((P) => i[P] === void 0 ? delete i[P] : {});
1921
+ const s = typeof r == "function" ? r : async () => r, c = {
1924
1922
  method: e.method,
1925
- headers: a,
1923
+ headers: i,
1926
1924
  body: e.body,
1927
1925
  credentials: this.configuration.credentials
1928
1926
  }, f = {
1929
1927
  ...c,
1930
- ...await o({
1928
+ ...await s({
1931
1929
  init: c,
1932
1930
  context: e
1933
1931
  })
1934
1932
  };
1935
1933
  let p;
1936
- Ti(f.body) || f.body instanceof URLSearchParams || Si(f.body) ? p = f.body : this.isJsonMime(a["Content-Type"]) ? p = JSON.stringify(f.body) : p = f.body;
1937
- const m = {
1934
+ Ta(f.body) || f.body instanceof URLSearchParams || wa(f.body) ? p = f.body : this.isJsonMime(i["Content-Type"]) ? p = JSON.stringify(f.body) : p = f.body;
1935
+ const y = {
1938
1936
  ...f,
1939
1937
  body: p
1940
1938
  };
1941
- return { url: i, init: m };
1939
+ return { url: a, init: y };
1942
1940
  }
1943
1941
  fetchApi = async (e, r) => {
1944
- let i = { url: e, init: r };
1945
- for (const o of this.middleware)
1946
- o.pre && (i = await o.pre({
1942
+ let a = { url: e, init: r };
1943
+ for (const s of this.middleware)
1944
+ s.pre && (a = await s.pre({
1947
1945
  fetch: this.fetchApi,
1948
- ...i
1949
- }) || i);
1950
- let a;
1946
+ ...a
1947
+ }) || a);
1948
+ let i;
1951
1949
  try {
1952
- a = await (this.configuration.fetchApi || fetch)(i.url, i.init);
1953
- } catch (o) {
1950
+ i = await (this.configuration.fetchApi || fetch)(a.url, a.init);
1951
+ } catch (s) {
1954
1952
  for (const c of this.middleware)
1955
- c.onError && (a = await c.onError({
1953
+ c.onError && (i = await c.onError({
1956
1954
  fetch: this.fetchApi,
1957
- url: i.url,
1958
- init: i.init,
1959
- error: o,
1960
- response: a ? a.clone() : void 0
1961
- }) || a);
1962
- if (a === void 0)
1963
- throw o instanceof Error ? new Ci(o, "The request failed and the interceptors did not return an alternative response") : o;
1964
- }
1965
- for (const o of this.middleware)
1966
- o.post && (a = await o.post({
1955
+ url: a.url,
1956
+ init: a.init,
1957
+ error: s,
1958
+ response: i ? i.clone() : void 0
1959
+ }) || i);
1960
+ if (i === void 0)
1961
+ throw s instanceof Error ? new Ca(s, "The request failed and the interceptors did not return an alternative response") : s;
1962
+ }
1963
+ for (const s of this.middleware)
1964
+ s.post && (i = await s.post({
1967
1965
  fetch: this.fetchApi,
1968
- url: i.url,
1969
- init: i.init,
1970
- response: a.clone()
1971
- }) || a);
1972
- return a;
1966
+ url: a.url,
1967
+ init: a.init,
1968
+ response: i.clone()
1969
+ }) || i);
1970
+ return i;
1973
1971
  };
1974
1972
  /**
1975
1973
  * Create a shallow clone of `this` by constructing a new instance
@@ -1980,47 +1978,47 @@ class mt {
1980
1978
  return r.middleware = this.middleware.slice(), r;
1981
1979
  }
1982
1980
  }
1983
- function Si(t) {
1981
+ function wa(t) {
1984
1982
  return typeof Blob < "u" && t instanceof Blob;
1985
1983
  }
1986
- function Ti(t) {
1984
+ function Ta(t) {
1987
1985
  return typeof FormData < "u" && t instanceof FormData;
1988
1986
  }
1989
- class Ri extends Error {
1987
+ class Ra extends Error {
1990
1988
  constructor(e, r) {
1991
1989
  super(r), this.response = e;
1992
1990
  }
1993
1991
  name = "ResponseError";
1994
1992
  }
1995
- class Ci extends Error {
1993
+ class Ca extends Error {
1996
1994
  constructor(e, r) {
1997
1995
  super(r), this.cause = e;
1998
1996
  }
1999
1997
  name = "FetchError";
2000
1998
  }
2001
- class Re extends Error {
1999
+ class Ce extends Error {
2002
2000
  constructor(e, r) {
2003
2001
  super(r), this.field = e;
2004
2002
  }
2005
2003
  name = "RequiredError";
2006
2004
  }
2007
- function pr(t, e = "") {
2005
+ function mr(t, e = "") {
2008
2006
  return Object.keys(t).map((r) => hr(r, t[r], e)).filter((r) => r.length > 0).join("&");
2009
2007
  }
2010
2008
  function hr(t, e, r = "") {
2011
- const i = r + (r.length ? `[${t}]` : t);
2009
+ const a = r + (r.length ? `[${t}]` : t);
2012
2010
  if (e instanceof Array) {
2013
- const a = e.map((o) => encodeURIComponent(String(o))).join(`&${encodeURIComponent(i)}=`);
2014
- return `${encodeURIComponent(i)}=${a}`;
2011
+ const i = e.map((s) => encodeURIComponent(String(s))).join(`&${encodeURIComponent(a)}=`);
2012
+ return `${encodeURIComponent(a)}=${i}`;
2015
2013
  }
2016
2014
  if (e instanceof Set) {
2017
- const a = Array.from(e);
2018
- return hr(t, a, r);
2015
+ const i = Array.from(e);
2016
+ return hr(t, i, r);
2019
2017
  }
2020
- return e instanceof Date ? `${encodeURIComponent(i)}=${encodeURIComponent(e.toISOString())}` : e instanceof Object ? pr(e, i) : `${encodeURIComponent(i)}=${encodeURIComponent(String(e))}`;
2018
+ return e instanceof Date ? `${encodeURIComponent(a)}=${encodeURIComponent(e.toISOString())}` : e instanceof Object ? mr(e, a) : `${encodeURIComponent(a)}=${encodeURIComponent(String(e))}`;
2021
2019
  }
2022
2020
  class se {
2023
- constructor(e, r = (i) => i) {
2021
+ constructor(e, r = (a) => a) {
2024
2022
  this.raw = e, this.transformer = r;
2025
2023
  }
2026
2024
  async value() {
@@ -2028,34 +2026,34 @@ class se {
2028
2026
  }
2029
2027
  }
2030
2028
  function yr(t) {
2031
- return Ei(t);
2029
+ return Ea(t);
2032
2030
  }
2033
- function Ei(t, e) {
2031
+ function Ea(t, e) {
2034
2032
  return t == null ? t : {
2035
2033
  id: t.id,
2036
2034
  name: t.name
2037
2035
  };
2038
2036
  }
2039
- function Ii(t) {
2040
- return xi(t);
2037
+ function Ia(t) {
2038
+ return xa(t);
2041
2039
  }
2042
- function xi(t, e) {
2040
+ function xa(t, e) {
2043
2041
  return t == null ? t : {
2044
2042
  playlist: yr(t.playlist)
2045
2043
  };
2046
2044
  }
2047
- function Oi(t) {
2048
- return ki(t);
2045
+ function Oa(t) {
2046
+ return ka(t);
2049
2047
  }
2050
- function ki(t, e) {
2048
+ function ka(t, e) {
2051
2049
  return t == null ? t : {
2052
2050
  items: t.items.map(yr)
2053
2051
  };
2054
2052
  }
2055
- function _i(t) {
2056
- return Ai(t);
2053
+ function _a(t) {
2054
+ return Aa(t);
2057
2055
  }
2058
- function Ai(t, e) {
2056
+ function Aa(t, e) {
2059
2057
  return t == null ? t : {
2060
2058
  id: t.id,
2061
2059
  url: t.url,
@@ -2064,41 +2062,41 @@ function Ai(t, e) {
2064
2062
  title: t.title
2065
2063
  };
2066
2064
  }
2067
- function Fi(t) {
2068
- return Mi(t);
2065
+ function Fa(t) {
2066
+ return Ma(t);
2069
2067
  }
2070
- function Mi(t, e) {
2068
+ function Ma(t, e) {
2071
2069
  return t == null ? t : {
2072
- items: t.items.map(_i)
2070
+ items: t.items.map(_a)
2073
2071
  };
2074
2072
  }
2075
- function Di(t) {
2076
- return Ni(t, !1);
2073
+ function Da(t) {
2074
+ return Na(t, !1);
2077
2075
  }
2078
- function Ni(t, e = !1) {
2076
+ function Na(t, e = !1) {
2079
2077
  return t == null ? t : {
2080
2078
  name: t.name
2081
2079
  };
2082
2080
  }
2083
- function $i(t) {
2084
- return ji(t, !1);
2081
+ function $a(t) {
2082
+ return Ba(t, !1);
2085
2083
  }
2086
- function ji(t, e = !1) {
2084
+ function Ba(t, e = !1) {
2087
2085
  return t == null ? t : {
2088
2086
  name: t.name
2089
2087
  };
2090
2088
  }
2091
- class zi extends mt {
2089
+ class ja extends vt {
2092
2090
  /**
2093
2091
  */
2094
2092
  async mediaPlayerPlaylistsGetRaw(e) {
2095
- const r = {}, i = {}, o = await this.request({
2093
+ const r = {}, a = {}, s = await this.request({
2096
2094
  path: "/media-player/playlists",
2097
2095
  method: "GET",
2098
- headers: i,
2096
+ headers: a,
2099
2097
  query: r
2100
2098
  }, e);
2101
- return new se(o, (c) => Oi(c));
2099
+ return new se(s, (c) => Oa(c));
2102
2100
  }
2103
2101
  /**
2104
2102
  */
@@ -2109,18 +2107,18 @@ class zi extends mt {
2109
2107
  */
2110
2108
  async mediaPlayerPlaylistsIdDeleteRaw(e, r) {
2111
2109
  if (e.id == null)
2112
- throw new Re(
2110
+ throw new Ce(
2113
2111
  "id",
2114
2112
  'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdDelete().'
2115
2113
  );
2116
- const i = {}, a = {};
2117
- let o = "/media-player/playlists/{id}";
2118
- o = o.replace("{id}", encodeURIComponent(String(e.id)));
2114
+ const a = {}, i = {};
2115
+ let s = "/media-player/playlists/{id}";
2116
+ s = s.replace("{id}", encodeURIComponent(String(e.id)));
2119
2117
  const c = await this.request({
2120
- path: o,
2118
+ path: s,
2121
2119
  method: "DELETE",
2122
- headers: a,
2123
- query: i
2120
+ headers: i,
2121
+ query: a
2124
2122
  }, r);
2125
2123
  return new se(c);
2126
2124
  }
@@ -2133,20 +2131,20 @@ class zi extends mt {
2133
2131
  */
2134
2132
  async mediaPlayerPlaylistsIdGetRaw(e, r) {
2135
2133
  if (e.id == null)
2136
- throw new Re(
2134
+ throw new Ce(
2137
2135
  "id",
2138
2136
  'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdGet().'
2139
2137
  );
2140
- const i = {}, a = {};
2141
- let o = "/media-player/playlists/{id}";
2142
- o = o.replace("{id}", encodeURIComponent(String(e.id)));
2138
+ const a = {}, i = {};
2139
+ let s = "/media-player/playlists/{id}";
2140
+ s = s.replace("{id}", encodeURIComponent(String(e.id)));
2143
2141
  const c = await this.request({
2144
- path: o,
2142
+ path: s,
2145
2143
  method: "GET",
2146
- headers: a,
2147
- query: i
2144
+ headers: i,
2145
+ query: a
2148
2146
  }, r);
2149
- return new se(c, (f) => Ii(f));
2147
+ return new se(c, (f) => Ia(f));
2150
2148
  }
2151
2149
  /**
2152
2150
  */
@@ -2157,20 +2155,20 @@ class zi extends mt {
2157
2155
  */
2158
2156
  async mediaPlayerPlaylistsIdRenamePostRaw(e, r) {
2159
2157
  if (e.id == null)
2160
- throw new Re(
2158
+ throw new Ce(
2161
2159
  "id",
2162
2160
  'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdRenamePost().'
2163
2161
  );
2164
- const i = {}, a = {};
2165
- a["Content-Type"] = "application/json";
2166
- let o = "/media-player/playlists/{id}:rename";
2167
- o = o.replace("{id}", encodeURIComponent(String(e.id)));
2162
+ const a = {}, i = {};
2163
+ i["Content-Type"] = "application/json";
2164
+ let s = "/media-player/playlists/{id}:rename";
2165
+ s = s.replace("{id}", encodeURIComponent(String(e.id)));
2168
2166
  const c = await this.request({
2169
- path: o,
2167
+ path: s,
2170
2168
  method: "POST",
2171
- headers: a,
2172
- query: i,
2173
- body: $i(e.hydrangeanDivaMediaPlayerEndpointsPlaylistsRenamePlaylistRequest)
2169
+ headers: i,
2170
+ query: a,
2171
+ body: $a(e.hydrangeanDivaMediaPlayerEndpointsPlaylistsRenamePlaylistRequest)
2174
2172
  }, r);
2175
2173
  return new se(c);
2176
2174
  }
@@ -2183,20 +2181,20 @@ class zi extends mt {
2183
2181
  */
2184
2182
  async mediaPlayerPlaylistsIdTracksGetRaw(e, r) {
2185
2183
  if (e.id == null)
2186
- throw new Re(
2184
+ throw new Ce(
2187
2185
  "id",
2188
2186
  'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdTracksGet().'
2189
2187
  );
2190
- const i = {}, a = {};
2191
- let o = "/media-player/playlists/{id}/tracks";
2192
- o = o.replace("{id}", encodeURIComponent(String(e.id)));
2188
+ const a = {}, i = {};
2189
+ let s = "/media-player/playlists/{id}/tracks";
2190
+ s = s.replace("{id}", encodeURIComponent(String(e.id)));
2193
2191
  const c = await this.request({
2194
- path: o,
2192
+ path: s,
2195
2193
  method: "GET",
2196
- headers: a,
2197
- query: i
2194
+ headers: i,
2195
+ query: a
2198
2196
  }, r);
2199
- return new se(c, (f) => Fi(f));
2197
+ return new se(c, (f) => Fa(f));
2200
2198
  }
2201
2199
  /**
2202
2200
  */
@@ -2207,18 +2205,18 @@ class zi extends mt {
2207
2205
  */
2208
2206
  async mediaPlayerPlaylistsIdTracksPutRaw(e, r) {
2209
2207
  if (e.id == null)
2210
- throw new Re(
2208
+ throw new Ce(
2211
2209
  "id",
2212
2210
  'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdTracksPut().'
2213
2211
  );
2214
- const i = {}, a = {};
2215
- let o = "/media-player/playlists/{id}/tracks";
2216
- o = o.replace("{id}", encodeURIComponent(String(e.id)));
2212
+ const a = {}, i = {};
2213
+ let s = "/media-player/playlists/{id}/tracks";
2214
+ s = s.replace("{id}", encodeURIComponent(String(e.id)));
2217
2215
  const c = await this.request({
2218
- path: o,
2216
+ path: s,
2219
2217
  method: "PUT",
2220
- headers: a,
2221
- query: i
2218
+ headers: i,
2219
+ query: a
2222
2220
  }, r);
2223
2221
  return new se(c);
2224
2222
  }
@@ -2230,14 +2228,14 @@ class zi extends mt {
2230
2228
  /**
2231
2229
  */
2232
2230
  async mediaPlayerPlaylistsPostRaw(e, r) {
2233
- const i = {}, a = {};
2234
- a["Content-Type"] = "application/json";
2231
+ const a = {}, i = {};
2232
+ i["Content-Type"] = "application/json";
2235
2233
  const c = await this.request({
2236
2234
  path: "/media-player/playlists",
2237
2235
  method: "POST",
2238
- headers: a,
2239
- query: i,
2240
- body: Di(e.hydrangeanDivaMediaPlayerEndpointsPlaylistsCreatePlaylistRequest)
2236
+ headers: i,
2237
+ query: a,
2238
+ body: Da(e.hydrangeanDivaMediaPlayerEndpointsPlaylistsCreatePlaylistRequest)
2241
2239
  }, r);
2242
2240
  return new se(c);
2243
2241
  }
@@ -2247,157 +2245,157 @@ class zi extends mt {
2247
2245
  return await (await this.mediaPlayerPlaylistsPostRaw(e, r)).value();
2248
2246
  }
2249
2247
  }
2250
- const Li = new fr({
2248
+ const za = new pr({
2251
2249
  basePath: new URL("api", window.location.origin).toString()
2252
- }), qi = new zi(
2253
- Li
2254
- ), Qi = ({
2250
+ }), La = new ja(
2251
+ za
2252
+ ), qa = ({
2255
2253
  disabled: t,
2256
2254
  onAddToPlaylist: e
2257
2255
  }) => {
2258
- const [r, i] = $(!1), [a, o] = $(
2256
+ const [r, a] = $(!1), [i, s] = $(
2259
2257
  "loading"
2260
2258
  );
2261
2259
  return Yt(() => {
2262
- qi.mediaPlayerPlaylistsGet().then(
2263
- (c) => o(
2260
+ La.mediaPlayerPlaylistsGet().then(
2261
+ (c) => s(
2264
2262
  c.items.map((f) => ({
2265
2263
  key: f.id,
2266
2264
  label: f.name
2267
2265
  }))
2268
2266
  )
2269
2267
  );
2270
- }, []), /* @__PURE__ */ s(
2271
- Oe,
2268
+ }, []), /* @__PURE__ */ o(
2269
+ ke,
2272
2270
  {
2273
2271
  panelPaddingSize: "none",
2274
- button: /* @__PURE__ */ s(
2272
+ button: /* @__PURE__ */ o(
2275
2273
  J,
2276
2274
  {
2277
- iconType: Ce,
2278
- onClick: () => i(!r),
2275
+ iconType: Ee,
2276
+ onClick: () => a(!r),
2279
2277
  disabled: t,
2280
2278
  children: "Add to"
2281
2279
  }
2282
2280
  ),
2283
2281
  isOpen: r,
2284
- closePopover: () => i(!1),
2285
- children: /* @__PURE__ */ s(
2282
+ closePopover: () => a(!1),
2283
+ children: /* @__PURE__ */ o(
2286
2284
  Jr,
2287
2285
  {
2288
2286
  searchable: !0,
2289
2287
  searchProps: {
2290
2288
  compressed: !0
2291
2289
  },
2292
- options: a === "loading" ? void 0 : a,
2293
- isLoading: a === "loading",
2290
+ options: i === "loading" ? void 0 : i,
2291
+ isLoading: i === "loading",
2294
2292
  onChange: async (c, f, p) => {
2295
- i(!1), await e(p);
2293
+ a(!1), await e(p);
2296
2294
  },
2297
2295
  singleSelection: !0,
2298
2296
  children: (c, f) => /* @__PURE__ */ D("div", { style: { width: 240 }, children: [
2299
- /* @__PURE__ */ s(Br, { paddingSize: "s", children: f }),
2297
+ /* @__PURE__ */ o(Kr, { paddingSize: "s", children: f }),
2300
2298
  c,
2301
- /* @__PURE__ */ s(Kr, { paddingSize: "s", children: /* @__PURE__ */ s(J, { size: "s", fullWidth: !0, iconType: Ce, children: "New playlist" }) })
2299
+ /* @__PURE__ */ o(Xr, { paddingSize: "s", children: /* @__PURE__ */ o(J, { size: "s", fullWidth: !0, iconType: Ee, children: "New playlist" }) })
2302
2300
  ] })
2303
2301
  }
2304
2302
  )
2305
2303
  }
2306
2304
  );
2307
- }, Vi = ({
2305
+ }, Qa = ({
2308
2306
  onCancel: t,
2309
2307
  onSave: e
2310
2308
  }) => {
2311
- const r = Xr({ prefix: "modalForm" }), [i, a] = $(""), [o, c] = $(""), [f, p] = $(!1);
2312
- return /* @__PURE__ */ D(an, { onClose: t, initialFocus: "[name=url]", children: [
2313
- /* @__PURE__ */ s(en, { children: /* @__PURE__ */ s(Zr, { children: "Add video" }) }),
2314
- /* @__PURE__ */ s(rn, { children: /* @__PURE__ */ D(
2315
- tn,
2309
+ const r = Zr({ prefix: "modalForm" }), [a, i] = $(""), [s, c] = $(""), [f, p] = $(!1);
2310
+ return /* @__PURE__ */ D(on, { onClose: t, initialFocus: "[name=url]", children: [
2311
+ /* @__PURE__ */ o(tn, { children: /* @__PURE__ */ o(en, { children: "Add video" }) }),
2312
+ /* @__PURE__ */ o(nn, { children: /* @__PURE__ */ D(
2313
+ rn,
2316
2314
  {
2317
2315
  id: r,
2318
2316
  component: "form",
2319
- onSubmit: async (m) => {
2320
- m.preventDefault();
2317
+ onSubmit: async (y) => {
2318
+ y.preventDefault();
2321
2319
  try {
2322
- p(!0), await e({ url: i, title: o });
2320
+ p(!0), await e({ url: a, title: s });
2323
2321
  } finally {
2324
2322
  p(!1);
2325
2323
  }
2326
2324
  },
2327
2325
  children: [
2328
- /* @__PURE__ */ s(ct, { label: "URL", children: /* @__PURE__ */ s(
2329
- At,
2326
+ /* @__PURE__ */ o(ut, { label: "URL", children: /* @__PURE__ */ o(
2327
+ Ft,
2330
2328
  {
2331
2329
  name: "url",
2332
- value: i,
2333
- onChange: (m) => a(m.target.value)
2330
+ value: a,
2331
+ onChange: (y) => i(y.target.value)
2334
2332
  }
2335
2333
  ) }),
2336
- /* @__PURE__ */ s(ct, { label: "Title", children: /* @__PURE__ */ s(
2337
- At,
2334
+ /* @__PURE__ */ o(ut, { label: "Title", children: /* @__PURE__ */ o(
2335
+ Ft,
2338
2336
  {
2339
2337
  name: "title",
2340
- value: o,
2341
- onChange: (m) => c(m.target.value)
2338
+ value: s,
2339
+ onChange: (y) => c(y.target.value)
2342
2340
  }
2343
2341
  ) })
2344
2342
  ]
2345
2343
  }
2346
2344
  ) }),
2347
- /* @__PURE__ */ D(nn, { children: [
2348
- /* @__PURE__ */ s(Wt, { onClick: t, children: "Cancel" }),
2349
- /* @__PURE__ */ s(
2345
+ /* @__PURE__ */ D(an, { children: [
2346
+ /* @__PURE__ */ o(Wt, { onClick: t, children: "Cancel" }),
2347
+ /* @__PURE__ */ o(
2350
2348
  J,
2351
2349
  {
2352
2350
  type: "submit",
2353
2351
  form: r,
2354
2352
  fill: !0,
2355
- disabled: i.trim().length === 0,
2353
+ disabled: a.trim().length === 0,
2356
2354
  isLoading: f,
2357
2355
  children: "Add video"
2358
2356
  }
2359
2357
  )
2360
2358
  ] })
2361
2359
  ] });
2362
- }, Vt = re(
2360
+ }, Vt = ne(
2363
2361
  ({ onSave: t }) => {
2364
- const [e, r] = $(!1), i = j(
2365
- async (a) => {
2366
- await t(a), r(!1);
2362
+ const [e, r] = $(!1), a = B(
2363
+ async (i) => {
2364
+ await t(i), r(!1);
2367
2365
  },
2368
2366
  [t]
2369
2367
  );
2370
- return /* @__PURE__ */ D(ke, { children: [
2371
- /* @__PURE__ */ s(
2368
+ return /* @__PURE__ */ D(_e, { children: [
2369
+ /* @__PURE__ */ o(
2372
2370
  J,
2373
2371
  {
2374
2372
  onClick: () => r(!0),
2375
- iconType: Ce,
2373
+ iconType: Ee,
2376
2374
  color: "primary",
2377
2375
  children: "Add video"
2378
2376
  }
2379
2377
  ),
2380
- e && /* @__PURE__ */ s(
2381
- Vi,
2378
+ e && /* @__PURE__ */ o(
2379
+ Qa,
2382
2380
  {
2383
2381
  onCancel: () => r(!1),
2384
- onSave: i
2382
+ onSave: a
2385
2383
  }
2386
2384
  )
2387
2385
  ] });
2388
2386
  }
2389
2387
  );
2390
2388
  I(
2391
- ({ playQueueStore: t }) => {
2389
+ ({ playQueue: t }) => {
2392
2390
  const [e, r] = $(!1);
2393
- return /* @__PURE__ */ D(ke, { children: [
2394
- e && /* @__PURE__ */ s(
2395
- on,
2391
+ return /* @__PURE__ */ D(_e, { children: [
2392
+ e && /* @__PURE__ */ o(
2393
+ ln,
2396
2394
  {
2397
2395
  type: "push",
2398
2396
  size: "s",
2399
2397
  onClose: () => r(!1),
2400
- children: /* @__PURE__ */ s("div", { style: { blockSize: "100%" }, children: /* @__PURE__ */ s(
2398
+ children: /* @__PURE__ */ o("div", { style: { blockSize: "100%" }, children: /* @__PURE__ */ o(
2401
2399
  sn,
2402
2400
  {
2403
2401
  language: "json",
@@ -2413,18 +2411,18 @@ I(
2413
2411
  ) })
2414
2412
  }
2415
2413
  ),
2416
- /* @__PURE__ */ s(
2414
+ /* @__PURE__ */ o(
2417
2415
  J,
2418
2416
  {
2419
- onClick: () => r((i) => !i),
2420
- iconType: mn,
2417
+ onClick: () => r((a) => !a),
2418
+ iconType: vn,
2421
2419
  children: "Developer tools"
2422
2420
  }
2423
2421
  )
2424
2422
  ] });
2425
2423
  }
2426
2424
  );
2427
- const mr = {
2425
+ const vr = {
2428
2426
  Audio: "",
2429
2427
  Dailymotion: "https://www.dailymotion.com/favicon.ico",
2430
2428
  Niconico: "https://www.nicovideo.jp/favicon.ico",
@@ -2432,11 +2430,11 @@ const mr = {
2432
2430
  Twitch: "https://www.twitch.tv/favicon.ico",
2433
2431
  Vimeo: "https://vimeo.com/favicon.ico",
2434
2432
  YouTube: "https://www.youtube.com/favicon.ico"
2435
- }, Ui = I(
2436
- ({ playQueueStore: t }) => {
2433
+ }, Va = I(
2434
+ ({ playQueue: t }) => {
2437
2435
  const { euiTheme: e } = Ht();
2438
2436
  return /* @__PURE__ */ D(
2439
- cn,
2437
+ un,
2440
2438
  {
2441
2439
  style: {
2442
2440
  position: "sticky",
@@ -2445,7 +2443,7 @@ const mr = {
2445
2443
  background: e.colors.backgroundBasePlain
2446
2444
  },
2447
2445
  children: [
2448
- /* @__PURE__ */ s(ln, { children: /* @__PURE__ */ s(
2446
+ /* @__PURE__ */ o(cn, { children: /* @__PURE__ */ o(
2449
2447
  Gt,
2450
2448
  {
2451
2449
  id: "",
@@ -2455,14 +2453,14 @@ const mr = {
2455
2453
  }
2456
2454
  }
2457
2455
  ) }),
2458
- /* @__PURE__ */ s(at, { width: 24 }),
2459
- /* @__PURE__ */ s(at, { children: "Title" }),
2460
- /* @__PURE__ */ s(at, {})
2456
+ /* @__PURE__ */ o(ot, { width: 24 }),
2457
+ /* @__PURE__ */ o(ot, { children: "Title" }),
2458
+ /* @__PURE__ */ o(ot, {})
2461
2459
  ]
2462
2460
  }
2463
2461
  );
2464
2462
  }
2465
- ), Yi = re(
2463
+ ), Ua = ne(
2466
2464
  ({
2467
2465
  item: t,
2468
2466
  closePopover: e
@@ -2474,21 +2472,21 @@ const mr = {
2474
2472
  items: [
2475
2473
  {
2476
2474
  name: "Play first",
2477
- icon: /* @__PURE__ */ s(U, { type: "" }),
2475
+ icon: /* @__PURE__ */ o(U, { type: "" }),
2478
2476
  onClick: async () => {
2479
2477
  e(), await t.playFirst();
2480
2478
  }
2481
2479
  },
2482
2480
  {
2483
2481
  name: "Play next",
2484
- icon: /* @__PURE__ */ s(U, { type: "" }),
2482
+ icon: /* @__PURE__ */ o(U, { type: "" }),
2485
2483
  onClick: async () => {
2486
2484
  e(), await t.playNext();
2487
2485
  }
2488
2486
  },
2489
2487
  {
2490
2488
  name: "Add to play queue",
2491
- icon: /* @__PURE__ */ s(U, { type: Ce }),
2489
+ icon: /* @__PURE__ */ o(U, { type: Ee }),
2492
2490
  onClick: async () => {
2493
2491
  e(), await t.addToPlayQueue();
2494
2492
  }
@@ -2498,7 +2496,7 @@ const mr = {
2498
2496
  },
2499
2497
  {
2500
2498
  name: "Move to the top",
2501
- icon: /* @__PURE__ */ s(U, { type: vn }),
2499
+ icon: /* @__PURE__ */ o(U, { type: gn }),
2502
2500
  onClick: async () => {
2503
2501
  e(), t.moveToTop();
2504
2502
  },
@@ -2506,7 +2504,7 @@ const mr = {
2506
2504
  },
2507
2505
  {
2508
2506
  name: "Move to the bottom",
2509
- icon: /* @__PURE__ */ s(U, { type: gn }),
2507
+ icon: /* @__PURE__ */ o(U, { type: bn }),
2510
2508
  onClick: async () => {
2511
2509
  e(), t.moveToBottom();
2512
2510
  },
@@ -2517,7 +2515,7 @@ const mr = {
2517
2515
  },
2518
2516
  {
2519
2517
  name: "Remove to the top",
2520
- icon: /* @__PURE__ */ s(U, { type: "" }),
2518
+ icon: /* @__PURE__ */ o(U, { type: "" }),
2521
2519
  onClick: async () => {
2522
2520
  e(), await t.removeToTop();
2523
2521
  },
@@ -2525,7 +2523,7 @@ const mr = {
2525
2523
  },
2526
2524
  {
2527
2525
  name: "Remove others",
2528
- icon: /* @__PURE__ */ s(U, { type: "" }),
2526
+ icon: /* @__PURE__ */ o(U, { type: "" }),
2529
2527
  onClick: async () => {
2530
2528
  e(), await t.removeOthers();
2531
2529
  },
@@ -2536,44 +2534,44 @@ const mr = {
2536
2534
  ],
2537
2535
  [e, t]
2538
2536
  );
2539
- return /* @__PURE__ */ s(pt, { initialPanelId: 0, panels: r });
2537
+ return /* @__PURE__ */ o(mt, { initialPanelId: 0, panels: r });
2540
2538
  }
2541
- ), Wi = re(
2539
+ ), Ya = ne(
2542
2540
  ({ item: t }) => {
2543
- const [e, r] = $(!1), i = j(() => r(!e), [e]), a = j(() => r(!1), []);
2544
- return /* @__PURE__ */ s(
2545
- Oe,
2541
+ const [e, r] = $(!1), a = B(() => r(!e), [e]), i = B(() => r(!1), []);
2542
+ return /* @__PURE__ */ o(
2543
+ ke,
2546
2544
  {
2547
- button: /* @__PURE__ */ s(
2545
+ button: /* @__PURE__ */ o(
2548
2546
  Y,
2549
2547
  {
2550
2548
  title: "More options",
2551
2549
  "aria-label": "More options",
2552
- iconType: Kt,
2550
+ iconType: Xt,
2553
2551
  size: "s",
2554
2552
  color: "text",
2555
- onClick: i
2553
+ onClick: a
2556
2554
  }
2557
2555
  ),
2558
2556
  isOpen: e,
2559
- closePopover: a,
2557
+ closePopover: i,
2560
2558
  panelPaddingSize: "none",
2561
2559
  anchorPosition: "leftCenter",
2562
- children: /* @__PURE__ */ s(
2563
- Yi,
2560
+ children: /* @__PURE__ */ o(
2561
+ Ua,
2564
2562
  {
2565
2563
  item: t,
2566
- closePopover: a
2564
+ closePopover: i
2567
2565
  }
2568
2566
  )
2569
2567
  }
2570
2568
  );
2571
2569
  }
2572
- ), Hi = I(
2570
+ ), Wa = I(
2573
2571
  ({ item: t }) => {
2574
- const e = le();
2575
- return /* @__PURE__ */ D(ut, { textOnly: !1, hasActions: !0, align: "right", children: [
2576
- /* @__PURE__ */ s(
2572
+ const e = ce();
2573
+ return /* @__PURE__ */ D(dt, { textOnly: !1, hasActions: !0, align: "right", children: [
2574
+ /* @__PURE__ */ o(
2577
2575
  J,
2578
2576
  {
2579
2577
  iconType: Pn,
@@ -2584,7 +2582,7 @@ const mr = {
2584
2582
  children: "Play"
2585
2583
  }
2586
2584
  ),
2587
- /* @__PURE__ */ s(
2585
+ /* @__PURE__ */ o(
2588
2586
  J,
2589
2587
  {
2590
2588
  iconType: yt,
@@ -2593,14 +2591,14 @@ const mr = {
2593
2591
  children: "Remove"
2594
2592
  }
2595
2593
  ),
2596
- /* @__PURE__ */ s(Wi, { item: t })
2594
+ /* @__PURE__ */ o(Ya, { item: t })
2597
2595
  ] });
2598
2596
  }
2599
- ), Gi = I(
2597
+ ), Ha = I(
2600
2598
  ({ item: t }) => {
2601
- const e = le();
2602
- return /* @__PURE__ */ D(fn, { isSelected: t.isCurrent, children: [
2603
- /* @__PURE__ */ s(un, { children: /* @__PURE__ */ s(
2599
+ const e = ce();
2600
+ return /* @__PURE__ */ D(pn, { isSelected: t.isCurrent, children: [
2601
+ /* @__PURE__ */ o(dn, { children: /* @__PURE__ */ o(
2604
2602
  Gt,
2605
2603
  {
2606
2604
  id: t.id.toString(),
@@ -2608,17 +2606,17 @@ const mr = {
2608
2606
  onChange: t.toggleSelected
2609
2607
  }
2610
2608
  ) }),
2611
- /* @__PURE__ */ s(ut, { textOnly: !1, children: /* @__PURE__ */ s(
2609
+ /* @__PURE__ */ o(dt, { textOnly: !1, children: /* @__PURE__ */ o(
2612
2610
  "img",
2613
2611
  {
2614
- src: mr[t.type],
2612
+ src: vr[t.type],
2615
2613
  width: 16,
2616
2614
  height: 16,
2617
2615
  alt: t.type
2618
2616
  }
2619
2617
  ) }),
2620
- /* @__PURE__ */ s(ut, { children: /* @__PURE__ */ s(
2621
- dn,
2618
+ /* @__PURE__ */ o(dt, { children: /* @__PURE__ */ o(
2619
+ fn,
2622
2620
  {
2623
2621
  href: t.url,
2624
2622
  target: "_blank",
@@ -2627,66 +2625,66 @@ const mr = {
2627
2625
  children: t.title
2628
2626
  }
2629
2627
  ) }),
2630
- /* @__PURE__ */ s(Hi, { item: t })
2628
+ /* @__PURE__ */ o(Wa, { item: t })
2631
2629
  ] }, t.id);
2632
2630
  }
2633
- ), Ji = I(
2634
- ({ playQueueStore: t }) => /* @__PURE__ */ s(
2635
- Fn,
2631
+ ), Ga = I(
2632
+ ({ playQueue: t }) => /* @__PURE__ */ o(
2633
+ Mn,
2636
2634
  {
2637
2635
  tag: "tbody",
2638
2636
  list: t.items,
2639
2637
  setList: (e) => t.setItems(e),
2640
- children: t.items.map((e) => /* @__PURE__ */ s(Gi, { item: e }, e.id))
2638
+ children: t.items.map((e) => /* @__PURE__ */ o(Ha, { item: e }, e.id))
2641
2639
  }
2642
2640
  )
2643
- ), Bi = I(
2644
- ({ playQueueStore: t }) => /* @__PURE__ */ D(pn, { children: [
2645
- /* @__PURE__ */ s(Ui, { playQueueStore: t }),
2646
- /* @__PURE__ */ s(Ji, { playQueueStore: t })
2641
+ ), Ja = I(
2642
+ ({ playQueue: t }) => /* @__PURE__ */ D(mn, { children: [
2643
+ /* @__PURE__ */ o(Va, { playQueue: t }),
2644
+ /* @__PURE__ */ o(Ga, { playQueue: t })
2647
2645
  ] })
2648
2646
  );
2649
- function Ki(t) {
2647
+ function Ka(t) {
2650
2648
  return t !== null && typeof t == "object" && "title" in t && typeof t.title == "string";
2651
2649
  }
2652
- const Xi = I(
2653
- ({ playQueueStore: t }) => /* @__PURE__ */ s(
2650
+ const Xa = I(
2651
+ ({ playQueue: t }) => /* @__PURE__ */ o(
2654
2652
  J,
2655
2653
  {
2656
- iconType: Ce,
2654
+ iconType: Ee,
2657
2655
  onClick: t.addSelectedItems,
2658
2656
  disabled: !t.canAddSelectedItems,
2659
2657
  children: "Add to play queue"
2660
2658
  }
2661
2659
  )
2662
- ), Zi = I(
2663
- ({ playQueueStore: t }) => {
2664
- const { euiTheme: e } = Ht(), r = j(async () => {
2665
- }, []), i = j(
2666
- async (a) => {
2667
- const o = Hr(a.url);
2668
- if (o === void 0)
2660
+ ), Za = I(
2661
+ ({ playQueue: t }) => {
2662
+ const { euiTheme: e } = Ht(), r = B(async () => {
2663
+ }, []), a = B(
2664
+ async (i) => {
2665
+ const s = Hr(i.url);
2666
+ if (s === void 0)
2669
2667
  return;
2670
- const c = o.extractVideoId(a.url);
2668
+ const c = s.extractVideoId(i.url);
2671
2669
  if (c === void 0)
2672
2670
  return;
2673
2671
  const p = await (await fetch(
2674
2672
  `https://noembed.com/embed?url=${encodeURIComponent(
2675
- a.url
2673
+ i.url
2676
2674
  )}`
2677
- )).json(), m = t.createItem({
2678
- url: a.url,
2679
- type: o.type,
2675
+ )).json(), y = t.createItem({
2676
+ url: i.url,
2677
+ type: s.type,
2680
2678
  videoId: c,
2681
- title: a.title || (Ki(p) ? p.title : c)
2679
+ title: i.title || (Ka(p) ? p.title : c)
2682
2680
  });
2683
- await t.addItems([m]);
2681
+ await t.addItems([y]);
2684
2682
  },
2685
2683
  [t]
2686
2684
  );
2687
- return /* @__PURE__ */ D(ke, { children: [
2685
+ return /* @__PURE__ */ D(_e, { children: [
2688
2686
  /* @__PURE__ */ D(
2689
- oe,
2687
+ le,
2690
2688
  {
2691
2689
  alignItems: "center",
2692
2690
  gutterSize: "m",
@@ -2697,7 +2695,7 @@ const Xi = I(
2697
2695
  background: e.colors.backgroundBasePlain
2698
2696
  },
2699
2697
  children: [
2700
- /* @__PURE__ */ s(G, { grow: !1, children: /* @__PURE__ */ s(
2698
+ /* @__PURE__ */ o(G, { grow: !1, children: /* @__PURE__ */ o(
2701
2699
  J,
2702
2700
  {
2703
2701
  disabled: !t.canPlaySelectedItemsNext,
@@ -2705,15 +2703,15 @@ const Xi = I(
2705
2703
  children: "Play next"
2706
2704
  }
2707
2705
  ) }),
2708
- /* @__PURE__ */ s(G, { grow: !1, children: /* @__PURE__ */ s(Xi, { playQueueStore: t }) }),
2709
- /* @__PURE__ */ s(G, { grow: !1, children: /* @__PURE__ */ s(
2710
- Qi,
2706
+ /* @__PURE__ */ o(G, { grow: !1, children: /* @__PURE__ */ o(Xa, { playQueue: t }) }),
2707
+ /* @__PURE__ */ o(G, { grow: !1, children: /* @__PURE__ */ o(
2708
+ qa,
2711
2709
  {
2712
- disabled: !Pi.mediaPlayer.enablePlaylists,
2710
+ disabled: !ba.mediaPlayer.enablePlaylists,
2713
2711
  onAddToPlaylist: r
2714
2712
  }
2715
2713
  ) }),
2716
- /* @__PURE__ */ s(G, { grow: !1, children: /* @__PURE__ */ s(
2714
+ /* @__PURE__ */ o(G, { grow: !1, children: /* @__PURE__ */ o(
2717
2715
  J,
2718
2716
  {
2719
2717
  iconType: yt,
@@ -2722,24 +2720,24 @@ const Xi = I(
2722
2720
  children: "Remove"
2723
2721
  }
2724
2722
  ) }),
2725
- /* @__PURE__ */ s(G, { grow: !1, children: /* @__PURE__ */ s(
2723
+ /* @__PURE__ */ o(G, { grow: !1, children: /* @__PURE__ */ o(
2726
2724
  J,
2727
2725
  {
2728
- iconType: bn,
2726
+ iconType: Sn,
2729
2727
  onClick: t.clear,
2730
2728
  disabled: !t.canClear,
2731
2729
  children: "Clear"
2732
2730
  }
2733
2731
  ) }),
2734
- /* @__PURE__ */ s(G, { grow: !0 }),
2732
+ /* @__PURE__ */ o(G, { grow: !0 }),
2735
2733
  /* @__PURE__ */ D(G, { grow: !1, children: [
2736
2734
  !1,
2737
- /* @__PURE__ */ s(Vt, { onSave: i })
2735
+ /* @__PURE__ */ o(Vt, { onSave: a })
2738
2736
  ] })
2739
2737
  ]
2740
2738
  }
2741
2739
  ),
2742
- /* @__PURE__ */ s(
2740
+ /* @__PURE__ */ o(
2743
2741
  Jt,
2744
2742
  {
2745
2743
  size: "l",
@@ -2751,204 +2749,213 @@ const Xi = I(
2751
2749
  }
2752
2750
  }
2753
2751
  ),
2754
- t.isEmpty ? /* @__PURE__ */ s(
2752
+ t.isEmpty ? /* @__PURE__ */ o(
2755
2753
  hn,
2756
2754
  {
2757
- title: /* @__PURE__ */ s("h2", { children: "We couldn't find any videos" }),
2758
- body: /* @__PURE__ */ s("p", { children: "Your video library doesn't contain any video content." }),
2759
- actions: /* @__PURE__ */ s(Vt, { onSave: i })
2755
+ title: /* @__PURE__ */ o("h2", { children: "We couldn't find any videos" }),
2756
+ body: /* @__PURE__ */ o("p", { children: "Your video library doesn't contain any video content." }),
2757
+ actions: /* @__PURE__ */ o(Vt, { onSave: a })
2760
2758
  }
2761
- ) : /* @__PURE__ */ s(Bi, { playQueueStore: t })
2759
+ ) : /* @__PURE__ */ o(Ja, { playQueue: t })
2762
2760
  ] });
2763
2761
  }
2764
- ), ea = ({
2762
+ ), ei = ({
2765
2763
  breadcrumbs: t,
2766
2764
  tabs: e,
2767
2765
  ...r
2768
2766
  }) => {
2769
- const i = Mn();
2770
- return /* @__PURE__ */ s(
2767
+ const a = Dn();
2768
+ return /* @__PURE__ */ o(
2771
2769
  ht.Header,
2772
2770
  {
2773
2771
  ...r,
2774
- breadcrumbs: t?.map(({ linkProps: a, ...o }) => ({
2775
- ...o,
2776
- href: a === void 0 ? void 0 : i.buildLocation(
2777
- a
2772
+ breadcrumbs: t?.map(({ linkProps: i, ...s }) => ({
2773
+ ...s,
2774
+ href: i === void 0 ? void 0 : a.buildLocation(
2775
+ i
2778
2776
  /* FIXME */
2779
2777
  ).href,
2780
- onClick: a === void 0 ? void 0 : async (c) => {
2781
- c.preventDefault(), await i.navigate(a);
2778
+ onClick: i === void 0 ? void 0 : async (c) => {
2779
+ c.preventDefault(), await a.navigate(i);
2782
2780
  }
2783
2781
  })),
2784
- tabs: e?.map(({ linkProps: a, ...o }) => ({
2785
- ...o,
2786
- href: a === void 0 ? void 0 : i.buildLocation(
2787
- a
2782
+ tabs: e?.map(({ linkProps: i, ...s }) => ({
2783
+ ...s,
2784
+ href: i === void 0 ? void 0 : a.buildLocation(
2785
+ i
2788
2786
  /* FIXME */
2789
2787
  ).href,
2790
- onClick: a === void 0 ? void 0 : async (c) => {
2791
- c.preventDefault(), await i.navigate(a);
2788
+ onClick: i === void 0 ? void 0 : async (c) => {
2789
+ c.preventDefault(), await a.navigate(i);
2792
2790
  }
2793
2791
  }))
2794
2792
  }
2795
2793
  );
2796
- }, Na = () => {
2794
+ }, Ni = () => {
2797
2795
  const t = Ge();
2798
- return /* @__PURE__ */ D(ke, { children: [
2799
- /* @__PURE__ */ s(
2800
- ea,
2796
+ return /* @__PURE__ */ D(_e, { children: [
2797
+ /* @__PURE__ */ o(
2798
+ ei,
2801
2799
  {
2802
2800
  pageTitle: "Play queue",
2803
2801
  rightSideItems: []
2804
2802
  }
2805
2803
  ),
2806
- /* @__PURE__ */ s(ht.Section, { children: /* @__PURE__ */ s(Zi, { playQueueStore: t }) })
2804
+ /* @__PURE__ */ o(ht.Section, { children: /* @__PURE__ */ o(Za, { playQueue: t }) })
2807
2805
  ] });
2808
- }, ta = I(
2809
- ({ bottomBarStore: t }) => /* @__PURE__ */ s(
2806
+ }, ti = I(() => {
2807
+ const t = z();
2808
+ return /* @__PURE__ */ o(
2810
2809
  Y,
2811
2810
  {
2812
2811
  title: `Shuffle: ${t.shuffle ? "On" : "Off"}`,
2813
2812
  "aria-label": `Shuffle: ${t.shuffle ? "On" : "Off"}`,
2814
- iconType: t.shuffle ? wn : Sn,
2813
+ iconType: t.shuffle ? wn : Tn,
2815
2814
  size: "s",
2816
2815
  iconSize: "l",
2817
2816
  onClick: t.toggleShuffle,
2818
2817
  disabled: !t.canToggleShuffle
2819
2818
  }
2820
- )
2821
- ), ra = I(
2822
- ({ bottomBarStore: t }) => /* @__PURE__ */ s(
2819
+ );
2820
+ }), ri = I(() => {
2821
+ const t = z();
2822
+ return /* @__PURE__ */ o(
2823
2823
  Y,
2824
2824
  {
2825
2825
  title: "Previous",
2826
2826
  "aria-label": "Previous",
2827
- iconType: Tn,
2827
+ iconType: Rn,
2828
2828
  size: "s",
2829
2829
  iconSize: "l",
2830
2830
  onClick: t.previous,
2831
2831
  disabled: !t.canPrevious
2832
2832
  }
2833
- )
2834
- ), na = I(
2835
- ({ bottomBarStore: t }) => /* @__PURE__ */ s(
2833
+ );
2834
+ }), ni = I(() => {
2835
+ const t = z();
2836
+ return /* @__PURE__ */ o(
2836
2837
  Y,
2837
2838
  {
2838
2839
  title: "Skip back 10 seconds",
2839
2840
  "aria-label": "Skip back 10 seconds",
2840
- iconType: Xt,
2841
+ iconType: Zt,
2841
2842
  size: "s",
2842
2843
  iconSize: "l",
2843
2844
  onClick: t.skipBack10,
2844
2845
  disabled: !t.canSkipBack10
2845
2846
  }
2846
- )
2847
- ), ia = I(
2848
- ({ bottomBarStore: t }) => /* @__PURE__ */ s(
2847
+ );
2848
+ }), ai = I(() => {
2849
+ const t = z();
2850
+ return /* @__PURE__ */ o(
2849
2851
  Y,
2850
2852
  {
2851
2853
  title: "Pause",
2852
2854
  "aria-label": "Pause",
2853
- iconType: Rn,
2855
+ iconType: Cn,
2854
2856
  size: "s",
2855
2857
  iconSize: "l",
2856
2858
  onClick: t.pause,
2857
2859
  disabled: !t.canPause
2858
2860
  }
2859
- )
2860
- ), aa = I(
2861
- ({ bottomBarStore: t }) => /* @__PURE__ */ s(
2861
+ );
2862
+ }), ii = I(() => {
2863
+ const t = z();
2864
+ return /* @__PURE__ */ o(
2862
2865
  Y,
2863
2866
  {
2864
2867
  title: "Play",
2865
2868
  "aria-label": "Play",
2866
- iconType: Cn,
2869
+ iconType: En,
2867
2870
  size: "s",
2868
2871
  iconSize: "l",
2869
2872
  onClick: t.play,
2870
2873
  disabled: !t.canPlay
2871
2874
  }
2872
- )
2873
- ), sa = I(
2874
- ({ bottomBarStore: t }) => /* @__PURE__ */ s(
2875
+ );
2876
+ }), oi = I(() => {
2877
+ const t = z();
2878
+ return /* @__PURE__ */ o(
2875
2879
  Y,
2876
2880
  {
2877
2881
  title: "Skip forward 30 seconds",
2878
2882
  "aria-label": "Skip forward 30 seconds",
2879
- iconType: Zt,
2883
+ iconType: er,
2880
2884
  size: "s",
2881
2885
  iconSize: "l",
2882
2886
  onClick: t.skipForward30,
2883
2887
  disabled: !t.canSkipForward30
2884
2888
  }
2885
- )
2886
- ), oa = I(
2887
- ({ bottomBarStore: t }) => /* @__PURE__ */ s(
2889
+ );
2890
+ }), si = I(() => {
2891
+ const t = z();
2892
+ return /* @__PURE__ */ o(
2888
2893
  Y,
2889
2894
  {
2890
2895
  title: "Next",
2891
2896
  "aria-label": "Next",
2892
- iconType: En,
2897
+ iconType: In,
2893
2898
  size: "s",
2894
2899
  iconSize: "l",
2895
2900
  onClick: t.next,
2896
2901
  disabled: !t.canNext
2897
2902
  }
2898
- )
2899
- ), la = {
2900
- [O.Off]: On,
2901
- [O.All]: xn,
2902
- [O.One]: In
2903
- }, ca = I(
2904
- ({ bottomBarStore: t }) => /* @__PURE__ */ s(
2903
+ );
2904
+ }), li = {
2905
+ [O.Off]: kn,
2906
+ [O.All]: On,
2907
+ [O.One]: xn
2908
+ }, ci = I(() => {
2909
+ const t = z();
2910
+ return /* @__PURE__ */ o(
2905
2911
  Y,
2906
2912
  {
2907
2913
  title: `Repeat: ${t.repeat === O.All ? "All" : t.repeat === O.One ? "One" : "Off"}`,
2908
2914
  "aria-label": `Repeat: ${t.repeat === O.All ? "All" : t.repeat === O.One ? "One" : "Off"}`,
2909
- iconType: la[t.repeat],
2915
+ iconType: li[t.repeat],
2910
2916
  size: "s",
2911
2917
  iconSize: "l",
2912
2918
  onClick: t.toggleRepeat,
2913
2919
  disabled: !t.canToggleRepeat
2914
2920
  }
2915
- )
2916
- ), ua = I(
2917
- ({ bottomBarStore: t }) => /* @__PURE__ */ D(
2918
- oe,
2921
+ );
2922
+ }), ui = I(() => {
2923
+ const t = z();
2924
+ return /* @__PURE__ */ D(
2925
+ le,
2919
2926
  {
2920
2927
  responsive: !1,
2921
2928
  gutterSize: "s",
2922
2929
  justifyContent: "center",
2923
2930
  alignItems: "center",
2924
2931
  children: [
2925
- /* @__PURE__ */ s(ta, { bottomBarStore: t }),
2926
- /* @__PURE__ */ s(ra, { bottomBarStore: t }),
2927
- /* @__PURE__ */ s(na, { bottomBarStore: t }),
2928
- t.playing ? /* @__PURE__ */ s(ia, { bottomBarStore: t }) : /* @__PURE__ */ s(aa, { bottomBarStore: t }),
2929
- /* @__PURE__ */ s(sa, { bottomBarStore: t }),
2930
- /* @__PURE__ */ s(oa, { bottomBarStore: t }),
2931
- /* @__PURE__ */ s(ca, { bottomBarStore: t })
2932
+ /* @__PURE__ */ o(ti, {}),
2933
+ /* @__PURE__ */ o(ri, {}),
2934
+ /* @__PURE__ */ o(ni, {}),
2935
+ t.playing ? /* @__PURE__ */ o(ai, {}) : /* @__PURE__ */ o(ii, {}),
2936
+ /* @__PURE__ */ o(oi, {}),
2937
+ /* @__PURE__ */ o(si, {}),
2938
+ /* @__PURE__ */ o(ci, {})
2932
2939
  ]
2933
2940
  }
2934
- )
2935
- ), da = re(
2941
+ );
2942
+ }), di = ne(
2936
2943
  ({ item: t, closePopover: e }) => {
2937
- const r = le(), i = Ye(
2944
+ const r = ce(), a = Ye(
2938
2945
  () => [
2939
2946
  {
2940
2947
  id: 0,
2941
2948
  items: [
2942
2949
  {
2943
2950
  name: "Open in new tab",
2944
- icon: /* @__PURE__ */ s(U, { type: kn }),
2951
+ icon: /* @__PURE__ */ o(U, { type: _n }),
2945
2952
  onClick: async () => {
2946
2953
  e(), await r.pause(), window.open(t.dto.url, "_blank");
2947
2954
  }
2948
2955
  },
2949
2956
  {
2950
2957
  name: "Copy link address",
2951
- icon: /* @__PURE__ */ s(U, { type: "" }),
2958
+ icon: /* @__PURE__ */ o(U, { type: "" }),
2952
2959
  onClick: async () => {
2953
2960
  e(), await navigator.clipboard.writeText(
2954
2961
  t.dto.url
@@ -2957,7 +2964,7 @@ const Xi = I(
2957
2964
  },
2958
2965
  {
2959
2966
  name: "Copy link text",
2960
- icon: /* @__PURE__ */ s(U, { type: "" }),
2967
+ icon: /* @__PURE__ */ o(U, { type: "" }),
2961
2968
  onClick: async () => {
2962
2969
  e(), await navigator.clipboard.writeText(
2963
2970
  t.dto.title
@@ -2969,105 +2976,102 @@ const Xi = I(
2969
2976
  ],
2970
2977
  [e, r, t]
2971
2978
  );
2972
- return /* @__PURE__ */ s(pt, { initialPanelId: 0, panels: i });
2979
+ return /* @__PURE__ */ o(mt, { initialPanelId: 0, panels: a });
2973
2980
  }
2974
- ), fa = re(
2981
+ ), fi = ne(
2975
2982
  ({ item: t }) => {
2976
- const [e, r] = $(!1), i = j(() => r(!e), [e]), a = j(() => r(!1), []);
2977
- return /* @__PURE__ */ s(
2978
- Oe,
2983
+ const [e, r] = $(!1), a = B(() => r(!e), [e]), i = B(() => r(!1), []);
2984
+ return /* @__PURE__ */ o(
2985
+ ke,
2979
2986
  {
2980
- button: /* @__PURE__ */ s(
2987
+ button: /* @__PURE__ */ o(
2981
2988
  Wt,
2982
2989
  {
2983
- iconType: mr[t.type],
2990
+ iconType: vr[t.type],
2984
2991
  size: "s",
2985
- onClick: i,
2992
+ onClick: a,
2986
2993
  children: t.title
2987
2994
  }
2988
2995
  ),
2989
2996
  isOpen: e,
2990
- closePopover: a,
2997
+ closePopover: i,
2991
2998
  panelPaddingSize: "none",
2992
2999
  anchorPosition: "upLeft",
2993
- children: /* @__PURE__ */ s(
2994
- da,
3000
+ children: /* @__PURE__ */ o(
3001
+ di,
2995
3002
  {
2996
3003
  item: t,
2997
- closePopover: a
3004
+ closePopover: i
2998
3005
  }
2999
3006
  )
3000
3007
  }
3001
3008
  );
3002
3009
  }
3003
- ), pa = I(
3004
- ({ bottomBarStore: t }) => /* @__PURE__ */ s(
3005
- oe,
3010
+ ), pi = I(() => {
3011
+ const t = z();
3012
+ return /* @__PURE__ */ o(
3013
+ le,
3006
3014
  {
3007
3015
  responsive: !1,
3008
3016
  gutterSize: "s",
3009
3017
  justifyContent: "flexStart",
3010
3018
  alignItems: "center",
3011
- children: t.currentItem && /* @__PURE__ */ s(fa, { item: t.currentItem })
3019
+ children: t.currentItem && /* @__PURE__ */ o(fi, { item: t.currentItem })
3012
3020
  }
3013
- )
3014
- ), ha = I(
3015
- ({ bottomBarStore: t }) => /* @__PURE__ */ s(
3021
+ );
3022
+ }), mi = I(() => {
3023
+ const t = z();
3024
+ return /* @__PURE__ */ o(
3016
3025
  Y,
3017
3026
  {
3018
3027
  title: "Mute",
3019
3028
  "aria-label": "Mute",
3020
- iconType: er,
3029
+ iconType: tr,
3021
3030
  size: "s",
3022
3031
  iconSize: "l",
3023
3032
  disabled: !t.controller.supports("setMuted")
3024
3033
  }
3025
- )
3026
- ), ya = I(
3027
- ({
3028
- bottomBarStore: t,
3029
- button: e,
3030
- isOpen: r,
3031
- closePopover: i
3032
- }) => {
3033
- const [a, o] = $("0"), c = le();
3034
+ );
3035
+ }), hi = I(
3036
+ ({ button: t, isOpen: e, closePopover: r }) => {
3037
+ const a = z(), [i, s] = $("0"), c = ce();
3034
3038
  Qr(() => {
3035
- r && c.getVolume().then((p) => {
3036
- p !== void 0 && o(Math.floor(p * 100).toString());
3039
+ e && c.getVolume().then((p) => {
3040
+ p !== void 0 && s(Math.floor(p * 100).toString());
3037
3041
  });
3038
- }, [r, c]);
3039
- const f = j(
3042
+ }, [e, c]);
3043
+ const f = B(
3040
3044
  async (p) => {
3041
- o(p.currentTarget.value), await c.setVolume(Number(p.currentTarget.value) / 100);
3045
+ s(p.currentTarget.value), await c.setVolume(Number(p.currentTarget.value) / 100);
3042
3046
  },
3043
3047
  [c]
3044
3048
  );
3045
- return /* @__PURE__ */ s(
3046
- Oe,
3049
+ return /* @__PURE__ */ o(
3050
+ ke,
3047
3051
  {
3048
- button: e,
3049
- isOpen: r,
3050
- closePopover: i,
3052
+ button: t,
3053
+ isOpen: e,
3054
+ closePopover: r,
3051
3055
  anchorPosition: "upRight",
3052
- children: /* @__PURE__ */ s(ct, { children: /* @__PURE__ */ D(
3053
- oe,
3056
+ children: /* @__PURE__ */ o(ut, { children: /* @__PURE__ */ D(
3057
+ le,
3054
3058
  {
3055
3059
  responsive: !1,
3056
3060
  gutterSize: "s",
3057
3061
  justifyContent: "center",
3058
3062
  alignItems: "center",
3059
3063
  children: [
3060
- /* @__PURE__ */ s(ha, { bottomBarStore: t }),
3061
- /* @__PURE__ */ s(
3062
- Bt,
3064
+ /* @__PURE__ */ o(mi, {}),
3065
+ /* @__PURE__ */ o(
3066
+ Kt,
3063
3067
  {
3064
3068
  min: 0,
3065
3069
  max: 100,
3066
3070
  step: 1,
3067
- value: a,
3071
+ value: i,
3068
3072
  onChange: f,
3069
3073
  css: { blockSize: 32 },
3070
- disabled: !t.controller.supports("setVolume")
3074
+ disabled: !a.controller.supports("setVolume")
3071
3075
  }
3072
3076
  )
3073
3077
  ]
@@ -3076,94 +3080,88 @@ const Xi = I(
3076
3080
  }
3077
3081
  );
3078
3082
  }
3079
- ), ma = I(
3080
- ({ bottomBarStore: t }) => {
3081
- const [e, r] = $(!1);
3082
- return /* @__PURE__ */ s(
3083
- ya,
3084
- {
3085
- bottomBarStore: t,
3086
- button: /* @__PURE__ */ s(
3087
- Y,
3088
- {
3089
- title: "Volume",
3090
- "aria-label": "Volume",
3091
- iconType: er,
3092
- size: "s",
3093
- iconSize: "l",
3094
- onClick: () => r(!e),
3095
- disabled: !t.controller.supports("getVolume")
3096
- }
3097
- ),
3098
- isOpen: e,
3099
- closePopover: () => r(!1)
3100
- }
3101
- );
3102
- }
3103
- ), va = ({
3083
+ ), yi = I(() => {
3084
+ const t = z(), [e, r] = $(!1);
3085
+ return /* @__PURE__ */ o(
3086
+ hi,
3087
+ {
3088
+ button: /* @__PURE__ */ o(
3089
+ Y,
3090
+ {
3091
+ title: "Volume",
3092
+ "aria-label": "Volume",
3093
+ iconType: tr,
3094
+ size: "s",
3095
+ iconSize: "l",
3096
+ onClick: () => r(!e),
3097
+ disabled: !t.controller.supports("getVolume")
3098
+ }
3099
+ ),
3100
+ isOpen: e,
3101
+ closePopover: () => r(!1)
3102
+ }
3103
+ );
3104
+ }), vi = ({
3104
3105
  onClickPlayQueueButton: t
3105
- }) => /* @__PURE__ */ s(
3106
+ }) => /* @__PURE__ */ o(
3106
3107
  Y,
3107
3108
  {
3108
3109
  title: "Play queue",
3109
3110
  "aria-label": "Play queue",
3110
- iconType: An,
3111
+ iconType: Fn,
3111
3112
  size: "s",
3112
3113
  iconSize: "l",
3113
3114
  onClick: t
3114
3115
  }
3115
- ), ga = I(
3116
- ({
3117
- bottomBarStore: t,
3118
- closePopover: e
3119
- }) => {
3120
- const r = le(), i = j(async () => {
3121
- await t.skipBack10(), e();
3122
- }, [t, e]), a = j(async () => {
3123
- await t.skipForward30(), e();
3124
- }, [t, e]), o = j(
3125
- async (S) => {
3126
- await r.setPlaybackRate(S), e();
3116
+ ), gi = I(
3117
+ ({ closePopover: t }) => {
3118
+ const e = z(), r = ce(), a = B(async () => {
3119
+ await e.skipBack10(), t();
3120
+ }, [e, t]), i = B(async () => {
3121
+ await e.skipForward30(), t();
3122
+ }, [e, t]), s = B(
3123
+ async (w) => {
3124
+ await r.setPlaybackRate(w), t();
3127
3125
  },
3128
- [r, e]
3129
- ), c = j(async () => {
3130
- await t.removeFromPlayQueue(), e();
3131
- }, [t, e]), [f, p] = $(), m = j(async () => {
3132
- await t.controller.getPlaybackRate().then((S) => p(S));
3133
- }, [t]), b = Ye(
3126
+ [r, t]
3127
+ ), c = B(async () => {
3128
+ await e.removeFromPlayQueue(), t();
3129
+ }, [e, t]), [f, p] = $(), y = B(async () => {
3130
+ await e.controller.getPlaybackRate().then((w) => p(w));
3131
+ }, [e]), P = Ye(
3134
3132
  () => [
3135
3133
  {
3136
3134
  id: 0,
3137
3135
  items: [
3138
3136
  {
3139
3137
  name: "Speed",
3140
- icon: /* @__PURE__ */ s(U, { type: _n }),
3138
+ icon: /* @__PURE__ */ o(U, { type: An }),
3141
3139
  panel: 1,
3142
- onClick: m,
3143
- disabled: !t.controller.supports(
3140
+ onClick: y,
3141
+ disabled: !e.controller.supports(
3144
3142
  "getPlaybackRate"
3145
3143
  )
3146
3144
  },
3147
3145
  {
3148
3146
  name: "Skip back 10 seconds",
3149
- icon: /* @__PURE__ */ s(U, { type: Xt }),
3150
- onClick: i,
3151
- disabled: !t.canSkipBack10
3147
+ icon: /* @__PURE__ */ o(U, { type: Zt }),
3148
+ onClick: a,
3149
+ disabled: !e.canSkipBack10
3152
3150
  },
3153
3151
  {
3154
3152
  name: "Skip forward 30 seconds",
3155
- icon: /* @__PURE__ */ s(U, { type: Zt }),
3156
- onClick: a,
3157
- disabled: !t.canSkipForward30
3153
+ icon: /* @__PURE__ */ o(U, { type: er }),
3154
+ onClick: i,
3155
+ disabled: !e.canSkipForward30
3158
3156
  },
3159
3157
  {
3160
3158
  isSeparator: !0
3161
3159
  },
3162
3160
  {
3163
3161
  name: "Remove from play queue",
3164
- icon: /* @__PURE__ */ s(U, { type: yt }),
3162
+ icon: /* @__PURE__ */ o(U, { type: yt }),
3165
3163
  onClick: c,
3166
- disabled: !t.canRemoveFromPlayQueue
3164
+ disabled: !e.canRemoveFromPlayQueue
3167
3165
  }
3168
3166
  ]
3169
3167
  },
@@ -3171,11 +3169,11 @@ const Xi = I(
3171
3169
  id: 1,
3172
3170
  title: "Speed",
3173
3171
  items: [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2].map(
3174
- (S) => ({
3175
- name: S.toString(),
3176
- onClick: () => o(S),
3177
- icon: S === f ? "check" : "empty",
3178
- disabled: !t.controller.supports(
3172
+ (w) => ({
3173
+ name: w.toString(),
3174
+ onClick: () => s(w),
3175
+ icon: w === f ? "check" : "empty",
3176
+ disabled: !e.controller.supports(
3179
3177
  "setPlaybackRate"
3180
3178
  )
3181
3179
  })
@@ -3183,160 +3181,131 @@ const Xi = I(
3183
3181
  }
3184
3182
  ],
3185
3183
  [
3186
- t,
3187
- m,
3188
- i,
3184
+ e,
3185
+ y,
3189
3186
  a,
3187
+ i,
3190
3188
  c,
3191
- o,
3189
+ s,
3192
3190
  f
3193
3191
  ]
3194
3192
  );
3195
- return /* @__PURE__ */ s(pt, { initialPanelId: 0, panels: b });
3193
+ return /* @__PURE__ */ o(mt, { initialPanelId: 0, panels: P });
3196
3194
  }
3197
- ), Pa = re(
3195
+ ), bi = ne(
3198
3196
  ({
3199
- bottomBarStore: t,
3200
- button: e,
3201
- isOpen: r,
3202
- closePopover: i
3203
- }) => /* @__PURE__ */ s(
3204
- Oe,
3197
+ button: t,
3198
+ isOpen: e,
3199
+ closePopover: r
3200
+ }) => /* @__PURE__ */ o(
3201
+ ke,
3205
3202
  {
3206
- button: e,
3207
- isOpen: r,
3208
- closePopover: i,
3203
+ button: t,
3204
+ isOpen: e,
3205
+ closePopover: r,
3209
3206
  panelPaddingSize: "none",
3210
3207
  anchorPosition: "upRight",
3211
- children: /* @__PURE__ */ s(
3212
- ga,
3208
+ children: /* @__PURE__ */ o(gi, { closePopover: r })
3209
+ }
3210
+ )
3211
+ ), Pi = ne(() => {
3212
+ const [t, e] = $(!1);
3213
+ return /* @__PURE__ */ o(
3214
+ bi,
3215
+ {
3216
+ button: /* @__PURE__ */ o(
3217
+ Y,
3213
3218
  {
3214
- bottomBarStore: t,
3215
- closePopover: i
3219
+ title: "More options",
3220
+ "aria-label": "More options",
3221
+ iconType: Xt,
3222
+ size: "s",
3223
+ iconSize: "l",
3224
+ onClick: () => e(!t)
3216
3225
  }
3217
- )
3226
+ ),
3227
+ isOpen: t,
3228
+ closePopover: () => e(!1)
3218
3229
  }
3219
- )
3220
- ), ba = re(
3221
- ({ bottomBarStore: t }) => {
3222
- const [e, r] = $(!1);
3223
- return /* @__PURE__ */ s(
3224
- Pa,
3225
- {
3226
- bottomBarStore: t,
3227
- button: /* @__PURE__ */ s(
3228
- Y,
3229
- {
3230
- title: "More options",
3231
- "aria-label": "More options",
3232
- iconType: Kt,
3233
- size: "s",
3234
- iconSize: "l",
3235
- onClick: () => r(!e)
3236
- }
3237
- ),
3238
- isOpen: e,
3239
- closePopover: () => r(!1)
3240
- }
3241
- );
3242
- }
3243
- ), wa = re(
3244
- ({
3245
- bottomBarStore: t,
3246
- onClickPlayQueueButton: e
3247
- }) => /* @__PURE__ */ D(
3248
- oe,
3230
+ );
3231
+ }), Si = ne(
3232
+ ({ onClickPlayQueueButton: t }) => /* @__PURE__ */ D(
3233
+ le,
3249
3234
  {
3250
3235
  responsive: !1,
3251
3236
  gutterSize: "s",
3252
3237
  justifyContent: "flexEnd",
3253
3238
  alignItems: "center",
3254
3239
  children: [
3255
- /* @__PURE__ */ s(ma, { bottomBarStore: t }),
3256
- e && /* @__PURE__ */ s(
3257
- va,
3240
+ /* @__PURE__ */ o(yi, {}),
3241
+ t && /* @__PURE__ */ o(
3242
+ vi,
3258
3243
  {
3259
- onClickPlayQueueButton: e
3244
+ onClickPlayQueueButton: t
3260
3245
  }
3261
3246
  ),
3262
- /* @__PURE__ */ s(ba, { bottomBarStore: t })
3247
+ /* @__PURE__ */ o(Pi, {})
3263
3248
  ]
3264
3249
  }
3265
3250
  )
3266
- ), Sa = I(
3267
- ({ bottomBarStore: t }) => {
3268
- const e = le(), r = j(
3269
- (o) => {
3270
- const c = Number(o.currentTarget.value) / 100;
3271
- t.setPercent(c);
3272
- },
3273
- [t]
3274
- ), i = j(
3275
- (o) => {
3276
- o.button === 0 && t.setSeeking(!0);
3277
- },
3278
- [t]
3279
- ), a = j(
3280
- async (o) => {
3281
- if (o.button === 0) {
3282
- const c = Number(o.currentTarget.value) / 100;
3283
- t.setSeeking(!1);
3284
- const f = await e.getDuration();
3285
- f !== void 0 && await e.setCurrentTime(f * c);
3286
- }
3287
- },
3288
- [t, e]
3289
- );
3290
- return /* @__PURE__ */ s(
3291
- Bt,
3292
- {
3293
- min: 0,
3294
- max: 100,
3295
- step: 1e-7,
3296
- value: t.percent * 100,
3297
- onChange: r,
3298
- onMouseDown: i,
3299
- onMouseUp: a,
3300
- fullWidth: !0,
3301
- showRange: !0,
3302
- css: { blockSize: 32 },
3303
- disabled: !t.canSeek
3251
+ ), wi = I(() => {
3252
+ const t = z(), e = ce(), r = B(
3253
+ (s) => {
3254
+ const c = Number(s.currentTarget.value) / 100;
3255
+ t.setPercent(c);
3256
+ },
3257
+ [t]
3258
+ ), a = B(
3259
+ (s) => {
3260
+ s.button === 0 && t.setSeeking(!0);
3261
+ },
3262
+ [t]
3263
+ ), i = B(
3264
+ async (s) => {
3265
+ if (s.button === 0) {
3266
+ const c = Number(s.currentTarget.value) / 100;
3267
+ t.setSeeking(!1);
3268
+ const f = await e.getDuration();
3269
+ f !== void 0 && await e.setCurrentTime(f * c);
3304
3270
  }
3305
- );
3306
- }
3307
- ), $a = I(
3308
- ({ onClickPlayQueueButton: t }) => {
3309
- const e = pi();
3310
- return /* @__PURE__ */ s(yn, { paddingSize: "s", children: /* @__PURE__ */ D(oe, { direction: "column", gutterSize: "none", children: [
3311
- /* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(Sa, { bottomBarStore: e }) }),
3312
- /* @__PURE__ */ s(G, { children: /* @__PURE__ */ D(oe, { responsive: !1, children: [
3313
- /* @__PURE__ */ s(G, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ s(
3314
- pa,
3315
- {
3316
- bottomBarStore: e
3317
- }
3318
- ) }),
3319
- /* @__PURE__ */ s(G, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ s(
3320
- ua,
3321
- {
3322
- bottomBarStore: e
3323
- }
3324
- ) }),
3325
- /* @__PURE__ */ s(G, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ s(
3326
- wa,
3327
- {
3328
- bottomBarStore: e,
3329
- onClickPlayQueueButton: t
3330
- }
3331
- ) })
3332
- ] }) })
3333
- ] }) });
3334
- }
3335
- ), ft = {
3271
+ },
3272
+ [t, e]
3273
+ );
3274
+ return /* @__PURE__ */ o(
3275
+ Kt,
3276
+ {
3277
+ min: 0,
3278
+ max: 100,
3279
+ step: 1e-7,
3280
+ value: t.percent * 100,
3281
+ onChange: r,
3282
+ onMouseDown: a,
3283
+ onMouseUp: i,
3284
+ fullWidth: !0,
3285
+ showRange: !0,
3286
+ css: { blockSize: 32 },
3287
+ disabled: !t.canSeek
3288
+ }
3289
+ );
3290
+ }), $i = I(
3291
+ ({ onClickPlayQueueButton: t }) => /* @__PURE__ */ o(yn, { paddingSize: "s", children: /* @__PURE__ */ D(le, { direction: "column", gutterSize: "none", children: [
3292
+ /* @__PURE__ */ o(G, { children: /* @__PURE__ */ o(wi, {}) }),
3293
+ /* @__PURE__ */ o(G, { children: /* @__PURE__ */ D(le, { responsive: !1, children: [
3294
+ /* @__PURE__ */ o(G, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(pi, {}) }),
3295
+ /* @__PURE__ */ o(G, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(ui, {}) }),
3296
+ /* @__PURE__ */ o(G, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
3297
+ Si,
3298
+ {
3299
+ onClickPlayQueueButton: t
3300
+ }
3301
+ ) })
3302
+ ] }) })
3303
+ ] }) })
3304
+ ), pt = {
3336
3305
  width: 400,
3337
3306
  height: 225
3338
- }, ja = I(() => {
3339
- const t = mi(), e = Ye(
3307
+ }, Bi = I(() => {
3308
+ const t = ya(), e = Ye(
3340
3309
  () => ({
3341
3310
  onLoaded: t.onLoaded,
3342
3311
  onPlay: t.onPlay,
@@ -3346,21 +3315,21 @@ const Xi = I(
3346
3315
  }),
3347
3316
  [t]
3348
3317
  );
3349
- return /* @__PURE__ */ s(
3318
+ return /* @__PURE__ */ o(
3350
3319
  "div",
3351
3320
  {
3352
3321
  css: {
3353
3322
  position: "fixed",
3354
3323
  right: 0,
3355
- bottom: tr,
3356
- width: ft.width,
3357
- height: ft.height,
3324
+ bottom: rr,
3325
+ width: pt.width,
3326
+ height: pt.height,
3358
3327
  zIndex: 998,
3359
3328
  backgroundColor: "rgb(39, 39, 39)",
3360
3329
  display: "flex",
3361
3330
  flexDirection: "column"
3362
3331
  },
3363
- children: /* @__PURE__ */ s("div", { css: { flexGrow: 1, backgroundColor: "black" }, children: t.currentItem && /* @__PURE__ */ s(
3332
+ children: /* @__PURE__ */ o("div", { css: { flexGrow: 1, backgroundColor: "black" }, children: t.currentItem && /* @__PURE__ */ o(
3364
3333
  Gr,
3365
3334
  {
3366
3335
  src: t.currentItem.url,
@@ -3370,7 +3339,7 @@ const Xi = I(
3370
3339
  ) })
3371
3340
  }
3372
3341
  );
3373
- }), za = I(
3342
+ }), ji = I(
3374
3343
  ({ children: t }) => {
3375
3344
  const e = Ge();
3376
3345
  return /* @__PURE__ */ D(
@@ -3378,28 +3347,28 @@ const Xi = I(
3378
3347
  {
3379
3348
  panelled: !0,
3380
3349
  style: {
3381
- minBlockSize: `max(460px, 100vh - ${tr}px)`
3350
+ minBlockSize: `max(460px, 100vh - ${rr}px)`
3382
3351
  },
3383
3352
  children: [
3384
3353
  t,
3385
- !e.isEmpty && /* @__PURE__ */ s(Jt, { style: { blockSize: ft.height } })
3354
+ !e.isEmpty && /* @__PURE__ */ o(Jt, { style: { blockSize: pt.height } })
3386
3355
  ]
3387
3356
  }
3388
3357
  );
3389
3358
  }
3390
3359
  );
3391
3360
  export {
3392
- $a as BottomBar,
3393
- Da as HydrangeanDivaProvider,
3394
- za as MediaPlayerLayout,
3395
- ja as MiniPlayer,
3361
+ $i as BottomBar,
3362
+ Di as HydrangeanDivaProvider,
3363
+ ji as MediaPlayerLayout,
3364
+ Bi as MiniPlayer,
3396
3365
  We as MobXObservableStateProvider,
3397
- Ma as ObservableStateProvider,
3398
- Zi as PlayQueue,
3399
- Na as PlayQueuePage,
3400
- or as PlayQueueStoreContext,
3366
+ Mi as ObservableStateProvider,
3367
+ Za as PlayQueue,
3368
+ lr as PlayQueueContext,
3369
+ Ni as PlayQueuePage,
3401
3370
  O as RepeatMode,
3402
- tr as bottomBarHeight,
3403
- Ge as usePlayQueueStore
3371
+ rr as bottomBarHeight,
3372
+ Ge as usePlayQueue
3404
3373
  };
3405
3374
  //# sourceMappingURL=index.es.js.map