@aigamo/hydrangean-diva 0.0.1-alpha.25 → 0.0.1-alpha.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/features/media-player.player/interfaces/IBottomBarStore.d.ts +2 -0
- package/dist/features/media-player.player/interfaces/IMiniPlayerStore.d.ts +1 -0
- package/dist/features/media-player.player/stores/BottomBarStore.d.ts +2 -2
- package/dist/features/media-player.player/stores/MiniPlayerStore.d.ts +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +123 -119
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeObservable as Nr, action as y, computed as
|
|
1
|
+
import { makeObservable as Nr, action as y, computed as P, observable as X, reaction as $r } from "mobx";
|
|
2
2
|
import * as te from "react";
|
|
3
3
|
import qt, { createContext as Vt, useContext as ct, forwardRef as jr, useState as z, useEffect as Ut, memo as re, useCallback as $, useMemo as Ve, useLayoutEffect as zr } from "react";
|
|
4
4
|
import Lr from "@emotion/cache";
|
|
@@ -29,10 +29,10 @@ function An() {
|
|
|
29
29
|
kt = 1;
|
|
30
30
|
var e = qt, t = /* @__PURE__ */ Symbol.for("react.element"), r = /* @__PURE__ */ Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
31
31
|
function c(f, p, v) {
|
|
32
|
-
var
|
|
32
|
+
var b, S = {}, L = null, N = null;
|
|
33
33
|
v !== void 0 && (L = "" + v), p.key !== void 0 && (L = "" + p.key), p.ref !== void 0 && (N = p.ref);
|
|
34
|
-
for (
|
|
35
|
-
if (f && f.defaultProps) for (
|
|
34
|
+
for (b in p) i.call(p, b) && !o.hasOwnProperty(b) && (S[b] = p[b]);
|
|
35
|
+
if (f && f.defaultProps) for (b in p = f.defaultProps, p) S[b] === void 0 && (S[b] = p[b]);
|
|
36
36
|
return { $$typeof: t, type: f, key: L, ref: N, props: S, _owner: a.current };
|
|
37
37
|
}
|
|
38
38
|
return Se.Fragment = r, Se.jsx = c, Se.jsxs = c, Se;
|
|
@@ -41,7 +41,7 @@ var Te = {};
|
|
|
41
41
|
var _t;
|
|
42
42
|
function Fn() {
|
|
43
43
|
return _t || (_t = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
44
|
-
var e = qt, 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"), v = /* @__PURE__ */ Symbol.for("react.suspense"),
|
|
44
|
+
var e = qt, 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"), v = /* @__PURE__ */ Symbol.for("react.suspense"), b = /* @__PURE__ */ Symbol.for("react.suspense_list"), S = /* @__PURE__ */ Symbol.for("react.memo"), L = /* @__PURE__ */ Symbol.for("react.lazy"), N = /* @__PURE__ */ Symbol.for("react.offscreen"), A = Symbol.iterator, W = "@@iterator";
|
|
45
45
|
function Z(n) {
|
|
46
46
|
if (n === null || typeof n != "object")
|
|
47
47
|
return null;
|
|
@@ -60,8 +60,8 @@ function Fn() {
|
|
|
60
60
|
{
|
|
61
61
|
var m = q.ReactDebugCurrentFrame, T = m.getStackAddendum();
|
|
62
62
|
T !== "" && (l += "%s", d = d.concat([T]));
|
|
63
|
-
var C = d.map(function(
|
|
64
|
-
return String(
|
|
63
|
+
var C = d.map(function(w) {
|
|
64
|
+
return String(w);
|
|
65
65
|
});
|
|
66
66
|
C.unshift("Warning: " + l), Function.prototype.apply.call(console[n], console, C);
|
|
67
67
|
}
|
|
@@ -69,7 +69,7 @@ function Fn() {
|
|
|
69
69
|
var k = !1, u = !1, V = !1, he = !1, Oe = !1, ke;
|
|
70
70
|
ke = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
71
71
|
function Ye(n) {
|
|
72
|
-
return !!(typeof n == "string" || typeof n == "function" || n === i || n === o || Oe || n === a || n === v || n ===
|
|
72
|
+
return !!(typeof n == "string" || typeof n == "function" || n === i || n === o || Oe || n === a || n === v || n === b || he || n === N || k || u || V || typeof n == "object" && n !== null && (n.$$typeof === L || n.$$typeof === S || n.$$typeof === c || n.$$typeof === f || n.$$typeof === p || // This needs to include all possible module reference object
|
|
73
73
|
// types supported by any Flight configuration anywhere since
|
|
74
74
|
// we don't know which Flight build this will end up being used
|
|
75
75
|
// with.
|
|
@@ -103,7 +103,7 @@ function Fn() {
|
|
|
103
103
|
return "StrictMode";
|
|
104
104
|
case v:
|
|
105
105
|
return "Suspense";
|
|
106
|
-
case
|
|
106
|
+
case b:
|
|
107
107
|
return "SuspenseList";
|
|
108
108
|
}
|
|
109
109
|
if (typeof n == "object")
|
|
@@ -120,9 +120,9 @@ function Fn() {
|
|
|
120
120
|
var m = n.displayName || null;
|
|
121
121
|
return m !== null ? m : B(n.type) || "Memo";
|
|
122
122
|
case L: {
|
|
123
|
-
var T = n, C = T._payload,
|
|
123
|
+
var T = n, C = T._payload, w = T._init;
|
|
124
124
|
try {
|
|
125
|
-
return B(
|
|
125
|
+
return B(w(C));
|
|
126
126
|
} catch {
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
@@ -227,27 +227,27 @@ function Fn() {
|
|
|
227
227
|
C = ve.current, ve.current = null, He();
|
|
228
228
|
try {
|
|
229
229
|
if (l) {
|
|
230
|
-
var
|
|
230
|
+
var w = function() {
|
|
231
231
|
throw Error();
|
|
232
232
|
};
|
|
233
|
-
if (Object.defineProperty(
|
|
233
|
+
if (Object.defineProperty(w.prototype, "props", {
|
|
234
234
|
set: function() {
|
|
235
235
|
throw Error();
|
|
236
236
|
}
|
|
237
237
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
238
|
try {
|
|
239
|
-
Reflect.construct(
|
|
239
|
+
Reflect.construct(w, []);
|
|
240
240
|
} catch (U) {
|
|
241
241
|
m = U;
|
|
242
242
|
}
|
|
243
|
-
Reflect.construct(n, [],
|
|
243
|
+
Reflect.construct(n, [], w);
|
|
244
244
|
} else {
|
|
245
245
|
try {
|
|
246
|
-
|
|
246
|
+
w.call();
|
|
247
247
|
} catch (U) {
|
|
248
248
|
m = U;
|
|
249
249
|
}
|
|
250
|
-
n.call(
|
|
250
|
+
n.call(w.prototype);
|
|
251
251
|
}
|
|
252
252
|
} else {
|
|
253
253
|
try {
|
|
@@ -299,7 +299,7 @@ function Fn() {
|
|
|
299
299
|
switch (n) {
|
|
300
300
|
case v:
|
|
301
301
|
return ce("Suspense");
|
|
302
|
-
case
|
|
302
|
+
case b:
|
|
303
303
|
return ce("SuspenseList");
|
|
304
304
|
}
|
|
305
305
|
if (typeof n == "object")
|
|
@@ -329,19 +329,19 @@ function Fn() {
|
|
|
329
329
|
function hr(n, l, d, m, T) {
|
|
330
330
|
{
|
|
331
331
|
var C = Function.call.bind(we);
|
|
332
|
-
for (var
|
|
333
|
-
if (C(n,
|
|
332
|
+
for (var w in n)
|
|
333
|
+
if (C(n, w)) {
|
|
334
334
|
var g = void 0;
|
|
335
335
|
try {
|
|
336
|
-
if (typeof n[
|
|
337
|
-
var j = Error((m || "React class") + ": " + d + " type `" +
|
|
336
|
+
if (typeof n[w] != "function") {
|
|
337
|
+
var j = Error((m || "React class") + ": " + d + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
338
|
throw j.name = "Invariant Violation", j;
|
|
339
339
|
}
|
|
340
|
-
g = n[
|
|
340
|
+
g = n[w](l, w, m, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
341
|
} catch (_) {
|
|
342
342
|
g = _;
|
|
343
343
|
}
|
|
344
|
-
g && !(g instanceof Error) && (je(T), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", m || "React class", d,
|
|
344
|
+
g && !(g instanceof Error) && (je(T), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", m || "React class", d, w, typeof g), je(null)), g instanceof Error && !(g.message in ht) && (ht[g.message] = !0, je(T), x("Failed %s type: %s", d, g.message), je(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
@@ -416,7 +416,7 @@ function Fn() {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
var Er = function(n, l, d, m, T, C,
|
|
419
|
+
var Er = function(n, l, d, m, T, C, w) {
|
|
420
420
|
var g = {
|
|
421
421
|
// This tag allows us to uniquely identify this as a React Element
|
|
422
422
|
$$typeof: t,
|
|
@@ -424,7 +424,7 @@ function Fn() {
|
|
|
424
424
|
type: n,
|
|
425
425
|
key: l,
|
|
426
426
|
ref: d,
|
|
427
|
-
props:
|
|
427
|
+
props: w,
|
|
428
428
|
// Record the component responsible for creating this element.
|
|
429
429
|
_owner: C
|
|
430
430
|
};
|
|
@@ -447,20 +447,20 @@ function Fn() {
|
|
|
447
447
|
};
|
|
448
448
|
function Rr(n, l, d, m, T) {
|
|
449
449
|
{
|
|
450
|
-
var C,
|
|
450
|
+
var C, w = {}, g = null, j = null;
|
|
451
451
|
d !== void 0 && (vt(d), g = "" + d), br(l) && (vt(l.key), g = "" + l.key), Pr(l) && (j = l.ref, wr(l, T));
|
|
452
452
|
for (C in l)
|
|
453
|
-
we.call(l, C) && !gr.hasOwnProperty(C) && (
|
|
453
|
+
we.call(l, C) && !gr.hasOwnProperty(C) && (w[C] = l[C]);
|
|
454
454
|
if (n && n.defaultProps) {
|
|
455
455
|
var _ = n.defaultProps;
|
|
456
456
|
for (C in _)
|
|
457
|
-
|
|
457
|
+
w[C] === void 0 && (w[C] = _[C]);
|
|
458
458
|
}
|
|
459
459
|
if (g || j) {
|
|
460
460
|
var M = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
461
|
-
g && Sr(
|
|
461
|
+
g && Sr(w, M), j && Tr(w, M);
|
|
462
462
|
}
|
|
463
|
-
return Er(n, g, j, T, m, gt.current,
|
|
463
|
+
return Er(n, g, j, T, m, gt.current, w);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
466
|
var Ke = q.ReactCurrentOwner, wt = q.ReactDebugCurrentFrame;
|
|
@@ -531,8 +531,8 @@ Check the top-level render call using <` + d + ">.");
|
|
|
531
531
|
else if (n) {
|
|
532
532
|
var T = Z(n);
|
|
533
533
|
if (typeof T == "function" && T !== n.entries)
|
|
534
|
-
for (var C = T.call(n),
|
|
535
|
-
Ze(
|
|
534
|
+
for (var C = T.call(n), w; !(w = C.next()).done; )
|
|
535
|
+
Ze(w.value) && Et(w.value, l);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
}
|
|
@@ -576,8 +576,8 @@ Check the top-level render call using <` + d + ">.");
|
|
|
576
576
|
var Ct = {};
|
|
577
577
|
function It(n, l, d, m, T, C) {
|
|
578
578
|
{
|
|
579
|
-
var
|
|
580
|
-
if (!
|
|
579
|
+
var w = Ye(n);
|
|
580
|
+
if (!w) {
|
|
581
581
|
var g = "";
|
|
582
582
|
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
583
583
|
var j = Cr();
|
|
@@ -588,7 +588,7 @@ Check the top-level render call using <` + d + ">.");
|
|
|
588
588
|
var M = Rr(n, l, d, T, C);
|
|
589
589
|
if (M == null)
|
|
590
590
|
return M;
|
|
591
|
-
if (
|
|
591
|
+
if (w) {
|
|
592
592
|
var H = l.children;
|
|
593
593
|
if (H !== void 0)
|
|
594
594
|
if (m)
|
|
@@ -637,7 +637,7 @@ var Ft;
|
|
|
637
637
|
function Dn() {
|
|
638
638
|
if (Ft) return E;
|
|
639
639
|
Ft = 1;
|
|
640
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, v = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111,
|
|
640
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, v = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, b = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, S = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, L = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, N = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, A = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, W = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, Z = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, q = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, x = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
641
641
|
function F(u) {
|
|
642
642
|
if (typeof u == "object" && u !== null) {
|
|
643
643
|
var V = u.$$typeof;
|
|
@@ -654,7 +654,7 @@ function Dn() {
|
|
|
654
654
|
default:
|
|
655
655
|
switch (u = u && u.$$typeof, u) {
|
|
656
656
|
case f:
|
|
657
|
-
case
|
|
657
|
+
case b:
|
|
658
658
|
case A:
|
|
659
659
|
case N:
|
|
660
660
|
case c:
|
|
@@ -671,7 +671,7 @@ function Dn() {
|
|
|
671
671
|
function k(u) {
|
|
672
672
|
return F(u) === v;
|
|
673
673
|
}
|
|
674
|
-
return E.AsyncMode = p, E.ConcurrentMode = v, E.ContextConsumer = f, E.ContextProvider = c, E.Element = t, E.ForwardRef =
|
|
674
|
+
return E.AsyncMode = p, E.ConcurrentMode = v, E.ContextConsumer = f, E.ContextProvider = c, E.Element = t, E.ForwardRef = b, E.Fragment = i, E.Lazy = A, E.Memo = N, E.Portal = r, E.Profiler = o, E.StrictMode = a, E.Suspense = S, E.isAsyncMode = function(u) {
|
|
675
675
|
return k(u) || F(u) === p;
|
|
676
676
|
}, E.isConcurrentMode = k, E.isContextConsumer = function(u) {
|
|
677
677
|
return F(u) === f;
|
|
@@ -680,7 +680,7 @@ function Dn() {
|
|
|
680
680
|
}, E.isElement = function(u) {
|
|
681
681
|
return typeof u == "object" && u !== null && u.$$typeof === t;
|
|
682
682
|
}, E.isForwardRef = function(u) {
|
|
683
|
-
return F(u) ===
|
|
683
|
+
return F(u) === b;
|
|
684
684
|
}, E.isFragment = function(u) {
|
|
685
685
|
return F(u) === i;
|
|
686
686
|
}, E.isLazy = function(u) {
|
|
@@ -696,17 +696,17 @@ function Dn() {
|
|
|
696
696
|
}, E.isSuspense = function(u) {
|
|
697
697
|
return F(u) === S;
|
|
698
698
|
}, E.isValidElementType = function(u) {
|
|
699
|
-
return typeof u == "string" || typeof u == "function" || u === i || u === v || u === o || u === a || u === S || u === L || typeof u == "object" && u !== null && (u.$$typeof === A || u.$$typeof === N || u.$$typeof === c || u.$$typeof === f || u.$$typeof ===
|
|
699
|
+
return typeof u == "string" || typeof u == "function" || u === i || u === v || u === o || u === a || u === S || u === L || typeof u == "object" && u !== null && (u.$$typeof === A || u.$$typeof === N || u.$$typeof === c || u.$$typeof === f || u.$$typeof === b || u.$$typeof === Z || u.$$typeof === q || u.$$typeof === x || u.$$typeof === W);
|
|
700
700
|
}, E.typeOf = F, E;
|
|
701
701
|
}
|
|
702
702
|
var R = {};
|
|
703
703
|
var Mt;
|
|
704
704
|
function Nn() {
|
|
705
705
|
return Mt || (Mt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
706
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, v = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111,
|
|
706
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, v = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, b = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, S = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, L = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, N = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, A = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, W = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, Z = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, q = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, x = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
707
707
|
function F(h) {
|
|
708
708
|
return typeof h == "string" || typeof h == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
709
|
-
h === i || h === v || h === o || h === a || h === S || h === L || typeof h == "object" && h !== null && (h.$$typeof === A || h.$$typeof === N || h.$$typeof === c || h.$$typeof === f || h.$$typeof ===
|
|
709
|
+
h === i || h === v || h === o || h === a || h === S || h === L || typeof h == "object" && h !== null && (h.$$typeof === A || h.$$typeof === N || h.$$typeof === c || h.$$typeof === f || h.$$typeof === b || h.$$typeof === Z || h.$$typeof === q || h.$$typeof === x || h.$$typeof === W);
|
|
710
710
|
}
|
|
711
711
|
function k(h) {
|
|
712
712
|
if (typeof h == "object" && h !== null) {
|
|
@@ -726,7 +726,7 @@ function Nn() {
|
|
|
726
726
|
var ie = de && de.$$typeof;
|
|
727
727
|
switch (ie) {
|
|
728
728
|
case f:
|
|
729
|
-
case
|
|
729
|
+
case b:
|
|
730
730
|
case A:
|
|
731
731
|
case N:
|
|
732
732
|
case c:
|
|
@@ -740,7 +740,7 @@ function Nn() {
|
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
|
-
var u = p, V = v, he = f, Oe = c, ke = t, Ye =
|
|
743
|
+
var u = p, V = v, he = f, Oe = c, ke = t, Ye = b, We = i, _e = A, B = N, ee = r, ne = o, Ae = a, Fe = S, ye = !1;
|
|
744
744
|
function Me(h) {
|
|
745
745
|
return ye || (ye = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), me(h) || k(h) === p;
|
|
746
746
|
}
|
|
@@ -757,7 +757,7 @@ function Nn() {
|
|
|
757
757
|
return typeof h == "object" && h !== null && h.$$typeof === t;
|
|
758
758
|
}
|
|
759
759
|
function He(h) {
|
|
760
|
-
return k(h) ===
|
|
760
|
+
return k(h) === b;
|
|
761
761
|
}
|
|
762
762
|
function Ge(h) {
|
|
763
763
|
return k(h) === i;
|
|
@@ -829,7 +829,7 @@ function jn() {
|
|
|
829
829
|
function c(A) {
|
|
830
830
|
return e.isMemo(A) ? a : o[A.$$typeof] || t;
|
|
831
831
|
}
|
|
832
|
-
var f = Object.defineProperty, p = Object.getOwnPropertyNames, v = Object.getOwnPropertySymbols,
|
|
832
|
+
var f = Object.defineProperty, p = Object.getOwnPropertyNames, v = Object.getOwnPropertySymbols, b = Object.getOwnPropertyDescriptor, S = Object.getPrototypeOf, L = Object.prototype;
|
|
833
833
|
function N(A, W, Z) {
|
|
834
834
|
if (typeof W != "string") {
|
|
835
835
|
if (L) {
|
|
@@ -841,7 +841,7 @@ function jn() {
|
|
|
841
841
|
for (var F = c(A), k = c(W), u = 0; u < x.length; ++u) {
|
|
842
842
|
var V = x[u];
|
|
843
843
|
if (!r[V] && !(Z && Z[V]) && !(k && k[V]) && !(F && F[V])) {
|
|
844
|
-
var he =
|
|
844
|
+
var he = b(W, V);
|
|
845
845
|
try {
|
|
846
846
|
f(A, V, he);
|
|
847
847
|
} catch {
|
|
@@ -1019,8 +1019,8 @@ function Ie(e, t, r) {
|
|
|
1019
1019
|
break;
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
|
-
var
|
|
1023
|
-
return
|
|
1022
|
+
var b = r;
|
|
1023
|
+
return b;
|
|
1024
1024
|
}
|
|
1025
1025
|
function Hn(e, t, r) {
|
|
1026
1026
|
var i = "";
|
|
@@ -1070,8 +1070,8 @@ function Gn(e, t, r) {
|
|
|
1070
1070
|
a += p[f];
|
|
1071
1071
|
}
|
|
1072
1072
|
zt.lastIndex = 0;
|
|
1073
|
-
for (var v = "",
|
|
1074
|
-
v += "-" +
|
|
1073
|
+
for (var v = "", b; (b = zt.exec(a)) !== null; )
|
|
1074
|
+
v += "-" + b[1];
|
|
1075
1075
|
var S = Vn(a) + v;
|
|
1076
1076
|
return {
|
|
1077
1077
|
name: S,
|
|
@@ -1217,7 +1217,7 @@ class pt {
|
|
|
1217
1217
|
let i = this.configuration.basePath + t.path;
|
|
1218
1218
|
t.query !== void 0 && Object.keys(t.query).length !== 0 && (i += "?" + this.configuration.queryParamsStringify(t.query));
|
|
1219
1219
|
const a = Object.assign({}, this.configuration.headers, t.headers);
|
|
1220
|
-
Object.keys(a).forEach((
|
|
1220
|
+
Object.keys(a).forEach((b) => a[b] === void 0 ? delete a[b] : {});
|
|
1221
1221
|
const o = typeof r == "function" ? r : async () => r, c = {
|
|
1222
1222
|
method: t.method,
|
|
1223
1223
|
headers: a,
|
|
@@ -2122,14 +2122,14 @@ class qe {
|
|
|
2122
2122
|
constructor(t, r, i) {
|
|
2123
2123
|
this.observableStateProvider = t, this.playQueueStore = r, this.dto = i, this.id = qe.nextId++, t.makeObservable(this, {
|
|
2124
2124
|
isSelected: X,
|
|
2125
|
-
isCurrent:
|
|
2126
|
-
index:
|
|
2127
|
-
isFirst:
|
|
2128
|
-
isLast:
|
|
2129
|
-
canMoveToTop:
|
|
2130
|
-
canMoveToBottom:
|
|
2131
|
-
canRemoveToTop:
|
|
2132
|
-
canRemoveOthers:
|
|
2125
|
+
isCurrent: P,
|
|
2126
|
+
index: P,
|
|
2127
|
+
isFirst: P,
|
|
2128
|
+
isLast: P,
|
|
2129
|
+
canMoveToTop: P,
|
|
2130
|
+
canMoveToBottom: P,
|
|
2131
|
+
canRemoveToTop: P,
|
|
2132
|
+
canRemoveOthers: P,
|
|
2133
2133
|
unselect: y,
|
|
2134
2134
|
toggleSelected: y.bound,
|
|
2135
2135
|
play: y,
|
|
@@ -2237,19 +2237,19 @@ class Li {
|
|
|
2237
2237
|
currentId: X,
|
|
2238
2238
|
repeat: X,
|
|
2239
2239
|
shuffle: X,
|
|
2240
|
-
localStorageState:
|
|
2241
|
-
isEmpty:
|
|
2242
|
-
currentItem:
|
|
2243
|
-
canPlay:
|
|
2244
|
-
canPause:
|
|
2245
|
-
hasMultipleItems:
|
|
2246
|
-
currentIndex:
|
|
2247
|
-
hasPreviousItem:
|
|
2248
|
-
hasNextItem:
|
|
2249
|
-
isLastItem:
|
|
2250
|
-
selectedItems:
|
|
2251
|
-
allItemsSelected:
|
|
2252
|
-
selectedItemsOrAllItems:
|
|
2240
|
+
localStorageState: P.struct,
|
|
2241
|
+
isEmpty: P,
|
|
2242
|
+
currentItem: P,
|
|
2243
|
+
canPlay: P,
|
|
2244
|
+
canPause: P,
|
|
2245
|
+
hasMultipleItems: P,
|
|
2246
|
+
currentIndex: P,
|
|
2247
|
+
hasPreviousItem: P,
|
|
2248
|
+
hasNextItem: P,
|
|
2249
|
+
isLastItem: P,
|
|
2250
|
+
selectedItems: P,
|
|
2251
|
+
allItemsSelected: P,
|
|
2252
|
+
selectedItemsOrAllItems: P,
|
|
2253
2253
|
setItems: y,
|
|
2254
2254
|
interact: y,
|
|
2255
2255
|
clear: y.bound,
|
|
@@ -2727,7 +2727,7 @@ const Ta = ({
|
|
|
2727
2727
|
iconType: Xt,
|
|
2728
2728
|
size: "s",
|
|
2729
2729
|
iconSize: "l",
|
|
2730
|
-
disabled: !e.
|
|
2730
|
+
disabled: !e.controller.supports("setMuted")
|
|
2731
2731
|
}
|
|
2732
2732
|
)
|
|
2733
2733
|
), ra = I(
|
|
@@ -2774,9 +2774,7 @@ const Ta = ({
|
|
|
2774
2774
|
value: a,
|
|
2775
2775
|
onChange: f,
|
|
2776
2776
|
css: { blockSize: 32 },
|
|
2777
|
-
disabled: !e.
|
|
2778
|
-
"setVolume"
|
|
2779
|
-
)
|
|
2777
|
+
disabled: !e.controller.supports("setVolume")
|
|
2780
2778
|
}
|
|
2781
2779
|
)
|
|
2782
2780
|
]
|
|
@@ -2801,9 +2799,7 @@ const Ta = ({
|
|
|
2801
2799
|
size: "s",
|
|
2802
2800
|
iconSize: "l",
|
|
2803
2801
|
onClick: () => r(!t),
|
|
2804
|
-
disabled: !e.
|
|
2805
|
-
"getVolume"
|
|
2806
|
-
)
|
|
2802
|
+
disabled: !e.controller.supports("getVolume")
|
|
2807
2803
|
}
|
|
2808
2804
|
),
|
|
2809
2805
|
isOpen: t,
|
|
@@ -2842,8 +2838,8 @@ const Ta = ({
|
|
|
2842
2838
|
e.currentItem
|
|
2843
2839
|
]), t();
|
|
2844
2840
|
}, [e, t]), [f, p] = z(), v = $(async () => {
|
|
2845
|
-
await e.
|
|
2846
|
-
}, [e]),
|
|
2841
|
+
await e.controller.getPlaybackRate().then((S) => p(S));
|
|
2842
|
+
}, [e]), b = Ve(
|
|
2847
2843
|
() => [
|
|
2848
2844
|
{
|
|
2849
2845
|
id: 0,
|
|
@@ -2853,7 +2849,7 @@ const Ta = ({
|
|
|
2853
2849
|
icon: /* @__PURE__ */ s(Q, { type: Tn }),
|
|
2854
2850
|
panel: 1,
|
|
2855
2851
|
onClick: v,
|
|
2856
|
-
disabled: !e.
|
|
2852
|
+
disabled: !e.controller.supports(
|
|
2857
2853
|
"getPlaybackRate"
|
|
2858
2854
|
)
|
|
2859
2855
|
},
|
|
@@ -2888,7 +2884,7 @@ const Ta = ({
|
|
|
2888
2884
|
name: S.toString(),
|
|
2889
2885
|
onClick: () => o(S),
|
|
2890
2886
|
icon: S === f ? "check" : "empty",
|
|
2891
|
-
disabled: !e.
|
|
2887
|
+
disabled: !e.controller.supports(
|
|
2892
2888
|
"setPlaybackRate"
|
|
2893
2889
|
)
|
|
2894
2890
|
})
|
|
@@ -2905,7 +2901,7 @@ const Ta = ({
|
|
|
2905
2901
|
f
|
|
2906
2902
|
]
|
|
2907
2903
|
);
|
|
2908
|
-
return /* @__PURE__ */ s(ut, { initialPanelId: 0, panels:
|
|
2904
|
+
return /* @__PURE__ */ s(ut, { initialPanelId: 0, panels: b });
|
|
2909
2905
|
}
|
|
2910
2906
|
), sa = re(
|
|
2911
2907
|
({
|
|
@@ -3158,20 +3154,21 @@ const pr = Vt(void 0), Oa = ({
|
|
|
3158
3154
|
return /* @__PURE__ */ s(pr.Provider, { value: t, children: e });
|
|
3159
3155
|
}, ka = () => ct(pr);
|
|
3160
3156
|
class _a {
|
|
3161
|
-
constructor(t, r, i
|
|
3162
|
-
this.playerStore = r, this.playQueueStore = i,
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3157
|
+
constructor(t, r, i) {
|
|
3158
|
+
this.playerStore = r, this.playQueueStore = i, t.makeObservable(this, {
|
|
3159
|
+
controller: P,
|
|
3160
|
+
playing: P,
|
|
3161
|
+
currentItem: P,
|
|
3162
|
+
repeat: P,
|
|
3163
|
+
shuffle: P,
|
|
3164
|
+
canToggleRepeat: P,
|
|
3165
|
+
canToggleShuffle: P,
|
|
3166
|
+
canPlay: P,
|
|
3167
|
+
canPause: P,
|
|
3168
|
+
canPrevious: P,
|
|
3169
|
+
canNext: P,
|
|
3170
|
+
canSkipBack10: P,
|
|
3171
|
+
canSkipForward30: P,
|
|
3175
3172
|
toggleRepeat: y.bound,
|
|
3176
3173
|
toggleShuffle: y.bound,
|
|
3177
3174
|
play: y.bound,
|
|
@@ -3182,6 +3179,9 @@ class _a {
|
|
|
3182
3179
|
skipForward30: y.bound
|
|
3183
3180
|
});
|
|
3184
3181
|
}
|
|
3182
|
+
get controller() {
|
|
3183
|
+
return this.playerStore.controller;
|
|
3184
|
+
}
|
|
3185
3185
|
get playing() {
|
|
3186
3186
|
return this.playerStore.playing;
|
|
3187
3187
|
}
|
|
@@ -3201,10 +3201,10 @@ class _a {
|
|
|
3201
3201
|
return !1;
|
|
3202
3202
|
}
|
|
3203
3203
|
get canPlay() {
|
|
3204
|
-
return this.playQueueStore.canPlay && this.
|
|
3204
|
+
return this.playQueueStore.canPlay && this.controller.supports("play");
|
|
3205
3205
|
}
|
|
3206
3206
|
get canPause() {
|
|
3207
|
-
return this.playQueueStore.canPause && this.
|
|
3207
|
+
return this.playQueueStore.canPause && this.controller.supports("pause");
|
|
3208
3208
|
}
|
|
3209
3209
|
get canPrevious() {
|
|
3210
3210
|
return !this.playQueueStore.isEmpty;
|
|
@@ -3213,10 +3213,10 @@ class _a {
|
|
|
3213
3213
|
return this.playQueueStore.hasNextItem;
|
|
3214
3214
|
}
|
|
3215
3215
|
get canSkipBack10() {
|
|
3216
|
-
return !this.playQueueStore.isEmpty && this.
|
|
3216
|
+
return !this.playQueueStore.isEmpty && this.controller.supports("setCurrentTime");
|
|
3217
3217
|
}
|
|
3218
3218
|
get canSkipForward30() {
|
|
3219
|
-
return !this.playQueueStore.isEmpty && this.
|
|
3219
|
+
return !this.playQueueStore.isEmpty && this.controller.supports("setCurrentTime");
|
|
3220
3220
|
}
|
|
3221
3221
|
toggleRepeat() {
|
|
3222
3222
|
this.playQueueStore.toggleRepeat();
|
|
@@ -3225,34 +3225,35 @@ class _a {
|
|
|
3225
3225
|
this.playQueueStore.toggleShuffle();
|
|
3226
3226
|
}
|
|
3227
3227
|
play() {
|
|
3228
|
-
return this.
|
|
3228
|
+
return this.controller.play();
|
|
3229
3229
|
}
|
|
3230
3230
|
pause() {
|
|
3231
|
-
return this.
|
|
3231
|
+
return this.controller.pause();
|
|
3232
3232
|
}
|
|
3233
3233
|
async previous() {
|
|
3234
3234
|
if (this.playQueueStore.hasPreviousItem) {
|
|
3235
|
-
const t = await this.
|
|
3236
|
-
t === void 0 || t < 5 ? await this.playQueueStore.previous() : await this.
|
|
3235
|
+
const t = await this.controller.getCurrentTime();
|
|
3236
|
+
t === void 0 || t < 5 ? await this.playQueueStore.previous() : await this.controller.setCurrentTime(0);
|
|
3237
3237
|
} else
|
|
3238
|
-
await this.
|
|
3238
|
+
await this.controller.setCurrentTime(0);
|
|
3239
3239
|
}
|
|
3240
3240
|
next() {
|
|
3241
3241
|
return this.playQueueStore.next();
|
|
3242
3242
|
}
|
|
3243
3243
|
async skipBack10() {
|
|
3244
|
-
const t = await this.
|
|
3245
|
-
t !== void 0 && await this.
|
|
3244
|
+
const t = await this.controller.getCurrentTime();
|
|
3245
|
+
t !== void 0 && await this.controller.setCurrentTime(t - 10);
|
|
3246
3246
|
}
|
|
3247
3247
|
async skipForward30() {
|
|
3248
|
-
const t = await this.
|
|
3249
|
-
t !== void 0 && await this.
|
|
3248
|
+
const t = await this.controller.getCurrentTime();
|
|
3249
|
+
t !== void 0 && await this.controller.setCurrentTime(t + 30);
|
|
3250
3250
|
}
|
|
3251
3251
|
}
|
|
3252
3252
|
class Aa {
|
|
3253
|
-
constructor(t, r, i
|
|
3254
|
-
this.playerStore = r, this.playQueueStore = i,
|
|
3255
|
-
|
|
3253
|
+
constructor(t, r, i) {
|
|
3254
|
+
this.playerStore = r, this.playQueueStore = i, t.makeObservable(this, {
|
|
3255
|
+
controller: P,
|
|
3256
|
+
currentItem: P,
|
|
3256
3257
|
onLoaded: y.bound,
|
|
3257
3258
|
onPlay: y.bound,
|
|
3258
3259
|
onPause: y.bound,
|
|
@@ -3261,11 +3262,14 @@ class Aa {
|
|
|
3261
3262
|
onControllerChange: y.bound
|
|
3262
3263
|
});
|
|
3263
3264
|
}
|
|
3265
|
+
get controller() {
|
|
3266
|
+
return this.playerStore.controller;
|
|
3267
|
+
}
|
|
3264
3268
|
get currentItem() {
|
|
3265
3269
|
return this.playQueueStore.currentItem;
|
|
3266
3270
|
}
|
|
3267
3271
|
async onLoaded() {
|
|
3268
|
-
this.playQueueStore.interacted && await this.
|
|
3272
|
+
this.playQueueStore.interacted && await this.controller.play();
|
|
3269
3273
|
}
|
|
3270
3274
|
onPlay() {
|
|
3271
3275
|
this.playerStore.onPlay();
|
|
@@ -3276,7 +3280,7 @@ class Aa {
|
|
|
3276
3280
|
async onEnded() {
|
|
3277
3281
|
switch (this.playQueueStore.repeat) {
|
|
3278
3282
|
case O.One:
|
|
3279
|
-
await this.
|
|
3283
|
+
await this.controller.setCurrentTime(0);
|
|
3280
3284
|
break;
|
|
3281
3285
|
case O.Off:
|
|
3282
3286
|
case O.All:
|
|
@@ -3286,7 +3290,7 @@ class Aa {
|
|
|
3286
3290
|
this.playerStore.onEnded();
|
|
3287
3291
|
break;
|
|
3288
3292
|
case O.All:
|
|
3289
|
-
this.playQueueStore.hasMultipleItems ? await this.playQueueStore.goToFirst() : await this.
|
|
3293
|
+
this.playQueueStore.hasMultipleItems ? await this.playQueueStore.goToFirst() : await this.controller.setCurrentTime(0);
|
|
3290
3294
|
break;
|
|
3291
3295
|
}
|
|
3292
3296
|
else
|