@banou/media-player 0.4.2 → 0.4.4
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 +655 -651
- package/package.json +2 -2
- package/src/components/control-bar.tsx +3 -3
- package/src/state-machines/subtitles.ts +7 -3
package/build/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as ce from "react";
|
|
2
|
-
import
|
|
2
|
+
import mr, { forwardRef as pr, useContext as Ue, createContext as hr, useState as Z, useEffect as z, useCallback as ot, useRef as Ne, useMemo as pe } from "react";
|
|
3
3
|
import { css as Q } from "@emotion/react";
|
|
4
|
-
import { createActorContext as
|
|
5
|
-
import { fromCallback as
|
|
6
|
-
import
|
|
7
|
-
import { makeRemuxer as
|
|
8
|
-
import
|
|
9
|
-
import { parse as
|
|
10
|
-
import { Settings as
|
|
11
|
-
import { Tooltip as
|
|
12
|
-
var
|
|
4
|
+
import { createActorContext as vr } from "@xstate/react";
|
|
5
|
+
import { fromCallback as qt, setup as Er, enqueueActions as br, assign as Y, sendTo as X } from "xstate";
|
|
6
|
+
import Xt from "p-queue";
|
|
7
|
+
import { makeRemuxer as Ht } from "libav-wasm";
|
|
8
|
+
import gr from "jassub";
|
|
9
|
+
import { parse as Me, stringify as _t } from "ass-compiler";
|
|
10
|
+
import { Settings as yr, ChevronRight as Ke, VolumeX as Sr, Volume1 as xr, Volume2 as Tr, RotateCcw as wr, Play as Ar, Pause as Rr, Minimize as _r, Maximize as Cr } from "react-feather";
|
|
11
|
+
import { Tooltip as Pr } from "react-tooltip";
|
|
12
|
+
var Je = { exports: {} }, Ce = {};
|
|
13
13
|
/**
|
|
14
14
|
* @license React
|
|
15
15
|
* react-jsx-runtime.production.js
|
|
@@ -19,10 +19,10 @@ var He = { exports: {} }, Ce = {};
|
|
|
19
19
|
* This source code is licensed under the MIT license found in the
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/
|
|
22
|
-
var
|
|
23
|
-
function
|
|
24
|
-
if (
|
|
25
|
-
|
|
22
|
+
var Ct;
|
|
23
|
+
function Or() {
|
|
24
|
+
if (Ct) return Ce;
|
|
25
|
+
Ct = 1;
|
|
26
26
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
27
27
|
function n(r, o, a) {
|
|
28
28
|
var s = null;
|
|
@@ -51,22 +51,22 @@ var Pe = {};
|
|
|
51
51
|
* This source code is licensed under the MIT license found in the
|
|
52
52
|
* LICENSE file in the root directory of this source tree.
|
|
53
53
|
*/
|
|
54
|
-
var
|
|
55
|
-
function
|
|
56
|
-
return
|
|
54
|
+
var Pt;
|
|
55
|
+
function Nr() {
|
|
56
|
+
return Pt || (Pt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
57
57
|
function e(i) {
|
|
58
58
|
if (i == null) return null;
|
|
59
59
|
if (typeof i == "function")
|
|
60
|
-
return i.$$typeof ===
|
|
60
|
+
return i.$$typeof === ze ? null : i.displayName || i.name || null;
|
|
61
61
|
if (typeof i == "string") return i;
|
|
62
62
|
switch (i) {
|
|
63
|
-
case
|
|
63
|
+
case _:
|
|
64
64
|
return "Fragment";
|
|
65
65
|
case m:
|
|
66
66
|
return "Portal";
|
|
67
67
|
case W:
|
|
68
68
|
return "Profiler";
|
|
69
|
-
case
|
|
69
|
+
case C:
|
|
70
70
|
return "StrictMode";
|
|
71
71
|
case ee:
|
|
72
72
|
return "Suspense";
|
|
@@ -77,19 +77,19 @@ function Or() {
|
|
|
77
77
|
switch (typeof i.tag == "number" && console.error(
|
|
78
78
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
79
79
|
), i.$$typeof) {
|
|
80
|
-
case
|
|
80
|
+
case K:
|
|
81
81
|
return (i.displayName || "Context") + ".Provider";
|
|
82
82
|
case D:
|
|
83
83
|
return (i._context.displayName || "Context") + ".Consumer";
|
|
84
84
|
case F:
|
|
85
|
-
var
|
|
86
|
-
return i = i.displayName, i || (i =
|
|
85
|
+
var x = i.render;
|
|
86
|
+
return i = i.displayName, i || (i = x.displayName || x.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
|
|
87
87
|
case Te:
|
|
88
|
-
return
|
|
88
|
+
return x = i.displayName || null, x !== null ? x : e(i.type) || "Memo";
|
|
89
89
|
case we:
|
|
90
|
-
|
|
90
|
+
x = i._payload, i = i._init;
|
|
91
91
|
try {
|
|
92
|
-
return e(i(
|
|
92
|
+
return e(i(x));
|
|
93
93
|
} catch {
|
|
94
94
|
}
|
|
95
95
|
}
|
|
@@ -101,15 +101,15 @@ function Or() {
|
|
|
101
101
|
function n(i) {
|
|
102
102
|
try {
|
|
103
103
|
t(i);
|
|
104
|
-
var
|
|
104
|
+
var x = !1;
|
|
105
105
|
} catch {
|
|
106
|
-
|
|
106
|
+
x = !0;
|
|
107
107
|
}
|
|
108
|
-
if (
|
|
109
|
-
|
|
110
|
-
var T =
|
|
108
|
+
if (x) {
|
|
109
|
+
x = console;
|
|
110
|
+
var T = x.error, O = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
|
|
111
111
|
return T.call(
|
|
112
|
-
|
|
112
|
+
x,
|
|
113
113
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
114
114
|
O
|
|
115
115
|
), t(i);
|
|
@@ -119,7 +119,7 @@ function Or() {
|
|
|
119
119
|
}
|
|
120
120
|
function o() {
|
|
121
121
|
if (fe === 0) {
|
|
122
|
-
|
|
122
|
+
Fe = console.log, Ve = console.info, We = console.warn, Be = console.error, Ge = console.group, qe = console.groupCollapsed, Xe = console.groupEnd;
|
|
123
123
|
var i = {
|
|
124
124
|
configurable: !0,
|
|
125
125
|
enumerable: !0,
|
|
@@ -142,13 +142,13 @@ function Or() {
|
|
|
142
142
|
if (fe--, fe === 0) {
|
|
143
143
|
var i = { configurable: !0, enumerable: !0, writable: !0 };
|
|
144
144
|
Object.defineProperties(console, {
|
|
145
|
-
log: ie({}, i, { value:
|
|
146
|
-
info: ie({}, i, { value:
|
|
147
|
-
warn: ie({}, i, { value:
|
|
148
|
-
error: ie({}, i, { value:
|
|
149
|
-
group: ie({}, i, { value:
|
|
150
|
-
groupCollapsed: ie({}, i, { value:
|
|
151
|
-
groupEnd: ie({}, i, { value:
|
|
145
|
+
log: ie({}, i, { value: Fe }),
|
|
146
|
+
info: ie({}, i, { value: Ve }),
|
|
147
|
+
warn: ie({}, i, { value: We }),
|
|
148
|
+
error: ie({}, i, { value: Be }),
|
|
149
|
+
group: ie({}, i, { value: Ge }),
|
|
150
|
+
groupCollapsed: ie({}, i, { value: qe }),
|
|
151
|
+
groupEnd: ie({}, i, { value: Xe })
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
0 > fe && console.error(
|
|
@@ -160,14 +160,14 @@ function Or() {
|
|
|
160
160
|
try {
|
|
161
161
|
throw Error();
|
|
162
162
|
} catch (T) {
|
|
163
|
-
var
|
|
164
|
-
w =
|
|
163
|
+
var x = T.stack.trim().match(/\n( *(at )?)/);
|
|
164
|
+
w = x && x[1] || "", he = -1 < T.stack.indexOf(`
|
|
165
165
|
at`) ? " (<anonymous>)" : -1 < T.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
166
166
|
}
|
|
167
167
|
return `
|
|
168
168
|
` + w + i + he;
|
|
169
169
|
}
|
|
170
|
-
function u(i,
|
|
170
|
+
function u(i, x) {
|
|
171
171
|
if (!i || le) return "";
|
|
172
172
|
var T = ve.get(i);
|
|
173
173
|
if (T !== void 0) return T;
|
|
@@ -178,7 +178,7 @@ function Or() {
|
|
|
178
178
|
var B = {
|
|
179
179
|
DetermineComponentFrameRoot: function() {
|
|
180
180
|
try {
|
|
181
|
-
if (
|
|
181
|
+
if (x) {
|
|
182
182
|
var de = function() {
|
|
183
183
|
throw Error();
|
|
184
184
|
};
|
|
@@ -190,14 +190,14 @@ function Or() {
|
|
|
190
190
|
try {
|
|
191
191
|
Reflect.construct(de, []);
|
|
192
192
|
} catch (se) {
|
|
193
|
-
var
|
|
193
|
+
var He = se;
|
|
194
194
|
}
|
|
195
195
|
Reflect.construct(i, [], de);
|
|
196
196
|
} else {
|
|
197
197
|
try {
|
|
198
198
|
de.call();
|
|
199
199
|
} catch (se) {
|
|
200
|
-
|
|
200
|
+
He = se;
|
|
201
201
|
}
|
|
202
202
|
i.call(de.prototype);
|
|
203
203
|
}
|
|
@@ -205,14 +205,14 @@ function Or() {
|
|
|
205
205
|
try {
|
|
206
206
|
throw Error();
|
|
207
207
|
} catch (se) {
|
|
208
|
-
|
|
208
|
+
He = se;
|
|
209
209
|
}
|
|
210
210
|
(de = i()) && typeof de.catch == "function" && de.catch(function() {
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
} catch (se) {
|
|
214
|
-
if (se &&
|
|
215
|
-
return [se.stack,
|
|
214
|
+
if (se && He && typeof se.stack == "string")
|
|
215
|
+
return [se.stack, He.stack];
|
|
216
216
|
}
|
|
217
217
|
return [null, null];
|
|
218
218
|
}
|
|
@@ -267,10 +267,10 @@ function Or() {
|
|
|
267
267
|
function l(i) {
|
|
268
268
|
if (i == null) return "";
|
|
269
269
|
if (typeof i == "function") {
|
|
270
|
-
var
|
|
270
|
+
var x = i.prototype;
|
|
271
271
|
return u(
|
|
272
272
|
i,
|
|
273
|
-
!(!
|
|
273
|
+
!(!x || !x.isReactComponent)
|
|
274
274
|
);
|
|
275
275
|
}
|
|
276
276
|
if (typeof i == "string") return s(i);
|
|
@@ -287,9 +287,9 @@ function Or() {
|
|
|
287
287
|
case Te:
|
|
288
288
|
return l(i.type);
|
|
289
289
|
case we:
|
|
290
|
-
|
|
290
|
+
x = i._payload, i = i._init;
|
|
291
291
|
try {
|
|
292
|
-
return l(i(
|
|
292
|
+
return l(i(x));
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
|
295
295
|
}
|
|
@@ -300,17 +300,17 @@ function Or() {
|
|
|
300
300
|
return i === null ? null : i.getOwner();
|
|
301
301
|
}
|
|
302
302
|
function d(i) {
|
|
303
|
-
if (
|
|
304
|
-
var
|
|
305
|
-
if (
|
|
303
|
+
if (Ae.call(i, "key")) {
|
|
304
|
+
var x = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
305
|
+
if (x && x.isReactWarning) return !1;
|
|
306
306
|
}
|
|
307
307
|
return i.key !== void 0;
|
|
308
308
|
}
|
|
309
|
-
function g(i,
|
|
309
|
+
function g(i, x) {
|
|
310
310
|
function T() {
|
|
311
311
|
Tt || (Tt = !0, console.error(
|
|
312
312
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
313
|
-
|
|
313
|
+
x
|
|
314
314
|
));
|
|
315
315
|
}
|
|
316
316
|
T.isReactWarning = !0, Object.defineProperty(i, "key", {
|
|
@@ -318,22 +318,22 @@ function Or() {
|
|
|
318
318
|
configurable: !0
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function S() {
|
|
322
322
|
var i = e(this.type);
|
|
323
323
|
return wt[i] || (wt[i] = !0, console.error(
|
|
324
324
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
325
325
|
)), i = this.props.ref, i !== void 0 ? i : null;
|
|
326
326
|
}
|
|
327
|
-
function y(i,
|
|
327
|
+
function y(i, x, T, O, B, U) {
|
|
328
328
|
return T = U.ref, i = {
|
|
329
|
-
$$typeof:
|
|
329
|
+
$$typeof: R,
|
|
330
330
|
type: i,
|
|
331
|
-
key:
|
|
331
|
+
key: x,
|
|
332
332
|
props: U,
|
|
333
333
|
_owner: B
|
|
334
334
|
}, (T !== void 0 ? T : null) !== null ? Object.defineProperty(i, "ref", {
|
|
335
335
|
enumerable: !1,
|
|
336
|
-
get:
|
|
336
|
+
get: S
|
|
337
337
|
}) : Object.defineProperty(i, "ref", { enumerable: !1, value: null }), i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
338
338
|
configurable: !1,
|
|
339
339
|
enumerable: !1,
|
|
@@ -346,12 +346,12 @@ function Or() {
|
|
|
346
346
|
value: null
|
|
347
347
|
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
348
348
|
}
|
|
349
|
-
function p(i,
|
|
350
|
-
if (typeof i == "string" || typeof i == "function" || i ===
|
|
351
|
-
var P =
|
|
349
|
+
function p(i, x, T, O, B, U) {
|
|
350
|
+
if (typeof i == "string" || typeof i == "function" || i === _ || i === W || i === C || i === ee || i === ue || i === dt || typeof i == "object" && i !== null && (i.$$typeof === we || i.$$typeof === Te || i.$$typeof === K || i.$$typeof === D || i.$$typeof === F || i.$$typeof === ft || i.getModuleId !== void 0)) {
|
|
351
|
+
var P = x.children;
|
|
352
352
|
if (P !== void 0)
|
|
353
353
|
if (O)
|
|
354
|
-
if (
|
|
354
|
+
if (Re(P)) {
|
|
355
355
|
for (O = 0; O < P.length; O++)
|
|
356
356
|
f(P[O], i);
|
|
357
357
|
Object.freeze && Object.freeze(P);
|
|
@@ -361,17 +361,17 @@ function Or() {
|
|
|
361
361
|
);
|
|
362
362
|
else f(P, i);
|
|
363
363
|
} else
|
|
364
|
-
P = "", (i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), i === null ? O = "null" :
|
|
364
|
+
P = "", (i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), i === null ? O = "null" : Re(i) ? O = "array" : i !== void 0 && i.$$typeof === R ? (O = "<" + (e(i.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : O = typeof i, console.error(
|
|
365
365
|
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
366
366
|
O,
|
|
367
367
|
P
|
|
368
368
|
);
|
|
369
|
-
if (
|
|
369
|
+
if (Ae.call(x, "key")) {
|
|
370
370
|
P = e(i);
|
|
371
|
-
var ae = Object.keys(
|
|
371
|
+
var ae = Object.keys(x).filter(function(q) {
|
|
372
372
|
return q !== "key";
|
|
373
373
|
});
|
|
374
|
-
O = 0 < ae.length ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
374
|
+
O = 0 < ae.length ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}", At[P + O] || (ae = 0 < ae.length ? "{" + ae.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
375
375
|
`A props object containing a "key" prop is being spread into JSX:
|
|
376
376
|
let props = %s;
|
|
377
377
|
<%s {...props} />
|
|
@@ -382,38 +382,38 @@ React keys must be passed directly to JSX without using spread:
|
|
|
382
382
|
P,
|
|
383
383
|
ae,
|
|
384
384
|
P
|
|
385
|
-
),
|
|
385
|
+
), At[P + O] = !0);
|
|
386
386
|
}
|
|
387
|
-
if (P = null, T !== void 0 && (n(T), P = "" + T), d(
|
|
387
|
+
if (P = null, T !== void 0 && (n(T), P = "" + T), d(x) && (n(x.key), P = "" + x.key), "key" in x) {
|
|
388
388
|
T = {};
|
|
389
|
-
for (var Ee in
|
|
390
|
-
Ee !== "key" && (T[Ee] =
|
|
391
|
-
} else T =
|
|
389
|
+
for (var Ee in x)
|
|
390
|
+
Ee !== "key" && (T[Ee] = x[Ee]);
|
|
391
|
+
} else T = x;
|
|
392
392
|
return P && g(
|
|
393
393
|
T,
|
|
394
394
|
typeof i == "function" ? i.displayName || i.name || "Unknown" : i
|
|
395
395
|
), y(i, P, U, B, b(), T);
|
|
396
396
|
}
|
|
397
|
-
function f(i,
|
|
398
|
-
if (typeof i == "object" && i && i.$$typeof !==
|
|
399
|
-
if (
|
|
397
|
+
function f(i, x) {
|
|
398
|
+
if (typeof i == "object" && i && i.$$typeof !== fr) {
|
|
399
|
+
if (Re(i))
|
|
400
400
|
for (var T = 0; T < i.length; T++) {
|
|
401
401
|
var O = i[T];
|
|
402
|
-
c(O) &&
|
|
402
|
+
c(O) && E(O, x);
|
|
403
403
|
}
|
|
404
404
|
else if (c(i))
|
|
405
405
|
i._store && (i._store.validated = 1);
|
|
406
|
-
else if (i === null || typeof i != "object" ? T = null : (T =
|
|
406
|
+
else if (i === null || typeof i != "object" ? T = null : (T = Ye && i[Ye] || i["@@iterator"], T = typeof T == "function" ? T : null), typeof T == "function" && T !== i.entries && (T = T.call(i), T !== i))
|
|
407
407
|
for (; !(i = T.next()).done; )
|
|
408
|
-
c(i.value) &&
|
|
408
|
+
c(i.value) && E(i.value, x);
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
function c(i) {
|
|
412
|
-
return typeof i == "object" && i !== null && i.$$typeof ===
|
|
412
|
+
return typeof i == "object" && i !== null && i.$$typeof === R;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
415
|
-
if (i._store && !i._store.validated && i.key == null && (i._store.validated = 1,
|
|
416
|
-
|
|
414
|
+
function E(i, x) {
|
|
415
|
+
if (i._store && !i._store.validated && i.key == null && (i._store.validated = 1, x = h(x), !Rt[x])) {
|
|
416
|
+
Rt[x] = !0;
|
|
417
417
|
var T = "";
|
|
418
418
|
i && i._owner != null && i._owner !== b() && (T = null, typeof i._owner.tag == "number" ? T = e(i._owner.type) : typeof i._owner.name == "string" && (T = i._owner.name), T = " It was passed a child from " + T + ".");
|
|
419
419
|
var O = oe.getCurrentStack;
|
|
@@ -422,46 +422,46 @@ React keys must be passed directly to JSX without using spread:
|
|
|
422
422
|
return O && (B += O() || ""), B;
|
|
423
423
|
}, console.error(
|
|
424
424
|
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
425
|
-
|
|
425
|
+
x,
|
|
426
426
|
T
|
|
427
427
|
), oe.getCurrentStack = O;
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
var
|
|
432
|
-
return T && (T = e(T.type)) && (
|
|
430
|
+
function h(i) {
|
|
431
|
+
var x = "", T = b();
|
|
432
|
+
return T && (T = e(T.type)) && (x = `
|
|
433
433
|
|
|
434
|
-
Check the render method of \`` + T + "`."),
|
|
434
|
+
Check the render method of \`` + T + "`."), x || (i = e(i)) && (x = `
|
|
435
435
|
|
|
436
|
-
Check the top-level render call using <` + i + ">."),
|
|
436
|
+
Check the top-level render call using <` + i + ">."), x;
|
|
437
437
|
}
|
|
438
|
-
var
|
|
438
|
+
var A = mr, R = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), W = Symbol.for("react.profiler"), D = Symbol.for("react.consumer"), K = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), ee = Symbol.for("react.suspense"), ue = Symbol.for("react.suspense_list"), Te = Symbol.for("react.memo"), we = Symbol.for("react.lazy"), dt = Symbol.for("react.offscreen"), Ye = Symbol.iterator, ze = Symbol.for("react.client.reference"), oe = A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ae = Object.prototype.hasOwnProperty, ie = Object.assign, ft = Symbol.for("react.client.reference"), Re = Array.isArray, fe = 0, Fe, Ve, We, Be, Ge, qe, Xe;
|
|
439
439
|
r.__reactDisabledLog = !0;
|
|
440
|
-
var w, he, le = !1, ve = new (typeof WeakMap == "function" ? WeakMap : Map)(),
|
|
441
|
-
Pe.Fragment =
|
|
442
|
-
return p(i,
|
|
443
|
-
}, Pe.jsxs = function(i,
|
|
444
|
-
return p(i,
|
|
440
|
+
var w, he, le = !1, ve = new (typeof WeakMap == "function" ? WeakMap : Map)(), fr = Symbol.for("react.client.reference"), Tt, wt = {}, At = {}, Rt = {};
|
|
441
|
+
Pe.Fragment = _, Pe.jsx = function(i, x, T, O, B) {
|
|
442
|
+
return p(i, x, T, !1, O, B);
|
|
443
|
+
}, Pe.jsxs = function(i, x, T, O, B) {
|
|
444
|
+
return p(i, x, T, !0, O, B);
|
|
445
445
|
};
|
|
446
446
|
}()), Pe;
|
|
447
447
|
}
|
|
448
|
-
var
|
|
449
|
-
function
|
|
450
|
-
return
|
|
448
|
+
var Ot;
|
|
449
|
+
function Mr() {
|
|
450
|
+
return Ot || (Ot = 1, process.env.NODE_ENV === "production" ? Je.exports = Or() : Je.exports = Nr()), Je.exports;
|
|
451
451
|
}
|
|
452
|
-
var
|
|
453
|
-
function
|
|
452
|
+
var ke = Mr();
|
|
453
|
+
function kr(e) {
|
|
454
454
|
if (e.sheet)
|
|
455
455
|
return e.sheet;
|
|
456
456
|
for (var t = 0; t < document.styleSheets.length; t++)
|
|
457
457
|
if (document.styleSheets[t].ownerNode === e)
|
|
458
458
|
return document.styleSheets[t];
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function Lr(e) {
|
|
461
461
|
var t = document.createElement("style");
|
|
462
462
|
return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
|
|
463
463
|
}
|
|
464
|
-
var
|
|
464
|
+
var $r = /* @__PURE__ */ function() {
|
|
465
465
|
function e(n) {
|
|
466
466
|
var r = this;
|
|
467
467
|
this._insertTag = function(o) {
|
|
@@ -473,10 +473,10 @@ var Lr = /* @__PURE__ */ function() {
|
|
|
473
473
|
return t.hydrate = function(r) {
|
|
474
474
|
r.forEach(this._insertTag);
|
|
475
475
|
}, t.insert = function(r) {
|
|
476
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
476
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Lr(this));
|
|
477
477
|
var o = this.tags[this.tags.length - 1];
|
|
478
478
|
if (this.isSpeedy) {
|
|
479
|
-
var a =
|
|
479
|
+
var a = kr(o);
|
|
480
480
|
try {
|
|
481
481
|
a.insertRule(r, a.cssRules.length);
|
|
482
482
|
} catch {
|
|
@@ -490,14 +490,14 @@ var Lr = /* @__PURE__ */ function() {
|
|
|
490
490
|
return (o = r.parentNode) == null ? void 0 : o.removeChild(r);
|
|
491
491
|
}), this.tags = [], this.ctr = 0;
|
|
492
492
|
}, e;
|
|
493
|
-
}(), G = "-ms-",
|
|
494
|
-
function
|
|
493
|
+
}(), G = "-ms-", it = "-moz-", N = "-webkit-", Kt = "comm", gt = "rule", yt = "decl", Ir = "@import", Jt = "@keyframes", Ur = "@layer", Dr = Math.abs, at = String.fromCharCode, jr = Object.assign;
|
|
494
|
+
function Yr(e, t) {
|
|
495
495
|
return V(e, 0) ^ 45 ? (((t << 2 ^ V(e, 0)) << 2 ^ V(e, 1)) << 2 ^ V(e, 2)) << 2 ^ V(e, 3) : 0;
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function Zt(e) {
|
|
498
498
|
return e.trim();
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function zr(e, t) {
|
|
501
501
|
return (e = t.exec(e)) ? e[0] : e;
|
|
502
502
|
}
|
|
503
503
|
function M(e, t, n) {
|
|
@@ -509,47 +509,47 @@ function ht(e, t) {
|
|
|
509
509
|
function V(e, t) {
|
|
510
510
|
return e.charCodeAt(t) | 0;
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function Le(e, t, n) {
|
|
513
513
|
return e.slice(t, n);
|
|
514
514
|
}
|
|
515
515
|
function te(e) {
|
|
516
516
|
return e.length;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function St(e) {
|
|
519
519
|
return e.length;
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function Ze(e, t) {
|
|
522
522
|
return t.push(e), e;
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function Fr(e, t) {
|
|
525
525
|
return e.map(t).join("");
|
|
526
526
|
}
|
|
527
|
-
var
|
|
528
|
-
function
|
|
529
|
-
return { value: e, root: t, parent: n, type: r, props: o, children: a, line:
|
|
527
|
+
var st = 1, ye = 1, Qt = 0, H = 0, j = 0, xe = "";
|
|
528
|
+
function ct(e, t, n, r, o, a, s) {
|
|
529
|
+
return { value: e, root: t, parent: n, type: r, props: o, children: a, line: st, column: ye, length: s, return: "" };
|
|
530
530
|
}
|
|
531
531
|
function Oe(e, t) {
|
|
532
|
-
return
|
|
532
|
+
return jr(ct("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function Vr() {
|
|
535
535
|
return j;
|
|
536
536
|
}
|
|
537
|
-
function
|
|
538
|
-
return j =
|
|
537
|
+
function Wr() {
|
|
538
|
+
return j = H > 0 ? V(xe, --H) : 0, ye--, j === 10 && (ye = 1, st--), j;
|
|
539
539
|
}
|
|
540
540
|
function J() {
|
|
541
|
-
return j =
|
|
541
|
+
return j = H < Qt ? V(xe, H++) : 0, ye++, j === 10 && (ye = 1, st++), j;
|
|
542
542
|
}
|
|
543
543
|
function ne() {
|
|
544
|
-
return V(
|
|
544
|
+
return V(xe, H);
|
|
545
545
|
}
|
|
546
|
-
function
|
|
547
|
-
return
|
|
546
|
+
function et() {
|
|
547
|
+
return H;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
550
|
-
return
|
|
549
|
+
function De(e, t) {
|
|
550
|
+
return Le(xe, e, t);
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function $e(e) {
|
|
553
553
|
switch (e) {
|
|
554
554
|
// \0 \t \n \r \s whitespace token
|
|
555
555
|
case 0:
|
|
@@ -587,31 +587,31 @@ function Le(e) {
|
|
|
587
587
|
}
|
|
588
588
|
return 0;
|
|
589
589
|
}
|
|
590
|
-
function Qt(e) {
|
|
591
|
-
return at = ye = 1, Zt = te(Se = e), K = 0, [];
|
|
592
|
-
}
|
|
593
590
|
function er(e) {
|
|
594
|
-
return
|
|
591
|
+
return st = ye = 1, Qt = te(xe = e), H = 0, [];
|
|
592
|
+
}
|
|
593
|
+
function tr(e) {
|
|
594
|
+
return xe = "", e;
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
return
|
|
596
|
+
function tt(e) {
|
|
597
|
+
return Zt(De(H - 1, vt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function Br(e) {
|
|
600
600
|
for (; (j = ne()) && j < 33; )
|
|
601
601
|
J();
|
|
602
|
-
return
|
|
602
|
+
return $e(e) > 2 || $e(j) > 3 ? "" : " ";
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function Gr(e, t) {
|
|
605
605
|
for (; --t && J() && !(j < 48 || j > 102 || j > 57 && j < 65 || j > 70 && j < 97); )
|
|
606
606
|
;
|
|
607
|
-
return
|
|
607
|
+
return De(e, et() + (t < 6 && ne() == 32 && J() == 32));
|
|
608
608
|
}
|
|
609
609
|
function vt(e) {
|
|
610
610
|
for (; J(); )
|
|
611
611
|
switch (j) {
|
|
612
612
|
// ] ) " '
|
|
613
613
|
case e:
|
|
614
|
-
return
|
|
614
|
+
return H;
|
|
615
615
|
// " '
|
|
616
616
|
case 34:
|
|
617
617
|
case 39:
|
|
@@ -626,193 +626,193 @@ function vt(e) {
|
|
|
626
626
|
J();
|
|
627
627
|
break;
|
|
628
628
|
}
|
|
629
|
-
return
|
|
629
|
+
return H;
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function qr(e, t) {
|
|
632
632
|
for (; J() && e + j !== 57; )
|
|
633
633
|
if (e + j === 84 && ne() === 47)
|
|
634
634
|
break;
|
|
635
|
-
return "/*" +
|
|
635
|
+
return "/*" + De(t, H - 1) + "*" + at(e === 47 ? e : J());
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
for (;
|
|
637
|
+
function Xr(e) {
|
|
638
|
+
for (; !$e(ne()); )
|
|
639
639
|
J();
|
|
640
|
-
return
|
|
640
|
+
return De(e, H);
|
|
641
641
|
}
|
|
642
|
-
function
|
|
643
|
-
return
|
|
642
|
+
function Hr(e) {
|
|
643
|
+
return tr(rt("", null, null, null, [""], e = er(e), 0, [0], e));
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
for (var b = 0, d = 0, g = s,
|
|
647
|
-
switch (p =
|
|
645
|
+
function rt(e, t, n, r, o, a, s, u, l) {
|
|
646
|
+
for (var b = 0, d = 0, g = s, S = 0, y = 0, p = 0, f = 1, c = 1, E = 1, h = 0, A = "", R = o, m = a, _ = r, C = A; c; )
|
|
647
|
+
switch (p = h, h = J()) {
|
|
648
648
|
// (
|
|
649
649
|
case 40:
|
|
650
|
-
if (p != 108 && V(
|
|
651
|
-
ht(
|
|
650
|
+
if (p != 108 && V(C, g - 1) == 58) {
|
|
651
|
+
ht(C += M(tt(h), "&", "&\f"), "&\f") != -1 && (E = -1);
|
|
652
652
|
break;
|
|
653
653
|
}
|
|
654
654
|
// " ' [
|
|
655
655
|
case 34:
|
|
656
656
|
case 39:
|
|
657
657
|
case 91:
|
|
658
|
-
|
|
658
|
+
C += tt(h);
|
|
659
659
|
break;
|
|
660
660
|
// \t \n \r \s
|
|
661
661
|
case 9:
|
|
662
662
|
case 10:
|
|
663
663
|
case 13:
|
|
664
664
|
case 32:
|
|
665
|
-
|
|
665
|
+
C += Br(p);
|
|
666
666
|
break;
|
|
667
667
|
// \
|
|
668
668
|
case 92:
|
|
669
|
-
|
|
669
|
+
C += Gr(et() - 1, 7);
|
|
670
670
|
continue;
|
|
671
671
|
// /
|
|
672
672
|
case 47:
|
|
673
673
|
switch (ne()) {
|
|
674
674
|
case 42:
|
|
675
675
|
case 47:
|
|
676
|
-
|
|
676
|
+
Ze(Kr(qr(J(), et()), t, n), l);
|
|
677
677
|
break;
|
|
678
678
|
default:
|
|
679
|
-
|
|
679
|
+
C += "/";
|
|
680
680
|
}
|
|
681
681
|
break;
|
|
682
682
|
// {
|
|
683
683
|
case 123 * f:
|
|
684
|
-
u[b++] = te(
|
|
684
|
+
u[b++] = te(C) * E;
|
|
685
685
|
// } ; \0
|
|
686
686
|
case 125 * f:
|
|
687
687
|
case 59:
|
|
688
688
|
case 0:
|
|
689
|
-
switch (
|
|
689
|
+
switch (h) {
|
|
690
690
|
// \0 }
|
|
691
691
|
case 0:
|
|
692
692
|
case 125:
|
|
693
693
|
c = 0;
|
|
694
694
|
// ;
|
|
695
695
|
case 59 + d:
|
|
696
|
-
|
|
696
|
+
E == -1 && (C = M(C, /\f/g, "")), y > 0 && te(C) - g && Ze(y > 32 ? Mt(C + ";", r, n, g - 1) : Mt(M(C, " ", "") + ";", r, n, g - 2), l);
|
|
697
697
|
break;
|
|
698
698
|
// @ ;
|
|
699
699
|
case 59:
|
|
700
|
-
|
|
700
|
+
C += ";";
|
|
701
701
|
// { rule/at-rule
|
|
702
702
|
default:
|
|
703
|
-
if (
|
|
703
|
+
if (Ze(_ = Nt(C, t, n, b, d, o, u, A, R = [], m = [], g), a), h === 123)
|
|
704
704
|
if (d === 0)
|
|
705
|
-
|
|
705
|
+
rt(C, t, _, _, R, a, g, u, m);
|
|
706
706
|
else
|
|
707
|
-
switch (
|
|
707
|
+
switch (S === 99 && V(C, 3) === 110 ? 100 : S) {
|
|
708
708
|
// d l m s
|
|
709
709
|
case 100:
|
|
710
710
|
case 108:
|
|
711
711
|
case 109:
|
|
712
712
|
case 115:
|
|
713
|
-
|
|
713
|
+
rt(e, _, _, r && Ze(Nt(e, _, _, 0, 0, o, u, A, o, R = [], g), m), o, m, g, u, r ? R : m);
|
|
714
714
|
break;
|
|
715
715
|
default:
|
|
716
|
-
|
|
716
|
+
rt(C, _, _, _, [""], m, 0, u, m);
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
|
-
b = d = y = 0, f =
|
|
719
|
+
b = d = y = 0, f = E = 1, A = C = "", g = s;
|
|
720
720
|
break;
|
|
721
721
|
// :
|
|
722
722
|
case 58:
|
|
723
|
-
g = 1 + te(
|
|
723
|
+
g = 1 + te(C), y = p;
|
|
724
724
|
default:
|
|
725
725
|
if (f < 1) {
|
|
726
|
-
if (
|
|
726
|
+
if (h == 123)
|
|
727
727
|
--f;
|
|
728
|
-
else if (
|
|
728
|
+
else if (h == 125 && f++ == 0 && Wr() == 125)
|
|
729
729
|
continue;
|
|
730
730
|
}
|
|
731
|
-
switch (
|
|
731
|
+
switch (C += at(h), h * f) {
|
|
732
732
|
// &
|
|
733
733
|
case 38:
|
|
734
|
-
|
|
734
|
+
E = d > 0 ? 1 : (C += "\f", -1);
|
|
735
735
|
break;
|
|
736
736
|
// ,
|
|
737
737
|
case 44:
|
|
738
|
-
u[b++] = (te(
|
|
738
|
+
u[b++] = (te(C) - 1) * E, E = 1;
|
|
739
739
|
break;
|
|
740
740
|
// @
|
|
741
741
|
case 64:
|
|
742
|
-
ne() === 45 && (
|
|
742
|
+
ne() === 45 && (C += tt(J())), S = ne(), d = g = te(A = C += Xr(et())), h++;
|
|
743
743
|
break;
|
|
744
744
|
// -
|
|
745
745
|
case 45:
|
|
746
|
-
p === 45 && te(
|
|
746
|
+
p === 45 && te(C) == 2 && (f = 0);
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
749
|
return a;
|
|
750
750
|
}
|
|
751
|
-
function
|
|
752
|
-
for (var g = o - 1,
|
|
753
|
-
for (var
|
|
754
|
-
(
|
|
755
|
-
return
|
|
751
|
+
function Nt(e, t, n, r, o, a, s, u, l, b, d) {
|
|
752
|
+
for (var g = o - 1, S = o === 0 ? a : [""], y = St(S), p = 0, f = 0, c = 0; p < r; ++p)
|
|
753
|
+
for (var E = 0, h = Le(e, g + 1, g = Dr(f = s[p])), A = e; E < y; ++E)
|
|
754
|
+
(A = Zt(f > 0 ? S[E] + " " + h : M(h, /&\f/g, S[E]))) && (l[c++] = A);
|
|
755
|
+
return ct(e, t, n, o === 0 ? gt : u, l, b, d);
|
|
756
756
|
}
|
|
757
757
|
function Kr(e, t, n) {
|
|
758
|
-
return
|
|
758
|
+
return ct(e, t, n, Kt, at(Vr()), Le(e, 2, -2), 0);
|
|
759
759
|
}
|
|
760
|
-
function
|
|
761
|
-
return
|
|
760
|
+
function Mt(e, t, n, r) {
|
|
761
|
+
return ct(e, t, n, yt, Le(e, 0, r), Le(e, r + 1, -1), r);
|
|
762
762
|
}
|
|
763
763
|
function be(e, t) {
|
|
764
|
-
for (var n = "", r =
|
|
764
|
+
for (var n = "", r = St(e), o = 0; o < r; o++)
|
|
765
765
|
n += t(e[o], o, e, t) || "";
|
|
766
766
|
return n;
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function Jr(e, t, n, r) {
|
|
769
769
|
switch (e.type) {
|
|
770
|
-
case
|
|
770
|
+
case Ur:
|
|
771
771
|
if (e.children.length) break;
|
|
772
|
-
case
|
|
772
|
+
case Ir:
|
|
773
773
|
case yt:
|
|
774
774
|
return e.return = e.return || e.value;
|
|
775
775
|
case Kt:
|
|
776
776
|
return "";
|
|
777
|
-
case
|
|
777
|
+
case Jt:
|
|
778
778
|
return e.return = e.value + "{" + be(e.children, r) + "}";
|
|
779
779
|
case gt:
|
|
780
780
|
e.value = e.props.join(",");
|
|
781
781
|
}
|
|
782
782
|
return te(n = be(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
783
783
|
}
|
|
784
|
-
function
|
|
785
|
-
var t =
|
|
784
|
+
function Zr(e) {
|
|
785
|
+
var t = St(e);
|
|
786
786
|
return function(n, r, o, a) {
|
|
787
787
|
for (var s = "", u = 0; u < t; u++)
|
|
788
788
|
s += e[u](n, r, o, a) || "";
|
|
789
789
|
return s;
|
|
790
790
|
};
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function Qr(e) {
|
|
793
793
|
return function(t) {
|
|
794
794
|
t.root || (t = t.return) && e(t);
|
|
795
795
|
};
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function en(e) {
|
|
798
798
|
var t = /* @__PURE__ */ Object.create(null);
|
|
799
799
|
return function(n) {
|
|
800
800
|
return t[n] === void 0 && (t[n] = e(n)), t[n];
|
|
801
801
|
};
|
|
802
802
|
}
|
|
803
|
-
var
|
|
804
|
-
for (var o = 0, a = 0; o = a, a = ne(), o === 38 && a === 12 && (n[r] = 1),
|
|
803
|
+
var tn = function(t, n, r) {
|
|
804
|
+
for (var o = 0, a = 0; o = a, a = ne(), o === 38 && a === 12 && (n[r] = 1), !$e(a); )
|
|
805
805
|
J();
|
|
806
|
-
return
|
|
807
|
-
},
|
|
806
|
+
return De(t, H);
|
|
807
|
+
}, rn = function(t, n) {
|
|
808
808
|
var r = -1, o = 44;
|
|
809
809
|
do
|
|
810
|
-
switch (
|
|
810
|
+
switch ($e(o)) {
|
|
811
811
|
case 0:
|
|
812
|
-
o === 38 && ne() === 12 && (n[r] = 1), t[r] +=
|
|
812
|
+
o === 38 && ne() === 12 && (n[r] = 1), t[r] += tn(H - 1, n, r);
|
|
813
813
|
break;
|
|
814
814
|
case 2:
|
|
815
|
-
t[r] +=
|
|
815
|
+
t[r] += tt(o);
|
|
816
816
|
break;
|
|
817
817
|
case 4:
|
|
818
818
|
if (o === 44) {
|
|
@@ -821,26 +821,26 @@ var en = function(t, n, r) {
|
|
|
821
821
|
}
|
|
822
822
|
// fallthrough
|
|
823
823
|
default:
|
|
824
|
-
t[r] +=
|
|
824
|
+
t[r] += at(o);
|
|
825
825
|
}
|
|
826
826
|
while (o = J());
|
|
827
827
|
return t;
|
|
828
|
-
},
|
|
829
|
-
return
|
|
830
|
-
},
|
|
828
|
+
}, nn = function(t, n) {
|
|
829
|
+
return tr(rn(er(t), n));
|
|
830
|
+
}, kt = /* @__PURE__ */ new WeakMap(), on = function(t) {
|
|
831
831
|
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
|
|
832
832
|
// negative .length indicates that this rule has been already prefixed
|
|
833
833
|
t.length < 1)) {
|
|
834
834
|
for (var n = t.value, r = t.parent, o = t.column === r.column && t.line === r.line; r.type !== "rule"; )
|
|
835
835
|
if (r = r.parent, !r) return;
|
|
836
|
-
if (!(t.props.length === 1 && n.charCodeAt(0) !== 58 && !
|
|
837
|
-
|
|
838
|
-
for (var a = [], s =
|
|
836
|
+
if (!(t.props.length === 1 && n.charCodeAt(0) !== 58 && !kt.get(r)) && !o) {
|
|
837
|
+
kt.set(t, !0);
|
|
838
|
+
for (var a = [], s = nn(n, a), u = r.props, l = 0, b = 0; l < s.length; l++)
|
|
839
839
|
for (var d = 0; d < u.length; d++, b++)
|
|
840
840
|
t.props[b] = a[l] ? s[l].replace(/&\f/g, u[d]) : u[d] + " " + s[l];
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
|
-
},
|
|
843
|
+
}, an = function(t) {
|
|
844
844
|
if (t.type === "decl") {
|
|
845
845
|
var n = t.value;
|
|
846
846
|
// charcode for l
|
|
@@ -848,8 +848,8 @@ var en = function(t, n, r) {
|
|
|
848
848
|
n.charCodeAt(2) === 98 && (t.return = "", t.value = "");
|
|
849
849
|
}
|
|
850
850
|
};
|
|
851
|
-
function
|
|
852
|
-
switch (
|
|
851
|
+
function rr(e, t) {
|
|
852
|
+
switch (Yr(e, t)) {
|
|
853
853
|
// color-adjust
|
|
854
854
|
case 5103:
|
|
855
855
|
return N + "print-" + e + e;
|
|
@@ -889,7 +889,7 @@ function tr(e, t) {
|
|
|
889
889
|
case 4810:
|
|
890
890
|
case 6968:
|
|
891
891
|
case 2756:
|
|
892
|
-
return N + e +
|
|
892
|
+
return N + e + it + e + G + e + e;
|
|
893
893
|
// flex, flex-direction
|
|
894
894
|
case 6828:
|
|
895
895
|
case 4268:
|
|
@@ -953,10 +953,10 @@ function tr(e, t) {
|
|
|
953
953
|
if (V(e, t + 4) !== 45) break;
|
|
954
954
|
// (f)ill-available, (f)it-content
|
|
955
955
|
case 102:
|
|
956
|
-
return M(e, /(.+:)(.+)-([^]+)/, "$1" + N + "$2-$3$1" +
|
|
956
|
+
return M(e, /(.+:)(.+)-([^]+)/, "$1" + N + "$2-$3$1" + it + (V(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
957
957
|
// (s)tretch
|
|
958
958
|
case 115:
|
|
959
|
-
return ~ht(e, "stretch") ?
|
|
959
|
+
return ~ht(e, "stretch") ? rr(M(e, "stretch", "fill-available"), t) + e : e;
|
|
960
960
|
}
|
|
961
961
|
break;
|
|
962
962
|
// position: sticky
|
|
@@ -990,30 +990,30 @@ function tr(e, t) {
|
|
|
990
990
|
}
|
|
991
991
|
return e;
|
|
992
992
|
}
|
|
993
|
-
var
|
|
993
|
+
var sn = function(t, n, r, o) {
|
|
994
994
|
if (t.length > -1 && !t.return) switch (t.type) {
|
|
995
995
|
case yt:
|
|
996
|
-
t.return =
|
|
996
|
+
t.return = rr(t.value, t.length);
|
|
997
997
|
break;
|
|
998
|
-
case
|
|
998
|
+
case Jt:
|
|
999
999
|
return be([Oe(t, {
|
|
1000
1000
|
value: M(t.value, "@", "@" + N)
|
|
1001
1001
|
})], o);
|
|
1002
1002
|
case gt:
|
|
1003
|
-
if (t.length) return
|
|
1004
|
-
switch (
|
|
1003
|
+
if (t.length) return Fr(t.props, function(a) {
|
|
1004
|
+
switch (zr(a, /(::plac\w+|:read-\w+)/)) {
|
|
1005
1005
|
// :read-(only|write)
|
|
1006
1006
|
case ":read-only":
|
|
1007
1007
|
case ":read-write":
|
|
1008
1008
|
return be([Oe(t, {
|
|
1009
|
-
props: [M(a, /:(read-\w+)/, ":" +
|
|
1009
|
+
props: [M(a, /:(read-\w+)/, ":" + it + "$1")]
|
|
1010
1010
|
})], o);
|
|
1011
1011
|
// :placeholder
|
|
1012
1012
|
case "::placeholder":
|
|
1013
1013
|
return be([Oe(t, {
|
|
1014
1014
|
props: [M(a, /:(plac\w+)/, ":" + N + "input-$1")]
|
|
1015
1015
|
}), Oe(t, {
|
|
1016
|
-
props: [M(a, /:(plac\w+)/, ":" +
|
|
1016
|
+
props: [M(a, /:(plac\w+)/, ":" + it + "$1")]
|
|
1017
1017
|
}), Oe(t, {
|
|
1018
1018
|
props: [M(a, /:(plac\w+)/, G + "input-$1")]
|
|
1019
1019
|
})], o);
|
|
@@ -1021,7 +1021,7 @@ var an = function(t, n, r, o) {
|
|
|
1021
1021
|
return "";
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
-
},
|
|
1024
|
+
}, cn = [sn], un = function(t) {
|
|
1025
1025
|
var n = t.key;
|
|
1026
1026
|
if (n === "css") {
|
|
1027
1027
|
var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
@@ -1030,31 +1030,31 @@ var an = function(t, n, r, o) {
|
|
|
1030
1030
|
c.indexOf(" ") !== -1 && (document.head.appendChild(f), f.setAttribute("data-s", ""));
|
|
1031
1031
|
});
|
|
1032
1032
|
}
|
|
1033
|
-
var o = t.stylisPlugins ||
|
|
1033
|
+
var o = t.stylisPlugins || cn, a = {}, s, u = [];
|
|
1034
1034
|
s = t.container || document.head, Array.prototype.forEach.call(
|
|
1035
1035
|
// this means we will ignore elements which don't have a space in them which
|
|
1036
1036
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1037
1037
|
document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
|
|
1038
1038
|
function(f) {
|
|
1039
|
-
for (var c = f.getAttribute("data-emotion").split(" "),
|
|
1040
|
-
a[c[
|
|
1039
|
+
for (var c = f.getAttribute("data-emotion").split(" "), E = 1; E < c.length; E++)
|
|
1040
|
+
a[c[E]] = !0;
|
|
1041
1041
|
u.push(f);
|
|
1042
1042
|
}
|
|
1043
1043
|
);
|
|
1044
|
-
var l, b = [
|
|
1044
|
+
var l, b = [on, an];
|
|
1045
1045
|
{
|
|
1046
|
-
var d, g = [
|
|
1046
|
+
var d, g = [Jr, Qr(function(f) {
|
|
1047
1047
|
d.insert(f);
|
|
1048
|
-
})],
|
|
1049
|
-
return be(
|
|
1048
|
+
})], S = Zr(b.concat(o, g)), y = function(c) {
|
|
1049
|
+
return be(Hr(c), S);
|
|
1050
1050
|
};
|
|
1051
|
-
l = function(c,
|
|
1052
|
-
d =
|
|
1051
|
+
l = function(c, E, h, A) {
|
|
1052
|
+
d = h, y(c ? c + "{" + E.styles + "}" : E.styles), A && (p.inserted[E.name] = !0);
|
|
1053
1053
|
};
|
|
1054
1054
|
}
|
|
1055
1055
|
var p = {
|
|
1056
1056
|
key: n,
|
|
1057
|
-
sheet: new
|
|
1057
|
+
sheet: new $r({
|
|
1058
1058
|
key: n,
|
|
1059
1059
|
container: s,
|
|
1060
1060
|
nonce: t.nonce,
|
|
@@ -1068,7 +1068,7 @@ var an = function(t, n, r, o) {
|
|
|
1068
1068
|
insert: l
|
|
1069
1069
|
};
|
|
1070
1070
|
return p.sheet.hydrate(u), p;
|
|
1071
|
-
},
|
|
1071
|
+
}, Qe = { exports: {} }, k = {};
|
|
1072
1072
|
/** @license React v16.13.1
|
|
1073
1073
|
* react-is.production.min.js
|
|
1074
1074
|
*
|
|
@@ -1077,15 +1077,15 @@ var an = function(t, n, r, o) {
|
|
|
1077
1077
|
* This source code is licensed under the MIT license found in the
|
|
1078
1078
|
* LICENSE file in the root directory of this source tree.
|
|
1079
1079
|
*/
|
|
1080
|
-
var
|
|
1081
|
-
function
|
|
1082
|
-
if (
|
|
1083
|
-
|
|
1084
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, b = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113,
|
|
1085
|
-
function
|
|
1080
|
+
var Lt;
|
|
1081
|
+
function ln() {
|
|
1082
|
+
if (Lt) return k;
|
|
1083
|
+
Lt = 1;
|
|
1084
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, b = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, S = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, c = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, h = e ? Symbol.for("react.scope") : 60119;
|
|
1085
|
+
function A(m) {
|
|
1086
1086
|
if (typeof m == "object" && m !== null) {
|
|
1087
|
-
var
|
|
1088
|
-
switch (
|
|
1087
|
+
var _ = m.$$typeof;
|
|
1088
|
+
switch (_) {
|
|
1089
1089
|
case t:
|
|
1090
1090
|
switch (m = m.type, m) {
|
|
1091
1091
|
case l:
|
|
@@ -1104,44 +1104,44 @@ function un() {
|
|
|
1104
1104
|
case s:
|
|
1105
1105
|
return m;
|
|
1106
1106
|
default:
|
|
1107
|
-
return
|
|
1107
|
+
return _;
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
case n:
|
|
1111
|
-
return
|
|
1111
|
+
return _;
|
|
1112
1112
|
}
|
|
1113
1113
|
}
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1116
|
-
return
|
|
1115
|
+
function R(m) {
|
|
1116
|
+
return A(m) === b;
|
|
1117
1117
|
}
|
|
1118
1118
|
return k.AsyncMode = l, k.ConcurrentMode = b, k.ContextConsumer = u, k.ContextProvider = s, k.Element = t, k.ForwardRef = d, k.Fragment = r, k.Lazy = p, k.Memo = y, k.Portal = n, k.Profiler = a, k.StrictMode = o, k.Suspense = g, k.isAsyncMode = function(m) {
|
|
1119
|
-
return
|
|
1120
|
-
}, k.isConcurrentMode =
|
|
1121
|
-
return
|
|
1119
|
+
return R(m) || A(m) === l;
|
|
1120
|
+
}, k.isConcurrentMode = R, k.isContextConsumer = function(m) {
|
|
1121
|
+
return A(m) === u;
|
|
1122
1122
|
}, k.isContextProvider = function(m) {
|
|
1123
|
-
return
|
|
1123
|
+
return A(m) === s;
|
|
1124
1124
|
}, k.isElement = function(m) {
|
|
1125
1125
|
return typeof m == "object" && m !== null && m.$$typeof === t;
|
|
1126
1126
|
}, k.isForwardRef = function(m) {
|
|
1127
|
-
return
|
|
1127
|
+
return A(m) === d;
|
|
1128
1128
|
}, k.isFragment = function(m) {
|
|
1129
|
-
return
|
|
1129
|
+
return A(m) === r;
|
|
1130
1130
|
}, k.isLazy = function(m) {
|
|
1131
|
-
return
|
|
1131
|
+
return A(m) === p;
|
|
1132
1132
|
}, k.isMemo = function(m) {
|
|
1133
|
-
return
|
|
1133
|
+
return A(m) === y;
|
|
1134
1134
|
}, k.isPortal = function(m) {
|
|
1135
|
-
return
|
|
1135
|
+
return A(m) === n;
|
|
1136
1136
|
}, k.isProfiler = function(m) {
|
|
1137
|
-
return
|
|
1137
|
+
return A(m) === a;
|
|
1138
1138
|
}, k.isStrictMode = function(m) {
|
|
1139
|
-
return
|
|
1139
|
+
return A(m) === o;
|
|
1140
1140
|
}, k.isSuspense = function(m) {
|
|
1141
|
-
return
|
|
1141
|
+
return A(m) === g;
|
|
1142
1142
|
}, k.isValidElementType = function(m) {
|
|
1143
|
-
return typeof m == "string" || typeof m == "function" || m === r || m === b || m === a || m === o || m === g || m ===
|
|
1144
|
-
}, k.typeOf =
|
|
1143
|
+
return typeof m == "string" || typeof m == "function" || m === r || m === b || m === a || m === o || m === g || m === S || typeof m == "object" && m !== null && (m.$$typeof === p || m.$$typeof === y || m.$$typeof === s || m.$$typeof === u || m.$$typeof === d || m.$$typeof === c || m.$$typeof === E || m.$$typeof === h || m.$$typeof === f);
|
|
1144
|
+
}, k.typeOf = A, k;
|
|
1145
1145
|
}
|
|
1146
1146
|
var L = {};
|
|
1147
1147
|
/** @license React v16.13.1
|
|
@@ -1152,15 +1152,15 @@ var L = {};
|
|
|
1152
1152
|
* This source code is licensed under the MIT license found in the
|
|
1153
1153
|
* LICENSE file in the root directory of this source tree.
|
|
1154
1154
|
*/
|
|
1155
|
-
var
|
|
1156
|
-
function
|
|
1157
|
-
return
|
|
1158
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, b = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113,
|
|
1159
|
-
function
|
|
1155
|
+
var $t;
|
|
1156
|
+
function dn() {
|
|
1157
|
+
return $t || ($t = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1158
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, b = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, S = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, c = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, h = e ? Symbol.for("react.scope") : 60119;
|
|
1159
|
+
function A(w) {
|
|
1160
1160
|
return typeof w == "string" || typeof w == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1161
|
-
w === r || w === b || w === a || w === o || w === g || w ===
|
|
1161
|
+
w === r || w === b || w === a || w === o || w === g || w === S || typeof w == "object" && w !== null && (w.$$typeof === p || w.$$typeof === y || w.$$typeof === s || w.$$typeof === u || w.$$typeof === d || w.$$typeof === c || w.$$typeof === E || w.$$typeof === h || w.$$typeof === f);
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function R(w) {
|
|
1164
1164
|
if (typeof w == "object" && w !== null) {
|
|
1165
1165
|
var he = w.$$typeof;
|
|
1166
1166
|
switch (he) {
|
|
@@ -1192,58 +1192,58 @@ function ln() {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
1195
|
-
var m = l,
|
|
1195
|
+
var m = l, _ = b, C = u, W = s, D = t, K = d, F = r, ee = p, ue = y, Te = n, we = a, dt = o, Ye = g, ze = !1;
|
|
1196
1196
|
function oe(w) {
|
|
1197
|
-
return
|
|
1197
|
+
return ze || (ze = !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.")), Ae(w) || R(w) === l;
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1200
|
-
return
|
|
1199
|
+
function Ae(w) {
|
|
1200
|
+
return R(w) === b;
|
|
1201
1201
|
}
|
|
1202
1202
|
function ie(w) {
|
|
1203
|
-
return
|
|
1203
|
+
return R(w) === u;
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1206
|
-
return
|
|
1205
|
+
function ft(w) {
|
|
1206
|
+
return R(w) === s;
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function Re(w) {
|
|
1209
1209
|
return typeof w == "object" && w !== null && w.$$typeof === t;
|
|
1210
1210
|
}
|
|
1211
1211
|
function fe(w) {
|
|
1212
|
-
return
|
|
1213
|
-
}
|
|
1214
|
-
function ze(w) {
|
|
1215
|
-
return C(w) === r;
|
|
1212
|
+
return R(w) === d;
|
|
1216
1213
|
}
|
|
1217
1214
|
function Fe(w) {
|
|
1218
|
-
return
|
|
1215
|
+
return R(w) === r;
|
|
1219
1216
|
}
|
|
1220
1217
|
function Ve(w) {
|
|
1221
|
-
return
|
|
1218
|
+
return R(w) === p;
|
|
1222
1219
|
}
|
|
1223
1220
|
function We(w) {
|
|
1224
|
-
return
|
|
1221
|
+
return R(w) === y;
|
|
1225
1222
|
}
|
|
1226
1223
|
function Be(w) {
|
|
1227
|
-
return
|
|
1224
|
+
return R(w) === n;
|
|
1228
1225
|
}
|
|
1229
1226
|
function Ge(w) {
|
|
1230
|
-
return
|
|
1227
|
+
return R(w) === a;
|
|
1231
1228
|
}
|
|
1232
1229
|
function qe(w) {
|
|
1233
|
-
return
|
|
1230
|
+
return R(w) === o;
|
|
1231
|
+
}
|
|
1232
|
+
function Xe(w) {
|
|
1233
|
+
return R(w) === g;
|
|
1234
1234
|
}
|
|
1235
|
-
L.AsyncMode = m, L.ConcurrentMode =
|
|
1235
|
+
L.AsyncMode = m, L.ConcurrentMode = _, L.ContextConsumer = C, L.ContextProvider = W, L.Element = D, L.ForwardRef = K, L.Fragment = F, L.Lazy = ee, L.Memo = ue, L.Portal = Te, L.Profiler = we, L.StrictMode = dt, L.Suspense = Ye, L.isAsyncMode = oe, L.isConcurrentMode = Ae, L.isContextConsumer = ie, L.isContextProvider = ft, L.isElement = Re, L.isForwardRef = fe, L.isFragment = Fe, L.isLazy = Ve, L.isMemo = We, L.isPortal = Be, L.isProfiler = Ge, L.isStrictMode = qe, L.isSuspense = Xe, L.isValidElementType = A, L.typeOf = R;
|
|
1236
1236
|
}()), L;
|
|
1237
1237
|
}
|
|
1238
|
-
var
|
|
1239
|
-
function dn() {
|
|
1240
|
-
return $t || ($t = 1, process.env.NODE_ENV === "production" ? Ze.exports = un() : Ze.exports = ln()), Ze.exports;
|
|
1241
|
-
}
|
|
1242
|
-
var ft, It;
|
|
1238
|
+
var It;
|
|
1243
1239
|
function fn() {
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1240
|
+
return It || (It = 1, process.env.NODE_ENV === "production" ? Qe.exports = ln() : Qe.exports = dn()), Qe.exports;
|
|
1241
|
+
}
|
|
1242
|
+
var mt, Ut;
|
|
1243
|
+
function mn() {
|
|
1244
|
+
if (Ut) return mt;
|
|
1245
|
+
Ut = 1;
|
|
1246
|
+
var e = fn(), t = {
|
|
1247
1247
|
childContextTypes: !0,
|
|
1248
1248
|
contextType: !0,
|
|
1249
1249
|
contextTypes: !0,
|
|
@@ -1281,21 +1281,21 @@ function fn() {
|
|
|
1281
1281
|
function s(p) {
|
|
1282
1282
|
return e.isMemo(p) ? o : a[p.$$typeof] || t;
|
|
1283
1283
|
}
|
|
1284
|
-
var u = Object.defineProperty, l = Object.getOwnPropertyNames, b = Object.getOwnPropertySymbols, d = Object.getOwnPropertyDescriptor, g = Object.getPrototypeOf,
|
|
1284
|
+
var u = Object.defineProperty, l = Object.getOwnPropertyNames, b = Object.getOwnPropertySymbols, d = Object.getOwnPropertyDescriptor, g = Object.getPrototypeOf, S = Object.prototype;
|
|
1285
1285
|
function y(p, f, c) {
|
|
1286
1286
|
if (typeof f != "string") {
|
|
1287
|
-
if (
|
|
1288
|
-
var
|
|
1289
|
-
|
|
1287
|
+
if (S) {
|
|
1288
|
+
var E = g(f);
|
|
1289
|
+
E && E !== S && y(p, E, c);
|
|
1290
1290
|
}
|
|
1291
|
-
var
|
|
1292
|
-
b && (
|
|
1293
|
-
for (var
|
|
1294
|
-
var
|
|
1295
|
-
if (!n[
|
|
1296
|
-
var
|
|
1291
|
+
var h = l(f);
|
|
1292
|
+
b && (h = h.concat(b(f)));
|
|
1293
|
+
for (var A = s(p), R = s(f), m = 0; m < h.length; ++m) {
|
|
1294
|
+
var _ = h[m];
|
|
1295
|
+
if (!n[_] && !(c && c[_]) && !(R && R[_]) && !(A && A[_])) {
|
|
1296
|
+
var C = d(f, _);
|
|
1297
1297
|
try {
|
|
1298
|
-
u(p,
|
|
1298
|
+
u(p, _, C);
|
|
1299
1299
|
} catch {
|
|
1300
1300
|
}
|
|
1301
1301
|
}
|
|
@@ -1303,17 +1303,17 @@ function fn() {
|
|
|
1303
1303
|
}
|
|
1304
1304
|
return p;
|
|
1305
1305
|
}
|
|
1306
|
-
return
|
|
1306
|
+
return mt = y, mt;
|
|
1307
1307
|
}
|
|
1308
|
-
|
|
1309
|
-
var
|
|
1310
|
-
function
|
|
1308
|
+
mn();
|
|
1309
|
+
var pn = !0;
|
|
1310
|
+
function hn(e, t, n) {
|
|
1311
1311
|
var r = "";
|
|
1312
1312
|
return n.split(" ").forEach(function(o) {
|
|
1313
1313
|
e[o] !== void 0 ? t.push(e[o] + ";") : o && (r += o + " ");
|
|
1314
1314
|
}), r;
|
|
1315
1315
|
}
|
|
1316
|
-
var
|
|
1316
|
+
var nr = function(t, n, r) {
|
|
1317
1317
|
var o = t.key + "-" + n.name;
|
|
1318
1318
|
// we only need to add the styles to the registered cache if the
|
|
1319
1319
|
// class name could be used further down
|
|
@@ -1324,9 +1324,9 @@ var rr = function(t, n, r) {
|
|
|
1324
1324
|
// in node since emotion-server relies on whether a style is in
|
|
1325
1325
|
// the registered cache to know whether a style is global or not
|
|
1326
1326
|
// also, note that this check will be dead code eliminated in the browser
|
|
1327
|
-
|
|
1328
|
-
},
|
|
1329
|
-
|
|
1327
|
+
pn === !1) && t.registered[o] === void 0 && (t.registered[o] = n.styles);
|
|
1328
|
+
}, vn = function(t, n, r) {
|
|
1329
|
+
nr(t, n, r);
|
|
1330
1330
|
var o = t.key + "-" + n.name;
|
|
1331
1331
|
if (t.inserted[n.name] === void 0) {
|
|
1332
1332
|
var a = n;
|
|
@@ -1335,7 +1335,7 @@ var rr = function(t, n, r) {
|
|
|
1335
1335
|
while (a !== void 0);
|
|
1336
1336
|
}
|
|
1337
1337
|
};
|
|
1338
|
-
function
|
|
1338
|
+
function En(e) {
|
|
1339
1339
|
for (var t = 0, n, r = 0, o = e.length; o >= 4; ++r, o -= 4)
|
|
1340
1340
|
n = e.charCodeAt(r) & 255 | (e.charCodeAt(++r) & 255) << 8 | (e.charCodeAt(++r) & 255) << 16 | (e.charCodeAt(++r) & 255) << 24, n = /* Math.imul(k, m): */
|
|
1341
1341
|
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
|
|
@@ -1354,7 +1354,7 @@ function vn(e) {
|
|
|
1354
1354
|
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
1355
1355
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
1356
1356
|
}
|
|
1357
|
-
var
|
|
1357
|
+
var bn = {
|
|
1358
1358
|
animationIterationCount: 1,
|
|
1359
1359
|
aspectRatio: 1,
|
|
1360
1360
|
borderImageOutset: 1,
|
|
@@ -1403,18 +1403,18 @@ var En = {
|
|
|
1403
1403
|
strokeMiterlimit: 1,
|
|
1404
1404
|
strokeOpacity: 1,
|
|
1405
1405
|
strokeWidth: 1
|
|
1406
|
-
},
|
|
1406
|
+
}, gn = /[A-Z]|^ms/g, yn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, or = function(t) {
|
|
1407
1407
|
return t.charCodeAt(1) === 45;
|
|
1408
|
-
},
|
|
1408
|
+
}, Dt = function(t) {
|
|
1409
1409
|
return t != null && typeof t != "boolean";
|
|
1410
|
-
},
|
|
1411
|
-
return
|
|
1412
|
-
}),
|
|
1410
|
+
}, pt = /* @__PURE__ */ en(function(e) {
|
|
1411
|
+
return or(e) ? e : e.replace(gn, "-$&").toLowerCase();
|
|
1412
|
+
}), jt = function(t, n) {
|
|
1413
1413
|
switch (t) {
|
|
1414
1414
|
case "animation":
|
|
1415
1415
|
case "animationName":
|
|
1416
1416
|
if (typeof n == "string")
|
|
1417
|
-
return n.replace(
|
|
1417
|
+
return n.replace(yn, function(r, o, a) {
|
|
1418
1418
|
return re = {
|
|
1419
1419
|
name: o,
|
|
1420
1420
|
styles: a,
|
|
@@ -1422,9 +1422,9 @@ var En = {
|
|
|
1422
1422
|
}, o;
|
|
1423
1423
|
});
|
|
1424
1424
|
}
|
|
1425
|
-
return
|
|
1425
|
+
return bn[t] !== 1 && !or(t) && typeof n == "number" && n !== 0 ? n + "px" : n;
|
|
1426
1426
|
};
|
|
1427
|
-
function
|
|
1427
|
+
function Ie(e, t, n) {
|
|
1428
1428
|
if (n == null)
|
|
1429
1429
|
return "";
|
|
1430
1430
|
var r = n;
|
|
@@ -1454,12 +1454,12 @@ function $e(e, t, n) {
|
|
|
1454
1454
|
var u = a.styles + ";";
|
|
1455
1455
|
return u;
|
|
1456
1456
|
}
|
|
1457
|
-
return
|
|
1457
|
+
return Sn(e, t, n);
|
|
1458
1458
|
}
|
|
1459
1459
|
case "function": {
|
|
1460
1460
|
if (e !== void 0) {
|
|
1461
1461
|
var l = re, b = n(e);
|
|
1462
|
-
return re = l,
|
|
1462
|
+
return re = l, Ie(e, t, b);
|
|
1463
1463
|
}
|
|
1464
1464
|
break;
|
|
1465
1465
|
}
|
|
@@ -1467,26 +1467,26 @@ function $e(e, t, n) {
|
|
|
1467
1467
|
var d = n;
|
|
1468
1468
|
return d;
|
|
1469
1469
|
}
|
|
1470
|
-
function
|
|
1470
|
+
function Sn(e, t, n) {
|
|
1471
1471
|
var r = "";
|
|
1472
1472
|
if (Array.isArray(n))
|
|
1473
1473
|
for (var o = 0; o < n.length; o++)
|
|
1474
|
-
r +=
|
|
1474
|
+
r += Ie(e, t, n[o]) + ";";
|
|
1475
1475
|
else
|
|
1476
1476
|
for (var a in n) {
|
|
1477
1477
|
var s = n[a];
|
|
1478
1478
|
if (typeof s != "object") {
|
|
1479
1479
|
var u = s;
|
|
1480
|
-
|
|
1480
|
+
Dt(u) && (r += pt(a) + ":" + jt(a, u) + ";");
|
|
1481
1481
|
} else if (Array.isArray(s) && typeof s[0] == "string" && t == null)
|
|
1482
1482
|
for (var l = 0; l < s.length; l++)
|
|
1483
|
-
|
|
1483
|
+
Dt(s[l]) && (r += pt(a) + ":" + jt(a, s[l]) + ";");
|
|
1484
1484
|
else {
|
|
1485
|
-
var b =
|
|
1485
|
+
var b = Ie(e, t, s);
|
|
1486
1486
|
switch (a) {
|
|
1487
1487
|
case "animation":
|
|
1488
1488
|
case "animationName": {
|
|
1489
|
-
r +=
|
|
1489
|
+
r += pt(a) + ":" + b + ";";
|
|
1490
1490
|
break;
|
|
1491
1491
|
}
|
|
1492
1492
|
default:
|
|
@@ -1496,7 +1496,7 @@ function yn(e, t, n) {
|
|
|
1496
1496
|
}
|
|
1497
1497
|
return r;
|
|
1498
1498
|
}
|
|
1499
|
-
var
|
|
1499
|
+
var Yt = /label:\s*([^\s;{]+)\s*(;|$)/g, re;
|
|
1500
1500
|
function xn(e, t, n) {
|
|
1501
1501
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1502
1502
|
return e[0];
|
|
@@ -1504,94 +1504,94 @@ function xn(e, t, n) {
|
|
|
1504
1504
|
re = void 0;
|
|
1505
1505
|
var a = e[0];
|
|
1506
1506
|
if (a == null || a.raw === void 0)
|
|
1507
|
-
r = !1, o +=
|
|
1507
|
+
r = !1, o += Ie(n, t, a);
|
|
1508
1508
|
else {
|
|
1509
1509
|
var s = a;
|
|
1510
1510
|
o += s[0];
|
|
1511
1511
|
}
|
|
1512
1512
|
for (var u = 1; u < e.length; u++)
|
|
1513
|
-
if (o +=
|
|
1513
|
+
if (o += Ie(n, t, e[u]), r) {
|
|
1514
1514
|
var l = a;
|
|
1515
1515
|
o += l[u];
|
|
1516
1516
|
}
|
|
1517
|
-
|
|
1518
|
-
for (var b = "", d; (d =
|
|
1517
|
+
Yt.lastIndex = 0;
|
|
1518
|
+
for (var b = "", d; (d = Yt.exec(o)) !== null; )
|
|
1519
1519
|
b += "-" + d[1];
|
|
1520
|
-
var g =
|
|
1520
|
+
var g = En(o) + b;
|
|
1521
1521
|
return {
|
|
1522
1522
|
name: g,
|
|
1523
1523
|
styles: o,
|
|
1524
1524
|
next: re
|
|
1525
1525
|
};
|
|
1526
1526
|
}
|
|
1527
|
-
var
|
|
1527
|
+
var Tn = function(t) {
|
|
1528
1528
|
return t();
|
|
1529
|
-
},
|
|
1529
|
+
}, wn = ce.useInsertionEffect ? ce.useInsertionEffect : !1, An = wn || Tn, ir = /* @__PURE__ */ ce.createContext(
|
|
1530
1530
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1531
1531
|
// because this module is primarily intended for the browser and node
|
|
1532
1532
|
// but it's also required in react native and similar environments sometimes
|
|
1533
1533
|
// and we could have a special build just for that
|
|
1534
1534
|
// but this is much easier and the native packages
|
|
1535
1535
|
// might use a different theme context in the future anyway
|
|
1536
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */
|
|
1536
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ un({
|
|
1537
1537
|
key: "css"
|
|
1538
1538
|
}) : null
|
|
1539
1539
|
);
|
|
1540
|
-
|
|
1540
|
+
ir.Provider;
|
|
1541
1541
|
var Rn = function(t) {
|
|
1542
|
-
return /* @__PURE__ */
|
|
1543
|
-
var o =
|
|
1542
|
+
return /* @__PURE__ */ pr(function(n, r) {
|
|
1543
|
+
var o = Ue(ir);
|
|
1544
1544
|
return t(n, o, r);
|
|
1545
1545
|
});
|
|
1546
|
-
},
|
|
1546
|
+
}, _n = /* @__PURE__ */ ce.createContext({}), ut = {}.hasOwnProperty, Et = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", ar = function(t, n) {
|
|
1547
1547
|
var r = {};
|
|
1548
1548
|
for (var o in n)
|
|
1549
|
-
|
|
1549
|
+
ut.call(n, o) && (r[o] = n[o]);
|
|
1550
1550
|
return r[Et] = t, r;
|
|
1551
|
-
},
|
|
1551
|
+
}, Cn = function(t) {
|
|
1552
1552
|
var n = t.cache, r = t.serialized, o = t.isStringTag;
|
|
1553
|
-
return
|
|
1554
|
-
return
|
|
1553
|
+
return nr(n, r, o), An(function() {
|
|
1554
|
+
return vn(n, r, o);
|
|
1555
1555
|
}), null;
|
|
1556
|
-
},
|
|
1556
|
+
}, Pn = /* @__PURE__ */ Rn(function(e, t, n) {
|
|
1557
1557
|
var r = e.css;
|
|
1558
1558
|
typeof r == "string" && t.registered[r] !== void 0 && (r = t.registered[r]);
|
|
1559
1559
|
var o = e[Et], a = [r], s = "";
|
|
1560
|
-
typeof e.className == "string" ? s =
|
|
1561
|
-
var u = xn(a, void 0, ce.useContext(
|
|
1560
|
+
typeof e.className == "string" ? s = hn(t.registered, a, e.className) : e.className != null && (s = e.className + " ");
|
|
1561
|
+
var u = xn(a, void 0, ce.useContext(_n));
|
|
1562
1562
|
s += t.key + "-" + u.name;
|
|
1563
1563
|
var l = {};
|
|
1564
1564
|
for (var b in e)
|
|
1565
|
-
|
|
1566
|
-
return l.className = s, n && (l.ref = n), /* @__PURE__ */ ce.createElement(ce.Fragment, null, /* @__PURE__ */ ce.createElement(
|
|
1565
|
+
ut.call(e, b) && b !== "css" && b !== Et && (l[b] = e[b]);
|
|
1566
|
+
return l.className = s, n && (l.ref = n), /* @__PURE__ */ ce.createElement(ce.Fragment, null, /* @__PURE__ */ ce.createElement(Cn, {
|
|
1567
1567
|
cache: t,
|
|
1568
1568
|
serialized: u,
|
|
1569
1569
|
isStringTag: typeof o == "string"
|
|
1570
1570
|
}), /* @__PURE__ */ ce.createElement(o, l));
|
|
1571
|
-
}),
|
|
1572
|
-
return
|
|
1571
|
+
}), sr = Pn, cr = ke.Fragment, v = function(t, n, r) {
|
|
1572
|
+
return ut.call(n, "css") ? ke.jsx(sr, ar(t, n), r) : ke.jsx(t, n, r);
|
|
1573
1573
|
}, I = function(t, n, r) {
|
|
1574
|
-
return
|
|
1574
|
+
return ut.call(n, "css") ? ke.jsxs(sr, ar(t, n), r) : ke.jsxs(t, n, r);
|
|
1575
1575
|
};
|
|
1576
|
-
const
|
|
1576
|
+
const On = qt(({ sendBack: e, receive: t, input: n }) => {
|
|
1577
1577
|
const { videoElement: r } = n;
|
|
1578
|
-
t((
|
|
1579
|
-
|
|
1578
|
+
t((S) => {
|
|
1579
|
+
S.type === "PLAY" && (r.play(), o()), S.type === "PAUSE" && (r.pause(), o()), S.type === "SET_TIME" && (r.currentTime = S.value, u()), S.type === "SET_VOLUME" && (r.volume = S.volume, r.muted = S.muted, l()), S.type === "SET_PLAYBACK_RATE" && (r.playbackRate = S.playbackRate, b());
|
|
1580
1580
|
});
|
|
1581
1581
|
const o = () => e({ type: "PLAYING" }), a = () => e({ type: "PAUSED" }), s = () => e({ type: "ENDED" }), u = () => e({ type: "TIME_UPDATE", currentTime: r.currentTime }), l = () => e({ type: "VOLUME_UPDATE", muted: r.muted, volume: r.volume }), b = () => e({ type: "PLAYBACK_RATE_UPDATE", playbackRate: r.playbackRate }), d = () => e({ type: "SEEKING", currentTime: r.currentTime }), g = () => e({ type: "DURATION_UPDATE", duration: r.duration });
|
|
1582
1582
|
return r.addEventListener("play", o), r.addEventListener("pause", a), r.addEventListener("ended", s), r.addEventListener("timeupdate", u), r.addEventListener("volumechange", l), r.addEventListener("ratechange", b), r.addEventListener("seeking", d), r.addEventListener("durationchange", g), () => {
|
|
1583
1583
|
r.removeEventListener("play", o), r.removeEventListener("pause", a), r.removeEventListener("ended", s), r.removeEventListener("timeupdate", u), r.removeEventListener("volumechange", l), r.removeEventListener("ratechange", b), r.removeEventListener("seeking", d), r.removeEventListener("durationchange", g);
|
|
1584
1584
|
};
|
|
1585
|
-
}),
|
|
1585
|
+
}), lt = (e) => qt((...t) => {
|
|
1586
1586
|
const n = e(...t);
|
|
1587
1587
|
return () => {
|
|
1588
1588
|
n.then((r) => r?.());
|
|
1589
1589
|
};
|
|
1590
|
-
}),
|
|
1590
|
+
}), zt = (e) => Array(e.buffered.length).fill(void 0).map((t, n) => ({
|
|
1591
1591
|
index: n,
|
|
1592
1592
|
start: e.buffered.start(n),
|
|
1593
1593
|
end: e.buffered.end(n)
|
|
1594
|
-
})),
|
|
1594
|
+
})), Ft = (e, t, n) => {
|
|
1595
1595
|
const r = (u) => {
|
|
1596
1596
|
t(u), s();
|
|
1597
1597
|
}, o = (u) => {
|
|
@@ -1602,39 +1602,39 @@ const Pn = Gt(({ sendBack: e, receive: t, input: n }) => {
|
|
|
1602
1602
|
e.removeEventListener("updateend", r), e.removeEventListener("abort", o), e.removeEventListener("error", a);
|
|
1603
1603
|
};
|
|
1604
1604
|
e.addEventListener("updateend", r, { once: !0 }), e.addEventListener("abort", o, { once: !0 }), e.addEventListener("error", a, { once: !0 });
|
|
1605
|
-
},
|
|
1606
|
-
const t = new
|
|
1605
|
+
}, Nn = (e) => {
|
|
1606
|
+
const t = new Xt({ concurrency: 1 });
|
|
1607
1607
|
return {
|
|
1608
1608
|
appendBuffer: (a) => t.add(
|
|
1609
1609
|
() => new Promise((s, u) => {
|
|
1610
|
-
|
|
1610
|
+
Ft(e, s, u), e.appendBuffer(a);
|
|
1611
1611
|
})
|
|
1612
1612
|
),
|
|
1613
1613
|
unbufferRange: async (a, s) => t.add(
|
|
1614
1614
|
() => new Promise((u, l) => {
|
|
1615
|
-
|
|
1615
|
+
Ft(e, u, l), e.remove(a, s);
|
|
1616
1616
|
})
|
|
1617
1617
|
),
|
|
1618
1618
|
updateTimestampOffset: (a) => t.add(() => {
|
|
1619
1619
|
e.timestampOffset = a;
|
|
1620
1620
|
})
|
|
1621
1621
|
};
|
|
1622
|
-
},
|
|
1622
|
+
}, Mn = -20, kn = 60, Ln = 30, $n = lt(async ({ sendBack: e, receive: t, input: n, self: r, emit: o }) => {
|
|
1623
1623
|
const { videoElement: a, preEvictionTime: s, postEvictionTime: u, bufferTargetTime: l } = n, b = () => console.error(a.error);
|
|
1624
1624
|
a.addEventListener("error", b);
|
|
1625
1625
|
const d = new MediaSource(), g = URL.createObjectURL(d);
|
|
1626
1626
|
a.src = g;
|
|
1627
|
-
const
|
|
1627
|
+
const S = () => a.currentTime + (s ?? Mn), y = () => a.currentTime + (u ?? kn), p = () => a.currentTime + (l ?? Ln);
|
|
1628
1628
|
let f;
|
|
1629
1629
|
const c = await new Promise(
|
|
1630
1630
|
(D) => d.addEventListener(
|
|
1631
1631
|
"sourceopen",
|
|
1632
1632
|
() => {
|
|
1633
|
-
let
|
|
1633
|
+
let K = !1;
|
|
1634
1634
|
t((F) => {
|
|
1635
|
-
if (!
|
|
1635
|
+
if (!K && F.type === "METADATA") {
|
|
1636
1636
|
const ee = d.addSourceBuffer(`video/mp4; codecs="${F.info.input.videoMimeType},${F.info.input.audioMimeType}"`);
|
|
1637
|
-
ee.mode = "segments", d.duration = F.info.input.duration, f = F.data,
|
|
1637
|
+
ee.mode = "segments", d.duration = F.info.input.duration, f = F.data, K = !0, D(ee);
|
|
1638
1638
|
}
|
|
1639
1639
|
});
|
|
1640
1640
|
},
|
|
@@ -1642,29 +1642,29 @@ const Pn = Gt(({ sendBack: e, receive: t, input: n }) => {
|
|
|
1642
1642
|
)
|
|
1643
1643
|
);
|
|
1644
1644
|
if (!f) throw new Error("No header buffer");
|
|
1645
|
-
const { appendBuffer:
|
|
1646
|
-
|
|
1647
|
-
D.type === "DATA" ? await
|
|
1645
|
+
const { appendBuffer: E, unbufferRange: h, updateTimestampOffset: A } = Nn(c);
|
|
1646
|
+
E(f), t(async (D) => {
|
|
1647
|
+
D.type === "DATA" ? await E(D.data) : D.type === "TIMESTAMP_OFFSET" && await A(D.timestampOffset);
|
|
1648
1648
|
});
|
|
1649
|
-
const
|
|
1650
|
-
const D =
|
|
1649
|
+
const R = async () => {
|
|
1650
|
+
const D = S(), K = y(), F = zt(c);
|
|
1651
1651
|
for (const { start: ee, end: ue } of F)
|
|
1652
|
-
ee < D && await
|
|
1652
|
+
ee < D && await h(
|
|
1653
1653
|
ee,
|
|
1654
1654
|
D
|
|
1655
|
-
), ue >
|
|
1656
|
-
|
|
1655
|
+
), ue > K && await h(
|
|
1656
|
+
K,
|
|
1657
1657
|
ue
|
|
1658
1658
|
);
|
|
1659
1659
|
}, m = setInterval(async () => {
|
|
1660
|
-
await
|
|
1661
|
-
const D =
|
|
1660
|
+
await R();
|
|
1661
|
+
const D = zt(c);
|
|
1662
1662
|
Math.max(...D.map(({ end: F }) => F)) < p() && e({ type: "NEED_DATA" });
|
|
1663
|
-
}, 100),
|
|
1664
|
-
return d.addEventListener("sourceopen",
|
|
1665
|
-
URL.revokeObjectURL(g), clearInterval(m), a.removeEventListener("error", b), d.removeEventListener("sourceopen",
|
|
1663
|
+
}, 100), _ = () => e({ type: "SOURCE_OPEN" }), C = () => e({ type: "SOURCE_ENDED" }), W = () => e({ type: "SOURCE_ERROR" });
|
|
1664
|
+
return d.addEventListener("sourceopen", _), d.addEventListener("sourceended", C), d.addEventListener("error", W), () => {
|
|
1665
|
+
URL.revokeObjectURL(g), clearInterval(m), a.removeEventListener("error", b), d.removeEventListener("sourceopen", _), d.removeEventListener("sourceended", C), d.removeEventListener("error", W);
|
|
1666
1666
|
};
|
|
1667
|
-
}),
|
|
1667
|
+
}), In = (e, t) => {
|
|
1668
1668
|
let n, r, o;
|
|
1669
1669
|
const a = (s, u, l) => (b) => {
|
|
1670
1670
|
const d = performance.now();
|
|
@@ -1677,10 +1677,10 @@ const Pn = Gt(({ sendBack: e, receive: t, input: n }) => {
|
|
|
1677
1677
|
o = void 0, g.then(u).catch((p) => {
|
|
1678
1678
|
console.error(p), l(p);
|
|
1679
1679
|
});
|
|
1680
|
-
let
|
|
1680
|
+
let S, y;
|
|
1681
1681
|
r = new Promise((p, f) => {
|
|
1682
|
-
|
|
1683
|
-
}), n = g.then(a(d,
|
|
1682
|
+
S = p, y = f;
|
|
1683
|
+
}), n = g.then(a(d, S, y)).catch((p) => (console.error(p), a(s, S, y)(p)));
|
|
1684
1684
|
}, e - (d - s)), b;
|
|
1685
1685
|
};
|
|
1686
1686
|
return (...s) => {
|
|
@@ -1690,26 +1690,26 @@ const Pn = Gt(({ sendBack: e, receive: t, input: n }) => {
|
|
|
1690
1690
|
const u = performance.now(), l = (async () => t(...s))();
|
|
1691
1691
|
o = void 0;
|
|
1692
1692
|
let b, d;
|
|
1693
|
-
return r = new Promise((g,
|
|
1694
|
-
b = g, d =
|
|
1693
|
+
return r = new Promise((g, S) => {
|
|
1694
|
+
b = g, d = S;
|
|
1695
1695
|
}), n = l.then(a(u, b, d)).catch((g) => (console.error(g), a(u, b, d)(g))), l;
|
|
1696
1696
|
}
|
|
1697
1697
|
};
|
|
1698
|
-
},
|
|
1699
|
-
const { remuxerOptions: a } = n, { publicPath: s, workerUrl: u, bufferSize: l, length: b, read: d } = a, g = await
|
|
1698
|
+
}, Un = lt(async ({ sendBack: e, receive: t, input: n, self: r, emit: o }) => {
|
|
1699
|
+
const { remuxerOptions: a } = n, { publicPath: s, workerUrl: u, bufferSize: l, length: b, read: d } = a, g = await Ht({
|
|
1700
1700
|
publicPath: s,
|
|
1701
1701
|
workerUrl: u,
|
|
1702
1702
|
bufferSize: l,
|
|
1703
1703
|
length: b,
|
|
1704
1704
|
read: d
|
|
1705
|
-
}),
|
|
1706
|
-
|
|
1705
|
+
}), S = await g.init();
|
|
1706
|
+
S.attachments?.length && e({ type: "NEW_ATTACHMENTS", attachments: S.attachments }), S.subtitles?.length && e({ type: "NEW_SUBTITLE_FRAGMENTS", subtitles: S.subtitles }), e({ type: "METADATA", ...S });
|
|
1707
1707
|
let y = !1, p = [];
|
|
1708
|
-
const f =
|
|
1708
|
+
const f = In(100, async () => {
|
|
1709
1709
|
if (!(p.length || y))
|
|
1710
1710
|
try {
|
|
1711
|
-
const { data: c, subtitles:
|
|
1712
|
-
|
|
1711
|
+
const { data: c, subtitles: E, finished: h } = await g.read();
|
|
1712
|
+
h && (y = !0), E.length && e({ type: "NEW_SUBTITLE_FRAGMENTS", subtitles: E }), e({ type: "DATA", data: c });
|
|
1713
1713
|
} catch (c) {
|
|
1714
1714
|
if (c.message === "Cancelled") return;
|
|
1715
1715
|
console.error(c);
|
|
@@ -1720,22 +1720,22 @@ const Pn = Gt(({ sendBack: e, receive: t, input: n }) => {
|
|
|
1720
1720
|
f();
|
|
1721
1721
|
else if (c.type === "SEEKING") {
|
|
1722
1722
|
y = !1;
|
|
1723
|
-
const { currentTime:
|
|
1724
|
-
p = [...p,
|
|
1723
|
+
const { currentTime: E } = c, h = { currentTime: E };
|
|
1724
|
+
p = [...p, h];
|
|
1725
1725
|
try {
|
|
1726
|
-
const { data:
|
|
1727
|
-
p = p.filter((m) => m !==
|
|
1726
|
+
const { data: A, pts: R } = await g.seek(E).finally(() => {
|
|
1727
|
+
p = p.filter((m) => m !== h);
|
|
1728
1728
|
});
|
|
1729
|
-
e({ type: "TIMESTAMP_OFFSET", timestampOffset:
|
|
1730
|
-
} catch (
|
|
1731
|
-
if (
|
|
1732
|
-
console.error(
|
|
1729
|
+
e({ type: "TIMESTAMP_OFFSET", timestampOffset: R }), e({ type: "DATA", data: A });
|
|
1730
|
+
} catch (A) {
|
|
1731
|
+
if (A.message === "Cancelled") return;
|
|
1732
|
+
console.error(A);
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
1735
|
}), () => {
|
|
1736
1736
|
g.destroy();
|
|
1737
1737
|
};
|
|
1738
|
-
}),
|
|
1738
|
+
}), Vt = (e) => new Date(e).toISOString().slice(11, 22), Wt = (e, t) => {
|
|
1739
1739
|
e.createStyle({
|
|
1740
1740
|
...t,
|
|
1741
1741
|
SecondaryColour: Number(t.SecondaryColour),
|
|
@@ -1764,7 +1764,7 @@ const Pn = Gt(({ sendBack: e, receive: t, input: n }) => {
|
|
|
1764
1764
|
MarginV: Number(t.MarginV),
|
|
1765
1765
|
Encoding: Number(t.Encoding)
|
|
1766
1766
|
});
|
|
1767
|
-
},
|
|
1767
|
+
}, Dn = (e) => {
|
|
1768
1768
|
const t = e.content.match(/\r\n\[Events\]\r\nFormat: (.*)/)?.[0], n = t?.trim().split(`
|
|
1769
1769
|
`)[1];
|
|
1770
1770
|
if (!t || !n)
|
|
@@ -1775,10 +1775,10 @@ const Pn = Gt(({ sendBack: e, receive: t, input: n }) => {
|
|
|
1775
1775
|
content: e.content,
|
|
1776
1776
|
eventsContent: t,
|
|
1777
1777
|
dialogueFormatContent: n,
|
|
1778
|
-
parsed:
|
|
1778
|
+
parsed: Me(e.content)
|
|
1779
1779
|
};
|
|
1780
|
-
},
|
|
1781
|
-
const [n, r] = t.content.split(","), o = Number(n), a =
|
|
1780
|
+
}, jn = (e, t) => {
|
|
1781
|
+
const [n, r] = t.content.split(","), o = Number(n), a = Vt(t.start), s = Vt(t.end), u = t.content.replace(`${o},${r},`, ""), l = `Dialogue: ${r},${a},${s},${u}`, d = Me(`${e.eventsContent}\r
|
|
1782
1782
|
${l}`).events.dialogue[0];
|
|
1783
1783
|
if (!d)
|
|
1784
1784
|
throw new Error("dialogueEvent is undefined");
|
|
@@ -1787,7 +1787,7 @@ ${l}`).events.dialogue[0];
|
|
|
1787
1787
|
streamIndex: t.streamIndex,
|
|
1788
1788
|
index: o,
|
|
1789
1789
|
content: l,
|
|
1790
|
-
parsed:
|
|
1790
|
+
parsed: Me(`${e.eventsContent}\r
|
|
1791
1791
|
${l}`),
|
|
1792
1792
|
assEvent: {
|
|
1793
1793
|
...d,
|
|
@@ -1800,62 +1800,66 @@ ${l}`),
|
|
|
1800
1800
|
_index: o
|
|
1801
1801
|
}
|
|
1802
1802
|
};
|
|
1803
|
-
},
|
|
1803
|
+
}, Yn = lt(async ({ sendBack: e, receive: t, input: n, self: r, emit: o }) => {
|
|
1804
1804
|
const { publicPath: a, subtitlesRendererOptions: s, videoElement: u, canvasElement: l } = n;
|
|
1805
1805
|
let b = [], d;
|
|
1806
1806
|
const g = /* @__PURE__ */ new Map();
|
|
1807
|
-
let
|
|
1807
|
+
let S = [], y;
|
|
1808
1808
|
return t((p) => {
|
|
1809
1809
|
if (p.type === "SELECT_SUBTITLE_STREAM") {
|
|
1810
1810
|
if (y = p.streamIndex, e({ type: "SELECTED_SUBTITLE_STREAM_UPDATED", streamIndex: p.streamIndex }), !d) return;
|
|
1811
|
-
d.freeTrack(),
|
|
1811
|
+
d.freeTrack(), S = [];
|
|
1812
1812
|
const f = g.get(y);
|
|
1813
1813
|
if (!f)
|
|
1814
1814
|
throw new Error("newSubtitleStreams is undefined");
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1815
|
+
const c = Me(f.header.content), E = { ...c, info: { ...c.info, ScaledBorderAndShadow: "no" } };
|
|
1816
|
+
d.setTrack(_t(E)), d.setCurrentTime(u.paused, u.currentTime, u.playbackRate);
|
|
1817
|
+
for (const h in f.header.parsed.styles) {
|
|
1818
|
+
const A = f.header.parsed.styles.style[Number(h)];
|
|
1819
|
+
A && Wt(d, A);
|
|
1819
1820
|
}
|
|
1820
|
-
for (const
|
|
1821
|
-
|
|
1822
|
-
(
|
|
1823
|
-
) || y !==
|
|
1821
|
+
for (const h of f?.dialogues ?? [])
|
|
1822
|
+
S.filter((R) => R.type === "dialogue").find(
|
|
1823
|
+
(R) => R.streamIndex === h.streamIndex && R.index === h.index
|
|
1824
|
+
) || y !== h.streamIndex || (d?.createEvent(h.assEvent), S.push(h));
|
|
1824
1825
|
}
|
|
1825
1826
|
if (p.type === "NEW_SUBTITLE_FRAGMENTS") {
|
|
1826
1827
|
const f = p.subtitles.map((c) => {
|
|
1827
1828
|
if (c.type === "header") {
|
|
1828
|
-
const
|
|
1829
|
-
return g.set(c.streamIndex, { header:
|
|
1829
|
+
const E = Dn(c);
|
|
1830
|
+
return g.set(c.streamIndex, { header: E, dialogues: [] }), y === void 0 && (y = c.streamIndex, e({ type: "SELECTED_SUBTITLE_STREAM_UPDATED", streamIndex: c.streamIndex })), e({ type: "SUBTITLE_STREAMS_UPDATED", subtitlesStreams: [...g.values()] }), E;
|
|
1830
1831
|
} else {
|
|
1831
|
-
const
|
|
1832
|
-
if (!
|
|
1832
|
+
const E = g.get(c.streamIndex)?.header;
|
|
1833
|
+
if (!E)
|
|
1833
1834
|
throw new Error("SubtitleStream or its header is undefined");
|
|
1834
|
-
const
|
|
1835
|
-
return g.get(c.streamIndex)?.dialogues.push(
|
|
1835
|
+
const h = jn(E, c);
|
|
1836
|
+
return g.get(c.streamIndex)?.dialogues.push(h), e({ type: "SUBTITLE_STREAMS_UPDATED", subtitlesStreams: [...g.values()] }), h;
|
|
1836
1837
|
}
|
|
1837
1838
|
});
|
|
1838
1839
|
for (const c of f)
|
|
1839
1840
|
if (c.type === "dialogue") {
|
|
1840
|
-
if (
|
|
1841
|
-
(
|
|
1841
|
+
if (S.filter((h) => h.type === "dialogue").find(
|
|
1842
|
+
(h) => h.streamIndex === c.streamIndex && h.index === c.index
|
|
1842
1843
|
) || y !== c.streamIndex)
|
|
1843
1844
|
continue;
|
|
1844
|
-
d?.createEvent(c.assEvent),
|
|
1845
|
+
d?.createEvent(c.assEvent), S.push(c);
|
|
1845
1846
|
} else if (c.type === "header") {
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1847
|
+
if (!d) {
|
|
1848
|
+
const E = Me(c.content), h = { ...E, info: { ...E.info, ScaledBorderAndShadow: "no" } };
|
|
1849
|
+
d = new gr({
|
|
1850
|
+
video: u,
|
|
1851
|
+
canvas: l,
|
|
1852
|
+
subContent: _t(h),
|
|
1853
|
+
workerUrl: s.workerUrl,
|
|
1854
|
+
modernWasmUrl: s.wasmUrl,
|
|
1855
|
+
fonts: b.filter(Boolean).map(([A, R]) => R),
|
|
1856
|
+
availableFonts: { ...Object.fromEntries(b), "liberation sans": `${a}default.woff2` }
|
|
1857
|
+
// fallbackFont: 'liberation sans',
|
|
1858
|
+
});
|
|
1859
|
+
}
|
|
1860
|
+
for (const E in c.parsed.styles) {
|
|
1861
|
+
const h = c.parsed.styles.style[Number(E)];
|
|
1862
|
+
h && Wt(d, h);
|
|
1859
1863
|
}
|
|
1860
1864
|
} else
|
|
1861
1865
|
throw new Error("Unknown subtitlePart type");
|
|
@@ -1867,63 +1871,63 @@ ${l}`),
|
|
|
1867
1871
|
}), () => {
|
|
1868
1872
|
d?.destroy();
|
|
1869
1873
|
};
|
|
1870
|
-
}),
|
|
1874
|
+
}), zn = lt(async ({ sendBack: e, receive: t, input: n, self: r, emit: o }) => {
|
|
1871
1875
|
const { remuxerOptions: a } = n, { publicPath: s, workerUrl: u, bufferSize: l, length: b, read: d } = a;
|
|
1872
1876
|
let g;
|
|
1873
|
-
const
|
|
1874
|
-
g =
|
|
1877
|
+
const S = new Promise((h) => {
|
|
1878
|
+
g = h;
|
|
1875
1879
|
});
|
|
1876
|
-
t(async (
|
|
1877
|
-
await
|
|
1878
|
-
const
|
|
1879
|
-
if (
|
|
1880
|
+
t(async (h) => {
|
|
1881
|
+
await S, h.type === "DOWNLOADED_RANGES_UPDATED" && p.indexes.reduce((m, _) => {
|
|
1882
|
+
const C = m.at(-1);
|
|
1883
|
+
if (C && _.timestamp - C.timestamp < 5)
|
|
1880
1884
|
return m;
|
|
1881
1885
|
{
|
|
1882
|
-
const W = p.indexes.slice(
|
|
1883
|
-
return W ? [...m, { ...
|
|
1886
|
+
const W = p.indexes.slice(_.index + 1).find((D) => D.timestamp > _.timestamp + 5);
|
|
1887
|
+
return W ? [...m, { ..._, duration: W.timestamp - _.timestamp }] : [...m, _];
|
|
1884
1888
|
}
|
|
1885
1889
|
}, []).filter((m) => {
|
|
1886
|
-
const
|
|
1887
|
-
return
|
|
1888
|
-
({ startByteOffset:
|
|
1890
|
+
const _ = p.indexes.at(m.index + 1), C = _ ? _.pos : a.length, W = m.pos;
|
|
1891
|
+
return h.downloadedRanges.some(
|
|
1892
|
+
({ startByteOffset: K, endByteOffset: F }) => K <= W && C <= F
|
|
1889
1893
|
);
|
|
1890
|
-
}).sort((m,
|
|
1894
|
+
}).sort((m, _) => m.timestamp - _.timestamp).forEach((m) => E(m));
|
|
1891
1895
|
});
|
|
1892
|
-
const y = await
|
|
1896
|
+
const y = await Ht({
|
|
1893
1897
|
publicPath: s,
|
|
1894
1898
|
workerUrl: u,
|
|
1895
1899
|
bufferSize: l,
|
|
1896
1900
|
length: b,
|
|
1897
1901
|
read: d
|
|
1898
|
-
}), p = await y.init(), f = new
|
|
1902
|
+
}), p = await y.init(), f = new Xt({ concurrency: 1 });
|
|
1899
1903
|
let c = [];
|
|
1900
|
-
const
|
|
1901
|
-
if (c.find((D) => D.index.index ===
|
|
1902
|
-
const
|
|
1903
|
-
blob:
|
|
1904
|
+
const E = (h) => f.add(async () => {
|
|
1905
|
+
if (c.find((D) => D.index.index === h.index)) return;
|
|
1906
|
+
const A = await y.readKeyframe(h.timestamp), R = new Blob([A], { type: "image/png" }), m = URL.createObjectURL(R), _ = p.indexes.at(h.index + 1), C = _ ? _.timestamp - h.timestamp : p.info.input.duration - h.timestamp, W = {
|
|
1907
|
+
blob: R,
|
|
1904
1908
|
url: m,
|
|
1905
|
-
timestamp:
|
|
1906
|
-
duration:
|
|
1907
|
-
index:
|
|
1909
|
+
timestamp: h.timestamp,
|
|
1910
|
+
duration: h.duration ?? C,
|
|
1911
|
+
index: h
|
|
1908
1912
|
};
|
|
1909
1913
|
c.push(W), e({ type: "NEW_THUMBNAIL", thumbnail: W });
|
|
1910
1914
|
});
|
|
1911
1915
|
return g(), () => {
|
|
1912
1916
|
y.destroy();
|
|
1913
1917
|
};
|
|
1914
|
-
}),
|
|
1918
|
+
}), Fn = Er({
|
|
1915
1919
|
types: {},
|
|
1916
1920
|
actions: {
|
|
1917
|
-
isReady:
|
|
1921
|
+
isReady: br(({ context: e, enqueue: t }) => {
|
|
1918
1922
|
e.videoElement && e.canvasElement && e.remuxerOptions && e.subtitlesRendererOptions && e.mediaSourceOptions && t.raise({ type: "IS_READY" });
|
|
1919
1923
|
})
|
|
1920
1924
|
},
|
|
1921
1925
|
actors: {
|
|
1922
|
-
mediaLogic:
|
|
1923
|
-
mediaSourceLogic:
|
|
1924
|
-
dataSourceLogic:
|
|
1925
|
-
thumbnailsLogic:
|
|
1926
|
-
subtitlesLogic:
|
|
1926
|
+
mediaLogic: On,
|
|
1927
|
+
mediaSourceLogic: $n,
|
|
1928
|
+
dataSourceLogic: Un,
|
|
1929
|
+
thumbnailsLogic: zn,
|
|
1930
|
+
subtitlesLogic: Yn
|
|
1927
1931
|
}
|
|
1928
1932
|
}).createMachine({
|
|
1929
1933
|
context: {
|
|
@@ -2087,7 +2091,7 @@ ${l}`),
|
|
|
2087
2091
|
},
|
|
2088
2092
|
DESTROYED: {}
|
|
2089
2093
|
}
|
|
2090
|
-
}), $ =
|
|
2094
|
+
}), $ = vr(Fn), je = hr({}), Bt = (e, t) => {
|
|
2091
2095
|
const [n, r] = Z(() => localStorage.getItem(e) ?? t), o = (a) => {
|
|
2092
2096
|
localStorage.setItem(e, a), r(a), window.dispatchEvent(new Event("storage"));
|
|
2093
2097
|
};
|
|
@@ -2100,18 +2104,18 @@ ${l}`),
|
|
|
2100
2104
|
window.removeEventListener("storage", a);
|
|
2101
2105
|
};
|
|
2102
2106
|
}, [e]), [n, o];
|
|
2103
|
-
},
|
|
2107
|
+
}, nt = (e, t, n, r) => {
|
|
2104
2108
|
if (!e) throw new Error("Media actor not found");
|
|
2105
2109
|
if (!n) throw new Error("Duration not found");
|
|
2106
2110
|
n === r ? (e.send({ type: "SET_TIME", value: 0 }), e.send({ type: "PLAY" })) : t ? e.send({ type: "PLAY" }) : e.send({ type: "PAUSE" });
|
|
2107
|
-
},
|
|
2111
|
+
}, Vn = Q`
|
|
2108
2112
|
top: unset !important;
|
|
2109
2113
|
left: unset !important;
|
|
2110
2114
|
width: 100%;
|
|
2111
2115
|
height: 100%;
|
|
2112
2116
|
margin: auto;
|
|
2113
|
-
`,
|
|
2114
|
-
const e = $.useActorRef(), [t, n] = Z(), r =
|
|
2117
|
+
`, Wn = () => {
|
|
2118
|
+
const e = $.useActorRef(), [t, n] = Z(), r = ot((o) => {
|
|
2115
2119
|
n(o);
|
|
2116
2120
|
}, []);
|
|
2117
2121
|
return z(() => {
|
|
@@ -2119,8 +2123,14 @@ ${l}`),
|
|
|
2119
2123
|
type: "SET_CANVAS_ELEMENT",
|
|
2120
2124
|
canvasElement: t
|
|
2121
2125
|
});
|
|
2122
|
-
}, [t]), /* @__PURE__ */
|
|
2123
|
-
},
|
|
2126
|
+
}, [t]), /* @__PURE__ */ v(cr, { children: /* @__PURE__ */ v("canvas", { ref: r, css: Vn }) });
|
|
2127
|
+
}, ur = 1e-4, bt = 1, lr = 2, dr = (e) => {
|
|
2128
|
+
const t = Math.max(ur, Math.min(bt, e));
|
|
2129
|
+
return Math.pow(t, lr);
|
|
2130
|
+
}, xt = (e) => {
|
|
2131
|
+
const t = Math.max(ur, Math.min(bt, e));
|
|
2132
|
+
return Math.pow(t, bt / lr);
|
|
2133
|
+
}, Se = {
|
|
2124
2134
|
bMedium: {
|
|
2125
2135
|
bold: `
|
|
2126
2136
|
font-weight: 600;
|
|
@@ -2152,7 +2162,7 @@ ${l}`),
|
|
|
2152
2162
|
}
|
|
2153
2163
|
`
|
|
2154
2164
|
}
|
|
2155
|
-
},
|
|
2165
|
+
}, Bn = (e) => Q`
|
|
2156
2166
|
display: flex;
|
|
2157
2167
|
justify-content: flex-end;
|
|
2158
2168
|
|
|
@@ -2162,7 +2172,7 @@ ${l}`),
|
|
|
2162
2172
|
z-index: 3;
|
|
2163
2173
|
|
|
2164
2174
|
* {
|
|
2165
|
-
${
|
|
2175
|
+
${Se.bSmall.regular}
|
|
2166
2176
|
}
|
|
2167
2177
|
|
|
2168
2178
|
${e === "sm" && Q`
|
|
@@ -2185,8 +2195,8 @@ ${l}`),
|
|
|
2185
2195
|
disabled: u = !1,
|
|
2186
2196
|
size: l = "md"
|
|
2187
2197
|
/* md */
|
|
2188
|
-
}) => /* @__PURE__ */ I(
|
|
2189
|
-
/* @__PURE__ */
|
|
2198
|
+
}) => /* @__PURE__ */ I(cr, { children: [
|
|
2199
|
+
/* @__PURE__ */ v(
|
|
2190
2200
|
"div",
|
|
2191
2201
|
{
|
|
2192
2202
|
"data-tooltip-id": e,
|
|
@@ -2198,16 +2208,16 @@ ${l}`),
|
|
|
2198
2208
|
children: n
|
|
2199
2209
|
}
|
|
2200
2210
|
),
|
|
2201
|
-
!u && /* @__PURE__ */
|
|
2202
|
-
|
|
2211
|
+
!u && /* @__PURE__ */ v(
|
|
2212
|
+
Pr,
|
|
2203
2213
|
{
|
|
2204
|
-
css:
|
|
2214
|
+
css: Bn(l),
|
|
2205
2215
|
id: e,
|
|
2206
2216
|
noArrow: !0,
|
|
2207
2217
|
children: t
|
|
2208
2218
|
}
|
|
2209
2219
|
)
|
|
2210
|
-
] }),
|
|
2220
|
+
] }), Gn = ({ ref: e, defaultValue: t }) => {
|
|
2211
2221
|
const [n, r] = Z(t), [o, a] = Z(!1), s = (u) => {
|
|
2212
2222
|
if (a(!0), !e.current) return;
|
|
2213
2223
|
const { clientX: l } = u, { left: b, right: d } = e.current.getBoundingClientRect();
|
|
@@ -2217,8 +2227,8 @@ ${l}`),
|
|
|
2217
2227
|
if (!o) return;
|
|
2218
2228
|
const u = () => a(!1), l = (b) => {
|
|
2219
2229
|
if (!e.current) return;
|
|
2220
|
-
const { clientX: d } = b, { left: g, right:
|
|
2221
|
-
r(Math.min(Math.max((d - g) / (
|
|
2230
|
+
const { clientX: d } = b, { left: g, right: S } = e.current.getBoundingClientRect();
|
|
2231
|
+
r(Math.min(Math.max((d - g) / (S - g), 0), 1));
|
|
2222
2232
|
};
|
|
2223
2233
|
return document.addEventListener("mousemove", l), document.addEventListener("mouseup", u), () => {
|
|
2224
2234
|
document.removeEventListener("mousemove", l), document.removeEventListener("mouseup", u);
|
|
@@ -2229,7 +2239,7 @@ ${l}`),
|
|
|
2229
2239
|
scrub: s,
|
|
2230
2240
|
setValue: r
|
|
2231
2241
|
};
|
|
2232
|
-
},
|
|
2242
|
+
}, qn = Q`
|
|
2233
2243
|
position: relative;
|
|
2234
2244
|
height: .4rem;
|
|
2235
2245
|
|
|
@@ -2270,7 +2280,7 @@ ${l}`),
|
|
|
2270
2280
|
justify-content: center;
|
|
2271
2281
|
|
|
2272
2282
|
text-shadow: 0 0 4px rgba(0, 0, 0, 1);
|
|
2273
|
-
${
|
|
2283
|
+
${Se.bMedium.bold}
|
|
2274
2284
|
|
|
2275
2285
|
position: absolute;
|
|
2276
2286
|
top: -2.5rem;
|
|
@@ -2340,25 +2350,25 @@ ${l}`),
|
|
|
2340
2350
|
object-fit: cover;
|
|
2341
2351
|
}
|
|
2342
2352
|
}
|
|
2343
|
-
`,
|
|
2344
|
-
const e = $.useActorRef(), t = $.useSelector((c) => c.context.media.currentTime), n = $.useSelector((c) => c.context.media.duration), r = $.useSelector((c) => c.context.thumbnails), o =
|
|
2345
|
-
const
|
|
2346
|
-
b(
|
|
2353
|
+
`, Xn = () => {
|
|
2354
|
+
const e = $.useActorRef(), t = $.useSelector((c) => c.context.media.currentTime), n = $.useSelector((c) => c.context.media.duration), r = $.useSelector((c) => c.context.thumbnails), o = Ue(je), a = Ne(null), { scrub: s, value: u } = Gn({ ref: a }), [l, b] = Z(void 0), d = (c) => {
|
|
2355
|
+
const h = c.nativeEvent.offsetX / c.currentTarget.offsetWidth * (n ?? 0);
|
|
2356
|
+
b(h);
|
|
2347
2357
|
}, g = () => {
|
|
2348
2358
|
a.current && b(void 0);
|
|
2349
|
-
},
|
|
2350
|
-
() => o.downloadedRanges?.map((c,
|
|
2359
|
+
}, S = pe(
|
|
2360
|
+
() => o.downloadedRanges?.map((c, E) => {
|
|
2351
2361
|
if ("startByteOffset" in c && "endByteOffset" in c && o.size) {
|
|
2352
|
-
const
|
|
2353
|
-
return /* @__PURE__ */
|
|
2362
|
+
const h = c.startByteOffset / o.size, R = c.endByteOffset / o.size - h, m = h * 100;
|
|
2363
|
+
return /* @__PURE__ */ v("div", { className: "loaded-part", style: { transform: `scaleX(${R})`, marginLeft: `${m}%` } }, E);
|
|
2354
2364
|
} else
|
|
2355
2365
|
return null;
|
|
2356
2366
|
}) ?? [],
|
|
2357
|
-
[o.downloadedRanges?.map(({ startByteOffset: c, endByteOffset:
|
|
2367
|
+
[o.downloadedRanges?.map(({ startByteOffset: c, endByteOffset: E }) => `${c}/${E}`).join(",")]
|
|
2358
2368
|
), y = pe(() => {
|
|
2359
2369
|
if (!l || l < 0) return;
|
|
2360
|
-
const c = Math.floor(l / 3600),
|
|
2361
|
-
return `${c > 0 ? `${c}:` : ""}${
|
|
2370
|
+
const c = Math.floor(l / 3600), E = Math.floor((l - c * 3600) / 60), h = Math.floor(l - c * 3600 - E * 60);
|
|
2371
|
+
return `${c > 0 ? `${c}:` : ""}${E < 10 ? "0" : ""}${E}:${h < 10 ? "0" : ""}${h}`;
|
|
2362
2372
|
}, [l]);
|
|
2363
2373
|
z(() => {
|
|
2364
2374
|
if (!e || u === void 0 || !n) return;
|
|
@@ -2368,20 +2378,20 @@ ${l}`),
|
|
|
2368
2378
|
const p = pe(() => typeof n != "number" || typeof t != "number" ? 0 : 1 / ((n ?? 0) / (t ?? 0)), [n, t]), f = pe(() => {
|
|
2369
2379
|
if (!(!r.length || !l))
|
|
2370
2380
|
return r.find(
|
|
2371
|
-
({ timestamp: c, duration:
|
|
2381
|
+
({ timestamp: c, duration: E }) => c <= l && l <= c + E
|
|
2372
2382
|
);
|
|
2373
2383
|
}, [r.length, l]);
|
|
2374
2384
|
return /* @__PURE__ */ I(
|
|
2375
2385
|
"div",
|
|
2376
2386
|
{
|
|
2377
|
-
css:
|
|
2387
|
+
css: qn,
|
|
2378
2388
|
ref: a,
|
|
2379
2389
|
className: "progress-bar",
|
|
2380
2390
|
onMouseMove: d,
|
|
2381
2391
|
onMouseOut: g,
|
|
2382
2392
|
children: [
|
|
2383
|
-
/* @__PURE__ */
|
|
2384
|
-
l ? /* @__PURE__ */
|
|
2393
|
+
/* @__PURE__ */ v("div", { className: "background-bar" }),
|
|
2394
|
+
l ? /* @__PURE__ */ v(
|
|
2385
2395
|
"div",
|
|
2386
2396
|
{
|
|
2387
2397
|
className: "cursor-time",
|
|
@@ -2389,29 +2399,29 @@ ${l}`),
|
|
|
2389
2399
|
children: y
|
|
2390
2400
|
}
|
|
2391
2401
|
) : void 0,
|
|
2392
|
-
/* @__PURE__ */
|
|
2393
|
-
/* @__PURE__ */
|
|
2394
|
-
/* @__PURE__ */
|
|
2395
|
-
/* @__PURE__ */
|
|
2396
|
-
/* @__PURE__ */
|
|
2397
|
-
/* @__PURE__ */
|
|
2398
|
-
/* @__PURE__ */
|
|
2399
|
-
/* @__PURE__ */
|
|
2402
|
+
/* @__PURE__ */ v("div", { className: "progress" }),
|
|
2403
|
+
/* @__PURE__ */ v("div", { className: "loaded", children: S }),
|
|
2404
|
+
/* @__PURE__ */ v("div", { className: "hover" }),
|
|
2405
|
+
/* @__PURE__ */ v("div", { className: "play-container", children: /* @__PURE__ */ v("div", { className: "play", style: { transform: `scaleX(${p})` } }) }),
|
|
2406
|
+
/* @__PURE__ */ v("div", { className: "chapters" }),
|
|
2407
|
+
/* @__PURE__ */ v("div", { className: "scrubber" }),
|
|
2408
|
+
/* @__PURE__ */ v("div", { className: "padding", onMouseDown: s }),
|
|
2409
|
+
/* @__PURE__ */ v(
|
|
2400
2410
|
"div",
|
|
2401
2411
|
{
|
|
2402
2412
|
className: "thumbnail",
|
|
2403
2413
|
style: { left: `clamp(12.5rem, ${1 / ((n ?? 0) / (l ?? 1)) * 100}%, calc(100% - 12.5rem))` },
|
|
2404
|
-
children: f ? /* @__PURE__ */
|
|
2414
|
+
children: f ? /* @__PURE__ */ v("img", { src: f.url }) : void 0
|
|
2405
2415
|
}
|
|
2406
2416
|
)
|
|
2407
2417
|
]
|
|
2408
2418
|
}
|
|
2409
2419
|
);
|
|
2410
|
-
},
|
|
2420
|
+
}, Gt = (e) => {
|
|
2411
2421
|
if (e === void 0) return "0:00";
|
|
2412
2422
|
const t = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60), r = Math.floor(e % 60);
|
|
2413
2423
|
return t > 0 ? `${t}:${n < 10 ? "0" : ""}${n}:${r < 10 ? "0" : ""}${r}` : `${n}:${r < 10 ? "0" : ""}${r}`;
|
|
2414
|
-
},
|
|
2424
|
+
}, Hn = (e, t) => `${Gt(e)} / ${Gt(t)}`, Kn = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-picture-in-picture'%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'%20/%3e%3cpath%20d='M11%2019h-6a2%202%200%200%201%20-2%20-2v-10a2%202%200%200%201%202%20-2h14a2%202%200%200%201%202%202v4'%20/%3e%3cpath%20d='M14%2014m0%201a1%201%200%200%201%201%20-1h5a1%201%200%200%201%201%201v3a1%201%200%200%201%20-1%201h-5a1%201%200%200%201%20-1%20-1z'%20/%3e%3c/svg%3e", Jn = Q`
|
|
2415
2425
|
position: relative;
|
|
2416
2426
|
|
|
2417
2427
|
.popover {
|
|
@@ -2432,7 +2442,7 @@ position: relative;
|
|
|
2432
2442
|
|
|
2433
2443
|
border-radius: 8px;
|
|
2434
2444
|
background-color: rgba(28,28,28,0.95);
|
|
2435
|
-
${
|
|
2445
|
+
${Se.bMedium.regular}
|
|
2436
2446
|
|
|
2437
2447
|
z-index: 4;
|
|
2438
2448
|
|
|
@@ -2467,12 +2477,12 @@ position: relative;
|
|
|
2467
2477
|
|
|
2468
2478
|
.secondary {
|
|
2469
2479
|
color: #eee;
|
|
2470
|
-
${
|
|
2480
|
+
${Se.bSmall.regular}
|
|
2471
2481
|
}
|
|
2472
2482
|
}
|
|
2473
2483
|
}
|
|
2474
2484
|
}
|
|
2475
|
-
`,
|
|
2485
|
+
`, Zn = () => {
|
|
2476
2486
|
const e = $.useActorRef(), t = $.useSelector((p) => p.context.media.playbackRate), n = $.useSelector((p) => p.context.subtitleStreams), r = $.useSelector((p) => p.context.selectedSubtitleStreamIndex), [o, a] = Z(!1), [s, u] = Z(
|
|
2477
2487
|
0
|
|
2478
2488
|
/* Default */
|
|
@@ -2496,27 +2506,27 @@ position: relative;
|
|
|
2496
2506
|
const g = pe(
|
|
2497
2507
|
() => n.map(({ header: p }) => ({ streamIndex: p.streamIndex, language: p.parsed.info.Title })),
|
|
2498
2508
|
[n.length]
|
|
2499
|
-
),
|
|
2509
|
+
), S = (p) => () => {
|
|
2500
2510
|
e.send({ type: "SELECT_SUBTITLE_STREAM", streamIndex: p.streamIndex }), b();
|
|
2501
2511
|
}, y = (p) => () => {
|
|
2502
2512
|
u(p);
|
|
2503
2513
|
};
|
|
2504
|
-
return /* @__PURE__ */ I("div", { css:
|
|
2505
|
-
/* @__PURE__ */
|
|
2514
|
+
return /* @__PURE__ */ I("div", { css: Jn, ref: l, children: [
|
|
2515
|
+
/* @__PURE__ */ v(
|
|
2506
2516
|
ge,
|
|
2507
2517
|
{
|
|
2508
2518
|
id: "settings",
|
|
2509
2519
|
disabled: o,
|
|
2510
|
-
text: /* @__PURE__ */
|
|
2520
|
+
text: /* @__PURE__ */ v(
|
|
2511
2521
|
"button",
|
|
2512
2522
|
{
|
|
2513
2523
|
className: "settings",
|
|
2514
2524
|
type: "button",
|
|
2515
2525
|
onClick: b,
|
|
2516
|
-
children: /* @__PURE__ */
|
|
2526
|
+
children: /* @__PURE__ */ v(yr, {})
|
|
2517
2527
|
}
|
|
2518
2528
|
),
|
|
2519
|
-
toolTipText: /* @__PURE__ */
|
|
2529
|
+
toolTipText: /* @__PURE__ */ v("span", { children: "Settings" })
|
|
2520
2530
|
}
|
|
2521
2531
|
),
|
|
2522
2532
|
o && s === 0 && /* @__PURE__ */ I("div", { className: "popover", children: [
|
|
@@ -2524,31 +2534,31 @@ position: relative;
|
|
|
2524
2534
|
2
|
|
2525
2535
|
/* Advanced */
|
|
2526
2536
|
), children: [
|
|
2527
|
-
/* @__PURE__ */
|
|
2528
|
-
/* @__PURE__ */
|
|
2537
|
+
/* @__PURE__ */ v("span", { children: "Advanced" }),
|
|
2538
|
+
/* @__PURE__ */ v("div", { children: /* @__PURE__ */ v(Ke, {}) })
|
|
2529
2539
|
] }),
|
|
2530
2540
|
/* @__PURE__ */ I("div", { onClick: y(
|
|
2531
2541
|
3
|
|
2532
2542
|
/* SelectNewSources */
|
|
2533
2543
|
), children: [
|
|
2534
|
-
/* @__PURE__ */
|
|
2535
|
-
/* @__PURE__ */
|
|
2544
|
+
/* @__PURE__ */ v("div", { children: "Select new sources" }),
|
|
2545
|
+
/* @__PURE__ */ v("div", { children: /* @__PURE__ */ v(Ke, {}) })
|
|
2536
2546
|
] }),
|
|
2537
2547
|
/* @__PURE__ */ I("div", { onClick: y(
|
|
2538
2548
|
4
|
|
2539
2549
|
/* Subtitles */
|
|
2540
2550
|
), children: [
|
|
2541
|
-
/* @__PURE__ */
|
|
2542
|
-
/* @__PURE__ */
|
|
2551
|
+
/* @__PURE__ */ v("div", { children: "Subtitles" }),
|
|
2552
|
+
/* @__PURE__ */ v("div", { children: /* @__PURE__ */ v(Ke, {}) })
|
|
2543
2553
|
] }),
|
|
2544
2554
|
/* @__PURE__ */ I("div", { onClick: y(
|
|
2545
2555
|
1
|
|
2546
2556
|
/* PlaybackRate */
|
|
2547
2557
|
), children: [
|
|
2548
|
-
/* @__PURE__ */
|
|
2558
|
+
/* @__PURE__ */ v("div", { children: "Playback speed" }),
|
|
2549
2559
|
/* @__PURE__ */ I("div", { children: [
|
|
2550
|
-
/* @__PURE__ */
|
|
2551
|
-
/* @__PURE__ */
|
|
2560
|
+
/* @__PURE__ */ v("span", { className: "secondary", children: t === 1 ? "(Default)" : t.toFixed(2) }),
|
|
2561
|
+
/* @__PURE__ */ v(Ke, {})
|
|
2552
2562
|
] })
|
|
2553
2563
|
] })
|
|
2554
2564
|
] }),
|
|
@@ -2557,13 +2567,13 @@ position: relative;
|
|
|
2557
2567
|
0
|
|
2558
2568
|
/* Default */
|
|
2559
2569
|
), children: [
|
|
2560
|
-
/* @__PURE__ */
|
|
2561
|
-
/* @__PURE__ */
|
|
2570
|
+
/* @__PURE__ */ v("div", { children: "Back" }),
|
|
2571
|
+
/* @__PURE__ */ v("div", {})
|
|
2562
2572
|
] }),
|
|
2563
2573
|
/* @__PURE__ */ I("div", { children: [
|
|
2564
|
-
/* @__PURE__ */
|
|
2574
|
+
/* @__PURE__ */ v("div", { children: "Playback speed" }),
|
|
2565
2575
|
/* @__PURE__ */ I("div", { children: [
|
|
2566
|
-
/* @__PURE__ */
|
|
2576
|
+
/* @__PURE__ */ v(
|
|
2567
2577
|
"button",
|
|
2568
2578
|
{
|
|
2569
2579
|
type: "button",
|
|
@@ -2571,7 +2581,7 @@ position: relative;
|
|
|
2571
2581
|
children: "0.5x"
|
|
2572
2582
|
}
|
|
2573
2583
|
),
|
|
2574
|
-
/* @__PURE__ */
|
|
2584
|
+
/* @__PURE__ */ v(
|
|
2575
2585
|
"button",
|
|
2576
2586
|
{
|
|
2577
2587
|
type: "button",
|
|
@@ -2579,7 +2589,7 @@ position: relative;
|
|
|
2579
2589
|
children: "1x"
|
|
2580
2590
|
}
|
|
2581
2591
|
),
|
|
2582
|
-
/* @__PURE__ */
|
|
2592
|
+
/* @__PURE__ */ v(
|
|
2583
2593
|
"button",
|
|
2584
2594
|
{
|
|
2585
2595
|
type: "button",
|
|
@@ -2587,7 +2597,7 @@ position: relative;
|
|
|
2587
2597
|
children: "1.5x"
|
|
2588
2598
|
}
|
|
2589
2599
|
),
|
|
2590
|
-
/* @__PURE__ */
|
|
2600
|
+
/* @__PURE__ */ v(
|
|
2591
2601
|
"button",
|
|
2592
2602
|
{
|
|
2593
2603
|
type: "button",
|
|
@@ -2598,28 +2608,28 @@ position: relative;
|
|
|
2598
2608
|
] })
|
|
2599
2609
|
] })
|
|
2600
2610
|
] }),
|
|
2601
|
-
o && s === 2 && /* @__PURE__ */
|
|
2611
|
+
o && s === 2 && /* @__PURE__ */ v("div", { className: "popover", children: /* @__PURE__ */ I("div", { onClick: y(
|
|
2602
2612
|
0
|
|
2603
2613
|
/* Default */
|
|
2604
2614
|
), children: [
|
|
2605
|
-
/* @__PURE__ */
|
|
2606
|
-
/* @__PURE__ */
|
|
2615
|
+
/* @__PURE__ */ v("div", { children: "Back" }),
|
|
2616
|
+
/* @__PURE__ */ v("div", {})
|
|
2607
2617
|
] }) }),
|
|
2608
|
-
o && s === 3 && /* @__PURE__ */
|
|
2618
|
+
o && s === 3 && /* @__PURE__ */ v("div", { className: "popover", children: /* @__PURE__ */ I("div", { onClick: y(
|
|
2609
2619
|
0
|
|
2610
2620
|
/* Default */
|
|
2611
2621
|
), children: [
|
|
2612
|
-
/* @__PURE__ */
|
|
2613
|
-
/* @__PURE__ */
|
|
2622
|
+
/* @__PURE__ */ v("div", { children: "Back" }),
|
|
2623
|
+
/* @__PURE__ */ v("div", {})
|
|
2614
2624
|
] }) }),
|
|
2615
2625
|
o && s === 4 && /* @__PURE__ */ I("div", { className: "popover", children: [
|
|
2616
2626
|
g.map((p) => /* @__PURE__ */ I(
|
|
2617
2627
|
"div",
|
|
2618
2628
|
{
|
|
2619
|
-
onClick:
|
|
2629
|
+
onClick: S(p),
|
|
2620
2630
|
children: [
|
|
2621
|
-
/* @__PURE__ */
|
|
2622
|
-
/* @__PURE__ */
|
|
2631
|
+
/* @__PURE__ */ v("div", { children: p.language }),
|
|
2632
|
+
/* @__PURE__ */ v("div", { children: r === p.streamIndex ? "✓" : "" })
|
|
2623
2633
|
]
|
|
2624
2634
|
},
|
|
2625
2635
|
p.streamIndex
|
|
@@ -2628,20 +2638,14 @@ position: relative;
|
|
|
2628
2638
|
0
|
|
2629
2639
|
/* Default */
|
|
2630
2640
|
), children: [
|
|
2631
|
-
/* @__PURE__ */
|
|
2632
|
-
/* @__PURE__ */
|
|
2641
|
+
/* @__PURE__ */ v("div", { children: "Back" }),
|
|
2642
|
+
/* @__PURE__ */ v("div", {})
|
|
2633
2643
|
] })
|
|
2634
2644
|
] })
|
|
2635
2645
|
] });
|
|
2636
|
-
},
|
|
2646
|
+
}, Qn = {
|
|
2637
2647
|
hover: "rgba(255, 255, 255, 0.13)"
|
|
2638
|
-
},
|
|
2639
|
-
const t = Math.max(cr, Math.min(bt, e));
|
|
2640
|
-
return Math.pow(t, ur);
|
|
2641
|
-
}, St = (e) => {
|
|
2642
|
-
const t = Math.max(cr, Math.min(bt, e));
|
|
2643
|
-
return Math.pow(t, bt / ur);
|
|
2644
|
-
}, Qn = Q`
|
|
2648
|
+
}, eo = Q`
|
|
2645
2649
|
display: flex;
|
|
2646
2650
|
align-items: center;
|
|
2647
2651
|
|
|
@@ -2672,26 +2676,26 @@ position: relative;
|
|
|
2672
2676
|
width: 10px;
|
|
2673
2677
|
height: 10px;
|
|
2674
2678
|
}
|
|
2675
|
-
`,
|
|
2679
|
+
`, to = ({ value: e, onChange: t }) => {
|
|
2676
2680
|
const n = $.useSelector((c) => c.context.media.volume), r = $.useSelector((c) => c.context.media.muted), o = Ne(null), [a, s] = Z(!1), u = (c) => {
|
|
2677
2681
|
if (!o.current) return e;
|
|
2678
|
-
const
|
|
2679
|
-
return Math.max(0, Math.min(
|
|
2682
|
+
const E = o.current.getBoundingClientRect(), h = c - E.left;
|
|
2683
|
+
return Math.max(0, Math.min(h, E.width)) / E.width;
|
|
2680
2684
|
}, l = (c) => {
|
|
2681
2685
|
s(!0);
|
|
2682
|
-
const
|
|
2683
|
-
t(
|
|
2686
|
+
const E = u(c.clientX);
|
|
2687
|
+
t(E);
|
|
2684
2688
|
}, b = (c) => {
|
|
2685
2689
|
if (!a) return;
|
|
2686
|
-
const
|
|
2687
|
-
t(
|
|
2690
|
+
const E = u(c.clientX);
|
|
2691
|
+
t(E);
|
|
2688
2692
|
}, d = () => {
|
|
2689
2693
|
s(!1);
|
|
2690
2694
|
}, g = (c) => {
|
|
2691
2695
|
c.preventDefault();
|
|
2692
|
-
const
|
|
2693
|
-
let
|
|
2694
|
-
c.deltaY < 0 ?
|
|
2696
|
+
const E = 0.05;
|
|
2697
|
+
let h = e;
|
|
2698
|
+
c.deltaY < 0 ? h = Math.min(1, h + E) : h = Math.max(0, h - E), t(h);
|
|
2695
2699
|
};
|
|
2696
2700
|
z(() => (window.addEventListener("mousemove", b), window.addEventListener("mouseup", d), () => {
|
|
2697
2701
|
window.removeEventListener("mousemove", b), window.removeEventListener("mouseup", d);
|
|
@@ -2701,30 +2705,30 @@ position: relative;
|
|
|
2701
2705
|
c && c.removeEventListener("wheel", g);
|
|
2702
2706
|
};
|
|
2703
2707
|
}, [e]);
|
|
2704
|
-
const
|
|
2705
|
-
() => Math.round(r ? 0 :
|
|
2708
|
+
const S = e * 100, y = "#fff", p = "#3A3A3A", f = pe(
|
|
2709
|
+
() => Math.round(r ? 0 : xt(n) * 100),
|
|
2706
2710
|
[n]
|
|
2707
2711
|
);
|
|
2708
|
-
return /* @__PURE__ */
|
|
2712
|
+
return /* @__PURE__ */ v(
|
|
2709
2713
|
ge,
|
|
2710
2714
|
{
|
|
2711
2715
|
id: "volume-slider",
|
|
2712
|
-
text: /* @__PURE__ */
|
|
2716
|
+
text: /* @__PURE__ */ v(
|
|
2713
2717
|
"div",
|
|
2714
2718
|
{
|
|
2715
2719
|
ref: o,
|
|
2716
|
-
css:
|
|
2720
|
+
css: eo,
|
|
2717
2721
|
onMouseDown: l,
|
|
2718
|
-
children: /* @__PURE__ */
|
|
2722
|
+
children: /* @__PURE__ */ v(
|
|
2719
2723
|
"div",
|
|
2720
2724
|
{
|
|
2721
2725
|
style: {
|
|
2722
2726
|
background: `linear-gradient(to right,
|
|
2723
|
-
${y} 0% ${
|
|
2724
|
-
${p} ${
|
|
2727
|
+
${y} 0% ${S}%,
|
|
2728
|
+
${p} ${S}% 100%
|
|
2725
2729
|
)`
|
|
2726
2730
|
},
|
|
2727
|
-
children: /* @__PURE__ */
|
|
2731
|
+
children: /* @__PURE__ */ v(
|
|
2728
2732
|
"div",
|
|
2729
2733
|
{
|
|
2730
2734
|
className: "volume-handle",
|
|
@@ -2743,7 +2747,7 @@ position: relative;
|
|
|
2743
2747
|
] })
|
|
2744
2748
|
}
|
|
2745
2749
|
);
|
|
2746
|
-
},
|
|
2750
|
+
}, ro = Q`
|
|
2747
2751
|
position: relative;
|
|
2748
2752
|
display: flex;
|
|
2749
2753
|
align-items: center;
|
|
@@ -2768,7 +2772,7 @@ position: relative;
|
|
|
2768
2772
|
border-radius: 4px;
|
|
2769
2773
|
|
|
2770
2774
|
.volume-value {
|
|
2771
|
-
${
|
|
2775
|
+
${Se.bMedium.regular};
|
|
2772
2776
|
color: #ffffff;
|
|
2773
2777
|
}
|
|
2774
2778
|
}
|
|
@@ -2782,44 +2786,44 @@ position: relative;
|
|
|
2782
2786
|
|
|
2783
2787
|
pointer-events: auto;
|
|
2784
2788
|
}
|
|
2785
|
-
`,
|
|
2786
|
-
const t = $.useActorRef(), n = $.useSelector((s) => s.context.media.volume), r = $.useSelector((s) => s.context.media.muted), o = pe(() =>
|
|
2789
|
+
`, no = ({ ref: e }) => {
|
|
2790
|
+
const t = $.useActorRef(), n = $.useSelector((s) => s.context.media.volume), r = $.useSelector((s) => s.context.media.muted), o = pe(() => xt(n), [n]), a = (s, u) => t.send({
|
|
2787
2791
|
type: "SET_VOLUME",
|
|
2788
2792
|
muted: u,
|
|
2789
|
-
volume:
|
|
2793
|
+
volume: dr(s)
|
|
2790
2794
|
});
|
|
2791
|
-
return /* @__PURE__ */ I("div", { css:
|
|
2792
|
-
/* @__PURE__ */
|
|
2795
|
+
return /* @__PURE__ */ I("div", { css: ro, children: [
|
|
2796
|
+
/* @__PURE__ */ v(
|
|
2793
2797
|
ge,
|
|
2794
2798
|
{
|
|
2795
2799
|
id: "sound",
|
|
2796
|
-
text: /* @__PURE__ */
|
|
2800
|
+
text: /* @__PURE__ */ v(
|
|
2797
2801
|
"button",
|
|
2798
2802
|
{
|
|
2799
2803
|
className: "sound",
|
|
2800
2804
|
type: "button",
|
|
2801
2805
|
onClick: () => a(o, !r),
|
|
2802
2806
|
ref: e,
|
|
2803
|
-
children: r || n === 0 ? /* @__PURE__ */
|
|
2807
|
+
children: r || n === 0 ? /* @__PURE__ */ v(Sr, { size: 18, color: "#fff" }) : n <= 0.5 ? /* @__PURE__ */ v(xr, { size: 18, color: "#fff" }) : /* @__PURE__ */ v(Tr, { size: 18, color: "#fff" })
|
|
2804
2808
|
}
|
|
2805
2809
|
),
|
|
2806
|
-
toolTipText: /* @__PURE__ */
|
|
2810
|
+
toolTipText: /* @__PURE__ */ v("span", { children: r ? "Unmute (m)" : "Mute (m)" })
|
|
2807
2811
|
}
|
|
2808
2812
|
),
|
|
2809
|
-
/* @__PURE__ */
|
|
2810
|
-
|
|
2813
|
+
/* @__PURE__ */ v("div", { className: "volume-slider-container", children: /* @__PURE__ */ v("div", { className: "volume-slider-background", children: /* @__PURE__ */ v(
|
|
2814
|
+
to,
|
|
2811
2815
|
{
|
|
2812
2816
|
value: r ? 0 : o,
|
|
2813
2817
|
onChange: (s) => a(s, !1)
|
|
2814
2818
|
}
|
|
2815
2819
|
) }) })
|
|
2816
2820
|
] });
|
|
2817
|
-
},
|
|
2821
|
+
}, oo = Q`
|
|
2818
2822
|
position: absolute;
|
|
2819
2823
|
bottom: 0;
|
|
2820
2824
|
width: 100%;
|
|
2821
2825
|
|
|
2822
|
-
background: linear-gradient(0deg
|
|
2826
|
+
background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.45) 20%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.15) 70%, transparent 100%);
|
|
2823
2827
|
transition: opacity 0.1s cubic-bezier(.4,0,1,1);
|
|
2824
2828
|
|
|
2825
2829
|
.actions {
|
|
@@ -2898,14 +2902,14 @@ position: relative;
|
|
|
2898
2902
|
cursor: pointer;
|
|
2899
2903
|
|
|
2900
2904
|
:hover {
|
|
2901
|
-
background-color: ${
|
|
2905
|
+
background-color: ${Qn.hover};
|
|
2902
2906
|
}
|
|
2903
2907
|
}
|
|
2904
2908
|
}
|
|
2905
2909
|
|
|
2906
2910
|
.left {
|
|
2907
2911
|
.time {
|
|
2908
|
-
${
|
|
2912
|
+
${Se.bMedium.regular}
|
|
2909
2913
|
}
|
|
2910
2914
|
}
|
|
2911
2915
|
.right {
|
|
@@ -2926,10 +2930,10 @@ position: relative;
|
|
|
2926
2930
|
}
|
|
2927
2931
|
}
|
|
2928
2932
|
}
|
|
2929
|
-
`,
|
|
2933
|
+
`, io = ({
|
|
2930
2934
|
containerRef: e
|
|
2931
2935
|
}) => {
|
|
2932
|
-
const t = $.useActorRef(), n =
|
|
2936
|
+
const t = $.useActorRef(), n = Ue(je), r = $.useSelector((f) => f.context.media.paused), o = $.useSelector((f) => f.context.media.volume), a = $.useSelector((f) => f.context.media.muted), s = $.useSelector((f) => f.context.media.currentTime), u = $.useSelector((f) => f.context.media.duration), [l, b] = Z(), [d, g] = Z(!1);
|
|
2933
2937
|
z(() => {
|
|
2934
2938
|
const f = () => {
|
|
2935
2939
|
g(!!document.fullscreenElement);
|
|
@@ -2938,23 +2942,23 @@ position: relative;
|
|
|
2938
2942
|
document.removeEventListener("fullscreenchange", f);
|
|
2939
2943
|
};
|
|
2940
2944
|
}, []);
|
|
2941
|
-
const
|
|
2945
|
+
const S = () => {
|
|
2942
2946
|
document.fullscreenElement ? document.exitFullscreen() : e.current && e.current.requestFullscreen();
|
|
2943
|
-
}, y =
|
|
2947
|
+
}, y = ot(({ direction: f, stepSize: c }) => {
|
|
2944
2948
|
if (!t) return;
|
|
2945
|
-
const
|
|
2949
|
+
const E = xt(o), h = f === "up" ? c : -c, A = Math.max(0, Math.min(1, E + h)), R = dr(A);
|
|
2946
2950
|
t.send({
|
|
2947
2951
|
type: "SET_VOLUME",
|
|
2948
2952
|
muted: a,
|
|
2949
|
-
volume:
|
|
2953
|
+
volume: R
|
|
2950
2954
|
});
|
|
2951
2955
|
}, [t.id, a, o]);
|
|
2952
2956
|
z(() => {
|
|
2953
2957
|
const f = (c) => {
|
|
2954
|
-
let
|
|
2955
|
-
if (c.key === "f")
|
|
2956
|
-
else if (c.key === "k")
|
|
2957
|
-
else if (c.key === " ")
|
|
2958
|
+
let E = !0;
|
|
2959
|
+
if (c.key === "f") S();
|
|
2960
|
+
else if (c.key === "k") nt(t, r, u, s);
|
|
2961
|
+
else if (c.key === " ") nt(t, r, u, s);
|
|
2958
2962
|
else if (c.key === "m")
|
|
2959
2963
|
t.send({ type: "SET_VOLUME", muted: !a, volume: o });
|
|
2960
2964
|
else if (c.key === "ArrowUp")
|
|
@@ -2964,79 +2968,79 @@ position: relative;
|
|
|
2964
2968
|
else if (c.key === "ArrowRight") {
|
|
2965
2969
|
if (!u) return;
|
|
2966
2970
|
s + 5 >= u ? t.send({ type: "SET_TIME", value: u }) : t.send({ type: "SET_TIME", value: s + 5 });
|
|
2967
|
-
} else c.key === "ArrowLeft" ? s - 5 < 0 ? t.send({ type: "SET_TIME", value: 0 }) : t.send({ type: "SET_TIME", value: s - 5 }) :
|
|
2968
|
-
|
|
2971
|
+
} else c.key === "ArrowLeft" ? s - 5 < 0 ? t.send({ type: "SET_TIME", value: 0 }) : t.send({ type: "SET_TIME", value: s - 5 }) : E = !1;
|
|
2972
|
+
E && c.preventDefault();
|
|
2969
2973
|
};
|
|
2970
2974
|
return window.addEventListener("keydown", f), () => window.removeEventListener("keydown", f);
|
|
2971
2975
|
}, [t, o, a, r, s, u]);
|
|
2972
|
-
const p =
|
|
2976
|
+
const p = ot((f) => {
|
|
2973
2977
|
f.preventDefault(), f.deltaY < 0 ? y({ direction: "up", stepSize: 0.05 }) : y({ direction: "down", stepSize: 0.05 });
|
|
2974
2978
|
}, [y]);
|
|
2975
2979
|
return z(() => {
|
|
2976
2980
|
if (l)
|
|
2977
2981
|
return l.addEventListener("wheel", p, { passive: !1 }), () => l.removeEventListener("wheel", p);
|
|
2978
|
-
}, [l, y]), /* @__PURE__ */ I("div", { css:
|
|
2979
|
-
/* @__PURE__ */
|
|
2982
|
+
}, [l, y]), /* @__PURE__ */ I("div", { css: oo, style: { ...n.hideUI ? { opacity: "0", pointerEvents: "none" } : {} }, children: [
|
|
2983
|
+
/* @__PURE__ */ v(Xn, {}),
|
|
2980
2984
|
/* @__PURE__ */ I("div", { className: "actions", children: [
|
|
2981
2985
|
/* @__PURE__ */ I("div", { className: "left", children: [
|
|
2982
|
-
/* @__PURE__ */
|
|
2986
|
+
/* @__PURE__ */ v(
|
|
2983
2987
|
ge,
|
|
2984
2988
|
{
|
|
2985
2989
|
id: "play",
|
|
2986
2990
|
tooltipPlace: "top-start",
|
|
2987
|
-
text: /* @__PURE__ */
|
|
2991
|
+
text: /* @__PURE__ */ v(
|
|
2988
2992
|
"button",
|
|
2989
2993
|
{
|
|
2990
2994
|
className: "play",
|
|
2991
2995
|
type: "button",
|
|
2992
|
-
onClick: () =>
|
|
2993
|
-
children: u === s ? /* @__PURE__ */
|
|
2996
|
+
onClick: () => nt(t, r, u, s),
|
|
2997
|
+
children: u === s ? /* @__PURE__ */ v(wr, {}) : r ? /* @__PURE__ */ v(Ar, {}) : /* @__PURE__ */ v(Rr, {})
|
|
2994
2998
|
}
|
|
2995
2999
|
),
|
|
2996
|
-
toolTipText: /* @__PURE__ */
|
|
3000
|
+
toolTipText: /* @__PURE__ */ v("span", { children: u === s ? "Replay (k)" : r ? "Play (k)" : "Pause (k)" })
|
|
2997
3001
|
}
|
|
2998
3002
|
),
|
|
2999
|
-
/* @__PURE__ */
|
|
3000
|
-
/* @__PURE__ */
|
|
3003
|
+
/* @__PURE__ */ v(no, { ref: b }),
|
|
3004
|
+
/* @__PURE__ */ v("div", { className: "time", children: Hn(s, u) })
|
|
3001
3005
|
] }),
|
|
3002
3006
|
/* @__PURE__ */ I("div", { className: "right", children: [
|
|
3003
|
-
/* @__PURE__ */
|
|
3004
|
-
/* @__PURE__ */
|
|
3007
|
+
/* @__PURE__ */ v(Zn, {}),
|
|
3008
|
+
/* @__PURE__ */ v(
|
|
3005
3009
|
ge,
|
|
3006
3010
|
{
|
|
3007
3011
|
id: "picture-in-picture",
|
|
3008
|
-
text: /* @__PURE__ */
|
|
3012
|
+
text: /* @__PURE__ */ v(
|
|
3009
3013
|
"button",
|
|
3010
3014
|
{
|
|
3011
3015
|
className: "picture-in-picture",
|
|
3012
3016
|
type: "button",
|
|
3013
|
-
children: /* @__PURE__ */
|
|
3017
|
+
children: /* @__PURE__ */ v("img", { src: Kn })
|
|
3014
3018
|
}
|
|
3015
3019
|
),
|
|
3016
|
-
toolTipText: /* @__PURE__ */
|
|
3020
|
+
toolTipText: /* @__PURE__ */ v("span", { children: "Picture in picture" })
|
|
3017
3021
|
}
|
|
3018
3022
|
),
|
|
3019
|
-
/* @__PURE__ */
|
|
3023
|
+
/* @__PURE__ */ v(
|
|
3020
3024
|
ge,
|
|
3021
3025
|
{
|
|
3022
3026
|
id: "full-screen",
|
|
3023
3027
|
tooltipPlace: "top-end",
|
|
3024
|
-
text: /* @__PURE__ */
|
|
3028
|
+
text: /* @__PURE__ */ v(
|
|
3025
3029
|
"button",
|
|
3026
3030
|
{
|
|
3027
3031
|
className: "full-screen",
|
|
3028
3032
|
type: "button",
|
|
3029
|
-
onClick:
|
|
3030
|
-
children: d ? /* @__PURE__ */
|
|
3033
|
+
onClick: S,
|
|
3034
|
+
children: d ? /* @__PURE__ */ v(_r, {}) : /* @__PURE__ */ v(Cr, {})
|
|
3031
3035
|
}
|
|
3032
3036
|
),
|
|
3033
|
-
toolTipText: /* @__PURE__ */
|
|
3037
|
+
toolTipText: /* @__PURE__ */ v("span", { children: d ? "Exit full screen (f)" : "Full screen (f)" })
|
|
3034
3038
|
}
|
|
3035
3039
|
)
|
|
3036
3040
|
] })
|
|
3037
3041
|
] })
|
|
3038
3042
|
] });
|
|
3039
|
-
},
|
|
3043
|
+
}, ao = Q`
|
|
3040
3044
|
position: relative;
|
|
3041
3045
|
background-color: black;
|
|
3042
3046
|
display: flex;
|
|
@@ -3065,12 +3069,12 @@ position: relative;
|
|
|
3065
3069
|
&.hide {
|
|
3066
3070
|
cursor: none;
|
|
3067
3071
|
}
|
|
3068
|
-
`,
|
|
3069
|
-
const t = $.useActorRef(), n =
|
|
3072
|
+
`, so = ({ children: e }) => {
|
|
3073
|
+
const t = $.useActorRef(), n = Ue(je), r = $.useSelector((d) => d.context.media.paused), o = $.useSelector((d) => d.context.media.currentTime), a = $.useSelector((d) => d.context.media.duration), s = Ne(), u = Ne(null);
|
|
3070
3074
|
return /* @__PURE__ */ I(
|
|
3071
3075
|
"div",
|
|
3072
3076
|
{
|
|
3073
|
-
css:
|
|
3077
|
+
css: ao,
|
|
3074
3078
|
ref: u,
|
|
3075
3079
|
onMouseMove: (d) => {
|
|
3076
3080
|
n.update({ ...n, hideUI: !1 }), s.current && clearInterval(s.current);
|
|
@@ -3084,27 +3088,27 @@ position: relative;
|
|
|
3084
3088
|
},
|
|
3085
3089
|
className: n.hideUI ? "hide" : "",
|
|
3086
3090
|
children: [
|
|
3087
|
-
/* @__PURE__ */
|
|
3088
|
-
/* @__PURE__ */
|
|
3089
|
-
/* @__PURE__ */
|
|
3091
|
+
/* @__PURE__ */ v(Wn, {}),
|
|
3092
|
+
/* @__PURE__ */ v(io, { containerRef: u }),
|
|
3093
|
+
/* @__PURE__ */ v(
|
|
3090
3094
|
"div",
|
|
3091
3095
|
{
|
|
3092
3096
|
className: "video",
|
|
3093
|
-
onClick: () =>
|
|
3097
|
+
onClick: () => nt(t, r, a, o),
|
|
3094
3098
|
children: e
|
|
3095
3099
|
}
|
|
3096
3100
|
)
|
|
3097
3101
|
]
|
|
3098
3102
|
}
|
|
3099
3103
|
);
|
|
3100
|
-
},
|
|
3104
|
+
}, co = 25e5, uo = Q`
|
|
3101
3105
|
display: flex;
|
|
3102
3106
|
justify-content: center;
|
|
3103
3107
|
background-color: #111;
|
|
3104
3108
|
height: 100%;
|
|
3105
3109
|
overflow: hidden;
|
|
3106
|
-
`,
|
|
3107
|
-
const r =
|
|
3110
|
+
`, lo = ({ options: e, videoElement: t, children: n }) => {
|
|
3111
|
+
const r = Ue(je), o = $.useActorRef(), a = $.useSelector((f) => f.value), s = $.useSelector((f) => f.context.media.volume), u = $.useSelector((f) => f.context.media.muted), l = $.useSelector((f) => f.context.isReady), [b, d] = Bt("mediaVolume", "1"), [g, S] = Bt("mediaMute", "false"), [y, p] = Z(!0);
|
|
3108
3112
|
return z(
|
|
3109
3113
|
() => o.send({
|
|
3110
3114
|
type: "MEDIA_SOURCE_OPTIONS",
|
|
@@ -3124,25 +3128,25 @@ position: relative;
|
|
|
3124
3128
|
(r.downloadedRanges?.map((f) => `${f.startByteOffset}-${f.endByteOffset}`) ?? []).join(",")
|
|
3125
3129
|
]
|
|
3126
3130
|
), z(() => {
|
|
3127
|
-
const { size: f, read: c, publicPath:
|
|
3128
|
-
!c || !f || !
|
|
3131
|
+
const { size: f, read: c, publicPath: E, libavWorkerUrl: h, jassubWasmUrl: A } = e;
|
|
3132
|
+
!c || !f || !E || !h || !A || o.send({
|
|
3129
3133
|
type: "REMUXER_OPTIONS",
|
|
3130
3134
|
remuxerOptions: {
|
|
3131
|
-
publicPath:
|
|
3132
|
-
workerUrl:
|
|
3133
|
-
bufferSize: e.bufferSize ??
|
|
3135
|
+
publicPath: E,
|
|
3136
|
+
workerUrl: h,
|
|
3137
|
+
bufferSize: e.bufferSize ?? co,
|
|
3134
3138
|
length: f,
|
|
3135
3139
|
read: c
|
|
3136
3140
|
}
|
|
3137
3141
|
});
|
|
3138
3142
|
}, [e.read, e.size, e.publicPath, e.libavWorkerUrl, e.bufferSize]), z(() => {
|
|
3139
|
-
const { jassubWorkerUrl: f, jassubWasmUrl: c, jassubModernWasmUrl:
|
|
3140
|
-
!f || !c || !
|
|
3143
|
+
const { jassubWorkerUrl: f, jassubWasmUrl: c, jassubModernWasmUrl: E } = e;
|
|
3144
|
+
!f || !c || !E || o.send({
|
|
3141
3145
|
type: "SUBTITLES_RENDERER_OPTIONS",
|
|
3142
3146
|
subtitlesRendererOptions: {
|
|
3143
3147
|
workerUrl: f,
|
|
3144
3148
|
wasmUrl: c,
|
|
3145
|
-
modernWasmUrl:
|
|
3149
|
+
modernWasmUrl: E
|
|
3146
3150
|
}
|
|
3147
3151
|
});
|
|
3148
3152
|
}, [e.publicPath, e.jassubWorkerUrl, e.jassubWasmUrl]), z(() => {
|
|
@@ -3155,15 +3159,15 @@ position: relative;
|
|
|
3155
3159
|
type: "SET_VOLUME",
|
|
3156
3160
|
muted: g === "true",
|
|
3157
3161
|
volume: isNaN(Number(b)) ? 1 : Number(b)
|
|
3158
|
-
}), p(!1)) : (d(s.toString()),
|
|
3162
|
+
}), p(!1)) : (d(s.toString()), S(u ? "true" : "false")));
|
|
3159
3163
|
}, [l, s, u, y]), z(() => {
|
|
3160
3164
|
if (a === "OK")
|
|
3161
3165
|
return () => {
|
|
3162
3166
|
o.send({ type: "DESTROY" });
|
|
3163
3167
|
};
|
|
3164
|
-
}, [a]), /* @__PURE__ */
|
|
3168
|
+
}, [a]), /* @__PURE__ */ v("div", { css: uo, children: /* @__PURE__ */ v(so, { children: n }) });
|
|
3165
3169
|
}, xo = ({ ref: e, ...t }) => {
|
|
3166
|
-
const n = (l) => o({ ...l, update: n }), [r, o] = Z({ update: n }), [a, s] = Z(), u =
|
|
3170
|
+
const n = (l) => o({ ...l, update: n }), [r, o] = Z({ update: n }), [a, s] = Z(), u = ot((l) => {
|
|
3167
3171
|
typeof e == "function" ? e(l) : e && "current" in e && (e.current = l), s(l ?? void 0);
|
|
3168
3172
|
}, []);
|
|
3169
3173
|
return z(() => {
|
|
@@ -3174,9 +3178,9 @@ position: relative;
|
|
|
3174
3178
|
size: t?.size,
|
|
3175
3179
|
downloadedRanges: t?.downloadedRanges
|
|
3176
3180
|
}));
|
|
3177
|
-
}, [a, t?.title, t?.size, t?.downloadedRanges]), /* @__PURE__ */
|
|
3181
|
+
}, [a, t?.title, t?.size, t?.downloadedRanges]), /* @__PURE__ */ v(je.Provider, { value: r, children: /* @__PURE__ */ v($.Provider, { children: /* @__PURE__ */ v(lo, { options: t, videoElement: a, children: /* @__PURE__ */ v("video", { ref: u, controls: !1 }) }) }) });
|
|
3178
3182
|
};
|
|
3179
3183
|
export {
|
|
3180
|
-
|
|
3184
|
+
lo as FKNVideoRoot,
|
|
3181
3185
|
xo as default
|
|
3182
3186
|
};
|