twist-aplayer 1.0.3 → 1.1.0
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/LICENSE.md +20 -20
- package/README.md +139 -115
- package/dist/index.css +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +14 -14
- package/dist/index.mjs +846 -787
- package/dist/twist-aplayer.umd.js +14 -14
- package/package.json +75 -75
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ee from "react";
|
|
2
|
-
import
|
|
3
|
-
var
|
|
2
|
+
import Se, { useMemo as G, useRef as F, useState as W, useEffect as D, useCallback as L } from "react";
|
|
3
|
+
var ge = { exports: {} }, oe = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.min.js
|
|
@@ -12,19 +12,19 @@ var be = { exports: {} }, ie = {};
|
|
|
12
12
|
*/
|
|
13
13
|
var er;
|
|
14
14
|
function Br() {
|
|
15
|
-
if (er) return
|
|
15
|
+
if (er) return oe;
|
|
16
16
|
er = 1;
|
|
17
|
-
var e =
|
|
18
|
-
function
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
for (
|
|
22
|
-
if (
|
|
23
|
-
return { $$typeof: t, type:
|
|
17
|
+
var e = Se, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function h(b, s, f) {
|
|
19
|
+
var g, p = {}, d = null, l = null;
|
|
20
|
+
f !== void 0 && (d = "" + f), s.key !== void 0 && (d = "" + s.key), s.ref !== void 0 && (l = s.ref);
|
|
21
|
+
for (g in s) a.call(s, g) && !c.hasOwnProperty(g) && (p[g] = s[g]);
|
|
22
|
+
if (b && b.defaultProps) for (g in s = b.defaultProps, s) p[g] === void 0 && (p[g] = s[g]);
|
|
23
|
+
return { $$typeof: t, type: b, key: d, ref: l, props: p, _owner: i.current };
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return oe.Fragment = n, oe.jsx = h, oe.jsxs = h, oe;
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var ue = {};
|
|
28
28
|
/**
|
|
29
29
|
* @license React
|
|
30
30
|
* react-jsx-runtime.development.js
|
|
@@ -37,54 +37,54 @@ var oe = {};
|
|
|
37
37
|
var rr;
|
|
38
38
|
function zr() {
|
|
39
39
|
return rr || (rr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
40
|
-
var e =
|
|
41
|
-
function
|
|
40
|
+
var e = Se, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), b = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), l = Symbol.for("react.offscreen"), _ = Symbol.iterator, o = "@@iterator";
|
|
41
|
+
function y(r) {
|
|
42
42
|
if (r === null || typeof r != "object")
|
|
43
43
|
return null;
|
|
44
|
-
var u =
|
|
44
|
+
var u = _ && r[_] || r[o];
|
|
45
45
|
return typeof u == "function" ? u : null;
|
|
46
46
|
}
|
|
47
|
-
var
|
|
48
|
-
function
|
|
47
|
+
var E = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
48
|
+
function j(r) {
|
|
49
49
|
{
|
|
50
|
-
for (var u = arguments.length, m = new Array(u > 1 ? u - 1 : 0),
|
|
51
|
-
m[
|
|
52
|
-
|
|
50
|
+
for (var u = arguments.length, m = new Array(u > 1 ? u - 1 : 0), x = 1; x < u; x++)
|
|
51
|
+
m[x - 1] = arguments[x];
|
|
52
|
+
T("error", r, m);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function T(r, u, m) {
|
|
56
56
|
{
|
|
57
|
-
var
|
|
58
|
-
|
|
59
|
-
var
|
|
60
|
-
return String(
|
|
57
|
+
var x = E.ReactDebugCurrentFrame, O = x.getStackAddendum();
|
|
58
|
+
O !== "" && (u += "%s", m = m.concat([O]));
|
|
59
|
+
var P = m.map(function(w) {
|
|
60
|
+
return String(w);
|
|
61
61
|
});
|
|
62
|
-
|
|
62
|
+
P.unshift("Warning: " + u), Function.prototype.apply.call(console[r], console, P);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
function
|
|
68
|
-
return !!(typeof r == "string" || typeof r == "function" || r === a || r ===
|
|
65
|
+
var A = !1, K = !1, re = !1, V = !1, Te = !1, te;
|
|
66
|
+
te = Symbol.for("react.module.reference");
|
|
67
|
+
function we(r) {
|
|
68
|
+
return !!(typeof r == "string" || typeof r == "function" || r === a || r === c || Te || r === i || r === f || r === g || V || r === l || A || K || re || typeof r == "object" && r !== null && (r.$$typeof === d || r.$$typeof === p || r.$$typeof === h || r.$$typeof === b || r.$$typeof === s || // This needs to include all possible module reference object
|
|
69
69
|
// types supported by any Flight configuration anywhere since
|
|
70
70
|
// we don't know which Flight build this will end up being used
|
|
71
71
|
// with.
|
|
72
|
-
r.$$typeof ===
|
|
72
|
+
r.$$typeof === te || r.getModuleId !== void 0));
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
var
|
|
76
|
-
if (
|
|
77
|
-
return
|
|
78
|
-
var
|
|
79
|
-
return
|
|
74
|
+
function ce(r, u, m) {
|
|
75
|
+
var x = r.displayName;
|
|
76
|
+
if (x)
|
|
77
|
+
return x;
|
|
78
|
+
var O = u.displayName || u.name || "";
|
|
79
|
+
return O !== "" ? m + "(" + O + ")" : m;
|
|
80
80
|
}
|
|
81
81
|
function fe(r) {
|
|
82
82
|
return r.displayName || "Context";
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function B(r) {
|
|
85
85
|
if (r == null)
|
|
86
86
|
return null;
|
|
87
|
-
if (typeof r.tag == "number" &&
|
|
87
|
+
if (typeof r.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
|
88
88
|
return r.displayName || r.name || null;
|
|
89
89
|
if (typeof r == "string")
|
|
90
90
|
return r;
|
|
@@ -93,32 +93,32 @@ function zr() {
|
|
|
93
93
|
return "Fragment";
|
|
94
94
|
case n:
|
|
95
95
|
return "Portal";
|
|
96
|
-
case
|
|
96
|
+
case c:
|
|
97
97
|
return "Profiler";
|
|
98
98
|
case i:
|
|
99
99
|
return "StrictMode";
|
|
100
|
-
case
|
|
100
|
+
case f:
|
|
101
101
|
return "Suspense";
|
|
102
|
-
case
|
|
102
|
+
case g:
|
|
103
103
|
return "SuspenseList";
|
|
104
104
|
}
|
|
105
105
|
if (typeof r == "object")
|
|
106
106
|
switch (r.$$typeof) {
|
|
107
|
-
case
|
|
107
|
+
case b:
|
|
108
108
|
var u = r;
|
|
109
109
|
return fe(u) + ".Consumer";
|
|
110
|
-
case
|
|
110
|
+
case h:
|
|
111
111
|
var m = r;
|
|
112
112
|
return fe(m._context) + ".Provider";
|
|
113
113
|
case s:
|
|
114
|
-
return
|
|
115
|
-
case
|
|
116
|
-
var
|
|
117
|
-
return
|
|
118
|
-
case
|
|
119
|
-
var
|
|
114
|
+
return ce(r, r.render, "ForwardRef");
|
|
115
|
+
case p:
|
|
116
|
+
var x = r.displayName || null;
|
|
117
|
+
return x !== null ? x : B(r.type) || "Memo";
|
|
118
|
+
case d: {
|
|
119
|
+
var O = r, P = O._payload, w = O._init;
|
|
120
120
|
try {
|
|
121
|
-
return
|
|
121
|
+
return B(w(P));
|
|
122
122
|
} catch {
|
|
123
123
|
return null;
|
|
124
124
|
}
|
|
@@ -126,18 +126,18 @@ function zr() {
|
|
|
126
126
|
}
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
129
|
-
var
|
|
130
|
-
function
|
|
129
|
+
var I = Object.assign, z = 0, de, J, ne, ae, ie, R, ve;
|
|
130
|
+
function De() {
|
|
131
131
|
}
|
|
132
|
-
|
|
132
|
+
De.__reactDisabledLog = !0;
|
|
133
133
|
function pr() {
|
|
134
134
|
{
|
|
135
|
-
if (
|
|
136
|
-
|
|
135
|
+
if (z === 0) {
|
|
136
|
+
de = console.log, J = console.info, ne = console.warn, ae = console.error, ie = console.group, R = console.groupCollapsed, ve = console.groupEnd;
|
|
137
137
|
var r = {
|
|
138
138
|
configurable: !0,
|
|
139
139
|
enumerable: !0,
|
|
140
|
-
value:
|
|
140
|
+
value: De,
|
|
141
141
|
writable: !0
|
|
142
142
|
};
|
|
143
143
|
Object.defineProperties(console, {
|
|
@@ -150,133 +150,133 @@ function zr() {
|
|
|
150
150
|
groupEnd: r
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
z++;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
function br() {
|
|
157
157
|
{
|
|
158
|
-
if (
|
|
158
|
+
if (z--, z === 0) {
|
|
159
159
|
var r = {
|
|
160
160
|
configurable: !0,
|
|
161
161
|
enumerable: !0,
|
|
162
162
|
writable: !0
|
|
163
163
|
};
|
|
164
164
|
Object.defineProperties(console, {
|
|
165
|
-
log:
|
|
166
|
-
value:
|
|
165
|
+
log: I({}, r, {
|
|
166
|
+
value: de
|
|
167
167
|
}),
|
|
168
|
-
info:
|
|
169
|
-
value:
|
|
168
|
+
info: I({}, r, {
|
|
169
|
+
value: J
|
|
170
170
|
}),
|
|
171
|
-
warn:
|
|
171
|
+
warn: I({}, r, {
|
|
172
172
|
value: ne
|
|
173
173
|
}),
|
|
174
|
-
error:
|
|
174
|
+
error: I({}, r, {
|
|
175
175
|
value: ae
|
|
176
176
|
}),
|
|
177
|
-
group:
|
|
178
|
-
value:
|
|
177
|
+
group: I({}, r, {
|
|
178
|
+
value: ie
|
|
179
179
|
}),
|
|
180
|
-
groupCollapsed:
|
|
181
|
-
value:
|
|
180
|
+
groupCollapsed: I({}, r, {
|
|
181
|
+
value: R
|
|
182
182
|
}),
|
|
183
|
-
groupEnd:
|
|
184
|
-
value:
|
|
183
|
+
groupEnd: I({}, r, {
|
|
184
|
+
value: ve
|
|
185
185
|
})
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
|
|
188
|
+
z < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
var
|
|
192
|
-
function
|
|
191
|
+
var je = E.ReactCurrentDispatcher, Oe;
|
|
192
|
+
function me(r, u, m) {
|
|
193
193
|
{
|
|
194
|
-
if (
|
|
194
|
+
if (Oe === void 0)
|
|
195
195
|
try {
|
|
196
196
|
throw Error();
|
|
197
|
-
} catch (
|
|
198
|
-
var
|
|
199
|
-
|
|
197
|
+
} catch (O) {
|
|
198
|
+
var x = O.stack.trim().match(/\n( *(at )?)/);
|
|
199
|
+
Oe = x && x[1] || "";
|
|
200
200
|
}
|
|
201
201
|
return `
|
|
202
|
-
` +
|
|
202
|
+
` + Oe + r;
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
var
|
|
205
|
+
var Re = !1, he;
|
|
206
206
|
{
|
|
207
207
|
var gr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
208
|
-
|
|
208
|
+
he = new gr();
|
|
209
209
|
}
|
|
210
210
|
function Ve(r, u) {
|
|
211
|
-
if (!r ||
|
|
211
|
+
if (!r || Re)
|
|
212
212
|
return "";
|
|
213
213
|
{
|
|
214
|
-
var m =
|
|
214
|
+
var m = he.get(r);
|
|
215
215
|
if (m !== void 0)
|
|
216
216
|
return m;
|
|
217
217
|
}
|
|
218
|
-
var
|
|
219
|
-
|
|
220
|
-
var
|
|
218
|
+
var x;
|
|
219
|
+
Re = !0;
|
|
220
|
+
var O = Error.prepareStackTrace;
|
|
221
221
|
Error.prepareStackTrace = void 0;
|
|
222
|
-
var
|
|
223
|
-
|
|
222
|
+
var P;
|
|
223
|
+
P = je.current, je.current = null, pr();
|
|
224
224
|
try {
|
|
225
225
|
if (u) {
|
|
226
|
-
var
|
|
226
|
+
var w = function() {
|
|
227
227
|
throw Error();
|
|
228
228
|
};
|
|
229
|
-
if (Object.defineProperty(
|
|
229
|
+
if (Object.defineProperty(w.prototype, "props", {
|
|
230
230
|
set: function() {
|
|
231
231
|
throw Error();
|
|
232
232
|
}
|
|
233
233
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
234
234
|
try {
|
|
235
|
-
Reflect.construct(
|
|
236
|
-
} catch (
|
|
237
|
-
|
|
235
|
+
Reflect.construct(w, []);
|
|
236
|
+
} catch (H) {
|
|
237
|
+
x = H;
|
|
238
238
|
}
|
|
239
|
-
Reflect.construct(r, [],
|
|
239
|
+
Reflect.construct(r, [], w);
|
|
240
240
|
} else {
|
|
241
241
|
try {
|
|
242
|
-
|
|
243
|
-
} catch (
|
|
244
|
-
|
|
242
|
+
w.call();
|
|
243
|
+
} catch (H) {
|
|
244
|
+
x = H;
|
|
245
245
|
}
|
|
246
|
-
r.call(
|
|
246
|
+
r.call(w.prototype);
|
|
247
247
|
}
|
|
248
248
|
} else {
|
|
249
249
|
try {
|
|
250
250
|
throw Error();
|
|
251
|
-
} catch (
|
|
252
|
-
|
|
251
|
+
} catch (H) {
|
|
252
|
+
x = H;
|
|
253
253
|
}
|
|
254
254
|
r();
|
|
255
255
|
}
|
|
256
|
-
} catch (
|
|
257
|
-
if (
|
|
258
|
-
for (var
|
|
259
|
-
`), M =
|
|
260
|
-
`),
|
|
261
|
-
|
|
262
|
-
for (;
|
|
263
|
-
if (
|
|
264
|
-
if (
|
|
256
|
+
} catch (H) {
|
|
257
|
+
if (H && x && typeof H.stack == "string") {
|
|
258
|
+
for (var S = H.stack.split(`
|
|
259
|
+
`), M = x.stack.split(`
|
|
260
|
+
`), C = S.length - 1, N = M.length - 1; C >= 1 && N >= 0 && S[C] !== M[N]; )
|
|
261
|
+
N--;
|
|
262
|
+
for (; C >= 1 && N >= 0; C--, N--)
|
|
263
|
+
if (S[C] !== M[N]) {
|
|
264
|
+
if (C !== 1 || N !== 1)
|
|
265
265
|
do
|
|
266
|
-
if (
|
|
267
|
-
var
|
|
268
|
-
` +
|
|
269
|
-
return r.displayName &&
|
|
266
|
+
if (C--, N--, N < 0 || S[C] !== M[N]) {
|
|
267
|
+
var k = `
|
|
268
|
+
` + S[C].replace(" at new ", " at ");
|
|
269
|
+
return r.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", r.displayName)), typeof r == "function" && he.set(r, k), k;
|
|
270
270
|
}
|
|
271
|
-
while (
|
|
271
|
+
while (C >= 1 && N >= 0);
|
|
272
272
|
break;
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
} finally {
|
|
276
|
-
|
|
276
|
+
Re = !1, je.current = P, br(), Error.prepareStackTrace = O;
|
|
277
277
|
}
|
|
278
|
-
var Q = r ? r.displayName || r.name : "", Ze = Q ?
|
|
279
|
-
return typeof r == "function" &&
|
|
278
|
+
var Q = r ? r.displayName || r.name : "", Ze = Q ? me(Q) : "";
|
|
279
|
+
return typeof r == "function" && he.set(r, Ze), Ze;
|
|
280
280
|
}
|
|
281
281
|
function Er(r, u, m) {
|
|
282
282
|
return Ve(r, !1);
|
|
@@ -285,73 +285,73 @@ function zr() {
|
|
|
285
285
|
var u = r.prototype;
|
|
286
286
|
return !!(u && u.isReactComponent);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function ye(r, u, m) {
|
|
289
289
|
if (r == null)
|
|
290
290
|
return "";
|
|
291
291
|
if (typeof r == "function")
|
|
292
292
|
return Ve(r, xr(r));
|
|
293
293
|
if (typeof r == "string")
|
|
294
|
-
return
|
|
294
|
+
return me(r);
|
|
295
295
|
switch (r) {
|
|
296
|
-
case
|
|
297
|
-
return
|
|
298
|
-
case
|
|
299
|
-
return
|
|
296
|
+
case f:
|
|
297
|
+
return me("Suspense");
|
|
298
|
+
case g:
|
|
299
|
+
return me("SuspenseList");
|
|
300
300
|
}
|
|
301
301
|
if (typeof r == "object")
|
|
302
302
|
switch (r.$$typeof) {
|
|
303
303
|
case s:
|
|
304
304
|
return Er(r.render);
|
|
305
|
-
case
|
|
306
|
-
return
|
|
307
|
-
case
|
|
308
|
-
var
|
|
305
|
+
case p:
|
|
306
|
+
return ye(r.type, u, m);
|
|
307
|
+
case d: {
|
|
308
|
+
var x = r, O = x._payload, P = x._init;
|
|
309
309
|
try {
|
|
310
|
-
return
|
|
310
|
+
return ye(P(O), u, m);
|
|
311
311
|
} catch {
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
return "";
|
|
316
316
|
}
|
|
317
|
-
var
|
|
318
|
-
function
|
|
317
|
+
var pe = Object.prototype.hasOwnProperty, Ie = {}, Fe = E.ReactDebugCurrentFrame;
|
|
318
|
+
function be(r) {
|
|
319
319
|
if (r) {
|
|
320
|
-
var u = r._owner, m =
|
|
320
|
+
var u = r._owner, m = ye(r.type, r._source, u ? u.type : null);
|
|
321
321
|
Fe.setExtraStackFrame(m);
|
|
322
322
|
} else
|
|
323
323
|
Fe.setExtraStackFrame(null);
|
|
324
324
|
}
|
|
325
|
-
function _r(r, u, m,
|
|
325
|
+
function _r(r, u, m, x, O) {
|
|
326
326
|
{
|
|
327
|
-
var
|
|
328
|
-
for (var
|
|
329
|
-
if (
|
|
330
|
-
var
|
|
327
|
+
var P = Function.call.bind(pe);
|
|
328
|
+
for (var w in r)
|
|
329
|
+
if (P(r, w)) {
|
|
330
|
+
var S = void 0;
|
|
331
331
|
try {
|
|
332
|
-
if (typeof r[
|
|
333
|
-
var M = Error((
|
|
332
|
+
if (typeof r[w] != "function") {
|
|
333
|
+
var M = Error((x || "React class") + ": " + m + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
334
334
|
throw M.name = "Invariant Violation", M;
|
|
335
335
|
}
|
|
336
|
-
|
|
337
|
-
} catch (
|
|
338
|
-
|
|
336
|
+
S = r[w](u, w, x, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
337
|
+
} catch (C) {
|
|
338
|
+
S = C;
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
S && !(S instanceof Error) && (be(O), j("%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).", x || "React class", m, w, typeof S), be(null)), S instanceof Error && !(S.message in Ie) && (Ie[S.message] = !0, be(O), j("Failed %s type: %s", m, S.message), be(null));
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
var Sr = Array.isArray;
|
|
345
|
-
function
|
|
345
|
+
function Pe(r) {
|
|
346
346
|
return Sr(r);
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Tr(r) {
|
|
349
349
|
{
|
|
350
350
|
var u = typeof Symbol == "function" && Symbol.toStringTag, m = u && r[Symbol.toStringTag] || r.constructor.name || "Object";
|
|
351
351
|
return m;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function wr(r) {
|
|
355
355
|
try {
|
|
356
356
|
return Be(r), !1;
|
|
357
357
|
} catch {
|
|
@@ -362,17 +362,17 @@ function zr() {
|
|
|
362
362
|
return "" + r;
|
|
363
363
|
}
|
|
364
364
|
function ze(r) {
|
|
365
|
-
if (
|
|
366
|
-
return
|
|
365
|
+
if (wr(r))
|
|
366
|
+
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Tr(r)), Be(r);
|
|
367
367
|
}
|
|
368
|
-
var He =
|
|
368
|
+
var He = E.ReactCurrentOwner, jr = {
|
|
369
369
|
key: !0,
|
|
370
370
|
ref: !0,
|
|
371
371
|
__self: !0,
|
|
372
372
|
__source: !0
|
|
373
373
|
}, We, Ue;
|
|
374
374
|
function Or(r) {
|
|
375
|
-
if (
|
|
375
|
+
if (pe.call(r, "ref")) {
|
|
376
376
|
var u = Object.getOwnPropertyDescriptor(r, "ref").get;
|
|
377
377
|
if (u && u.isReactWarning)
|
|
378
378
|
return !1;
|
|
@@ -380,20 +380,20 @@ function zr() {
|
|
|
380
380
|
return r.ref !== void 0;
|
|
381
381
|
}
|
|
382
382
|
function Rr(r) {
|
|
383
|
-
if (
|
|
383
|
+
if (pe.call(r, "key")) {
|
|
384
384
|
var u = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
385
385
|
if (u && u.isReactWarning)
|
|
386
386
|
return !1;
|
|
387
387
|
}
|
|
388
388
|
return r.key !== void 0;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function Pr(r, u) {
|
|
391
391
|
typeof r.ref == "string" && He.current;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function Lr(r, u) {
|
|
394
394
|
{
|
|
395
395
|
var m = function() {
|
|
396
|
-
We || (We = !0,
|
|
396
|
+
We || (We = !0, j("%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)", u));
|
|
397
397
|
};
|
|
398
398
|
m.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
399
399
|
get: m,
|
|
@@ -404,7 +404,7 @@ function zr() {
|
|
|
404
404
|
function $r(r, u) {
|
|
405
405
|
{
|
|
406
406
|
var m = function() {
|
|
407
|
-
Ue || (Ue = !0,
|
|
407
|
+
Ue || (Ue = !0, j("%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)", u));
|
|
408
408
|
};
|
|
409
409
|
m.isReactWarning = !0, Object.defineProperty(r, "ref", {
|
|
410
410
|
get: m,
|
|
@@ -412,70 +412,70 @@ function zr() {
|
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
var Cr = function(r, u, m,
|
|
416
|
-
var
|
|
415
|
+
var Cr = function(r, u, m, x, O, P, w) {
|
|
416
|
+
var S = {
|
|
417
417
|
// This tag allows us to uniquely identify this as a React Element
|
|
418
418
|
$$typeof: t,
|
|
419
419
|
// Built-in properties that belong on the element
|
|
420
420
|
type: r,
|
|
421
421
|
key: u,
|
|
422
422
|
ref: m,
|
|
423
|
-
props:
|
|
423
|
+
props: w,
|
|
424
424
|
// Record the component responsible for creating this element.
|
|
425
|
-
_owner:
|
|
425
|
+
_owner: P
|
|
426
426
|
};
|
|
427
|
-
return
|
|
427
|
+
return S._store = {}, Object.defineProperty(S._store, "validated", {
|
|
428
428
|
configurable: !1,
|
|
429
429
|
enumerable: !1,
|
|
430
430
|
writable: !0,
|
|
431
431
|
value: !1
|
|
432
|
-
}), Object.defineProperty(
|
|
432
|
+
}), Object.defineProperty(S, "_self", {
|
|
433
433
|
configurable: !1,
|
|
434
434
|
enumerable: !1,
|
|
435
435
|
writable: !1,
|
|
436
|
-
value:
|
|
437
|
-
}), Object.defineProperty(
|
|
436
|
+
value: x
|
|
437
|
+
}), Object.defineProperty(S, "_source", {
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !1,
|
|
441
|
-
value:
|
|
442
|
-
}), Object.freeze && (Object.freeze(
|
|
441
|
+
value: O
|
|
442
|
+
}), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
|
|
443
443
|
};
|
|
444
|
-
function Ar(r, u, m,
|
|
444
|
+
function Ar(r, u, m, x, O) {
|
|
445
445
|
{
|
|
446
|
-
var
|
|
447
|
-
m !== void 0 && (ze(m),
|
|
448
|
-
for (
|
|
449
|
-
|
|
446
|
+
var P, w = {}, S = null, M = null;
|
|
447
|
+
m !== void 0 && (ze(m), S = "" + m), Rr(u) && (ze(u.key), S = "" + u.key), Or(u) && (M = u.ref, Pr(u, O));
|
|
448
|
+
for (P in u)
|
|
449
|
+
pe.call(u, P) && !jr.hasOwnProperty(P) && (w[P] = u[P]);
|
|
450
450
|
if (r && r.defaultProps) {
|
|
451
|
-
var
|
|
452
|
-
for (
|
|
453
|
-
|
|
451
|
+
var C = r.defaultProps;
|
|
452
|
+
for (P in C)
|
|
453
|
+
w[P] === void 0 && (w[P] = C[P]);
|
|
454
454
|
}
|
|
455
|
-
if (
|
|
456
|
-
var
|
|
457
|
-
|
|
455
|
+
if (S || M) {
|
|
456
|
+
var N = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
457
|
+
S && Lr(w, N), M && $r(w, N);
|
|
458
458
|
}
|
|
459
|
-
return Cr(r,
|
|
459
|
+
return Cr(r, S, M, O, x, He.current, w);
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
var Le =
|
|
462
|
+
var Le = E.ReactCurrentOwner, Ye = E.ReactDebugCurrentFrame;
|
|
463
463
|
function X(r) {
|
|
464
464
|
if (r) {
|
|
465
|
-
var u = r._owner, m =
|
|
465
|
+
var u = r._owner, m = ye(r.type, r._source, u ? u.type : null);
|
|
466
466
|
Ye.setExtraStackFrame(m);
|
|
467
467
|
} else
|
|
468
468
|
Ye.setExtraStackFrame(null);
|
|
469
469
|
}
|
|
470
|
-
var
|
|
471
|
-
|
|
472
|
-
function
|
|
470
|
+
var $e;
|
|
471
|
+
$e = !1;
|
|
472
|
+
function Ce(r) {
|
|
473
473
|
return typeof r == "object" && r !== null && r.$$typeof === t;
|
|
474
474
|
}
|
|
475
475
|
function Ge() {
|
|
476
476
|
{
|
|
477
477
|
if (Le.current) {
|
|
478
|
-
var r =
|
|
478
|
+
var r = B(Le.current.type);
|
|
479
479
|
if (r)
|
|
480
480
|
return `
|
|
481
481
|
|
|
@@ -509,26 +509,26 @@ Check the top-level render call using <` + m + ">.");
|
|
|
509
509
|
if (Ke[m])
|
|
510
510
|
return;
|
|
511
511
|
Ke[m] = !0;
|
|
512
|
-
var
|
|
513
|
-
r && r._owner && r._owner !== Le.current && (
|
|
512
|
+
var x = "";
|
|
513
|
+
r && r._owner && r._owner !== Le.current && (x = " It was passed a child from " + B(r._owner.type) + "."), X(r), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, x), X(null);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
function Xe(r, u) {
|
|
517
517
|
{
|
|
518
518
|
if (typeof r != "object")
|
|
519
519
|
return;
|
|
520
|
-
if (
|
|
520
|
+
if (Pe(r))
|
|
521
521
|
for (var m = 0; m < r.length; m++) {
|
|
522
|
-
var
|
|
523
|
-
|
|
522
|
+
var x = r[m];
|
|
523
|
+
Ce(x) && Je(x, u);
|
|
524
524
|
}
|
|
525
|
-
else if (
|
|
525
|
+
else if (Ce(r))
|
|
526
526
|
r._store && (r._store.validated = !0);
|
|
527
527
|
else if (r) {
|
|
528
|
-
var
|
|
529
|
-
if (typeof
|
|
530
|
-
for (var
|
|
531
|
-
|
|
528
|
+
var O = y(r);
|
|
529
|
+
if (typeof O == "function" && O !== r.entries)
|
|
530
|
+
for (var P = O.call(r), w; !(w = P.next()).done; )
|
|
531
|
+
Ce(w.value) && Je(w.value, u);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
}
|
|
@@ -542,78 +542,78 @@ Check the top-level render call using <` + m + ">.");
|
|
|
542
542
|
m = u.propTypes;
|
|
543
543
|
else if (typeof u == "object" && (u.$$typeof === s || // Note: Memo only checks outer props here.
|
|
544
544
|
// Inner props are checked in the reconciler.
|
|
545
|
-
u.$$typeof ===
|
|
545
|
+
u.$$typeof === p))
|
|
546
546
|
m = u.propTypes;
|
|
547
547
|
else
|
|
548
548
|
return;
|
|
549
549
|
if (m) {
|
|
550
|
-
var
|
|
551
|
-
_r(m, r.props, "prop",
|
|
552
|
-
} else if (u.PropTypes !== void 0 &&
|
|
553
|
-
|
|
554
|
-
var
|
|
555
|
-
|
|
550
|
+
var x = B(u);
|
|
551
|
+
_r(m, r.props, "prop", x, r);
|
|
552
|
+
} else if (u.PropTypes !== void 0 && !$e) {
|
|
553
|
+
$e = !0;
|
|
554
|
+
var O = B(u);
|
|
555
|
+
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
|
|
556
556
|
}
|
|
557
|
-
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved &&
|
|
557
|
+
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function kr(r) {
|
|
561
561
|
{
|
|
562
562
|
for (var u = Object.keys(r.props), m = 0; m < u.length; m++) {
|
|
563
|
-
var
|
|
564
|
-
if (
|
|
565
|
-
X(r),
|
|
563
|
+
var x = u[m];
|
|
564
|
+
if (x !== "children" && x !== "key") {
|
|
565
|
+
X(r), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), X(null);
|
|
566
566
|
break;
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
r.ref !== null && (X(r),
|
|
569
|
+
r.ref !== null && (X(r), j("Invalid attribute `ref` supplied to `React.Fragment`."), X(null));
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
function Qe(r, u, m,
|
|
572
|
+
function Qe(r, u, m, x, O, P) {
|
|
573
573
|
{
|
|
574
|
-
var
|
|
575
|
-
if (!
|
|
576
|
-
var
|
|
577
|
-
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (
|
|
574
|
+
var w = we(r);
|
|
575
|
+
if (!w) {
|
|
576
|
+
var S = "";
|
|
577
|
+
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (S += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
578
|
var M = Nr();
|
|
579
|
-
M ?
|
|
580
|
-
var
|
|
581
|
-
r === null ?
|
|
579
|
+
M ? S += M : S += Ge();
|
|
580
|
+
var C;
|
|
581
|
+
r === null ? C = "null" : Pe(r) ? C = "array" : r !== void 0 && r.$$typeof === t ? (C = "<" + (B(r.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : C = typeof r, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C, S);
|
|
582
582
|
}
|
|
583
|
-
var
|
|
584
|
-
if (
|
|
585
|
-
return
|
|
586
|
-
if (
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
589
|
-
if (
|
|
590
|
-
if (
|
|
591
|
-
for (var Q = 0; Q <
|
|
592
|
-
Xe(
|
|
593
|
-
Object.freeze && Object.freeze(
|
|
583
|
+
var N = Ar(r, u, m, O, P);
|
|
584
|
+
if (N == null)
|
|
585
|
+
return N;
|
|
586
|
+
if (w) {
|
|
587
|
+
var k = u.children;
|
|
588
|
+
if (k !== void 0)
|
|
589
|
+
if (x)
|
|
590
|
+
if (Pe(k)) {
|
|
591
|
+
for (var Q = 0; Q < k.length; Q++)
|
|
592
|
+
Xe(k[Q], r);
|
|
593
|
+
Object.freeze && Object.freeze(k);
|
|
594
594
|
} else
|
|
595
|
-
|
|
595
|
+
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
596
|
else
|
|
597
|
-
Xe(
|
|
597
|
+
Xe(k, r);
|
|
598
598
|
}
|
|
599
|
-
return r === a ?
|
|
599
|
+
return r === a ? kr(N) : Mr(N), N;
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function Dr(r, u, m) {
|
|
603
603
|
return Qe(r, u, m, !0);
|
|
604
604
|
}
|
|
605
605
|
function Vr(r, u, m) {
|
|
606
606
|
return Qe(r, u, m, !1);
|
|
607
607
|
}
|
|
608
|
-
var Ir = Vr, Fr =
|
|
609
|
-
|
|
610
|
-
}()),
|
|
608
|
+
var Ir = Vr, Fr = Dr;
|
|
609
|
+
ue.Fragment = a, ue.jsx = Ir, ue.jsxs = Fr;
|
|
610
|
+
}()), ue;
|
|
611
611
|
}
|
|
612
612
|
var tr;
|
|
613
613
|
function Hr() {
|
|
614
|
-
return tr || (tr = 1, process.env.NODE_ENV === "production" ?
|
|
614
|
+
return tr || (tr = 1, process.env.NODE_ENV === "production" ? ge.exports = Br() : ge.exports = zr()), ge.exports;
|
|
615
615
|
}
|
|
616
|
-
var v = Hr(),
|
|
616
|
+
var v = Hr(), Ee = (e) => `--${e}`, nr = (e) => `var(--${e})`, ar = (e, t) => `--${e}: ${t};`;
|
|
617
617
|
function Wr(e, t) {
|
|
618
618
|
const n = (a) => t;
|
|
619
619
|
return {
|
|
@@ -629,35 +629,35 @@ function Wr(e, t) {
|
|
|
629
629
|
cbem: (a, i) => `.${n()}-${e}__${a}--${i}`,
|
|
630
630
|
cbs: (a) => `.${n()}-${e}-${a}`,
|
|
631
631
|
cns: (a) => `.${n()}-${a}`,
|
|
632
|
-
cv: (a) =>
|
|
632
|
+
cv: (a) => Ee(`${n()}-${e}-${a}`),
|
|
633
633
|
cvm: (a, i = {}) => {
|
|
634
|
-
const
|
|
635
|
-
for (const
|
|
636
|
-
i[
|
|
634
|
+
const c = n();
|
|
635
|
+
for (const h of Object.keys(a))
|
|
636
|
+
i[Ee(`${c}-${e}-${h}`)] = a[h];
|
|
637
637
|
return i;
|
|
638
638
|
},
|
|
639
639
|
gcv: (a) => nr(`${n()}-${e}-${a}`),
|
|
640
640
|
scv: (a, i) => ar(`${n()}-${e}-${a}`, i),
|
|
641
|
-
nv: (a) =>
|
|
641
|
+
nv: (a) => Ee(`${n()}-${a}`),
|
|
642
642
|
nvm: (a, i = {}) => {
|
|
643
|
-
const
|
|
644
|
-
for (const
|
|
645
|
-
i[
|
|
643
|
+
const c = n();
|
|
644
|
+
for (const h of Object.keys(a))
|
|
645
|
+
i[Ee(`${c}-${h}`)] = a[h];
|
|
646
646
|
return i;
|
|
647
647
|
},
|
|
648
648
|
gnv: (a) => nr(`${n()}-${a}`),
|
|
649
649
|
snv: (a, i) => ar(`${n()}-${a}`, i)
|
|
650
650
|
};
|
|
651
651
|
}
|
|
652
|
-
function
|
|
653
|
-
return
|
|
652
|
+
function U(e) {
|
|
653
|
+
return G(() => Wr(e, "twist"), [e]);
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function Ae(e, t) {
|
|
656
656
|
if (!t.current) return 0;
|
|
657
657
|
let n = (e.clientX - t.current.getBoundingClientRect().left) / t.current.clientWidth;
|
|
658
658
|
return n = Math.max(n, 0), n = Math.min(n, 1), n = Math.floor(n * 100) / 100, n;
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function Ne(e, t) {
|
|
661
661
|
if (!t.current) return 0;
|
|
662
662
|
let n = 1 - (e.clientY - t.current.getBoundingClientRect().top) / t.current.clientHeight;
|
|
663
663
|
return n = Math.max(n, 0), n = Math.min(n, 1), n = Math.floor(n * 100) / 100, n;
|
|
@@ -668,15 +668,15 @@ var dr = {
|
|
|
668
668
|
className: void 0,
|
|
669
669
|
style: void 0,
|
|
670
670
|
attrs: void 0
|
|
671
|
-
},
|
|
672
|
-
|
|
673
|
-
function
|
|
671
|
+
}, ke = /* @__PURE__ */ ee.createContext(dr);
|
|
672
|
+
ke.Provider;
|
|
673
|
+
function se(e) {
|
|
674
674
|
"@babel/helpers - typeof";
|
|
675
|
-
return
|
|
675
|
+
return se = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
676
676
|
return typeof t;
|
|
677
677
|
} : function(t) {
|
|
678
678
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
679
|
-
},
|
|
679
|
+
}, se(e);
|
|
680
680
|
}
|
|
681
681
|
var Ur = ["attrs", "size", "title", "spin", "rotate", "color"];
|
|
682
682
|
function Yr(e, t) {
|
|
@@ -689,19 +689,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
689
689
|
function Kr(e, t) {
|
|
690
690
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
691
691
|
if (n != null) {
|
|
692
|
-
var a, i,
|
|
692
|
+
var a, i, c, h, b = [], s = !0, f = !1;
|
|
693
693
|
try {
|
|
694
|
-
if (
|
|
695
|
-
} catch (
|
|
696
|
-
|
|
694
|
+
if (c = (n = n.call(e)).next, t !== 0) for (; !(s = (a = c.call(n)).done) && (b.push(a.value), b.length !== t); s = !0) ;
|
|
695
|
+
} catch (g) {
|
|
696
|
+
f = !0, i = g;
|
|
697
697
|
} finally {
|
|
698
698
|
try {
|
|
699
|
-
if (!s && n.return != null && (
|
|
699
|
+
if (!s && n.return != null && (h = n.return(), Object(h) !== h)) return;
|
|
700
700
|
} finally {
|
|
701
|
-
if (
|
|
701
|
+
if (f) throw i;
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
|
-
return
|
|
704
|
+
return b;
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
707
|
function Jr(e) {
|
|
@@ -716,26 +716,26 @@ function Xr(e, t) {
|
|
|
716
716
|
};
|
|
717
717
|
return { s: i, n: function() {
|
|
718
718
|
return a >= e.length ? { done: !0 } : { done: !1, value: e[a++] };
|
|
719
|
-
}, e: function(
|
|
720
|
-
throw
|
|
719
|
+
}, e: function(f) {
|
|
720
|
+
throw f;
|
|
721
721
|
}, f: i };
|
|
722
722
|
}
|
|
723
723
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
724
724
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
725
725
|
}
|
|
726
|
-
var
|
|
726
|
+
var c, h = !0, b = !1;
|
|
727
727
|
return { s: function() {
|
|
728
728
|
n = n.call(e);
|
|
729
729
|
}, n: function() {
|
|
730
|
-
var
|
|
731
|
-
return
|
|
732
|
-
}, e: function(
|
|
733
|
-
|
|
730
|
+
var f = n.next();
|
|
731
|
+
return h = f.done, f;
|
|
732
|
+
}, e: function(f) {
|
|
733
|
+
b = !0, c = f;
|
|
734
734
|
}, f: function() {
|
|
735
735
|
try {
|
|
736
|
-
|
|
736
|
+
h || n.return == null || n.return();
|
|
737
737
|
} finally {
|
|
738
|
-
if (
|
|
738
|
+
if (b) throw c;
|
|
739
739
|
}
|
|
740
740
|
} };
|
|
741
741
|
}
|
|
@@ -751,14 +751,14 @@ function ir(e, t) {
|
|
|
751
751
|
for (var n = 0, a = Array(t); n < t; n++) a[n] = e[n];
|
|
752
752
|
return a;
|
|
753
753
|
}
|
|
754
|
-
function
|
|
755
|
-
return
|
|
754
|
+
function _e() {
|
|
755
|
+
return _e = Object.assign ? Object.assign.bind() : function(e) {
|
|
756
756
|
for (var t = 1; t < arguments.length; t++) {
|
|
757
757
|
var n = arguments[t];
|
|
758
758
|
for (var a in n) ({}).hasOwnProperty.call(n, a) && (e[a] = n[a]);
|
|
759
759
|
}
|
|
760
760
|
return e;
|
|
761
|
-
},
|
|
761
|
+
}, _e.apply(null, arguments);
|
|
762
762
|
}
|
|
763
763
|
function or(e, t) {
|
|
764
764
|
var n = Object.keys(e);
|
|
@@ -770,7 +770,7 @@ function or(e, t) {
|
|
|
770
770
|
}
|
|
771
771
|
return n;
|
|
772
772
|
}
|
|
773
|
-
function
|
|
773
|
+
function le(e) {
|
|
774
774
|
for (var t = 1; t < arguments.length; t++) {
|
|
775
775
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
776
776
|
t % 2 ? or(Object(n), !0).forEach(function(a) {
|
|
@@ -786,14 +786,14 @@ function Qr(e, t, n) {
|
|
|
786
786
|
}
|
|
787
787
|
function Zr(e) {
|
|
788
788
|
var t = et(e, "string");
|
|
789
|
-
return
|
|
789
|
+
return se(t) == "symbol" ? t : t + "";
|
|
790
790
|
}
|
|
791
791
|
function et(e, t) {
|
|
792
|
-
if (
|
|
792
|
+
if (se(e) != "object" || !e) return e;
|
|
793
793
|
var n = e[Symbol.toPrimitive];
|
|
794
794
|
if (n !== void 0) {
|
|
795
795
|
var a = n.call(e, t);
|
|
796
|
-
if (
|
|
796
|
+
if (se(a) != "object") return a;
|
|
797
797
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
798
798
|
}
|
|
799
799
|
return (t === "string" ? String : Number)(e);
|
|
@@ -802,8 +802,8 @@ function rt(e, t) {
|
|
|
802
802
|
if (e == null) return {};
|
|
803
803
|
var n, a, i = tt(e, t);
|
|
804
804
|
if (Object.getOwnPropertySymbols) {
|
|
805
|
-
var
|
|
806
|
-
for (a = 0; a <
|
|
805
|
+
var c = Object.getOwnPropertySymbols(e);
|
|
806
|
+
for (a = 0; a < c.length; a++) n = c[a], t.includes(n) || {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
807
807
|
}
|
|
808
808
|
return i;
|
|
809
809
|
}
|
|
@@ -817,39 +817,39 @@ function tt(e, t) {
|
|
|
817
817
|
return n;
|
|
818
818
|
}
|
|
819
819
|
function nt(e) {
|
|
820
|
-
var t = e.attrs, n = e.size, a = e.title, i = e.spin,
|
|
821
|
-
var
|
|
822
|
-
return
|
|
820
|
+
var t = e.attrs, n = e.size, a = e.title, i = e.spin, c = e.rotate, h = e.color, b = rt(e, Ur), s = function(g) {
|
|
821
|
+
var p = n || g.size || "1em", d, l = "", _ = "";
|
|
822
|
+
return g.className && (d = g.className), e.className && (d = d ? "".concat(d, " ").concat(e.className) : e.className), i && (d ? d += " twist-icon-loading" : d = "twist-icon-loading"), c && (l = "rotate(".concat(c, "deg)"), _ = "rotate(".concat(c, "deg)")), /* @__PURE__ */ ee.createElement("svg", _e({
|
|
823
823
|
xmlns: "http://www.w3.org/2000/svg"
|
|
824
|
-
},
|
|
825
|
-
className:
|
|
826
|
-
style:
|
|
827
|
-
color:
|
|
828
|
-
msTransform:
|
|
829
|
-
transform:
|
|
830
|
-
},
|
|
831
|
-
width:
|
|
832
|
-
height:
|
|
824
|
+
}, g.attrs, t, b, {
|
|
825
|
+
className: d,
|
|
826
|
+
style: le(le({
|
|
827
|
+
color: h || g.color,
|
|
828
|
+
msTransform: l,
|
|
829
|
+
transform: _
|
|
830
|
+
}, g.style), e.style),
|
|
831
|
+
width: p,
|
|
832
|
+
height: p
|
|
833
833
|
}), a && /* @__PURE__ */ ee.createElement("title", null, a), e.children);
|
|
834
834
|
};
|
|
835
|
-
return
|
|
836
|
-
return s(
|
|
835
|
+
return ke !== void 0 ? /* @__PURE__ */ ee.createElement(ke.Consumer, null, function(f) {
|
|
836
|
+
return s(f);
|
|
837
837
|
}) : s(dr);
|
|
838
838
|
}
|
|
839
839
|
function at(e) {
|
|
840
840
|
var t = {}, n = e.split(";"), a = Xr(n), i;
|
|
841
841
|
try {
|
|
842
842
|
for (a.s(); !(i = a.n()).done; ) {
|
|
843
|
-
var
|
|
844
|
-
if (s &&
|
|
845
|
-
var
|
|
846
|
-
return
|
|
843
|
+
var c = i.value, h = c.split(":"), b = Yr(h, 2), s = b[0], f = b[1];
|
|
844
|
+
if (s && f) {
|
|
845
|
+
var g = s.trim().replace(/-./g, function(p) {
|
|
846
|
+
return p.charAt(1).toUpperCase();
|
|
847
847
|
});
|
|
848
|
-
t[
|
|
848
|
+
t[g] = f.trim();
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
|
-
} catch (
|
|
852
|
-
a.e(
|
|
851
|
+
} catch (p) {
|
|
852
|
+
a.e(p);
|
|
853
853
|
} finally {
|
|
854
854
|
a.f();
|
|
855
855
|
}
|
|
@@ -857,24 +857,24 @@ function at(e) {
|
|
|
857
857
|
}
|
|
858
858
|
function mr(e) {
|
|
859
859
|
return e && e.map(function(t, n) {
|
|
860
|
-
return /* @__PURE__ */ ee.createElement(t.tag,
|
|
860
|
+
return /* @__PURE__ */ ee.createElement(t.tag, le(le({}, t.attrs), {}, {
|
|
861
861
|
key: n,
|
|
862
862
|
style: t.attrs.style ? at(t.attrs.style) : null
|
|
863
863
|
}), mr(t.children));
|
|
864
864
|
});
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function q(e) {
|
|
867
867
|
return function(t) {
|
|
868
|
-
return /* @__PURE__ */ ee.createElement(nt,
|
|
869
|
-
attrs:
|
|
868
|
+
return /* @__PURE__ */ ee.createElement(nt, _e({
|
|
869
|
+
attrs: le({}, e.attrs)
|
|
870
870
|
}, t), mr(e.children));
|
|
871
871
|
};
|
|
872
872
|
}
|
|
873
873
|
function it(e) {
|
|
874
|
-
return
|
|
874
|
+
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12 2.25c-5.384 0-9.75 4.366-9.75 9.75s4.366 9.75 9.75 9.75v-2.437A7.312 7.312 0 1 1 19.313 12h2.437c0-5.384-4.366-9.75-9.75-9.75" } }] })(e);
|
|
875
875
|
}
|
|
876
876
|
function ot(e) {
|
|
877
|
-
return
|
|
877
|
+
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M18.25 12L8.5 17.629V6.37z" } }] })(e);
|
|
878
878
|
}
|
|
879
879
|
function hr(e) {
|
|
880
880
|
var t, n, a = "";
|
|
@@ -885,7 +885,7 @@ function hr(e) {
|
|
|
885
885
|
} else for (n in e) e[n] && (a && (a += " "), a += n);
|
|
886
886
|
return a;
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function $() {
|
|
889
889
|
for (var e, t, n = 0, a = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = hr(e)) && (a && (a += " "), a += t);
|
|
890
890
|
return a;
|
|
891
891
|
}
|
|
@@ -894,33 +894,39 @@ function ut({
|
|
|
894
894
|
playedPercentage: t,
|
|
895
895
|
onSeek: n
|
|
896
896
|
}) {
|
|
897
|
-
const a =
|
|
898
|
-
|
|
899
|
-
s.current ||
|
|
897
|
+
const a = U("aplayer-bar"), i = U("aplayer-icon"), c = F(null), [h, b] = W(t), s = F(!1);
|
|
898
|
+
D(() => {
|
|
899
|
+
s.current || b(t);
|
|
900
900
|
}, [t]);
|
|
901
|
-
const
|
|
902
|
-
(
|
|
901
|
+
const f = L(
|
|
902
|
+
(g) => {
|
|
903
903
|
s.current = !0;
|
|
904
|
-
const
|
|
905
|
-
p
|
|
906
|
-
const
|
|
907
|
-
const o =
|
|
908
|
-
|
|
909
|
-
},
|
|
910
|
-
document.removeEventListener("mousemove",
|
|
911
|
-
const o =
|
|
912
|
-
|
|
904
|
+
const p = Ae(g, c);
|
|
905
|
+
b(p);
|
|
906
|
+
const d = (_) => {
|
|
907
|
+
const o = Ae(_, c);
|
|
908
|
+
b(o);
|
|
909
|
+
}, l = (_) => {
|
|
910
|
+
document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", l);
|
|
911
|
+
const o = Ae(_, c);
|
|
912
|
+
b(o), n == null || n(o), s.current = !1;
|
|
913
913
|
};
|
|
914
|
-
document.addEventListener("mousemove",
|
|
914
|
+
document.addEventListener("mousemove", d), document.addEventListener("mouseup", l);
|
|
915
915
|
},
|
|
916
916
|
[n]
|
|
917
917
|
);
|
|
918
918
|
return /* @__PURE__ */ v.jsx(
|
|
919
919
|
"div",
|
|
920
920
|
{
|
|
921
|
-
ref:
|
|
922
|
-
className:
|
|
923
|
-
onMouseDown:
|
|
921
|
+
ref: c,
|
|
922
|
+
className: $(a.b(), a.bs("vars")),
|
|
923
|
+
onMouseDown: f,
|
|
924
|
+
role: "slider",
|
|
925
|
+
"aria-label": "Audio progress",
|
|
926
|
+
"aria-valuenow": h ? h * 100 : 0,
|
|
927
|
+
"aria-valuemin": 0,
|
|
928
|
+
"aria-valuemax": 100,
|
|
929
|
+
"aria-live": "polite",
|
|
924
930
|
children: /* @__PURE__ */ v.jsxs("div", { className: a.be("inner"), children: [
|
|
925
931
|
typeof e < "u" ? /* @__PURE__ */ v.jsx(
|
|
926
932
|
"div",
|
|
@@ -929,18 +935,18 @@ function ut({
|
|
|
929
935
|
style: { width: `${e * 100}%` }
|
|
930
936
|
}
|
|
931
937
|
) : null,
|
|
932
|
-
typeof
|
|
938
|
+
typeof h < "u" ? /* @__PURE__ */ v.jsx(
|
|
933
939
|
"div",
|
|
934
940
|
{
|
|
935
941
|
className: a.be("played"),
|
|
936
942
|
style: {
|
|
937
|
-
width: `${
|
|
943
|
+
width: `${h * 100}%`
|
|
938
944
|
},
|
|
939
945
|
children: /* @__PURE__ */ v.jsx(
|
|
940
946
|
"span",
|
|
941
947
|
{
|
|
942
948
|
className: a.be("thumb"),
|
|
943
|
-
children: /* @__PURE__ */ v.jsx("span", { className:
|
|
949
|
+
children: /* @__PURE__ */ v.jsx("span", { className: $(i.bs("loading")), children: /* @__PURE__ */ v.jsx(it, {}) })
|
|
944
950
|
}
|
|
945
951
|
)
|
|
946
952
|
}
|
|
@@ -950,31 +956,31 @@ function ut({
|
|
|
950
956
|
);
|
|
951
957
|
}
|
|
952
958
|
function st(e) {
|
|
953
|
-
return
|
|
954
|
-
}
|
|
955
|
-
function ct(e) {
|
|
956
|
-
return N({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M10.5 17q1.05 0 1.775-.725T13 14.5V9h3V7h-4v5.5q-.325-.225-.7-.363T10.5 12q-1.05 0-1.775.725T8 14.5t.725 1.775T10.5 17M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h16q.825 0 1.413.588T22 6v12q0 .825-.587 1.413T20 20z" } }] })(e);
|
|
959
|
+
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M16.15 13H5q-.425 0-.712-.288T4 12t.288-.712T5 11h11.15L13.3 8.15q-.3-.3-.288-.7t.288-.7q.3-.3.713-.312t.712.287L19.3 11.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-4.575 4.575q-.3.3-.712.288t-.713-.313q-.275-.3-.288-.7t.288-.7z" } }] })(e);
|
|
957
960
|
}
|
|
958
961
|
function lt(e) {
|
|
959
|
-
return
|
|
962
|
+
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M10.5 17q1.05 0 1.775-.725T13 14.5V9h3V7h-4v5.5q-.325-.225-.7-.363T10.5 12q-1.05 0-1.775.725T8 14.5t.725 1.775T10.5 17M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h16q.825 0 1.413.588T22 6v12q0 .825-.587 1.413T20 20z" } }] })(e);
|
|
963
|
+
}
|
|
964
|
+
function ct(e) {
|
|
965
|
+
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14 19V5h4v14zm-8 0V5h4v14z" } }] })(e);
|
|
960
966
|
}
|
|
961
967
|
function ft(e) {
|
|
962
|
-
return
|
|
968
|
+
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8 17.175V6.825q0-.425.3-.713t.7-.287q.125 0 .263.037t.262.113l8.15 5.175q.225.15.338.375t.112.475t-.112.475t-.338.375l-8.15 5.175q-.125.075-.262.113T9 18.175q-.4 0-.7-.288t-.3-.712" } }] })(e);
|
|
963
969
|
}
|
|
964
970
|
function dt(e) {
|
|
965
|
-
return
|
|
971
|
+
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.5 10.5h-.75q-.325 0-.537-.213T10 9.75t.213-.537T10.75 9H12q.425 0 .713.288T13 10v4.25q0 .325-.213.538T12.25 15t-.537-.213t-.213-.537zM6.85 19l.85.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L3.7 18.7q-.15-.15-.213-.325T3.426 18t.063-.375t.212-.325l2.575-2.575q.3-.3.713-.287t.712.312q.275.3.288.7t-.288.7l-.85.85H17v-3q0-.425.288-.712T18 13t.713.288T19 14v3q0 .825-.587 1.413T17 19zm10.3-12H7v3q0 .425-.288.713T6 11t-.712-.288T5 10V7q0-.825.588-1.412T7 5h10.15l-.85-.85q-.3-.3-.288-.7t.288-.7q.3-.3.712-.312t.713.287L20.3 5.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-2.575 2.575q-.3.3-.712.288T16.3 9.25q-.275-.3-.288-.7t.288-.7z" } }] })(e);
|
|
966
972
|
}
|
|
967
973
|
function vt(e) {
|
|
968
|
-
return
|
|
974
|
+
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "m6.85 19l.85.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L3.7 18.7q-.15-.15-.213-.325T3.426 18t.063-.375t.212-.325l2.575-2.575q.3-.3.713-.287t.712.312q.275.3.288.7t-.288.7l-.85.85H17v-3q0-.425.288-.712T18 13t.713.288T19 14v3q0 .825-.587 1.413T17 19zm10.3-12H7v3q0 .425-.288.713T6 11t-.712-.288T5 10V7q0-.825.588-1.412T7 5h10.15l-.85-.85q-.3-.3-.288-.7t.288-.7q.3-.3.712-.312t.713.287L20.3 5.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-2.575 2.575q-.3.3-.712.288T16.3 9.25q-.275-.3-.288-.7t.288-.7z" } }] })(e);
|
|
969
975
|
}
|
|
970
976
|
function mt(e) {
|
|
971
|
-
return
|
|
977
|
+
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M9 15H6q-.425 0-.712-.288T5 14v-4q0-.425.288-.712T6 9h3l3.3-3.3q.475-.475 1.088-.213t.612.938v11.15q0 .675-.612.938T12.3 18.3zm9.5-3q0 1.05-.475 1.988t-1.25 1.537q-.25.15-.512.013T16 15.1V8.85q0-.3.263-.437t.512.012q.775.625 1.25 1.575t.475 2" } }] })(e);
|
|
972
978
|
}
|
|
973
979
|
function ht(e) {
|
|
974
|
-
return
|
|
980
|
+
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7 15V9h4l5-5v16l-5-5z" } }] })(e);
|
|
975
981
|
}
|
|
976
982
|
function yt(e) {
|
|
977
|
-
return
|
|
983
|
+
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M19 11.975q0-2.075-1.1-3.787t-2.95-2.563q-.375-.175-.55-.537t-.05-.738q.15-.4.538-.575t.787 0Q18.1 4.85 19.55 7.063T21 11.974t-1.45 4.913t-3.875 3.287q-.4.175-.788 0t-.537-.575q-.125-.375.05-.737t.55-.538q1.85-.85 2.95-2.562t1.1-3.788M7 15H4q-.425 0-.712-.288T3 14v-4q0-.425.288-.712T4 9h3l3.3-3.3q.475-.475 1.088-.213t.612.938v11.15q0 .675-.612.938T10.3 18.3zm9.5-3q0 1.05-.475 1.988t-1.25 1.537q-.25.15-.513.013T14 15.1V8.85q0-.3.263-.437t.512.012q.775.625 1.25 1.575t.475 2" } }] })(e);
|
|
978
984
|
}
|
|
979
985
|
function pt({
|
|
980
986
|
volume: e,
|
|
@@ -982,36 +988,37 @@ function pt({
|
|
|
982
988
|
onToggleMuted: n,
|
|
983
989
|
onChangeVolume: a
|
|
984
990
|
}) {
|
|
985
|
-
const i =
|
|
986
|
-
(
|
|
987
|
-
a(
|
|
988
|
-
const
|
|
989
|
-
a(
|
|
990
|
-
},
|
|
991
|
-
document.removeEventListener("mouseup",
|
|
991
|
+
const i = U("aplayer-volumn"), c = U("aplayer-icon"), h = F(null), [b, s] = W(!1), f = L(
|
|
992
|
+
(g) => {
|
|
993
|
+
a(Ne(g, h)), s(!0);
|
|
994
|
+
const p = (l) => {
|
|
995
|
+
a(Ne(l, h));
|
|
996
|
+
}, d = (l) => {
|
|
997
|
+
document.removeEventListener("mouseup", d), document.removeEventListener("mousemove", p), s(!1), a(Ne(l, h));
|
|
992
998
|
};
|
|
993
|
-
document.addEventListener("mousemove",
|
|
999
|
+
document.addEventListener("mousemove", p), document.addEventListener("mouseup", d);
|
|
994
1000
|
},
|
|
995
1001
|
[a]
|
|
996
1002
|
);
|
|
997
|
-
return /* @__PURE__ */ v.jsxs("div", { className:
|
|
1003
|
+
return /* @__PURE__ */ v.jsxs("div", { className: $(i.b(), i.bs("vars")), children: [
|
|
998
1004
|
/* @__PURE__ */ v.jsx(
|
|
999
1005
|
"button",
|
|
1000
1006
|
{
|
|
1001
1007
|
type: "button",
|
|
1002
|
-
className:
|
|
1008
|
+
className: $(c.b(), c.bs("volume-down")),
|
|
1003
1009
|
onClick: () => n(),
|
|
1010
|
+
"aria-label": t || !e ? "Muted" : "unMuted",
|
|
1004
1011
|
children: t || !e ? /* @__PURE__ */ v.jsx(ht, {}) : e >= 1 ? /* @__PURE__ */ v.jsx(yt, {}) : /* @__PURE__ */ v.jsx(mt, {})
|
|
1005
1012
|
}
|
|
1006
1013
|
),
|
|
1007
1014
|
/* @__PURE__ */ v.jsx(
|
|
1008
1015
|
"div",
|
|
1009
1016
|
{
|
|
1010
|
-
className:
|
|
1011
|
-
[i.bem("bar-wrap", "active")]:
|
|
1017
|
+
className: $(i.be("bar-wrap"), {
|
|
1018
|
+
[i.bem("bar-wrap", "active")]: b
|
|
1012
1019
|
}),
|
|
1013
|
-
ref:
|
|
1014
|
-
onMouseDown:
|
|
1020
|
+
ref: h,
|
|
1021
|
+
onMouseDown: f,
|
|
1015
1022
|
children: /* @__PURE__ */ v.jsx("div", { className: i.be("bar"), children: /* @__PURE__ */ v.jsx(
|
|
1016
1023
|
"div",
|
|
1017
1024
|
{
|
|
@@ -1030,25 +1037,25 @@ function ur(e) {
|
|
|
1030
1037
|
return "--:--";
|
|
1031
1038
|
if (Number.isNaN(e))
|
|
1032
1039
|
return "00:00";
|
|
1033
|
-
const t = (
|
|
1040
|
+
const t = (h) => h < 10 ? `0${h}` : `${h}`, n = Math.trunc(e / 60), a = Math.trunc(e - n * 60), i = Math.trunc(n / 60), c = Math.trunc(
|
|
1034
1041
|
e / 60 - 60 * Math.trunc(e / 60 / 60)
|
|
1035
1042
|
);
|
|
1036
|
-
return e >= 3600 ? `${t(i)}:${t(
|
|
1043
|
+
return e >= 3600 ? `${t(i)}:${t(c)}:${t(a)}` : `${t(n)}:${t(a)}`;
|
|
1037
1044
|
}
|
|
1038
1045
|
function bt(e) {
|
|
1039
|
-
return
|
|
1046
|
+
return q({ attrs: { viewBox: "0 0 1024 1024" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M485.6 249.9L198.2 498c-8.3 7.1-8.3 20.8 0 27.9l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9m320 0L518.2 498a18.6 18.6 0 0 0-6.2 14c0 5.2 2.1 10.4 6.2 14l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9" } }] })(e);
|
|
1040
1047
|
}
|
|
1041
1048
|
function gt(e) {
|
|
1042
|
-
return
|
|
1049
|
+
return q({ attrs: { viewBox: "0 0 1024 1024" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28m-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14s-2.1-10.4-6.2-14" } }] })(e);
|
|
1043
1050
|
}
|
|
1044
1051
|
function Et(e) {
|
|
1045
|
-
return
|
|
1052
|
+
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z" } }] })(e);
|
|
1046
1053
|
}
|
|
1047
1054
|
function xt(e) {
|
|
1048
|
-
return
|
|
1055
|
+
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2 5.27L3.28 4L20 20.72L18.73 22l-3-3H7v3l-4-4l4-4v3h6.73L7 10.27V11H5V8.27zM17 13h2v4.18l-2-2zm0-8V2l4 4l-4 4V7H8.82l-2-2z" } }] })(e);
|
|
1049
1056
|
}
|
|
1050
1057
|
function _t(e) {
|
|
1051
|
-
return
|
|
1058
|
+
return q({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "m17 3l5.25 4.5L17 12l5.25 4.5L17 21v-3h-2.74l-2.82-2.82l2.12-2.12L15.5 15H17V9h-1.5l-9 9H2v-3h3.26l9-9H17zM2 6h4.5l2.82 2.82l-2.12 2.12L5.26 9H2z" } }] })(e);
|
|
1052
1059
|
}
|
|
1053
1060
|
function St({
|
|
1054
1061
|
volume: e,
|
|
@@ -1056,212 +1063,249 @@ function St({
|
|
|
1056
1063
|
muted: n,
|
|
1057
1064
|
currentTime: a,
|
|
1058
1065
|
audioDurationSeconds: i,
|
|
1059
|
-
bufferedSeconds:
|
|
1060
|
-
onToggleMenu:
|
|
1061
|
-
onToggleMuted:
|
|
1066
|
+
bufferedSeconds: c,
|
|
1067
|
+
onToggleMenu: h,
|
|
1068
|
+
onToggleMuted: b,
|
|
1062
1069
|
order: s,
|
|
1063
|
-
onOrderChange:
|
|
1064
|
-
loop:
|
|
1065
|
-
onLoopChange:
|
|
1066
|
-
onSeek:
|
|
1067
|
-
isPlaying:
|
|
1068
|
-
onTogglePlay:
|
|
1070
|
+
onOrderChange: f,
|
|
1071
|
+
loop: g,
|
|
1072
|
+
onLoopChange: p,
|
|
1073
|
+
onSeek: d,
|
|
1074
|
+
isPlaying: l,
|
|
1075
|
+
onTogglePlay: _,
|
|
1069
1076
|
onSkipForward: o,
|
|
1070
|
-
onSkipBack:
|
|
1071
|
-
showLyrics:
|
|
1072
|
-
onToggleLyrics:
|
|
1077
|
+
onSkipBack: y,
|
|
1078
|
+
showLyrics: E = !0,
|
|
1079
|
+
onToggleLyrics: j
|
|
1073
1080
|
}) {
|
|
1074
|
-
const
|
|
1075
|
-
const
|
|
1081
|
+
const T = U("aplayer-controller"), A = U("aplayer-icon"), K = L(() => {
|
|
1082
|
+
const V = {
|
|
1076
1083
|
list: "random",
|
|
1077
1084
|
random: "list"
|
|
1078
1085
|
}[s];
|
|
1079
|
-
|
|
1080
|
-
}, [s,
|
|
1081
|
-
const
|
|
1086
|
+
f(V);
|
|
1087
|
+
}, [s, f]), re = L(() => {
|
|
1088
|
+
const V = {
|
|
1082
1089
|
all: "one",
|
|
1083
1090
|
one: "none",
|
|
1084
1091
|
none: "all"
|
|
1085
|
-
}[
|
|
1086
|
-
|
|
1087
|
-
}, [
|
|
1088
|
-
return /* @__PURE__ */ v.jsxs(
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1092
|
+
}[g];
|
|
1093
|
+
p(V);
|
|
1094
|
+
}, [g, p]);
|
|
1095
|
+
return /* @__PURE__ */ v.jsxs(
|
|
1096
|
+
"div",
|
|
1097
|
+
{
|
|
1098
|
+
className: $(T.b(), T.bs("vars")),
|
|
1099
|
+
role: "group",
|
|
1100
|
+
"aria-label": "Audio Controls",
|
|
1101
|
+
children: [
|
|
1102
|
+
/* @__PURE__ */ v.jsx(
|
|
1103
|
+
ut,
|
|
1104
|
+
{
|
|
1105
|
+
playedPercentage: typeof a > "u" || typeof i > "u" ? void 0 : a / i,
|
|
1106
|
+
bufferedPercentage: typeof c > "u" || typeof i > "u" ? void 0 : c / i,
|
|
1107
|
+
onSeek: (V) => d == null ? void 0 : d(V * i)
|
|
1108
|
+
}
|
|
1109
|
+
),
|
|
1110
|
+
/* @__PURE__ */ v.jsxs("div", { className: T.be("time"), children: [
|
|
1111
|
+
/* @__PURE__ */ v.jsxs("span", { className: T.be("time-inner"), "aria-live": "polite", children: [
|
|
1112
|
+
/* @__PURE__ */ v.jsx("span", { className: T.be("ptime"), children: ur(a) }),
|
|
1113
|
+
" / ",
|
|
1114
|
+
/* @__PURE__ */ v.jsx("span", { className: T.be("dtime"), children: ur(i) })
|
|
1115
|
+
] }),
|
|
1116
|
+
/* @__PURE__ */ v.jsx(
|
|
1117
|
+
"button",
|
|
1118
|
+
{
|
|
1119
|
+
className: $(A.b(), A.bs("back")),
|
|
1120
|
+
onClick: y,
|
|
1121
|
+
type: "button",
|
|
1122
|
+
"aria-label": "Previous track",
|
|
1123
|
+
children: /* @__PURE__ */ v.jsx(bt, {})
|
|
1124
|
+
}
|
|
1125
|
+
),
|
|
1126
|
+
/* @__PURE__ */ v.jsx(
|
|
1127
|
+
"button",
|
|
1128
|
+
{
|
|
1129
|
+
className: $(A.b(), A.bs("play")),
|
|
1130
|
+
onClick: _,
|
|
1131
|
+
type: "button",
|
|
1132
|
+
"aria-label": l ? "Pause audio" : "Play audio",
|
|
1133
|
+
children: l ? /* @__PURE__ */ v.jsx(ct, {}) : /* @__PURE__ */ v.jsx(ft, {})
|
|
1134
|
+
}
|
|
1135
|
+
),
|
|
1136
|
+
/* @__PURE__ */ v.jsx(
|
|
1137
|
+
"button",
|
|
1138
|
+
{
|
|
1139
|
+
className: $(A.b(), A.bs("forward")),
|
|
1140
|
+
onClick: o,
|
|
1141
|
+
type: "button",
|
|
1142
|
+
"aria-label": "Next track",
|
|
1143
|
+
children: /* @__PURE__ */ v.jsx(gt, {})
|
|
1144
|
+
}
|
|
1145
|
+
),
|
|
1146
|
+
/* @__PURE__ */ v.jsx(
|
|
1147
|
+
pt,
|
|
1148
|
+
{
|
|
1149
|
+
volume: e,
|
|
1150
|
+
muted: n,
|
|
1151
|
+
onToggleMuted: b,
|
|
1152
|
+
onChangeVolume: t
|
|
1153
|
+
}
|
|
1154
|
+
),
|
|
1155
|
+
/* @__PURE__ */ v.jsx(
|
|
1156
|
+
"button",
|
|
1157
|
+
{
|
|
1158
|
+
className: $(A.b(), A.bs("order")),
|
|
1159
|
+
onClick: K,
|
|
1160
|
+
type: "button",
|
|
1161
|
+
"aria-label": `Playback order: ${s}`,
|
|
1162
|
+
children: { list: /* @__PURE__ */ v.jsx(st, {}), random: /* @__PURE__ */ v.jsx(_t, {}) }[s]
|
|
1163
|
+
}
|
|
1164
|
+
),
|
|
1165
|
+
/* @__PURE__ */ v.jsx(
|
|
1166
|
+
"button",
|
|
1167
|
+
{
|
|
1168
|
+
className: $(A.b(), A.bs("order")),
|
|
1169
|
+
onClick: re,
|
|
1170
|
+
type: "button",
|
|
1171
|
+
"aria-label": `Loop mode: ${g}`,
|
|
1172
|
+
children: {
|
|
1173
|
+
all: /* @__PURE__ */ v.jsx(vt, {}),
|
|
1174
|
+
one: /* @__PURE__ */ v.jsx(dt, {}),
|
|
1175
|
+
none: /* @__PURE__ */ v.jsx(xt, {})
|
|
1176
|
+
}[g]
|
|
1177
|
+
}
|
|
1178
|
+
),
|
|
1179
|
+
/* @__PURE__ */ v.jsx(
|
|
1180
|
+
"button",
|
|
1181
|
+
{
|
|
1182
|
+
type: "button",
|
|
1183
|
+
className: $(A.b(), A.bs("menu")),
|
|
1184
|
+
onClick: () => h == null ? void 0 : h(),
|
|
1185
|
+
"aria-label": "Toggle playlist menu",
|
|
1186
|
+
children: /* @__PURE__ */ v.jsx(Et, {})
|
|
1187
|
+
}
|
|
1188
|
+
),
|
|
1189
|
+
/* @__PURE__ */ v.jsx(
|
|
1190
|
+
"button",
|
|
1191
|
+
{
|
|
1192
|
+
type: "button",
|
|
1193
|
+
className: $(A.b(), A.bs("lrc"), {
|
|
1194
|
+
[A.ns("lrc-inactivity")]: !E
|
|
1195
|
+
}),
|
|
1196
|
+
onClick: j,
|
|
1197
|
+
"aria-label": E ? "Hide lyrics" : "Show lyrics",
|
|
1198
|
+
"aria-pressed": E,
|
|
1199
|
+
children: /* @__PURE__ */ v.jsx(lt, {})
|
|
1200
|
+
}
|
|
1201
|
+
)
|
|
1202
|
+
] })
|
|
1203
|
+
]
|
|
1204
|
+
}
|
|
1205
|
+
);
|
|
1166
1206
|
}
|
|
1167
|
-
function
|
|
1207
|
+
function Tt({
|
|
1168
1208
|
open: e,
|
|
1169
1209
|
audio: t,
|
|
1170
1210
|
playingAudioUrl: n,
|
|
1171
1211
|
onPlayAudio: a,
|
|
1172
1212
|
listMaxHeight: i
|
|
1173
1213
|
}) {
|
|
1174
|
-
const
|
|
1175
|
-
return
|
|
1214
|
+
const c = U("aplayer-list"), h = i ? { maxHeight: i } : void 0, b = L((f) => f ? typeof f == "string" ? f : f.name ?? "Audio artist" : "Audio artist", []), s = F(null);
|
|
1215
|
+
return D(() => {
|
|
1176
1216
|
if (s.current) {
|
|
1177
|
-
const
|
|
1178
|
-
return
|
|
1179
|
-
|
|
1217
|
+
const f = s.current;
|
|
1218
|
+
return f.style.maxHeight = `${Math.min(
|
|
1219
|
+
f.scrollHeight,
|
|
1180
1220
|
i ?? 1 / 0
|
|
1181
1221
|
)}px`, () => {
|
|
1182
|
-
|
|
1222
|
+
f.removeAttribute("style");
|
|
1183
1223
|
};
|
|
1184
1224
|
}
|
|
1185
1225
|
}, [i]), /* @__PURE__ */ v.jsx(
|
|
1186
1226
|
"div",
|
|
1187
1227
|
{
|
|
1188
1228
|
ref: s,
|
|
1189
|
-
className:
|
|
1190
|
-
[
|
|
1229
|
+
className: $(c.b(), {
|
|
1230
|
+
[c.bm("hide")]: !e
|
|
1191
1231
|
}),
|
|
1192
|
-
|
|
1232
|
+
"aria-label": "Audio playlist",
|
|
1233
|
+
"aria-live": "polite",
|
|
1234
|
+
children: /* @__PURE__ */ v.jsx("ol", { style: h, children: t.map((f, g) => /* @__PURE__ */ v.jsxs(
|
|
1193
1235
|
"li",
|
|
1194
1236
|
{
|
|
1195
|
-
className:
|
|
1196
|
-
[
|
|
1237
|
+
className: $({
|
|
1238
|
+
[c.bm("active")]: f.url === n
|
|
1197
1239
|
}),
|
|
1198
1240
|
onClick: () => {
|
|
1199
|
-
|
|
1241
|
+
f.url !== n && (a == null || a(f));
|
|
1200
1242
|
},
|
|
1243
|
+
role: "button",
|
|
1244
|
+
"aria-label": `${f.name ?? "Audio name"} by ${b(f.artist)}}`,
|
|
1201
1245
|
children: [
|
|
1202
|
-
/* @__PURE__ */ v.jsx("span", { className:
|
|
1203
|
-
/* @__PURE__ */ v.jsx("span", { className:
|
|
1204
|
-
/* @__PURE__ */ v.jsx("span", { className:
|
|
1205
|
-
/* @__PURE__ */ v.jsx("span", { className:
|
|
1246
|
+
/* @__PURE__ */ v.jsx("span", { className: c.be("cur") }),
|
|
1247
|
+
/* @__PURE__ */ v.jsx("span", { className: c.be("index"), children: g + 1 }),
|
|
1248
|
+
/* @__PURE__ */ v.jsx("span", { className: c.be("title"), children: f.name ?? "Audio name" }),
|
|
1249
|
+
/* @__PURE__ */ v.jsx("span", { className: c.be("author"), children: b(f.artist) })
|
|
1206
1250
|
]
|
|
1207
1251
|
},
|
|
1208
|
-
|
|
1252
|
+
f.name || g
|
|
1209
1253
|
)) })
|
|
1210
1254
|
}
|
|
1211
1255
|
);
|
|
1212
1256
|
}
|
|
1213
1257
|
function sr({ show: e, lrcText: t, currentTime: n }) {
|
|
1214
|
-
const a =
|
|
1215
|
-
for (let
|
|
1216
|
-
const s = i[
|
|
1217
|
-
if (n >= s[0] && (!
|
|
1218
|
-
return
|
|
1258
|
+
const a = U("aplayer-lrc"), i = G(() => wt(t), [t]), c = G(() => {
|
|
1259
|
+
for (let b = 0; b < i.length; b++) {
|
|
1260
|
+
const s = i[b], f = i[b + 1];
|
|
1261
|
+
if (n >= s[0] && (!f || n < f[0]))
|
|
1262
|
+
return b;
|
|
1219
1263
|
}
|
|
1220
1264
|
return 0;
|
|
1221
|
-
}, [n, i]),
|
|
1222
|
-
transform: `translateY(${-
|
|
1223
|
-
WebkitTransform: `translateY(${-
|
|
1224
|
-
}), [
|
|
1265
|
+
}, [n, i]), h = G(() => ({
|
|
1266
|
+
transform: `translateY(${-c * 16}px)`,
|
|
1267
|
+
WebkitTransform: `translateY(${-c * 16}px)`
|
|
1268
|
+
}), [c]);
|
|
1225
1269
|
return /* @__PURE__ */ v.jsx(
|
|
1226
1270
|
"div",
|
|
1227
1271
|
{
|
|
1228
|
-
className:
|
|
1272
|
+
className: $(a.b(), {
|
|
1229
1273
|
[a.bm("hide")]: !e
|
|
1230
1274
|
}),
|
|
1231
|
-
children: t ? /* @__PURE__ */ v.jsx("div", { className: a.be("contents"), style:
|
|
1275
|
+
children: t ? /* @__PURE__ */ v.jsx("div", { className: a.be("contents"), style: h, children: i.map(([, b], s) => /* @__PURE__ */ v.jsx(
|
|
1232
1276
|
"p",
|
|
1233
1277
|
{
|
|
1234
|
-
className:
|
|
1235
|
-
[a.be("current")]: s ===
|
|
1278
|
+
className: $({
|
|
1279
|
+
[a.be("current")]: s === c
|
|
1236
1280
|
}),
|
|
1237
|
-
children:
|
|
1281
|
+
children: b
|
|
1238
1282
|
},
|
|
1239
1283
|
s
|
|
1240
1284
|
)) }) : null
|
|
1241
1285
|
}
|
|
1242
1286
|
);
|
|
1243
1287
|
}
|
|
1244
|
-
function
|
|
1288
|
+
function wt(e) {
|
|
1245
1289
|
if (e) {
|
|
1246
|
-
e = e.replace(/([^\]^\n])\[/g, (i,
|
|
1290
|
+
e = e.replace(/([^\]^\n])\[/g, (i, c) => `${c}
|
|
1247
1291
|
[`);
|
|
1248
1292
|
const t = e.split(`
|
|
1249
1293
|
`), n = [], a = t.length;
|
|
1250
1294
|
for (let i = 0; i < a; i++) {
|
|
1251
|
-
const
|
|
1252
|
-
if (
|
|
1253
|
-
const
|
|
1254
|
-
for (let s = 0; s <
|
|
1255
|
-
const
|
|
1256
|
-
n.push([
|
|
1295
|
+
const c = t[i].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g), h = t[i].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g, "").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g, "").replace(/^\s+|\s+$/g, "");
|
|
1296
|
+
if (c) {
|
|
1297
|
+
const b = c.length;
|
|
1298
|
+
for (let s = 0; s < b; s++) {
|
|
1299
|
+
const f = /\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/.exec(c[s]), g = f[1] * 60, p = Number.parseInt(f[2]), d = f[4] ? Number.parseInt(f[4]) / (`${f[4]}`.length === 2 ? 100 : 1e3) : 0, l = g + p + d;
|
|
1300
|
+
n.push([l, h]);
|
|
1257
1301
|
}
|
|
1258
1302
|
}
|
|
1259
1303
|
}
|
|
1260
|
-
return n.sort((i,
|
|
1304
|
+
return n.sort((i, c) => i[0] - c[0]), n;
|
|
1261
1305
|
} else
|
|
1262
1306
|
return [];
|
|
1263
1307
|
}
|
|
1264
|
-
var
|
|
1308
|
+
var xe = { exports: {} }, qe = {};
|
|
1265
1309
|
/**
|
|
1266
1310
|
* @license React
|
|
1267
1311
|
* use-sync-external-store-shim.production.js
|
|
@@ -1271,48 +1315,48 @@ var Ee = { exports: {} }, Ne = {};
|
|
|
1271
1315
|
* This source code is licensed under the MIT license found in the
|
|
1272
1316
|
* LICENSE file in the root directory of this source tree.
|
|
1273
1317
|
*/
|
|
1274
|
-
var
|
|
1318
|
+
var lr;
|
|
1275
1319
|
function jt() {
|
|
1276
|
-
if (
|
|
1277
|
-
|
|
1278
|
-
var e =
|
|
1279
|
-
function t(
|
|
1280
|
-
return
|
|
1320
|
+
if (lr) return qe;
|
|
1321
|
+
lr = 1;
|
|
1322
|
+
var e = Se;
|
|
1323
|
+
function t(p, d) {
|
|
1324
|
+
return p === d && (p !== 0 || 1 / p === 1 / d) || p !== p && d !== d;
|
|
1281
1325
|
}
|
|
1282
|
-
var n = typeof Object.is == "function" ? Object.is : t, a = e.useState, i = e.useEffect,
|
|
1283
|
-
function p
|
|
1284
|
-
var
|
|
1285
|
-
return
|
|
1326
|
+
var n = typeof Object.is == "function" ? Object.is : t, a = e.useState, i = e.useEffect, c = e.useLayoutEffect, h = e.useDebugValue;
|
|
1327
|
+
function b(p, d) {
|
|
1328
|
+
var l = d(), _ = a({ inst: { value: l, getSnapshot: d } }), o = _[0].inst, y = _[1];
|
|
1329
|
+
return c(
|
|
1286
1330
|
function() {
|
|
1287
|
-
o.value =
|
|
1331
|
+
o.value = l, o.getSnapshot = d, s(o) && y({ inst: o });
|
|
1288
1332
|
},
|
|
1289
|
-
[
|
|
1333
|
+
[p, l, d]
|
|
1290
1334
|
), i(
|
|
1291
1335
|
function() {
|
|
1292
|
-
return s(o) &&
|
|
1293
|
-
s(o) &&
|
|
1336
|
+
return s(o) && y({ inst: o }), p(function() {
|
|
1337
|
+
s(o) && y({ inst: o });
|
|
1294
1338
|
});
|
|
1295
1339
|
},
|
|
1296
|
-
[
|
|
1297
|
-
),
|
|
1340
|
+
[p]
|
|
1341
|
+
), h(l), l;
|
|
1298
1342
|
}
|
|
1299
|
-
function s(
|
|
1300
|
-
var
|
|
1301
|
-
|
|
1343
|
+
function s(p) {
|
|
1344
|
+
var d = p.getSnapshot;
|
|
1345
|
+
p = p.value;
|
|
1302
1346
|
try {
|
|
1303
|
-
var
|
|
1304
|
-
return !n(
|
|
1347
|
+
var l = d();
|
|
1348
|
+
return !n(p, l);
|
|
1305
1349
|
} catch {
|
|
1306
1350
|
return !0;
|
|
1307
1351
|
}
|
|
1308
1352
|
}
|
|
1309
|
-
function
|
|
1310
|
-
return
|
|
1353
|
+
function f(p, d) {
|
|
1354
|
+
return d();
|
|
1311
1355
|
}
|
|
1312
|
-
var
|
|
1313
|
-
return
|
|
1356
|
+
var g = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? f : b;
|
|
1357
|
+
return qe.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : g, qe;
|
|
1314
1358
|
}
|
|
1315
|
-
var
|
|
1359
|
+
var Me = {};
|
|
1316
1360
|
/**
|
|
1317
1361
|
* @license React
|
|
1318
1362
|
* use-sync-external-store-shim.development.js
|
|
@@ -1322,87 +1366,87 @@ var qe = {};
|
|
|
1322
1366
|
* This source code is licensed under the MIT license found in the
|
|
1323
1367
|
* LICENSE file in the root directory of this source tree.
|
|
1324
1368
|
*/
|
|
1325
|
-
var
|
|
1369
|
+
var cr;
|
|
1326
1370
|
function Ot() {
|
|
1327
|
-
return
|
|
1328
|
-
function e(
|
|
1329
|
-
return
|
|
1371
|
+
return cr || (cr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1372
|
+
function e(l, _) {
|
|
1373
|
+
return l === _ && (l !== 0 || 1 / l === 1 / _) || l !== l && _ !== _;
|
|
1330
1374
|
}
|
|
1331
|
-
function t(
|
|
1332
|
-
|
|
1375
|
+
function t(l, _) {
|
|
1376
|
+
g || i.startTransition === void 0 || (g = !0, console.error(
|
|
1333
1377
|
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
1334
1378
|
));
|
|
1335
|
-
var o =
|
|
1336
|
-
if (!
|
|
1337
|
-
var
|
|
1338
|
-
|
|
1379
|
+
var o = _();
|
|
1380
|
+
if (!p) {
|
|
1381
|
+
var y = _();
|
|
1382
|
+
c(o, y) || (console.error(
|
|
1339
1383
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
1340
|
-
),
|
|
1384
|
+
), p = !0);
|
|
1341
1385
|
}
|
|
1342
|
-
|
|
1343
|
-
inst: { value: o, getSnapshot:
|
|
1386
|
+
y = h({
|
|
1387
|
+
inst: { value: o, getSnapshot: _ }
|
|
1344
1388
|
});
|
|
1345
|
-
var
|
|
1389
|
+
var E = y[0].inst, j = y[1];
|
|
1346
1390
|
return s(
|
|
1347
1391
|
function() {
|
|
1348
|
-
|
|
1392
|
+
E.value = o, E.getSnapshot = _, n(E) && j({ inst: E });
|
|
1349
1393
|
},
|
|
1350
|
-
[
|
|
1351
|
-
),
|
|
1394
|
+
[l, o, _]
|
|
1395
|
+
), b(
|
|
1352
1396
|
function() {
|
|
1353
|
-
return n(
|
|
1354
|
-
n(
|
|
1397
|
+
return n(E) && j({ inst: E }), l(function() {
|
|
1398
|
+
n(E) && j({ inst: E });
|
|
1355
1399
|
});
|
|
1356
1400
|
},
|
|
1357
|
-
[
|
|
1358
|
-
),
|
|
1401
|
+
[l]
|
|
1402
|
+
), f(o), o;
|
|
1359
1403
|
}
|
|
1360
|
-
function n(
|
|
1361
|
-
var
|
|
1362
|
-
|
|
1404
|
+
function n(l) {
|
|
1405
|
+
var _ = l.getSnapshot;
|
|
1406
|
+
l = l.value;
|
|
1363
1407
|
try {
|
|
1364
|
-
var o =
|
|
1365
|
-
return !
|
|
1408
|
+
var o = _();
|
|
1409
|
+
return !c(l, o);
|
|
1366
1410
|
} catch {
|
|
1367
1411
|
return !0;
|
|
1368
1412
|
}
|
|
1369
1413
|
}
|
|
1370
|
-
function a(
|
|
1371
|
-
return
|
|
1414
|
+
function a(l, _) {
|
|
1415
|
+
return _();
|
|
1372
1416
|
}
|
|
1373
1417
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1374
|
-
var i =
|
|
1375
|
-
|
|
1376
|
-
}()),
|
|
1418
|
+
var i = Se, c = typeof Object.is == "function" ? Object.is : e, h = i.useState, b = i.useEffect, s = i.useLayoutEffect, f = i.useDebugValue, g = !1, p = !1, d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : t;
|
|
1419
|
+
Me.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : d, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1420
|
+
}()), Me;
|
|
1377
1421
|
}
|
|
1378
1422
|
var fr;
|
|
1379
1423
|
function Rt() {
|
|
1380
|
-
return fr || (fr = 1, process.env.NODE_ENV === "production" ?
|
|
1424
|
+
return fr || (fr = 1, process.env.NODE_ENV === "production" ? xe.exports = jt() : xe.exports = Ot()), xe.exports;
|
|
1381
1425
|
}
|
|
1382
|
-
var
|
|
1426
|
+
var Y = Rt();
|
|
1383
1427
|
const Z = [];
|
|
1384
|
-
function
|
|
1428
|
+
function Pt(e) {
|
|
1385
1429
|
const t = F();
|
|
1386
|
-
return
|
|
1430
|
+
return D(() => {
|
|
1387
1431
|
if (typeof window < "u" && !t.current) {
|
|
1388
1432
|
const n = t.current = document.createElement("audio");
|
|
1389
1433
|
typeof (e == null ? void 0 : e.src) < "u" && (n.src = e.src), typeof (e == null ? void 0 : e.autoPlay) < "u" && (n.autoplay = e.autoPlay), typeof (e == null ? void 0 : e.initialVolume) < "u" && (n.volume = e.initialVolume), Z.includes(n) || Z.push(n);
|
|
1390
1434
|
}
|
|
1391
|
-
}, [e == null ? void 0 : e.autoPlay, e == null ? void 0 : e.initialVolume, e == null ? void 0 : e.src]),
|
|
1435
|
+
}, [e == null ? void 0 : e.autoPlay, e == null ? void 0 : e.initialVolume, e == null ? void 0 : e.src]), D(() => {
|
|
1392
1436
|
if (typeof window > "u") return;
|
|
1393
1437
|
const n = t.current;
|
|
1394
1438
|
if (n && (e != null && e.onError))
|
|
1395
1439
|
return n.addEventListener("error", e.onError), () => {
|
|
1396
1440
|
n.removeEventListener("error", e.onError);
|
|
1397
1441
|
};
|
|
1398
|
-
}, [e == null ? void 0 : e.onError]),
|
|
1442
|
+
}, [e == null ? void 0 : e.onError]), D(() => {
|
|
1399
1443
|
if (typeof window > "u") return;
|
|
1400
1444
|
const n = t.current;
|
|
1401
1445
|
if (n && (e != null && e.onEnded))
|
|
1402
1446
|
return n.addEventListener("ended", e.onEnded), () => {
|
|
1403
1447
|
n.removeEventListener("ended", e.onEnded);
|
|
1404
1448
|
};
|
|
1405
|
-
}, [e == null ? void 0 : e.onEnded]),
|
|
1449
|
+
}, [e == null ? void 0 : e.onEnded]), D(() => () => {
|
|
1406
1450
|
const n = t.current;
|
|
1407
1451
|
if (n) {
|
|
1408
1452
|
n.pause(), n.currentTime = 0;
|
|
@@ -1412,20 +1456,20 @@ function Lt(e) {
|
|
|
1412
1456
|
t.current = void 0;
|
|
1413
1457
|
}, []), t;
|
|
1414
1458
|
}
|
|
1415
|
-
function
|
|
1416
|
-
const t =
|
|
1417
|
-
for (let
|
|
1418
|
-
const
|
|
1419
|
-
|
|
1459
|
+
function Lt(e) {
|
|
1460
|
+
const t = Pt(e), n = L((o) => {
|
|
1461
|
+
for (let y = 0; y < Z.length; y++) {
|
|
1462
|
+
const E = Z[y];
|
|
1463
|
+
E !== o && !E.paused && E.pause();
|
|
1420
1464
|
}
|
|
1421
1465
|
}, []), a = L(
|
|
1422
1466
|
async (o) => {
|
|
1423
|
-
var
|
|
1424
|
-
const
|
|
1425
|
-
if (
|
|
1426
|
-
e.mutex && n(
|
|
1467
|
+
var E;
|
|
1468
|
+
const y = t.current;
|
|
1469
|
+
if (y) {
|
|
1470
|
+
e.mutex && n(y), y.src !== o && (y.pause(), y.currentTime = 0, y.src = o);
|
|
1427
1471
|
try {
|
|
1428
|
-
await ((
|
|
1472
|
+
await ((E = t.current) == null ? void 0 : E.play());
|
|
1429
1473
|
} catch {
|
|
1430
1474
|
}
|
|
1431
1475
|
}
|
|
@@ -1433,32 +1477,32 @@ function Pt(e) {
|
|
|
1433
1477
|
[t, e.mutex, n]
|
|
1434
1478
|
), i = L(
|
|
1435
1479
|
(o) => {
|
|
1436
|
-
const
|
|
1437
|
-
|
|
1480
|
+
const y = t.current;
|
|
1481
|
+
y && (y.paused ? a(o) : y.pause());
|
|
1438
1482
|
},
|
|
1439
1483
|
[t, a]
|
|
1440
|
-
),
|
|
1484
|
+
), c = L(
|
|
1441
1485
|
(o) => {
|
|
1442
1486
|
t.current.currentTime = o;
|
|
1443
1487
|
},
|
|
1444
1488
|
[t]
|
|
1445
|
-
),
|
|
1489
|
+
), h = L(() => {
|
|
1446
1490
|
t.current && (t.current.muted = !t.current.muted);
|
|
1447
|
-
}, [t]),
|
|
1491
|
+
}, [t]), b = L(
|
|
1448
1492
|
(o) => {
|
|
1449
1493
|
t.current && (t.current.volume = o);
|
|
1450
1494
|
},
|
|
1451
1495
|
[t]
|
|
1452
|
-
), s =
|
|
1496
|
+
), s = Y.useSyncExternalStore(
|
|
1453
1497
|
L(
|
|
1454
1498
|
(o) => {
|
|
1455
|
-
var
|
|
1456
|
-
return (
|
|
1499
|
+
var y;
|
|
1500
|
+
return (y = t.current) == null || y.addEventListener(
|
|
1457
1501
|
"volumechange",
|
|
1458
1502
|
o
|
|
1459
1503
|
), () => {
|
|
1460
|
-
var
|
|
1461
|
-
(
|
|
1504
|
+
var E;
|
|
1505
|
+
(E = t.current) == null || E.removeEventListener(
|
|
1462
1506
|
"volumechange",
|
|
1463
1507
|
o
|
|
1464
1508
|
);
|
|
@@ -1472,16 +1516,16 @@ function Pt(e) {
|
|
|
1472
1516
|
},
|
|
1473
1517
|
() => {
|
|
1474
1518
|
}
|
|
1475
|
-
),
|
|
1519
|
+
), f = Y.useSyncExternalStore(
|
|
1476
1520
|
L(
|
|
1477
1521
|
(o) => {
|
|
1478
|
-
var
|
|
1479
|
-
return (
|
|
1522
|
+
var y;
|
|
1523
|
+
return (y = t.current) == null || y.addEventListener(
|
|
1480
1524
|
"volumechange",
|
|
1481
1525
|
o
|
|
1482
1526
|
), () => {
|
|
1483
|
-
var
|
|
1484
|
-
(
|
|
1527
|
+
var E;
|
|
1528
|
+
(E = t.current) == null || E.removeEventListener(
|
|
1485
1529
|
"volumechange",
|
|
1486
1530
|
o
|
|
1487
1531
|
);
|
|
@@ -1495,13 +1539,13 @@ function Pt(e) {
|
|
|
1495
1539
|
},
|
|
1496
1540
|
() => {
|
|
1497
1541
|
}
|
|
1498
|
-
),
|
|
1542
|
+
), g = Y.useSyncExternalStore(
|
|
1499
1543
|
L(
|
|
1500
1544
|
(o) => {
|
|
1501
|
-
var
|
|
1502
|
-
return (
|
|
1503
|
-
var
|
|
1504
|
-
(
|
|
1545
|
+
var y;
|
|
1546
|
+
return (y = t.current) == null || y.addEventListener("timeupdate", o), () => {
|
|
1547
|
+
var E;
|
|
1548
|
+
(E = t.current) == null || E.removeEventListener(
|
|
1505
1549
|
"timeupdate",
|
|
1506
1550
|
o
|
|
1507
1551
|
);
|
|
@@ -1515,16 +1559,16 @@ function Pt(e) {
|
|
|
1515
1559
|
},
|
|
1516
1560
|
() => {
|
|
1517
1561
|
}
|
|
1518
|
-
),
|
|
1562
|
+
), p = Y.useSyncExternalStore(
|
|
1519
1563
|
L(
|
|
1520
1564
|
(o) => {
|
|
1521
|
-
var
|
|
1522
|
-
return (
|
|
1565
|
+
var y;
|
|
1566
|
+
return (y = t.current) == null || y.addEventListener(
|
|
1523
1567
|
"durationchange",
|
|
1524
1568
|
o
|
|
1525
1569
|
), () => {
|
|
1526
|
-
var
|
|
1527
|
-
(
|
|
1570
|
+
var E;
|
|
1571
|
+
(E = t.current) == null || E.removeEventListener(
|
|
1528
1572
|
"durationchange",
|
|
1529
1573
|
o
|
|
1530
1574
|
);
|
|
@@ -1538,13 +1582,13 @@ function Pt(e) {
|
|
|
1538
1582
|
},
|
|
1539
1583
|
() => {
|
|
1540
1584
|
}
|
|
1541
|
-
),
|
|
1585
|
+
), d = Y.useSyncExternalStore(
|
|
1542
1586
|
L(
|
|
1543
1587
|
(o) => {
|
|
1544
|
-
var
|
|
1545
|
-
return (
|
|
1546
|
-
var
|
|
1547
|
-
(
|
|
1588
|
+
var y;
|
|
1589
|
+
return (y = t.current) == null || y.addEventListener("progress", o), () => {
|
|
1590
|
+
var E;
|
|
1591
|
+
(E = t.current) == null || E.removeEventListener(
|
|
1548
1592
|
"progress",
|
|
1549
1593
|
o
|
|
1550
1594
|
);
|
|
@@ -1558,13 +1602,13 @@ function Pt(e) {
|
|
|
1558
1602
|
},
|
|
1559
1603
|
() => {
|
|
1560
1604
|
}
|
|
1561
|
-
),
|
|
1605
|
+
), l = Y.useSyncExternalStore(
|
|
1562
1606
|
L(
|
|
1563
1607
|
(o) => {
|
|
1564
|
-
var
|
|
1565
|
-
return (
|
|
1566
|
-
var
|
|
1567
|
-
(
|
|
1608
|
+
var y, E;
|
|
1609
|
+
return (y = t.current) == null || y.addEventListener("play", o), (E = t.current) == null || E.addEventListener("pause", o), () => {
|
|
1610
|
+
var j, T;
|
|
1611
|
+
(j = t.current) == null || j.removeEventListener("play", o), (T = t.current) == null || T.removeEventListener("pause", o);
|
|
1568
1612
|
};
|
|
1569
1613
|
},
|
|
1570
1614
|
[t]
|
|
@@ -1575,16 +1619,16 @@ function Pt(e) {
|
|
|
1575
1619
|
},
|
|
1576
1620
|
() => {
|
|
1577
1621
|
}
|
|
1578
|
-
),
|
|
1622
|
+
), _ = Y.useSyncExternalStore(
|
|
1579
1623
|
L(
|
|
1580
1624
|
(o) => {
|
|
1581
|
-
var
|
|
1582
|
-
return (
|
|
1583
|
-
var
|
|
1584
|
-
(
|
|
1625
|
+
var y, E;
|
|
1626
|
+
return (y = t.current) == null || y.addEventListener("playing", o), (E = t.current) == null || E.addEventListener("waiting", o), () => {
|
|
1627
|
+
var j, T;
|
|
1628
|
+
(j = t.current) == null || j.removeEventListener(
|
|
1585
1629
|
"playing",
|
|
1586
1630
|
o
|
|
1587
|
-
), (
|
|
1631
|
+
), (T = t.current) == null || T.removeEventListener(
|
|
1588
1632
|
"waiting",
|
|
1589
1633
|
o
|
|
1590
1634
|
);
|
|
@@ -1602,21 +1646,21 @@ function Pt(e) {
|
|
|
1602
1646
|
return {
|
|
1603
1647
|
playAudio: a,
|
|
1604
1648
|
togglePlay: i,
|
|
1605
|
-
seek:
|
|
1606
|
-
toggleMuted:
|
|
1607
|
-
setVolume:
|
|
1649
|
+
seek: c,
|
|
1650
|
+
toggleMuted: h,
|
|
1651
|
+
setVolume: b,
|
|
1608
1652
|
volume: s,
|
|
1609
|
-
muted:
|
|
1610
|
-
currentTime:
|
|
1611
|
-
duration:
|
|
1612
|
-
bufferedSeconds:
|
|
1613
|
-
isPlaying:
|
|
1614
|
-
isLoading:
|
|
1653
|
+
muted: f,
|
|
1654
|
+
currentTime: g,
|
|
1655
|
+
duration: p,
|
|
1656
|
+
bufferedSeconds: d,
|
|
1657
|
+
isPlaying: l,
|
|
1658
|
+
isLoading: _
|
|
1615
1659
|
};
|
|
1616
1660
|
}
|
|
1617
1661
|
function yr() {
|
|
1618
1662
|
const e = F([]);
|
|
1619
|
-
return
|
|
1663
|
+
return D(() => {
|
|
1620
1664
|
const n = e.current;
|
|
1621
1665
|
return () => {
|
|
1622
1666
|
for (const a of n)
|
|
@@ -1628,11 +1672,11 @@ function yr() {
|
|
|
1628
1672
|
}, []);
|
|
1629
1673
|
}
|
|
1630
1674
|
function $t() {
|
|
1631
|
-
const e = F(), [t, n] =
|
|
1632
|
-
(
|
|
1633
|
-
e.current && clearTimeout(e.current), n({ text:
|
|
1634
|
-
n({ text:
|
|
1635
|
-
},
|
|
1675
|
+
const e = F(), [t, n] = W({ text: "", style: { opacity: 0 } }), a = yr(), i = L(
|
|
1676
|
+
(c, h = 2e3) => {
|
|
1677
|
+
e.current && clearTimeout(e.current), n({ text: c, style: { opacity: 1 } }), e.current = a(() => {
|
|
1678
|
+
n({ text: c, style: { opacity: 0 } });
|
|
1679
|
+
}, h);
|
|
1636
1680
|
},
|
|
1637
1681
|
[a]
|
|
1638
1682
|
);
|
|
@@ -1655,222 +1699,237 @@ function Nt(e, {
|
|
|
1655
1699
|
initialOrder: n = "list",
|
|
1656
1700
|
getSongId: a
|
|
1657
1701
|
}) {
|
|
1658
|
-
const [i,
|
|
1659
|
-
|
|
1702
|
+
const [i, c] = W(t), [h, b] = W(n), s = G(() => h === "list" ? e : Ct(e), [e, h]), [f, g] = W(s[0]);
|
|
1703
|
+
D(() => {
|
|
1660
1704
|
const o = s.find(
|
|
1661
|
-
(
|
|
1705
|
+
(y) => a(y) === a(f)
|
|
1662
1706
|
);
|
|
1663
|
-
|
|
1664
|
-
}, [s, a,
|
|
1665
|
-
const
|
|
1707
|
+
g(o || s[0]);
|
|
1708
|
+
}, [s, a, f]);
|
|
1709
|
+
const p = G(() => {
|
|
1666
1710
|
if (i === "one")
|
|
1667
|
-
return { ...
|
|
1668
|
-
const o = s.indexOf(
|
|
1711
|
+
return { ...f };
|
|
1712
|
+
const o = s.indexOf(f);
|
|
1669
1713
|
if (o < s.length - 1)
|
|
1670
1714
|
return s[o + 1];
|
|
1671
1715
|
if (i !== "none") return s[0];
|
|
1672
|
-
}, [s,
|
|
1673
|
-
|
|
1674
|
-
}, [
|
|
1675
|
-
|
|
1676
|
-
const
|
|
1677
|
-
return
|
|
1716
|
+
}, [s, f, i]), d = L(() => {
|
|
1717
|
+
p && g(p);
|
|
1718
|
+
}, [p, i]), l = L(() => {
|
|
1719
|
+
g((o) => {
|
|
1720
|
+
const y = s.indexOf(o);
|
|
1721
|
+
return y > 0 ? s[y - 1] : o;
|
|
1678
1722
|
});
|
|
1679
|
-
}, [s]),
|
|
1680
|
-
|
|
1723
|
+
}, [s]), _ = L((o) => {
|
|
1724
|
+
g(o);
|
|
1681
1725
|
}, []);
|
|
1682
1726
|
return {
|
|
1683
|
-
currentSong:
|
|
1684
|
-
hasNextSong: typeof
|
|
1685
|
-
next:
|
|
1686
|
-
previous:
|
|
1687
|
-
prioritize:
|
|
1688
|
-
order:
|
|
1689
|
-
setOrder:
|
|
1727
|
+
currentSong: f,
|
|
1728
|
+
hasNextSong: typeof p < "u",
|
|
1729
|
+
next: d,
|
|
1730
|
+
previous: l,
|
|
1731
|
+
prioritize: _,
|
|
1732
|
+
order: h,
|
|
1733
|
+
setOrder: b,
|
|
1690
1734
|
loop: i,
|
|
1691
|
-
setLoop:
|
|
1735
|
+
setLoop: c,
|
|
1692
1736
|
length: s.length
|
|
1693
1737
|
};
|
|
1694
1738
|
}
|
|
1695
1739
|
function qt(e) {
|
|
1696
|
-
return
|
|
1740
|
+
return q({ attrs: { viewBox: "0 0 512 512" }, children: [{ tag: "path", attrs: { d: "M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z", fill: "currentColor" } }] })(e);
|
|
1697
1741
|
}
|
|
1698
1742
|
function Mt(e) {
|
|
1699
|
-
return
|
|
1743
|
+
return q({ attrs: { viewBox: "0 0 512 512" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M208 432h-48a16 16 0 0 1-16-16V96a16 16 0 0 1 16-16h48a16 16 0 0 1 16 16v320a16 16 0 0 1-16 16m144 0h-48a16 16 0 0 1-16-16V96a16 16 0 0 1 16-16h48a16 16 0 0 1 16 16v320a16 16 0 0 1-16 16" } }] })(e);
|
|
1700
1744
|
}
|
|
1701
|
-
function
|
|
1745
|
+
function Dt({
|
|
1702
1746
|
audio: e,
|
|
1703
1747
|
appearance: t = "normal",
|
|
1704
1748
|
volume: n = 0.7,
|
|
1705
1749
|
initialLoop: a,
|
|
1706
1750
|
initialOrder: i,
|
|
1707
|
-
autoPlay:
|
|
1708
|
-
listMaxHeight:
|
|
1709
|
-
mini:
|
|
1751
|
+
autoPlay: c = !1,
|
|
1752
|
+
listMaxHeight: h = 250,
|
|
1753
|
+
mini: b = !1,
|
|
1710
1754
|
mutex: s = !0,
|
|
1711
|
-
listFolded:
|
|
1712
|
-
theme:
|
|
1755
|
+
listFolded: f = !1,
|
|
1756
|
+
theme: g = "light",
|
|
1757
|
+
border: p = !1
|
|
1713
1758
|
}) {
|
|
1714
|
-
var
|
|
1715
|
-
const
|
|
1759
|
+
var ne, ae, ie;
|
|
1760
|
+
const d = U("aplayer"), l = Nt(Array.isArray(e) ? e : [e], {
|
|
1716
1761
|
initialLoop: a,
|
|
1717
1762
|
initialOrder: i,
|
|
1718
|
-
getSongId: (
|
|
1719
|
-
}), [
|
|
1720
|
-
|
|
1721
|
-
}, []),
|
|
1722
|
-
src:
|
|
1763
|
+
getSongId: (R) => R.url
|
|
1764
|
+
}), [_, o] = $t(), y = yr(), E = F(), j = L(() => {
|
|
1765
|
+
E.current && (clearTimeout(E.current), E.current = void 0);
|
|
1766
|
+
}, []), T = Lt({
|
|
1767
|
+
src: l.currentSong.url,
|
|
1723
1768
|
initialVolume: n,
|
|
1724
|
-
autoPlay:
|
|
1769
|
+
autoPlay: c,
|
|
1725
1770
|
mutex: s,
|
|
1726
|
-
onError(
|
|
1727
|
-
const { error:
|
|
1728
|
-
|
|
1771
|
+
onError(R) {
|
|
1772
|
+
const { error: ve } = R.target;
|
|
1773
|
+
ve && o(
|
|
1729
1774
|
"An audio error has occurred, player will skip forward in 2 seconds."
|
|
1730
|
-
),
|
|
1731
|
-
|
|
1775
|
+
), l.hasNextSong && (E.current = y(() => {
|
|
1776
|
+
l.next();
|
|
1732
1777
|
}, 2e3));
|
|
1733
1778
|
},
|
|
1734
1779
|
onEnded() {
|
|
1735
|
-
|
|
1780
|
+
l.hasNextSong && l.next();
|
|
1736
1781
|
}
|
|
1737
1782
|
});
|
|
1738
|
-
|
|
1739
|
-
|
|
1783
|
+
D(() => {
|
|
1784
|
+
c && T.playAudio(l.currentSong.url);
|
|
1740
1785
|
}, []);
|
|
1741
|
-
const
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
}, [
|
|
1745
|
-
const
|
|
1746
|
-
|
|
1747
|
-
}, [
|
|
1786
|
+
const A = F(!0);
|
|
1787
|
+
D(() => {
|
|
1788
|
+
A.current ? A.current = !1 : l.currentSong && T.playAudio(l.currentSong.url);
|
|
1789
|
+
}, [l.currentSong, T.playAudio]);
|
|
1790
|
+
const K = L(() => {
|
|
1791
|
+
j(), T.togglePlay(l.currentSong.url);
|
|
1792
|
+
}, [T, j, l.currentSong.url]), re = L((R) => R ? typeof R == "string" ? R : R.url ? /* @__PURE__ */ v.jsx("a", { href: R.url, target: "_blank", rel: "noreferrer", children: R.name ?? "Audio artist" }) : R.name ?? "Audio artist" : "Audio artist", []), V = l.length > 1, Te = G(
|
|
1748
1793
|
() => Array.isArray(e) ? e : [e],
|
|
1749
1794
|
[e]
|
|
1750
|
-
), { prioritize:
|
|
1751
|
-
(
|
|
1752
|
-
|
|
1795
|
+
), { prioritize: te } = l, we = L(
|
|
1796
|
+
(R) => {
|
|
1797
|
+
j(), te(R);
|
|
1753
1798
|
},
|
|
1754
|
-
[
|
|
1755
|
-
), [
|
|
1756
|
-
return
|
|
1757
|
-
I(
|
|
1758
|
-
}, [
|
|
1799
|
+
[j, te]
|
|
1800
|
+
), [ce, fe] = W(() => V && !f), [B, I] = W(b), [z, de] = W(!0), J = F(null);
|
|
1801
|
+
return D(() => {
|
|
1802
|
+
I(b);
|
|
1803
|
+
}, [b]), D(() => {
|
|
1759
1804
|
if (t === "fixed" && J.current) {
|
|
1760
|
-
const
|
|
1761
|
-
return
|
|
1762
|
-
|
|
1805
|
+
const R = J.current;
|
|
1806
|
+
return R.style.width = `${R.offsetWidth - 18}px`, () => {
|
|
1807
|
+
R.removeAttribute("style");
|
|
1763
1808
|
};
|
|
1764
1809
|
}
|
|
1765
1810
|
}, [t]), /* @__PURE__ */ v.jsxs(
|
|
1766
1811
|
"div",
|
|
1767
1812
|
{
|
|
1768
|
-
className:
|
|
1769
|
-
[
|
|
1770
|
-
[
|
|
1771
|
-
[
|
|
1772
|
-
[
|
|
1773
|
-
[
|
|
1774
|
-
[
|
|
1775
|
-
[
|
|
1813
|
+
className: $(d.b(), {
|
|
1814
|
+
[d.bs(g)]: !0,
|
|
1815
|
+
[d.bs("vars")]: !0,
|
|
1816
|
+
[d.bm(t)]: !0,
|
|
1817
|
+
[d.bm("loading")]: T.isLoading,
|
|
1818
|
+
[d.bm("withlist")]: V,
|
|
1819
|
+
[d.bm("list-folded")]: !ce,
|
|
1820
|
+
[d.bm("withlrc")]: !!l.currentSong.lrc && t !== "fixed",
|
|
1821
|
+
[d.bm("narrow")]: B,
|
|
1822
|
+
[d.bm("border")]: p
|
|
1776
1823
|
}),
|
|
1824
|
+
role: "region",
|
|
1825
|
+
"aria-label": "Audio Player",
|
|
1777
1826
|
children: [
|
|
1778
|
-
/* @__PURE__ */ v.jsxs(
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
backgroundImage: `url("${(te = c.currentSong) == null ? void 0 : te.cover}")`
|
|
1786
|
-
},
|
|
1787
|
-
children: /* @__PURE__ */ v.jsx(
|
|
1827
|
+
/* @__PURE__ */ v.jsxs(
|
|
1828
|
+
"div",
|
|
1829
|
+
{
|
|
1830
|
+
ref: J,
|
|
1831
|
+
className: d.be("body"),
|
|
1832
|
+
children: [
|
|
1833
|
+
/* @__PURE__ */ v.jsx(
|
|
1788
1834
|
"div",
|
|
1789
1835
|
{
|
|
1790
|
-
className:
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1836
|
+
className: d.be("pic"),
|
|
1837
|
+
onClick: K,
|
|
1838
|
+
style: {
|
|
1839
|
+
backgroundImage: `url("${(ne = l.currentSong) == null ? void 0 : ne.cover}")`
|
|
1840
|
+
},
|
|
1841
|
+
role: "button",
|
|
1842
|
+
"aria-label": T.isPlaying ? "Pause audio" : "Play audio",
|
|
1843
|
+
children: /* @__PURE__ */ v.jsx(
|
|
1844
|
+
"div",
|
|
1845
|
+
{
|
|
1846
|
+
className: $(
|
|
1847
|
+
d.be("button"),
|
|
1848
|
+
T.isPlaying ? d.bm("pause") : d.bm("play")
|
|
1849
|
+
),
|
|
1850
|
+
role: "presentation",
|
|
1851
|
+
children: T.isPlaying ? /* @__PURE__ */ v.jsx(Mt, {}) : /* @__PURE__ */ v.jsx(ot, {})
|
|
1852
|
+
}
|
|
1853
|
+
)
|
|
1795
1854
|
}
|
|
1796
|
-
)
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1855
|
+
),
|
|
1856
|
+
/* @__PURE__ */ v.jsxs("div", { className: $(d.be("info")), children: [
|
|
1857
|
+
/* @__PURE__ */ v.jsxs("div", { className: $(d.be("music")), children: [
|
|
1858
|
+
/* @__PURE__ */ v.jsx("span", { className: $(d.be("title")), children: ((ae = l.currentSong) == null ? void 0 : ae.name) ?? "Audio name" }),
|
|
1859
|
+
/* @__PURE__ */ v.jsxs("span", { className: $(d.be("author")), children: [
|
|
1860
|
+
" ",
|
|
1861
|
+
"-",
|
|
1862
|
+
" ",
|
|
1863
|
+
re((ie = l.currentSong) == null ? void 0 : ie.artist)
|
|
1864
|
+
] })
|
|
1865
|
+
] }),
|
|
1866
|
+
t === "fixed" ? null : /* @__PURE__ */ v.jsx(
|
|
1867
|
+
sr,
|
|
1868
|
+
{
|
|
1869
|
+
show: z,
|
|
1870
|
+
lrcText: l.currentSong.lrc,
|
|
1871
|
+
currentTime: T.currentTime ?? 0
|
|
1872
|
+
}
|
|
1873
|
+
),
|
|
1874
|
+
/* @__PURE__ */ v.jsx(
|
|
1875
|
+
St,
|
|
1876
|
+
{
|
|
1877
|
+
volume: T.volume ?? n,
|
|
1878
|
+
onChangeVolume: T.setVolume,
|
|
1879
|
+
muted: T.muted ?? !1,
|
|
1880
|
+
onToggleMuted: () => T.toggleMuted(),
|
|
1881
|
+
currentTime: T.currentTime,
|
|
1882
|
+
audioDurationSeconds: T.duration,
|
|
1883
|
+
bufferedSeconds: T.bufferedSeconds,
|
|
1884
|
+
onSeek: (R) => T.seek(R),
|
|
1885
|
+
onToggleMenu: () => fe((R) => !R),
|
|
1886
|
+
order: l.order,
|
|
1887
|
+
onOrderChange: l.setOrder,
|
|
1888
|
+
loop: l.loop,
|
|
1889
|
+
onLoopChange: l.setLoop,
|
|
1890
|
+
isPlaying: T.isPlaying ?? !1,
|
|
1891
|
+
onTogglePlay: K,
|
|
1892
|
+
onSkipForward: () => {
|
|
1893
|
+
l.hasNextSong && l.next();
|
|
1894
|
+
},
|
|
1895
|
+
onSkipBack: () => {
|
|
1896
|
+
l.previous();
|
|
1897
|
+
},
|
|
1898
|
+
showLyrics: z,
|
|
1899
|
+
onToggleLyrics: () => {
|
|
1900
|
+
de((R) => !R);
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
)
|
|
1904
|
+
] }),
|
|
1905
|
+
/* @__PURE__ */ v.jsx("div", { className: d.be("notice"), style: _.style, children: _.text }),
|
|
1906
|
+
/* @__PURE__ */ v.jsx(
|
|
1907
|
+
"div",
|
|
1908
|
+
{
|
|
1909
|
+
className: d.be("miniswitcher"),
|
|
1910
|
+
onClick: () => I((R) => !R),
|
|
1911
|
+
children: /* @__PURE__ */ v.jsx("button", { className: d.bs("icon"), type: "button", children: /* @__PURE__ */ v.jsx(qt, {}) })
|
|
1844
1912
|
}
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
{
|
|
1852
|
-
className: l.be("miniswitcher"),
|
|
1853
|
-
onClick: () => I((O) => !O),
|
|
1854
|
-
children: /* @__PURE__ */ v.jsx("button", { className: l.bs("icon"), type: "button", children: /* @__PURE__ */ v.jsx(qt, {}) })
|
|
1855
|
-
}
|
|
1856
|
-
)
|
|
1857
|
-
] }),
|
|
1858
|
-
U ? /* @__PURE__ */ v.jsx(
|
|
1859
|
-
wt,
|
|
1913
|
+
)
|
|
1914
|
+
]
|
|
1915
|
+
}
|
|
1916
|
+
),
|
|
1917
|
+
V ? /* @__PURE__ */ v.jsx(
|
|
1918
|
+
Tt,
|
|
1860
1919
|
{
|
|
1861
|
-
open:
|
|
1862
|
-
audio:
|
|
1863
|
-
playingAudioUrl:
|
|
1864
|
-
onPlayAudio:
|
|
1865
|
-
listMaxHeight:
|
|
1920
|
+
open: ce,
|
|
1921
|
+
audio: Te,
|
|
1922
|
+
playingAudioUrl: l.currentSong.url,
|
|
1923
|
+
onPlayAudio: we,
|
|
1924
|
+
listMaxHeight: h
|
|
1866
1925
|
}
|
|
1867
1926
|
) : null,
|
|
1868
1927
|
t === "fixed" && /* @__PURE__ */ v.jsx(
|
|
1869
1928
|
sr,
|
|
1870
1929
|
{
|
|
1871
|
-
show:
|
|
1872
|
-
lrcText:
|
|
1873
|
-
currentTime:
|
|
1930
|
+
show: z,
|
|
1931
|
+
lrcText: l.currentSong.lrc,
|
|
1932
|
+
currentTime: T.currentTime ?? 0
|
|
1874
1933
|
}
|
|
1875
1934
|
)
|
|
1876
1935
|
]
|
|
@@ -1878,5 +1937,5 @@ function kt({
|
|
|
1878
1937
|
);
|
|
1879
1938
|
}
|
|
1880
1939
|
export {
|
|
1881
|
-
|
|
1940
|
+
Dt as TwistAPlayer
|
|
1882
1941
|
};
|