twist-aplayer 1.4.6 → 1.4.8
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 -139
- package/dist/index.d.ts +2 -2
- package/dist/index.js +13 -21
- package/dist/index.min.css +1 -1
- package/dist/index.mjs +1081 -1430
- package/dist/twist-aplayer.umd.js +13 -21
- package/package.json +80 -80
package/dist/index.mjs
CHANGED
|
@@ -1,1015 +1,666 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
var
|
|
1
|
+
import * as W from "react";
|
|
2
|
+
import pe, { useMemo as B, useRef as M, useState as V, useEffect as q, useCallback as S } from "react";
|
|
3
|
+
var oe = { exports: {} }, Q = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
|
-
* react-jsx-runtime.production.
|
|
6
|
+
* react-jsx-runtime.production.js
|
|
7
7
|
*
|
|
8
|
-
* Copyright (c)
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
var e =
|
|
18
|
-
function
|
|
19
|
-
var l
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
var ge;
|
|
14
|
+
function ke() {
|
|
15
|
+
if (ge) return Q;
|
|
16
|
+
ge = 1;
|
|
17
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
18
|
+
function r(n, a, u) {
|
|
19
|
+
var l = null;
|
|
20
|
+
if (u !== void 0 && (l = "" + u), a.key !== void 0 && (l = "" + a.key), "key" in a) {
|
|
21
|
+
u = {};
|
|
22
|
+
for (var b in a)
|
|
23
|
+
b !== "key" && (u[b] = a[b]);
|
|
24
|
+
} else u = a;
|
|
25
|
+
return a = u.ref, {
|
|
26
|
+
$$typeof: e,
|
|
27
|
+
type: n,
|
|
28
|
+
key: l,
|
|
29
|
+
ref: a !== void 0 ? a : null,
|
|
30
|
+
props: u
|
|
31
|
+
};
|
|
24
32
|
}
|
|
25
|
-
return
|
|
33
|
+
return Q.Fragment = t, Q.jsx = r, Q.jsxs = r, Q;
|
|
26
34
|
}
|
|
27
|
-
var
|
|
35
|
+
var Z = {};
|
|
28
36
|
/**
|
|
29
37
|
* @license React
|
|
30
38
|
* react-jsx-runtime.development.js
|
|
31
39
|
*
|
|
32
|
-
* Copyright (c)
|
|
40
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
33
41
|
*
|
|
34
42
|
* This source code is licensed under the MIT license found in the
|
|
35
43
|
* LICENSE file in the root directory of this source tree.
|
|
36
44
|
*/
|
|
37
|
-
var
|
|
38
|
-
function
|
|
39
|
-
return
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
if (
|
|
43
|
-
return null;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
var p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
48
|
-
function T(t) {
|
|
49
|
-
{
|
|
50
|
-
for (var o = arguments.length, v = new Array(o > 1 ? o - 1 : 0), S = 1; S < o; S++)
|
|
51
|
-
v[S - 1] = arguments[S];
|
|
52
|
-
j("error", t, v);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
function j(t, o, v) {
|
|
56
|
-
{
|
|
57
|
-
var S = p.ReactDebugCurrentFrame, O = S.getStackAddendum();
|
|
58
|
-
O !== "" && (o += "%s", v = v.concat([O]));
|
|
59
|
-
var P = v.map(function(w) {
|
|
60
|
-
return String(w);
|
|
61
|
-
});
|
|
62
|
-
P.unshift("Warning: " + o), Function.prototype.apply.call(console[t], console, P);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
var L = !1, z = !1, H = !1, q = !1, J = !1, A;
|
|
66
|
-
A = Symbol.for("react.module.reference");
|
|
67
|
-
function pe(t) {
|
|
68
|
-
return !!(typeof t == "string" || typeof t == "function" || t === a || t === m || J || t === i || t === y || t === l || q || t === E || L || z || H || typeof t == "object" && t !== null && (t.$$typeof === x || t.$$typeof === h || t.$$typeof === c || t.$$typeof === g || t.$$typeof === s || // This needs to include all possible module reference object
|
|
69
|
-
// types supported by any Flight configuration anywhere since
|
|
70
|
-
// we don't know which Flight build this will end up being used
|
|
71
|
-
// with.
|
|
72
|
-
t.$$typeof === A || t.getModuleId !== void 0));
|
|
73
|
-
}
|
|
74
|
-
function Re(t, o, v) {
|
|
75
|
-
var S = t.displayName;
|
|
76
|
-
if (S)
|
|
77
|
-
return S;
|
|
78
|
-
var O = o.displayName || o.name || "";
|
|
79
|
-
return O !== "" ? v + "(" + O + ")" : v;
|
|
80
|
-
}
|
|
81
|
-
function ye(t) {
|
|
82
|
-
return t.displayName || "Context";
|
|
83
|
-
}
|
|
84
|
-
function W(t) {
|
|
85
|
-
if (t == null)
|
|
86
|
-
return null;
|
|
87
|
-
if (typeof t.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
88
|
-
return t.displayName || t.name || null;
|
|
89
|
-
if (typeof t == "string")
|
|
90
|
-
return t;
|
|
91
|
-
switch (t) {
|
|
92
|
-
case a:
|
|
45
|
+
var xe;
|
|
46
|
+
function Ie() {
|
|
47
|
+
return xe || (xe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
|
+
function e(o) {
|
|
49
|
+
if (o == null) return null;
|
|
50
|
+
if (typeof o == "function")
|
|
51
|
+
return o.$$typeof === re ? null : o.displayName || o.name || null;
|
|
52
|
+
if (typeof o == "string") return o;
|
|
53
|
+
switch (o) {
|
|
54
|
+
case i:
|
|
93
55
|
return "Fragment";
|
|
94
|
-
case
|
|
95
|
-
return "Portal";
|
|
96
|
-
case m:
|
|
56
|
+
case v:
|
|
97
57
|
return "Profiler";
|
|
98
|
-
case
|
|
58
|
+
case f:
|
|
99
59
|
return "StrictMode";
|
|
100
|
-
case
|
|
60
|
+
case C:
|
|
101
61
|
return "Suspense";
|
|
102
|
-
case
|
|
62
|
+
case k:
|
|
103
63
|
return "SuspenseList";
|
|
64
|
+
case O:
|
|
65
|
+
return "Activity";
|
|
104
66
|
}
|
|
105
|
-
if (typeof
|
|
106
|
-
switch (
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
return ye(o) + ".Consumer";
|
|
110
|
-
case c:
|
|
111
|
-
var v = t;
|
|
112
|
-
return ye(v._context) + ".Provider";
|
|
113
|
-
case s:
|
|
114
|
-
return Re(t, t.render, "ForwardRef");
|
|
67
|
+
if (typeof o == "object")
|
|
68
|
+
switch (typeof o.tag == "number" && console.error(
|
|
69
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
70
|
+
), o.$$typeof) {
|
|
115
71
|
case h:
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
72
|
+
return "Portal";
|
|
73
|
+
case E:
|
|
74
|
+
return (o.displayName || "Context") + ".Provider";
|
|
75
|
+
case _:
|
|
76
|
+
return (o._context.displayName || "Context") + ".Consumer";
|
|
77
|
+
case j:
|
|
78
|
+
var x = o.render;
|
|
79
|
+
return o = o.displayName, o || (o = x.displayName || x.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
80
|
+
case A:
|
|
81
|
+
return x = o.displayName || null, x !== null ? x : e(o.type) || "Memo";
|
|
82
|
+
case D:
|
|
83
|
+
x = o._payload, o = o._init;
|
|
120
84
|
try {
|
|
121
|
-
return
|
|
85
|
+
return e(o(x));
|
|
122
86
|
} catch {
|
|
123
|
-
return null;
|
|
124
87
|
}
|
|
125
|
-
}
|
|
126
88
|
}
|
|
127
89
|
return null;
|
|
128
90
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
be.__reactDisabledLog = !0;
|
|
133
|
-
function ce() {
|
|
134
|
-
{
|
|
135
|
-
if (X === 0) {
|
|
136
|
-
ee = console.log, oe = console.info, ue = console.warn, I = console.error, re = console.group, se = console.groupCollapsed, le = console.groupEnd;
|
|
137
|
-
var t = {
|
|
138
|
-
configurable: !0,
|
|
139
|
-
enumerable: !0,
|
|
140
|
-
value: be,
|
|
141
|
-
writable: !0
|
|
142
|
-
};
|
|
143
|
-
Object.defineProperties(console, {
|
|
144
|
-
info: t,
|
|
145
|
-
log: t,
|
|
146
|
-
warn: t,
|
|
147
|
-
error: t,
|
|
148
|
-
group: t,
|
|
149
|
-
groupCollapsed: t,
|
|
150
|
-
groupEnd: t
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
X++;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
function Er() {
|
|
157
|
-
{
|
|
158
|
-
if (X--, X === 0) {
|
|
159
|
-
var t = {
|
|
160
|
-
configurable: !0,
|
|
161
|
-
enumerable: !0,
|
|
162
|
-
writable: !0
|
|
163
|
-
};
|
|
164
|
-
Object.defineProperties(console, {
|
|
165
|
-
log: U({}, t, {
|
|
166
|
-
value: ee
|
|
167
|
-
}),
|
|
168
|
-
info: U({}, t, {
|
|
169
|
-
value: oe
|
|
170
|
-
}),
|
|
171
|
-
warn: U({}, t, {
|
|
172
|
-
value: ue
|
|
173
|
-
}),
|
|
174
|
-
error: U({}, t, {
|
|
175
|
-
value: I
|
|
176
|
-
}),
|
|
177
|
-
group: U({}, t, {
|
|
178
|
-
value: re
|
|
179
|
-
}),
|
|
180
|
-
groupCollapsed: U({}, t, {
|
|
181
|
-
value: se
|
|
182
|
-
}),
|
|
183
|
-
groupEnd: U({}, t, {
|
|
184
|
-
value: le
|
|
185
|
-
})
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
X < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
189
|
-
}
|
|
91
|
+
function t(o) {
|
|
92
|
+
return "" + o;
|
|
190
93
|
}
|
|
191
|
-
|
|
192
|
-
function ge(t, o, v) {
|
|
193
|
-
{
|
|
194
|
-
if (Le === void 0)
|
|
195
|
-
try {
|
|
196
|
-
throw Error();
|
|
197
|
-
} catch (O) {
|
|
198
|
-
var S = O.stack.trim().match(/\n( *(at )?)/);
|
|
199
|
-
Le = S && S[1] || "";
|
|
200
|
-
}
|
|
201
|
-
return `
|
|
202
|
-
` + Le + t;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
var Ce = !1, Ee;
|
|
206
|
-
{
|
|
207
|
-
var xr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
208
|
-
Ee = new xr();
|
|
209
|
-
}
|
|
210
|
-
function Be(t, o) {
|
|
211
|
-
if (!t || Ce)
|
|
212
|
-
return "";
|
|
213
|
-
{
|
|
214
|
-
var v = Ee.get(t);
|
|
215
|
-
if (v !== void 0)
|
|
216
|
-
return v;
|
|
217
|
-
}
|
|
218
|
-
var S;
|
|
219
|
-
Ce = !0;
|
|
220
|
-
var O = Error.prepareStackTrace;
|
|
221
|
-
Error.prepareStackTrace = void 0;
|
|
222
|
-
var P;
|
|
223
|
-
P = Pe.current, Pe.current = null, ce();
|
|
94
|
+
function r(o) {
|
|
224
95
|
try {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
if (Object.defineProperty(w.prototype, "props", {
|
|
230
|
-
set: function() {
|
|
231
|
-
throw Error();
|
|
232
|
-
}
|
|
233
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
234
|
-
try {
|
|
235
|
-
Reflect.construct(w, []);
|
|
236
|
-
} catch (D) {
|
|
237
|
-
S = D;
|
|
238
|
-
}
|
|
239
|
-
Reflect.construct(t, [], w);
|
|
240
|
-
} else {
|
|
241
|
-
try {
|
|
242
|
-
w.call();
|
|
243
|
-
} catch (D) {
|
|
244
|
-
S = D;
|
|
245
|
-
}
|
|
246
|
-
t.call(w.prototype);
|
|
247
|
-
}
|
|
248
|
-
} else {
|
|
249
|
-
try {
|
|
250
|
-
throw Error();
|
|
251
|
-
} catch (D) {
|
|
252
|
-
S = D;
|
|
253
|
-
}
|
|
254
|
-
t();
|
|
255
|
-
}
|
|
256
|
-
} catch (D) {
|
|
257
|
-
if (D && S && typeof D.stack == "string") {
|
|
258
|
-
for (var _ = D.stack.split(`
|
|
259
|
-
`), k = S.stack.split(`
|
|
260
|
-
`), $ = _.length - 1, M = k.length - 1; $ >= 1 && M >= 0 && _[$] !== k[M]; )
|
|
261
|
-
M--;
|
|
262
|
-
for (; $ >= 1 && M >= 0; $--, M--)
|
|
263
|
-
if (_[$] !== k[M]) {
|
|
264
|
-
if ($ !== 1 || M !== 1)
|
|
265
|
-
do
|
|
266
|
-
if ($--, M--, M < 0 || _[$] !== k[M]) {
|
|
267
|
-
var V = `
|
|
268
|
-
` + _[$].replace(" at new ", " at ");
|
|
269
|
-
return t.displayName && V.includes("<anonymous>") && (V = V.replace("<anonymous>", t.displayName)), typeof t == "function" && Ee.set(t, V), V;
|
|
270
|
-
}
|
|
271
|
-
while ($ >= 1 && M >= 0);
|
|
272
|
-
break;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
} finally {
|
|
276
|
-
Ce = !1, Pe.current = P, Er(), Error.prepareStackTrace = O;
|
|
277
|
-
}
|
|
278
|
-
var ne = t ? t.displayName || t.name : "", Q = ne ? ge(ne) : "";
|
|
279
|
-
return typeof t == "function" && Ee.set(t, Q), Q;
|
|
280
|
-
}
|
|
281
|
-
function Sr(t, o, v) {
|
|
282
|
-
return Be(t, !1);
|
|
283
|
-
}
|
|
284
|
-
function _r(t) {
|
|
285
|
-
var o = t.prototype;
|
|
286
|
-
return !!(o && o.isReactComponent);
|
|
287
|
-
}
|
|
288
|
-
function xe(t, o, v) {
|
|
289
|
-
if (t == null)
|
|
290
|
-
return "";
|
|
291
|
-
if (typeof t == "function")
|
|
292
|
-
return Be(t, _r(t));
|
|
293
|
-
if (typeof t == "string")
|
|
294
|
-
return ge(t);
|
|
295
|
-
switch (t) {
|
|
296
|
-
case y:
|
|
297
|
-
return ge("Suspense");
|
|
298
|
-
case l:
|
|
299
|
-
return ge("SuspenseList");
|
|
300
|
-
}
|
|
301
|
-
if (typeof t == "object")
|
|
302
|
-
switch (t.$$typeof) {
|
|
303
|
-
case s:
|
|
304
|
-
return Sr(t.render);
|
|
305
|
-
case h:
|
|
306
|
-
return xe(t.type, o, v);
|
|
307
|
-
case x: {
|
|
308
|
-
var S = t, O = S._payload, P = S._init;
|
|
309
|
-
try {
|
|
310
|
-
return xe(P(O), o, v);
|
|
311
|
-
} catch {
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
return "";
|
|
316
|
-
}
|
|
317
|
-
var fe = Object.prototype.hasOwnProperty, ze = {}, He = p.ReactDebugCurrentFrame;
|
|
318
|
-
function Se(t) {
|
|
319
|
-
if (t) {
|
|
320
|
-
var o = t._owner, v = xe(t.type, t._source, o ? o.type : null);
|
|
321
|
-
He.setExtraStackFrame(v);
|
|
322
|
-
} else
|
|
323
|
-
He.setExtraStackFrame(null);
|
|
324
|
-
}
|
|
325
|
-
function wr(t, o, v, S, O) {
|
|
326
|
-
{
|
|
327
|
-
var P = Function.call.bind(fe);
|
|
328
|
-
for (var w in t)
|
|
329
|
-
if (P(t, w)) {
|
|
330
|
-
var _ = void 0;
|
|
331
|
-
try {
|
|
332
|
-
if (typeof t[w] != "function") {
|
|
333
|
-
var k = Error((S || "React class") + ": " + v + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
334
|
-
throw k.name = "Invariant Violation", k;
|
|
335
|
-
}
|
|
336
|
-
_ = t[w](o, w, S, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
337
|
-
} catch ($) {
|
|
338
|
-
_ = $;
|
|
339
|
-
}
|
|
340
|
-
_ && !(_ instanceof Error) && (Se(O), T("%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).", S || "React class", v, w, typeof _), Se(null)), _ instanceof Error && !(_.message in ze) && (ze[_.message] = !0, Se(O), T("Failed %s type: %s", v, _.message), Se(null));
|
|
341
|
-
}
|
|
96
|
+
t(o);
|
|
97
|
+
var x = !1;
|
|
98
|
+
} catch {
|
|
99
|
+
x = !0;
|
|
342
100
|
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
return v;
|
|
101
|
+
if (x) {
|
|
102
|
+
x = console;
|
|
103
|
+
var T = x.error, L = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
104
|
+
return T.call(
|
|
105
|
+
x,
|
|
106
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
|
+
L
|
|
108
|
+
), t(o);
|
|
352
109
|
}
|
|
353
110
|
}
|
|
354
|
-
function
|
|
111
|
+
function n(o) {
|
|
112
|
+
if (o === i) return "<>";
|
|
113
|
+
if (typeof o == "object" && o !== null && o.$$typeof === D)
|
|
114
|
+
return "<...>";
|
|
355
115
|
try {
|
|
356
|
-
|
|
116
|
+
var x = e(o);
|
|
117
|
+
return x ? "<" + x + ">" : "<...>";
|
|
357
118
|
} catch {
|
|
358
|
-
return
|
|
119
|
+
return "<...>";
|
|
359
120
|
}
|
|
360
121
|
}
|
|
361
|
-
function
|
|
362
|
-
|
|
122
|
+
function a() {
|
|
123
|
+
var o = G.A;
|
|
124
|
+
return o === null ? null : o.getOwner();
|
|
363
125
|
}
|
|
364
|
-
function
|
|
365
|
-
|
|
366
|
-
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", jr(t)), We(t);
|
|
126
|
+
function u() {
|
|
127
|
+
return Error("react-stack-top-frame");
|
|
367
128
|
}
|
|
368
|
-
|
|
369
|
-
key
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
__source: !0
|
|
373
|
-
}, Ge, Ke;
|
|
374
|
-
function Pr(t) {
|
|
375
|
-
if (fe.call(t, "ref")) {
|
|
376
|
-
var o = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
377
|
-
if (o && o.isReactWarning)
|
|
378
|
-
return !1;
|
|
129
|
+
function l(o) {
|
|
130
|
+
if (ne.call(o, "key")) {
|
|
131
|
+
var x = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
132
|
+
if (x && x.isReactWarning) return !1;
|
|
379
133
|
}
|
|
380
|
-
return
|
|
381
|
-
}
|
|
382
|
-
function
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
return t.key !== void 0;
|
|
389
|
-
}
|
|
390
|
-
function Cr(t, o) {
|
|
391
|
-
typeof t.ref == "string" && Ye.current;
|
|
392
|
-
}
|
|
393
|
-
function $r(t, o) {
|
|
394
|
-
{
|
|
395
|
-
var v = function() {
|
|
396
|
-
Ge || (Ge = !0, T("%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)", o));
|
|
397
|
-
};
|
|
398
|
-
v.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
399
|
-
get: v,
|
|
400
|
-
configurable: !0
|
|
401
|
-
});
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
function Ar(t, o) {
|
|
405
|
-
{
|
|
406
|
-
var v = function() {
|
|
407
|
-
Ke || (Ke = !0, T("%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)", o));
|
|
408
|
-
};
|
|
409
|
-
v.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
410
|
-
get: v,
|
|
411
|
-
configurable: !0
|
|
412
|
-
});
|
|
134
|
+
return o.key !== void 0;
|
|
135
|
+
}
|
|
136
|
+
function b(o, x) {
|
|
137
|
+
function T() {
|
|
138
|
+
ae || (ae = !0, console.error(
|
|
139
|
+
"%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://react.dev/link/special-props)",
|
|
140
|
+
x
|
|
141
|
+
));
|
|
413
142
|
}
|
|
143
|
+
T.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
144
|
+
get: T,
|
|
145
|
+
configurable: !0
|
|
146
|
+
});
|
|
414
147
|
}
|
|
415
|
-
|
|
416
|
-
var
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
148
|
+
function s() {
|
|
149
|
+
var o = e(this.type);
|
|
150
|
+
return F[o] || (F[o] = !0, console.error(
|
|
151
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
152
|
+
)), o = this.props.ref, o !== void 0 ? o : null;
|
|
153
|
+
}
|
|
154
|
+
function y(o, x, T, L, $, I, le, de) {
|
|
155
|
+
return T = I.ref, o = {
|
|
156
|
+
$$typeof: p,
|
|
157
|
+
type: o,
|
|
158
|
+
key: x,
|
|
159
|
+
props: I,
|
|
160
|
+
_owner: $
|
|
161
|
+
}, (T !== void 0 ? T : null) !== null ? Object.defineProperty(o, "ref", {
|
|
162
|
+
enumerable: !1,
|
|
163
|
+
get: s
|
|
164
|
+
}) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
428
165
|
configurable: !1,
|
|
429
166
|
enumerable: !1,
|
|
430
167
|
writable: !0,
|
|
431
|
-
value:
|
|
432
|
-
}), Object.defineProperty(
|
|
168
|
+
value: 0
|
|
169
|
+
}), Object.defineProperty(o, "_debugInfo", {
|
|
433
170
|
configurable: !1,
|
|
434
171
|
enumerable: !1,
|
|
435
|
-
writable: !
|
|
436
|
-
value:
|
|
437
|
-
}), Object.defineProperty(
|
|
172
|
+
writable: !0,
|
|
173
|
+
value: null
|
|
174
|
+
}), Object.defineProperty(o, "_debugStack", {
|
|
438
175
|
configurable: !1,
|
|
439
176
|
enumerable: !1,
|
|
440
|
-
writable: !
|
|
441
|
-
value:
|
|
442
|
-
}), Object.
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
}
|
|
470
|
-
var Me;
|
|
471
|
-
Me = !1;
|
|
472
|
-
function Ne(t) {
|
|
473
|
-
return typeof t == "object" && t !== null && t.$$typeof === r;
|
|
474
|
-
}
|
|
475
|
-
function Xe() {
|
|
476
|
-
{
|
|
477
|
-
if (Ae.current) {
|
|
478
|
-
var t = W(Ae.current.type);
|
|
479
|
-
if (t)
|
|
480
|
-
return `
|
|
481
|
-
|
|
482
|
-
Check the render method of \`` + t + "`.";
|
|
483
|
-
}
|
|
484
|
-
return "";
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
function qr(t) {
|
|
488
|
-
return "";
|
|
489
|
-
}
|
|
490
|
-
var Qe = {};
|
|
491
|
-
function kr(t) {
|
|
492
|
-
{
|
|
493
|
-
var o = Xe();
|
|
494
|
-
if (!o) {
|
|
495
|
-
var v = typeof t == "string" ? t : t.displayName || t.name;
|
|
496
|
-
v && (o = `
|
|
497
|
-
|
|
498
|
-
Check the top-level render call using <` + v + ">.");
|
|
499
|
-
}
|
|
500
|
-
return o;
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
function Ze(t, o) {
|
|
504
|
-
{
|
|
505
|
-
if (!t._store || t._store.validated || t.key != null)
|
|
506
|
-
return;
|
|
507
|
-
t._store.validated = !0;
|
|
508
|
-
var v = kr(o);
|
|
509
|
-
if (Qe[v])
|
|
510
|
-
return;
|
|
511
|
-
Qe[v] = !0;
|
|
512
|
-
var S = "";
|
|
513
|
-
t && t._owner && t._owner !== Ae.current && (S = " It was passed a child from " + W(t._owner.type) + "."), te(t), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, S), te(null);
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
function er(t, o) {
|
|
517
|
-
{
|
|
518
|
-
if (typeof t != "object")
|
|
519
|
-
return;
|
|
520
|
-
if ($e(t))
|
|
521
|
-
for (var v = 0; v < t.length; v++) {
|
|
522
|
-
var S = t[v];
|
|
523
|
-
Ne(S) && Ze(S, o);
|
|
524
|
-
}
|
|
525
|
-
else if (Ne(t))
|
|
526
|
-
t._store && (t._store.validated = !0);
|
|
527
|
-
else if (t) {
|
|
528
|
-
var O = d(t);
|
|
529
|
-
if (typeof O == "function" && O !== t.entries)
|
|
530
|
-
for (var P = O.call(t), w; !(w = P.next()).done; )
|
|
531
|
-
Ne(w.value) && Ze(w.value, o);
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
function Dr(t) {
|
|
536
|
-
{
|
|
537
|
-
var o = t.type;
|
|
538
|
-
if (o == null || typeof o == "string")
|
|
539
|
-
return;
|
|
540
|
-
var v;
|
|
541
|
-
if (typeof o == "function")
|
|
542
|
-
v = o.propTypes;
|
|
543
|
-
else if (typeof o == "object" && (o.$$typeof === s || // Note: Memo only checks outer props here.
|
|
544
|
-
// Inner props are checked in the reconciler.
|
|
545
|
-
o.$$typeof === h))
|
|
546
|
-
v = o.propTypes;
|
|
547
|
-
else
|
|
548
|
-
return;
|
|
549
|
-
if (v) {
|
|
550
|
-
var S = W(o);
|
|
551
|
-
wr(v, t.props, "prop", S, t);
|
|
552
|
-
} else if (o.PropTypes !== void 0 && !Me) {
|
|
553
|
-
Me = !0;
|
|
554
|
-
var O = W(o);
|
|
555
|
-
T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
|
|
556
|
-
}
|
|
557
|
-
typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
function Ir(t) {
|
|
561
|
-
{
|
|
562
|
-
for (var o = Object.keys(t.props), v = 0; v < o.length; v++) {
|
|
563
|
-
var S = o[v];
|
|
564
|
-
if (S !== "children" && S !== "key") {
|
|
565
|
-
te(t), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), te(null);
|
|
566
|
-
break;
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
t.ref !== null && (te(t), T("Invalid attribute `ref` supplied to `React.Fragment`."), te(null));
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
var rr = {};
|
|
573
|
-
function tr(t, o, v, S, O, P) {
|
|
574
|
-
{
|
|
575
|
-
var w = pe(t);
|
|
576
|
-
if (!w) {
|
|
577
|
-
var _ = "";
|
|
578
|
-
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
579
|
-
var k = qr();
|
|
580
|
-
k ? _ += k : _ += Xe();
|
|
581
|
-
var $;
|
|
582
|
-
t === null ? $ = "null" : $e(t) ? $ = "array" : t !== void 0 && t.$$typeof === r ? ($ = "<" + (W(t.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof t, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, _);
|
|
583
|
-
}
|
|
584
|
-
var M = Nr(t, o, v, O, P);
|
|
585
|
-
if (M == null)
|
|
586
|
-
return M;
|
|
587
|
-
if (w) {
|
|
588
|
-
var V = o.children;
|
|
589
|
-
if (V !== void 0)
|
|
590
|
-
if (S)
|
|
591
|
-
if ($e(V)) {
|
|
592
|
-
for (var ne = 0; ne < V.length; ne++)
|
|
593
|
-
er(V[ne], t);
|
|
594
|
-
Object.freeze && Object.freeze(V);
|
|
595
|
-
} else
|
|
596
|
-
T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
597
|
-
else
|
|
598
|
-
er(V, t);
|
|
599
|
-
}
|
|
600
|
-
if (fe.call(o, "key")) {
|
|
601
|
-
var Q = W(t), D = Object.keys(o).filter(function(Wr) {
|
|
602
|
-
return Wr !== "key";
|
|
603
|
-
}), qe = D.length > 0 ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
604
|
-
if (!rr[Q + qe]) {
|
|
605
|
-
var Hr = D.length > 0 ? "{" + D.join(": ..., ") + ": ...}" : "{}";
|
|
606
|
-
T(`A props object containing a "key" prop is being spread into JSX:
|
|
177
|
+
writable: !0,
|
|
178
|
+
value: le
|
|
179
|
+
}), Object.defineProperty(o, "_debugTask", {
|
|
180
|
+
configurable: !1,
|
|
181
|
+
enumerable: !1,
|
|
182
|
+
writable: !0,
|
|
183
|
+
value: de
|
|
184
|
+
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
185
|
+
}
|
|
186
|
+
function c(o, x, T, L, $, I, le, de) {
|
|
187
|
+
var N = x.children;
|
|
188
|
+
if (N !== void 0)
|
|
189
|
+
if (L)
|
|
190
|
+
if (ce(N)) {
|
|
191
|
+
for (L = 0; L < N.length; L++)
|
|
192
|
+
m(N[L]);
|
|
193
|
+
Object.freeze && Object.freeze(N);
|
|
194
|
+
} else
|
|
195
|
+
console.error(
|
|
196
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
|
+
);
|
|
198
|
+
else m(N);
|
|
199
|
+
if (ne.call(x, "key")) {
|
|
200
|
+
N = e(o);
|
|
201
|
+
var Y = Object.keys(x).filter(function(Ce) {
|
|
202
|
+
return Ce !== "key";
|
|
203
|
+
});
|
|
204
|
+
L = 0 < Y.length ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}", P[N + L] || (Y = 0 < Y.length ? "{" + Y.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
607
206
|
let props = %s;
|
|
608
207
|
<%s {...props} />
|
|
609
208
|
React keys must be passed directly to JSX without using spread:
|
|
610
209
|
let props = %s;
|
|
611
|
-
<%s key={someKey} {...props} />`,
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
210
|
+
<%s key={someKey} {...props} />`,
|
|
211
|
+
L,
|
|
212
|
+
N,
|
|
213
|
+
Y,
|
|
214
|
+
N
|
|
215
|
+
), P[N + L] = !0);
|
|
615
216
|
}
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
return
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
217
|
+
if (N = null, T !== void 0 && (r(T), N = "" + T), l(x) && (r(x.key), N = "" + x.key), "key" in x) {
|
|
218
|
+
T = {};
|
|
219
|
+
for (var fe in x)
|
|
220
|
+
fe !== "key" && (T[fe] = x[fe]);
|
|
221
|
+
} else T = x;
|
|
222
|
+
return N && b(
|
|
223
|
+
T,
|
|
224
|
+
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
225
|
+
), y(
|
|
226
|
+
o,
|
|
227
|
+
N,
|
|
228
|
+
I,
|
|
229
|
+
$,
|
|
230
|
+
a(),
|
|
231
|
+
T,
|
|
232
|
+
le,
|
|
233
|
+
de
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
function m(o) {
|
|
237
|
+
typeof o == "object" && o !== null && o.$$typeof === p && o._store && (o._store.validated = 1);
|
|
238
|
+
}
|
|
239
|
+
var g = pe, p = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), E = Symbol.for("react.context"), j = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), re = Symbol.for("react.client.reference"), G = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ne = Object.prototype.hasOwnProperty, ce = Array.isArray, J = console.createTask ? console.createTask : function() {
|
|
240
|
+
return null;
|
|
241
|
+
};
|
|
242
|
+
g = {
|
|
243
|
+
"react-stack-bottom-frame": function(o) {
|
|
244
|
+
return o();
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
var ae, F = {}, K = g["react-stack-bottom-frame"].bind(
|
|
248
|
+
g,
|
|
249
|
+
u
|
|
250
|
+
)(), X = J(n(u)), P = {};
|
|
251
|
+
Z.Fragment = i, Z.jsx = function(o, x, T, L, $) {
|
|
252
|
+
var I = 1e4 > G.recentlyCreatedOwnerStacks++;
|
|
253
|
+
return c(
|
|
254
|
+
o,
|
|
255
|
+
x,
|
|
256
|
+
T,
|
|
257
|
+
!1,
|
|
258
|
+
L,
|
|
259
|
+
$,
|
|
260
|
+
I ? Error("react-stack-top-frame") : K,
|
|
261
|
+
I ? J(n(o)) : X
|
|
262
|
+
);
|
|
263
|
+
}, Z.jsxs = function(o, x, T, L, $) {
|
|
264
|
+
var I = 1e4 > G.recentlyCreatedOwnerStacks++;
|
|
265
|
+
return c(
|
|
266
|
+
o,
|
|
267
|
+
x,
|
|
268
|
+
T,
|
|
269
|
+
!0,
|
|
270
|
+
L,
|
|
271
|
+
$,
|
|
272
|
+
I ? Error("react-stack-top-frame") : K,
|
|
273
|
+
I ? J(n(o)) : X
|
|
274
|
+
);
|
|
275
|
+
};
|
|
276
|
+
}()), Z;
|
|
626
277
|
}
|
|
627
|
-
var
|
|
628
|
-
function
|
|
629
|
-
return
|
|
278
|
+
var Ee;
|
|
279
|
+
function Ve() {
|
|
280
|
+
return Ee || (Ee = 1, process.env.NODE_ENV === "production" ? oe.exports = ke() : oe.exports = Ie()), oe.exports;
|
|
630
281
|
}
|
|
631
|
-
var
|
|
632
|
-
function
|
|
633
|
-
const
|
|
282
|
+
var d = Ve(), ie = (e) => `--${e}`, Se = (e) => `var(--${e})`, Te = (e, t) => `--${e}: ${t};`;
|
|
283
|
+
function ze(e, t) {
|
|
284
|
+
const r = (n) => t;
|
|
634
285
|
return {
|
|
635
|
-
b: () => `${
|
|
636
|
-
be: (
|
|
637
|
-
bm: (
|
|
638
|
-
bem: (
|
|
639
|
-
bs: (
|
|
640
|
-
ns: (
|
|
641
|
-
cb: () => `.${
|
|
642
|
-
cbe: (
|
|
643
|
-
cbm: (
|
|
644
|
-
cbem: (
|
|
645
|
-
cbs: (
|
|
646
|
-
cns: (
|
|
647
|
-
cv: (
|
|
648
|
-
cvm: (
|
|
649
|
-
const
|
|
650
|
-
for (const
|
|
651
|
-
|
|
652
|
-
return
|
|
286
|
+
b: () => `${r()}-${e}`,
|
|
287
|
+
be: (n) => `${r()}-${e}__${n}`,
|
|
288
|
+
bm: (n) => `${r()}-${e}--${n}`,
|
|
289
|
+
bem: (n, a) => `${r()}-${e}__${n}--${a}`,
|
|
290
|
+
bs: (n) => `${r()}-${e}-${n}`,
|
|
291
|
+
ns: (n) => `${r()}-${n}`,
|
|
292
|
+
cb: () => `.${r()}-${e}`,
|
|
293
|
+
cbe: (n) => `.${r()}-${e}__${n}`,
|
|
294
|
+
cbm: (n) => `.${r()}-${e}--${n}`,
|
|
295
|
+
cbem: (n, a) => `.${r()}-${e}__${n}--${a}`,
|
|
296
|
+
cbs: (n) => `.${r()}-${e}-${n}`,
|
|
297
|
+
cns: (n) => `.${r()}-${n}`,
|
|
298
|
+
cv: (n) => ie(`${r()}-${e}-${n}`),
|
|
299
|
+
cvm: (n, a = {}) => {
|
|
300
|
+
const u = r();
|
|
301
|
+
for (const l of Object.keys(n))
|
|
302
|
+
a[ie(`${u}-${e}-${l}`)] = n[l];
|
|
303
|
+
return a;
|
|
653
304
|
},
|
|
654
|
-
gcv: (
|
|
655
|
-
scv: (
|
|
656
|
-
nv: (
|
|
657
|
-
nvm: (
|
|
658
|
-
const
|
|
659
|
-
for (const
|
|
660
|
-
|
|
661
|
-
return
|
|
305
|
+
gcv: (n) => Se(`${r()}-${e}-${n}`),
|
|
306
|
+
scv: (n, a) => Te(`${r()}-${e}-${n}`, a),
|
|
307
|
+
nv: (n) => ie(`${r()}-${n}`),
|
|
308
|
+
nvm: (n, a = {}) => {
|
|
309
|
+
const u = r();
|
|
310
|
+
for (const l of Object.keys(n))
|
|
311
|
+
a[ie(`${u}-${l}`)] = n[l];
|
|
312
|
+
return a;
|
|
662
313
|
},
|
|
663
|
-
gnv: (
|
|
664
|
-
snv: (
|
|
314
|
+
gnv: (n) => Se(`${r()}-${n}`),
|
|
315
|
+
snv: (n, a) => Te(`${r()}-${n}`, a)
|
|
665
316
|
};
|
|
666
317
|
}
|
|
667
|
-
function
|
|
668
|
-
return
|
|
318
|
+
function z(e) {
|
|
319
|
+
return B(() => ze(e, "twist"), [e]);
|
|
669
320
|
}
|
|
670
|
-
var
|
|
321
|
+
var Ne = {
|
|
671
322
|
color: void 0,
|
|
672
323
|
size: void 0,
|
|
673
324
|
className: void 0,
|
|
674
325
|
style: void 0,
|
|
675
326
|
attrs: void 0
|
|
676
|
-
},
|
|
677
|
-
|
|
678
|
-
function
|
|
327
|
+
}, be = /* @__PURE__ */ W.createContext(Ne);
|
|
328
|
+
be.Provider;
|
|
329
|
+
function ee(e) {
|
|
679
330
|
"@babel/helpers - typeof";
|
|
680
|
-
return
|
|
681
|
-
return typeof
|
|
682
|
-
} : function(
|
|
683
|
-
return
|
|
684
|
-
},
|
|
331
|
+
return ee = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
332
|
+
return typeof t;
|
|
333
|
+
} : function(t) {
|
|
334
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
335
|
+
}, ee(e);
|
|
685
336
|
}
|
|
686
|
-
var
|
|
687
|
-
function
|
|
688
|
-
return
|
|
337
|
+
var De = ["attrs", "size", "title", "spin", "rotate", "color"];
|
|
338
|
+
function Be(e, t) {
|
|
339
|
+
return Ye(e) || Fe(e, t) || Pe(e, t) || He();
|
|
689
340
|
}
|
|
690
|
-
function
|
|
341
|
+
function He() {
|
|
691
342
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
692
343
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
693
344
|
}
|
|
694
|
-
function
|
|
695
|
-
var
|
|
696
|
-
if (
|
|
697
|
-
var
|
|
345
|
+
function Fe(e, t) {
|
|
346
|
+
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
347
|
+
if (r != null) {
|
|
348
|
+
var n, a, u, l, b = [], s = !0, y = !1;
|
|
698
349
|
try {
|
|
699
|
-
if (
|
|
700
|
-
} catch (
|
|
701
|
-
y = !0,
|
|
350
|
+
if (u = (r = r.call(e)).next, t !== 0) for (; !(s = (n = u.call(r)).done) && (b.push(n.value), b.length !== t); s = !0) ;
|
|
351
|
+
} catch (c) {
|
|
352
|
+
y = !0, a = c;
|
|
702
353
|
} finally {
|
|
703
354
|
try {
|
|
704
|
-
if (!s &&
|
|
355
|
+
if (!s && r.return != null && (l = r.return(), Object(l) !== l)) return;
|
|
705
356
|
} finally {
|
|
706
|
-
if (y) throw
|
|
357
|
+
if (y) throw a;
|
|
707
358
|
}
|
|
708
359
|
}
|
|
709
|
-
return
|
|
360
|
+
return b;
|
|
710
361
|
}
|
|
711
362
|
}
|
|
712
|
-
function
|
|
363
|
+
function Ye(e) {
|
|
713
364
|
if (Array.isArray(e)) return e;
|
|
714
365
|
}
|
|
715
|
-
function
|
|
716
|
-
var
|
|
717
|
-
if (!
|
|
718
|
-
if (Array.isArray(e) || (
|
|
719
|
-
|
|
720
|
-
var
|
|
366
|
+
function Ue(e, t) {
|
|
367
|
+
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
368
|
+
if (!r) {
|
|
369
|
+
if (Array.isArray(e) || (r = Pe(e)) || t) {
|
|
370
|
+
r && (e = r);
|
|
371
|
+
var n = 0, a = function() {
|
|
721
372
|
};
|
|
722
|
-
return { s:
|
|
723
|
-
return
|
|
373
|
+
return { s: a, n: function() {
|
|
374
|
+
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
724
375
|
}, e: function(y) {
|
|
725
376
|
throw y;
|
|
726
|
-
}, f:
|
|
377
|
+
}, f: a };
|
|
727
378
|
}
|
|
728
379
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
729
380
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
730
381
|
}
|
|
731
|
-
var
|
|
382
|
+
var u, l = !0, b = !1;
|
|
732
383
|
return { s: function() {
|
|
733
|
-
|
|
384
|
+
r = r.call(e);
|
|
734
385
|
}, n: function() {
|
|
735
|
-
var y =
|
|
736
|
-
return
|
|
386
|
+
var y = r.next();
|
|
387
|
+
return l = y.done, y;
|
|
737
388
|
}, e: function(y) {
|
|
738
|
-
|
|
389
|
+
b = !0, u = y;
|
|
739
390
|
}, f: function() {
|
|
740
391
|
try {
|
|
741
|
-
|
|
392
|
+
l || r.return == null || r.return();
|
|
742
393
|
} finally {
|
|
743
|
-
if (
|
|
394
|
+
if (b) throw u;
|
|
744
395
|
}
|
|
745
396
|
} };
|
|
746
397
|
}
|
|
747
|
-
function
|
|
398
|
+
function Pe(e, t) {
|
|
748
399
|
if (e) {
|
|
749
|
-
if (typeof e == "string") return
|
|
750
|
-
var
|
|
751
|
-
return
|
|
400
|
+
if (typeof e == "string") return je(e, t);
|
|
401
|
+
var r = {}.toString.call(e).slice(8, -1);
|
|
402
|
+
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? je(e, t) : void 0;
|
|
752
403
|
}
|
|
753
404
|
}
|
|
754
|
-
function
|
|
755
|
-
(
|
|
756
|
-
for (var
|
|
757
|
-
return
|
|
405
|
+
function je(e, t) {
|
|
406
|
+
(t == null || t > e.length) && (t = e.length);
|
|
407
|
+
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
408
|
+
return n;
|
|
758
409
|
}
|
|
759
|
-
function
|
|
760
|
-
return
|
|
761
|
-
for (var
|
|
762
|
-
var
|
|
763
|
-
for (var
|
|
410
|
+
function se() {
|
|
411
|
+
return se = Object.assign ? Object.assign.bind() : function(e) {
|
|
412
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
413
|
+
var r = arguments[t];
|
|
414
|
+
for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
764
415
|
}
|
|
765
416
|
return e;
|
|
766
|
-
},
|
|
417
|
+
}, se.apply(null, arguments);
|
|
767
418
|
}
|
|
768
|
-
function
|
|
769
|
-
var
|
|
419
|
+
function we(e, t) {
|
|
420
|
+
var r = Object.keys(e);
|
|
770
421
|
if (Object.getOwnPropertySymbols) {
|
|
771
|
-
var
|
|
772
|
-
|
|
773
|
-
return Object.getOwnPropertyDescriptor(e,
|
|
774
|
-
})),
|
|
422
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
423
|
+
t && (n = n.filter(function(a) {
|
|
424
|
+
return Object.getOwnPropertyDescriptor(e, a).enumerable;
|
|
425
|
+
})), r.push.apply(r, n);
|
|
775
426
|
}
|
|
776
|
-
return
|
|
427
|
+
return r;
|
|
777
428
|
}
|
|
778
|
-
function
|
|
779
|
-
for (var
|
|
780
|
-
var
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(
|
|
784
|
-
Object.defineProperty(e,
|
|
429
|
+
function te(e) {
|
|
430
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
431
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
432
|
+
t % 2 ? we(Object(r), !0).forEach(function(n) {
|
|
433
|
+
We(e, n, r[n]);
|
|
434
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : we(Object(r)).forEach(function(n) {
|
|
435
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
785
436
|
});
|
|
786
437
|
}
|
|
787
438
|
return e;
|
|
788
439
|
}
|
|
789
|
-
function
|
|
790
|
-
return (
|
|
440
|
+
function We(e, t, r) {
|
|
441
|
+
return (t = Ge(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
791
442
|
}
|
|
792
|
-
function
|
|
793
|
-
var
|
|
794
|
-
return
|
|
795
|
-
}
|
|
796
|
-
function
|
|
797
|
-
if (
|
|
798
|
-
var
|
|
799
|
-
if (
|
|
800
|
-
var
|
|
801
|
-
if (
|
|
443
|
+
function Ge(e) {
|
|
444
|
+
var t = Je(e, "string");
|
|
445
|
+
return ee(t) == "symbol" ? t : t + "";
|
|
446
|
+
}
|
|
447
|
+
function Je(e, t) {
|
|
448
|
+
if (ee(e) != "object" || !e) return e;
|
|
449
|
+
var r = e[Symbol.toPrimitive];
|
|
450
|
+
if (r !== void 0) {
|
|
451
|
+
var n = r.call(e, t);
|
|
452
|
+
if (ee(n) != "object") return n;
|
|
802
453
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
803
454
|
}
|
|
804
|
-
return (
|
|
455
|
+
return (t === "string" ? String : Number)(e);
|
|
805
456
|
}
|
|
806
|
-
function
|
|
457
|
+
function Ke(e, t) {
|
|
807
458
|
if (e == null) return {};
|
|
808
|
-
var n, a
|
|
459
|
+
var r, n, a = Xe(e, t);
|
|
809
460
|
if (Object.getOwnPropertySymbols) {
|
|
810
|
-
var
|
|
811
|
-
for (
|
|
461
|
+
var u = Object.getOwnPropertySymbols(e);
|
|
462
|
+
for (n = 0; n < u.length; n++) r = u[n], t.includes(r) || {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
|
|
812
463
|
}
|
|
813
|
-
return
|
|
464
|
+
return a;
|
|
814
465
|
}
|
|
815
|
-
function
|
|
466
|
+
function Xe(e, t) {
|
|
816
467
|
if (e == null) return {};
|
|
817
|
-
var
|
|
818
|
-
for (var
|
|
819
|
-
if (
|
|
820
|
-
n
|
|
468
|
+
var r = {};
|
|
469
|
+
for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
|
|
470
|
+
if (t.includes(n)) continue;
|
|
471
|
+
r[n] = e[n];
|
|
821
472
|
}
|
|
822
|
-
return
|
|
473
|
+
return r;
|
|
823
474
|
}
|
|
824
|
-
function
|
|
825
|
-
var
|
|
826
|
-
var
|
|
827
|
-
return
|
|
475
|
+
function Qe(e) {
|
|
476
|
+
var t = e.attrs, r = e.size, n = e.title, a = e.spin, u = e.rotate, l = e.color, b = Ke(e, De), s = function(c) {
|
|
477
|
+
var m = r || c.size || "1em", g, p = "", h = "";
|
|
478
|
+
return c.className && (g = c.className), e.className && (g = g ? "".concat(g, " ").concat(e.className) : e.className), a && (g ? g += " twist-icon-loading" : g = "twist-icon-loading"), u && (p = "rotate(".concat(u, "deg)"), h = "rotate(".concat(u, "deg)")), /* @__PURE__ */ W.createElement("svg", se({
|
|
828
479
|
xmlns: "http://www.w3.org/2000/svg"
|
|
829
|
-
},
|
|
830
|
-
className:
|
|
831
|
-
style:
|
|
832
|
-
color:
|
|
833
|
-
msTransform:
|
|
834
|
-
transform:
|
|
835
|
-
},
|
|
836
|
-
width:
|
|
837
|
-
height:
|
|
838
|
-
}),
|
|
480
|
+
}, c.attrs, t, b, {
|
|
481
|
+
className: g,
|
|
482
|
+
style: te(te({
|
|
483
|
+
color: l || c.color,
|
|
484
|
+
msTransform: p,
|
|
485
|
+
transform: h
|
|
486
|
+
}, c.style), e.style),
|
|
487
|
+
width: m,
|
|
488
|
+
height: m
|
|
489
|
+
}), n && /* @__PURE__ */ W.createElement("title", null, n), e.children);
|
|
839
490
|
};
|
|
840
|
-
return
|
|
491
|
+
return be !== void 0 ? /* @__PURE__ */ W.createElement(be.Consumer, null, function(y) {
|
|
841
492
|
return s(y);
|
|
842
|
-
}) : s(
|
|
493
|
+
}) : s(Ne);
|
|
843
494
|
}
|
|
844
|
-
function
|
|
845
|
-
var
|
|
495
|
+
function Ze(e) {
|
|
496
|
+
var t = {}, r = e.split(";"), n = Ue(r), a;
|
|
846
497
|
try {
|
|
847
|
-
for (
|
|
848
|
-
var
|
|
498
|
+
for (n.s(); !(a = n.n()).done; ) {
|
|
499
|
+
var u = a.value, l = u.split(":"), b = Be(l, 2), s = b[0], y = b[1];
|
|
849
500
|
if (s && y) {
|
|
850
|
-
var
|
|
851
|
-
return
|
|
501
|
+
var c = s.trim().replace(/-./g, function(m) {
|
|
502
|
+
return m.charAt(1).toUpperCase();
|
|
852
503
|
});
|
|
853
|
-
|
|
504
|
+
t[c] = y.trim();
|
|
854
505
|
}
|
|
855
506
|
}
|
|
856
|
-
} catch (
|
|
857
|
-
|
|
507
|
+
} catch (m) {
|
|
508
|
+
n.e(m);
|
|
858
509
|
} finally {
|
|
859
|
-
|
|
510
|
+
n.f();
|
|
860
511
|
}
|
|
861
|
-
return
|
|
862
|
-
}
|
|
863
|
-
function
|
|
864
|
-
return e && e.map(function(
|
|
865
|
-
return /* @__PURE__ */
|
|
866
|
-
key:
|
|
867
|
-
style:
|
|
868
|
-
}),
|
|
512
|
+
return t;
|
|
513
|
+
}
|
|
514
|
+
function $e(e) {
|
|
515
|
+
return e && e.map(function(t, r) {
|
|
516
|
+
return /* @__PURE__ */ W.createElement(t.tag, te(te({}, t.attrs), {}, {
|
|
517
|
+
key: r,
|
|
518
|
+
style: t.attrs.style ? Ze(t.attrs.style) : null
|
|
519
|
+
}), $e(t.children));
|
|
869
520
|
});
|
|
870
521
|
}
|
|
871
|
-
function
|
|
872
|
-
return function(
|
|
873
|
-
return /* @__PURE__ */
|
|
874
|
-
attrs:
|
|
875
|
-
},
|
|
522
|
+
function R(e) {
|
|
523
|
+
return function(t) {
|
|
524
|
+
return /* @__PURE__ */ W.createElement(Qe, se({
|
|
525
|
+
attrs: te({}, e.attrs)
|
|
526
|
+
}, t), $e(e.children));
|
|
876
527
|
};
|
|
877
528
|
}
|
|
878
|
-
function
|
|
879
|
-
return
|
|
529
|
+
function et(e) {
|
|
530
|
+
return R({ 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);
|
|
880
531
|
}
|
|
881
|
-
function
|
|
882
|
-
return
|
|
532
|
+
function tt(e) {
|
|
533
|
+
return R({ 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);
|
|
883
534
|
}
|
|
884
|
-
function
|
|
885
|
-
return
|
|
535
|
+
function rt(e) {
|
|
536
|
+
return R({ attrs: { viewBox: "0 0 1024 1024" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M512 1024c-69.1 0-136.2-13.5-199.3-40.2C251.7 958 197 921 150 874S66 772.3 40.2 711.3C13.5 648.2 0 581.1 0 512c0-19.9 16.1-36 36-36s36 16.1 36 36c0 59.4 11.6 117 34.6 171.3c22.2 52.4 53.9 99.5 94.3 139.9s87.5 72.2 139.9 94.3C395 940.4 452.6 952 512 952s117-11.6 171.3-34.6c52.4-22.2 99.5-53.9 139.9-94.3s72.2-87.5 94.3-139.9C940.4 629 952 571.4 952 512s-11.6-117-34.6-171.3a440.5 440.5 0 0 0-94.3-139.9a437.7 437.7 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.2C772.3 66 827 103 874 150s83.9 101.8 109.7 162.7c26.7 63.1 40.2 130.2 40.2 199.3s-13.5 136.2-40.2 199.3C958 772.3 921 827 874 874s-101.8 83.9-162.7 109.7c-63.1 26.8-130.2 40.3-199.3 40.3" } }] })(e);
|
|
886
537
|
}
|
|
887
|
-
function
|
|
888
|
-
return
|
|
538
|
+
function nt(e) {
|
|
539
|
+
return R({ 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);
|
|
889
540
|
}
|
|
890
|
-
function
|
|
891
|
-
return
|
|
541
|
+
function at(e) {
|
|
542
|
+
return R({ 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);
|
|
892
543
|
}
|
|
893
|
-
function
|
|
894
|
-
return
|
|
544
|
+
function ot(e) {
|
|
545
|
+
return R({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z" } }] })(e);
|
|
895
546
|
}
|
|
896
|
-
function
|
|
897
|
-
return
|
|
547
|
+
function it(e) {
|
|
548
|
+
return R({ 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);
|
|
898
549
|
}
|
|
899
|
-
function
|
|
900
|
-
return
|
|
550
|
+
function ut(e) {
|
|
551
|
+
return R({ 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);
|
|
901
552
|
}
|
|
902
|
-
function
|
|
903
|
-
return
|
|
553
|
+
function st(e) {
|
|
554
|
+
return R({ 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);
|
|
904
555
|
}
|
|
905
|
-
function
|
|
906
|
-
return
|
|
556
|
+
function ct(e) {
|
|
557
|
+
return R({ 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);
|
|
907
558
|
}
|
|
908
|
-
function
|
|
909
|
-
return
|
|
559
|
+
function lt(e) {
|
|
560
|
+
return R({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14 19V5h4v14zm-8 0V5h4v14z" } }] })(e);
|
|
910
561
|
}
|
|
911
|
-
function
|
|
912
|
-
return
|
|
562
|
+
function dt(e) {
|
|
563
|
+
return R({ 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);
|
|
913
564
|
}
|
|
914
|
-
function
|
|
915
|
-
return
|
|
565
|
+
function ft(e) {
|
|
566
|
+
return R({ 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);
|
|
916
567
|
}
|
|
917
|
-
function
|
|
918
|
-
return
|
|
568
|
+
function mt(e) {
|
|
569
|
+
return R({ 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);
|
|
919
570
|
}
|
|
920
|
-
function
|
|
921
|
-
return
|
|
571
|
+
function vt(e) {
|
|
572
|
+
return R({ 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);
|
|
922
573
|
}
|
|
923
|
-
function
|
|
924
|
-
return
|
|
574
|
+
function ht(e) {
|
|
575
|
+
return R({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7 15V9h4l5-5v16l-5-5z" } }] })(e);
|
|
925
576
|
}
|
|
926
|
-
function
|
|
927
|
-
return
|
|
577
|
+
function yt(e) {
|
|
578
|
+
return R({ 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);
|
|
928
579
|
}
|
|
929
|
-
function
|
|
930
|
-
return
|
|
580
|
+
function bt(e) {
|
|
581
|
+
return R({ attrs: { viewBox: "0 0 24 24" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M18.25 12L8.5 17.629V6.37z" } }] })(e);
|
|
931
582
|
}
|
|
932
|
-
function
|
|
933
|
-
if (!
|
|
934
|
-
let
|
|
935
|
-
return
|
|
583
|
+
function me(e, t) {
|
|
584
|
+
if (!t.current) return 0;
|
|
585
|
+
let r = (e.clientX - t.current.getBoundingClientRect().left) / t.current.clientWidth;
|
|
586
|
+
return r = Math.max(r, 0), r = Math.min(r, 1), r = Math.floor(r * 100) / 100, r;
|
|
936
587
|
}
|
|
937
|
-
function
|
|
938
|
-
if (!
|
|
939
|
-
let
|
|
940
|
-
return
|
|
588
|
+
function ve(e, t) {
|
|
589
|
+
if (!t.current) return 0;
|
|
590
|
+
let r = 1 - (e.clientY - t.current.getBoundingClientRect().top) / t.current.clientHeight;
|
|
591
|
+
return r = Math.max(r, 0), r = Math.min(r, 1), r = Math.floor(r * 100) / 100, r;
|
|
941
592
|
}
|
|
942
|
-
function
|
|
943
|
-
var r, n
|
|
944
|
-
if (typeof e == "string" || typeof e == "number")
|
|
593
|
+
function Me(e) {
|
|
594
|
+
var t, r, n = "";
|
|
595
|
+
if (typeof e == "string" || typeof e == "number") n += e;
|
|
945
596
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
946
|
-
var
|
|
947
|
-
for (
|
|
948
|
-
} else for (
|
|
949
|
-
return
|
|
597
|
+
var a = e.length;
|
|
598
|
+
for (t = 0; t < a; t++) e[t] && (r = Me(e[t])) && (n && (n += " "), n += r);
|
|
599
|
+
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
600
|
+
return n;
|
|
950
601
|
}
|
|
951
|
-
function
|
|
952
|
-
for (var e,
|
|
953
|
-
return
|
|
602
|
+
function w() {
|
|
603
|
+
for (var e, t, r = 0, n = "", a = arguments.length; r < a; r++) (e = arguments[r]) && (t = Me(e)) && (n && (n += " "), n += t);
|
|
604
|
+
return n;
|
|
954
605
|
}
|
|
955
|
-
function
|
|
606
|
+
function pt({
|
|
956
607
|
bufferedPercentage: e,
|
|
957
|
-
playedPercentage:
|
|
958
|
-
onSeek:
|
|
608
|
+
playedPercentage: t,
|
|
609
|
+
onSeek: r
|
|
959
610
|
}) {
|
|
960
|
-
const
|
|
961
|
-
|
|
962
|
-
s.current ||
|
|
963
|
-
}, [
|
|
964
|
-
const y =
|
|
965
|
-
(
|
|
611
|
+
const n = z("aplayer-bar"), a = z("aplayer-icon"), u = M(null), [l, b] = V(t), s = M(!1);
|
|
612
|
+
q(() => {
|
|
613
|
+
s.current || b(t);
|
|
614
|
+
}, [t]);
|
|
615
|
+
const y = S(
|
|
616
|
+
(c) => {
|
|
966
617
|
s.current = !0;
|
|
967
|
-
const
|
|
968
|
-
|
|
969
|
-
const
|
|
970
|
-
const
|
|
971
|
-
|
|
972
|
-
},
|
|
973
|
-
document.removeEventListener("mousemove",
|
|
974
|
-
const
|
|
975
|
-
|
|
618
|
+
const m = me(c, u);
|
|
619
|
+
b(m);
|
|
620
|
+
const g = (h) => {
|
|
621
|
+
const i = me(h, u);
|
|
622
|
+
b(i);
|
|
623
|
+
}, p = (h) => {
|
|
624
|
+
document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", p);
|
|
625
|
+
const i = me(h, u);
|
|
626
|
+
b(i), r == null || r(i), s.current = !1;
|
|
976
627
|
};
|
|
977
|
-
document.addEventListener("mousemove",
|
|
628
|
+
document.addEventListener("mousemove", g), document.addEventListener("mouseup", p);
|
|
978
629
|
},
|
|
979
|
-
[
|
|
630
|
+
[r]
|
|
980
631
|
);
|
|
981
|
-
return /* @__PURE__ */
|
|
632
|
+
return /* @__PURE__ */ d.jsx(
|
|
982
633
|
"div",
|
|
983
634
|
{
|
|
984
|
-
ref:
|
|
985
|
-
className:
|
|
635
|
+
ref: u,
|
|
636
|
+
className: w(n.b(), n.bs("vars")),
|
|
986
637
|
onMouseDown: y,
|
|
987
638
|
role: "slider",
|
|
988
639
|
"aria-label": "Audio progress",
|
|
989
|
-
"aria-valuenow":
|
|
640
|
+
"aria-valuenow": l ? l * 100 : 0,
|
|
990
641
|
"aria-valuemin": 0,
|
|
991
642
|
"aria-valuemax": 100,
|
|
992
643
|
"aria-live": "polite",
|
|
993
|
-
children: /* @__PURE__ */
|
|
994
|
-
typeof e < "u" ? /* @__PURE__ */
|
|
644
|
+
children: /* @__PURE__ */ d.jsxs("div", { className: n.be("inner"), children: [
|
|
645
|
+
typeof e < "u" ? /* @__PURE__ */ d.jsx(
|
|
995
646
|
"div",
|
|
996
647
|
{
|
|
997
|
-
className:
|
|
648
|
+
className: n.be("loaded"),
|
|
998
649
|
style: { width: `${e * 100}%` }
|
|
999
650
|
}
|
|
1000
651
|
) : null,
|
|
1001
|
-
typeof
|
|
652
|
+
typeof l < "u" ? /* @__PURE__ */ d.jsx(
|
|
1002
653
|
"div",
|
|
1003
654
|
{
|
|
1004
|
-
className:
|
|
655
|
+
className: n.be("played"),
|
|
1005
656
|
style: {
|
|
1006
|
-
width: `${
|
|
657
|
+
width: `${l * 100}%`
|
|
1007
658
|
},
|
|
1008
|
-
children: /* @__PURE__ */
|
|
659
|
+
children: /* @__PURE__ */ d.jsx(
|
|
1009
660
|
"span",
|
|
1010
661
|
{
|
|
1011
|
-
className:
|
|
1012
|
-
children: /* @__PURE__ */
|
|
662
|
+
className: n.be("thumb"),
|
|
663
|
+
children: /* @__PURE__ */ d.jsx("span", { className: w(a.bs("loading")), children: /* @__PURE__ */ d.jsx(rt, {}) })
|
|
1013
664
|
}
|
|
1014
665
|
)
|
|
1015
666
|
}
|
|
@@ -1018,49 +669,49 @@ function Ot({
|
|
|
1018
669
|
}
|
|
1019
670
|
);
|
|
1020
671
|
}
|
|
1021
|
-
function
|
|
672
|
+
function gt({
|
|
1022
673
|
volume: e,
|
|
1023
|
-
muted:
|
|
1024
|
-
onToggleMuted:
|
|
1025
|
-
onChangeVolume:
|
|
674
|
+
muted: t,
|
|
675
|
+
onToggleMuted: r,
|
|
676
|
+
onChangeVolume: n
|
|
1026
677
|
}) {
|
|
1027
|
-
const
|
|
1028
|
-
(
|
|
1029
|
-
|
|
1030
|
-
const
|
|
1031
|
-
|
|
1032
|
-
},
|
|
1033
|
-
document.removeEventListener("mouseup",
|
|
678
|
+
const a = z("aplayer-volumn"), u = z("aplayer-icon"), l = M(null), [b, s] = V(!1), y = S(
|
|
679
|
+
(c) => {
|
|
680
|
+
n(ve(c, l)), s(!0);
|
|
681
|
+
const m = (p) => {
|
|
682
|
+
n(ve(p, l));
|
|
683
|
+
}, g = (p) => {
|
|
684
|
+
document.removeEventListener("mouseup", g), document.removeEventListener("mousemove", m), s(!1), n(ve(p, l));
|
|
1034
685
|
};
|
|
1035
|
-
document.addEventListener("mousemove",
|
|
686
|
+
document.addEventListener("mousemove", m), document.addEventListener("mouseup", g);
|
|
1036
687
|
},
|
|
1037
|
-
[
|
|
688
|
+
[n]
|
|
1038
689
|
);
|
|
1039
|
-
return /* @__PURE__ */
|
|
1040
|
-
/* @__PURE__ */
|
|
690
|
+
return /* @__PURE__ */ d.jsxs("div", { className: w(a.b(), a.bs("vars")), children: [
|
|
691
|
+
/* @__PURE__ */ d.jsx(
|
|
1041
692
|
"button",
|
|
1042
693
|
{
|
|
1043
694
|
type: "button",
|
|
1044
|
-
className:
|
|
1045
|
-
onClick: () =>
|
|
1046
|
-
"aria-label":
|
|
1047
|
-
children:
|
|
695
|
+
className: w(u.b(), u.bs("volume-down")),
|
|
696
|
+
onClick: () => r(),
|
|
697
|
+
"aria-label": t || !e ? "Muted" : "unMuted",
|
|
698
|
+
children: t || !e ? /* @__PURE__ */ d.jsx(ht, {}) : e >= 1 ? /* @__PURE__ */ d.jsx(yt, {}) : /* @__PURE__ */ d.jsx(vt, {})
|
|
1048
699
|
}
|
|
1049
700
|
),
|
|
1050
|
-
/* @__PURE__ */
|
|
701
|
+
/* @__PURE__ */ d.jsx(
|
|
1051
702
|
"div",
|
|
1052
703
|
{
|
|
1053
|
-
className:
|
|
1054
|
-
[
|
|
704
|
+
className: w(a.be("bar-wrap"), {
|
|
705
|
+
[a.bem("bar-wrap", "active")]: b
|
|
1055
706
|
}),
|
|
1056
|
-
ref:
|
|
707
|
+
ref: l,
|
|
1057
708
|
onMouseDown: y,
|
|
1058
|
-
children: /* @__PURE__ */
|
|
709
|
+
children: /* @__PURE__ */ d.jsx("div", { className: a.be("bar"), children: /* @__PURE__ */ d.jsx(
|
|
1059
710
|
"div",
|
|
1060
711
|
{
|
|
1061
|
-
className:
|
|
712
|
+
className: a.be("thumb"),
|
|
1062
713
|
style: {
|
|
1063
|
-
height:
|
|
714
|
+
height: t ? 0 : `${e * 100}%`
|
|
1064
715
|
}
|
|
1065
716
|
}
|
|
1066
717
|
) })
|
|
@@ -1068,156 +719,156 @@ function Rt({
|
|
|
1068
719
|
)
|
|
1069
720
|
] });
|
|
1070
721
|
}
|
|
1071
|
-
function
|
|
722
|
+
function _e(e) {
|
|
1072
723
|
if (typeof e > "u")
|
|
1073
724
|
return "--:--";
|
|
1074
725
|
if (Number.isNaN(e))
|
|
1075
726
|
return "00:00";
|
|
1076
|
-
const
|
|
727
|
+
const t = (l) => l < 10 ? `0${l}` : `${l}`, r = Math.trunc(e / 60), n = Math.trunc(e - r * 60), a = Math.trunc(r / 60), u = Math.trunc(
|
|
1077
728
|
e / 60 - 60 * Math.trunc(e / 60 / 60)
|
|
1078
729
|
);
|
|
1079
|
-
return e >= 3600 ? `${
|
|
730
|
+
return e >= 3600 ? `${t(a)}:${t(u)}:${t(n)}` : `${t(r)}:${t(n)}`;
|
|
1080
731
|
}
|
|
1081
|
-
function
|
|
732
|
+
function xt({
|
|
1082
733
|
volume: e,
|
|
1083
|
-
onChangeVolume:
|
|
1084
|
-
muted:
|
|
1085
|
-
currentTime:
|
|
1086
|
-
audioDurationSeconds:
|
|
1087
|
-
bufferedSeconds:
|
|
1088
|
-
onToggleMenu:
|
|
1089
|
-
onToggleMuted:
|
|
734
|
+
onChangeVolume: t,
|
|
735
|
+
muted: r,
|
|
736
|
+
currentTime: n,
|
|
737
|
+
audioDurationSeconds: a,
|
|
738
|
+
bufferedSeconds: u,
|
|
739
|
+
onToggleMenu: l,
|
|
740
|
+
onToggleMuted: b,
|
|
1090
741
|
order: s,
|
|
1091
742
|
onOrderChange: y,
|
|
1092
|
-
loop:
|
|
1093
|
-
onLoopChange:
|
|
1094
|
-
onSeek:
|
|
1095
|
-
isPlaying:
|
|
1096
|
-
onTogglePlay:
|
|
1097
|
-
onSkipForward:
|
|
1098
|
-
onSkipBack:
|
|
1099
|
-
showLyrics:
|
|
1100
|
-
onToggleLyrics:
|
|
743
|
+
loop: c,
|
|
744
|
+
onLoopChange: m,
|
|
745
|
+
onSeek: g,
|
|
746
|
+
isPlaying: p,
|
|
747
|
+
onTogglePlay: h,
|
|
748
|
+
onSkipForward: i,
|
|
749
|
+
onSkipBack: f,
|
|
750
|
+
showLyrics: v = !0,
|
|
751
|
+
onToggleLyrics: _
|
|
1101
752
|
}) {
|
|
1102
|
-
const
|
|
1103
|
-
const
|
|
753
|
+
const E = z("aplayer-controller"), j = z("aplayer-icon"), C = S(() => {
|
|
754
|
+
const A = {
|
|
1104
755
|
list: "random",
|
|
1105
756
|
random: "list"
|
|
1106
757
|
}[s];
|
|
1107
|
-
y(
|
|
1108
|
-
}, [s, y]),
|
|
1109
|
-
const
|
|
758
|
+
y(A);
|
|
759
|
+
}, [s, y]), k = S(() => {
|
|
760
|
+
const A = {
|
|
1110
761
|
all: "one",
|
|
1111
762
|
one: "none",
|
|
1112
763
|
none: "all"
|
|
1113
|
-
}[
|
|
1114
|
-
|
|
1115
|
-
}, [
|
|
1116
|
-
return /* @__PURE__ */
|
|
764
|
+
}[c];
|
|
765
|
+
m(A);
|
|
766
|
+
}, [c, m]);
|
|
767
|
+
return /* @__PURE__ */ d.jsxs(
|
|
1117
768
|
"div",
|
|
1118
769
|
{
|
|
1119
|
-
className:
|
|
770
|
+
className: w(E.b(), E.bs("vars")),
|
|
1120
771
|
role: "group",
|
|
1121
772
|
"aria-label": "Audio Controls",
|
|
1122
773
|
children: [
|
|
1123
|
-
/* @__PURE__ */
|
|
1124
|
-
|
|
774
|
+
/* @__PURE__ */ d.jsx(
|
|
775
|
+
pt,
|
|
1125
776
|
{
|
|
1126
|
-
playedPercentage: typeof
|
|
1127
|
-
bufferedPercentage: typeof
|
|
1128
|
-
onSeek: (
|
|
777
|
+
playedPercentage: typeof n > "u" || typeof a > "u" ? void 0 : n / a,
|
|
778
|
+
bufferedPercentage: typeof u > "u" || typeof a > "u" ? void 0 : u / a,
|
|
779
|
+
onSeek: (A) => g == null ? void 0 : g(A * a)
|
|
1129
780
|
}
|
|
1130
781
|
),
|
|
1131
|
-
/* @__PURE__ */
|
|
1132
|
-
/* @__PURE__ */
|
|
1133
|
-
/* @__PURE__ */
|
|
782
|
+
/* @__PURE__ */ d.jsxs("div", { className: E.be("time"), children: [
|
|
783
|
+
/* @__PURE__ */ d.jsxs("span", { className: E.be("time-inner"), "aria-live": "polite", children: [
|
|
784
|
+
/* @__PURE__ */ d.jsx("span", { className: E.be("ptime"), children: _e(n) }),
|
|
1134
785
|
" / ",
|
|
1135
|
-
/* @__PURE__ */
|
|
786
|
+
/* @__PURE__ */ d.jsx("span", { className: E.be("dtime"), children: _e(a) })
|
|
1136
787
|
] }),
|
|
1137
|
-
/* @__PURE__ */
|
|
788
|
+
/* @__PURE__ */ d.jsx(
|
|
1138
789
|
"button",
|
|
1139
790
|
{
|
|
1140
|
-
className:
|
|
1141
|
-
onClick:
|
|
791
|
+
className: w(j.b(), j.bs("back")),
|
|
792
|
+
onClick: f,
|
|
1142
793
|
type: "button",
|
|
1143
794
|
"aria-label": "Previous track",
|
|
1144
|
-
children: /* @__PURE__ */
|
|
795
|
+
children: /* @__PURE__ */ d.jsx(et, {})
|
|
1145
796
|
}
|
|
1146
797
|
),
|
|
1147
|
-
/* @__PURE__ */
|
|
798
|
+
/* @__PURE__ */ d.jsx(
|
|
1148
799
|
"button",
|
|
1149
800
|
{
|
|
1150
|
-
className:
|
|
1151
|
-
onClick:
|
|
801
|
+
className: w(j.b(), j.bs("play")),
|
|
802
|
+
onClick: h,
|
|
1152
803
|
type: "button",
|
|
1153
|
-
"aria-label":
|
|
1154
|
-
children:
|
|
804
|
+
"aria-label": p ? "Pause audio" : "Play audio",
|
|
805
|
+
children: p ? /* @__PURE__ */ d.jsx(lt, {}) : /* @__PURE__ */ d.jsx(dt, {})
|
|
1155
806
|
}
|
|
1156
807
|
),
|
|
1157
|
-
/* @__PURE__ */
|
|
808
|
+
/* @__PURE__ */ d.jsx(
|
|
1158
809
|
"button",
|
|
1159
810
|
{
|
|
1160
|
-
className:
|
|
1161
|
-
onClick:
|
|
811
|
+
className: w(j.b(), j.bs("forward")),
|
|
812
|
+
onClick: i,
|
|
1162
813
|
type: "button",
|
|
1163
814
|
"aria-label": "Next track",
|
|
1164
|
-
children: /* @__PURE__ */
|
|
815
|
+
children: /* @__PURE__ */ d.jsx(tt, {})
|
|
1165
816
|
}
|
|
1166
817
|
),
|
|
1167
|
-
/* @__PURE__ */
|
|
1168
|
-
|
|
818
|
+
/* @__PURE__ */ d.jsx(
|
|
819
|
+
gt,
|
|
1169
820
|
{
|
|
1170
821
|
volume: e,
|
|
1171
|
-
muted:
|
|
1172
|
-
onToggleMuted:
|
|
1173
|
-
onChangeVolume:
|
|
822
|
+
muted: r,
|
|
823
|
+
onToggleMuted: b,
|
|
824
|
+
onChangeVolume: t
|
|
1174
825
|
}
|
|
1175
826
|
),
|
|
1176
|
-
/* @__PURE__ */
|
|
827
|
+
/* @__PURE__ */ d.jsx(
|
|
1177
828
|
"button",
|
|
1178
829
|
{
|
|
1179
|
-
className:
|
|
1180
|
-
onClick:
|
|
830
|
+
className: w(j.b(), j.bs("order")),
|
|
831
|
+
onClick: C,
|
|
1181
832
|
type: "button",
|
|
1182
833
|
"aria-label": `Playback order: ${s}`,
|
|
1183
|
-
children: { list: /* @__PURE__ */
|
|
834
|
+
children: { list: /* @__PURE__ */ d.jsx(st, {}), random: /* @__PURE__ */ d.jsx(ut, {}) }[s]
|
|
1184
835
|
}
|
|
1185
836
|
),
|
|
1186
|
-
/* @__PURE__ */
|
|
837
|
+
/* @__PURE__ */ d.jsx(
|
|
1187
838
|
"button",
|
|
1188
839
|
{
|
|
1189
|
-
className:
|
|
1190
|
-
onClick:
|
|
840
|
+
className: w(j.b(), j.bs("order")),
|
|
841
|
+
onClick: k,
|
|
1191
842
|
type: "button",
|
|
1192
|
-
"aria-label": `Loop mode: ${
|
|
843
|
+
"aria-label": `Loop mode: ${c}`,
|
|
1193
844
|
children: {
|
|
1194
|
-
all: /* @__PURE__ */
|
|
1195
|
-
one: /* @__PURE__ */
|
|
1196
|
-
none: /* @__PURE__ */
|
|
1197
|
-
}[
|
|
845
|
+
all: /* @__PURE__ */ d.jsx(mt, {}),
|
|
846
|
+
one: /* @__PURE__ */ d.jsx(ft, {}),
|
|
847
|
+
none: /* @__PURE__ */ d.jsx(it, {})
|
|
848
|
+
}[c]
|
|
1198
849
|
}
|
|
1199
850
|
),
|
|
1200
|
-
/* @__PURE__ */
|
|
851
|
+
/* @__PURE__ */ d.jsx(
|
|
1201
852
|
"button",
|
|
1202
853
|
{
|
|
1203
854
|
type: "button",
|
|
1204
|
-
className:
|
|
1205
|
-
onClick: () =>
|
|
855
|
+
className: w(j.b(), j.bs("menu")),
|
|
856
|
+
onClick: () => l == null ? void 0 : l(),
|
|
1206
857
|
"aria-label": "Toggle playlist menu",
|
|
1207
|
-
children: /* @__PURE__ */
|
|
858
|
+
children: /* @__PURE__ */ d.jsx(ot, {})
|
|
1208
859
|
}
|
|
1209
860
|
),
|
|
1210
|
-
/* @__PURE__ */
|
|
861
|
+
/* @__PURE__ */ d.jsx(
|
|
1211
862
|
"button",
|
|
1212
863
|
{
|
|
1213
864
|
type: "button",
|
|
1214
|
-
className:
|
|
1215
|
-
[
|
|
865
|
+
className: w(j.b(), j.bs("lrc"), {
|
|
866
|
+
[j.ns("lrc-inactivity")]: !v
|
|
1216
867
|
}),
|
|
1217
|
-
onClick:
|
|
1218
|
-
"aria-label":
|
|
1219
|
-
"aria-pressed":
|
|
1220
|
-
children: /* @__PURE__ */
|
|
868
|
+
onClick: _,
|
|
869
|
+
"aria-label": v ? "Hide lyrics" : "Show lyrics",
|
|
870
|
+
"aria-pressed": v,
|
|
871
|
+
children: /* @__PURE__ */ d.jsx(ct, {})
|
|
1221
872
|
}
|
|
1222
873
|
)
|
|
1223
874
|
] })
|
|
@@ -1225,110 +876,110 @@ function Pt({
|
|
|
1225
876
|
}
|
|
1226
877
|
);
|
|
1227
878
|
}
|
|
1228
|
-
function
|
|
879
|
+
function Et({
|
|
1229
880
|
open: e,
|
|
1230
|
-
audio:
|
|
1231
|
-
playingAudioUrl:
|
|
1232
|
-
onPlayAudio:
|
|
1233
|
-
listMaxHeight:
|
|
1234
|
-
mini:
|
|
881
|
+
audio: t,
|
|
882
|
+
playingAudioUrl: r,
|
|
883
|
+
onPlayAudio: n,
|
|
884
|
+
listMaxHeight: a,
|
|
885
|
+
mini: u
|
|
1235
886
|
}) {
|
|
1236
|
-
const
|
|
1237
|
-
return
|
|
887
|
+
const l = z("aplayer-list"), b = a ? { maxHeight: a } : void 0, s = S((c) => c ? typeof c == "string" ? c : c.name ?? "Audio artist" : "Audio artist", []), y = M(null);
|
|
888
|
+
return q(() => {
|
|
1238
889
|
if (y.current) {
|
|
1239
|
-
const
|
|
1240
|
-
return
|
|
1241
|
-
|
|
1242
|
-
|
|
890
|
+
const c = y.current;
|
|
891
|
+
return c.style.maxHeight = `${Math.min(
|
|
892
|
+
c.scrollHeight,
|
|
893
|
+
a ?? 1 / 0
|
|
1243
894
|
)}px`, () => {
|
|
1244
|
-
|
|
895
|
+
c.removeAttribute("style");
|
|
1245
896
|
};
|
|
1246
897
|
}
|
|
1247
|
-
}, [
|
|
898
|
+
}, [a, u]), /* @__PURE__ */ d.jsx(
|
|
1248
899
|
"div",
|
|
1249
900
|
{
|
|
1250
901
|
ref: y,
|
|
1251
|
-
className:
|
|
1252
|
-
[
|
|
1253
|
-
[
|
|
902
|
+
className: w(l.b(), {
|
|
903
|
+
[l.bm("hide")]: !e,
|
|
904
|
+
[l.bs("vars")]: !0
|
|
1254
905
|
}),
|
|
1255
906
|
"aria-label": "Audio playlist",
|
|
1256
907
|
"aria-live": "polite",
|
|
1257
|
-
children: /* @__PURE__ */
|
|
908
|
+
children: /* @__PURE__ */ d.jsx("ol", { style: b, children: t.map((c, m) => /* @__PURE__ */ d.jsxs(
|
|
1258
909
|
"li",
|
|
1259
910
|
{
|
|
1260
|
-
className:
|
|
1261
|
-
[
|
|
911
|
+
className: w({
|
|
912
|
+
[l.bm("active")]: c.url === r
|
|
1262
913
|
}),
|
|
1263
914
|
onClick: () => {
|
|
1264
|
-
|
|
915
|
+
c.url !== r && (n == null || n(c));
|
|
1265
916
|
},
|
|
1266
917
|
role: "button",
|
|
1267
|
-
"aria-label": `${
|
|
918
|
+
"aria-label": `${c.name ?? "Audio name"} by ${s(c.artist)}}`,
|
|
1268
919
|
children: [
|
|
1269
|
-
/* @__PURE__ */
|
|
1270
|
-
/* @__PURE__ */
|
|
1271
|
-
/* @__PURE__ */
|
|
1272
|
-
/* @__PURE__ */
|
|
920
|
+
/* @__PURE__ */ d.jsx("span", { className: l.be("cur") }),
|
|
921
|
+
/* @__PURE__ */ d.jsx("span", { className: l.be("index"), children: m + 1 }),
|
|
922
|
+
/* @__PURE__ */ d.jsx("span", { className: l.be("title"), children: c.name ?? "Audio name" }),
|
|
923
|
+
/* @__PURE__ */ d.jsx("span", { className: l.be("author"), children: s(c.artist) })
|
|
1273
924
|
]
|
|
1274
925
|
},
|
|
1275
|
-
|
|
926
|
+
c.name || m
|
|
1276
927
|
)) })
|
|
1277
928
|
}
|
|
1278
929
|
);
|
|
1279
930
|
}
|
|
1280
|
-
function
|
|
1281
|
-
const
|
|
1282
|
-
for (let
|
|
1283
|
-
const s =
|
|
1284
|
-
if (
|
|
1285
|
-
return
|
|
931
|
+
function Oe({ show: e, lrcText: t, currentTime: r }) {
|
|
932
|
+
const n = z("aplayer-lrc"), a = B(() => St(t), [t]), u = B(() => {
|
|
933
|
+
for (let b = 0; b < a.length; b++) {
|
|
934
|
+
const s = a[b], y = a[b + 1];
|
|
935
|
+
if (r >= s[0] && (!y || r < y[0]))
|
|
936
|
+
return b;
|
|
1286
937
|
}
|
|
1287
938
|
return 0;
|
|
1288
|
-
}, [
|
|
1289
|
-
transform: `translateY(${-
|
|
1290
|
-
WebkitTransform: `translateY(${-
|
|
1291
|
-
}), [
|
|
1292
|
-
return /* @__PURE__ */
|
|
939
|
+
}, [r, a]), l = B(() => ({
|
|
940
|
+
transform: `translateY(${-u * 16}px)`,
|
|
941
|
+
WebkitTransform: `translateY(${-u * 16}px)`
|
|
942
|
+
}), [u]);
|
|
943
|
+
return /* @__PURE__ */ d.jsx(
|
|
1293
944
|
"div",
|
|
1294
945
|
{
|
|
1295
|
-
className:
|
|
1296
|
-
[
|
|
946
|
+
className: w(n.b(), {
|
|
947
|
+
[n.bm("hide")]: !e
|
|
1297
948
|
}),
|
|
1298
|
-
children:
|
|
949
|
+
children: t ? /* @__PURE__ */ d.jsx("div", { className: n.be("contents"), style: l, children: a.map(([, b], s) => /* @__PURE__ */ d.jsx(
|
|
1299
950
|
"p",
|
|
1300
951
|
{
|
|
1301
|
-
className:
|
|
1302
|
-
[
|
|
952
|
+
className: w({
|
|
953
|
+
[n.be("current")]: s === u
|
|
1303
954
|
}),
|
|
1304
|
-
children:
|
|
955
|
+
children: b
|
|
1305
956
|
},
|
|
1306
957
|
s
|
|
1307
958
|
)) }) : null
|
|
1308
959
|
}
|
|
1309
960
|
);
|
|
1310
961
|
}
|
|
1311
|
-
function
|
|
962
|
+
function St(e) {
|
|
1312
963
|
if (e) {
|
|
1313
|
-
e = e.replace(/([^\]^\n])\[/g, (
|
|
964
|
+
e = e.replace(/([^\]^\n])\[/g, (a, u) => `${u}
|
|
1314
965
|
[`);
|
|
1315
|
-
const
|
|
1316
|
-
`),
|
|
1317
|
-
for (let
|
|
1318
|
-
const
|
|
1319
|
-
if (
|
|
1320
|
-
const
|
|
1321
|
-
for (let s = 0; s <
|
|
1322
|
-
const y = /\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/.exec(
|
|
1323
|
-
|
|
966
|
+
const t = e.split(`
|
|
967
|
+
`), r = [], n = t.length;
|
|
968
|
+
for (let a = 0; a < n; a++) {
|
|
969
|
+
const u = t[a].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g), l = t[a].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g, "").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g, "").replace(/^\s+|\s+$/g, "");
|
|
970
|
+
if (u) {
|
|
971
|
+
const b = u.length;
|
|
972
|
+
for (let s = 0; s < b; s++) {
|
|
973
|
+
const y = /\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/.exec(u[s]), c = y[1] * 60, m = Number.parseInt(y[2]), g = y[4] ? Number.parseInt(y[4]) / (`${y[4]}`.length === 2 ? 100 : 1e3) : 0, p = c + m + g;
|
|
974
|
+
r.push([p, l]);
|
|
1324
975
|
}
|
|
1325
976
|
}
|
|
1326
977
|
}
|
|
1327
|
-
return
|
|
978
|
+
return r.sort((a, u) => a[0] - u[0]), r;
|
|
1328
979
|
} else
|
|
1329
980
|
return [];
|
|
1330
981
|
}
|
|
1331
|
-
var
|
|
982
|
+
var ue = { exports: {} }, he = {};
|
|
1332
983
|
/**
|
|
1333
984
|
* @license React
|
|
1334
985
|
* use-sync-external-store-shim.production.js
|
|
@@ -1338,48 +989,48 @@ var Te = { exports: {} }, Ie = {};
|
|
|
1338
989
|
* This source code is licensed under the MIT license found in the
|
|
1339
990
|
* LICENSE file in the root directory of this source tree.
|
|
1340
991
|
*/
|
|
1341
|
-
var
|
|
1342
|
-
function
|
|
1343
|
-
if (
|
|
1344
|
-
|
|
1345
|
-
var e =
|
|
1346
|
-
function
|
|
1347
|
-
return
|
|
992
|
+
var Le;
|
|
993
|
+
function Tt() {
|
|
994
|
+
if (Le) return he;
|
|
995
|
+
Le = 1;
|
|
996
|
+
var e = pe;
|
|
997
|
+
function t(m, g) {
|
|
998
|
+
return m === g && (m !== 0 || 1 / m === 1 / g) || m !== m && g !== g;
|
|
1348
999
|
}
|
|
1349
|
-
var
|
|
1350
|
-
function
|
|
1351
|
-
var
|
|
1352
|
-
return
|
|
1000
|
+
var r = typeof Object.is == "function" ? Object.is : t, n = e.useState, a = e.useEffect, u = e.useLayoutEffect, l = e.useDebugValue;
|
|
1001
|
+
function b(m, g) {
|
|
1002
|
+
var p = g(), h = n({ inst: { value: p, getSnapshot: g } }), i = h[0].inst, f = h[1];
|
|
1003
|
+
return u(
|
|
1353
1004
|
function() {
|
|
1354
|
-
|
|
1005
|
+
i.value = p, i.getSnapshot = g, s(i) && f({ inst: i });
|
|
1355
1006
|
},
|
|
1356
|
-
[
|
|
1357
|
-
),
|
|
1007
|
+
[m, p, g]
|
|
1008
|
+
), a(
|
|
1358
1009
|
function() {
|
|
1359
|
-
return s(
|
|
1360
|
-
s(
|
|
1010
|
+
return s(i) && f({ inst: i }), m(function() {
|
|
1011
|
+
s(i) && f({ inst: i });
|
|
1361
1012
|
});
|
|
1362
1013
|
},
|
|
1363
|
-
[
|
|
1364
|
-
),
|
|
1014
|
+
[m]
|
|
1015
|
+
), l(p), p;
|
|
1365
1016
|
}
|
|
1366
|
-
function s(
|
|
1367
|
-
var
|
|
1368
|
-
|
|
1017
|
+
function s(m) {
|
|
1018
|
+
var g = m.getSnapshot;
|
|
1019
|
+
m = m.value;
|
|
1369
1020
|
try {
|
|
1370
|
-
var
|
|
1371
|
-
return !
|
|
1021
|
+
var p = g();
|
|
1022
|
+
return !r(m, p);
|
|
1372
1023
|
} catch {
|
|
1373
1024
|
return !0;
|
|
1374
1025
|
}
|
|
1375
1026
|
}
|
|
1376
|
-
function y(
|
|
1377
|
-
return
|
|
1027
|
+
function y(m, g) {
|
|
1028
|
+
return g();
|
|
1378
1029
|
}
|
|
1379
|
-
var
|
|
1380
|
-
return
|
|
1030
|
+
var c = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? y : b;
|
|
1031
|
+
return he.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : c, he;
|
|
1381
1032
|
}
|
|
1382
|
-
var
|
|
1033
|
+
var ye = {};
|
|
1383
1034
|
/**
|
|
1384
1035
|
* @license React
|
|
1385
1036
|
* use-sync-external-store-shim.development.js
|
|
@@ -1389,342 +1040,342 @@ var Ve = {};
|
|
|
1389
1040
|
* This source code is licensed under the MIT license found in the
|
|
1390
1041
|
* LICENSE file in the root directory of this source tree.
|
|
1391
1042
|
*/
|
|
1392
|
-
var
|
|
1393
|
-
function
|
|
1394
|
-
return
|
|
1395
|
-
function e(
|
|
1396
|
-
return
|
|
1397
|
-
}
|
|
1398
|
-
function
|
|
1399
|
-
|
|
1043
|
+
var Re;
|
|
1044
|
+
function jt() {
|
|
1045
|
+
return Re || (Re = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1046
|
+
function e(p, h) {
|
|
1047
|
+
return p === h && (p !== 0 || 1 / p === 1 / h) || p !== p && h !== h;
|
|
1048
|
+
}
|
|
1049
|
+
function t(p, h) {
|
|
1050
|
+
c || a.startTransition === void 0 || (c = !0, console.error(
|
|
1400
1051
|
"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."
|
|
1401
1052
|
));
|
|
1402
|
-
var
|
|
1403
|
-
if (!
|
|
1404
|
-
var
|
|
1405
|
-
|
|
1053
|
+
var i = h();
|
|
1054
|
+
if (!m) {
|
|
1055
|
+
var f = h();
|
|
1056
|
+
u(i, f) || (console.error(
|
|
1406
1057
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
1407
|
-
),
|
|
1058
|
+
), m = !0);
|
|
1408
1059
|
}
|
|
1409
|
-
|
|
1410
|
-
inst: { value:
|
|
1060
|
+
f = l({
|
|
1061
|
+
inst: { value: i, getSnapshot: h }
|
|
1411
1062
|
});
|
|
1412
|
-
var
|
|
1063
|
+
var v = f[0].inst, _ = f[1];
|
|
1413
1064
|
return s(
|
|
1414
1065
|
function() {
|
|
1415
|
-
|
|
1066
|
+
v.value = i, v.getSnapshot = h, r(v) && _({ inst: v });
|
|
1416
1067
|
},
|
|
1417
|
-
[
|
|
1418
|
-
),
|
|
1068
|
+
[p, i, h]
|
|
1069
|
+
), b(
|
|
1419
1070
|
function() {
|
|
1420
|
-
return
|
|
1421
|
-
|
|
1071
|
+
return r(v) && _({ inst: v }), p(function() {
|
|
1072
|
+
r(v) && _({ inst: v });
|
|
1422
1073
|
});
|
|
1423
1074
|
},
|
|
1424
|
-
[
|
|
1425
|
-
), y(
|
|
1075
|
+
[p]
|
|
1076
|
+
), y(i), i;
|
|
1426
1077
|
}
|
|
1427
|
-
function
|
|
1428
|
-
var
|
|
1429
|
-
|
|
1078
|
+
function r(p) {
|
|
1079
|
+
var h = p.getSnapshot;
|
|
1080
|
+
p = p.value;
|
|
1430
1081
|
try {
|
|
1431
|
-
var
|
|
1432
|
-
return !
|
|
1082
|
+
var i = h();
|
|
1083
|
+
return !u(p, i);
|
|
1433
1084
|
} catch {
|
|
1434
1085
|
return !0;
|
|
1435
1086
|
}
|
|
1436
1087
|
}
|
|
1437
|
-
function
|
|
1438
|
-
return
|
|
1088
|
+
function n(p, h) {
|
|
1089
|
+
return h();
|
|
1439
1090
|
}
|
|
1440
1091
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1441
|
-
var
|
|
1442
|
-
|
|
1443
|
-
}()),
|
|
1092
|
+
var a = pe, u = typeof Object.is == "function" ? Object.is : e, l = a.useState, b = a.useEffect, s = a.useLayoutEffect, y = a.useDebugValue, c = !1, m = !1, g = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? n : t;
|
|
1093
|
+
ye.useSyncExternalStore = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : g, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1094
|
+
}()), ye;
|
|
1444
1095
|
}
|
|
1445
|
-
var
|
|
1446
|
-
function
|
|
1447
|
-
return
|
|
1096
|
+
var Ae;
|
|
1097
|
+
function wt() {
|
|
1098
|
+
return Ae || (Ae = 1, process.env.NODE_ENV === "production" ? ue.exports = Tt() : ue.exports = jt()), ue.exports;
|
|
1448
1099
|
}
|
|
1449
|
-
var
|
|
1450
|
-
const
|
|
1451
|
-
function
|
|
1452
|
-
const
|
|
1453
|
-
return
|
|
1454
|
-
if (typeof window < "u" && !
|
|
1455
|
-
const
|
|
1456
|
-
typeof (e == null ? void 0 : e.src) < "u" && (
|
|
1100
|
+
var H = wt();
|
|
1101
|
+
const U = [];
|
|
1102
|
+
function _t(e) {
|
|
1103
|
+
const t = M();
|
|
1104
|
+
return q(() => {
|
|
1105
|
+
if (typeof window < "u" && !t.current) {
|
|
1106
|
+
const r = t.current = document.createElement("audio");
|
|
1107
|
+
typeof (e == null ? void 0 : e.src) < "u" && (r.src = e.src), typeof (e == null ? void 0 : e.autoPlay) < "u" && (r.autoplay = e.autoPlay), typeof (e == null ? void 0 : e.initialVolume) < "u" && (r.volume = e.initialVolume), U.includes(r) || U.push(r);
|
|
1457
1108
|
}
|
|
1458
|
-
}, [e == null ? void 0 : e.autoPlay, e == null ? void 0 : e.initialVolume, e == null ? void 0 : e.src]),
|
|
1109
|
+
}, [e == null ? void 0 : e.autoPlay, e == null ? void 0 : e.initialVolume, e == null ? void 0 : e.src]), q(() => {
|
|
1459
1110
|
if (typeof window > "u") return;
|
|
1460
|
-
const
|
|
1461
|
-
if (
|
|
1462
|
-
return
|
|
1463
|
-
|
|
1111
|
+
const r = t.current;
|
|
1112
|
+
if (r && (e != null && e.onError))
|
|
1113
|
+
return r.addEventListener("error", e.onError), () => {
|
|
1114
|
+
r.removeEventListener("error", e.onError);
|
|
1464
1115
|
};
|
|
1465
|
-
}, [e == null ? void 0 : e.onError]),
|
|
1116
|
+
}, [e == null ? void 0 : e.onError]), q(() => {
|
|
1466
1117
|
if (typeof window > "u") return;
|
|
1467
|
-
const
|
|
1468
|
-
if (
|
|
1469
|
-
return
|
|
1470
|
-
|
|
1118
|
+
const r = t.current;
|
|
1119
|
+
if (r && (e != null && e.onEnded))
|
|
1120
|
+
return r.addEventListener("ended", e.onEnded), () => {
|
|
1121
|
+
r.removeEventListener("ended", e.onEnded);
|
|
1471
1122
|
};
|
|
1472
|
-
}, [e == null ? void 0 : e.onEnded]),
|
|
1473
|
-
const
|
|
1474
|
-
if (
|
|
1475
|
-
|
|
1476
|
-
const
|
|
1477
|
-
|
|
1478
|
-
}
|
|
1479
|
-
|
|
1480
|
-
}, []),
|
|
1481
|
-
}
|
|
1482
|
-
function
|
|
1483
|
-
const
|
|
1484
|
-
for (let
|
|
1485
|
-
const
|
|
1486
|
-
|
|
1487
|
-
}
|
|
1488
|
-
}, []),
|
|
1489
|
-
async (
|
|
1490
|
-
var
|
|
1491
|
-
const
|
|
1492
|
-
if (
|
|
1493
|
-
e.mutex &&
|
|
1123
|
+
}, [e == null ? void 0 : e.onEnded]), q(() => () => {
|
|
1124
|
+
const r = t.current;
|
|
1125
|
+
if (r) {
|
|
1126
|
+
r.pause(), r.currentTime = 0;
|
|
1127
|
+
const n = U.indexOf(r);
|
|
1128
|
+
n !== -1 && U.splice(n, 1);
|
|
1129
|
+
}
|
|
1130
|
+
t.current = void 0;
|
|
1131
|
+
}, []), t;
|
|
1132
|
+
}
|
|
1133
|
+
function Ot(e) {
|
|
1134
|
+
const t = _t(e), r = S((i) => {
|
|
1135
|
+
for (let f = 0; f < U.length; f++) {
|
|
1136
|
+
const v = U[f];
|
|
1137
|
+
v !== i && !v.paused && v.pause();
|
|
1138
|
+
}
|
|
1139
|
+
}, []), n = S(
|
|
1140
|
+
async (i) => {
|
|
1141
|
+
var v;
|
|
1142
|
+
const f = t.current;
|
|
1143
|
+
if (f) {
|
|
1144
|
+
e.mutex && r(f), f.src !== i && (f.pause(), f.currentTime = 0, f.src = i);
|
|
1494
1145
|
try {
|
|
1495
|
-
await ((
|
|
1146
|
+
await ((v = t.current) == null ? void 0 : v.play());
|
|
1496
1147
|
} catch {
|
|
1497
1148
|
}
|
|
1498
1149
|
}
|
|
1499
1150
|
},
|
|
1500
|
-
[
|
|
1501
|
-
),
|
|
1502
|
-
(
|
|
1503
|
-
const
|
|
1504
|
-
|
|
1151
|
+
[t, e.mutex, r]
|
|
1152
|
+
), a = S(
|
|
1153
|
+
(i) => {
|
|
1154
|
+
const f = t.current;
|
|
1155
|
+
f && (f.paused ? n(i) : f.pause());
|
|
1505
1156
|
},
|
|
1506
|
-
[
|
|
1507
|
-
),
|
|
1508
|
-
(
|
|
1509
|
-
|
|
1157
|
+
[t, n]
|
|
1158
|
+
), u = S(
|
|
1159
|
+
(i) => {
|
|
1160
|
+
Number.isFinite(i) && (t.current.currentTime = i);
|
|
1510
1161
|
},
|
|
1511
|
-
[
|
|
1512
|
-
),
|
|
1513
|
-
|
|
1514
|
-
}, [
|
|
1515
|
-
(
|
|
1516
|
-
|
|
1162
|
+
[t]
|
|
1163
|
+
), l = S(() => {
|
|
1164
|
+
t.current && (t.current.muted = !t.current.muted);
|
|
1165
|
+
}, [t]), b = S(
|
|
1166
|
+
(i) => {
|
|
1167
|
+
t.current && (t.current.volume = i);
|
|
1517
1168
|
},
|
|
1518
|
-
[
|
|
1519
|
-
), s =
|
|
1520
|
-
|
|
1521
|
-
(
|
|
1522
|
-
var
|
|
1523
|
-
return (
|
|
1169
|
+
[t]
|
|
1170
|
+
), s = H.useSyncExternalStore(
|
|
1171
|
+
S(
|
|
1172
|
+
(i) => {
|
|
1173
|
+
var f;
|
|
1174
|
+
return (f = t.current) == null || f.addEventListener(
|
|
1524
1175
|
"volumechange",
|
|
1525
|
-
|
|
1176
|
+
i
|
|
1526
1177
|
), () => {
|
|
1527
|
-
var
|
|
1528
|
-
(
|
|
1178
|
+
var v;
|
|
1179
|
+
(v = t.current) == null || v.removeEventListener(
|
|
1529
1180
|
"volumechange",
|
|
1530
|
-
|
|
1181
|
+
i
|
|
1531
1182
|
);
|
|
1532
1183
|
};
|
|
1533
1184
|
},
|
|
1534
|
-
[
|
|
1185
|
+
[t]
|
|
1535
1186
|
),
|
|
1536
1187
|
() => {
|
|
1537
|
-
var
|
|
1538
|
-
return (
|
|
1188
|
+
var i;
|
|
1189
|
+
return (i = t.current) == null ? void 0 : i.volume;
|
|
1539
1190
|
},
|
|
1540
1191
|
() => {
|
|
1541
1192
|
}
|
|
1542
|
-
), y =
|
|
1543
|
-
|
|
1544
|
-
(
|
|
1545
|
-
var
|
|
1546
|
-
return (
|
|
1193
|
+
), y = H.useSyncExternalStore(
|
|
1194
|
+
S(
|
|
1195
|
+
(i) => {
|
|
1196
|
+
var f;
|
|
1197
|
+
return (f = t.current) == null || f.addEventListener(
|
|
1547
1198
|
"volumechange",
|
|
1548
|
-
|
|
1199
|
+
i
|
|
1549
1200
|
), () => {
|
|
1550
|
-
var
|
|
1551
|
-
(
|
|
1201
|
+
var v;
|
|
1202
|
+
(v = t.current) == null || v.removeEventListener(
|
|
1552
1203
|
"volumechange",
|
|
1553
|
-
|
|
1204
|
+
i
|
|
1554
1205
|
);
|
|
1555
1206
|
};
|
|
1556
1207
|
},
|
|
1557
|
-
[
|
|
1208
|
+
[t]
|
|
1558
1209
|
),
|
|
1559
1210
|
() => {
|
|
1560
|
-
var
|
|
1561
|
-
return (
|
|
1211
|
+
var i;
|
|
1212
|
+
return (i = t.current) == null ? void 0 : i.muted;
|
|
1562
1213
|
},
|
|
1563
1214
|
() => {
|
|
1564
1215
|
}
|
|
1565
|
-
),
|
|
1566
|
-
|
|
1567
|
-
(
|
|
1568
|
-
var
|
|
1569
|
-
return (
|
|
1570
|
-
var
|
|
1571
|
-
(
|
|
1216
|
+
), c = H.useSyncExternalStore(
|
|
1217
|
+
S(
|
|
1218
|
+
(i) => {
|
|
1219
|
+
var f;
|
|
1220
|
+
return (f = t.current) == null || f.addEventListener("timeupdate", i), () => {
|
|
1221
|
+
var v;
|
|
1222
|
+
(v = t.current) == null || v.removeEventListener(
|
|
1572
1223
|
"timeupdate",
|
|
1573
|
-
|
|
1224
|
+
i
|
|
1574
1225
|
);
|
|
1575
1226
|
};
|
|
1576
1227
|
},
|
|
1577
|
-
[
|
|
1228
|
+
[t]
|
|
1578
1229
|
),
|
|
1579
1230
|
() => {
|
|
1580
|
-
if (
|
|
1581
|
-
return Math.round(
|
|
1231
|
+
if (t.current)
|
|
1232
|
+
return Math.round(t.current.currentTime);
|
|
1582
1233
|
},
|
|
1583
1234
|
() => {
|
|
1584
1235
|
}
|
|
1585
|
-
),
|
|
1586
|
-
|
|
1587
|
-
(
|
|
1588
|
-
var
|
|
1589
|
-
return (
|
|
1236
|
+
), m = H.useSyncExternalStore(
|
|
1237
|
+
S(
|
|
1238
|
+
(i) => {
|
|
1239
|
+
var f;
|
|
1240
|
+
return (f = t.current) == null || f.addEventListener(
|
|
1590
1241
|
"durationchange",
|
|
1591
|
-
|
|
1242
|
+
i
|
|
1592
1243
|
), () => {
|
|
1593
|
-
var
|
|
1594
|
-
(
|
|
1244
|
+
var v;
|
|
1245
|
+
(v = t.current) == null || v.removeEventListener(
|
|
1595
1246
|
"durationchange",
|
|
1596
|
-
|
|
1247
|
+
i
|
|
1597
1248
|
);
|
|
1598
1249
|
};
|
|
1599
1250
|
},
|
|
1600
|
-
[
|
|
1251
|
+
[t]
|
|
1601
1252
|
),
|
|
1602
1253
|
() => {
|
|
1603
|
-
var
|
|
1604
|
-
return (
|
|
1254
|
+
var i;
|
|
1255
|
+
return (i = t.current) == null ? void 0 : i.duration;
|
|
1605
1256
|
},
|
|
1606
1257
|
() => {
|
|
1607
1258
|
}
|
|
1608
|
-
),
|
|
1609
|
-
|
|
1610
|
-
(
|
|
1611
|
-
var
|
|
1612
|
-
return (
|
|
1613
|
-
var
|
|
1614
|
-
(
|
|
1259
|
+
), g = H.useSyncExternalStore(
|
|
1260
|
+
S(
|
|
1261
|
+
(i) => {
|
|
1262
|
+
var f;
|
|
1263
|
+
return (f = t.current) == null || f.addEventListener("progress", i), () => {
|
|
1264
|
+
var v;
|
|
1265
|
+
(v = t.current) == null || v.removeEventListener(
|
|
1615
1266
|
"progress",
|
|
1616
|
-
|
|
1267
|
+
i
|
|
1617
1268
|
);
|
|
1618
1269
|
};
|
|
1619
1270
|
},
|
|
1620
|
-
[
|
|
1271
|
+
[t]
|
|
1621
1272
|
),
|
|
1622
1273
|
() => {
|
|
1623
|
-
const
|
|
1624
|
-
return
|
|
1274
|
+
const i = t.current;
|
|
1275
|
+
return i && i.buffered.length > 0 ? i.buffered.end(i.buffered.length - 1) : 0;
|
|
1625
1276
|
},
|
|
1626
1277
|
() => {
|
|
1627
1278
|
}
|
|
1628
|
-
),
|
|
1629
|
-
|
|
1630
|
-
(
|
|
1631
|
-
var
|
|
1632
|
-
return (
|
|
1633
|
-
var
|
|
1634
|
-
(
|
|
1279
|
+
), p = H.useSyncExternalStore(
|
|
1280
|
+
S(
|
|
1281
|
+
(i) => {
|
|
1282
|
+
var f, v;
|
|
1283
|
+
return (f = t.current) == null || f.addEventListener("play", i), (v = t.current) == null || v.addEventListener("pause", i), () => {
|
|
1284
|
+
var _, E;
|
|
1285
|
+
(_ = t.current) == null || _.removeEventListener("play", i), (E = t.current) == null || E.removeEventListener("pause", i);
|
|
1635
1286
|
};
|
|
1636
1287
|
},
|
|
1637
|
-
[
|
|
1288
|
+
[t]
|
|
1638
1289
|
),
|
|
1639
1290
|
() => {
|
|
1640
|
-
const
|
|
1641
|
-
return
|
|
1291
|
+
const i = t.current;
|
|
1292
|
+
return i ? !i.paused : !1;
|
|
1642
1293
|
},
|
|
1643
1294
|
() => {
|
|
1644
1295
|
}
|
|
1645
|
-
),
|
|
1646
|
-
|
|
1647
|
-
(
|
|
1648
|
-
var
|
|
1649
|
-
return (
|
|
1650
|
-
var
|
|
1651
|
-
(
|
|
1296
|
+
), h = H.useSyncExternalStore(
|
|
1297
|
+
S(
|
|
1298
|
+
(i) => {
|
|
1299
|
+
var f, v;
|
|
1300
|
+
return (f = t.current) == null || f.addEventListener("playing", i), (v = t.current) == null || v.addEventListener("waiting", i), () => {
|
|
1301
|
+
var _, E;
|
|
1302
|
+
(_ = t.current) == null || _.removeEventListener(
|
|
1652
1303
|
"playing",
|
|
1653
|
-
|
|
1654
|
-
), (
|
|
1304
|
+
i
|
|
1305
|
+
), (E = t.current) == null || E.removeEventListener(
|
|
1655
1306
|
"waiting",
|
|
1656
|
-
|
|
1307
|
+
i
|
|
1657
1308
|
);
|
|
1658
1309
|
};
|
|
1659
1310
|
},
|
|
1660
|
-
[
|
|
1311
|
+
[t]
|
|
1661
1312
|
),
|
|
1662
1313
|
() => {
|
|
1663
|
-
const
|
|
1664
|
-
return
|
|
1314
|
+
const i = t.current;
|
|
1315
|
+
return i ? i.networkState === i.NETWORK_LOADING : !1;
|
|
1665
1316
|
},
|
|
1666
1317
|
() => {
|
|
1667
1318
|
}
|
|
1668
1319
|
);
|
|
1669
1320
|
return {
|
|
1670
|
-
audio:
|
|
1671
|
-
playAudio:
|
|
1672
|
-
togglePlay:
|
|
1673
|
-
seek:
|
|
1674
|
-
toggleMuted:
|
|
1675
|
-
setVolume:
|
|
1321
|
+
audio: t.current,
|
|
1322
|
+
playAudio: n,
|
|
1323
|
+
togglePlay: a,
|
|
1324
|
+
seek: u,
|
|
1325
|
+
toggleMuted: l,
|
|
1326
|
+
setVolume: b,
|
|
1676
1327
|
volume: s,
|
|
1677
1328
|
muted: y,
|
|
1678
|
-
currentTime:
|
|
1679
|
-
duration:
|
|
1680
|
-
bufferedSeconds:
|
|
1681
|
-
isPlaying:
|
|
1682
|
-
isLoading:
|
|
1329
|
+
currentTime: c,
|
|
1330
|
+
duration: m,
|
|
1331
|
+
bufferedSeconds: g,
|
|
1332
|
+
isPlaying: p,
|
|
1333
|
+
isLoading: h
|
|
1683
1334
|
};
|
|
1684
1335
|
}
|
|
1685
|
-
function
|
|
1686
|
-
return K(() => {
|
|
1687
|
-
const n = { ...r };
|
|
1688
|
-
for (const a in e)
|
|
1689
|
-
e[a] !== void 0 && (n[a] = e[a]);
|
|
1690
|
-
return n;
|
|
1691
|
-
}, [e, r]);
|
|
1692
|
-
}
|
|
1693
|
-
function Dt(e) {
|
|
1694
|
-
const [r, n] = Y(e);
|
|
1336
|
+
function Lt(e, t) {
|
|
1695
1337
|
return B(() => {
|
|
1696
|
-
|
|
1338
|
+
const r = { ...t };
|
|
1339
|
+
for (const n in e)
|
|
1340
|
+
e[n] !== void 0 && (r[n] = e[n]);
|
|
1341
|
+
return r;
|
|
1342
|
+
}, [e, t]);
|
|
1343
|
+
}
|
|
1344
|
+
function Rt(e) {
|
|
1345
|
+
const [t, r] = V(e);
|
|
1346
|
+
return q(() => {
|
|
1347
|
+
r(e);
|
|
1697
1348
|
}, [e]), {
|
|
1698
|
-
mini:
|
|
1699
|
-
setMini:
|
|
1349
|
+
mini: t,
|
|
1350
|
+
setMini: r
|
|
1700
1351
|
};
|
|
1701
1352
|
}
|
|
1702
|
-
function
|
|
1703
|
-
const e =
|
|
1704
|
-
return
|
|
1705
|
-
const
|
|
1353
|
+
function qe() {
|
|
1354
|
+
const e = M([]);
|
|
1355
|
+
return q(() => {
|
|
1356
|
+
const r = e.current;
|
|
1706
1357
|
return () => {
|
|
1707
|
-
for (const
|
|
1708
|
-
clearTimeout(
|
|
1358
|
+
for (const n of r)
|
|
1359
|
+
clearTimeout(n);
|
|
1709
1360
|
};
|
|
1710
|
-
}, []),
|
|
1711
|
-
const
|
|
1712
|
-
return e.current.push(
|
|
1361
|
+
}, []), S((r, n) => {
|
|
1362
|
+
const a = setTimeout(r, n);
|
|
1363
|
+
return e.current.push(a), a;
|
|
1713
1364
|
}, []);
|
|
1714
1365
|
}
|
|
1715
|
-
function
|
|
1716
|
-
const e =
|
|
1717
|
-
(
|
|
1718
|
-
e.current && clearTimeout(e.current),
|
|
1719
|
-
|
|
1720
|
-
},
|
|
1366
|
+
function At() {
|
|
1367
|
+
const e = M(null), [t, r] = V({ text: "", style: { opacity: 0 } }), n = qe(), a = S(
|
|
1368
|
+
(u, l = 2e3) => {
|
|
1369
|
+
e.current && clearTimeout(e.current), r({ text: u, style: { opacity: 1 } }), e.current = n(() => {
|
|
1370
|
+
r({ text: u, style: { opacity: 0 } });
|
|
1371
|
+
}, l);
|
|
1721
1372
|
},
|
|
1722
|
-
[
|
|
1373
|
+
[n]
|
|
1723
1374
|
);
|
|
1724
|
-
return [
|
|
1375
|
+
return [t, a];
|
|
1725
1376
|
}
|
|
1726
|
-
function
|
|
1727
|
-
const
|
|
1377
|
+
function Nt(e) {
|
|
1378
|
+
const t = Lt(e, {
|
|
1728
1379
|
appearance: "normal",
|
|
1729
1380
|
volume: 0.7,
|
|
1730
1381
|
autoPlay: !1,
|
|
@@ -1735,293 +1386,293 @@ function Vt(e) {
|
|
|
1735
1386
|
theme: "light",
|
|
1736
1387
|
border: !1
|
|
1737
1388
|
}), {
|
|
1738
|
-
audio:
|
|
1739
|
-
appearance:
|
|
1740
|
-
initialLoop:
|
|
1741
|
-
initialOrder:
|
|
1742
|
-
volume:
|
|
1743
|
-
autoPlay:
|
|
1389
|
+
audio: r,
|
|
1390
|
+
appearance: n,
|
|
1391
|
+
initialLoop: a,
|
|
1392
|
+
initialOrder: u,
|
|
1393
|
+
volume: l,
|
|
1394
|
+
autoPlay: b,
|
|
1744
1395
|
listMaxHeight: s,
|
|
1745
1396
|
listFolded: y,
|
|
1746
|
-
mutex:
|
|
1747
|
-
theme:
|
|
1748
|
-
border:
|
|
1749
|
-
} =
|
|
1750
|
-
() => Array.isArray(
|
|
1751
|
-
[
|
|
1752
|
-
),
|
|
1753
|
-
initialLoop:
|
|
1754
|
-
initialOrder:
|
|
1755
|
-
}), [
|
|
1756
|
-
|
|
1757
|
-
}, []),
|
|
1758
|
-
src:
|
|
1759
|
-
initialVolume:
|
|
1760
|
-
autoPlay:
|
|
1761
|
-
mutex:
|
|
1762
|
-
onError(
|
|
1763
|
-
const { error:
|
|
1764
|
-
|
|
1397
|
+
mutex: c,
|
|
1398
|
+
theme: m,
|
|
1399
|
+
border: g
|
|
1400
|
+
} = t, p = B(
|
|
1401
|
+
() => Array.isArray(r) ? r : [r],
|
|
1402
|
+
[r]
|
|
1403
|
+
), h = Mt(p, {
|
|
1404
|
+
initialLoop: a,
|
|
1405
|
+
initialOrder: u
|
|
1406
|
+
}), [i, f] = At(), { mini: v, setMini: _ } = Rt(t.mini), E = qe(), j = M(null), C = S(() => {
|
|
1407
|
+
j.current && (clearTimeout(j.current), j.current = null);
|
|
1408
|
+
}, []), k = M(!1), A = Ot({
|
|
1409
|
+
src: h.currentSong.url,
|
|
1410
|
+
initialVolume: l,
|
|
1411
|
+
autoPlay: b,
|
|
1412
|
+
mutex: c,
|
|
1413
|
+
onError(P) {
|
|
1414
|
+
const { error: o } = P.target;
|
|
1415
|
+
o && f(
|
|
1765
1416
|
"An audio error has occurred, player will skip forward in 2 seconds."
|
|
1766
|
-
),
|
|
1767
|
-
|
|
1417
|
+
), h.hasNextSong && (j.current = E(() => {
|
|
1418
|
+
h.next();
|
|
1768
1419
|
}, 2e3));
|
|
1769
1420
|
},
|
|
1770
1421
|
onEnded() {
|
|
1771
|
-
const { list:
|
|
1772
|
-
if (
|
|
1773
|
-
|
|
1422
|
+
const { list: P, currentSong: o, loop: x, prioritize: T, hasNextSong: L } = h, { audio: $ } = A;
|
|
1423
|
+
if (x === "one") {
|
|
1424
|
+
T({ ...o });
|
|
1774
1425
|
return;
|
|
1775
1426
|
}
|
|
1776
|
-
if (!
|
|
1777
|
-
|
|
1427
|
+
if (!L && x === "none") {
|
|
1428
|
+
k.current = !0, $.currentTime = 0, $.pause(), $.src = P[0].url, T(P[0]);
|
|
1778
1429
|
return;
|
|
1779
1430
|
}
|
|
1780
|
-
|
|
1431
|
+
h.next();
|
|
1781
1432
|
}
|
|
1782
|
-
}),
|
|
1783
|
-
|
|
1784
|
-
}, [
|
|
1785
|
-
(
|
|
1786
|
-
|
|
1433
|
+
}), D = h.length > 1, O = S(() => {
|
|
1434
|
+
C(), A.togglePlay(h.currentSong.url);
|
|
1435
|
+
}, [A, C, h.currentSong.url]), { prioritize: re } = h, G = S(
|
|
1436
|
+
(P) => {
|
|
1437
|
+
C(), re(P);
|
|
1787
1438
|
},
|
|
1788
|
-
[
|
|
1789
|
-
), [
|
|
1790
|
-
|
|
1791
|
-
|
|
1439
|
+
[C, re]
|
|
1440
|
+
), [ne, ce] = V(() => D && !y), [J, ae] = V(n !== "fixed"), F = M(null);
|
|
1441
|
+
q(() => {
|
|
1442
|
+
b && A.playAudio(h.currentSong.url);
|
|
1792
1443
|
}, []);
|
|
1793
|
-
const
|
|
1794
|
-
return
|
|
1795
|
-
if (
|
|
1796
|
-
|
|
1444
|
+
const K = M(!0), X = M(h.currentSong);
|
|
1445
|
+
return q(() => {
|
|
1446
|
+
if (K.current) {
|
|
1447
|
+
K.current = !1;
|
|
1797
1448
|
return;
|
|
1798
1449
|
}
|
|
1799
|
-
if (
|
|
1800
|
-
|
|
1450
|
+
if (k.current) {
|
|
1451
|
+
k.current = !1;
|
|
1801
1452
|
return;
|
|
1802
1453
|
}
|
|
1803
|
-
|
|
1804
|
-
}, [
|
|
1805
|
-
if (
|
|
1806
|
-
const
|
|
1807
|
-
return
|
|
1808
|
-
|
|
1454
|
+
h.currentSong && (h.loop === "one" || h.currentSong !== X.current) && (X.current = h.currentSong, A.playAudio(h.currentSong.url));
|
|
1455
|
+
}, [h.currentSong]), q(() => {
|
|
1456
|
+
if (n === "fixed" && F.current) {
|
|
1457
|
+
const P = F.current;
|
|
1458
|
+
return P.style.width = "400px", () => {
|
|
1459
|
+
P.removeAttribute("style");
|
|
1809
1460
|
};
|
|
1810
1461
|
}
|
|
1811
|
-
}, [
|
|
1812
|
-
bodyRef:
|
|
1813
|
-
appearance:
|
|
1814
|
-
volume:
|
|
1462
|
+
}, [n]), {
|
|
1463
|
+
bodyRef: F,
|
|
1464
|
+
appearance: n,
|
|
1465
|
+
volume: l,
|
|
1815
1466
|
listMaxHeight: s,
|
|
1816
|
-
theme:
|
|
1817
|
-
border:
|
|
1818
|
-
notice:
|
|
1819
|
-
audioControl:
|
|
1820
|
-
audio:
|
|
1821
|
-
handlePlayButtonClick:
|
|
1822
|
-
handlePlayAudioFromList:
|
|
1823
|
-
isPlaylistOpen:
|
|
1824
|
-
setPlaylistOpen:
|
|
1825
|
-
mini:
|
|
1826
|
-
displayLyrics:
|
|
1827
|
-
setDisplayLyrics:
|
|
1828
|
-
setMini:
|
|
1829
|
-
playlist:
|
|
1830
|
-
hasPlaylist:
|
|
1467
|
+
theme: m,
|
|
1468
|
+
border: g,
|
|
1469
|
+
notice: i,
|
|
1470
|
+
audioControl: A,
|
|
1471
|
+
audio: p,
|
|
1472
|
+
handlePlayButtonClick: O,
|
|
1473
|
+
handlePlayAudioFromList: G,
|
|
1474
|
+
isPlaylistOpen: ne,
|
|
1475
|
+
setPlaylistOpen: ce,
|
|
1476
|
+
mini: v,
|
|
1477
|
+
displayLyrics: J,
|
|
1478
|
+
setDisplayLyrics: ae,
|
|
1479
|
+
setMini: _,
|
|
1480
|
+
playlist: h,
|
|
1481
|
+
hasPlaylist: D
|
|
1831
1482
|
};
|
|
1832
1483
|
}
|
|
1833
|
-
function
|
|
1834
|
-
return
|
|
1484
|
+
function Pt(e) {
|
|
1485
|
+
return $t(e.slice());
|
|
1835
1486
|
}
|
|
1836
|
-
function
|
|
1837
|
-
let
|
|
1838
|
-
for (;
|
|
1839
|
-
|
|
1840
|
-
e[
|
|
1841
|
-
e[
|
|
1487
|
+
function $t(e) {
|
|
1488
|
+
let t = e.length, r;
|
|
1489
|
+
for (; t !== 0; )
|
|
1490
|
+
r = Math.floor(Math.random() * t), t--, [e[t], e[r]] = [
|
|
1491
|
+
e[r],
|
|
1492
|
+
e[t]
|
|
1842
1493
|
];
|
|
1843
1494
|
return e;
|
|
1844
1495
|
}
|
|
1845
|
-
function
|
|
1846
|
-
const { initialLoop:
|
|
1847
|
-
|
|
1848
|
-
const
|
|
1849
|
-
return
|
|
1496
|
+
function Mt(e, t) {
|
|
1497
|
+
const { initialLoop: r = "all", initialOrder: n = "list" } = t, [a, u] = V(r), [l, b] = V(n), s = B(() => l === "list" ? e : Pt(e), [e, l]), [y, c] = V(s[0]), m = S((f) => f.url, []), g = B(() => s.findIndex((v) => m(v) === m(y)) < s.length - 1 || a !== "none", [s, y, a, m]), p = S(() => {
|
|
1498
|
+
c((f) => {
|
|
1499
|
+
const v = s.findIndex((_) => m(_) === m(f));
|
|
1500
|
+
return v < s.length - 1 ? s[v + 1] : { ...s[0] };
|
|
1850
1501
|
});
|
|
1851
|
-
}, [
|
|
1852
|
-
|
|
1853
|
-
const
|
|
1854
|
-
return
|
|
1502
|
+
}, [a, s, m]), h = S(() => {
|
|
1503
|
+
c((f) => {
|
|
1504
|
+
const v = s.indexOf(f);
|
|
1505
|
+
return v > 0 ? s[v - 1] : f;
|
|
1855
1506
|
});
|
|
1856
|
-
}, [s]),
|
|
1857
|
-
|
|
1507
|
+
}, [s]), i = S((f) => {
|
|
1508
|
+
c(f);
|
|
1858
1509
|
}, []);
|
|
1859
|
-
return
|
|
1860
|
-
const
|
|
1861
|
-
(
|
|
1510
|
+
return q(() => {
|
|
1511
|
+
const f = s.find(
|
|
1512
|
+
(v) => m(v) === m(y)
|
|
1862
1513
|
);
|
|
1863
|
-
|
|
1864
|
-
}, [s,
|
|
1514
|
+
c(f || s[0]);
|
|
1515
|
+
}, [s, m, y]), {
|
|
1865
1516
|
list: s,
|
|
1866
1517
|
currentSong: y,
|
|
1867
|
-
hasNextSong:
|
|
1868
|
-
next:
|
|
1869
|
-
previous:
|
|
1870
|
-
prioritize:
|
|
1871
|
-
order:
|
|
1872
|
-
setOrder:
|
|
1873
|
-
loop:
|
|
1874
|
-
setLoop:
|
|
1518
|
+
hasNextSong: g,
|
|
1519
|
+
next: p,
|
|
1520
|
+
previous: h,
|
|
1521
|
+
prioritize: i,
|
|
1522
|
+
order: l,
|
|
1523
|
+
setOrder: b,
|
|
1524
|
+
loop: a,
|
|
1525
|
+
setLoop: u,
|
|
1875
1526
|
length: s.length
|
|
1876
1527
|
};
|
|
1877
1528
|
}
|
|
1878
|
-
function
|
|
1879
|
-
var
|
|
1880
|
-
const
|
|
1881
|
-
bodyRef:
|
|
1882
|
-
appearance:
|
|
1883
|
-
volume:
|
|
1884
|
-
listMaxHeight:
|
|
1885
|
-
theme:
|
|
1886
|
-
border:
|
|
1529
|
+
function Ct(e) {
|
|
1530
|
+
var k, A, D;
|
|
1531
|
+
const t = z("aplayer"), {
|
|
1532
|
+
bodyRef: r,
|
|
1533
|
+
appearance: n,
|
|
1534
|
+
volume: a,
|
|
1535
|
+
listMaxHeight: u,
|
|
1536
|
+
theme: l,
|
|
1537
|
+
border: b,
|
|
1887
1538
|
notice: s,
|
|
1888
1539
|
audio: y,
|
|
1889
|
-
audioControl:
|
|
1890
|
-
handlePlayButtonClick:
|
|
1891
|
-
handlePlayAudioFromList:
|
|
1892
|
-
isPlaylistOpen:
|
|
1893
|
-
setPlaylistOpen:
|
|
1894
|
-
mini:
|
|
1895
|
-
displayLyrics:
|
|
1896
|
-
setDisplayLyrics:
|
|
1897
|
-
setMini:
|
|
1898
|
-
playlist:
|
|
1899
|
-
hasPlaylist:
|
|
1900
|
-
} =
|
|
1901
|
-
return /* @__PURE__ */
|
|
1540
|
+
audioControl: c,
|
|
1541
|
+
handlePlayButtonClick: m,
|
|
1542
|
+
handlePlayAudioFromList: g,
|
|
1543
|
+
isPlaylistOpen: p,
|
|
1544
|
+
setPlaylistOpen: h,
|
|
1545
|
+
mini: i,
|
|
1546
|
+
displayLyrics: f,
|
|
1547
|
+
setDisplayLyrics: v,
|
|
1548
|
+
setMini: _,
|
|
1549
|
+
playlist: E,
|
|
1550
|
+
hasPlaylist: j
|
|
1551
|
+
} = Nt(e), C = S((O) => O ? typeof O == "string" ? O : O.url ? /* @__PURE__ */ d.jsx("a", { href: O.url, target: "_blank", rel: "noreferrer", children: O.name ?? "Audio artist" }) : O.name ?? "Audio artist" : "Audio artist", []);
|
|
1552
|
+
return /* @__PURE__ */ d.jsxs(
|
|
1902
1553
|
"div",
|
|
1903
1554
|
{
|
|
1904
|
-
className:
|
|
1905
|
-
[
|
|
1906
|
-
[
|
|
1907
|
-
[
|
|
1908
|
-
[
|
|
1909
|
-
[
|
|
1910
|
-
[
|
|
1911
|
-
[
|
|
1912
|
-
[
|
|
1913
|
-
[
|
|
1555
|
+
className: w(t.b(), {
|
|
1556
|
+
[t.bs(l)]: !0,
|
|
1557
|
+
[t.bs("vars")]: !0,
|
|
1558
|
+
[t.bm(n)]: !0,
|
|
1559
|
+
[t.bm("loading")]: c.isLoading,
|
|
1560
|
+
[t.bm("withlist")]: j,
|
|
1561
|
+
[t.bm("list-folded")]: !p,
|
|
1562
|
+
[t.bm("withlrc")]: !!E.currentSong.lrc && n !== "fixed",
|
|
1563
|
+
[t.bm("narrow")]: i,
|
|
1564
|
+
[t.bm("border")]: b
|
|
1914
1565
|
}),
|
|
1915
1566
|
role: "region",
|
|
1916
1567
|
"aria-label": "Audio Player",
|
|
1917
1568
|
children: [
|
|
1918
|
-
/* @__PURE__ */
|
|
1569
|
+
/* @__PURE__ */ d.jsxs(
|
|
1919
1570
|
"div",
|
|
1920
1571
|
{
|
|
1921
|
-
ref:
|
|
1922
|
-
className:
|
|
1572
|
+
ref: r,
|
|
1573
|
+
className: t.be("body"),
|
|
1923
1574
|
children: [
|
|
1924
|
-
/* @__PURE__ */
|
|
1575
|
+
/* @__PURE__ */ d.jsx(
|
|
1925
1576
|
"div",
|
|
1926
1577
|
{
|
|
1927
|
-
className:
|
|
1928
|
-
onClick:
|
|
1578
|
+
className: t.be("pic"),
|
|
1579
|
+
onClick: m,
|
|
1929
1580
|
style: {
|
|
1930
|
-
backgroundImage: `url("${(
|
|
1581
|
+
backgroundImage: `url("${(k = E.currentSong) == null ? void 0 : k.cover}")`
|
|
1931
1582
|
},
|
|
1932
1583
|
role: "button",
|
|
1933
|
-
"aria-label":
|
|
1934
|
-
children: /* @__PURE__ */
|
|
1584
|
+
"aria-label": c.isPlaying ? "Pause audio" : "Play audio",
|
|
1585
|
+
children: /* @__PURE__ */ d.jsx(
|
|
1935
1586
|
"div",
|
|
1936
1587
|
{
|
|
1937
|
-
className:
|
|
1938
|
-
|
|
1939
|
-
|
|
1588
|
+
className: w(
|
|
1589
|
+
t.be("button"),
|
|
1590
|
+
c.isPlaying ? t.bm("pause") : t.bm("play")
|
|
1940
1591
|
),
|
|
1941
1592
|
role: "presentation",
|
|
1942
|
-
children:
|
|
1593
|
+
children: c.isPlaying ? /* @__PURE__ */ d.jsx(at, {}) : /* @__PURE__ */ d.jsx(bt, {})
|
|
1943
1594
|
}
|
|
1944
1595
|
)
|
|
1945
1596
|
}
|
|
1946
1597
|
),
|
|
1947
|
-
/* @__PURE__ */
|
|
1948
|
-
/* @__PURE__ */
|
|
1949
|
-
/* @__PURE__ */
|
|
1950
|
-
/* @__PURE__ */
|
|
1598
|
+
/* @__PURE__ */ d.jsxs("div", { className: w(t.be("info")), children: [
|
|
1599
|
+
/* @__PURE__ */ d.jsxs("div", { className: w(t.be("music")), children: [
|
|
1600
|
+
/* @__PURE__ */ d.jsx("span", { className: w(t.be("title")), children: ((A = E.currentSong) == null ? void 0 : A.name) ?? "Audio name" }),
|
|
1601
|
+
/* @__PURE__ */ d.jsxs("span", { className: w(t.be("author")), children: [
|
|
1951
1602
|
" ",
|
|
1952
1603
|
"-",
|
|
1953
1604
|
" ",
|
|
1954
|
-
|
|
1605
|
+
C((D = E.currentSong) == null ? void 0 : D.artist)
|
|
1955
1606
|
] })
|
|
1956
1607
|
] }),
|
|
1957
|
-
|
|
1958
|
-
|
|
1608
|
+
n === "fixed" ? null : /* @__PURE__ */ d.jsx(
|
|
1609
|
+
Oe,
|
|
1959
1610
|
{
|
|
1960
|
-
show:
|
|
1961
|
-
lrcText:
|
|
1962
|
-
currentTime:
|
|
1611
|
+
show: f,
|
|
1612
|
+
lrcText: E.currentSong.lrc,
|
|
1613
|
+
currentTime: c.currentTime ?? 0
|
|
1963
1614
|
}
|
|
1964
1615
|
),
|
|
1965
|
-
/* @__PURE__ */
|
|
1966
|
-
|
|
1616
|
+
/* @__PURE__ */ d.jsx(
|
|
1617
|
+
xt,
|
|
1967
1618
|
{
|
|
1968
|
-
volume:
|
|
1969
|
-
onChangeVolume:
|
|
1970
|
-
muted:
|
|
1971
|
-
onToggleMuted: () =>
|
|
1972
|
-
currentTime:
|
|
1973
|
-
audioDurationSeconds:
|
|
1974
|
-
bufferedSeconds:
|
|
1975
|
-
onSeek: (
|
|
1976
|
-
onToggleMenu: () =>
|
|
1977
|
-
order:
|
|
1978
|
-
onOrderChange:
|
|
1979
|
-
loop:
|
|
1980
|
-
onLoopChange:
|
|
1981
|
-
isPlaying:
|
|
1982
|
-
onTogglePlay:
|
|
1619
|
+
volume: c.volume ?? a,
|
|
1620
|
+
onChangeVolume: c.setVolume,
|
|
1621
|
+
muted: c.muted ?? !1,
|
|
1622
|
+
onToggleMuted: () => c.toggleMuted(),
|
|
1623
|
+
currentTime: c.currentTime,
|
|
1624
|
+
audioDurationSeconds: c.duration,
|
|
1625
|
+
bufferedSeconds: c.bufferedSeconds,
|
|
1626
|
+
onSeek: (O) => c.seek(O),
|
|
1627
|
+
onToggleMenu: () => h((O) => !O),
|
|
1628
|
+
order: E.order,
|
|
1629
|
+
onOrderChange: E.setOrder,
|
|
1630
|
+
loop: E.loop,
|
|
1631
|
+
onLoopChange: E.setLoop,
|
|
1632
|
+
isPlaying: c.isPlaying ?? !1,
|
|
1633
|
+
onTogglePlay: m,
|
|
1983
1634
|
onSkipForward: () => {
|
|
1984
|
-
|
|
1635
|
+
E.hasNextSong && E.next();
|
|
1985
1636
|
},
|
|
1986
1637
|
onSkipBack: () => {
|
|
1987
|
-
|
|
1638
|
+
E.previous();
|
|
1988
1639
|
},
|
|
1989
|
-
showLyrics:
|
|
1640
|
+
showLyrics: f,
|
|
1990
1641
|
onToggleLyrics: () => {
|
|
1991
|
-
|
|
1642
|
+
v((O) => !O);
|
|
1992
1643
|
}
|
|
1993
1644
|
}
|
|
1994
1645
|
)
|
|
1995
1646
|
] }),
|
|
1996
|
-
/* @__PURE__ */
|
|
1997
|
-
/* @__PURE__ */
|
|
1647
|
+
/* @__PURE__ */ d.jsx("div", { className: t.be("notice"), style: s.style, children: s.text }),
|
|
1648
|
+
/* @__PURE__ */ d.jsx(
|
|
1998
1649
|
"div",
|
|
1999
1650
|
{
|
|
2000
|
-
className:
|
|
2001
|
-
onClick: () =>
|
|
2002
|
-
children: /* @__PURE__ */
|
|
1651
|
+
className: t.be("miniswitcher"),
|
|
1652
|
+
onClick: () => _((O) => !O),
|
|
1653
|
+
children: /* @__PURE__ */ d.jsx("button", { className: w(t.bs("icon"), t.bs("icon-right")), type: "button", children: /* @__PURE__ */ d.jsx(nt, {}) })
|
|
2003
1654
|
}
|
|
2004
1655
|
)
|
|
2005
1656
|
]
|
|
2006
1657
|
}
|
|
2007
1658
|
),
|
|
2008
|
-
|
|
2009
|
-
|
|
1659
|
+
j ? /* @__PURE__ */ d.jsx(
|
|
1660
|
+
Et,
|
|
2010
1661
|
{
|
|
2011
|
-
open:
|
|
1662
|
+
open: p,
|
|
2012
1663
|
audio: y,
|
|
2013
|
-
playingAudioUrl:
|
|
2014
|
-
onPlayAudio:
|
|
2015
|
-
listMaxHeight:
|
|
2016
|
-
mini:
|
|
1664
|
+
playingAudioUrl: E.currentSong.url,
|
|
1665
|
+
onPlayAudio: g,
|
|
1666
|
+
listMaxHeight: u,
|
|
1667
|
+
mini: i
|
|
2017
1668
|
}
|
|
2018
1669
|
) : null,
|
|
2019
|
-
|
|
2020
|
-
|
|
1670
|
+
n === "fixed" && /* @__PURE__ */ d.jsx(
|
|
1671
|
+
Oe,
|
|
2021
1672
|
{
|
|
2022
|
-
show:
|
|
2023
|
-
lrcText:
|
|
2024
|
-
currentTime:
|
|
1673
|
+
show: f,
|
|
1674
|
+
lrcText: E.currentSong.lrc,
|
|
1675
|
+
currentTime: c.currentTime ?? 0
|
|
2025
1676
|
}
|
|
2026
1677
|
)
|
|
2027
1678
|
]
|
|
@@ -2029,5 +1680,5 @@ function Wt(e) {
|
|
|
2029
1680
|
);
|
|
2030
1681
|
}
|
|
2031
1682
|
export {
|
|
2032
|
-
|
|
1683
|
+
Ct as TwistAPlayer
|
|
2033
1684
|
};
|