@banou/media-player 0.2.1 → 0.2.3
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/build/index.js +613 -602
- package/package.json +2 -2
- package/src/index.tsx +7 -1
- package/src/main.tsx +3 -3
- package/src/utils.ts +13 -2
package/build/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as Fe from "react";
|
|
2
|
-
import
|
|
3
|
-
import { css as
|
|
2
|
+
import ht, { forwardRef as pt, useContext as Vt, useState as Y, useEffect as he, useRef as Qe, useMemo as Or } from "react";
|
|
3
|
+
import { css as Nr } from "@emotion/react";
|
|
4
4
|
import { makeRemuxer as Bt } from "libav-wasm";
|
|
5
5
|
import Ut from "jassub";
|
|
6
|
-
import
|
|
7
|
-
import { VolumeX as
|
|
6
|
+
import Xe from "react-tooltip";
|
|
7
|
+
import { VolumeX as Jr, Volume2 as zt, Volume1 as Yt, Volume as Wt, AlertTriangle as qt } from "react-feather";
|
|
8
8
|
import Gt from "p-queue";
|
|
9
|
-
var Ar = { exports: {} },
|
|
9
|
+
var Ar = { exports: {} }, ir = {};
|
|
10
10
|
/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react-jsx-runtime.production.min.js
|
|
@@ -16,25 +16,25 @@ var Ar = { exports: {} }, or = {};
|
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
18
|
*/
|
|
19
|
-
var
|
|
19
|
+
var Xr;
|
|
20
20
|
function Kt() {
|
|
21
|
-
if (
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
var e =
|
|
21
|
+
if (Xr)
|
|
22
|
+
return ir;
|
|
23
|
+
Xr = 1;
|
|
24
|
+
var e = ht, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
25
25
|
function l(u, d, v) {
|
|
26
26
|
var m, h = {}, y = null, k = null;
|
|
27
27
|
v !== void 0 && (y = "" + v), d.key !== void 0 && (y = "" + d.key), d.ref !== void 0 && (k = d.ref);
|
|
28
28
|
for (m in d)
|
|
29
|
-
a.call(d, m) && !
|
|
29
|
+
a.call(d, m) && !o.hasOwnProperty(m) && (h[m] = d[m]);
|
|
30
30
|
if (u && u.defaultProps)
|
|
31
31
|
for (m in d = u.defaultProps, d)
|
|
32
32
|
h[m] === void 0 && (h[m] = d[m]);
|
|
33
|
-
return { $$typeof: r, type: u, key: y, ref: k, props: h, _owner:
|
|
33
|
+
return { $$typeof: r, type: u, key: y, ref: k, props: h, _owner: i.current };
|
|
34
34
|
}
|
|
35
|
-
return
|
|
35
|
+
return ir.Fragment = t, ir.jsx = l, ir.jsxs = l, ir;
|
|
36
36
|
}
|
|
37
|
-
var
|
|
37
|
+
var sr = {};
|
|
38
38
|
/**
|
|
39
39
|
* @license React
|
|
40
40
|
* react-jsx-runtime.development.js
|
|
@@ -44,10 +44,10 @@ var ir = {};
|
|
|
44
44
|
* This source code is licensed under the MIT license found in the
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
46
|
*/
|
|
47
|
-
var
|
|
47
|
+
var Zr;
|
|
48
48
|
function Ht() {
|
|
49
|
-
return
|
|
50
|
-
var e =
|
|
49
|
+
return Zr || (Zr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
50
|
+
var e = ht, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), k = Symbol.for("react.offscreen"), N = Symbol.iterator, b = "@@iterator";
|
|
51
51
|
function x(n) {
|
|
52
52
|
if (n === null || typeof n != "object")
|
|
53
53
|
return null;
|
|
@@ -66,22 +66,22 @@ function Ht() {
|
|
|
66
66
|
{
|
|
67
67
|
var E = _.ReactDebugCurrentFrame, $ = E.getStackAddendum();
|
|
68
68
|
$ !== "" && (c += "%s", g = g.concat([$]));
|
|
69
|
-
var
|
|
69
|
+
var V = g.map(function(A) {
|
|
70
70
|
return String(A);
|
|
71
71
|
});
|
|
72
|
-
|
|
72
|
+
V.unshift("Warning: " + c), Function.prototype.apply.call(console[n], console, V);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
var I = !1, f = !1,
|
|
75
|
+
var I = !1, f = !1, B = !1, R = !1, Oe = !1, we;
|
|
76
76
|
we = Symbol.for("react.module.reference");
|
|
77
|
-
function
|
|
78
|
-
return !!(typeof n == "string" || typeof n == "function" || n === a || n ===
|
|
77
|
+
function Ae(n) {
|
|
78
|
+
return !!(typeof n == "string" || typeof n == "function" || n === a || n === o || Oe || n === i || n === v || n === m || R || n === k || I || f || B || typeof n == "object" && n !== null && (n.$$typeof === y || n.$$typeof === h || n.$$typeof === l || n.$$typeof === u || n.$$typeof === d || // This needs to include all possible module reference object
|
|
79
79
|
// types supported by any Flight configuration anywhere since
|
|
80
80
|
// we don't know which Flight build this will end up being used
|
|
81
81
|
// with.
|
|
82
82
|
n.$$typeof === we || n.getModuleId !== void 0));
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Ie(n, c, g) {
|
|
85
85
|
var E = n.displayName;
|
|
86
86
|
if (E)
|
|
87
87
|
return E;
|
|
@@ -91,7 +91,7 @@ function Ht() {
|
|
|
91
91
|
function ue(n) {
|
|
92
92
|
return n.displayName || "Context";
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function H(n) {
|
|
95
95
|
if (n == null)
|
|
96
96
|
return null;
|
|
97
97
|
if (typeof n.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
@@ -103,9 +103,9 @@ function Ht() {
|
|
|
103
103
|
return "Fragment";
|
|
104
104
|
case t:
|
|
105
105
|
return "Portal";
|
|
106
|
-
case i:
|
|
107
|
-
return "Profiler";
|
|
108
106
|
case o:
|
|
107
|
+
return "Profiler";
|
|
108
|
+
case i:
|
|
109
109
|
return "StrictMode";
|
|
110
110
|
case v:
|
|
111
111
|
return "Suspense";
|
|
@@ -121,14 +121,14 @@ function Ht() {
|
|
|
121
121
|
var g = n;
|
|
122
122
|
return ue(g._context) + ".Provider";
|
|
123
123
|
case d:
|
|
124
|
-
return
|
|
124
|
+
return Ie(n, n.render, "ForwardRef");
|
|
125
125
|
case h:
|
|
126
126
|
var E = n.displayName || null;
|
|
127
|
-
return E !== null ? E :
|
|
127
|
+
return E !== null ? E : H(n.type) || "Memo";
|
|
128
128
|
case y: {
|
|
129
|
-
var $ = n,
|
|
129
|
+
var $ = n, V = $._payload, A = $._init;
|
|
130
130
|
try {
|
|
131
|
-
return
|
|
131
|
+
return H(A(V));
|
|
132
132
|
} catch {
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
@@ -136,14 +136,14 @@ function Ht() {
|
|
|
136
136
|
}
|
|
137
137
|
return null;
|
|
138
138
|
}
|
|
139
|
-
var
|
|
139
|
+
var J = Object.assign, fe = 0, X, Ee, ne, ae, ee, Ne, ke;
|
|
140
140
|
function Ce() {
|
|
141
141
|
}
|
|
142
142
|
Ce.__reactDisabledLog = !0;
|
|
143
|
-
function
|
|
143
|
+
function $e() {
|
|
144
144
|
{
|
|
145
145
|
if (fe === 0) {
|
|
146
|
-
|
|
146
|
+
X = console.log, Ee = console.info, ne = console.warn, ae = console.error, ee = console.group, Ne = console.groupCollapsed, ke = console.groupEnd;
|
|
147
147
|
var n = {
|
|
148
148
|
configurable: !0,
|
|
149
149
|
enumerable: !0,
|
|
@@ -172,25 +172,25 @@ function Ht() {
|
|
|
172
172
|
writable: !0
|
|
173
173
|
};
|
|
174
174
|
Object.defineProperties(console, {
|
|
175
|
-
log:
|
|
176
|
-
value:
|
|
175
|
+
log: J({}, n, {
|
|
176
|
+
value: X
|
|
177
177
|
}),
|
|
178
|
-
info:
|
|
178
|
+
info: J({}, n, {
|
|
179
179
|
value: Ee
|
|
180
180
|
}),
|
|
181
|
-
warn:
|
|
181
|
+
warn: J({}, n, {
|
|
182
182
|
value: ne
|
|
183
183
|
}),
|
|
184
|
-
error:
|
|
184
|
+
error: J({}, n, {
|
|
185
185
|
value: ae
|
|
186
186
|
}),
|
|
187
|
-
group:
|
|
188
|
-
value:
|
|
187
|
+
group: J({}, n, {
|
|
188
|
+
value: ee
|
|
189
189
|
}),
|
|
190
|
-
groupCollapsed:
|
|
190
|
+
groupCollapsed: J({}, n, {
|
|
191
191
|
value: Ne
|
|
192
192
|
}),
|
|
193
|
-
groupEnd:
|
|
193
|
+
groupEnd: J({}, n, {
|
|
194
194
|
value: ke
|
|
195
195
|
})
|
|
196
196
|
});
|
|
@@ -229,8 +229,8 @@ function Ht() {
|
|
|
229
229
|
ie = !0;
|
|
230
230
|
var $ = Error.prepareStackTrace;
|
|
231
231
|
Error.prepareStackTrace = void 0;
|
|
232
|
-
var
|
|
233
|
-
|
|
232
|
+
var V;
|
|
233
|
+
V = ve.current, ve.current = null, $e();
|
|
234
234
|
try {
|
|
235
235
|
if (c) {
|
|
236
236
|
var A = function() {
|
|
@@ -267,31 +267,31 @@ function Ht() {
|
|
|
267
267
|
if (De && E && typeof De.stack == "string") {
|
|
268
268
|
for (var T = De.stack.split(`
|
|
269
269
|
`), le = E.stack.split(`
|
|
270
|
-
`),
|
|
271
|
-
|
|
272
|
-
for (;
|
|
273
|
-
if (T[
|
|
274
|
-
if (
|
|
270
|
+
`), K = T.length - 1, Z = le.length - 1; K >= 1 && Z >= 0 && T[K] !== le[Z]; )
|
|
271
|
+
Z--;
|
|
272
|
+
for (; K >= 1 && Z >= 0; K--, Z--)
|
|
273
|
+
if (T[K] !== le[Z]) {
|
|
274
|
+
if (K !== 1 || Z !== 1)
|
|
275
275
|
do
|
|
276
|
-
if (
|
|
276
|
+
if (K--, Z--, Z < 0 || T[K] !== le[Z]) {
|
|
277
277
|
var xe = `
|
|
278
|
-
` + T[
|
|
278
|
+
` + T[K].replace(" at new ", " at ");
|
|
279
279
|
return n.displayName && xe.includes("<anonymous>") && (xe = xe.replace("<anonymous>", n.displayName)), typeof n == "function" && be.set(n, xe), xe;
|
|
280
280
|
}
|
|
281
|
-
while (
|
|
281
|
+
while (K >= 1 && Z >= 0);
|
|
282
282
|
break;
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
} finally {
|
|
286
|
-
ie = !1, ve.current =
|
|
286
|
+
ie = !1, ve.current = V, _e(), Error.prepareStackTrace = $;
|
|
287
287
|
}
|
|
288
|
-
var
|
|
289
|
-
return typeof n == "function" && be.set(n,
|
|
288
|
+
var Je = n ? n.displayName || n.name : "", Hr = Je ? j(Je) : "";
|
|
289
|
+
return typeof n == "function" && be.set(n, Hr), Hr;
|
|
290
290
|
}
|
|
291
291
|
function w(n, c, g) {
|
|
292
292
|
return s(n, !1);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function W(n) {
|
|
295
295
|
var c = n.prototype;
|
|
296
296
|
return !!(c && c.isReactComponent);
|
|
297
297
|
}
|
|
@@ -299,7 +299,7 @@ function Ht() {
|
|
|
299
299
|
if (n == null)
|
|
300
300
|
return "";
|
|
301
301
|
if (typeof n == "function")
|
|
302
|
-
return s(n,
|
|
302
|
+
return s(n, W(n));
|
|
303
303
|
if (typeof n == "string")
|
|
304
304
|
return j(n);
|
|
305
305
|
switch (n) {
|
|
@@ -315,28 +315,28 @@ function Ht() {
|
|
|
315
315
|
case h:
|
|
316
316
|
return de(n.type, c, g);
|
|
317
317
|
case y: {
|
|
318
|
-
var E = n, $ = E._payload,
|
|
318
|
+
var E = n, $ = E._payload, V = E._init;
|
|
319
319
|
try {
|
|
320
|
-
return de(
|
|
320
|
+
return de(V($), c, g);
|
|
321
321
|
} catch {
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
return "";
|
|
326
326
|
}
|
|
327
|
-
var
|
|
328
|
-
function
|
|
327
|
+
var Ve = Object.prototype.hasOwnProperty, We = {}, nr = _.ReactDebugCurrentFrame;
|
|
328
|
+
function Le(n) {
|
|
329
329
|
if (n) {
|
|
330
330
|
var c = n._owner, g = de(n.type, n._source, c ? c.type : null);
|
|
331
|
-
|
|
331
|
+
nr.setExtraStackFrame(g);
|
|
332
332
|
} else
|
|
333
|
-
|
|
333
|
+
nr.setExtraStackFrame(null);
|
|
334
334
|
}
|
|
335
335
|
function me(n, c, g, E, $) {
|
|
336
336
|
{
|
|
337
|
-
var
|
|
337
|
+
var V = Function.call.bind(Ve);
|
|
338
338
|
for (var A in n)
|
|
339
|
-
if (
|
|
339
|
+
if (V(n, A)) {
|
|
340
340
|
var T = void 0;
|
|
341
341
|
try {
|
|
342
342
|
if (typeof n[A] != "function") {
|
|
@@ -344,54 +344,54 @@ function Ht() {
|
|
|
344
344
|
throw le.name = "Invariant Violation", le;
|
|
345
345
|
}
|
|
346
346
|
T = n[A](c, A, E, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
347
|
-
} catch (
|
|
348
|
-
T =
|
|
347
|
+
} catch (K) {
|
|
348
|
+
T = K;
|
|
349
349
|
}
|
|
350
|
-
T && !(T instanceof Error) && (
|
|
350
|
+
T && !(T instanceof Error) && (Le($), S("%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).", E || "React class", g, A, typeof T), Le(null)), T instanceof Error && !(T.message in We) && (We[T.message] = !0, Le($), S("Failed %s type: %s", g, T.message), Le(null));
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
var
|
|
355
|
-
function We(n) {
|
|
356
|
-
return dr(n);
|
|
357
|
-
}
|
|
354
|
+
var mr = Array.isArray;
|
|
358
355
|
function qe(n) {
|
|
356
|
+
return mr(n);
|
|
357
|
+
}
|
|
358
|
+
function Ge(n) {
|
|
359
359
|
{
|
|
360
360
|
var c = typeof Symbol == "function" && Symbol.toStringTag, g = c && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
361
361
|
return g;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function gr(n) {
|
|
365
365
|
try {
|
|
366
|
-
return
|
|
366
|
+
return ar(n), !1;
|
|
367
367
|
} catch {
|
|
368
368
|
return !0;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function ar(n) {
|
|
372
372
|
return "" + n;
|
|
373
373
|
}
|
|
374
374
|
function se(n) {
|
|
375
|
-
if (
|
|
376
|
-
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
375
|
+
if (gr(n))
|
|
376
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(n)), ar(n);
|
|
377
377
|
}
|
|
378
|
-
var
|
|
378
|
+
var Be = _.ReactCurrentOwner, Rr = {
|
|
379
379
|
key: !0,
|
|
380
380
|
ref: !0,
|
|
381
381
|
__self: !0,
|
|
382
382
|
__source: !0
|
|
383
|
-
},
|
|
384
|
-
|
|
385
|
-
function
|
|
386
|
-
if (
|
|
383
|
+
}, Ue, Ke, ze;
|
|
384
|
+
ze = {};
|
|
385
|
+
function He(n) {
|
|
386
|
+
if (Ve.call(n, "ref")) {
|
|
387
387
|
var c = Object.getOwnPropertyDescriptor(n, "ref").get;
|
|
388
388
|
if (c && c.isReactWarning)
|
|
389
389
|
return !1;
|
|
390
390
|
}
|
|
391
391
|
return n.ref !== void 0;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
if (
|
|
393
|
+
function Ye(n) {
|
|
394
|
+
if (Ve.call(n, "key")) {
|
|
395
395
|
var c = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
396
396
|
if (c && c.isReactWarning)
|
|
397
397
|
return !1;
|
|
@@ -399,15 +399,15 @@ function Ht() {
|
|
|
399
399
|
return n.key !== void 0;
|
|
400
400
|
}
|
|
401
401
|
function Cr(n, c) {
|
|
402
|
-
if (typeof n.ref == "string" &&
|
|
403
|
-
var g =
|
|
404
|
-
|
|
402
|
+
if (typeof n.ref == "string" && Be.current && c && Be.current.stateNode !== c) {
|
|
403
|
+
var g = H(Be.current.type);
|
|
404
|
+
ze[g] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', H(Be.current.type), n.ref), ze[g] = !0);
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Tr(n, c) {
|
|
408
408
|
{
|
|
409
409
|
var g = function() {
|
|
410
|
-
|
|
410
|
+
Ue || (Ue = !0, S("%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)", c));
|
|
411
411
|
};
|
|
412
412
|
g.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
413
413
|
get: g,
|
|
@@ -415,7 +415,7 @@ function Ht() {
|
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function C(n, c) {
|
|
419
419
|
{
|
|
420
420
|
var g = function() {
|
|
421
421
|
Ke || (Ke = !0, S("%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)", c));
|
|
@@ -426,7 +426,7 @@ function Ht() {
|
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
var
|
|
429
|
+
var O = function(n, c, g, E, $, V, A) {
|
|
430
430
|
var T = {
|
|
431
431
|
// This tag allows us to uniquely identify this as a React Element
|
|
432
432
|
$$typeof: r,
|
|
@@ -436,7 +436,7 @@ function Ht() {
|
|
|
436
436
|
ref: g,
|
|
437
437
|
props: A,
|
|
438
438
|
// Record the component responsible for creating this element.
|
|
439
|
-
_owner:
|
|
439
|
+
_owner: V
|
|
440
440
|
};
|
|
441
441
|
return T._store = {}, Object.defineProperty(T._store, "validated", {
|
|
442
442
|
configurable: !1,
|
|
@@ -455,41 +455,41 @@ function Ht() {
|
|
|
455
455
|
value: $
|
|
456
456
|
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
|
457
457
|
};
|
|
458
|
-
function
|
|
458
|
+
function q(n, c, g, E, $) {
|
|
459
459
|
{
|
|
460
|
-
var
|
|
461
|
-
g !== void 0 && (se(g), T = "" + g),
|
|
462
|
-
for (
|
|
463
|
-
|
|
460
|
+
var V, A = {}, T = null, le = null;
|
|
461
|
+
g !== void 0 && (se(g), T = "" + g), Ye(c) && (se(c.key), T = "" + c.key), He(c) && (le = c.ref, Cr(c, $));
|
|
462
|
+
for (V in c)
|
|
463
|
+
Ve.call(c, V) && !Rr.hasOwnProperty(V) && (A[V] = c[V]);
|
|
464
464
|
if (n && n.defaultProps) {
|
|
465
|
-
var
|
|
466
|
-
for (
|
|
467
|
-
A[
|
|
465
|
+
var K = n.defaultProps;
|
|
466
|
+
for (V in K)
|
|
467
|
+
A[V] === void 0 && (A[V] = K[V]);
|
|
468
468
|
}
|
|
469
469
|
if (T || le) {
|
|
470
|
-
var
|
|
471
|
-
T &&
|
|
470
|
+
var Z = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
471
|
+
T && Tr(A, Z), le && C(A, Z);
|
|
472
472
|
}
|
|
473
|
-
return
|
|
473
|
+
return O(n, T, le, $, E, Be.current, A);
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
var
|
|
477
|
-
function
|
|
476
|
+
var G = _.ReactCurrentOwner, re = _.ReactDebugCurrentFrame;
|
|
477
|
+
function U(n) {
|
|
478
478
|
if (n) {
|
|
479
479
|
var c = n._owner, g = de(n.type, n._source, c ? c.type : null);
|
|
480
|
-
|
|
480
|
+
re.setExtraStackFrame(g);
|
|
481
481
|
} else
|
|
482
|
-
|
|
482
|
+
re.setExtraStackFrame(null);
|
|
483
483
|
}
|
|
484
|
-
var
|
|
485
|
-
|
|
486
|
-
function
|
|
484
|
+
var z;
|
|
485
|
+
z = !1;
|
|
486
|
+
function ce(n) {
|
|
487
487
|
return typeof n == "object" && n !== null && n.$$typeof === r;
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function Me() {
|
|
490
490
|
{
|
|
491
|
-
if (
|
|
492
|
-
var n =
|
|
491
|
+
if (G.current) {
|
|
492
|
+
var n = H(G.current.type);
|
|
493
493
|
if (n)
|
|
494
494
|
return `
|
|
495
495
|
|
|
@@ -498,7 +498,7 @@ Check the render method of \`` + n + "`.";
|
|
|
498
498
|
return "";
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function Wr(n) {
|
|
502
502
|
{
|
|
503
503
|
if (n !== void 0) {
|
|
504
504
|
var c = n.fileName.replace(/^.*[\\\/]/, ""), g = n.lineNumber;
|
|
@@ -509,10 +509,10 @@ Check your code at ` + c + ":" + g + ".";
|
|
|
509
509
|
return "";
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
var
|
|
513
|
-
function
|
|
512
|
+
var or = {};
|
|
513
|
+
function hr(n) {
|
|
514
514
|
{
|
|
515
|
-
var c =
|
|
515
|
+
var c = Me();
|
|
516
516
|
if (!c) {
|
|
517
517
|
var g = typeof n == "string" ? n : n.displayName || n.name;
|
|
518
518
|
g && (c = `
|
|
@@ -522,35 +522,35 @@ Check the top-level render call using <` + g + ">.");
|
|
|
522
522
|
return c;
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function qr(n, c) {
|
|
526
526
|
{
|
|
527
527
|
if (!n._store || n._store.validated || n.key != null)
|
|
528
528
|
return;
|
|
529
529
|
n._store.validated = !0;
|
|
530
|
-
var g =
|
|
531
|
-
if (
|
|
530
|
+
var g = hr(c);
|
|
531
|
+
if (or[g])
|
|
532
532
|
return;
|
|
533
|
-
|
|
533
|
+
or[g] = !0;
|
|
534
534
|
var E = "";
|
|
535
|
-
n && n._owner && n._owner !==
|
|
535
|
+
n && n._owner && n._owner !== G.current && (E = " It was passed a child from " + H(n._owner.type) + "."), U(n), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, E), U(null);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Gr(n, c) {
|
|
539
539
|
{
|
|
540
540
|
if (typeof n != "object")
|
|
541
541
|
return;
|
|
542
|
-
if (
|
|
542
|
+
if (qe(n))
|
|
543
543
|
for (var g = 0; g < n.length; g++) {
|
|
544
544
|
var E = n[g];
|
|
545
|
-
|
|
545
|
+
ce(E) && qr(E, c);
|
|
546
546
|
}
|
|
547
|
-
else if (
|
|
547
|
+
else if (ce(n))
|
|
548
548
|
n._store && (n._store.validated = !0);
|
|
549
549
|
else if (n) {
|
|
550
550
|
var $ = x(n);
|
|
551
551
|
if (typeof $ == "function" && $ !== n.entries)
|
|
552
|
-
for (var
|
|
553
|
-
|
|
552
|
+
for (var V = $.call(n), A; !(A = V.next()).done; )
|
|
553
|
+
ce(A.value) && qr(A.value, c);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
}
|
|
@@ -569,11 +569,11 @@ Check the top-level render call using <` + g + ">.");
|
|
|
569
569
|
else
|
|
570
570
|
return;
|
|
571
571
|
if (g) {
|
|
572
|
-
var E =
|
|
572
|
+
var E = H(c);
|
|
573
573
|
me(g, n.props, "prop", E, n);
|
|
574
|
-
} else if (c.PropTypes !== void 0 && !
|
|
575
|
-
|
|
576
|
-
var $ =
|
|
574
|
+
} else if (c.PropTypes !== void 0 && !z) {
|
|
575
|
+
z = !0;
|
|
576
|
+
var $ = H(c);
|
|
577
577
|
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", $ || "Unknown");
|
|
578
578
|
}
|
|
579
579
|
typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -584,56 +584,56 @@ Check the top-level render call using <` + g + ">.");
|
|
|
584
584
|
for (var c = Object.keys(n.props), g = 0; g < c.length; g++) {
|
|
585
585
|
var E = c[g];
|
|
586
586
|
if (E !== "children" && E !== "key") {
|
|
587
|
-
|
|
587
|
+
U(n), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), U(null);
|
|
588
588
|
break;
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
n.ref !== null && (
|
|
591
|
+
n.ref !== null && (U(n), S("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Kr(n, c, g, E, $, V) {
|
|
595
595
|
{
|
|
596
|
-
var A =
|
|
596
|
+
var A = Ae(n);
|
|
597
597
|
if (!A) {
|
|
598
598
|
var T = "";
|
|
599
599
|
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
600
|
-
var le =
|
|
601
|
-
le ? T += le : T +=
|
|
602
|
-
var
|
|
603
|
-
n === null ?
|
|
600
|
+
var le = Wr($);
|
|
601
|
+
le ? T += le : T += Me();
|
|
602
|
+
var K;
|
|
603
|
+
n === null ? K = "null" : qe(n) ? K = "array" : n !== void 0 && n.$$typeof === r ? (K = "<" + (H(n.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : K = typeof n, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", K, T);
|
|
604
604
|
}
|
|
605
|
-
var
|
|
606
|
-
if (
|
|
607
|
-
return
|
|
605
|
+
var Z = q(n, c, g, $, V);
|
|
606
|
+
if (Z == null)
|
|
607
|
+
return Z;
|
|
608
608
|
if (A) {
|
|
609
609
|
var xe = c.children;
|
|
610
610
|
if (xe !== void 0)
|
|
611
611
|
if (E)
|
|
612
|
-
if (
|
|
613
|
-
for (var
|
|
614
|
-
|
|
612
|
+
if (qe(xe)) {
|
|
613
|
+
for (var Je = 0; Je < xe.length; Je++)
|
|
614
|
+
Gr(xe[Je], n);
|
|
615
615
|
Object.freeze && Object.freeze(xe);
|
|
616
616
|
} else
|
|
617
617
|
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
618
618
|
else
|
|
619
|
-
|
|
619
|
+
Gr(xe, n);
|
|
620
620
|
}
|
|
621
|
-
return n === a ? Lt(
|
|
621
|
+
return n === a ? Lt(Z) : $t(Z), Z;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
function Mt(n, c, g) {
|
|
625
|
-
return
|
|
625
|
+
return Kr(n, c, g, !0);
|
|
626
626
|
}
|
|
627
627
|
function Dt(n, c, g) {
|
|
628
|
-
return
|
|
628
|
+
return Kr(n, c, g, !1);
|
|
629
629
|
}
|
|
630
630
|
var Ft = Dt, jt = Mt;
|
|
631
|
-
|
|
632
|
-
}()),
|
|
631
|
+
sr.Fragment = a, sr.jsx = Ft, sr.jsxs = jt;
|
|
632
|
+
}()), sr;
|
|
633
633
|
}
|
|
634
634
|
process.env.NODE_ENV === "production" ? Ar.exports = Kt() : Ar.exports = Ht();
|
|
635
635
|
var Fr = Ar.exports;
|
|
636
|
-
const Jt = Fr.Fragment,
|
|
636
|
+
const Jt = Fr.Fragment, Qr = Fr.jsx, et = Fr.jsxs;
|
|
637
637
|
function Xt(e) {
|
|
638
638
|
if (e.sheet)
|
|
639
639
|
return e.sheet;
|
|
@@ -648,9 +648,9 @@ function Zt(e) {
|
|
|
648
648
|
var Qt = /* @__PURE__ */ function() {
|
|
649
649
|
function e(t) {
|
|
650
650
|
var a = this;
|
|
651
|
-
this._insertTag = function(
|
|
652
|
-
var
|
|
653
|
-
a.tags.length === 0 ? a.insertionPoint ?
|
|
651
|
+
this._insertTag = function(i) {
|
|
652
|
+
var o;
|
|
653
|
+
a.tags.length === 0 ? a.insertionPoint ? o = a.insertionPoint.nextSibling : a.prepend ? o = a.container.firstChild : o = a.before : o = a.tags[a.tags.length - 1].nextSibling, a.container.insertBefore(i, o), a.tags.push(i);
|
|
654
654
|
}, this.isSpeedy = t.speedy === void 0 ? process.env.NODE_ENV === "production" : t.speedy, this.tags = [], this.ctr = 0, this.nonce = t.nonce, this.key = t.key, this.container = t.container, this.prepend = t.prepend, this.insertionPoint = t.insertionPoint, this.before = null;
|
|
655
655
|
}
|
|
656
656
|
var r = e.prototype;
|
|
@@ -658,32 +658,32 @@ var Qt = /* @__PURE__ */ function() {
|
|
|
658
658
|
a.forEach(this._insertTag);
|
|
659
659
|
}, r.insert = function(a) {
|
|
660
660
|
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Zt(this));
|
|
661
|
-
var
|
|
661
|
+
var i = this.tags[this.tags.length - 1];
|
|
662
662
|
if (process.env.NODE_ENV !== "production") {
|
|
663
|
-
var
|
|
664
|
-
|
|
665
|
-
` + a + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."), this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !
|
|
663
|
+
var o = a.charCodeAt(0) === 64 && a.charCodeAt(1) === 105;
|
|
664
|
+
o && this._alreadyInsertedOrderInsensitiveRule && console.error(`You're attempting to insert the following rule:
|
|
665
|
+
` + a + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."), this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !o;
|
|
666
666
|
}
|
|
667
667
|
if (this.isSpeedy) {
|
|
668
|
-
var l = Xt(
|
|
668
|
+
var l = Xt(i);
|
|
669
669
|
try {
|
|
670
670
|
l.insertRule(a, l.cssRules.length);
|
|
671
671
|
} catch (u) {
|
|
672
672
|
process.env.NODE_ENV !== "production" && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(a) && console.error('There was a problem inserting the following rule: "' + a + '"', u);
|
|
673
673
|
}
|
|
674
674
|
} else
|
|
675
|
-
|
|
675
|
+
i.appendChild(document.createTextNode(a));
|
|
676
676
|
this.ctr++;
|
|
677
677
|
}, r.flush = function() {
|
|
678
678
|
this.tags.forEach(function(a) {
|
|
679
679
|
return a.parentNode && a.parentNode.removeChild(a);
|
|
680
680
|
}), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
|
|
681
681
|
}, e;
|
|
682
|
-
}(), oe = "-ms-",
|
|
682
|
+
}(), oe = "-ms-", wr = "-moz-", L = "-webkit-", jr = "comm", Vr = "rule", Br = "decl", en = "@import", vt = "@keyframes", rn = "@layer", tn = Math.abs, kr = String.fromCharCode, nn = Object.assign;
|
|
683
683
|
function an(e, r) {
|
|
684
684
|
return te(e, 0) ^ 45 ? (((r << 2 ^ te(e, 0)) << 2 ^ te(e, 1)) << 2 ^ te(e, 2)) << 2 ^ te(e, 3) : 0;
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function bt(e) {
|
|
687
687
|
return e.trim();
|
|
688
688
|
}
|
|
689
689
|
function on(e, r) {
|
|
@@ -698,47 +698,47 @@ function Ir(e, r) {
|
|
|
698
698
|
function te(e, r) {
|
|
699
699
|
return e.charCodeAt(r) | 0;
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function lr(e, r, t) {
|
|
702
702
|
return e.slice(r, t);
|
|
703
703
|
}
|
|
704
|
-
function
|
|
704
|
+
function Te(e) {
|
|
705
705
|
return e.length;
|
|
706
706
|
}
|
|
707
707
|
function Ur(e) {
|
|
708
708
|
return e.length;
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function pr(e, r) {
|
|
711
711
|
return r.push(e), e;
|
|
712
712
|
}
|
|
713
713
|
function sn(e, r) {
|
|
714
714
|
return e.map(r).join("");
|
|
715
715
|
}
|
|
716
|
-
var
|
|
717
|
-
function
|
|
718
|
-
return { value: e, root: r, parent: t, type: a, props:
|
|
716
|
+
var Sr = 1, rr = 1, yt = 0, pe = 0, Q = 0, tr = "";
|
|
717
|
+
function xr(e, r, t, a, i, o, l) {
|
|
718
|
+
return { value: e, root: r, parent: t, type: a, props: i, children: o, line: Sr, column: rr, length: l, return: "" };
|
|
719
719
|
}
|
|
720
|
-
function
|
|
721
|
-
return nn(
|
|
720
|
+
function cr(e, r) {
|
|
721
|
+
return nn(xr("", null, null, "", null, null, 0), e, { length: -e.length }, r);
|
|
722
722
|
}
|
|
723
723
|
function cn() {
|
|
724
|
-
return
|
|
724
|
+
return Q;
|
|
725
725
|
}
|
|
726
726
|
function ln() {
|
|
727
|
-
return
|
|
727
|
+
return Q = pe > 0 ? te(tr, --pe) : 0, rr--, Q === 10 && (rr = 1, Sr--), Q;
|
|
728
728
|
}
|
|
729
729
|
function ye() {
|
|
730
|
-
return
|
|
730
|
+
return Q = pe < yt ? te(tr, pe++) : 0, rr++, Q === 10 && (rr = 1, Sr++), Q;
|
|
731
731
|
}
|
|
732
|
-
function
|
|
733
|
-
return te(
|
|
732
|
+
function Pe() {
|
|
733
|
+
return te(tr, pe);
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function vr() {
|
|
736
736
|
return pe;
|
|
737
737
|
}
|
|
738
|
-
function
|
|
739
|
-
return
|
|
738
|
+
function dr(e, r) {
|
|
739
|
+
return lr(tr, e, r);
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function ur(e) {
|
|
742
742
|
switch (e) {
|
|
743
743
|
case 0:
|
|
744
744
|
case 9:
|
|
@@ -770,33 +770,33 @@ function lr(e) {
|
|
|
770
770
|
}
|
|
771
771
|
return 0;
|
|
772
772
|
}
|
|
773
|
-
function yt(e) {
|
|
774
|
-
return kr = er = 1, bt = Pe(rr = e), pe = 0, [];
|
|
775
|
-
}
|
|
776
773
|
function wt(e) {
|
|
777
|
-
return rr =
|
|
774
|
+
return Sr = rr = 1, yt = Te(tr = e), pe = 0, [];
|
|
775
|
+
}
|
|
776
|
+
function Et(e) {
|
|
777
|
+
return tr = "", e;
|
|
778
778
|
}
|
|
779
|
-
function
|
|
780
|
-
return
|
|
779
|
+
function br(e) {
|
|
780
|
+
return bt(dr(pe - 1, $r(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
781
781
|
}
|
|
782
782
|
function un(e) {
|
|
783
|
-
for (; (
|
|
783
|
+
for (; (Q = Pe()) && Q < 33; )
|
|
784
784
|
ye();
|
|
785
|
-
return
|
|
785
|
+
return ur(e) > 2 || ur(Q) > 3 ? "" : " ";
|
|
786
786
|
}
|
|
787
787
|
function fn(e, r) {
|
|
788
|
-
for (; --r && ye() && !(
|
|
788
|
+
for (; --r && ye() && !(Q < 48 || Q > 102 || Q > 57 && Q < 65 || Q > 70 && Q < 97); )
|
|
789
789
|
;
|
|
790
|
-
return
|
|
790
|
+
return dr(e, vr() + (r < 6 && Pe() == 32 && ye() == 32));
|
|
791
791
|
}
|
|
792
792
|
function $r(e) {
|
|
793
793
|
for (; ye(); )
|
|
794
|
-
switch (
|
|
794
|
+
switch (Q) {
|
|
795
795
|
case e:
|
|
796
796
|
return pe;
|
|
797
797
|
case 34:
|
|
798
798
|
case 39:
|
|
799
|
-
e !== 34 && e !== 39 && $r(
|
|
799
|
+
e !== 34 && e !== 39 && $r(Q);
|
|
800
800
|
break;
|
|
801
801
|
case 40:
|
|
802
802
|
e === 41 && $r(e);
|
|
@@ -808,31 +808,31 @@ function $r(e) {
|
|
|
808
808
|
return pe;
|
|
809
809
|
}
|
|
810
810
|
function dn(e, r) {
|
|
811
|
-
for (; ye() && e +
|
|
812
|
-
if (e +
|
|
811
|
+
for (; ye() && e + Q !== 47 + 10; )
|
|
812
|
+
if (e + Q === 42 + 42 && Pe() === 47)
|
|
813
813
|
break;
|
|
814
|
-
return "/*" +
|
|
814
|
+
return "/*" + dr(r, pe - 1) + "*" + kr(e === 47 ? e : ye());
|
|
815
815
|
}
|
|
816
816
|
function mn(e) {
|
|
817
|
-
for (; !
|
|
817
|
+
for (; !ur(Pe()); )
|
|
818
818
|
ye();
|
|
819
|
-
return
|
|
819
|
+
return dr(e, pe);
|
|
820
820
|
}
|
|
821
821
|
function gn(e) {
|
|
822
|
-
return
|
|
822
|
+
return Et(yr("", null, null, null, [""], e = wt(e), 0, [0], e));
|
|
823
823
|
}
|
|
824
|
-
function
|
|
825
|
-
for (var v = 0, m = 0, h = l, y = 0, k = 0, N = 0, b = 1, x = 1, _ = 1, S = 0, P = "", I =
|
|
824
|
+
function yr(e, r, t, a, i, o, l, u, d) {
|
|
825
|
+
for (var v = 0, m = 0, h = l, y = 0, k = 0, N = 0, b = 1, x = 1, _ = 1, S = 0, P = "", I = i, f = o, B = a, R = P; x; )
|
|
826
826
|
switch (N = S, S = ye()) {
|
|
827
827
|
case 40:
|
|
828
828
|
if (N != 108 && te(R, h - 1) == 58) {
|
|
829
|
-
Ir(R += M(
|
|
829
|
+
Ir(R += M(br(S), "&", "&\f"), "&\f") != -1 && (_ = -1);
|
|
830
830
|
break;
|
|
831
831
|
}
|
|
832
832
|
case 34:
|
|
833
833
|
case 39:
|
|
834
834
|
case 91:
|
|
835
|
-
R +=
|
|
835
|
+
R += br(S);
|
|
836
836
|
break;
|
|
837
837
|
case 9:
|
|
838
838
|
case 10:
|
|
@@ -841,20 +841,20 @@ function br(e, r, t, a, o, i, l, u, d) {
|
|
|
841
841
|
R += un(N);
|
|
842
842
|
break;
|
|
843
843
|
case 92:
|
|
844
|
-
R += fn(
|
|
844
|
+
R += fn(vr() - 1, 7);
|
|
845
845
|
continue;
|
|
846
846
|
case 47:
|
|
847
|
-
switch (
|
|
847
|
+
switch (Pe()) {
|
|
848
848
|
case 42:
|
|
849
849
|
case 47:
|
|
850
|
-
|
|
850
|
+
pr(hn(dn(ye(), vr()), r, t), d);
|
|
851
851
|
break;
|
|
852
852
|
default:
|
|
853
853
|
R += "/";
|
|
854
854
|
}
|
|
855
855
|
break;
|
|
856
856
|
case 123 * b:
|
|
857
|
-
u[v++] =
|
|
857
|
+
u[v++] = Te(R) * _;
|
|
858
858
|
case 125 * b:
|
|
859
859
|
case 59:
|
|
860
860
|
case 0:
|
|
@@ -863,30 +863,30 @@ function br(e, r, t, a, o, i, l, u, d) {
|
|
|
863
863
|
case 125:
|
|
864
864
|
x = 0;
|
|
865
865
|
case 59 + m:
|
|
866
|
-
_ == -1 && (R = M(R, /\f/g, "")), k > 0 &&
|
|
866
|
+
_ == -1 && (R = M(R, /\f/g, "")), k > 0 && Te(R) - h && pr(k > 32 ? tt(R + ";", a, t, h - 1) : tt(M(R, " ", "") + ";", a, t, h - 2), d);
|
|
867
867
|
break;
|
|
868
868
|
case 59:
|
|
869
869
|
R += ";";
|
|
870
870
|
default:
|
|
871
|
-
if (
|
|
871
|
+
if (pr(B = rt(R, r, t, v, m, i, u, P, I = [], f = [], h), o), S === 123)
|
|
872
872
|
if (m === 0)
|
|
873
|
-
|
|
873
|
+
yr(R, r, B, B, I, o, h, u, f);
|
|
874
874
|
else
|
|
875
875
|
switch (y === 99 && te(R, 3) === 110 ? 100 : y) {
|
|
876
876
|
case 100:
|
|
877
877
|
case 108:
|
|
878
878
|
case 109:
|
|
879
879
|
case 115:
|
|
880
|
-
|
|
880
|
+
yr(e, B, B, a && pr(rt(e, B, B, 0, 0, i, u, P, i, I = [], h), f), i, f, h, u, a ? I : f);
|
|
881
881
|
break;
|
|
882
882
|
default:
|
|
883
|
-
|
|
883
|
+
yr(R, B, B, B, [""], f, 0, u, f);
|
|
884
884
|
}
|
|
885
885
|
}
|
|
886
886
|
v = m = k = 0, b = _ = 1, P = R = "", h = l;
|
|
887
887
|
break;
|
|
888
888
|
case 58:
|
|
889
|
-
h = 1 +
|
|
889
|
+
h = 1 + Te(R), k = N;
|
|
890
890
|
default:
|
|
891
891
|
if (b < 1) {
|
|
892
892
|
if (S == 123)
|
|
@@ -894,37 +894,37 @@ function br(e, r, t, a, o, i, l, u, d) {
|
|
|
894
894
|
else if (S == 125 && b++ == 0 && ln() == 125)
|
|
895
895
|
continue;
|
|
896
896
|
}
|
|
897
|
-
switch (R +=
|
|
897
|
+
switch (R += kr(S), S * b) {
|
|
898
898
|
case 38:
|
|
899
899
|
_ = m > 0 ? 1 : (R += "\f", -1);
|
|
900
900
|
break;
|
|
901
901
|
case 44:
|
|
902
|
-
u[v++] = (
|
|
902
|
+
u[v++] = (Te(R) - 1) * _, _ = 1;
|
|
903
903
|
break;
|
|
904
904
|
case 64:
|
|
905
|
-
|
|
905
|
+
Pe() === 45 && (R += br(ye())), y = Pe(), m = h = Te(P = R += mn(vr())), S++;
|
|
906
906
|
break;
|
|
907
907
|
case 45:
|
|
908
|
-
N === 45 &&
|
|
908
|
+
N === 45 && Te(R) == 2 && (b = 0);
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
|
-
return
|
|
911
|
+
return o;
|
|
912
912
|
}
|
|
913
|
-
function
|
|
914
|
-
for (var h =
|
|
915
|
-
for (var _ = 0, S =
|
|
916
|
-
(P =
|
|
917
|
-
return
|
|
913
|
+
function rt(e, r, t, a, i, o, l, u, d, v, m) {
|
|
914
|
+
for (var h = i - 1, y = i === 0 ? o : [""], k = Ur(y), N = 0, b = 0, x = 0; N < a; ++N)
|
|
915
|
+
for (var _ = 0, S = lr(e, h + 1, h = tn(b = l[N])), P = e; _ < k; ++_)
|
|
916
|
+
(P = bt(b > 0 ? y[_] + " " + S : M(S, /&\f/g, y[_]))) && (d[x++] = P);
|
|
917
|
+
return xr(e, r, t, i === 0 ? Vr : u, d, v, m);
|
|
918
918
|
}
|
|
919
919
|
function hn(e, r, t) {
|
|
920
|
-
return
|
|
920
|
+
return xr(e, r, t, jr, kr(cn()), lr(e, 2, -2), 0);
|
|
921
921
|
}
|
|
922
|
-
function
|
|
923
|
-
return
|
|
922
|
+
function tt(e, r, t, a) {
|
|
923
|
+
return xr(e, r, t, Br, lr(e, 0, a), lr(e, a + 1, -1), a);
|
|
924
924
|
}
|
|
925
|
-
function
|
|
926
|
-
for (var t = "", a = Ur(e),
|
|
927
|
-
t += r(e[
|
|
925
|
+
function er(e, r) {
|
|
926
|
+
for (var t = "", a = Ur(e), i = 0; i < a; i++)
|
|
927
|
+
t += r(e[i], i, e, r) || "";
|
|
928
928
|
return t;
|
|
929
929
|
}
|
|
930
930
|
function pn(e, r, t, a) {
|
|
@@ -937,18 +937,18 @@ function pn(e, r, t, a) {
|
|
|
937
937
|
return e.return = e.return || e.value;
|
|
938
938
|
case jr:
|
|
939
939
|
return "";
|
|
940
|
-
case
|
|
941
|
-
return e.return = e.value + "{" +
|
|
940
|
+
case vt:
|
|
941
|
+
return e.return = e.value + "{" + er(e.children, a) + "}";
|
|
942
942
|
case Vr:
|
|
943
943
|
e.value = e.props.join(",");
|
|
944
944
|
}
|
|
945
|
-
return
|
|
945
|
+
return Te(t = er(e.children, a)) ? e.return = e.value + "{" + t + "}" : "";
|
|
946
946
|
}
|
|
947
947
|
function vn(e) {
|
|
948
948
|
var r = Ur(e);
|
|
949
|
-
return function(t, a,
|
|
949
|
+
return function(t, a, i, o) {
|
|
950
950
|
for (var l = "", u = 0; u < r; u++)
|
|
951
|
-
l += e[u](t, a,
|
|
951
|
+
l += e[u](t, a, i, o) || "";
|
|
952
952
|
return l;
|
|
953
953
|
};
|
|
954
954
|
}
|
|
@@ -964,43 +964,43 @@ function yn(e) {
|
|
|
964
964
|
};
|
|
965
965
|
}
|
|
966
966
|
var wn = function(r, t, a) {
|
|
967
|
-
for (var
|
|
967
|
+
for (var i = 0, o = 0; i = o, o = Pe(), i === 38 && o === 12 && (t[a] = 1), !ur(o); )
|
|
968
968
|
ye();
|
|
969
|
-
return
|
|
969
|
+
return dr(r, pe);
|
|
970
970
|
}, En = function(r, t) {
|
|
971
|
-
var a = -1,
|
|
971
|
+
var a = -1, i = 44;
|
|
972
972
|
do
|
|
973
|
-
switch (
|
|
973
|
+
switch (ur(i)) {
|
|
974
974
|
case 0:
|
|
975
|
-
|
|
975
|
+
i === 38 && Pe() === 12 && (t[a] = 1), r[a] += wn(pe - 1, t, a);
|
|
976
976
|
break;
|
|
977
977
|
case 2:
|
|
978
|
-
r[a] +=
|
|
978
|
+
r[a] += br(i);
|
|
979
979
|
break;
|
|
980
980
|
case 4:
|
|
981
|
-
if (
|
|
982
|
-
r[++a] =
|
|
981
|
+
if (i === 44) {
|
|
982
|
+
r[++a] = Pe() === 58 ? "&\f" : "", t[a] = r[a].length;
|
|
983
983
|
break;
|
|
984
984
|
}
|
|
985
985
|
default:
|
|
986
|
-
r[a] +=
|
|
986
|
+
r[a] += kr(i);
|
|
987
987
|
}
|
|
988
|
-
while (
|
|
988
|
+
while (i = ye());
|
|
989
989
|
return r;
|
|
990
990
|
}, Nn = function(r, t) {
|
|
991
|
-
return
|
|
992
|
-
},
|
|
991
|
+
return Et(En(wt(r), t));
|
|
992
|
+
}, nt = /* @__PURE__ */ new WeakMap(), kn = function(r) {
|
|
993
993
|
if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
|
|
994
994
|
// negative .length indicates that this rule has been already prefixed
|
|
995
995
|
r.length < 1)) {
|
|
996
|
-
for (var t = r.value, a = r.parent,
|
|
996
|
+
for (var t = r.value, a = r.parent, i = r.column === a.column && r.line === a.line; a.type !== "rule"; )
|
|
997
997
|
if (a = a.parent, !a)
|
|
998
998
|
return;
|
|
999
|
-
if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !
|
|
1000
|
-
|
|
1001
|
-
for (var
|
|
999
|
+
if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !nt.get(a)) && !i) {
|
|
1000
|
+
nt.set(r, !0);
|
|
1001
|
+
for (var o = [], l = Nn(t, o), u = a.props, d = 0, v = 0; d < l.length; d++)
|
|
1002
1002
|
for (var m = 0; m < u.length; m++, v++)
|
|
1003
|
-
r.props[v] =
|
|
1003
|
+
r.props[v] = o[d] ? l[d].replace(/&\f/g, u[m]) : u[m] + " " + l[d];
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
1006
1006
|
}, Sn = function(r) {
|
|
@@ -1013,13 +1013,13 @@ var wn = function(r, t, a) {
|
|
|
1013
1013
|
}, xn = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", _n = function(r) {
|
|
1014
1014
|
return r.type === "comm" && r.children.indexOf(xn) > -1;
|
|
1015
1015
|
}, Rn = function(r) {
|
|
1016
|
-
return function(t, a,
|
|
1016
|
+
return function(t, a, i) {
|
|
1017
1017
|
if (!(t.type !== "rule" || r.compat)) {
|
|
1018
|
-
var
|
|
1019
|
-
if (
|
|
1018
|
+
var o = t.value.match(/(:first|:nth|:nth-last)-child/g);
|
|
1019
|
+
if (o) {
|
|
1020
1020
|
for (var l = !!t.parent, u = l ? t.parent.children : (
|
|
1021
1021
|
// global rule at the root level
|
|
1022
|
-
|
|
1022
|
+
i
|
|
1023
1023
|
), d = u.length - 1; d >= 0; d--) {
|
|
1024
1024
|
var v = u[d];
|
|
1025
1025
|
if (v.line < t.line)
|
|
@@ -1030,25 +1030,25 @@ var wn = function(r, t, a) {
|
|
|
1030
1030
|
break;
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
1033
|
-
|
|
1033
|
+
o.forEach(function(m) {
|
|
1034
1034
|
console.error('The pseudo class "' + m + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + m.split("-child")[0] + '-of-type".');
|
|
1035
1035
|
});
|
|
1036
1036
|
}
|
|
1037
1037
|
}
|
|
1038
1038
|
};
|
|
1039
|
-
},
|
|
1039
|
+
}, Nt = function(r) {
|
|
1040
1040
|
return r.type.charCodeAt(1) === 105 && r.type.charCodeAt(0) === 64;
|
|
1041
1041
|
}, Cn = function(r, t) {
|
|
1042
1042
|
for (var a = r - 1; a >= 0; a--)
|
|
1043
|
-
if (!
|
|
1043
|
+
if (!Nt(t[a]))
|
|
1044
1044
|
return !0;
|
|
1045
1045
|
return !1;
|
|
1046
|
-
},
|
|
1046
|
+
}, at = function(r) {
|
|
1047
1047
|
r.type = "", r.value = "", r.return = "", r.children = "", r.props = "";
|
|
1048
1048
|
}, Tn = function(r, t, a) {
|
|
1049
|
-
|
|
1049
|
+
Nt(r) && (r.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."), at(r)) : Cn(t, a) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), at(r)));
|
|
1050
1050
|
};
|
|
1051
|
-
function
|
|
1051
|
+
function kt(e, r) {
|
|
1052
1052
|
switch (an(e, r)) {
|
|
1053
1053
|
case 5103:
|
|
1054
1054
|
return L + "print-" + e + e;
|
|
@@ -1083,7 +1083,7 @@ function Nt(e, r) {
|
|
|
1083
1083
|
case 4810:
|
|
1084
1084
|
case 6968:
|
|
1085
1085
|
case 2756:
|
|
1086
|
-
return L + e +
|
|
1086
|
+
return L + e + wr + e + oe + e + e;
|
|
1087
1087
|
case 6828:
|
|
1088
1088
|
case 4268:
|
|
1089
1089
|
return L + e + oe + e + e;
|
|
@@ -1127,22 +1127,22 @@ function Nt(e, r) {
|
|
|
1127
1127
|
case 5789:
|
|
1128
1128
|
case 5021:
|
|
1129
1129
|
case 4765:
|
|
1130
|
-
if (
|
|
1130
|
+
if (Te(e) - 1 - r > 6)
|
|
1131
1131
|
switch (te(e, r + 1)) {
|
|
1132
1132
|
case 109:
|
|
1133
1133
|
if (te(e, r + 4) !== 45)
|
|
1134
1134
|
break;
|
|
1135
1135
|
case 102:
|
|
1136
|
-
return M(e, /(.+:)(.+)-([^]+)/, "$1" + L + "$2-$3$1" +
|
|
1136
|
+
return M(e, /(.+:)(.+)-([^]+)/, "$1" + L + "$2-$3$1" + wr + (te(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1137
1137
|
case 115:
|
|
1138
|
-
return ~Ir(e, "stretch") ?
|
|
1138
|
+
return ~Ir(e, "stretch") ? kt(M(e, "stretch", "fill-available"), r) + e : e;
|
|
1139
1139
|
}
|
|
1140
1140
|
break;
|
|
1141
1141
|
case 4949:
|
|
1142
1142
|
if (te(e, r + 1) !== 115)
|
|
1143
1143
|
break;
|
|
1144
1144
|
case 6444:
|
|
1145
|
-
switch (te(e,
|
|
1145
|
+
switch (te(e, Te(e) - 3 - (~Ir(e, "!important") && 10))) {
|
|
1146
1146
|
case 107:
|
|
1147
1147
|
return M(e, ":", ":" + L) + e;
|
|
1148
1148
|
case 101:
|
|
@@ -1162,33 +1162,33 @@ function Nt(e, r) {
|
|
|
1162
1162
|
}
|
|
1163
1163
|
return e;
|
|
1164
1164
|
}
|
|
1165
|
-
var Pn = function(r, t, a,
|
|
1165
|
+
var Pn = function(r, t, a, i) {
|
|
1166
1166
|
if (r.length > -1 && !r.return)
|
|
1167
1167
|
switch (r.type) {
|
|
1168
1168
|
case Br:
|
|
1169
|
-
r.return =
|
|
1169
|
+
r.return = kt(r.value, r.length);
|
|
1170
1170
|
break;
|
|
1171
|
-
case
|
|
1172
|
-
return
|
|
1171
|
+
case vt:
|
|
1172
|
+
return er([cr(r, {
|
|
1173
1173
|
value: M(r.value, "@", "@" + L)
|
|
1174
|
-
})],
|
|
1174
|
+
})], i);
|
|
1175
1175
|
case Vr:
|
|
1176
1176
|
if (r.length)
|
|
1177
|
-
return sn(r.props, function(
|
|
1178
|
-
switch (on(
|
|
1177
|
+
return sn(r.props, function(o) {
|
|
1178
|
+
switch (on(o, /(::plac\w+|:read-\w+)/)) {
|
|
1179
1179
|
case ":read-only":
|
|
1180
1180
|
case ":read-write":
|
|
1181
|
-
return
|
|
1182
|
-
props: [M(
|
|
1183
|
-
})],
|
|
1181
|
+
return er([cr(r, {
|
|
1182
|
+
props: [M(o, /:(read-\w+)/, ":" + wr + "$1")]
|
|
1183
|
+
})], i);
|
|
1184
1184
|
case "::placeholder":
|
|
1185
|
-
return
|
|
1186
|
-
props: [M(
|
|
1187
|
-
}),
|
|
1188
|
-
props: [M(
|
|
1189
|
-
}),
|
|
1190
|
-
props: [M(
|
|
1191
|
-
})],
|
|
1185
|
+
return er([cr(r, {
|
|
1186
|
+
props: [M(o, /:(plac\w+)/, ":" + L + "input-$1")]
|
|
1187
|
+
}), cr(r, {
|
|
1188
|
+
props: [M(o, /:(plac\w+)/, ":" + wr + "$1")]
|
|
1189
|
+
}), cr(r, {
|
|
1190
|
+
props: [M(o, /:(plac\w+)/, oe + "input-$1")]
|
|
1191
|
+
})], i);
|
|
1192
1192
|
}
|
|
1193
1193
|
return "";
|
|
1194
1194
|
});
|
|
@@ -1205,17 +1205,17 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
1205
1205
|
x.indexOf(" ") !== -1 && (document.head.appendChild(b), b.setAttribute("data-s", ""));
|
|
1206
1206
|
});
|
|
1207
1207
|
}
|
|
1208
|
-
var
|
|
1208
|
+
var i = r.stylisPlugins || On;
|
|
1209
1209
|
if (process.env.NODE_ENV !== "production" && /[^a-z-]/.test(t))
|
|
1210
1210
|
throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + t + '" was passed');
|
|
1211
|
-
var
|
|
1211
|
+
var o = {}, l, u = [];
|
|
1212
1212
|
l = r.container || document.head, Array.prototype.forEach.call(
|
|
1213
1213
|
// this means we will ignore elements which don't have a space in them which
|
|
1214
1214
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1215
1215
|
document.querySelectorAll('style[data-emotion^="' + t + ' "]'),
|
|
1216
1216
|
function(b) {
|
|
1217
1217
|
for (var x = b.getAttribute("data-emotion").split(" "), _ = 1; _ < x.length; _++)
|
|
1218
|
-
|
|
1218
|
+
o[x[_]] = !0;
|
|
1219
1219
|
u.push(b);
|
|
1220
1220
|
}
|
|
1221
1221
|
);
|
|
@@ -1230,8 +1230,8 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
1230
1230
|
b.root || (b.return ? m.insert(b.return) : b.value && b.type !== jr && m.insert(b.value + "{}"));
|
|
1231
1231
|
} : bn(function(b) {
|
|
1232
1232
|
m.insert(b);
|
|
1233
|
-
})], y = vn(v.concat(
|
|
1234
|
-
return
|
|
1233
|
+
})], y = vn(v.concat(i, h)), k = function(x) {
|
|
1234
|
+
return er(gn(x), y);
|
|
1235
1235
|
};
|
|
1236
1236
|
d = function(x, _, S, P) {
|
|
1237
1237
|
m = S, process.env.NODE_ENV !== "production" && _.map !== void 0 && (m = {
|
|
@@ -1252,7 +1252,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
1252
1252
|
insertionPoint: r.insertionPoint
|
|
1253
1253
|
}),
|
|
1254
1254
|
nonce: r.nonce,
|
|
1255
|
-
inserted:
|
|
1255
|
+
inserted: o,
|
|
1256
1256
|
registered: {},
|
|
1257
1257
|
insert: d
|
|
1258
1258
|
};
|
|
@@ -1266,23 +1266,23 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
1266
1266
|
* This source code is licensed under the MIT license found in the
|
|
1267
1267
|
* LICENSE file in the root directory of this source tree.
|
|
1268
1268
|
*/
|
|
1269
|
-
var
|
|
1269
|
+
var ot;
|
|
1270
1270
|
function In() {
|
|
1271
|
-
if (
|
|
1271
|
+
if (ot)
|
|
1272
1272
|
return D;
|
|
1273
|
-
|
|
1274
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107,
|
|
1273
|
+
ot = 1;
|
|
1274
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, k = e ? Symbol.for("react.memo") : 60115, N = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
1275
1275
|
function P(f) {
|
|
1276
1276
|
if (typeof f == "object" && f !== null) {
|
|
1277
|
-
var
|
|
1278
|
-
switch (
|
|
1277
|
+
var B = f.$$typeof;
|
|
1278
|
+
switch (B) {
|
|
1279
1279
|
case r:
|
|
1280
1280
|
switch (f = f.type, f) {
|
|
1281
1281
|
case d:
|
|
1282
1282
|
case v:
|
|
1283
1283
|
case a:
|
|
1284
|
-
case i:
|
|
1285
1284
|
case o:
|
|
1285
|
+
case i:
|
|
1286
1286
|
case h:
|
|
1287
1287
|
return f;
|
|
1288
1288
|
default:
|
|
@@ -1294,18 +1294,18 @@ function In() {
|
|
|
1294
1294
|
case l:
|
|
1295
1295
|
return f;
|
|
1296
1296
|
default:
|
|
1297
|
-
return
|
|
1297
|
+
return B;
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
1300
|
case t:
|
|
1301
|
-
return
|
|
1301
|
+
return B;
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
1304
|
}
|
|
1305
1305
|
function I(f) {
|
|
1306
1306
|
return P(f) === v;
|
|
1307
1307
|
}
|
|
1308
|
-
return D.AsyncMode = d, D.ConcurrentMode = v, D.ContextConsumer = u, D.ContextProvider = l, D.Element = r, D.ForwardRef = m, D.Fragment = a, D.Lazy = N, D.Memo = k, D.Portal = t, D.Profiler =
|
|
1308
|
+
return D.AsyncMode = d, D.ConcurrentMode = v, D.ContextConsumer = u, D.ContextProvider = l, D.Element = r, D.ForwardRef = m, D.Fragment = a, D.Lazy = N, D.Memo = k, D.Portal = t, D.Profiler = o, D.StrictMode = i, D.Suspense = h, D.isAsyncMode = function(f) {
|
|
1309
1309
|
return I(f) || P(f) === d;
|
|
1310
1310
|
}, D.isConcurrentMode = I, D.isContextConsumer = function(f) {
|
|
1311
1311
|
return P(f) === u;
|
|
@@ -1324,13 +1324,13 @@ function In() {
|
|
|
1324
1324
|
}, D.isPortal = function(f) {
|
|
1325
1325
|
return P(f) === t;
|
|
1326
1326
|
}, D.isProfiler = function(f) {
|
|
1327
|
-
return P(f) === i;
|
|
1328
|
-
}, D.isStrictMode = function(f) {
|
|
1329
1327
|
return P(f) === o;
|
|
1328
|
+
}, D.isStrictMode = function(f) {
|
|
1329
|
+
return P(f) === i;
|
|
1330
1330
|
}, D.isSuspense = function(f) {
|
|
1331
1331
|
return P(f) === h;
|
|
1332
1332
|
}, D.isValidElementType = function(f) {
|
|
1333
|
-
return typeof f == "string" || typeof f == "function" || f === a || f === v || f ===
|
|
1333
|
+
return typeof f == "string" || typeof f == "function" || f === a || f === v || f === o || f === i || f === h || f === y || typeof f == "object" && f !== null && (f.$$typeof === N || f.$$typeof === k || f.$$typeof === l || f.$$typeof === u || f.$$typeof === m || f.$$typeof === x || f.$$typeof === _ || f.$$typeof === S || f.$$typeof === b);
|
|
1334
1334
|
}, D.typeOf = P, D;
|
|
1335
1335
|
}
|
|
1336
1336
|
var F = {};
|
|
@@ -1342,30 +1342,30 @@ var F = {};
|
|
|
1342
1342
|
* This source code is licensed under the MIT license found in the
|
|
1343
1343
|
* LICENSE file in the root directory of this source tree.
|
|
1344
1344
|
*/
|
|
1345
|
-
var
|
|
1345
|
+
var it;
|
|
1346
1346
|
function $n() {
|
|
1347
|
-
return
|
|
1348
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107,
|
|
1347
|
+
return it || (it = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1348
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, k = e ? Symbol.for("react.memo") : 60115, N = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, S = e ? Symbol.for("react.scope") : 60119;
|
|
1349
1349
|
function P(s) {
|
|
1350
1350
|
return typeof s == "string" || typeof s == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1351
|
-
s === a || s === v || s ===
|
|
1351
|
+
s === a || s === v || s === o || s === i || s === h || s === y || typeof s == "object" && s !== null && (s.$$typeof === N || s.$$typeof === k || s.$$typeof === l || s.$$typeof === u || s.$$typeof === m || s.$$typeof === x || s.$$typeof === _ || s.$$typeof === S || s.$$typeof === b);
|
|
1352
1352
|
}
|
|
1353
1353
|
function I(s) {
|
|
1354
1354
|
if (typeof s == "object" && s !== null) {
|
|
1355
1355
|
var w = s.$$typeof;
|
|
1356
1356
|
switch (w) {
|
|
1357
1357
|
case r:
|
|
1358
|
-
var
|
|
1359
|
-
switch (
|
|
1358
|
+
var W = s.type;
|
|
1359
|
+
switch (W) {
|
|
1360
1360
|
case d:
|
|
1361
1361
|
case v:
|
|
1362
1362
|
case a:
|
|
1363
|
-
case i:
|
|
1364
1363
|
case o:
|
|
1364
|
+
case i:
|
|
1365
1365
|
case h:
|
|
1366
|
-
return
|
|
1366
|
+
return W;
|
|
1367
1367
|
default:
|
|
1368
|
-
var de =
|
|
1368
|
+
var de = W && W.$$typeof;
|
|
1369
1369
|
switch (de) {
|
|
1370
1370
|
case u:
|
|
1371
1371
|
case m:
|
|
@@ -1382,11 +1382,11 @@ function $n() {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
}
|
|
1384
1384
|
}
|
|
1385
|
-
var f = d,
|
|
1385
|
+
var f = d, B = v, R = u, Oe = l, we = r, Ae = m, Ie = a, ue = N, H = k, J = t, fe = o, X = i, Ee = h, ne = !1;
|
|
1386
1386
|
function ae(s) {
|
|
1387
|
-
return ne || (ne = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
1387
|
+
return ne || (ne = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ee(s) || I(s) === d;
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function ee(s) {
|
|
1390
1390
|
return I(s) === v;
|
|
1391
1391
|
}
|
|
1392
1392
|
function Ne(s) {
|
|
@@ -1398,7 +1398,7 @@ function $n() {
|
|
|
1398
1398
|
function Ce(s) {
|
|
1399
1399
|
return typeof s == "object" && s !== null && s.$$typeof === r;
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1401
|
+
function $e(s) {
|
|
1402
1402
|
return I(s) === m;
|
|
1403
1403
|
}
|
|
1404
1404
|
function _e(s) {
|
|
@@ -1414,19 +1414,19 @@ function $n() {
|
|
|
1414
1414
|
return I(s) === t;
|
|
1415
1415
|
}
|
|
1416
1416
|
function ie(s) {
|
|
1417
|
-
return I(s) ===
|
|
1417
|
+
return I(s) === o;
|
|
1418
1418
|
}
|
|
1419
1419
|
function be(s) {
|
|
1420
|
-
return I(s) ===
|
|
1420
|
+
return I(s) === i;
|
|
1421
1421
|
}
|
|
1422
1422
|
function je(s) {
|
|
1423
1423
|
return I(s) === h;
|
|
1424
1424
|
}
|
|
1425
|
-
F.AsyncMode = f, F.ConcurrentMode =
|
|
1425
|
+
F.AsyncMode = f, F.ConcurrentMode = B, F.ContextConsumer = R, F.ContextProvider = Oe, F.Element = we, F.ForwardRef = Ae, F.Fragment = Ie, F.Lazy = ue, F.Memo = H, F.Portal = J, F.Profiler = fe, F.StrictMode = X, F.Suspense = Ee, F.isAsyncMode = ae, F.isConcurrentMode = ee, F.isContextConsumer = Ne, F.isContextProvider = ke, F.isElement = Ce, F.isForwardRef = $e, F.isFragment = _e, F.isLazy = ve, F.isMemo = Se, F.isPortal = j, F.isProfiler = ie, F.isStrictMode = be, F.isSuspense = je, F.isValidElementType = P, F.typeOf = I;
|
|
1426
1426
|
}()), F;
|
|
1427
1427
|
}
|
|
1428
1428
|
process.env.NODE_ENV === "production" ? Lr.exports = In() : Lr.exports = $n();
|
|
1429
|
-
var Ln = Lr.exports,
|
|
1429
|
+
var Ln = Lr.exports, St = Ln, Mn = {
|
|
1430
1430
|
$$typeof: !0,
|
|
1431
1431
|
render: !0,
|
|
1432
1432
|
defaultProps: !0,
|
|
@@ -1439,18 +1439,18 @@ var Ln = Lr.exports, kt = Ln, Mn = {
|
|
|
1439
1439
|
displayName: !0,
|
|
1440
1440
|
propTypes: !0,
|
|
1441
1441
|
type: !0
|
|
1442
|
-
},
|
|
1443
|
-
St
|
|
1444
|
-
St
|
|
1442
|
+
}, xt = {};
|
|
1443
|
+
xt[St.ForwardRef] = Mn;
|
|
1444
|
+
xt[St.Memo] = Dn;
|
|
1445
1445
|
var Fn = !0;
|
|
1446
1446
|
function jn(e, r, t) {
|
|
1447
1447
|
var a = "";
|
|
1448
|
-
return t.split(" ").forEach(function(
|
|
1449
|
-
e[
|
|
1448
|
+
return t.split(" ").forEach(function(i) {
|
|
1449
|
+
e[i] !== void 0 ? r.push(e[i] + ";") : a += i + " ";
|
|
1450
1450
|
}), a;
|
|
1451
1451
|
}
|
|
1452
|
-
var
|
|
1453
|
-
var
|
|
1452
|
+
var _t = function(r, t, a) {
|
|
1453
|
+
var i = r.key + "-" + t.name;
|
|
1454
1454
|
// we only need to add the styles to the registered cache if the
|
|
1455
1455
|
// class name could be used further down
|
|
1456
1456
|
// the tree but if it's a string tag, we know it won't
|
|
@@ -1460,25 +1460,25 @@ var xt = function(r, t, a) {
|
|
|
1460
1460
|
// in node since emotion-server relies on whether a style is in
|
|
1461
1461
|
// the registered cache to know whether a style is global or not
|
|
1462
1462
|
// also, note that this check will be dead code eliminated in the browser
|
|
1463
|
-
Fn === !1) && r.registered[
|
|
1463
|
+
Fn === !1) && r.registered[i] === void 0 && (r.registered[i] = t.styles);
|
|
1464
1464
|
}, Vn = function(r, t, a) {
|
|
1465
|
-
|
|
1466
|
-
var
|
|
1465
|
+
_t(r, t, a);
|
|
1466
|
+
var i = r.key + "-" + t.name;
|
|
1467
1467
|
if (r.inserted[t.name] === void 0) {
|
|
1468
|
-
var
|
|
1468
|
+
var o = t;
|
|
1469
1469
|
do
|
|
1470
|
-
r.insert(t ===
|
|
1471
|
-
while (
|
|
1470
|
+
r.insert(t === o ? "." + i : "", o, r.sheet, !0), o = o.next;
|
|
1471
|
+
while (o !== void 0);
|
|
1472
1472
|
}
|
|
1473
1473
|
};
|
|
1474
1474
|
function Bn(e) {
|
|
1475
|
-
for (var r = 0, t, a = 0,
|
|
1475
|
+
for (var r = 0, t, a = 0, i = e.length; i >= 4; ++a, i -= 4)
|
|
1476
1476
|
t = e.charCodeAt(a) & 255 | (e.charCodeAt(++a) & 255) << 8 | (e.charCodeAt(++a) & 255) << 16 | (e.charCodeAt(++a) & 255) << 24, t = /* Math.imul(k, m): */
|
|
1477
1477
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
|
|
1478
1478
|
t >>> 24, r = /* Math.imul(k, m): */
|
|
1479
1479
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
1480
1480
|
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
|
|
1481
|
-
switch (
|
|
1481
|
+
switch (i) {
|
|
1482
1482
|
case 3:
|
|
1483
1483
|
r ^= (e.charCodeAt(a + 2) & 255) << 16;
|
|
1484
1484
|
case 2:
|
|
@@ -1538,48 +1538,48 @@ var Un = {
|
|
|
1538
1538
|
strokeMiterlimit: 1,
|
|
1539
1539
|
strokeOpacity: 1,
|
|
1540
1540
|
strokeWidth: 1
|
|
1541
|
-
},
|
|
1541
|
+
}, st = `You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
1542
1542
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
1543
1543
|
You can read more about this here:
|
|
1544
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, zn = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", Yn = /[A-Z]|^ms/g,
|
|
1544
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, zn = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", Yn = /[A-Z]|^ms/g, Rt = /_EMO_([^_]+?)_([^]*?)_EMO_/g, zr = function(r) {
|
|
1545
1545
|
return r.charCodeAt(1) === 45;
|
|
1546
|
-
},
|
|
1546
|
+
}, ct = function(r) {
|
|
1547
1547
|
return r != null && typeof r != "boolean";
|
|
1548
1548
|
}, Pr = /* @__PURE__ */ yn(function(e) {
|
|
1549
1549
|
return zr(e) ? e : e.replace(Yn, "-$&").toLowerCase();
|
|
1550
|
-
}),
|
|
1550
|
+
}), Er = function(r, t) {
|
|
1551
1551
|
switch (r) {
|
|
1552
1552
|
case "animation":
|
|
1553
1553
|
case "animationName":
|
|
1554
1554
|
if (typeof t == "string")
|
|
1555
|
-
return t.replace(
|
|
1555
|
+
return t.replace(Rt, function(a, i, o) {
|
|
1556
1556
|
return Re = {
|
|
1557
|
-
name:
|
|
1558
|
-
styles:
|
|
1557
|
+
name: i,
|
|
1558
|
+
styles: o,
|
|
1559
1559
|
next: Re
|
|
1560
|
-
},
|
|
1560
|
+
}, i;
|
|
1561
1561
|
});
|
|
1562
1562
|
}
|
|
1563
1563
|
return Un[r] !== 1 && !zr(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
|
|
1564
1564
|
};
|
|
1565
1565
|
if (process.env.NODE_ENV !== "production") {
|
|
1566
|
-
var Wn = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, qn = ["normal", "none", "initial", "inherit", "unset"], Gn =
|
|
1567
|
-
|
|
1566
|
+
var Wn = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, qn = ["normal", "none", "initial", "inherit", "unset"], Gn = Er, Kn = /^-ms-/, Hn = /-(.)/g, lt = {};
|
|
1567
|
+
Er = function(r, t) {
|
|
1568
1568
|
if (r === "content" && (typeof t != "string" || qn.indexOf(t) === -1 && !Wn.test(t) && (t.charAt(0) !== t.charAt(t.length - 1) || t.charAt(0) !== '"' && t.charAt(0) !== "'")))
|
|
1569
1569
|
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + t + "\"'`");
|
|
1570
1570
|
var a = Gn(r, t);
|
|
1571
|
-
return a !== "" && !zr(r) && r.indexOf("-") !== -1 &&
|
|
1572
|
-
return
|
|
1571
|
+
return a !== "" && !zr(r) && r.indexOf("-") !== -1 && lt[r] === void 0 && (lt[r] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + r.replace(Kn, "ms-").replace(Hn, function(i, o) {
|
|
1572
|
+
return o.toUpperCase();
|
|
1573
1573
|
}) + "?")), a;
|
|
1574
1574
|
};
|
|
1575
1575
|
}
|
|
1576
|
-
var
|
|
1577
|
-
function
|
|
1576
|
+
var Ct = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
|
|
1577
|
+
function fr(e, r, t) {
|
|
1578
1578
|
if (t == null)
|
|
1579
1579
|
return "";
|
|
1580
1580
|
if (t.__emotion_styles !== void 0) {
|
|
1581
1581
|
if (process.env.NODE_ENV !== "production" && t.toString() === "NO_COMPONENT_SELECTOR")
|
|
1582
|
-
throw new Error(
|
|
1582
|
+
throw new Error(Ct);
|
|
1583
1583
|
return t;
|
|
1584
1584
|
}
|
|
1585
1585
|
switch (typeof t) {
|
|
@@ -1601,22 +1601,22 @@ function ur(e, r, t) {
|
|
|
1601
1601
|
styles: a.styles,
|
|
1602
1602
|
next: Re
|
|
1603
1603
|
}, a = a.next;
|
|
1604
|
-
var
|
|
1605
|
-
return process.env.NODE_ENV !== "production" && t.map !== void 0 && (
|
|
1604
|
+
var i = t.styles + ";";
|
|
1605
|
+
return process.env.NODE_ENV !== "production" && t.map !== void 0 && (i += t.map), i;
|
|
1606
1606
|
}
|
|
1607
1607
|
return Jn(e, r, t);
|
|
1608
1608
|
}
|
|
1609
1609
|
case "function": {
|
|
1610
1610
|
if (e !== void 0) {
|
|
1611
|
-
var
|
|
1612
|
-
return Re =
|
|
1611
|
+
var o = Re, l = t(e);
|
|
1612
|
+
return Re = o, fr(e, r, l);
|
|
1613
1613
|
} else
|
|
1614
1614
|
process.env.NODE_ENV !== "production" && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
|
|
1615
1615
|
break;
|
|
1616
1616
|
}
|
|
1617
1617
|
case "string":
|
|
1618
1618
|
if (process.env.NODE_ENV !== "production") {
|
|
1619
|
-
var u = [], d = t.replace(
|
|
1619
|
+
var u = [], d = t.replace(Rt, function(m, h, y) {
|
|
1620
1620
|
var k = "animation" + u.length;
|
|
1621
1621
|
return u.push("const " + k + " = keyframes`" + y.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + k + "}";
|
|
1622
1622
|
});
|
|
@@ -1637,57 +1637,57 @@ You should wrap it with \`css\` like this:
|
|
|
1637
1637
|
function Jn(e, r, t) {
|
|
1638
1638
|
var a = "";
|
|
1639
1639
|
if (Array.isArray(t))
|
|
1640
|
-
for (var
|
|
1641
|
-
a +=
|
|
1640
|
+
for (var i = 0; i < t.length; i++)
|
|
1641
|
+
a += fr(e, r, t[i]) + ";";
|
|
1642
1642
|
else
|
|
1643
|
-
for (var
|
|
1644
|
-
var l = t[
|
|
1643
|
+
for (var o in t) {
|
|
1644
|
+
var l = t[o];
|
|
1645
1645
|
if (typeof l != "object")
|
|
1646
|
-
r != null && r[l] !== void 0 ? a +=
|
|
1646
|
+
r != null && r[l] !== void 0 ? a += o + "{" + r[l] + "}" : ct(l) && (a += Pr(o) + ":" + Er(o, l) + ";");
|
|
1647
1647
|
else {
|
|
1648
|
-
if (
|
|
1649
|
-
throw new Error(
|
|
1648
|
+
if (o === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
|
|
1649
|
+
throw new Error(Ct);
|
|
1650
1650
|
if (Array.isArray(l) && typeof l[0] == "string" && (r == null || r[l[0]] === void 0))
|
|
1651
1651
|
for (var u = 0; u < l.length; u++)
|
|
1652
|
-
|
|
1652
|
+
ct(l[u]) && (a += Pr(o) + ":" + Er(o, l[u]) + ";");
|
|
1653
1653
|
else {
|
|
1654
|
-
var d =
|
|
1655
|
-
switch (
|
|
1654
|
+
var d = fr(e, r, l);
|
|
1655
|
+
switch (o) {
|
|
1656
1656
|
case "animation":
|
|
1657
1657
|
case "animationName": {
|
|
1658
|
-
a += Pr(
|
|
1658
|
+
a += Pr(o) + ":" + d + ";";
|
|
1659
1659
|
break;
|
|
1660
1660
|
}
|
|
1661
1661
|
default:
|
|
1662
|
-
process.env.NODE_ENV !== "production" &&
|
|
1662
|
+
process.env.NODE_ENV !== "production" && o === "undefined" && console.error(zn), a += o + "{" + d + "}";
|
|
1663
1663
|
}
|
|
1664
1664
|
}
|
|
1665
1665
|
}
|
|
1666
1666
|
}
|
|
1667
1667
|
return a;
|
|
1668
1668
|
}
|
|
1669
|
-
var
|
|
1670
|
-
process.env.NODE_ENV !== "production" && (
|
|
1671
|
-
var Re,
|
|
1669
|
+
var ut = /label:\s*([^\s;\n{]+)\s*(;|$)/g, Tt;
|
|
1670
|
+
process.env.NODE_ENV !== "production" && (Tt = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
|
|
1671
|
+
var Re, ft = function(r, t, a) {
|
|
1672
1672
|
if (r.length === 1 && typeof r[0] == "object" && r[0] !== null && r[0].styles !== void 0)
|
|
1673
1673
|
return r[0];
|
|
1674
|
-
var
|
|
1674
|
+
var i = !0, o = "";
|
|
1675
1675
|
Re = void 0;
|
|
1676
1676
|
var l = r[0];
|
|
1677
|
-
l == null || l.raw === void 0 ? (
|
|
1677
|
+
l == null || l.raw === void 0 ? (i = !1, o += fr(a, t, l)) : (process.env.NODE_ENV !== "production" && l[0] === void 0 && console.error(st), o += l[0]);
|
|
1678
1678
|
for (var u = 1; u < r.length; u++)
|
|
1679
|
-
|
|
1679
|
+
o += fr(a, t, r[u]), i && (process.env.NODE_ENV !== "production" && l[u] === void 0 && console.error(st), o += l[u]);
|
|
1680
1680
|
var d;
|
|
1681
|
-
process.env.NODE_ENV !== "production" && (
|
|
1681
|
+
process.env.NODE_ENV !== "production" && (o = o.replace(Tt, function(y) {
|
|
1682
1682
|
return d = y, "";
|
|
1683
|
-
})),
|
|
1684
|
-
for (var v = "", m; (m =
|
|
1683
|
+
})), ut.lastIndex = 0;
|
|
1684
|
+
for (var v = "", m; (m = ut.exec(o)) !== null; )
|
|
1685
1685
|
v += "-" + // $FlowFixMe we know it's not null
|
|
1686
1686
|
m[1];
|
|
1687
|
-
var h = Bn(
|
|
1687
|
+
var h = Bn(o) + v;
|
|
1688
1688
|
return process.env.NODE_ENV !== "production" ? {
|
|
1689
1689
|
name: h,
|
|
1690
|
-
styles:
|
|
1690
|
+
styles: o,
|
|
1691
1691
|
map: d,
|
|
1692
1692
|
next: Re,
|
|
1693
1693
|
toString: function() {
|
|
@@ -1695,12 +1695,12 @@ var Re, ut = function(r, t, a) {
|
|
|
1695
1695
|
}
|
|
1696
1696
|
} : {
|
|
1697
1697
|
name: h,
|
|
1698
|
-
styles:
|
|
1698
|
+
styles: o,
|
|
1699
1699
|
next: Re
|
|
1700
1700
|
};
|
|
1701
1701
|
}, Xn = function(r) {
|
|
1702
1702
|
return r();
|
|
1703
|
-
}, Zn = Fe["useInsertionEffect"] ? Fe["useInsertionEffect"] : !1, Qn = Zn || Xn,
|
|
1703
|
+
}, Zn = Fe["useInsertionEffect"] ? Fe["useInsertionEffect"] : !1, Qn = Zn || Xn, _r = {}.hasOwnProperty, Yr = /* @__PURE__ */ Fe.createContext(
|
|
1704
1704
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1705
1705
|
// because this module is primarily intended for the browser and node
|
|
1706
1706
|
// but it's also required in react native and similar environments sometimes
|
|
@@ -1714,116 +1714,116 @@ var Re, ut = function(r, t, a) {
|
|
|
1714
1714
|
process.env.NODE_ENV !== "production" && (Yr.displayName = "EmotionCacheContext");
|
|
1715
1715
|
Yr.Provider;
|
|
1716
1716
|
var ea = function(r) {
|
|
1717
|
-
return /* @__PURE__ */
|
|
1718
|
-
var
|
|
1719
|
-
return r(t,
|
|
1717
|
+
return /* @__PURE__ */ pt(function(t, a) {
|
|
1718
|
+
var i = Vt(Yr);
|
|
1719
|
+
return r(t, i, a);
|
|
1720
1720
|
});
|
|
1721
|
-
},
|
|
1722
|
-
process.env.NODE_ENV !== "production" && (
|
|
1723
|
-
var
|
|
1721
|
+
}, Pt = /* @__PURE__ */ Fe.createContext({});
|
|
1722
|
+
process.env.NODE_ENV !== "production" && (Pt.displayName = "EmotionThemeContext");
|
|
1723
|
+
var dt = function(r) {
|
|
1724
1724
|
var t = r.split(".");
|
|
1725
1725
|
return t[t.length - 1];
|
|
1726
1726
|
}, ra = function(r) {
|
|
1727
1727
|
var t = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(r);
|
|
1728
1728
|
if (t || (t = /^([A-Za-z0-9$.]+)@/.exec(r), t))
|
|
1729
|
-
return
|
|
1729
|
+
return dt(t[1]);
|
|
1730
1730
|
}, ta = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToString"]), na = function(r) {
|
|
1731
1731
|
return r.replace(/\$/g, "-");
|
|
1732
1732
|
}, aa = function(r) {
|
|
1733
1733
|
if (r)
|
|
1734
1734
|
for (var t = r.split(`
|
|
1735
1735
|
`), a = 0; a < t.length; a++) {
|
|
1736
|
-
var
|
|
1737
|
-
if (
|
|
1738
|
-
if (ta.has(
|
|
1736
|
+
var i = ra(t[a]);
|
|
1737
|
+
if (i) {
|
|
1738
|
+
if (ta.has(i))
|
|
1739
1739
|
break;
|
|
1740
|
-
if (/^[A-Z]/.test(
|
|
1741
|
-
return na(
|
|
1740
|
+
if (/^[A-Z]/.test(i))
|
|
1741
|
+
return na(i);
|
|
1742
1742
|
}
|
|
1743
1743
|
}
|
|
1744
|
-
}, Mr = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Dr = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__",
|
|
1744
|
+
}, Mr = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Dr = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", Ot = function(r, t) {
|
|
1745
1745
|
if (process.env.NODE_ENV !== "production" && typeof t.css == "string" && // check if there is a css declaration
|
|
1746
1746
|
t.css.indexOf(":") !== -1)
|
|
1747
1747
|
throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + t.css + "`");
|
|
1748
1748
|
var a = {};
|
|
1749
|
-
for (var
|
|
1750
|
-
|
|
1749
|
+
for (var i in t)
|
|
1750
|
+
_r.call(t, i) && (a[i] = t[i]);
|
|
1751
1751
|
if (a[Mr] = r, process.env.NODE_ENV !== "production" && t.css && (typeof t.css != "object" || typeof t.css.name != "string" || t.css.name.indexOf("-") === -1)) {
|
|
1752
|
-
var
|
|
1753
|
-
|
|
1752
|
+
var o = aa(new Error().stack);
|
|
1753
|
+
o && (a[Dr] = o);
|
|
1754
1754
|
}
|
|
1755
1755
|
return a;
|
|
1756
1756
|
}, oa = function(r) {
|
|
1757
|
-
var t = r.cache, a = r.serialized,
|
|
1758
|
-
return
|
|
1759
|
-
return Vn(t, a,
|
|
1757
|
+
var t = r.cache, a = r.serialized, i = r.isStringTag;
|
|
1758
|
+
return _t(t, a, i), Qn(function() {
|
|
1759
|
+
return Vn(t, a, i);
|
|
1760
1760
|
}), null;
|
|
1761
|
-
},
|
|
1761
|
+
}, At = /* @__PURE__ */ ea(function(e, r, t) {
|
|
1762
1762
|
var a = e.css;
|
|
1763
1763
|
typeof a == "string" && r.registered[a] !== void 0 && (a = r.registered[a]);
|
|
1764
|
-
var
|
|
1765
|
-
typeof e.className == "string" ? l = jn(r.registered,
|
|
1766
|
-
var u =
|
|
1764
|
+
var i = e[Mr], o = [a], l = "";
|
|
1765
|
+
typeof e.className == "string" ? l = jn(r.registered, o, e.className) : e.className != null && (l = e.className + " ");
|
|
1766
|
+
var u = ft(o, void 0, Fe.useContext(Pt));
|
|
1767
1767
|
if (process.env.NODE_ENV !== "production" && u.name.indexOf("-") === -1) {
|
|
1768
1768
|
var d = e[Dr];
|
|
1769
|
-
d && (u =
|
|
1769
|
+
d && (u = ft([u, "label:" + d + ";"]));
|
|
1770
1770
|
}
|
|
1771
1771
|
l += r.key + "-" + u.name;
|
|
1772
1772
|
var v = {};
|
|
1773
1773
|
for (var m in e)
|
|
1774
|
-
|
|
1774
|
+
_r.call(e, m) && m !== "css" && m !== Mr && (process.env.NODE_ENV === "production" || m !== Dr) && (v[m] = e[m]);
|
|
1775
1775
|
return v.ref = t, v.className = l, /* @__PURE__ */ Fe.createElement(Fe.Fragment, null, /* @__PURE__ */ Fe.createElement(oa, {
|
|
1776
1776
|
cache: r,
|
|
1777
1777
|
serialized: u,
|
|
1778
|
-
isStringTag: typeof
|
|
1779
|
-
}), /* @__PURE__ */ Fe.createElement(
|
|
1778
|
+
isStringTag: typeof i == "string"
|
|
1779
|
+
}), /* @__PURE__ */ Fe.createElement(i, v));
|
|
1780
1780
|
});
|
|
1781
|
-
process.env.NODE_ENV !== "production" && (
|
|
1782
|
-
var
|
|
1781
|
+
process.env.NODE_ENV !== "production" && (At.displayName = "EmotionCssPropInternal");
|
|
1782
|
+
var It = At, Ze = Jt;
|
|
1783
1783
|
function p(e, r, t) {
|
|
1784
|
-
return
|
|
1784
|
+
return _r.call(r, "css") ? Qr(It, Ot(e, r), t) : Qr(e, r, t);
|
|
1785
1785
|
}
|
|
1786
1786
|
function ge(e, r, t) {
|
|
1787
|
-
return
|
|
1787
|
+
return _r.call(r, "css") ? et(It, Ot(e, r), t) : et(e, r, t);
|
|
1788
1788
|
}
|
|
1789
1789
|
function ia(e, r) {
|
|
1790
1790
|
let t = null, a = null;
|
|
1791
|
-
return function(...
|
|
1791
|
+
return function(...o) {
|
|
1792
1792
|
const l = this;
|
|
1793
|
-
t === null ? r.apply(l,
|
|
1793
|
+
t === null ? r.apply(l, o) : a = o, clearTimeout(t), t = setTimeout(() => {
|
|
1794
1794
|
a && (r.apply(l, a), a = null), t = null;
|
|
1795
1795
|
}, e);
|
|
1796
1796
|
};
|
|
1797
1797
|
}
|
|
1798
1798
|
const sa = (e, r) => {
|
|
1799
|
-
let t, a,
|
|
1800
|
-
const
|
|
1799
|
+
let t, a, i;
|
|
1800
|
+
const o = (l, u, d) => (v) => {
|
|
1801
1801
|
const m = performance.now();
|
|
1802
1802
|
return setTimeout(() => {
|
|
1803
|
-
if (!
|
|
1803
|
+
if (!i) {
|
|
1804
1804
|
t = void 0, a = void 0;
|
|
1805
1805
|
return;
|
|
1806
1806
|
}
|
|
1807
|
-
const h = (async () => r(...
|
|
1808
|
-
|
|
1807
|
+
const h = (async () => r(...i))();
|
|
1808
|
+
i = void 0, h.then(u).catch((N) => {
|
|
1809
1809
|
console.error(N), d(N);
|
|
1810
1810
|
});
|
|
1811
1811
|
let y, k;
|
|
1812
1812
|
a = new Promise((N, b) => {
|
|
1813
1813
|
y = N, k = b;
|
|
1814
|
-
}), t = h.then(
|
|
1814
|
+
}), t = h.then(o(m, y, k)).catch((N) => (console.error(N), o(l, y, k)(N)));
|
|
1815
1815
|
}, e - (m - l)), v;
|
|
1816
1816
|
};
|
|
1817
1817
|
return (...l) => {
|
|
1818
|
-
if (
|
|
1818
|
+
if (i = l, t)
|
|
1819
1819
|
return a;
|
|
1820
1820
|
{
|
|
1821
1821
|
const u = performance.now(), d = (async () => r(...l))();
|
|
1822
|
-
|
|
1822
|
+
i = void 0;
|
|
1823
1823
|
let v, m;
|
|
1824
1824
|
return a = new Promise((h, y) => {
|
|
1825
1825
|
v = h, m = y;
|
|
1826
|
-
}), t = d.then(
|
|
1826
|
+
}), t = d.then(o(u, v, m)).catch((h) => (console.error(h), o(u, v, m)(h))), d;
|
|
1827
1827
|
}
|
|
1828
1828
|
};
|
|
1829
1829
|
}, ca = (e) => (r) => new ReadableStream({
|
|
@@ -1833,7 +1833,7 @@ const sa = (e, r) => {
|
|
|
1833
1833
|
this.reader = r.getReader();
|
|
1834
1834
|
},
|
|
1835
1835
|
async pull(t) {
|
|
1836
|
-
const { leftOverData: a } = this,
|
|
1836
|
+
const { leftOverData: a } = this, i = async ({ buffer: u = new Uint8Array(e), currentSize: d = 0 } = {}) => {
|
|
1837
1837
|
const { value: v, done: m } = await this.reader.read();
|
|
1838
1838
|
if (d === 0 && a && (u.set(a), d += a.byteLength, this.leftOverData = void 0), m) {
|
|
1839
1839
|
const k = { buffer: u.slice(0, d), currentSize: d, done: m };
|
|
@@ -1841,9 +1841,9 @@ const sa = (e, r) => {
|
|
|
1841
1841
|
}
|
|
1842
1842
|
let h;
|
|
1843
1843
|
const y = v.slice(0, e - d);
|
|
1844
|
-
return h = d + y.byteLength, u.set(y, d), h === e ? (this.leftOverData = v.slice(e - d), { buffer: u, currentSize: h, done: !1 }) :
|
|
1845
|
-
}, { buffer:
|
|
1846
|
-
|
|
1844
|
+
return h = d + y.byteLength, u.set(y, d), h === e ? (this.leftOverData = v.slice(e - d), { buffer: u, currentSize: h, done: !1 }) : i({ buffer: u, currentSize: h });
|
|
1845
|
+
}, { buffer: o, done: l } = await i();
|
|
1846
|
+
o?.byteLength && t.enqueue(o), l && t.close();
|
|
1847
1847
|
},
|
|
1848
1848
|
cancel() {
|
|
1849
1849
|
this.reader.cancel(), this.leftOverData = void 0;
|
|
@@ -1861,30 +1861,38 @@ const sa = (e, r) => {
|
|
|
1861
1861
|
if (this.buffers.length >= e)
|
|
1862
1862
|
return;
|
|
1863
1863
|
this.currentPullPromise = this.reader.read();
|
|
1864
|
-
const { value:
|
|
1864
|
+
const { value: o, done: l } = await this.currentPullPromise;
|
|
1865
1865
|
if (this.currentPullPromise = void 0, l) {
|
|
1866
1866
|
try {
|
|
1867
|
+
for (const u of this.buffers)
|
|
1868
|
+
t.enqueue(u);
|
|
1867
1869
|
t.close();
|
|
1868
1870
|
} catch {
|
|
1869
1871
|
}
|
|
1870
1872
|
return;
|
|
1871
1873
|
}
|
|
1872
|
-
return this.buffers.push(
|
|
1873
|
-
},
|
|
1874
|
+
return this.buffers.push(o), o;
|
|
1875
|
+
}, i = async () => {
|
|
1874
1876
|
if (!(this.buffers.length >= e)) {
|
|
1875
1877
|
if (this.buffers.length === 0)
|
|
1876
|
-
return await a() ?
|
|
1877
|
-
a().then((
|
|
1878
|
-
|
|
1878
|
+
return await a() ? i() : void 0;
|
|
1879
|
+
a().then((o) => {
|
|
1880
|
+
o && i();
|
|
1879
1881
|
});
|
|
1880
1882
|
}
|
|
1881
1883
|
};
|
|
1882
|
-
await
|
|
1884
|
+
await i();
|
|
1885
|
+
try {
|
|
1886
|
+
t.enqueue(this.buffers.shift()), i();
|
|
1887
|
+
} catch (o) {
|
|
1888
|
+
if (!(o instanceof TypeError && o.message === "ReadableStreamDefaultController.enqueue: Cannot enqueue into a stream that has already been requested to close."))
|
|
1889
|
+
throw o;
|
|
1890
|
+
}
|
|
1883
1891
|
},
|
|
1884
1892
|
cancel() {
|
|
1885
1893
|
this.reader.cancel();
|
|
1886
1894
|
}
|
|
1887
|
-
}), ua =
|
|
1895
|
+
}), ua = Nr`
|
|
1888
1896
|
position: relative;
|
|
1889
1897
|
display: grid;
|
|
1890
1898
|
grid-column: 1;
|
|
@@ -1968,17 +1976,17 @@ const sa = (e, r) => {
|
|
|
1968
1976
|
)
|
|
1969
1977
|
}
|
|
1970
1978
|
) : null
|
|
1971
|
-
] }),
|
|
1972
|
-
const [t, a] =
|
|
1973
|
-
if (
|
|
1979
|
+
] }), mt = ({ ref: e, defaultValue: r }) => {
|
|
1980
|
+
const [t, a] = Y(r), [i, o] = Y(!1), l = (u) => {
|
|
1981
|
+
if (o(!0), !e.current)
|
|
1974
1982
|
return;
|
|
1975
1983
|
const { clientX: d } = u, { left: v, right: m } = e.current.getBoundingClientRect();
|
|
1976
1984
|
a(Math.min(Math.max((d - v) / (m - v), 0), 1));
|
|
1977
1985
|
};
|
|
1978
1986
|
return he(() => {
|
|
1979
|
-
if (!
|
|
1987
|
+
if (!i)
|
|
1980
1988
|
return;
|
|
1981
|
-
const u = () =>
|
|
1989
|
+
const u = () => o(!1), d = (v) => {
|
|
1982
1990
|
if (!e.current)
|
|
1983
1991
|
return;
|
|
1984
1992
|
const { clientX: m } = v, { left: h, right: y } = e.current.getBoundingClientRect();
|
|
@@ -1987,25 +1995,25 @@ const sa = (e, r) => {
|
|
|
1987
1995
|
return document.addEventListener("mousemove", d), document.addEventListener("mouseup", u), () => {
|
|
1988
1996
|
document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", u);
|
|
1989
1997
|
};
|
|
1990
|
-
}, [
|
|
1998
|
+
}, [i]), {
|
|
1991
1999
|
value: t,
|
|
1992
|
-
scrubbing:
|
|
2000
|
+
scrubbing: i,
|
|
1993
2001
|
scrub: l
|
|
1994
2002
|
};
|
|
1995
|
-
}, da = JSON.parse(`[{"tag":"zu","name":"isiZulu","originalName":"isiZulu","locale":"zu-ZA"},{"tag":"zh","name":"Chinese","originalName":"中文","locale":"zh-CHS"},{"tag":"yo","name":"Yoruba","originalName":"Yoruba","locale":"yo-NG"},{"tag":"xh","name":"isiXhosa","originalName":"isiXhosa","locale":"xh-ZA"},{"tag":"wo","name":"Wolof","originalName":"Wolof","locale":"wo-SN"},{"tag":"vi","name":"Vietnamese","originalName":"Tiếng Việt","locale":"vi"},{"tag":"uz","name":"Uzbek","originalName":"U'zbek","locale":"uz"},{"tag":"ur","name":"Urdu","originalName":"اُردو","locale":"ur"},{"tag":"uk","name":"Ukrainian","originalName":"україньска","locale":"uk"},{"tag":"ug","name":"Uyghur","originalName":"ئۇيغۇرچە","locale":"ug-CN"},{"tag":"tzm","name":"Tamazight","originalName":"Tamazight","locale":"tzm-Latn-DZ"},{"tag":"tt","name":"Tatar","originalName":"Татар","locale":"tt"},{"tag":"tr","name":"Turkish","originalName":"Türkçe","locale":"tr"},{"tag":"tn","name":"Setswana","originalName":"Setswana","locale":"tn-ZA"},{"tag":"tk","name":"Turkmen","originalName":"türkmençe","locale":"tk-TM"},{"tag":"th","name":"Thai","originalName":"ไทย","locale":"th"},{"tag":"tg","name":"Tajik","originalName":"Тоҷикӣ","locale":"tg-Cyrl-TJ"},{"tag":"te","name":"Telugu","originalName":"తెలుగు","locale":"te"},{"tag":"ta","name":"Tamil","originalName":"தமிழ்","locale":"ta"},{"tag":"syr","name":"Syriac","originalName":"ܣܘܪܝܝܐ","locale":"syr"},{"tag":"sw","name":"Kiswahili","originalName":"Kiswahili","locale":"sw"},{"tag":"sv","name":"Swedish","originalName":"svenska","locale":"sv"},{"tag":"sr","name":"Serbian","originalName":"srpski","locale":"sr"},{"tag":"sq","name":"Albanian","originalName":"shqipe","locale":"sq"},{"tag":"sms","name":"Sami","originalName":"sääm´ǩiõll","locale":"sms-FI"},{"tag":"smn","name":"Sami","originalName":"sämikielâ","locale":"smn-FI"},{"tag":"smj","name":"Sami","originalName":"julevusámegiella","locale":"smj-NO"},{"tag":"sma","name":"Sami","originalName":"åarjelsaemiengiele","locale":"sma-NO"},{"tag":"sl","name":"Slovenian","originalName":"slovenski","locale":"sl"},{"tag":"sk","name":"Slovak","originalName":"slovenčina","locale":"sk"},{"tag":"si","name":"Sinhala","originalName":"සිංහ","locale":"si-LK"},{"tag":"se","name":"Sami","originalName":"davvisámegiella","locale":"se-FI"},{"tag":"sah","name":"Yakut","originalName":"саха","locale":"sah-RU"},{"tag":"sa","name":"Sanskrit","originalName":"संस्कृत","locale":"sa"},{"tag":"rw","name":"Kinyarwanda","originalName":"Kinyarwanda","locale":"rw-RW"},{"tag":"ru","name":"Russian","originalName":"русский","locale":"ru"},{"tag":"ro","name":"Romanian","originalName":"română","locale":"ro"},{"tag":"rm","name":"Romansh","originalName":"Rumantsch","locale":"rm-CH"},{"tag":"quz","name":"Quechua","originalName":"runasimi","locale":"quz-BO"},{"tag":"qut","name":"K'iche","originalName":"K'iche","locale":"qut-GT"},{"tag":"pt","name":"Portuguese","originalName":"Português","locale":"pt"},{"tag":"ps","name":"Pashto","originalName":"پښتو","locale":"ps-AF"},{"tag":"prs","name":"Dari","originalName":"درى","locale":"prs-AF"},{"tag":"pl","name":"Polish","originalName":"polski","locale":"pl"},{"tag":"pa","name":"Punjabi","originalName":"ਪੰਜਾਬੀ","locale":"pa"},{"tag":"or","name":"Oriya","originalName":"ଓଡ଼ିଆ","locale":"or-IN"},{"tag":"oc","name":"Occitan","originalName":"Occitan","locale":"oc-FR"},{"tag":"nso","name":"Sesotho sa Leboa","originalName":"Sesotho sa Leboa","locale":"nso-ZA"},{"tag":"no","name":"Norwegian","originalName":"norsk","locale":"no"},{"tag":"nn","name":"Norwegian, Nynorsk","originalName":"norsk, nynorsk","locale":"nn-NO"},{"tag":"nl","name":"Dutch","originalName":"Nederlands","locale":"nl"},{"tag":"ne","name":"Nepali","originalName":"नेपाली","locale":"ne-NP"},{"tag":"nb","name":"Norwegian, Bokmål","originalName":"norsk, bokmål","locale":"nb-NO"},{"tag":"mt","name":"Maltese","originalName":"Malti","locale":"mt-MT"},{"tag":"ms","name":"Malay","originalName":"Bahasa Malaysia","locale":"ms"},{"tag":"mr","name":"Marathi","originalName":"मराठी","locale":"mr"},{"tag":"moh","name":"Mohawk","originalName":"Kanien'kéha","locale":"moh-CA"},{"tag":"mn","name":"Mongolian","originalName":"Монгол хэл","locale":"mn"},{"tag":"ml","name":"Malayalam","originalName":"മലയാളം","locale":"ml-IN"},{"tag":"mk","name":"Macedonian","originalName":"македонски јазик","locale":"mk"},{"tag":"mi","name":"Maori","originalName":"Reo Māori","locale":"mi-NZ"},{"tag":"lv","name":"Latvian","originalName":"latviešu","locale":"lv"},{"tag":"lt","name":"Lithuanian","originalName":"lietuvių","locale":"lt"},{"tag":"lo","name":"Lao","originalName":"ລາວ","locale":"lo-LA"},{"tag":"lb","name":"Luxembourgish","originalName":"Lëtzebuergesch","locale":"lb-LU"},{"tag":"ky","name":"Kyrgyz","originalName":"Кыргыз","locale":"ky"},{"tag":"kok","name":"Konkani","originalName":"कोंकणी","locale":"kok"},{"tag":"ko","name":"Korean","originalName":"한국어","locale":"ko"},{"tag":"kn","name":"Kannada","originalName":"ಕನ್ನಡ","locale":"kn"},{"tag":"km","name":"Khmer","originalName":"ខ្មែរ","locale":"km-KH"},{"tag":"kl","name":"Greenlandic","originalName":"kalaallisut","locale":"kl-GL"},{"tag":"kk","name":"Kazakh","originalName":"Қазащb","locale":"kk"},{"tag":"ka","name":"Georgian","originalName":"ქართული","locale":"ka"},{"tag":"ja","name":"Japanese","originalName":"日本語","locale":"ja"},{"tag":"iu","name":"Inuktitut","originalName":"ᐃᓄᒃᑎᑐᑦ","locale":"iu-Cans-CA"},{"tag":"it","name":"Italian","originalName":"italiano","locale":"it"},{"tag":"is","name":"Icelandic","originalName":"íslenska","locale":"is"},{"tag":"ii","name":"Yi","originalName":"ꆈꌠꁱꂷ","locale":"ii-CN"},{"tag":"ig","name":"Igbo","originalName":"Igbo","locale":"ig-NG"},{"tag":"id","name":"Indonesian","originalName":"Bahasa Indonesia","locale":"id"},{"tag":"hy","name":"Armenian","originalName":"Հայերեն","locale":"hy"},{"tag":"hu","name":"Hungarian","originalName":"magyar","locale":"hu"},{"tag":"hsb","name":"Upper Sorbian","originalName":"hornjoserbšćina","locale":"hsb-DE"},{"tag":"hr","name":"Croatian","originalName":"hrvatski","locale":"hr"},{"tag":"hi","name":"Hindi","originalName":"हिंदी","locale":"hi"},{"tag":"he","name":"Hebrew","originalName":"עברית","locale":"he"},{"tag":"ha","name":"Hausa","originalName":"Hausa","locale":"ha-Latn-NG"},{"tag":"gu","name":"Gujarati","originalName":"ગુજરાતી","locale":"gu"},{"tag":"gsw","name":"Alsatian","originalName":"Elsässisch","locale":"gsw-FR"},{"tag":"gl","name":"Galician","originalName":"galego","locale":"gl"},{"tag":"gd","name":"Scottish Gaelic","originalName":"Gàidhlig","locale":"gd-GB"},{"tag":"ga","name":"Irish","originalName":"Gaeilge","locale":"ga-IE"},{"tag":"fy","name":"Frisian","originalName":"Frysk","locale":"fy-NL"},{"tag":"fr","name":"French","originalName":"français","locale":"fr"},{"tag":"fo","name":"Faroese","originalName":"føroyskt","locale":"fo"},{"tag":"fil","name":"Filipino","originalName":"Filipino","locale":"fil-PH"},{"tag":"fi","name":"Finnish","originalName":"suomi","locale":"fi"},{"tag":"fa","name":"Persian","originalName":"فارسى","locale":"fa"},{"tag":"eu","name":"Basque","originalName":"euskara","locale":"eu"},{"tag":"et","name":"Estonian","originalName":"eesti","locale":"et"},{"tag":"es","name":"Spanish","originalName":"español","locale":"es"},{"tag":"en","name":"English","originalName":"English","locale":"en"},{"tag":"el","name":"Greek","originalName":"ελληνικά","locale":"el"},{"tag":"dv","name":"Divehi","originalName":"ދިވެހިބަސް","locale":"dv"},{"tag":"dsb","name":"Lower Sorbian","originalName":"dolnoserbšćina","locale":"dsb-DE"},{"tag":"de","name":"German","originalName":"Deutsch","locale":"de"},{"tag":"da","name":"Danish","originalName":"dansk","locale":"da"},{"tag":"cy","name":"Welsh","originalName":"Cymraeg","locale":"cy-GB"},{"tag":"cs","name":"Czech","originalName":"čeština","locale":"cs"},{"tag":"co","name":"Corsican","originalName":"Corsu","locale":"co-FR"},{"tag":"ca","name":"Catalan","originalName":"català","locale":"ca"},{"tag":"bs","name":"Bosnian","originalName":"босански","locale":"bs-Cyrl-BA"},{"tag":"br","name":"Breton","originalName":"brezhoneg","locale":"br-FR"},{"tag":"bo","name":"Tibetan","originalName":"བོད་ཡིག","locale":"bo-CN"},{"tag":"bn","name":"Bengali","originalName":"বাংলা","locale":"bn-BD"},{"tag":"bg","name":"Bulgarian","originalName":"български","locale":"bg"},{"tag":"be","name":"Belarusian","originalName":"Беларускі","locale":"be"},{"tag":"ba","name":"Bashkir","originalName":"Башҡорт","locale":"ba-RU"},{"tag":"az","name":"Azeri","originalName":"Azərbaycanılı","locale":"az"},{"tag":"as","name":"Assamese","originalName":"অসমীয়া","locale":"as-IN"},{"tag":"arn","name":"Mapudungun","originalName":"Mapudungun","locale":"arn-CL"},{"tag":"ar","name":"Arabic","originalName":"العربية","locale":"ar"},{"tag":"am","name":"Amharic","originalName":"አማርኛ","locale":"am-ET"},{"tag":"af","name":"Afrikaans","originalName":"Afrikaans","locale":"af"},{"tag":"iv","name":"Invariant Language","originalName":"Invariant Language","locale":""},{"tag":"Two letter","name":"English","originalName":"Native","locale":"Culture .NET"}]`),
|
|
1996
|
-
const [r, t] =
|
|
2003
|
+
}, da = JSON.parse(`[{"tag":"zu","name":"isiZulu","originalName":"isiZulu","locale":"zu-ZA"},{"tag":"zh","name":"Chinese","originalName":"中文","locale":"zh-CHS"},{"tag":"yo","name":"Yoruba","originalName":"Yoruba","locale":"yo-NG"},{"tag":"xh","name":"isiXhosa","originalName":"isiXhosa","locale":"xh-ZA"},{"tag":"wo","name":"Wolof","originalName":"Wolof","locale":"wo-SN"},{"tag":"vi","name":"Vietnamese","originalName":"Tiếng Việt","locale":"vi"},{"tag":"uz","name":"Uzbek","originalName":"U'zbek","locale":"uz"},{"tag":"ur","name":"Urdu","originalName":"اُردو","locale":"ur"},{"tag":"uk","name":"Ukrainian","originalName":"україньска","locale":"uk"},{"tag":"ug","name":"Uyghur","originalName":"ئۇيغۇرچە","locale":"ug-CN"},{"tag":"tzm","name":"Tamazight","originalName":"Tamazight","locale":"tzm-Latn-DZ"},{"tag":"tt","name":"Tatar","originalName":"Татар","locale":"tt"},{"tag":"tr","name":"Turkish","originalName":"Türkçe","locale":"tr"},{"tag":"tn","name":"Setswana","originalName":"Setswana","locale":"tn-ZA"},{"tag":"tk","name":"Turkmen","originalName":"türkmençe","locale":"tk-TM"},{"tag":"th","name":"Thai","originalName":"ไทย","locale":"th"},{"tag":"tg","name":"Tajik","originalName":"Тоҷикӣ","locale":"tg-Cyrl-TJ"},{"tag":"te","name":"Telugu","originalName":"తెలుగు","locale":"te"},{"tag":"ta","name":"Tamil","originalName":"தமிழ்","locale":"ta"},{"tag":"syr","name":"Syriac","originalName":"ܣܘܪܝܝܐ","locale":"syr"},{"tag":"sw","name":"Kiswahili","originalName":"Kiswahili","locale":"sw"},{"tag":"sv","name":"Swedish","originalName":"svenska","locale":"sv"},{"tag":"sr","name":"Serbian","originalName":"srpski","locale":"sr"},{"tag":"sq","name":"Albanian","originalName":"shqipe","locale":"sq"},{"tag":"sms","name":"Sami","originalName":"sääm´ǩiõll","locale":"sms-FI"},{"tag":"smn","name":"Sami","originalName":"sämikielâ","locale":"smn-FI"},{"tag":"smj","name":"Sami","originalName":"julevusámegiella","locale":"smj-NO"},{"tag":"sma","name":"Sami","originalName":"åarjelsaemiengiele","locale":"sma-NO"},{"tag":"sl","name":"Slovenian","originalName":"slovenski","locale":"sl"},{"tag":"sk","name":"Slovak","originalName":"slovenčina","locale":"sk"},{"tag":"si","name":"Sinhala","originalName":"සිංහ","locale":"si-LK"},{"tag":"se","name":"Sami","originalName":"davvisámegiella","locale":"se-FI"},{"tag":"sah","name":"Yakut","originalName":"саха","locale":"sah-RU"},{"tag":"sa","name":"Sanskrit","originalName":"संस्कृत","locale":"sa"},{"tag":"rw","name":"Kinyarwanda","originalName":"Kinyarwanda","locale":"rw-RW"},{"tag":"ru","name":"Russian","originalName":"русский","locale":"ru"},{"tag":"ro","name":"Romanian","originalName":"română","locale":"ro"},{"tag":"rm","name":"Romansh","originalName":"Rumantsch","locale":"rm-CH"},{"tag":"quz","name":"Quechua","originalName":"runasimi","locale":"quz-BO"},{"tag":"qut","name":"K'iche","originalName":"K'iche","locale":"qut-GT"},{"tag":"pt","name":"Portuguese","originalName":"Português","locale":"pt"},{"tag":"ps","name":"Pashto","originalName":"پښتو","locale":"ps-AF"},{"tag":"prs","name":"Dari","originalName":"درى","locale":"prs-AF"},{"tag":"pl","name":"Polish","originalName":"polski","locale":"pl"},{"tag":"pa","name":"Punjabi","originalName":"ਪੰਜਾਬੀ","locale":"pa"},{"tag":"or","name":"Oriya","originalName":"ଓଡ଼ିଆ","locale":"or-IN"},{"tag":"oc","name":"Occitan","originalName":"Occitan","locale":"oc-FR"},{"tag":"nso","name":"Sesotho sa Leboa","originalName":"Sesotho sa Leboa","locale":"nso-ZA"},{"tag":"no","name":"Norwegian","originalName":"norsk","locale":"no"},{"tag":"nn","name":"Norwegian, Nynorsk","originalName":"norsk, nynorsk","locale":"nn-NO"},{"tag":"nl","name":"Dutch","originalName":"Nederlands","locale":"nl"},{"tag":"ne","name":"Nepali","originalName":"नेपाली","locale":"ne-NP"},{"tag":"nb","name":"Norwegian, Bokmål","originalName":"norsk, bokmål","locale":"nb-NO"},{"tag":"mt","name":"Maltese","originalName":"Malti","locale":"mt-MT"},{"tag":"ms","name":"Malay","originalName":"Bahasa Malaysia","locale":"ms"},{"tag":"mr","name":"Marathi","originalName":"मराठी","locale":"mr"},{"tag":"moh","name":"Mohawk","originalName":"Kanien'kéha","locale":"moh-CA"},{"tag":"mn","name":"Mongolian","originalName":"Монгол хэл","locale":"mn"},{"tag":"ml","name":"Malayalam","originalName":"മലയാളം","locale":"ml-IN"},{"tag":"mk","name":"Macedonian","originalName":"македонски јазик","locale":"mk"},{"tag":"mi","name":"Maori","originalName":"Reo Māori","locale":"mi-NZ"},{"tag":"lv","name":"Latvian","originalName":"latviešu","locale":"lv"},{"tag":"lt","name":"Lithuanian","originalName":"lietuvių","locale":"lt"},{"tag":"lo","name":"Lao","originalName":"ລາວ","locale":"lo-LA"},{"tag":"lb","name":"Luxembourgish","originalName":"Lëtzebuergesch","locale":"lb-LU"},{"tag":"ky","name":"Kyrgyz","originalName":"Кыргыз","locale":"ky"},{"tag":"kok","name":"Konkani","originalName":"कोंकणी","locale":"kok"},{"tag":"ko","name":"Korean","originalName":"한국어","locale":"ko"},{"tag":"kn","name":"Kannada","originalName":"ಕನ್ನಡ","locale":"kn"},{"tag":"km","name":"Khmer","originalName":"ខ្មែរ","locale":"km-KH"},{"tag":"kl","name":"Greenlandic","originalName":"kalaallisut","locale":"kl-GL"},{"tag":"kk","name":"Kazakh","originalName":"Қазащb","locale":"kk"},{"tag":"ka","name":"Georgian","originalName":"ქართული","locale":"ka"},{"tag":"ja","name":"Japanese","originalName":"日本語","locale":"ja"},{"tag":"iu","name":"Inuktitut","originalName":"ᐃᓄᒃᑎᑐᑦ","locale":"iu-Cans-CA"},{"tag":"it","name":"Italian","originalName":"italiano","locale":"it"},{"tag":"is","name":"Icelandic","originalName":"íslenska","locale":"is"},{"tag":"ii","name":"Yi","originalName":"ꆈꌠꁱꂷ","locale":"ii-CN"},{"tag":"ig","name":"Igbo","originalName":"Igbo","locale":"ig-NG"},{"tag":"id","name":"Indonesian","originalName":"Bahasa Indonesia","locale":"id"},{"tag":"hy","name":"Armenian","originalName":"Հայերեն","locale":"hy"},{"tag":"hu","name":"Hungarian","originalName":"magyar","locale":"hu"},{"tag":"hsb","name":"Upper Sorbian","originalName":"hornjoserbšćina","locale":"hsb-DE"},{"tag":"hr","name":"Croatian","originalName":"hrvatski","locale":"hr"},{"tag":"hi","name":"Hindi","originalName":"हिंदी","locale":"hi"},{"tag":"he","name":"Hebrew","originalName":"עברית","locale":"he"},{"tag":"ha","name":"Hausa","originalName":"Hausa","locale":"ha-Latn-NG"},{"tag":"gu","name":"Gujarati","originalName":"ગુજરાતી","locale":"gu"},{"tag":"gsw","name":"Alsatian","originalName":"Elsässisch","locale":"gsw-FR"},{"tag":"gl","name":"Galician","originalName":"galego","locale":"gl"},{"tag":"gd","name":"Scottish Gaelic","originalName":"Gàidhlig","locale":"gd-GB"},{"tag":"ga","name":"Irish","originalName":"Gaeilge","locale":"ga-IE"},{"tag":"fy","name":"Frisian","originalName":"Frysk","locale":"fy-NL"},{"tag":"fr","name":"French","originalName":"français","locale":"fr"},{"tag":"fo","name":"Faroese","originalName":"føroyskt","locale":"fo"},{"tag":"fil","name":"Filipino","originalName":"Filipino","locale":"fil-PH"},{"tag":"fi","name":"Finnish","originalName":"suomi","locale":"fi"},{"tag":"fa","name":"Persian","originalName":"فارسى","locale":"fa"},{"tag":"eu","name":"Basque","originalName":"euskara","locale":"eu"},{"tag":"et","name":"Estonian","originalName":"eesti","locale":"et"},{"tag":"es","name":"Spanish","originalName":"español","locale":"es"},{"tag":"en","name":"English","originalName":"English","locale":"en"},{"tag":"el","name":"Greek","originalName":"ελληνικά","locale":"el"},{"tag":"dv","name":"Divehi","originalName":"ދިވެހިބަސް","locale":"dv"},{"tag":"dsb","name":"Lower Sorbian","originalName":"dolnoserbšćina","locale":"dsb-DE"},{"tag":"de","name":"German","originalName":"Deutsch","locale":"de"},{"tag":"da","name":"Danish","originalName":"dansk","locale":"da"},{"tag":"cy","name":"Welsh","originalName":"Cymraeg","locale":"cy-GB"},{"tag":"cs","name":"Czech","originalName":"čeština","locale":"cs"},{"tag":"co","name":"Corsican","originalName":"Corsu","locale":"co-FR"},{"tag":"ca","name":"Catalan","originalName":"català","locale":"ca"},{"tag":"bs","name":"Bosnian","originalName":"босански","locale":"bs-Cyrl-BA"},{"tag":"br","name":"Breton","originalName":"brezhoneg","locale":"br-FR"},{"tag":"bo","name":"Tibetan","originalName":"བོད་ཡིག","locale":"bo-CN"},{"tag":"bn","name":"Bengali","originalName":"বাংলা","locale":"bn-BD"},{"tag":"bg","name":"Bulgarian","originalName":"български","locale":"bg"},{"tag":"be","name":"Belarusian","originalName":"Беларускі","locale":"be"},{"tag":"ba","name":"Bashkir","originalName":"Башҡорт","locale":"ba-RU"},{"tag":"az","name":"Azeri","originalName":"Azərbaycanılı","locale":"az"},{"tag":"as","name":"Assamese","originalName":"অসমীয়া","locale":"as-IN"},{"tag":"arn","name":"Mapudungun","originalName":"Mapudungun","locale":"arn-CL"},{"tag":"ar","name":"Arabic","originalName":"العربية","locale":"ar"},{"tag":"am","name":"Amharic","originalName":"አማርኛ","locale":"am-ET"},{"tag":"af","name":"Afrikaans","originalName":"Afrikaans","locale":"af"},{"tag":"iv","name":"Invariant Language","originalName":"Invariant Language","locale":""},{"tag":"Two letter","name":"English","originalName":"Native","locale":"Culture .NET"}]`), gt = (e) => da.find((r) => r.tag === e)?.name, ma = (e) => {
|
|
2004
|
+
const [r, t] = Y(() => {
|
|
1997
2005
|
const a = localStorage.getItem(e);
|
|
1998
2006
|
return a ? JSON.parse(a) : {};
|
|
1999
2007
|
});
|
|
2000
2008
|
return he(() => {
|
|
2001
2009
|
localStorage.setItem(e, JSON.stringify(r));
|
|
2002
|
-
}, [e, r]), (a,
|
|
2003
|
-
t((
|
|
2010
|
+
}, [e, r]), (a, i) => (he(() => {
|
|
2011
|
+
t((o) => ({ ...o, [a]: i }));
|
|
2004
2012
|
}, []), [
|
|
2005
2013
|
r[a],
|
|
2006
|
-
(
|
|
2014
|
+
(o) => t(typeof o == "function" ? (l) => ({ ...l, [a]: o(l[a]) }) : (l) => ({ ...l, [a]: o }))
|
|
2007
2015
|
]);
|
|
2008
|
-
}, ga =
|
|
2016
|
+
}, ga = Nr`
|
|
2009
2017
|
position: relative;
|
|
2010
2018
|
grid-column: 1;
|
|
2011
2019
|
grid-row: 1;
|
|
@@ -2269,8 +2277,8 @@ const sa = (e, r) => {
|
|
|
2269
2277
|
currentTime: r,
|
|
2270
2278
|
togglePlay: t,
|
|
2271
2279
|
seek: a,
|
|
2272
|
-
setVolume:
|
|
2273
|
-
isSubtitleMenuHidden:
|
|
2280
|
+
setVolume: i,
|
|
2281
|
+
isSubtitleMenuHidden: o,
|
|
2274
2282
|
setIsSubtitleMenuHidden: l,
|
|
2275
2283
|
isErrorMenuHidden: u,
|
|
2276
2284
|
setIsErrorMenuHidden: d,
|
|
@@ -2286,60 +2294,60 @@ const sa = (e, r) => {
|
|
|
2286
2294
|
customControls: S,
|
|
2287
2295
|
...P
|
|
2288
2296
|
}) => {
|
|
2289
|
-
const I =
|
|
2297
|
+
const I = Qe(null), f = Qe(null), [B, R] = Y(!1), { scrub: Oe, value: we } = mt({ ref: I }), Ae = Or(() => document.pictureInPictureEnabled, []), [Ie, ue] = Y(!1), H = ma("fkn-media-player"), [J, fe] = H("volume", 1), [X, Ee] = H("muted", !1), { scrub: ne, value: ae } = mt({ ref: f, defaultValue: J });
|
|
2290
2298
|
he(() => {
|
|
2291
|
-
|
|
2292
|
-
}, [
|
|
2299
|
+
Ie || (ue(!0), _e(void 0));
|
|
2300
|
+
}, [Ie, _.length]), he(() => {
|
|
2293
2301
|
we !== void 0 && a(we * (e ?? 0));
|
|
2294
2302
|
}, [we]), he(() => {
|
|
2295
|
-
if (
|
|
2296
|
-
|
|
2303
|
+
if (X) {
|
|
2304
|
+
i(0), Ee(X), ae && fe(ae);
|
|
2297
2305
|
return;
|
|
2298
2306
|
}
|
|
2299
|
-
ae !== void 0 && (
|
|
2300
|
-
}, [ae,
|
|
2301
|
-
const
|
|
2307
|
+
ae !== void 0 && (i(ae ** 2), fe(ae), Ee(X));
|
|
2308
|
+
}, [ae, X]);
|
|
2309
|
+
const ee = () => {
|
|
2302
2310
|
R(!1);
|
|
2303
2311
|
}, Ne = (s) => {
|
|
2304
2312
|
s.currentTarget !== s.relatedTarget && s.relatedTarget !== null || R(!0);
|
|
2305
2313
|
}, ke = () => {
|
|
2306
2314
|
Ee((s) => !s);
|
|
2307
|
-
}, Ce = (s, w,
|
|
2308
|
-
v(w === void 0 ? w :
|
|
2309
|
-
},
|
|
2310
|
-
if (!
|
|
2311
|
-
l((
|
|
2315
|
+
}, Ce = (s, w, W) => {
|
|
2316
|
+
v(w === void 0 ? w : W);
|
|
2317
|
+
}, $e = (s) => {
|
|
2318
|
+
if (!o && s.relatedTarget === null) {
|
|
2319
|
+
l((W) => !W);
|
|
2312
2320
|
return;
|
|
2313
2321
|
}
|
|
2314
2322
|
l(!1);
|
|
2315
|
-
const w = (
|
|
2316
|
-
|
|
2323
|
+
const w = (W) => {
|
|
2324
|
+
W.stopPropagation(), l(!0), document.removeEventListener("click", w);
|
|
2317
2325
|
};
|
|
2318
2326
|
setTimeout(() => {
|
|
2319
2327
|
document.addEventListener("click", w);
|
|
2320
2328
|
}, 0);
|
|
2321
2329
|
}, _e = (s) => {
|
|
2322
2330
|
if (!u && s?.relatedTarget === null) {
|
|
2323
|
-
d((
|
|
2331
|
+
d((W) => !W);
|
|
2324
2332
|
return;
|
|
2325
2333
|
}
|
|
2326
2334
|
d(!1);
|
|
2327
|
-
const w = (
|
|
2328
|
-
|
|
2335
|
+
const w = (W) => {
|
|
2336
|
+
W.stopPropagation(), d(!0), document.removeEventListener("click", w);
|
|
2329
2337
|
};
|
|
2330
2338
|
setTimeout(() => {
|
|
2331
2339
|
document.addEventListener("click", w);
|
|
2332
2340
|
}, 0);
|
|
2333
2341
|
}, ve = ({ subtitleTrack: s }) => {
|
|
2334
2342
|
if (!s)
|
|
2335
|
-
return /* @__PURE__ */ p(
|
|
2343
|
+
return /* @__PURE__ */ p(Ze, { children: "Disabled" });
|
|
2336
2344
|
if (!s.title && !s.language)
|
|
2337
|
-
return /* @__PURE__ */ p(
|
|
2338
|
-
const w = s.language === "jpn" ? "ja" :
|
|
2339
|
-
return s.title ? /* @__PURE__ */ ge(
|
|
2345
|
+
return /* @__PURE__ */ p(Ze, { children: "Default" });
|
|
2346
|
+
const w = s.language === "jpn" ? "ja" : gt(s.language) ? gt(s.language) : s.language;
|
|
2347
|
+
return s.title ? /* @__PURE__ */ ge(Ze, { children: [
|
|
2340
2348
|
s.title?.replace("subs", ""),
|
|
2341
2349
|
w ? `(${w})` : ""
|
|
2342
|
-
] }) : /* @__PURE__ */ p(
|
|
2350
|
+
] }) : /* @__PURE__ */ p(Ze, { children: w });
|
|
2343
2351
|
}, Se = Or(
|
|
2344
2352
|
() => [
|
|
2345
2353
|
...new Set(
|
|
@@ -2351,14 +2359,14 @@ const sa = (e, r) => {
|
|
|
2351
2359
|
[_]
|
|
2352
2360
|
);
|
|
2353
2361
|
he(() => {
|
|
2354
|
-
|
|
2362
|
+
Xe.rebuild();
|
|
2355
2363
|
}, [y.length]), he(() => {
|
|
2356
2364
|
const s = (w) => {
|
|
2357
2365
|
w.key === "f" && N(), w.key === "k" && t(), w.key === "m" && ke();
|
|
2358
2366
|
};
|
|
2359
2367
|
return window.addEventListener("keydown", s), () => window.removeEventListener("keydown", s);
|
|
2360
2368
|
}, [N, t, ke]);
|
|
2361
|
-
const [j, ie] =
|
|
2369
|
+
const [j, ie] = Y(void 0);
|
|
2362
2370
|
return /* @__PURE__ */ ge("div", { css: ga, onMouseOut: Ne, ...P, children: [
|
|
2363
2371
|
/* @__PURE__ */ p("div", { className: "preview" }),
|
|
2364
2372
|
/* @__PURE__ */ ge(
|
|
@@ -2367,8 +2375,8 @@ const sa = (e, r) => {
|
|
|
2367
2375
|
ref: I,
|
|
2368
2376
|
className: "progress-bar",
|
|
2369
2377
|
onMouseMove: (s) => {
|
|
2370
|
-
const
|
|
2371
|
-
ie(
|
|
2378
|
+
const W = s.nativeEvent.offsetX / s.currentTarget.offsetWidth * (e ?? 0);
|
|
2379
|
+
ie(W);
|
|
2372
2380
|
},
|
|
2373
2381
|
onMouseOut: () => {
|
|
2374
2382
|
I.current && ie(void 0);
|
|
@@ -2387,20 +2395,20 @@ const sa = (e, r) => {
|
|
|
2387
2395
|
} }),
|
|
2388
2396
|
/* @__PURE__ */ p("div", { className: "chapters" }),
|
|
2389
2397
|
/* @__PURE__ */ p("div", { className: "scrubber" }),
|
|
2390
|
-
/* @__PURE__ */ p("div", { className: "padding", onMouseDown:
|
|
2398
|
+
/* @__PURE__ */ p("div", { className: "padding", onMouseDown: Oe })
|
|
2391
2399
|
]
|
|
2392
2400
|
}
|
|
2393
2401
|
),
|
|
2394
2402
|
/* @__PURE__ */ ge("div", { className: "controls", children: [
|
|
2395
|
-
/* @__PURE__ */ p(
|
|
2403
|
+
/* @__PURE__ */ p(Xe, { id: "play-button-tooltip", effect: "solid", place: "top", children: h ? "Pause (k)" : "Play (k)" }),
|
|
2396
2404
|
/* @__PURE__ */ p("button", { className: "play-button", type: "button", "data-tip": !0, "data-for": "play-button-tooltip", onClick: t, children: h ? /* @__PURE__ */ ge("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "feather feather-pause", children: [
|
|
2397
2405
|
/* @__PURE__ */ p("rect", { x: "6", y: "4", width: "4", height: "16" }),
|
|
2398
2406
|
/* @__PURE__ */ p("rect", { x: "14", y: "4", width: "4", height: "16" })
|
|
2399
2407
|
] }) : /* @__PURE__ */ p("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "feather feather-play", children: /* @__PURE__ */ p("polygon", { points: "5 3 19 12 5 21 5 3" }) }) }),
|
|
2400
|
-
/* @__PURE__ */ ge("div", { className: "volume-area", onMouseOver:
|
|
2401
|
-
/* @__PURE__ */ p(
|
|
2402
|
-
/* @__PURE__ */ p("button", { className: "mute-button", "data-tip": !0, "data-for": "mute-button-tooltip", onClick: ke, children:
|
|
2403
|
-
/* @__PURE__ */ p("div", { ref: f, className: `volume-panel${
|
|
2408
|
+
/* @__PURE__ */ ge("div", { className: "volume-area", onMouseOver: ee, children: [
|
|
2409
|
+
/* @__PURE__ */ p(Xe, { id: "mute-button-tooltip", effect: "solid", place: "top", children: X ? "Unmute (m)" : "Mute (m)" }),
|
|
2410
|
+
/* @__PURE__ */ p("button", { className: "mute-button", "data-tip": !0, "data-for": "mute-button-tooltip", onClick: ke, children: X ? /* @__PURE__ */ p(Jr, {}) : (J ?? 0) > 0.66 ? /* @__PURE__ */ p(zt, {}) : (J ?? 0) > 0.33 ? /* @__PURE__ */ p(Yt, {}) : (J ?? 0) > 0 ? /* @__PURE__ */ p(Wt, {}) : /* @__PURE__ */ p(Jr, {}) }),
|
|
2411
|
+
/* @__PURE__ */ p("div", { ref: f, className: `volume-panel${B ? "" : " volume-control-hover"}`, onMouseDown: ne, children: /* @__PURE__ */ p("div", { className: "slider", children: /* @__PURE__ */ p("div", { className: "slider-handle", style: { left: `${(J ?? 0) * 100}%` } }) }) })
|
|
2404
2412
|
] }),
|
|
2405
2413
|
/* @__PURE__ */ ge("div", { className: "time", children: [
|
|
2406
2414
|
/* @__PURE__ */ p("span", { children: new Date((r ?? 0) * 1e3).toISOString().substr(11, 8) }),
|
|
@@ -2408,30 +2416,30 @@ const sa = (e, r) => {
|
|
|
2408
2416
|
/* @__PURE__ */ p("span", { children: e ? new Date(e * 1e3).toISOString().substr(11, 8) : "" })
|
|
2409
2417
|
] }),
|
|
2410
2418
|
/* @__PURE__ */ p("div", { className: "custom-controls", children: S?.length ? S.map((s, w) => /* @__PURE__ */ p(s, {}, w)) : null }),
|
|
2411
|
-
/* @__PURE__ */ p("div", { className: "error-area", children: Se.length ? /* @__PURE__ */ ge(
|
|
2419
|
+
/* @__PURE__ */ p("div", { className: "error-area", children: Se.length ? /* @__PURE__ */ ge(Ze, { children: [
|
|
2412
2420
|
/* @__PURE__ */ p("div", { className: `error-menu ${u ? "hide" : ""}`, children: u ? null : Se }),
|
|
2413
2421
|
/* @__PURE__ */ ge("div", { className: "error-menu-button", onClick: _e, children: [
|
|
2414
2422
|
/* @__PURE__ */ p(qt, {}),
|
|
2415
2423
|
"Error"
|
|
2416
2424
|
] })
|
|
2417
2425
|
] }) : null }),
|
|
2418
|
-
/* @__PURE__ */ p(
|
|
2419
|
-
/* @__PURE__ */ p("div", { className: "subtitle-area", children: y.length ? /* @__PURE__ */ ge(
|
|
2420
|
-
/* @__PURE__ */ p("div", { className: `subtitle-menu ${
|
|
2421
|
-
(s, w) => /* @__PURE__ */ p("button", { onClick: (
|
|
2426
|
+
/* @__PURE__ */ p(Xe, { id: "subtitle-button-tooltip", globalEventOff: "click", effect: "solid", place: "top", disable: !o, children: "Subtitles" }),
|
|
2427
|
+
/* @__PURE__ */ p("div", { className: "subtitle-area", children: y.length ? /* @__PURE__ */ ge(Ze, { children: [
|
|
2428
|
+
/* @__PURE__ */ p("div", { className: `subtitle-menu ${o ? "hide" : ""}`, children: o ? null : [...y, void 0].map(
|
|
2429
|
+
(s, w) => /* @__PURE__ */ p("button", { onClick: (W) => Ce(W, s, w), children: /* @__PURE__ */ p(ve, { subtitleTrack: s }) }, s ? w : "disabled")
|
|
2422
2430
|
) }),
|
|
2423
|
-
/* @__PURE__ */ p("button", { className: "subtitle-menu-button", "data-tip": !0, "data-for": "subtitle-button-tooltip", onClick:
|
|
2431
|
+
/* @__PURE__ */ p("button", { className: "subtitle-menu-button", "data-tip": !0, "data-for": "subtitle-button-tooltip", onClick: $e, children: /* @__PURE__ */ p(ve, { subtitleTrack: b }) })
|
|
2424
2432
|
] }) : null }),
|
|
2425
|
-
/* @__PURE__ */ p(
|
|
2426
|
-
|
|
2433
|
+
/* @__PURE__ */ p(Xe, { id: "pip-button-tooltip", effect: "solid", place: "top", children: "Picture in Picture" }),
|
|
2434
|
+
Ae ? /* @__PURE__ */ p("button", { className: "picture-in-picture", "data-tip": !0, "data-for": "pip-button-tooltip", onClick: x, children: /* @__PURE__ */ ge("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
2427
2435
|
/* @__PURE__ */ p("rect", { x: "2", y: "3", width: "21", height: "14", rx: "2", ry: "2" }),
|
|
2428
2436
|
/* @__PURE__ */ p("rect", { x: "12.5", y: "8.5", width: "8", height: "6", rx: "2", ry: "2" })
|
|
2429
2437
|
] }) }) : null,
|
|
2430
|
-
/* @__PURE__ */ p(
|
|
2438
|
+
/* @__PURE__ */ p(Xe, { id: "fullscreen-button-tooltip", effect: "solid", place: "top", children: k ? "Exit full screen (f)" : "Full screen (f)" }),
|
|
2431
2439
|
/* @__PURE__ */ p("button", { className: "fullscreen", "data-tip": !0, "data-for": "fullscreen-button-tooltip", onClick: N, children: k ? /* @__PURE__ */ p("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "feather feather-minimize", children: /* @__PURE__ */ p("path", { d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" }) }) : /* @__PURE__ */ p("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "feather feather-maximize", children: /* @__PURE__ */ p("path", { d: "M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3" }) }) })
|
|
2432
2440
|
] })
|
|
2433
2441
|
] });
|
|
2434
|
-
}, pa =
|
|
2442
|
+
}, pa = Nr`
|
|
2435
2443
|
--background-padding: 2rem;
|
|
2436
2444
|
display: grid;
|
|
2437
2445
|
grid-template-rows: 1fr;
|
|
@@ -2455,8 +2463,8 @@ overflow: hidden;
|
|
|
2455
2463
|
isPlaying: r,
|
|
2456
2464
|
loading: t,
|
|
2457
2465
|
duration: a,
|
|
2458
|
-
loadedTime:
|
|
2459
|
-
currentTime:
|
|
2466
|
+
loadedTime: i,
|
|
2467
|
+
currentTime: o,
|
|
2460
2468
|
pictureInPicture: l,
|
|
2461
2469
|
fullscreen: u,
|
|
2462
2470
|
play: d,
|
|
@@ -2473,34 +2481,34 @@ overflow: hidden;
|
|
|
2473
2481
|
needsInitialInteraction: P,
|
|
2474
2482
|
...I
|
|
2475
2483
|
}) => {
|
|
2476
|
-
const [f,
|
|
2484
|
+
const [f, B] = Y(), [R, Oe] = Y(!1), [we, Ae] = Y(!1), [Ie, ue] = Y(!1), H = Qe(), [J, fe] = Y(!0), [X, Ee] = Y(), [ne, ae] = Y(), ee = Or(
|
|
2477
2485
|
() => ne !== void 0 ? k[ne] : void 0,
|
|
2478
2486
|
[ne, ne !== void 0 && k[ne]?.data]
|
|
2479
|
-
), [Ne, ke] =
|
|
2480
|
-
ue(!1),
|
|
2487
|
+
), [Ne, ke] = Y(!0), Ce = (j) => {
|
|
2488
|
+
ue(!1), H.current && clearInterval(H.current);
|
|
2481
2489
|
const ie = setTimeout(() => {
|
|
2482
2490
|
ue(!0);
|
|
2483
2491
|
}, 3e3);
|
|
2484
|
-
|
|
2492
|
+
H.current = ie;
|
|
2485
2493
|
};
|
|
2486
2494
|
he(() => {
|
|
2487
2495
|
setTimeout(() => {
|
|
2488
2496
|
ue(!0);
|
|
2489
2497
|
}, 3e3);
|
|
2490
2498
|
}, []);
|
|
2491
|
-
const
|
|
2499
|
+
const $e = (j) => {
|
|
2492
2500
|
if (!f?.parentElement?.parentElement?.contains(j?.relatedTarget)) {
|
|
2493
2501
|
ue(!0);
|
|
2494
2502
|
return;
|
|
2495
2503
|
}
|
|
2496
2504
|
j.currentTarget.parentElement !== j.relatedTarget && j.relatedTarget !== null || ue(!0);
|
|
2497
2505
|
}, _e = () => {
|
|
2498
|
-
|
|
2506
|
+
J && d();
|
|
2499
2507
|
}, ve = () => {
|
|
2500
|
-
!f || !
|
|
2508
|
+
!f || !X || (Ae((j) => !j), u());
|
|
2501
2509
|
};
|
|
2502
2510
|
he(() => {
|
|
2503
|
-
if (!N.current || !f ||
|
|
2511
|
+
if (!N.current || !f || X || !ee?.data || !y)
|
|
2504
2512
|
return;
|
|
2505
2513
|
const j = y.map(({ filename: be, data: je }) => [
|
|
2506
2514
|
be.toLowerCase().replaceAll("-", " ").split(".").at(0),
|
|
@@ -2508,7 +2516,7 @@ overflow: hidden;
|
|
|
2508
2516
|
]), ie = new Ut({
|
|
2509
2517
|
video: N.current,
|
|
2510
2518
|
canvas: f,
|
|
2511
|
-
subContent:
|
|
2519
|
+
subContent: ee.data,
|
|
2512
2520
|
fonts: j.filter(Boolean).map(([, be]) => be),
|
|
2513
2521
|
availableFonts: { ...Object.fromEntries(j), "liberation sans": new URL("/build/default.woff2", new URL(window.location.toString()).origin).toString() },
|
|
2514
2522
|
workerUrl: _,
|
|
@@ -2516,21 +2524,21 @@ overflow: hidden;
|
|
|
2516
2524
|
modernWasmUrl: S
|
|
2517
2525
|
});
|
|
2518
2526
|
Ee(ie);
|
|
2519
|
-
}, [f, y,
|
|
2527
|
+
}, [f, y, ee?.data]), he(() => {
|
|
2520
2528
|
k.length && ae(0);
|
|
2521
2529
|
}, [k.length]), he(() => {
|
|
2522
|
-
if (!
|
|
2530
|
+
if (!X)
|
|
2523
2531
|
return;
|
|
2524
|
-
if (!
|
|
2525
|
-
|
|
2532
|
+
if (!ee) {
|
|
2533
|
+
X.freeTrack();
|
|
2526
2534
|
return;
|
|
2527
2535
|
}
|
|
2528
|
-
|
|
2529
|
-
}, [
|
|
2536
|
+
X.setTrack(ee.data), !(!f?.parentElement || R) && Oe(!0);
|
|
2537
|
+
}, [X, ee, R]);
|
|
2530
2538
|
const Se = (j) => {
|
|
2531
|
-
j &&
|
|
2539
|
+
j && B(j);
|
|
2532
2540
|
};
|
|
2533
|
-
return /* @__PURE__ */ ge("div", { ...I, css: pa, onMouseMove: Ce, onMouseOut:
|
|
2541
|
+
return /* @__PURE__ */ ge("div", { ...I, css: pa, onMouseMove: Ce, onMouseOut: $e, className: `chrome ${I.className ?? ""} ${Ie ? "hide" : ""}`, children: [
|
|
2534
2542
|
/* @__PURE__ */ p(fa, { needsInitialInteraction: P, loading: t, togglePlay: _e, setCanvasRef: Se }),
|
|
2535
2543
|
e,
|
|
2536
2544
|
/* @__PURE__ */ p(
|
|
@@ -2543,23 +2551,23 @@ overflow: hidden;
|
|
|
2543
2551
|
pictureInPicture: l,
|
|
2544
2552
|
seek: v,
|
|
2545
2553
|
setCurrentSubtitleTrack: ae,
|
|
2546
|
-
isSubtitleMenuHidden:
|
|
2554
|
+
isSubtitleMenuHidden: J,
|
|
2547
2555
|
setIsSubtitleMenuHidden: fe,
|
|
2548
2556
|
isErrorMenuHidden: Ne,
|
|
2549
2557
|
setIsErrorMenuHidden: ke,
|
|
2550
2558
|
setVolume: h,
|
|
2551
|
-
subtitleTrack:
|
|
2559
|
+
subtitleTrack: ee,
|
|
2552
2560
|
tracks: k,
|
|
2553
|
-
currentTime:
|
|
2561
|
+
currentTime: o,
|
|
2554
2562
|
duration: a,
|
|
2555
2563
|
isPlaying: r,
|
|
2556
|
-
loadedTime:
|
|
2564
|
+
loadedTime: i,
|
|
2557
2565
|
errors: b,
|
|
2558
2566
|
customControls: x
|
|
2559
2567
|
}
|
|
2560
2568
|
)
|
|
2561
2569
|
] });
|
|
2562
|
-
}, ba = 25e5, ya =
|
|
2570
|
+
}, ba = 25e5, ya = Nr`
|
|
2563
2571
|
display: grid;
|
|
2564
2572
|
justify-content: center;
|
|
2565
2573
|
background-color: #111;
|
|
@@ -2579,90 +2587,90 @@ overflow: hidden;
|
|
|
2579
2587
|
grid-column: 1;
|
|
2580
2588
|
grid-row: 1;
|
|
2581
2589
|
}
|
|
2582
|
-
`, Ra =
|
|
2590
|
+
`, Ra = pt(({
|
|
2583
2591
|
customOverlay: e,
|
|
2584
2592
|
baseBufferSize: r = ba,
|
|
2585
2593
|
size: t,
|
|
2586
2594
|
fetch: a,
|
|
2587
|
-
customControls:
|
|
2588
|
-
publicPath:
|
|
2595
|
+
customControls: i,
|
|
2596
|
+
publicPath: o,
|
|
2589
2597
|
wasmUrl: l,
|
|
2590
2598
|
libavWorkerUrl: u,
|
|
2591
2599
|
libavWorkerOptions: d,
|
|
2592
2600
|
libassWorkerUrl: v,
|
|
2593
2601
|
makeTransmuxer: m = Bt
|
|
2594
2602
|
}, h) => {
|
|
2595
|
-
const [y, k] =
|
|
2603
|
+
const [y, k] = Y(!0), N = Qe(null), b = Qe(), [x, _] = Y(), [S, P] = Y(!(b?.current?.paused ?? !0)), [I, f] = Y(0), [B, R] = Y(void 0), [Oe, we] = Y([]), [Ae, Ie] = Y([]), [ue, H] = Y(), [J, fe] = Y([0, 0]), [X, Ee] = Y(!1), ne = Qe(a);
|
|
2596
2604
|
he(() => {
|
|
2597
2605
|
ne.current = a;
|
|
2598
2606
|
}, [a]), he(() => {
|
|
2599
2607
|
if (!t || !x)
|
|
2600
2608
|
return;
|
|
2601
|
-
let w,
|
|
2609
|
+
let w, W;
|
|
2602
2610
|
return (async () => {
|
|
2603
2611
|
w = m({
|
|
2604
|
-
publicPath:
|
|
2612
|
+
publicPath: o,
|
|
2605
2613
|
workerUrl: u,
|
|
2606
2614
|
workerOptions: d,
|
|
2607
2615
|
bufferSize: r,
|
|
2608
2616
|
length: t,
|
|
2609
2617
|
getStream: (C, O) => ne.current(C, O ? Math.min(C + O, t) - 1 : void 0).then(
|
|
2610
|
-
(
|
|
2618
|
+
(q) => O ? q.body : la(3)(
|
|
2611
2619
|
ca(r)(
|
|
2612
|
-
|
|
2620
|
+
q.body
|
|
2613
2621
|
)
|
|
2614
2622
|
)
|
|
2615
2623
|
),
|
|
2616
|
-
subtitle: (C, O,
|
|
2624
|
+
subtitle: (C, O, q) => {
|
|
2617
2625
|
we(
|
|
2618
|
-
(
|
|
2626
|
+
(G) => G.find(({ title: re }) => re === C) ? G.map((re) => re.title === C ? { title: C, language: O, data: q } : re) : [...G, { title: C, language: O, data: q }]
|
|
2619
2627
|
);
|
|
2620
2628
|
},
|
|
2621
|
-
attachment: (C, O,
|
|
2622
|
-
|
|
2623
|
-
...
|
|
2624
|
-
{ filename: C, mimetype: O, data: new Uint8Array(
|
|
2629
|
+
attachment: (C, O, q) => {
|
|
2630
|
+
B?.find(({ filename: G }) => C === G) || R((G) => [
|
|
2631
|
+
...G ?? [],
|
|
2632
|
+
{ filename: C, mimetype: O, data: new Uint8Array(q) }
|
|
2625
2633
|
]);
|
|
2626
2634
|
}
|
|
2627
2635
|
});
|
|
2628
|
-
const de = await w,
|
|
2629
|
-
if (!
|
|
2636
|
+
const de = await w, Ve = await de.init();
|
|
2637
|
+
if (!Ve)
|
|
2630
2638
|
throw new Error("No header chunk found after remuxer init");
|
|
2631
|
-
const
|
|
2632
|
-
|
|
2639
|
+
const We = await de.getInfo(), nr = We.input.duration / 1e6;
|
|
2640
|
+
H(nr), x.addEventListener("error", (C) => {
|
|
2633
2641
|
console.error(C.target?.error);
|
|
2634
2642
|
});
|
|
2635
|
-
const
|
|
2636
|
-
x.src = URL.createObjectURL(
|
|
2643
|
+
const Le = new MediaSource();
|
|
2644
|
+
x.src = URL.createObjectURL(Le);
|
|
2637
2645
|
const me = await new Promise(
|
|
2638
|
-
(C) =>
|
|
2646
|
+
(C) => Le.addEventListener(
|
|
2639
2647
|
"sourceopen",
|
|
2640
2648
|
() => {
|
|
2641
|
-
const O =
|
|
2642
|
-
|
|
2649
|
+
const O = Le.addSourceBuffer(`video/mp4; codecs="${We.input.video_mime_type},${We.input.audio_mime_type}"`);
|
|
2650
|
+
Le.duration = nr, O.mode = "segments", C(O);
|
|
2643
2651
|
},
|
|
2644
2652
|
{ once: !0 }
|
|
2645
2653
|
)
|
|
2646
|
-
),
|
|
2647
|
-
const
|
|
2648
|
-
C(
|
|
2649
|
-
},
|
|
2650
|
-
C(
|
|
2651
|
-
},
|
|
2652
|
-
console.error(
|
|
2653
|
-
},
|
|
2654
|
-
me.removeEventListener("updateend",
|
|
2654
|
+
), mr = new Gt({ concurrency: 1 }), qe = (C, O) => {
|
|
2655
|
+
const q = (z) => {
|
|
2656
|
+
C(z), U();
|
|
2657
|
+
}, G = (z) => {
|
|
2658
|
+
C(z), U();
|
|
2659
|
+
}, re = (z) => {
|
|
2660
|
+
console.error(z), O(z), U();
|
|
2661
|
+
}, U = () => {
|
|
2662
|
+
me.removeEventListener("updateend", q), me.removeEventListener("abort", G), me.removeEventListener("error", re);
|
|
2655
2663
|
};
|
|
2656
|
-
me.addEventListener("updateend",
|
|
2657
|
-
},
|
|
2658
|
-
() => new Promise((O,
|
|
2659
|
-
|
|
2664
|
+
me.addEventListener("updateend", q, { once: !0 }), me.addEventListener("abort", G, { once: !0 }), me.addEventListener("error", re, { once: !0 });
|
|
2665
|
+
}, Ge = (C) => mr.add(
|
|
2666
|
+
() => new Promise((O, q) => {
|
|
2667
|
+
qe(O, q), me.appendBuffer(C);
|
|
2660
2668
|
})
|
|
2661
|
-
),
|
|
2662
|
-
() => new Promise((
|
|
2663
|
-
|
|
2669
|
+
), gr = async (C, O) => mr.add(
|
|
2670
|
+
() => new Promise((q, G) => {
|
|
2671
|
+
qe(q, G), me.remove(C, O);
|
|
2664
2672
|
})
|
|
2665
|
-
),
|
|
2673
|
+
), ar = () => Array(me.buffered.length).fill(void 0).map((C, O) => ({
|
|
2666
2674
|
index: O,
|
|
2667
2675
|
start: me.buffered.start(O),
|
|
2668
2676
|
end: me.buffered.end(O)
|
|
@@ -2671,73 +2679,76 @@ overflow: hidden;
|
|
|
2671
2679
|
x.playbackRate = 1, x.play();
|
|
2672
2680
|
}, { once: !0 });
|
|
2673
2681
|
let se = [];
|
|
2674
|
-
const
|
|
2675
|
-
await
|
|
2676
|
-
|
|
2682
|
+
const Be = 1, Rr = 5;
|
|
2683
|
+
await Ge(Ve.buffer);
|
|
2684
|
+
let Ue = !1;
|
|
2685
|
+
const Ke = async () => {
|
|
2686
|
+
if (Ue)
|
|
2687
|
+
throw new Error("end");
|
|
2677
2688
|
const C = await de.read();
|
|
2678
|
-
return se = [...se, C], C;
|
|
2689
|
+
return C.isTrailer && (Ue = !0), se = [...se, C], C;
|
|
2679
2690
|
};
|
|
2680
|
-
let
|
|
2681
|
-
const
|
|
2682
|
-
if (
|
|
2691
|
+
let ze = !1;
|
|
2692
|
+
const He = sa(250, async () => {
|
|
2693
|
+
if (ze)
|
|
2683
2694
|
return;
|
|
2684
|
-
const { currentTime: C } = x, O = se.findIndex(({ pts: ce, duration:
|
|
2685
|
-
for (let ce = 0; ce <
|
|
2686
|
-
if (se[ce])
|
|
2695
|
+
const { currentTime: C } = x, O = se.findIndex(({ pts: ce, duration: Me }) => ce <= C && ce + Me >= C), q = Math.max(0, O - Be);
|
|
2696
|
+
for (let ce = 0; ce < q + Rr; ce++) {
|
|
2697
|
+
if (se[ce] || Ue)
|
|
2687
2698
|
continue;
|
|
2688
|
-
const
|
|
2689
|
-
await
|
|
2699
|
+
const Me = await Ke();
|
|
2700
|
+
await Ge(Me.buffer);
|
|
2690
2701
|
}
|
|
2691
|
-
|
|
2692
|
-
const
|
|
2693
|
-
if (!
|
|
2702
|
+
q && (se = se.slice(q));
|
|
2703
|
+
const G = ar(), re = se.at(0), U = se.at(-1);
|
|
2704
|
+
if (!re || !U || re === U)
|
|
2694
2705
|
return;
|
|
2695
|
-
const
|
|
2696
|
-
for (const { start: ce, end:
|
|
2697
|
-
se.findIndex(({ pts:
|
|
2706
|
+
const z = re.pts;
|
|
2707
|
+
for (const { start: ce, end: Me } of G)
|
|
2708
|
+
se.findIndex(({ pts: or, duration: hr }) => ce <= or + hr / 2 && or + hr / 2 <= Me) === -1 ? await gr(ce, Me) : ce < z && await gr(
|
|
2698
2709
|
ce,
|
|
2699
|
-
|
|
2710
|
+
z
|
|
2700
2711
|
);
|
|
2701
2712
|
});
|
|
2702
|
-
let
|
|
2703
|
-
const
|
|
2713
|
+
let Ye;
|
|
2714
|
+
const Cr = ia(250, async (C) => {
|
|
2704
2715
|
try {
|
|
2705
|
-
|
|
2706
|
-
const O = await
|
|
2707
|
-
me.timestampOffset = O.pts, await
|
|
2716
|
+
Ue = !1, Ye === void 0 && (Ye = x.paused), ze = !0, se = [], await de.seek(C);
|
|
2717
|
+
const O = await Ke();
|
|
2718
|
+
me.timestampOffset = O.pts, await Ge(O.buffer), Ye === !1 && await x.play(), ze = !1, await He(), Ye === !1 && await x.play(), Ye = void 0;
|
|
2708
2719
|
} catch (O) {
|
|
2709
2720
|
if (O.message !== "exit")
|
|
2710
2721
|
throw O;
|
|
2711
2722
|
}
|
|
2712
|
-
}),
|
|
2713
|
-
|
|
2714
|
-
|
|
2723
|
+
}), Tr = await Ke();
|
|
2724
|
+
Ge(Tr.buffer), x.addEventListener("timeupdate", () => {
|
|
2725
|
+
He();
|
|
2715
2726
|
}), x.addEventListener("waiting", () => {
|
|
2716
|
-
|
|
2727
|
+
He();
|
|
2717
2728
|
}), x.addEventListener("seeking", (C) => {
|
|
2718
|
-
|
|
2719
|
-
}),
|
|
2720
|
-
const C =
|
|
2721
|
-
if (!O || !
|
|
2729
|
+
Cr(x.currentTime);
|
|
2730
|
+
}), He(), W = window.setInterval(() => {
|
|
2731
|
+
const C = ar(), O = C.sort(({ start: U }, { start: z }) => U - z).at(0), q = C.sort(({ end: U }, { end: z }) => U - z).at(-1);
|
|
2732
|
+
if (!O || !q)
|
|
2722
2733
|
return;
|
|
2723
|
-
let
|
|
2724
|
-
|
|
2734
|
+
let G = se.filter(({ pts: U, duration: z }) => U + z / 2 > O.start).sort(({ pts: U }, { pts: z }) => U - z).at(0)?.pts, re = se.filter(({ pts: U, duration: z }) => U + z / 2 < q.end).sort(({ pts: U }, { pts: z }) => U - z).at(-1)?.pts;
|
|
2735
|
+
G === void 0 || re === void 0 || fe([G, re]);
|
|
2725
2736
|
}, 200);
|
|
2726
2737
|
})(), () => {
|
|
2727
|
-
w.then((de) => de.destroy(!0)), window.clearInterval(
|
|
2738
|
+
w.then((de) => de.destroy(!0)), window.clearInterval(W);
|
|
2728
2739
|
};
|
|
2729
2740
|
}, [t, x]);
|
|
2730
2741
|
const ae = (w) => {
|
|
2731
2742
|
k(!0);
|
|
2732
|
-
}, [
|
|
2743
|
+
}, [ee, Ne] = Y(!1), ke = (w) => {
|
|
2733
2744
|
Ne(!1);
|
|
2734
2745
|
}, Ce = (w) => {
|
|
2735
2746
|
b.current && (Ne(!0), f(b.current?.currentTime ?? 0));
|
|
2736
|
-
},
|
|
2747
|
+
}, $e = (w) => {
|
|
2737
2748
|
x && (x.currentTime = w, Ne(!0));
|
|
2738
2749
|
}, _e = (w) => {
|
|
2739
|
-
|
|
2740
|
-
}, ve = (w) => (
|
|
2750
|
+
ee || (f(b.current?.currentTime ?? 0), k(!1));
|
|
2751
|
+
}, ve = (w) => (W) => {
|
|
2741
2752
|
P(w);
|
|
2742
2753
|
}, Se = () => {
|
|
2743
2754
|
if (document.pictureInPictureElement)
|
|
@@ -2777,21 +2788,21 @@ overflow: hidden;
|
|
|
2777
2788
|
customOverlay: e,
|
|
2778
2789
|
isPlaying: S,
|
|
2779
2790
|
video: b,
|
|
2780
|
-
needsInitialInteraction:
|
|
2791
|
+
needsInitialInteraction: X,
|
|
2781
2792
|
loading: y,
|
|
2782
2793
|
duration: ue,
|
|
2783
2794
|
currentTime: I,
|
|
2784
|
-
loadedTime:
|
|
2795
|
+
loadedTime: J,
|
|
2785
2796
|
pictureInPicture: Se,
|
|
2786
2797
|
fullscreen: j,
|
|
2787
2798
|
play: ie,
|
|
2788
|
-
seek:
|
|
2799
|
+
seek: $e,
|
|
2789
2800
|
getVolume: je,
|
|
2790
2801
|
setVolume: be,
|
|
2791
|
-
attachments:
|
|
2792
|
-
tracks:
|
|
2793
|
-
errors:
|
|
2794
|
-
customControls:
|
|
2802
|
+
attachments: B,
|
|
2803
|
+
tracks: Oe,
|
|
2804
|
+
errors: Ae,
|
|
2805
|
+
customControls: i,
|
|
2795
2806
|
libassWorkerUrl: v,
|
|
2796
2807
|
wasmUrl: l
|
|
2797
2808
|
}
|