@halibegic/react-video-player 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/player/live-player/live-player-playback.d.ts +2 -0
- package/dist/components/vod-player/vod-player-playback.d.ts +2 -0
- package/dist/{index-qaN7n0xb.js → index-DXKCbM7O.js} +669 -648
- package/dist/index-DXKCbM7O.js.map +1 -0
- package/dist/{player-dash-tech-XlldPZU_.js → player-dash-tech-D7KQCWFx.js} +2 -2
- package/dist/{player-dash-tech-XlldPZU_.js.map → player-dash-tech-D7KQCWFx.js.map} +1 -1
- package/dist/{player-hls-tech-BKkTLteW.js → player-hls-tech-sXKjWi4D.js} +2 -2
- package/dist/{player-hls-tech-BKkTLteW.js.map → player-hls-tech-sXKjWi4D.js.map} +1 -1
- package/dist/react-video-player.es.js +1 -1
- package/dist/react-video-player.umd.js +55 -46
- package/dist/react-video-player.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/index-qaN7n0xb.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import B, {
|
|
2
|
-
import { MinimizeIcon as
|
|
1
|
+
import B, { useDebugValue as bt, createElement as Cn, useRef as xe, useContext as qt, createContext as _n, useState as ut, useEffect as $e, lazy as Ut, Suspense as jn, useCallback as An } from "react";
|
|
2
|
+
import { PauseIcon as Wt, PlayIcon as Bt, MinimizeIcon as On, MaximizeIcon as Nn } from "lucide-react";
|
|
3
3
|
var Ce = { exports: {} }, be = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
@@ -10,10 +10,10 @@ var Ce = { exports: {} }, be = {};
|
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
13
|
+
var wt;
|
|
14
|
+
function In() {
|
|
15
|
+
if (wt) return be;
|
|
16
|
+
wt = 1;
|
|
17
17
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
18
18
|
function n(r, o, s) {
|
|
19
19
|
var a = null;
|
|
@@ -42,22 +42,22 @@ var we = {};
|
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return
|
|
45
|
+
var St;
|
|
46
|
+
function Ln() {
|
|
47
|
+
return St || (St = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
48
48
|
function e(i) {
|
|
49
49
|
if (i == null) return null;
|
|
50
50
|
if (typeof i == "function")
|
|
51
|
-
return i.$$typeof ===
|
|
51
|
+
return i.$$typeof === Xe ? null : i.displayName || i.name || null;
|
|
52
52
|
if (typeof i == "string") return i;
|
|
53
53
|
switch (i) {
|
|
54
|
-
case
|
|
54
|
+
case P:
|
|
55
55
|
return "Fragment";
|
|
56
56
|
case A:
|
|
57
57
|
return "Profiler";
|
|
58
58
|
case D:
|
|
59
59
|
return "StrictMode";
|
|
60
|
-
case
|
|
60
|
+
case f:
|
|
61
61
|
return "Suspense";
|
|
62
62
|
case S:
|
|
63
63
|
return "SuspenseList";
|
|
@@ -68,11 +68,11 @@ function On() {
|
|
|
68
68
|
switch (typeof i.tag == "number" && console.error(
|
|
69
69
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
70
70
|
), i.$$typeof) {
|
|
71
|
-
case
|
|
71
|
+
case T:
|
|
72
72
|
return "Portal";
|
|
73
73
|
case x:
|
|
74
74
|
return (i.displayName || "Context") + ".Provider";
|
|
75
|
-
case
|
|
75
|
+
case _:
|
|
76
76
|
return (i._context.displayName || "Context") + ".Consumer";
|
|
77
77
|
case R:
|
|
78
78
|
var p = i.render;
|
|
@@ -109,7 +109,7 @@ function On() {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
function r(i) {
|
|
112
|
-
if (i ===
|
|
112
|
+
if (i === P) return "<>";
|
|
113
113
|
if (typeof i == "object" && i !== null && i.$$typeof === q)
|
|
114
114
|
return "<...>";
|
|
115
115
|
try {
|
|
@@ -127,7 +127,7 @@ function On() {
|
|
|
127
127
|
return Error("react-stack-top-frame");
|
|
128
128
|
}
|
|
129
129
|
function a(i) {
|
|
130
|
-
if (
|
|
130
|
+
if (Ee.call(i, "key")) {
|
|
131
131
|
var p = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
132
132
|
if (p && p.isReactWarning) return !1;
|
|
133
133
|
}
|
|
@@ -135,7 +135,7 @@ function On() {
|
|
|
135
135
|
}
|
|
136
136
|
function c(i, p) {
|
|
137
137
|
function w() {
|
|
138
|
-
|
|
138
|
+
Re || (Re = !0, console.error(
|
|
139
139
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
140
140
|
p
|
|
141
141
|
));
|
|
@@ -187,7 +187,7 @@ function On() {
|
|
|
187
187
|
var O = p.children;
|
|
188
188
|
if (O !== void 0)
|
|
189
189
|
if (N)
|
|
190
|
-
if (
|
|
190
|
+
if (Pe(O)) {
|
|
191
191
|
for (N = 0; N < O.length; N++)
|
|
192
192
|
h(O[N]);
|
|
193
193
|
Object.freeze && Object.freeze(O);
|
|
@@ -196,7 +196,7 @@ function On() {
|
|
|
196
196
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
197
|
);
|
|
198
198
|
else h(O);
|
|
199
|
-
if (
|
|
199
|
+
if (Ee.call(p, "key")) {
|
|
200
200
|
O = e(i);
|
|
201
201
|
var $ = Object.keys(p).filter(function(ae) {
|
|
202
202
|
return ae !== "key";
|
|
@@ -236,7 +236,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
236
236
|
function h(i) {
|
|
237
237
|
typeof i == "object" && i !== null && i.$$typeof === b && i._store && (i._store.validated = 1);
|
|
238
238
|
}
|
|
239
|
-
var y = B, b = Symbol.for("react.transitional.element"),
|
|
239
|
+
var y = B, b = Symbol.for("react.transitional.element"), T = Symbol.for("react.portal"), P = Symbol.for("react.fragment"), D = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), x = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), X = Symbol.for("react.activity"), Xe = Symbol.for("react.client.reference"), ge = y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ee = Object.prototype.hasOwnProperty, Pe = Array.isArray, ye = console.createTask ? console.createTask : function() {
|
|
240
240
|
return null;
|
|
241
241
|
};
|
|
242
242
|
y = {
|
|
@@ -244,11 +244,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
244
244
|
return i();
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
|
-
var
|
|
247
|
+
var Re, Te = {}, ie = y.react_stack_bottom_frame.bind(
|
|
248
248
|
y,
|
|
249
249
|
s
|
|
250
250
|
)(), ve = ye(r(s)), z = {};
|
|
251
|
-
we.Fragment =
|
|
251
|
+
we.Fragment = P, we.jsx = function(i, p, w, N, V) {
|
|
252
252
|
var F = 1e4 > ge.recentlyCreatedOwnerStacks++;
|
|
253
253
|
return v(
|
|
254
254
|
i,
|
|
@@ -275,242 +275,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
275
275
|
};
|
|
276
276
|
})()), we;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
function
|
|
280
|
-
return
|
|
281
|
-
}
|
|
282
|
-
var f = Nn();
|
|
283
|
-
const St = (e) => {
|
|
284
|
-
let t;
|
|
285
|
-
const n = /* @__PURE__ */ new Set(), r = (l, v) => {
|
|
286
|
-
const h = typeof l == "function" ? l(t) : l;
|
|
287
|
-
if (!Object.is(h, t)) {
|
|
288
|
-
const y = t;
|
|
289
|
-
t = v ?? (typeof h != "object" || h === null) ? h : Object.assign({}, t, h), n.forEach((b) => b(t, y));
|
|
290
|
-
}
|
|
291
|
-
}, o = () => t, c = { setState: r, getState: o, getInitialState: () => u, subscribe: (l) => (n.add(l), () => n.delete(l)) }, u = t = e(r, o, c);
|
|
292
|
-
return c;
|
|
293
|
-
}, In = ((e) => e ? St(e) : St), Ln = (e) => e;
|
|
294
|
-
function Ut(e, t = Ln) {
|
|
295
|
-
const n = B.useSyncExternalStore(
|
|
296
|
-
e.subscribe,
|
|
297
|
-
B.useCallback(() => t(e.getState()), [e, t]),
|
|
298
|
-
B.useCallback(() => t(e.getInitialState()), [e, t])
|
|
299
|
-
);
|
|
300
|
-
return B.useDebugValue(n), n;
|
|
301
|
-
}
|
|
302
|
-
const xt = (e) => {
|
|
303
|
-
const t = In(e), n = (r) => Ut(t, r);
|
|
304
|
-
return Object.assign(n, t), n;
|
|
305
|
-
}, Dn = ((e) => e ? xt(e) : xt);
|
|
306
|
-
function Fn(e, t, n) {
|
|
307
|
-
const r = {
|
|
308
|
-
days: 86400,
|
|
309
|
-
hours: 3600,
|
|
310
|
-
minutes: 60,
|
|
311
|
-
seconds: 1,
|
|
312
|
-
milliseconds: 1e-3
|
|
313
|
-
};
|
|
314
|
-
return e * (r[t] / r[n]);
|
|
315
|
-
}
|
|
316
|
-
function $n(e) {
|
|
317
|
-
return Fn(e, "milliseconds", "seconds");
|
|
278
|
+
var xt;
|
|
279
|
+
function Dn() {
|
|
280
|
+
return xt || (xt = 1, process.env.NODE_ENV === "production" ? Ce.exports = In() : Ce.exports = Ln()), Ce.exports;
|
|
318
281
|
}
|
|
319
|
-
|
|
320
|
-
const t = Math.floor(e / 60), n = Math.floor(e % 60);
|
|
321
|
-
return `${t.toString().padStart(2, "0")}:${n.toString().padStart(2, "0")}`;
|
|
322
|
-
};
|
|
323
|
-
function Mn(e) {
|
|
324
|
-
const t = typeof window < "u" && window.navigator?.userAgent || "";
|
|
325
|
-
return e.test(t);
|
|
326
|
-
}
|
|
327
|
-
const Wt = Mn(/iPhone|iPad|iPod/i);
|
|
328
|
-
function zn() {
|
|
329
|
-
const e = document;
|
|
330
|
-
return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
|
|
331
|
-
}
|
|
332
|
-
function Vn(e) {
|
|
333
|
-
e.requestFullscreen ? e.requestFullscreen() : e.msRequestFullscreen ? e.msRequestFullscreen() : e.webkitRequestFullScreen ? e.webkitRequestFullScreen() : e.webkitEnterFullScreen ? e.webkitEnterFullScreen() : e.mozRequestFullScreen && e.mozRequestFullScreen();
|
|
334
|
-
}
|
|
335
|
-
function Yn(e) {
|
|
336
|
-
e.exitFullscreen ? e.exitFullscreen() : e.msExitFullscreen ? e.msExitFullscreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.mozCancelFullScreen && e.mozCancelFullScreen();
|
|
337
|
-
}
|
|
338
|
-
function qn(e, t) {
|
|
339
|
-
return e.addEventListener("fullscreenchange", t), e.addEventListener("webkitfullscreenchange", t), e.addEventListener("mozfullscreenchange", t), e.addEventListener("MSFullscreenChange", t), () => {
|
|
340
|
-
e.removeEventListener("fullscreenchange", t), e.removeEventListener("webkitfullscreenchange", t), e.removeEventListener("mozfullscreenchange", t), e.removeEventListener("MSFullscreenChange", t);
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
const Un = (e, t) => ({
|
|
344
|
-
currentTime: 0,
|
|
345
|
-
duration: 0,
|
|
346
|
-
isEnded: !1,
|
|
347
|
-
isLoading: !1,
|
|
348
|
-
isLoop: !1,
|
|
349
|
-
isMetaLoaded: !1,
|
|
350
|
-
isPlaying: !1,
|
|
351
|
-
isReady: !1,
|
|
352
|
-
isStarted: !1,
|
|
353
|
-
pauseTime: 0,
|
|
354
|
-
seekTime: -1,
|
|
355
|
-
startTime: -1,
|
|
356
|
-
volume: 100,
|
|
357
|
-
destroy: () => {
|
|
358
|
-
},
|
|
359
|
-
handleDurationChange: () => {
|
|
360
|
-
const n = t().techRef.current;
|
|
361
|
-
n && e({ duration: n.duration });
|
|
362
|
-
},
|
|
363
|
-
handleEnd: () => {
|
|
364
|
-
t().techRef.current && e({
|
|
365
|
-
isEnded: !0,
|
|
366
|
-
isLoading: !1,
|
|
367
|
-
isMetaLoaded: !1,
|
|
368
|
-
isPlaying: !1
|
|
369
|
-
});
|
|
370
|
-
},
|
|
371
|
-
handleLoadedMetadata: () => {
|
|
372
|
-
const n = t().techRef.current;
|
|
373
|
-
n && (n.loop = t().isLoop, n.volume = n.muted ? 0 : 1, t().startTime !== -1 && (n.currentTime = t().startTime), e({
|
|
374
|
-
currentTime: t().startTime !== -1 ? t().startTime : n.currentTime,
|
|
375
|
-
duration: n.duration,
|
|
376
|
-
startTime: -1,
|
|
377
|
-
isMetaLoaded: !0,
|
|
378
|
-
volume: n.muted ? 0 : 100
|
|
379
|
-
}));
|
|
380
|
-
},
|
|
381
|
-
handleLoadStart: () => {
|
|
382
|
-
const n = t().techRef.current;
|
|
383
|
-
n && (e({ isReady: !0 }), n.play().then(() => {
|
|
384
|
-
e({
|
|
385
|
-
isEnded: !1,
|
|
386
|
-
isLoading: !1,
|
|
387
|
-
isPlaying: !0,
|
|
388
|
-
isStarted: !0,
|
|
389
|
-
pauseTime: 0
|
|
390
|
-
});
|
|
391
|
-
}).catch(
|
|
392
|
-
(r) => e(() => (console.info("Player failed to autoplay", r), {
|
|
393
|
-
isStarted: !1,
|
|
394
|
-
isEnded: !1,
|
|
395
|
-
isLoading: !1,
|
|
396
|
-
isPlaying: !1
|
|
397
|
-
}))
|
|
398
|
-
));
|
|
399
|
-
},
|
|
400
|
-
handlePause: () => e({
|
|
401
|
-
isPlaying: !1,
|
|
402
|
-
pauseTime: Date.now()
|
|
403
|
-
}),
|
|
404
|
-
handlePlay: () => e({
|
|
405
|
-
isPlaying: !0,
|
|
406
|
-
pauseTime: 0
|
|
407
|
-
}),
|
|
408
|
-
handlePlaying: () => e({ isLoading: !1 }),
|
|
409
|
-
handleSeeked: () => e({ isLoading: !1 }),
|
|
410
|
-
handleSeeking: () => e({ isLoading: !0 }),
|
|
411
|
-
handleTimeUpdate: () => {
|
|
412
|
-
const n = t().techRef.current;
|
|
413
|
-
n && e({ currentTime: n.currentTime });
|
|
414
|
-
},
|
|
415
|
-
handleWaiting: () => e({ isLoading: !0 }),
|
|
416
|
-
pause: () => {
|
|
417
|
-
const n = t().techRef.current;
|
|
418
|
-
n && (n.pause(), e({
|
|
419
|
-
isEnded: !1,
|
|
420
|
-
isPlaying: !1,
|
|
421
|
-
pauseTime: Date.now()
|
|
422
|
-
}));
|
|
423
|
-
},
|
|
424
|
-
pauseTimeDiff: () => $n(Date.now() - t().pauseTime),
|
|
425
|
-
play: () => {
|
|
426
|
-
const n = t().techRef.current;
|
|
427
|
-
n && (n.play(), e({
|
|
428
|
-
isEnded: !1,
|
|
429
|
-
isPlaying: !0,
|
|
430
|
-
isStarted: !0,
|
|
431
|
-
pauseTime: 0
|
|
432
|
-
}));
|
|
433
|
-
},
|
|
434
|
-
seek: (n) => {
|
|
435
|
-
const r = t().techRef.current;
|
|
436
|
-
r && (r.currentTime = n, (r.paused || r.ended) && r.play(), e({
|
|
437
|
-
seekTime: -1,
|
|
438
|
-
currentTime: n,
|
|
439
|
-
isStarted: !0,
|
|
440
|
-
isEnded: !1,
|
|
441
|
-
isPlaying: !0
|
|
442
|
-
}));
|
|
443
|
-
},
|
|
444
|
-
setIsLoading: (n) => e({ isLoading: n }),
|
|
445
|
-
setIsLoop: (n) => {
|
|
446
|
-
const r = t().techRef.current;
|
|
447
|
-
r && (r.loop = n, e({ isLoop: n }));
|
|
448
|
-
},
|
|
449
|
-
setStartTime: (n) => e({ startTime: n }),
|
|
450
|
-
setVolume: (n) => {
|
|
451
|
-
const r = t().techRef.current;
|
|
452
|
-
r && (r.muted = n === 0, r.volume = n / 100, e({ volume: n }));
|
|
453
|
-
},
|
|
454
|
-
stop: () => {
|
|
455
|
-
t().techRef.current && e({
|
|
456
|
-
isPlaying: !1,
|
|
457
|
-
isLoading: !1
|
|
458
|
-
});
|
|
459
|
-
}
|
|
460
|
-
}), Wn = (e) => ({
|
|
461
|
-
idleLocks: /* @__PURE__ */ new Set(),
|
|
462
|
-
addIdleLock: (t) => e((n) => ({
|
|
463
|
-
idleLocks: new Set(n.idleLocks).add(t)
|
|
464
|
-
})),
|
|
465
|
-
removeIdleLock: (t) => e((n) => {
|
|
466
|
-
const r = new Set(n.idleLocks);
|
|
467
|
-
return r.delete(t), { idleLocks: r };
|
|
468
|
-
})
|
|
469
|
-
}), Bn = (e, t) => ({
|
|
470
|
-
isFullscreen: !1,
|
|
471
|
-
isFullscreenReady: !1,
|
|
472
|
-
exitFullscreen: () => {
|
|
473
|
-
Yn(document), e({ isFullscreen: !1 });
|
|
474
|
-
},
|
|
475
|
-
requestFullscreen: () => {
|
|
476
|
-
const n = t().techRef.current, r = t().containerRef.current;
|
|
477
|
-
if (!n || !r) return;
|
|
478
|
-
const o = Wt ? n : r;
|
|
479
|
-
o && Vn(o), e({ isFullscreen: !0 });
|
|
480
|
-
},
|
|
481
|
-
setIsFullscreen: (n) => e({ isFullscreen: n }),
|
|
482
|
-
setIsFullscreenReady: (n) => e({ isFullscreenReady: n })
|
|
483
|
-
}), Gn = (e) => ({
|
|
484
|
-
url: "",
|
|
485
|
-
setURL: (t) => e({ url: t })
|
|
486
|
-
}), Hn = (e) => () => ({
|
|
487
|
-
...e
|
|
488
|
-
}), Xn = (e, t) => Dn()((...n) => ({
|
|
489
|
-
...Un(...n),
|
|
490
|
-
...Wn(...n),
|
|
491
|
-
...Bn(...n),
|
|
492
|
-
...Gn(...n),
|
|
493
|
-
...Hn({ techRef: e, containerRef: t })(...n)
|
|
494
|
-
})), Bt = Rn(null), Jn = ({ children: e }) => {
|
|
495
|
-
const t = xe(null), n = xe(null), r = xe(null);
|
|
496
|
-
return t.current || (t.current = Xn(n, r)), /* @__PURE__ */ f.jsx(Bt.Provider, { value: t.current, children: e });
|
|
497
|
-
}, j = (e) => {
|
|
498
|
-
const t = Vt(Bt);
|
|
499
|
-
if (!t)
|
|
500
|
-
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
501
|
-
return Ut(t, e);
|
|
502
|
-
};
|
|
503
|
-
function Gt({ children: e }) {
|
|
504
|
-
return /* @__PURE__ */ f.jsx(Jn, { children: e });
|
|
505
|
-
}
|
|
506
|
-
const $e = {
|
|
507
|
-
hls: "hls",
|
|
508
|
-
dash: "dash"
|
|
509
|
-
};
|
|
510
|
-
function Zn(e) {
|
|
511
|
-
return e && /\.m3u8/i.test(e) ? $e.hls : $e.dash;
|
|
512
|
-
}
|
|
513
|
-
var M = function() {
|
|
282
|
+
var d = Dn(), M = function() {
|
|
514
283
|
return M = Object.assign || function(t) {
|
|
515
284
|
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
516
285
|
n = arguments[r];
|
|
@@ -524,22 +293,22 @@ function oe(e, t, n) {
|
|
|
524
293
|
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
525
294
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
526
295
|
}
|
|
527
|
-
function
|
|
296
|
+
function Fn(e) {
|
|
528
297
|
var t = /* @__PURE__ */ Object.create(null);
|
|
529
298
|
return function(n) {
|
|
530
299
|
return t[n] === void 0 && (t[n] = e(n)), t[n];
|
|
531
300
|
};
|
|
532
301
|
}
|
|
533
|
-
var
|
|
302
|
+
var $n = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Mn = /* @__PURE__ */ Fn(
|
|
534
303
|
function(e) {
|
|
535
|
-
return
|
|
304
|
+
return $n.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
536
305
|
}
|
|
537
306
|
/* Z+1 */
|
|
538
|
-
),
|
|
539
|
-
function
|
|
307
|
+
), j = "-ms-", ke = "-moz-", k = "-webkit-", Gt = "comm", qe = "rule", dt = "decl", zn = "@import", Ht = "@keyframes", Vn = "@layer", Xt = Math.abs, ft = String.fromCharCode, et = Object.assign;
|
|
308
|
+
function Yn(e, t) {
|
|
540
309
|
return L(e, 0) ^ 45 ? (((t << 2 ^ L(e, 0)) << 2 ^ L(e, 1)) << 2 ^ L(e, 2)) << 2 ^ L(e, 3) : 0;
|
|
541
310
|
}
|
|
542
|
-
function
|
|
311
|
+
function Jt(e) {
|
|
543
312
|
return e.trim();
|
|
544
313
|
}
|
|
545
314
|
function H(e, t) {
|
|
@@ -560,13 +329,13 @@ function le(e, t, n) {
|
|
|
560
329
|
function W(e) {
|
|
561
330
|
return e.length;
|
|
562
331
|
}
|
|
563
|
-
function
|
|
332
|
+
function Zt(e) {
|
|
564
333
|
return e.length;
|
|
565
334
|
}
|
|
566
335
|
function Se(e, t) {
|
|
567
336
|
return t.push(e), e;
|
|
568
337
|
}
|
|
569
|
-
function
|
|
338
|
+
function qn(e, t) {
|
|
570
339
|
return e.map(t).join("");
|
|
571
340
|
}
|
|
572
341
|
function kt(e, t) {
|
|
@@ -574,26 +343,26 @@ function kt(e, t) {
|
|
|
574
343
|
return !H(n, t);
|
|
575
344
|
});
|
|
576
345
|
}
|
|
577
|
-
var
|
|
578
|
-
function
|
|
579
|
-
return { value: e, root: t, parent: n, type: r, props: o, children: s, line:
|
|
346
|
+
var Ue = 1, ue = 1, Kt = 0, Y = 0, I = 0, he = "";
|
|
347
|
+
function We(e, t, n, r, o, s, a, c) {
|
|
348
|
+
return { value: e, root: t, parent: n, type: r, props: o, children: s, line: Ue, column: ue, length: a, return: "", siblings: c };
|
|
580
349
|
}
|
|
581
350
|
function K(e, t) {
|
|
582
|
-
return et(
|
|
351
|
+
return et(We("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
583
352
|
}
|
|
584
353
|
function ce(e) {
|
|
585
354
|
for (; e.root; )
|
|
586
355
|
e = K(e.root, { children: [e] });
|
|
587
356
|
Se(e, e.siblings);
|
|
588
357
|
}
|
|
589
|
-
function
|
|
358
|
+
function Un() {
|
|
590
359
|
return I;
|
|
591
360
|
}
|
|
592
|
-
function
|
|
593
|
-
return I = Y > 0 ? L(he, --Y) : 0, ue--, I === 10 && (ue = 1,
|
|
361
|
+
function Wn() {
|
|
362
|
+
return I = Y > 0 ? L(he, --Y) : 0, ue--, I === 10 && (ue = 1, Ue--), I;
|
|
594
363
|
}
|
|
595
364
|
function U() {
|
|
596
|
-
return I = Y <
|
|
365
|
+
return I = Y < Kt ? L(he, Y++) : 0, ue++, I === 10 && (ue = 1, Ue++), I;
|
|
597
366
|
}
|
|
598
367
|
function ne() {
|
|
599
368
|
return L(he, Y);
|
|
@@ -601,7 +370,7 @@ function ne() {
|
|
|
601
370
|
function Ie() {
|
|
602
371
|
return Y;
|
|
603
372
|
}
|
|
604
|
-
function
|
|
373
|
+
function Be(e, t) {
|
|
605
374
|
return le(he, e, t);
|
|
606
375
|
}
|
|
607
376
|
function tt(e) {
|
|
@@ -642,24 +411,24 @@ function tt(e) {
|
|
|
642
411
|
}
|
|
643
412
|
return 0;
|
|
644
413
|
}
|
|
645
|
-
function
|
|
646
|
-
return
|
|
414
|
+
function Bn(e) {
|
|
415
|
+
return Ue = ue = 1, Kt = W(he = e), Y = 0, [];
|
|
647
416
|
}
|
|
648
|
-
function
|
|
417
|
+
function Gn(e) {
|
|
649
418
|
return he = "", e;
|
|
650
419
|
}
|
|
651
|
-
function
|
|
652
|
-
return
|
|
420
|
+
function Je(e) {
|
|
421
|
+
return Jt(Be(Y - 1, nt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
653
422
|
}
|
|
654
|
-
function
|
|
423
|
+
function Hn(e) {
|
|
655
424
|
for (; (I = ne()) && I < 33; )
|
|
656
425
|
U();
|
|
657
426
|
return tt(e) > 2 || tt(I) > 3 ? "" : " ";
|
|
658
427
|
}
|
|
659
|
-
function
|
|
428
|
+
function Xn(e, t) {
|
|
660
429
|
for (; --t && U() && !(I < 48 || I > 102 || I > 57 && I < 65 || I > 70 && I < 97); )
|
|
661
430
|
;
|
|
662
|
-
return
|
|
431
|
+
return Be(e, Ie() + (t < 6 && ne() == 32 && U() == 32));
|
|
663
432
|
}
|
|
664
433
|
function nt(e) {
|
|
665
434
|
for (; U(); )
|
|
@@ -683,65 +452,65 @@ function nt(e) {
|
|
|
683
452
|
}
|
|
684
453
|
return Y;
|
|
685
454
|
}
|
|
686
|
-
function
|
|
455
|
+
function Jn(e, t) {
|
|
687
456
|
for (; U() && e + I !== 57; )
|
|
688
457
|
if (e + I === 84 && ne() === 47)
|
|
689
458
|
break;
|
|
690
|
-
return "/*" +
|
|
459
|
+
return "/*" + Be(t, Y - 1) + "*" + ft(e === 47 ? e : U());
|
|
691
460
|
}
|
|
692
|
-
function
|
|
461
|
+
function Zn(e) {
|
|
693
462
|
for (; !tt(ne()); )
|
|
694
463
|
U();
|
|
695
|
-
return
|
|
464
|
+
return Be(e, Y);
|
|
696
465
|
}
|
|
697
|
-
function
|
|
698
|
-
return
|
|
466
|
+
function Kn(e) {
|
|
467
|
+
return Gn(Le("", null, null, null, [""], e = Bn(e), 0, [0], e));
|
|
699
468
|
}
|
|
700
469
|
function Le(e, t, n, r, o, s, a, c, u) {
|
|
701
|
-
for (var l = 0, v = 0, h = a, y = 0, b = 0,
|
|
702
|
-
switch (
|
|
470
|
+
for (var l = 0, v = 0, h = a, y = 0, b = 0, T = 0, P = 1, D = 1, A = 1, _ = 0, x = "", R = o, f = s, S = r, m = x; D; )
|
|
471
|
+
switch (T = _, _ = U()) {
|
|
703
472
|
// (
|
|
704
473
|
case 40:
|
|
705
|
-
if (
|
|
706
|
-
Ne(m += g(
|
|
474
|
+
if (T != 108 && L(m, h - 1) == 58) {
|
|
475
|
+
Ne(m += g(Je(_), "&", "&\f"), "&\f", Xt(l ? c[l - 1] : 0)) != -1 && (A = -1);
|
|
707
476
|
break;
|
|
708
477
|
}
|
|
709
478
|
// " ' [
|
|
710
479
|
case 34:
|
|
711
480
|
case 39:
|
|
712
481
|
case 91:
|
|
713
|
-
m +=
|
|
482
|
+
m += Je(_);
|
|
714
483
|
break;
|
|
715
484
|
// \t \n \r \s
|
|
716
485
|
case 9:
|
|
717
486
|
case 10:
|
|
718
487
|
case 13:
|
|
719
488
|
case 32:
|
|
720
|
-
m +=
|
|
489
|
+
m += Hn(T);
|
|
721
490
|
break;
|
|
722
491
|
// \
|
|
723
492
|
case 92:
|
|
724
|
-
m +=
|
|
493
|
+
m += Xn(Ie() - 1, 7);
|
|
725
494
|
continue;
|
|
726
495
|
// /
|
|
727
496
|
case 47:
|
|
728
497
|
switch (ne()) {
|
|
729
498
|
case 42:
|
|
730
499
|
case 47:
|
|
731
|
-
Se(
|
|
500
|
+
Se(Qn(Jn(U(), Ie()), t, n, u), u);
|
|
732
501
|
break;
|
|
733
502
|
default:
|
|
734
503
|
m += "/";
|
|
735
504
|
}
|
|
736
505
|
break;
|
|
737
506
|
// {
|
|
738
|
-
case 123 *
|
|
507
|
+
case 123 * P:
|
|
739
508
|
c[l++] = W(m) * A;
|
|
740
509
|
// } ; \0
|
|
741
|
-
case 125 *
|
|
510
|
+
case 125 * P:
|
|
742
511
|
case 59:
|
|
743
512
|
case 0:
|
|
744
|
-
switch (
|
|
513
|
+
switch (_) {
|
|
745
514
|
// \0 }
|
|
746
515
|
case 0:
|
|
747
516
|
case 125:
|
|
@@ -755,9 +524,9 @@ function Le(e, t, n, r, o, s, a, c, u) {
|
|
|
755
524
|
m += ";";
|
|
756
525
|
// { rule/at-rule
|
|
757
526
|
default:
|
|
758
|
-
if (Se(S =
|
|
527
|
+
if (Se(S = Et(m, t, n, l, v, o, c, x, R = [], f = [], h, s), s), _ === 123)
|
|
759
528
|
if (v === 0)
|
|
760
|
-
Le(m, t, S, S, R, s, h, c,
|
|
529
|
+
Le(m, t, S, S, R, s, h, c, f);
|
|
761
530
|
else
|
|
762
531
|
switch (y === 99 && L(m, 3) === 110 ? 100 : y) {
|
|
763
532
|
// d l m s
|
|
@@ -765,25 +534,25 @@ function Le(e, t, n, r, o, s, a, c, u) {
|
|
|
765
534
|
case 108:
|
|
766
535
|
case 109:
|
|
767
536
|
case 115:
|
|
768
|
-
Le(e, S, S, r && Se(
|
|
537
|
+
Le(e, S, S, r && Se(Et(e, S, S, 0, 0, o, c, x, o, R = [], h, f), f), o, f, h, c, r ? R : f);
|
|
769
538
|
break;
|
|
770
539
|
default:
|
|
771
|
-
Le(m, S, S, S, [""],
|
|
540
|
+
Le(m, S, S, S, [""], f, 0, c, f);
|
|
772
541
|
}
|
|
773
542
|
}
|
|
774
|
-
l = v = b = 0,
|
|
543
|
+
l = v = b = 0, P = A = 1, x = m = "", h = a;
|
|
775
544
|
break;
|
|
776
545
|
// :
|
|
777
546
|
case 58:
|
|
778
|
-
h = 1 + W(m), b =
|
|
547
|
+
h = 1 + W(m), b = T;
|
|
779
548
|
default:
|
|
780
|
-
if (
|
|
781
|
-
if (
|
|
782
|
-
--
|
|
783
|
-
else if (
|
|
549
|
+
if (P < 1) {
|
|
550
|
+
if (_ == 123)
|
|
551
|
+
--P;
|
|
552
|
+
else if (_ == 125 && P++ == 0 && Wn() == 125)
|
|
784
553
|
continue;
|
|
785
554
|
}
|
|
786
|
-
switch (m +=
|
|
555
|
+
switch (m += ft(_), _ * P) {
|
|
787
556
|
// &
|
|
788
557
|
case 38:
|
|
789
558
|
A = v > 0 ? 1 : (m += "\f", -1);
|
|
@@ -794,32 +563,32 @@ function Le(e, t, n, r, o, s, a, c, u) {
|
|
|
794
563
|
break;
|
|
795
564
|
// @
|
|
796
565
|
case 64:
|
|
797
|
-
ne() === 45 && (m +=
|
|
566
|
+
ne() === 45 && (m += Je(U())), y = ne(), v = h = W(x = m += Zn(Ie())), _++;
|
|
798
567
|
break;
|
|
799
568
|
// -
|
|
800
569
|
case 45:
|
|
801
|
-
|
|
570
|
+
T === 45 && W(m) == 2 && (P = 0);
|
|
802
571
|
}
|
|
803
572
|
}
|
|
804
573
|
return s;
|
|
805
574
|
}
|
|
806
|
-
function
|
|
807
|
-
for (var y = o - 1, b = o === 0 ? s : [""],
|
|
808
|
-
for (var
|
|
809
|
-
(R =
|
|
810
|
-
return
|
|
575
|
+
function Et(e, t, n, r, o, s, a, c, u, l, v, h) {
|
|
576
|
+
for (var y = o - 1, b = o === 0 ? s : [""], T = Zt(b), P = 0, D = 0, A = 0; P < r; ++P)
|
|
577
|
+
for (var _ = 0, x = le(e, y + 1, y = Xt(D = a[P])), R = e; _ < T; ++_)
|
|
578
|
+
(R = Jt(D > 0 ? b[_] + " " + x : g(x, /&\f/g, b[_]))) && (u[A++] = R);
|
|
579
|
+
return We(e, t, n, o === 0 ? qe : c, u, l, v, h);
|
|
811
580
|
}
|
|
812
|
-
function
|
|
813
|
-
return
|
|
581
|
+
function Qn(e, t, n, r) {
|
|
582
|
+
return We(e, t, n, Gt, ft(Un()), le(e, 2, -2), 0, r);
|
|
814
583
|
}
|
|
815
584
|
function Pt(e, t, n, r, o) {
|
|
816
|
-
return
|
|
585
|
+
return We(e, t, n, dt, le(e, 0, r), le(e, r + 1, -1), r, o);
|
|
817
586
|
}
|
|
818
|
-
function
|
|
819
|
-
switch (
|
|
587
|
+
function Qt(e, t, n) {
|
|
588
|
+
switch (Yn(e, t)) {
|
|
820
589
|
// color-adjust
|
|
821
590
|
case 5103:
|
|
822
|
-
return
|
|
591
|
+
return k + "print-" + e + e;
|
|
823
592
|
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
824
593
|
case 5737:
|
|
825
594
|
case 4201:
|
|
@@ -849,95 +618,95 @@ function en(e, t, n) {
|
|
|
849
618
|
case 5365:
|
|
850
619
|
case 5621:
|
|
851
620
|
case 3829:
|
|
852
|
-
return
|
|
621
|
+
return k + e + e;
|
|
853
622
|
// tab-size
|
|
854
623
|
case 4789:
|
|
855
|
-
return
|
|
624
|
+
return ke + e + e;
|
|
856
625
|
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
857
626
|
case 5349:
|
|
858
627
|
case 4246:
|
|
859
628
|
case 4810:
|
|
860
629
|
case 6968:
|
|
861
630
|
case 2756:
|
|
862
|
-
return
|
|
631
|
+
return k + e + ke + e + j + e + e;
|
|
863
632
|
// writing-mode
|
|
864
633
|
case 5936:
|
|
865
634
|
switch (L(e, t + 11)) {
|
|
866
635
|
// vertical-l(r)
|
|
867
636
|
case 114:
|
|
868
|
-
return
|
|
637
|
+
return k + e + j + g(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
869
638
|
// vertical-r(l)
|
|
870
639
|
case 108:
|
|
871
|
-
return
|
|
640
|
+
return k + e + j + g(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
872
641
|
// horizontal(-)tb
|
|
873
642
|
case 45:
|
|
874
|
-
return
|
|
643
|
+
return k + e + j + g(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
875
644
|
}
|
|
876
645
|
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
877
646
|
case 6828:
|
|
878
647
|
case 4268:
|
|
879
648
|
case 2903:
|
|
880
|
-
return
|
|
649
|
+
return k + e + j + e + e;
|
|
881
650
|
// order
|
|
882
651
|
case 6165:
|
|
883
|
-
return
|
|
652
|
+
return k + e + j + "flex-" + e + e;
|
|
884
653
|
// align-items
|
|
885
654
|
case 5187:
|
|
886
|
-
return
|
|
655
|
+
return k + e + g(e, /(\w+).+(:[^]+)/, k + "box-$1$2" + j + "flex-$1$2") + e;
|
|
887
656
|
// align-self
|
|
888
657
|
case 5443:
|
|
889
|
-
return
|
|
658
|
+
return k + e + j + "flex-item-" + g(e, /flex-|-self/g, "") + (H(e, /flex-|baseline/) ? "" : j + "grid-row-" + g(e, /flex-|-self/g, "")) + e;
|
|
890
659
|
// align-content
|
|
891
660
|
case 4675:
|
|
892
|
-
return
|
|
661
|
+
return k + e + j + "flex-line-pack" + g(e, /align-content|flex-|-self/g, "") + e;
|
|
893
662
|
// flex-shrink
|
|
894
663
|
case 5548:
|
|
895
|
-
return
|
|
664
|
+
return k + e + j + g(e, "shrink", "negative") + e;
|
|
896
665
|
// flex-basis
|
|
897
666
|
case 5292:
|
|
898
|
-
return
|
|
667
|
+
return k + e + j + g(e, "basis", "preferred-size") + e;
|
|
899
668
|
// flex-grow
|
|
900
669
|
case 6060:
|
|
901
|
-
return
|
|
670
|
+
return k + "box-" + g(e, "-grow", "") + k + e + j + g(e, "grow", "positive") + e;
|
|
902
671
|
// transition
|
|
903
672
|
case 4554:
|
|
904
|
-
return
|
|
673
|
+
return k + g(e, /([^-])(transform)/g, "$1" + k + "$2") + e;
|
|
905
674
|
// cursor
|
|
906
675
|
case 6187:
|
|
907
|
-
return g(g(g(e, /(zoom-|grab)/,
|
|
676
|
+
return g(g(g(e, /(zoom-|grab)/, k + "$1"), /(image-set)/, k + "$1"), e, "") + e;
|
|
908
677
|
// background, background-image
|
|
909
678
|
case 5495:
|
|
910
679
|
case 3959:
|
|
911
|
-
return g(e, /(image-set\([^]*)/,
|
|
680
|
+
return g(e, /(image-set\([^]*)/, k + "$1$`$1");
|
|
912
681
|
// justify-content
|
|
913
682
|
case 4968:
|
|
914
|
-
return g(g(e, /(.+:)(flex-)?(.*)/,
|
|
683
|
+
return g(g(e, /(.+:)(flex-)?(.*)/, k + "box-pack:$3" + j + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + k + e + e;
|
|
915
684
|
// justify-self
|
|
916
685
|
case 4200:
|
|
917
|
-
if (!H(e, /flex-|baseline/)) return
|
|
686
|
+
if (!H(e, /flex-|baseline/)) return j + "grid-column-align" + le(e, t) + e;
|
|
918
687
|
break;
|
|
919
688
|
// grid-template-(columns|rows)
|
|
920
689
|
case 2592:
|
|
921
690
|
case 3360:
|
|
922
|
-
return
|
|
691
|
+
return j + g(e, "template-", "") + e;
|
|
923
692
|
// grid-(row|column)-start
|
|
924
693
|
case 4384:
|
|
925
694
|
case 3616:
|
|
926
695
|
return n && n.some(function(r, o) {
|
|
927
696
|
return t = o, H(r.props, /grid-\w+-end/);
|
|
928
|
-
}) ? ~Ne(e + (n = n[t].value), "span", 0) ? e :
|
|
697
|
+
}) ? ~Ne(e + (n = n[t].value), "span", 0) ? e : j + g(e, "-start", "") + e + j + "grid-row-span:" + (~Ne(n, "span", 0) ? H(n, /\d+/) : +H(n, /\d+/) - +H(e, /\d+/)) + ";" : j + g(e, "-start", "") + e;
|
|
929
698
|
// grid-(row|column)-end
|
|
930
699
|
case 4896:
|
|
931
700
|
case 4128:
|
|
932
701
|
return n && n.some(function(r) {
|
|
933
702
|
return H(r.props, /grid-\w+-start/);
|
|
934
|
-
}) ? e :
|
|
703
|
+
}) ? e : j + g(g(e, "-end", "-span"), "span ", "") + e;
|
|
935
704
|
// (margin|padding)-inline-(start|end)
|
|
936
705
|
case 4095:
|
|
937
706
|
case 3583:
|
|
938
707
|
case 4068:
|
|
939
708
|
case 2532:
|
|
940
|
-
return g(e, /(.+)-inline(.+)/,
|
|
709
|
+
return g(e, /(.+)-inline(.+)/, k + "$1$2") + e;
|
|
941
710
|
// (min|max)?(width|height|inline-size|block-size)
|
|
942
711
|
case 8116:
|
|
943
712
|
case 7059:
|
|
@@ -959,32 +728,32 @@ function en(e, t, n) {
|
|
|
959
728
|
break;
|
|
960
729
|
// (f)ill-available, (f)it-content
|
|
961
730
|
case 102:
|
|
962
|
-
return g(e, /(.+:)(.+)-([^]+)/, "$1" +
|
|
731
|
+
return g(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + ke + (L(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
963
732
|
// (s)tretch
|
|
964
733
|
case 115:
|
|
965
|
-
return ~Ne(e, "stretch", 0) ?
|
|
734
|
+
return ~Ne(e, "stretch", 0) ? Qt(g(e, "stretch", "fill-available"), t, n) + e : e;
|
|
966
735
|
}
|
|
967
736
|
break;
|
|
968
737
|
// grid-(column|row)
|
|
969
738
|
case 5152:
|
|
970
739
|
case 5920:
|
|
971
740
|
return g(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, o, s, a, c, u, l) {
|
|
972
|
-
return
|
|
741
|
+
return j + o + ":" + s + l + (a ? j + o + "-span:" + (c ? u : +u - +s) + l : "") + e;
|
|
973
742
|
});
|
|
974
743
|
// position: sticky
|
|
975
744
|
case 4949:
|
|
976
745
|
if (L(e, t + 6) === 121)
|
|
977
|
-
return g(e, ":", ":" +
|
|
746
|
+
return g(e, ":", ":" + k) + e;
|
|
978
747
|
break;
|
|
979
748
|
// display: (flex|inline-flex|grid|inline-grid)
|
|
980
749
|
case 6444:
|
|
981
750
|
switch (L(e, L(e, 14) === 45 ? 18 : 11)) {
|
|
982
751
|
// (inline-)?fle(x)
|
|
983
752
|
case 120:
|
|
984
|
-
return g(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" +
|
|
753
|
+
return g(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + k + (L(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + j + "$2box$3") + e;
|
|
985
754
|
// (inline-)?gri(d)
|
|
986
755
|
case 100:
|
|
987
|
-
return g(e, ":", ":" +
|
|
756
|
+
return g(e, ":", ":" + j) + e;
|
|
988
757
|
}
|
|
989
758
|
break;
|
|
990
759
|
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
@@ -1002,62 +771,62 @@ function Me(e, t) {
|
|
|
1002
771
|
n += t(e[r], r, e, t) || "";
|
|
1003
772
|
return n;
|
|
1004
773
|
}
|
|
1005
|
-
function
|
|
774
|
+
function er(e, t, n, r) {
|
|
1006
775
|
switch (e.type) {
|
|
1007
|
-
case
|
|
776
|
+
case Vn:
|
|
1008
777
|
if (e.children.length) break;
|
|
1009
|
-
case
|
|
1010
|
-
case
|
|
778
|
+
case zn:
|
|
779
|
+
case dt:
|
|
1011
780
|
return e.return = e.return || e.value;
|
|
1012
|
-
case
|
|
781
|
+
case Gt:
|
|
1013
782
|
return "";
|
|
1014
|
-
case
|
|
783
|
+
case Ht:
|
|
1015
784
|
return e.return = e.value + "{" + Me(e.children, r) + "}";
|
|
1016
|
-
case
|
|
785
|
+
case qe:
|
|
1017
786
|
if (!W(e.value = e.props.join(","))) return "";
|
|
1018
787
|
}
|
|
1019
788
|
return W(n = Me(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
1020
789
|
}
|
|
1021
|
-
function
|
|
1022
|
-
var t =
|
|
790
|
+
function tr(e) {
|
|
791
|
+
var t = Zt(e);
|
|
1023
792
|
return function(n, r, o, s) {
|
|
1024
793
|
for (var a = "", c = 0; c < t; c++)
|
|
1025
794
|
a += e[c](n, r, o, s) || "";
|
|
1026
795
|
return a;
|
|
1027
796
|
};
|
|
1028
797
|
}
|
|
1029
|
-
function
|
|
798
|
+
function nr(e) {
|
|
1030
799
|
return function(t) {
|
|
1031
800
|
t.root || (t = t.return) && e(t);
|
|
1032
801
|
};
|
|
1033
802
|
}
|
|
1034
|
-
function
|
|
803
|
+
function rr(e, t, n, r) {
|
|
1035
804
|
if (e.length > -1 && !e.return)
|
|
1036
805
|
switch (e.type) {
|
|
1037
|
-
case
|
|
1038
|
-
e.return =
|
|
806
|
+
case dt:
|
|
807
|
+
e.return = Qt(e.value, e.length, n);
|
|
1039
808
|
return;
|
|
1040
|
-
case
|
|
1041
|
-
return Me([K(e, { value: g(e.value, "@", "@" +
|
|
1042
|
-
case
|
|
809
|
+
case Ht:
|
|
810
|
+
return Me([K(e, { value: g(e.value, "@", "@" + k) })], r);
|
|
811
|
+
case qe:
|
|
1043
812
|
if (e.length)
|
|
1044
|
-
return
|
|
813
|
+
return qn(n = e.props, function(o) {
|
|
1045
814
|
switch (H(o, r = /(::plac\w+|:read-\w+)/)) {
|
|
1046
815
|
// :read-(only|write)
|
|
1047
816
|
case ":read-only":
|
|
1048
817
|
case ":read-write":
|
|
1049
|
-
ce(K(e, { props: [g(o, /:(read-\w+)/, ":" +
|
|
818
|
+
ce(K(e, { props: [g(o, /:(read-\w+)/, ":" + ke + "$1")] })), ce(K(e, { props: [o] })), et(e, { props: kt(n, r) });
|
|
1050
819
|
break;
|
|
1051
820
|
// :placeholder
|
|
1052
821
|
case "::placeholder":
|
|
1053
|
-
ce(K(e, { props: [g(o, /:(plac\w+)/, ":" +
|
|
822
|
+
ce(K(e, { props: [g(o, /:(plac\w+)/, ":" + k + "input-$1")] })), ce(K(e, { props: [g(o, /:(plac\w+)/, ":" + ke + "$1")] })), ce(K(e, { props: [g(o, /:(plac\w+)/, j + "input-$1")] })), ce(K(e, { props: [o] })), et(e, { props: kt(n, r) });
|
|
1054
823
|
break;
|
|
1055
824
|
}
|
|
1056
825
|
return "";
|
|
1057
826
|
});
|
|
1058
827
|
}
|
|
1059
828
|
}
|
|
1060
|
-
var
|
|
829
|
+
var or = {
|
|
1061
830
|
animationIterationCount: 1,
|
|
1062
831
|
aspectRatio: 1,
|
|
1063
832
|
borderImageOutset: 1,
|
|
@@ -1105,8 +874,8 @@ var br = {
|
|
|
1105
874
|
strokeMiterlimit: 1,
|
|
1106
875
|
strokeOpacity: 1,
|
|
1107
876
|
strokeWidth: 1
|
|
1108
|
-
}, se = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled",
|
|
1109
|
-
`, ze = typeof window < "u" && typeof document < "u",
|
|
877
|
+
}, se = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", en = "active", tn = "data-styled-version", Ge = "6.1.19", pt = `/*!sc*/
|
|
878
|
+
`, ze = typeof window < "u" && typeof document < "u", sr = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Rt = /invalid hook call/i, _e = /* @__PURE__ */ new Set(), ir = function(e, t) {
|
|
1110
879
|
if (process.env.NODE_ENV !== "production") {
|
|
1111
880
|
var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
|
|
1112
881
|
`) + `You may see this warning because you've called styled inside another component.
|
|
@@ -1117,65 +886,65 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
|
|
|
1117
886
|
var s = !0;
|
|
1118
887
|
console.error = function(a) {
|
|
1119
888
|
for (var c = [], u = 1; u < arguments.length; u++) c[u - 1] = arguments[u];
|
|
1120
|
-
|
|
889
|
+
Rt.test(a) ? (s = !1, _e.delete(r)) : o.apply(void 0, oe([a], c, !1));
|
|
1121
890
|
}, xe(), s && !_e.has(r) && (console.warn(r), _e.add(r));
|
|
1122
891
|
} catch (a) {
|
|
1123
|
-
|
|
892
|
+
Rt.test(a.message) && _e.delete(r);
|
|
1124
893
|
} finally {
|
|
1125
894
|
console.error = o;
|
|
1126
895
|
}
|
|
1127
896
|
}
|
|
1128
|
-
},
|
|
1129
|
-
function
|
|
897
|
+
}, He = Object.freeze([]), de = Object.freeze({});
|
|
898
|
+
function ar(e, t, n) {
|
|
1130
899
|
return n === void 0 && (n = de), e.theme !== n.theme && e.theme || t || n.theme;
|
|
1131
900
|
}
|
|
1132
|
-
var rt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]),
|
|
1133
|
-
function
|
|
1134
|
-
return e.replace(
|
|
901
|
+
var rt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), cr = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, lr = /(^-|-$)/g;
|
|
902
|
+
function Tt(e) {
|
|
903
|
+
return e.replace(cr, "-").replace(lr, "");
|
|
1135
904
|
}
|
|
1136
|
-
var
|
|
905
|
+
var ur = /(a)(d)/gi, je = 52, Ct = function(e) {
|
|
1137
906
|
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1138
907
|
};
|
|
1139
908
|
function ot(e) {
|
|
1140
909
|
var t, n = "";
|
|
1141
|
-
for (t = Math.abs(e); t >
|
|
1142
|
-
return (
|
|
910
|
+
for (t = Math.abs(e); t > je; t = t / je | 0) n = Ct(t % je) + n;
|
|
911
|
+
return (Ct(t % je) + n).replace(ur, "$1-$2");
|
|
1143
912
|
}
|
|
1144
|
-
var
|
|
913
|
+
var Ze, nn = 5381, ee = function(e, t) {
|
|
1145
914
|
for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
|
|
1146
915
|
return e;
|
|
1147
|
-
},
|
|
1148
|
-
return ee(
|
|
916
|
+
}, rn = function(e) {
|
|
917
|
+
return ee(nn, e);
|
|
1149
918
|
};
|
|
1150
|
-
function
|
|
1151
|
-
return ot(
|
|
919
|
+
function on(e) {
|
|
920
|
+
return ot(rn(e) >>> 0);
|
|
1152
921
|
}
|
|
1153
|
-
function
|
|
922
|
+
function sn(e) {
|
|
1154
923
|
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
1155
924
|
}
|
|
1156
|
-
function
|
|
925
|
+
function Ke(e) {
|
|
1157
926
|
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1158
927
|
}
|
|
1159
|
-
var
|
|
1160
|
-
function
|
|
1161
|
-
return ("type" in (t = e) && t.type.$$typeof) ===
|
|
928
|
+
var an = typeof Symbol == "function" && Symbol.for, cn = an ? Symbol.for("react.memo") : 60115, dr = an ? Symbol.for("react.forward_ref") : 60112, fr = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, pr = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, ln = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, hr = ((Ze = {})[dr] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Ze[cn] = ln, Ze);
|
|
929
|
+
function _t(e) {
|
|
930
|
+
return ("type" in (t = e) && t.type.$$typeof) === cn ? ln : "$$typeof" in e ? hr[e.$$typeof] : fr;
|
|
1162
931
|
var t;
|
|
1163
932
|
}
|
|
1164
|
-
var
|
|
1165
|
-
function
|
|
933
|
+
var mr = Object.defineProperty, gr = Object.getOwnPropertyNames, jt = Object.getOwnPropertySymbols, yr = Object.getOwnPropertyDescriptor, vr = Object.getPrototypeOf, At = Object.prototype;
|
|
934
|
+
function un(e, t, n) {
|
|
1166
935
|
if (typeof t != "string") {
|
|
1167
|
-
if (
|
|
1168
|
-
var r =
|
|
1169
|
-
r && r !==
|
|
936
|
+
if (At) {
|
|
937
|
+
var r = vr(t);
|
|
938
|
+
r && r !== At && un(e, r, n);
|
|
1170
939
|
}
|
|
1171
|
-
var o =
|
|
940
|
+
var o = gr(t);
|
|
1172
941
|
jt && (o = o.concat(jt(t)));
|
|
1173
|
-
for (var s =
|
|
942
|
+
for (var s = _t(e), a = _t(t), c = 0; c < o.length; ++c) {
|
|
1174
943
|
var u = o[c];
|
|
1175
|
-
if (!(u in
|
|
1176
|
-
var l =
|
|
944
|
+
if (!(u in pr || n && n[u] || a && u in a || s && u in s)) {
|
|
945
|
+
var l = yr(t, u);
|
|
1177
946
|
try {
|
|
1178
|
-
|
|
947
|
+
mr(e, u, l);
|
|
1179
948
|
} catch {
|
|
1180
949
|
}
|
|
1181
950
|
}
|
|
@@ -1186,7 +955,7 @@ function dn(e, t, n) {
|
|
|
1186
955
|
function fe(e) {
|
|
1187
956
|
return typeof e == "function";
|
|
1188
957
|
}
|
|
1189
|
-
function
|
|
958
|
+
function ht(e) {
|
|
1190
959
|
return typeof e == "object" && "styledComponentId" in e;
|
|
1191
960
|
}
|
|
1192
961
|
function te(e, t) {
|
|
@@ -1206,10 +975,10 @@ function it(e, t, n) {
|
|
|
1206
975
|
else if (pe(t)) for (var r in t) e[r] = it(e[r], t[r]);
|
|
1207
976
|
return e;
|
|
1208
977
|
}
|
|
1209
|
-
function
|
|
978
|
+
function mt(e, t) {
|
|
1210
979
|
Object.defineProperty(e, "toString", { value: t });
|
|
1211
980
|
}
|
|
1212
|
-
var
|
|
981
|
+
var br = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
1213
982
|
|
|
1214
983
|
`, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
1215
984
|
|
|
@@ -1251,7 +1020,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
1251
1020
|
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
1252
1021
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
1253
1022
|
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
1254
|
-
function
|
|
1023
|
+
function wr() {
|
|
1255
1024
|
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1256
1025
|
for (var n = e[0], r = [], o = 1, s = e.length; o < s; o += 1) r.push(e[o]);
|
|
1257
1026
|
return r.forEach(function(a) {
|
|
@@ -1260,9 +1029,9 @@ function Lr() {
|
|
|
1260
1029
|
}
|
|
1261
1030
|
function me(e) {
|
|
1262
1031
|
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1263
|
-
return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(
|
|
1032
|
+
return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(wr.apply(void 0, oe([br[e]], t, !1)).trim());
|
|
1264
1033
|
}
|
|
1265
|
-
var
|
|
1034
|
+
var Sr = (function() {
|
|
1266
1035
|
function e(t) {
|
|
1267
1036
|
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
1268
1037
|
}
|
|
@@ -1285,50 +1054,50 @@ var Dr = (function() {
|
|
|
1285
1054
|
}, e.prototype.getGroup = function(t) {
|
|
1286
1055
|
var n = "";
|
|
1287
1056
|
if (t >= this.length || this.groupSizes[t] === 0) return n;
|
|
1288
|
-
for (var r = this.groupSizes[t], o = this.indexOfGroup(t), s = o + r, a = o; a < s; a++) n += "".concat(this.tag.getRule(a)).concat(
|
|
1057
|
+
for (var r = this.groupSizes[t], o = this.indexOfGroup(t), s = o + r, a = o; a < s; a++) n += "".concat(this.tag.getRule(a)).concat(pt);
|
|
1289
1058
|
return n;
|
|
1290
1059
|
}, e;
|
|
1291
|
-
})(),
|
|
1060
|
+
})(), xr = 1 << 30, De = /* @__PURE__ */ new Map(), Ve = /* @__PURE__ */ new Map(), Fe = 1, Ae = function(e) {
|
|
1292
1061
|
if (De.has(e)) return De.get(e);
|
|
1293
1062
|
for (; Ve.has(Fe); ) Fe++;
|
|
1294
1063
|
var t = Fe++;
|
|
1295
|
-
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t >
|
|
1064
|
+
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > xr)) throw me(16, "".concat(t));
|
|
1296
1065
|
return De.set(e, t), Ve.set(t, e), t;
|
|
1297
|
-
},
|
|
1066
|
+
}, kr = function(e, t) {
|
|
1298
1067
|
Fe = t + 1, De.set(e, t), Ve.set(t, e);
|
|
1299
|
-
},
|
|
1068
|
+
}, Er = "style[".concat(se, "][").concat(tn, '="').concat(Ge, '"]'), Pr = new RegExp("^".concat(se, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Rr = function(e, t, n) {
|
|
1300
1069
|
for (var r, o = n.split(","), s = 0, a = o.length; s < a; s++) (r = o[s]) && e.registerName(t, r);
|
|
1301
|
-
},
|
|
1302
|
-
for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(
|
|
1070
|
+
}, Tr = function(e, t) {
|
|
1071
|
+
for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(pt), o = [], s = 0, a = r.length; s < a; s++) {
|
|
1303
1072
|
var c = r[s].trim();
|
|
1304
1073
|
if (c) {
|
|
1305
|
-
var u = c.match(
|
|
1074
|
+
var u = c.match(Pr);
|
|
1306
1075
|
if (u) {
|
|
1307
1076
|
var l = 0 | parseInt(u[1], 10), v = u[2];
|
|
1308
|
-
l !== 0 && (
|
|
1077
|
+
l !== 0 && (kr(v, l), Rr(e, v, u[3]), e.getTag().insertRules(l, o)), o.length = 0;
|
|
1309
1078
|
} else o.push(c);
|
|
1310
1079
|
}
|
|
1311
1080
|
}
|
|
1312
|
-
},
|
|
1313
|
-
for (var t = document.querySelectorAll(
|
|
1081
|
+
}, Ot = function(e) {
|
|
1082
|
+
for (var t = document.querySelectorAll(Er), n = 0, r = t.length; n < r; n++) {
|
|
1314
1083
|
var o = t[n];
|
|
1315
|
-
o && o.getAttribute(se) !==
|
|
1084
|
+
o && o.getAttribute(se) !== en && (Tr(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
1316
1085
|
}
|
|
1317
1086
|
};
|
|
1318
|
-
function
|
|
1087
|
+
function Cr() {
|
|
1319
1088
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1320
1089
|
}
|
|
1321
|
-
var
|
|
1090
|
+
var dn = function(e) {
|
|
1322
1091
|
var t = document.head, n = e || t, r = document.createElement("style"), o = (function(c) {
|
|
1323
1092
|
var u = Array.from(c.querySelectorAll("style[".concat(se, "]")));
|
|
1324
1093
|
return u[u.length - 1];
|
|
1325
1094
|
})(n), s = o !== void 0 ? o.nextSibling : null;
|
|
1326
|
-
r.setAttribute(se,
|
|
1327
|
-
var a =
|
|
1095
|
+
r.setAttribute(se, en), r.setAttribute(tn, Ge);
|
|
1096
|
+
var a = Cr();
|
|
1328
1097
|
return a && r.setAttribute("nonce", a), n.insertBefore(r, s), r;
|
|
1329
|
-
},
|
|
1098
|
+
}, _r = (function() {
|
|
1330
1099
|
function e(t) {
|
|
1331
|
-
this.element =
|
|
1100
|
+
this.element = dn(t), this.element.appendChild(document.createTextNode("")), this.sheet = (function(n) {
|
|
1332
1101
|
if (n.sheet) return n.sheet;
|
|
1333
1102
|
for (var r = document.styleSheets, o = 0, s = r.length; o < s; o++) {
|
|
1334
1103
|
var a = r[o];
|
|
@@ -1349,9 +1118,9 @@ var fn = function(e) {
|
|
|
1349
1118
|
var n = this.sheet.cssRules[t];
|
|
1350
1119
|
return n && n.cssText ? n.cssText : "";
|
|
1351
1120
|
}, e;
|
|
1352
|
-
})(),
|
|
1121
|
+
})(), jr = (function() {
|
|
1353
1122
|
function e(t) {
|
|
1354
|
-
this.element =
|
|
1123
|
+
this.element = dn(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
1355
1124
|
}
|
|
1356
1125
|
return e.prototype.insertRule = function(t, n) {
|
|
1357
1126
|
if (t <= this.length && t >= 0) {
|
|
@@ -1364,7 +1133,7 @@ var fn = function(e) {
|
|
|
1364
1133
|
}, e.prototype.getRule = function(t) {
|
|
1365
1134
|
return t < this.length ? this.nodes[t].textContent : "";
|
|
1366
1135
|
}, e;
|
|
1367
|
-
})(),
|
|
1136
|
+
})(), Ar = (function() {
|
|
1368
1137
|
function e(t) {
|
|
1369
1138
|
this.rules = [], this.length = 0;
|
|
1370
1139
|
}
|
|
@@ -1375,32 +1144,32 @@ var fn = function(e) {
|
|
|
1375
1144
|
}, e.prototype.getRule = function(t) {
|
|
1376
1145
|
return t < this.length ? this.rules[t] : "";
|
|
1377
1146
|
}, e;
|
|
1378
|
-
})(),
|
|
1147
|
+
})(), Nt = ze, Or = { isServer: !ze, useCSSOMInjection: !sr }, fn = (function() {
|
|
1379
1148
|
function e(t, n, r) {
|
|
1380
1149
|
t === void 0 && (t = de), n === void 0 && (n = {});
|
|
1381
1150
|
var o = this;
|
|
1382
|
-
this.options = M(M({},
|
|
1151
|
+
this.options = M(M({}, Or), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && ze && Nt && (Nt = !1, Ot(this)), mt(this, function() {
|
|
1383
1152
|
return (function(s) {
|
|
1384
1153
|
for (var a = s.getTag(), c = a.length, u = "", l = function(h) {
|
|
1385
1154
|
var y = (function(A) {
|
|
1386
1155
|
return Ve.get(A);
|
|
1387
1156
|
})(h);
|
|
1388
1157
|
if (y === void 0) return "continue";
|
|
1389
|
-
var b = s.names.get(y),
|
|
1390
|
-
if (b === void 0 || !b.size ||
|
|
1391
|
-
var
|
|
1158
|
+
var b = s.names.get(y), T = a.getGroup(h);
|
|
1159
|
+
if (b === void 0 || !b.size || T.length === 0) return "continue";
|
|
1160
|
+
var P = "".concat(se, ".g").concat(h, '[id="').concat(y, '"]'), D = "";
|
|
1392
1161
|
b !== void 0 && b.forEach(function(A) {
|
|
1393
1162
|
A.length > 0 && (D += "".concat(A, ","));
|
|
1394
|
-
}), u += "".concat(
|
|
1163
|
+
}), u += "".concat(T).concat(P, '{content:"').concat(D, '"}').concat(pt);
|
|
1395
1164
|
}, v = 0; v < c; v++) l(v);
|
|
1396
1165
|
return u;
|
|
1397
1166
|
})(o);
|
|
1398
1167
|
});
|
|
1399
1168
|
}
|
|
1400
1169
|
return e.registerId = function(t) {
|
|
1401
|
-
return
|
|
1170
|
+
return Ae(t);
|
|
1402
1171
|
}, e.prototype.rehydrate = function() {
|
|
1403
|
-
!this.server && ze &&
|
|
1172
|
+
!this.server && ze && Ot(this);
|
|
1404
1173
|
}, e.prototype.reconstructWithOptions = function(t, n) {
|
|
1405
1174
|
return n === void 0 && (n = !0), new e(M(M({}, this.options), t), this.gs, n && this.names || void 0);
|
|
1406
1175
|
}, e.prototype.allocateGSInstance = function(t) {
|
|
@@ -1408,59 +1177,59 @@ var fn = function(e) {
|
|
|
1408
1177
|
}, e.prototype.getTag = function() {
|
|
1409
1178
|
return this.tag || (this.tag = (t = (function(n) {
|
|
1410
1179
|
var r = n.useCSSOMInjection, o = n.target;
|
|
1411
|
-
return n.isServer ? new
|
|
1412
|
-
})(this.options), new
|
|
1180
|
+
return n.isServer ? new Ar(o) : r ? new _r(o) : new jr(o);
|
|
1181
|
+
})(this.options), new Sr(t)));
|
|
1413
1182
|
var t;
|
|
1414
1183
|
}, e.prototype.hasNameForId = function(t, n) {
|
|
1415
1184
|
return this.names.has(t) && this.names.get(t).has(n);
|
|
1416
1185
|
}, e.prototype.registerName = function(t, n) {
|
|
1417
|
-
if (
|
|
1186
|
+
if (Ae(t), this.names.has(t)) this.names.get(t).add(n);
|
|
1418
1187
|
else {
|
|
1419
1188
|
var r = /* @__PURE__ */ new Set();
|
|
1420
1189
|
r.add(n), this.names.set(t, r);
|
|
1421
1190
|
}
|
|
1422
1191
|
}, e.prototype.insertRules = function(t, n, r) {
|
|
1423
|
-
this.registerName(t, n), this.getTag().insertRules(
|
|
1192
|
+
this.registerName(t, n), this.getTag().insertRules(Ae(t), r);
|
|
1424
1193
|
}, e.prototype.clearNames = function(t) {
|
|
1425
1194
|
this.names.has(t) && this.names.get(t).clear();
|
|
1426
1195
|
}, e.prototype.clearRules = function(t) {
|
|
1427
|
-
this.getTag().clearGroup(
|
|
1196
|
+
this.getTag().clearGroup(Ae(t)), this.clearNames(t);
|
|
1428
1197
|
}, e.prototype.clearTag = function() {
|
|
1429
1198
|
this.tag = void 0;
|
|
1430
1199
|
}, e;
|
|
1431
|
-
})(),
|
|
1432
|
-
function
|
|
1200
|
+
})(), Nr = /&/g, Ir = /^\s*\/\/.*$/gm;
|
|
1201
|
+
function pn(e, t) {
|
|
1433
1202
|
return e.map(function(n) {
|
|
1434
1203
|
return n.type === "rule" && (n.value = "".concat(t, " ").concat(n.value), n.value = n.value.replaceAll(",", ",".concat(t, " ")), n.props = n.props.map(function(r) {
|
|
1435
1204
|
return "".concat(t, " ").concat(r);
|
|
1436
|
-
})), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children =
|
|
1205
|
+
})), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = pn(n.children, t)), n;
|
|
1437
1206
|
});
|
|
1438
1207
|
}
|
|
1439
|
-
function
|
|
1440
|
-
var t, n, r, o = de, s = o.options, a = s === void 0 ? de : s, c = o.plugins, u = c === void 0 ?
|
|
1441
|
-
return
|
|
1208
|
+
function Lr(e) {
|
|
1209
|
+
var t, n, r, o = de, s = o.options, a = s === void 0 ? de : s, c = o.plugins, u = c === void 0 ? He : c, l = function(y, b, T) {
|
|
1210
|
+
return T.startsWith(n) && T.endsWith(n) && T.replaceAll(n, "").length > 0 ? ".".concat(t) : y;
|
|
1442
1211
|
}, v = u.slice();
|
|
1443
1212
|
v.push(function(y) {
|
|
1444
|
-
y.type ===
|
|
1445
|
-
}), a.prefix && v.push(
|
|
1446
|
-
var h = function(y, b,
|
|
1447
|
-
b === void 0 && (b = ""),
|
|
1448
|
-
var D = y.replace(
|
|
1449
|
-
a.namespace && (A =
|
|
1450
|
-
var
|
|
1451
|
-
return Me(A,
|
|
1452
|
-
return
|
|
1453
|
-
})))),
|
|
1213
|
+
y.type === qe && y.value.includes("&") && (y.props[0] = y.props[0].replace(Nr, n).replace(r, l));
|
|
1214
|
+
}), a.prefix && v.push(rr), v.push(er);
|
|
1215
|
+
var h = function(y, b, T, P) {
|
|
1216
|
+
b === void 0 && (b = ""), T === void 0 && (T = ""), P === void 0 && (P = "&"), t = P, n = b, r = new RegExp("\\".concat(n, "\\b"), "g");
|
|
1217
|
+
var D = y.replace(Ir, ""), A = Kn(T || b ? "".concat(T, " ").concat(b, " { ").concat(D, " }") : D);
|
|
1218
|
+
a.namespace && (A = pn(A, a.namespace));
|
|
1219
|
+
var _ = [];
|
|
1220
|
+
return Me(A, tr(v.concat(nr(function(x) {
|
|
1221
|
+
return _.push(x);
|
|
1222
|
+
})))), _;
|
|
1454
1223
|
};
|
|
1455
1224
|
return h.hash = u.length ? u.reduce(function(y, b) {
|
|
1456
1225
|
return b.name || me(15), ee(y, b.name);
|
|
1457
|
-
},
|
|
1226
|
+
}, nn).toString() : "", h;
|
|
1458
1227
|
}
|
|
1459
|
-
var
|
|
1460
|
-
|
|
1228
|
+
var Dr = new fn(), at = Lr(), hn = B.createContext({ shouldForwardProp: void 0, styleSheet: Dr, stylis: at });
|
|
1229
|
+
hn.Consumer;
|
|
1461
1230
|
B.createContext(void 0);
|
|
1462
|
-
function
|
|
1463
|
-
return
|
|
1231
|
+
function It() {
|
|
1232
|
+
return qt(hn);
|
|
1464
1233
|
}
|
|
1465
1234
|
var ct = (function() {
|
|
1466
1235
|
function e(t, n) {
|
|
@@ -1469,57 +1238,57 @@ var ct = (function() {
|
|
|
1469
1238
|
s === void 0 && (s = at);
|
|
1470
1239
|
var a = r.name + s.hash;
|
|
1471
1240
|
o.hasNameForId(r.id, a) || o.insertRules(r.id, a, s(r.rules, a, "@keyframes"));
|
|
1472
|
-
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n,
|
|
1241
|
+
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, mt(this, function() {
|
|
1473
1242
|
throw me(12, String(r.name));
|
|
1474
1243
|
});
|
|
1475
1244
|
}
|
|
1476
1245
|
return e.prototype.getName = function(t) {
|
|
1477
1246
|
return t === void 0 && (t = at), this.name + t.hash;
|
|
1478
1247
|
}, e;
|
|
1479
|
-
})(),
|
|
1248
|
+
})(), Fr = function(e) {
|
|
1480
1249
|
return e >= "A" && e <= "Z";
|
|
1481
1250
|
};
|
|
1482
|
-
function
|
|
1251
|
+
function Lt(e) {
|
|
1483
1252
|
for (var t = "", n = 0; n < e.length; n++) {
|
|
1484
1253
|
var r = e[n];
|
|
1485
1254
|
if (n === 1 && r === "-" && e[0] === "-") return e;
|
|
1486
|
-
|
|
1255
|
+
Fr(r) ? t += "-" + r.toLowerCase() : t += r;
|
|
1487
1256
|
}
|
|
1488
1257
|
return t.startsWith("ms-") ? "-" + t : t;
|
|
1489
1258
|
}
|
|
1490
|
-
var
|
|
1259
|
+
var mn = function(e) {
|
|
1491
1260
|
return e == null || e === !1 || e === "";
|
|
1492
|
-
},
|
|
1261
|
+
}, gn = function(e) {
|
|
1493
1262
|
var t, n, r = [];
|
|
1494
1263
|
for (var o in e) {
|
|
1495
1264
|
var s = e[o];
|
|
1496
|
-
e.hasOwnProperty(o) && !
|
|
1265
|
+
e.hasOwnProperty(o) && !mn(s) && (Array.isArray(s) && s.isCss || fe(s) ? r.push("".concat(Lt(o), ":"), s, ";") : pe(s) ? r.push.apply(r, oe(oe(["".concat(o, " {")], gn(s), !1), ["}"], !1)) : r.push("".concat(Lt(o), ": ").concat((t = o, (n = s) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in or || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
|
|
1497
1266
|
}
|
|
1498
1267
|
return r;
|
|
1499
1268
|
};
|
|
1500
1269
|
function re(e, t, n, r) {
|
|
1501
|
-
if (
|
|
1502
|
-
if (
|
|
1270
|
+
if (mn(e)) return [];
|
|
1271
|
+
if (ht(e)) return [".".concat(e.styledComponentId)];
|
|
1503
1272
|
if (fe(e)) {
|
|
1504
1273
|
if (!fe(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
|
|
1505
1274
|
var o = e(t);
|
|
1506
|
-
return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof ct || pe(o) || o === null || console.error("".concat(
|
|
1275
|
+
return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof ct || pe(o) || o === null || console.error("".concat(sn(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), re(o, t, n, r);
|
|
1507
1276
|
}
|
|
1508
1277
|
var s;
|
|
1509
|
-
return e instanceof ct ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : pe(e) ?
|
|
1278
|
+
return e instanceof ct ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : pe(e) ? gn(e) : Array.isArray(e) ? Array.prototype.concat.apply(He, e.map(function(a) {
|
|
1510
1279
|
return re(a, t, n, r);
|
|
1511
1280
|
})) : [e.toString()];
|
|
1512
1281
|
}
|
|
1513
|
-
function
|
|
1282
|
+
function $r(e) {
|
|
1514
1283
|
for (var t = 0; t < e.length; t += 1) {
|
|
1515
1284
|
var n = e[t];
|
|
1516
|
-
if (fe(n) && !
|
|
1285
|
+
if (fe(n) && !ht(n)) return !1;
|
|
1517
1286
|
}
|
|
1518
1287
|
return !0;
|
|
1519
1288
|
}
|
|
1520
|
-
var
|
|
1289
|
+
var Mr = rn(Ge), zr = (function() {
|
|
1521
1290
|
function e(t, n, r) {
|
|
1522
|
-
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) &&
|
|
1291
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) && $r(t), this.componentId = n, this.baseHash = ee(Mr, n), this.baseStyle = r, fn.registerId(n);
|
|
1523
1292
|
}
|
|
1524
1293
|
return e.prototype.generateAndInjectStyles = function(t, n, r) {
|
|
1525
1294
|
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
|
|
@@ -1548,64 +1317,64 @@ var eo = on(Be), to = (function() {
|
|
|
1548
1317
|
}
|
|
1549
1318
|
return o;
|
|
1550
1319
|
}, e;
|
|
1551
|
-
})(),
|
|
1552
|
-
|
|
1553
|
-
var
|
|
1554
|
-
function
|
|
1555
|
-
var r =
|
|
1556
|
-
var S = typeof R != "string" ? "sc" :
|
|
1557
|
-
|
|
1558
|
-
var m = "".concat(S, "-").concat(
|
|
1559
|
-
return
|
|
1320
|
+
})(), yn = B.createContext(void 0);
|
|
1321
|
+
yn.Consumer;
|
|
1322
|
+
var Qe = {}, Dt = /* @__PURE__ */ new Set();
|
|
1323
|
+
function Vr(e, t, n) {
|
|
1324
|
+
var r = ht(e), o = e, s = !Ke(e), a = t.attrs, c = a === void 0 ? He : a, u = t.componentId, l = u === void 0 ? (function(R, f) {
|
|
1325
|
+
var S = typeof R != "string" ? "sc" : Tt(R);
|
|
1326
|
+
Qe[S] = (Qe[S] || 0) + 1;
|
|
1327
|
+
var m = "".concat(S, "-").concat(on(Ge + S + Qe[S]));
|
|
1328
|
+
return f ? "".concat(f, "-").concat(m) : m;
|
|
1560
1329
|
})(t.displayName, t.parentComponentId) : u, v = t.displayName, h = v === void 0 ? (function(R) {
|
|
1561
|
-
return
|
|
1562
|
-
})(e) : v, y = t.displayName && t.componentId ? "".concat(
|
|
1330
|
+
return Ke(R) ? "styled.".concat(R) : "Styled(".concat(sn(R), ")");
|
|
1331
|
+
})(e) : v, y = t.displayName && t.componentId ? "".concat(Tt(t.displayName), "-").concat(t.componentId) : t.componentId || l, b = r && o.attrs ? o.attrs.concat(c).filter(Boolean) : c, T = t.shouldForwardProp;
|
|
1563
1332
|
if (r && o.shouldForwardProp) {
|
|
1564
|
-
var
|
|
1333
|
+
var P = o.shouldForwardProp;
|
|
1565
1334
|
if (t.shouldForwardProp) {
|
|
1566
1335
|
var D = t.shouldForwardProp;
|
|
1567
|
-
|
|
1568
|
-
return
|
|
1336
|
+
T = function(R, f) {
|
|
1337
|
+
return P(R, f) && D(R, f);
|
|
1569
1338
|
};
|
|
1570
|
-
} else
|
|
1339
|
+
} else T = P;
|
|
1571
1340
|
}
|
|
1572
|
-
var A = new
|
|
1573
|
-
function
|
|
1341
|
+
var A = new zr(n, y, r ? o.componentStyle : void 0);
|
|
1342
|
+
function _(R, f) {
|
|
1574
1343
|
return (function(S, m, q) {
|
|
1575
|
-
var X = S.attrs,
|
|
1576
|
-
process.env.NODE_ENV !== "production" &&
|
|
1577
|
-
var ve =
|
|
1344
|
+
var X = S.attrs, Xe = S.componentStyle, ge = S.defaultProps, Ee = S.foldedComponentIds, Pe = S.styledComponentId, ye = S.target, Re = B.useContext(yn), Te = It(), ie = S.shouldForwardProp || Te.shouldForwardProp;
|
|
1345
|
+
process.env.NODE_ENV !== "production" && bt(Pe);
|
|
1346
|
+
var ve = ar(m, Re, ge) || de, z = (function(F, G, J) {
|
|
1578
1347
|
for (var O, $ = M(M({}, G), { className: void 0, theme: J }), Q = 0; Q < F.length; Q += 1) {
|
|
1579
1348
|
var ae = fe(O = F[Q]) ? O($) : O;
|
|
1580
1349
|
for (var Z in ae) $[Z] = Z === "className" ? te($[Z], ae[Z]) : Z === "style" ? M(M({}, $[Z]), ae[Z]) : ae[Z];
|
|
1581
1350
|
}
|
|
1582
1351
|
return G.className && ($.className = te($.className, G.className)), $;
|
|
1583
1352
|
})(X, m, ve), i = z.as || ye, p = {};
|
|
1584
|
-
for (var w in z) z[w] === void 0 || w[0] === "$" || w === "as" || w === "theme" && z.theme === ve || (w === "forwardedAs" ? p.as = z.forwardedAs : ie && !ie(w, i) || (p[w] = z[w], ie || process.env.NODE_ENV !== "development" ||
|
|
1353
|
+
for (var w in z) z[w] === void 0 || w[0] === "$" || w === "as" || w === "theme" && z.theme === ve || (w === "forwardedAs" ? p.as = z.forwardedAs : ie && !ie(w, i) || (p[w] = z[w], ie || process.env.NODE_ENV !== "development" || Mn(w) || Dt.has(w) || !rt.has(i) || (Dt.add(w), console.warn('styled-components: it looks like an unknown prop "'.concat(w, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
1585
1354
|
var N = (function(F, G) {
|
|
1586
|
-
var J =
|
|
1587
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1588
|
-
})(
|
|
1355
|
+
var J = It(), O = F.generateAndInjectStyles(G, J.styleSheet, J.stylis);
|
|
1356
|
+
return process.env.NODE_ENV !== "production" && bt(O), O;
|
|
1357
|
+
})(Xe, z);
|
|
1589
1358
|
process.env.NODE_ENV !== "production" && S.warnTooManyClasses && S.warnTooManyClasses(N);
|
|
1590
|
-
var V = te(
|
|
1591
|
-
return N && (V += " " + N), z.className && (V += " " + z.className), p[
|
|
1592
|
-
})(x, R,
|
|
1359
|
+
var V = te(Ee, Pe);
|
|
1360
|
+
return N && (V += " " + N), z.className && (V += " " + z.className), p[Ke(i) && !rt.has(i) ? "class" : "className"] = V, q && (p.ref = q), Cn(i, p);
|
|
1361
|
+
})(x, R, f);
|
|
1593
1362
|
}
|
|
1594
|
-
|
|
1595
|
-
var x = B.forwardRef(
|
|
1596
|
-
return x.attrs = b, x.componentStyle = A, x.displayName = h, x.shouldForwardProp =
|
|
1363
|
+
_.displayName = h;
|
|
1364
|
+
var x = B.forwardRef(_);
|
|
1365
|
+
return x.attrs = b, x.componentStyle = A, x.displayName = h, x.shouldForwardProp = T, x.foldedComponentIds = r ? te(o.foldedComponentIds, o.styledComponentId) : "", x.styledComponentId = y, x.target = r ? o.target : e, Object.defineProperty(x, "defaultProps", { get: function() {
|
|
1597
1366
|
return this._foldedDefaultProps;
|
|
1598
1367
|
}, set: function(R) {
|
|
1599
|
-
this._foldedDefaultProps = r ? (function(
|
|
1368
|
+
this._foldedDefaultProps = r ? (function(f) {
|
|
1600
1369
|
for (var S = [], m = 1; m < arguments.length; m++) S[m - 1] = arguments[m];
|
|
1601
|
-
for (var q = 0, X = S; q < X.length; q++) it(
|
|
1602
|
-
return
|
|
1370
|
+
for (var q = 0, X = S; q < X.length; q++) it(f, X[q], !0);
|
|
1371
|
+
return f;
|
|
1603
1372
|
})({}, o.defaultProps, R) : R;
|
|
1604
|
-
} }), process.env.NODE_ENV !== "production" && (
|
|
1373
|
+
} }), process.env.NODE_ENV !== "production" && (ir(h, y), x.warnTooManyClasses = /* @__PURE__ */ (function(R, f) {
|
|
1605
1374
|
var S = {}, m = !1;
|
|
1606
1375
|
return function(q) {
|
|
1607
1376
|
if (!m && (S[q] = !0, Object.keys(S).length >= 200)) {
|
|
1608
|
-
var X =
|
|
1377
|
+
var X = f ? ' with the id of "'.concat(f, '"') : "";
|
|
1609
1378
|
console.warn("Over ".concat(200, " classes were generated for component ").concat(R).concat(X, `.
|
|
1610
1379
|
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
1611
1380
|
Example:
|
|
@@ -1618,28 +1387,28 @@ Example:
|
|
|
1618
1387
|
<Component />`), m = !0, S = {};
|
|
1619
1388
|
}
|
|
1620
1389
|
};
|
|
1621
|
-
})(h, y)),
|
|
1390
|
+
})(h, y)), mt(x, function() {
|
|
1622
1391
|
return ".".concat(x.styledComponentId);
|
|
1623
|
-
}), s &&
|
|
1392
|
+
}), s && un(x, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), x;
|
|
1624
1393
|
}
|
|
1625
|
-
function
|
|
1394
|
+
function Ft(e, t) {
|
|
1626
1395
|
for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
|
|
1627
1396
|
return n;
|
|
1628
1397
|
}
|
|
1629
|
-
var
|
|
1398
|
+
var $t = function(e) {
|
|
1630
1399
|
return Object.assign(e, { isCss: !0 });
|
|
1631
1400
|
};
|
|
1632
|
-
function
|
|
1401
|
+
function vn(e) {
|
|
1633
1402
|
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1634
|
-
if (fe(e) || pe(e)) return
|
|
1403
|
+
if (fe(e) || pe(e)) return $t(re(Ft(He, oe([e], t, !0))));
|
|
1635
1404
|
var r = e;
|
|
1636
|
-
return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? re(r) :
|
|
1405
|
+
return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? re(r) : $t(re(Ft(r, t)));
|
|
1637
1406
|
}
|
|
1638
1407
|
function lt(e, t, n) {
|
|
1639
1408
|
if (n === void 0 && (n = de), !t) throw me(1, t);
|
|
1640
1409
|
var r = function(o) {
|
|
1641
1410
|
for (var s = [], a = 1; a < arguments.length; a++) s[a - 1] = arguments[a];
|
|
1642
|
-
return e(t, n,
|
|
1411
|
+
return e(t, n, vn.apply(void 0, oe([o], s, !1)));
|
|
1643
1412
|
};
|
|
1644
1413
|
return r.attrs = function(o) {
|
|
1645
1414
|
return lt(e, t, M(M({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
|
|
@@ -1647,16 +1416,16 @@ function lt(e, t, n) {
|
|
|
1647
1416
|
return lt(e, t, M(M({}, n), o));
|
|
1648
1417
|
}, r;
|
|
1649
1418
|
}
|
|
1650
|
-
var
|
|
1651
|
-
return lt(
|
|
1652
|
-
},
|
|
1419
|
+
var bn = function(e) {
|
|
1420
|
+
return lt(Vr, e);
|
|
1421
|
+
}, C = bn;
|
|
1653
1422
|
rt.forEach(function(e) {
|
|
1654
|
-
|
|
1423
|
+
C[e] = bn(e);
|
|
1655
1424
|
});
|
|
1656
|
-
function
|
|
1425
|
+
function Yr(e) {
|
|
1657
1426
|
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1658
1427
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
1659
|
-
var r = st(
|
|
1428
|
+
var r = st(vn.apply(void 0, oe([e], t, !1))), o = on(r);
|
|
1660
1429
|
return new ct(o, r);
|
|
1661
1430
|
}
|
|
1662
1431
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
@@ -1666,32 +1435,306 @@ var Oe = "__sc-".concat(se, "__");
|
|
|
1666
1435
|
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[Oe] || (window[Oe] = 0), window[Oe] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
1667
1436
|
|
|
1668
1437
|
See https://s-c.sh/2BAXzed for more info.`), window[Oe] += 1);
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1438
|
+
function gt({ ...e }) {
|
|
1439
|
+
return /* @__PURE__ */ d.jsx(qr, { ...e });
|
|
1440
|
+
}
|
|
1441
|
+
const qr = C.button`
|
|
1442
|
+
display: flex;
|
|
1443
|
+
align-items: center;
|
|
1444
|
+
justify-content: center;
|
|
1445
|
+
margin: 0;
|
|
1446
|
+
padding: 0;
|
|
1447
|
+
width: 2.25rem;
|
|
1448
|
+
height: 2.25rem;
|
|
1449
|
+
cursor: pointer;
|
|
1450
|
+
color: white;
|
|
1451
|
+
background: none;
|
|
1452
|
+
border: none;
|
|
1453
|
+
border-radius: 50%;
|
|
1454
|
+
transition: background 0.2s ease-in-out;
|
|
1455
|
+
|
|
1456
|
+
svg {
|
|
1457
|
+
width: 1.25rem;
|
|
1458
|
+
height: 1.25rem;
|
|
1459
|
+
flex-shrink: 0;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
&:hover {
|
|
1463
|
+
background: rgba(0, 0, 0, 0.1);
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
&:focus {
|
|
1467
|
+
outline: none;
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
&:disabled {
|
|
1471
|
+
opacity: 0.5;
|
|
1472
|
+
cursor: not-allowed;
|
|
1473
|
+
}
|
|
1474
|
+
`, Mt = (e) => {
|
|
1475
|
+
let t;
|
|
1476
|
+
const n = /* @__PURE__ */ new Set(), r = (l, v) => {
|
|
1477
|
+
const h = typeof l == "function" ? l(t) : l;
|
|
1478
|
+
if (!Object.is(h, t)) {
|
|
1479
|
+
const y = t;
|
|
1480
|
+
t = v ?? (typeof h != "object" || h === null) ? h : Object.assign({}, t, h), n.forEach((b) => b(t, y));
|
|
1481
|
+
}
|
|
1482
|
+
}, o = () => t, c = { setState: r, getState: o, getInitialState: () => u, subscribe: (l) => (n.add(l), () => n.delete(l)) }, u = t = e(r, o, c);
|
|
1483
|
+
return c;
|
|
1484
|
+
}, Ur = ((e) => e ? Mt(e) : Mt), Wr = (e) => e;
|
|
1485
|
+
function wn(e, t = Wr) {
|
|
1486
|
+
const n = B.useSyncExternalStore(
|
|
1487
|
+
e.subscribe,
|
|
1488
|
+
B.useCallback(() => t(e.getState()), [e, t]),
|
|
1489
|
+
B.useCallback(() => t(e.getInitialState()), [e, t])
|
|
1490
|
+
);
|
|
1491
|
+
return B.useDebugValue(n), n;
|
|
1492
|
+
}
|
|
1493
|
+
const zt = (e) => {
|
|
1494
|
+
const t = Ur(e), n = (r) => wn(t, r);
|
|
1495
|
+
return Object.assign(n, t), n;
|
|
1496
|
+
}, Br = ((e) => e ? zt(e) : zt);
|
|
1497
|
+
function Gr(e, t, n) {
|
|
1498
|
+
const r = {
|
|
1499
|
+
days: 86400,
|
|
1500
|
+
hours: 3600,
|
|
1501
|
+
minutes: 60,
|
|
1502
|
+
seconds: 1,
|
|
1503
|
+
milliseconds: 1e-3
|
|
1504
|
+
};
|
|
1505
|
+
return e * (r[t] / r[n]);
|
|
1506
|
+
}
|
|
1507
|
+
function Hr(e) {
|
|
1508
|
+
return Gr(e, "milliseconds", "seconds");
|
|
1509
|
+
}
|
|
1510
|
+
const Vt = (e) => {
|
|
1511
|
+
const t = Math.floor(e / 60), n = Math.floor(e % 60);
|
|
1512
|
+
return `${t.toString().padStart(2, "0")}:${n.toString().padStart(2, "0")}`;
|
|
1513
|
+
};
|
|
1514
|
+
function Xr(e) {
|
|
1515
|
+
const t = typeof window < "u" && window.navigator?.userAgent || "";
|
|
1516
|
+
return e.test(t);
|
|
1517
|
+
}
|
|
1518
|
+
const Sn = Xr(/iPhone|iPad|iPod/i);
|
|
1519
|
+
function Jr() {
|
|
1520
|
+
const e = document;
|
|
1521
|
+
return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
|
|
1522
|
+
}
|
|
1523
|
+
function Zr(e) {
|
|
1524
|
+
e.requestFullscreen ? e.requestFullscreen() : e.msRequestFullscreen ? e.msRequestFullscreen() : e.webkitRequestFullScreen ? e.webkitRequestFullScreen() : e.webkitEnterFullScreen ? e.webkitEnterFullScreen() : e.mozRequestFullScreen && e.mozRequestFullScreen();
|
|
1525
|
+
}
|
|
1526
|
+
function Kr(e) {
|
|
1527
|
+
e.exitFullscreen ? e.exitFullscreen() : e.msExitFullscreen ? e.msExitFullscreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.mozCancelFullScreen && e.mozCancelFullScreen();
|
|
1528
|
+
}
|
|
1529
|
+
function Qr(e, t) {
|
|
1530
|
+
return e.addEventListener("fullscreenchange", t), e.addEventListener("webkitfullscreenchange", t), e.addEventListener("mozfullscreenchange", t), e.addEventListener("MSFullscreenChange", t), () => {
|
|
1531
|
+
e.removeEventListener("fullscreenchange", t), e.removeEventListener("webkitfullscreenchange", t), e.removeEventListener("mozfullscreenchange", t), e.removeEventListener("MSFullscreenChange", t);
|
|
1532
|
+
};
|
|
1533
|
+
}
|
|
1534
|
+
const eo = (e, t) => ({
|
|
1535
|
+
currentTime: 0,
|
|
1536
|
+
duration: 0,
|
|
1537
|
+
isEnded: !1,
|
|
1538
|
+
isLoading: !1,
|
|
1539
|
+
isLoop: !1,
|
|
1540
|
+
isMetaLoaded: !1,
|
|
1541
|
+
isPlaying: !1,
|
|
1542
|
+
isReady: !1,
|
|
1543
|
+
isStarted: !1,
|
|
1544
|
+
pauseTime: 0,
|
|
1545
|
+
seekTime: -1,
|
|
1546
|
+
startTime: -1,
|
|
1547
|
+
volume: 100,
|
|
1548
|
+
destroy: () => {
|
|
1549
|
+
},
|
|
1550
|
+
handleDurationChange: () => {
|
|
1551
|
+
const n = t().techRef.current;
|
|
1552
|
+
n && e({ duration: n.duration });
|
|
1553
|
+
},
|
|
1554
|
+
handleEnd: () => {
|
|
1555
|
+
t().techRef.current && e({
|
|
1556
|
+
isEnded: !0,
|
|
1557
|
+
isLoading: !1,
|
|
1558
|
+
isMetaLoaded: !1,
|
|
1559
|
+
isPlaying: !1
|
|
1560
|
+
});
|
|
1561
|
+
},
|
|
1562
|
+
handleLoadedMetadata: () => {
|
|
1563
|
+
const n = t().techRef.current;
|
|
1564
|
+
n && (n.loop = t().isLoop, n.volume = n.muted ? 0 : 1, t().startTime !== -1 && (n.currentTime = t().startTime), e({
|
|
1565
|
+
currentTime: t().startTime !== -1 ? t().startTime : n.currentTime,
|
|
1566
|
+
duration: n.duration,
|
|
1567
|
+
startTime: -1,
|
|
1568
|
+
isMetaLoaded: !0,
|
|
1569
|
+
volume: n.muted ? 0 : 100
|
|
1570
|
+
}));
|
|
1571
|
+
},
|
|
1572
|
+
handleLoadStart: () => {
|
|
1573
|
+
const n = t().techRef.current;
|
|
1574
|
+
n && (e({ isReady: !0 }), n.play().then(() => {
|
|
1575
|
+
e({
|
|
1576
|
+
isEnded: !1,
|
|
1577
|
+
isLoading: !1,
|
|
1578
|
+
isPlaying: !0,
|
|
1579
|
+
isStarted: !0,
|
|
1580
|
+
pauseTime: 0
|
|
1581
|
+
});
|
|
1582
|
+
}).catch(
|
|
1583
|
+
(r) => e(() => (console.info("Player failed to autoplay", r), {
|
|
1584
|
+
isStarted: !1,
|
|
1585
|
+
isEnded: !1,
|
|
1586
|
+
isLoading: !1,
|
|
1587
|
+
isPlaying: !1
|
|
1588
|
+
}))
|
|
1589
|
+
));
|
|
1590
|
+
},
|
|
1591
|
+
handlePause: () => e({
|
|
1592
|
+
isPlaying: !1,
|
|
1593
|
+
pauseTime: Date.now()
|
|
1594
|
+
}),
|
|
1595
|
+
handlePlay: () => e({
|
|
1596
|
+
isPlaying: !0,
|
|
1597
|
+
pauseTime: 0
|
|
1598
|
+
}),
|
|
1599
|
+
handlePlaying: () => e({ isLoading: !1 }),
|
|
1600
|
+
handleSeeked: () => e({ isLoading: !1 }),
|
|
1601
|
+
handleSeeking: () => e({ isLoading: !0 }),
|
|
1602
|
+
handleTimeUpdate: () => {
|
|
1603
|
+
const n = t().techRef.current;
|
|
1604
|
+
n && e({ currentTime: n.currentTime });
|
|
1605
|
+
},
|
|
1606
|
+
handleWaiting: () => e({ isLoading: !0 }),
|
|
1607
|
+
pause: () => {
|
|
1608
|
+
const n = t().techRef.current;
|
|
1609
|
+
n && (n.pause(), e({
|
|
1610
|
+
isEnded: !1,
|
|
1611
|
+
isPlaying: !1,
|
|
1612
|
+
pauseTime: Date.now()
|
|
1613
|
+
}));
|
|
1614
|
+
},
|
|
1615
|
+
pauseTimeDiff: () => Hr(Date.now() - t().pauseTime),
|
|
1616
|
+
play: () => {
|
|
1617
|
+
const n = t().techRef.current;
|
|
1618
|
+
n && (n.play(), e({
|
|
1619
|
+
isEnded: !1,
|
|
1620
|
+
isPlaying: !0,
|
|
1621
|
+
isStarted: !0,
|
|
1622
|
+
pauseTime: 0
|
|
1623
|
+
}));
|
|
1624
|
+
},
|
|
1625
|
+
seek: (n) => {
|
|
1626
|
+
const r = t().techRef.current;
|
|
1627
|
+
r && (r.currentTime = n, (r.paused || r.ended) && r.play(), e({
|
|
1628
|
+
seekTime: -1,
|
|
1629
|
+
currentTime: n,
|
|
1630
|
+
isStarted: !0,
|
|
1631
|
+
isEnded: !1,
|
|
1632
|
+
isPlaying: !0
|
|
1633
|
+
}));
|
|
1634
|
+
},
|
|
1635
|
+
setIsLoading: (n) => e({ isLoading: n }),
|
|
1636
|
+
setIsLoop: (n) => {
|
|
1637
|
+
const r = t().techRef.current;
|
|
1638
|
+
r && (r.loop = n, e({ isLoop: n }));
|
|
1639
|
+
},
|
|
1640
|
+
setStartTime: (n) => e({ startTime: n }),
|
|
1641
|
+
setVolume: (n) => {
|
|
1642
|
+
const r = t().techRef.current;
|
|
1643
|
+
r && (r.muted = n === 0, r.volume = n / 100, e({ volume: n }));
|
|
1644
|
+
},
|
|
1645
|
+
stop: () => {
|
|
1646
|
+
t().techRef.current && e({
|
|
1647
|
+
isPlaying: !1,
|
|
1648
|
+
isLoading: !1
|
|
1649
|
+
});
|
|
1650
|
+
}
|
|
1651
|
+
}), to = (e) => ({
|
|
1652
|
+
idleLocks: /* @__PURE__ */ new Set(),
|
|
1653
|
+
addIdleLock: (t) => e((n) => ({
|
|
1654
|
+
idleLocks: new Set(n.idleLocks).add(t)
|
|
1655
|
+
})),
|
|
1656
|
+
removeIdleLock: (t) => e((n) => {
|
|
1657
|
+
const r = new Set(n.idleLocks);
|
|
1658
|
+
return r.delete(t), { idleLocks: r };
|
|
1659
|
+
})
|
|
1660
|
+
}), no = (e, t) => ({
|
|
1661
|
+
isFullscreen: !1,
|
|
1662
|
+
isFullscreenReady: !1,
|
|
1663
|
+
exitFullscreen: () => {
|
|
1664
|
+
Kr(document), e({ isFullscreen: !1 });
|
|
1665
|
+
},
|
|
1666
|
+
requestFullscreen: () => {
|
|
1667
|
+
const n = t().techRef.current, r = t().containerRef.current;
|
|
1668
|
+
if (!n || !r) return;
|
|
1669
|
+
const o = Sn ? n : r;
|
|
1670
|
+
o && Zr(o), e({ isFullscreen: !0 });
|
|
1671
|
+
},
|
|
1672
|
+
setIsFullscreen: (n) => e({ isFullscreen: n }),
|
|
1673
|
+
setIsFullscreenReady: (n) => e({ isFullscreenReady: n })
|
|
1674
|
+
}), ro = (e) => ({
|
|
1675
|
+
url: "",
|
|
1676
|
+
setURL: (t) => e({ url: t })
|
|
1677
|
+
}), oo = (e) => () => ({
|
|
1678
|
+
...e
|
|
1679
|
+
}), so = (e, t) => Br()((...n) => ({
|
|
1680
|
+
...eo(...n),
|
|
1681
|
+
...to(...n),
|
|
1682
|
+
...no(...n),
|
|
1683
|
+
...ro(...n),
|
|
1684
|
+
...oo({ techRef: e, containerRef: t })(...n)
|
|
1685
|
+
})), xn = _n(null), io = ({ children: e }) => {
|
|
1686
|
+
const t = xe(null), n = xe(null), r = xe(null);
|
|
1687
|
+
return t.current || (t.current = so(n, r)), /* @__PURE__ */ d.jsx(xn.Provider, { value: t.current, children: e });
|
|
1688
|
+
}, E = (e) => {
|
|
1689
|
+
const t = qt(xn);
|
|
1690
|
+
if (!t)
|
|
1691
|
+
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
1692
|
+
return wn(t, e);
|
|
1693
|
+
};
|
|
1694
|
+
function ao() {
|
|
1695
|
+
const [e, t] = ut(!1), n = E((a) => a.isPlaying), r = E((a) => a.isStarted), o = E((a) => a.play), s = () => {
|
|
1696
|
+
n || o();
|
|
1697
|
+
};
|
|
1698
|
+
return $e(() => {
|
|
1699
|
+
t(!r && !n);
|
|
1700
|
+
}, [r, n]), e ? /* @__PURE__ */ d.jsx(gt, { onClick: s, children: n ? /* @__PURE__ */ d.jsx(Wt, {}) : /* @__PURE__ */ d.jsx(Bt, {}) }) : null;
|
|
1701
|
+
}
|
|
1702
|
+
function kn({ children: e }) {
|
|
1703
|
+
return /* @__PURE__ */ d.jsx(io, { children: e });
|
|
1704
|
+
}
|
|
1705
|
+
const Ye = {
|
|
1706
|
+
hls: "hls",
|
|
1707
|
+
dash: "dash"
|
|
1708
|
+
};
|
|
1709
|
+
function co(e) {
|
|
1710
|
+
return e && /\.m3u8/i.test(e) ? Ye.hls : Ye.dash;
|
|
1711
|
+
}
|
|
1712
|
+
const lo = Ut(() => import("./player-hls-tech-sXKjWi4D.js")), uo = Ut(() => import("./player-dash-tech-D7KQCWFx.js"));
|
|
1713
|
+
function En({ url: e, isLive: t, isMuted: n = !1 }) {
|
|
1714
|
+
const r = E((f) => f.handleDurationChange), o = E((f) => f.handleEnd), s = E((f) => f.handleLoadedMetadata), a = E((f) => f.handleLoadStart), c = E((f) => f.handlePause), u = E((f) => f.handlePlay), l = E((f) => f.handlePlaying), v = E((f) => f.handleSeeked), h = E((f) => f.handleSeeking), y = E((f) => f.handleTimeUpdate), b = E((f) => f.handleWaiting), T = E((f) => f.techRef), P = xe(null), D = () => t ? {} : {
|
|
1672
1715
|
onDurationChange: r,
|
|
1673
1716
|
onSeeked: v,
|
|
1674
1717
|
onSeeking: h,
|
|
1675
1718
|
onTimeUpdate: A
|
|
1676
1719
|
}, A = () => {
|
|
1677
|
-
(!
|
|
1720
|
+
(!P.current || Date.now() - P.current >= 1e3) && (y(), P.current = Date.now());
|
|
1678
1721
|
}, x = (() => {
|
|
1679
|
-
switch (
|
|
1680
|
-
case
|
|
1681
|
-
return
|
|
1682
|
-
case
|
|
1683
|
-
return
|
|
1722
|
+
switch (co(e)) {
|
|
1723
|
+
case Ye.hls:
|
|
1724
|
+
return lo;
|
|
1725
|
+
case Ye.dash:
|
|
1726
|
+
return uo;
|
|
1684
1727
|
}
|
|
1685
1728
|
return null;
|
|
1686
1729
|
})();
|
|
1687
1730
|
if (!x) return null;
|
|
1688
1731
|
const R = D();
|
|
1689
|
-
return /* @__PURE__ */
|
|
1690
|
-
/* @__PURE__ */
|
|
1691
|
-
/* @__PURE__ */
|
|
1692
|
-
|
|
1732
|
+
return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
1733
|
+
/* @__PURE__ */ d.jsx(jn, { fallback: null, children: /* @__PURE__ */ d.jsx(x, { isLive: t, url: e }) }),
|
|
1734
|
+
/* @__PURE__ */ d.jsx(
|
|
1735
|
+
fo,
|
|
1693
1736
|
{
|
|
1694
|
-
ref:
|
|
1737
|
+
ref: T,
|
|
1695
1738
|
playsInline: !0,
|
|
1696
1739
|
autoPlay: !0,
|
|
1697
1740
|
controls: !1,
|
|
@@ -1711,7 +1754,7 @@ function Sn({ url: e, isLive: t, isMuted: n = !1 }) {
|
|
|
1711
1754
|
)
|
|
1712
1755
|
] });
|
|
1713
1756
|
}
|
|
1714
|
-
const
|
|
1757
|
+
const fo = C.video`
|
|
1715
1758
|
position: relative;
|
|
1716
1759
|
width: 100%;
|
|
1717
1760
|
height: 100%;
|
|
@@ -1719,65 +1762,37 @@ const io = T.video`
|
|
|
1719
1762
|
@media (min-width: 768px) {
|
|
1720
1763
|
pointer-events: none;
|
|
1721
1764
|
}
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
return /* @__PURE__ */ f.jsx(co, { ...e });
|
|
1725
|
-
}
|
|
1726
|
-
const co = T.button`
|
|
1727
|
-
display: flex;
|
|
1728
|
-
align-items: center;
|
|
1729
|
-
justify-content: center;
|
|
1730
|
-
width: 2.25rem;
|
|
1731
|
-
height: 2.25rem;
|
|
1732
|
-
padding: 0;
|
|
1733
|
-
margin: 0;
|
|
1734
|
-
cursor: pointer;
|
|
1735
|
-
color: white;
|
|
1736
|
-
background: none;
|
|
1737
|
-
border: none;
|
|
1738
|
-
border-radius: 50%;
|
|
1739
|
-
transition: background 0.2s ease-in-out;
|
|
1740
|
-
|
|
1741
|
-
svg {
|
|
1742
|
-
width: 1.25rem;
|
|
1743
|
-
height: 1.25rem;
|
|
1744
|
-
flex-shrink: 0;
|
|
1745
|
-
}
|
|
1746
|
-
|
|
1747
|
-
&:hover {
|
|
1748
|
-
background: rgba(0, 0, 0, 0.1);
|
|
1749
|
-
}
|
|
1750
|
-
`, xn = () => {
|
|
1751
|
-
const e = j((l) => l.containerRef), t = j((l) => l.exitFullscreen), n = j((l) => l.isFullscreen), r = j((l) => l.requestFullscreen), o = j((l) => l.setIsFullscreen), s = j((l) => l.setIsFullscreenReady), a = j((l) => l.techRef), c = Cn(
|
|
1765
|
+
`, Pn = () => {
|
|
1766
|
+
const e = E((l) => l.containerRef), t = E((l) => l.exitFullscreen), n = E((l) => l.isFullscreen), r = E((l) => l.requestFullscreen), o = E((l) => l.setIsFullscreen), s = E((l) => l.setIsFullscreenReady), a = E((l) => l.techRef), c = An(
|
|
1752
1767
|
(l) => {
|
|
1753
|
-
l.stopPropagation(), o(
|
|
1768
|
+
l.stopPropagation(), o(Jr());
|
|
1754
1769
|
},
|
|
1755
1770
|
[o]
|
|
1756
1771
|
), u = () => {
|
|
1757
1772
|
n ? t() : r();
|
|
1758
1773
|
};
|
|
1759
|
-
return
|
|
1760
|
-
const l =
|
|
1774
|
+
return $e(() => {
|
|
1775
|
+
const l = Sn ? a.current : e.current;
|
|
1761
1776
|
if (l)
|
|
1762
|
-
return
|
|
1763
|
-
}, [e, c, a]),
|
|
1777
|
+
return Qr(l, c);
|
|
1778
|
+
}, [e, c, a]), $e(() => {
|
|
1764
1779
|
s(!0);
|
|
1765
|
-
}, [s]), /* @__PURE__ */
|
|
1780
|
+
}, [s]), /* @__PURE__ */ d.jsx(gt, { onClick: u, children: n ? /* @__PURE__ */ d.jsx(On, {}) : /* @__PURE__ */ d.jsx(Nn, {}) });
|
|
1766
1781
|
};
|
|
1767
|
-
function
|
|
1768
|
-
const [n, r] =
|
|
1769
|
-
return
|
|
1782
|
+
function po(e, t = 500) {
|
|
1783
|
+
const [n, r] = ut(e);
|
|
1784
|
+
return $e(() => {
|
|
1770
1785
|
const o = window.setTimeout(() => r(e), t);
|
|
1771
1786
|
return () => {
|
|
1772
1787
|
window.clearTimeout(o);
|
|
1773
1788
|
};
|
|
1774
1789
|
}, [e, t]), n;
|
|
1775
1790
|
}
|
|
1776
|
-
function
|
|
1777
|
-
const n =
|
|
1778
|
-
return
|
|
1791
|
+
function Rn({ style: e, ...t }) {
|
|
1792
|
+
const n = E((o) => o.isLoading);
|
|
1793
|
+
return po(n, 50) ? /* @__PURE__ */ d.jsx(ho, { style: e, ...t, children: /* @__PURE__ */ d.jsx(go, {}) }) : null;
|
|
1779
1794
|
}
|
|
1780
|
-
const
|
|
1795
|
+
const ho = C.div`
|
|
1781
1796
|
pointer-events: none;
|
|
1782
1797
|
position: absolute;
|
|
1783
1798
|
top: 0;
|
|
@@ -1789,37 +1804,37 @@ const uo = T.div`
|
|
|
1789
1804
|
height: 100%;
|
|
1790
1805
|
align-items: center;
|
|
1791
1806
|
justify-content: center;
|
|
1792
|
-
`,
|
|
1807
|
+
`, mo = Yr`
|
|
1793
1808
|
from {
|
|
1794
1809
|
transform: rotate(0deg);
|
|
1795
1810
|
}
|
|
1796
1811
|
to {
|
|
1797
1812
|
transform: rotate(360deg);
|
|
1798
1813
|
}
|
|
1799
|
-
`,
|
|
1814
|
+
`, go = C.div`
|
|
1800
1815
|
width: 2rem;
|
|
1801
1816
|
height: 2rem;
|
|
1802
1817
|
border: 0.25rem solid #fff;
|
|
1803
1818
|
border-bottom-color: transparent;
|
|
1804
1819
|
border-radius: 50%;
|
|
1805
|
-
animation: ${
|
|
1820
|
+
animation: ${mo} 1s linear infinite;
|
|
1806
1821
|
`;
|
|
1807
|
-
function
|
|
1808
|
-
return /* @__PURE__ */
|
|
1809
|
-
}
|
|
1810
|
-
function
|
|
1811
|
-
const t =
|
|
1812
|
-
return /* @__PURE__ */
|
|
1813
|
-
/* @__PURE__ */
|
|
1814
|
-
/* @__PURE__ */
|
|
1815
|
-
/* @__PURE__ */
|
|
1816
|
-
/* @__PURE__ */
|
|
1817
|
-
/* @__PURE__ */
|
|
1818
|
-
/* @__PURE__ */
|
|
1822
|
+
function Yo(e) {
|
|
1823
|
+
return /* @__PURE__ */ d.jsx(kn, { children: /* @__PURE__ */ d.jsx(yo, { ...e }) });
|
|
1824
|
+
}
|
|
1825
|
+
function yo({ url: e }) {
|
|
1826
|
+
const t = E((n) => n.containerRef);
|
|
1827
|
+
return /* @__PURE__ */ d.jsxs(vo, { ref: t, children: [
|
|
1828
|
+
/* @__PURE__ */ d.jsx(En, { url: e, isLive: !0 }),
|
|
1829
|
+
/* @__PURE__ */ d.jsx(Rn, {}),
|
|
1830
|
+
/* @__PURE__ */ d.jsx(bo, { children: /* @__PURE__ */ d.jsx(wo, { children: /* @__PURE__ */ d.jsxs(So, { children: [
|
|
1831
|
+
/* @__PURE__ */ d.jsx(xo, { children: /* @__PURE__ */ d.jsx(ao, {}) }),
|
|
1832
|
+
/* @__PURE__ */ d.jsx(ko, {}),
|
|
1833
|
+
/* @__PURE__ */ d.jsx(Eo, { children: /* @__PURE__ */ d.jsx(Pn, {}) })
|
|
1819
1834
|
] }) }) })
|
|
1820
1835
|
] });
|
|
1821
1836
|
}
|
|
1822
|
-
const
|
|
1837
|
+
const vo = C.div`
|
|
1823
1838
|
position: absolute;
|
|
1824
1839
|
top: 0;
|
|
1825
1840
|
left: 0;
|
|
@@ -1828,7 +1843,7 @@ const mo = T.div`
|
|
|
1828
1843
|
background-color: black;
|
|
1829
1844
|
color: white;
|
|
1830
1845
|
overflow: hidden;
|
|
1831
|
-
`,
|
|
1846
|
+
`, bo = C.div`
|
|
1832
1847
|
position: absolute;
|
|
1833
1848
|
left: 0;
|
|
1834
1849
|
width: 100%;
|
|
@@ -1840,7 +1855,7 @@ const mo = T.div`
|
|
|
1840
1855
|
@media (min-width: 768px) {
|
|
1841
1856
|
padding-top: 2rem;
|
|
1842
1857
|
}
|
|
1843
|
-
`,
|
|
1858
|
+
`, wo = C.div`
|
|
1844
1859
|
display: flex;
|
|
1845
1860
|
flex-direction: column;
|
|
1846
1861
|
padding-left: 0.5rem;
|
|
@@ -1852,12 +1867,12 @@ const mo = T.div`
|
|
|
1852
1867
|
padding-left: 1rem;
|
|
1853
1868
|
padding-right: 1rem;
|
|
1854
1869
|
}
|
|
1855
|
-
`,
|
|
1870
|
+
`, So = C.div`
|
|
1856
1871
|
margin: auto 0;
|
|
1857
1872
|
display: flex;
|
|
1858
1873
|
width: 100%;
|
|
1859
1874
|
align-items: center;
|
|
1860
|
-
`,
|
|
1875
|
+
`, yt = C.div`
|
|
1861
1876
|
display: flex;
|
|
1862
1877
|
flex: 1;
|
|
1863
1878
|
align-items: center;
|
|
@@ -1866,59 +1881,65 @@ const mo = T.div`
|
|
|
1866
1881
|
@media (min-width: 768px) {
|
|
1867
1882
|
gap: 1rem;
|
|
1868
1883
|
}
|
|
1869
|
-
`,
|
|
1884
|
+
`, xo = C(yt)`
|
|
1870
1885
|
justify-content: flex-start;
|
|
1871
|
-
`,
|
|
1886
|
+
`, ko = C(yt)`
|
|
1872
1887
|
justify-content: center;
|
|
1873
|
-
`,
|
|
1888
|
+
`, Eo = C(yt)`
|
|
1874
1889
|
justify-content: flex-end;
|
|
1875
1890
|
`;
|
|
1876
|
-
function
|
|
1891
|
+
function Po() {
|
|
1892
|
+
const e = E((o) => o.isPlaying), t = E((o) => o.pause), n = E((o) => o.play), r = () => {
|
|
1893
|
+
e ? t() : n();
|
|
1894
|
+
};
|
|
1895
|
+
return /* @__PURE__ */ d.jsx(gt, { onClick: r, children: e ? /* @__PURE__ */ d.jsx(Wt, {}) : /* @__PURE__ */ d.jsx(Bt, {}) });
|
|
1896
|
+
}
|
|
1897
|
+
function Ro(e) {
|
|
1877
1898
|
return null;
|
|
1878
1899
|
}
|
|
1879
|
-
function
|
|
1880
|
-
const [e, t] =
|
|
1900
|
+
function To() {
|
|
1901
|
+
const [e, t] = ut(-1), n = E((s) => s.currentTime), r = E((s) => s.duration), o = parseFloat(
|
|
1881
1902
|
(r ? (e !== -1 ? e : n) / r * 100 : 0).toFixed(1)
|
|
1882
1903
|
);
|
|
1883
|
-
return /* @__PURE__ */
|
|
1884
|
-
/* @__PURE__ */
|
|
1885
|
-
/* @__PURE__ */
|
|
1886
|
-
/* @__PURE__ */
|
|
1904
|
+
return /* @__PURE__ */ d.jsxs(Co, { children: [
|
|
1905
|
+
/* @__PURE__ */ d.jsx(Yt, { children: /* @__PURE__ */ d.jsx(jo, { children: Vt(n) }) }),
|
|
1906
|
+
/* @__PURE__ */ d.jsx(_o, { children: /* @__PURE__ */ d.jsx(Ro, { value: o, step: 0.1 }) }),
|
|
1907
|
+
/* @__PURE__ */ d.jsx(Yt, { children: /* @__PURE__ */ d.jsx(Ao, { children: Vt(r) }) })
|
|
1887
1908
|
] });
|
|
1888
1909
|
}
|
|
1889
|
-
const
|
|
1910
|
+
const Co = C.div`
|
|
1890
1911
|
display: flex;
|
|
1891
1912
|
align-items: center;
|
|
1892
|
-
`,
|
|
1913
|
+
`, Yt = C.div``, _o = C.div`
|
|
1893
1914
|
flex: 1;
|
|
1894
|
-
`,
|
|
1915
|
+
`, Tn = C.p`
|
|
1895
1916
|
margin: 0;
|
|
1896
1917
|
color: #fff;
|
|
1897
1918
|
font-size: 0.875rem;
|
|
1898
|
-
`,
|
|
1919
|
+
`, jo = C(Tn)`
|
|
1899
1920
|
padding-left: 0.25rem;
|
|
1900
|
-
`,
|
|
1921
|
+
`, Ao = C(Tn)`
|
|
1901
1922
|
padding-right: 0.25rem;
|
|
1902
1923
|
`;
|
|
1903
|
-
function
|
|
1904
|
-
return /* @__PURE__ */
|
|
1905
|
-
}
|
|
1906
|
-
function
|
|
1907
|
-
const t =
|
|
1908
|
-
return /* @__PURE__ */
|
|
1909
|
-
/* @__PURE__ */
|
|
1910
|
-
/* @__PURE__ */
|
|
1911
|
-
/* @__PURE__ */
|
|
1912
|
-
/* @__PURE__ */
|
|
1913
|
-
/* @__PURE__ */
|
|
1914
|
-
/* @__PURE__ */
|
|
1915
|
-
/* @__PURE__ */
|
|
1916
|
-
/* @__PURE__ */
|
|
1924
|
+
function qo(e) {
|
|
1925
|
+
return /* @__PURE__ */ d.jsx(kn, { children: /* @__PURE__ */ d.jsx(Oo, { ...e }) });
|
|
1926
|
+
}
|
|
1927
|
+
function Oo({ url: e }) {
|
|
1928
|
+
const t = E((n) => n.containerRef);
|
|
1929
|
+
return /* @__PURE__ */ d.jsxs(No, { ref: t, children: [
|
|
1930
|
+
/* @__PURE__ */ d.jsx(En, { url: e, isLive: !1 }),
|
|
1931
|
+
/* @__PURE__ */ d.jsx(Rn, {}),
|
|
1932
|
+
/* @__PURE__ */ d.jsx(Io, { children: /* @__PURE__ */ d.jsxs(Lo, { children: [
|
|
1933
|
+
/* @__PURE__ */ d.jsx(To, {}),
|
|
1934
|
+
/* @__PURE__ */ d.jsxs(Do, { children: [
|
|
1935
|
+
/* @__PURE__ */ d.jsx(Fo, { children: /* @__PURE__ */ d.jsx(Po, {}) }),
|
|
1936
|
+
/* @__PURE__ */ d.jsx($o, {}),
|
|
1937
|
+
/* @__PURE__ */ d.jsx(Mo, { children: /* @__PURE__ */ d.jsx(Pn, {}) })
|
|
1917
1938
|
] })
|
|
1918
1939
|
] }) })
|
|
1919
1940
|
] });
|
|
1920
1941
|
}
|
|
1921
|
-
const
|
|
1942
|
+
const No = C.div`
|
|
1922
1943
|
position: absolute;
|
|
1923
1944
|
top: 0;
|
|
1924
1945
|
left: 0;
|
|
@@ -1927,7 +1948,7 @@ const _o = T.div`
|
|
|
1927
1948
|
background-color: black;
|
|
1928
1949
|
color: white;
|
|
1929
1950
|
overflow: hidden;
|
|
1930
|
-
`,
|
|
1951
|
+
`, Io = C.div`
|
|
1931
1952
|
position: absolute;
|
|
1932
1953
|
left: 0;
|
|
1933
1954
|
width: 100%;
|
|
@@ -1939,7 +1960,7 @@ const _o = T.div`
|
|
|
1939
1960
|
@media (min-width: 768px) {
|
|
1940
1961
|
padding-top: 2rem;
|
|
1941
1962
|
}
|
|
1942
|
-
`,
|
|
1963
|
+
`, Lo = C.div`
|
|
1943
1964
|
display: flex;
|
|
1944
1965
|
flex-direction: column;
|
|
1945
1966
|
padding-left: 0.5rem;
|
|
@@ -1953,12 +1974,12 @@ const _o = T.div`
|
|
|
1953
1974
|
padding-right: 1rem;
|
|
1954
1975
|
height: 4rem;
|
|
1955
1976
|
}
|
|
1956
|
-
`,
|
|
1977
|
+
`, Do = C.div`
|
|
1957
1978
|
margin: auto 0;
|
|
1958
1979
|
display: flex;
|
|
1959
1980
|
width: 100%;
|
|
1960
1981
|
align-items: center;
|
|
1961
|
-
`,
|
|
1982
|
+
`, vt = C.div`
|
|
1962
1983
|
display: flex;
|
|
1963
1984
|
flex: 1;
|
|
1964
1985
|
align-items: center;
|
|
@@ -1967,16 +1988,16 @@ const _o = T.div`
|
|
|
1967
1988
|
@media (min-width: 768px) {
|
|
1968
1989
|
gap: 1rem;
|
|
1969
1990
|
}
|
|
1970
|
-
`,
|
|
1991
|
+
`, Fo = C(vt)`
|
|
1971
1992
|
justify-content: flex-start;
|
|
1972
|
-
`,
|
|
1993
|
+
`, $o = C(vt)`
|
|
1973
1994
|
justify-content: center;
|
|
1974
|
-
`,
|
|
1995
|
+
`, Mo = C(vt)`
|
|
1975
1996
|
justify-content: flex-end;
|
|
1976
1997
|
`;
|
|
1977
1998
|
export {
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1999
|
+
Yo as L,
|
|
2000
|
+
qo as V,
|
|
2001
|
+
E as u
|
|
1981
2002
|
};
|
|
1982
|
-
//# sourceMappingURL=index-
|
|
2003
|
+
//# sourceMappingURL=index-DXKCbM7O.js.map
|