@aigamo/hydrangean-diva 0.0.1-alpha.21 → 0.0.1-alpha.23

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